@aerogel/core 0.0.0-next.d197d66a9d339318d752a1d8a96b2919faba3003 → 0.0.0-next.d4f3ae130b52cace673d7c95681c19256ee1acb4
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.css +1 -0
- package/dist/aerogel-core.d.ts +30 -20
- package/dist/aerogel-core.js +849 -830
- package/dist/aerogel-core.js.map +1 -1
- package/package.json +2 -2
- package/src/components/contracts/AlertModal.ts +11 -0
- package/src/components/contracts/ConfirmModal.ts +3 -1
- package/src/components/ui/AdvancedOptions.vue +1 -1
- package/src/components/ui/AlertModal.vue +5 -2
- package/src/components/ui/Button.vue +11 -9
- package/src/components/ui/ConfirmModal.vue +7 -2
- package/src/components/ui/ErrorReportModal.vue +6 -1
- package/src/components/ui/Markdown.vue +16 -0
- package/src/components/ui/Modal.vue +4 -3
- package/src/components/ui/SelectOptions.vue +2 -2
- package/src/components/ui/Toast.vue +16 -14
- package/src/directives/measure.ts +11 -5
- package/src/index.css +3 -2
- package/src/utils/classes.ts +9 -17
- package/src/utils/vue.ts +6 -1
package/dist/aerogel-core.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
var bt = Object.defineProperty;
|
|
2
2
|
var yt = (t, s, e) => s in t ? bt(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
|
-
var
|
|
4
|
-
import { markRaw as
|
|
5
|
-
import { JSError as
|
|
3
|
+
var $ = (t, s, e) => yt(t, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { markRaw as A, Comment as _t, Text as wt, Static as $t, inject as oe, reactive as ue, nextTick as De, defineComponent as h, useAttrs as Be, useSlots as ke, computed as u, createBlock as m, openBlock as c, h as xt, unref as l, mergeProps as R, withCtx as p, renderSlot as w, createPropsRestProxy as Y, onUnmounted as pe, ref as q, readonly as Me, onMounted as Ct, watch as He, toRaw as St, watchEffect as ie, createVNode as f, normalizeProps as ee, guardReactiveProps as te, createTextVNode as V, toDisplayString as k, normalizeClass as S, createElementBlock as b, Fragment as B, renderList as F, provide as se, resolveDynamicComponent as N, createCommentVNode as M, createElementVNode as _, toRef as Le, useTemplateRef as re, withModifiers as qe, withDirectives as Fe, vModelCheckbox as kt, normalizeStyle as Mt, createApp as Ht, vModelText as Et } from "vue";
|
|
5
|
+
import { JSError as me, tap as Z, MagicObject as Ue, PromisedValue as K, Storage as U, objectOnly as ae, arrayFrom as Oe, isEmpty as ve, objectDeepClone as It, fail as Q, facade as G, arrayRemove as _e, getEnv as Tt, updateLocationQueryParameters as Lt, forever as Rt, toString as D, isDevelopment as X, isTesting as Ee, after as we, uuid as le, required as Vt, isObject as $e, objectWithoutEmpty as Ne, stringMatchAll as Pt, isInstanceOf as At, objectWithout as jt, noop as zt, debounce as Dt, value as Bt, stringExcerpt as qt, arraySorted as Ft, ListenersManager as Ut, toError as Ot, round as Nt } from "@noeldemartin/utils";
|
|
6
6
|
import O from "virtual:aerogel";
|
|
7
7
|
import { createPinia as Wt, setActivePinia as Kt, defineStore as Qt } from "pinia";
|
|
8
8
|
import Jt from "dompurify";
|
|
9
|
-
import { marked as Zt, Renderer as
|
|
10
|
-
import { Primitive as Gt, SelectValue as Ve, SelectTrigger as Xt, SelectIcon as Yt, SelectItem as es, SelectItemText as ts, SelectPortal as ss, SelectContent as rs, SelectViewport as ns, SelectRoot as as, Label as
|
|
9
|
+
import { marked as Zt, Renderer as Re } from "marked";
|
|
10
|
+
import { Primitive as Gt, SelectValue as Ve, SelectTrigger as Xt, SelectIcon as Yt, SelectItem as es, SelectItemText as ts, SelectPortal as ss, SelectContent as rs, SelectViewport as ns, SelectRoot as as, Label as ls, useForwardExpose as Ie, DialogRoot as os, DialogPortal as is, DialogContent as cs, DialogDescription as us, DialogOverlay as ds, DialogTitle as ps, ToastClose as ms, ToastRoot as fs, ToastProvider as hs, ToastViewport as gs, DropdownMenuItem as vs, DropdownMenuContent as bs, DropdownMenuRoot as ys, DropdownMenuTrigger as _s, DropdownMenuPortal as ws } from "reka-ui";
|
|
11
11
|
import $s from "clsx";
|
|
12
12
|
import { cva as xs } from "class-variance-authority";
|
|
13
13
|
import { twMerge as Cs } from "tailwind-merge";
|
|
14
|
-
class xe extends
|
|
14
|
+
class xe extends me {
|
|
15
15
|
constructor(s, e) {
|
|
16
16
|
super(`Service '${s}' failed booting`, { cause: e });
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
let
|
|
19
|
+
let Te = null;
|
|
20
20
|
function We() {
|
|
21
|
-
return
|
|
21
|
+
return Te ?? Ss();
|
|
22
22
|
}
|
|
23
23
|
function Ss() {
|
|
24
|
-
return
|
|
25
|
-
|
|
24
|
+
return Z(Wt(), (t) => {
|
|
25
|
+
Te = t, Kt(t);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
function ks() {
|
|
29
|
-
return
|
|
29
|
+
return Te ?? We();
|
|
30
30
|
}
|
|
31
31
|
function Ms(t, s) {
|
|
32
32
|
return We(), Qt(t, s)();
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function fe(t) {
|
|
35
35
|
var s;
|
|
36
|
-
return s = class extends
|
|
36
|
+
return s = class extends he {
|
|
37
37
|
usesStore() {
|
|
38
38
|
return !0;
|
|
39
39
|
}
|
|
@@ -67,19 +67,19 @@ To fix this problem, declare your initialState as a function instead.`
|
|
|
67
67
|
var r;
|
|
68
68
|
return ((r = t.restore) == null ? void 0 : r.call(t, e)) ?? e;
|
|
69
69
|
}
|
|
70
|
-
},
|
|
70
|
+
}, $(s, "persist", t.persist ?? []), s;
|
|
71
71
|
}
|
|
72
72
|
var ye;
|
|
73
|
-
let
|
|
73
|
+
let he = (ye = class extends Ue {
|
|
74
74
|
constructor() {
|
|
75
75
|
super();
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
$(this, "_name");
|
|
77
|
+
$(this, "_booted");
|
|
78
|
+
$(this, "_computedStateKeys");
|
|
79
|
+
$(this, "_watchers");
|
|
80
|
+
$(this, "_store");
|
|
81
81
|
const e = this.getComputedStateDefinition();
|
|
82
|
-
this._name = this.getName() ?? new.target.name, this._booted = new
|
|
82
|
+
this._name = this.getName() ?? new.target.name, this._booted = new K(), this._computedStateKeys = new Set(Object.keys(e)), this._watchers = this.getStateWatchers(), this._store = this.usesStore() && Ms(this._name, {
|
|
83
83
|
state: () => this.getInitialState(),
|
|
84
84
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
85
85
|
getters: e
|
|
@@ -113,13 +113,13 @@ let fe = (ye = class extends Ue {
|
|
|
113
113
|
setState(e, r) {
|
|
114
114
|
if (!this._store)
|
|
115
115
|
return;
|
|
116
|
-
const n = typeof e == "string" ? { [e]: r } : e, a =
|
|
116
|
+
const n = typeof e == "string" ? { [e]: r } : e, a = ae(this._store.$state, Object.keys(n));
|
|
117
117
|
Object.assign(this._store.$state, n), this.onStateUpdated(n, a);
|
|
118
118
|
}
|
|
119
119
|
updatePersistedState(e) {
|
|
120
120
|
if (!this._store)
|
|
121
121
|
return;
|
|
122
|
-
const r = Oe(e), n =
|
|
122
|
+
const r = Oe(e), n = ae(this._store.$state, r);
|
|
123
123
|
ve(n) || this.onPersistentStateUpdated(n);
|
|
124
124
|
}
|
|
125
125
|
__get(e) {
|
|
@@ -129,7 +129,7 @@ let fe = (ye = class extends Ue {
|
|
|
129
129
|
this.setState({ [e]: r });
|
|
130
130
|
}
|
|
131
131
|
onStateUpdated(e, r) {
|
|
132
|
-
const n =
|
|
132
|
+
const n = ae(e, this.static("persist"));
|
|
133
133
|
ve(n) || this.onPersistentStateUpdated(n);
|
|
134
134
|
for (const a in e) {
|
|
135
135
|
const o = this._watchers[a];
|
|
@@ -176,22 +176,22 @@ let fe = (ye = class extends Ue {
|
|
|
176
176
|
this.setState(this.deserializePersistedState(e));
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
U.set(this._name,
|
|
179
|
+
U.set(this._name, ae(this.getState(), this.static("persist")));
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
requireStore() {
|
|
183
|
-
return this._store ? this._store :
|
|
183
|
+
return this._store ? this._store : Q(`Failed getting '${this._name}' store`);
|
|
184
184
|
}
|
|
185
|
-
},
|
|
186
|
-
const
|
|
185
|
+
}, $(ye, "persist", []), ye);
|
|
186
|
+
const ya = {
|
|
187
187
|
Low: -256,
|
|
188
188
|
Default: 0,
|
|
189
189
|
High: 256
|
|
190
190
|
};
|
|
191
|
-
class
|
|
191
|
+
class Hs extends he {
|
|
192
192
|
constructor() {
|
|
193
193
|
super(...arguments);
|
|
194
|
-
|
|
194
|
+
$(this, "listeners", {});
|
|
195
195
|
}
|
|
196
196
|
async boot() {
|
|
197
197
|
Object.entries(globalThis.__aerogelEvents__ ?? {}).forEach(([e, r]) => (
|
|
@@ -203,7 +203,7 @@ class Es extends fe {
|
|
|
203
203
|
var a;
|
|
204
204
|
const n = this.listeners[e] ?? { priorities: [], handlers: {} };
|
|
205
205
|
for (const o of n.priorities)
|
|
206
|
-
await Promise.all(((a = n.handlers[o]) == null ? void 0 : a.map((
|
|
206
|
+
await Promise.all(((a = n.handlers[o]) == null ? void 0 : a.map((i) => i(r))) ?? []);
|
|
207
207
|
}
|
|
208
208
|
// prettier-ignore
|
|
209
209
|
/* eslint-enable max-len */
|
|
@@ -215,11 +215,11 @@ class Es extends fe {
|
|
|
215
215
|
/* eslint-enable max-len */
|
|
216
216
|
once(e, r, n) {
|
|
217
217
|
let a = null;
|
|
218
|
-
const o = typeof r == "function" ? {} : r,
|
|
219
|
-
return
|
|
218
|
+
const o = typeof r == "function" ? {} : r, i = typeof r == "function" ? r : n;
|
|
219
|
+
return Z(
|
|
220
220
|
() => a && this.off(e, a),
|
|
221
221
|
(d) => {
|
|
222
|
-
a = (...g) => (d(),
|
|
222
|
+
a = (...g) => (d(), i(...g)), this.registerListener(e, o, i);
|
|
223
223
|
}
|
|
224
224
|
);
|
|
225
225
|
}
|
|
@@ -229,28 +229,28 @@ class Es extends fe {
|
|
|
229
229
|
if (!n)
|
|
230
230
|
return;
|
|
231
231
|
const a = [...n.priorities];
|
|
232
|
-
for (const
|
|
233
|
-
_e(n.handlers[
|
|
232
|
+
for (const i of a)
|
|
233
|
+
_e(n.handlers[i] ?? [], r), ((o = n.handlers[i]) == null ? void 0 : o.length) === 0 && (delete n.handlers[i], _e(n.priorities, i));
|
|
234
234
|
n.priorities.length === 0 && delete this.listeners[e];
|
|
235
235
|
}
|
|
236
236
|
registerListener(e, r, n) {
|
|
237
|
-
var d, g,
|
|
237
|
+
var d, g, x;
|
|
238
238
|
const a = r.priority ?? 0;
|
|
239
239
|
e in this.listeners || (this.listeners[e] = { priorities: [], handlers: {} });
|
|
240
|
-
const o = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ??
|
|
241
|
-
o.includes(a) || (o.push(a), o.sort((
|
|
240
|
+
const o = ((d = this.listeners[e]) == null ? void 0 : d.priorities) ?? Q(`priorities missing for event '${e}'`), i = ((g = this.listeners[e]) == null ? void 0 : g.handlers) ?? Q(`handlers missing for event '${e}'`);
|
|
241
|
+
o.includes(a) || (o.push(a), o.sort((v, y) => y - v), i[a] = []), (x = i[a]) == null || x.push(n);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
const
|
|
245
|
-
function
|
|
244
|
+
const T = G(Hs);
|
|
245
|
+
function _a(t) {
|
|
246
246
|
return t;
|
|
247
247
|
}
|
|
248
|
-
const
|
|
248
|
+
const Es = fe({
|
|
249
249
|
name: "app",
|
|
250
250
|
initialState: {
|
|
251
251
|
plugins: {},
|
|
252
252
|
instance: null,
|
|
253
|
-
environment:
|
|
253
|
+
environment: Tt() ?? "development",
|
|
254
254
|
version: O.version,
|
|
255
255
|
sourceUrl: O.sourceUrl,
|
|
256
256
|
settings: []
|
|
@@ -267,12 +267,12 @@ const Hs = me({
|
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
|
-
class Is extends
|
|
270
|
+
class Is extends Es {
|
|
271
271
|
constructor() {
|
|
272
272
|
super(...arguments);
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
273
|
+
$(this, "name", O.name);
|
|
274
|
+
$(this, "ready", new K());
|
|
275
|
+
$(this, "mounted", new K());
|
|
276
276
|
}
|
|
277
277
|
isReady() {
|
|
278
278
|
return this.ready.isResolved();
|
|
@@ -281,13 +281,13 @@ class Is extends Hs {
|
|
|
281
281
|
return this.mounted.isResolved();
|
|
282
282
|
}
|
|
283
283
|
addSetting(e) {
|
|
284
|
-
this.settings.push(
|
|
284
|
+
this.settings.push(A(e));
|
|
285
285
|
}
|
|
286
286
|
async whenReady(e) {
|
|
287
287
|
return await this.ready.then(e);
|
|
288
288
|
}
|
|
289
289
|
async reload(e) {
|
|
290
|
-
e &&
|
|
290
|
+
e && Lt(e), location.reload(), await Rt();
|
|
291
291
|
}
|
|
292
292
|
plugin(e) {
|
|
293
293
|
return this.plugins[e] ?? null;
|
|
@@ -297,14 +297,14 @@ class Is extends Hs {
|
|
|
297
297
|
return ((r = this.instance) == null ? void 0 : r.config.globalProperties[e]) ?? null;
|
|
298
298
|
}
|
|
299
299
|
async boot() {
|
|
300
|
-
|
|
300
|
+
T.once("application-ready", () => this.ready.resolve()), T.once("application-mounted", () => this.mounted.resolve());
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
const z =
|
|
304
|
-
function
|
|
303
|
+
const z = G(Is);
|
|
304
|
+
function wa(t) {
|
|
305
305
|
return t;
|
|
306
306
|
}
|
|
307
|
-
async function
|
|
307
|
+
async function Ts(t, ...s) {
|
|
308
308
|
z.setState(
|
|
309
309
|
"plugins",
|
|
310
310
|
t.reduce(
|
|
@@ -313,55 +313,55 @@ async function Ls(t, ...s) {
|
|
|
313
313
|
)
|
|
314
314
|
), await Promise.all(t.map((e) => e.install(...s)) ?? []);
|
|
315
315
|
}
|
|
316
|
-
function
|
|
317
|
-
return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${
|
|
316
|
+
function Ls(t) {
|
|
317
|
+
return Object.entries(t.props ?? {}).reduce((s, [e, r]) => s + `${e}="${D(r)}"`, "");
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function $a(t) {
|
|
320
320
|
return t;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Rs(t) {
|
|
323
323
|
const s = oe(t);
|
|
324
|
-
return s ?
|
|
324
|
+
return s ? ue(s) : void 0;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
return
|
|
326
|
+
function E(t, s) {
|
|
327
|
+
return Rs(t) ?? Q(s ?? `Could not resolve '${D(t)}' injection key`);
|
|
328
328
|
}
|
|
329
329
|
function Vs(t, s) {
|
|
330
|
-
return oe(t) ??
|
|
330
|
+
return oe(t) ?? Q(s ?? `Could not resolve '${D(t)}' injection key`);
|
|
331
331
|
}
|
|
332
332
|
function Ke(t) {
|
|
333
333
|
return typeof t == "string" ? t : t.type === _t ? "" : t.type === wt || t.type === $t ? t.children : t.type === "br" ? `
|
|
334
334
|
|
|
335
|
-
` : `<${t.type} ${
|
|
335
|
+
` : `<${t.type} ${Ls(t)}>${Array.from(t.children).map(Ke).join("")}</${t.type}>`;
|
|
336
336
|
}
|
|
337
337
|
const be = /* @__PURE__ */ new WeakMap(), Ps = {
|
|
338
|
-
mounted(t, { value: s }) {
|
|
339
|
-
const
|
|
340
|
-
const
|
|
341
|
-
t.style.setProperty("--width", `${
|
|
338
|
+
mounted(t, { value: s, modifiers: e }) {
|
|
339
|
+
const r = typeof s == "function" ? s : null, n = () => {
|
|
340
|
+
const a = t.getBoundingClientRect();
|
|
341
|
+
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 });
|
|
342
342
|
};
|
|
343
|
-
be.set(t,
|
|
343
|
+
e.watch && be.set(t, Z(new ResizeObserver(n)).observe(t)), n();
|
|
344
344
|
},
|
|
345
345
|
unmounted(t) {
|
|
346
346
|
var s;
|
|
347
347
|
(s = be.get(t)) == null || s.unobserve(t), be.delete(t);
|
|
348
348
|
}
|
|
349
|
-
}, js = {
|
|
350
|
-
measure: Ps
|
|
351
349
|
}, As = {
|
|
350
|
+
measure: Ps
|
|
351
|
+
}, js = {
|
|
352
352
|
install(t, s) {
|
|
353
353
|
const e = {
|
|
354
|
-
...
|
|
354
|
+
...As,
|
|
355
355
|
...s.directives
|
|
356
356
|
};
|
|
357
357
|
for (const [r, n] of Object.entries(e))
|
|
358
358
|
t.directive(r, n);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
|
-
class zs extends
|
|
361
|
+
class zs extends he {
|
|
362
362
|
constructor() {
|
|
363
363
|
super(...arguments);
|
|
364
|
-
|
|
364
|
+
$(this, "cache");
|
|
365
365
|
}
|
|
366
366
|
async get(e) {
|
|
367
367
|
return await (await this.open()).match(e) ?? null;
|
|
@@ -374,30 +374,30 @@ class zs extends fe {
|
|
|
374
374
|
(await n.keys(e)).length !== 0 && await n.put(e, r);
|
|
375
375
|
}
|
|
376
376
|
async open() {
|
|
377
|
-
return this.cache = this.cache ??
|
|
377
|
+
return this.cache = this.cache ?? Z(new K(), (e) => {
|
|
378
378
|
caches.open("app").then((r) => e.resolve(r));
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
const
|
|
383
|
-
class
|
|
382
|
+
const xa = G(zs);
|
|
383
|
+
class Ds extends he {
|
|
384
384
|
async purge() {
|
|
385
|
-
await
|
|
385
|
+
await T.emit("purge-storage");
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
388
|
+
const Bs = G(Ds);
|
|
389
|
+
function Ca(t, s) {
|
|
390
390
|
return {
|
|
391
391
|
...t,
|
|
392
|
-
...
|
|
392
|
+
...ae(s, Object.keys(t))
|
|
393
393
|
};
|
|
394
394
|
}
|
|
395
395
|
const qs = {
|
|
396
396
|
$app: z,
|
|
397
|
-
$events:
|
|
398
|
-
$storage:
|
|
397
|
+
$events: T,
|
|
398
|
+
$storage: Bs
|
|
399
399
|
};
|
|
400
|
-
async function
|
|
400
|
+
async function ge(t, s) {
|
|
401
401
|
await Promise.all(
|
|
402
402
|
Object.entries(s).map(async ([e, r]) => {
|
|
403
403
|
await r.launch().catch((n) => {
|
|
@@ -405,7 +405,7 @@ async function he(t, s) {
|
|
|
405
405
|
return (o = (a = t.config).errorHandler) == null ? void 0 : o.call(a, n, null, `Failed launching ${e}.`);
|
|
406
406
|
});
|
|
407
407
|
})
|
|
408
|
-
), Object.assign(t.config.globalProperties, s), (
|
|
408
|
+
), Object.assign(t.config.globalProperties, s), (X() || Ee()) && Object.assign(globalThis, s);
|
|
409
409
|
}
|
|
410
410
|
const Fs = {
|
|
411
411
|
async install(t, s) {
|
|
@@ -414,16 +414,16 @@ const Fs = {
|
|
|
414
414
|
...qs,
|
|
415
415
|
...s.services
|
|
416
416
|
};
|
|
417
|
-
t.use(ks()), (r = s.settings) == null || r.forEach((n) => z.addSetting(n)), await
|
|
417
|
+
t.use(ks()), (r = s.settings) == null || r.forEach((n) => z.addSetting(n)), await ge(t, e);
|
|
418
418
|
}
|
|
419
|
-
}, Qe = 768,
|
|
419
|
+
}, Qe = 768, de = {
|
|
420
420
|
Mobile: "mobile",
|
|
421
421
|
Desktop: "desktop"
|
|
422
422
|
};
|
|
423
423
|
function Je() {
|
|
424
|
-
return globalThis.innerWidth > Qe ?
|
|
424
|
+
return globalThis.innerWidth > Qe ? de.Desktop : de.Mobile;
|
|
425
425
|
}
|
|
426
|
-
const Us =
|
|
426
|
+
const Us = fe({
|
|
427
427
|
name: "ui",
|
|
428
428
|
initialState: {
|
|
429
429
|
modals: [],
|
|
@@ -431,16 +431,16 @@ const Us = me({
|
|
|
431
431
|
layout: Je()
|
|
432
432
|
},
|
|
433
433
|
computed: {
|
|
434
|
-
desktop: ({ layout: t }) => t ===
|
|
435
|
-
mobile: ({ layout: t }) => t ===
|
|
434
|
+
desktop: ({ layout: t }) => t === de.Desktop,
|
|
435
|
+
mobile: ({ layout: t }) => t === de.Mobile,
|
|
436
436
|
openModals: ({ modals: t }) => t.filter(({ closing: s }) => !s)
|
|
437
437
|
}
|
|
438
438
|
});
|
|
439
439
|
class Os extends Us {
|
|
440
440
|
constructor() {
|
|
441
441
|
super(...arguments);
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
$(this, "modalCallbacks", {});
|
|
443
|
+
$(this, "components", {});
|
|
444
444
|
}
|
|
445
445
|
registerComponent(e, r) {
|
|
446
446
|
this.components[e] = r;
|
|
@@ -449,7 +449,7 @@ class Os extends Us {
|
|
|
449
449
|
return this.components[e] ?? null;
|
|
450
450
|
}
|
|
451
451
|
requireComponent(e) {
|
|
452
|
-
return this.resolveComponent(e) ??
|
|
452
|
+
return this.resolveComponent(e) ?? Q(`UI Component '${e}' is not defined!`);
|
|
453
453
|
}
|
|
454
454
|
alert(e, r) {
|
|
455
455
|
const n = () => typeof r != "string" ? { message: e } : {
|
|
@@ -470,16 +470,16 @@ class Os extends Us {
|
|
|
470
470
|
title: e,
|
|
471
471
|
message: r,
|
|
472
472
|
required: !!(n != null && n.required)
|
|
473
|
-
},
|
|
474
|
-
(
|
|
475
|
-
[
|
|
476
|
-
|
|
473
|
+
}, i = await this.modalForm(this.requireComponent("confirm-modal"), o), d = typeof i == "object" ? i[0] : i ?? !1, g = typeof i == "object" ? i[1] : Object.entries(o.checkboxes ?? {}).reduce(
|
|
474
|
+
(x, [v, { default: y }]) => ({
|
|
475
|
+
[v]: y ?? !1,
|
|
476
|
+
...x
|
|
477
477
|
}),
|
|
478
478
|
{}
|
|
479
479
|
);
|
|
480
|
-
for (const [
|
|
481
|
-
if (!(!
|
|
482
|
-
return d &&
|
|
480
|
+
for (const [x, v] of Object.entries(o.checkboxes ?? {}))
|
|
481
|
+
if (!(!v.required || g[x]))
|
|
482
|
+
return d && X() && console.warn(`Confirmed confirm modal was suppressed because required '${x}' checkbox was missing`), [!1, g];
|
|
483
483
|
return "checkboxes" in o ? [d, g] : d;
|
|
484
484
|
}
|
|
485
485
|
async prompt(e, r, n) {
|
|
@@ -490,8 +490,8 @@ class Os extends Us {
|
|
|
490
490
|
title: e,
|
|
491
491
|
message: r,
|
|
492
492
|
...n ?? {}
|
|
493
|
-
},
|
|
494
|
-
return (a && typeof
|
|
493
|
+
}, i = await this.modalForm(this.requireComponent("prompt-modal"), o());
|
|
494
|
+
return (a && typeof i == "string" ? i == null ? void 0 : i.trim() : i) ?? null;
|
|
495
495
|
}
|
|
496
496
|
async loading(e, r) {
|
|
497
497
|
const n = (g) => typeof g == "function" ? Promise.resolve(g()) : g, a = () => typeof e == "string" ? {
|
|
@@ -500,7 +500,7 @@ class Os extends Us {
|
|
|
500
500
|
} : typeof e == "function" || e instanceof Promise ? { operationPromise: n(e) } : {
|
|
501
501
|
props: e,
|
|
502
502
|
operationPromise: n(r)
|
|
503
|
-
}, { operationPromise: o, props:
|
|
503
|
+
}, { operationPromise: o, props: i } = a(), d = await this.modal(this.requireComponent("loading-modal"), i);
|
|
504
504
|
try {
|
|
505
505
|
const g = await o;
|
|
506
506
|
return await we({ ms: 500 }), g;
|
|
@@ -510,22 +510,22 @@ class Os extends Us {
|
|
|
510
510
|
}
|
|
511
511
|
toast(e, r = {}) {
|
|
512
512
|
const { component: n, ...a } = r, o = {
|
|
513
|
-
id:
|
|
513
|
+
id: le(),
|
|
514
514
|
properties: { message: e, ...a },
|
|
515
|
-
component:
|
|
515
|
+
component: A(n ?? this.requireComponent("toast"))
|
|
516
516
|
};
|
|
517
517
|
this.setState("toasts", this.toasts.concat(o));
|
|
518
518
|
}
|
|
519
519
|
async modal(e, r) {
|
|
520
|
-
const n =
|
|
520
|
+
const n = le(), a = {}, o = {
|
|
521
521
|
id: n,
|
|
522
522
|
closing: !1,
|
|
523
523
|
properties: r ?? {},
|
|
524
|
-
component:
|
|
524
|
+
component: A(e),
|
|
525
525
|
beforeClose: new Promise((d) => a.willClose = d),
|
|
526
526
|
afterClose: new Promise((d) => a.hasClosed = d)
|
|
527
|
-
},
|
|
528
|
-
return this.modalCallbacks[o.id] = a, this.setState({ modals:
|
|
527
|
+
}, i = this.modals.concat(o);
|
|
528
|
+
return this.modalCallbacks[o.id] = a, this.setState({ modals: i }), await De(), o;
|
|
529
529
|
}
|
|
530
530
|
async modalForm(e, r) {
|
|
531
531
|
return await (await this.modal(e, r)).beforeClose;
|
|
@@ -535,7 +535,7 @@ class Os extends Us {
|
|
|
535
535
|
await this.removeModal(e, r);
|
|
536
536
|
return;
|
|
537
537
|
}
|
|
538
|
-
await
|
|
538
|
+
await T.emit("close-modal", { id: e, result: r });
|
|
539
539
|
}
|
|
540
540
|
async closeAllModals() {
|
|
541
541
|
for (; this.modals.length > 0; )
|
|
@@ -552,16 +552,16 @@ class Os extends Us {
|
|
|
552
552
|
), (a = (n = this.modalCallbacks[e]) == null ? void 0 : n.hasClosed) == null || a.call(n, r), delete this.modalCallbacks[e];
|
|
553
553
|
}
|
|
554
554
|
watchModalEvents() {
|
|
555
|
-
|
|
555
|
+
T.on("modal-will-close", ({ modal: { id: e }, result: r }) => {
|
|
556
556
|
var a, o;
|
|
557
|
-
const n = this.modals.find((
|
|
557
|
+
const n = this.modals.find((i) => e === i.id);
|
|
558
558
|
n && (n.closing = !0), (o = (a = this.modalCallbacks[e]) == null ? void 0 : a.willClose) == null || o.call(a, r);
|
|
559
|
-
}),
|
|
559
|
+
}), T.on("modal-has-closed", async ({ modal: { id: e }, result: r }) => {
|
|
560
560
|
await this.removeModal(e, r);
|
|
561
561
|
});
|
|
562
562
|
}
|
|
563
563
|
watchMountedEvent() {
|
|
564
|
-
|
|
564
|
+
T.once("application-mounted", async () => {
|
|
565
565
|
if (!globalThis.document || !globalThis.getComputedStyle)
|
|
566
566
|
return;
|
|
567
567
|
const e = globalThis.document.getElementById("splash");
|
|
@@ -574,7 +574,7 @@ class Os extends Us {
|
|
|
574
574
|
globalThis.matchMedia(`(min-width: ${Qe}px)`).addEventListener("change", () => this.setState({ layout: Je() }));
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
|
-
const
|
|
577
|
+
const L = G(Os);
|
|
578
578
|
class Ns {
|
|
579
579
|
constructor(s, e) {
|
|
580
580
|
this.locale = s, this.fallbackLocale = e;
|
|
@@ -595,13 +595,13 @@ class Ns {
|
|
|
595
595
|
return ["en"];
|
|
596
596
|
}
|
|
597
597
|
translate(s) {
|
|
598
|
-
return
|
|
598
|
+
return X() && console.warn("Lang provider is missing"), s;
|
|
599
599
|
}
|
|
600
600
|
translateWithDefault(s, e) {
|
|
601
|
-
return
|
|
601
|
+
return X() && console.warn("Lang provider is missing"), e;
|
|
602
602
|
}
|
|
603
603
|
}
|
|
604
|
-
const Ws =
|
|
604
|
+
const Ws = fe({
|
|
605
605
|
name: "lang",
|
|
606
606
|
persist: ["locale", "fallbackLocale"],
|
|
607
607
|
initialState: {
|
|
@@ -613,7 +613,7 @@ const Ws = me({
|
|
|
613
613
|
class Ks extends Ws {
|
|
614
614
|
constructor() {
|
|
615
615
|
super();
|
|
616
|
-
|
|
616
|
+
$(this, "provider");
|
|
617
617
|
this.provider = new Ns(
|
|
618
618
|
this.getState("locale") ?? this.getBrowserLocale(),
|
|
619
619
|
this.getState("fallbackLocale")
|
|
@@ -642,7 +642,7 @@ class Ks extends Ws {
|
|
|
642
642
|
);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
const
|
|
645
|
+
const J = G(Ks), Ze = J.translate.bind(J), C = J.translateWithDefault.bind(J), Qs = fe({
|
|
646
646
|
name: "errors",
|
|
647
647
|
initialState: {
|
|
648
648
|
logs: [],
|
|
@@ -657,8 +657,8 @@ const Q = Z(Ks), Ze = Q.translate.bind(Q), S = Q.translateWithDefault.bind(Q), Q
|
|
|
657
657
|
class Js extends Qs {
|
|
658
658
|
constructor() {
|
|
659
659
|
super(...arguments);
|
|
660
|
-
|
|
661
|
-
|
|
660
|
+
$(this, "forceReporting", !1);
|
|
661
|
+
$(this, "enabled", !0);
|
|
662
662
|
}
|
|
663
663
|
enable() {
|
|
664
664
|
this.enabled = !0;
|
|
@@ -669,13 +669,13 @@ class Js extends Qs {
|
|
|
669
669
|
async inspect(e) {
|
|
670
670
|
const r = Array.isArray(e) ? e : [await this.createErrorReport(e)];
|
|
671
671
|
if (r.length === 0) {
|
|
672
|
-
|
|
672
|
+
L.alert(C("errors.inspectEmpty", "Nothing to inspect!"));
|
|
673
673
|
return;
|
|
674
674
|
}
|
|
675
|
-
|
|
675
|
+
L.modal(L.requireComponent("error-report-modal"), { reports: r });
|
|
676
676
|
}
|
|
677
677
|
async report(e, r) {
|
|
678
|
-
if (await
|
|
678
|
+
if (await T.emit("error", { error: e, message: r }), Ee("unit") || (X() && this.logError(e), !this.enabled))
|
|
679
679
|
throw e;
|
|
680
680
|
if (!z.isMounted()) {
|
|
681
681
|
const o = await this.createStartupErrorReport(e);
|
|
@@ -687,15 +687,15 @@ class Js extends Qs {
|
|
|
687
687
|
seen: !1,
|
|
688
688
|
date: /* @__PURE__ */ new Date()
|
|
689
689
|
};
|
|
690
|
-
|
|
691
|
-
r ??
|
|
690
|
+
L.toast(
|
|
691
|
+
r ?? C("errors.notice", "Something went wrong, but it's not your fault. Try again!"),
|
|
692
692
|
{
|
|
693
693
|
variant: "danger",
|
|
694
694
|
actions: [
|
|
695
695
|
{
|
|
696
|
-
label:
|
|
696
|
+
label: C("errors.viewDetails", "View details"),
|
|
697
697
|
dismiss: !0,
|
|
698
|
-
click: () =>
|
|
698
|
+
click: () => L.modal(L.requireComponent("error-report-modal"), { reports: [n] })
|
|
699
699
|
}
|
|
700
700
|
]
|
|
701
701
|
}
|
|
@@ -721,16 +721,16 @@ class Js extends Qs {
|
|
|
721
721
|
console.error(e), $e(e) && e.cause && this.logError(e.cause);
|
|
722
722
|
}
|
|
723
723
|
async createErrorReport(e) {
|
|
724
|
-
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof
|
|
725
|
-
title:
|
|
726
|
-
e.name ?? e.title ??
|
|
724
|
+
return typeof e == "string" ? { title: e } : e instanceof Error || e instanceof me ? this.createErrorReportFromError(e) : $e(e) ? Ne({
|
|
725
|
+
title: D(
|
|
726
|
+
e.name ?? e.title ?? C("errors.unknown", "Unknown Error")
|
|
727
727
|
),
|
|
728
|
-
description:
|
|
729
|
-
e.message ?? e.description ??
|
|
728
|
+
description: D(
|
|
729
|
+
e.message ?? e.description ?? C("errors.unknownDescription", "Unknown error object")
|
|
730
730
|
),
|
|
731
731
|
error: e
|
|
732
732
|
}) : {
|
|
733
|
-
title:
|
|
733
|
+
title: C("errors.unknown", "Unknown Error"),
|
|
734
734
|
error: e
|
|
735
735
|
};
|
|
736
736
|
}
|
|
@@ -747,8 +747,8 @@ class Js extends Qs {
|
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
const Ge =
|
|
751
|
-
function
|
|
750
|
+
const Ge = G(Js), Xe = [];
|
|
751
|
+
function Sa(t) {
|
|
752
752
|
Xe.push(t);
|
|
753
753
|
}
|
|
754
754
|
function Zs(t) {
|
|
@@ -757,24 +757,24 @@ function Zs(t) {
|
|
|
757
757
|
if (e)
|
|
758
758
|
return e;
|
|
759
759
|
}
|
|
760
|
-
return typeof t == "string" ? t : t instanceof Error || t instanceof
|
|
760
|
+
return typeof t == "string" ? t : t instanceof Error || t instanceof me ? t.message : $e(t) ? D(t.message ?? t.description ?? "Unknown error object") : C("errors.unknown", "Unknown Error");
|
|
761
761
|
}
|
|
762
|
-
class Pe extends
|
|
762
|
+
class Pe extends me {
|
|
763
763
|
}
|
|
764
764
|
const Gs = { $errors: Ge }, Xs = (t) => (Ge.report(t), !0);
|
|
765
765
|
function Ys(t, s = () => !1) {
|
|
766
766
|
const e = (r) => s(r) || Xs(r);
|
|
767
|
-
t.config.errorHandler = e, globalThis.onerror = (r, n, a, o,
|
|
767
|
+
t.config.errorHandler = e, globalThis.onerror = (r, n, a, o, i) => e(i ?? r), globalThis.onunhandledrejection = (r) => e(r.reason);
|
|
768
768
|
}
|
|
769
769
|
const er = {
|
|
770
770
|
async install(t, s) {
|
|
771
|
-
Ys(t, s.handleError), await
|
|
771
|
+
Ys(t, s.handleError), await ge(t, Gs);
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
function tr() {
|
|
775
|
-
return
|
|
775
|
+
return Z(new Re(), (t) => {
|
|
776
776
|
t.link = function(s) {
|
|
777
|
-
return
|
|
777
|
+
return Re.prototype.link.apply(this, [s]).replace("<a", '<a target="_blank"');
|
|
778
778
|
};
|
|
779
779
|
});
|
|
780
780
|
}
|
|
@@ -791,7 +791,7 @@ function rr(t) {
|
|
|
791
791
|
function nr(t) {
|
|
792
792
|
return Jt.sanitize(t, { ADD_ATTR: ["target"] });
|
|
793
793
|
}
|
|
794
|
-
const
|
|
794
|
+
const ar = /* @__PURE__ */ h({
|
|
795
795
|
__name: "Markdown",
|
|
796
796
|
props: {
|
|
797
797
|
as: {},
|
|
@@ -803,28 +803,33 @@ const P = /* @__PURE__ */ v({
|
|
|
803
803
|
actions: {}
|
|
804
804
|
},
|
|
805
805
|
setup(t) {
|
|
806
|
-
const s =
|
|
806
|
+
const s = Be(), e = ke(), r = u(() => e.default ? e.default().map(Ke).join("") : t.text ?? (t.langKey && (t.langDefault ? C(t.langKey, t.langDefault, t.langParams ?? {}) : Ze(t.langKey, t.langParams ?? {})))), n = u(() => {
|
|
807
807
|
if (!r.value)
|
|
808
808
|
return null;
|
|
809
|
-
let
|
|
810
|
-
return t.inline && (
|
|
809
|
+
let i = rr(r.value);
|
|
810
|
+
return t.inline && (i = i.replace("<p>", "<span>").replace("</p>", "</span>")), i;
|
|
811
811
|
}), a = () => xt(t.as ?? (t.inline ? "span" : "div"), {
|
|
812
812
|
innerHTML: n.value,
|
|
813
813
|
onClick: o,
|
|
814
814
|
...s,
|
|
815
815
|
class: `${s.class ?? ""} ${t.inline ? "" : "prose"}`
|
|
816
816
|
});
|
|
817
|
-
async function o(
|
|
818
|
-
var g,
|
|
819
|
-
const { target: d } =
|
|
820
|
-
if (
|
|
821
|
-
(
|
|
817
|
+
async function o(i) {
|
|
818
|
+
var g, x;
|
|
819
|
+
const { target: d } = i;
|
|
820
|
+
if (At(d, HTMLElement) && d.dataset.markdownAction) {
|
|
821
|
+
(x = (g = t.actions) == null ? void 0 : g[d.dataset.markdownAction]) == null || x.call(g);
|
|
822
822
|
return;
|
|
823
823
|
}
|
|
824
824
|
}
|
|
825
|
-
return (
|
|
826
|
-
}
|
|
827
|
-
}),
|
|
825
|
+
return (i, d) => (c(), m(a));
|
|
826
|
+
}
|
|
827
|
+
}), lr = (t, s) => {
|
|
828
|
+
const e = t.__vccOpts || t;
|
|
829
|
+
for (const [r, n] of s)
|
|
830
|
+
e[r] = n;
|
|
831
|
+
return e;
|
|
832
|
+
}, P = /* @__PURE__ */ lr(ar, [["__scopeId", "data-v-ba56d181"]]), or = /* @__PURE__ */ h({
|
|
828
833
|
__name: "HeadlessButton",
|
|
829
834
|
props: {
|
|
830
835
|
class: {},
|
|
@@ -841,7 +846,7 @@ const P = /* @__PURE__ */ v({
|
|
|
841
846
|
},
|
|
842
847
|
setup(t) {
|
|
843
848
|
const s = u(() => t.as ? { as: t.as } : t.route ? {
|
|
844
|
-
as:
|
|
849
|
+
as: L.resolveComponent("router-link") ?? "a",
|
|
845
850
|
to: Ne({
|
|
846
851
|
name: t.route,
|
|
847
852
|
params: t.routeParams,
|
|
@@ -855,28 +860,26 @@ const P = /* @__PURE__ */ v({
|
|
|
855
860
|
as: "button",
|
|
856
861
|
type: t.submit ? "submit" : "button"
|
|
857
862
|
});
|
|
858
|
-
return (e, r) => (
|
|
863
|
+
return (e, r) => (c(), m(l(Gt), R({
|
|
859
864
|
class: t.class,
|
|
860
865
|
"as-child": e.asChild,
|
|
861
866
|
disabled: e.disabled
|
|
862
867
|
}, s.value), {
|
|
863
868
|
default: p(() => [
|
|
864
|
-
|
|
869
|
+
w(e.$slots, "default")
|
|
865
870
|
]),
|
|
866
871
|
_: 3
|
|
867
872
|
}, 16, ["class", "as-child", "disabled"]));
|
|
868
873
|
}
|
|
869
874
|
});
|
|
870
875
|
function Ye(t, s) {
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
return E(o(c), l(e));
|
|
874
|
-
});
|
|
876
|
+
const { baseClasses: e, ...r } = t, { baseClasses: n, ...a } = s, o = xs(n, a);
|
|
877
|
+
return H(o(r), l(e));
|
|
875
878
|
}
|
|
876
|
-
function
|
|
879
|
+
function H(...t) {
|
|
877
880
|
return Cs($s(t));
|
|
878
881
|
}
|
|
879
|
-
const
|
|
882
|
+
const j = /* @__PURE__ */ h({
|
|
880
883
|
__name: "Button",
|
|
881
884
|
props: {
|
|
882
885
|
class: {},
|
|
@@ -892,10 +895,10 @@ const A = /* @__PURE__ */ v({
|
|
|
892
895
|
as: {}
|
|
893
896
|
},
|
|
894
897
|
setup(t) {
|
|
895
|
-
const s =
|
|
898
|
+
const s = Y(t, ["class", "size", "variant", "disabled"]), e = u(() => Ye(
|
|
896
899
|
{ baseClasses: t.class, variant: t.variant, size: t.size, disabled: t.disabled },
|
|
897
900
|
{
|
|
898
|
-
baseClasses: "
|
|
901
|
+
baseClasses: "focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
899
902
|
variants: {
|
|
900
903
|
variant: {
|
|
901
904
|
default: "bg-primary-600 text-white focus-visible:outline-primary-600",
|
|
@@ -903,12 +906,12 @@ const A = /* @__PURE__ */ v({
|
|
|
903
906
|
danger: "bg-red-600 text-white focus-visible:outline-red-600",
|
|
904
907
|
ghost: "bg-transparent",
|
|
905
908
|
outline: "bg-transparent text-primary-600 ring-primary-600",
|
|
906
|
-
link: "text-
|
|
909
|
+
link: "text-links"
|
|
907
910
|
},
|
|
908
911
|
size: {
|
|
909
|
-
small: "text-xs",
|
|
910
|
-
default: "text-sm",
|
|
911
|
-
large: "text-base",
|
|
912
|
+
small: "text-xs min-h-6",
|
|
913
|
+
default: "text-sm min-h-8",
|
|
914
|
+
large: "text-base min-h-10",
|
|
912
915
|
icon: "rounded-full p-2.5"
|
|
913
916
|
},
|
|
914
917
|
disabled: {
|
|
@@ -919,7 +922,7 @@ const A = /* @__PURE__ */ v({
|
|
|
919
922
|
compoundVariants: [
|
|
920
923
|
{
|
|
921
924
|
variant: ["default", "secondary", "danger", "ghost", "outline"],
|
|
922
|
-
class: "font-medium"
|
|
925
|
+
class: "flex items-center justify-center gap-1 font-medium"
|
|
923
926
|
},
|
|
924
927
|
{
|
|
925
928
|
variant: ["default", "danger"],
|
|
@@ -971,61 +974,61 @@ const A = /* @__PURE__ */ v({
|
|
|
971
974
|
disabled: !1
|
|
972
975
|
}
|
|
973
976
|
}
|
|
974
|
-
);
|
|
975
|
-
return (r, n) => (
|
|
976
|
-
class:
|
|
977
|
+
));
|
|
978
|
+
return (r, n) => (c(), m(or, R({
|
|
979
|
+
class: e.value,
|
|
977
980
|
disabled: r.disabled
|
|
978
981
|
}, s), {
|
|
979
982
|
default: p(() => [
|
|
980
|
-
|
|
983
|
+
w(r.$slots, "default")
|
|
981
984
|
]),
|
|
982
985
|
_: 3
|
|
983
986
|
}, 16, ["class", "disabled"]));
|
|
984
987
|
}
|
|
985
988
|
});
|
|
986
|
-
function
|
|
989
|
+
function ir(t) {
|
|
987
990
|
return typeof t == "object" && t !== null && "label" in t;
|
|
988
991
|
}
|
|
989
992
|
function et(t, s) {
|
|
990
|
-
const e =
|
|
991
|
-
|
|
993
|
+
const e = T.on(t, s);
|
|
994
|
+
pe(() => e());
|
|
992
995
|
}
|
|
993
|
-
const
|
|
996
|
+
const cr = {
|
|
994
997
|
required: (t) => t ? void 0 : "required"
|
|
995
|
-
},
|
|
996
|
-
function
|
|
997
|
-
|
|
998
|
+
}, ce = { ...cr };
|
|
999
|
+
function ka(t, s) {
|
|
1000
|
+
ce[t] = s;
|
|
998
1001
|
}
|
|
999
|
-
function
|
|
1002
|
+
function ur(t, s) {
|
|
1000
1003
|
var r;
|
|
1001
|
-
const e = (r =
|
|
1004
|
+
const e = (r = ce[s]) == null ? void 0 : r.call(ce, t);
|
|
1002
1005
|
return e ? Oe(e) : [];
|
|
1003
1006
|
}
|
|
1004
|
-
const
|
|
1005
|
-
class
|
|
1007
|
+
const Ma = Symbol(), Ae = /* @__PURE__ */ new WeakMap();
|
|
1008
|
+
class dr extends Ue {
|
|
1006
1009
|
constructor(e) {
|
|
1007
1010
|
super();
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
this._fields = e, this._submitted = q(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e),
|
|
1011
|
+
$(this, "errors");
|
|
1012
|
+
$(this, "_fields");
|
|
1013
|
+
$(this, "_data");
|
|
1014
|
+
$(this, "_submitted");
|
|
1015
|
+
$(this, "_errors");
|
|
1016
|
+
$(this, "_listeners", {});
|
|
1017
|
+
this._fields = e, this._submitted = q(!1), this._data = this.getInitialData(e), this._errors = this.getInitialErrors(e), Ae.set(
|
|
1015
1018
|
this,
|
|
1016
1019
|
u(() => !Object.values(this._errors).some((r) => r !== null))
|
|
1017
1020
|
), this.errors = Me(this._errors);
|
|
1018
1021
|
}
|
|
1019
1022
|
get valid() {
|
|
1020
1023
|
var e;
|
|
1021
|
-
return !!((e =
|
|
1024
|
+
return !!((e = Ae.get(this)) != null && e.value);
|
|
1022
1025
|
}
|
|
1023
1026
|
get submitted() {
|
|
1024
1027
|
return this._submitted.value;
|
|
1025
1028
|
}
|
|
1026
1029
|
setFieldValue(e, r) {
|
|
1027
|
-
const n = this._fields[e] ??
|
|
1028
|
-
this._data[e] = n.type === "string" && (n.trim ?? !0) ?
|
|
1030
|
+
const n = this._fields[e] ?? Q(`Trying to set undefined '${D(e)}' field`);
|
|
1031
|
+
this._data[e] = n.type === "string" && (n.trim ?? !0) ? D(r).trim() : r, this._submitted.value && this.validate();
|
|
1029
1032
|
}
|
|
1030
1033
|
getFieldValue(e) {
|
|
1031
1034
|
return this._data[e];
|
|
@@ -1062,7 +1065,7 @@ class cr extends Ue {
|
|
|
1062
1065
|
}
|
|
1063
1066
|
async focus(e) {
|
|
1064
1067
|
var r;
|
|
1065
|
-
await
|
|
1068
|
+
await De(), (r = this._listeners.focus) == null || r.forEach((n) => n(e));
|
|
1066
1069
|
}
|
|
1067
1070
|
__get(e) {
|
|
1068
1071
|
return e in this._fields ? this.getFieldValue(e) : super.__get(e);
|
|
@@ -1075,23 +1078,23 @@ class cr extends Ue {
|
|
|
1075
1078
|
this.setFieldValue(e, r);
|
|
1076
1079
|
}
|
|
1077
1080
|
getFieldErrors(e, r) {
|
|
1078
|
-
var
|
|
1079
|
-
const n = [], a = this._data[e], o = ((
|
|
1081
|
+
var i;
|
|
1082
|
+
const n = [], a = this._data[e], o = ((i = r.rules) == null ? void 0 : i.split("|")) ?? [];
|
|
1080
1083
|
for (const d of o)
|
|
1081
|
-
d !== "required" && a == null || n.push(...
|
|
1084
|
+
d !== "required" && a == null || n.push(...ur(a, d));
|
|
1082
1085
|
return n.length > 0 ? n : null;
|
|
1083
1086
|
}
|
|
1084
1087
|
getInitialData(e) {
|
|
1085
1088
|
if (this.static().isConjuring())
|
|
1086
1089
|
return {};
|
|
1087
1090
|
const r = Object.entries(e).reduce((n, [a, o]) => (n[a] = o.default ?? null, n), {});
|
|
1088
|
-
return
|
|
1091
|
+
return ue(r);
|
|
1089
1092
|
}
|
|
1090
1093
|
getInitialErrors(e) {
|
|
1091
1094
|
if (this.static().isConjuring())
|
|
1092
1095
|
return {};
|
|
1093
1096
|
const r = Object.keys(e).reduce((n, a) => (n[a] = null, n), {});
|
|
1094
|
-
return
|
|
1097
|
+
return ue(r);
|
|
1095
1098
|
}
|
|
1096
1099
|
resetData() {
|
|
1097
1100
|
for (const [e, r] of Object.entries(this._fields))
|
|
@@ -1103,63 +1106,63 @@ class cr extends Ue {
|
|
|
1103
1106
|
}
|
|
1104
1107
|
function tt(t, s) {
|
|
1105
1108
|
const e = oe("form", null), r = e == null ? void 0 : e.on("focus", (n) => t.name === n && s());
|
|
1106
|
-
|
|
1109
|
+
pe(() => r == null ? void 0 : r());
|
|
1107
1110
|
}
|
|
1108
1111
|
function st(t) {
|
|
1109
|
-
return new
|
|
1112
|
+
return new dr(t);
|
|
1110
1113
|
}
|
|
1111
1114
|
function rt() {
|
|
1112
|
-
const t =
|
|
1113
|
-
return [u(() =>
|
|
1115
|
+
const t = Be(), s = u(() => t.class);
|
|
1116
|
+
return [u(() => jt(t, "class")), s];
|
|
1114
1117
|
}
|
|
1115
|
-
function
|
|
1118
|
+
function Ha(t) {
|
|
1116
1119
|
let s = zt;
|
|
1117
|
-
Ct(() => s = t()),
|
|
1120
|
+
Ct(() => s = t()), pe(() => s());
|
|
1118
1121
|
}
|
|
1119
|
-
function
|
|
1120
|
-
const e =
|
|
1121
|
-
return
|
|
1122
|
+
function Ea(t, s) {
|
|
1123
|
+
const e = ue(U.get(t) ?? s);
|
|
1124
|
+
return He(e, () => U.set(t, St(e))), e;
|
|
1122
1125
|
}
|
|
1123
|
-
function
|
|
1126
|
+
function Ia(t) {
|
|
1124
1127
|
const s = q(), e = u(t);
|
|
1125
|
-
return
|
|
1128
|
+
return He(e, async () => s.value = await e.value, { immediate: !0 }), s;
|
|
1126
1129
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const e = s ? t : {}, r = s ?? t, n = q(e.initial ?? null), a =
|
|
1129
|
-
return
|
|
1130
|
+
function Ta(t, s) {
|
|
1131
|
+
const e = s ? t : {}, r = s ?? t, n = q(e.initial ?? null), a = Dt((o) => n.value = o, e.delay ?? 300);
|
|
1132
|
+
return ie(() => a(r())), n;
|
|
1130
1133
|
}
|
|
1131
|
-
const nt = /* @__PURE__ */
|
|
1134
|
+
const nt = /* @__PURE__ */ h({
|
|
1132
1135
|
__name: "HeadlessSelectValue",
|
|
1133
1136
|
setup(t) {
|
|
1134
|
-
const s =
|
|
1137
|
+
const s = E(
|
|
1135
1138
|
"select",
|
|
1136
1139
|
"<HeadlessSelectValue> must be a child of a <HeadlessSelect>"
|
|
1137
1140
|
);
|
|
1138
|
-
return (e, r) => e.$slots.default ? (
|
|
1141
|
+
return (e, r) => e.$slots.default ? (c(), m(l(Ve), {
|
|
1139
1142
|
key: 0,
|
|
1140
1143
|
placeholder: l(s).placeholder
|
|
1141
1144
|
}, {
|
|
1142
1145
|
default: p(() => [
|
|
1143
|
-
|
|
1146
|
+
w(e.$slots, "default")
|
|
1144
1147
|
]),
|
|
1145
1148
|
_: 3
|
|
1146
|
-
}, 8, ["placeholder"])) : (
|
|
1149
|
+
}, 8, ["placeholder"])) : (c(), m(l(Ve), {
|
|
1147
1150
|
key: 1,
|
|
1148
1151
|
placeholder: l(s).placeholder
|
|
1149
1152
|
}, null, 8, ["placeholder"]));
|
|
1150
1153
|
}
|
|
1151
|
-
}), at = /* @__PURE__ */
|
|
1154
|
+
}), at = /* @__PURE__ */ h({
|
|
1152
1155
|
__name: "HeadlessSelectTrigger",
|
|
1153
1156
|
setup(t) {
|
|
1154
|
-
const s =
|
|
1157
|
+
const s = E(
|
|
1155
1158
|
"select",
|
|
1156
1159
|
"<HeadlessSelectTrigger> must be a child of a <HeadlessSelect>"
|
|
1157
1160
|
);
|
|
1158
|
-
return (e, r) => (
|
|
1161
|
+
return (e, r) => (c(), m(l(Xt), {
|
|
1159
1162
|
id: l(s).id
|
|
1160
1163
|
}, {
|
|
1161
1164
|
default: p(() => [
|
|
1162
|
-
|
|
1165
|
+
w(e.$slots, "default", {}, () => [
|
|
1163
1166
|
f(nt, {
|
|
1164
1167
|
placeholder: l(s).placeholder
|
|
1165
1168
|
}, null, 8, ["placeholder"]),
|
|
@@ -1169,7 +1172,7 @@ const nt = /* @__PURE__ */ v({
|
|
|
1169
1172
|
_: 3
|
|
1170
1173
|
}, 8, ["id"]));
|
|
1171
1174
|
}
|
|
1172
|
-
}),
|
|
1175
|
+
}), lt = /* @__PURE__ */ h({
|
|
1173
1176
|
__name: "HeadlessSelectOption",
|
|
1174
1177
|
props: {
|
|
1175
1178
|
value: {},
|
|
@@ -1179,20 +1182,20 @@ const nt = /* @__PURE__ */ v({
|
|
|
1179
1182
|
as: {}
|
|
1180
1183
|
},
|
|
1181
1184
|
setup(t) {
|
|
1182
|
-
const s =
|
|
1185
|
+
const s = E(
|
|
1183
1186
|
"select",
|
|
1184
1187
|
"<HeadlessSelectOption> must be a child of a <HeadlessSelect>"
|
|
1185
1188
|
), e = u(() => {
|
|
1186
1189
|
var n;
|
|
1187
1190
|
const r = (n = s.options) == null ? void 0 : n.find((a) => a.value === t.value);
|
|
1188
|
-
return r ? r.label :
|
|
1191
|
+
return r ? r.label : D(t.value);
|
|
1189
1192
|
});
|
|
1190
|
-
return (r, n) => (
|
|
1193
|
+
return (r, n) => (c(), m(l(es), ee(te(r.$props)), {
|
|
1191
1194
|
default: p(() => [
|
|
1192
1195
|
f(l(ts), null, {
|
|
1193
1196
|
default: p(() => [
|
|
1194
|
-
|
|
1195
|
-
V(
|
|
1197
|
+
w(r.$slots, "default", {}, () => [
|
|
1198
|
+
V(k(e.value), 1)
|
|
1196
1199
|
])
|
|
1197
1200
|
]),
|
|
1198
1201
|
_: 3
|
|
@@ -1201,33 +1204,33 @@ const nt = /* @__PURE__ */ v({
|
|
|
1201
1204
|
_: 3
|
|
1202
1205
|
}, 16));
|
|
1203
1206
|
}
|
|
1204
|
-
}),
|
|
1207
|
+
}), ot = /* @__PURE__ */ h({
|
|
1205
1208
|
__name: "HeadlessSelectOptions",
|
|
1206
1209
|
props: {
|
|
1207
1210
|
class: {},
|
|
1208
1211
|
innerClass: {}
|
|
1209
1212
|
},
|
|
1210
1213
|
setup(t) {
|
|
1211
|
-
const s =
|
|
1214
|
+
const s = E(
|
|
1212
1215
|
"select",
|
|
1213
1216
|
"<HeadlessSelectOptions> must be a child of a <HeadlessSelect>"
|
|
1214
|
-
), e = u(() =>
|
|
1215
|
-
return (r, n) => (
|
|
1217
|
+
), e = u(() => H("min-w-(--reka-select-trigger-width) max-h-(--reka-select-content-available-height)", t.class));
|
|
1218
|
+
return (r, n) => (c(), m(l(ss), null, {
|
|
1216
1219
|
default: p(() => [
|
|
1217
1220
|
f(l(rs), {
|
|
1218
1221
|
position: "popper",
|
|
1219
|
-
class:
|
|
1222
|
+
class: S(e.value),
|
|
1220
1223
|
align: l(s).align,
|
|
1221
1224
|
side: l(s).side,
|
|
1222
1225
|
"side-offset": 4
|
|
1223
1226
|
}, {
|
|
1224
1227
|
default: p(() => [
|
|
1225
1228
|
f(l(ns), {
|
|
1226
|
-
class:
|
|
1229
|
+
class: S(r.innerClass)
|
|
1227
1230
|
}, {
|
|
1228
1231
|
default: p(() => [
|
|
1229
|
-
|
|
1230
|
-
(
|
|
1232
|
+
w(r.$slots, "default", {}, () => [
|
|
1233
|
+
(c(!0), b(B, null, F(l(s).options ?? [], (a) => (c(), m(lt, {
|
|
1231
1234
|
key: a.key,
|
|
1232
1235
|
value: a.value
|
|
1233
1236
|
}, null, 8, ["value"]))), 128))
|
|
@@ -1242,7 +1245,7 @@ const nt = /* @__PURE__ */ v({
|
|
|
1242
1245
|
_: 3
|
|
1243
1246
|
}));
|
|
1244
1247
|
}
|
|
1245
|
-
}),
|
|
1248
|
+
}), pr = /* @__PURE__ */ h({
|
|
1246
1249
|
inheritAttrs: !1,
|
|
1247
1250
|
__name: "HeadlessSelect",
|
|
1248
1251
|
props: {
|
|
@@ -1262,56 +1265,56 @@ const nt = /* @__PURE__ */ v({
|
|
|
1262
1265
|
},
|
|
1263
1266
|
emits: ["update:modelValue"],
|
|
1264
1267
|
setup(t, { expose: s, emit: e }) {
|
|
1265
|
-
const r = e, n = oe("form", null), a = u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), o = u(() => a.value),
|
|
1266
|
-
key:
|
|
1267
|
-
label: t.renderOption ? t.renderOption(
|
|
1268
|
-
value:
|
|
1268
|
+
const r = e, n = oe("form", null), a = u(() => n && t.name ? n.getFieldValue(t.name) : t.modelValue), o = u(() => a.value), i = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), d = u(() => t.options ? t.options.map((v) => ({
|
|
1269
|
+
key: le(),
|
|
1270
|
+
label: t.renderOption ? t.renderOption(v) : ir(v) ? Bt(v.label) : D(v),
|
|
1271
|
+
value: v
|
|
1269
1272
|
})) : null), g = {
|
|
1270
1273
|
labelClass: t.labelClass,
|
|
1271
1274
|
optionsClass: t.optionsClass,
|
|
1272
1275
|
align: t.align,
|
|
1273
1276
|
side: t.side,
|
|
1274
1277
|
value: a,
|
|
1275
|
-
id: `select-${
|
|
1278
|
+
id: `select-${le()}`,
|
|
1276
1279
|
name: u(() => t.name),
|
|
1277
1280
|
label: u(() => t.label),
|
|
1278
1281
|
description: u(() => t.description),
|
|
1279
|
-
placeholder: u(() => t.placeholder ??
|
|
1282
|
+
placeholder: u(() => t.placeholder ?? C("ui.select", "Select an option")),
|
|
1280
1283
|
options: d,
|
|
1281
1284
|
selectedOption: u(() => {
|
|
1282
|
-
var
|
|
1283
|
-
return (
|
|
1285
|
+
var v;
|
|
1286
|
+
return (v = d.value) == null ? void 0 : v.find((y) => y.value === t.modelValue);
|
|
1284
1287
|
}),
|
|
1285
|
-
errors: Me(
|
|
1288
|
+
errors: Me(i),
|
|
1286
1289
|
required: u(() => {
|
|
1287
1290
|
if (!(!t.name || !n))
|
|
1288
1291
|
return n.getFieldRules(t.name).includes("required");
|
|
1289
1292
|
}),
|
|
1290
|
-
update(
|
|
1293
|
+
update(v) {
|
|
1291
1294
|
if (n && t.name) {
|
|
1292
|
-
n.setFieldValue(t.name,
|
|
1295
|
+
n.setFieldValue(t.name, v);
|
|
1293
1296
|
return;
|
|
1294
1297
|
}
|
|
1295
|
-
r("update:modelValue",
|
|
1298
|
+
r("update:modelValue", v);
|
|
1296
1299
|
}
|
|
1297
1300
|
};
|
|
1298
|
-
function
|
|
1299
|
-
g.update(
|
|
1301
|
+
function x(v) {
|
|
1302
|
+
g.update(v);
|
|
1300
1303
|
}
|
|
1301
|
-
return
|
|
1304
|
+
return se("select", g), s(g), (v, y) => (c(), m(l(as), {
|
|
1302
1305
|
"model-value": o.value,
|
|
1303
|
-
by:
|
|
1304
|
-
"onUpdate:modelValue":
|
|
1306
|
+
by: v.compareOptions,
|
|
1307
|
+
"onUpdate:modelValue": y[0] || (y[0] = (I) => x(I))
|
|
1305
1308
|
}, {
|
|
1306
|
-
default: p(({ open:
|
|
1307
|
-
(
|
|
1309
|
+
default: p(({ open: I }) => [
|
|
1310
|
+
(c(), m(N(v.as), ee(te(v.$attrs)), {
|
|
1308
1311
|
default: p(() => [
|
|
1309
|
-
|
|
1310
|
-
modelValue:
|
|
1311
|
-
open:
|
|
1312
|
+
w(v.$slots, "default", {
|
|
1313
|
+
modelValue: v.modelValue,
|
|
1314
|
+
open: I
|
|
1312
1315
|
}, () => [
|
|
1313
1316
|
f(at),
|
|
1314
|
-
f(
|
|
1317
|
+
f(ot)
|
|
1315
1318
|
])
|
|
1316
1319
|
]),
|
|
1317
1320
|
_: 2
|
|
@@ -1320,47 +1323,47 @@ const nt = /* @__PURE__ */ v({
|
|
|
1320
1323
|
_: 3
|
|
1321
1324
|
}, 8, ["model-value", "by"]));
|
|
1322
1325
|
}
|
|
1323
|
-
}),
|
|
1326
|
+
}), je = /* @__PURE__ */ h({
|
|
1324
1327
|
__name: "HeadlessSelectLabel",
|
|
1325
1328
|
props: {
|
|
1326
1329
|
asChild: { type: Boolean },
|
|
1327
1330
|
as: {}
|
|
1328
1331
|
},
|
|
1329
1332
|
setup(t) {
|
|
1330
|
-
const s =
|
|
1333
|
+
const s = E(
|
|
1331
1334
|
"select",
|
|
1332
1335
|
"<HeadlessSelectLabel> must be a child of a <HeadlessSelect>"
|
|
1333
1336
|
), e = ke(), r = u(() => !!(s.label || e.default));
|
|
1334
|
-
return (n, a) => r.value ? (
|
|
1337
|
+
return (n, a) => r.value ? (c(), m(l(ls), R({
|
|
1335
1338
|
key: 0,
|
|
1336
1339
|
for: l(s).id
|
|
1337
1340
|
}, n.$props), {
|
|
1338
1341
|
default: p(() => [
|
|
1339
|
-
|
|
1340
|
-
V(
|
|
1342
|
+
w(n.$slots, "default", {}, () => [
|
|
1343
|
+
V(k(l(s).label), 1)
|
|
1341
1344
|
])
|
|
1342
1345
|
]),
|
|
1343
1346
|
_: 3
|
|
1344
1347
|
}, 16, ["for"])) : M("", !0);
|
|
1345
1348
|
}
|
|
1346
|
-
}), it = /* @__PURE__ */
|
|
1349
|
+
}), it = /* @__PURE__ */ h({
|
|
1347
1350
|
__name: "SelectLabel",
|
|
1348
1351
|
setup(t) {
|
|
1349
|
-
const s =
|
|
1350
|
-
return (r, n) => r.$slots.default ? (
|
|
1352
|
+
const s = E("select", "<SelectLabel> must be a child of a <Select>"), e = u(() => H("block text-sm leading-6 font-medium text-gray-900", s.labelClass));
|
|
1353
|
+
return (r, n) => r.$slots.default ? (c(), m(je, {
|
|
1351
1354
|
key: 0,
|
|
1352
|
-
class:
|
|
1355
|
+
class: S(e.value)
|
|
1353
1356
|
}, {
|
|
1354
1357
|
default: p(() => [
|
|
1355
|
-
|
|
1358
|
+
w(r.$slots, "default")
|
|
1356
1359
|
]),
|
|
1357
1360
|
_: 3
|
|
1358
|
-
}, 8, ["class"])) : (
|
|
1361
|
+
}, 8, ["class"])) : (c(), m(je, {
|
|
1359
1362
|
key: 1,
|
|
1360
|
-
class:
|
|
1363
|
+
class: S(e.value)
|
|
1361
1364
|
}, null, 8, ["class"]));
|
|
1362
1365
|
}
|
|
1363
|
-
}), ze = /* @__PURE__ */
|
|
1366
|
+
}), ze = /* @__PURE__ */ h({
|
|
1364
1367
|
__name: "SelectOption",
|
|
1365
1368
|
props: {
|
|
1366
1369
|
value: {},
|
|
@@ -1368,62 +1371,62 @@ const nt = /* @__PURE__ */ v({
|
|
|
1368
1371
|
innerClass: {}
|
|
1369
1372
|
},
|
|
1370
1373
|
setup(t) {
|
|
1371
|
-
const s = u(() =>
|
|
1374
|
+
const s = u(() => H("group p-1 outline-none", t.class)), e = u(() => H(
|
|
1372
1375
|
// eslint-disable-next-line vue/max-len
|
|
1373
1376
|
"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",
|
|
1374
1377
|
t.innerClass
|
|
1375
1378
|
));
|
|
1376
|
-
return (r, n) => (
|
|
1377
|
-
class:
|
|
1379
|
+
return (r, n) => (c(), m(lt, {
|
|
1380
|
+
class: S(s.value),
|
|
1378
1381
|
value: r.value
|
|
1379
1382
|
}, {
|
|
1380
1383
|
default: p(() => [
|
|
1381
|
-
|
|
1382
|
-
class:
|
|
1384
|
+
_("div", {
|
|
1385
|
+
class: S(e.value)
|
|
1383
1386
|
}, [
|
|
1384
|
-
|
|
1387
|
+
w(r.$slots, "default")
|
|
1385
1388
|
], 2)
|
|
1386
1389
|
]),
|
|
1387
1390
|
_: 3
|
|
1388
1391
|
}, 8, ["class", "value"]));
|
|
1389
1392
|
}
|
|
1390
|
-
}), ct = /* @__PURE__ */
|
|
1393
|
+
}), ct = /* @__PURE__ */ h({
|
|
1391
1394
|
__name: "SelectOptions",
|
|
1392
1395
|
props: {
|
|
1393
1396
|
class: {}
|
|
1394
1397
|
},
|
|
1395
1398
|
setup(t) {
|
|
1396
|
-
const s =
|
|
1399
|
+
const s = E("select", "<SelectOptions> must be a child of a <Select>"), e = u(() => H(
|
|
1397
1400
|
"z-50 overflow-auto rounded-lg bg-white text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden",
|
|
1398
1401
|
s.optionsClass,
|
|
1399
1402
|
t.class
|
|
1400
1403
|
));
|
|
1401
|
-
return (r, n) => (
|
|
1402
|
-
class:
|
|
1404
|
+
return (r, n) => (c(), m(ot, {
|
|
1405
|
+
class: S(e.value)
|
|
1403
1406
|
}, {
|
|
1404
1407
|
default: p(() => {
|
|
1405
|
-
var a
|
|
1408
|
+
var a;
|
|
1406
1409
|
return [
|
|
1407
|
-
(
|
|
1408
|
-
var
|
|
1410
|
+
(a = l(s).options) != null && a.length ? w(r.$slots, "default", { key: 0 }, () => {
|
|
1411
|
+
var o;
|
|
1409
1412
|
return [
|
|
1410
|
-
(
|
|
1411
|
-
key:
|
|
1412
|
-
value:
|
|
1413
|
+
(c(!0), b(B, null, F(((o = l(s)) == null ? void 0 : o.options) ?? [], (i) => (c(), m(ze, {
|
|
1414
|
+
key: i.key,
|
|
1415
|
+
value: i.value
|
|
1413
1416
|
}, {
|
|
1414
1417
|
default: p(() => [
|
|
1415
|
-
V(
|
|
1418
|
+
V(k(i.label), 1)
|
|
1416
1419
|
]),
|
|
1417
1420
|
_: 2
|
|
1418
1421
|
}, 1032, ["value"]))), 128))
|
|
1419
1422
|
];
|
|
1420
|
-
}) :
|
|
1423
|
+
}) : w(r.$slots, "default", { key: 1 }, () => [
|
|
1421
1424
|
f(ze, {
|
|
1422
1425
|
disabled: "",
|
|
1423
1426
|
value: null
|
|
1424
1427
|
}, {
|
|
1425
1428
|
default: p(() => [
|
|
1426
|
-
V(
|
|
1429
|
+
V(k(r.$td("ui.selectEmpty", "No options available")), 1)
|
|
1427
1430
|
]),
|
|
1428
1431
|
_: 1
|
|
1429
1432
|
})
|
|
@@ -1433,42 +1436,42 @@ const nt = /* @__PURE__ */ v({
|
|
|
1433
1436
|
_: 3
|
|
1434
1437
|
}, 8, ["class"]));
|
|
1435
1438
|
}
|
|
1436
|
-
}),
|
|
1439
|
+
}), mr = {
|
|
1437
1440
|
viewBox: "0 0 20 20",
|
|
1438
1441
|
width: "1.2em",
|
|
1439
1442
|
height: "1.2em"
|
|
1440
1443
|
};
|
|
1441
|
-
function
|
|
1442
|
-
return
|
|
1443
|
-
|
|
1444
|
+
function fr(t, s) {
|
|
1445
|
+
return c(), b("svg", mr, s[0] || (s[0] = [
|
|
1446
|
+
_("path", {
|
|
1444
1447
|
fill: "currentColor",
|
|
1445
1448
|
d: "m9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828L5.757 6.586L4.343 8z"
|
|
1446
1449
|
}, null, -1)
|
|
1447
1450
|
]));
|
|
1448
1451
|
}
|
|
1449
|
-
const
|
|
1452
|
+
const hr = A({ name: "zondicons-cheveron-down", render: fr }), ut = /* @__PURE__ */ h({
|
|
1450
1453
|
__name: "SelectTrigger",
|
|
1451
1454
|
props: {
|
|
1452
1455
|
class: {}
|
|
1453
1456
|
},
|
|
1454
1457
|
setup(t) {
|
|
1455
|
-
const s =
|
|
1458
|
+
const s = E("select", "<SelectTrigger> must be a child of a <Select>"), e = u(() => H(
|
|
1456
1459
|
// eslint-disable-next-line vue/max-len
|
|
1457
1460
|
"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",
|
|
1458
1461
|
{ "mt-1": s.label },
|
|
1459
1462
|
t.class
|
|
1460
1463
|
));
|
|
1461
|
-
return (r, n) => (
|
|
1462
|
-
class:
|
|
1464
|
+
return (r, n) => (c(), m(at, {
|
|
1465
|
+
class: S(e.value)
|
|
1463
1466
|
}, {
|
|
1464
1467
|
default: p(() => [
|
|
1465
1468
|
f(nt, { class: "col-start-1 row-start-1 truncate pr-6" }),
|
|
1466
|
-
f(l(
|
|
1469
|
+
f(l(hr), { class: "col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4" })
|
|
1467
1470
|
]),
|
|
1468
1471
|
_: 1
|
|
1469
1472
|
}, 8, ["class"]));
|
|
1470
1473
|
}
|
|
1471
|
-
}),
|
|
1474
|
+
}), gr = /* @__PURE__ */ h({
|
|
1472
1475
|
__name: "Select",
|
|
1473
1476
|
props: {
|
|
1474
1477
|
as: {},
|
|
@@ -1488,12 +1491,12 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
|
|
|
1488
1491
|
emits: ["update:modelValue"],
|
|
1489
1492
|
setup(t) {
|
|
1490
1493
|
const { forwardRef: s } = Ie();
|
|
1491
|
-
return (e, r) => (
|
|
1494
|
+
return (e, r) => (c(), m(pr, R({ ref: l(s) }, e.$props, {
|
|
1492
1495
|
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.$emit("update:modelValue", n))
|
|
1493
1496
|
}), {
|
|
1494
1497
|
default: p(() => [
|
|
1495
1498
|
f(it),
|
|
1496
|
-
|
|
1499
|
+
w(e.$slots, "default", {}, () => [
|
|
1497
1500
|
f(ut),
|
|
1498
1501
|
f(ct)
|
|
1499
1502
|
])
|
|
@@ -1501,16 +1504,16 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
|
|
|
1501
1504
|
_: 3
|
|
1502
1505
|
}, 16));
|
|
1503
1506
|
}
|
|
1504
|
-
}),
|
|
1507
|
+
}), vr = { class: "grow" }, br = /* @__PURE__ */ h({
|
|
1505
1508
|
__name: "Language",
|
|
1506
1509
|
setup(t) {
|
|
1507
|
-
const s =
|
|
1510
|
+
const s = J.getBrowserLocale(), e = u(() => [null, ...J.locales]);
|
|
1508
1511
|
function r(n) {
|
|
1509
|
-
return (n && O.locales[n]) ??
|
|
1512
|
+
return (n && O.locales[n]) ?? C("settings.localeDefault", "{locale} (default)", {
|
|
1510
1513
|
locale: O.locales[s] ?? s
|
|
1511
1514
|
});
|
|
1512
1515
|
}
|
|
1513
|
-
return (n, a) => (
|
|
1516
|
+
return (n, a) => (c(), m(gr, {
|
|
1514
1517
|
modelValue: n.$lang.locale,
|
|
1515
1518
|
"onUpdate:modelValue": a[0] || (a[0] = (o) => n.$lang.locale = o),
|
|
1516
1519
|
class: "flex flex-col items-start md:flex-row",
|
|
@@ -1519,10 +1522,10 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
|
|
|
1519
1522
|
"render-option": r
|
|
1520
1523
|
}, {
|
|
1521
1524
|
default: p(() => [
|
|
1522
|
-
|
|
1525
|
+
_("div", vr, [
|
|
1523
1526
|
f(it, null, {
|
|
1524
1527
|
default: p(() => [
|
|
1525
|
-
V(
|
|
1528
|
+
V(k(n.$td("settings.locale", "Language")), 1)
|
|
1526
1529
|
]),
|
|
1527
1530
|
_: 1
|
|
1528
1531
|
}),
|
|
@@ -1532,7 +1535,7 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
|
|
|
1532
1535
|
class: "mt-1 text-sm text-gray-500"
|
|
1533
1536
|
})
|
|
1534
1537
|
]),
|
|
1535
|
-
f(
|
|
1538
|
+
f(j, {
|
|
1536
1539
|
variant: "ghost",
|
|
1537
1540
|
as: ut,
|
|
1538
1541
|
class: "grid w-auto outline-none"
|
|
@@ -1542,36 +1545,36 @@ const mr = j({ name: "zondicons-cheveron-down", render: pr }), ut = /* @__PURE__
|
|
|
1542
1545
|
_: 1
|
|
1543
1546
|
}, 8, ["modelValue", "options"]));
|
|
1544
1547
|
}
|
|
1545
|
-
}),
|
|
1548
|
+
}), yr = [
|
|
1546
1549
|
{
|
|
1547
1550
|
priority: 100,
|
|
1548
|
-
component:
|
|
1551
|
+
component: br
|
|
1549
1552
|
}
|
|
1550
|
-
],
|
|
1553
|
+
], _r = { $lang: J }, wr = {
|
|
1551
1554
|
async install(t) {
|
|
1552
1555
|
var s;
|
|
1553
|
-
(s = t.config.globalProperties).$t ?? (s.$t = Ze), t.config.globalProperties.$td =
|
|
1556
|
+
(s = t.config.globalProperties).$t ?? (s.$t = Ze), t.config.globalProperties.$td = C, yr.forEach((e) => z.addSetting(e)), await ge(t, _r);
|
|
1554
1557
|
}
|
|
1555
|
-
},
|
|
1558
|
+
}, $r = {
|
|
1556
1559
|
async install() {
|
|
1557
|
-
|
|
1558
|
-
on: (...t) =>
|
|
1560
|
+
Ee() && (globalThis.testingRuntime = {
|
|
1561
|
+
on: (...t) => T.on(...t)
|
|
1559
1562
|
});
|
|
1560
1563
|
}
|
|
1561
|
-
},
|
|
1564
|
+
}, xr = {
|
|
1562
1565
|
viewBox: "0 0 20 20",
|
|
1563
1566
|
width: "1.2em",
|
|
1564
1567
|
height: "1.2em"
|
|
1565
1568
|
};
|
|
1566
|
-
function
|
|
1567
|
-
return
|
|
1568
|
-
|
|
1569
|
+
function Cr(t, s) {
|
|
1570
|
+
return c(), b("svg", xr, s[0] || (s[0] = [
|
|
1571
|
+
_("path", {
|
|
1569
1572
|
fill: "currentColor",
|
|
1570
1573
|
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"
|
|
1571
1574
|
}, null, -1)
|
|
1572
1575
|
]));
|
|
1573
1576
|
}
|
|
1574
|
-
const
|
|
1577
|
+
const Sr = A({ name: "zondicons-close", render: Cr }), kr = /* @__PURE__ */ h({
|
|
1575
1578
|
__name: "HeadlessModal",
|
|
1576
1579
|
props: {
|
|
1577
1580
|
persistent: { type: Boolean },
|
|
@@ -1581,27 +1584,27 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1581
1584
|
descriptionHidden: { type: Boolean }
|
|
1582
1585
|
},
|
|
1583
1586
|
setup(t, { expose: s }) {
|
|
1584
|
-
const e = q(null), { modal: r } =
|
|
1587
|
+
const e = q(null), { modal: r } = E(
|
|
1585
1588
|
"modal",
|
|
1586
1589
|
"could not obtain modal reference from <HeadlessModal>, did you render this component manually? Show it using $ui.modal() instead"
|
|
1587
1590
|
);
|
|
1588
1591
|
s({ close: o, $content: e });
|
|
1589
1592
|
const { forwardRef: n } = Ie(), a = q(!1);
|
|
1590
|
-
|
|
1591
|
-
|
|
1593
|
+
se("$modalContentRef", e), et("close-modal", async ({ id: i, result: d }) => {
|
|
1594
|
+
i === r.id && await o(d);
|
|
1592
1595
|
});
|
|
1593
|
-
async function o(
|
|
1594
|
-
a.value || (await
|
|
1596
|
+
async function o(i) {
|
|
1597
|
+
a.value || (await T.emit("modal-will-close", { modal: r, result: i }), a.value = !0, await T.emit("modal-has-closed", { modal: r, result: i }));
|
|
1595
1598
|
}
|
|
1596
|
-
return (
|
|
1599
|
+
return (i, d) => (c(), m(l(os), {
|
|
1597
1600
|
ref: l(n),
|
|
1598
1601
|
open: "",
|
|
1599
|
-
"onUpdate:open": d[0] || (d[0] = (g) =>
|
|
1602
|
+
"onUpdate:open": d[0] || (d[0] = (g) => i.persistent || o())
|
|
1600
1603
|
}, {
|
|
1601
1604
|
default: p(() => [
|
|
1602
1605
|
f(l(is), null, {
|
|
1603
1606
|
default: p(() => [
|
|
1604
|
-
|
|
1607
|
+
w(i.$slots, "default", { close: o })
|
|
1605
1608
|
]),
|
|
1606
1609
|
_: 3
|
|
1607
1610
|
})
|
|
@@ -1609,7 +1612,7 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1609
1612
|
_: 3
|
|
1610
1613
|
}, 512));
|
|
1611
1614
|
}
|
|
1612
|
-
}), dt = /* @__PURE__ */
|
|
1615
|
+
}), dt = /* @__PURE__ */ h({
|
|
1613
1616
|
__name: "ModalContext",
|
|
1614
1617
|
props: {
|
|
1615
1618
|
modal: {},
|
|
@@ -1622,22 +1625,22 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1622
1625
|
r[n] = l(s.modal.properties[n]);
|
|
1623
1626
|
return r;
|
|
1624
1627
|
});
|
|
1625
|
-
return
|
|
1626
|
-
modal:
|
|
1627
|
-
childIndex:
|
|
1628
|
-
}), (r, n) => (
|
|
1628
|
+
return se("modal", {
|
|
1629
|
+
modal: Le(s, "modal"),
|
|
1630
|
+
childIndex: Le(s, "childIndex")
|
|
1631
|
+
}), (r, n) => (c(), m(N(r.modal.component), ee(te(e.value)), null, 16));
|
|
1629
1632
|
}
|
|
1630
|
-
}),
|
|
1633
|
+
}), Mr = /* @__PURE__ */ h({
|
|
1631
1634
|
__name: "HeadlessModalContent",
|
|
1632
1635
|
setup(t) {
|
|
1633
|
-
const { childIndex: s = 0 } =
|
|
1636
|
+
const { childIndex: s = 0 } = E(
|
|
1634
1637
|
"modal",
|
|
1635
1638
|
"could not obtain modal reference from <HeadlessModalContent>, did you render this component manually? Show it using $ui.modal() instead"
|
|
1636
|
-
), e = Vs("$modalContentRef"), r =
|
|
1637
|
-
return
|
|
1639
|
+
), e = Vs("$modalContentRef"), r = re("$contentRef"), n = u(() => L.modals[s] ?? null);
|
|
1640
|
+
return ie(() => e.value = r.value), (a, o) => (c(), m(l(cs), { ref: "$contentRef" }, {
|
|
1638
1641
|
default: p(() => [
|
|
1639
|
-
|
|
1640
|
-
n.value ? (
|
|
1642
|
+
w(a.$slots, "default"),
|
|
1643
|
+
n.value ? (c(), m(dt, {
|
|
1641
1644
|
key: 0,
|
|
1642
1645
|
"child-index": l(s) + 1,
|
|
1643
1646
|
modal: n.value
|
|
@@ -1646,21 +1649,21 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1646
1649
|
_: 3
|
|
1647
1650
|
}, 512));
|
|
1648
1651
|
}
|
|
1649
|
-
}),
|
|
1652
|
+
}), Hr = /* @__PURE__ */ h({
|
|
1650
1653
|
__name: "HeadlessModalDescription",
|
|
1651
1654
|
props: {
|
|
1652
1655
|
asChild: { type: Boolean },
|
|
1653
1656
|
as: {}
|
|
1654
1657
|
},
|
|
1655
1658
|
setup(t) {
|
|
1656
|
-
return (s, e) => (
|
|
1659
|
+
return (s, e) => (c(), m(l(us), ee(te(s.$props)), {
|
|
1657
1660
|
default: p(() => [
|
|
1658
|
-
|
|
1661
|
+
w(s.$slots, "default")
|
|
1659
1662
|
]),
|
|
1660
1663
|
_: 3
|
|
1661
1664
|
}, 16));
|
|
1662
1665
|
}
|
|
1663
|
-
}),
|
|
1666
|
+
}), Er = /* @__PURE__ */ h({
|
|
1664
1667
|
__name: "HeadlessModalOverlay",
|
|
1665
1668
|
props: {
|
|
1666
1669
|
forceMount: { type: Boolean },
|
|
@@ -1668,31 +1671,28 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1668
1671
|
as: {}
|
|
1669
1672
|
},
|
|
1670
1673
|
setup(t) {
|
|
1671
|
-
return (s, e) => (
|
|
1674
|
+
return (s, e) => (c(), m(l(ds), ee(te(s.$props)), {
|
|
1672
1675
|
default: p(() => [
|
|
1673
|
-
|
|
1676
|
+
w(s.$slots, "default")
|
|
1674
1677
|
]),
|
|
1675
1678
|
_: 3
|
|
1676
1679
|
}, 16));
|
|
1677
1680
|
}
|
|
1678
|
-
}),
|
|
1681
|
+
}), Ir = /* @__PURE__ */ h({
|
|
1679
1682
|
__name: "HeadlessModalTitle",
|
|
1680
1683
|
props: {
|
|
1681
1684
|
asChild: { type: Boolean },
|
|
1682
1685
|
as: {}
|
|
1683
1686
|
},
|
|
1684
1687
|
setup(t) {
|
|
1685
|
-
return (s, e) => (
|
|
1688
|
+
return (s, e) => (c(), m(l(ps), ee(te(s.$props)), {
|
|
1686
1689
|
default: p(() => [
|
|
1687
|
-
|
|
1690
|
+
w(s.$slots, "default")
|
|
1688
1691
|
]),
|
|
1689
1692
|
_: 3
|
|
1690
1693
|
}, 16));
|
|
1691
1694
|
}
|
|
1692
|
-
}),
|
|
1693
|
-
key: 0,
|
|
1694
|
-
class: "absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block"
|
|
1695
|
-
}, Ir = ["onClick"], Lr = { class: "sr-only" }, re = /* @__PURE__ */ v({
|
|
1695
|
+
}), Tr = ["onClick"], Lr = { class: "sr-only" }, ne = /* @__PURE__ */ h({
|
|
1696
1696
|
__name: "Modal",
|
|
1697
1697
|
props: {
|
|
1698
1698
|
persistent: { type: Boolean },
|
|
@@ -1700,86 +1700,89 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1700
1700
|
titleHidden: { type: Boolean },
|
|
1701
1701
|
description: {},
|
|
1702
1702
|
descriptionHidden: { type: Boolean },
|
|
1703
|
-
|
|
1703
|
+
closeClass: { default: "" },
|
|
1704
1704
|
wrapperClass: { default: "" },
|
|
1705
1705
|
class: { default: "" }
|
|
1706
1706
|
},
|
|
1707
1707
|
setup(t, { expose: s }) {
|
|
1708
|
-
const e =
|
|
1708
|
+
const e = Y(t, ["class", "closeClass", "wrapperClass", "title", "titleHidden", "description", "persistent"]);
|
|
1709
1709
|
s({
|
|
1710
|
-
close: async (
|
|
1711
|
-
var
|
|
1712
|
-
return (
|
|
1710
|
+
close: async (y) => {
|
|
1711
|
+
var I;
|
|
1712
|
+
return (I = a.value) == null ? void 0 : I.close(y);
|
|
1713
1713
|
},
|
|
1714
1714
|
$content: u(() => {
|
|
1715
|
-
var
|
|
1716
|
-
return (
|
|
1715
|
+
var y;
|
|
1716
|
+
return (y = a.value) == null ? void 0 : y.$content;
|
|
1717
1717
|
})
|
|
1718
1718
|
});
|
|
1719
|
-
const { forwardRef: r, currentRef: n } = Ie(), a = n, o =
|
|
1719
|
+
const { forwardRef: r, currentRef: n } = Ie(), a = n, o = E("modal"), i = u(() => !o.modal.closing && o.childIndex === L.openModals.length), d = u(() => t.description ? {} : { "aria-describedby": void 0 }), g = u(() => H({ "mt-2": t.title && !t.titleHidden }, t.class)), x = u(() => H("absolute top-0 right-0 hidden pt-3.5 pr-2.5 sm:block", t.closeClass)), v = u(() => H(
|
|
1720
1720
|
"isolate fixed top-1/2 left-1/2 z-50 w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2",
|
|
1721
1721
|
"overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:max-w-lg",
|
|
1722
1722
|
"animate-[fade-in_var(--tw-duration)_ease-in-out,grow_var(--tw-duration)_ease-in-out]",
|
|
1723
1723
|
"transition-[scale,opacity] will-change-[scale,opacity] duration-300",
|
|
1724
1724
|
{
|
|
1725
|
-
"scale-50 opacity-0": !
|
|
1726
|
-
"scale-100 opacity-100":
|
|
1725
|
+
"scale-50 opacity-0": !i.value,
|
|
1726
|
+
"scale-100 opacity-100": i.value
|
|
1727
1727
|
},
|
|
1728
1728
|
t.wrapperClass
|
|
1729
1729
|
));
|
|
1730
|
-
return et("modal-will-close", async ({ modal: { id:
|
|
1731
|
-
|
|
1732
|
-
}), (
|
|
1733
|
-
ref: (
|
|
1734
|
-
persistent:
|
|
1730
|
+
return et("modal-will-close", async ({ modal: { id: y } }) => {
|
|
1731
|
+
y === o.modal.id && await we({ ms: 300 });
|
|
1732
|
+
}), (y, I) => (c(), m(kr, R(e, {
|
|
1733
|
+
ref: (W) => l(r)(W),
|
|
1734
|
+
persistent: y.persistent
|
|
1735
1735
|
}), {
|
|
1736
|
-
default: p(({ close:
|
|
1737
|
-
f(
|
|
1738
|
-
class:
|
|
1736
|
+
default: p(({ close: W }) => [
|
|
1737
|
+
f(Er, {
|
|
1738
|
+
class: S(["fixed inset-0 animate-[fade-in_var(--tw-duration)_ease-in-out] transition-opacity duration-300 will-change-[opacity]", {
|
|
1739
1739
|
"bg-black/30": l(o).childIndex === 1,
|
|
1740
1740
|
"opacity-0": l(o).childIndex === 1 && l(o).modal.closing
|
|
1741
1741
|
}])
|
|
1742
1742
|
}, null, 8, ["class"]),
|
|
1743
|
-
f(
|
|
1743
|
+
f(Mr, R(d.value, { class: v.value }), {
|
|
1744
1744
|
default: p(() => [
|
|
1745
|
-
|
|
1746
|
-
|
|
1745
|
+
y.persistent ? M("", !0) : (c(), b("div", {
|
|
1746
|
+
key: 0,
|
|
1747
|
+
class: S(x.value)
|
|
1748
|
+
}, [
|
|
1749
|
+
_("button", {
|
|
1747
1750
|
type: "button",
|
|
1748
1751
|
class: "clickable z-10 rounded-full p-2.5 text-gray-400 hover:text-gray-500",
|
|
1749
|
-
onClick: (
|
|
1752
|
+
onClick: (la) => W()
|
|
1750
1753
|
}, [
|
|
1751
|
-
|
|
1752
|
-
f(l(
|
|
1753
|
-
], 8,
|
|
1754
|
-
]
|
|
1755
|
-
|
|
1754
|
+
_("span", Lr, k(y.$td("ui.close", "Close")), 1),
|
|
1755
|
+
f(l(Sr), { class: "size-4" })
|
|
1756
|
+
], 8, Tr)
|
|
1757
|
+
], 2)),
|
|
1758
|
+
y.title ? (c(), m(Ir, {
|
|
1756
1759
|
key: 1,
|
|
1757
|
-
class:
|
|
1760
|
+
class: S(["text-base font-semibold text-gray-900", { "sr-only": y.titleHidden }])
|
|
1758
1761
|
}, {
|
|
1759
1762
|
default: p(() => [
|
|
1760
1763
|
f(P, {
|
|
1761
|
-
text:
|
|
1764
|
+
text: y.title,
|
|
1762
1765
|
inline: ""
|
|
1763
1766
|
}, null, 8, ["text"])
|
|
1764
1767
|
]),
|
|
1765
1768
|
_: 1
|
|
1766
1769
|
}, 8, ["class"])) : M("", !0),
|
|
1767
|
-
|
|
1770
|
+
y.description ? (c(), m(Hr, {
|
|
1768
1771
|
key: 2,
|
|
1769
|
-
class:
|
|
1772
|
+
class: S({ "sr-only": y.descriptionHidden })
|
|
1770
1773
|
}, {
|
|
1771
1774
|
default: p(() => [
|
|
1772
1775
|
f(P, {
|
|
1773
|
-
text:
|
|
1776
|
+
text: y.description,
|
|
1774
1777
|
class: "mt-1 text-sm leading-6 text-gray-500"
|
|
1775
1778
|
}, null, 8, ["text"])
|
|
1776
1779
|
]),
|
|
1777
1780
|
_: 1
|
|
1778
1781
|
}, 8, ["class"])) : M("", !0),
|
|
1779
|
-
|
|
1780
|
-
class:
|
|
1782
|
+
_("div", {
|
|
1783
|
+
class: S(g.value)
|
|
1781
1784
|
}, [
|
|
1782
|
-
|
|
1785
|
+
w(y.$slots, "default", { close: W })
|
|
1783
1786
|
], 2)
|
|
1784
1787
|
]),
|
|
1785
1788
|
_: 2
|
|
@@ -1788,21 +1791,30 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1788
1791
|
_: 3
|
|
1789
1792
|
}, 16, ["persistent"]));
|
|
1790
1793
|
}
|
|
1791
|
-
})
|
|
1794
|
+
});
|
|
1795
|
+
function Rr(t) {
|
|
1796
|
+
const s = u(() => t.title ?? C("ui.alert", "Alert")), e = u(() => !t.title);
|
|
1797
|
+
return { renderedTitle: s, titleHidden: e };
|
|
1798
|
+
}
|
|
1799
|
+
const Vr = /* @__PURE__ */ h({
|
|
1792
1800
|
__name: "AlertModal",
|
|
1793
1801
|
props: {
|
|
1794
1802
|
title: {},
|
|
1795
1803
|
message: {}
|
|
1796
1804
|
},
|
|
1797
1805
|
setup(t, { expose: s }) {
|
|
1798
|
-
|
|
1806
|
+
const e = t, { renderedTitle: r, titleHidden: n } = Rr(e);
|
|
1807
|
+
return s(), (a, o) => (c(), m(ne, {
|
|
1808
|
+
title: l(r),
|
|
1809
|
+
"title-hidden": l(n)
|
|
1810
|
+
}, {
|
|
1799
1811
|
default: p(() => [
|
|
1800
|
-
f(P, { text:
|
|
1812
|
+
f(P, { text: a.message }, null, 8, ["text"])
|
|
1801
1813
|
]),
|
|
1802
1814
|
_: 1
|
|
1803
|
-
}, 8, ["title"]));
|
|
1815
|
+
}, 8, ["title", "title-hidden"]));
|
|
1804
1816
|
}
|
|
1805
|
-
}), pt = /* @__PURE__ */
|
|
1817
|
+
}), pt = /* @__PURE__ */ h({
|
|
1806
1818
|
__name: "Form",
|
|
1807
1819
|
props: {
|
|
1808
1820
|
form: {}
|
|
@@ -1811,39 +1823,39 @@ const xr = j({ name: "zondicons-close", render: $r }), Cr = /* @__PURE__ */ v({
|
|
|
1811
1823
|
setup(t, { emit: s }) {
|
|
1812
1824
|
let e;
|
|
1813
1825
|
const r = s;
|
|
1814
|
-
return
|
|
1826
|
+
return ie((n) => {
|
|
1815
1827
|
var a;
|
|
1816
1828
|
e == null || e(), e = (a = t.form) == null ? void 0 : a.on("submit", () => r("submit")), n(() => e == null ? void 0 : e());
|
|
1817
|
-
}),
|
|
1829
|
+
}), se("form", t.form), (n, a) => (c(), b("form", {
|
|
1818
1830
|
onSubmit: a[0] || (a[0] = qe((o) => {
|
|
1819
|
-
var
|
|
1820
|
-
return (
|
|
1831
|
+
var i;
|
|
1832
|
+
return (i = n.form) == null ? void 0 : i.submit();
|
|
1821
1833
|
}, ["prevent"]))
|
|
1822
1834
|
}, [
|
|
1823
|
-
|
|
1835
|
+
w(n.$slots, "default")
|
|
1824
1836
|
], 32));
|
|
1825
1837
|
}
|
|
1826
1838
|
});
|
|
1827
|
-
function
|
|
1839
|
+
function Pr(t) {
|
|
1828
1840
|
const s = st(
|
|
1829
1841
|
Object.entries(t.checkboxes ?? {}).reduce(
|
|
1830
|
-
(
|
|
1831
|
-
[
|
|
1842
|
+
(o, [i, d]) => ({
|
|
1843
|
+
[i]: {
|
|
1832
1844
|
type: "boolean",
|
|
1833
|
-
default:
|
|
1834
|
-
required:
|
|
1845
|
+
default: d.default,
|
|
1846
|
+
required: d.required ? "required" : void 0
|
|
1835
1847
|
},
|
|
1836
|
-
...
|
|
1848
|
+
...o
|
|
1837
1849
|
}),
|
|
1838
1850
|
{}
|
|
1839
1851
|
)
|
|
1840
|
-
), e = u(() => t.acceptText ??
|
|
1841
|
-
return { form: s,
|
|
1852
|
+
), e = u(() => t.title ?? C("ui.confirm", "Confirm")), r = u(() => !t.title), n = u(() => t.acceptText ?? C("ui.accept", "Ok")), a = u(() => t.cancelText ?? C("ui.cancel", "Cancel"));
|
|
1853
|
+
return { form: s, renderedTitle: e, titleHidden: r, renderedAcceptText: n, renderedCancelText: a };
|
|
1842
1854
|
}
|
|
1843
|
-
const
|
|
1855
|
+
const Ar = {
|
|
1844
1856
|
key: 0,
|
|
1845
1857
|
class: "mt-4 flex flex-col text-sm text-gray-600"
|
|
1846
|
-
},
|
|
1858
|
+
}, jr = { class: "flex items-center" }, zr = ["onUpdate:modelValue", "required"], Dr = { class: "ml-1.5" }, Br = { class: "mt-4 flex flex-row-reverse gap-2" }, qr = /* @__PURE__ */ h({
|
|
1847
1859
|
__name: "ConfirmModal",
|
|
1848
1860
|
props: {
|
|
1849
1861
|
title: {},
|
|
@@ -1857,53 +1869,54 @@ const Vr = {
|
|
|
1857
1869
|
required: { type: Boolean }
|
|
1858
1870
|
},
|
|
1859
1871
|
setup(t, { expose: s }) {
|
|
1860
|
-
const e =
|
|
1861
|
-
return s(), (
|
|
1862
|
-
title:
|
|
1872
|
+
const e = Y(t, ["cancelVariant"]), { form: r, renderedTitle: n, titleHidden: a, renderedAcceptText: o, renderedCancelText: i } = Pr(e);
|
|
1873
|
+
return s(), (d, g) => (c(), m(ne, {
|
|
1874
|
+
title: l(n),
|
|
1875
|
+
"title-hidden": l(a),
|
|
1863
1876
|
persistent: ""
|
|
1864
1877
|
}, {
|
|
1865
|
-
default: p(({ close:
|
|
1878
|
+
default: p(({ close: x }) => [
|
|
1866
1879
|
f(pt, {
|
|
1867
1880
|
form: l(r),
|
|
1868
|
-
onSubmit: (
|
|
1881
|
+
onSubmit: (v) => x([!0, l(r).data()])
|
|
1869
1882
|
}, {
|
|
1870
1883
|
default: p(() => [
|
|
1871
1884
|
f(P, {
|
|
1872
|
-
text:
|
|
1873
|
-
actions:
|
|
1885
|
+
text: d.message,
|
|
1886
|
+
actions: d.actions
|
|
1874
1887
|
}, null, 8, ["text", "actions"]),
|
|
1875
|
-
|
|
1876
|
-
(
|
|
1877
|
-
|
|
1878
|
-
Fe(
|
|
1879
|
-
"onUpdate:modelValue": (
|
|
1888
|
+
d.checkboxes ? (c(), b("ul", Ar, [
|
|
1889
|
+
(c(!0), b(B, null, F(d.checkboxes, (v, y) => (c(), b("li", { key: y }, [
|
|
1890
|
+
_("label", jr, [
|
|
1891
|
+
Fe(_("input", {
|
|
1892
|
+
"onUpdate:modelValue": (I) => l(r)[y] = I,
|
|
1880
1893
|
type: "checkbox",
|
|
1881
|
-
required:
|
|
1894
|
+
required: v.required,
|
|
1882
1895
|
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"
|
|
1883
|
-
}, null, 8,
|
|
1884
|
-
[kt, l(r)[
|
|
1896
|
+
}, null, 8, zr), [
|
|
1897
|
+
[kt, l(r)[y]]
|
|
1885
1898
|
]),
|
|
1886
|
-
|
|
1899
|
+
_("span", Dr, k(v.label), 1)
|
|
1887
1900
|
])
|
|
1888
1901
|
]))), 128))
|
|
1889
1902
|
])) : M("", !0),
|
|
1890
|
-
|
|
1891
|
-
f(
|
|
1892
|
-
variant:
|
|
1903
|
+
_("div", Br, [
|
|
1904
|
+
f(j, {
|
|
1905
|
+
variant: d.acceptVariant,
|
|
1893
1906
|
submit: ""
|
|
1894
1907
|
}, {
|
|
1895
1908
|
default: p(() => [
|
|
1896
|
-
V(
|
|
1909
|
+
V(k(l(o)), 1)
|
|
1897
1910
|
]),
|
|
1898
1911
|
_: 1
|
|
1899
1912
|
}, 8, ["variant"]),
|
|
1900
|
-
|
|
1913
|
+
d.required ? M("", !0) : (c(), m(j, {
|
|
1901
1914
|
key: 0,
|
|
1902
|
-
variant:
|
|
1903
|
-
onClick: (
|
|
1915
|
+
variant: d.cancelVariant,
|
|
1916
|
+
onClick: (v) => x(!1)
|
|
1904
1917
|
}, {
|
|
1905
1918
|
default: p(() => [
|
|
1906
|
-
V(
|
|
1919
|
+
V(k(l(i)), 1)
|
|
1907
1920
|
]),
|
|
1908
1921
|
_: 2
|
|
1909
1922
|
}, 1032, ["variant", "onClick"]))
|
|
@@ -1913,87 +1926,87 @@ const Vr = {
|
|
|
1913
1926
|
}, 1032, ["form", "onSubmit"])
|
|
1914
1927
|
]),
|
|
1915
1928
|
_: 1
|
|
1916
|
-
}, 8, ["title"]));
|
|
1929
|
+
}, 8, ["title", "title-hidden"]));
|
|
1917
1930
|
}
|
|
1918
|
-
}),
|
|
1931
|
+
}), Fr = {
|
|
1919
1932
|
viewBox: "0 0 20 20",
|
|
1920
1933
|
width: "1.2em",
|
|
1921
1934
|
height: "1.2em"
|
|
1922
1935
|
};
|
|
1923
|
-
function
|
|
1924
|
-
return
|
|
1925
|
-
|
|
1936
|
+
function Ur(t, s) {
|
|
1937
|
+
return c(), b("svg", Fr, s[0] || (s[0] = [
|
|
1938
|
+
_("path", {
|
|
1926
1939
|
fill: "currentColor",
|
|
1927
1940
|
d: "M7.05 9.293L6.343 10L12 15.657l1.414-1.414L9.172 10l4.242-4.243L12 4.343z"
|
|
1928
1941
|
}, null, -1)
|
|
1929
1942
|
]));
|
|
1930
1943
|
}
|
|
1931
|
-
const
|
|
1944
|
+
const Or = A({ name: "zondicons-cheveron-left", render: Ur }), Nr = {
|
|
1932
1945
|
viewBox: "0 0 20 20",
|
|
1933
1946
|
width: "1.2em",
|
|
1934
1947
|
height: "1.2em"
|
|
1935
1948
|
};
|
|
1936
|
-
function
|
|
1937
|
-
return
|
|
1938
|
-
|
|
1949
|
+
function Wr(t, s) {
|
|
1950
|
+
return c(), b("svg", Nr, s[0] || (s[0] = [
|
|
1951
|
+
_("path", {
|
|
1939
1952
|
fill: "currentColor",
|
|
1940
1953
|
d: "m12.95 10.707l.707-.707L8 4.343L6.586 5.757L10.828 10l-4.242 4.243L8 15.657z"
|
|
1941
1954
|
}, null, -1)
|
|
1942
1955
|
]));
|
|
1943
1956
|
}
|
|
1944
|
-
const mt =
|
|
1957
|
+
const mt = A({ name: "zondicons-cheveron-right", render: Wr }), Kr = {
|
|
1945
1958
|
viewBox: "0 0 20 20",
|
|
1946
1959
|
width: "1.2em",
|
|
1947
1960
|
height: "1.2em"
|
|
1948
1961
|
};
|
|
1949
|
-
function
|
|
1950
|
-
return
|
|
1951
|
-
|
|
1962
|
+
function Qr(t, s) {
|
|
1963
|
+
return c(), b("svg", Kr, s[0] || (s[0] = [
|
|
1964
|
+
_("path", {
|
|
1952
1965
|
fill: "currentColor",
|
|
1953
1966
|
d: "M2.93 17.07A10 10 0 1 1 17.07 2.93A10 10 0 0 1 2.93 17.07M9 5v6h2V5zm0 8v2h2v-2z"
|
|
1954
1967
|
}, null, -1)
|
|
1955
1968
|
]));
|
|
1956
1969
|
}
|
|
1957
|
-
const ft =
|
|
1970
|
+
const ft = A({ name: "zondicons-exclamation-solid", render: Qr }), Jr = {
|
|
1958
1971
|
viewBox: "0 0 24 24",
|
|
1959
1972
|
width: "1.2em",
|
|
1960
1973
|
height: "1.2em"
|
|
1961
1974
|
};
|
|
1962
|
-
function
|
|
1963
|
-
return
|
|
1964
|
-
|
|
1975
|
+
function Zr(t, s) {
|
|
1976
|
+
return c(), b("svg", Jr, s[0] || (s[0] = [
|
|
1977
|
+
_("path", {
|
|
1965
1978
|
fill: "currentColor",
|
|
1966
1979
|
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"
|
|
1967
1980
|
}, null, -1)
|
|
1968
1981
|
]));
|
|
1969
1982
|
}
|
|
1970
|
-
const
|
|
1983
|
+
const Gr = A({ name: "mdi-console", render: Zr }), Xr = {
|
|
1971
1984
|
viewBox: "0 0 20 20",
|
|
1972
1985
|
width: "1.2em",
|
|
1973
1986
|
height: "1.2em"
|
|
1974
1987
|
};
|
|
1975
|
-
function
|
|
1976
|
-
return
|
|
1977
|
-
|
|
1988
|
+
function Yr(t, s) {
|
|
1989
|
+
return c(), b("svg", Xr, s[0] || (s[0] = [
|
|
1990
|
+
_("path", {
|
|
1978
1991
|
fill: "currentColor",
|
|
1979
1992
|
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"
|
|
1980
1993
|
}, null, -1)
|
|
1981
1994
|
]));
|
|
1982
1995
|
}
|
|
1983
|
-
const
|
|
1996
|
+
const en = A({ name: "zondicons-copy", render: Yr }), tn = {
|
|
1984
1997
|
viewBox: "0 0 24 24",
|
|
1985
1998
|
width: "1.2em",
|
|
1986
1999
|
height: "1.2em"
|
|
1987
2000
|
};
|
|
1988
|
-
function
|
|
1989
|
-
return
|
|
1990
|
-
|
|
2001
|
+
function sn(t, s) {
|
|
2002
|
+
return c(), b("svg", tn, s[0] || (s[0] = [
|
|
2003
|
+
_("path", {
|
|
1991
2004
|
fill: "currentColor",
|
|
1992
2005
|
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"
|
|
1993
2006
|
}, null, -1)
|
|
1994
2007
|
]));
|
|
1995
2008
|
}
|
|
1996
|
-
const
|
|
2009
|
+
const rn = A({ name: "mdi-github", render: sn }), nn = { class: "flex" }, an = { class: "sr-only" }, ln = /* @__PURE__ */ h({
|
|
1997
2010
|
__name: "ErrorReportModalButtons",
|
|
1998
2011
|
props: {
|
|
1999
2012
|
report: {}
|
|
@@ -2017,26 +2030,26 @@ const tn = j({ name: "mdi-github", render: en }), sn = { class: "flex" }, rn = {
|
|
|
2017
2030
|
`)
|
|
2018
2031
|
);
|
|
2019
2032
|
return `${z.sourceUrl}/issues/new?title=${a}&body=${o}`;
|
|
2020
|
-
}), n = u(() =>
|
|
2033
|
+
}), n = u(() => Z(
|
|
2021
2034
|
[
|
|
2022
2035
|
{
|
|
2023
2036
|
id: "clipboard",
|
|
2024
2037
|
description: "Copy to clipboard",
|
|
2025
|
-
iconComponent:
|
|
2038
|
+
iconComponent: en,
|
|
2026
2039
|
async click() {
|
|
2027
2040
|
await navigator.clipboard.writeText(`${e.value}
|
|
2028
2041
|
|
|
2029
|
-
${s.report.details}`),
|
|
2042
|
+
${s.report.details}`), L.toast(C("errors.copiedToClipboard", "Debug information copied to clipboard"));
|
|
2030
2043
|
}
|
|
2031
2044
|
},
|
|
2032
2045
|
{
|
|
2033
2046
|
id: "console",
|
|
2034
2047
|
description: "Log to console",
|
|
2035
|
-
iconComponent:
|
|
2048
|
+
iconComponent: Gr,
|
|
2036
2049
|
click() {
|
|
2037
2050
|
const a = s.report.error ?? s.report;
|
|
2038
|
-
window.error = a, console.error(a),
|
|
2039
|
-
|
|
2051
|
+
window.error = a, console.error(a), L.toast(
|
|
2052
|
+
C(
|
|
2040
2053
|
"errors.addedToConsole",
|
|
2041
2054
|
"You can now use the **error** variable in the console"
|
|
2042
2055
|
)
|
|
@@ -2048,24 +2061,24 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2048
2061
|
r.value && a.push({
|
|
2049
2062
|
id: "github",
|
|
2050
2063
|
description: "Report in GitHub",
|
|
2051
|
-
iconComponent:
|
|
2064
|
+
iconComponent: rn,
|
|
2052
2065
|
url: r.value
|
|
2053
2066
|
});
|
|
2054
2067
|
}
|
|
2055
2068
|
));
|
|
2056
|
-
return (a, o) => (
|
|
2057
|
-
(
|
|
2058
|
-
f(
|
|
2069
|
+
return (a, o) => (c(), b("div", nn, [
|
|
2070
|
+
(c(!0), b(B, null, F(n.value, (i) => w(a.$slots, "default", R({ ref_for: !0 }, i), () => [
|
|
2071
|
+
f(j, {
|
|
2059
2072
|
size: "icon",
|
|
2060
2073
|
variant: "ghost",
|
|
2061
2074
|
class: "group whitespace-nowrap",
|
|
2062
|
-
href:
|
|
2063
|
-
title: a.$td(`errors.report_${
|
|
2064
|
-
onClick:
|
|
2075
|
+
href: i.url,
|
|
2076
|
+
title: a.$td(`errors.report_${i.id}`, i.description),
|
|
2077
|
+
onClick: i.click
|
|
2065
2078
|
}, {
|
|
2066
2079
|
default: p(() => [
|
|
2067
|
-
|
|
2068
|
-
(
|
|
2080
|
+
_("span", an, k(a.$td(`errors.report_${i.id}`, i.description)), 1),
|
|
2081
|
+
(c(), m(N(i.iconComponent), {
|
|
2069
2082
|
class: "size-4",
|
|
2070
2083
|
"aria-hidden": "true"
|
|
2071
2084
|
}))
|
|
@@ -2075,7 +2088,7 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2075
2088
|
])), 256))
|
|
2076
2089
|
]));
|
|
2077
2090
|
}
|
|
2078
|
-
}),
|
|
2091
|
+
}), on = /* @__PURE__ */ h({
|
|
2079
2092
|
__name: "ErrorReportModalTitle",
|
|
2080
2093
|
props: {
|
|
2081
2094
|
report: {},
|
|
@@ -2084,19 +2097,19 @@ ${s.report.details}`), R.toast(S("errors.copiedToClipboard", "Debug information
|
|
|
2084
2097
|
},
|
|
2085
2098
|
setup(t) {
|
|
2086
2099
|
const s = u(() => !t.totalReports || t.totalReports <= 1 ? t.report.title : `${t.report.title} (${t.currentReport}/${t.totalReports})`);
|
|
2087
|
-
return (e, r) => (
|
|
2100
|
+
return (e, r) => (c(), m(P, {
|
|
2088
2101
|
text: s.value,
|
|
2089
2102
|
inline: ""
|
|
2090
2103
|
}, null, 8, ["text"]));
|
|
2091
2104
|
}
|
|
2092
2105
|
});
|
|
2093
|
-
function
|
|
2106
|
+
function cn(t) {
|
|
2094
2107
|
const s = q(0), e = u(() => t.reports[s.value]), r = u(
|
|
2095
2108
|
() => {
|
|
2096
2109
|
var o;
|
|
2097
|
-
return ((o = e.value.details) == null ? void 0 : o.trim()) ||
|
|
2110
|
+
return ((o = e.value.details) == null ? void 0 : o.trim()) || C("errors.detailsEmpty", "This error is missing a stacktrace.");
|
|
2098
2111
|
}
|
|
2099
|
-
), n =
|
|
2112
|
+
), n = C("errors.previousReport", "Show previous report"), a = C("errors.nextReport", "Show next report");
|
|
2100
2113
|
return {
|
|
2101
2114
|
activeReportIndex: s,
|
|
2102
2115
|
details: r,
|
|
@@ -2105,49 +2118,54 @@ function on(t) {
|
|
|
2105
2118
|
report: e
|
|
2106
2119
|
};
|
|
2107
2120
|
}
|
|
2108
|
-
const
|
|
2121
|
+
const un = { class: "px-4 pt-5 pb-4" }, dn = { class: "flex justify-between gap-4" }, pn = { class: "flex items-center gap-2" }, mn = {
|
|
2109
2122
|
key: 0,
|
|
2110
2123
|
class: "flex gap-0.5"
|
|
2111
|
-
},
|
|
2124
|
+
}, fn = { class: "-mt-2 max-h-[80vh] overflow-auto bg-red-800/10" }, hn = ["textContent"], gn = /* @__PURE__ */ h({
|
|
2112
2125
|
__name: "ErrorReportModal",
|
|
2113
2126
|
props: {
|
|
2114
2127
|
reports: {}
|
|
2115
2128
|
},
|
|
2116
2129
|
setup(t, { expose: s }) {
|
|
2117
|
-
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: o, report:
|
|
2118
|
-
return s(), (d, g) => (
|
|
2130
|
+
const e = t, { activeReportIndex: r, details: n, nextReportText: a, previousReportText: o, report: i } = cn(e);
|
|
2131
|
+
return s(), (d, g) => (c(), m(ne, {
|
|
2132
|
+
title: d.$td("errors.report", "Errors report"),
|
|
2133
|
+
"title-hidden": "",
|
|
2134
|
+
"wrapper-class": "p-0 sm:w-auto sm:min-w-lg sm:max-w-[80vw]",
|
|
2135
|
+
"close-class": "hidden"
|
|
2136
|
+
}, {
|
|
2119
2137
|
default: p(() => [
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2138
|
+
_("div", un, [
|
|
2139
|
+
_("h2", dn, [
|
|
2140
|
+
_("div", pn, [
|
|
2123
2141
|
f(l(ft), { class: "size-5 text-red-600" }),
|
|
2124
|
-
f(
|
|
2142
|
+
f(on, {
|
|
2125
2143
|
class: "text-lg leading-6 font-semibold text-gray-900",
|
|
2126
|
-
report: l(
|
|
2144
|
+
report: l(i),
|
|
2127
2145
|
"current-report": l(r) + 1,
|
|
2128
2146
|
"total-reports": d.reports.length
|
|
2129
2147
|
}, null, 8, ["report", "current-report", "total-reports"]),
|
|
2130
|
-
d.reports.length > 1 ? (
|
|
2131
|
-
f(
|
|
2148
|
+
d.reports.length > 1 ? (c(), b("span", mn, [
|
|
2149
|
+
f(j, {
|
|
2132
2150
|
size: "icon",
|
|
2133
2151
|
variant: "ghost",
|
|
2134
2152
|
disabled: l(r) === 0,
|
|
2135
2153
|
"aria-label": l(o),
|
|
2136
2154
|
title: l(o),
|
|
2137
|
-
onClick: g[0] || (g[0] = (
|
|
2155
|
+
onClick: g[0] || (g[0] = (x) => r.value--)
|
|
2138
2156
|
}, {
|
|
2139
2157
|
default: p(() => [
|
|
2140
|
-
f(l(
|
|
2158
|
+
f(l(Or), { class: "size-4" })
|
|
2141
2159
|
]),
|
|
2142
2160
|
_: 1
|
|
2143
2161
|
}, 8, ["disabled", "aria-label", "title"]),
|
|
2144
|
-
f(
|
|
2162
|
+
f(j, {
|
|
2145
2163
|
size: "icon",
|
|
2146
2164
|
variant: "ghost",
|
|
2147
2165
|
disabled: l(r) === d.reports.length - 1,
|
|
2148
2166
|
"aria-label": l(a),
|
|
2149
2167
|
title: l(a),
|
|
2150
|
-
onClick: g[1] || (g[1] = (
|
|
2168
|
+
onClick: g[1] || (g[1] = (x) => r.value++)
|
|
2151
2169
|
}, {
|
|
2152
2170
|
default: p(() => [
|
|
2153
2171
|
f(l(mt), { class: "size-4" })
|
|
@@ -2156,44 +2174,44 @@ const ln = { class: "px-4 pt-5 pb-4" }, cn = { class: "flex justify-between gap-
|
|
|
2156
2174
|
}, 8, ["disabled", "aria-label", "title"])
|
|
2157
2175
|
])) : M("", !0)
|
|
2158
2176
|
]),
|
|
2159
|
-
f(
|
|
2160
|
-
report: l(
|
|
2177
|
+
f(ln, {
|
|
2178
|
+
report: l(i),
|
|
2161
2179
|
class: "gap-0.5"
|
|
2162
2180
|
}, null, 8, ["report"])
|
|
2163
2181
|
]),
|
|
2164
|
-
l(
|
|
2182
|
+
l(i).description ? (c(), m(P, {
|
|
2165
2183
|
key: 0,
|
|
2166
|
-
text: l(
|
|
2184
|
+
text: l(i).description,
|
|
2167
2185
|
class: "text-gray-600"
|
|
2168
2186
|
}, null, 8, ["text"])) : M("", !0)
|
|
2169
2187
|
]),
|
|
2170
|
-
|
|
2171
|
-
|
|
2188
|
+
_("div", fn, [
|
|
2189
|
+
_("pre", {
|
|
2172
2190
|
class: "p-4 text-xs text-red-800",
|
|
2173
|
-
textContent:
|
|
2174
|
-
}, null, 8,
|
|
2191
|
+
textContent: k(l(n))
|
|
2192
|
+
}, null, 8, hn)
|
|
2175
2193
|
])
|
|
2176
2194
|
]),
|
|
2177
2195
|
_: 1
|
|
2178
|
-
}));
|
|
2196
|
+
}, 8, ["title"]));
|
|
2179
2197
|
}
|
|
2180
|
-
}),
|
|
2198
|
+
}), vn = {
|
|
2181
2199
|
viewBox: "0 0 24 24",
|
|
2182
2200
|
width: "1.2em",
|
|
2183
2201
|
height: "1.2em"
|
|
2184
2202
|
};
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2187
|
-
|
|
2203
|
+
function bn(t, s) {
|
|
2204
|
+
return c(), b("svg", vn, s[0] || (s[0] = [
|
|
2205
|
+
_("path", {
|
|
2188
2206
|
fill: "currentColor",
|
|
2189
2207
|
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",
|
|
2190
2208
|
opacity: ".25"
|
|
2191
2209
|
}, null, -1),
|
|
2192
|
-
|
|
2210
|
+
_("path", {
|
|
2193
2211
|
fill: "currentColor",
|
|
2194
2212
|
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"
|
|
2195
2213
|
}, [
|
|
2196
|
-
|
|
2214
|
+
_("animateTransform", {
|
|
2197
2215
|
attributeName: "transform",
|
|
2198
2216
|
dur: "0.75s",
|
|
2199
2217
|
repeatCount: "indefinite",
|
|
@@ -2203,7 +2221,7 @@ function gn(t, s) {
|
|
|
2203
2221
|
], -1)
|
|
2204
2222
|
]));
|
|
2205
2223
|
}
|
|
2206
|
-
const
|
|
2224
|
+
const yn = A({ name: "svg-spinners-90-ring-with-bg", render: bn }), _n = { class: "mt-1 h-2 w-full overflow-hidden rounded-full bg-gray-200" }, wn = { class: "sr-only" }, $n = /* @__PURE__ */ h({
|
|
2207
2225
|
__name: "ProgressBar",
|
|
2208
2226
|
props: {
|
|
2209
2227
|
filledClass: {},
|
|
@@ -2212,31 +2230,31 @@ const vn = j({ name: "svg-spinners-90-ring-with-bg", render: gn }), bn = { class
|
|
|
2212
2230
|
},
|
|
2213
2231
|
setup(t) {
|
|
2214
2232
|
let s;
|
|
2215
|
-
const e = q(0), r = u(() =>
|
|
2216
|
-
return
|
|
2233
|
+
const e = q(0), r = u(() => H("size-full transition-transform duration-500 rounded-r-full ease-linear bg-primary-600", t.filledClass)), n = u(() => typeof t.progress == "number" ? t.progress : e.value);
|
|
2234
|
+
return He(
|
|
2217
2235
|
() => t.job,
|
|
2218
2236
|
() => {
|
|
2219
2237
|
s && s(), e.value = t.job ? t.job.progress : 0, s = t.job && t.job.listeners.add({ onUpdated: (a) => e.value = a });
|
|
2220
2238
|
},
|
|
2221
2239
|
{ immediate: !0 }
|
|
2222
|
-
),
|
|
2223
|
-
|
|
2224
|
-
class:
|
|
2240
|
+
), pe(() => s && s()), (a, o) => (c(), b("div", _n, [
|
|
2241
|
+
_("div", {
|
|
2242
|
+
class: S(r.value),
|
|
2225
2243
|
style: Mt(`transform:translateX(-${(1 - n.value) * 100}%)`)
|
|
2226
2244
|
}, null, 6),
|
|
2227
|
-
|
|
2245
|
+
_("span", wn, k(a.$td("ui.progress", "{progress}% complete", {
|
|
2228
2246
|
progress: n.value * 100
|
|
2229
2247
|
})), 1)
|
|
2230
2248
|
]));
|
|
2231
2249
|
}
|
|
2232
2250
|
});
|
|
2233
|
-
function
|
|
2234
|
-
const s = u(() => t.title ??
|
|
2235
|
-
() => t.message ??
|
|
2251
|
+
function xn(t) {
|
|
2252
|
+
const s = u(() => t.title ?? C("ui.loading", "Loading")), e = u(
|
|
2253
|
+
() => t.message ?? C("ui.loadingInProgress", "Loading in progress...")
|
|
2236
2254
|
), r = u(() => typeof t.progress == "number" || !!t.job), n = u(() => !t.title);
|
|
2237
2255
|
return { renderedTitle: s, renderedMessage: e, titleHidden: n, showProgress: r };
|
|
2238
2256
|
}
|
|
2239
|
-
const
|
|
2257
|
+
const Cn = /* @__PURE__ */ h({
|
|
2240
2258
|
__name: "LoadingModal",
|
|
2241
2259
|
props: {
|
|
2242
2260
|
title: {},
|
|
@@ -2245,21 +2263,21 @@ const $n = /* @__PURE__ */ v({
|
|
|
2245
2263
|
job: {}
|
|
2246
2264
|
},
|
|
2247
2265
|
setup(t, { expose: s }) {
|
|
2248
|
-
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: o } =
|
|
2249
|
-
return s(), (
|
|
2266
|
+
const e = t, { renderedTitle: r, renderedMessage: n, titleHidden: a, showProgress: o } = xn(e);
|
|
2267
|
+
return s(), (i, d) => (c(), m(ne, {
|
|
2250
2268
|
persistent: "",
|
|
2251
|
-
class:
|
|
2269
|
+
class: S(["flex", { "flex-col-reverse": l(o), "items-center justify-center gap-2": !l(o) }]),
|
|
2252
2270
|
"wrapper-class": "w-auto",
|
|
2253
2271
|
title: l(r),
|
|
2254
2272
|
"title-hidden": l(a)
|
|
2255
2273
|
}, {
|
|
2256
2274
|
default: p(() => [
|
|
2257
|
-
l(o) ? (
|
|
2275
|
+
l(o) ? (c(), m($n, {
|
|
2258
2276
|
key: 0,
|
|
2259
|
-
progress:
|
|
2260
|
-
job:
|
|
2277
|
+
progress: i.progress,
|
|
2278
|
+
job: i.job,
|
|
2261
2279
|
class: "min-w-[min(400px,80vw)]"
|
|
2262
|
-
}, null, 8, ["progress", "job"])) : (
|
|
2280
|
+
}, null, 8, ["progress", "job"])) : (c(), m(l(yn), {
|
|
2263
2281
|
key: 1,
|
|
2264
2282
|
class: "text-primary-600 mr-1 size-6"
|
|
2265
2283
|
})),
|
|
@@ -2268,7 +2286,7 @@ const $n = /* @__PURE__ */ v({
|
|
|
2268
2286
|
_: 1
|
|
2269
2287
|
}, 8, ["title", "title-hidden", "class"]));
|
|
2270
2288
|
}
|
|
2271
|
-
}), ht = /* @__PURE__ */
|
|
2289
|
+
}), ht = /* @__PURE__ */ h({
|
|
2272
2290
|
__name: "HeadlessInput",
|
|
2273
2291
|
props: {
|
|
2274
2292
|
name: {},
|
|
@@ -2280,7 +2298,7 @@ const $n = /* @__PURE__ */ v({
|
|
|
2280
2298
|
emits: ["update:modelValue"],
|
|
2281
2299
|
setup(t, { expose: s, emit: e }) {
|
|
2282
2300
|
const r = e, n = oe("form", null), a = u(() => !n || !t.name ? null : n.errors[t.name] ?? null), o = {
|
|
2283
|
-
id: `input-${
|
|
2301
|
+
id: `input-${le()}`,
|
|
2284
2302
|
name: u(() => t.name),
|
|
2285
2303
|
label: u(() => t.label),
|
|
2286
2304
|
description: u(() => t.description),
|
|
@@ -2290,48 +2308,48 @@ const $n = /* @__PURE__ */ v({
|
|
|
2290
2308
|
if (!(!t.name || !n))
|
|
2291
2309
|
return n.getFieldRules(t.name).includes("required");
|
|
2292
2310
|
}),
|
|
2293
|
-
update(
|
|
2311
|
+
update(i) {
|
|
2294
2312
|
if (n && t.name) {
|
|
2295
|
-
n.setFieldValue(t.name,
|
|
2313
|
+
n.setFieldValue(t.name, i);
|
|
2296
2314
|
return;
|
|
2297
2315
|
}
|
|
2298
|
-
r("update:modelValue",
|
|
2316
|
+
r("update:modelValue", i);
|
|
2299
2317
|
}
|
|
2300
2318
|
};
|
|
2301
|
-
return
|
|
2319
|
+
return se("input", o), s(o), (i, d) => (c(), m(N(i.as), null, {
|
|
2302
2320
|
default: p(() => [
|
|
2303
|
-
|
|
2321
|
+
w(i.$slots, "default")
|
|
2304
2322
|
]),
|
|
2305
2323
|
_: 3
|
|
2306
2324
|
}));
|
|
2307
2325
|
}
|
|
2308
|
-
}),
|
|
2326
|
+
}), Sn = ["for"], Ce = /* @__PURE__ */ h({
|
|
2309
2327
|
__name: "HeadlessInputLabel",
|
|
2310
2328
|
setup(t) {
|
|
2311
|
-
const s =
|
|
2312
|
-
return (n, a) => r.value ? (
|
|
2329
|
+
const s = E("input", "<HeadlessInputLabel> must be a child of a <HeadlessInput>"), e = ke(), r = u(() => !!(s.label || e.default));
|
|
2330
|
+
return (n, a) => r.value ? (c(), b("label", {
|
|
2313
2331
|
key: 0,
|
|
2314
2332
|
for: l(s).id
|
|
2315
2333
|
}, [
|
|
2316
|
-
|
|
2317
|
-
V(
|
|
2334
|
+
w(n.$slots, "default", {}, () => [
|
|
2335
|
+
V(k(l(s).label), 1)
|
|
2318
2336
|
])
|
|
2319
|
-
], 8,
|
|
2337
|
+
], 8, Sn)) : M("", !0);
|
|
2320
2338
|
}
|
|
2321
|
-
}),
|
|
2339
|
+
}), kn = ["id", "name", "type", "checked", "required", "aria-invalid", "aria-describedby"], gt = /* @__PURE__ */ h({
|
|
2322
2340
|
__name: "HeadlessInputInput",
|
|
2323
2341
|
props: {
|
|
2324
2342
|
type: { default: "text" }
|
|
2325
2343
|
},
|
|
2326
2344
|
setup(t) {
|
|
2327
|
-
const s =
|
|
2345
|
+
const s = re("$inputRef"), e = E("input", "<HeadlessInputInput> must be a child of a <HeadlessInput>"), r = u(() => e.name ?? void 0), n = u(() => e.value), a = u(() => {
|
|
2328
2346
|
if (t.type === "checkbox")
|
|
2329
2347
|
return !!n.value;
|
|
2330
2348
|
});
|
|
2331
2349
|
function o() {
|
|
2332
|
-
s.value && e.update(
|
|
2350
|
+
s.value && e.update(i());
|
|
2333
2351
|
}
|
|
2334
|
-
function
|
|
2352
|
+
function i() {
|
|
2335
2353
|
if (!s.value)
|
|
2336
2354
|
return null;
|
|
2337
2355
|
switch (t.type) {
|
|
@@ -2346,7 +2364,7 @@ const $n = /* @__PURE__ */ v({
|
|
|
2346
2364
|
return tt(e, () => {
|
|
2347
2365
|
var d;
|
|
2348
2366
|
return (d = s.value) == null ? void 0 : d.focus();
|
|
2349
|
-
}),
|
|
2367
|
+
}), ie(() => {
|
|
2350
2368
|
if (s.value) {
|
|
2351
2369
|
if (t.type === "date") {
|
|
2352
2370
|
s.value.valueAsDate = n.value;
|
|
@@ -2354,7 +2372,7 @@ const $n = /* @__PURE__ */ v({
|
|
|
2354
2372
|
}
|
|
2355
2373
|
s.value.value = n.value ?? null;
|
|
2356
2374
|
}
|
|
2357
|
-
}), (d, g) => (
|
|
2375
|
+
}), (d, g) => (c(), b("input", {
|
|
2358
2376
|
id: l(e).id,
|
|
2359
2377
|
ref: "$inputRef",
|
|
2360
2378
|
name: r.value,
|
|
@@ -2364,38 +2382,38 @@ const $n = /* @__PURE__ */ v({
|
|
|
2364
2382
|
"aria-invalid": l(e).errors ? "true" : "false",
|
|
2365
2383
|
"aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
|
|
2366
2384
|
onInput: o
|
|
2367
|
-
}, null, 40,
|
|
2385
|
+
}, null, 40, kn));
|
|
2368
2386
|
}
|
|
2369
|
-
}),
|
|
2387
|
+
}), Mn = /* @__PURE__ */ h({
|
|
2370
2388
|
inheritAttrs: !1,
|
|
2371
2389
|
__name: "HeadlessInputDescription",
|
|
2372
2390
|
setup(t) {
|
|
2373
|
-
const s =
|
|
2391
|
+
const s = E(
|
|
2374
2392
|
"input",
|
|
2375
2393
|
"<HeadlessInputDescription> must be a child of a <HeadlessInput>"
|
|
2376
2394
|
), e = u(() => typeof s.description == "string" ? s.description : ""), r = u(() => !!s.description);
|
|
2377
|
-
return (n, a) =>
|
|
2395
|
+
return (n, a) => w(n.$slots, "default", {
|
|
2378
2396
|
id: `${l(s).id}-description`
|
|
2379
2397
|
}, () => [
|
|
2380
|
-
r.value ? (
|
|
2398
|
+
r.value ? (c(), m(P, R({ key: 0 }, n.$attrs, {
|
|
2381
2399
|
id: `${l(s).id}-description`,
|
|
2382
2400
|
text: e.value
|
|
2383
2401
|
}), null, 16, ["id", "text"])) : M("", !0)
|
|
2384
2402
|
]);
|
|
2385
2403
|
}
|
|
2386
|
-
}),
|
|
2404
|
+
}), Hn = ["id"], Se = /* @__PURE__ */ h({
|
|
2387
2405
|
__name: "HeadlessInputError",
|
|
2388
2406
|
setup(t) {
|
|
2389
|
-
const s =
|
|
2390
|
-
return (r, n) => e.value ? (
|
|
2407
|
+
const s = E("input", "<HeadlessInputError> must be a child of a <HeadlessInput>"), e = u(() => s.errors ? C(`errors.${s.errors[0]}`, `Error: ${s.errors[0]}`) : null);
|
|
2408
|
+
return (r, n) => e.value ? (c(), b("p", {
|
|
2391
2409
|
key: 0,
|
|
2392
2410
|
id: `${l(s).id}-error`
|
|
2393
|
-
},
|
|
2411
|
+
}, k(e.value), 9, Hn)) : M("", !0);
|
|
2394
2412
|
}
|
|
2395
|
-
}),
|
|
2413
|
+
}), En = {
|
|
2396
2414
|
key: 0,
|
|
2397
2415
|
class: "pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3"
|
|
2398
|
-
},
|
|
2416
|
+
}, In = /* @__PURE__ */ h({
|
|
2399
2417
|
inheritAttrs: !1,
|
|
2400
2418
|
__name: "Input",
|
|
2401
2419
|
props: {
|
|
@@ -2408,39 +2426,39 @@ const $n = /* @__PURE__ */ v({
|
|
|
2408
2426
|
},
|
|
2409
2427
|
emits: ["update:modelValue"],
|
|
2410
2428
|
setup(t) {
|
|
2411
|
-
const s =
|
|
2412
|
-
var
|
|
2413
|
-
return
|
|
2429
|
+
const s = Y(t, ["label", "inputClass", "wrapperClass"]), e = re("$inputRef"), [r, n] = rt(), a = u(() => H("relative rounded-md shadow-2xs", { "mt-1": t.label }, t.wrapperClass)), o = u(() => {
|
|
2430
|
+
var i, d, g;
|
|
2431
|
+
return H(
|
|
2414
2432
|
// eslint-disable-next-line vue/max-len
|
|
2415
2433
|
"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",
|
|
2416
2434
|
{
|
|
2417
|
-
"focus:ring-primary-600": !((
|
|
2435
|
+
"focus:ring-primary-600": !((i = e.value) != null && i.errors),
|
|
2418
2436
|
"text-gray-900 shadow-2xs ring-gray-300 placeholder:text-gray-400": !((d = e.value) != null && d.errors),
|
|
2419
2437
|
"pr-10 text-red-900 ring-red-300 placeholder:text-red-300 focus:ring-red-500": (g = e.value) == null ? void 0 : g.errors
|
|
2420
2438
|
},
|
|
2421
2439
|
t.inputClass
|
|
2422
2440
|
);
|
|
2423
2441
|
});
|
|
2424
|
-
return (
|
|
2442
|
+
return (i, d) => (c(), m(ht, R({
|
|
2425
2443
|
ref: "$inputRef",
|
|
2426
|
-
label:
|
|
2444
|
+
label: i.label,
|
|
2427
2445
|
class: l(n)
|
|
2428
2446
|
}, s, {
|
|
2429
|
-
"onUpdate:modelValue": d[0] || (d[0] = (g) =>
|
|
2447
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.$emit("update:modelValue", g))
|
|
2430
2448
|
}), {
|
|
2431
2449
|
default: p(() => {
|
|
2432
2450
|
var g;
|
|
2433
2451
|
return [
|
|
2434
2452
|
f(Ce, { class: "block text-sm leading-6 font-medium text-gray-900" }),
|
|
2435
|
-
|
|
2436
|
-
class:
|
|
2453
|
+
_("div", {
|
|
2454
|
+
class: S(a.value)
|
|
2437
2455
|
}, [
|
|
2438
|
-
f(gt,
|
|
2439
|
-
(g = l(e)) != null && g.errors ? (
|
|
2456
|
+
f(gt, R(l(r), { class: o.value }), null, 16, ["class"]),
|
|
2457
|
+
(g = l(e)) != null && g.errors ? (c(), b("div", En, [
|
|
2440
2458
|
f(l(ft), { class: "size-5 text-red-500" })
|
|
2441
2459
|
])) : M("", !0)
|
|
2442
2460
|
], 2),
|
|
2443
|
-
f(
|
|
2461
|
+
f(Mn, { class: "mt-2 text-sm text-gray-600" }),
|
|
2444
2462
|
f(Se, { class: "mt-2 text-sm text-red-600" })
|
|
2445
2463
|
];
|
|
2446
2464
|
}),
|
|
@@ -2448,83 +2466,83 @@ const $n = /* @__PURE__ */ v({
|
|
|
2448
2466
|
}, 16, ["label", "class"]));
|
|
2449
2467
|
}
|
|
2450
2468
|
});
|
|
2451
|
-
function
|
|
2469
|
+
function La(t, s = {}) {
|
|
2452
2470
|
return {
|
|
2453
2471
|
default: t,
|
|
2454
2472
|
type: "boolean",
|
|
2455
2473
|
rules: s.rules
|
|
2456
2474
|
};
|
|
2457
2475
|
}
|
|
2458
|
-
function
|
|
2476
|
+
function Ra(t, s = {}) {
|
|
2459
2477
|
return {
|
|
2460
2478
|
default: t,
|
|
2461
2479
|
type: "date",
|
|
2462
2480
|
rules: s.rules
|
|
2463
2481
|
};
|
|
2464
2482
|
}
|
|
2465
|
-
function
|
|
2483
|
+
function Va(t) {
|
|
2466
2484
|
return {
|
|
2467
2485
|
default: t,
|
|
2468
2486
|
type: "boolean",
|
|
2469
2487
|
rules: "required"
|
|
2470
2488
|
};
|
|
2471
2489
|
}
|
|
2472
|
-
function
|
|
2490
|
+
function Pa(t) {
|
|
2473
2491
|
return {
|
|
2474
2492
|
default: t,
|
|
2475
2493
|
type: "date",
|
|
2476
2494
|
rules: "required"
|
|
2477
2495
|
};
|
|
2478
2496
|
}
|
|
2479
|
-
function
|
|
2497
|
+
function Aa(t) {
|
|
2480
2498
|
return {
|
|
2481
2499
|
default: t,
|
|
2482
2500
|
type: "number",
|
|
2483
2501
|
rules: "required"
|
|
2484
2502
|
};
|
|
2485
2503
|
}
|
|
2486
|
-
function
|
|
2504
|
+
function ja(t) {
|
|
2487
2505
|
return {
|
|
2488
2506
|
default: t,
|
|
2489
2507
|
type: "object",
|
|
2490
2508
|
rules: "required"
|
|
2491
2509
|
};
|
|
2492
2510
|
}
|
|
2493
|
-
function
|
|
2511
|
+
function Tn(t) {
|
|
2494
2512
|
return {
|
|
2495
2513
|
default: t,
|
|
2496
2514
|
type: "string",
|
|
2497
2515
|
rules: "required"
|
|
2498
2516
|
};
|
|
2499
2517
|
}
|
|
2500
|
-
function
|
|
2518
|
+
function za(t, s = {}) {
|
|
2501
2519
|
return {
|
|
2502
2520
|
default: t,
|
|
2503
2521
|
type: "number",
|
|
2504
2522
|
rules: s.rules
|
|
2505
2523
|
};
|
|
2506
2524
|
}
|
|
2507
|
-
function
|
|
2525
|
+
function Da(t, s = {}) {
|
|
2508
2526
|
return {
|
|
2509
2527
|
default: t,
|
|
2510
2528
|
type: "object",
|
|
2511
2529
|
rules: s.rules
|
|
2512
2530
|
};
|
|
2513
2531
|
}
|
|
2514
|
-
function
|
|
2532
|
+
function Ba(t, s = {}) {
|
|
2515
2533
|
return {
|
|
2516
2534
|
default: t,
|
|
2517
2535
|
type: "string",
|
|
2518
2536
|
rules: s.rules
|
|
2519
2537
|
};
|
|
2520
2538
|
}
|
|
2521
|
-
function
|
|
2539
|
+
function Ln(t) {
|
|
2522
2540
|
const s = st({
|
|
2523
|
-
draft:
|
|
2524
|
-
}), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ??
|
|
2541
|
+
draft: Tn(t.defaultValue ?? "")
|
|
2542
|
+
}), e = u(() => t.title ?? t.message), r = u(() => t.title ? t.message : null), n = u(() => t.acceptText ?? C("ui.accept", "Ok")), a = u(() => t.cancelText ?? C("ui.cancel", "Cancel"));
|
|
2525
2543
|
return { form: s, renderedTitle: e, renderedMessage: r, renderedAcceptText: n, renderedCancelText: a };
|
|
2526
2544
|
}
|
|
2527
|
-
const
|
|
2545
|
+
const Rn = { class: "mt-4 flex flex-row-reverse gap-2" }, Vn = /* @__PURE__ */ h({
|
|
2528
2546
|
__name: "PromptModal",
|
|
2529
2547
|
props: {
|
|
2530
2548
|
title: {},
|
|
@@ -2538,43 +2556,43 @@ const Ln = { class: "mt-4 flex flex-row-reverse gap-2" }, Rn = /* @__PURE__ */ v
|
|
|
2538
2556
|
cancelVariant: { default: "secondary" }
|
|
2539
2557
|
},
|
|
2540
2558
|
setup(t, { expose: s }) {
|
|
2541
|
-
const e =
|
|
2542
|
-
return s(), (d, g) => (
|
|
2559
|
+
const e = Y(t, ["cancelVariant"]), { form: r, renderedTitle: n, renderedMessage: a, renderedAcceptText: o, renderedCancelText: i } = Ln(e);
|
|
2560
|
+
return s(), (d, g) => (c(), m(ne, {
|
|
2543
2561
|
title: l(n),
|
|
2544
2562
|
persistent: ""
|
|
2545
2563
|
}, {
|
|
2546
|
-
default: p(({ close:
|
|
2564
|
+
default: p(({ close: x }) => [
|
|
2547
2565
|
f(pt, {
|
|
2548
2566
|
form: l(r),
|
|
2549
|
-
onSubmit: (
|
|
2567
|
+
onSubmit: (v) => x(l(r).draft)
|
|
2550
2568
|
}, {
|
|
2551
2569
|
default: p(() => [
|
|
2552
|
-
l(a) ? (
|
|
2570
|
+
l(a) ? (c(), m(P, {
|
|
2553
2571
|
key: 0,
|
|
2554
2572
|
text: l(a)
|
|
2555
2573
|
}, null, 8, ["text"])) : M("", !0),
|
|
2556
|
-
f(
|
|
2574
|
+
f(In, {
|
|
2557
2575
|
name: "draft",
|
|
2558
2576
|
class: "mt-2",
|
|
2559
2577
|
placeholder: d.placeholder,
|
|
2560
2578
|
label: d.label
|
|
2561
2579
|
}, null, 8, ["placeholder", "label"]),
|
|
2562
|
-
|
|
2563
|
-
f(
|
|
2580
|
+
_("div", Rn, [
|
|
2581
|
+
f(j, {
|
|
2564
2582
|
variant: d.acceptVariant,
|
|
2565
2583
|
submit: ""
|
|
2566
2584
|
}, {
|
|
2567
2585
|
default: p(() => [
|
|
2568
|
-
V(
|
|
2586
|
+
V(k(l(o)), 1)
|
|
2569
2587
|
]),
|
|
2570
2588
|
_: 1
|
|
2571
2589
|
}, 8, ["variant"]),
|
|
2572
|
-
f(
|
|
2590
|
+
f(j, {
|
|
2573
2591
|
variant: d.cancelVariant,
|
|
2574
|
-
onClick: (
|
|
2592
|
+
onClick: (v) => x()
|
|
2575
2593
|
}, {
|
|
2576
2594
|
default: p(() => [
|
|
2577
|
-
V(
|
|
2595
|
+
V(k(l(i)), 1)
|
|
2578
2596
|
]),
|
|
2579
2597
|
_: 2
|
|
2580
2598
|
}, 1032, ["variant", "onClick"])
|
|
@@ -2586,12 +2604,12 @@ const Ln = { class: "mt-4 flex flex-row-reverse gap-2" }, Rn = /* @__PURE__ */ v
|
|
|
2586
2604
|
_: 1
|
|
2587
2605
|
}, 8, ["title"]));
|
|
2588
2606
|
}
|
|
2589
|
-
}),
|
|
2607
|
+
}), Pn = { class: "grid grow place-items-center" }, An = { class: "flex flex-col items-center space-y-6 p-8" }, jn = { class: "mt-2 text-center text-4xl font-medium text-red-600" }, zn = { class: "mt-4 flex flex-col space-y-4" }, Dn = /* @__PURE__ */ h({
|
|
2590
2608
|
__name: "StartupCrash",
|
|
2591
2609
|
setup(t) {
|
|
2592
|
-
return (s, e) => (
|
|
2593
|
-
|
|
2594
|
-
|
|
2610
|
+
return (s, e) => (c(), b("div", Pn, [
|
|
2611
|
+
_("div", An, [
|
|
2612
|
+
_("h1", jn, k(s.$td("startupCrash.title", "Something went wrong!")), 1),
|
|
2595
2613
|
f(P, {
|
|
2596
2614
|
text: s.$td(
|
|
2597
2615
|
"startupCrash.message",
|
|
@@ -2601,22 +2619,22 @@ Here's some things you can do:`
|
|
|
2601
2619
|
),
|
|
2602
2620
|
class: "mt-4 text-center"
|
|
2603
2621
|
}, null, 8, ["text"]),
|
|
2604
|
-
|
|
2605
|
-
f(
|
|
2622
|
+
_("div", zn, [
|
|
2623
|
+
f(j, {
|
|
2606
2624
|
variant: "danger",
|
|
2607
2625
|
onClick: e[0] || (e[0] = (r) => s.$app.reload())
|
|
2608
2626
|
}, {
|
|
2609
2627
|
default: p(() => [
|
|
2610
|
-
V(
|
|
2628
|
+
V(k(s.$td("startupCrash.reload", "Try again")), 1)
|
|
2611
2629
|
]),
|
|
2612
2630
|
_: 1
|
|
2613
2631
|
}),
|
|
2614
|
-
f(
|
|
2632
|
+
f(j, {
|
|
2615
2633
|
variant: "danger",
|
|
2616
2634
|
onClick: e[1] || (e[1] = (r) => s.$errors.inspect(s.$errors.startupErrors))
|
|
2617
2635
|
}, {
|
|
2618
2636
|
default: p(() => [
|
|
2619
|
-
V(
|
|
2637
|
+
V(k(s.$td("startupCrash.inspect", "View error details")), 1)
|
|
2620
2638
|
]),
|
|
2621
2639
|
_: 1
|
|
2622
2640
|
})
|
|
@@ -2624,23 +2642,23 @@ Here's some things you can do:`
|
|
|
2624
2642
|
])
|
|
2625
2643
|
]));
|
|
2626
2644
|
}
|
|
2627
|
-
}), vt = /* @__PURE__ */
|
|
2645
|
+
}), vt = /* @__PURE__ */ h({
|
|
2628
2646
|
__name: "HeadlessToastAction",
|
|
2629
2647
|
props: {
|
|
2630
2648
|
action: {}
|
|
2631
2649
|
},
|
|
2632
2650
|
setup(t) {
|
|
2633
|
-
return (s, e) => (
|
|
2651
|
+
return (s, e) => (c(), m(N(s.action.dismiss ? l(ms) : "button"), {
|
|
2634
2652
|
type: "button",
|
|
2635
2653
|
onClick: s.action.click
|
|
2636
2654
|
}, {
|
|
2637
2655
|
default: p(() => [
|
|
2638
|
-
V(
|
|
2656
|
+
V(k(s.action.label), 1)
|
|
2639
2657
|
]),
|
|
2640
2658
|
_: 1
|
|
2641
2659
|
}, 8, ["onClick"]));
|
|
2642
2660
|
}
|
|
2643
|
-
}),
|
|
2661
|
+
}), Bn = { key: 0 }, qn = /* @__PURE__ */ h({
|
|
2644
2662
|
__name: "HeadlessToast",
|
|
2645
2663
|
props: {
|
|
2646
2664
|
message: {},
|
|
@@ -2648,11 +2666,11 @@ Here's some things you can do:`
|
|
|
2648
2666
|
variant: {}
|
|
2649
2667
|
},
|
|
2650
2668
|
setup(t) {
|
|
2651
|
-
return (s, e) => (
|
|
2669
|
+
return (s, e) => (c(), m(l(fs), null, {
|
|
2652
2670
|
default: p(() => [
|
|
2653
|
-
|
|
2654
|
-
s.message ? (
|
|
2655
|
-
(
|
|
2671
|
+
w(s.$slots, "default", {}, () => [
|
|
2672
|
+
s.message ? (c(), b("span", Bn, k(s.message), 1)) : M("", !0),
|
|
2673
|
+
(c(!0), b(B, null, F(s.actions, (r, n) => (c(), m(vt, {
|
|
2656
2674
|
key: n,
|
|
2657
2675
|
action: r
|
|
2658
2676
|
}, null, 8, ["action"]))), 128))
|
|
@@ -2661,7 +2679,7 @@ Here's some things you can do:`
|
|
|
2661
2679
|
_: 3
|
|
2662
2680
|
}));
|
|
2663
2681
|
}
|
|
2664
|
-
}),
|
|
2682
|
+
}), Fn = /* @__PURE__ */ h({
|
|
2665
2683
|
__name: "Toast",
|
|
2666
2684
|
props: {
|
|
2667
2685
|
message: {},
|
|
@@ -2670,7 +2688,7 @@ Here's some things you can do:`
|
|
|
2670
2688
|
class: {}
|
|
2671
2689
|
},
|
|
2672
2690
|
setup(t, { expose: s }) {
|
|
2673
|
-
const e = Ye(
|
|
2691
|
+
const e = u(() => Ye(
|
|
2674
2692
|
{ baseClasses: t.class, variant: t.variant },
|
|
2675
2693
|
{
|
|
2676
2694
|
baseClasses: "flex items-center gap-2 rounded-md p-2 ring-1 shadow-lg border-gray-200",
|
|
@@ -2684,17 +2702,17 @@ Here's some things you can do:`
|
|
|
2684
2702
|
variant: "secondary"
|
|
2685
2703
|
}
|
|
2686
2704
|
}
|
|
2687
|
-
);
|
|
2688
|
-
return s(), (r, n) => (
|
|
2689
|
-
class:
|
|
2705
|
+
));
|
|
2706
|
+
return s(), (r, n) => (c(), m(qn, {
|
|
2707
|
+
class: S(e.value)
|
|
2690
2708
|
}, {
|
|
2691
2709
|
default: p(() => [
|
|
2692
|
-
r.message ? (
|
|
2710
|
+
r.message ? (c(), m(P, {
|
|
2693
2711
|
key: 0,
|
|
2694
2712
|
text: r.message,
|
|
2695
2713
|
inline: ""
|
|
2696
2714
|
}, null, 8, ["text"])) : M("", !0),
|
|
2697
|
-
(
|
|
2715
|
+
(c(!0), b(B, null, F(r.actions, (a, o) => (c(), m(j, {
|
|
2698
2716
|
key: o,
|
|
2699
2717
|
action: a,
|
|
2700
2718
|
variant: r.variant,
|
|
@@ -2704,50 +2722,50 @@ Here's some things you can do:`
|
|
|
2704
2722
|
_: 1
|
|
2705
2723
|
}, 8, ["class"]));
|
|
2706
2724
|
}
|
|
2707
|
-
}),
|
|
2725
|
+
}), Un = { $ui: L }, On = {
|
|
2708
2726
|
async install(t, s) {
|
|
2709
2727
|
const e = {
|
|
2710
|
-
"alert-modal":
|
|
2711
|
-
"confirm-modal":
|
|
2712
|
-
"error-report-modal":
|
|
2713
|
-
"loading-modal":
|
|
2714
|
-
"prompt-modal":
|
|
2715
|
-
"startup-crash":
|
|
2716
|
-
toast:
|
|
2728
|
+
"alert-modal": Vr,
|
|
2729
|
+
"confirm-modal": qr,
|
|
2730
|
+
"error-report-modal": gn,
|
|
2731
|
+
"loading-modal": Cn,
|
|
2732
|
+
"prompt-modal": Vn,
|
|
2733
|
+
"startup-crash": Dn,
|
|
2734
|
+
toast: Fn,
|
|
2717
2735
|
...s.components
|
|
2718
2736
|
};
|
|
2719
2737
|
for (const [r, n] of Object.entries(e))
|
|
2720
|
-
|
|
2721
|
-
await
|
|
2738
|
+
L.registerComponent(r, n);
|
|
2739
|
+
await ge(t, Un);
|
|
2722
2740
|
}
|
|
2723
2741
|
};
|
|
2724
|
-
async function
|
|
2742
|
+
async function Nn(t, s = {}) {
|
|
2725
2743
|
var r;
|
|
2726
|
-
const e = [
|
|
2727
|
-
z.instance = t, await
|
|
2744
|
+
const e = [$r, js, er, wr, Fs, On, ...s.plugins ?? []];
|
|
2745
|
+
z.instance = t, await Ts(e, t, s), await ((r = s.install) == null ? void 0 : r.call(s, t)), await T.emit("application-ready");
|
|
2728
2746
|
}
|
|
2729
|
-
async function
|
|
2747
|
+
async function qa(t, s = {}) {
|
|
2730
2748
|
var r;
|
|
2731
|
-
const e =
|
|
2732
|
-
|
|
2749
|
+
const e = Ht(t);
|
|
2750
|
+
X() && (window.$aerogel = e), await Nn(e, s), e.mount("#app"), (r = e._container) == null || r.classList.remove("loading"), await T.emit("application-mounted");
|
|
2733
2751
|
}
|
|
2734
|
-
const
|
|
2752
|
+
const Wn = { key: 0 }, Kn = /* @__PURE__ */ h({
|
|
2735
2753
|
__name: "AppModals",
|
|
2736
2754
|
setup(t) {
|
|
2737
|
-
const s = u(() =>
|
|
2738
|
-
return (e, r) => s.value ? (
|
|
2755
|
+
const s = u(() => L.modals[0] ?? null);
|
|
2756
|
+
return (e, r) => s.value ? (c(), b("aside", Wn, [
|
|
2739
2757
|
f(dt, {
|
|
2740
2758
|
"child-index": 1,
|
|
2741
2759
|
modal: s.value
|
|
2742
2760
|
}, null, 8, ["modal"])
|
|
2743
2761
|
])) : M("", !0);
|
|
2744
2762
|
}
|
|
2745
|
-
}),
|
|
2763
|
+
}), Qn = /* @__PURE__ */ h({
|
|
2746
2764
|
__name: "AppToasts",
|
|
2747
2765
|
setup(t) {
|
|
2748
|
-
return (s, e) => (
|
|
2766
|
+
return (s, e) => (c(), m(l(hs), null, {
|
|
2749
2767
|
default: p(() => [
|
|
2750
|
-
(
|
|
2768
|
+
(c(!0), b(B, null, F(s.$ui.toasts, (r) => (c(), m(N(r.component), R({
|
|
2751
2769
|
id: r.id,
|
|
2752
2770
|
key: r.id,
|
|
2753
2771
|
ref_for: !0
|
|
@@ -2757,28 +2775,28 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2757
2775
|
_: 1
|
|
2758
2776
|
}));
|
|
2759
2777
|
}
|
|
2760
|
-
}),
|
|
2778
|
+
}), Jn = /* @__PURE__ */ h({
|
|
2761
2779
|
__name: "AppOverlays",
|
|
2762
2780
|
setup(t) {
|
|
2763
|
-
return (s, e) => (
|
|
2764
|
-
f(
|
|
2765
|
-
f(
|
|
2781
|
+
return (s, e) => (c(), b(B, null, [
|
|
2782
|
+
f(Kn),
|
|
2783
|
+
f(Qn)
|
|
2766
2784
|
], 64));
|
|
2767
2785
|
}
|
|
2768
|
-
}),
|
|
2786
|
+
}), Zn = { class: "flex min-h-full flex-col text-base leading-tight font-normal text-gray-900 antialiased" }, Fa = /* @__PURE__ */ h({
|
|
2769
2787
|
__name: "AppLayout",
|
|
2770
2788
|
setup(t) {
|
|
2771
|
-
return (s, e) => (
|
|
2772
|
-
s.$errors.hasStartupErrors ?
|
|
2773
|
-
(
|
|
2774
|
-
]) :
|
|
2775
|
-
f(
|
|
2789
|
+
return (s, e) => (c(), b("div", Zn, [
|
|
2790
|
+
s.$errors.hasStartupErrors ? w(s.$slots, "startup-crash", { key: 0 }, () => [
|
|
2791
|
+
(c(), m(N(s.$ui.requireComponent("startup-crash"))))
|
|
2792
|
+
]) : w(s.$slots, "default", { key: 1 }),
|
|
2793
|
+
f(Jn)
|
|
2776
2794
|
]));
|
|
2777
2795
|
}
|
|
2778
|
-
}),
|
|
2796
|
+
}), Gn = ["id", "name", "value", "required", "aria-invalid", "aria-describedby"], Ua = /* @__PURE__ */ h({
|
|
2779
2797
|
__name: "HeadlessInputTextArea",
|
|
2780
2798
|
setup(t) {
|
|
2781
|
-
const s =
|
|
2799
|
+
const s = re("$textAreaRef"), e = E(
|
|
2782
2800
|
"input",
|
|
2783
2801
|
"<HeadlessInputTextArea> must be a child of a <HeadlessInput>"
|
|
2784
2802
|
), r = u(() => e.name ?? void 0), n = u(() => e.value);
|
|
@@ -2788,7 +2806,7 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2788
2806
|
return tt(e, () => {
|
|
2789
2807
|
var o;
|
|
2790
2808
|
return (o = s.value) == null ? void 0 : o.focus();
|
|
2791
|
-
}), (o,
|
|
2809
|
+
}), (o, i) => (c(), b("textarea", {
|
|
2792
2810
|
id: l(e).id,
|
|
2793
2811
|
ref: "$textAreaRef",
|
|
2794
2812
|
name: r.value,
|
|
@@ -2797,22 +2815,22 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2797
2815
|
"aria-invalid": l(e).errors ? "true" : "false",
|
|
2798
2816
|
"aria-describedby": l(e).errors ? `${l(e).id}-error` : l(e).description ? `${l(e).id}-description` : void 0,
|
|
2799
2817
|
onInput: a
|
|
2800
|
-
}, null, 40,
|
|
2818
|
+
}, null, 40, Gn));
|
|
2801
2819
|
}
|
|
2802
|
-
}),
|
|
2820
|
+
}), Xn = { class: "group" }, Yn = { 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" }, ea = { class: "pt-2 pl-4" }, Oa = /* @__PURE__ */ h({
|
|
2803
2821
|
__name: "AdvancedOptions",
|
|
2804
2822
|
setup(t) {
|
|
2805
|
-
return (s, e) => (
|
|
2806
|
-
|
|
2823
|
+
return (s, e) => (c(), b("details", Xn, [
|
|
2824
|
+
_("summary", Yn, [
|
|
2807
2825
|
f(l(mt), { class: "size-6 transition-transform group-open:rotate-90" }),
|
|
2808
|
-
|
|
2826
|
+
_("span", null, k(s.$td("ui.advancedOptions", "Advanced options")), 1)
|
|
2809
2827
|
]),
|
|
2810
|
-
|
|
2811
|
-
|
|
2828
|
+
_("div", ea, [
|
|
2829
|
+
w(s.$slots, "default")
|
|
2812
2830
|
])
|
|
2813
2831
|
]));
|
|
2814
2832
|
}
|
|
2815
|
-
}),
|
|
2833
|
+
}), ta = { class: "flex h-6 items-center" }, Na = /* @__PURE__ */ h({
|
|
2816
2834
|
inheritAttrs: !1,
|
|
2817
2835
|
__name: "Checkbox",
|
|
2818
2836
|
props: {
|
|
@@ -2825,9 +2843,9 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2825
2843
|
},
|
|
2826
2844
|
emits: ["update:modelValue"],
|
|
2827
2845
|
setup(t) {
|
|
2828
|
-
const s =
|
|
2846
|
+
const s = Y(t, ["inputClass", "labelClass"]), e = re("$inputRef"), [r, n] = rt(), a = u(() => H("relative flex items-start", n.value)), o = u(() => {
|
|
2829
2847
|
var d, g;
|
|
2830
|
-
return
|
|
2848
|
+
return H(
|
|
2831
2849
|
"size-4 rounded text-primary-600 not-checked:hover:bg-gray-200 checked:hover:text-primary-500 checked:border-0",
|
|
2832
2850
|
{
|
|
2833
2851
|
"border-gray-300 focus:ring-primary-600": !((d = e.value) != null && d.errors),
|
|
@@ -2835,34 +2853,34 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2835
2853
|
},
|
|
2836
2854
|
t.inputClass
|
|
2837
2855
|
);
|
|
2838
|
-
}),
|
|
2839
|
-
return (d, g) => (
|
|
2856
|
+
}), i = u(() => H("ml-2 text-sm leading-6", t.labelClass));
|
|
2857
|
+
return (d, g) => (c(), m(ht, R({
|
|
2840
2858
|
ref: "$inputRef",
|
|
2841
2859
|
class: a.value
|
|
2842
2860
|
}, s, {
|
|
2843
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
2861
|
+
"onUpdate:modelValue": g[0] || (g[0] = (x) => d.$emit("update:modelValue", x))
|
|
2844
2862
|
}), {
|
|
2845
2863
|
default: p(() => [
|
|
2846
|
-
|
|
2847
|
-
f(gt,
|
|
2864
|
+
_("div", ta, [
|
|
2865
|
+
f(gt, R(l(r), {
|
|
2848
2866
|
type: "checkbox",
|
|
2849
2867
|
class: o.value
|
|
2850
2868
|
}), null, 16, ["class"])
|
|
2851
2869
|
]),
|
|
2852
|
-
d.$slots.default ? (
|
|
2870
|
+
d.$slots.default ? (c(), b("div", {
|
|
2853
2871
|
key: 0,
|
|
2854
|
-
class:
|
|
2872
|
+
class: S(i.value)
|
|
2855
2873
|
}, [
|
|
2856
2874
|
f(Ce, { class: "text-gray-900" }, {
|
|
2857
2875
|
default: p(() => [
|
|
2858
|
-
|
|
2876
|
+
w(d.$slots, "default")
|
|
2859
2877
|
]),
|
|
2860
2878
|
_: 3
|
|
2861
2879
|
}),
|
|
2862
2880
|
f(Se, { class: "text-red-600" })
|
|
2863
|
-
], 2)) : d.label ? (
|
|
2881
|
+
], 2)) : d.label ? (c(), b("div", {
|
|
2864
2882
|
key: 1,
|
|
2865
|
-
class:
|
|
2883
|
+
class: S(i.value)
|
|
2866
2884
|
}, [
|
|
2867
2885
|
f(Ce, { class: "text-gray-900" }),
|
|
2868
2886
|
f(Se, { class: "text-red-600" })
|
|
@@ -2871,40 +2889,40 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2871
2889
|
_: 3
|
|
2872
2890
|
}, 16, ["class"]));
|
|
2873
2891
|
}
|
|
2874
|
-
}),
|
|
2892
|
+
}), sa = /* @__PURE__ */ h({
|
|
2875
2893
|
__name: "DropdownMenuOption",
|
|
2876
2894
|
emits: ["select"],
|
|
2877
2895
|
setup(t) {
|
|
2878
|
-
return (s, e) => (
|
|
2896
|
+
return (s, e) => (c(), m(l(vs), {
|
|
2879
2897
|
class: "flex w-full items-center gap-2 rounded-lg px-2 py-2 text-sm text-gray-900 data-[highlighted]:bg-gray-100",
|
|
2880
2898
|
onSelect: e[0] || (e[0] = (r) => s.$emit("select"))
|
|
2881
2899
|
}, {
|
|
2882
2900
|
default: p(() => [
|
|
2883
|
-
|
|
2901
|
+
w(s.$slots, "default")
|
|
2884
2902
|
]),
|
|
2885
2903
|
_: 3
|
|
2886
2904
|
}));
|
|
2887
2905
|
}
|
|
2888
|
-
}),
|
|
2906
|
+
}), ra = /* @__PURE__ */ h({
|
|
2889
2907
|
__name: "DropdownMenuOptions",
|
|
2890
2908
|
setup(t) {
|
|
2891
|
-
const s =
|
|
2909
|
+
const s = E(
|
|
2892
2910
|
"dropdown-menu",
|
|
2893
2911
|
"<DropdownMenuOptions> must be a child of a <DropdownMenu>"
|
|
2894
2912
|
);
|
|
2895
|
-
return (e, r) => (
|
|
2913
|
+
return (e, r) => (c(), m(l(bs), {
|
|
2896
2914
|
class: "gap-y-0.5 rounded-lg bg-white p-1.5 shadow-lg ring-1 ring-black/5",
|
|
2897
2915
|
align: l(s).align,
|
|
2898
2916
|
side: l(s).side
|
|
2899
2917
|
}, {
|
|
2900
2918
|
default: p(() => [
|
|
2901
|
-
|
|
2902
|
-
(
|
|
2919
|
+
w(e.$slots, "default", {}, () => [
|
|
2920
|
+
(c(!0), b(B, null, F(l(s).options, (n, a) => (c(), m(sa, {
|
|
2903
2921
|
key: a,
|
|
2904
2922
|
onSelect: n.click
|
|
2905
2923
|
}, {
|
|
2906
2924
|
default: p(() => [
|
|
2907
|
-
V(
|
|
2925
|
+
V(k(n.label), 1)
|
|
2908
2926
|
]),
|
|
2909
2927
|
_: 2
|
|
2910
2928
|
}, 1032, ["onSelect"]))), 128))
|
|
@@ -2913,7 +2931,7 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2913
2931
|
_: 3
|
|
2914
2932
|
}, 8, ["align", "side"]));
|
|
2915
2933
|
}
|
|
2916
|
-
}),
|
|
2934
|
+
}), Wa = /* @__PURE__ */ h({
|
|
2917
2935
|
__name: "DropdownMenu",
|
|
2918
2936
|
props: {
|
|
2919
2937
|
align: {},
|
|
@@ -2929,18 +2947,18 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2929
2947
|
return (r = t.options) == null ? void 0 : r.filter(Boolean);
|
|
2930
2948
|
})
|
|
2931
2949
|
};
|
|
2932
|
-
return
|
|
2950
|
+
return se("dropdown-menu", e), s(e), (r, n) => (c(), m(l(ys), null, {
|
|
2933
2951
|
default: p(() => [
|
|
2934
2952
|
f(l(_s), null, {
|
|
2935
2953
|
default: p(() => [
|
|
2936
|
-
|
|
2954
|
+
w(r.$slots, "default")
|
|
2937
2955
|
]),
|
|
2938
2956
|
_: 3
|
|
2939
2957
|
}),
|
|
2940
2958
|
f(l(ws), null, {
|
|
2941
2959
|
default: p(() => [
|
|
2942
|
-
|
|
2943
|
-
f(
|
|
2960
|
+
w(r.$slots, "options", {}, () => [
|
|
2961
|
+
f(ra)
|
|
2944
2962
|
])
|
|
2945
2963
|
]),
|
|
2946
2964
|
_: 3
|
|
@@ -2949,7 +2967,7 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2949
2967
|
_: 3
|
|
2950
2968
|
}));
|
|
2951
2969
|
}
|
|
2952
|
-
}),
|
|
2970
|
+
}), na = ["aria-hidden"], aa = ["tabindex", "aria-label", "type"], Ka = /* @__PURE__ */ h({
|
|
2953
2971
|
__name: "EditableContent",
|
|
2954
2972
|
props: {
|
|
2955
2973
|
type: { default: "text" },
|
|
@@ -2962,69 +2980,69 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
2962
2980
|
},
|
|
2963
2981
|
emits: ["update", "save"],
|
|
2964
2982
|
setup(t, { emit: s }) {
|
|
2965
|
-
const e = s, r =
|
|
2983
|
+
const e = s, r = re("$inputRef"), n = q(null), a = q(t.text), o = u(() => H("inline whitespace-pre", t.contentClass)), i = u(() => H("invisible whitespace-pre", t.contentClass)), d = u(() => H("absolute inset-0 h-full w-full resize-none border-0 bg-transparent p-0 focus:ring-0", t.contentClass));
|
|
2966
2984
|
function g() {
|
|
2967
2985
|
n.value = t.text;
|
|
2968
2986
|
}
|
|
2969
|
-
function
|
|
2987
|
+
function x() {
|
|
2970
2988
|
n.value && (t.type !== "number" && a.value.trim().length === 0 && (a.value = n.value, e("update", a.value)), n.value = null, e("save"));
|
|
2971
2989
|
}
|
|
2972
|
-
return
|
|
2973
|
-
class:
|
|
2990
|
+
return ie(() => a.value = t.text), (v, y) => (c(), b("div", {
|
|
2991
|
+
class: S(["relative", { "pointer-events-none!": v.disabled && !n.value }])
|
|
2974
2992
|
}, [
|
|
2975
|
-
n.value ? (
|
|
2993
|
+
n.value ? (c(), b("span", {
|
|
2976
2994
|
key: 1,
|
|
2977
|
-
class:
|
|
2978
|
-
},
|
|
2995
|
+
class: S(i.value)
|
|
2996
|
+
}, k(a.value), 3)) : (c(), b("div", {
|
|
2979
2997
|
key: 0,
|
|
2980
|
-
class:
|
|
2998
|
+
class: S(o.value)
|
|
2981
2999
|
}, [
|
|
2982
|
-
|
|
3000
|
+
w(v.$slots, "default")
|
|
2983
3001
|
], 2)),
|
|
2984
|
-
|
|
3002
|
+
v.type === "number" ? (c(), b("span", {
|
|
2985
3003
|
key: 2,
|
|
2986
|
-
class:
|
|
3004
|
+
class: S(["inline-block transition-[width]", n.value ? "w-5" : "w-0"])
|
|
2987
3005
|
}, null, 2)) : M("", !0),
|
|
2988
|
-
|
|
3006
|
+
_("form", {
|
|
2989
3007
|
class: "w-full",
|
|
2990
|
-
"aria-hidden":
|
|
2991
|
-
onSubmit:
|
|
2992
|
-
var
|
|
2993
|
-
return (
|
|
3008
|
+
"aria-hidden": v.formAriaHidden,
|
|
3009
|
+
onSubmit: y[4] || (y[4] = qe((I) => {
|
|
3010
|
+
var W;
|
|
3011
|
+
return (W = l(r)) == null ? void 0 : W.blur();
|
|
2994
3012
|
}, ["prevent"]))
|
|
2995
3013
|
}, [
|
|
2996
|
-
Fe(
|
|
3014
|
+
Fe(_("input", {
|
|
2997
3015
|
ref: "$inputRef",
|
|
2998
|
-
"onUpdate:modelValue":
|
|
2999
|
-
tabindex:
|
|
3000
|
-
"aria-label":
|
|
3001
|
-
type:
|
|
3002
|
-
class:
|
|
3016
|
+
"onUpdate:modelValue": y[0] || (y[0] = (I) => a.value = I),
|
|
3017
|
+
tabindex: v.tabindex ?? void 0,
|
|
3018
|
+
"aria-label": v.ariaLabel ?? void 0,
|
|
3019
|
+
type: v.type,
|
|
3020
|
+
class: S([
|
|
3003
3021
|
d.value,
|
|
3004
|
-
{ "opacity-0": !n.value, "appearance-textfield": !n.value &&
|
|
3022
|
+
{ "opacity-0": !n.value, "appearance-textfield": !n.value && v.type === "number" }
|
|
3005
3023
|
]),
|
|
3006
|
-
onKeyup:
|
|
3007
|
-
onFocus:
|
|
3008
|
-
onBlur:
|
|
3009
|
-
}, null, 42,
|
|
3010
|
-
[
|
|
3024
|
+
onKeyup: y[1] || (y[1] = (I) => v.$emit("update", a.value)),
|
|
3025
|
+
onFocus: y[2] || (y[2] = (I) => g()),
|
|
3026
|
+
onBlur: y[3] || (y[3] = (I) => x())
|
|
3027
|
+
}, null, 42, aa), [
|
|
3028
|
+
[Et, a.value]
|
|
3011
3029
|
])
|
|
3012
|
-
], 40,
|
|
3030
|
+
], 40, na)
|
|
3013
3031
|
], 2));
|
|
3014
3032
|
}
|
|
3015
|
-
}),
|
|
3033
|
+
}), Qa = /* @__PURE__ */ h({
|
|
3016
3034
|
__name: "ErrorMessage",
|
|
3017
3035
|
props: {
|
|
3018
3036
|
error: {}
|
|
3019
3037
|
},
|
|
3020
3038
|
setup(t) {
|
|
3021
3039
|
const s = u(() => Zs(t.error));
|
|
3022
|
-
return (e, r) => (
|
|
3040
|
+
return (e, r) => (c(), m(P, {
|
|
3023
3041
|
text: s.value,
|
|
3024
3042
|
inline: ""
|
|
3025
3043
|
}, null, 8, ["text"]));
|
|
3026
3044
|
}
|
|
3027
|
-
}),
|
|
3045
|
+
}), Ja = /* @__PURE__ */ h({
|
|
3028
3046
|
__name: "Link",
|
|
3029
3047
|
props: {
|
|
3030
3048
|
class: {},
|
|
@@ -3039,36 +3057,36 @@ const On = { key: 0 }, Nn = /* @__PURE__ */ v({
|
|
|
3039
3057
|
as: {}
|
|
3040
3058
|
},
|
|
3041
3059
|
setup(t) {
|
|
3042
|
-
return (s, e) => (
|
|
3060
|
+
return (s, e) => (c(), m(j, R({ variant: "link" }, s.$props), {
|
|
3043
3061
|
default: p(() => [
|
|
3044
|
-
|
|
3062
|
+
w(s.$slots, "default")
|
|
3045
3063
|
]),
|
|
3046
3064
|
_: 3
|
|
3047
3065
|
}, 16));
|
|
3048
3066
|
}
|
|
3049
|
-
}),
|
|
3067
|
+
}), Za = /* @__PURE__ */ h({
|
|
3050
3068
|
__name: "SettingsModal",
|
|
3051
3069
|
setup(t) {
|
|
3052
3070
|
const s = u(() => Ft(z.settings, "priority", "desc"));
|
|
3053
|
-
return (e, r) => (
|
|
3071
|
+
return (e, r) => (c(), m(ne, {
|
|
3054
3072
|
title: e.$td("settings.title", "Settings")
|
|
3055
3073
|
}, {
|
|
3056
3074
|
default: p(() => [
|
|
3057
|
-
(
|
|
3075
|
+
(c(!0), b(B, null, F(s.value, (n, a) => (c(), m(N(n.component), { key: a }))), 128))
|
|
3058
3076
|
]),
|
|
3059
3077
|
_: 1
|
|
3060
3078
|
}, 8, ["title"]));
|
|
3061
3079
|
}
|
|
3062
3080
|
});
|
|
3063
|
-
class
|
|
3081
|
+
class Ga {
|
|
3064
3082
|
constructor() {
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
this.status = this.getInitialStatus(), this._listeners = new Ut(), this._started = new
|
|
3083
|
+
$(this, "status");
|
|
3084
|
+
$(this, "_listeners");
|
|
3085
|
+
$(this, "_progress");
|
|
3086
|
+
$(this, "_cancelled");
|
|
3087
|
+
$(this, "_started");
|
|
3088
|
+
$(this, "_completed");
|
|
3089
|
+
this.status = this.getInitialStatus(), this._listeners = new Ut(), this._started = new K(), this._completed = new K();
|
|
3072
3090
|
}
|
|
3073
3091
|
async start() {
|
|
3074
3092
|
this.beforeStart(), this._started.resolve();
|
|
@@ -3077,13 +3095,13 @@ class Qa {
|
|
|
3077
3095
|
} catch (s) {
|
|
3078
3096
|
if (s instanceof Pe)
|
|
3079
3097
|
return;
|
|
3080
|
-
throw
|
|
3098
|
+
throw Z(Ot(s), (e) => {
|
|
3081
3099
|
this._completed.reject(e);
|
|
3082
3100
|
});
|
|
3083
3101
|
}
|
|
3084
3102
|
}
|
|
3085
3103
|
async cancel() {
|
|
3086
|
-
this._cancelled = new
|
|
3104
|
+
this._cancelled = new K(), await this._cancelled;
|
|
3087
3105
|
}
|
|
3088
3106
|
serialize() {
|
|
3089
3107
|
return this.serializeStatus(this.status);
|
|
@@ -3135,134 +3153,135 @@ class Qa {
|
|
|
3135
3153
|
return { ...s };
|
|
3136
3154
|
}
|
|
3137
3155
|
}
|
|
3138
|
-
async function
|
|
3156
|
+
async function Xa(t) {
|
|
3139
3157
|
await t.start();
|
|
3140
3158
|
}
|
|
3141
3159
|
export {
|
|
3142
|
-
|
|
3143
|
-
|
|
3160
|
+
Oa as AdvancedOptions,
|
|
3161
|
+
Vr as AlertModal,
|
|
3144
3162
|
z as App,
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3163
|
+
Fa as AppLayout,
|
|
3164
|
+
Kn as AppModals,
|
|
3165
|
+
Jn as AppOverlays,
|
|
3148
3166
|
Is as AppService,
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3167
|
+
Qn as AppToasts,
|
|
3168
|
+
j as Button,
|
|
3169
|
+
xa as Cache,
|
|
3152
3170
|
zs as CacheService,
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3171
|
+
Na as Checkbox,
|
|
3172
|
+
qr as ConfirmModal,
|
|
3173
|
+
Wa as DropdownMenu,
|
|
3174
|
+
sa as DropdownMenuOption,
|
|
3175
|
+
ra as DropdownMenuOptions,
|
|
3176
|
+
Ka as EditableContent,
|
|
3177
|
+
Qa as ErrorMessage,
|
|
3178
|
+
gn as ErrorReportModal,
|
|
3179
|
+
ln as ErrorReportModalButtons,
|
|
3180
|
+
on as ErrorReportModalTitle,
|
|
3163
3181
|
Ge as Errors,
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3182
|
+
ya as EventListenerPriorities,
|
|
3183
|
+
T as Events,
|
|
3184
|
+
Hs as EventsService,
|
|
3167
3185
|
pt as Form,
|
|
3168
|
-
|
|
3169
|
-
|
|
3186
|
+
dr as FormController,
|
|
3187
|
+
or as HeadlessButton,
|
|
3170
3188
|
ht as HeadlessInput,
|
|
3171
|
-
|
|
3189
|
+
Mn as HeadlessInputDescription,
|
|
3172
3190
|
Se as HeadlessInputError,
|
|
3173
3191
|
gt as HeadlessInputInput,
|
|
3174
3192
|
Ce as HeadlessInputLabel,
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3193
|
+
Ua as HeadlessInputTextArea,
|
|
3194
|
+
kr as HeadlessModal,
|
|
3195
|
+
Mr as HeadlessModalContent,
|
|
3196
|
+
Hr as HeadlessModalDescription,
|
|
3197
|
+
Er as HeadlessModalOverlay,
|
|
3198
|
+
Ir as HeadlessModalTitle,
|
|
3199
|
+
pr as HeadlessSelect,
|
|
3200
|
+
je as HeadlessSelectLabel,
|
|
3201
|
+
lt as HeadlessSelectOption,
|
|
3202
|
+
ot as HeadlessSelectOptions,
|
|
3185
3203
|
at as HeadlessSelectTrigger,
|
|
3186
3204
|
nt as HeadlessSelectValue,
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3205
|
+
qn as HeadlessToast,
|
|
3206
|
+
In as Input,
|
|
3207
|
+
Ga as Job,
|
|
3190
3208
|
Pe as JobCancelledError,
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3209
|
+
J as Lang,
|
|
3210
|
+
de as Layouts,
|
|
3211
|
+
Ja as Link,
|
|
3212
|
+
Cn as LoadingModal,
|
|
3195
3213
|
Qe as MOBILE_BREAKPOINT,
|
|
3196
3214
|
P as Markdown,
|
|
3197
|
-
|
|
3215
|
+
ne as Modal,
|
|
3198
3216
|
dt as ModalContext,
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3217
|
+
$n as ProgressBar,
|
|
3218
|
+
Vn as PromptModal,
|
|
3219
|
+
gr as Select,
|
|
3202
3220
|
it as SelectLabel,
|
|
3203
3221
|
ze as SelectOption,
|
|
3204
3222
|
ct as SelectOptions,
|
|
3205
3223
|
ut as SelectTrigger,
|
|
3206
|
-
|
|
3224
|
+
he as Service,
|
|
3207
3225
|
xe as ServiceBootError,
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3226
|
+
Za as SettingsModal,
|
|
3227
|
+
Dn as StartupCrash,
|
|
3228
|
+
Bs as Storage,
|
|
3229
|
+
Fn as Toast,
|
|
3230
|
+
L as UI,
|
|
3213
3231
|
Os as UIService,
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
me as defineServiceState,
|
|
3232
|
+
Ma as __objectType,
|
|
3233
|
+
La as booleanInput,
|
|
3234
|
+
ge as bootServices,
|
|
3235
|
+
qa as bootstrap,
|
|
3236
|
+
Nn as bootstrapApplication,
|
|
3237
|
+
H as classes,
|
|
3238
|
+
Ia as computedAsync,
|
|
3239
|
+
Ta as computedDebounce,
|
|
3240
|
+
Ra as dateInput,
|
|
3241
|
+
$a as defineDirective,
|
|
3242
|
+
ka as defineFormValidationRule,
|
|
3243
|
+
wa as definePlugin,
|
|
3244
|
+
fe as defineServiceState,
|
|
3228
3245
|
Ms as defineServiceStore,
|
|
3229
|
-
|
|
3230
|
-
|
|
3246
|
+
_a as defineSettings,
|
|
3247
|
+
Xa as dispatch,
|
|
3231
3248
|
Je as getCurrentLayout,
|
|
3232
3249
|
Zs as getErrorMessage,
|
|
3233
3250
|
ks as getPiniaStore,
|
|
3234
|
-
|
|
3251
|
+
ir as hasSelectOptionLabel,
|
|
3235
3252
|
Vs as injectOrFail,
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3253
|
+
Rs as injectReactive,
|
|
3254
|
+
E as injectReactiveOrFail,
|
|
3255
|
+
Ts as installPlugins,
|
|
3256
|
+
za as numberInput,
|
|
3257
|
+
Da as objectInput,
|
|
3258
|
+
Ha as onCleanMounted,
|
|
3242
3259
|
tt as onFormFocus,
|
|
3243
|
-
|
|
3244
|
-
|
|
3260
|
+
Ea as persistent,
|
|
3261
|
+
Sa as registerErrorHandler,
|
|
3245
3262
|
rr as renderMarkdown,
|
|
3246
3263
|
Ke as renderVNode,
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3264
|
+
Ca as replaceExisting,
|
|
3265
|
+
Va as requiredBooleanInput,
|
|
3266
|
+
Pa as requiredDateInput,
|
|
3267
|
+
Aa as requiredNumberInput,
|
|
3268
|
+
ja as requiredObjectInput,
|
|
3269
|
+
Tn as requiredStringInput,
|
|
3253
3270
|
Ss as resetPiniaStore,
|
|
3254
3271
|
nr as safeHtml,
|
|
3255
|
-
|
|
3272
|
+
Ba as stringInput,
|
|
3256
3273
|
Ze as translate,
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3274
|
+
C as translateWithDefault,
|
|
3275
|
+
Rr as useAlertModal,
|
|
3276
|
+
Pr as useConfirmModal,
|
|
3277
|
+
cn as useErrorReportModal,
|
|
3260
3278
|
et as useEvent,
|
|
3261
3279
|
st as useForm,
|
|
3262
3280
|
rt as useInputAttrs,
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3281
|
+
xn as useLoadingModal,
|
|
3282
|
+
Ln as usePromptModal,
|
|
3283
|
+
ur as validate,
|
|
3284
|
+
ce as validators,
|
|
3285
|
+
Ye as variantClasses
|
|
3267
3286
|
};
|
|
3268
3287
|
//# sourceMappingURL=aerogel-core.js.map
|