@webx-ui/module-blocks 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { defineComponent as te, computed as T, openBlock as i, createElementBlock as x, createVNode as u, unref as e, createElementVNode as W, createTextVNode as E, toDisplayString as y, Fragment as j, createCommentVNode as z, renderList as ee, ref as N, onMounted as Ue, watch as fe, createBlock as L, withCtx as c, normalizeStyle as we, reactive as Ze, onBeforeUnmount as Xe, resolveComponent as kt, isRef as yt, normalizeClass as Be, nextTick as Rt, withKeys as st, withModifiers as it, provide as wt, inject as He, useModel as Ht, getCurrentInstance as jt, resolveDynamicComponent as Ft, mergeProps as qt, mergeModels as Jt } from "vue";
1
+ import { defineComponent as te, computed as T, openBlock as i, createElementBlock as x, createVNode as u, unref as e, createElementVNode as W, createTextVNode as E, toDisplayString as y, Fragment as j, createCommentVNode as z, renderList as ee, ref as N, onMounted as Ue, watch as fe, createBlock as A, withCtx as c, normalizeStyle as we, reactive as Ze, onBeforeUnmount as Xe, resolveComponent as kt, isRef as yt, normalizeClass as Be, nextTick as Rt, withKeys as st, withModifiers as it, provide as wt, inject as He, useModel as Ht, getCurrentInstance as jt, resolveDynamicComponent as Ft, mergeProps as qt, mergeModels as Jt } from "vue";
2
2
  import { useRoute as Kt, useRouter as _t } from "vue-router";
3
3
  import { useTranslate as re, useAdmin as Ie, useErrorText as Ne, WxDate as Zt, WxScreenHead as Gt, WxRenameButton as Yt, WxHelpButton as Qt, WxRowMenu as Xt, adminKey as el, WxListScreen as tl } from "@webx-ui/module-admin";
4
- import { WxIcon as ve, WxSkeleton as Ce, WxText as F, WxBadge as Y, WxButton as ie, confirm as Fe, toast as J, useElementWidth as qe, WxSegmented as xt, WxCard as Se, WxAlert as $t, WxTabs as ll, WxTab as Ve, WxCodeEditor as De, WxFormItem as X, WxInput as Ee, WxSelect as Tt, WxTextarea as nl, WxInputNumber as rt, WxTagsInput as ut, WxSwitch as al, WxActionBar as ol, useModal as St, WxDialog as Vt, WxEmpty as Ct, WxAction as Le, WxSortableList as sl, createModal as Bt, WxDrawer as il, WxSpace as rl, WxSkeletonItem as Re } from "@webx-ui/core";
4
+ import { WxIcon as ve, WxSkeleton as Ce, WxText as F, WxBadge as Y, WxButton as ie, confirm as Fe, toast as J, useElementWidth as qe, WxSegmented as xt, WxCard as Se, WxAlert as $t, WxTabs as ll, WxTab as Ve, WxCodeEditor as De, WxFormItem as X, WxInput as Ee, WxSelect as Tt, WxTextarea as nl, WxInputNumber as rt, WxTagsInput as ut, WxSwitch as al, WxActionBar as ol, useModal as St, WxDialog as Vt, WxEmpty as Ct, WxAction as Ae, WxSortableList as sl, createModal as Bt, WxDrawer as il, WxSpace as rl, WxSkeletonItem as Re } from "@webx-ui/core";
5
5
  import { WxScreenRenderer as Et, coreTypes as Ge } from "@webx-ui/schema";
6
6
  function We(t) {
7
7
  const l = `${t.apiPath}/blocks`, o = (n) => n.data;
@@ -110,7 +110,7 @@ const ul = { class: "wx-block-checks" }, cl = {
110
110
  d();
111
111
  }
112
112
  ), (f, k) => (i(), x("div", pl, [
113
- I.value === null ? (i(), L(e(Ce), {
113
+ I.value === null ? (i(), A(e(Ce), {
114
114
  key: 0,
115
115
  class: "wx-block-history__ghost",
116
116
  rows: 3
@@ -131,7 +131,7 @@ const ul = { class: "wx-block-checks" }, cl = {
131
131
  tone: "muted"
132
132
  }, {
133
133
  default: c(() => [
134
- B.created_at ? (i(), L(e(Zt), {
134
+ B.created_at ? (i(), A(e(Zt), {
135
135
  key: 0,
136
136
  value: B.created_at
137
137
  }, null, 8, ["value"])) : z("", !0),
@@ -143,7 +143,7 @@ const ul = { class: "wx-block-checks" }, cl = {
143
143
  _: 2
144
144
  }, 1024)
145
145
  ]),
146
- p(B) === "draft" ? (i(), L(e(Y), {
146
+ p(B) === "draft" ? (i(), A(e(Y), {
147
147
  key: 0,
148
148
  type: "warning",
149
149
  dot: ""
@@ -152,7 +152,7 @@ const ul = { class: "wx-block-checks" }, cl = {
152
152
  E(y(e(a)("page.version-draft")), 1)
153
153
  ]),
154
154
  _: 1
155
- })) : p(B) === "live" ? (i(), L(e(Y), {
155
+ })) : p(B) === "live" ? (i(), A(e(Y), {
156
156
  key: 1,
157
157
  type: "success",
158
158
  dot: ""
@@ -162,7 +162,7 @@ const ul = { class: "wx-block-checks" }, cl = {
162
162
  ]),
163
163
  _: 1
164
164
  })) : z("", !0),
165
- t.canManage && p(B) === "replaced" ? (i(), L(e(ie), {
165
+ t.canManage && p(B) === "replaced" ? (i(), A(e(ie), {
166
166
  key: 2,
167
167
  size: "sm",
168
168
  variant: "outline",
@@ -281,7 +281,7 @@ function tt(t) {
281
281
  const l = t.createElement("style");
282
282
  l.id = dt, l.textContent = `.${ze}{outline:2px solid #427edd;outline-offset:-2px;}.${je}:not(.${ze}){outline:1px solid #427edd;outline-offset:-1px;cursor:pointer;}`, (t.head ?? t.documentElement).appendChild(l);
283
283
  }
284
- function At(t) {
284
+ function Lt(t) {
285
285
  const l = t.base ? `<base href="${ft(t.base)}">` : "", o = t.frame ? `<style>${t.frame}</style>` : "", n = t.script && t.runtime ? `<script src="${ft(t.runtime)}"><\/script><script>${t.script}<\/script>` : "";
286
286
  return `<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">${l}<style>html,body{margin:0}body{container-type:inline-size}</style>${o}<style>${t.styles}</style></head><body>${t.html}${n}</body></html>`;
287
287
  }
@@ -299,11 +299,11 @@ const kl = { class: "wx-block-stage" }, yl = { class: "wx-block-stage__bar" }, w
299
299
  },
300
300
  setup(t) {
301
301
  const l = t, o = re("webx-blocks"), n = T(() => [
302
- { value: 1280, label: o("page.width-desktop") },
303
- { value: 834, label: o("page.width-tablet") },
304
- { value: 390, label: o("page.width-phone") }
302
+ { value: 1280, icon: "monitor", ariaLabel: o("page.width-desktop") },
303
+ { value: 834, icon: "tablet", ariaLabel: o("page.width-tablet") },
304
+ { value: 390, icon: "smartphone", ariaLabel: o("page.width-phone") }
305
305
  ]), s = N(1280), r = N(null), a = N(null), h = qe(r), I = N(360), d = T(() => h.value === 0 ? 1 : Math.min(1, h.value / s.value)), p = T(
306
- () => At({
306
+ () => Lt({
307
307
  html: l.html,
308
308
  styles: l.styles,
309
309
  script: l.script,
@@ -333,15 +333,16 @@ const kl = { class: "wx-block-stage" }, yl = { class: "wx-block-stage__bar" }, w
333
333
  modelValue: s.value,
334
334
  "onUpdate:modelValue": _[0] || (_[0] = (g) => s.value = g),
335
335
  options: n.value,
336
- size: "sm"
337
- }, null, 8, ["modelValue", "options"])
336
+ size: "sm",
337
+ "aria-label": e(o)("page.width")
338
+ }, null, 8, ["modelValue", "options", "aria-label"])
338
339
  ]),
339
340
  W("div", {
340
341
  ref_key: "box",
341
342
  ref: r,
342
343
  class: "wx-block-stage__ground"
343
344
  }, [
344
- t.loading && !t.html ? (i(), L(e(Ce), {
345
+ t.loading && !t.html ? (i(), A(e(Ce), {
345
346
  key: 0,
346
347
  rows: 3
347
348
  })) : (i(), x("div", {
@@ -363,12 +364,12 @@ const kl = { class: "wx-block-stage" }, yl = { class: "wx-block-stage__bar" }, w
363
364
  ], 512)
364
365
  ]));
365
366
  }
366
- }), xl = /* @__PURE__ */ le(_l, [["__scopeId", "data-v-9aa4b1df"]]);
367
- function Lt(t) {
367
+ }), xl = /* @__PURE__ */ le(_l, [["__scopeId", "data-v-8254da4a"]]);
368
+ function At(t) {
368
369
  return typeof t == "object" && t !== null && typeof t.type == "string" && t.type !== "";
369
370
  }
370
371
  function Je(t) {
371
- return Array.isArray(t) && t.length > 0 && t.every(Lt);
372
+ return Array.isArray(t) && t.length > 0 && t.every(At);
372
373
  }
373
374
  function Qe() {
374
375
  return (typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID().replace(/-/g, "") : Math.random().toString(36).slice(2) + Math.random().toString(36).slice(2)).slice(0, 12);
@@ -393,7 +394,7 @@ function zt(t, l, o, n) {
393
394
  }
394
395
  function Pe(t, l, o = 0, n = null) {
395
396
  for (const s of t)
396
- if (Lt(s)) {
397
+ if (At(s)) {
397
398
  l(s, o, n);
398
399
  for (const r of Object.values(s.values ?? {}))
399
400
  Je(r) && Pe(r, l, o + 1, s);
@@ -460,7 +461,7 @@ function Wl(t, l, o, n) {
460
461
  function me(t) {
461
462
  return t === void 0 ? t : JSON.parse(JSON.stringify(t));
462
463
  }
463
- const Al = {
464
+ const Ll = {
464
465
  module: {
465
466
  title: "Blocks"
466
467
  },
@@ -512,6 +513,7 @@ const Al = {
512
513
  sample: "Sample values",
513
514
  "sample-help": "What the thumbnail is drawn on, and what the publish check runs on.",
514
515
  preview: "Preview",
516
+ width: "Width",
515
517
  "width-desktop": "Desktop",
516
518
  "width-tablet": "Tablet",
517
519
  "width-phone": "Phone",
@@ -611,11 +613,11 @@ const Al = {
611
613
  function Me() {
612
614
  try {
613
615
  const { i18n: t } = Ie();
614
- ht.has(t) || (t.defaults("webx-blocks", Al), ht.add(t));
616
+ ht.has(t) || (t.defaults("webx-blocks", Ll), ht.add(t));
615
617
  } catch {
616
618
  }
617
619
  }
618
- const Ll = ["block", "entity", "loop", "__env", "errors", "app"];
620
+ const Al = ["block", "entity", "loop", "__env", "errors", "app"];
619
621
  function zl(t, l, o) {
620
622
  const n = [];
621
623
  /data-wx-block\s*=/.test(l.template) || n.push({ file: "template", code: "no-marker", line: null, message: o("checks.no-marker") });
@@ -657,7 +659,7 @@ function Nt(t) {
657
659
  return l;
658
660
  }
659
661
  function Ul(t, l) {
660
- const o = /* @__PURE__ */ new Set([...Nt(l), ...Ll]);
662
+ const o = /* @__PURE__ */ new Set([...Nt(l), ...Al]);
661
663
  for (const s of t.matchAll(/\bas\s+\$([a-zA-Z_]\w*)(?:\s*=>\s*\$([a-zA-Z_]\w*))?/g))
662
664
  o.add(s[1]), s[2] && o.add(s[2]);
663
665
  for (const s of t.matchAll(/\$([a-zA-Z_]\w*)\s*(?:=[^=]|\+\+|--|\.=|\+=|-=)/g))
@@ -699,7 +701,7 @@ function lt(t) {
699
701
  children: l.children ? lt(l.children) : l.children
700
702
  }));
701
703
  }
702
- function Ae(t, l) {
704
+ function Le(t, l) {
703
705
  const o = `groups.${t}`, n = l(o);
704
706
  return n === o || n === `webx-blocks::${o}` ? t.charAt(0).toUpperCase() + t.slice(1) : n;
705
707
  }
@@ -752,7 +754,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
752
754
  loading: !1
753
755
  }), O = T(() => JSON.stringify({ settings: g, content: w })), q = T(() => Z.value !== "" && O.value !== Z.value), _e = T(() => zl(g.slug, w, a)), ue = T(() => {
754
756
  const S = [...V.value.groups];
755
- return S.includes(g.group) || S.push(g.group), S.map((v) => ({ value: v, label: Ae(v, a) }));
757
+ return S.includes(g.group) || S.push(g.group), S.map((v) => ({ value: v, label: Le(v, a) }));
756
758
  }), ae = T({
757
759
  get: () => w.sample,
758
760
  set: (S) => {
@@ -919,13 +921,13 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
919
921
  function m(S) {
920
922
  return ne.value[S]?.[0];
921
923
  }
922
- function A(S) {
924
+ function L(S) {
923
925
  q.value && S.preventDefault();
924
926
  }
925
927
  Ue(() => {
926
- Q(), window.addEventListener("beforeunload", A);
928
+ Q(), window.addEventListener("beforeunload", L);
927
929
  }), Xe(() => {
928
- clearTimeout(be), window.removeEventListener("beforeunload", A);
930
+ clearTimeout(be), window.removeEventListener("beforeunload", L);
929
931
  }), fe(I, () => {
930
932
  Q();
931
933
  });
@@ -975,13 +977,13 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
975
977
  actions: D.value
976
978
  }, {
977
979
  "title-after": c(() => [
978
- _.value ? (i(), L(e(Yt), {
980
+ _.value ? (i(), A(e(Yt), {
979
981
  key: 0,
980
982
  name: g.title,
981
983
  placeholder: e(a)("page.title"),
982
984
  onRename: v[0] || (v[0] = ($) => g.title = $)
983
985
  }, null, 8, ["name", "placeholder"])) : z("", !0),
984
- q.value ? (i(), L(e(Y), {
986
+ q.value ? (i(), A(e(Y), {
985
987
  key: 1,
986
988
  type: "primary",
987
989
  dot: ""
@@ -991,7 +993,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
991
993
  ]),
992
994
  _: 1
993
995
  })) : z("", !0),
994
- d.value.draft ? (i(), L(e(Y), {
996
+ d.value.draft ? (i(), A(e(Y), {
995
997
  key: 2,
996
998
  type: "warning",
997
999
  dot: ""
@@ -1001,7 +1003,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1001
1003
  ]),
1002
1004
  _: 1
1003
1005
  })) : z("", !0),
1004
- d.value.published ? (i(), L(e(Y), {
1006
+ d.value.published ? (i(), A(e(Y), {
1005
1007
  key: 3,
1006
1008
  type: "success",
1007
1009
  dot: ""
@@ -1010,7 +1012,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1010
1012
  E(y(e(a)("page.live", { number: d.value.published.number })), 1)
1011
1013
  ]),
1012
1014
  _: 1
1013
- })) : (i(), L(e(Y), {
1015
+ })) : (i(), A(e(Y), {
1014
1016
  key: 4,
1015
1017
  type: "default"
1016
1018
  }, {
@@ -1022,11 +1024,11 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1022
1024
  ]),
1023
1025
  subtitle: c(() => [
1024
1026
  W("code", null, y(g.slug), 1),
1025
- E(" · " + y(e(Ae)(g.group, e(a))) + " · " + y(d.value.usage_count > 0 ? e(a)("page.on-pages", { count: d.value.usage_count }) : e(a)("page.not-used")), 1)
1027
+ E(" · " + y(e(Le)(g.group, e(a))) + " · " + y(d.value.usage_count > 0 ? e(a)("page.on-pages", { count: d.value.usage_count }) : e(a)("page.not-used")), 1)
1026
1028
  ]),
1027
1029
  _: 1
1028
1030
  }, 8, ["title", "back", "back-label", "actions"]),
1029
- V.value.editing ? z("", !0) : (i(), L(e($t), {
1031
+ V.value.editing ? z("", !0) : (i(), A(e($t), {
1030
1032
  key: 0,
1031
1033
  type: "info",
1032
1034
  variant: "soft",
@@ -1163,7 +1165,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1163
1165
  "onUpdate:modelValue": $e
1164
1166
  }, null, 8, ["model-value", "readonly"]),
1165
1167
  W("div", Kl, [
1166
- K.value ? (i(), L(e(F), {
1168
+ K.value ? (i(), A(e(F), {
1167
1169
  key: 0,
1168
1170
  size: "sm",
1169
1171
  tone: "danger"
@@ -1172,7 +1174,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1172
1174
  E(y(K.value), 1)
1173
1175
  ]),
1174
1176
  _: 1
1175
- })) : m("content.schema") ? (i(), L(e(F), {
1177
+ })) : m("content.schema") ? (i(), A(e(F), {
1176
1178
  key: 1,
1177
1179
  size: "sm",
1178
1180
  tone: "danger"
@@ -1181,7 +1183,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1181
1183
  E(y(m("content.schema")), 1)
1182
1184
  ]),
1183
1185
  _: 1
1184
- })) : (i(), L(e(F), {
1186
+ })) : (i(), A(e(F), {
1185
1187
  key: 2,
1186
1188
  size: "sm",
1187
1189
  tone: "muted"
@@ -1352,7 +1354,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1352
1354
  ]),
1353
1355
  _: 1
1354
1356
  }, 8, ["disabled"]),
1355
- d.value.usage_count > 0 ? (i(), L(e(F), {
1357
+ d.value.usage_count > 0 ? (i(), A(e(F), {
1356
1358
  key: 0,
1357
1359
  size: "sm",
1358
1360
  tone: "muted"
@@ -1407,7 +1409,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1407
1409
  title: e(a)("page.sample")
1408
1410
  }, {
1409
1411
  default: c(() => [
1410
- w.schema.length ? (i(), L(e(Et), {
1412
+ w.schema.length ? (i(), A(e(Et), {
1411
1413
  key: 0,
1412
1414
  modelValue: ae.value,
1413
1415
  "onUpdate:modelValue": v[14] || (v[14] = ($) => ae.value = $),
@@ -1434,7 +1436,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1434
1436
  title: e(a)("page.usage")
1435
1437
  }, {
1436
1438
  default: c(() => [
1437
- p.value.length === 0 ? (i(), L(e(F), {
1439
+ p.value.length === 0 ? (i(), A(e(F), {
1438
1440
  key: 0,
1439
1441
  size: "sm",
1440
1442
  tone: "muted"
@@ -1449,7 +1451,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1449
1451
  class: "wx-block-editor__use"
1450
1452
  }, [
1451
1453
  W("span", null, y($.title ?? `#${$.id}`), 1),
1452
- $.published ? z("", !0) : (i(), L(e(Y), {
1454
+ $.published ? z("", !0) : (i(), A(e(Y), {
1453
1455
  key: 0,
1454
1456
  type: "warning",
1455
1457
  size: "sm"
@@ -1460,7 +1462,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1460
1462
  _: 1
1461
1463
  }))
1462
1464
  ]))), 128)),
1463
- p.value.length > ye.value.length ? (i(), L(e(F), {
1465
+ p.value.length > ye.value.length ? (i(), A(e(F), {
1464
1466
  key: 0,
1465
1467
  size: "sm",
1466
1468
  tone: "muted"
@@ -1476,9 +1478,9 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1476
1478
  }, 8, ["title"])
1477
1479
  ])
1478
1480
  ]),
1479
- _.value ? (i(), L(e(ol), { key: 1 }, {
1481
+ _.value ? (i(), A(e(ol), { key: 1 }, {
1480
1482
  state: c(() => [
1481
- q.value ? (i(), L(e(Y), {
1483
+ q.value ? (i(), A(e(Y), {
1482
1484
  key: 0,
1483
1485
  type: "primary",
1484
1486
  dot: ""
@@ -1488,7 +1490,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1488
1490
  ]),
1489
1491
  _: 1
1490
1492
  })) : z("", !0),
1491
- d.value.draft ? (i(), L(e(Y), {
1493
+ d.value.draft ? (i(), A(e(Y), {
1492
1494
  key: 1,
1493
1495
  type: "warning",
1494
1496
  dot: ""
@@ -1498,7 +1500,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1498
1500
  ]),
1499
1501
  _: 1
1500
1502
  })) : z("", !0),
1501
- d.value.published ? (i(), L(e(Y), {
1503
+ d.value.published ? (i(), A(e(Y), {
1502
1504
  key: 2,
1503
1505
  type: "success",
1504
1506
  dot: ""
@@ -1549,7 +1551,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1549
1551
  },
1550
1552
  setup(t) {
1551
1553
  const l = t, o = N(null), n = qe(o), s = T(() => n.value > 0 ? n.value / l.width : 0.2), r = T(
1552
- () => l.thumbnail ? At({ html: l.thumbnail.html, styles: l.thumbnail.styles }) : ""
1554
+ () => l.thumbnail ? Lt({ html: l.thumbnail.html, styles: l.thumbnail.styles }) : ""
1553
1555
  ), a = T(() => ({
1554
1556
  width: `${l.width}px`,
1555
1557
  height: `${Math.round(l.height / s.value)}px`,
@@ -1613,7 +1615,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1613
1615
  f.includes(V.group) || f.push(V.group);
1614
1616
  const k = f.map((V) => ({
1615
1617
  id: V,
1616
- label: Ae(V, r),
1618
+ label: Le(V, r),
1617
1619
  options: d.value.filter((_) => _.type.group === V)
1618
1620
  })).filter((V) => V.options.length > 0);
1619
1621
  return d.value.length <= 5 || a.value.trim() !== "" || k.length < 2 ? [{ id: "", label: "", options: d.value }] : k;
@@ -1629,7 +1631,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1629
1631
  });
1630
1632
  return (f, k) => {
1631
1633
  const B = kt("router-link");
1632
- return i(), L(e(Vt), {
1634
+ return i(), A(e(Vt), {
1633
1635
  open: e(s),
1634
1636
  "onUpdate:open": k[2] || (k[2] = (V) => yt(s) ? s.value = V : null),
1635
1637
  title: e(r)("field.pick"),
@@ -1648,7 +1650,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1648
1650
  ]),
1649
1651
  default: c(() => [
1650
1652
  W("div", an, [
1651
- I.value.length > 0 ? (i(), L(e(Ee), {
1653
+ I.value.length > 0 ? (i(), A(e(Ee), {
1652
1654
  key: 0,
1653
1655
  modelValue: a.value,
1654
1656
  "onUpdate:modelValue": k[0] || (k[0] = (V) => a.value = V),
@@ -1656,14 +1658,14 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1656
1658
  clearable: "",
1657
1659
  autofocus: ""
1658
1660
  }, null, 8, ["modelValue", "placeholder"])) : z("", !0),
1659
- d.value.length === 0 ? (i(), L(e(Ct), {
1661
+ d.value.length === 0 ? (i(), A(e(Ct), {
1660
1662
  key: 1,
1661
1663
  icon: "grid",
1662
1664
  title: b.value,
1663
1665
  size: "sm"
1664
1666
  }, {
1665
1667
  default: c(() => [
1666
- t.catalog.length === 0 && t.blocksPath ? (i(), L(B, {
1668
+ t.catalog.length === 0 && t.blocksPath ? (i(), A(B, {
1667
1669
  key: 0,
1668
1670
  to: t.blocksPath
1669
1671
  }, {
@@ -1695,7 +1697,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1695
1697
  }, null, 8, ["thumbnail"]),
1696
1698
  W("div", un, [
1697
1699
  W("div", cn, y(_.type.title), 1),
1698
- _.reason ? (i(), L(e(F), {
1700
+ _.reason ? (i(), A(e(F), {
1699
1701
  key: 0,
1700
1702
  size: "sm",
1701
1703
  tone: "warning"
@@ -1704,7 +1706,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1704
1706
  E(y(_.reason), 1)
1705
1707
  ]),
1706
1708
  _: 2
1707
- }, 1024)) : _.type.description ? (i(), L(e(F), {
1709
+ }, 1024)) : _.type.description ? (i(), A(e(F), {
1708
1710
  key: 1,
1709
1711
  size: "sm",
1710
1712
  tone: "muted"
@@ -1872,7 +1874,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1872
1874
  "onUpdate:modelValue": M[0] || (M[0] = (R) => f.value = Number(R))
1873
1875
  }, null, 8, ["model-value", "options", "aria-label"]),
1874
1876
  W("div", vn, [
1875
- t.compact ? (i(), L(e(Le), {
1877
+ t.compact ? (i(), A(e(Ae), {
1876
1878
  key: 0,
1877
1879
  size: "sm",
1878
1880
  tone: "primary",
@@ -1880,7 +1882,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1880
1882
  title: e(r)("field.blocks"),
1881
1883
  onClick: M[1] || (M[1] = (R) => s("edit"))
1882
1884
  }, null, 8, ["title"])) : z("", !0),
1883
- t.url ? (i(), L(e(Le), {
1885
+ t.url ? (i(), A(e(Ae), {
1884
1886
  key: 1,
1885
1887
  size: "sm",
1886
1888
  icon: "external-link",
@@ -1890,7 +1892,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1890
1892
  target: "_blank",
1891
1893
  rel: "noopener"
1892
1894
  }, null, 8, ["title", "href"])) : z("", !0),
1893
- u(e(Le), {
1895
+ u(e(Ae), {
1894
1896
  size: "sm",
1895
1897
  icon: p.value ? "minimize" : "maximize",
1896
1898
  tone: "neutral",
@@ -1978,7 +1980,7 @@ const Nl = { class: "wx-block-editor" }, Pl = { class: "wx-block-editor__columns
1978
1980
  }
1979
1981
  return (p, b) => {
1980
1982
  const f = kt("blocks-tree", !0);
1981
- return i(), L(e(sl), {
1983
+ return i(), A(e(sl), {
1982
1984
  "model-value": t.nodes,
1983
1985
  "item-key": "key",
1984
1986
  "item-label": (k) => a(k),
@@ -2085,7 +2087,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2085
2087
  }, Bn = {
2086
2088
  key: 0,
2087
2089
  class: "wx-blocks__tree"
2088
- }, En = { class: "wx-blocks__panel-head" }, Wn = { class: "wx-blocks__panel-title" }, An = { class: "wx-blocks__tools" }, Ln = {
2090
+ }, En = { class: "wx-blocks__panel-head" }, Wn = { class: "wx-blocks__panel-title" }, Ln = { class: "wx-blocks__tools" }, An = {
2089
2091
  key: 1,
2090
2092
  class: "wx-blocks__fields"
2091
2093
  }, zn = { class: "wx-blocks__panel-head" }, Un = { class: "wx-blocks__panel-title" }, In = {
@@ -2122,11 +2124,11 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2122
2124
  () => f.value ? d.value.find((m) => m.slug === f.value?.node.type) ?? null : null
2123
2125
  );
2124
2126
  function B(m) {
2125
- return d.value.find((A) => A.slug === m.type)?.title ?? m.type;
2127
+ return d.value.find((L) => L.slug === m.type)?.title ?? m.type;
2126
2128
  }
2127
2129
  const V = T(() => {
2128
2130
  const m = [];
2129
- return Pe(p.value, (A) => m.push(A.key)), m;
2131
+ return Pe(p.value, (L) => m.push(L.key)), m;
2130
2132
  }), _ = T(() => {
2131
2133
  const m = b.value ? V.value.indexOf(b.value) : -1;
2132
2134
  return {
@@ -2135,14 +2137,14 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2135
2137
  };
2136
2138
  }), g = T(() => {
2137
2139
  const m = [];
2138
- let A = f.value?.parent ?? null;
2139
- for (; A; )
2140
- m.unshift({ key: A.key, title: B(A) }), A = se(p.value, A.key)?.parent ?? null;
2140
+ let L = f.value?.parent ?? null;
2141
+ for (; L; )
2142
+ m.unshift({ key: L.key, title: B(L) }), L = se(p.value, L.key)?.parent ?? null;
2141
2143
  return m;
2142
2144
  }), w = He(nt, null), H = N(null), K = N(null), Z = qe(K), ne = T(() => w !== null && w.url.value !== null), C = T(() => ne.value && Z.value > 0 && Z.value <= 900), P = N(!1), O = T(() => {
2143
2145
  if (!f.value) return;
2144
2146
  const m = k.value?.title ?? f.value.node.type;
2145
- return [...g.value.map((A) => A.title), m].join(" / ");
2147
+ return [...g.value.map((L) => L.title), m].join(" / ");
2146
2148
  }), q = T(
2147
2149
  () => C.value ? {
2148
2150
  /* Up from the bottom, and not all the way: the strip of page left above it is what
@@ -2173,8 +2175,8 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2173
2175
  function Q(m) {
2174
2176
  o.value = m;
2175
2177
  }
2176
- async function $e(m, A, D) {
2177
- const S = m ? se(p.value, m) : null, v = S ? d.value.find((Dt) => Dt.slug === S.node.type) ?? null : null, $ = m === null ? l.allow : D?.props?.allow ?? null, Oe = m === null ? l.max : D?.props?.max ?? null, at = m === null ? p.value : S && A ? S.node.values[A] ?? [] : [];
2178
+ async function $e(m, L, D) {
2179
+ const S = m ? se(p.value, m) : null, v = S ? d.value.find((Dt) => Dt.slug === S.node.type) ?? null : null, $ = m === null ? l.allow : D?.props?.allow ?? null, Oe = m === null ? l.max : D?.props?.max ?? null, at = m === null ? p.value : S && L ? S.node.values[L] ?? [] : [];
2178
2180
  if (Oe != null && at.length >= Oe) return;
2179
2181
  const Ke = await he({
2180
2182
  catalog: d.value,
@@ -2186,21 +2188,21 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2186
2188
  });
2187
2189
  if (!Ke) return;
2188
2190
  const ot = $l(Ke.slug, be(Ke));
2189
- Q(mt(p.value, m, A, at.length, ot)), b.value = ot.key;
2191
+ Q(mt(p.value, m, L, at.length, ot)), b.value = ot.key;
2190
2192
  }
2191
2193
  function be(m) {
2192
- const A = m.content?.sample ?? {}, D = {};
2193
- for (const [S, v] of Object.entries(A))
2194
+ const L = m.content?.sample ?? {}, D = {};
2195
+ for (const [S, v] of Object.entries(L))
2194
2196
  (!Array.isArray(v) || v.length === 0 || typeof v[0] != "object") && (D[S] = v);
2195
2197
  return D;
2196
2198
  }
2197
2199
  async function de(m) {
2198
- const A = se(p.value, m);
2199
- if (!A) return;
2200
- const D = Sl(A.node);
2200
+ const L = se(p.value, m);
2201
+ if (!L) return;
2202
+ const D = Sl(L.node);
2201
2203
  await Fe({
2202
2204
  title: s("field.remove-title", {
2203
- title: d.value.find((v) => v.slug === A.node.type)?.title ?? A.node.type
2205
+ title: d.value.find((v) => v.slug === L.node.type)?.title ?? L.node.type
2204
2206
  }),
2205
2207
  message: D > 0 ? s("field.remove-text", { count: D }) : s("field.remove-alone"),
2206
2208
  confirmText: s("field.remove"),
@@ -2209,16 +2211,16 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2209
2211
  }) && (b.value === m && (b.value = null), Q(Bl(p.value, m)));
2210
2212
  }
2211
2213
  function U(m) {
2212
- const A = se(p.value, m);
2213
- if (!A) return;
2214
- const D = It(A.node);
2215
- Q(mt(p.value, A.parent?.key ?? null, A.field, A.index + 1, D)), b.value = D.key;
2214
+ const L = se(p.value, m);
2215
+ if (!L) return;
2216
+ const D = It(L.node);
2217
+ Q(mt(p.value, L.parent?.key ?? null, L.field, L.index + 1, D)), b.value = D.key;
2216
2218
  }
2217
- function M(m, A) {
2218
- Q(Vl(p.value, m, A));
2219
+ function M(m, L) {
2220
+ Q(Vl(p.value, m, L));
2219
2221
  }
2220
- function R(m, A, D) {
2221
- Q(Wl(p.value, m, A, D));
2222
+ function R(m, L, D) {
2223
+ Q(Wl(p.value, m, L, D));
2222
2224
  }
2223
2225
  function G(m) {
2224
2226
  b.value = b.value === m ? null : m;
@@ -2235,8 +2237,8 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2235
2237
  let ge;
2236
2238
  fe(
2237
2239
  () => f.value?.node.values,
2238
- (m, A) => {
2239
- if (!m || !A || !k.value || !h || !w) return;
2240
+ (m, L) => {
2241
+ if (!m || !L || !k.value || !h || !w) return;
2240
2242
  const D = b.value, S = k.value.id;
2241
2243
  clearTimeout(ge), ge = setTimeout(() => {
2242
2244
  !D || !h || h.render(S, { values: m, key: D }).then((v) => {
@@ -2265,7 +2267,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2265
2267
  const ye = T(
2266
2268
  () => k.value?.content ? lt(k.value.content.schema) : []
2267
2269
  );
2268
- return (m, A) => e(n) ? (i(), x("div", Cn, [
2270
+ return (m, L) => e(n) ? (i(), x("div", Cn, [
2269
2271
  u(e(F), {
2270
2272
  size: "sm",
2271
2273
  tone: "muted"
@@ -2287,7 +2289,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2287
2289
  "has-preview": e(w) !== null && e(w).url.value !== null
2288
2290
  }])
2289
2291
  }, [
2290
- (i(), L(Ft(C.value ? e(il) : "div"), qt(q.value, { class: "wx-blocks__side" }), {
2292
+ (i(), A(Ft(C.value ? e(il) : "div"), qt(q.value, { class: "wx-blocks__side" }), {
2291
2293
  default: c(() => [
2292
2294
  f.value ? z("", !0) : (i(), x("div", Bn, [
2293
2295
  W("div", En, [
@@ -2314,25 +2316,25 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2314
2316
  onVisibility: M,
2315
2317
  onReorder: R
2316
2318
  }, null, 8, ["nodes", "catalog", "selected", "disabled"]),
2317
- W("div", An, [
2318
- !t.disabled && (t.max === null || p.value.length < t.max) ? (i(), L(e(ie), {
2319
+ W("div", Ln, [
2320
+ !t.disabled && (t.max === null || p.value.length < t.max) ? (i(), A(e(ie), {
2319
2321
  key: 0,
2320
2322
  variant: "outline",
2321
2323
  icon: "plus",
2322
2324
  class: "wx-blocks__add",
2323
- onClick: A[0] || (A[0] = (D) => $e(null, null, null))
2325
+ onClick: L[0] || (L[0] = (D) => $e(null, null, null))
2324
2326
  }, {
2325
2327
  default: c(() => [
2326
2328
  E(y(e(s)("field.add")), 1)
2327
2329
  ]),
2328
2330
  _: 1
2329
2331
  })) : z("", !0),
2330
- !C.value && e(w) && e(w).url.value ? (i(), L(e(ie), {
2332
+ !C.value && e(w) && e(w).url.value ? (i(), A(e(ie), {
2331
2333
  key: 1,
2332
2334
  variant: "outline",
2333
2335
  icon: "eye",
2334
2336
  class: "wx-blocks__preview-button",
2335
- onClick: A[1] || (A[1] = (D) => H.value?.open())
2337
+ onClick: L[1] || (L[1] = (D) => H.value?.open())
2336
2338
  }, {
2337
2339
  default: c(() => [
2338
2340
  E(y(e(s)("field.preview")), 1)
@@ -2341,7 +2343,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2341
2343
  })) : z("", !0)
2342
2344
  ])
2343
2345
  ])),
2344
- f.value ? (i(), x("div", Ln, [
2346
+ f.value ? (i(), x("div", An, [
2345
2347
  W("div", zn, [
2346
2348
  W("span", Un, [
2347
2349
  g.value.length ? (i(), x("span", In, [
@@ -2360,30 +2362,30 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2360
2362
  ]),
2361
2363
  W("span", Mn, [
2362
2364
  C.value ? z("", !0) : (i(), x("code", On, y(f.value.node.type), 1)),
2363
- u(e(Le), {
2365
+ u(e(Ae), {
2364
2366
  size: "sm",
2365
2367
  tone: "neutral",
2366
2368
  icon: "chevron-up",
2367
2369
  title: e(s)("field.previous"),
2368
2370
  disabled: _.value.previous === null,
2369
- onClick: A[2] || (A[2] = (D) => _.value.previous && G(_.value.previous))
2371
+ onClick: L[2] || (L[2] = (D) => _.value.previous && G(_.value.previous))
2370
2372
  }, null, 8, ["title", "disabled"]),
2371
- u(e(Le), {
2373
+ u(e(Ae), {
2372
2374
  size: "sm",
2373
2375
  tone: "neutral",
2374
2376
  icon: "chevron-down",
2375
2377
  title: e(s)("field.next"),
2376
2378
  disabled: _.value.next === null,
2377
- onClick: A[3] || (A[3] = (D) => _.value.next && G(_.value.next))
2379
+ onClick: L[3] || (L[3] = (D) => _.value.next && G(_.value.next))
2378
2380
  }, null, 8, ["title", "disabled"]),
2379
- !C.value && e(w) && e(w).url.value ? (i(), L(e(ie), {
2381
+ !C.value && e(w) && e(w).url.value ? (i(), A(e(ie), {
2380
2382
  key: 1,
2381
2383
  size: "sm",
2382
2384
  variant: "outline",
2383
2385
  icon: "eye",
2384
2386
  class: "wx-blocks__preview-button",
2385
2387
  "aria-label": e(s)("field.preview"),
2386
- onClick: A[4] || (A[4] = (D) => H.value?.open())
2388
+ onClick: L[4] || (L[4] = (D) => H.value?.open())
2387
2389
  }, null, 8, ["aria-label"])) : z("", !0),
2388
2390
  u(e(ie), {
2389
2391
  size: "sm",
@@ -2398,7 +2400,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2398
2400
  ])
2399
2401
  ]),
2400
2402
  W("div", Dn, [
2401
- k.value?.content ? (i(), L(e(Et), {
2403
+ k.value?.content ? (i(), A(e(Et), {
2402
2404
  key: f.value.node.key,
2403
2405
  "model-value": f.value.node.values,
2404
2406
  root: ye.value,
@@ -2407,7 +2409,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2407
2409
  can: xe.value,
2408
2410
  disabled: t.disabled,
2409
2411
  "onUpdate:modelValue": oe
2410
- }, null, 8, ["model-value", "root", "types", "translate", "can", "disabled"])) : (i(), L(e(F), {
2412
+ }, null, 8, ["model-value", "root", "types", "translate", "can", "disabled"])) : (i(), A(e(F), {
2411
2413
  key: 1,
2412
2414
  size: "sm",
2413
2415
  tone: "danger"
@@ -2431,7 +2433,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2431
2433
  reload: e(w).reload?.value ?? 0,
2432
2434
  compact: C.value,
2433
2435
  onSelect: ce,
2434
- onEdit: A[5] || (A[5] = (D) => P.value = !0)
2436
+ onEdit: L[5] || (L[5] = (D) => P.value = !0)
2435
2437
  }, null, 8, ["url", "selected", "reload", "compact"])
2436
2438
  ])) : z("", !0)
2437
2439
  ], 2)
@@ -2467,7 +2469,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2467
2469
  _: 1
2468
2470
  }),
2469
2471
  W("div", Jn, [
2470
- t.block.draft ? (i(), L(e(Y), {
2472
+ t.block.draft ? (i(), A(e(Y), {
2471
2473
  key: 0,
2472
2474
  type: "warning",
2473
2475
  dot: ""
@@ -2477,7 +2479,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2477
2479
  ]),
2478
2480
  _: 1
2479
2481
  })) : z("", !0),
2480
- t.block.published ? (i(), L(e(Y), {
2482
+ t.block.published ? (i(), A(e(Y), {
2481
2483
  key: 1,
2482
2484
  type: "success",
2483
2485
  dot: ""
@@ -2486,7 +2488,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2486
2488
  E(y(e(n)("page.live", { number: t.block.published.number })), 1)
2487
2489
  ]),
2488
2490
  _: 1
2489
- })) : (i(), L(e(Y), {
2491
+ })) : (i(), A(e(Y), {
2490
2492
  key: 2,
2491
2493
  type: "default"
2492
2494
  }, {
@@ -2495,7 +2497,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2495
2497
  ]),
2496
2498
  _: 1
2497
2499
  })),
2498
- t.block.is_enabled ? z("", !0) : (i(), L(e(Y), {
2500
+ t.block.is_enabled ? z("", !0) : (i(), A(e(Y), {
2499
2501
  key: 3,
2500
2502
  type: "default",
2501
2503
  variant: "outline"
@@ -2515,7 +2517,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2515
2517
  const { resolve: l, dismiss: o, open: n } = St(), s = Ie(), r = We(s);
2516
2518
  Me();
2517
2519
  const a = re("webx-blocks"), h = Ne(), I = T(() => s.state.manifest?.modules.find((w) => w.id === "blocks")?.meta?.groups ?? ["content"]), d = N({ title: "", slug: "", group: I.value[0] ?? "content" }), p = N({}), b = N(!1), f = N(!1), k = T(
2518
- () => I.value.map((g) => ({ value: g, label: Ae(g, a) }))
2520
+ () => I.value.map((g) => ({ value: g, label: Le(g, a) }))
2519
2521
  );
2520
2522
  function B(g) {
2521
2523
  return g.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").replace(/^[^a-z]+/, "").slice(0, 64);
@@ -2540,7 +2542,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2540
2542
  b.value = !1;
2541
2543
  }
2542
2544
  }
2543
- return (g, w) => (i(), L(e(Vt), {
2545
+ return (g, w) => (i(), A(e(Vt), {
2544
2546
  open: e(n),
2545
2547
  "onUpdate:open": w[5] || (w[5] = (H) => yt(n) ? n.value = H : null),
2546
2548
  title: e(a)("page.new"),
@@ -2657,12 +2659,12 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2657
2659
  }), g = T(
2658
2660
  () => _.value.length < 2 ? [] : [
2659
2661
  { value: "", label: r("page.all-groups") },
2660
- ..._.value.map((C) => ({ value: C, label: Ae(C, r) }))
2662
+ ..._.value.map((C) => ({ value: C, label: Le(C, r) }))
2661
2663
  ]
2662
2664
  ), w = T(() => {
2663
2665
  const C = _.value.map((O) => ({
2664
2666
  id: O,
2665
- label: Ae(O, r),
2667
+ label: Le(O, r),
2666
2668
  blocks: V.value.filter((q) => q.group === O)
2667
2669
  })).filter((O) => O.blocks.length > 0);
2668
2670
  return p.value !== "" || V.value.length <= 5 || d.value.trim() !== "" || C.length < 2 ? [{ id: "", label: "", blocks: V.value }] : C;
@@ -2690,7 +2692,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2690
2692
  Z();
2691
2693
  } }] : []
2692
2694
  );
2693
- return (C, P) => (i(), L(e(tl), {
2695
+ return (C, P) => (i(), A(e(tl), {
2694
2696
  view: p.value,
2695
2697
  "onUpdate:view": P[1] || (P[1] = (O) => p.value = O),
2696
2698
  class: "wx-blocks-page",
@@ -2699,7 +2701,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2699
2701
  actions: ne.value
2700
2702
  }, {
2701
2703
  default: c(() => [
2702
- f.value.editing ? z("", !0) : (i(), L(e($t), {
2704
+ f.value.editing ? z("", !0) : (i(), A(e($t), {
2703
2705
  key: 0,
2704
2706
  type: "info",
2705
2707
  variant: "soft",
@@ -2714,7 +2716,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2714
2716
  clearable: ""
2715
2717
  }, null, 8, ["modelValue", "placeholder"])
2716
2718
  ])) : z("", !0),
2717
- I.value ? (i(), L(e(Ce), { key: 2 }, {
2719
+ I.value ? (i(), A(e(Ce), { key: 2 }, {
2718
2720
  template: c(() => [
2719
2721
  W("div", ea, [
2720
2722
  (i(), x(j, null, ee(4, (O) => W("div", {
@@ -2745,7 +2747,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2745
2747
  ])
2746
2748
  ]),
2747
2749
  _: 1
2748
- })) : h.value.length === 0 ? (i(), L(e(Ct), {
2750
+ })) : h.value.length === 0 ? (i(), A(e(Ct), {
2749
2751
  key: 3,
2750
2752
  icon: "grid",
2751
2753
  title: e(r)("page.empty"),
@@ -2756,7 +2758,7 @@ const gt = /* @__PURE__ */ Symbol("wx-blocks-root"), Cn = {
2756
2758
  }, [
2757
2759
  O.label ? (i(), x("div", la, y(O.label), 1)) : z("", !0),
2758
2760
  W("div", na, [
2759
- (i(!0), x(j, null, ee(O.blocks, (q) => (i(), L(Zn, {
2761
+ (i(!0), x(j, null, ee(O.blocks, (q) => (i(), A(Zn, {
2760
2762
  key: q.id,
2761
2763
  block: q,
2762
2764
  onOpen: K
@@ -2804,7 +2806,7 @@ export {
2804
2806
  jn as WxBlocks,
2805
2807
  oa as WxBlocksPage,
2806
2808
  fa as blocks,
2807
- Al as blocksMessages,
2809
+ Ll as blocksMessages,
2808
2810
  nt as blocksPreviewKey,
2809
2811
  It as cloneNode,
2810
2812
  Tl as countType,
@@ -2813,7 +2815,7 @@ export {
2813
2815
  lt as formSchema,
2814
2816
  Ye as highlightBlock,
2815
2817
  mt as insertNode,
2816
- Lt as isNode,
2818
+ At as isNode,
2817
2819
  Je as isNodeList,
2818
2820
  zl as lintBlock,
2819
2821
  se as locate,
@@ -2823,7 +2825,7 @@ export {
2823
2825
  Bl as removeNode,
2824
2826
  bl as replaceBlock,
2825
2827
  Wl as replaceList,
2826
- At as stageDocument,
2828
+ Lt as stageDocument,
2827
2829
  da as typesIn,
2828
2830
  Ul as undeclared,
2829
2831
  El as updateValues,