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