@guodun/antdv 1.7.9 → 1.7.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/contract-signing-location/src/ContractSigningLocation.vue.mjs +295 -296
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +247 -220
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.mjs +1 -1
- package/dist/es/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.mjs +297 -294
- package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +1 -2
- package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +1 -1
- package/dist/es/components/pro-contract-template-designer/src/utils/contract-print-document.mjs +7 -1
- package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +113 -102
- package/dist/es/components/pro-contract-template-designer/src/utils/template-variable-render.mjs +35 -20
- package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/es/index.mjs +19 -19
- package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateSingleRenderer.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/contract-print-document.cjs +7 -1
- package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +5 -3
- package/dist/lib/components/pro-contract-template-designer/src/utils/template-variable-render.cjs +1 -1
- package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
- package/dist/lib/index.cjs +1 -1
- package/dist/theme/icon.css +1 -1
- package/dist/theme/index.css +1 -1
- package/dist/types/components/pro-contract-template-designer/src/types.d.ts +3 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/contract-print-document.d.ts +1 -1
- package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +2 -0
- package/dist/types/components/pro-contract-template-designer/src/utils/template-variable-render.d.ts +8 -2
- package/package.json +3 -2
|
@@ -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
|
|
11
|
-
import { Button as
|
|
12
|
-
import { LeftOutlined as
|
|
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
|
|
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
|
-
},
|
|
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:
|
|
78
|
-
let
|
|
79
|
-
sealSizeLimit:
|
|
80
|
-
sealTypeOptions:
|
|
81
|
-
}),
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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(
|
|
95
|
-
}),
|
|
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(
|
|
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
|
-
|
|
96
|
+
x(() => w.modelValue, (e) => {
|
|
102
97
|
if (!e) return;
|
|
103
98
|
let t = u(e, {
|
|
104
|
-
sealSizeLimit:
|
|
105
|
-
sealTypeOptions:
|
|
99
|
+
sealSizeLimit: E.value,
|
|
100
|
+
sealTypeOptions: w.sealTypeOptions
|
|
106
101
|
});
|
|
107
|
-
|
|
108
|
-
}, { deep: !0 }),
|
|
109
|
-
|
|
110
|
-
sealSizeLimit:
|
|
111
|
-
sealTypeOptions:
|
|
112
|
-
})) !==
|
|
113
|
-
}),
|
|
114
|
-
|
|
115
|
-
}),
|
|
116
|
-
|
|
117
|
-
}),
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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]) &&
|
|
123
|
-
}, { immediate: !0 }),
|
|
124
|
-
|
|
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
|
|
127
|
-
return n(e, Math.min(
|
|
121
|
+
function $e(e) {
|
|
122
|
+
return n(e, Math.min(w.minZoom, w.maxZoom), Math.max(w.minZoom, w.maxZoom));
|
|
128
123
|
}
|
|
129
|
-
function
|
|
130
|
-
let t =
|
|
131
|
-
|
|
124
|
+
function et(e) {
|
|
125
|
+
let t = $e(e);
|
|
126
|
+
Fe.value = t, T("update:zoom", t);
|
|
132
127
|
}
|
|
133
|
-
function
|
|
134
|
-
return
|
|
128
|
+
function tt() {
|
|
129
|
+
return I.value?.fitWidth() ?? Fe.value;
|
|
135
130
|
}
|
|
136
131
|
function Z(e, t = {}) {
|
|
137
|
-
|
|
138
|
-
sealSizeLimit:
|
|
139
|
-
sealTypeOptions:
|
|
140
|
-
}), t.clearError !== !1 && (
|
|
141
|
-
let n = s(
|
|
142
|
-
return
|
|
143
|
-
}
|
|
144
|
-
async function
|
|
145
|
-
let e = String(
|
|
146
|
-
if (!
|
|
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
|
|
145
|
+
if (!e) return $({
|
|
151
146
|
code: "CONTRACT_ID_MISSING",
|
|
152
147
|
message: "缺少用于加载合同的 PaaS contractId"
|
|
153
148
|
}), !1;
|
|
154
|
-
let t = ++
|
|
155
|
-
|
|
149
|
+
let t = ++B;
|
|
150
|
+
Ot(), M.value = !0, N.value = "";
|
|
156
151
|
try {
|
|
157
|
-
let n = await
|
|
158
|
-
if (
|
|
159
|
-
let i = ie(n, r(
|
|
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 :
|
|
157
|
+
placements: i.placements.length ? i.placements : O.value.contractId === e ? O.value.placements : []
|
|
163
158
|
}, {
|
|
164
|
-
sealSizeLimit:
|
|
165
|
-
sealTypeOptions:
|
|
159
|
+
sealSizeLimit: E.value,
|
|
160
|
+
sealTypeOptions: w.sealTypeOptions
|
|
166
161
|
});
|
|
167
|
-
|
|
162
|
+
O.value = a, Pe.value = s(a), j.value = "", Q();
|
|
168
163
|
let o = s(a);
|
|
169
|
-
return
|
|
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
|
|
166
|
+
return V || t !== B || $(wt(e, "CONTRACT_LOAD_FAILED", "合同加载失败,请检查授权后重试")), !1;
|
|
172
167
|
} finally {
|
|
173
|
-
!
|
|
168
|
+
!V && t === B && (M.value = !1);
|
|
174
169
|
}
|
|
175
170
|
}
|
|
176
|
-
async function
|
|
177
|
-
|
|
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 ?
|
|
175
|
+
return t && !t.thumbnailUrl ? it(e.fileId, t.pageIndex, !0) : Promise.resolve();
|
|
181
176
|
}));
|
|
182
177
|
}
|
|
183
|
-
async function
|
|
184
|
-
let i =
|
|
185
|
-
if (!i || a(o) || !ee ||
|
|
186
|
-
|
|
187
|
-
let c =
|
|
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:
|
|
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 (
|
|
197
|
-
let o = se(l(
|
|
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
|
-
...
|
|
201
|
+
...O.value,
|
|
207
202
|
files: ee
|
|
208
203
|
}, { clearError: !1 });
|
|
209
204
|
} catch (n) {
|
|
210
|
-
if (!
|
|
211
|
-
let r =
|
|
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
|
-
|
|
216
|
-
...
|
|
210
|
+
T("error", r), F.value = {
|
|
211
|
+
...F.value,
|
|
217
212
|
[s]: r.message
|
|
218
213
|
};
|
|
219
214
|
} finally {
|
|
220
|
-
|
|
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
|
-
|
|
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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
|
242
|
-
let n =
|
|
243
|
-
!n || a(n) || 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 ||
|
|
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
|
-
}),
|
|
244
|
+
}), ut());
|
|
250
245
|
}
|
|
251
|
-
async function
|
|
252
|
-
let e =
|
|
253
|
-
for (
|
|
254
|
-
let t =
|
|
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(
|
|
257
|
-
!n || a(r) || n.previewUrl ||
|
|
258
|
-
|
|
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
|
|
263
|
-
let t =
|
|
264
|
-
t && (t.fileId !==
|
|
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
|
|
267
|
-
if (Y.value || !
|
|
268
|
-
let n = t.fileId ??
|
|
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(
|
|
265
|
+
let i = l(O.value, n, r);
|
|
271
266
|
if (!i || !re(i)) {
|
|
272
|
-
|
|
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(
|
|
275
|
+
let a = oe(w.defaultSealTypes, w.sealTypeOptions);
|
|
281
276
|
if (e === "seal" && !a.length) {
|
|
282
|
-
|
|
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:
|
|
294
|
-
sealSizeLimit:
|
|
295
|
-
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
|
-
...
|
|
300
|
-
placements: [...
|
|
301
|
-
}),
|
|
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
|
|
298
|
+
function pt(e, t) {
|
|
304
299
|
Y.value || Z({
|
|
305
|
-
...
|
|
306
|
-
placements:
|
|
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(
|
|
310
|
-
sealSizeLimit:
|
|
311
|
-
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
|
|
311
|
+
function mt() {
|
|
317
312
|
let e = X.value;
|
|
318
313
|
if (!e || Y.value) return;
|
|
319
|
-
let n = l(
|
|
314
|
+
let n = l(O.value, e.fileId, e.pageIndex);
|
|
320
315
|
if (!n) return;
|
|
321
316
|
let r = t({
|
|
322
|
-
...
|
|
323
|
-
id:
|
|
317
|
+
...jt(e),
|
|
318
|
+
id: Nt(),
|
|
324
319
|
signLeft: e.signLeft + 16,
|
|
325
320
|
signTop: e.signTop + 16
|
|
326
|
-
}, n, { sealSizeLimit:
|
|
321
|
+
}, n, { sealSizeLimit: E.value });
|
|
327
322
|
Z({
|
|
328
|
-
...
|
|
329
|
-
placements: [...
|
|
330
|
-
}),
|
|
323
|
+
...O.value,
|
|
324
|
+
placements: [...O.value.placements, r]
|
|
325
|
+
}), j.value = r.id;
|
|
331
326
|
}
|
|
332
|
-
function
|
|
327
|
+
function ht(e) {
|
|
333
328
|
Y.value || (Z({
|
|
334
|
-
...
|
|
335
|
-
placements:
|
|
336
|
-
}),
|
|
329
|
+
...O.value,
|
|
330
|
+
placements: O.value.placements.filter((t) => t.id !== e)
|
|
331
|
+
}), j.value === e && (j.value = ""));
|
|
337
332
|
}
|
|
338
|
-
function
|
|
339
|
-
let e = ce(
|
|
340
|
-
return
|
|
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:
|
|
337
|
+
message: St()
|
|
343
338
|
}] : e;
|
|
344
339
|
}
|
|
345
|
-
function
|
|
346
|
-
return s(
|
|
340
|
+
function _t() {
|
|
341
|
+
return s(O.value);
|
|
347
342
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
343
|
+
function vt() {
|
|
344
|
+
if (q.value) throw new o([{
|
|
350
345
|
code: "CONTRACT_TEMPLATE_FONT_UNAVAILABLE",
|
|
351
|
-
message:
|
|
346
|
+
message: St()
|
|
352
347
|
}]);
|
|
353
|
-
return ee(
|
|
348
|
+
return ee(_t(), { allowedSealTypes: w.sealTypeOptions.map((e) => e.value) });
|
|
354
349
|
}
|
|
355
|
-
function
|
|
356
|
-
if (
|
|
357
|
-
let e =
|
|
358
|
-
return console.error("[GD-SIGN-COORD]", e),
|
|
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 =
|
|
365
|
-
return
|
|
359
|
+
let e = vt();
|
|
360
|
+
return N.value = "", T("submit", e), e;
|
|
366
361
|
} catch (e) {
|
|
367
|
-
return
|
|
362
|
+
return $(e instanceof o ? {
|
|
368
363
|
...e.errors[0],
|
|
369
364
|
cause: e
|
|
370
|
-
} :
|
|
365
|
+
} : wt(e, "CONTRACT_SIGNING_LOCATION_INVALID", "指定签署位置数据不完整")), !1;
|
|
371
366
|
}
|
|
372
367
|
}
|
|
373
|
-
function
|
|
374
|
-
|
|
368
|
+
function bt(e, t) {
|
|
369
|
+
z.value = e, Ie.value = e === "error" ? t || "合同排版度量校验失败" : "";
|
|
375
370
|
}
|
|
376
|
-
function
|
|
377
|
-
|
|
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
|
|
380
|
-
|
|
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
|
|
385
|
-
|
|
386
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
413
|
-
|
|
403
|
+
if (!(e in F.value)) return;
|
|
404
|
+
let t = { ...F.value };
|
|
405
|
+
delete t[e], F.value = t;
|
|
414
406
|
}
|
|
415
|
-
function Dt(
|
|
416
|
-
|
|
407
|
+
function Dt() {
|
|
408
|
+
H &&= (clearTimeout(H), void 0);
|
|
417
409
|
}
|
|
418
410
|
function Ot(e) {
|
|
419
|
-
let t =
|
|
420
|
-
|
|
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
|
|
427
|
+
function Mt(e) {
|
|
429
428
|
return JSON.stringify(e);
|
|
430
429
|
}
|
|
431
|
-
function
|
|
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
|
|
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
|
|
439
|
-
load:
|
|
440
|
-
validate:
|
|
441
|
-
getValue:
|
|
442
|
-
getOutput:
|
|
443
|
-
submit:
|
|
444
|
-
reset:
|
|
445
|
-
addPlacement:
|
|
446
|
-
removePlacement:
|
|
447
|
-
fitWidth:
|
|
448
|
-
}), (t, n) => (
|
|
449
|
-
class:
|
|
450
|
-
"is-readonly":
|
|
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":
|
|
451
|
+
"is-preview": G.value
|
|
453
452
|
}]),
|
|
454
|
-
style:
|
|
453
|
+
style: _e(He.value)
|
|
455
454
|
}, [
|
|
456
|
-
|
|
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),
|
|
460
|
-
|
|
461
|
-
e.dataProvider ? (
|
|
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:
|
|
464
|
-
onClick:
|
|
462
|
+
loading: M.value,
|
|
463
|
+
onClick: nt
|
|
465
464
|
}, {
|
|
466
|
-
default:
|
|
465
|
+
default: S(() => [h(b(Se), { "aria-hidden": "true" }), n[7] ||= me(" 重新加载 ", -1)]),
|
|
467
466
|
_: 1
|
|
468
467
|
}, 8, ["loading"])) : p("", !0),
|
|
469
|
-
|
|
468
|
+
G.value ? p("", !0) : (_(), f(b(C), {
|
|
470
469
|
key: 1,
|
|
471
470
|
disabled: Y.value,
|
|
472
|
-
onClick:
|
|
471
|
+
onClick: Ct
|
|
473
472
|
}, {
|
|
474
|
-
default:
|
|
473
|
+
default: S(() => [...n[8] ||= [me("重置", -1)]]),
|
|
475
474
|
_: 1
|
|
476
475
|
}, 8, ["disabled"])),
|
|
477
|
-
|
|
476
|
+
Be.value ? (_(), f(b(C), {
|
|
478
477
|
key: 2,
|
|
479
478
|
type: "primary",
|
|
480
|
-
loading:
|
|
481
|
-
disabled: e.disabled ||
|
|
482
|
-
onClick:
|
|
479
|
+
loading: M.value,
|
|
480
|
+
disabled: e.disabled || q.value,
|
|
481
|
+
onClick: yt
|
|
483
482
|
}, {
|
|
484
|
-
default:
|
|
483
|
+
default: S(() => [...n[9] ||= [me("确认并生成规则", -1)]]),
|
|
485
484
|
_: 1
|
|
486
485
|
}, 8, ["loading", "disabled"])) : p("", !0)
|
|
487
486
|
])]),
|
|
488
|
-
|
|
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:
|
|
491
|
+
onClick: nt
|
|
493
492
|
}, {
|
|
494
|
-
default:
|
|
493
|
+
default: S(() => [...n[10] ||= [me("重试", -1)]]),
|
|
495
494
|
_: 1
|
|
496
495
|
})) : p("", !0)])) : p("", !0),
|
|
497
|
-
|
|
498
|
-
"is-single-file":
|
|
499
|
-
"is-inspector-hidden": !
|
|
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
|
-
|
|
500
|
+
Ve.value ? p("", !0) : (_(), pe("div", {
|
|
502
501
|
key: 0,
|
|
503
|
-
class:
|
|
504
|
-
}, [
|
|
505
|
-
default:
|
|
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":
|
|
509
|
-
"aria-expanded": !
|
|
510
|
-
onClick: n[0] ||= (e) =>
|
|
511
|
-
}, [
|
|
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
|
-
})) : (
|
|
513
|
+
})) : (_(), f(b(xe), {
|
|
515
514
|
key: 1,
|
|
516
515
|
"aria-hidden": "true"
|
|
517
|
-
}))], 8,
|
|
516
|
+
}))], 8, ke)]),
|
|
518
517
|
_: 1
|
|
519
|
-
}, 8, ["title"]),
|
|
520
|
-
files:
|
|
521
|
-
"active-file-id":
|
|
522
|
-
"loading-preview-keys":
|
|
523
|
-
"error-preview-keys":
|
|
524
|
-
onSelect:
|
|
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
|
-
|
|
530
|
+
h(le, {
|
|
532
531
|
ref_key: "canvasRef",
|
|
533
|
-
ref:
|
|
534
|
-
file:
|
|
535
|
-
pages:
|
|
536
|
-
placements:
|
|
537
|
-
"reference-placements":
|
|
538
|
-
"selected-placement-id":
|
|
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":
|
|
540
|
+
"seal-size-limit": E.value,
|
|
542
541
|
"seal-type-options": e.sealTypeOptions,
|
|
543
|
-
zoom:
|
|
544
|
-
"preview-loading-keys":
|
|
545
|
-
"preview-error-map":
|
|
546
|
-
"active-page-index":
|
|
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) =>
|
|
551
|
-
onRetry:
|
|
552
|
-
onAdd: n[2] ||= (e, t, n, r) =>
|
|
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) =>
|
|
558
|
-
onRemove:
|
|
559
|
-
onVisiblePages:
|
|
560
|
-
onViewPage:
|
|
561
|
-
onPageChange:
|
|
562
|
-
onZoomChange:
|
|
563
|
-
onTemplateStatus:
|
|
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
|
-
|
|
581
|
+
ze.value ? (_(), pe("div", {
|
|
583
582
|
key: 1,
|
|
584
|
-
class:
|
|
585
|
-
}, [
|
|
586
|
-
default:
|
|
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":
|
|
590
|
-
"aria-expanded": !
|
|
591
|
-
onClick: n[4] ||= (e) =>
|
|
592
|
-
}, [
|
|
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
|
-
})) : (
|
|
594
|
+
})) : (_(), f(b(Ce), {
|
|
596
595
|
key: 1,
|
|
597
596
|
"aria-hidden": "true"
|
|
598
|
-
}))], 8,
|
|
597
|
+
}))], 8, je)]),
|
|
599
598
|
_: 1
|
|
600
|
-
}, 8, ["title"]),
|
|
599
|
+
}, 8, ["title"]), m("div", Me, [h(ue, {
|
|
601
600
|
placement: X.value,
|
|
602
|
-
page:
|
|
603
|
-
pages:
|
|
604
|
-
placements:
|
|
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":
|
|
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:
|
|
612
|
-
onUpdate: n[5] ||= (e) => X.value &&
|
|
613
|
-
onDuplicate:
|
|
614
|
-
onRemove:
|
|
615
|
-
onLocate:
|
|
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 {
|
|
632
|
+
export { Ne as default };
|