@aerogel/core 0.1.1-next.99766defd90af84297715d34b226d66e90304026 → 0.1.1-next.99b3fb08de2a9c2e13062ba0459f432627992d23
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.
- package/dist/aerogel-core.d.ts +10 -10
- package/dist/aerogel-core.js +270 -265
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +1 -1
- package/src/components/headless/HeadlessInputInput.vue +15 -4
- package/src/errors/index.ts +1 -5
- package/src/forms/FormController.ts +16 -10
package/dist/aerogel-core.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
var Ot = Object.defineProperty;
|
|
2
2
|
var Ft = (t, s, e) => s in t ? Ot(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
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
|
|
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
|
|
6
|
-
import
|
|
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
|
+
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
9
|
import { marked as ws, Renderer as Qe } from "marked";
|
|
10
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
|
|
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 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
|
|
16
|
-
class
|
|
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
|
}
|
|
20
20
|
}
|
|
21
21
|
function dr() {
|
|
22
|
-
return
|
|
22
|
+
return U.namespace ?? ss(U.name);
|
|
23
23
|
}
|
|
24
|
-
let
|
|
24
|
+
let Pe = null;
|
|
25
25
|
function ht() {
|
|
26
|
-
return
|
|
26
|
+
return Pe ?? pr();
|
|
27
27
|
}
|
|
28
28
|
function pr() {
|
|
29
29
|
return ne(gs(), (t) => {
|
|
30
|
-
|
|
30
|
+
Pe = t, vs(t);
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
function mr() {
|
|
34
|
-
return
|
|
34
|
+
return Pe ?? ht();
|
|
35
35
|
}
|
|
36
36
|
function fr(t, s) {
|
|
37
37
|
return ht(), bs(t, s)();
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Me(t) {
|
|
40
40
|
var s;
|
|
41
|
-
return s = class extends
|
|
41
|
+
return s = class extends Ve {
|
|
42
42
|
usesStore() {
|
|
43
43
|
return !0;
|
|
44
44
|
}
|
|
@@ -74,8 +74,8 @@ To fix this problem, declare your initialState as a function instead.`
|
|
|
74
74
|
}
|
|
75
75
|
}, C(s, "persist", t.persist ?? []), s;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
let
|
|
77
|
+
var Ie;
|
|
78
|
+
let Ve = (Ie = class extends ut {
|
|
79
79
|
constructor() {
|
|
80
80
|
super();
|
|
81
81
|
C(this, "_name");
|
|
@@ -97,7 +97,7 @@ let Ee = (ze = class extends ut {
|
|
|
97
97
|
return super.static(e);
|
|
98
98
|
}
|
|
99
99
|
launch() {
|
|
100
|
-
const e = (r) => this._booted.reject(new
|
|
100
|
+
const e = (r) => this._booted.reject(new Re(this._name, r));
|
|
101
101
|
try {
|
|
102
102
|
this.frameworkBoot().then(() => this.boot()).then(() => this._booted.resolve()).catch(e);
|
|
103
103
|
} catch (r) {
|
|
@@ -125,7 +125,7 @@ let Ee = (ze = class extends ut {
|
|
|
125
125
|
if (!this._store)
|
|
126
126
|
return;
|
|
127
127
|
const r = ct(e), n = ie(this._store.$state, r);
|
|
128
|
-
|
|
128
|
+
He(n) || this.onPersistentStateUpdated(n);
|
|
129
129
|
}
|
|
130
130
|
__get(e) {
|
|
131
131
|
return this.hasState(e) ? this.getState(e) : super.__get(e);
|
|
@@ -138,7 +138,7 @@ let Ee = (ze = class extends ut {
|
|
|
138
138
|
}
|
|
139
139
|
onStateUpdated(e, r) {
|
|
140
140
|
const n = ie(e, this.static("persist"));
|
|
141
|
-
|
|
141
|
+
He(n) || this.onPersistentStateUpdated(n);
|
|
142
142
|
for (const a in e) {
|
|
143
143
|
const c = this._watchers[a];
|
|
144
144
|
!c || e[a] === r[a] || c.call(this, e[a], r[a]);
|
|
@@ -178,7 +178,7 @@ let Ee = (ze = class extends ut {
|
|
|
178
178
|
async boot() {
|
|
179
179
|
}
|
|
180
180
|
restorePersistedState() {
|
|
181
|
-
if (!(!this.usesStore() ||
|
|
181
|
+
if (!(!this.usesStore() || He(this.static("persist")))) {
|
|
182
182
|
if (Q.has(this.storageKey)) {
|
|
183
183
|
const e = Q.require(this.storageKey);
|
|
184
184
|
this.setState(this.deserializePersistedState(e));
|
|
@@ -190,13 +190,13 @@ let Ee = (ze = class extends ut {
|
|
|
190
190
|
requireStore() {
|
|
191
191
|
return this._store ? this._store : J(`Failed getting '${this._name}' store`);
|
|
192
192
|
}
|
|
193
|
-
}, C(
|
|
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
|
|
199
|
+
class hr extends Ve {
|
|
200
200
|
constructor() {
|
|
201
201
|
super(...arguments);
|
|
202
202
|
C(this, "listeners", {});
|
|
@@ -227,7 +227,7 @@ class hr extends Ee {
|
|
|
227
227
|
return ne(
|
|
228
228
|
() => a && this.off(e, a),
|
|
229
229
|
(u) => {
|
|
230
|
-
a = (...
|
|
230
|
+
a = (...f) => (u(), o(...f)), this.registerListener(e, c, o);
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}
|
|
@@ -238,29 +238,29 @@ class hr extends Ee {
|
|
|
238
238
|
return;
|
|
239
239
|
const a = [...n.priorities];
|
|
240
240
|
for (const o of a)
|
|
241
|
-
|
|
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 u,
|
|
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 c = ((u = this.listeners[e]) == null ? void 0 : u.priorities) ?? J(`priorities missing for event '${e}'`), o = ((
|
|
249
|
-
c.includes(a) || (c.push(a), c.sort((b, M) => M - b), o[a] = []), (
|
|
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
|
|
252
|
+
const N = ae(hr);
|
|
253
253
|
function Jl(t) {
|
|
254
254
|
return t;
|
|
255
255
|
}
|
|
256
|
-
const gr =
|
|
256
|
+
const gr = Me({
|
|
257
257
|
name: "app",
|
|
258
258
|
initialState: {
|
|
259
259
|
plugins: {},
|
|
260
260
|
instance: null,
|
|
261
261
|
environment: ns() ?? "development",
|
|
262
|
-
version:
|
|
263
|
-
sourceUrl:
|
|
262
|
+
version: U.version,
|
|
263
|
+
sourceUrl: U.sourceUrl,
|
|
264
264
|
settings: [],
|
|
265
265
|
settingsFullscreenOnMobile: !1
|
|
266
266
|
},
|
|
@@ -269,17 +269,17 @@ const gr = Ve({
|
|
|
269
269
|
staging: (t) => t.environment === "staging",
|
|
270
270
|
testing: (t) => t.environment === "test" || t.environment === "testing",
|
|
271
271
|
versionName(t) {
|
|
272
|
-
return this.development ? "dev." +
|
|
272
|
+
return this.development ? "dev." + U.sourceHash.toString().substring(0, 7) : this.staging ? "staging." + U.sourceHash.toString().substring(0, 7) : `v${t.version}`;
|
|
273
273
|
},
|
|
274
274
|
versionUrl(t) {
|
|
275
|
-
return t.sourceUrl + (this.development || this.staging ? `/tree/${
|
|
275
|
+
return t.sourceUrl + (this.development || this.staging ? `/tree/${U.sourceHash}` : `/releases/tag/${this.versionName}`);
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
});
|
|
279
279
|
class vr extends gr {
|
|
280
280
|
constructor() {
|
|
281
281
|
super(...arguments);
|
|
282
|
-
C(this, "name",
|
|
282
|
+
C(this, "name", U.name);
|
|
283
283
|
C(this, "ready", new G());
|
|
284
284
|
C(this, "mounted", new G());
|
|
285
285
|
}
|
|
@@ -309,15 +309,15 @@ class vr extends gr {
|
|
|
309
309
|
return ((r = this.instance) == null ? void 0 : r.config.globalProperties[e]) ?? null;
|
|
310
310
|
}
|
|
311
311
|
async boot() {
|
|
312
|
-
|
|
312
|
+
N.once("application-ready", () => this.ready.resolve()), N.once("application-mounted", () => this.mounted.resolve());
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
const
|
|
315
|
+
const P = ae(vr);
|
|
316
316
|
function Zl(t) {
|
|
317
317
|
return t;
|
|
318
318
|
}
|
|
319
319
|
async function br(t, ...s) {
|
|
320
|
-
|
|
320
|
+
P.setState(
|
|
321
321
|
"plugins",
|
|
322
322
|
t.reduce(
|
|
323
323
|
(e, r) => (r.name && (e[r.name] = r), e),
|
|
@@ -326,7 +326,7 @@ 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}="${
|
|
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;
|
|
@@ -336,27 +336,27 @@ function wr(t) {
|
|
|
336
336
|
return s ? we(s) : void 0;
|
|
337
337
|
}
|
|
338
338
|
function L(t, s) {
|
|
339
|
-
return wr(t) ?? J(s ?? `Could not resolve '${
|
|
339
|
+
return wr(t) ?? J(s ?? `Could not resolve '${K(t)}' injection key`);
|
|
340
340
|
}
|
|
341
341
|
function $r(t, s) {
|
|
342
|
-
return te(t) ?? J(s ?? `Could not resolve '${
|
|
342
|
+
return te(t) ?? J(s ?? `Could not resolve '${K(t)}' injection key`);
|
|
343
343
|
}
|
|
344
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
347
|
` : `<${t.type} ${yr(t)}>${Array.from(t.children).map(gt).join("")}</${t.type}>`;
|
|
348
348
|
}
|
|
349
|
-
const
|
|
349
|
+
const Le = /* @__PURE__ */ new WeakMap(), _r = {
|
|
350
350
|
mounted(t, { value: s, modifiers: e }) {
|
|
351
351
|
const r = typeof s == "function" ? s : null, n = () => {
|
|
352
352
|
const a = t.getBoundingClientRect();
|
|
353
353
|
e.css && (t.style.setProperty("--width", `${a.width}px`), t.style.setProperty("--height", `${a.height}px`)), r == null || r({ width: a.width, height: a.height });
|
|
354
354
|
};
|
|
355
|
-
e.watch &&
|
|
355
|
+
e.watch && Le.set(t, ne(new ResizeObserver(n)).observe(t)), n();
|
|
356
356
|
},
|
|
357
357
|
unmounted(t) {
|
|
358
358
|
var s;
|
|
359
|
-
(s =
|
|
359
|
+
(s = Le.get(t)) == null || s.unobserve(t), Le.delete(t);
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
function vt(t, s) {
|
|
@@ -367,7 +367,7 @@ function k(...t) {
|
|
|
367
367
|
return Ts(ks(t));
|
|
368
368
|
}
|
|
369
369
|
function Xl(t, s) {
|
|
370
|
-
const e =
|
|
370
|
+
const e = N.on(t, s);
|
|
371
371
|
Ce(() => e());
|
|
372
372
|
}
|
|
373
373
|
const xr = {
|
|
@@ -430,8 +430,7 @@ class Mr extends ut {
|
|
|
430
430
|
return this._submitted.value;
|
|
431
431
|
}
|
|
432
432
|
setFieldValue(e, r) {
|
|
433
|
-
|
|
434
|
-
this._data[e] = n.type === "string" && (n.trim ?? !0) ? O(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 ut {
|
|
|
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
|
}
|
|
@@ -471,7 +474,7 @@ class Mr extends ut {
|
|
|
471
474
|
return (n = this._listeners)[e] ?? (n[e] = []), (a = this._listeners[e]) == null || a.push(r), () => this.off(e, r);
|
|
472
475
|
}
|
|
473
476
|
off(e, r) {
|
|
474
|
-
|
|
477
|
+
ze(this._listeners[e] ?? [], r);
|
|
475
478
|
}
|
|
476
479
|
async focus(e) {
|
|
477
480
|
var r;
|
|
@@ -535,7 +538,7 @@ function so(t, s) {
|
|
|
535
538
|
}
|
|
536
539
|
function Vr(t, s = {}) {
|
|
537
540
|
let e = new Set(t), r, n;
|
|
538
|
-
const a = s == null ? void 0 : s.equals, c = a ? (u) => o.value.values().some((
|
|
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, {
|
|
539
542
|
get: () => e,
|
|
540
543
|
set: () => J("Attempted to write read-only reactive set")
|
|
541
544
|
}));
|
|
@@ -612,20 +615,20 @@ const qr = {
|
|
|
612
615
|
mounted(t, { value: s }) {
|
|
613
616
|
t.innerHTML = wt(s);
|
|
614
617
|
}
|
|
615
|
-
},
|
|
618
|
+
}, Ar = {
|
|
616
619
|
measure: _r,
|
|
617
620
|
"safe-html": qr
|
|
618
|
-
},
|
|
621
|
+
}, Pr = {
|
|
619
622
|
install(t, s) {
|
|
620
623
|
const e = {
|
|
621
|
-
...
|
|
624
|
+
...Ar,
|
|
622
625
|
...s.directives
|
|
623
626
|
};
|
|
624
627
|
for (const [r, n] of Object.entries(e))
|
|
625
628
|
t.directive(r, n);
|
|
626
629
|
}
|
|
627
630
|
};
|
|
628
|
-
class Dr extends
|
|
631
|
+
class Dr extends Ve {
|
|
629
632
|
constructor() {
|
|
630
633
|
super(...arguments);
|
|
631
634
|
C(this, "cache");
|
|
@@ -647,9 +650,9 @@ class Dr extends Ee {
|
|
|
647
650
|
}
|
|
648
651
|
}
|
|
649
652
|
const lo = ae(Dr);
|
|
650
|
-
class Br extends
|
|
653
|
+
class Br extends Ve {
|
|
651
654
|
async purge() {
|
|
652
|
-
await
|
|
655
|
+
await N.emit("purge-storage");
|
|
653
656
|
}
|
|
654
657
|
}
|
|
655
658
|
const $t = ae(Br);
|
|
@@ -660,11 +663,11 @@ function oo(t, s) {
|
|
|
660
663
|
};
|
|
661
664
|
}
|
|
662
665
|
const jr = {
|
|
663
|
-
$app:
|
|
664
|
-
$events:
|
|
666
|
+
$app: P,
|
|
667
|
+
$events: N,
|
|
665
668
|
$storage: $t
|
|
666
669
|
};
|
|
667
|
-
async function
|
|
670
|
+
async function Ee(t, s) {
|
|
668
671
|
await Promise.all(
|
|
669
672
|
Object.entries(s).map(async ([e, r]) => {
|
|
670
673
|
await r.launch().catch((n) => {
|
|
@@ -672,7 +675,7 @@ async function He(t, s) {
|
|
|
672
675
|
return (c = (a = t.config).errorHandler) == null ? void 0 : c.call(a, n, null, `Failed launching ${e}.`);
|
|
673
676
|
});
|
|
674
677
|
})
|
|
675
|
-
), Object.assign(t.config.globalProperties, s), (Y() ||
|
|
678
|
+
), Object.assign(t.config.globalProperties, s), (Y() || qe()) && Object.assign(globalThis, s);
|
|
676
679
|
}
|
|
677
680
|
const Or = {
|
|
678
681
|
async install(t, s) {
|
|
@@ -681,7 +684,7 @@ const Or = {
|
|
|
681
684
|
...jr,
|
|
682
685
|
...s.services
|
|
683
686
|
};
|
|
684
|
-
t.use(mr()), (r = s.settings) == null || r.forEach((n) =>
|
|
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);
|
|
685
688
|
}
|
|
686
689
|
};
|
|
687
690
|
class Fr {
|
|
@@ -710,7 +713,7 @@ class Fr {
|
|
|
710
713
|
return Y() && console.warn("Lang provider is missing"), e;
|
|
711
714
|
}
|
|
712
715
|
}
|
|
713
|
-
const Ur =
|
|
716
|
+
const Ur = Me({
|
|
714
717
|
name: "lang",
|
|
715
718
|
persist: ["locale", "fallbackLocale"],
|
|
716
719
|
initialState: {
|
|
@@ -761,7 +764,7 @@ function Be(t) {
|
|
|
761
764
|
if (e)
|
|
762
765
|
return e;
|
|
763
766
|
}
|
|
764
|
-
return typeof t == "string" ? t : t instanceof Error || t instanceof Te ? t.message : be(t) ?
|
|
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");
|
|
765
768
|
}
|
|
766
769
|
const et = /* @__PURE__ */ new WeakSet();
|
|
767
770
|
function je() {
|
|
@@ -780,7 +783,7 @@ const Ct = 768, $e = {
|
|
|
780
783
|
function kt() {
|
|
781
784
|
return globalThis.innerWidth > Ct ? $e.Desktop : $e.Mobile;
|
|
782
785
|
}
|
|
783
|
-
const Wr =
|
|
786
|
+
const Wr = Me({
|
|
784
787
|
name: "ui",
|
|
785
788
|
initialState: {
|
|
786
789
|
toasts: [],
|
|
@@ -824,17 +827,17 @@ class Kr extends Wr {
|
|
|
824
827
|
title: e,
|
|
825
828
|
message: r,
|
|
826
829
|
required: !!(n != null && n.required)
|
|
827
|
-
}, { response: o } = await this.modal(this.requireComponent("confirm-modal"), c), u = typeof o == "object" ? o[0] : o ?? !1,
|
|
828
|
-
(
|
|
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 }]) => ({
|
|
829
832
|
[b]: M ?? !1,
|
|
830
|
-
...
|
|
833
|
+
...m
|
|
831
834
|
}),
|
|
832
835
|
{}
|
|
833
836
|
);
|
|
834
|
-
for (const [
|
|
835
|
-
if (!(!b.required || m
|
|
836
|
-
return u && Y() && console.warn(`Confirmed confirm modal was suppressed because required '${
|
|
837
|
-
return "checkboxes" in c ? [u,
|
|
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;
|
|
838
841
|
}
|
|
839
842
|
async prompt(e, r, n) {
|
|
840
843
|
const a = (n == null ? void 0 : n.trim) ?? !0, c = () => typeof r != "string" ? {
|
|
@@ -864,16 +867,16 @@ class Kr extends Wr {
|
|
|
864
867
|
};
|
|
865
868
|
};
|
|
866
869
|
let c = !1;
|
|
867
|
-
const { operationPromise: o, props: u, delay:
|
|
868
|
-
if (
|
|
870
|
+
const { operationPromise: o, props: u, delay: f } = a();
|
|
871
|
+
if (f && await Promise.race([ce({ ms: f }).then(() => c = !0), o]), f && !c)
|
|
869
872
|
return o;
|
|
870
|
-
const
|
|
871
|
-
Je(
|
|
873
|
+
const m = _s(this.requireComponent("loading-modal"), u);
|
|
874
|
+
Je(m);
|
|
872
875
|
try {
|
|
873
876
|
const b = await o;
|
|
874
877
|
return await ce({ ms: 500 }), b;
|
|
875
878
|
} finally {
|
|
876
|
-
await Ze(
|
|
879
|
+
await Ze(m.id, { removeAfter: 1e3 });
|
|
877
880
|
}
|
|
878
881
|
}
|
|
879
882
|
toast(e, r = {}) {
|
|
@@ -894,7 +897,7 @@ class Kr extends Wr {
|
|
|
894
897
|
this.watchMountedEvent(), this.watchViewportBreakpoints();
|
|
895
898
|
}
|
|
896
899
|
watchMountedEvent() {
|
|
897
|
-
|
|
900
|
+
N.once("application-mounted", async () => {
|
|
898
901
|
if (!globalThis.document || !globalThis.getComputedStyle)
|
|
899
902
|
return;
|
|
900
903
|
const e = globalThis.document.getElementById("splash");
|
|
@@ -907,7 +910,7 @@ class Kr extends Wr {
|
|
|
907
910
|
globalThis.matchMedia(`(min-width: ${Ct}px)`).addEventListener("change", () => this.setState({ layout: kt() }));
|
|
908
911
|
}
|
|
909
912
|
}
|
|
910
|
-
const D = ae(Kr), Qr =
|
|
913
|
+
const D = ae(Kr), Qr = Me({
|
|
911
914
|
name: "errors",
|
|
912
915
|
initialState: {
|
|
913
916
|
logs: [],
|
|
@@ -943,9 +946,9 @@ class Jr extends Qr {
|
|
|
943
946
|
D.modal(D.requireComponent("error-report-modal"), { report: n, reports: a });
|
|
944
947
|
}
|
|
945
948
|
async report(e, r) {
|
|
946
|
-
if (await
|
|
949
|
+
if (await N.emit("error", { error: e, message: r }), qe("unit") || (Y() && this.logError(e), !this.enabled))
|
|
947
950
|
throw e;
|
|
948
|
-
if (!
|
|
951
|
+
if (!P.isMounted()) {
|
|
949
952
|
const c = await this.createStartupErrorReport(e);
|
|
950
953
|
c && this.setState({ startupErrors: this.startupErrors.concat(c) });
|
|
951
954
|
return;
|
|
@@ -1001,10 +1004,10 @@ class Jr extends Qr {
|
|
|
1001
1004
|
}
|
|
1002
1005
|
async createErrorReport(e) {
|
|
1003
1006
|
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof Te ? this.createErrorReportFromError(e) : be(e) ? pt({
|
|
1004
|
-
title:
|
|
1007
|
+
title: K(
|
|
1005
1008
|
e.name ?? e.title ?? S("errors.unknown", "Unknown Error")
|
|
1006
1009
|
),
|
|
1007
|
-
description:
|
|
1010
|
+
description: K(
|
|
1008
1011
|
e.message ?? e.description ?? S("errors.unknownDescription", "Unknown error object")
|
|
1009
1012
|
),
|
|
1010
1013
|
error: e
|
|
@@ -1014,7 +1017,7 @@ class Jr extends Qr {
|
|
|
1014
1017
|
};
|
|
1015
1018
|
}
|
|
1016
1019
|
async createStartupErrorReport(e) {
|
|
1017
|
-
return e instanceof
|
|
1020
|
+
return e instanceof Re ? e.cause instanceof Re ? null : this.createErrorReport(e.cause) : this.createErrorReport(e);
|
|
1018
1021
|
}
|
|
1019
1022
|
createErrorReportFromError(e, r = {}) {
|
|
1020
1023
|
return {
|
|
@@ -1084,7 +1087,7 @@ const St = ae(Jr), Tt = /* @__PURE__ */ v({
|
|
|
1084
1087
|
as: {}
|
|
1085
1088
|
},
|
|
1086
1089
|
setup(t) {
|
|
1087
|
-
const s =
|
|
1090
|
+
const s = W(t, ["class", "size", "variant", "disabled"]), e = d(() => vt(
|
|
1088
1091
|
{ baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
|
|
1089
1092
|
{
|
|
1090
1093
|
baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
@@ -1195,13 +1198,13 @@ function Zr(t) {
|
|
|
1195
1198
|
return typeof t == "object" && t !== null && "label" in t;
|
|
1196
1199
|
}
|
|
1197
1200
|
function Mt(t, s) {
|
|
1198
|
-
const e = te("form", null), r = (
|
|
1199
|
-
const { name:
|
|
1200
|
-
return e &&
|
|
1201
|
-
}), 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((
|
|
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) => ({
|
|
1202
1205
|
key: pe(),
|
|
1203
|
-
label: r(
|
|
1204
|
-
value:
|
|
1206
|
+
label: r(m),
|
|
1207
|
+
value: m
|
|
1205
1208
|
})) : null), u = {
|
|
1206
1209
|
renderOption: r,
|
|
1207
1210
|
labelClass: d(() => t.value.labelClass),
|
|
@@ -1216,26 +1219,26 @@ function Mt(t, s) {
|
|
|
1216
1219
|
placeholder: d(() => t.value.placeholder ?? S("ui.select", "Select an option")),
|
|
1217
1220
|
options: o,
|
|
1218
1221
|
selectedOption: d(() => {
|
|
1219
|
-
var
|
|
1220
|
-
return (
|
|
1222
|
+
var m;
|
|
1223
|
+
return (m = o.value) == null ? void 0 : m.find((b) => b.value === t.value.modelValue);
|
|
1221
1224
|
}),
|
|
1222
1225
|
errors: ke(c),
|
|
1223
1226
|
required: d(() => {
|
|
1224
1227
|
if (!(!t.value.name || !e))
|
|
1225
1228
|
return e.getFieldRules(t.value.name).includes("required");
|
|
1226
1229
|
}),
|
|
1227
|
-
update(
|
|
1230
|
+
update(m) {
|
|
1228
1231
|
if (e && t.value.name) {
|
|
1229
|
-
e.setFieldValue(t.value.name,
|
|
1232
|
+
e.setFieldValue(t.value.name, m);
|
|
1230
1233
|
return;
|
|
1231
1234
|
}
|
|
1232
|
-
s("update:modelValue",
|
|
1235
|
+
s("update:modelValue", m);
|
|
1233
1236
|
}
|
|
1234
1237
|
};
|
|
1235
|
-
function m
|
|
1236
|
-
u.update(
|
|
1238
|
+
function f(m) {
|
|
1239
|
+
u.update(m);
|
|
1237
1240
|
}
|
|
1238
|
-
return oe("select", u), { expose: u, acceptableValue: a, update:
|
|
1241
|
+
return oe("select", u), { expose: u, acceptableValue: a, update: f, renderOption: r };
|
|
1239
1242
|
}
|
|
1240
1243
|
const Vt = /* @__PURE__ */ v({
|
|
1241
1244
|
__name: "HeadlessSelectValue",
|
|
@@ -1294,7 +1297,7 @@ const Vt = /* @__PURE__ */ v({
|
|
|
1294
1297
|
), e = d(() => {
|
|
1295
1298
|
var n;
|
|
1296
1299
|
const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
|
|
1297
|
-
return r ? s.renderOption(r.value) :
|
|
1300
|
+
return r ? s.renderOption(r.value) : K(t.value);
|
|
1298
1301
|
});
|
|
1299
1302
|
return (r, n) => (i(), g(l(Hs), me(fe(r.$props)), {
|
|
1300
1303
|
default: h(() => [
|
|
@@ -1336,7 +1339,7 @@ const Vt = /* @__PURE__ */ v({
|
|
|
1336
1339
|
}, {
|
|
1337
1340
|
default: h(() => [
|
|
1338
1341
|
$(r.$slots, "default", {}, () => [
|
|
1339
|
-
(i(!0), y(j, null,
|
|
1342
|
+
(i(!0), y(j, null, O(l(s).options ?? [], (a) => (i(), g(Ht, {
|
|
1340
1343
|
key: a.key,
|
|
1341
1344
|
value: a.value
|
|
1342
1345
|
}, null, 8, ["value"]))), 128))
|
|
@@ -1371,21 +1374,21 @@ const Vt = /* @__PURE__ */ v({
|
|
|
1371
1374
|
},
|
|
1372
1375
|
emits: ["update:modelValue"],
|
|
1373
1376
|
setup(t, { expose: s, emit: e }) {
|
|
1374
|
-
const r = e, n =
|
|
1377
|
+
const r = e, n = W(t, ["as", "compareOptions"]), { expose: a, acceptableValue: c, update: o } = Mt(
|
|
1375
1378
|
d(() => ({ as: t.as, compareOptions: t.compareOptions, ...n })),
|
|
1376
1379
|
r
|
|
1377
1380
|
);
|
|
1378
|
-
return s(a), (u,
|
|
1381
|
+
return s(a), (u, f) => (i(), g(l(qs), {
|
|
1379
1382
|
"model-value": l(c),
|
|
1380
1383
|
by: u.compareOptions,
|
|
1381
|
-
"onUpdate:modelValue":
|
|
1384
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => l(o)(m))
|
|
1382
1385
|
}, {
|
|
1383
|
-
default: h(({ open:
|
|
1386
|
+
default: h(({ open: m }) => [
|
|
1384
1387
|
(i(), g(re(u.as), me(fe(u.$attrs)), {
|
|
1385
1388
|
default: h(() => [
|
|
1386
1389
|
$(u.$slots, "default", {
|
|
1387
1390
|
modelValue: u.modelValue,
|
|
1388
|
-
open:
|
|
1391
|
+
open: m
|
|
1389
1392
|
}, () => [
|
|
1390
1393
|
p(Et),
|
|
1391
1394
|
p(Lt)
|
|
@@ -1487,7 +1490,7 @@ const Vt = /* @__PURE__ */ v({
|
|
|
1487
1490
|
(a = l(s).options) != null && a.length ? $(r.$slots, "default", { key: 0 }, () => {
|
|
1488
1491
|
var c;
|
|
1489
1492
|
return [
|
|
1490
|
-
(i(!0), y(j, null,
|
|
1493
|
+
(i(!0), y(j, null, O(((c = l(s)) == null ? void 0 : c.options) ?? [], (o) => (i(), g(st, {
|
|
1491
1494
|
key: o.key,
|
|
1492
1495
|
value: o.value
|
|
1493
1496
|
}, {
|
|
@@ -1608,7 +1611,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1608
1611
|
},
|
|
1609
1612
|
emits: ["update:modelValue"],
|
|
1610
1613
|
setup(t) {
|
|
1611
|
-
const { forwardRef: s } =
|
|
1614
|
+
const { forwardRef: s } = Ae();
|
|
1612
1615
|
return (e, r) => (i(), g(Gr, I({ ref: l(s) }, e.$props, {
|
|
1613
1616
|
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
|
|
1614
1617
|
}), {
|
|
@@ -1628,8 +1631,8 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1628
1631
|
setup(t) {
|
|
1629
1632
|
const s = ee.getBrowserLocale(), e = d(() => [null, ...ee.locales]);
|
|
1630
1633
|
function r(n) {
|
|
1631
|
-
return (n &&
|
|
1632
|
-
locale:
|
|
1634
|
+
return (n && U.locales[n]) ?? S("settings.localeDefault", "{locale} (default)", {
|
|
1635
|
+
locale: U.locales[s] ?? s
|
|
1633
1636
|
});
|
|
1634
1637
|
}
|
|
1635
1638
|
return (n, a) => (i(), g(an, {
|
|
@@ -1648,7 +1651,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1648
1651
|
]),
|
|
1649
1652
|
_: 1
|
|
1650
1653
|
}),
|
|
1651
|
-
p(
|
|
1654
|
+
p(A, {
|
|
1652
1655
|
"lang-key": "settings.localeDescription",
|
|
1653
1656
|
"lang-default": "Choose the application's language.",
|
|
1654
1657
|
class: "mt-1 text-sm text-gray-500"
|
|
@@ -1672,7 +1675,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1672
1675
|
], cn = { $lang: ee }, dn = {
|
|
1673
1676
|
async install(t) {
|
|
1674
1677
|
var s;
|
|
1675
|
-
(s = t.config.globalProperties).$t ?? (s.$t = _t), t.config.globalProperties.$td = S, un.forEach((e) =>
|
|
1678
|
+
(s = t.config.globalProperties).$t ?? (s.$t = _t), t.config.globalProperties.$td = S, un.forEach((e) => P.addSetting(e)), await Ee(t, cn);
|
|
1676
1679
|
}
|
|
1677
1680
|
}, pn = /* @__PURE__ */ v({
|
|
1678
1681
|
__name: "Markdown",
|
|
@@ -1698,10 +1701,10 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1698
1701
|
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
1699
1702
|
});
|
|
1700
1703
|
async function c(o) {
|
|
1701
|
-
var
|
|
1704
|
+
var f, m;
|
|
1702
1705
|
const { target: u } = o;
|
|
1703
1706
|
if (Ke(u, HTMLElement) && u.dataset.markdownAction) {
|
|
1704
|
-
(
|
|
1707
|
+
(m = (f = t.actions) == null ? void 0 : f[u.dataset.markdownAction]) == null || m.call(f);
|
|
1705
1708
|
return;
|
|
1706
1709
|
}
|
|
1707
1710
|
if (Ke(u, HTMLAnchorElement) && u.dataset.markdownRoute) {
|
|
@@ -1717,7 +1720,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1717
1720
|
for (const [r, n] of s)
|
|
1718
1721
|
e[r] = n;
|
|
1719
1722
|
return e;
|
|
1720
|
-
},
|
|
1723
|
+
}, A = /* @__PURE__ */ mn(pn, [["__scopeId", "data-v-8b211cfb"]]), fn = { class: "flex-grow" }, hn = ["id"], gn = /* @__PURE__ */ v({
|
|
1721
1724
|
__name: "Setting",
|
|
1722
1725
|
props: {
|
|
1723
1726
|
title: {},
|
|
@@ -1736,7 +1739,7 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1736
1739
|
id: e.titleId,
|
|
1737
1740
|
class: "text-base font-semibold"
|
|
1738
1741
|
}, x(e.title), 9, hn),
|
|
1739
|
-
e.description ? (i(), g(
|
|
1742
|
+
e.description ? (i(), g(A, {
|
|
1740
1743
|
key: 0,
|
|
1741
1744
|
text: e.description,
|
|
1742
1745
|
class: "mt-1 text-sm text-gray-500"
|
|
@@ -1793,16 +1796,16 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1793
1796
|
for: c.id,
|
|
1794
1797
|
class: _(o.labelClass)
|
|
1795
1798
|
}, x(o.label), 11, vn)) : T("", !0),
|
|
1796
|
-
p(l(
|
|
1799
|
+
p(l(As), I({
|
|
1797
1800
|
id: c.id,
|
|
1798
1801
|
name: o.name,
|
|
1799
1802
|
"model-value": c.value.value
|
|
1800
1803
|
}, o.$attrs, {
|
|
1801
1804
|
class: o.inputClass,
|
|
1802
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1805
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => o.$emit("update:modelValue", f))
|
|
1803
1806
|
}), {
|
|
1804
1807
|
default: h(() => [
|
|
1805
|
-
p(l(
|
|
1808
|
+
p(l(Ps), {
|
|
1806
1809
|
class: _(o.thumbClass)
|
|
1807
1810
|
}, null, 8, ["class"])
|
|
1808
1811
|
]),
|
|
@@ -1845,20 +1848,20 @@ const he = R({ name: "zondicons-exclamation-solid", render: sn }), rn = {
|
|
|
1845
1848
|
];
|
|
1846
1849
|
class rt extends Te {
|
|
1847
1850
|
}
|
|
1848
|
-
const _n = { $errors: St }, xn = (t) => (
|
|
1851
|
+
const _n = { $errors: St }, xn = (t) => (Be(t).includes("ResizeObserver loop completed with undelivered notifications.") || St.report(t), !0);
|
|
1849
1852
|
function Cn(t, s = () => !1) {
|
|
1850
1853
|
const e = (r) => s(r) || xn(r);
|
|
1851
1854
|
t.config.errorHandler = e, globalThis.onerror = (r, n, a, c, o) => e(o ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
1852
1855
|
}
|
|
1853
1856
|
const kn = {
|
|
1854
1857
|
async install(t, s) {
|
|
1855
|
-
Cn(t, s.handleError), $n.forEach((e) =>
|
|
1858
|
+
Cn(t, s.handleError), $n.forEach((e) => P.addSetting(e)), await Ee(t, _n);
|
|
1856
1859
|
}
|
|
1857
1860
|
}, Sn = {
|
|
1858
1861
|
async install() {
|
|
1859
|
-
|
|
1860
|
-
on: (...t) =>
|
|
1861
|
-
service: (t) =>
|
|
1862
|
+
qe() && (globalThis.testingRuntime = {
|
|
1863
|
+
on: (...t) => N.on(...t),
|
|
1864
|
+
service: (t) => P.service(t)
|
|
1862
1865
|
});
|
|
1863
1866
|
}
|
|
1864
1867
|
}, Tn = {
|
|
@@ -1888,7 +1891,7 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1888
1891
|
setup(t, { expose: s }) {
|
|
1889
1892
|
const e = B(null), { close: r } = je();
|
|
1890
1893
|
s({ $content: e });
|
|
1891
|
-
const { forwardRef: n } =
|
|
1894
|
+
const { forwardRef: n } = Ae();
|
|
1892
1895
|
return oe("$modalContentRef", e), (a, c) => (i(), g(l(Ds), {
|
|
1893
1896
|
ref: l(n),
|
|
1894
1897
|
open: "",
|
|
@@ -1978,34 +1981,34 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
1978
1981
|
closeHidden: { type: Boolean }
|
|
1979
1982
|
},
|
|
1980
1983
|
setup(t, { expose: s }) {
|
|
1981
|
-
const e =
|
|
1984
|
+
const e = W(t, ["class", "wrapperClass", "title", "titleHidden", "description", "persistent", "closeHidden", "fullscreen", "fullscreenOnMobile"]);
|
|
1982
1985
|
s({
|
|
1983
1986
|
$content: d(() => {
|
|
1984
1987
|
var E;
|
|
1985
1988
|
return (E = o.value) == null ? void 0 : E.$content;
|
|
1986
1989
|
})
|
|
1987
1990
|
});
|
|
1988
|
-
const { forwardRef: r, currentRef: n } =
|
|
1991
|
+
const { forwardRef: r, currentRef: n } = Ae(), { id: a, visible: c } = je(), o = n, u = mt(), f = d(
|
|
1989
1992
|
() => {
|
|
1990
1993
|
var E;
|
|
1991
1994
|
return c.value && ((E = ue.value.toReversed().find((Fe) => Fe.visible.value)) == null ? void 0 : E.id) === a.value;
|
|
1992
1995
|
}
|
|
1993
|
-
),
|
|
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(
|
|
1994
1997
|
"overflow-auto px-4 pb-4 flex flex-col flex-1",
|
|
1995
1998
|
{ "pt-4": !t.title || t.titleHidden, "max-h-[90vh]": !V.value },
|
|
1996
1999
|
t.class
|
|
1997
|
-
)), V = d(() => t.fullscreen || t.fullscreenOnMobile && D.mobile),
|
|
2000
|
+
)), V = d(() => t.fullscreen || t.fullscreenOnMobile && D.mobile), F = d(() => k(
|
|
1998
2001
|
"isolate fixed z-50 flex flex-col overflow-hidden bg-white text-left duration-300",
|
|
1999
2002
|
V.value ? [
|
|
2000
2003
|
"inset-0 transition-[transform,translate] will-change-[transform,translate]",
|
|
2001
2004
|
ve.has(u.value) || "animate-[slide-in_var(--tw-duration)_ease-in-out]",
|
|
2002
|
-
|
|
2005
|
+
f.value ? "translate-y-0" : "translate-y-full"
|
|
2003
2006
|
] : [
|
|
2004
2007
|
"top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full",
|
|
2005
2008
|
"max-w-[calc(100%-2rem)] rounded-lg shadow-xl sm:max-w-lg",
|
|
2006
2009
|
"transition-[scale,opacity] will-change-[scale,opacity]",
|
|
2007
2010
|
ve.has(u.value) || "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
|
|
2008
|
-
|
|
2011
|
+
f.value ? "scale-100 opacity-100" : "scale-50 opacity-0"
|
|
2009
2012
|
],
|
|
2010
2013
|
t.wrapperClass
|
|
2011
2014
|
));
|
|
@@ -2019,12 +2022,12 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
2019
2022
|
p(In, {
|
|
2020
2023
|
class: _(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
|
|
2021
2024
|
"animate-[fade-in_var(--tw-duration)_ease-in-out]": !b.value,
|
|
2022
|
-
"bg-black/30": ((Ue =
|
|
2023
|
-
"opacity-0": !
|
|
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),
|
|
2026
|
+
"opacity-0": !m.value,
|
|
2024
2027
|
hidden: V.value
|
|
2025
2028
|
}])
|
|
2026
2029
|
}, null, 8, ["class"]),
|
|
2027
|
-
p(Hn, I(M.value, { class:
|
|
2030
|
+
p(Hn, I(M.value, { class: F.value }), {
|
|
2028
2031
|
default: h(() => [
|
|
2029
2032
|
!E.persistent && !E.closeHidden ? (i(), y("div", {
|
|
2030
2033
|
key: 0,
|
|
@@ -2048,7 +2051,7 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
2048
2051
|
}])
|
|
2049
2052
|
}, {
|
|
2050
2053
|
default: h(() => [
|
|
2051
|
-
p(
|
|
2054
|
+
p(A, {
|
|
2052
2055
|
text: E.title,
|
|
2053
2056
|
inline: ""
|
|
2054
2057
|
}, null, 8, ["text"])
|
|
@@ -2060,7 +2063,7 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
2060
2063
|
class: _(["px-4 pt-1 pb-2", { "sr-only": E.descriptionHidden }])
|
|
2061
2064
|
}, {
|
|
2062
2065
|
default: h(() => [
|
|
2063
|
-
p(
|
|
2066
|
+
p(A, {
|
|
2064
2067
|
text: E.description,
|
|
2065
2068
|
class: "text-sm leading-6 text-gray-500"
|
|
2066
2069
|
}, null, 8, ["text"])
|
|
@@ -2081,29 +2084,29 @@ const Vn = R({ name: "zondicons-close", render: Mn }), En = /* @__PURE__ */ v({
|
|
|
2081
2084
|
}, 16, ["persistent"]));
|
|
2082
2085
|
}
|
|
2083
2086
|
});
|
|
2084
|
-
function
|
|
2087
|
+
function An(t) {
|
|
2085
2088
|
const s = d(() => t.title ?? S("ui.alert", "Alert")), e = d(() => !t.title);
|
|
2086
2089
|
return { renderedTitle: s, titleHidden: e };
|
|
2087
2090
|
}
|
|
2088
|
-
const
|
|
2091
|
+
const Pn = /* @__PURE__ */ v({
|
|
2089
2092
|
__name: "AlertModal",
|
|
2090
2093
|
props: {
|
|
2091
2094
|
title: {},
|
|
2092
2095
|
message: {}
|
|
2093
2096
|
},
|
|
2094
2097
|
setup(t, { expose: s }) {
|
|
2095
|
-
const e = t, { renderedTitle: r, titleHidden: n } =
|
|
2098
|
+
const e = t, { renderedTitle: r, titleHidden: n } = An(e);
|
|
2096
2099
|
return s(), (a, c) => (i(), g(le, {
|
|
2097
2100
|
title: l(r),
|
|
2098
2101
|
"title-hidden": l(n)
|
|
2099
2102
|
}, {
|
|
2100
2103
|
default: h(() => [
|
|
2101
|
-
p(
|
|
2104
|
+
p(A, { text: a.message }, null, 8, ["text"])
|
|
2102
2105
|
]),
|
|
2103
2106
|
_: 1
|
|
2104
2107
|
}, 8, ["title", "title-hidden"]));
|
|
2105
2108
|
}
|
|
2106
|
-
}),
|
|
2109
|
+
}), At = /* @__PURE__ */ v({
|
|
2107
2110
|
__name: "Form",
|
|
2108
2111
|
props: {
|
|
2109
2112
|
form: {}
|
|
@@ -2156,24 +2159,24 @@ const Bn = {
|
|
|
2156
2159
|
},
|
|
2157
2160
|
emits: ["close"],
|
|
2158
2161
|
setup(t, { expose: s }) {
|
|
2159
|
-
const e =
|
|
2160
|
-
return s(), (u,
|
|
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, {
|
|
2161
2164
|
title: l(n),
|
|
2162
2165
|
"title-hidden": l(a),
|
|
2163
2166
|
persistent: ""
|
|
2164
2167
|
}, {
|
|
2165
|
-
default: h(({ close:
|
|
2166
|
-
p(
|
|
2168
|
+
default: h(({ close: m }) => [
|
|
2169
|
+
p(At, {
|
|
2167
2170
|
form: l(r),
|
|
2168
|
-
onSubmit: (b) =>
|
|
2171
|
+
onSubmit: (b) => m([!0, l(r).data()])
|
|
2169
2172
|
}, {
|
|
2170
2173
|
default: h(() => [
|
|
2171
|
-
p(
|
|
2174
|
+
p(A, {
|
|
2172
2175
|
text: u.message,
|
|
2173
2176
|
actions: u.actions
|
|
2174
2177
|
}, null, 8, ["text", "actions"]),
|
|
2175
2178
|
u.checkboxes ? (i(), y("ul", Bn, [
|
|
2176
|
-
(i(!0), y(j, null,
|
|
2179
|
+
(i(!0), y(j, null, O(u.checkboxes, (b, M) => (i(), y("li", { key: M }, [
|
|
2177
2180
|
w("label", jn, [
|
|
2178
2181
|
it(w("input", {
|
|
2179
2182
|
"onUpdate:modelValue": (H) => l(r)[M] = H,
|
|
@@ -2200,7 +2203,7 @@ const Bn = {
|
|
|
2200
2203
|
u.required ? T("", !0) : (i(), g(q, {
|
|
2201
2204
|
key: 0,
|
|
2202
2205
|
variant: u.cancelVariant,
|
|
2203
|
-
onClick: (b) =>
|
|
2206
|
+
onClick: (b) => m(!1)
|
|
2204
2207
|
}, {
|
|
2205
2208
|
default: h(() => [
|
|
2206
2209
|
z(x(l(o)), 1)
|
|
@@ -2241,7 +2244,7 @@ function Zn(t, s) {
|
|
|
2241
2244
|
}, null, -1)
|
|
2242
2245
|
]));
|
|
2243
2246
|
}
|
|
2244
|
-
const
|
|
2247
|
+
const Pt = R({ name: "zondicons-cheveron-right", render: Zn }), Gn = {
|
|
2245
2248
|
viewBox: "0 0 24 24",
|
|
2246
2249
|
width: "1.2em",
|
|
2247
2250
|
height: "1.2em"
|
|
@@ -2287,7 +2290,7 @@ const aa = R({ name: "mdi-github", render: na }), la = { class: "flex" }, oa = {
|
|
|
2287
2290
|
},
|
|
2288
2291
|
setup(t) {
|
|
2289
2292
|
const s = t, e = d(() => s.report.description ? `${s.report.title}: ${s.report.description}` : s.report.title), r = d(() => {
|
|
2290
|
-
if (!
|
|
2293
|
+
if (!P.sourceUrl)
|
|
2291
2294
|
return !1;
|
|
2292
2295
|
const a = encodeURIComponent(e.value), c = encodeURIComponent(
|
|
2293
2296
|
[
|
|
@@ -2297,13 +2300,13 @@ const aa = R({ name: "mdi-github", render: na }), la = { class: "flex" }, oa = {
|
|
|
2297
2300
|
"```",
|
|
2298
2301
|
ds(
|
|
2299
2302
|
s.report.details ?? "Details missing from report",
|
|
2300
|
-
1800 - a.length -
|
|
2303
|
+
1800 - a.length - P.sourceUrl.length
|
|
2301
2304
|
).trim(),
|
|
2302
2305
|
"```"
|
|
2303
2306
|
].join(`
|
|
2304
2307
|
`)
|
|
2305
2308
|
);
|
|
2306
|
-
return `${
|
|
2309
|
+
return `${P.sourceUrl}/issues/new?title=${a}&body=${c}`;
|
|
2307
2310
|
}), n = d(() => ne(
|
|
2308
2311
|
[
|
|
2309
2312
|
{
|
|
@@ -2341,7 +2344,7 @@ ${s.report.details}`), D.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2341
2344
|
}
|
|
2342
2345
|
));
|
|
2343
2346
|
return (a, c) => (i(), y("div", la, [
|
|
2344
|
-
(i(!0), y(j, null,
|
|
2347
|
+
(i(!0), y(j, null, O(n.value, (o) => $(a.$slots, "default", I({ ref_for: !0 }, o), () => [
|
|
2345
2348
|
p(q, {
|
|
2346
2349
|
size: "icon",
|
|
2347
2350
|
variant: "ghost",
|
|
@@ -2371,7 +2374,7 @@ ${s.report.details}`), D.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2371
2374
|
},
|
|
2372
2375
|
setup(t) {
|
|
2373
2376
|
const s = d(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
|
|
2374
|
-
return (e, r) => (i(), g(
|
|
2377
|
+
return (e, r) => (i(), g(A, {
|
|
2375
2378
|
text: s.value,
|
|
2376
2379
|
inline: ""
|
|
2377
2380
|
}, null, 8, ["text"]));
|
|
@@ -2403,7 +2406,7 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2403
2406
|
},
|
|
2404
2407
|
setup(t, { expose: s }) {
|
|
2405
2408
|
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: c, activeReport: o } = ca(e);
|
|
2406
|
-
return s(), (u,
|
|
2409
|
+
return s(), (u, f) => (i(), g(le, {
|
|
2407
2410
|
title: u.$td("errors.report", "Error report"),
|
|
2408
2411
|
"title-hidden": "",
|
|
2409
2412
|
"close-hidden": "",
|
|
@@ -2428,7 +2431,7 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2428
2431
|
disabled: l(r) === 0,
|
|
2429
2432
|
"aria-label": l(c),
|
|
2430
2433
|
title: l(c),
|
|
2431
|
-
onClick:
|
|
2434
|
+
onClick: f[0] || (f[0] = (m) => r.value--)
|
|
2432
2435
|
}, {
|
|
2433
2436
|
default: h(() => [
|
|
2434
2437
|
p(l(Qn), { class: "size-4" })
|
|
@@ -2441,10 +2444,10 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2441
2444
|
disabled: l(r) === u.reports.length - 1,
|
|
2442
2445
|
"aria-label": l(a),
|
|
2443
2446
|
title: l(a),
|
|
2444
|
-
onClick:
|
|
2447
|
+
onClick: f[1] || (f[1] = (m) => r.value++)
|
|
2445
2448
|
}, {
|
|
2446
2449
|
default: h(() => [
|
|
2447
|
-
p(l(
|
|
2450
|
+
p(l(Pt), { class: "size-4" })
|
|
2448
2451
|
]),
|
|
2449
2452
|
_: 1
|
|
2450
2453
|
}, 8, ["disabled", "aria-label", "title"])
|
|
@@ -2455,7 +2458,7 @@ const da = { class: "px-4 pt-5 pb-4" }, pa = { class: "flex justify-between gap-
|
|
|
2455
2458
|
class: "gap-0.5"
|
|
2456
2459
|
}, null, 8, ["report"])
|
|
2457
2460
|
]),
|
|
2458
|
-
l(o).description ? (i(), g(
|
|
2461
|
+
l(o).description ? (i(), g(A, {
|
|
2459
2462
|
key: 0,
|
|
2460
2463
|
text: l(o).description,
|
|
2461
2464
|
class: "text-gray-600"
|
|
@@ -2567,7 +2570,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2567
2570
|
key: 1,
|
|
2568
2571
|
class: "text-primary-600 mr-1 size-6"
|
|
2569
2572
|
})),
|
|
2570
|
-
p(
|
|
2573
|
+
p(A, { text: l(n) }, null, 8, ["text"])
|
|
2571
2574
|
]),
|
|
2572
2575
|
_: 1
|
|
2573
2576
|
}, 8, ["title", "title-hidden", "class"]));
|
|
@@ -2631,16 +2634,16 @@ const ka = /* @__PURE__ */ v({
|
|
|
2631
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(() => {
|
|
2632
2635
|
if (t.type)
|
|
2633
2636
|
return t.type;
|
|
2634
|
-
const
|
|
2635
|
-
return ["text", "email", "number", "tel", "url"].includes(
|
|
2637
|
+
const m = (n.value && (r == null ? void 0 : r.getFieldType(n.value))) ?? "";
|
|
2638
|
+
return ["text", "email", "number", "tel", "url"].includes(m) ? m : "text";
|
|
2636
2639
|
}), o = d(() => {
|
|
2637
2640
|
if (c.value === "checkbox")
|
|
2638
2641
|
return !!a.value;
|
|
2639
2642
|
});
|
|
2640
2643
|
function u() {
|
|
2641
|
-
s.value && e.update(
|
|
2644
|
+
s.value && e.update(f());
|
|
2642
2645
|
}
|
|
2643
|
-
function
|
|
2646
|
+
function f() {
|
|
2644
2647
|
if (!s.value)
|
|
2645
2648
|
return null;
|
|
2646
2649
|
switch (c.value) {
|
|
@@ -2648,10 +2651,12 @@ const ka = /* @__PURE__ */ v({
|
|
|
2648
2651
|
return s.value.checked;
|
|
2649
2652
|
case "date":
|
|
2650
2653
|
case "time":
|
|
2651
|
-
case "datetime-local":
|
|
2652
|
-
|
|
2653
|
-
Math.round(s.value.valueAsNumber / 6e4) * 6e4 + Ye(s.value.valueAsDate)
|
|
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))
|
|
2654
2657
|
);
|
|
2658
|
+
return isNaN(m.getTime()) ? null : m;
|
|
2659
|
+
}
|
|
2655
2660
|
case "number":
|
|
2656
2661
|
return s.value.valueAsNumber;
|
|
2657
2662
|
default:
|
|
@@ -2659,18 +2664,18 @@ const ka = /* @__PURE__ */ v({
|
|
|
2659
2664
|
}
|
|
2660
2665
|
}
|
|
2661
2666
|
return bt(e, () => {
|
|
2662
|
-
var
|
|
2663
|
-
return (
|
|
2667
|
+
var m;
|
|
2668
|
+
return (m = s.value) == null ? void 0 : m.focus();
|
|
2664
2669
|
}), se(() => {
|
|
2665
2670
|
if (s.value) {
|
|
2666
2671
|
if (["date", "time", "datetime-local"].includes(c.value) && a.value instanceof Date) {
|
|
2667
|
-
const
|
|
2668
|
-
s.value.valueAsNumber =
|
|
2672
|
+
const m = Math.round(a.value.getTime() / 6e4) * 6e4;
|
|
2673
|
+
s.value.valueAsNumber = m - Ye(a.value), a.value.getTime() !== m && e.update(new Date(m));
|
|
2669
2674
|
return;
|
|
2670
2675
|
}
|
|
2671
2676
|
s.value.value = a.value ?? null;
|
|
2672
2677
|
}
|
|
2673
|
-
}), (
|
|
2678
|
+
}), (m, b) => (i(), y("input", {
|
|
2674
2679
|
id: l(e).id,
|
|
2675
2680
|
ref: "$inputRef",
|
|
2676
2681
|
name: n.value,
|
|
@@ -2693,7 +2698,7 @@ const ka = /* @__PURE__ */ v({
|
|
|
2693
2698
|
return (n, a) => $(n.$slots, "default", {
|
|
2694
2699
|
id: `${l(s).id}-description`
|
|
2695
2700
|
}, () => [
|
|
2696
|
-
r.value ? (i(), g(
|
|
2701
|
+
r.value ? (i(), g(A, I({ key: 0 }, n.$attrs, {
|
|
2697
2702
|
id: `${l(s).id}-description`,
|
|
2698
2703
|
text: e.value
|
|
2699
2704
|
}), null, 16, ["id", "text"])) : T("", !0)
|
|
@@ -2726,25 +2731,25 @@ const ka = /* @__PURE__ */ v({
|
|
|
2726
2731
|
},
|
|
2727
2732
|
emits: ["update:modelValue"],
|
|
2728
2733
|
setup(t) {
|
|
2729
|
-
const s =
|
|
2730
|
-
var
|
|
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;
|
|
2731
2736
|
return k(
|
|
2732
2737
|
// eslint-disable-next-line vue/max-len
|
|
2733
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",
|
|
2734
2739
|
{
|
|
2735
|
-
"focus:ring-primary-600": !((
|
|
2736
|
-
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((
|
|
2740
|
+
"focus:ring-primary-600": !((f = e.value) != null && f.errors),
|
|
2741
|
+
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((m = e.value) != null && m.errors),
|
|
2737
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
|
|
2738
2743
|
},
|
|
2739
2744
|
t.inputClass
|
|
2740
2745
|
);
|
|
2741
2746
|
});
|
|
2742
|
-
return (
|
|
2747
|
+
return (f, m) => (i(), g(Oe, I({
|
|
2743
2748
|
ref: "$inputRef",
|
|
2744
|
-
label:
|
|
2749
|
+
label: f.label,
|
|
2745
2750
|
class: l(n)
|
|
2746
2751
|
}, s, {
|
|
2747
|
-
"onUpdate:modelValue":
|
|
2752
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => f.$emit("update:modelValue", b))
|
|
2748
2753
|
}), {
|
|
2749
2754
|
default: h(() => {
|
|
2750
2755
|
var b;
|
|
@@ -2877,18 +2882,18 @@ const Ia = { class: "mt-4 flex flex-row-reverse gap-2" }, za = /* @__PURE__ */ v
|
|
|
2877
2882
|
},
|
|
2878
2883
|
emits: ["close"],
|
|
2879
2884
|
setup(t, { expose: s }) {
|
|
2880
|
-
const e =
|
|
2881
|
-
return s(), (u,
|
|
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, {
|
|
2882
2887
|
title: l(n),
|
|
2883
2888
|
persistent: ""
|
|
2884
2889
|
}, {
|
|
2885
|
-
default: h(({ close:
|
|
2886
|
-
p(
|
|
2890
|
+
default: h(({ close: m }) => [
|
|
2891
|
+
p(At, {
|
|
2887
2892
|
form: l(r),
|
|
2888
|
-
onSubmit: (b) =>
|
|
2893
|
+
onSubmit: (b) => m(l(r).draft)
|
|
2889
2894
|
}, {
|
|
2890
2895
|
default: h(() => [
|
|
2891
|
-
l(a) ? (i(), g(
|
|
2896
|
+
l(a) ? (i(), g(A, {
|
|
2892
2897
|
key: 0,
|
|
2893
2898
|
text: l(a)
|
|
2894
2899
|
}, null, 8, ["text"])) : T("", !0),
|
|
@@ -2910,7 +2915,7 @@ const Ia = { class: "mt-4 flex flex-row-reverse gap-2" }, za = /* @__PURE__ */ v
|
|
|
2910
2915
|
}, 8, ["variant"]),
|
|
2911
2916
|
p(q, {
|
|
2912
2917
|
variant: u.cancelVariant,
|
|
2913
|
-
onClick: (b) =>
|
|
2918
|
+
onClick: (b) => m()
|
|
2914
2919
|
}, {
|
|
2915
2920
|
default: h(() => [
|
|
2916
2921
|
z(x(l(o)), 1)
|
|
@@ -2938,13 +2943,13 @@ function qa(t, s) {
|
|
|
2938
2943
|
}, null, -1)
|
|
2939
2944
|
]));
|
|
2940
2945
|
}
|
|
2941
|
-
const
|
|
2946
|
+
const Aa = R({ name: "material-symbols-bug-report", render: qa }), Pa = {
|
|
2942
2947
|
viewBox: "0 0 24 24",
|
|
2943
2948
|
width: "1.2em",
|
|
2944
2949
|
height: "1.2em"
|
|
2945
2950
|
};
|
|
2946
2951
|
function Da(t, s) {
|
|
2947
|
-
return i(), y("svg",
|
|
2952
|
+
return i(), y("svg", Pa, s[0] || (s[0] = [
|
|
2948
2953
|
w("path", {
|
|
2949
2954
|
fill: "currentColor",
|
|
2950
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"
|
|
@@ -2993,7 +2998,7 @@ Do you still want to proceed?`
|
|
|
2993
2998
|
acceptVariant: "danger",
|
|
2994
2999
|
acceptText: S("startupCrash.purgeConfirmAccept", "Purge device")
|
|
2995
3000
|
}
|
|
2996
|
-
) && (await $t.purge(), await
|
|
3001
|
+
) && (await $t.purge(), await P.reload());
|
|
2997
3002
|
}
|
|
2998
3003
|
return (e, r) => {
|
|
2999
3004
|
const n = Xt("i-majesticons-exclamation");
|
|
@@ -3001,7 +3006,7 @@ Do you still want to proceed?`
|
|
|
3001
3006
|
w("div", Qa, [
|
|
3002
3007
|
p(n, { class: "size-20 text-red-600" }),
|
|
3003
3008
|
w("h1", Ja, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
|
|
3004
|
-
p(
|
|
3009
|
+
p(A, {
|
|
3005
3010
|
text: e.$td(
|
|
3006
3011
|
"startupCrash.message",
|
|
3007
3012
|
"There was a problem starting the application, but here's some things you can do:"
|
|
@@ -3024,7 +3029,7 @@ Do you still want to proceed?`
|
|
|
3024
3029
|
onClick: r[1] || (r[1] = (a) => e.$errors.inspect(e.$errors.startupErrors))
|
|
3025
3030
|
}, {
|
|
3026
3031
|
default: h(() => [
|
|
3027
|
-
p(l(
|
|
3032
|
+
p(l(Aa)),
|
|
3028
3033
|
z(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
|
|
3029
3034
|
]),
|
|
3030
3035
|
_: 1
|
|
@@ -3082,7 +3087,7 @@ Do you still want to proceed?`
|
|
|
3082
3087
|
default: h(() => [
|
|
3083
3088
|
$(s.$slots, "default", {}, () => [
|
|
3084
3089
|
s.message ? (i(), y("span", Xa, x(s.message), 1)) : T("", !0),
|
|
3085
|
-
(i(!0), y(j, null,
|
|
3090
|
+
(i(!0), y(j, null, O(s.actions, (r, n) => (i(), g(jt, {
|
|
3086
3091
|
key: n,
|
|
3087
3092
|
action: r
|
|
3088
3093
|
}, null, 8, ["action"]))), 128))
|
|
@@ -3120,12 +3125,12 @@ Do you still want to proceed?`
|
|
|
3120
3125
|
class: _(e.value)
|
|
3121
3126
|
}, {
|
|
3122
3127
|
default: h(() => [
|
|
3123
|
-
r.message ? (i(), g(
|
|
3128
|
+
r.message ? (i(), g(A, {
|
|
3124
3129
|
key: 0,
|
|
3125
3130
|
text: r.message,
|
|
3126
3131
|
inline: ""
|
|
3127
3132
|
}, null, 8, ["text"])) : T("", !0),
|
|
3128
|
-
(i(!0), y(j, null,
|
|
3133
|
+
(i(!0), y(j, null, O(r.actions, (a, c) => (i(), g(q, {
|
|
3129
3134
|
key: c,
|
|
3130
3135
|
action: a,
|
|
3131
3136
|
variant: r.variant,
|
|
@@ -3138,7 +3143,7 @@ Do you still want to proceed?`
|
|
|
3138
3143
|
}), tl = { $ui: D }, sl = {
|
|
3139
3144
|
async install(t, s) {
|
|
3140
3145
|
const e = {
|
|
3141
|
-
"alert-modal":
|
|
3146
|
+
"alert-modal": Pn,
|
|
3142
3147
|
"confirm-modal": Nn,
|
|
3143
3148
|
"error-report-modal": va,
|
|
3144
3149
|
"loading-modal": ka,
|
|
@@ -3149,7 +3154,7 @@ Do you still want to proceed?`
|
|
|
3149
3154
|
};
|
|
3150
3155
|
for (const [r, n] of Object.entries(e))
|
|
3151
3156
|
D.registerComponent(r, n);
|
|
3152
|
-
await
|
|
3157
|
+
await Ee(t, tl);
|
|
3153
3158
|
}
|
|
3154
3159
|
}, rl = {
|
|
3155
3160
|
async install(t, { formValidationRules: s }) {
|
|
@@ -3159,20 +3164,20 @@ Do you still want to proceed?`
|
|
|
3159
3164
|
};
|
|
3160
3165
|
async function nl(t, s = {}) {
|
|
3161
3166
|
var r;
|
|
3162
|
-
const e = [Sn,
|
|
3163
|
-
|
|
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");
|
|
3164
3169
|
}
|
|
3165
3170
|
async function $o(t, s = {}) {
|
|
3166
3171
|
var r;
|
|
3167
3172
|
const e = Yt(t);
|
|
3168
|
-
Y() && (window.$aerogel = e), await nl(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await
|
|
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");
|
|
3169
3174
|
}
|
|
3170
3175
|
const al = /* @__PURE__ */ v({
|
|
3171
3176
|
__name: "AppToasts",
|
|
3172
3177
|
setup(t) {
|
|
3173
3178
|
return (s, e) => (i(), g(l(Ks), null, {
|
|
3174
3179
|
default: h(() => [
|
|
3175
|
-
(i(!0), y(j, null,
|
|
3180
|
+
(i(!0), y(j, null, O(s.$ui.toasts, (r) => (i(), g(re(r.component), I({
|
|
3176
3181
|
id: r.id,
|
|
3177
3182
|
key: r.id
|
|
3178
3183
|
}, { ref_for: !0 }, r.properties), null, 16, ["id"]))), 128)),
|
|
@@ -3241,7 +3246,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3241
3246
|
w("summary", {
|
|
3242
3247
|
class: _(e.value)
|
|
3243
3248
|
}, [
|
|
3244
|
-
p(l(
|
|
3249
|
+
p(l(Pt), { class: "size-6 transition-transform group-open:rotate-90" }),
|
|
3245
3250
|
$(r.$slots, "label", {}, () => [
|
|
3246
3251
|
w("span", null, x(r.label ?? r.$td("ui.details", "Details")), 1)
|
|
3247
3252
|
])
|
|
@@ -3278,22 +3283,22 @@ const al = /* @__PURE__ */ v({
|
|
|
3278
3283
|
},
|
|
3279
3284
|
emits: ["update:modelValue"],
|
|
3280
3285
|
setup(t) {
|
|
3281
|
-
const s =
|
|
3282
|
-
var u,
|
|
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;
|
|
3283
3288
|
return k(
|
|
3284
3289
|
"size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
|
|
3285
3290
|
{
|
|
3286
3291
|
"border-gray-300 focus:ring-primary-600": !((u = e.value) != null && u.errors),
|
|
3287
|
-
"border-red-400 border-2 focus:ring-red-600": (
|
|
3292
|
+
"border-red-400 border-2 focus:ring-red-600": (f = e.value) == null ? void 0 : f.errors
|
|
3288
3293
|
},
|
|
3289
3294
|
t.inputClass
|
|
3290
3295
|
);
|
|
3291
3296
|
}), o = d(() => k("ml-2 text-sm leading-6", t.labelClass));
|
|
3292
|
-
return (u,
|
|
3297
|
+
return (u, f) => (i(), g(Oe, I({
|
|
3293
3298
|
ref: "$inputRef",
|
|
3294
3299
|
class: a.value
|
|
3295
3300
|
}, s, {
|
|
3296
|
-
"onUpdate:modelValue":
|
|
3301
|
+
"onUpdate:modelValue": f[0] || (f[0] = (m) => u.$emit("update:modelValue", m))
|
|
3297
3302
|
}), {
|
|
3298
3303
|
default: h(() => [
|
|
3299
3304
|
w("div", pl, [
|
|
@@ -3345,16 +3350,16 @@ const al = /* @__PURE__ */ v({
|
|
|
3345
3350
|
emits: ["select"],
|
|
3346
3351
|
setup(t, { emit: s }) {
|
|
3347
3352
|
const e = s, r = L("select", "<ComboboxOption> must be a child of a <Combobox>"), n = Js(), a = L("combobox"), c = d(() => {
|
|
3348
|
-
var
|
|
3349
|
-
const u = (
|
|
3350
|
-
return u ? r.renderOption(u.value) :
|
|
3353
|
+
var f;
|
|
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);
|
|
3351
3356
|
});
|
|
3352
3357
|
function o(u) {
|
|
3353
3358
|
n.multiple.value || n.disabled.value || (u.preventDefault(), a.preventChange = !0, n.modelValue.value = t.value, e("select"));
|
|
3354
3359
|
}
|
|
3355
|
-
return (u,
|
|
3360
|
+
return (u, f) => (i(), g(l(Zs), I(u.$props, {
|
|
3356
3361
|
class: "group p-1 outline-none",
|
|
3357
|
-
onSelect:
|
|
3362
|
+
onSelect: f[0] || (f[0] = (m) => o(m))
|
|
3358
3363
|
}), {
|
|
3359
3364
|
default: h(() => [
|
|
3360
3365
|
w("div", fl, [
|
|
@@ -3376,7 +3381,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3376
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(
|
|
3377
3382
|
() => {
|
|
3378
3383
|
var u;
|
|
3379
|
-
return ((u = e.options) == null ? void 0 : u.filter((
|
|
3384
|
+
return ((u = e.options) == null ? void 0 : u.filter((f) => s(f.label, r.input))) ?? [];
|
|
3380
3385
|
}
|
|
3381
3386
|
), c = d(
|
|
3382
3387
|
() => r.input && !a.value.some((u) => u.label === r.input)
|
|
@@ -3387,7 +3392,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3387
3392
|
return X(n, () => {
|
|
3388
3393
|
var u;
|
|
3389
3394
|
return r.$group = ((u = n.value) == null ? void 0 : u.$el) ?? null;
|
|
3390
|
-
}), (u,
|
|
3395
|
+
}), (u, f) => (i(), g(l(Xs), null, {
|
|
3391
3396
|
default: h(() => [
|
|
3392
3397
|
p(l(Ys), {
|
|
3393
3398
|
position: "popper",
|
|
@@ -3410,22 +3415,22 @@ const al = /* @__PURE__ */ v({
|
|
|
3410
3415
|
ref: n
|
|
3411
3416
|
}, {
|
|
3412
3417
|
default: h(() => {
|
|
3413
|
-
var
|
|
3418
|
+
var m;
|
|
3414
3419
|
return [
|
|
3415
3420
|
c.value ? (i(), g(nt, {
|
|
3416
3421
|
key: 0,
|
|
3417
|
-
value: ((
|
|
3418
|
-
onSelect:
|
|
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"))
|
|
3419
3424
|
}, {
|
|
3420
3425
|
default: h(() => [
|
|
3421
3426
|
z(x(l(r).input), 1)
|
|
3422
3427
|
]),
|
|
3423
3428
|
_: 1
|
|
3424
3429
|
}, 8, ["value"])) : T("", !0),
|
|
3425
|
-
(i(!0), y(j, null,
|
|
3430
|
+
(i(!0), y(j, null, O(a.value, (b) => (i(), g(nt, {
|
|
3426
3431
|
key: b.key,
|
|
3427
3432
|
value: b.value,
|
|
3428
|
-
onSelect:
|
|
3433
|
+
onSelect: f[1] || (f[1] = (M) => u.$emit("select"))
|
|
3429
3434
|
}, null, 8, ["value"]))), 128))
|
|
3430
3435
|
];
|
|
3431
3436
|
}),
|
|
@@ -3460,8 +3465,8 @@ const al = /* @__PURE__ */ v({
|
|
|
3460
3465
|
));
|
|
3461
3466
|
function c() {
|
|
3462
3467
|
Array.from(document.querySelectorAll(":hover")).some((u) => {
|
|
3463
|
-
var
|
|
3464
|
-
return (
|
|
3468
|
+
var f;
|
|
3469
|
+
return (f = n.$group) == null ? void 0 : f.contains(u);
|
|
3465
3470
|
}) || e("blur");
|
|
3466
3471
|
}
|
|
3467
3472
|
return X(
|
|
@@ -3475,21 +3480,21 @@ const al = /* @__PURE__ */ v({
|
|
|
3475
3480
|
}
|
|
3476
3481
|
), (o, u) => (i(), g(l(rr), { class: "relative" }, {
|
|
3477
3482
|
default: h(() => {
|
|
3478
|
-
var
|
|
3483
|
+
var f;
|
|
3479
3484
|
return [
|
|
3480
3485
|
p(l(nr), {
|
|
3481
3486
|
id: l(r).id,
|
|
3482
3487
|
modelValue: l(n).input,
|
|
3483
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3488
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => l(n).input = m),
|
|
3484
3489
|
placeholder: l(r).placeholder,
|
|
3485
3490
|
class: _(a.value),
|
|
3486
3491
|
"display-value": l(r).renderOption,
|
|
3487
3492
|
name: l(r).name,
|
|
3488
|
-
onFocus: u[1] || (u[1] = (
|
|
3489
|
-
onBlur: u[2] || (u[2] = (
|
|
3490
|
-
onKeydown: u[3] || (u[3] = es((
|
|
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"]))
|
|
3491
3496
|
}, null, 8, ["id", "modelValue", "placeholder", "class", "display-value", "name"]),
|
|
3492
|
-
(
|
|
3497
|
+
(f = l(r)) != null && f.errors ? (i(), y("div", vl, [
|
|
3493
3498
|
p(l(he), { class: "size-5 text-red-500" })
|
|
3494
3499
|
])) : T("", !0)
|
|
3495
3500
|
];
|
|
@@ -3538,7 +3543,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3538
3543
|
},
|
|
3539
3544
|
emits: ["update:modelValue"],
|
|
3540
3545
|
setup(t, { expose: s, emit: e }) {
|
|
3541
|
-
const r = e, n =
|
|
3546
|
+
const r = e, n = W(t, ["as", "compareOptions", "newInputValue"]), {
|
|
3542
3547
|
expose: a,
|
|
3543
3548
|
acceptableValue: c,
|
|
3544
3549
|
update: o,
|
|
@@ -3546,7 +3551,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3546
3551
|
} = Mt(
|
|
3547
3552
|
d(() => ({ as: t.as, compareOptions: t.compareOptions, ...n })),
|
|
3548
3553
|
r
|
|
3549
|
-
),
|
|
3554
|
+
), f = B(!1), m = d(() => {
|
|
3550
3555
|
var H;
|
|
3551
3556
|
return Object.fromEntries(((H = a.options.value) == null ? void 0 : H.map((V) => [V.label, V.value])) ?? []);
|
|
3552
3557
|
}), b = {
|
|
@@ -3561,20 +3566,20 @@ const al = /* @__PURE__ */ v({
|
|
|
3561
3566
|
const V = u(H);
|
|
3562
3567
|
b.input.value !== V && (b.preventChange.value = !0, b.input.value = V);
|
|
3563
3568
|
}), X(b.input, (H) => {
|
|
3564
|
-
const V = t.newInputValue ? t.newInputValue(H) : H,
|
|
3565
|
-
if (
|
|
3566
|
-
M(
|
|
3569
|
+
const V = t.newInputValue ? t.newInputValue(H) : H, F = u(V);
|
|
3570
|
+
if (F in m.value) {
|
|
3571
|
+
M(m.value[F]);
|
|
3567
3572
|
return;
|
|
3568
3573
|
}
|
|
3569
3574
|
M(V);
|
|
3570
3575
|
}), s(a), (H, V) => (i(), g(l(ar), {
|
|
3571
3576
|
"ignore-filter": "",
|
|
3572
|
-
open:
|
|
3577
|
+
open: f.value,
|
|
3573
3578
|
"reset-search-term-on-blur": !1,
|
|
3574
3579
|
"reset-search-term-on-select": !1,
|
|
3575
3580
|
"model-value": l(c),
|
|
3576
3581
|
by: H.compareOptions,
|
|
3577
|
-
"onUpdate:modelValue": V[4] || (V[4] = (
|
|
3582
|
+
"onUpdate:modelValue": V[4] || (V[4] = (F) => M(F))
|
|
3578
3583
|
}, {
|
|
3579
3584
|
default: h(() => [
|
|
3580
3585
|
p(ml, {
|
|
@@ -3584,14 +3589,14 @@ const al = /* @__PURE__ */ v({
|
|
|
3584
3589
|
default: h(() => [
|
|
3585
3590
|
p(yl),
|
|
3586
3591
|
p(bl, {
|
|
3587
|
-
onFocus: V[0] || (V[0] = (
|
|
3588
|
-
onChange: V[1] || (V[1] = (
|
|
3589
|
-
onBlur: V[2] || (V[2] = (
|
|
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)
|
|
3590
3595
|
}),
|
|
3591
3596
|
p(qt, { class: "mt-2 text-sm text-red-600" }),
|
|
3592
3597
|
p(gl, {
|
|
3593
3598
|
"new-input-value": H.newInputValue,
|
|
3594
|
-
onSelect: V[3] || (V[3] = (
|
|
3599
|
+
onSelect: V[3] || (V[3] = (F) => f.value = !1)
|
|
3595
3600
|
}, null, 8, ["new-input-value"])
|
|
3596
3601
|
]),
|
|
3597
3602
|
_: 1
|
|
@@ -3609,7 +3614,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3609
3614
|
},
|
|
3610
3615
|
emits: ["select"],
|
|
3611
3616
|
setup(t) {
|
|
3612
|
-
const s =
|
|
3617
|
+
const s = W(t, ["class"]), e = d(() => k(
|
|
3613
3618
|
"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
|
|
3614
3619
|
t.class
|
|
3615
3620
|
));
|
|
@@ -3636,7 +3641,7 @@ const al = /* @__PURE__ */ v({
|
|
|
3636
3641
|
}, {
|
|
3637
3642
|
default: h(() => [
|
|
3638
3643
|
$(e.$slots, "default", {}, () => [
|
|
3639
|
-
(i(!0), y(j, null,
|
|
3644
|
+
(i(!0), y(j, null, O(l(s).options, (n, a) => (i(), g(wl, I(
|
|
3640
3645
|
{
|
|
3641
3646
|
key: a,
|
|
3642
3647
|
as: n.route || n.href ? Tt : void 0,
|
|
@@ -3716,10 +3721,10 @@ const al = /* @__PURE__ */ v({
|
|
|
3716
3721
|
emits: ["update", "save"],
|
|
3717
3722
|
setup(t, { emit: s }) {
|
|
3718
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));
|
|
3719
|
-
function
|
|
3724
|
+
function f() {
|
|
3720
3725
|
n.value = t.text;
|
|
3721
3726
|
}
|
|
3722
|
-
function
|
|
3727
|
+
function m() {
|
|
3723
3728
|
n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
|
|
3724
3729
|
}
|
|
3725
3730
|
return se(() => a.value = t.text), (b, M) => (i(), y("div", {
|
|
@@ -3757,8 +3762,8 @@ const al = /* @__PURE__ */ v({
|
|
|
3757
3762
|
{ "opacity-0": !n.value, "appearance-textfield": !n.value && b.type === "number" }
|
|
3758
3763
|
]),
|
|
3759
3764
|
onKeyup: M[1] || (M[1] = (H) => b.$emit("update", a.value)),
|
|
3760
|
-
onFocus: M[2] || (M[2] = (H) =>
|
|
3761
|
-
onBlur: M[3] || (M[3] = (H) =>
|
|
3765
|
+
onFocus: M[2] || (M[2] = (H) => f()),
|
|
3766
|
+
onBlur: M[3] || (M[3] = (H) => m())
|
|
3762
3767
|
}, null, 42, xl), [
|
|
3763
3768
|
[ts, a.value]
|
|
3764
3769
|
])
|
|
@@ -3799,7 +3804,7 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3799
3804
|
}, {
|
|
3800
3805
|
default: h(() => [
|
|
3801
3806
|
w("ol", null, [
|
|
3802
|
-
(i(!0), y(j, null,
|
|
3807
|
+
(i(!0), y(j, null, O(s.$errors.logs, (r, n) => (i(), y("li", {
|
|
3803
3808
|
key: n,
|
|
3804
3809
|
class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
|
|
3805
3810
|
}, [
|
|
@@ -3809,7 +3814,7 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3809
3814
|
datetime: r.date.toISOString(),
|
|
3810
3815
|
class: "text-xs text-gray-700"
|
|
3811
3816
|
}, x(r.date.toLocaleTimeString()), 9, Hl),
|
|
3812
|
-
p(
|
|
3817
|
+
p(A, {
|
|
3813
3818
|
class: "text-sm text-gray-500",
|
|
3814
3819
|
text: r.report.description ?? l(Be)(r.report)
|
|
3815
3820
|
}, null, 8, ["text"])
|
|
@@ -3863,7 +3868,7 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3863
3868
|
},
|
|
3864
3869
|
setup(t) {
|
|
3865
3870
|
const s = d(() => Be(t.error));
|
|
3866
|
-
return (e, r) => (i(), g(
|
|
3871
|
+
return (e, r) => (i(), g(A, {
|
|
3867
3872
|
text: s.value,
|
|
3868
3873
|
inline: ""
|
|
3869
3874
|
}, null, 8, ["text"]));
|
|
@@ -3893,13 +3898,13 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3893
3898
|
}), Ho = /* @__PURE__ */ v({
|
|
3894
3899
|
__name: "SettingsModal",
|
|
3895
3900
|
setup(t) {
|
|
3896
|
-
const s = d(() => ps(
|
|
3901
|
+
const s = d(() => ps(P.settings, "priority", "desc"));
|
|
3897
3902
|
return (e, r) => (i(), g(le, {
|
|
3898
3903
|
title: e.$td("settings.title", "Settings"),
|
|
3899
3904
|
"fullscreen-on-mobile": e.$app.settingsFullscreenOnMobile
|
|
3900
3905
|
}, {
|
|
3901
3906
|
default: h(() => [
|
|
3902
|
-
(i(!0), y(j, null,
|
|
3907
|
+
(i(!0), y(j, null, O(s.value, (n, a) => (i(), g(re(n.component), { key: a }))), 128))
|
|
3903
3908
|
]),
|
|
3904
3909
|
_: 1
|
|
3905
3910
|
}, 8, ["title", "fullscreen-on-mobile"]));
|
|
@@ -3920,15 +3925,15 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3920
3925
|
},
|
|
3921
3926
|
emits: ["update:modelValue"],
|
|
3922
3927
|
setup(t) {
|
|
3923
|
-
const s =
|
|
3924
|
-
var o, u,
|
|
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;
|
|
3925
3930
|
return k(
|
|
3926
3931
|
// eslint-disable-next-line vue/max-len
|
|
3927
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",
|
|
3928
3933
|
{
|
|
3929
3934
|
"focus:ring-primary-600": !((o = e.value) != null && o.errors),
|
|
3930
3935
|
"text-gray-900 shadow-2xs ring-gray-900/10 placeholder:text-gray-400": !((u = e.value) != null && u.errors),
|
|
3931
|
-
"pr-10 text-red-900 ring-red-900/10 placeholder:text-red-300 focus:ring-red-500": (
|
|
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
|
|
3932
3937
|
},
|
|
3933
3938
|
t.inputClass
|
|
3934
3939
|
);
|
|
@@ -3938,17 +3943,17 @@ const Vl = R({ name: "zondicons-view-show", render: Ml }), El = { class: "font-m
|
|
|
3938
3943
|
label: o.label,
|
|
3939
3944
|
class: l(n)
|
|
3940
3945
|
}, s, {
|
|
3941
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
3946
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => o.$emit("update:modelValue", f))
|
|
3942
3947
|
}), {
|
|
3943
3948
|
default: h(() => {
|
|
3944
|
-
var
|
|
3949
|
+
var f;
|
|
3945
3950
|
return [
|
|
3946
3951
|
p(_e, { class: "block text-sm leading-6 font-medium text-gray-900" }),
|
|
3947
3952
|
w("div", {
|
|
3948
3953
|
class: _(a.value)
|
|
3949
3954
|
}, [
|
|
3950
3955
|
p(ul, I(l(r), { class: c.value }), null, 16, ["class"]),
|
|
3951
|
-
(
|
|
3956
|
+
(f = e.value) != null && f.errors ? (i(), y("div", Il, [
|
|
3952
3957
|
p(l(he), { class: "size-5 text-red-500" })
|
|
3953
3958
|
])) : T("", !0)
|
|
3954
3959
|
], 2),
|
|
@@ -4040,8 +4045,8 @@ async function zo(t) {
|
|
|
4040
4045
|
}
|
|
4041
4046
|
export {
|
|
4042
4047
|
xo as AdvancedOptions,
|
|
4043
|
-
|
|
4044
|
-
|
|
4048
|
+
Pn as AlertModal,
|
|
4049
|
+
P as App,
|
|
4045
4050
|
_o as AppLayout,
|
|
4046
4051
|
ll as AppOverlays,
|
|
4047
4052
|
vr as AppService,
|
|
@@ -4069,9 +4074,9 @@ export {
|
|
|
4069
4074
|
ua as ErrorReportModalTitle,
|
|
4070
4075
|
St as Errors,
|
|
4071
4076
|
Ql as EventListenerPriorities,
|
|
4072
|
-
|
|
4077
|
+
N as Events,
|
|
4073
4078
|
hr as EventsService,
|
|
4074
|
-
|
|
4079
|
+
At as Form,
|
|
4075
4080
|
Mr as FormController,
|
|
4076
4081
|
Tt as HeadlessButton,
|
|
4077
4082
|
Oe as HeadlessInput,
|
|
@@ -4102,10 +4107,10 @@ export {
|
|
|
4102
4107
|
ka as LoadingModal,
|
|
4103
4108
|
Rr as MINUTE_MILLISECONDS,
|
|
4104
4109
|
Ct as MOBILE_BREAKPOINT,
|
|
4105
|
-
|
|
4110
|
+
A as Markdown,
|
|
4106
4111
|
le as Modal,
|
|
4107
|
-
|
|
4108
|
-
|
|
4112
|
+
Ao as ModalComponent,
|
|
4113
|
+
Po as ModalsPortal,
|
|
4109
4114
|
xa as ProgressBar,
|
|
4110
4115
|
za as PromptModal,
|
|
4111
4116
|
ml as Provide,
|
|
@@ -4114,8 +4119,8 @@ export {
|
|
|
4114
4119
|
st as SelectOption,
|
|
4115
4120
|
zt as SelectOptions,
|
|
4116
4121
|
Rt as SelectTrigger,
|
|
4117
|
-
|
|
4118
|
-
|
|
4122
|
+
Ve as Service,
|
|
4123
|
+
Re as ServiceBootError,
|
|
4119
4124
|
gn as Setting,
|
|
4120
4125
|
Ho as SettingsModal,
|
|
4121
4126
|
Ga as StartupCrash,
|
|
@@ -4126,10 +4131,10 @@ export {
|
|
|
4126
4131
|
D as UI,
|
|
4127
4132
|
Kr as UIService,
|
|
4128
4133
|
eo as __valueType,
|
|
4129
|
-
|
|
4134
|
+
Ar as aerogelDirectives,
|
|
4130
4135
|
dr as appNamespace,
|
|
4131
4136
|
uo as booleanInput,
|
|
4132
|
-
|
|
4137
|
+
Ee as bootServices,
|
|
4133
4138
|
$o as bootstrap,
|
|
4134
4139
|
nl as bootstrapApplication,
|
|
4135
4140
|
k as classes,
|
|
@@ -4141,7 +4146,7 @@ export {
|
|
|
4141
4146
|
Gl as defineDirective,
|
|
4142
4147
|
Yl as defineFormValidationRules,
|
|
4143
4148
|
Zl as definePlugin,
|
|
4144
|
-
|
|
4149
|
+
Me as defineServiceState,
|
|
4145
4150
|
fr as defineServiceStore,
|
|
4146
4151
|
Jl as defineSettings,
|
|
4147
4152
|
zo as dispatch,
|
|
@@ -4182,7 +4187,7 @@ export {
|
|
|
4182
4187
|
wo as stringInput,
|
|
4183
4188
|
_t as translate,
|
|
4184
4189
|
S as translateWithDefault,
|
|
4185
|
-
|
|
4190
|
+
An as useAlertModal,
|
|
4186
4191
|
Dn as useConfirmModal,
|
|
4187
4192
|
ca as useErrorReportModal,
|
|
4188
4193
|
Xl as useEvent,
|