@bygga.dev/editor 1.9.7 → 1.9.10

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.
@@ -15930,6 +15930,7 @@ var eC = K.create({
15930
15930
  fontSize: /* @__PURE__ */ Yy(/* @__PURE__ */ Y(kC)),
15931
15931
  customFont: /* @__PURE__ */ Yy((/* @__PURE__ */ wy()).check(/* @__PURE__ */ yy(1))),
15932
15932
  fontWeight: /* @__PURE__ */ Yy(/* @__PURE__ */ Ky(["normal", "bold"])),
15933
+ minWidth: /* @__PURE__ */ Yy(dC),
15933
15934
  ...bC,
15934
15935
  ...CC
15935
15936
  }), jC = /* @__PURE__ */ J({
@@ -16316,7 +16317,13 @@ function Tw(e) {
16316
16317
  "mso-padding-alt": Ji(e.padding)
16317
16318
  };
16318
16319
  }
16319
- function Ew(e) {
16320
+ function Ew(e, t) {
16321
+ if (!e.minWidth) return;
16322
+ let n = qi(e.padding), r = qi(e.border.width), i = Math.min(e.minWidth, t ?? e.minWidth) - n.left - n.right - r.left - r.right;
16323
+ return i > 0 ? i : void 0;
16324
+ }
16325
+ function Dw(e, t) {
16326
+ let n = Ew(e, t);
16320
16327
  return {
16321
16328
  color: bi(e.textColor),
16322
16329
  display: "block",
@@ -16324,18 +16331,19 @@ function Ew(e) {
16324
16331
  fontSize: `${e.fontSize ?? 16}px`,
16325
16332
  fontWeight: e.fontWeight ?? "bold",
16326
16333
  padding: Ji(e.padding),
16334
+ ...n === void 0 ? {} : { minWidth: `${n}px` },
16327
16335
  textAlign: "center",
16328
16336
  textDecoration: "none"
16329
16337
  };
16330
16338
  }
16331
- function Dw(e) {
16339
+ function Ow(e) {
16332
16340
  return {
16333
16341
  color: bi(e.textColor),
16334
16342
  fontFamily: e.customFont ?? Ti(e.font),
16335
16343
  fontWeight: e.fontWeight ?? "bold"
16336
16344
  };
16337
16345
  }
16338
- function Ow(e) {
16346
+ function kw(e) {
16339
16347
  return {
16340
16348
  height: `${e}px`,
16341
16349
  lineHeight: `${e}px`,
@@ -16343,7 +16351,7 @@ function Ow(e) {
16343
16351
  "mso-line-height-rule": "exactly"
16344
16352
  };
16345
16353
  }
16346
- function kw(e) {
16354
+ function Aw(e) {
16347
16355
  let t = Math.max(1, e.thickness);
16348
16356
  return {
16349
16357
  backgroundColor: bi(e.color),
@@ -16354,7 +16362,7 @@ function kw(e) {
16354
16362
  borderRadius: Ji(e.borderRadius)
16355
16363
  };
16356
16364
  }
16357
- function Aw(e) {
16365
+ function jw(e) {
16358
16366
  let { top: t, right: n, bottom: r, left: i } = qi(e.borderRadius);
16359
16367
  return {
16360
16368
  ...t > 0 || n > 0 || r > 0 || i > 0 ? {
@@ -16364,7 +16372,7 @@ function Aw(e) {
16364
16372
  width: "100%"
16365
16373
  };
16366
16374
  }
16367
- function jw(e, t = !1) {
16375
+ function Mw(e, t = !1) {
16368
16376
  return {
16369
16377
  ...tw(e.background, t),
16370
16378
  ...ow(e.border),
@@ -16377,7 +16385,7 @@ function jw(e, t = !1) {
16377
16385
  width: "100%"
16378
16386
  };
16379
16387
  }
16380
- function Mw(e) {
16388
+ function Nw(e) {
16381
16389
  return {
16382
16390
  backgroundColor: bi(e.background.type === "solid" ? e.background.color : e.background.fallbackColor),
16383
16391
  borderRadius: Ji(e.borderRadius),
@@ -16385,19 +16393,19 @@ function Mw(e) {
16385
16393
  boxSizing: "border-box"
16386
16394
  };
16387
16395
  }
16388
- function Nw() {
16396
+ function Pw() {
16389
16397
  return {
16390
16398
  borderCollapse: "collapse",
16391
16399
  tableLayout: "fixed",
16392
16400
  width: "100%"
16393
16401
  };
16394
16402
  }
16395
- function Pw(e) {
16403
+ function Fw(e) {
16396
16404
  let { left: t, right: n } = qi(e);
16397
16405
  return Math.min((t + n) / 4, t, n);
16398
16406
  }
16399
- function Fw(e, t, n, r = 0) {
16400
- let i = Zi[e], a = i.reduce((e, t) => e + t, 0), { top: o, right: s, bottom: c, left: l } = qi(t), u = Pw(t), d = n === void 0 ? void 0 : n - (l - u) - (s - u), f = Math.max(0, r) * (i.length - 1), p = (e) => e / a, m = (e) => {
16407
+ function Iw(e, t, n, r = 0) {
16408
+ let i = Zi[e], a = i.reduce((e, t) => e + t, 0), { top: o, right: s, bottom: c, left: l } = qi(t), u = Fw(t), d = n === void 0 ? void 0 : n - (l - u) - (s - u), f = Math.max(0, r) * (i.length - 1), p = (e) => e / a, m = (e) => {
16401
16409
  if (f === 0) {
16402
16410
  let t = `${p(e) * 100}%`;
16403
16411
  return {
@@ -16431,23 +16439,23 @@ function Fw(e, t, n, r = 0) {
16431
16439
  }
16432
16440
  //#endregion
16433
16441
  //#region ../core/src/blockStyle.ts
16434
- var Iw = [
16442
+ var Lw = [
16435
16443
  "left",
16436
16444
  "center",
16437
16445
  "right",
16438
16446
  "justify"
16439
16447
  ];
16440
- function Lw(e) {
16441
- return Iw.includes(e);
16442
- }
16443
16448
  function Rw(e) {
16449
+ return Lw.includes(e);
16450
+ }
16451
+ function zw(e) {
16444
16452
  return `${e}px`;
16445
16453
  }
16446
- function zw(e, t) {
16454
+ function Bw(e, t) {
16447
16455
  if (!e) return [];
16448
16456
  let n = null;
16449
16457
  e.customFont === void 0 ? e.font !== void 0 && e.font !== t && (n = Ti(e.font)) : n = e.customFont;
16450
- let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null : Rw(e.fontSize), a = [];
16458
+ let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null : zw(e.fontSize), a = [];
16451
16459
  return (n !== null || r !== null || i !== null) && a.push({
16452
16460
  type: "textStyle",
16453
16461
  attrs: {
@@ -16457,12 +16465,12 @@ function zw(e, t) {
16457
16465
  }
16458
16466
  }), e.bold && a.push({ type: "bold" }), e.italic && a.push({ type: "italic" }), e.underline && a.push({ type: "underline" }), a;
16459
16467
  }
16460
- function Bw(e, t, n) {
16468
+ function Vw(e, t, n) {
16461
16469
  let r = ga(e, t), { data: i } = r;
16462
16470
  switch (i.type) {
16463
16471
  case "text": {
16464
16472
  let e = n?.text;
16465
- e && (i.text = Ii(e.align), Vw(i, e), e.paragraphSpacing !== void 0 && (i.paragraphSpacing = e.paragraphSpacing));
16473
+ e && (i.text = Ii(e.align), Hw(i, e), e.paragraphSpacing !== void 0 && (i.paragraphSpacing = e.paragraphSpacing));
16466
16474
  break;
16467
16475
  }
16468
16476
  case "header": {
@@ -16470,8 +16478,8 @@ function Bw(e, t, n) {
16470
16478
  e && (i.text = zi(Li, {
16471
16479
  level: e.level,
16472
16480
  align: e.align,
16473
- marks: zw(e, t)
16474
- }), Vw(i, e));
16481
+ marks: Bw(e, t)
16482
+ }), Hw(i, e));
16475
16483
  break;
16476
16484
  }
16477
16485
  case "button": {
@@ -16479,7 +16487,7 @@ function Bw(e, t, n) {
16479
16487
  e && (e.background && (i.background = {
16480
16488
  type: "solid",
16481
16489
  color: e.background
16482
- }), e.textColor && (i.textColor = e.textColor), e.font && (i.font = e.font), e.customFont && (i.customFont = e.customFont), e.fontSize !== void 0 && e.fontSize !== 16 && (i.fontSize = e.fontSize), e.fontWeight === "normal" && (i.fontWeight = "normal"), e.borderRadius && (i.borderRadius = e.borderRadius), e.padding && (i.padding = e.padding), e.margin && (i.margin = e.margin), e.border && (i.border = e.border), e.align && (i.align = e.align));
16490
+ }), e.textColor && (i.textColor = e.textColor), e.font && (i.font = e.font), e.customFont && (i.customFont = e.customFont), e.fontSize !== void 0 && e.fontSize !== 16 && (i.fontSize = e.fontSize), e.fontWeight === "normal" && (i.fontWeight = "normal"), e.borderRadius && (i.borderRadius = e.borderRadius), e.padding && (i.padding = e.padding), e.margin && (i.margin = e.margin), e.border && (i.border = e.border), e.align && (i.align = e.align), e.minWidth && (i.minWidth = e.minWidth));
16483
16491
  break;
16484
16492
  }
16485
16493
  case "columns":
@@ -16492,7 +16500,7 @@ function Bw(e, t, n) {
16492
16500
  }
16493
16501
  return r;
16494
16502
  }
16495
- function Vw(e, t) {
16503
+ function Hw(e, t) {
16496
16504
  t.background && (e.background = {
16497
16505
  type: "solid",
16498
16506
  color: t.background
@@ -16500,23 +16508,23 @@ function Vw(e, t) {
16500
16508
  }
16501
16509
  //#endregion
16502
16510
  //#region \0plugin-vue:export-helper
16503
- var Hw = (e, t) => {
16511
+ var Uw = (e, t) => {
16504
16512
  let n = e.__vccOpts || e;
16505
16513
  for (let [e, r] of t) n[e] = r;
16506
16514
  return n;
16507
16515
  };
16508
16516
  //#endregion
16509
16517
  //#region src/customFonts.ts
16510
- function Uw(e) {
16518
+ function Ww(e) {
16511
16519
  return e.map((e) => ({
16512
16520
  ...e,
16513
16521
  stack: Ai(e)
16514
16522
  }));
16515
16523
  }
16516
- var Ww = /* @__PURE__ */ new Set();
16517
- function Gw(e) {
16524
+ var Gw = /* @__PURE__ */ new Set();
16525
+ function Kw(e) {
16518
16526
  if (!(typeof document > "u")) {
16519
- for (let t of e) if (!Ww.has(t.href)) if (Ww.add(t.href), Ni(t) === "file") {
16527
+ for (let t of e) if (!Gw.has(t.href)) if (Gw.add(t.href), Ni(t) === "file") {
16520
16528
  if (typeof FontFace > "u") continue;
16521
16529
  let e = new FontFace(t.name, `url("${t.href}")`, { display: "swap" });
16522
16530
  document.fonts.add(e), e.load().catch((e) => {
@@ -16530,9 +16538,9 @@ function Gw(e) {
16530
16538
  }
16531
16539
  }
16532
16540
  }
16533
- function Kw(e, t) {
16541
+ function qw(e, t) {
16534
16542
  if (Array.isArray(e)) {
16535
- for (let n of e) Kw(n, t);
16543
+ for (let n of e) qw(n, t);
16536
16544
  return;
16537
16545
  }
16538
16546
  if (typeof e != "object" || !e) return;
@@ -16542,9 +16550,9 @@ function Kw(e, t) {
16542
16550
  typeof e?.fontFamily == "string" && t.stacks.add(e.fontFamily);
16543
16551
  }
16544
16552
  n.type === "button" && typeof n.customFont == "string" && t.stacks.add(n.customFont), n.type === "custom" && typeof n.html == "string" && t.pluginHtml.push(n.html);
16545
- for (let e of Object.values(n)) Kw(e, t);
16553
+ for (let e of Object.values(n)) qw(e, t);
16546
16554
  }
16547
- var qw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Jw = {
16555
+ var Jw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Yw = {
16548
16556
  """: "\"",
16549
16557
  """: "\"",
16550
16558
  """: "\"",
@@ -16555,31 +16563,31 @@ var qw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Jw = {
16555
16563
  "&": "&",
16556
16564
  "&": "&"
16557
16565
  };
16558
- function Yw(e) {
16559
- return e.replace(qw, (e) => Jw[e.toLowerCase()] ?? e);
16560
- }
16561
16566
  function Xw(e) {
16567
+ return e.replace(Jw, (e) => Yw[e.toLowerCase()] ?? e);
16568
+ }
16569
+ function Zw(e) {
16562
16570
  let t = (Ai(e).split(",")[0] ?? "").replace(/["']/g, "").trim();
16563
16571
  return [.../* @__PURE__ */ new Set([e.name.trim(), t])].filter((e) => e !== "");
16564
16572
  }
16565
- var Zw = /[.*+?^${}()|[\]\\]/g;
16566
- function Qw(e, t) {
16573
+ var Qw = /[.*+?^${}()|[\]\\]/g;
16574
+ function $w(e, t) {
16567
16575
  if (e.length === 0) return !1;
16568
- let n = e.map(Yw);
16569
- return Xw(t).some((e) => {
16570
- let t = RegExp(`(^|[^\\w-])${e.replace(Zw, "\\$&")}(?![\\w-])`, "i");
16576
+ let n = e.map(Xw);
16577
+ return Zw(t).some((e) => {
16578
+ let t = RegExp(`(^|[^\\w-])${e.replace(Qw, "\\$&")}(?![\\w-])`, "i");
16571
16579
  return n.some((e) => t.test(e));
16572
16580
  });
16573
16581
  }
16574
- function $w(e, t) {
16582
+ function eT(e, t) {
16575
16583
  let n = {
16576
16584
  stacks: /* @__PURE__ */ new Set(),
16577
16585
  pluginHtml: []
16578
16586
  };
16579
- Kw(e.root, n);
16587
+ qw(e.root, n);
16580
16588
  let r = e.customFonts ?? [], i = [], a = (e) => {
16581
16589
  let t = Ai(e);
16582
- (n.stacks.has(t) || Qw(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
16590
+ (n.stacks.has(t) || $w(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
16583
16591
  };
16584
16592
  for (let { stack: e, ...n } of t) a(n);
16585
16593
  for (let e of r) a(e);
@@ -16588,15 +16596,15 @@ function $w(e, t) {
16588
16596
  }
16589
16597
  //#endregion
16590
16598
  //#region src/assets/icons/board.svg?component
16591
- var eT = {
16599
+ var tT = {
16592
16600
  xmlns: "http://www.w3.org/2000/svg",
16593
16601
  width: "55",
16594
16602
  height: "55",
16595
16603
  fill: "none",
16596
16604
  viewBox: "0 0 54.64 54.64"
16597
16605
  };
16598
- function tT(t, n) {
16599
- return y(), e("svg", eT, [...n[0] ||= [r("path", {
16606
+ function nT(t, n) {
16607
+ return y(), e("svg", tT, [...n[0] ||= [r("path", {
16600
16608
  stroke: "currentColor",
16601
16609
  "stroke-linejoin": "round",
16602
16610
  "stroke-width": "2",
@@ -16608,15 +16616,15 @@ function tT(t, n) {
16608
16616
  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"
16609
16617
  }, null, -1)]]);
16610
16618
  }
16611
- var nT = { render: tT }, rT = {
16619
+ var rT = { render: nT }, iT = {
16612
16620
  xmlns: "http://www.w3.org/2000/svg",
16613
16621
  width: "16",
16614
16622
  height: "16",
16615
16623
  fill: "none",
16616
16624
  viewBox: "0 0 16 16"
16617
16625
  };
16618
- function iT(t, n) {
16619
- return y(), e("svg", rT, [...n[0] ||= [r("path", {
16626
+ function aT(t, n) {
16627
+ return y(), e("svg", iT, [...n[0] ||= [r("path", {
16620
16628
  stroke: "currentColor",
16621
16629
  "stroke-linecap": "round",
16622
16630
  "stroke-linejoin": "round",
@@ -16624,15 +16632,15 @@ function iT(t, n) {
16624
16632
  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"
16625
16633
  }, null, -1)]]);
16626
16634
  }
16627
- var aT = { render: iT }, oT = {
16635
+ var oT = { render: aT }, sT = {
16628
16636
  xmlns: "http://www.w3.org/2000/svg",
16629
16637
  width: "16",
16630
16638
  height: "16",
16631
16639
  fill: "none",
16632
16640
  viewBox: "0 0 16 16"
16633
16641
  };
16634
- function sT(t, n) {
16635
- return y(), e("svg", oT, [...n[0] ||= [r("path", {
16642
+ function cT(t, n) {
16643
+ return y(), e("svg", sT, [...n[0] ||= [r("path", {
16636
16644
  stroke: "currentColor",
16637
16645
  "stroke-linecap": "round",
16638
16646
  "stroke-linejoin": "round",
@@ -16640,15 +16648,15 @@ function sT(t, n) {
16640
16648
  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"
16641
16649
  }, null, -1)]]);
16642
16650
  }
16643
- var cT = { render: sT }, lT = {
16651
+ var lT = { render: cT }, uT = {
16644
16652
  xmlns: "http://www.w3.org/2000/svg",
16645
16653
  width: "40",
16646
16654
  height: "40",
16647
16655
  fill: "none",
16648
16656
  viewBox: "0 0 40 40"
16649
16657
  };
16650
- function uT(t, n) {
16651
- return y(), e("svg", lT, [...n[0] ||= [r("rect", {
16658
+ function dT(t, n) {
16659
+ return y(), e("svg", uT, [...n[0] ||= [r("rect", {
16652
16660
  width: "28",
16653
16661
  height: "14",
16654
16662
  x: "6",
@@ -16664,15 +16672,15 @@ function uT(t, n) {
16664
16672
  d: "M14 20h12"
16665
16673
  }, null, -1)]]);
16666
16674
  }
16667
- var dT = { render: uT }, fT = {
16675
+ var fT = { render: dT }, pT = {
16668
16676
  xmlns: "http://www.w3.org/2000/svg",
16669
16677
  width: "16",
16670
16678
  height: "16",
16671
16679
  fill: "none",
16672
16680
  viewBox: "0 0 16 16"
16673
16681
  };
16674
- function pT(t, n) {
16675
- return y(), e("svg", fT, [...n[0] ||= [r("path", {
16682
+ function mT(t, n) {
16683
+ return y(), e("svg", pT, [...n[0] ||= [r("path", {
16676
16684
  stroke: "currentColor",
16677
16685
  "stroke-linecap": "round",
16678
16686
  "stroke-linejoin": "round",
@@ -16680,30 +16688,30 @@ function pT(t, n) {
16680
16688
  d: "m4 6 4 4 4-4"
16681
16689
  }, null, -1)]]);
16682
16690
  }
16683
- var mT = { render: pT }, hT = {
16691
+ var hT = { render: mT }, gT = {
16684
16692
  xmlns: "http://www.w3.org/2000/svg",
16685
16693
  width: "16",
16686
16694
  height: "16",
16687
16695
  fill: "none",
16688
16696
  viewBox: "0 0 16 16"
16689
16697
  };
16690
- function gT(t, n) {
16691
- return y(), e("svg", hT, [...n[0] ||= [r("path", {
16698
+ function _T(t, n) {
16699
+ return y(), e("svg", gT, [...n[0] ||= [r("path", {
16692
16700
  stroke: "currentColor",
16693
16701
  "stroke-linecap": "round",
16694
16702
  "stroke-width": "1.2",
16695
16703
  d: "m4 4 8 8M12 4l-8 8"
16696
16704
  }, null, -1)]]);
16697
16705
  }
16698
- var _T = { render: gT }, vT = {
16706
+ var vT = { render: _T }, yT = {
16699
16707
  xmlns: "http://www.w3.org/2000/svg",
16700
16708
  width: "40",
16701
16709
  height: "40",
16702
16710
  fill: "none",
16703
16711
  viewBox: "0 0 40 40"
16704
16712
  };
16705
- function yT(t, n) {
16706
- return y(), e("svg", vT, [...n[0] ||= [r("rect", {
16713
+ function bT(t, n) {
16714
+ return y(), e("svg", yT, [...n[0] ||= [r("rect", {
16707
16715
  width: "28",
16708
16716
  height: "22",
16709
16717
  x: "6",
@@ -16719,15 +16727,15 @@ function yT(t, n) {
16719
16727
  d: "M15.33 9.6v20.8M24.67 9.6v20.8"
16720
16728
  }, null, -1)]]);
16721
16729
  }
16722
- var bT = { render: yT }, xT = {
16730
+ var xT = { render: bT }, ST = {
16723
16731
  xmlns: "http://www.w3.org/2000/svg",
16724
16732
  width: "16",
16725
16733
  height: "16",
16726
16734
  fill: "none",
16727
16735
  viewBox: "0 0 16 16"
16728
16736
  };
16729
- function ST(t, n) {
16730
- return y(), e("svg", xT, [...n[0] ||= [r("rect", {
16737
+ function CT(t, n) {
16738
+ return y(), e("svg", ST, [...n[0] ||= [r("rect", {
16731
16739
  width: "7.33",
16732
16740
  height: "7.67",
16733
16741
  x: "6",
@@ -16744,15 +16752,15 @@ function ST(t, n) {
16744
16752
  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"
16745
16753
  }, null, -1)]]);
16746
16754
  }
16747
- var CT = { render: ST }, wT = {
16755
+ var wT = { render: CT }, TT = {
16748
16756
  xmlns: "http://www.w3.org/2000/svg",
16749
16757
  width: "16",
16750
16758
  height: "16",
16751
16759
  fill: "none",
16752
16760
  viewBox: "0 0 16 16"
16753
16761
  };
16754
- function TT(t, n) {
16755
- return y(), e("svg", wT, [...n[0] ||= [r("rect", {
16762
+ function ET(t, n) {
16763
+ return y(), e("svg", TT, [...n[0] ||= [r("rect", {
16756
16764
  width: "13",
16757
16765
  height: "8.5",
16758
16766
  x: "1.5",
@@ -16768,15 +16776,15 @@ function TT(t, n) {
16768
16776
  d: "M6 14.5h4M8 11v3.5"
16769
16777
  }, null, -1)]]);
16770
16778
  }
16771
- var ET = { render: TT }, DT = {
16779
+ var DT = { render: ET }, OT = {
16772
16780
  xmlns: "http://www.w3.org/2000/svg",
16773
16781
  width: "40",
16774
16782
  height: "40",
16775
16783
  fill: "none",
16776
16784
  viewBox: "0 0 20 20"
16777
16785
  };
16778
- function OT(t, n) {
16779
- return y(), e("svg", DT, [...n[0] ||= [r("g", {
16786
+ function kT(t, n) {
16787
+ return y(), e("svg", OT, [...n[0] ||= [r("g", {
16780
16788
  stroke: "currentColor",
16781
16789
  "stroke-linecap": "round",
16782
16790
  "stroke-linejoin": "round",
@@ -16786,15 +16794,15 @@ function OT(t, n) {
16786
16794
  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"
16787
16795
  })], -1)]]);
16788
16796
  }
16789
- var kT = { render: OT }, AT = {
16797
+ var AT = { render: kT }, jT = {
16790
16798
  xmlns: "http://www.w3.org/2000/svg",
16791
16799
  width: "16",
16792
16800
  height: "16",
16793
16801
  fill: "none",
16794
16802
  viewBox: "0 0 16 16"
16795
16803
  };
16796
- function jT(t, n) {
16797
- return y(), e("svg", AT, [...n[0] ||= [r("path", {
16804
+ function MT(t, n) {
16805
+ return y(), e("svg", jT, [...n[0] ||= [r("path", {
16798
16806
  stroke: "currentColor",
16799
16807
  "stroke-width": "1.2",
16800
16808
  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"
@@ -16806,15 +16814,15 @@ function jT(t, n) {
16806
16814
  d: "M11.133 8a3.133 3.133 0 1 1-6.266 0 3.133 3.133 0 0 1 6.266 0"
16807
16815
  }, null, -1)]]);
16808
16816
  }
16809
- var MT = { render: jT }, NT = {
16817
+ var NT = { render: MT }, PT = {
16810
16818
  xmlns: "http://www.w3.org/2000/svg",
16811
16819
  width: "40",
16812
16820
  height: "40",
16813
16821
  fill: "none",
16814
16822
  viewBox: "0 0 40 40"
16815
16823
  };
16816
- function PT(t, n) {
16817
- return y(), e("svg", NT, [...n[0] ||= [r("path", {
16824
+ function FT(t, n) {
16825
+ return y(), e("svg", PT, [...n[0] ||= [r("path", {
16818
16826
  stroke: "currentColor",
16819
16827
  "stroke-linecap": "round",
16820
16828
  "stroke-linejoin": "round",
@@ -16822,15 +16830,15 @@ function PT(t, n) {
16822
16830
  d: "M10 8v24M24 8v24M10 20h14M30 26l3-2v8"
16823
16831
  }, null, -1)]]);
16824
16832
  }
16825
- var FT = { render: PT }, IT = {
16833
+ var IT = { render: FT }, LT = {
16826
16834
  xmlns: "http://www.w3.org/2000/svg",
16827
16835
  width: "40",
16828
16836
  height: "40",
16829
16837
  fill: "none",
16830
16838
  viewBox: "0 0 40 40"
16831
16839
  };
16832
- function LT(t, n) {
16833
- return y(), e("svg", IT, [...n[0] ||= [r("rect", {
16840
+ function RT(t, n) {
16841
+ return y(), e("svg", LT, [...n[0] ||= [r("rect", {
16834
16842
  width: "28",
16835
16843
  height: "22",
16836
16844
  x: "6",
@@ -16847,15 +16855,15 @@ function LT(t, n) {
16847
16855
  d: "m17 16-4 4 4 4M23 16l4 4-4 4"
16848
16856
  }, null, -1)]]);
16849
16857
  }
16850
- var RT = { render: LT }, zT = {
16858
+ var zT = { render: RT }, BT = {
16851
16859
  xmlns: "http://www.w3.org/2000/svg",
16852
16860
  width: "40",
16853
16861
  height: "40",
16854
16862
  fill: "none",
16855
16863
  viewBox: "0 0 40 40"
16856
16864
  };
16857
- function BT(t, n) {
16858
- return y(), e("svg", zT, [...n[0] ||= [
16865
+ function VT(t, n) {
16866
+ return y(), e("svg", BT, [...n[0] ||= [
16859
16867
  r("rect", {
16860
16868
  width: "28",
16861
16869
  height: "22",
@@ -16889,30 +16897,30 @@ function BT(t, n) {
16889
16897
  }, null, -1)
16890
16898
  ]]);
16891
16899
  }
16892
- var VT = { render: BT }, HT = {
16900
+ var HT = { render: VT }, UT = {
16893
16901
  xmlns: "http://www.w3.org/2000/svg",
16894
16902
  width: "16",
16895
16903
  height: "16",
16896
16904
  fill: "none",
16897
16905
  viewBox: "0 0 16 16"
16898
16906
  };
16899
- function UT(t, n) {
16900
- return y(), e("svg", HT, [...n[0] ||= [r("path", {
16907
+ function WT(t, n) {
16908
+ return y(), e("svg", UT, [...n[0] ||= [r("path", {
16901
16909
  fill: "currentColor",
16902
16910
  "fill-rule": "evenodd",
16903
16911
  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",
16904
16912
  "clip-rule": "evenodd"
16905
16913
  }, null, -1)]]);
16906
16914
  }
16907
- var WT = { render: UT }, GT = {
16915
+ var GT = { render: WT }, KT = {
16908
16916
  xmlns: "http://www.w3.org/2000/svg",
16909
16917
  width: "16",
16910
16918
  height: "16",
16911
16919
  fill: "none",
16912
16920
  viewBox: "0 0 16 16"
16913
16921
  };
16914
- function KT(t, n) {
16915
- return y(), e("svg", GT, [...n[0] ||= [r("path", {
16922
+ function qT(t, n) {
16923
+ return y(), e("svg", KT, [...n[0] ||= [r("path", {
16916
16924
  stroke: "currentColor",
16917
16925
  "stroke-linecap": "round",
16918
16926
  "stroke-width": "1.2",
@@ -16925,15 +16933,15 @@ function KT(t, n) {
16925
16933
  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"
16926
16934
  }, null, -1)]]);
16927
16935
  }
16928
- var qT = { render: KT }, JT = {
16936
+ var JT = { render: qT }, YT = {
16929
16937
  xmlns: "http://www.w3.org/2000/svg",
16930
16938
  width: "16",
16931
16939
  height: "16",
16932
16940
  fill: "none",
16933
16941
  viewBox: "0 0 16 16"
16934
16942
  };
16935
- function YT(t, n) {
16936
- return y(), e("svg", JT, [...n[0] ||= [
16943
+ function XT(t, n) {
16944
+ return y(), e("svg", YT, [...n[0] ||= [
16937
16945
  r("rect", {
16938
16946
  width: "9.33",
16939
16947
  height: "7",
@@ -16959,15 +16967,15 @@ function YT(t, n) {
16959
16967
  }, null, -1)
16960
16968
  ]]);
16961
16969
  }
16962
- var XT = { render: YT }, ZT = {
16970
+ var ZT = { render: XT }, QT = {
16963
16971
  xmlns: "http://www.w3.org/2000/svg",
16964
16972
  width: "16",
16965
16973
  height: "16",
16966
16974
  fill: "none",
16967
16975
  viewBox: "0 0 16 16"
16968
16976
  };
16969
- function QT(t, n) {
16970
- return y(), e("svg", ZT, [...n[0] ||= [r("rect", {
16977
+ function $T(t, n) {
16978
+ return y(), e("svg", QT, [...n[0] ||= [r("rect", {
16971
16979
  width: "7",
16972
16980
  height: "13",
16973
16981
  x: "4.5",
@@ -16983,15 +16991,15 @@ function QT(t, n) {
16983
16991
  d: "M6.5 12.5h3"
16984
16992
  }, null, -1)]]);
16985
16993
  }
16986
- var $T = { render: QT }, eE = {
16994
+ var eE = { render: $T }, tE = {
16987
16995
  xmlns: "http://www.w3.org/2000/svg",
16988
16996
  width: "40",
16989
16997
  height: "40",
16990
16998
  fill: "none",
16991
16999
  viewBox: "0 0 40 40"
16992
17000
  };
16993
- function tE(t, n) {
16994
- return y(), e("svg", eE, [...n[0] ||= [r("path", {
17001
+ function nE(t, n) {
17002
+ return y(), e("svg", tE, [...n[0] ||= [r("path", {
16995
17003
  stroke: "currentColor",
16996
17004
  "stroke-linecap": "round",
16997
17005
  "stroke-linejoin": "round",
@@ -16999,15 +17007,15 @@ function tE(t, n) {
16999
17007
  d: "M35 10H5M35 20H5M20 30H5"
17000
17008
  }, null, -1)]]);
17001
17009
  }
17002
- var nE = { render: tE }, rE = {
17010
+ var rE = { render: nE }, iE = {
17003
17011
  xmlns: "http://www.w3.org/2000/svg",
17004
17012
  width: "18",
17005
17013
  height: "18",
17006
17014
  fill: "none",
17007
17015
  viewBox: "0 0 18.092 18.419"
17008
17016
  };
17009
- function iE(t, n) {
17010
- return y(), e("svg", rE, [...n[0] ||= [
17017
+ function aE(t, n) {
17018
+ return y(), e("svg", iE, [...n[0] ||= [
17011
17019
  r("path", {
17012
17020
  stroke: "currentColor",
17013
17021
  "stroke-linejoin": "round",
@@ -17029,15 +17037,15 @@ function iE(t, n) {
17029
17037
  }, null, -1)
17030
17038
  ]]);
17031
17039
  }
17032
- var aE = { render: iE }, oE = {
17040
+ var oE = { render: aE }, sE = {
17033
17041
  xmlns: "http://www.w3.org/2000/svg",
17034
17042
  width: "40",
17035
17043
  height: "40",
17036
17044
  fill: "none",
17037
17045
  viewBox: "0 0 40 40"
17038
17046
  };
17039
- function sE(t, n) {
17040
- return y(), e("svg", oE, [...n[0] ||= [r("path", {
17047
+ function cE(t, n) {
17048
+ return y(), e("svg", sE, [...n[0] ||= [r("path", {
17041
17049
  stroke: "currentColor",
17042
17050
  "stroke-linecap": "round",
17043
17051
  "stroke-width": "1.2",
@@ -17050,15 +17058,15 @@ function sE(t, n) {
17050
17058
  d: "M16.5 17.5 20 14l3.5 3.5M16.5 22.5 20 26l3.5-3.5"
17051
17059
  }, null, -1)]]);
17052
17060
  }
17053
- var cE = { render: sE }, lE = {
17061
+ var lE = { render: cE }, uE = {
17054
17062
  xmlns: "http://www.w3.org/2000/svg",
17055
17063
  width: "16",
17056
17064
  height: "16",
17057
17065
  fill: "none",
17058
17066
  viewBox: "0 0 16 16"
17059
17067
  };
17060
- function uE(t, n) {
17061
- return y(), e("svg", lE, [...n[0] ||= [r("path", {
17068
+ function dE(t, n) {
17069
+ return y(), e("svg", uE, [...n[0] ||= [r("path", {
17062
17070
  stroke: "currentColor",
17063
17071
  "stroke-linecap": "round",
17064
17072
  "stroke-linejoin": "round",
@@ -17066,15 +17074,15 @@ function uE(t, n) {
17066
17074
  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"
17067
17075
  }, null, -1)]]);
17068
17076
  }
17069
- var dE = { render: uE }, fE = {
17077
+ var fE = { render: dE }, pE = {
17070
17078
  xmlns: "http://www.w3.org/2000/svg",
17071
17079
  width: "16",
17072
17080
  height: "16",
17073
17081
  fill: "none",
17074
17082
  viewBox: "0 0 16 16"
17075
17083
  };
17076
- function pE(t, n) {
17077
- return y(), e("svg", fE, [...n[0] ||= [
17084
+ function mE(t, n) {
17085
+ return y(), e("svg", pE, [...n[0] ||= [
17078
17086
  r("path", {
17079
17087
  stroke: "currentColor",
17080
17088
  "stroke-linecap": "round",
@@ -17102,15 +17110,15 @@ function pE(t, n) {
17102
17110
  }, null, -1)
17103
17111
  ]]);
17104
17112
  }
17105
- var mE = { render: pE }, hE = {
17113
+ var hE = { render: mE }, gE = {
17106
17114
  xmlns: "http://www.w3.org/2000/svg",
17107
17115
  width: "20",
17108
17116
  height: "20",
17109
17117
  fill: "none",
17110
17118
  viewBox: "0 0 20 20"
17111
17119
  };
17112
- function gE(t, n) {
17113
- return y(), e("svg", hE, [...n[0] ||= [
17120
+ function _E(t, n) {
17121
+ return y(), e("svg", gE, [...n[0] ||= [
17114
17122
  r("path", {
17115
17123
  stroke: "currentColor",
17116
17124
  "stroke-linejoin": "round",
@@ -17131,7 +17139,7 @@ function gE(t, n) {
17131
17139
  }, null, -1)
17132
17140
  ]]);
17133
17141
  }
17134
- var _E = { render: gE }, vE = /* @__PURE__ */ p({
17142
+ var vE = { render: _E }, yE = /* @__PURE__ */ p({
17135
17143
  __name: "AppIcon",
17136
17144
  props: {
17137
17145
  name: { type: String },
@@ -17142,30 +17150,30 @@ var _E = { render: gE }, vE = /* @__PURE__ */ p({
17142
17150
  },
17143
17151
  setup(e) {
17144
17152
  let t = e, n = {
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
17153
+ pencil: oE,
17154
+ eye: NT,
17155
+ info: GT,
17156
+ board: rT,
17157
+ braces: lT,
17158
+ button: fT,
17159
+ trash: hE,
17160
+ warning: vE,
17161
+ close: vT,
17162
+ copy: wT,
17163
+ link: JT,
17164
+ columns: xT,
17165
+ paragraph: rE,
17166
+ image: HT,
17167
+ mobile: eE,
17168
+ desktop: DT,
17169
+ spacer: lE,
17170
+ sparkles: fE,
17171
+ divider: AT,
17172
+ html: zT,
17173
+ "chevron-down": hT,
17174
+ bookmark: oT,
17175
+ heading: IT,
17176
+ lock: ZT
17169
17177
  }, r = i(() => n[t.name]), a = i(() => typeof t.size == "number" ? `${t.size}px` : t.size);
17170
17178
  return (e, t) => (y(), f(c(r.value), {
17171
17179
  class: "app-icon",
@@ -17178,8 +17186,8 @@ var _E = { render: gE }, vE = /* @__PURE__ */ p({
17178
17186
  "aria-hidden": "true"
17179
17187
  }, null, 8, ["style"]));
17180
17188
  }
17181
- }), yE = Symbol("errorDialog");
17182
- function bE() {
17189
+ }), bE = Symbol("errorDialog");
17190
+ function xE() {
17183
17191
  let e = fe(null), t = {
17184
17192
  message: i(() => e.value),
17185
17193
  show: (t) => {
@@ -17189,26 +17197,26 @@ function bE() {
17189
17197
  e.value = null;
17190
17198
  }
17191
17199
  };
17192
- return o(yE, t), t;
17200
+ return o(bE, t), t;
17193
17201
  }
17194
- function xE() {
17195
- return u(yE);
17202
+ function SE() {
17203
+ return u(bE);
17196
17204
  }
17197
17205
  //#endregion
17198
17206
  //#region src/i18n/useAppI18n.ts
17199
- function SE() {
17207
+ function CE() {
17200
17208
  return Hr({ useScope: "global" });
17201
17209
  }
17202
17210
  //#endregion
17203
17211
  //#region src/providerKeys.ts
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");
17212
+ var wE = Symbol("editorConfig"), TE = Symbol("mergeTags"), EE = Symbol("brand"), DE = Symbol("blockStyles"), OE = Symbol("permission"), kE = Symbol("savedBlocks"), AE = Symbol("blockPlugins"), jE = Symbol("imageSearch");
17205
17213
  //#endregion
17206
17214
  //#region src/popoverPlacement.ts
17207
- function jE(e, t, n) {
17215
+ function ME(e, t, n) {
17208
17216
  return Math.max(n.top + t, Math.min(e, n.bottom));
17209
17217
  }
17210
- var ME = 8;
17211
- function NE(e, t, n = ME) {
17218
+ var NE = 8;
17219
+ function PE(e, t, n = NE) {
17212
17220
  let r = t - e.bottom - n, i = e.top - n;
17213
17221
  return r >= i ? {
17214
17222
  side: "below",
@@ -17222,13 +17230,13 @@ function NE(e, t, n = ME) {
17222
17230
  }
17223
17231
  //#endregion
17224
17232
  //#region src/components/CheckboxOption.vue?vue&type=script&setup=true&lang.ts
17225
- var PE = { class: "checkbox-option" }, FE = {
17233
+ var FE = { class: "checkbox-option" }, IE = {
17226
17234
  "aria-hidden": "true",
17227
17235
  class: "box"
17228
- }, IE = {
17236
+ }, LE = {
17229
17237
  key: 0,
17230
17238
  class: "mark"
17231
- }, LE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
17239
+ }, RE = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17232
17240
  __name: "CheckboxOption",
17233
17241
  props: /*@__PURE__*/ h({ label: { type: String } }, {
17234
17242
  modelValue: {
@@ -17240,20 +17248,20 @@ var PE = { class: "checkbox-option" }, FE = {
17240
17248
  emits: ["update:modelValue"],
17241
17249
  setup(t) {
17242
17250
  let n = b(t, "modelValue");
17243
- return (i, a) => (y(), e("label", PE, [
17251
+ return (i, a) => (y(), e("label", FE, [
17244
17252
  de(r("input", {
17245
17253
  "onUpdate:modelValue": a[0] ||= (e) => n.value = e,
17246
17254
  class: "checkbox-input",
17247
17255
  type: "checkbox"
17248
17256
  }, null, 512), [[C, n.value]]),
17249
- r("span", FE, [n.value ? (y(), e("span", IE)) : ie("", !0)]),
17257
+ r("span", IE, [n.value ? (y(), e("span", LE)) : ie("", !0)]),
17250
17258
  re(" " + w(t.label), 1)
17251
17259
  ]));
17252
17260
  }
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 = {
17261
+ }), [["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"]]), zE = ["for"], BE = { class: "field-shell" }, VE = {
17254
17262
  key: 0,
17255
17263
  class: "field-trailing"
17256
- }, VE = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
17264
+ }, HE = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17257
17265
  __name: "FieldShell",
17258
17266
  props: {
17259
17267
  disabled: {
@@ -17274,9 +17282,9 @@ var PE = { class: "checkbox-option" }, FE = {
17274
17282
  key: 0,
17275
17283
  class: "field-label",
17276
17284
  for: t.labelFor
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));
17285
+ }, w(t.label), 9, zE)) : ie("", !0), r("div", BE, [ce(n.$slots, "default", {}, void 0, !0), n.$slots.trailing ? (y(), e("div", VE, [ce(n.$slots, "trailing", {}, void 0, !0)])) : ie("", !0)])], 2));
17278
17286
  }
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({
17287
+ }), [["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"]]), UE = ["id", "disabled"], WE = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17280
17288
  inheritAttrs: !1,
17281
17289
  __name: "TextInput",
17282
17290
  props: /*@__PURE__*/ h({
@@ -17298,7 +17306,7 @@ var PE = { class: "checkbox-option" }, FE = {
17298
17306
  return t({
17299
17307
  focus: () => o.value?.focus(),
17300
17308
  select: () => o.value?.select()
17301
- }), (t, s) => (y(), f(VE, {
17309
+ }), (t, s) => (y(), f(HE, {
17302
17310
  disabled: e.disabled,
17303
17311
  label: i.label,
17304
17312
  "label-for": se(a)
@@ -17311,7 +17319,7 @@ var PE = { class: "checkbox-option" }, FE = {
17311
17319
  class: "field-input",
17312
17320
  type: "text",
17313
17321
  disabled: e.disabled
17314
- }, t.$attrs), null, 16, HE), [[me, n.value]])]),
17322
+ }, t.$attrs), null, 16, UE), [[me, n.value]])]),
17315
17323
  _: 1
17316
17324
  }, 8, [
17317
17325
  "disabled",
@@ -17319,27 +17327,27 @@ var PE = { class: "checkbox-option" }, FE = {
17319
17327
  "label-for"
17320
17328
  ]));
17321
17329
  }
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 = {
17330
+ }), [["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"]]), GE = {
17323
17331
  key: 0,
17324
17332
  class: "picker-label"
17325
- }, GE = [
17333
+ }, KE = [
17326
17334
  "popovertarget",
17327
17335
  "aria-expanded",
17328
17336
  "aria-label"
17329
- ], KE = {
17337
+ ], qE = {
17330
17338
  key: 0,
17331
17339
  class: "value"
17332
- }, qE = ["id", "aria-label"], JE = ["id"], YE = ["aria-label", "aria-labelledby"], XE = [
17340
+ }, JE = ["id", "aria-label"], YE = ["id"], XE = ["aria-label", "aria-labelledby"], ZE = [
17333
17341
  "aria-checked",
17334
17342
  "aria-label",
17335
17343
  "tabindex",
17336
17344
  "onClick",
17337
17345
  "onKeydown"
17338
- ], ZE = [
17346
+ ], QE = [
17339
17347
  "aria-label",
17340
17348
  "aria-valuenow",
17341
17349
  "aria-valuetext"
17342
- ], QE = ["aria-label", "aria-valuenow"], $E = /*#__PURE__*/ Hw(/* @__PURE__ */ p({
17350
+ ], $E = ["aria-label", "aria-valuenow"], eD = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17343
17351
  __name: "ColorPicker",
17344
17352
  props: /*@__PURE__*/ h({
17345
17353
  label: { type: String },
@@ -17361,7 +17369,7 @@ var PE = { class: "checkbox-option" }, FE = {
17361
17369
  }),
17362
17370
  emits: ["update:modelValue"],
17363
17371
  setup(t) {
17364
- let a = b(t, "modelValue"), { t: o } = SE(), s = u(TE, void 0), c = i(() => {
17372
+ let a = b(t, "modelValue"), { t: o } = CE(), s = u(EE, void 0), c = i(() => {
17365
17373
  let e = s?.value;
17366
17374
  return [{
17367
17375
  key: "global",
@@ -17572,7 +17580,7 @@ var PE = { class: "checkbox-option" }, FE = {
17572
17580
  if (e.newState !== "open") return;
17573
17581
  let t = re.value, n = ae.value;
17574
17582
  if (!(t && n)) return;
17575
- let r = t.getBoundingClientRect(), i = NE(r, window.innerHeight);
17583
+ let r = t.getBoundingClientRect(), i = PE(r, window.innerHeight);
17576
17584
  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`;
17577
17585
  }
17578
17586
  function Le(e) {
@@ -17597,7 +17605,7 @@ var PE = { class: "checkbox-option" }, FE = {
17597
17605
  t instanceof Node && ae.value?.contains(t) || ae.value?.matches(":popover-open") && ae.value.hidePopover();
17598
17606
  }
17599
17607
  return v(O), (i, a) => (y(), e("div", { class: oe(["color-picker", { "has-label": t.label && !t.compact }]) }, [
17600
- t.label && !t.compact ? (y(), e("span", WE, w(t.label), 1)) : ie("", !0),
17608
+ t.label && !t.compact ? (y(), e("span", GE, w(t.label), 1)) : ie("", !0),
17601
17609
  r("button", {
17602
17610
  ref_key: "trigger",
17603
17611
  ref: re,
@@ -17611,7 +17619,7 @@ var PE = { class: "checkbox-option" }, FE = {
17611
17619
  }, [r("span", {
17612
17620
  class: oe(["swatch", { checker: ue.value }]),
17613
17621
  style: te(ue.value ? {} : { backgroundColor: de.value })
17614
- }, null, 6), t.compact ? ie("", !0) : (y(), e("span", KE, w(pe.value), 1))], 42, GE),
17622
+ }, null, 6), t.compact ? ie("", !0) : (y(), e("span", qE, w(pe.value), 1))], 42, KE),
17615
17623
  r("div", {
17616
17624
  id: se(g),
17617
17625
  ref_key: "popover",
@@ -17632,7 +17640,7 @@ var PE = { class: "checkbox-option" }, FE = {
17632
17640
  key: 0,
17633
17641
  id: `${se(g)}-${t.key}`,
17634
17642
  class: "palette-heading"
17635
- }, w(t.label), 9, JE)) : ie("", !0), r("div", {
17643
+ }, w(t.label), 9, YE)) : ie("", !0), r("div", {
17636
17644
  class: "palette",
17637
17645
  role: "radiogroup",
17638
17646
  "aria-label": p.value ? void 0 : t.label,
@@ -17650,7 +17658,7 @@ var PE = { class: "checkbox-option" }, FE = {
17650
17658
  style: te({ backgroundColor: t }),
17651
17659
  onClick: (e) => Ae(t),
17652
17660
  onKeydown: (e) => je(e, i, n)
17653
- }, null, 46, XE))), 128))], 8, YE)]))), 128)),
17661
+ }, null, 46, ZE))), 128))], 8, XE)]))), 128)),
17654
17662
  h.value ? ie("", !0) : (y(), e(n, { key: 0 }, [r("div", {
17655
17663
  ref_key: "svArea",
17656
17664
  ref: ce,
@@ -17672,7 +17680,7 @@ var PE = { class: "checkbox-option" }, FE = {
17672
17680
  top: `${(1 - E.value) * 100}%`,
17673
17681
  backgroundColor: _e.value
17674
17682
  })
17675
- }, null, 4)], 44, ZE), r("div", {
17683
+ }, null, 4)], 44, QE), r("div", {
17676
17684
  class: "hue-track",
17677
17685
  role: "slider",
17678
17686
  tabindex: "0",
@@ -17685,8 +17693,8 @@ var PE = { class: "checkbox-option" }, FE = {
17685
17693
  }, [r("div", {
17686
17694
  class: "hue-thumb",
17687
17695
  style: te({ left: `${C.value / 360 * 100}%` })
17688
- }, null, 4)], 40, QE)], 64)),
17689
- h.value ? ie("", !0) : (y(), f(UE, {
17696
+ }, null, 4)], 40, $E)], 64)),
17697
+ h.value ? ie("", !0) : (y(), f(WE, {
17690
17698
  key: 1,
17691
17699
  modelValue: D.value,
17692
17700
  "onUpdate:modelValue": a[0] ||= (e) => D.value = e,
@@ -17702,17 +17710,17 @@ var PE = { class: "checkbox-option" }, FE = {
17702
17710
  "aria-label",
17703
17711
  "aria-invalid"
17704
17712
  ])),
17705
- t.allowTransparent ? (y(), f(LE, {
17713
+ t.allowTransparent ? (y(), f(RE, {
17706
17714
  key: 2,
17707
17715
  class: "transparent-toggle",
17708
17716
  label: se(o)("colorPicker.transparent"),
17709
17717
  "model-value": ue.value,
17710
17718
  "onUpdate:modelValue": Fe
17711
17719
  }, null, 8, ["label", "model-value"])) : ie("", !0)
17712
- ], 40, qE)
17720
+ ], 40, JE)
17713
17721
  ], 2));
17714
17722
  }
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({
17723
+ }), [["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"]]), tD = { class: "select-wrap" }, nD = ["id", "disabled"], rD = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17716
17724
  inheritAttrs: !1,
17717
17725
  __name: "SelectInput",
17718
17726
  props: /*@__PURE__*/ h({
@@ -17737,19 +17745,19 @@ var PE = { class: "checkbox-option" }, FE = {
17737
17745
  let a = b(n, "modelValue"), o = n, s = x(), c = i(() => a.value === "" && !o.emptyIsValue), l = S("select");
17738
17746
  return m(a, async (e) => {
17739
17747
  await t(), l.value && l.value.value !== e && (l.value.value = e);
17740
- }), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(VE, {
17748
+ }), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(HE, {
17741
17749
  disabled: n.disabled,
17742
17750
  label: o.label,
17743
17751
  "label-for": se(s)
17744
17752
  }, {
17745
- default: ee(() => [r("span", eD, [de(r("select", he({
17753
+ default: ee(() => [r("span", tD, [de(r("select", he({
17746
17754
  id: se(s),
17747
17755
  ref_key: "select",
17748
17756
  ref: l,
17749
17757
  "onUpdate:modelValue": i[0] ||= (e) => a.value = e,
17750
17758
  class: "field-select",
17751
17759
  disabled: n.disabled
17752
- }, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, tD), [[pe, a.value]]), d(vE, {
17760
+ }, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, nD), [[pe, a.value]]), d(yE, {
17753
17761
  class: "chevron",
17754
17762
  name: "chevron-down",
17755
17763
  size: 12
@@ -17764,14 +17772,14 @@ var PE = { class: "checkbox-option" }, FE = {
17764
17772
  }), [["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"]]);
17765
17773
  //#endregion
17766
17774
  //#region src/composables/useBrandCustomFonts.ts
17767
- function rD() {
17768
- let e = u(TE, void 0);
17769
- return i(() => Uw(e?.value.customFonts ?? []));
17775
+ function iD() {
17776
+ let e = u(EE, void 0);
17777
+ return i(() => Ww(e?.value.customFonts ?? []));
17770
17778
  }
17771
17779
  //#endregion
17772
17780
  //#region src/composables/useBrandFonts.ts
17773
- function iD(e) {
17774
- let t = u(TE, void 0);
17781
+ function aD(e) {
17782
+ let t = u(EE, void 0);
17775
17783
  return i(() => {
17776
17784
  let n = t?.value.fonts ?? [];
17777
17785
  if (n.length === 0) return Ci;
@@ -17785,25 +17793,25 @@ function iD(e) {
17785
17793
  }
17786
17794
  //#endregion
17787
17795
  //#region src/i18n/locales.ts
17788
- var aD = ["en", "sv"], oD = "sv";
17789
- function sD(e) {
17790
- return aD.includes(e);
17796
+ var oD = ["en", "sv"], sD = "sv";
17797
+ function cD(e) {
17798
+ return oD.includes(e);
17791
17799
  }
17792
17800
  //#endregion
17793
17801
  //#region src/mergeTags.ts
17794
- function cD(e) {
17802
+ function lD(e) {
17795
17803
  return Object.keys(e).filter((t) => !e[t]?.conditionOnly);
17796
17804
  }
17797
- function lD(e, t, n) {
17805
+ function uD(e, t, n) {
17798
17806
  let r = e[t];
17799
17807
  return r ? r[n] ?? r.sv ?? t : t;
17800
17808
  }
17801
17809
  //#endregion
17802
17810
  //#region src/urls.ts
17803
- var uD = /^[a-z][a-z0-9+.-]*:/i, dD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, fD = /^[/#?]/;
17804
- function pD(e) {
17811
+ var dD = /^[a-z][a-z0-9+.-]*:/i, fD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, pD = /^[/#?]/;
17812
+ function mD(e) {
17805
17813
  let t = e.trim();
17806
- return uD.test(t) ? dD.test(t) ? t : "" : t === "" || fD.test(t) ? t : `https://${t}`;
17814
+ return dD.test(t) ? fD.test(t) ? t : "" : t === "" || pD.test(t) ? t : `https://${t}`;
17807
17815
  }
17808
17816
  //#endregion
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 };
17817
+ export { Sw as $, Vi as $t, eT as A, oi as An, cp as At, Tw as B, ei as Bn, Bi as Bt, kE as C, Fi as Cn, Jg as Ct, yE as D, Ei as Dn, gg as Dt, SE as E, Ti as En, hg as Et, Bw as F, ni as Fn, H as Ft, sw as G, Wi as Gt, Dw as H, Vr as Hn, la as Ht, iw as I, ri as In, cs as It, Nw as J, Xi as Jt, ew as K, Qi as Kt, tw as L, ii as Ln, Ws as Lt, Vw as M, yi as Mn, Ac as Mt, zw as N, vi as Nn, Nc as Nt, Kw as O, si as On, cm as Ot, Rw as P, _i as Pn, V as Pt, jw as Q, Ki as Qt, yw as R, $r as Rn, R as Rt, OE as S, Ri as Sn, G as St, xE as T, ki as Tn, mg as Tt, ww as U, ua as Ut, Ow as V, Br as Vn, ca as Vt, cw as W, da as Wt, Mw as X, Ui as Xt, Pw as Y, na as Yt, Aw as Z, sa as Zt, DE as _, wa as _n, tb as _t, oD as a, ga as an, pw as at, jE as b, ia as bn, K as bt, iD as c, ea as cn, fw as ct, WE as d, ta as dn, QC as dt, qi as en, Cw as et, HE as f, ra as fn, $C as ft, AE as g, oa as gn, oC as gt, PE as h, Sa as hn, rC as ht, sD as i, xa as in, gw as it, Uw as j, xi as jn, U as jt, Ww as k, ai as kn, ap as kt, rD as l, Gi as ln, kC as lt, ME as m, Hi as mn, sC as mt, lD as n, Ca as nn, mw as nt, cD as o, _a as on, bw as ot, RE as p, ba as pn, nC as pt, Iw as q, Zi as qt, uD as r, ya as rn, vw as rt, aD as s, Ta as sn, kw as st, mD as t, va as tn, hw as tt, eD as u, $i as un, cC as ut, EE as v, Yi as vn, eb as vt, CE as w, wi as wn, W as wt, TE as x, Pi as xn, B_ as xt, wE as y, aa as yn, I_ as yt, xw as z, ti as zn, B as zt };