@aerogel/core 0.0.0-next.d197d66a9d339318d752a1d8a96b2919faba3003 → 0.0.0-next.d4f3ae130b52cace673d7c95681c19256ee1acb4

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,39 +1,39 @@
1
1
  var bt = Object.defineProperty;
2
2
  var yt = (t, s, e) => s in t ? bt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
3
- var w = (t, s, e) => yt(t, typeof s != "symbol" ? s + "" : s, e);
4
- import { markRaw as j, Comment as _t, Text as wt, Static as $t, inject as oe, reactive as ce, nextTick as Be, defineComponent as v, useAttrs as De, useSlots as ke, computed as u, createBlock as m, openBlock as i, h as xt, unref as l, mergeProps as T, withCtx as p, renderSlot as _, createPropsRestProxy as X, onUnmounted as de, ref as q, readonly as Me, onMounted as Ct, watch as Ee, toRaw as St, watchEffect as le, createVNode as f, normalizeProps as Y, guardReactiveProps as ee, createTextVNode as V, toDisplayString as x, normalizeClass as k, createElementBlock as b, Fragment as D, renderList as F, provide as te, resolveDynamicComponent as N, createCommentVNode as M, createElementVNode as y, toRef as Re, useTemplateRef as se, withModifiers as qe, withDirectives as Fe, vModelCheckbox as kt, normalizeStyle as Mt, createApp as Et, vModelText as Ht } from "vue";
5
- import { JSError as pe, tap as J, MagicObject as Ue, PromisedValue as W, Storage as U, objectOnly as ne, arrayFrom as Oe, isEmpty as ve, objectDeepClone as It, fail as K, facade as Z, arrayRemove as _e, getEnv as Lt, updateLocationQueryParameters as Rt, forever as Tt, toString as B, isDevelopment as G, isTesting as He, after as we, uuid as ae, required as Vt, isObject as $e, objectWithoutEmpty as Ne, stringMatchAll as Pt, isInstanceOf as jt, objectWithout as At, noop as zt, debounce as Bt, value as Dt, stringExcerpt as qt, arraySorted as Ft, ListenersManager as Ut, toError as Ot, round as Nt } from "@noeldemartin/utils";
3
+ var $ = (t, s, e) => yt(t, typeof s != "symbol" ? s + "" : s, e);
4
+ import { markRaw as A, Comment as _t, Text as wt, Static as $t, inject as oe, reactive as ue, nextTick as De, defineComponent as h, useAttrs as Be, useSlots as ke, computed as u, createBlock as m, openBlock as c, h as xt, unref as l, mergeProps as R, withCtx as p, renderSlot as w, createPropsRestProxy as Y, onUnmounted as pe, ref as q, readonly as Me, onMounted as Ct, watch as He, toRaw as St, watchEffect as ie, createVNode as f, normalizeProps as ee, guardReactiveProps as te, createTextVNode as V, toDisplayString as k, normalizeClass as S, createElementBlock as b, Fragment as B, renderList as F, provide as se, resolveDynamicComponent as N, createCommentVNode as M, createElementVNode as _, toRef as Le, useTemplateRef as re, withModifiers as qe, withDirectives as Fe, vModelCheckbox as kt, normalizeStyle as Mt, createApp as Ht, vModelText as Et } from "vue";
5
+ import { JSError as me, tap as Z, MagicObject as Ue, PromisedValue as K, Storage as U, objectOnly as ae, arrayFrom as Oe, isEmpty as ve, objectDeepClone as It, fail as Q, facade as G, arrayRemove as _e, getEnv as Tt, updateLocationQueryParameters as Lt, forever as Rt, toString as D, isDevelopment as X, isTesting as Ee, after as we, uuid as le, required as Vt, isObject as $e, objectWithoutEmpty as Ne, stringMatchAll as Pt, isInstanceOf as At, objectWithout as jt, noop as zt, debounce as Dt, value as Bt, stringExcerpt as qt, arraySorted as Ft, ListenersManager as Ut, toError as Ot, round as Nt } from "@noeldemartin/utils";
6
6
  import O from "virtual:aerogel";
7
7
  import { createPinia as Wt, setActivePinia as Kt, defineStore as Qt } from "pinia";
8
8
  import Jt from "dompurify";
9
- import { marked as Zt, Renderer as Te } from "marked";
10
- import { Primitive as Gt, SelectValue as Ve, SelectTrigger as Xt, SelectIcon as Yt, SelectItem as es, SelectItemText as ts, SelectPortal as ss, SelectContent as rs, SelectViewport as ns, SelectRoot as as, Label as os, useForwardExpose as Ie, DialogRoot as ls, DialogPortal as is, DialogContent as cs, DialogDescription as us, DialogOverlay as ds, DialogTitle as ps, ToastClose as ms, ToastRoot as fs, ToastProvider as hs, ToastViewport as gs, DropdownMenuItem as vs, DropdownMenuContent as bs, DropdownMenuRoot as ys, DropdownMenuTrigger as _s, DropdownMenuPortal as ws } from "reka-ui";
9
+ import { marked as Zt, Renderer as Re } from "marked";
10
+ import { Primitive as Gt, SelectValue as Ve, SelectTrigger as Xt, SelectIcon as Yt, SelectItem as es, SelectItemText as ts, SelectPortal as ss, SelectContent as rs, SelectViewport as ns, SelectRoot as as, Label as ls, useForwardExpose as Ie, DialogRoot as os, DialogPortal as is, DialogContent as cs, DialogDescription as us, DialogOverlay as ds, DialogTitle as ps, ToastClose as ms, ToastRoot as fs, ToastProvider as hs, ToastViewport as gs, DropdownMenuItem as vs, DropdownMenuContent as bs, DropdownMenuRoot as ys, DropdownMenuTrigger as _s, DropdownMenuPortal as ws } from "reka-ui";
11
11
  import $s from "clsx";
12
12
  import { cva as xs } from "class-variance-authority";
13
13
  import { twMerge as Cs } from "tailwind-merge";
14
- class xe extends pe {
14
+ class xe extends me {
15
15
  constructor(s, e) {
16
16
  super(`Service '${s}' failed booting`, { cause: e });
17
17
  }
18
18
  }
19
- let Le = null;
19
+ let Te = null;
20
20
  function We() {
21
- return Le ?? Ss();
21
+ return Te ?? Ss();
22
22
  }
23
23
  function Ss() {
24
- return J(Wt(), (t) => {
25
- Le = t, Kt(t);
24
+ return Z(Wt(), (t) => {
25
+ Te = t, Kt(t);
26
26
  });
27
27
  }
28
28
  function ks() {
29
- return Le ?? We();
29
+ return Te ?? We();
30
30
  }
31
31
  function Ms(t, s) {
32
32
  return We(), Qt(t, s)();
33
33
  }
34
- function me(t) {
34
+ function fe(t) {
35
35
  var s;
36
- return s = class extends fe {
36
+ return s = class extends he {
37
37
  usesStore() {
38
38
  return !0;
39
39
  }
@@ -67,19 +67,19 @@ To fix this problem, declare your initialState as a function instead.`
67
67
  var r;
68
68
  return ((r = t.restore) == null ? void 0 : r.call(t, e)) ?? e;
69
69
  }
70
- }, w(s, "persist", t.persist ?? []), s;
70
+ }, $(s, "persist", t.persist ?? []), s;
71
71
  }
72
72
  var ye;
73
- let fe = (ye = class extends Ue {
73
+ let he = (ye = class extends Ue {
74
74
  constructor() {
75
75
  super();
76
- w(this, "_name");
77
- w(this, "_booted");
78
- w(this, "_computedStateKeys");
79
- w(this, "_watchers");
80
- w(this, "_store");
76
+ $(this, "_name");
77
+ $(this, "_booted");
78
+ $(this, "_computedStateKeys");
79
+ $(this, "_watchers");
80
+ $(this, "_store");
81
81
  const e = this.getComputedStateDefinition();
82
- this._name = this.getName() ?? new.target.name, this._booted = new W(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Ms(this._name, {
82
+ this._name = this.getName() ?? new.target.name, this._booted = new K(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Ms(this._name, {
83
83
  state: () => this.getInitialState(),
84
84
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
85
85
  getters: e
@@ -113,13 +113,13 @@ let fe = (ye = class extends Ue {
113
113
  setState(e, r) {
114
114
  if (!this._store)
115
115
  return;
116
- const n = typeof e == "string" ? { [e]: r } : e, a = ne(this._store.$state, Object.keys(n));
116
+ const n = typeof e == "string" ? { [e]: r } : e, a = ae(this._store.$state, Object.keys(n));
117
117
  Object.assign(this._store.$state, n), this.onStateUpdated(n, a);
118
118
  }
119
119
  updatePersistedState(e) {
120
120
  if (!this._store)
121
121
  return;
122
- const r = Oe(e), n = ne(this._store.$state, r);
122
+ const r = Oe(e), n = ae(this._store.$state, r);
123
123
  ve(n) || this.onPersistentStateUpdated(n);
124
124
  }
125
125
  __get(e) {
@@ -129,7 +129,7 @@ let fe = (ye = class extends Ue {
129
129
  this.setState({ [e]: r });
130
130
  }
131
131
  onStateUpdated(e, r) {
132
- const n = ne(e, this.static("persist"));
132
+ const n = ae(e, this.static("persist"));
133
133
  ve(n) || this.onPersistentStateUpdated(n);
134
134
  for (const a in e) {
135
135
  const o = this._watchers[a];
@@ -176,22 +176,22 @@ let fe = (ye = class extends Ue {
176
176
  this.setState(this.deserializePersistedState(e));
177
177
  return;
178
178
  }
179
- U.set(this._name, ne(this.getState(), this.static("persist")));
179
+ U.set(this._name, ae(this.getState(), this.static("persist")));
180
180
  }
181
181
  }
182
182
  requireStore() {
183
- return this._store ? this._store : K(`Failed getting '${this._name}' store`);
183
+ return this._store ? this._store : Q(`Failed getting '${this._name}' store`);
184
184
  }
185
- }, w(ye, "persist", []), ye);
186
- const ga = {
185
+ }, $(ye, "persist", []), ye);
186
+ const ya = {
187
187
  Low: -256,
188
188
  Default: 0,
189
189
  High: 256
190
190
  };
191
- class Es extends fe {
191
+ class Hs extends he {
192
192
  constructor() {
193
193
  super(...arguments);
194
- w(this, "listeners", {});
194
+ $(this, "listeners", {});
195
195
  }
196
196
  async boot() {
197
197
  Object.entries(globalThis.__aerogelEvents__ ?? {}).forEach(([e, r]) => (
@@ -203,7 +203,7 @@ class Es extends fe {
203
203
  var a;
204
204
  const n = this.listeners[e] ?? { priorities: [], handlers: {} };
205
205
  for (const o of n.priorities)
206
- await Promise.all(((a = n.handlers[o]) == null ? void 0 : a.map((c) => c(r))) ?? []);
206
+ await Promise.all(((a = n.handlers[o]) == null ? void 0 : a.map((i) => i(r))) ?? []);
207
207
  }
208
208
  // prettier-ignore
209
209
  /* eslint-enable max-len */
@@ -215,11 +215,11 @@ class Es extends fe {
215
215
  /* eslint-enable max-len */
216
216
  once(e, r, n) {
217
217
  let a = null;
218
- const o = typeof r == "function" ? {} : r, c = typeof r == "function" ? r : n;
219
- return J(
218
+ const o = typeof r == "function" ? {} : r, i = typeof r == "function" ? r : n;
219
+ return Z(
220
220
  () => a && this.off(e, a),
221
221
  (d) => {
222
- a = (...g) => (d(), c(...g)), this.registerListener(e, o, c);
222
+ a = (...g) => (d(), i(...g)), this.registerListener(e, o, i);
223
223
  }
224
224
  );
225
225
  }
@@ -229,28 +229,28 @@ class Es extends fe {
229
229
  if (!n)
230
230
  return;
231
231
  const a = [...n.priorities];
232
- for (const c of a)
233
- _e(n.handlers[c] ?? [], r), ((o = n.handlers[c]) == null ? void 0 : o.length) === 0 && (delete n.handlers[c], _e(n.priorities, c));
232
+ for (const i of a)
233
+ _e(n.handlers[i] ?? [], r), ((o = n.handlers[i]) == null ? void 0 : o.length) === 0 && (delete n.handlers[i], _e(n.priorities, i));
234
234
  n.priorities.length === 0 && delete this.listeners[e];
235
235
  }
236
236
  registerListener(e, r, n) {
237
- var d, g, $;
237
+ var d, g, x;
238
238
  const a = r.priority ?? 0;
239
239
  e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
240
- const o = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? K(`priorities missing for event '${e}'`), c = ((g = this.listeners[e]) == null ? void 0 : g.handlers) ?? K(`handlers missing for event '${e}'`);
241
- o.includes(a) || (o.push(a), o.sort((h, C) => C - h), c[a] = []), ($ = c[a]) == null || $.push(n);
240
+ const o = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? Q(`priorities missing for event '${e}'`), i = ((g = this.listeners[e]) == null ? void 0 : g.handlers) ?? Q(`handlers missing for event '${e}'`);
241
+ o.includes(a) || (o.push(a), o.sort((v, y) => y - v), i[a] = []), (x = i[a]) == null || x.push(n);
242
242
  }
243
243
  }
244
- const I = Z(Es);
245
- function va(t) {
244
+ const T = G(Hs);
245
+ function _a(t) {
246
246
  return t;
247
247
  }
248
- const Hs = me({
248
+ const Es = fe({
249
249
  name: "app",
250
250
  initialState: {
251
251
  plugins: {},
252
252
  instance: null,
253
- environment: Lt() ?? "development",
253
+ environment: Tt() ?? "development",
254
254
  version: O.version,
255
255
  sourceUrl: O.sourceUrl,
256
256
  settings: []
@@ -267,12 +267,12 @@ const Hs = me({
267
267
  }
268
268
  }
269
269
  });
270
- class Is extends Hs {
270
+ class Is extends Es {
271
271
  constructor() {
272
272
  super(...arguments);
273
- w(this, "name", O.name);
274
- w(this, "ready", new W());
275
- w(this, "mounted", new W());
273
+ $(this, "name", O.name);
274
+ $(this, "ready", new K());
275
+ $(this, "mounted", new K());
276
276
  }
277
277
  isReady() {
278
278
  return this.ready.isResolved();
@@ -281,13 +281,13 @@ class Is extends Hs {
281
281
  return this.mounted.isResolved();
282
282
  }
283
283
  addSetting(e) {
284
- this.settings.push(j(e));
284
+ this.settings.push(A(e));
285
285
  }
286
286
  async whenReady(e) {
287
287
  return await this.ready.then(e);
288
288
  }
289
289
  async reload(e) {
290
- e && Rt(e), location.reload(), await Tt();
290
+ e && Lt(e), location.reload(), await Rt();
291
291
  }
292
292
  plugin(e) {
293
293
  return this.plugins[e] ?? null;
@@ -297,14 +297,14 @@ class Is extends Hs {
297
297
  return ((r = this.instance) == null ? void 0 : r.config.globalProperties[e]) ?? null;
298
298
  }
299
299
  async boot() {
300
- I.once("application-ready", () => this.ready.resolve()), I.once("application-mounted", () => this.mounted.resolve());
300
+ T.once("application-ready", () => this.ready.resolve()), T.once("application-mounted", () => this.mounted.resolve());
301
301
  }
302
302
  }
303
- const z = Z(Is);
304
- function ba(t) {
303
+ const z = G(Is);
304
+ function wa(t) {
305
305
  return t;
306
306
  }
307
- async function Ls(t, ...s) {
307
+ async function Ts(t, ...s) {
308
308
  z.setState(
309
309
  "plugins",
310
310
  t.reduce(
@@ -313,55 +313,55 @@ async function Ls(t, ...s) {
313
313
  )
314
314
  ), await Promise.all(t.map((e) => e.install(...s)) ?? []);
315
315
  }
316
- function Rs(t) {
317
- return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${B(r)}"`, "");
316
+ function Ls(t) {
317
+ return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${D(r)}"`, "");
318
318
  }
319
- function ya(t) {
319
+ function $a(t) {
320
320
  return t;
321
321
  }
322
- function Ts(t) {
322
+ function Rs(t) {
323
323
  const s = oe(t);
324
- return s ? ce(s) : void 0;
324
+ return s ? ue(s) : void 0;
325
325
  }
326
- function H(t, s) {
327
- return Ts(t) ?? K(s ?? `Could not resolve '${B(t)}' injection key`);
326
+ function E(t, s) {
327
+ return Rs(t) ?? Q(s ?? `Could not resolve '${D(t)}' injection key`);
328
328
  }
329
329
  function Vs(t, s) {
330
- return oe(t) ?? K(s ?? `Could not resolve '${B(t)}' injection key`);
330
+ return oe(t) ?? Q(s ?? `Could not resolve '${D(t)}' injection key`);
331
331
  }
332
332
  function Ke(t) {
333
333
  return typeof t == "string" ? t : t.type === _t ? "" : t.type === wt || t.type === $t ? t.children : t.type === "br" ? `
334
334
 
335
- ` : `<${t.type} ${Rs(t)}>${Array.from(t.children).map(Ke).join("")}</${t.type}>`;
335
+ ` : `<${t.type} ${Ls(t)}>${Array.from(t.children).map(Ke).join("")}</${t.type}>`;
336
336
  }
337
337
  const be = /* @__PURE__ */ new WeakMap(), Ps = {
338
- mounted(t, { value: s }) {
339
- const e = typeof s == "function" ? s : null, r = () => {
340
- const n = t.getBoundingClientRect();
341
- t.style.setProperty("--width", `${n.width}px`), t.style.setProperty("--height", `${n.height}px`), e == null || e({ width: n.width, height: n.height });
338
+ mounted(t, { value: s, modifiers: e }) {
339
+ const r = typeof s == "function" ? s : null, n = () => {
340
+ const a = t.getBoundingClientRect();
341
+ 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 });
342
342
  };
343
- be.set(t, J(new ResizeObserver(r)).observe(t)), r();
343
+ e.watch && be.set(t, Z(new ResizeObserver(n)).observe(t)), n();
344
344
  },
345
345
  unmounted(t) {
346
346
  var s;
347
347
  (s = be.get(t)) == null || s.unobserve(t), be.delete(t);
348
348
  }
349
- }, js = {
350
- measure: Ps
351
349
  }, As = {
350
+ measure: Ps
351
+ }, js = {
352
352
  install(t, s) {
353
353
  const e = {
354
- ...js,
354
+ ...As,
355
355
  ...s.directives
356
356
  };
357
357
  for (const [r, n] of Object.entries(e))
358
358
  t.directive(r, n);
359
359
  }
360
360
  };
361
- class zs extends fe {
361
+ class zs extends he {
362
362
  constructor() {
363
363
  super(...arguments);
364
- w(this, "cache");
364
+ $(this, "cache");
365
365
  }
366
366
  async get(e) {
367
367
  return await (await this.open()).match(e) ?? null;
@@ -374,30 +374,30 @@ class zs extends fe {
374
374
  (await n.keys(e)).length !== 0 && await n.put(e, r);
375
375
  }
376
376
  async open() {
377
- return this.cache = this.cache ?? J(new W(), (e) => {
377
+ return this.cache = this.cache ?? Z(new K(), (e) => {
378
378
  caches.open("app").then((r) => e.resolve(r));
379
379
  });
380
380
  }
381
381
  }
382
- const _a = Z(zs);
383
- class Bs extends fe {
382
+ const xa = G(zs);
383
+ class Ds extends he {
384
384
  async purge() {
385
- await I.emit("purge-storage");
385
+ await T.emit("purge-storage");
386
386
  }
387
387
  }
388
- const Ds = Z(Bs);
389
- function wa(t, s) {
388
+ const Bs = G(Ds);
389
+ function Ca(t, s) {
390
390
  return {
391
391
  ...t,
392
- ...ne(s, Object.keys(t))
392
+ ...ae(s, Object.keys(t))
393
393
  };
394
394
  }
395
395
  const qs = {
396
396
  $app: z,
397
- $events: I,
398
- $storage: Ds
397
+ $events: T,
398
+ $storage: Bs
399
399
  };
400
- async function he(t, s) {
400
+ async function ge(t, s) {
401
401
  await Promise.all(
402
402
  Object.entries(s).map(async ([e, r]) => {
403
403
  await r.launch().catch((n) => {
@@ -405,7 +405,7 @@ async function he(t, s) {
405
405
  return (o = (a = t.config).errorHandler) == null ? void 0 : o.call(a, n, null, `Failed launching ${e}.`);
406
406
  });
407
407
  })
408
- ), Object.assign(t.config.globalProperties, s), (G() || He()) && Object.assign(globalThis, s);
408
+ ), Object.assign(t.config.globalProperties, s), (X() || Ee()) && Object.assign(globalThis, s);
409
409
  }
410
410
  const Fs = {
411
411
  async install(t, s) {
@@ -414,16 +414,16 @@ const Fs = {
414
414
  ...qs,
415
415
  ...s.services
416
416
  };
417
- t.use(ks()), (r = s.settings) == null || r.forEach((n) => z.addSetting(n)), await he(t, e);
417
+ t.use(ks()), (r = s.settings) == null || r.forEach((n) => z.addSetting(n)), await ge(t, e);
418
418
  }
419
- }, Qe = 768, ue = {
419
+ }, Qe = 768, de = {
420
420
  Mobile: "mobile",
421
421
  Desktop: "desktop"
422
422
  };
423
423
  function Je() {
424
- return globalThis.innerWidth > Qe ? ue.Desktop : ue.Mobile;
424
+ return globalThis.innerWidth > Qe ? de.Desktop : de.Mobile;
425
425
  }
426
- const Us = me({
426
+ const Us = fe({
427
427
  name: "ui",
428
428
  initialState: {
429
429
  modals: [],
@@ -431,16 +431,16 @@ const Us = me({
431
431
  layout: Je()
432
432
  },
433
433
  computed: {
434
- desktop: ({ layout: t }) => t === ue.Desktop,
435
- mobile: ({ layout: t }) => t === ue.Mobile,
434
+ desktop: ({ layout: t }) => t === de.Desktop,
435
+ mobile: ({ layout: t }) => t === de.Mobile,
436
436
  openModals: ({ modals: t }) => t.filter(({ closing: s }) => !s)
437
437
  }
438
438
  });
439
439
  class Os extends Us {
440
440
  constructor() {
441
441
  super(...arguments);
442
- w(this, "modalCallbacks", {});
443
- w(this, "components", {});
442
+ $(this, "modalCallbacks", {});
443
+ $(this, "components", {});
444
444
  }
445
445
  registerComponent(e, r) {
446
446
  this.components[e] = r;
@@ -449,7 +449,7 @@ class Os extends Us {
449
449
  return this.components[e] ?? null;
450
450
  }
451
451
  requireComponent(e) {
452
- return this.resolveComponent(e) ?? K(`UI Component '${e}' is not defined!`);
452
+ return this.resolveComponent(e) ?? Q(`UI Component '${e}' is not defined!`);
453
453
  }
454
454
  alert(e, r) {
455
455
  const n = () => typeof r != "string" ? { message: e } : {
@@ -470,16 +470,16 @@ class Os extends Us {
470
470
  title: e,
471
471
  message: r,
472
472
  required: !!(n != null && n.required)
473
- }, c = await this.modalForm(this.requireComponent("confirm-modal"), o), d = typeof c == "object" ? c[0] : c ?? !1, g = typeof c == "object" ? c[1] : Object.entries(o.checkboxes ?? {}).reduce(
474
- ($, [h, { default: C }]) => ({
475
- [h]: C ?? !1,
476
- ...$
473
+ }, i = await this.modalForm(this.requireComponent("confirm-modal"), o), d = typeof i == "object" ? i[0] : i ?? !1, g = typeof i == "object" ? i[1] : Object.entries(o.checkboxes ?? {}).reduce(
474
+ (x, [v, { default: y }]) => ({
475
+ [v]: y ?? !1,
476
+ ...x
477
477
  }),
478
478
  {}
479
479
  );
480
- for (const [$, h] of Object.entries(o.checkboxes ?? {}))
481
- if (!(!h.required || g[$]))
482
- return d && G() && console.warn(`Confirmed confirm modal was suppressed because required '${$}' checkbox was missing`), [!1, g];
480
+ for (const [x, v] of Object.entries(o.checkboxes ?? {}))
481
+ if (!(!v.required || g[x]))
482
+ return d && X() && console.warn(`Confirmed confirm modal was suppressed because required '${x}' checkbox was missing`), [!1, g];
483
483
  return "checkboxes" in o ? [d, g] : d;
484
484
  }
485
485
  async prompt(e, r, n) {
@@ -490,8 +490,8 @@ class Os extends Us {
490
490
  title: e,
491
491
  message: r,
492
492
  ...n ?? {}
493
- }, c = await this.modalForm(this.requireComponent("prompt-modal"), o());
494
- return (a && typeof c == "string" ? c == null ? void 0 : c.trim() : c) ?? null;
493
+ }, i = await this.modalForm(this.requireComponent("prompt-modal"), o());
494
+ return (a && typeof i == "string" ? i == null ? void 0 : i.trim() : i) ?? null;
495
495
  }
496
496
  async loading(e, r) {
497
497
  const n = (g) => typeof g == "function" ? Promise.resolve(g()) : g, a = () => typeof e == "string" ? {
@@ -500,7 +500,7 @@ class Os extends Us {
500
500
  } : typeof e == "function" || e instanceof Promise ? { operationPromise: n(e) } : {
501
501
  props: e,
502
502
  operationPromise: n(r)
503
- }, { operationPromise: o, props: c } = a(), d = await this.modal(this.requireComponent("loading-modal"), c);
503
+ }, { operationPromise: o, props: i } = a(), d = await this.modal(this.requireComponent("loading-modal"), i);
504
504
  try {
505
505
  const g = await o;
506
506
  return await we({ ms: 500 }), g;
@@ -510,22 +510,22 @@ class Os extends Us {
510
510
  }
511
511
  toast(e, r = {}) {
512
512
  const { component: n, ...a } = r, o = {
513
- id: ae(),
513
+ id: le(),
514
514
  properties: { message: e, ...a },
515
- component: j(n ?? this.requireComponent("toast"))
515
+ component: A(n ?? this.requireComponent("toast"))
516
516
  };
517
517
  this.setState("toasts", this.toasts.concat(o));
518
518
  }
519
519
  async modal(e, r) {
520
- const n = ae(), a = {}, o = {
520
+ const n = le(), a = {}, o = {
521
521
  id: n,
522
522
  closing: !1,
523
523
  properties: r ?? {},
524
- component: j(e),
524
+ component: A(e),
525
525
  beforeClose: new Promise((d) => a.willClose = d),
526
526
  afterClose: new Promise((d) => a.hasClosed = d)
527
- }, c = this.modals.concat(o);
528
- return this.modalCallbacks[o.id] = a, this.setState({ modals: c }), await Be(), o;
527
+ }, i = this.modals.concat(o);
528
+ return this.modalCallbacks[o.id] = a, this.setState({ modals: i }), await De(), o;
529
529
  }
530
530
  async modalForm(e, r) {
531
531
  return await (await this.modal(e, r)).beforeClose;
@@ -535,7 +535,7 @@ class Os extends Us {
535
535
  await this.removeModal(e, r);
536
536
  return;
537
537
  }
538
- await I.emit("close-modal", { id: e, result: r });
538
+ await T.emit("close-modal", { id: e, result: r });
539
539
  }
540
540
  async closeAllModals() {
541
541
  for (; this.modals.length > 0; )
@@ -552,16 +552,16 @@ class Os extends Us {
552
552
  ), (a = (n = this.modalCallbacks[e]) == null ? void 0 : n.hasClosed) == null || a.call(n, r), delete this.modalCallbacks[e];
553
553
  }
554
554
  watchModalEvents() {
555
- I.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
555
+ T.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
556
556
  var a, o;
557
- const n = this.modals.find((c) => e === c.id);
557
+ const n = this.modals.find((i) => e === i.id);
558
558
  n && (n.closing = !0), (o = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || o.call(a, r);
559
- }), I.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
559
+ }), T.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
560
560
  await this.removeModal(e, r);
561
561
  });
562
562
  }
563
563
  watchMountedEvent() {
564
- I.once("application-mounted", async () => {
564
+ T.once("application-mounted", async () => {
565
565
  if (!globalThis.document || !globalThis.getComputedStyle)
566
566
  return;
567
567
  const e = globalThis.document.getElementById("splash");
@@ -574,7 +574,7 @@ class Os extends Us {
574
574
  globalThis.matchMedia(`(min-width: ${Qe}px)`).addEventListener("change", () => this.setState({ layout: Je() }));
575
575
  }
576
576
  }
577
- const R = Z(Os);
577
+ const L = G(Os);
578
578
  class Ns {
579
579
  constructor(s, e) {
580
580
  this.locale = s, this.fallbackLocale = e;
@@ -595,13 +595,13 @@ class Ns {
595
595
  return ["en"];
596
596
  }
597
597
  translate(s) {
598
- return G() && console.warn("Lang provider is missing"), s;
598
+ return X() && console.warn("Lang provider is missing"), s;
599
599
  }
600
600
  translateWithDefault(s, e) {
601
- return G() && console.warn("Lang provider is missing"), e;
601
+ return X() && console.warn("Lang provider is missing"), e;
602
602
  }
603
603
  }
604
- const Ws = me({
604
+ const Ws = fe({
605
605
  name: "lang",
606
606
  persist: ["locale", "fallbackLocale"],
607
607
  initialState: {
@@ -613,7 +613,7 @@ const Ws = me({
613
613
  class Ks extends Ws {
614
614
  constructor() {
615
615
  super();
616
- w(this, "provider");
616
+ $(this, "provider");
617
617
  this.provider = new Ns(
618
618
  this.getState("locale") ?? this.getBrowserLocale(),
619
619
  this.getState("fallbackLocale")
@@ -642,7 +642,7 @@ class Ks extends Ws {
642
642
  );
643
643
  }
644
644
  }
645
- const Q = Z(Ks), Ze = Q.translate.bind(Q), S = Q.translateWithDefault.bind(Q), Qs = me({
645
+ const J = G(Ks), Ze = J.translate.bind(J), C = J.translateWithDefault.bind(J), Qs = fe({
646
646
  name: "errors",
647
647
  initialState: {
648
648
  logs: [],
@@ -657,8 +657,8 @@ const Q = Z(Ks), Ze = Q.translate.bind(Q), S = Q.translateWithDefault.bind(Q), Q
657
657
  class Js extends Qs {
658
658
  constructor() {
659
659
  super(...arguments);
660
- w(this, "forceReporting", !1);
661
- w(this, "enabled", !0);
660
+ $(this, "forceReporting", !1);
661
+ $(this, "enabled", !0);
662
662
  }
663
663
  enable() {
664
664
  this.enabled = !0;
@@ -669,13 +669,13 @@ class Js extends Qs {
669
669
  async inspect(e) {
670
670
  const r = Array.isArray(e) ? e : [await this.createErrorReport(e)];
671
671
  if (r.length === 0) {
672
- R.alert(S("errors.inspectEmpty", "Nothing to inspect!"));
672
+ L.alert(C("errors.inspectEmpty", "Nothing to inspect!"));
673
673
  return;
674
674
  }
675
- R.modal(R.requireComponent("error-report-modal"), { reports: r });
675
+ L.modal(L.requireComponent("error-report-modal"), { reports: r });
676
676
  }
677
677
  async report(e, r) {
678
- if (await I.emit("error", { error: e, message: r }), He("unit") || (G() && this.logError(e), !this.enabled))
678
+ if (await T.emit("error", { error: e, message: r }), Ee("unit") || (X() && this.logError(e), !this.enabled))
679
679
  throw e;
680
680
  if (!z.isMounted()) {
681
681
  const o = await this.createStartupErrorReport(e);
@@ -687,15 +687,15 @@ class Js extends Qs {
687
687
  seen: !1,
688
688
  date: /* @__PURE__ */ new Date()
689
689
  };
690
- R.toast(
691
- r ?? S("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
690
+ L.toast(
691
+ r ?? C("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
692
692
  {
693
693
  variant: "danger",
694
694
  actions: [
695
695
  {
696
- label: S("errors.viewDetails", "View details"),
696
+ label: C("errors.viewDetails", "View details"),
697
697
  dismiss: !0,
698
- click: () => R.modal(R.requireComponent("error-report-modal"), { reports: [n] })
698
+ click: () => L.modal(L.requireComponent("error-report-modal"), { reports: [n] })
699
699
  }
700
700
  ]
701
701
  }
@@ -721,16 +721,16 @@ class Js extends Qs {
721
721
  console.error(e), $e(e) && e.cause && this.logError(e.cause);
722
722
  }
723
723
  async createErrorReport(e) {
724
- return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof pe ? this.createErrorReportFromError(e) : $e(e) ? Ne({
725
- title: B(
726
- e.name ?? e.title ?? S("errors.unknown", "Unknown Error")
724
+ return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof me ? this.createErrorReportFromError(e) : $e(e) ? Ne({
725
+ title: D(
726
+ e.name ?? e.title ?? C("errors.unknown", "Unknown Error")
727
727
  ),
728
- description: B(
729
- e.message ?? e.description ?? S("errors.unknownDescription", "Unknown error object")
728
+ description: D(
729
+ e.message ?? e.description ?? C("errors.unknownDescription", "Unknown error object")
730
730
  ),
731
731
  error: e
732
732
  }) : {
733
- title: S("errors.unknown", "Unknown Error"),
733
+ title: C("errors.unknown", "Unknown Error"),
734
734
  error: e
735
735
  };
736
736
  }
@@ -747,8 +747,8 @@ class Js extends Qs {
747
747
  };
748
748
  }
749
749
  }
750
- const Ge = Z(Js), Xe = [];
751
- function $a(t) {
750
+ const Ge = G(Js), Xe = [];
751
+ function Sa(t) {
752
752
  Xe.push(t);
753
753
  }
754
754
  function Zs(t) {
@@ -757,24 +757,24 @@ function Zs(t) {
757
757
  if (e)
758
758
  return e;
759
759
  }
760
- return typeof t == "string" ? t : t instanceof Error || t instanceof pe ? t.message : $e(t) ? B(t.message ?? t.description ?? "Unknown error object") : S("errors.unknown", "Unknown Error");
760
+ return typeof t == "string" ? t : t instanceof Error || t instanceof me ? t.message : $e(t) ? D(t.message ?? t.description ?? "Unknown error object") : C("errors.unknown", "Unknown Error");
761
761
  }
762
- class Pe extends pe {
762
+ class Pe extends me {
763
763
  }
764
764
  const Gs = { $errors: Ge }, Xs = (t) => (Ge.report(t), !0);
765
765
  function Ys(t, s = () => !1) {
766
766
  const e = (r) => s(r) || Xs(r);
767
- t.config.errorHandler = e, globalThis.onerror = (r, n, a, o, c) => e(c ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
767
+ t.config.errorHandler = e, globalThis.onerror = (r, n, a, o, i) => e(i ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
768
768
  }
769
769
  const er = {
770
770
  async install(t, s) {
771
- Ys(t, s.handleError), await he(t, Gs);
771
+ Ys(t, s.handleError), await ge(t, Gs);
772
772
  }
773
773
  };
774
774
  function tr() {
775
- return J(new Te(), (t) => {
775
+ return Z(new Re(), (t) => {
776
776
  t.link = function(s) {
777
- return Te.prototype.link.apply(this, [s]).replace("<a", '<a target="_blank"');
777
+ return Re.prototype.link.apply(this, [s]).replace("<a", '<a target="_blank"');
778
778
  };
779
779
  });
780
780
  }
@@ -791,7 +791,7 @@ function rr(t) {
791
791
  function nr(t) {
792
792
  return Jt.sanitize(t, { ADD_ATTR: ["target"] });
793
793
  }
794
- const P = /* @__PURE__ */ v({
794
+ const ar = /* @__PURE__ */ h({
795
795
  __name: "Markdown",
796
796
  props: {
797
797
  as: {},
@@ -803,28 +803,33 @@ const P = /* @__PURE__ */ v({
803
803
  actions: {}
804
804
  },
805
805
  setup(t) {
806
- const s = De(), e = ke(), r = u(() => e.default ? e.default().map(Ke).join("") : t.text ?? (t.langKey && (t.langDefault ? S(t.langKey, t.langDefault, t.langParams ?? {}) : Ze(t.langKey, t.langParams ?? {})))), n = u(() => {
806
+ const s = Be(), e = ke(), r = u(() => e.default ? e.default().map(Ke).join("") : t.text ?? (t.langKey && (t.langDefault ? C(t.langKey, t.langDefault, t.langParams ?? {}) : Ze(t.langKey, t.langParams ?? {})))), n = u(() => {
807
807
  if (!r.value)
808
808
  return null;
809
- let c = rr(r.value);
810
- return t.inline && (c = c.replace("<p>", "<span>").replace("</p>", "</span>")), c;
809
+ let i = rr(r.value);
810
+ return t.inline && (i = i.replace("<p>", "<span>").replace("</p>", "</span>")), i;
811
811
  }), a = () => xt(t.as ?? (t.inline ? "span" : "div"), {
812
812
  innerHTML: n.value,
813
813
  onClick: o,
814
814
  ...s,
815
815
  class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
816
816
  });
817
- async function o(c) {
818
- var g, $;
819
- const { target: d } = c;
820
- if (jt(d, HTMLElement) && d.dataset.markdownAction) {
821
- ($ = (g = t.actions) == null ? void 0 : g[d.dataset.markdownAction]) == null || $.call(g);
817
+ async function o(i) {
818
+ var g, x;
819
+ const { target: d } = i;
820
+ if (At(d, HTMLElement) && d.dataset.markdownAction) {
821
+ (x = (g = t.actions) == null ? void 0 : g[d.dataset.markdownAction]) == null || x.call(g);
822
822
  return;
823
823
  }
824
824
  }
825
- return (c, d) => (i(), m(a));
826
- }
827
- }), ar = /* @__PURE__ */ v({
825
+ return (i, d) => (c(), m(a));
826
+ }
827
+ }), lr = (t, s) => {
828
+ const e = t.__vccOpts || t;
829
+ for (const [r, n] of s)
830
+ e[r] = n;
831
+ return e;
832
+ }, P = /* @__PURE__ */ lr(ar, [["__scopeId", "data-v-ba56d181"]]), or = /* @__PURE__ */ h({
828
833
  __name: "HeadlessButton",
829
834
  props: {
830
835
  class: {},
@@ -841,7 +846,7 @@ const P = /* @__PURE__ */ v({
841
846
  },
842
847
  setup(t) {
843
848
  const s = u(() => t.as ? { as: t.as } : t.route ? {
844
- as: R.resolveComponent("router-link") ?? "a",
849
+ as: L.resolveComponent("router-link") ?? "a",
845
850
  to: Ne({
846
851
  name: t.route,
847
852
  params: t.routeParams,
@@ -855,28 +860,26 @@ const P = /* @__PURE__ */ v({
855
860
  as: "button",
856
861
  type: t.submit ? "submit" : "button"
857
862
  });
858
- return (e, r) => (i(), m(l(Gt), T({
863
+ return (e, r) => (c(), m(l(Gt), R({
859
864
  class: t.class,
860
865
  "as-child": e.asChild,
861
866
  disabled: e.disabled
862
867
  }, s.value), {
863
868
  default: p(() => [
864
- _(e.$slots, "default")
869
+ w(e.$slots, "default")
865
870
  ]),
866
871
  _: 3
867
872
  }, 16, ["class", "as-child", "disabled"]));
868
873
  }
869
874
  });
870
875
  function Ye(t, s) {
871
- return u(() => {
872
- const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, o = xs(n, a), c = Object.entries(r).reduce((d, [g, $]) => (d[g] = l($), d), {});
873
- return E(o(c), l(e));
874
- });
876
+ const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, o = xs(n, a);
877
+ return H(o(r), l(e));
875
878
  }
876
- function E(...t) {
879
+ function H(...t) {
877
880
  return Cs($s(t));
878
881
  }
879
- const A = /* @__PURE__ */ v({
882
+ const j = /* @__PURE__ */ h({
880
883
  __name: "Button",
881
884
  props: {
882
885
  class: {},
@@ -892,10 +895,10 @@ const A = /* @__PURE__ */ v({
892
895
  as: {}
893
896
  },
894
897
  setup(t) {
895
- const s = X(t, ["class", "size", "variant", "disabled"]), e = Ye(
898
+ const s = Y(t, ["class", "size", "variant", "disabled"]), e = u(() => Ye(
896
899
  { baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
897
900
  {
898
- baseClasses: "flex items-center justify-center gap-1 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
901
+ baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
899
902
  variants: {
900
903
  variant: {
901
904
  default: "bg-primary-600 text-white focus-visible:outline-primary-600",
@@ -903,12 +906,12 @@ const A = /* @__PURE__ */ v({
903
906
  danger: "bg-red-600 text-white focus-visible:outline-red-600",
904
907
  ghost: "bg-transparent",
905
908
  outline: "bg-transparent text-primary-600 ring-primary-600",
906
- link: "text-primary-600"
909
+ link: "text-links"
907
910
  },
908
911
  size: {
909
- small: "text-xs",
910
- default: "text-sm",
911
- large: "text-base",
912
+ small: "text-xs min-h-6",
913
+ default: "text-sm min-h-8",
914
+ large: "text-base min-h-10",
912
915
  icon: "rounded-full p-2.5"
913
916
  },
914
917
  disabled: {
@@ -919,7 +922,7 @@ const A = /* @__PURE__ */ v({
919
922
  compoundVariants: [
920
923
  {
921
924
  variant: ["default", "secondary", "danger", "ghost", "outline"],
922
- class: "font-medium"
925
+ class: "flex items-center justify-center gap-1 font-medium"
923
926
  },
924
927
  {
925
928
  variant: ["default", "danger"],
@@ -971,61 +974,61 @@ const A = /* @__PURE__ */ v({
971
974
  disabled: !1
972
975
  }
973
976
  }
974
- );
975
- return (r, n) => (i(), m(ar, T({
976
- class: l(e),
977
+ ));
978
+ return (r, n) => (c(), m(or, R({
979
+ class: e.value,
977
980
  disabled: r.disabled
978
981
  }, s), {
979
982
  default: p(() => [
980
- _(r.$slots, "default")
983
+ w(r.$slots, "default")
981
984
  ]),
982
985
  _: 3
983
986
  }, 16, ["class", "disabled"]));
984
987
  }
985
988
  });
986
- function or(t) {
989
+ function ir(t) {
987
990
  return typeof t == "object" && t !== null && "label" in t;
988
991
  }
989
992
  function et(t, s) {
990
- const e = I.on(t, s);
991
- de(() => e());
993
+ const e = T.on(t, s);
994
+ pe(() => e());
992
995
  }
993
- const lr = {
996
+ const cr = {
994
997
  required: (t) => t ? void 0 : "required"
995
- }, ie = { ...lr };
996
- function xa(t, s) {
997
- ie[t] = s;
998
+ }, ce = { ...cr };
999
+ function ka(t, s) {
1000
+ ce[t] = s;
998
1001
  }
999
- function ir(t, s) {
1002
+ function ur(t, s) {
1000
1003
  var r;
1001
- const e = (r = ie[s]) == null ? void 0 : r.call(ie, t);
1004
+ const e = (r = ce[s]) == null ? void 0 : r.call(ce, t);
1002
1005
  return e ? Oe(e) : [];
1003
1006
  }
1004
- const Ca = Symbol(), je = /* @__PURE__ */ new WeakMap();
1005
- class cr extends Ue {
1007
+ const Ma = Symbol(), Ae = /* @__PURE__ */ new WeakMap();
1008
+ class dr extends Ue {
1006
1009
  constructor(e) {
1007
1010
  super();
1008
- w(this, "errors");
1009
- w(this, "_fields");
1010
- w(this, "_data");
1011
- w(this, "_submitted");
1012
- w(this, "_errors");
1013
- w(this, "_listeners", {});
1014
- this._fields = e, this._submitted = q(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), je.set(
1011
+ $(this, "errors");
1012
+ $(this, "_fields");
1013
+ $(this, "_data");
1014
+ $(this, "_submitted");
1015
+ $(this, "_errors");
1016
+ $(this, "_listeners", {});
1017
+ this._fields = e, this._submitted = q(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), Ae.set(
1015
1018
  this,
1016
1019
  u(() => !Object.values(this._errors).some((r) => r !== null))
1017
1020
  ), this.errors = Me(this._errors);
1018
1021
  }
1019
1022
  get valid() {
1020
1023
  var e;
1021
- return !!((e = je.get(this)) != null && e.value);
1024
+ return !!((e = Ae.get(this)) != null && e.value);
1022
1025
  }
1023
1026
  get submitted() {
1024
1027
  return this._submitted.value;
1025
1028
  }
1026
1029
  setFieldValue(e, r) {
1027
- const n = this._fields[e] ?? K(`Trying to set undefined '${B(e)}' field`);
1028
- this._data[e] = n.type === "string" && (n.trim ?? !0) ? B(r).trim() : r, this._submitted.value && this.validate();
1030
+ const n = this._fields[e] ?? Q(`Trying to set undefined '${D(e)}' field`);
1031
+ this._data[e] = n.type === "string" && (n.trim ?? !0) ? D(r).trim() : r, this._submitted.value && this.validate();
1029
1032
  }
1030
1033
  getFieldValue(e) {
1031
1034
  return this._data[e];
@@ -1062,7 +1065,7 @@ class cr extends Ue {
1062
1065
  }
1063
1066
  async focus(e) {
1064
1067
  var r;
1065
- await Be(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
1068
+ await De(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
1066
1069
  }
1067
1070
  __get(e) {
1068
1071
  return e in this._fields ? this.getFieldValue(e) : super.__get(e);
@@ -1075,23 +1078,23 @@ class cr extends Ue {
1075
1078
  this.setFieldValue(e, r);
1076
1079
  }
1077
1080
  getFieldErrors(e, r) {
1078
- var c;
1079
- const n = [], a = this._data[e], o = ((c = r.rules) == null ? void 0 : c.split("|")) ?? [];
1081
+ var i;
1082
+ const n = [], a = this._data[e], o = ((i = r.rules) == null ? void 0 : i.split("|")) ?? [];
1080
1083
  for (const d of o)
1081
- d !== "required" && a == null || n.push(...ir(a, d));
1084
+ d !== "required" && a == null || n.push(...ur(a, d));
1082
1085
  return n.length > 0 ? n : null;
1083
1086
  }
1084
1087
  getInitialData(e) {
1085
1088
  if (this.static().isConjuring())
1086
1089
  return {};
1087
1090
  const r = Object.entries(e).reduce((n, [a, o]) => (n[a] = o.default ?? null, n), {});
1088
- return ce(r);
1091
+ return ue(r);
1089
1092
  }
1090
1093
  getInitialErrors(e) {
1091
1094
  if (this.static().isConjuring())
1092
1095
  return {};
1093
1096
  const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
1094
- return ce(r);
1097
+ return ue(r);
1095
1098
  }
1096
1099
  resetData() {
1097
1100
  for (const [e, r] of Object.entries(this._fields))
@@ -1103,63 +1106,63 @@ class cr extends Ue {
1103
1106
  }
1104
1107
  function tt(t, s) {
1105
1108
  const e = oe("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
1106
- de(() => r == null ? void 0 : r());
1109
+ pe(() => r == null ? void 0 : r());
1107
1110
  }
1108
1111
  function st(t) {
1109
- return new cr(t);
1112
+ return new dr(t);
1110
1113
  }
1111
1114
  function rt() {
1112
- const t = De(), s = u(() => t.class);
1113
- return [u(() => At(t, "class")), s];
1115
+ const t = Be(), s = u(() => t.class);
1116
+ return [u(() => jt(t, "class")), s];
1114
1117
  }
1115
- function Sa(t) {
1118
+ function Ha(t) {
1116
1119
  let s = zt;
1117
- Ct(() => s = t()), de(() => s());
1120
+ Ct(() => s = t()), pe(() => s());
1118
1121
  }
1119
- function ka(t, s) {
1120
- const e = ce(U.get(t) ?? s);
1121
- return Ee(e, () => U.set(t, St(e))), e;
1122
+ function Ea(t, s) {
1123
+ const e = ue(U.get(t) ?? s);
1124
+ return He(e, () => U.set(t, St(e))), e;
1122
1125
  }
1123
- function Ma(t) {
1126
+ function Ia(t) {
1124
1127
  const s = q(), e = u(t);
1125
- return Ee(e, async () => s.value = await e.value, { immediate: !0 }), s;
1128
+ return He(e, async () => s.value = await e.value, { immediate: !0 }), s;
1126
1129
  }
1127
- function Ea(t, s) {
1128
- const e = s ? t : {}, r = s ?? t, n = q(e.initial ?? null), a = Bt((o) => n.value = o, e.delay ?? 300);
1129
- return le(() => a(r())), n;
1130
+ function Ta(t, s) {
1131
+ const e = s ? t : {}, r = s ?? t, n = q(e.initial ?? null), a = Dt((o) => n.value = o, e.delay ?? 300);
1132
+ return ie(() => a(r())), n;
1130
1133
  }
1131
- const nt = /* @__PURE__ */ v({
1134
+ const nt = /* @__PURE__ */ h({
1132
1135
  __name: "HeadlessSelectValue",
1133
1136
  setup(t) {
1134
- const s = H(
1137
+ const s = E(
1135
1138
  "select",
1136
1139
  "<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
1137
1140
  );
1138
- return (e, r) => e.$slots.default ? (i(), m(l(Ve), {
1141
+ return (e, r) => e.$slots.default ? (c(), m(l(Ve), {
1139
1142
  key: 0,
1140
1143
  placeholder: l(s).placeholder
1141
1144
  }, {
1142
1145
  default: p(() => [
1143
- _(e.$slots, "default")
1146
+ w(e.$slots, "default")
1144
1147
  ]),
1145
1148
  _: 3
1146
- }, 8, ["placeholder"])) : (i(), m(l(Ve), {
1149
+ }, 8, ["placeholder"])) : (c(), m(l(Ve), {
1147
1150
  key: 1,
1148
1151
  placeholder: l(s).placeholder
1149
1152
  }, null, 8, ["placeholder"]));
1150
1153
  }
1151
- }), at = /* @__PURE__ */ v({
1154
+ }), at = /* @__PURE__ */ h({
1152
1155
  __name: "HeadlessSelectTrigger",
1153
1156
  setup(t) {
1154
- const s = H(
1157
+ const s = E(
1155
1158
  "select",
1156
1159
  "<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
1157
1160
  );
1158
- return (e, r) => (i(), m(l(Xt), {
1161
+ return (e, r) => (c(), m(l(Xt), {
1159
1162
  id: l(s).id
1160
1163
  }, {
1161
1164
  default: p(() => [
1162
- _(e.$slots, "default", {}, () => [
1165
+ w(e.$slots, "default", {}, () => [
1163
1166
  f(nt, {
1164
1167
  placeholder: l(s).placeholder
1165
1168
  }, null, 8, ["placeholder"]),
@@ -1169,7 +1172,7 @@ const nt = /* @__PURE__ */ v({
1169
1172
  _: 3
1170
1173
  }, 8, ["id"]));
1171
1174
  }
1172
- }), ot = /* @__PURE__ */ v({
1175
+ }), lt = /* @__PURE__ */ h({
1173
1176
  __name: "HeadlessSelectOption",
1174
1177
  props: {
1175
1178
  value: {},
@@ -1179,20 +1182,20 @@ const nt = /* @__PURE__ */ v({
1179
1182
  as: {}
1180
1183
  },
1181
1184
  setup(t) {
1182
- const s = H(
1185
+ const s = E(
1183
1186
  "select",
1184
1187
  "<HeadlessSelectOption> must be a child of a <HeadlessSelect>"
1185
1188
  ), e = u(() => {
1186
1189
  var n;
1187
1190
  const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
1188
- return r ? r.label : B(t.value);
1191
+ return r ? r.label : D(t.value);
1189
1192
  });
1190
- return (r, n) => (i(), m(l(es), Y(ee(r.$props)), {
1193
+ return (r, n) => (c(), m(l(es), ee(te(r.$props)), {
1191
1194
  default: p(() => [
1192
1195
  f(l(ts), null, {
1193
1196
  default: p(() => [
1194
- _(r.$slots, "default", {}, () => [
1195
- V(x(e.value), 1)
1197
+ w(r.$slots, "default", {}, () => [
1198
+ V(k(e.value), 1)
1196
1199
  ])
1197
1200
  ]),
1198
1201
  _: 3
@@ -1201,33 +1204,33 @@ const nt = /* @__PURE__ */ v({
1201
1204
  _: 3
1202
1205
  }, 16));
1203
1206
  }
1204
- }), lt = /* @__PURE__ */ v({
1207
+ }), ot = /* @__PURE__ */ h({
1205
1208
  __name: "HeadlessSelectOptions",
1206
1209
  props: {
1207
1210
  class: {},
1208
1211
  innerClass: {}
1209
1212
  },
1210
1213
  setup(t) {
1211
- const s = H(
1214
+ const s = E(
1212
1215
  "select",
1213
1216
  "<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
1214
- ), e = u(() => E("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1215
- return (r, n) => (i(), m(l(ss), null, {
1217
+ ), e = u(() => H("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
1218
+ return (r, n) => (c(), m(l(ss), null, {
1216
1219
  default: p(() => [
1217
1220
  f(l(rs), {
1218
1221
  position: "popper",
1219
- class: k(e.value),
1222
+ class: S(e.value),
1220
1223
  align: l(s).align,
1221
1224
  side: l(s).side,
1222
1225
  "side-offset": 4
1223
1226
  }, {
1224
1227
  default: p(() => [
1225
1228
  f(l(ns), {
1226
- class: k(r.innerClass)
1229
+ class: S(r.innerClass)
1227
1230
  }, {
1228
1231
  default: p(() => [
1229
- _(r.$slots, "default", {}, () => [
1230
- (i(!0), b(D, null, F(l(s).options ?? [], (a) => (i(), m(ot, {
1232
+ w(r.$slots, "default", {}, () => [
1233
+ (c(!0), b(B, null, F(l(s).options ?? [], (a) => (c(), m(lt, {
1231
1234
  key: a.key,
1232
1235
  value: a.value
1233
1236
  }, null, 8, ["value"]))), 128))
@@ -1242,7 +1245,7 @@ const nt = /* @__PURE__ */ v({
1242
1245
  _: 3
1243
1246
  }));
1244
1247
  }
1245
- }), ur = /* @__PURE__ */ v({
1248
+ }), pr = /* @__PURE__ */ h({
1246
1249
  inheritAttrs: !1,
1247
1250
  __name: "HeadlessSelect",
1248
1251
  props: {
@@ -1262,56 +1265,56 @@ const nt = /* @__PURE__ */ v({
1262
1265
  },
1263
1266
  emits: ["update:modelValue"],
1264
1267
  setup(t, { expose: s, emit: e }) {
1265
- const r = e, n = oe("form", null), a = u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), o = u(() => a.value), c = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = u(() => t.options ? t.options.map((h) => ({
1266
- key: ae(),
1267
- label: t.renderOption ? t.renderOption(h) : or(h) ? Dt(h.label) : B(h),
1268
- value: h
1268
+ const r = e, n = oe("form", null), a = u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), o = u(() => a.value), i = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = u(() => t.options ? t.options.map((v) => ({
1269
+ key: le(),
1270
+ label: t.renderOption ? t.renderOption(v) : ir(v) ? Bt(v.label) : D(v),
1271
+ value: v
1269
1272
  })) : null), g = {
1270
1273
  labelClass: t.labelClass,
1271
1274
  optionsClass: t.optionsClass,
1272
1275
  align: t.align,
1273
1276
  side: t.side,
1274
1277
  value: a,
1275
- id: `select-${ae()}`,
1278
+ id: `select-${le()}`,
1276
1279
  name: u(() => t.name),
1277
1280
  label: u(() => t.label),
1278
1281
  description: u(() => t.description),
1279
- placeholder: u(() => t.placeholder ?? S("ui.select", "Select an option")),
1282
+ placeholder: u(() => t.placeholder ?? C("ui.select", "Select an option")),
1280
1283
  options: d,
1281
1284
  selectedOption: u(() => {
1282
- var h;
1283
- return (h = d.value) == null ? void 0 : h.find((C) => C.value === t.modelValue);
1285
+ var v;
1286
+ return (v = d.value) == null ? void 0 : v.find((y) => y.value === t.modelValue);
1284
1287
  }),
1285
- errors: Me(c),
1288
+ errors: Me(i),
1286
1289
  required: u(() => {
1287
1290
  if (!(!t.name || !n))
1288
1291
  return n.getFieldRules(t.name).includes("required");
1289
1292
  }),
1290
- update(h) {
1293
+ update(v) {
1291
1294
  if (n && t.name) {
1292
- n.setFieldValue(t.name, h);
1295
+ n.setFieldValue(t.name, v);
1293
1296
  return;
1294
1297
  }
1295
- r("update:modelValue", h);
1298
+ r("update:modelValue", v);
1296
1299
  }
1297
1300
  };
1298
- function $(h) {
1299
- g.update(h);
1301
+ function x(v) {
1302
+ g.update(v);
1300
1303
  }
1301
- return te("select", g), s(g), (h, C) => (i(), m(l(as), {
1304
+ return se("select", g), s(g), (v, y) => (c(), m(l(as), {
1302
1305
  "model-value": o.value,
1303
- by: h.compareOptions,
1304
- "onUpdate:modelValue": C[0] || (C[0] = (L) => $(L))
1306
+ by: v.compareOptions,
1307
+ "onUpdate:modelValue": y[0] || (y[0] = (I) => x(I))
1305
1308
  }, {
1306
- default: p(({ open: L }) => [
1307
- (i(), m(N(h.as), Y(ee(h.$attrs)), {
1309
+ default: p(({ open: I }) => [
1310
+ (c(), m(N(v.as), ee(te(v.$attrs)), {
1308
1311
  default: p(() => [
1309
- _(h.$slots, "default", {
1310
- modelValue: h.modelValue,
1311
- open: L
1312
+ w(v.$slots, "default", {
1313
+ modelValue: v.modelValue,
1314
+ open: I
1312
1315
  }, () => [
1313
1316
  f(at),
1314
- f(lt)
1317
+ f(ot)
1315
1318
  ])
1316
1319
  ]),
1317
1320
  _: 2
@@ -1320,47 +1323,47 @@ const nt = /* @__PURE__ */ v({
1320
1323
  _: 3
1321
1324
  }, 8, ["model-value", "by"]));
1322
1325
  }
1323
- }), Ae = /* @__PURE__ */ v({
1326
+ }), je = /* @__PURE__ */ h({
1324
1327
  __name: "HeadlessSelectLabel",
1325
1328
  props: {
1326
1329
  asChild: { type: Boolean },
1327
1330
  as: {}
1328
1331
  },
1329
1332
  setup(t) {
1330
- const s = H(
1333
+ const s = E(
1331
1334
  "select",
1332
1335
  "<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
1333
1336
  ), e = ke(), r = u(() => !!(s.label || e.default));
1334
- return (n, a) => r.value ? (i(), m(l(os), T({
1337
+ return (n, a) => r.value ? (c(), m(l(ls), R({
1335
1338
  key: 0,
1336
1339
  for: l(s).id
1337
1340
  }, n.$props), {
1338
1341
  default: p(() => [
1339
- _(n.$slots, "default", {}, () => [
1340
- V(x(l(s).label), 1)
1342
+ w(n.$slots, "default", {}, () => [
1343
+ V(k(l(s).label), 1)
1341
1344
  ])
1342
1345
  ]),
1343
1346
  _: 3
1344
1347
  }, 16, ["for"])) : M("", !0);
1345
1348
  }
1346
- }), it = /* @__PURE__ */ v({
1349
+ }), it = /* @__PURE__ */ h({
1347
1350
  __name: "SelectLabel",
1348
1351
  setup(t) {
1349
- const s = H("select", "<SelectLabel> must be a child of a <Select>"), e = u(() => E("block text-sm leading-6 font-medium text-gray-900", s.labelClass));
1350
- return (r, n) => r.$slots.default ? (i(), m(Ae, {
1352
+ const s = E("select", "<SelectLabel> must be a child of a <Select>"), e = u(() => H("block text-sm leading-6 font-medium text-gray-900", s.labelClass));
1353
+ return (r, n) => r.$slots.default ? (c(), m(je, {
1351
1354
  key: 0,
1352
- class: k(e.value)
1355
+ class: S(e.value)
1353
1356
  }, {
1354
1357
  default: p(() => [
1355
- _(r.$slots, "default")
1358
+ w(r.$slots, "default")
1356
1359
  ]),
1357
1360
  _: 3
1358
- }, 8, ["class"])) : (i(), m(Ae, {
1361
+ }, 8, ["class"])) : (c(), m(je, {
1359
1362
  key: 1,
1360
- class: k(e.value)
1363
+ class: S(e.value)
1361
1364
  }, null, 8, ["class"]));
1362
1365
  }
1363
- }), ze = /* @__PURE__ */ v({
1366
+ }), ze = /* @__PURE__ */ h({
1364
1367
  __name: "SelectOption",
1365
1368
  props: {
1366
1369
  value: {},
@@ -1368,62 +1371,62 @@ const nt = /* @__PURE__ */ v({
1368
1371
  innerClass: {}
1369
1372
  },
1370
1373
  setup(t) {
1371
- const s = u(() => E("group p-1 outline-none", t.class)), e = u(() => E(
1374
+ const s = u(() => H("group p-1 outline-none", t.class)), e = u(() => H(
1372
1375
  // eslint-disable-next-line vue/max-len
1373
1376
  "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",
1374
1377
  t.innerClass
1375
1378
  ));
1376
- return (r, n) => (i(), m(ot, {
1377
- class: k(s.value),
1379
+ return (r, n) => (c(), m(lt, {
1380
+ class: S(s.value),
1378
1381
  value: r.value
1379
1382
  }, {
1380
1383
  default: p(() => [
1381
- y("div", {
1382
- class: k(e.value)
1384
+ _("div", {
1385
+ class: S(e.value)
1383
1386
  }, [
1384
- _(r.$slots, "default")
1387
+ w(r.$slots, "default")
1385
1388
  ], 2)
1386
1389
  ]),
1387
1390
  _: 3
1388
1391
  }, 8, ["class", "value"]));
1389
1392
  }
1390
- }), ct = /* @__PURE__ */ v({
1393
+ }), ct = /* @__PURE__ */ h({
1391
1394
  __name: "SelectOptions",
1392
1395
  props: {
1393
1396
  class: {}
1394
1397
  },
1395
1398
  setup(t) {
1396
- const s = H("select", "<SelectOptions> must be a child of a <Select>"), e = u(() => E(
1399
+ const s = E("select", "<SelectOptions> must be a child of a <Select>"), e = u(() => H(
1397
1400
  "z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden",
1398
1401
  s.optionsClass,
1399
1402
  t.class
1400
1403
  ));
1401
- return (r, n) => (i(), m(lt, {
1402
- class: k(e.value)
1404
+ return (r, n) => (c(), m(ot, {
1405
+ class: S(e.value)
1403
1406
  }, {
1404
1407
  default: p(() => {
1405
- var a, o;
1408
+ var a;
1406
1409
  return [
1407
- (o = (a = l(s)) == null ? void 0 : a.options) != null && o.length ? _(r.$slots, "default", { key: 0 }, () => {
1408
- var c;
1410
+ (a = l(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
1411
+ var o;
1409
1412
  return [
1410
- (i(!0), b(D, null, F(((c = l(s)) == null ? void 0 : c.options) ?? [], (d) => (i(), m(ze, {
1411
- key: d.key,
1412
- value: d.value
1413
+ (c(!0), b(B, null, F(((o = l(s)) == null ? void 0 : o.options) ?? [], (i) => (c(), m(ze, {
1414
+ key: i.key,
1415
+ value: i.value
1413
1416
  }, {
1414
1417
  default: p(() => [
1415
- V(x(d.label), 1)
1418
+ V(k(i.label), 1)
1416
1419
  ]),
1417
1420
  _: 2
1418
1421
  }, 1032, ["value"]))), 128))
1419
1422
  ];
1420
- }) : _(r.$slots, "empty", { key: 1 }, () => [
1423
+ }) : w(r.$slots, "default", { key: 1 }, () => [
1421
1424
  f(ze, {
1422
1425
  disabled: "",
1423
1426
  value: null
1424
1427
  }, {
1425
1428
  default: p(() => [
1426
- V(x(r.$td("ui.selectEmpty", "No options available")), 1)
1429
+ V(k(r.$td("ui.selectEmpty", "No options available")), 1)
1427
1430
  ]),
1428
1431
  _: 1
1429
1432
  })
@@ -1433,42 +1436,42 @@ const nt = /* @__PURE__ */ v({
1433
1436
  _: 3
1434
1437
  }, 8, ["class"]));
1435
1438
  }
1436
- }), dr = {
1439
+ }), mr = {
1437
1440
  viewBox: "0 0 20 20",
1438
1441
  width: "1.2em",
1439
1442
  height: "1.2em"
1440
1443
  };
1441
- function pr(t, s) {
1442
- return i(), b("svg", dr, s[0] || (s[0] = [
1443
- y("path", {
1444
+ function fr(t, s) {
1445
+ return c(), b("svg", mr, s[0] || (s[0] = [
1446
+ _("path", {
1444
1447
  fill: "currentColor",
1445
1448
  d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
1446
1449
  }, null, -1)
1447
1450
  ]));
1448
1451
  }
1449
- const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__ */ v({
1452
+ const hr = A({ name: "zondicons-cheveron-down", render: fr }), ut = /* @__PURE__ */ h({
1450
1453
  __name: "SelectTrigger",
1451
1454
  props: {
1452
1455
  class: {}
1453
1456
  },
1454
1457
  setup(t) {
1455
- const s = H("select", "<SelectTrigger> must be a child of a <Select>"), e = u(() => E(
1458
+ const s = E("select", "<SelectTrigger> must be a child of a <Select>"), e = u(() => H(
1456
1459
  // eslint-disable-next-line vue/max-len
1457
1460
  "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",
1458
1461
  { "mt-1": s.label },
1459
1462
  t.class
1460
1463
  ));
1461
- return (r, n) => (i(), m(at, {
1462
- class: k(e.value)
1464
+ return (r, n) => (c(), m(at, {
1465
+ class: S(e.value)
1463
1466
  }, {
1464
1467
  default: p(() => [
1465
1468
  f(nt, { class: "col-start-1 row-start-1 truncate pr-6" }),
1466
- f(l(mr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1469
+ f(l(hr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
1467
1470
  ]),
1468
1471
  _: 1
1469
1472
  }, 8, ["class"]));
1470
1473
  }
1471
- }), fr = /* @__PURE__ */ v({
1474
+ }), gr = /* @__PURE__ */ h({
1472
1475
  __name: "Select",
1473
1476
  props: {
1474
1477
  as: {},
@@ -1488,12 +1491,12 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
1488
1491
  emits: ["update:modelValue"],
1489
1492
  setup(t) {
1490
1493
  const { forwardRef: s } = Ie();
1491
- return (e, r) => (i(), m(ur, T({ ref: l(s) }, e.$props, {
1494
+ return (e, r) => (c(), m(pr, R({ ref: l(s) }, e.$props, {
1492
1495
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
1493
1496
  }), {
1494
1497
  default: p(() => [
1495
1498
  f(it),
1496
- _(e.$slots, "default", {}, () => [
1499
+ w(e.$slots, "default", {}, () => [
1497
1500
  f(ut),
1498
1501
  f(ct)
1499
1502
  ])
@@ -1501,16 +1504,16 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
1501
1504
  _: 3
1502
1505
  }, 16));
1503
1506
  }
1504
- }), hr = { class: "grow" }, gr = /* @__PURE__ */ v({
1507
+ }), vr = { class: "grow" }, br = /* @__PURE__ */ h({
1505
1508
  __name: "Language",
1506
1509
  setup(t) {
1507
- const s = Q.getBrowserLocale(), e = u(() => [null, ...Q.locales]);
1510
+ const s = J.getBrowserLocale(), e = u(() => [null, ...J.locales]);
1508
1511
  function r(n) {
1509
- return (n && O.locales[n]) ?? S("settings.localeDefault", "{locale} (default)", {
1512
+ return (n && O.locales[n]) ?? C("settings.localeDefault", "{locale} (default)", {
1510
1513
  locale: O.locales[s] ?? s
1511
1514
  });
1512
1515
  }
1513
- return (n, a) => (i(), m(fr, {
1516
+ return (n, a) => (c(), m(gr, {
1514
1517
  modelValue: n.$lang.locale,
1515
1518
  "onUpdate:modelValue": a[0] || (a[0] = (o) => n.$lang.locale = o),
1516
1519
  class: "flex flex-col items-start md:flex-row",
@@ -1519,10 +1522,10 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
1519
1522
  "render-option": r
1520
1523
  }, {
1521
1524
  default: p(() => [
1522
- y("div", hr, [
1525
+ _("div", vr, [
1523
1526
  f(it, null, {
1524
1527
  default: p(() => [
1525
- V(x(n.$td("settings.locale", "Language")), 1)
1528
+ V(k(n.$td("settings.locale", "Language")), 1)
1526
1529
  ]),
1527
1530
  _: 1
1528
1531
  }),
@@ -1532,7 +1535,7 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
1532
1535
  class: "mt-1 text-sm text-gray-500"
1533
1536
  })
1534
1537
  ]),
1535
- f(A, {
1538
+ f(j, {
1536
1539
  variant: "ghost",
1537
1540
  as: ut,
1538
1541
  class: "grid w-auto outline-none"
@@ -1542,36 +1545,36 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
1542
1545
  _: 1
1543
1546
  }, 8, ["modelValue", "options"]));
1544
1547
  }
1545
- }), vr = [
1548
+ }), yr = [
1546
1549
  {
1547
1550
  priority: 100,
1548
- component: gr
1551
+ component: br
1549
1552
  }
1550
- ], br = { $lang: Q }, yr = {
1553
+ ], _r = { $lang: J }, wr = {
1551
1554
  async install(t) {
1552
1555
  var s;
1553
- (s = t.config.globalProperties).$t ?? (s.$t = Ze), t.config.globalProperties.$td = S, vr.forEach((e) => z.addSetting(e)), await he(t, br);
1556
+ (s = t.config.globalProperties).$t ?? (s.$t = Ze), t.config.globalProperties.$td = C, yr.forEach((e) => z.addSetting(e)), await ge(t, _r);
1554
1557
  }
1555
- }, _r = {
1558
+ }, $r = {
1556
1559
  async install() {
1557
- He() && (globalThis.testingRuntime = {
1558
- on: (...t) => I.on(...t)
1560
+ Ee() && (globalThis.testingRuntime = {
1561
+ on: (...t) => T.on(...t)
1559
1562
  });
1560
1563
  }
1561
- }, wr = {
1564
+ }, xr = {
1562
1565
  viewBox: "0 0 20 20",
1563
1566
  width: "1.2em",
1564
1567
  height: "1.2em"
1565
1568
  };
1566
- function $r(t, s) {
1567
- return i(), b("svg", wr, s[0] || (s[0] = [
1568
- y("path", {
1569
+ function Cr(t, s) {
1570
+ return c(), b("svg", xr, s[0] || (s[0] = [
1571
+ _("path", {
1569
1572
  fill: "currentColor",
1570
1573
  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"
1571
1574
  }, null, -1)
1572
1575
  ]));
1573
1576
  }
1574
- const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1577
+ const Sr = A({ name: "zondicons-close", render: Cr }), kr = /* @__PURE__ */ h({
1575
1578
  __name: "HeadlessModal",
1576
1579
  props: {
1577
1580
  persistent: { type: Boolean },
@@ -1581,27 +1584,27 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1581
1584
  descriptionHidden: { type: Boolean }
1582
1585
  },
1583
1586
  setup(t, { expose: s }) {
1584
- const e = q(null), { modal: r } = H(
1587
+ const e = q(null), { modal: r } = E(
1585
1588
  "modal",
1586
1589
  "could not obtain modal reference from <HeadlessModal>, did you render this component manually? Show it using $ui.modal() instead"
1587
1590
  );
1588
1591
  s({ close: o, $content: e });
1589
1592
  const { forwardRef: n } = Ie(), a = q(!1);
1590
- te("$modalContentRef", e), et("close-modal", async ({ id: c, result: d }) => {
1591
- c === r.id && await o(d);
1593
+ se("$modalContentRef", e), et("close-modal", async ({ id: i, result: d }) => {
1594
+ i === r.id && await o(d);
1592
1595
  });
1593
- async function o(c) {
1594
- a.value || (await I.emit("modal-will-close", { modal: r, result: c }), a.value = !0, await I.emit("modal-has-closed", { modal: r, result: c }));
1596
+ async function o(i) {
1597
+ a.value || (await T.emit("modal-will-close", { modal: r, result: i }), a.value = !0, await T.emit("modal-has-closed", { modal: r, result: i }));
1595
1598
  }
1596
- return (c, d) => (i(), m(l(ls), {
1599
+ return (i, d) => (c(), m(l(os), {
1597
1600
  ref: l(n),
1598
1601
  open: "",
1599
- "onUpdate:open": d[0] || (d[0] = (g) => c.persistent || o())
1602
+ "onUpdate:open": d[0] || (d[0] = (g) => i.persistent || o())
1600
1603
  }, {
1601
1604
  default: p(() => [
1602
1605
  f(l(is), null, {
1603
1606
  default: p(() => [
1604
- _(c.$slots, "default", { close: o })
1607
+ w(i.$slots, "default", { close: o })
1605
1608
  ]),
1606
1609
  _: 3
1607
1610
  })
@@ -1609,7 +1612,7 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1609
1612
  _: 3
1610
1613
  }, 512));
1611
1614
  }
1612
- }), dt = /* @__PURE__ */ v({
1615
+ }), dt = /* @__PURE__ */ h({
1613
1616
  __name: "ModalContext",
1614
1617
  props: {
1615
1618
  modal: {},
@@ -1622,22 +1625,22 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1622
1625
  r[n] = l(s.modal.properties[n]);
1623
1626
  return r;
1624
1627
  });
1625
- return te("modal", {
1626
- modal: Re(s, "modal"),
1627
- childIndex: Re(s, "childIndex")
1628
- }), (r, n) => (i(), m(N(r.modal.component), Y(ee(e.value)), null, 16));
1628
+ return se("modal", {
1629
+ modal: Le(s, "modal"),
1630
+ childIndex: Le(s, "childIndex")
1631
+ }), (r, n) => (c(), m(N(r.modal.component), ee(te(e.value)), null, 16));
1629
1632
  }
1630
- }), Sr = /* @__PURE__ */ v({
1633
+ }), Mr = /* @__PURE__ */ h({
1631
1634
  __name: "HeadlessModalContent",
1632
1635
  setup(t) {
1633
- const { childIndex: s = 0 } = H(
1636
+ const { childIndex: s = 0 } = E(
1634
1637
  "modal",
1635
1638
  "could not obtain modal reference from <HeadlessModalContent>, did you render this component manually? Show it using $ui.modal() instead"
1636
- ), e = Vs("$modalContentRef"), r = se("$contentRef"), n = u(() => R.modals[s] ?? null);
1637
- return le(() => e.value = r.value), (a, o) => (i(), m(l(cs), { ref: "$contentRef" }, {
1639
+ ), e = Vs("$modalContentRef"), r = re("$contentRef"), n = u(() => L.modals[s] ?? null);
1640
+ return ie(() => e.value = r.value), (a, o) => (c(), m(l(cs), { ref: "$contentRef" }, {
1638
1641
  default: p(() => [
1639
- _(a.$slots, "default"),
1640
- n.value ? (i(), m(dt, {
1642
+ w(a.$slots, "default"),
1643
+ n.value ? (c(), m(dt, {
1641
1644
  key: 0,
1642
1645
  "child-index": l(s) + 1,
1643
1646
  modal: n.value
@@ -1646,21 +1649,21 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1646
1649
  _: 3
1647
1650
  }, 512));
1648
1651
  }
1649
- }), kr = /* @__PURE__ */ v({
1652
+ }), Hr = /* @__PURE__ */ h({
1650
1653
  __name: "HeadlessModalDescription",
1651
1654
  props: {
1652
1655
  asChild: { type: Boolean },
1653
1656
  as: {}
1654
1657
  },
1655
1658
  setup(t) {
1656
- return (s, e) => (i(), m(l(us), Y(ee(s.$props)), {
1659
+ return (s, e) => (c(), m(l(us), ee(te(s.$props)), {
1657
1660
  default: p(() => [
1658
- _(s.$slots, "default")
1661
+ w(s.$slots, "default")
1659
1662
  ]),
1660
1663
  _: 3
1661
1664
  }, 16));
1662
1665
  }
1663
- }), Mr = /* @__PURE__ */ v({
1666
+ }), Er = /* @__PURE__ */ h({
1664
1667
  __name: "HeadlessModalOverlay",
1665
1668
  props: {
1666
1669
  forceMount: { type: Boolean },
@@ -1668,31 +1671,28 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1668
1671
  as: {}
1669
1672
  },
1670
1673
  setup(t) {
1671
- return (s, e) => (i(), m(l(ds), Y(ee(s.$props)), {
1674
+ return (s, e) => (c(), m(l(ds), ee(te(s.$props)), {
1672
1675
  default: p(() => [
1673
- _(s.$slots, "default")
1676
+ w(s.$slots, "default")
1674
1677
  ]),
1675
1678
  _: 3
1676
1679
  }, 16));
1677
1680
  }
1678
- }), Er = /* @__PURE__ */ v({
1681
+ }), Ir = /* @__PURE__ */ h({
1679
1682
  __name: "HeadlessModalTitle",
1680
1683
  props: {
1681
1684
  asChild: { type: Boolean },
1682
1685
  as: {}
1683
1686
  },
1684
1687
  setup(t) {
1685
- return (s, e) => (i(), m(l(ps), Y(ee(s.$props)), {
1688
+ return (s, e) => (c(), m(l(ps), ee(te(s.$props)), {
1686
1689
  default: p(() => [
1687
- _(s.$slots, "default")
1690
+ w(s.$slots, "default")
1688
1691
  ]),
1689
1692
  _: 3
1690
1693
  }, 16));
1691
1694
  }
1692
- }), Hr = {
1693
- key: 0,
1694
- class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
1695
- }, Ir = ["onClick"], Lr = { class: "sr-only" }, re = /* @__PURE__ */ v({
1695
+ }), Tr = ["onClick"], Lr = { class: "sr-only" }, ne = /* @__PURE__ */ h({
1696
1696
  __name: "Modal",
1697
1697
  props: {
1698
1698
  persistent: { type: Boolean },
@@ -1700,86 +1700,89 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1700
1700
  titleHidden: { type: Boolean },
1701
1701
  description: {},
1702
1702
  descriptionHidden: { type: Boolean },
1703
- dismissable: { type: Boolean, default: !0 },
1703
+ closeClass: { default: "" },
1704
1704
  wrapperClass: { default: "" },
1705
1705
  class: { default: "" }
1706
1706
  },
1707
1707
  setup(t, { expose: s }) {
1708
- const e = X(t, ["class", "dismissable", "wrapperClass", "title", "titleHidden", "description", "persistent"]);
1708
+ const e = Y(t, ["class", "closeClass", "wrapperClass", "title", "titleHidden", "description", "persistent"]);
1709
1709
  s({
1710
- close: async (h) => {
1711
- var C;
1712
- return (C = a.value) == null ? void 0 : C.close(h);
1710
+ close: async (y) => {
1711
+ var I;
1712
+ return (I = a.value) == null ? void 0 : I.close(y);
1713
1713
  },
1714
1714
  $content: u(() => {
1715
- var h;
1716
- return (h = a.value) == null ? void 0 : h.$content;
1715
+ var y;
1716
+ return (y = a.value) == null ? void 0 : y.$content;
1717
1717
  })
1718
1718
  });
1719
- const { forwardRef: r, currentRef: n } = Ie(), a = n, o = H("modal"), c = u(() => !o.modal.closing && o.childIndex === R.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), g = u(() => E({ "mt-2": t.title && !t.titleHidden }, t.class)), $ = u(() => E(
1719
+ const { forwardRef: r, currentRef: n } = Ie(), a = n, o = E("modal"), i = u(() => !o.modal.closing && o.childIndex === L.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), g = u(() => H({ "mt-2": t.title && !t.titleHidden }, t.class)), x = u(() => H("absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block", t.closeClass)), v = u(() => H(
1720
1720
  "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",
1721
1721
  "overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:max-w-lg",
1722
1722
  "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
1723
1723
  "transition-[scale,opacity] will-change-[scale,opacity] duration-300",
1724
1724
  {
1725
- "scale-50 opacity-0": !c.value,
1726
- "scale-100 opacity-100": c.value
1725
+ "scale-50 opacity-0": !i.value,
1726
+ "scale-100 opacity-100": i.value
1727
1727
  },
1728
1728
  t.wrapperClass
1729
1729
  ));
1730
- return et("modal-will-close", async ({ modal: { id: h } }) => {
1731
- h === o.modal.id && await we({ ms: 300 });
1732
- }), (h, C) => (i(), m(Cr, T(e, {
1733
- ref: (L) => l(r)(L),
1734
- persistent: h.persistent
1730
+ return et("modal-will-close", async ({ modal: { id: y } }) => {
1731
+ y === o.modal.id && await we({ ms: 300 });
1732
+ }), (y, I) => (c(), m(kr, R(e, {
1733
+ ref: (W) => l(r)(W),
1734
+ persistent: y.persistent
1735
1735
  }), {
1736
- default: p(({ close: L }) => [
1737
- f(Mr, {
1738
- class: k(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
1736
+ default: p(({ close: W }) => [
1737
+ f(Er, {
1738
+ class: S(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
1739
1739
  "bg-black/30": l(o).childIndex === 1,
1740
1740
  "opacity-0": l(o).childIndex === 1 && l(o).modal.closing
1741
1741
  }])
1742
1742
  }, null, 8, ["class"]),
1743
- f(Sr, T(d.value, { class: $.value }), {
1743
+ f(Mr, R(d.value, { class: v.value }), {
1744
1744
  default: p(() => [
1745
- !h.persistent && h.dismissable ? (i(), b("div", Hr, [
1746
- y("button", {
1745
+ y.persistent ? M("", !0) : (c(), b("div", {
1746
+ key: 0,
1747
+ class: S(x.value)
1748
+ }, [
1749
+ _("button", {
1747
1750
  type: "button",
1748
1751
  class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
1749
- onClick: (ge) => L()
1752
+ onClick: (la) => W()
1750
1753
  }, [
1751
- y("span", Lr, x(h.$td("ui.close", "Close")), 1),
1752
- f(l(xr), { class: "size-4" })
1753
- ], 8, Ir)
1754
- ])) : M("", !0),
1755
- h.title ? (i(), m(Er, {
1754
+ _("span", Lr, k(y.$td("ui.close", "Close")), 1),
1755
+ f(l(Sr), { class: "size-4" })
1756
+ ], 8, Tr)
1757
+ ], 2)),
1758
+ y.title ? (c(), m(Ir, {
1756
1759
  key: 1,
1757
- class: k(["text-base font-semibold text-gray-900", { "sr-only": h.titleHidden }])
1760
+ class: S(["text-base font-semibold text-gray-900", { "sr-only": y.titleHidden }])
1758
1761
  }, {
1759
1762
  default: p(() => [
1760
1763
  f(P, {
1761
- text: h.title,
1764
+ text: y.title,
1762
1765
  inline: ""
1763
1766
  }, null, 8, ["text"])
1764
1767
  ]),
1765
1768
  _: 1
1766
1769
  }, 8, ["class"])) : M("", !0),
1767
- h.description ? (i(), m(kr, {
1770
+ y.description ? (c(), m(Hr, {
1768
1771
  key: 2,
1769
- class: k({ "sr-only": h.descriptionHidden })
1772
+ class: S({ "sr-only": y.descriptionHidden })
1770
1773
  }, {
1771
1774
  default: p(() => [
1772
1775
  f(P, {
1773
- text: h.description,
1776
+ text: y.description,
1774
1777
  class: "mt-1 text-sm leading-6 text-gray-500"
1775
1778
  }, null, 8, ["text"])
1776
1779
  ]),
1777
1780
  _: 1
1778
1781
  }, 8, ["class"])) : M("", !0),
1779
- y("div", {
1780
- class: k(g.value)
1782
+ _("div", {
1783
+ class: S(g.value)
1781
1784
  }, [
1782
- _(h.$slots, "default", { close: L })
1785
+ w(y.$slots, "default", { close: W })
1783
1786
  ], 2)
1784
1787
  ]),
1785
1788
  _: 2
@@ -1788,21 +1791,30 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1788
1791
  _: 3
1789
1792
  }, 16, ["persistent"]));
1790
1793
  }
1791
- }), Rr = /* @__PURE__ */ v({
1794
+ });
1795
+ function Rr(t) {
1796
+ const s = u(() => t.title ?? C("ui.alert", "Alert")), e = u(() => !t.title);
1797
+ return { renderedTitle: s, titleHidden: e };
1798
+ }
1799
+ const Vr = /* @__PURE__ */ h({
1792
1800
  __name: "AlertModal",
1793
1801
  props: {
1794
1802
  title: {},
1795
1803
  message: {}
1796
1804
  },
1797
1805
  setup(t, { expose: s }) {
1798
- return s(), (e, r) => (i(), m(re, { title: e.title }, {
1806
+ const e = t, { renderedTitle: r, titleHidden: n } = Rr(e);
1807
+ return s(), (a, o) => (c(), m(ne, {
1808
+ title: l(r),
1809
+ "title-hidden": l(n)
1810
+ }, {
1799
1811
  default: p(() => [
1800
- f(P, { text: e.message }, null, 8, ["text"])
1812
+ f(P, { text: a.message }, null, 8, ["text"])
1801
1813
  ]),
1802
1814
  _: 1
1803
- }, 8, ["title"]));
1815
+ }, 8, ["title", "title-hidden"]));
1804
1816
  }
1805
- }), pt = /* @__PURE__ */ v({
1817
+ }), pt = /* @__PURE__ */ h({
1806
1818
  __name: "Form",
1807
1819
  props: {
1808
1820
  form: {}
@@ -1811,39 +1823,39 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
1811
1823
  setup(t, { emit: s }) {
1812
1824
  let e;
1813
1825
  const r = s;
1814
- return le((n) => {
1826
+ return ie((n) => {
1815
1827
  var a;
1816
1828
  e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
1817
- }), te("form", t.form), (n, a) => (i(), b("form", {
1829
+ }), se("form", t.form), (n, a) => (c(), b("form", {
1818
1830
  onSubmit: a[0] || (a[0] = qe((o) => {
1819
- var c;
1820
- return (c = n.form) == null ? void 0 : c.submit();
1831
+ var i;
1832
+ return (i = n.form) == null ? void 0 : i.submit();
1821
1833
  }, ["prevent"]))
1822
1834
  }, [
1823
- _(n.$slots, "default")
1835
+ w(n.$slots, "default")
1824
1836
  ], 32));
1825
1837
  }
1826
1838
  });
1827
- function Tr(t) {
1839
+ function Pr(t) {
1828
1840
  const s = st(
1829
1841
  Object.entries(t.checkboxes ?? {}).reduce(
1830
- (n, [a, o]) => ({
1831
- [a]: {
1842
+ (o, [i, d]) => ({
1843
+ [i]: {
1832
1844
  type: "boolean",
1833
- default: o.default,
1834
- required: o.required ? "required" : void 0
1845
+ default: d.default,
1846
+ required: d.required ? "required" : void 0
1835
1847
  },
1836
- ...n
1848
+ ...o
1837
1849
  }),
1838
1850
  {}
1839
1851
  )
1840
- ), e = u(() => t.acceptText ?? S("ui.accept", "Ok")), r = u(() => t.cancelText ?? S("ui.cancel", "Cancel"));
1841
- return { form: s, renderedAcceptText: e, renderedCancelText: r };
1852
+ ), e = u(() => t.title ?? C("ui.confirm", "Confirm")), r = u(() => !t.title), n = u(() => t.acceptText ?? C("ui.accept", "Ok")), a = u(() => t.cancelText ?? C("ui.cancel", "Cancel"));
1853
+ return { form: s, renderedTitle: e, titleHidden: r, renderedAcceptText: n, renderedCancelText: a };
1842
1854
  }
1843
- const Vr = {
1855
+ const Ar = {
1844
1856
  key: 0,
1845
1857
  class: "mt-4 flex flex-col text-sm text-gray-600"
1846
- }, Pr = { class: "flex items-center" }, jr = ["onUpdate:modelValue", "required"], Ar = { class: "ml-1.5" }, zr = { class: "mt-4 flex flex-row-reverse gap-2" }, Br = /* @__PURE__ */ v({
1858
+ }, jr = { class: "flex items-center" }, zr = ["onUpdate:modelValue", "required"], Dr = { class: "ml-1.5" }, Br = { class: "mt-4 flex flex-row-reverse gap-2" }, qr = /* @__PURE__ */ h({
1847
1859
  __name: "ConfirmModal",
1848
1860
  props: {
1849
1861
  title: {},
@@ -1857,53 +1869,54 @@ const Vr = {
1857
1869
  required: { type: Boolean }
1858
1870
  },
1859
1871
  setup(t, { expose: s }) {
1860
- const e = X(t, ["cancelVariant"]), { form: r, renderedAcceptText: n, renderedCancelText: a } = Tr(e);
1861
- return s(), (o, c) => (i(), m(re, {
1862
- title: o.title,
1872
+ const e = Y(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: o, renderedCancelText: i } = Pr(e);
1873
+ return s(), (d, g) => (c(), m(ne, {
1874
+ title: l(n),
1875
+ "title-hidden": l(a),
1863
1876
  persistent: ""
1864
1877
  }, {
1865
- default: p(({ close: d }) => [
1878
+ default: p(({ close: x }) => [
1866
1879
  f(pt, {
1867
1880
  form: l(r),
1868
- onSubmit: (g) => d([!0, l(r).data()])
1881
+ onSubmit: (v) => x([!0, l(r).data()])
1869
1882
  }, {
1870
1883
  default: p(() => [
1871
1884
  f(P, {
1872
- text: o.message,
1873
- actions: o.actions
1885
+ text: d.message,
1886
+ actions: d.actions
1874
1887
  }, null, 8, ["text", "actions"]),
1875
- o.checkboxes ? (i(), b("ul", Vr, [
1876
- (i(!0), b(D, null, F(o.checkboxes, (g, $) => (i(), b("li", { key: $ }, [
1877
- y("label", Pr, [
1878
- Fe(y("input", {
1879
- "onUpdate:modelValue": (h) => l(r)[$] = h,
1888
+ d.checkboxes ? (c(), b("ul", Ar, [
1889
+ (c(!0), b(B, null, F(d.checkboxes, (v, y) => (c(), b("li", { key: y }, [
1890
+ _("label", jr, [
1891
+ Fe(_("input", {
1892
+ "onUpdate:modelValue": (I) => l(r)[y] = I,
1880
1893
  type: "checkbox",
1881
- required: g.required,
1894
+ required: v.required,
1882
1895
  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"
1883
- }, null, 8, jr), [
1884
- [kt, l(r)[$]]
1896
+ }, null, 8, zr), [
1897
+ [kt, l(r)[y]]
1885
1898
  ]),
1886
- y("span", Ar, x(g.label), 1)
1899
+ _("span", Dr, k(v.label), 1)
1887
1900
  ])
1888
1901
  ]))), 128))
1889
1902
  ])) : M("", !0),
1890
- y("div", zr, [
1891
- f(A, {
1892
- variant: o.acceptVariant,
1903
+ _("div", Br, [
1904
+ f(j, {
1905
+ variant: d.acceptVariant,
1893
1906
  submit: ""
1894
1907
  }, {
1895
1908
  default: p(() => [
1896
- V(x(l(n)), 1)
1909
+ V(k(l(o)), 1)
1897
1910
  ]),
1898
1911
  _: 1
1899
1912
  }, 8, ["variant"]),
1900
- o.required ? M("", !0) : (i(), m(A, {
1913
+ d.required ? M("", !0) : (c(), m(j, {
1901
1914
  key: 0,
1902
- variant: o.cancelVariant,
1903
- onClick: (g) => d(!1)
1915
+ variant: d.cancelVariant,
1916
+ onClick: (v) => x(!1)
1904
1917
  }, {
1905
1918
  default: p(() => [
1906
- V(x(l(a)), 1)
1919
+ V(k(l(i)), 1)
1907
1920
  ]),
1908
1921
  _: 2
1909
1922
  }, 1032, ["variant", "onClick"]))
@@ -1913,87 +1926,87 @@ const Vr = {
1913
1926
  }, 1032, ["form", "onSubmit"])
1914
1927
  ]),
1915
1928
  _: 1
1916
- }, 8, ["title"]));
1929
+ }, 8, ["title", "title-hidden"]));
1917
1930
  }
1918
- }), Dr = {
1931
+ }), Fr = {
1919
1932
  viewBox: "0 0 20 20",
1920
1933
  width: "1.2em",
1921
1934
  height: "1.2em"
1922
1935
  };
1923
- function qr(t, s) {
1924
- return i(), b("svg", Dr, s[0] || (s[0] = [
1925
- y("path", {
1936
+ function Ur(t, s) {
1937
+ return c(), b("svg", Fr, s[0] || (s[0] = [
1938
+ _("path", {
1926
1939
  fill: "currentColor",
1927
1940
  d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
1928
1941
  }, null, -1)
1929
1942
  ]));
1930
1943
  }
1931
- const Fr = j({ name: "zondicons-cheveron-left", render: qr }), Ur = {
1944
+ const Or = A({ name: "zondicons-cheveron-left", render: Ur }), Nr = {
1932
1945
  viewBox: "0 0 20 20",
1933
1946
  width: "1.2em",
1934
1947
  height: "1.2em"
1935
1948
  };
1936
- function Or(t, s) {
1937
- return i(), b("svg", Ur, s[0] || (s[0] = [
1938
- y("path", {
1949
+ function Wr(t, s) {
1950
+ return c(), b("svg", Nr, s[0] || (s[0] = [
1951
+ _("path", {
1939
1952
  fill: "currentColor",
1940
1953
  d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
1941
1954
  }, null, -1)
1942
1955
  ]));
1943
1956
  }
1944
- const mt = j({ name: "zondicons-cheveron-right", render: Or }), Nr = {
1957
+ const mt = A({ name: "zondicons-cheveron-right", render: Wr }), Kr = {
1945
1958
  viewBox: "0 0 20 20",
1946
1959
  width: "1.2em",
1947
1960
  height: "1.2em"
1948
1961
  };
1949
- function Wr(t, s) {
1950
- return i(), b("svg", Nr, s[0] || (s[0] = [
1951
- y("path", {
1962
+ function Qr(t, s) {
1963
+ return c(), b("svg", Kr, s[0] || (s[0] = [
1964
+ _("path", {
1952
1965
  fill: "currentColor",
1953
1966
  d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
1954
1967
  }, null, -1)
1955
1968
  ]));
1956
1969
  }
1957
- const ft = j({ name: "zondicons-exclamation-solid", render: Wr }), Kr = {
1970
+ const ft = A({ name: "zondicons-exclamation-solid", render: Qr }), Jr = {
1958
1971
  viewBox: "0 0 24 24",
1959
1972
  width: "1.2em",
1960
1973
  height: "1.2em"
1961
1974
  };
1962
- function Qr(t, s) {
1963
- return i(), b("svg", Kr, s[0] || (s[0] = [
1964
- y("path", {
1975
+ function Zr(t, s) {
1976
+ return c(), b("svg", Jr, s[0] || (s[0] = [
1977
+ _("path", {
1965
1978
  fill: "currentColor",
1966
1979
  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"
1967
1980
  }, null, -1)
1968
1981
  ]));
1969
1982
  }
1970
- const Jr = j({ name: "mdi-console", render: Qr }), Zr = {
1983
+ const Gr = A({ name: "mdi-console", render: Zr }), Xr = {
1971
1984
  viewBox: "0 0 20 20",
1972
1985
  width: "1.2em",
1973
1986
  height: "1.2em"
1974
1987
  };
1975
- function Gr(t, s) {
1976
- return i(), b("svg", Zr, s[0] || (s[0] = [
1977
- y("path", {
1988
+ function Yr(t, s) {
1989
+ return c(), b("svg", Xr, s[0] || (s[0] = [
1990
+ _("path", {
1978
1991
  fill: "currentColor",
1979
1992
  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"
1980
1993
  }, null, -1)
1981
1994
  ]));
1982
1995
  }
1983
- const Xr = j({ name: "zondicons-copy", render: Gr }), Yr = {
1996
+ const en = A({ name: "zondicons-copy", render: Yr }), tn = {
1984
1997
  viewBox: "0 0 24 24",
1985
1998
  width: "1.2em",
1986
1999
  height: "1.2em"
1987
2000
  };
1988
- function en(t, s) {
1989
- return i(), b("svg", Yr, s[0] || (s[0] = [
1990
- y("path", {
2001
+ function sn(t, s) {
2002
+ return c(), b("svg", tn, s[0] || (s[0] = [
2003
+ _("path", {
1991
2004
  fill: "currentColor",
1992
2005
  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"
1993
2006
  }, null, -1)
1994
2007
  ]));
1995
2008
  }
1996
- const tn = j({ name: "mdi-github", render: en }), sn = { class: "flex" }, rn = { class: "sr-only" }, nn = /* @__PURE__ */ v({
2009
+ const rn = A({ name: "mdi-github", render: sn }), nn = { class: "flex" }, an = { class: "sr-only" }, ln = /* @__PURE__ */ h({
1997
2010
  __name: "ErrorReportModalButtons",
1998
2011
  props: {
1999
2012
  report: {}
@@ -2017,26 +2030,26 @@ const tn = j({ name: "mdi-github", render: en }), sn = { class: "flex" }, rn = {
2017
2030
  `)
2018
2031
  );
2019
2032
  return `${z.sourceUrl}/issues/new?title=${a}&body=${o}`;
2020
- }), n = u(() => J(
2033
+ }), n = u(() => Z(
2021
2034
  [
2022
2035
  {
2023
2036
  id: "clipboard",
2024
2037
  description: "Copy to clipboard",
2025
- iconComponent: Xr,
2038
+ iconComponent: en,
2026
2039
  async click() {
2027
2040
  await navigator.clipboard.writeText(`${e.value}
2028
2041
 
2029
- ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information copied to clipboard"));
2042
+ ${s.report.details}`), L.toast(C("errors.copiedToClipboard", "Debug information copied to clipboard"));
2030
2043
  }
2031
2044
  },
2032
2045
  {
2033
2046
  id: "console",
2034
2047
  description: "Log to console",
2035
- iconComponent: Jr,
2048
+ iconComponent: Gr,
2036
2049
  click() {
2037
2050
  const a = s.report.error ?? s.report;
2038
- window.error = a, console.error(a), R.toast(
2039
- S(
2051
+ window.error = a, console.error(a), L.toast(
2052
+ C(
2040
2053
  "errors.addedToConsole",
2041
2054
  "You can now use the **error** variable in the console"
2042
2055
  )
@@ -2048,24 +2061,24 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2048
2061
  r.value && a.push({
2049
2062
  id: "github",
2050
2063
  description: "Report in GitHub",
2051
- iconComponent: tn,
2064
+ iconComponent: rn,
2052
2065
  url: r.value
2053
2066
  });
2054
2067
  }
2055
2068
  ));
2056
- return (a, o) => (i(), b("div", sn, [
2057
- (i(!0), b(D, null, F(n.value, (c) => _(a.$slots, "default", T({ ref_for: !0 }, c), () => [
2058
- f(A, {
2069
+ return (a, o) => (c(), b("div", nn, [
2070
+ (c(!0), b(B, null, F(n.value, (i) => w(a.$slots, "default", R({ ref_for: !0 }, i), () => [
2071
+ f(j, {
2059
2072
  size: "icon",
2060
2073
  variant: "ghost",
2061
2074
  class: "group whitespace-nowrap",
2062
- href: c.url,
2063
- title: a.$td(`errors.report_${c.id}`, c.description),
2064
- onClick: c.click
2075
+ href: i.url,
2076
+ title: a.$td(`errors.report_${i.id}`, i.description),
2077
+ onClick: i.click
2065
2078
  }, {
2066
2079
  default: p(() => [
2067
- y("span", rn, x(a.$td(`errors.report_${c.id}`, c.description)), 1),
2068
- (i(), m(N(c.iconComponent), {
2080
+ _("span", an, k(a.$td(`errors.report_${i.id}`, i.description)), 1),
2081
+ (c(), m(N(i.iconComponent), {
2069
2082
  class: "size-4",
2070
2083
  "aria-hidden": "true"
2071
2084
  }))
@@ -2075,7 +2088,7 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2075
2088
  ])), 256))
2076
2089
  ]));
2077
2090
  }
2078
- }), an = /* @__PURE__ */ v({
2091
+ }), on = /* @__PURE__ */ h({
2079
2092
  __name: "ErrorReportModalTitle",
2080
2093
  props: {
2081
2094
  report: {},
@@ -2084,19 +2097,19 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
2084
2097
  },
2085
2098
  setup(t) {
2086
2099
  const s = u(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
2087
- return (e, r) => (i(), m(P, {
2100
+ return (e, r) => (c(), m(P, {
2088
2101
  text: s.value,
2089
2102
  inline: ""
2090
2103
  }, null, 8, ["text"]));
2091
2104
  }
2092
2105
  });
2093
- function on(t) {
2106
+ function cn(t) {
2094
2107
  const s = q(0), e = u(() => t.reports[s.value]), r = u(
2095
2108
  () => {
2096
2109
  var o;
2097
- return ((o = e.value.details) == null ? void 0 : o.trim()) || S("errors.detailsEmpty", "This error is missing a stacktrace.");
2110
+ return ((o = e.value.details) == null ? void 0 : o.trim()) || C("errors.detailsEmpty", "This error is missing a stacktrace.");
2098
2111
  }
2099
- ), n = S("errors.previousReport", "Show previous report"), a = S("errors.nextReport", "Show next report");
2112
+ ), n = C("errors.previousReport", "Show previous report"), a = C("errors.nextReport", "Show next report");
2100
2113
  return {
2101
2114
  activeReportIndex: s,
2102
2115
  details: r,
@@ -2105,49 +2118,54 @@ function on(t) {
2105
2118
  report: e
2106
2119
  };
2107
2120
  }
2108
- const ln = { class: "px-4 pt-5 pb-4" }, cn = { class: "flex justify-between gap-4" }, un = { class: "flex items-center gap-2" }, dn = {
2121
+ const un = { class: "px-4 pt-5 pb-4" }, dn = { class: "flex justify-between gap-4" }, pn = { class: "flex items-center gap-2" }, mn = {
2109
2122
  key: 0,
2110
2123
  class: "flex gap-0.5"
2111
- }, pn = { class: "-mt-2 max-h-[80vh] overflow-auto bg-red-800/10" }, mn = ["textContent"], fn = /* @__PURE__ */ v({
2124
+ }, fn = { class: "-mt-2 max-h-[80vh] overflow-auto bg-red-800/10" }, hn = ["textContent"], gn = /* @__PURE__ */ h({
2112
2125
  __name: "ErrorReportModal",
2113
2126
  props: {
2114
2127
  reports: {}
2115
2128
  },
2116
2129
  setup(t, { expose: s }) {
2117
- const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: o, report: c } = on(e);
2118
- return s(), (d, g) => (i(), m(re, { "wrapper-class": "p-0 sm:w-auto sm:min-w-lg sm:max-w-[80vw]" }, {
2130
+ const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: o, report: i } = cn(e);
2131
+ return s(), (d, g) => (c(), m(ne, {
2132
+ title: d.$td("errors.report", "Errors report"),
2133
+ "title-hidden": "",
2134
+ "wrapper-class": "p-0 sm:w-auto sm:min-w-lg sm:max-w-[80vw]",
2135
+ "close-class": "hidden"
2136
+ }, {
2119
2137
  default: p(() => [
2120
- y("div", ln, [
2121
- y("h2", cn, [
2122
- y("div", un, [
2138
+ _("div", un, [
2139
+ _("h2", dn, [
2140
+ _("div", pn, [
2123
2141
  f(l(ft), { class: "size-5 text-red-600" }),
2124
- f(an, {
2142
+ f(on, {
2125
2143
  class: "text-lg leading-6 font-semibold text-gray-900",
2126
- report: l(c),
2144
+ report: l(i),
2127
2145
  "current-report": l(r) + 1,
2128
2146
  "total-reports": d.reports.length
2129
2147
  }, null, 8, ["report", "current-report", "total-reports"]),
2130
- d.reports.length > 1 ? (i(), b("span", dn, [
2131
- f(A, {
2148
+ d.reports.length > 1 ? (c(), b("span", mn, [
2149
+ f(j, {
2132
2150
  size: "icon",
2133
2151
  variant: "ghost",
2134
2152
  disabled: l(r) === 0,
2135
2153
  "aria-label": l(o),
2136
2154
  title: l(o),
2137
- onClick: g[0] || (g[0] = ($) => r.value--)
2155
+ onClick: g[0] || (g[0] = (x) => r.value--)
2138
2156
  }, {
2139
2157
  default: p(() => [
2140
- f(l(Fr), { class: "size-4" })
2158
+ f(l(Or), { class: "size-4" })
2141
2159
  ]),
2142
2160
  _: 1
2143
2161
  }, 8, ["disabled", "aria-label", "title"]),
2144
- f(A, {
2162
+ f(j, {
2145
2163
  size: "icon",
2146
2164
  variant: "ghost",
2147
2165
  disabled: l(r) === d.reports.length - 1,
2148
2166
  "aria-label": l(a),
2149
2167
  title: l(a),
2150
- onClick: g[1] || (g[1] = ($) => r.value++)
2168
+ onClick: g[1] || (g[1] = (x) => r.value++)
2151
2169
  }, {
2152
2170
  default: p(() => [
2153
2171
  f(l(mt), { class: "size-4" })
@@ -2156,44 +2174,44 @@ const ln = { class: "px-4 pt-5 pb-4" }, cn = { class: "flex justify-between gap-
2156
2174
  }, 8, ["disabled", "aria-label", "title"])
2157
2175
  ])) : M("", !0)
2158
2176
  ]),
2159
- f(nn, {
2160
- report: l(c),
2177
+ f(ln, {
2178
+ report: l(i),
2161
2179
  class: "gap-0.5"
2162
2180
  }, null, 8, ["report"])
2163
2181
  ]),
2164
- l(c).description ? (i(), m(P, {
2182
+ l(i).description ? (c(), m(P, {
2165
2183
  key: 0,
2166
- text: l(c).description,
2184
+ text: l(i).description,
2167
2185
  class: "text-gray-600"
2168
2186
  }, null, 8, ["text"])) : M("", !0)
2169
2187
  ]),
2170
- y("div", pn, [
2171
- y("pre", {
2188
+ _("div", fn, [
2189
+ _("pre", {
2172
2190
  class: "p-4 text-xs text-red-800",
2173
- textContent: x(l(n))
2174
- }, null, 8, mn)
2191
+ textContent: k(l(n))
2192
+ }, null, 8, hn)
2175
2193
  ])
2176
2194
  ]),
2177
2195
  _: 1
2178
- }));
2196
+ }, 8, ["title"]));
2179
2197
  }
2180
- }), hn = {
2198
+ }), vn = {
2181
2199
  viewBox: "0 0 24 24",
2182
2200
  width: "1.2em",
2183
2201
  height: "1.2em"
2184
2202
  };
2185
- function gn(t, s) {
2186
- return i(), b("svg", hn, s[0] || (s[0] = [
2187
- y("path", {
2203
+ function bn(t, s) {
2204
+ return c(), b("svg", vn, s[0] || (s[0] = [
2205
+ _("path", {
2188
2206
  fill: "currentColor",
2189
2207
  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",
2190
2208
  opacity: ".25"
2191
2209
  }, null, -1),
2192
- y("path", {
2210
+ _("path", {
2193
2211
  fill: "currentColor",
2194
2212
  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"
2195
2213
  }, [
2196
- y("animateTransform", {
2214
+ _("animateTransform", {
2197
2215
  attributeName: "transform",
2198
2216
  dur: "0.75s",
2199
2217
  repeatCount: "indefinite",
@@ -2203,7 +2221,7 @@ function gn(t, s) {
2203
2221
  ], -1)
2204
2222
  ]));
2205
2223
  }
2206
- const vn = j({ name: "svg-spinners-90-ring-with-bg", render: gn }), bn = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, yn = { class: "sr-only" }, _n = /* @__PURE__ */ v({
2224
+ const yn = A({ name: "svg-spinners-90-ring-with-bg", render: bn }), _n = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, wn = { class: "sr-only" }, $n = /* @__PURE__ */ h({
2207
2225
  __name: "ProgressBar",
2208
2226
  props: {
2209
2227
  filledClass: {},
@@ -2212,31 +2230,31 @@ const vn = j({ name: "svg-spinners-90-ring-with-bg", render: gn }), bn = { class
2212
2230
  },
2213
2231
  setup(t) {
2214
2232
  let s;
2215
- const e = q(0), r = u(() => E("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = u(() => typeof t.progress == "number" ? t.progress : e.value);
2216
- return Ee(
2233
+ const e = q(0), r = u(() => H("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = u(() => typeof t.progress == "number" ? t.progress : e.value);
2234
+ return He(
2217
2235
  () => t.job,
2218
2236
  () => {
2219
2237
  s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
2220
2238
  },
2221
2239
  { immediate: !0 }
2222
- ), de(() => s && s()), (a, o) => (i(), b("div", bn, [
2223
- y("div", {
2224
- class: k(r.value),
2240
+ ), pe(() => s && s()), (a, o) => (c(), b("div", _n, [
2241
+ _("div", {
2242
+ class: S(r.value),
2225
2243
  style: Mt(`transform:translateX(-${(1 - n.value) * 100}%)`)
2226
2244
  }, null, 6),
2227
- y("span", yn, x(a.$td("ui.progress", "{progress}% complete", {
2245
+ _("span", wn, k(a.$td("ui.progress", "{progress}% complete", {
2228
2246
  progress: n.value * 100
2229
2247
  })), 1)
2230
2248
  ]));
2231
2249
  }
2232
2250
  });
2233
- function wn(t) {
2234
- const s = u(() => t.title ?? S("ui.loading", "Loading")), e = u(
2235
- () => t.message ?? S("ui.loadingInProgress", "Loading in progress...")
2251
+ function xn(t) {
2252
+ const s = u(() => t.title ?? C("ui.loading", "Loading")), e = u(
2253
+ () => t.message ?? C("ui.loadingInProgress", "Loading in progress...")
2236
2254
  ), r = u(() => typeof t.progress == "number" || !!t.job), n = u(() => !t.title);
2237
2255
  return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
2238
2256
  }
2239
- const $n = /* @__PURE__ */ v({
2257
+ const Cn = /* @__PURE__ */ h({
2240
2258
  __name: "LoadingModal",
2241
2259
  props: {
2242
2260
  title: {},
@@ -2245,21 +2263,21 @@ const $n = /* @__PURE__ */ v({
2245
2263
  job: {}
2246
2264
  },
2247
2265
  setup(t, { expose: s }) {
2248
- const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: o } = wn(e);
2249
- return s(), (c, d) => (i(), m(re, {
2266
+ const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: o } = xn(e);
2267
+ return s(), (i, d) => (c(), m(ne, {
2250
2268
  persistent: "",
2251
- class: k(["flex", { "flex-col-reverse": l(o), "items-center justify-center gap-2": !l(o) }]),
2269
+ class: S(["flex", { "flex-col-reverse": l(o), "items-center justify-center gap-2": !l(o) }]),
2252
2270
  "wrapper-class": "w-auto",
2253
2271
  title: l(r),
2254
2272
  "title-hidden": l(a)
2255
2273
  }, {
2256
2274
  default: p(() => [
2257
- l(o) ? (i(), m(_n, {
2275
+ l(o) ? (c(), m($n, {
2258
2276
  key: 0,
2259
- progress: c.progress,
2260
- job: c.job,
2277
+ progress: i.progress,
2278
+ job: i.job,
2261
2279
  class: "min-w-[min(400px,80vw)]"
2262
- }, null, 8, ["progress", "job"])) : (i(), m(l(vn), {
2280
+ }, null, 8, ["progress", "job"])) : (c(), m(l(yn), {
2263
2281
  key: 1,
2264
2282
  class: "text-primary-600 mr-1 size-6"
2265
2283
  })),
@@ -2268,7 +2286,7 @@ const $n = /* @__PURE__ */ v({
2268
2286
  _: 1
2269
2287
  }, 8, ["title", "title-hidden", "class"]));
2270
2288
  }
2271
- }), ht = /* @__PURE__ */ v({
2289
+ }), ht = /* @__PURE__ */ h({
2272
2290
  __name: "HeadlessInput",
2273
2291
  props: {
2274
2292
  name: {},
@@ -2280,7 +2298,7 @@ const $n = /* @__PURE__ */ v({
2280
2298
  emits: ["update:modelValue"],
2281
2299
  setup(t, { expose: s, emit: e }) {
2282
2300
  const r = e, n = oe("form", null), a = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), o = {
2283
- id: `input-${ae()}`,
2301
+ id: `input-${le()}`,
2284
2302
  name: u(() => t.name),
2285
2303
  label: u(() => t.label),
2286
2304
  description: u(() => t.description),
@@ -2290,48 +2308,48 @@ const $n = /* @__PURE__ */ v({
2290
2308
  if (!(!t.name || !n))
2291
2309
  return n.getFieldRules(t.name).includes("required");
2292
2310
  }),
2293
- update(c) {
2311
+ update(i) {
2294
2312
  if (n && t.name) {
2295
- n.setFieldValue(t.name, c);
2313
+ n.setFieldValue(t.name, i);
2296
2314
  return;
2297
2315
  }
2298
- r("update:modelValue", c);
2316
+ r("update:modelValue", i);
2299
2317
  }
2300
2318
  };
2301
- return te("input", o), s(o), (c, d) => (i(), m(N(c.as), null, {
2319
+ return se("input", o), s(o), (i, d) => (c(), m(N(i.as), null, {
2302
2320
  default: p(() => [
2303
- _(c.$slots, "default")
2321
+ w(i.$slots, "default")
2304
2322
  ]),
2305
2323
  _: 3
2306
2324
  }));
2307
2325
  }
2308
- }), xn = ["for"], Ce = /* @__PURE__ */ v({
2326
+ }), Sn = ["for"], Ce = /* @__PURE__ */ h({
2309
2327
  __name: "HeadlessInputLabel",
2310
2328
  setup(t) {
2311
- const s = H("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = ke(), r = u(() => !!(s.label || e.default));
2312
- return (n, a) => r.value ? (i(), b("label", {
2329
+ const s = E("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = ke(), r = u(() => !!(s.label || e.default));
2330
+ return (n, a) => r.value ? (c(), b("label", {
2313
2331
  key: 0,
2314
2332
  for: l(s).id
2315
2333
  }, [
2316
- _(n.$slots, "default", {}, () => [
2317
- V(x(l(s).label), 1)
2334
+ w(n.$slots, "default", {}, () => [
2335
+ V(k(l(s).label), 1)
2318
2336
  ])
2319
- ], 8, xn)) : M("", !0);
2337
+ ], 8, Sn)) : M("", !0);
2320
2338
  }
2321
- }), Cn = ["id", "name", "type", "checked", "required", "aria-invalid", "aria-describedby"], gt = /* @__PURE__ */ v({
2339
+ }), kn = ["id", "name", "type", "checked", "required", "aria-invalid", "aria-describedby"], gt = /* @__PURE__ */ h({
2322
2340
  __name: "HeadlessInputInput",
2323
2341
  props: {
2324
2342
  type: { default: "text" }
2325
2343
  },
2326
2344
  setup(t) {
2327
- const s = se("$inputRef"), e = H("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = u(() => e.name ?? void 0), n = u(() => e.value), a = u(() => {
2345
+ const s = re("$inputRef"), e = E("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = u(() => e.name ?? void 0), n = u(() => e.value), a = u(() => {
2328
2346
  if (t.type === "checkbox")
2329
2347
  return !!n.value;
2330
2348
  });
2331
2349
  function o() {
2332
- s.value && e.update(c());
2350
+ s.value && e.update(i());
2333
2351
  }
2334
- function c() {
2352
+ function i() {
2335
2353
  if (!s.value)
2336
2354
  return null;
2337
2355
  switch (t.type) {
@@ -2346,7 +2364,7 @@ const $n = /* @__PURE__ */ v({
2346
2364
  return tt(e, () => {
2347
2365
  var d;
2348
2366
  return (d = s.value) == null ? void 0 : d.focus();
2349
- }), le(() => {
2367
+ }), ie(() => {
2350
2368
  if (s.value) {
2351
2369
  if (t.type === "date") {
2352
2370
  s.value.valueAsDate = n.value;
@@ -2354,7 +2372,7 @@ const $n = /* @__PURE__ */ v({
2354
2372
  }
2355
2373
  s.value.value = n.value ?? null;
2356
2374
  }
2357
- }), (d, g) => (i(), b("input", {
2375
+ }), (d, g) => (c(), b("input", {
2358
2376
  id: l(e).id,
2359
2377
  ref: "$inputRef",
2360
2378
  name: r.value,
@@ -2364,38 +2382,38 @@ const $n = /* @__PURE__ */ v({
2364
2382
  "aria-invalid": l(e).errors ? "true" : "false",
2365
2383
  "aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
2366
2384
  onInput: o
2367
- }, null, 40, Cn));
2385
+ }, null, 40, kn));
2368
2386
  }
2369
- }), Sn = /* @__PURE__ */ v({
2387
+ }), Mn = /* @__PURE__ */ h({
2370
2388
  inheritAttrs: !1,
2371
2389
  __name: "HeadlessInputDescription",
2372
2390
  setup(t) {
2373
- const s = H(
2391
+ const s = E(
2374
2392
  "input",
2375
2393
  "<HeadlessInputDescription> must be a child of a <HeadlessInput>"
2376
2394
  ), e = u(() => typeof s.description == "string" ? s.description : ""), r = u(() => !!s.description);
2377
- return (n, a) => _(n.$slots, "default", {
2395
+ return (n, a) => w(n.$slots, "default", {
2378
2396
  id: `${l(s).id}-description`
2379
2397
  }, () => [
2380
- r.value ? (i(), m(P, T({ key: 0 }, n.$attrs, {
2398
+ r.value ? (c(), m(P, R({ key: 0 }, n.$attrs, {
2381
2399
  id: `${l(s).id}-description`,
2382
2400
  text: e.value
2383
2401
  }), null, 16, ["id", "text"])) : M("", !0)
2384
2402
  ]);
2385
2403
  }
2386
- }), kn = ["id"], Se = /* @__PURE__ */ v({
2404
+ }), Hn = ["id"], Se = /* @__PURE__ */ h({
2387
2405
  __name: "HeadlessInputError",
2388
2406
  setup(t) {
2389
- const s = H("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = u(() => s.errors ? S(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2390
- return (r, n) => e.value ? (i(), b("p", {
2407
+ const s = E("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = u(() => s.errors ? C(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
2408
+ return (r, n) => e.value ? (c(), b("p", {
2391
2409
  key: 0,
2392
2410
  id: `${l(s).id}-error`
2393
- }, x(e.value), 9, kn)) : M("", !0);
2411
+ }, k(e.value), 9, Hn)) : M("", !0);
2394
2412
  }
2395
- }), Mn = {
2413
+ }), En = {
2396
2414
  key: 0,
2397
2415
  class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
2398
- }, En = /* @__PURE__ */ v({
2416
+ }, In = /* @__PURE__ */ h({
2399
2417
  inheritAttrs: !1,
2400
2418
  __name: "Input",
2401
2419
  props: {
@@ -2408,39 +2426,39 @@ const $n = /* @__PURE__ */ v({
2408
2426
  },
2409
2427
  emits: ["update:modelValue"],
2410
2428
  setup(t) {
2411
- const s = X(t, ["label", "inputClass", "wrapperClass"]), e = se("$inputRef"), [r, n] = rt(), a = u(() => E("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), o = u(() => {
2412
- var c, d, g;
2413
- return E(
2429
+ const s = Y(t, ["label", "inputClass", "wrapperClass"]), e = re("$inputRef"), [r, n] = rt(), a = u(() => H("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), o = u(() => {
2430
+ var i, d, g;
2431
+ return H(
2414
2432
  // eslint-disable-next-line vue/max-len
2415
2433
  "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",
2416
2434
  {
2417
- "focus:ring-primary-600": !((c = e.value) != null && c.errors),
2435
+ "focus:ring-primary-600": !((i = e.value) != null && i.errors),
2418
2436
  "text-gray-900 shadow-2xs ring-gray-300 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
2419
2437
  "pr-10 text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500": (g = e.value) == null ? void 0 : g.errors
2420
2438
  },
2421
2439
  t.inputClass
2422
2440
  );
2423
2441
  });
2424
- return (c, d) => (i(), m(ht, T({
2442
+ return (i, d) => (c(), m(ht, R({
2425
2443
  ref: "$inputRef",
2426
- label: c.label,
2444
+ label: i.label,
2427
2445
  class: l(n)
2428
2446
  }, s, {
2429
- "onUpdate:modelValue": d[0] || (d[0] = (g) => c.$emit("update:modelValue", g))
2447
+ "onUpdate:modelValue": d[0] || (d[0] = (g) => i.$emit("update:modelValue", g))
2430
2448
  }), {
2431
2449
  default: p(() => {
2432
2450
  var g;
2433
2451
  return [
2434
2452
  f(Ce, { class: "block text-sm leading-6 font-medium text-gray-900" }),
2435
- y("div", {
2436
- class: k(a.value)
2453
+ _("div", {
2454
+ class: S(a.value)
2437
2455
  }, [
2438
- f(gt, T(l(r), { class: o.value }), null, 16, ["class"]),
2439
- (g = l(e)) != null && g.errors ? (i(), b("div", Mn, [
2456
+ f(gt, R(l(r), { class: o.value }), null, 16, ["class"]),
2457
+ (g = l(e)) != null && g.errors ? (c(), b("div", En, [
2440
2458
  f(l(ft), { class: "size-5 text-red-500" })
2441
2459
  ])) : M("", !0)
2442
2460
  ], 2),
2443
- f(Sn, { class: "mt-2 text-sm text-gray-600" }),
2461
+ f(Mn, { class: "mt-2 text-sm text-gray-600" }),
2444
2462
  f(Se, { class: "mt-2 text-sm text-red-600" })
2445
2463
  ];
2446
2464
  }),
@@ -2448,83 +2466,83 @@ const $n = /* @__PURE__ */ v({
2448
2466
  }, 16, ["label", "class"]));
2449
2467
  }
2450
2468
  });
2451
- function Ha(t, s = {}) {
2469
+ function La(t, s = {}) {
2452
2470
  return {
2453
2471
  default: t,
2454
2472
  type: "boolean",
2455
2473
  rules: s.rules
2456
2474
  };
2457
2475
  }
2458
- function Ia(t, s = {}) {
2476
+ function Ra(t, s = {}) {
2459
2477
  return {
2460
2478
  default: t,
2461
2479
  type: "date",
2462
2480
  rules: s.rules
2463
2481
  };
2464
2482
  }
2465
- function La(t) {
2483
+ function Va(t) {
2466
2484
  return {
2467
2485
  default: t,
2468
2486
  type: "boolean",
2469
2487
  rules: "required"
2470
2488
  };
2471
2489
  }
2472
- function Ra(t) {
2490
+ function Pa(t) {
2473
2491
  return {
2474
2492
  default: t,
2475
2493
  type: "date",
2476
2494
  rules: "required"
2477
2495
  };
2478
2496
  }
2479
- function Ta(t) {
2497
+ function Aa(t) {
2480
2498
  return {
2481
2499
  default: t,
2482
2500
  type: "number",
2483
2501
  rules: "required"
2484
2502
  };
2485
2503
  }
2486
- function Va(t) {
2504
+ function ja(t) {
2487
2505
  return {
2488
2506
  default: t,
2489
2507
  type: "object",
2490
2508
  rules: "required"
2491
2509
  };
2492
2510
  }
2493
- function Hn(t) {
2511
+ function Tn(t) {
2494
2512
  return {
2495
2513
  default: t,
2496
2514
  type: "string",
2497
2515
  rules: "required"
2498
2516
  };
2499
2517
  }
2500
- function Pa(t, s = {}) {
2518
+ function za(t, s = {}) {
2501
2519
  return {
2502
2520
  default: t,
2503
2521
  type: "number",
2504
2522
  rules: s.rules
2505
2523
  };
2506
2524
  }
2507
- function ja(t, s = {}) {
2525
+ function Da(t, s = {}) {
2508
2526
  return {
2509
2527
  default: t,
2510
2528
  type: "object",
2511
2529
  rules: s.rules
2512
2530
  };
2513
2531
  }
2514
- function Aa(t, s = {}) {
2532
+ function Ba(t, s = {}) {
2515
2533
  return {
2516
2534
  default: t,
2517
2535
  type: "string",
2518
2536
  rules: s.rules
2519
2537
  };
2520
2538
  }
2521
- function In(t) {
2539
+ function Ln(t) {
2522
2540
  const s = st({
2523
- draft: Hn(t.defaultValue ?? "")
2524
- }), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ?? S("ui.accept", "Ok")), a = u(() => t.cancelText ?? S("ui.cancel", "Cancel"));
2541
+ draft: Tn(t.defaultValue ?? "")
2542
+ }), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ?? C("ui.accept", "Ok")), a = u(() => t.cancelText ?? C("ui.cancel", "Cancel"));
2525
2543
  return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
2526
2544
  }
2527
- const Ln = { class: "mt-4 flex flex-row-reverse gap-2" }, Rn = /* @__PURE__ */ v({
2545
+ const Rn = { class: "mt-4 flex flex-row-reverse gap-2" }, Vn = /* @__PURE__ */ h({
2528
2546
  __name: "PromptModal",
2529
2547
  props: {
2530
2548
  title: {},
@@ -2538,43 +2556,43 @@ const Ln = { class: "mt-4 flex flex-row-reverse gap-2" }, Rn = /* @__PURE__ */ v
2538
2556
  cancelVariant: { default: "secondary" }
2539
2557
  },
2540
2558
  setup(t, { expose: s }) {
2541
- const e = X(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: o, renderedCancelText: c } = In(e);
2542
- return s(), (d, g) => (i(), m(re, {
2559
+ const e = Y(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: o, renderedCancelText: i } = Ln(e);
2560
+ return s(), (d, g) => (c(), m(ne, {
2543
2561
  title: l(n),
2544
2562
  persistent: ""
2545
2563
  }, {
2546
- default: p(({ close: $ }) => [
2564
+ default: p(({ close: x }) => [
2547
2565
  f(pt, {
2548
2566
  form: l(r),
2549
- onSubmit: (h) => $(l(r).draft)
2567
+ onSubmit: (v) => x(l(r).draft)
2550
2568
  }, {
2551
2569
  default: p(() => [
2552
- l(a) ? (i(), m(P, {
2570
+ l(a) ? (c(), m(P, {
2553
2571
  key: 0,
2554
2572
  text: l(a)
2555
2573
  }, null, 8, ["text"])) : M("", !0),
2556
- f(En, {
2574
+ f(In, {
2557
2575
  name: "draft",
2558
2576
  class: "mt-2",
2559
2577
  placeholder: d.placeholder,
2560
2578
  label: d.label
2561
2579
  }, null, 8, ["placeholder", "label"]),
2562
- y("div", Ln, [
2563
- f(A, {
2580
+ _("div", Rn, [
2581
+ f(j, {
2564
2582
  variant: d.acceptVariant,
2565
2583
  submit: ""
2566
2584
  }, {
2567
2585
  default: p(() => [
2568
- V(x(l(o)), 1)
2586
+ V(k(l(o)), 1)
2569
2587
  ]),
2570
2588
  _: 1
2571
2589
  }, 8, ["variant"]),
2572
- f(A, {
2590
+ f(j, {
2573
2591
  variant: d.cancelVariant,
2574
- onClick: (h) => $()
2592
+ onClick: (v) => x()
2575
2593
  }, {
2576
2594
  default: p(() => [
2577
- V(x(l(c)), 1)
2595
+ V(k(l(i)), 1)
2578
2596
  ]),
2579
2597
  _: 2
2580
2598
  }, 1032, ["variant", "onClick"])
@@ -2586,12 +2604,12 @@ const Ln = { class: "mt-4 flex flex-row-reverse gap-2" }, Rn = /* @__PURE__ */ v
2586
2604
  _: 1
2587
2605
  }, 8, ["title"]));
2588
2606
  }
2589
- }), Tn = { class: "grid grow place-items-center" }, Vn = { class: "flex flex-col items-center space-y-6 p-8" }, Pn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, jn = { class: "mt-4 flex flex-col space-y-4" }, An = /* @__PURE__ */ v({
2607
+ }), Pn = { class: "grid grow place-items-center" }, An = { class: "flex flex-col items-center space-y-6 p-8" }, jn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, zn = { class: "mt-4 flex flex-col space-y-4" }, Dn = /* @__PURE__ */ h({
2590
2608
  __name: "StartupCrash",
2591
2609
  setup(t) {
2592
- return (s, e) => (i(), b("div", Tn, [
2593
- y("div", Vn, [
2594
- y("h1", Pn, x(s.$td("startupCrash.title", "Something went wrong!")), 1),
2610
+ return (s, e) => (c(), b("div", Pn, [
2611
+ _("div", An, [
2612
+ _("h1", jn, k(s.$td("startupCrash.title", "Something went wrong!")), 1),
2595
2613
  f(P, {
2596
2614
  text: s.$td(
2597
2615
  "startupCrash.message",
@@ -2601,22 +2619,22 @@ Here's some things you can do:`
2601
2619
  ),
2602
2620
  class: "mt-4 text-center"
2603
2621
  }, null, 8, ["text"]),
2604
- y("div", jn, [
2605
- f(A, {
2622
+ _("div", zn, [
2623
+ f(j, {
2606
2624
  variant: "danger",
2607
2625
  onClick: e[0] || (e[0] = (r) => s.$app.reload())
2608
2626
  }, {
2609
2627
  default: p(() => [
2610
- V(x(s.$td("startupCrash.reload", "Try again")), 1)
2628
+ V(k(s.$td("startupCrash.reload", "Try again")), 1)
2611
2629
  ]),
2612
2630
  _: 1
2613
2631
  }),
2614
- f(A, {
2632
+ f(j, {
2615
2633
  variant: "danger",
2616
2634
  onClick: e[1] || (e[1] = (r) => s.$errors.inspect(s.$errors.startupErrors))
2617
2635
  }, {
2618
2636
  default: p(() => [
2619
- V(x(s.$td("startupCrash.inspect", "View error details")), 1)
2637
+ V(k(s.$td("startupCrash.inspect", "View error details")), 1)
2620
2638
  ]),
2621
2639
  _: 1
2622
2640
  })
@@ -2624,23 +2642,23 @@ Here's some things you can do:`
2624
2642
  ])
2625
2643
  ]));
2626
2644
  }
2627
- }), vt = /* @__PURE__ */ v({
2645
+ }), vt = /* @__PURE__ */ h({
2628
2646
  __name: "HeadlessToastAction",
2629
2647
  props: {
2630
2648
  action: {}
2631
2649
  },
2632
2650
  setup(t) {
2633
- return (s, e) => (i(), m(N(s.action.dismiss ? l(ms) : "button"), {
2651
+ return (s, e) => (c(), m(N(s.action.dismiss ? l(ms) : "button"), {
2634
2652
  type: "button",
2635
2653
  onClick: s.action.click
2636
2654
  }, {
2637
2655
  default: p(() => [
2638
- V(x(s.action.label), 1)
2656
+ V(k(s.action.label), 1)
2639
2657
  ]),
2640
2658
  _: 1
2641
2659
  }, 8, ["onClick"]));
2642
2660
  }
2643
- }), zn = { key: 0 }, Bn = /* @__PURE__ */ v({
2661
+ }), Bn = { key: 0 }, qn = /* @__PURE__ */ h({
2644
2662
  __name: "HeadlessToast",
2645
2663
  props: {
2646
2664
  message: {},
@@ -2648,11 +2666,11 @@ Here's some things you can do:`
2648
2666
  variant: {}
2649
2667
  },
2650
2668
  setup(t) {
2651
- return (s, e) => (i(), m(l(fs), null, {
2669
+ return (s, e) => (c(), m(l(fs), null, {
2652
2670
  default: p(() => [
2653
- _(s.$slots, "default", {}, () => [
2654
- s.message ? (i(), b("span", zn, x(s.message), 1)) : M("", !0),
2655
- (i(!0), b(D, null, F(s.actions, (r, n) => (i(), m(vt, {
2671
+ w(s.$slots, "default", {}, () => [
2672
+ s.message ? (c(), b("span", Bn, k(s.message), 1)) : M("", !0),
2673
+ (c(!0), b(B, null, F(s.actions, (r, n) => (c(), m(vt, {
2656
2674
  key: n,
2657
2675
  action: r
2658
2676
  }, null, 8, ["action"]))), 128))
@@ -2661,7 +2679,7 @@ Here's some things you can do:`
2661
2679
  _: 3
2662
2680
  }));
2663
2681
  }
2664
- }), Dn = /* @__PURE__ */ v({
2682
+ }), Fn = /* @__PURE__ */ h({
2665
2683
  __name: "Toast",
2666
2684
  props: {
2667
2685
  message: {},
@@ -2670,7 +2688,7 @@ Here's some things you can do:`
2670
2688
  class: {}
2671
2689
  },
2672
2690
  setup(t, { expose: s }) {
2673
- const e = Ye(
2691
+ const e = u(() => Ye(
2674
2692
  { baseClasses: t.class, variant: t.variant },
2675
2693
  {
2676
2694
  baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
@@ -2684,17 +2702,17 @@ Here's some things you can do:`
2684
2702
  variant: "secondary"
2685
2703
  }
2686
2704
  }
2687
- );
2688
- return s(), (r, n) => (i(), m(Bn, {
2689
- class: k(l(e))
2705
+ ));
2706
+ return s(), (r, n) => (c(), m(qn, {
2707
+ class: S(e.value)
2690
2708
  }, {
2691
2709
  default: p(() => [
2692
- r.message ? (i(), m(P, {
2710
+ r.message ? (c(), m(P, {
2693
2711
  key: 0,
2694
2712
  text: r.message,
2695
2713
  inline: ""
2696
2714
  }, null, 8, ["text"])) : M("", !0),
2697
- (i(!0), b(D, null, F(r.actions, (a, o) => (i(), m(A, {
2715
+ (c(!0), b(B, null, F(r.actions, (a, o) => (c(), m(j, {
2698
2716
  key: o,
2699
2717
  action: a,
2700
2718
  variant: r.variant,
@@ -2704,50 +2722,50 @@ Here's some things you can do:`
2704
2722
  _: 1
2705
2723
  }, 8, ["class"]));
2706
2724
  }
2707
- }), qn = { $ui: R }, Fn = {
2725
+ }), Un = { $ui: L }, On = {
2708
2726
  async install(t, s) {
2709
2727
  const e = {
2710
- "alert-modal": Rr,
2711
- "confirm-modal": Br,
2712
- "error-report-modal": fn,
2713
- "loading-modal": $n,
2714
- "prompt-modal": Rn,
2715
- "startup-crash": An,
2716
- toast: Dn,
2728
+ "alert-modal": Vr,
2729
+ "confirm-modal": qr,
2730
+ "error-report-modal": gn,
2731
+ "loading-modal": Cn,
2732
+ "prompt-modal": Vn,
2733
+ "startup-crash": Dn,
2734
+ toast: Fn,
2717
2735
  ...s.components
2718
2736
  };
2719
2737
  for (const [r, n] of Object.entries(e))
2720
- R.registerComponent(r, n);
2721
- await he(t, qn);
2738
+ L.registerComponent(r, n);
2739
+ await ge(t, Un);
2722
2740
  }
2723
2741
  };
2724
- async function Un(t, s = {}) {
2742
+ async function Nn(t, s = {}) {
2725
2743
  var r;
2726
- const e = [_r, As, er, yr, Fs, Fn, ...s.plugins ?? []];
2727
- z.instance = t, await Ls(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await I.emit("application-ready");
2744
+ const e = [$r, js, er, wr, Fs, On, ...s.plugins ?? []];
2745
+ z.instance = t, await Ts(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await T.emit("application-ready");
2728
2746
  }
2729
- async function za(t, s = {}) {
2747
+ async function qa(t, s = {}) {
2730
2748
  var r;
2731
- const e = Et(t);
2732
- G() && (window.$aerogel = e), await Un(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await I.emit("application-mounted");
2749
+ const e = Ht(t);
2750
+ X() && (window.$aerogel = e), await Nn(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await T.emit("application-mounted");
2733
2751
  }
2734
- const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2752
+ const Wn = { key: 0 }, Kn = /* @__PURE__ */ h({
2735
2753
  __name: "AppModals",
2736
2754
  setup(t) {
2737
- const s = u(() => R.modals[0] ?? null);
2738
- return (e, r) => s.value ? (i(), b("aside", On, [
2755
+ const s = u(() => L.modals[0] ?? null);
2756
+ return (e, r) => s.value ? (c(), b("aside", Wn, [
2739
2757
  f(dt, {
2740
2758
  "child-index": 1,
2741
2759
  modal: s.value
2742
2760
  }, null, 8, ["modal"])
2743
2761
  ])) : M("", !0);
2744
2762
  }
2745
- }), Wn = /* @__PURE__ */ v({
2763
+ }), Qn = /* @__PURE__ */ h({
2746
2764
  __name: "AppToasts",
2747
2765
  setup(t) {
2748
- return (s, e) => (i(), m(l(hs), null, {
2766
+ return (s, e) => (c(), m(l(hs), null, {
2749
2767
  default: p(() => [
2750
- (i(!0), b(D, null, F(s.$ui.toasts, (r) => (i(), m(N(r.component), T({
2768
+ (c(!0), b(B, null, F(s.$ui.toasts, (r) => (c(), m(N(r.component), R({
2751
2769
  id: r.id,
2752
2770
  key: r.id,
2753
2771
  ref_for: !0
@@ -2757,28 +2775,28 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2757
2775
  _: 1
2758
2776
  }));
2759
2777
  }
2760
- }), Kn = /* @__PURE__ */ v({
2778
+ }), Jn = /* @__PURE__ */ h({
2761
2779
  __name: "AppOverlays",
2762
2780
  setup(t) {
2763
- return (s, e) => (i(), b(D, null, [
2764
- f(Nn),
2765
- f(Wn)
2781
+ return (s, e) => (c(), b(B, null, [
2782
+ f(Kn),
2783
+ f(Qn)
2766
2784
  ], 64));
2767
2785
  }
2768
- }), Qn = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Ba = /* @__PURE__ */ v({
2786
+ }), Zn = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Fa = /* @__PURE__ */ h({
2769
2787
  __name: "AppLayout",
2770
2788
  setup(t) {
2771
- return (s, e) => (i(), b("div", Qn, [
2772
- s.$errors.hasStartupErrors ? _(s.$slots, "startup-crash", { key: 0 }, () => [
2773
- (i(), m(N(s.$ui.requireComponent("startup-crash"))))
2774
- ]) : _(s.$slots, "default", { key: 1 }),
2775
- f(Kn)
2789
+ return (s, e) => (c(), b("div", Zn, [
2790
+ s.$errors.hasStartupErrors ? w(s.$slots, "startup-crash", { key: 0 }, () => [
2791
+ (c(), m(N(s.$ui.requireComponent("startup-crash"))))
2792
+ ]) : w(s.$slots, "default", { key: 1 }),
2793
+ f(Jn)
2776
2794
  ]));
2777
2795
  }
2778
- }), Jn = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Da = /* @__PURE__ */ v({
2796
+ }), Gn = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Ua = /* @__PURE__ */ h({
2779
2797
  __name: "HeadlessInputTextArea",
2780
2798
  setup(t) {
2781
- const s = se("$textAreaRef"), e = H(
2799
+ const s = re("$textAreaRef"), e = E(
2782
2800
  "input",
2783
2801
  "<HeadlessInputTextArea> must be a child of a <HeadlessInput>"
2784
2802
  ), r = u(() => e.name ?? void 0), n = u(() => e.value);
@@ -2788,7 +2806,7 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2788
2806
  return tt(e, () => {
2789
2807
  var o;
2790
2808
  return (o = s.value) == null ? void 0 : o.focus();
2791
- }), (o, c) => (i(), b("textarea", {
2809
+ }), (o, i) => (c(), b("textarea", {
2792
2810
  id: l(e).id,
2793
2811
  ref: "$textAreaRef",
2794
2812
  name: r.value,
@@ -2797,22 +2815,22 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2797
2815
  "aria-invalid": l(e).errors ? "true" : "false",
2798
2816
  "aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
2799
2817
  onInput: a
2800
- }, null, 40, Jn));
2818
+ }, null, 40, Gn));
2801
2819
  }
2802
- }), Zn = { class: "group" }, Gn = { class: "-ml-2 flex w-[max-content] cursor-pointer items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, Xn = { class: "pt-2 pl-4" }, qa = /* @__PURE__ */ v({
2820
+ }), Xn = { class: "group" }, Yn = { 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" }, ea = { class: "pt-2 pl-4" }, Oa = /* @__PURE__ */ h({
2803
2821
  __name: "AdvancedOptions",
2804
2822
  setup(t) {
2805
- return (s, e) => (i(), b("details", Zn, [
2806
- y("summary", Gn, [
2823
+ return (s, e) => (c(), b("details", Xn, [
2824
+ _("summary", Yn, [
2807
2825
  f(l(mt), { class: "size-6 transition-transform group-open:rotate-90" }),
2808
- y("span", null, x(s.$td("ui.advancedOptions", "Advanced options")), 1)
2826
+ _("span", null, k(s.$td("ui.advancedOptions", "Advanced options")), 1)
2809
2827
  ]),
2810
- y("div", Xn, [
2811
- _(s.$slots, "default")
2828
+ _("div", ea, [
2829
+ w(s.$slots, "default")
2812
2830
  ])
2813
2831
  ]));
2814
2832
  }
2815
- }), Yn = { class: "flex h-6 items-center" }, Fa = /* @__PURE__ */ v({
2833
+ }), ta = { class: "flex h-6 items-center" }, Na = /* @__PURE__ */ h({
2816
2834
  inheritAttrs: !1,
2817
2835
  __name: "Checkbox",
2818
2836
  props: {
@@ -2825,9 +2843,9 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2825
2843
  },
2826
2844
  emits: ["update:modelValue"],
2827
2845
  setup(t) {
2828
- const s = X(t, ["inputClass", "labelClass"]), e = se("$inputRef"), [r, n] = rt(), a = u(() => E("relative flex items-start", n.value)), o = u(() => {
2846
+ const s = Y(t, ["inputClass", "labelClass"]), e = re("$inputRef"), [r, n] = rt(), a = u(() => H("relative flex items-start", n.value)), o = u(() => {
2829
2847
  var d, g;
2830
- return E(
2848
+ return H(
2831
2849
  "size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
2832
2850
  {
2833
2851
  "border-gray-300 focus:ring-primary-600": !((d = e.value) != null && d.errors),
@@ -2835,34 +2853,34 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2835
2853
  },
2836
2854
  t.inputClass
2837
2855
  );
2838
- }), c = u(() => E("ml-2 text-sm leading-6", t.labelClass));
2839
- return (d, g) => (i(), m(ht, T({
2856
+ }), i = u(() => H("ml-2 text-sm leading-6", t.labelClass));
2857
+ return (d, g) => (c(), m(ht, R({
2840
2858
  ref: "$inputRef",
2841
2859
  class: a.value
2842
2860
  }, s, {
2843
- "onUpdate:modelValue": g[0] || (g[0] = ($) => d.$emit("update:modelValue", $))
2861
+ "onUpdate:modelValue": g[0] || (g[0] = (x) => d.$emit("update:modelValue", x))
2844
2862
  }), {
2845
2863
  default: p(() => [
2846
- y("div", Yn, [
2847
- f(gt, T(l(r), {
2864
+ _("div", ta, [
2865
+ f(gt, R(l(r), {
2848
2866
  type: "checkbox",
2849
2867
  class: o.value
2850
2868
  }), null, 16, ["class"])
2851
2869
  ]),
2852
- d.$slots.default ? (i(), b("div", {
2870
+ d.$slots.default ? (c(), b("div", {
2853
2871
  key: 0,
2854
- class: k(c.value)
2872
+ class: S(i.value)
2855
2873
  }, [
2856
2874
  f(Ce, { class: "text-gray-900" }, {
2857
2875
  default: p(() => [
2858
- _(d.$slots, "default")
2876
+ w(d.$slots, "default")
2859
2877
  ]),
2860
2878
  _: 3
2861
2879
  }),
2862
2880
  f(Se, { class: "text-red-600" })
2863
- ], 2)) : d.label ? (i(), b("div", {
2881
+ ], 2)) : d.label ? (c(), b("div", {
2864
2882
  key: 1,
2865
- class: k(c.value)
2883
+ class: S(i.value)
2866
2884
  }, [
2867
2885
  f(Ce, { class: "text-gray-900" }),
2868
2886
  f(Se, { class: "text-red-600" })
@@ -2871,40 +2889,40 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2871
2889
  _: 3
2872
2890
  }, 16, ["class"]));
2873
2891
  }
2874
- }), ea = /* @__PURE__ */ v({
2892
+ }), sa = /* @__PURE__ */ h({
2875
2893
  __name: "DropdownMenuOption",
2876
2894
  emits: ["select"],
2877
2895
  setup(t) {
2878
- return (s, e) => (i(), m(l(vs), {
2896
+ return (s, e) => (c(), m(l(vs), {
2879
2897
  class: "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
2880
2898
  onSelect: e[0] || (e[0] = (r) => s.$emit("select"))
2881
2899
  }, {
2882
2900
  default: p(() => [
2883
- _(s.$slots, "default")
2901
+ w(s.$slots, "default")
2884
2902
  ]),
2885
2903
  _: 3
2886
2904
  }));
2887
2905
  }
2888
- }), ta = /* @__PURE__ */ v({
2906
+ }), ra = /* @__PURE__ */ h({
2889
2907
  __name: "DropdownMenuOptions",
2890
2908
  setup(t) {
2891
- const s = H(
2909
+ const s = E(
2892
2910
  "dropdown-menu",
2893
2911
  "<DropdownMenuOptions> must be a child of a <DropdownMenu>"
2894
2912
  );
2895
- return (e, r) => (i(), m(l(bs), {
2913
+ return (e, r) => (c(), m(l(bs), {
2896
2914
  class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
2897
2915
  align: l(s).align,
2898
2916
  side: l(s).side
2899
2917
  }, {
2900
2918
  default: p(() => [
2901
- _(e.$slots, "default", {}, () => [
2902
- (i(!0), b(D, null, F(l(s).options, (n, a) => (i(), m(ea, {
2919
+ w(e.$slots, "default", {}, () => [
2920
+ (c(!0), b(B, null, F(l(s).options, (n, a) => (c(), m(sa, {
2903
2921
  key: a,
2904
2922
  onSelect: n.click
2905
2923
  }, {
2906
2924
  default: p(() => [
2907
- V(x(n.label), 1)
2925
+ V(k(n.label), 1)
2908
2926
  ]),
2909
2927
  _: 2
2910
2928
  }, 1032, ["onSelect"]))), 128))
@@ -2913,7 +2931,7 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2913
2931
  _: 3
2914
2932
  }, 8, ["align", "side"]));
2915
2933
  }
2916
- }), Ua = /* @__PURE__ */ v({
2934
+ }), Wa = /* @__PURE__ */ h({
2917
2935
  __name: "DropdownMenu",
2918
2936
  props: {
2919
2937
  align: {},
@@ -2929,18 +2947,18 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2929
2947
  return (r = t.options) == null ? void 0 : r.filter(Boolean);
2930
2948
  })
2931
2949
  };
2932
- return te("dropdown-menu", e), s(e), (r, n) => (i(), m(l(ys), null, {
2950
+ return se("dropdown-menu", e), s(e), (r, n) => (c(), m(l(ys), null, {
2933
2951
  default: p(() => [
2934
2952
  f(l(_s), null, {
2935
2953
  default: p(() => [
2936
- _(r.$slots, "default")
2954
+ w(r.$slots, "default")
2937
2955
  ]),
2938
2956
  _: 3
2939
2957
  }),
2940
2958
  f(l(ws), null, {
2941
2959
  default: p(() => [
2942
- _(r.$slots, "options", {}, () => [
2943
- f(ta)
2960
+ w(r.$slots, "options", {}, () => [
2961
+ f(ra)
2944
2962
  ])
2945
2963
  ]),
2946
2964
  _: 3
@@ -2949,7 +2967,7 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2949
2967
  _: 3
2950
2968
  }));
2951
2969
  }
2952
- }), sa = ["aria-hidden"], ra = ["tabindex", "aria-label", "type"], Oa = /* @__PURE__ */ v({
2970
+ }), na = ["aria-hidden"], aa = ["tabindex", "aria-label", "type"], Ka = /* @__PURE__ */ h({
2953
2971
  __name: "EditableContent",
2954
2972
  props: {
2955
2973
  type: { default: "text" },
@@ -2962,69 +2980,69 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
2962
2980
  },
2963
2981
  emits: ["update", "save"],
2964
2982
  setup(t, { emit: s }) {
2965
- const e = s, r = se("$inputRef"), n = q(null), a = q(t.text), o = u(() => E("inline whitespace-pre", t.contentClass)), c = u(() => E("invisible whitespace-pre", t.contentClass)), d = u(() => E("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
2983
+ const e = s, r = re("$inputRef"), n = q(null), a = q(t.text), o = u(() => H("inline whitespace-pre", t.contentClass)), i = u(() => H("invisible whitespace-pre", t.contentClass)), d = u(() => H("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
2966
2984
  function g() {
2967
2985
  n.value = t.text;
2968
2986
  }
2969
- function $() {
2987
+ function x() {
2970
2988
  n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
2971
2989
  }
2972
- return le(() => a.value = t.text), (h, C) => (i(), b("div", {
2973
- class: k(["relative", { "pointer-events-none!": h.disabled && !n.value }])
2990
+ return ie(() => a.value = t.text), (v, y) => (c(), b("div", {
2991
+ class: S(["relative", { "pointer-events-none!": v.disabled && !n.value }])
2974
2992
  }, [
2975
- n.value ? (i(), b("span", {
2993
+ n.value ? (c(), b("span", {
2976
2994
  key: 1,
2977
- class: k(c.value)
2978
- }, x(a.value), 3)) : (i(), b("div", {
2995
+ class: S(i.value)
2996
+ }, k(a.value), 3)) : (c(), b("div", {
2979
2997
  key: 0,
2980
- class: k(o.value)
2998
+ class: S(o.value)
2981
2999
  }, [
2982
- _(h.$slots, "default")
3000
+ w(v.$slots, "default")
2983
3001
  ], 2)),
2984
- h.type === "number" ? (i(), b("span", {
3002
+ v.type === "number" ? (c(), b("span", {
2985
3003
  key: 2,
2986
- class: k(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
3004
+ class: S(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
2987
3005
  }, null, 2)) : M("", !0),
2988
- y("form", {
3006
+ _("form", {
2989
3007
  class: "w-full",
2990
- "aria-hidden": h.formAriaHidden,
2991
- onSubmit: C[4] || (C[4] = qe((L) => {
2992
- var ge;
2993
- return (ge = l(r)) == null ? void 0 : ge.blur();
3008
+ "aria-hidden": v.formAriaHidden,
3009
+ onSubmit: y[4] || (y[4] = qe((I) => {
3010
+ var W;
3011
+ return (W = l(r)) == null ? void 0 : W.blur();
2994
3012
  }, ["prevent"]))
2995
3013
  }, [
2996
- Fe(y("input", {
3014
+ Fe(_("input", {
2997
3015
  ref: "$inputRef",
2998
- "onUpdate:modelValue": C[0] || (C[0] = (L) => a.value = L),
2999
- tabindex: h.tabindex ?? void 0,
3000
- "aria-label": h.ariaLabel ?? void 0,
3001
- type: h.type,
3002
- class: k([
3016
+ "onUpdate:modelValue": y[0] || (y[0] = (I) => a.value = I),
3017
+ tabindex: v.tabindex ?? void 0,
3018
+ "aria-label": v.ariaLabel ?? void 0,
3019
+ type: v.type,
3020
+ class: S([
3003
3021
  d.value,
3004
- { "opacity-0": !n.value, "appearance-textfield": !n.value && h.type === "number" }
3022
+ { "opacity-0": !n.value, "appearance-textfield": !n.value && v.type === "number" }
3005
3023
  ]),
3006
- onKeyup: C[1] || (C[1] = (L) => h.$emit("update", a.value)),
3007
- onFocus: C[2] || (C[2] = (L) => g()),
3008
- onBlur: C[3] || (C[3] = (L) => $())
3009
- }, null, 42, ra), [
3010
- [Ht, a.value]
3024
+ onKeyup: y[1] || (y[1] = (I) => v.$emit("update", a.value)),
3025
+ onFocus: y[2] || (y[2] = (I) => g()),
3026
+ onBlur: y[3] || (y[3] = (I) => x())
3027
+ }, null, 42, aa), [
3028
+ [Et, a.value]
3011
3029
  ])
3012
- ], 40, sa)
3030
+ ], 40, na)
3013
3031
  ], 2));
3014
3032
  }
3015
- }), Na = /* @__PURE__ */ v({
3033
+ }), Qa = /* @__PURE__ */ h({
3016
3034
  __name: "ErrorMessage",
3017
3035
  props: {
3018
3036
  error: {}
3019
3037
  },
3020
3038
  setup(t) {
3021
3039
  const s = u(() => Zs(t.error));
3022
- return (e, r) => (i(), m(P, {
3040
+ return (e, r) => (c(), m(P, {
3023
3041
  text: s.value,
3024
3042
  inline: ""
3025
3043
  }, null, 8, ["text"]));
3026
3044
  }
3027
- }), Wa = /* @__PURE__ */ v({
3045
+ }), Ja = /* @__PURE__ */ h({
3028
3046
  __name: "Link",
3029
3047
  props: {
3030
3048
  class: {},
@@ -3039,36 +3057,36 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
3039
3057
  as: {}
3040
3058
  },
3041
3059
  setup(t) {
3042
- return (s, e) => (i(), m(A, T({ variant: "link" }, s.$props), {
3060
+ return (s, e) => (c(), m(j, R({ variant: "link" }, s.$props), {
3043
3061
  default: p(() => [
3044
- _(s.$slots, "default")
3062
+ w(s.$slots, "default")
3045
3063
  ]),
3046
3064
  _: 3
3047
3065
  }, 16));
3048
3066
  }
3049
- }), Ka = /* @__PURE__ */ v({
3067
+ }), Za = /* @__PURE__ */ h({
3050
3068
  __name: "SettingsModal",
3051
3069
  setup(t) {
3052
3070
  const s = u(() => Ft(z.settings, "priority", "desc"));
3053
- return (e, r) => (i(), m(re, {
3071
+ return (e, r) => (c(), m(ne, {
3054
3072
  title: e.$td("settings.title", "Settings")
3055
3073
  }, {
3056
3074
  default: p(() => [
3057
- (i(!0), b(D, null, F(s.value, (n, a) => (i(), m(N(n.component), { key: a }))), 128))
3075
+ (c(!0), b(B, null, F(s.value, (n, a) => (c(), m(N(n.component), { key: a }))), 128))
3058
3076
  ]),
3059
3077
  _: 1
3060
3078
  }, 8, ["title"]));
3061
3079
  }
3062
3080
  });
3063
- class Qa {
3081
+ class Ga {
3064
3082
  constructor() {
3065
- w(this, "status");
3066
- w(this, "_listeners");
3067
- w(this, "_progress");
3068
- w(this, "_cancelled");
3069
- w(this, "_started");
3070
- w(this, "_completed");
3071
- this.status = this.getInitialStatus(), this._listeners = new Ut(), this._started = new W(), this._completed = new W();
3083
+ $(this, "status");
3084
+ $(this, "_listeners");
3085
+ $(this, "_progress");
3086
+ $(this, "_cancelled");
3087
+ $(this, "_started");
3088
+ $(this, "_completed");
3089
+ this.status = this.getInitialStatus(), this._listeners = new Ut(), this._started = new K(), this._completed = new K();
3072
3090
  }
3073
3091
  async start() {
3074
3092
  this.beforeStart(), this._started.resolve();
@@ -3077,13 +3095,13 @@ class Qa {
3077
3095
  } catch (s) {
3078
3096
  if (s instanceof Pe)
3079
3097
  return;
3080
- throw J(Ot(s), (e) => {
3098
+ throw Z(Ot(s), (e) => {
3081
3099
  this._completed.reject(e);
3082
3100
  });
3083
3101
  }
3084
3102
  }
3085
3103
  async cancel() {
3086
- this._cancelled = new W(), await this._cancelled;
3104
+ this._cancelled = new K(), await this._cancelled;
3087
3105
  }
3088
3106
  serialize() {
3089
3107
  return this.serializeStatus(this.status);
@@ -3135,134 +3153,135 @@ class Qa {
3135
3153
  return { ...s };
3136
3154
  }
3137
3155
  }
3138
- async function Ja(t) {
3156
+ async function Xa(t) {
3139
3157
  await t.start();
3140
3158
  }
3141
3159
  export {
3142
- qa as AdvancedOptions,
3143
- Rr as AlertModal,
3160
+ Oa as AdvancedOptions,
3161
+ Vr as AlertModal,
3144
3162
  z as App,
3145
- Ba as AppLayout,
3146
- Nn as AppModals,
3147
- Kn as AppOverlays,
3163
+ Fa as AppLayout,
3164
+ Kn as AppModals,
3165
+ Jn as AppOverlays,
3148
3166
  Is as AppService,
3149
- Wn as AppToasts,
3150
- A as Button,
3151
- _a as Cache,
3167
+ Qn as AppToasts,
3168
+ j as Button,
3169
+ xa as Cache,
3152
3170
  zs as CacheService,
3153
- Fa as Checkbox,
3154
- Br as ConfirmModal,
3155
- Ua as DropdownMenu,
3156
- ea as DropdownMenuOption,
3157
- ta as DropdownMenuOptions,
3158
- Oa as EditableContent,
3159
- Na as ErrorMessage,
3160
- fn as ErrorReportModal,
3161
- nn as ErrorReportModalButtons,
3162
- an as ErrorReportModalTitle,
3171
+ Na as Checkbox,
3172
+ qr as ConfirmModal,
3173
+ Wa as DropdownMenu,
3174
+ sa as DropdownMenuOption,
3175
+ ra as DropdownMenuOptions,
3176
+ Ka as EditableContent,
3177
+ Qa as ErrorMessage,
3178
+ gn as ErrorReportModal,
3179
+ ln as ErrorReportModalButtons,
3180
+ on as ErrorReportModalTitle,
3163
3181
  Ge as Errors,
3164
- ga as EventListenerPriorities,
3165
- I as Events,
3166
- Es as EventsService,
3182
+ ya as EventListenerPriorities,
3183
+ T as Events,
3184
+ Hs as EventsService,
3167
3185
  pt as Form,
3168
- cr as FormController,
3169
- ar as HeadlessButton,
3186
+ dr as FormController,
3187
+ or as HeadlessButton,
3170
3188
  ht as HeadlessInput,
3171
- Sn as HeadlessInputDescription,
3189
+ Mn as HeadlessInputDescription,
3172
3190
  Se as HeadlessInputError,
3173
3191
  gt as HeadlessInputInput,
3174
3192
  Ce as HeadlessInputLabel,
3175
- Da as HeadlessInputTextArea,
3176
- Cr as HeadlessModal,
3177
- Sr as HeadlessModalContent,
3178
- kr as HeadlessModalDescription,
3179
- Mr as HeadlessModalOverlay,
3180
- Er as HeadlessModalTitle,
3181
- ur as HeadlessSelect,
3182
- Ae as HeadlessSelectLabel,
3183
- ot as HeadlessSelectOption,
3184
- lt as HeadlessSelectOptions,
3193
+ Ua as HeadlessInputTextArea,
3194
+ kr as HeadlessModal,
3195
+ Mr as HeadlessModalContent,
3196
+ Hr as HeadlessModalDescription,
3197
+ Er as HeadlessModalOverlay,
3198
+ Ir as HeadlessModalTitle,
3199
+ pr as HeadlessSelect,
3200
+ je as HeadlessSelectLabel,
3201
+ lt as HeadlessSelectOption,
3202
+ ot as HeadlessSelectOptions,
3185
3203
  at as HeadlessSelectTrigger,
3186
3204
  nt as HeadlessSelectValue,
3187
- Bn as HeadlessToast,
3188
- En as Input,
3189
- Qa as Job,
3205
+ qn as HeadlessToast,
3206
+ In as Input,
3207
+ Ga as Job,
3190
3208
  Pe as JobCancelledError,
3191
- Q as Lang,
3192
- ue as Layouts,
3193
- Wa as Link,
3194
- $n as LoadingModal,
3209
+ J as Lang,
3210
+ de as Layouts,
3211
+ Ja as Link,
3212
+ Cn as LoadingModal,
3195
3213
  Qe as MOBILE_BREAKPOINT,
3196
3214
  P as Markdown,
3197
- re as Modal,
3215
+ ne as Modal,
3198
3216
  dt as ModalContext,
3199
- _n as ProgressBar,
3200
- Rn as PromptModal,
3201
- fr as Select,
3217
+ $n as ProgressBar,
3218
+ Vn as PromptModal,
3219
+ gr as Select,
3202
3220
  it as SelectLabel,
3203
3221
  ze as SelectOption,
3204
3222
  ct as SelectOptions,
3205
3223
  ut as SelectTrigger,
3206
- fe as Service,
3224
+ he as Service,
3207
3225
  xe as ServiceBootError,
3208
- Ka as SettingsModal,
3209
- An as StartupCrash,
3210
- Ds as Storage,
3211
- Dn as Toast,
3212
- R as UI,
3226
+ Za as SettingsModal,
3227
+ Dn as StartupCrash,
3228
+ Bs as Storage,
3229
+ Fn as Toast,
3230
+ L as UI,
3213
3231
  Os as UIService,
3214
- Ca as __objectType,
3215
- Ha as booleanInput,
3216
- he as bootServices,
3217
- za as bootstrap,
3218
- Un as bootstrapApplication,
3219
- E as classes,
3220
- Ma as computedAsync,
3221
- Ea as computedDebounce,
3222
- Ye as computedVariantClasses,
3223
- Ia as dateInput,
3224
- ya as defineDirective,
3225
- xa as defineFormValidationRule,
3226
- ba as definePlugin,
3227
- me as defineServiceState,
3232
+ Ma as __objectType,
3233
+ La as booleanInput,
3234
+ ge as bootServices,
3235
+ qa as bootstrap,
3236
+ Nn as bootstrapApplication,
3237
+ H as classes,
3238
+ Ia as computedAsync,
3239
+ Ta as computedDebounce,
3240
+ Ra as dateInput,
3241
+ $a as defineDirective,
3242
+ ka as defineFormValidationRule,
3243
+ wa as definePlugin,
3244
+ fe as defineServiceState,
3228
3245
  Ms as defineServiceStore,
3229
- va as defineSettings,
3230
- Ja as dispatch,
3246
+ _a as defineSettings,
3247
+ Xa as dispatch,
3231
3248
  Je as getCurrentLayout,
3232
3249
  Zs as getErrorMessage,
3233
3250
  ks as getPiniaStore,
3234
- or as hasSelectOptionLabel,
3251
+ ir as hasSelectOptionLabel,
3235
3252
  Vs as injectOrFail,
3236
- Ts as injectReactive,
3237
- H as injectReactiveOrFail,
3238
- Ls as installPlugins,
3239
- Pa as numberInput,
3240
- ja as objectInput,
3241
- Sa as onCleanMounted,
3253
+ Rs as injectReactive,
3254
+ E as injectReactiveOrFail,
3255
+ Ts as installPlugins,
3256
+ za as numberInput,
3257
+ Da as objectInput,
3258
+ Ha as onCleanMounted,
3242
3259
  tt as onFormFocus,
3243
- ka as persistent,
3244
- $a as registerErrorHandler,
3260
+ Ea as persistent,
3261
+ Sa as registerErrorHandler,
3245
3262
  rr as renderMarkdown,
3246
3263
  Ke as renderVNode,
3247
- wa as replaceExisting,
3248
- La as requiredBooleanInput,
3249
- Ra as requiredDateInput,
3250
- Ta as requiredNumberInput,
3251
- Va as requiredObjectInput,
3252
- Hn as requiredStringInput,
3264
+ Ca as replaceExisting,
3265
+ Va as requiredBooleanInput,
3266
+ Pa as requiredDateInput,
3267
+ Aa as requiredNumberInput,
3268
+ ja as requiredObjectInput,
3269
+ Tn as requiredStringInput,
3253
3270
  Ss as resetPiniaStore,
3254
3271
  nr as safeHtml,
3255
- Aa as stringInput,
3272
+ Ba as stringInput,
3256
3273
  Ze as translate,
3257
- S as translateWithDefault,
3258
- Tr as useConfirmModal,
3259
- on as useErrorReportModal,
3274
+ C as translateWithDefault,
3275
+ Rr as useAlertModal,
3276
+ Pr as useConfirmModal,
3277
+ cn as useErrorReportModal,
3260
3278
  et as useEvent,
3261
3279
  st as useForm,
3262
3280
  rt as useInputAttrs,
3263
- wn as useLoadingModal,
3264
- In as usePromptModal,
3265
- ir as validate,
3266
- ie as validators
3281
+ xn as useLoadingModal,
3282
+ Ln as usePromptModal,
3283
+ ur as validate,
3284
+ ce as validators,
3285
+ Ye as variantClasses
3267
3286
  };
3268
3287
  //# sourceMappingURL=aerogel-core.js.map