@aerogel/core 0.1.1-next.1e4498f367b830c7a83435800066bb8261d179f5 → 0.1.1-next.3efa6858f5942a7048392e08e88f511c6c5ca343

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