@guodun/antdv 1.7.9 → 1.7.10

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 (29) hide show
  1. package/dist/es/components/contract-signing-location/src/ContractSigningLocation.vue.mjs +295 -296
  2. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +247 -220
  3. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.mjs +1 -1
  4. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.mjs +258 -252
  5. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +1 -2
  6. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +1 -1
  7. package/dist/es/components/pro-contract-template-designer/src/utils/contract-print-document.mjs +7 -1
  8. package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +113 -102
  9. package/dist/es/components/pro-contract-template-designer/src/utils/template-variable-render.mjs +35 -20
  10. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  11. package/dist/es/index.mjs +19 -19
  12. package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
  13. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +1 -1
  14. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.cjs +1 -1
  15. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.cjs +1 -1
  16. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  17. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +1 -1
  18. package/dist/lib/components/pro-contract-template-designer/src/utils/contract-print-document.cjs +7 -1
  19. package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +5 -3
  20. package/dist/lib/components/pro-contract-template-designer/src/utils/template-variable-render.cjs +1 -1
  21. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  22. package/dist/lib/index.cjs +1 -1
  23. package/dist/theme/icon.css +1 -1
  24. package/dist/theme/index.css +1 -1
  25. package/dist/types/components/pro-contract-template-designer/src/types.d.ts +3 -0
  26. package/dist/types/components/pro-contract-template-designer/src/utils/contract-print-document.d.ts +1 -1
  27. package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +2 -0
  28. package/dist/types/components/pro-contract-template-designer/src/utils/template-variable-render.d.ts +8 -2
  29. package/package.json +3 -3
@@ -7,15 +7,15 @@ import le from "./ContractSigningLocationCanvas.mjs";
7
7
  import ue from "./ContractSigningLocationInspector.mjs";
8
8
  import de from "./ContractSigningLocationNavigator.mjs";
9
9
  import { ContractSigningPreviewRequests as fe } from "./preview-requests.mjs";
10
- import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as pe, createVNode as g, defineComponent as me, nextTick as _, normalizeClass as he, normalizeStyle as ge, onBeforeUnmount as _e, openBlock as v, ref as y, shallowRef as b, toDisplayString as ve, unref as x, watch as S, withCtx as C } from "vue";
11
- import { Button as w, Tooltip as ye } from "ant-design-vue";
12
- import { LeftOutlined as be, ReloadOutlined as xe, RightOutlined as Se } from "@ant-design/icons-vue";
10
+ import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as pe, createElementVNode as m, createTextVNode as me, createVNode as h, defineComponent as he, nextTick as g, normalizeClass as ge, normalizeStyle as _e, onBeforeUnmount as ve, openBlock as _, ref as v, shallowRef as y, toDisplayString as ye, unref as b, watch as x, withCtx as S } from "vue";
11
+ import { Button as C, Tooltip as be } from "ant-design-vue";
12
+ import { LeftOutlined as xe, ReloadOutlined as Se, RightOutlined as Ce } from "@ant-design/icons-vue";
13
13
  //#region src/components/contract-signing-location/src/ContractSigningLocation.vue?vue&type=script&setup=true&lang.ts
14
- var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "gd-ant-contract-signing-location__title" }, Te = { class: "gd-ant-contract-signing-location__header-actions" }, Ee = { class: "gd-ant-contract-signing-location__placement-count" }, De = {
14
+ var we = { class: "gd-ant-contract-signing-location__header" }, Te = { class: "gd-ant-contract-signing-location__title" }, Ee = { class: "gd-ant-contract-signing-location__header-actions" }, De = { class: "gd-ant-contract-signing-location__placement-count" }, Oe = {
15
15
  key: 0,
16
16
  class: "gd-ant-contract-signing-location__error",
17
17
  role: "alert"
18
- }, Oe = ["aria-label", "aria-expanded"], ke = { class: "gd-ant-contract-signing-location__panel-stack" }, Ae = ["aria-label", "aria-expanded"], je = { class: "gd-ant-contract-signing-location__panel-stack" }, Me = /* @__PURE__ */ me({
18
+ }, ke = ["aria-label", "aria-expanded"], Ae = { class: "gd-ant-contract-signing-location__panel-stack" }, je = ["aria-label", "aria-expanded"], Me = { class: "gd-ant-contract-signing-location__panel-stack" }, Ne = /* @__PURE__ */ he({
19
19
  name: "ContractSigningLocation",
20
20
  __name: "ContractSigningLocation",
21
21
  props: {
@@ -74,127 +74,122 @@ var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "g
74
74
  "submit",
75
75
  "error"
76
76
  ],
77
- setup(e, { expose: me, emit: Me }) {
78
- let T = e, E = Me, D = d(() => i(T.sealMinSize, T.sealMaxSize)), O = u(T.modelValue ?? c(T.contractId), {
79
- sealSizeLimit: D.value,
80
- sealTypeOptions: T.sealTypeOptions
81
- }), k = b(O), Ne = b(s(O)), A = b(O.files[0]?.fileId ?? ""), j = b(O.files[0]?.pages[0]?.pageIndex ?? 0), M = b(""), N = b(!1), P = b(""), F = y([]), I = y({}), L = b(Ze(T.zoom)), R = y(null), z = y(!1), B = y(!1), V = b("loading"), Pe = b(""), H = 0, U = !1, Fe, W = [], Ie = 0, G = new fe(), K = d(() => T.mode === "preview"), Le = d(() => K.value || T.readonly || T.disabled), Re = d(() => T.showInspector ?? !K.value), ze = d(() => !K.value && T.showSubmitButton), Be = d(() => k.value.files.length <= 1), Ve = d(() => jt(T.height)), q = d(() => k.value.files.find((e) => e.fileId === A.value) ?? k.value.files[0]), J = d(() => a(q.value) && V.value !== "ready"), He = d(() => {
82
- if (!J.value || K.value) return "";
83
- if (V.value === "loading") return "合同排版校验中,暂不可指定签署位置";
84
- let e = Pe.value.match(/第\s*(\d+)\s*页正文超出纸张/);
85
- return e ? `第 ${e[1]} 页正文超出纸张,请回模板设计器调整后重试` : "合同排版校验失败,请检查模板后重试";
86
- }), Y = d(() => Le.value || J.value), Ue = d(() => q.value?.pages.find((e) => e.pageIndex === j.value) ?? q.value?.pages[0]), We = d(() => {
87
- let e = q.value;
88
- return e ? k.value.placements.filter((t) => t.fileId === e.fileId) : [];
89
- }), Ge = d(() => {
90
- let e = q.value;
91
- return e ? T.referencePlacements.filter((t) => t.fileId === e.fileId) : [];
92
- }), X = d(() => k.value.placements.find((e) => e.id === M.value)), Ke = d(() => {
77
+ setup(e, { expose: he, emit: Ne }) {
78
+ let w = e, T = Ne, E = d(() => i(w.sealMinSize, w.sealMaxSize)), D = u(w.modelValue ?? c(w.contractId), {
79
+ sealSizeLimit: E.value,
80
+ sealTypeOptions: w.sealTypeOptions
81
+ }), O = y(D), Pe = y(s(D)), k = y(D.files[0]?.fileId ?? ""), A = y(D.files[0]?.pages[0]?.pageIndex ?? 0), j = y(""), M = y(!1), N = y(""), P = v([]), F = v({}), Fe = y($e(w.zoom)), I = v(null), L = v(!1), R = v(!1), z = y("loading"), Ie = y(""), B = 0, V = !1, H, U = [], Le = 0, W = new fe(), G = d(() => w.mode === "preview"), Re = d(() => G.value || w.readonly || w.disabled), ze = d(() => w.showInspector ?? !G.value), Be = d(() => !G.value && w.showSubmitButton), Ve = d(() => O.value.files.length <= 1), He = d(() => Pt(w.height)), K = d(() => O.value.files.find((e) => e.fileId === k.value) ?? O.value.files[0]), q = d(() => a(K.value) && z.value !== "ready"), J = d(() => !q.value || G.value ? "" : z.value === "loading" ? "合同排版校验中,暂不可指定签署位置" : xt(Ie.value)), Ue = d(() => z.value === "error" && J.value ? J.value : N.value || J.value), We = d(() => !!(N.value && w.dataProvider && w.contractId) && !(z.value === "error" && J.value)), Y = d(() => Re.value || q.value), Ge = d(() => K.value?.pages.find((e) => e.pageIndex === A.value) ?? K.value?.pages[0]), Ke = d(() => {
82
+ let e = K.value;
83
+ return e ? O.value.placements.filter((t) => t.fileId === e.fileId) : [];
84
+ }), qe = d(() => {
85
+ let e = K.value;
86
+ return e ? w.referencePlacements.filter((t) => t.fileId === e.fileId) : [];
87
+ }), X = d(() => O.value.placements.find((e) => e.id === j.value)), Je = d(() => {
93
88
  let e = X.value;
94
- return e ? l(k.value, e.fileId, e.pageIndex) ?? Ue.value : Ue.value;
95
- }), qe = d(() => F.value.filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Je = d(() => Object.keys(I.value).filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Ye = d(() => F.value.filter((e) => e.endsWith(":preview")).map((e) => e.slice(0, -8))), Xe = d(() => {
89
+ return e ? l(O.value, e.fileId, e.pageIndex) ?? Ge.value : Ge.value;
90
+ }), Ye = d(() => P.value.filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Xe = d(() => Object.keys(F.value).filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Ze = d(() => P.value.filter((e) => e.endsWith(":preview")).map((e) => e.slice(0, -8))), Qe = d(() => {
96
91
  let e = {};
97
- return Object.entries(I.value).forEach(([t, n]) => {
92
+ return Object.entries(F.value).forEach(([t, n]) => {
98
93
  t.endsWith(":preview") && (e[t.slice(0, -8)] = n);
99
94
  }), e;
100
95
  });
101
- S(() => T.modelValue, (e) => {
96
+ x(() => w.modelValue, (e) => {
102
97
  if (!e) return;
103
98
  let t = u(e, {
104
- sealSizeLimit: D.value,
105
- sealTypeOptions: T.sealTypeOptions
99
+ sealSizeLimit: E.value,
100
+ sealTypeOptions: w.sealTypeOptions
106
101
  });
107
- $(t) !== $(k.value) && (Et(), k.value = t, Ne.value = s(t), xt(), _(() => R.value?.scrollToPage(j.value)));
108
- }, { deep: !0 }), S(D, () => {
109
- $(u(k.value, {
110
- sealSizeLimit: D.value,
111
- sealTypeOptions: T.sealTypeOptions
112
- })) !== $(k.value) && Z(k.value);
113
- }), S(() => T.zoom, (e) => {
114
- L.value = Ze(e);
115
- }), S(() => q.value?.fileId, () => {
116
- V.value = a(q.value) ? "loading" : "ready", Pe.value = "";
117
- }), S(() => [
118
- T.contractId,
119
- T.dataProvider,
120
- T.autoLoad
102
+ Mt(t) !== Mt(O.value) && (Ot(), O.value = t, Pe.value = s(t), Q(), g(() => I.value?.scrollToPage(A.value)));
103
+ }, { deep: !0 }), x(E, () => {
104
+ Mt(u(O.value, {
105
+ sealSizeLimit: E.value,
106
+ sealTypeOptions: w.sealTypeOptions
107
+ })) !== Mt(O.value) && Z(O.value);
108
+ }), x(() => w.zoom, (e) => {
109
+ Fe.value = $e(e);
110
+ }), x(() => K.value?.fileId, () => {
111
+ z.value = a(K.value) ? "loading" : "ready", Ie.value = "";
112
+ }), x(() => [
113
+ w.contractId,
114
+ w.dataProvider,
115
+ w.autoLoad
121
116
  ], ([e, t, n], r) => {
122
- !n || !t || !e || (!r || e !== r[0] || t !== r[1]) && et();
123
- }, { immediate: !0 }), _e(() => {
124
- U = !0, H += 1, Tt(), Et();
117
+ !n || !t || !e || (!r || e !== r[0] || t !== r[1]) && nt();
118
+ }, { immediate: !0 }), ve(() => {
119
+ V = !0, B += 1, Dt(), Ot();
125
120
  });
126
- function Ze(e) {
127
- return n(e, Math.min(T.minZoom, T.maxZoom), Math.max(T.minZoom, T.maxZoom));
121
+ function $e(e) {
122
+ return n(e, Math.min(w.minZoom, w.maxZoom), Math.max(w.minZoom, w.maxZoom));
128
123
  }
129
- function Qe(e) {
130
- let t = Ze(e);
131
- L.value = t, E("update:zoom", t);
124
+ function et(e) {
125
+ let t = $e(e);
126
+ Fe.value = t, T("update:zoom", t);
132
127
  }
133
- function $e() {
134
- return R.value?.fitWidth() ?? L.value;
128
+ function tt() {
129
+ return I.value?.fitWidth() ?? Fe.value;
135
130
  }
136
131
  function Z(e, t = {}) {
137
- k.value = u(e, {
138
- sealSizeLimit: D.value,
139
- sealTypeOptions: T.sealTypeOptions
140
- }), t.clearError !== !1 && (P.value = ""), xt();
141
- let n = s(k.value);
142
- return E("update:modelValue", n), E("change", n), n;
143
- }
144
- async function et() {
145
- let e = String(T.contractId || k.value.contractId || "").trim();
146
- if (!T.dataProvider) return Q({
132
+ O.value = u(e, {
133
+ sealSizeLimit: E.value,
134
+ sealTypeOptions: w.sealTypeOptions
135
+ }), t.clearError !== !1 && (N.value = ""), Q();
136
+ let n = s(O.value);
137
+ return T("update:modelValue", n), T("change", n), n;
138
+ }
139
+ async function nt() {
140
+ let e = String(w.contractId || O.value.contractId || "").trim();
141
+ if (!w.dataProvider) return $({
147
142
  code: "CONTRACT_PROVIDER_MISSING",
148
143
  message: "未配置合同数据提供器,请由宿主传入文件数据"
149
144
  }), !1;
150
- if (!e) return Q({
145
+ if (!e) return $({
151
146
  code: "CONTRACT_ID_MISSING",
152
147
  message: "缺少用于加载合同的 PaaS contractId"
153
148
  }), !1;
154
- let t = ++H;
155
- Et(), N.value = !0, P.value = "";
149
+ let t = ++B;
150
+ Ot(), M.value = !0, N.value = "";
156
151
  try {
157
- let n = await T.dataProvider.loadContract({ contractId: e });
158
- if (U || t !== H) return !1;
159
- let i = ie(n, r(T.dataProvider.coordinateScale)), a = u({
152
+ let n = await w.dataProvider.loadContract({ contractId: e });
153
+ if (V || t !== B) return !1;
154
+ let i = ie(n, r(w.dataProvider.coordinateScale)), a = u({
160
155
  ...i,
161
156
  contractId: e,
162
- placements: i.placements.length ? i.placements : k.value.contractId === e ? k.value.placements : []
157
+ placements: i.placements.length ? i.placements : O.value.contractId === e ? O.value.placements : []
163
158
  }, {
164
- sealSizeLimit: D.value,
165
- sealTypeOptions: T.sealTypeOptions
159
+ sealSizeLimit: E.value,
160
+ sealTypeOptions: w.sealTypeOptions
166
161
  });
167
- k.value = a, Ne.value = s(a), M.value = "", xt();
162
+ O.value = a, Pe.value = s(a), j.value = "", Q();
168
163
  let o = s(a);
169
- return E("update:modelValue", o), E("change", o), E("ready", o), tt(), _(() => R.value?.scrollToPage(j.value)), o;
164
+ return T("update:modelValue", o), T("change", o), T("ready", o), rt(), g(() => I.value?.scrollToPage(A.value)), o;
170
165
  } catch (e) {
171
- return U || t !== H || Q(St(e, "CONTRACT_LOAD_FAILED", "合同加载失败,请检查授权后重试")), !1;
166
+ return V || t !== B || $(wt(e, "CONTRACT_LOAD_FAILED", "合同加载失败,请检查授权后重试")), !1;
172
167
  } finally {
173
- !U && t === H && (N.value = !1);
168
+ !V && t === B && (M.value = !1);
174
169
  }
175
170
  }
176
- async function tt() {
177
- T.dataProvider?.loadPagePreview && await Promise.allSettled(k.value.files.map((e) => {
171
+ async function rt() {
172
+ w.dataProvider?.loadPagePreview && await Promise.allSettled(O.value.files.map((e) => {
178
173
  if (a(e)) return Promise.resolve();
179
174
  let t = ne(e.pages);
180
- return t && !t.thumbnailUrl ? nt(e.fileId, t.pageIndex, !0) : Promise.resolve();
175
+ return t && !t.thumbnailUrl ? it(e.fileId, t.pageIndex, !0) : Promise.resolve();
181
176
  }));
182
177
  }
183
- async function nt(e, t, n) {
184
- let i = T.dataProvider?.loadPagePreview, o = k.value.files.find((t) => t.fileId === e), ee = l(k.value, e, t), s = Ct(e, t, n);
185
- if (!i || a(o) || !ee || F.value.includes(s)) return;
186
- wt(s), F.value = [...F.value, s];
187
- let c = G.start(s);
178
+ async function it(e, t, n) {
179
+ let i = w.dataProvider?.loadPagePreview, o = O.value.files.find((t) => t.fileId === e), ee = l(O.value, e, t), s = Tt(e, t, n);
180
+ if (!i || a(o) || !ee || P.value.includes(s)) return;
181
+ Et(s), P.value = [...P.value, s];
182
+ let c = W.start(s);
188
183
  try {
189
184
  let a = await i({
190
- contractId: k.value.contractId || T.contractId,
185
+ contractId: O.value.contractId || w.contractId,
191
186
  fileId: e,
192
187
  pageIndex: t,
193
188
  thumbnail: n,
194
189
  signal: c.signal
195
190
  });
196
- if (U || !G.isCurrent(s, c) || !l(k.value, e, t)) return;
197
- let o = se(l(k.value, e, t), a, r(T.dataProvider?.coordinateScale), n), ee = k.value.files.map((r) => r.fileId === e ? {
191
+ if (V || !W.isCurrent(s, c) || !l(O.value, e, t)) return;
192
+ let o = se(l(O.value, e, t), a, r(w.dataProvider?.coordinateScale), n), ee = O.value.files.map((r) => r.fileId === e ? {
198
193
  ...r,
199
194
  pages: r.pages.map((e) => e.pageIndex === t ? {
200
195
  ...e,
@@ -203,73 +198,73 @@ var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "g
203
198
  } : e)
204
199
  } : r);
205
200
  Z({
206
- ...k.value,
201
+ ...O.value,
207
202
  files: ee
208
203
  }, { clearError: !1 });
209
204
  } catch (n) {
210
- if (!G.isCurrent(s, c) || Dt(n)) return;
211
- let r = St(n, "CONTRACT_PREVIEW_FAILED", "合同页面预览加载失败,可切换页面或重试", {
205
+ if (!W.isCurrent(s, c) || kt(n)) return;
206
+ let r = wt(n, "CONTRACT_PREVIEW_FAILED", "合同页面预览加载失败,可切换页面或重试", {
212
207
  fileId: e,
213
208
  pageIndex: t
214
209
  });
215
- E("error", r), I.value = {
216
- ...I.value,
210
+ T("error", r), F.value = {
211
+ ...F.value,
217
212
  [s]: r.message
218
213
  };
219
214
  } finally {
220
- G.finish(s, c) && (F.value = F.value.filter((e) => e !== s));
215
+ W.finish(s, c) && (P.value = P.value.filter((e) => e !== s));
221
216
  }
222
217
  }
223
- function rt(e) {
224
- if (e === A.value) return;
225
- let t = A.value;
226
- Tt(), t && (Et((e) => e.startsWith(`${t}:`) && e.endsWith(":preview")), W = W.filter((t) => t.fileId === e)), A.value = e, j.value = ne(k.value.files.find((t) => t.fileId === e)?.pages)?.pageIndex ?? 0, M.value = "", E("file-change", e), E("page-change", e, j.value), _(() => R.value?.scrollToPage(j.value));
227
- }
228
- function it(e) {
229
- j.value = e;
230
- }
231
218
  function at(e) {
232
- j.value !== e && (j.value = e), E("page-change", A.value, e);
219
+ if (e === k.value) return;
220
+ let t = k.value;
221
+ Dt(), t && (Ot((e) => e.startsWith(`${t}:`) && e.endsWith(":preview")), U = U.filter((t) => t.fileId === e)), k.value = e, A.value = ne(O.value.files.find((t) => t.fileId === e)?.pages)?.pageIndex ?? 0, j.value = "", T("file-change", e), T("page-change", e, A.value), g(() => I.value?.scrollToPage(A.value));
233
222
  }
234
223
  function ot(e) {
235
- Tt();
236
- let t = A.value;
237
- Fe = setTimeout(() => {
238
- Fe = void 0, A.value === t && st(t, e);
224
+ A.value = e;
225
+ }
226
+ function st(e) {
227
+ A.value !== e && (A.value = e), T("page-change", k.value, e);
228
+ }
229
+ function ct(e) {
230
+ Dt();
231
+ let t = k.value;
232
+ H = setTimeout(() => {
233
+ H = void 0, k.value === t && lt(t, e);
239
234
  }, 150);
240
235
  }
241
- function st(e, t) {
242
- let n = k.value.files.find((t) => t.fileId === e);
243
- !n || a(n) || e !== A.value || (t.forEach((e) => {
236
+ function lt(e, t) {
237
+ let n = O.value.files.find((t) => t.fileId === e);
238
+ !n || a(n) || e !== k.value || (t.forEach((e) => {
244
239
  let t = n.pages.find((t) => t.pageIndex === e);
245
- !t || t.previewUrl || F.value.includes(Ct(n.fileId, e, !1)) || W.some((t) => t.fileId === n.fileId && t.pageIndex === e) || W.push({
240
+ !t || t.previewUrl || P.value.includes(Tt(n.fileId, e, !1)) || U.some((t) => t.fileId === n.fileId && t.pageIndex === e) || U.push({
246
241
  fileId: n.fileId,
247
242
  pageIndex: e
248
243
  });
249
- }), ct());
244
+ }), ut());
250
245
  }
251
- async function ct() {
252
- let e = A.value;
253
- for (W = W.filter((t) => t.fileId === e); Ie < 3 && W.length;) {
254
- let t = W.shift();
246
+ async function ut() {
247
+ let e = k.value;
248
+ for (U = U.filter((t) => t.fileId === e); Le < 3 && U.length;) {
249
+ let t = U.shift();
255
250
  if (!t || t.fileId !== e) continue;
256
- let n = l(k.value, t.fileId, t.pageIndex), r = k.value.files.find((e) => e.fileId === t.fileId);
257
- !n || a(r) || n.previewUrl || F.value.includes(Ct(t.fileId, t.pageIndex, !1)) || (Ie += 1, nt(t.fileId, t.pageIndex, !1).finally(() => {
258
- Ie = Math.max(0, Ie - 1), ct();
251
+ let n = l(O.value, t.fileId, t.pageIndex), r = O.value.files.find((e) => e.fileId === t.fileId);
252
+ !n || a(r) || n.previewUrl || P.value.includes(Tt(t.fileId, t.pageIndex, !1)) || (Le += 1, it(t.fileId, t.pageIndex, !1).finally(() => {
253
+ Le = Math.max(0, Le - 1), ut();
259
254
  }));
260
255
  }
261
256
  }
262
- function lt(e) {
263
- let t = k.value.placements.find((t) => t.id === e);
264
- t && (t.fileId !== A.value && rt(t.fileId), M.value = e, _(() => R.value?.scrollToPlacement(e)));
257
+ function dt(e) {
258
+ let t = O.value.placements.find((t) => t.id === e);
259
+ t && (t.fileId !== k.value && at(t.fileId), j.value = e, g(() => I.value?.scrollToPlacement(e)));
265
260
  }
266
- function ut(e, t = {}) {
267
- if (Y.value || !T.allowedPlacementTypes.includes(e)) return;
268
- let n = t.fileId ?? q.value?.fileId, r = t.pageIndex ?? Ue.value?.pageIndex;
261
+ function ft(e, t = {}) {
262
+ if (Y.value || !w.allowedPlacementTypes.includes(e)) return;
263
+ let n = t.fileId ?? K.value?.fileId, r = t.pageIndex ?? Ge.value?.pageIndex;
269
264
  if (!n || r === void 0) return;
270
- let i = l(k.value, n, r);
265
+ let i = l(O.value, n, r);
271
266
  if (!i || !re(i)) {
272
- Q({
267
+ $({
273
268
  code: "CONTRACT_PAGE_SIZE_INVALID",
274
269
  message: "当前页面缺少有效的原始宽高,暂时不能添加签署位置",
275
270
  fileId: n,
@@ -277,9 +272,9 @@ var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "g
277
272
  });
278
273
  return;
279
274
  }
280
- let a = oe(T.defaultSealTypes, T.sealTypeOptions);
275
+ let a = oe(w.defaultSealTypes, w.sealTypeOptions);
281
276
  if (e === "seal" && !a.length) {
282
- Q({
277
+ $({
283
278
  code: "CONTRACT_SEAL_TYPES_MISSING",
284
279
  message: "当前未配置可用的印章类型,暂时不能添加印章位置",
285
280
  fileId: n,
@@ -290,105 +285,109 @@ var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "g
290
285
  let o = te(e, n, i, {
291
286
  signLeft: t.signLeft,
292
287
  signTop: t.signTop,
293
- sizeProfile: T.sizeProfile,
294
- sealSizeLimit: D.value,
295
- sealTypeOptions: T.sealTypeOptions,
288
+ sizeProfile: w.sizeProfile,
289
+ sealSizeLimit: E.value,
290
+ sealTypeOptions: w.sealTypeOptions,
296
291
  ...e === "seal" ? { sealType: a } : {}
297
292
  });
298
293
  return Z({
299
- ...k.value,
300
- placements: [...k.value.placements, o]
301
- }), A.value = n, j.value = r, M.value = o.id, kt(o);
294
+ ...O.value,
295
+ placements: [...O.value.placements, o]
296
+ }), k.value = n, A.value = r, j.value = o.id, jt(o);
302
297
  }
303
- function dt(e, t) {
298
+ function pt(e, t) {
304
299
  Y.value || Z({
305
- ...k.value,
306
- placements: k.value.placements.map((n) => {
300
+ ...O.value,
301
+ placements: O.value.placements.map((n) => {
307
302
  if (n.id !== e) return n;
308
303
  let r = t.pageIndex === void 0 ? n.pageIndex : t.pageIndex;
309
- return ae(n, t, l(k.value, n.fileId, r), {
310
- sealSizeLimit: D.value,
311
- sealTypeOptions: T.sealTypeOptions
304
+ return ae(n, t, l(O.value, n.fileId, r), {
305
+ sealSizeLimit: E.value,
306
+ sealTypeOptions: w.sealTypeOptions
312
307
  });
313
308
  })
314
309
  });
315
310
  }
316
- function ft() {
311
+ function mt() {
317
312
  let e = X.value;
318
313
  if (!e || Y.value) return;
319
- let n = l(k.value, e.fileId, e.pageIndex);
314
+ let n = l(O.value, e.fileId, e.pageIndex);
320
315
  if (!n) return;
321
316
  let r = t({
322
- ...kt(e),
323
- id: At(),
317
+ ...jt(e),
318
+ id: Nt(),
324
319
  signLeft: e.signLeft + 16,
325
320
  signTop: e.signTop + 16
326
- }, n, { sealSizeLimit: D.value });
321
+ }, n, { sealSizeLimit: E.value });
327
322
  Z({
328
- ...k.value,
329
- placements: [...k.value.placements, r]
330
- }), M.value = r.id;
323
+ ...O.value,
324
+ placements: [...O.value.placements, r]
325
+ }), j.value = r.id;
331
326
  }
332
- function pt(e) {
327
+ function ht(e) {
333
328
  Y.value || (Z({
334
- ...k.value,
335
- placements: k.value.placements.filter((t) => t.id !== e)
336
- }), M.value === e && (M.value = ""));
329
+ ...O.value,
330
+ placements: O.value.placements.filter((t) => t.id !== e)
331
+ }), j.value === e && (j.value = ""));
337
332
  }
338
- function mt() {
339
- let e = ce(k.value, { allowedSealTypes: T.sealTypeOptions.map((e) => e.value) });
340
- return J.value ? [...e, {
333
+ function gt() {
334
+ let e = ce(O.value, { allowedSealTypes: w.sealTypeOptions.map((e) => e.value) });
335
+ return q.value ? [...e, {
341
336
  code: "CONTRACT_TEMPLATE_FONT_UNAVAILABLE",
342
- message: yt()
337
+ message: St()
343
338
  }] : e;
344
339
  }
345
- function ht() {
346
- return s(k.value);
340
+ function _t() {
341
+ return s(O.value);
347
342
  }
348
- function gt() {
349
- if (J.value) throw new o([{
343
+ function vt() {
344
+ if (q.value) throw new o([{
350
345
  code: "CONTRACT_TEMPLATE_FONT_UNAVAILABLE",
351
- message: yt()
346
+ message: St()
352
347
  }]);
353
- return ee(ht(), { allowedSealTypes: T.sealTypeOptions.map((e) => e.value) });
348
+ return ee(_t(), { allowedSealTypes: w.sealTypeOptions.map((e) => e.value) });
354
349
  }
355
- function _t() {
356
- if (J.value) {
357
- let e = yt();
358
- return console.error("[GD-SIGN-COORD]", e), Q({
350
+ function yt() {
351
+ if (q.value) {
352
+ let e = St();
353
+ return console.error("[GD-SIGN-COORD]", e), $({
359
354
  code: "CONTRACT_TEMPLATE_FONT_UNAVAILABLE",
360
- message: e
355
+ message: J.value || e
361
356
  }), !1;
362
357
  }
363
358
  try {
364
- let e = gt();
365
- return P.value = "", E("submit", e), e;
359
+ let e = vt();
360
+ return N.value = "", T("submit", e), e;
366
361
  } catch (e) {
367
- return Q(e instanceof o ? {
362
+ return $(e instanceof o ? {
368
363
  ...e.errors[0],
369
364
  cause: e
370
- } : St(e, "CONTRACT_SIGNING_LOCATION_INVALID", "指定签署位置数据不完整")), !1;
365
+ } : wt(e, "CONTRACT_SIGNING_LOCATION_INVALID", "指定签署位置数据不完整")), !1;
371
366
  }
372
367
  }
373
- function vt(e, t) {
374
- V.value = e, Pe.value = e === "error" ? t || "合同排版度量校验失败" : "";
368
+ function bt(e, t) {
369
+ z.value = e, Ie.value = e === "error" ? t || "合同排版度量校验失败" : "";
375
370
  }
376
- function yt() {
377
- return V.value === "error" ? Pe.value || "合同排版度量校验失败,禁止生成签署坐标" : "合同排版度量校验中,请稍后再保存签署坐标";
371
+ function xt(e) {
372
+ let t = e.match(/第\s*(\d+)\s*页正文超出纸张/);
373
+ return t ? `第 ${t[1]} 页正文超出纸张,请回模板设计器调整后重试` : e.includes("合同排版度量不一致") ? "当前浏览器的字体宽度与签署坐标要求不一致。请把缩放调回 100%,使用 Chrome 或 Edge,并确认已安装宋体和 Times New Roman(或 Liberation Serif)后刷新。缩放和字体都正常时,请联系管理员核对本机字体度量。" : e.includes("超时") ? "合同排版校验超时。请刷新后重试;仍失败时请关闭拦截字体的扩展,或改用 Chrome、Edge。" : e.includes("合同打印页节点不存在") ? "合同底图没有加载完整。请刷新后重新打开这份模板。" : "合同排版校验未通过。请刷新后重试;若反复出现,请让管理员查看控制台中以 [GD-SIGN-COORD] 开头的记录。";
378
374
  }
379
- function bt() {
380
- if (Y.value) return s(k.value);
381
- let e = Z(s(Ne.value));
382
- return M.value = "", xt(!0), _(() => R.value?.scrollToPage(j.value)), e;
375
+ function St() {
376
+ return z.value === "error" ? Ie.value || "合同排版度量校验失败,禁止生成签署坐标" : "合同排版度量校验中,请稍后再保存签署坐标";
383
377
  }
384
- function xt(e = !1) {
385
- let t = (e ? void 0 : k.value.files.find((e) => e.fileId === A.value)) ?? k.value.files[0];
386
- A.value = t?.fileId ?? "", j.value = ((e ? void 0 : t?.pages.find((e) => e.pageIndex === j.value)) ?? t?.pages[0])?.pageIndex ?? 0, k.value.placements.some((e) => e.id === M.value) || (M.value = "");
378
+ function Ct() {
379
+ if (Y.value) return s(O.value);
380
+ let e = Z(s(Pe.value));
381
+ return j.value = "", Q(!0), g(() => I.value?.scrollToPage(A.value)), e;
387
382
  }
388
- function Q(e) {
389
- P.value = e.message, E("error", e);
383
+ function Q(e = !1) {
384
+ let t = (e ? void 0 : O.value.files.find((e) => e.fileId === k.value)) ?? O.value.files[0];
385
+ k.value = t?.fileId ?? "", A.value = ((e ? void 0 : t?.pages.find((e) => e.pageIndex === A.value)) ?? t?.pages[0])?.pageIndex ?? 0, O.value.placements.some((e) => e.id === j.value) || (j.value = "");
390
386
  }
391
- function St(e, t, n, r = {}) {
387
+ function $(e) {
388
+ N.value = e.message, T("error", e);
389
+ }
390
+ function wt(e, t, n, r = {}) {
392
391
  let i = typeof e == "object" && e && "status" in e ? Number(e.status) : void 0;
393
392
  return {
394
393
  code: t,
@@ -397,170 +396,170 @@ var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "g
397
396
  cause: e
398
397
  };
399
398
  }
400
- function Ct(e, t, n) {
399
+ function Tt(e, t, n) {
401
400
  return `${e}:${t}:${n ? "thumbnail" : "preview"}`;
402
401
  }
403
- function wt(e) {
404
- if (!(e in I.value)) return;
405
- let t = { ...I.value };
406
- delete t[e], I.value = t;
407
- }
408
- function Tt() {
409
- Fe &&= (clearTimeout(Fe), void 0);
410
- }
411
402
  function Et(e) {
412
- let t = e ?? (() => !0), n = new Set(G.abort(t));
413
- n.size && (F.value = F.value.filter((e) => !n.has(e))), e || (W = []);
403
+ if (!(e in F.value)) return;
404
+ let t = { ...F.value };
405
+ delete t[e], F.value = t;
414
406
  }
415
- function Dt(e) {
416
- return !!(e && typeof e == "object" && "cancelled" in e && e.cancelled) || e instanceof DOMException && e.name === "AbortError";
407
+ function Dt() {
408
+ H &&= (clearTimeout(H), void 0);
417
409
  }
418
410
  function Ot(e) {
419
- let t = q.value;
420
- t && nt(t.fileId, e, !1);
411
+ let t = e ?? (() => !0), n = new Set(W.abort(t));
412
+ n.size && (P.value = P.value.filter((e) => !n.has(e))), e || (U = []);
421
413
  }
422
414
  function kt(e) {
415
+ return !!(e && typeof e == "object" && "cancelled" in e && e.cancelled) || e instanceof DOMException && e.name === "AbortError";
416
+ }
417
+ function At(e) {
418
+ let t = K.value;
419
+ t && it(t.fileId, e, !1);
420
+ }
421
+ function jt(e) {
423
422
  return {
424
423
  ...e,
425
424
  sealType: e.sealType ? [...e.sealType] : void 0
426
425
  };
427
426
  }
428
- function $(e) {
427
+ function Mt(e) {
429
428
  return JSON.stringify(e);
430
429
  }
431
- function At() {
430
+ function Nt() {
432
431
  return typeof crypto < "u" && "randomUUID" in crypto ? `contract-signing-placement-${crypto.randomUUID()}` : `contract-signing-placement-${Date.now()}-${Math.random().toString(36).slice(2, 8)}`;
433
432
  }
434
- function jt(e) {
433
+ function Pt(e) {
435
434
  if (typeof e == "number" && Number.isFinite(e) && e > 0) return { "--gd-ant-contract-signing-location-height": `${e}px` };
436
435
  if (typeof e == "string" && e.trim()) return { "--gd-ant-contract-signing-location-height": e.trim() };
437
436
  }
438
- return me({
439
- load: et,
440
- validate: mt,
441
- getValue: ht,
442
- getOutput: gt,
443
- submit: _t,
444
- reset: bt,
445
- addPlacement: ut,
446
- removePlacement: pt,
447
- fitWidth: $e
448
- }), (t, n) => (v(), m("section", {
449
- class: he(["gd-ant-contract-signing-location", {
450
- "is-readonly": Le.value,
437
+ return he({
438
+ load: nt,
439
+ validate: gt,
440
+ getValue: _t,
441
+ getOutput: vt,
442
+ submit: yt,
443
+ reset: Ct,
444
+ addPlacement: ft,
445
+ removePlacement: ht,
446
+ fitWidth: tt
447
+ }), (t, n) => (_(), pe("section", {
448
+ class: ge(["gd-ant-contract-signing-location", {
449
+ "is-readonly": Re.value,
451
450
  "is-disabled": e.disabled,
452
- "is-preview": K.value
451
+ "is-preview": G.value
453
452
  }]),
454
- style: ge(Ve.value)
453
+ style: _e(He.value)
455
454
  }, [
456
- h("header", Ce, [h("div", we, [n[6] ||= h("span", {
455
+ m("header", we, [m("div", Te, [n[6] ||= m("span", {
457
456
  class: "gd-ant-contract-signing-location__title-bar",
458
457
  "aria-hidden": "true"
459
- }, null, -1), h("div", null, [h("strong", null, ve(K.value ? "合同预览" : "指定合同签署位置"), 1)])]), h("div", Te, [
460
- h("span", Ee, ve(k.value.placements.length) + " 个位置", 1),
461
- e.dataProvider ? (v(), f(x(w), {
458
+ }, null, -1), m("div", null, [m("strong", null, ye(G.value ? "合同预览" : "指定合同签署位置"), 1)])]), m("div", Ee, [
459
+ m("span", De, ye(O.value.placements.length) + " 个位置", 1),
460
+ e.dataProvider ? (_(), f(b(C), {
462
461
  key: 0,
463
- loading: N.value,
464
- onClick: et
462
+ loading: M.value,
463
+ onClick: nt
465
464
  }, {
466
- default: C(() => [g(x(xe), { "aria-hidden": "true" }), n[7] ||= pe(" 重新加载 ", -1)]),
465
+ default: S(() => [h(b(Se), { "aria-hidden": "true" }), n[7] ||= me(" 重新加载 ", -1)]),
467
466
  _: 1
468
467
  }, 8, ["loading"])) : p("", !0),
469
- K.value ? p("", !0) : (v(), f(x(w), {
468
+ G.value ? p("", !0) : (_(), f(b(C), {
470
469
  key: 1,
471
470
  disabled: Y.value,
472
- onClick: bt
471
+ onClick: Ct
473
472
  }, {
474
- default: C(() => [...n[8] ||= [pe("重置", -1)]]),
473
+ default: S(() => [...n[8] ||= [me("重置", -1)]]),
475
474
  _: 1
476
475
  }, 8, ["disabled"])),
477
- ze.value ? (v(), f(x(w), {
476
+ Be.value ? (_(), f(b(C), {
478
477
  key: 2,
479
478
  type: "primary",
480
- loading: N.value,
481
- disabled: e.disabled || J.value,
482
- onClick: _t
479
+ loading: M.value,
480
+ disabled: e.disabled || q.value,
481
+ onClick: yt
483
482
  }, {
484
- default: C(() => [...n[9] ||= [pe("确认并生成规则", -1)]]),
483
+ default: S(() => [...n[9] ||= [me("确认并生成规则", -1)]]),
485
484
  _: 1
486
485
  }, 8, ["loading", "disabled"])) : p("", !0)
487
486
  ])]),
488
- P.value || He.value ? (v(), m("div", De, [h("span", null, ve(P.value || He.value), 1), P.value && e.dataProvider && e.contractId ? (v(), f(x(w), {
487
+ Ue.value ? (_(), pe("div", Oe, [m("span", null, ye(Ue.value), 1), We.value ? (_(), f(b(C), {
489
488
  key: 0,
490
489
  type: "link",
491
490
  size: "small",
492
- onClick: et
491
+ onClick: nt
493
492
  }, {
494
- default: C(() => [...n[10] ||= [pe("重试", -1)]]),
493
+ default: S(() => [...n[10] ||= [me("重试", -1)]]),
495
494
  _: 1
496
495
  })) : p("", !0)])) : p("", !0),
497
- h("div", { class: he(["gd-ant-contract-signing-location__body", {
498
- "is-single-file": Be.value,
499
- "is-inspector-hidden": !Re.value
496
+ m("div", { class: ge(["gd-ant-contract-signing-location__body", {
497
+ "is-single-file": Ve.value,
498
+ "is-inspector-hidden": !ze.value
500
499
  }]) }, [
501
- Be.value ? p("", !0) : (v(), m("div", {
500
+ Ve.value ? p("", !0) : (_(), pe("div", {
502
501
  key: 0,
503
- class: he(["gd-ant-contract-signing-location__navigator-wrap", { "is-collapsed": B.value }])
504
- }, [g(x(ye), { title: B.value ? "展开页面栏" : "收起页面栏" }, {
505
- default: C(() => [h("button", {
502
+ class: ge(["gd-ant-contract-signing-location__navigator-wrap", { "is-collapsed": R.value }])
503
+ }, [h(b(be), { title: R.value ? "展开页面栏" : "收起页面栏" }, {
504
+ default: S(() => [m("button", {
506
505
  type: "button",
507
506
  class: "gd-ant-contract-signing-location__panel-handle",
508
- "aria-label": B.value ? "展开页面栏" : "收起页面栏",
509
- "aria-expanded": !B.value,
510
- onClick: n[0] ||= (e) => B.value = !B.value
511
- }, [B.value ? (v(), f(x(Se), {
507
+ "aria-label": R.value ? "展开页面栏" : "收起页面栏",
508
+ "aria-expanded": !R.value,
509
+ onClick: n[0] ||= (e) => R.value = !R.value
510
+ }, [R.value ? (_(), f(b(Ce), {
512
511
  key: 0,
513
512
  "aria-hidden": "true"
514
- })) : (v(), f(x(be), {
513
+ })) : (_(), f(b(xe), {
515
514
  key: 1,
516
515
  "aria-hidden": "true"
517
- }))], 8, Oe)]),
516
+ }))], 8, ke)]),
518
517
  _: 1
519
- }, 8, ["title"]), h("div", ke, [g(de, {
520
- files: k.value.files,
521
- "active-file-id": A.value,
522
- "loading-preview-keys": qe.value,
523
- "error-preview-keys": Je.value,
524
- onSelect: rt
518
+ }, 8, ["title"]), m("div", Ae, [h(de, {
519
+ files: O.value.files,
520
+ "active-file-id": k.value,
521
+ "loading-preview-keys": Ye.value,
522
+ "error-preview-keys": Xe.value,
523
+ onSelect: at
525
524
  }, null, 8, [
526
525
  "files",
527
526
  "active-file-id",
528
527
  "loading-preview-keys",
529
528
  "error-preview-keys"
530
529
  ])])], 2)),
531
- g(le, {
530
+ h(le, {
532
531
  ref_key: "canvasRef",
533
- ref: R,
534
- file: q.value,
535
- pages: q.value?.pages ?? [],
536
- placements: We.value,
537
- "reference-placements": Ge.value,
538
- "selected-placement-id": M.value,
532
+ ref: I,
533
+ file: K.value,
534
+ pages: K.value?.pages ?? [],
535
+ placements: Ke.value,
536
+ "reference-placements": qe.value,
537
+ "selected-placement-id": j.value,
539
538
  readonly: Y.value,
540
539
  resizable: e.resizable,
541
- "seal-size-limit": D.value,
540
+ "seal-size-limit": E.value,
542
541
  "seal-type-options": e.sealTypeOptions,
543
- zoom: L.value,
544
- "preview-loading-keys": Ye.value,
545
- "preview-error-map": Xe.value,
546
- "active-page-index": j.value,
542
+ zoom: Fe.value,
543
+ "preview-loading-keys": Ze.value,
544
+ "preview-error-map": Qe.value,
545
+ "active-page-index": A.value,
547
546
  "min-zoom": e.minZoom,
548
547
  "max-zoom": e.maxZoom,
549
548
  "font-base-url": e.contractFontBaseUrl,
550
- onSelect: n[1] ||= (e) => M.value = e,
551
- onRetry: Ot,
552
- onAdd: n[2] ||= (e, t, n, r) => ut(e, {
549
+ onSelect: n[1] ||= (e) => j.value = e,
550
+ onRetry: At,
551
+ onAdd: n[2] ||= (e, t, n, r) => ft(e, {
553
552
  signLeft: t,
554
553
  signTop: n,
555
554
  pageIndex: r
556
555
  }),
557
- onUpdate: n[3] ||= (e) => dt(e.id, e),
558
- onRemove: pt,
559
- onVisiblePages: ot,
560
- onViewPage: it,
561
- onPageChange: at,
562
- onZoomChange: Qe,
563
- onTemplateStatus: vt
556
+ onUpdate: n[3] ||= (e) => pt(e.id, e),
557
+ onRemove: ht,
558
+ onVisiblePages: ct,
559
+ onViewPage: ot,
560
+ onPageChange: st,
561
+ onZoomChange: et,
562
+ onTemplateStatus: bt
564
563
  }, null, 8, [
565
564
  "file",
566
565
  "pages",
@@ -579,40 +578,40 @@ var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "g
579
578
  "max-zoom",
580
579
  "font-base-url"
581
580
  ]),
582
- Re.value ? (v(), m("div", {
581
+ ze.value ? (_(), pe("div", {
583
582
  key: 1,
584
- class: he(["gd-ant-contract-signing-location__inspector-wrap", { "is-collapsed": z.value }])
585
- }, [g(x(ye), { title: z.value ? "展开属性栏" : "收起属性栏" }, {
586
- default: C(() => [h("button", {
583
+ class: ge(["gd-ant-contract-signing-location__inspector-wrap", { "is-collapsed": L.value }])
584
+ }, [h(b(be), { title: L.value ? "展开属性栏" : "收起属性栏" }, {
585
+ default: S(() => [m("button", {
587
586
  type: "button",
588
587
  class: "gd-ant-contract-signing-location__panel-handle",
589
- "aria-label": z.value ? "展开属性栏" : "收起属性栏",
590
- "aria-expanded": !z.value,
591
- onClick: n[4] ||= (e) => z.value = !z.value
592
- }, [z.value ? (v(), f(x(be), {
588
+ "aria-label": L.value ? "展开属性栏" : "收起属性栏",
589
+ "aria-expanded": !L.value,
590
+ onClick: n[4] ||= (e) => L.value = !L.value
591
+ }, [L.value ? (_(), f(b(xe), {
593
592
  key: 0,
594
593
  "aria-hidden": "true"
595
- })) : (v(), f(x(Se), {
594
+ })) : (_(), f(b(Ce), {
596
595
  key: 1,
597
596
  "aria-hidden": "true"
598
- }))], 8, Ae)]),
597
+ }))], 8, je)]),
599
598
  _: 1
600
- }, 8, ["title"]), h("div", je, [g(ue, {
599
+ }, 8, ["title"]), m("div", Me, [h(ue, {
601
600
  placement: X.value,
602
- page: Ke.value,
603
- pages: q.value?.pages ?? [],
604
- placements: We.value,
601
+ page: Je.value,
602
+ pages: K.value?.pages ?? [],
603
+ placements: Ke.value,
605
604
  readonly: Y.value,
606
605
  resizable: e.resizable,
607
- "seal-size-limit": D.value,
606
+ "seal-size-limit": E.value,
608
607
  "seal-type-options": e.sealTypeOptions,
609
608
  "allowed-placement-types": e.allowedPlacementTypes,
610
609
  "size-profile": e.sizeProfile,
611
- onAdd: ut,
612
- onUpdate: n[5] ||= (e) => X.value && dt(X.value.id, e),
613
- onDuplicate: ft,
614
- onRemove: pt,
615
- onLocate: lt
610
+ onAdd: ft,
611
+ onUpdate: n[5] ||= (e) => X.value && pt(X.value.id, e),
612
+ onDuplicate: mt,
613
+ onRemove: ht,
614
+ onLocate: dt
616
615
  }, null, 8, [
617
616
  "placement",
618
617
  "page",
@@ -630,4 +629,4 @@ var Ce = { class: "gd-ant-contract-signing-location__header" }, we = { class: "g
630
629
  }
631
630
  });
632
631
  //#endregion
633
- export { Me as default };
632
+ export { Ne as default };