hoeditor-web 3.2.5 → 3.2.7

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.
@@ -9716,7 +9716,7 @@ P.toPower = P.pow = function(l) {
9716
9716
  return a = intPow(u, d, o, n), l.s < 0 ? new u(1).div(a) : finalise(a, n, s);
9717
9717
  if (c = d.s, c < 0) {
9718
9718
  if (r < l.d.length - 1) return new u(NaN);
9719
- if (l.d[r] & 1 || (c = 1), d.e == 0 && d.d[0] == 1 && d.d.length == 1)
9719
+ if ((l.d[r] & 1) == 0 && (c = 1), d.e == 0 && d.d[0] == 1 && d.d.length == 1)
9720
9720
  return d.s = c, d;
9721
9721
  }
9722
9722
  return o = mathpow(+d, f), r = o == 0 || !isFinite(o) ? mathfloor(f * (Math.log("0." + digitsToString(d.d)) / Math.LN10 + d.e + 1)) : new u(o + "").e, r > u.maxE + 1 || r < u.minE - 1 ? new u(r > 0 ? c / 0 : 0) : (external = !1, u.rounding = d.s = 1, o = Math.min(12, (r + "").length), a = naturalExponential(l.times(naturalLogarithm(d, n + o)), n), a.d && (a = finalise(a, n + 5, 1), checkRoundingDigits(a.d, n, s) && (r = n + 10, a = finalise(naturalExponential(l.times(naturalLogarithm(d, r + o)), r), r + 5, 1), +digitsToString(a.d).slice(n + 1, n + 15) + 1 == 1e14 && (a = finalise(a, n + 1, 0)))), a.s = c, external = !0, u.rounding = s, finalise(a, n, s));
@@ -11597,7 +11597,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
11597
11597
  clacBMI() {
11598
11598
  let r = " ";
11599
11599
  const o = this.getParentCell().table, n = this.formulaStr.split(",");
11600
- n.length < 2 && (HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.444", null, "体重和身高对应的单元格编号传入有误:") + this.formulaStr));
11600
+ n.length < 2 && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.444", null, "体重和身高对应的单元格编号传入有误:") + this.formulaStr);
11601
11601
  const [a, s] = this.getRowColByCellAdress(n[0]), [c, d] = this.getRowColByCellAdress(n[1]);
11602
11602
  if (a >= 0 && s >= 0 && c >= 0 && d >= 0) {
11603
11603
  if (!o.rows[a] || !o.rows[c]) return r;
@@ -11614,7 +11614,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
11614
11614
  clacLaborProcess() {
11615
11615
  let r = " ";
11616
11616
  const o = this.getParentCell().table, n = this.formulaStr.split(",");
11617
- n.length < 2 && (HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.443", null, "单元格编号传入有误:") + this.formulaStr));
11617
+ n.length < 2 && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.443", null, "单元格编号传入有误:") + this.formulaStr);
11618
11618
  const [a, s] = this.getRowColByCellAdress(n[0]), [c, d] = this.getRowColByCellAdress(n[1]);
11619
11619
  let u = -1, f = -1;
11620
11620
  if (n.length === 3 && ([u, f] = this.getRowColByCellAdress(n[2])), a >= 0 && s >= 0 && c >= 0 && d >= 0) {
@@ -11829,7 +11829,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
11829
11829
  let r = " ";
11830
11830
  const o = this.getParentCell().table, n = this.formulaStr.split(",");
11831
11831
  if (n.length < 2)
11832
- return HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.440", null, "开始时间和结束时间对应的单元格编号传入有误:") + this.formulaStr), r;
11832
+ return message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.440", null, "开始时间和结束时间对应的单元格编号传入有误:") + this.formulaStr), r;
11833
11833
  const [a, s] = this.getRowColByCellAdress(n[0]), [c, d] = this.getRowColByCellAdress(n[1]);
11834
11834
  if (a >= 0 && s >= 0 && c >= 0 && d >= 0) {
11835
11835
  if (!o.rows[a] || !o.rows[c]) return r;
@@ -11844,18 +11844,11 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
11844
11844
  let E = Math.floor(N / (1e3 * 60 * 60 * 24));
11845
11845
  return E == 0 && (E = 1), E.toString() + /* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.35", null, "天");
11846
11846
  } else {
11847
- const w = y.getTime(), E = ((m.getTime() - w + 1) / (1e3 * 3600 * 24)).toString().split("."), F = Number(E[0]);
11848
- let D = 0, A = 0;
11849
- if (E.length > 1) {
11850
- const O = (+("0." + E[1]) * 24).toFixed(10).toString().split(".");
11851
- if (D = Number(O[0]), O.length > 1) {
11852
- const L = (+("0." + O[1]) * 60).toFixed(5).toString().split(".");
11853
- A = Number(L[0]);
11854
- }
11855
- }
11856
- F > 0 && (D += F * 24);
11857
- let R = "";
11858
- return D > 0 && (R += D.toString() + "小时"), A > 0 && (R += A.toString() + "分钟"), R;
11847
+ const w = y.getTime(), N = (m.getTime() - w) / (1e3 * 3600 * 24), E = Math.floor(N);
11848
+ let F = Math.floor((N - E) * 24), D = Math.floor(((N - E) * 24 - F) * 60);
11849
+ E > 0 && (F += E * 24);
11850
+ let A = "";
11851
+ return F > 0 && (A += F.toString() + "小时"), D > 0 && (A += D.toString() + "分钟"), F == 0 && D == 0 && (A = "0"), A;
11859
11852
  }
11860
11853
  }
11861
11854
  }
@@ -11865,7 +11858,7 @@ let TableFormula$1 = class _TableFormula extends ControlNode {
11865
11858
  clacIdealWeight() {
11866
11859
  let r = " ";
11867
11860
  const o = this.getParentCell().table;
11868
- this.formulaStr == "" && (HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.439", null, "身高的单元格编号传入有误:") + this.formulaStr));
11861
+ this.formulaStr == "" && message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.439", null, "身高的单元格编号传入有误:") + this.formulaStr);
11869
11862
  let n = "", a = !1;
11870
11863
  const s = this.formulaStr.split(",");
11871
11864
  s.length === 1 ? n = this.formulaStr : (n = s[0], a = s[1] === "true");
@@ -14759,17 +14752,7 @@ class DrawPageHeaderFooter extends DrawArea {
14759
14752
  // }
14760
14753
  // }
14761
14754
  constructor(o, n, a, s, c, d, u, f, p, g) {
14762
- super(
14763
- o,
14764
- a,
14765
- s,
14766
- c,
14767
- d,
14768
- u,
14769
- f,
14770
- p,
14771
- g
14772
- );
14755
+ super(o, a, s, c, d, u, f, p, g);
14773
14756
  // protected _drawPageMarks: Array<DrawPageMarkNode>;
14774
14757
  _(this, "_hftType");
14775
14758
  _(this, "_displayHeight");
@@ -14785,22 +14768,10 @@ class DrawPageHeaderFooter extends DrawArea {
14785
14768
  return this._hftType;
14786
14769
  }
14787
14770
  update(o, n, a, s, c) {
14788
- const d = super.update(
14789
- o,
14790
- n,
14791
- a,
14792
- s,
14793
- c
14794
- ), u = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), f = u.drawTree.drawPages[this._index];
14795
- this._displayHeight, f && f.reFreshBounds();
14771
+ const d = super.update(o, n, a, s, c), u = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), f = u.drawTree.drawPages[this._index];
14772
+ f && f.reFreshBounds();
14796
14773
  let p = 0;
14797
- return this._hftType == 0 ? (p = u.pageProperty.headerYPixes, this._displayHeight = Math.max(
14798
- u.pageProperty.topMarginPixes,
14799
- this.actualHeight + p
14800
- )) : (this._displayHeight = Math.max(
14801
- u.pageProperty.bottomMarginPixes,
14802
- this.actualHeight + p
14803
- ), p = u.pageProperty.footerYPixes), d;
14774
+ return this._hftType == 0 ? (p = u.pageProperty.headerYPixes, this._displayHeight = Math.max(u.pageProperty.topMarginPixes, this.actualHeight + p)) : (this._displayHeight = Math.max(u.pageProperty.bottomMarginPixes, this.actualHeight + p), p = u.pageProperty.footerYPixes), d;
14804
14775
  }
14805
14776
  }
14806
14777
  class DrawHeader extends DrawPageHeaderFooter {
@@ -14848,21 +14819,8 @@ class DrawFooter extends DrawPageHeaderFooter {
14848
14819
  // private __hoEditorFactoryID: string;
14849
14820
  // private _pages: Array<DrawPage>;
14850
14821
  constructor(r, o, n) {
14851
- const a = HOEditorFactorys.instance().getFactory(r), s = a.pageProperty.heightPixes - a.pageProperty.bottomMarginPixes, c = a.pageProperty.leftMarginPixes, d = a.pageProperty.widthPixes - c - a.pageProperty.rightMarginPixes, u = a.pageProperty.bottomMarginPixes - a.pageProperty.footerYPixes, f = Math.floor(
14852
- (a.pageProperty.heightPixes - a.pageProperty.footerYPixes) / 2 - a.pageProperty.heightPixes / 5
14853
- ), p = d;
14854
- super(
14855
- r,
14856
- HeaderFooterType.hftFoot,
14857
- o,
14858
- n,
14859
- c,
14860
- s,
14861
- d,
14862
- u,
14863
- p,
14864
- f
14865
- ), this._hoEditorFactoryID = r, this._allowAcrossPage = !1, this._displayHeight = a.pageProperty.bottomMarginPixes;
14822
+ const a = HOEditorFactorys.instance().getFactory(r), s = a.pageProperty.heightPixes - a.pageProperty.bottomMarginPixes, c = a.pageProperty.leftMarginPixes, d = a.pageProperty.widthPixes - c - a.pageProperty.rightMarginPixes, u = a.pageProperty.bottomMarginPixes - a.pageProperty.footerYPixes, f = Math.floor((a.pageProperty.heightPixes - a.pageProperty.footerYPixes) / 2 - a.pageProperty.heightPixes / 5), p = d;
14823
+ super(r, HeaderFooterType.hftFoot, o, n, c, s, d, u, p, f), this._hoEditorFactoryID = r, this._allowAcrossPage = !1, this._displayHeight = a.pageProperty.bottomMarginPixes;
14866
14824
  }
14867
14825
  get actualHeight() {
14868
14826
  const r = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
@@ -14972,10 +14930,7 @@ class SubDocManger {
14972
14930
  }
14973
14931
  }
14974
14932
  bindEvent() {
14975
- HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.addEventListener(
14976
- PageAreaChangedEvent.eventName,
14977
- (r) => this.onPageAreaChanged(r)
14978
- );
14933
+ HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.addEventListener(PageAreaChangedEvent.eventName, (r) => this.onPageAreaChanged(r));
14979
14934
  }
14980
14935
  // public newSubDocCopyAreas(type: HeaderFooterType, path: string): DrawArea {
14981
14936
  // if (type === HeaderFooterType.hftFoot) {
@@ -15081,22 +15036,12 @@ class SubDocManger {
15081
15036
  if (o === 0) {
15082
15037
  const n = new SubDocTree(r, "");
15083
15038
  this._headerDocTree.push(n);
15084
- const a = new ParagraphNode(
15085
- this._hoEditorFactoryID,
15086
- n.subDocNodes,
15087
- null,
15088
- 0
15089
- );
15039
+ const a = new ParagraphNode(this._hoEditorFactoryID, n.subDocNodes, null, 0);
15090
15040
  n.subDocNodes.push(a);
15091
15041
  } else {
15092
15042
  const n = new SubDocTree(r, "");
15093
15043
  this._footerDocTree.push(n);
15094
- const a = new ParagraphNode(
15095
- this._hoEditorFactoryID,
15096
- n.subDocNodes,
15097
- null,
15098
- 0
15099
- );
15044
+ const a = new ParagraphNode(this._hoEditorFactoryID, n.subDocNodes, null, 0);
15100
15045
  n.subDocNodes.push(a);
15101
15046
  }
15102
15047
  }
@@ -15167,11 +15112,7 @@ class SubDocManger {
15167
15112
  */
15168
15113
  updateAllSameSubDoc(r, o, n, a) {
15169
15114
  var v;
15170
- const [s, c] = this.getAllSameSubDocPageRange(
15171
- r,
15172
- o,
15173
- n
15174
- );
15115
+ const [s, c] = this.getAllSameSubDocPageRange(r, o, n);
15175
15116
  let d = 0;
15176
15117
  const u = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
15177
15118
  let f = null;
@@ -15179,7 +15120,8 @@ class SubDocManger {
15179
15120
  if (s > 0) {
15180
15121
  const C = u.drawPageTree.drawMainDocs[s - 1];
15181
15122
  C.isEndLineFinished() ? d = C.endDline + 1 : d = C.endDline;
15182
- } else d = 0;
15123
+ } else
15124
+ d = 0;
15183
15125
  const p = this.getSubDocCopyDrawArea(r, o);
15184
15126
  let g = 0, y = 0;
15185
15127
  p && (g = p.displayHeight);
@@ -15188,17 +15130,11 @@ class SubDocManger {
15188
15130
  y = m.displayHeight;
15189
15131
  for (let C = s; C <= c; C++) {
15190
15132
  const w = this.copySubDocToPages(m, C, o), b = (v = u.drawTree.drawPages[C].drawDomLevel) == null ? void 0 : v.stage;
15191
- w && b && g === y ? u.drawPageTree.updateDrawPage(C) : (u.drawPageTree.calcMainDocPosition(C), u.drawTree.drawPages[C].reFreshBounds());
15133
+ w && b && g === y ? (u.drawTree.drawPages[C].reFreshBounds(), u.drawPageTree.updateDrawPage(C)) : (u.drawPageTree.calcMainDocPosition(C), u.drawTree.drawPages[C].reFreshBounds());
15192
15134
  }
15193
15135
  if (f && g !== y && !a) {
15194
15136
  let C = f.topDline.y;
15195
- f.contains(f.topDline) && f.topDline instanceof DrawPageTable && f.topDline.table.drawTable.drawPageTables.indexOf(f.topDline) > 0 && (C = 0), u.drawPageTree.update(
15196
- f,
15197
- u.drawTree.mainDNodes,
15198
- C,
15199
- d,
15200
- u.drawTree.mainDNodes.length - 1
15201
- );
15137
+ f.contains(f.topDline) && f.topDline instanceof DrawPageTable && f.topDline.table.drawTable.drawPageTables.indexOf(f.topDline) > 0 && (C = 0), u.drawPageTree.update(f, u.drawTree.mainDNodes, C, d, u.drawTree.mainDNodes.length - 1);
15202
15138
  }
15203
15139
  }
15204
15140
  }
@@ -15207,7 +15143,7 @@ class SubDocManger {
15207
15143
  * @param pageIndex 查找起始页
15208
15144
  * @param type 页类型
15209
15145
  * @param onlyAfter 是否只更新pageIndex的后续页
15210
- * @returns
15146
+ * @returns
15211
15147
  */
15212
15148
  getAllSameSubDocPageRange(r, o, n) {
15213
15149
  let a = r, s = r;
@@ -15220,12 +15156,7 @@ class SubDocManger {
15220
15156
  onPageAreaChanged(r) {
15221
15157
  const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
15222
15158
  if (r.oldActiveArea instanceof DrawHeader) {
15223
- r.oldActiveArea.changed && this.updateAllSameSubDoc(
15224
- r.oldPageIndex,
15225
- 0,
15226
- !1,
15227
- !1
15228
- ), r.oldActiveArea.changed = !1;
15159
+ r.oldActiveArea.changed && this.updateAllSameSubDoc(r.oldPageIndex, 0, !1, !1), r.oldActiveArea.changed = !1;
15229
15160
  const n = this.getSubDocCopyDrawArea(
15230
15161
  r.oldPageIndex,
15231
15162
  0
@@ -15233,12 +15164,7 @@ class SubDocManger {
15233
15164
  ), a = o.drawTree.drawPages[r.oldPageIndex];
15234
15165
  a && (a.drawDocContainer.removeChild(r.oldActiveArea), a.drawDocContainer.addChild(n), n.y = o.pageProperty.headerYPixes, n.x = o.pageProperty.leftMarginPixes, a.drawHeader = n, o.drawPageTree.updateDrawPage(a.pageIndex));
15235
15166
  } else if (r.oldActiveArea instanceof DrawFooter) {
15236
- r.oldActiveArea.changed && this.updateAllSameSubDoc(
15237
- r.oldPageIndex,
15238
- 1,
15239
- !1,
15240
- !1
15241
- ), r.oldActiveArea.changed = !1;
15167
+ r.oldActiveArea.changed && this.updateAllSameSubDoc(r.oldPageIndex, 1, !1, !1), r.oldActiveArea.changed = !1;
15242
15168
  const n = this.getSubDocCopyDrawArea(
15243
15169
  r.oldPageIndex,
15244
15170
  1
@@ -15292,23 +15218,16 @@ class SubDocManger {
15292
15218
  r.drawNodes[0].updatePaint();
15293
15219
  }
15294
15220
  clearPageMarkNode(r, o) {
15295
- const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(
15296
- n
15297
- );
15221
+ const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(n);
15298
15222
  for (let s = a.length - 1; s >= 0; s--) {
15299
15223
  const c = a[s];
15300
15224
  c.drawNodes[0].removePageMarkDrawNode(c, r);
15301
15225
  }
15302
15226
  }
15303
15227
  repaintPageMarkNodes(r, o) {
15304
- const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(
15305
- n
15306
- );
15228
+ const n = r.rootPath, a = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getSubDocPageMarkNodes(n);
15307
15229
  for (let s = a.length - 1; s >= 0; s--)
15308
- a[s].drawNodes[0].repaintPageMarkNodes(
15309
- r,
15310
- o
15311
- );
15230
+ a[s].drawNodes[0].repaintPageMarkNodes(r, o);
15312
15231
  }
15313
15232
  }
15314
15233
  var module = { exports: {} }, exports = module.exports;
@@ -16128,7 +16047,7 @@ class DrawSignNode extends DrawCombineNode {
16128
16047
  }
16129
16048
  }
16130
16049
  }
16131
- const version$1 = "3.2.5";
16050
+ const version$1 = "3.2.7";
16132
16051
  var FingerPosition = /* @__PURE__ */ ((l) => (l[l.left = 0] = "left", l[l.center = 1] = "center", l[l.right = 2] = "right", l))(FingerPosition || {});
16133
16052
  class SignNode extends BaseNode {
16134
16053
  constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties, dataId, associatedElement, isTemp, innerIdentifier) {
@@ -40024,12 +39943,7 @@ class DrawPageTree {
40024
39943
  if (n < this._drawMainDocs.length - 1)
40025
39944
  o = this._drawMainDocs[n + 1];
40026
39945
  else {
40027
- const a = new DrawPageMainDoc(
40028
- this._hoEditorFactoryID,
40029
- "main",
40030
- 0,
40031
- 0
40032
- );
39946
+ const a = new DrawPageMainDoc(this._hoEditorFactoryID, "main", 0, 0);
40033
39947
  this._drawMainDocs.push(a), this.calcMainDocPosition(n + 1), o = a;
40034
39948
  }
40035
39949
  }
@@ -40043,12 +39957,7 @@ class DrawPageTree {
40043
39957
  if (c < this._drawMainDocs.length - 1)
40044
39958
  a = this._drawMainDocs[c + 1];
40045
39959
  else {
40046
- const d = new DrawPageMainDoc(
40047
- this._hoEditorFactoryID,
40048
- "main",
40049
- c + 1,
40050
- 0
40051
- );
39960
+ const d = new DrawPageMainDoc(this._hoEditorFactoryID, "main", c + 1, 0);
40052
39961
  for (s = !0, this._drawMainDocs.push(d), this.calcMainDocPosition(c + 1, o); n.drawTree.drawPages.length < this._drawMainDocs.length; )
40053
39962
  n.drawTree.addPage(), n.drawTree.drawPageCount.count = n.drawTree.drawPages.length;
40054
39963
  a = d;
@@ -40209,33 +40118,21 @@ class DrawPageTree {
40209
40118
  const q = H.drawPageTables[H.drawPageTables.length - 1];
40210
40119
  q.isEndRowFinished() ? Y = q.endRow + 1 : Y = q.endRow;
40211
40120
  }
40212
- const U = H.paintTable(
40213
- d,
40214
- y,
40215
- C,
40216
- Y
40217
- );
40121
+ const U = H.paintTable(d, y, C, Y);
40218
40122
  U && (d.numChildren == 1 && (d.topDline = U), y = U.y + U.dHeight, d.allowAcrossPage && m.allowAcrossPage && (C = d.maxHeight - y)), W = H.isFinishedPaint();
40219
40123
  }
40220
40124
  y += B.lineSpace, C -= B.lineSpace;
40221
40125
  }
40222
40126
  } else {
40223
40127
  if (H.dHeight > C && y > 0) {
40224
- const W = u.drawTree.getParentDrawArea(
40225
- d
40226
- );
40128
+ const W = u.drawTree.getParentDrawArea(d);
40227
40129
  if (!W)
40228
40130
  throw new Error("无法绘制表格,找不到当前表格的父区域");
40229
40131
  const Y = d.drawPageTable, U = Y.table.drawTable.drawPageTables.indexOf(Y);
40230
40132
  let q = null;
40231
40133
  U > 0 && (q = Y.table.drawTable.drawPageTables[U - 1]);
40232
40134
  let G = Y.getMainRestHeight();
40233
- d.drawPageTable.table.drawTable.drawUpdate(
40234
- W,
40235
- q,
40236
- Y.y,
40237
- G
40238
- );
40135
+ d.drawPageTable.table.drawTable.drawUpdate(W, q, Y.y, G);
40239
40136
  break;
40240
40137
  }
40241
40138
  (b > n || b === n && !d.contains(H)) && (d.addChild(H), H.y = y), y = H.y + H.dHeight + H.paragraphNode.combineParagraph.lineSpace, d.allowAcrossPage && m.allowAcrossPage && (C = d.maxHeight - y);
@@ -46448,7 +46345,9 @@ class StructureConvert {
46448
46345
  return null;
46449
46346
  }
46450
46347
  replaceNodesName(r) {
46451
- const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), n = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|TextBorderNode|RareCharNode|JumpButtonNode|PopQScoreNode/g);
46348
+ const o = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), n = new RegExp(
46349
+ /\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|TextBorderNode|RareCharNode|JumpButtonNode|PopQScoreNode/g
46350
+ );
46452
46351
  return r = r.replace(n, "node"), r = o.unitConvert.replaceAll(r, "<TableFormula>", "<node>"), r = o.unitConvert.replaceAll(r, "</TableFormula>", "</node>"), r = o.unitConvert.replaceAll(r, "<End>", "<node>"), r = o.unitConvert.replaceAll(r, "</End>", "</node>"), r = o.unitConvert.replaceAll(r, "<PupilMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</PupilMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<LightLocationMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</LightLocationMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<MenstrualHistoryNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</MenstrualHistoryNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<FetalHeartMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</FetalHeartMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<PermanentTeethMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</PermanentTeethMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<PrimaryTeethMapNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</PrimaryTeethMapNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<SliderNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</SliderNode>", "</node>"), r = o.unitConvert.replaceAll(r, "<FigureNode>", "<node>"), r = o.unitConvert.replaceAll(r, "</FigureNode>", "</node>"), r;
46453
46352
  }
46454
46353
  /**
@@ -46512,33 +46411,21 @@ class StructureConvert {
46512
46411
  const s = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID), c = new X2JS({ stripWhitespaces: !1, arrayAccessForm: "property" });
46513
46412
  if (r === "docProperty") {
46514
46413
  const u = s.docTree.docProperty;
46515
- return JSON.parse(
46516
- JSON.stringify(u, DocProperty.whiteList())
46517
- );
46414
+ return JSON.parse(JSON.stringify(u, DocProperty.whiteList()));
46518
46415
  }
46519
46416
  if (r === "pageSettings") {
46520
46417
  const u = s.pageProperty;
46521
- return JSON.parse(
46522
- JSON.stringify(u, PageProperty.whiteList())
46523
- );
46418
+ return JSON.parse(JSON.stringify(u, PageProperty.whiteList()));
46524
46419
  }
46525
46420
  if (r === "styles") {
46526
- const u = [], f = s.docTree.styles, p = f[0].combineStyle, g = JSON.parse(
46527
- JSON.stringify(p, CombineStyle.whiteList())
46528
- );
46421
+ const u = [], f = s.docTree.styles, p = f[0].combineStyle, g = JSON.parse(JSON.stringify(p, CombineStyle.whiteList()));
46529
46422
  for (let w = 1; w < f.length; w++) {
46530
- const b = f[w], N = b.combineStyle, E = JSON.parse(
46531
- JSON.stringify(N, CombineStyle.whiteList())
46532
- );
46423
+ const b = f[w], N = b.combineStyle, E = JSON.parse(JSON.stringify(N, CombineStyle.whiteList()));
46533
46424
  (b.size === void 0 || b.size === p.size) && delete E.size, (b.font === void 0 || b.font === p.font) && delete E.font, (b.color === void 0 || b.color === p.color) && delete E.color, (b.backColor === void 0 || b.backColor === p.backColor) && delete E.backColor, (b.bold === void 0 || b.bold === p.bold) && delete E.bold, (b.italic === void 0 || b.italic === p.italic) && delete E.italic, (b.underline === void 0 || b.underline === p.underline) && delete E.underline, (b.strikeout === void 0 || b.strikeout === p.strikeout) && delete E.strikeout, (b.script === void 0 || b.script === p.script) && delete E.script, (b.deleterIndex === -1 || b.deleterIndex === void 0 || b.deleterIndex === p.deleterIndex) && delete E.deleterIndex, (b.creatorIndex === -1 || b.creatorIndex === void 0 || b.creatorIndex === p.creatorIndex) && delete E.creatorIndex, (b.modifierIndex === -1 || b.modifierIndex === void 0 || b.modifierIndex === p.modifierIndex) && delete E.modifierIndex, a && b.commentID !== "0" && b.commentID !== void 0 && (b.commentID = "0"), (b.commentID === "0" || b.commentID === void 0 || b.commentID === p.commentID) && delete E.commentID, u.push(E);
46534
46425
  }
46535
- const y = [], m = s.docTree.paragraphs, v = m[0].combineStyle, C = JSON.parse(
46536
- JSON.stringify(v, CombineParagraph.whiteList())
46537
- );
46426
+ const y = [], m = s.docTree.paragraphs, v = m[0].combineStyle, C = JSON.parse(JSON.stringify(v, CombineParagraph.whiteList()));
46538
46427
  for (let w = 1; w < m.length; w++) {
46539
- const b = m[w], N = b.combineStyle, E = JSON.parse(
46540
- JSON.stringify(N, CombineParagraph.whiteList())
46541
- );
46428
+ const b = m[w], N = b.combineStyle, E = JSON.parse(JSON.stringify(N, CombineParagraph.whiteList()));
46542
46429
  (b.charSpace === void 0 || b.charSpace === v.charSpace) && delete E.charSpace, (b.lineSpace === void 0 || b.lineSpace === v.lineSpace) && delete E.lineSpace, (b.leftMargin === void 0 || b.leftMargin === v.leftMarginMm) && delete E.leftMarginMm, (b.rightMargin === void 0 || b.rightMargin === v.rightMarginMm) && delete E.rightMarginMm, (b.topMargin === void 0 || b.topMargin === v.topMarginMm) && delete E.topMarginMm, (b.bottomMargin === void 0 || b.bottomMargin === v.bottomMarginMm) && delete E.bottomMarginMm, (b.align === void 0 || b.align === v.align) && delete E.align, y.push(E);
46543
46430
  }
46544
46431
  return {
@@ -46551,18 +46438,14 @@ class StructureConvert {
46551
46438
  if (r === "comments") {
46552
46439
  const u = [];
46553
46440
  return a || s.drawTree.commentsMap.forEach((p) => {
46554
- const g = JSON.parse(
46555
- JSON.stringify(p, Comment.whiteList())
46556
- );
46441
+ const g = JSON.parse(JSON.stringify(p, Comment.whiteList()));
46557
46442
  g.customProperty = p.customProperty, u.push(g);
46558
46443
  }), { comment: u };
46559
46444
  }
46560
46445
  if (r === "userHistories") {
46561
46446
  const u = [], f = s.docTree.userHistories;
46562
46447
  for (let p = 0; p < f.length; p++) {
46563
- const g = f[p], y = JSON.parse(
46564
- JSON.stringify(g, UserHistory.whiteList())
46565
- );
46448
+ const g = f[p], y = JSON.parse(JSON.stringify(g, UserHistory.whiteList()));
46566
46449
  u.push(y);
46567
46450
  }
46568
46451
  return { userHistory: u };
@@ -46648,10 +46531,7 @@ class StructureConvert {
46648
46531
  let u = r.userHistories.userHistory;
46649
46532
  u.length == null && (u = Array(u));
46650
46533
  for (let D = 0; D < u.length; D++) {
46651
- const A = u[D], R = new UserHistory(
46652
- this._hoEditorFactoryID,
46653
- HistoryEditType.hetCreate
46654
- );
46534
+ const A = u[D], R = new UserHistory(this._hoEditorFactoryID, HistoryEditType.hetCreate);
46655
46535
  Object.assign(R, A), R.permissionLevel = Number(A.permissionLevel), n.docTree.userHistories.push(R);
46656
46536
  }
46657
46537
  const f = r.styles;
@@ -46683,14 +46563,7 @@ class StructureConvert {
46683
46563
  const H = A.subDocNodes[L];
46684
46564
  if (!H)
46685
46565
  continue;
46686
- const B = n.structureConvert.convertNode(
46687
- H,
46688
- R.subDocNodes,
46689
- null,
46690
- O.subDocNodes,
46691
- void 0,
46692
- o
46693
- );
46566
+ const B = n.structureConvert.convertNode(H, R.subDocNodes, null, O.subDocNodes, void 0, o);
46694
46567
  if (B && (B.rootPath = "header/" + D.toString(), O.subDocNodes.push(B), D > 0 && L === 0 && B instanceof ParagraphNode)) {
46695
46568
  const W = new Array();
46696
46569
  W.push(B), R.subDocNodes = W;
@@ -46710,14 +46583,7 @@ class StructureConvert {
46710
46583
  const H = R.subDocNodes[L];
46711
46584
  if (!H)
46712
46585
  continue;
46713
- const B = n.structureConvert.convertNode(
46714
- H,
46715
- A.subDocNodes,
46716
- null,
46717
- O.subDocNodes,
46718
- void 0,
46719
- o
46720
- );
46586
+ const B = n.structureConvert.convertNode(H, A.subDocNodes, null, O.subDocNodes, void 0, o);
46721
46587
  if (B && (B.rootPath = "footer/" + D.toString(), O.subDocNodes.push(B), D > 0 && L === 0 && B instanceof ParagraphNode)) {
46722
46588
  const W = new Array();
46723
46589
  W.push(B), A.subDocNodes = W;
@@ -46731,14 +46597,7 @@ class StructureConvert {
46731
46597
  const A = N[D];
46732
46598
  if (!A || A.delete && A.delete == "1")
46733
46599
  continue;
46734
- const R = n.structureConvert.convertNode(
46735
- A,
46736
- n.docTree.mainNodes,
46737
- null,
46738
- E,
46739
- void 0,
46740
- o
46741
- );
46600
+ const R = n.structureConvert.convertNode(A, n.docTree.mainNodes, null, E, void 0, o);
46742
46601
  R && E.push(R);
46743
46602
  }
46744
46603
  const F = /* @__PURE__ */ new Map();
@@ -46769,237 +46628,72 @@ class StructureConvert {
46769
46628
  message.warn(/* @__PURE__ */ i18nHelper("04-001-009-EMR.3.3.425", null, "不允许将表格粘贴到文本域"));
46770
46629
  return;
46771
46630
  }
46772
- return TableNode.json2Node(
46773
- this._hoEditorFactoryID,
46774
- r,
46775
- o,
46776
- n,
46777
- s,
46778
- c,
46779
- d
46780
- );
46631
+ return TableNode.json2Node(this._hoEditorFactoryID, r, o, n, s, c, d);
46781
46632
  } else {
46782
46633
  if (r.nodeType == NodeType$1.ntParagraph)
46783
- return ParagraphNode.json2Node(
46784
- this._hoEditorFactoryID,
46785
- r,
46786
- o,
46787
- n
46788
- );
46634
+ return ParagraphNode.json2Node(this._hoEditorFactoryID, r, o, n);
46789
46635
  if (r.nodeType == NodeType$1.ntText)
46790
- return TextNode.json2Node(
46791
- this._hoEditorFactoryID,
46792
- r,
46793
- o,
46794
- n
46795
- );
46636
+ return TextNode.json2Node(this._hoEditorFactoryID, r, o, n);
46796
46637
  if (r.nodeType == NodeType$1.ntMedicalExpression) {
46797
46638
  if (r.expressType == "PupilMap")
46798
- return PupilMapNode.json2Node(
46799
- this._hoEditorFactoryID,
46800
- r,
46801
- o,
46802
- n
46803
- );
46639
+ return PupilMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46804
46640
  if (r.expressType == "LightLocationMap")
46805
- return LightLocationMapNode.json2Node(
46806
- this._hoEditorFactoryID,
46807
- r,
46808
- o,
46809
- n
46810
- );
46641
+ return LightLocationMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46811
46642
  if (r.expressType == "MenstrualHistory")
46812
- return MenstrualHistoryNode.json2Node(
46813
- this._hoEditorFactoryID,
46814
- r,
46815
- o,
46816
- n
46817
- );
46643
+ return MenstrualHistoryNode.json2Node(this._hoEditorFactoryID, r, o, n);
46818
46644
  if (r.expressType == "FetalHeartMap")
46819
- return FetalHeartMapNode.json2Node(
46820
- this._hoEditorFactoryID,
46821
- r,
46822
- o,
46823
- n
46824
- );
46645
+ return FetalHeartMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46825
46646
  if (r.expressType == "PermanentTeethMap")
46826
- return PermanentTeethMapNode.json2Node(
46827
- this._hoEditorFactoryID,
46828
- r,
46829
- o,
46830
- n
46831
- );
46647
+ return PermanentTeethMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46832
46648
  if (r.expressType == "PrimaryTeethMap")
46833
- return PrimaryTeethMapNode.json2Node(
46834
- this._hoEditorFactoryID,
46835
- r,
46836
- o,
46837
- n
46838
- );
46649
+ return PrimaryTeethMapNode.json2Node(this._hoEditorFactoryID, r, o, n);
46839
46650
  if (r.expressType == "PopQScore")
46840
- return PopQScoreNode.json2Node(
46841
- this._hoEditorFactoryID,
46842
- r,
46843
- o,
46844
- n
46845
- );
46651
+ return PopQScoreNode.json2Node(this._hoEditorFactoryID, r, o, n);
46846
46652
  } else if (r.nodeType == NodeType$1.ntImage) {
46847
46653
  if (r.imageType == "Image")
46848
- return ImageNode.json2Node(
46849
- this._hoEditorFactoryID,
46850
- r,
46851
- o,
46852
- n
46853
- );
46654
+ return ImageNode.json2Node(this._hoEditorFactoryID, r, o, n);
46854
46655
  if (r.imageType == "Barcode")
46855
- return BarcodeNode.json2Node(
46856
- this._hoEditorFactoryID,
46857
- r,
46858
- o,
46859
- n
46860
- );
46656
+ return BarcodeNode.json2Node(this._hoEditorFactoryID, r, o, n);
46861
46657
  if (r.imageType == "Qrcode")
46862
- return QrcodeNode.json2Node(
46863
- this._hoEditorFactoryID,
46864
- r,
46865
- o,
46866
- n
46867
- );
46658
+ return QrcodeNode.json2Node(this._hoEditorFactoryID, r, o, n);
46868
46659
  } else if (r.nodeType == NodeType$1.ntControl) {
46869
46660
  if (r.type == "ctDateTime")
46870
- return DateTimeNode.json2Node(
46871
- this._hoEditorFactoryID,
46872
- r,
46873
- o,
46874
- n,
46875
- s
46876
- );
46661
+ return DateTimeNode.json2Node(this._hoEditorFactoryID, r, o, n, s);
46877
46662
  if (r.type == "ctDownList")
46878
- return DownListNode.json2Node(
46879
- this._hoEditorFactoryID,
46880
- r,
46881
- o,
46882
- n,
46883
- s
46884
- );
46663
+ return DownListNode.json2Node(this._hoEditorFactoryID, r, o, n, s);
46885
46664
  if (r.type == "ctRadioAndCheckBox")
46886
- return RadioAndCheckBoxNode.json2Node(
46887
- this._hoEditorFactoryID,
46888
- r,
46889
- o,
46890
- n,
46891
- s
46892
- );
46665
+ return RadioAndCheckBoxNode.json2Node(this._hoEditorFactoryID, r, o, n, s);
46893
46666
  } else {
46894
46667
  if (r.nodeType == NodeType$1.ntField)
46895
- return TextInputFieldNode.json2Node(
46896
- this._hoEditorFactoryID,
46897
- r,
46898
- o,
46899
- n,
46900
- s,
46901
- c
46902
- );
46668
+ return TextInputFieldNode.json2Node(this._hoEditorFactoryID, r, o, n, s, c);
46903
46669
  if (r.nodeType == NodeType$1.ntSpecialChar)
46904
- return SpecialCharsNode.json2Node(
46905
- this._hoEditorFactoryID,
46906
- r,
46907
- o,
46908
- n
46909
- );
46670
+ return SpecialCharsNode.json2Node(this._hoEditorFactoryID, r, o, n);
46910
46671
  if (r.nodeType == NodeType$1.ntMark)
46911
- return MarkNode.json2Node(
46912
- this._hoEditorFactoryID,
46913
- r,
46914
- o,
46915
- n
46916
- );
46672
+ return MarkNode.json2Node(this._hoEditorFactoryID, r, o, n);
46917
46673
  if (r.nodeType == NodeType$1.ntPageCount)
46918
- return PageCountNode.json2Node(
46919
- this._hoEditorFactoryID,
46920
- r,
46921
- o,
46922
- n
46923
- );
46674
+ return PageCountNode.json2Node(this._hoEditorFactoryID, r, o, n);
46924
46675
  if (r.nodeType == NodeType$1.ntPageNum)
46925
- return PageNumNode.json2Node(
46926
- this._hoEditorFactoryID,
46927
- r,
46928
- o,
46929
- n
46930
- );
46676
+ return PageNumNode.json2Node(this._hoEditorFactoryID, r, o, n);
46931
46677
  if (r.nodeType == NodeType$1.ntTableFormula)
46932
- return TableFormula$1.json2Node(
46933
- this._hoEditorFactoryID,
46934
- r,
46935
- o,
46936
- n
46937
- );
46678
+ return TableFormula$1.json2Node(this._hoEditorFactoryID, r, o, n);
46938
46679
  if (r.nodeType == NodeType$1.ntSeparateChar)
46939
- return SeparateCharNode.json2Node(
46940
- this._hoEditorFactoryID,
46941
- r,
46942
- o,
46943
- n
46944
- );
46680
+ return SeparateCharNode.json2Node(this._hoEditorFactoryID, r, o, n);
46945
46681
  if (r.nodeType == NodeType$1.ntLabel)
46946
- return LabelNode.json2Node(
46947
- this._hoEditorFactoryID,
46948
- r,
46949
- o,
46950
- n
46951
- );
46682
+ return LabelNode.json2Node(this._hoEditorFactoryID, r, o, n);
46952
46683
  if (r.nodeType == NodeType$1.ntTextBorder)
46953
- return TextBorderNode.json2Node(
46954
- this._hoEditorFactoryID,
46955
- r,
46956
- o,
46957
- n
46958
- );
46684
+ return TextBorderNode.json2Node(this._hoEditorFactoryID, r, o, n);
46959
46685
  if (r.nodeType == NodeType$1.ntSign)
46960
- return SignNode.json2Node(
46961
- this._hoEditorFactoryID,
46962
- r,
46963
- o,
46964
- n,
46965
- c,
46966
- s
46967
- );
46686
+ return SignNode.json2Node(this._hoEditorFactoryID, r, o, n, c, s);
46968
46687
  if (r.nodeType == NodeType$1.ntGestation)
46969
- return GestationNode.json2Node(
46970
- this._hoEditorFactoryID,
46971
- r,
46972
- o,
46973
- n
46974
- );
46688
+ return GestationNode.json2Node(this._hoEditorFactoryID, r, o, n);
46975
46689
  if (r.nodeType == NodeType$1.ntRareChar)
46976
- return RareCharNode.json2Node(
46977
- this._hoEditorFactoryID,
46978
- r,
46979
- o,
46980
- n
46981
- );
46690
+ return RareCharNode.json2Node(this._hoEditorFactoryID, r, o, n);
46982
46691
  if (r.nodeType == NodeType$1.ntJumpButton)
46983
- return JumpButtonNode.json2Node(
46984
- this._hoEditorFactoryID,
46985
- r,
46986
- o,
46987
- n
46988
- );
46692
+ return JumpButtonNode.json2Node(this._hoEditorFactoryID, r, o, n);
46989
46693
  if (r.nodeType == NodeType$1.ntSlider)
46990
- return SliderNode.json2Node(
46991
- this._hoEditorFactoryID,
46992
- r,
46993
- o,
46994
- n
46995
- );
46694
+ return SliderNode.json2Node(this._hoEditorFactoryID, r, o, n);
46996
46695
  if (r.nodeType == NodeType$1.ntFigure)
46997
- return FigureNode.json2Node(
46998
- this._hoEditorFactoryID,
46999
- r,
47000
- o,
47001
- n
47002
- );
46696
+ return FigureNode.json2Node(this._hoEditorFactoryID, r, o, n);
47003
46697
  }
47004
46698
  }
47005
46699
  }
@@ -47077,9 +46771,7 @@ class StructureConvert {
47077
46771
  const W = A[L + 1], Y = new ParagraphNode(this._hoEditorFactoryID, H.rootNodes, null, 0);
47078
46772
  W instanceof ParagraphNode && W.printAsSinglePage || !(W instanceof ParagraphNode) ? (a.docTree.insertNodeAfterPath(B, Y), R = Y) : (a.docTree.insertNodeAfterPath(B, W), R = W, L = L + 1), a.docTree.insertNodeAfterPath(B, H);
47079
46773
  } else
47080
- B = a.docTree.getNodeLastPath(
47081
- R
47082
- ), a.docTree.insertNodeAfterPath(B, H), R = H;
46774
+ B = a.docTree.getNodeLastPath(R), a.docTree.insertNodeAfterPath(B, H), R = H;
47083
46775
  H instanceof MarkNode && this._markNodes.push(H), H instanceof TextNode && H.errorIndex != null && this._errTextNodes.push(H);
47084
46776
  }
47085
46777
  }, c = r.get("header");
@@ -47092,20 +46784,8 @@ class StructureConvert {
47092
46784
  }
47093
46785
  const O = a.subDocManger.headerDocTree[A], L = O.subDocNodes[0];
47094
46786
  s(R.subDocNodes, L);
47095
- const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(
47096
- O.subDocNodes[H]
47097
- ), W = new NodeChangeEvent(
47098
- this._hoEditorFactoryID,
47099
- DocAction.daInsert,
47100
- "header/" + A.toString() + "/0",
47101
- B
47102
- );
47103
- W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(
47104
- A,
47105
- HeaderFooterType.hftHead,
47106
- !0,
47107
- !0
47108
- );
46787
+ const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(O.subDocNodes[H]), W = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "header/" + A.toString() + "/0", B);
46788
+ W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(A, HeaderFooterType.hftHead, !0, !0);
47109
46789
  }
47110
46790
  const d = r.get("footer");
47111
46791
  if (d)
@@ -47117,26 +46797,12 @@ class StructureConvert {
47117
46797
  }
47118
46798
  const O = a.subDocManger.footerDocTree[A], L = O.subDocNodes[0];
47119
46799
  s(R.subDocNodes, L);
47120
- const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(
47121
- O.subDocNodes[H]
47122
- ), W = new NodeChangeEvent(
47123
- this._hoEditorFactoryID,
47124
- DocAction.daInsert,
47125
- "footer/" + A.toString() + "/0",
47126
- B
47127
- );
47128
- W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(
47129
- A,
47130
- HeaderFooterType.hftFoot,
47131
- !0,
47132
- !0
47133
- );
46800
+ const H = O.subDocNodes.length - 1, B = a.docTree.getNodeLastPath(O.subDocNodes[H]), W = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "footer/" + A.toString() + "/0", B);
46801
+ W.repaintImmediate = !0, a.docTree.change(W), A <= a.drawTree.drawPages.length - 1 && a.subDocManger.updateAllSameSubDoc(A, HeaderFooterType.hftFoot, !0, !0);
47134
46802
  }
47135
46803
  const u = r.get("main"), f = a.docTree.mainNodes[0];
47136
46804
  n && u.length > 1 && u[u.length - 1] instanceof ParagraphNode && !(u[u.length - 2] instanceof TableNode) && u.splice(u.length - 1, 1), s(u, f);
47137
- const p = a.docTree.mainNodes.length - 1, g = a.docTree.getNodeLastPath(
47138
- a.docTree.mainNodes[p]
47139
- ), y = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "main/0", g);
46805
+ const p = a.docTree.mainNodes.length - 1, g = a.docTree.getNodeLastPath(a.docTree.mainNodes[p]), y = new NodeChangeEvent(this._hoEditorFactoryID, DocAction.daInsert, "main/0", g);
47140
46806
  a.docTree.change(y);
47141
46807
  let m = [];
47142
46808
  if (this._comments.length === void 0 ? m = Array(this._comments) : m = this._comments, this._markNodes.length > 0)
@@ -50087,11 +49753,7 @@ class VueController {
50087
49753
  let a = 0, s = 0;
50088
49754
  if (n && n.node) {
50089
49755
  const [c, d, u, f] = o.inSameTableCell();
50090
- if (a = r.pageProperty.widthPixes - r.pageProperty.leftMarginPixes - r.pageProperty.rightMarginPixes - 20, s = r.pageProperty.heightPixes - r.drawTree.caret.Y - r.pageProperty.bottomMarginPixes - 30, c && u) {
50091
- a = u.drawCell.dWidth - 10;
50092
- const p = u.table.rowInfos[u.table.rows.indexOf(u.row)];
50093
- p.rowProperty.isSpecifyHeight && (s = p.rowHeight - 10);
50094
- }
49756
+ a = r.pageProperty.widthPixes - r.pageProperty.leftMarginPixes - r.pageProperty.rightMarginPixes - 20, s = r.pageProperty.heightPixes - r.drawTree.caret.Y - r.pageProperty.bottomMarginPixes - 30, c && u && (a = u.drawCell.dWidth - 10, u.table.rowInfos[u.table.rows.indexOf(u.row)].rowProperty.isSpecifyHeight);
50095
49757
  }
50096
49758
  return {
50097
49759
  maxWidth: a,
@@ -50103,11 +49765,7 @@ class VueController {
50103
49765
  let c = 0, d = 0, u = [];
50104
49766
  if (n.length && s && s.node) {
50105
49767
  const [y, m, v, C] = a.inSameTableCell();
50106
- if (c = o.pageProperty.widthPixes - o.pageProperty.leftMarginPixes - o.pageProperty.rightMarginPixes - 20, d = o.pageProperty.heightPixes - o.drawTree.caret.Y - o.pageProperty.bottomMarginPixes - 30, y && v) {
50107
- c = v.drawCell.dWidth - 10;
50108
- const b = v.table.rowInfos[v.table.rows.indexOf(v.row)];
50109
- b.rowProperty.isSpecifyHeight && (d = b.rowHeight - 10);
50110
- }
49768
+ c = o.pageProperty.widthPixes - o.pageProperty.leftMarginPixes - o.pageProperty.rightMarginPixes - 20, d = o.pageProperty.heightPixes - o.drawTree.caret.Y - o.pageProperty.bottomMarginPixes - 30, y && v && (c = v.drawCell.dWidth - 10, v.table.rowInfos[v.table.rows.indexOf(v.row)].rowProperty.isSpecifyHeight);
50111
49769
  const w = o.drawTree.getDrawLineByDNode(s.node.drawNodes[0]);
50112
49770
  if (w.children && w.children.length > 0) {
50113
49771
  const b = new TextNode(this._hoEditorFactoryID, s.roots, s.node.parentNode, NodeType$1.ntText, `
@@ -53357,12 +53015,7 @@ class VueController {
53357
53015
  if (p && p.node) {
53358
53016
  const [g, y, m, v] = f.inSameTableCell();
53359
53017
  if (g && m) {
53360
- d = m.drawCell.dWidth - 10;
53361
- const C = m.table.rowInfos[m.table.rows.indexOf(m.row)];
53362
- if (C.rowProperty.isSpecifyHeight) {
53363
- let b = C.rowHeight - 10;
53364
- u > b && (u = b);
53365
- }
53018
+ d = m.drawCell.dWidth - 10, m.table.rowInfos[m.table.rows.indexOf(m.row)].rowProperty.isSpecifyHeight;
53366
53019
  const w = m.table.colInfos[m.row.indexOf(m)];
53367
53020
  w.colProperty.isSpecifyWidth && (d = w.colWidth - 10);
53368
53021
  }
@@ -58295,7 +57948,7 @@ var inherit = function l(r, o) {
58295
57948
  }, getBit = jsPDFAPI.__acroform__.getBit = function(l, r) {
58296
57949
  if (isNaN(l) || isNaN(r))
58297
57950
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");
58298
- return l & 1 << r ? 1 : 0;
57951
+ return (l & 1 << r) === 0 ? 0 : 1;
58299
57952
  }, getBitForPdf = jsPDFAPI.__acroform__.getBitForPdf = function(l, r) {
58300
57953
  if (isNaN(l) || isNaN(r))
58301
57954
  throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");
@@ -62962,7 +62615,7 @@ function GifReader(l) {
62962
62615
  case 249:
62963
62616
  if (l[r++] !== 4 || l[r + 4] !== 0) throw new Error("Invalid graphics extension block.");
62964
62617
  var b = l[r++];
62965
- y = l[r++] | l[r++] << 8, m = l[r++], b & 1 || (m = null), v = b >> 2 & 7, r++;
62618
+ y = l[r++] | l[r++] << 8, m = l[r++], (b & 1) === 0 && (m = null), v = b >> 2 & 7, r++;
62966
62619
  break;
62967
62620
  case 254:
62968
62621
  for (; ; ) {
@@ -65903,7 +65556,7 @@ WebPDecoder.prototype.getData = function() {
65903
65556
  (function(l) {
65904
65557
  function r() {
65905
65558
  return function() {
65906
- return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C7xgApvq.mjs");
65559
+ return globalObject.canvg ? Promise.resolve(globalObject.canvg) : import("./index.es-C4pUfXFn.mjs");
65907
65560
  }().catch(function(o) {
65908
65561
  return Promise.reject(new Error("Could not load canvg: " + o));
65909
65562
  }).then(function(o) {
@@ -66593,7 +66246,7 @@ jsPDF.API.TTFFont = function() {
66593
66246
  for (u = this.bbox, f = [], c = 0, d = u.length; c < d; c++)
66594
66247
  r = u[c], f.push(Math.round(r * this.scaleFactor));
66595
66248
  return f;
66596
- }).call(this), this.stemV = 0, this.post.exists ? (a = this.post.italic_angle, o = a >> 16, n = a & 255, o & 32768 && (o = -((o ^ 65535) + 1)), this.italicAngle = +("" + o + "." + n)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = (s = this.familyClass) === 1 || s === 2 || s === 3 || s === 4 || s === 5 || s === 7, this.isScript = this.familyClass === 10, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), this.italicAngle !== 0 && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode)
66249
+ }).call(this), this.stemV = 0, this.post.exists ? (a = this.post.italic_angle, o = a >> 16, n = a & 255, (o & 32768) !== 0 && (o = -((o ^ 65535) + 1)), this.italicAngle = +("" + o + "." + n)) : this.italicAngle = 0, this.ascender = Math.round(this.ascender * this.scaleFactor), this.decender = Math.round(this.decender * this.scaleFactor), this.lineGap = Math.round(this.lineGap * this.scaleFactor), this.capHeight = this.os2.exists && this.os2.capHeight || this.ascender, this.xHeight = this.os2.exists && this.os2.xHeight || 0, this.familyClass = (this.os2.exists && this.os2.familyClass || 0) >> 8, this.isSerif = (s = this.familyClass) === 1 || s === 2 || s === 3 || s === 4 || s === 5 || s === 7, this.isScript = this.familyClass === 10, this.flags = 0, this.post.isFixedPitch && (this.flags |= 1), this.isSerif && (this.flags |= 2), this.isScript && (this.flags |= 8), this.italicAngle !== 0 && (this.flags |= 64), this.flags |= 32, !this.cmap.unicode)
66597
66250
  throw new Error("No unicode cmap for font");
66598
66251
  }, l.prototype.characterToGlyph = function(r) {
66599
66252
  var o;
@@ -87304,7 +86957,7 @@ var _sfc_render$3 = function l() {
87304
86957
  var r = this, o = r._self._c;
87305
86958
  return r._self._setupProxy, o("div", { ref: "hoEmrToolBarBox", staticClass: "ho-emr-toolbar-box ho-toolbar-box" }, [o("div", { ref: "hoEmrToolLeft", staticClass: "ho-emr-tool-left" }, [r._t("HoToolLeft")], 2), o("div", { staticClass: "ho-emr-tool-list ho-emr-tool-center" }, [r._l(r.toolList, function(n, a) {
87306
86959
  return [o("HoToolItem", { attrs: { tool: n, fontInfo: r.fontInfo, vueController: r.vueController } })];
87307
- }), o("div", { staticClass: "ho-emr-tool-item" }, [o("a-dropdown", { attrs: { trigger: ["click"], placement: "bottomRight" }, model: { value: r.moreVisible, callback: function(n) {
86960
+ }), o("div", { staticClass: "ho-emr-tool-item" }, [o("a-dropdown", { attrs: { trigger: ["click"], overlayClassName: "ho-emr-tool-more-dropdown", placement: "bottomCenter", arrow: "" }, model: { value: r.moreVisible, callback: function(n) {
87308
86961
  r.moreVisible = n;
87309
86962
  }, expression: "moreVisible" } }, [o("a", { staticClass: "ant-dropdown-link", on: { click: (n) => n.preventDefault() } }, [o("a-icon", { attrs: { type: "ellipsis" } })], 1), o("div", { staticClass: "ho-emr-tool-more", attrs: { slot: "overlay" }, slot: "overlay" }, [o("div", { staticClass: "ho-emr-tool-list" }, [r._l(r.moreList, function(n, a) {
87310
86963
  return [o("HoToolItem", { attrs: { tool: n, fontInfo: r.fontInfo, vueController: r.vueController } })];