@bygga.dev/editor 1.9.8 → 1.9.11

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.
@@ -15872,12 +15872,23 @@ var eC = K.create({
15872
15872
  "left",
15873
15873
  "center",
15874
15874
  "right"
15875
- ]), TC = /* @__PURE__ */ J({
15875
+ ]), TC = /* @__PURE__ */ Ky(["full", "fit"]), EC = [
15876
+ 1,
15877
+ 1.1,
15878
+ 1.2,
15879
+ 1.3,
15880
+ 1.4,
15881
+ 1.5,
15882
+ 1.6,
15883
+ 1.8,
15884
+ 2
15885
+ ], DC = { lineHeight: /* @__PURE__ */ Yy(/* @__PURE__ */ Y(EC)) }, OC = /* @__PURE__ */ J({
15876
15886
  type: /* @__PURE__ */ Y("text"),
15877
15887
  text: vC,
15878
- width: /* @__PURE__ */ Zy(/* @__PURE__ */ Ky(["full", "fit"]), "full"),
15888
+ width: /* @__PURE__ */ Zy(TC, "full"),
15879
15889
  align: /* @__PURE__ */ Zy(wC, "left"),
15880
15890
  paragraphSpacing: /* @__PURE__ */ Yy(dC),
15891
+ ...DC,
15881
15892
  fitSize: /* @__PURE__ */ Yy(/* @__PURE__ */ J({
15882
15893
  width: (/* @__PURE__ */ ky()).check(/* @__PURE__ */ jy(), /* @__PURE__ */ vy(1)),
15883
15894
  height: (/* @__PURE__ */ ky()).check(/* @__PURE__ */ jy(), /* @__PURE__ */ vy(1))
@@ -15885,13 +15896,14 @@ var eC = K.create({
15885
15896
  ...bC,
15886
15897
  ...xC,
15887
15898
  ...CC
15888
- }), EC = /* @__PURE__ */ J({
15899
+ }), kC = /* @__PURE__ */ J({
15889
15900
  type: /* @__PURE__ */ Y("header"),
15890
15901
  text: yC,
15902
+ ...DC,
15891
15903
  ...bC,
15892
15904
  ...xC,
15893
15905
  ...CC
15894
- }), DC = /* @__PURE__ */ J({
15906
+ }), AC = /* @__PURE__ */ J({
15895
15907
  type: /* @__PURE__ */ Y("image"),
15896
15908
  image: pC,
15897
15909
  alt: /* @__PURE__ */ wy(),
@@ -15900,7 +15912,7 @@ var eC = K.create({
15900
15912
  ...bC,
15901
15913
  ...xC,
15902
15914
  ...CC
15903
- }), OC = /* @__PURE__ */ Ky([
15915
+ }), jC = /* @__PURE__ */ Ky([
15904
15916
  "arial",
15905
15917
  "tahoma",
15906
15918
  "trebuchet",
@@ -15908,7 +15920,7 @@ var eC = K.create({
15908
15920
  "georgia",
15909
15921
  "times",
15910
15922
  "courier"
15911
- ]), kC = [
15923
+ ]), MC = [
15912
15924
  10,
15913
15925
  12,
15914
15926
  14,
@@ -15920,24 +15932,24 @@ var eC = K.create({
15920
15932
  32,
15921
15933
  36,
15922
15934
  48
15923
- ], AC = /* @__PURE__ */ J({
15935
+ ], NC = /* @__PURE__ */ J({
15924
15936
  type: /* @__PURE__ */ Y("button"),
15925
15937
  label: /* @__PURE__ */ wy(),
15926
15938
  url: /* @__PURE__ */ wy(),
15927
15939
  textColor: uC,
15928
- font: OC,
15940
+ font: jC,
15929
15941
  align: /* @__PURE__ */ Zy(wC, "center"),
15930
- fontSize: /* @__PURE__ */ Yy(/* @__PURE__ */ Y(kC)),
15942
+ fontSize: /* @__PURE__ */ Yy(/* @__PURE__ */ Y(MC)),
15931
15943
  customFont: /* @__PURE__ */ Yy((/* @__PURE__ */ wy()).check(/* @__PURE__ */ yy(1))),
15932
15944
  fontWeight: /* @__PURE__ */ Yy(/* @__PURE__ */ Ky(["normal", "bold"])),
15933
15945
  minWidth: /* @__PURE__ */ Yy(dC),
15934
15946
  ...bC,
15935
15947
  ...CC
15936
- }), jC = /* @__PURE__ */ J({
15948
+ }), PC = /* @__PURE__ */ J({
15937
15949
  type: /* @__PURE__ */ Y("spacer"),
15938
15950
  size: dC,
15939
15951
  ...CC
15940
- }), MC = /* @__PURE__ */ J({
15952
+ }), FC = /* @__PURE__ */ J({
15941
15953
  type: /* @__PURE__ */ Y("divider"),
15942
15954
  color: uC,
15943
15955
  thickness: dC,
@@ -15947,27 +15959,27 @@ var eC = K.create({
15947
15959
  value: 0
15948
15960
  })),
15949
15961
  ...CC
15950
- }), NC = /* @__PURE__ */ J({
15962
+ }), IC = /* @__PURE__ */ J({
15951
15963
  type: /* @__PURE__ */ Y("html"),
15952
15964
  html: /* @__PURE__ */ wy(),
15953
15965
  margin: fC,
15954
15966
  ...CC
15955
- }), PC = /* @__PURE__ */ J({
15967
+ }), LC = /* @__PURE__ */ J({
15956
15968
  type: /* @__PURE__ */ Y("custom"),
15957
15969
  plugin: (/* @__PURE__ */ wy()).check(/* @__PURE__ */ yy(1)),
15958
15970
  data: SC,
15959
15971
  html: /* @__PURE__ */ wy(),
15960
15972
  margin: fC,
15961
15973
  ...CC
15962
- }), FC = (/* @__PURE__ */ wy()).check(/* @__PURE__ */ by(tb)), IC = /* @__PURE__ */ Ry([/* @__PURE__ */ J({
15963
- tagId: FC,
15974
+ }), RC = (/* @__PURE__ */ wy()).check(/* @__PURE__ */ by(tb)), zC = /* @__PURE__ */ Ry([/* @__PURE__ */ J({
15975
+ tagId: RC,
15964
15976
  operator: /* @__PURE__ */ Ky(["equals", "notEquals"]),
15965
15977
  value: /* @__PURE__ */ wy()
15966
15978
  }), /* @__PURE__ */ J({
15967
- tagId: FC,
15979
+ tagId: RC,
15968
15980
  operator: /* @__PURE__ */ Ky(["anyOf", "noneOf"]),
15969
15981
  values: /* @__PURE__ */ Fy(/* @__PURE__ */ wy())
15970
- })]), LC = {
15982
+ })]), BC = {
15971
15983
  ...bC,
15972
15984
  ...xC,
15973
15985
  ...CC,
@@ -15977,66 +15989,66 @@ var eC = K.create({
15977
15989
  desktop: /* @__PURE__ */ Ny(),
15978
15990
  mobile: /* @__PURE__ */ Ny()
15979
15991
  }),
15980
- condition: /* @__PURE__ */ Yy(IC),
15992
+ condition: /* @__PURE__ */ Yy(zC),
15981
15993
  gap: /* @__PURE__ */ Yy(dC),
15982
15994
  locked: /* @__PURE__ */ Yy(/* @__PURE__ */ Ny())
15983
- }, RC = /* @__PURE__ */ J({
15995
+ }, VC = /* @__PURE__ */ J({
15984
15996
  id: /* @__PURE__ */ wy(),
15985
15997
  get data() {
15986
- return VC;
15998
+ return WC;
15987
15999
  }
15988
- }), zC = /* @__PURE__ */ Fy(RC), BC = /* @__PURE__ */ By("layout", [
16000
+ }), HC = /* @__PURE__ */ Fy(VC), UC = /* @__PURE__ */ By("layout", [
15989
16001
  /* @__PURE__ */ J({
15990
- ...LC,
16002
+ ...BC,
15991
16003
  layout: /* @__PURE__ */ Y("single"),
15992
- children: /* @__PURE__ */ Hy([zC])
16004
+ children: /* @__PURE__ */ Hy([HC])
15993
16005
  }),
15994
16006
  /* @__PURE__ */ J({
15995
- ...LC,
16007
+ ...BC,
15996
16008
  layout: /* @__PURE__ */ Y("halves"),
15997
- children: /* @__PURE__ */ Hy([zC, zC])
16009
+ children: /* @__PURE__ */ Hy([HC, HC])
15998
16010
  }),
15999
16011
  /* @__PURE__ */ J({
16000
- ...LC,
16012
+ ...BC,
16001
16013
  layout: /* @__PURE__ */ Y("leftWide"),
16002
- children: /* @__PURE__ */ Hy([zC, zC])
16014
+ children: /* @__PURE__ */ Hy([HC, HC])
16003
16015
  }),
16004
16016
  /* @__PURE__ */ J({
16005
- ...LC,
16017
+ ...BC,
16006
16018
  layout: /* @__PURE__ */ Y("rightWide"),
16007
- children: /* @__PURE__ */ Hy([zC, zC])
16019
+ children: /* @__PURE__ */ Hy([HC, HC])
16008
16020
  }),
16009
16021
  /* @__PURE__ */ J({
16010
- ...LC,
16022
+ ...BC,
16011
16023
  layout: /* @__PURE__ */ Y("thirds"),
16012
16024
  children: /* @__PURE__ */ Hy([
16013
- zC,
16014
- zC,
16015
- zC
16025
+ HC,
16026
+ HC,
16027
+ HC
16016
16028
  ])
16017
16029
  }),
16018
16030
  /* @__PURE__ */ J({
16019
- ...LC,
16031
+ ...BC,
16020
16032
  layout: /* @__PURE__ */ Y("quarters"),
16021
16033
  children: /* @__PURE__ */ Hy([
16022
- zC,
16023
- zC,
16024
- zC,
16025
- zC
16034
+ HC,
16035
+ HC,
16036
+ HC,
16037
+ HC
16026
16038
  ])
16027
16039
  })
16028
- ]), VC = /* @__PURE__ */ By("type", [
16029
- TC,
16030
- EC,
16031
- DC,
16040
+ ]), WC = /* @__PURE__ */ By("type", [
16041
+ OC,
16042
+ kC,
16032
16043
  AC,
16033
- jC,
16034
- MC,
16035
16044
  NC,
16036
16045
  PC,
16037
- BC
16046
+ FC,
16047
+ IC,
16048
+ LC,
16049
+ UC
16038
16050
  ]);
16039
- function HC(e, t) {
16051
+ function GC(e, t) {
16040
16052
  return e.children.flatMap((e, n) => e.flatMap((e, r) => {
16041
16053
  if (e.data.type !== "columns") return [];
16042
16054
  let i = e.data.condition !== void 0, a = [
@@ -16045,26 +16057,26 @@ function HC(e, t) {
16045
16057
  r,
16046
16058
  "data"
16047
16059
  ];
16048
- return t && i ? [a] : HC(e.data, t || i).map((e) => [...a, ...e]);
16060
+ return t && i ? [a] : GC(e.data, t || i).map((e) => [...a, ...e]);
16049
16061
  }));
16050
16062
  }
16051
- var UC = /* @__PURE__ */ J({
16063
+ var KC = /* @__PURE__ */ J({
16052
16064
  name: (/* @__PURE__ */ wy()).check(/* @__PURE__ */ yy(1)),
16053
16065
  href: /* @__PURE__ */ Dy(),
16054
16066
  fontFamily: /* @__PURE__ */ Yy((/* @__PURE__ */ wy()).check(/* @__PURE__ */ yy(1))),
16055
16067
  type: /* @__PURE__ */ Yy(/* @__PURE__ */ Y(["file", "stylesheet"]))
16056
- }), WC = /* @__PURE__ */ Y(["email", "page"]), GC = /* @__PURE__ */ J({
16068
+ }), qC = /* @__PURE__ */ Y(["email", "page"]), JC = /* @__PURE__ */ J({
16057
16069
  version: /* @__PURE__ */ Y(2),
16058
- kind: WC,
16059
- root: BC,
16070
+ kind: qC,
16071
+ root: UC,
16060
16072
  background: hC,
16061
- font: OC,
16073
+ font: jC,
16062
16074
  width: (/* @__PURE__ */ ky()).check(/* @__PURE__ */ jy(), /* @__PURE__ */ vy(400), /* @__PURE__ */ _y(cC)),
16063
16075
  plugins: /* @__PURE__ */ Yy(/* @__PURE__ */ Wy(/* @__PURE__ */ wy(), SC)),
16064
- customFonts: /* @__PURE__ */ Yy(/* @__PURE__ */ Fy(UC))
16076
+ customFonts: /* @__PURE__ */ Yy(/* @__PURE__ */ Fy(KC))
16065
16077
  });
16066
- function KC(e) {
16067
- let t = e.condition === void 0 ? [] : [[]], n = e.children.flatMap((e, t) => e.flatMap((e, n) => e.data.type === "columns" ? KC(e.data).map((e) => [
16078
+ function YC(e) {
16079
+ let t = e.condition === void 0 ? [] : [[]], n = e.children.flatMap((e, t) => e.flatMap((e, n) => e.data.type === "columns" ? YC(e.data).map((e) => [
16068
16080
  "children",
16069
16081
  t,
16070
16082
  n,
@@ -16073,15 +16085,15 @@ function KC(e) {
16073
16085
  ]) : []));
16074
16086
  return [...t, ...n];
16075
16087
  }
16076
- var qC = GC.check((e) => {
16077
- let { root: t } = e.value, [n] = HC(t, t.condition !== void 0);
16088
+ var XC = JC.check((e) => {
16089
+ let { root: t } = e.value, [n] = GC(t, t.condition !== void 0);
16078
16090
  if (n && e.issues.push({
16079
16091
  code: "custom",
16080
16092
  input: e.value,
16081
16093
  path: ["root", ...n],
16082
16094
  message: "a conditional columns block may not contain another one"
16083
16095
  }), e.value.kind === "page") {
16084
- let [n] = KC(t);
16096
+ let [n] = YC(t);
16085
16097
  n && e.issues.push({
16086
16098
  code: "custom",
16087
16099
  input: e.value,
@@ -16093,25 +16105,25 @@ var qC = GC.check((e) => {
16093
16105
  message: "a page document may not carry a Condition — dynamic content is an email feature"
16094
16106
  });
16095
16107
  }
16096
- }), JC = /* @__PURE__ */ J({
16108
+ }), ZC = /* @__PURE__ */ J({
16097
16109
  version: /* @__PURE__ */ Y(2),
16098
- kind: WC,
16099
- block: RC
16110
+ kind: qC,
16111
+ block: VC
16100
16112
  });
16101
- function YC(e) {
16113
+ function QC(e) {
16102
16114
  if (e.data.type !== "columns") return [];
16103
16115
  let t = e.data.condition !== void 0;
16104
- return HC(e.data, t).map((e) => ["data", ...e]);
16116
+ return GC(e.data, t).map((e) => ["data", ...e]);
16105
16117
  }
16106
- var XC = JC.check((e) => {
16107
- let [t] = YC(e.value.block);
16118
+ var $C = ZC.check((e) => {
16119
+ let [t] = QC(e.value.block);
16108
16120
  if (t && e.issues.push({
16109
16121
  code: "custom",
16110
16122
  input: e.value,
16111
16123
  path: ["block", ...t],
16112
16124
  message: "a conditional columns block may not contain another one"
16113
16125
  }), e.value.kind === "page" && e.value.block.data.type === "columns") {
16114
- let [t] = KC(e.value.block.data);
16126
+ let [t] = YC(e.value.block.data);
16115
16127
  t && e.issues.push({
16116
16128
  code: "custom",
16117
16129
  input: e.value,
@@ -16125,28 +16137,28 @@ var XC = JC.check((e) => {
16125
16137
  });
16126
16138
  }
16127
16139
  });
16128
- function ZC(e) {
16140
+ function ew(e) {
16129
16141
  return e.map((e) => {
16130
16142
  let t = e.path.join(".");
16131
16143
  return t ? `${t}: ${e.message}` : e.message;
16132
16144
  }).join("; ");
16133
16145
  }
16134
- function QC(e) {
16135
- let t = qC.safeParse(e);
16136
- if (!t.success) throw TypeError(`[bygga] not a valid Document — ${ZC(t.error.issues)}`);
16146
+ function tw(e) {
16147
+ let t = XC.safeParse(e);
16148
+ if (!t.success) throw TypeError(`[bygga] not a valid Document — ${ew(t.error.issues)}`);
16137
16149
  return t.data;
16138
16150
  }
16139
- function $C(e) {
16140
- let t = XC.safeParse(e);
16141
- if (!t.success) throw TypeError(`[bygga] not a valid Saved block — ${ZC(t.error.issues)}`);
16151
+ function nw(e) {
16152
+ let t = $C.safeParse(e);
16153
+ if (!t.success) throw TypeError(`[bygga] not a valid Saved block — ${ew(t.error.issues)}`);
16142
16154
  return t.data;
16143
16155
  }
16144
16156
  //#endregion
16145
16157
  //#region ../core/src/render/blockStyles.ts
16146
- function ew(e) {
16158
+ function rw(e) {
16147
16159
  return Math.round(Math.max(400, Math.min(cC, e)));
16148
16160
  }
16149
- function tw(e, t = !1) {
16161
+ function iw(e, t = !1) {
16150
16162
  switch (e.type) {
16151
16163
  case "solid": return { backgroundColor: bi(e.color) };
16152
16164
  case "image": {
@@ -16154,13 +16166,13 @@ function tw(e, t = !1) {
16154
16166
  return n ? {
16155
16167
  ...t ? {} : { backgroundColor: bi(e.fallbackColor) },
16156
16168
  backgroundImage: `url("${n}")`,
16157
- ...nw(e.fit)
16169
+ ...aw(e.fit)
16158
16170
  } : { backgroundColor: bi(e.fallbackColor) };
16159
16171
  }
16160
16172
  default: throw Error("Unhandled background type");
16161
16173
  }
16162
16174
  }
16163
- function nw(e) {
16175
+ function aw(e) {
16164
16176
  switch (e.mode) {
16165
16177
  case "fill": return {
16166
16178
  backgroundRepeat: "no-repeat",
@@ -16178,48 +16190,48 @@ function nw(e) {
16178
16190
  };
16179
16191
  case "tile": return {
16180
16192
  backgroundRepeat: "repeat",
16181
- backgroundSize: `${rw(e.zoom)}%`
16193
+ backgroundSize: `${ow(e.zoom)}%`
16182
16194
  };
16183
16195
  default: throw Error("Unhandled image fit");
16184
16196
  }
16185
16197
  }
16186
- function rw(e) {
16198
+ function ow(e) {
16187
16199
  return Number.isFinite(e) ? Math.max(5, Math.min(100, e)) : 50;
16188
16200
  }
16189
- function iw(e) {
16201
+ function sw(e) {
16190
16202
  return xi(e.type === "solid" ? e.color : e.fallbackColor);
16191
16203
  }
16192
- function aw(e) {
16204
+ function cw(e) {
16193
16205
  let { top: t, right: n, bottom: r, left: i } = qi(e.width);
16194
16206
  return t > 0 || n > 0 || r > 0 || i > 0;
16195
16207
  }
16196
- function ow(e) {
16197
- return aw(e) ? {
16208
+ function lw(e) {
16209
+ return cw(e) ? {
16198
16210
  borderWidth: Ji(e.width),
16199
16211
  borderStyle: e.style,
16200
16212
  borderColor: bi(e.color)
16201
16213
  } : {};
16202
16214
  }
16203
- function sw(e) {
16215
+ function uw(e) {
16204
16216
  return e === void 0 ? {} : { height: `${e}px` };
16205
16217
  }
16206
- function cw(e) {
16218
+ function dw(e) {
16207
16219
  return e === void 0 ? void 0 : String(e);
16208
16220
  }
16209
- function lw(e) {
16221
+ function fw(e) {
16210
16222
  return e === void 0 ? {} : { minHeight: `${e}px` };
16211
16223
  }
16212
- function uw(e) {
16224
+ function pw(e) {
16213
16225
  return {
16214
- ...tw(e.background),
16215
- ...ow(e.border),
16216
- ...lw(e.height),
16226
+ ...iw(e.background),
16227
+ ...lw(e.border),
16228
+ ...fw(e.height),
16217
16229
  borderRadius: Ji(e.borderRadius),
16218
16230
  width: "100%",
16219
16231
  boxSizing: "border-box"
16220
16232
  };
16221
16233
  }
16222
- function dw(e) {
16234
+ function mw(e) {
16223
16235
  return {
16224
16236
  display: "block",
16225
16237
  padding: Ji(e.padding),
@@ -16229,43 +16241,43 @@ function dw(e) {
16229
16241
  overflow: "hidden"
16230
16242
  };
16231
16243
  }
16232
- function fw(e) {
16244
+ function hw(e) {
16233
16245
  return {
16234
- ...uw(e),
16235
- ...dw(e)
16246
+ ...pw(e),
16247
+ ...mw(e)
16236
16248
  };
16237
16249
  }
16238
- function pw(e, t = !1) {
16250
+ function gw(e, t = !1) {
16239
16251
  return {
16240
- ...tw(e.background, t),
16241
- ...ow(e.border),
16252
+ ...iw(e.background, t),
16253
+ ...lw(e.border),
16242
16254
  borderCollapse: "collapse",
16243
16255
  width: "100%"
16244
16256
  };
16245
16257
  }
16246
- function mw(e) {
16258
+ function _w(e) {
16247
16259
  return {
16248
16260
  backgroundColor: bi(e.background.type === "solid" ? e.background.color : e.background.fallbackColor),
16249
16261
  boxSizing: "border-box"
16250
16262
  };
16251
16263
  }
16252
- function hw(e) {
16264
+ function vw(e) {
16253
16265
  return {
16254
- ...sw(e.height),
16266
+ ...uw(e.height),
16255
16267
  padding: Ji(e.padding)
16256
16268
  };
16257
16269
  }
16258
- function gw(e, t, n) {
16270
+ function yw(e, t, n) {
16259
16271
  return {
16260
16272
  border: "0",
16261
16273
  borderRadius: Ji(e),
16262
16274
  display: "block",
16263
16275
  height: "auto",
16264
16276
  width: `${t ?? 100}%`,
16265
- ...n ? { margin: _w(n) } : {}
16277
+ ...n ? { margin: bw(n) } : {}
16266
16278
  };
16267
16279
  }
16268
- function _w(e) {
16280
+ function bw(e) {
16269
16281
  switch (e) {
16270
16282
  case "left": return "0 auto 0 0";
16271
16283
  case "center": return "0 auto";
@@ -16273,27 +16285,27 @@ function _w(e) {
16273
16285
  default: throw Error("Unhandled alignment");
16274
16286
  }
16275
16287
  }
16276
- function vw(e, t, n) {
16288
+ function xw(e, t, n) {
16277
16289
  if (t === void 0) return;
16278
16290
  let { left: r, right: i } = qi(e);
16279
16291
  return Math.max(1, Math.round((t - r - i) * (n ?? 100) / 100));
16280
16292
  }
16281
- function yw(e) {
16293
+ function Sw(e) {
16282
16294
  let { top: t, right: n, bottom: r, left: i } = qi(e);
16283
16295
  return t || n || r || i ? { padding: Ji(e) } : {};
16284
16296
  }
16285
- function bw(e, t) {
16297
+ function Cw(e, t) {
16286
16298
  if (t === void 0) return;
16287
16299
  let { left: n, right: r } = qi(e);
16288
16300
  return Math.max(1, t - n - r);
16289
16301
  }
16290
- function xw(e) {
16302
+ function ww(e) {
16291
16303
  return { textAlign: e };
16292
16304
  }
16293
- function Sw(e) {
16305
+ function Tw(e) {
16294
16306
  return { textAlign: e };
16295
16307
  }
16296
- function Cw() {
16308
+ function Ew() {
16297
16309
  return {
16298
16310
  borderCollapse: "separate",
16299
16311
  borderSpacing: "0",
@@ -16301,7 +16313,7 @@ function Cw() {
16301
16313
  verticalAlign: "top"
16302
16314
  };
16303
16315
  }
16304
- function ww() {
16316
+ function Dw() {
16305
16317
  return {
16306
16318
  borderCollapse: "separate",
16307
16319
  borderSpacing: "0",
@@ -16309,21 +16321,21 @@ function ww() {
16309
16321
  verticalAlign: "top"
16310
16322
  };
16311
16323
  }
16312
- function Tw(e) {
16324
+ function Ow(e) {
16313
16325
  return {
16314
- ...tw(e.background),
16315
- ...ow(e.border),
16326
+ ...iw(e.background),
16327
+ ...lw(e.border),
16316
16328
  borderRadius: Ji(e.borderRadius),
16317
16329
  "mso-padding-alt": Ji(e.padding)
16318
16330
  };
16319
16331
  }
16320
- function Ew(e, t) {
16332
+ function kw(e, t) {
16321
16333
  if (!e.minWidth) return;
16322
16334
  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
16335
  return i > 0 ? i : void 0;
16324
16336
  }
16325
- function Dw(e, t) {
16326
- let n = Ew(e, t);
16337
+ function Aw(e, t) {
16338
+ let n = kw(e, t);
16327
16339
  return {
16328
16340
  color: bi(e.textColor),
16329
16341
  display: "block",
@@ -16336,14 +16348,14 @@ function Dw(e, t) {
16336
16348
  textDecoration: "none"
16337
16349
  };
16338
16350
  }
16339
- function Ow(e) {
16351
+ function jw(e) {
16340
16352
  return {
16341
16353
  color: bi(e.textColor),
16342
16354
  fontFamily: e.customFont ?? Ti(e.font),
16343
16355
  fontWeight: e.fontWeight ?? "bold"
16344
16356
  };
16345
16357
  }
16346
- function kw(e) {
16358
+ function Mw(e) {
16347
16359
  return {
16348
16360
  height: `${e}px`,
16349
16361
  lineHeight: `${e}px`,
@@ -16351,7 +16363,7 @@ function kw(e) {
16351
16363
  "mso-line-height-rule": "exactly"
16352
16364
  };
16353
16365
  }
16354
- function Aw(e) {
16366
+ function Nw(e) {
16355
16367
  let t = Math.max(1, e.thickness);
16356
16368
  return {
16357
16369
  backgroundColor: bi(e.color),
@@ -16362,7 +16374,7 @@ function Aw(e) {
16362
16374
  borderRadius: Ji(e.borderRadius)
16363
16375
  };
16364
16376
  }
16365
- function jw(e) {
16377
+ function Pw(e) {
16366
16378
  let { top: t, right: n, bottom: r, left: i } = qi(e.borderRadius);
16367
16379
  return {
16368
16380
  ...t > 0 || n > 0 || r > 0 || i > 0 ? {
@@ -16372,11 +16384,11 @@ function jw(e) {
16372
16384
  width: "100%"
16373
16385
  };
16374
16386
  }
16375
- function Mw(e, t = !1) {
16387
+ function Fw(e, t = !1) {
16376
16388
  return {
16377
- ...tw(e.background, t),
16378
- ...ow(e.border),
16379
- ...aw(e.border) ? {
16389
+ ...iw(e.background, t),
16390
+ ...lw(e.border),
16391
+ ...cw(e.border) ? {
16380
16392
  borderCollapse: "separate",
16381
16393
  borderSpacing: "0"
16382
16394
  } : { borderCollapse: "collapse" },
@@ -16385,7 +16397,7 @@ function Mw(e, t = !1) {
16385
16397
  width: "100%"
16386
16398
  };
16387
16399
  }
16388
- function Nw(e) {
16400
+ function Iw(e) {
16389
16401
  return {
16390
16402
  backgroundColor: bi(e.background.type === "solid" ? e.background.color : e.background.fallbackColor),
16391
16403
  borderRadius: Ji(e.borderRadius),
@@ -16393,19 +16405,19 @@ function Nw(e) {
16393
16405
  boxSizing: "border-box"
16394
16406
  };
16395
16407
  }
16396
- function Pw() {
16408
+ function Lw() {
16397
16409
  return {
16398
16410
  borderCollapse: "collapse",
16399
16411
  tableLayout: "fixed",
16400
16412
  width: "100%"
16401
16413
  };
16402
16414
  }
16403
- function Fw(e) {
16415
+ function Rw(e) {
16404
16416
  let { left: t, right: n } = qi(e);
16405
16417
  return Math.min((t + n) / 4, t, n);
16406
16418
  }
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) => {
16419
+ function zw(e, t, n, r = 0) {
16420
+ let i = Zi[e], a = i.reduce((e, t) => e + t, 0), { top: o, right: s, bottom: c, left: l } = qi(t), u = Rw(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) => {
16409
16421
  if (f === 0) {
16410
16422
  let t = `${p(e) * 100}%`;
16411
16423
  return {
@@ -16439,23 +16451,23 @@ function Iw(e, t, n, r = 0) {
16439
16451
  }
16440
16452
  //#endregion
16441
16453
  //#region ../core/src/blockStyle.ts
16442
- var Lw = [
16454
+ var Bw = [
16443
16455
  "left",
16444
16456
  "center",
16445
16457
  "right",
16446
16458
  "justify"
16447
16459
  ];
16448
- function Rw(e) {
16449
- return Lw.includes(e);
16460
+ function Vw(e) {
16461
+ return Bw.includes(e);
16450
16462
  }
16451
- function zw(e) {
16463
+ function Hw(e) {
16452
16464
  return `${e}px`;
16453
16465
  }
16454
- function Bw(e, t) {
16466
+ function Uw(e, t) {
16455
16467
  if (!e) return [];
16456
16468
  let n = null;
16457
16469
  e.customFont === void 0 ? e.font !== void 0 && e.font !== t && (n = Ti(e.font)) : n = e.customFont;
16458
- let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null : zw(e.fontSize), a = [];
16470
+ let r = e.color?.type === "color" ? _i(e.color) : null, i = e.fontSize === void 0 ? null : Hw(e.fontSize), a = [];
16459
16471
  return (n !== null || r !== null || i !== null) && a.push({
16460
16472
  type: "textStyle",
16461
16473
  attrs: {
@@ -16465,12 +16477,12 @@ function Bw(e, t) {
16465
16477
  }
16466
16478
  }), e.bold && a.push({ type: "bold" }), e.italic && a.push({ type: "italic" }), e.underline && a.push({ type: "underline" }), a;
16467
16479
  }
16468
- function Vw(e, t, n) {
16480
+ function Ww(e, t, n) {
16469
16481
  let r = ga(e, t), { data: i } = r;
16470
16482
  switch (i.type) {
16471
16483
  case "text": {
16472
16484
  let e = n?.text;
16473
- e && (i.text = Ii(e.align), Hw(i, e), e.paragraphSpacing !== void 0 && (i.paragraphSpacing = e.paragraphSpacing));
16485
+ e && (i.text = Ii(e.align), Gw(i, e), e.paragraphSpacing !== void 0 && (i.paragraphSpacing = e.paragraphSpacing), e.lineHeight !== void 0 && (i.lineHeight = e.lineHeight));
16474
16486
  break;
16475
16487
  }
16476
16488
  case "header": {
@@ -16478,8 +16490,8 @@ function Vw(e, t, n) {
16478
16490
  e && (i.text = zi(Li, {
16479
16491
  level: e.level,
16480
16492
  align: e.align,
16481
- marks: Bw(e, t)
16482
- }), Hw(i, e));
16493
+ marks: Uw(e, t)
16494
+ }), Gw(i, e), e.lineHeight !== void 0 && (i.lineHeight = e.lineHeight));
16483
16495
  break;
16484
16496
  }
16485
16497
  case "button": {
@@ -16500,7 +16512,7 @@ function Vw(e, t, n) {
16500
16512
  }
16501
16513
  return r;
16502
16514
  }
16503
- function Hw(e, t) {
16515
+ function Gw(e, t) {
16504
16516
  t.background && (e.background = {
16505
16517
  type: "solid",
16506
16518
  color: t.background
@@ -16508,23 +16520,23 @@ function Hw(e, t) {
16508
16520
  }
16509
16521
  //#endregion
16510
16522
  //#region \0plugin-vue:export-helper
16511
- var Uw = (e, t) => {
16523
+ var Kw = (e, t) => {
16512
16524
  let n = e.__vccOpts || e;
16513
16525
  for (let [e, r] of t) n[e] = r;
16514
16526
  return n;
16515
16527
  };
16516
16528
  //#endregion
16517
16529
  //#region src/customFonts.ts
16518
- function Ww(e) {
16530
+ function qw(e) {
16519
16531
  return e.map((e) => ({
16520
16532
  ...e,
16521
16533
  stack: Ai(e)
16522
16534
  }));
16523
16535
  }
16524
- var Gw = /* @__PURE__ */ new Set();
16525
- function Kw(e) {
16536
+ var Jw = /* @__PURE__ */ new Set();
16537
+ function Yw(e) {
16526
16538
  if (!(typeof document > "u")) {
16527
- for (let t of e) if (!Gw.has(t.href)) if (Gw.add(t.href), Ni(t) === "file") {
16539
+ for (let t of e) if (!Jw.has(t.href)) if (Jw.add(t.href), Ni(t) === "file") {
16528
16540
  if (typeof FontFace > "u") continue;
16529
16541
  let e = new FontFace(t.name, `url("${t.href}")`, { display: "swap" });
16530
16542
  document.fonts.add(e), e.load().catch((e) => {
@@ -16538,9 +16550,9 @@ function Kw(e) {
16538
16550
  }
16539
16551
  }
16540
16552
  }
16541
- function qw(e, t) {
16553
+ function Xw(e, t) {
16542
16554
  if (Array.isArray(e)) {
16543
- for (let n of e) qw(n, t);
16555
+ for (let n of e) Xw(n, t);
16544
16556
  return;
16545
16557
  }
16546
16558
  if (typeof e != "object" || !e) return;
@@ -16550,9 +16562,9 @@ function qw(e, t) {
16550
16562
  typeof e?.fontFamily == "string" && t.stacks.add(e.fontFamily);
16551
16563
  }
16552
16564
  n.type === "button" && typeof n.customFont == "string" && t.stacks.add(n.customFont), n.type === "custom" && typeof n.html == "string" && t.pluginHtml.push(n.html);
16553
- for (let e of Object.values(n)) qw(e, t);
16565
+ for (let e of Object.values(n)) Xw(e, t);
16554
16566
  }
16555
- var Jw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Yw = {
16567
+ var Zw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Qw = {
16556
16568
  """: "\"",
16557
16569
  """: "\"",
16558
16570
  """: "\"",
@@ -16563,31 +16575,31 @@ var Jw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Yw = {
16563
16575
  "&": "&",
16564
16576
  "&": "&"
16565
16577
  };
16566
- function Xw(e) {
16567
- return e.replace(Jw, (e) => Yw[e.toLowerCase()] ?? e);
16578
+ function $w(e) {
16579
+ return e.replace(Zw, (e) => Qw[e.toLowerCase()] ?? e);
16568
16580
  }
16569
- function Zw(e) {
16581
+ function eT(e) {
16570
16582
  let t = (Ai(e).split(",")[0] ?? "").replace(/["']/g, "").trim();
16571
16583
  return [.../* @__PURE__ */ new Set([e.name.trim(), t])].filter((e) => e !== "");
16572
16584
  }
16573
- var Qw = /[.*+?^${}()|[\]\\]/g;
16574
- function $w(e, t) {
16585
+ var tT = /[.*+?^${}()|[\]\\]/g;
16586
+ function nT(e, t) {
16575
16587
  if (e.length === 0) return !1;
16576
- let n = e.map(Xw);
16577
- return Zw(t).some((e) => {
16578
- let t = RegExp(`(^|[^\\w-])${e.replace(Qw, "\\$&")}(?![\\w-])`, "i");
16588
+ let n = e.map($w);
16589
+ return eT(t).some((e) => {
16590
+ let t = RegExp(`(^|[^\\w-])${e.replace(tT, "\\$&")}(?![\\w-])`, "i");
16579
16591
  return n.some((e) => t.test(e));
16580
16592
  });
16581
16593
  }
16582
- function eT(e, t) {
16594
+ function rT(e, t) {
16583
16595
  let n = {
16584
16596
  stacks: /* @__PURE__ */ new Set(),
16585
16597
  pluginHtml: []
16586
16598
  };
16587
- qw(e.root, n);
16599
+ Xw(e.root, n);
16588
16600
  let r = e.customFonts ?? [], i = [], a = (e) => {
16589
16601
  let t = Ai(e);
16590
- (n.stacks.has(t) || $w(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
16602
+ (n.stacks.has(t) || nT(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
16591
16603
  };
16592
16604
  for (let { stack: e, ...n } of t) a(n);
16593
16605
  for (let e of r) a(e);
@@ -16596,15 +16608,15 @@ function eT(e, t) {
16596
16608
  }
16597
16609
  //#endregion
16598
16610
  //#region src/assets/icons/board.svg?component
16599
- var tT = {
16611
+ var iT = {
16600
16612
  xmlns: "http://www.w3.org/2000/svg",
16601
16613
  width: "55",
16602
16614
  height: "55",
16603
16615
  fill: "none",
16604
16616
  viewBox: "0 0 54.64 54.64"
16605
16617
  };
16606
- function nT(t, n) {
16607
- return y(), e("svg", tT, [...n[0] ||= [r("path", {
16618
+ function aT(t, n) {
16619
+ return y(), e("svg", iT, [...n[0] ||= [r("path", {
16608
16620
  stroke: "currentColor",
16609
16621
  "stroke-linejoin": "round",
16610
16622
  "stroke-width": "2",
@@ -16616,15 +16628,15 @@ function nT(t, n) {
16616
16628
  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"
16617
16629
  }, null, -1)]]);
16618
16630
  }
16619
- var rT = { render: nT }, iT = {
16631
+ var oT = { render: aT }, sT = {
16620
16632
  xmlns: "http://www.w3.org/2000/svg",
16621
16633
  width: "16",
16622
16634
  height: "16",
16623
16635
  fill: "none",
16624
16636
  viewBox: "0 0 16 16"
16625
16637
  };
16626
- function aT(t, n) {
16627
- return y(), e("svg", iT, [...n[0] ||= [r("path", {
16638
+ function cT(t, n) {
16639
+ return y(), e("svg", sT, [...n[0] ||= [r("path", {
16628
16640
  stroke: "currentColor",
16629
16641
  "stroke-linecap": "round",
16630
16642
  "stroke-linejoin": "round",
@@ -16632,15 +16644,15 @@ function aT(t, n) {
16632
16644
  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"
16633
16645
  }, null, -1)]]);
16634
16646
  }
16635
- var oT = { render: aT }, sT = {
16647
+ var lT = { render: cT }, uT = {
16636
16648
  xmlns: "http://www.w3.org/2000/svg",
16637
16649
  width: "16",
16638
16650
  height: "16",
16639
16651
  fill: "none",
16640
16652
  viewBox: "0 0 16 16"
16641
16653
  };
16642
- function cT(t, n) {
16643
- return y(), e("svg", sT, [...n[0] ||= [r("path", {
16654
+ function dT(t, n) {
16655
+ return y(), e("svg", uT, [...n[0] ||= [r("path", {
16644
16656
  stroke: "currentColor",
16645
16657
  "stroke-linecap": "round",
16646
16658
  "stroke-linejoin": "round",
@@ -16648,15 +16660,15 @@ function cT(t, n) {
16648
16660
  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"
16649
16661
  }, null, -1)]]);
16650
16662
  }
16651
- var lT = { render: cT }, uT = {
16663
+ var fT = { render: dT }, pT = {
16652
16664
  xmlns: "http://www.w3.org/2000/svg",
16653
16665
  width: "40",
16654
16666
  height: "40",
16655
16667
  fill: "none",
16656
16668
  viewBox: "0 0 40 40"
16657
16669
  };
16658
- function dT(t, n) {
16659
- return y(), e("svg", uT, [...n[0] ||= [r("rect", {
16670
+ function mT(t, n) {
16671
+ return y(), e("svg", pT, [...n[0] ||= [r("rect", {
16660
16672
  width: "28",
16661
16673
  height: "14",
16662
16674
  x: "6",
@@ -16672,15 +16684,15 @@ function dT(t, n) {
16672
16684
  d: "M14 20h12"
16673
16685
  }, null, -1)]]);
16674
16686
  }
16675
- var fT = { render: dT }, pT = {
16687
+ var hT = { render: mT }, gT = {
16676
16688
  xmlns: "http://www.w3.org/2000/svg",
16677
16689
  width: "16",
16678
16690
  height: "16",
16679
16691
  fill: "none",
16680
16692
  viewBox: "0 0 16 16"
16681
16693
  };
16682
- function mT(t, n) {
16683
- return y(), e("svg", pT, [...n[0] ||= [r("path", {
16694
+ function _T(t, n) {
16695
+ return y(), e("svg", gT, [...n[0] ||= [r("path", {
16684
16696
  stroke: "currentColor",
16685
16697
  "stroke-linecap": "round",
16686
16698
  "stroke-linejoin": "round",
@@ -16688,30 +16700,30 @@ function mT(t, n) {
16688
16700
  d: "m4 6 4 4 4-4"
16689
16701
  }, null, -1)]]);
16690
16702
  }
16691
- var hT = { render: mT }, gT = {
16703
+ var vT = { render: _T }, yT = {
16692
16704
  xmlns: "http://www.w3.org/2000/svg",
16693
16705
  width: "16",
16694
16706
  height: "16",
16695
16707
  fill: "none",
16696
16708
  viewBox: "0 0 16 16"
16697
16709
  };
16698
- function _T(t, n) {
16699
- return y(), e("svg", gT, [...n[0] ||= [r("path", {
16710
+ function bT(t, n) {
16711
+ return y(), e("svg", yT, [...n[0] ||= [r("path", {
16700
16712
  stroke: "currentColor",
16701
16713
  "stroke-linecap": "round",
16702
16714
  "stroke-width": "1.2",
16703
16715
  d: "m4 4 8 8M12 4l-8 8"
16704
16716
  }, null, -1)]]);
16705
16717
  }
16706
- var vT = { render: _T }, yT = {
16718
+ var xT = { render: bT }, ST = {
16707
16719
  xmlns: "http://www.w3.org/2000/svg",
16708
16720
  width: "40",
16709
16721
  height: "40",
16710
16722
  fill: "none",
16711
16723
  viewBox: "0 0 40 40"
16712
16724
  };
16713
- function bT(t, n) {
16714
- return y(), e("svg", yT, [...n[0] ||= [r("rect", {
16725
+ function CT(t, n) {
16726
+ return y(), e("svg", ST, [...n[0] ||= [r("rect", {
16715
16727
  width: "28",
16716
16728
  height: "22",
16717
16729
  x: "6",
@@ -16727,15 +16739,15 @@ function bT(t, n) {
16727
16739
  d: "M15.33 9.6v20.8M24.67 9.6v20.8"
16728
16740
  }, null, -1)]]);
16729
16741
  }
16730
- var xT = { render: bT }, ST = {
16742
+ var wT = { render: CT }, TT = {
16731
16743
  xmlns: "http://www.w3.org/2000/svg",
16732
16744
  width: "16",
16733
16745
  height: "16",
16734
16746
  fill: "none",
16735
16747
  viewBox: "0 0 16 16"
16736
16748
  };
16737
- function CT(t, n) {
16738
- return y(), e("svg", ST, [...n[0] ||= [r("rect", {
16749
+ function ET(t, n) {
16750
+ return y(), e("svg", TT, [...n[0] ||= [r("rect", {
16739
16751
  width: "7.33",
16740
16752
  height: "7.67",
16741
16753
  x: "6",
@@ -16752,15 +16764,15 @@ function CT(t, n) {
16752
16764
  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"
16753
16765
  }, null, -1)]]);
16754
16766
  }
16755
- var wT = { render: CT }, TT = {
16767
+ var DT = { render: ET }, OT = {
16756
16768
  xmlns: "http://www.w3.org/2000/svg",
16757
16769
  width: "16",
16758
16770
  height: "16",
16759
16771
  fill: "none",
16760
16772
  viewBox: "0 0 16 16"
16761
16773
  };
16762
- function ET(t, n) {
16763
- return y(), e("svg", TT, [...n[0] ||= [r("rect", {
16774
+ function kT(t, n) {
16775
+ return y(), e("svg", OT, [...n[0] ||= [r("rect", {
16764
16776
  width: "13",
16765
16777
  height: "8.5",
16766
16778
  x: "1.5",
@@ -16776,15 +16788,15 @@ function ET(t, n) {
16776
16788
  d: "M6 14.5h4M8 11v3.5"
16777
16789
  }, null, -1)]]);
16778
16790
  }
16779
- var DT = { render: ET }, OT = {
16791
+ var AT = { render: kT }, jT = {
16780
16792
  xmlns: "http://www.w3.org/2000/svg",
16781
16793
  width: "40",
16782
16794
  height: "40",
16783
16795
  fill: "none",
16784
16796
  viewBox: "0 0 20 20"
16785
16797
  };
16786
- function kT(t, n) {
16787
- return y(), e("svg", OT, [...n[0] ||= [r("g", {
16798
+ function MT(t, n) {
16799
+ return y(), e("svg", jT, [...n[0] ||= [r("g", {
16788
16800
  stroke: "currentColor",
16789
16801
  "stroke-linecap": "round",
16790
16802
  "stroke-linejoin": "round",
@@ -16794,15 +16806,15 @@ function kT(t, n) {
16794
16806
  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"
16795
16807
  })], -1)]]);
16796
16808
  }
16797
- var AT = { render: kT }, jT = {
16809
+ var NT = { render: MT }, PT = {
16798
16810
  xmlns: "http://www.w3.org/2000/svg",
16799
16811
  width: "16",
16800
16812
  height: "16",
16801
16813
  fill: "none",
16802
16814
  viewBox: "0 0 16 16"
16803
16815
  };
16804
- function MT(t, n) {
16805
- return y(), e("svg", jT, [...n[0] ||= [r("path", {
16816
+ function FT(t, n) {
16817
+ return y(), e("svg", PT, [...n[0] ||= [r("path", {
16806
16818
  stroke: "currentColor",
16807
16819
  "stroke-width": "1.2",
16808
16820
  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"
@@ -16814,15 +16826,15 @@ function MT(t, n) {
16814
16826
  d: "M11.133 8a3.133 3.133 0 1 1-6.266 0 3.133 3.133 0 0 1 6.266 0"
16815
16827
  }, null, -1)]]);
16816
16828
  }
16817
- var NT = { render: MT }, PT = {
16829
+ var IT = { render: FT }, LT = {
16818
16830
  xmlns: "http://www.w3.org/2000/svg",
16819
16831
  width: "40",
16820
16832
  height: "40",
16821
16833
  fill: "none",
16822
16834
  viewBox: "0 0 40 40"
16823
16835
  };
16824
- function FT(t, n) {
16825
- return y(), e("svg", PT, [...n[0] ||= [r("path", {
16836
+ function RT(t, n) {
16837
+ return y(), e("svg", LT, [...n[0] ||= [r("path", {
16826
16838
  stroke: "currentColor",
16827
16839
  "stroke-linecap": "round",
16828
16840
  "stroke-linejoin": "round",
@@ -16830,15 +16842,15 @@ function FT(t, n) {
16830
16842
  d: "M10 8v24M24 8v24M10 20h14M30 26l3-2v8"
16831
16843
  }, null, -1)]]);
16832
16844
  }
16833
- var IT = { render: FT }, LT = {
16845
+ var zT = { render: RT }, BT = {
16834
16846
  xmlns: "http://www.w3.org/2000/svg",
16835
16847
  width: "40",
16836
16848
  height: "40",
16837
16849
  fill: "none",
16838
16850
  viewBox: "0 0 40 40"
16839
16851
  };
16840
- function RT(t, n) {
16841
- return y(), e("svg", LT, [...n[0] ||= [r("rect", {
16852
+ function VT(t, n) {
16853
+ return y(), e("svg", BT, [...n[0] ||= [r("rect", {
16842
16854
  width: "28",
16843
16855
  height: "22",
16844
16856
  x: "6",
@@ -16855,15 +16867,15 @@ function RT(t, n) {
16855
16867
  d: "m17 16-4 4 4 4M23 16l4 4-4 4"
16856
16868
  }, null, -1)]]);
16857
16869
  }
16858
- var zT = { render: RT }, BT = {
16870
+ var HT = { render: VT }, UT = {
16859
16871
  xmlns: "http://www.w3.org/2000/svg",
16860
16872
  width: "40",
16861
16873
  height: "40",
16862
16874
  fill: "none",
16863
16875
  viewBox: "0 0 40 40"
16864
16876
  };
16865
- function VT(t, n) {
16866
- return y(), e("svg", BT, [...n[0] ||= [
16877
+ function WT(t, n) {
16878
+ return y(), e("svg", UT, [...n[0] ||= [
16867
16879
  r("rect", {
16868
16880
  width: "28",
16869
16881
  height: "22",
@@ -16897,30 +16909,30 @@ function VT(t, n) {
16897
16909
  }, null, -1)
16898
16910
  ]]);
16899
16911
  }
16900
- var HT = { render: VT }, UT = {
16912
+ var GT = { render: WT }, KT = {
16901
16913
  xmlns: "http://www.w3.org/2000/svg",
16902
16914
  width: "16",
16903
16915
  height: "16",
16904
16916
  fill: "none",
16905
16917
  viewBox: "0 0 16 16"
16906
16918
  };
16907
- function WT(t, n) {
16908
- return y(), e("svg", UT, [...n[0] ||= [r("path", {
16919
+ function qT(t, n) {
16920
+ return y(), e("svg", KT, [...n[0] ||= [r("path", {
16909
16921
  fill: "currentColor",
16910
16922
  "fill-rule": "evenodd",
16911
16923
  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",
16912
16924
  "clip-rule": "evenodd"
16913
16925
  }, null, -1)]]);
16914
16926
  }
16915
- var GT = { render: WT }, KT = {
16927
+ var JT = { render: qT }, YT = {
16916
16928
  xmlns: "http://www.w3.org/2000/svg",
16917
16929
  width: "16",
16918
16930
  height: "16",
16919
16931
  fill: "none",
16920
16932
  viewBox: "0 0 16 16"
16921
16933
  };
16922
- function qT(t, n) {
16923
- return y(), e("svg", KT, [...n[0] ||= [r("path", {
16934
+ function XT(t, n) {
16935
+ return y(), e("svg", YT, [...n[0] ||= [r("path", {
16924
16936
  stroke: "currentColor",
16925
16937
  "stroke-linecap": "round",
16926
16938
  "stroke-width": "1.2",
@@ -16933,15 +16945,15 @@ function qT(t, n) {
16933
16945
  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"
16934
16946
  }, null, -1)]]);
16935
16947
  }
16936
- var JT = { render: qT }, YT = {
16948
+ var ZT = { render: XT }, QT = {
16937
16949
  xmlns: "http://www.w3.org/2000/svg",
16938
16950
  width: "16",
16939
16951
  height: "16",
16940
16952
  fill: "none",
16941
16953
  viewBox: "0 0 16 16"
16942
16954
  };
16943
- function XT(t, n) {
16944
- return y(), e("svg", YT, [...n[0] ||= [
16955
+ function $T(t, n) {
16956
+ return y(), e("svg", QT, [...n[0] ||= [
16945
16957
  r("rect", {
16946
16958
  width: "9.33",
16947
16959
  height: "7",
@@ -16967,15 +16979,15 @@ function XT(t, n) {
16967
16979
  }, null, -1)
16968
16980
  ]]);
16969
16981
  }
16970
- var ZT = { render: XT }, QT = {
16982
+ var eE = { render: $T }, tE = {
16971
16983
  xmlns: "http://www.w3.org/2000/svg",
16972
16984
  width: "16",
16973
16985
  height: "16",
16974
16986
  fill: "none",
16975
16987
  viewBox: "0 0 16 16"
16976
16988
  };
16977
- function $T(t, n) {
16978
- return y(), e("svg", QT, [...n[0] ||= [r("rect", {
16989
+ function nE(t, n) {
16990
+ return y(), e("svg", tE, [...n[0] ||= [r("rect", {
16979
16991
  width: "7",
16980
16992
  height: "13",
16981
16993
  x: "4.5",
@@ -16991,15 +17003,15 @@ function $T(t, n) {
16991
17003
  d: "M6.5 12.5h3"
16992
17004
  }, null, -1)]]);
16993
17005
  }
16994
- var eE = { render: $T }, tE = {
17006
+ var rE = { render: nE }, iE = {
16995
17007
  xmlns: "http://www.w3.org/2000/svg",
16996
17008
  width: "40",
16997
17009
  height: "40",
16998
17010
  fill: "none",
16999
17011
  viewBox: "0 0 40 40"
17000
17012
  };
17001
- function nE(t, n) {
17002
- return y(), e("svg", tE, [...n[0] ||= [r("path", {
17013
+ function aE(t, n) {
17014
+ return y(), e("svg", iE, [...n[0] ||= [r("path", {
17003
17015
  stroke: "currentColor",
17004
17016
  "stroke-linecap": "round",
17005
17017
  "stroke-linejoin": "round",
@@ -17007,15 +17019,15 @@ function nE(t, n) {
17007
17019
  d: "M35 10H5M35 20H5M20 30H5"
17008
17020
  }, null, -1)]]);
17009
17021
  }
17010
- var rE = { render: nE }, iE = {
17022
+ var oE = { render: aE }, sE = {
17011
17023
  xmlns: "http://www.w3.org/2000/svg",
17012
17024
  width: "18",
17013
17025
  height: "18",
17014
17026
  fill: "none",
17015
17027
  viewBox: "0 0 18.092 18.419"
17016
17028
  };
17017
- function aE(t, n) {
17018
- return y(), e("svg", iE, [...n[0] ||= [
17029
+ function cE(t, n) {
17030
+ return y(), e("svg", sE, [...n[0] ||= [
17019
17031
  r("path", {
17020
17032
  stroke: "currentColor",
17021
17033
  "stroke-linejoin": "round",
@@ -17037,15 +17049,15 @@ function aE(t, n) {
17037
17049
  }, null, -1)
17038
17050
  ]]);
17039
17051
  }
17040
- var oE = { render: aE }, sE = {
17052
+ var lE = { render: cE }, uE = {
17041
17053
  xmlns: "http://www.w3.org/2000/svg",
17042
17054
  width: "40",
17043
17055
  height: "40",
17044
17056
  fill: "none",
17045
17057
  viewBox: "0 0 40 40"
17046
17058
  };
17047
- function cE(t, n) {
17048
- return y(), e("svg", sE, [...n[0] ||= [r("path", {
17059
+ function dE(t, n) {
17060
+ return y(), e("svg", uE, [...n[0] ||= [r("path", {
17049
17061
  stroke: "currentColor",
17050
17062
  "stroke-linecap": "round",
17051
17063
  "stroke-width": "1.2",
@@ -17058,15 +17070,15 @@ function cE(t, n) {
17058
17070
  d: "M16.5 17.5 20 14l3.5 3.5M16.5 22.5 20 26l3.5-3.5"
17059
17071
  }, null, -1)]]);
17060
17072
  }
17061
- var lE = { render: cE }, uE = {
17073
+ var fE = { render: dE }, pE = {
17062
17074
  xmlns: "http://www.w3.org/2000/svg",
17063
17075
  width: "16",
17064
17076
  height: "16",
17065
17077
  fill: "none",
17066
17078
  viewBox: "0 0 16 16"
17067
17079
  };
17068
- function dE(t, n) {
17069
- return y(), e("svg", uE, [...n[0] ||= [r("path", {
17080
+ function mE(t, n) {
17081
+ return y(), e("svg", pE, [...n[0] ||= [r("path", {
17070
17082
  stroke: "currentColor",
17071
17083
  "stroke-linecap": "round",
17072
17084
  "stroke-linejoin": "round",
@@ -17074,15 +17086,15 @@ function dE(t, n) {
17074
17086
  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"
17075
17087
  }, null, -1)]]);
17076
17088
  }
17077
- var fE = { render: dE }, pE = {
17089
+ var hE = { render: mE }, gE = {
17078
17090
  xmlns: "http://www.w3.org/2000/svg",
17079
17091
  width: "16",
17080
17092
  height: "16",
17081
17093
  fill: "none",
17082
17094
  viewBox: "0 0 16 16"
17083
17095
  };
17084
- function mE(t, n) {
17085
- return y(), e("svg", pE, [...n[0] ||= [
17096
+ function _E(t, n) {
17097
+ return y(), e("svg", gE, [...n[0] ||= [
17086
17098
  r("path", {
17087
17099
  stroke: "currentColor",
17088
17100
  "stroke-linecap": "round",
@@ -17110,15 +17122,15 @@ function mE(t, n) {
17110
17122
  }, null, -1)
17111
17123
  ]]);
17112
17124
  }
17113
- var hE = { render: mE }, gE = {
17125
+ var vE = { render: _E }, yE = {
17114
17126
  xmlns: "http://www.w3.org/2000/svg",
17115
17127
  width: "20",
17116
17128
  height: "20",
17117
17129
  fill: "none",
17118
17130
  viewBox: "0 0 20 20"
17119
17131
  };
17120
- function _E(t, n) {
17121
- return y(), e("svg", gE, [...n[0] ||= [
17132
+ function bE(t, n) {
17133
+ return y(), e("svg", yE, [...n[0] ||= [
17122
17134
  r("path", {
17123
17135
  stroke: "currentColor",
17124
17136
  "stroke-linejoin": "round",
@@ -17139,7 +17151,7 @@ function _E(t, n) {
17139
17151
  }, null, -1)
17140
17152
  ]]);
17141
17153
  }
17142
- var vE = { render: _E }, yE = /* @__PURE__ */ p({
17154
+ var xE = { render: bE }, SE = /* @__PURE__ */ p({
17143
17155
  __name: "AppIcon",
17144
17156
  props: {
17145
17157
  name: { type: String },
@@ -17150,30 +17162,30 @@ var vE = { render: _E }, yE = /* @__PURE__ */ p({
17150
17162
  },
17151
17163
  setup(e) {
17152
17164
  let t = e, n = {
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
17165
+ pencil: lE,
17166
+ eye: IT,
17167
+ info: JT,
17168
+ board: oT,
17169
+ braces: fT,
17170
+ button: hT,
17171
+ trash: vE,
17172
+ warning: xE,
17173
+ close: xT,
17174
+ copy: DT,
17175
+ link: ZT,
17176
+ columns: wT,
17177
+ paragraph: oE,
17178
+ image: GT,
17179
+ mobile: rE,
17180
+ desktop: AT,
17181
+ spacer: fE,
17182
+ sparkles: hE,
17183
+ divider: NT,
17184
+ html: HT,
17185
+ "chevron-down": vT,
17186
+ bookmark: lT,
17187
+ heading: zT,
17188
+ lock: eE
17177
17189
  }, r = i(() => n[t.name]), a = i(() => typeof t.size == "number" ? `${t.size}px` : t.size);
17178
17190
  return (e, t) => (y(), f(c(r.value), {
17179
17191
  class: "app-icon",
@@ -17186,8 +17198,8 @@ var vE = { render: _E }, yE = /* @__PURE__ */ p({
17186
17198
  "aria-hidden": "true"
17187
17199
  }, null, 8, ["style"]));
17188
17200
  }
17189
- }), bE = Symbol("errorDialog");
17190
- function xE() {
17201
+ }), CE = Symbol("errorDialog");
17202
+ function wE() {
17191
17203
  let e = fe(null), t = {
17192
17204
  message: i(() => e.value),
17193
17205
  show: (t) => {
@@ -17197,26 +17209,26 @@ function xE() {
17197
17209
  e.value = null;
17198
17210
  }
17199
17211
  };
17200
- return o(bE, t), t;
17212
+ return o(CE, t), t;
17201
17213
  }
17202
- function SE() {
17203
- return u(bE);
17214
+ function TE() {
17215
+ return u(CE);
17204
17216
  }
17205
17217
  //#endregion
17206
17218
  //#region src/i18n/useAppI18n.ts
17207
- function CE() {
17219
+ function EE() {
17208
17220
  return Hr({ useScope: "global" });
17209
17221
  }
17210
17222
  //#endregion
17211
17223
  //#region src/providerKeys.ts
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");
17224
+ var DE = Symbol("editorConfig"), OE = Symbol("mergeTags"), kE = Symbol("brand"), AE = Symbol("blockStyles"), jE = Symbol("permission"), ME = Symbol("savedBlocks"), NE = Symbol("blockPlugins"), PE = Symbol("imageSearch");
17213
17225
  //#endregion
17214
17226
  //#region src/popoverPlacement.ts
17215
- function ME(e, t, n) {
17227
+ function FE(e, t, n) {
17216
17228
  return Math.max(n.top + t, Math.min(e, n.bottom));
17217
17229
  }
17218
- var NE = 8;
17219
- function PE(e, t, n = NE) {
17230
+ var IE = 8;
17231
+ function LE(e, t, n = IE) {
17220
17232
  let r = t - e.bottom - n, i = e.top - n;
17221
17233
  return r >= i ? {
17222
17234
  side: "below",
@@ -17230,13 +17242,13 @@ function PE(e, t, n = NE) {
17230
17242
  }
17231
17243
  //#endregion
17232
17244
  //#region src/components/CheckboxOption.vue?vue&type=script&setup=true&lang.ts
17233
- var FE = { class: "checkbox-option" }, IE = {
17245
+ var RE = { class: "checkbox-option" }, zE = {
17234
17246
  "aria-hidden": "true",
17235
17247
  class: "box"
17236
- }, LE = {
17248
+ }, BE = {
17237
17249
  key: 0,
17238
17250
  class: "mark"
17239
- }, RE = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17251
+ }, VE = /*#__PURE__*/ Kw(/* @__PURE__ */ p({
17240
17252
  __name: "CheckboxOption",
17241
17253
  props: /*@__PURE__*/ h({ label: { type: String } }, {
17242
17254
  modelValue: {
@@ -17248,20 +17260,20 @@ var FE = { class: "checkbox-option" }, IE = {
17248
17260
  emits: ["update:modelValue"],
17249
17261
  setup(t) {
17250
17262
  let n = b(t, "modelValue");
17251
- return (i, a) => (y(), e("label", FE, [
17263
+ return (i, a) => (y(), e("label", RE, [
17252
17264
  de(r("input", {
17253
17265
  "onUpdate:modelValue": a[0] ||= (e) => n.value = e,
17254
17266
  class: "checkbox-input",
17255
17267
  type: "checkbox"
17256
17268
  }, null, 512), [[C, n.value]]),
17257
- r("span", IE, [n.value ? (y(), e("span", LE)) : ie("", !0)]),
17269
+ r("span", zE, [n.value ? (y(), e("span", BE)) : ie("", !0)]),
17258
17270
  re(" " + w(t.label), 1)
17259
17271
  ]));
17260
17272
  }
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 = {
17273
+ }), [["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"]]), HE = ["for"], UE = { class: "field-shell" }, WE = {
17262
17274
  key: 0,
17263
17275
  class: "field-trailing"
17264
- }, HE = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17276
+ }, GE = /*#__PURE__*/ Kw(/* @__PURE__ */ p({
17265
17277
  __name: "FieldShell",
17266
17278
  props: {
17267
17279
  disabled: {
@@ -17282,9 +17294,9 @@ var FE = { class: "checkbox-option" }, IE = {
17282
17294
  key: 0,
17283
17295
  class: "field-label",
17284
17296
  for: t.labelFor
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));
17297
+ }, w(t.label), 9, HE)) : ie("", !0), r("div", UE, [ce(n.$slots, "default", {}, void 0, !0), n.$slots.trailing ? (y(), e("div", WE, [ce(n.$slots, "trailing", {}, void 0, !0)])) : ie("", !0)])], 2));
17286
17298
  }
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({
17299
+ }), [["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"]]), KE = ["id", "disabled"], qE = /*#__PURE__*/ Kw(/* @__PURE__ */ p({
17288
17300
  inheritAttrs: !1,
17289
17301
  __name: "TextInput",
17290
17302
  props: /*@__PURE__*/ h({
@@ -17306,7 +17318,7 @@ var FE = { class: "checkbox-option" }, IE = {
17306
17318
  return t({
17307
17319
  focus: () => o.value?.focus(),
17308
17320
  select: () => o.value?.select()
17309
- }), (t, s) => (y(), f(HE, {
17321
+ }), (t, s) => (y(), f(GE, {
17310
17322
  disabled: e.disabled,
17311
17323
  label: i.label,
17312
17324
  "label-for": se(a)
@@ -17319,7 +17331,7 @@ var FE = { class: "checkbox-option" }, IE = {
17319
17331
  class: "field-input",
17320
17332
  type: "text",
17321
17333
  disabled: e.disabled
17322
- }, t.$attrs), null, 16, UE), [[me, n.value]])]),
17334
+ }, t.$attrs), null, 16, KE), [[me, n.value]])]),
17323
17335
  _: 1
17324
17336
  }, 8, [
17325
17337
  "disabled",
@@ -17327,27 +17339,27 @@ var FE = { class: "checkbox-option" }, IE = {
17327
17339
  "label-for"
17328
17340
  ]));
17329
17341
  }
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 = {
17342
+ }), [["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"]]), JE = {
17331
17343
  key: 0,
17332
17344
  class: "picker-label"
17333
- }, KE = [
17345
+ }, YE = [
17334
17346
  "popovertarget",
17335
17347
  "aria-expanded",
17336
17348
  "aria-label"
17337
- ], qE = {
17349
+ ], XE = {
17338
17350
  key: 0,
17339
17351
  class: "value"
17340
- }, JE = ["id", "aria-label"], YE = ["id"], XE = ["aria-label", "aria-labelledby"], ZE = [
17352
+ }, ZE = ["id", "aria-label"], QE = ["id"], $E = ["aria-label", "aria-labelledby"], eD = [
17341
17353
  "aria-checked",
17342
17354
  "aria-label",
17343
17355
  "tabindex",
17344
17356
  "onClick",
17345
17357
  "onKeydown"
17346
- ], QE = [
17358
+ ], tD = [
17347
17359
  "aria-label",
17348
17360
  "aria-valuenow",
17349
17361
  "aria-valuetext"
17350
- ], $E = ["aria-label", "aria-valuenow"], eD = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17362
+ ], nD = ["aria-label", "aria-valuenow"], rD = /*#__PURE__*/ Kw(/* @__PURE__ */ p({
17351
17363
  __name: "ColorPicker",
17352
17364
  props: /*@__PURE__*/ h({
17353
17365
  label: { type: String },
@@ -17369,7 +17381,7 @@ var FE = { class: "checkbox-option" }, IE = {
17369
17381
  }),
17370
17382
  emits: ["update:modelValue"],
17371
17383
  setup(t) {
17372
- let a = b(t, "modelValue"), { t: o } = CE(), s = u(EE, void 0), c = i(() => {
17384
+ let a = b(t, "modelValue"), { t: o } = EE(), s = u(kE, void 0), c = i(() => {
17373
17385
  let e = s?.value;
17374
17386
  return [{
17375
17387
  key: "global",
@@ -17580,7 +17592,7 @@ var FE = { class: "checkbox-option" }, IE = {
17580
17592
  if (e.newState !== "open") return;
17581
17593
  let t = re.value, n = ae.value;
17582
17594
  if (!(t && n)) return;
17583
- let r = t.getBoundingClientRect(), i = PE(r, window.innerHeight);
17595
+ let r = t.getBoundingClientRect(), i = LE(r, window.innerHeight);
17584
17596
  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`;
17585
17597
  }
17586
17598
  function Le(e) {
@@ -17605,7 +17617,7 @@ var FE = { class: "checkbox-option" }, IE = {
17605
17617
  t instanceof Node && ae.value?.contains(t) || ae.value?.matches(":popover-open") && ae.value.hidePopover();
17606
17618
  }
17607
17619
  return v(O), (i, a) => (y(), e("div", { class: oe(["color-picker", { "has-label": t.label && !t.compact }]) }, [
17608
- t.label && !t.compact ? (y(), e("span", GE, w(t.label), 1)) : ie("", !0),
17620
+ t.label && !t.compact ? (y(), e("span", JE, w(t.label), 1)) : ie("", !0),
17609
17621
  r("button", {
17610
17622
  ref_key: "trigger",
17611
17623
  ref: re,
@@ -17619,7 +17631,7 @@ var FE = { class: "checkbox-option" }, IE = {
17619
17631
  }, [r("span", {
17620
17632
  class: oe(["swatch", { checker: ue.value }]),
17621
17633
  style: te(ue.value ? {} : { backgroundColor: de.value })
17622
- }, null, 6), t.compact ? ie("", !0) : (y(), e("span", qE, w(pe.value), 1))], 42, KE),
17634
+ }, null, 6), t.compact ? ie("", !0) : (y(), e("span", XE, w(pe.value), 1))], 42, YE),
17623
17635
  r("div", {
17624
17636
  id: se(g),
17625
17637
  ref_key: "popover",
@@ -17640,7 +17652,7 @@ var FE = { class: "checkbox-option" }, IE = {
17640
17652
  key: 0,
17641
17653
  id: `${se(g)}-${t.key}`,
17642
17654
  class: "palette-heading"
17643
- }, w(t.label), 9, YE)) : ie("", !0), r("div", {
17655
+ }, w(t.label), 9, QE)) : ie("", !0), r("div", {
17644
17656
  class: "palette",
17645
17657
  role: "radiogroup",
17646
17658
  "aria-label": p.value ? void 0 : t.label,
@@ -17658,7 +17670,7 @@ var FE = { class: "checkbox-option" }, IE = {
17658
17670
  style: te({ backgroundColor: t }),
17659
17671
  onClick: (e) => Ae(t),
17660
17672
  onKeydown: (e) => je(e, i, n)
17661
- }, null, 46, ZE))), 128))], 8, XE)]))), 128)),
17673
+ }, null, 46, eD))), 128))], 8, $E)]))), 128)),
17662
17674
  h.value ? ie("", !0) : (y(), e(n, { key: 0 }, [r("div", {
17663
17675
  ref_key: "svArea",
17664
17676
  ref: ce,
@@ -17680,7 +17692,7 @@ var FE = { class: "checkbox-option" }, IE = {
17680
17692
  top: `${(1 - E.value) * 100}%`,
17681
17693
  backgroundColor: _e.value
17682
17694
  })
17683
- }, null, 4)], 44, QE), r("div", {
17695
+ }, null, 4)], 44, tD), r("div", {
17684
17696
  class: "hue-track",
17685
17697
  role: "slider",
17686
17698
  tabindex: "0",
@@ -17693,8 +17705,8 @@ var FE = { class: "checkbox-option" }, IE = {
17693
17705
  }, [r("div", {
17694
17706
  class: "hue-thumb",
17695
17707
  style: te({ left: `${C.value / 360 * 100}%` })
17696
- }, null, 4)], 40, $E)], 64)),
17697
- h.value ? ie("", !0) : (y(), f(WE, {
17708
+ }, null, 4)], 40, nD)], 64)),
17709
+ h.value ? ie("", !0) : (y(), f(qE, {
17698
17710
  key: 1,
17699
17711
  modelValue: D.value,
17700
17712
  "onUpdate:modelValue": a[0] ||= (e) => D.value = e,
@@ -17710,17 +17722,17 @@ var FE = { class: "checkbox-option" }, IE = {
17710
17722
  "aria-label",
17711
17723
  "aria-invalid"
17712
17724
  ])),
17713
- t.allowTransparent ? (y(), f(RE, {
17725
+ t.allowTransparent ? (y(), f(VE, {
17714
17726
  key: 2,
17715
17727
  class: "transparent-toggle",
17716
17728
  label: se(o)("colorPicker.transparent"),
17717
17729
  "model-value": ue.value,
17718
17730
  "onUpdate:modelValue": Fe
17719
17731
  }, null, 8, ["label", "model-value"])) : ie("", !0)
17720
- ], 40, JE)
17732
+ ], 40, ZE)
17721
17733
  ], 2));
17722
17734
  }
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({
17735
+ }), [["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"]]), iD = { class: "select-wrap" }, aD = ["id", "disabled"], oD = /*#__PURE__*/ Kw(/* @__PURE__ */ p({
17724
17736
  inheritAttrs: !1,
17725
17737
  __name: "SelectInput",
17726
17738
  props: /*@__PURE__*/ h({
@@ -17745,19 +17757,19 @@ var FE = { class: "checkbox-option" }, IE = {
17745
17757
  let a = b(n, "modelValue"), o = n, s = x(), c = i(() => a.value === "" && !o.emptyIsValue), l = S("select");
17746
17758
  return m(a, async (e) => {
17747
17759
  await t(), l.value && l.value.value !== e && (l.value.value = e);
17748
- }), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(HE, {
17760
+ }), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(GE, {
17749
17761
  disabled: n.disabled,
17750
17762
  label: o.label,
17751
17763
  "label-for": se(s)
17752
17764
  }, {
17753
- default: ee(() => [r("span", tD, [de(r("select", he({
17765
+ default: ee(() => [r("span", iD, [de(r("select", he({
17754
17766
  id: se(s),
17755
17767
  ref_key: "select",
17756
17768
  ref: l,
17757
17769
  "onUpdate:modelValue": i[0] ||= (e) => a.value = e,
17758
17770
  class: "field-select",
17759
17771
  disabled: n.disabled
17760
- }, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, nD), [[pe, a.value]]), d(yE, {
17772
+ }, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, aD), [[pe, a.value]]), d(SE, {
17761
17773
  class: "chevron",
17762
17774
  name: "chevron-down",
17763
17775
  size: 12
@@ -17772,14 +17784,14 @@ var FE = { class: "checkbox-option" }, IE = {
17772
17784
  }), [["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"]]);
17773
17785
  //#endregion
17774
17786
  //#region src/composables/useBrandCustomFonts.ts
17775
- function iD() {
17776
- let e = u(EE, void 0);
17777
- return i(() => Ww(e?.value.customFonts ?? []));
17787
+ function sD() {
17788
+ let e = u(kE, void 0);
17789
+ return i(() => qw(e?.value.customFonts ?? []));
17778
17790
  }
17779
17791
  //#endregion
17780
17792
  //#region src/composables/useBrandFonts.ts
17781
- function aD(e) {
17782
- let t = u(EE, void 0);
17793
+ function cD(e) {
17794
+ let t = u(kE, void 0);
17783
17795
  return i(() => {
17784
17796
  let n = t?.value.fonts ?? [];
17785
17797
  if (n.length === 0) return Ci;
@@ -17793,25 +17805,25 @@ function aD(e) {
17793
17805
  }
17794
17806
  //#endregion
17795
17807
  //#region src/i18n/locales.ts
17796
- var oD = ["en", "sv"], sD = "sv";
17797
- function cD(e) {
17798
- return oD.includes(e);
17808
+ var lD = ["en", "sv"], uD = "sv";
17809
+ function dD(e) {
17810
+ return lD.includes(e);
17799
17811
  }
17800
17812
  //#endregion
17801
17813
  //#region src/mergeTags.ts
17802
- function lD(e) {
17814
+ function fD(e) {
17803
17815
  return Object.keys(e).filter((t) => !e[t]?.conditionOnly);
17804
17816
  }
17805
- function uD(e, t, n) {
17817
+ function pD(e, t, n) {
17806
17818
  let r = e[t];
17807
17819
  return r ? r[n] ?? r.sv ?? t : t;
17808
17820
  }
17809
17821
  //#endregion
17810
17822
  //#region src/urls.ts
17811
- var dD = /^[a-z][a-z0-9+.-]*:/i, fD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, pD = /^[/#?]/;
17812
- function mD(e) {
17823
+ var mD = /^[a-z][a-z0-9+.-]*:/i, hD = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i, gD = /^[/#?]/;
17824
+ function _D(e) {
17813
17825
  let t = e.trim();
17814
- return dD.test(t) ? fD.test(t) ? t : "" : t === "" || pD.test(t) ? t : `https://${t}`;
17826
+ return mD.test(t) ? hD.test(t) ? t : "" : t === "" || gD.test(t) ? t : `https://${t}`;
17815
17827
  }
17816
17828
  //#endregion
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 };
17829
+ export { Tw as $, Ki as $t, rT as A, ai as An, ap as At, Ow as B, ti as Bn, B as Bt, ME as C, Ri as Cn, G as Ct, SE as D, Ti as Dn, hg as Dt, TE as E, ki as En, mg as Et, Uw as F, _i as Fn, V as Ft, uw as G, da as Gt, Aw as H, Br as Hn, ca as Ht, sw as I, ni as In, H as It, Iw as J, Zi as Jt, rw as K, Wi as Kt, iw as L, ri as Ln, cs as Lt, Ww as M, xi as Mn, U as Mt, Hw as N, yi as Nn, Ac as Nt, Yw as O, Ei as On, gg as Ot, Vw as P, vi as Pn, Nc as Pt, Pw as Q, sa as Qt, Sw as R, ii as Rn, Ws as Rt, jE as S, Pi as Sn, B_ as St, wE as T, wi as Tn, W as Tt, Dw as U, Vr as Un, la as Ut, jw as V, ei as Vn, Bi as Vt, dw as W, ua as Wt, Fw as X, na as Xt, Lw as Y, Xi as Yt, Nw as Z, Ui as Zt, AE as _, oa as _n, oC as _t, lD as a, xa as an, gw as at, PE as b, aa as bn, I_ as bt, sD as c, Ta as cn, hw as ct, qE as d, $i as dn, cC as dt, Vi as en, Ew as et, GE as f, ta as fn, tw as ft, NE as g, Sa as gn, rC as gt, LE as h, Hi as hn, sC as ht, uD as i, ya as in, yw as it, Kw as j, oi as jn, cp as jt, qw as k, si as kn, cm as kt, oD as l, ea as ln, MC as lt, FE as m, ba as mn, nC as mt, fD as n, va as nn, _w as nt, dD as o, ga as on, Cw as ot, VE as p, ra as pn, nw as pt, zw as q, Qi as qt, pD as r, Ca as rn, xw as rt, cD as s, _a as sn, Mw as st, _D as t, qi as tn, vw as tt, rD as u, Gi as un, EC as ut, kE as v, wa as vn, tb as vt, EE as w, Fi as wn, Jg as wt, OE as x, ia as xn, K as xt, DE as y, Yi as yn, eb as yt, ww as z, $r as zn, R as zt };