@aerogel/core 0.1.1-next.7fce7b4ce55cfb9c329a7746f571015aedc8e3bd → 0.1.1-next.9bd06e629f34098543a54bdb87e8996767876d42

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,18 +1,18 @@
1
1
  var Rt = Object.defineProperty;
2
2
  var zt = (t, s, e) => s in t ? Rt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
3
  var _ = (t, s, e) => zt(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { markRaw as E, Comment as It, Text as qt, Static as At, inject as X, reactive as ge, unref as l, onUnmounted as $e, ref as N, computed as c, readonly as we, nextTick as Pt, useAttrs as Ye, onMounted as et, watch as Le, toRaw as Dt, customRef as jt, watchEffect as G, defineComponent as h, createBlock as f, openBlock as i, mergeProps as V, withCtx as m, renderSlot as w, createPropsRestProxy as K, createVNode as d, normalizeProps as ue, guardReactiveProps as ce, createTextVNode as L, toDisplayString as x, normalizeClass as C, createElementBlock as y, Fragment as D, renderList as U, provide as de, resolveDynamicComponent as Y, useSlots as Re, createCommentVNode as H, createElementVNode as b, h as Bt, useTemplateRef as ee, withModifiers as tt, withDirectives as st, vModelCheckbox as Ft, normalizeStyle as Ut, resolveComponent as Ot, createApp as Nt, vModelText as Wt } from "vue";
4
+ import { markRaw as E, Comment as It, Text as qt, Static as At, inject as X, reactive as ge, unref as l, onUnmounted as $e, ref as N, computed as c, readonly as we, nextTick as Pt, useAttrs as Ye, onMounted as et, watch as Le, toRaw as Dt, customRef as jt, watchEffect as G, defineComponent as h, createBlock as f, openBlock as i, mergeProps as V, withCtx as m, renderSlot as w, createPropsRestProxy as K, createVNode as d, normalizeProps as ue, guardReactiveProps as ce, createTextVNode as L, toDisplayString as C, normalizeClass as x, createElementBlock as y, Fragment as D, renderList as U, provide as de, resolveDynamicComponent as Y, useSlots as Re, createCommentVNode as M, createElementVNode as b, h as Bt, useTemplateRef as ee, withModifiers as tt, withDirectives as st, vModelCheckbox as Ft, normalizeStyle as Ut, resolveComponent as Ot, createApp as Nt, vModelText as Wt } from "vue";
5
5
  import { JSError as _e, stringToSlug as Kt, tap as te, MagicObject as rt, PromisedValue as Q, Storage as O, objectOnly as ne, arrayFrom as nt, isEmpty as Se, objectDeepClone as Qt, fail as W, facade as se, arrayRemove as Ve, getEnv as Jt, updateLocationQueryParameters as Zt, forever as Xt, toString as B, objectWithout as Gt, noop as Yt, debounce as es, stringMatchAll as at, isDevelopment as J, isTesting as ze, after as le, uuid as oe, isObject as fe, objectWithoutEmpty as lt, value as ts, isInstanceOf as Oe, stringExcerpt as ss, arraySorted as rs, ListenersManager as ns, toError as as, round as ls } from "@noeldemartin/utils";
6
6
  import j from "virtual:aerogel";
7
7
  import { createPinia as is, setActivePinia as os, defineStore as us } from "pinia";
8
8
  import cs from "dompurify";
9
9
  import { marked as ds, Renderer as Ne } from "marked";
10
10
  import { createModal as ps, showModal as We, closeModal as Ke, modals as ae, useModal as Ie, ModalComponent as ms, injectModal as fs, ModalsPortal as hs } from "@noeldemartin/vue-modals";
11
- import { useModal as li } from "@noeldemartin/vue-modals";
11
+ import { ModalComponent as li, ModalsPortal as ii, closeModal as oi, createModal as ui, modals as ci, showModal as di, useModal as pi } from "@noeldemartin/vue-modals";
12
12
  import gs from "clsx";
13
13
  import { cva as vs } from "class-variance-authority";
14
14
  import { twMerge as bs } from "tailwind-merge";
15
- import { Primitive as ys, SelectValue as Qe, SelectTrigger as $s, SelectIcon as ws, SelectItem as _s, SelectItemText as xs, SelectPortal as Cs, SelectContent as ks, SelectViewport as Ss, SelectRoot as Ts, Label as Hs, useForwardExpose as qe, SwitchRoot as Ms, SwitchThumb as Vs, DialogRoot as Es, DialogPortal as Ls, DialogContent as Rs, DialogDescription as zs, DialogOverlay as Is, DialogTitle as qs, ToastClose as As, ToastRoot as Ps, ToastProvider as Ds, ToastViewport as js, DropdownMenuItem as Bs, DropdownMenuContent as Fs, DropdownMenuRoot as Us, DropdownMenuTrigger as Os, DropdownMenuPortal as Ns } from "reka-ui";
15
+ import { Primitive as ys, SelectValue as Qe, SelectTrigger as $s, SelectIcon as ws, SelectItem as _s, SelectItemText as Cs, SelectPortal as xs, SelectContent as ks, SelectViewport as Ss, SelectRoot as Ts, Label as Ms, useForwardExpose as qe, SwitchRoot as Hs, SwitchThumb as Vs, DialogRoot as Es, DialogPortal as Ls, DialogContent as Rs, DialogDescription as zs, DialogOverlay as Is, DialogTitle as qs, ToastClose as As, ToastRoot as Ps, ToastProvider as Ds, ToastViewport as js, DropdownMenuItem as Bs, DropdownMenuContent as Fs, DropdownMenuRoot as Us, DropdownMenuTrigger as Os, DropdownMenuPortal as Ns } from "reka-ui";
16
16
  class Ee extends _e {
17
17
  constructor(s, e) {
18
18
  super(`Service '${s}' failed booting`, { cause: e });
@@ -36,9 +36,9 @@ function Qs() {
36
36
  function Js(t, s) {
37
37
  return it(), us(t, s)();
38
38
  }
39
- function xe(t) {
39
+ function Ce(t) {
40
40
  var s;
41
- return s = class extends Ce {
41
+ return s = class extends xe {
42
42
  usesStore() {
43
43
  return !0;
44
44
  }
@@ -74,8 +74,8 @@ To fix this problem, declare your initialState as a function instead.`
74
74
  }
75
75
  }, _(s, "persist", t.persist ?? []), s;
76
76
  }
77
- var Me;
78
- let Ce = (Me = class extends rt {
77
+ var He;
78
+ let xe = (He = class extends rt {
79
79
  constructor() {
80
80
  super();
81
81
  _(this, "_name");
@@ -190,13 +190,13 @@ let Ce = (Me = class extends rt {
190
190
  requireStore() {
191
191
  return this._store ? this._store : W(`Failed getting '${this._name}' store`);
192
192
  }
193
- }, _(Me, "persist", []), Me);
193
+ }, _(He, "persist", []), He);
194
194
  const yl = {
195
195
  Low: -256,
196
196
  Default: 0,
197
197
  High: 256
198
198
  };
199
- class Zs extends Ce {
199
+ class Zs extends xe {
200
200
  constructor() {
201
201
  super(...arguments);
202
202
  _(this, "listeners", {});
@@ -253,7 +253,7 @@ const F = se(Zs);
253
253
  function $l(t) {
254
254
  return t;
255
255
  }
256
- const Xs = xe({
256
+ const Xs = Ce({
257
257
  name: "app",
258
258
  initialState: {
259
259
  plugins: {},
@@ -357,12 +357,12 @@ const Te = /* @__PURE__ */ new WeakMap(), rr = {
357
357
  };
358
358
  function ut(t, s) {
359
359
  const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, u = vs(n, a);
360
- return M(u(r), l(e));
360
+ return H(u(r), l(e));
361
361
  }
362
- function M(...t) {
362
+ function H(...t) {
363
363
  return bs(gs(t));
364
364
  }
365
- function xl(t, s) {
365
+ function Cl(t, s) {
366
366
  const e = F.on(t, s);
367
367
  $e(() => e());
368
368
  }
@@ -389,7 +389,7 @@ function ar(t, s) {
389
389
  }
390
390
  }
391
391
  const he = { ...nr };
392
- function Cl(t, s) {
392
+ function xl(t, s) {
393
393
  he[t] = s;
394
394
  }
395
395
  function lr(t, s) {
@@ -551,11 +551,11 @@ function ur(t) {
551
551
  }
552
552
  };
553
553
  }
554
- function Hl(t) {
554
+ function Ml(t) {
555
555
  const s = N(), e = c(t);
556
556
  return Le(e, async () => s.value = await e.value, { immediate: !0 }), s;
557
557
  }
558
- function Ml(t, s) {
558
+ function Hl(t, s) {
559
559
  const e = s ? t : {}, r = s ?? t, n = N(e.initial ?? null), a = es((u) => n.value = u, e.delay ?? 300);
560
560
  return G(() => a(r())), n;
561
561
  }
@@ -612,7 +612,7 @@ const hr = {
612
612
  t.directive(r, n);
613
613
  }
614
614
  };
615
- class br extends Ce {
615
+ class br extends xe {
616
616
  constructor() {
617
617
  super(...arguments);
618
618
  _(this, "cache");
@@ -634,7 +634,7 @@ class br extends Ce {
634
634
  }
635
635
  }
636
636
  const El = se(br);
637
- class yr extends Ce {
637
+ class yr extends xe {
638
638
  async purge() {
639
639
  await F.emit("purge-storage");
640
640
  }
@@ -677,7 +677,7 @@ const wr = {
677
677
  function ht() {
678
678
  return globalThis.innerWidth > ft ? ve.Desktop : ve.Mobile;
679
679
  }
680
- const _r = xe({
680
+ const _r = Ce({
681
681
  name: "ui",
682
682
  initialState: {
683
683
  toasts: [],
@@ -688,7 +688,7 @@ const _r = xe({
688
688
  mobile: ({ layout: t }) => t === ve.Mobile
689
689
  }
690
690
  });
691
- class xr extends _r {
691
+ class Cr extends _r {
692
692
  constructor() {
693
693
  super(...arguments);
694
694
  _(this, "components", {});
@@ -804,8 +804,8 @@ class xr extends _r {
804
804
  globalThis.matchMedia(`(min-width: ${ft}px)`).addEventListener("change", () => this.setState({ layout: ht() }));
805
805
  }
806
806
  }
807
- const P = se(xr);
808
- class Cr {
807
+ const P = se(Cr);
808
+ class xr {
809
809
  constructor(s, e) {
810
810
  this.locale = s, this.fallbackLocale = e;
811
811
  }
@@ -831,7 +831,7 @@ class Cr {
831
831
  return J() && console.warn("Lang provider is missing"), e;
832
832
  }
833
833
  }
834
- const kr = xe({
834
+ const kr = Ce({
835
835
  name: "lang",
836
836
  persist: ["locale", "fallbackLocale"],
837
837
  initialState: {
@@ -844,7 +844,7 @@ class Sr extends kr {
844
844
  constructor() {
845
845
  super();
846
846
  _(this, "provider");
847
- this.provider = new Cr(
847
+ this.provider = new xr(
848
848
  this.getState("locale") ?? this.getBrowserLocale(),
849
849
  this.getState("fallbackLocale")
850
850
  );
@@ -872,7 +872,7 @@ class Sr extends kr {
872
872
  );
873
873
  }
874
874
  }
875
- const Z = se(Sr), gt = Z.translate.bind(Z), k = Z.translateWithDefault.bind(Z), Tr = xe({
875
+ const Z = se(Sr), gt = Z.translate.bind(Z), k = Z.translateWithDefault.bind(Z), Tr = Ce({
876
876
  name: "errors",
877
877
  initialState: {
878
878
  logs: [],
@@ -885,7 +885,7 @@ const Z = se(Sr), gt = Z.translate.bind(Z), k = Z.translateWithDefault.bind(Z),
885
885
  hasStartupErrors: ({ startupErrors: t }) => t.length > 0
886
886
  }
887
887
  });
888
- class Hr extends Tr {
888
+ class Mr extends Tr {
889
889
  constructor() {
890
890
  super(...arguments);
891
891
  _(this, "forceReporting", !1);
@@ -987,7 +987,7 @@ class Hr extends Tr {
987
987
  };
988
988
  }
989
989
  }
990
- const vt = se(Hr), bt = /* @__PURE__ */ h({
990
+ const vt = se(Mr), bt = /* @__PURE__ */ h({
991
991
  __name: "HeadlessButton",
992
992
  props: {
993
993
  class: {},
@@ -1151,7 +1151,7 @@ const vt = se(Hr), bt = /* @__PURE__ */ h({
1151
1151
  }, 16, ["class", "disabled"]));
1152
1152
  }
1153
1153
  });
1154
- function Mr(t) {
1154
+ function Hr(t) {
1155
1155
  return typeof t == "object" && t !== null && "label" in t;
1156
1156
  }
1157
1157
  const yt = /* @__PURE__ */ h({
@@ -1215,10 +1215,10 @@ const yt = /* @__PURE__ */ h({
1215
1215
  });
1216
1216
  return (r, n) => (i(), f(l(_s), ue(ce(r.$props)), {
1217
1217
  default: m(() => [
1218
- d(l(xs), null, {
1218
+ d(l(Cs), null, {
1219
1219
  default: m(() => [
1220
1220
  w(r.$slots, "default", {}, () => [
1221
- L(x(e.value), 1)
1221
+ L(C(e.value), 1)
1222
1222
  ])
1223
1223
  ]),
1224
1224
  _: 3
@@ -1237,19 +1237,19 @@ const yt = /* @__PURE__ */ h({
1237
1237
  const s = I(
1238
1238
  "select",
1239
1239
  "<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
1240
- ), e = c(() => M("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1241
- return (r, n) => (i(), f(l(Cs), null, {
1240
+ ), e = c(() => H("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1241
+ return (r, n) => (i(), f(l(xs), null, {
1242
1242
  default: m(() => [
1243
1243
  d(l(ks), {
1244
1244
  position: "popper",
1245
- class: C(e.value),
1245
+ class: x(e.value),
1246
1246
  align: l(s).align,
1247
1247
  side: l(s).side,
1248
1248
  "side-offset": 4
1249
1249
  }, {
1250
1250
  default: m(() => [
1251
1251
  d(l(Ss), {
1252
- class: C(r.innerClass)
1252
+ class: x(r.innerClass)
1253
1253
  }, {
1254
1254
  default: m(() => [
1255
1255
  w(r.$slots, "default", {}, () => [
@@ -1290,7 +1290,7 @@ const yt = /* @__PURE__ */ h({
1290
1290
  setup(t, { expose: s, emit: e }) {
1291
1291
  const r = e, n = X("form", null), a = c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), u = c(() => a.value), o = c(() => !n || !t.name ? null : n.errors[t.name] ?? null), p = c(() => t.options ? t.options.map((v) => ({
1292
1292
  key: oe(),
1293
- label: t.renderOption ? t.renderOption(v) : Mr(v) ? ts(v.label) : B(v),
1293
+ label: t.renderOption ? t.renderOption(v) : Hr(v) ? ts(v.label) : B(v),
1294
1294
  value: v
1295
1295
  })) : null), g = {
1296
1296
  labelClass: t.labelClass,
@@ -1357,28 +1357,28 @@ const yt = /* @__PURE__ */ h({
1357
1357
  "select",
1358
1358
  "<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
1359
1359
  ), e = Re(), r = c(() => !!(s.label || e.default));
1360
- return (n, a) => r.value ? (i(), f(l(Hs), V({
1360
+ return (n, a) => r.value ? (i(), f(l(Ms), V({
1361
1361
  key: 0,
1362
1362
  for: l(s).id
1363
1363
  }, n.$props), {
1364
1364
  default: m(() => [
1365
1365
  w(n.$slots, "default", {}, () => [
1366
- L(x(l(s).label), 1)
1366
+ L(C(l(s).label), 1)
1367
1367
  ])
1368
1368
  ]),
1369
1369
  _: 3
1370
- }, 16, ["for"])) : H("", !0);
1370
+ }, 16, ["for"])) : M("", !0);
1371
1371
  }
1372
- }), xt = /* @__PURE__ */ h({
1372
+ }), Ct = /* @__PURE__ */ h({
1373
1373
  __name: "SelectLabel",
1374
1374
  props: {
1375
1375
  class: {}
1376
1376
  },
1377
1377
  setup(t) {
1378
- const s = I("select", "<SelectLabel> must be a child of a <Select>"), e = c(() => M("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
1378
+ const s = I("select", "<SelectLabel> must be a child of a <Select>"), e = c(() => H("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
1379
1379
  return (r, n) => r.$slots.default ? (i(), f(Ze, {
1380
1380
  key: 0,
1381
- class: C(e.value)
1381
+ class: x(e.value)
1382
1382
  }, {
1383
1383
  default: m(() => [
1384
1384
  w(r.$slots, "default")
@@ -1386,7 +1386,7 @@ const yt = /* @__PURE__ */ h({
1386
1386
  _: 3
1387
1387
  }, 8, ["class"])) : (i(), f(Ze, {
1388
1388
  key: 1,
1389
- class: C(e.value)
1389
+ class: x(e.value)
1390
1390
  }, null, 8, ["class"]));
1391
1391
  }
1392
1392
  }), Xe = /* @__PURE__ */ h({
@@ -1397,18 +1397,18 @@ const yt = /* @__PURE__ */ h({
1397
1397
  innerClass: {}
1398
1398
  },
1399
1399
  setup(t) {
1400
- const s = c(() => M("group p-1 outline-none", t.class)), e = c(() => M(
1400
+ const s = c(() => H("group p-1 outline-none", t.class)), e = c(() => H(
1401
1401
  // eslint-disable-next-line vue/max-len
1402
1402
  "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",
1403
1403
  t.innerClass
1404
1404
  ));
1405
1405
  return (r, n) => (i(), f(wt, {
1406
- class: C(s.value),
1406
+ class: x(s.value),
1407
1407
  value: r.value
1408
1408
  }, {
1409
1409
  default: m(() => [
1410
1410
  b("div", {
1411
- class: C(e.value)
1411
+ class: x(e.value)
1412
1412
  }, [
1413
1413
  w(r.$slots, "default")
1414
1414
  ], 2)
@@ -1416,19 +1416,19 @@ const yt = /* @__PURE__ */ h({
1416
1416
  _: 3
1417
1417
  }, 8, ["class", "value"]));
1418
1418
  }
1419
- }), Ct = /* @__PURE__ */ h({
1419
+ }), xt = /* @__PURE__ */ h({
1420
1420
  __name: "SelectOptions",
1421
1421
  props: {
1422
1422
  class: {}
1423
1423
  },
1424
1424
  setup(t) {
1425
- const s = I("select", "<SelectOptions> must be a child of a <Select>"), e = c(() => M(
1425
+ const s = I("select", "<SelectOptions> must be a child of a <Select>"), e = c(() => H(
1426
1426
  "z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden",
1427
1427
  s.optionsClass,
1428
1428
  t.class
1429
1429
  ));
1430
1430
  return (r, n) => (i(), f(_t, {
1431
- class: C(e.value)
1431
+ class: x(e.value)
1432
1432
  }, {
1433
1433
  default: m(() => {
1434
1434
  var a;
@@ -1441,7 +1441,7 @@ const yt = /* @__PURE__ */ h({
1441
1441
  value: o.value
1442
1442
  }, {
1443
1443
  default: m(() => [
1444
- L(x(o.label), 1)
1444
+ L(C(o.label), 1)
1445
1445
  ]),
1446
1446
  _: 2
1447
1447
  }, 1032, ["value"]))), 128))
@@ -1452,7 +1452,7 @@ const yt = /* @__PURE__ */ h({
1452
1452
  value: null
1453
1453
  }, {
1454
1454
  default: m(() => [
1455
- L(x(r.$td("ui.selectEmpty", "No options available")), 1)
1455
+ L(C(r.$td("ui.selectEmpty", "No options available")), 1)
1456
1456
  ]),
1457
1457
  _: 1
1458
1458
  })
@@ -1481,14 +1481,14 @@ const Rr = E({ name: "zondicons-cheveron-down", render: Lr }), kt = /* @__PURE__
1481
1481
  class: {}
1482
1482
  },
1483
1483
  setup(t) {
1484
- const s = I("select", "<SelectTrigger> must be a child of a <Select>"), e = c(() => M(
1484
+ const s = I("select", "<SelectTrigger> must be a child of a <Select>"), e = c(() => H(
1485
1485
  // eslint-disable-next-line vue/max-len
1486
1486
  "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",
1487
1487
  { "mt-1": s.label },
1488
1488
  t.class
1489
1489
  ));
1490
1490
  return (r, n) => (i(), f($t, {
1491
- class: C(e.value)
1491
+ class: x(e.value)
1492
1492
  }, {
1493
1493
  default: m(() => [
1494
1494
  d(yt, { class: "col-start-1 row-start-1 truncate pr-6" }),
@@ -1521,10 +1521,10 @@ const Rr = E({ name: "zondicons-cheveron-down", render: Lr }), kt = /* @__PURE__
1521
1521
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
1522
1522
  }), {
1523
1523
  default: m(() => [
1524
- d(xt),
1524
+ d(Ct),
1525
1525
  w(e.$slots, "default", {}, () => [
1526
1526
  d(kt),
1527
- d(Ct)
1527
+ d(xt)
1528
1528
  ])
1529
1529
  ]),
1530
1530
  _: 3
@@ -1549,9 +1549,9 @@ const Rr = E({ name: "zondicons-cheveron-down", render: Lr }), kt = /* @__PURE__
1549
1549
  }, {
1550
1550
  default: m(() => [
1551
1551
  b("div", Ir, [
1552
- d(xt, { class: "text-base font-semibold" }, {
1552
+ d(Ct, { class: "text-base font-semibold" }, {
1553
1553
  default: m(() => [
1554
- L(x(n.$td("settings.locale", "Language")), 1)
1554
+ L(C(n.$td("settings.locale", "Language")), 1)
1555
1555
  ]),
1556
1556
  _: 1
1557
1557
  }),
@@ -1566,7 +1566,7 @@ const Rr = E({ name: "zondicons-cheveron-down", render: Lr }), kt = /* @__PURE__
1566
1566
  as: kt,
1567
1567
  class: "grid w-auto outline-none"
1568
1568
  }),
1569
- d(Ct)
1569
+ d(xt)
1570
1570
  ]),
1571
1571
  _: 1
1572
1572
  }, 8, ["modelValue", "options"]));
@@ -1634,23 +1634,23 @@ const Rr = E({ name: "zondicons-cheveron-down", render: Lr }), kt = /* @__PURE__
1634
1634
  layout: { default: "horizontal" }
1635
1635
  },
1636
1636
  setup(t) {
1637
- const s = c(() => M(t.class, "flex flex-col justify-center gap-1"));
1637
+ const s = c(() => H(t.class, "flex flex-col justify-center gap-1"));
1638
1638
  return (e, r) => (i(), y("div", {
1639
- class: C(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
1639
+ class: x(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
1640
1640
  }, [
1641
1641
  b("div", Fr, [
1642
1642
  b("h3", {
1643
1643
  id: e.titleId,
1644
1644
  class: "text-base font-semibold"
1645
- }, x(e.title), 9, Ur),
1645
+ }, C(e.title), 9, Ur),
1646
1646
  e.description ? (i(), f(z, {
1647
1647
  key: 0,
1648
1648
  text: e.description,
1649
1649
  class: "mt-1 text-sm text-gray-500"
1650
- }, null, 8, ["text"])) : H("", !0)
1650
+ }, null, 8, ["text"])) : M("", !0)
1651
1651
  ]),
1652
1652
  b("div", {
1653
- class: C(s.value)
1653
+ class: x(s.value)
1654
1654
  }, [
1655
1655
  w(e.$slots, "default")
1656
1656
  ], 2)
@@ -1693,14 +1693,14 @@ const Rr = E({ name: "zondicons-cheveron-down", render: Lr }), kt = /* @__PURE__
1693
1693
  return s(u), G(() => {
1694
1694
  !t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
1695
1695
  }), (o, p) => (i(), y("div", {
1696
- class: C(t.class)
1696
+ class: x(t.class)
1697
1697
  }, [
1698
1698
  o.label ? (i(), y("label", {
1699
1699
  key: 0,
1700
1700
  for: u.id,
1701
- class: C(o.labelClass)
1702
- }, x(o.label), 11, Nr)) : H("", !0),
1703
- d(l(Ms), V({
1701
+ class: x(o.labelClass)
1702
+ }, C(o.label), 11, Nr)) : M("", !0),
1703
+ d(l(Hs), V({
1704
1704
  id: u.id,
1705
1705
  name: o.name,
1706
1706
  "model-value": u.value.value
@@ -1710,7 +1710,7 @@ const Rr = E({ name: "zondicons-cheveron-down", render: Lr }), kt = /* @__PURE__
1710
1710
  }), {
1711
1711
  default: m(() => [
1712
1712
  d(l(Vs), {
1713
- class: C(o.thumbClass)
1713
+ class: x(o.thumbClass)
1714
1714
  }, null, 8, ["class"])
1715
1715
  ]),
1716
1716
  _: 1
@@ -1835,7 +1835,7 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1835
1835
  l(s) ? (i(), f(l(ms), {
1836
1836
  key: 0,
1837
1837
  is: l(s)
1838
- }, null, 8, ["is"])) : H("", !0)
1838
+ }, null, 8, ["is"])) : M("", !0)
1839
1839
  ]),
1840
1840
  _: 3
1841
1841
  }, 512));
@@ -1886,7 +1886,7 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1886
1886
  }), cn = {
1887
1887
  key: 0,
1888
1888
  class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
1889
- }, dn = ["onClick"], pn = { class: "sr-only" }, He = ur(), re = /* @__PURE__ */ h({
1889
+ }, dn = ["onClick"], pn = { class: "sr-only" }, Me = ur(), re = /* @__PURE__ */ h({
1890
1890
  __name: "Modal",
1891
1891
  props: {
1892
1892
  persistent: { type: Boolean },
@@ -1911,10 +1911,10 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1911
1911
  var T;
1912
1912
  return u.value && ((T = ae.value.toReversed().find((Be) => Be.visible.value)) == null ? void 0 : T.id) === a.value;
1913
1913
  }
1914
- ), $ = c(() => ae.value.find((T) => T.visible.value)), v = c(() => ae.value.some((T) => He.has(T))), S = c(() => t.description ? {} : { "aria-describedby": void 0 }), q = c(() => M("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), pe = c(() => M(
1914
+ ), $ = c(() => ae.value.find((T) => T.visible.value)), v = c(() => ae.value.some((T) => Me.has(T))), S = c(() => t.description ? {} : { "aria-describedby": void 0 }), q = c(() => H("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), pe = c(() => H(
1915
1915
  "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",
1916
1916
  "overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
1917
- He.has(p.value) || "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1917
+ Me.has(p.value) || "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1918
1918
  "transition-[scale,opacity] will-change-[scale,opacity] duration-300",
1919
1919
  {
1920
1920
  "scale-50 opacity-0": !g.value,
@@ -1922,7 +1922,7 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1922
1922
  },
1923
1923
  t.wrapperClass
1924
1924
  ));
1925
- return et(() => le(500).then(() => He.add(p.value))), (T, Be) => (i(), f(nn, V(e, {
1925
+ return et(() => le(500).then(() => Me.add(p.value))), (T, Be) => (i(), f(nn, V(e, {
1926
1926
  ref: (me) => l(r)(me),
1927
1927
  persistent: T.persistent
1928
1928
  }), {
@@ -1930,7 +1930,7 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1930
1930
  var Fe, Ue;
1931
1931
  return [
1932
1932
  d(on, {
1933
- class: C(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
1933
+ class: x(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
1934
1934
  "animate-[fade-in_var(--tw-duration)_ease-in-out]": !v.value,
1935
1935
  "bg-black/30": ((Fe = $.value) == null ? void 0 : Fe.id) === l(a) || !$.value && ((Ue = l(ae)[0]) == null ? void 0 : Ue.id) === l(a),
1936
1936
  "opacity-0": !$.value
@@ -1944,13 +1944,13 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1944
1944
  class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
1945
1945
  onClick: (al) => me()
1946
1946
  }, [
1947
- b("span", pn, x(T.$td("ui.close", "Close")), 1),
1947
+ b("span", pn, C(T.$td("ui.close", "Close")), 1),
1948
1948
  d(l(rn), { class: "size-4" })
1949
1949
  ], 8, dn)
1950
- ])) : H("", !0),
1950
+ ])) : M("", !0),
1951
1951
  T.title ? (i(), f(un, {
1952
1952
  key: 1,
1953
- class: C(["px-4 pt-5 text-base font-semibold text-gray-900", {
1953
+ class: x(["px-4 pt-5 text-base font-semibold text-gray-900", {
1954
1954
  "sr-only": T.titleHidden,
1955
1955
  "pb-0": T.description && !T.descriptionHidden,
1956
1956
  "pb-2": !T.description || T.descriptionHidden
@@ -1963,10 +1963,10 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1963
1963
  }, null, 8, ["text"])
1964
1964
  ]),
1965
1965
  _: 1
1966
- }, 8, ["class"])) : H("", !0),
1966
+ }, 8, ["class"])) : M("", !0),
1967
1967
  T.description ? (i(), f(ln, {
1968
1968
  key: 2,
1969
- class: C(["px-4 pt-1 pb-2", { "sr-only": T.descriptionHidden }])
1969
+ class: x(["px-4 pt-1 pb-2", { "sr-only": T.descriptionHidden }])
1970
1970
  }, {
1971
1971
  default: m(() => [
1972
1972
  d(z, {
@@ -1975,9 +1975,9 @@ const rn = E({ name: "zondicons-close", render: sn }), nn = /* @__PURE__ */ h({
1975
1975
  }, null, 8, ["text"])
1976
1976
  ]),
1977
1977
  _: 1
1978
- }, 8, ["class"])) : H("", !0),
1978
+ }, 8, ["class"])) : M("", !0),
1979
1979
  b("div", {
1980
- class: C(q.value)
1980
+ class: x(q.value)
1981
1981
  }, [
1982
1982
  w(T.$slots, "default", { close: me })
1983
1983
  ], 2)
@@ -2012,7 +2012,7 @@ const fn = /* @__PURE__ */ h({
2012
2012
  _: 1
2013
2013
  }, 8, ["title", "title-hidden"]));
2014
2014
  }
2015
- }), Ht = /* @__PURE__ */ h({
2015
+ }), Mt = /* @__PURE__ */ h({
2016
2016
  __name: "Form",
2017
2017
  props: {
2018
2018
  form: {}
@@ -2072,7 +2072,7 @@ const gn = {
2072
2072
  persistent: ""
2073
2073
  }, {
2074
2074
  default: m(({ close: $ }) => [
2075
- d(Ht, {
2075
+ d(Mt, {
2076
2076
  form: l(r),
2077
2077
  onSubmit: (v) => $([!0, l(r).data()])
2078
2078
  }, {
@@ -2092,27 +2092,27 @@ const gn = {
2092
2092
  }, null, 8, bn), [
2093
2093
  [Ft, l(r)[S]]
2094
2094
  ]),
2095
- b("span", yn, x(v.label), 1)
2095
+ b("span", yn, C(v.label), 1)
2096
2096
  ])
2097
2097
  ]))), 128))
2098
- ])) : H("", !0),
2098
+ ])) : M("", !0),
2099
2099
  b("div", $n, [
2100
2100
  d(R, {
2101
2101
  variant: p.acceptVariant,
2102
2102
  submit: ""
2103
2103
  }, {
2104
2104
  default: m(() => [
2105
- L(x(l(u)), 1)
2105
+ L(C(l(u)), 1)
2106
2106
  ]),
2107
2107
  _: 1
2108
2108
  }, 8, ["variant"]),
2109
- p.required ? H("", !0) : (i(), f(R, {
2109
+ p.required ? M("", !0) : (i(), f(R, {
2110
2110
  key: 0,
2111
2111
  variant: p.cancelVariant,
2112
2112
  onClick: (v) => $(!1)
2113
2113
  }, {
2114
2114
  default: m(() => [
2115
- L(x(l(o)), 1)
2115
+ L(C(l(o)), 1)
2116
2116
  ]),
2117
2117
  _: 2
2118
2118
  }, 1032, ["variant", "onClick"]))
@@ -2129,7 +2129,7 @@ const gn = {
2129
2129
  width: "1.2em",
2130
2130
  height: "1.2em"
2131
2131
  };
2132
- function xn(t, s) {
2132
+ function Cn(t, s) {
2133
2133
  return i(), y("svg", _n, s[0] || (s[0] = [
2134
2134
  b("path", {
2135
2135
  fill: "currentColor",
@@ -2137,7 +2137,7 @@ function xn(t, s) {
2137
2137
  }, null, -1)
2138
2138
  ]));
2139
2139
  }
2140
- const Cn = E({ name: "zondicons-cheveron-left", render: xn }), kn = {
2140
+ const xn = E({ name: "zondicons-cheveron-left", render: Cn }), kn = {
2141
2141
  viewBox: "0 0 20 20",
2142
2142
  width: "1.2em",
2143
2143
  height: "1.2em"
@@ -2150,12 +2150,12 @@ function Sn(t, s) {
2150
2150
  }, null, -1)
2151
2151
  ]));
2152
2152
  }
2153
- const Mt = E({ name: "zondicons-cheveron-right", render: Sn }), Tn = {
2153
+ const Ht = E({ name: "zondicons-cheveron-right", render: Sn }), Tn = {
2154
2154
  viewBox: "0 0 20 20",
2155
2155
  width: "1.2em",
2156
2156
  height: "1.2em"
2157
2157
  };
2158
- function Hn(t, s) {
2158
+ function Mn(t, s) {
2159
2159
  return i(), y("svg", Tn, s[0] || (s[0] = [
2160
2160
  b("path", {
2161
2161
  fill: "currentColor",
@@ -2163,13 +2163,13 @@ function Hn(t, s) {
2163
2163
  }, null, -1)
2164
2164
  ]));
2165
2165
  }
2166
- const De = E({ name: "zondicons-exclamation-solid", render: Hn }), Mn = {
2166
+ const De = E({ name: "zondicons-exclamation-solid", render: Mn }), Hn = {
2167
2167
  viewBox: "0 0 24 24",
2168
2168
  width: "1.2em",
2169
2169
  height: "1.2em"
2170
2170
  };
2171
2171
  function Vn(t, s) {
2172
- return i(), y("svg", Mn, s[0] || (s[0] = [
2172
+ return i(), y("svg", Hn, s[0] || (s[0] = [
2173
2173
  b("path", {
2174
2174
  fill: "currentColor",
2175
2175
  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"
@@ -2273,7 +2273,7 @@ ${s.report.details}`), P.toast(k("errors.copiedToClipboard", "Debug information
2273
2273
  onClick: o.click
2274
2274
  }, {
2275
2275
  default: m(() => [
2276
- b("span", Dn, x(a.$td(`errors.report_${o.id}`, o.description)), 1),
2276
+ b("span", Dn, C(a.$td(`errors.report_${o.id}`, o.description)), 1),
2277
2277
  (i(), f(Y(o.iconComponent), {
2278
2278
  class: "size-4",
2279
2279
  "aria-hidden": "true"
@@ -2353,7 +2353,7 @@ const Un = { class: "px-4 pt-5 pb-4" }, On = { class: "flex justify-between gap-
2353
2353
  onClick: g[0] || (g[0] = ($) => r.value--)
2354
2354
  }, {
2355
2355
  default: m(() => [
2356
- d(l(Cn), { class: "size-4" })
2356
+ d(l(xn), { class: "size-4" })
2357
2357
  ]),
2358
2358
  _: 1
2359
2359
  }, 8, ["disabled", "aria-label", "title"]),
@@ -2366,11 +2366,11 @@ const Un = { class: "px-4 pt-5 pb-4" }, On = { class: "flex justify-between gap-
2366
2366
  onClick: g[1] || (g[1] = ($) => r.value++)
2367
2367
  }, {
2368
2368
  default: m(() => [
2369
- d(l(Mt), { class: "size-4" })
2369
+ d(l(Ht), { class: "size-4" })
2370
2370
  ]),
2371
2371
  _: 1
2372
2372
  }, 8, ["disabled", "aria-label", "title"])
2373
- ])) : H("", !0)
2373
+ ])) : M("", !0)
2374
2374
  ]),
2375
2375
  d(jn, {
2376
2376
  report: l(o),
@@ -2381,12 +2381,12 @@ const Un = { class: "px-4 pt-5 pb-4" }, On = { class: "flex justify-between gap-
2381
2381
  key: 0,
2382
2382
  text: l(o).description,
2383
2383
  class: "text-gray-600"
2384
- }, null, 8, ["text"])) : H("", !0)
2384
+ }, null, 8, ["text"])) : M("", !0)
2385
2385
  ]),
2386
2386
  b("div", Kn, [
2387
2387
  b("pre", {
2388
2388
  class: "p-4 text-xs text-red-800",
2389
- textContent: x(l(n))
2389
+ textContent: C(l(n))
2390
2390
  }, null, 8, Qn)
2391
2391
  ])
2392
2392
  ]),
@@ -2428,7 +2428,7 @@ const Gn = E({ name: "svg-spinners-90-ring-with-bg", render: Xn }), Yn = { class
2428
2428
  },
2429
2429
  setup(t) {
2430
2430
  let s;
2431
- const e = N(0), r = c(() => M("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);
2431
+ const e = N(0), r = c(() => H("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);
2432
2432
  return Le(
2433
2433
  () => t.job,
2434
2434
  () => {
@@ -2437,10 +2437,10 @@ const Gn = E({ name: "svg-spinners-90-ring-with-bg", render: Xn }), Yn = { class
2437
2437
  { immediate: !0 }
2438
2438
  ), $e(() => s && s()), (a, u) => (i(), y("div", Yn, [
2439
2439
  b("div", {
2440
- class: C(r.value),
2440
+ class: x(r.value),
2441
2441
  style: Ut(`transform:translateX(-${(1 - n.value) * 100}%)`)
2442
2442
  }, null, 6),
2443
- b("span", ea, x(a.$td("ui.progress", "{progress}% complete", {
2443
+ b("span", ea, C(a.$td("ui.progress", "{progress}% complete", {
2444
2444
  progress: n.value * 100
2445
2445
  })), 1)
2446
2446
  ]));
@@ -2464,7 +2464,7 @@ const ra = /* @__PURE__ */ h({
2464
2464
  const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: u } = sa(e);
2465
2465
  return s(), (o, p) => (i(), f(re, {
2466
2466
  persistent: "",
2467
- class: C(["flex", { "flex-col-reverse": l(u), "items-center justify-center gap-2": !l(u) }]),
2467
+ class: x(["flex", { "flex-col-reverse": l(u), "items-center justify-center gap-2": !l(u) }]),
2468
2468
  "wrapper-class": "w-auto",
2469
2469
  title: l(r),
2470
2470
  "title-hidden": l(a)
@@ -2530,9 +2530,9 @@ const ra = /* @__PURE__ */ h({
2530
2530
  for: l(s).id
2531
2531
  }, [
2532
2532
  w(n.$slots, "default", {}, () => [
2533
- L(x(l(s).label), 1)
2533
+ L(C(l(s).label), 1)
2534
2534
  ])
2535
- ], 8, na)) : H("", !0);
2535
+ ], 8, na)) : M("", !0);
2536
2536
  }
2537
2537
  }), aa = ["id", "name", "checked", "type", "required", "aria-invalid", "aria-describedby"], Vt = /* @__PURE__ */ h({
2538
2538
  __name: "HeadlessInputInput",
@@ -2601,7 +2601,7 @@ const ra = /* @__PURE__ */ h({
2601
2601
  r.value ? (i(), f(z, V({ key: 0 }, n.$attrs, {
2602
2602
  id: `${l(s).id}-description`,
2603
2603
  text: e.value
2604
- }), null, 16, ["id", "text"])) : H("", !0)
2604
+ }), null, 16, ["id", "text"])) : M("", !0)
2605
2605
  ]);
2606
2606
  }
2607
2607
  }), la = ["id"], ye = /* @__PURE__ */ h({
@@ -2611,7 +2611,7 @@ const ra = /* @__PURE__ */ h({
2611
2611
  return (r, n) => e.value ? (i(), y("p", {
2612
2612
  key: 0,
2613
2613
  id: `${l(s).id}-error`
2614
- }, x(e.value), 9, la)) : H("", !0);
2614
+ }, C(e.value), 9, la)) : M("", !0);
2615
2615
  }
2616
2616
  }), ia = {
2617
2617
  key: 0,
@@ -2629,9 +2629,9 @@ const ra = /* @__PURE__ */ h({
2629
2629
  },
2630
2630
  emits: ["update:modelValue"],
2631
2631
  setup(t) {
2632
- const s = K(t, ["label", "inputClass", "wrapperClass"]), e = ee("$inputRef"), [r, n] = Pe(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => {
2632
+ const s = K(t, ["label", "inputClass", "wrapperClass"]), e = ee("$inputRef"), [r, n] = Pe(), a = c(() => H("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => {
2633
2633
  var o, p, g;
2634
- return M(
2634
+ return H(
2635
2635
  // eslint-disable-next-line vue/max-len
2636
2636
  "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",
2637
2637
  {
@@ -2654,12 +2654,12 @@ const ra = /* @__PURE__ */ h({
2654
2654
  return [
2655
2655
  d(be, { class: "block text-sm leading-6 font-medium text-gray-900" }),
2656
2656
  b("div", {
2657
- class: C(a.value)
2657
+ class: x(a.value)
2658
2658
  }, [
2659
2659
  d(Vt, V(l(r), { class: u.value }), null, 16, ["class"]),
2660
2660
  (g = e.value) != null && g.errors ? (i(), y("div", ia, [
2661
2661
  d(l(De), { class: "size-5 text-red-500" })
2662
- ])) : H("", !0)
2662
+ ])) : M("", !0)
2663
2663
  ], 2),
2664
2664
  d(Et, { class: "mt-2 text-sm text-gray-600" }),
2665
2665
  d(ye, { class: "mt-2 text-sm text-red-600" })
@@ -2782,7 +2782,7 @@ const da = { class: "mt-4 flex flex-row-reverse gap-2" }, pa = /* @__PURE__ */ h
2782
2782
  persistent: ""
2783
2783
  }, {
2784
2784
  default: m(({ close: $ }) => [
2785
- d(Ht, {
2785
+ d(Mt, {
2786
2786
  form: l(r),
2787
2787
  onSubmit: (v) => $(l(r).draft)
2788
2788
  }, {
@@ -2790,7 +2790,7 @@ const da = { class: "mt-4 flex flex-row-reverse gap-2" }, pa = /* @__PURE__ */ h
2790
2790
  l(a) ? (i(), f(z, {
2791
2791
  key: 0,
2792
2792
  text: l(a)
2793
- }, null, 8, ["text"])) : H("", !0),
2793
+ }, null, 8, ["text"])) : M("", !0),
2794
2794
  d(oa, {
2795
2795
  name: "draft",
2796
2796
  class: "mt-2",
@@ -2803,7 +2803,7 @@ const da = { class: "mt-4 flex flex-row-reverse gap-2" }, pa = /* @__PURE__ */ h
2803
2803
  submit: ""
2804
2804
  }, {
2805
2805
  default: m(() => [
2806
- L(x(l(u)), 1)
2806
+ L(C(l(u)), 1)
2807
2807
  ]),
2808
2808
  _: 1
2809
2809
  }, 8, ["variant"]),
@@ -2812,7 +2812,7 @@ const da = { class: "mt-4 flex flex-row-reverse gap-2" }, pa = /* @__PURE__ */ h
2812
2812
  onClick: (v) => $()
2813
2813
  }, {
2814
2814
  default: m(() => [
2815
- L(x(l(o)), 1)
2815
+ L(C(l(o)), 1)
2816
2816
  ]),
2817
2817
  _: 2
2818
2818
  }, 1032, ["variant", "onClick"])
@@ -2868,7 +2868,7 @@ const wa = E({ name: "material-symbols-frame-inspect", render: $a }), _a = {
2868
2868
  width: "1.2em",
2869
2869
  height: "1.2em"
2870
2870
  };
2871
- function xa(t, s) {
2871
+ function Ca(t, s) {
2872
2872
  return i(), y("svg", _a, s[0] || (s[0] = [
2873
2873
  b("path", {
2874
2874
  fill: "currentColor",
@@ -2876,7 +2876,7 @@ function xa(t, s) {
2876
2876
  }, null, -1)
2877
2877
  ]));
2878
2878
  }
2879
- const Ca = E({ name: "material-symbols-refresh-rounded", render: xa }), ka = { class: "grid grow place-items-center" }, Sa = { class: "flex flex-col items-center p-8" }, Ta = { class: "mt-0 mb-0 text-center text-4xl font-medium text-red-600" }, Ha = { 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" }, Ma = /* @__PURE__ */ h({
2879
+ const xa = E({ name: "material-symbols-refresh-rounded", render: Ca }), ka = { class: "grid grow place-items-center" }, Sa = { class: "flex flex-col items-center p-8" }, Ta = { class: "mt-0 mb-0 text-center text-4xl font-medium text-red-600" }, Ma = { 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" }, Ha = /* @__PURE__ */ h({
2880
2880
  __name: "StartupCrash",
2881
2881
  setup(t) {
2882
2882
  async function s() {
@@ -2899,7 +2899,7 @@ Do you still want to proceed?`
2899
2899
  return i(), y("div", ka, [
2900
2900
  b("div", Sa, [
2901
2901
  d(n, { class: "size-20 text-red-600" }),
2902
- b("h1", Ta, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
2902
+ b("h1", Ta, C(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
2903
2903
  d(z, {
2904
2904
  text: e.$td(
2905
2905
  "startupCrash.message",
@@ -2907,14 +2907,14 @@ Do you still want to proceed?`
2907
2907
  ),
2908
2908
  class: "mt-4 text-center"
2909
2909
  }, null, 8, ["text"]),
2910
- b("div", Ha, [
2910
+ b("div", Ma, [
2911
2911
  d(R, {
2912
2912
  variant: "danger",
2913
2913
  onClick: r[0] || (r[0] = (a) => e.$app.reload())
2914
2914
  }, {
2915
2915
  default: m(() => [
2916
- d(l(Ca)),
2917
- L(" " + x(e.$td("startupCrash.reload", "Try again")), 1)
2916
+ d(l(xa)),
2917
+ L(" " + C(e.$td("startupCrash.reload", "Try again")), 1)
2918
2918
  ]),
2919
2919
  _: 1
2920
2920
  }),
@@ -2924,7 +2924,7 @@ Do you still want to proceed?`
2924
2924
  }, {
2925
2925
  default: m(() => [
2926
2926
  d(l(ha)),
2927
- L(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
2927
+ L(" " + C(e.$td("startupCrash.inspect", "View error details")), 1)
2928
2928
  ]),
2929
2929
  _: 1
2930
2930
  }),
@@ -2934,7 +2934,7 @@ Do you still want to proceed?`
2934
2934
  }, {
2935
2935
  default: m(() => [
2936
2936
  d(l(ba)),
2937
- L(" " + x(e.$td("startupCrash.purge", "Purge device")), 1)
2937
+ L(" " + C(e.$td("startupCrash.purge", "Purge device")), 1)
2938
2938
  ]),
2939
2939
  _: 1
2940
2940
  }),
@@ -2944,7 +2944,7 @@ Do you still want to proceed?`
2944
2944
  }, {
2945
2945
  default: m(() => [
2946
2946
  d(l(wa)),
2947
- L(" " + x(e.$td("startupCrash.debug", "Toggle debugging")), 1)
2947
+ L(" " + C(e.$td("startupCrash.debug", "Toggle debugging")), 1)
2948
2948
  ]),
2949
2949
  _: 1
2950
2950
  })
@@ -2964,7 +2964,7 @@ Do you still want to proceed?`
2964
2964
  onClick: s.action.click
2965
2965
  }, {
2966
2966
  default: m(() => [
2967
- L(x(s.action.label), 1)
2967
+ L(C(s.action.label), 1)
2968
2968
  ]),
2969
2969
  _: 1
2970
2970
  }, 8, ["onClick"]));
@@ -2980,7 +2980,7 @@ Do you still want to proceed?`
2980
2980
  return (s, e) => (i(), f(l(Ps), null, {
2981
2981
  default: m(() => [
2982
2982
  w(s.$slots, "default", {}, () => [
2983
- s.message ? (i(), y("span", Va, x(s.message), 1)) : H("", !0),
2983
+ s.message ? (i(), y("span", Va, C(s.message), 1)) : M("", !0),
2984
2984
  (i(!0), y(D, null, U(s.actions, (r, n) => (i(), f(Lt, {
2985
2985
  key: n,
2986
2986
  action: r
@@ -3015,14 +3015,14 @@ Do you still want to proceed?`
3015
3015
  }
3016
3016
  ));
3017
3017
  return s(), (r, n) => (i(), f(Ea, {
3018
- class: C(e.value)
3018
+ class: x(e.value)
3019
3019
  }, {
3020
3020
  default: m(() => [
3021
3021
  r.message ? (i(), f(z, {
3022
3022
  key: 0,
3023
3023
  text: r.message,
3024
3024
  inline: ""
3025
- }, null, 8, ["text"])) : H("", !0),
3025
+ }, null, 8, ["text"])) : M("", !0),
3026
3026
  (i(!0), y(D, null, U(r.actions, (a, u) => (i(), f(R, {
3027
3027
  key: u,
3028
3028
  action: a,
@@ -3041,7 +3041,7 @@ Do you still want to proceed?`
3041
3041
  "error-report-modal": Jn,
3042
3042
  "loading-modal": ra,
3043
3043
  "prompt-modal": pa,
3044
- "startup-crash": Ma,
3044
+ "startup-crash": Ha,
3045
3045
  toast: La,
3046
3046
  ...s.components
3047
3047
  };
@@ -3121,8 +3121,8 @@ const qa = /* @__PURE__ */ h({
3121
3121
  setup(t) {
3122
3122
  return (s, e) => (i(), y("details", Ba, [
3123
3123
  b("summary", Fa, [
3124
- d(l(Mt), { class: "size-6 transition-transform group-open:rotate-90" }),
3125
- b("span", null, x(s.$td("ui.advancedOptions", "Advanced options")), 1)
3124
+ d(l(Ht), { class: "size-6 transition-transform group-open:rotate-90" }),
3125
+ b("span", null, C(s.$td("ui.advancedOptions", "Advanced options")), 1)
3126
3126
  ]),
3127
3127
  b("div", Ua, [
3128
3128
  w(s.$slots, "default")
@@ -3142,9 +3142,9 @@ const qa = /* @__PURE__ */ h({
3142
3142
  },
3143
3143
  emits: ["update:modelValue"],
3144
3144
  setup(t) {
3145
- const s = K(t, ["inputClass", "labelClass"]), e = ee("$inputRef"), [r, n] = Pe(), a = c(() => M("relative flex items-start", n.value)), u = c(() => {
3145
+ const s = K(t, ["inputClass", "labelClass"]), e = ee("$inputRef"), [r, n] = Pe(), a = c(() => H("relative flex items-start", n.value)), u = c(() => {
3146
3146
  var p, g;
3147
- return M(
3147
+ return H(
3148
3148
  "size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
3149
3149
  {
3150
3150
  "border-gray-300 focus:ring-primary-600": !((p = e.value) != null && p.errors),
@@ -3152,7 +3152,7 @@ const qa = /* @__PURE__ */ h({
3152
3152
  },
3153
3153
  t.inputClass
3154
3154
  );
3155
- }), o = c(() => M("ml-2 text-sm leading-6", t.labelClass));
3155
+ }), o = c(() => H("ml-2 text-sm leading-6", t.labelClass));
3156
3156
  return (p, g) => (i(), f(je, V({
3157
3157
  ref: "$inputRef",
3158
3158
  class: a.value
@@ -3168,7 +3168,7 @@ const qa = /* @__PURE__ */ h({
3168
3168
  ]),
3169
3169
  p.$slots.default ? (i(), y("div", {
3170
3170
  key: 0,
3171
- class: C(o.value)
3171
+ class: x(o.value)
3172
3172
  }, [
3173
3173
  d(be, { class: "text-gray-900" }, {
3174
3174
  default: m(() => [
@@ -3179,11 +3179,11 @@ const qa = /* @__PURE__ */ h({
3179
3179
  d(ye, { class: "text-red-600" })
3180
3180
  ], 2)) : p.label ? (i(), y("div", {
3181
3181
  key: 1,
3182
- class: C(o.value)
3182
+ class: x(o.value)
3183
3183
  }, [
3184
3184
  d(be, { class: "text-gray-900" }),
3185
3185
  d(ye, { class: "text-red-600" })
3186
- ], 2)) : H("", !0)
3186
+ ], 2)) : M("", !0)
3187
3187
  ]),
3188
3188
  _: 3
3189
3189
  }, 16, ["class"]));
@@ -3197,7 +3197,7 @@ const qa = /* @__PURE__ */ h({
3197
3197
  },
3198
3198
  emits: ["select"],
3199
3199
  setup(t) {
3200
- const s = K(t, ["class"]), e = c(() => M(
3200
+ const s = K(t, ["class"]), e = c(() => H(
3201
3201
  "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
3202
3202
  t.class
3203
3203
  ));
@@ -3245,7 +3245,7 @@ const qa = /* @__PURE__ */ h({
3245
3245
  }
3246
3246
  ), {
3247
3247
  default: m(() => [
3248
- L(x(n.label), 1)
3248
+ L(C(n.label), 1)
3249
3249
  ]),
3250
3250
  _: 2
3251
3251
  }, 1040, ["as", "class", "onSelect"]))), 128))
@@ -3303,7 +3303,7 @@ const qa = /* @__PURE__ */ h({
3303
3303
  },
3304
3304
  emits: ["update", "save"],
3305
3305
  setup(t, { emit: s }) {
3306
- const e = s, r = ee("$inputRef"), n = N(null), a = N(t.text), u = c(() => M("inline whitespace-pre", t.contentClass)), o = c(() => M("invisible whitespace-pre", t.contentClass)), p = c(() => M("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3306
+ const e = s, r = ee("$inputRef"), n = N(null), a = N(t.text), u = c(() => H("inline whitespace-pre", t.contentClass)), o = c(() => H("invisible whitespace-pre", t.contentClass)), p = c(() => H("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
3307
3307
  function g() {
3308
3308
  n.value = t.text;
3309
3309
  }
@@ -3311,21 +3311,21 @@ const qa = /* @__PURE__ */ h({
3311
3311
  n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
3312
3312
  }
3313
3313
  return G(() => a.value = t.text), (v, S) => (i(), y("div", {
3314
- class: C(["relative", { "pointer-events-none!": v.disabled && !n.value }])
3314
+ class: x(["relative", { "pointer-events-none!": v.disabled && !n.value }])
3315
3315
  }, [
3316
3316
  n.value ? (i(), y("span", {
3317
3317
  key: 1,
3318
- class: C(o.value)
3319
- }, x(a.value), 3)) : (i(), y("div", {
3318
+ class: x(o.value)
3319
+ }, C(a.value), 3)) : (i(), y("div", {
3320
3320
  key: 0,
3321
- class: C(u.value)
3321
+ class: x(u.value)
3322
3322
  }, [
3323
3323
  w(v.$slots, "default")
3324
3324
  ], 2)),
3325
3325
  v.type === "number" ? (i(), y("span", {
3326
3326
  key: 2,
3327
- class: C(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
3328
- }, null, 2)) : H("", !0),
3327
+ class: x(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
3328
+ }, null, 2)) : M("", !0),
3329
3329
  b("form", {
3330
3330
  class: "w-full",
3331
3331
  "aria-hidden": v.formAriaHidden,
@@ -3340,7 +3340,7 @@ const qa = /* @__PURE__ */ h({
3340
3340
  tabindex: v.tabindex ?? void 0,
3341
3341
  "aria-label": v.ariaLabel ?? void 0,
3342
3342
  type: v.type,
3343
- class: C([
3343
+ class: x([
3344
3344
  p.value,
3345
3345
  { "opacity-0": !n.value, "appearance-textfield": !n.value && v.type === "number" }
3346
3346
  ]),
@@ -3392,11 +3392,11 @@ const el = E({ name: "zondicons-view-show", render: Ya }), tl = { class: "font-m
3392
3392
  class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
3393
3393
  }, [
3394
3394
  b("div", null, [
3395
- b("h3", tl, x(r.report.title), 1),
3395
+ b("h3", tl, C(r.report.title), 1),
3396
3396
  b("time", {
3397
3397
  datetime: r.date.toISOString(),
3398
3398
  class: "text-xs text-gray-700"
3399
- }, x(r.date.toLocaleTimeString()), 9, sl),
3399
+ }, C(r.date.toLocaleTimeString()), 9, sl),
3400
3400
  d(z, {
3401
3401
  class: "text-sm text-gray-500",
3402
3402
  text: r.report.description ?? l(Tt)(r.report)
@@ -3442,7 +3442,7 @@ const el = E({ name: "zondicons-view-show", render: Ya }), tl = { class: "font-m
3442
3442
  d(l(Xa), { class: "size-6 text-red-500" })
3443
3443
  ]),
3444
3444
  _: 1
3445
- }, 8, ["title", "aria-label"])) : H("", !0);
3445
+ }, 8, ["title", "aria-label"])) : M("", !0);
3446
3446
  }
3447
3447
  }), Gl = /* @__PURE__ */ h({
3448
3448
  __name: "ErrorMessage",
@@ -3507,9 +3507,9 @@ const el = E({ name: "zondicons-view-show", render: Ya }), tl = { class: "font-m
3507
3507
  },
3508
3508
  emits: ["update:modelValue"],
3509
3509
  setup(t) {
3510
- const s = K(t, ["label", "inputClass", "wrapperClass"]), e = ee("$inputRef"), [r, n] = Pe(), a = c(() => M("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => {
3510
+ const s = K(t, ["label", "inputClass", "wrapperClass"]), e = ee("$inputRef"), [r, n] = Pe(), a = c(() => H("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), u = c(() => {
3511
3511
  var o, p, g;
3512
- return M(
3512
+ return H(
3513
3513
  // eslint-disable-next-line vue/max-len
3514
3514
  "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",
3515
3515
  {
@@ -3532,12 +3532,12 @@ const el = E({ name: "zondicons-view-show", render: Ya }), tl = { class: "font-m
3532
3532
  return [
3533
3533
  d(be, { class: "block text-sm leading-6 font-medium text-gray-900" }),
3534
3534
  b("div", {
3535
- class: C(a.value)
3535
+ class: x(a.value)
3536
3536
  }, [
3537
3537
  d(ja, V(l(r), { class: u.value }), null, 16, ["class"]),
3538
3538
  (g = e.value) != null && g.errors ? (i(), y("div", nl, [
3539
3539
  d(l(De), { class: "size-5 text-red-500" })
3540
- ])) : H("", !0)
3540
+ ])) : M("", !0)
3541
3541
  ], 2),
3542
3542
  d(Et, { class: "mt-2 text-sm text-gray-600" }),
3543
3543
  d(ye, { class: "mt-2 text-sm text-red-600" })
@@ -3652,7 +3652,7 @@ export {
3652
3652
  yl as EventListenerPriorities,
3653
3653
  F as Events,
3654
3654
  Zs as EventsService,
3655
- Ht as Form,
3655
+ Mt as Form,
3656
3656
  or as FormController,
3657
3657
  bt as HeadlessButton,
3658
3658
  je as HeadlessInput,
@@ -3684,24 +3684,26 @@ export {
3684
3684
  ft as MOBILE_BREAKPOINT,
3685
3685
  z as Markdown,
3686
3686
  re as Modal,
3687
+ li as ModalComponent,
3688
+ ii as ModalsPortal,
3687
3689
  ta as ProgressBar,
3688
3690
  pa as PromptModal,
3689
3691
  zr as Select,
3690
- xt as SelectLabel,
3692
+ Ct as SelectLabel,
3691
3693
  Xe as SelectOption,
3692
- Ct as SelectOptions,
3694
+ xt as SelectOptions,
3693
3695
  kt as SelectTrigger,
3694
- Ce as Service,
3696
+ xe as Service,
3695
3697
  Ee as ServiceBootError,
3696
3698
  Or as Setting,
3697
3699
  ei as SettingsModal,
3698
- Ma as StartupCrash,
3700
+ Ha as StartupCrash,
3699
3701
  mt as Storage,
3700
3702
  Kr as Switch,
3701
3703
  ti as TextArea,
3702
3704
  La as Toast,
3703
3705
  P as UI,
3704
- xr as UIService,
3706
+ Cr as UIService,
3705
3707
  kl as __valueType,
3706
3708
  gr as aerogelDirectives,
3707
3709
  Ws as appNamespace,
@@ -3709,14 +3711,16 @@ export {
3709
3711
  ke as bootServices,
3710
3712
  Nl as bootstrap,
3711
3713
  Ia as bootstrapApplication,
3712
- M as classes,
3713
- Hl as computedAsync,
3714
- Ml as computedDebounce,
3714
+ H as classes,
3715
+ oi as closeModal,
3716
+ Ml as computedAsync,
3717
+ Hl as computedDebounce,
3718
+ ui as createModal,
3715
3719
  Il as dateInput,
3716
3720
  _l as defineDirective,
3717
- Cl as defineFormValidationRule,
3721
+ xl as defineFormValidationRule,
3718
3722
  wl as definePlugin,
3719
- xe as defineServiceState,
3723
+ Ce as defineServiceState,
3720
3724
  Js as defineServiceStore,
3721
3725
  $l as defineSettings,
3722
3726
  ri as dispatch,
@@ -3725,11 +3729,12 @@ export {
3725
3729
  Tt as getErrorMessage,
3726
3730
  mr as getMarkdownRouter,
3727
3731
  Qs as getPiniaStore,
3728
- Mr as hasSelectOptionLabel,
3732
+ Hr as hasSelectOptionLabel,
3729
3733
  sr as injectOrFail,
3730
3734
  tr as injectReactive,
3731
3735
  I as injectReactiveOrFail,
3732
3736
  Ys as installPlugins,
3737
+ ci as modals,
3733
3738
  Fl as numberInput,
3734
3739
  Ul as objectInput,
3735
3740
  Sl as onCleanMounted,
@@ -3749,17 +3754,18 @@ export {
3749
3754
  Ks as resetPiniaStore,
3750
3755
  pt as safeHtml,
3751
3756
  Vl as setMarkdownRouter,
3757
+ di as showModal,
3752
3758
  Ol as stringInput,
3753
3759
  gt as translate,
3754
3760
  k as translateWithDefault,
3755
3761
  mn as useAlertModal,
3756
3762
  hn as useConfirmModal,
3757
3763
  Fn as useErrorReportModal,
3758
- xl as useEvent,
3764
+ Cl as useEvent,
3759
3765
  dt as useForm,
3760
3766
  Pe as useInputAttrs,
3761
3767
  sa as useLoadingModal,
3762
- li as useModal,
3768
+ pi as useModal,
3763
3769
  ca as usePromptModal,
3764
3770
  ir as validate,
3765
3771
  lr as validateType,