@guodun/antdv 1.4.3 → 1.4.4

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.
Files changed (42) hide show
  1. package/dist/es/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.mjs +1 -1
  2. package/dist/es/components/contract-signing-location/src/ContractSigningTemplatePage.vue.mjs +66 -13
  3. package/dist/es/components/contract-signing-location/src/constants.mjs +27 -17
  4. package/dist/es/components/contract-signing-location/src/location-rules.mjs +2 -2
  5. package/dist/es/components/contract-signing-location/src/template-source.mjs +52 -36
  6. package/dist/es/components/contract-signing-location/style/index.css +1 -1
  7. package/dist/es/components/index.mjs +1 -1
  8. package/dist/es/components/pro-contract-template-designer/index.mjs +1 -1
  9. package/dist/es/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.mjs +4 -4
  10. package/dist/es/components/pro-contract-template-designer/src/DesignerPage.vue.mjs +50 -50
  11. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +50 -50
  12. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +34 -34
  13. package/dist/es/components/pro-contract-template-designer/src/utils/page-decorations.mjs +17 -17
  14. package/dist/es/components/pro-contract-template-designer/src/utils/signing-placement.mjs +14 -14
  15. package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +89 -89
  16. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  17. package/dist/es/index.mjs +25 -25
  18. package/dist/lib/components/contract-signing-location/src/ContractSigningLocationCanvas.vue.cjs +1 -1
  19. package/dist/lib/components/contract-signing-location/src/ContractSigningTemplatePage.vue.cjs +1 -1
  20. package/dist/lib/components/contract-signing-location/src/constants.cjs +1 -1
  21. package/dist/lib/components/contract-signing-location/src/location-rules.cjs +1 -1
  22. package/dist/lib/components/contract-signing-location/src/template-source.cjs +1 -1
  23. package/dist/lib/components/contract-signing-location/style/index.css +1 -1
  24. package/dist/lib/components/index.cjs +1 -1
  25. package/dist/lib/components/pro-contract-template-designer/index.cjs +1 -1
  26. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplatePreviewPage.vue.cjs +1 -1
  27. package/dist/lib/components/pro-contract-template-designer/src/DesignerPage.vue.cjs +2 -2
  28. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  29. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +3 -3
  30. package/dist/lib/components/pro-contract-template-designer/src/utils/page-decorations.cjs +1 -1
  31. package/dist/lib/components/pro-contract-template-designer/src/utils/signing-placement.cjs +1 -1
  32. package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +2 -2
  33. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  34. package/dist/lib/index.cjs +1 -1
  35. package/dist/theme/contract-signing-location.css +1 -1
  36. package/dist/theme/icon.css +1 -1
  37. package/dist/theme/index.css +1 -1
  38. package/dist/types/components/contract-signing-location/src/ContractSigningTemplatePage.vue.d.ts +3 -1
  39. package/dist/types/components/contract-signing-location/src/constants.d.ts +18 -0
  40. package/dist/types/components/contract-signing-location/src/coordinates.d.ts +6 -0
  41. package/dist/types/components/contract-signing-location/src/template-source.d.ts +17 -0
  42. package/package.json +3 -1
@@ -1,14 +1,14 @@
1
- import { SIGNING_PLACEMENT_MIME as e, canMutateSigningPlacements as t, getSigningPlacementDefaultSize as n, parseSigningPlacementDragPayload as r } from "./utils/signing-placement.mjs";
2
- import { CONTRACT_TEXT_STYLE_PRESETS as i } from "./constants.mjs";
3
- import { CONTRACT_PAGE_BASE_PADDING as a, getPageDecorationSafePadding as o, hasEnabledPageFooter as s, hasEnabledPageHeader as c, normalizePageDecorations as l } from "./utils/page-decorations.mjs";
4
- import { DEFAULT_FIELD_STYLE as ee, resolvePageSize as te, splitPageContentByMeasurements as ne } from "./composables/use-template-designer.mjs";
5
- import { buildTemplateVariableAttrs as re, insertTemplateVariableNode as ie } from "./extensions/template-variable.mjs";
1
+ import { CONTRACT_TEXT_STYLE_PRESETS as e } from "./constants.mjs";
2
+ import { CONTRACT_PAGE_BASE_PADDING as t, getPageDecorationSafePadding as n, hasEnabledPageFooter as r, hasEnabledPageHeader as i, normalizePageDecorations as a } from "./utils/page-decorations.mjs";
3
+ import o from "./ContractTemplatePageDecorations.mjs";
4
+ import { SIGNING_PLACEMENT_MIME as s, canMutateSigningPlacements as c, getSigningPlacementDefaultSize as ee, parseSigningPlacementDragPayload as te } from "./utils/signing-placement.mjs";
5
+ import { DEFAULT_FIELD_STYLE as ne, resolvePageSize as re, splitPageContentByMeasurements as ie } from "./composables/use-template-designer.mjs";
6
+ import { buildTemplateVariableAttrs as l, insertTemplateVariableNode as ae } from "./extensions/template-variable.mjs";
6
7
  import { normalizeContractImageDimension as u } from "./utils/content-image.mjs";
7
- import { createEditorExtensions as ae, runContractTemplateEditorCommand as d } from "./extensions/editor-extensions.mjs";
8
+ import { createEditorExtensions as oe, runContractTemplateEditorCommand as d } from "./extensions/editor-extensions.mjs";
8
9
  import { resolveEditorContextMenuKind as f } from "./utils/context-variable.mjs";
9
- import { applyContractTemplateBlockStyle as oe } from "./utils/block-style.mjs";
10
- import se from "./SigningPlacementLayer.mjs";
11
- import ce from "./ContractTemplatePageDecorations.mjs";
10
+ import { applyContractTemplateBlockStyle as se } from "./utils/block-style.mjs";
11
+ import ce from "./SigningPlacementLayer.mjs";
12
12
  import { computed as p, createBlock as le, createCommentVNode as ue, createElementBlock as de, createElementVNode as m, createVNode as h, defineComponent as g, nextTick as fe, normalizeClass as pe, normalizeStyle as _, onBeforeUnmount as me, openBlock as v, ref as he, toDisplayString as y, unref as b, watch as x, withModifiers as ge } from "vue";
13
13
  import { EditorContent as _e, useEditor as ve } from "@tiptap/vue-3";
14
14
  import { generateHTML as ye } from "@tiptap/core";
@@ -60,7 +60,7 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
60
60
  "editor-context-menu"
61
61
  ],
62
62
  setup(g, { expose: T, emit: Te }) {
63
- let E = g, D = Te, O = p(() => E.readonly || E.disabled), k = he(), A = ae("请输入合同正文,或从 WPS / Word 粘贴合同内容", {
63
+ let E = g, D = Te, O = p(() => E.readonly || E.disabled), k = he(), A = oe("请输入合同正文,或从 WPS / Word 粘贴合同内容", {
64
64
  processImageFile: E.processImageFile,
65
65
  getZoom: () => Math.max(.1, E.zoom || 1)
66
66
  }), j = ve({
@@ -397,18 +397,18 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
397
397
  !j.value || e === j.value.getHTML() || (j.value.commands.setContent(e || "<p></p>", { emitUpdate: !1 }), U());
398
398
  });
399
399
  let He = p(() => {
400
- let e = l(E.pageDecorations), t = E.pageIndex + 1, n = c(e, t) ? o(e.header) : a.top, r = s(e, t) ? o(e.footer) : a.bottom;
400
+ let e = a(E.pageDecorations), o = E.pageIndex + 1, s = i(e, o) ? n(e.header) : t.top, c = r(e, o) ? n(e.footer) : t.bottom;
401
401
  return {
402
402
  width: `${E.pageSize.width}px`,
403
403
  height: `${E.pageSize.height}px`,
404
- paddingTop: `${n}px`,
405
- paddingBottom: `${r}px`,
406
- "--gd-contract-page-content-height": `${Math.max(120, E.pageSize.height - n - r)}px`
404
+ paddingTop: `${s}px`,
405
+ paddingBottom: `${c}px`,
406
+ "--gd-contract-page-content-height": `${Math.max(120, E.pageSize.height - s - c)}px`
407
407
  };
408
408
  }), W = p(() => Math.max(.1, E.zoom || 1)), Ue = p(() => ({
409
409
  width: `${Math.ceil((E.pageSize.width + 10) * W.value)}px`,
410
410
  height: `${Math.ceil((E.pageSize.height + 40) * W.value)}px`
411
- })), We = p(() => ({ "--gd-contract-page-zoom": String(W.value) })), Ge = p(() => te(E.pageSize));
411
+ })), We = p(() => ({ "--gd-contract-page-zoom": String(W.value) })), Ge = p(() => re(E.pageSize));
412
412
  function G(e, t) {
413
413
  let n = k.value?.getBoundingClientRect();
414
414
  return n ? {
@@ -420,40 +420,40 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
420
420
  };
421
421
  }
422
422
  function Ke(e) {
423
- let t = k.value?.getBoundingClientRect(), r = k.value?.closest(".gd-contract-template-designer__canvas")?.getBoundingClientRect(), i = n(e);
424
- if (!t || !r) return {
425
- x: Math.max(0, (E.pageSize.width - i.width) / 2),
426
- y: Math.max(0, (E.pageSize.height - i.height) / 2)
423
+ let t = k.value?.getBoundingClientRect(), n = k.value?.closest(".gd-contract-template-designer__canvas")?.getBoundingClientRect(), r = ee(e);
424
+ if (!t || !n) return {
425
+ x: Math.max(0, (E.pageSize.width - r.width) / 2),
426
+ y: Math.max(0, (E.pageSize.height - r.height) / 2)
427
427
  };
428
- let a = Math.max(t.left, r.left), o = Math.max(t.top, r.top), s = Math.min(t.right, r.right), c = Math.min(t.bottom, r.bottom), l = G(s > a ? (a + s) / 2 : (t.left + t.right) / 2, c > o ? (o + c) / 2 : (t.top + t.bottom) / 2);
428
+ let i = Math.max(t.left, n.left), a = Math.max(t.top, n.top), o = Math.min(t.right, n.right), s = Math.min(t.bottom, n.bottom), c = G(o > i ? (i + o) / 2 : (t.left + t.right) / 2, s > a ? (a + s) / 2 : (t.top + t.bottom) / 2);
429
429
  return {
430
- x: l.x - i.width / 2,
431
- y: l.y - i.height / 2
430
+ x: c.x - r.width / 2,
431
+ y: c.y - r.height / 2
432
432
  };
433
433
  }
434
- function qe(n) {
435
- if (!t(E.readonly, E.disabled)) {
436
- n.preventDefault(), n.stopPropagation();
434
+ function qe(e) {
435
+ if (!c(E.readonly, E.disabled)) {
436
+ e.preventDefault(), e.stopPropagation();
437
437
  return;
438
438
  }
439
- let i = r(n.dataTransfer?.getData(e));
440
- if (i) {
441
- n.preventDefault(), n.stopPropagation();
442
- let e = G(n.clientX, n.clientY);
443
- D("signing-placement-drop", E.page.id, i, e.x, e.y);
439
+ let t = te(e.dataTransfer?.getData(s));
440
+ if (t) {
441
+ e.preventDefault(), e.stopPropagation();
442
+ let n = G(e.clientX, e.clientY);
443
+ D("signing-placement-drop", E.page.id, t, n.x, n.y);
444
444
  return;
445
445
  }
446
- let a = n.dataTransfer?.getData("application/x-gd-contract-variable");
447
- if (a) {
448
- n.preventDefault(), n.stopPropagation(), D("variable-drop", E.page.id, a, n.clientX, n.clientY);
446
+ let n = e.dataTransfer?.getData("application/x-gd-contract-variable");
447
+ if (n) {
448
+ e.preventDefault(), e.stopPropagation(), D("variable-drop", E.page.id, n, e.clientX, e.clientY);
449
449
  return;
450
450
  }
451
- let o = n.dataTransfer?.getData(w);
452
- o && o !== E.page.id && (n.preventDefault(), n.stopPropagation(), D("variable-move-blocked", E.page.id));
451
+ let r = e.dataTransfer?.getData(w);
452
+ r && r !== E.page.id && (e.preventDefault(), e.stopPropagation(), D("variable-move-blocked", E.page.id));
453
453
  }
454
454
  function Je(e, t) {
455
455
  let n = j.value;
456
- return n ? (ie(n, e, t ? n.view.posAtCoords(t)?.pos : void 0), $(), K()) : void 0;
456
+ return n ? (ae(n, e, t ? n.view.posAtCoords(t)?.pos : void 0), $(), K()) : void 0;
457
457
  }
458
458
  function Ye(e, t) {
459
459
  let n = j.value;
@@ -504,13 +504,13 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
504
504
  }
505
505
  function et() {
506
506
  if (E.pageDecorations) {
507
- let e = l(E.pageDecorations), t = E.pageIndex + 1, n = c(e, t) ? o(e.header) : a.top, r = s(e, t) ? o(e.footer) : a.bottom;
508
- return Math.max(120, E.pageSize.height - n - r);
507
+ let e = a(E.pageDecorations), o = E.pageIndex + 1, s = i(e, o) ? n(e.header) : t.top, c = r(e, o) ? n(e.footer) : t.bottom;
508
+ return Math.max(120, E.pageSize.height - s - c);
509
509
  }
510
510
  let e = k.value;
511
511
  if (!e) return E.pageSize.height - 108;
512
- let t = window.getComputedStyle(e), n = Number.parseFloat(t.paddingTop) || 0, r = Number.parseFloat(t.paddingBottom) || 0;
513
- return Math.max(120, E.pageSize.height - n - r);
512
+ let o = window.getComputedStyle(e), s = Number.parseFloat(o.paddingTop) || 0, c = Number.parseFloat(o.paddingBottom) || 0;
513
+ return Math.max(120, E.pageSize.height - s - c);
514
514
  }
515
515
  function tt() {
516
516
  let e = k.value?.querySelector(".gd-contract-template-designer__editor-prose");
@@ -525,7 +525,7 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
525
525
  });
526
526
  }
527
527
  function J() {
528
- return j.value ? ne(j.value.getJSON().content, tt(), et()) : void 0;
528
+ return j.value ? ie(j.value.getJSON().content, tt(), et()) : void 0;
529
529
  }
530
530
  function nt() {
531
531
  return !!J();
@@ -555,7 +555,7 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
555
555
  }
556
556
  function X(e, t = e.key) {
557
557
  if (!j.value) return;
558
- let n = re(e), r = !1;
558
+ let n = l(e), r = !1;
559
559
  return j.value.commands.command(({ tr: e, state: i, dispatch: a }) => (Y(i.doc, t).forEach(({ node: t, pos: i }) => {
560
560
  e.setNodeMarkup(i, void 0, {
561
561
  ...t.attrs,
@@ -600,11 +600,11 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
600
600
  function $() {
601
601
  Z(), Q(E.selectedVariableKey)?.classList.add("is-active");
602
602
  }
603
- function ct(e) {
604
- let t = i.find((t) => t.key === e), n = j.value;
605
- if (!t || !n) return;
606
- let r = n.chain().focus().clearNodes();
607
- t.headingLevel ? r.setHeading({ level: t.headingLevel }) : r.setParagraph(), r.unsetAllMarks().unsetTextAlign().unsetFontSize().unsetFontFamily().unsetColor().setTextAlign(t.textAlign).setFontSize(`${t.fontSize}px`).setFontFamily(t.fontFamily || "Noto Serif SC, Source Han Serif SC, Songti SC, STSong, SimSun, serif").setColor(ee.color || "#1f2937"), t.bold ? r.setBold() : r.unsetBold(), t.italic ? r.setItalic() : r.unsetItalic(), t.underline ? r.setUnderline() : r.unsetUnderline(), r.run();
603
+ function ct(t) {
604
+ let n = e.find((e) => e.key === t), r = j.value;
605
+ if (!n || !r) return;
606
+ let i = r.chain().focus().clearNodes();
607
+ n.headingLevel ? i.setHeading({ level: n.headingLevel }) : i.setParagraph(), i.unsetAllMarks().unsetTextAlign().unsetFontSize().unsetFontFamily().unsetColor().setTextAlign(n.textAlign).setFontSize(`${n.fontSize}px`).setFontFamily(n.fontFamily || "Noto Serif SC, Source Han Serif SC, Songti SC, STSong, SimSun, serif").setColor(ne.color || "#1f2937"), n.bold ? i.setBold() : i.unsetBold(), n.italic ? i.setItalic() : i.unsetItalic(), n.underline ? i.setUnderline() : i.unsetUnderline(), i.run();
608
608
  }
609
609
  x([() => E.selectedVariableKey, () => E.variables], () => {
610
610
  fe($);
@@ -613,7 +613,7 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
613
613
  flush: "post"
614
614
  });
615
615
  function lt(e) {
616
- e.type === "apply-block-style" ? j.value && oe(j.value, e.format) : e.type === "apply-text-style-preset" ? ct(e.preset) : d(j.value, e), U();
616
+ e.type === "apply-block-style" ? j.value && se(j.value, e.format) : e.type === "apply-text-style-preset" ? ct(e.preset) : d(j.value, e), U();
617
617
  }
618
618
  function ut() {
619
619
  j.value?.commands.focus();
@@ -679,7 +679,7 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
679
679
  onDrop: qe,
680
680
  onClick: t[4] ||= (e) => D("editor-focus", g.page.id)
681
681
  }, [
682
- h(ce, {
682
+ h(o, {
683
683
  decorations: g.pageDecorations,
684
684
  "page-number": g.pageIndex + 1,
685
685
  "total-pages": g.totalPages,
@@ -695,7 +695,7 @@ var Ce = { class: "gd-contract-template-designer__page-title" }, w = "applicatio
695
695
  class: "gd-contract-template-page__content",
696
696
  editor: b(j)
697
697
  }, null, 8, ["editor"])) : ue("", !0),
698
- h(se, {
698
+ h(ce, {
699
699
  "page-size": g.pageSize,
700
700
  placements: g.signingPlacements,
701
701
  "selected-id": g.selectedSigningPlacementId,
@@ -1,7 +1,7 @@
1
- import { isContractTemplateFieldType as e } from "./types.mjs";
2
- import { ContractTemplateLocationRuleBuildError as t, SIGNING_PLACEMENT_TYPE_LABELS as n, buildContractLocationRules as r, buildSigningPlacementLocationRules as i, createSigningPlacement as a, resolveSigningPlacementToolItems as o, scaleSigningPlacementToPage as ee } from "./utils/signing-placement.mjs";
3
- import { CONTRACT_BLOCK_STYLES as te, DEFAULT_CONTRACT_FONT_FAMILY as ne, DEFAULT_FONT_SIZE_PRESETS as re, DEFAULT_TEXT_ALIGN_OPTIONS as ie, resolveFontFamilyOptions as ae } from "./constants.mjs";
4
- import { collectPageDecorationVariableKeys as oe, normalizePageDecorations as se, resolvePageDecorationPreset as ce, resolvePageDecorationValidationPath as le, rewritePageDecorationVariableTokens as ue } from "./utils/page-decorations.mjs";
1
+ import { CONTRACT_BLOCK_STYLES as e, DEFAULT_CONTRACT_FONT_FAMILY as t, DEFAULT_FONT_SIZE_PRESETS as n, DEFAULT_TEXT_ALIGN_OPTIONS as r, resolveFontFamilyOptions as i } from "./constants.mjs";
2
+ import { collectPageDecorationVariableKeys as a, normalizePageDecorations as o, resolvePageDecorationPreset as ee, resolvePageDecorationValidationPath as te, rewritePageDecorationVariableTokens as ne } from "./utils/page-decorations.mjs";
3
+ import { isContractTemplateFieldType as re } from "./types.mjs";
4
+ import { ContractTemplateLocationRuleBuildError as ie, SIGNING_PLACEMENT_TYPE_LABELS as ae, buildContractLocationRules as oe, buildSigningPlacementLocationRules as se, createSigningPlacement as ce, resolveSigningPlacementToolItems as le, scaleSigningPlacementToPage as ue } from "./utils/signing-placement.mjs";
5
5
  import { DEFAULT_FIELD_STYLE as de, DEFAULT_FIELD_TYPES as s, DEFAULT_PAGE_SIZE as fe, buildTemplatePreviewPages as pe, cloneTemplateValue as c, collectTemplateLocationRuleExportErrors as me, collectTemplateValueVariableKeys as he, constrainTemplatePageSizes as ge, createBlankPage as _e, createBlankTemplate as ve, createDefaultPage as ye, createTemplateVariable as be, exportTemplateValue as xe, getFieldOption as Se, getPageSizeKey as Ce, normalizeContractTemplateMaxPages as we, normalizePageSizeOptions as Te, normalizeTemplateValue as Ee, resolvePageSize as De, syncTemplateVariablesWithPages as Oe, validateContractTemplateVariableKey as ke, validateTemplateValue as Ae } from "./composables/use-template-designer.mjs";
6
6
  import { isSafeContractImageUrl as je } from "./utils/image-url.mjs";
7
7
  import { useFitWidthZoom as Me } from "./composables/use-fit-width-zoom.mjs";
@@ -144,8 +144,8 @@ var Bt = {
144
144
  let t = E.value.pages.findIndex((t) => t.id === e.pageId);
145
145
  return {
146
146
  placement: e,
147
- label: n[e.type],
148
- detail: `${n[e.type]} · 第 ${Math.max(0, t) + 1} 页`
147
+ label: ae[e.type],
148
+ detail: `${ae[e.type]} · 第 ${Math.max(0, t) + 1} 页`
149
149
  };
150
150
  })), Cr = f(() => {
151
151
  let e = xr.value?.pageId;
@@ -159,8 +159,8 @@ var Bt = {
159
159
  "internal-review": "内部审阅",
160
160
  draft: "草稿",
161
161
  custom: "自定义"
162
- })[ce(E.value.pageDecorations)]), kr = f(() => {
163
- let e = se(E.value.pageDecorations);
162
+ })[ee(E.value.pageDecorations)]), kr = f(() => {
163
+ let e = o(E.value.pageDecorations);
164
164
  return {
165
165
  header: e.header.enabled,
166
166
  footer: e.footer.enabled,
@@ -181,10 +181,10 @@ var Bt = {
181
181
  "is-success": U.value.type === "saved" || U.value.type === "restored",
182
182
  "is-warning": U.value.type === "too-large",
183
183
  "is-error": U.value.type === "unavailable" || U.value.type === "read-failed" || U.value.type === "write-failed"
184
- })), Nr = f(() => `${Math.round(N.value * 100)}%`), Pr = f(() => ae(l.fontFamilies, l.fontFamilyMode)), Fr = f(() => Pr.value.map((e) => ({
184
+ })), Nr = f(() => `${Math.round(N.value * 100)}%`), Pr = f(() => i(l.fontFamilies, l.fontFamilyMode)), Fr = f(() => Pr.value.map((e) => ({
185
185
  label: e.label,
186
186
  value: e.value
187
- }))), Ir = ie, Lr = [...te.map((e) => ({
187
+ }))), Ir = r, Lr = [...e.map((e) => ({
188
188
  label: e.label,
189
189
  value: e.format
190
190
  }))], Rr = [{
@@ -209,12 +209,12 @@ var Bt = {
209
209
  ], Br = f(() => Te(l.pageSizeOptions)), Vr = f(() => Br.value.map((e) => ({
210
210
  label: `${e.label} · ${e.width} × ${e.height}`,
211
211
  value: Ce(e)
212
- }))), Hr = f(() => Ce(wr.value)), Ur = f(() => o({ showSigningPlacementTools: l.showSigningPlacementTools })), Wr = f(() => l.variableTypes.filter((t) => e(t?.type))), Gr = f(() => Wr.value.map((e) => ({
212
+ }))), Hr = f(() => Ce(wr.value)), Ur = f(() => le({ showSigningPlacementTools: l.showSigningPlacementTools })), Wr = f(() => l.variableTypes.filter((e) => re(e?.type))), Gr = f(() => Wr.value.map((e) => ({
213
213
  ...e,
214
214
  icon: ut(e.type)
215
215
  }))), Kr = f(() => we(l.maxPages)), qr = f(() => E.value.pages.length >= Kr.value), Jr = f(() => {
216
216
  let e = he(E.value);
217
- return Array.from(oe(E.value.pageDecorations)).filter((t) => !e.has(t));
217
+ return Array.from(a(E.value.pageDecorations)).filter((t) => !e.has(t));
218
218
  }), { scheduleAutoPaginate: J } = Xe({
219
219
  templateValue: E,
220
220
  readonlyState: W,
@@ -272,17 +272,17 @@ var Bt = {
272
272
  let e = tr.value.trim().toLowerCase(), t = E.value.variables;
273
273
  return e ? t.filter((t) => t.label.toLowerCase().includes(e) || t.key.toLowerCase().includes(e)) : t;
274
274
  }), di = f(() => Math.max(Xt, wr.value.width - Jt)), fi = f(() => Math.max(Zt, wr.value.height - Yt)), pi = f(() => zn.value[k.value] ?? xi()), mi = f(() => pi.value.hasMixedBlockFormats ? void 0 : pi.value.currentHeadingLevel ?? "paragraph"), hi = f(() => pi.value.fontFamily || "Noto Serif SC, Source Han Serif SC, Songti SC, STSong, SimSun, serif"), gi = f(() => pi.value.fontSize ?? de.fontSize ?? 14), _i = f(() => pi.value.textColor || de.color || "#1f2937"), vi = f(() => G.value?.style?.fontFamily || de.fontFamily || "Noto Serif SC, Source Han Serif SC, Songti SC, STSong, SimSun, serif"), yi = f(() => {
275
- let e = re.map((e) => ({
275
+ let e = n.map((e) => ({
276
276
  label: `${e}px`,
277
277
  value: e
278
- })), t = Ti(gi.value), n = Ti(Bn.value), r = /* @__PURE__ */ new Map();
279
- return n && !re.includes(n) && r.set(n, {
280
- label: `使用 ${n}px`,
281
- value: n
282
- }), t && !re.includes(t) && r.set(t, {
283
- label: n === t ? `使用 ${t}px` : `${t}px`,
278
+ })), t = Ti(gi.value), r = Ti(Bn.value), i = /* @__PURE__ */ new Map();
279
+ return r && !n.includes(r) && i.set(r, {
280
+ label: `使用 ${r}px`,
281
+ value: r
282
+ }), t && !n.includes(t) && i.set(t, {
283
+ label: r === t ? `使用 ${t}px` : `${t}px`,
284
284
  value: t
285
- }), [...Array.from(r.values()), ...e];
285
+ }), [...Array.from(i.values()), ...e];
286
286
  });
287
287
  b(() => l.modelValue, (e) => {
288
288
  if (!e || x.value) return;
@@ -375,7 +375,7 @@ var Bt = {
375
375
  isOrderedList: !1,
376
376
  isTableActive: !1,
377
377
  textAlign: "left",
378
- fontFamily: ne,
378
+ fontFamily: t,
379
379
  fontSize: de.fontSize ?? 14,
380
380
  textColor: de.color ?? "#1f2937",
381
381
  selectionText: "",
@@ -537,7 +537,7 @@ var Bt = {
537
537
  if (W.value || !q.value) return;
538
538
  let t = Br.value.find((t) => Ce(t) === e);
539
539
  if (!t) return;
540
- let n = q.value.id, r = Vi(q.value), i = De(t, E.value.pageSize), a = K.value.map((e) => e.pageId === n ? ee(e, r, i) : e);
540
+ let n = q.value.id, r = Vi(q.value), i = De(t, E.value.pageSize), a = K.value.map((e) => e.pageId === n ? ue(e, r, i) : e);
541
541
  Gi(a.filter((e) => e.pageId === n).map((e) => e.id)), X({
542
542
  ...E.value,
543
543
  pages: E.value.pages.map((e) => e.id === n ? {
@@ -580,7 +580,7 @@ var Bt = {
580
580
  r.title = `${e.title || `第 ${t + 1} 页`}副本`;
581
581
  let i = [...E.value.pages];
582
582
  i.splice(t + 1, 0, r);
583
- let o = Hi(e.id).map((e) => a(e.type, r.id, Vi(r), {
583
+ let a = Hi(e.id).map((e) => ce(e.type, r.id, Vi(r), {
584
584
  ...ct(e),
585
585
  id: void 0,
586
586
  pageId: r.id
@@ -588,8 +588,8 @@ var Bt = {
588
588
  X({
589
589
  ...E.value,
590
590
  pages: i,
591
- signingPlacements: [...K.value, ...o]
592
- }), k.value = r.id, o.forEach((e) => h("signing-placement-add", ct(e))), o[0] && Q(o[0].id);
591
+ signingPlacements: [...K.value, ...a]
592
+ }), k.value = r.id, a.forEach((e) => h("signing-placement-add", ct(e))), a[0] && Q(a[0].id);
593
593
  }
594
594
  function Qi(e) {
595
595
  if (W.value || E.value.pages.length <= 1) return;
@@ -762,7 +762,7 @@ var Bt = {
762
762
  ...E.value,
763
763
  pages: r,
764
764
  variables: E.value.variables.map((t) => t.id === e.id ? e : t),
765
- ...i !== e.key && E.value.pageDecorations ? { pageDecorations: ue(E.value.pageDecorations, i, e.key) } : {}
765
+ ...i !== e.key && E.value.pageDecorations ? { pageDecorations: ne(E.value.pageDecorations, i, e.key) } : {}
766
766
  }), D.value = e.key, J(a || k.value);
767
767
  }
768
768
  function ya(e) {
@@ -781,7 +781,7 @@ var Bt = {
781
781
  function xa(e) {
782
782
  W.value || (X({
783
783
  ...E.value,
784
- pageDecorations: se(e)
784
+ pageDecorations: o(e)
785
785
  }), J(E.value.pages[0]?.id));
786
786
  }
787
787
  function Sa(e) {
@@ -829,7 +829,7 @@ var Bt = {
829
829
  ...E.value,
830
830
  pages: t,
831
831
  variables: E.value.variables.filter((t) => t.id !== e.id),
832
- ...E.value.pageDecorations ? { pageDecorations: ue(E.value.pageDecorations, e.key) } : {}
832
+ ...E.value.pageDecorations ? { pageDecorations: ne(E.value.pageDecorations, e.key) } : {}
833
833
  }), D.value = "", O.value = "";
834
834
  }
835
835
  function ja(e) {
@@ -854,17 +854,17 @@ var Bt = {
854
854
  function Pa(e) {
855
855
  if (!W.value) return na(ta({ type: e }));
856
856
  }
857
- function Fa(t) {
858
- if (W.value || !e(t)) return;
859
- let n = R.value, r = Wr.value.find((e) => e.type === t);
860
- if (!n || !r) return;
861
- let i = Fe(n.leadingText) || r.label, a = Ie(n.selectionWidth, Xt, di.value), o = Ia();
857
+ function Fa(e) {
858
+ if (W.value || !re(e)) return;
859
+ let t = R.value, n = Wr.value.find((t) => t.type === e);
860
+ if (!t || !n) return;
861
+ let r = Fe(t.leadingText) || n.label, i = Ie(t.selectionWidth, Xt, di.value), a = Ia();
862
862
  na(ta({
863
- type: t,
864
- label: i,
865
- ...a ? { width: a } : {},
866
- ...o ? { style: o } : {}
867
- }), n.pageId), H.value = n.hasSelection ? `已将选中内容替换为${r.label}控件` : `已插入${r.label}控件`, $();
863
+ type: e,
864
+ label: r,
865
+ ...i ? { width: i } : {},
866
+ ...a ? { style: a } : {}
867
+ }), t.pageId), H.value = t.hasSelection ? `已将选中内容替换为${n.label}控件` : `已插入${n.label}控件`, $();
868
868
  }
869
869
  function Ia() {
870
870
  let e = pi.value, t = {};
@@ -875,8 +875,8 @@ var Bt = {
875
875
  let t = R.value;
876
876
  t && (na(e, t.pageId), H.value = `已绑定到${e.label},沿用原控件尺寸`, $());
877
877
  }
878
- function Ra(t) {
879
- return Se(t.type && e(t.type) ? t.type : "text", Wr.value).label;
878
+ function Ra(e) {
879
+ return Se(e.type && re(e.type) ? e.type : "text", Wr.value).label;
880
880
  }
881
881
  function za() {
882
882
  E.value.variables.length && (er.value = !0, g(() => {
@@ -1128,7 +1128,7 @@ var Bt = {
1128
1128
  }));
1129
1129
  return;
1130
1130
  }
1131
- let t = le(e);
1131
+ let t = te(e);
1132
1132
  if (t) {
1133
1133
  F.value = !0, g(() => sn.value?.focusField(t));
1134
1134
  return;
@@ -1156,7 +1156,7 @@ var Bt = {
1156
1156
  E.value.pages.some((t) => t.id === e.id) && ho(e.id);
1157
1157
  }
1158
1158
  function jo(e) {
1159
- return le(e) ? "页面装饰" : e.type === "signing-placement" ? "签署位置" : e.type === "variable" ? "变量" : "字段";
1159
+ return te(e) ? "页面装饰" : e.type === "signing-placement" ? "签署位置" : e.type === "variable" ? "变量" : "字段";
1160
1160
  }
1161
1161
  function Mo() {
1162
1162
  return Oi(), xe(Ei());
@@ -1166,20 +1166,20 @@ var Bt = {
1166
1166
  return et(x.value ? S.value : at(S.value, C.value, e));
1167
1167
  }
1168
1168
  function Po(e) {
1169
- let n = Ei();
1169
+ let t = Ei();
1170
1170
  try {
1171
- let r = me(n, T.value);
1172
- if (r.length) throw new t(r);
1173
- return e(n);
1171
+ let n = me(t, T.value);
1172
+ if (n.length) throw new ie(n);
1173
+ return e(t);
1174
1174
  } catch (e) {
1175
- throw e instanceof t && (j.value = [...e.errors], A.value = !0, h("validate", [...e.errors])), e;
1175
+ throw e instanceof ie && (j.value = [...e.errors], A.value = !0, h("validate", [...e.errors])), e;
1176
1176
  }
1177
1177
  }
1178
1178
  function Fo(e) {
1179
- return Po((t) => i(t, e));
1179
+ return Po((t) => se(t, e));
1180
1180
  }
1181
1181
  function Io(e) {
1182
- return Po((t) => r(t, e));
1182
+ return Po((t) => oe(t, e));
1183
1183
  }
1184
1184
  function Lo(e) {
1185
1185
  let t = /* @__PURE__ */ new Set();
@@ -1922,7 +1922,7 @@ var Bt = {
1922
1922
  "max-font-size": $t,
1923
1923
  "default-multiline-rows": y(3),
1924
1924
  "resolve-signing-placement-type-icon": y(dt),
1925
- "signing-placement-type-labels": y(n),
1925
+ "signing-placement-type-labels": y(ae),
1926
1926
  onToggle: t[15] ||= (e) => Nn.value = !Nn.value,
1927
1927
  onVariableDragStart: Ba,
1928
1928
  onInsertVariable: Pa,
@@ -1,9 +1,9 @@
1
- import { isContractTemplateFieldType as e } from "../types.mjs";
1
+ import { DEFAULT_CONTRACT_FONT_FAMILY as e } from "../constants.mjs";
2
2
  import { canUseDomHtml as t, createElementAttributeReader as n, createTagAttributeReader as r, escapeHtmlAttribute as i, escapeHtmlText as a, forEachHtmlTag as o, readNumberAttribute as s, readOptionalBoolean as c, readOptionalNumber as l, replaceTemplateVariableSpans as u } from "../utils/html.mjs";
3
- import { normalizeSigningPlacements as ee, scaleSigningPlacementToPage as te, validateSigningPlacements as ne } from "../utils/signing-placement.mjs";
4
- import { DEFAULT_CONTRACT_FONT_FAMILY as re } from "../constants.mjs";
5
- import { resolveTemplateVariablePresentation as ie } from "../utils/template-variable-render.mjs";
6
- import { buildPageDecorationClassNames as ae, buildPageDecorationsHtml as d, collectPageDecorationVariableKeys as f, normalizePageDecorations as p, validatePageDecorations as m } from "../utils/page-decorations.mjs";
3
+ import { resolveTemplateVariablePresentation as ee } from "../utils/template-variable-render.mjs";
4
+ import { buildPageDecorationClassNames as te, buildPageDecorationsHtml as d, collectPageDecorationVariableKeys as f, normalizePageDecorations as p, validatePageDecorations as m } from "../utils/page-decorations.mjs";
5
+ import { isContractTemplateFieldType as ne } from "../types.mjs";
6
+ import { normalizeSigningPlacements as re, scaleSigningPlacementToPage as ie, validateSigningPlacements as ae } from "../utils/signing-placement.mjs";
7
7
  //#region src/components/pro-contract-template-designer/src/composables/use-template-designer.ts
8
8
  var h = [
9
9
  {
@@ -58,26 +58,26 @@ var h = [
58
58
  color: "#1f2937",
59
59
  background: "transparent",
60
60
  fontSize: 14,
61
- fontFamily: re,
61
+ fontFamily: e,
62
62
  placeholderColor: "#7a818b",
63
63
  lineColor: "#565b66",
64
64
  textAlign: "left",
65
65
  borderStyle: "solid",
66
66
  objectFit: "contain"
67
- }, oe = 3, se = 28, v = "contract-template-renderer-1.0.0", y = "contract-render-css-1.0.0", b = /^[A-Za-z][A-Za-z0-9_]{1,63}$/, ce = new Set([
67
+ }, oe = 3, se = 28, v = "contract-template-renderer-1.0.0", y = "contract-render-css-1.0.0", b = /^[A-Za-z][A-Za-z0-9_]{1,63}$/, x = new Set([
68
68
  "pageNumber",
69
69
  "totalPages",
70
70
  "rendererVersion"
71
71
  ]);
72
- function x(e, t, n) {
72
+ function S(e, t, n) {
73
73
  let r = typeof e == "string" ? e.trim() : "";
74
- return r ? b.test(r) ? ce.has(r) ? `${r} 是系统保留标识` : t.some((e) => e.id !== n && e.key.trim() === r) ? `变量标识 ${r} 已存在` : "" : "变量标识需以字母开头,仅包含字母、数字和下划线,长度为 2~64 位" : "请输入变量标识";
74
+ return r ? b.test(r) ? x.has(r) ? `${r} 是系统保留标识` : t.some((e) => e.id !== n && e.key.trim() === r) ? `变量标识 ${r} 已存在` : "" : "变量标识需以字母开头,仅包含字母、数字和下划线,长度为 2~64 位" : "请输入变量标识";
75
75
  }
76
- function le(e) {
76
+ function ce(e) {
77
77
  let t = Number(e);
78
78
  return Number.isFinite(t) && t >= 1 ? Math.max(1, Math.floor(t)) : 20;
79
79
  }
80
- var S = [
80
+ var C = [
81
81
  {
82
82
  type: "text",
83
83
  label: "输入框",
@@ -108,11 +108,11 @@ var S = [
108
108
  defaultWidth: 96,
109
109
  defaultHeight: 28
110
110
  }
111
- ], C = 0;
112
- function w(e) {
113
- return C += 1, `${e}-${Date.now().toString(36)}-${C.toString(36)}`;
114
- }
111
+ ], w = 0;
115
112
  function T(e) {
113
+ return w += 1, `${e}-${Date.now().toString(36)}-${w.toString(36)}`;
114
+ }
115
+ function le(e) {
116
116
  let t = JSON.parse(JSON.stringify(e));
117
117
  return Array.isArray(t.signingPlacements) && (t.signingPlacements = t.signingPlacements.map((e) => ({
118
118
  id: e.id,
@@ -191,7 +191,7 @@ function ue(e, t) {
191
191
  };
192
192
  }), c = [], l = (e.signingPlacements ?? []).map((e) => {
193
193
  let t = o.get(e.pageId);
194
- return t ? (c.push(e.id), te(e, t.source, t.target)) : e;
194
+ return t ? (c.push(e.id), ie(e, t.source, t.target)) : e;
195
195
  });
196
196
  return {
197
197
  value: {
@@ -209,7 +209,7 @@ function M(e, t) {
209
209
  }
210
210
  function N(e = 1, t) {
211
211
  return {
212
- id: w("page"),
212
+ id: T("page"),
213
213
  title: `第 ${e} 页`,
214
214
  pageSize: t ? O(t) : void 0,
215
215
  contentHtml: "<p>请输入合同正文。</p>"
@@ -217,7 +217,7 @@ function N(e = 1, t) {
217
217
  }
218
218
  function P(e = 1, t, n = "<p></p>", r) {
219
219
  return {
220
- id: w("page"),
220
+ id: T("page"),
221
221
  title: `第 ${e} 页`,
222
222
  pageSize: t ? O(t) : void 0,
223
223
  contentHtml: n,
@@ -242,13 +242,13 @@ function de(e = g) {
242
242
  signingPlacements: []
243
243
  };
244
244
  }
245
- function I(e, t = S) {
246
- return t.find((t) => t.type === e) ?? S[0];
245
+ function I(e, t = C) {
246
+ return t.find((t) => t.type === e) ?? C[0];
247
247
  }
248
- function L(e, t = S, n = {}) {
248
+ function L(e, t = C, n = {}) {
249
249
  let r = e.type === void 0 ? "text" : e.type, i = I(r, t), a = fe(r);
250
250
  return {
251
- id: e.id ?? w("variable"),
251
+ id: e.id ?? T("variable"),
252
252
  key: e.key,
253
253
  label: e.label ?? i.label ?? e.key,
254
254
  type: r,
@@ -315,13 +315,13 @@ function fe(e) {
315
315
  underline: !0
316
316
  } };
317
317
  }
318
- function R(t) {
319
- return t !== void 0 && !e(t);
318
+ function R(e) {
319
+ return e !== void 0 && !ne(e);
320
320
  }
321
321
  function pe(e, t = g) {
322
322
  if (!e) return F(t);
323
323
  let n = O(e.pageSize, t), r = (e.pages?.length ? e.pages : [N(1, n)]).map((e, t) => ({
324
- id: e.id || w("page"),
324
+ id: e.id || T("page"),
325
325
  title: e.title || `第 ${t + 1} 页`,
326
326
  pageSize: O(e.pageSize, n),
327
327
  contentHtml: e.contentHtml || "<p></p>",
@@ -330,7 +330,7 @@ function pe(e, t = g) {
330
330
  return (e.variables ?? []).forEach((e) => {
331
331
  let t = L({
332
332
  ...e,
333
- id: e.id || w("variable")
333
+ id: e.id || T("variable")
334
334
  });
335
335
  i.push(t), t.key && a.set(t.key, t);
336
336
  }), r.forEach((e) => {
@@ -356,7 +356,7 @@ function pe(e, t = g) {
356
356
  pages: r,
357
357
  variables: i,
358
358
  pageSize: n,
359
- signingPlacements: ee(e.signingPlacements, o, n),
359
+ signingPlacements: re(e.signingPlacements, o, n),
360
360
  ...e.pageDecorations ? { pageDecorations: p(e.pageDecorations) } : {}
361
361
  };
362
362
  }
@@ -401,7 +401,7 @@ var V = class extends Error {
401
401
  function ge(e) {
402
402
  let t = m(e.pageDecorations, e.variables);
403
403
  if (t.length) throw new V(t);
404
- let n = T(e);
404
+ let n = le(e);
405
405
  return n.pageDecorations &&= p(n.pageDecorations), {
406
406
  ...n,
407
407
  rendererVersion: v,
@@ -418,7 +418,7 @@ function H(e, t = {}) {
418
418
  code: "PAGE_LIMIT_EXCEEDED",
419
419
  message: `合同共 ${e.pages.length} 页,超过最多 ${t.maxPages} 页限制`
420
420
  }), e.variables.forEach((t) => {
421
- let i = x(t.key, e.variables, t.id), a = !!t.key?.trim() && e.variables.some((e) => e.id !== t.id && e.key.trim() === t.key.trim());
421
+ let i = S(t.key, e.variables, t.id), a = !!t.key?.trim() && e.variables.some((e) => e.id !== t.id && e.key.trim() === t.key.trim());
422
422
  i && (!a || t.key !== t.key.trim()) && n.push({
423
423
  type: "variable",
424
424
  id: t.id,
@@ -454,7 +454,7 @@ function H(e, t = {}) {
454
454
  id: e.id,
455
455
  message: `${e.label || e.key} 缺少对应正文变量节点`
456
456
  });
457
- }), n.push(...m(e.pageDecorations, e.variables)), n.push(...ne(e)), n;
457
+ }), n.push(...m(e.pageDecorations, e.variables)), n.push(...ae(e)), n;
458
458
  }
459
459
  function U(e) {
460
460
  let t = /* @__PURE__ */ new Set();
@@ -484,7 +484,7 @@ function ve(e) {
484
484
  let t = W(e), n = f(e.pageDecorations);
485
485
  return {
486
486
  ...e,
487
- variables: e.variables.filter((r) => x(r.key, e.variables, r.id) ? !0 : t.has(r.key) || n.has(r.key))
487
+ variables: e.variables.filter((r) => S(r.key, e.variables, r.id) ? !0 : t.has(r.key) || n.has(r.key))
488
488
  };
489
489
  }
490
490
  function ye(e, t, n) {
@@ -511,7 +511,7 @@ function G(e, t, n, r, i) {
511
511
  function K(e, t, n, r = 1) {
512
512
  let a = O(e.pageSize, t);
513
513
  return [
514
- `class="${ae(n, r)}"`,
514
+ `class="${te(n, r)}"`,
515
515
  `data-page-id="${i(e.id)}"`,
516
516
  `data-page-format="${i(a.format ?? "Custom")}"`,
517
517
  `data-page-label="${i(a.label ?? a.format ?? "自定义")}"`,
@@ -638,7 +638,7 @@ function we(e) {
638
638
  });
639
639
  }
640
640
  function J(e, t) {
641
- let n = e("data-key") ?? "", r = t.get(n), i = r?.type ?? e("data-variable-type") ?? "text", a = ke(i, r?.defaultValue ?? e("data-default-value") ?? ""), o = ie({
641
+ let n = e("data-key") ?? "", r = t.get(n), i = r?.type ?? e("data-variable-type") ?? "text", a = ke(i, r?.defaultValue ?? e("data-default-value") ?? ""), o = ee({
642
642
  type: i,
643
643
  width: r?.width ?? e("data-width"),
644
644
  height: r?.height ?? e("data-height"),
@@ -737,4 +737,4 @@ function Pe(e, t = []) {
737
737
  });
738
738
  }
739
739
  //#endregion
740
- export { v as CONTRACT_TEMPLATE_RENDERER_VERSION, ce as CONTRACT_TEMPLATE_RESERVED_VARIABLE_KEYS, y as CONTRACT_TEMPLATE_STYLE_VERSION, b as CONTRACT_TEMPLATE_VARIABLE_KEY_PATTERN, V as ContractTemplatePageDecorationValidationError, _ as DEFAULT_FIELD_STYLE, S as DEFAULT_FIELD_TYPES, se as DEFAULT_MULTILINE_LINE_HEIGHT, oe as DEFAULT_MULTILINE_ROWS, g as DEFAULT_PAGE_SIZE, h as PAGE_SIZE_OPTIONS, z as buildTemplateExpressionHtml, me as buildTemplateHtml, he as buildTemplatePreviewHtml, B as buildTemplatePreviewPages, T as cloneTemplateValue, Pe as collectTemplateLocationRuleExportErrors, W as collectTemplateValueVariableKeys, U as collectTemplateVariableKeys, ue as constrainTemplatePageSizes, P as createBlankPage, de as createBlankTemplate, N as createDefaultPage, F as createDefaultTemplate, w as createDesignerId, L as createTemplateVariable, ge as exportTemplateValue, j as findPageSizeOption, I as getFieldOption, k as getPageSizeKey, E as getPageSizeOption, D as inferPageFormat, le as normalizeContractTemplateMaxPages, A as normalizePageSizeOptions, pe as normalizeTemplateValue, O as resolvePageSize, ye as splitPageContentByMeasurements, ve as syncTemplateVariablesWithPages, x as validateContractTemplateVariableKey, H as validateTemplateValue };
740
+ export { v as CONTRACT_TEMPLATE_RENDERER_VERSION, x as CONTRACT_TEMPLATE_RESERVED_VARIABLE_KEYS, y as CONTRACT_TEMPLATE_STYLE_VERSION, b as CONTRACT_TEMPLATE_VARIABLE_KEY_PATTERN, V as ContractTemplatePageDecorationValidationError, _ as DEFAULT_FIELD_STYLE, C as DEFAULT_FIELD_TYPES, se as DEFAULT_MULTILINE_LINE_HEIGHT, oe as DEFAULT_MULTILINE_ROWS, g as DEFAULT_PAGE_SIZE, h as PAGE_SIZE_OPTIONS, z as buildTemplateExpressionHtml, me as buildTemplateHtml, he as buildTemplatePreviewHtml, B as buildTemplatePreviewPages, le as cloneTemplateValue, Pe as collectTemplateLocationRuleExportErrors, W as collectTemplateValueVariableKeys, U as collectTemplateVariableKeys, ue as constrainTemplatePageSizes, P as createBlankPage, de as createBlankTemplate, N as createDefaultPage, F as createDefaultTemplate, T as createDesignerId, L as createTemplateVariable, ge as exportTemplateValue, j as findPageSizeOption, I as getFieldOption, k as getPageSizeKey, E as getPageSizeOption, D as inferPageFormat, ce as normalizeContractTemplateMaxPages, A as normalizePageSizeOptions, pe as normalizeTemplateValue, O as resolvePageSize, ye as splitPageContentByMeasurements, ve as syncTemplateVariablesWithPages, S as validateContractTemplateVariableKey, H as validateTemplateValue };