@bygga.dev/editor 1.8.3 → 1.8.4
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.
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, Q as g, R as _, T as v, U as y, V as b, W as x, X as ee, Y as te, _ as S, at as ne, ct as C, dt as w, f as
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, Q as g, R as _, T as v, U as y, V as b, W as x, X as ee, Y as te, _ as S, at as ne, ct as C, dt as w, f as T, ft as re, g as ie, h as ae, ht as oe, k as se, lt as ce, mt as le, nt as ue, q as de, rt as fe, tt as pe, ut as me, w as E, x as he, z as ge } from "./providerKeys-D5U1FqVd.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@intlify+shared@11.4.6/node_modules/@intlify/shared/dist/shared.mjs
|
|
3
|
-
function
|
|
3
|
+
function _e(e, t) {
|
|
4
4
|
typeof console < "u" && (console.warn("[intlify] " + e), t && console.warn(t.stack));
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var ve = typeof window < "u", ye = (e, t = !1) => t ? Symbol.for(e) : Symbol(e), be = (e, t, n) => xe({
|
|
7
7
|
l: e,
|
|
8
8
|
k: t,
|
|
9
9
|
s: n
|
|
10
|
-
}),
|
|
11
|
-
function
|
|
10
|
+
}), xe = (e) => JSON.stringify(e).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029").replace(/\u0027/g, "\\u0027"), D = (e) => typeof e == "number" && isFinite(e), Se = (e) => Ve(e) === "[object Date]", Ce = (e) => Ve(e) === "[object RegExp]", we = (e) => P(e) && Object.keys(e).length === 0, Te = Object.assign, Ee = Object.create, O = (e = null) => Ee(e), De, Oe = () => De ||= typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : O();
|
|
11
|
+
function ke(e) {
|
|
12
12
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'").replace(/\//g, "/").replace(/=/g, "=");
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Ae(e) {
|
|
15
15
|
return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
16
16
|
}
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
return
|
|
17
|
+
var je = /^\s*javascript\s*(?::|�*58;?|�*3a;?|:?)/i, Me = /^(?:href|src|action|formaction)$/i;
|
|
18
|
+
function Ne(e) {
|
|
19
|
+
return je.test(e);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Pe(e) {
|
|
22
22
|
let t = /url\s*\(/gi, n = "", r = 0, i;
|
|
23
23
|
for (; (i = t.exec(e)) !== null;) {
|
|
24
24
|
let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
|
|
@@ -34,25 +34,25 @@ function Fe(e) {
|
|
|
34
34
|
}
|
|
35
35
|
if (c !== 0) break;
|
|
36
36
|
let u = e.slice(o + 1, s).trim(), d = u.startsWith("\"") && u.endsWith("\"") || u.startsWith("'") && u.endsWith("'") ? u.slice(1, -1).trim() : u;
|
|
37
|
-
n += e.slice(r, a), n +=
|
|
37
|
+
n += e.slice(r, a), n += Ne(d) ? "url(about:blank)" : e.slice(a, s + 1), r = s + 1;
|
|
38
38
|
}
|
|
39
39
|
return n + e.slice(r);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
41
|
+
function Fe(e, t) {
|
|
42
|
+
return Me.test(e) && Ne(t) ? "about:blank" : Ae(e.toLowerCase() === "style" ? Pe(t) : t);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
45
|
-
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${
|
|
44
|
+
function k(e) {
|
|
45
|
+
return e = e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g, (e, t, n) => `${t}="${Fe(t, n)}"`), e = e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g, (e, t, n) => `${t}='${Fe(t, n)}'`), /\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e) && (e = e.replace(/(\s+)(on)(\w+\s*=)/gi, "$1on$3")), e = e.replace(/(\s+(?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi, (e, t, n) => Ne(n) ? `${t}about:blank` : e), e;
|
|
46
46
|
}
|
|
47
|
-
var
|
|
48
|
-
function
|
|
49
|
-
return
|
|
47
|
+
var Ie = Object.prototype.hasOwnProperty;
|
|
48
|
+
function Le(e, t) {
|
|
49
|
+
return Ie.call(e, t);
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Re = Array.isArray, A = (e) => typeof e == "function", j = (e) => typeof e == "string", M = (e) => typeof e == "boolean", N = (e) => typeof e == "object" && !!e, ze = (e) => N(e) && A(e.then) && A(e.catch), Be = Object.prototype.toString, Ve = (e) => Be.call(e), P = (e) => Ve(e) === "[object Object]", He = (e) => e == null ? "" : Re(e) || P(e) && e.toString === Be ? JSON.stringify(e, null, 2) : String(e);
|
|
52
52
|
function Ue(e, t = "") {
|
|
53
53
|
return e.reduce((e, n, r) => r === 0 ? e + n : e + t + n, "");
|
|
54
54
|
}
|
|
55
|
-
var We = (e) => !N(e) ||
|
|
55
|
+
var We = (e) => !N(e) || Re(e);
|
|
56
56
|
function Ge(e, t) {
|
|
57
57
|
if (We(e) || We(t)) throw Error("Invalid value");
|
|
58
58
|
let n = [{
|
|
@@ -62,7 +62,7 @@ function Ge(e, t) {
|
|
|
62
62
|
for (; n.length;) {
|
|
63
63
|
let { src: e, des: t } = n.pop();
|
|
64
64
|
Object.keys(e).forEach((r) => {
|
|
65
|
-
r !== "__proto__" && (N(e[r]) && !N(t[r]) && (t[r] = Array.isArray(e[r]) ? [] :
|
|
65
|
+
r !== "__proto__" && (N(e[r]) && !N(t[r]) && (t[r] = Array.isArray(e[r]) ? [] : O()), We(t[r]) || We(e[r]) ? t[r] = e[r] : n.push({
|
|
66
66
|
src: e[r],
|
|
67
67
|
des: t[r]
|
|
68
68
|
}));
|
|
@@ -259,44 +259,44 @@ function at(e, t = {}) {
|
|
|
259
259
|
}, r = n();
|
|
260
260
|
return t && e.resetPeek(), r;
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function T(e, t) {
|
|
263
263
|
let n = e.currentChar();
|
|
264
264
|
if (n !== nt) return t(n) ? (e.next(), n) : null;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function re(e) {
|
|
267
267
|
let t = e.charCodeAt(0);
|
|
268
268
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
270
|
+
function ie(e) {
|
|
271
|
+
return T(e, re);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function ae(e) {
|
|
274
274
|
let t = e.charCodeAt(0);
|
|
275
275
|
return t >= 97 && t <= 122 || t >= 65 && t <= 90 || t >= 48 && t <= 57 || t === 95 || t === 36 || t === 45;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
return
|
|
277
|
+
function oe(e) {
|
|
278
|
+
return T(e, ae);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function se(e) {
|
|
281
281
|
let t = e.charCodeAt(0);
|
|
282
282
|
return t >= 48 && t <= 57;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function ce(e) {
|
|
285
|
+
return T(e, se);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function le(e) {
|
|
288
288
|
let t = e.charCodeAt(0);
|
|
289
289
|
return t >= 48 && t <= 57 || t >= 65 && t <= 70 || t >= 97 && t <= 102;
|
|
290
290
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
291
|
+
function ue(e) {
|
|
292
|
+
return T(e, le);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function de(e) {
|
|
295
295
|
let t = "", n = "";
|
|
296
|
-
for (; t =
|
|
296
|
+
for (; t = ce(e);) n += t;
|
|
297
297
|
return n;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function fe(e) {
|
|
300
300
|
let t = "";
|
|
301
301
|
for (;;) {
|
|
302
302
|
let n = e.currentChar();
|
|
@@ -311,47 +311,47 @@ function at(e, t = {}) {
|
|
|
311
311
|
}
|
|
312
312
|
return t;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function pe(e) {
|
|
315
315
|
g(e);
|
|
316
316
|
let t = "", n = "";
|
|
317
|
-
for (; t =
|
|
317
|
+
for (; t = oe(e);) n += t;
|
|
318
318
|
let r = e.currentChar();
|
|
319
319
|
if (r && r !== "}" && r !== nt && r !== Xe && r !== Qe && r !== " ") {
|
|
320
|
-
let t =
|
|
320
|
+
let t = ye(e);
|
|
321
321
|
return d(F.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n + t), n + t;
|
|
322
322
|
}
|
|
323
323
|
return e.currentChar() === nt && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n;
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function me(e) {
|
|
326
326
|
g(e);
|
|
327
327
|
let t = "";
|
|
328
|
-
return e.currentChar() === "-" ? (e.next(), t += `-${
|
|
328
|
+
return e.currentChar() === "-" ? (e.next(), t += `-${de(e)}`) : t += de(e), e.currentChar() === nt && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), t;
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function E(e) {
|
|
331
331
|
return e !== rt && e !== Qe;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
333
|
+
function he(e) {
|
|
334
334
|
g(e), m(e, "'");
|
|
335
335
|
let t = "", n = "";
|
|
336
|
-
for (; t =
|
|
336
|
+
for (; t = T(e, E);) t === "\\" ? n += ge(e) : n += t;
|
|
337
337
|
let r = e.currentChar();
|
|
338
338
|
return r === Qe || r === nt ? (d(F.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), 0), r === Qe && (e.next(), m(e, "'")), n) : (m(e, "'"), n);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function ge(e) {
|
|
341
341
|
let t = e.currentChar();
|
|
342
342
|
switch (t) {
|
|
343
343
|
case "\\":
|
|
344
344
|
case "'": return e.next(), `\\${t}`;
|
|
345
|
-
case "u": return
|
|
346
|
-
case "U": return
|
|
345
|
+
case "u": return _e(e, t, 4);
|
|
346
|
+
case "U": return _e(e, t, 6);
|
|
347
347
|
default: return d(F.UNKNOWN_ESCAPE_SEQUENCE, a(), 0, t), "";
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function _e(e, t, n) {
|
|
351
351
|
m(e, t);
|
|
352
352
|
let r = "";
|
|
353
353
|
for (let i = 0; i < n; i++) {
|
|
354
|
-
let n =
|
|
354
|
+
let n = ue(e);
|
|
355
355
|
if (!n) {
|
|
356
356
|
d(F.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), 0, `\\${t}${r}${e.currentChar()}`);
|
|
357
357
|
break;
|
|
@@ -360,81 +360,81 @@ function at(e, t = {}) {
|
|
|
360
360
|
}
|
|
361
361
|
return `\\${t}${r}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function ve(e) {
|
|
364
364
|
return e !== "{" && e !== "}" && e !== Xe && e !== Qe;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function ye(e) {
|
|
367
367
|
g(e);
|
|
368
368
|
let t = "", n = "";
|
|
369
|
-
for (; t =
|
|
369
|
+
for (; t = T(e, ve);) n += t;
|
|
370
370
|
return n;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function be(e) {
|
|
373
373
|
let t = "", n = "";
|
|
374
|
-
for (; t =
|
|
374
|
+
for (; t = ie(e);) n += t;
|
|
375
375
|
return n;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function xe(e) {
|
|
378
378
|
let t = (n) => {
|
|
379
379
|
let r = e.currentChar();
|
|
380
380
|
return r === "{" || r === "@" || r === "|" || r === "(" || r === ")" || !r || r === Xe ? n : (n += r, e.next(), t(n));
|
|
381
381
|
};
|
|
382
382
|
return t("");
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function D(e) {
|
|
385
385
|
g(e);
|
|
386
386
|
let t = m(e, "|");
|
|
387
387
|
return g(e), t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Se(e, t) {
|
|
390
390
|
let n = null;
|
|
391
391
|
switch (e.currentChar()) {
|
|
392
392
|
case "{": return t.braceNest >= 1 && d(F.NOT_ALLOW_NEST_PLACEHOLDER, a(), 0), e.next(), n = f(t, 2, "{"), g(e), t.braceNest++, n;
|
|
393
393
|
case "}": return t.braceNest > 0 && t.currentType === 2 && d(F.EMPTY_PLACEHOLDER, a(), 0), e.next(), n = f(t, 3, "}"), t.braceNest--, t.braceNest > 0 && g(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
|
|
394
|
-
case "@": return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n =
|
|
394
|
+
case "@": return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n = Ce(e, t) || p(t), t.braceNest = 0, n;
|
|
395
395
|
default: {
|
|
396
396
|
let r = !0, i = !0, o = !0;
|
|
397
|
-
if (C(e)) return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1,
|
|
398
|
-
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0,
|
|
399
|
-
if (r = y(e, t)) return n = f(t, 4,
|
|
400
|
-
if (i = b(e, t)) return n = f(t, 5,
|
|
401
|
-
if (o = x(e, t)) return n = f(t, 6,
|
|
402
|
-
if (!r && !i && !o) return n = f(t, 12,
|
|
397
|
+
if (C(e)) return t.braceNest > 0 && d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), n = f(t, 1, D(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
398
|
+
if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return d(F.UNTERMINATED_CLOSING_BRACE, a(), 0), t.braceNest = 0, we(e, t);
|
|
399
|
+
if (r = y(e, t)) return n = f(t, 4, pe(e)), g(e), n;
|
|
400
|
+
if (i = b(e, t)) return n = f(t, 5, me(e)), g(e), n;
|
|
401
|
+
if (o = x(e, t)) return n = f(t, 6, he(e)), g(e), n;
|
|
402
|
+
if (!r && !i && !o) return n = f(t, 12, ye(e)), d(F.INVALID_TOKEN_IN_PLACEHOLDER, a(), 0, n.value), g(e), n;
|
|
403
403
|
break;
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
return n;
|
|
407
407
|
}
|
|
408
|
-
function
|
|
408
|
+
function Ce(e, t) {
|
|
409
409
|
let { currentType: n } = t, r = null, i = e.currentChar();
|
|
410
410
|
switch ((n === 7 || n === 8 || n === 11 || n === 9) && (i === Qe || i === Xe) && d(F.INVALID_LINKED_FORMAT, a(), 0), i) {
|
|
411
411
|
case "@": return e.next(), r = f(t, 7, "@"), t.inLinked = !0, r;
|
|
412
412
|
case ".": return g(e), e.next(), f(t, 8, ".");
|
|
413
413
|
case ":": return g(e), e.next(), f(t, 9, ":");
|
|
414
|
-
default: return C(e) ? (r = f(t, 1,
|
|
414
|
+
default: return C(e) ? (r = f(t, 1, D(e)), t.braceNest = 0, t.inLinked = !1, r) : ee(e, t) || S(e, t) ? (g(e), Ce(e, t)) : te(e, t) ? (g(e), f(t, 11, be(e))) : ne(e, t) ? (g(e), i === "{" ? Se(e, t) || r : f(t, 10, xe(e))) : (n === 7 && d(F.INVALID_LINKED_FORMAT, a(), 0), t.braceNest = 0, t.inLinked = !1, we(e, t));
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function we(e, t) {
|
|
418
418
|
let n = { type: 13 };
|
|
419
|
-
if (t.braceNest > 0) return
|
|
420
|
-
if (t.inLinked) return
|
|
419
|
+
if (t.braceNest > 0) return Se(e, t) || p(t);
|
|
420
|
+
if (t.inLinked) return Ce(e, t) || p(t);
|
|
421
421
|
switch (e.currentChar()) {
|
|
422
|
-
case "{": return
|
|
422
|
+
case "{": return Se(e, t) || p(t);
|
|
423
423
|
case "}": return d(F.UNBALANCED_CLOSING_BRACE, a(), 0), e.next(), f(t, 3, "}");
|
|
424
|
-
case "@": return
|
|
424
|
+
case "@": return Ce(e, t) || p(t);
|
|
425
425
|
default:
|
|
426
|
-
if (C(e)) return n = f(t, 1,
|
|
427
|
-
if (w(e)) return f(t, 0,
|
|
426
|
+
if (C(e)) return n = f(t, 1, D(e)), t.braceNest = 0, t.inLinked = !1, n;
|
|
427
|
+
if (w(e)) return f(t, 0, fe(e));
|
|
428
428
|
break;
|
|
429
429
|
}
|
|
430
430
|
return n;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Te() {
|
|
433
433
|
let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
|
|
434
|
-
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === nt ? f(c, 13) :
|
|
434
|
+
return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === nt ? f(c, 13) : we(r, c);
|
|
435
435
|
}
|
|
436
436
|
return {
|
|
437
|
-
nextToken:
|
|
437
|
+
nextToken: Te,
|
|
438
438
|
currentOffset: i,
|
|
439
439
|
currentPosition: a,
|
|
440
440
|
context: l
|
|
@@ -572,7 +572,7 @@ function dt(e = {}) {
|
|
|
572
572
|
return t.currentType === 13 ? i : m(e, n, r, i);
|
|
573
573
|
}
|
|
574
574
|
function g(n) {
|
|
575
|
-
let o = at(n,
|
|
575
|
+
let o = at(n, Te({}, e)), s = o.context(), c = i(0, s.offset, s.startLoc);
|
|
576
576
|
return t && c.loc && (c.loc.source = n), c.body = h(o), e.onCacheKey && (c.cacheKey = e.onCacheKey(n)), s.currentType !== 13 && r(o, F.UNEXPECTED_LEXICAL_ANALYSIS, s.lastStartLoc, 0, n[s.offset] || ""), a(c, o.currentOffset(), o.currentPosition()), c;
|
|
577
577
|
}
|
|
578
578
|
return { parse: g };
|
|
@@ -808,7 +808,7 @@ var Et = (e, t = {}) => {
|
|
|
808
808
|
};
|
|
809
809
|
};
|
|
810
810
|
function Dt(e, t = {}) {
|
|
811
|
-
let n =
|
|
811
|
+
let n = Te({}, t), r = !!n.jit, i = !!n.minify, a = n.optimize == null ? !0 : n.optimize, o = dt(n).parse(e);
|
|
812
812
|
return r ? (a && _t(o), i && yt(o), {
|
|
813
813
|
ast: o,
|
|
814
814
|
code: ""
|
|
@@ -817,10 +817,10 @@ function Dt(e, t = {}) {
|
|
|
817
817
|
//#endregion
|
|
818
818
|
//#region ../../node_modules/.pnpm/@intlify+core-base@11.4.6/node_modules/@intlify/core-base/dist/core-base.mjs
|
|
819
819
|
function Ot() {
|
|
820
|
-
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (
|
|
820
|
+
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Oe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
821
821
|
}
|
|
822
822
|
function kt(e) {
|
|
823
|
-
return N(e) && zt(e) === 0 && (
|
|
823
|
+
return N(e) && zt(e) === 0 && (Le(e, "b") || Le(e, "body"));
|
|
824
824
|
}
|
|
825
825
|
var At = ["b", "body"];
|
|
826
826
|
function jt(e) {
|
|
@@ -861,7 +861,7 @@ function Gt(e) {
|
|
|
861
861
|
function Kt(e, t, n) {
|
|
862
862
|
for (let n = 0; n < t.length; n++) {
|
|
863
863
|
let r = t[n];
|
|
864
|
-
if (
|
|
864
|
+
if (Le(e, r) && e[r] != null) return e[r];
|
|
865
865
|
}
|
|
866
866
|
return n;
|
|
867
867
|
}
|
|
@@ -904,14 +904,14 @@ function Qt(e, t) {
|
|
|
904
904
|
case 9: return Vt(t, n);
|
|
905
905
|
case 4: {
|
|
906
906
|
let r = t;
|
|
907
|
-
if (
|
|
908
|
-
if (
|
|
907
|
+
if (Le(r, "k") && r.k) return e.interpolate(e.named(r.k));
|
|
908
|
+
if (Le(r, "key") && r.key) return e.interpolate(e.named(r.key));
|
|
909
909
|
throw Jt(n);
|
|
910
910
|
}
|
|
911
911
|
case 5: {
|
|
912
912
|
let r = t;
|
|
913
|
-
if (
|
|
914
|
-
if (
|
|
913
|
+
if (Le(r, "i") && D(r.i)) return e.interpolate(e.list(r.i));
|
|
914
|
+
if (Le(r, "index") && D(r.index)) return e.interpolate(e.list(r.index));
|
|
915
915
|
throw Jt(n);
|
|
916
916
|
}
|
|
917
917
|
case 6: {
|
|
@@ -923,7 +923,7 @@ function Qt(e, t) {
|
|
|
923
923
|
default: throw Error(`unhandled node on format message part: ${n}`);
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
var $t = (e) => e, en =
|
|
926
|
+
var $t = (e) => e, en = O();
|
|
927
927
|
function tn(e, t = {}) {
|
|
928
928
|
let n = !1, r = t.onError || Ye;
|
|
929
929
|
return t.onError = (e) => {
|
|
@@ -979,7 +979,7 @@ function cn(e) {
|
|
|
979
979
|
} else throw an(rn.NOT_SUPPORT_LOCALE_TYPE);
|
|
980
980
|
}
|
|
981
981
|
function ln(e, t, n) {
|
|
982
|
-
return [.../* @__PURE__ */ new Set([n, ...
|
|
982
|
+
return [.../* @__PURE__ */ new Set([n, ...Re(t) ? t : N(t) ? Object.keys(t) : j(t) ? [t] : [n]])];
|
|
983
983
|
}
|
|
984
984
|
function un(e, t, n) {
|
|
985
985
|
let r = j(n) ? n : En, i = e;
|
|
@@ -988,9 +988,9 @@ function un(e, t, n) {
|
|
|
988
988
|
if (!a) {
|
|
989
989
|
a = [];
|
|
990
990
|
let e = [n];
|
|
991
|
-
for (;
|
|
992
|
-
let o =
|
|
993
|
-
e = j(o) ? [o] : o,
|
|
991
|
+
for (; Re(e);) e = dn(a, e, t);
|
|
992
|
+
let o = Re(t) || !P(t) ? t : t.default ? t.default : null;
|
|
993
|
+
e = j(o) ? [o] : o, Re(e) && dn(a, e, !1), i.__localeChainCache.set(r, a);
|
|
994
994
|
}
|
|
995
995
|
return a;
|
|
996
996
|
}
|
|
@@ -1014,7 +1014,7 @@ function pn(e, t, n) {
|
|
|
1014
1014
|
if (!e.includes(t) && (r = !0, t)) {
|
|
1015
1015
|
r = t[t.length - 1] !== "!";
|
|
1016
1016
|
let i = t.replace(/!/g, "");
|
|
1017
|
-
e.push(i), (
|
|
1017
|
+
e.push(i), (Re(n) || P(n)) && n[i] && (r = n[i]);
|
|
1018
1018
|
}
|
|
1019
1019
|
return r;
|
|
1020
1020
|
}
|
|
@@ -1124,7 +1124,7 @@ function Cn(e, t) {
|
|
|
1124
1124
|
let r = n.length, i = e, a = 0;
|
|
1125
1125
|
for (; a < r;) {
|
|
1126
1126
|
let e = n[a];
|
|
1127
|
-
if (qt.includes(e) && kt(i) || !N(i) || !
|
|
1127
|
+
if (qt.includes(e) && kt(i) || !N(i) || !Le(i, e)) return null;
|
|
1128
1128
|
let t = i[e];
|
|
1129
1129
|
if (t === void 0 || A(i)) return null;
|
|
1130
1130
|
i = t, a++;
|
|
@@ -1167,9 +1167,9 @@ var Fn = null, In = (e) => {
|
|
|
1167
1167
|
Fn = e;
|
|
1168
1168
|
}, Ln = () => Fn, Rn = 0;
|
|
1169
1169
|
function zn(e = {}) {
|
|
1170
|
-
let t = A(e.onWarn) ? e.onWarn :
|
|
1170
|
+
let t = A(e.onWarn) ? e.onWarn : _e, n = j(e.version) ? e.version : Tn, r = j(e.locale) || A(e.locale) ? e.locale : En, i = A(r) ? En : r, a = Re(e.fallbackLocale) || P(e.fallbackLocale) || j(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i, o = P(e.messages) ? e.messages : Bn(i), s = P(e.datetimeFormats) ? e.datetimeFormats : Bn(i), c = P(e.numberFormats) ? e.numberFormats : Bn(i), l = Te(O(), e.modifiers, On()), u = e.pluralRules || O(), d = A(e.missing) ? e.missing : null, f = M(e.missingWarn) || Ce(e.missingWarn) ? e.missingWarn : !0, p = M(e.fallbackWarn) || Ce(e.fallbackWarn) ? e.fallbackWarn : !0, m = !!e.fallbackFormat, h = !!e.unresolving, g = A(e.postTranslation) ? e.postTranslation : null, _ = P(e.processor) ? e.processor : null, v = M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, y = !!e.escapeParameter, b = A(e.messageCompiler) ? e.messageCompiler : kn, x = A(e.messageResolver) ? e.messageResolver : jn || Sn, ee = A(e.localeFallbacker) ? e.localeFallbacker : Nn || ln, te = N(e.fallbackContext) ? e.fallbackContext : void 0, S = e, ne = N(S.__datetimeFormatters) ? S.__datetimeFormatters : /* @__PURE__ */ new Map(), C = N(S.__numberFormatters) ? S.__numberFormatters : /* @__PURE__ */ new Map(), w = N(S.__meta) ? S.__meta : {};
|
|
1171
1171
|
Rn++;
|
|
1172
|
-
let
|
|
1172
|
+
let T = {
|
|
1173
1173
|
version: n,
|
|
1174
1174
|
cid: Rn,
|
|
1175
1175
|
locale: r,
|
|
@@ -1193,9 +1193,9 @@ function zn(e = {}) {
|
|
|
1193
1193
|
onWarn: t,
|
|
1194
1194
|
__meta: w
|
|
1195
1195
|
};
|
|
1196
|
-
return
|
|
1196
|
+
return T.datetimeFormats = s, T.numberFormats = c, T.__datetimeFormatters = ne, T.__numberFormatters = C, T;
|
|
1197
1197
|
}
|
|
1198
|
-
var Bn = (e) => ({ [e]:
|
|
1198
|
+
var Bn = (e) => ({ [e]: O() });
|
|
1199
1199
|
function Vn(e, t, n, r, i) {
|
|
1200
1200
|
let { missing: a, onWarn: o } = e;
|
|
1201
1201
|
if (a !== null) {
|
|
@@ -1220,7 +1220,7 @@ var Gn = typeof Intl < "u";
|
|
|
1220
1220
|
Gn && Intl.DateTimeFormat, Gn && Intl.NumberFormat;
|
|
1221
1221
|
function Kn(e, ...t) {
|
|
1222
1222
|
let { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __datetimeFormatters: s } = e;
|
|
1223
|
-
if (!j(t[0]) && !
|
|
1223
|
+
if (!j(t[0]) && !Se(t[0]) && !D(t[0])) return "";
|
|
1224
1224
|
let [c, l, u, d] = Jn(...t), f = M(u.missingWarn) ? u.missingWarn : e.missingWarn;
|
|
1225
1225
|
M(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn;
|
|
1226
1226
|
let p = !!u.part, m = on(e, u), h = o(e, i, m);
|
|
@@ -1232,9 +1232,9 @@ function Kn(e, ...t) {
|
|
|
1232
1232
|
for (let t = 0; t < h.length && (_ = h[t], g = n[_] || {}, v = g[c], !P(v)); t++) Vn(e, c, _, f, "datetime format");
|
|
1233
1233
|
if (!P(v) || !j(_)) return r ? -1 : c;
|
|
1234
1234
|
let y = `${_}__${c}`;
|
|
1235
|
-
|
|
1235
|
+
we(d) || (y = `${y}__${JSON.stringify(d)}`);
|
|
1236
1236
|
let b = s.get(y);
|
|
1237
|
-
return b || (b = new Intl.DateTimeFormat(_,
|
|
1237
|
+
return b || (b = new Intl.DateTimeFormat(_, Te({}, v, d)), s.set(y, b)), p ? b.formatToParts(l) : b.format(l);
|
|
1238
1238
|
}
|
|
1239
1239
|
var qn = [
|
|
1240
1240
|
"localeMatcher",
|
|
@@ -1259,7 +1259,7 @@ var qn = [
|
|
|
1259
1259
|
"fractionalSecondDigits"
|
|
1260
1260
|
];
|
|
1261
1261
|
function Jn(...e) {
|
|
1262
|
-
let [t, n, r, i] = e, a =
|
|
1262
|
+
let [t, n, r, i] = e, a = O(), o = O(), s;
|
|
1263
1263
|
if (j(t)) {
|
|
1264
1264
|
let e = t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
|
|
1265
1265
|
if (!e) throw an(rn.INVALID_ISO_DATE_ARGUMENT);
|
|
@@ -1270,10 +1270,10 @@ function Jn(...e) {
|
|
|
1270
1270
|
} catch {
|
|
1271
1271
|
throw an(rn.INVALID_ISO_DATE_ARGUMENT);
|
|
1272
1272
|
}
|
|
1273
|
-
} else if (
|
|
1273
|
+
} else if (Se(t)) {
|
|
1274
1274
|
if (isNaN(t.getTime())) throw an(rn.INVALID_DATE_ARGUMENT);
|
|
1275
1275
|
s = t;
|
|
1276
|
-
} else if (
|
|
1276
|
+
} else if (D(t)) s = t;
|
|
1277
1277
|
else throw an(rn.INVALID_ARGUMENT);
|
|
1278
1278
|
return j(n) ? a.key = n : P(n) && Object.keys(n).forEach((e) => {
|
|
1279
1279
|
qn.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
@@ -1293,7 +1293,7 @@ function Yn(e, t, n) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
function Xn(e, ...t) {
|
|
1295
1295
|
let { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: a, localeFallbacker: o } = e, { __numberFormatters: s } = e;
|
|
1296
|
-
if (!
|
|
1296
|
+
if (!D(t[0])) return "";
|
|
1297
1297
|
let [c, l, u, d] = Qn(...t), f = M(u.missingWarn) ? u.missingWarn : e.missingWarn;
|
|
1298
1298
|
M(u.fallbackWarn) ? u.fallbackWarn : e.fallbackWarn;
|
|
1299
1299
|
let p = !!u.part, m = on(e, u), h = o(e, i, m);
|
|
@@ -1305,9 +1305,9 @@ function Xn(e, ...t) {
|
|
|
1305
1305
|
for (let t = 0; t < h.length && (_ = h[t], g = n[_] || {}, v = g[c], !P(v)); t++) Vn(e, c, _, f, "number format");
|
|
1306
1306
|
if (!P(v) || !j(_)) return r ? -1 : c;
|
|
1307
1307
|
let y = `${_}__${c}`;
|
|
1308
|
-
|
|
1308
|
+
we(d) || (y = `${y}__${JSON.stringify(d)}`);
|
|
1309
1309
|
let b = s.get(y);
|
|
1310
|
-
return b || (b = new Intl.NumberFormat(_,
|
|
1310
|
+
return b || (b = new Intl.NumberFormat(_, Te({}, v, d)), s.set(y, b)), p ? b.formatToParts(l) : b.format(l);
|
|
1311
1311
|
}
|
|
1312
1312
|
var Zn = [
|
|
1313
1313
|
"localeMatcher",
|
|
@@ -1332,8 +1332,8 @@ var Zn = [
|
|
|
1332
1332
|
"trailingZeroDisplay"
|
|
1333
1333
|
];
|
|
1334
1334
|
function Qn(...e) {
|
|
1335
|
-
let [t, n, r, i] = e, a =
|
|
1336
|
-
if (!
|
|
1335
|
+
let [t, n, r, i] = e, a = O(), o = O();
|
|
1336
|
+
if (!D(t)) throw an(rn.INVALID_ARGUMENT);
|
|
1337
1337
|
let s = t;
|
|
1338
1338
|
return j(n) ? a.key = n : P(n) && Object.keys(n).forEach((e) => {
|
|
1339
1339
|
Zn.includes(e) ? o[e] = n[e] : a[e] = n[e];
|
|
@@ -1356,12 +1356,12 @@ function ar(e, t) {
|
|
|
1356
1356
|
return e = Math.abs(e), t === 2 ? e === 1 ? 0 : 1 : Math.min(e, 2);
|
|
1357
1357
|
}
|
|
1358
1358
|
function or(e) {
|
|
1359
|
-
let t =
|
|
1360
|
-
return
|
|
1359
|
+
let t = D(e.pluralIndex) ? e.pluralIndex : -1;
|
|
1360
|
+
return D(e.named?.count) ? e.named.count : D(e.named?.n) ? e.named.n : t;
|
|
1361
1361
|
}
|
|
1362
1362
|
function sr(e = {}) {
|
|
1363
|
-
let t = e.locale, n = or(e), r = j(t) && A(e.pluralRules?.[t]) ? e.pluralRules[t] : ar, i = r === ar ? void 0 : ar, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named ||
|
|
1364
|
-
|
|
1363
|
+
let t = e.locale, n = or(e), r = j(t) && A(e.pluralRules?.[t]) ? e.pluralRules[t] : ar, i = r === ar ? void 0 : ar, a = (e) => e[r(n, e.length, i)], o = e.list || [], s = (e) => o[e], c = e.named || O();
|
|
1364
|
+
D(e.pluralIndex) && (c.count ||= e.pluralIndex, c.n ||= e.pluralIndex);
|
|
1365
1365
|
let l = (e) => c[e];
|
|
1366
1366
|
function u(t, n) {
|
|
1367
1367
|
return (A(e.messages) ? e.messages(t, !!n) : N(e.messages) ? e.messages[t] : !1) || (e.parent ? e.parent.message(t) : tr);
|
|
@@ -1373,14 +1373,14 @@ function sr(e = {}) {
|
|
|
1373
1373
|
linked: (e, ...t) => {
|
|
1374
1374
|
let [n, r] = t, i = "text", a = "";
|
|
1375
1375
|
t.length === 1 ? N(n) ? (a = n.modifier || a, i = n.type || i) : j(n) && (a = n || a) : t.length === 2 && (j(n) && (a = n || a), j(r) && (i = r || i));
|
|
1376
|
-
let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" &&
|
|
1376
|
+
let o = u(e, !0)(m), s = o === "" || o === void 0 ? e : o, c = i === "vnode" && Re(s) && a ? s[0] : s;
|
|
1377
1377
|
return a ? d(a)(c, i) : c;
|
|
1378
1378
|
},
|
|
1379
1379
|
message: u,
|
|
1380
1380
|
type: j(e.processor?.type) ? e.processor.type : nr,
|
|
1381
1381
|
interpolate: p,
|
|
1382
1382
|
normalize: f,
|
|
1383
|
-
values:
|
|
1383
|
+
values: Te(O(), o, c)
|
|
1384
1384
|
};
|
|
1385
1385
|
return m;
|
|
1386
1386
|
}
|
|
@@ -1391,7 +1391,7 @@ function ur(e, ...t) {
|
|
|
1391
1391
|
let [_, v, y] = p ? [
|
|
1392
1392
|
c,
|
|
1393
1393
|
g,
|
|
1394
|
-
s[g] ||
|
|
1394
|
+
s[g] || O()
|
|
1395
1395
|
] : fr(e, c, g, o, d, u), b = _, x = c;
|
|
1396
1396
|
if (!p && !(j(b) || kt(b) || lr(b)) && h && (b = m, x = b), !p && (!(j(b) || kt(b) || lr(b)) || !j(v))) return i ? -1 : c;
|
|
1397
1397
|
let ee = !1, te = lr(b) ? b : pr(e, c, v, b, x, () => {
|
|
@@ -1399,16 +1399,16 @@ function ur(e, ...t) {
|
|
|
1399
1399
|
});
|
|
1400
1400
|
if (ee) return b;
|
|
1401
1401
|
let S = mr(e, te, sr(_r(e, v, y, l))), ne = r ? r(S, c) : S;
|
|
1402
|
-
return f && j(ne) && (ne =
|
|
1402
|
+
return f && j(ne) && (ne = k(ne)), ne;
|
|
1403
1403
|
}
|
|
1404
1404
|
function dr(e) {
|
|
1405
|
-
|
|
1406
|
-
j(e.named[t]) && (e.named[t] =
|
|
1405
|
+
Re(e.list) ? e.list = e.list.map((e) => j(e) ? ke(e) : e) : N(e.named) && Object.keys(e.named).forEach((t) => {
|
|
1406
|
+
j(e.named[t]) && (e.named[t] = ke(e.named[t]));
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
1409
|
function fr(e, t, n, r, i, a) {
|
|
1410
|
-
let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), d =
|
|
1411
|
-
for (let n = 0; n < u.length && (f = u[n], d = o[f] ||
|
|
1410
|
+
let { messages: o, onWarn: s, messageResolver: c, localeFallbacker: l } = e, u = l(e, r, n), d = O(), f, p = null;
|
|
1411
|
+
for (let n = 0; n < u.length && (f = u[n], d = o[f] || O(), (p = c(d, t)) === null && (p = d[t]), !(j(p) || kt(p) || lr(p))); n++) if (!Wn(f, u)) {
|
|
1412
1412
|
let n = Vn(e, t, f, a, "translate");
|
|
1413
1413
|
n !== t && (p = n);
|
|
1414
1414
|
}
|
|
@@ -1435,10 +1435,10 @@ function mr(e, t, n) {
|
|
|
1435
1435
|
return t(n);
|
|
1436
1436
|
}
|
|
1437
1437
|
function hr(...e) {
|
|
1438
|
-
let [t, n, r] = e, i =
|
|
1439
|
-
if (!j(t) && !
|
|
1440
|
-
let a =
|
|
1441
|
-
return
|
|
1438
|
+
let [t, n, r] = e, i = O();
|
|
1439
|
+
if (!j(t) && !D(t) && !lr(t) && !kt(t)) throw an(rn.INVALID_ARGUMENT);
|
|
1440
|
+
let a = D(t) ? String(t) : (lr(t), t);
|
|
1441
|
+
return D(n) ? i.plural = n : j(n) ? i.default = n : P(n) && !we(n) ? i.named = n : Re(n) && (i.list = n), D(r) ? i.plural = r : j(r) ? i.default = r : P(r) && Te(i, r), [a, i];
|
|
1442
1442
|
}
|
|
1443
1443
|
function gr(e, t, n, r, i, a) {
|
|
1444
1444
|
return {
|
|
@@ -1448,7 +1448,7 @@ function gr(e, t, n, r, i, a) {
|
|
|
1448
1448
|
onError: (e) => {
|
|
1449
1449
|
throw a && a(e), e;
|
|
1450
1450
|
},
|
|
1451
|
-
onCacheKey: (e) =>
|
|
1451
|
+
onCacheKey: (e) => be(t, n, e)
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
1454
|
function _r(e, t, n, r) {
|
|
@@ -1471,14 +1471,14 @@ function _r(e, t, n, r) {
|
|
|
1471
1471
|
else return cr;
|
|
1472
1472
|
}
|
|
1473
1473
|
};
|
|
1474
|
-
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named),
|
|
1474
|
+
return e.processor && (d.processor = e.processor), r.list && (d.list = r.list), r.named && (d.named = r.named), D(r.plural) && (d.pluralIndex = r.plural), d;
|
|
1475
1475
|
}
|
|
1476
1476
|
Ot();
|
|
1477
1477
|
//#endregion
|
|
1478
1478
|
//#region ../../node_modules/.pnpm/vue-i18n@11.4.6_vue@3.5.39_typescript@6.0.3_/node_modules/vue-i18n/dist/vue-i18n.mjs
|
|
1479
1479
|
var vr = "11.4.6";
|
|
1480
1480
|
function yr() {
|
|
1481
|
-
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (
|
|
1481
|
+
typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (Oe().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1);
|
|
1482
1482
|
}
|
|
1483
1483
|
var I = {
|
|
1484
1484
|
UNEXPECTED_RETURN_TYPE: 24,
|
|
@@ -1497,9 +1497,9 @@ function br(e, ...t) {
|
|
|
1497
1497
|
return Je(e, null, void 0);
|
|
1498
1498
|
}
|
|
1499
1499
|
I.UNEXPECTED_RETURN_TYPE, I.INVALID_ARGUMENT, I.MUST_BE_CALL_SETUP_TOP, I.NOT_INSTALLED, I.UNEXPECTED_ERROR, I.REQUIRED_VALUE, I.INVALID_VALUE, I.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN, I.NOT_INSTALLED_WITH_PROVIDE, I.NOT_COMPATIBLE_LEGACY_VUE_I18N, I.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;
|
|
1500
|
-
var xr = /* #__PURE__*/
|
|
1501
|
-
|
|
1502
|
-
var Tr = /* #__PURE__*/
|
|
1500
|
+
var xr = /* #__PURE__*/ ye("__translateVNode"), Sr = /* #__PURE__*/ ye("__datetimeParts"), Cr = /* #__PURE__*/ ye("__numberParts"), wr = ye("__setPluralRules");
|
|
1501
|
+
ye("__intlifyMeta");
|
|
1502
|
+
var Tr = /* #__PURE__*/ ye("__injectWithOption"), Er = /* #__PURE__*/ ye("__dispose"), Dr = {
|
|
1503
1503
|
FALLBACK_TO_ROOT: 10,
|
|
1504
1504
|
NOT_FOUND_PARENT_SCOPE: 11,
|
|
1505
1505
|
IGNORE_OBJ_FLATTEN: 12,
|
|
@@ -1510,12 +1510,12 @@ var Tr = /* #__PURE__*/ be("__injectWithOption"), Er = /* #__PURE__*/ be("__disp
|
|
|
1510
1510
|
Dr.FALLBACK_TO_ROOT, Dr.NOT_FOUND_PARENT_SCOPE, Dr.IGNORE_OBJ_FLATTEN, Dr.DEPRECATE_LEGACY_MODE, Dr.DEPRECATE_TRANSLATE_CUSTOME_DIRECTIVE, Dr.DUPLICATE_USE_I18N_CALLING;
|
|
1511
1511
|
function Or(e) {
|
|
1512
1512
|
if (!N(e) || kt(e)) return e;
|
|
1513
|
-
for (let t in e) if (
|
|
1513
|
+
for (let t in e) if (Le(e, t)) if (!t.includes(".")) N(e[t]) && Or(e[t]);
|
|
1514
1514
|
else {
|
|
1515
1515
|
let n = t.split("."), r = n.length - 1, i = e, a = !1;
|
|
1516
1516
|
for (let e = 0; e < r; e++) {
|
|
1517
1517
|
if (n[e] === "__proto__") throw Error(`unsafe key: ${n[e]}`);
|
|
1518
|
-
if (n[e] in i || (i[n[e]] =
|
|
1518
|
+
if (n[e] in i || (i[n[e]] = O()), !N(i[n[e]])) {
|
|
1519
1519
|
a = !0;
|
|
1520
1520
|
break;
|
|
1521
1521
|
}
|
|
@@ -1529,20 +1529,20 @@ function Or(e) {
|
|
|
1529
1529
|
return e;
|
|
1530
1530
|
}
|
|
1531
1531
|
function kr(e, t) {
|
|
1532
|
-
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = P(n) ? n :
|
|
1533
|
-
if (
|
|
1532
|
+
let { messages: n, __i18n: r, messageResolver: i, flatJson: a } = t, o = P(n) ? n : Re(r) ? O() : { [e]: O() };
|
|
1533
|
+
if (Re(r) && r.forEach((e) => {
|
|
1534
1534
|
if ("locale" in e && "resource" in e) {
|
|
1535
1535
|
let { locale: t, resource: n } = e;
|
|
1536
|
-
t ? (o[t] = o[t] ||
|
|
1536
|
+
t ? (o[t] = o[t] || O(), Ge(n, o[t])) : Ge(n, o);
|
|
1537
1537
|
} else j(e) && Ge(JSON.parse(e), o);
|
|
1538
|
-
}), i == null && a) for (let e in o)
|
|
1538
|
+
}), i == null && a) for (let e in o) Le(o, e) && Or(o[e]);
|
|
1539
1539
|
return o;
|
|
1540
1540
|
}
|
|
1541
1541
|
function Ar(e) {
|
|
1542
1542
|
return e.type;
|
|
1543
1543
|
}
|
|
1544
1544
|
function jr(e, t, n) {
|
|
1545
|
-
let r = N(t.messages) ? t.messages :
|
|
1545
|
+
let r = N(t.messages) ? t.messages : O();
|
|
1546
1546
|
"__i18nGlobal" in n && (r = kr(e.locale.value, {
|
|
1547
1547
|
messages: r,
|
|
1548
1548
|
__i18n: n.__i18nGlobal
|
|
@@ -1568,14 +1568,14 @@ function Mr(e) {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
function Nr() {
|
|
1570
1570
|
let e = "currentInstance";
|
|
1571
|
-
return e in
|
|
1571
|
+
return e in T ? T[e] : m();
|
|
1572
1572
|
}
|
|
1573
1573
|
var Pr = () => [], Fr = () => !1, Ir = 0;
|
|
1574
1574
|
function Lr(e) {
|
|
1575
1575
|
return ((t, n, r, i) => e(n, r, Nr() || void 0, i));
|
|
1576
1576
|
}
|
|
1577
1577
|
function Rr(e = {}) {
|
|
1578
|
-
let { __root: t, __injectWithOption: n } = e, r = t === void 0, i = e.flatJson, a =
|
|
1578
|
+
let { __root: t, __injectWithOption: n } = e, r = t === void 0, i = e.flatJson, a = ve ? C : ce, o = M(e.inheritLocale) ? e.inheritLocale : !0, s = a(t && o ? t.locale.value : j(e.locale) ? e.locale : En), c = a(t && o ? t.fallbackLocale.value : j(e.fallbackLocale) || Re(e.fallbackLocale) || P(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : s.value), l = a(kr(s.value, e)), u = a(P(e.datetimeFormats) ? e.datetimeFormats : { [s.value]: {} }), d = a(P(e.numberFormats) ? e.numberFormats : { [s.value]: {} }), f = t ? t.missingWarn : M(e.missingWarn) || Ce(e.missingWarn) ? e.missingWarn : !0, p = t ? t.fallbackWarn : M(e.fallbackWarn) || Ce(e.fallbackWarn) ? e.fallbackWarn : !0, m = t ? t.fallbackRoot : M(e.fallbackRoot) ? e.fallbackRoot : !0, h = !!e.fallbackFormat, g = A(e.missing) ? e.missing : null, _ = A(e.missing) ? Lr(e.missing) : null, v = A(e.postTranslation) ? e.postTranslation : null, y = t ? t.warnHtmlMessage : M(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, b = !!e.escapeParameter, x = t ? t.modifiers : P(e.modifiers) ? e.modifiers : {}, te = e.pluralRules || t && t.pluralRules, S;
|
|
1579
1579
|
S = (() => {
|
|
1580
1580
|
r && In(null);
|
|
1581
1581
|
let t = {
|
|
@@ -1610,30 +1610,30 @@ function Rr(e = {}) {
|
|
|
1610
1610
|
d.value
|
|
1611
1611
|
];
|
|
1612
1612
|
}
|
|
1613
|
-
let w =
|
|
1613
|
+
let w = E({
|
|
1614
1614
|
get: () => s.value,
|
|
1615
1615
|
set: (e) => {
|
|
1616
1616
|
S.locale = e, s.value = e;
|
|
1617
1617
|
}
|
|
1618
|
-
}),
|
|
1618
|
+
}), T = E({
|
|
1619
1619
|
get: () => c.value,
|
|
1620
1620
|
set: (e) => {
|
|
1621
1621
|
S.fallbackLocale = e, c.value = e, Hn(S, s.value, e);
|
|
1622
1622
|
}
|
|
1623
|
-
}),
|
|
1624
|
-
function
|
|
1623
|
+
}), re = E(() => l.value), ie = /* #__PURE__*/ E(() => u.value), ae = /* #__PURE__*/ E(() => d.value);
|
|
1624
|
+
function oe() {
|
|
1625
1625
|
return A(v) ? v : null;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function se(e) {
|
|
1628
1628
|
v = e, S.postTranslation = e;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function le() {
|
|
1631
1631
|
return g;
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function ue(e) {
|
|
1634
1634
|
e !== null && (_ = Lr(e)), g = e, S.missing = _;
|
|
1635
1635
|
}
|
|
1636
|
-
let
|
|
1636
|
+
let de = (e, n, i, a, o, s) => {
|
|
1637
1637
|
ne();
|
|
1638
1638
|
let c;
|
|
1639
1639
|
try {
|
|
@@ -1641,7 +1641,7 @@ function Rr(e = {}) {
|
|
|
1641
1641
|
} finally {
|
|
1642
1642
|
r || (S.fallbackContext = void 0);
|
|
1643
1643
|
}
|
|
1644
|
-
if (i !== "translate exists" &&
|
|
1644
|
+
if (i !== "translate exists" && D(c) && c === -1 || i === "translate exists" && !c) {
|
|
1645
1645
|
let [e, r] = n();
|
|
1646
1646
|
return t && m ? a(t) : o(e);
|
|
1647
1647
|
} else if (s(c)) return c;
|
|
@@ -1649,60 +1649,60 @@ function Rr(e = {}) {
|
|
|
1649
1649
|
/* istanbul ignore next */
|
|
1650
1650
|
throw br(I.UNEXPECTED_RETURN_TYPE);
|
|
1651
1651
|
};
|
|
1652
|
-
function
|
|
1653
|
-
return
|
|
1652
|
+
function fe(...e) {
|
|
1653
|
+
return de((t) => Reflect.apply(ur, null, [t, ...e]), () => hr(...e), "translate", (t) => Reflect.apply(t.t, t, [...e]), (e) => e, (e) => j(e));
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function pe(...e) {
|
|
1656
1656
|
let [t, n, r] = e;
|
|
1657
1657
|
if (r && !N(r)) throw br(I.INVALID_ARGUMENT);
|
|
1658
|
-
return
|
|
1658
|
+
return fe(t, n, Te({ resolvedMessage: !0 }, r || {}));
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
return
|
|
1660
|
+
function me(...e) {
|
|
1661
|
+
return de((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => Reflect.apply(t.d, t, [...e]), () => "", (e) => j(e) || Re(e));
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1664
|
-
return
|
|
1663
|
+
function he(...e) {
|
|
1664
|
+
return de((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => Reflect.apply(t.n, t, [...e]), () => "", (e) => j(e) || Re(e));
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1667
|
-
return e.map((e) => j(e) ||
|
|
1666
|
+
function ge(e) {
|
|
1667
|
+
return e.map((e) => j(e) || D(e) || M(e) ? Mr(String(e)) : e);
|
|
1668
1668
|
}
|
|
1669
|
-
let
|
|
1670
|
-
normalize:
|
|
1669
|
+
let _e = {
|
|
1670
|
+
normalize: ge,
|
|
1671
1671
|
interpolate: (e) => e,
|
|
1672
1672
|
type: "vnode"
|
|
1673
1673
|
};
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1674
|
+
function ye(...e) {
|
|
1675
|
+
return de((t) => {
|
|
1676
1676
|
let n, r = t;
|
|
1677
1677
|
try {
|
|
1678
|
-
r.processor =
|
|
1678
|
+
r.processor = _e, n = Reflect.apply(ur, null, [r, ...e]);
|
|
1679
1679
|
} finally {
|
|
1680
1680
|
r.processor = null;
|
|
1681
1681
|
}
|
|
1682
1682
|
return n;
|
|
1683
|
-
}, () => hr(...e), "translate", (t) => t[xr](...e), (e) => [Mr(e)], (e) =>
|
|
1683
|
+
}, () => hr(...e), "translate", (t) => t[xr](...e), (e) => [Mr(e)], (e) => Re(e));
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
return
|
|
1685
|
+
function be(...e) {
|
|
1686
|
+
return de((t) => Reflect.apply(Xn, null, [t, ...e]), () => Qn(...e), "number format", (t) => t[Cr](...e), Pr, (e) => j(e) || Re(e));
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1689
|
-
return
|
|
1688
|
+
function xe(...e) {
|
|
1689
|
+
return de((t) => Reflect.apply(Kn, null, [t, ...e]), () => Jn(...e), "datetime format", (t) => t[Sr](...e), Pr, (e) => j(e) || Re(e));
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function Se(e) {
|
|
1692
1692
|
te = e, S.pluralRules = te;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1694
|
+
function we(e, t) {
|
|
1695
|
+
return de(() => {
|
|
1696
1696
|
if (!e) return !1;
|
|
1697
1697
|
let n = j(t) ? t : s.value, r = j(t) ? [n] : un(S, c.value, n);
|
|
1698
1698
|
for (let t = 0; t < r.length; t++) {
|
|
1699
|
-
let n =
|
|
1699
|
+
let n = De(r[t]), i = S.messageResolver(n, e);
|
|
1700
1700
|
if (i === null && (i = n[e]), kt(i) || lr(i) || j(i)) return !0;
|
|
1701
1701
|
}
|
|
1702
1702
|
return !1;
|
|
1703
1703
|
}, () => [e], "translate exists", (n) => Reflect.apply(n.te, n, [e, t]), Fr, (e) => M(e));
|
|
1704
1704
|
}
|
|
1705
|
-
function
|
|
1705
|
+
function Ee(e) {
|
|
1706
1706
|
let t = null, n = un(S, c.value, s.value);
|
|
1707
1707
|
for (let r = 0; r < n.length; r++) {
|
|
1708
1708
|
let i = l.value[n[r]] || {}, a = S.messageResolver(i, e);
|
|
@@ -1713,53 +1713,53 @@ function Rr(e = {}) {
|
|
|
1713
1713
|
}
|
|
1714
1714
|
return t;
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1717
|
-
return
|
|
1716
|
+
function O(e) {
|
|
1717
|
+
return Ee(e) ?? (t && t.tm(e) || {});
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function De(e) {
|
|
1720
1720
|
return l.value[e] || {};
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function Oe(e, t) {
|
|
1723
1723
|
if (i) {
|
|
1724
1724
|
let n = { [e]: t };
|
|
1725
|
-
for (let e in n)
|
|
1725
|
+
for (let e in n) Le(n, e) && Or(n[e]);
|
|
1726
1726
|
t = n[e];
|
|
1727
1727
|
}
|
|
1728
1728
|
l.value[e] = t, S.messages = l.value;
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function ke(e, t) {
|
|
1731
1731
|
l.value[e] = l.value[e] || {};
|
|
1732
1732
|
let n = { [e]: t };
|
|
1733
|
-
if (i) for (let e in n)
|
|
1733
|
+
if (i) for (let e in n) Le(n, e) && Or(n[e]);
|
|
1734
1734
|
t = n[e], Ge(t, l.value[e]), S.messages = l.value;
|
|
1735
1735
|
}
|
|
1736
|
-
function
|
|
1736
|
+
function Ae(e) {
|
|
1737
1737
|
return u.value[e] || {};
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function je(e, t) {
|
|
1740
1740
|
u.value[e] = t, S.datetimeFormats = u.value, Yn(S, e, t);
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1743
|
-
u.value[e] =
|
|
1742
|
+
function Me(e, t) {
|
|
1743
|
+
u.value[e] = Te(u.value[e] || {}, t), S.datetimeFormats = u.value, Yn(S, e, t);
|
|
1744
1744
|
}
|
|
1745
|
-
function
|
|
1745
|
+
function Ne(e) {
|
|
1746
1746
|
return d.value[e] || {};
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1748
|
+
function Pe(e, t) {
|
|
1749
1749
|
d.value[e] = t, S.numberFormats = d.value, $n(S, e, t);
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1752
|
-
d.value[e] =
|
|
1751
|
+
function Fe(e, t) {
|
|
1752
|
+
d.value[e] = Te(d.value[e] || {}, t), S.numberFormats = d.value, $n(S, e, t);
|
|
1753
1753
|
}
|
|
1754
|
-
Ir++, t &&
|
|
1754
|
+
Ir++, t && ve && (ee(t.locale, (e) => {
|
|
1755
1755
|
o && (s.value = e, S.locale = e, Hn(S, s.value, c.value));
|
|
1756
1756
|
}), ee(t.fallbackLocale, (e) => {
|
|
1757
1757
|
o && (c.value = e, S.fallbackLocale = e, Hn(S, s.value, c.value));
|
|
1758
1758
|
}));
|
|
1759
|
-
let
|
|
1759
|
+
let k = {
|
|
1760
1760
|
id: Ir,
|
|
1761
1761
|
locale: w,
|
|
1762
|
-
fallbackLocale:
|
|
1762
|
+
fallbackLocale: T,
|
|
1763
1763
|
get inheritLocale() {
|
|
1764
1764
|
return o;
|
|
1765
1765
|
},
|
|
@@ -1769,7 +1769,7 @@ function Rr(e = {}) {
|
|
|
1769
1769
|
get availableLocales() {
|
|
1770
1770
|
return Object.keys(l.value).sort();
|
|
1771
1771
|
},
|
|
1772
|
-
messages:
|
|
1772
|
+
messages: re,
|
|
1773
1773
|
get modifiers() {
|
|
1774
1774
|
return x;
|
|
1775
1775
|
},
|
|
@@ -1815,17 +1815,17 @@ function Rr(e = {}) {
|
|
|
1815
1815
|
set escapeParameter(e) {
|
|
1816
1816
|
b = e, S.escapeParameter = e;
|
|
1817
1817
|
},
|
|
1818
|
-
t:
|
|
1819
|
-
getLocaleMessage:
|
|
1820
|
-
setLocaleMessage:
|
|
1821
|
-
mergeLocaleMessage:
|
|
1822
|
-
getPostTranslationHandler:
|
|
1823
|
-
setPostTranslationHandler:
|
|
1824
|
-
getMissingHandler:
|
|
1825
|
-
setMissingHandler:
|
|
1826
|
-
[wr]:
|
|
1818
|
+
t: fe,
|
|
1819
|
+
getLocaleMessage: De,
|
|
1820
|
+
setLocaleMessage: Oe,
|
|
1821
|
+
mergeLocaleMessage: ke,
|
|
1822
|
+
getPostTranslationHandler: oe,
|
|
1823
|
+
setPostTranslationHandler: se,
|
|
1824
|
+
getMissingHandler: le,
|
|
1825
|
+
setMissingHandler: ue,
|
|
1826
|
+
[wr]: Se
|
|
1827
1827
|
};
|
|
1828
|
-
return
|
|
1828
|
+
return k.datetimeFormats = ie, k.numberFormats = ae, k.rt = pe, k.te = we, k.tm = O, k.d = me, k.n = he, k.getDateTimeFormat = Ae, k.setDateTimeFormat = je, k.mergeDateTimeFormat = Me, k.getNumberFormat = Ne, k.setNumberFormat = Pe, k.mergeNumberFormat = Fe, k[Tr] = n, k[xr] = ye, k[Sr] = xe, k[Cr] = be, k;
|
|
1829
1829
|
}
|
|
1830
1830
|
var zr = {
|
|
1831
1831
|
tag: { type: [String, Object] },
|
|
@@ -1837,25 +1837,25 @@ var zr = {
|
|
|
1837
1837
|
},
|
|
1838
1838
|
i18n: { type: Object }
|
|
1839
1839
|
};
|
|
1840
|
-
|
|
1840
|
+
Te({
|
|
1841
1841
|
keypath: {
|
|
1842
1842
|
type: String,
|
|
1843
1843
|
required: !0
|
|
1844
1844
|
},
|
|
1845
1845
|
plural: {
|
|
1846
1846
|
type: [Number, String],
|
|
1847
|
-
validator: (e) =>
|
|
1847
|
+
validator: (e) => D(e) || !isNaN(e)
|
|
1848
1848
|
}
|
|
1849
|
-
}, zr),
|
|
1849
|
+
}, zr), Te({
|
|
1850
1850
|
value: {
|
|
1851
1851
|
type: Number,
|
|
1852
1852
|
required: !0
|
|
1853
1853
|
},
|
|
1854
1854
|
format: { type: [String, Object] }
|
|
1855
1855
|
}, zr);
|
|
1856
|
-
var Br = /* #__PURE__*/
|
|
1856
|
+
var Br = /* #__PURE__*/ ye("global-vue-i18n");
|
|
1857
1857
|
function Vr(e = {}) {
|
|
1858
|
-
let t = M(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [r, i] = Ur(e, !1), a = /* #__PURE__*/
|
|
1858
|
+
let t = M(e.globalInjection) ? e.globalInjection : !0, n = /* @__PURE__ */ new Map(), [r, i] = Ur(e, !1), a = /* #__PURE__*/ ye("");
|
|
1859
1859
|
function o(e) {
|
|
1860
1860
|
return n.get(e) || null;
|
|
1861
1861
|
}
|
|
@@ -1906,23 +1906,23 @@ function Hr(e = {}) {
|
|
|
1906
1906
|
}
|
|
1907
1907
|
if (a === "isolated") {
|
|
1908
1908
|
if (n.mode !== "composition") throw br(I.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
|
|
1909
|
-
let i = n, a =
|
|
1909
|
+
let i = n, a = Te({}, e);
|
|
1910
1910
|
a.__root = qr(n, t) || r;
|
|
1911
1911
|
let o = Rr(a);
|
|
1912
|
-
return i.__composerExtend && (o[Er] = i.__composerExtend(o)),
|
|
1912
|
+
return i.__composerExtend && (o[Er] = i.__composerExtend(o)), ue() && ne(() => {
|
|
1913
1913
|
let e = o[Er];
|
|
1914
1914
|
e && (e(), delete o[Er]);
|
|
1915
1915
|
}), o;
|
|
1916
1916
|
}
|
|
1917
1917
|
let o = n, s = o.__getInstance(t);
|
|
1918
1918
|
if (s == null) {
|
|
1919
|
-
let n =
|
|
1919
|
+
let n = Te({}, e);
|
|
1920
1920
|
"__i18n" in i && (n.__i18n = i.__i18n), r && (n.__root = r), s = Rr(n), o.__composerExtend && (s[Er] = o.__composerExtend(s)), Yr(o, t, s), o.__setInstance(t, s);
|
|
1921
1921
|
}
|
|
1922
1922
|
return s;
|
|
1923
1923
|
}
|
|
1924
1924
|
function Ur(e, t) {
|
|
1925
|
-
let n =
|
|
1925
|
+
let n = pe(), r = n.run(() => Rr(e));
|
|
1926
1926
|
if (r == null) throw br(I.UNEXPECTED_ERROR);
|
|
1927
1927
|
return [n, r];
|
|
1928
1928
|
}
|
|
@@ -1933,7 +1933,7 @@ function Wr(e) {
|
|
|
1933
1933
|
return t;
|
|
1934
1934
|
}
|
|
1935
1935
|
function Gr(e, t) {
|
|
1936
|
-
return
|
|
1936
|
+
return we(e) ? "__i18n" in t ? "local" : "global" : e.useScope ? e.useScope : "local";
|
|
1937
1937
|
}
|
|
1938
1938
|
function Kr(e) {
|
|
1939
1939
|
return e.mode === "composition" ? e.global : e.global.__composer;
|
|
@@ -1975,7 +1975,7 @@ function Qr(e, t) {
|
|
|
1975
1975
|
return Xr.forEach((e) => {
|
|
1976
1976
|
let r = Object.getOwnPropertyDescriptor(t, e);
|
|
1977
1977
|
if (!r) throw br(I.UNEXPECTED_ERROR);
|
|
1978
|
-
let i =
|
|
1978
|
+
let i = fe(r.value) ? {
|
|
1979
1979
|
get() {
|
|
1980
1980
|
return r.value.value;
|
|
1981
1981
|
},
|
|
@@ -1996,7 +1996,7 @@ function Qr(e, t) {
|
|
|
1996
1996
|
});
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
|
-
|
|
1999
|
+
Te({
|
|
2000
2000
|
value: {
|
|
2001
2001
|
type: [Number, Date],
|
|
2002
2002
|
required: !0
|
|
@@ -11175,9 +11175,9 @@ var Mg = (e, t, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain:
|
|
|
11175
11175
|
node: S,
|
|
11176
11176
|
pos: 0,
|
|
11177
11177
|
depth: 0
|
|
11178
|
-
} : null, C = x ?? ne, w = !!x && y.depth >= 1 && y.depth - x.depth <= 1,
|
|
11179
|
-
if ((w ||
|
|
11180
|
-
if (C.node.type === p) return ee &&
|
|
11178
|
+
} : null, C = x ?? ne, w = !!x && y.depth >= 1 && y.depth - x.depth <= 1, T = !!ne;
|
|
11179
|
+
if ((w || T) && C) {
|
|
11180
|
+
if (C.node.type === p) return ee && T ? c().command(({ tr: e, dispatch: t }) => {
|
|
11181
11181
|
let n = jg(e);
|
|
11182
11182
|
return n ? (e.setSelection(n), t && t(e), !0) : !1;
|
|
11183
11183
|
}).liftListItem(m).run() : l.liftListItem(m);
|
|
@@ -15744,7 +15744,12 @@ var XS = K.create({
|
|
|
15744
15744
|
1,
|
|
15745
15745
|
2,
|
|
15746
15746
|
3
|
|
15747
|
-
], $S = { textDirection: "auto" }, eC = ab.extend({ content: "heading+" }), tC =
|
|
15747
|
+
], $S = { textDirection: "auto" }, eC = ab.extend({ content: "heading+" }), tC = wS.configure({
|
|
15748
|
+
openOnClick: !1,
|
|
15749
|
+
autolink: !0,
|
|
15750
|
+
defaultProtocol: "https",
|
|
15751
|
+
HTMLAttributes: { style: "color: #0563c1; text-decoration: underline;" }
|
|
15752
|
+
}), nC = [
|
|
15748
15753
|
ab,
|
|
15749
15754
|
DS,
|
|
15750
15755
|
OS,
|
|
@@ -15753,53 +15758,45 @@ var XS = K.create({
|
|
|
15753
15758
|
fb,
|
|
15754
15759
|
ZS,
|
|
15755
15760
|
sb.configure({ levels: [...QS] }),
|
|
15756
|
-
|
|
15757
|
-
openOnClick: !1,
|
|
15758
|
-
autolink: !0,
|
|
15759
|
-
defaultProtocol: "https"
|
|
15760
|
-
}),
|
|
15761
|
+
tC,
|
|
15761
15762
|
NS,
|
|
15762
15763
|
HS,
|
|
15763
15764
|
KS,
|
|
15764
15765
|
XS,
|
|
15765
15766
|
kS.configure({ types: ["heading", "paragraph"] }),
|
|
15766
15767
|
B_
|
|
15767
|
-
],
|
|
15768
|
+
], rC = [
|
|
15768
15769
|
eC,
|
|
15769
15770
|
OS,
|
|
15770
15771
|
ib,
|
|
15771
15772
|
fb,
|
|
15772
15773
|
ZS,
|
|
15773
15774
|
sb.configure({ levels: [...QS] }),
|
|
15774
|
-
|
|
15775
|
-
openOnClick: !1,
|
|
15776
|
-
autolink: !0,
|
|
15777
|
-
defaultProtocol: "https"
|
|
15778
|
-
}),
|
|
15775
|
+
tC,
|
|
15779
15776
|
NS,
|
|
15780
15777
|
HS,
|
|
15781
15778
|
KS,
|
|
15782
15779
|
XS,
|
|
15783
15780
|
kS.configure({ types: ["heading"] }),
|
|
15784
15781
|
B_
|
|
15785
|
-
],
|
|
15782
|
+
], iC = 1e3, aC = (/* @__PURE__ */ Oy()).check(/* @__PURE__ */ Ay(), /* @__PURE__ */ _y(0), /* @__PURE__ */ gy(255)), oC = /* @__PURE__ */ zy("type", [/* @__PURE__ */ J({
|
|
15786
15783
|
type: /* @__PURE__ */ Y("color"),
|
|
15787
|
-
r:
|
|
15788
|
-
g:
|
|
15789
|
-
b:
|
|
15790
|
-
}), /* @__PURE__ */ J({ type: /* @__PURE__ */ Y("transparent") })]),
|
|
15784
|
+
r: aC,
|
|
15785
|
+
g: aC,
|
|
15786
|
+
b: aC
|
|
15787
|
+
}), /* @__PURE__ */ J({ type: /* @__PURE__ */ Y("transparent") })]), sC = (/* @__PURE__ */ Oy()).check(/* @__PURE__ */ Ay(), /* @__PURE__ */ _y(0)), cC = /* @__PURE__ */ zy("mode", [/* @__PURE__ */ J({
|
|
15791
15788
|
mode: /* @__PURE__ */ Y("simple"),
|
|
15792
|
-
value:
|
|
15789
|
+
value: sC
|
|
15793
15790
|
}), /* @__PURE__ */ J({
|
|
15794
15791
|
mode: /* @__PURE__ */ Y("advanced"),
|
|
15795
|
-
top:
|
|
15796
|
-
right:
|
|
15797
|
-
bottom:
|
|
15798
|
-
left:
|
|
15799
|
-
})]),
|
|
15792
|
+
top: sC,
|
|
15793
|
+
right: sC,
|
|
15794
|
+
bottom: sC,
|
|
15795
|
+
left: sC
|
|
15796
|
+
})]), lC = /* @__PURE__ */ zy("status", [/* @__PURE__ */ J({ status: /* @__PURE__ */ Y("empty") }), /* @__PURE__ */ J({
|
|
15800
15797
|
status: /* @__PURE__ */ Y("uploaded"),
|
|
15801
15798
|
url: /* @__PURE__ */ Ey()
|
|
15802
|
-
})]),
|
|
15799
|
+
})]), uC = /* @__PURE__ */ zy("mode", [
|
|
15803
15800
|
/* @__PURE__ */ J({ mode: /* @__PURE__ */ Y("fill") }),
|
|
15804
15801
|
/* @__PURE__ */ J({ mode: /* @__PURE__ */ Y("fit") }),
|
|
15805
15802
|
/* @__PURE__ */ J({ mode: /* @__PURE__ */ Y("stretch") }),
|
|
@@ -15807,17 +15804,17 @@ var XS = K.create({
|
|
|
15807
15804
|
mode: /* @__PURE__ */ Y("tile"),
|
|
15808
15805
|
zoom: (/* @__PURE__ */ Oy()).check(/* @__PURE__ */ _y(5), /* @__PURE__ */ gy(100))
|
|
15809
15806
|
})
|
|
15810
|
-
]),
|
|
15807
|
+
]), dC = /* @__PURE__ */ zy("type", [/* @__PURE__ */ J({
|
|
15811
15808
|
type: /* @__PURE__ */ Y("solid"),
|
|
15812
|
-
color:
|
|
15809
|
+
color: oC
|
|
15813
15810
|
}), /* @__PURE__ */ J({
|
|
15814
15811
|
type: /* @__PURE__ */ Y("image"),
|
|
15815
|
-
image:
|
|
15816
|
-
fallbackColor:
|
|
15817
|
-
fit:
|
|
15818
|
-
})]),
|
|
15812
|
+
image: lC,
|
|
15813
|
+
fallbackColor: oC,
|
|
15814
|
+
fit: uC
|
|
15815
|
+
})]), fC = qh(nC), pC = qh(rC), mC = (/* @__PURE__ */ Qy()).check((e) => {
|
|
15819
15816
|
try {
|
|
15820
|
-
|
|
15817
|
+
fC.nodeFromJSON(e.value).check();
|
|
15821
15818
|
} catch (t) {
|
|
15822
15819
|
e.issues.push({
|
|
15823
15820
|
code: "custom",
|
|
@@ -15825,9 +15822,9 @@ var XS = K.create({
|
|
|
15825
15822
|
message: t instanceof Error ? t.message : "invalid rich-text content"
|
|
15826
15823
|
});
|
|
15827
15824
|
}
|
|
15828
|
-
}),
|
|
15825
|
+
}), hC = (/* @__PURE__ */ Qy()).check((e) => {
|
|
15829
15826
|
try {
|
|
15830
|
-
|
|
15827
|
+
pC.nodeFromJSON(e.value).check();
|
|
15831
15828
|
} catch (t) {
|
|
15832
15829
|
e.issues.push({
|
|
15833
15830
|
code: "custom",
|
|
@@ -15835,53 +15832,53 @@ var XS = K.create({
|
|
|
15835
15832
|
message: t instanceof Error ? t.message : "invalid header content"
|
|
15836
15833
|
});
|
|
15837
15834
|
}
|
|
15838
|
-
}),
|
|
15839
|
-
background:
|
|
15840
|
-
padding:
|
|
15841
|
-
margin:
|
|
15842
|
-
borderRadius:
|
|
15835
|
+
}), gC = {
|
|
15836
|
+
background: dC,
|
|
15837
|
+
padding: cC,
|
|
15838
|
+
margin: cC,
|
|
15839
|
+
borderRadius: cC,
|
|
15843
15840
|
border: /* @__PURE__ */ J({
|
|
15844
|
-
width:
|
|
15845
|
-
color:
|
|
15841
|
+
width: cC,
|
|
15842
|
+
color: oC,
|
|
15846
15843
|
style: /* @__PURE__ */ Gy([
|
|
15847
15844
|
"solid",
|
|
15848
15845
|
"dashed",
|
|
15849
15846
|
"dotted"
|
|
15850
15847
|
])
|
|
15851
15848
|
})
|
|
15852
|
-
},
|
|
15849
|
+
}, _C = { height: /* @__PURE__ */ Jy(sC) }, vC = /* @__PURE__ */ Qy((e) => e !== void 0), yC = { anchorId: /* @__PURE__ */ Jy(/* @__PURE__ */ Cy()) }, bC = /* @__PURE__ */ Gy([
|
|
15853
15850
|
"left",
|
|
15854
15851
|
"center",
|
|
15855
15852
|
"right"
|
|
15856
|
-
]),
|
|
15853
|
+
]), xC = /* @__PURE__ */ J({
|
|
15857
15854
|
type: /* @__PURE__ */ Y("text"),
|
|
15858
|
-
text:
|
|
15855
|
+
text: mC,
|
|
15859
15856
|
width: /* @__PURE__ */ Xy(/* @__PURE__ */ Gy(["full", "fit"]), "full"),
|
|
15860
|
-
align: /* @__PURE__ */ Xy(
|
|
15861
|
-
paragraphSpacing: /* @__PURE__ */ Jy(
|
|
15857
|
+
align: /* @__PURE__ */ Xy(bC, "left"),
|
|
15858
|
+
paragraphSpacing: /* @__PURE__ */ Jy(sC),
|
|
15862
15859
|
fitSize: /* @__PURE__ */ Jy(/* @__PURE__ */ J({
|
|
15863
15860
|
width: (/* @__PURE__ */ Oy()).check(/* @__PURE__ */ Ay(), /* @__PURE__ */ _y(1)),
|
|
15864
15861
|
height: (/* @__PURE__ */ Oy()).check(/* @__PURE__ */ Ay(), /* @__PURE__ */ _y(1))
|
|
15865
15862
|
})),
|
|
15866
|
-
...hC,
|
|
15867
15863
|
...gC,
|
|
15868
|
-
...
|
|
15869
|
-
|
|
15864
|
+
..._C,
|
|
15865
|
+
...yC
|
|
15866
|
+
}), SC = /* @__PURE__ */ J({
|
|
15870
15867
|
type: /* @__PURE__ */ Y("header"),
|
|
15871
|
-
text:
|
|
15872
|
-
...hC,
|
|
15868
|
+
text: hC,
|
|
15873
15869
|
...gC,
|
|
15874
|
-
...
|
|
15875
|
-
|
|
15870
|
+
..._C,
|
|
15871
|
+
...yC
|
|
15872
|
+
}), CC = /* @__PURE__ */ J({
|
|
15876
15873
|
type: /* @__PURE__ */ Y("image"),
|
|
15877
|
-
image:
|
|
15874
|
+
image: lC,
|
|
15878
15875
|
alt: /* @__PURE__ */ Cy(),
|
|
15879
15876
|
width: /* @__PURE__ */ Jy((/* @__PURE__ */ Oy()).check(/* @__PURE__ */ Ay(), /* @__PURE__ */ _y(1), /* @__PURE__ */ gy(100))),
|
|
15880
|
-
align: /* @__PURE__ */ Xy(
|
|
15881
|
-
...hC,
|
|
15877
|
+
align: /* @__PURE__ */ Xy(bC, "center"),
|
|
15882
15878
|
...gC,
|
|
15883
|
-
...
|
|
15884
|
-
|
|
15879
|
+
..._C,
|
|
15880
|
+
...yC
|
|
15881
|
+
}), wC = /* @__PURE__ */ Gy([
|
|
15885
15882
|
"arial",
|
|
15886
15883
|
"tahoma",
|
|
15887
15884
|
"trebuchet",
|
|
@@ -15889,7 +15886,7 @@ var XS = K.create({
|
|
|
15889
15886
|
"georgia",
|
|
15890
15887
|
"times",
|
|
15891
15888
|
"courier"
|
|
15892
|
-
]),
|
|
15889
|
+
]), TC = [
|
|
15893
15890
|
10,
|
|
15894
15891
|
12,
|
|
15895
15892
|
14,
|
|
@@ -15901,120 +15898,120 @@ var XS = K.create({
|
|
|
15901
15898
|
32,
|
|
15902
15899
|
36,
|
|
15903
15900
|
48
|
|
15904
|
-
],
|
|
15901
|
+
], EC = /* @__PURE__ */ J({
|
|
15905
15902
|
type: /* @__PURE__ */ Y("button"),
|
|
15906
15903
|
label: /* @__PURE__ */ Cy(),
|
|
15907
15904
|
url: /* @__PURE__ */ Cy(),
|
|
15908
|
-
textColor:
|
|
15909
|
-
font:
|
|
15910
|
-
align: /* @__PURE__ */ Xy(
|
|
15911
|
-
fontSize: /* @__PURE__ */ Jy(/* @__PURE__ */ Y(
|
|
15905
|
+
textColor: oC,
|
|
15906
|
+
font: wC,
|
|
15907
|
+
align: /* @__PURE__ */ Xy(bC, "center"),
|
|
15908
|
+
fontSize: /* @__PURE__ */ Jy(/* @__PURE__ */ Y(TC)),
|
|
15912
15909
|
customFont: /* @__PURE__ */ Jy((/* @__PURE__ */ Cy()).check(/* @__PURE__ */ vy(1))),
|
|
15913
|
-
...
|
|
15914
|
-
...
|
|
15915
|
-
}), EC = /* @__PURE__ */ J({
|
|
15916
|
-
type: /* @__PURE__ */ Y("spacer"),
|
|
15917
|
-
size: oC,
|
|
15918
|
-
...vC
|
|
15910
|
+
...gC,
|
|
15911
|
+
...yC
|
|
15919
15912
|
}), DC = /* @__PURE__ */ J({
|
|
15913
|
+
type: /* @__PURE__ */ Y("spacer"),
|
|
15914
|
+
size: sC,
|
|
15915
|
+
...yC
|
|
15916
|
+
}), OC = /* @__PURE__ */ J({
|
|
15920
15917
|
type: /* @__PURE__ */ Y("divider"),
|
|
15921
|
-
color:
|
|
15922
|
-
thickness:
|
|
15923
|
-
margin:
|
|
15924
|
-
borderRadius: /* @__PURE__ */ Xy(
|
|
15918
|
+
color: oC,
|
|
15919
|
+
thickness: sC,
|
|
15920
|
+
margin: cC,
|
|
15921
|
+
borderRadius: /* @__PURE__ */ Xy(cC, () => ({
|
|
15925
15922
|
mode: "simple",
|
|
15926
15923
|
value: 0
|
|
15927
15924
|
})),
|
|
15928
|
-
...
|
|
15929
|
-
}),
|
|
15925
|
+
...yC
|
|
15926
|
+
}), kC = /* @__PURE__ */ J({
|
|
15930
15927
|
type: /* @__PURE__ */ Y("html"),
|
|
15931
15928
|
html: /* @__PURE__ */ Cy(),
|
|
15932
|
-
margin:
|
|
15933
|
-
...
|
|
15934
|
-
}),
|
|
15929
|
+
margin: cC,
|
|
15930
|
+
...yC
|
|
15931
|
+
}), AC = /* @__PURE__ */ J({
|
|
15935
15932
|
type: /* @__PURE__ */ Y("custom"),
|
|
15936
15933
|
plugin: (/* @__PURE__ */ Cy()).check(/* @__PURE__ */ vy(1)),
|
|
15937
|
-
data:
|
|
15934
|
+
data: vC,
|
|
15938
15935
|
html: /* @__PURE__ */ Cy(),
|
|
15939
|
-
margin:
|
|
15940
|
-
...
|
|
15941
|
-
}),
|
|
15942
|
-
tagId:
|
|
15936
|
+
margin: cC,
|
|
15937
|
+
...yC
|
|
15938
|
+
}), jC = (/* @__PURE__ */ Cy()).check(/* @__PURE__ */ yy(z_)), MC = /* @__PURE__ */ Ly([/* @__PURE__ */ J({
|
|
15939
|
+
tagId: jC,
|
|
15943
15940
|
operator: /* @__PURE__ */ Gy(["equals", "notEquals"]),
|
|
15944
15941
|
value: /* @__PURE__ */ Cy()
|
|
15945
15942
|
}), /* @__PURE__ */ J({
|
|
15946
|
-
tagId:
|
|
15943
|
+
tagId: jC,
|
|
15947
15944
|
operator: /* @__PURE__ */ Gy(["anyOf", "noneOf"]),
|
|
15948
15945
|
values: /* @__PURE__ */ Py(/* @__PURE__ */ Cy())
|
|
15949
|
-
})]),
|
|
15950
|
-
...hC,
|
|
15946
|
+
})]), NC = {
|
|
15951
15947
|
...gC,
|
|
15952
|
-
...
|
|
15948
|
+
..._C,
|
|
15949
|
+
...yC,
|
|
15953
15950
|
type: /* @__PURE__ */ Y("columns"),
|
|
15954
15951
|
direction: /* @__PURE__ */ Gy(["ltr", "rtl"]),
|
|
15955
15952
|
visibility: /* @__PURE__ */ J({
|
|
15956
15953
|
desktop: /* @__PURE__ */ My(),
|
|
15957
15954
|
mobile: /* @__PURE__ */ My()
|
|
15958
15955
|
}),
|
|
15959
|
-
condition: /* @__PURE__ */ Jy(
|
|
15960
|
-
gap: /* @__PURE__ */ Jy(
|
|
15961
|
-
},
|
|
15956
|
+
condition: /* @__PURE__ */ Jy(MC),
|
|
15957
|
+
gap: /* @__PURE__ */ Jy(sC)
|
|
15958
|
+
}, PC = /* @__PURE__ */ J({
|
|
15962
15959
|
id: /* @__PURE__ */ Cy(),
|
|
15963
15960
|
get data() {
|
|
15964
|
-
return
|
|
15961
|
+
return LC;
|
|
15965
15962
|
}
|
|
15966
|
-
}),
|
|
15963
|
+
}), FC = /* @__PURE__ */ Py(PC), IC = /* @__PURE__ */ zy("layout", [
|
|
15967
15964
|
/* @__PURE__ */ J({
|
|
15968
|
-
...
|
|
15965
|
+
...NC,
|
|
15969
15966
|
layout: /* @__PURE__ */ Y("single"),
|
|
15970
|
-
children: /* @__PURE__ */ Vy([
|
|
15967
|
+
children: /* @__PURE__ */ Vy([FC])
|
|
15971
15968
|
}),
|
|
15972
15969
|
/* @__PURE__ */ J({
|
|
15973
|
-
...
|
|
15970
|
+
...NC,
|
|
15974
15971
|
layout: /* @__PURE__ */ Y("halves"),
|
|
15975
|
-
children: /* @__PURE__ */ Vy([
|
|
15972
|
+
children: /* @__PURE__ */ Vy([FC, FC])
|
|
15976
15973
|
}),
|
|
15977
15974
|
/* @__PURE__ */ J({
|
|
15978
|
-
...
|
|
15975
|
+
...NC,
|
|
15979
15976
|
layout: /* @__PURE__ */ Y("leftWide"),
|
|
15980
|
-
children: /* @__PURE__ */ Vy([
|
|
15977
|
+
children: /* @__PURE__ */ Vy([FC, FC])
|
|
15981
15978
|
}),
|
|
15982
15979
|
/* @__PURE__ */ J({
|
|
15983
|
-
...
|
|
15980
|
+
...NC,
|
|
15984
15981
|
layout: /* @__PURE__ */ Y("rightWide"),
|
|
15985
|
-
children: /* @__PURE__ */ Vy([
|
|
15982
|
+
children: /* @__PURE__ */ Vy([FC, FC])
|
|
15986
15983
|
}),
|
|
15987
15984
|
/* @__PURE__ */ J({
|
|
15988
|
-
...
|
|
15985
|
+
...NC,
|
|
15989
15986
|
layout: /* @__PURE__ */ Y("thirds"),
|
|
15990
15987
|
children: /* @__PURE__ */ Vy([
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15988
|
+
FC,
|
|
15989
|
+
FC,
|
|
15990
|
+
FC
|
|
15994
15991
|
])
|
|
15995
15992
|
}),
|
|
15996
15993
|
/* @__PURE__ */ J({
|
|
15997
|
-
...
|
|
15994
|
+
...NC,
|
|
15998
15995
|
layout: /* @__PURE__ */ Y("quarters"),
|
|
15999
15996
|
children: /* @__PURE__ */ Vy([
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
|
|
16003
|
-
|
|
15997
|
+
FC,
|
|
15998
|
+
FC,
|
|
15999
|
+
FC,
|
|
16000
|
+
FC
|
|
16004
16001
|
])
|
|
16005
16002
|
})
|
|
16006
|
-
]),
|
|
16007
|
-
bC,
|
|
16003
|
+
]), LC = /* @__PURE__ */ zy("type", [
|
|
16008
16004
|
xC,
|
|
16009
16005
|
SC,
|
|
16010
|
-
|
|
16006
|
+
CC,
|
|
16011
16007
|
EC,
|
|
16012
16008
|
DC,
|
|
16013
16009
|
OC,
|
|
16014
16010
|
kC,
|
|
16015
|
-
|
|
16011
|
+
AC,
|
|
16012
|
+
IC
|
|
16016
16013
|
]);
|
|
16017
|
-
function
|
|
16014
|
+
function RC(e, t) {
|
|
16018
16015
|
return e.children.flatMap((e, n) => e.flatMap((e, r) => {
|
|
16019
16016
|
if (e.data.type !== "columns") return [];
|
|
16020
16017
|
let i = e.data.condition !== void 0, a = [
|
|
@@ -16023,26 +16020,26 @@ function LC(e, t) {
|
|
|
16023
16020
|
r,
|
|
16024
16021
|
"data"
|
|
16025
16022
|
];
|
|
16026
|
-
return t && i ? [a] :
|
|
16023
|
+
return t && i ? [a] : RC(e.data, t || i).map((e) => [...a, ...e]);
|
|
16027
16024
|
}));
|
|
16028
16025
|
}
|
|
16029
|
-
var
|
|
16026
|
+
var zC = /* @__PURE__ */ J({
|
|
16030
16027
|
name: (/* @__PURE__ */ Cy()).check(/* @__PURE__ */ vy(1)),
|
|
16031
16028
|
href: /* @__PURE__ */ Ey(),
|
|
16032
16029
|
fontFamily: /* @__PURE__ */ Jy((/* @__PURE__ */ Cy()).check(/* @__PURE__ */ vy(1))),
|
|
16033
16030
|
type: /* @__PURE__ */ Jy(/* @__PURE__ */ Y(["file", "stylesheet"]))
|
|
16034
|
-
}),
|
|
16031
|
+
}), BC = /* @__PURE__ */ Y(["email", "page"]), VC = /* @__PURE__ */ J({
|
|
16035
16032
|
version: /* @__PURE__ */ Y(2),
|
|
16036
|
-
kind:
|
|
16037
|
-
root:
|
|
16038
|
-
background:
|
|
16039
|
-
font:
|
|
16040
|
-
width: (/* @__PURE__ */ Oy()).check(/* @__PURE__ */ Ay(), /* @__PURE__ */ _y(400), /* @__PURE__ */ gy(
|
|
16041
|
-
plugins: /* @__PURE__ */ Jy(/* @__PURE__ */ Uy(/* @__PURE__ */ Cy(),
|
|
16042
|
-
customFonts: /* @__PURE__ */ Jy(/* @__PURE__ */ Py(
|
|
16033
|
+
kind: BC,
|
|
16034
|
+
root: IC,
|
|
16035
|
+
background: dC,
|
|
16036
|
+
font: wC,
|
|
16037
|
+
width: (/* @__PURE__ */ Oy()).check(/* @__PURE__ */ Ay(), /* @__PURE__ */ _y(400), /* @__PURE__ */ gy(iC)),
|
|
16038
|
+
plugins: /* @__PURE__ */ Jy(/* @__PURE__ */ Uy(/* @__PURE__ */ Cy(), vC)),
|
|
16039
|
+
customFonts: /* @__PURE__ */ Jy(/* @__PURE__ */ Py(zC))
|
|
16043
16040
|
});
|
|
16044
|
-
function
|
|
16045
|
-
let t = e.condition === void 0 ? [] : [[]], n = e.children.flatMap((e, t) => e.flatMap((e, n) => e.data.type === "columns" ?
|
|
16041
|
+
function HC(e) {
|
|
16042
|
+
let t = e.condition === void 0 ? [] : [[]], n = e.children.flatMap((e, t) => e.flatMap((e, n) => e.data.type === "columns" ? HC(e.data).map((e) => [
|
|
16046
16043
|
"children",
|
|
16047
16044
|
t,
|
|
16048
16045
|
n,
|
|
@@ -16051,15 +16048,15 @@ function VC(e) {
|
|
|
16051
16048
|
]) : []));
|
|
16052
16049
|
return [...t, ...n];
|
|
16053
16050
|
}
|
|
16054
|
-
var
|
|
16055
|
-
let { root: t } = e.value, [n] =
|
|
16051
|
+
var UC = VC.check((e) => {
|
|
16052
|
+
let { root: t } = e.value, [n] = RC(t, t.condition !== void 0);
|
|
16056
16053
|
if (n && e.issues.push({
|
|
16057
16054
|
code: "custom",
|
|
16058
16055
|
input: e.value,
|
|
16059
16056
|
path: ["root", ...n],
|
|
16060
16057
|
message: "a conditional columns block may not contain another one"
|
|
16061
16058
|
}), e.value.kind === "page") {
|
|
16062
|
-
let [n] =
|
|
16059
|
+
let [n] = HC(t);
|
|
16063
16060
|
n && e.issues.push({
|
|
16064
16061
|
code: "custom",
|
|
16065
16062
|
input: e.value,
|
|
@@ -16071,25 +16068,25 @@ var HC = BC.check((e) => {
|
|
|
16071
16068
|
message: "a page document may not carry a Condition — dynamic content is an email feature"
|
|
16072
16069
|
});
|
|
16073
16070
|
}
|
|
16074
|
-
}),
|
|
16071
|
+
}), WC = /* @__PURE__ */ J({
|
|
16075
16072
|
version: /* @__PURE__ */ Y(2),
|
|
16076
|
-
kind:
|
|
16077
|
-
block:
|
|
16073
|
+
kind: BC,
|
|
16074
|
+
block: PC
|
|
16078
16075
|
});
|
|
16079
|
-
function
|
|
16076
|
+
function GC(e) {
|
|
16080
16077
|
if (e.data.type !== "columns") return [];
|
|
16081
16078
|
let t = e.data.condition !== void 0;
|
|
16082
|
-
return
|
|
16079
|
+
return RC(e.data, t).map((e) => ["data", ...e]);
|
|
16083
16080
|
}
|
|
16084
|
-
var
|
|
16085
|
-
let [t] =
|
|
16081
|
+
var KC = WC.check((e) => {
|
|
16082
|
+
let [t] = GC(e.value.block);
|
|
16086
16083
|
if (t && e.issues.push({
|
|
16087
16084
|
code: "custom",
|
|
16088
16085
|
input: e.value,
|
|
16089
16086
|
path: ["block", ...t],
|
|
16090
16087
|
message: "a conditional columns block may not contain another one"
|
|
16091
16088
|
}), e.value.kind === "page" && e.value.block.data.type === "columns") {
|
|
16092
|
-
let [t] =
|
|
16089
|
+
let [t] = HC(e.value.block.data);
|
|
16093
16090
|
t && e.issues.push({
|
|
16094
16091
|
code: "custom",
|
|
16095
16092
|
input: e.value,
|
|
@@ -16103,28 +16100,28 @@ var GC = UC.check((e) => {
|
|
|
16103
16100
|
});
|
|
16104
16101
|
}
|
|
16105
16102
|
});
|
|
16106
|
-
function
|
|
16103
|
+
function qC(e) {
|
|
16107
16104
|
return e.map((e) => {
|
|
16108
16105
|
let t = e.path.join(".");
|
|
16109
16106
|
return t ? `${t}: ${e.message}` : e.message;
|
|
16110
16107
|
}).join("; ");
|
|
16111
16108
|
}
|
|
16112
|
-
function
|
|
16113
|
-
let t =
|
|
16114
|
-
if (!t.success) throw TypeError(`[bygga] not a valid Document — ${
|
|
16109
|
+
function JC(e) {
|
|
16110
|
+
let t = UC.safeParse(e);
|
|
16111
|
+
if (!t.success) throw TypeError(`[bygga] not a valid Document — ${qC(t.error.issues)}`);
|
|
16115
16112
|
return t.data;
|
|
16116
16113
|
}
|
|
16117
|
-
function
|
|
16118
|
-
let t =
|
|
16119
|
-
if (!t.success) throw TypeError(`[bygga] not a valid Saved block — ${
|
|
16114
|
+
function YC(e) {
|
|
16115
|
+
let t = KC.safeParse(e);
|
|
16116
|
+
if (!t.success) throw TypeError(`[bygga] not a valid Saved block — ${qC(t.error.issues)}`);
|
|
16120
16117
|
return t.data;
|
|
16121
16118
|
}
|
|
16122
16119
|
//#endregion
|
|
16123
16120
|
//#region ../core/src/render/blockStyles.ts
|
|
16124
|
-
function
|
|
16125
|
-
return Math.round(Math.max(400, Math.min(
|
|
16121
|
+
function XC(e) {
|
|
16122
|
+
return Math.round(Math.max(400, Math.min(iC, e)));
|
|
16126
16123
|
}
|
|
16127
|
-
function
|
|
16124
|
+
function ZC(e, t = !1) {
|
|
16128
16125
|
switch (e.type) {
|
|
16129
16126
|
case "solid": return { backgroundColor: bi(e.color) };
|
|
16130
16127
|
case "image": {
|
|
@@ -16132,13 +16129,13 @@ function XC(e, t = !1) {
|
|
|
16132
16129
|
return n ? {
|
|
16133
16130
|
...t ? {} : { backgroundColor: bi(e.fallbackColor) },
|
|
16134
16131
|
backgroundImage: `url("${n}")`,
|
|
16135
|
-
...
|
|
16132
|
+
...QC(e.fit)
|
|
16136
16133
|
} : { backgroundColor: bi(e.fallbackColor) };
|
|
16137
16134
|
}
|
|
16138
16135
|
default: throw Error("Unhandled background type");
|
|
16139
16136
|
}
|
|
16140
16137
|
}
|
|
16141
|
-
function
|
|
16138
|
+
function QC(e) {
|
|
16142
16139
|
switch (e.mode) {
|
|
16143
16140
|
case "fill": return {
|
|
16144
16141
|
backgroundRepeat: "no-repeat",
|
|
@@ -16156,48 +16153,48 @@ function ZC(e) {
|
|
|
16156
16153
|
};
|
|
16157
16154
|
case "tile": return {
|
|
16158
16155
|
backgroundRepeat: "repeat",
|
|
16159
|
-
backgroundSize: `${
|
|
16156
|
+
backgroundSize: `${$C(e.zoom)}%`
|
|
16160
16157
|
};
|
|
16161
16158
|
default: throw Error("Unhandled image fit");
|
|
16162
16159
|
}
|
|
16163
16160
|
}
|
|
16164
|
-
function
|
|
16161
|
+
function $C(e) {
|
|
16165
16162
|
return Number.isFinite(e) ? Math.max(5, Math.min(100, e)) : 50;
|
|
16166
16163
|
}
|
|
16167
|
-
function
|
|
16164
|
+
function ew(e) {
|
|
16168
16165
|
return xi(e.type === "solid" ? e.color : e.fallbackColor);
|
|
16169
16166
|
}
|
|
16170
|
-
function
|
|
16167
|
+
function tw(e) {
|
|
16171
16168
|
let { top: t, right: n, bottom: r, left: i } = Ki(e.width);
|
|
16172
16169
|
return t > 0 || n > 0 || r > 0 || i > 0;
|
|
16173
16170
|
}
|
|
16174
|
-
function
|
|
16175
|
-
return
|
|
16171
|
+
function nw(e) {
|
|
16172
|
+
return tw(e) ? {
|
|
16176
16173
|
borderWidth: qi(e.width),
|
|
16177
16174
|
borderStyle: e.style,
|
|
16178
16175
|
borderColor: bi(e.color)
|
|
16179
16176
|
} : {};
|
|
16180
16177
|
}
|
|
16181
|
-
function
|
|
16178
|
+
function rw(e) {
|
|
16182
16179
|
return e === void 0 ? {} : { height: `${e}px` };
|
|
16183
16180
|
}
|
|
16184
|
-
function
|
|
16181
|
+
function iw(e) {
|
|
16185
16182
|
return e === void 0 ? void 0 : String(e);
|
|
16186
16183
|
}
|
|
16187
|
-
function
|
|
16184
|
+
function aw(e) {
|
|
16188
16185
|
return e === void 0 ? {} : { minHeight: `${e}px` };
|
|
16189
16186
|
}
|
|
16190
|
-
function
|
|
16187
|
+
function ow(e) {
|
|
16191
16188
|
return {
|
|
16192
|
-
...
|
|
16193
|
-
...
|
|
16194
|
-
...
|
|
16189
|
+
...ZC(e.background),
|
|
16190
|
+
...nw(e.border),
|
|
16191
|
+
...aw(e.height),
|
|
16195
16192
|
borderRadius: qi(e.borderRadius),
|
|
16196
16193
|
width: "100%",
|
|
16197
16194
|
boxSizing: "border-box"
|
|
16198
16195
|
};
|
|
16199
16196
|
}
|
|
16200
|
-
function
|
|
16197
|
+
function sw(e) {
|
|
16201
16198
|
return {
|
|
16202
16199
|
display: "block",
|
|
16203
16200
|
padding: qi(e.padding),
|
|
@@ -16207,43 +16204,43 @@ function ow(e) {
|
|
|
16207
16204
|
overflow: "hidden"
|
|
16208
16205
|
};
|
|
16209
16206
|
}
|
|
16210
|
-
function
|
|
16207
|
+
function cw(e) {
|
|
16211
16208
|
return {
|
|
16212
|
-
...
|
|
16213
|
-
...
|
|
16209
|
+
...ow(e),
|
|
16210
|
+
...sw(e)
|
|
16214
16211
|
};
|
|
16215
16212
|
}
|
|
16216
|
-
function
|
|
16213
|
+
function lw(e, t = !1) {
|
|
16217
16214
|
return {
|
|
16218
|
-
...
|
|
16219
|
-
...
|
|
16215
|
+
...ZC(e.background, t),
|
|
16216
|
+
...nw(e.border),
|
|
16220
16217
|
borderCollapse: "collapse",
|
|
16221
16218
|
width: "100%"
|
|
16222
16219
|
};
|
|
16223
16220
|
}
|
|
16224
|
-
function
|
|
16221
|
+
function uw(e) {
|
|
16225
16222
|
return {
|
|
16226
16223
|
backgroundColor: bi(e.background.type === "solid" ? e.background.color : e.background.fallbackColor),
|
|
16227
16224
|
boxSizing: "border-box"
|
|
16228
16225
|
};
|
|
16229
16226
|
}
|
|
16230
|
-
function
|
|
16227
|
+
function dw(e) {
|
|
16231
16228
|
return {
|
|
16232
|
-
...
|
|
16229
|
+
...rw(e.height),
|
|
16233
16230
|
padding: qi(e.padding)
|
|
16234
16231
|
};
|
|
16235
16232
|
}
|
|
16236
|
-
function
|
|
16233
|
+
function fw(e, t, n) {
|
|
16237
16234
|
return {
|
|
16238
16235
|
border: "0",
|
|
16239
16236
|
borderRadius: qi(e),
|
|
16240
16237
|
display: "block",
|
|
16241
16238
|
height: "auto",
|
|
16242
16239
|
width: `${t ?? 100}%`,
|
|
16243
|
-
...n ? { margin:
|
|
16240
|
+
...n ? { margin: pw(n) } : {}
|
|
16244
16241
|
};
|
|
16245
16242
|
}
|
|
16246
|
-
function
|
|
16243
|
+
function pw(e) {
|
|
16247
16244
|
switch (e) {
|
|
16248
16245
|
case "left": return "0 auto 0 0";
|
|
16249
16246
|
case "center": return "0 auto";
|
|
@@ -16251,27 +16248,27 @@ function fw(e) {
|
|
|
16251
16248
|
default: throw Error("Unhandled alignment");
|
|
16252
16249
|
}
|
|
16253
16250
|
}
|
|
16254
|
-
function
|
|
16251
|
+
function mw(e, t, n) {
|
|
16255
16252
|
if (t === void 0) return;
|
|
16256
16253
|
let { left: r, right: i } = Ki(e);
|
|
16257
16254
|
return Math.max(1, Math.round((t - r - i) * (n ?? 100) / 100));
|
|
16258
16255
|
}
|
|
16259
|
-
function
|
|
16256
|
+
function hw(e) {
|
|
16260
16257
|
let { top: t, right: n, bottom: r, left: i } = Ki(e);
|
|
16261
16258
|
return t || n || r || i ? { padding: qi(e) } : {};
|
|
16262
16259
|
}
|
|
16263
|
-
function
|
|
16260
|
+
function gw(e, t) {
|
|
16264
16261
|
if (t === void 0) return;
|
|
16265
16262
|
let { left: n, right: r } = Ki(e);
|
|
16266
16263
|
return Math.max(1, t - n - r);
|
|
16267
16264
|
}
|
|
16268
|
-
function
|
|
16265
|
+
function _w(e) {
|
|
16269
16266
|
return { textAlign: e };
|
|
16270
16267
|
}
|
|
16271
|
-
function
|
|
16268
|
+
function vw(e) {
|
|
16272
16269
|
return { textAlign: e };
|
|
16273
16270
|
}
|
|
16274
|
-
function
|
|
16271
|
+
function yw() {
|
|
16275
16272
|
return {
|
|
16276
16273
|
borderCollapse: "separate",
|
|
16277
16274
|
borderSpacing: "0",
|
|
@@ -16279,7 +16276,7 @@ function vw() {
|
|
|
16279
16276
|
verticalAlign: "top"
|
|
16280
16277
|
};
|
|
16281
16278
|
}
|
|
16282
|
-
function
|
|
16279
|
+
function bw() {
|
|
16283
16280
|
return {
|
|
16284
16281
|
borderCollapse: "separate",
|
|
16285
16282
|
borderSpacing: "0",
|
|
@@ -16287,15 +16284,15 @@ function yw() {
|
|
|
16287
16284
|
verticalAlign: "top"
|
|
16288
16285
|
};
|
|
16289
16286
|
}
|
|
16290
|
-
function
|
|
16287
|
+
function xw(e) {
|
|
16291
16288
|
return {
|
|
16292
|
-
...
|
|
16293
|
-
...
|
|
16289
|
+
...ZC(e.background),
|
|
16290
|
+
...nw(e.border),
|
|
16294
16291
|
borderRadius: qi(e.borderRadius),
|
|
16295
16292
|
"mso-padding-alt": qi(e.padding)
|
|
16296
16293
|
};
|
|
16297
16294
|
}
|
|
16298
|
-
function
|
|
16295
|
+
function Sw(e) {
|
|
16299
16296
|
return {
|
|
16300
16297
|
color: bi(e.textColor),
|
|
16301
16298
|
display: "block",
|
|
@@ -16307,14 +16304,14 @@ function xw(e) {
|
|
|
16307
16304
|
textDecoration: "none"
|
|
16308
16305
|
};
|
|
16309
16306
|
}
|
|
16310
|
-
function
|
|
16307
|
+
function Cw(e) {
|
|
16311
16308
|
return {
|
|
16312
16309
|
color: bi(e.textColor),
|
|
16313
16310
|
fontFamily: e.customFont ?? Ti(e.font),
|
|
16314
16311
|
fontWeight: "bold"
|
|
16315
16312
|
};
|
|
16316
16313
|
}
|
|
16317
|
-
function
|
|
16314
|
+
function ww(e) {
|
|
16318
16315
|
return {
|
|
16319
16316
|
height: `${e}px`,
|
|
16320
16317
|
lineHeight: `${e}px`,
|
|
@@ -16322,7 +16319,7 @@ function Cw(e) {
|
|
|
16322
16319
|
"mso-line-height-rule": "exactly"
|
|
16323
16320
|
};
|
|
16324
16321
|
}
|
|
16325
|
-
function
|
|
16322
|
+
function Tw(e) {
|
|
16326
16323
|
let t = Math.max(1, e.thickness);
|
|
16327
16324
|
return {
|
|
16328
16325
|
backgroundColor: bi(e.color),
|
|
@@ -16333,7 +16330,7 @@ function ww(e) {
|
|
|
16333
16330
|
borderRadius: qi(e.borderRadius)
|
|
16334
16331
|
};
|
|
16335
16332
|
}
|
|
16336
|
-
function
|
|
16333
|
+
function Ew(e) {
|
|
16337
16334
|
let { top: t, right: n, bottom: r, left: i } = Ki(e.borderRadius);
|
|
16338
16335
|
return {
|
|
16339
16336
|
...t > 0 || n > 0 || r > 0 || i > 0 ? {
|
|
@@ -16343,11 +16340,11 @@ function Tw(e) {
|
|
|
16343
16340
|
width: "100%"
|
|
16344
16341
|
};
|
|
16345
16342
|
}
|
|
16346
|
-
function
|
|
16343
|
+
function Dw(e, t = !1) {
|
|
16347
16344
|
return {
|
|
16348
|
-
...
|
|
16349
|
-
...
|
|
16350
|
-
...
|
|
16345
|
+
...ZC(e.background, t),
|
|
16346
|
+
...nw(e.border),
|
|
16347
|
+
...tw(e.border) ? {
|
|
16351
16348
|
borderCollapse: "separate",
|
|
16352
16349
|
borderSpacing: "0"
|
|
16353
16350
|
} : { borderCollapse: "collapse" },
|
|
@@ -16356,7 +16353,7 @@ function Ew(e, t = !1) {
|
|
|
16356
16353
|
width: "100%"
|
|
16357
16354
|
};
|
|
16358
16355
|
}
|
|
16359
|
-
function
|
|
16356
|
+
function Ow(e) {
|
|
16360
16357
|
return {
|
|
16361
16358
|
backgroundColor: bi(e.background.type === "solid" ? e.background.color : e.background.fallbackColor),
|
|
16362
16359
|
borderRadius: qi(e.borderRadius),
|
|
@@ -16364,19 +16361,19 @@ function Dw(e) {
|
|
|
16364
16361
|
boxSizing: "border-box"
|
|
16365
16362
|
};
|
|
16366
16363
|
}
|
|
16367
|
-
function
|
|
16364
|
+
function kw() {
|
|
16368
16365
|
return {
|
|
16369
16366
|
borderCollapse: "collapse",
|
|
16370
16367
|
tableLayout: "fixed",
|
|
16371
16368
|
width: "100%"
|
|
16372
16369
|
};
|
|
16373
16370
|
}
|
|
16374
|
-
function
|
|
16371
|
+
function Aw(e) {
|
|
16375
16372
|
let { left: t, right: n } = Ki(e);
|
|
16376
16373
|
return Math.min((t + n) / 4, t, n);
|
|
16377
16374
|
}
|
|
16378
|
-
function
|
|
16379
|
-
let i = Xi[e], a = i.reduce((e, t) => e + t, 0), { top: o, right: s, bottom: c, left: l } = Ki(t), u =
|
|
16375
|
+
function jw(e, t, n, r = 0) {
|
|
16376
|
+
let i = Xi[e], a = i.reduce((e, t) => e + t, 0), { top: o, right: s, bottom: c, left: l } = Ki(t), u = Aw(t), d = n === void 0 ? void 0 : n - (l - u) - (s - u), f = Math.max(0, r) * (i.length - 1), p = (e) => e / a, m = (e) => {
|
|
16380
16377
|
if (f === 0) {
|
|
16381
16378
|
let t = `${p(e) * 100}%`;
|
|
16382
16379
|
return {
|
|
@@ -16410,23 +16407,23 @@ function Aw(e, t, n, r = 0) {
|
|
|
16410
16407
|
}
|
|
16411
16408
|
//#endregion
|
|
16412
16409
|
//#region \0plugin-vue:export-helper
|
|
16413
|
-
var
|
|
16410
|
+
var Mw = (e, t) => {
|
|
16414
16411
|
let n = e.__vccOpts || e;
|
|
16415
16412
|
for (let [e, r] of t) n[e] = r;
|
|
16416
16413
|
return n;
|
|
16417
16414
|
};
|
|
16418
16415
|
//#endregion
|
|
16419
16416
|
//#region src/customFonts.ts
|
|
16420
|
-
function
|
|
16417
|
+
function Nw(e) {
|
|
16421
16418
|
return e.map((e) => ({
|
|
16422
16419
|
...e,
|
|
16423
16420
|
stack: Ai(e)
|
|
16424
16421
|
}));
|
|
16425
16422
|
}
|
|
16426
|
-
var
|
|
16427
|
-
function
|
|
16423
|
+
var Pw = /* @__PURE__ */ new Set();
|
|
16424
|
+
function Fw(e) {
|
|
16428
16425
|
if (!(typeof document > "u")) {
|
|
16429
|
-
for (let t of e) if (!
|
|
16426
|
+
for (let t of e) if (!Pw.has(t.href)) if (Pw.add(t.href), Ni(t) === "file") {
|
|
16430
16427
|
if (typeof FontFace > "u") continue;
|
|
16431
16428
|
let e = new FontFace(t.name, `url("${t.href}")`, { display: "swap" });
|
|
16432
16429
|
document.fonts.add(e), e.load().catch((e) => {
|
|
@@ -16440,9 +16437,9 @@ function Pw(e) {
|
|
|
16440
16437
|
}
|
|
16441
16438
|
}
|
|
16442
16439
|
}
|
|
16443
|
-
function
|
|
16440
|
+
function Iw(e, t) {
|
|
16444
16441
|
if (Array.isArray(e)) {
|
|
16445
|
-
for (let n of e)
|
|
16442
|
+
for (let n of e) Iw(n, t);
|
|
16446
16443
|
return;
|
|
16447
16444
|
}
|
|
16448
16445
|
if (typeof e != "object" || !e) return;
|
|
@@ -16452,11 +16449,11 @@ function Fw(e, t) {
|
|
|
16452
16449
|
typeof e?.fontFamily == "string" && t.add(e.fontFamily);
|
|
16453
16450
|
}
|
|
16454
16451
|
n.type === "button" && typeof n.customFont == "string" && t.add(n.customFont);
|
|
16455
|
-
for (let e of Object.values(n))
|
|
16452
|
+
for (let e of Object.values(n)) Iw(e, t);
|
|
16456
16453
|
}
|
|
16457
|
-
function
|
|
16454
|
+
function Lw(e, t) {
|
|
16458
16455
|
let n = /* @__PURE__ */ new Set();
|
|
16459
|
-
|
|
16456
|
+
Iw(e.root, n);
|
|
16460
16457
|
let r = e.customFonts ?? [], i = [], a = (e) => {
|
|
16461
16458
|
let t = Ai(e);
|
|
16462
16459
|
n.has(t) && !i.some((e) => Ai(e) === t) && i.push(e);
|
|
@@ -16468,15 +16465,15 @@ function Iw(e, t) {
|
|
|
16468
16465
|
}
|
|
16469
16466
|
//#endregion
|
|
16470
16467
|
//#region src/assets/icons/board.svg?component
|
|
16471
|
-
var
|
|
16468
|
+
var Rw = {
|
|
16472
16469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16473
16470
|
width: "55",
|
|
16474
16471
|
height: "55",
|
|
16475
16472
|
fill: "none",
|
|
16476
16473
|
viewBox: "0 0 54.64 54.64"
|
|
16477
16474
|
};
|
|
16478
|
-
function
|
|
16479
|
-
return c(), h("svg",
|
|
16475
|
+
function zw(e, t) {
|
|
16476
|
+
return c(), h("svg", Rw, [...t[0] ||= [v("path", {
|
|
16480
16477
|
stroke: "currentColor",
|
|
16481
16478
|
"stroke-linejoin": "round",
|
|
16482
16479
|
"stroke-width": "2",
|
|
@@ -16488,15 +16485,15 @@ function Rw(e, t) {
|
|
|
16488
16485
|
d: "M20.984 10.07c1.403.219 2.302 1.43 2.356 2.85.095 2.522.22 7.192.22 14.4s-.125 11.878-.22 14.4c-.054 1.42-.953 2.631-2.356 2.85-1.042.161-2.467.297-4.317.297s-3.276-.136-4.317-.298c-1.404-.218-2.303-1.429-2.356-2.848-.096-2.523-.22-7.193-.22-14.401s.124-11.878.22-14.4c.053-1.42.952-2.631 2.356-2.85 1.041-.161 2.466-.297 4.317-.297s3.275.136 4.317.298ZM34.03 9.903c-1.582.116-2.734 1.369-2.813 2.953-.072 1.45-.137 3.529-.137 6.317s.065 4.868.137 6.318c.08 1.584 1.23 2.836 2.813 2.952 1 .073 2.305.13 3.943.13 1.639 0 2.943-.057 3.944-.13 1.582-.116 2.734-1.368 2.813-2.952.072-1.45.137-3.529.137-6.318s-.065-4.868-.137-6.317c-.08-1.584-1.231-2.837-2.813-2.953-1-.073-2.305-.13-3.944-.13s-2.943.057-3.943.13Z"
|
|
16489
16486
|
}, null, -1)]]);
|
|
16490
16487
|
}
|
|
16491
|
-
var
|
|
16488
|
+
var Bw = { render: zw }, Vw = {
|
|
16492
16489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16493
16490
|
width: "16",
|
|
16494
16491
|
height: "16",
|
|
16495
16492
|
fill: "none",
|
|
16496
16493
|
viewBox: "0 0 16 16"
|
|
16497
16494
|
};
|
|
16498
|
-
function
|
|
16499
|
-
return c(), h("svg",
|
|
16495
|
+
function Hw(e, t) {
|
|
16496
|
+
return c(), h("svg", Vw, [...t[0] ||= [v("path", {
|
|
16500
16497
|
stroke: "currentColor",
|
|
16501
16498
|
"stroke-linecap": "round",
|
|
16502
16499
|
"stroke-linejoin": "round",
|
|
@@ -16504,15 +16501,15 @@ function Vw(e, t) {
|
|
|
16504
16501
|
d: "m12.33 13.67-4.33-3-4.33 3v-10c0-.74.6-1.34 1.33-1.34h6c.74 0 1.33.6 1.33 1.34z"
|
|
16505
16502
|
}, null, -1)]]);
|
|
16506
16503
|
}
|
|
16507
|
-
var
|
|
16504
|
+
var Uw = { render: Hw }, Ww = {
|
|
16508
16505
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16509
16506
|
width: "16",
|
|
16510
16507
|
height: "16",
|
|
16511
16508
|
fill: "none",
|
|
16512
16509
|
viewBox: "0 0 16 16"
|
|
16513
16510
|
};
|
|
16514
|
-
function
|
|
16515
|
-
return c(), h("svg",
|
|
16511
|
+
function Gw(e, t) {
|
|
16512
|
+
return c(), h("svg", Ww, [...t[0] ||= [v("path", {
|
|
16516
16513
|
stroke: "currentColor",
|
|
16517
16514
|
"stroke-linecap": "round",
|
|
16518
16515
|
"stroke-linejoin": "round",
|
|
@@ -16520,15 +16517,15 @@ function Ww(e, t) {
|
|
|
16520
16517
|
d: "M6.5 3c-1 0-1 1-1 2 0 1.5-1 2-1 3s1 1.5 1 3c0 1 0 2 1 2M9.5 3c1 0 1 1 1 2 0 1.5 1 2 1 3s-1 1.5-1 3c0 1 0 2-1 2"
|
|
16521
16518
|
}, null, -1)]]);
|
|
16522
16519
|
}
|
|
16523
|
-
var
|
|
16520
|
+
var Kw = { render: Gw }, qw = {
|
|
16524
16521
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16525
16522
|
width: "40",
|
|
16526
16523
|
height: "40",
|
|
16527
16524
|
fill: "none",
|
|
16528
16525
|
viewBox: "0 0 40 40"
|
|
16529
16526
|
};
|
|
16530
|
-
function
|
|
16531
|
-
return c(), h("svg",
|
|
16527
|
+
function Jw(e, t) {
|
|
16528
|
+
return c(), h("svg", qw, [...t[0] ||= [v("rect", {
|
|
16532
16529
|
width: "28",
|
|
16533
16530
|
height: "14",
|
|
16534
16531
|
x: "6",
|
|
@@ -16544,15 +16541,15 @@ function qw(e, t) {
|
|
|
16544
16541
|
d: "M14 20h12"
|
|
16545
16542
|
}, null, -1)]]);
|
|
16546
16543
|
}
|
|
16547
|
-
var
|
|
16544
|
+
var Yw = { render: Jw }, Xw = {
|
|
16548
16545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16549
16546
|
width: "16",
|
|
16550
16547
|
height: "16",
|
|
16551
16548
|
fill: "none",
|
|
16552
16549
|
viewBox: "0 0 16 16"
|
|
16553
16550
|
};
|
|
16554
|
-
function
|
|
16555
|
-
return c(), h("svg",
|
|
16551
|
+
function Zw(e, t) {
|
|
16552
|
+
return c(), h("svg", Xw, [...t[0] ||= [v("path", {
|
|
16556
16553
|
stroke: "currentColor",
|
|
16557
16554
|
"stroke-linecap": "round",
|
|
16558
16555
|
"stroke-linejoin": "round",
|
|
@@ -16560,30 +16557,30 @@ function Xw(e, t) {
|
|
|
16560
16557
|
d: "m4 6 4 4 4-4"
|
|
16561
16558
|
}, null, -1)]]);
|
|
16562
16559
|
}
|
|
16563
|
-
var
|
|
16560
|
+
var Qw = { render: Zw }, $w = {
|
|
16564
16561
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16565
16562
|
width: "16",
|
|
16566
16563
|
height: "16",
|
|
16567
16564
|
fill: "none",
|
|
16568
16565
|
viewBox: "0 0 16 16"
|
|
16569
16566
|
};
|
|
16570
|
-
function
|
|
16571
|
-
return c(), h("svg",
|
|
16567
|
+
function eT(e, t) {
|
|
16568
|
+
return c(), h("svg", $w, [...t[0] ||= [v("path", {
|
|
16572
16569
|
stroke: "currentColor",
|
|
16573
16570
|
"stroke-linecap": "round",
|
|
16574
16571
|
"stroke-width": "1.2",
|
|
16575
16572
|
d: "m4 4 8 8M12 4l-8 8"
|
|
16576
16573
|
}, null, -1)]]);
|
|
16577
16574
|
}
|
|
16578
|
-
var
|
|
16575
|
+
var tT = { render: eT }, nT = {
|
|
16579
16576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16580
16577
|
width: "40",
|
|
16581
16578
|
height: "40",
|
|
16582
16579
|
fill: "none",
|
|
16583
16580
|
viewBox: "0 0 40 40"
|
|
16584
16581
|
};
|
|
16585
|
-
function
|
|
16586
|
-
return c(), h("svg",
|
|
16582
|
+
function rT(e, t) {
|
|
16583
|
+
return c(), h("svg", nT, [...t[0] ||= [v("rect", {
|
|
16587
16584
|
width: "28",
|
|
16588
16585
|
height: "22",
|
|
16589
16586
|
x: "6",
|
|
@@ -16599,15 +16596,15 @@ function nT(e, t) {
|
|
|
16599
16596
|
d: "M15.33 9.6v20.8M24.67 9.6v20.8"
|
|
16600
16597
|
}, null, -1)]]);
|
|
16601
16598
|
}
|
|
16602
|
-
var
|
|
16599
|
+
var iT = { render: rT }, aT = {
|
|
16603
16600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16604
16601
|
width: "16",
|
|
16605
16602
|
height: "16",
|
|
16606
16603
|
fill: "none",
|
|
16607
16604
|
viewBox: "0 0 16 16"
|
|
16608
16605
|
};
|
|
16609
|
-
function
|
|
16610
|
-
return c(), h("svg",
|
|
16606
|
+
function oT(e, t) {
|
|
16607
|
+
return c(), h("svg", aT, [...t[0] ||= [v("rect", {
|
|
16611
16608
|
width: "7.33",
|
|
16612
16609
|
height: "7.67",
|
|
16613
16610
|
x: "6",
|
|
@@ -16624,15 +16621,15 @@ function aT(e, t) {
|
|
|
16624
16621
|
d: "M10 4.33v-.66c0-.74-.6-1.34-1.33-1.34h-5c-.74 0-1.34.6-1.34 1.34v5c0 .73.6 1.33 1.34 1.33h.66"
|
|
16625
16622
|
}, null, -1)]]);
|
|
16626
16623
|
}
|
|
16627
|
-
var
|
|
16624
|
+
var sT = { render: oT }, cT = {
|
|
16628
16625
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16629
16626
|
width: "16",
|
|
16630
16627
|
height: "16",
|
|
16631
16628
|
fill: "none",
|
|
16632
16629
|
viewBox: "0 0 16 16"
|
|
16633
16630
|
};
|
|
16634
|
-
function
|
|
16635
|
-
return c(), h("svg",
|
|
16631
|
+
function lT(e, t) {
|
|
16632
|
+
return c(), h("svg", cT, [...t[0] ||= [v("rect", {
|
|
16636
16633
|
width: "13",
|
|
16637
16634
|
height: "8.5",
|
|
16638
16635
|
x: "1.5",
|
|
@@ -16648,15 +16645,15 @@ function cT(e, t) {
|
|
|
16648
16645
|
d: "M6 14.5h4M8 11v3.5"
|
|
16649
16646
|
}, null, -1)]]);
|
|
16650
16647
|
}
|
|
16651
|
-
var
|
|
16648
|
+
var uT = { render: lT }, dT = {
|
|
16652
16649
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16653
16650
|
width: "40",
|
|
16654
16651
|
height: "40",
|
|
16655
16652
|
fill: "none",
|
|
16656
16653
|
viewBox: "0 0 20 20"
|
|
16657
16654
|
};
|
|
16658
|
-
function
|
|
16659
|
-
return c(), h("svg",
|
|
16655
|
+
function fT(e, t) {
|
|
16656
|
+
return c(), h("svg", dT, [...t[0] ||= [v("g", {
|
|
16660
16657
|
stroke: "currentColor",
|
|
16661
16658
|
"stroke-linecap": "round",
|
|
16662
16659
|
"stroke-linejoin": "round",
|
|
@@ -16666,15 +16663,15 @@ function dT(e, t) {
|
|
|
16666
16663
|
d: "M11.046 5.442a76 76 0 0 1-.065 2.172c-.016.353-.234.651-.586.68a4.5 4.5 0 0 1-.721 0c-.387-.03-.64-.358-.657-.746a77 77 0 0 1-.062-2.107l-.301.265c-.294.257-.72.369-1.011.11a1 1 0 0 1-.118-.122 2 2 0 0 1-.14-.186c-.217-.326-.159-.75.094-1.05a8.5 8.5 0 0 1 1.65-1.487c.532-.37 1.231-.405 1.76-.033.513.359 1.093.865 1.635 1.52.25.3.309.724.091 1.05q-.064.096-.14.186a1 1 0 0 1-.118.121c-.291.26-.717.148-1.01-.11zM8.954 14.587a76 76 0 0 1 .065-2.173c.016-.352.234-.651.586-.68a4.5 4.5 0 0 1 .721 0c.387.03.64.358.657.746.021.48.047 1.207.062 2.107l.301-.264c.294-.258.72-.37 1.011-.11q.062.055.118.12.075.091.14.188c.217.325.159.75-.094 1.048a8.5 8.5 0 0 1-1.65 1.488c-.532.37-1.231.405-1.76.034a8.5 8.5 0 0 1-1.635-1.52c-.25-.301-.308-.725-.091-1.05a2 2 0 0 1 .14-.187q.056-.067.118-.121c.291-.26.717-.148 1.01.11zM3.342 10h13.316"
|
|
16667
16664
|
})], -1)]]);
|
|
16668
16665
|
}
|
|
16669
|
-
var
|
|
16666
|
+
var pT = { render: fT }, mT = {
|
|
16670
16667
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16671
16668
|
width: "16",
|
|
16672
16669
|
height: "16",
|
|
16673
16670
|
fill: "none",
|
|
16674
16671
|
viewBox: "0 0 16 16"
|
|
16675
16672
|
};
|
|
16676
|
-
function
|
|
16677
|
-
return c(), h("svg",
|
|
16673
|
+
function hT(e, t) {
|
|
16674
|
+
return c(), h("svg", mT, [...t[0] ||= [v("path", {
|
|
16678
16675
|
stroke: "currentColor",
|
|
16679
16676
|
"stroke-width": "1.2",
|
|
16680
16677
|
d: "M1.148 8.293a1.05 1.05 0 0 1 0-.581C1.983 4.806 4.735 2.673 8 2.673c3.264 0 6.014 2.13 6.851 5.034.055.19.055.391 0 .581-.835 2.906-3.587 5.039-6.852 5.039-3.264 0-6.014-2.13-6.851-5.034Z"
|
|
@@ -16686,15 +16683,15 @@ function mT(e, t) {
|
|
|
16686
16683
|
d: "M11.133 8a3.133 3.133 0 1 1-6.266 0 3.133 3.133 0 0 1 6.266 0"
|
|
16687
16684
|
}, null, -1)]]);
|
|
16688
16685
|
}
|
|
16689
|
-
var
|
|
16686
|
+
var gT = { render: hT }, _T = {
|
|
16690
16687
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16691
16688
|
width: "40",
|
|
16692
16689
|
height: "40",
|
|
16693
16690
|
fill: "none",
|
|
16694
16691
|
viewBox: "0 0 40 40"
|
|
16695
16692
|
};
|
|
16696
|
-
function
|
|
16697
|
-
return c(), h("svg",
|
|
16693
|
+
function vT(e, t) {
|
|
16694
|
+
return c(), h("svg", _T, [...t[0] ||= [v("path", {
|
|
16698
16695
|
stroke: "currentColor",
|
|
16699
16696
|
"stroke-linecap": "round",
|
|
16700
16697
|
"stroke-linejoin": "round",
|
|
@@ -16702,15 +16699,15 @@ function _T(e, t) {
|
|
|
16702
16699
|
d: "M10 8v24M24 8v24M10 20h14M30 26l3-2v8"
|
|
16703
16700
|
}, null, -1)]]);
|
|
16704
16701
|
}
|
|
16705
|
-
var
|
|
16702
|
+
var yT = { render: vT }, bT = {
|
|
16706
16703
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16707
16704
|
width: "40",
|
|
16708
16705
|
height: "40",
|
|
16709
16706
|
fill: "none",
|
|
16710
16707
|
viewBox: "0 0 40 40"
|
|
16711
16708
|
};
|
|
16712
|
-
function
|
|
16713
|
-
return c(), h("svg",
|
|
16709
|
+
function xT(e, t) {
|
|
16710
|
+
return c(), h("svg", bT, [...t[0] ||= [v("rect", {
|
|
16714
16711
|
width: "28",
|
|
16715
16712
|
height: "22",
|
|
16716
16713
|
x: "6",
|
|
@@ -16727,15 +16724,15 @@ function bT(e, t) {
|
|
|
16727
16724
|
d: "m17 16-4 4 4 4M23 16l4 4-4 4"
|
|
16728
16725
|
}, null, -1)]]);
|
|
16729
16726
|
}
|
|
16730
|
-
var
|
|
16727
|
+
var ST = { render: xT }, CT = {
|
|
16731
16728
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16732
16729
|
width: "40",
|
|
16733
16730
|
height: "40",
|
|
16734
16731
|
fill: "none",
|
|
16735
16732
|
viewBox: "0 0 40 40"
|
|
16736
16733
|
};
|
|
16737
|
-
function
|
|
16738
|
-
return c(), h("svg",
|
|
16734
|
+
function wT(e, t) {
|
|
16735
|
+
return c(), h("svg", CT, [...t[0] ||= [
|
|
16739
16736
|
v("rect", {
|
|
16740
16737
|
width: "28",
|
|
16741
16738
|
height: "22",
|
|
@@ -16769,30 +16766,30 @@ function CT(e, t) {
|
|
|
16769
16766
|
}, null, -1)
|
|
16770
16767
|
]]);
|
|
16771
16768
|
}
|
|
16772
|
-
var
|
|
16769
|
+
var TT = { render: wT }, ET = {
|
|
16773
16770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16774
16771
|
width: "16",
|
|
16775
16772
|
height: "16",
|
|
16776
16773
|
fill: "none",
|
|
16777
16774
|
viewBox: "0 0 16 16"
|
|
16778
16775
|
};
|
|
16779
|
-
function
|
|
16780
|
-
return c(), h("svg",
|
|
16776
|
+
function DT(e, t) {
|
|
16777
|
+
return c(), h("svg", ET, [...t[0] ||= [v("path", {
|
|
16781
16778
|
fill: "currentColor",
|
|
16782
16779
|
"fill-rule": "evenodd",
|
|
16783
16780
|
d: "M8 15.833A7.833 7.833 0 1 1 8 .167a7.833 7.833 0 0 1 0 15.666M6.333 4.5A1.333 1.333 0 1 1 9 4.5a1.333 1.333 0 0 1-2.667 0M8.96 7.038c-.023-.38-.266-.674-.645-.696A6 6 0 0 0 8 6.333H6.833q-.291 0-.493.013c-.396.022-.66.313-.67.71a11 11 0 0 0 0 .555c.01.396.274.688.67.71A9 9 0 0 0 7 8.332L7 8.667v2.01c-.423.008-.74.022-.97.036-.365.022-.658.247-.685.61a5 5 0 0 0 0 .686c.027.365.32.59.684.611.387.024 1.008.047 1.971.047s1.584-.023 1.97-.046c.365-.023.658-.247.685-.612a5 5 0 0 0 0-.685c-.027-.364-.32-.589-.684-.611A24 24 0 0 0 9 10.676v-2.01c0-.767-.019-1.286-.04-1.628",
|
|
16784
16781
|
"clip-rule": "evenodd"
|
|
16785
16782
|
}, null, -1)]]);
|
|
16786
16783
|
}
|
|
16787
|
-
var
|
|
16784
|
+
var OT = { render: DT }, kT = {
|
|
16788
16785
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16789
16786
|
width: "16",
|
|
16790
16787
|
height: "16",
|
|
16791
16788
|
fill: "none",
|
|
16792
16789
|
viewBox: "0 0 16 16"
|
|
16793
16790
|
};
|
|
16794
|
-
function
|
|
16795
|
-
return c(), h("svg",
|
|
16791
|
+
function AT(e, t) {
|
|
16792
|
+
return c(), h("svg", kT, [...t[0] ||= [v("path", {
|
|
16796
16793
|
stroke: "currentColor",
|
|
16797
16794
|
"stroke-linecap": "round",
|
|
16798
16795
|
"stroke-width": "1.2",
|
|
@@ -16805,15 +16802,15 @@ function kT(e, t) {
|
|
|
16805
16802
|
d: "m7 4.5 1-1c1.1-1.1 2.9-1.1 4 0s1.1 2.9 0 4l-1 1M9 11.5l-1 1c-1.1 1.1-2.9 1.1-4 0s-1.1-2.9 0-4l1-1"
|
|
16806
16803
|
}, null, -1)]]);
|
|
16807
16804
|
}
|
|
16808
|
-
var
|
|
16805
|
+
var jT = { render: AT }, MT = {
|
|
16809
16806
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16810
16807
|
width: "16",
|
|
16811
16808
|
height: "16",
|
|
16812
16809
|
fill: "none",
|
|
16813
16810
|
viewBox: "0 0 16 16"
|
|
16814
16811
|
};
|
|
16815
|
-
function
|
|
16816
|
-
return c(), h("svg",
|
|
16812
|
+
function NT(e, t) {
|
|
16813
|
+
return c(), h("svg", MT, [...t[0] ||= [v("rect", {
|
|
16817
16814
|
width: "7",
|
|
16818
16815
|
height: "13",
|
|
16819
16816
|
x: "4.5",
|
|
@@ -16829,15 +16826,15 @@ function MT(e, t) {
|
|
|
16829
16826
|
d: "M6.5 12.5h3"
|
|
16830
16827
|
}, null, -1)]]);
|
|
16831
16828
|
}
|
|
16832
|
-
var
|
|
16829
|
+
var PT = { render: NT }, FT = {
|
|
16833
16830
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16834
16831
|
width: "40",
|
|
16835
16832
|
height: "40",
|
|
16836
16833
|
fill: "none",
|
|
16837
16834
|
viewBox: "0 0 40 40"
|
|
16838
16835
|
};
|
|
16839
|
-
function
|
|
16840
|
-
return c(), h("svg",
|
|
16836
|
+
function IT(e, t) {
|
|
16837
|
+
return c(), h("svg", FT, [...t[0] ||= [v("path", {
|
|
16841
16838
|
stroke: "currentColor",
|
|
16842
16839
|
"stroke-linecap": "round",
|
|
16843
16840
|
"stroke-linejoin": "round",
|
|
@@ -16845,15 +16842,15 @@ function FT(e, t) {
|
|
|
16845
16842
|
d: "M35 10H5M35 20H5M20 30H5"
|
|
16846
16843
|
}, null, -1)]]);
|
|
16847
16844
|
}
|
|
16848
|
-
var
|
|
16845
|
+
var LT = { render: IT }, RT = {
|
|
16849
16846
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16850
16847
|
width: "18",
|
|
16851
16848
|
height: "18",
|
|
16852
16849
|
fill: "none",
|
|
16853
16850
|
viewBox: "0 0 18.092 18.419"
|
|
16854
16851
|
};
|
|
16855
|
-
function
|
|
16856
|
-
return c(), h("svg",
|
|
16852
|
+
function zT(e, t) {
|
|
16853
|
+
return c(), h("svg", RT, [...t[0] ||= [
|
|
16857
16854
|
v("path", {
|
|
16858
16855
|
stroke: "currentColor",
|
|
16859
16856
|
"stroke-linejoin": "round",
|
|
@@ -16875,15 +16872,15 @@ function RT(e, t) {
|
|
|
16875
16872
|
}, null, -1)
|
|
16876
16873
|
]]);
|
|
16877
16874
|
}
|
|
16878
|
-
var
|
|
16875
|
+
var BT = { render: zT }, VT = {
|
|
16879
16876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16880
16877
|
width: "40",
|
|
16881
16878
|
height: "40",
|
|
16882
16879
|
fill: "none",
|
|
16883
16880
|
viewBox: "0 0 40 40"
|
|
16884
16881
|
};
|
|
16885
|
-
function
|
|
16886
|
-
return c(), h("svg",
|
|
16882
|
+
function HT(e, t) {
|
|
16883
|
+
return c(), h("svg", VT, [...t[0] ||= [v("path", {
|
|
16887
16884
|
stroke: "currentColor",
|
|
16888
16885
|
"stroke-linecap": "round",
|
|
16889
16886
|
"stroke-width": "1.2",
|
|
@@ -16896,15 +16893,15 @@ function VT(e, t) {
|
|
|
16896
16893
|
d: "M16.5 17.5 20 14l3.5 3.5M16.5 22.5 20 26l3.5-3.5"
|
|
16897
16894
|
}, null, -1)]]);
|
|
16898
16895
|
}
|
|
16899
|
-
var
|
|
16896
|
+
var UT = { render: HT }, WT = {
|
|
16900
16897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16901
16898
|
width: "16",
|
|
16902
16899
|
height: "16",
|
|
16903
16900
|
fill: "none",
|
|
16904
16901
|
viewBox: "0 0 16 16"
|
|
16905
16902
|
};
|
|
16906
|
-
function
|
|
16907
|
-
return c(), h("svg",
|
|
16903
|
+
function GT(e, t) {
|
|
16904
|
+
return c(), h("svg", WT, [...t[0] ||= [v("path", {
|
|
16908
16905
|
stroke: "currentColor",
|
|
16909
16906
|
"stroke-linecap": "round",
|
|
16910
16907
|
"stroke-linejoin": "round",
|
|
@@ -16912,15 +16909,15 @@ function WT(e, t) {
|
|
|
16912
16909
|
d: "m6.5 2.5 1.1 2.9 2.9 1.1-2.9 1.1-1.1 2.9-1.1-2.9-2.9-1.1 2.9-1.1zM11.5 9l.6 1.9 1.9.6-1.9.6-.6 1.9-.6-1.9-1.9-.6 1.9-.6z"
|
|
16913
16910
|
}, null, -1)]]);
|
|
16914
16911
|
}
|
|
16915
|
-
var
|
|
16912
|
+
var KT = { render: GT }, qT = {
|
|
16916
16913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16917
16914
|
width: "16",
|
|
16918
16915
|
height: "16",
|
|
16919
16916
|
fill: "none",
|
|
16920
16917
|
viewBox: "0 0 16 16"
|
|
16921
16918
|
};
|
|
16922
|
-
function
|
|
16923
|
-
return c(), h("svg",
|
|
16919
|
+
function JT(e, t) {
|
|
16920
|
+
return c(), h("svg", qT, [...t[0] ||= [
|
|
16924
16921
|
v("path", {
|
|
16925
16922
|
stroke: "currentColor",
|
|
16926
16923
|
"stroke-linecap": "round",
|
|
@@ -16948,15 +16945,15 @@ function qT(e, t) {
|
|
|
16948
16945
|
}, null, -1)
|
|
16949
16946
|
]]);
|
|
16950
16947
|
}
|
|
16951
|
-
var
|
|
16948
|
+
var YT = { render: JT }, XT = {
|
|
16952
16949
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16953
16950
|
width: "20",
|
|
16954
16951
|
height: "20",
|
|
16955
16952
|
fill: "none",
|
|
16956
16953
|
viewBox: "0 0 20 20"
|
|
16957
16954
|
};
|
|
16958
|
-
function
|
|
16959
|
-
return c(), h("svg",
|
|
16955
|
+
function ZT(e, t) {
|
|
16956
|
+
return c(), h("svg", XT, [...t[0] ||= [
|
|
16960
16957
|
v("path", {
|
|
16961
16958
|
stroke: "currentColor",
|
|
16962
16959
|
"stroke-linejoin": "round",
|
|
@@ -16977,7 +16974,7 @@ function XT(e, t) {
|
|
|
16977
16974
|
}, null, -1)
|
|
16978
16975
|
]]);
|
|
16979
16976
|
}
|
|
16980
|
-
var
|
|
16977
|
+
var QT = { render: ZT }, $T = /* @__PURE__ */ p({
|
|
16981
16978
|
__name: "AppIcon",
|
|
16982
16979
|
props: {
|
|
16983
16980
|
name: { type: String },
|
|
@@ -16988,33 +16985,33 @@ var ZT = { render: XT }, QT = /* @__PURE__ */ p({
|
|
|
16988
16985
|
},
|
|
16989
16986
|
setup(e) {
|
|
16990
16987
|
let t = e, n = {
|
|
16991
|
-
pencil:
|
|
16992
|
-
eye:
|
|
16993
|
-
info:
|
|
16994
|
-
board:
|
|
16995
|
-
braces:
|
|
16996
|
-
button:
|
|
16997
|
-
trash:
|
|
16998
|
-
warning:
|
|
16999
|
-
close:
|
|
17000
|
-
copy:
|
|
17001
|
-
link:
|
|
17002
|
-
columns:
|
|
17003
|
-
paragraph:
|
|
17004
|
-
image:
|
|
17005
|
-
mobile:
|
|
17006
|
-
desktop:
|
|
17007
|
-
spacer:
|
|
17008
|
-
sparkles:
|
|
17009
|
-
divider:
|
|
17010
|
-
html:
|
|
17011
|
-
"chevron-down":
|
|
17012
|
-
bookmark:
|
|
17013
|
-
heading:
|
|
17014
|
-
}, r =
|
|
16988
|
+
pencil: BT,
|
|
16989
|
+
eye: gT,
|
|
16990
|
+
info: OT,
|
|
16991
|
+
board: Bw,
|
|
16992
|
+
braces: Kw,
|
|
16993
|
+
button: Yw,
|
|
16994
|
+
trash: YT,
|
|
16995
|
+
warning: QT,
|
|
16996
|
+
close: tT,
|
|
16997
|
+
copy: sT,
|
|
16998
|
+
link: jT,
|
|
16999
|
+
columns: iT,
|
|
17000
|
+
paragraph: LT,
|
|
17001
|
+
image: TT,
|
|
17002
|
+
mobile: PT,
|
|
17003
|
+
desktop: uT,
|
|
17004
|
+
spacer: UT,
|
|
17005
|
+
sparkles: KT,
|
|
17006
|
+
divider: pT,
|
|
17007
|
+
html: ST,
|
|
17008
|
+
"chevron-down": Qw,
|
|
17009
|
+
bookmark: Uw,
|
|
17010
|
+
heading: yT
|
|
17011
|
+
}, r = E(() => n[t.name]), i = E(() => typeof t.size == "number" ? `${t.size}px` : t.size);
|
|
17015
17012
|
return (e, t) => (c(), a(d(r.value), {
|
|
17016
17013
|
class: "app-icon",
|
|
17017
|
-
style:
|
|
17014
|
+
style: le({
|
|
17018
17015
|
width: i.value,
|
|
17019
17016
|
height: i.value,
|
|
17020
17017
|
display: "block",
|
|
@@ -17023,10 +17020,10 @@ var ZT = { render: XT }, QT = /* @__PURE__ */ p({
|
|
|
17023
17020
|
"aria-hidden": "true"
|
|
17024
17021
|
}, null, 8, ["style"]));
|
|
17025
17022
|
}
|
|
17026
|
-
}),
|
|
17027
|
-
function
|
|
17023
|
+
}), eE = Symbol("errorDialog");
|
|
17024
|
+
function tE() {
|
|
17028
17025
|
let e = C(null), t = {
|
|
17029
|
-
message:
|
|
17026
|
+
message: E(() => e.value),
|
|
17030
17027
|
show: (t) => {
|
|
17031
17028
|
e.value = t;
|
|
17032
17029
|
},
|
|
@@ -17034,20 +17031,20 @@ function eE() {
|
|
|
17034
17031
|
e.value = null;
|
|
17035
17032
|
}
|
|
17036
17033
|
};
|
|
17037
|
-
return y(
|
|
17034
|
+
return y(eE, t), t;
|
|
17038
17035
|
}
|
|
17039
|
-
function
|
|
17040
|
-
return o(
|
|
17036
|
+
function nE() {
|
|
17037
|
+
return o(eE);
|
|
17041
17038
|
}
|
|
17042
17039
|
//#endregion
|
|
17043
17040
|
//#region src/i18n/useAppI18n.ts
|
|
17044
|
-
function
|
|
17041
|
+
function rE() {
|
|
17045
17042
|
return Hr({ useScope: "global" });
|
|
17046
17043
|
}
|
|
17047
17044
|
//#endregion
|
|
17048
17045
|
//#region src/providerKeys.ts
|
|
17049
|
-
var
|
|
17050
|
-
function
|
|
17046
|
+
var iE = Symbol("editorConfig"), aE = Symbol("mergeTags"), oE = Symbol("brand"), sE = Symbol("savedBlocks"), cE = Symbol("blockPlugins"), lE = Symbol("imageSearch"), uE = 8;
|
|
17047
|
+
function dE(e, t, n = uE) {
|
|
17051
17048
|
let r = t - e.bottom - n, i = e.top - n;
|
|
17052
17049
|
return r >= i ? {
|
|
17053
17050
|
side: "below",
|
|
@@ -17061,13 +17058,13 @@ function uE(e, t, n = lE) {
|
|
|
17061
17058
|
}
|
|
17062
17059
|
//#endregion
|
|
17063
17060
|
//#region src/components/CheckboxOption.vue?vue&type=script&setup=true&lang.ts
|
|
17064
|
-
var
|
|
17061
|
+
var fE = { class: "checkbox-option" }, pE = {
|
|
17065
17062
|
"aria-hidden": "true",
|
|
17066
17063
|
class: "box"
|
|
17067
|
-
},
|
|
17064
|
+
}, mE = {
|
|
17068
17065
|
key: 0,
|
|
17069
17066
|
class: "mark"
|
|
17070
|
-
},
|
|
17067
|
+
}, hE = /*#__PURE__*/ Mw(/* @__PURE__ */ p({
|
|
17071
17068
|
__name: "CheckboxOption",
|
|
17072
17069
|
props: /*@__PURE__*/ l({ label: { type: String } }, {
|
|
17073
17070
|
modelValue: {
|
|
@@ -17079,20 +17076,20 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17079
17076
|
emits: ["update:modelValue"],
|
|
17080
17077
|
setup(t) {
|
|
17081
17078
|
let n = u(t, "modelValue");
|
|
17082
|
-
return (r, a) => (c(), h("label",
|
|
17079
|
+
return (r, a) => (c(), h("label", fE, [
|
|
17083
17080
|
e(v("input", {
|
|
17084
17081
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
17085
17082
|
class: "checkbox-input",
|
|
17086
17083
|
type: "checkbox"
|
|
17087
|
-
}, null, 512), [[
|
|
17088
|
-
v("span",
|
|
17089
|
-
|
|
17084
|
+
}, null, 512), [[ae, n.value]]),
|
|
17085
|
+
v("span", pE, [n.value ? (c(), h("span", mE)) : i("", !0)]),
|
|
17086
|
+
se(" " + oe(t.label), 1)
|
|
17090
17087
|
]));
|
|
17091
17088
|
}
|
|
17092
|
-
}), [["styles", [".checkbox-option[data-v-8716b30b]{color:var(--bygga-color-text-muted);cursor:pointer;align-items:center;gap:8px;font-size:13px;line-height:20px;display:flex;position:relative}.checkbox-option[data-v-8716b30b]:hover{color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:checked){color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:focus-visible){outline:2px solid var(--bygga-color-accent);outline-offset:2px}.checkbox-input[data-v-8716b30b]{cursor:pointer;opacity:0;width:100%;height:100%;margin:0;position:absolute;inset:0}.box[data-v-8716b30b]{background:var(--bygga-color-surface);border:2px solid var(--bygga-color-control-border,var(--bygga-color-border));box-sizing:border-box;pointer-events:none;border-radius:4px;flex-shrink:0;width:16px;height:16px;position:relative}.box[data-v-8716b30b]:has(.mark){border-color:var(--bygga-color-success)}.mark[data-v-8716b30b]{background:var(--bygga-color-selected,var(--bygga-color-success));forced-color-adjust:none;border-radius:1px;width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"]], ["__scopeId", "data-v-8716b30b"]]),
|
|
17089
|
+
}), [["styles", [".checkbox-option[data-v-8716b30b]{color:var(--bygga-color-text-muted);cursor:pointer;align-items:center;gap:8px;font-size:13px;line-height:20px;display:flex;position:relative}.checkbox-option[data-v-8716b30b]:hover{color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:checked){color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:focus-visible){outline:2px solid var(--bygga-color-accent);outline-offset:2px}.checkbox-input[data-v-8716b30b]{cursor:pointer;opacity:0;width:100%;height:100%;margin:0;position:absolute;inset:0}.box[data-v-8716b30b]{background:var(--bygga-color-surface);border:2px solid var(--bygga-color-control-border,var(--bygga-color-border));box-sizing:border-box;pointer-events:none;border-radius:4px;flex-shrink:0;width:16px;height:16px;position:relative}.box[data-v-8716b30b]:has(.mark){border-color:var(--bygga-color-success)}.mark[data-v-8716b30b]{background:var(--bygga-color-selected,var(--bygga-color-success));forced-color-adjust:none;border-radius:1px;width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"]], ["__scopeId", "data-v-8716b30b"]]), gE = ["for"], _E = { class: "field-shell" }, vE = {
|
|
17093
17090
|
key: 0,
|
|
17094
17091
|
class: "field-trailing"
|
|
17095
|
-
},
|
|
17092
|
+
}, yE = /*#__PURE__*/ Mw(/* @__PURE__ */ p({
|
|
17096
17093
|
__name: "FieldShell",
|
|
17097
17094
|
props: {
|
|
17098
17095
|
disabled: {
|
|
@@ -17109,13 +17106,13 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17109
17106
|
}
|
|
17110
17107
|
},
|
|
17111
17108
|
setup(e) {
|
|
17112
|
-
return (t, n) => (c(), h("div", { class:
|
|
17109
|
+
return (t, n) => (c(), h("div", { class: re(["field-wrap", { "is-disabled": e.disabled }]) }, [e.label ? (c(), h("label", {
|
|
17113
17110
|
key: 0,
|
|
17114
17111
|
class: "field-label",
|
|
17115
17112
|
for: e.labelFor
|
|
17116
|
-
},
|
|
17113
|
+
}, oe(e.label), 9, gE)) : i("", !0), v("div", _E, [s(t.$slots, "default", {}, void 0, !0), t.$slots.trailing ? (c(), h("div", vE, [s(t.$slots, "trailing", {}, void 0, !0)])) : i("", !0)])], 2));
|
|
17117
17114
|
}
|
|
17118
|
-
}), [["styles", [".field-wrap[data-v-01af217c]{width:100%;position:relative}.field-shell[data-v-01af217c]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-control-border,var(--bygga-color-border));border-radius:var(--bygga-radius-sm);box-sizing:border-box;color:var(--bygga-color-text);align-items:center;gap:8px;width:100%;min-width:0;min-height:40px;padding:0 12px;font-size:16px;line-height:20px;display:flex}.field-label[data-v-01af217c]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;transition:color .15s;position:absolute;top:0;left:12px;transform:translateY(-50%)}.field-wrap:has(:is(input,textarea,select):focus-visible) .field-label[data-v-01af217c]{color:var(--bygga-color-accent)}.field-wrap.is-disabled .field-label[data-v-01af217c]{opacity:.55}.field-shell[data-v-01af217c]:has(:is(input,textarea,select):focus-visible){outline:2px solid var(--bygga-color-ring,var(--bygga-color-accent));outline-offset:2px}.field-shell[data-v-01af217c]:has(:is(input,textarea)[aria-invalid=true]){border-color:var(--bygga-color-danger,var(--bygga-color-control-border,var(--bygga-color-border)))}.field-wrap.is-disabled .field-shell[data-v-01af217c]{cursor:not-allowed;opacity:.55}.field-trailing[data-v-01af217c]{color:var(--bygga-color-text-muted);flex-shrink:0;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.field-label[data-v-01af217c]{transition:none}}"]], ["__scopeId", "data-v-01af217c"]]),
|
|
17115
|
+
}), [["styles", [".field-wrap[data-v-01af217c]{width:100%;position:relative}.field-shell[data-v-01af217c]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-control-border,var(--bygga-color-border));border-radius:var(--bygga-radius-sm);box-sizing:border-box;color:var(--bygga-color-text);align-items:center;gap:8px;width:100%;min-width:0;min-height:40px;padding:0 12px;font-size:16px;line-height:20px;display:flex}.field-label[data-v-01af217c]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;transition:color .15s;position:absolute;top:0;left:12px;transform:translateY(-50%)}.field-wrap:has(:is(input,textarea,select):focus-visible) .field-label[data-v-01af217c]{color:var(--bygga-color-accent)}.field-wrap.is-disabled .field-label[data-v-01af217c]{opacity:.55}.field-shell[data-v-01af217c]:has(:is(input,textarea,select):focus-visible){outline:2px solid var(--bygga-color-ring,var(--bygga-color-accent));outline-offset:2px}.field-shell[data-v-01af217c]:has(:is(input,textarea)[aria-invalid=true]){border-color:var(--bygga-color-danger,var(--bygga-color-control-border,var(--bygga-color-border)))}.field-wrap.is-disabled .field-shell[data-v-01af217c]{cursor:not-allowed;opacity:.55}.field-trailing[data-v-01af217c]{color:var(--bygga-color-text-muted);flex-shrink:0;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.field-label[data-v-01af217c]{transition:none}}"]], ["__scopeId", "data-v-01af217c"]]), bE = ["id", "disabled"], xE = /*#__PURE__*/ Mw(/* @__PURE__ */ p({
|
|
17119
17116
|
inheritAttrs: !1,
|
|
17120
17117
|
__name: "TextInput",
|
|
17121
17118
|
props: /*@__PURE__*/ l({
|
|
@@ -17133,11 +17130,11 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17133
17130
|
}),
|
|
17134
17131
|
emits: ["update:modelValue"],
|
|
17135
17132
|
setup(t, { expose: n }) {
|
|
17136
|
-
let r = u(t, "modelValue"), i = t, o =
|
|
17133
|
+
let r = u(t, "modelValue"), i = t, o = de(), s = te("input");
|
|
17137
17134
|
return n({
|
|
17138
17135
|
focus: () => s.value?.focus(),
|
|
17139
17136
|
select: () => s.value?.select()
|
|
17140
|
-
}), (n, l) => (c(), a(
|
|
17137
|
+
}), (n, l) => (c(), a(yE, {
|
|
17141
17138
|
disabled: t.disabled,
|
|
17142
17139
|
label: i.label,
|
|
17143
17140
|
"label-for": w(o)
|
|
@@ -17150,7 +17147,7 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17150
17147
|
class: "field-input",
|
|
17151
17148
|
type: "text",
|
|
17152
17149
|
disabled: t.disabled
|
|
17153
|
-
}, n.$attrs), null, 16,
|
|
17150
|
+
}, n.$attrs), null, 16, bE), [[S, r.value]])]),
|
|
17154
17151
|
_: 1
|
|
17155
17152
|
}, 8, [
|
|
17156
17153
|
"disabled",
|
|
@@ -17158,30 +17155,30 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17158
17155
|
"label-for"
|
|
17159
17156
|
]));
|
|
17160
17157
|
}
|
|
17161
|
-
}), [["styles", [".field-input[data-v-3c7d74c6]{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:1 1 0;min-width:0;padding:0}.field-input[data-v-3c7d74c6]::placeholder{color:var(--bygga-color-text-muted);opacity:1}"]], ["__scopeId", "data-v-3c7d74c6"]]),
|
|
17158
|
+
}), [["styles", [".field-input[data-v-3c7d74c6]{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:1 1 0;min-width:0;padding:0}.field-input[data-v-3c7d74c6]::placeholder{color:var(--bygga-color-text-muted);opacity:1}"]], ["__scopeId", "data-v-3c7d74c6"]]), SE = {
|
|
17162
17159
|
key: 0,
|
|
17163
17160
|
class: "picker-label"
|
|
17164
|
-
},
|
|
17161
|
+
}, CE = [
|
|
17165
17162
|
"popovertarget",
|
|
17166
17163
|
"aria-expanded",
|
|
17167
17164
|
"aria-label"
|
|
17168
|
-
],
|
|
17165
|
+
], wE = {
|
|
17169
17166
|
key: 0,
|
|
17170
17167
|
class: "value"
|
|
17171
|
-
},
|
|
17168
|
+
}, TE = ["id", "aria-label"], EE = ["aria-label"], DE = [
|
|
17172
17169
|
"aria-checked",
|
|
17173
17170
|
"aria-label",
|
|
17174
17171
|
"tabindex",
|
|
17175
17172
|
"onClick",
|
|
17176
17173
|
"onKeydown"
|
|
17177
|
-
],
|
|
17174
|
+
], OE = [
|
|
17178
17175
|
"aria-label",
|
|
17179
17176
|
"aria-valuenow",
|
|
17180
17177
|
"aria-valuetext"
|
|
17181
|
-
],
|
|
17178
|
+
], kE = ["aria-label", "aria-valuenow"], AE = {
|
|
17182
17179
|
key: 2,
|
|
17183
17180
|
class: "row"
|
|
17184
|
-
},
|
|
17181
|
+
}, jE = /*#__PURE__*/ Mw(/* @__PURE__ */ p({
|
|
17185
17182
|
__name: "ColorPicker",
|
|
17186
17183
|
props: /*@__PURE__*/ l({
|
|
17187
17184
|
label: { type: String },
|
|
@@ -17199,11 +17196,11 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17199
17196
|
}),
|
|
17200
17197
|
emits: ["update:modelValue"],
|
|
17201
17198
|
setup(e) {
|
|
17202
|
-
let t = u(e, "modelValue"), { t: n } =
|
|
17199
|
+
let t = u(e, "modelValue"), { t: n } = rE(), r = o(oE, void 0), s = E(() => r?.value.colors ?? []), l = E(() => s.value.length > 0), d = de(), f = C(!1), p = C(0), m = C(0), g = C(0), _ = C({
|
|
17203
17200
|
r: 0,
|
|
17204
17201
|
g: 0,
|
|
17205
17202
|
b: 0
|
|
17206
|
-
}), y = C(_i(_.value)), b = C(!1), S = te("trigger"), ne = te("popover"),
|
|
17203
|
+
}), y = C(_i(_.value)), b = C(!1), S = te("trigger"), ne = te("popover"), T = te("svArea");
|
|
17207
17204
|
ee(t, (e) => {
|
|
17208
17205
|
if (e.type === "transparent") {
|
|
17209
17206
|
b.value || (y.value = _i(_.value));
|
|
@@ -17224,7 +17221,7 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17224
17221
|
let r = mi(t);
|
|
17225
17222
|
m.value = r.s, g.value = r.v, r.s > 0 && (p.value = r.h);
|
|
17226
17223
|
}, { immediate: !0 });
|
|
17227
|
-
function
|
|
17224
|
+
function ie() {
|
|
17228
17225
|
t.value = {
|
|
17229
17226
|
type: "color",
|
|
17230
17227
|
...hi({
|
|
@@ -17234,44 +17231,44 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17234
17231
|
})
|
|
17235
17232
|
};
|
|
17236
17233
|
}
|
|
17237
|
-
let
|
|
17234
|
+
let ae = E(() => t.value.type === "transparent"), se = E(() => bi(t.value)), ce = E(() => ae.value ? n("colorPicker.transparent") : xi(t.value) ?? ""), ue = E(() => ae.value ? n("colorPicker.transparentValue") : n("colorPicker.colorValue", { value: xi(t.value) ?? "" })), fe = E(() => e.label ? `${e.label}: ${ue.value}` : ue.value), pe = E(() => `hsl(${p.value}, 100%, 50%)`), me = E(() => _i(hi({
|
|
17238
17235
|
h: p.value,
|
|
17239
17236
|
s: m.value,
|
|
17240
17237
|
v: g.value
|
|
17241
|
-
}))),
|
|
17238
|
+
}))), _e = E(() => n("colorPicker.svValue", {
|
|
17242
17239
|
s: Math.round(m.value * 100),
|
|
17243
17240
|
v: Math.round(g.value * 100),
|
|
17244
|
-
hex:
|
|
17245
|
-
})),
|
|
17246
|
-
function
|
|
17247
|
-
|
|
17241
|
+
hex: me.value
|
|
17242
|
+
})), ve = null, ye = null;
|
|
17243
|
+
function be() {
|
|
17244
|
+
ve && window.removeEventListener("pointermove", ve), ye && (window.removeEventListener("pointerup", ye), window.removeEventListener("pointercancel", ye)), ve = null, ye = null;
|
|
17248
17245
|
}
|
|
17249
|
-
function
|
|
17250
|
-
|
|
17246
|
+
function xe(e) {
|
|
17247
|
+
be();
|
|
17251
17248
|
let t = (t) => e(t);
|
|
17252
|
-
|
|
17249
|
+
ve = t, ye = be, window.addEventListener("pointermove", t), window.addEventListener("pointerup", be), window.addEventListener("pointercancel", be);
|
|
17253
17250
|
}
|
|
17254
|
-
function
|
|
17251
|
+
function D(e) {
|
|
17255
17252
|
e.preventDefault();
|
|
17256
|
-
let t =
|
|
17253
|
+
let t = T.value;
|
|
17257
17254
|
if (!t) return;
|
|
17258
17255
|
let n = (e) => {
|
|
17259
17256
|
let n = t.getBoundingClientRect();
|
|
17260
|
-
m.value = fi((e.clientX - n.left) / n.width), g.value = 1 - fi((e.clientY - n.top) / n.height),
|
|
17257
|
+
m.value = fi((e.clientX - n.left) / n.width), g.value = 1 - fi((e.clientY - n.top) / n.height), ie();
|
|
17261
17258
|
};
|
|
17262
|
-
n(e),
|
|
17259
|
+
n(e), xe(n);
|
|
17263
17260
|
}
|
|
17264
|
-
function
|
|
17261
|
+
function Se(e) {
|
|
17265
17262
|
e.preventDefault();
|
|
17266
17263
|
let t = e.currentTarget;
|
|
17267
17264
|
if (!(t instanceof HTMLElement)) return;
|
|
17268
17265
|
let n = (e) => {
|
|
17269
17266
|
let n = t.getBoundingClientRect();
|
|
17270
|
-
p.value = fi((e.clientX - n.left) / n.width) * 360,
|
|
17267
|
+
p.value = fi((e.clientX - n.left) / n.width) * 360, ie();
|
|
17271
17268
|
};
|
|
17272
|
-
n(e),
|
|
17269
|
+
n(e), xe(n);
|
|
17273
17270
|
}
|
|
17274
|
-
function
|
|
17271
|
+
function Ce(e) {
|
|
17275
17272
|
let t = e.shiftKey ? .1 : .02, n = m.value, r = g.value;
|
|
17276
17273
|
switch (e.key) {
|
|
17277
17274
|
case "ArrowLeft":
|
|
@@ -17300,9 +17297,9 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17300
17297
|
break;
|
|
17301
17298
|
default: return;
|
|
17302
17299
|
}
|
|
17303
|
-
e.preventDefault(), m.value = fi(n), g.value = fi(r),
|
|
17300
|
+
e.preventDefault(), m.value = fi(n), g.value = fi(r), ie();
|
|
17304
17301
|
}
|
|
17305
|
-
function
|
|
17302
|
+
function we(e) {
|
|
17306
17303
|
let t = e.shiftKey ? 10 : 1, n = p.value;
|
|
17307
17304
|
switch (e.key) {
|
|
17308
17305
|
case "ArrowLeft":
|
|
@@ -17327,34 +17324,34 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17327
17324
|
break;
|
|
17328
17325
|
default: return;
|
|
17329
17326
|
}
|
|
17330
|
-
e.preventDefault(), p.value = Math.max(0, Math.min(360, n)),
|
|
17327
|
+
e.preventDefault(), p.value = Math.max(0, Math.min(360, n)), ie();
|
|
17331
17328
|
}
|
|
17332
|
-
function
|
|
17329
|
+
function Te() {
|
|
17333
17330
|
let e = vi(y.value);
|
|
17334
17331
|
e && (t.value = {
|
|
17335
17332
|
type: "color",
|
|
17336
17333
|
...e
|
|
17337
17334
|
});
|
|
17338
17335
|
}
|
|
17339
|
-
function
|
|
17336
|
+
function Ee() {
|
|
17340
17337
|
b.value = !1, y.value = _i(_.value);
|
|
17341
17338
|
}
|
|
17342
|
-
let
|
|
17343
|
-
let e =
|
|
17339
|
+
let O = E(() => t.value.type === "transparent" ? void 0 : _i(t.value)), De = E(() => {
|
|
17340
|
+
let e = O.value;
|
|
17344
17341
|
return e && !s.value.includes(e) ? e : void 0;
|
|
17345
|
-
}),
|
|
17346
|
-
let e =
|
|
17342
|
+
}), Oe = E(() => {
|
|
17343
|
+
let e = De.value;
|
|
17347
17344
|
return e ? [...s.value, e] : s.value;
|
|
17348
17345
|
});
|
|
17349
|
-
function
|
|
17346
|
+
function ke(e) {
|
|
17350
17347
|
let n = vi(e);
|
|
17351
17348
|
n && (t.value = {
|
|
17352
17349
|
type: "color",
|
|
17353
17350
|
...n
|
|
17354
17351
|
});
|
|
17355
17352
|
}
|
|
17356
|
-
function
|
|
17357
|
-
let n =
|
|
17353
|
+
function Ae(e, t) {
|
|
17354
|
+
let n = Oe.value, r = t;
|
|
17358
17355
|
switch (e.key) {
|
|
17359
17356
|
case "ArrowLeft":
|
|
17360
17357
|
case "ArrowUp":
|
|
@@ -17374,53 +17371,53 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17374
17371
|
}
|
|
17375
17372
|
e.preventDefault();
|
|
17376
17373
|
let i = n[(r + n.length) % n.length];
|
|
17377
|
-
i && (
|
|
17374
|
+
i && (ke(i), je.value[n.indexOf(i)]?.focus());
|
|
17378
17375
|
}
|
|
17379
|
-
let
|
|
17380
|
-
function
|
|
17381
|
-
e instanceof HTMLElement && (
|
|
17376
|
+
let je = C([]);
|
|
17377
|
+
function Me(e, t) {
|
|
17378
|
+
e instanceof HTMLElement && (je.value[t] = e);
|
|
17382
17379
|
}
|
|
17383
|
-
function
|
|
17380
|
+
function Ne(e) {
|
|
17384
17381
|
t.value = e ? { type: "transparent" } : {
|
|
17385
17382
|
type: "color",
|
|
17386
17383
|
..._.value
|
|
17387
17384
|
};
|
|
17388
17385
|
}
|
|
17389
|
-
function
|
|
17386
|
+
function Pe(e) {
|
|
17390
17387
|
if (e.newState !== "open") return;
|
|
17391
17388
|
let t = S.value, n = ne.value;
|
|
17392
17389
|
if (!(t && n)) return;
|
|
17393
|
-
let r = t.getBoundingClientRect(), i =
|
|
17390
|
+
let r = t.getBoundingClientRect(), i = dE(r, window.innerHeight);
|
|
17394
17391
|
n.style.left = `${r.left}px`, n.style.top = i.side === "below" ? `${i.offset}px` : "auto", n.style.bottom = i.side === "above" ? `${i.offset}px` : "auto", n.style.maxHeight = `${i.maxHeight}px`;
|
|
17395
17392
|
}
|
|
17396
|
-
function
|
|
17393
|
+
function Fe(e) {
|
|
17397
17394
|
if (f.value = e.newState === "open", e.newState !== "open") return;
|
|
17398
17395
|
if (!l.value) {
|
|
17399
|
-
|
|
17396
|
+
T.value?.focus();
|
|
17400
17397
|
return;
|
|
17401
17398
|
}
|
|
17402
|
-
let t =
|
|
17403
|
-
|
|
17399
|
+
let t = O.value ? Oe.value.indexOf(O.value) : -1;
|
|
17400
|
+
je.value[t === -1 ? 0 : t]?.focus();
|
|
17404
17401
|
}
|
|
17405
|
-
function
|
|
17402
|
+
function k(e) {
|
|
17406
17403
|
let t = e.relatedTarget;
|
|
17407
17404
|
t instanceof Node && ne.value?.contains(t) || ne.value?.matches(":popover-open") && ne.value.hidePopover();
|
|
17408
17405
|
}
|
|
17409
|
-
return
|
|
17410
|
-
e.label && !e.compact ? (c(), h("span",
|
|
17406
|
+
return ge(be), (t, r) => (c(), h("div", { class: re(["color-picker", { "has-label": e.label && !e.compact }]) }, [
|
|
17407
|
+
e.label && !e.compact ? (c(), h("span", SE, oe(e.label), 1)) : i("", !0),
|
|
17411
17408
|
v("button", {
|
|
17412
17409
|
ref_key: "trigger",
|
|
17413
17410
|
ref: S,
|
|
17414
17411
|
type: "button",
|
|
17415
|
-
class:
|
|
17412
|
+
class: re(["trigger", { compact: e.compact }]),
|
|
17416
17413
|
popovertarget: w(d),
|
|
17417
17414
|
"aria-haspopup": "dialog",
|
|
17418
17415
|
"aria-expanded": f.value,
|
|
17419
|
-
"aria-label":
|
|
17416
|
+
"aria-label": fe.value
|
|
17420
17417
|
}, [v("span", {
|
|
17421
|
-
class:
|
|
17422
|
-
style:
|
|
17423
|
-
}, null, 6), e.compact ? i("", !0) : (c(), h("span",
|
|
17418
|
+
class: re(["swatch", { checker: ae.value }]),
|
|
17419
|
+
style: le(ae.value ? {} : { backgroundColor: se.value })
|
|
17420
|
+
}, null, 6), e.compact ? i("", !0) : (c(), h("span", wE, oe(ce.value), 1))], 10, CE),
|
|
17424
17421
|
v("div", {
|
|
17425
17422
|
id: w(d),
|
|
17426
17423
|
ref_key: "popover",
|
|
@@ -17430,30 +17427,30 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17430
17427
|
role: "dialog",
|
|
17431
17428
|
tabindex: "-1",
|
|
17432
17429
|
"aria-label": e.label ?? w(n)("colorPicker.open"),
|
|
17433
|
-
onBeforetoggle:
|
|
17434
|
-
onToggle:
|
|
17435
|
-
onFocusout:
|
|
17430
|
+
onBeforetoggle: Pe,
|
|
17431
|
+
onToggle: Fe,
|
|
17432
|
+
onFocusout: k
|
|
17436
17433
|
}, [l.value ? (c(), h("div", {
|
|
17437
17434
|
key: 0,
|
|
17438
17435
|
class: "palette",
|
|
17439
17436
|
role: "radiogroup",
|
|
17440
17437
|
"aria-label": w(n)("colorPicker.palette")
|
|
17441
|
-
}, [(c(!0), h(
|
|
17438
|
+
}, [(c(!0), h(he, null, x(Oe.value, (e, t) => (c(), h("button", {
|
|
17442
17439
|
key: e,
|
|
17443
17440
|
ref_for: !0,
|
|
17444
|
-
ref: (e) =>
|
|
17441
|
+
ref: (e) => Me(e, t),
|
|
17445
17442
|
type: "button",
|
|
17446
17443
|
role: "radio",
|
|
17447
|
-
class:
|
|
17448
|
-
"aria-checked": e ===
|
|
17449
|
-
"aria-label": e ===
|
|
17450
|
-
tabindex: e ===
|
|
17451
|
-
style:
|
|
17452
|
-
onClick: (t) =>
|
|
17453
|
-
onKeydown: (e) =>
|
|
17454
|
-
}, null, 46,
|
|
17444
|
+
class: re(["palette-swatch", { "off-brand": e === De.value }]),
|
|
17445
|
+
"aria-checked": e === O.value,
|
|
17446
|
+
"aria-label": e === De.value ? w(n)("colorPicker.offBrandValue", { value: e }) : w(n)("colorPicker.colorValue", { value: e }),
|
|
17447
|
+
tabindex: e === O.value || !O.value && t === 0 ? 0 : -1,
|
|
17448
|
+
style: le({ backgroundColor: e }),
|
|
17449
|
+
onClick: (t) => ke(e),
|
|
17450
|
+
onKeydown: (e) => Ae(e, t)
|
|
17451
|
+
}, null, 46, DE))), 128))], 8, EE)) : (c(), h(he, { key: 1 }, [v("div", {
|
|
17455
17452
|
ref_key: "svArea",
|
|
17456
|
-
ref:
|
|
17453
|
+
ref: T,
|
|
17457
17454
|
class: "sv-area",
|
|
17458
17455
|
role: "slider",
|
|
17459
17456
|
tabindex: "0",
|
|
@@ -17461,18 +17458,18 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17461
17458
|
"aria-valuemin": "0",
|
|
17462
17459
|
"aria-valuemax": "100",
|
|
17463
17460
|
"aria-valuenow": Math.round(g.value * 100),
|
|
17464
|
-
"aria-valuetext":
|
|
17465
|
-
style:
|
|
17466
|
-
onPointerdown:
|
|
17467
|
-
onKeydown:
|
|
17461
|
+
"aria-valuetext": _e.value,
|
|
17462
|
+
style: le({ backgroundColor: pe.value }),
|
|
17463
|
+
onPointerdown: D,
|
|
17464
|
+
onKeydown: Ce
|
|
17468
17465
|
}, [v("div", {
|
|
17469
17466
|
class: "sv-thumb",
|
|
17470
|
-
style:
|
|
17467
|
+
style: le({
|
|
17471
17468
|
left: `${m.value * 100}%`,
|
|
17472
17469
|
top: `${(1 - g.value) * 100}%`,
|
|
17473
|
-
backgroundColor:
|
|
17470
|
+
backgroundColor: me.value
|
|
17474
17471
|
})
|
|
17475
|
-
}, null, 4)], 44,
|
|
17472
|
+
}, null, 4)], 44, OE), v("div", {
|
|
17476
17473
|
class: "hue-track",
|
|
17477
17474
|
role: "slider",
|
|
17478
17475
|
tabindex: "0",
|
|
@@ -17480,12 +17477,12 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17480
17477
|
"aria-valuemin": "0",
|
|
17481
17478
|
"aria-valuemax": "360",
|
|
17482
17479
|
"aria-valuenow": Math.round(p.value),
|
|
17483
|
-
onPointerdown:
|
|
17484
|
-
onKeydown:
|
|
17480
|
+
onPointerdown: Se,
|
|
17481
|
+
onKeydown: we
|
|
17485
17482
|
}, [v("div", {
|
|
17486
17483
|
class: "hue-thumb",
|
|
17487
|
-
style:
|
|
17488
|
-
}, null, 4)], 40,
|
|
17484
|
+
style: le({ left: `${p.value / 360 * 100}%` })
|
|
17485
|
+
}, null, 4)], 40, kE)], 64)), !l.value || e.allowTransparent ? (c(), h("div", AE, [l.value ? i("", !0) : (c(), a(xE, {
|
|
17489
17486
|
key: 0,
|
|
17490
17487
|
modelValue: y.value,
|
|
17491
17488
|
"onUpdate:modelValue": r[0] ||= (e) => y.value = e,
|
|
@@ -17494,22 +17491,22 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17494
17491
|
"aria-label": w(n)("colorPicker.hex"),
|
|
17495
17492
|
"aria-invalid": !w(vi)(y.value),
|
|
17496
17493
|
onFocus: r[1] ||= (e) => b.value = !0,
|
|
17497
|
-
onInput:
|
|
17498
|
-
onBlur:
|
|
17494
|
+
onInput: Te,
|
|
17495
|
+
onBlur: Ee
|
|
17499
17496
|
}, null, 8, [
|
|
17500
17497
|
"modelValue",
|
|
17501
17498
|
"aria-label",
|
|
17502
17499
|
"aria-invalid"
|
|
17503
|
-
])), e.allowTransparent ? (c(), a(
|
|
17500
|
+
])), e.allowTransparent ? (c(), a(hE, {
|
|
17504
17501
|
key: 1,
|
|
17505
17502
|
class: "transparent-toggle",
|
|
17506
17503
|
label: w(n)("colorPicker.transparent"),
|
|
17507
|
-
"model-value":
|
|
17508
|
-
"onUpdate:modelValue":
|
|
17509
|
-
}, null, 8, ["label", "model-value"])) : i("", !0)])) : i("", !0)], 40,
|
|
17504
|
+
"model-value": ae.value,
|
|
17505
|
+
"onUpdate:modelValue": Ne
|
|
17506
|
+
}, null, 8, ["label", "model-value"])) : i("", !0)])) : i("", !0)], 40, TE)
|
|
17510
17507
|
], 2));
|
|
17511
17508
|
}
|
|
17512
|
-
}), [["styles", [".color-picker[data-v-9899bc3a]{flex-direction:column;gap:.5em;display:flex}.picker-label[data-v-9899bc3a]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;position:absolute;top:0;left:12px;transform:translateY(-50%)}.color-picker.has-label[data-v-9899bc3a]{position:relative}.color-picker.has-label:has(.trigger:focus-visible) .picker-label[data-v-9899bc3a]{color:var(--bygga-color-accent)}.trigger[data-v-9899bc3a]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);box-sizing:border-box;cursor:pointer;align-items:center;gap:8px;min-height:40px;padding:0 12px;display:inline-flex}.trigger[data-v-9899bc3a]:hover,.trigger[data-v-9899bc3a]:focus-visible{border-color:var(--bygga-color-accent)}.trigger.compact[data-v-9899bc3a]{border-color:#0000;border-radius:4px;justify-content:center;width:30px;height:30px;min-height:0;padding:0}.trigger.compact .swatch[data-v-9899bc3a]{border-color:var(--bygga-color-border-subtle)}.trigger.compact[data-v-9899bc3a]:hover,.trigger.compact[data-v-9899bc3a]:focus-visible{background:color-mix(in srgb, var(--bygga-color-text) 10%, transparent);border-color:#0000}.swatch[data-v-9899bc3a]{border:1px solid var(--bygga-color-border);border-radius:4px;flex-shrink:0;width:20px;height:20px}.value[data-v-9899bc3a]{color:var(--bygga-color-text-muted);font-variant-numeric:tabular-nums}.checker[data-v-9899bc3a]{background-color:#fff;background-image:linear-gradient(45deg,#ccc 25%,#0000 25%),linear-gradient(-45deg,#ccc 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ccc 75%),linear-gradient(-45deg,#0000 75%,#ccc 75%);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.popover[data-v-9899bc3a]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-md);box-shadow:var(--bygga-shadow-card);box-sizing:border-box;flex-direction:column;gap:12px;width:224px;max-height:calc(100vh - 16px);margin:0;padding:12px;position:fixed;inset:auto;overflow-y:auto}.popover[data-v-9899bc3a]:popover-open{display:flex}.sv-area[data-v-9899bc3a]{border-radius:var(--bygga-radius-sm);cursor:crosshair;touch-action:none;background-image:linear-gradient(#0000,#000),linear-gradient(90deg,#fff,#fff0);width:100%;height:160px;position:relative}.sv-area[data-v-9899bc3a]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.sv-thumb[data-v-9899bc3a]{box-sizing:border-box;pointer-events:none;border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin:-7px 0 0 -7px;position:absolute;box-shadow:0 0 0 1px #0000004d}.hue-track[data-v-9899bc3a]{cursor:pointer;touch-action:none;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:999px;width:100%;height:12px;position:relative}.hue-track[data-v-9899bc3a]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.hue-thumb[data-v-9899bc3a]{border:1px solid var(--bygga-color-border);box-shadow:var(--bygga-shadow-raised);box-sizing:border-box;pointer-events:none;background:#fff;border-radius:50%;width:16px;height:16px;margin-left:-8px;position:absolute;top:50%;transform:translateY(-50%)}.row[data-v-9899bc3a]{align-items:center;gap:8px;display:flex}.palette[data-v-9899bc3a]{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:8px;display:grid}.palette-swatch[data-v-9899bc3a]{aspect-ratio:1;border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);cursor:pointer;width:100%;padding:0}.palette-swatch[data-v-9899bc3a]:hover,.palette-swatch[data-v-9899bc3a]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.palette-swatch[aria-checked=true][data-v-9899bc3a]{box-shadow:inset 0 0 0 2px var(--bygga-color-surface), inset 0 0 0 4px var(--bygga-color-accent,currentcolor)}.palette-swatch.off-brand[data-v-9899bc3a]{border-style:dashed;border-width:2px}.transparent-toggle[data-v-9899bc3a]{white-space:nowrap;flex-shrink:0;display:inline-flex}.swatch[data-v-9899bc3a],.checker[data-v-9899bc3a],.sv-area[data-v-9899bc3a],.sv-thumb[data-v-9899bc3a],.hue-track[data-v-9899bc3a],.hue-thumb[data-v-9899bc3a],.palette-swatch[data-v-9899bc3a]{forced-color-adjust:none}"]], ["__scopeId", "data-v-9899bc3a"]]),
|
|
17509
|
+
}), [["styles", [".color-picker[data-v-9899bc3a]{flex-direction:column;gap:.5em;display:flex}.picker-label[data-v-9899bc3a]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;position:absolute;top:0;left:12px;transform:translateY(-50%)}.color-picker.has-label[data-v-9899bc3a]{position:relative}.color-picker.has-label:has(.trigger:focus-visible) .picker-label[data-v-9899bc3a]{color:var(--bygga-color-accent)}.trigger[data-v-9899bc3a]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);box-sizing:border-box;cursor:pointer;align-items:center;gap:8px;min-height:40px;padding:0 12px;display:inline-flex}.trigger[data-v-9899bc3a]:hover,.trigger[data-v-9899bc3a]:focus-visible{border-color:var(--bygga-color-accent)}.trigger.compact[data-v-9899bc3a]{border-color:#0000;border-radius:4px;justify-content:center;width:30px;height:30px;min-height:0;padding:0}.trigger.compact .swatch[data-v-9899bc3a]{border-color:var(--bygga-color-border-subtle)}.trigger.compact[data-v-9899bc3a]:hover,.trigger.compact[data-v-9899bc3a]:focus-visible{background:color-mix(in srgb, var(--bygga-color-text) 10%, transparent);border-color:#0000}.swatch[data-v-9899bc3a]{border:1px solid var(--bygga-color-border);border-radius:4px;flex-shrink:0;width:20px;height:20px}.value[data-v-9899bc3a]{color:var(--bygga-color-text-muted);font-variant-numeric:tabular-nums}.checker[data-v-9899bc3a]{background-color:#fff;background-image:linear-gradient(45deg,#ccc 25%,#0000 25%),linear-gradient(-45deg,#ccc 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ccc 75%),linear-gradient(-45deg,#0000 75%,#ccc 75%);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.popover[data-v-9899bc3a]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-md);box-shadow:var(--bygga-shadow-card);box-sizing:border-box;flex-direction:column;gap:12px;width:224px;max-height:calc(100vh - 16px);margin:0;padding:12px;position:fixed;inset:auto;overflow-y:auto}.popover[data-v-9899bc3a]:popover-open{display:flex}.sv-area[data-v-9899bc3a]{border-radius:var(--bygga-radius-sm);cursor:crosshair;touch-action:none;background-image:linear-gradient(#0000,#000),linear-gradient(90deg,#fff,#fff0);width:100%;height:160px;position:relative}.sv-area[data-v-9899bc3a]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.sv-thumb[data-v-9899bc3a]{box-sizing:border-box;pointer-events:none;border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin:-7px 0 0 -7px;position:absolute;box-shadow:0 0 0 1px #0000004d}.hue-track[data-v-9899bc3a]{cursor:pointer;touch-action:none;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:999px;width:100%;height:12px;position:relative}.hue-track[data-v-9899bc3a]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.hue-thumb[data-v-9899bc3a]{border:1px solid var(--bygga-color-border);box-shadow:var(--bygga-shadow-raised);box-sizing:border-box;pointer-events:none;background:#fff;border-radius:50%;width:16px;height:16px;margin-left:-8px;position:absolute;top:50%;transform:translateY(-50%)}.row[data-v-9899bc3a]{align-items:center;gap:8px;display:flex}.palette[data-v-9899bc3a]{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:8px;display:grid}.palette-swatch[data-v-9899bc3a]{aspect-ratio:1;border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);cursor:pointer;width:100%;padding:0}.palette-swatch[data-v-9899bc3a]:hover,.palette-swatch[data-v-9899bc3a]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.palette-swatch[aria-checked=true][data-v-9899bc3a]{box-shadow:inset 0 0 0 2px var(--bygga-color-surface), inset 0 0 0 4px var(--bygga-color-accent,currentcolor)}.palette-swatch.off-brand[data-v-9899bc3a]{border-style:dashed;border-width:2px}.transparent-toggle[data-v-9899bc3a]{white-space:nowrap;flex-shrink:0;display:inline-flex}.swatch[data-v-9899bc3a],.checker[data-v-9899bc3a],.sv-area[data-v-9899bc3a],.sv-thumb[data-v-9899bc3a],.hue-track[data-v-9899bc3a],.hue-thumb[data-v-9899bc3a],.palette-swatch[data-v-9899bc3a]{forced-color-adjust:none}"]], ["__scopeId", "data-v-9899bc3a"]]), ME = { class: "select-wrap" }, NE = ["id", "disabled"], PE = /*#__PURE__*/ Mw(/* @__PURE__ */ p({
|
|
17513
17510
|
inheritAttrs: !1,
|
|
17514
17511
|
__name: "SelectInput",
|
|
17515
17512
|
props: /*@__PURE__*/ l({
|
|
@@ -17531,22 +17528,22 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17531
17528
|
}),
|
|
17532
17529
|
emits: ["update:modelValue"],
|
|
17533
17530
|
setup(n) {
|
|
17534
|
-
let r = u(n, "modelValue"), i = n, a =
|
|
17531
|
+
let r = u(n, "modelValue"), i = n, a = de(), o = E(() => r.value === "" && !i.emptyIsValue), l = te("select");
|
|
17535
17532
|
return ee(r, async (e) => {
|
|
17536
17533
|
await _(), l.value && l.value.value !== e && (l.value.value = e);
|
|
17537
|
-
}), (u, d) => (c(), h("div", { class:
|
|
17534
|
+
}), (u, d) => (c(), h("div", { class: re(["select-input", { "is-empty": o.value }]) }, [t(yE, {
|
|
17538
17535
|
disabled: n.disabled,
|
|
17539
17536
|
label: i.label,
|
|
17540
17537
|
"label-for": w(a)
|
|
17541
17538
|
}, {
|
|
17542
|
-
default: g(() => [v("span",
|
|
17539
|
+
default: g(() => [v("span", ME, [e(v("select", f({
|
|
17543
17540
|
id: w(a),
|
|
17544
17541
|
ref_key: "select",
|
|
17545
17542
|
ref: l,
|
|
17546
17543
|
"onUpdate:modelValue": d[0] ||= (e) => r.value = e,
|
|
17547
17544
|
class: "field-select",
|
|
17548
17545
|
disabled: n.disabled
|
|
17549
|
-
}, u.$attrs), [s(u.$slots, "default", {}, void 0, !0)], 16,
|
|
17546
|
+
}, u.$attrs), [s(u.$slots, "default", {}, void 0, !0)], 16, NE), [[ie, r.value]]), t($T, {
|
|
17550
17547
|
class: "chevron",
|
|
17551
17548
|
name: "chevron-down",
|
|
17552
17549
|
size: 12
|
|
@@ -17561,18 +17558,18 @@ var dE = { class: "checkbox-option" }, fE = {
|
|
|
17561
17558
|
}), [["styles", [".select-input[data-v-bc9ef2fc]{width:100%;position:relative}.select-wrap[data-v-bc9ef2fc]{flex:1 1 0;min-width:0;display:flex;position:relative}.field-select[data-v-bc9ef2fc]{appearance:none;color:inherit;cursor:pointer;font:inherit;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:none;outline:none;width:100%;min-width:0;padding:0 20px 0 0}.field-select[data-v-bc9ef2fc]:disabled{cursor:not-allowed}.select-input.is-empty .field-select[data-v-bc9ef2fc]{color:var(--bygga-color-text-muted)}.chevron[data-v-bc9ef2fc]{color:var(--bygga-color-text-muted);pointer-events:none;position:absolute;top:50%;right:0;transform:translateY(-50%)}"]], ["__scopeId", "data-v-bc9ef2fc"]]);
|
|
17562
17559
|
//#endregion
|
|
17563
17560
|
//#region src/composables/useBrandCustomFonts.ts
|
|
17564
|
-
function
|
|
17565
|
-
let e = o(
|
|
17566
|
-
return
|
|
17561
|
+
function FE() {
|
|
17562
|
+
let e = o(oE, void 0);
|
|
17563
|
+
return E(() => Nw(e?.value.customFonts ?? []));
|
|
17567
17564
|
}
|
|
17568
17565
|
//#endregion
|
|
17569
17566
|
//#region src/composables/useBrandFonts.ts
|
|
17570
|
-
function
|
|
17571
|
-
let t = o(
|
|
17572
|
-
return
|
|
17567
|
+
function IE(e) {
|
|
17568
|
+
let t = o(oE, void 0);
|
|
17569
|
+
return E(() => {
|
|
17573
17570
|
let n = t?.value.fonts ?? [];
|
|
17574
17571
|
if (n.length === 0) return Ci;
|
|
17575
|
-
let r = n.flatMap((e) => Ci.find((t) => t.key === e) ?? []), i =
|
|
17572
|
+
let r = n.flatMap((e) => Ci.find((t) => t.key === e) ?? []), i = me(e);
|
|
17576
17573
|
if (i && !n.includes(i)) {
|
|
17577
17574
|
let e = Ci.find((e) => e.key === i);
|
|
17578
17575
|
if (e) return [...r, e];
|
|
@@ -17582,25 +17579,25 @@ function FE(e) {
|
|
|
17582
17579
|
}
|
|
17583
17580
|
//#endregion
|
|
17584
17581
|
//#region src/i18n/locales.ts
|
|
17585
|
-
var
|
|
17586
|
-
function
|
|
17587
|
-
return
|
|
17582
|
+
var LE = ["en", "sv"], RE = "sv";
|
|
17583
|
+
function zE(e) {
|
|
17584
|
+
return LE.includes(e);
|
|
17588
17585
|
}
|
|
17589
17586
|
//#endregion
|
|
17590
17587
|
//#region src/mergeTags.ts
|
|
17591
|
-
function
|
|
17588
|
+
function BE(e) {
|
|
17592
17589
|
return Object.keys(e).filter((t) => !e[t]?.conditionOnly);
|
|
17593
17590
|
}
|
|
17594
|
-
function
|
|
17591
|
+
function VE(e, t, n) {
|
|
17595
17592
|
let r = e[t];
|
|
17596
17593
|
return r ? r[n] ?? r.sv ?? t : t;
|
|
17597
17594
|
}
|
|
17598
17595
|
//#endregion
|
|
17599
17596
|
//#region src/urls.ts
|
|
17600
|
-
var
|
|
17601
|
-
function
|
|
17597
|
+
var HE = /^[a-z][a-z0-9+.-]*:/i, UE = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, WE = /^[/#?]/;
|
|
17598
|
+
function GE(e) {
|
|
17602
17599
|
let t = e.trim();
|
|
17603
|
-
return
|
|
17600
|
+
return HE.test(t) ? UE.test(t) ? t : "" : t === "" || WE.test(t) ? t : `https://${t}`;
|
|
17604
17601
|
}
|
|
17605
17602
|
//#endregion
|
|
17606
|
-
export {
|
|
17603
|
+
export { ww as $, Wi as $t, hw as A, Vr as An, B as At, Ow as B, ta as Bt, $T as C, ni as Cn, Ec as Ct, Mw as D, ti as Dn, rs as Dt, Lw as E, $r as En, H as Et, bw as F, ua as Ft, vw as G, Ki as Gt, Dw as H, oa as Ht, iw as I, Ui as It, uw as J, va as Jt, yw as K, _a as Kt, rw as L, Zi as Lt, xw as M, sa as Mt, Cw as N, ca as Nt, ew as O, ei as On, Bs as Ot, Sw as P, la as Pt, gw as Q, $i as Qt, XC as R, Xi as Rt, nE as S, _i as Sn, U as St, Nw as T, ii as Tn, V as Tt, Tw as U, Gi as Ut, kw as V, Hi as Vt, Ew as W, Bi as Wt, fw as X, ga as Xt, mw as Y, ha as Yt, lw as Z, xa as Zt, lE as _, ai as _n, dg as _t, LE as a, ba as an, QS as at, rE as b, yi as bn, tp as bt, FE as c, ra as cn, nC as ct, xE as d, Fi as dn, K as dt, Qi as en, cw as et, yE as f, wi as fn, I_ as ft, iE as g, si as gn, ug as gt, oE as h, Ei as hn, W as ht, RE as i, aa as in, YC as it, _w as j, zi as jt, ZC as k, Br as kn, R as kt, PE as l, Pi as ln, R_ as lt, cE as m, Ti as mn, Wg as mt, BE as n, na as nn, iC as nt, zE as o, Ji as on, rC as ot, hE as p, ki as pn, G as pt, dw as q, ya as qt, VE as r, Vi as rn, JC as rt, IE as s, ia as sn, $S as st, GE as t, ea as tn, TC as tt, jE as u, Li as un, M_ as ut, aE as v, oi as vn, fg as vt, Fw as w, ri as wn, kc as wt, tE as x, vi as xn, ip as xt, sE as y, xi as yn, im as yt, jw as z, Yi as zt };
|