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