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