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