@rhc-office/sdk 6.6.391 → 6.6.394

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/api/annotation-tool.d.ts +24 -2
  2. package/dist/api/annotation-tool.d.ts.map +1 -1
  3. package/dist/api/attachment-tool.d.ts +20 -0
  4. package/dist/api/attachment-tool.d.ts.map +1 -0
  5. package/dist/api/document-sdk.d.ts +2 -0
  6. package/dist/api/document-sdk.d.ts.map +1 -1
  7. package/dist/browser/document-viewer.js +1 -1
  8. package/dist/browser/document-viewer.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +215 -162
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.umd.cjs +1 -1
  14. package/dist/index.umd.cjs.map +1 -1
  15. package/dist/tools/AnnotationToolImpl.d.ts +1 -0
  16. package/dist/tools/AnnotationToolImpl.d.ts.map +1 -1
  17. package/dist/tools/AttachmentToolImpl.d.ts +14 -0
  18. package/dist/tools/AttachmentToolImpl.d.ts.map +1 -0
  19. package/dist/tools/index.d.ts +1 -0
  20. package/dist/tools/index.d.ts.map +1 -1
  21. package/dist/viewer/AdapterProtocol.d.ts +1 -1
  22. package/dist/viewer/AdapterProtocol.d.ts.map +1 -1
  23. package/dist/viewer/DocumentSDK.d.ts +2 -0
  24. package/dist/viewer/DocumentSDK.d.ts.map +1 -1
  25. package/dist/viewer/SdkCallbackRegistry.d.ts +2 -0
  26. package/dist/viewer/SdkCallbackRegistry.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/src/api/annotation-tool.ts +35 -1
  29. package/src/api/attachment-tool.ts +43 -0
  30. package/src/api/document-sdk.ts +3 -0
  31. package/src/index.ts +1 -0
  32. package/src/tools/AnnotationToolImpl.ts +5 -0
  33. package/src/tools/AttachmentToolImpl.ts +129 -0
  34. package/src/tools/index.ts +1 -0
  35. package/src/viewer/AdapterProtocol.ts +1 -0
  36. package/src/viewer/DocumentSDK.ts +7 -0
  37. package/src/viewer/SdkCallbackRegistry.ts +5 -0
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var X = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.COMPACT = "compact", t.HIDE = "none", t))(X || {});
2
- const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGITAL_SIGN_ENVIRONMENT__", P = {
2
+ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", S = "__RHC_OFFICE_DIGITAL_SIGN_ENVIRONMENT__", A = {
3
3
  defaults: {
4
4
  bjca: {
5
5
  pin: ""
@@ -25,7 +25,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
25
25
  usbKeyType: 14
26
26
  }
27
27
  }
28
- }, G = (t) => ({
28
+ }, z = (t) => ({
29
29
  bjca: {
30
30
  pin: t.bjca.pin
31
31
  },
@@ -37,7 +37,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
37
37
  },
38
38
  rsaMode: t.rsaMode,
39
39
  signatureType: t.signatureType
40
- }), q = (t) => ({
40
+ }), G = (t) => ({
41
41
  authSource: t.authSource,
42
42
  defaultLogin: t.defaultLogin,
43
43
  defaultPassword: t.defaultPassword,
@@ -48,9 +48,9 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
48
48
  checkCertificateBinding: t.usbKey.checkCertificateBinding,
49
49
  usbKeyType: t.usbKey.usbKeyType
50
50
  }
51
- }), g = (t) => ({
52
- defaults: G(t.defaults),
53
- signServer: q(t.signServer)
51
+ }), m = (t) => ({
52
+ defaults: z(t.defaults),
53
+ signServer: G(t.signServer)
54
54
  }), E = (t) => ({
55
55
  defaults: t.defaults ? {
56
56
  ...t.defaults,
@@ -73,7 +73,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
73
73
  },
74
74
  rsaMode: n.rsaMode ?? t.rsaMode,
75
75
  signatureType: n.signatureType ?? t.signatureType
76
- } : G(t), Z = (t, n) => n ? {
76
+ } : z(t), Z = (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,7 +84,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "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
- } : q(t), z = (t, n) => ({
87
+ } : G(t), q = (t, n) => ({
88
88
  defaults: J(t.defaults, n.defaults),
89
89
  signServer: Z(t.signServer, n.signServer)
90
90
  }), ee = (t, n) => {
@@ -113,31 +113,31 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
113
113
  };
114
114
  }, te = () => globalThis, p = () => {
115
115
  const t = te();
116
- return t[f] || (t[f] = {
117
- current: g(P),
118
- defaults: g(P),
116
+ return t[S] || (t[S] = {
117
+ current: m(A),
118
+ defaults: m(A),
119
119
  overrides: {}
120
- }), t[f];
121
- }, mt = () => p().current, pt = () => {
120
+ }), t[S];
121
+ }, St = () => p().current, Rt = () => {
122
122
  const t = p();
123
123
  return {
124
- current: g(t.current),
125
- defaults: g(t.defaults),
124
+ current: m(t.current),
125
+ defaults: m(t.defaults),
126
126
  overrides: E(t.overrides)
127
127
  };
128
- }, bt = (t) => {
128
+ }, kt = (t) => {
129
129
  const n = p();
130
- return n.defaults = g(t), n.current = z(n.defaults, n.overrides), n.current;
131
- }, St = (t) => {
130
+ return n.defaults = m(t), n.current = q(n.defaults, n.overrides), n.current;
131
+ }, Tt = (t) => {
132
132
  const n = p();
133
- return n.current = g(t), n.overrides = E(t), n.current;
134
- }, ft = (t) => {
133
+ return n.current = m(t), n.overrides = E(t), n.current;
134
+ }, yt = (t) => {
135
135
  const n = p();
136
- return n.overrides = ee(n.overrides, E(t)), n.current = z(n.current, t), n.current;
137
- }, Rt = (t) => {
136
+ return n.overrides = ee(n.overrides, E(t)), n.current = q(n.current, t), n.current;
137
+ }, vt = (t) => {
138
138
  const n = p();
139
- return t && (n.defaults = g(t)), n.overrides = {}, n.current = g(n.defaults), n.current;
140
- }, kt = {
139
+ return t && (n.defaults = m(t)), n.overrides = {}, n.current = m(n.defaults), n.current;
140
+ }, Et = {
141
141
  EDGE_POSITION: x,
142
142
  RSA_MODE: K,
143
143
  SIGNATURE_TYPE: V
@@ -236,6 +236,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
236
236
  canRedoAnnotation: { kind: "query" },
237
237
  selectAnnotationTool: { kind: "command" },
238
238
  selectAnnotationStamp: { kind: "command" },
239
+ openTextNoteCalloutDialog: { kind: "command", returnsResult: !0 },
239
240
  getCustomStamps: { kind: "query" },
240
241
  addCustomTextStamp: { kind: "query" },
241
242
  addCustomImageStamp: { kind: "query" },
@@ -245,7 +246,7 @@ const x = "RIGHT_CENTER", V = "REGULAR_ESM", K = "auto", f = "__RHC_OFFICE_DIGIT
245
246
  };
246
247
  class ae {
247
248
  constructor(n) {
248
- 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.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 = u(
249
+ 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.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 = u(
249
250
  "annotation",
250
251
  re,
251
252
  n
@@ -253,15 +254,63 @@ class ae {
253
254
  }
254
255
  }
255
256
  const se = {
257
+ addAttachmentChangedCallback: {
258
+ kind: "callbackRegister",
259
+ callback: (t, n) => {
260
+ const e = n[0];
261
+ typeof e == "function" && t.attachmentChanged.push(e);
262
+ }
263
+ },
264
+ addAttachment: { kind: "command", returnsResult: !0 },
265
+ clearAttachments: { kind: "command", returnsResult: !0 },
266
+ deleteAttachment: { kind: "command", returnsResult: !0 },
267
+ getAttachmentFile: { kind: "query" },
268
+ getAttachments: { kind: "query" }
269
+ }, oe = async (t) => {
270
+ if (t instanceof Uint8Array)
271
+ return t.slice();
272
+ if (t instanceof ArrayBuffer)
273
+ return new Uint8Array(t.slice(0));
274
+ if (ArrayBuffer.isView(t)) {
275
+ const n = t;
276
+ return new Uint8Array(n.buffer.slice(n.byteOffset, n.byteOffset + n.byteLength));
277
+ }
278
+ return new Uint8Array(await t.arrayBuffer());
279
+ }, de = (t, n) => {
280
+ const e = { ...n }, i = typeof File < "u" && t instanceof File, r = typeof Blob < "u" && t instanceof Blob;
281
+ 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)
282
+ throw new Error("Attachment fileName is required for binary attachment input.");
283
+ return e.mimeType = typeof e.mimeType == "string" ? e.mimeType.trim() : "", e.mimeType = e.mimeType || void 0, e;
284
+ };
285
+ class ue {
286
+ constructor(n) {
287
+ this.getAttachments = () => this.adapter.getAttachments(), this.getAttachmentFile = (e) => this.adapter.getAttachmentFile(e), this.addAttachment = async (e, i) => {
288
+ const r = await oe(e), a = de(e, i);
289
+ if (r.byteLength === 0)
290
+ throw new Error("Attachment content cannot be empty.");
291
+ if (typeof a.maxSizeBytes == "number" && r.byteLength > a.maxSizeBytes)
292
+ throw new Error("Attachment content exceeds maxSizeBytes.");
293
+ return this.addAttachmentCommand({
294
+ content: r,
295
+ options: a
296
+ });
297
+ }, 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 = u(
298
+ "attachment",
299
+ se,
300
+ n
301
+ ), this.addAttachmentCommand = this.adapter.addAttachment;
302
+ }
303
+ }
304
+ const le = {
256
305
  configSecurityProvider: { kind: "command" },
257
306
  getSecurityProviders: { kind: "query" }
258
307
  };
259
- class oe {
308
+ class ce {
260
309
  constructor(n) {
261
- this.configSecurityProvider = (e) => this.adapter.configSecurityProvider(e), this.getSecurityProviders = () => this.adapter.getSecurityProviders(), this.adapter = u("crypto", se, n);
310
+ this.configSecurityProvider = (e) => this.adapter.configSecurityProvider(e), this.getSecurityProviders = () => this.adapter.getSecurityProviders(), this.adapter = u("crypto", le, n);
262
311
  }
263
312
  }
264
- const D = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], de = {
313
+ const P = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], he = {
265
314
  addDigitalSignatureRetrieveCallback: {
266
315
  kind: "callbackRegister",
267
316
  callback: (t, n) => {
@@ -298,25 +347,25 @@ const D = (t) => t.digitalSignatures ? [...t.digitalSignatures] : [], de = {
298
347
  listDigitalSignatures: { kind: "callbackQuery" },
299
348
  getDigitalSignatures: {
300
349
  kind: "stateGetter",
301
- state: (t) => D(t)
350
+ state: (t) => P(t)
302
351
  },
303
352
  getDigitalSignaturesCount: {
304
353
  kind: "stateGetter",
305
- state: (t) => D(t).length
354
+ state: (t) => P(t).length
306
355
  },
307
356
  enableDigitalSignatureInfoView: { kind: "command" },
308
357
  enableDigitalSignatureRevocation: { kind: "command" }
309
358
  };
310
- class ue {
359
+ class me {
311
360
  constructor(n) {
312
361
  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 = u(
313
362
  "digitalSign",
314
- de,
363
+ he,
315
364
  n
316
365
  );
317
366
  }
318
367
  }
319
- const le = "rhc-office.editor-adapter", ce = 1, he = "__RHC_OFFICE_EDITOR_ADAPTER__", A = "rhcOfficeAdapterReady", M = "rhcOfficeAdapterEvent", H = "data-rhc-office-reader-id", ge = {
368
+ const ge = "rhc-office.editor-adapter", pe = 1, be = "__RHC_OFFICE_EDITOR_ADAPTER__", D = "rhcOfficeAdapterReady", M = "rhcOfficeAdapterEvent", H = "data-rhc-office-reader-id", fe = {
320
369
  addDocumentOpenedCallback: {
321
370
  kind: "callbackRegister",
322
371
  callback: (t, n) => {
@@ -365,7 +414,7 @@ const le = "rhc-office.editor-adapter", ce = 1, he = "__RHC_OFFICE_EDITOR_ADAPTE
365
414
  print: { kind: "command" },
366
415
  createPreview: { kind: "command" }
367
416
  };
368
- class me {
417
+ class Se {
369
418
  constructor(n) {
370
419
  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) => {
371
420
  const i = this.context.bridge.getReaderId();
@@ -382,36 +431,36 @@ class me {
382
431
  return typeof r?.saveAs == "function" ? r.saveAs(e) : this.adapter.saveAs(e);
383
432
  }, this.getDocumentContent = (e) => this.adapter.getDocumentContent(e), 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 = u(
384
433
  "document",
385
- ge,
434
+ fe,
386
435
  n
387
436
  );
388
437
  }
389
438
  }
390
- const pe = {
439
+ const Re = {
391
440
  clearFind: { kind: "command" },
392
441
  findNext: { kind: "command" },
393
442
  findPrevious: { kind: "command" }
394
443
  };
395
- class be {
444
+ class ke {
396
445
  constructor(n) {
397
- this.clearFind = () => this.adapter.clearFind(), this.findNext = (e) => this.adapter.findNext(e), this.findPrevious = (e) => this.adapter.findPrevious(e), this.adapter = u("find", pe, n);
446
+ this.clearFind = () => this.adapter.clearFind(), this.findNext = (e) => this.adapter.findNext(e), this.findPrevious = (e) => this.adapter.findPrevious(e), this.adapter = u("find", Re, n);
398
447
  }
399
448
  }
400
- const Se = {
449
+ const Te = {
401
450
  configFileUpload: { kind: "command" },
402
451
  setHttpHeaders: { kind: "command" },
403
452
  setHttpFormFields: { kind: "command" }
404
453
  };
405
- class fe {
454
+ class ye {
406
455
  constructor(n) {
407
456
  this.configFileUpload = (e) => this.adapter.configFileUpload(e), this.setHttpHeaders = (e) => this.adapter.setHttpHeaders(e), this.setHttpFormFields = (e) => this.adapter.setHttpFormFields(e), this.adapter = u(
408
457
  "networking",
409
- Se,
458
+ Te,
410
459
  n
411
460
  );
412
461
  }
413
462
  }
414
- const Re = () => ({
463
+ const ve = () => ({
415
464
  clearContent: { kind: "command", returnsResult: !0 },
416
465
  commit: { kind: "command", returnsResult: !0 },
417
466
  deletePages: { kind: "command", returnsResult: !0 },
@@ -426,17 +475,17 @@ const Re = () => ({
426
475
  rotateLeft: { kind: "command", returnsResult: !0 },
427
476
  rotateRight: { kind: "command", returnsResult: !0 },
428
477
  undo: { kind: "command", returnsResult: !0 }
429
- }), ke = (t) => t instanceof Uint8Array ? t : new Uint8Array(t);
430
- class Te {
478
+ }), Ee = (t) => t instanceof Uint8Array ? t : new Uint8Array(t);
479
+ class Ae {
431
480
  constructor(n) {
432
- 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(ke(e), i), this.extractPages = (e, i) => this.adapter.extractPages(e, i), this.undo = () => this.adapter.undo(), this.commit = () => this.adapter.commit(), this.adapter = u(
481
+ 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(Ee(e), i), this.extractPages = (e, i) => this.adapter.extractPages(e, i), this.undo = () => this.adapter.undo(), this.commit = () => this.adapter.commit(), this.adapter = u(
433
482
  "pageArrange",
434
- Re(),
483
+ ve(),
435
484
  n
436
485
  );
437
486
  }
438
487
  }
439
- const ye = (t) => ({
488
+ const Ce = (t) => ({
440
489
  addPageChangeCallback: {
441
490
  kind: "callbackRegister",
442
491
  callback: (n, e) => {
@@ -486,16 +535,16 @@ const ye = (t) => ({
486
535
  gotoPreviousPage: { kind: "command" },
487
536
  rotatePage: { kind: "command" }
488
537
  });
489
- class ve {
538
+ class Pe {
490
539
  constructor(n) {
491
540
  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 = u(
492
541
  "page",
493
- ye(n),
542
+ Ce(n),
494
543
  n
495
544
  );
496
545
  }
497
546
  }
498
- const Ee = {
547
+ const De = {
499
548
  open: { kind: "command" },
500
549
  setFormFieldValue: { kind: "command" },
501
550
  setFormFieldReadonly: { kind: "command" },
@@ -512,28 +561,28 @@ const Ee = {
512
561
  mapCallbackResult: (t) => [Array.isArray(t) ? t : []]
513
562
  }
514
563
  };
515
- class Pe {
564
+ class Me {
516
565
  constructor(n) {
517
566
  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 = u(
518
567
  "pdfFormFiller",
519
- Ee,
568
+ De,
520
569
  n
521
570
  );
522
571
  }
523
572
  }
524
- const Ce = /\s*,\s*/, De = /\s*-\s*/, k = (t) => {
573
+ const we = /\s*,\s*/, Ie = /\s*-\s*/, k = (t) => {
525
574
  const n = Number.parseInt(t.trim(), 10);
526
575
  return !Number.isFinite(n) || n <= 0 ? null : n;
527
- }, Ae = (t) => {
528
- const n = t.split(De);
576
+ }, Oe = (t) => {
577
+ const n = t.split(Ie);
529
578
  if (n.length === 1) {
530
579
  const r = k(n[0] ?? "");
531
580
  return r ? [r] : [];
532
581
  }
533
582
  const e = k(n[0] ?? ""), i = k(n[1] ?? "");
534
583
  return !e || !i || i < e ? [] : Array.from({ length: i - e + 1 }, (r, a) => e + a);
535
- }, Me = (t) => t ? t.split(Ce).flatMap((e) => Ae(e)).filter((e, i, r) => r.indexOf(e) === i) : [];
536
- class we {
584
+ }, _e = (t) => t ? t.split(we).flatMap((e) => Oe(e)).filter((e, i, r) => r.indexOf(e) === i) : [];
585
+ class Le {
537
586
  constructor(n, e, i) {
538
587
  this.setFieldName = (r) => {
539
588
  this.key = r;
@@ -544,7 +593,7 @@ class we {
544
593
  }, this.key = n, this.value = e, this.description = i;
545
594
  }
546
595
  }
547
- class Ie {
596
+ class Fe {
548
597
  constructor() {
549
598
  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) => {
550
599
  this.signType = n;
@@ -554,7 +603,7 @@ class Ie {
554
603
  this.sealPosition = n;
555
604
  }, this.setPageRange = (n) => {
556
605
  this.pageRange = n;
557
- }, this.getPageRange = () => this.pageRange, this.getPageRanges = () => Me(this.pageRange), this.setSignUserData = (n) => {
606
+ }, this.getPageRange = () => this.pageRange, this.getPageRanges = () => _e(this.pageRange), this.setSignUserData = (n) => {
558
607
  this.signUserData = n;
559
608
  }, this.setPrintMargin = (n) => {
560
609
  this.printMargin = n;
@@ -567,23 +616,23 @@ class Ie {
567
616
  };
568
617
  }
569
618
  }
570
- const Oe = {
619
+ const Ne = {
571
620
  getSecuritySettings: { kind: "query" },
572
621
  isSecuritySettingsLocalEditable: { kind: "query" },
573
622
  setSecuritySettingsLocalEditable: { kind: "query" },
574
623
  setSecuritySettings: { kind: "query" },
575
624
  openSecuritySettingsDialog: { kind: "command" }
576
625
  };
577
- class _e {
626
+ class Ue {
578
627
  constructor(n) {
579
628
  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 = u(
580
629
  "security",
581
- Oe,
630
+ Ne,
582
631
  n
583
632
  );
584
633
  }
585
634
  }
586
- const Le = {
635
+ const Be = {
587
636
  setSignServer: { kind: "command" },
588
637
  addSignServerAuthCallback: {
589
638
  kind: "callbackRegister",
@@ -603,28 +652,28 @@ const Le = {
603
652
  setSignServerLoginFromUSBKey: { kind: "command" },
604
653
  setUserAuthSource: { kind: "command" }
605
654
  };
606
- class Fe {
655
+ class xe {
607
656
  constructor(n) {
608
657
  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 = u(
609
658
  "signServer",
610
- Le,
659
+ Be,
611
660
  n
612
661
  );
613
662
  }
614
663
  }
615
- const Ue = {
664
+ const Ve = {
616
665
  createPDF417Barcode: { kind: "command" }
617
666
  };
618
- class Ne {
667
+ class Ke {
619
668
  constructor(n) {
620
669
  this.createPDF417Barcode = (e, i, r, a, s, o, d) => this.adapter.createPDF417Barcode(e, i, r, a, s, o, d), this.adapter = u(
621
670
  "symbology",
622
- Ue,
671
+ Ve,
623
672
  n
624
673
  );
625
674
  }
626
675
  }
627
- const Be = {
676
+ const ze = {
628
677
  setup: { kind: "command" },
629
678
  create: { kind: "command" },
630
679
  getMarkups: { kind: "callbackQuery" },
@@ -632,16 +681,16 @@ const Be = {
632
681
  removeAllMarkups: { kind: "command" },
633
682
  sign: { kind: "callbackQuery" }
634
683
  };
635
- class xe {
684
+ class Ge {
636
685
  constructor(n) {
637
686
  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 = u(
638
687
  "templateSign",
639
- Be,
688
+ ze,
640
689
  n
641
690
  );
642
691
  }
643
692
  }
644
- const Ve = /* @__PURE__ */ new Set([2, 5]), Ke = (t) => ({
693
+ const qe = /* @__PURE__ */ new Set([2, 5]), He = (t) => ({
645
694
  showToolbarMenu: { kind: "command" },
646
695
  hideToolbarMenu: { kind: "command" },
647
696
  setupToolbarMenu: { kind: "command" },
@@ -680,13 +729,13 @@ const Ve = /* @__PURE__ */ new Set([2, 5]), Ke = (t) => ({
680
729
  exitBookViewMode: { kind: "command" },
681
730
  isBookViewActivated: {
682
731
  kind: "stateGetter",
683
- state: () => Ve.has(t.state.snapshot().pageMode)
732
+ state: () => qe.has(t.state.snapshot().pageMode)
684
733
  },
685
734
  requestFullScreen: { kind: "command" },
686
735
  exitFullScreen: { kind: "command" },
687
736
  invalidateView: { kind: "command" }
688
737
  });
689
- class Ge {
738
+ class Qe {
690
739
  constructor(n) {
691
740
  this.showToolbarMenu = () => (this.warnLegacyRibbonMethod("showToolbarMenu", "showRibbonMenu"), this.showRibbonMenu()), this.hideToolbarMenu = () => (this.warnLegacyRibbonMethod("hideToolbarMenu", "hideRibbonMenu"), this.hideRibbonMenu()), this.setupToolbarMenu = (e) => (this.warnLegacyRibbonMethod(
692
741
  "setupToolbarMenu",
@@ -694,13 +743,13 @@ class Ge {
694
743
  ), 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(
695
744
  "setupRibbonMenu",
696
745
  "showRibbonMenu/hideRibbonMenu/setupRibbonMenuTab"
697
- ), 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 = u("ui", Ke(n), n);
746
+ ), 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 = u("ui", He(n), n);
698
747
  }
699
748
  warnLegacyRibbonMethod(n, e) {
700
749
  console.warn(`[RHC Office SDK] ui.${n} is deprecated. Use ui.${e} instead.`);
701
750
  }
702
751
  }
703
- const qe = (t) => {
752
+ const je = (t) => {
704
753
  if (!t)
705
754
  return;
706
755
  const n = t.trim().toLowerCase();
@@ -711,59 +760,59 @@ const qe = (t) => {
711
760
  }, Q = (t) => {
712
761
  const n = new URL(t, globalThis.location?.href ?? "http://localhost/");
713
762
  return n.hash = "", n.pathname.endsWith("/") || (n.pathname = `${n.pathname}/`), n.toString();
714
- }, ze = (t) => new URL("editors.bootstrap.js", t).toString(), He = (t, n) => {
763
+ }, We = (t) => new URL("editors.bootstrap.js", t).toString(), Ye = (t, n) => {
715
764
  const e = Q(t);
716
765
  return {
717
766
  ...n,
718
767
  appUrl: e,
719
- theme: qe(n.theme)
768
+ theme: je(n.theme)
720
769
  };
721
- }, m = "rhc-office-editor", T = "__RHC_OFFICE_SDK_READER_LOADER__", j = () => {
770
+ }, g = "rhc-office-editor", T = "__RHC_OFFICE_SDK_READER_LOADER__", j = () => {
722
771
  const t = globalThis;
723
772
  return t[T] || (t[T] = {
724
773
  activeAppUrl: null,
725
774
  loadPromises: /* @__PURE__ */ new Map()
726
775
  }), t[T];
727
- }, Qe = (t) => Array.from(document.querySelectorAll("script")).find((n) => n.src === t) ?? null;
776
+ }, $e = (t) => Array.from(document.querySelectorAll("script")).find((n) => n.src === t) ?? null;
728
777
  class w extends Error {
729
778
  constructor(n) {
730
779
  super(`Failed to load reader bootstrap script: ${n}`), this.name = "ReaderScriptLoadError";
731
780
  }
732
781
  }
733
- class je extends Error {
782
+ class Xe extends Error {
734
783
  constructor(n, e) {
735
784
  super(
736
- `Reader Web Component "${m}" is already bound to ${n} and cannot be reloaded from ${e}.`
785
+ `Reader Web Component "${g}" is already bound to ${n} and cannot be reloaded from ${e}.`
737
786
  ), this.name = "ReaderSourceConflictError";
738
787
  }
739
788
  }
740
789
  const W = (t) => {
741
790
  const n = j();
742
791
  if (n.activeAppUrl && n.activeAppUrl !== t)
743
- throw new je(n.activeAppUrl, t);
744
- }, We = (t) => {
792
+ throw new Xe(n.activeAppUrl, t);
793
+ }, Je = (t) => {
745
794
  const n = j();
746
795
  W(t);
747
796
  const e = n.loadPromises.get(t);
748
797
  if (e)
749
798
  return e;
750
- if (globalThis.customElements?.get(m)) {
799
+ if (globalThis.customElements?.get(g)) {
751
800
  n.activeAppUrl = t;
752
801
  const s = Promise.resolve();
753
802
  return n.loadPromises.set(t, s), s;
754
803
  }
755
- const i = ze(t), r = Qe(i);
804
+ const i = We(t), r = $e(i);
756
805
  n.activeAppUrl = t;
757
806
  const a = new Promise((s, o) => {
758
807
  const d = (h) => {
759
808
  h?.remove(), o(new w(i));
760
809
  }, l = () => {
761
- globalThis.customElements.whenDefined(m).then(() => {
810
+ globalThis.customElements.whenDefined(g).then(() => {
762
811
  s();
763
812
  }).catch(o);
764
813
  };
765
814
  if (r) {
766
- if (globalThis.customElements?.get(m)) {
815
+ if (globalThis.customElements?.get(g)) {
767
816
  s();
768
817
  return;
769
818
  }
@@ -779,21 +828,21 @@ const W = (t) => {
779
828
  const c = document.createElement("script");
780
829
  c.src = i, c.async = !0, c.dataset.rhcOfficeSdkReader = t, c.addEventListener("load", l, { once: !0 }), c.addEventListener("error", () => d(c), { once: !0 }), document.head.appendChild(c);
781
830
  }).catch((s) => {
782
- throw n.loadPromises.delete(t), !globalThis.customElements?.get(m) && n.activeAppUrl === t && (n.activeAppUrl = null), s;
831
+ throw n.loadPromises.delete(t), !globalThis.customElements?.get(g) && n.activeAppUrl === t && (n.activeAppUrl = null), s;
783
832
  });
784
833
  return n.loadPromises.set(t, a), a;
785
- }, Ye = 5e3, $e = 5e3, Xe = () => {
834
+ }, Ze = 5e3, et = 5e3, tt = () => {
786
835
  const t = globalThis.crypto;
787
836
  return typeof t?.randomUUID == "function" ? t.randomUUID() : `adapter-${Date.now()}-${Math.random().toString(36).slice(2)}`;
788
- }, b = () => globalThis[he];
789
- class Je extends Error {
837
+ }, b = () => globalThis[be];
838
+ class nt extends Error {
790
839
  constructor(n, e, i) {
791
840
  super(e), this.name = "ReaderBridgeError", this.code = n, this.details = i;
792
841
  }
793
842
  }
794
- class Ze {
843
+ class it {
795
844
  constructor(n) {
796
- this.readerId = null, this.readyTimeoutMs = n?.readyTimeoutMs ?? $e, this.requestTimeoutMs = n?.requestTimeoutMs ?? Ye;
845
+ this.readerId = null, this.readyTimeoutMs = n?.readyTimeoutMs ?? et, this.requestTimeoutMs = n?.requestTimeoutMs ?? Ze;
797
846
  }
798
847
  configureTimeouts(n) {
799
848
  this.readyTimeoutMs = n?.readyTimeoutMs ?? this.readyTimeoutMs, this.requestTimeoutMs = n?.requestTimeoutMs ?? this.requestTimeoutMs;
@@ -808,7 +857,7 @@ class Ze {
808
857
  const a = await this.requestRaw(n, e, i, r);
809
858
  if (a.ok)
810
859
  return a.result;
811
- throw new Je(
860
+ throw new nt(
812
861
  a.error.code,
813
862
  a.error.message,
814
863
  a.error.details
@@ -835,9 +884,9 @@ class Ze {
835
884
  }
836
885
  };
837
886
  const s = {
838
- protocol: le,
839
- version: ce,
840
- requestId: Xe(),
887
+ protocol: ge,
888
+ version: pe,
889
+ requestId: tt(),
841
890
  readerId: this.readerId,
842
891
  tool: n,
843
892
  method: e,
@@ -860,14 +909,14 @@ class Ze {
860
909
  return i?.getCapabilities(n) ? i : new Promise((r) => {
861
910
  let a;
862
911
  const s = () => {
863
- a && clearTimeout(a), globalThis.removeEventListener(A, o);
912
+ a && clearTimeout(a), globalThis.removeEventListener(D, o);
864
913
  }, o = (d) => {
865
914
  if ((d instanceof CustomEvent ? d.detail : void 0)?.readerId !== n)
866
915
  return;
867
916
  const c = b();
868
917
  s(), r(c ?? null);
869
918
  };
870
- globalThis.addEventListener(A, o), a = setTimeout(() => {
919
+ globalThis.addEventListener(D, o), a = setTimeout(() => {
871
920
  s(), r(b()?.getCapabilities(n) ? b() : null);
872
921
  }, e);
873
922
  });
@@ -908,7 +957,7 @@ const I = {
908
957
  pageMode: 0,
909
958
  zoomLevel: 100
910
959
  };
911
- class et {
960
+ class rt {
912
961
  constructor() {
913
962
  this.state = { ...I };
914
963
  }
@@ -937,12 +986,12 @@ class et {
937
986
  };
938
987
  }
939
988
  }
940
- const tt = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : void 0, Y = (t) => typeof t == "object" && t !== null && !Array.isArray(t), O = (t) => {
989
+ const at = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t : void 0, Y = (t) => typeof t == "object" && t !== null && !Array.isArray(t), O = (t) => {
941
990
  if (!Y(t))
942
991
  return;
943
992
  const n = {};
944
993
  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;
945
- }, nt = (t) => {
994
+ }, st = (t) => {
946
995
  if (!Y(t))
947
996
  return {
948
997
  success: !0,
@@ -956,15 +1005,15 @@ const tt = (t) => typeof t == "object" && t !== null && !Array.isArray(t) ? t :
956
1005
  state: n ?? e
957
1006
  };
958
1007
  };
959
- class it {
1008
+ class ot {
960
1009
  constructor() {
961
- this.annotationEvents = [], this.annotationPersist = [], this.annotationRetrieve = [], this.digitalAnnotationRetrieve = [], this.digitalSign = [], this.digitalSignatureParse = [], this.digitalSignatureRetrieve = [], this.documentClosed = [], this.documentOpened = [], this.documentSaved = [], this.pageChange = [], this.pageModeChange = [], this.signServerAuth = [];
1010
+ 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 = [];
962
1011
  }
963
1012
  emit(n, e) {
964
1013
  switch (n) {
965
1014
  case "documentOpened":
966
1015
  case "documentLoaded": {
967
- const i = nt(e);
1016
+ const i = st(e);
968
1017
  this.documentOpened.forEach(
969
1018
  (r) => r(i.status ?? "ok", i.error ?? "", i)
970
1019
  );
@@ -993,7 +1042,7 @@ class it {
993
1042
  this.annotationEvents.forEach(
994
1043
  (r) => r(
995
1044
  i.event ?? "annotationEvent",
996
- tt(i.payload)
1045
+ at(i.payload)
997
1046
  )
998
1047
  );
999
1048
  return;
@@ -1004,6 +1053,9 @@ class it {
1004
1053
  case "annotationRetrieve":
1005
1054
  this.annotationRetrieve.forEach((i) => i(e));
1006
1055
  return;
1056
+ case "attachmentChanged":
1057
+ this.attachmentChanged.forEach((i) => i(e));
1058
+ return;
1007
1059
  case "digitalAnnotationRetrieve":
1008
1060
  this.digitalAnnotationRetrieve.forEach(
1009
1061
  (i) => i(Array.isArray(e) ? e : [])
@@ -1030,11 +1082,11 @@ class it {
1030
1082
  }
1031
1083
  }
1032
1084
  }
1033
- const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig", rt = [
1085
+ const f = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig", dt = [
1034
1086
  "documentLoaded",
1035
1087
  "documentStateChange",
1036
1088
  "documentError"
1037
- ], at = "readerReady", st = "readerUnload", v = "readerError", ot = () => typeof globalThis.crypto?.randomUUID == "function" ? globalThis.crypto.randomUUID() : `rhc-reader-${Date.now()}-${Math.random().toString(36).slice(2)}`, _ = (t, n) => ({
1089
+ ], ut = "readerReady", lt = "readerUnload", v = "readerError", ct = () => typeof globalThis.crypto?.randomUUID == "function" ? globalThis.crypto.randomUUID() : `rhc-reader-${Date.now()}-${Math.random().toString(36).slice(2)}`, _ = (t, n) => ({
1038
1090
  appUrl: n?.appUrl ?? null,
1039
1091
  configuration: n,
1040
1092
  element: t
@@ -1049,19 +1101,19 @@ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig",
1049
1101
  sessionUser: e,
1050
1102
  ...a ? { sessionUserId: a } : {}
1051
1103
  };
1052
- }, dt = (t) => {
1104
+ }, ht = (t) => {
1053
1105
  const n = t.trim().replace(/[-_\s]/g, "").toLowerCase();
1054
1106
  return n === "view" ? "VIEW" : n === "annotation" ? "ANNOTATION" : n === "digitalsign" ? "DIGITAL_SIGN" : null;
1055
1107
  }, F = (t) => {
1056
1108
  const n = [];
1057
1109
  return t.split(/[;,]/).forEach((e) => {
1058
- const i = dt(e);
1110
+ const i = ht(e);
1059
1111
  i && !n.includes(i) && n.push(i);
1060
1112
  }), n.length > 0 ? n.join(",") : "VIEW";
1061
- }, ut = (t) => {
1113
+ }, mt = (t) => {
1062
1114
  const n = {};
1063
1115
  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;
1064
- }, lt = (t) => {
1116
+ }, gt = (t) => {
1065
1117
  if (typeof t == "string") {
1066
1118
  const n = document.getElementById(t);
1067
1119
  if (!n)
@@ -1073,24 +1125,24 @@ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig",
1073
1125
  if (!(t instanceof HTMLDivElement))
1074
1126
  throw new Error("Reader container must be a div element.");
1075
1127
  return t;
1076
- }, ct = () => {
1128
+ }, pt = () => {
1077
1129
  const t = typeof globalThis.matchMedia == "function";
1078
1130
  return (t ? globalThis.matchMedia("(prefers-contrast: more)").matches : !1) ? "high-contrast" : (t ? globalThis.matchMedia("(prefers-color-scheme: dark)").matches : !1) ? "dark" : "light";
1079
- }, U = (t, n) => {
1131
+ }, N = (t, n) => {
1080
1132
  const e = t;
1081
1133
  if (typeof e.addEventListener == "function") {
1082
1134
  e.addEventListener("change", n);
1083
1135
  return;
1084
1136
  }
1085
1137
  typeof e.addListener == "function" && e.addListener(n);
1086
- }, N = (t, n) => {
1138
+ }, U = (t, n) => {
1087
1139
  const e = t;
1088
1140
  if (typeof e.removeEventListener == "function") {
1089
1141
  e.removeEventListener("change", n);
1090
1142
  return;
1091
1143
  }
1092
1144
  typeof e.removeListener == "function" && e.removeListener(n);
1093
- }, ht = (t) => {
1145
+ }, bt = (t) => {
1094
1146
  t.style.display || (t.style.display = "block"), t.style.width || (t.style.width = "100%"), t.style.height || (t.style.height = "100%");
1095
1147
  }, B = (t, n) => {
1096
1148
  const e = n;
@@ -1099,26 +1151,26 @@ const S = "__RHC_OFFICE_READER_RUNTIME__", y = "__rhcOfficeReaderRuntimeConfig",
1099
1151
  if (e !== "auto")
1100
1152
  return t.setAttribute("theme", e), null;
1101
1153
  const i = () => {
1102
- t.setAttribute("theme", ct());
1154
+ t.setAttribute("theme", pt());
1103
1155
  };
1104
1156
  if (i(), typeof globalThis.matchMedia != "function")
1105
1157
  return null;
1106
1158
  const r = globalThis.matchMedia("(prefers-color-scheme: dark)"), a = globalThis.matchMedia("(prefers-contrast: more)"), s = () => {
1107
1159
  i();
1108
1160
  };
1109
- return U(r, s), U(a, s), () => {
1110
- N(r, s), N(a, s);
1161
+ return N(r, s), N(a, s), () => {
1162
+ U(r, s), U(a, s);
1111
1163
  };
1112
1164
  };
1113
- class gt {
1165
+ class ft {
1114
1166
  constructor(n) {
1115
- this.bridge = new Ze(), this.callbacks = new it(), this.readerState = new et(), this.bridgeToolContext = {
1167
+ this.bridge = new it(), this.callbacks = new ot(), this.readerState = new rt(), this.bridgeToolContext = {
1116
1168
  bridge: this.bridge,
1117
1169
  callbacks: this.callbacks,
1118
1170
  debug: () => this.debugEnabled,
1119
1171
  onAsyncError: (e) => this.reportAdapterError(e),
1120
1172
  state: this.readerState
1121
- }, this.documentTool = new me(this.bridgeToolContext), this.uiTool = new Ge(this.bridgeToolContext), this.pageTool = new ve(this.bridgeToolContext), this.pageArrangeTool = new Te(this.bridgeToolContext), this.findTool = new be(this.bridgeToolContext), this.signServerTool = new Fe(this.bridgeToolContext), this.digitalSignTool = new ue(this.bridgeToolContext), this.symbologyTool = new Ne(this.bridgeToolContext), this.annotationTool = new ae(this.bridgeToolContext), this.templateSignTool = new xe(this.bridgeToolContext), this.pdfFormFiller = new Pe(this.bridgeToolContext), this.networkingTool = new fe(this.bridgeToolContext), this.cryptoTool = new oe(this.bridgeToolContext), this.securityTool = new _e(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) => {
1173
+ }, this.documentTool = new Se(this.bridgeToolContext), this.uiTool = new Qe(this.bridgeToolContext), this.pageTool = new Pe(this.bridgeToolContext), this.pageArrangeTool = new Ae(this.bridgeToolContext), this.attachmentTool = new ue(this.bridgeToolContext), this.findTool = new ke(this.bridgeToolContext), this.signServerTool = new xe(this.bridgeToolContext), this.digitalSignTool = new me(this.bridgeToolContext), this.symbologyTool = new Ke(this.bridgeToolContext), this.annotationTool = new ae(this.bridgeToolContext), this.templateSignTool = new Ge(this.bridgeToolContext), this.pdfFormFiller = new Me(this.bridgeToolContext), this.networkingTool = new ye(this.bridgeToolContext), this.cryptoTool = new ce(this.bridgeToolContext), this.securityTool = new Ue(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) => {
1122
1174
  this.debugEnabled = e;
1123
1175
  }, this.changeLanguage = (e) => {
1124
1176
  this.readerElement && this.readerElement.setAttribute("language", e);
@@ -1140,22 +1192,22 @@ class gt {
1140
1192
  }, this.setReaderEventListener = (e) => {
1141
1193
  this.readerEventListener = e;
1142
1194
  }, this.embedReader = (e, i, r) => {
1143
- const a = lt(e), s = Q(i);
1195
+ const a = gt(e), s = Q(i);
1144
1196
  W(s);
1145
- const o = He(s, r), d = this.mountToken + 1;
1197
+ const o = Ye(s, r), d = this.mountToken + 1;
1146
1198
  this.removeReader(), this.mountToken = d, this.removed = !1, this.hostContainer = a, this.normalizedConfiguration = o, this.mountReader(a, o, d);
1147
1199
  }, this.removeReader = () => {
1148
1200
  const e = !!(this.readerElement || this.hostContainer);
1149
1201
  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)
1150
1202
  return;
1151
1203
  const i = _(null, null);
1152
- this.emitReaderEvent(st, i), this.unloadCallbacks.forEach((r) => r());
1153
- }, this.getDocumentTool = () => this.documentTool, this.getUITool = () => this.uiTool, this.getPageTool = () => this.pageTool, this.getPageArrangeTool = () => this.pageArrangeTool, 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 Ie(), this.createKVField = (e, i, r) => new we(e, i, r), this.mountReader = async (e, i, r) => {
1204
+ this.emitReaderEvent(lt, i), this.unloadCallbacks.forEach((r) => r());
1205
+ }, 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 Fe(), this.createKVField = (e, i, r) => new Le(e, i, r), this.mountReader = async (e, i, r) => {
1154
1206
  try {
1155
- if (await We(i.appUrl), this.mountToken !== r)
1207
+ if (await Je(i.appUrl), this.mountToken !== r)
1156
1208
  return;
1157
- const a = document.createElement(m), s = ot();
1158
- a.setAttribute(H, s), this.readerId = s, this.bridge.setReaderId(s), ht(a), this.applyReaderRuntimeConfig(a, i);
1209
+ const a = document.createElement(g), s = ct();
1210
+ a.setAttribute(H, s), this.readerId = s, this.bridge.setReaderId(s), bt(a), this.applyReaderRuntimeConfig(a, i);
1159
1211
  const o = i.compactViewer === !0 && i.keepPCMenu !== !0;
1160
1212
  if (a.toggleAttribute("data-sdk-compact-mode", o), a.toggleAttribute("data-sdk-ribbon-hidden", i.ribbonMenu === !1), a.toggleAttribute(
1161
1213
  "data-sdk-ribbon-title-hidden",
@@ -1169,7 +1221,7 @@ class gt {
1169
1221
  throw new Error("Editor adapter is not available.");
1170
1222
  this.isReady = !0;
1171
1223
  const l = _(a, i);
1172
- this.emitReaderEvent(at, l), this.readyCallbacks.forEach((c) => c());
1224
+ this.emitReaderEvent(ut, l), this.readyCallbacks.forEach((c) => c());
1173
1225
  } catch (a) {
1174
1226
  if (this.mountToken !== r)
1175
1227
  return;
@@ -1186,7 +1238,7 @@ class gt {
1186
1238
  M,
1187
1239
  i
1188
1240
  );
1189
- }), rt.forEach((r) => {
1241
+ }), dt.forEach((r) => {
1190
1242
  const a = (s) => {
1191
1243
  const o = s instanceof CustomEvent ? s.detail : s;
1192
1244
  r === "documentLoaded" && this.readerState.setDocumentOpened(!0), this.emitReaderEvent(r, o), r === "documentError" && this.emitReaderEvent(v, o);
@@ -1215,7 +1267,7 @@ class gt {
1215
1267
  const i = L(this.sessionUser, this.sessionUserId), r = {
1216
1268
  feature: F(e.viewMode),
1217
1269
  ...i ?? {}
1218
- }, a = ut(e), s = {
1270
+ }, a = mt(e), s = {
1219
1271
  hostKind: "server",
1220
1272
  ...a ? { embedOptions: a } : {},
1221
1273
  server: {
@@ -1225,11 +1277,11 @@ class gt {
1225
1277
  ...this.sessionData !== void 0 ? { sessionData: this.sessionData } : {}
1226
1278
  }, o = n;
1227
1279
  o[y] = s;
1228
- const d = globalThis, l = d[S];
1280
+ const d = globalThis, l = d[f];
1229
1281
  this.runtimeRestoreState = {
1230
1282
  hadPreviousRuntime: l !== void 0,
1231
1283
  ...l !== void 0 ? { previousRuntime: l } : {}
1232
- }, d[S] = s;
1284
+ }, d[f] = s;
1233
1285
  }
1234
1286
  syncReaderRuntimeConfig() {
1235
1287
  if (!this.readerElement || !this.normalizedConfiguration)
@@ -1248,7 +1300,7 @@ class gt {
1248
1300
  identity: a,
1249
1301
  ...this.sessionData !== void 0 ? { sessionData: this.sessionData } : {}
1250
1302
  };
1251
- n[y] = s, globalThis[S] = s, this.isReady && this.bridge.request("extension", "updateReaderRuntimeConfig", {
1303
+ n[y] = s, globalThis[f] = s, this.isReady && this.bridge.request("extension", "updateReaderRuntimeConfig", {
1252
1304
  identity: a,
1253
1305
  ...this.sessionData !== void 0 ? { sessionData: this.sessionData } : {}
1254
1306
  }).catch((o) => {
@@ -1259,36 +1311,37 @@ class gt {
1259
1311
  if (!this.runtimeRestoreState)
1260
1312
  return;
1261
1313
  const n = globalThis;
1262
- this.runtimeRestoreState.hadPreviousRuntime ? n[S] = this.runtimeRestoreState.previousRuntime : Reflect.deleteProperty(n, S), this.runtimeRestoreState = null;
1314
+ this.runtimeRestoreState.hadPreviousRuntime ? n[f] = this.runtimeRestoreState.previousRuntime : Reflect.deleteProperty(n, f), this.runtimeRestoreState = null;
1263
1315
  }
1264
1316
  }
1265
- const Tt = (t) => new gt(t);
1317
+ const At = (t) => new ft(t);
1266
1318
  export {
1267
1319
  ae as AnnotationToolImpl,
1268
- oe as CryptoToolImpl,
1269
- kt as DIGITAL_SIGN_DEFAULTS,
1270
- Ie as DigitalSignOptions,
1271
- ue as DigitalSignToolImpl,
1272
- gt as DocumentSDK,
1273
- me as DocumentToolImpl,
1274
- be as FindToolImpl,
1275
- we as KVField,
1276
- fe as NetworkingToolImpl,
1277
- Te as PageArrangeToolImpl,
1278
- ve as PageToolImpl,
1279
- Pe as PdfFormFillerImpl,
1280
- _e as SecurityToolImpl,
1281
- Fe as SignServerToolImpl,
1282
- Ne as SymbologyToolImpl,
1283
- xe as TemplateSignToolImpl,
1284
- Ge as UIToolImpl,
1320
+ ue as AttachmentToolImpl,
1321
+ ce as CryptoToolImpl,
1322
+ Et as DIGITAL_SIGN_DEFAULTS,
1323
+ Fe as DigitalSignOptions,
1324
+ me as DigitalSignToolImpl,
1325
+ ft as DocumentSDK,
1326
+ Se as DocumentToolImpl,
1327
+ ke as FindToolImpl,
1328
+ Le as KVField,
1329
+ ye as NetworkingToolImpl,
1330
+ Ae as PageArrangeToolImpl,
1331
+ Pe as PageToolImpl,
1332
+ Me as PdfFormFillerImpl,
1333
+ Ue as SecurityToolImpl,
1334
+ xe as SignServerToolImpl,
1335
+ Ke as SymbologyToolImpl,
1336
+ Ge as TemplateSignToolImpl,
1337
+ Qe as UIToolImpl,
1285
1338
  X as WatermarkDisplay,
1286
- Tt as createNewDocumentSdk,
1287
- mt as getDigitalSignEnvironment,
1288
- pt as getDigitalSignEnvironmentSource,
1289
- bt as initializeDigitalSignEnvironment,
1290
- ft as patchDigitalSignEnvironment,
1291
- Rt as resetDigitalSignEnvironment,
1292
- St as setDigitalSignEnvironment
1339
+ At as createNewDocumentSdk,
1340
+ St as getDigitalSignEnvironment,
1341
+ Rt as getDigitalSignEnvironmentSource,
1342
+ kt as initializeDigitalSignEnvironment,
1343
+ yt as patchDigitalSignEnvironment,
1344
+ vt as resetDigitalSignEnvironment,
1345
+ Tt as setDigitalSignEnvironment
1293
1346
  };
1294
1347
  //# sourceMappingURL=index.js.map