@aerogel/core 0.1.1-next.1a964fb10cbea49d0eed8de0623c9b71ce8442f4 → 0.1.1-next.7fce7b4ce55cfb9c329a7746f571015aedc8e3bd

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