@bygga.dev/editor 1.9.5 → 1.9.7
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 +8 -0
- package/{TextEditor-BWIxouVH.js → TextEditor-BuH44j8S.js} +336 -336
- package/bygga-editor.js +2019 -1686
- package/package.json +1 -1
- package/{urls-CtHNhbic.js → urls-BY2YcayU.js} +190 -181
|
@@ -16431,14 +16431,23 @@ function Fw(e, t, n, r = 0) {
|
|
|
16431
16431
|
}
|
|
16432
16432
|
//#endregion
|
|
16433
16433
|
//#region ../core/src/blockStyle.ts
|
|
16434
|
-
|
|
16434
|
+
var Iw = [
|
|
16435
|
+
"left",
|
|
16436
|
+
"center",
|
|
16437
|
+
"right",
|
|
16438
|
+
"justify"
|
|
16439
|
+
];
|
|
16440
|
+
function Lw(e) {
|
|
16441
|
+
return Iw.includes(e);
|
|
16442
|
+
}
|
|
16443
|
+
function Rw(e) {
|
|
16435
16444
|
return `${e}px`;
|
|
16436
16445
|
}
|
|
16437
|
-
function
|
|
16446
|
+
function zw(e, t) {
|
|
16438
16447
|
if (!e) return [];
|
|
16439
16448
|
let n = null;
|
|
16440
16449
|
e.customFont === void 0 ? e.font !== void 0 && e.font !== t && (n = Ti(e.font)) : n = e.customFont;
|
|
16441
|
-
let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null :
|
|
16450
|
+
let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null : Rw(e.fontSize), a = [];
|
|
16442
16451
|
return (n !== null || r !== null || i !== null) && a.push({
|
|
16443
16452
|
type: "textStyle",
|
|
16444
16453
|
attrs: {
|
|
@@ -16448,12 +16457,12 @@ function Lw(e, t) {
|
|
|
16448
16457
|
}
|
|
16449
16458
|
}), e.bold && a.push({ type: "bold" }), e.italic && a.push({ type: "italic" }), e.underline && a.push({ type: "underline" }), a;
|
|
16450
16459
|
}
|
|
16451
|
-
function
|
|
16460
|
+
function Bw(e, t, n) {
|
|
16452
16461
|
let r = ga(e, t), { data: i } = r;
|
|
16453
16462
|
switch (i.type) {
|
|
16454
16463
|
case "text": {
|
|
16455
16464
|
let e = n?.text;
|
|
16456
|
-
e && (i.text = Ii(e.align),
|
|
16465
|
+
e && (i.text = Ii(e.align), Vw(i, e), e.paragraphSpacing !== void 0 && (i.paragraphSpacing = e.paragraphSpacing));
|
|
16457
16466
|
break;
|
|
16458
16467
|
}
|
|
16459
16468
|
case "header": {
|
|
@@ -16461,8 +16470,8 @@ function Rw(e, t, n) {
|
|
|
16461
16470
|
e && (i.text = zi(Li, {
|
|
16462
16471
|
level: e.level,
|
|
16463
16472
|
align: e.align,
|
|
16464
|
-
marks:
|
|
16465
|
-
}),
|
|
16473
|
+
marks: zw(e, t)
|
|
16474
|
+
}), Vw(i, e));
|
|
16466
16475
|
break;
|
|
16467
16476
|
}
|
|
16468
16477
|
case "button": {
|
|
@@ -16483,7 +16492,7 @@ function Rw(e, t, n) {
|
|
|
16483
16492
|
}
|
|
16484
16493
|
return r;
|
|
16485
16494
|
}
|
|
16486
|
-
function
|
|
16495
|
+
function Vw(e, t) {
|
|
16487
16496
|
t.background && (e.background = {
|
|
16488
16497
|
type: "solid",
|
|
16489
16498
|
color: t.background
|
|
@@ -16491,23 +16500,23 @@ function zw(e, t) {
|
|
|
16491
16500
|
}
|
|
16492
16501
|
//#endregion
|
|
16493
16502
|
//#region \0plugin-vue:export-helper
|
|
16494
|
-
var
|
|
16503
|
+
var Hw = (e, t) => {
|
|
16495
16504
|
let n = e.__vccOpts || e;
|
|
16496
16505
|
for (let [e, r] of t) n[e] = r;
|
|
16497
16506
|
return n;
|
|
16498
16507
|
};
|
|
16499
16508
|
//#endregion
|
|
16500
16509
|
//#region src/customFonts.ts
|
|
16501
|
-
function
|
|
16510
|
+
function Uw(e) {
|
|
16502
16511
|
return e.map((e) => ({
|
|
16503
16512
|
...e,
|
|
16504
16513
|
stack: Ai(e)
|
|
16505
16514
|
}));
|
|
16506
16515
|
}
|
|
16507
|
-
var
|
|
16508
|
-
function
|
|
16516
|
+
var Ww = /* @__PURE__ */ new Set();
|
|
16517
|
+
function Gw(e) {
|
|
16509
16518
|
if (!(typeof document > "u")) {
|
|
16510
|
-
for (let t of e) if (!
|
|
16519
|
+
for (let t of e) if (!Ww.has(t.href)) if (Ww.add(t.href), Ni(t) === "file") {
|
|
16511
16520
|
if (typeof FontFace > "u") continue;
|
|
16512
16521
|
let e = new FontFace(t.name, `url("${t.href}")`, { display: "swap" });
|
|
16513
16522
|
document.fonts.add(e), e.load().catch((e) => {
|
|
@@ -16521,9 +16530,9 @@ function Uw(e) {
|
|
|
16521
16530
|
}
|
|
16522
16531
|
}
|
|
16523
16532
|
}
|
|
16524
|
-
function
|
|
16533
|
+
function Kw(e, t) {
|
|
16525
16534
|
if (Array.isArray(e)) {
|
|
16526
|
-
for (let n of e)
|
|
16535
|
+
for (let n of e) Kw(n, t);
|
|
16527
16536
|
return;
|
|
16528
16537
|
}
|
|
16529
16538
|
if (typeof e != "object" || !e) return;
|
|
@@ -16533,9 +16542,9 @@ function Ww(e, t) {
|
|
|
16533
16542
|
typeof e?.fontFamily == "string" && t.stacks.add(e.fontFamily);
|
|
16534
16543
|
}
|
|
16535
16544
|
n.type === "button" && typeof n.customFont == "string" && t.stacks.add(n.customFont), n.type === "custom" && typeof n.html == "string" && t.pluginHtml.push(n.html);
|
|
16536
|
-
for (let e of Object.values(n))
|
|
16545
|
+
for (let e of Object.values(n)) Kw(e, t);
|
|
16537
16546
|
}
|
|
16538
|
-
var
|
|
16547
|
+
var qw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Jw = {
|
|
16539
16548
|
""": "\"",
|
|
16540
16549
|
""": "\"",
|
|
16541
16550
|
""": "\"",
|
|
@@ -16546,31 +16555,31 @@ var Gw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Kw = {
|
|
|
16546
16555
|
"&": "&",
|
|
16547
16556
|
"&": "&"
|
|
16548
16557
|
};
|
|
16549
|
-
function
|
|
16550
|
-
return e.replace(
|
|
16558
|
+
function Yw(e) {
|
|
16559
|
+
return e.replace(qw, (e) => Jw[e.toLowerCase()] ?? e);
|
|
16551
16560
|
}
|
|
16552
|
-
function
|
|
16561
|
+
function Xw(e) {
|
|
16553
16562
|
let t = (Ai(e).split(",")[0] ?? "").replace(/["']/g, "").trim();
|
|
16554
16563
|
return [.../* @__PURE__ */ new Set([e.name.trim(), t])].filter((e) => e !== "");
|
|
16555
16564
|
}
|
|
16556
|
-
var
|
|
16557
|
-
function
|
|
16565
|
+
var Zw = /[.*+?^${}()|[\]\\]/g;
|
|
16566
|
+
function Qw(e, t) {
|
|
16558
16567
|
if (e.length === 0) return !1;
|
|
16559
|
-
let n = e.map(
|
|
16560
|
-
return
|
|
16561
|
-
let t = RegExp(`(^|[^\\w-])${e.replace(
|
|
16568
|
+
let n = e.map(Yw);
|
|
16569
|
+
return Xw(t).some((e) => {
|
|
16570
|
+
let t = RegExp(`(^|[^\\w-])${e.replace(Zw, "\\$&")}(?![\\w-])`, "i");
|
|
16562
16571
|
return n.some((e) => t.test(e));
|
|
16563
16572
|
});
|
|
16564
16573
|
}
|
|
16565
|
-
function
|
|
16574
|
+
function $w(e, t) {
|
|
16566
16575
|
let n = {
|
|
16567
16576
|
stacks: /* @__PURE__ */ new Set(),
|
|
16568
16577
|
pluginHtml: []
|
|
16569
16578
|
};
|
|
16570
|
-
|
|
16579
|
+
Kw(e.root, n);
|
|
16571
16580
|
let r = e.customFonts ?? [], i = [], a = (e) => {
|
|
16572
16581
|
let t = Ai(e);
|
|
16573
|
-
(n.stacks.has(t) ||
|
|
16582
|
+
(n.stacks.has(t) || Qw(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
|
|
16574
16583
|
};
|
|
16575
16584
|
for (let { stack: e, ...n } of t) a(n);
|
|
16576
16585
|
for (let e of r) a(e);
|
|
@@ -16579,15 +16588,15 @@ function Zw(e, t) {
|
|
|
16579
16588
|
}
|
|
16580
16589
|
//#endregion
|
|
16581
16590
|
//#region src/assets/icons/board.svg?component
|
|
16582
|
-
var
|
|
16591
|
+
var eT = {
|
|
16583
16592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16584
16593
|
width: "55",
|
|
16585
16594
|
height: "55",
|
|
16586
16595
|
fill: "none",
|
|
16587
16596
|
viewBox: "0 0 54.64 54.64"
|
|
16588
16597
|
};
|
|
16589
|
-
function
|
|
16590
|
-
return y(), e("svg",
|
|
16598
|
+
function tT(t, n) {
|
|
16599
|
+
return y(), e("svg", eT, [...n[0] ||= [r("path", {
|
|
16591
16600
|
stroke: "currentColor",
|
|
16592
16601
|
"stroke-linejoin": "round",
|
|
16593
16602
|
"stroke-width": "2",
|
|
@@ -16599,15 +16608,15 @@ function $w(t, n) {
|
|
|
16599
16608
|
d: "M20.984 10.07c1.403.219 2.302 1.43 2.356 2.85.095 2.522.22 7.192.22 14.4s-.125 11.878-.22 14.4c-.054 1.42-.953 2.631-2.356 2.85-1.042.161-2.467.297-4.317.297s-3.276-.136-4.317-.298c-1.404-.218-2.303-1.429-2.356-2.848-.096-2.523-.22-7.193-.22-14.401s.124-11.878.22-14.4c.053-1.42.952-2.631 2.356-2.85 1.041-.161 2.466-.297 4.317-.297s3.275.136 4.317.298ZM34.03 9.903c-1.582.116-2.734 1.369-2.813 2.953-.072 1.45-.137 3.529-.137 6.317s.065 4.868.137 6.318c.08 1.584 1.23 2.836 2.813 2.952 1 .073 2.305.13 3.943.13 1.639 0 2.943-.057 3.944-.13 1.582-.116 2.734-1.368 2.813-2.952.072-1.45.137-3.529.137-6.318s-.065-4.868-.137-6.317c-.08-1.584-1.231-2.837-2.813-2.953-1-.073-2.305-.13-3.944-.13s-2.943.057-3.943.13Z"
|
|
16600
16609
|
}, null, -1)]]);
|
|
16601
16610
|
}
|
|
16602
|
-
var
|
|
16611
|
+
var nT = { render: tT }, rT = {
|
|
16603
16612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16604
16613
|
width: "16",
|
|
16605
16614
|
height: "16",
|
|
16606
16615
|
fill: "none",
|
|
16607
16616
|
viewBox: "0 0 16 16"
|
|
16608
16617
|
};
|
|
16609
|
-
function
|
|
16610
|
-
return y(), e("svg",
|
|
16618
|
+
function iT(t, n) {
|
|
16619
|
+
return y(), e("svg", rT, [...n[0] ||= [r("path", {
|
|
16611
16620
|
stroke: "currentColor",
|
|
16612
16621
|
"stroke-linecap": "round",
|
|
16613
16622
|
"stroke-linejoin": "round",
|
|
@@ -16615,15 +16624,15 @@ function nT(t, n) {
|
|
|
16615
16624
|
d: "m12.33 13.67-4.33-3-4.33 3v-10c0-.74.6-1.34 1.33-1.34h6c.74 0 1.33.6 1.33 1.34z"
|
|
16616
16625
|
}, null, -1)]]);
|
|
16617
16626
|
}
|
|
16618
|
-
var
|
|
16627
|
+
var aT = { render: iT }, oT = {
|
|
16619
16628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16620
16629
|
width: "16",
|
|
16621
16630
|
height: "16",
|
|
16622
16631
|
fill: "none",
|
|
16623
16632
|
viewBox: "0 0 16 16"
|
|
16624
16633
|
};
|
|
16625
|
-
function
|
|
16626
|
-
return y(), e("svg",
|
|
16634
|
+
function sT(t, n) {
|
|
16635
|
+
return y(), e("svg", oT, [...n[0] ||= [r("path", {
|
|
16627
16636
|
stroke: "currentColor",
|
|
16628
16637
|
"stroke-linecap": "round",
|
|
16629
16638
|
"stroke-linejoin": "round",
|
|
@@ -16631,15 +16640,15 @@ function aT(t, n) {
|
|
|
16631
16640
|
d: "M6.5 3c-1 0-1 1-1 2 0 1.5-1 2-1 3s1 1.5 1 3c0 1 0 2 1 2M9.5 3c1 0 1 1 1 2 0 1.5 1 2 1 3s-1 1.5-1 3c0 1 0 2-1 2"
|
|
16632
16641
|
}, null, -1)]]);
|
|
16633
16642
|
}
|
|
16634
|
-
var
|
|
16643
|
+
var cT = { render: sT }, lT = {
|
|
16635
16644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16636
16645
|
width: "40",
|
|
16637
16646
|
height: "40",
|
|
16638
16647
|
fill: "none",
|
|
16639
16648
|
viewBox: "0 0 40 40"
|
|
16640
16649
|
};
|
|
16641
|
-
function
|
|
16642
|
-
return y(), e("svg",
|
|
16650
|
+
function uT(t, n) {
|
|
16651
|
+
return y(), e("svg", lT, [...n[0] ||= [r("rect", {
|
|
16643
16652
|
width: "28",
|
|
16644
16653
|
height: "14",
|
|
16645
16654
|
x: "6",
|
|
@@ -16655,15 +16664,15 @@ function cT(t, n) {
|
|
|
16655
16664
|
d: "M14 20h12"
|
|
16656
16665
|
}, null, -1)]]);
|
|
16657
16666
|
}
|
|
16658
|
-
var
|
|
16667
|
+
var dT = { render: uT }, fT = {
|
|
16659
16668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16660
16669
|
width: "16",
|
|
16661
16670
|
height: "16",
|
|
16662
16671
|
fill: "none",
|
|
16663
16672
|
viewBox: "0 0 16 16"
|
|
16664
16673
|
};
|
|
16665
|
-
function
|
|
16666
|
-
return y(), e("svg",
|
|
16674
|
+
function pT(t, n) {
|
|
16675
|
+
return y(), e("svg", fT, [...n[0] ||= [r("path", {
|
|
16667
16676
|
stroke: "currentColor",
|
|
16668
16677
|
"stroke-linecap": "round",
|
|
16669
16678
|
"stroke-linejoin": "round",
|
|
@@ -16671,30 +16680,30 @@ function dT(t, n) {
|
|
|
16671
16680
|
d: "m4 6 4 4 4-4"
|
|
16672
16681
|
}, null, -1)]]);
|
|
16673
16682
|
}
|
|
16674
|
-
var
|
|
16683
|
+
var mT = { render: pT }, hT = {
|
|
16675
16684
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16676
16685
|
width: "16",
|
|
16677
16686
|
height: "16",
|
|
16678
16687
|
fill: "none",
|
|
16679
16688
|
viewBox: "0 0 16 16"
|
|
16680
16689
|
};
|
|
16681
|
-
function
|
|
16682
|
-
return y(), e("svg",
|
|
16690
|
+
function gT(t, n) {
|
|
16691
|
+
return y(), e("svg", hT, [...n[0] ||= [r("path", {
|
|
16683
16692
|
stroke: "currentColor",
|
|
16684
16693
|
"stroke-linecap": "round",
|
|
16685
16694
|
"stroke-width": "1.2",
|
|
16686
16695
|
d: "m4 4 8 8M12 4l-8 8"
|
|
16687
16696
|
}, null, -1)]]);
|
|
16688
16697
|
}
|
|
16689
|
-
var
|
|
16698
|
+
var _T = { render: gT }, vT = {
|
|
16690
16699
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16691
16700
|
width: "40",
|
|
16692
16701
|
height: "40",
|
|
16693
16702
|
fill: "none",
|
|
16694
16703
|
viewBox: "0 0 40 40"
|
|
16695
16704
|
};
|
|
16696
|
-
function
|
|
16697
|
-
return y(), e("svg",
|
|
16705
|
+
function yT(t, n) {
|
|
16706
|
+
return y(), e("svg", vT, [...n[0] ||= [r("rect", {
|
|
16698
16707
|
width: "28",
|
|
16699
16708
|
height: "22",
|
|
16700
16709
|
x: "6",
|
|
@@ -16710,15 +16719,15 @@ function _T(t, n) {
|
|
|
16710
16719
|
d: "M15.33 9.6v20.8M24.67 9.6v20.8"
|
|
16711
16720
|
}, null, -1)]]);
|
|
16712
16721
|
}
|
|
16713
|
-
var
|
|
16722
|
+
var bT = { render: yT }, xT = {
|
|
16714
16723
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16715
16724
|
width: "16",
|
|
16716
16725
|
height: "16",
|
|
16717
16726
|
fill: "none",
|
|
16718
16727
|
viewBox: "0 0 16 16"
|
|
16719
16728
|
};
|
|
16720
|
-
function
|
|
16721
|
-
return y(), e("svg",
|
|
16729
|
+
function ST(t, n) {
|
|
16730
|
+
return y(), e("svg", xT, [...n[0] ||= [r("rect", {
|
|
16722
16731
|
width: "7.33",
|
|
16723
16732
|
height: "7.67",
|
|
16724
16733
|
x: "6",
|
|
@@ -16735,15 +16744,15 @@ function bT(t, n) {
|
|
|
16735
16744
|
d: "M10 4.33v-.66c0-.74-.6-1.34-1.33-1.34h-5c-.74 0-1.34.6-1.34 1.34v5c0 .73.6 1.33 1.34 1.33h.66"
|
|
16736
16745
|
}, null, -1)]]);
|
|
16737
16746
|
}
|
|
16738
|
-
var
|
|
16747
|
+
var CT = { render: ST }, wT = {
|
|
16739
16748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16740
16749
|
width: "16",
|
|
16741
16750
|
height: "16",
|
|
16742
16751
|
fill: "none",
|
|
16743
16752
|
viewBox: "0 0 16 16"
|
|
16744
16753
|
};
|
|
16745
|
-
function
|
|
16746
|
-
return y(), e("svg",
|
|
16754
|
+
function TT(t, n) {
|
|
16755
|
+
return y(), e("svg", wT, [...n[0] ||= [r("rect", {
|
|
16747
16756
|
width: "13",
|
|
16748
16757
|
height: "8.5",
|
|
16749
16758
|
x: "1.5",
|
|
@@ -16759,15 +16768,15 @@ function CT(t, n) {
|
|
|
16759
16768
|
d: "M6 14.5h4M8 11v3.5"
|
|
16760
16769
|
}, null, -1)]]);
|
|
16761
16770
|
}
|
|
16762
|
-
var
|
|
16771
|
+
var ET = { render: TT }, DT = {
|
|
16763
16772
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16764
16773
|
width: "40",
|
|
16765
16774
|
height: "40",
|
|
16766
16775
|
fill: "none",
|
|
16767
16776
|
viewBox: "0 0 20 20"
|
|
16768
16777
|
};
|
|
16769
|
-
function
|
|
16770
|
-
return y(), e("svg",
|
|
16778
|
+
function OT(t, n) {
|
|
16779
|
+
return y(), e("svg", DT, [...n[0] ||= [r("g", {
|
|
16771
16780
|
stroke: "currentColor",
|
|
16772
16781
|
"stroke-linecap": "round",
|
|
16773
16782
|
"stroke-linejoin": "round",
|
|
@@ -16777,15 +16786,15 @@ function ET(t, n) {
|
|
|
16777
16786
|
d: "M11.046 5.442a76 76 0 0 1-.065 2.172c-.016.353-.234.651-.586.68a4.5 4.5 0 0 1-.721 0c-.387-.03-.64-.358-.657-.746a77 77 0 0 1-.062-2.107l-.301.265c-.294.257-.72.369-1.011.11a1 1 0 0 1-.118-.122 2 2 0 0 1-.14-.186c-.217-.326-.159-.75.094-1.05a8.5 8.5 0 0 1 1.65-1.487c.532-.37 1.231-.405 1.76-.033.513.359 1.093.865 1.635 1.52.25.3.309.724.091 1.05q-.064.096-.14.186a1 1 0 0 1-.118.121c-.291.26-.717.148-1.01-.11zM8.954 14.587a76 76 0 0 1 .065-2.173c.016-.352.234-.651.586-.68a4.5 4.5 0 0 1 .721 0c.387.03.64.358.657.746.021.48.047 1.207.062 2.107l.301-.264c.294-.258.72-.37 1.011-.11q.062.055.118.12.075.091.14.188c.217.325.159.75-.094 1.048a8.5 8.5 0 0 1-1.65 1.488c-.532.37-1.231.405-1.76.034a8.5 8.5 0 0 1-1.635-1.52c-.25-.301-.308-.725-.091-1.05a2 2 0 0 1 .14-.187q.056-.067.118-.121c.291-.26.717-.148 1.01.11zM3.342 10h13.316"
|
|
16778
16787
|
})], -1)]]);
|
|
16779
16788
|
}
|
|
16780
|
-
var
|
|
16789
|
+
var kT = { render: OT }, AT = {
|
|
16781
16790
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16782
16791
|
width: "16",
|
|
16783
16792
|
height: "16",
|
|
16784
16793
|
fill: "none",
|
|
16785
16794
|
viewBox: "0 0 16 16"
|
|
16786
16795
|
};
|
|
16787
|
-
function
|
|
16788
|
-
return y(), e("svg",
|
|
16796
|
+
function jT(t, n) {
|
|
16797
|
+
return y(), e("svg", AT, [...n[0] ||= [r("path", {
|
|
16789
16798
|
stroke: "currentColor",
|
|
16790
16799
|
"stroke-width": "1.2",
|
|
16791
16800
|
d: "M1.148 8.293a1.05 1.05 0 0 1 0-.581C1.983 4.806 4.735 2.673 8 2.673c3.264 0 6.014 2.13 6.851 5.034.055.19.055.391 0 .581-.835 2.906-3.587 5.039-6.852 5.039-3.264 0-6.014-2.13-6.851-5.034Z"
|
|
@@ -16797,15 +16806,15 @@ function kT(t, n) {
|
|
|
16797
16806
|
d: "M11.133 8a3.133 3.133 0 1 1-6.266 0 3.133 3.133 0 0 1 6.266 0"
|
|
16798
16807
|
}, null, -1)]]);
|
|
16799
16808
|
}
|
|
16800
|
-
var
|
|
16809
|
+
var MT = { render: jT }, NT = {
|
|
16801
16810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16802
16811
|
width: "40",
|
|
16803
16812
|
height: "40",
|
|
16804
16813
|
fill: "none",
|
|
16805
16814
|
viewBox: "0 0 40 40"
|
|
16806
16815
|
};
|
|
16807
|
-
function
|
|
16808
|
-
return y(), e("svg",
|
|
16816
|
+
function PT(t, n) {
|
|
16817
|
+
return y(), e("svg", NT, [...n[0] ||= [r("path", {
|
|
16809
16818
|
stroke: "currentColor",
|
|
16810
16819
|
"stroke-linecap": "round",
|
|
16811
16820
|
"stroke-linejoin": "round",
|
|
@@ -16813,15 +16822,15 @@ function MT(t, n) {
|
|
|
16813
16822
|
d: "M10 8v24M24 8v24M10 20h14M30 26l3-2v8"
|
|
16814
16823
|
}, null, -1)]]);
|
|
16815
16824
|
}
|
|
16816
|
-
var
|
|
16825
|
+
var FT = { render: PT }, IT = {
|
|
16817
16826
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16818
16827
|
width: "40",
|
|
16819
16828
|
height: "40",
|
|
16820
16829
|
fill: "none",
|
|
16821
16830
|
viewBox: "0 0 40 40"
|
|
16822
16831
|
};
|
|
16823
|
-
function
|
|
16824
|
-
return y(), e("svg",
|
|
16832
|
+
function LT(t, n) {
|
|
16833
|
+
return y(), e("svg", IT, [...n[0] ||= [r("rect", {
|
|
16825
16834
|
width: "28",
|
|
16826
16835
|
height: "22",
|
|
16827
16836
|
x: "6",
|
|
@@ -16838,15 +16847,15 @@ function FT(t, n) {
|
|
|
16838
16847
|
d: "m17 16-4 4 4 4M23 16l4 4-4 4"
|
|
16839
16848
|
}, null, -1)]]);
|
|
16840
16849
|
}
|
|
16841
|
-
var
|
|
16850
|
+
var RT = { render: LT }, zT = {
|
|
16842
16851
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16843
16852
|
width: "40",
|
|
16844
16853
|
height: "40",
|
|
16845
16854
|
fill: "none",
|
|
16846
16855
|
viewBox: "0 0 40 40"
|
|
16847
16856
|
};
|
|
16848
|
-
function
|
|
16849
|
-
return y(), e("svg",
|
|
16857
|
+
function BT(t, n) {
|
|
16858
|
+
return y(), e("svg", zT, [...n[0] ||= [
|
|
16850
16859
|
r("rect", {
|
|
16851
16860
|
width: "28",
|
|
16852
16861
|
height: "22",
|
|
@@ -16880,30 +16889,30 @@ function RT(t, n) {
|
|
|
16880
16889
|
}, null, -1)
|
|
16881
16890
|
]]);
|
|
16882
16891
|
}
|
|
16883
|
-
var
|
|
16892
|
+
var VT = { render: BT }, HT = {
|
|
16884
16893
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16885
16894
|
width: "16",
|
|
16886
16895
|
height: "16",
|
|
16887
16896
|
fill: "none",
|
|
16888
16897
|
viewBox: "0 0 16 16"
|
|
16889
16898
|
};
|
|
16890
|
-
function
|
|
16891
|
-
return y(), e("svg",
|
|
16899
|
+
function UT(t, n) {
|
|
16900
|
+
return y(), e("svg", HT, [...n[0] ||= [r("path", {
|
|
16892
16901
|
fill: "currentColor",
|
|
16893
16902
|
"fill-rule": "evenodd",
|
|
16894
16903
|
d: "M8 15.833A7.833 7.833 0 1 1 8 .167a7.833 7.833 0 0 1 0 15.666M6.333 4.5A1.333 1.333 0 1 1 9 4.5a1.333 1.333 0 0 1-2.667 0M8.96 7.038c-.023-.38-.266-.674-.645-.696A6 6 0 0 0 8 6.333H6.833q-.291 0-.493.013c-.396.022-.66.313-.67.71a11 11 0 0 0 0 .555c.01.396.274.688.67.71A9 9 0 0 0 7 8.332L7 8.667v2.01c-.423.008-.74.022-.97.036-.365.022-.658.247-.685.61a5 5 0 0 0 0 .686c.027.365.32.59.684.611.387.024 1.008.047 1.971.047s1.584-.023 1.97-.046c.365-.023.658-.247.685-.612a5 5 0 0 0 0-.685c-.027-.364-.32-.589-.684-.611A24 24 0 0 0 9 10.676v-2.01c0-.767-.019-1.286-.04-1.628",
|
|
16895
16904
|
"clip-rule": "evenodd"
|
|
16896
16905
|
}, null, -1)]]);
|
|
16897
16906
|
}
|
|
16898
|
-
var
|
|
16907
|
+
var WT = { render: UT }, GT = {
|
|
16899
16908
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16900
16909
|
width: "16",
|
|
16901
16910
|
height: "16",
|
|
16902
16911
|
fill: "none",
|
|
16903
16912
|
viewBox: "0 0 16 16"
|
|
16904
16913
|
};
|
|
16905
|
-
function
|
|
16906
|
-
return y(), e("svg",
|
|
16914
|
+
function KT(t, n) {
|
|
16915
|
+
return y(), e("svg", GT, [...n[0] ||= [r("path", {
|
|
16907
16916
|
stroke: "currentColor",
|
|
16908
16917
|
"stroke-linecap": "round",
|
|
16909
16918
|
"stroke-width": "1.2",
|
|
@@ -16916,15 +16925,15 @@ function WT(t, n) {
|
|
|
16916
16925
|
d: "m7 4.5 1-1c1.1-1.1 2.9-1.1 4 0s1.1 2.9 0 4l-1 1M9 11.5l-1 1c-1.1 1.1-2.9 1.1-4 0s-1.1-2.9 0-4l1-1"
|
|
16917
16926
|
}, null, -1)]]);
|
|
16918
16927
|
}
|
|
16919
|
-
var
|
|
16928
|
+
var qT = { render: KT }, JT = {
|
|
16920
16929
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16921
16930
|
width: "16",
|
|
16922
16931
|
height: "16",
|
|
16923
16932
|
fill: "none",
|
|
16924
16933
|
viewBox: "0 0 16 16"
|
|
16925
16934
|
};
|
|
16926
|
-
function
|
|
16927
|
-
return y(), e("svg",
|
|
16935
|
+
function YT(t, n) {
|
|
16936
|
+
return y(), e("svg", JT, [...n[0] ||= [
|
|
16928
16937
|
r("rect", {
|
|
16929
16938
|
width: "9.33",
|
|
16930
16939
|
height: "7",
|
|
@@ -16950,15 +16959,15 @@ function qT(t, n) {
|
|
|
16950
16959
|
}, null, -1)
|
|
16951
16960
|
]]);
|
|
16952
16961
|
}
|
|
16953
|
-
var
|
|
16962
|
+
var XT = { render: YT }, ZT = {
|
|
16954
16963
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16955
16964
|
width: "16",
|
|
16956
16965
|
height: "16",
|
|
16957
16966
|
fill: "none",
|
|
16958
16967
|
viewBox: "0 0 16 16"
|
|
16959
16968
|
};
|
|
16960
|
-
function
|
|
16961
|
-
return y(), e("svg",
|
|
16969
|
+
function QT(t, n) {
|
|
16970
|
+
return y(), e("svg", ZT, [...n[0] ||= [r("rect", {
|
|
16962
16971
|
width: "7",
|
|
16963
16972
|
height: "13",
|
|
16964
16973
|
x: "4.5",
|
|
@@ -16974,15 +16983,15 @@ function XT(t, n) {
|
|
|
16974
16983
|
d: "M6.5 12.5h3"
|
|
16975
16984
|
}, null, -1)]]);
|
|
16976
16985
|
}
|
|
16977
|
-
var
|
|
16986
|
+
var $T = { render: QT }, eE = {
|
|
16978
16987
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16979
16988
|
width: "40",
|
|
16980
16989
|
height: "40",
|
|
16981
16990
|
fill: "none",
|
|
16982
16991
|
viewBox: "0 0 40 40"
|
|
16983
16992
|
};
|
|
16984
|
-
function
|
|
16985
|
-
return y(), e("svg",
|
|
16993
|
+
function tE(t, n) {
|
|
16994
|
+
return y(), e("svg", eE, [...n[0] ||= [r("path", {
|
|
16986
16995
|
stroke: "currentColor",
|
|
16987
16996
|
"stroke-linecap": "round",
|
|
16988
16997
|
"stroke-linejoin": "round",
|
|
@@ -16990,15 +16999,15 @@ function $T(t, n) {
|
|
|
16990
16999
|
d: "M35 10H5M35 20H5M20 30H5"
|
|
16991
17000
|
}, null, -1)]]);
|
|
16992
17001
|
}
|
|
16993
|
-
var
|
|
17002
|
+
var nE = { render: tE }, rE = {
|
|
16994
17003
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16995
17004
|
width: "18",
|
|
16996
17005
|
height: "18",
|
|
16997
17006
|
fill: "none",
|
|
16998
17007
|
viewBox: "0 0 18.092 18.419"
|
|
16999
17008
|
};
|
|
17000
|
-
function
|
|
17001
|
-
return y(), e("svg",
|
|
17009
|
+
function iE(t, n) {
|
|
17010
|
+
return y(), e("svg", rE, [...n[0] ||= [
|
|
17002
17011
|
r("path", {
|
|
17003
17012
|
stroke: "currentColor",
|
|
17004
17013
|
"stroke-linejoin": "round",
|
|
@@ -17020,15 +17029,15 @@ function nE(t, n) {
|
|
|
17020
17029
|
}, null, -1)
|
|
17021
17030
|
]]);
|
|
17022
17031
|
}
|
|
17023
|
-
var
|
|
17032
|
+
var aE = { render: iE }, oE = {
|
|
17024
17033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17025
17034
|
width: "40",
|
|
17026
17035
|
height: "40",
|
|
17027
17036
|
fill: "none",
|
|
17028
17037
|
viewBox: "0 0 40 40"
|
|
17029
17038
|
};
|
|
17030
|
-
function
|
|
17031
|
-
return y(), e("svg",
|
|
17039
|
+
function sE(t, n) {
|
|
17040
|
+
return y(), e("svg", oE, [...n[0] ||= [r("path", {
|
|
17032
17041
|
stroke: "currentColor",
|
|
17033
17042
|
"stroke-linecap": "round",
|
|
17034
17043
|
"stroke-width": "1.2",
|
|
@@ -17041,15 +17050,15 @@ function aE(t, n) {
|
|
|
17041
17050
|
d: "M16.5 17.5 20 14l3.5 3.5M16.5 22.5 20 26l3.5-3.5"
|
|
17042
17051
|
}, null, -1)]]);
|
|
17043
17052
|
}
|
|
17044
|
-
var
|
|
17053
|
+
var cE = { render: sE }, lE = {
|
|
17045
17054
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17046
17055
|
width: "16",
|
|
17047
17056
|
height: "16",
|
|
17048
17057
|
fill: "none",
|
|
17049
17058
|
viewBox: "0 0 16 16"
|
|
17050
17059
|
};
|
|
17051
|
-
function
|
|
17052
|
-
return y(), e("svg",
|
|
17060
|
+
function uE(t, n) {
|
|
17061
|
+
return y(), e("svg", lE, [...n[0] ||= [r("path", {
|
|
17053
17062
|
stroke: "currentColor",
|
|
17054
17063
|
"stroke-linecap": "round",
|
|
17055
17064
|
"stroke-linejoin": "round",
|
|
@@ -17057,15 +17066,15 @@ function cE(t, n) {
|
|
|
17057
17066
|
d: "m6.5 2.5 1.1 2.9 2.9 1.1-2.9 1.1-1.1 2.9-1.1-2.9-2.9-1.1 2.9-1.1zM11.5 9l.6 1.9 1.9.6-1.9.6-.6 1.9-.6-1.9-1.9-.6 1.9-.6z"
|
|
17058
17067
|
}, null, -1)]]);
|
|
17059
17068
|
}
|
|
17060
|
-
var
|
|
17069
|
+
var dE = { render: uE }, fE = {
|
|
17061
17070
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17062
17071
|
width: "16",
|
|
17063
17072
|
height: "16",
|
|
17064
17073
|
fill: "none",
|
|
17065
17074
|
viewBox: "0 0 16 16"
|
|
17066
17075
|
};
|
|
17067
|
-
function
|
|
17068
|
-
return y(), e("svg",
|
|
17076
|
+
function pE(t, n) {
|
|
17077
|
+
return y(), e("svg", fE, [...n[0] ||= [
|
|
17069
17078
|
r("path", {
|
|
17070
17079
|
stroke: "currentColor",
|
|
17071
17080
|
"stroke-linecap": "round",
|
|
@@ -17093,15 +17102,15 @@ function dE(t, n) {
|
|
|
17093
17102
|
}, null, -1)
|
|
17094
17103
|
]]);
|
|
17095
17104
|
}
|
|
17096
|
-
var
|
|
17105
|
+
var mE = { render: pE }, hE = {
|
|
17097
17106
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17098
17107
|
width: "20",
|
|
17099
17108
|
height: "20",
|
|
17100
17109
|
fill: "none",
|
|
17101
17110
|
viewBox: "0 0 20 20"
|
|
17102
17111
|
};
|
|
17103
|
-
function
|
|
17104
|
-
return y(), e("svg",
|
|
17112
|
+
function gE(t, n) {
|
|
17113
|
+
return y(), e("svg", hE, [...n[0] ||= [
|
|
17105
17114
|
r("path", {
|
|
17106
17115
|
stroke: "currentColor",
|
|
17107
17116
|
"stroke-linejoin": "round",
|
|
@@ -17122,7 +17131,7 @@ function mE(t, n) {
|
|
|
17122
17131
|
}, null, -1)
|
|
17123
17132
|
]]);
|
|
17124
17133
|
}
|
|
17125
|
-
var
|
|
17134
|
+
var _E = { render: gE }, vE = /* @__PURE__ */ p({
|
|
17126
17135
|
__name: "AppIcon",
|
|
17127
17136
|
props: {
|
|
17128
17137
|
name: { type: String },
|
|
@@ -17133,30 +17142,30 @@ var hE = { render: mE }, gE = /* @__PURE__ */ p({
|
|
|
17133
17142
|
},
|
|
17134
17143
|
setup(e) {
|
|
17135
17144
|
let t = e, n = {
|
|
17136
|
-
pencil:
|
|
17137
|
-
eye:
|
|
17138
|
-
info:
|
|
17139
|
-
board:
|
|
17140
|
-
braces:
|
|
17141
|
-
button:
|
|
17142
|
-
trash:
|
|
17143
|
-
warning:
|
|
17144
|
-
close:
|
|
17145
|
-
copy:
|
|
17146
|
-
link:
|
|
17147
|
-
columns:
|
|
17148
|
-
paragraph:
|
|
17149
|
-
image:
|
|
17150
|
-
mobile:
|
|
17151
|
-
desktop:
|
|
17152
|
-
spacer:
|
|
17153
|
-
sparkles:
|
|
17154
|
-
divider:
|
|
17155
|
-
html:
|
|
17156
|
-
"chevron-down":
|
|
17157
|
-
bookmark:
|
|
17158
|
-
heading:
|
|
17159
|
-
lock:
|
|
17145
|
+
pencil: aE,
|
|
17146
|
+
eye: MT,
|
|
17147
|
+
info: WT,
|
|
17148
|
+
board: nT,
|
|
17149
|
+
braces: cT,
|
|
17150
|
+
button: dT,
|
|
17151
|
+
trash: mE,
|
|
17152
|
+
warning: _E,
|
|
17153
|
+
close: _T,
|
|
17154
|
+
copy: CT,
|
|
17155
|
+
link: qT,
|
|
17156
|
+
columns: bT,
|
|
17157
|
+
paragraph: nE,
|
|
17158
|
+
image: VT,
|
|
17159
|
+
mobile: $T,
|
|
17160
|
+
desktop: ET,
|
|
17161
|
+
spacer: cE,
|
|
17162
|
+
sparkles: dE,
|
|
17163
|
+
divider: kT,
|
|
17164
|
+
html: RT,
|
|
17165
|
+
"chevron-down": mT,
|
|
17166
|
+
bookmark: aT,
|
|
17167
|
+
heading: FT,
|
|
17168
|
+
lock: XT
|
|
17160
17169
|
}, r = i(() => n[t.name]), a = i(() => typeof t.size == "number" ? `${t.size}px` : t.size);
|
|
17161
17170
|
return (e, t) => (y(), f(c(r.value), {
|
|
17162
17171
|
class: "app-icon",
|
|
@@ -17169,8 +17178,8 @@ var hE = { render: mE }, gE = /* @__PURE__ */ p({
|
|
|
17169
17178
|
"aria-hidden": "true"
|
|
17170
17179
|
}, null, 8, ["style"]));
|
|
17171
17180
|
}
|
|
17172
|
-
}),
|
|
17173
|
-
function
|
|
17181
|
+
}), yE = Symbol("errorDialog");
|
|
17182
|
+
function bE() {
|
|
17174
17183
|
let e = fe(null), t = {
|
|
17175
17184
|
message: i(() => e.value),
|
|
17176
17185
|
show: (t) => {
|
|
@@ -17180,26 +17189,26 @@ function vE() {
|
|
|
17180
17189
|
e.value = null;
|
|
17181
17190
|
}
|
|
17182
17191
|
};
|
|
17183
|
-
return o(
|
|
17192
|
+
return o(yE, t), t;
|
|
17184
17193
|
}
|
|
17185
|
-
function
|
|
17186
|
-
return u(
|
|
17194
|
+
function xE() {
|
|
17195
|
+
return u(yE);
|
|
17187
17196
|
}
|
|
17188
17197
|
//#endregion
|
|
17189
17198
|
//#region src/i18n/useAppI18n.ts
|
|
17190
|
-
function
|
|
17199
|
+
function SE() {
|
|
17191
17200
|
return Hr({ useScope: "global" });
|
|
17192
17201
|
}
|
|
17193
17202
|
//#endregion
|
|
17194
17203
|
//#region src/providerKeys.ts
|
|
17195
|
-
var
|
|
17204
|
+
var CE = Symbol("editorConfig"), wE = Symbol("mergeTags"), TE = Symbol("brand"), EE = Symbol("blockStyles"), DE = Symbol("permission"), OE = Symbol("savedBlocks"), kE = Symbol("blockPlugins"), AE = Symbol("imageSearch");
|
|
17196
17205
|
//#endregion
|
|
17197
17206
|
//#region src/popoverPlacement.ts
|
|
17198
|
-
function
|
|
17207
|
+
function jE(e, t, n) {
|
|
17199
17208
|
return Math.max(n.top + t, Math.min(e, n.bottom));
|
|
17200
17209
|
}
|
|
17201
|
-
var
|
|
17202
|
-
function
|
|
17210
|
+
var ME = 8;
|
|
17211
|
+
function NE(e, t, n = ME) {
|
|
17203
17212
|
let r = t - e.bottom - n, i = e.top - n;
|
|
17204
17213
|
return r >= i ? {
|
|
17205
17214
|
side: "below",
|
|
@@ -17213,13 +17222,13 @@ function jE(e, t, n = AE) {
|
|
|
17213
17222
|
}
|
|
17214
17223
|
//#endregion
|
|
17215
17224
|
//#region src/components/CheckboxOption.vue?vue&type=script&setup=true&lang.ts
|
|
17216
|
-
var
|
|
17225
|
+
var PE = { class: "checkbox-option" }, FE = {
|
|
17217
17226
|
"aria-hidden": "true",
|
|
17218
17227
|
class: "box"
|
|
17219
|
-
},
|
|
17228
|
+
}, IE = {
|
|
17220
17229
|
key: 0,
|
|
17221
17230
|
class: "mark"
|
|
17222
|
-
},
|
|
17231
|
+
}, LE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17223
17232
|
__name: "CheckboxOption",
|
|
17224
17233
|
props: /*@__PURE__*/ h({ label: { type: String } }, {
|
|
17225
17234
|
modelValue: {
|
|
@@ -17231,20 +17240,20 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17231
17240
|
emits: ["update:modelValue"],
|
|
17232
17241
|
setup(t) {
|
|
17233
17242
|
let n = b(t, "modelValue");
|
|
17234
|
-
return (i, a) => (y(), e("label",
|
|
17243
|
+
return (i, a) => (y(), e("label", PE, [
|
|
17235
17244
|
de(r("input", {
|
|
17236
17245
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
17237
17246
|
class: "checkbox-input",
|
|
17238
17247
|
type: "checkbox"
|
|
17239
17248
|
}, null, 512), [[C, n.value]]),
|
|
17240
|
-
r("span",
|
|
17249
|
+
r("span", FE, [n.value ? (y(), e("span", IE)) : ie("", !0)]),
|
|
17241
17250
|
re(" " + w(t.label), 1)
|
|
17242
17251
|
]));
|
|
17243
17252
|
}
|
|
17244
|
-
}), [["styles", [".checkbox-option[data-v-8716b30b]{color:var(--bygga-color-text-muted);cursor:pointer;align-items:center;gap:8px;font-size:13px;line-height:20px;display:flex;position:relative}.checkbox-option[data-v-8716b30b]:hover{color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:checked){color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:focus-visible){outline:2px solid var(--bygga-color-accent);outline-offset:2px}.checkbox-input[data-v-8716b30b]{cursor:pointer;opacity:0;width:100%;height:100%;margin:0;position:absolute;inset:0}.box[data-v-8716b30b]{background:var(--bygga-color-surface);border:2px solid var(--bygga-color-control-border,var(--bygga-color-border));box-sizing:border-box;pointer-events:none;border-radius:4px;flex-shrink:0;width:16px;height:16px;position:relative}.box[data-v-8716b30b]:has(.mark){border-color:var(--bygga-color-success)}.mark[data-v-8716b30b]{background:var(--bygga-color-selected,var(--bygga-color-success));forced-color-adjust:none;border-radius:1px;width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"]], ["__scopeId", "data-v-8716b30b"]]),
|
|
17253
|
+
}), [["styles", [".checkbox-option[data-v-8716b30b]{color:var(--bygga-color-text-muted);cursor:pointer;align-items:center;gap:8px;font-size:13px;line-height:20px;display:flex;position:relative}.checkbox-option[data-v-8716b30b]:hover{color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:checked){color:var(--bygga-color-text)}.checkbox-option[data-v-8716b30b]:has(.checkbox-input:focus-visible){outline:2px solid var(--bygga-color-accent);outline-offset:2px}.checkbox-input[data-v-8716b30b]{cursor:pointer;opacity:0;width:100%;height:100%;margin:0;position:absolute;inset:0}.box[data-v-8716b30b]{background:var(--bygga-color-surface);border:2px solid var(--bygga-color-control-border,var(--bygga-color-border));box-sizing:border-box;pointer-events:none;border-radius:4px;flex-shrink:0;width:16px;height:16px;position:relative}.box[data-v-8716b30b]:has(.mark){border-color:var(--bygga-color-success)}.mark[data-v-8716b30b]{background:var(--bygga-color-selected,var(--bygga-color-success));forced-color-adjust:none;border-radius:1px;width:8px;height:8px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}"]], ["__scopeId", "data-v-8716b30b"]]), RE = ["for"], zE = { class: "field-shell" }, BE = {
|
|
17245
17254
|
key: 0,
|
|
17246
17255
|
class: "field-trailing"
|
|
17247
|
-
},
|
|
17256
|
+
}, VE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17248
17257
|
__name: "FieldShell",
|
|
17249
17258
|
props: {
|
|
17250
17259
|
disabled: {
|
|
@@ -17265,9 +17274,9 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17265
17274
|
key: 0,
|
|
17266
17275
|
class: "field-label",
|
|
17267
17276
|
for: t.labelFor
|
|
17268
|
-
}, w(t.label), 9,
|
|
17277
|
+
}, w(t.label), 9, RE)) : ie("", !0), r("div", zE, [ce(n.$slots, "default", {}, void 0, !0), n.$slots.trailing ? (y(), e("div", BE, [ce(n.$slots, "trailing", {}, void 0, !0)])) : ie("", !0)])], 2));
|
|
17269
17278
|
}
|
|
17270
|
-
}), [["styles", [".field-wrap[data-v-01af217c]{width:100%;position:relative}.field-shell[data-v-01af217c]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-control-border,var(--bygga-color-border));border-radius:var(--bygga-radius-sm);box-sizing:border-box;color:var(--bygga-color-text);align-items:center;gap:8px;width:100%;min-width:0;min-height:40px;padding:0 12px;font-size:16px;line-height:20px;display:flex}.field-label[data-v-01af217c]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;transition:color .15s;position:absolute;top:0;left:12px;transform:translateY(-50%)}.field-wrap:has(:is(input,textarea,select):focus-visible) .field-label[data-v-01af217c]{color:var(--bygga-color-accent)}.field-wrap.is-disabled .field-label[data-v-01af217c]{opacity:.55}.field-shell[data-v-01af217c]:has(:is(input,textarea,select):focus-visible){outline:2px solid var(--bygga-color-ring,var(--bygga-color-accent));outline-offset:2px}.field-shell[data-v-01af217c]:has(:is(input,textarea)[aria-invalid=true]){border-color:var(--bygga-color-danger,var(--bygga-color-control-border,var(--bygga-color-border)))}.field-wrap.is-disabled .field-shell[data-v-01af217c]{cursor:not-allowed;opacity:.55}.field-trailing[data-v-01af217c]{color:var(--bygga-color-text-muted);flex-shrink:0;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.field-label[data-v-01af217c]{transition:none}}"]], ["__scopeId", "data-v-01af217c"]]),
|
|
17279
|
+
}), [["styles", [".field-wrap[data-v-01af217c]{width:100%;position:relative}.field-shell[data-v-01af217c]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-control-border,var(--bygga-color-border));border-radius:var(--bygga-radius-sm);box-sizing:border-box;color:var(--bygga-color-text);align-items:center;gap:8px;width:100%;min-width:0;min-height:40px;padding:0 12px;font-size:16px;line-height:20px;display:flex}.field-label[data-v-01af217c]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;transition:color .15s;position:absolute;top:0;left:12px;transform:translateY(-50%)}.field-wrap:has(:is(input,textarea,select):focus-visible) .field-label[data-v-01af217c]{color:var(--bygga-color-accent)}.field-wrap.is-disabled .field-label[data-v-01af217c]{opacity:.55}.field-shell[data-v-01af217c]:has(:is(input,textarea,select):focus-visible){outline:2px solid var(--bygga-color-ring,var(--bygga-color-accent));outline-offset:2px}.field-shell[data-v-01af217c]:has(:is(input,textarea)[aria-invalid=true]){border-color:var(--bygga-color-danger,var(--bygga-color-control-border,var(--bygga-color-border)))}.field-wrap.is-disabled .field-shell[data-v-01af217c]{cursor:not-allowed;opacity:.55}.field-trailing[data-v-01af217c]{color:var(--bygga-color-text-muted);flex-shrink:0;align-items:center;gap:8px;display:flex}@media (prefers-reduced-motion:reduce){.field-label[data-v-01af217c]{transition:none}}"]], ["__scopeId", "data-v-01af217c"]]), HE = ["id", "disabled"], UE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17271
17280
|
inheritAttrs: !1,
|
|
17272
17281
|
__name: "TextInput",
|
|
17273
17282
|
props: /*@__PURE__*/ h({
|
|
@@ -17289,7 +17298,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17289
17298
|
return t({
|
|
17290
17299
|
focus: () => o.value?.focus(),
|
|
17291
17300
|
select: () => o.value?.select()
|
|
17292
|
-
}), (t, s) => (y(), f(
|
|
17301
|
+
}), (t, s) => (y(), f(VE, {
|
|
17293
17302
|
disabled: e.disabled,
|
|
17294
17303
|
label: i.label,
|
|
17295
17304
|
"label-for": se(a)
|
|
@@ -17302,7 +17311,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17302
17311
|
class: "field-input",
|
|
17303
17312
|
type: "text",
|
|
17304
17313
|
disabled: e.disabled
|
|
17305
|
-
}, t.$attrs), null, 16,
|
|
17314
|
+
}, t.$attrs), null, 16, HE), [[me, n.value]])]),
|
|
17306
17315
|
_: 1
|
|
17307
17316
|
}, 8, [
|
|
17308
17317
|
"disabled",
|
|
@@ -17310,27 +17319,27 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17310
17319
|
"label-for"
|
|
17311
17320
|
]));
|
|
17312
17321
|
}
|
|
17313
|
-
}), [["styles", [".field-input[data-v-3c7d74c6]{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:1 1 0;min-width:0;padding:0}.field-input[data-v-3c7d74c6]::placeholder{color:var(--bygga-color-text-muted);opacity:1}"]], ["__scopeId", "data-v-3c7d74c6"]]),
|
|
17322
|
+
}), [["styles", [".field-input[data-v-3c7d74c6]{color:inherit;font:inherit;background:0 0;border:none;outline:none;flex:1 1 0;min-width:0;padding:0}.field-input[data-v-3c7d74c6]::placeholder{color:var(--bygga-color-text-muted);opacity:1}"]], ["__scopeId", "data-v-3c7d74c6"]]), WE = {
|
|
17314
17323
|
key: 0,
|
|
17315
17324
|
class: "picker-label"
|
|
17316
|
-
},
|
|
17325
|
+
}, GE = [
|
|
17317
17326
|
"popovertarget",
|
|
17318
17327
|
"aria-expanded",
|
|
17319
17328
|
"aria-label"
|
|
17320
|
-
],
|
|
17329
|
+
], KE = {
|
|
17321
17330
|
key: 0,
|
|
17322
17331
|
class: "value"
|
|
17323
|
-
},
|
|
17332
|
+
}, qE = ["id", "aria-label"], JE = ["id"], YE = ["aria-label", "aria-labelledby"], XE = [
|
|
17324
17333
|
"aria-checked",
|
|
17325
17334
|
"aria-label",
|
|
17326
17335
|
"tabindex",
|
|
17327
17336
|
"onClick",
|
|
17328
17337
|
"onKeydown"
|
|
17329
|
-
],
|
|
17338
|
+
], ZE = [
|
|
17330
17339
|
"aria-label",
|
|
17331
17340
|
"aria-valuenow",
|
|
17332
17341
|
"aria-valuetext"
|
|
17333
|
-
],
|
|
17342
|
+
], QE = ["aria-label", "aria-valuenow"], $E = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17334
17343
|
__name: "ColorPicker",
|
|
17335
17344
|
props: /*@__PURE__*/ h({
|
|
17336
17345
|
label: { type: String },
|
|
@@ -17352,7 +17361,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17352
17361
|
}),
|
|
17353
17362
|
emits: ["update:modelValue"],
|
|
17354
17363
|
setup(t) {
|
|
17355
|
-
let a = b(t, "modelValue"), { t: o } =
|
|
17364
|
+
let a = b(t, "modelValue"), { t: o } = SE(), s = u(TE, void 0), c = i(() => {
|
|
17356
17365
|
let e = s?.value;
|
|
17357
17366
|
return [{
|
|
17358
17367
|
key: "global",
|
|
@@ -17563,7 +17572,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17563
17572
|
if (e.newState !== "open") return;
|
|
17564
17573
|
let t = re.value, n = ae.value;
|
|
17565
17574
|
if (!(t && n)) return;
|
|
17566
|
-
let r = t.getBoundingClientRect(), i =
|
|
17575
|
+
let r = t.getBoundingClientRect(), i = NE(r, window.innerHeight);
|
|
17567
17576
|
n.style.left = `${r.left}px`, n.style.top = i.side === "below" ? `${i.offset}px` : "auto", n.style.bottom = i.side === "above" ? `${i.offset}px` : "auto", n.style.maxHeight = `${i.maxHeight}px`;
|
|
17568
17577
|
}
|
|
17569
17578
|
function Le(e) {
|
|
@@ -17588,7 +17597,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17588
17597
|
t instanceof Node && ae.value?.contains(t) || ae.value?.matches(":popover-open") && ae.value.hidePopover();
|
|
17589
17598
|
}
|
|
17590
17599
|
return v(O), (i, a) => (y(), e("div", { class: oe(["color-picker", { "has-label": t.label && !t.compact }]) }, [
|
|
17591
|
-
t.label && !t.compact ? (y(), e("span",
|
|
17600
|
+
t.label && !t.compact ? (y(), e("span", WE, w(t.label), 1)) : ie("", !0),
|
|
17592
17601
|
r("button", {
|
|
17593
17602
|
ref_key: "trigger",
|
|
17594
17603
|
ref: re,
|
|
@@ -17602,7 +17611,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17602
17611
|
}, [r("span", {
|
|
17603
17612
|
class: oe(["swatch", { checker: ue.value }]),
|
|
17604
17613
|
style: te(ue.value ? {} : { backgroundColor: de.value })
|
|
17605
|
-
}, null, 6), t.compact ? ie("", !0) : (y(), e("span",
|
|
17614
|
+
}, null, 6), t.compact ? ie("", !0) : (y(), e("span", KE, w(pe.value), 1))], 42, GE),
|
|
17606
17615
|
r("div", {
|
|
17607
17616
|
id: se(g),
|
|
17608
17617
|
ref_key: "popover",
|
|
@@ -17623,7 +17632,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17623
17632
|
key: 0,
|
|
17624
17633
|
id: `${se(g)}-${t.key}`,
|
|
17625
17634
|
class: "palette-heading"
|
|
17626
|
-
}, w(t.label), 9,
|
|
17635
|
+
}, w(t.label), 9, JE)) : ie("", !0), r("div", {
|
|
17627
17636
|
class: "palette",
|
|
17628
17637
|
role: "radiogroup",
|
|
17629
17638
|
"aria-label": p.value ? void 0 : t.label,
|
|
@@ -17641,7 +17650,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17641
17650
|
style: te({ backgroundColor: t }),
|
|
17642
17651
|
onClick: (e) => Ae(t),
|
|
17643
17652
|
onKeydown: (e) => je(e, i, n)
|
|
17644
|
-
}, null, 46,
|
|
17653
|
+
}, null, 46, XE))), 128))], 8, YE)]))), 128)),
|
|
17645
17654
|
h.value ? ie("", !0) : (y(), e(n, { key: 0 }, [r("div", {
|
|
17646
17655
|
ref_key: "svArea",
|
|
17647
17656
|
ref: ce,
|
|
@@ -17663,7 +17672,7 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17663
17672
|
top: `${(1 - E.value) * 100}%`,
|
|
17664
17673
|
backgroundColor: _e.value
|
|
17665
17674
|
})
|
|
17666
|
-
}, null, 4)], 44,
|
|
17675
|
+
}, null, 4)], 44, ZE), r("div", {
|
|
17667
17676
|
class: "hue-track",
|
|
17668
17677
|
role: "slider",
|
|
17669
17678
|
tabindex: "0",
|
|
@@ -17676,8 +17685,8 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17676
17685
|
}, [r("div", {
|
|
17677
17686
|
class: "hue-thumb",
|
|
17678
17687
|
style: te({ left: `${C.value / 360 * 100}%` })
|
|
17679
|
-
}, null, 4)], 40,
|
|
17680
|
-
h.value ? ie("", !0) : (y(), f(
|
|
17688
|
+
}, null, 4)], 40, QE)], 64)),
|
|
17689
|
+
h.value ? ie("", !0) : (y(), f(UE, {
|
|
17681
17690
|
key: 1,
|
|
17682
17691
|
modelValue: D.value,
|
|
17683
17692
|
"onUpdate:modelValue": a[0] ||= (e) => D.value = e,
|
|
@@ -17693,17 +17702,17 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17693
17702
|
"aria-label",
|
|
17694
17703
|
"aria-invalid"
|
|
17695
17704
|
])),
|
|
17696
|
-
t.allowTransparent ? (y(), f(
|
|
17705
|
+
t.allowTransparent ? (y(), f(LE, {
|
|
17697
17706
|
key: 2,
|
|
17698
17707
|
class: "transparent-toggle",
|
|
17699
17708
|
label: se(o)("colorPicker.transparent"),
|
|
17700
17709
|
"model-value": ue.value,
|
|
17701
17710
|
"onUpdate:modelValue": Fe
|
|
17702
17711
|
}, null, 8, ["label", "model-value"])) : ie("", !0)
|
|
17703
|
-
], 40,
|
|
17712
|
+
], 40, qE)
|
|
17704
17713
|
], 2));
|
|
17705
17714
|
}
|
|
17706
|
-
}), [["styles", [".color-picker[data-v-268fdbed]{flex-direction:column;gap:.5em;display:flex}.picker-label[data-v-268fdbed]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;position:absolute;top:0;left:12px;transform:translateY(-50%)}.color-picker.has-label[data-v-268fdbed]{position:relative}.color-picker.has-label:has(.trigger:focus-visible) .picker-label[data-v-268fdbed]{color:var(--bygga-color-accent)}.trigger[data-v-268fdbed]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);box-sizing:border-box;cursor:pointer;align-items:center;gap:8px;min-height:40px;padding:0 12px;display:inline-flex}.trigger[data-v-268fdbed]:hover,.trigger[data-v-268fdbed]:focus-visible{border-color:var(--bygga-color-accent)}.trigger.compact[data-v-268fdbed]{border-color:#0000;border-radius:4px;justify-content:center;width:30px;height:30px;min-height:0;padding:0}.trigger.compact .swatch[data-v-268fdbed]{border-color:var(--bygga-color-border-subtle)}.trigger.compact[data-v-268fdbed]:hover,.trigger.compact[data-v-268fdbed]:focus-visible{background:color-mix(in srgb, var(--bygga-color-text) 10%, transparent);border-color:#0000}.swatch[data-v-268fdbed]{border:1px solid var(--bygga-color-border);border-radius:4px;flex-shrink:0;width:20px;height:20px}.value[data-v-268fdbed]{color:var(--bygga-color-text-muted);font-variant-numeric:tabular-nums}.checker[data-v-268fdbed]{background-color:#fff;background-image:linear-gradient(45deg,#ccc 25%,#0000 25%),linear-gradient(-45deg,#ccc 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ccc 75%),linear-gradient(-45deg,#0000 75%,#ccc 75%);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.popover[data-v-268fdbed]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-md);box-shadow:var(--bygga-shadow-card);box-sizing:border-box;flex-direction:column;gap:12px;width:224px;max-height:calc(100vh - 16px);margin:0;padding:12px;position:fixed;inset:auto;overflow-y:auto}.popover[data-v-268fdbed]:popover-open{display:flex}.sv-area[data-v-268fdbed]{border-radius:var(--bygga-radius-sm);cursor:crosshair;touch-action:none;background-image:linear-gradient(#0000,#000),linear-gradient(90deg,#fff,#fff0);width:100%;height:160px;position:relative}.sv-area[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.sv-thumb[data-v-268fdbed]{box-sizing:border-box;pointer-events:none;border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin:-7px 0 0 -7px;position:absolute;box-shadow:0 0 0 1px #0000004d}.hue-track[data-v-268fdbed]{cursor:pointer;touch-action:none;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:999px;width:100%;height:12px;position:relative}.hue-track[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.hue-thumb[data-v-268fdbed]{border:1px solid var(--bygga-color-border);box-shadow:var(--bygga-shadow-raised);box-sizing:border-box;pointer-events:none;background:#fff;border-radius:50%;width:16px;height:16px;margin-left:-8px;position:absolute;top:50%;transform:translateY(-50%)}.palette-section[data-v-268fdbed]{flex-direction:column;gap:6px;display:flex}.palette-heading[data-v-268fdbed]{color:var(--bygga-color-text-muted);font-size:12px;font-weight:500;line-height:16px}.palette[data-v-268fdbed]{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:8px;display:grid}.palette-swatch[data-v-268fdbed]{aspect-ratio:1;border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);cursor:pointer;width:100%;padding:0}.palette-swatch[data-v-268fdbed]:hover,.palette-swatch[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.palette-swatch[aria-checked=true][data-v-268fdbed]{box-shadow:inset 0 0 0 2px var(--bygga-color-surface), inset 0 0 0 4px var(--bygga-color-accent,currentcolor)}.palette-swatch.off-brand[data-v-268fdbed]{border-style:dashed;border-width:2px}.transparent-toggle[data-v-268fdbed]{align-self:flex-start}.swatch[data-v-268fdbed],.checker[data-v-268fdbed],.sv-area[data-v-268fdbed],.sv-thumb[data-v-268fdbed],.hue-track[data-v-268fdbed],.hue-thumb[data-v-268fdbed],.palette-swatch[data-v-268fdbed]{forced-color-adjust:none}"]], ["__scopeId", "data-v-268fdbed"]]),
|
|
17715
|
+
}), [["styles", [".color-picker[data-v-268fdbed]{flex-direction:column;gap:.5em;display:flex}.picker-label[data-v-268fdbed]{background:var(--bygga-color-surface);color:var(--bygga-color-text-muted);pointer-events:none;z-index:1;padding:0 4px;font-size:12px;line-height:1;position:absolute;top:0;left:12px;transform:translateY(-50%)}.color-picker.has-label[data-v-268fdbed]{position:relative}.color-picker.has-label:has(.trigger:focus-visible) .picker-label[data-v-268fdbed]{color:var(--bygga-color-accent)}.trigger[data-v-268fdbed]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);box-sizing:border-box;cursor:pointer;align-items:center;gap:8px;min-height:40px;padding:0 12px;display:inline-flex}.trigger[data-v-268fdbed]:hover,.trigger[data-v-268fdbed]:focus-visible{border-color:var(--bygga-color-accent)}.trigger.compact[data-v-268fdbed]{border-color:#0000;border-radius:4px;justify-content:center;width:30px;height:30px;min-height:0;padding:0}.trigger.compact .swatch[data-v-268fdbed]{border-color:var(--bygga-color-border-subtle)}.trigger.compact[data-v-268fdbed]:hover,.trigger.compact[data-v-268fdbed]:focus-visible{background:color-mix(in srgb, var(--bygga-color-text) 10%, transparent);border-color:#0000}.swatch[data-v-268fdbed]{border:1px solid var(--bygga-color-border);border-radius:4px;flex-shrink:0;width:20px;height:20px}.value[data-v-268fdbed]{color:var(--bygga-color-text-muted);font-variant-numeric:tabular-nums}.checker[data-v-268fdbed]{background-color:#fff;background-image:linear-gradient(45deg,#ccc 25%,#0000 25%),linear-gradient(-45deg,#ccc 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#ccc 75%),linear-gradient(-45deg,#0000 75%,#ccc 75%);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px}.popover[data-v-268fdbed]{background:var(--bygga-color-surface);border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-md);box-shadow:var(--bygga-shadow-card);box-sizing:border-box;flex-direction:column;gap:12px;width:224px;max-height:calc(100vh - 16px);margin:0;padding:12px;position:fixed;inset:auto;overflow-y:auto}.popover[data-v-268fdbed]:popover-open{display:flex}.sv-area[data-v-268fdbed]{border-radius:var(--bygga-radius-sm);cursor:crosshair;touch-action:none;background-image:linear-gradient(#0000,#000),linear-gradient(90deg,#fff,#fff0);width:100%;height:160px;position:relative}.sv-area[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.sv-thumb[data-v-268fdbed]{box-sizing:border-box;pointer-events:none;border:2px solid #fff;border-radius:50%;width:14px;height:14px;margin:-7px 0 0 -7px;position:absolute;box-shadow:0 0 0 1px #0000004d}.hue-track[data-v-268fdbed]{cursor:pointer;touch-action:none;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:999px;width:100%;height:12px;position:relative}.hue-track[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.hue-thumb[data-v-268fdbed]{border:1px solid var(--bygga-color-border);box-shadow:var(--bygga-shadow-raised);box-sizing:border-box;pointer-events:none;background:#fff;border-radius:50%;width:16px;height:16px;margin-left:-8px;position:absolute;top:50%;transform:translateY(-50%)}.palette-section[data-v-268fdbed]{flex-direction:column;gap:6px;display:flex}.palette-heading[data-v-268fdbed]{color:var(--bygga-color-text-muted);font-size:12px;font-weight:500;line-height:16px}.palette[data-v-268fdbed]{grid-template-columns:repeat(auto-fill,minmax(32px,1fr));gap:8px;display:grid}.palette-swatch[data-v-268fdbed]{aspect-ratio:1;border:1px solid var(--bygga-color-border);border-radius:var(--bygga-radius-sm);cursor:pointer;width:100%;padding:0}.palette-swatch[data-v-268fdbed]:hover,.palette-swatch[data-v-268fdbed]:focus-visible{outline:2px solid var(--bygga-color-accent);outline-offset:2px}.palette-swatch[aria-checked=true][data-v-268fdbed]{box-shadow:inset 0 0 0 2px var(--bygga-color-surface), inset 0 0 0 4px var(--bygga-color-accent,currentcolor)}.palette-swatch.off-brand[data-v-268fdbed]{border-style:dashed;border-width:2px}.transparent-toggle[data-v-268fdbed]{align-self:flex-start}.swatch[data-v-268fdbed],.checker[data-v-268fdbed],.sv-area[data-v-268fdbed],.sv-thumb[data-v-268fdbed],.hue-track[data-v-268fdbed],.hue-thumb[data-v-268fdbed],.palette-swatch[data-v-268fdbed]{forced-color-adjust:none}"]], ["__scopeId", "data-v-268fdbed"]]), eD = { class: "select-wrap" }, tD = ["id", "disabled"], nD = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
|
|
17707
17716
|
inheritAttrs: !1,
|
|
17708
17717
|
__name: "SelectInput",
|
|
17709
17718
|
props: /*@__PURE__*/ h({
|
|
@@ -17728,19 +17737,19 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17728
17737
|
let a = b(n, "modelValue"), o = n, s = x(), c = i(() => a.value === "" && !o.emptyIsValue), l = S("select");
|
|
17729
17738
|
return m(a, async (e) => {
|
|
17730
17739
|
await t(), l.value && l.value.value !== e && (l.value.value = e);
|
|
17731
|
-
}), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(
|
|
17740
|
+
}), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(VE, {
|
|
17732
17741
|
disabled: n.disabled,
|
|
17733
17742
|
label: o.label,
|
|
17734
17743
|
"label-for": se(s)
|
|
17735
17744
|
}, {
|
|
17736
|
-
default: ee(() => [r("span",
|
|
17745
|
+
default: ee(() => [r("span", eD, [de(r("select", he({
|
|
17737
17746
|
id: se(s),
|
|
17738
17747
|
ref_key: "select",
|
|
17739
17748
|
ref: l,
|
|
17740
17749
|
"onUpdate:modelValue": i[0] ||= (e) => a.value = e,
|
|
17741
17750
|
class: "field-select",
|
|
17742
17751
|
disabled: n.disabled
|
|
17743
|
-
}, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16,
|
|
17752
|
+
}, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, tD), [[pe, a.value]]), d(vE, {
|
|
17744
17753
|
class: "chevron",
|
|
17745
17754
|
name: "chevron-down",
|
|
17746
17755
|
size: 12
|
|
@@ -17755,14 +17764,14 @@ var ME = { class: "checkbox-option" }, NE = {
|
|
|
17755
17764
|
}), [["styles", [".select-input[data-v-bc9ef2fc]{width:100%;position:relative}.select-wrap[data-v-bc9ef2fc]{flex:1 1 0;min-width:0;display:flex;position:relative}.field-select[data-v-bc9ef2fc]{appearance:none;color:inherit;cursor:pointer;font:inherit;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:none;outline:none;width:100%;min-width:0;padding:0 20px 0 0}.field-select[data-v-bc9ef2fc]:disabled{cursor:not-allowed}.select-input.is-empty .field-select[data-v-bc9ef2fc]{color:var(--bygga-color-text-muted)}.chevron[data-v-bc9ef2fc]{color:var(--bygga-color-text-muted);pointer-events:none;position:absolute;top:50%;right:0;transform:translateY(-50%)}"]], ["__scopeId", "data-v-bc9ef2fc"]]);
|
|
17756
17765
|
//#endregion
|
|
17757
17766
|
//#region src/composables/useBrandCustomFonts.ts
|
|
17758
|
-
function
|
|
17759
|
-
let e = u(
|
|
17760
|
-
return i(() =>
|
|
17767
|
+
function rD() {
|
|
17768
|
+
let e = u(TE, void 0);
|
|
17769
|
+
return i(() => Uw(e?.value.customFonts ?? []));
|
|
17761
17770
|
}
|
|
17762
17771
|
//#endregion
|
|
17763
17772
|
//#region src/composables/useBrandFonts.ts
|
|
17764
|
-
function
|
|
17765
|
-
let t = u(
|
|
17773
|
+
function iD(e) {
|
|
17774
|
+
let t = u(TE, void 0);
|
|
17766
17775
|
return i(() => {
|
|
17767
17776
|
let n = t?.value.fonts ?? [];
|
|
17768
17777
|
if (n.length === 0) return Ci;
|
|
@@ -17776,25 +17785,25 @@ function nD(e) {
|
|
|
17776
17785
|
}
|
|
17777
17786
|
//#endregion
|
|
17778
17787
|
//#region src/i18n/locales.ts
|
|
17779
|
-
var
|
|
17780
|
-
function
|
|
17781
|
-
return
|
|
17788
|
+
var aD = ["en", "sv"], oD = "sv";
|
|
17789
|
+
function sD(e) {
|
|
17790
|
+
return aD.includes(e);
|
|
17782
17791
|
}
|
|
17783
17792
|
//#endregion
|
|
17784
17793
|
//#region src/mergeTags.ts
|
|
17785
|
-
function
|
|
17794
|
+
function cD(e) {
|
|
17786
17795
|
return Object.keys(e).filter((t) => !e[t]?.conditionOnly);
|
|
17787
17796
|
}
|
|
17788
|
-
function
|
|
17797
|
+
function lD(e, t, n) {
|
|
17789
17798
|
let r = e[t];
|
|
17790
17799
|
return r ? r[n] ?? r.sv ?? t : t;
|
|
17791
17800
|
}
|
|
17792
17801
|
//#endregion
|
|
17793
17802
|
//#region src/urls.ts
|
|
17794
|
-
var
|
|
17795
|
-
function
|
|
17803
|
+
var uD = /^[a-z][a-z0-9+.-]*:/i, dD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, fD = /^[/#?]/;
|
|
17804
|
+
function pD(e) {
|
|
17796
17805
|
let t = e.trim();
|
|
17797
|
-
return
|
|
17806
|
+
return uD.test(t) ? dD.test(t) ? t : "" : t === "" || fD.test(t) ? t : `https://${t}`;
|
|
17798
17807
|
}
|
|
17799
17808
|
//#endregion
|
|
17800
|
-
export {
|
|
17809
|
+
export { Sw as $, Vi as $t, $w as A, oi as An, cp as At, Tw as B, ei as Bn, Bi as Bt, OE as C, Fi as Cn, Jg as Ct, vE as D, Ei as Dn, gg as Dt, xE as E, Ti as En, hg as Et, zw as F, ni as Fn, H as Ft, sw as G, Wi as Gt, Ew as H, Vr as Hn, la as Ht, iw as I, ri as In, cs as It, Mw as J, Xi as Jt, ew as K, Qi as Kt, tw as L, ii as Ln, Ws as Lt, Bw as M, yi as Mn, Ac as Mt, Rw as N, vi as Nn, Nc as Nt, Gw as O, si as On, cm as Ot, Lw as P, _i as Pn, V as Pt, Aw as Q, Ki as Qt, yw as R, $r as Rn, R as Rt, DE as S, Ri as Sn, G as St, bE as T, ki as Tn, mg as Tt, ww as U, ua as Ut, Dw as V, Br as Vn, ca as Vt, cw as W, da as Wt, jw as X, Ui as Xt, Nw as Y, na as Yt, kw as Z, sa as Zt, EE as _, wa as _n, tb as _t, aD as a, ga as an, pw as at, AE as b, ia as bn, K as bt, rD as c, ea as cn, fw as ct, UE as d, ta as dn, QC as dt, qi as en, Cw as et, VE as f, ra as fn, $C as ft, kE as g, oa as gn, oC as gt, NE as h, Sa as hn, rC as ht, oD as i, xa as in, gw as it, Hw as j, xi as jn, U as jt, Uw as k, ai as kn, ap as kt, nD as l, Gi as ln, kC as lt, jE as m, Hi as mn, sC as mt, cD as n, Ca as nn, mw as nt, sD as o, _a as on, bw as ot, LE as p, ba as pn, nC as pt, Fw as q, Zi as qt, lD as r, ya as rn, vw as rt, iD as s, Ta as sn, Ow as st, pD as t, va as tn, hw as tt, $E as u, $i as un, cC as ut, TE as v, Yi as vn, eb as vt, SE as w, wi as wn, W as wt, wE as x, Pi as xn, B_ as xt, CE as y, aa as yn, I_ as yt, xw as z, ti as zn, B as zt };
|