@aerogel/core 0.1.1-next.b342b522bd4e8a154c68962bb545cd8ae66010c3 → 0.1.1-next.bf5c51083c0817e96fa4f38273c32d388441f514

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