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