@skylivellc/lienzo-editor 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/{LienzoEditor-DO4NuwZG.js → LienzoEditor-BZdUqINz.js} +950 -933
- package/dist/LienzoEditor-BZdUqINz.js.map +1 -0
- package/dist/element.js +1 -1
- package/dist/index.js +1 -1
- package/dist/standalone/lienzo-editor.js +13 -13
- package/dist/standalone/lienzo-editor.js.map +1 -1
- package/dist/types/LienzoEditor.vue.d.ts +11 -1
- package/dist/types/client.d.ts +7 -0
- package/dist/types/shell/Toolbar.vue.d.ts +11 -1
- package/dist/types/state/autosave.d.ts +1 -0
- package/dist/types/state/editor.d.ts +2 -1
- package/package.json +2 -2
- package/dist/LienzoEditor-DO4NuwZG.js.map +0 -1
|
@@ -443,19 +443,77 @@ function Jt(e) {
|
|
|
443
443
|
return `https://fonts.googleapis.com/css2?${[...new Set(e)].map((e) => `family=${e.replaceAll(" ", "+")}:wght@300;400;500;600;700;800`).join("&")}&display=swap`;
|
|
444
444
|
}
|
|
445
445
|
//#endregion
|
|
446
|
-
//#region src/
|
|
447
|
-
|
|
446
|
+
//#region src/client.ts
|
|
447
|
+
function Yt({ endpoint: e, headers: t = {}, fetch: n = globalThis.fetch.bind(globalThis) }) {
|
|
448
|
+
let r = e.replace(/\/+$/, "");
|
|
449
|
+
return async (e, ...i) => {
|
|
450
|
+
let [a = "GET", o = "/"] = e.split(" "), [s, c] = o.includes(":") ? [tn(i[0]) ? i[0] : {}, i[1]] : [{}, i[0]], l = o.replace(/:([a-z]+)/g, (e, t) => encodeURIComponent(String(s[t] ?? ""))), u = typeof FormData < "u" && c instanceof FormData ? c : null, d = a === "GET" && c && typeof c == "object" && !u ? Qt(c) : "", f = c === void 0 || a === "GET" ? void 0 : u ?? JSON.stringify(c), p = {
|
|
451
|
+
method: a,
|
|
452
|
+
credentials: "same-origin",
|
|
453
|
+
headers: {
|
|
454
|
+
Accept: "application/json",
|
|
455
|
+
...typeof f == "string" ? { "Content-Type": "application/json" } : {},
|
|
456
|
+
...$t(),
|
|
457
|
+
...t
|
|
458
|
+
},
|
|
459
|
+
...f === void 0 ? {} : { body: f },
|
|
460
|
+
keepalive: typeof f == "string" && Xt(f)
|
|
461
|
+
}, m;
|
|
462
|
+
try {
|
|
463
|
+
m = await n(`${r}${l === "/" ? "" : l}${d}`, p);
|
|
464
|
+
} catch {
|
|
465
|
+
return {
|
|
466
|
+
ok: !1,
|
|
467
|
+
failure: { kind: "offline" }
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
let h = m.status === 204 ? null : await m.json().catch(() => null);
|
|
471
|
+
return m.ok ? {
|
|
472
|
+
ok: !0,
|
|
473
|
+
value: h
|
|
474
|
+
} : {
|
|
475
|
+
ok: !1,
|
|
476
|
+
failure: Zt(m.status, h)
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
var Xt = (e) => new TextEncoder().encode(e).byteLength < 6e4;
|
|
481
|
+
function Zt(e, t) {
|
|
482
|
+
let n = tn(t) && typeof t.message == "string" ? t.message : `HTTP ${e}`;
|
|
483
|
+
return e === 409 && tn(t) && typeof t.revision == "number" ? {
|
|
484
|
+
kind: "conflict",
|
|
485
|
+
message: n,
|
|
486
|
+
revision: t.revision
|
|
487
|
+
} : e === 422 ? {
|
|
488
|
+
kind: "invalid",
|
|
489
|
+
message: n,
|
|
490
|
+
issues: tn(t) && Array.isArray(t.issues) ? t.issues.filter(en) : []
|
|
491
|
+
} : {
|
|
492
|
+
kind: "http",
|
|
493
|
+
status: e,
|
|
494
|
+
message: n
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
function Qt(e) {
|
|
498
|
+
let t = Object.entries(e).filter(([, e]) => e != null);
|
|
499
|
+
return t.length === 0 ? "" : `?${new URLSearchParams(t.map(([e, t]) => [e, String(t)]))}`;
|
|
500
|
+
}
|
|
501
|
+
function $t() {
|
|
502
|
+
let e = typeof document > "u" ? null : /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(document.cookie);
|
|
503
|
+
return e?.[1] ? { "X-XSRF-TOKEN": decodeURIComponent(e[1]) } : {};
|
|
504
|
+
}
|
|
505
|
+
var en = (e) => tn(e) && typeof e.path == "string" && typeof e.message == "string" && typeof e.code == "string", tn = (e) => typeof e == "object" && !!e && !Array.isArray(e), U = [
|
|
448
506
|
"fill",
|
|
449
507
|
"text",
|
|
450
508
|
"border",
|
|
451
509
|
"effects",
|
|
452
510
|
"motion"
|
|
453
|
-
],
|
|
511
|
+
], nn = [
|
|
454
512
|
"fill",
|
|
455
513
|
"border",
|
|
456
514
|
"effects",
|
|
457
515
|
"motion"
|
|
458
|
-
],
|
|
516
|
+
], rn = (e) => (t) => ({
|
|
459
517
|
box: {
|
|
460
518
|
x: 10,
|
|
461
519
|
w: 40,
|
|
@@ -479,7 +537,7 @@ var U = [
|
|
|
479
537
|
radius: 10,
|
|
480
538
|
padding: 10
|
|
481
539
|
}
|
|
482
|
-
}),
|
|
540
|
+
}), an = {
|
|
483
541
|
heading: {
|
|
484
542
|
label: "type.heading",
|
|
485
543
|
group: "content",
|
|
@@ -530,7 +588,7 @@ var U = [
|
|
|
530
588
|
image: {
|
|
531
589
|
label: "type.image",
|
|
532
590
|
group: "content",
|
|
533
|
-
styles:
|
|
591
|
+
styles: nn,
|
|
534
592
|
inline: null,
|
|
535
593
|
create: () => ({
|
|
536
594
|
box: {
|
|
@@ -580,7 +638,7 @@ var U = [
|
|
|
580
638
|
divider: {
|
|
581
639
|
label: "type.divider",
|
|
582
640
|
group: "content",
|
|
583
|
-
styles:
|
|
641
|
+
styles: nn,
|
|
584
642
|
inline: null,
|
|
585
643
|
create: () => ({
|
|
586
644
|
box: {
|
|
@@ -658,7 +716,7 @@ var U = [
|
|
|
658
716
|
w: 100,
|
|
659
717
|
h: 72
|
|
660
718
|
},
|
|
661
|
-
...
|
|
719
|
+
...on(e)[0]
|
|
662
720
|
})
|
|
663
721
|
},
|
|
664
722
|
gallery: {
|
|
@@ -728,31 +786,31 @@ var U = [
|
|
|
728
786
|
group: "form",
|
|
729
787
|
styles: U,
|
|
730
788
|
inline: null,
|
|
731
|
-
create:
|
|
789
|
+
create: rn("input")
|
|
732
790
|
},
|
|
733
791
|
textarea: {
|
|
734
792
|
label: "type.textarea",
|
|
735
793
|
group: "form",
|
|
736
794
|
styles: U,
|
|
737
795
|
inline: null,
|
|
738
|
-
create:
|
|
796
|
+
create: rn("textarea")
|
|
739
797
|
},
|
|
740
798
|
select: {
|
|
741
799
|
label: "type.select",
|
|
742
800
|
group: "form",
|
|
743
801
|
styles: U,
|
|
744
802
|
inline: null,
|
|
745
|
-
create:
|
|
803
|
+
create: rn("select")
|
|
746
804
|
},
|
|
747
805
|
checkbox: {
|
|
748
806
|
label: "type.checkbox",
|
|
749
807
|
group: "form",
|
|
750
808
|
styles: U,
|
|
751
809
|
inline: null,
|
|
752
|
-
create:
|
|
810
|
+
create: rn("checkbox")
|
|
753
811
|
}
|
|
754
812
|
};
|
|
755
|
-
function
|
|
813
|
+
function on(e) {
|
|
756
814
|
let t = (t) => ({
|
|
757
815
|
label: e(t),
|
|
758
816
|
action: {
|
|
@@ -912,11 +970,11 @@ function Qt(e) {
|
|
|
912
970
|
}
|
|
913
971
|
];
|
|
914
972
|
}
|
|
915
|
-
function
|
|
973
|
+
function sn(e, t) {
|
|
916
974
|
if (lt(e.type)) return {
|
|
917
975
|
kind: "core",
|
|
918
976
|
element: e,
|
|
919
|
-
spec:
|
|
977
|
+
spec: an[e.type]
|
|
920
978
|
};
|
|
921
979
|
let n = t.elements.find((t) => t.type === e.type);
|
|
922
980
|
return n ? {
|
|
@@ -928,8 +986,8 @@ function $t(e, t) {
|
|
|
928
986
|
element: e
|
|
929
987
|
};
|
|
930
988
|
}
|
|
931
|
-
function
|
|
932
|
-
let r = e.kind === "core" ?
|
|
989
|
+
function cn(e, t, n) {
|
|
990
|
+
let r = e.kind === "core" ? an[e.type].create(n) : ln(e.spec), i = e.kind === "core" ? e.type : e.spec.type;
|
|
933
991
|
return {
|
|
934
992
|
id: z(i),
|
|
935
993
|
type: i,
|
|
@@ -945,7 +1003,7 @@ function en(e, t, n) {
|
|
|
945
1003
|
style: r.style
|
|
946
1004
|
};
|
|
947
1005
|
}
|
|
948
|
-
function
|
|
1006
|
+
function ln(e) {
|
|
949
1007
|
let t = {};
|
|
950
1008
|
for (let n of e.fields) n.kind !== "image" && n.kind !== "action" && n.default !== void 0 && (t[n.key] = n.default);
|
|
951
1009
|
return {
|
|
@@ -958,7 +1016,7 @@ function tn(e) {
|
|
|
958
1016
|
style: {}
|
|
959
1017
|
};
|
|
960
1018
|
}
|
|
961
|
-
function
|
|
1019
|
+
function un(e, t) {
|
|
962
1020
|
let n = e.props, r = [
|
|
963
1021
|
n.text,
|
|
964
1022
|
n.label,
|
|
@@ -968,7 +1026,7 @@ function nn(e, t) {
|
|
|
968
1026
|
}
|
|
969
1027
|
//#endregion
|
|
970
1028
|
//#region src/model/history.ts
|
|
971
|
-
function
|
|
1029
|
+
function dn(e, t = 50) {
|
|
972
1030
|
let n = [e], r = 0, i = (e) => {
|
|
973
1031
|
let t = r + e;
|
|
974
1032
|
return t < 0 || t >= n.length ? null : (r = t, n[r] ?? null);
|
|
@@ -992,7 +1050,7 @@ function rn(e, t = 50) {
|
|
|
992
1050
|
}
|
|
993
1051
|
//#endregion
|
|
994
1052
|
//#region src/i18n/en.ts
|
|
995
|
-
var
|
|
1053
|
+
var fn = {
|
|
996
1054
|
"load.loading": "Loading the editor…",
|
|
997
1055
|
"load.failed": "Couldn't load the editor: {message}",
|
|
998
1056
|
"load.retry": "Try again",
|
|
@@ -1626,7 +1684,7 @@ var an = {
|
|
|
1626
1684
|
"newPage.slugFallback": "address",
|
|
1627
1685
|
"theme.hex": "{label}, hex code",
|
|
1628
1686
|
"site.localeHint": "Two letters, optionally with the country: en, es, pt-BR."
|
|
1629
|
-
},
|
|
1687
|
+
}, pn = {
|
|
1630
1688
|
"load.loading": "Cargando el editor...",
|
|
1631
1689
|
"load.failed": "No se pudo cargar el editor: {message}",
|
|
1632
1690
|
"load.retry": "Intentar de nuevo",
|
|
@@ -2260,30 +2318,30 @@ var an = {
|
|
|
2260
2318
|
"newPage.slugFallback": "direccion",
|
|
2261
2319
|
"theme.hex": "{label}, código hex",
|
|
2262
2320
|
"site.localeHint": "Dos letras, y si quieres el país: en, es, pt-BR."
|
|
2263
|
-
},
|
|
2264
|
-
en:
|
|
2265
|
-
es:
|
|
2321
|
+
}, mn = {
|
|
2322
|
+
en: fn,
|
|
2323
|
+
es: pn
|
|
2266
2324
|
};
|
|
2267
|
-
function
|
|
2325
|
+
function hn(e, t = {}) {
|
|
2268
2326
|
let n = e.split("-")[0] ?? e, r = [
|
|
2269
2327
|
t[e] ?? {},
|
|
2270
|
-
|
|
2328
|
+
mn[e] ?? {},
|
|
2271
2329
|
t[n] ?? {},
|
|
2272
|
-
|
|
2330
|
+
mn[n] ?? {},
|
|
2273
2331
|
t.en ?? {}
|
|
2274
|
-
], i = (e) => r.find((t) => t[e] !== void 0)?.[e] ??
|
|
2332
|
+
], i = (e) => r.find((t) => t[e] !== void 0)?.[e] ?? fn[e];
|
|
2275
2333
|
return {
|
|
2276
2334
|
locale: e,
|
|
2277
|
-
t: (e, t) =>
|
|
2335
|
+
t: (e, t) => gn(i(e), t),
|
|
2278
2336
|
localized: (t) => t[e] ?? t[n] ?? t.en
|
|
2279
2337
|
};
|
|
2280
2338
|
}
|
|
2281
|
-
function
|
|
2339
|
+
function gn(e, t) {
|
|
2282
2340
|
return t ? e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : e) : e;
|
|
2283
2341
|
}
|
|
2284
2342
|
//#endregion
|
|
2285
2343
|
//#region src/model/templates.ts
|
|
2286
|
-
var
|
|
2344
|
+
var _n = hn("en").t;
|
|
2287
2345
|
function W(e, t, n) {
|
|
2288
2346
|
return {
|
|
2289
2347
|
id: z("section"),
|
|
@@ -2293,7 +2351,7 @@ function W(e, t, n) {
|
|
|
2293
2351
|
},
|
|
2294
2352
|
background: t,
|
|
2295
2353
|
elements: n.map((e, t) => {
|
|
2296
|
-
let n =
|
|
2354
|
+
let n = an[e.type].create(_n);
|
|
2297
2355
|
return {
|
|
2298
2356
|
id: z(e.type),
|
|
2299
2357
|
type: e.type,
|
|
@@ -2317,14 +2375,14 @@ function W(e, t, n) {
|
|
|
2317
2375
|
var G = (e) => ({
|
|
2318
2376
|
type: "color",
|
|
2319
2377
|
color: e
|
|
2320
|
-
}),
|
|
2378
|
+
}), vn = {
|
|
2321
2379
|
color: "secondary",
|
|
2322
2380
|
background: "background",
|
|
2323
2381
|
border_width: 1,
|
|
2324
2382
|
border_color: "muted",
|
|
2325
2383
|
radius: 12,
|
|
2326
2384
|
padding: 12
|
|
2327
|
-
},
|
|
2385
|
+
}, yn = (e, t, n, r) => [
|
|
2328
2386
|
{
|
|
2329
2387
|
type: "icon",
|
|
2330
2388
|
box: {
|
|
@@ -2374,7 +2432,7 @@ var G = (e) => ({
|
|
|
2374
2432
|
line_height: 1.5
|
|
2375
2433
|
}
|
|
2376
2434
|
}
|
|
2377
|
-
],
|
|
2435
|
+
], bn = (e, t, n, r, i) => [
|
|
2378
2436
|
{
|
|
2379
2437
|
type: "shape",
|
|
2380
2438
|
box: {
|
|
@@ -2466,7 +2524,7 @@ var G = (e) => ({
|
|
|
2466
2524
|
size: 15
|
|
2467
2525
|
}
|
|
2468
2526
|
}
|
|
2469
|
-
],
|
|
2527
|
+
], xn = (e, t, n, r) => [
|
|
2470
2528
|
{
|
|
2471
2529
|
type: "heading",
|
|
2472
2530
|
box: {
|
|
@@ -2520,7 +2578,7 @@ var G = (e) => ({
|
|
|
2520
2578
|
line_height: 1.6
|
|
2521
2579
|
}
|
|
2522
2580
|
}
|
|
2523
|
-
],
|
|
2581
|
+
], Sn = (e, t, n) => [
|
|
2524
2582
|
{
|
|
2525
2583
|
type: "image",
|
|
2526
2584
|
box: {
|
|
@@ -2571,7 +2629,7 @@ var G = (e) => ({
|
|
|
2571
2629
|
size: 14
|
|
2572
2630
|
}
|
|
2573
2631
|
}
|
|
2574
|
-
],
|
|
2632
|
+
], Cn = (e, t, n) => [
|
|
2575
2633
|
{
|
|
2576
2634
|
type: "heading",
|
|
2577
2635
|
box: {
|
|
@@ -2620,7 +2678,7 @@ var G = (e) => ({
|
|
|
2620
2678
|
opacity: .25
|
|
2621
2679
|
}
|
|
2622
2680
|
}
|
|
2623
|
-
],
|
|
2681
|
+
], wn = {
|
|
2624
2682
|
hero: () => W(680, G("background"), [
|
|
2625
2683
|
{
|
|
2626
2684
|
type: "shape",
|
|
@@ -2759,9 +2817,9 @@ var G = (e) => ({
|
|
|
2759
2817
|
line_height: 1.6
|
|
2760
2818
|
}
|
|
2761
2819
|
},
|
|
2762
|
-
...
|
|
2763
|
-
...
|
|
2764
|
-
...
|
|
2820
|
+
...yn(100, "star", "Clear from the start", "You know what you get and what it costs before anything begins."),
|
|
2821
|
+
...yn(190, "clock", "On time", "We agree on dates up front and keep you posted at every step."),
|
|
2822
|
+
...yn(280, "heart", "Here afterwards", "Questions after the work is done get the same attention.")
|
|
2765
2823
|
]),
|
|
2766
2824
|
about: () => W(480, G("background"), [
|
|
2767
2825
|
{
|
|
@@ -2991,7 +3049,7 @@ var G = (e) => ({
|
|
|
2991
3049
|
required: !0,
|
|
2992
3050
|
input_type: "text"
|
|
2993
3051
|
},
|
|
2994
|
-
style:
|
|
3052
|
+
style: vn
|
|
2995
3053
|
},
|
|
2996
3054
|
{
|
|
2997
3055
|
type: "input",
|
|
@@ -3007,7 +3065,7 @@ var G = (e) => ({
|
|
|
3007
3065
|
required: !0,
|
|
3008
3066
|
input_type: "email"
|
|
3009
3067
|
},
|
|
3010
|
-
style:
|
|
3068
|
+
style: vn
|
|
3011
3069
|
},
|
|
3012
3070
|
{
|
|
3013
3071
|
type: "select",
|
|
@@ -3028,7 +3086,7 @@ var G = (e) => ({
|
|
|
3028
3086
|
"Other"
|
|
3029
3087
|
]
|
|
3030
3088
|
},
|
|
3031
|
-
style:
|
|
3089
|
+
style: vn
|
|
3032
3090
|
},
|
|
3033
3091
|
{
|
|
3034
3092
|
type: "textarea",
|
|
@@ -3043,7 +3101,7 @@ var G = (e) => ({
|
|
|
3043
3101
|
placeholder: "Optional",
|
|
3044
3102
|
required: !1
|
|
3045
3103
|
},
|
|
3046
|
-
style:
|
|
3104
|
+
style: vn
|
|
3047
3105
|
},
|
|
3048
3106
|
{
|
|
3049
3107
|
type: "checkbox",
|
|
@@ -3507,9 +3565,9 @@ var G = (e) => ({
|
|
|
3507
3565
|
weight: 700
|
|
3508
3566
|
}
|
|
3509
3567
|
},
|
|
3510
|
-
...
|
|
3511
|
-
...
|
|
3512
|
-
...
|
|
3568
|
+
...xn(6, "1", "You write to us", "Tell us what you need and when you need it."),
|
|
3569
|
+
...xn(37, "2", "We answer with a plan", "A date, a price and what is included."),
|
|
3570
|
+
...xn(68, "3", "We start", "You see progress every week, not at the end.")
|
|
3513
3571
|
]),
|
|
3514
3572
|
pricing: () => W(560, G("background"), [
|
|
3515
3573
|
{
|
|
@@ -3531,9 +3589,9 @@ var G = (e) => ({
|
|
|
3531
3589
|
weight: 700
|
|
3532
3590
|
}
|
|
3533
3591
|
},
|
|
3534
|
-
...
|
|
3535
|
-
...
|
|
3536
|
-
...
|
|
3592
|
+
...bn(8, "Start", "$19", "One site\nOne editor\nEmail support", !1),
|
|
3593
|
+
...bn(38, "Studio", "$49", "Five sites\nFive editors\nSupport in a day", !0),
|
|
3594
|
+
...bn(68, "Agency", "$99", "Sites without a limit\nYour own domain\nSupport in an hour", !1)
|
|
3537
3595
|
]),
|
|
3538
3596
|
team: () => W(500, G("surface"), [
|
|
3539
3597
|
{
|
|
@@ -3555,10 +3613,10 @@ var G = (e) => ({
|
|
|
3555
3613
|
weight: 700
|
|
3556
3614
|
}
|
|
3557
3615
|
},
|
|
3558
|
-
...
|
|
3559
|
-
...
|
|
3560
|
-
...
|
|
3561
|
-
...
|
|
3616
|
+
...Sn(6, "Name Surname", "What they do"),
|
|
3617
|
+
...Sn(29, "Name Surname", "What they do"),
|
|
3618
|
+
...Sn(52, "Name Surname", "What they do"),
|
|
3619
|
+
...Sn(75, "Name Surname", "What they do")
|
|
3562
3620
|
]),
|
|
3563
3621
|
faq: () => W(620, G("background"), [
|
|
3564
3622
|
{
|
|
@@ -3580,10 +3638,10 @@ var G = (e) => ({
|
|
|
3580
3638
|
weight: 700
|
|
3581
3639
|
}
|
|
3582
3640
|
},
|
|
3583
|
-
...
|
|
3584
|
-
...
|
|
3585
|
-
...
|
|
3586
|
-
...
|
|
3641
|
+
...Cn(160, "How long does it take?", "Two to four weeks, counted from the day the content is ready."),
|
|
3642
|
+
...Cn(270, "What do you need from me?", "Texts, pictures and someone who can decide."),
|
|
3643
|
+
...Cn(380, "Can I edit it later?", "Yes. The site is yours and it is edited here, without us."),
|
|
3644
|
+
...Cn(490, "What if I do not like it?", "You see it before it is published, and we change it.")
|
|
3587
3645
|
]),
|
|
3588
3646
|
newsletter: () => W(360, G("primary"), [
|
|
3589
3647
|
{
|
|
@@ -3782,7 +3840,7 @@ var G = (e) => ({
|
|
|
3782
3840
|
}
|
|
3783
3841
|
}
|
|
3784
3842
|
])
|
|
3785
|
-
},
|
|
3843
|
+
}, Tn = [
|
|
3786
3844
|
{
|
|
3787
3845
|
key: "hero",
|
|
3788
3846
|
name: "template.hero",
|
|
@@ -3873,7 +3931,7 @@ var G = (e) => ({
|
|
|
3873
3931
|
name: "template.footerBig",
|
|
3874
3932
|
group: "close"
|
|
3875
3933
|
}
|
|
3876
|
-
],
|
|
3934
|
+
], En = [
|
|
3877
3935
|
{
|
|
3878
3936
|
key: "open",
|
|
3879
3937
|
name: "template.group.open"
|
|
@@ -3890,7 +3948,7 @@ var G = (e) => ({
|
|
|
3890
3948
|
key: "close",
|
|
3891
3949
|
name: "template.group.close"
|
|
3892
3950
|
}
|
|
3893
|
-
],
|
|
3951
|
+
], Dn = {
|
|
3894
3952
|
full: [
|
|
3895
3953
|
"hero",
|
|
3896
3954
|
"features",
|
|
@@ -3910,7 +3968,7 @@ var G = (e) => ({
|
|
|
3910
3968
|
"contact",
|
|
3911
3969
|
"footer"
|
|
3912
3970
|
]
|
|
3913
|
-
},
|
|
3971
|
+
}, On = [
|
|
3914
3972
|
{
|
|
3915
3973
|
key: "full",
|
|
3916
3974
|
name: "pageTemplate.full",
|
|
@@ -3926,26 +3984,26 @@ var G = (e) => ({
|
|
|
3926
3984
|
name: "pageTemplate.landing",
|
|
3927
3985
|
note: "pageTemplate.landing.note"
|
|
3928
3986
|
}
|
|
3929
|
-
],
|
|
3987
|
+
], kn = (e) => wn[e](), An = (e) => Dn[e].map((e) => wn[e]());
|
|
3930
3988
|
//#endregion
|
|
3931
3989
|
//#region src/state/autosave.ts
|
|
3932
|
-
function
|
|
3990
|
+
function jn({ read: e, save: t, delay: n = 1500, offlineRetry: r = 5e3 }) {
|
|
3933
3991
|
let i = w({
|
|
3934
3992
|
kind: "saved",
|
|
3935
3993
|
at: null
|
|
3936
|
-
}), a = () => JSON.stringify(e()), o = a(), s = 0, c, l = null, u = (e) => {
|
|
3937
|
-
clearTimeout(c), c = setTimeout(() => void
|
|
3994
|
+
}), a = () => JSON.stringify(e()), o = a(), s = 0, c, l = null, u = !1, d = (e) => {
|
|
3995
|
+
clearTimeout(c), u || (c = setTimeout(() => void f(), e));
|
|
3938
3996
|
};
|
|
3939
|
-
async function
|
|
3997
|
+
async function f() {
|
|
3940
3998
|
for (clearTimeout(c); l;) await l;
|
|
3941
3999
|
if (i.value.kind === "conflict") return !1;
|
|
3942
|
-
let
|
|
4000
|
+
let u = e(), f = JSON.stringify(u);
|
|
3943
4001
|
if (f === o) return i.value.kind !== "saved" && (i.value = {
|
|
3944
4002
|
kind: "saved",
|
|
3945
4003
|
at: /* @__PURE__ */ new Date()
|
|
3946
4004
|
}), !0;
|
|
3947
4005
|
i.value = { kind: "saving" };
|
|
3948
|
-
let p = s, m = t(
|
|
4006
|
+
let p = s, m = t(u);
|
|
3949
4007
|
l = m;
|
|
3950
4008
|
let h = await m.finally(() => {
|
|
3951
4009
|
l = null;
|
|
@@ -3953,12 +4011,12 @@ function wn({ read: e, save: t, delay: n = 1500, offlineRetry: r = 5e3 }) {
|
|
|
3953
4011
|
return p === s ? h.ok ? (o = f, a() === o ? (i.value = {
|
|
3954
4012
|
kind: "saved",
|
|
3955
4013
|
at: /* @__PURE__ */ new Date()
|
|
3956
|
-
}, !0) : (i.value = { kind: "pending" },
|
|
4014
|
+
}, !0) : (i.value = { kind: "pending" }, d(n), !1)) : (i.value = Mn(h.failure), i.value.kind === "offline" && d(r), !1) : !1;
|
|
3957
4015
|
}
|
|
3958
|
-
let
|
|
3959
|
-
i.value.kind === "offline" &&
|
|
4016
|
+
let p = () => {
|
|
4017
|
+
i.value.kind === "offline" && f();
|
|
3960
4018
|
};
|
|
3961
|
-
return typeof window < "u" && window.addEventListener("online",
|
|
4019
|
+
return typeof window < "u" && window.addEventListener("online", p), {
|
|
3962
4020
|
state: i,
|
|
3963
4021
|
changed() {
|
|
3964
4022
|
if (i.value.kind !== "conflict" && i.value.kind !== "saving") {
|
|
@@ -3969,12 +4027,12 @@ function wn({ read: e, save: t, delay: n = 1500, offlineRetry: r = 5e3 }) {
|
|
|
3969
4027
|
});
|
|
3970
4028
|
return;
|
|
3971
4029
|
}
|
|
3972
|
-
i.value.kind !== "offline" && (i.value = { kind: "pending" }),
|
|
4030
|
+
i.value.kind !== "offline" && (i.value = { kind: "pending" }), d(n);
|
|
3973
4031
|
}
|
|
3974
4032
|
},
|
|
3975
|
-
flush:
|
|
4033
|
+
flush: f,
|
|
3976
4034
|
async exclusive(e) {
|
|
3977
|
-
for (await
|
|
4035
|
+
for (await f(); l;) await l;
|
|
3978
4036
|
let t = e();
|
|
3979
4037
|
l = t;
|
|
3980
4038
|
try {
|
|
@@ -3990,11 +4048,11 @@ function wn({ read: e, save: t, delay: n = 1500, offlineRetry: r = 5e3 }) {
|
|
|
3990
4048
|
};
|
|
3991
4049
|
},
|
|
3992
4050
|
dispose() {
|
|
3993
|
-
|
|
4051
|
+
u = !0, typeof window < "u" && window.removeEventListener("online", p), f();
|
|
3994
4052
|
}
|
|
3995
4053
|
};
|
|
3996
4054
|
}
|
|
3997
|
-
function
|
|
4055
|
+
function Mn(e) {
|
|
3998
4056
|
switch (e.kind) {
|
|
3999
4057
|
case "offline": return { kind: "offline" };
|
|
4000
4058
|
case "conflict": return { kind: "conflict" };
|
|
@@ -4011,7 +4069,7 @@ function Tn(e) {
|
|
|
4011
4069
|
}
|
|
4012
4070
|
//#endregion
|
|
4013
4071
|
//#region src/state/previews.ts
|
|
4014
|
-
function
|
|
4072
|
+
function Nn(e, t = 250) {
|
|
4015
4073
|
let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = w(0), a;
|
|
4016
4074
|
async function o() {
|
|
4017
4075
|
let t = [...r.entries()];
|
|
@@ -4029,7 +4087,7 @@ function En(e, t = 250) {
|
|
|
4029
4087
|
return {
|
|
4030
4088
|
version: i,
|
|
4031
4089
|
get(e) {
|
|
4032
|
-
let i =
|
|
4090
|
+
let i = Pn(e);
|
|
4033
4091
|
return n.get(i) || (n.set(i, { status: "loading" }), r.set(i, {
|
|
4034
4092
|
id: e.id,
|
|
4035
4093
|
type: e.type,
|
|
@@ -4038,19 +4096,19 @@ function En(e, t = 250) {
|
|
|
4038
4096
|
}
|
|
4039
4097
|
};
|
|
4040
4098
|
}
|
|
4041
|
-
function
|
|
4099
|
+
function Pn(e) {
|
|
4042
4100
|
let t = Object.keys(e.props).sort().map((t) => [t, e.props[t]]);
|
|
4043
4101
|
return JSON.stringify([e.type, t]);
|
|
4044
4102
|
}
|
|
4045
4103
|
//#endregion
|
|
4046
4104
|
//#region src/state/editor.ts
|
|
4047
|
-
var
|
|
4105
|
+
var Fn = "lienzo-editor-clipboard", In = Symbol("lienzo-editor");
|
|
4048
4106
|
function K() {
|
|
4049
|
-
let e = l(
|
|
4107
|
+
let e = l(In);
|
|
4050
4108
|
if (!e) throw Error("useEditor() outside <LienzoEditor>");
|
|
4051
4109
|
return e;
|
|
4052
4110
|
}
|
|
4053
|
-
function
|
|
4111
|
+
function Ln({ client: e, i18n: n }) {
|
|
4054
4112
|
let r = n.t, i = y({
|
|
4055
4113
|
load: { kind: "loading" },
|
|
4056
4114
|
workspace: {
|
|
@@ -4083,24 +4141,24 @@ function An({ client: e, i18n: n }) {
|
|
|
4083
4141
|
renderIssues: [],
|
|
4084
4142
|
publishing: !1,
|
|
4085
4143
|
toasts: []
|
|
4086
|
-
}), a =
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4144
|
+
}), a = dn(""), o = w(0), s = Nn(e), c = () => B({
|
|
4145
|
+
page: i.page?.id ?? null,
|
|
4146
|
+
title: i.page?.title ?? "",
|
|
4147
|
+
seo: i.page?.seo ?? {
|
|
4148
|
+
title: "",
|
|
4149
|
+
description: ""
|
|
4150
|
+
},
|
|
4151
|
+
draft: i.draft
|
|
4152
|
+
}), l = (e) => ({
|
|
4153
|
+
baseRevision: i.revision,
|
|
4154
|
+
title: e.title,
|
|
4155
|
+
seo: zn(e.seo),
|
|
4156
|
+
draft: e.draft
|
|
4157
|
+
}), u = jn({
|
|
4158
|
+
read: c,
|
|
4096
4159
|
async save(t) {
|
|
4097
4160
|
if (t.page === null) return { ok: !0 };
|
|
4098
|
-
let n = await e("PUT /pages/:id", { id: t.page },
|
|
4099
|
-
baseRevision: i.revision,
|
|
4100
|
-
title: t.title,
|
|
4101
|
-
seo: Mn(t.seo),
|
|
4102
|
-
draft: t.draft
|
|
4103
|
-
});
|
|
4161
|
+
let n = await e("PUT /pages/:id", { id: t.page }, l(t));
|
|
4104
4162
|
return i.page?.id === t.page ? n.ok ? (i.revision = n.value.revision, { ok: !0 }) : (n.failure.kind === "conflict" && (i.dialog = "conflict"), n) : { ok: !0 };
|
|
4105
4163
|
}
|
|
4106
4164
|
});
|
|
@@ -4108,8 +4166,8 @@ function An({ client: e, i18n: n }) {
|
|
|
4108
4166
|
i.page?.title,
|
|
4109
4167
|
i.page?.seo,
|
|
4110
4168
|
i.draft
|
|
4111
|
-
], () =>
|
|
4112
|
-
let
|
|
4169
|
+
], () => u.changed(), { deep: !0 }), M(() => i.page?.title, A);
|
|
4170
|
+
let d = t(() => i.workspace.catalog), f = t((e) => {
|
|
4113
4171
|
try {
|
|
4114
4172
|
return oe({
|
|
4115
4173
|
...i.workspace.site,
|
|
@@ -4119,49 +4177,49 @@ function An({ client: e, i18n: n }) {
|
|
|
4119
4177
|
if (t instanceof F && e) return e;
|
|
4120
4178
|
throw t;
|
|
4121
4179
|
}
|
|
4122
|
-
}),
|
|
4180
|
+
}), p = t(() => f.value.theme), m = t(() => {
|
|
4123
4181
|
if (i.view.kind === "modal") {
|
|
4124
4182
|
let e = i.draft.modals?.find((e) => e.id === (i.view.kind === "modal" ? i.view.id : ""));
|
|
4125
4183
|
return e ? [e] : [];
|
|
4126
4184
|
}
|
|
4127
4185
|
return i.draft.sections;
|
|
4128
|
-
}),
|
|
4186
|
+
}), h = t(() => {
|
|
4129
4187
|
let e = i.view;
|
|
4130
4188
|
return e.kind === "modal" ? i.draft.modals?.find((t) => t.id === e.id) ?? null : null;
|
|
4131
|
-
}),
|
|
4189
|
+
}), g = t(() => {
|
|
4132
4190
|
let e = i.selection;
|
|
4133
|
-
return (e.kind === "none" ? null : R(i.draft, e.canvas)) ??
|
|
4134
|
-
}),
|
|
4191
|
+
return (e.kind === "none" ? null : R(i.draft, e.canvas)) ?? m.value[0] ?? null;
|
|
4192
|
+
}), _ = t(() => {
|
|
4135
4193
|
let e = i.selection;
|
|
4136
4194
|
if (e.kind !== "elements") return [];
|
|
4137
4195
|
let t = R(i.draft, e.canvas);
|
|
4138
4196
|
return t ? ie(t.elements).filter((t) => e.ids.includes(t.id)) : [];
|
|
4139
|
-
}),
|
|
4197
|
+
}), v = t(() => {
|
|
4140
4198
|
let e = i.selection;
|
|
4141
|
-
return e.kind === "elements" ?
|
|
4142
|
-
}),
|
|
4143
|
-
let e =
|
|
4144
|
-
return i.device === "mobile" ? 390 : e ? e.width + (e.size === "full" ? 0 : 32) :
|
|
4145
|
-
}),
|
|
4146
|
-
function
|
|
4199
|
+
return e.kind === "elements" ? _.value.find((t) => t.id === e.active) ?? null : null;
|
|
4200
|
+
}), b = t(() => {
|
|
4201
|
+
let e = h.value;
|
|
4202
|
+
return i.device === "mobile" ? 390 : e ? e.width + (e.size === "full" ? 0 : 32) : p.value.max_width;
|
|
4203
|
+
}), x = 0;
|
|
4204
|
+
function S(e, t = "info") {
|
|
4147
4205
|
let n = {
|
|
4148
|
-
id: ++
|
|
4206
|
+
id: ++x,
|
|
4149
4207
|
tone: t,
|
|
4150
4208
|
text: e
|
|
4151
4209
|
};
|
|
4152
|
-
i.toasts.push(n), setTimeout(() =>
|
|
4210
|
+
i.toasts.push(n), setTimeout(() => C(n.id), t === "error" ? 8e3 : 3500);
|
|
4153
4211
|
}
|
|
4154
|
-
function
|
|
4212
|
+
function C(e) {
|
|
4155
4213
|
i.toasts = i.toasts.filter((t) => t.id !== e);
|
|
4156
4214
|
}
|
|
4157
|
-
let
|
|
4158
|
-
async function
|
|
4215
|
+
let T = (e) => e.kind === "offline" ? r("load.offline") : e.message;
|
|
4216
|
+
async function D() {
|
|
4159
4217
|
i.load = { kind: "loading" };
|
|
4160
4218
|
let t = await e("GET /");
|
|
4161
4219
|
if (!t.ok) {
|
|
4162
4220
|
i.load = {
|
|
4163
4221
|
kind: "failed",
|
|
4164
|
-
message:
|
|
4222
|
+
message: T(t.failure)
|
|
4165
4223
|
};
|
|
4166
4224
|
return;
|
|
4167
4225
|
}
|
|
@@ -4171,7 +4229,7 @@ function An({ client: e, i18n: n }) {
|
|
|
4171
4229
|
if (e instanceof F) {
|
|
4172
4230
|
i.load = {
|
|
4173
4231
|
kind: "failed",
|
|
4174
|
-
message:
|
|
4232
|
+
message: Rn(e.issues[0])
|
|
4175
4233
|
};
|
|
4176
4234
|
return;
|
|
4177
4235
|
}
|
|
@@ -4183,23 +4241,23 @@ function An({ client: e, i18n: n }) {
|
|
|
4183
4241
|
i.load = { kind: "empty" }, i.dialog = "newPage";
|
|
4184
4242
|
return;
|
|
4185
4243
|
}
|
|
4186
|
-
await
|
|
4244
|
+
await ee(n.id);
|
|
4187
4245
|
}
|
|
4188
|
-
async function
|
|
4246
|
+
async function O(t) {
|
|
4189
4247
|
let n = await e("GET /pages/:id", { id: t });
|
|
4190
|
-
return n.ok ?
|
|
4248
|
+
return n.ok ? k(n.value) : (i.load = {
|
|
4191
4249
|
kind: "failed",
|
|
4192
|
-
message:
|
|
4250
|
+
message: T(n.failure)
|
|
4193
4251
|
}, !1);
|
|
4194
4252
|
}
|
|
4195
|
-
function
|
|
4253
|
+
function k(e) {
|
|
4196
4254
|
let t;
|
|
4197
4255
|
try {
|
|
4198
|
-
t = B(ae(e.draft,
|
|
4256
|
+
t = B(ae(e.draft, d.value));
|
|
4199
4257
|
} catch (e) {
|
|
4200
4258
|
if (e instanceof F) return i.load = {
|
|
4201
4259
|
kind: "failed",
|
|
4202
|
-
message: r("load.invalidDraft", { issue:
|
|
4260
|
+
message: r("load.invalidDraft", { issue: Rn(e.issues[0]) })
|
|
4203
4261
|
}, !1;
|
|
4204
4262
|
throw e;
|
|
4205
4263
|
}
|
|
@@ -4216,9 +4274,9 @@ function An({ client: e, i18n: n }) {
|
|
|
4216
4274
|
}, i.draft = t, i.revision = e.revision, i.view = { kind: "page" }, i.selection = t.sections[0] ? {
|
|
4217
4275
|
kind: "canvas",
|
|
4218
4276
|
canvas: t.sections[0].id
|
|
4219
|
-
} : { kind: "none" }, i.panels = {}, i.load = { kind: "ready" }, a.reset(JSON.stringify(t)), o.value++,
|
|
4277
|
+
} : { kind: "none" }, i.panels = {}, i.load = { kind: "ready" }, a.reset(JSON.stringify(t)), o.value++, u.reset(), A(), !0;
|
|
4220
4278
|
}
|
|
4221
|
-
function
|
|
4279
|
+
function A() {
|
|
4222
4280
|
let e = i.page;
|
|
4223
4281
|
e && (i.workspace.pages = i.workspace.pages.map((t) => t.id === e.id ? {
|
|
4224
4282
|
id: e.id,
|
|
@@ -4227,17 +4285,17 @@ function An({ client: e, i18n: n }) {
|
|
|
4227
4285
|
publishedAt: e.publishedAt
|
|
4228
4286
|
} : t));
|
|
4229
4287
|
}
|
|
4230
|
-
async function
|
|
4288
|
+
async function ee(e) {
|
|
4231
4289
|
if (i.page?.id !== e) {
|
|
4232
|
-
if (i.page && !await
|
|
4233
|
-
|
|
4290
|
+
if (i.page && !await u.flush()) {
|
|
4291
|
+
S(r("save.failed", { message: j() }), "error");
|
|
4234
4292
|
return;
|
|
4235
4293
|
}
|
|
4236
|
-
await
|
|
4294
|
+
await O(e);
|
|
4237
4295
|
}
|
|
4238
4296
|
}
|
|
4239
|
-
function
|
|
4240
|
-
let e =
|
|
4297
|
+
function j() {
|
|
4298
|
+
let e = u.state.value;
|
|
4241
4299
|
switch (e.kind) {
|
|
4242
4300
|
case "offline": return r("load.offline");
|
|
4243
4301
|
case "failed":
|
|
@@ -4246,17 +4304,17 @@ function An({ client: e, i18n: n }) {
|
|
|
4246
4304
|
default: return "";
|
|
4247
4305
|
}
|
|
4248
4306
|
}
|
|
4249
|
-
async function
|
|
4250
|
-
i.page && (i.dialog = null, await
|
|
4307
|
+
async function te() {
|
|
4308
|
+
i.page && (i.dialog = null, await O(i.page.id));
|
|
4251
4309
|
}
|
|
4252
|
-
function
|
|
4310
|
+
function N() {
|
|
4253
4311
|
a.push(JSON.stringify(i.draft)) && o.value++;
|
|
4254
4312
|
}
|
|
4255
|
-
function
|
|
4256
|
-
e !== null && (i.draft = JSON.parse(e), o.value++,
|
|
4313
|
+
function ne(e) {
|
|
4314
|
+
e !== null && (i.draft = JSON.parse(e), o.value++, se());
|
|
4257
4315
|
}
|
|
4258
|
-
let
|
|
4259
|
-
function
|
|
4316
|
+
let P = t(() => o.value >= 0 && a.canUndo), re = t(() => o.value >= 0 && a.canRedo);
|
|
4317
|
+
function se() {
|
|
4260
4318
|
let e = i.selection;
|
|
4261
4319
|
if (e.kind === "none") return;
|
|
4262
4320
|
let t = R(i.draft, e.canvas);
|
|
@@ -4273,15 +4331,15 @@ function An({ client: e, i18n: n }) {
|
|
|
4273
4331
|
active: n.includes(e.active) ? e.active : n[0]
|
|
4274
4332
|
};
|
|
4275
4333
|
}
|
|
4276
|
-
i.view.kind === "modal" && !
|
|
4334
|
+
i.view.kind === "modal" && !h.value && (i.view = { kind: "page" });
|
|
4277
4335
|
}
|
|
4278
|
-
function
|
|
4336
|
+
function ce(e) {
|
|
4279
4337
|
i.selection = {
|
|
4280
4338
|
kind: "canvas",
|
|
4281
4339
|
canvas: e
|
|
4282
|
-
},
|
|
4340
|
+
}, ue(e);
|
|
4283
4341
|
}
|
|
4284
|
-
function
|
|
4342
|
+
function I(e, t, n = !1) {
|
|
4285
4343
|
let r = R(i.draft, e), a = r ? ie(r.elements).find((e) => e.id === t) : void 0;
|
|
4286
4344
|
if (!r || !a) return;
|
|
4287
4345
|
let o = a.group ? ie(r.elements).filter((e) => e.group === a.group).map((e) => e.id) : [t], s = i.selection.kind === "elements" && i.selection.canvas === e ? i.selection.ids : [], c = n ? s.includes(t) ? s.filter((e) => !o.includes(e)) : [.../* @__PURE__ */ new Set([...s, ...o])] : o;
|
|
@@ -4293,16 +4351,16 @@ function An({ client: e, i18n: n }) {
|
|
|
4293
4351
|
canvas: e,
|
|
4294
4352
|
ids: c,
|
|
4295
4353
|
active: c.includes(t) ? t : c[0]
|
|
4296
|
-
},
|
|
4354
|
+
}, ue(e);
|
|
4297
4355
|
}
|
|
4298
|
-
function
|
|
4356
|
+
function le() {
|
|
4299
4357
|
let e = i.selection;
|
|
4300
4358
|
i.selection = e.kind === "elements" ? {
|
|
4301
4359
|
kind: "canvas",
|
|
4302
4360
|
canvas: e.canvas
|
|
4303
4361
|
} : e;
|
|
4304
4362
|
}
|
|
4305
|
-
function
|
|
4363
|
+
function ue(e) {
|
|
4306
4364
|
let t = i.draft.sections, n = t.findIndex((t) => t.id === e), r = t[n]?.group?.id;
|
|
4307
4365
|
if (n < 0 || !r) return;
|
|
4308
4366
|
let a = n;
|
|
@@ -4312,28 +4370,28 @@ function An({ client: e, i18n: n }) {
|
|
|
4312
4370
|
[r]: n - a
|
|
4313
4371
|
};
|
|
4314
4372
|
}
|
|
4315
|
-
function
|
|
4373
|
+
function de(e, t) {
|
|
4316
4374
|
return e?.elements.find((e) => (e.children ?? []).some((e) => e.id === t));
|
|
4317
4375
|
}
|
|
4318
|
-
function
|
|
4376
|
+
function fe(e) {
|
|
4319
4377
|
let t = i.selection;
|
|
4320
|
-
return t.kind === "elements" &&
|
|
4378
|
+
return t.kind === "elements" && de(R(i.draft, t.canvas), e) !== void 0;
|
|
4321
4379
|
}
|
|
4322
|
-
function
|
|
4380
|
+
function pe(e) {
|
|
4323
4381
|
let t = i.selection;
|
|
4324
4382
|
if (t.kind !== "elements" || t.active === null) return;
|
|
4325
4383
|
let n = ie(e.elements).find((e) => e.id === t.active);
|
|
4326
|
-
return n?.type === "box" ? n :
|
|
4384
|
+
return n?.type === "box" ? n : de(e, t.active);
|
|
4327
4385
|
}
|
|
4328
|
-
function
|
|
4329
|
-
let a = t ? R(i.draft, t.canvas) :
|
|
4386
|
+
function me(e, t, n) {
|
|
4387
|
+
let a = t ? R(i.draft, t.canvas) : g.value;
|
|
4330
4388
|
if (!a) return;
|
|
4331
|
-
let o =
|
|
4389
|
+
let o = cn(e, t ? t.y : a.elements.length * 24 + 40, r);
|
|
4332
4390
|
n && (o.props = {
|
|
4333
4391
|
...o.props,
|
|
4334
4392
|
src: n
|
|
4335
4393
|
});
|
|
4336
|
-
let s = t ? void 0 :
|
|
4394
|
+
let s = t ? void 0 : pe(a);
|
|
4337
4395
|
if (s && o.type !== "box") {
|
|
4338
4396
|
o.layout.desktop = {
|
|
4339
4397
|
...o.layout.desktop,
|
|
@@ -4345,7 +4403,7 @@ function An({ client: e, i18n: n }) {
|
|
|
4345
4403
|
canvas: a.id,
|
|
4346
4404
|
ids: [o.id],
|
|
4347
4405
|
active: o.id
|
|
4348
|
-
},
|
|
4406
|
+
}, N();
|
|
4349
4407
|
return;
|
|
4350
4408
|
}
|
|
4351
4409
|
t && (o.layout.desktop = {
|
|
@@ -4357,9 +4415,9 @@ function An({ client: e, i18n: n }) {
|
|
|
4357
4415
|
canvas: a.id,
|
|
4358
4416
|
ids: [o.id],
|
|
4359
4417
|
active: o.id
|
|
4360
|
-
},
|
|
4418
|
+
}, N();
|
|
4361
4419
|
}
|
|
4362
|
-
function
|
|
4420
|
+
function he() {
|
|
4363
4421
|
let e = i.selection, t = e.kind === "elements" ? R(i.draft, e.canvas) : void 0, n = t?.elements.filter((t) => e.kind === "elements" && e.ids.includes(t.id)) ?? [];
|
|
4364
4422
|
if (!t || n.length === 0 || n.some((e) => e.type === "box" || e.children)) return;
|
|
4365
4423
|
let r = n.map((e) => e.layout.desktop), a = Math.min(...r.map((e) => e.x)), o = Math.min(...r.map((e) => e.y)), s = Math.max(...r.map((e) => e.x + e.w)), c = Math.max(...r.map((e) => e.y + e.h)), l = s - a > 60 && c - o < 200, u = [...n].sort((e, t) => e.layout.desktop.y - t.layout.desktop.y || e.layout.desktop.x - t.layout.desktop.x), d = {
|
|
@@ -4400,9 +4458,9 @@ function An({ client: e, i18n: n }) {
|
|
|
4400
4458
|
canvas: t.id,
|
|
4401
4459
|
ids: [d.id],
|
|
4402
4460
|
active: d.id
|
|
4403
|
-
},
|
|
4461
|
+
}, N();
|
|
4404
4462
|
}
|
|
4405
|
-
function
|
|
4463
|
+
function ge() {
|
|
4406
4464
|
let e = i.selection, t = e.kind === "elements" ? R(i.draft, e.canvas) : void 0, n = t?.elements.find((t) => e.kind === "elements" && t.id === e.active && t.type === "box");
|
|
4407
4465
|
if (!t || !n || !n.children || n.children.length === 0) return;
|
|
4408
4466
|
let r = n.layout.desktop, a = n.children.map((e, t) => ({
|
|
@@ -4425,9 +4483,9 @@ function An({ client: e, i18n: n }) {
|
|
|
4425
4483
|
canvas: t.id,
|
|
4426
4484
|
ids: a.map((e) => e.id),
|
|
4427
4485
|
active: o.id
|
|
4428
|
-
}),
|
|
4486
|
+
}), N();
|
|
4429
4487
|
}
|
|
4430
|
-
function
|
|
4488
|
+
function _e() {
|
|
4431
4489
|
let e = i.selection;
|
|
4432
4490
|
if (e.kind !== "elements") return;
|
|
4433
4491
|
let t = R(i.draft, e.canvas);
|
|
@@ -4439,14 +4497,14 @@ function An({ client: e, i18n: n }) {
|
|
|
4439
4497
|
} : e), i.selection = {
|
|
4440
4498
|
kind: "canvas",
|
|
4441
4499
|
canvas: t.id
|
|
4442
|
-
},
|
|
4500
|
+
}, N();
|
|
4443
4501
|
}
|
|
4444
4502
|
}
|
|
4445
|
-
function
|
|
4503
|
+
function ve() {
|
|
4446
4504
|
let e = i.selection, t = e.kind === "elements" ? R(i.draft, e.canvas) : void 0;
|
|
4447
|
-
t &&
|
|
4505
|
+
t && _.value.length !== 0 && ye(t, _.value);
|
|
4448
4506
|
}
|
|
4449
|
-
function
|
|
4507
|
+
function ye(e, t) {
|
|
4450
4508
|
let n = /* @__PURE__ */ new Map(), r = Math.max(0, ...e.elements.map((e) => e.z)), a = t.map((e, t) => {
|
|
4451
4509
|
let i = gt(e), a = i.group ? n.get(i.group) ?? n.set(i.group, z("group")).get(i.group) : null;
|
|
4452
4510
|
return {
|
|
@@ -4460,44 +4518,44 @@ function An({ client: e, i18n: n }) {
|
|
|
4460
4518
|
canvas: e.id,
|
|
4461
4519
|
ids: a.map((e) => e.id),
|
|
4462
4520
|
active: a[0].id
|
|
4463
|
-
},
|
|
4521
|
+
}, N();
|
|
4464
4522
|
}
|
|
4465
|
-
function
|
|
4466
|
-
let e =
|
|
4523
|
+
function be() {
|
|
4524
|
+
let e = _.value;
|
|
4467
4525
|
if (e.length !== 0) try {
|
|
4468
|
-
window.localStorage.setItem(
|
|
4526
|
+
window.localStorage.setItem(Fn, JSON.stringify(e)), S(e.length === 1 ? r("toast.copied") : r("toast.copiedMany", { n: e.length }));
|
|
4469
4527
|
} catch {
|
|
4470
|
-
|
|
4528
|
+
S(r("toast.copyFailed"), "error");
|
|
4471
4529
|
}
|
|
4472
4530
|
}
|
|
4473
|
-
function
|
|
4474
|
-
let e =
|
|
4531
|
+
function xe() {
|
|
4532
|
+
let e = g.value, t = [];
|
|
4475
4533
|
try {
|
|
4476
|
-
let e = JSON.parse(window.localStorage.getItem(
|
|
4477
|
-
t = Array.isArray(e) ? e.filter((e) =>
|
|
4534
|
+
let e = JSON.parse(window.localStorage.getItem(Fn) ?? "[]");
|
|
4535
|
+
t = Array.isArray(e) ? e.filter((e) => Bn(e, d.value)) : [];
|
|
4478
4536
|
} catch {
|
|
4479
4537
|
t = [];
|
|
4480
4538
|
}
|
|
4481
|
-
e && t.length !== 0 && (
|
|
4539
|
+
e && t.length !== 0 && (ye(e, t), S(r("toast.pasted")));
|
|
4482
4540
|
}
|
|
4483
|
-
function
|
|
4484
|
-
let t =
|
|
4541
|
+
function Se(e) {
|
|
4542
|
+
let t = _.value, n = g.value;
|
|
4485
4543
|
if (t.length === 0 || !n) return;
|
|
4486
4544
|
let r = new Set(t.map((e) => e.id)), i = n.elements.filter((e) => !r.has(e.id)).map((e) => e.z), a = [...t].sort((e, t) => e.z - t.z);
|
|
4487
4545
|
a.forEach((t, n) => {
|
|
4488
4546
|
t.z = e === "front" ? At(i) + n : jt(i) - (a.length - 1 - n);
|
|
4489
|
-
}),
|
|
4547
|
+
}), N();
|
|
4490
4548
|
}
|
|
4491
|
-
function
|
|
4492
|
-
let t =
|
|
4493
|
-
t.length !== 0 && n && (t.length === 1 ? pt(t[0], i.device, Dt(ft(t[0], i.device), e, mt(n, i.device))) : Ot(t.map((e) => ft(e, i.device)), e).forEach((e, n) => pt(t[n], i.device, e)),
|
|
4549
|
+
function Ce(e) {
|
|
4550
|
+
let t = _.value, n = g.value;
|
|
4551
|
+
t.length !== 0 && n && (t.length === 1 ? pt(t[0], i.device, Dt(ft(t[0], i.device), e, mt(n, i.device))) : Ot(t.map((e) => ft(e, i.device)), e).forEach((e, n) => pt(t[n], i.device, e)), N());
|
|
4494
4552
|
}
|
|
4495
|
-
function
|
|
4496
|
-
let t =
|
|
4497
|
-
kt(t.map((e) => ft(e, i.device)), e).forEach((e, n) => pt(t[n], i.device, e)),
|
|
4553
|
+
function we(e) {
|
|
4554
|
+
let t = _.value;
|
|
4555
|
+
kt(t.map((e) => ft(e, i.device)), e).forEach((e, n) => pt(t[n], i.device, e)), N();
|
|
4498
4556
|
}
|
|
4499
|
-
function
|
|
4500
|
-
let e =
|
|
4557
|
+
function Te() {
|
|
4558
|
+
let e = _.value, t = v.value ?? e[0] ?? null;
|
|
4501
4559
|
if (!t || e.length < 2) return t;
|
|
4502
4560
|
let n = (n) => new Proxy(t[n], {
|
|
4503
4561
|
set(t, r, i) {
|
|
@@ -4514,21 +4572,21 @@ function An({ client: e, i18n: n }) {
|
|
|
4514
4572
|
}
|
|
4515
4573
|
});
|
|
4516
4574
|
}
|
|
4517
|
-
function
|
|
4575
|
+
function Ee() {
|
|
4518
4576
|
let e = z("group");
|
|
4519
|
-
|
|
4577
|
+
_.value.forEach((t) => t.group = e), N();
|
|
4520
4578
|
}
|
|
4521
|
-
function
|
|
4522
|
-
|
|
4579
|
+
function De() {
|
|
4580
|
+
_.value.forEach((e) => e.group = null), N();
|
|
4523
4581
|
}
|
|
4524
|
-
function
|
|
4525
|
-
let e =
|
|
4526
|
-
e.forEach((e) => e.locked = t),
|
|
4582
|
+
function Oe() {
|
|
4583
|
+
let e = _.value, t = e.some((e) => !e.locked);
|
|
4584
|
+
e.forEach((e) => e.locked = t), N();
|
|
4527
4585
|
}
|
|
4528
|
-
function
|
|
4529
|
-
let n =
|
|
4586
|
+
function ke(e, t) {
|
|
4587
|
+
let n = g.value;
|
|
4530
4588
|
if (!n || i.device === "mobile" && ht(n)) return;
|
|
4531
|
-
let r =
|
|
4589
|
+
let r = _.value.filter((e) => !e.locked);
|
|
4532
4590
|
for (let n of r) {
|
|
4533
4591
|
let r = ft(n, i.device);
|
|
4534
4592
|
pt(n, i.device, St({
|
|
@@ -4537,33 +4595,33 @@ function An({ client: e, i18n: n }) {
|
|
|
4537
4595
|
y: r.y + t
|
|
4538
4596
|
}));
|
|
4539
4597
|
}
|
|
4540
|
-
r.length > 0 &&
|
|
4598
|
+
r.length > 0 && N();
|
|
4541
4599
|
}
|
|
4542
|
-
function
|
|
4543
|
-
let t =
|
|
4600
|
+
function Ae(e) {
|
|
4601
|
+
let t = g.value;
|
|
4544
4602
|
for (let { id: n, box: r } of e) {
|
|
4545
4603
|
let e = t ? ie(t.elements).find((e) => e.id === n) : void 0;
|
|
4546
4604
|
e && pt(e, i.device, r);
|
|
4547
4605
|
}
|
|
4548
|
-
|
|
4606
|
+
N();
|
|
4549
4607
|
}
|
|
4550
|
-
function
|
|
4608
|
+
function je(e = _t(), t) {
|
|
4551
4609
|
let n = t === void 0 ? -1 : i.draft.sections.findIndex((e) => e.id === t);
|
|
4552
4610
|
n === -1 ? i.draft.sections.push(e) : i.draft.sections.splice(n + 1, 0, e), i.view = { kind: "page" }, i.selection = {
|
|
4553
4611
|
kind: "canvas",
|
|
4554
4612
|
canvas: e.id
|
|
4555
|
-
},
|
|
4613
|
+
}, N();
|
|
4556
4614
|
}
|
|
4557
|
-
function
|
|
4558
|
-
let t =
|
|
4615
|
+
function Me(e) {
|
|
4616
|
+
let t = An(e);
|
|
4559
4617
|
i.draft.sections = t, i.selection = {
|
|
4560
4618
|
kind: "canvas",
|
|
4561
4619
|
canvas: t[0].id
|
|
4562
|
-
},
|
|
4620
|
+
}, N();
|
|
4563
4621
|
}
|
|
4564
|
-
function
|
|
4622
|
+
function Ne(e) {
|
|
4565
4623
|
let t = i.draft.sections.find((t) => t.id === e);
|
|
4566
|
-
t &&
|
|
4624
|
+
t && je({
|
|
4567
4625
|
...structuredClone(E(t)),
|
|
4568
4626
|
id: z("section"),
|
|
4569
4627
|
elements: structuredClone(E(t.elements)).map((e) => ({
|
|
@@ -4572,20 +4630,20 @@ function An({ client: e, i18n: n }) {
|
|
|
4572
4630
|
}))
|
|
4573
4631
|
}, e);
|
|
4574
4632
|
}
|
|
4575
|
-
function
|
|
4633
|
+
function Pe(e) {
|
|
4576
4634
|
i.draft.sections.length <= 1 || (i.draft.sections = i.draft.sections.filter((t) => t.id !== e), i.selection = {
|
|
4577
4635
|
kind: "canvas",
|
|
4578
4636
|
canvas: i.draft.sections[0].id
|
|
4579
|
-
},
|
|
4637
|
+
}, N());
|
|
4580
4638
|
}
|
|
4581
|
-
function
|
|
4639
|
+
function Fe(e, t) {
|
|
4582
4640
|
let n = i.draft.sections, r = e + t, [a, o] = [n[e], n[r]];
|
|
4583
|
-
a && o && (n.splice(e, 1, o), n.splice(r, 1, a),
|
|
4641
|
+
a && o && (n.splice(e, 1, o), n.splice(r, 1, a), N());
|
|
4584
4642
|
}
|
|
4585
|
-
function
|
|
4643
|
+
function L(e, t) {
|
|
4586
4644
|
let n = i.draft.sections, r = n.indexOf(e);
|
|
4587
4645
|
if (t === "alone") {
|
|
4588
|
-
e.group = null,
|
|
4646
|
+
e.group = null, N();
|
|
4589
4647
|
return;
|
|
4590
4648
|
}
|
|
4591
4649
|
let a = n[r - 1], o = a?.group?.id || z("group");
|
|
@@ -4603,23 +4661,23 @@ function An({ client: e, i18n: n }) {
|
|
|
4603
4661
|
id: o,
|
|
4604
4662
|
type: t
|
|
4605
4663
|
};
|
|
4606
|
-
}),
|
|
4664
|
+
}), N();
|
|
4607
4665
|
}
|
|
4608
|
-
function
|
|
4609
|
-
e.height.desktop = Math.min(ut(e) ? 2e3 : 3e3, Mt(e.elements.map((e) => e.layout.desktop))),
|
|
4666
|
+
function Ie(e) {
|
|
4667
|
+
e.height.desktop = Math.min(ut(e) ? 2e3 : 3e3, Mt(e.elements.map((e) => e.layout.desktop))), N();
|
|
4610
4668
|
}
|
|
4611
|
-
function
|
|
4612
|
-
let t = ut(e) ? e.width :
|
|
4669
|
+
function Le(e) {
|
|
4670
|
+
let t = ut(e) ? e.width : p.value.max_width, { boxes: n, height: i } = Nt(e.elements.map((e) => ({
|
|
4613
4671
|
desktop: e.layout.desktop,
|
|
4614
4672
|
text: e.type === "text"
|
|
4615
4673
|
})), t, 390);
|
|
4616
|
-
e.elements.forEach((e, t) => e.layout.mobile = n[t] ?? null), e.height.mobile = Math.min(ut(e) ? 2400 : 4e3, i),
|
|
4674
|
+
e.elements.forEach((e, t) => e.layout.mobile = n[t] ?? null), e.height.mobile = Math.min(ut(e) ? 2400 : 4e3, i), N(), S(r("toast.mobileGenerated"));
|
|
4617
4675
|
}
|
|
4618
|
-
function
|
|
4676
|
+
function Re() {
|
|
4619
4677
|
let e = yt(r("modals.defaultTitle"));
|
|
4620
|
-
i.draft.modals = [...i.draft.modals ?? [], e],
|
|
4678
|
+
i.draft.modals = [...i.draft.modals ?? [], e], N(), ze(e.id);
|
|
4621
4679
|
}
|
|
4622
|
-
function
|
|
4680
|
+
function ze(e) {
|
|
4623
4681
|
i.view = e ? {
|
|
4624
4682
|
kind: "modal",
|
|
4625
4683
|
id: e
|
|
@@ -4631,64 +4689,68 @@ function An({ client: e, i18n: n }) {
|
|
|
4631
4689
|
canvas: i.draft.sections[0].id
|
|
4632
4690
|
} : { kind: "none" };
|
|
4633
4691
|
}
|
|
4634
|
-
function
|
|
4635
|
-
i.draft.modals = (i.draft.modals ?? []).filter((t) => t.id !== e), i.view.kind === "modal" && i.view.id === e &&
|
|
4692
|
+
function Be(e) {
|
|
4693
|
+
i.draft.modals = (i.draft.modals ?? []).filter((t) => t.id !== e), i.view.kind === "modal" && i.view.id === e && ze(null), N();
|
|
4636
4694
|
}
|
|
4637
|
-
let
|
|
4638
|
-
async function
|
|
4639
|
-
await
|
|
4695
|
+
let Ve = () => ne(a.undo()), He = () => ne(a.redo());
|
|
4696
|
+
async function Ue() {
|
|
4697
|
+
await u.flush();
|
|
4640
4698
|
}
|
|
4641
|
-
|
|
4699
|
+
function We() {
|
|
4700
|
+
let e = c();
|
|
4701
|
+
return u.state.value.kind !== "saved" && e.page !== null && !Xt(JSON.stringify(l(e)));
|
|
4702
|
+
}
|
|
4703
|
+
async function Ge() {
|
|
4642
4704
|
let t = i.page;
|
|
4643
4705
|
if (t && !i.publishing) {
|
|
4644
4706
|
i.publishing = !0;
|
|
4645
4707
|
try {
|
|
4646
|
-
if (!await
|
|
4647
|
-
|
|
4708
|
+
if (!await u.flush()) {
|
|
4709
|
+
S(r("publish.failed", { message: j() }), "error");
|
|
4648
4710
|
return;
|
|
4649
4711
|
}
|
|
4650
|
-
let n = await
|
|
4712
|
+
let n = await u.exclusive(async () => {
|
|
4651
4713
|
let n = await e("POST /pages/:id/publish", { id: t.id }, { revision: i.revision });
|
|
4652
4714
|
return n.ok && (t.publishedAt = n.value.publishedAt, t.versions = n.value.versions), n;
|
|
4653
4715
|
});
|
|
4654
4716
|
if (!n.ok) {
|
|
4655
|
-
n.failure.kind === "conflict" ? i.dialog = "conflict" :
|
|
4717
|
+
n.failure.kind === "conflict" ? i.dialog = "conflict" : S(r("publish.failed", { message: T(n.failure) }), "error");
|
|
4656
4718
|
return;
|
|
4657
4719
|
}
|
|
4658
|
-
|
|
4720
|
+
A(), S(r("publish.done"));
|
|
4659
4721
|
} finally {
|
|
4660
4722
|
i.publishing = !1;
|
|
4661
4723
|
}
|
|
4662
4724
|
}
|
|
4663
4725
|
}
|
|
4664
|
-
async function
|
|
4726
|
+
async function Ke(t) {
|
|
4665
4727
|
let n = i.page;
|
|
4666
4728
|
if (!n) return;
|
|
4667
|
-
let a = await
|
|
4729
|
+
let a = await u.exclusive(async () => {
|
|
4668
4730
|
let r = await e("POST /pages/:id/versions/:version/restore", {
|
|
4669
4731
|
id: n.id,
|
|
4670
4732
|
version: t
|
|
4671
4733
|
});
|
|
4672
|
-
if (!r.ok) return
|
|
4734
|
+
if (!r.ok) return T(r.failure);
|
|
4673
4735
|
try {
|
|
4674
|
-
i.draft = B(ae(r.value.draft,
|
|
4736
|
+
i.draft = B(ae(r.value.draft, d.value));
|
|
4675
4737
|
} catch (e) {
|
|
4676
|
-
if (e instanceof F) return
|
|
4738
|
+
if (e instanceof F) return Rn(e.issues[0]);
|
|
4677
4739
|
throw e;
|
|
4678
4740
|
}
|
|
4679
|
-
return i.revision = r.value.revision, n.versions = r.value.versions,
|
|
4741
|
+
return i.revision = r.value.revision, n.versions = r.value.versions, u.reset(), null;
|
|
4680
4742
|
});
|
|
4681
4743
|
if (a !== null) {
|
|
4682
|
-
|
|
4744
|
+
S(r("toast.failed", { message: a }), "error");
|
|
4683
4745
|
return;
|
|
4684
4746
|
}
|
|
4685
|
-
|
|
4747
|
+
N(), se(), i.dialog = null, S(r("versions.restored"));
|
|
4686
4748
|
}
|
|
4687
|
-
async function
|
|
4688
|
-
if (i.page && !await
|
|
4749
|
+
async function qe(t, n) {
|
|
4750
|
+
if (i.page && !await u.flush()) return [{
|
|
4689
4751
|
path: "title",
|
|
4690
4752
|
code: "type",
|
|
4691
|
-
message:
|
|
4753
|
+
message: j()
|
|
4692
4754
|
}];
|
|
4693
4755
|
let a = await e("POST /pages", {
|
|
4694
4756
|
title: t,
|
|
@@ -4699,16 +4761,16 @@ function An({ client: e, i18n: n }) {
|
|
|
4699
4761
|
slug: a.value.slug,
|
|
4700
4762
|
title: a.value.title,
|
|
4701
4763
|
publishedAt: a.value.publishedAt
|
|
4702
|
-
}],
|
|
4764
|
+
}], k(a.value), i.dialog = null, S(r("toast.pageCreated")), []) : a.failure.kind === "invalid" ? a.failure.issues : [{
|
|
4703
4765
|
path: "title",
|
|
4704
4766
|
code: "type",
|
|
4705
|
-
message:
|
|
4767
|
+
message: T(a.failure)
|
|
4706
4768
|
}];
|
|
4707
4769
|
}
|
|
4708
|
-
async function
|
|
4770
|
+
async function Je(t) {
|
|
4709
4771
|
let n = i.page;
|
|
4710
4772
|
if (!n) return [];
|
|
4711
|
-
let a = await
|
|
4773
|
+
let a = await u.exclusive(async () => {
|
|
4712
4774
|
let r = await e("PUT /pages/:id", { id: n.id }, {
|
|
4713
4775
|
baseRevision: i.revision,
|
|
4714
4776
|
title: n.title,
|
|
@@ -4716,28 +4778,28 @@ function An({ client: e, i18n: n }) {
|
|
|
4716
4778
|
});
|
|
4717
4779
|
return r.ok && (i.revision = r.value.revision, n.slug = t), r;
|
|
4718
4780
|
});
|
|
4719
|
-
return a.ok ? (
|
|
4781
|
+
return a.ok ? (A(), S(r("page.addressSaved")), []) : (a.failure.kind === "conflict" && (i.dialog = "conflict"), a.failure.kind === "invalid" ? a.failure.issues : [{
|
|
4720
4782
|
path: "slug",
|
|
4721
4783
|
code: "type",
|
|
4722
|
-
message:
|
|
4784
|
+
message: T(a.failure)
|
|
4723
4785
|
}]);
|
|
4724
4786
|
}
|
|
4725
|
-
async function
|
|
4787
|
+
async function Ye() {
|
|
4726
4788
|
let t = i.page;
|
|
4727
4789
|
if (!t) return;
|
|
4728
|
-
let n = await
|
|
4790
|
+
let n = await u.exclusive(async () => {
|
|
4729
4791
|
let n = await e("DELETE /pages/:id", { id: t.id });
|
|
4730
4792
|
return n.ok && (i.page = null), n;
|
|
4731
4793
|
});
|
|
4732
4794
|
if (!n.ok) {
|
|
4733
|
-
|
|
4795
|
+
S(r("toast.failed", { message: T(n.failure) }), "error");
|
|
4734
4796
|
return;
|
|
4735
4797
|
}
|
|
4736
|
-
i.workspace.pages = i.workspace.pages.filter((e) => e.id !== t.id),
|
|
4798
|
+
i.workspace.pages = i.workspace.pages.filter((e) => e.id !== t.id), S(r("page.deleted"));
|
|
4737
4799
|
let a = i.workspace.pages[0];
|
|
4738
|
-
a ? await
|
|
4800
|
+
a ? await O(a.id) : i.load = { kind: "empty" };
|
|
4739
4801
|
}
|
|
4740
|
-
async function
|
|
4802
|
+
async function Xe(t) {
|
|
4741
4803
|
let n = await e("PUT /site", t);
|
|
4742
4804
|
return n.ok ? (i.workspace = {
|
|
4743
4805
|
...n.value,
|
|
@@ -4745,28 +4807,28 @@ function An({ client: e, i18n: n }) {
|
|
|
4745
4807
|
}, []) : n.failure.kind === "invalid" ? n.failure.issues : [{
|
|
4746
4808
|
path: "",
|
|
4747
4809
|
code: "type",
|
|
4748
|
-
message:
|
|
4810
|
+
message: T(n.failure)
|
|
4749
4811
|
}];
|
|
4750
4812
|
}
|
|
4751
|
-
async function
|
|
4813
|
+
async function Ze(t) {
|
|
4752
4814
|
let n = new FormData();
|
|
4753
4815
|
n.append("file", t);
|
|
4754
4816
|
let a = await e("POST /assets", n);
|
|
4755
|
-
return a.ok ? (i.workspace.assets = [a.value, ...i.workspace.assets],
|
|
4817
|
+
return a.ok ? (i.workspace.assets = [a.value, ...i.workspace.assets], $e(), a.value) : (S(r("library.uploadFailed", { message: T(a.failure) }), "error"), null);
|
|
4756
4818
|
}
|
|
4757
|
-
async function
|
|
4819
|
+
async function Qe(t) {
|
|
4758
4820
|
let n = await e("DELETE /assets/:id", { id: t.id });
|
|
4759
4821
|
if (!n.ok) {
|
|
4760
|
-
|
|
4822
|
+
S(r("library.deleteFailed", { message: T(n.failure) }), "error");
|
|
4761
4823
|
return;
|
|
4762
4824
|
}
|
|
4763
|
-
i.workspace.assets = i.workspace.assets.filter((e) => e.id !== t.id),
|
|
4825
|
+
i.workspace.assets = i.workspace.assets.filter((e) => e.id !== t.id), $e();
|
|
4764
4826
|
}
|
|
4765
|
-
async function
|
|
4827
|
+
async function $e() {
|
|
4766
4828
|
let t = await e("GET /");
|
|
4767
4829
|
t.ok && (i.workspace.quota = t.value.quota);
|
|
4768
4830
|
}
|
|
4769
|
-
function
|
|
4831
|
+
function et(e) {
|
|
4770
4832
|
return t({
|
|
4771
4833
|
get: () => i.dialog === e,
|
|
4772
4834
|
set: (t) => {
|
|
@@ -4774,7 +4836,7 @@ function An({ client: e, i18n: n }) {
|
|
|
4774
4836
|
}
|
|
4775
4837
|
});
|
|
4776
4838
|
}
|
|
4777
|
-
function
|
|
4839
|
+
function tt(e = null) {
|
|
4778
4840
|
i.library = { onPick: e };
|
|
4779
4841
|
}
|
|
4780
4842
|
return {
|
|
@@ -4783,78 +4845,79 @@ function An({ client: e, i18n: n }) {
|
|
|
4783
4845
|
t: r,
|
|
4784
4846
|
client: e,
|
|
4785
4847
|
previews: s,
|
|
4786
|
-
saveState:
|
|
4787
|
-
catalog:
|
|
4788
|
-
site:
|
|
4789
|
-
theme:
|
|
4790
|
-
canvases:
|
|
4791
|
-
activeModal:
|
|
4792
|
-
currentCanvas:
|
|
4793
|
-
selectedElements:
|
|
4794
|
-
activeElement:
|
|
4795
|
-
frameWidth:
|
|
4796
|
-
canUndo:
|
|
4797
|
-
canRedo:
|
|
4798
|
-
kindOf: (e) =>
|
|
4799
|
-
notify:
|
|
4800
|
-
failureText:
|
|
4801
|
-
dismiss:
|
|
4802
|
-
load:
|
|
4803
|
-
openPage:
|
|
4804
|
-
reloadPage:
|
|
4805
|
-
commit:
|
|
4806
|
-
undo:
|
|
4807
|
-
redo:
|
|
4808
|
-
select:
|
|
4809
|
-
selectCanvas:
|
|
4810
|
-
clearSelection:
|
|
4811
|
-
addElement:
|
|
4812
|
-
groupIntoBox:
|
|
4813
|
-
ungroupBox:
|
|
4814
|
-
isInsideBox:
|
|
4815
|
-
removeSelected:
|
|
4816
|
-
duplicateSelected:
|
|
4817
|
-
copySelected:
|
|
4818
|
-
paste:
|
|
4819
|
-
layer:
|
|
4820
|
-
align:
|
|
4821
|
-
distributeSelected:
|
|
4822
|
-
sharedTarget:
|
|
4823
|
-
groupSelected:
|
|
4824
|
-
ungroupSelected:
|
|
4825
|
-
toggleLock:
|
|
4826
|
-
nudge:
|
|
4827
|
-
placeElements:
|
|
4828
|
-
addSection:
|
|
4829
|
-
duplicateSection:
|
|
4830
|
-
applyPageTemplate:
|
|
4831
|
-
removeSection:
|
|
4832
|
-
moveSection:
|
|
4833
|
-
setSectionGroup:
|
|
4834
|
-
fitCanvas:
|
|
4835
|
-
generateMobile:
|
|
4836
|
-
addModal:
|
|
4837
|
-
openModal:
|
|
4838
|
-
removeModal:
|
|
4839
|
-
saveNow:
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4848
|
+
saveState: u.state,
|
|
4849
|
+
catalog: d,
|
|
4850
|
+
site: f,
|
|
4851
|
+
theme: p,
|
|
4852
|
+
canvases: m,
|
|
4853
|
+
activeModal: h,
|
|
4854
|
+
currentCanvas: g,
|
|
4855
|
+
selectedElements: _,
|
|
4856
|
+
activeElement: v,
|
|
4857
|
+
frameWidth: b,
|
|
4858
|
+
canUndo: P,
|
|
4859
|
+
canRedo: re,
|
|
4860
|
+
kindOf: (e) => sn(e, d.value),
|
|
4861
|
+
notify: S,
|
|
4862
|
+
failureText: T,
|
|
4863
|
+
dismiss: C,
|
|
4864
|
+
load: D,
|
|
4865
|
+
openPage: ee,
|
|
4866
|
+
reloadPage: te,
|
|
4867
|
+
commit: N,
|
|
4868
|
+
undo: Ve,
|
|
4869
|
+
redo: He,
|
|
4870
|
+
select: I,
|
|
4871
|
+
selectCanvas: ce,
|
|
4872
|
+
clearSelection: le,
|
|
4873
|
+
addElement: me,
|
|
4874
|
+
groupIntoBox: he,
|
|
4875
|
+
ungroupBox: ge,
|
|
4876
|
+
isInsideBox: fe,
|
|
4877
|
+
removeSelected: _e,
|
|
4878
|
+
duplicateSelected: ve,
|
|
4879
|
+
copySelected: be,
|
|
4880
|
+
paste: xe,
|
|
4881
|
+
layer: Se,
|
|
4882
|
+
align: Ce,
|
|
4883
|
+
distributeSelected: we,
|
|
4884
|
+
sharedTarget: Te,
|
|
4885
|
+
groupSelected: Ee,
|
|
4886
|
+
ungroupSelected: De,
|
|
4887
|
+
toggleLock: Oe,
|
|
4888
|
+
nudge: ke,
|
|
4889
|
+
placeElements: Ae,
|
|
4890
|
+
addSection: je,
|
|
4891
|
+
duplicateSection: Ne,
|
|
4892
|
+
applyPageTemplate: Me,
|
|
4893
|
+
removeSection: Pe,
|
|
4894
|
+
moveSection: Fe,
|
|
4895
|
+
setSectionGroup: L,
|
|
4896
|
+
fitCanvas: Ie,
|
|
4897
|
+
generateMobile: Le,
|
|
4898
|
+
addModal: Re,
|
|
4899
|
+
openModal: ze,
|
|
4900
|
+
removeModal: Be,
|
|
4901
|
+
saveNow: Ue,
|
|
4902
|
+
leavingLosesEdits: We,
|
|
4903
|
+
publish: Ge,
|
|
4904
|
+
restoreVersion: Ke,
|
|
4905
|
+
createPage: qe,
|
|
4906
|
+
renamePage: Je,
|
|
4907
|
+
deletePage: Ye,
|
|
4908
|
+
updateSite: Xe,
|
|
4909
|
+
uploadAsset: Ze,
|
|
4910
|
+
deleteAsset: Qe,
|
|
4911
|
+
openLibrary: tt,
|
|
4912
|
+
dialogModel: et,
|
|
4913
|
+
dispose: () => u.dispose()
|
|
4851
4914
|
};
|
|
4852
4915
|
}
|
|
4853
|
-
var
|
|
4916
|
+
var Rn = (e) => e ? `${e.path}: ${e.message}` : "", zn = (e) => ({
|
|
4854
4917
|
title: e.title.trim() === "" ? null : e.title,
|
|
4855
4918
|
description: e.description.trim() === "" ? null : e.description
|
|
4856
4919
|
});
|
|
4857
|
-
function
|
|
4920
|
+
function Bn(e, t) {
|
|
4858
4921
|
try {
|
|
4859
4922
|
return ae({ sections: [{
|
|
4860
4923
|
..._t(),
|
|
@@ -4867,19 +4930,19 @@ function Nn(e, t) {
|
|
|
4867
4930
|
}
|
|
4868
4931
|
//#endregion
|
|
4869
4932
|
//#region src/state/shortcuts.ts
|
|
4870
|
-
var
|
|
4933
|
+
var Vn = /* @__PURE__ */ new Set([
|
|
4871
4934
|
"INPUT",
|
|
4872
4935
|
"TEXTAREA",
|
|
4873
4936
|
"SELECT"
|
|
4874
4937
|
]);
|
|
4875
|
-
function
|
|
4938
|
+
function Hn(e) {
|
|
4876
4939
|
let t = e.composedPath()[0];
|
|
4877
4940
|
if (!t || typeof t.tagName != "string") return !1;
|
|
4878
4941
|
let n = t;
|
|
4879
|
-
return
|
|
4942
|
+
return Vn.has(n.tagName) || n.isContentEditable;
|
|
4880
4943
|
}
|
|
4881
|
-
function
|
|
4882
|
-
if (
|
|
4944
|
+
function Un(e, t) {
|
|
4945
|
+
if (Hn(t) || e.state.dialog !== null || e.state.library !== null || e.state.previewing) return;
|
|
4883
4946
|
let n = e.state.selection.kind === "elements", r = t.metaKey || t.ctrlKey, i = t.key.toLowerCase();
|
|
4884
4947
|
if (!r) switch (t.key) {
|
|
4885
4948
|
case "Escape":
|
|
@@ -4925,10 +4988,10 @@ function In(e, t) {
|
|
|
4925
4988
|
}
|
|
4926
4989
|
//#endregion
|
|
4927
4990
|
//#region ../core/dist/lienzo.css?raw
|
|
4928
|
-
var Ln = ".lz-page,.lz-page *{box-sizing:border-box}\nhtml:has(.lz-page){scroll-behavior:smooth}\n@media (prefers-reduced-motion:reduce){html:has(.lz-page){scroll-behavior:auto}}\n.lz-page{margin:0;container:lz/inline-size;background:var(--background);color:var(--text);font-family:var(--font-body)}\n.lz-notice{position:fixed;z-index:99;top:16px;left:50%;transform:translateX(-50%);background:var(--primary);color:var(--background);padding:12px 20px;border-radius:var(--radius);box-shadow:0 12px 32px rgba(15,23,42,.2)}\n.lz-section{position:relative;width:100%;scroll-margin-top:calc(var(--sticky,0) * 1px);background:var(--sbg,transparent)}\n.lz-section[data-fill=linear]{background:linear-gradient(calc(var(--sga,135) * 1deg),var(--sg1),var(--sg2))}\n.lz-section[data-fill=radial]{background:radial-gradient(circle at 50% 50%,var(--sg1),var(--sg2))}\n.lz-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}\n.lz-bg::before{content:'';position:absolute;inset:0;background:var(--background)}\n.lz-parallax{position:absolute;inset:0;clip-path:inset(0)}\n.lz-parallax>.lz-bg{position:fixed}\n.lz-section[data-wide]>.lz-frame{max-width:none}\n.lz-overlay{position:absolute;inset:0;background:rgb(0 0 0 / calc(var(--ov) * 100%))}\n.lz-frame{position:relative;height:calc(var(--fh) * var(--u))}\n.lz-frame[data-flow]{height:auto;min-height:calc(var(--fh) * var(--u));display:flex;gap:calc(var(--fg,24) * var(--u));padding:calc(56 * var(--u)) calc(24 * var(--u));box-sizing:border-box}\n.lz-frame[data-flow=column]{flex-direction:column}\n.lz-frame[data-flow=row]{flex-direction:row;flex-wrap:wrap;align-items:flex-start}\n.lz-frame[data-flow=column][data-flow-align=center]{align-items:center}\n.lz-frame[data-flow=column][data-flow-align=end]{align-items:flex-end}\n.lz-frame[data-flow=column][data-flow-align=between]{justify-content:space-between}\n.lz-frame[data-flow=row][data-flow-align=center]{justify-content:center}\n.lz-frame[data-flow=row][data-flow-align=end]{justify-content:flex-end}\n.lz-frame[data-flow=row][data-flow-align=between]{justify-content:space-between}\n.lz-frame[data-flow] .lz-el{position:static;order:var(--ord);height:auto;max-width:100%}\n.lz-frame[data-flow=column] .lz-el{width:calc(var(--w) * 1%)}\n.lz-frame[data-flow=row] .lz-el{width:calc(var(--w) * 1%);flex:0 1 auto}\n.lz-section>.lz-frame{margin:0 auto;max-width:var(--max-width);container-type:inline-size;--u:calc(min(100cqw,var(--ref) * 1px) / var(--ref))}\n.lz-el:is(h1,h2,h3,h4,p){white-space:pre-line}\n.lz-el{position:absolute;margin:0;display:block;overflow-wrap:break-word;left:calc(var(--x) * 1%);top:calc(var(--y) * var(--u));width:calc(var(--w) * 1%);height:calc(var(--h) * var(--u));z-index:var(--z);--_border:calc(var(--bw) * var(--u)) solid var(--bc,var(--text));--_fill:color-mix(in srgb,var(--bg) calc(var(--ba,1) * 100%),transparent);--_rot:rotate(calc(var(--rot) * 1deg));--_blur:blur(calc(var(--blur) * var(--u)));--_p:calc(var(--p) * var(--u));color:var(--c);background:var(--_fill);-webkit-backdrop-filter:var(--_blur);backdrop-filter:var(--_blur);font-family:var(--font-body);font-size:calc(var(--fs) * var(--u));font-weight:var(--fw);line-height:var(--lh);letter-spacing:calc(var(--ls,0) * 1em);border:var(--_border,0);border-radius:calc(var(--r) * var(--u));padding:var(--_p,0);opacity:var(--op);transform:var(--_rot,) var(--_flip,) var(--_anim,)}\n.lz-el[data-font=heading]{font-family:var(--font-heading)}\n.lz-el[data-case=upper]{text-transform:uppercase}\n.lz-el[data-case=lower]{text-transform:lowercase}\n.lz-el[data-case=title]{text-transform:capitalize}\n.lz-el[data-text=outline]{-webkit-text-stroke:calc(1.5 * var(--u)) currentColor;-webkit-text-fill-color:transparent}\n.lz-el[data-text=glow]{text-shadow:0 0 calc(12 * var(--u)) color-mix(in srgb,currentColor 70%,transparent),0 0 calc(44 * var(--u)) color-mix(in srgb,currentColor 45%,transparent)}\n.lz-el[data-auto]{height:auto}\n.lz-el[data-align=left]{text-align:left}\n.lz-el[data-align=center]{text-align:center}\n.lz-el[data-align=right]{text-align:right}\n.lz-el[data-fill=linear]{background:linear-gradient(calc(var(--ga,135) * 1deg),color-mix(in srgb,var(--g1) calc(var(--ba,1) * 100%),transparent),color-mix(in srgb,var(--g2) calc(var(--ba,1) * 100%),transparent))}\n.lz-el[data-fill=radial]{background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--g1) calc(var(--ba,1) * 100%),transparent),color-mix(in srgb,var(--g2) calc(var(--ba,1) * 100%),transparent))}\n.lz-el[data-shadow=sm]{box-shadow:0 1px 2px rgba(15,23,42,.08)}\n.lz-el[data-shadow=md]{box-shadow:0 8px 24px rgba(15,23,42,.12)}\n.lz-el[data-shadow=lg]{box-shadow:0 24px 48px rgba(15,23,42,.18)}\n.lz-el[data-finish=glass]{backdrop-filter:blur(calc(18 * var(--u))) saturate(150%);-webkit-backdrop-filter:blur(calc(18 * var(--u))) saturate(150%);border:calc(1 * var(--u)) solid rgb(255 255 255 / .35);box-shadow:0 calc(14 * var(--u)) calc(40 * var(--u)) rgb(15 23 42 / .14)}\n.lz-el[data-finish=soft]{box-shadow:calc(-8 * var(--u)) calc(-8 * var(--u)) calc(18 * var(--u)) rgb(255 255 255 / .75),calc(10 * var(--u)) calc(12 * var(--u)) calc(26 * var(--u)) rgb(15 23 42 / .13)}\n.lz-el[data-finish=pressed]{box-shadow:inset calc(6 * var(--u)) calc(6 * var(--u)) calc(14 * var(--u)) rgb(15 23 42 / .14),inset calc(-6 * var(--u)) calc(-6 * var(--u)) calc(14 * var(--u)) rgb(255 255 255 / .8)}\n.lz-el[data-shadow=custom]{box-shadow:calc(var(--shx,0) * var(--u)) calc(var(--shy,12) * var(--u)) calc(var(--shb,32) * var(--u)) calc(var(--shs,0) * var(--u)) color-mix(in srgb,var(--shc,var(--secondary)) calc(var(--sha,.2) * 100%),transparent)}\n.lz-el[data-clip]:not([data-overflow]),.lz-el[data-overflow=hidden]{overflow:hidden}\n.lz-el[data-pin]{position:fixed;z-index:calc(var(--z) + 500);left:calc(50% - var(--ref) * var(--u) / 2 + var(--x) * var(--ref) * var(--u) / 100);top:calc(var(--y) * var(--u));width:calc(var(--w) * var(--ref) * var(--u) / 100)}\n.lz-el[data-overflow=scroll-x]{overflow-x:auto;overflow-y:hidden}\n.lz-el[data-overflow=scroll-y]{overflow-y:auto;overflow-x:hidden}\n.lz-el[data-flip-x],.lz-el[data-flip-y]{--_flip:scale(var(--_fx,1),var(--_fy,1))}\n.lz-el[data-flip-x]{--_fx:-1}\n.lz-el[data-flip-y]{--_fy:-1}\n@container lz not (max-width:640px){.lz-el[data-visible=mobile]{display:none}}\n.lz-accent{color:var(--ac)}\n@media (prefers-reduced-motion:no-preference){.lz-el[data-anim]{opacity:0;transition:opacity calc(var(--adur,.7) * 1s) ease calc(var(--ad,0) * 1s),transform calc(var(--adur,.7) * 1s) cubic-bezier(.22,.61,.36,1) calc(var(--ad,0) * 1s)}.lz-el[data-anim=up]{--_anim:translateY(28px)}.lz-el[data-anim=down]{--_anim:translateY(-28px)}.lz-el[data-anim=left]{--_anim:translateX(-32px)}.lz-el[data-anim=right]{--_anim:translateX(32px)}.lz-el[data-anim=zoom]{--_anim:scale(.94)}.lz-el[data-anim=blur]{filter:blur(calc(10 * var(--u)));transition-property:opacity,transform,filter}.lz-el[data-anim=reveal]{clip-path:inset(0 100% 0 0);transition-property:opacity,transform,clip-path}.lz-el[data-anim=blur].is-in{filter:none}.lz-el[data-anim=reveal].is-in{clip-path:inset(0)}.lz-el[data-anim].is-in{opacity:var(--op,1);--_anim:initial}}\n@media (scripting:none){.lz-el[data-anim]{opacity:var(--op,1)!important;--_anim:initial!important}}\n.lz-el[data-hover]{transition:transform .25s ease,box-shadow .25s ease,opacity .25s ease}\n@media (hover:hover){.lz-el[data-hover=lift]:hover{transform:var(--_rot,) var(--_flip,) translateY(calc(-6 * var(--u)));box-shadow:0 18px 40px rgba(15,23,42,.18)}.lz-el[data-hover=grow]:hover{transform:var(--_rot,) var(--_flip,) scale(1.04)}.lz-el[data-hover=fade]:hover{opacity:.82}.lz-el[data-hover=sink]:hover{transform:var(--_rot,) var(--_flip,) translateY(calc(4 * var(--u))) scale(.98)}.lz-el[data-hover=tilt]:hover{transform:var(--_rot,) var(--_flip,) perspective(600px) rotateX(6deg) rotateY(-6deg)}.lz-el[data-hover=glow]:hover{box-shadow:0 0 0 calc(2 * var(--u)) color-mix(in srgb,var(--primary) 55%,transparent),0 18px 44px color-mix(in srgb,var(--primary) 28%,transparent)}}\n@keyframes lz-rise{from{translate:0 7cqh}to{translate:0 -7cqh}}\n@keyframes lz-drift{from{translate:-4cqw 0}to{translate:4cqw 0}}\n@keyframes lz-zoom{from{scale:1}to{scale:1.12}}\n@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){.lz-el[data-scroll]{animation:linear both;animation-timeline:view();animation-range:entry 0% exit 100%}.lz-el[data-scroll=rise]{animation-name:lz-rise}.lz-el[data-scroll=drift]{animation-name:lz-drift}.lz-el[data-scroll=zoom]{animation-name:lz-zoom}}}\nimg.lz-el{object-fit:cover}\n.lz-gallery{display:grid;gap:calc(14 * var(--u));overflow:auto}\n.lz-gallery[data-layout=grid]{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));align-content:start}\n.lz-gallery[data-cols=\"1\"]{--cols:1}\n.lz-gallery[data-cols=\"2\"]{--cols:2}\n.lz-gallery[data-cols=\"3\"]{--cols:3}\n.lz-gallery[data-cols=\"4\"]{--cols:4}\n.lz-gallery[data-cols=\"5\"]{--cols:5}\n.lz-gallery[data-cols=\"6\"]{--cols:6}\n.lz-box{display:flex;gap:calc(var(--fg,16) * var(--u));align-items:flex-start;height:auto;min-height:calc(var(--h) * var(--u))}\n.lz-box[data-flow=column]{flex-direction:column}\n.lz-box[data-flow=row]{flex-direction:row;flex-wrap:wrap}\n.lz-box[data-flow=column][data-flow-align=center]{align-items:center}\n.lz-box[data-flow=column][data-flow-align=end]{align-items:flex-end}\n.lz-box[data-flow=column][data-flow-align=between]{justify-content:space-between}\n.lz-box[data-flow=row][data-flow-align=center]{justify-content:center}\n.lz-box[data-flow=row][data-flow-align=end]{justify-content:flex-end}\n.lz-box[data-flow=row][data-flow-align=between]{justify-content:space-between}\n.lz-box>.lz-el{position:static;height:auto;min-height:calc(var(--h) * var(--u));max-width:100%}\n.lz-box>.lz-el[data-auto]{min-height:0}\n.lz-box[data-flow=column]>.lz-el{width:calc(var(--w) * 1%)}\n.lz-box[data-flow=row]>.lz-el{width:calc(var(--w) * 1%);flex:0 1 auto}\n.lz-slider{position:relative;overflow:hidden}\n.lz-frame[data-flow] .lz-slider{height:calc(380 * var(--u))}\n.lz-slider-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;border-radius:inherit}\n.lz-slider-track::-webkit-scrollbar{display:none}\n.lz-slide{flex:0 0 100%;width:100%;height:100%;object-fit:cover;scroll-snap-align:center;border-radius:inherit}\n.lz-slider[data-fit=contain] .lz-slide{object-fit:contain}\n.lz-slider-arrow{position:absolute;top:50%;translate:0 -50%;display:grid;place-items:center;width:calc(44 * var(--u));height:calc(44 * var(--u));padding:0;border:0;border-radius:999px;background:rgb(255 255 255 / .86);color:#0f172a;cursor:pointer;opacity:0;transition:opacity .2s}\n.lz-slider:hover .lz-slider-arrow,.lz-slider-arrow:focus-visible{opacity:1}\n@media (hover:none){.lz-slider-arrow{opacity:1}}\n.lz-slider-arrow[data-to=previous]{left:calc(12 * var(--u))}\n.lz-slider-arrow[data-to=next]{right:calc(12 * var(--u))}\n.lz-slider-arrow::before{content:\"\";width:35%;height:35%;border-top:2px solid currentColor;border-right:2px solid currentColor}\n.lz-slider-arrow[data-to=previous]::before{rotate:-135deg;margin-left:18%}\n.lz-slider-arrow[data-to=next]::before{rotate:45deg;margin-right:18%}\n.lz-slider-dots{position:absolute;left:50%;translate:-50% 0;bottom:calc(12 * var(--u));display:flex;gap:calc(8 * var(--u))}\n.lz-slider-dots button{width:calc(9 * var(--u));height:calc(9 * var(--u));padding:0;border:0;border-radius:999px;background:rgb(255 255 255 / .55);cursor:pointer}\n.lz-slider-dots button[data-on]{background:#fff}\n.lz-gallery[data-layout=strip]{grid-auto-flow:column;grid-auto-columns:minmax(42%,1fr);grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}\n.lz-gallery[data-layout=strip] .lz-gallery-item{scroll-snap-align:start}\n.lz-gallery-item{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:calc(var(--r) * var(--u))}\n.lz-gallery[data-layout=grid] .lz-gallery-item{aspect-ratio:4 / 3;height:auto}\nimg.lz-el[data-fit=contain]{object-fit:contain}\na.lz-el,button.lz-el{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}\nbutton.lz-el{cursor:pointer;padding:var(--_p,1px 6px)}\n.lz-divider{border:var(--_border,none);border-top:var(--_border,1px solid currentColor)}\n.lz-video iframe{width:100%;height:100%;border:0;border-radius:inherit}\n.lz-el[data-shape=ellipse]{border-radius:50%}\n.lz-el[data-shape=triangle]{clip-path:polygon(50% 0,100% 100%,0 100%)}\n.lz-el[data-shape=blob]{border-radius:42% 58% 63% 37% / 43% 38% 62% 57%}\n.lz-el[data-shape=arch]{border-radius:50% 50% 0 0 / 65% 65% 0 0}\n.lz-el[data-shape=diagonal]{clip-path:polygon(0 0,100% 0,100% 72%,0 100%)}\n.lz-el[data-shape=dots]{background-image:radial-gradient(currentColor calc(1.6 * var(--u)),transparent calc(1.7 * var(--u)));background-size:calc(16 * var(--u)) calc(16 * var(--u))}\n.lz-el[data-shape=grid]{background-image:linear-gradient(currentColor calc(1 * var(--u)),transparent calc(1 * var(--u))),linear-gradient(90deg,currentColor calc(1 * var(--u)),transparent calc(1 * var(--u)));background-size:calc(24 * var(--u)) calc(24 * var(--u))}\n.lz-icon{display:grid;place-items:center}\n.lz-icon svg{width:100%;height:100%}\n.lz-navbar{display:flex;align-items:center;gap:calc(24 * var(--u))}\n.lz-navbar[data-sticky]{position:fixed;left:50%;translate:-50% 0;width:min(100%,var(--max-width));top:0;transition:background .25s ease,box-shadow .25s ease,height .25s ease,backdrop-filter .25s ease}\n.lz-section[data-wide] .lz-navbar[data-sticky]{width:100%}\n.lz-navbar[data-scrolled]{box-shadow:0 8px 24px rgba(15,23,42,.1)}\n.lz-navbar[data-scrolled][data-scroll]{box-shadow:0 10px 30px rgba(15,23,42,.12)}\n.lz-navbar[data-scrolled]:is([data-scroll=solid],[data-scroll=compact]){background:var(--sbgc,var(--bg,var(--background)));color:var(--sfgc,var(--c,var(--text)));-webkit-backdrop-filter:none;backdrop-filter:none}\n.lz-navbar[data-scrolled][data-scroll=compact]{height:calc(var(--h) * .78 * var(--u))}\n.lz-navbar-brand{font-family:var(--font-heading);font-weight:700;font-size:1.15em;white-space:nowrap}\n.lz-navbar[data-template=pill]{border-radius:999px;padding:0 calc(26 * var(--u));background:var(--bg,var(--surface))}\n.lz-navbar[data-template=card]{border-radius:calc(var(--r,14) * var(--u));padding:0 calc(22 * var(--u));background:var(--bg,var(--background));box-shadow:0 10px 30px rgba(15,23,42,.1)}\n.lz-navbar[data-template=underline]{border-bottom:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 18%,transparent)}\n.lz-navbar[data-template=underline] a{padding-bottom:calc(4 * var(--u));border-bottom:calc(2 * var(--u)) solid transparent}\n.lz-navbar[data-template=underline] a:hover{opacity:1;border-bottom-color:currentColor}\n.lz-navbar[data-template=divided] .lz-navbar-links{gap:0}\n.lz-navbar[data-template=divided] .lz-navbar-links a{padding:0 calc(18 * var(--u));border-left:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 20%,transparent)}\n.lz-navbar[data-template=divided] .lz-navbar-links a:first-child{border-left:0}\n.lz-navbar[data-template=floating]{width:calc(100% - calc(48 * var(--u)));margin:calc(14 * var(--u)) auto;border-radius:calc(14 * var(--u));padding:0 calc(24 * var(--u));background:var(--bg,var(--surface));box-shadow:0 14px 38px rgba(15,23,42,.16)}\n.lz-navbar[data-template=boxed] .lz-navbar-links a{padding:calc(8 * var(--u)) calc(14 * var(--u));border:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 22%,transparent);border-radius:calc(6 * var(--u))}\n.lz-navbar[data-template=boxed] .lz-navbar-links a:hover{opacity:1;background:color-mix(in srgb,currentColor 10%,transparent)}\n.lz-navbar[data-template=ribbon]{padding:0 calc(26 * var(--u));background:var(--bg,var(--text));color:var(--c,var(--background))}\n.lz-navbar[data-template=outline]{border:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 22%,transparent);border-radius:999px;padding:0 calc(22 * var(--u))}\n.lz-navbar[data-template=minimal] .lz-navbar-brand{font-size:1em;font-weight:600}\n.lz-navbar[data-template=minimal] .lz-navbar-links{gap:calc(16 * var(--u));font-size:.86em}\n.lz-navbar[data-template=stack]{flex-direction:column;justify-content:center;gap:calc(10 * var(--u))}\n.lz-navbar[data-template=stack] .lz-navbar-links{margin:0}\n.lz-navbar[data-template=rail]{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:calc(18 * var(--u));padding:calc(22 * var(--u)) calc(18 * var(--u))}\n.lz-navbar[data-template=rail] .lz-navbar-links{flex-direction:column;align-items:flex-start;gap:calc(14 * var(--u));margin:calc(8 * var(--u)) 0 0}\n.lz-navbar[data-template=tracked] .lz-navbar-links{gap:calc(30 * var(--u))}\n.lz-navbar[data-template=tracked] .lz-navbar-links a{text-transform:uppercase;letter-spacing:.14em;font-size:.82em}\n.lz-navbar-links{display:flex;align-items:center;gap:calc(22 * var(--u));margin-left:auto}\n.lz-navbar[data-layout=left] .lz-navbar-links,.lz-navbar[data-layout=center] .lz-navbar-links{margin-left:0}\n.lz-navbar[data-layout=center]{justify-content:center}\n.lz-navbar[data-layout=right]{justify-content:flex-end}\n.lz-navbar[data-layout=right] .lz-navbar-brand{order:1}\n.lz-navbar[data-sticky][data-at=bottom]{top:auto;bottom:0}\n.lz-navbar[data-scrolled][data-at=bottom]{box-shadow:0 -8px 24px rgba(15,23,42,.1)}\n.lz-navbar a{color:inherit;text-decoration:none;white-space:nowrap}\n.lz-navbar a:hover{opacity:.7}\n.lz-navbar-menu{display:none;position:relative;margin-left:auto}\n.lz-navbar-menu summary{list-style:none;cursor:pointer;font-size:1.5em;line-height:1}\n.lz-navbar-menu summary::-webkit-details-marker{display:none}\n.lz-navbar-drop{position:absolute;z-index:60;top:100%;right:0;display:grid;gap:12px;min-width:160px;margin-top:8px;padding:14px 16px;background:var(--surface);color:var(--text);border-radius:var(--radius);box-shadow:0 12px 32px rgba(15,23,42,.18)}\n.lz-field{display:flex;flex-direction:column;gap:4px;justify-content:center;text-align:left}\n.lz-field>span{font-size:.78em;opacity:.75}\n.lz-field>span i{font-style:normal;color:#dc2626;margin-left:2px}\n.lz-field input,.lz-field select,.lz-field textarea{font:inherit;color:inherit;width:100%;flex:1;min-height:0;background:transparent;border:0;padding:0;outline:none;resize:none}\n.lz-choices-list{display:flex;flex-wrap:wrap;gap:10px 18px;overflow:auto}\n.lz-choices-list label{display:inline-flex;align-items:center;gap:8px;cursor:pointer}\n.lz-choices-list input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--primary)}\n.lz-field-check{flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}\n.lz-field-check input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--primary)}\n.lz-field-error{position:absolute;top:100%;left:0;margin-top:2px;font-size:12px;font-style:normal;color:#dc2626}\n.lz-stack-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:24px 20px 0;background:var(--background)}\n.lz-stack-nav button{font:inherit;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid color-mix(in srgb,var(--muted) 35%,transparent);border-radius:999px;background:transparent;color:var(--muted);transition:background .2s ease,color .2s ease}\n.lz-stack-nav button[aria-pressed=true]{background:var(--primary);border-color:var(--primary);color:var(--background)}\n.lz-stack-nav i{font-style:normal;display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:color-mix(in srgb,currentColor 18%,transparent);font-size:.8em}\n.lz-stack-panel{display:none}\n.lz-stack-panel[data-on]{display:block}\n.lz-modal{border:none;border-radius:var(--radius);padding:0;max-width:calc(100% - 2rem);max-height:calc(100dvh - 3rem);color:var(--text);font-family:var(--font-body);overflow:auto;width:min(calc(var(--dw) * 1px),calc(100vw - 2rem));--u:calc(min(100vw - 2rem,var(--dw) * 1px) / var(--dw));background:var(--dbg,var(--background))}\n.lz-modal[data-size=full]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;--u:calc(min(100vw,var(--dw) * 1px) / var(--dw))}\n.lz-modal::backdrop{background:rgba(15,23,42,.5)}\n.lz-modal .lz-frame{overflow:hidden}\n.lz-modal-bar{display:flex;align-items:center;gap:calc(12 * var(--u));padding:calc(8 * var(--u)) calc(10 * var(--u)) calc(8 * var(--u)) calc(18 * var(--u))}\n.lz-modal-title{margin:0;font-family:var(--font-heading);font-size:calc(20 * var(--u));font-weight:700}\n.lz-modal-close{margin-left:auto;width:calc(34 * var(--u));height:calc(34 * var(--u));display:grid;place-items:center;font:inherit;font-size:calc(20 * var(--u));line-height:1;color:var(--text);background:var(--surface);border:0;border-radius:999px;cursor:pointer}\n.lz-modal-close:hover{opacity:.8}\n.lz-placeholder{display:grid;place-items:center;padding:8px;border:1px dashed currentColor;font:12px/1.3 system-ui,sans-serif;opacity:.6}\n@container lz (max-width:640px){.lz-section>.lz-frame{--u:calc(min(100cqw,390px) / 390)}.lz-frame{height:calc(var(--fmh) * var(--u))}.lz-frame[data-stack]{height:auto;padding:32px 20px;display:flex;flex-direction:column;gap:20px}.lz-frame:not([data-stack]) .lz-el{position:absolute;left:calc(var(--mx) * 1%);top:calc(var(--my) * var(--u));width:calc(var(--mw) * 1%);height:calc(var(--mh) * var(--u))}.lz-el{font-size:calc(var(--fms,var(--fs)) * var(--u))}.lz-frame:not([data-stack]) .lz-el[data-auto]{height:auto}.lz-frame[data-stack] .lz-el{position:static;width:auto;height:auto;order:var(--ord)}.lz-frame[data-flow]{height:auto;min-height:calc(var(--fmh) * var(--u));flex-direction:column;padding:32px 20px}.lz-frame[data-flow] .lz-el{position:static;width:auto;height:auto;order:var(--ord)}.lz-frame .lz-box{flex-direction:column;height:auto;min-height:calc(var(--mh,var(--h)) * var(--u))}.lz-frame:not([data-stack]) .lz-box>.lz-el{position:static;width:calc(var(--w) * 1%);height:auto;min-height:calc(var(--h) * var(--u))}.lz-frame:not([data-stack]) .lz-box>.lz-el[data-auto]{min-height:0}.lz-frame:not([data-stack]) .lz-box[data-flow=row]>.lz-el{width:100%}.lz-frame[data-stack] .lz-box>.lz-el{position:static;width:100%;height:auto}.lz-el[data-visible=desktop]{display:none}.lz-parallax>.lz-bg{position:absolute}.lz-frame:not([data-stack]) .lz-navbar[data-sticky]{position:fixed;left:50%;translate:-50% 0;width:min(100%,var(--max-width))}.lz-navbar-links{display:none}.lz-navbar-menu{display:block}.lz-el{max-width:100%;min-width:0}img.lz-el{height:auto}.lz-icon{width:max-content}.lz-icon svg{width:calc(36 * var(--u));height:calc(36 * var(--u))}}\n", Rn = "\nhtml,body{margin:0}\nbody{overflow:hidden}\n.lz-el{cursor:default;user-select:none;-webkit-user-select:none}\n.lz-el[contenteditable]{cursor:text;user-select:text;-webkit-user-select:text;outline:none}\n.lz-el iframe,.lz-el input,.lz-el select,.lz-el textarea,.lz-el summary,.lz-el a,.lz-el button{pointer-events:none}\n.lz-navbar[data-sticky]{position:absolute;translate:none;left:calc(var(--x) * 1%);top:calc(var(--y) * var(--u));width:calc(var(--w) * 1%)}\n@container lz (max-width:640px){\n.lz-frame:not([data-stack]) .lz-navbar[data-sticky]{left:calc(var(--mx) * 1%);top:calc(var(--my) * var(--u));width:calc(var(--mw) * 1%)}\n.lz-frame[data-stack] .lz-navbar[data-sticky]{position:static;width:auto}\n}\n.lz-parallax>.lz-bg{position:absolute}\n.lz-stack-nav button{cursor:pointer}\nimg.lz-el[src=\"\"]::before,.lz-video:empty::before{position:absolute;inset:0;display:grid;place-items:center;padding:8px;text-align:center;border:1px dashed #94a3b8;border-radius:inherit;background:#f8fafc;color:#64748b;font:12px/1.3 system-ui,sans-serif}\nimg.lz-el[src=\"\"]::before{content:var(--lze-empty-image)}\n.lz-frame[data-stack] img.lz-el[src=\"\"]{position:relative;min-height:120px}\n.lz-video:empty::before{content:var(--lze-empty-video)}\n.lze-app-placeholder{display:grid;place-items:center;height:100%;padding:8px;text-align:center;border:1px dashed #94a3b8;border-radius:inherit;background:#f8fafc;color:#64748b;font:12px/1.3 system-ui,sans-serif}\n.lze-app-placeholder[data-status=loading]{animation:lze-pulse 1.2s ease-in-out infinite}\n@keyframes lze-pulse{50%{opacity:.55}}\nbody[data-lze-modal] .lz-section,body[data-lze-modal] .lz-stack,body[data-lze-modal] .lz-notice{display:none}\nbody[data-lze-modal] dialog.lz-modal[data-lze-open]{display:block;position:static;margin:16px auto;max-height:none;overflow:visible;box-shadow:0 12px 40px rgba(15,23,42,.18)}\nbody[data-lze-modal] dialog.lz-modal[data-lze-open][data-size=full]{margin:0}\n";
|
|
4991
|
+
var Wn = ".lz-page,.lz-page *{box-sizing:border-box}\nhtml:has(.lz-page){scroll-behavior:smooth}\n@media (prefers-reduced-motion:reduce){html:has(.lz-page){scroll-behavior:auto}}\n.lz-page{margin:0;container:lz/inline-size;background:var(--background);color:var(--text);font-family:var(--font-body)}\n.lz-notice{position:fixed;z-index:99;top:16px;left:50%;transform:translateX(-50%);background:var(--primary);color:var(--background);padding:12px 20px;border-radius:var(--radius);box-shadow:0 12px 32px rgba(15,23,42,.2)}\n.lz-section{position:relative;width:100%;scroll-margin-top:calc(var(--sticky,0) * 1px);background:var(--sbg,transparent)}\n.lz-section[data-fill=linear]{background:linear-gradient(calc(var(--sga,135) * 1deg),var(--sg1),var(--sg2))}\n.lz-section[data-fill=radial]{background:radial-gradient(circle at 50% 50%,var(--sg1),var(--sg2))}\n.lz-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}\n.lz-bg::before{content:'';position:absolute;inset:0;background:var(--background)}\n.lz-parallax{position:absolute;inset:0;clip-path:inset(0)}\n.lz-parallax>.lz-bg{position:fixed}\n.lz-section[data-wide]>.lz-frame{max-width:none}\n.lz-overlay{position:absolute;inset:0;background:rgb(0 0 0 / calc(var(--ov) * 100%))}\n.lz-frame{position:relative;height:calc(var(--fh) * var(--u))}\n.lz-frame[data-flow]{height:auto;min-height:calc(var(--fh) * var(--u));display:flex;gap:calc(var(--fg,24) * var(--u));padding:calc(56 * var(--u)) calc(24 * var(--u));box-sizing:border-box}\n.lz-frame[data-flow=column]{flex-direction:column}\n.lz-frame[data-flow=row]{flex-direction:row;flex-wrap:wrap;align-items:flex-start}\n.lz-frame[data-flow=column][data-flow-align=center]{align-items:center}\n.lz-frame[data-flow=column][data-flow-align=end]{align-items:flex-end}\n.lz-frame[data-flow=column][data-flow-align=between]{justify-content:space-between}\n.lz-frame[data-flow=row][data-flow-align=center]{justify-content:center}\n.lz-frame[data-flow=row][data-flow-align=end]{justify-content:flex-end}\n.lz-frame[data-flow=row][data-flow-align=between]{justify-content:space-between}\n.lz-frame[data-flow] .lz-el{position:static;order:var(--ord);height:auto;max-width:100%}\n.lz-frame[data-flow=column] .lz-el{width:calc(var(--w) * 1%)}\n.lz-frame[data-flow=row] .lz-el{width:calc(var(--w) * 1%);flex:0 1 auto}\n.lz-section>.lz-frame{margin:0 auto;max-width:var(--max-width);container-type:inline-size;--u:calc(min(100cqw,var(--ref) * 1px) / var(--ref))}\n.lz-el:is(h1,h2,h3,h4,p){white-space:pre-line}\n.lz-el{position:absolute;margin:0;display:block;overflow-wrap:break-word;left:calc(var(--x) * 1%);top:calc(var(--y) * var(--u));width:calc(var(--w) * 1%);height:calc(var(--h) * var(--u));z-index:var(--z);--_border:calc(var(--bw) * var(--u)) solid var(--bc,var(--text));--_fill:color-mix(in srgb,var(--bg) calc(var(--ba,1) * 100%),transparent);--_rot:rotate(calc(var(--rot) * 1deg));--_blur:blur(calc(var(--blur) * var(--u)));--_p:calc(var(--p) * var(--u));color:var(--c);background:var(--_fill);-webkit-backdrop-filter:var(--_blur);backdrop-filter:var(--_blur);font-family:var(--font-body);font-size:calc(var(--fs) * var(--u));font-weight:var(--fw);line-height:var(--lh);letter-spacing:calc(var(--ls,0) * 1em);border:var(--_border,0);border-radius:calc(var(--r) * var(--u));padding:var(--_p,0);opacity:var(--op);transform:var(--_rot,) var(--_flip,) var(--_anim,)}\n.lz-el[data-font=heading]{font-family:var(--font-heading)}\n.lz-el[data-case=upper]{text-transform:uppercase}\n.lz-el[data-case=lower]{text-transform:lowercase}\n.lz-el[data-case=title]{text-transform:capitalize}\n.lz-el[data-text=outline]{-webkit-text-stroke:calc(1.5 * var(--u)) currentColor;-webkit-text-fill-color:transparent}\n.lz-el[data-text=glow]{text-shadow:0 0 calc(12 * var(--u)) color-mix(in srgb,currentColor 70%,transparent),0 0 calc(44 * var(--u)) color-mix(in srgb,currentColor 45%,transparent)}\n.lz-el[data-auto]{height:auto}\n.lz-el[data-align=left]{text-align:left}\n.lz-el[data-align=center]{text-align:center}\n.lz-el[data-align=right]{text-align:right}\n.lz-el[data-fill=linear]{background:linear-gradient(calc(var(--ga,135) * 1deg),color-mix(in srgb,var(--g1) calc(var(--ba,1) * 100%),transparent),color-mix(in srgb,var(--g2) calc(var(--ba,1) * 100%),transparent))}\n.lz-el[data-fill=radial]{background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--g1) calc(var(--ba,1) * 100%),transparent),color-mix(in srgb,var(--g2) calc(var(--ba,1) * 100%),transparent))}\n.lz-el[data-shadow=sm]{box-shadow:0 1px 2px rgba(15,23,42,.08)}\n.lz-el[data-shadow=md]{box-shadow:0 8px 24px rgba(15,23,42,.12)}\n.lz-el[data-shadow=lg]{box-shadow:0 24px 48px rgba(15,23,42,.18)}\n.lz-el[data-finish=glass]{backdrop-filter:blur(calc(18 * var(--u))) saturate(150%);-webkit-backdrop-filter:blur(calc(18 * var(--u))) saturate(150%);border:calc(1 * var(--u)) solid rgb(255 255 255 / .35);box-shadow:0 calc(14 * var(--u)) calc(40 * var(--u)) rgb(15 23 42 / .14)}\n.lz-el[data-finish=soft]{box-shadow:calc(-8 * var(--u)) calc(-8 * var(--u)) calc(18 * var(--u)) rgb(255 255 255 / .75),calc(10 * var(--u)) calc(12 * var(--u)) calc(26 * var(--u)) rgb(15 23 42 / .13)}\n.lz-el[data-finish=pressed]{box-shadow:inset calc(6 * var(--u)) calc(6 * var(--u)) calc(14 * var(--u)) rgb(15 23 42 / .14),inset calc(-6 * var(--u)) calc(-6 * var(--u)) calc(14 * var(--u)) rgb(255 255 255 / .8)}\n.lz-el[data-shadow=custom]{box-shadow:calc(var(--shx,0) * var(--u)) calc(var(--shy,12) * var(--u)) calc(var(--shb,32) * var(--u)) calc(var(--shs,0) * var(--u)) color-mix(in srgb,var(--shc,var(--secondary)) calc(var(--sha,.2) * 100%),transparent)}\n.lz-el[data-clip]:not([data-overflow]),.lz-el[data-overflow=hidden]{overflow:hidden}\n.lz-el[data-pin]{position:fixed;z-index:calc(var(--z) + 500);left:calc(50% - var(--ref) * var(--u) / 2 + var(--x) * var(--ref) * var(--u) / 100);top:calc(var(--y) * var(--u));width:calc(var(--w) * var(--ref) * var(--u) / 100)}\n.lz-el[data-overflow=scroll-x]{overflow-x:auto;overflow-y:hidden}\n.lz-el[data-overflow=scroll-y]{overflow-y:auto;overflow-x:hidden}\n.lz-el[data-flip-x],.lz-el[data-flip-y]{--_flip:scale(var(--_fx,1),var(--_fy,1))}\n.lz-el[data-flip-x]{--_fx:-1}\n.lz-el[data-flip-y]{--_fy:-1}\n@container lz not (max-width:640px){.lz-el[data-visible=mobile]{display:none}}\n.lz-accent{color:var(--ac)}\n@media (prefers-reduced-motion:no-preference){.lz-el[data-anim]{opacity:0;transition:opacity calc(var(--adur,.7) * 1s) ease calc(var(--ad,0) * 1s),transform calc(var(--adur,.7) * 1s) cubic-bezier(.22,.61,.36,1) calc(var(--ad,0) * 1s)}.lz-el[data-anim=up]{--_anim:translateY(28px)}.lz-el[data-anim=down]{--_anim:translateY(-28px)}.lz-el[data-anim=left]{--_anim:translateX(-32px)}.lz-el[data-anim=right]{--_anim:translateX(32px)}.lz-el[data-anim=zoom]{--_anim:scale(.94)}.lz-el[data-anim=blur]{filter:blur(calc(10 * var(--u)));transition-property:opacity,transform,filter}.lz-el[data-anim=reveal]{clip-path:inset(0 100% 0 0);transition-property:opacity,transform,clip-path}.lz-el[data-anim=blur].is-in{filter:none}.lz-el[data-anim=reveal].is-in{clip-path:inset(0)}.lz-el[data-anim].is-in{opacity:var(--op,1);--_anim:initial}}\n@media (scripting:none){.lz-el[data-anim]{opacity:var(--op,1)!important;--_anim:initial!important}}\n.lz-el[data-hover]{transition:transform .25s ease,box-shadow .25s ease,opacity .25s ease}\n@media (hover:hover){.lz-el[data-hover=lift]:hover{transform:var(--_rot,) var(--_flip,) translateY(calc(-6 * var(--u)));box-shadow:0 18px 40px rgba(15,23,42,.18)}.lz-el[data-hover=grow]:hover{transform:var(--_rot,) var(--_flip,) scale(1.04)}.lz-el[data-hover=fade]:hover{opacity:.82}.lz-el[data-hover=sink]:hover{transform:var(--_rot,) var(--_flip,) translateY(calc(4 * var(--u))) scale(.98)}.lz-el[data-hover=tilt]:hover{transform:var(--_rot,) var(--_flip,) perspective(600px) rotateX(6deg) rotateY(-6deg)}.lz-el[data-hover=glow]:hover{box-shadow:0 0 0 calc(2 * var(--u)) color-mix(in srgb,var(--primary) 55%,transparent),0 18px 44px color-mix(in srgb,var(--primary) 28%,transparent)}}\n@keyframes lz-rise{from{translate:0 7cqh}to{translate:0 -7cqh}}\n@keyframes lz-drift{from{translate:-4cqw 0}to{translate:4cqw 0}}\n@keyframes lz-zoom{from{scale:1}to{scale:1.12}}\n@supports (animation-timeline:view()){@media (prefers-reduced-motion:no-preference){.lz-el[data-scroll]{animation:linear both;animation-timeline:view();animation-range:entry 0% exit 100%}.lz-el[data-scroll=rise]{animation-name:lz-rise}.lz-el[data-scroll=drift]{animation-name:lz-drift}.lz-el[data-scroll=zoom]{animation-name:lz-zoom}}}\nimg.lz-el{object-fit:cover}\n.lz-gallery{display:grid;gap:calc(14 * var(--u));overflow:auto}\n.lz-gallery[data-layout=grid]{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));align-content:start}\n.lz-gallery[data-cols=\"1\"]{--cols:1}\n.lz-gallery[data-cols=\"2\"]{--cols:2}\n.lz-gallery[data-cols=\"3\"]{--cols:3}\n.lz-gallery[data-cols=\"4\"]{--cols:4}\n.lz-gallery[data-cols=\"5\"]{--cols:5}\n.lz-gallery[data-cols=\"6\"]{--cols:6}\n.lz-box{display:flex;gap:calc(var(--fg,16) * var(--u));align-items:flex-start;height:auto;min-height:calc(var(--h) * var(--u))}\n.lz-box[data-flow=column]{flex-direction:column}\n.lz-box[data-flow=row]{flex-direction:row;flex-wrap:wrap}\n.lz-box[data-flow=column][data-flow-align=center]{align-items:center}\n.lz-box[data-flow=column][data-flow-align=end]{align-items:flex-end}\n.lz-box[data-flow=column][data-flow-align=between]{justify-content:space-between}\n.lz-box[data-flow=row][data-flow-align=center]{justify-content:center}\n.lz-box[data-flow=row][data-flow-align=end]{justify-content:flex-end}\n.lz-box[data-flow=row][data-flow-align=between]{justify-content:space-between}\n.lz-box>.lz-el{position:static;height:auto;min-height:calc(var(--h) * var(--u));max-width:100%}\n.lz-box>.lz-el[data-auto]{min-height:0}\n.lz-box[data-flow=column]>.lz-el{width:calc(var(--w) * 1%)}\n.lz-box[data-flow=row]>.lz-el{width:calc(var(--w) * 1%);flex:0 1 auto}\n.lz-slider{position:relative;overflow:hidden}\n.lz-frame[data-flow] .lz-slider{height:calc(380 * var(--u))}\n.lz-slider-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;border-radius:inherit}\n.lz-slider-track::-webkit-scrollbar{display:none}\n.lz-slide{flex:0 0 100%;width:100%;height:100%;object-fit:cover;scroll-snap-align:center;border-radius:inherit}\n.lz-slider[data-fit=contain] .lz-slide{object-fit:contain}\n.lz-slider-arrow{position:absolute;top:50%;translate:0 -50%;display:grid;place-items:center;width:calc(44 * var(--u));height:calc(44 * var(--u));padding:0;border:0;border-radius:999px;background:rgb(255 255 255 / .86);color:#0f172a;cursor:pointer;opacity:0;transition:opacity .2s}\n.lz-slider:hover .lz-slider-arrow,.lz-slider-arrow:focus-visible{opacity:1}\n@media (hover:none){.lz-slider-arrow{opacity:1}}\n.lz-slider-arrow[data-to=previous]{left:calc(12 * var(--u))}\n.lz-slider-arrow[data-to=next]{right:calc(12 * var(--u))}\n.lz-slider-arrow::before{content:\"\";width:35%;height:35%;border-top:2px solid currentColor;border-right:2px solid currentColor}\n.lz-slider-arrow[data-to=previous]::before{rotate:-135deg;margin-left:18%}\n.lz-slider-arrow[data-to=next]::before{rotate:45deg;margin-right:18%}\n.lz-slider-dots{position:absolute;left:50%;translate:-50% 0;bottom:calc(12 * var(--u));display:flex;gap:calc(8 * var(--u))}\n.lz-slider-dots button{width:calc(9 * var(--u));height:calc(9 * var(--u));padding:0;border:0;border-radius:999px;background:rgb(255 255 255 / .55);cursor:pointer}\n.lz-slider-dots button[data-on]{background:#fff}\n.lz-gallery[data-layout=strip]{grid-auto-flow:column;grid-auto-columns:minmax(42%,1fr);grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain}\n.lz-gallery[data-layout=strip] .lz-gallery-item{scroll-snap-align:start}\n.lz-gallery-item{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:calc(var(--r) * var(--u))}\n.lz-gallery[data-layout=grid] .lz-gallery-item{aspect-ratio:4 / 3;height:auto}\nimg.lz-el[data-fit=contain]{object-fit:contain}\na.lz-el,button.lz-el{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}\nbutton.lz-el{cursor:pointer;padding:var(--_p,1px 6px)}\n.lz-divider{border:var(--_border,none);border-top:var(--_border,1px solid currentColor)}\n.lz-video iframe{width:100%;height:100%;border:0;border-radius:inherit}\n.lz-el[data-shape=ellipse]{border-radius:50%}\n.lz-el[data-shape=triangle]{clip-path:polygon(50% 0,100% 100%,0 100%)}\n.lz-el[data-shape=blob]{border-radius:42% 58% 63% 37% / 43% 38% 62% 57%}\n.lz-el[data-shape=arch]{border-radius:50% 50% 0 0 / 65% 65% 0 0}\n.lz-el[data-shape=diagonal]{clip-path:polygon(0 0,100% 0,100% 72%,0 100%)}\n.lz-el[data-shape=dots]{background-image:radial-gradient(currentColor calc(1.6 * var(--u)),transparent calc(1.7 * var(--u)));background-size:calc(16 * var(--u)) calc(16 * var(--u))}\n.lz-el[data-shape=grid]{background-image:linear-gradient(currentColor calc(1 * var(--u)),transparent calc(1 * var(--u))),linear-gradient(90deg,currentColor calc(1 * var(--u)),transparent calc(1 * var(--u)));background-size:calc(24 * var(--u)) calc(24 * var(--u))}\n.lz-icon{display:grid;place-items:center}\n.lz-icon svg{width:100%;height:100%}\n.lz-navbar{display:flex;align-items:center;gap:calc(24 * var(--u))}\n.lz-navbar[data-sticky]{position:fixed;left:50%;translate:-50% 0;width:min(100%,var(--max-width));top:0;transition:background .25s ease,box-shadow .25s ease,height .25s ease,backdrop-filter .25s ease}\n.lz-section[data-wide] .lz-navbar[data-sticky]{width:100%}\n.lz-navbar[data-scrolled]{box-shadow:0 8px 24px rgba(15,23,42,.1)}\n.lz-navbar[data-scrolled][data-scroll]{box-shadow:0 10px 30px rgba(15,23,42,.12)}\n.lz-navbar[data-scrolled]:is([data-scroll=solid],[data-scroll=compact]){background:var(--sbgc,var(--bg,var(--background)));color:var(--sfgc,var(--c,var(--text)));-webkit-backdrop-filter:none;backdrop-filter:none}\n.lz-navbar[data-scrolled][data-scroll=compact]{height:calc(var(--h) * .78 * var(--u))}\n.lz-navbar-brand{font-family:var(--font-heading);font-weight:700;font-size:1.15em;white-space:nowrap}\n.lz-navbar[data-template=pill]{border-radius:999px;padding:0 calc(26 * var(--u));background:var(--bg,var(--surface))}\n.lz-navbar[data-template=card]{border-radius:calc(var(--r,14) * var(--u));padding:0 calc(22 * var(--u));background:var(--bg,var(--background));box-shadow:0 10px 30px rgba(15,23,42,.1)}\n.lz-navbar[data-template=underline]{border-bottom:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 18%,transparent)}\n.lz-navbar[data-template=underline] a{padding-bottom:calc(4 * var(--u));border-bottom:calc(2 * var(--u)) solid transparent}\n.lz-navbar[data-template=underline] a:hover{opacity:1;border-bottom-color:currentColor}\n.lz-navbar[data-template=divided] .lz-navbar-links{gap:0}\n.lz-navbar[data-template=divided] .lz-navbar-links a{padding:0 calc(18 * var(--u));border-left:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 20%,transparent)}\n.lz-navbar[data-template=divided] .lz-navbar-links a:first-child{border-left:0}\n.lz-navbar[data-template=floating]{width:calc(100% - calc(48 * var(--u)));margin:calc(14 * var(--u)) auto;border-radius:calc(14 * var(--u));padding:0 calc(24 * var(--u));background:var(--bg,var(--surface));box-shadow:0 14px 38px rgba(15,23,42,.16)}\n.lz-navbar[data-template=boxed] .lz-navbar-links a{padding:calc(8 * var(--u)) calc(14 * var(--u));border:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 22%,transparent);border-radius:calc(6 * var(--u))}\n.lz-navbar[data-template=boxed] .lz-navbar-links a:hover{opacity:1;background:color-mix(in srgb,currentColor 10%,transparent)}\n.lz-navbar[data-template=ribbon]{padding:0 calc(26 * var(--u));background:var(--bg,var(--text));color:var(--c,var(--background))}\n.lz-navbar[data-template=outline]{border:calc(1 * var(--u)) solid color-mix(in srgb,currentColor 22%,transparent);border-radius:999px;padding:0 calc(22 * var(--u))}\n.lz-navbar[data-template=minimal] .lz-navbar-brand{font-size:1em;font-weight:600}\n.lz-navbar[data-template=minimal] .lz-navbar-links{gap:calc(16 * var(--u));font-size:.86em}\n.lz-navbar[data-template=stack]{flex-direction:column;justify-content:center;gap:calc(10 * var(--u))}\n.lz-navbar[data-template=stack] .lz-navbar-links{margin:0}\n.lz-navbar[data-template=rail]{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:calc(18 * var(--u));padding:calc(22 * var(--u)) calc(18 * var(--u))}\n.lz-navbar[data-template=rail] .lz-navbar-links{flex-direction:column;align-items:flex-start;gap:calc(14 * var(--u));margin:calc(8 * var(--u)) 0 0}\n.lz-navbar[data-template=tracked] .lz-navbar-links{gap:calc(30 * var(--u))}\n.lz-navbar[data-template=tracked] .lz-navbar-links a{text-transform:uppercase;letter-spacing:.14em;font-size:.82em}\n.lz-navbar-links{display:flex;align-items:center;gap:calc(22 * var(--u));margin-left:auto}\n.lz-navbar[data-layout=left] .lz-navbar-links,.lz-navbar[data-layout=center] .lz-navbar-links{margin-left:0}\n.lz-navbar[data-layout=center]{justify-content:center}\n.lz-navbar[data-layout=right]{justify-content:flex-end}\n.lz-navbar[data-layout=right] .lz-navbar-brand{order:1}\n.lz-navbar[data-sticky][data-at=bottom]{top:auto;bottom:0}\n.lz-navbar[data-scrolled][data-at=bottom]{box-shadow:0 -8px 24px rgba(15,23,42,.1)}\n.lz-navbar a{color:inherit;text-decoration:none;white-space:nowrap}\n.lz-navbar a:hover{opacity:.7}\n.lz-navbar-menu{display:none;position:relative;margin-left:auto}\n.lz-navbar-menu summary{list-style:none;cursor:pointer;font-size:1.5em;line-height:1}\n.lz-navbar-menu summary::-webkit-details-marker{display:none}\n.lz-navbar-drop{position:absolute;z-index:60;top:100%;right:0;display:grid;gap:12px;min-width:160px;margin-top:8px;padding:14px 16px;background:var(--surface);color:var(--text);border-radius:var(--radius);box-shadow:0 12px 32px rgba(15,23,42,.18)}\n.lz-field{display:flex;flex-direction:column;gap:4px;justify-content:center;text-align:left}\n.lz-field>span{font-size:.78em;opacity:.75}\n.lz-field>span i{font-style:normal;color:#dc2626;margin-left:2px}\n.lz-field input,.lz-field select,.lz-field textarea{font:inherit;color:inherit;width:100%;flex:1;min-height:0;background:transparent;border:0;padding:0;outline:none;resize:none}\n.lz-choices-list{display:flex;flex-wrap:wrap;gap:10px 18px;overflow:auto}\n.lz-choices-list label{display:inline-flex;align-items:center;gap:8px;cursor:pointer}\n.lz-choices-list input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--primary)}\n.lz-field-check{flex-direction:row;justify-content:flex-start;align-items:center;gap:10px}\n.lz-field-check input{flex:0 0 auto;width:18px;height:18px;accent-color:var(--primary)}\n.lz-field-error{position:absolute;top:100%;left:0;margin-top:2px;font-size:12px;font-style:normal;color:#dc2626}\n.lz-stack-nav{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:24px 20px 0;background:var(--background)}\n.lz-stack-nav button{font:inherit;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:1px solid color-mix(in srgb,var(--muted) 35%,transparent);border-radius:999px;background:transparent;color:var(--muted);transition:background .2s ease,color .2s ease}\n.lz-stack-nav button[aria-pressed=true]{background:var(--primary);border-color:var(--primary);color:var(--background)}\n.lz-stack-nav i{font-style:normal;display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:color-mix(in srgb,currentColor 18%,transparent);font-size:.8em}\n.lz-stack-panel{display:none}\n.lz-stack-panel[data-on]{display:block}\n.lz-modal{border:none;border-radius:var(--radius);padding:0;max-width:calc(100% - 2rem);max-height:calc(100dvh - 3rem);color:var(--text);font-family:var(--font-body);overflow:auto;width:min(calc(var(--dw) * 1px),calc(100vw - 2rem));--u:calc(min(100vw - 2rem,var(--dw) * 1px) / var(--dw));background:var(--dbg,var(--background))}\n.lz-modal[data-size=full]{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;--u:calc(min(100vw,var(--dw) * 1px) / var(--dw))}\n.lz-modal::backdrop{background:rgba(15,23,42,.5)}\n.lz-modal .lz-frame{overflow:hidden}\n.lz-modal-bar{display:flex;align-items:center;gap:calc(12 * var(--u));padding:calc(8 * var(--u)) calc(10 * var(--u)) calc(8 * var(--u)) calc(18 * var(--u))}\n.lz-modal-title{margin:0;font-family:var(--font-heading);font-size:calc(20 * var(--u));font-weight:700}\n.lz-modal-close{margin-left:auto;width:calc(34 * var(--u));height:calc(34 * var(--u));display:grid;place-items:center;font:inherit;font-size:calc(20 * var(--u));line-height:1;color:var(--text);background:var(--surface);border:0;border-radius:999px;cursor:pointer}\n.lz-modal-close:hover{opacity:.8}\n.lz-placeholder{display:grid;place-items:center;padding:8px;border:1px dashed currentColor;font:12px/1.3 system-ui,sans-serif;opacity:.6}\n@container lz (max-width:640px){.lz-section>.lz-frame{--u:calc(min(100cqw,390px) / 390)}.lz-frame{height:calc(var(--fmh) * var(--u))}.lz-frame[data-stack]{height:auto;padding:32px 20px;display:flex;flex-direction:column;gap:20px}.lz-frame:not([data-stack]) .lz-el{position:absolute;left:calc(var(--mx) * 1%);top:calc(var(--my) * var(--u));width:calc(var(--mw) * 1%);height:calc(var(--mh) * var(--u))}.lz-el{font-size:calc(var(--fms,var(--fs)) * var(--u))}.lz-frame:not([data-stack]) .lz-el[data-auto]{height:auto}.lz-frame[data-stack] .lz-el{position:static;width:auto;height:auto;order:var(--ord)}.lz-frame[data-flow]{height:auto;min-height:calc(var(--fmh) * var(--u));flex-direction:column;padding:32px 20px}.lz-frame[data-flow] .lz-el{position:static;width:auto;height:auto;order:var(--ord)}.lz-frame .lz-box{flex-direction:column;height:auto;min-height:calc(var(--mh,var(--h)) * var(--u))}.lz-frame:not([data-stack]) .lz-box>.lz-el{position:static;width:calc(var(--w) * 1%);height:auto;min-height:calc(var(--h) * var(--u))}.lz-frame:not([data-stack]) .lz-box>.lz-el[data-auto]{min-height:0}.lz-frame:not([data-stack]) .lz-box[data-flow=row]>.lz-el{width:100%}.lz-frame[data-stack] .lz-box>.lz-el{position:static;width:100%;height:auto}.lz-el[data-visible=desktop]{display:none}.lz-parallax>.lz-bg{position:absolute}.lz-frame:not([data-stack]) .lz-navbar[data-sticky]{position:fixed;left:50%;translate:-50% 0;width:min(100%,var(--max-width))}.lz-navbar-links{display:none}.lz-navbar-menu{display:block}.lz-el{max-width:100%;min-width:0}img.lz-el{height:auto}.lz-icon{width:max-content}.lz-icon svg{width:calc(36 * var(--u));height:calc(36 * var(--u))}}\n", Gn = "\nhtml,body{margin:0}\nbody{overflow:hidden}\n.lz-el{cursor:default;user-select:none;-webkit-user-select:none}\n.lz-el[contenteditable]{cursor:text;user-select:text;-webkit-user-select:text;outline:none}\n.lz-el iframe,.lz-el input,.lz-el select,.lz-el textarea,.lz-el summary,.lz-el a,.lz-el button{pointer-events:none}\n.lz-navbar[data-sticky]{position:absolute;translate:none;left:calc(var(--x) * 1%);top:calc(var(--y) * var(--u));width:calc(var(--w) * 1%)}\n@container lz (max-width:640px){\n.lz-frame:not([data-stack]) .lz-navbar[data-sticky]{left:calc(var(--mx) * 1%);top:calc(var(--my) * var(--u));width:calc(var(--mw) * 1%)}\n.lz-frame[data-stack] .lz-navbar[data-sticky]{position:static;width:auto}\n}\n.lz-parallax>.lz-bg{position:absolute}\n.lz-stack-nav button{cursor:pointer}\nimg.lz-el[src=\"\"]::before,.lz-video:empty::before{position:absolute;inset:0;display:grid;place-items:center;padding:8px;text-align:center;border:1px dashed #94a3b8;border-radius:inherit;background:#f8fafc;color:#64748b;font:12px/1.3 system-ui,sans-serif}\nimg.lz-el[src=\"\"]::before{content:var(--lze-empty-image)}\n.lz-frame[data-stack] img.lz-el[src=\"\"]{position:relative;min-height:120px}\n.lz-video:empty::before{content:var(--lze-empty-video)}\n.lze-app-placeholder{display:grid;place-items:center;height:100%;padding:8px;text-align:center;border:1px dashed #94a3b8;border-radius:inherit;background:#f8fafc;color:#64748b;font:12px/1.3 system-ui,sans-serif}\n.lze-app-placeholder[data-status=loading]{animation:lze-pulse 1.2s ease-in-out infinite}\n@keyframes lze-pulse{50%{opacity:.55}}\nbody[data-lze-modal] .lz-section,body[data-lze-modal] .lz-stack,body[data-lze-modal] .lz-notice{display:none}\nbody[data-lze-modal] dialog.lz-modal[data-lze-open]{display:block;position:static;margin:16px auto;max-height:none;overflow:visible;box-shadow:0 12px 40px rgba(15,23,42,.18)}\nbody[data-lze-modal] dialog.lz-modal[data-lze-open][data-size=full]{margin:0}\n";
|
|
4929
4992
|
//#endregion
|
|
4930
4993
|
//#region src/canvas/render.ts
|
|
4931
|
-
function
|
|
4994
|
+
function Kn(e) {
|
|
4932
4995
|
return {
|
|
4933
4996
|
catalog: e.catalog.value,
|
|
4934
4997
|
site: e.site.value,
|
|
@@ -4942,7 +5005,7 @@ function zn(e) {
|
|
|
4942
5005
|
}
|
|
4943
5006
|
};
|
|
4944
5007
|
}
|
|
4945
|
-
async function
|
|
5008
|
+
async function qn(e, t, n) {
|
|
4946
5009
|
let r;
|
|
4947
5010
|
try {
|
|
4948
5011
|
r = ae(e, t.catalog);
|
|
@@ -4979,23 +5042,23 @@ async function Bn(e, t, n) {
|
|
|
4979
5042
|
action: () => "#",
|
|
4980
5043
|
appElement: (e) => {
|
|
4981
5044
|
let n = t.preview(e);
|
|
4982
|
-
return n.status === "ready" ? ce(n.html) : ce(`<div class="lze-app-placeholder" data-status="${n.status}">${
|
|
5045
|
+
return n.status === "ready" ? ce(n.html) : ce(`<div class="lze-app-placeholder" data-status="${n.status}">${Yn(n.status === "loading" ? t.labels.loading : t.labels.failed)}</div>`);
|
|
4983
5046
|
},
|
|
4984
5047
|
form: null
|
|
4985
5048
|
}
|
|
4986
5049
|
})
|
|
4987
5050
|
};
|
|
4988
5051
|
}
|
|
4989
|
-
var
|
|
5052
|
+
var Jn = {
|
|
4990
5053
|
"&": "&",
|
|
4991
5054
|
"<": "<",
|
|
4992
5055
|
">": ">",
|
|
4993
5056
|
"\"": """,
|
|
4994
5057
|
"'": "'"
|
|
4995
|
-
},
|
|
5058
|
+
}, Yn = (e) => e.replace(/[&<>"']/g, (e) => Jn[e] ?? e), Xn = (e) => e.replace(/[^A-Za-z0-9_-]/g, "") || "x";
|
|
4996
5059
|
//#endregion
|
|
4997
5060
|
//#region src/canvas/frame.ts
|
|
4998
|
-
function
|
|
5061
|
+
function Zn(e) {
|
|
4999
5062
|
let t = e.contentDocument;
|
|
5000
5063
|
if (!t) throw Error("The canvas iframe has no document");
|
|
5001
5064
|
let n = t;
|
|
@@ -5005,9 +5068,9 @@ function Wn(e) {
|
|
|
5005
5068
|
return t.replaceSync(e), t;
|
|
5006
5069
|
}, a = i("");
|
|
5007
5070
|
n.adoptedStyleSheets = [
|
|
5008
|
-
i(
|
|
5071
|
+
i(Wn),
|
|
5009
5072
|
a,
|
|
5010
|
-
i(
|
|
5073
|
+
i(Gn)
|
|
5011
5074
|
];
|
|
5012
5075
|
let o = n.createElement("link");
|
|
5013
5076
|
o.rel = "stylesheet", n.head.append(o);
|
|
@@ -5017,7 +5080,7 @@ function Wn(e) {
|
|
|
5017
5080
|
};
|
|
5018
5081
|
function u(e, t, n, r) {
|
|
5019
5082
|
a.replaceSync(t), o.href !== r.fontsHref && (o.href = r.fontsHref), s.style.setProperty("--lze-empty-image", JSON.stringify(r.emptyImage)), s.style.setProperty("--lze-empty-video", JSON.stringify(r.emptyVideo)), d(e), l = p(n), s.toggleAttribute("data-lze-modal", r.modal !== null), s.querySelectorAll("dialog.lz-modal").forEach((e) => {
|
|
5020
|
-
e.toggleAttribute("data-lze-open", r.modal !== null && e.id === `m-${
|
|
5083
|
+
e.toggleAttribute("data-lze-open", r.modal !== null && e.id === `m-${Xn(r.modal)}`);
|
|
5021
5084
|
}), s.querySelectorAll(".lz-stack").forEach((e) => {
|
|
5022
5085
|
let t = f(e.id, n), i = t === null ? 0 : r.panels[t] ?? 0;
|
|
5023
5086
|
e.querySelectorAll(":scope > .lz-stack-panels > .lz-stack-panel").forEach((e, t) => e.toggleAttribute("data-on", t === i)), e.querySelectorAll(":scope > .lz-stack-nav > button").forEach((e, t) => e.setAttribute("aria-pressed", String(t === i)));
|
|
@@ -5036,7 +5099,7 @@ function Wn(e) {
|
|
|
5036
5099
|
s.querySelectorAll(".lz-el[style]").forEach((e) => e.removeAttribute("style")), c = i;
|
|
5037
5100
|
}
|
|
5038
5101
|
function f(e, t) {
|
|
5039
|
-
return t.sections.find((t) => t.group?.id && `g-${
|
|
5102
|
+
return t.sections.find((t) => t.group?.id && `g-${Xn(t.group.id)}` === e)?.group?.id ?? null;
|
|
5040
5103
|
}
|
|
5041
5104
|
function p(e) {
|
|
5042
5105
|
let t = {
|
|
@@ -5044,17 +5107,17 @@ function Wn(e) {
|
|
|
5044
5107
|
elements: /* @__PURE__ */ new Map()
|
|
5045
5108
|
};
|
|
5046
5109
|
for (let n of dt(e)) {
|
|
5047
|
-
t.canvases.set(
|
|
5048
|
-
for (let e of n.elements) t.elements.set(
|
|
5110
|
+
t.canvases.set(Xn(n.id), n.id);
|
|
5111
|
+
for (let e of n.elements) t.elements.set(Xn(e.id), {
|
|
5049
5112
|
canvas: n.id,
|
|
5050
5113
|
element: e.id
|
|
5051
5114
|
});
|
|
5052
5115
|
}
|
|
5053
5116
|
return t;
|
|
5054
5117
|
}
|
|
5055
|
-
let m = (e) => n.getElementById(`e-${
|
|
5118
|
+
let m = (e) => n.getElementById(`e-${Xn(e)}`), h = (e) => n.getElementById(`s-${Xn(e)}`) ?? n.getElementById(`m-${Xn(e)}`), g = (e) => h(e)?.querySelector(".lz-frame") ?? null;
|
|
5056
5119
|
function _(e) {
|
|
5057
|
-
let t =
|
|
5120
|
+
let t = Qn(e) ? e.nodeType === 1 ? e : e.parentElement : null, n = t?.closest(".lz-el"), r = n ? l.elements.get(n.id.slice(2)) : void 0;
|
|
5058
5121
|
if (n && r) return {
|
|
5059
5122
|
canvas: r.canvas,
|
|
5060
5123
|
element: r.element,
|
|
@@ -5126,11 +5189,11 @@ function Wn(e) {
|
|
|
5126
5189
|
contentHeight: () => n.documentElement.scrollHeight
|
|
5127
5190
|
};
|
|
5128
5191
|
}
|
|
5129
|
-
var
|
|
5192
|
+
var Qn = (e) => e !== null && typeof e.nodeType == "number", $n = { class: "lze-context-label" }, er = { class: "lze-context-row" }, tr = [
|
|
5130
5193
|
"title",
|
|
5131
5194
|
"aria-label",
|
|
5132
5195
|
"onClick"
|
|
5133
|
-
],
|
|
5196
|
+
], nr = ["data-align"], rr = /* @__PURE__ */ c({
|
|
5134
5197
|
__name: "ContextMenu",
|
|
5135
5198
|
props: { at: {} },
|
|
5136
5199
|
emits: ["close"],
|
|
@@ -5214,8 +5277,8 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5214
5277
|
}, T(w.value ? D(d)("menu.unlock") : D(d)("menu.lock")), 1),
|
|
5215
5278
|
S.value ? (_(), i(e, { key: 2 }, [
|
|
5216
5279
|
n[19] ||= a("hr", null, null, -1),
|
|
5217
|
-
a("p",
|
|
5218
|
-
a("div",
|
|
5280
|
+
a("p", $n, T(D(d)("multi.align")), 1),
|
|
5281
|
+
a("div", er, [(_(!0), i(e, null, x(D(xt), (e) => (_(), i("button", {
|
|
5219
5282
|
key: e,
|
|
5220
5283
|
type: "button",
|
|
5221
5284
|
role: "menuitem",
|
|
@@ -5226,7 +5289,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5226
5289
|
class: "lze-context-align",
|
|
5227
5290
|
"data-align": e,
|
|
5228
5291
|
"aria-hidden": "true"
|
|
5229
|
-
}, null, 8,
|
|
5292
|
+
}, null, 8, nr)], 8, tr))), 128))]),
|
|
5230
5293
|
y.value.length > 2 ? (_(), i(e, { key: 0 }, [a("button", {
|
|
5231
5294
|
type: "button",
|
|
5232
5295
|
role: "menuitem",
|
|
@@ -5262,23 +5325,23 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5262
5325
|
}, T(D(d)("zoom.actual")), 1)
|
|
5263
5326
|
], 64))], 36));
|
|
5264
5327
|
}
|
|
5265
|
-
}),
|
|
5328
|
+
}), ir = ["onClick"], ar = ["data-current", "onClick"], or = [
|
|
5266
5329
|
"title",
|
|
5267
5330
|
"aria-label",
|
|
5268
5331
|
"onClick"
|
|
5269
|
-
],
|
|
5332
|
+
], sr = [
|
|
5270
5333
|
"title",
|
|
5271
5334
|
"aria-label",
|
|
5272
5335
|
"onClick"
|
|
5273
|
-
],
|
|
5336
|
+
], cr = [
|
|
5274
5337
|
"title",
|
|
5275
5338
|
"aria-label",
|
|
5276
5339
|
"onClick"
|
|
5277
|
-
],
|
|
5340
|
+
], lr = ["data-locked"], ur = [
|
|
5278
5341
|
"data-handle",
|
|
5279
5342
|
"aria-label",
|
|
5280
5343
|
"onPointerdown"
|
|
5281
|
-
],
|
|
5344
|
+
], dr = ["title", "aria-label"], fr = ["title", "aria-label"], pr = ["aria-label", "data-below"], mr = ["title", "aria-label"], hr = ["title", "aria-label"], gr = ["title", "aria-label"], _r = ["title", "aria-label"], vr = /* @__PURE__ */ c({
|
|
5282
5345
|
__name: "Overlay",
|
|
5283
5346
|
props: {
|
|
5284
5347
|
layout: {},
|
|
@@ -5378,7 +5441,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5378
5441
|
class: "lze-btn",
|
|
5379
5442
|
onPointerdown: c[0] ||= P(() => {}, ["stop"]),
|
|
5380
5443
|
onClick: (t) => u("generateMobile", e.id)
|
|
5381
|
-
}, T(D(f)("section.generateMobile")), 41,
|
|
5444
|
+
}, T(D(f)("section.generateMobile")), 41, ir)], 4))), 128)),
|
|
5382
5445
|
(_(!0), i(e, null, x(E.value, (e) => (_(), i("button", {
|
|
5383
5446
|
key: `chip-${e.id}`,
|
|
5384
5447
|
type: "button",
|
|
@@ -5390,7 +5453,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5390
5453
|
}),
|
|
5391
5454
|
onPointerdown: c[1] ||= P(() => {}, ["stop"]),
|
|
5392
5455
|
onClick: (t) => D(d).selectCanvas(e.id)
|
|
5393
|
-
}, T(e.label), 45,
|
|
5456
|
+
}, T(e.label), 45, ar))), 128)),
|
|
5394
5457
|
(_(!0), i(e, null, x(E.value.filter((e) => e.empty), (e) => (_(), i("p", {
|
|
5395
5458
|
key: `empty-${e.id}`,
|
|
5396
5459
|
class: "lze-section-empty",
|
|
@@ -5417,7 +5480,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5417
5480
|
}, [s(D(Ke), {
|
|
5418
5481
|
size: 15,
|
|
5419
5482
|
"aria-hidden": "true"
|
|
5420
|
-
})], 8,
|
|
5483
|
+
})], 8, or),
|
|
5421
5484
|
a("button", {
|
|
5422
5485
|
type: "button",
|
|
5423
5486
|
class: "lze-icon-btn",
|
|
@@ -5427,7 +5490,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5427
5490
|
}, [s(D(Ee), {
|
|
5428
5491
|
size: 15,
|
|
5429
5492
|
"aria-hidden": "true"
|
|
5430
|
-
})], 8,
|
|
5493
|
+
})], 8, sr),
|
|
5431
5494
|
D(d).state.draft.sections.length > 1 ? (_(), i("button", {
|
|
5432
5495
|
key: 0,
|
|
5433
5496
|
type: "button",
|
|
@@ -5439,7 +5502,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5439
5502
|
}, [s(D(tt), {
|
|
5440
5503
|
size: 15,
|
|
5441
5504
|
"aria-hidden": "true"
|
|
5442
|
-
})], 8,
|
|
5505
|
+
})], 8, cr)) : r("", !0)
|
|
5443
5506
|
], 36))), 128)),
|
|
5444
5507
|
o.guides && S.value ? (_(), i(e, { key: 2 }, [(_(!0), i(e, null, x(o.guides.lines.x, (e) => (_(), i("div", {
|
|
5445
5508
|
key: `x${e}`,
|
|
@@ -5473,7 +5536,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5473
5536
|
class: "lze-lock",
|
|
5474
5537
|
size: 12,
|
|
5475
5538
|
"aria-hidden": "true"
|
|
5476
|
-
})) : r("", !0)], 12,
|
|
5539
|
+
})) : r("", !0)], 12, lr))), 128)),
|
|
5477
5540
|
g.value ? (_(), i("div", {
|
|
5478
5541
|
key: 3,
|
|
5479
5542
|
class: "lze-handles",
|
|
@@ -5490,7 +5553,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5490
5553
|
"aria-label": D(f)("canvas.resize", { handle: e }),
|
|
5491
5554
|
tabindex: "-1",
|
|
5492
5555
|
onPointerdown: P((t) => u("resize", t, e), ["stop", "prevent"])
|
|
5493
|
-
}, null, 40,
|
|
5556
|
+
}, null, 40, ur))), 128)),
|
|
5494
5557
|
g.value.element.type === "divider" ? r("", !0) : (_(), i("button", {
|
|
5495
5558
|
key: 0,
|
|
5496
5559
|
type: "button",
|
|
@@ -5498,7 +5561,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5498
5561
|
title: D(f)("canvas.radius", { n: g.value.element.style.radius ?? 0 }),
|
|
5499
5562
|
"aria-label": D(f)("canvas.radius", { n: g.value.element.style.radius ?? 0 }),
|
|
5500
5563
|
onPointerdown: c[3] ||= P((e) => u("radius", e), ["stop", "prevent"])
|
|
5501
|
-
}, null, 40,
|
|
5564
|
+
}, null, 40, dr)),
|
|
5502
5565
|
a("button", {
|
|
5503
5566
|
type: "button",
|
|
5504
5567
|
class: "lze-rotate",
|
|
@@ -5508,7 +5571,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5508
5571
|
}, [s(D(Ye), {
|
|
5509
5572
|
size: 13,
|
|
5510
5573
|
"aria-hidden": "true"
|
|
5511
|
-
})], 40,
|
|
5574
|
+
})], 40, fr)
|
|
5512
5575
|
], 4)) : r("", !0),
|
|
5513
5576
|
v.value && o.live.size === 0 ? (_(), i("div", {
|
|
5514
5577
|
key: 4,
|
|
@@ -5531,7 +5594,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5531
5594
|
}, [s(D(Te), {
|
|
5532
5595
|
size: 16,
|
|
5533
5596
|
"aria-hidden": "true"
|
|
5534
|
-
})], 8,
|
|
5597
|
+
})], 8, mr),
|
|
5535
5598
|
a("button", {
|
|
5536
5599
|
type: "button",
|
|
5537
5600
|
class: "lze-icon-btn",
|
|
@@ -5541,7 +5604,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5541
5604
|
}, [s(D(be), {
|
|
5542
5605
|
size: 16,
|
|
5543
5606
|
"aria-hidden": "true"
|
|
5544
|
-
})], 8,
|
|
5607
|
+
})], 8, hr),
|
|
5545
5608
|
a("button", {
|
|
5546
5609
|
type: "button",
|
|
5547
5610
|
class: "lze-icon-btn",
|
|
@@ -5551,7 +5614,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5551
5614
|
}, [s(D(ye), {
|
|
5552
5615
|
size: 16,
|
|
5553
5616
|
"aria-hidden": "true"
|
|
5554
|
-
})], 8,
|
|
5617
|
+
})], 8, gr),
|
|
5555
5618
|
c[10] ||= a("span", {
|
|
5556
5619
|
class: "lze-divider",
|
|
5557
5620
|
"aria-hidden": "true"
|
|
@@ -5566,33 +5629,33 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5566
5629
|
}, [s(D(tt), {
|
|
5567
5630
|
size: 16,
|
|
5568
5631
|
"aria-hidden": "true"
|
|
5569
|
-
})], 8,
|
|
5570
|
-
], 44,
|
|
5632
|
+
})], 8, _r)
|
|
5633
|
+
], 44, pr)) : r("", !0)
|
|
5571
5634
|
], 4));
|
|
5572
5635
|
}
|
|
5573
|
-
}),
|
|
5636
|
+
}), yr = ["data-space"], br = {
|
|
5574
5637
|
key: 0,
|
|
5575
5638
|
class: "lze-render-issue",
|
|
5576
5639
|
role: "alert"
|
|
5577
|
-
},
|
|
5640
|
+
}, xr = {
|
|
5578
5641
|
key: 1,
|
|
5579
5642
|
class: "lze-modal-banner"
|
|
5580
|
-
},
|
|
5643
|
+
}, Sr = ["data-device", "aria-label"], Cr = ["title"], wr = {
|
|
5581
5644
|
key: 2,
|
|
5582
5645
|
class: "lze-empty-hint"
|
|
5583
|
-
},
|
|
5646
|
+
}, Tr = {
|
|
5584
5647
|
key: 3,
|
|
5585
5648
|
class: "lze-hint-bubble",
|
|
5586
5649
|
"aria-live": "polite"
|
|
5587
|
-
},
|
|
5650
|
+
}, Er = ["aria-label"], Dr = ["title", "aria-label"], Or = ["title"], kr = ["title", "aria-label"], Ar = ["title", "aria-label"], jr = .1, Mr = 4, Nr = /* @__PURE__ */ c({
|
|
5588
5651
|
__name: "Canvas",
|
|
5589
5652
|
setup(e, { expose: o }) {
|
|
5590
5653
|
let c = K(), l = c.t, u = b(), d = b(), f = b(), v = b(), y = b(0), x = b(320), S = w({
|
|
5591
5654
|
canvases: /* @__PURE__ */ new Map(),
|
|
5592
5655
|
elements: /* @__PURE__ */ new Map()
|
|
5593
|
-
}), C = b(null), O = w(null), k = w(/* @__PURE__ */ new Map()), A = w(null), ee = b(null), j = null, te = t(() => V((y.value - 48) / c.frameWidth.value,
|
|
5656
|
+
}), C = b(null), O = w(null), k = w(/* @__PURE__ */ new Map()), A = w(null), ee = b(null), j = null, te = t(() => V((y.value - 48) / c.frameWidth.value, jr, 1)), N = t(() => c.state.zoom ?? te.value), ne = t(() => Math.round(N.value * 100));
|
|
5594
5657
|
async function re(e, t) {
|
|
5595
|
-
let n = u.value, r = d.value, i = V(e,
|
|
5658
|
+
let n = u.value, r = d.value, i = V(e, jr, Mr);
|
|
5596
5659
|
if (!n || !r) {
|
|
5597
5660
|
c.state.zoom = i;
|
|
5598
5661
|
return;
|
|
@@ -5674,7 +5737,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5674
5737
|
}
|
|
5675
5738
|
be = !0;
|
|
5676
5739
|
try {
|
|
5677
|
-
let e = E(c.state.draft), t = await
|
|
5740
|
+
let e = E(c.state.draft), t = await qn(e, Kn(c), "edit");
|
|
5678
5741
|
if (!t.ok) {
|
|
5679
5742
|
c.state.renderIssues = t.issues;
|
|
5680
5743
|
return;
|
|
@@ -5832,7 +5895,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5832
5895
|
}
|
|
5833
5896
|
let L = null;
|
|
5834
5897
|
function Ie(e) {
|
|
5835
|
-
let t = e?.closest?.(".lz-stack-nav > button[data-go]"), n = t?.closest(".lz-stack"), r = Number(t?.getAttribute("data-go")), i = n ? c.state.draft.sections.find((e) => e.group?.id && `g-${
|
|
5898
|
+
let t = e?.closest?.(".lz-stack-nav > button[data-go]"), n = t?.closest(".lz-stack"), r = Number(t?.getAttribute("data-go")), i = n ? c.state.draft.sections.find((e) => e.group?.id && `g-${Xn(e.group.id)}` === n.id) : void 0;
|
|
5836
5899
|
return !i?.group?.id || !Number.isInteger(r) ? !1 : (c.state.panels = {
|
|
5837
5900
|
...c.state.panels,
|
|
5838
5901
|
[i.group.id]: r
|
|
@@ -5878,7 +5941,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5878
5941
|
(e.key === "Enter" && !e.shiftKey || e.key === "Escape") && (e.preventDefault(), L.node.blur());
|
|
5879
5942
|
return;
|
|
5880
5943
|
}
|
|
5881
|
-
ge(e) ||
|
|
5944
|
+
ge(e) || Un(c, e);
|
|
5882
5945
|
}
|
|
5883
5946
|
let Ve = b(null);
|
|
5884
5947
|
function He(e, t) {
|
|
@@ -5918,7 +5981,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5918
5981
|
let Ke = null, qe = null;
|
|
5919
5982
|
g(() => {
|
|
5920
5983
|
if (!v.value || !u.value) return;
|
|
5921
|
-
j =
|
|
5984
|
+
j = Zn(v.value);
|
|
5922
5985
|
let e = j.doc;
|
|
5923
5986
|
e.addEventListener("pointerdown", Le), e.addEventListener("dblclick", Re), e.addEventListener("keydown", Be), e.addEventListener("pointerover", Ue), e.addEventListener("contextmenu", (e) => He(e, !0)), e.addEventListener("wheel", oe, { passive: !1 }), e.addEventListener("pointermove", ue), e.addEventListener("pointerup", de), e.addEventListener("pointercancel", de), e.documentElement.addEventListener("pointerleave", () => C.value = null), e.addEventListener("click", We, !0), e.addEventListener("submit", We, !0);
|
|
5924
5987
|
let t = new ((e.defaultView?.ResizeObserver) ?? ResizeObserver)(() => we());
|
|
@@ -5945,8 +6008,8 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5945
6008
|
onWheel: ae,
|
|
5946
6009
|
onContextmenu: t[8] ||= (e) => He(e, !1)
|
|
5947
6010
|
}, [
|
|
5948
|
-
D(c).state.renderIssues.length ? (_(), i("p",
|
|
5949
|
-
D(c).activeModal.value ? (_(), i("div",
|
|
6011
|
+
D(c).state.renderIssues.length ? (_(), i("p", br, T(D(l)("canvas.invalid", { issue: D(Rn)(D(c).state.renderIssues[0]) })), 1)) : r("", !0),
|
|
6012
|
+
D(c).activeModal.value ? (_(), i("div", xr, [a("span", null, T(D(l)("canvas.editingModal", { title: D(c).activeModal.value.title })), 1), a("button", {
|
|
5950
6013
|
type: "button",
|
|
5951
6014
|
class: "lze-btn",
|
|
5952
6015
|
onClick: t[0] ||= (e) => D(c).openModal(null)
|
|
@@ -5978,7 +6041,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5978
6041
|
width: `${D(c).frameWidth.value}px`,
|
|
5979
6042
|
height: `${x.value}px`
|
|
5980
6043
|
})
|
|
5981
|
-
}, null, 12,
|
|
6044
|
+
}, null, 12, Cr), s(vr, {
|
|
5982
6045
|
layout: S.value,
|
|
5983
6046
|
scale: N.value,
|
|
5984
6047
|
hovered: C.value,
|
|
@@ -5998,10 +6061,10 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
5998
6061
|
"live",
|
|
5999
6062
|
"rotation",
|
|
6000
6063
|
"frozen"
|
|
6001
|
-
])], 4)], 12,
|
|
6002
|
-
ve.value ? (_(), i("p",
|
|
6003
|
-
ee.value ? (_(), i("p",
|
|
6004
|
-
Ve.value ? (_(), n(
|
|
6064
|
+
])], 4)], 12, Sr),
|
|
6065
|
+
ve.value ? (_(), i("p", wr, T(D(c).activeModal.value ? D(l)("canvas.emptyModal") : D(l)("canvas.emptyPage")), 1)) : r("", !0),
|
|
6066
|
+
ee.value ? (_(), i("p", Tr, T(ee.value), 1)) : r("", !0),
|
|
6067
|
+
Ve.value ? (_(), n(rr, {
|
|
6005
6068
|
key: 4,
|
|
6006
6069
|
at: Ve.value,
|
|
6007
6070
|
onClose: t[1] ||= (e) => Ve.value = null
|
|
@@ -6017,31 +6080,31 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
6017
6080
|
title: D(l)("zoom.out"),
|
|
6018
6081
|
"aria-label": D(l)("zoom.out"),
|
|
6019
6082
|
onClick: t[2] ||= (e) => F(.8)
|
|
6020
|
-
}, "−", 8,
|
|
6083
|
+
}, "−", 8, Dr),
|
|
6021
6084
|
a("button", {
|
|
6022
6085
|
type: "button",
|
|
6023
6086
|
class: "lze-zoom-value",
|
|
6024
6087
|
title: D(l)("zoom.fit"),
|
|
6025
6088
|
onClick: t[3] ||= (e) => ie()
|
|
6026
|
-
}, T(ne.value) + "%", 9,
|
|
6089
|
+
}, T(ne.value) + "%", 9, Or),
|
|
6027
6090
|
a("button", {
|
|
6028
6091
|
type: "button",
|
|
6029
6092
|
class: "lze-zoom-btn",
|
|
6030
6093
|
title: D(l)("zoom.in"),
|
|
6031
6094
|
"aria-label": D(l)("zoom.in"),
|
|
6032
6095
|
onClick: t[4] ||= (e) => F(1.25)
|
|
6033
|
-
}, "+", 8,
|
|
6096
|
+
}, "+", 8, kr),
|
|
6034
6097
|
a("button", {
|
|
6035
6098
|
type: "button",
|
|
6036
6099
|
class: "lze-zoom-btn",
|
|
6037
6100
|
title: D(l)("zoom.actual"),
|
|
6038
6101
|
"aria-label": D(l)("zoom.actual"),
|
|
6039
6102
|
onClick: t[5] ||= (e) => re(1)
|
|
6040
|
-
}, "1:1", 8,
|
|
6041
|
-
], 8,
|
|
6042
|
-
], 40,
|
|
6103
|
+
}, "1:1", 8, Ar)
|
|
6104
|
+
], 8, Er)
|
|
6105
|
+
], 40, yr));
|
|
6043
6106
|
}
|
|
6044
|
-
}),
|
|
6107
|
+
}), Pr = ["title", "srcdoc"], Fr = /* @__PURE__ */ c({
|
|
6045
6108
|
__name: "Preview",
|
|
6046
6109
|
setup(e) {
|
|
6047
6110
|
let t = K(), n = b(), r = w(""), o = b({
|
|
@@ -6049,7 +6112,7 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
6049
6112
|
height: 0
|
|
6050
6113
|
}), s = null;
|
|
6051
6114
|
async function c() {
|
|
6052
|
-
let e = await
|
|
6115
|
+
let e = await qn(E(t.state.draft), Kn(t), "public");
|
|
6053
6116
|
e.ok && (r.value = e.page.html);
|
|
6054
6117
|
}
|
|
6055
6118
|
M([() => t.state.draft, t.previews.version], c, {
|
|
@@ -6083,68 +6146,9 @@ var Gn = (e) => e !== null && typeof e.nodeType == "number", Kn = { class: "lze-
|
|
|
6083
6146
|
height: `${(o.value.height - 48) / l()}px`,
|
|
6084
6147
|
transform: `scale(${l()})`
|
|
6085
6148
|
})
|
|
6086
|
-
}, null, 12,
|
|
6149
|
+
}, null, 12, Pr)], 4)], 512));
|
|
6087
6150
|
}
|
|
6088
|
-
})
|
|
6089
|
-
//#endregion
|
|
6090
|
-
//#region src/client.ts
|
|
6091
|
-
function kr({ endpoint: e, headers: t = {}, fetch: n = globalThis.fetch.bind(globalThis) }) {
|
|
6092
|
-
let r = e.replace(/\/+$/, "");
|
|
6093
|
-
return async (e, ...i) => {
|
|
6094
|
-
let [a = "GET", o = "/"] = e.split(" "), [s, c] = o.includes(":") ? [Pr(i[0]) ? i[0] : {}, i[1]] : [{}, i[0]], l = o.replace(/:([a-z]+)/g, (e, t) => encodeURIComponent(String(s[t] ?? ""))), u = typeof FormData < "u" && c instanceof FormData, d = a === "GET" && c && typeof c == "object" && !u ? jr(c) : "", f = {
|
|
6095
|
-
method: a,
|
|
6096
|
-
credentials: "same-origin",
|
|
6097
|
-
headers: {
|
|
6098
|
-
Accept: "application/json",
|
|
6099
|
-
...c !== void 0 && a !== "GET" && !u ? { "Content-Type": "application/json" } : {},
|
|
6100
|
-
...Mr(),
|
|
6101
|
-
...t
|
|
6102
|
-
},
|
|
6103
|
-
...c !== void 0 && a !== "GET" ? { body: u ? c : JSON.stringify(c) } : {}
|
|
6104
|
-
}, p;
|
|
6105
|
-
try {
|
|
6106
|
-
p = await n(`${r}${l === "/" ? "" : l}${d}`, f);
|
|
6107
|
-
} catch {
|
|
6108
|
-
return {
|
|
6109
|
-
ok: !1,
|
|
6110
|
-
failure: { kind: "offline" }
|
|
6111
|
-
};
|
|
6112
|
-
}
|
|
6113
|
-
let m = p.status === 204 ? null : await p.json().catch(() => null);
|
|
6114
|
-
return p.ok ? {
|
|
6115
|
-
ok: !0,
|
|
6116
|
-
value: m
|
|
6117
|
-
} : {
|
|
6118
|
-
ok: !1,
|
|
6119
|
-
failure: Ar(p.status, m)
|
|
6120
|
-
};
|
|
6121
|
-
};
|
|
6122
|
-
}
|
|
6123
|
-
function Ar(e, t) {
|
|
6124
|
-
let n = Pr(t) && typeof t.message == "string" ? t.message : `HTTP ${e}`;
|
|
6125
|
-
return e === 409 && Pr(t) && typeof t.revision == "number" ? {
|
|
6126
|
-
kind: "conflict",
|
|
6127
|
-
message: n,
|
|
6128
|
-
revision: t.revision
|
|
6129
|
-
} : e === 422 ? {
|
|
6130
|
-
kind: "invalid",
|
|
6131
|
-
message: n,
|
|
6132
|
-
issues: Pr(t) && Array.isArray(t.issues) ? t.issues.filter(Nr) : []
|
|
6133
|
-
} : {
|
|
6134
|
-
kind: "http",
|
|
6135
|
-
status: e,
|
|
6136
|
-
message: n
|
|
6137
|
-
};
|
|
6138
|
-
}
|
|
6139
|
-
function jr(e) {
|
|
6140
|
-
let t = Object.entries(e).filter(([, e]) => e != null);
|
|
6141
|
-
return t.length === 0 ? "" : `?${new URLSearchParams(t.map(([e, t]) => [e, String(t)]))}`;
|
|
6142
|
-
}
|
|
6143
|
-
function Mr() {
|
|
6144
|
-
let e = typeof document > "u" ? null : /(?:^|;\s*)XSRF-TOKEN=([^;]+)/.exec(document.cookie);
|
|
6145
|
-
return e?.[1] ? { "X-XSRF-TOKEN": decodeURIComponent(e[1]) } : {};
|
|
6146
|
-
}
|
|
6147
|
-
var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "string" && typeof e.code == "string", Pr = (e) => typeof e == "object" && !!e && !Array.isArray(e), Fr = [
|
|
6151
|
+
}), Ir = [
|
|
6148
6152
|
"data-variant",
|
|
6149
6153
|
"data-size",
|
|
6150
6154
|
"disabled",
|
|
@@ -6168,12 +6172,12 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6168
6172
|
"data-size": e.size,
|
|
6169
6173
|
disabled: e.disabled,
|
|
6170
6174
|
title: e.title
|
|
6171
|
-
}, [S(t.$slots, "default")], 8,
|
|
6175
|
+
}, [S(t.$slots, "default")], 8, Ir));
|
|
6172
6176
|
}
|
|
6173
|
-
}),
|
|
6177
|
+
}), Lr = ["data-size", "aria-labelledby"], Rr = { class: "lze-dialog-body" }, zr = { class: "lze-dialog-head" }, Br = ["id"], Vr = {
|
|
6174
6178
|
key: 0,
|
|
6175
6179
|
class: "lze-hint"
|
|
6176
|
-
},
|
|
6180
|
+
}, Hr = ["aria-label"], Ur = /* @__PURE__ */ c({
|
|
6177
6181
|
__name: "Dialog",
|
|
6178
6182
|
props: /*@__PURE__*/ d({
|
|
6179
6183
|
title: {},
|
|
@@ -6205,7 +6209,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6205
6209
|
onClose: u[1] ||= (e) => t.value = !1,
|
|
6206
6210
|
onPointerdown: d,
|
|
6207
6211
|
onClick: f
|
|
6208
|
-
}, [a("div",
|
|
6212
|
+
}, [a("div", Rr, [a("header", zr, [a("div", null, [a("h2", { id: D(o) }, T(e.title), 9, Br), e.description ? (_(), i("p", Vr, T(e.description), 1)) : r("", !0)]), a("button", {
|
|
6209
6213
|
type: "button",
|
|
6210
6214
|
class: "lze-icon-btn",
|
|
6211
6215
|
"aria-label": D(c)("common.close"),
|
|
@@ -6213,19 +6217,19 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6213
6217
|
}, [s(D(ot), {
|
|
6214
6218
|
size: 16,
|
|
6215
6219
|
"aria-hidden": "true"
|
|
6216
|
-
})], 8,
|
|
6220
|
+
})], 8, Hr)]), t.value ? S(l.$slots, "default", {}, void 0, void 0, 0) : r("", !0)])], 40, Lr));
|
|
6217
6221
|
}
|
|
6218
|
-
}),
|
|
6222
|
+
}), Wr = { class: "lze-dialog-actions" }, Gr = /* @__PURE__ */ c({
|
|
6219
6223
|
__name: "ConflictDialog",
|
|
6220
6224
|
setup(e) {
|
|
6221
6225
|
let t = K(), r = t.dialogModel("conflict");
|
|
6222
|
-
return (e, i) => (_(), n(
|
|
6226
|
+
return (e, i) => (_(), n(Ur, {
|
|
6223
6227
|
open: D(r),
|
|
6224
6228
|
"onUpdate:open": i[2] ||= (e) => u(r) ? r.value = e : null,
|
|
6225
6229
|
title: D(t).t("conflict.title"),
|
|
6226
6230
|
description: D(t).t("conflict.body")
|
|
6227
6231
|
}, {
|
|
6228
|
-
default: N(() => [a("div",
|
|
6232
|
+
default: N(() => [a("div", Wr, [s(q, {
|
|
6229
6233
|
variant: "primary",
|
|
6230
6234
|
size: "md",
|
|
6231
6235
|
onClick: i[0] ||= (e) => D(t).reloadPage()
|
|
@@ -6246,13 +6250,13 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6246
6250
|
"description"
|
|
6247
6251
|
]));
|
|
6248
6252
|
}
|
|
6249
|
-
}),
|
|
6253
|
+
}), Kr = [
|
|
6250
6254
|
"data-tone",
|
|
6251
6255
|
"title",
|
|
6252
6256
|
"aria-label",
|
|
6253
6257
|
"aria-pressed",
|
|
6254
6258
|
"disabled"
|
|
6255
|
-
],
|
|
6259
|
+
], qr = /* @__PURE__ */ c({
|
|
6256
6260
|
__name: "IconButton",
|
|
6257
6261
|
props: {
|
|
6258
6262
|
label: {},
|
|
@@ -6275,15 +6279,15 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6275
6279
|
"aria-label": e.label,
|
|
6276
6280
|
"aria-pressed": e.active,
|
|
6277
6281
|
disabled: e.disabled
|
|
6278
|
-
}, [S(t.$slots, "default")], 8,
|
|
6282
|
+
}, [S(t.$slots, "default")], 8, Kr));
|
|
6279
6283
|
}
|
|
6280
|
-
}),
|
|
6284
|
+
}), Jr = { class: "lze-asset-grid" }, Yr = ["disabled"], Xr = { class: "lze-hint" }, Zr = ["aria-label", "onClick"], Qr = ["src", "alt"], $r = {
|
|
6281
6285
|
key: 0,
|
|
6282
6286
|
class: "lze-hint"
|
|
6283
|
-
},
|
|
6287
|
+
}, ei = {
|
|
6284
6288
|
key: 1,
|
|
6285
6289
|
class: "lze-hint"
|
|
6286
|
-
},
|
|
6290
|
+
}, ti = /* @__PURE__ */ c({
|
|
6287
6291
|
__name: "MediaLibrary",
|
|
6288
6292
|
setup(o) {
|
|
6289
6293
|
let c = K(), l = c.t, u = b(), d = b(!1), f = t({
|
|
@@ -6324,7 +6328,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6324
6328
|
type: "image"
|
|
6325
6329
|
}, void 0, e.ref), f.value = !1;
|
|
6326
6330
|
}
|
|
6327
|
-
return (t, o) => (_(), n(
|
|
6331
|
+
return (t, o) => (_(), n(Ur, {
|
|
6328
6332
|
open: f.value,
|
|
6329
6333
|
"onUpdate:open": o[1] ||= (e) => f.value = e,
|
|
6330
6334
|
title: D(l)("library.title"),
|
|
@@ -6332,7 +6336,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6332
6336
|
size: "lg"
|
|
6333
6337
|
}, {
|
|
6334
6338
|
default: N(() => [
|
|
6335
|
-
a("div",
|
|
6339
|
+
a("div", Jr, [
|
|
6336
6340
|
a("button", {
|
|
6337
6341
|
type: "button",
|
|
6338
6342
|
class: "lze-upload-tile",
|
|
@@ -6344,8 +6348,8 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6344
6348
|
"aria-hidden": "true"
|
|
6345
6349
|
}),
|
|
6346
6350
|
a("strong", null, T(d.value ? D(l)("library.uploading") : D(l)("library.upload")), 1),
|
|
6347
|
-
a("span",
|
|
6348
|
-
], 8,
|
|
6351
|
+
a("span", Xr, T(D(l)("library.formats")), 1)
|
|
6352
|
+
], 8, Yr),
|
|
6349
6353
|
a("input", {
|
|
6350
6354
|
ref_key: "input",
|
|
6351
6355
|
ref: u,
|
|
@@ -6368,7 +6372,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6368
6372
|
src: e.thumb,
|
|
6369
6373
|
alt: e.name,
|
|
6370
6374
|
loading: "lazy"
|
|
6371
|
-
}, null, 8,
|
|
6375
|
+
}, null, 8, Qr), a("figcaption", null, T(e.name), 1)], 8, Zr), s(qr, {
|
|
6372
6376
|
class: "lze-asset-delete",
|
|
6373
6377
|
tone: "danger",
|
|
6374
6378
|
label: D(l)("library.delete", { name: e.name }),
|
|
@@ -6381,8 +6385,8 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6381
6385
|
_: 1
|
|
6382
6386
|
}, 8, ["label", "onClick"])]))), 128))
|
|
6383
6387
|
]),
|
|
6384
|
-
D(c).state.workspace.assets.length === 0 ? (_(), i("p",
|
|
6385
|
-
h.value ? (_(), i("p",
|
|
6388
|
+
D(c).state.workspace.assets.length === 0 ? (_(), i("p", $r, T(D(l)("media.empty")), 1)) : r("", !0),
|
|
6389
|
+
h.value ? (_(), i("p", ei, T(h.value), 1)) : r("", !0)
|
|
6386
6390
|
]),
|
|
6387
6391
|
_: 1
|
|
6388
6392
|
}, 8, [
|
|
@@ -6391,14 +6395,14 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6391
6395
|
"description"
|
|
6392
6396
|
]));
|
|
6393
6397
|
}
|
|
6394
|
-
}),
|
|
6398
|
+
}), ni = { class: "lze-field" }, ri = ["for"], ii = {
|
|
6395
6399
|
key: 1,
|
|
6396
6400
|
class: "lze-label"
|
|
6397
|
-
},
|
|
6401
|
+
}, ai = {
|
|
6398
6402
|
key: 2,
|
|
6399
6403
|
class: "lze-error",
|
|
6400
6404
|
role: "alert"
|
|
6401
|
-
},
|
|
6405
|
+
}, oi = {
|
|
6402
6406
|
key: 3,
|
|
6403
6407
|
class: "lze-hint"
|
|
6404
6408
|
}, J = /* @__PURE__ */ c({
|
|
@@ -6410,23 +6414,23 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6410
6414
|
error: {}
|
|
6411
6415
|
},
|
|
6412
6416
|
setup(e) {
|
|
6413
|
-
return (t, n) => (_(), i("div",
|
|
6417
|
+
return (t, n) => (_(), i("div", ni, [
|
|
6414
6418
|
e.id ? (_(), i("label", {
|
|
6415
6419
|
key: 0,
|
|
6416
6420
|
class: "lze-label",
|
|
6417
6421
|
for: e.id
|
|
6418
|
-
}, [o(T(e.label), 1), S(t.$slots, "aside")], 8,
|
|
6422
|
+
}, [o(T(e.label), 1), S(t.$slots, "aside")], 8, ri)) : (_(), i("span", ii, [o(T(e.label), 1), S(t.$slots, "aside")])),
|
|
6419
6423
|
S(t.$slots, "default"),
|
|
6420
|
-
e.error ? (_(), i("p",
|
|
6424
|
+
e.error ? (_(), i("p", ai, T(e.error), 1)) : e.hint ? (_(), i("p", oi, T(e.hint), 1)) : r("", !0)
|
|
6421
6425
|
]));
|
|
6422
6426
|
}
|
|
6423
|
-
}),
|
|
6427
|
+
}), si = [
|
|
6424
6428
|
"id",
|
|
6425
6429
|
"rows",
|
|
6426
6430
|
"maxlength",
|
|
6427
6431
|
"placeholder",
|
|
6428
6432
|
"aria-label"
|
|
6429
|
-
],
|
|
6433
|
+
], ci = [
|
|
6430
6434
|
"id",
|
|
6431
6435
|
"type",
|
|
6432
6436
|
"maxlength",
|
|
@@ -6458,7 +6462,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6458
6462
|
placeholder: e.placeholder,
|
|
6459
6463
|
"aria-label": e.label,
|
|
6460
6464
|
onChange: a[1] ||= (e) => r("commit")
|
|
6461
|
-
}, null, 40,
|
|
6465
|
+
}, null, 40, si)), [[ee, n.value]]) : ne((_(), i("input", {
|
|
6462
6466
|
key: 1,
|
|
6463
6467
|
id: e.id,
|
|
6464
6468
|
"onUpdate:modelValue": a[2] ||= (e) => n.value = e,
|
|
@@ -6468,9 +6472,9 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6468
6472
|
placeholder: e.placeholder,
|
|
6469
6473
|
"aria-label": e.label,
|
|
6470
6474
|
onChange: a[3] ||= (e) => r("commit")
|
|
6471
|
-
}, null, 40,
|
|
6475
|
+
}, null, 40, ci)), [[A, n.value]]);
|
|
6472
6476
|
}
|
|
6473
|
-
}),
|
|
6477
|
+
}), li = { class: "lze-dialog-actions" }, ui = /* @__PURE__ */ c({
|
|
6474
6478
|
__name: "NewPageDialog",
|
|
6475
6479
|
setup(r) {
|
|
6476
6480
|
let c = K(), l = c.t, d = {
|
|
@@ -6497,7 +6501,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6497
6501
|
async function v() {
|
|
6498
6502
|
p.creating = !0, p.issues = await c.createPage(p.title.trim(), p.slug.trim()), p.creating = !1;
|
|
6499
6503
|
}
|
|
6500
|
-
return (t, r) => (_(), n(
|
|
6504
|
+
return (t, r) => (_(), n(Ur, {
|
|
6501
6505
|
open: D(f),
|
|
6502
6506
|
"onUpdate:open": r[3] ||= (e) => u(f) ? f.value = e : null,
|
|
6503
6507
|
title: D(l)("newPage.title"),
|
|
@@ -6554,7 +6558,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6554
6558
|
class: "lze-error",
|
|
6555
6559
|
role: "alert"
|
|
6556
6560
|
}, T(e.message), 1))), 128)),
|
|
6557
|
-
a("div",
|
|
6561
|
+
a("div", li, [s(q, {
|
|
6558
6562
|
variant: "primary",
|
|
6559
6563
|
size: "md",
|
|
6560
6564
|
type: "submit",
|
|
@@ -6577,7 +6581,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6577
6581
|
"description"
|
|
6578
6582
|
]));
|
|
6579
6583
|
}
|
|
6580
|
-
}),
|
|
6584
|
+
}), di = ["aria-label"], fi = { class: "lze-label" }, pi = ["data-thumb"], mi = ["src"], hi = { class: "lze-row" }, gi = /* @__PURE__ */ c({
|
|
6581
6585
|
__name: "ImageField",
|
|
6582
6586
|
props: /*@__PURE__*/ d({
|
|
6583
6587
|
label: {},
|
|
@@ -6610,7 +6614,7 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6610
6614
|
role: "group",
|
|
6611
6615
|
"aria-label": u.label
|
|
6612
6616
|
}, [
|
|
6613
|
-
a("span",
|
|
6617
|
+
a("span", fi, T(u.label), 1),
|
|
6614
6618
|
p.value ? (_(), i("div", {
|
|
6615
6619
|
key: 0,
|
|
6616
6620
|
class: "lze-image-preview",
|
|
@@ -6618,8 +6622,8 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6618
6622
|
}, [a("img", {
|
|
6619
6623
|
src: p.value,
|
|
6620
6624
|
alt: ""
|
|
6621
|
-
}, null, 8,
|
|
6622
|
-
a("div",
|
|
6625
|
+
}, null, 8, mi)], 8, pi)) : r("", !0),
|
|
6626
|
+
a("div", hi, [s(q, { onClick: h }, {
|
|
6623
6627
|
default: N(() => [o(T(e.choose ?? D(f).t("el.chooseFromLibrary")), 1)]),
|
|
6624
6628
|
_: 1
|
|
6625
6629
|
}), l.value ? (_(), n(q, {
|
|
@@ -6644,15 +6648,15 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6644
6648
|
"placeholder",
|
|
6645
6649
|
"label"
|
|
6646
6650
|
])) : r("", !0)
|
|
6647
|
-
], 8,
|
|
6651
|
+
], 8, di));
|
|
6648
6652
|
}
|
|
6649
|
-
}),
|
|
6653
|
+
}), _i = { class: "lze-number" }, vi = { class: "lze-number-label" }, yi = [
|
|
6650
6654
|
"value",
|
|
6651
6655
|
"min",
|
|
6652
6656
|
"max",
|
|
6653
6657
|
"step",
|
|
6654
6658
|
"disabled"
|
|
6655
|
-
],
|
|
6659
|
+
], bi = {
|
|
6656
6660
|
key: 0,
|
|
6657
6661
|
class: "lze-number-suffix"
|
|
6658
6662
|
}, X = /* @__PURE__ */ c({
|
|
@@ -6675,8 +6679,8 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6675
6679
|
let t = e.target.value, r = Number(t);
|
|
6676
6680
|
t === "" ? n.value = void 0 : Number.isFinite(r) && (n.value = Math.min(o.max ?? Infinity, Math.max(o.min ?? -Infinity, r)));
|
|
6677
6681
|
}
|
|
6678
|
-
return (t, o) => (_(), i("label",
|
|
6679
|
-
a("span",
|
|
6682
|
+
return (t, o) => (_(), i("label", _i, [
|
|
6683
|
+
a("span", vi, T(e.label), 1),
|
|
6680
6684
|
a("input", {
|
|
6681
6685
|
type: "number",
|
|
6682
6686
|
value: n.value ?? "",
|
|
@@ -6686,15 +6690,15 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6686
6690
|
disabled: e.disabled,
|
|
6687
6691
|
onInput: c,
|
|
6688
6692
|
onChange: o[0] ||= (e) => s("commit")
|
|
6689
|
-
}, null, 40,
|
|
6690
|
-
e.suffix ? (_(), i("span",
|
|
6693
|
+
}, null, 40, yi),
|
|
6694
|
+
e.suffix ? (_(), i("span", bi, T(e.suffix), 1)) : r("", !0)
|
|
6691
6695
|
]));
|
|
6692
6696
|
}
|
|
6693
|
-
}),
|
|
6697
|
+
}), xi = [
|
|
6694
6698
|
"id",
|
|
6695
6699
|
"data-compact",
|
|
6696
6700
|
"aria-label"
|
|
6697
|
-
],
|
|
6701
|
+
], Si = ["selected"], Ci = ["selected"], Z = /* @__PURE__ */ c({
|
|
6698
6702
|
__name: "SelectInput",
|
|
6699
6703
|
props: /*@__PURE__*/ d({
|
|
6700
6704
|
options: {},
|
|
@@ -6724,12 +6728,12 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6724
6728
|
value: "",
|
|
6725
6729
|
disabled: "",
|
|
6726
6730
|
selected: a.value === null || a.value === void 0 || a.value === ""
|
|
6727
|
-
}, T(t.placeholder), 9,
|
|
6731
|
+
}, T(t.placeholder), 9, Si)) : r("", !0), (_(!0), i(e, null, x(t.options, (e) => (_(), i("option", {
|
|
6728
6732
|
key: e.value,
|
|
6729
6733
|
selected: e.value === a.value
|
|
6730
|
-
}, T(e.label), 9,
|
|
6734
|
+
}, T(e.label), 9, Ci))), 128))], 40, xi));
|
|
6731
6735
|
}
|
|
6732
|
-
}),
|
|
6736
|
+
}), wi = { class: "lze-toggle" }, Ti = ["checked"], Q = /* @__PURE__ */ c({
|
|
6733
6737
|
__name: "Toggle",
|
|
6734
6738
|
props: /*@__PURE__*/ d({ label: {} }, {
|
|
6735
6739
|
modelValue: {
|
|
@@ -6741,15 +6745,15 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6741
6745
|
emits: /*@__PURE__*/ d(["commit"], ["update:modelValue"]),
|
|
6742
6746
|
setup(e, { emit: t }) {
|
|
6743
6747
|
let n = k(e, "modelValue"), r = t;
|
|
6744
|
-
return (t, o) => (_(), i("label",
|
|
6748
|
+
return (t, o) => (_(), i("label", wi, [a("input", {
|
|
6745
6749
|
type: "checkbox",
|
|
6746
6750
|
checked: n.value === !0,
|
|
6747
6751
|
onChange: o[0] ||= (e) => {
|
|
6748
6752
|
n.value = e.target.checked, r("commit");
|
|
6749
6753
|
}
|
|
6750
|
-
}, null, 40,
|
|
6754
|
+
}, null, 40, Ti), a("span", null, T(e.label), 1)]));
|
|
6751
6755
|
}
|
|
6752
|
-
}),
|
|
6756
|
+
}), Ei = {
|
|
6753
6757
|
none: { kind: "none" },
|
|
6754
6758
|
whatsapp: {
|
|
6755
6759
|
kind: "text",
|
|
@@ -6775,16 +6779,16 @@ var Nr = (e) => Pr(e) && typeof e.path == "string" && typeof e.message == "strin
|
|
|
6775
6779
|
back: { kind: "none" },
|
|
6776
6780
|
step_next: { kind: "none" },
|
|
6777
6781
|
step_prev: { kind: "none" }
|
|
6778
|
-
},
|
|
6779
|
-
function
|
|
6782
|
+
}, Di = (e) => Object.hasOwn(Ei, e);
|
|
6783
|
+
function Oi(e) {
|
|
6780
6784
|
return !e || e.kind === "image" || e.default === void 0 ? "" : String(e.default);
|
|
6781
6785
|
}
|
|
6782
6786
|
//#endregion
|
|
6783
6787
|
//#region src/panels/ActionPicker.vue?vue&type=script&setup=true&lang.ts
|
|
6784
|
-
var
|
|
6788
|
+
var ki = { class: "lze-field" }, Ai = ["id"], ji = ["value"], Mi = {
|
|
6785
6789
|
key: 4,
|
|
6786
6790
|
class: "lze-hint"
|
|
6787
|
-
},
|
|
6791
|
+
}, Ni = /* @__PURE__ */ c({
|
|
6788
6792
|
__name: "ActionPicker",
|
|
6789
6793
|
props: {
|
|
6790
6794
|
modelValue: {},
|
|
@@ -6792,7 +6796,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
6792
6796
|
},
|
|
6793
6797
|
emits: ["update:modelValue", "commit"],
|
|
6794
6798
|
setup(o, { emit: c }) {
|
|
6795
|
-
let l = o, u = c, d = K(), f = d.t, p = O(), m = t(() => l.modelValue?.type || "none"), h = t(() => l.modelValue?.value ?? ""), g = t(() => d.catalog.value.actions.find((e) => e.type === m.value) ?? null), v = t(() =>
|
|
6799
|
+
let l = o, u = c, d = K(), f = d.t, p = O(), m = t(() => l.modelValue?.type || "none"), h = t(() => l.modelValue?.value ?? ""), g = t(() => d.catalog.value.actions.find((e) => e.type === m.value) ?? null), v = t(() => Di(m.value) ? Ei[m.value] : null), y = t(() => {
|
|
6796
6800
|
let e = [...re.map((e) => ({
|
|
6797
6801
|
value: e,
|
|
6798
6802
|
label: f(`action.${e}`)
|
|
@@ -6815,7 +6819,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
6815
6819
|
let t = d.catalog.value.actions.find((t) => t.type === e);
|
|
6816
6820
|
u("update:modelValue", {
|
|
6817
6821
|
type: e,
|
|
6818
|
-
value: t ?
|
|
6822
|
+
value: t ? Oi(t.value) : h.value
|
|
6819
6823
|
}), u("commit");
|
|
6820
6824
|
}
|
|
6821
6825
|
function w(e) {
|
|
@@ -6828,7 +6832,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
6828
6832
|
let e = g.value?.value;
|
|
6829
6833
|
return e?.kind === "number" ? h.value === "" ? e.default : Number(h.value) : e?.kind === "toggle" ? h.value === "" ? e.default : h.value === "true" : h.value;
|
|
6830
6834
|
});
|
|
6831
|
-
return (t, c) => (_(), i("div",
|
|
6835
|
+
return (t, c) => (_(), i("div", ki, [s(Z, {
|
|
6832
6836
|
"model-value": m.value,
|
|
6833
6837
|
options: y.value,
|
|
6834
6838
|
label: o.label,
|
|
@@ -6865,7 +6869,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
6865
6869
|
]), a("datalist", { id: D(p) }, [(_(!0), i(e, null, x(D(d).state.draft.sections, (e) => (_(), i("option", {
|
|
6866
6870
|
key: e.id,
|
|
6867
6871
|
value: e.id
|
|
6868
|
-
}, null, 8,
|
|
6872
|
+
}, null, 8, ji))), 128))], 8, Ai)], 64)) : v.value.kind === "modal" ? (_(), n(Z, {
|
|
6869
6873
|
key: 2,
|
|
6870
6874
|
"model-value": h.value,
|
|
6871
6875
|
options: b.value,
|
|
@@ -6891,7 +6895,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
6891
6895
|
"options",
|
|
6892
6896
|
"label",
|
|
6893
6897
|
"placeholder"
|
|
6894
|
-
])) : v.value.kind === "submit" ? (_(), i("p",
|
|
6898
|
+
])) : v.value.kind === "submit" ? (_(), i("p", Mi, T(D(f)("action.submitHint")), 1)) : r("", !0)], 64)) : g.value?.value ? (_(), n(Fi, {
|
|
6895
6899
|
key: 1,
|
|
6896
6900
|
field: g.value.value,
|
|
6897
6901
|
"model-value": E.value,
|
|
@@ -6899,7 +6903,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
6899
6903
|
onCommit: c[10] ||= (e) => u("commit")
|
|
6900
6904
|
}, null, 8, ["field", "model-value"])) : r("", !0)]));
|
|
6901
6905
|
}
|
|
6902
|
-
}),
|
|
6906
|
+
}), Pi = { class: "lze-choices" }, Fi = /* @__PURE__ */ c({
|
|
6903
6907
|
__name: "FieldControl",
|
|
6904
6908
|
props: {
|
|
6905
6909
|
field: {},
|
|
@@ -7024,7 +7028,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7024
7028
|
key: 4,
|
|
7025
7029
|
label: f.value
|
|
7026
7030
|
}, {
|
|
7027
|
-
default: N(() => [a("div",
|
|
7031
|
+
default: N(() => [a("div", Pi, [(_(!0), i(e, null, x(m.value.field.options, (e) => (_(), n(Q, {
|
|
7028
7032
|
key: e.value,
|
|
7029
7033
|
"model-value": m.value.value.includes(e.value),
|
|
7030
7034
|
label: D(u).i18n.localized(e.label),
|
|
@@ -7036,7 +7040,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7036
7040
|
"onUpdate:modelValue"
|
|
7037
7041
|
]))), 128))])]),
|
|
7038
7042
|
_: 1
|
|
7039
|
-
}, 8, ["label"])) : m.value.kind === "image" ? (_(), n(
|
|
7043
|
+
}, 8, ["label"])) : m.value.kind === "image" ? (_(), n(gi, {
|
|
7040
7044
|
key: 5,
|
|
7041
7045
|
"model-value": m.value.value,
|
|
7042
7046
|
label: f.value,
|
|
@@ -7047,7 +7051,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7047
7051
|
key: 6,
|
|
7048
7052
|
label: f.value
|
|
7049
7053
|
}, {
|
|
7050
|
-
default: N(() => [s(
|
|
7054
|
+
default: N(() => [s(Ni, {
|
|
7051
7055
|
"model-value": m.value.value,
|
|
7052
7056
|
label: f.value,
|
|
7053
7057
|
"onUpdate:modelValue": r[11] ||= (e) => g(e),
|
|
@@ -7056,25 +7060,25 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7056
7060
|
_: 1
|
|
7057
7061
|
}, 8, ["label"]));
|
|
7058
7062
|
}
|
|
7059
|
-
}),
|
|
7063
|
+
}), Ii = { class: "lze-grid-2" }, Li = { class: "lze-field" }, Ri = {
|
|
7060
7064
|
key: 0,
|
|
7061
7065
|
class: "lze-error",
|
|
7062
7066
|
role: "alert"
|
|
7063
|
-
},
|
|
7067
|
+
}, zi = {
|
|
7064
7068
|
key: 1,
|
|
7065
7069
|
class: "lze-hint"
|
|
7066
|
-
},
|
|
7070
|
+
}, Bi = { class: "lze-field" }, Vi = {
|
|
7067
7071
|
key: 0,
|
|
7068
7072
|
class: "lze-error",
|
|
7069
7073
|
role: "alert"
|
|
7070
|
-
},
|
|
7074
|
+
}, Hi = {
|
|
7071
7075
|
key: 0,
|
|
7072
7076
|
class: "lze-stack lze-divided"
|
|
7073
|
-
},
|
|
7077
|
+
}, Ui = { class: "lze-label" }, Wi = {
|
|
7074
7078
|
key: 0,
|
|
7075
7079
|
class: "lze-error",
|
|
7076
7080
|
role: "alert"
|
|
7077
|
-
},
|
|
7081
|
+
}, Gi = { class: "lze-dialog-actions" }, Ki = /* @__PURE__ */ c({
|
|
7078
7082
|
__name: "SiteDialog",
|
|
7079
7083
|
setup(c) {
|
|
7080
7084
|
let l = K(), d = l.t, f = {
|
|
@@ -7120,7 +7124,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7120
7124
|
meta: h.meta
|
|
7121
7125
|
}), h.saving = !1, h.issues.length === 0 && (p.value = !1, l.notify(d("site.saved")));
|
|
7122
7126
|
}
|
|
7123
|
-
return (t, c) => (_(), n(
|
|
7127
|
+
return (t, c) => (_(), n(Ur, {
|
|
7124
7128
|
open: D(p),
|
|
7125
7129
|
"onUpdate:open": c[6] ||= (e) => u(p) ? p.value = e : null,
|
|
7126
7130
|
title: D(d)("site.title"),
|
|
@@ -7167,7 +7171,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7167
7171
|
"label",
|
|
7168
7172
|
"error"
|
|
7169
7173
|
]),
|
|
7170
|
-
a("div",
|
|
7174
|
+
a("div", Ii, [a("div", Li, [s(gi, {
|
|
7171
7175
|
modelValue: h.ogImage,
|
|
7172
7176
|
"onUpdate:modelValue": c[2] ||= (e) => h.ogImage = e,
|
|
7173
7177
|
label: D(d)("site.shareImage"),
|
|
@@ -7176,7 +7180,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7176
7180
|
"modelValue",
|
|
7177
7181
|
"label",
|
|
7178
7182
|
"choose"
|
|
7179
|
-
]), S("og_image") ? (_(), i("p",
|
|
7183
|
+
]), S("og_image") ? (_(), i("p", Ri, T(S("og_image")), 1)) : (_(), i("p", zi, T(D(d)("site.shareImageHint")), 1))]), a("div", Bi, [s(gi, {
|
|
7180
7184
|
modelValue: h.favicon,
|
|
7181
7185
|
"onUpdate:modelValue": c[3] ||= (e) => h.favicon = e,
|
|
7182
7186
|
label: D(d)("site.favicon"),
|
|
@@ -7186,7 +7190,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7186
7190
|
"modelValue",
|
|
7187
7191
|
"label",
|
|
7188
7192
|
"choose"
|
|
7189
|
-
]), S("favicon") ? (_(), i("p",
|
|
7193
|
+
]), S("favicon") ? (_(), i("p", Vi, T(S("favicon")), 1)) : r("", !0)])]),
|
|
7190
7194
|
s(J, {
|
|
7191
7195
|
id: f.locale,
|
|
7192
7196
|
label: D(d)("site.locale"),
|
|
@@ -7207,10 +7211,10 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7207
7211
|
"hint",
|
|
7208
7212
|
"error"
|
|
7209
7213
|
]),
|
|
7210
|
-
g.value.length > 0 ? (_(), i("section",
|
|
7214
|
+
g.value.length > 0 ? (_(), i("section", Hi, [a("h3", Ui, T(D(d)("site.details")), 1), (_(!0), i(e, null, x(g.value, (e) => (_(), i("div", {
|
|
7211
7215
|
key: e.key,
|
|
7212
7216
|
class: "lze-field"
|
|
7213
|
-
}, [s(
|
|
7217
|
+
}, [s(Fi, {
|
|
7214
7218
|
field: e,
|
|
7215
7219
|
"model-value": h.meta[e.key],
|
|
7216
7220
|
"onUpdate:modelValue": (t) => w(e.key, t)
|
|
@@ -7218,13 +7222,13 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7218
7222
|
"field",
|
|
7219
7223
|
"model-value",
|
|
7220
7224
|
"onUpdate:modelValue"
|
|
7221
|
-
]), S(`meta.${e.key}`) ? (_(), i("p",
|
|
7225
|
+
]), S(`meta.${e.key}`) ? (_(), i("p", Wi, T(S(`meta.${e.key}`)), 1)) : r("", !0)]))), 128))])) : r("", !0),
|
|
7222
7226
|
(_(!0), i(e, null, x(C.value, (e) => (_(), i("p", {
|
|
7223
7227
|
key: e.path + e.message,
|
|
7224
7228
|
class: "lze-error",
|
|
7225
7229
|
role: "alert"
|
|
7226
7230
|
}, T(e.path ? `${e.path}: ` : "") + T(e.message), 1))), 128)),
|
|
7227
|
-
a("div",
|
|
7231
|
+
a("div", Gi, [s(q, {
|
|
7228
7232
|
variant: "primary",
|
|
7229
7233
|
size: "md",
|
|
7230
7234
|
type: "submit",
|
|
@@ -7247,16 +7251,16 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7247
7251
|
"description"
|
|
7248
7252
|
]));
|
|
7249
7253
|
}
|
|
7250
|
-
}),
|
|
7254
|
+
}), qi = {
|
|
7251
7255
|
key: 0,
|
|
7252
7256
|
class: "lze-rows"
|
|
7253
|
-
},
|
|
7257
|
+
}, Ji = { class: "lze-hint" }, Yi = {
|
|
7254
7258
|
key: 1,
|
|
7255
7259
|
class: "lze-hint"
|
|
7256
|
-
},
|
|
7260
|
+
}, Xi = {
|
|
7257
7261
|
key: 2,
|
|
7258
7262
|
class: "lze-dialog-actions"
|
|
7259
|
-
},
|
|
7263
|
+
}, Zi = /* @__PURE__ */ c({
|
|
7260
7264
|
__name: "SubmissionsDialog",
|
|
7261
7265
|
setup(c) {
|
|
7262
7266
|
let l = K(), d = l.t, f = l.dialogModel("submissions"), p = b([]), m = b(null), h = b(!1), g = new Intl.DateTimeFormat(l.i18n.locale, {
|
|
@@ -7277,22 +7281,22 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7277
7281
|
});
|
|
7278
7282
|
let y = t(() => new Map(dt(l.state.draft).flatMap((e) => e.elements).flatMap((e) => {
|
|
7279
7283
|
let t = e.props.label;
|
|
7280
|
-
return typeof t == "string" && t.trim() !== "" ? [[
|
|
7284
|
+
return typeof t == "string" && t.trim() !== "" ? [[Xn(e.id), t.trim()]] : [];
|
|
7281
7285
|
})));
|
|
7282
|
-
return (t, c) => (_(), n(
|
|
7286
|
+
return (t, c) => (_(), n(Ur, {
|
|
7283
7287
|
open: D(f),
|
|
7284
7288
|
"onUpdate:open": c[1] ||= (e) => u(f) ? f.value = e : null,
|
|
7285
7289
|
title: D(d)("submissions.title"),
|
|
7286
7290
|
description: D(d)("submissions.description"),
|
|
7287
7291
|
size: "lg"
|
|
7288
7292
|
}, {
|
|
7289
|
-
default: N(() => [p.value.length > 0 ? (_(), i("ul",
|
|
7293
|
+
default: N(() => [p.value.length > 0 ? (_(), i("ul", qi, [(_(!0), i(e, null, x(p.value, (t) => (_(), i("li", {
|
|
7290
7294
|
key: t.id,
|
|
7291
7295
|
class: "lze-submission"
|
|
7292
|
-
}, [a("p",
|
|
7296
|
+
}, [a("p", Ji, T(D(g).format(new Date(t.createdAt))) + " · " + T(D(d)("submissions.from", {
|
|
7293
7297
|
page: t.page,
|
|
7294
7298
|
source: t.source
|
|
7295
|
-
})), 1), a("dl", null, [(_(!0), i(e, null, x(t.fields, (t, n) => (_(), i(e, { key: n }, [a("dt", null, T(y.value.get(String(n)) ?? n), 1), a("dd", null, T(typeof t == "boolean" ? D(d)(t ? "submissions.checked" : "submissions.unchecked") : t), 1)], 64))), 128))])]))), 128))])) : h.value ? r("", !0) : (_(), i("p",
|
|
7299
|
+
})), 1), a("dl", null, [(_(!0), i(e, null, x(t.fields, (t, n) => (_(), i(e, { key: n }, [a("dt", null, T(y.value.get(String(n)) ?? n), 1), a("dd", null, T(typeof t == "boolean" ? D(d)(t ? "submissions.checked" : "submissions.unchecked") : t), 1)], 64))), 128))])]))), 128))])) : h.value ? r("", !0) : (_(), i("p", Yi, T(D(d)("submissions.empty")), 1)), m.value ? (_(), i("div", Xi, [s(q, {
|
|
7296
7300
|
disabled: h.value,
|
|
7297
7301
|
onClick: c[0] ||= (e) => v(m.value)
|
|
7298
7302
|
}, {
|
|
@@ -7306,12 +7310,12 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7306
7310
|
"description"
|
|
7307
7311
|
]));
|
|
7308
7312
|
}
|
|
7309
|
-
}),
|
|
7313
|
+
}), Qi = { class: "lze-range" }, $i = { class: "lze-label" }, ea = { class: "lze-muted" }, ta = [
|
|
7310
7314
|
"min",
|
|
7311
7315
|
"max",
|
|
7312
7316
|
"step",
|
|
7313
7317
|
"value"
|
|
7314
|
-
],
|
|
7318
|
+
], na = /* @__PURE__ */ c({
|
|
7315
7319
|
__name: "RangeInput",
|
|
7316
7320
|
props: /*@__PURE__*/ d({
|
|
7317
7321
|
label: {},
|
|
@@ -7330,7 +7334,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7330
7334
|
emits: /*@__PURE__*/ d(["commit"], ["update:modelValue"]),
|
|
7331
7335
|
setup(e, { emit: t }) {
|
|
7332
7336
|
let n = k(e, "modelValue"), r = t;
|
|
7333
|
-
return (t, s) => (_(), i("label",
|
|
7337
|
+
return (t, s) => (_(), i("label", Qi, [a("span", $i, [o(T(e.label) + " ", 1), a("span", ea, T(e.format(n.value ?? e.fallback)), 1)]), a("input", {
|
|
7334
7338
|
type: "range",
|
|
7335
7339
|
min: e.min,
|
|
7336
7340
|
max: e.max,
|
|
@@ -7338,16 +7342,16 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7338
7342
|
value: n.value ?? e.fallback,
|
|
7339
7343
|
onInput: s[0] ||= (e) => n.value = Number(e.target.value),
|
|
7340
7344
|
onChange: s[1] ||= (e) => r("commit")
|
|
7341
|
-
}, null, 40,
|
|
7345
|
+
}, null, 40, ta)]));
|
|
7342
7346
|
}
|
|
7343
|
-
}),
|
|
7347
|
+
}), ra = ["href"], ia = { class: "lze-field" }, aa = { class: "lze-label" }, oa = { class: "lze-row" }, sa = ["onClick"], ca = {
|
|
7344
7348
|
class: "lze-row",
|
|
7345
7349
|
"aria-hidden": "true"
|
|
7346
|
-
},
|
|
7350
|
+
}, la = { class: "lze-field" }, ua = { class: "lze-heading" }, da = { class: "lze-label" }, fa = { class: "lze-hint" }, pa = { class: "lze-theme-colors" }, ma = ["onUpdate:modelValue", "aria-label"], ha = [
|
|
7347
7351
|
"value",
|
|
7348
7352
|
"aria-label",
|
|
7349
7353
|
"onInput"
|
|
7350
|
-
],
|
|
7354
|
+
], ga = { class: "lze-grid-2" }, _a = { class: "lze-grid-2" }, va = ["aria-label"], ya = { class: "lze-dialog-actions" }, ba = /* @__PURE__ */ c({
|
|
7351
7355
|
__name: "ThemeDialog",
|
|
7352
7356
|
setup(r) {
|
|
7353
7357
|
let c = K(), l = c.t, d = {
|
|
@@ -7383,7 +7387,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7383
7387
|
v.value = !0, g.value = await c.updateSite({ theme: S.value }), v.value = !1, g.value.length === 0 && (p.value = !1, c.notify(l("theme.saved")));
|
|
7384
7388
|
}
|
|
7385
7389
|
let j = (e) => S.value[e];
|
|
7386
|
-
return (t, r) => (_(), n(
|
|
7390
|
+
return (t, r) => (_(), n(Ur, {
|
|
7387
7391
|
open: D(p),
|
|
7388
7392
|
"onUpdate:open": r[5] ||= (e) => u(p) ? p.value = e : null,
|
|
7389
7393
|
title: D(l)("theme.title"),
|
|
@@ -7393,17 +7397,17 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7393
7397
|
default: N(() => [a("link", {
|
|
7394
7398
|
rel: "stylesheet",
|
|
7395
7399
|
href: D(Jt)([S.value.heading_font, S.value.body_font])
|
|
7396
|
-
}, null, 8,
|
|
7400
|
+
}, null, 8, ra), a("form", {
|
|
7397
7401
|
class: "lze-stack",
|
|
7398
7402
|
novalidate: "",
|
|
7399
7403
|
onSubmit: P(A, ["prevent"])
|
|
7400
7404
|
}, [
|
|
7401
|
-
a("section",
|
|
7405
|
+
a("section", ia, [a("h3", aa, T(D(l)("theme.palettes")), 1), a("div", oa, [(_(!0), i(e, null, x(D(Lt), (t) => (_(), i("button", {
|
|
7402
7406
|
key: t.name,
|
|
7403
7407
|
type: "button",
|
|
7404
7408
|
class: "lze-palette-choice",
|
|
7405
7409
|
onClick: (e) => E(t.colors)
|
|
7406
|
-
}, [a("span",
|
|
7410
|
+
}, [a("span", ca, [(_(), i(e, null, x([
|
|
7407
7411
|
"primary",
|
|
7408
7412
|
"secondary",
|
|
7409
7413
|
"surface"
|
|
@@ -7411,14 +7415,14 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7411
7415
|
key: e,
|
|
7412
7416
|
class: "lze-dot",
|
|
7413
7417
|
style: m({ background: t.colors[e] })
|
|
7414
|
-
}, null, 4)), 64))]), o(" " + T(D(l)(t.name)), 1)], 8,
|
|
7415
|
-
a("section",
|
|
7416
|
-
a("div",
|
|
7418
|
+
}, null, 4)), 64))]), o(" " + T(D(l)(t.name)), 1)], 8, sa))), 128))])]),
|
|
7419
|
+
a("section", la, [
|
|
7420
|
+
a("div", ua, [a("h3", da, T(D(l)("theme.colors")), 1), s(q, { onClick: k }, {
|
|
7417
7421
|
default: N(() => [o(T(D(l)("theme.link")), 1)]),
|
|
7418
7422
|
_: 1
|
|
7419
7423
|
})]),
|
|
7420
|
-
a("p",
|
|
7421
|
-
a("div",
|
|
7424
|
+
a("p", fa, T(D(l)("theme.linkHint")), 1),
|
|
7425
|
+
a("div", pa, [(_(!0), i(e, null, x(D(Pt), (e) => (_(), i("div", {
|
|
7422
7426
|
key: e,
|
|
7423
7427
|
class: "lze-theme-color"
|
|
7424
7428
|
}, [
|
|
@@ -7429,16 +7433,16 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7429
7433
|
maxlength: "7",
|
|
7430
7434
|
spellcheck: "false",
|
|
7431
7435
|
"aria-label": D(l)("theme.hex", { label: D(l)(`token.${e}`) })
|
|
7432
|
-
}, null, 8,
|
|
7436
|
+
}, null, 8, ma), [[ee, h[e]]]),
|
|
7433
7437
|
a("input", {
|
|
7434
7438
|
type: "color",
|
|
7435
7439
|
value: j(e),
|
|
7436
7440
|
"aria-label": D(l)(`token.${e}`),
|
|
7437
7441
|
onInput: (t) => h[e] = t.target.value
|
|
7438
|
-
}, null, 40,
|
|
7442
|
+
}, null, 40, ha)
|
|
7439
7443
|
]))), 128))])
|
|
7440
7444
|
]),
|
|
7441
|
-
a("section",
|
|
7445
|
+
a("section", ga, [s(J, {
|
|
7442
7446
|
id: d.heading,
|
|
7443
7447
|
label: D(l)("theme.headingFont")
|
|
7444
7448
|
}, {
|
|
@@ -7469,7 +7473,7 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7469
7473
|
])]),
|
|
7470
7474
|
_: 1
|
|
7471
7475
|
}, 8, ["id", "label"])]),
|
|
7472
|
-
a("section",
|
|
7476
|
+
a("section", _a, [s(na, {
|
|
7473
7477
|
"model-value": h.radius,
|
|
7474
7478
|
label: D(l)("theme.radius"),
|
|
7475
7479
|
min: 0,
|
|
@@ -7523,13 +7527,13 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7523
7527
|
fontFamily: `'${S.value.body_font}', sans-serif`
|
|
7524
7528
|
})
|
|
7525
7529
|
}, T(D(l)("theme.previewButton")), 5)
|
|
7526
|
-
], 12,
|
|
7530
|
+
], 12, va),
|
|
7527
7531
|
(_(!0), i(e, null, x(g.value, (e) => (_(), i("p", {
|
|
7528
7532
|
key: e.path + e.message,
|
|
7529
7533
|
class: "lze-error",
|
|
7530
7534
|
role: "alert"
|
|
7531
7535
|
}, T(e.path ? `${e.path}: ` : "") + T(e.message), 1))), 128)),
|
|
7532
|
-
a("div",
|
|
7536
|
+
a("div", ya, [s(q, {
|
|
7533
7537
|
variant: "primary",
|
|
7534
7538
|
size: "md",
|
|
7535
7539
|
type: "submit",
|
|
@@ -7552,36 +7556,36 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7552
7556
|
"description"
|
|
7553
7557
|
]));
|
|
7554
7558
|
}
|
|
7555
|
-
}),
|
|
7559
|
+
}), xa = {
|
|
7556
7560
|
key: 0,
|
|
7557
7561
|
class: "lze-rows"
|
|
7558
|
-
},
|
|
7562
|
+
}, Sa = {
|
|
7559
7563
|
key: 0,
|
|
7560
7564
|
class: "lze-hint"
|
|
7561
|
-
},
|
|
7565
|
+
}, Ca = {
|
|
7562
7566
|
key: 1,
|
|
7563
7567
|
class: "lze-hint"
|
|
7564
|
-
},
|
|
7568
|
+
}, wa = /* @__PURE__ */ c({
|
|
7565
7569
|
__name: "VersionsDialog",
|
|
7566
7570
|
setup(c) {
|
|
7567
7571
|
let l = K(), d = l.t, f = l.dialogModel("versions"), p = t(() => l.state.page?.versions ?? []), m = new Intl.DateTimeFormat(l.i18n.locale, {
|
|
7568
7572
|
dateStyle: "medium",
|
|
7569
7573
|
timeStyle: "short"
|
|
7570
7574
|
});
|
|
7571
|
-
return (t, c) => (_(), n(
|
|
7575
|
+
return (t, c) => (_(), n(Ur, {
|
|
7572
7576
|
open: D(f),
|
|
7573
7577
|
"onUpdate:open": c[0] ||= (e) => u(f) ? f.value = e : null,
|
|
7574
7578
|
title: D(d)("versions.title"),
|
|
7575
7579
|
description: D(d)("versions.description"),
|
|
7576
7580
|
size: "lg"
|
|
7577
7581
|
}, {
|
|
7578
|
-
default: N(() => [p.value.length > 0 ? (_(), i("ul",
|
|
7582
|
+
default: N(() => [p.value.length > 0 ? (_(), i("ul", xa, [(_(!0), i(e, null, x(p.value, (e) => (_(), i("li", {
|
|
7579
7583
|
key: e.id,
|
|
7580
7584
|
class: "lze-row-item"
|
|
7581
|
-
}, [a("div", null, [a("p", null, T(D(m).format(new Date(e.createdAt))), 1), e.by ? (_(), i("p",
|
|
7585
|
+
}, [a("div", null, [a("p", null, T(D(m).format(new Date(e.createdAt))), 1), e.by ? (_(), i("p", Sa, T(D(d)("versions.by", { name: e.by })), 1)) : r("", !0)]), s(q, { onClick: (t) => D(l).restoreVersion(e.id) }, {
|
|
7582
7586
|
default: N(() => [o(T(D(d)("versions.restore")), 1)]),
|
|
7583
7587
|
_: 1
|
|
7584
|
-
}, 8, ["onClick"])]))), 128))])) : (_(), i("p",
|
|
7588
|
+
}, 8, ["onClick"])]))), 128))])) : (_(), i("p", Ca, T(D(d)("versions.empty")), 1))]),
|
|
7585
7589
|
_: 1
|
|
7586
7590
|
}, 8, [
|
|
7587
7591
|
"open",
|
|
@@ -7589,21 +7593,21 @@ var Oi = { class: "lze-field" }, ki = ["id"], Ai = ["value"], ji = {
|
|
|
7589
7593
|
"description"
|
|
7590
7594
|
]));
|
|
7591
7595
|
}
|
|
7592
|
-
}), wa = /*#__PURE__*/ JSON.parse("{\"activity\":[[\"path\",{\"d\":\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\"}]],\"arrow-right\":[[\"path\",{\"d\":\"M5 12h14\"}],[\"path\",{\"d\":\"m12 5 7 7-7 7\"}]],\"arrow-up-right\":[[\"path\",{\"d\":\"M7 7h10v10\"}],[\"path\",{\"d\":\"M7 17 17 7\"}]],\"award\":[[\"path\",{\"d\":\"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"8\",\"r\":\"6\"}]],\"badge-check\":[[\"path\",{\"d\":\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\"}],[\"path\",{\"d\":\"m16 9-5.5 5.5L8 12\"}]],\"baby\":[[\"path\",{\"d\":\"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5\"}],[\"path\",{\"d\":\"M15 12h.01\"}],[\"path\",{\"d\":\"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1\"}],[\"path\",{\"d\":\"M9 12h.01\"}]],\"banknote\":[[\"rect\",{\"width\":\"20\",\"height\":\"12\",\"x\":\"2\",\"y\":\"6\",\"rx\":\"2\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"2\"}],[\"path\",{\"d\":\"M6 12h.01M18 12h.01\"}]],\"bone\":[[\"path\",{\"d\":\"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z\"}]],\"brush\":[[\"path\",{\"d\":\"m11 10 3 3\"}],[\"path\",{\"d\":\"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z\"}],[\"path\",{\"d\":\"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031\"}]],\"bus\":[[\"path\",{\"d\":\"M8 6v6\"}],[\"path\",{\"d\":\"M15 6v6\"}],[\"path\",{\"d\":\"M2 12h19.6\"}],[\"path\",{\"d\":\"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3\"}],[\"circle\",{\"cx\":\"7\",\"cy\":\"18\",\"r\":\"2\"}],[\"path\",{\"d\":\"M9 18h5\"}],[\"circle\",{\"cx\":\"16\",\"cy\":\"18\",\"r\":\"2\"}]],\"calendar\":[[\"path\",{\"d\":\"M8 2v3\"}],[\"path\",{\"d\":\"M16 2v3\"}],[\"rect\",{\"x\":\"3\",\"y\":\"3\",\"width\":\"18\",\"height\":\"18\",\"rx\":\"2\"}],[\"path\",{\"d\":\"M3 9h18\"}]],\"calendar-check\":[[\"path\",{\"d\":\"M8 2v3\"}],[\"path\",{\"d\":\"M16 2v3\"}],[\"rect\",{\"x\":\"3\",\"y\":\"3\",\"width\":\"18\",\"height\":\"18\",\"rx\":\"2\"}],[\"path\",{\"d\":\"M3 9h18\"}],[\"path\",{\"d\":\"m9 15 2 2 4-4\"}]],\"calendar-days\":[[\"path\",{\"d\":\"M8 2v3\"}],[\"path\",{\"d\":\"M16 2v3\"}],[\"rect\",{\"x\":\"3\",\"y\":\"3\",\"width\":\"18\",\"height\":\"18\",\"rx\":\"2\"}],[\"path\",{\"d\":\"M3 9h18\"}],[\"path\",{\"d\":\"M8 13h.01\"}],[\"path\",{\"d\":\"M12 13h.01\"}],[\"path\",{\"d\":\"M16 13h.01\"}],[\"path\",{\"d\":\"M8 17h.01\"}],[\"path\",{\"d\":\"M12 17h.01\"}],[\"path\",{\"d\":\"M16 17h.01\"}]],\"camera\":[[\"path\",{\"d\":\"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"13\",\"r\":\"3\"}]],\"car\":[[\"path\",{\"d\":\"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2\"}],[\"circle\",{\"cx\":\"7\",\"cy\":\"17\",\"r\":\"2\"}],[\"path\",{\"d\":\"M9 17h6\"}],[\"circle\",{\"cx\":\"17\",\"cy\":\"17\",\"r\":\"2\"}]],\"check\":[[\"path\",{\"d\":\"M20 6 9 17l-5-5\"}]],\"chevron-right\":[[\"path\",{\"d\":\"m9 18 6-6-6-6\"}]],\"circle-check\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\"}],[\"path\",{\"d\":\"m16 9-5.5 5.5L8 12\"}]],\"clipboard-list\":[[\"rect\",{\"width\":\"8\",\"height\":\"4\",\"x\":\"8\",\"y\":\"2\",\"rx\":\"1\",\"ry\":\"1\"}],[\"path\",{\"d\":\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"}],[\"path\",{\"d\":\"M12 11h4\"}],[\"path\",{\"d\":\"M12 16h4\"}],[\"path\",{\"d\":\"M8 11h.01\"}],[\"path\",{\"d\":\"M8 16h.01\"}]],\"clock\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\"}],[\"path\",{\"d\":\"M12 6v6l4 2\"}]],\"coffee\":[[\"path\",{\"d\":\"M10 2v2\"}],[\"path\",{\"d\":\"M14 2v2\"}],[\"path\",{\"d\":\"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1\"}],[\"path\",{\"d\":\"M6 2v2\"}]],\"credit-card\":[[\"rect\",{\"width\":\"20\",\"height\":\"14\",\"x\":\"2\",\"y\":\"5\",\"rx\":\"2\"}],[\"line\",{\"x1\":\"2\",\"x2\":\"22\",\"y1\":\"10\",\"y2\":\"10\"}],[\"path\",{\"d\":\"M6 14h2\"}]],\"droplet\":[[\"path\",{\"d\":\"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z\"}]],\"file-text\":[[\"path\",{\"d\":\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"}],[\"path\",{\"d\":\"M14 2v5a1 1 0 0 0 1 1h5\"}],[\"path\",{\"d\":\"M10 9H8\"}],[\"path\",{\"d\":\"M16 13H8\"}],[\"path\",{\"d\":\"M16 17H8\"}]],\"gift\":[[\"path\",{\"d\":\"M12 7v14\"}],[\"path\",{\"d\":\"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8\"}],[\"path\",{\"d\":\"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5\"}],[\"rect\",{\"x\":\"3\",\"y\":\"7\",\"width\":\"18\",\"height\":\"4\",\"rx\":\"1\"}]],\"globe\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\"}],[\"path\",{\"d\":\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\"}],[\"path\",{\"d\":\"M2 12h20\"}]],\"hand-heart\":[[\"path\",{\"d\":\"M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16\"}],[\"path\",{\"d\":\"m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95\"}],[\"path\",{\"d\":\"m2 15 6 6\"}],[\"path\",{\"d\":\"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91\"}]],\"heart\":[[\"path\",{\"d\":\"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5\"}]],\"heart-pulse\":[[\"path\",{\"d\":\"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5\"}],[\"path\",{\"d\":\"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27\"}]],\"house\":[[\"path\",{\"d\":\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\"}],[\"path\",{\"d\":\"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"}]],\"image\":[[\"rect\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\",\"ry\":\"2\"}],[\"circle\",{\"cx\":\"9\",\"cy\":\"9\",\"r\":\"2\"}],[\"path\",{\"d\":\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\"}]],\"leaf\":[[\"path\",{\"d\":\"M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20\"}],[\"path\",{\"d\":\"M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13\"}]],\"lightbulb\":[[\"path\",{\"d\":\"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\"}],[\"path\",{\"d\":\"M9 18h6\"}],[\"path\",{\"d\":\"M10 22h4\"}]],\"mail\":[[\"path\",{\"d\":\"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7\"}],[\"rect\",{\"x\":\"2\",\"y\":\"4\",\"width\":\"20\",\"height\":\"16\",\"rx\":\"2\"}]],\"map-pin\":[[\"path\",{\"d\":\"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"10\",\"r\":\"3\"}]],\"message-circle\":[[\"path\",{\"d\":\"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\"}]],\"microscope\":[[\"path\",{\"d\":\"M6 18h8\"}],[\"path\",{\"d\":\"M3 22h18\"}],[\"path\",{\"d\":\"M14 22a7 7 0 1 0 0-14h-1\"}],[\"path\",{\"d\":\"M9 14h2\"}],[\"path\",{\"d\":\"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z\"}],[\"path\",{\"d\":\"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3\"}]],\"moon\":[[\"path\",{\"d\":\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"}]],\"percent\":[[\"line\",{\"x1\":\"19\",\"x2\":\"5\",\"y1\":\"5\",\"y2\":\"19\"}],[\"circle\",{\"cx\":\"6.5\",\"cy\":\"6.5\",\"r\":\"2.5\"}],[\"circle\",{\"cx\":\"17.5\",\"cy\":\"17.5\",\"r\":\"2.5\"}]],\"phone\":[[\"path\",{\"d\":\"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\"}]],\"pill\":[[\"path\",{\"d\":\"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z\"}],[\"path\",{\"d\":\"m8.5 8.5 7 7\"}]],\"play\":[[\"path\",{\"d\":\"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z\"}]],\"quote\":[[\"path\",{\"d\":\"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"}],[\"path\",{\"d\":\"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"}]],\"scissors\":[[\"circle\",{\"cx\":\"6\",\"cy\":\"6\",\"r\":\"3\"}],[\"path\",{\"d\":\"M8.12 8.12 12 12\"}],[\"path\",{\"d\":\"M20 4 8.12 15.88\"}],[\"circle\",{\"cx\":\"6\",\"cy\":\"18\",\"r\":\"3\"}],[\"path\",{\"d\":\"M14.8 14.8 20 20\"}]],\"send\":[[\"path\",{\"d\":\"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\"}],[\"path\",{\"d\":\"m21.854 2.147-10.94 10.939\"}]],\"share-2\":[[\"circle\",{\"cx\":\"18\",\"cy\":\"5\",\"r\":\"3\"}],[\"circle\",{\"cx\":\"6\",\"cy\":\"12\",\"r\":\"3\"}],[\"circle\",{\"cx\":\"18\",\"cy\":\"19\",\"r\":\"3\"}],[\"line\",{\"x1\":\"8.59\",\"x2\":\"15.42\",\"y1\":\"13.51\",\"y2\":\"17.49\"}],[\"line\",{\"x1\":\"15.41\",\"x2\":\"8.59\",\"y1\":\"6.51\",\"y2\":\"10.49\"}]],\"shield-check\":[[\"path\",{\"d\":\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"}],[\"path\",{\"d\":\"m9 12 2 2 4-4\"}]],\"sparkles\":[[\"path\",{\"d\":\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\"}],[\"path\",{\"d\":\"M20 2v4\"}],[\"path\",{\"d\":\"M22 4h-4\"}],[\"circle\",{\"cx\":\"4\",\"cy\":\"20\",\"r\":\"2\"}]],\"star\":[[\"path\",{\"d\":\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\"}]],\"stethoscope\":[[\"path\",{\"d\":\"M11 2v2\"}],[\"path\",{\"d\":\"M5 2v2\"}],[\"path\",{\"d\":\"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1\"}],[\"path\",{\"d\":\"M8 15a6 6 0 0 0 12 0v-3\"}],[\"circle\",{\"cx\":\"20\",\"cy\":\"10\",\"r\":\"2\"}]],\"sun\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"4\"}],[\"path\",{\"d\":\"M12 2v2\"}],[\"path\",{\"d\":\"M12 20v2\"}],[\"path\",{\"d\":\"m4.93 4.93 1.41 1.41\"}],[\"path\",{\"d\":\"m17.66 17.66 1.41 1.41\"}],[\"path\",{\"d\":\"M2 12h2\"}],[\"path\",{\"d\":\"M20 12h2\"}],[\"path\",{\"d\":\"m6.34 17.66-1.41 1.41\"}],[\"path\",{\"d\":\"m19.07 4.93-1.41 1.41\"}]],\"syringe\":[[\"path\",{\"d\":\"m18 2 4 4\"}],[\"path\",{\"d\":\"m17 7 3-3\"}],[\"path\",{\"d\":\"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5\"}],[\"path\",{\"d\":\"m9 11 4 4\"}],[\"path\",{\"d\":\"m5 19-3 3\"}],[\"path\",{\"d\":\"m14 4 6 6\"}]],\"thumbs-up\":[[\"path\",{\"d\":\"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z\"}],[\"path\",{\"d\":\"M7 10v12\"}]],\"timer\":[[\"line\",{\"x1\":\"10\",\"x2\":\"14\",\"y1\":\"2\",\"y2\":\"2\"}],[\"line\",{\"x1\":\"12\",\"x2\":\"15\",\"y1\":\"14\",\"y2\":\"11\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"14\",\"r\":\"8\"}]],\"user\":[[\"path\",{\"d\":\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"7\",\"r\":\"4\"}]],\"users\":[[\"path\",{\"d\":\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\"}],[\"path\",{\"d\":\"M16 3.128a4 4 0 0 1 0 7.744\"}],[\"path\",{\"d\":\"M22 21v-2a4 4 0 0 0-3-3.87\"}],[\"circle\",{\"cx\":\"9\",\"cy\":\"7\",\"r\":\"4\"}]],\"video\":[[\"path\",{\"d\":\"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5\"}],[\"rect\",{\"x\":\"2\",\"y\":\"6\",\"width\":\"14\",\"height\":\"12\",\"rx\":\"2\"}]],\"wallet\":[[\"path\",{\"d\":\"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1\"}],[\"path\",{\"d\":\"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4\"}]],\"wifi\":[[\"path\",{\"d\":\"M12 20h.01\"}],[\"path\",{\"d\":\"M2 8.82a15 15 0 0 1 20 0\"}],[\"path\",{\"d\":\"M5 12.859a10 10 0 0 1 14 0\"}],[\"path\",{\"d\":\"M8.5 16.429a5 5 0 0 1 7 0\"}]],\"at-sign\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"4\"}],[\"path\",{\"d\":\"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8\"}]]}"), Ta = /* @__PURE__ */ new Set([
|
|
7596
|
+
}), Ta = /*#__PURE__*/ JSON.parse("{\"activity\":[[\"path\",{\"d\":\"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2\"}]],\"arrow-right\":[[\"path\",{\"d\":\"M5 12h14\"}],[\"path\",{\"d\":\"m12 5 7 7-7 7\"}]],\"arrow-up-right\":[[\"path\",{\"d\":\"M7 7h10v10\"}],[\"path\",{\"d\":\"M7 17 17 7\"}]],\"award\":[[\"path\",{\"d\":\"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"8\",\"r\":\"6\"}]],\"badge-check\":[[\"path\",{\"d\":\"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z\"}],[\"path\",{\"d\":\"m16 9-5.5 5.5L8 12\"}]],\"baby\":[[\"path\",{\"d\":\"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5\"}],[\"path\",{\"d\":\"M15 12h.01\"}],[\"path\",{\"d\":\"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1\"}],[\"path\",{\"d\":\"M9 12h.01\"}]],\"banknote\":[[\"rect\",{\"width\":\"20\",\"height\":\"12\",\"x\":\"2\",\"y\":\"6\",\"rx\":\"2\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"2\"}],[\"path\",{\"d\":\"M6 12h.01M18 12h.01\"}]],\"bone\":[[\"path\",{\"d\":\"M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z\"}]],\"brush\":[[\"path\",{\"d\":\"m11 10 3 3\"}],[\"path\",{\"d\":\"M6.5 21A3.5 3.5 0 1 0 3 17.5a2.62 2.62 0 0 1-.708 1.792A1 1 0 0 0 3 21z\"}],[\"path\",{\"d\":\"M9.969 17.031 21.378 5.624a1 1 0 0 0-3.002-3.002L6.967 14.031\"}]],\"bus\":[[\"path\",{\"d\":\"M8 6v6\"}],[\"path\",{\"d\":\"M15 6v6\"}],[\"path\",{\"d\":\"M2 12h19.6\"}],[\"path\",{\"d\":\"M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3\"}],[\"circle\",{\"cx\":\"7\",\"cy\":\"18\",\"r\":\"2\"}],[\"path\",{\"d\":\"M9 18h5\"}],[\"circle\",{\"cx\":\"16\",\"cy\":\"18\",\"r\":\"2\"}]],\"calendar\":[[\"path\",{\"d\":\"M8 2v3\"}],[\"path\",{\"d\":\"M16 2v3\"}],[\"rect\",{\"x\":\"3\",\"y\":\"3\",\"width\":\"18\",\"height\":\"18\",\"rx\":\"2\"}],[\"path\",{\"d\":\"M3 9h18\"}]],\"calendar-check\":[[\"path\",{\"d\":\"M8 2v3\"}],[\"path\",{\"d\":\"M16 2v3\"}],[\"rect\",{\"x\":\"3\",\"y\":\"3\",\"width\":\"18\",\"height\":\"18\",\"rx\":\"2\"}],[\"path\",{\"d\":\"M3 9h18\"}],[\"path\",{\"d\":\"m9 15 2 2 4-4\"}]],\"calendar-days\":[[\"path\",{\"d\":\"M8 2v3\"}],[\"path\",{\"d\":\"M16 2v3\"}],[\"rect\",{\"x\":\"3\",\"y\":\"3\",\"width\":\"18\",\"height\":\"18\",\"rx\":\"2\"}],[\"path\",{\"d\":\"M3 9h18\"}],[\"path\",{\"d\":\"M8 13h.01\"}],[\"path\",{\"d\":\"M12 13h.01\"}],[\"path\",{\"d\":\"M16 13h.01\"}],[\"path\",{\"d\":\"M8 17h.01\"}],[\"path\",{\"d\":\"M12 17h.01\"}],[\"path\",{\"d\":\"M16 17h.01\"}]],\"camera\":[[\"path\",{\"d\":\"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"13\",\"r\":\"3\"}]],\"car\":[[\"path\",{\"d\":\"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2\"}],[\"circle\",{\"cx\":\"7\",\"cy\":\"17\",\"r\":\"2\"}],[\"path\",{\"d\":\"M9 17h6\"}],[\"circle\",{\"cx\":\"17\",\"cy\":\"17\",\"r\":\"2\"}]],\"check\":[[\"path\",{\"d\":\"M20 6 9 17l-5-5\"}]],\"chevron-right\":[[\"path\",{\"d\":\"m9 18 6-6-6-6\"}]],\"circle-check\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\"}],[\"path\",{\"d\":\"m16 9-5.5 5.5L8 12\"}]],\"clipboard-list\":[[\"rect\",{\"width\":\"8\",\"height\":\"4\",\"x\":\"8\",\"y\":\"2\",\"rx\":\"1\",\"ry\":\"1\"}],[\"path\",{\"d\":\"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2\"}],[\"path\",{\"d\":\"M12 11h4\"}],[\"path\",{\"d\":\"M12 16h4\"}],[\"path\",{\"d\":\"M8 11h.01\"}],[\"path\",{\"d\":\"M8 16h.01\"}]],\"clock\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\"}],[\"path\",{\"d\":\"M12 6v6l4 2\"}]],\"coffee\":[[\"path\",{\"d\":\"M10 2v2\"}],[\"path\",{\"d\":\"M14 2v2\"}],[\"path\",{\"d\":\"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1\"}],[\"path\",{\"d\":\"M6 2v2\"}]],\"credit-card\":[[\"rect\",{\"width\":\"20\",\"height\":\"14\",\"x\":\"2\",\"y\":\"5\",\"rx\":\"2\"}],[\"line\",{\"x1\":\"2\",\"x2\":\"22\",\"y1\":\"10\",\"y2\":\"10\"}],[\"path\",{\"d\":\"M6 14h2\"}]],\"droplet\":[[\"path\",{\"d\":\"M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z\"}]],\"file-text\":[[\"path\",{\"d\":\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\"}],[\"path\",{\"d\":\"M14 2v5a1 1 0 0 0 1 1h5\"}],[\"path\",{\"d\":\"M10 9H8\"}],[\"path\",{\"d\":\"M16 13H8\"}],[\"path\",{\"d\":\"M16 17H8\"}]],\"gift\":[[\"path\",{\"d\":\"M12 7v14\"}],[\"path\",{\"d\":\"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8\"}],[\"path\",{\"d\":\"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5\"}],[\"rect\",{\"x\":\"3\",\"y\":\"7\",\"width\":\"18\",\"height\":\"4\",\"rx\":\"1\"}]],\"globe\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"10\"}],[\"path\",{\"d\":\"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20\"}],[\"path\",{\"d\":\"M2 12h20\"}]],\"hand-heart\":[[\"path\",{\"d\":\"M11 14h2a2 2 0 0 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16\"}],[\"path\",{\"d\":\"m14.45 13.39 5.05-4.694C20.196 8 21 6.85 21 5.75a2.75 2.75 0 0 0-4.797-1.837.276.276 0 0 1-.406 0A2.75 2.75 0 0 0 11 5.75c0 1.2.802 2.248 1.5 2.946L16 11.95\"}],[\"path\",{\"d\":\"m2 15 6 6\"}],[\"path\",{\"d\":\"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a1 1 0 0 0-2.75-2.91\"}]],\"heart\":[[\"path\",{\"d\":\"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5\"}]],\"heart-pulse\":[[\"path\",{\"d\":\"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5\"}],[\"path\",{\"d\":\"M3.22 13H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27\"}]],\"house\":[[\"path\",{\"d\":\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\"}],[\"path\",{\"d\":\"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\"}]],\"image\":[[\"rect\",{\"width\":\"18\",\"height\":\"18\",\"x\":\"3\",\"y\":\"3\",\"rx\":\"2\",\"ry\":\"2\"}],[\"circle\",{\"cx\":\"9\",\"cy\":\"9\",\"r\":\"2\"}],[\"path\",{\"d\":\"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21\"}]],\"leaf\":[[\"path\",{\"d\":\"M11 20a10 10 0 0010-10 25.9 25.9 0 00-1.04-7.281 1 1 0 00-1.755-.325C15.833 5.5 13 5.5 9.8 6.1A7 7 0 0011 20\"}],[\"path\",{\"d\":\"M2 21a5 5 0 012.911-4.544C7.613 15.212 8.351 15.24 11 13\"}]],\"lightbulb\":[[\"path\",{\"d\":\"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5\"}],[\"path\",{\"d\":\"M9 18h6\"}],[\"path\",{\"d\":\"M10 22h4\"}]],\"mail\":[[\"path\",{\"d\":\"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7\"}],[\"rect\",{\"x\":\"2\",\"y\":\"4\",\"width\":\"20\",\"height\":\"16\",\"rx\":\"2\"}]],\"map-pin\":[[\"path\",{\"d\":\"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"10\",\"r\":\"3\"}]],\"message-circle\":[[\"path\",{\"d\":\"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719\"}]],\"microscope\":[[\"path\",{\"d\":\"M6 18h8\"}],[\"path\",{\"d\":\"M3 22h18\"}],[\"path\",{\"d\":\"M14 22a7 7 0 1 0 0-14h-1\"}],[\"path\",{\"d\":\"M9 14h2\"}],[\"path\",{\"d\":\"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z\"}],[\"path\",{\"d\":\"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3\"}]],\"moon\":[[\"path\",{\"d\":\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\"}]],\"percent\":[[\"line\",{\"x1\":\"19\",\"x2\":\"5\",\"y1\":\"5\",\"y2\":\"19\"}],[\"circle\",{\"cx\":\"6.5\",\"cy\":\"6.5\",\"r\":\"2.5\"}],[\"circle\",{\"cx\":\"17.5\",\"cy\":\"17.5\",\"r\":\"2.5\"}]],\"phone\":[[\"path\",{\"d\":\"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384\"}]],\"pill\":[[\"path\",{\"d\":\"m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z\"}],[\"path\",{\"d\":\"m8.5 8.5 7 7\"}]],\"play\":[[\"path\",{\"d\":\"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z\"}]],\"quote\":[[\"path\",{\"d\":\"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"}],[\"path\",{\"d\":\"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z\"}]],\"scissors\":[[\"circle\",{\"cx\":\"6\",\"cy\":\"6\",\"r\":\"3\"}],[\"path\",{\"d\":\"M8.12 8.12 12 12\"}],[\"path\",{\"d\":\"M20 4 8.12 15.88\"}],[\"circle\",{\"cx\":\"6\",\"cy\":\"18\",\"r\":\"3\"}],[\"path\",{\"d\":\"M14.8 14.8 20 20\"}]],\"send\":[[\"path\",{\"d\":\"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z\"}],[\"path\",{\"d\":\"m21.854 2.147-10.94 10.939\"}]],\"share-2\":[[\"circle\",{\"cx\":\"18\",\"cy\":\"5\",\"r\":\"3\"}],[\"circle\",{\"cx\":\"6\",\"cy\":\"12\",\"r\":\"3\"}],[\"circle\",{\"cx\":\"18\",\"cy\":\"19\",\"r\":\"3\"}],[\"line\",{\"x1\":\"8.59\",\"x2\":\"15.42\",\"y1\":\"13.51\",\"y2\":\"17.49\"}],[\"line\",{\"x1\":\"15.41\",\"x2\":\"8.59\",\"y1\":\"6.51\",\"y2\":\"10.49\"}]],\"shield-check\":[[\"path\",{\"d\":\"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z\"}],[\"path\",{\"d\":\"m9 12 2 2 4-4\"}]],\"sparkles\":[[\"path\",{\"d\":\"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z\"}],[\"path\",{\"d\":\"M20 2v4\"}],[\"path\",{\"d\":\"M22 4h-4\"}],[\"circle\",{\"cx\":\"4\",\"cy\":\"20\",\"r\":\"2\"}]],\"star\":[[\"path\",{\"d\":\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z\"}]],\"stethoscope\":[[\"path\",{\"d\":\"M11 2v2\"}],[\"path\",{\"d\":\"M5 2v2\"}],[\"path\",{\"d\":\"M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1\"}],[\"path\",{\"d\":\"M8 15a6 6 0 0 0 12 0v-3\"}],[\"circle\",{\"cx\":\"20\",\"cy\":\"10\",\"r\":\"2\"}]],\"sun\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"4\"}],[\"path\",{\"d\":\"M12 2v2\"}],[\"path\",{\"d\":\"M12 20v2\"}],[\"path\",{\"d\":\"m4.93 4.93 1.41 1.41\"}],[\"path\",{\"d\":\"m17.66 17.66 1.41 1.41\"}],[\"path\",{\"d\":\"M2 12h2\"}],[\"path\",{\"d\":\"M20 12h2\"}],[\"path\",{\"d\":\"m6.34 17.66-1.41 1.41\"}],[\"path\",{\"d\":\"m19.07 4.93-1.41 1.41\"}]],\"syringe\":[[\"path\",{\"d\":\"m18 2 4 4\"}],[\"path\",{\"d\":\"m17 7 3-3\"}],[\"path\",{\"d\":\"M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5\"}],[\"path\",{\"d\":\"m9 11 4 4\"}],[\"path\",{\"d\":\"m5 19-3 3\"}],[\"path\",{\"d\":\"m14 4 6 6\"}]],\"thumbs-up\":[[\"path\",{\"d\":\"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z\"}],[\"path\",{\"d\":\"M7 10v12\"}]],\"timer\":[[\"line\",{\"x1\":\"10\",\"x2\":\"14\",\"y1\":\"2\",\"y2\":\"2\"}],[\"line\",{\"x1\":\"12\",\"x2\":\"15\",\"y1\":\"14\",\"y2\":\"11\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"14\",\"r\":\"8\"}]],\"user\":[[\"path\",{\"d\":\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"}],[\"circle\",{\"cx\":\"12\",\"cy\":\"7\",\"r\":\"4\"}]],\"users\":[[\"path\",{\"d\":\"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2\"}],[\"path\",{\"d\":\"M16 3.128a4 4 0 0 1 0 7.744\"}],[\"path\",{\"d\":\"M22 21v-2a4 4 0 0 0-3-3.87\"}],[\"circle\",{\"cx\":\"9\",\"cy\":\"7\",\"r\":\"4\"}]],\"video\":[[\"path\",{\"d\":\"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5\"}],[\"rect\",{\"x\":\"2\",\"y\":\"6\",\"width\":\"14\",\"height\":\"12\",\"rx\":\"2\"}]],\"wallet\":[[\"path\",{\"d\":\"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1\"}],[\"path\",{\"d\":\"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4\"}]],\"wifi\":[[\"path\",{\"d\":\"M12 20h.01\"}],[\"path\",{\"d\":\"M2 8.82a15 15 0 0 1 20 0\"}],[\"path\",{\"d\":\"M5 12.859a10 10 0 0 1 14 0\"}],[\"path\",{\"d\":\"M8.5 16.429a5 5 0 0 1 7 0\"}]],\"at-sign\":[[\"circle\",{\"cx\":\"12\",\"cy\":\"12\",\"r\":\"4\"}],[\"path\",{\"d\":\"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8\"}]]}"), Ea = /* @__PURE__ */ new Set([
|
|
7593
7597
|
"path",
|
|
7594
7598
|
"circle",
|
|
7595
7599
|
"rect",
|
|
7596
7600
|
"line"
|
|
7597
|
-
]),
|
|
7598
|
-
function
|
|
7601
|
+
]), Da = (e) => Array.isArray(e) && e.length === 2 && typeof e[0] == "string" && Ea.has(e[0]) && typeof e[1] == "object" && e[1] !== null && Object.values(e[1]).every((e) => typeof e == "string");
|
|
7602
|
+
function Oa(e) {
|
|
7599
7603
|
let t = typeof e == "object" && e ? Object.entries(e) : [];
|
|
7600
|
-
return new Map(t.flatMap(([e, t]) => Array.isArray(t) && t.every(
|
|
7604
|
+
return new Map(t.flatMap(([e, t]) => Array.isArray(t) && t.every(Da) ? [[e, t]] : []));
|
|
7601
7605
|
}
|
|
7602
|
-
var
|
|
7606
|
+
var ka = Oa(Ta), Aa = [...ka.keys()], ja = [
|
|
7603
7607
|
"width",
|
|
7604
7608
|
"height",
|
|
7605
7609
|
"stroke-width"
|
|
7606
|
-
],
|
|
7610
|
+
], Ma = /* @__PURE__ */ c({
|
|
7607
7611
|
__name: "CatalogIcon",
|
|
7608
7612
|
props: {
|
|
7609
7613
|
name: {},
|
|
@@ -7611,7 +7615,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7611
7615
|
stroke: { default: 2 }
|
|
7612
7616
|
},
|
|
7613
7617
|
setup(r) {
|
|
7614
|
-
let a = r, o = t(() =>
|
|
7618
|
+
let a = r, o = t(() => ka.get(a.name) ?? []);
|
|
7615
7619
|
return (t, a) => (_(), i("svg", {
|
|
7616
7620
|
width: r.size,
|
|
7617
7621
|
height: r.size,
|
|
@@ -7622,9 +7626,9 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7622
7626
|
"stroke-linecap": "round",
|
|
7623
7627
|
"stroke-linejoin": "round",
|
|
7624
7628
|
"aria-hidden": "true"
|
|
7625
|
-
}, [(_(!0), i(e, null, x(o.value, (e, t) => (_(), n(C(e[0]), f({ key: t }, { ref_for: !0 }, e[1]), null, 16))), 128))], 8,
|
|
7629
|
+
}, [(_(!0), i(e, null, x(o.value, (e, t) => (_(), n(C(e[0]), f({ key: t }, { ref_for: !0 }, e[1]), null, 16))), 128))], 8, ja));
|
|
7626
7630
|
}
|
|
7627
|
-
}),
|
|
7631
|
+
}), Na = {
|
|
7628
7632
|
heading: nt,
|
|
7629
7633
|
text: me,
|
|
7630
7634
|
image: Ne,
|
|
@@ -7641,7 +7645,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7641
7645
|
textarea: Ge,
|
|
7642
7646
|
select: Ie,
|
|
7643
7647
|
checkbox: $e
|
|
7644
|
-
},
|
|
7648
|
+
}, Pa = /* @__PURE__ */ c({
|
|
7645
7649
|
__name: "ElementIcon",
|
|
7646
7650
|
props: {
|
|
7647
7651
|
element: {},
|
|
@@ -7649,11 +7653,11 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7649
7653
|
},
|
|
7650
7654
|
setup(e) {
|
|
7651
7655
|
let r = e, i = K(), a = t(() => i.kindOf(r.element));
|
|
7652
|
-
return (t, r) => a.value.kind === "core" ? (_(), n(C(D(
|
|
7656
|
+
return (t, r) => a.value.kind === "core" ? (_(), n(C(D(Na)[a.value.element.type]), {
|
|
7653
7657
|
key: 0,
|
|
7654
7658
|
size: e.size,
|
|
7655
7659
|
"aria-hidden": "true"
|
|
7656
|
-
}, null, 8, ["size"])) : a.value.kind === "app" ? (_(), n(
|
|
7660
|
+
}, null, 8, ["size"])) : a.value.kind === "app" ? (_(), n(Ma, {
|
|
7657
7661
|
key: 1,
|
|
7658
7662
|
name: a.value.spec.icon,
|
|
7659
7663
|
size: e.size
|
|
@@ -7663,74 +7667,74 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7663
7667
|
"aria-hidden": "true"
|
|
7664
7668
|
}, null, 8, ["size"]));
|
|
7665
7669
|
}
|
|
7666
|
-
}),
|
|
7670
|
+
}), Fa = { class: "lze-sidebar lze-left" }, Ia = {
|
|
7667
7671
|
class: "lze-tabs",
|
|
7668
7672
|
role: "tablist"
|
|
7669
|
-
},
|
|
7673
|
+
}, La = ["aria-selected", "onClick"], Ra = {
|
|
7670
7674
|
key: 0,
|
|
7671
7675
|
class: "lze-scroll lze-stack",
|
|
7672
7676
|
role: "tabpanel"
|
|
7673
|
-
},
|
|
7677
|
+
}, za = { class: "lze-palette" }, Ba = [
|
|
7674
7678
|
"title",
|
|
7675
7679
|
"onPointerdown",
|
|
7676
7680
|
"onClick"
|
|
7677
|
-
],
|
|
7681
|
+
], Va = { class: "lze-group-title" }, Ha = { class: "lze-palette" }, Ua = [
|
|
7678
7682
|
"title",
|
|
7679
7683
|
"onPointerdown",
|
|
7680
7684
|
"onClick"
|
|
7681
|
-
],
|
|
7685
|
+
], Wa = { class: "lze-hint" }, Ga = { class: "lze-group-title" }, Ka = { class: "lze-palette" }, qa = [
|
|
7682
7686
|
"title",
|
|
7683
7687
|
"onPointerdown",
|
|
7684
7688
|
"onClick"
|
|
7685
|
-
],
|
|
7689
|
+
], Ja = { class: "lze-hint" }, Ya = {
|
|
7686
7690
|
key: 1,
|
|
7687
7691
|
class: "lze-scroll lze-stack",
|
|
7688
7692
|
role: "tabpanel"
|
|
7689
|
-
},
|
|
7693
|
+
}, Xa = { class: "lze-hint" }, Za = { class: "lze-group-label" }, Qa = ["onClick"], $a = {
|
|
7690
7694
|
key: 2,
|
|
7691
7695
|
class: "lze-scroll",
|
|
7692
7696
|
role: "tabpanel"
|
|
7693
|
-
},
|
|
7697
|
+
}, eo = { class: "lze-heading lze-pad" }, to = { class: "lze-muted" }, no = ["data-selected"], ro = ["aria-label", "onClick"], io = ["onClick"], ao = { class: "lze-muted" }, oo = {
|
|
7694
7698
|
key: 0,
|
|
7695
7699
|
class: "lze-layer-actions"
|
|
7696
|
-
},
|
|
7700
|
+
}, so = [
|
|
7697
7701
|
"aria-label",
|
|
7698
7702
|
"disabled",
|
|
7699
7703
|
"onClick"
|
|
7700
|
-
],
|
|
7704
|
+
], co = [
|
|
7701
7705
|
"aria-label",
|
|
7702
7706
|
"disabled",
|
|
7703
7707
|
"onClick"
|
|
7704
|
-
],
|
|
7708
|
+
], lo = { class: "lze-layer-children" }, uo = ["data-selected"], fo = ["onClick"], po = [
|
|
7705
7709
|
"data-locked",
|
|
7706
7710
|
"title",
|
|
7707
7711
|
"aria-label",
|
|
7708
7712
|
"onClick"
|
|
7709
|
-
],
|
|
7713
|
+
], mo = {
|
|
7710
7714
|
key: 0,
|
|
7711
7715
|
class: "lze-layer-children"
|
|
7712
|
-
},
|
|
7716
|
+
}, ho = ["data-selected"], go = ["onClick"], _o = {
|
|
7713
7717
|
key: 0,
|
|
7714
7718
|
class: "lze-hint lze-pad"
|
|
7715
|
-
},
|
|
7719
|
+
}, vo = {
|
|
7716
7720
|
key: 3,
|
|
7717
7721
|
class: "lze-scroll",
|
|
7718
7722
|
role: "tabpanel"
|
|
7719
|
-
},
|
|
7723
|
+
}, yo = { class: "lze-heading lze-pad" }, bo = { class: "lze-hint" }, xo = { class: "lze-stack lze-pad" }, So = ["data-active"], Co = { class: "lze-row" }, wo = ["onUpdate:modelValue", "aria-label"], To = ["aria-label", "onClick"], Eo = { class: "lze-heading" }, Do = { class: "lze-muted" }, Oo = ["onClick"], ko = {
|
|
7720
7724
|
key: 0,
|
|
7721
7725
|
class: "lze-hint"
|
|
7722
|
-
},
|
|
7726
|
+
}, Ao = {
|
|
7723
7727
|
key: 4,
|
|
7724
7728
|
class: "lze-scroll",
|
|
7725
7729
|
role: "tabpanel"
|
|
7726
|
-
},
|
|
7730
|
+
}, jo = { class: "lze-heading lze-pad" }, Mo = { class: "lze-hint" }, No = { class: "lze-media-grid lze-pad" }, Po = [
|
|
7727
7731
|
"title",
|
|
7728
7732
|
"onPointerdown",
|
|
7729
7733
|
"onClick"
|
|
7730
|
-
],
|
|
7734
|
+
], Fo = ["src", "alt"], Io = {
|
|
7731
7735
|
key: 0,
|
|
7732
7736
|
class: "lze-hint"
|
|
7733
|
-
},
|
|
7737
|
+
}, Lo = /* @__PURE__ */ c({
|
|
7734
7738
|
__name: "LeftSidebar",
|
|
7735
7739
|
props: { dropPoint: { type: Function } },
|
|
7736
7740
|
setup(c) {
|
|
@@ -7760,7 +7764,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7760
7764
|
label: "tabs.media",
|
|
7761
7765
|
icon: Ne
|
|
7762
7766
|
}
|
|
7763
|
-
], h = st.filter((e) =>
|
|
7767
|
+
], h = st.filter((e) => an[e].group === "content"), g = st.filter((e) => an[e].group === "form"), v = b(null);
|
|
7764
7768
|
function y(e, t, n, r) {
|
|
7765
7769
|
e.button === 0 && (v.value = {
|
|
7766
7770
|
insertable: t,
|
|
@@ -7792,21 +7796,21 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7792
7796
|
function E(e, t, n) {
|
|
7793
7797
|
e.detail === 0 && u.addElement(t, void 0, n);
|
|
7794
7798
|
}
|
|
7795
|
-
let O = (e) => d(
|
|
7799
|
+
let O = (e) => d(an[e].label), k = b([]);
|
|
7796
7800
|
function A(e) {
|
|
7797
7801
|
k.value = k.value.includes(e) ? k.value.filter((t) => t !== e) : [...k.value, e];
|
|
7798
7802
|
}
|
|
7799
7803
|
let M = t(() => u.state.selection.kind === "elements" ? u.state.selection.ids : []), te = (e) => u.state.selection.kind === "canvas" && u.state.selection.canvas === e;
|
|
7800
7804
|
function N(e) {
|
|
7801
7805
|
let t = u.kindOf(e);
|
|
7802
|
-
return
|
|
7806
|
+
return un(e, t.kind === "core" ? d(t.spec.label) : t.kind === "app" ? u.i18n.localized(t.spec.label) : d("type.unknown"));
|
|
7803
7807
|
}
|
|
7804
7808
|
function P(e) {
|
|
7805
7809
|
e.locked = !e.locked, u.commit();
|
|
7806
7810
|
}
|
|
7807
7811
|
let re = t(() => u.state.draft.modals ?? []);
|
|
7808
|
-
return (t, c) => (_(), i("aside",
|
|
7809
|
-
a("div",
|
|
7812
|
+
return (t, c) => (_(), i("aside", Fa, [
|
|
7813
|
+
a("div", Ia, [(_(), i(e, null, x(p, (e) => a("button", {
|
|
7810
7814
|
key: e.key,
|
|
7811
7815
|
type: "button",
|
|
7812
7816
|
role: "tab",
|
|
@@ -7815,9 +7819,9 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7815
7819
|
}, [(_(), n(C(e.icon), {
|
|
7816
7820
|
size: 16,
|
|
7817
7821
|
"aria-hidden": "true"
|
|
7818
|
-
})), o(T(D(d)(e.label)), 1)], 8,
|
|
7819
|
-
f.value === "elements" ? (_(), i("div",
|
|
7820
|
-
a("div",
|
|
7822
|
+
})), o(T(D(d)(e.label)), 1)], 8, La)), 64))]),
|
|
7823
|
+
f.value === "elements" ? (_(), i("div", Ra, [
|
|
7824
|
+
a("div", za, [(_(!0), i(e, null, x(D(h), (e) => (_(), i("button", {
|
|
7821
7825
|
key: e,
|
|
7822
7826
|
type: "button",
|
|
7823
7827
|
class: "lze-palette-item",
|
|
@@ -7833,13 +7837,13 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7833
7837
|
onPointermove: S,
|
|
7834
7838
|
onPointerup: w,
|
|
7835
7839
|
onPointercancel: c[0] ||= (e) => v.value = null
|
|
7836
|
-
}, [(_(), n(C(D(
|
|
7840
|
+
}, [(_(), n(C(D(Na)[e]), {
|
|
7837
7841
|
size: 16,
|
|
7838
7842
|
"aria-hidden": "true"
|
|
7839
|
-
})), o(T(O(e)), 1)], 40,
|
|
7843
|
+
})), o(T(O(e)), 1)], 40, Ba))), 128))]),
|
|
7840
7844
|
D(u).catalog.value.elements.length ? (_(), i(e, { key: 0 }, [
|
|
7841
|
-
a("p",
|
|
7842
|
-
a("div",
|
|
7845
|
+
a("p", Va, T(D(d)("elements.app")), 1),
|
|
7846
|
+
a("div", Ha, [(_(!0), i(e, null, x(D(u).catalog.value.elements, (e) => (_(), i("button", {
|
|
7843
7847
|
key: e.type,
|
|
7844
7848
|
type: "button",
|
|
7845
7849
|
class: "lze-palette-item",
|
|
@@ -7855,14 +7859,14 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7855
7859
|
onPointermove: S,
|
|
7856
7860
|
onPointerup: w,
|
|
7857
7861
|
onPointercancel: c[1] ||= (e) => v.value = null
|
|
7858
|
-
}, [s(
|
|
7862
|
+
}, [s(Ma, {
|
|
7859
7863
|
name: e.icon,
|
|
7860
7864
|
size: 16
|
|
7861
|
-
}, null, 8, ["name"]), o(T(D(u).i18n.localized(e.label)), 1)], 40,
|
|
7862
|
-
a("p",
|
|
7865
|
+
}, null, 8, ["name"]), o(T(D(u).i18n.localized(e.label)), 1)], 40, Ua))), 128))]),
|
|
7866
|
+
a("p", Wa, T(D(d)("elements.appHint")), 1)
|
|
7863
7867
|
], 64)) : r("", !0),
|
|
7864
|
-
a("p",
|
|
7865
|
-
a("div",
|
|
7868
|
+
a("p", Ga, T(D(d)("elements.form")), 1),
|
|
7869
|
+
a("div", Ka, [(_(!0), i(e, null, x(D(g), (e) => (_(), i("button", {
|
|
7866
7870
|
key: e,
|
|
7867
7871
|
type: "button",
|
|
7868
7872
|
class: "lze-palette-item",
|
|
@@ -7878,20 +7882,20 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7878
7882
|
onPointermove: S,
|
|
7879
7883
|
onPointerup: w,
|
|
7880
7884
|
onPointercancel: c[2] ||= (e) => v.value = null
|
|
7881
|
-
}, [(_(), n(C(D(
|
|
7885
|
+
}, [(_(), n(C(D(Na)[e]), {
|
|
7882
7886
|
size: 16,
|
|
7883
7887
|
"aria-hidden": "true"
|
|
7884
|
-
})), o(T(O(e)), 1)], 40,
|
|
7885
|
-
a("p",
|
|
7886
|
-
])) : f.value === "blocks" ? (_(), i("div",
|
|
7888
|
+
})), o(T(O(e)), 1)], 40, qa))), 128))]),
|
|
7889
|
+
a("p", Ja, T(D(d)("elements.formHint")), 1)
|
|
7890
|
+
])) : f.value === "blocks" ? (_(), i("div", Ya, [a("p", Xa, T(D(d)("elements.sectionsHint")), 1), (_(!0), i(e, null, x(D(En), (t) => (_(), i("div", {
|
|
7887
7891
|
key: t.key,
|
|
7888
7892
|
class: "lze-list"
|
|
7889
|
-
}, [a("p",
|
|
7893
|
+
}, [a("p", Za, T(D(d)(t.name)), 1), (_(!0), i(e, null, x(D(Tn).filter((e) => e.group === t.key), (e) => (_(), i("button", {
|
|
7890
7894
|
key: e.key,
|
|
7891
7895
|
type: "button",
|
|
7892
7896
|
class: "lze-list-item",
|
|
7893
|
-
onClick: (t) => D(u).addSection(D(
|
|
7894
|
-
}, T(D(d)(e.name)), 9,
|
|
7897
|
+
onClick: (t) => D(u).addSection(D(kn)(e.key))
|
|
7898
|
+
}, T(D(d)(e.name)), 9, Qa))), 128))]))), 128))])) : f.value === "layers" ? (_(), i("div", $a, [a("div", eo, [a("span", to, T(D(u).activeModal.value ? D(d)("layers.modal", { title: D(u).activeModal.value.title }) : D(d)("layers.count", { n: D(u).state.draft.sections.length })), 1), D(u).activeModal.value ? r("", !0) : (_(), i("button", {
|
|
7895
7899
|
key: 0,
|
|
7896
7900
|
type: "button",
|
|
7897
7901
|
class: "lze-btn",
|
|
@@ -7916,7 +7920,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7916
7920
|
size: 14,
|
|
7917
7921
|
style: m({ transform: k.value.includes(t.id) ? "rotate(-90deg)" : void 0 }),
|
|
7918
7922
|
"aria-hidden": "true"
|
|
7919
|
-
}, null, 8, ["style"])], 8,
|
|
7923
|
+
}, null, 8, ["style"])], 8, ro),
|
|
7920
7924
|
a("button", {
|
|
7921
7925
|
type: "button",
|
|
7922
7926
|
class: "lze-layer-name",
|
|
@@ -7927,9 +7931,9 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7927
7931
|
"aria-hidden": "true"
|
|
7928
7932
|
}),
|
|
7929
7933
|
a("span", null, T(D(ut)(t) ? t.title : D(d)("layers.section", { n: o + 1 })), 1),
|
|
7930
|
-
a("span",
|
|
7931
|
-
], 8,
|
|
7932
|
-
D(ut)(t) ? r("", !0) : (_(), i("span",
|
|
7934
|
+
a("span", ao, T(t.elements.length), 1)
|
|
7935
|
+
], 8, io),
|
|
7936
|
+
D(ut)(t) ? r("", !0) : (_(), i("span", oo, [a("button", {
|
|
7933
7937
|
type: "button",
|
|
7934
7938
|
class: "lze-icon-btn",
|
|
7935
7939
|
"aria-label": D(d)("layers.up"),
|
|
@@ -7938,7 +7942,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7938
7942
|
}, [s(D(Se), {
|
|
7939
7943
|
size: 14,
|
|
7940
7944
|
"aria-hidden": "true"
|
|
7941
|
-
})], 8,
|
|
7945
|
+
})], 8, so), a("button", {
|
|
7942
7946
|
type: "button",
|
|
7943
7947
|
class: "lze-icon-btn",
|
|
7944
7948
|
"aria-label": D(d)("layers.down"),
|
|
@@ -7947,15 +7951,15 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7947
7951
|
}, [s(D(xe), {
|
|
7948
7952
|
size: 14,
|
|
7949
7953
|
"aria-hidden": "true"
|
|
7950
|
-
})], 8,
|
|
7951
|
-
], 8,
|
|
7954
|
+
})], 8, co)]))
|
|
7955
|
+
], 8, no), ne(a("div", lo, [(_(!0), i(e, null, x(t.elements, (o) => (_(), i(e, { key: o.id }, [a("div", {
|
|
7952
7956
|
class: "lze-layer-row",
|
|
7953
7957
|
"data-selected": M.value.includes(o.id)
|
|
7954
7958
|
}, [a("button", {
|
|
7955
7959
|
type: "button",
|
|
7956
7960
|
class: "lze-layer-name",
|
|
7957
7961
|
onClick: (e) => D(u).select(t.id, o.id, e.shiftKey)
|
|
7958
|
-
}, [s(
|
|
7962
|
+
}, [s(Pa, { element: o }, null, 8, ["element"]), a("span", null, T(N(o)), 1)], 8, fo), a("button", {
|
|
7959
7963
|
type: "button",
|
|
7960
7964
|
class: "lze-icon-btn lze-lock-toggle",
|
|
7961
7965
|
"data-locked": o.locked === !0,
|
|
@@ -7970,7 +7974,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7970
7974
|
key: 1,
|
|
7971
7975
|
size: 12,
|
|
7972
7976
|
"aria-hidden": "true"
|
|
7973
|
-
}))], 8,
|
|
7977
|
+
}))], 8, po)], 8, uo), o.children?.length ? (_(), i("div", mo, [(_(!0), i(e, null, x(o.children, (e) => (_(), i("div", {
|
|
7974
7978
|
key: e.id,
|
|
7975
7979
|
class: "lze-layer-row",
|
|
7976
7980
|
"data-selected": M.value.includes(e.id)
|
|
@@ -7978,7 +7982,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7978
7982
|
type: "button",
|
|
7979
7983
|
class: "lze-layer-name",
|
|
7980
7984
|
onClick: (n) => D(u).select(t.id, e.id, n.shiftKey)
|
|
7981
|
-
}, [s(
|
|
7985
|
+
}, [s(Pa, { element: e }, null, 8, ["element"]), a("span", null, T(N(e)), 1)], 8, go)], 8, ho))), 128))])) : r("", !0)], 64))), 128)), t.elements.length === 0 ? (_(), i("p", _o, T(D(d)("layers.empty")), 1)) : r("", !0)], 512), [[j, !k.value.includes(t.id)]])]))), 128))])) : f.value === "modals" ? (_(), i("div", vo, [a("div", yo, [a("span", bo, T(D(d)("modals.hint")), 1), a("button", {
|
|
7982
7986
|
type: "button",
|
|
7983
7987
|
class: "lze-btn",
|
|
7984
7988
|
"data-variant": "ghost",
|
|
@@ -7986,17 +7990,17 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
7986
7990
|
}, [s(D(Ke), {
|
|
7987
7991
|
size: 14,
|
|
7988
7992
|
"aria-hidden": "true"
|
|
7989
|
-
}), o(T(D(d)("common.new")), 1)])]), a("div",
|
|
7993
|
+
}), o(T(D(d)("common.new")), 1)])]), a("div", xo, [(_(!0), i(e, null, x(re.value, (e) => (_(), i("div", {
|
|
7990
7994
|
key: e.id,
|
|
7991
7995
|
class: "lze-card",
|
|
7992
7996
|
"data-active": D(u).state.view.kind === "modal" && D(u).state.view.id === e.id
|
|
7993
|
-
}, [a("div",
|
|
7997
|
+
}, [a("div", Co, [ne(a("input", {
|
|
7994
7998
|
"onUpdate:modelValue": (t) => e.title = t,
|
|
7995
7999
|
class: "lze-input",
|
|
7996
8000
|
maxlength: "120",
|
|
7997
8001
|
"aria-label": D(d)("modals.titleLabel"),
|
|
7998
8002
|
onChange: c[5] ||= (e) => D(u).commit()
|
|
7999
|
-
}, null, 40,
|
|
8003
|
+
}, null, 40, wo), [[ee, e.title]]), a("button", {
|
|
8000
8004
|
type: "button",
|
|
8001
8005
|
class: "lze-icon-btn",
|
|
8002
8006
|
"data-tone": "danger",
|
|
@@ -8005,11 +8009,11 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8005
8009
|
}, [s(D(tt), {
|
|
8006
8010
|
size: 14,
|
|
8007
8011
|
"aria-hidden": "true"
|
|
8008
|
-
})], 8,
|
|
8012
|
+
})], 8, To)]), a("div", Eo, [a("span", Do, T(D(d)("modals.elements", { n: e.elements.length })), 1), a("button", {
|
|
8009
8013
|
type: "button",
|
|
8010
8014
|
class: "lze-btn",
|
|
8011
8015
|
onClick: (t) => D(u).openModal(D(u).state.view.kind === "modal" && D(u).state.view.id === e.id ? null : e.id)
|
|
8012
|
-
}, T(D(u).state.view.kind === "modal" && D(u).state.view.id === e.id ? D(d)("common.close") : D(d)("modals.edit")), 9,
|
|
8016
|
+
}, T(D(u).state.view.kind === "modal" && D(u).state.view.id === e.id ? D(d)("common.close") : D(d)("modals.edit")), 9, Oo)])], 8, So))), 128)), re.value.length === 0 ? (_(), i("p", ko, T(D(d)("modals.empty")), 1)) : r("", !0)])])) : (_(), i("div", Ao, [a("div", jo, [a("span", Mo, T(D(d)("media.hint")), 1), a("button", {
|
|
8013
8017
|
type: "button",
|
|
8014
8018
|
class: "lze-btn",
|
|
8015
8019
|
"data-variant": "ghost",
|
|
@@ -8017,7 +8021,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8017
8021
|
}, [s(D(Ke), {
|
|
8018
8022
|
size: 14,
|
|
8019
8023
|
"aria-hidden": "true"
|
|
8020
|
-
}), o(T(D(d)("media.upload")), 1)])]), a("div",
|
|
8024
|
+
}), o(T(D(d)("media.upload")), 1)])]), a("div", No, [(_(!0), i(e, null, x(D(u).state.workspace.assets, (e) => (_(), i("button", {
|
|
8021
8025
|
key: e.id,
|
|
8022
8026
|
type: "button",
|
|
8023
8027
|
class: "lze-media-item",
|
|
@@ -8038,7 +8042,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8038
8042
|
alt: e.name,
|
|
8039
8043
|
loading: "lazy",
|
|
8040
8044
|
draggable: "false"
|
|
8041
|
-
}, null, 8,
|
|
8045
|
+
}, null, 8, Fo)], 40, Po))), 128)), D(u).state.workspace.assets.length === 0 ? (_(), i("p", Io, T(D(d)("media.empty")), 1)) : r("", !0)])])),
|
|
8042
8046
|
v.value?.moved ? (_(), i("p", {
|
|
8043
8047
|
key: 5,
|
|
8044
8048
|
class: "lze-drag-ghost",
|
|
@@ -8049,7 +8053,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8049
8053
|
}, T(v.value.label), 5)) : r("", !0)
|
|
8050
8054
|
]));
|
|
8051
8055
|
}
|
|
8052
|
-
}),
|
|
8056
|
+
}), Ro = /* @__PURE__ */ c({
|
|
8053
8057
|
__name: "AppContent",
|
|
8054
8058
|
props: {
|
|
8055
8059
|
element: {},
|
|
@@ -8063,7 +8067,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8063
8067
|
[e]: t
|
|
8064
8068
|
};
|
|
8065
8069
|
}
|
|
8066
|
-
return (r, s) => (_(!0), i(e, null, x(t.spec.fields, (e) => (_(), n(
|
|
8070
|
+
return (r, s) => (_(!0), i(e, null, x(t.spec.fields, (e) => (_(), n(Fi, {
|
|
8067
8071
|
key: e.key,
|
|
8068
8072
|
field: e,
|
|
8069
8073
|
"model-value": t.element.props[e.key],
|
|
@@ -8075,7 +8079,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8075
8079
|
"onUpdate:modelValue"
|
|
8076
8080
|
]))), 128));
|
|
8077
8081
|
}
|
|
8078
|
-
}),
|
|
8082
|
+
}), zo = /* @__PURE__ */ c({
|
|
8079
8083
|
__name: "ButtonContent",
|
|
8080
8084
|
props: { element: {} },
|
|
8081
8085
|
setup(t) {
|
|
@@ -8093,7 +8097,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8093
8097
|
}, null, 8, ["id", "modelValue"])]),
|
|
8094
8098
|
_: 1
|
|
8095
8099
|
}, 8, ["id", "label"]), s(J, { label: D(r)("el.action") }, {
|
|
8096
|
-
default: N(() => [s(
|
|
8100
|
+
default: N(() => [s(Ni, {
|
|
8097
8101
|
modelValue: t.element.props.action,
|
|
8098
8102
|
"onUpdate:modelValue": c[2] ||= (e) => t.element.props.action = e,
|
|
8099
8103
|
label: D(r)("el.action"),
|
|
@@ -8102,7 +8106,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8102
8106
|
_: 1
|
|
8103
8107
|
}, 8, ["label"])], 64));
|
|
8104
8108
|
}
|
|
8105
|
-
}),
|
|
8109
|
+
}), Bo = 30, Vo = /* @__PURE__ */ c({
|
|
8106
8110
|
__name: "FormFieldContent",
|
|
8107
8111
|
props: { element: {} },
|
|
8108
8112
|
setup(t) {
|
|
@@ -8122,7 +8126,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8122
8126
|
label: c(`el.inputType.${e}`)
|
|
8123
8127
|
})), d = b((a.element.props.options ?? []).join("\n"));
|
|
8124
8128
|
function f(e) {
|
|
8125
|
-
d.value = e ?? "", a.element.props.options = d.value.split("\n").map((e) => e.trim()).filter(Boolean).slice(0,
|
|
8129
|
+
d.value = e ?? "", a.element.props.options = d.value.split("\n").map((e) => e.trim()).filter(Boolean).slice(0, Bo);
|
|
8126
8130
|
}
|
|
8127
8131
|
return (a, p) => (_(), i(e, null, [
|
|
8128
8132
|
s(J, {
|
|
@@ -8204,21 +8208,21 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8204
8208
|
}, null, 8, ["modelValue", "label"])
|
|
8205
8209
|
], 64));
|
|
8206
8210
|
}
|
|
8207
|
-
}),
|
|
8211
|
+
}), Ho = ["aria-label"], Uo = [
|
|
8208
8212
|
"title",
|
|
8209
8213
|
"aria-label",
|
|
8210
8214
|
"aria-pressed",
|
|
8211
8215
|
"onClick"
|
|
8212
|
-
],
|
|
8216
|
+
], Wo = {
|
|
8213
8217
|
key: 0,
|
|
8214
8218
|
class: "lze-hint"
|
|
8215
|
-
},
|
|
8219
|
+
}, Go = /* @__PURE__ */ c({
|
|
8216
8220
|
__name: "IconContent",
|
|
8217
8221
|
props: { element: {} },
|
|
8218
8222
|
setup(n) {
|
|
8219
8223
|
let o = n, c = K(), l = c.t, u = O(), d = b(""), f = t(() => {
|
|
8220
8224
|
let e = d.value.trim().toLowerCase();
|
|
8221
|
-
return e ?
|
|
8225
|
+
return e ? Aa.filter((t) => t.includes(e)) : Aa;
|
|
8222
8226
|
});
|
|
8223
8227
|
function p(e) {
|
|
8224
8228
|
o.element.props.icon = e, c.commit();
|
|
@@ -8249,12 +8253,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8249
8253
|
"aria-label": e,
|
|
8250
8254
|
"aria-pressed": n.element.props.icon === e,
|
|
8251
8255
|
onClick: (t) => p(e)
|
|
8252
|
-
}, [s(
|
|
8256
|
+
}, [s(Ma, {
|
|
8253
8257
|
name: e,
|
|
8254
8258
|
size: 20
|
|
8255
|
-
}, null, 8, ["name"])], 8,
|
|
8259
|
+
}, null, 8, ["name"])], 8, Uo))), 128)), f.value.length === 0 ? (_(), i("p", Wo, T(D(l)("el.noResults")), 1)) : r("", !0)], 8, Ho)]),
|
|
8256
8260
|
_: 1
|
|
8257
|
-
}, 8, ["id", "label"]), s(
|
|
8261
|
+
}, 8, ["id", "label"]), s(na, {
|
|
8258
8262
|
modelValue: n.element.props.stroke,
|
|
8259
8263
|
"onUpdate:modelValue": o[1] ||= (e) => n.element.props.stroke = e,
|
|
8260
8264
|
label: D(l)("el.stroke"),
|
|
@@ -8265,7 +8269,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8265
8269
|
onCommit: o[2] ||= (e) => D(c).commit()
|
|
8266
8270
|
}, null, 8, ["modelValue", "label"])], 64));
|
|
8267
8271
|
}
|
|
8268
|
-
}),
|
|
8272
|
+
}), Ko = [
|
|
8269
8273
|
"rectangle",
|
|
8270
8274
|
"ellipse",
|
|
8271
8275
|
"triangle",
|
|
@@ -8274,10 +8278,10 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8274
8278
|
"diagonal",
|
|
8275
8279
|
"dots",
|
|
8276
8280
|
"grid"
|
|
8277
|
-
],
|
|
8281
|
+
], qo = (e) => Ko.map((t) => ({
|
|
8278
8282
|
value: t,
|
|
8279
8283
|
label: e(`shape.${t}`)
|
|
8280
|
-
})),
|
|
8284
|
+
})), Jo = /* @__PURE__ */ c({
|
|
8281
8285
|
__name: "ImageContent",
|
|
8282
8286
|
props: { element: {} },
|
|
8283
8287
|
setup(t) {
|
|
@@ -8290,7 +8294,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8290
8294
|
label: r(`el.fit.${e}`)
|
|
8291
8295
|
}));
|
|
8292
8296
|
return (c, l) => (_(), i(e, null, [
|
|
8293
|
-
s(
|
|
8297
|
+
s(gi, {
|
|
8294
8298
|
modelValue: t.element.props.src,
|
|
8295
8299
|
"onUpdate:modelValue": l[0] ||= (e) => t.element.props.src = e,
|
|
8296
8300
|
label: D(r)("el.image"),
|
|
@@ -8340,7 +8344,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8340
8344
|
id: a.crop,
|
|
8341
8345
|
modelValue: t.element.props.shape,
|
|
8342
8346
|
"onUpdate:modelValue": l[6] ||= (e) => t.element.props.shape = e,
|
|
8343
|
-
options: D(
|
|
8347
|
+
options: D(qo)(D(r)),
|
|
8344
8348
|
onCommit: l[7] ||= (e) => D(n).commit()
|
|
8345
8349
|
}, null, 8, [
|
|
8346
8350
|
"id",
|
|
@@ -8351,7 +8355,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8351
8355
|
}, 8, ["id", "label"])
|
|
8352
8356
|
], 64));
|
|
8353
8357
|
}
|
|
8354
|
-
}),
|
|
8358
|
+
}), Yo = { class: "lze-hint" }, Xo = /* @__PURE__ */ c({
|
|
8355
8359
|
__name: "BoxContent",
|
|
8356
8360
|
props: { element: {} },
|
|
8357
8361
|
setup(t) {
|
|
@@ -8414,10 +8418,10 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8414
8418
|
])]),
|
|
8415
8419
|
_: 1
|
|
8416
8420
|
}, 8, ["id", "label"]),
|
|
8417
|
-
a("p",
|
|
8421
|
+
a("p", Yo, T(d() === 0 ? D(o)("el.boxEmpty") : D(o)("el.boxHolds", { n: d() })), 1)
|
|
8418
8422
|
], 64));
|
|
8419
8423
|
}
|
|
8420
|
-
}),
|
|
8424
|
+
}), Zo = { class: "lze-field" }, Qo = { class: "lze-heading" }, $o = { class: "lze-label" }, es = { class: "lze-hint" }, ts = 24, ns = /* @__PURE__ */ c({
|
|
8421
8425
|
__name: "PictureList",
|
|
8422
8426
|
props: { element: {} },
|
|
8423
8427
|
setup(n) {
|
|
@@ -8431,9 +8435,9 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8431
8435
|
function p(e) {
|
|
8432
8436
|
r.element.props.images = u.value.filter((t, n) => n !== e), c.commit();
|
|
8433
8437
|
}
|
|
8434
|
-
return (t, n) => (_(), i("div",
|
|
8435
|
-
a("div",
|
|
8436
|
-
disabled: u.value.length >=
|
|
8438
|
+
return (t, n) => (_(), i("div", Zo, [
|
|
8439
|
+
a("div", Qo, [a("span", $o, T(D(l)("el.gallery")), 1), s(q, {
|
|
8440
|
+
disabled: u.value.length >= ts,
|
|
8437
8441
|
onClick: f
|
|
8438
8442
|
}, {
|
|
8439
8443
|
default: N(() => [o(T(D(l)("el.galleryAdd")), 1)]),
|
|
@@ -8442,7 +8446,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8442
8446
|
(_(!0), i(e, null, x(u.value, (e, t) => (_(), i("div", {
|
|
8443
8447
|
key: t,
|
|
8444
8448
|
class: "lze-row lze-nowrap"
|
|
8445
|
-
}, [s(
|
|
8449
|
+
}, [s(gi, {
|
|
8446
8450
|
"model-value": e,
|
|
8447
8451
|
label: D(l)("el.galleryItem", { n: t + 1 }),
|
|
8448
8452
|
url: "",
|
|
@@ -8460,10 +8464,10 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8460
8464
|
default: N(() => [o(T(D(l)("el.galleryRemove")), 1)]),
|
|
8461
8465
|
_: 1
|
|
8462
8466
|
}, 8, ["onClick"])]))), 128)),
|
|
8463
|
-
a("p",
|
|
8467
|
+
a("p", es, T(D(l)("el.galleryHint")), 1)
|
|
8464
8468
|
]));
|
|
8465
8469
|
}
|
|
8466
|
-
}),
|
|
8470
|
+
}), rs = /* @__PURE__ */ c({
|
|
8467
8471
|
__name: "GalleryContent",
|
|
8468
8472
|
props: { element: {} },
|
|
8469
8473
|
setup(t) {
|
|
@@ -8501,7 +8505,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8501
8505
|
"onUpdate:modelValue": d[2] ||= (e) => t.element.props.columns = e ?? 3,
|
|
8502
8506
|
onCommit: d[3] ||= (e) => D(a).commit()
|
|
8503
8507
|
}, null, 8, ["model-value", "label"])) : r("", !0),
|
|
8504
|
-
s(
|
|
8508
|
+
s(ns, { element: t.element }, null, 8, ["element"]),
|
|
8505
8509
|
s(J, {
|
|
8506
8510
|
id: c.alt,
|
|
8507
8511
|
label: D(o)("el.alt")
|
|
@@ -8522,13 +8526,13 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8522
8526
|
}, 8, ["id", "label"])
|
|
8523
8527
|
], 64));
|
|
8524
8528
|
}
|
|
8525
|
-
}),
|
|
8529
|
+
}), is = /* @__PURE__ */ c({
|
|
8526
8530
|
__name: "SliderContent",
|
|
8527
8531
|
props: { element: {} },
|
|
8528
8532
|
setup(t) {
|
|
8529
8533
|
let a = K(), o = a.t, c = { alt: O() };
|
|
8530
8534
|
return (l, u) => (_(), i(e, null, [
|
|
8531
|
-
s(
|
|
8535
|
+
s(ns, { element: t.element }, null, 8, ["element"]),
|
|
8532
8536
|
s(Q, {
|
|
8533
8537
|
"model-value": t.element.props.arrows !== !1,
|
|
8534
8538
|
label: D(o)("el.sliderArrows"),
|
|
@@ -8579,12 +8583,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8579
8583
|
}, 8, ["id", "label"])
|
|
8580
8584
|
], 64));
|
|
8581
8585
|
}
|
|
8582
|
-
}),
|
|
8586
|
+
}), as = { class: "lze-field" }, os = { class: "lze-label" }, ss = ["aria-label"], cs = [
|
|
8583
8587
|
"title",
|
|
8584
8588
|
"aria-label",
|
|
8585
8589
|
"aria-pressed",
|
|
8586
8590
|
"onClick"
|
|
8587
|
-
],
|
|
8591
|
+
], ls = ["data-active", "title"], us = ["value", "aria-label"], $ = /* @__PURE__ */ c({
|
|
8588
8592
|
__name: "ColorPicker",
|
|
8589
8593
|
props: /*@__PURE__*/ d({ label: {} }, {
|
|
8590
8594
|
modelValue: { required: !0 },
|
|
@@ -8596,7 +8600,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8596
8600
|
function d(e) {
|
|
8597
8601
|
s.value = e, c("commit");
|
|
8598
8602
|
}
|
|
8599
|
-
return (t, r) => (_(), i("div",
|
|
8603
|
+
return (t, r) => (_(), i("div", as, [a("span", os, T(n.label), 1), a("div", {
|
|
8600
8604
|
class: "lze-swatches",
|
|
8601
8605
|
role: "group",
|
|
8602
8606
|
"aria-label": n.label
|
|
@@ -8609,7 +8613,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8609
8613
|
"aria-label": D(l).t(`token.${e}`),
|
|
8610
8614
|
"aria-pressed": s.value === e,
|
|
8611
8615
|
onClick: (t) => d(e)
|
|
8612
|
-
}, null, 12,
|
|
8616
|
+
}, null, 12, cs))), 128)), a("label", {
|
|
8613
8617
|
class: "lze-swatch-custom",
|
|
8614
8618
|
"data-active": !!s.value && !D(It)(s.value),
|
|
8615
8619
|
title: D(l).t("color.custom")
|
|
@@ -8619,12 +8623,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8619
8623
|
"aria-label": D(l).t("color.customLabel", { label: n.label }),
|
|
8620
8624
|
onInput: r[0] ||= (e) => s.value = e.target.value,
|
|
8621
8625
|
onChange: r[1] ||= (e) => c("commit")
|
|
8622
|
-
}, null, 40,
|
|
8626
|
+
}, null, 40, us), o(" " + T(D(l).t("color.custom")), 1)], 8, ls)], 8, ss)]));
|
|
8623
8627
|
}
|
|
8624
|
-
}),
|
|
8628
|
+
}), ds = { class: "lze-field" }, fs = { class: "lze-label" }, ps = { class: "lze-row" }, ms = { class: "lze-hint" }, hs = {
|
|
8625
8629
|
key: 2,
|
|
8626
8630
|
class: "lze-hint"
|
|
8627
|
-
},
|
|
8631
|
+
}, gs = { class: "lze-field" }, _s = { class: "lze-heading" }, vs = { class: "lze-label" }, ys = { class: "lze-row lze-nowrap" }, bs = { class: "lze-hint" }, xs = 8, Ss = /* @__PURE__ */ c({
|
|
8628
8632
|
__name: "NavbarContent",
|
|
8629
8633
|
props: { element: {} },
|
|
8630
8634
|
setup(c) {
|
|
@@ -8634,7 +8638,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8634
8638
|
layout: O(),
|
|
8635
8639
|
template: O(),
|
|
8636
8640
|
position: O()
|
|
8637
|
-
}, p =
|
|
8641
|
+
}, p = on(d), m = [
|
|
8638
8642
|
"same",
|
|
8639
8643
|
"shadow",
|
|
8640
8644
|
"solid",
|
|
@@ -8693,7 +8697,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8693
8697
|
l.element.props.links = y.value.filter((t, n) => n !== e), u.commit();
|
|
8694
8698
|
}
|
|
8695
8699
|
return (t, l) => (_(), i(e, null, [
|
|
8696
|
-
a("div",
|
|
8700
|
+
a("div", ds, [a("span", fs, T(D(d)("el.presets")), 1), a("div", ps, [(_(!0), i(e, null, x(D(p), (e) => (_(), n(q, {
|
|
8697
8701
|
key: e.name,
|
|
8698
8702
|
onClick: (t) => b(e)
|
|
8699
8703
|
}, {
|
|
@@ -8772,8 +8776,8 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8772
8776
|
label: D(d)("el.scrollColor"),
|
|
8773
8777
|
onCommit: l[11] ||= (e) => D(u).commit()
|
|
8774
8778
|
}, null, 8, ["modelValue", "label"]),
|
|
8775
|
-
a("p",
|
|
8776
|
-
], 64)) : (_(), i("p",
|
|
8779
|
+
a("p", ms, T(D(d)("el.scrollColorsHint")), 1)
|
|
8780
|
+
], 64)) : (_(), i("p", hs, T(D(d)("el.notSticky")), 1)),
|
|
8777
8781
|
s(J, {
|
|
8778
8782
|
id: f.layout,
|
|
8779
8783
|
label: D(d)("el.layout")
|
|
@@ -8808,9 +8812,9 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8808
8812
|
])]),
|
|
8809
8813
|
_: 1
|
|
8810
8814
|
}, 8, ["id", "label"]),
|
|
8811
|
-
a("div",
|
|
8812
|
-
a("div",
|
|
8813
|
-
disabled: y.value.length >=
|
|
8815
|
+
a("div", gs, [
|
|
8816
|
+
a("div", _s, [a("span", vs, T(D(d)("el.links")), 1), s(q, {
|
|
8817
|
+
disabled: y.value.length >= xs,
|
|
8814
8818
|
onClick: S
|
|
8815
8819
|
}, {
|
|
8816
8820
|
default: N(() => [o(T(D(d)("common.add")), 1)]),
|
|
@@ -8821,7 +8825,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8821
8825
|
class: "lze-link-card"
|
|
8822
8826
|
}, [
|
|
8823
8827
|
a("legend", null, T(D(d)("el.linkN", { n: t + 1 })), 1),
|
|
8824
|
-
a("div",
|
|
8828
|
+
a("div", ys, [s(Y, {
|
|
8825
8829
|
modelValue: e.label,
|
|
8826
8830
|
"onUpdate:modelValue": (t) => e.label = t,
|
|
8827
8831
|
maxlength: 40,
|
|
@@ -8838,7 +8842,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8838
8842
|
default: N(() => [o(T(D(d)("el.removeLink")), 1)]),
|
|
8839
8843
|
_: 1
|
|
8840
8844
|
}, 8, ["onClick"])]),
|
|
8841
|
-
s(
|
|
8845
|
+
s(Ni, {
|
|
8842
8846
|
modelValue: e.action,
|
|
8843
8847
|
"onUpdate:modelValue": (t) => e.action = t,
|
|
8844
8848
|
label: D(d)("el.action"),
|
|
@@ -8849,11 +8853,11 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8849
8853
|
"label"
|
|
8850
8854
|
])
|
|
8851
8855
|
]))), 128)),
|
|
8852
|
-
a("p",
|
|
8856
|
+
a("p", bs, T(D(d)("el.linksHint")), 1)
|
|
8853
8857
|
])
|
|
8854
8858
|
], 64));
|
|
8855
8859
|
}
|
|
8856
|
-
}),
|
|
8860
|
+
}), Cs = /* @__PURE__ */ c({
|
|
8857
8861
|
__name: "ShapeContent",
|
|
8858
8862
|
props: { element: {} },
|
|
8859
8863
|
setup(t) {
|
|
@@ -8866,7 +8870,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8866
8870
|
id: D(a),
|
|
8867
8871
|
modelValue: t.element.props.shape,
|
|
8868
8872
|
"onUpdate:modelValue": c[0] ||= (e) => t.element.props.shape = e,
|
|
8869
|
-
options: D(
|
|
8873
|
+
options: D(qo)(D(r)),
|
|
8870
8874
|
onCommit: c[1] ||= (e) => D(n).commit()
|
|
8871
8875
|
}, null, 8, [
|
|
8872
8876
|
"id",
|
|
@@ -8874,7 +8878,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8874
8878
|
"options"
|
|
8875
8879
|
])]),
|
|
8876
8880
|
_: 1
|
|
8877
|
-
}, 8, ["id", "label"]), s(
|
|
8881
|
+
}, 8, ["id", "label"]), s(na, {
|
|
8878
8882
|
modelValue: t.element.style.opacity,
|
|
8879
8883
|
"onUpdate:modelValue": c[2] ||= (e) => t.element.style.opacity = e,
|
|
8880
8884
|
label: D(r)("el.opacity"),
|
|
@@ -8890,7 +8894,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8890
8894
|
"format"
|
|
8891
8895
|
])], 64));
|
|
8892
8896
|
}
|
|
8893
|
-
}),
|
|
8897
|
+
}), ws = /* @__PURE__ */ c({
|
|
8894
8898
|
__name: "TextContent",
|
|
8895
8899
|
props: { element: {} },
|
|
8896
8900
|
setup(t) {
|
|
@@ -8967,7 +8971,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8967
8971
|
}, 8, ["id", "label"])) : r("", !0)
|
|
8968
8972
|
], 64));
|
|
8969
8973
|
}
|
|
8970
|
-
}),
|
|
8974
|
+
}), Ts = /* @__PURE__ */ c({
|
|
8971
8975
|
__name: "VideoContent",
|
|
8972
8976
|
props: { element: {} },
|
|
8973
8977
|
setup(e) {
|
|
@@ -8997,7 +9001,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
8997
9001
|
"hint"
|
|
8998
9002
|
]));
|
|
8999
9003
|
}
|
|
9000
|
-
}),
|
|
9004
|
+
}), Es = ["open"], Ds = { class: "lze-panel-body" }, Os = /* @__PURE__ */ c({
|
|
9001
9005
|
__name: "PanelSection",
|
|
9002
9006
|
props: {
|
|
9003
9007
|
title: {},
|
|
@@ -9013,13 +9017,13 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9013
9017
|
}, [a("summary", null, [o(T(e.title), 1), s(D(xe), {
|
|
9014
9018
|
size: 14,
|
|
9015
9019
|
"aria-hidden": "true"
|
|
9016
|
-
})]), a("div",
|
|
9020
|
+
})]), a("div", Ds, [S(t.$slots, "default")])], 8, Es));
|
|
9017
9021
|
}
|
|
9018
|
-
}),
|
|
9022
|
+
}), ks = { class: "lze-stack" }, As = ["aria-label"], js = [
|
|
9019
9023
|
"title",
|
|
9020
9024
|
"aria-label",
|
|
9021
9025
|
"onClick"
|
|
9022
|
-
],
|
|
9026
|
+
], Ms = { class: "lze-grid-2" }, Ns = /* @__PURE__ */ c({
|
|
9023
9027
|
__name: "GradientEditor",
|
|
9024
9028
|
props: {
|
|
9025
9029
|
modelValue: { required: !0 },
|
|
@@ -9045,7 +9049,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9045
9049
|
function y(e) {
|
|
9046
9050
|
l.value = { ...e }, u("commit");
|
|
9047
9051
|
}
|
|
9048
|
-
return (t, o) => (_(), i("div",
|
|
9052
|
+
return (t, o) => (_(), i("div", ks, [
|
|
9049
9053
|
a("div", {
|
|
9050
9054
|
class: "lze-gradient-presets",
|
|
9051
9055
|
role: "group",
|
|
@@ -9058,7 +9062,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9058
9062
|
title: D(f)(e.name),
|
|
9059
9063
|
"aria-label": D(f)(e.name),
|
|
9060
9064
|
onClick: (t) => y(e.gradient)
|
|
9061
|
-
}, null, 12,
|
|
9065
|
+
}, null, 12, js))), 128))], 8, As),
|
|
9062
9066
|
s($, {
|
|
9063
9067
|
"model-value": g.value.from,
|
|
9064
9068
|
label: D(f)("gradient.from"),
|
|
@@ -9071,7 +9075,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9071
9075
|
"onUpdate:modelValue": o[2] ||= (e) => v("to", e),
|
|
9072
9076
|
onCommit: o[3] ||= (e) => u("commit")
|
|
9073
9077
|
}, null, 8, ["model-value", "label"]),
|
|
9074
|
-
a("div",
|
|
9078
|
+
a("div", Ms, [s(J, {
|
|
9075
9079
|
id: D(p),
|
|
9076
9080
|
label: D(f)("gradient.shape")
|
|
9077
9081
|
}, {
|
|
@@ -9093,7 +9097,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9093
9097
|
"options"
|
|
9094
9098
|
])]),
|
|
9095
9099
|
_: 1
|
|
9096
|
-
}, 8, ["id", "label"]), g.value.type === "linear" ? (_(), n(
|
|
9100
|
+
}, 8, ["id", "label"]), g.value.type === "linear" ? (_(), n(na, {
|
|
9097
9101
|
key: 0,
|
|
9098
9102
|
"model-value": g.value.angle,
|
|
9099
9103
|
label: D(f)("gradient.angle"),
|
|
@@ -9111,10 +9115,10 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9111
9115
|
])) : r("", !0)])
|
|
9112
9116
|
]));
|
|
9113
9117
|
}
|
|
9114
|
-
}),
|
|
9118
|
+
}), Ps = { class: "lze-heading" }, Fs = { class: "lze-label" }, Is = { class: "lze-grid-2" }, Ls = {
|
|
9115
9119
|
key: 2,
|
|
9116
9120
|
class: "lze-hint"
|
|
9117
|
-
},
|
|
9121
|
+
}, Rs = /* @__PURE__ */ c({
|
|
9118
9122
|
__name: "FillStyle",
|
|
9119
9123
|
props: { element: {} },
|
|
9120
9124
|
setup(e) {
|
|
@@ -9128,7 +9132,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9128
9132
|
angle: 135
|
|
9129
9133
|
} : null, c.commit();
|
|
9130
9134
|
}
|
|
9131
|
-
return (t, o) => (_(), n(
|
|
9135
|
+
return (t, o) => (_(), n(Os, { title: D(l)("style.fill") }, {
|
|
9132
9136
|
default: N(() => [
|
|
9133
9137
|
s($, {
|
|
9134
9138
|
modelValue: e.element.style.color,
|
|
@@ -9136,7 +9140,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9136
9140
|
label: D(l)("style.color"),
|
|
9137
9141
|
onCommit: o[1] ||= (e) => D(c).commit()
|
|
9138
9142
|
}, null, 8, ["modelValue", "label"]),
|
|
9139
|
-
a("div",
|
|
9143
|
+
a("div", Ps, [a("span", Fs, T(D(l)("style.background")), 1), s(Z, {
|
|
9140
9144
|
"model-value": d.value,
|
|
9141
9145
|
compact: "",
|
|
9142
9146
|
label: D(l)("style.backgroundType"),
|
|
@@ -9159,13 +9163,13 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9159
9163
|
"onUpdate:modelValue": o[2] ||= (t) => e.element.style.background = t,
|
|
9160
9164
|
label: D(l)("style.backgroundColor"),
|
|
9161
9165
|
onCommit: o[3] ||= (e) => D(c).commit()
|
|
9162
|
-
}, null, 8, ["modelValue", "label"])) : (_(), n(
|
|
9166
|
+
}, null, 8, ["modelValue", "label"])) : (_(), n(Ns, {
|
|
9163
9167
|
key: 1,
|
|
9164
9168
|
modelValue: e.element.style.gradient,
|
|
9165
9169
|
"onUpdate:modelValue": o[4] ||= (t) => e.element.style.gradient = t,
|
|
9166
9170
|
onCommit: o[5] ||= (e) => D(c).commit()
|
|
9167
9171
|
}, null, 8, ["modelValue"])),
|
|
9168
|
-
a("div",
|
|
9172
|
+
a("div", Is, [s(na, {
|
|
9169
9173
|
modelValue: e.element.style.background_opacity,
|
|
9170
9174
|
"onUpdate:modelValue": o[6] ||= (t) => e.element.style.background_opacity = t,
|
|
9171
9175
|
label: D(l)("style.transparency"),
|
|
@@ -9175,7 +9179,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9175
9179
|
fallback: 1,
|
|
9176
9180
|
format: u,
|
|
9177
9181
|
onCommit: o[7] ||= (e) => D(c).commit()
|
|
9178
|
-
}, null, 8, ["modelValue", "label"]), s(
|
|
9182
|
+
}, null, 8, ["modelValue", "label"]), s(na, {
|
|
9179
9183
|
modelValue: e.element.style.blur,
|
|
9180
9184
|
"onUpdate:modelValue": o[8] ||= (t) => e.element.style.blur = t,
|
|
9181
9185
|
label: D(l)("style.glass"),
|
|
@@ -9188,15 +9192,15 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9188
9192
|
"label",
|
|
9189
9193
|
"format"
|
|
9190
9194
|
])]),
|
|
9191
|
-
e.element.style.blur ? (_(), i("p",
|
|
9195
|
+
e.element.style.blur ? (_(), i("p", Ls, T(D(l)("style.glassHint")), 1)) : r("", !0)
|
|
9192
9196
|
]),
|
|
9193
9197
|
_: 1
|
|
9194
9198
|
}, 8, ["title"]));
|
|
9195
9199
|
}
|
|
9196
|
-
}),
|
|
9200
|
+
}), zs = { class: "lze-grid-2" }, Bs = {
|
|
9197
9201
|
key: 1,
|
|
9198
9202
|
class: "lze-hint"
|
|
9199
|
-
},
|
|
9203
|
+
}, Vs = { class: "lze-grid-2" }, Hs = /* @__PURE__ */ c({
|
|
9200
9204
|
__name: "FrameStyle",
|
|
9201
9205
|
props: { element: {} },
|
|
9202
9206
|
setup(o) {
|
|
@@ -9241,9 +9245,9 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9241
9245
|
[e]: t
|
|
9242
9246
|
};
|
|
9243
9247
|
}
|
|
9244
|
-
return (t, c) => (_(), i(e, null, [s(
|
|
9248
|
+
return (t, c) => (_(), i(e, null, [s(Os, { title: D(u)("style.frame") }, {
|
|
9245
9249
|
default: N(() => [
|
|
9246
|
-
a("div",
|
|
9250
|
+
a("div", zs, [
|
|
9247
9251
|
s(X, {
|
|
9248
9252
|
modelValue: o.element.style.radius,
|
|
9249
9253
|
"onUpdate:modelValue": c[0] ||= (e) => o.element.style.radius = e,
|
|
@@ -9320,15 +9324,15 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9320
9324
|
])]),
|
|
9321
9325
|
_: 1
|
|
9322
9326
|
}, 8, ["id", "label"]),
|
|
9323
|
-
o.element.style.finish === "glass" ? (_(), i("p",
|
|
9327
|
+
o.element.style.finish === "glass" ? (_(), i("p", Bs, T(D(u)("style.finish.glassHint")), 1)) : r("", !0)
|
|
9324
9328
|
]),
|
|
9325
9329
|
_: 1
|
|
9326
|
-
}, 8, ["title"]), o.element.style.shadow === "custom" ? (_(), n(
|
|
9330
|
+
}, 8, ["title"]), o.element.style.shadow === "custom" ? (_(), n(Os, {
|
|
9327
9331
|
key: 0,
|
|
9328
9332
|
title: D(u)("style.customShadow")
|
|
9329
9333
|
}, {
|
|
9330
9334
|
default: N(() => [
|
|
9331
|
-
a("div",
|
|
9335
|
+
a("div", Vs, [
|
|
9332
9336
|
s(X, {
|
|
9333
9337
|
"model-value": g.value.x,
|
|
9334
9338
|
label: D(u)("position.x"),
|
|
@@ -9372,7 +9376,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9372
9376
|
"onUpdate:modelValue": c[21] ||= (e) => v("color", e),
|
|
9373
9377
|
onCommit: c[22] ||= (e) => D(l).commit()
|
|
9374
9378
|
}, null, 8, ["model-value", "label"]),
|
|
9375
|
-
s(
|
|
9379
|
+
s(na, {
|
|
9376
9380
|
"model-value": g.value.opacity,
|
|
9377
9381
|
label: D(u)("style.shadowOpacity"),
|
|
9378
9382
|
min: 0,
|
|
@@ -9390,10 +9394,10 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9390
9394
|
_: 1
|
|
9391
9395
|
}, 8, ["title"])) : r("", !0)], 64));
|
|
9392
9396
|
}
|
|
9393
|
-
}),
|
|
9397
|
+
}), Us = {
|
|
9394
9398
|
key: 0,
|
|
9395
9399
|
class: "lze-grid-2"
|
|
9396
|
-
},
|
|
9400
|
+
}, Ws = { class: "lze-hint" }, Gs = /* @__PURE__ */ c({
|
|
9397
9401
|
__name: "MotionStyle",
|
|
9398
9402
|
props: { element: {} },
|
|
9399
9403
|
setup(e) {
|
|
@@ -9447,7 +9451,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9447
9451
|
[e]: t
|
|
9448
9452
|
};
|
|
9449
9453
|
}
|
|
9450
|
-
return (t, o) => (_(), n(
|
|
9454
|
+
return (t, o) => (_(), n(Os, {
|
|
9451
9455
|
title: D(l)("style.motion"),
|
|
9452
9456
|
open: !1
|
|
9453
9457
|
}, {
|
|
@@ -9469,7 +9473,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9469
9473
|
])]),
|
|
9470
9474
|
_: 1
|
|
9471
9475
|
}, 8, ["id", "label"]),
|
|
9472
|
-
g.value.type === "none" ? r("", !0) : (_(), i("div",
|
|
9476
|
+
g.value.type === "none" ? r("", !0) : (_(), i("div", Us, [s(na, {
|
|
9473
9477
|
"model-value": g.value.delay,
|
|
9474
9478
|
label: D(l)("style.delay"),
|
|
9475
9479
|
min: 0,
|
|
@@ -9478,7 +9482,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9478
9482
|
format: m,
|
|
9479
9483
|
"onUpdate:modelValue": o[2] ||= (e) => v("delay", e),
|
|
9480
9484
|
onCommit: o[3] ||= (e) => D(c).commit()
|
|
9481
|
-
}, null, 8, ["model-value", "label"]), s(
|
|
9485
|
+
}, null, 8, ["model-value", "label"]), s(na, {
|
|
9482
9486
|
"model-value": g.value.duration,
|
|
9483
9487
|
label: D(l)("style.duration"),
|
|
9484
9488
|
min: .2,
|
|
@@ -9528,12 +9532,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9528
9532
|
])]),
|
|
9529
9533
|
_: 1
|
|
9530
9534
|
}, 8, ["id", "label"]),
|
|
9531
|
-
a("p",
|
|
9535
|
+
a("p", Ws, T(D(l)("style.motionHint")), 1)
|
|
9532
9536
|
]),
|
|
9533
9537
|
_: 1
|
|
9534
9538
|
}, 8, ["title"]));
|
|
9535
9539
|
}
|
|
9536
|
-
}),
|
|
9540
|
+
}), Ks = ["aria-label"], qs = /* @__PURE__ */ c({
|
|
9537
9541
|
__name: "AlignButtons",
|
|
9538
9542
|
setup(t) {
|
|
9539
9543
|
let r = K(), a = {
|
|
@@ -9548,7 +9552,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9548
9552
|
class: "lze-row",
|
|
9549
9553
|
role: "group",
|
|
9550
9554
|
"aria-label": D(r).t("multi.align")
|
|
9551
|
-
}, [(_(!0), i(e, null, x(D(xt), (e) => (_(), n(
|
|
9555
|
+
}, [(_(!0), i(e, null, x(D(xt), (e) => (_(), n(qr, {
|
|
9552
9556
|
key: e,
|
|
9553
9557
|
label: D(r).t(`align.${e}`),
|
|
9554
9558
|
onClick: (t) => D(r).align(e)
|
|
@@ -9558,12 +9562,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9558
9562
|
"aria-hidden": "true"
|
|
9559
9563
|
}))]),
|
|
9560
9564
|
_: 2
|
|
9561
|
-
}, 1032, ["label", "onClick"]))), 128))], 8,
|
|
9565
|
+
}, 1032, ["label", "onClick"]))), 128))], 8, Ks));
|
|
9562
9566
|
}
|
|
9563
|
-
}),
|
|
9567
|
+
}), Js = { class: "lze-grid-2" }, Ys = { class: "lze-hint" }, Xs = {
|
|
9564
9568
|
key: 0,
|
|
9565
9569
|
class: "lze-hint"
|
|
9566
|
-
},
|
|
9570
|
+
}, Zs = /* @__PURE__ */ c({
|
|
9567
9571
|
__name: "PositionSection",
|
|
9568
9572
|
props: { element: {} },
|
|
9569
9573
|
setup(c) {
|
|
@@ -9577,13 +9581,13 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9577
9581
|
function h() {
|
|
9578
9582
|
l.element.layout.mobile = null, u.commit();
|
|
9579
9583
|
}
|
|
9580
|
-
return (t, l) => (_(), n(
|
|
9584
|
+
return (t, l) => (_(), n(Os, {
|
|
9581
9585
|
title: D(d)("position.title", { device: D(d)(f.value === "desktop" ? "position.desktop" : "position.mobile") }),
|
|
9582
9586
|
open: !1
|
|
9583
9587
|
}, {
|
|
9584
9588
|
default: N(() => [
|
|
9585
|
-
s(
|
|
9586
|
-
a("div",
|
|
9589
|
+
s(qs),
|
|
9590
|
+
a("div", Js, [
|
|
9587
9591
|
s(X, {
|
|
9588
9592
|
"model-value": p.value.x,
|
|
9589
9593
|
label: D(d)("position.x"),
|
|
@@ -9619,8 +9623,8 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9619
9623
|
label: D(d)("position.pinned"),
|
|
9620
9624
|
onCommit: l[9] ||= (e) => D(u).commit()
|
|
9621
9625
|
}, null, 8, ["modelValue", "label"]),
|
|
9622
|
-
a("p",
|
|
9623
|
-
f.value === "mobile" ? (_(), i("p",
|
|
9626
|
+
a("p", Ys, T(D(d)("position.pinnedHint")), 1),
|
|
9627
|
+
f.value === "mobile" ? (_(), i("p", Xs, [c.element.layout.mobile ? (_(), i(e, { key: 0 }, [o(T(D(d)("position.own")) + " ", 1), a("button", {
|
|
9624
9628
|
type: "button",
|
|
9625
9629
|
class: "lze-link",
|
|
9626
9630
|
onClick: h
|
|
@@ -9629,7 +9633,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9629
9633
|
_: 1
|
|
9630
9634
|
}, 8, ["title"]));
|
|
9631
9635
|
}
|
|
9632
|
-
}),
|
|
9636
|
+
}), Qs = ["aria-label"], $s = ["aria-pressed", "onClick"], ec = { class: "lze-grid-2" }, tc = { class: "lze-grid-2" }, nc = { class: "lze-grid-2" }, rc = { class: "lze-row" }, ic = ["aria-label"], ac = { class: "lze-hint" }, oc = /* @__PURE__ */ c({
|
|
9633
9637
|
__name: "TextStyle",
|
|
9634
9638
|
props: { element: {} },
|
|
9635
9639
|
setup(t) {
|
|
@@ -9684,7 +9688,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9684
9688
|
function m(e, t) {
|
|
9685
9689
|
r.element.style[e] = t, o.commit();
|
|
9686
9690
|
}
|
|
9687
|
-
return (r, h) => (_(), n(
|
|
9691
|
+
return (r, h) => (_(), n(Os, { title: D(c)("style.text") }, {
|
|
9688
9692
|
default: N(() => [
|
|
9689
9693
|
a("div", {
|
|
9690
9694
|
class: "lze-tabs-inline",
|
|
@@ -9695,8 +9699,8 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9695
9699
|
type: "button",
|
|
9696
9700
|
"aria-pressed": (t.element.style.font ?? "body") === e.value,
|
|
9697
9701
|
onClick: (t) => m("font", e.value)
|
|
9698
|
-
}, T(D(c)(e.label)), 9,
|
|
9699
|
-
a("div",
|
|
9702
|
+
}, T(D(c)(e.label)), 9, $s)), 64))], 8, Qs),
|
|
9703
|
+
a("div", ec, [s(X, {
|
|
9700
9704
|
modelValue: t.element.style.size,
|
|
9701
9705
|
"onUpdate:modelValue": h[0] ||= (e) => t.element.style.size = e,
|
|
9702
9706
|
label: D(c)("style.size"),
|
|
@@ -9717,7 +9721,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9717
9721
|
"label",
|
|
9718
9722
|
"placeholder"
|
|
9719
9723
|
])]),
|
|
9720
|
-
a("div",
|
|
9724
|
+
a("div", tc, [s(X, {
|
|
9721
9725
|
modelValue: t.element.style.size_mobile,
|
|
9722
9726
|
"onUpdate:modelValue": h[4] ||= (e) => t.element.style.size_mobile = e,
|
|
9723
9727
|
label: D(c)("style.sizeMobile"),
|
|
@@ -9739,7 +9743,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9739
9743
|
step: .01,
|
|
9740
9744
|
onCommit: h[7] ||= (e) => D(o).commit()
|
|
9741
9745
|
}, null, 8, ["modelValue", "label"])]),
|
|
9742
|
-
a("div",
|
|
9746
|
+
a("div", nc, [s(Z, {
|
|
9743
9747
|
modelValue: t.element.style.text_case,
|
|
9744
9748
|
"onUpdate:modelValue": h[8] ||= (e) => t.element.style.text_case = e,
|
|
9745
9749
|
options: D(f),
|
|
@@ -9760,11 +9764,11 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9760
9764
|
"options",
|
|
9761
9765
|
"label"
|
|
9762
9766
|
])]),
|
|
9763
|
-
a("div",
|
|
9767
|
+
a("div", rc, [a("div", {
|
|
9764
9768
|
class: "lze-row",
|
|
9765
9769
|
role: "group",
|
|
9766
9770
|
"aria-label": D(c)("style.align")
|
|
9767
|
-
}, [(_(), i(e, null, x(u, (e) => s(
|
|
9771
|
+
}, [(_(), i(e, null, x(u, (e) => s(qr, {
|
|
9768
9772
|
key: e.value,
|
|
9769
9773
|
label: D(c)(e.label),
|
|
9770
9774
|
active: (t.element.style.align ?? "left") === e.value,
|
|
@@ -9779,7 +9783,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9779
9783
|
"label",
|
|
9780
9784
|
"active",
|
|
9781
9785
|
"onClick"
|
|
9782
|
-
])), 64))], 8,
|
|
9786
|
+
])), 64))], 8, ic), s(X, {
|
|
9783
9787
|
modelValue: t.element.style.line_height,
|
|
9784
9788
|
"onUpdate:modelValue": h[12] ||= (e) => t.element.style.line_height = e,
|
|
9785
9789
|
class: "lze-grow",
|
|
@@ -9795,12 +9799,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9795
9799
|
label: D(c)("style.autoHeight"),
|
|
9796
9800
|
onCommit: h[15] ||= (e) => D(o).commit()
|
|
9797
9801
|
}, null, 8, ["modelValue", "label"]),
|
|
9798
|
-
a("p",
|
|
9802
|
+
a("p", ac, T(D(c)("style.autoHeightHint")), 1)
|
|
9799
9803
|
]),
|
|
9800
9804
|
_: 1
|
|
9801
9805
|
}, 8, ["title"]));
|
|
9802
9806
|
}
|
|
9803
|
-
}),
|
|
9807
|
+
}), sc = { class: "lze-row" }, cc = { class: "lze-grid-2" }, lc = { class: "lze-hint" }, uc = /* @__PURE__ */ c({
|
|
9804
9808
|
__name: "TransformStyle",
|
|
9805
9809
|
props: { element: {} },
|
|
9806
9810
|
setup(e) {
|
|
@@ -9826,12 +9830,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9826
9830
|
function u(e, n) {
|
|
9827
9831
|
t.element.style[e] = n, r.commit();
|
|
9828
9832
|
}
|
|
9829
|
-
return (t, d) => (_(), n(
|
|
9833
|
+
return (t, d) => (_(), n(Os, {
|
|
9830
9834
|
title: D(i)("style.transform"),
|
|
9831
9835
|
open: !1
|
|
9832
9836
|
}, {
|
|
9833
9837
|
default: N(() => [
|
|
9834
|
-
a("div",
|
|
9838
|
+
a("div", sc, [
|
|
9835
9839
|
s(X, {
|
|
9836
9840
|
modelValue: e.element.style.rotate,
|
|
9837
9841
|
"onUpdate:modelValue": d[0] ||= (t) => e.element.style.rotate = t,
|
|
@@ -9842,7 +9846,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9842
9846
|
suffix: "°",
|
|
9843
9847
|
onCommit: d[1] ||= (e) => D(r).commit()
|
|
9844
9848
|
}, null, 8, ["modelValue", "label"]),
|
|
9845
|
-
s(
|
|
9849
|
+
s(qr, {
|
|
9846
9850
|
label: D(i)("style.straighten"),
|
|
9847
9851
|
onClick: d[2] ||= (e) => u("rotate", 0)
|
|
9848
9852
|
}, {
|
|
@@ -9852,7 +9856,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9852
9856
|
})]),
|
|
9853
9857
|
_: 1
|
|
9854
9858
|
}, 8, ["label"]),
|
|
9855
|
-
s(
|
|
9859
|
+
s(qr, {
|
|
9856
9860
|
label: D(i)("style.flipX"),
|
|
9857
9861
|
active: e.element.style.flip_x === !0,
|
|
9858
9862
|
onClick: d[3] ||= (t) => u("flip_x", !e.element.style.flip_x)
|
|
@@ -9863,7 +9867,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9863
9867
|
})]),
|
|
9864
9868
|
_: 1
|
|
9865
9869
|
}, 8, ["label", "active"]),
|
|
9866
|
-
s(
|
|
9870
|
+
s(qr, {
|
|
9867
9871
|
label: D(i)("style.flipY"),
|
|
9868
9872
|
active: e.element.style.flip_y === !0,
|
|
9869
9873
|
onClick: d[4] ||= (t) => u("flip_y", !e.element.style.flip_y)
|
|
@@ -9875,7 +9879,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9875
9879
|
_: 1
|
|
9876
9880
|
}, 8, ["label", "active"])
|
|
9877
9881
|
]),
|
|
9878
|
-
a("div",
|
|
9882
|
+
a("div", cc, [s(J, {
|
|
9879
9883
|
id: o.overflow,
|
|
9880
9884
|
label: D(i)("style.overflow")
|
|
9881
9885
|
}, {
|
|
@@ -9908,41 +9912,41 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9908
9912
|
])]),
|
|
9909
9913
|
_: 1
|
|
9910
9914
|
}, 8, ["id", "label"])]),
|
|
9911
|
-
a("p",
|
|
9915
|
+
a("p", lc, T(D(i)("style.transformHint")), 1)
|
|
9912
9916
|
]),
|
|
9913
9917
|
_: 1
|
|
9914
9918
|
}, 8, ["title"]));
|
|
9915
9919
|
}
|
|
9916
|
-
}),
|
|
9920
|
+
}), dc = { class: "lze-stack" }, fc = { class: "lze-heading" }, pc = { class: "lze-panel-title" }, mc = { class: "lze-row lze-nowrap" }, hc = { class: "lze-row" }, gc = {
|
|
9917
9921
|
key: 0,
|
|
9918
9922
|
class: "lze-hint"
|
|
9919
|
-
},
|
|
9923
|
+
}, _c = /* @__PURE__ */ c({
|
|
9920
9924
|
__name: "ElementPanel",
|
|
9921
9925
|
props: { element: {} },
|
|
9922
9926
|
setup(c) {
|
|
9923
9927
|
let l = c, u = K(), d = u.t, f = {
|
|
9924
|
-
heading:
|
|
9925
|
-
text:
|
|
9926
|
-
image:
|
|
9927
|
-
button:
|
|
9928
|
+
heading: ws,
|
|
9929
|
+
text: ws,
|
|
9930
|
+
image: Jo,
|
|
9931
|
+
button: zo,
|
|
9928
9932
|
divider: null,
|
|
9929
|
-
video:
|
|
9930
|
-
shape:
|
|
9931
|
-
icon:
|
|
9932
|
-
navbar:
|
|
9933
|
-
box:
|
|
9934
|
-
gallery:
|
|
9935
|
-
slider:
|
|
9936
|
-
input:
|
|
9937
|
-
textarea:
|
|
9938
|
-
select:
|
|
9939
|
-
checkbox:
|
|
9933
|
+
video: Ts,
|
|
9934
|
+
shape: Cs,
|
|
9935
|
+
icon: Go,
|
|
9936
|
+
navbar: Ss,
|
|
9937
|
+
box: Xo,
|
|
9938
|
+
gallery: rs,
|
|
9939
|
+
slider: is,
|
|
9940
|
+
input: Vo,
|
|
9941
|
+
textarea: Vo,
|
|
9942
|
+
select: Vo,
|
|
9943
|
+
checkbox: Vo
|
|
9940
9944
|
}, p = {
|
|
9941
|
-
fill:
|
|
9942
|
-
text:
|
|
9943
|
-
border:
|
|
9944
|
-
effects:
|
|
9945
|
-
motion:
|
|
9945
|
+
fill: Rs,
|
|
9946
|
+
text: oc,
|
|
9947
|
+
border: Hs,
|
|
9948
|
+
effects: uc,
|
|
9949
|
+
motion: Gs
|
|
9946
9950
|
}, m = t(() => u.kindOf(l.element)), h = t(() => {
|
|
9947
9951
|
let e = m.value;
|
|
9948
9952
|
return e.kind === "core" ? d(e.spec.label) : e.kind === "app" ? u.i18n.localized(e.spec.label) : d("type.unknown");
|
|
@@ -9953,8 +9957,8 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9953
9957
|
panel: p[e]
|
|
9954
9958
|
}));
|
|
9955
9959
|
});
|
|
9956
|
-
return (t, l) => (_(), i("div",
|
|
9957
|
-
a("div",
|
|
9960
|
+
return (t, l) => (_(), i("div", dc, [
|
|
9961
|
+
a("div", fc, [a("h2", pc, T(h.value), 1), a("div", mc, [m.value.kind === "opaque" ? r("", !0) : (_(), n(q, {
|
|
9958
9962
|
key: 0,
|
|
9959
9963
|
onClick: l[0] ||= (e) => D(u).duplicateSelected()
|
|
9960
9964
|
}, {
|
|
@@ -9967,7 +9971,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9967
9971
|
default: N(() => [o(T(D(d)("common.delete")), 1)]),
|
|
9968
9972
|
_: 1
|
|
9969
9973
|
})])]),
|
|
9970
|
-
a("div",
|
|
9974
|
+
a("div", hc, [c.element.type === "box" ? (_(), n(q, {
|
|
9971
9975
|
key: 0,
|
|
9972
9976
|
onClick: l[2] ||= (e) => D(u).ungroupBox()
|
|
9973
9977
|
}, {
|
|
@@ -9980,11 +9984,11 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9980
9984
|
default: N(() => [o(T(D(d)("el.group")), 1)]),
|
|
9981
9985
|
_: 1
|
|
9982
9986
|
}))]),
|
|
9983
|
-
m.value.kind === "opaque" ? (_(), i("p",
|
|
9987
|
+
m.value.kind === "opaque" ? (_(), i("p", gc, T(D(d)("el.unknown")), 1)) : (_(), i(e, { key: 1 }, [
|
|
9984
9988
|
m.value.kind === "core" && f[m.value.element.type] ? (_(), n(C(f[m.value.element.type]), {
|
|
9985
9989
|
key: 0,
|
|
9986
9990
|
element: m.value.element
|
|
9987
|
-
}, null, 8, ["element"])) : m.value.kind === "app" ? (_(), n(
|
|
9991
|
+
}, null, 8, ["element"])) : m.value.kind === "app" ? (_(), n(Ro, {
|
|
9988
9992
|
key: 1,
|
|
9989
9993
|
element: m.value.element,
|
|
9990
9994
|
spec: m.value.spec
|
|
@@ -9993,14 +9997,14 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
9993
9997
|
key: e.group,
|
|
9994
9998
|
element: c.element
|
|
9995
9999
|
}, null, 8, ["element"]))), 128)),
|
|
9996
|
-
s(
|
|
10000
|
+
s(Zs, { element: c.element }, null, 8, ["element"])
|
|
9997
10001
|
], 64))
|
|
9998
10002
|
]));
|
|
9999
10003
|
}
|
|
10000
|
-
}),
|
|
10004
|
+
}), vc = { class: "lze-stack" }, yc = { class: "lze-panel-title" }, bc = { class: "lze-hint" }, xc = { class: "lze-field" }, Sc = { class: "lze-label" }, Cc = ["aria-label"], wc = { class: "lze-field" }, Tc = {
|
|
10001
10005
|
key: 0,
|
|
10002
10006
|
class: "lze-hint"
|
|
10003
|
-
},
|
|
10007
|
+
}, Ec = { class: "lze-field" }, Dc = /* @__PURE__ */ c({
|
|
10004
10008
|
__name: "ModalPanel",
|
|
10005
10009
|
props: { modal: {} },
|
|
10006
10010
|
setup(t) {
|
|
@@ -10011,8 +10015,8 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10011
10015
|
function p(e) {
|
|
10012
10016
|
typeof e == "number" && (c.modal.width = e, c.modal.size = "custom");
|
|
10013
10017
|
}
|
|
10014
|
-
return (c, m) => (_(), i("div",
|
|
10015
|
-
a("h2",
|
|
10018
|
+
return (c, m) => (_(), i("div", vc, [
|
|
10019
|
+
a("h2", yc, T(D(u)("modal.heading")), 1),
|
|
10016
10020
|
s(J, {
|
|
10017
10021
|
id: D(d),
|
|
10018
10022
|
label: D(u)("modal.title")
|
|
@@ -10031,11 +10035,11 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10031
10035
|
label: D(u)("modal.showTitle"),
|
|
10032
10036
|
onCommit: m[3] ||= (e) => D(l).commit()
|
|
10033
10037
|
}, null, 8, ["modelValue", "label"]),
|
|
10034
|
-
a("p",
|
|
10038
|
+
a("p", bc, T(D(u)("modal.showTitleHint")), 1)
|
|
10035
10039
|
]),
|
|
10036
10040
|
_: 1
|
|
10037
10041
|
}, 8, ["id", "label"]),
|
|
10038
|
-
a("div",
|
|
10042
|
+
a("div", xc, [a("span", Sc, T(D(u)("modal.size")), 1), a("div", {
|
|
10039
10043
|
class: "lze-row",
|
|
10040
10044
|
role: "group",
|
|
10041
10045
|
"aria-label": D(u)("modal.size")
|
|
@@ -10051,8 +10055,8 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10051
10055
|
"variant",
|
|
10052
10056
|
"aria-pressed",
|
|
10053
10057
|
"onClick"
|
|
10054
|
-
]))), 128))], 8,
|
|
10055
|
-
a("div",
|
|
10058
|
+
]))), 128))], 8, Cc)]),
|
|
10059
|
+
a("div", wc, [s(X, {
|
|
10056
10060
|
"model-value": t.modal.width,
|
|
10057
10061
|
label: D(u)("modal.width"),
|
|
10058
10062
|
min: 280,
|
|
@@ -10065,12 +10069,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10065
10069
|
"model-value",
|
|
10066
10070
|
"label",
|
|
10067
10071
|
"disabled"
|
|
10068
|
-
]), t.modal.size === "full" ? (_(), i("p",
|
|
10072
|
+
]), t.modal.size === "full" ? (_(), i("p", Tc, T(D(u)("modal.fullHint")), 1)) : r("", !0)]),
|
|
10069
10073
|
s(q, { onClick: m[5] ||= (e) => D(l).fitCanvas(t.modal) }, {
|
|
10070
10074
|
default: N(() => [o(T(D(u)("section.fitHeight")), 1)]),
|
|
10071
10075
|
_: 1
|
|
10072
10076
|
}),
|
|
10073
|
-
a("div",
|
|
10077
|
+
a("div", Ec, [s(X, {
|
|
10074
10078
|
"model-value": t.modal.height.desktop,
|
|
10075
10079
|
label: D(u)("section.heightDesktop"),
|
|
10076
10080
|
min: 80,
|
|
@@ -10097,15 +10101,15 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10097
10101
|
})
|
|
10098
10102
|
]));
|
|
10099
10103
|
}
|
|
10100
|
-
}),
|
|
10104
|
+
}), Oc = { class: "lze-stack" }, kc = { class: "lze-panel-title" }, Ac = { class: "lze-row" }, jc = { class: "lze-hint" }, Mc = { class: "lze-field" }, Nc = { class: "lze-label" }, Pc = { class: "lze-field" }, Fc = { class: "lze-label" }, Ic = { class: "lze-row" }, Lc = { class: "lze-hint" }, Rc = { class: "lze-hint" }, zc = { class: "lze-hint" }, Bc = /* @__PURE__ */ c({
|
|
10101
10105
|
__name: "MultiPanel",
|
|
10102
10106
|
setup(c) {
|
|
10103
10107
|
let l = K(), u = l.t, d = t(() => l.selectedElements.value.length), f = {
|
|
10104
|
-
fill:
|
|
10105
|
-
text:
|
|
10106
|
-
border:
|
|
10107
|
-
effects:
|
|
10108
|
-
motion:
|
|
10108
|
+
fill: Rs,
|
|
10109
|
+
text: oc,
|
|
10110
|
+
border: Hs,
|
|
10111
|
+
effects: uc,
|
|
10112
|
+
motion: Gs
|
|
10109
10113
|
}, p = t(() => {
|
|
10110
10114
|
let e = l.selectedElements.value.map((e) => {
|
|
10111
10115
|
let t = l.kindOf(e);
|
|
@@ -10116,17 +10120,17 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10116
10120
|
panel: f[e]
|
|
10117
10121
|
}));
|
|
10118
10122
|
}), m = t(() => l.sharedTarget());
|
|
10119
|
-
return (t, c) => (_(), i("div",
|
|
10120
|
-
a("h2",
|
|
10121
|
-
a("div",
|
|
10123
|
+
return (t, c) => (_(), i("div", Oc, [
|
|
10124
|
+
a("h2", kc, T(D(u)("multi.count", { n: d.value })), 1),
|
|
10125
|
+
a("div", Ac, [s(q, { onClick: c[0] ||= (e) => D(l).groupIntoBox() }, {
|
|
10122
10126
|
default: N(() => [o(T(D(u)("el.group")), 1)]),
|
|
10123
10127
|
_: 1
|
|
10124
10128
|
})]),
|
|
10125
|
-
a("p",
|
|
10126
|
-
a("div",
|
|
10127
|
-
a("div",
|
|
10128
|
-
a("span",
|
|
10129
|
-
a("div",
|
|
10129
|
+
a("p", jc, T(D(u)("el.groupHint")), 1),
|
|
10130
|
+
a("div", Mc, [a("span", Nc, T(D(u)("multi.align")), 1), s(qs)]),
|
|
10131
|
+
a("div", Pc, [
|
|
10132
|
+
a("span", Fc, T(D(u)("multi.distribute")), 1),
|
|
10133
|
+
a("div", Ic, [s(qr, {
|
|
10130
10134
|
label: D(u)("multi.distributeX"),
|
|
10131
10135
|
disabled: d.value < 3,
|
|
10132
10136
|
onClick: c[1] ||= (e) => D(l).distributeSelected("x")
|
|
@@ -10136,7 +10140,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10136
10140
|
"aria-hidden": "true"
|
|
10137
10141
|
})]),
|
|
10138
10142
|
_: 1
|
|
10139
|
-
}, 8, ["label", "disabled"]), s(
|
|
10143
|
+
}, 8, ["label", "disabled"]), s(qr, {
|
|
10140
10144
|
label: D(u)("multi.distributeY"),
|
|
10141
10145
|
disabled: d.value < 3,
|
|
10142
10146
|
onClick: c[2] ||= (e) => D(l).distributeSelected("y")
|
|
@@ -10147,20 +10151,20 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10147
10151
|
})]),
|
|
10148
10152
|
_: 1
|
|
10149
10153
|
}, 8, ["label", "disabled"])]),
|
|
10150
|
-
a("p",
|
|
10154
|
+
a("p", Lc, T(D(u)("multi.distributeHint")), 1)
|
|
10151
10155
|
]),
|
|
10152
10156
|
m.value ? (_(!0), i(e, { key: 0 }, x(p.value, (e) => (_(), n(C(e.panel), {
|
|
10153
10157
|
key: e.group,
|
|
10154
10158
|
element: m.value
|
|
10155
10159
|
}, null, 8, ["element"]))), 128)) : r("", !0),
|
|
10156
|
-
a("p",
|
|
10157
|
-
a("p",
|
|
10160
|
+
a("p", Rc, T(D(u)("multi.menuHint")), 1),
|
|
10161
|
+
a("p", zc, T(D(u)("multi.hint")), 1)
|
|
10158
10162
|
]));
|
|
10159
10163
|
}
|
|
10160
|
-
}),
|
|
10164
|
+
}), Vc = { class: "lze-stack" }, Hc = { class: "lze-heading" }, Uc = { class: "lze-panel-title" }, Wc = { class: "lze-row" }, Gc = { class: "lze-field" }, Kc = {
|
|
10161
10165
|
key: 0,
|
|
10162
10166
|
class: "lze-grid-2"
|
|
10163
|
-
},
|
|
10167
|
+
}, qc = { class: "lze-hint" }, Jc = /* @__PURE__ */ c({
|
|
10164
10168
|
__name: "SectionPanel",
|
|
10165
10169
|
props: { section: {} },
|
|
10166
10170
|
setup(c) {
|
|
@@ -10225,8 +10229,8 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10225
10229
|
function w(e) {
|
|
10226
10230
|
l.section.background.image = e ?? null, l.section.background.type !== "video" && (l.section.background.type = e ? "image" : "color");
|
|
10227
10231
|
}
|
|
10228
|
-
return (t, l) => (_(), i("div",
|
|
10229
|
-
a("div",
|
|
10232
|
+
return (t, l) => (_(), i("div", Vc, [
|
|
10233
|
+
a("div", Hc, [a("h2", Uc, T(D(d)("section.heading")), 1), D(u).state.draft.sections.length > 1 ? (_(), n(qr, {
|
|
10230
10234
|
key: 0,
|
|
10231
10235
|
label: D(d)("section.delete"),
|
|
10232
10236
|
tone: "danger",
|
|
@@ -10287,14 +10291,14 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10287
10291
|
"hint",
|
|
10288
10292
|
"error"
|
|
10289
10293
|
]),
|
|
10290
|
-
a("div",
|
|
10294
|
+
a("div", Wc, [s(q, { onClick: l[5] ||= (e) => D(u).fitCanvas(c.section) }, {
|
|
10291
10295
|
default: N(() => [o(T(D(d)("section.fitHeight")), 1)]),
|
|
10292
10296
|
_: 1
|
|
10293
10297
|
}), s(q, { onClick: l[6] ||= (e) => D(u).generateMobile(c.section) }, {
|
|
10294
10298
|
default: N(() => [o(T(D(d)("section.generateMobile")), 1)]),
|
|
10295
10299
|
_: 1
|
|
10296
10300
|
})]),
|
|
10297
|
-
a("div",
|
|
10301
|
+
a("div", Gc, [s(X, {
|
|
10298
10302
|
"model-value": c.section.height.desktop,
|
|
10299
10303
|
label: D(d)("section.heightDesktop"),
|
|
10300
10304
|
min: 80,
|
|
@@ -10331,7 +10335,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10331
10335
|
"label",
|
|
10332
10336
|
"hint"
|
|
10333
10337
|
]),
|
|
10334
|
-
g.value ? (_(), i("div",
|
|
10338
|
+
g.value ? (_(), i("div", Kc, [s(X, {
|
|
10335
10339
|
"model-value": c.section.flow_gap ?? 24,
|
|
10336
10340
|
label: D(d)("section.flowGap"),
|
|
10337
10341
|
min: 0,
|
|
@@ -10356,7 +10360,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10356
10360
|
label: D(d)("section.wide"),
|
|
10357
10361
|
onCommit: l[18] ||= (e) => D(u).commit()
|
|
10358
10362
|
}, null, 8, ["modelValue", "label"]),
|
|
10359
|
-
a("p",
|
|
10363
|
+
a("p", qc, T(D(d)("section.wideHint")), 1),
|
|
10360
10364
|
s(J, {
|
|
10361
10365
|
id: f.background,
|
|
10362
10366
|
label: D(d)("section.background")
|
|
@@ -10379,7 +10383,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10379
10383
|
"onUpdate:modelValue": l[19] ||= (e) => c.section.background.color = e,
|
|
10380
10384
|
label: D(d)("section.color"),
|
|
10381
10385
|
onCommit: l[20] ||= (e) => D(u).commit()
|
|
10382
|
-
}, null, 8, ["modelValue", "label"])) : c.section.background.type === "gradient" ? (_(), n(
|
|
10386
|
+
}, null, 8, ["modelValue", "label"])) : c.section.background.type === "gradient" ? (_(), n(Ns, {
|
|
10383
10387
|
key: 2,
|
|
10384
10388
|
modelValue: c.section.background.gradient,
|
|
10385
10389
|
"onUpdate:modelValue": l[21] ||= (e) => c.section.background.gradient = e,
|
|
@@ -10405,7 +10409,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10405
10409
|
"label",
|
|
10406
10410
|
"hint"
|
|
10407
10411
|
])) : r("", !0),
|
|
10408
|
-
s(
|
|
10412
|
+
s(gi, {
|
|
10409
10413
|
"model-value": c.section.background.image,
|
|
10410
10414
|
label: c.section.background.type === "video" ? D(d)("section.poster") : D(d)("section.image"),
|
|
10411
10415
|
choose: D(d)("section.chooseImage"),
|
|
@@ -10422,7 +10426,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10422
10426
|
label: D(d)("section.parallax"),
|
|
10423
10427
|
onCommit: l[27] ||= (e) => D(u).commit()
|
|
10424
10428
|
}, null, 8, ["modelValue", "label"]),
|
|
10425
|
-
s(
|
|
10429
|
+
s(na, {
|
|
10426
10430
|
modelValue: c.section.background.overlay,
|
|
10427
10431
|
"onUpdate:modelValue": l[28] ||= (e) => c.section.background.overlay = e,
|
|
10428
10432
|
label: D(d)("section.overlay"),
|
|
@@ -10439,10 +10443,10 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10439
10443
|
], 64))
|
|
10440
10444
|
]));
|
|
10441
10445
|
}
|
|
10442
|
-
}),
|
|
10446
|
+
}), Yc = {
|
|
10443
10447
|
key: 4,
|
|
10444
10448
|
class: "lze-hint"
|
|
10445
|
-
},
|
|
10449
|
+
}, Xc = /* @__PURE__ */ c({
|
|
10446
10450
|
__name: "DesignPanel",
|
|
10447
10451
|
setup(e) {
|
|
10448
10452
|
let r = K(), a = t(() => {
|
|
@@ -10463,24 +10467,24 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10463
10467
|
section: t
|
|
10464
10468
|
} : { kind: "none" };
|
|
10465
10469
|
});
|
|
10466
|
-
return (e, t) => a.value.kind === "multi" ? (_(), n(
|
|
10470
|
+
return (e, t) => a.value.kind === "multi" ? (_(), n(Bc, { key: 0 })) : a.value.kind === "element" ? (_(), n(_c, {
|
|
10467
10471
|
key: a.value.element.id,
|
|
10468
10472
|
element: a.value.element
|
|
10469
|
-
}, null, 8, ["element"])) : a.value.kind === "modal" ? (_(), n(
|
|
10473
|
+
}, null, 8, ["element"])) : a.value.kind === "modal" ? (_(), n(Dc, {
|
|
10470
10474
|
key: a.value.modal.id,
|
|
10471
10475
|
modal: a.value.modal
|
|
10472
|
-
}, null, 8, ["modal"])) : a.value.kind === "section" ? (_(), n(
|
|
10476
|
+
}, null, 8, ["modal"])) : a.value.kind === "section" ? (_(), n(Jc, {
|
|
10473
10477
|
key: a.value.section.id,
|
|
10474
10478
|
section: a.value.section
|
|
10475
|
-
}, null, 8, ["section"])) : (_(), i("p",
|
|
10479
|
+
}, null, 8, ["section"])) : (_(), i("p", Yc, T(D(r).t("panel.nothing")), 1));
|
|
10476
10480
|
}
|
|
10477
|
-
}),
|
|
10481
|
+
}), Zc = {
|
|
10478
10482
|
key: 0,
|
|
10479
10483
|
class: "lze-stack"
|
|
10480
|
-
},
|
|
10484
|
+
}, Qc = { class: "lze-slug-static" }, $c = { class: "lze-slug" }, el = { class: "lze-row" }, tl = {
|
|
10481
10485
|
key: 2,
|
|
10482
10486
|
class: "lze-field lze-divided"
|
|
10483
|
-
},
|
|
10487
|
+
}, nl = { class: "lze-label" }, rl = ["onClick"], il = { class: "lze-hint" }, al = { class: "lze-field lze-divided" }, ol = { class: "lze-label" }, sl = { class: "lze-shortcuts lze-hint" }, cl = /* @__PURE__ */ c({
|
|
10484
10488
|
__name: "PagePanel",
|
|
10485
10489
|
setup(c) {
|
|
10486
10490
|
let l = K(), u = l.t, d = {
|
|
@@ -10499,7 +10503,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10499
10503
|
function y() {
|
|
10500
10504
|
f.value && window.confirm(u("page.deleteConfirm", { title: f.value.title })) && l.deletePage();
|
|
10501
10505
|
}
|
|
10502
|
-
return (t, c) => f.value ? (_(), i("div",
|
|
10506
|
+
return (t, c) => f.value ? (_(), i("div", Zc, [
|
|
10503
10507
|
s(J, {
|
|
10504
10508
|
id: d.title,
|
|
10505
10509
|
label: D(u)("page.title")
|
|
@@ -10517,7 +10521,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10517
10521
|
label: D(u)("page.address"),
|
|
10518
10522
|
hint: D(u)("page.homeHint")
|
|
10519
10523
|
}, {
|
|
10520
|
-
default: N(() => [a("p",
|
|
10524
|
+
default: N(() => [a("p", Qc, [c[4] ||= a("span", {
|
|
10521
10525
|
class: "lze-slug-root",
|
|
10522
10526
|
"aria-hidden": "true"
|
|
10523
10527
|
}, "/", -1), o(T(D(u)("page.home")), 1)])]),
|
|
@@ -10527,7 +10531,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10527
10531
|
label: D(u)("page.address"),
|
|
10528
10532
|
error: m.value.map((e) => e.message).join(" ") || null
|
|
10529
10533
|
}, {
|
|
10530
|
-
default: N(() => [a("div",
|
|
10534
|
+
default: N(() => [a("div", $c, [c[5] ||= a("span", { "aria-hidden": "true" }, "/", -1), s(Y, {
|
|
10531
10535
|
id: d.slug,
|
|
10532
10536
|
modelValue: p.value,
|
|
10533
10537
|
"onUpdate:modelValue": c[1] ||= (e) => p.value = e,
|
|
@@ -10543,7 +10547,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10543
10547
|
"id",
|
|
10544
10548
|
"label",
|
|
10545
10549
|
"error"
|
|
10546
|
-
]), a("div",
|
|
10550
|
+
]), a("div", el, [s(q, {
|
|
10547
10551
|
disabled: h.value || p.value.trim() === f.value.slug,
|
|
10548
10552
|
onClick: v
|
|
10549
10553
|
}, {
|
|
@@ -10556,12 +10560,12 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10556
10560
|
default: N(() => [o(T(D(u)("page.delete")), 1)]),
|
|
10557
10561
|
_: 1
|
|
10558
10562
|
})])], 64)),
|
|
10559
|
-
g.value ? (_(), i("div",
|
|
10563
|
+
g.value ? (_(), i("div", tl, [a("span", nl, T(D(u)("page.templates")), 1), (_(!0), i(e, null, x(D(On), (e) => (_(), i("button", {
|
|
10560
10564
|
key: e.key,
|
|
10561
10565
|
type: "button",
|
|
10562
10566
|
class: "lze-choice",
|
|
10563
10567
|
onClick: (t) => D(l).applyPageTemplate(e.key)
|
|
10564
|
-
}, [a("strong", null, T(D(u)(e.name)), 1), a("span",
|
|
10568
|
+
}, [a("strong", null, T(D(u)(e.name)), 1), a("span", il, T(D(u)(e.note)), 1)], 8, rl))), 128))])) : r("", !0),
|
|
10565
10569
|
s(J, {
|
|
10566
10570
|
id: d.seoTitle,
|
|
10567
10571
|
label: D(u)("page.seoTitle"),
|
|
@@ -10592,7 +10596,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10592
10596
|
}, null, 8, ["id", "modelValue"])]),
|
|
10593
10597
|
_: 1
|
|
10594
10598
|
}, 8, ["id", "label"]),
|
|
10595
|
-
a("div",
|
|
10599
|
+
a("div", al, [a("span", ol, T(D(u)("page.shortcuts")), 1), a("ul", sl, [
|
|
10596
10600
|
a("li", null, T(D(u)("page.shortcutUndo")), 1),
|
|
10597
10601
|
a("li", null, T(D(u)("page.shortcutSave")), 1),
|
|
10598
10602
|
a("li", null, T(D(u)("page.shortcutCopy")), 1),
|
|
@@ -10600,42 +10604,42 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10600
10604
|
])])
|
|
10601
10605
|
])) : r("", !0);
|
|
10602
10606
|
}
|
|
10603
|
-
}),
|
|
10607
|
+
}), ll = { class: "lze-sidebar lze-right" }, ul = {
|
|
10604
10608
|
class: "lze-tabs",
|
|
10605
10609
|
role: "tablist"
|
|
10606
|
-
},
|
|
10610
|
+
}, dl = ["aria-selected"], fl = ["aria-selected"], pl = {
|
|
10607
10611
|
class: "lze-scroll lze-pad",
|
|
10608
10612
|
role: "tabpanel"
|
|
10609
|
-
},
|
|
10613
|
+
}, ml = /* @__PURE__ */ c({
|
|
10610
10614
|
__name: "RightPanel",
|
|
10611
10615
|
setup(e) {
|
|
10612
10616
|
let t = K(), r = b("design");
|
|
10613
|
-
return (e, o) => (_(), i("aside",
|
|
10617
|
+
return (e, o) => (_(), i("aside", ll, [a("div", ul, [a("button", {
|
|
10614
10618
|
type: "button",
|
|
10615
10619
|
role: "tab",
|
|
10616
10620
|
"aria-selected": r.value === "design",
|
|
10617
10621
|
onClick: o[0] ||= (e) => r.value = "design"
|
|
10618
|
-
}, T(D(t).t("panel.design")), 9,
|
|
10622
|
+
}, T(D(t).t("panel.design")), 9, dl), a("button", {
|
|
10619
10623
|
type: "button",
|
|
10620
10624
|
role: "tab",
|
|
10621
10625
|
"aria-selected": r.value === "page",
|
|
10622
10626
|
onClick: o[1] ||= (e) => r.value = "page"
|
|
10623
|
-
}, T(D(t).t("panel.page")), 9,
|
|
10627
|
+
}, T(D(t).t("panel.page")), 9, fl)]), a("div", pl, [r.value === "design" ? (_(), n(Xc, { key: 0 })) : (_(), n(cl, { key: 1 }))])]));
|
|
10624
10628
|
}
|
|
10625
|
-
}),
|
|
10629
|
+
}), hl = { class: "lze-toolbar" }, gl = { class: "lze-toolbar-group" }, _l = { class: "lze-site-name" }, vl = ["aria-label", "value"], yl = ["value"], bl = ["data-published"], xl = ["data-tone"], Sl = { class: "lze-toolbar-group" }, Cl = ["aria-label"], wl = [
|
|
10626
10630
|
"title",
|
|
10627
10631
|
"aria-label",
|
|
10628
10632
|
"aria-pressed",
|
|
10629
10633
|
"onClick"
|
|
10630
|
-
],
|
|
10634
|
+
], Tl = [
|
|
10631
10635
|
"title",
|
|
10632
10636
|
"aria-label",
|
|
10633
10637
|
"disabled"
|
|
10634
|
-
],
|
|
10638
|
+
], El = [
|
|
10635
10639
|
"title",
|
|
10636
10640
|
"aria-label",
|
|
10637
10641
|
"disabled"
|
|
10638
|
-
],
|
|
10642
|
+
], Dl = ["href"], Ol = /* @__PURE__ */ c({
|
|
10639
10643
|
__name: "Toolbar",
|
|
10640
10644
|
setup(c) {
|
|
10641
10645
|
let l = K(), u = l.t, d = t(() => l.state.page), f = new Intl.DateTimeFormat(l.i18n.locale, {
|
|
@@ -10670,7 +10674,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10670
10674
|
retry: !0
|
|
10671
10675
|
};
|
|
10672
10676
|
case "invalid": return {
|
|
10673
|
-
text: u("save.invalid", { issue:
|
|
10677
|
+
text: u("save.invalid", { issue: Rn(e.issues[0]) || e.message }),
|
|
10674
10678
|
tone: "danger",
|
|
10675
10679
|
retry: !1
|
|
10676
10680
|
};
|
|
@@ -10688,8 +10692,9 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10688
10692
|
let t = e.target;
|
|
10689
10693
|
await l.openPage(Number(t.value)), t.value = String(l.state.page?.id ?? "");
|
|
10690
10694
|
}
|
|
10691
|
-
return (t, c) => (_(), i("header",
|
|
10692
|
-
|
|
10695
|
+
return (t, c) => (_(), i("header", hl, [a("div", gl, [
|
|
10696
|
+
S(t.$slots, "start"),
|
|
10697
|
+
a("strong", _l, T(D(l).state.workspace.site.name), 1),
|
|
10693
10698
|
d.value ? (_(), i("select", {
|
|
10694
10699
|
key: 0,
|
|
10695
10700
|
class: "lze-select lze-page-select",
|
|
@@ -10699,7 +10704,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10699
10704
|
}, [(_(!0), i(e, null, x(D(l).state.workspace.pages, (e) => (_(), i("option", {
|
|
10700
10705
|
key: e.id,
|
|
10701
10706
|
value: e.id
|
|
10702
|
-
}, T(e.title) + T(e.slug ? ` /${e.slug}` : ""), 9,
|
|
10707
|
+
}, T(e.title) + T(e.slug ? ` /${e.slug}` : ""), 9, yl))), 128))], 40, vl)) : r("", !0),
|
|
10703
10708
|
s(q, {
|
|
10704
10709
|
variant: "ghost",
|
|
10705
10710
|
title: D(u)("toolbar.newPageHint"),
|
|
@@ -10715,13 +10720,13 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10715
10720
|
key: 1,
|
|
10716
10721
|
class: "lze-badge-status",
|
|
10717
10722
|
"data-published": d.value.publishedAt !== null
|
|
10718
|
-
}, T(d.value.publishedAt ? D(u)("status.published") : D(u)("status.unpublished")), 9,
|
|
10723
|
+
}, T(d.value.publishedAt ? D(u)("status.published") : D(u)("status.unpublished")), 9, bl)) : r("", !0),
|
|
10719
10724
|
a("span", {
|
|
10720
10725
|
class: "lze-save-status",
|
|
10721
10726
|
"data-tone": p.value.tone,
|
|
10722
10727
|
"data-testid": "save-status",
|
|
10723
10728
|
"aria-live": "polite"
|
|
10724
|
-
}, T(p.value.text), 9,
|
|
10729
|
+
}, T(p.value.text), 9, xl),
|
|
10725
10730
|
p.value.retry ? (_(), n(q, {
|
|
10726
10731
|
key: 2,
|
|
10727
10732
|
variant: "ghost",
|
|
@@ -10738,7 +10743,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10738
10743
|
default: N(() => [o(T(D(u)("conflict.reload")), 1)]),
|
|
10739
10744
|
_: 1
|
|
10740
10745
|
})) : r("", !0)
|
|
10741
|
-
]), a("div",
|
|
10746
|
+
]), a("div", Sl, [
|
|
10742
10747
|
a("div", {
|
|
10743
10748
|
class: "lze-segmented",
|
|
10744
10749
|
role: "group",
|
|
@@ -10758,7 +10763,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10758
10763
|
key: 1,
|
|
10759
10764
|
size: 16,
|
|
10760
10765
|
"aria-hidden": "true"
|
|
10761
|
-
}))], 8,
|
|
10766
|
+
}))], 8, wl)), 64))], 8, Cl),
|
|
10762
10767
|
a("button", {
|
|
10763
10768
|
type: "button",
|
|
10764
10769
|
class: "lze-icon-btn",
|
|
@@ -10769,7 +10774,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10769
10774
|
}, [s(D(rt), {
|
|
10770
10775
|
size: 16,
|
|
10771
10776
|
"aria-hidden": "true"
|
|
10772
|
-
})], 8,
|
|
10777
|
+
})], 8, Tl),
|
|
10773
10778
|
a("button", {
|
|
10774
10779
|
type: "button",
|
|
10775
10780
|
class: "lze-icon-btn",
|
|
@@ -10780,7 +10785,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10780
10785
|
}, [s(D(qe), {
|
|
10781
10786
|
size: 16,
|
|
10782
10787
|
"aria-hidden": "true"
|
|
10783
|
-
})], 8,
|
|
10788
|
+
})], 8, El),
|
|
10784
10789
|
s(q, {
|
|
10785
10790
|
variant: "ghost",
|
|
10786
10791
|
title: D(l).state.previewing ? D(u)("toolbar.editHint") : D(u)("toolbar.previewHint"),
|
|
@@ -10838,7 +10843,7 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10838
10843
|
href: m.value,
|
|
10839
10844
|
target: "_blank",
|
|
10840
10845
|
rel: "noopener noreferrer"
|
|
10841
|
-
}, T(D(u)("toolbar.viewSite")), 9,
|
|
10846
|
+
}, T(D(u)("toolbar.viewSite")), 9, Dl)) : r("", !0),
|
|
10842
10847
|
s(q, {
|
|
10843
10848
|
variant: "primary",
|
|
10844
10849
|
disabled: D(l).state.publishing || !d.value,
|
|
@@ -10849,25 +10854,25 @@ var Oa = Da(wa), ka = [...Oa.keys()], Aa = [
|
|
|
10849
10854
|
}, 8, ["disabled"])
|
|
10850
10855
|
])]));
|
|
10851
10856
|
}
|
|
10852
|
-
}),
|
|
10857
|
+
}), kl = [
|
|
10853
10858
|
".lze-root{--lze-bg:#f3f4f6;--lze-panel:#fff;--lze-fg:#0f172a;--lze-muted:#64748b;--lze-border:#e2e8f0;--lze-hover:#f1f5f9;--lze-active:#e8eefc;--lze-accent:#2563eb;--lze-accent-fg:#fff;--lze-danger:#dc2626;--lze-success:#15803d;--lze-warning:#b45309;--lze-radius:8px;--lze-font:ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif;--lze-select:#2563eb;--lze-guide:#ec4899;all:initial;box-sizing:border-box;background:var(--lze-bg);height:100%;min-height:480px;color:var(--lze-fg);font:13px/1.45 var(--lze-font);-webkit-font-smoothing:antialiased;grid-template-rows:auto minmax(0,1fr);display:grid}.lze-root :where(:not(svg,svg *)){all:revert;box-sizing:border-box}.lze-root :where(){box-sizing:border-box}.lze-root :where(h1,h2,h3,p,figure){margin:0}.lze-root :where(button,input,select,textarea){font:inherit;color:inherit}.lze-root :focus-visible{outline:2px solid var(--lze-accent);outline-offset:1px}.lze-muted,.lze-hint{color:var(--lze-muted)}.lze-hint{font-size:12px}.lze-error{color:var(--lze-danger);font-size:12px}.lze-btn{border-radius:var(--lze-radius);border:1px solid var(--lze-border);background:var(--lze-panel);height:32px;color:var(--lze-fg);white-space:nowrap;cursor:pointer;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-weight:500;text-decoration:none;display:inline-flex}.lze-btn[data-size=md]{height:36px;padding:0 14px}.lze-btn:hover:not(:disabled){background:var(--lze-hover)}.lze-btn:disabled{opacity:.5;cursor:default}.lze-btn[data-variant=primary]{background:var(--lze-accent);border-color:var(--lze-accent);color:var(--lze-accent-fg)}.lze-btn[data-variant=primary]:hover:not(:disabled){background:color-mix(in srgb, var(--lze-accent) 88%, black)}.lze-btn[data-variant=ghost]{background:0 0;border-color:#0000}.lze-btn[data-variant=danger]{color:var(--lze-danger)}.lze-icon-btn{border-radius:var(--lze-radius);width:32px;height:32px;color:var(--lze-muted);cursor:pointer;background:0 0;border:1px solid #0000;flex:none;place-items:center;padding:0;display:inline-grid}.lze-icon-btn:hover:not(:disabled){background:var(--lze-hover);color:var(--lze-fg)}.lze-icon-btn[aria-pressed=true]{border-color:var(--lze-fg);background:var(--lze-active);color:var(--lze-fg)}.lze-icon-btn[data-tone=danger]{color:var(--lze-danger)}.lze-icon-btn:disabled{opacity:.4;cursor:default}.lze-field{gap:7px;display:grid}.lze-label{color:var(--lze-fg);font-size:12px;font-weight:600}.lze-input,.lze-select{border:1px solid var(--lze-border);background:var(--lze-panel);width:100%;min-height:32px;color:var(--lze-fg);border-radius:6px;padding:6px 8px}.lze-input:focus,.lze-select:focus{border-color:var(--lze-accent);box-shadow:0 0 0 2px color-mix(in srgb, var(--lze-accent) 20%, transparent);outline:none}textarea.lze-input{resize:vertical;line-height:1.4}.lze-select[data-compact=true]{width:auto;min-height:26px;padding:2px 6px;font-size:12px}.lze-number{border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:6px;align-items:center;gap:6px;height:32px;padding:0 8px;display:flex}.lze-number:focus-within{border-color:var(--lze-accent)}.lze-number input{text-align:right;background:0 0;border:0;outline:none;width:100%;min-width:0}.lze-number-label,.lze-number-suffix{color:var(--lze-muted);flex:none;font-size:11px}.lze-toggle{cursor:pointer;align-items:center;gap:8px;display:flex}.lze-toggle input{width:16px;height:16px;accent-color:var(--lze-fg);margin:0}.lze-range{gap:4px;display:grid}.lze-range input{width:100%;accent-color:var(--lze-fg)}.lze-swatches{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.lze-swatch{cursor:pointer;border:1px solid #0f172a1f;border-radius:999px;width:26px;height:26px;padding:0}.lze-swatch[aria-pressed=true]{outline:2px solid var(--lze-fg);outline-offset:2px}.lze-swatch-custom{border:1px solid var(--lze-border);color:var(--lze-muted);cursor:pointer;border-radius:999px;align-items:center;gap:4px;padding:2px 8px 2px 3px;font-size:12px;display:inline-flex}.lze-swatch-custom[data-active=true]{outline:2px solid var(--lze-fg);outline-offset:2px}.lze-swatch-custom input{cursor:pointer;background:0 0;border:0;border-radius:999px;width:20px;height:20px;padding:0}.lze-panel-section{border-top:1px solid var(--lze-border);padding-top:4px}.lze-panel-section>summary{color:var(--lze-muted);cursor:pointer;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:8px 0;font-size:12px;font-weight:600;list-style:none;display:flex}.lze-panel-section>summary::-webkit-details-marker{display:none}.lze-panel-section>summary:hover{color:var(--lze-fg)}.lze-panel-section[open]>summary svg{transform:rotate(180deg)}.lze-panel-body{gap:10px;padding:2px 0 12px;display:grid}.lze-dialog{border:1px solid var(--lze-border);background:var(--lze-panel);width:min(520px,100vw - 32px);max-height:calc(100dvh - 48px);color:var(--lze-fg);font:13px/1.45 var(--lze-font);border-radius:12px;padding:0;box-shadow:0 24px 64px #0f172a3d}.lze-dialog[data-size=lg]{width:min(720px,100vw - 32px)}.lze-dialog[data-size=xl]{width:min(880px,100vw - 32px)}.lze-dialog::backdrop{background:#0f172a73}.lze-dialog-body{gap:16px;padding:20px;display:grid}.lze-dialog-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.lze-dialog-head h2{font-size:16px;font-weight:650}.lze-dialog-actions{flex-wrap:wrap;gap:8px;display:flex}.lze-toasts{z-index:2147483000;gap:8px;max-width:min(420px,100vw - 32px);display:grid;position:fixed;bottom:16px;right:16px}.lze-toast{background:var(--lze-fg);color:var(--lze-panel);border-radius:10px;align-items:center;gap:8px;padding:8px 8px 8px 14px;display:flex;box-shadow:0 12px 32px #0f172a3d}.lze-toast[data-tone=error]{background:var(--lze-danger)}.lze-toast span{flex:1}.lze-toast .lze-icon-btn{color:inherit;width:26px;height:26px}.lze-toast .lze-icon-btn:hover{color:inherit;background:#ffffff26}.lze-grid-2{grid-template-columns:1fr 1fr;gap:10px;display:grid}.lze-grid-4{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.lze-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.lze-stack{gap:16px;display:grid}.lze-heading{justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:650;display:flex}.lze-link{color:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}",
|
|
10854
|
-
".lze-center{text-align:center;color:var(--lze-muted);grid-
|
|
10859
|
+
".lze-center{text-align:center;color:var(--lze-muted);grid-area:1/1/-1;place-content:center;justify-items:center;gap:12px;padding:32px;display:grid}.lze-toolbar{border-bottom:1px solid var(--lze-border);background:var(--lze-panel);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.lze-toolbar-group{flex-wrap:wrap;align-items:center;gap:6px;min-width:0;display:flex}.lze-toolbar-start{z-index:1;grid-area:1/1;justify-self:start;align-items:center;gap:6px;padding:8px 12px;display:flex}.lze-site-name{text-overflow:ellipsis;white-space:nowrap;max-width:180px;font-size:14px;overflow:hidden}.lze-page-select{width:auto;max-width:220px}.lze-badge-status{color:var(--lze-warning);background:#fef3c7;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}.lze-badge-status[data-published=true]{color:var(--lze-success);background:#dcfce7}.lze-save-status{color:var(--lze-muted);max-width:360px;font-size:12px}.lze-save-status[data-tone=warning]{color:var(--lze-warning)}.lze-save-status[data-tone=danger]{color:var(--lze-danger)}.lze-segmented{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);padding:2px;display:inline-flex}.lze-segmented button{width:32px;height:26px;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.lze-segmented button[aria-pressed=true]{background:var(--lze-panel);color:var(--lze-fg);box-shadow:0 1px 2px #0f172a14}.lze-body{grid-template-columns:clamp(272px,19vw,352px) minmax(0,1fr) clamp(312px,22vw,408px);min-height:0;display:grid}.lze-main{min-width:0;min-height:0;display:grid;position:relative}.lze-sidebar{background:var(--lze-panel);flex-direction:column;min-height:0;display:flex}.lze-left{border-right:1px solid var(--lze-border)}.lze-right{border-left:1px solid var(--lze-border)}.lze-scroll{flex:1;min-height:0;overflow-y:auto}.lze-pad{padding:16px}.lze-left>.lze-scroll.lze-stack{align-content:start;padding:16px}.lze-tabs{border-bottom:1px solid var(--lze-border);gap:2px;padding:10px 8px;display:flex}.lze-tabs button{min-width:0;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex-direction:column;flex:1;align-items:center;gap:2px;padding:6px 2px;font-size:11px;font-weight:600;display:flex}.lze-tabs button span,.lze-tabs button{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lze-right .lze-tabs button{flex-direction:row;justify-content:center;font-size:13px}.lze-tabs button:hover{color:var(--lze-fg)}.lze-tabs button[aria-selected=true]{background:var(--lze-hover);color:var(--lze-fg)}.lze-group-title{color:var(--lze-muted);margin-top:4px;font-size:12px;font-weight:600}.lze-palette{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px;display:grid}.lze-palette-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);min-width:0;color:var(--lze-muted);text-align:left;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;align-items:center;gap:10px;padding:11px 12px;font-size:13px;font-weight:500;display:flex}.lze-palette-item:hover{border-color:var(--lze-fg);color:var(--lze-fg);background:var(--lze-hover)}.lze-palette-item svg{flex:none}.lze-list{gap:6px;display:grid}.lze-group-label{letter-spacing:.06em;text-transform:uppercase;color:var(--lze-muted);margin:10px 0 2px;font-size:11px;font-weight:700}.lze-group-label:first-child{margin-top:0}.lze-list-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:var(--lze-muted);text-align:left;cursor:pointer;padding:11px 12px;font-size:13px;font-weight:500}.lze-list-item:hover{border-color:var(--lze-fg);color:var(--lze-fg)}.lze-drag-ghost{z-index:2147483000;pointer-events:none;border:1px solid var(--lze-fg);border-radius:var(--lze-radius);background:var(--lze-panel);padding:6px 10px;font-size:12px;font-weight:600;position:fixed;box-shadow:0 8px 24px #0f172a2e}.lze-layer-group{padding:0 8px 2px}.lze-layer-row{color:var(--lze-muted);border-radius:6px;align-items:center;gap:2px;display:flex}.lze-layer-row:hover{background:var(--lze-hover)}.lze-layer-row[data-selected=true]{background:var(--lze-active);color:var(--lze-fg)}.lze-layer-row .lze-icon-btn{width:24px;height:24px}.lze-layer-name{min-width:0;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:1;align-items:center;gap:8px;padding:6px 4px;display:flex}.lze-layer-name span:first-of-type{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.lze-layer-actions{opacity:0;display:flex}.lze-layer-row:hover .lze-layer-actions,.lze-layer-row:focus-within .lze-layer-actions{opacity:1}.lze-layer-children{border-left:1px solid var(--lze-border);margin-left:16px;padding-left:4px}.lze-lock-toggle{opacity:0}.lze-lock-toggle[data-locked=true],.lze-layer-row:hover .lze-lock-toggle,.lze-lock-toggle:focus-visible{opacity:1}.lze-card{border:1px solid var(--lze-border);border-radius:var(--lze-radius);gap:10px;padding:12px;display:grid}.lze-card[data-active=true]{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-media-grid{grid-template-columns:1fr 1fr;align-content:start;gap:8px;display:grid}.lze-media-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);cursor:grab;touch-action:none;height:96px;padding:0;overflow:hidden}.lze-media-item:hover{border-color:var(--lze-fg)}.lze-media-item img{object-fit:contain;width:100%;height:100%}@media (width<=1100px){.lze-body{grid-template-columns:236px minmax(0,1fr) 292px}}",
|
|
10855
10860
|
".lze-stage{overscroll-behavior:contain;padding:24px;position:relative;overflow:auto}.lze-stage[data-space],.lze-stage[data-space] *{cursor:grab!important}.lze-stage[data-space=panning],.lze-stage[data-space=panning] *{cursor:grabbing!important}.lze-context{z-index:2147483100;border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:10px;min-width:208px;padding:6px;font-size:13px;position:fixed;box-shadow:0 12px 32px #0f172a2e}.lze-context:focus{outline:none}.lze-context>button{width:100%;color:var(--lze-fg);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:space-between;align-items:center;gap:16px;padding:7px 10px;display:flex}.lze-context>button:hover,.lze-context>button:focus-visible{background:var(--lze-hover)}.lze-context .lze-context-danger{color:var(--lze-danger)}.lze-context kbd{color:var(--lze-muted);font:inherit;font-size:11px}.lze-context hr{border:0;border-top:1px solid var(--lze-border);margin:5px 6px}.lze-context-label{color:var(--lze-muted);margin:6px 10px 2px;font-size:11px}.lze-context-row{gap:2px;padding:0 6px 4px;display:flex}.lze-context-row button{width:32px;height:28px;color:var(--lze-fg);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;display:grid}.lze-context-row button:hover{background:var(--lze-hover)}.lze-context-align{width:16px;height:16px;display:block;position:relative}.lze-context-align:before{content:\"\";background:var(--lze-fg);position:absolute}.lze-context-align:after{content:\"\";background:var(--lze-muted);border-radius:1px;position:absolute}.lze-context-align[data-align=left]:before{width:1.5px;top:0;bottom:0;left:0}.lze-context-align[data-align=left]:after{width:11px;height:8px;top:4px;left:3px}.lze-context-align[data-align=hcenter]:before{width:1.5px;top:0;bottom:0;left:7.25px}.lze-context-align[data-align=hcenter]:after{width:11px;height:8px;top:4px;left:2.5px}.lze-context-align[data-align=right]:before{width:1.5px;top:0;bottom:0;right:0}.lze-context-align[data-align=right]:after{width:11px;height:8px;top:4px;right:3px}.lze-context-align[data-align=top]:before{height:1.5px;top:0;left:0;right:0}.lze-context-align[data-align=top]:after{width:8px;height:11px;top:3px;left:4px}.lze-context-align[data-align=vmiddle]:before{height:1.5px;top:7.25px;left:0;right:0}.lze-context-align[data-align=vmiddle]:after{width:8px;height:11px;top:2.5px;left:4px}.lze-context-align[data-align=bottom]:before{height:1.5px;bottom:0;left:0;right:0}.lze-context-align[data-align=bottom]:after{width:8px;height:11px;bottom:3px;left:4px}.lze-zoom{z-index:25;float:right;border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:999px;align-items:center;gap:2px;margin-top:12px;padding:4px;display:inline-flex;position:sticky;bottom:0;box-shadow:0 6px 18px #0f172a1f}.lze-zoom button{color:var(--lze-fg);cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px}.lze-zoom-btn{width:28px;height:28px;font-size:15px;line-height:1}.lze-zoom-value{font-variant-numeric:tabular-nums;min-width:54px;height:28px;font-size:12px;font-weight:600}.lze-zoom button:hover{background:var(--lze-hover)}.lze-sheet{background:var(--lze-panel);border-radius:10px;margin:0 auto;position:relative;box-shadow:0 1px 3px #0f172a14,0 12px 40px #0f172a14}.lze-sheet[data-device=mobile]{border-radius:18px}.lze-scaler{transform-origin:0 0;position:absolute;top:0;left:0}.lze-frame{background:0 0;border:0;display:block}.lze-preview .lze-sheet{overflow:hidden}.lze-preview .lze-frame{transform-origin:0 0}.lze-empty-hint{text-align:center;max-width:520px;color:var(--lze-muted);margin:16px auto 0}.lze-hint-bubble{z-index:2147483000;background:var(--lze-fg);color:var(--lze-panel);font-variant-numeric:tabular-nums;pointer-events:none;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:600;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.lze-render-issue,.lze-modal-banner{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);justify-content:space-between;align-items:center;gap:8px;max-width:900px;margin:0 auto 12px;padding:8px 12px;display:flex}.lze-render-issue{border-color:var(--lze-danger);color:var(--lze-danger)}.lze-modal-banner{border-color:var(--lze-fg);font-weight:600}.lze-overlay{pointer-events:none;--line:calc(1px * var(--inv));position:absolute;inset:0}.lze-overlay>*{position:absolute}.lze-canvas-outline{outline:calc(2px * var(--inv)) solid var(--lze-select);outline-offset:calc(-2px * var(--inv));box-shadow:inset 0 0 0 calc(4px * var(--inv)) #ffffffb3}.lze-hover{outline:var(--line) solid var(--lze-select)}.lze-selection{outline:calc(2px * var(--inv)) solid var(--lze-select);outline-offset:var(--line);box-shadow:0 0 0 calc(4px * var(--inv)) #ffffffb3}.lze-selection[data-locked=true]{outline-style:dashed}.lze-lock{top:calc(-18px * var(--inv));width:calc(12px * var(--inv));height:calc(12px * var(--inv));color:var(--lze-select);position:absolute;right:0}.lze-handles{pointer-events:none}.lze-handle,.lze-radius,.lze-rotate{pointer-events:auto;touch-action:none;padding:0;position:absolute}.lze-handle{width:calc(11px * var(--inv));height:calc(11px * var(--inv));margin:calc(-5.5px * var(--inv));border:var(--line) solid #fff;background:var(--lze-select);border-radius:999px}.lze-handle[data-handle^=n]{top:0}.lze-handle[data-handle^=s]{top:100%}.lze-handle[data-handle=e],.lze-handle[data-handle=w]{top:50%}.lze-handle[data-handle$=w]{left:0}.lze-handle[data-handle$=e]{left:100%}.lze-handle[data-handle=n],.lze-handle[data-handle=s]{left:50%}.lze-handle[data-handle=nw],.lze-handle[data-handle=se]{cursor:nwse-resize}.lze-handle[data-handle=ne],.lze-handle[data-handle=sw]{cursor:nesw-resize}.lze-handle[data-handle=n],.lze-handle[data-handle=s]{cursor:ns-resize}.lze-handle[data-handle=e],.lze-handle[data-handle=w]{cursor:ew-resize}.lze-radius{top:calc(10px * var(--inv));left:calc(10px * var(--inv));width:calc(14px * var(--inv));height:calc(14px * var(--inv));border:calc(2px * var(--inv)) solid var(--lze-select);cursor:ew-resize;background:#fff;border-radius:999px}.lze-rotate{top:calc(100% + 10px * var(--inv));left:calc(100% + 10px * var(--inv));width:calc(24px * var(--inv));height:calc(24px * var(--inv));border:var(--line) solid var(--lze-select);color:var(--lze-select);cursor:grab;background:#fff;border-radius:999px;place-items:center;display:grid}.lze-rotate svg{width:calc(13px * var(--inv));height:calc(13px * var(--inv))}.lze-guide{background:var(--lze-guide)}.lze-guide[data-axis=x]{width:var(--line)}.lze-guide[data-axis=y]{height:var(--line)}.lze-badge{transform:translateY(-100%) scale(var(--inv));transform-origin:0 100%;background:var(--lze-select);color:#fff;white-space:nowrap;border-radius:4px;margin-top:-4px;padding:2px 6px;font-size:11px;font-weight:600}.lze-section-chip{z-index:5;transform:scale(var(--inv)) translateY(-100%);transform-origin:0 100%;border:1px solid var(--lze-border);background:var(--lze-panel);color:var(--lze-muted);font:600 11px/1.6 var(--lze-font);white-space:nowrap;cursor:pointer;pointer-events:auto;opacity:.5;border-radius:999px;margin-top:-4px;padding:2px 8px;transition:opacity .15s;position:absolute}.lze-section-chip:hover,.lze-section-chip[data-current=true]{opacity:1;color:var(--lze-fg)}.lze-section-chip[data-current=true]{border-color:var(--lze-select);color:var(--lze-select)}.lze-section-empty{z-index:4;transform:scale(var(--inv)) translate(-50%, -50%);transform-origin:0 0;color:var(--lze-muted);font:500 12px/1.4 var(--lze-font);white-space:nowrap;background:#ffffffd1;border-radius:999px;margin:0;padding:6px 14px;position:absolute}.lze-edge{z-index:6;transform:scale(var(--inv)) translate(-50%, -50%);transform-origin:0 0;border:1px solid var(--lze-border);background:var(--lze-surface);pointer-events:auto;opacity:.22;border-radius:999px;gap:4px;padding:3px;transition:opacity .15s;display:flex;position:absolute;box-shadow:0 6px 18px #0f172a24}.lze-edge:hover,.lze-edge:focus-within{opacity:1}.lze-stacked{pointer-events:auto;transform:scale(var(--inv));transform-origin:0 0;border-bottom:1px solid var(--lze-border);max-width:none;color:var(--lze-fg);background:#fffffff2;justify-content:space-between;align-items:center;gap:8px;padding:6px 8px;font-size:12px;display:flex;width:auto!important}.lze-element-bar{pointer-events:auto;transform-origin:0 0;transform:scale(var(--inv)) translateY(calc(-100% - 10px));border:1px solid var(--lze-border);background:var(--lze-panel);border-radius:10px;align-items:center;gap:2px;padding:3px;display:flex;box-shadow:0 8px 24px #0f172a24}.lze-element-bar[data-below=true]{transform:scale(var(--inv)) translateY(14px)}.lze-divider{background:var(--lze-border);width:1px;height:20px;margin:0 2px}",
|
|
10856
10861
|
".lze-panel-title{font-size:13px;font-weight:650}.lze-grow{flex:1;min-width:0}.lze-nowrap{flex-wrap:nowrap}.lze-divided{border-top:1px solid var(--lze-border);padding-top:12px}.lze-image-preview{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-bg);overflow:hidden}.lze-image-preview img{object-fit:contain;width:100%;height:96px;display:block}.lze-image-preview[data-thumb=icon]{width:fit-content;padding:6px}.lze-image-preview[data-thumb=icon] img{width:40px;height:40px}.lze-tabs-inline{border-radius:var(--lze-radius);background:var(--lze-bg);gap:4px;padding:3px;display:flex}.lze-tabs-inline button{color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:1;padding:5px 8px;font-size:12px;font-weight:500}.lze-tabs-inline button:hover{color:var(--lze-fg)}.lze-tabs-inline button[aria-pressed=true]{background:var(--lze-panel);color:var(--lze-fg);box-shadow:0 1px 2px #0f172a14}.lze-gradient-presets{flex-wrap:wrap;gap:6px;display:flex}.lze-gradient-preset{cursor:pointer;border:1px solid #0f172a1f;border-radius:6px;width:48px;height:28px;padding:0}.lze-gradient-preset:hover{outline:2px solid var(--lze-fg);outline-offset:1px}.lze-link-card{border:1px solid var(--lze-border);border-radius:var(--lze-radius);gap:8px;margin:0;padding:8px;display:grid}.lze-link-card legend{color:var(--lze-muted);padding:0 4px;font-size:11px}.lze-icon-grid{border:1px solid var(--lze-border);border-radius:var(--lze-radius);grid-template-columns:repeat(6,1fr);gap:4px;max-height:192px;padding:6px;display:grid;overflow-y:auto}.lze-icon-grid .lze-hint{text-align:center;grid-column:1/-1;padding:8px 0}.lze-icon-choice{aspect-ratio:1;color:var(--lze-muted);cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;padding:0;display:grid}.lze-icon-choice:hover{background:var(--lze-hover);color:var(--lze-fg)}.lze-icon-choice[aria-pressed=true]{background:var(--lze-active);color:var(--lze-fg)}.lze-slug{color:var(--lze-muted);align-items:center;gap:6px;font-family:ui-monospace,monospace;display:flex}.lze-slug-static{border:1px solid var(--lze-border);color:var(--lze-muted);border-radius:6px;gap:6px;padding:6px 8px;display:flex}.lze-slug-root{font-family:ui-monospace,monospace}.lze-choice{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:inherit;text-align:left;cursor:pointer;gap:2px;padding:8px 10px;display:grid}.lze-choice:hover{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-shortcuts{gap:4px;margin:0;padding-left:16px;display:grid}.lze-rows{gap:8px;margin:0;padding:0;list-style:none;display:grid}.lze-row-item{border:1px solid var(--lze-border);border-radius:var(--lze-radius);justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;display:flex}.lze-palette-choice{border:1px solid var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);color:inherit;cursor:pointer;align-items:center;gap:8px;padding:6px 12px;display:inline-flex}.lze-palette-choice:hover{border-color:var(--lze-fg);background:var(--lze-hover)}.lze-palette-choice .lze-row{gap:3px}.lze-dot{border:1px solid #0f172a1f;border-radius:999px;width:14px;height:14px}.lze-theme-colors{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;display:grid}.lze-theme-color{border:1px solid var(--lze-border);border-radius:var(--lze-radius);align-items:center;gap:8px;padding:6px 10px;display:flex}.lze-theme-color span{flex:1}.lze-theme-color .lze-hex{width:84px;min-height:28px;padding:3px 6px;font-family:ui-monospace,monospace;font-size:12px}.lze-theme-color input[type=color]{border:1px solid var(--lze-border);cursor:pointer;background:0 0;border-radius:6px;width:32px;height:32px;padding:0}.lze-theme-preview{border:1px solid var(--lze-border);gap:10px;padding:20px;display:grid}.lze-theme-preview-heading{font-size:24px;font-weight:700;line-height:1.2}.lze-theme-preview-button{width:fit-content;padding:8px 16px;font-weight:600}.lze-file-input{display:none}.lze-asset-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;display:grid}.lze-upload-tile{border:2px dashed var(--lze-border);border-radius:var(--lze-radius);background:var(--lze-panel);height:128px;color:var(--lze-muted);text-align:center;cursor:pointer;align-content:center;place-items:center;gap:4px;padding:8px;display:grid}.lze-upload-tile:hover:not(:disabled){border-color:var(--lze-fg);color:var(--lze-fg)}.lze-upload-tile:disabled{cursor:progress}.lze-asset{border:1px solid var(--lze-border);border-radius:var(--lze-radius);height:128px;margin:0;position:relative;overflow:hidden}.lze-asset:hover{border-color:var(--lze-fg)}.lze-asset-use{background:var(--lze-bg);width:100%;height:100%;color:inherit;cursor:pointer;border:0;flex-direction:column;padding:0;display:flex}.lze-asset-use img{object-fit:contain;flex:1;width:100%;min-height:0}.lze-asset-use figcaption{background:var(--lze-panel);color:var(--lze-muted);text-align:left;white-space:nowrap;text-overflow:ellipsis;padding:4px 8px;font-size:11px;overflow:hidden}.lze-asset .lze-asset-delete{opacity:0;background:#ffffffeb;width:28px;height:28px;position:absolute;top:6px;right:6px}.lze-asset:hover .lze-asset-delete,.lze-asset .lze-asset-delete:focus-visible{opacity:1}.lze-submission{border-bottom:1px solid var(--lze-border);gap:6px;padding:10px 0;display:grid}.lze-submission dl{grid-template-columns:minmax(96px,max-content) 1fr;gap:4px 12px;margin:0;display:grid}.lze-submission dt{color:var(--lze-muted)}.lze-submission dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.lze-choices{gap:6px;display:grid}"
|
|
10857
|
-
].join("\n"),
|
|
10858
|
-
function
|
|
10862
|
+
].join("\n"), Al = /* @__PURE__ */ new WeakMap();
|
|
10863
|
+
function jl(e) {
|
|
10859
10864
|
let t = e.getRootNode();
|
|
10860
|
-
if (!(t instanceof Document || t instanceof ShadowRoot) ||
|
|
10865
|
+
if (!(t instanceof Document || t instanceof ShadowRoot) || Al.has(t)) return;
|
|
10861
10866
|
let n = new CSSStyleSheet();
|
|
10862
|
-
n.replaceSync(
|
|
10867
|
+
n.replaceSync(kl), Al.set(t, n), t.adoptedStyleSheets = [...t.adoptedStyleSheets, n];
|
|
10863
10868
|
}
|
|
10864
10869
|
//#endregion
|
|
10865
10870
|
//#region src/ui/Toasts.vue?vue&type=script&setup=true&lang.ts
|
|
10866
|
-
var
|
|
10871
|
+
var Ml = { class: "lze-toasts" }, Nl = ["data-tone", "role"], Pl = ["aria-label", "onClick"], Fl = /* @__PURE__ */ c({
|
|
10867
10872
|
__name: "Toasts",
|
|
10868
10873
|
setup(t) {
|
|
10869
10874
|
let n = K();
|
|
10870
|
-
return (t, r) => (_(), i("div",
|
|
10875
|
+
return (t, r) => (_(), i("div", Ml, [(_(!0), i(e, null, x(D(n).state.toasts, (e) => (_(), i("div", {
|
|
10871
10876
|
key: e.id,
|
|
10872
10877
|
class: "lze-toast",
|
|
10873
10878
|
"data-tone": e.tone,
|
|
@@ -10880,19 +10885,22 @@ var jl = { class: "lze-toasts" }, Ml = ["data-tone", "role"], Nl = ["aria-label"
|
|
|
10880
10885
|
}, [s(D(ot), {
|
|
10881
10886
|
size: 14,
|
|
10882
10887
|
"aria-hidden": "true"
|
|
10883
|
-
})], 8,
|
|
10888
|
+
})], 8, Pl)], 8, Nl))), 128))]));
|
|
10884
10889
|
}
|
|
10885
|
-
}),
|
|
10890
|
+
}), Il = ["lang"], Ll = {
|
|
10886
10891
|
key: 0,
|
|
10887
|
-
class: "lze-
|
|
10888
|
-
},
|
|
10892
|
+
class: "lze-toolbar-start"
|
|
10893
|
+
}, Rl = {
|
|
10889
10894
|
key: 1,
|
|
10895
|
+
class: "lze-center"
|
|
10896
|
+
}, zl = {
|
|
10897
|
+
key: 2,
|
|
10890
10898
|
class: "lze-center",
|
|
10891
10899
|
role: "alert"
|
|
10892
|
-
},
|
|
10893
|
-
key:
|
|
10900
|
+
}, Bl = {
|
|
10901
|
+
key: 3,
|
|
10894
10902
|
class: "lze-center"
|
|
10895
|
-
},
|
|
10903
|
+
}, Vl = { class: "lze-body" }, Hl = { class: "lze-main" }, Ul = /* @__PURE__ */ c({
|
|
10896
10904
|
inheritAttrs: !1,
|
|
10897
10905
|
__name: "LienzoEditor",
|
|
10898
10906
|
props: {
|
|
@@ -10903,64 +10911,73 @@ var jl = { class: "lze-toasts" }, Ml = ["data-tone", "role"], Nl = ["aria-label"
|
|
|
10903
10911
|
fetch: {}
|
|
10904
10912
|
},
|
|
10905
10913
|
setup(t) {
|
|
10906
|
-
let
|
|
10907
|
-
client:
|
|
10908
|
-
endpoint:
|
|
10909
|
-
headers:
|
|
10910
|
-
fetch:
|
|
10914
|
+
let c = t, l = hn(c.locale ?? "en", c.messages), u = Ln({
|
|
10915
|
+
client: Yt({
|
|
10916
|
+
endpoint: c.endpoint,
|
|
10917
|
+
headers: c.headers,
|
|
10918
|
+
fetch: c.fetch
|
|
10911
10919
|
}),
|
|
10912
|
-
i18n:
|
|
10920
|
+
i18n: l
|
|
10913
10921
|
});
|
|
10914
|
-
v(
|
|
10915
|
-
let
|
|
10916
|
-
function
|
|
10917
|
-
let t = e.composedPath().some((e) => e ===
|
|
10918
|
-
(t || n) &&
|
|
10922
|
+
v(In, u);
|
|
10923
|
+
let d = b(), f = b(), p = (e, t) => f.value?.dropPoint(e, t) ?? null;
|
|
10924
|
+
function m(e) {
|
|
10925
|
+
let t = e.composedPath().some((e) => e === d.value), n = e.target === document.body || e.target === document.documentElement;
|
|
10926
|
+
(t || n) && u.state.load.kind === "ready" && Un(u, e);
|
|
10919
10927
|
}
|
|
10920
|
-
let
|
|
10921
|
-
|
|
10922
|
-
let e =
|
|
10923
|
-
|
|
10924
|
-
})
|
|
10925
|
-
|
|
10928
|
+
let y = null;
|
|
10929
|
+
te(() => {
|
|
10930
|
+
let e = u.theme.value;
|
|
10931
|
+
u.state.load.kind === "ready" && typeof document < "u" && (y ??= document.head.appendChild(Object.assign(document.createElement("link"), { rel: "stylesheet" })), y.href = Jt([e.heading_font, e.body_font]));
|
|
10932
|
+
});
|
|
10933
|
+
let x = () => void u.saveNow();
|
|
10934
|
+
function C(e) {
|
|
10935
|
+
u.leavingLosesEdits() && e.preventDefault();
|
|
10936
|
+
}
|
|
10937
|
+
return g(() => {
|
|
10938
|
+
d.value && jl(d.value), window.addEventListener("keydown", m), window.addEventListener("pagehide", x), window.addEventListener("beforeunload", C), u.load();
|
|
10926
10939
|
}), h(() => {
|
|
10927
|
-
window.removeEventListener("keydown",
|
|
10928
|
-
}), (t,
|
|
10940
|
+
window.removeEventListener("keydown", m), window.removeEventListener("pagehide", x), window.removeEventListener("beforeunload", C), y?.remove(), u.dispose();
|
|
10941
|
+
}), (t, c) => (_(), i("div", {
|
|
10929
10942
|
ref_key: "root",
|
|
10930
|
-
ref:
|
|
10943
|
+
ref: d,
|
|
10931
10944
|
class: "lze-root",
|
|
10932
|
-
lang: D(
|
|
10945
|
+
lang: D(l).locale
|
|
10933
10946
|
}, [
|
|
10934
|
-
D(
|
|
10935
|
-
|
|
10947
|
+
D(u).state.load.kind === "ready" ? r("", !0) : (_(), i("div", Ll, [S(t.$slots, "toolbar-start")])),
|
|
10948
|
+
D(u).state.load.kind === "loading" ? (_(), i("div", Rl, T(D(u).t("load.loading")), 1)) : D(u).state.load.kind === "failed" ? (_(), i("div", zl, [a("p", null, T(D(u).t("load.failed", { message: D(u).state.load.message })), 1), s(q, { onClick: c[0] ||= (e) => D(u).load() }, {
|
|
10949
|
+
default: N(() => [o(T(D(u).t("load.retry")), 1)]),
|
|
10936
10950
|
_: 1
|
|
10937
|
-
})])) : D(
|
|
10951
|
+
})])) : D(u).state.load.kind === "empty" ? (_(), i("div", Bl, [s(q, {
|
|
10938
10952
|
variant: "primary",
|
|
10939
|
-
onClick:
|
|
10953
|
+
onClick: c[1] ||= (e) => D(u).state.dialog = "newPage"
|
|
10940
10954
|
}, {
|
|
10941
|
-
default: N(() => [o(T(D(
|
|
10955
|
+
default: N(() => [o(T(D(u).t("newPage.title")), 1)]),
|
|
10942
10956
|
_: 1
|
|
10943
|
-
})])) : (_(), i(e, { key:
|
|
10944
|
-
|
|
10945
|
-
|
|
10957
|
+
})])) : (_(), i(e, { key: 4 }, [s(Ol, null, {
|
|
10958
|
+
start: N(() => [S(t.$slots, "toolbar-start")]),
|
|
10959
|
+
_: 3
|
|
10960
|
+
}), a("div", Vl, [
|
|
10961
|
+
s(Lo, { "drop-point": p }),
|
|
10962
|
+
a("main", Hl, [D(u).state.previewing ? (_(), n(Fr, { key: 0 })) : (_(), n(Nr, {
|
|
10946
10963
|
key: 1,
|
|
10947
10964
|
ref_key: "canvas",
|
|
10948
|
-
ref:
|
|
10965
|
+
ref: f
|
|
10949
10966
|
}, null, 512))]),
|
|
10950
|
-
s(
|
|
10967
|
+
s(ml)
|
|
10951
10968
|
])], 64)),
|
|
10952
|
-
s(
|
|
10953
|
-
s(
|
|
10954
|
-
s(
|
|
10955
|
-
s(
|
|
10956
|
-
s(
|
|
10957
|
-
s(
|
|
10958
|
-
s(
|
|
10959
|
-
s(
|
|
10960
|
-
], 8,
|
|
10969
|
+
s(ui),
|
|
10970
|
+
s(wa),
|
|
10971
|
+
s(ba),
|
|
10972
|
+
s(Ki),
|
|
10973
|
+
s(Zi),
|
|
10974
|
+
s(Gr),
|
|
10975
|
+
s(ti),
|
|
10976
|
+
s(Fl)
|
|
10977
|
+
], 8, Il));
|
|
10961
10978
|
}
|
|
10962
10979
|
});
|
|
10963
10980
|
//#endregion
|
|
10964
|
-
export {
|
|
10981
|
+
export { pn as n, fn as r, Ul as t };
|
|
10965
10982
|
|
|
10966
|
-
//# sourceMappingURL=LienzoEditor-
|
|
10983
|
+
//# sourceMappingURL=LienzoEditor-BZdUqINz.js.map
|