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