@aerogel/core 0.1.1-next.1e4498f367b830c7a83435800066bb8261d179f5 → 0.1.1-next.7f33b133934b479bdeee0808001759d92e987cf9
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 +95 -69
- package/dist/aerogel-core.js +350 -329
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +1 -1
- package/src/components/contracts/Button.ts +1 -1
- package/src/components/contracts/Toast.ts +1 -1
- package/src/components/ui/AdvancedOptions.vue +4 -13
- package/src/components/ui/Button.vue +1 -0
- package/src/components/ui/Details.vue +20 -0
- package/src/components/ui/Toast.vue +1 -0
- package/src/components/ui/index.ts +1 -0
- package/src/forms/FormController.ts +4 -0
package/dist/aerogel-core.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var It = Object.defineProperty;
|
|
2
2
|
var qt = (t, s, e) => s in t ? It(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
3
|
var _ = (t, s, e) => qt(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
-
import { markRaw as E, Comment as At, Text as Pt, Static as Dt, inject as X, reactive as ge, unref as l, onUnmounted as
|
|
5
|
-
import { JSError as _e, stringToSlug as Jt, tap as te, MagicObject as nt, PromisedValue as Q, Storage as O, objectOnly as ne, arrayFrom as at, isEmpty as Se, objectDeepClone as Zt, fail as W, facade as se, arrayRemove as Ve, getEnv as Xt, updateLocationQueryParameters as
|
|
4
|
+
import { markRaw as E, Comment as At, Text as Pt, Static as Dt, inject as X, reactive as ge, unref as l, onUnmounted as we, ref as N, computed as c, readonly as $e, nextTick as jt, useAttrs as et, onMounted as tt, watch as Le, toRaw as Bt, customRef as Ft, watchEffect as Y, defineComponent as h, createBlock as f, openBlock as i, mergeProps as V, withCtx as m, renderSlot as $, createPropsRestProxy as K, createVNode as d, normalizeProps as ue, guardReactiveProps as ce, createTextVNode as L, toDisplayString as x, normalizeClass as C, createElementBlock as y, Fragment as D, renderList as U, provide as de, resolveDynamicComponent as G, useSlots as Re, createCommentVNode as M, createElementVNode as b, h as Ut, useTemplateRef as ee, withModifiers as st, withDirectives as rt, vModelCheckbox as Ot, normalizeStyle as Nt, resolveComponent as Wt, createApp as Kt, vModelText as Qt } from "vue";
|
|
5
|
+
import { JSError as _e, stringToSlug as Jt, tap as te, MagicObject as nt, PromisedValue as Q, Storage as O, objectOnly as ne, arrayFrom as at, isEmpty as Se, objectDeepClone as Zt, fail as W, facade as se, arrayRemove as Ve, getEnv as Xt, updateLocationQueryParameters as Yt, forever as Gt, toString as B, objectWithout as es, noop as ts, debounce as ss, stringMatchAll as lt, isDevelopment as J, isTesting as ze, after as le, uuid as oe, isObject as fe, objectWithoutEmpty as it, value as rs, isInstanceOf as Oe, stringExcerpt as ns, arraySorted as as, ListenersManager as ls, toError as is, round as os } from "@noeldemartin/utils";
|
|
6
6
|
import j from "virtual:aerogel";
|
|
7
7
|
import { createPinia as us, setActivePinia as cs, defineStore as ds } from "pinia";
|
|
8
8
|
import ps from "dompurify";
|
|
9
9
|
import { marked as ms, Renderer as Ne } from "marked";
|
|
10
10
|
import { injectModal as ot, useModal as fs, createModal as hs, showModal as We, closeModal as Ke, modals as ae, ModalComponent as gs, ModalsPortal as vs } from "@noeldemartin/vue-modals";
|
|
11
|
-
import { ModalComponent as
|
|
11
|
+
import { ModalComponent as ui, ModalsPortal as ci, closeModal as di, createModal as pi, injectModal as mi, modals as fi, showModal as hi } from "@noeldemartin/vue-modals";
|
|
12
12
|
import bs from "clsx";
|
|
13
13
|
import { cva as ys } from "class-variance-authority";
|
|
14
|
-
import { twMerge as
|
|
15
|
-
import { Primitive as
|
|
14
|
+
import { twMerge as ws } from "tailwind-merge";
|
|
15
|
+
import { Primitive as $s, SelectValue as Qe, SelectTrigger as _s, SelectIcon as xs, SelectItem as Cs, SelectItemText as ks, SelectPortal as Ss, SelectContent as Ts, SelectViewport as Ms, SelectRoot as Hs, Label as Vs, useForwardExpose as Ie, SwitchRoot as Es, SwitchThumb as Ls, DialogRoot as Rs, DialogPortal as zs, DialogContent as Is, DialogDescription as qs, DialogOverlay as As, DialogTitle as Ps, ToastClose as Ds, ToastRoot as js, ToastProvider as Bs, ToastViewport as Fs, DropdownMenuItem as Us, DropdownMenuContent as Os, DropdownMenuRoot as Ns, DropdownMenuTrigger as Ws, DropdownMenuPortal as Ks } from "reka-ui";
|
|
16
16
|
class Ee extends _e {
|
|
17
17
|
constructor(s, e) {
|
|
18
18
|
super(`Service '${s}' failed booting`, { cause: e });
|
|
@@ -36,9 +36,9 @@ function Zs() {
|
|
|
36
36
|
function Xs(t, s) {
|
|
37
37
|
return ut(), ds(t, s)();
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function xe(t) {
|
|
40
40
|
var s;
|
|
41
|
-
return s = class extends
|
|
41
|
+
return s = class extends Ce {
|
|
42
42
|
usesStore() {
|
|
43
43
|
return !0;
|
|
44
44
|
}
|
|
@@ -75,7 +75,7 @@ To fix this problem, declare your initialState as a function instead.`
|
|
|
75
75
|
}, _(s, "persist", t.persist ?? []), s;
|
|
76
76
|
}
|
|
77
77
|
var He;
|
|
78
|
-
let
|
|
78
|
+
let Ce = (He = class extends nt {
|
|
79
79
|
constructor() {
|
|
80
80
|
super();
|
|
81
81
|
_(this, "_name");
|
|
@@ -191,12 +191,12 @@ let xe = (He = class extends nt {
|
|
|
191
191
|
return this._store ? this._store : W(`Failed getting '${this._name}' store`);
|
|
192
192
|
}
|
|
193
193
|
}, _(He, "persist", []), He);
|
|
194
|
-
const
|
|
194
|
+
const _l = {
|
|
195
195
|
Low: -256,
|
|
196
196
|
Default: 0,
|
|
197
197
|
High: 256
|
|
198
198
|
};
|
|
199
|
-
class
|
|
199
|
+
class Ys extends Ce {
|
|
200
200
|
constructor() {
|
|
201
201
|
super(...arguments);
|
|
202
202
|
_(this, "listeners", {});
|
|
@@ -242,18 +242,18 @@ class Gs extends xe {
|
|
|
242
242
|
n.priorities.length === 0 && delete this.listeners[e];
|
|
243
243
|
}
|
|
244
244
|
registerListener(e, r, n) {
|
|
245
|
-
var p, g,
|
|
245
|
+
var p, g, w;
|
|
246
246
|
const a = r.priority ?? 0;
|
|
247
247
|
e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
|
|
248
248
|
const u = ((p = this.listeners[e]) == null ? void 0 : p.priorities) ?? W(`priorities missing for event '${e}'`), o = ((g = this.listeners[e]) == null ? void 0 : g.handlers) ?? W(`handlers missing for event '${e}'`);
|
|
249
|
-
u.includes(a) || (u.push(a), u.sort((v, S) => S - v), o[a] = []), (
|
|
249
|
+
u.includes(a) || (u.push(a), u.sort((v, S) => S - v), o[a] = []), (w = o[a]) == null || w.push(n);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
const F = se(
|
|
253
|
-
function
|
|
252
|
+
const F = se(Ys);
|
|
253
|
+
function xl(t) {
|
|
254
254
|
return t;
|
|
255
255
|
}
|
|
256
|
-
const
|
|
256
|
+
const Gs = xe({
|
|
257
257
|
name: "app",
|
|
258
258
|
initialState: {
|
|
259
259
|
plugins: {},
|
|
@@ -275,7 +275,7 @@ const Ys = Ce({
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
|
-
class er extends
|
|
278
|
+
class er extends Gs {
|
|
279
279
|
constructor() {
|
|
280
280
|
super(...arguments);
|
|
281
281
|
_(this, "name", j.name);
|
|
@@ -295,7 +295,7 @@ class er extends Ys {
|
|
|
295
295
|
return await this.ready.then(e);
|
|
296
296
|
}
|
|
297
297
|
async reload(e) {
|
|
298
|
-
e &&
|
|
298
|
+
e && Yt(e), location.reload(), await Gt();
|
|
299
299
|
}
|
|
300
300
|
plugin(e) {
|
|
301
301
|
return this.plugins[e] ?? null;
|
|
@@ -324,7 +324,7 @@ async function tr(t, ...s) {
|
|
|
324
324
|
function sr(t) {
|
|
325
325
|
return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${B(r)}"`, "");
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function kl(t) {
|
|
328
328
|
return t;
|
|
329
329
|
}
|
|
330
330
|
function rr(t) {
|
|
@@ -360,11 +360,11 @@ function dt(t, s) {
|
|
|
360
360
|
return H(u(r), l(e));
|
|
361
361
|
}
|
|
362
362
|
function H(...t) {
|
|
363
|
-
return
|
|
363
|
+
return ws(bs(t));
|
|
364
364
|
}
|
|
365
|
-
function
|
|
365
|
+
function Sl(t, s) {
|
|
366
366
|
const e = F.on(t, s);
|
|
367
|
-
|
|
367
|
+
we(() => e());
|
|
368
368
|
}
|
|
369
369
|
const lr = {
|
|
370
370
|
required: (t) => t ? void 0 : "required"
|
|
@@ -389,7 +389,7 @@ function ir(t, s) {
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
const he = { ...lr };
|
|
392
|
-
function
|
|
392
|
+
function Tl(t, s) {
|
|
393
393
|
he[t] = s;
|
|
394
394
|
}
|
|
395
395
|
function or(t, s) {
|
|
@@ -400,7 +400,7 @@ function ur(t, s) {
|
|
|
400
400
|
const e = (r = he[s]) == null ? void 0 : r.call(he, t);
|
|
401
401
|
return e ? at(e) : [];
|
|
402
402
|
}
|
|
403
|
-
const
|
|
403
|
+
const Ml = Symbol(), Je = /* @__PURE__ */ new WeakMap();
|
|
404
404
|
class cr extends nt {
|
|
405
405
|
constructor(e) {
|
|
406
406
|
super();
|
|
@@ -413,7 +413,7 @@ class cr extends nt {
|
|
|
413
413
|
this._fields = e, this._submitted = N(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), Je.set(
|
|
414
414
|
this,
|
|
415
415
|
c(() => !Object.values(this._errors).some((r) => r !== null))
|
|
416
|
-
), this.errors =
|
|
416
|
+
), this.errors = $e(this._errors);
|
|
417
417
|
}
|
|
418
418
|
get valid() {
|
|
419
419
|
var e;
|
|
@@ -433,6 +433,9 @@ class cr extends nt {
|
|
|
433
433
|
var r, n;
|
|
434
434
|
return ((n = (r = this._fields[e]) == null ? void 0 : r.rules) == null ? void 0 : n.split("|")) ?? [];
|
|
435
435
|
}
|
|
436
|
+
setFieldErrors(e, r) {
|
|
437
|
+
this._errors[e] = r;
|
|
438
|
+
}
|
|
436
439
|
getFieldType(e) {
|
|
437
440
|
var r;
|
|
438
441
|
return ((r = this._fields[e]) == null ? void 0 : r.type) ?? null;
|
|
@@ -507,7 +510,7 @@ class cr extends nt {
|
|
|
507
510
|
}
|
|
508
511
|
function pt(t, s) {
|
|
509
512
|
const e = X("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
|
|
510
|
-
|
|
513
|
+
we(() => r == null ? void 0 : r());
|
|
511
514
|
}
|
|
512
515
|
function mt(t) {
|
|
513
516
|
return new cr(t);
|
|
@@ -516,11 +519,11 @@ function Ae() {
|
|
|
516
519
|
const t = et(), s = c(() => t.class);
|
|
517
520
|
return [c(() => es(t, "class")), s];
|
|
518
521
|
}
|
|
519
|
-
function
|
|
522
|
+
function Hl(t) {
|
|
520
523
|
let s = ts;
|
|
521
|
-
tt(() => s = t()),
|
|
524
|
+
tt(() => s = t()), we(() => s());
|
|
522
525
|
}
|
|
523
|
-
function
|
|
526
|
+
function Vl(t, s) {
|
|
524
527
|
const e = ge(O.get(t) ?? s);
|
|
525
528
|
return Le(e, () => O.set(t, Bt(e))), e;
|
|
526
529
|
}
|
|
@@ -551,13 +554,13 @@ function dr(t) {
|
|
|
551
554
|
}
|
|
552
555
|
};
|
|
553
556
|
}
|
|
554
|
-
function
|
|
557
|
+
function El(t) {
|
|
555
558
|
const s = N(), e = c(t);
|
|
556
559
|
return Le(e, async () => s.value = await e.value, { immediate: !0 }), s;
|
|
557
560
|
}
|
|
558
|
-
function
|
|
561
|
+
function Ll(t, s) {
|
|
559
562
|
const e = s ? t : {}, r = s ?? t, n = N(e.initial ?? null), a = ss((u) => n.value = u, e.delay ?? 300);
|
|
560
|
-
return
|
|
563
|
+
return Y(() => a(r())), n;
|
|
561
564
|
}
|
|
562
565
|
let ie = null;
|
|
563
566
|
function pr() {
|
|
@@ -585,7 +588,7 @@ function fr(t) {
|
|
|
585
588
|
function hr() {
|
|
586
589
|
return ie;
|
|
587
590
|
}
|
|
588
|
-
function
|
|
591
|
+
function Rl(t) {
|
|
589
592
|
ie = t;
|
|
590
593
|
}
|
|
591
594
|
function gr(t) {
|
|
@@ -612,7 +615,7 @@ const vr = {
|
|
|
612
615
|
t.directive(r, n);
|
|
613
616
|
}
|
|
614
617
|
};
|
|
615
|
-
class
|
|
618
|
+
class wr extends Ce {
|
|
616
619
|
constructor() {
|
|
617
620
|
super(...arguments);
|
|
618
621
|
_(this, "cache");
|
|
@@ -633,14 +636,14 @@ class $r extends xe {
|
|
|
633
636
|
});
|
|
634
637
|
}
|
|
635
638
|
}
|
|
636
|
-
const
|
|
637
|
-
class
|
|
639
|
+
const zl = se(wr);
|
|
640
|
+
class $r extends Ce {
|
|
638
641
|
async purge() {
|
|
639
642
|
await F.emit("purge-storage");
|
|
640
643
|
}
|
|
641
644
|
}
|
|
642
|
-
const ht = se(
|
|
643
|
-
function
|
|
645
|
+
const ht = se($r);
|
|
646
|
+
function Il(t, s) {
|
|
644
647
|
return {
|
|
645
648
|
...t,
|
|
646
649
|
...ne(s, Object.keys(t))
|
|
@@ -661,7 +664,7 @@ async function ke(t, s) {
|
|
|
661
664
|
})
|
|
662
665
|
), Object.assign(t.config.globalProperties, s), (J() || ze()) && Object.assign(globalThis, s);
|
|
663
666
|
}
|
|
664
|
-
const
|
|
667
|
+
const xr = {
|
|
665
668
|
async install(t, s) {
|
|
666
669
|
var r;
|
|
667
670
|
const e = {
|
|
@@ -687,7 +690,7 @@ const gt = 768, ve = {
|
|
|
687
690
|
function vt() {
|
|
688
691
|
return globalThis.innerWidth > gt ? ve.Desktop : ve.Mobile;
|
|
689
692
|
}
|
|
690
|
-
const
|
|
693
|
+
const Cr = xe({
|
|
691
694
|
name: "ui",
|
|
692
695
|
initialState: {
|
|
693
696
|
toasts: [],
|
|
@@ -698,7 +701,7 @@ const xr = Ce({
|
|
|
698
701
|
mobile: ({ layout: t }) => t === ve.Mobile
|
|
699
702
|
}
|
|
700
703
|
});
|
|
701
|
-
class kr extends
|
|
704
|
+
class kr extends Cr {
|
|
702
705
|
constructor() {
|
|
703
706
|
super(...arguments);
|
|
704
707
|
_(this, "components", {});
|
|
@@ -732,15 +735,15 @@ class kr extends xr {
|
|
|
732
735
|
message: r,
|
|
733
736
|
required: !!(n != null && n.required)
|
|
734
737
|
}, { response: o } = await this.modal(this.requireComponent("confirm-modal"), u), p = typeof o == "object" ? o[0] : o ?? !1, g = typeof o == "object" ? o[1] : Object.entries(u.checkboxes ?? {}).reduce(
|
|
735
|
-
(
|
|
738
|
+
(w, [v, { default: S }]) => ({
|
|
736
739
|
[v]: S ?? !1,
|
|
737
|
-
|
|
740
|
+
...w
|
|
738
741
|
}),
|
|
739
742
|
{}
|
|
740
743
|
);
|
|
741
|
-
for (const [
|
|
742
|
-
if (!(!v.required || g[
|
|
743
|
-
return p && J() && console.warn(`Confirmed confirm modal was suppressed because required '${
|
|
744
|
+
for (const [w, v] of Object.entries(u.checkboxes ?? {}))
|
|
745
|
+
if (!(!v.required || g[w]))
|
|
746
|
+
return p && J() && console.warn(`Confirmed confirm modal was suppressed because required '${w}' checkbox was missing`), [!1, g];
|
|
744
747
|
return "checkboxes" in u ? [p, g] : p;
|
|
745
748
|
}
|
|
746
749
|
async prompt(e, r, n) {
|
|
@@ -774,13 +777,13 @@ class kr extends xr {
|
|
|
774
777
|
const { operationPromise: o, props: p, delay: g } = a();
|
|
775
778
|
if (g && await Promise.race([le({ ms: g }).then(() => u = !0), o]), g && !u)
|
|
776
779
|
return o;
|
|
777
|
-
const
|
|
778
|
-
We(
|
|
780
|
+
const w = hs(this.requireComponent("loading-modal"), p);
|
|
781
|
+
We(w);
|
|
779
782
|
try {
|
|
780
783
|
const v = await o;
|
|
781
784
|
return await le({ ms: 500 }), v;
|
|
782
785
|
} finally {
|
|
783
|
-
await Ke(
|
|
786
|
+
await Ke(w.id, { removeAfter: 1e3 });
|
|
784
787
|
}
|
|
785
788
|
}
|
|
786
789
|
toast(e, r = {}) {
|
|
@@ -841,7 +844,7 @@ class Sr {
|
|
|
841
844
|
return J() && console.warn("Lang provider is missing"), e;
|
|
842
845
|
}
|
|
843
846
|
}
|
|
844
|
-
const Tr =
|
|
847
|
+
const Tr = xe({
|
|
845
848
|
name: "lang",
|
|
846
849
|
persist: ["locale", "fallbackLocale"],
|
|
847
850
|
initialState: {
|
|
@@ -882,7 +885,7 @@ class Mr extends Tr {
|
|
|
882
885
|
);
|
|
883
886
|
}
|
|
884
887
|
}
|
|
885
|
-
const Z = se(Mr), bt = Z.translate.bind(Z), k = Z.translateWithDefault.bind(Z), Hr =
|
|
888
|
+
const Z = se(Mr), bt = Z.translate.bind(Z), k = Z.translateWithDefault.bind(Z), Hr = xe({
|
|
886
889
|
name: "errors",
|
|
887
890
|
initialState: {
|
|
888
891
|
logs: [],
|
|
@@ -955,7 +958,7 @@ class Vr extends Hr {
|
|
|
955
958
|
});
|
|
956
959
|
}
|
|
957
960
|
async boot() {
|
|
958
|
-
|
|
961
|
+
Y(async () => {
|
|
959
962
|
var e;
|
|
960
963
|
if (!this.debug) {
|
|
961
964
|
(e = this.eruda) == null || e.destroy();
|
|
@@ -997,7 +1000,7 @@ class Vr extends Hr {
|
|
|
997
1000
|
};
|
|
998
1001
|
}
|
|
999
1002
|
}
|
|
1000
|
-
const yt = se(Vr),
|
|
1003
|
+
const yt = se(Vr), wt = /* @__PURE__ */ h({
|
|
1001
1004
|
__name: "HeadlessButton",
|
|
1002
1005
|
props: {
|
|
1003
1006
|
class: {},
|
|
@@ -1028,13 +1031,13 @@ const yt = se(Vr), $t = /* @__PURE__ */ h({
|
|
|
1028
1031
|
as: "button",
|
|
1029
1032
|
type: t.submit ? "submit" : "button"
|
|
1030
1033
|
});
|
|
1031
|
-
return (e, r) => (i(), f(l(
|
|
1034
|
+
return (e, r) => (i(), f(l($s), V({
|
|
1032
1035
|
class: t.class,
|
|
1033
1036
|
"as-child": e.asChild,
|
|
1034
1037
|
disabled: e.disabled
|
|
1035
1038
|
}, s.value), {
|
|
1036
1039
|
default: m(() => [
|
|
1037
|
-
|
|
1040
|
+
$(e.$slots, "default")
|
|
1038
1041
|
]),
|
|
1039
1042
|
_: 3
|
|
1040
1043
|
}, 16, ["class", "as-child", "disabled"]));
|
|
@@ -1064,6 +1067,7 @@ const yt = se(Vr), $t = /* @__PURE__ */ h({
|
|
|
1064
1067
|
default: "bg-primary-600 text-white focus-visible:outline-primary-600",
|
|
1065
1068
|
secondary: "bg-background text-gray-900 ring-gray-300",
|
|
1066
1069
|
danger: "bg-red-600 text-white focus-visible:outline-red-600",
|
|
1070
|
+
warning: "bg-yellow-600 text-white focus-visible:outline-yellow-600",
|
|
1067
1071
|
ghost: "bg-transparent",
|
|
1068
1072
|
outline: "bg-transparent text-primary-600 ring-primary-600",
|
|
1069
1073
|
link: "text-links"
|
|
@@ -1150,12 +1154,12 @@ const yt = se(Vr), $t = /* @__PURE__ */ h({
|
|
|
1150
1154
|
}
|
|
1151
1155
|
}
|
|
1152
1156
|
));
|
|
1153
|
-
return (r, n) => (i(), f(
|
|
1157
|
+
return (r, n) => (i(), f(wt, V({
|
|
1154
1158
|
class: e.value,
|
|
1155
1159
|
disabled: r.disabled
|
|
1156
1160
|
}, s), {
|
|
1157
1161
|
default: m(() => [
|
|
1158
|
-
|
|
1162
|
+
$(r.$slots, "default")
|
|
1159
1163
|
]),
|
|
1160
1164
|
_: 3
|
|
1161
1165
|
}, 16, ["class", "disabled"]));
|
|
@@ -1164,7 +1168,7 @@ const yt = se(Vr), $t = /* @__PURE__ */ h({
|
|
|
1164
1168
|
function Er(t) {
|
|
1165
1169
|
return typeof t == "object" && t !== null && "label" in t;
|
|
1166
1170
|
}
|
|
1167
|
-
const
|
|
1171
|
+
const $t = /* @__PURE__ */ h({
|
|
1168
1172
|
__name: "HeadlessSelectValue",
|
|
1169
1173
|
setup(t) {
|
|
1170
1174
|
const s = I(
|
|
@@ -1176,7 +1180,7 @@ const wt = /* @__PURE__ */ h({
|
|
|
1176
1180
|
placeholder: l(s).placeholder
|
|
1177
1181
|
}, {
|
|
1178
1182
|
default: m(() => [
|
|
1179
|
-
|
|
1183
|
+
$(e.$slots, "default")
|
|
1180
1184
|
]),
|
|
1181
1185
|
_: 3
|
|
1182
1186
|
}, 8, ["placeholder"])) : (i(), f(l(Qe), {
|
|
@@ -1195,17 +1199,17 @@ const wt = /* @__PURE__ */ h({
|
|
|
1195
1199
|
id: l(s).id
|
|
1196
1200
|
}, {
|
|
1197
1201
|
default: m(() => [
|
|
1198
|
-
|
|
1199
|
-
d(
|
|
1202
|
+
$(e.$slots, "default", {}, () => [
|
|
1203
|
+
d($t, {
|
|
1200
1204
|
placeholder: l(s).placeholder
|
|
1201
1205
|
}, null, 8, ["placeholder"]),
|
|
1202
|
-
d(l(
|
|
1206
|
+
d(l(xs))
|
|
1203
1207
|
])
|
|
1204
1208
|
]),
|
|
1205
1209
|
_: 3
|
|
1206
1210
|
}, 8, ["id"]));
|
|
1207
1211
|
}
|
|
1208
|
-
}),
|
|
1212
|
+
}), xt = /* @__PURE__ */ h({
|
|
1209
1213
|
__name: "HeadlessSelectOption",
|
|
1210
1214
|
props: {
|
|
1211
1215
|
value: {},
|
|
@@ -1223,12 +1227,12 @@ const wt = /* @__PURE__ */ h({
|
|
|
1223
1227
|
const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
|
|
1224
1228
|
return r ? r.label : B(t.value);
|
|
1225
1229
|
});
|
|
1226
|
-
return (r, n) => (i(), f(l(
|
|
1230
|
+
return (r, n) => (i(), f(l(Cs), ue(ce(r.$props)), {
|
|
1227
1231
|
default: m(() => [
|
|
1228
1232
|
d(l(ks), null, {
|
|
1229
1233
|
default: m(() => [
|
|
1230
|
-
|
|
1231
|
-
L(
|
|
1234
|
+
$(r.$slots, "default", {}, () => [
|
|
1235
|
+
L(x(e.value), 1)
|
|
1232
1236
|
])
|
|
1233
1237
|
]),
|
|
1234
1238
|
_: 3
|
|
@@ -1237,7 +1241,7 @@ const wt = /* @__PURE__ */ h({
|
|
|
1237
1241
|
_: 3
|
|
1238
1242
|
}, 16));
|
|
1239
1243
|
}
|
|
1240
|
-
}),
|
|
1244
|
+
}), Ct = /* @__PURE__ */ h({
|
|
1241
1245
|
__name: "HeadlessSelectOptions",
|
|
1242
1246
|
props: {
|
|
1243
1247
|
class: {},
|
|
@@ -1252,18 +1256,18 @@ const wt = /* @__PURE__ */ h({
|
|
|
1252
1256
|
default: m(() => [
|
|
1253
1257
|
d(l(Ts), {
|
|
1254
1258
|
position: "popper",
|
|
1255
|
-
class:
|
|
1259
|
+
class: C(e.value),
|
|
1256
1260
|
align: l(s).align,
|
|
1257
1261
|
side: l(s).side,
|
|
1258
1262
|
"side-offset": 4
|
|
1259
1263
|
}, {
|
|
1260
1264
|
default: m(() => [
|
|
1261
1265
|
d(l(Ms), {
|
|
1262
|
-
class:
|
|
1266
|
+
class: C(r.innerClass)
|
|
1263
1267
|
}, {
|
|
1264
1268
|
default: m(() => [
|
|
1265
|
-
|
|
1266
|
-
(i(!0), y(D, null, U(l(s).options ?? [], (a) => (i(), f(
|
|
1269
|
+
$(r.$slots, "default", {}, () => [
|
|
1270
|
+
(i(!0), y(D, null, U(l(s).options ?? [], (a) => (i(), f(xt, {
|
|
1267
1271
|
key: a.key,
|
|
1268
1272
|
value: a.value
|
|
1269
1273
|
}, null, 8, ["value"]))), 128))
|
|
@@ -1318,7 +1322,7 @@ const wt = /* @__PURE__ */ h({
|
|
|
1318
1322
|
var v;
|
|
1319
1323
|
return (v = p.value) == null ? void 0 : v.find((S) => S.value === t.modelValue);
|
|
1320
1324
|
}),
|
|
1321
|
-
errors:
|
|
1325
|
+
errors: $e(o),
|
|
1322
1326
|
required: c(() => {
|
|
1323
1327
|
if (!(!t.name || !n))
|
|
1324
1328
|
return n.getFieldRules(t.name).includes("required");
|
|
@@ -1331,23 +1335,23 @@ const wt = /* @__PURE__ */ h({
|
|
|
1331
1335
|
r("update:modelValue", v);
|
|
1332
1336
|
}
|
|
1333
1337
|
};
|
|
1334
|
-
function
|
|
1338
|
+
function w(v) {
|
|
1335
1339
|
g.update(v);
|
|
1336
1340
|
}
|
|
1337
1341
|
return de("select", g), s(g), (v, S) => (i(), f(l(Hs), {
|
|
1338
1342
|
"model-value": u.value,
|
|
1339
1343
|
by: v.compareOptions,
|
|
1340
|
-
"onUpdate:modelValue": S[0] || (S[0] = (q) =>
|
|
1344
|
+
"onUpdate:modelValue": S[0] || (S[0] = (q) => w(q))
|
|
1341
1345
|
}, {
|
|
1342
1346
|
default: m(({ open: q }) => [
|
|
1343
|
-
(i(), f(
|
|
1347
|
+
(i(), f(G(v.as), ue(ce(v.$attrs)), {
|
|
1344
1348
|
default: m(() => [
|
|
1345
|
-
|
|
1349
|
+
$(v.$slots, "default", {
|
|
1346
1350
|
modelValue: v.modelValue,
|
|
1347
1351
|
open: q
|
|
1348
1352
|
}, () => [
|
|
1349
1353
|
d(_t),
|
|
1350
|
-
d(
|
|
1354
|
+
d(Ct)
|
|
1351
1355
|
])
|
|
1352
1356
|
]),
|
|
1353
1357
|
_: 2
|
|
@@ -1372,8 +1376,8 @@ const wt = /* @__PURE__ */ h({
|
|
|
1372
1376
|
for: l(s).id
|
|
1373
1377
|
}, n.$props), {
|
|
1374
1378
|
default: m(() => [
|
|
1375
|
-
|
|
1376
|
-
L(
|
|
1379
|
+
$(n.$slots, "default", {}, () => [
|
|
1380
|
+
L(x(l(s).label), 1)
|
|
1377
1381
|
])
|
|
1378
1382
|
]),
|
|
1379
1383
|
_: 3
|
|
@@ -1388,18 +1392,18 @@ const wt = /* @__PURE__ */ h({
|
|
|
1388
1392
|
const s = I("select", "<SelectLabel> must be a child of a <Select>"), e = c(() => H("block text-sm leading-6 font-medium text-gray-900", s.labelClass, t.class));
|
|
1389
1393
|
return (r, n) => r.$slots.default ? (i(), f(Xe, {
|
|
1390
1394
|
key: 0,
|
|
1391
|
-
class:
|
|
1395
|
+
class: C(e.value)
|
|
1392
1396
|
}, {
|
|
1393
1397
|
default: m(() => [
|
|
1394
|
-
|
|
1398
|
+
$(r.$slots, "default")
|
|
1395
1399
|
]),
|
|
1396
1400
|
_: 3
|
|
1397
1401
|
}, 8, ["class"])) : (i(), f(Xe, {
|
|
1398
1402
|
key: 1,
|
|
1399
|
-
class:
|
|
1403
|
+
class: C(e.value)
|
|
1400
1404
|
}, null, 8, ["class"]));
|
|
1401
1405
|
}
|
|
1402
|
-
}),
|
|
1406
|
+
}), Ye = /* @__PURE__ */ h({
|
|
1403
1407
|
__name: "SelectOption",
|
|
1404
1408
|
props: {
|
|
1405
1409
|
value: {},
|
|
@@ -1412,15 +1416,15 @@ const wt = /* @__PURE__ */ h({
|
|
|
1412
1416
|
"relative flex max-w-[calc(100vw-2rem)] cursor-pointer items-center truncate rounded-md gap-2 px-2 py-1 text-sm select-none *:truncate group-data-[highlighted]:bg-gray-100 group-data-[state=checked]:font-semibold group-data-[state=unchecked]:opacity-50",
|
|
1413
1417
|
t.innerClass
|
|
1414
1418
|
));
|
|
1415
|
-
return (r, n) => (i(), f(
|
|
1416
|
-
class:
|
|
1419
|
+
return (r, n) => (i(), f(xt, {
|
|
1420
|
+
class: C(s.value),
|
|
1417
1421
|
value: r.value
|
|
1418
1422
|
}, {
|
|
1419
1423
|
default: m(() => [
|
|
1420
1424
|
b("div", {
|
|
1421
|
-
class:
|
|
1425
|
+
class: C(e.value)
|
|
1422
1426
|
}, [
|
|
1423
|
-
|
|
1427
|
+
$(r.$slots, "default")
|
|
1424
1428
|
], 2)
|
|
1425
1429
|
]),
|
|
1426
1430
|
_: 3
|
|
@@ -1437,32 +1441,32 @@ const wt = /* @__PURE__ */ h({
|
|
|
1437
1441
|
s.optionsClass,
|
|
1438
1442
|
t.class
|
|
1439
1443
|
));
|
|
1440
|
-
return (r, n) => (i(), f(
|
|
1441
|
-
class:
|
|
1444
|
+
return (r, n) => (i(), f(Ct, {
|
|
1445
|
+
class: C(e.value)
|
|
1442
1446
|
}, {
|
|
1443
1447
|
default: m(() => {
|
|
1444
1448
|
var a;
|
|
1445
1449
|
return [
|
|
1446
|
-
(a = l(s).options) != null && a.length ?
|
|
1450
|
+
(a = l(s).options) != null && a.length ? $(r.$slots, "default", { key: 0 }, () => {
|
|
1447
1451
|
var u;
|
|
1448
1452
|
return [
|
|
1449
|
-
(i(!0), y(D, null, U(((u = l(s)) == null ? void 0 : u.options) ?? [], (o) => (i(), f(
|
|
1453
|
+
(i(!0), y(D, null, U(((u = l(s)) == null ? void 0 : u.options) ?? [], (o) => (i(), f(Ye, {
|
|
1450
1454
|
key: o.key,
|
|
1451
1455
|
value: o.value
|
|
1452
1456
|
}, {
|
|
1453
1457
|
default: m(() => [
|
|
1454
|
-
L(
|
|
1458
|
+
L(x(o.label), 1)
|
|
1455
1459
|
]),
|
|
1456
1460
|
_: 2
|
|
1457
1461
|
}, 1032, ["value"]))), 128))
|
|
1458
1462
|
];
|
|
1459
|
-
}) :
|
|
1460
|
-
d(
|
|
1463
|
+
}) : $(r.$slots, "default", { key: 1 }, () => [
|
|
1464
|
+
d(Ye, {
|
|
1461
1465
|
disabled: "",
|
|
1462
1466
|
value: null
|
|
1463
1467
|
}, {
|
|
1464
1468
|
default: m(() => [
|
|
1465
|
-
L(
|
|
1469
|
+
L(x(r.$td("ui.selectEmpty", "No options available")), 1)
|
|
1466
1470
|
]),
|
|
1467
1471
|
_: 1
|
|
1468
1472
|
})
|
|
@@ -1498,10 +1502,10 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1498
1502
|
t.class
|
|
1499
1503
|
));
|
|
1500
1504
|
return (r, n) => (i(), f(_t, {
|
|
1501
|
-
class:
|
|
1505
|
+
class: C(e.value)
|
|
1502
1506
|
}, {
|
|
1503
1507
|
default: m(() => [
|
|
1504
|
-
d(
|
|
1508
|
+
d($t, { class: "col-start-1 row-start-1 truncate pr-6" }),
|
|
1505
1509
|
d(l(Ir), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
|
|
1506
1510
|
]),
|
|
1507
1511
|
_: 1
|
|
@@ -1532,7 +1536,7 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1532
1536
|
}), {
|
|
1533
1537
|
default: m(() => [
|
|
1534
1538
|
d(kt),
|
|
1535
|
-
|
|
1539
|
+
$(e.$slots, "default", {}, () => [
|
|
1536
1540
|
d(Tt),
|
|
1537
1541
|
d(St)
|
|
1538
1542
|
])
|
|
@@ -1561,7 +1565,7 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1561
1565
|
b("div", Ar, [
|
|
1562
1566
|
d(kt, { class: "text-base font-semibold" }, {
|
|
1563
1567
|
default: m(() => [
|
|
1564
|
-
L(
|
|
1568
|
+
L(x(n.$td("settings.locale", "Language")), 1)
|
|
1565
1569
|
]),
|
|
1566
1570
|
_: 1
|
|
1567
1571
|
}),
|
|
@@ -1615,10 +1619,10 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1615
1619
|
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
1616
1620
|
});
|
|
1617
1621
|
async function u(o) {
|
|
1618
|
-
var g,
|
|
1622
|
+
var g, w;
|
|
1619
1623
|
const { target: p } = o;
|
|
1620
1624
|
if (Oe(p, HTMLElement) && p.dataset.markdownAction) {
|
|
1621
|
-
(
|
|
1625
|
+
(w = (g = t.actions) == null ? void 0 : g[p.dataset.markdownAction]) == null || w.call(g);
|
|
1622
1626
|
return;
|
|
1623
1627
|
}
|
|
1624
1628
|
if (Oe(p, HTMLAnchorElement) && p.dataset.markdownRoute) {
|
|
@@ -1646,13 +1650,13 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1646
1650
|
setup(t) {
|
|
1647
1651
|
const s = c(() => H(t.class, "flex flex-col justify-center gap-1"));
|
|
1648
1652
|
return (e, r) => (i(), y("div", {
|
|
1649
|
-
class:
|
|
1653
|
+
class: C(["mt-4 flex", { "flex-col": e.layout === "vertical" }])
|
|
1650
1654
|
}, [
|
|
1651
1655
|
b("div", Or, [
|
|
1652
1656
|
b("h3", {
|
|
1653
1657
|
id: e.titleId,
|
|
1654
1658
|
class: "text-base font-semibold"
|
|
1655
|
-
},
|
|
1659
|
+
}, x(e.title), 9, Nr),
|
|
1656
1660
|
e.description ? (i(), f(z, {
|
|
1657
1661
|
key: 0,
|
|
1658
1662
|
text: e.description,
|
|
@@ -1660,9 +1664,9 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1660
1664
|
}, null, 8, ["text"])) : M("", !0)
|
|
1661
1665
|
]),
|
|
1662
1666
|
b("div", {
|
|
1663
|
-
class:
|
|
1667
|
+
class: C(s.value)
|
|
1664
1668
|
}, [
|
|
1665
|
-
|
|
1669
|
+
$(e.$slots, "default")
|
|
1666
1670
|
], 2)
|
|
1667
1671
|
], 2));
|
|
1668
1672
|
}
|
|
@@ -1687,7 +1691,7 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1687
1691
|
label: c(() => t.label),
|
|
1688
1692
|
description: c(() => t.description),
|
|
1689
1693
|
value: c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue),
|
|
1690
|
-
errors:
|
|
1694
|
+
errors: $e(a),
|
|
1691
1695
|
required: c(() => {
|
|
1692
1696
|
if (!(!t.name || !n))
|
|
1693
1697
|
return n.getFieldRules(t.name).includes("required");
|
|
@@ -1700,16 +1704,16 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1700
1704
|
r("update:modelValue", o);
|
|
1701
1705
|
}
|
|
1702
1706
|
};
|
|
1703
|
-
return s(u),
|
|
1707
|
+
return s(u), Y(() => {
|
|
1704
1708
|
!t.description && !a.value || console.warn("Errors and description not implemented in <HeadlessSwitch>");
|
|
1705
1709
|
}), (o, p) => (i(), y("div", {
|
|
1706
|
-
class:
|
|
1710
|
+
class: C(t.class)
|
|
1707
1711
|
}, [
|
|
1708
1712
|
o.label ? (i(), y("label", {
|
|
1709
1713
|
key: 0,
|
|
1710
1714
|
for: u.id,
|
|
1711
|
-
class:
|
|
1712
|
-
},
|
|
1715
|
+
class: C(o.labelClass)
|
|
1716
|
+
}, x(o.label), 11, Kr)) : M("", !0),
|
|
1713
1717
|
d(l(Es), V({
|
|
1714
1718
|
id: u.id,
|
|
1715
1719
|
name: o.name,
|
|
@@ -1720,7 +1724,7 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1720
1724
|
}), {
|
|
1721
1725
|
default: m(() => [
|
|
1722
1726
|
d(l(Ls), {
|
|
1723
|
-
class:
|
|
1727
|
+
class: C(o.thumbClass)
|
|
1724
1728
|
}, null, 8, ["class"])
|
|
1725
1729
|
]),
|
|
1726
1730
|
_: 1
|
|
@@ -1760,7 +1764,7 @@ const Ir = E({ name: "zondicons-cheveron-down", render: zr }), Tt = /* @__PURE__
|
|
|
1760
1764
|
component: Zr
|
|
1761
1765
|
}
|
|
1762
1766
|
], Mt = [];
|
|
1763
|
-
function
|
|
1767
|
+
function ql(t) {
|
|
1764
1768
|
Mt.push(t);
|
|
1765
1769
|
}
|
|
1766
1770
|
function Ht(t) {
|
|
@@ -1771,16 +1775,16 @@ function Ht(t) {
|
|
|
1771
1775
|
}
|
|
1772
1776
|
return typeof t == "string" ? t : t instanceof Error || t instanceof _e ? t.message : fe(t) ? B(t.message ?? t.description ?? "Unknown error object") : k("errors.unknown", "Unknown Error");
|
|
1773
1777
|
}
|
|
1774
|
-
class
|
|
1778
|
+
class Ge extends _e {
|
|
1775
1779
|
}
|
|
1776
|
-
const
|
|
1780
|
+
const Yr = { $errors: yt }, Gr = (t) => (yt.report(t), !0);
|
|
1777
1781
|
function en(t, s = () => !1) {
|
|
1778
|
-
const e = (r) => s(r) ||
|
|
1782
|
+
const e = (r) => s(r) || Gr(r);
|
|
1779
1783
|
t.config.errorHandler = e, globalThis.onerror = (r, n, a, u, o) => e(o ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
1780
1784
|
}
|
|
1781
1785
|
const tn = {
|
|
1782
1786
|
async install(t, s) {
|
|
1783
|
-
en(t, s.handleError), Xr.forEach((e) => A.addSetting(e)), await ke(t,
|
|
1787
|
+
en(t, s.handleError), Xr.forEach((e) => A.addSetting(e)), await ke(t, Yr);
|
|
1784
1788
|
}
|
|
1785
1789
|
}, sn = {
|
|
1786
1790
|
async install() {
|
|
@@ -1823,7 +1827,7 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1823
1827
|
default: m(() => [
|
|
1824
1828
|
d(l(zs), null, {
|
|
1825
1829
|
default: m(() => [
|
|
1826
|
-
|
|
1830
|
+
$(a.$slots, "default", { close: l(r) })
|
|
1827
1831
|
]),
|
|
1828
1832
|
_: 3
|
|
1829
1833
|
})
|
|
@@ -1835,9 +1839,9 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1835
1839
|
__name: "HeadlessModalContent",
|
|
1836
1840
|
setup(t) {
|
|
1837
1841
|
const { child: s } = Pe(), e = nr("$modalContentRef"), r = ee("$contentRef");
|
|
1838
|
-
return
|
|
1842
|
+
return Y(() => e.value = r.value), (n, a) => (i(), f(l(Is), { ref: "$contentRef" }, {
|
|
1839
1843
|
default: m(() => [
|
|
1840
|
-
|
|
1844
|
+
$(n.$slots, "default"),
|
|
1841
1845
|
l(s) ? (i(), f(l(gs), {
|
|
1842
1846
|
key: 0,
|
|
1843
1847
|
is: l(s)
|
|
@@ -1855,7 +1859,7 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1855
1859
|
setup(t) {
|
|
1856
1860
|
return (s, e) => (i(), f(l(qs), ue(ce(s.$props)), {
|
|
1857
1861
|
default: m(() => [
|
|
1858
|
-
|
|
1862
|
+
$(s.$slots, "default")
|
|
1859
1863
|
]),
|
|
1860
1864
|
_: 3
|
|
1861
1865
|
}, 16));
|
|
@@ -1870,7 +1874,7 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1870
1874
|
setup(t) {
|
|
1871
1875
|
return (s, e) => (i(), f(l(As), ue(ce(s.$props)), {
|
|
1872
1876
|
default: m(() => [
|
|
1873
|
-
|
|
1877
|
+
$(s.$slots, "default")
|
|
1874
1878
|
]),
|
|
1875
1879
|
_: 3
|
|
1876
1880
|
}, 16));
|
|
@@ -1884,7 +1888,7 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1884
1888
|
setup(t) {
|
|
1885
1889
|
return (s, e) => (i(), f(l(Ps), ue(ce(s.$props)), {
|
|
1886
1890
|
default: m(() => [
|
|
1887
|
-
|
|
1891
|
+
$(s.$slots, "default")
|
|
1888
1892
|
]),
|
|
1889
1893
|
_: 3
|
|
1890
1894
|
}, 16));
|
|
@@ -1917,7 +1921,7 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1917
1921
|
var T;
|
|
1918
1922
|
return u.value && ((T = ae.value.toReversed().find((Be) => Be.visible.value)) == null ? void 0 : T.id) === a.value;
|
|
1919
1923
|
}
|
|
1920
|
-
),
|
|
1924
|
+
), w = c(() => ae.value.find((T) => T.visible.value)), v = c(() => ae.value.some((T) => Me.has(T))), S = c(() => t.description ? {} : { "aria-describedby": void 0 }), q = c(() => H("max-h-[90vh] overflow-auto px-4 pb-4", { "pt-4": !t.title || t.titleHidden }, t.class)), pe = c(() => H(
|
|
1921
1925
|
"isolate fixed top-1/2 left-1/2 z-50 w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
|
|
1922
1926
|
"overflow-hidden rounded-lg bg-white text-left shadow-xl sm:max-w-lg",
|
|
1923
1927
|
Me.has(p.value) || "animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
|
|
@@ -1936,10 +1940,10 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1936
1940
|
var Fe, Ue;
|
|
1937
1941
|
return [
|
|
1938
1942
|
d(cn, {
|
|
1939
|
-
class:
|
|
1943
|
+
class: C(["fixed inset-0 transition-opacity duration-300 will-change-[opacity]", {
|
|
1940
1944
|
"animate-[fade-in_var(--tw-duration)_ease-in-out]": !v.value,
|
|
1941
|
-
"bg-black/30": ((Fe =
|
|
1942
|
-
"opacity-0":
|
|
1945
|
+
"bg-black/30": ((Fe = w.value) == null ? void 0 : Fe.id) === l(a) || !w.value && ((Ue = l(ae)[0]) == null ? void 0 : Ue.id) === l(a),
|
|
1946
|
+
"opacity-0": !w.value
|
|
1943
1947
|
}])
|
|
1944
1948
|
}, null, 8, ["class"]),
|
|
1945
1949
|
d(on, V(S.value, { class: pe.value }), {
|
|
@@ -1948,15 +1952,15 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1948
1952
|
b("button", {
|
|
1949
1953
|
type: "button",
|
|
1950
1954
|
class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
|
|
1951
|
-
onClick: (
|
|
1955
|
+
onClick: (ol) => me()
|
|
1952
1956
|
}, [
|
|
1953
|
-
b("span", fn,
|
|
1957
|
+
b("span", fn, x(T.$td("ui.close", "Close")), 1),
|
|
1954
1958
|
d(l(an), { class: "size-4" })
|
|
1955
1959
|
], 8, mn)
|
|
1956
1960
|
])) : M("", !0),
|
|
1957
1961
|
T.title ? (i(), f(dn, {
|
|
1958
1962
|
key: 1,
|
|
1959
|
-
class:
|
|
1963
|
+
class: C(["px-4 pt-5 text-base font-semibold text-gray-900", {
|
|
1960
1964
|
"sr-only": T.titleHidden,
|
|
1961
1965
|
"pb-0": T.description && !T.descriptionHidden,
|
|
1962
1966
|
"pb-2": !T.description || T.descriptionHidden
|
|
@@ -1972,7 +1976,7 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1972
1976
|
}, 8, ["class"])) : M("", !0),
|
|
1973
1977
|
T.description ? (i(), f(un, {
|
|
1974
1978
|
key: 2,
|
|
1975
|
-
class:
|
|
1979
|
+
class: C(["px-4 pt-1 pb-2", { "sr-only": T.descriptionHidden }])
|
|
1976
1980
|
}, {
|
|
1977
1981
|
default: m(() => [
|
|
1978
1982
|
d(z, {
|
|
@@ -1983,9 +1987,9 @@ const an = E({ name: "zondicons-close", render: nn }), ln = /* @__PURE__ */ h({
|
|
|
1983
1987
|
_: 1
|
|
1984
1988
|
}, 8, ["class"])) : M("", !0),
|
|
1985
1989
|
b("div", {
|
|
1986
|
-
class:
|
|
1990
|
+
class: C(q.value)
|
|
1987
1991
|
}, [
|
|
1988
|
-
|
|
1992
|
+
$(T.$slots, "default", { close: me })
|
|
1989
1993
|
], 2)
|
|
1990
1994
|
]),
|
|
1991
1995
|
_: 2
|
|
@@ -2027,13 +2031,13 @@ const gn = /* @__PURE__ */ h({
|
|
|
2027
2031
|
setup(t, { emit: s }) {
|
|
2028
2032
|
let e;
|
|
2029
2033
|
const r = s;
|
|
2030
|
-
return
|
|
2034
|
+
return Y((n) => {
|
|
2031
2035
|
var a;
|
|
2032
2036
|
e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
|
|
2033
2037
|
}), de("form", t.form), (n, a) => (i(), y("form", {
|
|
2034
2038
|
onSubmit: a[0] || (a[0] = st((u) => n.form ? n.form.submit() : n.$emit("submit"), ["prevent"]))
|
|
2035
2039
|
}, [
|
|
2036
|
-
|
|
2040
|
+
$(n.$slots, "default")
|
|
2037
2041
|
], 32));
|
|
2038
2042
|
}
|
|
2039
2043
|
});
|
|
@@ -2056,7 +2060,7 @@ function vn(t) {
|
|
|
2056
2060
|
const bn = {
|
|
2057
2061
|
key: 0,
|
|
2058
2062
|
class: "mt-4 flex flex-col text-sm text-gray-600"
|
|
2059
|
-
}, yn = { class: "flex items-center" },
|
|
2063
|
+
}, yn = { class: "flex items-center" }, wn = ["onUpdate:modelValue", "required"], $n = { class: "ml-1.5" }, _n = { class: "mt-4 flex flex-row-reverse gap-2" }, xn = /* @__PURE__ */ h({
|
|
2060
2064
|
__name: "ConfirmModal",
|
|
2061
2065
|
props: {
|
|
2062
2066
|
title: {},
|
|
@@ -2077,10 +2081,10 @@ const bn = {
|
|
|
2077
2081
|
"title-hidden": l(a),
|
|
2078
2082
|
persistent: ""
|
|
2079
2083
|
}, {
|
|
2080
|
-
default: m(({ close:
|
|
2084
|
+
default: m(({ close: w }) => [
|
|
2081
2085
|
d(Vt, {
|
|
2082
2086
|
form: l(r),
|
|
2083
|
-
onSubmit: (v) =>
|
|
2087
|
+
onSubmit: (v) => w([!0, l(r).data()])
|
|
2084
2088
|
}, {
|
|
2085
2089
|
default: m(() => [
|
|
2086
2090
|
d(z, {
|
|
@@ -2095,10 +2099,10 @@ const bn = {
|
|
|
2095
2099
|
type: "checkbox",
|
|
2096
2100
|
required: v.required,
|
|
2097
2101
|
class: "border-primary-600 text-primary-600 hover:bg-primary-50 hover:checked:bg-primary-500 focus:ring-primary-600 focus-visible:ring-primary-600 rounded border-2"
|
|
2098
|
-
}, null, 8,
|
|
2102
|
+
}, null, 8, wn), [
|
|
2099
2103
|
[Ot, l(r)[S]]
|
|
2100
2104
|
]),
|
|
2101
|
-
b("span",
|
|
2105
|
+
b("span", $n, x(v.label), 1)
|
|
2102
2106
|
])
|
|
2103
2107
|
]))), 128))
|
|
2104
2108
|
])) : M("", !0),
|
|
@@ -2108,17 +2112,17 @@ const bn = {
|
|
|
2108
2112
|
submit: ""
|
|
2109
2113
|
}, {
|
|
2110
2114
|
default: m(() => [
|
|
2111
|
-
L(
|
|
2115
|
+
L(x(l(u)), 1)
|
|
2112
2116
|
]),
|
|
2113
2117
|
_: 1
|
|
2114
2118
|
}, 8, ["variant"]),
|
|
2115
2119
|
p.required ? M("", !0) : (i(), f(R, {
|
|
2116
2120
|
key: 0,
|
|
2117
2121
|
variant: p.cancelVariant,
|
|
2118
|
-
onClick: (v) =>
|
|
2122
|
+
onClick: (v) => w(!1)
|
|
2119
2123
|
}, {
|
|
2120
2124
|
default: m(() => [
|
|
2121
|
-
L(
|
|
2125
|
+
L(x(l(o)), 1)
|
|
2122
2126
|
]),
|
|
2123
2127
|
_: 2
|
|
2124
2128
|
}, 1032, ["variant", "onClick"]))
|
|
@@ -2130,13 +2134,13 @@ const bn = {
|
|
|
2130
2134
|
_: 1
|
|
2131
2135
|
}, 8, ["title", "title-hidden"]));
|
|
2132
2136
|
}
|
|
2133
|
-
}),
|
|
2137
|
+
}), Cn = {
|
|
2134
2138
|
viewBox: "0 0 20 20",
|
|
2135
2139
|
width: "1.2em",
|
|
2136
2140
|
height: "1.2em"
|
|
2137
2141
|
};
|
|
2138
2142
|
function kn(t, s) {
|
|
2139
|
-
return i(), y("svg",
|
|
2143
|
+
return i(), y("svg", Cn, s[0] || (s[0] = [
|
|
2140
2144
|
b("path", {
|
|
2141
2145
|
fill: "currentColor",
|
|
2142
2146
|
d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
|
|
@@ -2269,7 +2273,7 @@ ${s.report.details}`), P.toast(k("errors.copiedToClipboard", "Debug information
|
|
|
2269
2273
|
}
|
|
2270
2274
|
));
|
|
2271
2275
|
return (a, u) => (i(), y("div", jn, [
|
|
2272
|
-
(i(!0), y(D, null, U(n.value, (o) =>
|
|
2276
|
+
(i(!0), y(D, null, U(n.value, (o) => $(a.$slots, "default", V({ ref_for: !0 }, o), () => [
|
|
2273
2277
|
d(R, {
|
|
2274
2278
|
size: "icon",
|
|
2275
2279
|
variant: "ghost",
|
|
@@ -2279,8 +2283,8 @@ ${s.report.details}`), P.toast(k("errors.copiedToClipboard", "Debug information
|
|
|
2279
2283
|
onClick: o.click
|
|
2280
2284
|
}, {
|
|
2281
2285
|
default: m(() => [
|
|
2282
|
-
b("span", Bn,
|
|
2283
|
-
(i(), f(
|
|
2286
|
+
b("span", Bn, x(a.$td(`errors.report_${o.id}`, o.description)), 1),
|
|
2287
|
+
(i(), f(G(o.iconComponent), {
|
|
2284
2288
|
class: "size-4",
|
|
2285
2289
|
"aria-hidden": "true"
|
|
2286
2290
|
}))
|
|
@@ -2356,7 +2360,7 @@ const Nn = { class: "px-4 pt-5 pb-4" }, Wn = { class: "flex justify-between gap-
|
|
|
2356
2360
|
disabled: l(r) === 0,
|
|
2357
2361
|
"aria-label": l(u),
|
|
2358
2362
|
title: l(u),
|
|
2359
|
-
onClick: g[0] || (g[0] = (
|
|
2363
|
+
onClick: g[0] || (g[0] = (w) => r.value--)
|
|
2360
2364
|
}, {
|
|
2361
2365
|
default: m(() => [
|
|
2362
2366
|
d(l(Sn), { class: "size-4" })
|
|
@@ -2369,7 +2373,7 @@ const Nn = { class: "px-4 pt-5 pb-4" }, Wn = { class: "flex justify-between gap-
|
|
|
2369
2373
|
disabled: l(r) === p.reports.length - 1,
|
|
2370
2374
|
"aria-label": l(a),
|
|
2371
2375
|
title: l(a),
|
|
2372
|
-
onClick: g[1] || (g[1] = (
|
|
2376
|
+
onClick: g[1] || (g[1] = (w) => r.value++)
|
|
2373
2377
|
}, {
|
|
2374
2378
|
default: m(() => [
|
|
2375
2379
|
d(l(Et), { class: "size-4" })
|
|
@@ -2392,20 +2396,20 @@ const Nn = { class: "px-4 pt-5 pb-4" }, Wn = { class: "flex justify-between gap-
|
|
|
2392
2396
|
b("div", Jn, [
|
|
2393
2397
|
b("pre", {
|
|
2394
2398
|
class: "p-4 text-xs text-red-800",
|
|
2395
|
-
textContent:
|
|
2399
|
+
textContent: x(l(n))
|
|
2396
2400
|
}, null, 8, Zn)
|
|
2397
2401
|
])
|
|
2398
2402
|
]),
|
|
2399
2403
|
_: 1
|
|
2400
2404
|
}, 8, ["title"]));
|
|
2401
2405
|
}
|
|
2402
|
-
}),
|
|
2406
|
+
}), Yn = {
|
|
2403
2407
|
viewBox: "0 0 24 24",
|
|
2404
2408
|
width: "1.2em",
|
|
2405
2409
|
height: "1.2em"
|
|
2406
2410
|
};
|
|
2407
|
-
function
|
|
2408
|
-
return i(), y("svg",
|
|
2411
|
+
function Gn(t, s) {
|
|
2412
|
+
return i(), y("svg", Yn, s[0] || (s[0] = [
|
|
2409
2413
|
b("path", {
|
|
2410
2414
|
fill: "currentColor",
|
|
2411
2415
|
d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",
|
|
@@ -2425,7 +2429,7 @@ function Yn(t, s) {
|
|
|
2425
2429
|
], -1)
|
|
2426
2430
|
]));
|
|
2427
2431
|
}
|
|
2428
|
-
const ea = E({ name: "svg-spinners-90-ring-with-bg", render:
|
|
2432
|
+
const ea = E({ name: "svg-spinners-90-ring-with-bg", render: Gn }), ta = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, sa = { class: "sr-only" }, ra = /* @__PURE__ */ h({
|
|
2429
2433
|
__name: "ProgressBar",
|
|
2430
2434
|
props: {
|
|
2431
2435
|
filledClass: {},
|
|
@@ -2441,12 +2445,12 @@ const ea = E({ name: "svg-spinners-90-ring-with-bg", render: Yn }), ta = { class
|
|
|
2441
2445
|
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
|
|
2442
2446
|
},
|
|
2443
2447
|
{ immediate: !0 }
|
|
2444
|
-
),
|
|
2448
|
+
), we(() => s && s()), (a, u) => (i(), y("div", ta, [
|
|
2445
2449
|
b("div", {
|
|
2446
|
-
class:
|
|
2450
|
+
class: C(r.value),
|
|
2447
2451
|
style: Nt(`transform:translateX(-${(1 - n.value) * 100}%)`)
|
|
2448
2452
|
}, null, 6),
|
|
2449
|
-
b("span", sa,
|
|
2453
|
+
b("span", sa, x(a.$td("ui.progress", "{progress}% complete", {
|
|
2450
2454
|
progress: n.value * 100
|
|
2451
2455
|
})), 1)
|
|
2452
2456
|
]));
|
|
@@ -2470,7 +2474,7 @@ const aa = /* @__PURE__ */ h({
|
|
|
2470
2474
|
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: u } = na(e);
|
|
2471
2475
|
return s(), (o, p) => (i(), f(re, {
|
|
2472
2476
|
persistent: "",
|
|
2473
|
-
class:
|
|
2477
|
+
class: C(["flex", { "flex-col-reverse": l(u), "items-center justify-center gap-2": !l(u) }]),
|
|
2474
2478
|
"wrapper-class": "w-auto",
|
|
2475
2479
|
title: l(r),
|
|
2476
2480
|
"title-hidden": l(a)
|
|
@@ -2507,7 +2511,7 @@ const aa = /* @__PURE__ */ h({
|
|
|
2507
2511
|
label: c(() => t.label),
|
|
2508
2512
|
description: c(() => t.description),
|
|
2509
2513
|
value: c(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue),
|
|
2510
|
-
errors:
|
|
2514
|
+
errors: $e(a),
|
|
2511
2515
|
required: c(() => {
|
|
2512
2516
|
if (!(!t.name || !n))
|
|
2513
2517
|
return n.getFieldRules(t.name).includes("required");
|
|
@@ -2520,9 +2524,9 @@ const aa = /* @__PURE__ */ h({
|
|
|
2520
2524
|
r("update:modelValue", o);
|
|
2521
2525
|
}
|
|
2522
2526
|
};
|
|
2523
|
-
return de("input", u), s(u), (o, p) => (i(), f(
|
|
2527
|
+
return de("input", u), s(u), (o, p) => (i(), f(G(o.as), null, {
|
|
2524
2528
|
default: m(() => [
|
|
2525
|
-
|
|
2529
|
+
$(o.$slots, "default")
|
|
2526
2530
|
]),
|
|
2527
2531
|
_: 3
|
|
2528
2532
|
}));
|
|
@@ -2535,8 +2539,8 @@ const aa = /* @__PURE__ */ h({
|
|
|
2535
2539
|
key: 0,
|
|
2536
2540
|
for: l(s).id
|
|
2537
2541
|
}, [
|
|
2538
|
-
|
|
2539
|
-
L(
|
|
2542
|
+
$(n.$slots, "default", {}, () => [
|
|
2543
|
+
L(x(l(s).label), 1)
|
|
2540
2544
|
])
|
|
2541
2545
|
], 8, la)) : M("", !0);
|
|
2542
2546
|
}
|
|
@@ -2549,8 +2553,8 @@ const aa = /* @__PURE__ */ h({
|
|
|
2549
2553
|
const s = ee("$inputRef"), e = I("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = X("form", null), n = c(() => e.name ?? void 0), a = c(() => e.value), u = c(() => {
|
|
2550
2554
|
if (t.type)
|
|
2551
2555
|
return t.type;
|
|
2552
|
-
const
|
|
2553
|
-
return ["text", "email", "number", "tel", "url"].includes(
|
|
2556
|
+
const w = (n.value && (r == null ? void 0 : r.getFieldType(n.value))) ?? "";
|
|
2557
|
+
return ["text", "email", "number", "tel", "url"].includes(w) ? w : "text";
|
|
2554
2558
|
}), o = c(() => {
|
|
2555
2559
|
if (u.value === "checkbox")
|
|
2556
2560
|
return !!a.value;
|
|
@@ -2573,9 +2577,9 @@ const aa = /* @__PURE__ */ h({
|
|
|
2573
2577
|
}
|
|
2574
2578
|
}
|
|
2575
2579
|
return pt(e, () => {
|
|
2576
|
-
var
|
|
2577
|
-
return (
|
|
2578
|
-
}),
|
|
2580
|
+
var w;
|
|
2581
|
+
return (w = s.value) == null ? void 0 : w.focus();
|
|
2582
|
+
}), Y(() => {
|
|
2579
2583
|
if (s.value) {
|
|
2580
2584
|
if (u.value === "date" && a.value instanceof Date) {
|
|
2581
2585
|
s.value.valueAsDate = a.value;
|
|
@@ -2583,7 +2587,7 @@ const aa = /* @__PURE__ */ h({
|
|
|
2583
2587
|
}
|
|
2584
2588
|
s.value.value = a.value ?? null;
|
|
2585
2589
|
}
|
|
2586
|
-
}), (
|
|
2590
|
+
}), (w, v) => (i(), y("input", {
|
|
2587
2591
|
id: l(e).id,
|
|
2588
2592
|
ref: "$inputRef",
|
|
2589
2593
|
name: n.value,
|
|
@@ -2603,7 +2607,7 @@ const aa = /* @__PURE__ */ h({
|
|
|
2603
2607
|
"input",
|
|
2604
2608
|
"<HeadlessInputDescription> must be a child of a <HeadlessInput>"
|
|
2605
2609
|
), e = c(() => typeof s.description == "string" ? s.description : ""), r = c(() => !!s.description);
|
|
2606
|
-
return (n, a) =>
|
|
2610
|
+
return (n, a) => $(n.$slots, "default", {
|
|
2607
2611
|
id: `${l(s).id}-description`
|
|
2608
2612
|
}, () => [
|
|
2609
2613
|
r.value ? (i(), f(z, V({ key: 0 }, n.$attrs, {
|
|
@@ -2619,7 +2623,7 @@ const aa = /* @__PURE__ */ h({
|
|
|
2619
2623
|
return (r, n) => e.value ? (i(), y("p", {
|
|
2620
2624
|
key: 0,
|
|
2621
2625
|
id: `${l(s).id}-error`
|
|
2622
|
-
},
|
|
2626
|
+
}, x(e.value), 9, oa)) : M("", !0);
|
|
2623
2627
|
}
|
|
2624
2628
|
}), ua = {
|
|
2625
2629
|
key: 0,
|
|
@@ -2662,7 +2666,7 @@ const aa = /* @__PURE__ */ h({
|
|
|
2662
2666
|
return [
|
|
2663
2667
|
d(be, { class: "block text-sm leading-6 font-medium text-gray-900" }),
|
|
2664
2668
|
b("div", {
|
|
2665
|
-
class:
|
|
2669
|
+
class: C(a.value)
|
|
2666
2670
|
}, [
|
|
2667
2671
|
d(Lt, V(l(r), { class: u.value }), null, 16, ["class"]),
|
|
2668
2672
|
(g = e.value) != null && g.errors ? (i(), y("div", ua, [
|
|
@@ -2677,21 +2681,21 @@ const aa = /* @__PURE__ */ h({
|
|
|
2677
2681
|
}, 16, ["label", "class"]));
|
|
2678
2682
|
}
|
|
2679
2683
|
});
|
|
2680
|
-
function
|
|
2684
|
+
function Al(t, s = {}) {
|
|
2681
2685
|
return {
|
|
2682
2686
|
default: t,
|
|
2683
2687
|
type: "boolean",
|
|
2684
2688
|
rules: s.rules
|
|
2685
2689
|
};
|
|
2686
2690
|
}
|
|
2687
|
-
function
|
|
2691
|
+
function Pl(t, s = {}) {
|
|
2688
2692
|
return {
|
|
2689
2693
|
default: t,
|
|
2690
2694
|
type: "date",
|
|
2691
2695
|
rules: s.rules
|
|
2692
2696
|
};
|
|
2693
2697
|
}
|
|
2694
|
-
function
|
|
2698
|
+
function Dl(t, s, e = {}) {
|
|
2695
2699
|
return {
|
|
2696
2700
|
default: s,
|
|
2697
2701
|
type: "enum",
|
|
@@ -2699,21 +2703,21 @@ function Pl(t, s, e = {}) {
|
|
|
2699
2703
|
values: t
|
|
2700
2704
|
};
|
|
2701
2705
|
}
|
|
2702
|
-
function
|
|
2706
|
+
function jl(t) {
|
|
2703
2707
|
return {
|
|
2704
2708
|
default: t,
|
|
2705
2709
|
type: "boolean",
|
|
2706
2710
|
rules: "required"
|
|
2707
2711
|
};
|
|
2708
2712
|
}
|
|
2709
|
-
function
|
|
2713
|
+
function Bl(t) {
|
|
2710
2714
|
return {
|
|
2711
2715
|
default: t,
|
|
2712
2716
|
type: "date",
|
|
2713
2717
|
rules: "required"
|
|
2714
2718
|
};
|
|
2715
2719
|
}
|
|
2716
|
-
function
|
|
2720
|
+
function Fl(t, s) {
|
|
2717
2721
|
return {
|
|
2718
2722
|
default: s,
|
|
2719
2723
|
type: "enum",
|
|
@@ -2721,14 +2725,14 @@ function Bl(t, s) {
|
|
|
2721
2725
|
values: t
|
|
2722
2726
|
};
|
|
2723
2727
|
}
|
|
2724
|
-
function
|
|
2728
|
+
function Ul(t) {
|
|
2725
2729
|
return {
|
|
2726
2730
|
default: t,
|
|
2727
2731
|
type: "number",
|
|
2728
2732
|
rules: "required"
|
|
2729
2733
|
};
|
|
2730
2734
|
}
|
|
2731
|
-
function
|
|
2735
|
+
function Ol(t) {
|
|
2732
2736
|
return {
|
|
2733
2737
|
default: t,
|
|
2734
2738
|
type: "object",
|
|
@@ -2742,21 +2746,21 @@ function da(t) {
|
|
|
2742
2746
|
rules: "required"
|
|
2743
2747
|
};
|
|
2744
2748
|
}
|
|
2745
|
-
function
|
|
2749
|
+
function Nl(t, s = {}) {
|
|
2746
2750
|
return {
|
|
2747
2751
|
default: t,
|
|
2748
2752
|
type: "number",
|
|
2749
2753
|
rules: s.rules
|
|
2750
2754
|
};
|
|
2751
2755
|
}
|
|
2752
|
-
function
|
|
2756
|
+
function Wl(t, s = {}) {
|
|
2753
2757
|
return {
|
|
2754
2758
|
default: t,
|
|
2755
2759
|
type: "object",
|
|
2756
2760
|
rules: s.rules
|
|
2757
2761
|
};
|
|
2758
2762
|
}
|
|
2759
|
-
function
|
|
2763
|
+
function Kl(t, s = {}) {
|
|
2760
2764
|
return {
|
|
2761
2765
|
default: t,
|
|
2762
2766
|
type: "string",
|
|
@@ -2789,10 +2793,10 @@ const ma = { class: "mt-4 flex flex-row-reverse gap-2" }, fa = /* @__PURE__ */ h
|
|
|
2789
2793
|
title: l(n),
|
|
2790
2794
|
persistent: ""
|
|
2791
2795
|
}, {
|
|
2792
|
-
default: m(({ close:
|
|
2796
|
+
default: m(({ close: w }) => [
|
|
2793
2797
|
d(Vt, {
|
|
2794
2798
|
form: l(r),
|
|
2795
|
-
onSubmit: (v) =>
|
|
2799
|
+
onSubmit: (v) => w(l(r).draft)
|
|
2796
2800
|
}, {
|
|
2797
2801
|
default: m(() => [
|
|
2798
2802
|
l(a) ? (i(), f(z, {
|
|
@@ -2811,16 +2815,16 @@ const ma = { class: "mt-4 flex flex-row-reverse gap-2" }, fa = /* @__PURE__ */ h
|
|
|
2811
2815
|
submit: ""
|
|
2812
2816
|
}, {
|
|
2813
2817
|
default: m(() => [
|
|
2814
|
-
L(
|
|
2818
|
+
L(x(l(u)), 1)
|
|
2815
2819
|
]),
|
|
2816
2820
|
_: 1
|
|
2817
2821
|
}, 8, ["variant"]),
|
|
2818
2822
|
d(R, {
|
|
2819
2823
|
variant: p.cancelVariant,
|
|
2820
|
-
onClick: (v) =>
|
|
2824
|
+
onClick: (v) => w()
|
|
2821
2825
|
}, {
|
|
2822
2826
|
default: m(() => [
|
|
2823
|
-
L(
|
|
2827
|
+
L(x(l(o)), 1)
|
|
2824
2828
|
]),
|
|
2825
2829
|
_: 2
|
|
2826
2830
|
}, 1032, ["variant", "onClick"])
|
|
@@ -2858,26 +2862,26 @@ function ya(t, s) {
|
|
|
2858
2862
|
}, null, -1)
|
|
2859
2863
|
]));
|
|
2860
2864
|
}
|
|
2861
|
-
const
|
|
2865
|
+
const wa = E({ name: "material-symbols-delete-forever-rounded", render: ya }), $a = {
|
|
2862
2866
|
viewBox: "0 0 24 24",
|
|
2863
2867
|
width: "1.2em",
|
|
2864
2868
|
height: "1.2em"
|
|
2865
2869
|
};
|
|
2866
2870
|
function _a(t, s) {
|
|
2867
|
-
return i(), y("svg",
|
|
2871
|
+
return i(), y("svg", $a, s[0] || (s[0] = [
|
|
2868
2872
|
b("path", {
|
|
2869
2873
|
fill: "currentColor",
|
|
2870
2874
|
d: "M11.25 13.5q.95 0 1.6-.65t.65-1.6t-.65-1.6t-1.6-.65t-1.6.65t-.65 1.6t.65 1.6t1.6.65m4.825 4l-2.625-2.625q-.5.325-1.062.475t-1.138.15q-1.775 0-3.012-1.237T7 11.25t1.238-3.012T11.25 7t3.013 1.238T15.5 11.25q0 .575-.162 1.138t-.488 1.062l2.65 2.65zM5 21q-.825 0-1.412-.587T3 19v-4h2v4h4v2zm10 0v-2h4v-4h2v4q0 .825-.587 1.413T19 21zM3 9V5q0-.825.588-1.412T5 3h4v2H5v4zm16 0V5h-4V3h4q.825 0 1.413.588T21 5v4z"
|
|
2871
2875
|
}, null, -1)
|
|
2872
2876
|
]));
|
|
2873
2877
|
}
|
|
2874
|
-
const
|
|
2878
|
+
const xa = E({ name: "material-symbols-frame-inspect", render: _a }), Ca = {
|
|
2875
2879
|
viewBox: "0 0 24 24",
|
|
2876
2880
|
width: "1.2em",
|
|
2877
2881
|
height: "1.2em"
|
|
2878
2882
|
};
|
|
2879
2883
|
function ka(t, s) {
|
|
2880
|
-
return i(), y("svg",
|
|
2884
|
+
return i(), y("svg", Ca, s[0] || (s[0] = [
|
|
2881
2885
|
b("path", {
|
|
2882
2886
|
fill: "currentColor",
|
|
2883
2887
|
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"
|
|
@@ -2907,7 +2911,7 @@ Do you still want to proceed?`
|
|
|
2907
2911
|
return i(), y("div", Ta, [
|
|
2908
2912
|
b("div", Ma, [
|
|
2909
2913
|
d(n, { class: "size-20 text-red-600" }),
|
|
2910
|
-
b("h1", Ha,
|
|
2914
|
+
b("h1", Ha, x(e.$td("startupCrash.title", "Oops, something went wrong!")), 1),
|
|
2911
2915
|
d(z, {
|
|
2912
2916
|
text: e.$td(
|
|
2913
2917
|
"startupCrash.message",
|
|
@@ -2922,7 +2926,7 @@ Do you still want to proceed?`
|
|
|
2922
2926
|
}, {
|
|
2923
2927
|
default: m(() => [
|
|
2924
2928
|
d(l(Sa)),
|
|
2925
|
-
L(" " +
|
|
2929
|
+
L(" " + x(e.$td("startupCrash.reload", "Try again")), 1)
|
|
2926
2930
|
]),
|
|
2927
2931
|
_: 1
|
|
2928
2932
|
}),
|
|
@@ -2932,7 +2936,7 @@ Do you still want to proceed?`
|
|
|
2932
2936
|
}, {
|
|
2933
2937
|
default: m(() => [
|
|
2934
2938
|
d(l(va)),
|
|
2935
|
-
L(" " +
|
|
2939
|
+
L(" " + x(e.$td("startupCrash.inspect", "View error details")), 1)
|
|
2936
2940
|
]),
|
|
2937
2941
|
_: 1
|
|
2938
2942
|
}),
|
|
@@ -2941,8 +2945,8 @@ Do you still want to proceed?`
|
|
|
2941
2945
|
onClick: r[2] || (r[2] = (a) => s())
|
|
2942
2946
|
}, {
|
|
2943
2947
|
default: m(() => [
|
|
2944
|
-
d(l(
|
|
2945
|
-
L(" " +
|
|
2948
|
+
d(l(wa)),
|
|
2949
|
+
L(" " + x(e.$td("startupCrash.purge", "Purge device")), 1)
|
|
2946
2950
|
]),
|
|
2947
2951
|
_: 1
|
|
2948
2952
|
}),
|
|
@@ -2951,8 +2955,8 @@ Do you still want to proceed?`
|
|
|
2951
2955
|
onClick: r[3] || (r[3] = (a) => e.$errors.debug = !e.$errors.debug)
|
|
2952
2956
|
}, {
|
|
2953
2957
|
default: m(() => [
|
|
2954
|
-
d(l(
|
|
2955
|
-
L(" " +
|
|
2958
|
+
d(l(xa)),
|
|
2959
|
+
L(" " + x(e.$td("startupCrash.debug", "Toggle debugging")), 1)
|
|
2956
2960
|
]),
|
|
2957
2961
|
_: 1
|
|
2958
2962
|
})
|
|
@@ -2967,12 +2971,12 @@ Do you still want to proceed?`
|
|
|
2967
2971
|
action: {}
|
|
2968
2972
|
},
|
|
2969
2973
|
setup(t) {
|
|
2970
|
-
return (s, e) => (i(), f(
|
|
2974
|
+
return (s, e) => (i(), f(G(s.action.dismiss ? l(Ds) : "button"), {
|
|
2971
2975
|
type: "button",
|
|
2972
2976
|
onClick: s.action.click
|
|
2973
2977
|
}, {
|
|
2974
2978
|
default: m(() => [
|
|
2975
|
-
L(
|
|
2979
|
+
L(x(s.action.label), 1)
|
|
2976
2980
|
]),
|
|
2977
2981
|
_: 1
|
|
2978
2982
|
}, 8, ["onClick"]));
|
|
@@ -2987,8 +2991,8 @@ Do you still want to proceed?`
|
|
|
2987
2991
|
setup(t) {
|
|
2988
2992
|
return (s, e) => (i(), f(l(js), null, {
|
|
2989
2993
|
default: m(() => [
|
|
2990
|
-
|
|
2991
|
-
s.message ? (i(), y("span", La,
|
|
2994
|
+
$(s.$slots, "default", {}, () => [
|
|
2995
|
+
s.message ? (i(), y("span", La, x(s.message), 1)) : M("", !0),
|
|
2992
2996
|
(i(!0), y(D, null, U(s.actions, (r, n) => (i(), f(zt, {
|
|
2993
2997
|
key: n,
|
|
2994
2998
|
action: r
|
|
@@ -3014,7 +3018,8 @@ Do you still want to proceed?`
|
|
|
3014
3018
|
variants: {
|
|
3015
3019
|
variant: {
|
|
3016
3020
|
secondary: "bg-gray-900 text-white ring-black",
|
|
3017
|
-
danger: "bg-red-50 text-red-900 ring-red-100"
|
|
3021
|
+
danger: "bg-red-50 text-red-900 ring-red-100",
|
|
3022
|
+
warning: "bg-yellow-50 text-yellow-900 ring-yellow-100"
|
|
3018
3023
|
}
|
|
3019
3024
|
},
|
|
3020
3025
|
defaultVariants: {
|
|
@@ -3023,7 +3028,7 @@ Do you still want to proceed?`
|
|
|
3023
3028
|
}
|
|
3024
3029
|
));
|
|
3025
3030
|
return s(), (r, n) => (i(), f(Ra, {
|
|
3026
|
-
class:
|
|
3031
|
+
class: C(e.value)
|
|
3027
3032
|
}, {
|
|
3028
3033
|
default: m(() => [
|
|
3029
3034
|
r.message ? (i(), f(z, {
|
|
@@ -3045,7 +3050,7 @@ Do you still want to proceed?`
|
|
|
3045
3050
|
async install(t, s) {
|
|
3046
3051
|
const e = {
|
|
3047
3052
|
"alert-modal": gn,
|
|
3048
|
-
"confirm-modal":
|
|
3053
|
+
"confirm-modal": xn,
|
|
3049
3054
|
"error-report-modal": Xn,
|
|
3050
3055
|
"loading-modal": aa,
|
|
3051
3056
|
"prompt-modal": fa,
|
|
@@ -3060,10 +3065,10 @@ Do you still want to proceed?`
|
|
|
3060
3065
|
};
|
|
3061
3066
|
async function Aa(t, s = {}) {
|
|
3062
3067
|
var r;
|
|
3063
|
-
const e = [sn, yr, tn, Br,
|
|
3068
|
+
const e = [sn, yr, tn, Br, xr, qa, ...s.plugins ?? []];
|
|
3064
3069
|
A.instance = t, await tr(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await F.emit("application-ready");
|
|
3065
3070
|
}
|
|
3066
|
-
async function
|
|
3071
|
+
async function Ql(t, s = {}) {
|
|
3067
3072
|
var r;
|
|
3068
3073
|
const e = Kt(t);
|
|
3069
3074
|
J() && (window.$aerogel = e), await Aa(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await F.emit("application-mounted");
|
|
@@ -3073,7 +3078,7 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3073
3078
|
setup(t) {
|
|
3074
3079
|
return (s, e) => (i(), f(l(Bs), null, {
|
|
3075
3080
|
default: m(() => [
|
|
3076
|
-
(i(!0), y(D, null, U(s.$ui.toasts, (r) => (i(), f(
|
|
3081
|
+
(i(!0), y(D, null, U(s.$ui.toasts, (r) => (i(), f(G(r.component), V({
|
|
3077
3082
|
id: r.id,
|
|
3078
3083
|
key: r.id
|
|
3079
3084
|
}, { ref_for: !0 }, r.properties), null, 16, ["id"]))), 128)),
|
|
@@ -3090,13 +3095,13 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3090
3095
|
d(Pa)
|
|
3091
3096
|
], 64));
|
|
3092
3097
|
}
|
|
3093
|
-
}), ja = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" },
|
|
3098
|
+
}), ja = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Jl = /* @__PURE__ */ h({
|
|
3094
3099
|
__name: "AppLayout",
|
|
3095
3100
|
setup(t) {
|
|
3096
3101
|
return (s, e) => (i(), y("div", ja, [
|
|
3097
|
-
s.$errors.hasStartupErrors ?
|
|
3098
|
-
(i(), f(
|
|
3099
|
-
]) :
|
|
3102
|
+
s.$errors.hasStartupErrors ? $(s.$slots, "startup-crash", { key: 0 }, () => [
|
|
3103
|
+
(i(), f(G(s.$ui.requireComponent("startup-crash"))))
|
|
3104
|
+
]) : $(s.$slots, "default", { key: 1 }),
|
|
3100
3105
|
d(Da)
|
|
3101
3106
|
]));
|
|
3102
3107
|
}
|
|
@@ -3124,20 +3129,35 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3124
3129
|
onInput: a
|
|
3125
3130
|
}, null, 40, Ba));
|
|
3126
3131
|
}
|
|
3127
|
-
}), Ua = { class: "group" }, Oa = { class: "-ml-2 flex w-[max-content] items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, Na = { class: "pt-2 pl-4" },
|
|
3128
|
-
__name: "
|
|
3132
|
+
}), Ua = { class: "group" }, Oa = { class: "-ml-2 flex w-[max-content] items-center rounded-lg py-2 pr-3 pl-1 hover:bg-gray-100 focus-visible:outline focus-visible:outline-gray-700" }, Na = { class: "pt-2 pl-4" }, Wa = /* @__PURE__ */ h({
|
|
3133
|
+
__name: "Details",
|
|
3134
|
+
props: {
|
|
3135
|
+
label: {}
|
|
3136
|
+
},
|
|
3129
3137
|
setup(t) {
|
|
3130
3138
|
return (s, e) => (i(), y("details", Ua, [
|
|
3131
3139
|
b("summary", Oa, [
|
|
3132
3140
|
d(l(Et), { class: "size-6 transition-transform group-open:rotate-90" }),
|
|
3133
|
-
b("span", null,
|
|
3141
|
+
b("span", null, x(s.label), 1)
|
|
3134
3142
|
]),
|
|
3135
3143
|
b("div", Na, [
|
|
3136
|
-
|
|
3144
|
+
$(s.$slots, "default")
|
|
3137
3145
|
])
|
|
3138
3146
|
]));
|
|
3139
3147
|
}
|
|
3140
|
-
}),
|
|
3148
|
+
}), Zl = /* @__PURE__ */ h({
|
|
3149
|
+
__name: "AdvancedOptions",
|
|
3150
|
+
setup(t) {
|
|
3151
|
+
return (s, e) => (i(), f(Wa, {
|
|
3152
|
+
label: s.$td("ui.advancedOptions", "Advanced options")
|
|
3153
|
+
}, {
|
|
3154
|
+
default: m(() => [
|
|
3155
|
+
$(s.$slots, "default")
|
|
3156
|
+
]),
|
|
3157
|
+
_: 3
|
|
3158
|
+
}, 8, ["label"]));
|
|
3159
|
+
}
|
|
3160
|
+
}), Ka = { class: "flex h-6 items-center" }, Xl = /* @__PURE__ */ h({
|
|
3141
3161
|
inheritAttrs: !1,
|
|
3142
3162
|
__name: "Checkbox",
|
|
3143
3163
|
props: {
|
|
@@ -3165,10 +3185,10 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3165
3185
|
ref: "$inputRef",
|
|
3166
3186
|
class: a.value
|
|
3167
3187
|
}, s, {
|
|
3168
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
3188
|
+
"onUpdate:modelValue": g[0] || (g[0] = (w) => p.$emit("update:modelValue", w))
|
|
3169
3189
|
}), {
|
|
3170
3190
|
default: m(() => [
|
|
3171
|
-
b("div",
|
|
3191
|
+
b("div", Ka, [
|
|
3172
3192
|
d(Lt, V(l(r), {
|
|
3173
3193
|
type: "checkbox",
|
|
3174
3194
|
class: u.value
|
|
@@ -3176,18 +3196,18 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3176
3196
|
]),
|
|
3177
3197
|
p.$slots.default ? (i(), y("div", {
|
|
3178
3198
|
key: 0,
|
|
3179
|
-
class:
|
|
3199
|
+
class: C(o.value)
|
|
3180
3200
|
}, [
|
|
3181
3201
|
d(be, { class: "text-gray-900" }, {
|
|
3182
3202
|
default: m(() => [
|
|
3183
|
-
|
|
3203
|
+
$(p.$slots, "default")
|
|
3184
3204
|
]),
|
|
3185
3205
|
_: 3
|
|
3186
3206
|
}),
|
|
3187
3207
|
d(ye, { class: "text-red-600" })
|
|
3188
3208
|
], 2)) : p.label ? (i(), y("div", {
|
|
3189
3209
|
key: 1,
|
|
3190
|
-
class:
|
|
3210
|
+
class: C(o.value)
|
|
3191
3211
|
}, [
|
|
3192
3212
|
d(be, { class: "text-gray-900" }),
|
|
3193
3213
|
d(ye, { class: "text-red-600" })
|
|
@@ -3196,7 +3216,7 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3196
3216
|
_: 3
|
|
3197
3217
|
}, 16, ["class"]));
|
|
3198
3218
|
}
|
|
3199
|
-
}),
|
|
3219
|
+
}), Qa = /* @__PURE__ */ h({
|
|
3200
3220
|
__name: "DropdownMenuOption",
|
|
3201
3221
|
props: {
|
|
3202
3222
|
class: {},
|
|
@@ -3213,12 +3233,12 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3213
3233
|
onSelect: n[0] || (n[0] = (a) => r.$emit("select"))
|
|
3214
3234
|
}), {
|
|
3215
3235
|
default: m(() => [
|
|
3216
|
-
|
|
3236
|
+
$(r.$slots, "default")
|
|
3217
3237
|
]),
|
|
3218
3238
|
_: 3
|
|
3219
3239
|
}, 16, ["class"]));
|
|
3220
3240
|
}
|
|
3221
|
-
}),
|
|
3241
|
+
}), Ja = /* @__PURE__ */ h({
|
|
3222
3242
|
__name: "DropdownMenuOptions",
|
|
3223
3243
|
setup(t) {
|
|
3224
3244
|
const s = I(
|
|
@@ -3231,11 +3251,11 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3231
3251
|
side: l(s).side
|
|
3232
3252
|
}, {
|
|
3233
3253
|
default: m(() => [
|
|
3234
|
-
|
|
3235
|
-
(i(!0), y(D, null, U(l(s).options, (n, a) => (i(), f(
|
|
3254
|
+
$(e.$slots, "default", {}, () => [
|
|
3255
|
+
(i(!0), y(D, null, U(l(s).options, (n, a) => (i(), f(Qa, V(
|
|
3236
3256
|
{
|
|
3237
3257
|
key: a,
|
|
3238
|
-
as: n.route || n.href ?
|
|
3258
|
+
as: n.route || n.href ? wt : void 0,
|
|
3239
3259
|
class: n.class
|
|
3240
3260
|
},
|
|
3241
3261
|
{ ref_for: !0 },
|
|
@@ -3253,7 +3273,7 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3253
3273
|
}
|
|
3254
3274
|
), {
|
|
3255
3275
|
default: m(() => [
|
|
3256
|
-
L(
|
|
3276
|
+
L(x(n.label), 1)
|
|
3257
3277
|
]),
|
|
3258
3278
|
_: 2
|
|
3259
3279
|
}, 1040, ["as", "class", "onSelect"]))), 128))
|
|
@@ -3262,7 +3282,7 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3262
3282
|
_: 3
|
|
3263
3283
|
}, 8, ["align", "side"]));
|
|
3264
3284
|
}
|
|
3265
|
-
}),
|
|
3285
|
+
}), Yl = /* @__PURE__ */ h({
|
|
3266
3286
|
__name: "DropdownMenu",
|
|
3267
3287
|
props: {
|
|
3268
3288
|
align: {},
|
|
@@ -3282,14 +3302,14 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3282
3302
|
default: m(() => [
|
|
3283
3303
|
d(l(Ws), null, {
|
|
3284
3304
|
default: m(() => [
|
|
3285
|
-
|
|
3305
|
+
$(r.$slots, "default")
|
|
3286
3306
|
]),
|
|
3287
3307
|
_: 3
|
|
3288
3308
|
}),
|
|
3289
3309
|
d(l(Ks), null, {
|
|
3290
3310
|
default: m(() => [
|
|
3291
|
-
|
|
3292
|
-
d(
|
|
3311
|
+
$(r.$slots, "options", {}, () => [
|
|
3312
|
+
d(Ja)
|
|
3293
3313
|
])
|
|
3294
3314
|
]),
|
|
3295
3315
|
_: 3
|
|
@@ -3298,7 +3318,7 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3298
3318
|
_: 3
|
|
3299
3319
|
}));
|
|
3300
3320
|
}
|
|
3301
|
-
}),
|
|
3321
|
+
}), Za = ["aria-hidden"], Xa = ["tabindex", "aria-label", "type"], Gl = /* @__PURE__ */ h({
|
|
3302
3322
|
__name: "EditableContent",
|
|
3303
3323
|
props: {
|
|
3304
3324
|
type: { default: "text" },
|
|
@@ -3315,24 +3335,24 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3315
3335
|
function g() {
|
|
3316
3336
|
n.value = t.text;
|
|
3317
3337
|
}
|
|
3318
|
-
function
|
|
3338
|
+
function w() {
|
|
3319
3339
|
n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
|
|
3320
3340
|
}
|
|
3321
|
-
return
|
|
3322
|
-
class:
|
|
3341
|
+
return Y(() => a.value = t.text), (v, S) => (i(), y("div", {
|
|
3342
|
+
class: C(["relative", { "pointer-events-none!": v.disabled && !n.value }])
|
|
3323
3343
|
}, [
|
|
3324
3344
|
n.value ? (i(), y("span", {
|
|
3325
3345
|
key: 1,
|
|
3326
|
-
class:
|
|
3327
|
-
},
|
|
3346
|
+
class: C(o.value)
|
|
3347
|
+
}, x(a.value), 3)) : (i(), y("div", {
|
|
3328
3348
|
key: 0,
|
|
3329
|
-
class:
|
|
3349
|
+
class: C(u.value)
|
|
3330
3350
|
}, [
|
|
3331
|
-
|
|
3351
|
+
$(v.$slots, "default")
|
|
3332
3352
|
], 2)),
|
|
3333
3353
|
v.type === "number" ? (i(), y("span", {
|
|
3334
3354
|
key: 2,
|
|
3335
|
-
class:
|
|
3355
|
+
class: C(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
|
|
3336
3356
|
}, null, 2)) : M("", !0),
|
|
3337
3357
|
b("form", {
|
|
3338
3358
|
class: "w-full",
|
|
@@ -3348,46 +3368,46 @@ const Pa = /* @__PURE__ */ h({
|
|
|
3348
3368
|
tabindex: v.tabindex ?? void 0,
|
|
3349
3369
|
"aria-label": v.ariaLabel ?? void 0,
|
|
3350
3370
|
type: v.type,
|
|
3351
|
-
class:
|
|
3371
|
+
class: C([
|
|
3352
3372
|
p.value,
|
|
3353
3373
|
{ "opacity-0": !n.value, "appearance-textfield": !n.value && v.type === "number" }
|
|
3354
3374
|
]),
|
|
3355
3375
|
onKeyup: S[1] || (S[1] = (q) => v.$emit("update", a.value)),
|
|
3356
3376
|
onFocus: S[2] || (S[2] = (q) => g()),
|
|
3357
|
-
onBlur: S[3] || (S[3] = (q) =>
|
|
3358
|
-
}, null, 42,
|
|
3377
|
+
onBlur: S[3] || (S[3] = (q) => w())
|
|
3378
|
+
}, null, 42, Xa), [
|
|
3359
3379
|
[Qt, a.value]
|
|
3360
3380
|
])
|
|
3361
|
-
], 40,
|
|
3381
|
+
], 40, Za)
|
|
3362
3382
|
], 2));
|
|
3363
3383
|
}
|
|
3364
|
-
}),
|
|
3384
|
+
}), Ya = {
|
|
3365
3385
|
viewBox: "0 0 512 512",
|
|
3366
3386
|
width: "1.2em",
|
|
3367
3387
|
height: "1.2em"
|
|
3368
3388
|
};
|
|
3369
3389
|
function Ga(t, s) {
|
|
3370
|
-
return i(), y("svg",
|
|
3390
|
+
return i(), y("svg", Ya, s[0] || (s[0] = [
|
|
3371
3391
|
b("path", {
|
|
3372
3392
|
fill: "currentColor",
|
|
3373
3393
|
d: "M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0 0 80 446.25h340.89a32 32 0 0 0 28.18-47.17m-198.6-1.83a20 20 0 1 1 20-20a20 20 0 0 1-20 20m21.72-201.15l-5.74 122a16 16 0 0 1-32 0l-5.74-121.95a21.73 21.73 0 0 1 21.5-22.69h.21a21.74 21.74 0 0 1 21.73 22.7Z"
|
|
3374
3394
|
}, null, -1)
|
|
3375
3395
|
]));
|
|
3376
3396
|
}
|
|
3377
|
-
const
|
|
3397
|
+
const el = E({ name: "ion-warning", render: Ga }), tl = {
|
|
3378
3398
|
viewBox: "0 0 20 20",
|
|
3379
3399
|
width: "1.2em",
|
|
3380
3400
|
height: "1.2em"
|
|
3381
3401
|
};
|
|
3382
|
-
function
|
|
3383
|
-
return i(), y("svg",
|
|
3402
|
+
function sl(t, s) {
|
|
3403
|
+
return i(), y("svg", tl, s[0] || (s[0] = [
|
|
3384
3404
|
b("path", {
|
|
3385
3405
|
fill: "currentColor",
|
|
3386
3406
|
d: "M.2 10a11 11 0 0 1 19.6 0A11 11 0 0 1 .2 10m9.8 4a4 4 0 1 0 0-8a4 4 0 0 0 0 8m0-2a2 2 0 1 1 0-4a2 2 0 0 1 0 4"
|
|
3387
3407
|
}, null, -1)
|
|
3388
3408
|
]));
|
|
3389
3409
|
}
|
|
3390
|
-
const
|
|
3410
|
+
const rl = E({ name: "zondicons-view-show", render: sl }), nl = { class: "font-medium" }, al = ["datetime"], ll = /* @__PURE__ */ h({
|
|
3391
3411
|
__name: "ErrorLogsModal",
|
|
3392
3412
|
setup(t) {
|
|
3393
3413
|
return (s, e) => (i(), f(re, {
|
|
@@ -3400,11 +3420,11 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3400
3420
|
class: "mb-2 flex max-w-prose min-w-56 justify-between py-2 last:mb-0"
|
|
3401
3421
|
}, [
|
|
3402
3422
|
b("div", null, [
|
|
3403
|
-
b("h3",
|
|
3423
|
+
b("h3", nl, x(r.report.title), 1),
|
|
3404
3424
|
b("time", {
|
|
3405
3425
|
datetime: r.date.toISOString(),
|
|
3406
3426
|
class: "text-xs text-gray-700"
|
|
3407
|
-
},
|
|
3427
|
+
}, x(r.date.toLocaleTimeString()), 9, al),
|
|
3408
3428
|
d(z, {
|
|
3409
3429
|
class: "text-sm text-gray-500",
|
|
3410
3430
|
text: r.report.description ?? l(Ht)(r.report)
|
|
@@ -3422,7 +3442,7 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3422
3442
|
)
|
|
3423
3443
|
}, {
|
|
3424
3444
|
default: m(() => [
|
|
3425
|
-
d(l(
|
|
3445
|
+
d(l(rl), {
|
|
3426
3446
|
class: "size-4",
|
|
3427
3447
|
"aria-hidden": "true"
|
|
3428
3448
|
})
|
|
@@ -3435,7 +3455,7 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3435
3455
|
_: 1
|
|
3436
3456
|
}, 8, ["title"]));
|
|
3437
3457
|
}
|
|
3438
|
-
}),
|
|
3458
|
+
}), ei = /* @__PURE__ */ h({
|
|
3439
3459
|
__name: "ErrorLogs",
|
|
3440
3460
|
setup(t) {
|
|
3441
3461
|
return (s, e) => s.$errors.logs.length > 0 ? (i(), f(R, {
|
|
@@ -3444,15 +3464,15 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3444
3464
|
variant: "ghost",
|
|
3445
3465
|
title: s.$td("errors.viewLogs", "View error logs"),
|
|
3446
3466
|
"aria-label": s.$td("errors.viewLogs", "View error logs"),
|
|
3447
|
-
onClick: e[0] || (e[0] = (r) => s.$ui.modal(
|
|
3467
|
+
onClick: e[0] || (e[0] = (r) => s.$ui.modal(ll))
|
|
3448
3468
|
}, {
|
|
3449
3469
|
default: m(() => [
|
|
3450
|
-
d(l(
|
|
3470
|
+
d(l(el), { class: "size-6 text-red-500" })
|
|
3451
3471
|
]),
|
|
3452
3472
|
_: 1
|
|
3453
3473
|
}, 8, ["title", "aria-label"])) : M("", !0);
|
|
3454
3474
|
}
|
|
3455
|
-
}),
|
|
3475
|
+
}), ti = /* @__PURE__ */ h({
|
|
3456
3476
|
__name: "ErrorMessage",
|
|
3457
3477
|
props: {
|
|
3458
3478
|
error: {}
|
|
@@ -3464,7 +3484,7 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3464
3484
|
inline: ""
|
|
3465
3485
|
}, null, 8, ["text"]));
|
|
3466
3486
|
}
|
|
3467
|
-
}),
|
|
3487
|
+
}), si = /* @__PURE__ */ h({
|
|
3468
3488
|
__name: "Link",
|
|
3469
3489
|
props: {
|
|
3470
3490
|
class: {},
|
|
@@ -3481,12 +3501,12 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3481
3501
|
setup(t) {
|
|
3482
3502
|
return (s, e) => (i(), f(R, V({ variant: "link" }, s.$props), {
|
|
3483
3503
|
default: m(() => [
|
|
3484
|
-
|
|
3504
|
+
$(s.$slots, "default")
|
|
3485
3505
|
]),
|
|
3486
3506
|
_: 3
|
|
3487
3507
|
}, 16));
|
|
3488
3508
|
}
|
|
3489
|
-
}),
|
|
3509
|
+
}), ri = /* @__PURE__ */ h({
|
|
3490
3510
|
__name: "SettingsModal",
|
|
3491
3511
|
setup(t) {
|
|
3492
3512
|
const s = c(() => as(A.settings, "priority", "desc"));
|
|
@@ -3494,15 +3514,15 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3494
3514
|
title: e.$td("settings.title", "Settings")
|
|
3495
3515
|
}, {
|
|
3496
3516
|
default: m(() => [
|
|
3497
|
-
(i(!0), y(D, null, U(s.value, (n, a) => (i(), f(
|
|
3517
|
+
(i(!0), y(D, null, U(s.value, (n, a) => (i(), f(G(n.component), { key: a }))), 128))
|
|
3498
3518
|
]),
|
|
3499
3519
|
_: 1
|
|
3500
3520
|
}, 8, ["title"]));
|
|
3501
3521
|
}
|
|
3502
|
-
}),
|
|
3522
|
+
}), il = {
|
|
3503
3523
|
key: 0,
|
|
3504
3524
|
class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
|
|
3505
|
-
},
|
|
3525
|
+
}, ni = /* @__PURE__ */ h({
|
|
3506
3526
|
inheritAttrs: !1,
|
|
3507
3527
|
__name: "TextArea",
|
|
3508
3528
|
props: {
|
|
@@ -3540,10 +3560,10 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3540
3560
|
return [
|
|
3541
3561
|
d(be, { class: "block text-sm leading-6 font-medium text-gray-900" }),
|
|
3542
3562
|
b("div", {
|
|
3543
|
-
class:
|
|
3563
|
+
class: C(a.value)
|
|
3544
3564
|
}, [
|
|
3545
3565
|
d(Fa, V(l(r), { class: u.value }), null, 16, ["class"]),
|
|
3546
|
-
(g = e.value) != null && g.errors ? (i(), y("div",
|
|
3566
|
+
(g = e.value) != null && g.errors ? (i(), y("div", il, [
|
|
3547
3567
|
d(l(De), { class: "size-5 text-red-500" })
|
|
3548
3568
|
])) : M("", !0)
|
|
3549
3569
|
], 2),
|
|
@@ -3555,7 +3575,7 @@ const sl = E({ name: "zondicons-view-show", render: tl }), rl = { class: "font-m
|
|
|
3555
3575
|
}, 16, ["label", "class"]));
|
|
3556
3576
|
}
|
|
3557
3577
|
});
|
|
3558
|
-
class
|
|
3578
|
+
class ai {
|
|
3559
3579
|
constructor() {
|
|
3560
3580
|
_(this, "status");
|
|
3561
3581
|
_(this, "_listeners");
|
|
@@ -3570,7 +3590,7 @@ class ni {
|
|
|
3570
3590
|
try {
|
|
3571
3591
|
await this.updateProgress(), await this.run(), await this.updateProgress(), this._completed.resolve();
|
|
3572
3592
|
} catch (s) {
|
|
3573
|
-
if (s instanceof
|
|
3593
|
+
if (s instanceof Ge)
|
|
3574
3594
|
return;
|
|
3575
3595
|
throw te(is(s), (e) => {
|
|
3576
3596
|
this._completed.reject(e);
|
|
@@ -3613,7 +3633,7 @@ class ni {
|
|
|
3613
3633
|
}
|
|
3614
3634
|
assertNotCancelled() {
|
|
3615
3635
|
if (this._cancelled)
|
|
3616
|
-
throw this._cancelled.resolve(), new
|
|
3636
|
+
throw this._cancelled.resolve(), new Ge();
|
|
3617
3637
|
}
|
|
3618
3638
|
calculateCurrentProgress(s) {
|
|
3619
3639
|
return s ?? (s = this.status), s.completed ? 1 : s.children ? os(
|
|
@@ -3630,39 +3650,40 @@ class ni {
|
|
|
3630
3650
|
return { ...s };
|
|
3631
3651
|
}
|
|
3632
3652
|
}
|
|
3633
|
-
async function
|
|
3653
|
+
async function li(t) {
|
|
3634
3654
|
await t.start();
|
|
3635
3655
|
}
|
|
3636
3656
|
export {
|
|
3637
|
-
|
|
3657
|
+
Zl as AdvancedOptions,
|
|
3638
3658
|
gn as AlertModal,
|
|
3639
3659
|
A as App,
|
|
3640
|
-
|
|
3660
|
+
Jl as AppLayout,
|
|
3641
3661
|
Da as AppOverlays,
|
|
3642
3662
|
er as AppService,
|
|
3643
3663
|
Pa as AppToasts,
|
|
3644
3664
|
R as Button,
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
Qa as
|
|
3665
|
+
zl as Cache,
|
|
3666
|
+
wr as CacheService,
|
|
3667
|
+
Xl as Checkbox,
|
|
3668
|
+
xn as ConfirmModal,
|
|
3669
|
+
Wa as Details,
|
|
3670
|
+
Yl as DropdownMenu,
|
|
3671
|
+
Qa as DropdownMenuOption,
|
|
3672
|
+
Ja as DropdownMenuOptions,
|
|
3652
3673
|
Gl as EditableContent,
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3674
|
+
ei as ErrorLogs,
|
|
3675
|
+
ll as ErrorLogsModal,
|
|
3676
|
+
ti as ErrorMessage,
|
|
3656
3677
|
Xn as ErrorReportModal,
|
|
3657
3678
|
Fn as ErrorReportModalButtons,
|
|
3658
3679
|
Un as ErrorReportModalTitle,
|
|
3659
3680
|
yt as Errors,
|
|
3660
|
-
|
|
3681
|
+
_l as EventListenerPriorities,
|
|
3661
3682
|
F as Events,
|
|
3662
|
-
|
|
3683
|
+
Ys as EventsService,
|
|
3663
3684
|
Vt as Form,
|
|
3664
3685
|
cr as FormController,
|
|
3665
|
-
|
|
3686
|
+
wt as HeadlessButton,
|
|
3666
3687
|
je as HeadlessInput,
|
|
3667
3688
|
Rt as HeadlessInputDescription,
|
|
3668
3689
|
ye as HeadlessInputError,
|
|
@@ -3676,101 +3697,101 @@ export {
|
|
|
3676
3697
|
dn as HeadlessModalTitle,
|
|
3677
3698
|
Lr as HeadlessSelect,
|
|
3678
3699
|
Xe as HeadlessSelectLabel,
|
|
3679
|
-
|
|
3680
|
-
|
|
3700
|
+
xt as HeadlessSelectOption,
|
|
3701
|
+
Ct as HeadlessSelectOptions,
|
|
3681
3702
|
_t as HeadlessSelectTrigger,
|
|
3682
|
-
|
|
3703
|
+
$t as HeadlessSelectValue,
|
|
3683
3704
|
Qr as HeadlessSwitch,
|
|
3684
3705
|
Ra as HeadlessToast,
|
|
3685
3706
|
ca as Input,
|
|
3686
|
-
|
|
3687
|
-
|
|
3707
|
+
ai as Job,
|
|
3708
|
+
Ge as JobCancelledError,
|
|
3688
3709
|
Z as Lang,
|
|
3689
3710
|
ve as Layouts,
|
|
3690
|
-
|
|
3711
|
+
si as Link,
|
|
3691
3712
|
aa as LoadingModal,
|
|
3692
3713
|
gt as MOBILE_BREAKPOINT,
|
|
3693
3714
|
z as Markdown,
|
|
3694
3715
|
re as Modal,
|
|
3695
|
-
|
|
3696
|
-
|
|
3716
|
+
ui as ModalComponent,
|
|
3717
|
+
ci as ModalsPortal,
|
|
3697
3718
|
ra as ProgressBar,
|
|
3698
3719
|
fa as PromptModal,
|
|
3699
3720
|
qr as Select,
|
|
3700
3721
|
kt as SelectLabel,
|
|
3701
|
-
|
|
3722
|
+
Ye as SelectOption,
|
|
3702
3723
|
St as SelectOptions,
|
|
3703
3724
|
Tt as SelectTrigger,
|
|
3704
|
-
|
|
3725
|
+
Ce as Service,
|
|
3705
3726
|
Ee as ServiceBootError,
|
|
3706
3727
|
Wr as Setting,
|
|
3707
|
-
|
|
3728
|
+
ri as SettingsModal,
|
|
3708
3729
|
Ea as StartupCrash,
|
|
3709
3730
|
ht as Storage,
|
|
3710
3731
|
Jr as Switch,
|
|
3711
|
-
|
|
3732
|
+
ni as TextArea,
|
|
3712
3733
|
za as Toast,
|
|
3713
3734
|
P as UI,
|
|
3714
3735
|
kr as UIService,
|
|
3715
|
-
|
|
3736
|
+
Ml as __valueType,
|
|
3716
3737
|
br as aerogelDirectives,
|
|
3717
3738
|
Qs as appNamespace,
|
|
3718
|
-
|
|
3739
|
+
Al as booleanInput,
|
|
3719
3740
|
ke as bootServices,
|
|
3720
|
-
|
|
3741
|
+
Ql as bootstrap,
|
|
3721
3742
|
Aa as bootstrapApplication,
|
|
3722
3743
|
H as classes,
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3744
|
+
di as closeModal,
|
|
3745
|
+
El as computedAsync,
|
|
3746
|
+
Ll as computedDebounce,
|
|
3747
|
+
pi as createModal,
|
|
3748
|
+
Pl as dateInput,
|
|
3749
|
+
kl as defineDirective,
|
|
3750
|
+
Tl as defineFormValidationRule,
|
|
3730
3751
|
Cl as definePlugin,
|
|
3731
|
-
|
|
3752
|
+
xe as defineServiceState,
|
|
3732
3753
|
Xs as defineServiceStore,
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3754
|
+
xl as defineSettings,
|
|
3755
|
+
li as dispatch,
|
|
3756
|
+
Dl as enumInput,
|
|
3736
3757
|
vt as getCurrentLayout,
|
|
3737
3758
|
Ht as getErrorMessage,
|
|
3738
3759
|
hr as getMarkdownRouter,
|
|
3739
3760
|
Zs as getPiniaStore,
|
|
3740
3761
|
Er as hasSelectOptionLabel,
|
|
3741
|
-
|
|
3762
|
+
mi as injectModal,
|
|
3742
3763
|
nr as injectOrFail,
|
|
3743
3764
|
rr as injectReactive,
|
|
3744
3765
|
I as injectReactiveOrFail,
|
|
3745
3766
|
tr as installPlugins,
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3767
|
+
fi as modals,
|
|
3768
|
+
Nl as numberInput,
|
|
3769
|
+
Wl as objectInput,
|
|
3770
|
+
Hl as onCleanMounted,
|
|
3750
3771
|
pt as onFormFocus,
|
|
3751
|
-
|
|
3772
|
+
Vl as persistent,
|
|
3752
3773
|
dr as reactiveSet,
|
|
3753
|
-
|
|
3774
|
+
ql as registerErrorHandler,
|
|
3754
3775
|
gr as renderMarkdown,
|
|
3755
3776
|
ct as renderVNode,
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3777
|
+
Il as replaceExisting,
|
|
3778
|
+
jl as requiredBooleanInput,
|
|
3779
|
+
Bl as requiredDateInput,
|
|
3780
|
+
Fl as requiredEnumInput,
|
|
3781
|
+
Ul as requiredNumberInput,
|
|
3782
|
+
Ol as requiredObjectInput,
|
|
3762
3783
|
da as requiredStringInput,
|
|
3763
3784
|
Js as resetPiniaStore,
|
|
3764
3785
|
ft as safeHtml,
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3786
|
+
Rl as setMarkdownRouter,
|
|
3787
|
+
hi as showModal,
|
|
3788
|
+
Kl as stringInput,
|
|
3768
3789
|
bt as translate,
|
|
3769
3790
|
k as translateWithDefault,
|
|
3770
3791
|
hn as useAlertModal,
|
|
3771
3792
|
vn as useConfirmModal,
|
|
3772
3793
|
On as useErrorReportModal,
|
|
3773
|
-
|
|
3794
|
+
Sl as useEvent,
|
|
3774
3795
|
mt as useForm,
|
|
3775
3796
|
Ae as useInputAttrs,
|
|
3776
3797
|
na as useLoadingModal,
|