@aerogel/core 0.1.1-next.c3c3c32e9b674ba4ae2d33973d4659e37c863c35 → 0.1.1-next.d3af81f1f7f69a65742c4d298e0c77c6c3977d2b

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