@agile-team/mach-report 2.9.0 → 2.9.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/designer.js CHANGED
@@ -1,8 +1,8 @@
1
- import { watch as Z, onBeforeUnmount as $e, defineComponent as Ee, computed as z, ref as F, openBlock as h, createElementBlock as y, createElementVNode as n, toDisplayString as l, createTextVNode as P, withDirectives as ae, vModelSelect as ye, normalizeStyle as re, Fragment as U, renderList as W, unref as e, normalizeClass as _e, withModifiers as tt, createCommentVNode as B, nextTick as de, createVNode as Q, onMounted as ht, shallowRef as nt, defineAsyncComponent as Me, getCurrentInstance as gt, withKeys as Be, createBlock as fe, vShow as Te, isRef as xe, vModelText as qe } from "vue";
1
+ import { watch as Z, onBeforeUnmount as $e, defineComponent as Ee, computed as z, ref as j, openBlock as h, createElementBlock as y, createElementVNode as n, toDisplayString as l, createTextVNode as P, withDirectives as oe, vModelSelect as ye, normalizeStyle as re, Fragment as U, renderList as W, unref as e, normalizeClass as _e, withModifiers as tt, createCommentVNode as B, nextTick as de, createVNode as Q, onMounted as ht, shallowRef as nt, defineAsyncComponent as Me, getCurrentInstance as gt, withKeys as Be, createBlock as fe, vShow as Te, isRef as Ce, vModelText as qe } from "vue";
2
2
  import { provideMachReportConfig as ft, createLocalFetcher as bt, ReportPreview as yt } from "@agile-team/mach-report/vue";
3
3
  import { resolveGridLayout as ve, parseReportTemplate as Y, serializeReportTemplate as me, validateReportTemplateDocument as Ye } from "@agile-team/mach-report";
4
- import { _ as Ie, a as oe } from "./_plugin-vue_export-helper-8SL1F89S.js";
5
- import { r as je } from "./style-CQ1PK8ZB.js";
4
+ import { _ as Ie, a as ae } from "./_plugin-vue_export-helper-8SL1F89S.js";
5
+ import { r as Ne } from "./style-CQ1PK8ZB.js";
6
6
  const wt = 96 / 25.4;
7
7
  function Oe(t) {
8
8
  return t.kind === "list" ? Math.max(
@@ -60,16 +60,16 @@ function kt(t, u = "detail") {
60
60
  imageData: `data:image/svg+xml;charset=utf-8,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="180" height="90" viewBox="0 0 180 90"><rect width="180" height="90" rx="5" fill="#eff6ff"/><path d="m25 68 32-32 25 23 27-35 45 44" fill="none" stroke="#94b8e5" stroke-width="3"/><circle cx="45" cy="24" r="7" fill="#bfd5ef"/></svg>')}`
61
61
  };
62
62
  }
63
- function Fe(t, u, s = !1) {
64
- const r = Math.max(2, Math.min(u.widthMm, t.widthMm)), o = Math.max(2, Math.min(u.heightMm, t.heightMm));
63
+ function je(t, u, s = !1) {
64
+ const r = Math.max(2, Math.min(u.widthMm, t.widthMm)), a = Math.max(2, Math.min(u.heightMm, t.heightMm));
65
65
  return {
66
66
  leftMm: Math.max(0, Math.min(u.widthMm - r, t.leftMm)),
67
67
  topMm: Math.max(
68
68
  0,
69
- Math.min(u.heightMm - (s ? 2 : o), t.topMm)
69
+ Math.min(u.heightMm - (s ? 2 : a), t.topMm)
70
70
  ),
71
71
  widthMm: r,
72
- heightMm: o
72
+ heightMm: a
73
73
  };
74
74
  }
75
75
  function Qe(t, u) {
@@ -81,13 +81,13 @@ function Qe(t, u) {
81
81
  }), t.kind !== "list") t.heightMm = u.heightMm;
82
82
  else if (s > 0 && u.widthMm !== s) {
83
83
  const r = u.widthMm / s;
84
- t.columns.forEach((o) => {
85
- o.widthMm = Math.round(o.widthMm * r * 100) / 100;
84
+ t.columns.forEach((a) => {
85
+ a.widthMm = Math.round(a.widthMm * r * 100) / 100;
86
86
  }), t.widthMm = t.columns.reduce(
87
- (o, b) => o + b.widthMm,
87
+ (a, b) => a + b.widthMm,
88
88
  0
89
89
  ), t.headerGrid && (t.headerGrid.colWidthsMm = t.columns.map(
90
- (o) => o.widthMm
90
+ (a) => a.widthMm
91
91
  ));
92
92
  }
93
93
  }
@@ -96,13 +96,13 @@ function Mt(t, u, s) {
96
96
  if (t.headerGrid) {
97
97
  if (ve(t.headerGrid, t.widthMm, 100).cells.some(({ cell: b }) => (b.colSpan ?? 1) > 1))
98
98
  throw new Error("请先拆分跨列合并表头,再调整列顺序,避免改变业务分组。");
99
- const o = Re(t);
100
- o.forEach((b) => {
99
+ const a = Re(t);
100
+ a.forEach((b) => {
101
101
  b.splice(s, 0, b.splice(u, 1)[0]);
102
102
  }), t.headerGrid = Ge(
103
- o,
103
+ a,
104
104
  t.columns.map((b) => b.widthMm),
105
- t.headerGrid.rowHeightsMm ?? o.map(() => 8)
105
+ t.headerGrid.rowHeightsMm ?? a.map(() => 8)
106
106
  );
107
107
  }
108
108
  return t.columns.splice(s, 0, t.columns.splice(u, 1)[0]), t.headerGrid && (t.headerGrid.colWidthsMm = t.columns.map((r) => r.widthMm)), !0;
@@ -114,12 +114,12 @@ function Re(t) {
114
114
  { length: t.headerGrid.cells.length },
115
115
  () => Array.from({ length: t.columns.length }, () => null)
116
116
  );
117
- for (const { cell: s, ri: r, ci: o } of ve(
117
+ for (const { cell: s, ri: r, ci: a } of ve(
118
118
  t.headerGrid,
119
119
  t.widthMm,
120
120
  100
121
121
  ).cells)
122
- u[r][o] = s;
122
+ u[r][a] = s;
123
123
  return u;
124
124
  }
125
125
  function Ge(t, u, s) {
@@ -129,13 +129,13 @@ function Ge(t, u, s) {
129
129
  if (r.has(`${m}:${d}`)) return [];
130
130
  if (!_) return [null];
131
131
  for (let w = m; w < m + (_.rowSpan ?? 1); w++)
132
- for (let C = d; C < d + (_.colSpan ?? 1); C++)
133
- (w !== m || C !== d) && r.add(`${w}:${C}`);
132
+ for (let x = d; x < d + (_.colSpan ?? 1); x++)
133
+ (w !== m || x !== d) && r.add(`${w}:${x}`);
134
134
  return [_];
135
135
  })
136
136
  ), colWidthsMm: u, rowHeightsMm: s };
137
137
  }
138
- function Ct(t) {
138
+ function xt(t) {
139
139
  const u = Re(t), s = t.headerGrid?.rowHeightsMm ?? u.map(() => 8);
140
140
  u.unshift(
141
141
  t.columns.map(() => ({
@@ -148,10 +148,10 @@ function Ct(t) {
148
148
  [8, ...s]
149
149
  );
150
150
  }
151
- function xt(t, u, s, r) {
151
+ function Ct(t, u, s, r) {
152
152
  if (s >= r || s < 0 || r >= t.columns.length)
153
153
  throw new Error("请选择同一行的至少两个连续表头。");
154
- const o = Re(t), b = o[u];
154
+ const a = Re(t), b = a[u];
155
155
  if (!b) throw new Error("表头行不存在。");
156
156
  const m = b.slice(s, r + 1);
157
157
  if (m.some(
@@ -162,25 +162,25 @@ function xt(t, u, s, r) {
162
162
  b[s] = { ..._, colSpan: r - s + 1 };
163
163
  for (let d = s + 1; d <= r; d++) b[d] = null;
164
164
  t.headerGrid = Ge(
165
- o,
165
+ a,
166
166
  t.columns.map((d) => d.widthMm),
167
167
  t.headerGrid?.rowHeightsMm ?? [8]
168
168
  );
169
169
  }
170
170
  function _t(t, u, s) {
171
171
  if (!t.headerGrid) return;
172
- const o = ve(t.headerGrid, t.widthMm, 100).cells.find(
173
- ({ ri: w, ci: C, cell: E }) => u >= w && u < w + (E.rowSpan ?? 1) && s >= C && s < C + (E.colSpan ?? 1)
172
+ const a = ve(t.headerGrid, t.widthMm, 100).cells.find(
173
+ ({ ri: w, ci: x, cell: E }) => u >= w && u < w + (E.rowSpan ?? 1) && s >= x && s < x + (E.colSpan ?? 1)
174
174
  );
175
- if (!o) return;
176
- const b = Re(t), { ri: m, ci: _, cell: d } = o;
175
+ if (!a) return;
176
+ const b = Re(t), { ri: m, ci: _, cell: d } = a;
177
177
  for (let w = m; w < m + (d.rowSpan ?? 1); w++)
178
- for (let C = _; C < _ + (d.colSpan ?? 1); C++) {
178
+ for (let x = _; x < _ + (d.colSpan ?? 1); x++) {
179
179
  const E = {
180
180
  ...d,
181
- text: w === b.length - 1 ? t.columns[C].header : d.text
181
+ text: w === b.length - 1 ? t.columns[x].header : d.text
182
182
  };
183
- delete E.colSpan, delete E.rowSpan, b[w][C] = E;
183
+ delete E.colSpan, delete E.rowSpan, b[w][x] = E;
184
184
  }
185
185
  t.headerGrid = Ge(
186
186
  b,
@@ -189,11 +189,11 @@ function _t(t, u, s) {
189
189
  );
190
190
  }
191
191
  function Ze(t, u, s) {
192
- const r = t.filter((o) => o !== u).flatMap((o) => {
193
- const b = o[s], m = s === "leftMm" ? o.widthMm : Oe(o);
192
+ const r = t.filter((a) => a !== u).flatMap((a) => {
193
+ const b = a[s], m = s === "leftMm" ? a.widthMm : Oe(a);
194
194
  return [b, b + m / 2, b + m];
195
195
  });
196
- return [...new Set(r)].sort((o, b) => o - b);
196
+ return [...new Set(r)].sort((a, b) => a - b);
197
197
  }
198
198
  function St(t, u) {
199
199
  if (!t.length) return;
@@ -202,52 +202,52 @@ function St(t, u) {
202
202
  const m = s + r >>> 1;
203
203
  t[m] < u ? s = m + 1 : r = m;
204
204
  }
205
- const o = t[Math.max(0, s - 1)], b = t[Math.min(t.length - 1, s)];
206
- return Math.abs(o - u) < Math.abs(b - u) ? o : b;
205
+ const a = t[Math.max(0, s - 1)], b = t[Math.min(t.length - 1, s)];
206
+ return Math.abs(a - u) < Math.abs(b - u) ? a : b;
207
207
  }
208
208
  function et(t, u, s, r) {
209
- let o = 1 / 0, b = {
209
+ let a = 1 / 0, b = {
210
210
  value: Math.round(t * 2) / 2
211
211
  };
212
212
  for (const m of [0, u / 2, u]) {
213
213
  const _ = St(s, t + m);
214
214
  if (_ === void 0) continue;
215
215
  const d = Math.abs(_ - t - m);
216
- d <= r && d < o && (o = d, b = { value: _ - m, guide: _ });
216
+ d <= r && d < a && (a = d, b = { value: _ - m, guide: _ });
217
217
  }
218
218
  return b;
219
219
  }
220
220
  function $t(t) {
221
221
  let u;
222
- function s(r, o, b = !1) {
222
+ function s(r, a, b = !1) {
223
223
  if (t.disabled() || r.button !== 0) return;
224
224
  r.preventDefault(), r.stopPropagation(), u?.();
225
225
  const m = r.currentTarget.closest(
226
226
  "[data-canvas-component]"
227
- ), _ = Se(o), d = r.clientX, w = r.clientY;
228
- let C = _, E = 0;
227
+ ), _ = Se(a), d = r.clientX, w = r.clientY;
228
+ let x = _, E = 0;
229
229
  const G = t.scale.value, A = m.parentElement;
230
230
  let g, f;
231
231
  const I = () => {
232
- for (const [T, N] of [
232
+ for (const [T, F] of [
233
233
  ["x", g],
234
234
  ["y", f]
235
235
  ])
236
236
  A.style.setProperty(
237
237
  `--mr-canvas-guide-${T}-display`,
238
- N === void 0 ? "none" : "block"
239
- ), N !== void 0 && A.style.setProperty(
238
+ F === void 0 ? "none" : "block"
239
+ ), F !== void 0 && A.style.setProperty(
240
240
  `--mr-canvas-guide-${T}`,
241
- `${N * G}px`
241
+ `${F * G}px`
242
242
  );
243
243
  }, k = () => {
244
- E = 0, I(), m.style.left = `${C.leftMm * G}px`, m.style.top = `${C.topMm * G}px`, m.style.width = `${C.widthMm * G}px`, m.style.height = `${C.heightMm * G}px`;
244
+ E = 0, I(), m.style.left = `${x.leftMm * G}px`, m.style.top = `${x.topMm * G}px`, m.style.width = `${x.widthMm * G}px`, m.style.height = `${x.heightMm * G}px`;
245
245
  }, S = {
246
- leftMm: Ze(t.page().components, o, "leftMm"),
247
- topMm: Ze(t.page().components, o, "topMm")
246
+ leftMm: Ze(t.page().components, a, "leftMm"),
247
+ topMm: Ze(t.page().components, a, "topMm")
248
248
  }, c = (T) => {
249
- const N = (T.clientX - d) / G, te = (T.clientY - w) / G, a = et(
250
- _.leftMm + N,
249
+ const F = (T.clientX - d) / G, te = (T.clientY - w) / G, o = et(
250
+ _.leftMm + F,
251
251
  _.widthMm,
252
252
  S.leftMm,
253
253
  5 / G
@@ -257,21 +257,21 @@ function $t(t) {
257
257
  S.topMm,
258
258
  5 / G
259
259
  );
260
- g = b ? void 0 : a.guide, f = b ? void 0 : q.guide, C = Fe(
260
+ g = b ? void 0 : o.guide, f = b ? void 0 : q.guide, x = je(
261
261
  b ? {
262
262
  ..._,
263
- widthMm: Math.round((_.widthMm + N) * 2) / 2,
263
+ widthMm: Math.round((_.widthMm + F) * 2) / 2,
264
264
  heightMm: Math.round((_.heightMm + te) * 2) / 2
265
- } : { ..._, leftMm: a.value, topMm: q.value },
265
+ } : { ..._, leftMm: o.value, topMm: q.value },
266
266
  t.page(),
267
- o.kind === "list"
267
+ a.kind === "list"
268
268
  ), E || (E = requestAnimationFrame(k));
269
269
  }, M = (T) => {
270
- window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", x), window.removeEventListener("keydown", D), E && cancelAnimationFrame(E), C = T ? C : _, g = void 0, f = void 0, k(), u = void 0, T && JSON.stringify(C) !== JSON.stringify(_) && t.commit(C);
271
- }, p = () => M(!0), x = () => M(!1), D = (T) => {
272
- T.key === "Escape" && (T.preventDefault(), x());
270
+ window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", p), window.removeEventListener("pointercancel", C), window.removeEventListener("keydown", D), E && cancelAnimationFrame(E), x = T ? x : _, g = void 0, f = void 0, k(), u = void 0, T && JSON.stringify(x) !== JSON.stringify(_) && t.commit(x);
271
+ }, p = () => M(!0), C = () => M(!1), D = (T) => {
272
+ T.key === "Escape" && (T.preventDefault(), C());
273
273
  };
274
- window.addEventListener("pointermove", c), window.addEventListener("pointerup", p), window.addEventListener("pointercancel", x), window.addEventListener("keydown", D), u = x;
274
+ window.addEventListener("pointermove", c), window.addEventListener("pointerup", p), window.addEventListener("pointercancel", C), window.addEventListener("keydown", D), u = C;
275
275
  }
276
276
  return Z(t.disabled, (r) => {
277
277
  r && u?.();
@@ -425,7 +425,7 @@ const Et = {
425
425
  }, zt = {
426
426
  key: 0,
427
427
  class: "mr-canvas-grid-limit"
428
- }, jt = ["src"], Ft = ["aria-label", "onPointerdown"], Nt = /* @__PURE__ */ Ee({
428
+ }, Nt = ["src"], jt = ["aria-label", "onPointerdown"], Ft = /* @__PURE__ */ Ee({
429
429
  __name: "TemplateDesignCanvas",
430
430
  props: {
431
431
  document: {},
@@ -437,7 +437,7 @@ const Et = {
437
437
  },
438
438
  emits: ["select", "geometry", "column", "width"],
439
439
  setup(t, { emit: u }) {
440
- const s = t, r = u, o = z(() => ({ ...Pe, ...s.messages })), b = F(0.8), m = z(() => b.value * wt), _ = z(() => s.document.template.pages[s.pageIndex]), d = $t({
440
+ const s = t, r = u, a = z(() => ({ ...Pe, ...s.messages })), b = j(0.8), m = z(() => b.value * wt), _ = z(() => s.document.template.pages[s.pageIndex]), d = $t({
441
441
  scale: m,
442
442
  page: () => _.value,
443
443
  disabled: () => s.disabled === !0,
@@ -446,7 +446,7 @@ const Et = {
446
446
  function w(k) {
447
447
  return s.selection?.pageIndex === s.pageIndex && s.selection.componentIndex === k;
448
448
  }
449
- function C(k) {
449
+ function x(k) {
450
450
  const S = _.value.components[k];
451
451
  return {
452
452
  left: `${S.leftMm * m.value}px`,
@@ -466,8 +466,8 @@ const Et = {
466
466
  }, p = M[k.key];
467
467
  if (!p) return;
468
468
  k.preventDefault(), k.stopPropagation();
469
- const x = Se(c), D = k.shiftKey ? 5 : 0.5;
470
- x.leftMm += p[0] * D, x.topMm += p[1] * D, r("geometry", x);
469
+ const C = Se(c), D = k.shiftKey ? 5 : 0.5;
470
+ C.leftMm += p[0] * D, C.topMm += p[1] * D, r("geometry", C);
471
471
  }
472
472
  function G(k) {
473
473
  let S = 0;
@@ -504,27 +504,27 @@ const Et = {
504
504
  if (s.disabled || k.button !== 0) return;
505
505
  k.preventDefault(), k.stopPropagation(), f?.();
506
506
  const M = k.clientX, p = S.columns[c].widthMm;
507
- let x = p;
507
+ let C = p;
508
508
  const D = k.currentTarget, T = ($) => {
509
- x = Math.max(
509
+ C = Math.max(
510
510
  2,
511
511
  Math.round((p + ($.clientX - M) / m.value) * 2) / 2
512
- ), D.style.transform = `translateX(${(x - p) * m.value}px)`;
513
- }, N = () => {
514
- window.removeEventListener("pointermove", T), window.removeEventListener("pointerup", te), window.removeEventListener("pointercancel", a), window.removeEventListener("keydown", q), D.style.transform = "", f = void 0;
512
+ ), D.style.transform = `translateX(${(C - p) * m.value}px)`;
513
+ }, F = () => {
514
+ window.removeEventListener("pointermove", T), window.removeEventListener("pointerup", te), window.removeEventListener("pointercancel", o), window.removeEventListener("keydown", q), D.style.transform = "", f = void 0;
515
515
  }, te = () => {
516
- N(), x !== p && r("width", c, x);
517
- }, a = () => N(), q = ($) => {
518
- $.key === "Escape" && ($.preventDefault(), a());
516
+ F(), C !== p && r("width", c, C);
517
+ }, o = () => F(), q = ($) => {
518
+ $.key === "Escape" && ($.preventDefault(), o());
519
519
  };
520
- window.addEventListener("pointermove", T), window.addEventListener("pointerup", te), window.addEventListener("pointercancel", a), window.addEventListener("keydown", q), f = a;
520
+ window.addEventListener("pointermove", T), window.addEventListener("pointerup", te), window.addEventListener("pointercancel", o), window.addEventListener("keydown", q), f = o;
521
521
  }
522
522
  return (k, S) => (h(), y("div", At, [
523
523
  n("div", Dt, [
524
- n("span", null, l(o.value.canvasHint), 1),
524
+ n("span", null, l(a.value.canvasHint), 1),
525
525
  n("label", null, [
526
- P(l(o.value.zoom), 1),
527
- ae(n("select", {
526
+ P(l(a.value.zoom), 1),
527
+ oe(n("select", {
528
528
  "onUpdate:modelValue": S[0] || (S[0] = (c) => b.value = c)
529
529
  }, [...S[1] || (S[1] = [
530
530
  n("option", { value: 0.5 }, "50%", -1),
@@ -553,9 +553,9 @@ const Et = {
553
553
  key: M,
554
554
  class: _e(["mr-canvas-component", { "is-selected": w(M) }]),
555
555
  "data-canvas-component": M,
556
- style: re(C(M)),
556
+ style: re(x(M)),
557
557
  role: "button",
558
- "aria-label": `${o.value.component} ${M + 1} ${c.kind}`,
558
+ "aria-label": `${a.value.component} ${M + 1} ${c.kind}`,
559
559
  "aria-pressed": w(M),
560
560
  tabindex: w(M) ? 0 : -1,
561
561
  onFocus: (p) => r("select", { pageIndex: t.pageIndex, componentIndex: M }),
@@ -571,11 +571,11 @@ const Et = {
571
571
  key: 0,
572
572
  class: "mr-canvas-merged",
573
573
  style: re({
574
- height: `${(c.headerGrid.rowHeightsMm?.reduce((p, x) => p + x, 0) ?? c.headerGrid.cells.length * 8) * m.value}px`
574
+ height: `${(c.headerGrid.rowHeightsMm?.reduce((p, C) => p + C, 0) ?? c.headerGrid.cells.length * 8) * m.value}px`
575
575
  })
576
576
  }, [
577
- (h(!0), y(U, null, W(g(c), (p, x) => (h(), y("div", {
578
- key: x,
577
+ (h(!0), y(U, null, W(g(c), (p, C) => (h(), y("div", {
578
+ key: C,
579
579
  style: re({
580
580
  left: `${p.xMm * m.value}px`,
581
581
  top: `${p.yMm * m.value}px`,
@@ -585,19 +585,19 @@ const Et = {
585
585
  })
586
586
  }, l(p.cell.text), 5))), 128))
587
587
  ], 4)) : (h(), y("div", Gt, [
588
- (h(!0), y(U, null, W(c.columns, (p, x) => (h(), y("div", {
589
- key: x,
588
+ (h(!0), y(U, null, W(c.columns, (p, C) => (h(), y("div", {
589
+ key: C,
590
590
  style: re({
591
591
  width: `${p.widthMm * m.value}px`,
592
592
  opacity: p.hidden ? 0.35 : 1
593
593
  }),
594
594
  onPointerdown: tt((D) => {
595
- r("select", { pageIndex: t.pageIndex, componentIndex: M }), r("column", x);
595
+ r("select", { pageIndex: t.pageIndex, componentIndex: M }), r("column", C);
596
596
  }, ["stop"])
597
597
  }, l(p.header), 45, Pt))), 128))
598
598
  ])),
599
- (h(!0), y(U, null, W((t.datasets?.[c.dataset] ?? []).slice(0, 3), (p, x) => (h(), y("div", {
600
- key: x,
599
+ (h(!0), y(U, null, W((t.datasets?.[c.dataset] ?? []).slice(0, 3), (p, C) => (h(), y("div", {
600
+ key: C,
601
601
  class: "mr-canvas-table-row"
602
602
  }, [
603
603
  (h(!0), y(U, null, W(c.columns, (D, T) => (h(), y("div", {
@@ -608,20 +608,20 @@ const Et = {
608
608
  })
609
609
  }, l(p[D.field] ?? "—"), 5))), 128))
610
610
  ]))), 128)),
611
- t.datasets?.[c.dataset]?.length ? B("", !0) : (h(), y("div", Ht, l(c.dataset) + " · " + l(o.value.sampleRows), 1))
611
+ t.datasets?.[c.dataset]?.length ? B("", !0) : (h(), y("div", Ht, l(c.dataset) + " · " + l(a.value.sampleRows), 1))
612
612
  ]),
613
- w(M) && !t.disabled ? (h(!0), y(U, { key: 0 }, W(G(c), (p, x) => (h(), y("span", {
614
- key: x,
613
+ w(M) && !t.disabled ? (h(!0), y(U, { key: 0 }, W(G(c), (p, C) => (h(), y("span", {
614
+ key: C,
615
615
  class: "mr-canvas-column-handle",
616
- "aria-label": `${o.value.resizeColumn} ${c.columns[x]?.header}`,
616
+ "aria-label": `${a.value.resizeColumn} ${c.columns[C]?.header}`,
617
617
  role: "separator",
618
618
  "aria-orientation": "vertical",
619
619
  style: re({ left: `${p * m.value}px` }),
620
- onPointerdown: (D) => I(D, c, x)
620
+ onPointerdown: (D) => I(D, c, C)
621
621
  }, null, 44, Vt))), 128)) : B("", !0)
622
622
  ], 64)) : c.grid ? (h(), y("div", Bt, [
623
- (h(!0), y(U, null, W(A(c), (p, x) => (h(), y("div", {
624
- key: x,
623
+ (h(!0), y(U, null, W(A(c), (p, C) => (h(), y("div", {
624
+ key: C,
625
625
  style: re({
626
626
  left: `${p.xMm * m.value}px`,
627
627
  top: `${p.yMm * m.value}px`,
@@ -630,40 +630,40 @@ const Et = {
630
630
  backgroundColor: p.cell.style?.backgroundColor,
631
631
  color: p.cell.style?.color,
632
632
  fontWeight: p.cell.style?.bold ? "700" : "400",
633
- fontSize: `${e(je)(p.cell.style).fontSizePx * b.value}px`,
633
+ fontSize: `${e(Ne)(p.cell.style).fontSizePx * b.value}px`,
634
634
  textAlign: p.cell.style?.align ?? "left"
635
635
  })
636
636
  }, l(p.cell.text), 5))), 128)),
637
- c.grid.cells.reduce((p, x) => p + x.length, 0) > 2e3 ? (h(), y("span", zt, l(o.value.canvasGridLimited), 1)) : B("", !0)
637
+ c.grid.cells.reduce((p, C) => p + C.length, 0) > 2e3 ? (h(), y("span", zt, l(a.value.canvasGridLimited), 1)) : B("", !0)
638
638
  ])) : c.imageData ? (h(), y("img", {
639
639
  key: 2,
640
640
  src: c.imageData,
641
641
  alt: "",
642
642
  draggable: "false"
643
- }, null, 8, jt)) : (h(), y("div", {
643
+ }, null, 8, Nt)) : (h(), y("div", {
644
644
  key: 3,
645
645
  class: "mr-canvas-content",
646
646
  style: re({
647
647
  color: c.style?.color,
648
648
  backgroundColor: c.style?.backgroundColor,
649
649
  fontWeight: c.style?.bold ? "700" : "400",
650
- fontSize: `${e(je)(c.style).fontSizePx * b.value}px`,
650
+ fontSize: `${e(Ne)(c.style).fontSizePx * b.value}px`,
651
651
  textAlign: c.style?.align
652
652
  })
653
653
  }, l(c.text ?? c.fallbackText ?? (c.kind === "rect" ? "" : c.kind)), 5)),
654
654
  w(M) && !t.disabled ? (h(), y("span", {
655
655
  key: 4,
656
656
  class: "mr-canvas-resize",
657
- "aria-label": o.value.resizeComponent,
657
+ "aria-label": a.value.resizeComponent,
658
658
  role: "separator",
659
659
  onPointerdown: (p) => e(d).start(p, c, !0)
660
- }, null, 40, Ft)) : B("", !0)
660
+ }, null, 40, jt)) : B("", !0)
661
661
  ], 46, Lt))), 128))
662
662
  ], 4)
663
663
  ])
664
664
  ]));
665
665
  }
666
- }), Ot = /* @__PURE__ */ Ie(Nt, [["__scopeId", "data-v-0b2669dc"]]), Ut = ["aria-label"], Jt = ["data-align", "aria-label", "title", "aria-checked", "tabindex", "onClick", "onKeydown"], Kt = { key: 0 }, Wt = {
666
+ }), Ot = /* @__PURE__ */ Ie(Ft, [["__scopeId", "data-v-0b2669dc"]]), Ut = ["aria-label"], Jt = ["data-align", "aria-label", "title", "aria-checked", "tabindex", "onClick", "onKeydown"], Kt = { key: 0 }, Wt = {
667
667
  key: 1,
668
668
  viewBox: "0 0 20 20",
669
669
  fill: "none",
@@ -691,11 +691,11 @@ const Et = {
691
691
  },
692
692
  emits: ["update:modelValue"],
693
693
  setup(t, { emit: u }) {
694
- const s = t, r = u, o = () => s.allowAuto ? ["auto", "left", "center", "right", "justify"] : ["left", "center", "right", "justify"];
694
+ const s = t, r = u, a = () => s.allowAuto ? ["auto", "left", "center", "right", "justify"] : ["left", "center", "right", "justify"];
695
695
  async function b(m, _) {
696
696
  if (!["ArrowLeft", "ArrowRight", "Home", "End"].includes(m.key)) return;
697
697
  m.preventDefault();
698
- const w = o(), C = w.indexOf(_), E = m.key === "Home" ? 0 : m.key === "End" ? w.length - 1 : (C + (m.key === "ArrowRight" ? 1 : -1) + w.length) % w.length;
698
+ const w = a(), x = w.indexOf(_), E = m.key === "Home" ? 0 : m.key === "End" ? w.length - 1 : (x + (m.key === "ArrowRight" ? 1 : -1) + w.length) % w.length;
699
699
  r("update:modelValue", w[E]);
700
700
  const G = m.currentTarget.parentElement;
701
701
  await de(), G?.querySelector(`[data-align="${w[E]}"]`)?.focus();
@@ -705,7 +705,7 @@ const Et = {
705
705
  role: "radiogroup",
706
706
  "aria-label": t.label
707
707
  }, [
708
- (h(!0), y(U, null, W(o(), (d) => (h(), y("button", {
708
+ (h(!0), y(U, null, W(a(), (d) => (h(), y("button", {
709
709
  key: d,
710
710
  type: "button",
711
711
  role: "radio",
@@ -723,13 +723,13 @@ const Et = {
723
723
  ], 40, Jt))), 128))
724
724
  ], 8, Ut));
725
725
  }
726
- }), Ne = /* @__PURE__ */ Ie(Zt, [["__scopeId", "data-v-c85770c4"]]), en = ["disabled"], tn = { class: "mr-component-dimensions" }, nn = ["min", "value", "onChange"], on = { key: 0 }, an = ["value"], ln = { value: "" }, sn = { value: "header" }, rn = { value: "footer" }, dn = { key: 1 }, un = ["value"], cn = ["value"], mn = { class: "mr-component-upload" }, vn = ["aria-label"], pn = {
726
+ }), Fe = /* @__PURE__ */ Ie(Zt, [["__scopeId", "data-v-c85770c4"]]), en = ["disabled"], tn = { class: "mr-component-dimensions" }, nn = ["min", "value", "onChange"], an = { key: 0 }, on = ["value"], ln = { value: "" }, sn = { value: "header" }, rn = { value: "footer" }, dn = { key: 1 }, un = ["value"], cn = ["value"], mn = { class: "mr-component-upload" }, vn = ["aria-label"], pn = {
727
727
  key: 0,
728
728
  role: "alert"
729
729
  }, hn = {
730
730
  key: 3,
731
731
  class: "mr-component-type"
732
- }, gn = { class: "mr-component-dimensions" }, fn = ["value"], bn = ["checked"], yn = { class: "mr-component-dimensions" }, wn = ["value"], kn = ["value"], Mn = { key: 4 }, Cn = ["value"], xn = /* @__PURE__ */ Ee({
732
+ }, gn = { class: "mr-component-dimensions" }, fn = ["value"], bn = ["checked"], yn = { class: "mr-component-dimensions" }, wn = ["value"], kn = ["value"], Mn = { key: 4 }, xn = ["value"], Cn = /* @__PURE__ */ Ee({
733
733
  __name: "CanvasComponentInspector",
734
734
  props: {
735
735
  component: {},
@@ -738,11 +738,11 @@ const Et = {
738
738
  },
739
739
  emits: ["geometry", "patch"],
740
740
  setup(t, { emit: u }) {
741
- const s = t, r = u, o = z(() => ({ ...Pe, ...s.messages })), b = F(""), m = ["leftMm", "topMm", "widthMm", "heightMm"], _ = z(() => [
742
- o.value.leftPosition,
743
- o.value.topPosition,
744
- o.value.componentWidth,
745
- o.value.componentHeight
741
+ const s = t, r = u, a = z(() => ({ ...Pe, ...s.messages })), b = j(""), m = ["leftMm", "topMm", "widthMm", "heightMm"], _ = z(() => [
742
+ a.value.leftPosition,
743
+ a.value.topPosition,
744
+ a.value.componentWidth,
745
+ a.value.componentHeight
746
746
  ]);
747
747
  function d(A, g) {
748
748
  const f = Number(g.target.value);
@@ -753,12 +753,12 @@ const Et = {
753
753
  const f = { ...s.component.style, [A]: g };
754
754
  A === "fontSize" && delete f.fontSizePx, r("patch", { style: f });
755
755
  }
756
- const C = z(() => ({
757
- auto: o.value.auto,
758
- left: o.value.left,
759
- center: o.value.center,
760
- right: o.value.right,
761
- justify: o.value.justify
756
+ const x = z(() => ({
757
+ auto: a.value.auto,
758
+ left: a.value.left,
759
+ center: a.value.center,
760
+ right: a.value.right,
761
+ justify: a.value.justify
762
762
  }));
763
763
  function E(A) {
764
764
  return A.target.value;
@@ -772,7 +772,7 @@ const Et = {
772
772
  if (f.size > 4 * 1024 * 1024 || !["image/png", "image/jpeg", "image/webp", "image/svg+xml"].includes(
773
773
  f.type
774
774
  ))
775
- throw new Error(o.value.imageBudget);
775
+ throw new Error(a.value.imageBudget);
776
776
  const k = new FileReader(), S = await new Promise((c, M) => {
777
777
  k.onload = () => c(String(k.result)), k.onerror = () => M(k.error), k.readAsDataURL(f);
778
778
  });
@@ -787,7 +787,7 @@ const Et = {
787
787
  class: "mr-component-properties",
788
788
  disabled: t.disabled
789
789
  }, [
790
- n("h3", null, l(o.value.positionGroup), 1),
790
+ n("h3", null, l(a.value.positionGroup), 1),
791
791
  n("div", tn, [
792
792
  (h(!0), y(U, null, W(m.filter(
793
793
  (f) => t.component.kind !== "list" || f !== "heightMm"
@@ -802,20 +802,20 @@ const Et = {
802
802
  }, null, 40, nn)
803
803
  ]))), 128))
804
804
  ]),
805
- t.component.kind !== "list" ? (h(), y("label", on, [
806
- P(l(o.value.repeatPage), 1),
805
+ t.component.kind !== "list" ? (h(), y("label", an, [
806
+ P(l(a.value.repeatPage), 1),
807
807
  n("select", {
808
808
  value: t.component.pageAnchor ?? "",
809
809
  onChange: g[0] || (g[0] = (f) => r("patch", { pageAnchor: E(f) || void 0 }))
810
810
  }, [
811
- n("option", ln, l(o.value.repeatNone), 1),
812
- n("option", sn, l(o.value.repeatHeader), 1),
813
- n("option", rn, l(o.value.repeatFooter), 1)
814
- ], 40, an)
811
+ n("option", ln, l(a.value.repeatNone), 1),
812
+ n("option", sn, l(a.value.repeatHeader), 1),
813
+ n("option", rn, l(a.value.repeatFooter), 1)
814
+ ], 40, on)
815
815
  ])) : B("", !0),
816
- n("h3", null, l(o.value.componentContent), 1),
816
+ n("h3", null, l(a.value.componentContent), 1),
817
817
  t.component.kind === "text" ? (h(), y("label", dn, [
818
- P(l(o.value.componentText), 1),
818
+ P(l(a.value.componentText), 1),
819
819
  n("textarea", {
820
820
  rows: "4",
821
821
  value: t.component.text,
@@ -824,7 +824,7 @@ const Et = {
824
824
  ])) : B("", !0),
825
825
  t.component.kind === "image" ? (h(), y(U, { key: 2 }, [
826
826
  n("label", null, [
827
- P(l(o.value.imageSource), 1),
827
+ P(l(a.value.imageSource), 1),
828
828
  n("textarea", {
829
829
  rows: "2",
830
830
  value: t.component.imageData,
@@ -832,31 +832,31 @@ const Et = {
832
832
  }, null, 40, cn)
833
833
  ]),
834
834
  n("label", mn, [
835
- P(l(o.value.imageUpload), 1),
835
+ P(l(a.value.imageUpload), 1),
836
836
  n("input", {
837
837
  type: "file",
838
838
  accept: "image/png,image/jpeg,image/webp,image/svg+xml",
839
- "aria-label": o.value.imageUpload,
839
+ "aria-label": a.value.imageUpload,
840
840
  onChange: G
841
841
  }, null, 40, vn)
842
842
  ]),
843
843
  b.value ? (h(), y("p", pn, l(b.value), 1)) : B("", !0)
844
844
  ], 64)) : B("", !0),
845
845
  t.component.kind === "text" ? (h(), y("div", hn, [
846
- n("h3", null, l(o.value.textFormat), 1),
846
+ n("h3", null, l(a.value.textFormat), 1),
847
847
  n("div", gn, [
848
848
  n("label", null, [
849
- P(l(o.value.fontSize), 1),
849
+ P(l(a.value.fontSize), 1),
850
850
  n("input", {
851
851
  type: "number",
852
852
  min: "1",
853
853
  max: "200",
854
- value: e(je)(t.component.style).fontSizePt,
854
+ value: e(Ne)(t.component.style).fontSizePt,
855
855
  onChange: g[3] || (g[3] = (f) => w("fontSize", Number(E(f))))
856
856
  }, null, 40, fn)
857
857
  ]),
858
858
  n("label", null, [
859
- P(l(o.value.fontBold), 1),
859
+ P(l(a.value.fontBold), 1),
860
860
  n("input", {
861
861
  type: "checkbox",
862
862
  checked: t.component.style?.bold === !0,
@@ -864,16 +864,16 @@ const Et = {
864
864
  }, null, 40, bn)
865
865
  ])
866
866
  ]),
867
- Q(Ne, {
867
+ Q(Fe, {
868
868
  "model-value": t.component.style?.align ?? "left",
869
- label: o.value.bodyAlign,
870
- labels: C.value,
871
- "auto-label": o.value.autoShort,
869
+ label: a.value.bodyAlign,
870
+ labels: x.value,
871
+ "auto-label": a.value.autoShort,
872
872
  "onUpdate:modelValue": g[5] || (g[5] = (f) => w("align", f))
873
873
  }, null, 8, ["model-value", "label", "labels", "auto-label"]),
874
874
  n("div", yn, [
875
875
  n("label", null, [
876
- P(l(o.value.textColor), 1),
876
+ P(l(a.value.textColor), 1),
877
877
  n("input", {
878
878
  type: "color",
879
879
  value: t.component.style?.color ?? "#233c5c",
@@ -881,7 +881,7 @@ const Et = {
881
881
  }, null, 40, wn)
882
882
  ]),
883
883
  n("label", null, [
884
- P(l(o.value.backgroundColor), 1),
884
+ P(l(a.value.backgroundColor), 1),
885
885
  n("input", {
886
886
  type: "color",
887
887
  value: t.component.style?.backgroundColor ?? "#ffffff",
@@ -891,15 +891,15 @@ const Et = {
891
891
  ])
892
892
  ])) : B("", !0),
893
893
  t.component.kind === "list" ? (h(), y("label", Mn, [
894
- P(l(o.value.listDataset), 1),
894
+ P(l(a.value.listDataset), 1),
895
895
  n("input", {
896
896
  value: t.component.dataset,
897
897
  onChange: g[8] || (g[8] = (f) => r("patch", { dataset: E(f) }))
898
- }, null, 40, Cn)
898
+ }, null, 40, xn)
899
899
  ])) : B("", !0)
900
900
  ], 8, en));
901
901
  }
902
- }), _n = /* @__PURE__ */ Ie(xn, [["__scopeId", "data-v-2dcbd9cb"]]), Sn = { class: "mr-header-editor" }, $n = ["disabled"], En = ["value"], In = ["value"], An = ["value"], Dn = ["disabled"], Tn = /* @__PURE__ */ Ee({
902
+ }), _n = /* @__PURE__ */ Ie(Cn, [["__scopeId", "data-v-2dcbd9cb"]]), Sn = { class: "mr-header-editor" }, $n = ["disabled"], En = ["value"], In = ["value"], An = ["value"], Dn = ["disabled"], Tn = /* @__PURE__ */ Ee({
903
903
  __name: "HeaderStructureEditor",
904
904
  props: {
905
905
  list: {},
@@ -908,7 +908,7 @@ const Et = {
908
908
  },
909
909
  emits: ["command"],
910
910
  setup(t, { emit: u }) {
911
- const s = t, r = u, o = z(() => ({ ...Pe, ...s.messages })), b = F(0), m = F(0), _ = F(Math.min(1, s.list.columns.length - 1));
911
+ const s = t, r = u, a = z(() => ({ ...Pe, ...s.messages })), b = j(0), m = j(0), _ = j(Math.min(1, s.list.columns.length - 1));
912
912
  return Z(
913
913
  () => s.list.columns.length,
914
914
  (d) => {
@@ -916,19 +916,19 @@ const Et = {
916
916
  }
917
917
  ), (d, w) => (h(), y("details", Sn, [
918
918
  n("summary", null, [
919
- P(l(o.value.headerStructure), 1),
920
- n("span", null, l(t.list.headerGrid?.cells.length ?? 1) + " " + l(o.value.headerRow), 1)
919
+ P(l(a.value.headerStructure), 1),
920
+ n("span", null, l(t.list.headerGrid?.cells.length ?? 1) + " " + l(a.value.headerRow), 1)
921
921
  ]),
922
922
  n("fieldset", { disabled: t.disabled }, [
923
923
  n("label", null, [
924
- P(l(o.value.headerRow), 1),
925
- ae(n("select", {
926
- "onUpdate:modelValue": w[0] || (w[0] = (C) => b.value = C)
924
+ P(l(a.value.headerRow), 1),
925
+ oe(n("select", {
926
+ "onUpdate:modelValue": w[0] || (w[0] = (x) => b.value = x)
927
927
  }, [
928
- (h(!0), y(U, null, W(t.list.headerGrid?.cells.length ?? 1, (C) => (h(), y("option", {
929
- key: C,
930
- value: C - 1
931
- }, l(C), 9, En))), 128))
928
+ (h(!0), y(U, null, W(t.list.headerGrid?.cells.length ?? 1, (x) => (h(), y("option", {
929
+ key: x,
930
+ value: x - 1
931
+ }, l(x), 9, En))), 128))
932
932
  ], 512), [
933
933
  [
934
934
  ye,
@@ -939,14 +939,14 @@ const Et = {
939
939
  ])
940
940
  ]),
941
941
  n("label", null, [
942
- P(l(o.value.headerFirst), 1),
943
- ae(n("select", {
944
- "onUpdate:modelValue": w[1] || (w[1] = (C) => m.value = C)
942
+ P(l(a.value.headerFirst), 1),
943
+ oe(n("select", {
944
+ "onUpdate:modelValue": w[1] || (w[1] = (x) => m.value = x)
945
945
  }, [
946
- (h(!0), y(U, null, W(t.list.columns, (C, E) => (h(), y("option", {
946
+ (h(!0), y(U, null, W(t.list.columns, (x, E) => (h(), y("option", {
947
947
  key: E,
948
948
  value: E
949
- }, l(E + 1) + " · " + l(C.header), 9, In))), 128))
949
+ }, l(E + 1) + " · " + l(x.header), 9, In))), 128))
950
950
  ], 512), [
951
951
  [
952
952
  ye,
@@ -957,14 +957,14 @@ const Et = {
957
957
  ])
958
958
  ]),
959
959
  n("label", null, [
960
- P(l(o.value.headerLast), 1),
961
- ae(n("select", {
962
- "onUpdate:modelValue": w[2] || (w[2] = (C) => _.value = C)
960
+ P(l(a.value.headerLast), 1),
961
+ oe(n("select", {
962
+ "onUpdate:modelValue": w[2] || (w[2] = (x) => _.value = x)
963
963
  }, [
964
- (h(!0), y(U, null, W(t.list.columns, (C, E) => (h(), y("option", {
964
+ (h(!0), y(U, null, W(t.list.columns, (x, E) => (h(), y("option", {
965
965
  key: E,
966
966
  value: E
967
- }, l(E + 1) + " · " + l(C.header), 9, An))), 128))
967
+ }, l(E + 1) + " · " + l(x.header), 9, An))), 128))
968
968
  ], 512), [
969
969
  [
970
970
  ye,
@@ -977,31 +977,31 @@ const Et = {
977
977
  n("div", null, [
978
978
  n("button", {
979
979
  type: "button",
980
- onClick: w[3] || (w[3] = (C) => r("command", { action: "add", row: b.value, first: m.value, last: _.value }))
981
- }, l(o.value.addHeaderRow), 1),
980
+ onClick: w[3] || (w[3] = (x) => r("command", { action: "add", row: b.value, first: m.value, last: _.value }))
981
+ }, l(a.value.addHeaderRow), 1),
982
982
  n("button", {
983
983
  type: "button",
984
984
  disabled: m.value >= _.value,
985
- onClick: w[4] || (w[4] = (C) => r("command", { action: "merge", row: b.value, first: m.value, last: _.value }))
986
- }, l(o.value.mergeHeader), 9, Dn),
985
+ onClick: w[4] || (w[4] = (x) => r("command", { action: "merge", row: b.value, first: m.value, last: _.value }))
986
+ }, l(a.value.mergeHeader), 9, Dn),
987
987
  n("button", {
988
988
  type: "button",
989
- onClick: w[5] || (w[5] = (C) => r("command", { action: "split", row: b.value, first: m.value, last: _.value }))
990
- }, l(o.value.splitHeader), 1)
989
+ onClick: w[5] || (w[5] = (x) => r("command", { action: "split", row: b.value, first: m.value, last: _.value }))
990
+ }, l(a.value.splitHeader), 1)
991
991
  ])
992
992
  ], 8, $n)
993
993
  ]));
994
994
  }
995
995
  }), Ln = /* @__PURE__ */ Ie(Tn, [["__scopeId", "data-v-acd607ef"]]);
996
996
  function Rn(t, u) {
997
- const s = F("preview"), r = F(), o = F(0), b = z(
997
+ const s = j("preview"), r = j(), a = j(0), b = z(
998
998
  () => ze(t.value, r.value)
999
999
  );
1000
1000
  Z(t, () => {
1001
- b.value || (r.value = void 0), t.value.template.pages[o.value] || (o.value = 0);
1001
+ b.value || (r.value = void 0), t.value.template.pages[a.value] || (a.value = 0);
1002
1002
  });
1003
1003
  function m(A) {
1004
- r.value = A, o.value = A.pageIndex;
1004
+ r.value = A, a.value = A.pageIndex;
1005
1005
  }
1006
1006
  function _(A) {
1007
1007
  const g = r.value;
@@ -1015,19 +1015,19 @@ function Rn(t, u) {
1015
1015
  const I = f.template.pages[r.value.pageIndex];
1016
1016
  Qe(
1017
1017
  g,
1018
- Fe(A, I, g.kind === "list")
1018
+ je(A, I, g.kind === "list")
1019
1019
  );
1020
1020
  });
1021
1021
  }
1022
1022
  function w(A) {
1023
1023
  let g = -1;
1024
- const f = o.value;
1024
+ const f = a.value;
1025
1025
  u((I) => {
1026
1026
  const k = I.template.pages[f].components;
1027
1027
  k.push(kt(A)), g = k.length - 1;
1028
1028
  }) && m({ pageIndex: f, componentIndex: g });
1029
1029
  }
1030
- function C() {
1030
+ function x() {
1031
1031
  const A = r.value;
1032
1032
  A && u((g) => {
1033
1033
  g.template.pages[A.pageIndex].components.splice(
@@ -1041,10 +1041,10 @@ function Rn(t, u) {
1041
1041
  if (!A) return;
1042
1042
  let g = -1;
1043
1043
  u((f) => {
1044
- const I = f.template.pages[A.pageIndex], k = structuredClone(ze(f, A)), S = Se(k);
1044
+ const I = f.template.pages[A.pageIndex], k = JSON.parse(JSON.stringify(ze(f, A))), S = Se(k);
1045
1045
  S.leftMm += 4, S.topMm += 4, Qe(
1046
1046
  k,
1047
- Fe(S, I, k.kind === "list")
1047
+ je(S, I, k.kind === "list")
1048
1048
  ), k.kind === "list" ? delete k.id : (delete k.nid, delete k.rkey), I.components.push(k), g = I.components.length - 1;
1049
1049
  }) && m({ pageIndex: A.pageIndex, componentIndex: g });
1050
1050
  }
@@ -1060,29 +1060,29 @@ function Rn(t, u) {
1060
1060
  return {
1061
1061
  mode: s,
1062
1062
  selection: r,
1063
- pageIndex: o,
1063
+ pageIndex: a,
1064
1064
  active: b,
1065
1065
  select: m,
1066
1066
  mutate: _,
1067
1067
  geometry: d,
1068
1068
  insert: w,
1069
- remove: C,
1069
+ remove: x,
1070
1070
  duplicate: E,
1071
1071
  reorder: G
1072
1072
  };
1073
1073
  }
1074
1074
  function Gn(t, u, s) {
1075
- const { draft: r, lists: o, selected: b, activeList: m, blocked: _, jsonPending: d, error: w } = t, { section: C, activeIndex: E } = u, G = Rn(r, t.transaction), {
1075
+ const { draft: r, lists: a, selected: b, activeList: m, blocked: _, jsonPending: d, error: w } = t, { section: x, activeIndex: E } = u, G = Rn(r, t.transaction), {
1076
1076
  mode: A,
1077
1077
  selection: g,
1078
1078
  pageIndex: f,
1079
1079
  active: I
1080
- } = G, k = F("excel"), S = F(/* @__PURE__ */ new Set());
1081
- Z([C, k], () => {
1082
- C.value === "tools" && (S.value = /* @__PURE__ */ new Set([...S.value, k.value]));
1080
+ } = G, k = j("excel"), S = j(/* @__PURE__ */ new Set());
1081
+ Z([x, k], () => {
1082
+ x.value === "tools" && (S.value = /* @__PURE__ */ new Set([...S.value, k.value]));
1083
1083
  }), Z(g, ($) => {
1084
1084
  if (!$) return;
1085
- const L = o.value.findIndex(
1085
+ const L = a.value.findIndex(
1086
1086
  (R) => R.pageIndex === $.pageIndex && R.componentIndex === $.componentIndex
1087
1087
  );
1088
1088
  L >= 0 && (b.value = L);
@@ -1093,21 +1093,21 @@ function Gn(t, u, s) {
1093
1093
  () => s()?.[m.value?.dataset ?? ""]
1094
1094
  );
1095
1095
  function p($) {
1096
- A.value = $, C.value === "tools" && (C.value = $ === "design" ? "component" : "fields");
1096
+ A.value = $, x.value === "tools" && (x.value = $ === "design" ? "component" : "fields");
1097
1097
  }
1098
- function x($) {
1098
+ function C($) {
1099
1099
  if (!r.value.template.pages[$.pageIndex]?.components[$.componentIndex])
1100
1100
  return;
1101
1101
  if (G.select($), r.value.template.pages[$.pageIndex]?.components[$.componentIndex]?.kind === "list") {
1102
- const R = o.value.findIndex(
1102
+ const R = a.value.findIndex(
1103
1103
  (H) => H.pageIndex === $.pageIndex && H.componentIndex === $.componentIndex
1104
1104
  );
1105
- R >= 0 && (b.value = R), C.value = "fields";
1106
- } else C.value = "component";
1105
+ R >= 0 && (b.value = R), x.value = "fields";
1106
+ } else x.value = "component";
1107
1107
  }
1108
1108
  function D($) {
1109
1109
  const L = $.target;
1110
- L.value && (G.insert(L.value), A.value = "design", C.value = "component", L.value = "");
1110
+ L.value && (G.insert(L.value), A.value = "design", x.value = "component", L.value = "");
1111
1111
  }
1112
1112
  function T($) {
1113
1113
  G.mutate((L, R) => {
@@ -1123,8 +1123,8 @@ function Gn(t, u, s) {
1123
1123
  ue === void 0 ? delete H[K] : H[K] = ue;
1124
1124
  });
1125
1125
  }
1126
- function N($) {
1127
- const L = o.value[b.value];
1126
+ function F($) {
1127
+ const L = a.value[b.value];
1128
1128
  L && t.transaction((R) => {
1129
1129
  R.template.pages[L.pageIndex].components[L.componentIndex] = $;
1130
1130
  });
@@ -1134,21 +1134,21 @@ function Gn(t, u, s) {
1134
1134
  if (!L) return;
1135
1135
  const R = JSON.parse(JSON.stringify(L));
1136
1136
  try {
1137
- Mt(R, E.value, E.value + $) && (N(R), u.activate(E.value + $));
1137
+ Mt(R, E.value, E.value + $) && (F(R), u.activate(E.value + $));
1138
1138
  } catch (H) {
1139
1139
  w.value = H instanceof Error ? H.message : String(H);
1140
1140
  }
1141
1141
  }
1142
- function a($) {
1143
- const L = o.value[b.value];
1142
+ function o($) {
1143
+ const L = a.value[b.value];
1144
1144
  L && t.transaction((R) => {
1145
1145
  const H = R.template.pages[L.pageIndex].components[L.componentIndex];
1146
- H?.kind === "list" && ($.action === "add" ? Ct(H) : $.action === "merge" ? xt(H, $.row, $.first, $.last) : _t(H, $.row, $.first));
1146
+ H?.kind === "list" && ($.action === "add" ? xt(H) : $.action === "merge" ? Ct(H, $.row, $.first, $.last) : _t(H, $.row, $.first));
1147
1147
  });
1148
1148
  }
1149
1149
  function q($) {
1150
1150
  const L = /\.pages\[(\d+)\]\.components\[(\d+)\]/.exec($.path ?? ""), R = $.pageIndex ?? (L ? Number(L[1]) : void 0), H = $.componentIndex ?? (L ? Number(L[2]) : void 0);
1151
- if (!(R === void 0 || H === void 0) && (A.value = "design", x({ pageIndex: R, componentIndex: H }), $.field)) {
1151
+ if (!(R === void 0 || H === void 0) && (A.value = "design", C({ pageIndex: R, componentIndex: H }), $.field)) {
1152
1152
  const K = m.value?.columns.findIndex(
1153
1153
  (ue) => ue.field === $.field
1154
1154
  );
@@ -1165,12 +1165,12 @@ function Gn(t, u, s) {
1165
1165
  visitedTools: S,
1166
1166
  editDisabled: c,
1167
1167
  dataSchema: M,
1168
- chooseCanvas: x,
1168
+ chooseCanvas: C,
1169
1169
  insertComponent: D,
1170
1170
  patchCanvas: T,
1171
- changeList: N,
1171
+ changeList: F,
1172
1172
  moveColumn: te,
1173
- headerCommand: a,
1173
+ headerCommand: o,
1174
1174
  locateReview: q,
1175
1175
  canvas: G
1176
1176
  };
@@ -1186,37 +1186,37 @@ function Pn(t, u, s) {
1186
1186
  return b === void 0 ? void 0 : t[b];
1187
1187
  }
1188
1188
  function Hn(t, u, s) {
1189
- const r = F(!1), o = F(t.activeIndex.value), b = F(null), m = F(null), _ = F(null), d = F(null);
1189
+ const r = j(!1), a = j(t.activeIndex.value), b = j(null), m = j(null), _ = j(null), d = j(null);
1190
1190
  function w(S = !1) {
1191
1191
  const c = d.value, M = c?.querySelector(
1192
- `button[data-column-index="${o.value}"]`
1192
+ `button[data-column-index="${a.value}"]`
1193
1193
  );
1194
1194
  if (!c || !M) return;
1195
1195
  S && M.focus({ preventScroll: !0 });
1196
- const p = c.getBoundingClientRect(), x = M.getBoundingClientRect(), D = p.top + c.clientTop, T = D + c.clientHeight;
1197
- x.top < D ? c.scrollTop += x.top - D : x.bottom > T && (c.scrollTop += x.bottom - T);
1196
+ const p = c.getBoundingClientRect(), C = M.getBoundingClientRect(), D = p.top + c.clientTop, T = D + c.clientHeight;
1197
+ C.top < D ? c.scrollTop += C.top - D : C.bottom > T && (c.scrollTop += C.bottom - T);
1198
1198
  }
1199
- async function C(S = !1) {
1199
+ async function x(S = !1) {
1200
1200
  r.value && (r.value = !1, S && (await de(), b.value?.focus({ preventScroll: !0 })));
1201
1201
  }
1202
1202
  async function E() {
1203
- if (r.value) return C(!0);
1203
+ if (r.value) return x(!0);
1204
1204
  const S = s.value.map((c) => c.index);
1205
- o.value = S.includes(t.activeIndex.value) ? t.activeIndex.value : S[0] ?? -1, r.value = !0, await de(), _.value?.focus({ preventScroll: !0 }), w();
1205
+ a.value = S.includes(t.activeIndex.value) ? t.activeIndex.value : S[0] ?? -1, r.value = !0, await de(), _.value?.focus({ preventScroll: !0 }), w();
1206
1206
  }
1207
1207
  function G(S) {
1208
- t.activate(S), C(!0);
1208
+ t.activate(S), x(!0);
1209
1209
  }
1210
1210
  function A(S) {
1211
- r.value && (S.preventDefault(), S.stopPropagation(), C(!0));
1211
+ r.value && (S.preventDefault(), S.stopPropagation(), x(!0));
1212
1212
  }
1213
1213
  async function g(S) {
1214
1214
  const c = Pn(
1215
1215
  s.value.map((M) => M.index),
1216
- o.value,
1216
+ a.value,
1217
1217
  S.key
1218
1218
  );
1219
- c !== void 0 && (o.value = c, S.preventDefault(), await de(), w(!0));
1219
+ c !== void 0 && (a.value = c, S.preventDefault(), await de(), w(!0));
1220
1220
  }
1221
1221
  async function f(S) {
1222
1222
  if (!["ArrowDown", "ArrowUp", "Enter"].includes(S.key)) return;
@@ -1224,33 +1224,33 @@ function Hn(t, u, s) {
1224
1224
  const c = s.value.map((M) => M.index);
1225
1225
  if (c.length) {
1226
1226
  if (S.key === "Enter") {
1227
- c.includes(o.value) && G(o.value);
1227
+ c.includes(a.value) && G(a.value);
1228
1228
  return;
1229
1229
  }
1230
- S.key === "ArrowUp" && (o.value = c.at(-1)), await de(), w(!0);
1230
+ S.key === "ArrowUp" && (a.value = c.at(-1)), await de(), w(!0);
1231
1231
  }
1232
1232
  }
1233
1233
  function I(S) {
1234
1234
  const c = S.target;
1235
- !r.value || m.value?.contains(c) || b.value?.contains(c) || C();
1235
+ !r.value || m.value?.contains(c) || b.value?.contains(c) || x();
1236
1236
  }
1237
1237
  function k(S) {
1238
1238
  const c = S.relatedTarget;
1239
- !c || m.value?.contains(c) || b.value?.contains(c) || C();
1239
+ !c || m.value?.contains(c) || b.value?.contains(c) || x();
1240
1240
  }
1241
1241
  return Z(s, (S) => {
1242
- S.some((c) => c.index === o.value) || (o.value = S[0]?.index ?? -1);
1242
+ S.some((c) => c.index === a.value) || (a.value = S[0]?.index ?? -1);
1243
1243
  }), Z(u, () => {
1244
- C();
1244
+ x();
1245
1245
  }), ht(() => document.addEventListener("pointerdown", I)), $e(() => document.removeEventListener("pointerdown", I)), {
1246
1246
  open: r,
1247
- cursor: o,
1247
+ cursor: a,
1248
1248
  trigger: b,
1249
1249
  panel: m,
1250
1250
  search: _,
1251
1251
  list: d,
1252
1252
  toggle: E,
1253
- close: C,
1253
+ close: x,
1254
1254
  choose: G,
1255
1255
  escape: A,
1256
1256
  navigate: g,
@@ -1259,14 +1259,14 @@ function Hn(t, u, s) {
1259
1259
  };
1260
1260
  }
1261
1261
  function Vn(t, u, s, r) {
1262
- const o = F(0), b = F(""), m = F([]), _ = z(
1262
+ const a = j(0), b = j(""), m = j([]), _ = z(
1263
1263
  () => t.value.template.pages.flatMap(
1264
1264
  (c, M) => c.components.flatMap(
1265
- (p, x) => p.kind === "list" ? [{ component: p, pageIndex: M, componentIndex: x }] : []
1265
+ (p, C) => p.kind === "list" ? [{ component: p, pageIndex: M, componentIndex: C }] : []
1266
1266
  )
1267
1267
  )
1268
1268
  ), d = z(
1269
- () => _.value[o.value]?.component
1269
+ () => _.value[a.value]?.component
1270
1270
  ), w = z(() => {
1271
1271
  const c = d.value;
1272
1272
  if (!c) return [];
@@ -1275,40 +1275,40 @@ function Vn(t, u, s, r) {
1275
1275
  );
1276
1276
  if (c.headerGrid && u())
1277
1277
  for (const p of ve(c.headerGrid, c.widthMm, 100).cells)
1278
- for (let x = p.ci; x < p.ci + (p.cell.colSpan ?? 1); x++)
1279
- M[x] = p.cell.style?.align ?? "left";
1278
+ for (let C = p.ci; C < p.ci + (p.cell.colSpan ?? 1); C++)
1279
+ M[C] = p.cell.style?.align ?? "left";
1280
1280
  return M;
1281
- }), C = z(() => {
1281
+ }), x = z(() => {
1282
1282
  const c = b.value.trim().toLocaleLowerCase().split(/\s+/).filter(Boolean);
1283
1283
  return (d.value?.columns ?? []).flatMap((M, p) => {
1284
- const x = `${M.header} ${M.field}`.toLocaleLowerCase();
1285
- return c.every((D) => x.includes(D)) ? [{ column: M, index: p }] : [];
1284
+ const C = `${M.header} ${M.field}`.toLocaleLowerCase();
1285
+ return c.every((D) => C.includes(D)) ? [{ column: M, index: p }] : [];
1286
1286
  });
1287
1287
  });
1288
1288
  function E(c, M) {
1289
1289
  m.value = M ? [.../* @__PURE__ */ new Set([...m.value, c])] : m.value.filter((p) => p !== c);
1290
1290
  }
1291
1291
  function G(c) {
1292
- for (const M of C.value) E(M.index, c);
1292
+ for (const M of x.value) E(M.index, c);
1293
1293
  }
1294
1294
  function A() {
1295
1295
  m.value = [];
1296
1296
  }
1297
1297
  function g(c, M, p) {
1298
1298
  if (!s()) return;
1299
- const x = d.value?.columns[c];
1300
- x && (M === "hidden" && p === !0 && !d.value?.columns.some(
1299
+ const C = d.value?.columns[c];
1300
+ C && (M === "hidden" && p === !0 && !d.value?.columns.some(
1301
1301
  (D, T) => T !== c && !D.hidden
1302
- ) || (Object.assign(x, { [M]: M === "widthMm" ? Number(p) : p }), M === "header" && I(c, String(p)), M === "headerAlign" && k(
1302
+ ) || (Object.assign(C, { [M]: M === "widthMm" ? Number(p) : p }), M === "header" && I(c, String(p)), M === "headerAlign" && k(
1303
1303
  c,
1304
1304
  p
1305
1305
  ), M === "widthMm" && f(), r()));
1306
1306
  }
1307
1307
  function f() {
1308
- const c = _.value[o.value];
1308
+ const c = _.value[a.value];
1309
1309
  if (!c) return;
1310
- const M = c.component, p = t.value.template.pages[c.pageIndex], x = M.columns.map((D) => D.widthMm);
1311
- M.headerGrid && (M.headerGrid.colWidthsMm = x), p.layout === "wide" && x.every((D) => Number.isFinite(D) && D > 0) && (M.widthMm = x.reduce((D, T) => D + T, 0), p.widthMm = Math.max(
1310
+ const M = c.component, p = t.value.template.pages[c.pageIndex], C = M.columns.map((D) => D.widthMm);
1311
+ M.headerGrid && (M.headerGrid.colWidthsMm = C), p.layout === "wide" && C.every((D) => Number.isFinite(D) && D > 0) && (M.widthMm = C.reduce((D, T) => D + T, 0), p.widthMm = Math.max(
1312
1312
  ...p.components.map(
1313
1313
  (D) => D.leftMm + D.widthMm
1314
1314
  )
@@ -1317,24 +1317,24 @@ function Vn(t, u, s, r) {
1317
1317
  function I(c, M) {
1318
1318
  const p = d.value;
1319
1319
  if (!p?.headerGrid) return;
1320
- const D = ve(p.headerGrid, p.widthMm, 100).cells.filter(({ ci: T, cell: N }) => T <= c && T + (N.colSpan ?? 1) > c).slice(-1)[0];
1320
+ const D = ve(p.headerGrid, p.widthMm, 100).cells.filter(({ ci: T, cell: F }) => T <= c && T + (F.colSpan ?? 1) > c).slice(-1)[0];
1321
1321
  D && (Object.assign(D.cell, { text: M, rawText: M, value: M }), p.columns.slice(D.ci, D.ci + (D.cell.colSpan ?? 1)).forEach((T) => {
1322
1322
  T.header = M;
1323
1323
  }));
1324
1324
  }
1325
1325
  function k(c, M) {
1326
- const p = d.value, x = p?.columns[c];
1327
- if (x?.headerStyle?.align !== void 0 && (x.headerStyle = { ...x.headerStyle, align: M }), !p?.headerGrid) return;
1328
- const T = ve(p.headerGrid, p.widthMm, 100).cells.filter(({ ci: N, cell: te }) => N <= c && N + (te.colSpan ?? 1) > c).slice(-1)[0];
1329
- T && (T.cell.style = { ...T.cell.style, align: M }, p.columns.slice(T.ci, T.ci + (T.cell.colSpan ?? 1)).forEach((N) => {
1330
- N.headerAlign = M, N.headerStyle?.align !== void 0 && (N.headerStyle = { ...N.headerStyle, align: M });
1326
+ const p = d.value, C = p?.columns[c];
1327
+ if (C?.headerStyle?.align !== void 0 && (C.headerStyle = { ...C.headerStyle, align: M }), !p?.headerGrid) return;
1328
+ const T = ve(p.headerGrid, p.widthMm, 100).cells.filter(({ ci: F, cell: te }) => F <= c && F + (te.colSpan ?? 1) > c).slice(-1)[0];
1329
+ T && (T.cell.style = { ...T.cell.style, align: M }, p.columns.slice(T.ci, T.ci + (T.cell.colSpan ?? 1)).forEach((F) => {
1330
+ F.headerAlign = M, F.headerStyle?.align !== void 0 && (F.headerStyle = { ...F.headerStyle, align: M });
1331
1331
  }));
1332
1332
  }
1333
1333
  function S(c, M) {
1334
1334
  if (!(!s() || c === "headerAlign" && M === "auto")) {
1335
1335
  for (const p of m.value) {
1336
- const x = d.value?.columns[p];
1337
- x && (Object.assign(x, { [c]: M }), c === "headerAlign" && k(
1336
+ const C = d.value?.columns[p];
1337
+ C && (Object.assign(C, { [c]: M }), c === "headerAlign" && k(
1338
1338
  p,
1339
1339
  M
1340
1340
  ));
@@ -1343,13 +1343,13 @@ function Vn(t, u, s, r) {
1343
1343
  }
1344
1344
  }
1345
1345
  return {
1346
- selected: o,
1346
+ selected: a,
1347
1347
  query: b,
1348
1348
  selectedColumns: m,
1349
1349
  lists: _,
1350
1350
  activeList: d,
1351
1351
  headerAlignments: w,
1352
- visibleColumns: C,
1352
+ visibleColumns: x,
1353
1353
  toggleColumn: E,
1354
1354
  selectVisible: G,
1355
1355
  clearSelection: A,
@@ -1363,27 +1363,27 @@ function be(t) {
1363
1363
  function Bn(t, u, s = !1) {
1364
1364
  const r = { kind: "snapshot", value: u };
1365
1365
  if (s) return r;
1366
- let o = 0;
1366
+ let a = 0;
1367
1367
  const b = Math.min(t.length, u.length);
1368
- for (; o < b && t.charCodeAt(o) === u.charCodeAt(o); ) o++;
1368
+ for (; a < b && t.charCodeAt(a) === u.charCodeAt(a); ) a++;
1369
1369
  let m = t.length, _ = u.length;
1370
- for (; m > o && _ > o && t.charCodeAt(m - 1) === u.charCodeAt(_ - 1); )
1370
+ for (; m > a && _ > a && t.charCodeAt(m - 1) === u.charCodeAt(_ - 1); )
1371
1371
  m--, _--;
1372
- const d = { kind: "patch", start: o, removed: t.slice(o, m), inserted: u.slice(o, _) };
1372
+ const d = { kind: "patch", start: a, removed: t.slice(a, m), inserted: u.slice(a, _) };
1373
1373
  return be(d) < be(r) ? d : r;
1374
1374
  }
1375
1375
  function Le(t, u, s = !1) {
1376
1376
  if (u.kind === "snapshot") return u.value;
1377
- const r = s ? u.inserted : u.removed, o = s ? u.removed : u.inserted;
1378
- return t.slice(0, u.start) + o + t.slice(u.start + r.length);
1377
+ const r = s ? u.inserted : u.removed, a = s ? u.removed : u.inserted;
1378
+ return t.slice(0, u.start) + a + t.slice(u.start + r.length);
1379
1379
  }
1380
1380
  function zn(t, u = { entries: 100, bytes: 16 * 1024 * 1024 }) {
1381
1381
  if (![u.entries, u.bytes].every((g) => Number.isSafeInteger(g) && g > 0)) throw new RangeError("History budgets must be positive safe integers");
1382
- const s = nt([{ kind: "snapshot", value: t }]), r = F(0), o = F(t), b = z(() => r.value > 0), m = z(() => r.value + 1 < s.value.length), _ = z(() => o.value), d = z(() => s.value.reduce((g, f) => g + be(f), 0));
1382
+ const s = nt([{ kind: "snapshot", value: t }]), r = j(0), a = j(t), b = z(() => r.value > 0), m = z(() => r.value + 1 < s.value.length), _ = z(() => a.value), d = z(() => s.value.reduce((g, f) => g + be(f), 0));
1383
1383
  function w(g) {
1384
- s.value = [{ kind: "snapshot", value: g }], r.value = 0, o.value = g;
1384
+ s.value = [{ kind: "snapshot", value: g }], r.value = 0, a.value = g;
1385
1385
  }
1386
- function C(g) {
1386
+ function x(g) {
1387
1387
  let f = g;
1388
1388
  for (; f > 0 && s.value[f].kind !== "snapshot"; ) f--;
1389
1389
  let I = "";
@@ -1399,51 +1399,51 @@ function zn(t, u = { entries: 100, bytes: 16 * 1024 * 1024 }) {
1399
1399
  return g;
1400
1400
  }
1401
1401
  function G(g) {
1402
- if (o.value === g) return;
1402
+ if (a.value === g) return;
1403
1403
  const f = s.value.slice(0, r.value + 1);
1404
- f.push(Bn(o.value, g, f.length % 20 === 0)), s.value = E(f), r.value = s.value.length - 1, o.value = g;
1404
+ f.push(Bn(a.value, g, f.length % 20 === 0)), s.value = E(f), r.value = s.value.length - 1, a.value = g;
1405
1405
  }
1406
1406
  function A(g) {
1407
1407
  if (g < 0 ? !b.value : !m.value) return;
1408
1408
  const f = s.value[r.value];
1409
- return g < 0 && f.kind === "patch" ? o.value = Le(o.value, f, !0) : g > 0 ? o.value = Le(o.value, s.value[r.value + 1]) : o.value = C(r.value - 1), r.value += g, o.value;
1409
+ return g < 0 && f.kind === "patch" ? a.value = Le(a.value, f, !0) : g > 0 ? a.value = Le(a.value, s.value[r.value + 1]) : a.value = x(r.value - 1), r.value += g, a.value;
1410
1410
  }
1411
1411
  return { canUndo: b, canRedo: m, current: _, retainedBytes: d, reset: w, record: G, move: A };
1412
1412
  }
1413
- function jn(t) {
1414
- const u = nt(null), s = F(!1);
1415
- let r, o = 0;
1413
+ function Nn(t) {
1414
+ const u = nt(null), s = j(!1);
1415
+ let r, a = 0;
1416
1416
  function b(d) {
1417
1417
  r?.(d), r = void 0, u.value = null;
1418
1418
  }
1419
1419
  function m() {
1420
- o++, b(!1), s.value = !1;
1420
+ a++, b(!1), s.value = !1;
1421
1421
  }
1422
1422
  async function _(d) {
1423
1423
  m();
1424
- const w = o, C = t();
1424
+ const w = a, x = t();
1425
1425
  s.value = !0;
1426
1426
  try {
1427
1427
  const E = await new Promise((G, A) => {
1428
- if (r = G, !C) {
1428
+ if (r = G, !x) {
1429
1429
  u.value = d;
1430
1430
  return;
1431
1431
  }
1432
- Promise.resolve().then(() => o === w ? C(d) : !1).then((g) => {
1433
- o === w && b(g === !0);
1432
+ Promise.resolve().then(() => a === w ? x(d) : !1).then((g) => {
1433
+ a === w && b(g === !0);
1434
1434
  }, (g) => {
1435
- o === w && (r = void 0, u.value = null, A(g));
1435
+ a === w && (r = void 0, u.value = null, A(g));
1436
1436
  });
1437
1437
  });
1438
- return o === w && E === !0;
1438
+ return a === w && E === !0;
1439
1439
  } finally {
1440
- o === w && (s.value = !1);
1440
+ a === w && (s.value = !1);
1441
1441
  }
1442
1442
  }
1443
1443
  return $e(m), { confirmation: u, pending: s, decide: b, request: _, cancel: m };
1444
1444
  }
1445
- function Fn(t, u) {
1446
- const s = F(Y(t.modelValue)), r = F(me(s.value)), o = F(me(s.value)), b = F(""), m = F(!1), _ = z(() => ({
1445
+ function jn(t, u) {
1446
+ const s = j(Y(t.modelValue)), r = j(me(s.value)), a = j(me(s.value)), b = j(""), m = j(!1), _ = z(() => ({
1447
1447
  ...Pe,
1448
1448
  ...t.messages
1449
1449
  })), d = z(() => ({
@@ -1470,7 +1470,7 @@ function Fn(t, u) {
1470
1470
  return d.value;
1471
1471
  }
1472
1472
  });
1473
- let w, C = 0;
1473
+ let w, x = 0;
1474
1474
  const E = z(
1475
1475
  () => Ye(s.value)
1476
1476
  ), G = z(() => {
@@ -1479,20 +1479,20 @@ function Fn(t, u) {
1479
1479
  } catch {
1480
1480
  return !0;
1481
1481
  }
1482
- }), A = F(o.value), g = z(() => o.value !== A.value), f = z(
1483
- () => G.value || o.value !== A.value
1482
+ }), A = j(a.value), g = z(() => a.value !== A.value), f = z(
1483
+ () => G.value || a.value !== A.value
1484
1484
  ), I = () => JSON.stringify({
1485
1485
  document: s.value,
1486
- json: o.value,
1486
+ json: a.value,
1487
1487
  appliedJson: A.value
1488
- }), k = zn(I()), S = jn(() => t.beforeDiscard), c = z(() => m.value || S.pending.value), M = () => !t.readonly && !c.value && !g.value, p = Vn(
1488
+ }), k = zn(I()), S = Nn(() => t.beforeDiscard), c = z(() => m.value || S.pending.value), M = () => !t.readonly && !c.value && !g.value, p = Vn(
1489
1489
  s,
1490
1490
  () => E.value.ok,
1491
1491
  M,
1492
1492
  H
1493
- ), { selected: x, lists: D, activeList: T, headerAlignments: N, setColumn: te } = p;
1494
- Z(x, () => p.clearSelection());
1495
- const a = z(
1493
+ ), { selected: C, lists: D, activeList: T, headerAlignments: F, setColumn: te } = p;
1494
+ Z(C, () => p.clearSelection());
1495
+ const o = z(
1496
1496
  () => E.value.ok ? bt({
1497
1497
  draft: {
1498
1498
  template: s.value.template,
@@ -1502,10 +1502,10 @@ function Fn(t, u) {
1502
1502
  }) : void 0
1503
1503
  );
1504
1504
  function q() {
1505
- C++, w?.abort(), w = void 0, m.value = !1;
1505
+ x++, w?.abort(), w = void 0, m.value = !1;
1506
1506
  }
1507
1507
  let $ = 0;
1508
- async function L(V = "replace", j) {
1508
+ async function L(V = "replace", N) {
1509
1509
  if (!f.value) return !0;
1510
1510
  const J = I();
1511
1511
  try {
@@ -1514,7 +1514,7 @@ function Fn(t, u) {
1514
1514
  document: JSON.parse(
1515
1515
  JSON.stringify(s.value)
1516
1516
  ),
1517
- replacement: j ? Y(j) : void 0,
1517
+ replacement: N ? Y(N) : void 0,
1518
1518
  pendingLocalChanges: !0
1519
1519
  }) && J === I();
1520
1520
  } catch (ne) {
@@ -1522,62 +1522,62 @@ function Fn(t, u) {
1522
1522
  }
1523
1523
  }
1524
1524
  function R(V) {
1525
- q(), s.value = V, r.value = me(V), o.value = r.value, A.value = o.value, b.value = "", x.value = 0, p.clearSelection(), k.reset(I());
1525
+ q(), s.value = V, r.value = me(V), a.value = r.value, A.value = a.value, b.value = "", C.value = 0, p.clearSelection(), k.reset(I());
1526
1526
  }
1527
1527
  Z(
1528
1528
  () => t.modelValue,
1529
1529
  async (V) => {
1530
- let j;
1530
+ let N;
1531
1531
  try {
1532
- j = Y(V);
1532
+ N = Y(V);
1533
1533
  } catch (ne) {
1534
1534
  b.value = ne instanceof Error ? ne.message : String(ne);
1535
1535
  return;
1536
1536
  }
1537
1537
  try {
1538
- if (me(j) === me(s.value))
1538
+ if (me(N) === me(s.value))
1539
1539
  return;
1540
1540
  } catch {
1541
1541
  }
1542
1542
  const J = ++$;
1543
- if (q(), !await L("replace", j)) {
1543
+ if (q(), !await L("replace", N)) {
1544
1544
  J === $ && E.value.ok && u("update:modelValue", Y(s.value));
1545
1545
  return;
1546
1546
  }
1547
- J === $ && R(j);
1547
+ J === $ && R(N);
1548
1548
  }
1549
1549
  ), $e(() => {
1550
1550
  $++, q();
1551
1551
  });
1552
1552
  function H() {
1553
- S.cancel(), b.value = "", E.value.ok && (o.value = me(s.value), A.value = o.value, u("update:modelValue", Y(s.value))), k.record(I());
1553
+ S.cancel(), b.value = "", E.value.ok && (a.value = me(s.value), A.value = a.value, u("update:modelValue", Y(s.value))), k.record(I());
1554
1554
  }
1555
1555
  function K(V) {
1556
1556
  if (!M()) return !1;
1557
1557
  try {
1558
- const j = Y(s.value);
1559
- V(j);
1560
- const J = Ye(j);
1558
+ const N = Y(s.value);
1559
+ V(N);
1560
+ const J = Ye(N);
1561
1561
  if (!J.ok)
1562
1562
  throw new Error(
1563
1563
  J.errors.map((ne) => `${ne.path}: ${ne.message}`).join(`
1564
1564
  `)
1565
1565
  );
1566
- return s.value = j, H(), !0;
1567
- } catch (j) {
1568
- return b.value = j instanceof Error ? j.message : String(j), !1;
1566
+ return s.value = N, H(), !0;
1567
+ } catch (N) {
1568
+ return b.value = N instanceof Error ? N.message : String(N), !1;
1569
1569
  }
1570
1570
  }
1571
1571
  async function ue(V) {
1572
1572
  if (!M()) return !1;
1573
1573
  try {
1574
- const j = Y(V);
1575
- return !await L("replace", j) || !M() ? !1 : (s.value = j, x.value = 0, p.clearSelection(), H(), !0);
1576
- } catch (j) {
1577
- return b.value = j instanceof Error ? j.message : String(j), !1;
1574
+ const N = Y(V);
1575
+ return !await L("replace", N) || !M() ? !1 : (s.value = N, C.value = 0, p.clearSelection(), H(), !0);
1576
+ } catch (N) {
1577
+ return b.value = N instanceof Error ? N.message : String(N), !1;
1578
1578
  }
1579
1579
  }
1580
- function Ce(V) {
1580
+ function xe(V) {
1581
1581
  M() && (s.value.name = V, H());
1582
1582
  }
1583
1583
  function Ae(V) {
@@ -1586,12 +1586,12 @@ function Fn(t, u) {
1586
1586
  function pe() {
1587
1587
  if (!(t.readonly || c.value))
1588
1588
  try {
1589
- const V = Y(o.value);
1589
+ const V = Y(a.value);
1590
1590
  if (V.id !== s.value.id)
1591
1591
  throw new Error("属性编辑不允许更换模板 ID,请另存为新模板");
1592
1592
  if (V.revision !== s.value.revision)
1593
1593
  throw new Error("修订号由保存服务管理,不能在 JSON 中修改");
1594
- s.value = V, x.value = 0, p.clearSelection(), H();
1594
+ s.value = V, C.value = 0, p.clearSelection(), H();
1595
1595
  } catch (V) {
1596
1596
  b.value = V instanceof Error ? V.message : String(V);
1597
1597
  }
@@ -1602,32 +1602,32 @@ function Fn(t, u) {
1602
1602
  function ie(V) {
1603
1603
  if (c.value || t.readonly) return;
1604
1604
  k.record(I());
1605
- const j = k.move(V);
1606
- if (!j) return;
1605
+ const N = k.move(V);
1606
+ if (!N) return;
1607
1607
  S.cancel();
1608
- const J = JSON.parse(j);
1609
- s.value = J.document, o.value = J.json, A.value = J.appliedJson, b.value = "", x.value = 0, p.clearSelection(), E.value.ok && u("update:modelValue", Y(s.value));
1608
+ const J = JSON.parse(N);
1609
+ s.value = J.document, a.value = J.json, A.value = J.appliedJson, b.value = "", C.value = 0, p.clearSelection(), E.value.ok && u("update:modelValue", Y(s.value));
1610
1610
  }
1611
1611
  async function he() {
1612
1612
  if (!t.save || !M() || !E.value.ok) return;
1613
- const V = ++C;
1613
+ const V = ++x;
1614
1614
  w = new AbortController(), m.value = !0, b.value = "";
1615
- const j = Y(s.value);
1615
+ const N = Y(s.value);
1616
1616
  try {
1617
1617
  const J = Y(
1618
- await t.save(j, {
1619
- expectedRevision: j.revision,
1618
+ await t.save(N, {
1619
+ expectedRevision: N.revision,
1620
1620
  signal: w.signal
1621
1621
  })
1622
1622
  );
1623
- if (V !== C) return;
1624
- if (J.id !== j.id)
1623
+ if (V !== x) return;
1624
+ if (J.id !== N.id)
1625
1625
  throw new Error("保存服务返回了其他模板的文档");
1626
- s.value = J, r.value = me(J), o.value = r.value, A.value = o.value, k.reset(I()), u("saved", Y(J)), u("update:modelValue", Y(J));
1626
+ s.value = J, r.value = me(J), a.value = r.value, A.value = a.value, k.reset(I()), u("saved", Y(J)), u("update:modelValue", Y(J));
1627
1627
  } catch (J) {
1628
- V === C && (b.value = J instanceof Error ? J.message : String(J));
1628
+ V === x && (b.value = J instanceof Error ? J.message : String(J));
1629
1629
  } finally {
1630
- V === C && (m.value = !1, w = void 0);
1630
+ V === x && (m.value = !1, w = void 0);
1631
1631
  }
1632
1632
  }
1633
1633
  const we = z(
@@ -1652,19 +1652,19 @@ function Fn(t, u) {
1652
1652
  decideDiscard: S.decide,
1653
1653
  guardChanges: L,
1654
1654
  draft: s,
1655
- json: o,
1656
- selected: x,
1655
+ json: a,
1656
+ selected: C,
1657
1657
  error: b,
1658
1658
  saving: m,
1659
1659
  dirty: G,
1660
1660
  validation: E,
1661
1661
  lists: D,
1662
1662
  activeList: T,
1663
- headerAlignments: N,
1663
+ headerAlignments: F,
1664
1664
  previewOptions: d,
1665
- fetcher: a,
1665
+ fetcher: o,
1666
1666
  messages: _,
1667
- setName: Ce,
1667
+ setName: xe,
1668
1668
  setDescription: Ae,
1669
1669
  setColumn: te,
1670
1670
  applyJson: pe,
@@ -1672,68 +1672,68 @@ function Fn(t, u) {
1672
1672
  save: he
1673
1673
  };
1674
1674
  }
1675
- function Nn(t, u) {
1676
- const s = F("fields"), r = () => u.value?.columns.length ? 0 : -1, o = F(r()), b = z(() => {
1677
- const d = u.value?.columns[o.value];
1678
- return d ? { column: d, index: o.value } : void 0;
1675
+ function Fn(t, u) {
1676
+ const s = j("fields"), r = () => u.value?.columns.length ? 0 : -1, a = j(r()), b = z(() => {
1677
+ const d = u.value?.columns[a.value];
1678
+ return d ? { column: d, index: a.value } : void 0;
1679
1679
  });
1680
1680
  Z(t, () => {
1681
- o.value = r();
1681
+ a.value = r();
1682
1682
  }), Z(u, (d) => {
1683
- d?.columns[o.value] || (o.value = r());
1683
+ d?.columns[a.value] || (a.value = r());
1684
1684
  });
1685
1685
  function m(d) {
1686
- u.value?.columns[d] && (o.value = d);
1686
+ u.value?.columns[d] && (a.value = d);
1687
1687
  }
1688
1688
  function _(d) {
1689
1689
  const w = u.value?.columns.length ?? 0;
1690
- w && (o.value = Math.max(
1690
+ w && (a.value = Math.max(
1691
1691
  0,
1692
- Math.min(w - 1, o.value + d)
1692
+ Math.min(w - 1, a.value + d)
1693
1693
  ));
1694
1694
  }
1695
- return { section: s, activeIndex: o, activeColumn: b, activate: m, stepColumn: _ };
1695
+ return { section: s, activeIndex: a, activeColumn: b, activate: m, stepColumn: _ };
1696
1696
  }
1697
- const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn = { class: "mr-designer-heading" }, Kn = ["aria-label"], Wn = ["id", "aria-selected", "aria-controls", "tabindex", "onClick"], Xn = ["aria-label"], qn = ["aria-pressed"], Yn = ["aria-pressed"], Qn = { class: "mr-designer-actions" }, Zn = { class: "mr-designer-history" }, eo = ["aria-label", "title", "disabled"], to = ["aria-label", "title", "disabled"], no = ["disabled"], oo = ["disabled"], ao = ["aria-label"], lo = {
1697
+ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn = { class: "mr-designer-heading" }, Kn = ["aria-label"], Wn = ["id", "aria-selected", "aria-controls", "tabindex", "onClick"], Xn = ["aria-label"], qn = ["aria-pressed"], Yn = ["aria-pressed"], Qn = { class: "mr-designer-actions" }, Zn = { class: "mr-designer-history" }, ea = ["aria-label", "title", "disabled"], ta = ["aria-label", "title", "disabled"], na = ["disabled"], aa = ["disabled"], oa = ["aria-label"], la = {
1698
1698
  key: 0,
1699
1699
  class: "mr-designer-tools"
1700
- }, so = ["aria-label"], io = ["aria-pressed", "onClick"], ro = { class: "mr-designer-tool-content" }, uo = {
1700
+ }, sa = ["aria-label"], ia = ["aria-pressed", "onClick"], ra = { class: "mr-designer-tool-content" }, da = {
1701
1701
  key: 2,
1702
1702
  class: "mr-designer-rule-workspace"
1703
- }, co = { key: 0 }, mo = ["value"], vo = {
1703
+ }, ua = { key: 0 }, ca = ["value"], ma = {
1704
1704
  key: 2,
1705
1705
  class: "mr-designer-note"
1706
- }, po = {
1706
+ }, va = {
1707
1707
  key: 1,
1708
1708
  class: "mr-designer-inspector"
1709
- }, ho = ["id", "aria-labelledby"], go = {
1709
+ }, pa = ["id", "aria-labelledby"], ha = {
1710
1710
  key: 0,
1711
1711
  class: "mr-designer-area"
1712
- }, fo = ["value"], bo = { class: "mr-designer-current" }, yo = ["aria-expanded", "aria-controls"], wo = { class: "mr-designer-current-name" }, ko = { class: "mr-designer-directory-entry" }, Mo = { class: "mr-designer-field-position" }, Co = ["aria-label"], xo = ["aria-label", "title", "disabled"], _o = ["aria-label", "title", "disabled"], So = ["disabled", "aria-label"], $o = { class: "mr-designer-property-group" }, Eo = ["value"], Io = ["value", "list"], Ao = ["id"], Do = ["value"], To = { class: "mr-designer-property-group" }, Lo = { class: "mr-designer-format-pair" }, Ro = { class: "mr-designer-stacked" }, Go = ["value"], Po = { class: "mr-designer-stacked" }, Ho = ["value"], Vo = { value: "identifier" }, Bo = { value: "dimension" }, zo = { value: "measure" }, jo = { value: "date" }, Fo = { value: "text" }, No = { class: "mr-designer-control-row" }, Oo = { class: "mr-designer-control-row" }, Uo = { class: "mr-designer-toggle" }, Jo = ["checked"], Ko = { class: "mr-designer-column-structure" }, Wo = ["aria-label", "title", "disabled"], Xo = ["aria-label", "title", "disabled"], qo = ["checked", "disabled"], Yo = ["id", "aria-label"], Qo = { class: "mr-designer-directory-heading" }, Zo = ["aria-label"], ea = { class: "mr-designer-search" }, ta = ["aria-label", "placeholder"], na = ["aria-label", "title"], oa = { class: "mr-designer-column-tools" }, aa = ["disabled"], la = {
1712
+ }, ga = ["value"], fa = { class: "mr-designer-current" }, ba = ["aria-expanded", "aria-controls"], ya = { class: "mr-designer-current-name" }, wa = { class: "mr-designer-directory-entry" }, ka = { class: "mr-designer-field-position" }, Ma = ["aria-label"], xa = ["aria-label", "title", "disabled"], Ca = ["aria-label", "title", "disabled"], _a = ["disabled", "aria-label"], Sa = { class: "mr-designer-property-group" }, $a = ["value"], Ea = ["value", "list"], Ia = ["id"], Aa = ["value"], Da = { class: "mr-designer-property-group" }, Ta = { class: "mr-designer-format-pair" }, La = { class: "mr-designer-stacked" }, Ra = ["value"], Ga = { class: "mr-designer-stacked" }, Pa = ["value"], Ha = { value: "identifier" }, Va = { value: "dimension" }, Ba = { value: "measure" }, za = { value: "date" }, Na = { value: "text" }, ja = { class: "mr-designer-control-row" }, Fa = { class: "mr-designer-control-row" }, Oa = { class: "mr-designer-toggle" }, Ua = ["checked"], Ja = { class: "mr-designer-column-structure" }, Ka = ["aria-label", "title", "disabled"], Wa = ["aria-label", "title", "disabled"], Xa = ["checked", "disabled"], qa = ["id", "aria-label"], Ya = { class: "mr-designer-directory-heading" }, Qa = ["aria-label"], Za = { class: "mr-designer-search" }, eo = ["aria-label", "placeholder"], to = ["aria-label", "title"], no = { class: "mr-designer-column-tools" }, ao = ["disabled"], oo = {
1713
1713
  key: 1,
1714
1714
  role: "status"
1715
- }, sa = { key: 2 }, ia = ["aria-label"], ra = ["aria-label", "checked", "disabled", "onChange"], da = ["data-column-index", "aria-pressed", "tabindex", "onClick"], ua = { class: "mr-designer-column-number" }, ca = { class: "mr-designer-column-name" }, ma = {
1715
+ }, lo = { key: 2 }, so = ["aria-label"], io = ["aria-label", "checked", "disabled", "onChange"], ro = ["data-column-index", "aria-pressed", "tabindex", "onClick"], uo = { class: "mr-designer-column-number" }, co = { class: "mr-designer-column-name" }, mo = {
1716
1716
  key: 0,
1717
1717
  role: "status",
1718
1718
  class: "mr-designer-empty"
1719
- }, va = {
1719
+ }, vo = {
1720
1720
  key: 0,
1721
1721
  class: "mr-designer-batch"
1722
- }, pa = ["aria-label", "disabled"], ha = { value: "" }, ga = { value: "auto" }, fa = { value: "left" }, ba = { value: "center" }, ya = { value: "right" }, wa = { value: "justify" }, ka = ["aria-label", "disabled"], Ma = { value: "" }, Ca = { value: "left" }, xa = { value: "center" }, _a = { value: "right" }, Sa = { value: "justify" }, $a = {
1722
+ }, po = ["aria-label", "disabled"], ho = { value: "" }, go = { value: "auto" }, fo = { value: "left" }, bo = { value: "center" }, yo = { value: "right" }, wo = { value: "justify" }, ko = ["aria-label", "disabled"], Mo = { value: "" }, xo = { value: "left" }, Co = { value: "center" }, _o = { value: "right" }, So = { value: "justify" }, $o = {
1723
1723
  key: 2,
1724
1724
  role: "status",
1725
1725
  class: "mr-designer-empty"
1726
- }, Ea = { class: "mr-designer-object-tools" }, Ia = ["aria-label", "disabled"], Aa = { value: "" }, Da = { value: "text" }, Ta = { value: "list" }, La = { value: "image" }, Ra = { value: "rect" }, Ga = ["title", "aria-label", "disabled"], Pa = ["title", "aria-label", "disabled"], Ha = { key: 0 }, Va = ["value"], Ba = { class: "mr-designer-stacked" }, za = ["value"], ja = {
1726
+ }, Eo = { class: "mr-designer-object-tools" }, Io = ["aria-label", "disabled"], Ao = { value: "" }, Do = { value: "text" }, To = { value: "list" }, Lo = { value: "image" }, Ro = { value: "rect" }, Go = ["title", "aria-label", "disabled"], Po = ["title", "aria-label", "disabled"], Ho = { key: 0 }, Vo = ["value"], Bo = { class: "mr-designer-stacked" }, zo = ["value"], No = {
1727
1727
  value: -1,
1728
1728
  disabled: ""
1729
- }, Fa = ["value"], Na = { class: "mr-designer-layer-tools" }, Oa = ["disabled"], Ua = ["disabled"], Ja = {
1729
+ }, jo = ["value"], Fo = { class: "mr-designer-layer-tools" }, Oo = ["disabled"], Uo = ["disabled"], Jo = {
1730
1730
  key: 2,
1731
1731
  class: "mr-designer-empty"
1732
- }, Ka = { class: "mr-designer-stacked" }, Wa = ["value", "disabled"], Xa = { class: "mr-designer-stacked" }, qa = ["value", "disabled"], Ya = { class: "mr-designer-technical" }, Qa = { class: "mr-designer-identity" }, Za = { class: "mr-designer-stacked mr-designer-json-label" }, el = ["aria-label", "disabled"], tl = ["disabled"], nl = {
1732
+ }, Ko = { class: "mr-designer-stacked" }, Wo = ["value", "disabled"], Xo = { class: "mr-designer-stacked" }, qo = ["value", "disabled"], Yo = { class: "mr-designer-technical" }, Qo = { class: "mr-designer-identity" }, Zo = { class: "mr-designer-stacked mr-designer-json-label" }, el = ["aria-label", "disabled"], tl = ["disabled"], nl = {
1733
1733
  key: 4,
1734
1734
  role: "status",
1735
1735
  class: "mr-designer-note mr-designer-pending"
1736
- }, ol = ["aria-label"], al = {
1736
+ }, al = ["aria-label"], ol = {
1737
1737
  key: 0,
1738
1738
  role: "alert",
1739
1739
  class: "mr-designer-error"
@@ -1762,13 +1762,13 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1762
1762
  setup(t, { expose: u, emit: s }) {
1763
1763
  const r = Me(
1764
1764
  () => import("./ExcelBindingWizard-RLJIXKKG.js")
1765
- ), o = Me(() => import("./RuleEditor-ynnUEK0s.js")), b = Me(
1765
+ ), a = Me(() => import("./RuleEditor-CtJFzKuY.js")), b = Me(
1766
1766
  () => import("./TemplateReviewPanel-Cn32OY4_.js")
1767
- ), m = t, _ = s, d = Fn(m, (X, v) => {
1767
+ ), m = t, _ = s, d = jn(m, (X, v) => {
1768
1768
  _(X === "saved" ? "saved" : "update:modelValue", v);
1769
1769
  }), {
1770
1770
  draft: w,
1771
- json: C,
1771
+ json: x,
1772
1772
  selected: E,
1773
1773
  error: G,
1774
1774
  saving: A,
@@ -1780,13 +1780,13 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1780
1780
  canRedo: c,
1781
1781
  validation: M,
1782
1782
  lists: p,
1783
- activeList: x,
1783
+ activeList: C,
1784
1784
  visibleColumns: D,
1785
1785
  query: T,
1786
- selectedColumns: N,
1786
+ selectedColumns: F,
1787
1787
  fetcher: te,
1788
- messages: a
1789
- } = d, q = Nn(E, x), { section: $, activeIndex: L, activeColumn: R } = q, H = `mr-designer-${gt()?.uid ?? 0}`, K = [
1788
+ messages: o
1789
+ } = d, q = Fn(E, C), { section: $, activeIndex: L, activeColumn: R } = q, H = `mr-designer-${gt()?.uid ?? 0}`, K = [
1790
1790
  "fields",
1791
1791
  "component",
1792
1792
  "template",
@@ -1797,7 +1797,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1797
1797
  q,
1798
1798
  () => m.dataSchemas
1799
1799
  ), {
1800
- mode: Ce,
1800
+ mode: xe,
1801
1801
  setMode: Ae,
1802
1802
  canvasSelection: pe,
1803
1803
  canvasPage: se,
@@ -1806,17 +1806,17 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1806
1806
  visitedTools: we,
1807
1807
  editDisabled: le,
1808
1808
  dataSchema: V,
1809
- chooseCanvas: j,
1809
+ chooseCanvas: N,
1810
1810
  insertComponent: J,
1811
1811
  patchCanvas: ne,
1812
- changeList: ot,
1812
+ changeList: at,
1813
1813
  moveColumn: Ue,
1814
- headerCommand: at,
1814
+ headerCommand: ot,
1815
1815
  locateReview: lt,
1816
1816
  canvas: ce
1817
1817
  } = ue, st = z(
1818
- () => A.value ? a.value.saving : m.readonly ? a.value.readonly : g.value ? a.value.dirty : a.value.ready
1819
- ), Je = F(null), He = F(null), ee = Hn(q, $, D), {
1818
+ () => A.value ? o.value.saving : m.readonly ? o.value.readonly : g.value ? o.value.dirty : o.value.ready
1819
+ ), Je = j(null), He = j(null), ee = Hn(q, $, D), {
1820
1820
  open: Ke,
1821
1821
  cursor: it,
1822
1822
  trigger: rt,
@@ -1828,11 +1828,11 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1828
1828
  await de(), He.value && (He.value.scrollTop = 0);
1829
1829
  });
1830
1830
  const We = z(() => ({
1831
- auto: a.value.auto,
1832
- left: a.value.left,
1833
- center: a.value.center,
1834
- right: a.value.right,
1835
- justify: a.value.justify
1831
+ auto: o.value.auto,
1832
+ left: o.value.left,
1833
+ center: o.value.center,
1834
+ right: o.value.right,
1835
+ justify: o.value.justify
1836
1836
  }));
1837
1837
  let De = null;
1838
1838
  Z(k, async (X) => {
@@ -1886,16 +1886,16 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1886
1886
  }
1887
1887
  return (X, v) => (h(), y("section", {
1888
1888
  class: "mr-designer",
1889
- "aria-label": e(a).title,
1889
+ "aria-label": e(o).title,
1890
1890
  "aria-busy": e(A)
1891
1891
  }, [
1892
1892
  n("header", Un, [
1893
1893
  n("div", Jn, [
1894
- Q(oe, {
1894
+ Q(ae, {
1895
1895
  name: "columns",
1896
1896
  size: 15
1897
1897
  }),
1898
- n("strong", null, l(e(a).heading), 1),
1898
+ n("strong", null, l(e(o).heading), 1),
1899
1899
  n("span", {
1900
1900
  class: _e({ "mr-designer-dirty": e(g) })
1901
1901
  }, l(st.value), 3)
@@ -1903,7 +1903,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1903
1903
  n("nav", {
1904
1904
  class: "mr-designer-tabs",
1905
1905
  role: "tablist",
1906
- "aria-label": e(a).sectionsLabel
1906
+ "aria-label": e(o).sectionsLabel
1907
1907
  }, [
1908
1908
  (h(), y(U, null, W(K, (i) => n("button", {
1909
1909
  id: `${H}-tab-${i}`,
@@ -1915,31 +1915,31 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1915
1915
  tabindex: e($) === i ? 0 : -1,
1916
1916
  onClick: (O) => $.value = i,
1917
1917
  onKeydown: vt
1918
- }, l(e(a)[`${i}Section`]), 41, Wn)), 64))
1918
+ }, l(e(o)[`${i}Section`]), 41, Wn)), 64))
1919
1919
  ], 8, Kn),
1920
1920
  n("div", {
1921
1921
  class: "mr-designer-mode",
1922
1922
  role: "group",
1923
- "aria-label": e(a).design
1923
+ "aria-label": e(o).design
1924
1924
  }, [
1925
1925
  n("button", {
1926
1926
  type: "button",
1927
- "aria-pressed": e(Ce) === "design",
1927
+ "aria-pressed": e(xe) === "design",
1928
1928
  onClick: v[0] || (v[0] = (i) => e(Ae)("design"))
1929
- }, l(e(a).design), 9, qn),
1929
+ }, l(e(o).design), 9, qn),
1930
1930
  n("button", {
1931
1931
  type: "button",
1932
- "aria-pressed": e(Ce) === "preview",
1932
+ "aria-pressed": e(xe) === "preview",
1933
1933
  onClick: v[1] || (v[1] = (i) => e(Ae)("preview"))
1934
- }, l(e(a).preview), 9, Yn)
1934
+ }, l(e(o).preview), 9, Yn)
1935
1935
  ], 8, Xn),
1936
1936
  n("div", Qn, [
1937
1937
  n("div", Zn, [
1938
1938
  n("button", {
1939
1939
  type: "button",
1940
1940
  class: "mr-designer-icon-button",
1941
- "aria-label": e(a).undo,
1942
- title: e(a).undo,
1941
+ "aria-label": e(o).undo,
1942
+ title: e(o).undo,
1943
1943
  disabled: t.readonly || e(I) || !e(S),
1944
1944
  onClick: v[2] || (v[2] = //@ts-ignore
1945
1945
  (...i) => e(d).undo && e(d).undo(...i))
@@ -1951,12 +1951,12 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1951
1951
  }, [
1952
1952
  n("path", { d: "M4 10h10a6 6 0 0 1 0 12M4 10l5-5M4 10l5 5" })
1953
1953
  ], -1)
1954
- ])], 8, eo),
1954
+ ])], 8, ea),
1955
1955
  n("button", {
1956
1956
  type: "button",
1957
1957
  class: "mr-designer-icon-button",
1958
- "aria-label": e(a).redo,
1959
- title: e(a).redo,
1958
+ "aria-label": e(o).redo,
1959
+ title: e(o).redo,
1960
1960
  disabled: t.readonly || e(I) || !e(c),
1961
1961
  onClick: v[3] || (v[3] = //@ts-ignore
1962
1962
  (...i) => e(d).redo && e(d).redo(...i))
@@ -1968,7 +1968,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1968
1968
  }, [
1969
1969
  n("path", { d: "M20 10H10a6 6 0 0 0 0 12m10-12-5-5m5 5-5 5" })
1970
1970
  ], -1)
1971
- ])], 8, to)
1971
+ ])], 8, ta)
1972
1972
  ]),
1973
1973
  n("button", {
1974
1974
  type: "button",
@@ -1976,7 +1976,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1976
1976
  disabled: t.readonly || e(I) || !e(g),
1977
1977
  onClick: v[4] || (v[4] = //@ts-ignore
1978
1978
  (...i) => e(d).reset && e(d).reset(...i))
1979
- }, l(e(a).reset), 9, no),
1979
+ }, l(e(o).reset), 9, na),
1980
1980
  t.save ? (h(), y("button", {
1981
1981
  key: 0,
1982
1982
  type: "button",
@@ -1985,24 +1985,24 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
1985
1985
  onClick: v[5] || (v[5] = //@ts-ignore
1986
1986
  (...i) => e(d).save && e(d).save(...i))
1987
1987
  }, [
1988
- Q(oe, {
1988
+ Q(ae, {
1989
1989
  name: "file",
1990
1990
  size: 13
1991
1991
  }),
1992
- P(l(e(A) ? e(a).saving : e(a).save), 1)
1993
- ], 8, oo)) : B("", !0)
1992
+ P(l(e(A) ? e(o).saving : e(o).save), 1)
1993
+ ], 8, aa)) : B("", !0)
1994
1994
  ])
1995
1995
  ]),
1996
1996
  e(k) ? (h(), y("div", {
1997
1997
  key: 0,
1998
1998
  role: "alertdialog",
1999
- "aria-label": e(a).discardTitle,
1999
+ "aria-label": e(o).discardTitle,
2000
2000
  class: "mr-designer-confirm",
2001
2001
  onKeydown: v[8] || (v[8] = Be(tt((i) => e(d).decideDiscard(!1), ["prevent", "stop"]), ["esc"]))
2002
2002
  }, [
2003
2003
  n("div", null, [
2004
- n("strong", null, l(e(a).discardTitle), 1),
2005
- n("p", null, l(e(a).discardDescription), 1)
2004
+ n("strong", null, l(e(o).discardTitle), 1),
2005
+ n("p", null, l(e(o).discardDescription), 1)
2006
2006
  ]),
2007
2007
  n("div", null, [
2008
2008
  n("button", {
@@ -2010,31 +2010,31 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2010
2010
  ref: Je,
2011
2011
  type: "button",
2012
2012
  onClick: v[6] || (v[6] = (i) => e(d).decideDiscard(!1))
2013
- }, l(e(a).keepEditing), 513),
2013
+ }, l(e(o).keepEditing), 513),
2014
2014
  n("button", {
2015
2015
  type: "button",
2016
2016
  onClick: v[7] || (v[7] = (i) => e(d).decideDiscard(!0))
2017
- }, l(e(a).discard), 1)
2017
+ }, l(e(o).discard), 1)
2018
2018
  ])
2019
- ], 40, ao)) : B("", !0),
2019
+ ], 40, oa)) : B("", !0),
2020
2020
  n("div", {
2021
2021
  class: _e(["mr-designer-body", { "is-tools": e($) === "tools" }])
2022
2022
  }, [
2023
- e(we).size ? ae((h(), y("div", lo, [
2023
+ e(we).size ? oe((h(), y("div", la, [
2024
2024
  n("nav", {
2025
2025
  class: "mr-designer-tool-tabs",
2026
- "aria-label": e(a).toolsSection
2026
+ "aria-label": e(o).toolsSection
2027
2027
  }, [
2028
2028
  (h(), y(U, null, W(["excel", "rules", "review"], (i) => n("button", {
2029
2029
  key: i,
2030
2030
  type: "button",
2031
2031
  "aria-pressed": e(he) === i,
2032
2032
  onClick: (O) => he.value = i
2033
- }, l(e(a)[`${i}Tool`]), 9, io)), 64)),
2034
- n("span", null, l(e(a).toolsDescription), 1)
2035
- ], 8, so),
2036
- n("div", ro, [
2037
- e(we).has("excel") ? ae((h(), fe(e(r), {
2033
+ }, l(e(o)[`${i}Tool`]), 9, ia)), 64)),
2034
+ n("span", null, l(e(o).toolsDescription), 1)
2035
+ ], 8, sa),
2036
+ n("div", ra, [
2037
+ e(we).has("excel") ? oe((h(), fe(e(r), {
2038
2038
  key: 0,
2039
2039
  datasets: t.bindingDatasets ?? [],
2040
2040
  session: t.bindingSession,
@@ -2045,7 +2045,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2045
2045
  }, null, 8, ["datasets", "session", "identity", "readonly"])), [
2046
2046
  [Te, e(he) === "excel"]
2047
2047
  ]) : B("", !0),
2048
- e(we).has("review") ? ae((h(), fe(e(b), {
2048
+ e(we).has("review") ? oe((h(), fe(e(b), {
2049
2049
  key: 1,
2050
2050
  document: e(w),
2051
2051
  previous: e(d).originalDocument.value,
@@ -2055,29 +2055,29 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2055
2055
  }, null, 8, ["document", "previous", "datasets", "data-schemas", "onLocate"])), [
2056
2056
  [Te, e(he) === "review"]
2057
2057
  ]) : B("", !0),
2058
- e(we).has("rules") ? ae((h(), y("div", uo, [
2059
- e(p).length > 1 ? (h(), y("label", co, [
2060
- P(l(e(a).area), 1),
2061
- ae(n("select", {
2062
- "onUpdate:modelValue": v[9] || (v[9] = (i) => xe(E) ? E.value = i : null)
2058
+ e(we).has("rules") ? oe((h(), y("div", da, [
2059
+ e(p).length > 1 ? (h(), y("label", ua, [
2060
+ P(l(e(o).area), 1),
2061
+ oe(n("select", {
2062
+ "onUpdate:modelValue": v[9] || (v[9] = (i) => Ce(E) ? E.value = i : null)
2063
2063
  }, [
2064
2064
  (h(!0), y(U, null, W(e(p), (i, O) => (h(), y("option", {
2065
2065
  key: O,
2066
2066
  value: O
2067
- }, l(i.component.title || i.component.dataset), 9, mo))), 128))
2067
+ }, l(i.component.title || i.component.dataset), 9, ca))), 128))
2068
2068
  ], 512), [
2069
2069
  [ye, e(E)]
2070
2070
  ])
2071
2071
  ])) : B("", !0),
2072
- e(x) ? (h(), fe(e(o), {
2072
+ e(C) ? (h(), fe(e(a), {
2073
2073
  key: 1,
2074
- list: e(x),
2074
+ list: e(C),
2075
2075
  datasets: t.datasets,
2076
2076
  "dataset-schema": e(V),
2077
2077
  "dataset-schemas": t.dataSchemas,
2078
2078
  readonly: e(le),
2079
- onChange: e(ot)
2080
- }, null, 8, ["list", "datasets", "dataset-schema", "dataset-schemas", "readonly", "onChange"])) : (h(), y("p", vo, l(e(a).rulesNeedList), 1))
2079
+ onChange: e(at)
2080
+ }, null, 8, ["list", "datasets", "dataset-schema", "dataset-schemas", "readonly", "onChange"])) : (h(), y("p", ma, l(e(o).rulesNeedList), 1))
2081
2081
  ], 512)), [
2082
2082
  [Te, e(he) === "rules"]
2083
2083
  ]) : B("", !0)
@@ -2085,7 +2085,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2085
2085
  ], 512)), [
2086
2086
  [Te, e($) === "tools"]
2087
2087
  ]) : B("", !0),
2088
- e($) !== "tools" ? (h(), y("aside", po, [
2088
+ e($) !== "tools" ? (h(), y("aside", va, [
2089
2089
  n("div", {
2090
2090
  ref_key: "inspectorPanel",
2091
2091
  ref: He,
@@ -2095,21 +2095,21 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2095
2095
  "aria-labelledby": `${H}-tab-${e($)}`
2096
2096
  }, [
2097
2097
  e($) === "fields" ? (h(), y(U, { key: 0 }, [
2098
- e(p).length > 1 ? (h(), y("label", go, [
2099
- P(l(e(a).area), 1),
2100
- ae(n("select", {
2101
- "onUpdate:modelValue": v[10] || (v[10] = (i) => xe(E) ? E.value = i : null)
2098
+ e(p).length > 1 ? (h(), y("label", ha, [
2099
+ P(l(e(o).area), 1),
2100
+ oe(n("select", {
2101
+ "onUpdate:modelValue": v[10] || (v[10] = (i) => Ce(E) ? E.value = i : null)
2102
2102
  }, [
2103
2103
  (h(!0), y(U, null, W(e(p), (i, O) => (h(), y("option", {
2104
2104
  key: O,
2105
2105
  value: O
2106
- }, l(i.pageIndex + 1) + " " + l(e(a).page) + " · " + l(i.component.title || i.component.dataset), 9, fo))), 128))
2106
+ }, l(i.pageIndex + 1) + " " + l(e(o).page) + " · " + l(i.component.title || i.component.dataset), 9, ga))), 128))
2107
2107
  ], 512), [
2108
2108
  [ye, e(E)]
2109
2109
  ])
2110
2110
  ])) : B("", !0),
2111
- e(x) ? (h(), y(U, { key: 1 }, [
2112
- n("div", bo, [
2111
+ e(C) ? (h(), y(U, { key: 1 }, [
2112
+ n("div", fa, [
2113
2113
  n("button", {
2114
2114
  ref_key: "directoryTrigger",
2115
2115
  ref: rt,
@@ -2126,65 +2126,65 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2126
2126
  ["esc"]
2127
2127
  ))
2128
2128
  }, [
2129
- n("span", wo, [
2130
- n("strong", null, l(e(R)?.column.header || e(a).noColumns), 1),
2129
+ n("span", ya, [
2130
+ n("strong", null, l(e(R)?.column.header || e(o).noColumns), 1),
2131
2131
  n("small", null, l(e(R)?.column.field || "—"), 1)
2132
2132
  ]),
2133
- n("span", ko, [
2134
- P(l(e(a).columnDirectory) + " ", 1),
2135
- n("b", null, l(e(x).columns.length), 1),
2136
- Q(oe, {
2133
+ n("span", wa, [
2134
+ P(l(e(o).columnDirectory) + " ", 1),
2135
+ n("b", null, l(e(C).columns.length), 1),
2136
+ Q(ae, {
2137
2137
  name: "chevron-down",
2138
2138
  size: 13
2139
2139
  })
2140
2140
  ])
2141
- ], 40, yo),
2142
- n("div", Mo, [
2141
+ ], 40, ba),
2142
+ n("div", ka, [
2143
2143
  n("span", {
2144
- "aria-label": e(a).fieldPosition
2144
+ "aria-label": e(o).fieldPosition
2145
2145
  }, [
2146
2146
  P(l(e(L) >= 0 ? e(L) + 1 : 0), 1),
2147
2147
  v[50] || (v[50] = n("i", null, "/", -1)),
2148
- P(l(e(x).columns.length), 1)
2149
- ], 8, Co),
2148
+ P(l(e(C).columns.length), 1)
2149
+ ], 8, Ma),
2150
2150
  n("button", {
2151
2151
  type: "button",
2152
2152
  class: "mr-designer-icon-button",
2153
- "aria-label": e(a).previousColumn,
2154
- title: e(a).previousColumn,
2153
+ "aria-label": e(o).previousColumn,
2154
+ title: e(o).previousColumn,
2155
2155
  disabled: e(L) <= 0,
2156
2156
  onClick: v[13] || (v[13] = (i) => e(q).stepColumn(-1))
2157
2157
  }, [
2158
- Q(oe, {
2158
+ Q(ae, {
2159
2159
  name: "chevron-left",
2160
2160
  size: 14
2161
2161
  })
2162
- ], 8, xo),
2162
+ ], 8, xa),
2163
2163
  n("button", {
2164
2164
  type: "button",
2165
2165
  class: "mr-designer-icon-button",
2166
- "aria-label": e(a).nextColumn,
2167
- title: e(a).nextColumn,
2168
- disabled: e(L) >= e(x).columns.length - 1,
2166
+ "aria-label": e(o).nextColumn,
2167
+ title: e(o).nextColumn,
2168
+ disabled: e(L) >= e(C).columns.length - 1,
2169
2169
  onClick: v[14] || (v[14] = (i) => e(q).stepColumn(1))
2170
2170
  }, [
2171
- Q(oe, {
2171
+ Q(ae, {
2172
2172
  name: "chevron-right",
2173
2173
  size: 14
2174
2174
  })
2175
- ], 8, _o)
2175
+ ], 8, Ca)
2176
2176
  ])
2177
2177
  ]),
2178
2178
  e(R) ? (h(), y("fieldset", {
2179
2179
  key: 0,
2180
2180
  class: "mr-designer-properties",
2181
2181
  disabled: t.readonly || e(I) || e(f),
2182
- "aria-label": e(a).columnProperties
2182
+ "aria-label": e(o).columnProperties
2183
2183
  }, [
2184
- n("div", $o, [
2185
- n("h3", null, l(e(a).contentGroup), 1),
2184
+ n("div", Sa, [
2185
+ n("h3", null, l(e(o).contentGroup), 1),
2186
2186
  n("label", null, [
2187
- P(l(e(a).header), 1),
2187
+ P(l(e(o).header), 1),
2188
2188
  n("input", {
2189
2189
  value: e(R).column.header,
2190
2190
  onInput: v[15] || (v[15] = (i) => e(d).setColumn(
@@ -2192,10 +2192,10 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2192
2192
  "header",
2193
2193
  ge(i)
2194
2194
  ))
2195
- }, null, 40, Eo)
2195
+ }, null, 40, $a)
2196
2196
  ]),
2197
2197
  n("label", null, [
2198
- P(l(e(a).field), 1),
2198
+ P(l(e(o).field), 1),
2199
2199
  n("input", {
2200
2200
  value: e(R).column.field,
2201
2201
  list: e(V) ? `${H}-fields` : void 0,
@@ -2204,7 +2204,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2204
2204
  "field",
2205
2205
  ge(i)
2206
2206
  ))
2207
- }, null, 40, Io)
2207
+ }, null, 40, Ea)
2208
2208
  ]),
2209
2209
  e(V) ? (h(), y("datalist", {
2210
2210
  key: 0,
@@ -2213,14 +2213,14 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2213
2213
  (h(!0), y(U, null, W(e(V).fields, (i) => (h(), y("option", {
2214
2214
  key: i.field,
2215
2215
  value: i.field
2216
- }, l(i.label) + " · " + l(i.type) + " " + l(i.unit), 9, Do))), 128))
2217
- ], 8, Ao)) : B("", !0)
2216
+ }, l(i.label) + " · " + l(i.type) + " " + l(i.unit), 9, Aa))), 128))
2217
+ ], 8, Ia)) : B("", !0)
2218
2218
  ]),
2219
- n("div", To, [
2220
- n("h3", null, l(e(a).formatGroup), 1),
2221
- n("div", Lo, [
2222
- n("label", Ro, [
2223
- P(l(e(a).width), 1),
2219
+ n("div", Da, [
2220
+ n("h3", null, l(e(o).formatGroup), 1),
2221
+ n("div", Ta, [
2222
+ n("label", La, [
2223
+ P(l(e(o).width), 1),
2224
2224
  n("input", {
2225
2225
  type: "number",
2226
2226
  min: "0.1",
@@ -2231,10 +2231,10 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2231
2231
  "widthMm",
2232
2232
  ge(i)
2233
2233
  ))
2234
- }, null, 40, Go)
2234
+ }, null, 40, Ra)
2235
2235
  ]),
2236
- n("label", Po, [
2237
- P(l(e(a).semantic), 1),
2236
+ n("label", Ga, [
2237
+ P(l(e(o).semantic), 1),
2238
2238
  n("select", {
2239
2239
  value: e(R).column.semanticRole || "text",
2240
2240
  onChange: v[18] || (v[18] = (i) => e(d).setColumn(
@@ -2243,32 +2243,32 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2243
2243
  ge(i)
2244
2244
  ))
2245
2245
  }, [
2246
- n("option", Vo, l(e(a).identifier), 1),
2247
- n("option", Bo, l(e(a).dimension), 1),
2248
- n("option", zo, l(e(a).measure), 1),
2249
- n("option", jo, l(e(a).date), 1),
2250
- n("option", Fo, l(e(a).text), 1)
2251
- ], 40, Ho)
2246
+ n("option", Ha, l(e(o).identifier), 1),
2247
+ n("option", Va, l(e(o).dimension), 1),
2248
+ n("option", Ba, l(e(o).measure), 1),
2249
+ n("option", za, l(e(o).date), 1),
2250
+ n("option", Na, l(e(o).text), 1)
2251
+ ], 40, Pa)
2252
2252
  ])
2253
2253
  ]),
2254
- n("div", No, [
2255
- n("span", null, l(e(a).bodyAlign), 1),
2256
- Q(Ne, {
2257
- "model-value": e(R).column.align ?? e(R).column.style?.align ?? e(x).align ?? "left",
2258
- label: e(a).bodyAlign,
2254
+ n("div", ja, [
2255
+ n("span", null, l(e(o).bodyAlign), 1),
2256
+ Q(Fe, {
2257
+ "model-value": e(R).column.align ?? e(R).column.style?.align ?? e(C).align ?? "left",
2258
+ label: e(o).bodyAlign,
2259
2259
  labels: We.value,
2260
- "auto-label": e(a).autoShort,
2260
+ "auto-label": e(o).autoShort,
2261
2261
  "allow-auto": "",
2262
2262
  "onUpdate:modelValue": v[19] || (v[19] = (i) => e(d).setColumn(e(R).index, "align", i))
2263
2263
  }, null, 8, ["model-value", "label", "labels", "auto-label"])
2264
2264
  ]),
2265
- n("div", Oo, [
2266
- n("span", null, l(e(a).headerAlign), 1),
2267
- Q(Ne, {
2265
+ n("div", Fa, [
2266
+ n("span", null, l(e(o).headerAlign), 1),
2267
+ Q(Fe, {
2268
2268
  "model-value": e(d).headerAlignments.value[e(R).index] || "left",
2269
- label: e(a).headerAlign,
2269
+ label: e(o).headerAlign,
2270
2270
  labels: We.value,
2271
- "auto-label": e(a).autoShort,
2271
+ "auto-label": e(o).autoShort,
2272
2272
  "onUpdate:modelValue": v[20] || (v[20] = (i) => e(d).setColumn(
2273
2273
  e(R).index,
2274
2274
  "headerAlign",
@@ -2277,8 +2277,8 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2277
2277
  }, null, 8, ["model-value", "label", "labels", "auto-label"])
2278
2278
  ])
2279
2279
  ]),
2280
- n("label", Uo, [
2281
- P(l(e(a).editable), 1),
2280
+ n("label", Oa, [
2281
+ P(l(e(o).editable), 1),
2282
2282
  n("input", {
2283
2283
  type: "checkbox",
2284
2284
  role: "switch",
@@ -2288,56 +2288,56 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2288
2288
  "editable",
2289
2289
  Ve(i)
2290
2290
  ))
2291
- }, null, 40, Jo)
2291
+ }, null, 40, Ua)
2292
2292
  ]),
2293
- n("div", Ko, [
2294
- n("span", null, l(e(a).columnOrder), 1),
2293
+ n("div", Ja, [
2294
+ n("span", null, l(e(o).columnOrder), 1),
2295
2295
  n("button", {
2296
2296
  type: "button",
2297
- "aria-label": e(a).moveColumnLeft,
2298
- title: e(a).moveColumnLeft,
2297
+ "aria-label": e(o).moveColumnLeft,
2298
+ title: e(o).moveColumnLeft,
2299
2299
  disabled: e(L) <= 0,
2300
2300
  onClick: v[22] || (v[22] = (i) => e(Ue)(-1))
2301
2301
  }, [
2302
- Q(oe, {
2302
+ Q(ae, {
2303
2303
  name: "chevron-left",
2304
2304
  size: 13
2305
2305
  })
2306
- ], 8, Wo),
2306
+ ], 8, Ka),
2307
2307
  n("button", {
2308
2308
  type: "button",
2309
- "aria-label": e(a).moveColumnRight,
2310
- title: e(a).moveColumnRight,
2311
- disabled: e(L) >= e(x).columns.length - 1,
2309
+ "aria-label": e(o).moveColumnRight,
2310
+ title: e(o).moveColumnRight,
2311
+ disabled: e(L) >= e(C).columns.length - 1,
2312
2312
  onClick: v[23] || (v[23] = (i) => e(Ue)(1))
2313
2313
  }, [
2314
- Q(oe, {
2314
+ Q(ae, {
2315
2315
  name: "chevron-right",
2316
2316
  size: 13
2317
2317
  })
2318
- ], 8, Xo),
2318
+ ], 8, Wa),
2319
2319
  n("label", null, [
2320
- P(l(e(a).columnVisible), 1),
2320
+ P(l(e(o).columnVisible), 1),
2321
2321
  n("input", {
2322
2322
  type: "checkbox",
2323
2323
  checked: e(R).column.hidden !== !0,
2324
- disabled: e(R).column.hidden !== !0 && e(x).columns.filter((i) => !i.hidden).length === 1,
2324
+ disabled: e(R).column.hidden !== !0 && e(C).columns.filter((i) => !i.hidden).length === 1,
2325
2325
  onChange: v[24] || (v[24] = (i) => e(d).setColumn(
2326
2326
  e(R).index,
2327
2327
  "hidden",
2328
2328
  !Ve(i)
2329
2329
  ))
2330
- }, null, 40, qo)
2330
+ }, null, 40, Xa)
2331
2331
  ])
2332
2332
  ])
2333
- ], 8, So)) : B("", !0),
2333
+ ], 8, _a)) : B("", !0),
2334
2334
  e(Ke) ? (h(), y("div", {
2335
2335
  key: 1,
2336
2336
  id: `${H}-directory`,
2337
2337
  ref_key: "directoryPanel",
2338
2338
  ref: dt,
2339
2339
  role: "dialog",
2340
- "aria-label": e(a).columnDirectory,
2340
+ "aria-label": e(o).columnDirectory,
2341
2341
  class: "mr-designer-directory",
2342
2342
  onKeydown: v[34] || (v[34] = Be(
2343
2343
  //@ts-ignore
@@ -2347,73 +2347,73 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2347
2347
  onFocusout: v[35] || (v[35] = //@ts-ignore
2348
2348
  (...i) => e(ee).leave && e(ee).leave(...i))
2349
2349
  }, [
2350
- n("div", Qo, [
2350
+ n("div", Ya, [
2351
2351
  n("strong", null, [
2352
- P(l(e(a).columnDirectory) + " ", 1),
2353
- n("span", null, l(e(x).columns.length), 1)
2352
+ P(l(e(o).columnDirectory) + " ", 1),
2353
+ n("span", null, l(e(C).columns.length), 1)
2354
2354
  ]),
2355
2355
  n("button", {
2356
2356
  type: "button",
2357
2357
  class: "mr-designer-icon-button",
2358
- "aria-label": e(a).closeDirectory,
2358
+ "aria-label": e(o).closeDirectory,
2359
2359
  onClick: v[25] || (v[25] = (i) => e(ee).close(!0))
2360
2360
  }, [
2361
- Q(oe, {
2361
+ Q(ae, {
2362
2362
  name: "close",
2363
2363
  size: 15
2364
2364
  })
2365
- ], 8, Zo)
2365
+ ], 8, Qa)
2366
2366
  ]),
2367
- n("div", ea, [
2368
- Q(oe, {
2367
+ n("div", Za, [
2368
+ Q(ae, {
2369
2369
  name: "search",
2370
2370
  size: 14
2371
2371
  }),
2372
- ae(n("input", {
2372
+ oe(n("input", {
2373
2373
  ref_key: "directorySearch",
2374
2374
  ref: ut,
2375
- "onUpdate:modelValue": v[26] || (v[26] = (i) => xe(T) ? T.value = i : null),
2375
+ "onUpdate:modelValue": v[26] || (v[26] = (i) => Ce(T) ? T.value = i : null),
2376
2376
  type: "search",
2377
- "aria-label": e(a).columnsSearch,
2378
- placeholder: e(a).columnsSearch,
2377
+ "aria-label": e(o).columnsSearch,
2378
+ placeholder: e(o).columnsSearch,
2379
2379
  onKeydown: v[27] || (v[27] = //@ts-ignore
2380
2380
  (...i) => e(ee).searchKeydown && e(ee).searchKeydown(...i))
2381
- }, null, 40, ta), [
2381
+ }, null, 40, eo), [
2382
2382
  [qe, e(T)]
2383
2383
  ]),
2384
2384
  e(T) ? (h(), y("button", {
2385
2385
  key: 0,
2386
2386
  type: "button",
2387
2387
  class: "mr-designer-icon-button",
2388
- "aria-label": e(a).clearSearch,
2389
- title: e(a).clearSearch,
2388
+ "aria-label": e(o).clearSearch,
2389
+ title: e(o).clearSearch,
2390
2390
  onClick: v[28] || (v[28] = (i) => T.value = "")
2391
2391
  }, [
2392
- Q(oe, {
2392
+ Q(ae, {
2393
2393
  name: "close",
2394
2394
  size: 13
2395
2395
  })
2396
- ], 8, na)) : B("", !0)
2396
+ ], 8, to)) : B("", !0)
2397
2397
  ]),
2398
- n("div", oa, [
2398
+ n("div", no, [
2399
2399
  n("button", {
2400
2400
  type: "button",
2401
2401
  disabled: t.readonly || e(I) || e(f) || !e(D).length,
2402
2402
  onClick: v[29] || (v[29] = (i) => e(d).selectVisible(!0))
2403
- }, l(e(a).selectVisible), 9, aa),
2404
- e(N).length ? (h(), y("button", {
2403
+ }, l(e(o).selectVisible), 9, ao),
2404
+ e(F).length ? (h(), y("button", {
2405
2405
  key: 0,
2406
2406
  type: "button",
2407
2407
  onClick: v[30] || (v[30] = //@ts-ignore
2408
2408
  (...i) => e(d).clearSelection && e(d).clearSelection(...i))
2409
- }, l(e(a).clearSelection), 1)) : B("", !0),
2410
- e(N).length ? (h(), y("span", la, l(e(a).columnsSelected) + " " + l(e(N).length), 1)) : (h(), y("span", sa, l(e(D).length) + " / " + l(e(x).columns.length), 1))
2409
+ }, l(e(o).clearSelection), 1)) : B("", !0),
2410
+ e(F).length ? (h(), y("span", oo, l(e(o).columnsSelected) + " " + l(e(F).length), 1)) : (h(), y("span", lo, l(e(D).length) + " / " + l(e(C).columns.length), 1))
2411
2411
  ]),
2412
2412
  n("div", {
2413
2413
  ref_key: "columnList",
2414
2414
  ref: ct,
2415
2415
  class: "mr-designer-column-list",
2416
- "aria-label": e(a).columnDirectory,
2416
+ "aria-label": e(o).columnDirectory,
2417
2417
  role: "group"
2418
2418
  }, [
2419
2419
  (h(!0), y(U, null, W(e(D), ({ column: i, index: O }) => (h(), y("div", {
@@ -2422,11 +2422,11 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2422
2422
  }, [
2423
2423
  n("input", {
2424
2424
  type: "checkbox",
2425
- "aria-label": `${e(a).selectColumn} ${i.header}`,
2426
- checked: e(N).includes(O),
2425
+ "aria-label": `${e(o).selectColumn} ${i.header}`,
2426
+ checked: e(F).includes(O),
2427
2427
  disabled: t.readonly || e(I) || e(f),
2428
2428
  onChange: (ke) => e(d).toggleColumn(O, Ve(ke))
2429
- }, null, 40, ra),
2429
+ }, null, 40, io),
2430
2430
  n("button", {
2431
2431
  type: "button",
2432
2432
  "data-column-index": O,
@@ -2436,104 +2436,104 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2436
2436
  onKeydown: v[31] || (v[31] = //@ts-ignore
2437
2437
  (...ke) => e(ee).navigate && e(ee).navigate(...ke))
2438
2438
  }, [
2439
- n("span", ua, l(O + 1), 1),
2440
- n("span", ca, [
2439
+ n("span", uo, l(O + 1), 1),
2440
+ n("span", co, [
2441
2441
  n("strong", null, l(i.header), 1),
2442
2442
  n("small", null, l(i.field), 1)
2443
2443
  ]),
2444
- e(L) === O ? (h(), fe(oe, {
2444
+ e(L) === O ? (h(), fe(ae, {
2445
2445
  key: 0,
2446
2446
  name: "chevron-right",
2447
2447
  size: 13
2448
2448
  })) : B("", !0)
2449
- ], 40, da)
2449
+ ], 40, ro)
2450
2450
  ], 2))), 128)),
2451
- e(D).length ? B("", !0) : (h(), y("p", ma, [
2452
- Q(oe, {
2451
+ e(D).length ? B("", !0) : (h(), y("p", mo, [
2452
+ Q(ae, {
2453
2453
  name: "search",
2454
2454
  size: 20
2455
2455
  }),
2456
- P(l(e(a).noColumns), 1)
2456
+ P(l(e(o).noColumns), 1)
2457
2457
  ]))
2458
- ], 8, ia),
2459
- e(N).length ? (h(), y("div", va, [
2458
+ ], 8, so),
2459
+ e(F).length ? (h(), y("div", vo, [
2460
2460
  n("label", null, [
2461
- P(l(e(a).batchBody), 1),
2461
+ P(l(e(o).batchBody), 1),
2462
2462
  n("select", {
2463
- "aria-label": e(a).batchBody,
2463
+ "aria-label": e(o).batchBody,
2464
2464
  disabled: t.readonly || e(I) || e(f),
2465
2465
  onChange: v[32] || (v[32] = (i) => Xe(i, "align"))
2466
2466
  }, [
2467
- n("option", ha, l(e(a).chooseAlignment), 1),
2468
- n("option", ga, l(e(a).auto), 1),
2469
- n("option", fa, l(e(a).left), 1),
2470
- n("option", ba, l(e(a).center), 1),
2471
- n("option", ya, l(e(a).right), 1),
2472
- n("option", wa, l(e(a).justify), 1)
2473
- ], 40, pa)
2467
+ n("option", ho, l(e(o).chooseAlignment), 1),
2468
+ n("option", go, l(e(o).auto), 1),
2469
+ n("option", fo, l(e(o).left), 1),
2470
+ n("option", bo, l(e(o).center), 1),
2471
+ n("option", yo, l(e(o).right), 1),
2472
+ n("option", wo, l(e(o).justify), 1)
2473
+ ], 40, po)
2474
2474
  ]),
2475
2475
  n("label", null, [
2476
- P(l(e(a).batchHeader), 1),
2476
+ P(l(e(o).batchHeader), 1),
2477
2477
  n("select", {
2478
- "aria-label": e(a).batchHeader,
2478
+ "aria-label": e(o).batchHeader,
2479
2479
  disabled: t.readonly || e(I) || e(f),
2480
2480
  onChange: v[33] || (v[33] = (i) => Xe(i, "headerAlign"))
2481
2481
  }, [
2482
- n("option", Ma, l(e(a).chooseAlignment), 1),
2483
- n("option", Ca, l(e(a).left), 1),
2484
- n("option", xa, l(e(a).center), 1),
2485
- n("option", _a, l(e(a).right), 1),
2486
- n("option", Sa, l(e(a).justify), 1)
2487
- ], 40, ka)
2482
+ n("option", Mo, l(e(o).chooseAlignment), 1),
2483
+ n("option", xo, l(e(o).left), 1),
2484
+ n("option", Co, l(e(o).center), 1),
2485
+ n("option", _o, l(e(o).right), 1),
2486
+ n("option", So, l(e(o).justify), 1)
2487
+ ], 40, ko)
2488
2488
  ])
2489
2489
  ])) : B("", !0)
2490
- ], 40, Yo)) : B("", !0)
2491
- ], 64)) : (h(), y("p", $a, l(e(a).noColumns), 1))
2490
+ ], 40, qa)) : B("", !0)
2491
+ ], 64)) : (h(), y("p", $o, l(e(o).noColumns), 1))
2492
2492
  ], 64)) : e($) === "component" ? (h(), y(U, { key: 1 }, [
2493
- n("div", Ea, [
2493
+ n("div", Eo, [
2494
2494
  n("select", {
2495
- "aria-label": e(a).insertComponent,
2495
+ "aria-label": e(o).insertComponent,
2496
2496
  disabled: e(le),
2497
2497
  onChange: v[36] || (v[36] = //@ts-ignore
2498
2498
  (...i) => e(J) && e(J)(...i))
2499
2499
  }, [
2500
- n("option", Aa, l(e(a).insertComponent), 1),
2501
- n("option", Da, l(e(a).insertText), 1),
2502
- n("option", Ta, l(e(a).insertList), 1),
2503
- n("option", La, l(e(a).insertImage), 1),
2504
- n("option", Ra, l(e(a).insertRect), 1)
2505
- ], 40, Ia),
2500
+ n("option", Ao, l(e(o).insertComponent), 1),
2501
+ n("option", Do, l(e(o).insertText), 1),
2502
+ n("option", To, l(e(o).insertList), 1),
2503
+ n("option", Lo, l(e(o).insertImage), 1),
2504
+ n("option", Ro, l(e(o).insertRect), 1)
2505
+ ], 40, Io),
2506
2506
  n("button", {
2507
2507
  type: "button",
2508
- title: e(a).duplicateComponent,
2509
- "aria-label": e(a).duplicateComponent,
2508
+ title: e(o).duplicateComponent,
2509
+ "aria-label": e(o).duplicateComponent,
2510
2510
  disabled: e(le) || !e(ie),
2511
2511
  onClick: v[37] || (v[37] = //@ts-ignore
2512
2512
  (...i) => e(ce).duplicate && e(ce).duplicate(...i))
2513
- }, " + ", 8, Ga),
2513
+ }, " + ", 8, Go),
2514
2514
  n("button", {
2515
2515
  type: "button",
2516
- title: e(a).removeComponent,
2517
- "aria-label": e(a).removeComponent,
2516
+ title: e(o).removeComponent,
2517
+ "aria-label": e(o).removeComponent,
2518
2518
  disabled: e(le) || !e(ie),
2519
2519
  onClick: v[38] || (v[38] = //@ts-ignore
2520
2520
  (...i) => e(ce).remove && e(ce).remove(...i))
2521
2521
  }, [
2522
- Q(oe, {
2522
+ Q(ae, {
2523
2523
  name: "close",
2524
2524
  size: 14
2525
2525
  })
2526
- ], 8, Pa)
2526
+ ], 8, Po)
2527
2527
  ]),
2528
- e(w).template.pages.length > 1 ? (h(), y("label", Ha, [
2529
- P(l(e(a).page), 1),
2530
- ae(n("select", {
2531
- "onUpdate:modelValue": v[39] || (v[39] = (i) => xe(se) ? se.value = i : null)
2528
+ e(w).template.pages.length > 1 ? (h(), y("label", Ho, [
2529
+ P(l(e(o).page), 1),
2530
+ oe(n("select", {
2531
+ "onUpdate:modelValue": v[39] || (v[39] = (i) => Ce(se) ? se.value = i : null)
2532
2532
  }, [
2533
2533
  (h(!0), y(U, null, W(e(w).template.pages, (i, O) => (h(), y("option", {
2534
2534
  key: O,
2535
2535
  value: O
2536
- }, l(O + 1), 9, Va))), 128))
2536
+ }, l(O + 1), 9, Vo))), 128))
2537
2537
  ], 512), [
2538
2538
  [
2539
2539
  ye,
@@ -2543,39 +2543,39 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2543
2543
  ]
2544
2544
  ])
2545
2545
  ])) : B("", !0),
2546
- n("label", Ba, [
2547
- P(l(e(a).components), 1),
2546
+ n("label", Bo, [
2547
+ P(l(e(o).components), 1),
2548
2548
  n("select", {
2549
2549
  value: e(pe)?.pageIndex === e(se) ? e(pe).componentIndex : -1,
2550
- onChange: v[40] || (v[40] = (i) => e(j)({
2550
+ onChange: v[40] || (v[40] = (i) => e(N)({
2551
2551
  pageIndex: e(se),
2552
2552
  componentIndex: Number(ge(i))
2553
2553
  }))
2554
2554
  }, [
2555
- n("option", ja, l(e(a).noComponent), 1),
2555
+ n("option", No, l(e(o).noComponent), 1),
2556
2556
  (h(!0), y(U, null, W(e(w).template.pages[e(se)]?.components, (i, O) => (h(), y("option", {
2557
2557
  key: O,
2558
2558
  value: O
2559
- }, l(O + 1) + " · " + l(i.kind === "list" ? i.title || i.dataset : i.text || i.kind), 9, Fa))), 128))
2560
- ], 40, za)
2559
+ }, l(O + 1) + " · " + l(i.kind === "list" ? i.title || i.dataset : i.text || i.kind), 9, jo))), 128))
2560
+ ], 40, zo)
2561
2561
  ]),
2562
2562
  e(ie) ? (h(), y(U, { key: 1 }, [
2563
- n("div", Na, [
2563
+ n("div", Fo, [
2564
2564
  n("button", {
2565
2565
  type: "button",
2566
2566
  disabled: e(le) || e(pe)?.componentIndex === 0,
2567
2567
  onClick: v[41] || (v[41] = (i) => e(ce).reorder(-1))
2568
- }, l(e(a).backward), 9, Oa),
2568
+ }, l(e(o).backward), 9, Oo),
2569
2569
  n("button", {
2570
2570
  type: "button",
2571
2571
  disabled: e(le) || e(pe)?.componentIndex === (e(w).template.pages[e(se)]?.components.length ?? 0) - 1,
2572
2572
  onClick: v[42] || (v[42] = (i) => e(ce).reorder(1))
2573
- }, l(e(a).forward), 9, Ua)
2573
+ }, l(e(o).forward), 9, Uo)
2574
2574
  ]),
2575
2575
  Q(_n, {
2576
2576
  component: e(ie),
2577
2577
  disabled: e(le),
2578
- messages: e(a),
2578
+ messages: e(o),
2579
2579
  onGeometry: e(ce).geometry,
2580
2580
  onPatch: e(ne)
2581
2581
  }, null, 8, ["component", "disabled", "messages", "onGeometry", "onPatch"]),
@@ -2583,50 +2583,50 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2583
2583
  key: 0,
2584
2584
  list: e(ie),
2585
2585
  disabled: e(le),
2586
- messages: e(a),
2587
- onCommand: e(at)
2586
+ messages: e(o),
2587
+ onCommand: e(ot)
2588
2588
  }, null, 8, ["list", "disabled", "messages", "onCommand"])) : B("", !0)
2589
- ], 64)) : (h(), y("p", Ja, l(e(a).noComponent), 1))
2589
+ ], 64)) : (h(), y("p", Jo, l(e(o).noComponent), 1))
2590
2590
  ], 64)) : e($) === "template" ? (h(), y(U, { key: 2 }, [
2591
- n("h3", null, l(e(a).templateDetails), 1),
2592
- n("label", Ka, [
2593
- P(l(e(a).name), 1),
2591
+ n("h3", null, l(e(o).templateDetails), 1),
2592
+ n("label", Ko, [
2593
+ P(l(e(o).name), 1),
2594
2594
  n("input", {
2595
2595
  value: e(w).name,
2596
2596
  disabled: t.readonly || e(I) || e(f),
2597
2597
  onInput: v[43] || (v[43] = (i) => e(d).setName(ge(i)))
2598
- }, null, 40, Wa)
2598
+ }, null, 40, Wo)
2599
2599
  ]),
2600
- n("label", Xa, [
2601
- P(l(e(a).description), 1),
2600
+ n("label", Xo, [
2601
+ P(l(e(o).description), 1),
2602
2602
  n("textarea", {
2603
2603
  rows: "2",
2604
2604
  value: e(w).description,
2605
2605
  disabled: t.readonly || e(I) || e(f),
2606
2606
  onInput: v[44] || (v[44] = (i) => e(d).setDescription(ge(i)))
2607
- }, null, 40, qa)
2607
+ }, null, 40, qo)
2608
2608
  ]),
2609
- n("details", Ya, [
2610
- n("summary", null, l(e(a).technicalDetails), 1),
2611
- n("dl", Qa, [
2612
- n("dt", null, l(e(a).templateIdentity), 1),
2609
+ n("details", Yo, [
2610
+ n("summary", null, l(e(o).technicalDetails), 1),
2611
+ n("dl", Qo, [
2612
+ n("dt", null, l(e(o).templateIdentity), 1),
2613
2613
  n("dd", null, l(e(w).id), 1),
2614
- n("dt", null, l(e(a).templateRevision), 1),
2615
- n("dd", null, l(e(w).revision || e(a).unpublished), 1)
2614
+ n("dt", null, l(e(o).templateRevision), 1),
2615
+ n("dd", null, l(e(w).revision || e(o).unpublished), 1)
2616
2616
  ])
2617
2617
  ])
2618
2618
  ], 64)) : (h(), y(U, { key: 3 }, [
2619
- n("h3", null, l(e(a).advancedTitle), 1),
2620
- n("label", Za, [
2621
- P(l(e(a).json), 1),
2622
- ae(n("textarea", {
2623
- "onUpdate:modelValue": v[45] || (v[45] = (i) => xe(C) ? C.value = i : null),
2619
+ n("h3", null, l(e(o).advancedTitle), 1),
2620
+ n("label", Zo, [
2621
+ P(l(e(o).json), 1),
2622
+ oe(n("textarea", {
2623
+ "onUpdate:modelValue": v[45] || (v[45] = (i) => Ce(x) ? x.value = i : null),
2624
2624
  class: "mr-designer-json",
2625
- "aria-label": e(a).json,
2625
+ "aria-label": e(o).json,
2626
2626
  disabled: t.readonly || e(I),
2627
2627
  spellcheck: "false"
2628
2628
  }, null, 8, el), [
2629
- [qe, e(C)]
2629
+ [qe, e(x)]
2630
2630
  ])
2631
2631
  ]),
2632
2632
  n("button", {
@@ -2635,31 +2635,31 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2635
2635
  disabled: t.readonly || e(I),
2636
2636
  onClick: v[46] || (v[46] = //@ts-ignore
2637
2637
  (...i) => e(d).applyJson && e(d).applyJson(...i))
2638
- }, l(e(a).applyJson), 9, tl)
2638
+ }, l(e(o).applyJson), 9, tl)
2639
2639
  ], 64)),
2640
- e(f) ? (h(), y("p", nl, l(e(a).jsonPending), 1)) : B("", !0)
2641
- ], 10, ho)
2640
+ e(f) ? (h(), y("p", nl, l(e(o).jsonPending), 1)) : B("", !0)
2641
+ ], 10, pa)
2642
2642
  ])) : B("", !0),
2643
2643
  e($) !== "tools" ? (h(), y("div", {
2644
2644
  key: 2,
2645
2645
  class: "mr-designer-preview",
2646
- "aria-label": e(a).previewTitle
2646
+ "aria-label": e(o).previewTitle
2647
2647
  }, [
2648
- e(G) ? (h(), y("div", al, l(e(G)), 1)) : B("", !0),
2648
+ e(G) ? (h(), y("div", ol, l(e(G)), 1)) : B("", !0),
2649
2649
  e(M).ok ? B("", !0) : (h(), y("ul", ll, [
2650
2650
  (h(!0), y(U, null, W(e(M).errors, (i) => (h(), y("li", {
2651
2651
  key: i.path
2652
2652
  }, l(i.path) + ":" + l(i.message), 1))), 128))
2653
2653
  ])),
2654
- e(Ce) === "design" && e(M).ok ? (h(), fe(Ot, {
2654
+ e(xe) === "design" && e(M).ok ? (h(), fe(Ot, {
2655
2655
  key: 2,
2656
2656
  document: e(w),
2657
2657
  selection: e(pe),
2658
2658
  "page-index": e(se),
2659
2659
  datasets: t.datasets,
2660
2660
  disabled: e(le),
2661
- messages: e(a),
2662
- onSelect: e(j),
2661
+ messages: e(o),
2662
+ onSelect: e(N),
2663
2663
  onGeometry: e(ce).geometry,
2664
2664
  onColumn: e(q).activate,
2665
2665
  onWidth: v[47] || (v[47] = (i, O) => e(d).setColumn(i, "widthMm", String(O)))
@@ -2668,15 +2668,15 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2668
2668
  "report-id": "draft",
2669
2669
  fetcher: e(te),
2670
2670
  messages: {
2671
- title: e(a).previewTitle,
2672
- columnDirectory: e(a).previewFieldDirectory
2671
+ title: e(o).previewTitle,
2672
+ columnDirectory: e(o).previewFieldDirectory
2673
2673
  },
2674
2674
  "show-params": !1,
2675
2675
  editable: !1,
2676
2676
  "excel-import": !1,
2677
2677
  height: "100%"
2678
- }, null, 8, ["fetcher", "messages"])) : (h(), y("p", sl, l(e(a).invalid), 1))
2679
- ], 8, ol)) : B("", !0)
2678
+ }, null, 8, ["fetcher", "messages"])) : (h(), y("p", sl, l(e(o).invalid), 1))
2679
+ ], 8, al)) : B("", !0)
2680
2680
  ], 2)
2681
2681
  ], 8, On));
2682
2682
  }
@@ -2892,7 +2892,7 @@ const On = ["aria-label", "aria-busy"], Un = { class: "mr-designer-bar" }, Jn =
2892
2892
  sampleError: "验算未通过",
2893
2893
  new: "新增",
2894
2894
  enabled: "启用"
2895
- }, fl = Me(() => import("./TemplateReviewPanel-Cn32OY4_.js")), bl = Me(() => import("./ExcelBindingWizard-RLJIXKKG.js")), yl = Me(() => import("./RuleEditor-ynnUEK0s.js"));
2895
+ }, fl = Me(() => import("./TemplateReviewPanel-Cn32OY4_.js")), bl = Me(() => import("./ExcelBindingWizard-RLJIXKKG.js")), yl = Me(() => import("./RuleEditor-CtJFzKuY.js"));
2896
2896
  export {
2897
2897
  hl as EXCEL_BINDING_MESSAGES,
2898
2898
  bl as ExcelBindingWizard,