@rhc-office/sdk 6.6.400 → 6.6.402
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/api/annotation-tool.d.ts +5 -0
- package/dist/api/annotation-tool.d.ts.map +1 -1
- package/dist/browser/document-viewer.js +1 -1
- package/dist/browser/document-viewer.js.map +1 -1
- package/dist/index.js +263 -257
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/viewer/BridgeToolAdapter.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/annotation-tool.ts +5 -0
- package/src/viewer/BridgeToolAdapter.ts +28 -1
package/dist/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
2
|
-
const
|
|
1
|
+
var ne = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.COMPACT = "compact", t.HIDE = "none", t))(ne || {});
|
|
2
|
+
const z = "RIGHT_CENTER", G = "REGULAR_ESM", H = "auto", f = "__RHC_OFFICE_DIGITAL_SIGN_ENVIRONMENT__", P = {
|
|
3
3
|
defaults: {
|
|
4
4
|
bjca: {
|
|
5
5
|
pin: ""
|
|
6
6
|
},
|
|
7
7
|
deviceType: "client",
|
|
8
|
-
edgePosition:
|
|
8
|
+
edgePosition: z,
|
|
9
9
|
plugin: {
|
|
10
10
|
pin: "",
|
|
11
11
|
usbKeyType: 14
|
|
12
12
|
},
|
|
13
|
-
rsaMode:
|
|
14
|
-
signatureType:
|
|
13
|
+
rsaMode: H,
|
|
14
|
+
signatureType: G
|
|
15
15
|
},
|
|
16
16
|
signServer: {
|
|
17
17
|
authSource: "Password",
|
|
@@ -25,7 +25,7 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
25
25
|
usbKeyType: 14
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
},
|
|
28
|
+
}, Q = (t) => ({
|
|
29
29
|
bjca: {
|
|
30
30
|
pin: t.bjca.pin
|
|
31
31
|
},
|
|
@@ -37,7 +37,7 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
37
37
|
},
|
|
38
38
|
rsaMode: t.rsaMode,
|
|
39
39
|
signatureType: t.signatureType
|
|
40
|
-
}),
|
|
40
|
+
}), j = (t) => ({
|
|
41
41
|
authSource: t.authSource,
|
|
42
42
|
defaultLogin: t.defaultLogin,
|
|
43
43
|
defaultPassword: t.defaultPassword,
|
|
@@ -49,9 +49,9 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
49
49
|
usbKeyType: t.usbKey.usbKeyType
|
|
50
50
|
}
|
|
51
51
|
}), m = (t) => ({
|
|
52
|
-
defaults:
|
|
53
|
-
signServer:
|
|
54
|
-
}),
|
|
52
|
+
defaults: Q(t.defaults),
|
|
53
|
+
signServer: j(t.signServer)
|
|
54
|
+
}), C = (t) => ({
|
|
55
55
|
defaults: t.defaults ? {
|
|
56
56
|
...t.defaults,
|
|
57
57
|
bjca: t.defaults.bjca ? { ...t.defaults.bjca } : void 0,
|
|
@@ -61,7 +61,7 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
61
61
|
...t.signServer,
|
|
62
62
|
usbKey: t.signServer.usbKey ? { ...t.signServer.usbKey } : void 0
|
|
63
63
|
} : void 0
|
|
64
|
-
}),
|
|
64
|
+
}), ie = (t, n) => n ? {
|
|
65
65
|
bjca: {
|
|
66
66
|
pin: n.bjca?.pin ?? t.bjca.pin
|
|
67
67
|
},
|
|
@@ -73,7 +73,7 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
73
73
|
},
|
|
74
74
|
rsaMode: n.rsaMode ?? t.rsaMode,
|
|
75
75
|
signatureType: n.signatureType ?? t.signatureType
|
|
76
|
-
} :
|
|
76
|
+
} : Q(t), re = (t, n) => n ? {
|
|
77
77
|
authSource: n.authSource ?? t.authSource,
|
|
78
78
|
defaultLogin: n.defaultLogin ?? t.defaultLogin,
|
|
79
79
|
defaultPassword: n.defaultPassword ?? t.defaultPassword,
|
|
@@ -84,10 +84,10 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
84
84
|
checkCertificateBinding: n.usbKey?.checkCertificateBinding ?? t.usbKey.checkCertificateBinding,
|
|
85
85
|
usbKeyType: n.usbKey?.usbKeyType ?? t.usbKey.usbKeyType
|
|
86
86
|
}
|
|
87
|
-
} :
|
|
88
|
-
defaults:
|
|
89
|
-
signServer:
|
|
90
|
-
}),
|
|
87
|
+
} : j(t), $ = (t, n) => ({
|
|
88
|
+
defaults: ie(t.defaults, n.defaults),
|
|
89
|
+
signServer: re(t.signServer, n.signServer)
|
|
90
|
+
}), ae = (t, n) => {
|
|
91
91
|
const e = t.defaults?.bjca || n.defaults?.bjca ? {
|
|
92
92
|
...t.defaults?.bjca,
|
|
93
93
|
...n.defaults?.bjca
|
|
@@ -111,40 +111,45 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
111
111
|
...r ? { usbKey: r } : {}
|
|
112
112
|
} : void 0
|
|
113
113
|
};
|
|
114
|
-
},
|
|
115
|
-
const t =
|
|
114
|
+
}, se = () => globalThis, p = () => {
|
|
115
|
+
const t = se();
|
|
116
116
|
return t[f] || (t[f] = {
|
|
117
|
-
current: m(
|
|
118
|
-
defaults: m(
|
|
117
|
+
current: m(P),
|
|
118
|
+
defaults: m(P),
|
|
119
119
|
overrides: {}
|
|
120
120
|
}), t[f];
|
|
121
|
-
},
|
|
121
|
+
}, Et = () => p().current, At = () => {
|
|
122
122
|
const t = p();
|
|
123
123
|
return {
|
|
124
124
|
current: m(t.current),
|
|
125
125
|
defaults: m(t.defaults),
|
|
126
|
-
overrides:
|
|
126
|
+
overrides: C(t.overrides)
|
|
127
127
|
};
|
|
128
|
-
}, Et = (t) => {
|
|
129
|
-
const n = p();
|
|
130
|
-
return n.defaults = m(t), n.current = Q(n.defaults, n.overrides), n.current;
|
|
131
|
-
}, At = (t) => {
|
|
132
|
-
const n = p();
|
|
133
|
-
return n.current = m(t), n.overrides = E(t), n.current;
|
|
134
128
|
}, Ct = (t) => {
|
|
135
129
|
const n = p();
|
|
136
|
-
return n.
|
|
130
|
+
return n.defaults = m(t), n.current = $(n.defaults, n.overrides), n.current;
|
|
137
131
|
}, Pt = (t) => {
|
|
132
|
+
const n = p();
|
|
133
|
+
return n.current = m(t), n.overrides = C(t), n.current;
|
|
134
|
+
}, Dt = (t) => {
|
|
135
|
+
const n = p();
|
|
136
|
+
return n.overrides = ae(n.overrides, C(t)), n.current = $(n.current, t), n.current;
|
|
137
|
+
}, Mt = (t) => {
|
|
138
138
|
const n = p();
|
|
139
139
|
return t && (n.defaults = m(t)), n.overrides = {}, n.current = m(n.defaults), n.current;
|
|
140
|
-
},
|
|
141
|
-
EDGE_POSITION:
|
|
142
|
-
RSA_MODE:
|
|
143
|
-
SIGNATURE_TYPE:
|
|
140
|
+
}, wt = {
|
|
141
|
+
EDGE_POSITION: z,
|
|
142
|
+
RSA_MODE: H,
|
|
143
|
+
SIGNATURE_TYPE: G
|
|
144
144
|
}, R = (t) => {
|
|
145
145
|
if (t.length !== 0)
|
|
146
146
|
return t.length === 1 ? t[0] : t;
|
|
147
|
-
},
|
|
147
|
+
}, k = (t) => typeof t == "object" && t !== null && !Array.isArray(t), T = (t, n) => {
|
|
148
|
+
if (!k(n))
|
|
149
|
+
return;
|
|
150
|
+
const e = k(n.statePatch) ? n.statePatch : k(n.state) ? n.state : void 0;
|
|
151
|
+
t.state.update(e);
|
|
152
|
+
}, l = (t, n, e) => new Proxy(
|
|
148
153
|
{},
|
|
149
154
|
{
|
|
150
155
|
get: (i, r) => {
|
|
@@ -162,27 +167,28 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
162
167
|
return a.state?.(e.state.snapshot(), s);
|
|
163
168
|
const o = a.adapterMethod ?? r;
|
|
164
169
|
if (a.kind === "query")
|
|
165
|
-
return e.bridge.request(t, o, R(s));
|
|
170
|
+
return e.bridge.request(t, o, R(s)).then((d) => (T(e, d), d));
|
|
166
171
|
if (a.kind === "callbackQuery") {
|
|
167
|
-
const
|
|
172
|
+
const d = s.find((h) => typeof h == "function"), c = s.filter((h) => typeof h != "function");
|
|
168
173
|
e.bridge.request(t, o, R(c)).then((h) => {
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
T(e, h);
|
|
175
|
+
const te = a.mapCallbackResult?.(h) ?? [h];
|
|
176
|
+
d?.(...te);
|
|
171
177
|
}).catch(e.onAsyncError);
|
|
172
178
|
return;
|
|
173
179
|
}
|
|
174
|
-
const
|
|
175
|
-
e.onAsyncError(
|
|
180
|
+
const u = e.bridge.request(t, o, R(s)).then((d) => (T(e, d), d)).catch((d) => {
|
|
181
|
+
e.onAsyncError(d);
|
|
176
182
|
});
|
|
177
183
|
if (a.returnsResult)
|
|
178
|
-
return
|
|
184
|
+
return u;
|
|
179
185
|
} : (...s) => {
|
|
180
186
|
const o = new Error(`${t}.${r} is not implemented by the SDK adapter.`);
|
|
181
187
|
e.onAsyncError(o);
|
|
182
188
|
};
|
|
183
189
|
}
|
|
184
190
|
}
|
|
185
|
-
),
|
|
191
|
+
), oe = (t) => typeof t == "object" && t !== null && !Array.isArray(t) && "id" in t, D = (t) => t.annotations?.filter(oe).map((n) => ({ ...n })) ?? [], de = (t) => {
|
|
186
192
|
switch (t) {
|
|
187
193
|
case "select":
|
|
188
194
|
case "pen":
|
|
@@ -202,7 +208,7 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
202
208
|
default:
|
|
203
209
|
return "none";
|
|
204
210
|
}
|
|
205
|
-
},
|
|
211
|
+
}, ue = {
|
|
206
212
|
addAnnotationEventCallback: {
|
|
207
213
|
kind: "callbackRegister",
|
|
208
214
|
callback: (t, n) => {
|
|
@@ -216,15 +222,15 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
216
222
|
},
|
|
217
223
|
getAnnotationMode: {
|
|
218
224
|
kind: "stateGetter",
|
|
219
|
-
state: (t) =>
|
|
225
|
+
state: (t) => de(t.annotationMode)
|
|
220
226
|
},
|
|
221
227
|
getAnnotations: {
|
|
222
228
|
kind: "stateGetter",
|
|
223
|
-
state: (t) =>
|
|
229
|
+
state: (t) => D(t)
|
|
224
230
|
},
|
|
225
231
|
getAnnotationsCount: {
|
|
226
232
|
kind: "stateGetter",
|
|
227
|
-
state: (t) =>
|
|
233
|
+
state: (t) => D(t).length
|
|
228
234
|
},
|
|
229
235
|
openAnnotationView: { kind: "command" },
|
|
230
236
|
closeAnnotationView: { kind: "command" },
|
|
@@ -245,16 +251,16 @@ const K = "RIGHT_CENTER", q = "REGULAR_ESM", z = "auto", f = "__RHC_OFFICE_DIGIT
|
|
|
245
251
|
setAnnotationPenWidth: { kind: "command" },
|
|
246
252
|
setAnnotationPenStyle: { kind: "command" }
|
|
247
253
|
};
|
|
248
|
-
class
|
|
254
|
+
class le {
|
|
249
255
|
constructor(n) {
|
|
250
|
-
this.openAnnotationView = (e) => this.adapter.openAnnotationView(e), this.closeAnnotationView = () => this.adapter.closeAnnotationView(), this.saveAnnotations = (e) => this.adapter.saveAnnotations(e), this.clearAnnotations = () => this.adapter.clearAnnotations(), this.undoAnnotation = () => this.adapter.undoAnnotation(), this.redoAnnotation = () => this.adapter.redoAnnotation(), this.canUndoAnnotation = () => this.adapter.canUndoAnnotation(), this.canRedoAnnotation = () => this.adapter.canRedoAnnotation(), this.selectAnnotationTool = (e, i) => this.adapter.selectAnnotationTool(e, i), this.selectAnnotationStamp = (e) => this.adapter.selectAnnotationStamp(e), this.openTextNoteCalloutDialog = (e) => this.adapter.openTextNoteCalloutDialog(e), this.createTextNoteAnnotation = (e) => this.adapter.createTextNoteAnnotation(e), this.getCustomStamps = () => this.adapter.getCustomStamps(), this.addCustomTextStamp = (e) => this.adapter.addCustomTextStamp(e), this.addCustomImageStamp = (e) => this.adapter.addCustomImageStamp(e), this.setAnnotationPenColor = (e) => this.adapter.setAnnotationPenColor(e), this.setAnnotationPenWidth = (e) => this.adapter.setAnnotationPenWidth(e), this.setAnnotationPenStyle = (e) => this.adapter.setAnnotationPenStyle(e), this.isInAnnotationMode = () => this.adapter.isInAnnotationMode(), this.getAnnotationMode = () => this.adapter.getAnnotationMode(), this.getAnnotations = () => this.adapter.getAnnotations(), this.getAnnotationsCount = () => this.adapter.getAnnotationsCount(), this.addAnnotationEventCallback = (e) => this.adapter.addAnnotationEventCallback(e), this.adapter =
|
|
256
|
+
this.openAnnotationView = (e) => this.adapter.openAnnotationView(e), this.closeAnnotationView = () => this.adapter.closeAnnotationView(), this.saveAnnotations = (e) => this.adapter.saveAnnotations(e), this.clearAnnotations = () => this.adapter.clearAnnotations(), this.undoAnnotation = () => this.adapter.undoAnnotation(), this.redoAnnotation = () => this.adapter.redoAnnotation(), this.canUndoAnnotation = () => this.adapter.canUndoAnnotation(), this.canRedoAnnotation = () => this.adapter.canRedoAnnotation(), this.selectAnnotationTool = (e, i) => this.adapter.selectAnnotationTool(e, i), this.selectAnnotationStamp = (e) => this.adapter.selectAnnotationStamp(e), this.openTextNoteCalloutDialog = (e) => this.adapter.openTextNoteCalloutDialog(e), this.createTextNoteAnnotation = (e) => this.adapter.createTextNoteAnnotation(e), this.getCustomStamps = () => this.adapter.getCustomStamps(), this.addCustomTextStamp = (e) => this.adapter.addCustomTextStamp(e), this.addCustomImageStamp = (e) => this.adapter.addCustomImageStamp(e), this.setAnnotationPenColor = (e) => this.adapter.setAnnotationPenColor(e), this.setAnnotationPenWidth = (e) => this.adapter.setAnnotationPenWidth(e), this.setAnnotationPenStyle = (e) => this.adapter.setAnnotationPenStyle(e), this.isInAnnotationMode = () => this.adapter.isInAnnotationMode(), this.getAnnotationMode = () => this.adapter.getAnnotationMode(), this.getAnnotations = () => this.adapter.getAnnotations(), this.getAnnotationsCount = () => this.adapter.getAnnotationsCount(), this.addAnnotationEventCallback = (e) => this.adapter.addAnnotationEventCallback(e), this.adapter = l(
|
|
251
257
|
"annotation",
|
|
252
|
-
|
|
258
|
+
ue,
|
|
253
259
|
n
|
|
254
260
|
);
|
|
255
261
|
}
|
|
256
262
|
}
|
|
257
|
-
const
|
|
263
|
+
const ce = {
|
|
258
264
|
addAttachmentChangedCallback: {
|
|
259
265
|
kind: "callbackRegister",
|
|
260
266
|
callback: (t, n) => {
|
|
@@ -267,7 +273,7 @@ const ue = {
|
|
|
267
273
|
deleteAttachment: { kind: "command", returnsResult: !0 },
|
|
268
274
|
getAttachmentFile: { kind: "query" },
|
|
269
275
|
getAttachments: { kind: "query" }
|
|
270
|
-
},
|
|
276
|
+
}, he = async (t) => {
|
|
271
277
|
if (t instanceof Uint8Array)
|
|
272
278
|
return t.slice();
|
|
273
279
|
if (t instanceof ArrayBuffer)
|
|
@@ -277,16 +283,16 @@ const ue = {
|
|
|
277
283
|
return new Uint8Array(n.buffer.slice(n.byteOffset, n.byteOffset + n.byteLength));
|
|
278
284
|
}
|
|
279
285
|
return new Uint8Array(await t.arrayBuffer());
|
|
280
|
-
},
|
|
286
|
+
}, me = (t, n) => {
|
|
281
287
|
const e = { ...n }, i = typeof File < "u" && t instanceof File, r = typeof Blob < "u" && t instanceof Blob;
|
|
282
288
|
if (i ? (e.fileName = e.fileName || t.name, e.mimeType = e.mimeType || t.type) : r && (e.fileName = e.fileName || "attachment.bin", e.mimeType = e.mimeType || t.type), e.fileName = typeof e.fileName == "string" ? e.fileName.trim() : "", !e.fileName)
|
|
283
289
|
throw new Error("Attachment fileName is required for binary attachment input.");
|
|
284
290
|
return e.mimeType = typeof e.mimeType == "string" ? e.mimeType.trim() : "", e.mimeType = e.mimeType || void 0, e;
|
|
285
291
|
};
|
|
286
|
-
class
|
|
292
|
+
class ge {
|
|
287
293
|
constructor(n) {
|
|
288
294
|
this.getAttachments = () => this.adapter.getAttachments(), this.getAttachmentFile = (e) => this.adapter.getAttachmentFile(e), this.addAttachment = async (e, i) => {
|
|
289
|
-
const r = await
|
|
295
|
+
const r = await he(e), a = me(e, i);
|
|
290
296
|
if (r.byteLength === 0)
|
|
291
297
|
throw new Error("Attachment content cannot be empty.");
|
|
292
298
|
if (typeof a.maxSizeBytes == "number" && r.byteLength > a.maxSizeBytes)
|
|
@@ -295,23 +301,23 @@ class he {
|
|
|
295
301
|
content: r,
|
|
296
302
|
options: a
|
|
297
303
|
});
|
|
298
|
-
}, this.deleteAttachment = (e, i) => this.adapter.deleteAttachment(e, i), this.clearAttachments = (e) => this.adapter.clearAttachments(e), this.addAttachmentChangedCallback = (e) => this.adapter.addAttachmentChangedCallback(e), this.adapter =
|
|
304
|
+
}, this.deleteAttachment = (e, i) => this.adapter.deleteAttachment(e, i), this.clearAttachments = (e) => this.adapter.clearAttachments(e), this.addAttachmentChangedCallback = (e) => this.adapter.addAttachmentChangedCallback(e), this.adapter = l(
|
|
299
305
|
"attachment",
|
|
300
|
-
|
|
306
|
+
ce,
|
|
301
307
|
n
|
|
302
308
|
), this.addAttachmentCommand = this.adapter.addAttachment;
|
|
303
309
|
}
|
|
304
310
|
}
|
|
305
|
-
const
|
|
311
|
+
const pe = {
|
|
306
312
|
configSecurityProvider: { kind: "command" },
|
|
307
313
|
getSecurityProviders: { kind: "query" }
|
|
308
314
|
};
|
|
309
|
-
class
|
|
315
|
+
class be {
|
|
310
316
|
constructor(n) {
|
|
311
|
-
this.configSecurityProvider = (e) => this.adapter.configSecurityProvider(e), this.getSecurityProviders = () => this.adapter.getSecurityProviders(), this.adapter =
|
|
317
|
+
this.configSecurityProvider = (e) => this.adapter.configSecurityProvider(e), this.getSecurityProviders = () => this.adapter.getSecurityProviders(), this.adapter = l("crypto", pe, n);
|
|
312
318
|
}
|
|
313
319
|
}
|
|
314
|
-
const
|
|
320
|
+
const M = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], Se = {
|
|
315
321
|
addDigitalSignatureRetrieveCallback: {
|
|
316
322
|
kind: "callbackRegister",
|
|
317
323
|
callback: (t, n) => {
|
|
@@ -348,25 +354,25 @@ const P = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], pe = {
|
|
|
348
354
|
listDigitalSignatures: { kind: "callbackQuery" },
|
|
349
355
|
getDigitalSignatures: {
|
|
350
356
|
kind: "stateGetter",
|
|
351
|
-
state: (t) =>
|
|
357
|
+
state: (t) => M(t)
|
|
352
358
|
},
|
|
353
359
|
getDigitalSignaturesCount: {
|
|
354
360
|
kind: "stateGetter",
|
|
355
|
-
state: (t) =>
|
|
361
|
+
state: (t) => M(t).length
|
|
356
362
|
},
|
|
357
363
|
enableDigitalSignatureInfoView: { kind: "command" },
|
|
358
364
|
enableDigitalSignatureRevocation: { kind: "command" }
|
|
359
365
|
};
|
|
360
|
-
class
|
|
366
|
+
class fe {
|
|
361
367
|
constructor(n) {
|
|
362
|
-
this.addDigitalSignatureRetrieveCallback = (e) => this.adapter.addDigitalSignatureRetrieveCallback(e), this.addDigitalSignatureParseCallback = (e) => this.adapter.addDigitalSignatureParseCallback(e), this.setCryptoProvider = (e, i, r) => this.adapter.setCryptoProvider(e, i, r), this.setSealSource = (e) => this.adapter.setSealSource(e), this.setDefaultStampPassword = (e) => this.adapter.setDefaultStampPassword(e), this.setDefaultSealPassword = (e) => this.adapter.setDefaultSealPassword(e), this.setDefaultKeystorePassword = (e) => this.adapter.setDefaultKeystorePassword(e), this.setDefaultUSBKeyPassword = (e) => this.adapter.setDefaultUSBKeyPassword(e), this.addDigitalSignCallback = (e) => this.adapter.addDigitalSignCallback(e), this.setupExternalSealServer = (e) => this.adapter.setupExternalSealServer(e), this.setDigitalSignOptions = (e) => this.adapter.setDigitalSignOptions(e), this.setExternalDigitalSignOptions = (e) => this.adapter.setExternalDigitalSignOptions(e), this.setPDFDigitalSignCaptionOptions = (e) => this.adapter.setPDFDigitalSignCaptionOptions(e), this.addDigitalSignature = (e, i) => this.adapter.addDigitalSignature(e, i), this.addDigitalSignatureBySelectedSearchHighlight = (e) => this.adapter.addDigitalSignatureBySelectedSearchHighlight(e), this.listDigitalSignatures = (e) => this.adapter.listDigitalSignatures(e), this.getDigitalSignatures = () => this.adapter.getDigitalSignatures(), this.getDigitalSignaturesCount = () => this.adapter.getDigitalSignaturesCount(), this.enableDigitalSignatureInfoView = (e) => this.adapter.enableDigitalSignatureInfoView(e), this.enableDigitalSignatureRevocation = (e) => this.adapter.enableDigitalSignatureRevocation(e), this.adapter =
|
|
368
|
+
this.addDigitalSignatureRetrieveCallback = (e) => this.adapter.addDigitalSignatureRetrieveCallback(e), this.addDigitalSignatureParseCallback = (e) => this.adapter.addDigitalSignatureParseCallback(e), this.setCryptoProvider = (e, i, r) => this.adapter.setCryptoProvider(e, i, r), this.setSealSource = (e) => this.adapter.setSealSource(e), this.setDefaultStampPassword = (e) => this.adapter.setDefaultStampPassword(e), this.setDefaultSealPassword = (e) => this.adapter.setDefaultSealPassword(e), this.setDefaultKeystorePassword = (e) => this.adapter.setDefaultKeystorePassword(e), this.setDefaultUSBKeyPassword = (e) => this.adapter.setDefaultUSBKeyPassword(e), this.addDigitalSignCallback = (e) => this.adapter.addDigitalSignCallback(e), this.setupExternalSealServer = (e) => this.adapter.setupExternalSealServer(e), this.setDigitalSignOptions = (e) => this.adapter.setDigitalSignOptions(e), this.setExternalDigitalSignOptions = (e) => this.adapter.setExternalDigitalSignOptions(e), this.setPDFDigitalSignCaptionOptions = (e) => this.adapter.setPDFDigitalSignCaptionOptions(e), this.addDigitalSignature = (e, i) => this.adapter.addDigitalSignature(e, i), this.addDigitalSignatureBySelectedSearchHighlight = (e) => this.adapter.addDigitalSignatureBySelectedSearchHighlight(e), this.listDigitalSignatures = (e) => this.adapter.listDigitalSignatures(e), this.getDigitalSignatures = () => this.adapter.getDigitalSignatures(), this.getDigitalSignaturesCount = () => this.adapter.getDigitalSignaturesCount(), this.enableDigitalSignatureInfoView = (e) => this.adapter.enableDigitalSignatureInfoView(e), this.enableDigitalSignatureRevocation = (e) => this.adapter.enableDigitalSignatureRevocation(e), this.adapter = l(
|
|
363
369
|
"digitalSign",
|
|
364
|
-
|
|
370
|
+
Se,
|
|
365
371
|
n
|
|
366
372
|
);
|
|
367
373
|
}
|
|
368
374
|
}
|
|
369
|
-
const
|
|
375
|
+
const Re = "rhc-office.editor-adapter", ke = 1, Te = "__RHC_OFFICE_EDITOR_ADAPTER__", w = "rhcOfficeAdapterReady", I = "rhcOfficeAdapterEvent", W = "data-rhc-office-reader-id", ye = {
|
|
370
376
|
addDocumentOpenedCallback: {
|
|
371
377
|
kind: "callbackRegister",
|
|
372
378
|
callback: (t, n) => {
|
|
@@ -419,7 +425,7 @@ const Se = "rhc-office.editor-adapter", fe = 1, Re = "__RHC_OFFICE_EDITOR_ADAPTE
|
|
|
419
425
|
print: { kind: "command" },
|
|
420
426
|
createPreview: { kind: "command" }
|
|
421
427
|
};
|
|
422
|
-
class
|
|
428
|
+
class ve {
|
|
423
429
|
constructor(n) {
|
|
424
430
|
this.context = n, this.addDocumentOpenedCallback = (e) => this.adapter.addDocumentOpenedCallback(e), this.addDocumentSavedCallback = (e) => this.adapter.addDocumentSavedCallback(e), this.addDocumentClosedCallback = (e) => this.adapter.addDocumentClosedCallback(e), this.openPDFDocument = (e, i) => this.adapter.openPDFDocument(e, i), this.openPdfDocument = (e, i) => this.adapter.openPdfDocument(e, i), this.openOFDDocument = (e, i) => this.adapter.openOFDDocument(e, i), this.openOfdDocument = (e, i) => this.adapter.openOfdDocument(e, i), this.openOfficeDocument = (e, i) => this.adapter.openOfficeDocument(e, i), this.openImageDocument = (e, i) => this.adapter.openImageDocument(e, i), this.openTextDocument = (e, i) => this.adapter.openTextDocument(e, i), this.openFromLocalStorage = () => this.adapter.openFromLocalStorage(), this.setUploadUrl = (e, i) => this.adapter.setUploadUrl(e, i), this.save = (e, i, r) => this.adapter.save(e, i, r), this.saveAs = (e) => {
|
|
425
431
|
const i = this.context.bridge.getReaderId();
|
|
@@ -431,41 +437,41 @@ class Te {
|
|
|
431
437
|
error: "Reader is not mounted or does not expose saveAs."
|
|
432
438
|
});
|
|
433
439
|
const r = document.querySelector(
|
|
434
|
-
`[${
|
|
440
|
+
`[${W}="${i}"]`
|
|
435
441
|
);
|
|
436
442
|
return typeof r?.saveAs == "function" ? r.saveAs(e) : this.adapter.saveAs(e);
|
|
437
|
-
}, this.getDocumentContent = (e) => this.adapter.getDocumentContent(e), this.getCurrentDocument = () => this.adapter.getCurrentDocument(), this.getOpenDocuments = () => this.adapter.getOpenDocuments(), this.activateDocument = (e) => this.adapter.activateDocument(e), this.closeDocumentBySessionId = (e, i) => this.adapter.closeDocumentBySessionId(e, i), this.closeDocument = (e, i, r) => this.adapter.closeDocument(e, i, r), this.isDocumentOpened = () => this.adapter.isDocumentOpened(), this.isDocumentModified = () => this.adapter.isDocumentModified(), this.print = () => this.adapter.print(), this.createPreview = (e, i) => this.adapter.createPreview(e, i), this.adapter =
|
|
443
|
+
}, this.getDocumentContent = (e) => this.adapter.getDocumentContent(e), this.getCurrentDocument = () => this.adapter.getCurrentDocument(), this.getOpenDocuments = () => this.adapter.getOpenDocuments(), this.activateDocument = (e) => this.adapter.activateDocument(e), this.closeDocumentBySessionId = (e, i) => this.adapter.closeDocumentBySessionId(e, i), this.closeDocument = (e, i, r) => this.adapter.closeDocument(e, i, r), this.isDocumentOpened = () => this.adapter.isDocumentOpened(), this.isDocumentModified = () => this.adapter.isDocumentModified(), this.print = () => this.adapter.print(), this.createPreview = (e, i) => this.adapter.createPreview(e, i), this.adapter = l(
|
|
438
444
|
"document",
|
|
439
|
-
|
|
445
|
+
ye,
|
|
440
446
|
n
|
|
441
447
|
);
|
|
442
448
|
}
|
|
443
449
|
}
|
|
444
|
-
const
|
|
450
|
+
const Ee = {
|
|
445
451
|
clearFind: { kind: "command" },
|
|
446
452
|
findNext: { kind: "command" },
|
|
447
453
|
findPrevious: { kind: "command" }
|
|
448
454
|
};
|
|
449
|
-
class
|
|
455
|
+
class Ae {
|
|
450
456
|
constructor(n) {
|
|
451
|
-
this.clearFind = () => this.adapter.clearFind(), this.findNext = (e) => this.adapter.findNext(e), this.findPrevious = (e) => this.adapter.findPrevious(e), this.adapter =
|
|
457
|
+
this.clearFind = () => this.adapter.clearFind(), this.findNext = (e) => this.adapter.findNext(e), this.findPrevious = (e) => this.adapter.findPrevious(e), this.adapter = l("find", Ee, n);
|
|
452
458
|
}
|
|
453
459
|
}
|
|
454
|
-
const
|
|
460
|
+
const Ce = {
|
|
455
461
|
configFileUpload: { kind: "command" },
|
|
456
462
|
setHttpHeaders: { kind: "command" },
|
|
457
463
|
setHttpFormFields: { kind: "command" }
|
|
458
464
|
};
|
|
459
|
-
class
|
|
465
|
+
class Pe {
|
|
460
466
|
constructor(n) {
|
|
461
|
-
this.configFileUpload = (e) => this.adapter.configFileUpload(e), this.setHttpHeaders = (e) => this.adapter.setHttpHeaders(e), this.setHttpFormFields = (e) => this.adapter.setHttpFormFields(e), this.adapter =
|
|
467
|
+
this.configFileUpload = (e) => this.adapter.configFileUpload(e), this.setHttpHeaders = (e) => this.adapter.setHttpHeaders(e), this.setHttpFormFields = (e) => this.adapter.setHttpFormFields(e), this.adapter = l(
|
|
462
468
|
"networking",
|
|
463
|
-
|
|
469
|
+
Ce,
|
|
464
470
|
n
|
|
465
471
|
);
|
|
466
472
|
}
|
|
467
473
|
}
|
|
468
|
-
const
|
|
474
|
+
const De = () => ({
|
|
469
475
|
clearContent: { kind: "command", returnsResult: !0 },
|
|
470
476
|
commit: { kind: "command", returnsResult: !0 },
|
|
471
477
|
deletePages: { kind: "command", returnsResult: !0 },
|
|
@@ -480,17 +486,17 @@ const Ce = () => ({
|
|
|
480
486
|
rotateLeft: { kind: "command", returnsResult: !0 },
|
|
481
487
|
rotateRight: { kind: "command", returnsResult: !0 },
|
|
482
488
|
undo: { kind: "command", returnsResult: !0 }
|
|
483
|
-
}),
|
|
484
|
-
class
|
|
489
|
+
}), Me = (t) => t instanceof Uint8Array ? t : new Uint8Array(t);
|
|
490
|
+
class we {
|
|
485
491
|
constructor(n) {
|
|
486
|
-
this.getSnapshot = () => this.adapter.getSnapshot(), this.execute = (e) => this.adapter.execute(e), this.newPage = (e, i) => this.adapter.newPage(e, i), this.deletePages = (e) => this.adapter.deletePages(e), this.duplicatePages = (e, i) => this.adapter.duplicatePages(e, i), this.rotateLeft = (e) => this.adapter.rotateLeft(e), this.rotateRight = (e) => this.adapter.rotateRight(e), this.clearContent = (e) => this.adapter.clearContent(e), this.moveBefore = (e, i) => this.adapter.moveBefore(e, i), this.moveAfter = (e, i) => this.adapter.moveAfter(e, i), this.importDocument = (e, i) => this.adapter.importDocument(
|
|
492
|
+
this.getSnapshot = () => this.adapter.getSnapshot(), this.execute = (e) => this.adapter.execute(e), this.newPage = (e, i) => this.adapter.newPage(e, i), this.deletePages = (e) => this.adapter.deletePages(e), this.duplicatePages = (e, i) => this.adapter.duplicatePages(e, i), this.rotateLeft = (e) => this.adapter.rotateLeft(e), this.rotateRight = (e) => this.adapter.rotateRight(e), this.clearContent = (e) => this.adapter.clearContent(e), this.moveBefore = (e, i) => this.adapter.moveBefore(e, i), this.moveAfter = (e, i) => this.adapter.moveAfter(e, i), this.importDocument = (e, i) => this.adapter.importDocument(Me(e), i), this.extractPages = (e, i) => this.adapter.extractPages(e, i), this.undo = () => this.adapter.undo(), this.commit = () => this.adapter.commit(), this.adapter = l(
|
|
487
493
|
"pageArrange",
|
|
488
|
-
|
|
494
|
+
De(),
|
|
489
495
|
n
|
|
490
496
|
);
|
|
491
497
|
}
|
|
492
498
|
}
|
|
493
|
-
const
|
|
499
|
+
const Ie = (t) => ({
|
|
494
500
|
addPageChangeCallback: {
|
|
495
501
|
kind: "callbackRegister",
|
|
496
502
|
callback: (n, e) => {
|
|
@@ -540,16 +546,16 @@ const Me = (t) => ({
|
|
|
540
546
|
gotoPreviousPage: { kind: "command" },
|
|
541
547
|
rotatePage: { kind: "command" }
|
|
542
548
|
});
|
|
543
|
-
class
|
|
549
|
+
class Oe {
|
|
544
550
|
constructor(n) {
|
|
545
|
-
this.addPageChangeCallback = (e) => this.adapter.addPageChangeCallback(e), this.addPageModeChangeCallback = (e) => this.adapter.addPageModeChangeCallback(e), this.getPageCount = (e) => this.adapter.getPageCount(e), this.getPageIndex = (e) => this.adapter.getPageIndex(e), this.setSinglePageViewMode = () => this.adapter.setSinglePageViewMode(), this.setTwoPagesViewMode = () => this.adapter.setTwoPagesViewMode(), this.setPageScrollVertical = () => this.adapter.setPageScrollVertical(), this.setPageScrollHorizontal = () => this.adapter.setPageScrollHorizontal(), this.setPageCursorPanDrag = () => this.adapter.setPageCursorPanDrag(), this.setPageCursorTextSelect = () => this.adapter.setPageCursorTextSelect(), this.rotateCW = () => this.adapter.rotateCW(), this.rotateCCW = () => this.adapter.rotateCCW(), this.autoFitPage = () => this.adapter.autoFitPage(), this.fitPageSize = () => this.adapter.fitPageSize(), this.fitPageWidth = () => this.adapter.fitPageWidth(), this.fitPageHeight = () => this.adapter.fitPageHeight(), this.increasePageScale = () => this.adapter.increasePageScale(), this.decreasePageScale = () => this.adapter.decreasePageScale(), this.setPageScale = (e) => this.adapter.setPageScale(e), this.setPageBlendColor = (e, i, r, a) => this.adapter.setPageBlendColor(e, i, r, a), this.gotoPage = (e, i, r) => this.adapter.gotoPage(e, i, r), this.gotoNextPage = () => this.adapter.gotoNextPage(), this.gotoPreviousPage = () => this.adapter.gotoPreviousPage(), this.rotatePage = (e) => this.adapter.rotatePage(e), this.adapter =
|
|
551
|
+
this.addPageChangeCallback = (e) => this.adapter.addPageChangeCallback(e), this.addPageModeChangeCallback = (e) => this.adapter.addPageModeChangeCallback(e), this.getPageCount = (e) => this.adapter.getPageCount(e), this.getPageIndex = (e) => this.adapter.getPageIndex(e), this.setSinglePageViewMode = () => this.adapter.setSinglePageViewMode(), this.setTwoPagesViewMode = () => this.adapter.setTwoPagesViewMode(), this.setPageScrollVertical = () => this.adapter.setPageScrollVertical(), this.setPageScrollHorizontal = () => this.adapter.setPageScrollHorizontal(), this.setPageCursorPanDrag = () => this.adapter.setPageCursorPanDrag(), this.setPageCursorTextSelect = () => this.adapter.setPageCursorTextSelect(), this.rotateCW = () => this.adapter.rotateCW(), this.rotateCCW = () => this.adapter.rotateCCW(), this.autoFitPage = () => this.adapter.autoFitPage(), this.fitPageSize = () => this.adapter.fitPageSize(), this.fitPageWidth = () => this.adapter.fitPageWidth(), this.fitPageHeight = () => this.adapter.fitPageHeight(), this.increasePageScale = () => this.adapter.increasePageScale(), this.decreasePageScale = () => this.adapter.decreasePageScale(), this.setPageScale = (e) => this.adapter.setPageScale(e), this.setPageBlendColor = (e, i, r, a) => this.adapter.setPageBlendColor(e, i, r, a), this.gotoPage = (e, i, r) => this.adapter.gotoPage(e, i, r), this.gotoNextPage = () => this.adapter.gotoNextPage(), this.gotoPreviousPage = () => this.adapter.gotoPreviousPage(), this.rotatePage = (e) => this.adapter.rotatePage(e), this.adapter = l(
|
|
546
552
|
"page",
|
|
547
|
-
|
|
553
|
+
Ie(n),
|
|
548
554
|
n
|
|
549
555
|
);
|
|
550
556
|
}
|
|
551
557
|
}
|
|
552
|
-
const
|
|
558
|
+
const _e = {
|
|
553
559
|
open: { kind: "command" },
|
|
554
560
|
setFormFieldValue: { kind: "command" },
|
|
555
561
|
setFormFieldReadonly: { kind: "command" },
|
|
@@ -566,28 +572,28 @@ const Ie = {
|
|
|
566
572
|
mapCallbackResult: (t) => [Array.isArray(t) ? t : []]
|
|
567
573
|
}
|
|
568
574
|
};
|
|
569
|
-
class
|
|
575
|
+
class Le {
|
|
570
576
|
constructor(n) {
|
|
571
|
-
this.open = () => this.adapter.open(), this.setFormFieldValue = (e, i) => this.adapter.setFormFieldValue(e, i), this.setFormFieldReadonly = (e, i) => this.adapter.setFormFieldReadonly(e, i), this.commit = (e) => this.adapter.commit(e), this.clear = (e) => this.adapter.clear(e), this.toKeyValue = (e) => this.adapter.toKeyValue(e), this.adapter =
|
|
577
|
+
this.open = () => this.adapter.open(), this.setFormFieldValue = (e, i) => this.adapter.setFormFieldValue(e, i), this.setFormFieldReadonly = (e, i) => this.adapter.setFormFieldReadonly(e, i), this.commit = (e) => this.adapter.commit(e), this.clear = (e) => this.adapter.clear(e), this.toKeyValue = (e) => this.adapter.toKeyValue(e), this.adapter = l(
|
|
572
578
|
"pdfFormFiller",
|
|
573
|
-
|
|
579
|
+
_e,
|
|
574
580
|
n
|
|
575
581
|
);
|
|
576
582
|
}
|
|
577
583
|
}
|
|
578
|
-
const
|
|
584
|
+
const Fe = /\s*,\s*/, Ne = /\s*-\s*/, y = (t) => {
|
|
579
585
|
const n = Number.parseInt(t.trim(), 10);
|
|
580
586
|
return !Number.isFinite(n) || n <= 0 ? null : n;
|
|
581
|
-
},
|
|
582
|
-
const n = t.split(
|
|
587
|
+
}, Ue = (t) => {
|
|
588
|
+
const n = t.split(Ne);
|
|
583
589
|
if (n.length === 1) {
|
|
584
|
-
const r =
|
|
590
|
+
const r = y(n[0] ?? "");
|
|
585
591
|
return r ? [r] : [];
|
|
586
592
|
}
|
|
587
|
-
const e =
|
|
593
|
+
const e = y(n[0] ?? ""), i = y(n[1] ?? "");
|
|
588
594
|
return !e || !i || i < e ? [] : Array.from({ length: i - e + 1 }, (r, a) => e + a);
|
|
589
|
-
},
|
|
590
|
-
class
|
|
595
|
+
}, Be = (t) => t ? t.split(Fe).flatMap((e) => Ue(e)).filter((e, i, r) => r.indexOf(e) === i) : [];
|
|
596
|
+
class xe {
|
|
591
597
|
constructor(n, e, i) {
|
|
592
598
|
this.setFieldName = (r) => {
|
|
593
599
|
this.key = r;
|
|
@@ -598,7 +604,7 @@ class Ue {
|
|
|
598
604
|
}, this.key = n, this.value = e, this.description = i;
|
|
599
605
|
}
|
|
600
606
|
}
|
|
601
|
-
class
|
|
607
|
+
class Ve {
|
|
602
608
|
constructor() {
|
|
603
609
|
this.fields = [], this.keywordTextFixedPositions = void 0, this.keywordOffsetX = 0, this.keywordOffsetY = 0, this.bookmarkOffsetX = 0, this.bookmarkOffsetY = 0, this.printMargin = 0, this.grayscaleSealImage = !1, this.signType = 0, this.sealPosition = 0, this.getSignType = () => this.signType, this.setSignType = (n) => {
|
|
604
610
|
this.signType = n;
|
|
@@ -608,7 +614,7 @@ class Be {
|
|
|
608
614
|
this.sealPosition = n;
|
|
609
615
|
}, this.setPageRange = (n) => {
|
|
610
616
|
this.pageRange = n;
|
|
611
|
-
}, this.getPageRange = () => this.pageRange, this.getPageRanges = () =>
|
|
617
|
+
}, this.getPageRange = () => this.pageRange, this.getPageRanges = () => Be(this.pageRange), this.setSignUserData = (n) => {
|
|
612
618
|
this.signUserData = n;
|
|
613
619
|
}, this.setPrintMargin = (n) => {
|
|
614
620
|
this.printMargin = n;
|
|
@@ -621,23 +627,23 @@ class Be {
|
|
|
621
627
|
};
|
|
622
628
|
}
|
|
623
629
|
}
|
|
624
|
-
const
|
|
630
|
+
const Ke = {
|
|
625
631
|
getSecuritySettings: { kind: "query" },
|
|
626
632
|
isSecuritySettingsLocalEditable: { kind: "query" },
|
|
627
633
|
setSecuritySettingsLocalEditable: { kind: "query" },
|
|
628
634
|
setSecuritySettings: { kind: "query" },
|
|
629
635
|
openSecuritySettingsDialog: { kind: "command" }
|
|
630
636
|
};
|
|
631
|
-
class
|
|
637
|
+
class qe {
|
|
632
638
|
constructor(n) {
|
|
633
|
-
this.getSecuritySettings = () => this.adapter.getSecuritySettings(), this.setSecuritySettings = (e) => this.adapter.setSecuritySettings(e), this.isSecuritySettingsLocalEditable = () => this.adapter.isSecuritySettingsLocalEditable(), this.setSecuritySettingsLocalEditable = (e) => this.adapter.setSecuritySettingsLocalEditable(e), this.openSecuritySettingsDialog = () => this.adapter.openSecuritySettingsDialog(), this.adapter =
|
|
639
|
+
this.getSecuritySettings = () => this.adapter.getSecuritySettings(), this.setSecuritySettings = (e) => this.adapter.setSecuritySettings(e), this.isSecuritySettingsLocalEditable = () => this.adapter.isSecuritySettingsLocalEditable(), this.setSecuritySettingsLocalEditable = (e) => this.adapter.setSecuritySettingsLocalEditable(e), this.openSecuritySettingsDialog = () => this.adapter.openSecuritySettingsDialog(), this.adapter = l(
|
|
634
640
|
"security",
|
|
635
|
-
|
|
641
|
+
Ke,
|
|
636
642
|
n
|
|
637
643
|
);
|
|
638
644
|
}
|
|
639
645
|
}
|
|
640
|
-
const
|
|
646
|
+
const ze = {
|
|
641
647
|
setSignServer: { kind: "command" },
|
|
642
648
|
addSignServerAuthCallback: {
|
|
643
649
|
kind: "callbackRegister",
|
|
@@ -657,28 +663,28 @@ const Ke = {
|
|
|
657
663
|
setSignServerLoginFromUSBKey: { kind: "command" },
|
|
658
664
|
setUserAuthSource: { kind: "command" }
|
|
659
665
|
};
|
|
660
|
-
class
|
|
666
|
+
class Ge {
|
|
661
667
|
constructor(n) {
|
|
662
|
-
this.setSignServer = (e) => this.adapter.setSignServer(e), this.addSignServerAuthCallback = (e) => this.adapter.addSignServerAuthCallback(e), this.setSignServerDefaultLogin = (e) => this.adapter.setSignServerDefaultLogin(e), this.setDefaultSignServerLogin = (e) => this.adapter.setDefaultSignServerLogin(e), this.setSignServerDefaultPassword = (e) => this.adapter.setSignServerDefaultPassword(e), this.setDefaultSignServerPassword = (e) => this.adapter.setDefaultSignServerPassword(e), this.loginNTKOSignServer = (e, i, r) => this.adapter.loginNTKOSignServer(e, i, r), this.loginSignServer = (e, i, r, a) => this.adapter.loginSignServer(e, i, r, a), this.signOutSignServer = () => this.adapter.signOutSignServer(), this.isAuthenticatedOnSignServer = () => this.adapter.isAuthenticatedOnSignServer(), this.setSignServerLoginFromUSBKey = (e, i) => this.adapter.setSignServerLoginFromUSBKey(e, i), this.setUserAuthSource = (e) => this.adapter.setUserAuthSource(e), this.adapter =
|
|
668
|
+
this.setSignServer = (e) => this.adapter.setSignServer(e), this.addSignServerAuthCallback = (e) => this.adapter.addSignServerAuthCallback(e), this.setSignServerDefaultLogin = (e) => this.adapter.setSignServerDefaultLogin(e), this.setDefaultSignServerLogin = (e) => this.adapter.setDefaultSignServerLogin(e), this.setSignServerDefaultPassword = (e) => this.adapter.setSignServerDefaultPassword(e), this.setDefaultSignServerPassword = (e) => this.adapter.setDefaultSignServerPassword(e), this.loginNTKOSignServer = (e, i, r) => this.adapter.loginNTKOSignServer(e, i, r), this.loginSignServer = (e, i, r, a) => this.adapter.loginSignServer(e, i, r, a), this.signOutSignServer = () => this.adapter.signOutSignServer(), this.isAuthenticatedOnSignServer = () => this.adapter.isAuthenticatedOnSignServer(), this.setSignServerLoginFromUSBKey = (e, i) => this.adapter.setSignServerLoginFromUSBKey(e, i), this.setUserAuthSource = (e) => this.adapter.setUserAuthSource(e), this.adapter = l(
|
|
663
669
|
"signServer",
|
|
664
|
-
|
|
670
|
+
ze,
|
|
665
671
|
n
|
|
666
672
|
);
|
|
667
673
|
}
|
|
668
674
|
}
|
|
669
|
-
const
|
|
675
|
+
const He = {
|
|
670
676
|
createPDF417Barcode: { kind: "command" }
|
|
671
677
|
};
|
|
672
|
-
class
|
|
678
|
+
class Qe {
|
|
673
679
|
constructor(n) {
|
|
674
|
-
this.createPDF417Barcode = (e, i, r, a, s, o,
|
|
680
|
+
this.createPDF417Barcode = (e, i, r, a, s, o, u) => this.adapter.createPDF417Barcode(e, i, r, a, s, o, u), this.adapter = l(
|
|
675
681
|
"symbology",
|
|
676
|
-
|
|
682
|
+
He,
|
|
677
683
|
n
|
|
678
684
|
);
|
|
679
685
|
}
|
|
680
686
|
}
|
|
681
|
-
const
|
|
687
|
+
const je = {
|
|
682
688
|
setup: { kind: "command" },
|
|
683
689
|
create: { kind: "command" },
|
|
684
690
|
getMarkups: { kind: "callbackQuery" },
|
|
@@ -686,27 +692,27 @@ const He = {
|
|
|
686
692
|
removeAllMarkups: { kind: "command" },
|
|
687
693
|
sign: { kind: "callbackQuery" }
|
|
688
694
|
};
|
|
689
|
-
class
|
|
695
|
+
class $e {
|
|
690
696
|
constructor(n) {
|
|
691
|
-
this.setup = (e) => this.adapter.setup(e), this.create = (e) => this.adapter.create(e), this.getMarkups = (e) => this.adapter.getMarkups(e), this.removeMarkup = (e, i) => this.adapter.removeMarkup(e, i), this.removeAllMarkups = (e) => this.adapter.removeAllMarkups(e), this.sign = (e) => this.adapter.sign(e), this.adapter =
|
|
697
|
+
this.setup = (e) => this.adapter.setup(e), this.create = (e) => this.adapter.create(e), this.getMarkups = (e) => this.adapter.getMarkups(e), this.removeMarkup = (e, i) => this.adapter.removeMarkup(e, i), this.removeAllMarkups = (e) => this.adapter.removeAllMarkups(e), this.sign = (e) => this.adapter.sign(e), this.adapter = l(
|
|
692
698
|
"templateSign",
|
|
693
|
-
|
|
699
|
+
je,
|
|
694
700
|
n
|
|
695
701
|
);
|
|
696
702
|
}
|
|
697
703
|
}
|
|
698
|
-
const
|
|
699
|
-
|
|
700
|
-
},
|
|
701
|
-
|
|
702
|
-
},
|
|
704
|
+
const O = "[RHC Office SDK]", We = (t, ...n) => {
|
|
705
|
+
Y("warn", t, n);
|
|
706
|
+
}, _ = (t, ...n) => {
|
|
707
|
+
Y("error", t, n);
|
|
708
|
+
}, Y = (t, n, e) => {
|
|
703
709
|
const i = t === "error" ? console.error.bind(console) : console.warn.bind(console);
|
|
704
710
|
if (e.length > 0) {
|
|
705
|
-
i(`${
|
|
711
|
+
i(`${O} ${n}`, ...e);
|
|
706
712
|
return;
|
|
707
713
|
}
|
|
708
|
-
i(`${
|
|
709
|
-
},
|
|
714
|
+
i(`${O} ${n}`);
|
|
715
|
+
}, Ye = /* @__PURE__ */ new Set([2, 5]), Xe = (t) => ({
|
|
710
716
|
showToolbarMenu: { kind: "command" },
|
|
711
717
|
hideToolbarMenu: { kind: "command" },
|
|
712
718
|
setupToolbarMenu: { kind: "command" },
|
|
@@ -745,13 +751,13 @@ const w = "[RHC Office SDK]", je = (t, ...n) => {
|
|
|
745
751
|
exitBookViewMode: { kind: "command" },
|
|
746
752
|
isBookViewActivated: {
|
|
747
753
|
kind: "stateGetter",
|
|
748
|
-
state: () =>
|
|
754
|
+
state: () => Ye.has(t.state.snapshot().pageMode)
|
|
749
755
|
},
|
|
750
756
|
requestFullScreen: { kind: "command" },
|
|
751
757
|
exitFullScreen: { kind: "command" },
|
|
752
758
|
invalidateView: { kind: "command" }
|
|
753
759
|
});
|
|
754
|
-
class
|
|
760
|
+
class Je {
|
|
755
761
|
constructor(n) {
|
|
756
762
|
this.showToolbarMenu = () => (this.warnLegacyRibbonMethod("showToolbarMenu", "showRibbonMenu"), this.showRibbonMenu()), this.hideToolbarMenu = () => (this.warnLegacyRibbonMethod("hideToolbarMenu", "hideRibbonMenu"), this.hideRibbonMenu()), this.setupToolbarMenu = (e) => (this.warnLegacyRibbonMethod(
|
|
757
763
|
"setupToolbarMenu",
|
|
@@ -759,13 +765,13 @@ class Ye {
|
|
|
759
765
|
), this.setupRibbonMenu(e)), this.showToolbarMenuItem = (e) => (this.warnLegacyRibbonMethod("showToolbarMenuItem", "showRibbonMenuItem"), this.showRibbonMenuItem(e)), this.hideToolbarMenuItem = (e) => (this.warnLegacyRibbonMethod("hideToolbarMenuItem", "hideRibbonMenuItem"), this.hideRibbonMenuItem(e)), this.setupRibbonMenu = (e) => (this.warnLegacyRibbonMethod(
|
|
760
766
|
"setupRibbonMenu",
|
|
761
767
|
"showRibbonMenu/hideRibbonMenu/setupRibbonMenuTab"
|
|
762
|
-
), typeof e == "boolean" ? e ? this.showRibbonMenu() : this.hideRibbonMenu() : this.setupRibbonMenuTab(e.menu, { visible: e.visible })), this.setupRibbonMenuItem = (e, i, r) => (this.warnLegacyRibbonMethod("setupRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: i, config: r })), this.setupRibbonTitleBar = (e) => (this.warnLegacyRibbonMethod("setupRibbonTitleBar", "showRibbonTabs/hideRibbonTabs"), e ? this.showRibbonTabs() : this.hideRibbonTabs()), this.showRibbonMenu = () => this.adapter.showRibbonMenu(), this.hideRibbonMenu = () => this.adapter.hideRibbonMenu(), this.showRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("showRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !0, config: i })), this.hideRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("hideRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !1, config: i })), this.showRibbonTitleBar = () => (this.warnLegacyRibbonMethod("showRibbonTitleBar", "showRibbonTabs"), this.showRibbonTabs()), this.hideRibbonTitleBar = () => (this.warnLegacyRibbonMethod("hideRibbonTitleBar", "hideRibbonTabs"), this.hideRibbonTabs()), this.showRibbonTabs = () => this.adapter.showRibbonTabs(), this.hideRibbonTabs = () => this.adapter.hideRibbonTabs(), this.selectRibbonMenu = (e) => this.adapter.selectRibbonMenu(e), this.setupRibbonMenuTab = (e, i) => this.adapter.setupRibbonMenuTab(e, i), this.showRibbonMenuTab = (e) => this.adapter.showRibbonMenuTab(e), this.hideRibbonMenuTab = (e) => this.adapter.hideRibbonMenuTab(e), this.enableRibbonMenuTab = (e) => this.adapter.enableRibbonMenuTab(e), this.disableRibbonMenuTab = (e) => this.adapter.disableRibbonMenuTab(e), this.setupRibbonMenuItemState = (e, i) => this.adapter.setupRibbonMenuItemState(e, i), this.enableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !1, config: i }), this.disableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !0, config: i }), this.setRibbonMenuButtonStyle = (e, i) => this.adapter.setRibbonMenuButtonStyle(e, i), this.setWatermark = (e) => this.adapter.setWatermark(e), this.setCompactMode = (e) => this.adapter.setCompactMode(e), this.setRulerVisible = (e) => this.adapter.setRulerVisible(e), this.setStatusBarVisible = (e) => this.adapter.setStatusBarVisible(e), this.toggleSidebar = () => this.adapter.toggleSidebar(), this.enterBookViewMode = (e) => this.adapter.enterBookViewMode(e), this.exitBookViewMode = () => this.adapter.exitBookViewMode(), this.isBookViewActivated = () => this.adapter.isBookViewActivated(), this.requestFullScreen = () => this.adapter.requestFullScreen(), this.exitFullScreen = () => this.adapter.exitFullScreen(), this.invalidateView = () => this.adapter.invalidateView(), this.adapter =
|
|
768
|
+
), typeof e == "boolean" ? e ? this.showRibbonMenu() : this.hideRibbonMenu() : this.setupRibbonMenuTab(e.menu, { visible: e.visible })), this.setupRibbonMenuItem = (e, i, r) => (this.warnLegacyRibbonMethod("setupRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: i, config: r })), this.setupRibbonTitleBar = (e) => (this.warnLegacyRibbonMethod("setupRibbonTitleBar", "showRibbonTabs/hideRibbonTabs"), e ? this.showRibbonTabs() : this.hideRibbonTabs()), this.showRibbonMenu = () => this.adapter.showRibbonMenu(), this.hideRibbonMenu = () => this.adapter.hideRibbonMenu(), this.showRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("showRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !0, config: i })), this.hideRibbonMenuItem = (e, i) => (this.warnLegacyRibbonMethod("hideRibbonMenuItem", "setupRibbonMenuItemState"), this.setupRibbonMenuItemState(e, { visible: !1, config: i })), this.showRibbonTitleBar = () => (this.warnLegacyRibbonMethod("showRibbonTitleBar", "showRibbonTabs"), this.showRibbonTabs()), this.hideRibbonTitleBar = () => (this.warnLegacyRibbonMethod("hideRibbonTitleBar", "hideRibbonTabs"), this.hideRibbonTabs()), this.showRibbonTabs = () => this.adapter.showRibbonTabs(), this.hideRibbonTabs = () => this.adapter.hideRibbonTabs(), this.selectRibbonMenu = (e) => this.adapter.selectRibbonMenu(e), this.setupRibbonMenuTab = (e, i) => this.adapter.setupRibbonMenuTab(e, i), this.showRibbonMenuTab = (e) => this.adapter.showRibbonMenuTab(e), this.hideRibbonMenuTab = (e) => this.adapter.hideRibbonMenuTab(e), this.enableRibbonMenuTab = (e) => this.adapter.enableRibbonMenuTab(e), this.disableRibbonMenuTab = (e) => this.adapter.disableRibbonMenuTab(e), this.setupRibbonMenuItemState = (e, i) => this.adapter.setupRibbonMenuItemState(e, i), this.enableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !1, config: i }), this.disableRibbonMenuItem = (e, i) => this.setupRibbonMenuItemState(e, { disabled: !0, config: i }), this.setRibbonMenuButtonStyle = (e, i) => this.adapter.setRibbonMenuButtonStyle(e, i), this.setWatermark = (e) => this.adapter.setWatermark(e), this.setCompactMode = (e) => this.adapter.setCompactMode(e), this.setRulerVisible = (e) => this.adapter.setRulerVisible(e), this.setStatusBarVisible = (e) => this.adapter.setStatusBarVisible(e), this.toggleSidebar = () => this.adapter.toggleSidebar(), this.enterBookViewMode = (e) => this.adapter.enterBookViewMode(e), this.exitBookViewMode = () => this.adapter.exitBookViewMode(), this.isBookViewActivated = () => this.adapter.isBookViewActivated(), this.requestFullScreen = () => this.adapter.requestFullScreen(), this.exitFullScreen = () => this.adapter.exitFullScreen(), this.invalidateView = () => this.adapter.invalidateView(), this.adapter = l("ui", Xe(n), n);
|
|
763
769
|
}
|
|
764
770
|
warnLegacyRibbonMethod(n, e) {
|
|
765
|
-
|
|
771
|
+
We(`ui.${n} is deprecated. Use ui.${e} instead.`);
|
|
766
772
|
}
|
|
767
773
|
}
|
|
768
|
-
const
|
|
774
|
+
const Ze = (t) => {
|
|
769
775
|
if (!t)
|
|
770
776
|
return;
|
|
771
777
|
const n = t.trim().toLowerCase();
|
|
@@ -773,42 +779,42 @@ const Xe = (t) => {
|
|
|
773
779
|
return "auto";
|
|
774
780
|
if (n === "light" || n === "dark" || n === "high-contrast" || n === "auto")
|
|
775
781
|
return n;
|
|
776
|
-
},
|
|
782
|
+
}, X = (t) => {
|
|
777
783
|
const n = new URL(t, globalThis.location?.href ?? "http://localhost/");
|
|
778
784
|
return n.hash = "", n.pathname.endsWith("/") || (n.pathname = `${n.pathname}/`), n.toString();
|
|
779
|
-
},
|
|
780
|
-
const e =
|
|
785
|
+
}, et = (t) => new URL("editors.bootstrap.js", t).toString(), tt = (t, n) => {
|
|
786
|
+
const e = X(t);
|
|
781
787
|
return {
|
|
782
788
|
...n,
|
|
783
789
|
appUrl: e,
|
|
784
|
-
theme:
|
|
790
|
+
theme: Ze(n.theme)
|
|
785
791
|
};
|
|
786
|
-
}, g = "rhc-office-editor",
|
|
792
|
+
}, g = "rhc-office-editor", v = "__RHC_OFFICE_SDK_READER_LOADER__", J = () => {
|
|
787
793
|
const t = globalThis;
|
|
788
|
-
return t[
|
|
794
|
+
return t[v] || (t[v] = {
|
|
789
795
|
activeAppUrl: null,
|
|
790
796
|
loadPromises: /* @__PURE__ */ new Map()
|
|
791
|
-
}), t[
|
|
792
|
-
},
|
|
793
|
-
class
|
|
797
|
+
}), t[v];
|
|
798
|
+
}, nt = (t) => Array.from(document.querySelectorAll("script")).find((n) => n.src === t) ?? null;
|
|
799
|
+
class L extends Error {
|
|
794
800
|
constructor(n) {
|
|
795
801
|
super(`Failed to load reader bootstrap script: ${n}`), this.name = "ReaderScriptLoadError";
|
|
796
802
|
}
|
|
797
803
|
}
|
|
798
|
-
class
|
|
804
|
+
class it extends Error {
|
|
799
805
|
constructor(n, e) {
|
|
800
806
|
super(
|
|
801
807
|
`Reader Web Component "${g}" is already bound to ${n} and cannot be reloaded from ${e}.`
|
|
802
808
|
), this.name = "ReaderSourceConflictError";
|
|
803
809
|
}
|
|
804
810
|
}
|
|
805
|
-
const
|
|
806
|
-
const n =
|
|
811
|
+
const Z = (t) => {
|
|
812
|
+
const n = J();
|
|
807
813
|
if (n.activeAppUrl && n.activeAppUrl !== t)
|
|
808
|
-
throw new
|
|
809
|
-
},
|
|
810
|
-
const n =
|
|
811
|
-
|
|
814
|
+
throw new it(n.activeAppUrl, t);
|
|
815
|
+
}, rt = (t) => {
|
|
816
|
+
const n = J();
|
|
817
|
+
Z(t);
|
|
812
818
|
const e = n.loadPromises.get(t);
|
|
813
819
|
if (e)
|
|
814
820
|
return e;
|
|
@@ -817,12 +823,12 @@ const X = (t) => {
|
|
|
817
823
|
const s = Promise.resolve();
|
|
818
824
|
return n.loadPromises.set(t, s), s;
|
|
819
825
|
}
|
|
820
|
-
const i =
|
|
826
|
+
const i = et(t), r = nt(i);
|
|
821
827
|
n.activeAppUrl = t;
|
|
822
828
|
const a = new Promise((s, o) => {
|
|
823
|
-
const
|
|
824
|
-
h?.remove(), o(new
|
|
825
|
-
},
|
|
829
|
+
const u = (h) => {
|
|
830
|
+
h?.remove(), o(new L(i));
|
|
831
|
+
}, d = () => {
|
|
826
832
|
globalThis.customElements.whenDefined(g).then(() => {
|
|
827
833
|
s();
|
|
828
834
|
}).catch(o);
|
|
@@ -834,31 +840,31 @@ const X = (t) => {
|
|
|
834
840
|
}
|
|
835
841
|
r.addEventListener(
|
|
836
842
|
"error",
|
|
837
|
-
() => o(new
|
|
843
|
+
() => o(new L(i)),
|
|
838
844
|
{
|
|
839
845
|
once: !0
|
|
840
846
|
}
|
|
841
|
-
),
|
|
847
|
+
), d();
|
|
842
848
|
return;
|
|
843
849
|
}
|
|
844
850
|
const c = document.createElement("script");
|
|
845
|
-
c.src = i, c.async = !0, c.dataset.rhcOfficeSdkReader = t, c.addEventListener("load",
|
|
851
|
+
c.src = i, c.async = !0, c.dataset.rhcOfficeSdkReader = t, c.addEventListener("load", d, { once: !0 }), c.addEventListener("error", () => u(c), { once: !0 }), document.head.appendChild(c);
|
|
846
852
|
}).catch((s) => {
|
|
847
853
|
throw n.loadPromises.delete(t), !globalThis.customElements?.get(g) && n.activeAppUrl === t && (n.activeAppUrl = null), s;
|
|
848
854
|
});
|
|
849
855
|
return n.loadPromises.set(t, a), a;
|
|
850
|
-
},
|
|
856
|
+
}, at = 5e3, st = 5e3, ot = () => {
|
|
851
857
|
const t = globalThis.crypto;
|
|
852
858
|
return typeof t?.randomUUID == "function" ? t.randomUUID() : `adapter-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
853
|
-
}, b = () => globalThis[
|
|
854
|
-
class
|
|
859
|
+
}, b = () => globalThis[Te];
|
|
860
|
+
class dt extends Error {
|
|
855
861
|
constructor(n, e, i) {
|
|
856
862
|
super(e), this.name = "ReaderBridgeError", this.code = n, this.details = i;
|
|
857
863
|
}
|
|
858
864
|
}
|
|
859
|
-
class
|
|
865
|
+
class ut {
|
|
860
866
|
constructor(n) {
|
|
861
|
-
this.readerId = null, this.readyTimeoutMs = n?.readyTimeoutMs ??
|
|
867
|
+
this.readerId = null, this.readyTimeoutMs = n?.readyTimeoutMs ?? st, this.requestTimeoutMs = n?.requestTimeoutMs ?? at;
|
|
862
868
|
}
|
|
863
869
|
configureTimeouts(n) {
|
|
864
870
|
this.readyTimeoutMs = n?.readyTimeoutMs ?? this.readyTimeoutMs, this.requestTimeoutMs = n?.requestTimeoutMs ?? this.requestTimeoutMs;
|
|
@@ -873,7 +879,7 @@ class ot {
|
|
|
873
879
|
const a = await this.requestRaw(n, e, i, r);
|
|
874
880
|
if (a.ok)
|
|
875
881
|
return a.result;
|
|
876
|
-
throw new
|
|
882
|
+
throw new dt(
|
|
877
883
|
a.error.code,
|
|
878
884
|
a.error.message,
|
|
879
885
|
a.error.details
|
|
@@ -900,9 +906,9 @@ class ot {
|
|
|
900
906
|
}
|
|
901
907
|
};
|
|
902
908
|
const s = {
|
|
903
|
-
protocol:
|
|
904
|
-
version:
|
|
905
|
-
requestId:
|
|
909
|
+
protocol: Re,
|
|
910
|
+
version: ke,
|
|
911
|
+
requestId: ot(),
|
|
906
912
|
readerId: this.readerId,
|
|
907
913
|
tool: n,
|
|
908
914
|
method: e,
|
|
@@ -925,14 +931,14 @@ class ot {
|
|
|
925
931
|
return i?.getCapabilities(n) ? i : new Promise((r) => {
|
|
926
932
|
let a;
|
|
927
933
|
const s = () => {
|
|
928
|
-
a && clearTimeout(a), globalThis.removeEventListener(
|
|
929
|
-
}, o = (
|
|
930
|
-
if ((
|
|
934
|
+
a && clearTimeout(a), globalThis.removeEventListener(w, o);
|
|
935
|
+
}, o = (u) => {
|
|
936
|
+
if ((u instanceof CustomEvent ? u.detail : void 0)?.readerId !== n)
|
|
931
937
|
return;
|
|
932
938
|
const c = b();
|
|
933
939
|
s(), r(c ?? null);
|
|
934
940
|
};
|
|
935
|
-
globalThis.addEventListener(
|
|
941
|
+
globalThis.addEventListener(w, o), a = setTimeout(() => {
|
|
936
942
|
s(), r(b()?.getCapabilities(n) ? b() : null);
|
|
937
943
|
}, e);
|
|
938
944
|
});
|
|
@@ -964,7 +970,7 @@ class ot {
|
|
|
964
970
|
});
|
|
965
971
|
}
|
|
966
972
|
}
|
|
967
|
-
const
|
|
973
|
+
const F = {
|
|
968
974
|
annotationEnabled: !1,
|
|
969
975
|
documentModified: !1,
|
|
970
976
|
documentOpened: !1,
|
|
@@ -973,12 +979,12 @@ const _ = {
|
|
|
973
979
|
pageMode: 0,
|
|
974
980
|
zoomLevel: 100
|
|
975
981
|
};
|
|
976
|
-
class
|
|
982
|
+
class lt {
|
|
977
983
|
constructor() {
|
|
978
|
-
this.state = { ...
|
|
984
|
+
this.state = { ...F };
|
|
979
985
|
}
|
|
980
986
|
reset() {
|
|
981
|
-
this.state = { ...
|
|
987
|
+
this.state = { ...F };
|
|
982
988
|
}
|
|
983
989
|
update(n) {
|
|
984
990
|
n && (this.state = {
|
|
@@ -1002,18 +1008,18 @@ class dt {
|
|
|
1002
1008
|
};
|
|
1003
1009
|
}
|
|
1004
1010
|
}
|
|
1005
|
-
const
|
|
1006
|
-
if (!
|
|
1011
|
+
const ct = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : void 0, ee = (t) => typeof t == "object" && t !== null && !Array.isArray(t), N = (t) => {
|
|
1012
|
+
if (!ee(t))
|
|
1007
1013
|
return;
|
|
1008
1014
|
const n = {};
|
|
1009
1015
|
return typeof t.currentPage == "number" && (n.currentPage = t.currentPage), typeof t.documentType == "string" && (n.documentType = t.documentType), typeof t.totalPages == "number" ? n.totalPages = t.totalPages : typeof t.pageCount == "number" && (n.totalPages = t.pageCount), typeof t.zoomLevel == "number" && (n.zoomLevel = t.zoomLevel), Object.keys(n).length > 0 ? n : void 0;
|
|
1010
|
-
},
|
|
1011
|
-
if (!
|
|
1016
|
+
}, ht = (t) => {
|
|
1017
|
+
if (!ee(t))
|
|
1012
1018
|
return {
|
|
1013
1019
|
success: !0,
|
|
1014
1020
|
status: "ok"
|
|
1015
1021
|
};
|
|
1016
|
-
const n =
|
|
1022
|
+
const n = N(t.state), e = N(t), i = typeof t.error == "string" ? t.error : void 0, r = typeof t.success == "boolean" ? t.success : !i, a = typeof t.status == "string" ? t.status : r ? "ok" : "error";
|
|
1017
1023
|
return {
|
|
1018
1024
|
success: r,
|
|
1019
1025
|
status: a,
|
|
@@ -1021,7 +1027,7 @@ const ut = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t :
|
|
|
1021
1027
|
state: n ?? e
|
|
1022
1028
|
};
|
|
1023
1029
|
};
|
|
1024
|
-
class
|
|
1030
|
+
class mt {
|
|
1025
1031
|
constructor() {
|
|
1026
1032
|
this.annotationEvents = [], this.annotationPersist = [], this.annotationRetrieve = [], this.attachmentChanged = [], this.digitalAnnotationRetrieve = [], this.digitalSign = [], this.digitalSignatureParse = [], this.digitalSignatureRetrieve = [], this.documentClosed = [], this.documentOpened = [], this.documentSaved = [], this.pageChange = [], this.pageModeChange = [], this.signServerAuth = [];
|
|
1027
1033
|
}
|
|
@@ -1029,7 +1035,7 @@ class ct {
|
|
|
1029
1035
|
switch (n) {
|
|
1030
1036
|
case "documentOpened":
|
|
1031
1037
|
case "documentLoaded": {
|
|
1032
|
-
const i =
|
|
1038
|
+
const i = ht(e);
|
|
1033
1039
|
this.documentOpened.forEach(
|
|
1034
1040
|
(r) => r(i.status ?? "ok", i.error ?? "", i)
|
|
1035
1041
|
);
|
|
@@ -1058,7 +1064,7 @@ class ct {
|
|
|
1058
1064
|
this.annotationEvents.forEach(
|
|
1059
1065
|
(r) => r(
|
|
1060
1066
|
i.event ?? "annotationEvent",
|
|
1061
|
-
|
|
1067
|
+
ct(i.payload)
|
|
1062
1068
|
)
|
|
1063
1069
|
);
|
|
1064
1070
|
return;
|
|
@@ -1098,15 +1104,15 @@ class ct {
|
|
|
1098
1104
|
}
|
|
1099
1105
|
}
|
|
1100
1106
|
}
|
|
1101
|
-
const S = "__RHC_OFFICE_READER_RUNTIME__",
|
|
1107
|
+
const S = "__RHC_OFFICE_READER_RUNTIME__", E = "__rhcOfficeReaderRuntimeConfig", gt = [
|
|
1102
1108
|
"documentLoaded",
|
|
1103
1109
|
"documentStateChange",
|
|
1104
1110
|
"documentError"
|
|
1105
|
-
],
|
|
1111
|
+
], pt = "readerReady", bt = "readerUnload", A = "readerError", St = () => typeof globalThis.crypto?.randomUUID == "function" ? globalThis.crypto.randomUUID() : `rhc-reader-${Date.now()}-${Math.random().toString(36).slice(2)}`, U = (t, n) => ({
|
|
1106
1112
|
appUrl: n?.appUrl ?? null,
|
|
1107
1113
|
configuration: n,
|
|
1108
1114
|
element: t
|
|
1109
|
-
}),
|
|
1115
|
+
}), B = (t, n) => {
|
|
1110
1116
|
if (!t)
|
|
1111
1117
|
return;
|
|
1112
1118
|
const e = typeof t == "string" ? t.trim() : t.userName.trim();
|
|
@@ -1117,19 +1123,19 @@ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig",
|
|
|
1117
1123
|
sessionUser: e,
|
|
1118
1124
|
...a ? { sessionUserId: a } : {}
|
|
1119
1125
|
};
|
|
1120
|
-
},
|
|
1126
|
+
}, ft = (t) => {
|
|
1121
1127
|
const n = t.trim().replace(/[-_\s]/g, "").toLowerCase();
|
|
1122
1128
|
return n === "view" ? "VIEW" : n === "annotation" ? "ANNOTATION" : n === "digitalsign" ? "DIGITAL_SIGN" : null;
|
|
1123
|
-
},
|
|
1129
|
+
}, x = (t) => {
|
|
1124
1130
|
const n = ["VIEW"];
|
|
1125
1131
|
return t.split(/[;,]/).forEach((e) => {
|
|
1126
|
-
const i =
|
|
1132
|
+
const i = ft(e);
|
|
1127
1133
|
i && !n.includes(i) && n.push(i);
|
|
1128
1134
|
}), n.join(",");
|
|
1129
|
-
},
|
|
1135
|
+
}, Rt = (t) => {
|
|
1130
1136
|
const n = {};
|
|
1131
1137
|
return t.canOpenNewFile !== void 0 && (n.canOpenNewFile = t.canOpenNewFile), t.canPrint !== void 0 && (n.canPrint = t.canPrint), t.canDownload !== void 0 && (n.canDownload = t.canDownload), Object.keys(n).length > 0 ? n : void 0;
|
|
1132
|
-
},
|
|
1138
|
+
}, kt = (t) => {
|
|
1133
1139
|
if (typeof t == "string") {
|
|
1134
1140
|
const n = document.getElementById(t);
|
|
1135
1141
|
if (!n)
|
|
@@ -1141,52 +1147,52 @@ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig",
|
|
|
1141
1147
|
if (!(t instanceof HTMLDivElement))
|
|
1142
1148
|
throw new Error("Reader container must be a div element.");
|
|
1143
1149
|
return t;
|
|
1144
|
-
},
|
|
1150
|
+
}, Tt = () => {
|
|
1145
1151
|
const t = typeof globalThis.matchMedia == "function";
|
|
1146
1152
|
return (t ? globalThis.matchMedia("(prefers-contrast: more)").matches : !1) ? "high-contrast" : (t ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches : !1) ? "dark" : "light";
|
|
1147
|
-
},
|
|
1153
|
+
}, V = (t, n) => {
|
|
1148
1154
|
const e = t;
|
|
1149
1155
|
if (typeof e.addEventListener == "function") {
|
|
1150
1156
|
e.addEventListener("change", n);
|
|
1151
1157
|
return;
|
|
1152
1158
|
}
|
|
1153
1159
|
typeof e.addListener == "function" && e.addListener(n);
|
|
1154
|
-
},
|
|
1160
|
+
}, K = (t, n) => {
|
|
1155
1161
|
const e = t;
|
|
1156
1162
|
if (typeof e.removeEventListener == "function") {
|
|
1157
1163
|
e.removeEventListener("change", n);
|
|
1158
1164
|
return;
|
|
1159
1165
|
}
|
|
1160
1166
|
typeof e.removeListener == "function" && e.removeListener(n);
|
|
1161
|
-
},
|
|
1167
|
+
}, yt = (t) => {
|
|
1162
1168
|
t.style.display || (t.style.display = "block"), t.style.width || (t.style.width = "100%"), t.style.height || (t.style.height = "100%");
|
|
1163
|
-
},
|
|
1169
|
+
}, q = (t, n) => {
|
|
1164
1170
|
const e = n;
|
|
1165
1171
|
if (!e)
|
|
1166
1172
|
return t.removeAttribute("theme"), null;
|
|
1167
1173
|
if (e !== "auto")
|
|
1168
1174
|
return t.setAttribute("theme", e), null;
|
|
1169
1175
|
const i = () => {
|
|
1170
|
-
t.setAttribute("theme",
|
|
1176
|
+
t.setAttribute("theme", Tt());
|
|
1171
1177
|
};
|
|
1172
1178
|
if (i(), typeof globalThis.matchMedia != "function")
|
|
1173
1179
|
return null;
|
|
1174
1180
|
const r = globalThis.matchMedia("(prefers-color-scheme: dark)"), a = globalThis.matchMedia("(prefers-contrast: more)"), s = () => {
|
|
1175
1181
|
i();
|
|
1176
1182
|
};
|
|
1177
|
-
return
|
|
1178
|
-
|
|
1183
|
+
return V(r, s), V(a, s), () => {
|
|
1184
|
+
K(r, s), K(a, s);
|
|
1179
1185
|
};
|
|
1180
1186
|
};
|
|
1181
|
-
class
|
|
1187
|
+
class vt {
|
|
1182
1188
|
constructor(n) {
|
|
1183
|
-
this.bridge = new
|
|
1189
|
+
this.bridge = new ut(), this.callbacks = new mt(), this.readerState = new lt(), this.bridgeToolContext = {
|
|
1184
1190
|
bridge: this.bridge,
|
|
1185
1191
|
callbacks: this.callbacks,
|
|
1186
1192
|
debug: () => this.debugEnabled,
|
|
1187
1193
|
onAsyncError: (e) => this.reportAdapterError(e),
|
|
1188
1194
|
state: this.readerState
|
|
1189
|
-
}, this.documentTool = new
|
|
1195
|
+
}, this.documentTool = new ve(this.bridgeToolContext), this.uiTool = new Je(this.bridgeToolContext), this.pageTool = new Oe(this.bridgeToolContext), this.pageArrangeTool = new we(this.bridgeToolContext), this.attachmentTool = new ge(this.bridgeToolContext), this.findTool = new Ae(this.bridgeToolContext), this.signServerTool = new Ge(this.bridgeToolContext), this.digitalSignTool = new fe(this.bridgeToolContext), this.symbologyTool = new Qe(this.bridgeToolContext), this.annotationTool = new le(this.bridgeToolContext), this.templateSignTool = new $e(this.bridgeToolContext), this.pdfFormFiller = new Le(this.bridgeToolContext), this.networkingTool = new Pe(this.bridgeToolContext), this.cryptoTool = new be(this.bridgeToolContext), this.securityTool = new qe(this.bridgeToolContext), this.readyCallbacks = [], this.unloadCallbacks = [], this.debugEnabled = !1, this.isReady = !1, this.removed = !1, this.mountToken = 0, this.hostContainer = null, this.readerElement = null, this.readerId = null, this.normalizedConfiguration = null, this.runtimeRestoreState = null, this.nativeEventCleanupCallbacks = [], this.themeCleanup = null, this.enableDebug = (e) => {
|
|
1190
1196
|
this.debugEnabled = e;
|
|
1191
1197
|
}, this.changeLanguage = (e) => {
|
|
1192
1198
|
this.readerElement && this.readerElement.setAttribute("language", e);
|
|
@@ -1194,7 +1200,7 @@ class Tt {
|
|
|
1194
1200
|
this.themeCleanup?.(), this.themeCleanup = null, this.normalizedConfiguration = this.normalizedConfiguration ? {
|
|
1195
1201
|
...this.normalizedConfiguration,
|
|
1196
1202
|
theme: e
|
|
1197
|
-
} : null, this.readerElement && (this.themeCleanup =
|
|
1203
|
+
} : null, this.readerElement && (this.themeCleanup = q(this.readerElement, e));
|
|
1198
1204
|
}, this.setSessionUser = (e) => {
|
|
1199
1205
|
this.sessionUser = e, this.syncReaderRuntimeConfig();
|
|
1200
1206
|
}, this.setSessionUserId = (e) => {
|
|
@@ -1208,36 +1214,36 @@ class Tt {
|
|
|
1208
1214
|
}, this.setReaderEventListener = (e) => {
|
|
1209
1215
|
this.readerEventListener = e;
|
|
1210
1216
|
}, this.embedReader = (e, i, r) => {
|
|
1211
|
-
const a =
|
|
1212
|
-
|
|
1213
|
-
const o =
|
|
1214
|
-
this.removeReader(), this.mountToken =
|
|
1217
|
+
const a = kt(e), s = X(i);
|
|
1218
|
+
Z(s);
|
|
1219
|
+
const o = tt(s, r), u = this.mountToken + 1;
|
|
1220
|
+
this.removeReader(), this.mountToken = u, this.removed = !1, this.hostContainer = a, this.normalizedConfiguration = o, this.mountReader(a, o, u);
|
|
1215
1221
|
}, this.removeReader = () => {
|
|
1216
1222
|
const e = !!(this.readerElement || this.hostContainer);
|
|
1217
1223
|
if (this.mountToken += 1, this.cleanupNativeEventForwarders(), this.cleanupThemeBinding(), this.restoreReaderRuntimeConfig(), this.readerElement?.parentNode && this.readerElement.parentNode.removeChild(this.readerElement), this.readerElement = null, this.readerId = null, this.bridge.setReaderId(null), this.readerState.reset(), this.hostContainer = null, this.normalizedConfiguration = null, this.isReady = !1, this.removed = !0, !e)
|
|
1218
1224
|
return;
|
|
1219
|
-
const i =
|
|
1220
|
-
this.emitReaderEvent(
|
|
1221
|
-
}, this.getDocumentTool = () => this.documentTool, this.getUITool = () => this.uiTool, this.getPageTool = () => this.pageTool, this.getPageArrangeTool = () => this.pageArrangeTool, this.getAttachmentTool = () => this.attachmentTool, this.getFindTool = () => this.findTool, this.getSignServerTool = () => this.signServerTool, this.getDigitalSignTool = () => this.digitalSignTool, this.getSymbologyTool = () => this.symbologyTool, this.getAnnotationTool = () => this.annotationTool, this.getTemplateSignTool = () => this.templateSignTool, this.getPdfFormFiller = () => this.pdfFormFiller, this.getNetworkingTool = () => this.networkingTool, this.getCryptoTool = () => this.cryptoTool, this.getSecurityTool = () => this.securityTool, this.createDigitalSignOptions = () => new
|
|
1225
|
+
const i = U(null, null);
|
|
1226
|
+
this.emitReaderEvent(bt, i), this.unloadCallbacks.forEach((r) => r());
|
|
1227
|
+
}, this.getDocumentTool = () => this.documentTool, this.getUITool = () => this.uiTool, this.getPageTool = () => this.pageTool, this.getPageArrangeTool = () => this.pageArrangeTool, this.getAttachmentTool = () => this.attachmentTool, this.getFindTool = () => this.findTool, this.getSignServerTool = () => this.signServerTool, this.getDigitalSignTool = () => this.digitalSignTool, this.getSymbologyTool = () => this.symbologyTool, this.getAnnotationTool = () => this.annotationTool, this.getTemplateSignTool = () => this.templateSignTool, this.getPdfFormFiller = () => this.pdfFormFiller, this.getNetworkingTool = () => this.networkingTool, this.getCryptoTool = () => this.cryptoTool, this.getSecurityTool = () => this.securityTool, this.createDigitalSignOptions = () => new Ve(), this.createKVField = (e, i, r) => new xe(e, i, r), this.mountReader = async (e, i, r) => {
|
|
1222
1228
|
try {
|
|
1223
|
-
if (await
|
|
1229
|
+
if (await rt(i.appUrl), this.mountToken !== r)
|
|
1224
1230
|
return;
|
|
1225
|
-
const a = document.createElement(g), s =
|
|
1226
|
-
a.setAttribute(
|
|
1231
|
+
const a = document.createElement(g), s = St();
|
|
1232
|
+
a.setAttribute(W, s), this.readerId = s, this.bridge.setReaderId(s), yt(a), this.applyReaderRuntimeConfig(a, i);
|
|
1227
1233
|
const o = i.compactViewer === !0 && i.keepPCMenu !== !0;
|
|
1228
1234
|
if (a.toggleAttribute("data-sdk-compact-mode", o), a.toggleAttribute("data-sdk-ribbon-hidden", i.ribbonMenu === !1), a.toggleAttribute(
|
|
1229
1235
|
"data-sdk-ribbon-title-hidden",
|
|
1230
1236
|
i.ribbonTitle === !1
|
|
1231
|
-
), a.setAttribute("language", i.language ?? "zh_CN"), this.themeCleanup =
|
|
1237
|
+
), a.setAttribute("language", i.language ?? "zh_CN"), this.themeCleanup = q(a, i.theme), this.bindNativeReaderEvents(a), e.replaceChildren(a), this.readerElement = a, await Promise.resolve(), this.mountToken !== r)
|
|
1232
1238
|
return;
|
|
1233
|
-
const
|
|
1239
|
+
const u = await this.bridge.waitForReady();
|
|
1234
1240
|
if (this.mountToken !== r)
|
|
1235
1241
|
return;
|
|
1236
|
-
if (!
|
|
1242
|
+
if (!u)
|
|
1237
1243
|
throw new Error("Editor adapter is not available.");
|
|
1238
1244
|
this.isReady = !0;
|
|
1239
|
-
const
|
|
1240
|
-
this.emitReaderEvent(
|
|
1245
|
+
const d = U(a, i);
|
|
1246
|
+
this.emitReaderEvent(pt, d), this.readyCallbacks.forEach((c) => c());
|
|
1241
1247
|
} catch (a) {
|
|
1242
1248
|
if (this.mountToken !== r)
|
|
1243
1249
|
return;
|
|
@@ -1249,15 +1255,15 @@ class Tt {
|
|
|
1249
1255
|
const a = r instanceof CustomEvent ? r.detail : null;
|
|
1250
1256
|
!a || a.readerId !== this.readerId || (this.readerState.update(a.statePatch), this.callbacks.emit(a.event, a.payload), this.emitReaderEvent(a.event, a.payload));
|
|
1251
1257
|
};
|
|
1252
|
-
e.addEventListener(
|
|
1258
|
+
e.addEventListener(I, i), this.nativeEventCleanupCallbacks.push(() => {
|
|
1253
1259
|
e.removeEventListener(
|
|
1254
|
-
|
|
1260
|
+
I,
|
|
1255
1261
|
i
|
|
1256
1262
|
);
|
|
1257
|
-
}),
|
|
1263
|
+
}), gt.forEach((r) => {
|
|
1258
1264
|
const a = (s) => {
|
|
1259
1265
|
const o = s instanceof CustomEvent ? s.detail : s;
|
|
1260
|
-
r === "documentLoaded" && this.readerState.setDocumentOpened(!0), this.emitReaderEvent(r, o), r === "documentError" && this.emitReaderEvent(
|
|
1266
|
+
r === "documentLoaded" && this.readerState.setDocumentOpened(!0), this.emitReaderEvent(r, o), r === "documentError" && this.emitReaderEvent(A, o);
|
|
1261
1267
|
};
|
|
1262
1268
|
e.addEventListener(r, a), this.nativeEventCleanupCallbacks.push(() => {
|
|
1263
1269
|
e.removeEventListener(r, a);
|
|
@@ -1270,9 +1276,9 @@ class Tt {
|
|
|
1270
1276
|
}, this.emitReaderEvent = (e, i) => {
|
|
1271
1277
|
this.readerEventListener?.(e, i);
|
|
1272
1278
|
}, this.reportReaderError = (e) => {
|
|
1273
|
-
this.isReady = !1, this.debugEnabled &&
|
|
1279
|
+
this.isReady = !1, this.debugEnabled && _("Reader mount failed", e), this.emitReaderEvent(A, e);
|
|
1274
1280
|
}, this.reportAdapterError = (e) => {
|
|
1275
|
-
this.debugEnabled &&
|
|
1281
|
+
this.debugEnabled && _("Adapter command failed", e), this.emitReaderEvent(A, e);
|
|
1276
1282
|
}, this.bridge.configureTimeouts({
|
|
1277
1283
|
readyTimeoutMs: n?.readyTimeoutMs,
|
|
1278
1284
|
requestTimeoutMs: n?.requestTimeoutMs
|
|
@@ -1280,10 +1286,10 @@ class Tt {
|
|
|
1280
1286
|
}
|
|
1281
1287
|
applyReaderRuntimeConfig(n, e) {
|
|
1282
1288
|
this.restoreReaderRuntimeConfig();
|
|
1283
|
-
const i =
|
|
1284
|
-
feature:
|
|
1289
|
+
const i = B(this.sessionUser, this.sessionUserId), r = {
|
|
1290
|
+
feature: x(e.viewMode),
|
|
1285
1291
|
...i ?? {}
|
|
1286
|
-
}, a =
|
|
1292
|
+
}, a = Rt(e), s = {
|
|
1287
1293
|
hostKind: "server",
|
|
1288
1294
|
...a ? { embedOptions: a } : {},
|
|
1289
1295
|
server: {
|
|
@@ -1292,31 +1298,31 @@ class Tt {
|
|
|
1292
1298
|
identity: r,
|
|
1293
1299
|
...this.sessionData !== void 0 ? { sessionData: this.sessionData } : {}
|
|
1294
1300
|
}, o = n;
|
|
1295
|
-
o[
|
|
1296
|
-
const
|
|
1301
|
+
o[E] = s;
|
|
1302
|
+
const u = globalThis, d = u[S];
|
|
1297
1303
|
this.runtimeRestoreState = {
|
|
1298
|
-
hadPreviousRuntime:
|
|
1299
|
-
...
|
|
1300
|
-
},
|
|
1304
|
+
hadPreviousRuntime: d !== void 0,
|
|
1305
|
+
...d !== void 0 ? { previousRuntime: d } : {}
|
|
1306
|
+
}, u[S] = s;
|
|
1301
1307
|
}
|
|
1302
1308
|
syncReaderRuntimeConfig() {
|
|
1303
1309
|
if (!this.readerElement || !this.normalizedConfiguration)
|
|
1304
1310
|
return;
|
|
1305
|
-
const n = this.readerElement, e = n[
|
|
1311
|
+
const n = this.readerElement, e = n[E];
|
|
1306
1312
|
if (!e)
|
|
1307
1313
|
return;
|
|
1308
|
-
const i =
|
|
1314
|
+
const i = B(this.sessionUser, this.sessionUserId), r = { ...e.identity ?? {} };
|
|
1309
1315
|
delete r.sessionUser, delete r.sessionUserId;
|
|
1310
1316
|
const a = {
|
|
1311
1317
|
...r,
|
|
1312
|
-
feature:
|
|
1318
|
+
feature: x(this.normalizedConfiguration.viewMode),
|
|
1313
1319
|
...i ?? {}
|
|
1314
1320
|
}, s = {
|
|
1315
1321
|
...e,
|
|
1316
1322
|
identity: a,
|
|
1317
1323
|
...this.sessionData !== void 0 ? { sessionData: this.sessionData } : {}
|
|
1318
1324
|
};
|
|
1319
|
-
n[
|
|
1325
|
+
n[E] = s, globalThis[S] = s, this.isReady && this.bridge.request("extension", "updateReaderRuntimeConfig", {
|
|
1320
1326
|
identity: a,
|
|
1321
1327
|
...this.sessionData !== void 0 ? { sessionData: this.sessionData } : {}
|
|
1322
1328
|
}).catch((o) => {
|
|
@@ -1330,34 +1336,34 @@ class Tt {
|
|
|
1330
1336
|
this.runtimeRestoreState.hadPreviousRuntime ? n[S] = this.runtimeRestoreState.previousRuntime : Reflect.deleteProperty(n, S), this.runtimeRestoreState = null;
|
|
1331
1337
|
}
|
|
1332
1338
|
}
|
|
1333
|
-
const
|
|
1339
|
+
const It = (t) => new vt(t);
|
|
1334
1340
|
export {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1341
|
+
le as AnnotationToolImpl,
|
|
1342
|
+
ge as AttachmentToolImpl,
|
|
1343
|
+
be as CryptoToolImpl,
|
|
1344
|
+
wt as DIGITAL_SIGN_DEFAULTS,
|
|
1345
|
+
Ve as DigitalSignOptions,
|
|
1346
|
+
fe as DigitalSignToolImpl,
|
|
1347
|
+
vt as DocumentSDK,
|
|
1348
|
+
ve as DocumentToolImpl,
|
|
1349
|
+
Ae as FindToolImpl,
|
|
1350
|
+
xe as KVField,
|
|
1351
|
+
Pe as NetworkingToolImpl,
|
|
1352
|
+
we as PageArrangeToolImpl,
|
|
1353
|
+
Oe as PageToolImpl,
|
|
1354
|
+
Le as PdfFormFillerImpl,
|
|
1355
|
+
qe as SecurityToolImpl,
|
|
1356
|
+
Ge as SignServerToolImpl,
|
|
1357
|
+
Qe as SymbologyToolImpl,
|
|
1358
|
+
$e as TemplateSignToolImpl,
|
|
1359
|
+
Je as UIToolImpl,
|
|
1360
|
+
ne as WatermarkDisplay,
|
|
1361
|
+
It as createNewDocumentSdk,
|
|
1362
|
+
Et as getDigitalSignEnvironment,
|
|
1363
|
+
At as getDigitalSignEnvironmentSource,
|
|
1364
|
+
Ct as initializeDigitalSignEnvironment,
|
|
1365
|
+
Dt as patchDigitalSignEnvironment,
|
|
1366
|
+
Mt as resetDigitalSignEnvironment,
|
|
1367
|
+
Pt as setDigitalSignEnvironment
|
|
1362
1368
|
};
|
|
1363
1369
|
//# sourceMappingURL=index.js.map
|