@bygga.dev/editor 1.9.10 → 1.9.12

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,31 +16512,38 @@ 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
16507
16519
  }), t.padding && (e.padding = t.padding), t.margin && (e.margin = t.margin), t.borderRadius && (e.borderRadius = t.borderRadius), t.border && (e.border = t.border);
16508
16520
  }
16509
16521
  //#endregion
16522
+ //#region ../core/src/links.ts
16523
+ var Kw = /^[a-z][a-z0-9+.-]*:/i, qw = /[\u0000-\u0020]/g, Jw = /^(?:https?|ftps?|mailto|tel|callto|sms|cid|xmpp):/i;
16524
+ function Yw(e) {
16525
+ let t = e.replace(qw, "");
16526
+ if (!(t === "" || Kw.test(t) && !Jw.test(t))) return e;
16527
+ }
16528
+ //#endregion
16510
16529
  //#region \0plugin-vue:export-helper
16511
- var Uw = (e, t) => {
16530
+ var Xw = (e, t) => {
16512
16531
  let n = e.__vccOpts || e;
16513
16532
  for (let [e, r] of t) n[e] = r;
16514
16533
  return n;
16515
16534
  };
16516
16535
  //#endregion
16517
16536
  //#region src/customFonts.ts
16518
- function Ww(e) {
16537
+ function Zw(e) {
16519
16538
  return e.map((e) => ({
16520
16539
  ...e,
16521
16540
  stack: Ai(e)
16522
16541
  }));
16523
16542
  }
16524
- var Gw = /* @__PURE__ */ new Set();
16525
- function Kw(e) {
16543
+ var Qw = /* @__PURE__ */ new Set();
16544
+ function $w(e) {
16526
16545
  if (!(typeof document > "u")) {
16527
- for (let t of e) if (!Gw.has(t.href)) if (Gw.add(t.href), Ni(t) === "file") {
16546
+ for (let t of e) if (!Qw.has(t.href)) if (Qw.add(t.href), Ni(t) === "file") {
16528
16547
  if (typeof FontFace > "u") continue;
16529
16548
  let e = new FontFace(t.name, `url("${t.href}")`, { display: "swap" });
16530
16549
  document.fonts.add(e), e.load().catch((e) => {
@@ -16538,9 +16557,9 @@ function Kw(e) {
16538
16557
  }
16539
16558
  }
16540
16559
  }
16541
- function qw(e, t) {
16560
+ function eT(e, t) {
16542
16561
  if (Array.isArray(e)) {
16543
- for (let n of e) qw(n, t);
16562
+ for (let n of e) eT(n, t);
16544
16563
  return;
16545
16564
  }
16546
16565
  if (typeof e != "object" || !e) return;
@@ -16550,9 +16569,9 @@ function qw(e, t) {
16550
16569
  typeof e?.fontFamily == "string" && t.stacks.add(e.fontFamily);
16551
16570
  }
16552
16571
  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);
16572
+ for (let e of Object.values(n)) eT(e, t);
16554
16573
  }
16555
- var Jw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Yw = {
16574
+ var tT = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, nT = {
16556
16575
  """: "\"",
16557
16576
  """: "\"",
16558
16577
  """: "\"",
@@ -16563,31 +16582,31 @@ var Jw = /&(?:quot|#34|#x22|apos|#39|#x27|amp|#38|#x26);/gi, Yw = {
16563
16582
  "&": "&",
16564
16583
  "&": "&"
16565
16584
  };
16566
- function Xw(e) {
16567
- return e.replace(Jw, (e) => Yw[e.toLowerCase()] ?? e);
16585
+ function rT(e) {
16586
+ return e.replace(tT, (e) => nT[e.toLowerCase()] ?? e);
16568
16587
  }
16569
- function Zw(e) {
16588
+ function iT(e) {
16570
16589
  let t = (Ai(e).split(",")[0] ?? "").replace(/["']/g, "").trim();
16571
16590
  return [.../* @__PURE__ */ new Set([e.name.trim(), t])].filter((e) => e !== "");
16572
16591
  }
16573
- var Qw = /[.*+?^${}()|[\]\\]/g;
16574
- function $w(e, t) {
16592
+ var aT = /[.*+?^${}()|[\]\\]/g;
16593
+ function oT(e, t) {
16575
16594
  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");
16595
+ let n = e.map(rT);
16596
+ return iT(t).some((e) => {
16597
+ let t = RegExp(`(^|[^\\w-])${e.replace(aT, "\\$&")}(?![\\w-])`, "i");
16579
16598
  return n.some((e) => t.test(e));
16580
16599
  });
16581
16600
  }
16582
- function eT(e, t) {
16601
+ function sT(e, t) {
16583
16602
  let n = {
16584
16603
  stacks: /* @__PURE__ */ new Set(),
16585
16604
  pluginHtml: []
16586
16605
  };
16587
- qw(e.root, n);
16606
+ eT(e.root, n);
16588
16607
  let r = e.customFonts ?? [], i = [], a = (e) => {
16589
16608
  let t = Ai(e);
16590
- (n.stacks.has(t) || $w(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
16609
+ (n.stacks.has(t) || oT(n.pluginHtml, e)) && !i.some((e) => Ai(e) === t) && i.push(e);
16591
16610
  };
16592
16611
  for (let { stack: e, ...n } of t) a(n);
16593
16612
  for (let e of r) a(e);
@@ -16596,15 +16615,15 @@ function eT(e, t) {
16596
16615
  }
16597
16616
  //#endregion
16598
16617
  //#region src/assets/icons/board.svg?component
16599
- var tT = {
16618
+ var cT = {
16600
16619
  xmlns: "http://www.w3.org/2000/svg",
16601
16620
  width: "55",
16602
16621
  height: "55",
16603
16622
  fill: "none",
16604
16623
  viewBox: "0 0 54.64 54.64"
16605
16624
  };
16606
- function nT(t, n) {
16607
- return y(), e("svg", tT, [...n[0] ||= [r("path", {
16625
+ function lT(t, n) {
16626
+ return y(), e("svg", cT, [...n[0] ||= [r("path", {
16608
16627
  stroke: "currentColor",
16609
16628
  "stroke-linejoin": "round",
16610
16629
  "stroke-width": "2",
@@ -16616,15 +16635,15 @@ function nT(t, n) {
16616
16635
  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
16636
  }, null, -1)]]);
16618
16637
  }
16619
- var rT = { render: nT }, iT = {
16638
+ var uT = { render: lT }, dT = {
16620
16639
  xmlns: "http://www.w3.org/2000/svg",
16621
16640
  width: "16",
16622
16641
  height: "16",
16623
16642
  fill: "none",
16624
16643
  viewBox: "0 0 16 16"
16625
16644
  };
16626
- function aT(t, n) {
16627
- return y(), e("svg", iT, [...n[0] ||= [r("path", {
16645
+ function fT(t, n) {
16646
+ return y(), e("svg", dT, [...n[0] ||= [r("path", {
16628
16647
  stroke: "currentColor",
16629
16648
  "stroke-linecap": "round",
16630
16649
  "stroke-linejoin": "round",
@@ -16632,15 +16651,15 @@ function aT(t, n) {
16632
16651
  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
16652
  }, null, -1)]]);
16634
16653
  }
16635
- var oT = { render: aT }, sT = {
16654
+ var pT = { render: fT }, mT = {
16636
16655
  xmlns: "http://www.w3.org/2000/svg",
16637
16656
  width: "16",
16638
16657
  height: "16",
16639
16658
  fill: "none",
16640
16659
  viewBox: "0 0 16 16"
16641
16660
  };
16642
- function cT(t, n) {
16643
- return y(), e("svg", sT, [...n[0] ||= [r("path", {
16661
+ function hT(t, n) {
16662
+ return y(), e("svg", mT, [...n[0] ||= [r("path", {
16644
16663
  stroke: "currentColor",
16645
16664
  "stroke-linecap": "round",
16646
16665
  "stroke-linejoin": "round",
@@ -16648,15 +16667,15 @@ function cT(t, n) {
16648
16667
  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
16668
  }, null, -1)]]);
16650
16669
  }
16651
- var lT = { render: cT }, uT = {
16670
+ var gT = { render: hT }, _T = {
16652
16671
  xmlns: "http://www.w3.org/2000/svg",
16653
16672
  width: "40",
16654
16673
  height: "40",
16655
16674
  fill: "none",
16656
16675
  viewBox: "0 0 40 40"
16657
16676
  };
16658
- function dT(t, n) {
16659
- return y(), e("svg", uT, [...n[0] ||= [r("rect", {
16677
+ function vT(t, n) {
16678
+ return y(), e("svg", _T, [...n[0] ||= [r("rect", {
16660
16679
  width: "28",
16661
16680
  height: "14",
16662
16681
  x: "6",
@@ -16672,15 +16691,15 @@ function dT(t, n) {
16672
16691
  d: "M14 20h12"
16673
16692
  }, null, -1)]]);
16674
16693
  }
16675
- var fT = { render: dT }, pT = {
16694
+ var yT = { render: vT }, bT = {
16676
16695
  xmlns: "http://www.w3.org/2000/svg",
16677
16696
  width: "16",
16678
16697
  height: "16",
16679
16698
  fill: "none",
16680
16699
  viewBox: "0 0 16 16"
16681
16700
  };
16682
- function mT(t, n) {
16683
- return y(), e("svg", pT, [...n[0] ||= [r("path", {
16701
+ function xT(t, n) {
16702
+ return y(), e("svg", bT, [...n[0] ||= [r("path", {
16684
16703
  stroke: "currentColor",
16685
16704
  "stroke-linecap": "round",
16686
16705
  "stroke-linejoin": "round",
@@ -16688,30 +16707,30 @@ function mT(t, n) {
16688
16707
  d: "m4 6 4 4 4-4"
16689
16708
  }, null, -1)]]);
16690
16709
  }
16691
- var hT = { render: mT }, gT = {
16710
+ var ST = { render: xT }, CT = {
16692
16711
  xmlns: "http://www.w3.org/2000/svg",
16693
16712
  width: "16",
16694
16713
  height: "16",
16695
16714
  fill: "none",
16696
16715
  viewBox: "0 0 16 16"
16697
16716
  };
16698
- function _T(t, n) {
16699
- return y(), e("svg", gT, [...n[0] ||= [r("path", {
16717
+ function wT(t, n) {
16718
+ return y(), e("svg", CT, [...n[0] ||= [r("path", {
16700
16719
  stroke: "currentColor",
16701
16720
  "stroke-linecap": "round",
16702
16721
  "stroke-width": "1.2",
16703
16722
  d: "m4 4 8 8M12 4l-8 8"
16704
16723
  }, null, -1)]]);
16705
16724
  }
16706
- var vT = { render: _T }, yT = {
16725
+ var TT = { render: wT }, ET = {
16707
16726
  xmlns: "http://www.w3.org/2000/svg",
16708
16727
  width: "40",
16709
16728
  height: "40",
16710
16729
  fill: "none",
16711
16730
  viewBox: "0 0 40 40"
16712
16731
  };
16713
- function bT(t, n) {
16714
- return y(), e("svg", yT, [...n[0] ||= [r("rect", {
16732
+ function DT(t, n) {
16733
+ return y(), e("svg", ET, [...n[0] ||= [r("rect", {
16715
16734
  width: "28",
16716
16735
  height: "22",
16717
16736
  x: "6",
@@ -16727,15 +16746,15 @@ function bT(t, n) {
16727
16746
  d: "M15.33 9.6v20.8M24.67 9.6v20.8"
16728
16747
  }, null, -1)]]);
16729
16748
  }
16730
- var xT = { render: bT }, ST = {
16749
+ var OT = { render: DT }, kT = {
16731
16750
  xmlns: "http://www.w3.org/2000/svg",
16732
16751
  width: "16",
16733
16752
  height: "16",
16734
16753
  fill: "none",
16735
16754
  viewBox: "0 0 16 16"
16736
16755
  };
16737
- function CT(t, n) {
16738
- return y(), e("svg", ST, [...n[0] ||= [r("rect", {
16756
+ function AT(t, n) {
16757
+ return y(), e("svg", kT, [...n[0] ||= [r("rect", {
16739
16758
  width: "7.33",
16740
16759
  height: "7.67",
16741
16760
  x: "6",
@@ -16752,15 +16771,15 @@ function CT(t, n) {
16752
16771
  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
16772
  }, null, -1)]]);
16754
16773
  }
16755
- var wT = { render: CT }, TT = {
16774
+ var jT = { render: AT }, MT = {
16756
16775
  xmlns: "http://www.w3.org/2000/svg",
16757
16776
  width: "16",
16758
16777
  height: "16",
16759
16778
  fill: "none",
16760
16779
  viewBox: "0 0 16 16"
16761
16780
  };
16762
- function ET(t, n) {
16763
- return y(), e("svg", TT, [...n[0] ||= [r("rect", {
16781
+ function NT(t, n) {
16782
+ return y(), e("svg", MT, [...n[0] ||= [r("rect", {
16764
16783
  width: "13",
16765
16784
  height: "8.5",
16766
16785
  x: "1.5",
@@ -16776,15 +16795,15 @@ function ET(t, n) {
16776
16795
  d: "M6 14.5h4M8 11v3.5"
16777
16796
  }, null, -1)]]);
16778
16797
  }
16779
- var DT = { render: ET }, OT = {
16798
+ var PT = { render: NT }, FT = {
16780
16799
  xmlns: "http://www.w3.org/2000/svg",
16781
16800
  width: "40",
16782
16801
  height: "40",
16783
16802
  fill: "none",
16784
16803
  viewBox: "0 0 20 20"
16785
16804
  };
16786
- function kT(t, n) {
16787
- return y(), e("svg", OT, [...n[0] ||= [r("g", {
16805
+ function IT(t, n) {
16806
+ return y(), e("svg", FT, [...n[0] ||= [r("g", {
16788
16807
  stroke: "currentColor",
16789
16808
  "stroke-linecap": "round",
16790
16809
  "stroke-linejoin": "round",
@@ -16794,15 +16813,15 @@ function kT(t, n) {
16794
16813
  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
16814
  })], -1)]]);
16796
16815
  }
16797
- var AT = { render: kT }, jT = {
16816
+ var LT = { render: IT }, RT = {
16798
16817
  xmlns: "http://www.w3.org/2000/svg",
16799
16818
  width: "16",
16800
16819
  height: "16",
16801
16820
  fill: "none",
16802
16821
  viewBox: "0 0 16 16"
16803
16822
  };
16804
- function MT(t, n) {
16805
- return y(), e("svg", jT, [...n[0] ||= [r("path", {
16823
+ function zT(t, n) {
16824
+ return y(), e("svg", RT, [...n[0] ||= [r("path", {
16806
16825
  stroke: "currentColor",
16807
16826
  "stroke-width": "1.2",
16808
16827
  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 +16833,15 @@ function MT(t, n) {
16814
16833
  d: "M11.133 8a3.133 3.133 0 1 1-6.266 0 3.133 3.133 0 0 1 6.266 0"
16815
16834
  }, null, -1)]]);
16816
16835
  }
16817
- var NT = { render: MT }, PT = {
16836
+ var BT = { render: zT }, VT = {
16818
16837
  xmlns: "http://www.w3.org/2000/svg",
16819
16838
  width: "40",
16820
16839
  height: "40",
16821
16840
  fill: "none",
16822
16841
  viewBox: "0 0 40 40"
16823
16842
  };
16824
- function FT(t, n) {
16825
- return y(), e("svg", PT, [...n[0] ||= [r("path", {
16843
+ function HT(t, n) {
16844
+ return y(), e("svg", VT, [...n[0] ||= [r("path", {
16826
16845
  stroke: "currentColor",
16827
16846
  "stroke-linecap": "round",
16828
16847
  "stroke-linejoin": "round",
@@ -16830,15 +16849,15 @@ function FT(t, n) {
16830
16849
  d: "M10 8v24M24 8v24M10 20h14M30 26l3-2v8"
16831
16850
  }, null, -1)]]);
16832
16851
  }
16833
- var IT = { render: FT }, LT = {
16852
+ var UT = { render: HT }, WT = {
16834
16853
  xmlns: "http://www.w3.org/2000/svg",
16835
16854
  width: "40",
16836
16855
  height: "40",
16837
16856
  fill: "none",
16838
16857
  viewBox: "0 0 40 40"
16839
16858
  };
16840
- function RT(t, n) {
16841
- return y(), e("svg", LT, [...n[0] ||= [r("rect", {
16859
+ function GT(t, n) {
16860
+ return y(), e("svg", WT, [...n[0] ||= [r("rect", {
16842
16861
  width: "28",
16843
16862
  height: "22",
16844
16863
  x: "6",
@@ -16855,15 +16874,15 @@ function RT(t, n) {
16855
16874
  d: "m17 16-4 4 4 4M23 16l4 4-4 4"
16856
16875
  }, null, -1)]]);
16857
16876
  }
16858
- var zT = { render: RT }, BT = {
16877
+ var KT = { render: GT }, qT = {
16859
16878
  xmlns: "http://www.w3.org/2000/svg",
16860
16879
  width: "40",
16861
16880
  height: "40",
16862
16881
  fill: "none",
16863
16882
  viewBox: "0 0 40 40"
16864
16883
  };
16865
- function VT(t, n) {
16866
- return y(), e("svg", BT, [...n[0] ||= [
16884
+ function JT(t, n) {
16885
+ return y(), e("svg", qT, [...n[0] ||= [
16867
16886
  r("rect", {
16868
16887
  width: "28",
16869
16888
  height: "22",
@@ -16897,30 +16916,30 @@ function VT(t, n) {
16897
16916
  }, null, -1)
16898
16917
  ]]);
16899
16918
  }
16900
- var HT = { render: VT }, UT = {
16919
+ var YT = { render: JT }, XT = {
16901
16920
  xmlns: "http://www.w3.org/2000/svg",
16902
16921
  width: "16",
16903
16922
  height: "16",
16904
16923
  fill: "none",
16905
16924
  viewBox: "0 0 16 16"
16906
16925
  };
16907
- function WT(t, n) {
16908
- return y(), e("svg", UT, [...n[0] ||= [r("path", {
16926
+ function ZT(t, n) {
16927
+ return y(), e("svg", XT, [...n[0] ||= [r("path", {
16909
16928
  fill: "currentColor",
16910
16929
  "fill-rule": "evenodd",
16911
16930
  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
16931
  "clip-rule": "evenodd"
16913
16932
  }, null, -1)]]);
16914
16933
  }
16915
- var GT = { render: WT }, KT = {
16934
+ var QT = { render: ZT }, $T = {
16916
16935
  xmlns: "http://www.w3.org/2000/svg",
16917
16936
  width: "16",
16918
16937
  height: "16",
16919
16938
  fill: "none",
16920
16939
  viewBox: "0 0 16 16"
16921
16940
  };
16922
- function qT(t, n) {
16923
- return y(), e("svg", KT, [...n[0] ||= [r("path", {
16941
+ function eE(t, n) {
16942
+ return y(), e("svg", $T, [...n[0] ||= [r("path", {
16924
16943
  stroke: "currentColor",
16925
16944
  "stroke-linecap": "round",
16926
16945
  "stroke-width": "1.2",
@@ -16933,15 +16952,15 @@ function qT(t, n) {
16933
16952
  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
16953
  }, null, -1)]]);
16935
16954
  }
16936
- var JT = { render: qT }, YT = {
16955
+ var tE = { render: eE }, nE = {
16937
16956
  xmlns: "http://www.w3.org/2000/svg",
16938
16957
  width: "16",
16939
16958
  height: "16",
16940
16959
  fill: "none",
16941
16960
  viewBox: "0 0 16 16"
16942
16961
  };
16943
- function XT(t, n) {
16944
- return y(), e("svg", YT, [...n[0] ||= [
16962
+ function rE(t, n) {
16963
+ return y(), e("svg", nE, [...n[0] ||= [
16945
16964
  r("rect", {
16946
16965
  width: "9.33",
16947
16966
  height: "7",
@@ -16967,15 +16986,15 @@ function XT(t, n) {
16967
16986
  }, null, -1)
16968
16987
  ]]);
16969
16988
  }
16970
- var ZT = { render: XT }, QT = {
16989
+ var iE = { render: rE }, aE = {
16971
16990
  xmlns: "http://www.w3.org/2000/svg",
16972
16991
  width: "16",
16973
16992
  height: "16",
16974
16993
  fill: "none",
16975
16994
  viewBox: "0 0 16 16"
16976
16995
  };
16977
- function $T(t, n) {
16978
- return y(), e("svg", QT, [...n[0] ||= [r("rect", {
16996
+ function oE(t, n) {
16997
+ return y(), e("svg", aE, [...n[0] ||= [r("rect", {
16979
16998
  width: "7",
16980
16999
  height: "13",
16981
17000
  x: "4.5",
@@ -16991,15 +17010,15 @@ function $T(t, n) {
16991
17010
  d: "M6.5 12.5h3"
16992
17011
  }, null, -1)]]);
16993
17012
  }
16994
- var eE = { render: $T }, tE = {
17013
+ var sE = { render: oE }, cE = {
16995
17014
  xmlns: "http://www.w3.org/2000/svg",
16996
17015
  width: "40",
16997
17016
  height: "40",
16998
17017
  fill: "none",
16999
17018
  viewBox: "0 0 40 40"
17000
17019
  };
17001
- function nE(t, n) {
17002
- return y(), e("svg", tE, [...n[0] ||= [r("path", {
17020
+ function lE(t, n) {
17021
+ return y(), e("svg", cE, [...n[0] ||= [r("path", {
17003
17022
  stroke: "currentColor",
17004
17023
  "stroke-linecap": "round",
17005
17024
  "stroke-linejoin": "round",
@@ -17007,15 +17026,15 @@ function nE(t, n) {
17007
17026
  d: "M35 10H5M35 20H5M20 30H5"
17008
17027
  }, null, -1)]]);
17009
17028
  }
17010
- var rE = { render: nE }, iE = {
17029
+ var uE = { render: lE }, dE = {
17011
17030
  xmlns: "http://www.w3.org/2000/svg",
17012
17031
  width: "18",
17013
17032
  height: "18",
17014
17033
  fill: "none",
17015
17034
  viewBox: "0 0 18.092 18.419"
17016
17035
  };
17017
- function aE(t, n) {
17018
- return y(), e("svg", iE, [...n[0] ||= [
17036
+ function fE(t, n) {
17037
+ return y(), e("svg", dE, [...n[0] ||= [
17019
17038
  r("path", {
17020
17039
  stroke: "currentColor",
17021
17040
  "stroke-linejoin": "round",
@@ -17037,15 +17056,15 @@ function aE(t, n) {
17037
17056
  }, null, -1)
17038
17057
  ]]);
17039
17058
  }
17040
- var oE = { render: aE }, sE = {
17059
+ var pE = { render: fE }, mE = {
17041
17060
  xmlns: "http://www.w3.org/2000/svg",
17042
17061
  width: "40",
17043
17062
  height: "40",
17044
17063
  fill: "none",
17045
17064
  viewBox: "0 0 40 40"
17046
17065
  };
17047
- function cE(t, n) {
17048
- return y(), e("svg", sE, [...n[0] ||= [r("path", {
17066
+ function hE(t, n) {
17067
+ return y(), e("svg", mE, [...n[0] ||= [r("path", {
17049
17068
  stroke: "currentColor",
17050
17069
  "stroke-linecap": "round",
17051
17070
  "stroke-width": "1.2",
@@ -17058,15 +17077,15 @@ function cE(t, n) {
17058
17077
  d: "M16.5 17.5 20 14l3.5 3.5M16.5 22.5 20 26l3.5-3.5"
17059
17078
  }, null, -1)]]);
17060
17079
  }
17061
- var lE = { render: cE }, uE = {
17080
+ var gE = { render: hE }, _E = {
17062
17081
  xmlns: "http://www.w3.org/2000/svg",
17063
17082
  width: "16",
17064
17083
  height: "16",
17065
17084
  fill: "none",
17066
17085
  viewBox: "0 0 16 16"
17067
17086
  };
17068
- function dE(t, n) {
17069
- return y(), e("svg", uE, [...n[0] ||= [r("path", {
17087
+ function vE(t, n) {
17088
+ return y(), e("svg", _E, [...n[0] ||= [r("path", {
17070
17089
  stroke: "currentColor",
17071
17090
  "stroke-linecap": "round",
17072
17091
  "stroke-linejoin": "round",
@@ -17074,15 +17093,15 @@ function dE(t, n) {
17074
17093
  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
17094
  }, null, -1)]]);
17076
17095
  }
17077
- var fE = { render: dE }, pE = {
17096
+ var yE = { render: vE }, bE = {
17078
17097
  xmlns: "http://www.w3.org/2000/svg",
17079
17098
  width: "16",
17080
17099
  height: "16",
17081
17100
  fill: "none",
17082
17101
  viewBox: "0 0 16 16"
17083
17102
  };
17084
- function mE(t, n) {
17085
- return y(), e("svg", pE, [...n[0] ||= [
17103
+ function xE(t, n) {
17104
+ return y(), e("svg", bE, [...n[0] ||= [
17086
17105
  r("path", {
17087
17106
  stroke: "currentColor",
17088
17107
  "stroke-linecap": "round",
@@ -17110,15 +17129,15 @@ function mE(t, n) {
17110
17129
  }, null, -1)
17111
17130
  ]]);
17112
17131
  }
17113
- var hE = { render: mE }, gE = {
17132
+ var SE = { render: xE }, CE = {
17114
17133
  xmlns: "http://www.w3.org/2000/svg",
17115
17134
  width: "20",
17116
17135
  height: "20",
17117
17136
  fill: "none",
17118
17137
  viewBox: "0 0 20 20"
17119
17138
  };
17120
- function _E(t, n) {
17121
- return y(), e("svg", gE, [...n[0] ||= [
17139
+ function wE(t, n) {
17140
+ return y(), e("svg", CE, [...n[0] ||= [
17122
17141
  r("path", {
17123
17142
  stroke: "currentColor",
17124
17143
  "stroke-linejoin": "round",
@@ -17139,7 +17158,7 @@ function _E(t, n) {
17139
17158
  }, null, -1)
17140
17159
  ]]);
17141
17160
  }
17142
- var vE = { render: _E }, yE = /* @__PURE__ */ p({
17161
+ var TE = { render: wE }, EE = /* @__PURE__ */ p({
17143
17162
  __name: "AppIcon",
17144
17163
  props: {
17145
17164
  name: { type: String },
@@ -17150,30 +17169,30 @@ var vE = { render: _E }, yE = /* @__PURE__ */ p({
17150
17169
  },
17151
17170
  setup(e) {
17152
17171
  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
17172
+ pencil: pE,
17173
+ eye: BT,
17174
+ info: QT,
17175
+ board: uT,
17176
+ braces: gT,
17177
+ button: yT,
17178
+ trash: SE,
17179
+ warning: TE,
17180
+ close: TT,
17181
+ copy: jT,
17182
+ link: tE,
17183
+ columns: OT,
17184
+ paragraph: uE,
17185
+ image: YT,
17186
+ mobile: sE,
17187
+ desktop: PT,
17188
+ spacer: gE,
17189
+ sparkles: yE,
17190
+ divider: LT,
17191
+ html: KT,
17192
+ "chevron-down": ST,
17193
+ bookmark: pT,
17194
+ heading: UT,
17195
+ lock: iE
17177
17196
  }, r = i(() => n[t.name]), a = i(() => typeof t.size == "number" ? `${t.size}px` : t.size);
17178
17197
  return (e, t) => (y(), f(c(r.value), {
17179
17198
  class: "app-icon",
@@ -17186,8 +17205,8 @@ var vE = { render: _E }, yE = /* @__PURE__ */ p({
17186
17205
  "aria-hidden": "true"
17187
17206
  }, null, 8, ["style"]));
17188
17207
  }
17189
- }), bE = Symbol("errorDialog");
17190
- function xE() {
17208
+ }), DE = Symbol("errorDialog");
17209
+ function OE() {
17191
17210
  let e = fe(null), t = {
17192
17211
  message: i(() => e.value),
17193
17212
  show: (t) => {
@@ -17197,26 +17216,26 @@ function xE() {
17197
17216
  e.value = null;
17198
17217
  }
17199
17218
  };
17200
- return o(bE, t), t;
17219
+ return o(DE, t), t;
17201
17220
  }
17202
- function SE() {
17203
- return u(bE);
17221
+ function kE() {
17222
+ return u(DE);
17204
17223
  }
17205
17224
  //#endregion
17206
17225
  //#region src/i18n/useAppI18n.ts
17207
- function CE() {
17226
+ function AE() {
17208
17227
  return Hr({ useScope: "global" });
17209
17228
  }
17210
17229
  //#endregion
17211
17230
  //#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");
17231
+ var jE = Symbol("editorConfig"), ME = Symbol("mergeTags"), NE = Symbol("brand"), PE = Symbol("blockStyles"), FE = Symbol("permission"), IE = Symbol("savedBlocks"), LE = Symbol("blockPlugins"), RE = Symbol("imageSearch");
17213
17232
  //#endregion
17214
17233
  //#region src/popoverPlacement.ts
17215
- function ME(e, t, n) {
17234
+ function zE(e, t, n) {
17216
17235
  return Math.max(n.top + t, Math.min(e, n.bottom));
17217
17236
  }
17218
- var NE = 8;
17219
- function PE(e, t, n = NE) {
17237
+ var BE = 8;
17238
+ function VE(e, t, n = BE) {
17220
17239
  let r = t - e.bottom - n, i = e.top - n;
17221
17240
  return r >= i ? {
17222
17241
  side: "below",
@@ -17230,13 +17249,13 @@ function PE(e, t, n = NE) {
17230
17249
  }
17231
17250
  //#endregion
17232
17251
  //#region src/components/CheckboxOption.vue?vue&type=script&setup=true&lang.ts
17233
- var FE = { class: "checkbox-option" }, IE = {
17252
+ var HE = { class: "checkbox-option" }, UE = {
17234
17253
  "aria-hidden": "true",
17235
17254
  class: "box"
17236
- }, LE = {
17255
+ }, WE = {
17237
17256
  key: 0,
17238
17257
  class: "mark"
17239
- }, RE = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17258
+ }, GE = /*#__PURE__*/ Xw(/* @__PURE__ */ p({
17240
17259
  __name: "CheckboxOption",
17241
17260
  props: /*@__PURE__*/ h({ label: { type: String } }, {
17242
17261
  modelValue: {
@@ -17248,20 +17267,20 @@ var FE = { class: "checkbox-option" }, IE = {
17248
17267
  emits: ["update:modelValue"],
17249
17268
  setup(t) {
17250
17269
  let n = b(t, "modelValue");
17251
- return (i, a) => (y(), e("label", FE, [
17270
+ return (i, a) => (y(), e("label", HE, [
17252
17271
  de(r("input", {
17253
17272
  "onUpdate:modelValue": a[0] ||= (e) => n.value = e,
17254
17273
  class: "checkbox-input",
17255
17274
  type: "checkbox"
17256
17275
  }, null, 512), [[C, n.value]]),
17257
- r("span", IE, [n.value ? (y(), e("span", LE)) : ie("", !0)]),
17276
+ r("span", UE, [n.value ? (y(), e("span", WE)) : ie("", !0)]),
17258
17277
  re(" " + w(t.label), 1)
17259
17278
  ]));
17260
17279
  }
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 = {
17280
+ }), [["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"]]), KE = ["for"], qE = { class: "field-shell" }, JE = {
17262
17281
  key: 0,
17263
17282
  class: "field-trailing"
17264
- }, HE = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17283
+ }, YE = /*#__PURE__*/ Xw(/* @__PURE__ */ p({
17265
17284
  __name: "FieldShell",
17266
17285
  props: {
17267
17286
  disabled: {
@@ -17282,9 +17301,9 @@ var FE = { class: "checkbox-option" }, IE = {
17282
17301
  key: 0,
17283
17302
  class: "field-label",
17284
17303
  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));
17304
+ }, w(t.label), 9, KE)) : ie("", !0), r("div", qE, [ce(n.$slots, "default", {}, void 0, !0), n.$slots.trailing ? (y(), e("div", JE, [ce(n.$slots, "trailing", {}, void 0, !0)])) : ie("", !0)])], 2));
17286
17305
  }
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({
17306
+ }), [["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"]]), XE = ["id", "disabled"], ZE = /*#__PURE__*/ Xw(/* @__PURE__ */ p({
17288
17307
  inheritAttrs: !1,
17289
17308
  __name: "TextInput",
17290
17309
  props: /*@__PURE__*/ h({
@@ -17306,7 +17325,7 @@ var FE = { class: "checkbox-option" }, IE = {
17306
17325
  return t({
17307
17326
  focus: () => o.value?.focus(),
17308
17327
  select: () => o.value?.select()
17309
- }), (t, s) => (y(), f(HE, {
17328
+ }), (t, s) => (y(), f(YE, {
17310
17329
  disabled: e.disabled,
17311
17330
  label: i.label,
17312
17331
  "label-for": se(a)
@@ -17319,7 +17338,7 @@ var FE = { class: "checkbox-option" }, IE = {
17319
17338
  class: "field-input",
17320
17339
  type: "text",
17321
17340
  disabled: e.disabled
17322
- }, t.$attrs), null, 16, UE), [[me, n.value]])]),
17341
+ }, t.$attrs), null, 16, XE), [[me, n.value]])]),
17323
17342
  _: 1
17324
17343
  }, 8, [
17325
17344
  "disabled",
@@ -17327,27 +17346,27 @@ var FE = { class: "checkbox-option" }, IE = {
17327
17346
  "label-for"
17328
17347
  ]));
17329
17348
  }
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 = {
17349
+ }), [["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"]]), QE = {
17331
17350
  key: 0,
17332
17351
  class: "picker-label"
17333
- }, KE = [
17352
+ }, $E = [
17334
17353
  "popovertarget",
17335
17354
  "aria-expanded",
17336
17355
  "aria-label"
17337
- ], qE = {
17356
+ ], eD = {
17338
17357
  key: 0,
17339
17358
  class: "value"
17340
- }, JE = ["id", "aria-label"], YE = ["id"], XE = ["aria-label", "aria-labelledby"], ZE = [
17359
+ }, tD = ["id", "aria-label"], nD = ["id"], rD = ["aria-label", "aria-labelledby"], iD = [
17341
17360
  "aria-checked",
17342
17361
  "aria-label",
17343
17362
  "tabindex",
17344
17363
  "onClick",
17345
17364
  "onKeydown"
17346
- ], QE = [
17365
+ ], aD = [
17347
17366
  "aria-label",
17348
17367
  "aria-valuenow",
17349
17368
  "aria-valuetext"
17350
- ], $E = ["aria-label", "aria-valuenow"], eD = /*#__PURE__*/ Uw(/* @__PURE__ */ p({
17369
+ ], oD = ["aria-label", "aria-valuenow"], sD = /*#__PURE__*/ Xw(/* @__PURE__ */ p({
17351
17370
  __name: "ColorPicker",
17352
17371
  props: /*@__PURE__*/ h({
17353
17372
  label: { type: String },
@@ -17369,7 +17388,7 @@ var FE = { class: "checkbox-option" }, IE = {
17369
17388
  }),
17370
17389
  emits: ["update:modelValue"],
17371
17390
  setup(t) {
17372
- let a = b(t, "modelValue"), { t: o } = CE(), s = u(EE, void 0), c = i(() => {
17391
+ let a = b(t, "modelValue"), { t: o } = AE(), s = u(NE, void 0), c = i(() => {
17373
17392
  let e = s?.value;
17374
17393
  return [{
17375
17394
  key: "global",
@@ -17580,7 +17599,7 @@ var FE = { class: "checkbox-option" }, IE = {
17580
17599
  if (e.newState !== "open") return;
17581
17600
  let t = re.value, n = ae.value;
17582
17601
  if (!(t && n)) return;
17583
- let r = t.getBoundingClientRect(), i = PE(r, window.innerHeight);
17602
+ let r = t.getBoundingClientRect(), i = VE(r, window.innerHeight);
17584
17603
  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
17604
  }
17586
17605
  function Le(e) {
@@ -17605,7 +17624,7 @@ var FE = { class: "checkbox-option" }, IE = {
17605
17624
  t instanceof Node && ae.value?.contains(t) || ae.value?.matches(":popover-open") && ae.value.hidePopover();
17606
17625
  }
17607
17626
  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),
17627
+ t.label && !t.compact ? (y(), e("span", QE, w(t.label), 1)) : ie("", !0),
17609
17628
  r("button", {
17610
17629
  ref_key: "trigger",
17611
17630
  ref: re,
@@ -17619,7 +17638,7 @@ var FE = { class: "checkbox-option" }, IE = {
17619
17638
  }, [r("span", {
17620
17639
  class: oe(["swatch", { checker: ue.value }]),
17621
17640
  style: te(ue.value ? {} : { backgroundColor: de.value })
17622
- }, null, 6), t.compact ? ie("", !0) : (y(), e("span", qE, w(pe.value), 1))], 42, KE),
17641
+ }, null, 6), t.compact ? ie("", !0) : (y(), e("span", eD, w(pe.value), 1))], 42, $E),
17623
17642
  r("div", {
17624
17643
  id: se(g),
17625
17644
  ref_key: "popover",
@@ -17640,7 +17659,7 @@ var FE = { class: "checkbox-option" }, IE = {
17640
17659
  key: 0,
17641
17660
  id: `${se(g)}-${t.key}`,
17642
17661
  class: "palette-heading"
17643
- }, w(t.label), 9, YE)) : ie("", !0), r("div", {
17662
+ }, w(t.label), 9, nD)) : ie("", !0), r("div", {
17644
17663
  class: "palette",
17645
17664
  role: "radiogroup",
17646
17665
  "aria-label": p.value ? void 0 : t.label,
@@ -17658,7 +17677,7 @@ var FE = { class: "checkbox-option" }, IE = {
17658
17677
  style: te({ backgroundColor: t }),
17659
17678
  onClick: (e) => Ae(t),
17660
17679
  onKeydown: (e) => je(e, i, n)
17661
- }, null, 46, ZE))), 128))], 8, XE)]))), 128)),
17680
+ }, null, 46, iD))), 128))], 8, rD)]))), 128)),
17662
17681
  h.value ? ie("", !0) : (y(), e(n, { key: 0 }, [r("div", {
17663
17682
  ref_key: "svArea",
17664
17683
  ref: ce,
@@ -17680,7 +17699,7 @@ var FE = { class: "checkbox-option" }, IE = {
17680
17699
  top: `${(1 - E.value) * 100}%`,
17681
17700
  backgroundColor: _e.value
17682
17701
  })
17683
- }, null, 4)], 44, QE), r("div", {
17702
+ }, null, 4)], 44, aD), r("div", {
17684
17703
  class: "hue-track",
17685
17704
  role: "slider",
17686
17705
  tabindex: "0",
@@ -17693,8 +17712,8 @@ var FE = { class: "checkbox-option" }, IE = {
17693
17712
  }, [r("div", {
17694
17713
  class: "hue-thumb",
17695
17714
  style: te({ left: `${C.value / 360 * 100}%` })
17696
- }, null, 4)], 40, $E)], 64)),
17697
- h.value ? ie("", !0) : (y(), f(WE, {
17715
+ }, null, 4)], 40, oD)], 64)),
17716
+ h.value ? ie("", !0) : (y(), f(ZE, {
17698
17717
  key: 1,
17699
17718
  modelValue: D.value,
17700
17719
  "onUpdate:modelValue": a[0] ||= (e) => D.value = e,
@@ -17710,17 +17729,17 @@ var FE = { class: "checkbox-option" }, IE = {
17710
17729
  "aria-label",
17711
17730
  "aria-invalid"
17712
17731
  ])),
17713
- t.allowTransparent ? (y(), f(RE, {
17732
+ t.allowTransparent ? (y(), f(GE, {
17714
17733
  key: 2,
17715
17734
  class: "transparent-toggle",
17716
17735
  label: se(o)("colorPicker.transparent"),
17717
17736
  "model-value": ue.value,
17718
17737
  "onUpdate:modelValue": Fe
17719
17738
  }, null, 8, ["label", "model-value"])) : ie("", !0)
17720
- ], 40, JE)
17739
+ ], 40, tD)
17721
17740
  ], 2));
17722
17741
  }
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({
17742
+ }), [["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"]]), cD = { class: "select-wrap" }, lD = ["id", "disabled"], uD = /*#__PURE__*/ Xw(/* @__PURE__ */ p({
17724
17743
  inheritAttrs: !1,
17725
17744
  __name: "SelectInput",
17726
17745
  props: /*@__PURE__*/ h({
@@ -17745,19 +17764,19 @@ var FE = { class: "checkbox-option" }, IE = {
17745
17764
  let a = b(n, "modelValue"), o = n, s = x(), c = i(() => a.value === "" && !o.emptyIsValue), l = S("select");
17746
17765
  return m(a, async (e) => {
17747
17766
  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, {
17767
+ }), (t, i) => (y(), e("div", { class: oe(["select-input", { "is-empty": c.value }]) }, [d(YE, {
17749
17768
  disabled: n.disabled,
17750
17769
  label: o.label,
17751
17770
  "label-for": se(s)
17752
17771
  }, {
17753
- default: ee(() => [r("span", tD, [de(r("select", he({
17772
+ default: ee(() => [r("span", cD, [de(r("select", he({
17754
17773
  id: se(s),
17755
17774
  ref_key: "select",
17756
17775
  ref: l,
17757
17776
  "onUpdate:modelValue": i[0] ||= (e) => a.value = e,
17758
17777
  class: "field-select",
17759
17778
  disabled: n.disabled
17760
- }, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, nD), [[pe, a.value]]), d(yE, {
17779
+ }, t.$attrs), [ce(t.$slots, "default", {}, void 0, !0)], 16, lD), [[pe, a.value]]), d(EE, {
17761
17780
  class: "chevron",
17762
17781
  name: "chevron-down",
17763
17782
  size: 12
@@ -17772,14 +17791,14 @@ var FE = { class: "checkbox-option" }, IE = {
17772
17791
  }), [["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
17792
  //#endregion
17774
17793
  //#region src/composables/useBrandCustomFonts.ts
17775
- function iD() {
17776
- let e = u(EE, void 0);
17777
- return i(() => Ww(e?.value.customFonts ?? []));
17794
+ function dD() {
17795
+ let e = u(NE, void 0);
17796
+ return i(() => Zw(e?.value.customFonts ?? []));
17778
17797
  }
17779
17798
  //#endregion
17780
17799
  //#region src/composables/useBrandFonts.ts
17781
- function aD(e) {
17782
- let t = u(EE, void 0);
17800
+ function fD(e) {
17801
+ let t = u(NE, void 0);
17783
17802
  return i(() => {
17784
17803
  let n = t?.value.fonts ?? [];
17785
17804
  if (n.length === 0) return Ci;
@@ -17793,25 +17812,25 @@ function aD(e) {
17793
17812
  }
17794
17813
  //#endregion
17795
17814
  //#region src/i18n/locales.ts
17796
- var oD = ["en", "sv"], sD = "sv";
17797
- function cD(e) {
17798
- return oD.includes(e);
17815
+ var pD = ["en", "sv"], mD = "sv";
17816
+ function hD(e) {
17817
+ return pD.includes(e);
17799
17818
  }
17800
17819
  //#endregion
17801
17820
  //#region src/mergeTags.ts
17802
- function lD(e) {
17821
+ function gD(e) {
17803
17822
  return Object.keys(e).filter((t) => !e[t]?.conditionOnly);
17804
17823
  }
17805
- function uD(e, t, n) {
17824
+ function _D(e, t, n) {
17806
17825
  let r = e[t];
17807
17826
  return r ? r[n] ?? r.sv ?? t : t;
17808
17827
  }
17809
17828
  //#endregion
17810
17829
  //#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) {
17830
+ var vD = /^[a-z][a-z0-9+.-]*:/i, yD = /^[\p{L}\p{N}]/u;
17831
+ function bD(e) {
17813
17832
  let t = e.trim();
17814
- return dD.test(t) ? fD.test(t) ? t : "" : t === "" || pD.test(t) ? t : `https://${t}`;
17833
+ return Yw(t) === void 0 ? "" : vD.test(t) || !yD.test(t) ? t : `https://${t}`;
17815
17834
  }
17816
17835
  //#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 };
17836
+ export { Pw as $, sa as $t, sT as A, si as An, cm as At, ww as B, $r as Bn, R as Bt, IE as C, Pi as Cn, B_ as Ct, EE as D, ki as Dn, mg as Dt, kE as E, wi as En, W as Et, Vw as F, vi as Fn, Nc as Ft, dw as G, ua as Gt, jw as H, ei as Hn, Bi as Ht, Uw as I, _i as In, V as It, zw as J, Qi as Jt, uw as K, da as Kt, sw as L, ni as Ln, H as Lt, Yw as M, oi as Mn, cp as Mt, Ww as N, xi as Nn, U as Nt, $w as O, Ti as On, hg as Ot, Hw as P, yi as Pn, Ac as Pt, Nw as Q, Ui as Qt, iw as R, ri as Rn, cs as Rt, FE as S, ia as Sn, K as St, OE as T, Fi as Tn, Jg as Tt, Aw as U, Br as Un, ca as Ut, Ow as V, ti as Vn, B as Vt, Dw as W, Vr as Wn, la as Wt, Lw as X, Xi as Xt, Iw as Y, Zi as Yt, Fw as Z, na as Zt, PE as _, Sa as _n, rC as _t, pD as a, ya as an, yw as at, RE as b, Yi as bn, eb as bt, dD as c, _a as cn, Mw as ct, ZE as d, Gi as dn, EC as dt, Ki as en, Tw as et, YE as f, $i as fn, cC as ft, LE as g, Hi as gn, sC as gt, VE as h, ba as hn, nC as ht, mD as i, Ca as in, xw as it, Xw as j, ai as jn, ap as jt, Zw as k, Ei as kn, gg as kt, uD as l, Ta as ln, hw as lt, zE as m, ra as mn, nw as mt, gD as n, qi as nn, vw as nt, hD as o, xa as on, gw as ot, GE as p, ta as pn, tw as pt, rw as q, Wi as qt, _D as r, va as rn, _w as rt, fD as s, ga as sn, Cw as st, bD as t, Vi as tn, Ew as tt, sD as u, ea as un, MC as ut, NE as v, oa as vn, oC as vt, AE as w, Ri as wn, G as wt, ME as x, aa as xn, I_ as xt, jE as y, wa as yn, tb as yt, Sw as z, ii as zn, Ws as zt };