alit-layout 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as f, normalizeStyle as G, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as De, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Ve, nextTick as Ze, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as It, inject as Rt, withDirectives as gt, provide as Wt } from "vue";
1
+ import { defineComponent as Z, openBlock as s, createElementBlock as d, Fragment as M, renderList as V, createElementVNode as g, normalizeStyle as G, unref as x, toDisplayString as X, createCommentVNode as P, ref as Q, watch as De, normalizeClass as te, computed as A, createBlock as U, createTextVNode as Ke, createVNode as K, pushScopeId as He, popScopeId as Re, renderSlot as it, onMounted as Ve, nextTick as Ze, withModifiers as Le, resolveComponent as Ht, resolveDynamicComponent as mt, normalizeProps as yt, guardReactiveProps as _t, withCtx as Tt, inject as Rt, withDirectives as ft, provide as Wt } from "vue";
2
2
  const Lt = {
3
3
  // 选择题
4
4
  choice: "MULTIPLE_RADIO_QUESTION",
@@ -582,7 +582,7 @@ const Lt = {
582
582
  { name: "常规", code: Ue.none },
583
583
  { name: "分段", code: Ue.step },
584
584
  { name: "自编", code: Ue.custom }
585
- ], T = {
585
+ ], I = {
586
586
  choice_1: "choice-1",
587
587
  choice_2: "choice-2",
588
588
  choice_3: "choice-3",
@@ -743,8 +743,8 @@ const Lt = {
743
743
  target: [q.headline],
744
744
  show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
745
745
  option: [
746
- { name: "1栏", code: T.col_1 },
747
- { name: "横向2栏", code: T.col_2 }
746
+ { name: "1栏", code: I.col_1 },
747
+ { name: "横向2栏", code: I.col_2 }
748
748
  ]
749
749
  }
750
750
  ],
@@ -756,8 +756,8 @@ const Lt = {
756
756
  target: [q.headline],
757
757
  show: (e) => ![p.art].includes(e.problemType) && e.layoutMode === "column",
758
758
  option: [
759
- { name: "1栏", code: T.col_1 },
760
- { name: "横向2栏", code: T.col_2 }
759
+ { name: "1栏", code: I.col_1 },
760
+ { name: "横向2栏", code: I.col_2 }
761
761
  ]
762
762
  }
763
763
  ]
@@ -772,8 +772,8 @@ const Lt = {
772
772
  code: "slove_insert_sub",
773
773
  target: [q.problem],
774
774
  option: [
775
- { name: "无", code: T.slove_5 },
776
- { name: "下划线", code: T.slove_6 }
775
+ { name: "无", code: I.slove_5 },
776
+ { name: "下划线", code: I.slove_6 }
777
777
  ]
778
778
  }
779
779
  ]
@@ -786,8 +786,8 @@ const Lt = {
786
786
  label: "展示样式",
787
787
  key: m.article.choice_a,
788
788
  option: [
789
- { name: "分布式", code: T.choice_1 },
790
- { name: "集合式", code: T.choice_2 }
789
+ { name: "分布式", code: I.choice_1 },
790
+ { name: "集合式", code: I.choice_2 }
791
791
  ]
792
792
  }
793
793
  ],
@@ -798,8 +798,8 @@ const Lt = {
798
798
  label: "展示样式",
799
799
  key: m.article.decide_a,
800
800
  option: [
801
- { name: "对错", code: T.decide_1 },
802
- { name: "TF", code: T.decide_2 }
801
+ { name: "对错", code: I.decide_1 },
802
+ { name: "TF", code: I.decide_2 }
803
803
  ]
804
804
  }
805
805
  ],
@@ -810,9 +810,9 @@ const Lt = {
810
810
  label: "打分框位置",
811
811
  key: m.article.fill_a,
812
812
  option: [
813
- { name: "跟随下划线", code: T.fill_1 },
814
- { name: "跟随主题干", code: T.fill_2 },
815
- { name: "跟随标点符号", code: T.fill_3 }
813
+ { name: "跟随下划线", code: I.fill_1 },
814
+ { name: "跟随主题干", code: I.fill_2 },
815
+ { name: "跟随标点符号", code: I.fill_3 }
816
816
  ]
817
817
  }
818
818
  ],
@@ -825,18 +825,18 @@ const Lt = {
825
825
  label: "边框控制",
826
826
  key: m.article.slove_a,
827
827
  option: [
828
- { name: "有边框", code: T.slove_1 },
829
- { name: "无边框", code: T.slove_2 }
828
+ { name: "有边框", code: I.slove_1 },
829
+ { name: "无边框", code: I.slove_2 }
830
830
  ]
831
831
  },
832
832
  {
833
833
  type: "radio",
834
834
  label: "边框样式",
835
835
  key: m.article.slove_c,
836
- show: (e) => e.style[m.article.slove_a] === T.slove_1,
836
+ show: (e) => e.style[m.article.slove_a] === I.slove_1,
837
837
  option: [
838
- { name: "标准边框", code: T.slove_3 },
839
- { name: "简易边框", code: T.slove_4 }
838
+ { name: "标准边框", code: I.slove_3 },
839
+ { name: "简易边框", code: I.slove_4 }
840
840
  ]
841
841
  },
842
842
  {
@@ -855,8 +855,8 @@ const Lt = {
855
855
  code: "slove_insert_sub",
856
856
  target: [q.problem],
857
857
  option: [
858
- { name: "无", code: T.slove_5 },
859
- { name: "下划线", code: T.slove_6 }
858
+ { name: "无", code: I.slove_5 },
859
+ { name: "下划线", code: I.slove_6 }
860
860
  ]
861
861
  }
862
862
  ],
@@ -907,26 +907,26 @@ const Lt = {
907
907
  label: "排列样式",
908
908
  key: m.sheet.choice_a,
909
909
  option: [
910
- { name: "横排", code: T.choice_1 },
911
- { name: "竖排", code: T.choice_2 },
912
- { name: "分组", code: T.choice_3 }
910
+ { name: "横排", code: I.choice_1 },
911
+ { name: "竖排", code: I.choice_2 },
912
+ { name: "分组", code: I.choice_3 }
913
913
  ]
914
914
  },
915
915
  {
916
916
  type: "radio",
917
917
  label: "排列方向",
918
918
  key: m.sheet.choice_b,
919
- show: (e) => e.style[m.sheet.choice_a] !== T.choice_2,
919
+ show: (e) => e.style[m.sheet.choice_a] !== I.choice_2,
920
920
  option: [
921
- { name: "横向", code: T.landscape },
922
- { name: "纵向", code: T.portrait }
921
+ { name: "横向", code: I.landscape },
922
+ { name: "纵向", code: I.portrait }
923
923
  ]
924
924
  },
925
925
  {
926
926
  type: "radio",
927
927
  label: "每组题数",
928
928
  key: m.sheet.choice_c,
929
- show: (e) => [T.choice_2].includes(e.style[m.sheet.choice_a]),
929
+ show: (e) => [I.choice_2].includes(e.style[m.sheet.choice_a]),
930
930
  option: [
931
931
  { name: "3题", code: 3 },
932
932
  { name: "4题", code: 4 },
@@ -941,8 +941,8 @@ const Lt = {
941
941
  label: "展示样式",
942
942
  key: m.sheet.decide_a,
943
943
  option: [
944
- { name: "对错", code: T.decide_1 },
945
- { name: "TF", code: T.decide_2 }
944
+ { name: "对错", code: I.decide_1 },
945
+ { name: "TF", code: I.decide_2 }
946
946
  ]
947
947
  }
948
948
  ],
@@ -963,9 +963,9 @@ const Lt = {
963
963
  key: m.sheet.fill_a,
964
964
  show: (e) => e.style[m.sheet.fill_b],
965
965
  option: [
966
- { name: "跟随下划线", code: T.fill_1 },
967
- { name: "跟随主题干", code: T.fill_2 },
968
- { name: "跟随标点符号", code: T.fill_3 }
966
+ { name: "跟随下划线", code: I.fill_1 },
967
+ { name: "跟随主题干", code: I.fill_2 },
968
+ { name: "跟随标点符号", code: I.fill_3 }
969
969
  ]
970
970
  },
971
971
  {
@@ -975,8 +975,8 @@ const Lt = {
975
975
  target: [q.page, q.headline],
976
976
  show: (e) => !e.style[m.sheet.fill_b],
977
977
  option: [
978
- { name: "开启", code: T.fill_1 },
979
- { name: "关闭", code: T.fill_2 }
978
+ { name: "开启", code: I.fill_1 },
979
+ { name: "关闭", code: I.fill_2 }
980
980
  ]
981
981
  },
982
982
  {
@@ -1059,8 +1059,8 @@ const Lt = {
1059
1059
  key: m.sheet.decide_a,
1060
1060
  show: (e) => !e.style[m.sheet.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[m.sheet.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
1061
1061
  option: [
1062
- { name: "对错", code: T.decide_1 },
1063
- { name: "TF", code: T.decide_2 }
1062
+ { name: "对错", code: I.decide_1 },
1063
+ { name: "TF", code: I.decide_2 }
1064
1064
  ]
1065
1065
  },
1066
1066
  {
@@ -1070,8 +1070,8 @@ const Lt = {
1070
1070
  target: [q.problem],
1071
1071
  show: (e) => !e.style[m.sheet.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
1072
1072
  option: [
1073
- { name: "横向", code: T.landscape },
1074
- { name: "竖向", code: T.portrait }
1073
+ { name: "横向", code: I.landscape },
1074
+ { name: "竖向", code: I.portrait }
1075
1075
  ]
1076
1076
  }
1077
1077
  ],
@@ -1136,26 +1136,26 @@ const Lt = {
1136
1136
  label: "排列样式",
1137
1137
  key: m.sheetCard.choice_a,
1138
1138
  option: [
1139
- { name: "横排", code: T.choice_1 },
1140
- { name: "竖排", code: T.choice_2 },
1141
- { name: "分组", code: T.choice_3 }
1139
+ { name: "横排", code: I.choice_1 },
1140
+ { name: "竖排", code: I.choice_2 },
1141
+ { name: "分组", code: I.choice_3 }
1142
1142
  ]
1143
1143
  },
1144
1144
  {
1145
1145
  type: "radio",
1146
1146
  label: "排列方向",
1147
1147
  key: m.sheetCard.choice_b,
1148
- show: (e) => e.style[m.sheetCard.choice_a] !== T.choice_2,
1148
+ show: (e) => e.style[m.sheetCard.choice_a] !== I.choice_2,
1149
1149
  option: [
1150
- { name: "横向", code: T.landscape },
1151
- { name: "纵向", code: T.portrait }
1150
+ { name: "横向", code: I.landscape },
1151
+ { name: "纵向", code: I.portrait }
1152
1152
  ]
1153
1153
  },
1154
1154
  {
1155
1155
  type: "radio",
1156
1156
  label: "每组题数",
1157
1157
  key: m.sheetCard.choice_c,
1158
- show: (e) => [T.choice_2].includes(e.style[m.sheetCard.choice_a]),
1158
+ show: (e) => [I.choice_2].includes(e.style[m.sheetCard.choice_a]),
1159
1159
  option: [
1160
1160
  { name: "3题", code: 3 },
1161
1161
  { name: "4题", code: 4 },
@@ -1167,7 +1167,7 @@ const Lt = {
1167
1167
  label: "列数",
1168
1168
  target: [q.headline],
1169
1169
  key: m.sheetCard.choice_d,
1170
- show: (e) => e.style[m.sheetCard.choice_a] !== T.choice_2,
1170
+ show: (e) => e.style[m.sheetCard.choice_a] !== I.choice_2,
1171
1171
  min: () => 2,
1172
1172
  max: () => 10
1173
1173
  }
@@ -1179,8 +1179,8 @@ const Lt = {
1179
1179
  label: "展示样式",
1180
1180
  key: m.sheetCard.decide_a,
1181
1181
  option: [
1182
- { name: "对错", code: T.decide_1 },
1183
- { name: "TF", code: T.decide_2 }
1182
+ { name: "对错", code: I.decide_1 },
1183
+ { name: "TF", code: I.decide_2 }
1184
1184
  ]
1185
1185
  }
1186
1186
  ],
@@ -1192,9 +1192,9 @@ const Lt = {
1192
1192
  key: m.sheetCard.fill_a,
1193
1193
  show: (e) => e.style[m.sheetCard.fill_b],
1194
1194
  option: [
1195
- { name: "跟随下划线", code: T.fill_1 },
1196
- { name: "跟随主题干", code: T.fill_2 },
1197
- { name: "跟随标点符号", code: T.fill_3 }
1195
+ { name: "跟随下划线", code: I.fill_1 },
1196
+ { name: "跟随主题干", code: I.fill_2 },
1197
+ { name: "跟随标点符号", code: I.fill_3 }
1198
1198
  ]
1199
1199
  },
1200
1200
  {
@@ -1204,8 +1204,8 @@ const Lt = {
1204
1204
  target: [q.page, q.headline],
1205
1205
  show: (e) => !e.style[m.sheetCard.fill_b],
1206
1206
  option: [
1207
- { name: "开启", code: T.fill_1 },
1208
- { name: "关闭", code: T.fill_2 }
1207
+ { name: "开启", code: I.fill_1 },
1208
+ { name: "关闭", code: I.fill_2 }
1209
1209
  ]
1210
1210
  },
1211
1211
  {
@@ -1279,8 +1279,8 @@ const Lt = {
1279
1279
  key: m.sheetCard.decide_a,
1280
1280
  show: (e) => !e.style[m.sheetCard.mix_a] && (e.mixType || (e.children || []).filter((t) => Object.values(p).includes(t.problemType) && !t.style[m.sheetCard.mix_a]).map((t) => t.mixType).flat(2)).find((t) => t.problemType === p.decide),
1281
1281
  option: [
1282
- { name: "对错", code: T.decide_1 },
1283
- { name: "TF", code: T.decide_2 }
1282
+ { name: "对错", code: I.decide_1 },
1283
+ { name: "TF", code: I.decide_2 }
1284
1284
  ]
1285
1285
  },
1286
1286
  {
@@ -1290,8 +1290,8 @@ const Lt = {
1290
1290
  target: [q.problem],
1291
1291
  show: (e) => !e.style[m.sheetCard.mix_a] && !(e.mixType || []).find((t) => ![p.choice, p.choice_multiple].includes(t.problemType)),
1292
1292
  option: [
1293
- { name: "横向", code: T.landscape },
1294
- { name: "竖向", code: T.portrait }
1293
+ { name: "横向", code: I.landscape },
1294
+ { name: "竖向", code: I.portrait }
1295
1295
  ]
1296
1296
  }
1297
1297
  ],
@@ -1380,7 +1380,7 @@ const Lt = {
1380
1380
  { name: "小四", code: "16px", alias: "s4" },
1381
1381
  { name: "五号", code: "14px", alias: "5" },
1382
1382
  { name: "小五", code: "12px", alias: "s5" }
1383
- ], Te = {
1383
+ ], Ie = {
1384
1384
  stand: {
1385
1385
  name: "标准",
1386
1386
  code: "stand",
@@ -1455,7 +1455,7 @@ const Lt = {
1455
1455
  column: Yt,
1456
1456
  columnMargin: Et,
1457
1457
  defaultProblemLayout: ao,
1458
- fillSize: Te,
1458
+ fillSize: Ie,
1459
1459
  fontFamily: so,
1460
1460
  fontSize: ro,
1461
1461
  fontWeight: io,
@@ -1474,7 +1474,7 @@ const Lt = {
1474
1474
  paper: Oe,
1475
1475
  problemLayout: lo,
1476
1476
  problemLayoutKey: m,
1477
- problemLayoutVal: T,
1477
+ problemLayoutVal: I,
1478
1478
  scoreLineSize: je,
1479
1479
  scoreLineStyle: Je,
1480
1480
  scoreLineType: Ue,
@@ -1567,7 +1567,7 @@ const Lt = {
1567
1567
  // 选做题
1568
1568
  [be.another_choice]: "TYPE_SINGLECHOICE"
1569
1569
  // 附加选做题
1570
- }, yo = ["data-xine"], _o = ["data-xine"], go = ["data-xine"], fo = ["data-xine"], bo = ["data-xine"], vo = /* @__PURE__ */ Z({
1570
+ }, yo = ["data-xine"], _o = ["data-xine"], fo = ["data-xine"], go = ["data-xine"], bo = ["data-xine"], vo = /* @__PURE__ */ Z({
1571
1571
  __name: "point",
1572
1572
  props: {
1573
1573
  layout: {},
@@ -1610,27 +1610,27 @@ const Lt = {
1610
1610
  return (l, i) => {
1611
1611
  var c;
1612
1612
  return s(), d(M, null, [
1613
- (s(), d(M, null, V(["lt", "rt", "lb", "rb"], (u) => f("span", {
1613
+ (s(), d(M, null, V(["lt", "rt", "lb", "rb"], (u) => g("span", {
1614
1614
  key: u,
1615
1615
  class: "absolute w-8 bg-black point_item",
1616
1616
  style: G(o(u)),
1617
1617
  "data-xine": x(C).point + u
1618
1618
  }, null, 12, yo)), 64)),
1619
1619
  (s(!0), d(M, null, V((l.currentPage % 2 ? l.layout.backColumn : l.layout.column) - 1, (u) => (s(), d(M, { key: u }, [
1620
- (s(), d(M, null, V(["t", "b"], (y) => f("span", {
1620
+ (s(), d(M, null, V(["t", "b"], (y) => g("span", {
1621
1621
  key: y,
1622
1622
  class: "absolute bg-black w-8 point_item",
1623
1623
  style: G(n(u, y)),
1624
1624
  "data-xine": x(C).point + y
1625
1625
  }, null, 12, _o)), 64))
1626
1626
  ], 64))), 128)),
1627
- (s(), d(M, null, V(["l", "r"], (u) => f("span", {
1627
+ (s(), d(M, null, V(["l", "r"], (u) => g("span", {
1628
1628
  key: u,
1629
1629
  class: "absolute bg-black h-8",
1630
1630
  style: G(r(u)),
1631
1631
  "data-xine": x(C).point + u
1632
- }, null, 12, go)), 64)),
1633
- f("p", {
1632
+ }, null, 12, fo)), 64)),
1633
+ g("p", {
1634
1634
  class: "absolute leading-none text-0",
1635
1635
  style: G(a()),
1636
1636
  "data-xine": x(C).page
@@ -1640,13 +1640,13 @@ const Lt = {
1640
1640
  class: "inline-block bg-black mx-2 page_item",
1641
1641
  "data-xine": x(C).page_item + y
1642
1642
  }, null, 8, bo))), 128))
1643
- ], 12, fo),
1643
+ ], 12, go),
1644
1644
  l.currentPage % 2 ? P("", !0) : (s(), d("span", {
1645
1645
  key: 0,
1646
1646
  class: "absolute top-3/4 translate-x-1/2 rotate-90 text-sm red_sheet",
1647
1647
  style: G({ right: `${l.padding.right - 12}px` })
1648
1648
  }, "提示:本卷" + X((c = x(Oe).find((u) => u.code === l.layout.paper)) == null ? void 0 : c.name) + "纸张", 5)),
1649
- f("span", {
1649
+ g("span", {
1650
1650
  class: "absolute text-sm red_sheet",
1651
1651
  style: G({ right: `${l.padding.bottom - 20 + 75}px`, bottom: `${l.padding.bottom - 20 - 3}px` })
1652
1652
  }, X(l.currentPage + 1) + "/" + X(l.totalPage), 5)
@@ -1695,8 +1695,8 @@ const re = (e, t) => {
1695
1695
  return (u, y) => (s(), d("div", {
1696
1696
  class: te(["flex-1 flex items-center border rounded-lg", u.autoLine ? n.value ? "border-gray4" : "border-transparent" : "border-gray4", u.size === "small" && "p-1", u.size === "stand" && "p-2", u.size === "large" && "p-2"])
1697
1697
  }, [
1698
- f("div", xo, [
1699
- f("input", {
1698
+ g("div", xo, [
1699
+ g("input", {
1700
1700
  class: te(["w-full", u.dir === "center" && "text-center", u.dir === "right" && "text-right"]),
1701
1701
  type: u.type,
1702
1702
  placeholder: u.placeholder,
@@ -1735,7 +1735,7 @@ const re = (e, t) => {
1735
1735
  onChange: l[0] || (l[0] = (i) => t("change", { slogin: i }))
1736
1736
  }, null, 8, ["value", "style"]));
1737
1737
  }
1738
- }), So = ["width", "height"], To = ["xlink:href"], Io = /* @__PURE__ */ Z({
1738
+ }), So = ["width", "height"], Io = ["xlink:href"], To = /* @__PURE__ */ Z({
1739
1739
  __name: "index",
1740
1740
  props: {
1741
1741
  width: { default: 1.5 },
@@ -1753,12 +1753,12 @@ const re = (e, t) => {
1753
1753
  width: n.width + "rem",
1754
1754
  height: (n.height || n.width) + "rem"
1755
1755
  }, [
1756
- f("use", { "xlink:href": a.value }, null, 8, To)
1756
+ g("use", { "xlink:href": a.value }, null, 8, Io)
1757
1757
  ], 8, So))
1758
1758
  ]));
1759
1759
  }
1760
1760
  });
1761
- const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
1761
+ const _e = /* @__PURE__ */ re(To, [["__scopeId", "data-v-ed2907dd"]]), Lo = { class: "flex items-center text-black text-sm h-6 mb-2" }, Fo = {
1762
1762
  key: 0,
1763
1763
  class: "flex items-center"
1764
1764
  }, Eo = { class: "px-2 ml-2 border leading-none" }, Mo = /* @__PURE__ */ Z({
@@ -1778,7 +1778,7 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1778
1778
  }),
1779
1779
  Ke("启用前")
1780
1780
  ])) : P("", !0),
1781
- f("p", Eo, "ID:" + X(t.code), 1)
1781
+ g("p", Eo, "ID:" + X(t.code), 1)
1782
1782
  ]));
1783
1783
  }
1784
1784
  }), Po = ["innerHTML"], Be = /* @__PURE__ */ Z({
@@ -1802,19 +1802,19 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1802
1802
  }), Do = { class: "flex w-full" }, Ao = ["src", "data-xine"], No = { class: "flex-1 mx-4" }, Bo = { class: "flex items-center justify-center flex-wrap" }, Oo = {
1803
1803
  key: 0,
1804
1804
  class: "flex mx-4 min-w-[70px]"
1805
- }, zo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
1805
+ }, zo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "范围:", -1), Ho = {
1806
1806
  key: 1,
1807
1807
  class: "flex items-center w-40 mx-4"
1808
- }, Ro = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "时间:", -1), Wo = /* @__PURE__ */ f("span", null, "分钟", -1), Go = {
1808
+ }, Ro = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "时间:", -1), Wo = /* @__PURE__ */ g("span", null, "分钟", -1), Go = {
1809
1809
  key: 2,
1810
1810
  class: "flex mx-4 min-w-[80px]"
1811
- }, Yo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
1811
+ }, Yo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "命题人:", -1), qo = {
1812
1812
  key: 3,
1813
1813
  class: "flex mx-4 min-w-[80px]"
1814
- }, Qo = /* @__PURE__ */ f("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
1814
+ }, Qo = /* @__PURE__ */ g("span", { class: "flex-shrink-0" }, "审核人:", -1), Uo = {
1815
1815
  key: 4,
1816
1816
  class: "flex items-center mx-4"
1817
- }, Ko = /* @__PURE__ */ f("span", null, "总", -1), jo = { key: 1 }, Xo = { key: 3 }, Vo = { key: 1 }, Zo = { key: 3 }, Jo = /* @__PURE__ */ f("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ Z({
1817
+ }, Ko = /* @__PURE__ */ g("span", null, "总", -1), jo = { key: 1 }, Xo = { key: 3 }, Vo = { key: 1 }, Zo = { key: 3 }, Jo = /* @__PURE__ */ g("span", null, ")", -1), ea = { key: 1 }, ta = /* @__PURE__ */ Z({
1818
1818
  __name: "title",
1819
1819
  props: {
1820
1820
  info: {},
@@ -1826,13 +1826,13 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1826
1826
  setup(e, { emit: t }) {
1827
1827
  const o = e, a = A(() => o.data.filter((l) => ![be.another, be.another_choice, be.one_choice].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), n = A(() => o.data.filter((l) => [be.another].includes(l.problemType)).map((l) => l.totalScore || 0).reduce((l, i) => l + i, 0)), r = A(() => o.layout.scoreAddStars === Je.star.code ? o.layout.minusFlag ? "fiveArrowLine" : "fiveArrow" : "");
1828
1828
  return (l, i) => (s(), d("div", Do, [
1829
- f("img", {
1829
+ g("img", {
1830
1830
  src: l.info.qrCode,
1831
1831
  alt: "QRCode",
1832
1832
  class: "flex-shrink-0 w-28 h-28",
1833
1833
  "data-xine": x(C).art_code
1834
1834
  }, null, 8, Ao),
1835
- f("div", No, [
1835
+ g("div", No, [
1836
1836
  K(Be, {
1837
1837
  class: "w-full text-center border-2 border-transparent focus:border-current",
1838
1838
  value: l.info.title,
@@ -1846,7 +1846,7 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1846
1846
  style: G(l.fontConfig.halfTitleStyle),
1847
1847
  onChange: i[1] || (i[1] = (c) => t("change", { secTitle: c }))
1848
1848
  }, null, 8, ["value", "style"])) : P("", !0),
1849
- f("div", Bo, [
1849
+ g("div", Bo, [
1850
1850
  l.layout.examExtentFlag ? (s(), d("p", Oo, [
1851
1851
  zo,
1852
1852
  K(Be, {
@@ -1891,20 +1891,20 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1891
1891
  name: r.value,
1892
1892
  class: "p-0 -translate-y-[1px]"
1893
1893
  }, null, 8, ["name"])) : (s(), d("span", jo, "分")),
1894
- f("span", null, ":" + X(a.value + (l.layout.writeScoreFlag ? l.info.writeScore : 0)), 1),
1894
+ g("span", null, ":" + X(a.value + (l.layout.writeScoreFlag ? l.info.writeScore : 0)), 1),
1895
1895
  r.value ? (s(), U(_e, {
1896
1896
  key: 2,
1897
1897
  name: r.value,
1898
1898
  class: "p-0 -translate-y-[1px]"
1899
1899
  }, null, 8, ["name"])) : (s(), d("span", Xo, "分")),
1900
1900
  l.layout.writeScoreFlag ? (s(), d(M, { key: 4 }, [
1901
- f("span", null, "(试题" + X(a.value), 1),
1901
+ g("span", null, "(试题" + X(a.value), 1),
1902
1902
  r.value ? (s(), U(_e, {
1903
1903
  key: 0,
1904
1904
  name: r.value,
1905
1905
  class: "p-0 -translate-y-[1px]"
1906
1906
  }, null, 8, ["name"])) : (s(), d("span", Vo, "分")),
1907
- f("span", null, "+卷面" + X(l.info.writeScore || 0), 1),
1907
+ g("span", null, "+卷面" + X(l.info.writeScore || 0), 1),
1908
1908
  r.value ? (s(), U(_e, {
1909
1909
  key: 2,
1910
1910
  name: r.value,
@@ -1913,7 +1913,7 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1913
1913
  Jo
1914
1914
  ], 64)) : P("", !0),
1915
1915
  n.value ? (s(), d(M, { key: 5 }, [
1916
- f("span", null, ";附加题:" + X(n.value), 1),
1916
+ g("span", null, ";附加题:" + X(n.value), 1),
1917
1917
  r.value ? (s(), U(_e, {
1918
1918
  key: 0,
1919
1919
  name: r.value,
@@ -1925,7 +1925,7 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1925
1925
  ])
1926
1926
  ]));
1927
1927
  }
1928
- }), oa = { class: "flex-1 flex flex-col ml-2" }, ft = /* @__PURE__ */ Z({
1928
+ }), oa = { class: "flex-1 flex flex-col ml-2" }, gt = /* @__PURE__ */ Z({
1929
1929
  __name: "examInfoNone",
1930
1930
  props: {
1931
1931
  extent: {}
@@ -1934,7 +1934,7 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1934
1934
  setup(e, { emit: t }) {
1935
1935
  const o = ["examNumField", "examRoomField", "seatField"];
1936
1936
  return (a, n) => (s(), d("ul", oa, [
1937
- (s(), d(M, null, V(o, (r) => f("li", {
1937
+ (s(), d(M, null, V(o, (r) => g("li", {
1938
1938
  key: r,
1939
1939
  class: "flex flex-1"
1940
1940
  }, [
@@ -1955,23 +1955,23 @@ const _e = /* @__PURE__ */ re(Io, [["__scopeId", "data-v-ed2907dd"]]), Lo = { cl
1955
1955
  class: "flex-shrink-0 border ml-4 flex flex-col",
1956
1956
  "data-xine": x(C).en_num_view
1957
1957
  }, [
1958
- f("p", la, [
1958
+ g("p", la, [
1959
1959
  K(_e, {
1960
1960
  class: "pt-1",
1961
1961
  name: "fiveArrow"
1962
1962
  }),
1963
1963
  Ke("座位号")
1964
1964
  ]),
1965
- f("div", {
1965
+ g("div", {
1966
1966
  class: "flex-1 flex flex-col",
1967
1967
  "data-xine": x(C).en_num
1968
1968
  }, [
1969
- (s(), d(M, null, V(3, (a, n) => f("p", {
1969
+ (s(), d(M, null, V(3, (a, n) => g("p", {
1970
1970
  key: a,
1971
1971
  class: "flex-1 flex items-center text-0 px-1 border-t",
1972
1972
  "data-xine": x(C).en_num_group
1973
1973
  }, [
1974
- (s(), d(M, null, V(10, (r) => f("span", {
1974
+ (s(), d(M, null, V(10, (r) => g("span", {
1975
1975
  key: r,
1976
1976
  class: "flex items-center justify-between flex-nowrap item",
1977
1977
  "data-xine": x(C).en_num_item
@@ -1988,23 +1988,23 @@ const bt = /* @__PURE__ */ re(ra, [["__scopeId", "data-v-96b857fd"]]), ca = ["da
1988
1988
  class: "flex-shrink-0 border ml-4 flex",
1989
1989
  "data-xine": x(C).en_num_view
1990
1990
  }, [
1991
- f("p", da, [
1991
+ g("p", da, [
1992
1992
  K(_e, {
1993
1993
  class: "px-1 pt-1",
1994
1994
  name: "fiveArrow"
1995
1995
  }),
1996
1996
  Ke("短学号")
1997
1997
  ]),
1998
- f("div", {
1998
+ g("div", {
1999
1999
  class: "flex-1 flex flex-col",
2000
2000
  "data-xine": x(C).en_num
2001
2001
  }, [
2002
- (s(), d(M, null, V(4, (a, n) => f("p", {
2002
+ (s(), d(M, null, V(4, (a, n) => g("p", {
2003
2003
  key: a,
2004
2004
  class: te(["flex-1 flex items-center text-0 px-1", n && "border-t"]),
2005
2005
  "data-xine": x(C).en_num_group
2006
2006
  }, [
2007
- (s(), d(M, null, V(10, (r) => f("span", {
2007
+ (s(), d(M, null, V(10, (r) => g("span", {
2008
2008
  key: r,
2009
2009
  class: "flex items-center justify-between flex-nowrap item",
2010
2010
  "data-xine": x(C).en_num_item
@@ -2023,7 +2023,7 @@ const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2023
2023
  setup(e, { emit: t }) {
2024
2024
  const o = ["nameField", "classField", "scoreField"];
2025
2025
  return (a, n) => (s(), d("ul", ya, [
2026
- (s(), d(M, null, V(o, (r) => f("li", {
2026
+ (s(), d(M, null, V(o, (r) => g("li", {
2027
2027
  key: r,
2028
2028
  class: "flex flex-1"
2029
2029
  }, [
@@ -2037,10 +2037,10 @@ const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2037
2037
  ])), 64))
2038
2038
  ]));
2039
2039
  }
2040
- }), ga = (e) => (He("data-v-44e44996"), e = e(), Re(), e), fa = {
2040
+ }), fa = (e) => (He("data-v-44e44996"), e = e(), Re(), e), ga = {
2041
2041
  key: 0,
2042
2042
  class: "flex"
2043
- }, ba = ["data-xine"], va = /* @__PURE__ */ ga(() => /* @__PURE__ */ f("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
2043
+ }, ba = ["data-xine"], va = /* @__PURE__ */ fa(() => /* @__PURE__ */ g("span", { class: "font-bold tips" }, "贴条码区域", -1)), wa = [
2044
2044
  va
2045
2045
  ], xa = /* @__PURE__ */ Z({
2046
2046
  __name: "examInfo",
@@ -2052,9 +2052,9 @@ const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2052
2052
  emits: ["change"],
2053
2053
  setup(e, { emit: t }) {
2054
2054
  const o = e, a = A(() => o.layout.column >= 3 && o.layout.seatType === ve.none);
2055
- return (n, r) => n.isBindFlag ? P("", !0) : (s(), d("div", fa, [
2055
+ return (n, r) => n.isBindFlag ? P("", !0) : (s(), d("div", ga, [
2056
2056
  a.value ? (s(), d(M, { key: 0 }, [
2057
- n.layout.seatType === x(ve).none ? (s(), U(ft, {
2057
+ n.layout.seatType === x(ve).none ? (s(), U(gt, {
2058
2058
  key: 0,
2059
2059
  extent: n.info.extentInfo,
2060
2060
  onChange: r[0] || (r[0] = (l) => t("change", l))
@@ -2065,13 +2065,13 @@ const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2065
2065
  onChange: r[1] || (r[1] = (l) => t("change", l))
2066
2066
  }, null, 8, ["extent"]),
2067
2067
  a.value ? P("", !0) : (s(), d(M, { key: 1 }, [
2068
- n.layout.seatType === x(ve).none ? (s(), U(ft, {
2068
+ n.layout.seatType === x(ve).none ? (s(), U(gt, {
2069
2069
  key: 0,
2070
2070
  extent: n.info.extentInfo,
2071
2071
  onChange: r[2] || (r[2] = (l) => t("change", l))
2072
2072
  }, null, 8, ["extent"])) : n.layout.seatType === x(ve).seat ? (s(), U(bt, { key: 1 })) : n.layout.seatType === x(ve).shortId ? (s(), U(vt, { key: 2 })) : P("", !0)
2073
2073
  ], 64)),
2074
- f("div", {
2074
+ g("div", {
2075
2075
  class: "flex items-center justify-center flex-col flex-1 ml-4 border border-dashed",
2076
2076
  "data-xine": x(C).en_code
2077
2077
  }, wa, 8, ba)
@@ -2081,13 +2081,13 @@ const vt = /* @__PURE__ */ re(ma, [["__scopeId", "data-v-7bd75c30"]]), ya = { cl
2081
2081
  const ka = /* @__PURE__ */ re(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e) => (He("data-v-936c144e"), e = e(), Re(), e), Ca = {
2082
2082
  key: 0,
2083
2083
  class: "flex border mt-2 red_sheet"
2084
- }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ta = { class: "flex items-center flex-1 pl-2" }, Ia = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", null, "[", -1)), Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("span", { class: "ml-4" }, "]", -1)), Pa = [
2084
+ }, $a = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("p", { class: "px-4 text-center border-r tracking-[3px] text_dir" }, "注意事项", -1)), Sa = { class: "flex-1 overflow-hidden" }, Ia = { class: "flex items-center flex-1 pl-2" }, Ta = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", null, "此框为缺考考生标记,由监考员填涂。", -1)), La = { class: "flex items-center justify-center text-black" }, Fa = ["data-xine"], Ea = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", null, "[", -1)), Ma = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("span", { class: "ml-4" }, "]", -1)), Pa = [
2085
2085
  Ea,
2086
2086
  Ma
2087
- ], Da = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("p", { class: "flex items-center border-l px-2 py-1" }, [
2088
- /* @__PURE__ */ f("span", null, "正确填涂示例"),
2089
- /* @__PURE__ */ f("span", { class: "w-8 bg-black ml-2 block_tips" })
2090
- ], -1)), Aa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ f("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ Z({
2087
+ ], Da = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("p", { class: "flex items-center border-l px-2 py-1" }, [
2088
+ /* @__PURE__ */ g("span", null, "正确填涂示例"),
2089
+ /* @__PURE__ */ g("span", { class: "w-8 bg-black ml-2 block_tips" })
2090
+ ], -1)), Aa = /* @__PURE__ */ Ne(() => /* @__PURE__ */ g("div", { class: "h-2" }, null, -1)), Na = /* @__PURE__ */ Z({
2091
2091
  __name: "notice",
2092
2092
  props: {
2093
2093
  layout: {},
@@ -2110,7 +2110,7 @@ const ka = /* @__PURE__ */ re(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2110
2110
  return (a, n) => (s(), d(M, null, [
2111
2111
  a.layout.noteFlag ? (s(), d("div", Ca, [
2112
2112
  $a,
2113
- f("div", Sa, [
2113
+ g("div", Sa, [
2114
2114
  (s(!0), d(M, null, V(o.value, (r) => (s(), d("p", {
2115
2115
  key: r,
2116
2116
  class: "px-2 origin-left scale-75 tip_item"
@@ -2121,11 +2121,11 @@ const ka = /* @__PURE__ */ re(xa, [["__scopeId", "data-v-44e44996"]]), Ne = (e)
2121
2121
  key: 1,
2122
2122
  class: te(["flex border text-sm red_sheet", a.layout.noteFlag ? "border-t-0" : "mt-2"])
2123
2123
  }, [
2124
- f("p", Ta, [
2125
- Ia,
2126
- f("span", La, [
2124
+ g("p", Ia, [
2125
+ Ta,
2126
+ g("span", La, [
2127
2127
  K(_e, { name: "rightArrow" }),
2128
- f("span", {
2128
+ g("span", {
2129
2129
  class: "flex items-center leading-4",
2130
2130
  "data-xine": x(C).lack
2131
2131
  }, Pa, 8, Fa)
@@ -2159,12 +2159,12 @@ function xt(e) {
2159
2159
  const za = {
2160
2160
  key: 0,
2161
2161
  class: "flex border mb-2 text-center leading-loose red_sheet"
2162
- }, Ha = /* @__PURE__ */ f("li", { class: "flex-1 flex flex-col" }, [
2163
- /* @__PURE__ */ f("p", { class: "flex-1" }, "题号"),
2164
- /* @__PURE__ */ f("p", { class: "flex-1 border-t" }, "得分")
2165
- ], -1), Ra = { class: "flex-1" }, Wa = /* @__PURE__ */ f("p", { class: "flex-1 border-t" }, null, -1), Ga = /* @__PURE__ */ f("li", { class: "flex-1 flex flex-col border-l" }, [
2166
- /* @__PURE__ */ f("p", { class: "flex-1" }, "总分"),
2167
- /* @__PURE__ */ f("p", { class: "flex-1 border-t" })
2162
+ }, Ha = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col" }, [
2163
+ /* @__PURE__ */ g("p", { class: "flex-1" }, "题号"),
2164
+ /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, "得分")
2165
+ ], -1), Ra = { class: "flex-1" }, Wa = /* @__PURE__ */ g("p", { class: "flex-1 border-t" }, null, -1), Ga = /* @__PURE__ */ g("li", { class: "flex-1 flex flex-col border-l" }, [
2166
+ /* @__PURE__ */ g("p", { class: "flex-1" }, "总分"),
2167
+ /* @__PURE__ */ g("p", { class: "flex-1 border-t" })
2168
2168
  ], -1), Ya = /* @__PURE__ */ Z({
2169
2169
  __name: "scoreTable",
2170
2170
  props: {
@@ -2179,7 +2179,7 @@ const za = {
2179
2179
  key: r.id,
2180
2180
  class: "flex-1 flex flex-col border-l"
2181
2181
  }, [
2182
- f("p", Ra, X(x(Pt)(l)), 1),
2182
+ g("p", Ra, X(x(Pt)(l)), 1),
2183
2183
  Wa
2184
2184
  ]))), 128)),
2185
2185
  Ga
@@ -2216,18 +2216,18 @@ const za = {
2216
2216
  class: te(["absolute border rounded-3xl pointer-events-none z-1 red_sheet", i.value && "tips"]),
2217
2217
  style: G(r.value)
2218
2218
  }, [
2219
- f("span", {
2219
+ g("span", {
2220
2220
  class: "absolute border border-black",
2221
2221
  style: G(l.value)
2222
2222
  }, null, 4)
2223
2223
  ], 6)) : P("", !0),
2224
- f("div", {
2224
+ g("div", {
2225
2225
  class: "absolute overflow-hidden",
2226
2226
  ref_key: "colView",
2227
2227
  ref: n,
2228
2228
  style: G(c.styleInfo)
2229
2229
  }, [
2230
- f("div", {
2230
+ g("div", {
2231
2231
  ref_key: "col",
2232
2232
  ref: a,
2233
2233
  class: "overflow-hidden __col__",
@@ -2239,7 +2239,7 @@ const za = {
2239
2239
  ], 64));
2240
2240
  }
2241
2241
  });
2242
- const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (He("data-v-4dff340b"), e = e(), Re(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ f("span", null, "贴条码区域", -1)), Xa = [
2242
+ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e) => (He("data-v-4dff340b"), e = e(), Re(), e), Ua = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", { class: "flex-1 border-b" }, null, -1)), Ka = ["data-xine"], ja = /* @__PURE__ */ Dt(() => /* @__PURE__ */ g("span", null, "贴条码区域", -1)), Xa = [
2243
2243
  ja
2244
2244
  ], Va = ["data-xine"], Za = /* @__PURE__ */ Z({
2245
2245
  __name: "bind",
@@ -2267,18 +2267,18 @@ const Qa = /* @__PURE__ */ re(qa, [["__scopeId", "data-v-e102e805"]]), Dt = (e)
2267
2267
  class: "flex items-end px-20 pb-6 border-b origin-top-right front_view",
2268
2268
  style: G({ width: `${a.height - 20}px` })
2269
2269
  }, [
2270
- (s(), d(M, null, V(o, (r) => f("p", {
2270
+ (s(), d(M, null, V(o, (r) => g("p", {
2271
2271
  key: r,
2272
2272
  class: "flex items-end flex-1 mr-4"
2273
2273
  }, [
2274
- f("span", null, X(r), 1),
2274
+ g("span", null, X(r), 1),
2275
2275
  Ua
2276
2276
  ])), 64)),
2277
- f("div", {
2277
+ g("div", {
2278
2278
  class: "flex items-center justify-center border border-dashed font-bold w-80 h-40",
2279
2279
  "data-xine": x(C).en_code
2280
2280
  }, Xa, 8, Ka),
2281
- f("span", {
2281
+ g("span", {
2282
2282
  "data-xine": x(C).bind_line
2283
2283
  }, null, 8, Va)
2284
2284
  ], 4))
@@ -2301,7 +2301,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2301
2301
  "data-block": x(we),
2302
2302
  "data-xine": x(C).score
2303
2303
  }, [
2304
- f("ul", {
2304
+ g("ul", {
2305
2305
  class: "flex h-full divide-x divide-solid",
2306
2306
  "data-xine": x(C).score_base
2307
2307
  }, [
@@ -2310,7 +2310,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2310
2310
  style: G({ width: `${x(je)[n.layout.scoreLineSize].value}px` }),
2311
2311
  "data-xine": x(C).score_item
2312
2312
  }, [
2313
- f("span", il, X(l), 1),
2313
+ g("span", il, X(l), 1),
2314
2314
  K(_e, {
2315
2315
  class: "p-0",
2316
2316
  name: o[i]
@@ -2365,7 +2365,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2365
2365
  style: G({ width: `${x(je)[y.layout.scoreLineSize].value}px` }),
2366
2366
  "data-xine": Y.toString() ? x(C).score_item : ""
2367
2367
  }, [
2368
- f("span", {
2368
+ g("span", {
2369
2369
  class: te(["whitespace-nowrap", i.value && "origin-right", n.value && "scale-75"])
2370
2370
  }, X(y.layout.minusFlag && Y.toString().length && !i.value ? "-" : "") + X(Y), 3),
2371
2371
  i.value && Y.toString().length ? (s(), U(_e, {
@@ -2379,7 +2379,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2379
2379
  ], 8, cl))
2380
2380
  ], 64)) : P("", !0);
2381
2381
  }
2382
- }), At = (e) => (He("data-v-a8dbd3b0"), e = e(), Re(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ f("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ Z({
2382
+ }), At = (e) => (He("data-v-a8dbd3b0"), e = e(), Re(), e), hl = ["data-xine"], pl = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "red_sheet" }, "卷面整洁,书写工整分", -1)), ml = /* @__PURE__ */ At(() => /* @__PURE__ */ g("span", { class: "flex-1 mx-2 h-[1px] dashed_view" }, null, -1)), yl = /* @__PURE__ */ Z({
2383
2383
  __name: "writeScore",
2384
2384
  props: {
2385
2385
  info: {},
@@ -2400,7 +2400,7 @@ const Ja = /* @__PURE__ */ re(Za, [["__scopeId", "data-v-4dff340b"]]), we = "MC5
2400
2400
  ], 8, hl));
2401
2401
  }
2402
2402
  });
2403
- const _l = /* @__PURE__ */ re(yl, [["__scopeId", "data-v-a8dbd3b0"]]), gl = ["innerHTML"], fl = /* @__PURE__ */ Z({
2403
+ const _l = /* @__PURE__ */ re(yl, [["__scopeId", "data-v-a8dbd3b0"]]), fl = ["innerHTML"], gl = /* @__PURE__ */ Z({
2404
2404
  __name: "index",
2405
2405
  props: {
2406
2406
  data: {}
@@ -2410,10 +2410,10 @@ const _l = /* @__PURE__ */ re(yl, [["__scopeId", "data-v-a8dbd3b0"]]), gl = ["in
2410
2410
  return (o, a) => (s(), d("div", {
2411
2411
  innerHTML: t.data,
2412
2412
  class: "base-problem-font problem-base"
2413
- }, null, 8, gl));
2413
+ }, null, 8, fl));
2414
2414
  }
2415
2415
  });
2416
- const Ae = /* @__PURE__ */ re(fl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ Z({
2416
+ const Ae = /* @__PURE__ */ re(gl, [["__scopeId", "data-v-e6258dec"]]), bl = ["data-tag", "data-block"], vl = /* @__PURE__ */ Z({
2417
2417
  __name: "notArea",
2418
2418
  props: {
2419
2419
  item: {}
@@ -2436,7 +2436,7 @@ const Ae = /* @__PURE__ */ re(fl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2436
2436
  }, Cl = { class: "flex flex-wrap" }, $l = { key: 0 }, Sl = {
2437
2437
  key: 1,
2438
2438
  class: "indent-2"
2439
- }, Tl = { key: 0 }, Il = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ f("span", null, "我选答的题目是:", -1)), Ml = { class: "flex items-center" }, Pl = ["data-xine"], Dl = /* @__PURE__ */ Z({
2439
+ }, Il = { key: 0 }, Tl = { key: 0 }, Ll = { key: 1 }, Fl = ["data-block", "data-xine"], El = /* @__PURE__ */ wl(() => /* @__PURE__ */ g("span", null, "我选答的题目是:", -1)), Ml = { class: "flex items-center" }, Pl = ["data-xine"], Dl = /* @__PURE__ */ Z({
2440
2440
  __name: "index",
2441
2441
  props: {
2442
2442
  item: {},
@@ -2457,23 +2457,23 @@ const Ae = /* @__PURE__ */ re(fl, [["__scopeId", "data-v-e6258dec"]]), bl = ["da
2457
2457
  onDblclick: c[3] || (c[3] = Le((u) => t("dbclick", i.item), ["stop"]))
2458
2458
  }, [
2459
2459
  !i.layout.listIndexFlag && i.item.sub ? (s(), d("span", kl, X(x(Pt)(i.item.sub - 1)) + "、", 1)) : P("", !0),
2460
- f("div", null, [
2461
- f("div", Cl, [
2462
- f("span", null, X(i.item.name), 1),
2460
+ g("div", null, [
2461
+ g("div", Cl, [
2462
+ g("span", null, X(i.item.name), 1),
2463
2463
  i.item.desc ? (s(), d("span", $l, "(" + X(i.item.desc) + ")", 1)) : P("", !0),
2464
2464
  i.layout.scoreTipFlag ? (s(), d("span", Sl, "(共" + X(r.value) + "题,共" + X(i.item.totalScore) + "分)", 1)) : P("", !0)
2465
2465
  ]),
2466
- a.value || n.value ? (s(), d("div", Tl, [
2467
- a.value ? (s(), d("p", Il, "请在以下" + X(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2468
- f("p", {
2466
+ a.value || n.value ? (s(), d("div", Il, [
2467
+ a.value ? (s(), d("p", Tl, "请在以下" + X(i.item.rawChildren.length) + "道题目中任选一题作答,如果漏涂或多涂,则按第一题计分。", 1)) : (s(), d("p", Ll, "请在以下题目中选择你要作答的题目,并在对应的填涂框中填涂表示,如果未填涂则按不作答处理。")),
2468
+ g("p", {
2469
2469
  class: "flex flex-wrap",
2470
2470
  "data-block": x(we),
2471
2471
  "data-xine": x(C).choice + i.item.id
2472
2472
  }, [
2473
2473
  El,
2474
2474
  (s(!0), d(M, null, V(l.value, (u, y) => (s(), d("span", Ml, [
2475
- f("span", null, X(u), 1),
2476
- f("span", {
2475
+ g("span", null, X(u), 1),
2476
+ g("span", {
2477
2477
  class: "flex justify-between w-6 h-[11px] ml-2 mr-4 fill_view",
2478
2478
  "data-xine": x(C).fill
2479
2479
  }, null, 8, Pl)
@@ -2507,7 +2507,7 @@ const Bl = /* @__PURE__ */ re(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2507
2507
  }, [
2508
2508
  (s(!0), d(M, null, V(t.item.optList, (a, n) => (s(), d("span", {
2509
2509
  class: te(["fill_block", t.layout.showAnswer && t.item.answer.includes(x(wt)[n]) && "bg-success border-success"]),
2510
- style: G({ width: `${x(Te)[t.layout.fillSize].value + 1}px`, height: `${x(Te)[t.layout.fillSize].height + 1}px` }),
2510
+ style: G({ width: `${x(Ie)[t.layout.fillSize].value + 1}px`, height: `${x(Ie)[t.layout.fillSize].height + 1}px` }),
2511
2511
  "data-xine": x(C).fill + n
2512
2512
  }, [
2513
2513
  K(_e, {
@@ -2521,9 +2521,9 @@ const Bl = /* @__PURE__ */ re(Al, [["render", Nl]]), Ol = ["data-block"], zl = [
2521
2521
  function Wl(e, t) {
2522
2522
  return null;
2523
2523
  }
2524
- const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2524
+ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = ["data-xine"], Ql = ["data-xine"], Ul = ["data-xine"], Kl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "T", -1), jl = [
2525
2525
  Kl
2526
- ], Xl = ["data-xine"], Vl = /* @__PURE__ */ f("span", { class: "text-sm scale-75" }, "F", -1), Zl = [
2526
+ ], Xl = ["data-xine"], Vl = /* @__PURE__ */ g("span", { class: "text-sm scale-75" }, "F", -1), Zl = [
2527
2527
  Vl
2528
2528
  ], Jl = /* @__PURE__ */ Z({
2529
2529
  __name: "sheet",
@@ -2533,15 +2533,15 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2533
2533
  },
2534
2534
  setup(e) {
2535
2535
  const t = e, o = A(() => ({
2536
- width: `${Te[t.layout.fillSize].value + 1}px`,
2537
- height: `${Te[t.layout.fillSize].height + 1}px`
2536
+ width: `${Ie[t.layout.fillSize].value + 1}px`,
2537
+ height: `${Ie[t.layout.fillSize].height + 1}px`
2538
2538
  }));
2539
2539
  return (a, n) => (s(), d("div", {
2540
2540
  class: "flex red_sheet",
2541
2541
  "data-block": x(we)
2542
2542
  }, [
2543
- a.item.style[x(m)[a.layout.mode].decide_a] === x(T).decide_1 ? (s(), d(M, { key: 0 }, [
2544
- f("span", {
2543
+ a.item.style[x(m)[a.layout.mode].decide_a] === x(I).decide_1 ? (s(), d(M, { key: 0 }, [
2544
+ g("span", {
2545
2545
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2546
2546
  style: G(o.value),
2547
2547
  "data-xine": x(C).fill + "0"
@@ -2551,7 +2551,7 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2551
2551
  width: 1
2552
2552
  })
2553
2553
  ], 14, ql),
2554
- f("span", {
2554
+ g("span", {
2555
2555
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2556
2556
  style: G(o.value),
2557
2557
  "data-xine": x(C).fill + "1"
@@ -2562,12 +2562,12 @@ const Gl = /* @__PURE__ */ re(Rl, [["render", Wl]]), Yl = ["data-block"], ql = [
2562
2562
  })
2563
2563
  ], 14, Ql)
2564
2564
  ], 64)) : (s(), d(M, { key: 1 }, [
2565
- f("span", {
2565
+ g("span", {
2566
2566
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("T") && "bg-success border-success"]),
2567
2567
  style: G(o.value),
2568
2568
  "data-xine": x(C).fill + "0"
2569
2569
  }, jl, 14, Ul),
2570
- f("span", {
2570
+ g("span", {
2571
2571
  class: te(["fill_block", a.layout.showAnswer && a.item.answer.includes("F") && "bg-success border-success"]),
2572
2572
  style: G(o.value),
2573
2573
  "data-xine": x(C).fill + "1"
@@ -2598,7 +2598,7 @@ const on = /* @__PURE__ */ re(en, [["render", tn]]), an = ["data-block", "data-x
2598
2598
  "data-xine": x(C).fill
2599
2599
  }, [
2600
2600
  a.showScoreCn ? (s(), d("span", ln, [
2601
- f("span", null, X(a.layout.minusFlag && !o.value ? "-" : "") + X(a.item.score), 1),
2601
+ g("span", null, X(a.layout.minusFlag && !o.value ? "-" : "") + X(a.item.score), 1),
2602
2602
  o.value ? (s(), U(_e, {
2603
2603
  key: 0,
2604
2604
  class: "px-0 py-0 -translate-y-[1px]",
@@ -2617,7 +2617,7 @@ const on = /* @__PURE__ */ re(en, [["render", tn]]), an = ["data-block", "data-x
2617
2617
  setup(e) {
2618
2618
  const t = e;
2619
2619
  return (o, a) => (s(), d(M, null, [
2620
- f("div", {
2620
+ g("div", {
2621
2621
  class: "flex-1 border-b self-stretch red_sheet",
2622
2622
  style: G({ height: `${20 + o.item.style[x(m)[t.layout.mode].fill_e]}px` }),
2623
2623
  "data-xine": x(C).fill_line
@@ -2651,7 +2651,7 @@ const hn = /* @__PURE__ */ re(dn, [["render", un]]), pn = ["data-block"], mn = {
2651
2651
  "data-block": x(we)
2652
2652
  }, [
2653
2653
  it(t.$slots, "default"),
2654
- f("div", mn, [
2654
+ g("div", mn, [
2655
2655
  K(tt, {
2656
2656
  item: t.item,
2657
2657
  layout: t.layout
@@ -2665,10 +2665,10 @@ const hn = /* @__PURE__ */ re(dn, [["render", un]]), pn = ["data-block"], mn = {
2665
2665
  ], 2));
2666
2666
  }
2667
2667
  }), _n = {};
2668
- function gn(e, t) {
2668
+ function fn(e, t) {
2669
2669
  return null;
2670
2670
  }
2671
- const fn = /* @__PURE__ */ re(_n, [["render", gn]]), bn = /* @__PURE__ */ f("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ Z({
2671
+ const gn = /* @__PURE__ */ re(_n, [["render", fn]]), bn = /* @__PURE__ */ g("div", { class: "flex-1 border-b self-end mr-2" }, null, -1), vn = /* @__PURE__ */ Z({
2672
2672
  __name: "sheet",
2673
2673
  props: {
2674
2674
  item: {},
@@ -2691,11 +2691,11 @@ const kn = /* @__PURE__ */ re(wn, [["render", xn]]), Cn = {};
2691
2691
  function $n(e, t) {
2692
2692
  return null;
2693
2693
  }
2694
- const Sn = /* @__PURE__ */ re(Cn, [["render", $n]]), Tn = {};
2695
- function In(e, t) {
2694
+ const Sn = /* @__PURE__ */ re(Cn, [["render", $n]]), In = {};
2695
+ function Tn(e, t) {
2696
2696
  return null;
2697
2697
  }
2698
- const Ln = /* @__PURE__ */ re(Tn, [["render", In]]), Fn = {};
2698
+ const Ln = /* @__PURE__ */ re(In, [["render", Tn]]), Fn = {};
2699
2699
  function En(e, t) {
2700
2700
  return null;
2701
2701
  }
@@ -2744,7 +2744,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2744
2744
  "data-block": x(we)
2745
2745
  }, [
2746
2746
  it(h.$slots, "default"),
2747
- f("div", Bn, [
2747
+ g("div", Bn, [
2748
2748
  K(tt, {
2749
2749
  item: h.item,
2750
2750
  layout: h.layout
@@ -2847,7 +2847,7 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2847
2847
  fillSheet: cn,
2848
2848
  slove: hn,
2849
2849
  sloveSheet: yn,
2850
- easy_slove: fn,
2850
+ easy_slove: gn,
2851
2851
  easy_sloveSheet: vn,
2852
2852
  mix: kn,
2853
2853
  mixSheet: Sn,
@@ -2886,33 +2886,33 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2886
2886
  },
2887
2887
  setup(e, { emit: t }) {
2888
2888
  const o = ["sheet", "sheetCard"].includes(e.layout.mode) ? "Sheet" : "", a = Object.values(Ft), n = Q(""), r = A(() => {
2889
- const g = o ? {
2889
+ const _ = o ? {
2890
2890
  choiceSheet: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
2891
2891
  fillSheet: [p.fill, p.fill_english]
2892
2892
  } : {
2893
2893
  choice: [p.choice, p.choice_english, p.choice_multiple, p.cloze],
2894
2894
  fill: [p.fill, p.fill_english]
2895
2895
  };
2896
- return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(g).find((H) => g[H].includes(p[w])) || `${w}${o}` }), {});
2896
+ return Object.keys(p).reduce((k, w) => ({ ...k, [p[w]]: Object.keys(_).find((H) => _[H].includes(p[w])) || `${w}${o}` }), {});
2897
2897
  }), l = A(() => [be.one_choice, be.another_choice].includes(e.data.problemType)), i = A(() => {
2898
- let g = [];
2898
+ let _ = [];
2899
2899
  return e.data.children.forEach((k) => {
2900
- let w = g[g.length - 1];
2901
- (k.polymerId || a.includes(e.data.problemType)) && a.includes(k.problemType) && k.style && (k.style[m[e.layout.mode].choice_a] !== T.choice_1 || k.style[m[e.layout.mode].choice_b] === T.portrait) ? (!w || w.type !== "polymer" || w.polymerId !== k.polymerId) && (g.push({
2900
+ let w = _[_.length - 1];
2901
+ (k.polymerId || a.includes(e.data.problemType)) && a.includes(k.problemType) && k.style && (k.style[m[e.layout.mode].choice_a] !== I.choice_1 || k.style[m[e.layout.mode].choice_b] === I.portrait) ? (!w || w.type !== "polymer" || w.polymerId !== k.polymerId) && (_.push({
2902
2902
  type: "polymer",
2903
2903
  problemType: k.problemType,
2904
2904
  polymerId: k.polymerId,
2905
2905
  styleInfo: k.polymerId ? k.style : e.data.style,
2906
2906
  children: [],
2907
2907
  rawChildren: e.data.rawChildren || []
2908
- }), w = g[g.length - 1]) : (!w || w.type !== "base") && (g.push({
2908
+ }), w = _[_.length - 1]) : (!w || w.type !== "base") && (_.push({
2909
2909
  type: "base",
2910
2910
  children: []
2911
- }), w = g[g.length - 1]), w.children.push(k);
2912
- }), g = g.map((k) => {
2911
+ }), w = _[_.length - 1]), w.children.push(k);
2912
+ }), _ = _.map((k) => {
2913
2913
  var w;
2914
- if (k.type === "polymer" && k.styleInfo[m[e.layout.mode].choice_a] === T.choice_3) {
2915
- const H = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((w = k.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2914
+ if (k.type === "polymer" && k.styleInfo[m[e.layout.mode].choice_a] === I.choice_3) {
2915
+ const H = Math.floor(e.width / (Math.max(...k.children.map((B) => B.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((w = k.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 20));
2916
2916
  if (k.children.length > H * 5) {
2917
2917
  const B = k.children.length % 4 > 4 ? 5 : 4;
2918
2918
  return [...Array(Math.ceil(k.children.length / (H * B))).keys()].map((ue, he) => ({
@@ -2924,23 +2924,23 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2924
2924
  return k;
2925
2925
  } else
2926
2926
  return k;
2927
- }).flat(), g;
2927
+ }).flat(), _;
2928
2928
  }), c = A(() => {
2929
- let g = {};
2929
+ let _ = {};
2930
2930
  return e.data.children.forEach((k) => {
2931
- k.polymerId && (g[k.polymerId] || (g[k.polymerId] = []), g[k.polymerId][k.polymerOrder || 0] = k.id);
2932
- }), g;
2931
+ k.polymerId && (_[k.polymerId] || (_[k.polymerId] = []), _[k.polymerId][k.polymerOrder || 0] = k.id);
2932
+ }), _;
2933
2933
  }), u = A(() => {
2934
2934
  if (a.includes(e.data.problemType)) {
2935
- const g = (e.data.rawChildren || e.data.children).map((k) => k.subStr.length);
2936
- return { [`h${e.data.id}`]: Math.max(...g) };
2935
+ const _ = (e.data.rawChildren || e.data.children).map((k) => k.subStr.length);
2936
+ return { [`h${e.data.id}`]: Math.max(..._) };
2937
2937
  } else
2938
- return Object.keys(c.value).map((g) => {
2939
- const k = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId === g).map((w) => w.subStr.length);
2938
+ return Object.keys(c.value).map((_) => {
2939
+ const k = (e.data.rawChildren || e.data.children).filter((w) => w.polymerId === _).map((w) => w.subStr.length);
2940
2940
  return {
2941
- [g]: Math.max(...k)
2941
+ [_]: Math.max(...k)
2942
2942
  };
2943
- }).reduce((g, k) => ({ ...g, ...k }), {});
2943
+ }).reduce((_, k) => ({ ..._, ...k }), {});
2944
2944
  });
2945
2945
  return {
2946
2946
  Gps_cls: C,
@@ -2950,27 +2950,27 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2950
2950
  GroupData: i,
2951
2951
  PolymerData: c,
2952
2952
  SubWidthInfo: u,
2953
- ComputName: (g) => g.problemType ? r.value[g.problemType] : "notArea",
2954
- ComputAbs: (g) => o && [p.slove, p.art].includes(g.problemType),
2955
- ComputPolymerCls: (g) => [p.decide].includes(g.problemType) ? [] : g.styleInfo[m[e.layout.mode].choice_a] === T.choice_2 ? ["port_view"] : ["grid", g.groupIndex && "mt-8"],
2956
- ComputPolymerStyle: (g) => {
2953
+ ComputName: (_) => _.problemType ? r.value[_.problemType] : "notArea",
2954
+ ComputAbs: (_) => o && [p.slove, p.art].includes(_.problemType),
2955
+ ComputPolymerCls: (_) => [p.decide].includes(_.problemType) ? [] : _.styleInfo[m[e.layout.mode].choice_a] === I.choice_2 ? ["port_view"] : ["grid", _.groupIndex && "mt-8"],
2956
+ ComputPolymerStyle: (_) => {
2957
2957
  var he, ce;
2958
2958
  let k = {};
2959
- const w = Math.max(...(g.rawChildren || g.children).map((L) => L.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, H = Math.floor(e.width / (Math.max(...(g.rawChildren || g.children).map((L) => L.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((ce = g.children[0]) == null ? void 0 : ce.polymerId) || ""]) * 14 + 20)), B = Math.min(H, e.data.style[m[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
2960
- switch (g.styleInfo[m[e.layout.mode].choice_a]) {
2961
- case T.choice_1:
2962
- g.styleInfo[m[e.layout.mode].choice_b] === T.portrait && (k = {
2959
+ const w = Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((he = e.data.children[0]) == null ? void 0 : he.polymerId) || ""]) * 14 + 20, H = Math.floor(e.width / (Math.max(...(_.rawChildren || _.children).map((L) => L.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((ce = _.children[0]) == null ? void 0 : ce.polymerId) || ""]) * 14 + 20)), B = Math.min(H, e.data.style[m[e.layout.mode].choice_d] || 10), ue = (e.width - w * B) / (B - 1) - 10;
2960
+ switch (_.styleInfo[m[e.layout.mode].choice_a]) {
2961
+ case I.choice_1:
2962
+ _.styleInfo[m[e.layout.mode].choice_b] === I.portrait && (k = {
2963
2963
  "grid-auto-flow": e.noPortrait ? "row" : "column",
2964
2964
  "grid-template-columns": `repeat(${B}, 1fr)`,
2965
- "grid-template-rows": `repeat(${Math.ceil(g.children.length / B)}, 1fr)`,
2965
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`,
2966
2966
  "column-gap": `${ue}px`
2967
2967
  });
2968
2968
  break;
2969
- case T.choice_3:
2969
+ case I.choice_3:
2970
2970
  k = {
2971
2971
  "grid-template-columns": `repeat(${B}, 1fr)`,
2972
- "grid-template-rows": `repeat(${Math.ceil(g.children.length / B)}, 1fr)`
2973
- }, g.styleInfo[m[e.layout.mode].choice_b] === T.portrait && (k = {
2972
+ "grid-template-rows": `repeat(${Math.ceil(_.children.length / B)}, 1fr)`
2973
+ }, _.styleInfo[m[e.layout.mode].choice_b] === I.portrait && (k = {
2974
2974
  ...k,
2975
2975
  "grid-auto-flow": e.noPortrait ? "row" : "column",
2976
2976
  "column-gap": `${ue}px`
@@ -2979,26 +2979,26 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
2979
2979
  }
2980
2980
  return k;
2981
2981
  },
2982
- ComputPolymerItemStyle: (g, k) => {
2982
+ ComputPolymerItemStyle: (_, k) => {
2983
2983
  var w;
2984
- if (a.includes(g.problemType) && g.style[m[e.layout.mode].choice_a] === T.choice_2) {
2985
- const H = Math.max(Te[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((w = g.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (H * g.style[m[e.layout.mode].choice_c] + 10)), ue = (e.width - H * B * g.style[m[e.layout.mode].choice_c]) / (B - 1 || 1);
2986
- if (!((k + 1) % g.style[m[e.layout.mode].choice_c]) && ((k + 1) % (g.style[m[e.layout.mode].choice_c] * B) || B < 2))
2984
+ if (a.includes(_.problemType) && _.style[m[e.layout.mode].choice_a] === I.choice_2) {
2985
+ const H = Math.max(Ie[e.layout.fillSize].value + 4, (u.value[`h${e.data.id}`] || u.value[((w = _.children[0]) == null ? void 0 : w.polymerId) || ""]) * 14 + 8), B = Math.floor(e.width / (H * _.style[m[e.layout.mode].choice_c] + 10)), ue = (e.width - H * B * _.style[m[e.layout.mode].choice_c]) / (B - 1 || 1);
2986
+ if (!((k + 1) % _.style[m[e.layout.mode].choice_c]) && ((k + 1) % (_.style[m[e.layout.mode].choice_c] * B) || B < 2))
2987
2987
  return {
2988
2988
  "margin-right": `${ue}px`
2989
2989
  };
2990
2990
  }
2991
2991
  return {};
2992
2992
  },
2993
- ComputStyle: (g, k) => {
2993
+ ComputStyle: (_, k) => {
2994
2994
  var H;
2995
2995
  let w = {};
2996
2996
  if (!o)
2997
2997
  return w;
2998
- if (a.includes(g.problemType)) {
2998
+ if (a.includes(_.problemType)) {
2999
2999
  let B = {};
3000
3000
  if (Object.values(Lt).includes(e.data.problemType)) {
3001
- const ue = Math.max(...(e.data.rawChildren || e.data.children).map((ce) => ce.optList.length)) * (Te[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((H = e.data.children[0]) == null ? void 0 : H.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / (ue + 10)), e.data.style[m[e.layout.mode].choice_d] || 10);
3001
+ const ue = Math.max(...(e.data.rawChildren || e.data.children).map((ce) => ce.optList.length)) * (Ie[e.layout.fillSize].value + 9) + (u.value[`h${e.data.id}`] || u.value[((H = e.data.children[0]) == null ? void 0 : H.polymerId) || ""]) * 14 + 20, he = Math.min(Math.floor(e.width / (ue + 10)), e.data.style[m[e.layout.mode].choice_d] || 10);
3002
3002
  B = k % he ? { minWidth: `${ue}px`, marginLeft: `${(e.width - ue * he) / (he - 1) - 5}px` } : { minWidth: `${ue}px` };
3003
3003
  }
3004
3004
  w = {
@@ -3007,38 +3007,38 @@ const An = /* @__PURE__ */ re(Pn, [["render", Dn]]), Nn = ["data-block"], Bn = {
3007
3007
  ...B
3008
3008
  };
3009
3009
  } else
3010
- [p.fill, p.fill_english].includes(g.problemType) && (w = {
3011
- display: g.style[m[e.layout.mode].fill_c] === T.fill_1 ? "flex" : "inline-flex",
3010
+ [p.fill, p.fill_english].includes(_.problemType) && (w = {
3011
+ display: _.style[m[e.layout.mode].fill_c] === I.fill_1 ? "flex" : "inline-flex",
3012
3012
  alignItems: "flex-end",
3013
- width: `calc(${100 / g.style[m[e.layout.mode].fill_d][g.order || 0]}% - 6px)`
3013
+ width: `calc(${100 / _.style[m[e.layout.mode].fill_d][_.order || 0]}% - 6px)`
3014
3014
  // paddingTop: `${10 + item.style[problemLayoutKey[props.layout.mode].fill_e]}px`
3015
3015
  });
3016
3016
  return w;
3017
3017
  },
3018
- ComputBlock: (g) => {
3018
+ ComputBlock: (_) => {
3019
3019
  const k = [...a, p.fill, p.fill_english];
3020
- if (o && (k.includes(g.problemType) || typeof g.groupIndex == "number"))
3020
+ if (o && (k.includes(_.problemType) || typeof _.groupIndex == "number"))
3021
3021
  return we;
3022
3022
  },
3023
- ComputPayload: (g, k) => {
3024
- switch (g.problemType) {
3023
+ ComputPayload: (_, k) => {
3024
+ switch (_.problemType) {
3025
3025
  case p.slove:
3026
3026
  return { isFirst: !k };
3027
3027
  default:
3028
3028
  return {};
3029
3029
  }
3030
3030
  },
3031
- handleHoverIn: (g) => {
3032
- n.value = g.rootProblemId;
3031
+ handleHoverIn: (_) => {
3032
+ n.value = _.rootProblemId;
3033
3033
  },
3034
- handleHoverOut: (g) => {
3034
+ handleHoverOut: (_) => {
3035
3035
  n.value = "";
3036
3036
  },
3037
- handleClick: (g, k) => {
3038
- e.data.isPolymer || (g.stopPropagation(), t("click", k));
3037
+ handleClick: (_, k) => {
3038
+ e.data.isPolymer || (_.stopPropagation(), t("click", k));
3039
3039
  },
3040
- handleDblClick: (g, k) => {
3041
- e.data.isPolymer || (g.stopPropagation(), t("dbclick", k));
3040
+ handleDblClick: (_, k) => {
3041
+ e.data.isPolymer || (_.stopPropagation(), t("dbclick", k));
3042
3042
  }
3043
3043
  };
3044
3044
  }
@@ -3076,7 +3076,7 @@ function ts(e, t, o, a, n, r) {
3076
3076
  ], 14, Vn)) : (s(!0), d(M, { key: 1 }, V(i.children, (c, u) => {
3077
3077
  var y;
3078
3078
  return s(), d(M, null, [
3079
- f("div", {
3079
+ g("div", {
3080
3080
  class: te(["flex items-center relative rounded-lg border p-1 m-1 hover:bg-gray hover:rounded-md hover:bg-opacity-70", a.hoverActive === c.rootProblemId && "bg-gray rounded-lg bg-opacity-70", ((y = o.target.value) == null ? void 0 : y.rootProblemId) === c.rootProblemId ? "border-current" : "border-transparent"]),
3081
3081
  style: G(a.ComputStyle(c, u)),
3082
3082
  "data-tag": c.__tag__,
@@ -3094,7 +3094,7 @@ function ts(e, t, o, a, n, r) {
3094
3094
  width: a.SubWidthInfo[`h${c.headLineId}`] || a.SubWidthInfo[c.polymerId || ""] || 0
3095
3095
  }, null, 8, ["sub", "isFull", "width"])) : P("", !0),
3096
3096
  (s(), U(mt(a.ComputName(c)), yt(_t({ item: c, layout: o.layout, ...a.ComputPayload(c, u) })), {
3097
- default: It(() => [
3097
+ default: Tt(() => [
3098
3098
  K(l, {
3099
3099
  sub: c.sub,
3100
3100
  isFull: !!a.ModuleTag,
@@ -3349,7 +3349,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3349
3349
  case p.cloze:
3350
3350
  z = {
3351
3351
  score: E.score,
3352
- isColumn: E.style[m[e.layout.mode].choice_a] !== T.choice_2,
3352
+ isColumn: E.style[m[e.layout.mode].choice_a] !== I.choice_2,
3353
3353
  optList: E.optList.map((w, H) => ({
3354
3354
  id: `${E._sub}.${H + 1}`,
3355
3355
  position: Pe(le(`${C.fill}${H}`, ne), F, u)
@@ -3366,7 +3366,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3366
3366
  break;
3367
3367
  case p.fill:
3368
3368
  case p.fill_english:
3369
- const R = $e(C.fill, ne), g = $e(C.fill_line, ne);
3369
+ const R = $e(C.fill, ne), _ = $e(C.fill_line, ne);
3370
3370
  z = {
3371
3371
  children: [E.score].flat().map((w, H, B) => ({
3372
3372
  id: B.length > 1 ? `${E._sub}.${H + 1}` : E._sub,
@@ -3375,7 +3375,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3375
3375
  isHiddenContent: !E.style[m[e.layout.mode].fill_b],
3376
3376
  position: Pe(ne, F, u),
3377
3377
  scorePosition: Pe(R[H], F, u),
3378
- answerPosition: Pe(g[H], F, u)
3378
+ answerPosition: Pe(_[H], F, u)
3379
3379
  })).filter((w) => w.position)
3380
3380
  };
3381
3381
  break;
@@ -3606,7 +3606,7 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3606
3606
  localData: r,
3607
3607
  extendInfo: { shortCoordinate: c }
3608
3608
  };
3609
- }, _s = { class: "layt-moni_view" }, gs = { class: "layt-moni_content" }, fs = { class: "layt-moni_icon" }, bs = { class: "layt-moni_msg" }, vs = {
3609
+ }, _s = { class: "layt-moni_view" }, fs = { class: "layt-moni_content" }, gs = { class: "layt-moni_icon" }, bs = { class: "layt-moni_msg" }, vs = {
3610
3610
  key: 0,
3611
3611
  class: "layt-moni_err_view"
3612
3612
  }, ws = { class: "layt-moni_err_item_msg" }, xs = ["onClick"], ks = /* @__PURE__ */ Z({
@@ -3653,27 +3653,27 @@ const Ge = /* @__PURE__ */ re(Xn, [["render", ts]]), Fe = 200 / 96, Nt = 4, os =
3653
3653
  (((i = a.value.find((c) => c.type === "absTxt")) == null ? void 0 : i.value) || []).forEach((c) => t("delAbsTxtItem", c));
3654
3654
  };
3655
3655
  return (l, i) => (s(), d("div", _s, [
3656
- f("div", gs, [
3657
- f("div", {
3656
+ g("div", fs, [
3657
+ g("div", {
3658
3658
  class: te(["layt-moni_status", a.value.length ? "layt-moni_err" : "layt-moni_success"])
3659
3659
  }, null, 2),
3660
- f("div", {
3660
+ g("div", {
3661
3661
  class: te(["layt-moni_info", a.value.length ? "layt-moni_err" : "layt-moni_success"])
3662
3662
  }, [
3663
- f("span", fs, [
3663
+ g("span", gs, [
3664
3664
  K(_e, {
3665
3665
  width: 1.6,
3666
3666
  name: a.value.length ? "wrong" : "right"
3667
3667
  }, null, 8, ["name"])
3668
3668
  ]),
3669
- f("span", bs, "排版" + X(a.value.length ? "异常" : "良好"), 1)
3669
+ g("span", bs, "排版" + X(a.value.length ? "异常" : "良好"), 1)
3670
3670
  ], 2),
3671
3671
  a.value.length ? (s(), d("ul", vs, [
3672
3672
  (s(!0), d(M, null, V(a.value, (c, u) => (s(), d("li", {
3673
3673
  key: u,
3674
3674
  class: "layt-moni_err_item"
3675
3675
  }, [
3676
- f("span", ws, X(c.msg), 1),
3676
+ g("span", ws, X(c.msg), 1),
3677
3677
  c.fn ? (s(), d("span", {
3678
3678
  key: 0,
3679
3679
  class: "layt-moni_err_item_fn",
@@ -3710,7 +3710,7 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3710
3710
  const a = nt("", e.parentElement), n = a.findIndex((l) => l === e);
3711
3711
  let r = a.filter((l, i) => de(l).top + l.offsetHeight - 1 < de(e).top || i < n && de(l).top < de(e).top).reverse()[0];
3712
3712
  return r || (r = Xe(e), de(r).top + r.offsetHeight - t > o && (r = st(r, t, o))), r;
3713
- }, Tt = (e, t, o, a) => {
3713
+ }, It = (e, t, o, a) => {
3714
3714
  const n = (l, i = o) => {
3715
3715
  var J, E, D;
3716
3716
  const c = l.map((v) => {
@@ -3748,7 +3748,7 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3748
3748
  }
3749
3749
  }, r = n([e]);
3750
3750
  return { cut: $s(r), targetEl: r };
3751
- }, Ts = (e) => {
3751
+ }, Is = (e) => {
3752
3752
  const { el: t, data: o, column: a, backColumn: n, getColSize: r, change: l } = e;
3753
3753
  if (!t || !o.length) {
3754
3754
  l([], !0);
@@ -3790,7 +3790,7 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3790
3790
  const z = $t(v.__tag__, t), ne = !v.isHidden && de(z);
3791
3791
  let R = null;
3792
3792
  if (y) {
3793
- const g = z.querySelector(`*[data-hutkey="${y}"]`), k = de(g);
3793
+ const _ = z.querySelector(`*[data-hutkey="${y}"]`), k = de(_);
3794
3794
  h[h.length - 1].top = c.top - k.top, h[h.length - 1].height = c.height - h[h.length - 1].top, y = 0;
3795
3795
  }
3796
3796
  if (ne && ne.height + ne.top - c.top > h[h.length - 1].height)
@@ -3801,12 +3801,12 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3801
3801
  else if (J(z))
3802
3802
  h[h.length - 1].data.pop(), Y(), D(v);
3803
3803
  else {
3804
- R = Tt(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3805
- const g = z.querySelector(`*[data-content="${v.id}"]`);
3806
- h[h.length - 1].height = de(R.cut).top - c.top, Y(), g != null && g.contains(R.cut) ? (y = Date.now(), R.cut.dataset.hutkey = y, D({ ...v, content: g.innerHTML })) : (h[h.length - 1].data.pop(), D(v));
3804
+ R = It(z, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3805
+ const _ = z.querySelector(`*[data-content="${v.id}"]`);
3806
+ h[h.length - 1].height = de(R.cut).top - c.top, Y(), _ != null && _.contains(R.cut) ? (y = Date.now(), R.cut.dataset.hutkey = y, D({ ...v, content: _.innerHTML })) : (h[h.length - 1].data.pop(), D(v));
3807
3807
  }
3808
3808
  else {
3809
- let g = [], k = [];
3809
+ let _ = [], k = [];
3810
3810
  v.children.some((w, H) => {
3811
3811
  const B = $t(w.__tag__, t), ue = de(B);
3812
3812
  if (u) {
@@ -3815,16 +3815,16 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3815
3815
  }
3816
3816
  if (ue.height + ue.top - c.top > h[h.length - 1].height) {
3817
3817
  if (E(B))
3818
- g.push(w), k = H < v.children.length - 1 ? v.children.slice(H + 1) : [];
3818
+ _.push(w), k = H < v.children.length - 1 ? v.children.slice(H + 1) : [];
3819
3819
  else if (J(B))
3820
3820
  k = v.children.slice(H);
3821
3821
  else {
3822
- R = Tt(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3822
+ R = It(B, c.top, h[h.length - 1].height, h.length % (a + n) >= a);
3823
3823
  const he = B.querySelector(`*[data-content="${w.id}"]`);
3824
3824
  if (B === R.targetEl)
3825
- g.push(w), k = H < v.children.length - 1 ? v.children.slice(H + 1) : [];
3825
+ _.push(w), k = H < v.children.length - 1 ? v.children.slice(H + 1) : [];
3826
3826
  else if (he && he.contains(R.cut))
3827
- u = Date.now(), R.cut.dataset.cutkey = u, w.content = he.innerHTML, g.push(w), k = [{ ...w, content: he.innerHTML }, ...H < v.children.length - 1 ? v.children.slice(H + 1) : []], h[h.length - 1].height = de(R.cut).top - c.top;
3827
+ u = Date.now(), R.cut.dataset.cutkey = u, w.content = he.innerHTML, _.push(w), k = [{ ...w, content: he.innerHTML }, ...H < v.children.length - 1 ? v.children.slice(H + 1) : []], h[h.length - 1].height = de(R.cut).top - c.top;
3828
3828
  else {
3829
3829
  if (!k.length) {
3830
3830
  let ce = { ...w };
@@ -3834,17 +3834,17 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3834
3834
  L != null && L.contains(R.cut) && (u = Date.now(), R.cut.dataset.cutkey = u, w.answerArea = L.innerHTML), w.chunk += 1;
3835
3835
  break;
3836
3836
  case at.art:
3837
- const $ = B.querySelector(`*[data-bart="${w.id}"]`), I = R.targetEl.dataset.block === we && R.targetEl.dataset.size ? R.targetEl : null, ee = B.querySelector(`*[data-aart="${w.id}"]`);
3837
+ const $ = B.querySelector(`*[data-bart="${w.id}"]`), T = R.targetEl.dataset.block === we && R.targetEl.dataset.size ? R.targetEl : null, ee = B.querySelector(`*[data-aart="${w.id}"]`);
3838
3838
  if ($ != null && $.contains(R.cut))
3839
3839
  u = Date.now(), R.cut.dataset.cutkey = u, w.beforeArt = $ == null ? void 0 : $.innerHTML, ce.beforeGuide = "", ce.afterArt = "", ce.endAnswerLen = -1, w.chunk += 1;
3840
- else if (I) {
3841
- const pe = parseInt(I.dataset.size);
3840
+ else if (T) {
3841
+ const pe = parseInt(T.dataset.size);
3842
3842
  if (!w.artBlock)
3843
3843
  if (w.beforeGuide && w.beforeGuide.length + (w.startAnswerLen ? 0 : 2) - w.startAnswerLen > pe) {
3844
3844
  const W = B.querySelector(`*[data-guide="${w.id}"]`), oe = de(W);
3845
3845
  if (console.log(W, oe, c), oe.height + oe.top - c.top > c.height) {
3846
- W.innerHTML = w.beforeGuide.split("").map((fe) => `<span>${fe}</span>`).join("");
3847
- const Ie = de(I).top + I.offsetHeight, Se = [...Array.from(W.children)].findIndex((fe) => de(fe).top > Ie);
3846
+ W.innerHTML = w.beforeGuide.split("").map((ge) => `<span>${ge}</span>`).join("");
3847
+ const Te = de(T).top + T.offsetHeight, Se = [...Array.from(W.children)].findIndex((ge) => de(ge).top > Te);
3848
3848
  ce.beforeGuide = w.beforeGuide.substring(0, Se), w.beforeGuide = w.beforeGuide.substring(Se);
3849
3849
  } else
3850
3850
  w.beforeGuide = "";
@@ -3855,15 +3855,15 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3855
3855
  ee != null && ee.contains(R.cut) ? (u = Date.now(), R.cut.dataset.cutkey = u, w.chunk += 1, w.beforeArt = "", w.beforeGuide = "", w.startAnswerLen = 1, w.endAnswerLen = -1, w.afterArt = ee.innerHTML) : R.targetEl === $ && (ce.endAnswerLen = -1, ce.beforeGuide = "", ce.afterArt = "", w.beforeArt = "", w.chunk += 1);
3856
3856
  break;
3857
3857
  }
3858
- B.contains(R.targetEl) && g.push(ce), u && (h[h.length - 1].height = de(R.cut).top - c.top);
3858
+ B.contains(R.targetEl) && _.push(ce), u && (h[h.length - 1].height = de(R.cut).top - c.top);
3859
3859
  }
3860
3860
  k = [w, ...H < v.children.length - 1 ? v.children.slice(H + 1) : []];
3861
3861
  }
3862
3862
  }
3863
3863
  return !0;
3864
3864
  } else
3865
- g.push(w);
3866
- }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = g, k.length ? (Y(), D({ ...v, isHidden: !0, children: k })) : (l([...h]), F++, D());
3865
+ _.push(w);
3866
+ }), h[h.length - 1].data[h[h.length - 1].data.length - 1].children = _, k.length ? (Y(), D({ ...v, isHidden: !0, children: k })) : (l([...h]), F++, D());
3867
3867
  }
3868
3868
  });
3869
3869
  };
@@ -3871,7 +3871,7 @@ const Cs = /* @__PURE__ */ re(ks, [["__scopeId", "data-v-90e967d8"]]), de = (e)
3871
3871
  }, Ot = window.CKEDITOR;
3872
3872
  Ot.disableAutoInline = !0;
3873
3873
  const ht = `dx${Math.random().toString(32).substring(2)}`;
3874
- function Is(e, t) {
3874
+ function Ts(e, t) {
3875
3875
  return Ot[e](ht, {
3876
3876
  filebrowserImageUploadUrl: `${t}ckeditor/uploadImg`,
3877
3877
  uploadUrl: `${t}ckeditor/uploadImg`
@@ -3895,7 +3895,7 @@ const Ls = { class: "flex-1 border border-gray4 rounded-lg px-2 py-1 base-proble
3895
3895
  return;
3896
3896
  }
3897
3897
  Ze(() => {
3898
- n.value = Is("inline", a), n.value && n.value.on("instanceReady", (u) => {
3898
+ n.value = Ts("inline", a), n.value && n.value.on("instanceReady", (u) => {
3899
3899
  n.value.setData(o.value);
3900
3900
  });
3901
3901
  });
@@ -4019,19 +4019,19 @@ const Ds = {
4019
4019
  }, ne = (L) => {
4020
4020
  F.value = L;
4021
4021
  }, R = () => {
4022
- const L = D.value, $ = L.left + L.width / 2, I = L.top + L.height / 2, ee = y.value.getBoundingClientRect() || {};
4023
- h.value = { x: $ + ee.left, y: I + ee.top }, y.value.addEventListener("mousemove", g), y.value.addEventListener("mouseleave", k), y.value.addEventListener("mouseup", k);
4024
- }, g = (L) => {
4022
+ const L = D.value, $ = L.left + L.width / 2, T = L.top + L.height / 2, ee = y.value.getBoundingClientRect() || {};
4023
+ h.value = { x: $ + ee.left, y: T + ee.top }, y.value.addEventListener("mousemove", _), y.value.addEventListener("mouseleave", k), y.value.addEventListener("mouseup", k);
4024
+ }, _ = (L) => {
4025
4025
  L.stopPropagation(), L.preventDefault();
4026
- const $ = L.clientX - h.value.x, I = h.value.y - L.clientY, ee = Math.atan2(I, $) / (Math.PI / 180);
4026
+ const $ = L.clientX - h.value.x, T = h.value.y - L.clientY, ee = Math.atan2(T, $) / (Math.PI / 180);
4027
4027
  i.value = { ...D.value, rotate: -parseInt(ee.toString()) };
4028
4028
  }, k = (L) => {
4029
- L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value), y.value.removeEventListener("mousemove", g), y.value.removeEventListener("mouseleave", k), y.value.removeEventListener("mouseup", k);
4029
+ L.stopPropagation(), L.preventDefault(), t("changeAbsImgItem", i.value), y.value.removeEventListener("mousemove", _), y.value.removeEventListener("mouseleave", k), y.value.removeEventListener("mouseup", k);
4030
4030
  }, w = (L, $) => {
4031
- var I;
4032
- L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((I = D.value) == null ? void 0 : I.key.split("-")[0]) === "img" ? y.value.addEventListener("mousemove", H) : y.value.addEventListener("mousemove", B), y.value.addEventListener("mouseleave", ue), y.value.addEventListener("mouseup", ue);
4031
+ var T;
4032
+ L.stopPropagation(), c.value = $, l.value = { x: L.clientX, y: L.clientY, ...D.value }, ((T = D.value) == null ? void 0 : T.key.split("-")[0]) === "img" ? y.value.addEventListener("mousemove", H) : y.value.addEventListener("mousemove", B), y.value.addEventListener("mouseleave", ue), y.value.addEventListener("mouseup", ue);
4033
4033
  }, H = (L) => {
4034
- const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, I = { ...D.value }, ee = $.x > $.y ? "width" : "height";
4034
+ const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, T = { ...D.value }, ee = $.x > $.y ? "width" : "height";
4035
4035
  [
4036
4036
  // 0
4037
4037
  () => {
@@ -4043,7 +4043,7 @@ const Ds = {
4043
4043
  height: l.value.height - $.y
4044
4044
  }[ee];
4045
4045
  i.value = {
4046
- ...I,
4046
+ ...T,
4047
4047
  width: W,
4048
4048
  height: oe,
4049
4049
  left: l.value.left - (W - l.value.width),
@@ -4054,7 +4054,7 @@ const Ds = {
4054
4054
  () => {
4055
4055
  const W = l.value.width * (1 - $.y / l.value.height), oe = l.value.height - $.y;
4056
4056
  i.value = {
4057
- ...I,
4057
+ ...T,
4058
4058
  width: W,
4059
4059
  height: oe,
4060
4060
  left: l.value.left - (W - l.value.width) / 2,
@@ -4068,7 +4068,7 @@ const Ds = {
4068
4068
  height: l.value.height - $.y
4069
4069
  }[ee];
4070
4070
  i.value = {
4071
- ...I,
4071
+ ...T,
4072
4072
  width: {
4073
4073
  width: l.value.width + $.x,
4074
4074
  height: l.value.width * (1 - $.y / l.value.height)
@@ -4081,7 +4081,7 @@ const Ds = {
4081
4081
  () => {
4082
4082
  const W = l.value.width - $.x, oe = l.value.height * (1 - $.x / l.value.width);
4083
4083
  i.value = {
4084
- ...I,
4084
+ ...T,
4085
4085
  width: W,
4086
4086
  height: oe,
4087
4087
  left: l.value.left - (W - l.value.width),
@@ -4092,7 +4092,7 @@ const Ds = {
4092
4092
  () => {
4093
4093
  const W = l.value.width + $.x, oe = l.value.height * (1 + $.x / l.value.width);
4094
4094
  i.value = {
4095
- ...I,
4095
+ ...T,
4096
4096
  width: W,
4097
4097
  height: oe,
4098
4098
  top: l.value.top - (oe - l.value.height) / 2
@@ -4108,7 +4108,7 @@ const Ds = {
4108
4108
  height: l.value.height + $.y
4109
4109
  }[ee];
4110
4110
  i.value = {
4111
- ...I,
4111
+ ...T,
4112
4112
  width: W,
4113
4113
  height: oe,
4114
4114
  left: l.value.left - (W - l.value.width)
@@ -4118,7 +4118,7 @@ const Ds = {
4118
4118
  () => {
4119
4119
  const W = l.value.width * (1 + $.y / l.value.height), oe = l.value.height + $.y;
4120
4120
  i.value = {
4121
- ...I,
4121
+ ...T,
4122
4122
  width: W,
4123
4123
  height: oe,
4124
4124
  left: l.value.left - (W - l.value.width) / 2
@@ -4134,53 +4134,53 @@ const Ds = {
4134
4134
  height: l.value.height + $.y
4135
4135
  }[ee];
4136
4136
  i.value = {
4137
- ...I,
4137
+ ...T,
4138
4138
  width: W,
4139
4139
  height: oe
4140
4140
  };
4141
4141
  }
4142
4142
  ][c.value]();
4143
4143
  }, B = (L) => {
4144
- const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, I = { ...D.value }, ee = [
4144
+ const $ = { x: L.clientX - l.value.x, y: L.clientY - l.value.y }, T = { ...D.value }, ee = [
4145
4145
  {
4146
- ...I,
4146
+ ...T,
4147
4147
  width: l.value.width - $.x,
4148
4148
  height: l.value.height - $.y,
4149
4149
  left: l.value.left + $.x,
4150
4150
  top: l.value.top + $.y
4151
4151
  },
4152
4152
  {
4153
- ...I,
4153
+ ...T,
4154
4154
  height: l.value.height - $.y,
4155
4155
  top: l.value.top + $.y
4156
4156
  },
4157
4157
  {
4158
- ...I,
4158
+ ...T,
4159
4159
  width: l.value.width + $.x,
4160
4160
  height: l.value.height - $.y,
4161
4161
  top: l.value.top + $.y
4162
4162
  },
4163
4163
  {
4164
- ...I,
4164
+ ...T,
4165
4165
  width: l.value.width - $.x,
4166
4166
  left: l.value.left + $.x
4167
4167
  },
4168
4168
  {
4169
- ...I,
4169
+ ...T,
4170
4170
  width: l.value.width + $.x
4171
4171
  },
4172
4172
  {
4173
- ...I,
4173
+ ...T,
4174
4174
  width: l.value.width - $.x,
4175
4175
  height: l.value.height + $.y,
4176
4176
  left: l.value.left + $.x
4177
4177
  },
4178
4178
  {
4179
- ...I,
4179
+ ...T,
4180
4180
  height: l.value.height + $.y
4181
4181
  },
4182
4182
  {
4183
- ...I,
4183
+ ...T,
4184
4184
  width: l.value.width + $.x,
4185
4185
  height: l.value.height + $.y
4186
4186
  }
@@ -4197,41 +4197,41 @@ const Ds = {
4197
4197
  t("changeAbsTxtItem", { ...D.value, content: L });
4198
4198
  }, ce = (L, $) => {
4199
4199
  var ee;
4200
- const I = document.body.querySelector(`.cke_editor_${ht}`);
4201
- !L && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe || I && window.getComputedStyle(I).display !== "none") || (Y.value = L == null ? void 0 : L.key, i.value = L ? { ...L } : null);
4200
+ const T = document.body.querySelector(`.cke_editor_${ht}`);
4201
+ !L && ((ee = ($ == null ? void 0 : $.target).dataset) != null && ee.safe || T && window.getComputedStyle(T).display !== "none") || (Y.value = L == null ? void 0 : L.key, i.value = L ? { ...L } : null);
4202
4202
  };
4203
4203
  return (L, $) => (s(), d(M, null, [
4204
- (s(!0), d(M, null, V(J.value, (I) => {
4205
- var ee, pe, W, oe, Ie, Se, fe;
4206
- return gt((s(), d("div", {
4207
- key: I.id,
4204
+ (s(!0), d(M, null, V(J.value, (T) => {
4205
+ var ee, pe, W, oe, Te, Se, ge;
4206
+ return ft((s(), d("div", {
4207
+ key: T.id,
4208
4208
  "data-safe": "true",
4209
- class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8" : "z-7"]),
4210
- style: G({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((W = v.value[I.key]) == null ? void 0 : W.top) || I.top, 0) + "px", width: (((oe = v.value[I.key]) == null ? void 0 : oe.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px", transform: `rotate(${((Se = v.value[I.key]) == null ? void 0 : Se.rotate) || I.rotate}deg)` }),
4211
- onMousedown: Le((_) => ce(I), ["stop"]),
4209
+ class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === T.key ? "z-8" : "z-7"]),
4210
+ style: G({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((W = v.value[T.key]) == null ? void 0 : W.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px", transform: `rotate(${((Se = v.value[T.key]) == null ? void 0 : Se.rotate) || T.rotate}deg)` }),
4211
+ onMousedown: Le((f) => ce(T), ["stop"]),
4212
4212
  "data-block": x(Ee)
4213
4213
  }, [
4214
- f("img", {
4215
- src: I.url
4214
+ g("img", {
4215
+ src: T.url
4216
4216
  }, null, 8, Ns),
4217
- ((fe = D.value) == null ? void 0 : fe.key) === I.key ? (s(), d(M, { key: 0 }, [
4218
- f("span", Bs, [
4217
+ ((ge = D.value) == null ? void 0 : ge.key) === T.key ? (s(), d(M, { key: 0 }, [
4218
+ g("span", Bs, [
4219
4219
  K(_e, {
4220
4220
  name: "close",
4221
4221
  width: 2,
4222
4222
  class: "cursor-pointer",
4223
- onClick: (_) => t("delAbsImgItem", I)
4223
+ onClick: (f) => t("delAbsImgItem", T)
4224
4224
  }, null, 8, ["onClick"])
4225
4225
  ]),
4226
- f("div", Os, [
4227
- (s(), d(M, null, V(8, (_, S) => f("div", {
4228
- key: _,
4226
+ g("div", Os, [
4227
+ (s(), d(M, null, V(8, (f, S) => g("div", {
4228
+ key: f,
4229
4229
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4230
4230
  style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
4231
4231
  onMousedown: Le((ye) => w(ye, S), ["stop"])
4232
4232
  }, null, 44, zs)), 64))
4233
4233
  ]),
4234
- f("span", {
4234
+ g("span", {
4235
4235
  class: "absolute flex items-center justify-center -right-20 w-12 h-12 rounded-full border border-current cursor-grab control_rotate",
4236
4236
  onMousedown: Le(R, ["stop"])
4237
4237
  }, [
@@ -4243,42 +4243,42 @@ const Ds = {
4243
4243
  ], 64)) : P("", !0)
4244
4244
  ], 46, As)), [
4245
4245
  [x(n), z],
4246
- [x(a), (_) => ce(null, _)]
4246
+ [x(a), (f) => ce(null, f)]
4247
4247
  ]);
4248
4248
  }), 128)),
4249
- (s(!0), d(M, null, V(E.value, (I) => {
4250
- var ee, pe, W, oe, Ie, Se, fe;
4251
- return gt((s(), d("div", {
4252
- key: I.id,
4249
+ (s(!0), d(M, null, V(E.value, (T) => {
4250
+ var ee, pe, W, oe, Te, Se, ge;
4251
+ return ft((s(), d("div", {
4252
+ key: T.id,
4253
4253
  disabled: F.value,
4254
4254
  "data-safe": "true",
4255
- class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === I.key ? "z-8 bg-white" : "z-7"]),
4256
- style: G({ left: Math.max(((pe = v.value[I.key]) == null ? void 0 : pe.left) || I.left, 0) + "px", top: Math.max(((W = v.value[I.key]) == null ? void 0 : W.top) || I.top, 0) + "px", width: (((oe = v.value[I.key]) == null ? void 0 : oe.width) || I.width) + "px", height: (((Ie = v.value[I.key]) == null ? void 0 : Ie.height) || I.height) + "px" }),
4257
- onMousedown: Le((_) => ce(I), ["stop"]),
4255
+ class: te(["absolute", ((ee = D.value) == null ? void 0 : ee.key) === T.key ? "z-8 bg-white" : "z-7"]),
4256
+ style: G({ left: Math.max(((pe = v.value[T.key]) == null ? void 0 : pe.left) || T.left, 0) + "px", top: Math.max(((W = v.value[T.key]) == null ? void 0 : W.top) || T.top, 0) + "px", width: (((oe = v.value[T.key]) == null ? void 0 : oe.width) || T.width) + "px", height: (((Te = v.value[T.key]) == null ? void 0 : Te.height) || T.height) + "px" }),
4257
+ onMousedown: Le((f) => ce(T), ["stop"]),
4258
4258
  "data-block": x(Ee)
4259
4259
  }, [
4260
4260
  (s(), U(Ms, {
4261
4261
  key: u.value,
4262
4262
  class: "border-0 relative z-4",
4263
- readonly: ((Se = D.value) == null ? void 0 : Se.key) !== I.key,
4264
- value: I.content,
4265
- name: I.id.toString(),
4263
+ readonly: ((Se = D.value) == null ? void 0 : Se.key) !== T.key,
4264
+ value: T.content,
4265
+ name: T.id.toString(),
4266
4266
  onChange: he,
4267
- onFocus: $[0] || ($[0] = (_) => ne(!0)),
4268
- onBlur: $[1] || ($[1] = (_) => ne(!1))
4267
+ onFocus: $[0] || ($[0] = (f) => ne(!0)),
4268
+ onBlur: $[1] || ($[1] = (f) => ne(!1))
4269
4269
  }, null, 8, ["readonly", "value", "name"])),
4270
- ((fe = D.value) == null ? void 0 : fe.key) === I.key ? (s(), d(M, { key: 0 }, [
4271
- f("span", Ws, [
4270
+ ((ge = D.value) == null ? void 0 : ge.key) === T.key ? (s(), d(M, { key: 0 }, [
4271
+ g("span", Ws, [
4272
4272
  K(_e, {
4273
4273
  name: "close",
4274
4274
  width: 2,
4275
4275
  class: "cursor-pointer",
4276
- onClick: (_) => t("delAbsTxtItem", I)
4276
+ onClick: (f) => t("delAbsTxtItem", T)
4277
4277
  }, null, 8, ["onClick"])
4278
4278
  ]),
4279
- f("div", Gs, [
4280
- (s(), d(M, null, V(8, (_, S) => f("div", {
4281
- key: _,
4279
+ g("div", Gs, [
4280
+ (s(), d(M, null, V(8, (f, S) => g("div", {
4281
+ key: f,
4282
4282
  class: "absolute w-4 h-4 border-2 border-current z-5 cursor-move",
4283
4283
  style: G({ ...r[S], transform: "translate(-50%, -50%)" }),
4284
4284
  onMousedown: (ye) => w(ye, S)
@@ -4287,7 +4287,7 @@ const Ds = {
4287
4287
  ], 64)) : P("", !0)
4288
4288
  ], 46, Rs)), [
4289
4289
  [x(n), z],
4290
- [x(a), (_) => ce(null, _)]
4290
+ [x(a), (f) => ce(null, f)]
4291
4291
  ]);
4292
4292
  }), 128))
4293
4293
  ], 64));
@@ -4316,32 +4316,32 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4316
4316
  setup(e, { emit: t }) {
4317
4317
  const o = e;
4318
4318
  Wt("ckeditorOrigin", o.ckeditorOrigin);
4319
- const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]), y = Q([]), O = Q([]), h = Q([]), F = A(() => o.data.map((_) => ({
4320
- ..._,
4319
+ const a = Q([]), n = Q([]), r = Q(2), l = Q(0), i = Q(0), c = Q(), u = Q([]), y = Q([]), O = Q([]), h = Q([]), F = A(() => o.data.map((f) => ({
4320
+ ...f,
4321
4321
  __tag__: xt(),
4322
- rawChildren: _.children,
4323
- children: _.children.map((S) => ({ ...S, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: xt() }))
4322
+ rawChildren: f.children,
4323
+ children: f.children.map((S) => ({ ...S, startAnswerLen: 0, endAnswerLen: 0, chunk: 0, __tag__: xt() }))
4324
4324
  })).flat()), Y = A(() => {
4325
- const _ = F.value[F.value.length - 1], S = _.rawChildren[_.rawChildren.length - 1];
4325
+ const f = F.value[F.value.length - 1], S = f.rawChildren[f.rawChildren.length - 1];
4326
4326
  return ne.value && [p.slove].includes(S == null ? void 0 : S.problemType) && S.id;
4327
4327
  }), J = A(() => {
4328
- var _;
4329
- return o.layout.bindFlag && !!((_ = Oe.find((S) => S.code === o.layout.paper)) != null && _.isMultCol);
4330
- }), E = A(() => 10), D = A(() => 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), R = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }), g = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), k = A(() => b[o.layout.paper].width - g.value.left - g.value.right), w = A(() => b[o.layout.paper].height - g.value.top - g.value.bottom), H = A(() => (k.value - (i.value ? i.value + pe(0) : 0) + pe(0)) / o.layout.column - pe(0)), B = A(() => ({
4328
+ var f;
4329
+ return o.layout.bindFlag && !!((f = Oe.find((S) => S.code === o.layout.paper)) != null && f.isMultCol);
4330
+ }), E = A(() => o.isFinal ? 0 : 10), D = A(() => o.isFinal ? 10 : 0), v = A(() => Math.floor(a.value.length / (o.layout.column + o.layout.backColumn)) * 2 + Math.ceil(a.value.length % (o.layout.column + o.layout.backColumn) / o.layout.column) || r.value || 1), z = A(() => Math.ceil(v.value / 2) * 2), ne = A(() => ["sheet", "sheetCard"].includes(o.layout.mode)), R = A(() => ne.value ? ke : { top: 0, right: 0, bottom: 0, left: 0 }), _ = A(() => typeof o.layout.padding == "number" ? { left: o.layout.padding, top: o.layout.padding, right: o.layout.padding, bottom: o.layout.padding } : o.layout.padding || rt[o.layout.mode][o.layout.paper]), k = A(() => b[o.layout.paper].width - _.value.left - _.value.right), w = A(() => b[o.layout.paper].height - _.value.top - _.value.bottom), H = A(() => (k.value - (i.value ? i.value + pe(0) : 0) + pe(0)) / o.layout.column - pe(0)), B = A(() => ({
4331
4331
  width: `${b[o.layout.paper].width}px`,
4332
4332
  height: `${(b[o.layout.paper].height + E.value) * z.value - E.value}px`
4333
4333
  })), ue = A(() => ({
4334
4334
  width: `${b[o.layout.paper].width}px`,
4335
4335
  height: `${b[o.layout.paper].height}px`,
4336
- padding: `${g.value.top}px ${g.value.right}px ${g.value.bottom}px ${g.value.left}px`,
4336
+ padding: `${_.value.top}px ${_.value.right}px ${_.value.bottom}px ${_.value.left}px`,
4337
4337
  marginBottom: `${E.value}px`
4338
4338
  })), he = A(() => {
4339
4339
  var S;
4340
- const _ = (S = Oe.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : S.isMultCol;
4340
+ const f = (S = Oe.find((ye) => ye.code === o.layout.paper)) == null ? void 0 : S.isMultCol;
4341
4341
  return {
4342
- left: `${g.value.left + (i.value ? i.value + pe(0) : 0)}px`,
4343
- top: `${g.value.top}px`,
4344
- width: _ ? `${H.value}px` : `${k.value}px`
4342
+ left: `${_.value.left + (i.value ? i.value + pe(0) : 0)}px`,
4343
+ top: `${_.value.top}px`,
4344
+ width: f ? `${H.value}px` : `${k.value}px`
4345
4345
  };
4346
4346
  });
4347
4347
  De(() => [JSON.stringify({ ...o.layout, showAnswer: !1, secrecyFlag: !1, redFlag: !1, sloganFlag: !1, simpleScoreBarFlag: !1, minusFlag: !1, fillScoreFlag: !1 }), JSON.stringify(o.fontConfig), JSON.stringify(o.info), JSON.stringify(o.data)].join(""), () => {
@@ -4351,29 +4351,29 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4351
4351
  }, { immediate: !0 }), De(() => J.value, () => {
4352
4352
  i.value = J.value ? 100 : 0;
4353
4353
  }, { immediate: !0 });
4354
- const ce = (_) => _ % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (_, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + _, $ = (_) => {
4355
- const S = _ % (o.layout.column + o.layout.backColumn);
4354
+ const ce = (f) => f % (o.layout.column + o.layout.backColumn) >= o.layout.column ? o.layout.backColumn : o.layout.column, L = (f, S) => Math.floor(S / 2) * (o.layout.column + o.layout.backColumn) + S % 2 * o.layout.column + f, $ = (f) => {
4355
+ const S = f % (o.layout.column + o.layout.backColumn);
4356
4356
  return S >= o.layout.column ? S - o.layout.column : S;
4357
- }, I = (_, S) => {
4358
- _ ? u.value[S] = _ : u.value.splice(S, 1);
4359
- }, ee = (_, S) => {
4360
- _ ? y.value[S] = _ : y.value.splice(S, 1);
4361
- }, pe = (_) => Et[o.layout.mode][o.layout.paper][ce(_)] || 0, W = (_, S = !1) => (k.value - (i.value ? i.value + pe(_) : 0) + pe(_)) / ce(_) - pe(_) - R.value.left - R.value.right + (S ? R.value.left + R.value.right : 0), oe = (_, S) => {
4357
+ }, T = (f, S) => {
4358
+ f ? u.value[S] = f : u.value.splice(S, 1);
4359
+ }, ee = (f, S) => {
4360
+ f ? y.value[S] = f : y.value.splice(S, 1);
4361
+ }, pe = (f) => Et[o.layout.mode][o.layout.paper][ce(f)] || 0, W = (f, S = !1) => (k.value - (i.value ? i.value + pe(f) : 0) + pe(f)) / ce(f) - pe(f) - R.value.left - R.value.right + (S ? R.value.left + R.value.right : 0), oe = (f, S) => {
4362
4362
  var j, se;
4363
- const ye = _ % (o.layout.column + o.layout.backColumn) ? 0 : ((j = O.value[Math.min(S, 1)]) == null ? void 0 : j.offsetHeight) || 0;
4363
+ const ye = f % (o.layout.column + o.layout.backColumn) ? 0 : ((j = O.value[Math.min(S, 1)]) == null ? void 0 : j.offsetHeight) || 0;
4364
4364
  return {
4365
- left: `${g.value.left + (S % 2 ? 0 : i.value ? i.value + pe(_) : 0) + R.value.left + $(_) * (W(_) + pe(_) + R.value.left + R.value.right)}px`,
4366
- top: `${ye + g.value.top + (!S && !_ ? 0 : R.value.top)}px`,
4367
- width: `${W(_)}px`,
4368
- height: `${w.value - ye - (!S && !_ ? 0 : R.value.top) - R.value.bottom}px`,
4369
- contentHeight: `${(se = a.value[_]) == null ? void 0 : se.height}px`
4365
+ left: `${_.value.left + (S % 2 ? 0 : i.value ? i.value + pe(f) : 0) + R.value.left + $(f) * (W(f) + pe(f) + R.value.left + R.value.right)}px`,
4366
+ top: `${ye + _.value.top + (!S && !f ? 0 : R.value.top)}px`,
4367
+ width: `${W(f)}px`,
4368
+ height: `${w.value - ye - (!S && !f ? 0 : R.value.top) - R.value.bottom}px`,
4369
+ contentHeight: `${(se = a.value[f]) == null ? void 0 : se.height}px`
4370
4370
  };
4371
- }, Ie = (_, S = !1) => {
4372
- n.value = _.map((ye) => ({ ...ye })), S && (a.value = [..._], console.log(_), Ze(() => {
4371
+ }, Te = (f, S = !1) => {
4372
+ n.value = f.map((ye) => ({ ...ye })), S && (a.value = [...f], Ze(() => {
4373
4373
  r.value = Math.ceil(a.value.length / o.layout.column), n.value = [], y.value.forEach((ye, j) => {
4374
4374
  var se, Ce;
4375
4375
  !ye || !ye.col || ((se = a.value[j]) != null && se.top ? ye.col.style.marginTop = `${(Ce = a.value[j]) == null ? void 0 : Ce.top}px` : ye.col.style.marginTop = "");
4376
- }), setTimeout(() => {
4376
+ }), o.isFinal && setTimeout(() => {
4377
4377
  const ye = ys({
4378
4378
  config: {
4379
4379
  ...o.info,
@@ -4391,36 +4391,36 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4391
4391
  }, 500);
4392
4392
  }));
4393
4393
  }, Se = () => {
4394
- Ts({
4394
+ Is({
4395
4395
  el: c.value,
4396
4396
  data: F.value,
4397
4397
  column: o.layout.column,
4398
4398
  backColumn: o.layout.backColumn || o.layout.column,
4399
4399
  getColSize: oe,
4400
- change: Ie
4400
+ change: Te
4401
4401
  });
4402
- }, fe = (_ = { type: q.page, value: {} }) => {
4403
- t("toggleActive", _);
4402
+ }, ge = (f = { type: q.page, value: {} }) => {
4403
+ t("toggleActive", f);
4404
4404
  };
4405
- return (_, S) => {
4405
+ return (f, S) => {
4406
4406
  var ye;
4407
4407
  return s(), d(M, null, [
4408
- _.readonly ? P("", !0) : (s(), U(Cs, {
4408
+ f.readonly ? P("", !0) : (s(), U(Cs, {
4409
4409
  key: 0,
4410
4410
  ColList: a.value,
4411
4411
  ColDom: y.value.map((j) => j.col),
4412
- ImgData: _.imgData,
4413
- TxtData: _.txtData,
4412
+ ImgData: f.imgData,
4413
+ TxtData: f.txtData,
4414
4414
  onDelAbsImgItem: S[0] || (S[0] = (j) => t("delAbsImgItem", j)),
4415
4415
  onDelAbsTxtItem: S[1] || (S[1] = (j) => t("delAbsTxtItem", j)),
4416
4416
  onChangeLayoutStatus: S[2] || (S[2] = (j) => t("changeLayoutStatus", j))
4417
4417
  }, null, 8, ["ColList", "ColDom", "ImgData", "TxtData"])),
4418
- f("div", {
4418
+ g("div", {
4419
4419
  class: "flex-1 overflow-auto relative z-1",
4420
4420
  id: "alit-layout",
4421
- onClick: S[14] || (S[14] = (j) => fe())
4421
+ onClick: S[14] || (S[14] = (j) => ge())
4422
4422
  }, [
4423
- f("div", {
4423
+ g("div", {
4424
4424
  class: "absolute h-0 invisible overflow-hidden font-base text-base pointer-events-none -z-1",
4425
4425
  ref_key: "rawDom",
4426
4426
  ref: c
@@ -4431,7 +4431,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4431
4431
  item: j,
4432
4432
  showColBorder: ne.value,
4433
4433
  isFirst: !se && n.value.length === 1,
4434
- layout: _.layout
4434
+ layout: f.layout
4435
4435
  }, null, 8, ["item", "showColBorder", "isFirst", "layout"])),
4436
4436
  ne.value ? (s(), d("div", {
4437
4437
  key: 1,
@@ -4440,28 +4440,28 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4440
4440
  (s(), U(Ge, {
4441
4441
  data: j,
4442
4442
  key: n.value.length,
4443
- layout: _.layout,
4444
- target: _.target,
4443
+ layout: f.layout,
4444
+ target: f.target,
4445
4445
  noPortrait: "",
4446
4446
  width: W(n.value.length - 1) - 10
4447
4447
  }, null, 8, ["data", "layout", "target", "width"]))
4448
4448
  ], 2)) : (s(), U(Ge, {
4449
4449
  data: j,
4450
4450
  key: n.value.length,
4451
- layout: _.layout,
4452
- target: _.target,
4451
+ layout: f.layout,
4452
+ target: f.target,
4453
4453
  width: W(n.value.length - 1)
4454
4454
  }, null, 8, ["data", "layout", "target", "width"]))
4455
4455
  ], 64))), 256)) : P("", !0)
4456
4456
  ], 512),
4457
- f("div", {
4458
- class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", _.layout.redFlag && "red_mode", _.readonly && "pointer-events-none"]),
4457
+ g("div", {
4458
+ class: te(["mx-auto relative overflow-hidden flex-shrink-0 font-base text-base __layout__", f.layout.redFlag && "red_mode", f.readonly && "pointer-events-none"]),
4459
4459
  style: G(B.value)
4460
4460
  }, [
4461
4461
  K(Qs, {
4462
- imgData: _.imgData,
4463
- txtData: _.txtData,
4464
- layout: _.layout,
4462
+ imgData: f.imgData,
4463
+ txtData: f.txtData,
4464
+ layout: f.layout,
4465
4465
  pageMargin: D.value,
4466
4466
  onChangeAbsImgItem: S[3] || (S[3] = (j) => t("changeAbsImgItem", j)),
4467
4467
  onDelAbsImgItem: S[4] || (S[4] = (j) => t("delAbsImgItem", j)),
@@ -4479,23 +4479,23 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4479
4479
  key: j,
4480
4480
  class: "bg-white relative flex justify-between overflow-hidden box-border",
4481
4481
  ref_for: !0,
4482
- ref: (Ce) => I(Ce, se),
4482
+ ref: (Ce) => T(Ce, se),
4483
4483
  style: G(ue.value)
4484
4484
  }, [
4485
4485
  se < v.value ? (s(), d(M, { key: 0 }, [
4486
4486
  K(wo, {
4487
- layout: _.layout,
4487
+ layout: f.layout,
4488
4488
  currentPage: se,
4489
4489
  totalPage: v.value,
4490
- columnContentWidth: W(se % 2 ? _.layout.column : 0, !0),
4491
- columnMargin: pe(se % 2 ? _.layout.column : 0),
4490
+ columnContentWidth: W(se % 2 ? f.layout.column : 0, !0),
4491
+ columnMargin: pe(se % 2 ? f.layout.column : 0),
4492
4492
  bindWidth: i.value,
4493
- padding: g.value
4493
+ padding: _.value
4494
4494
  }, null, 8, ["layout", "currentPage", "totalPage", "columnContentWidth", "columnMargin", "bindWidth", "padding"]),
4495
- _.layout.sloganFlag ? (s(), U($o, {
4495
+ f.layout.sloganFlag ? (s(), U($o, {
4496
4496
  key: 0,
4497
- info: _.info,
4498
- layout: _.layout,
4497
+ info: f.info,
4498
+ layout: f.layout,
4499
4499
  onChange: S[7] || (S[7] = (Ce) => t("changeInfo", Ce))
4500
4500
  }, null, 8, ["info", "layout"])) : P("", !0),
4501
4501
  K(Ja, {
@@ -4516,87 +4516,87 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4516
4516
  style: G(he.value)
4517
4517
  }, [
4518
4518
  K(Mo, {
4519
- layout: _.layout,
4520
- code: _.info.textCode
4519
+ layout: f.layout,
4520
+ code: f.info.textCode
4521
4521
  }, null, 8, ["layout", "code"]),
4522
4522
  K(ta, {
4523
- info: _.info,
4524
- layout: _.layout,
4525
- fontConfig: _.fontConfig,
4526
- data: _.data,
4523
+ info: f.info,
4524
+ layout: f.layout,
4525
+ fontConfig: f.fontConfig,
4526
+ data: f.data,
4527
4527
  onChange: S[8] || (S[8] = (Ce) => t("changeInfo", Ce))
4528
4528
  }, null, 8, ["info", "layout", "fontConfig", "data"]),
4529
4529
  K(ka, {
4530
- layout: _.layout,
4531
- info: _.info,
4530
+ layout: f.layout,
4531
+ info: f.info,
4532
4532
  isBindFlag: J.value,
4533
4533
  onChange: S[9] || (S[9] = (Ce) => t("changeExtentInfo", Ce))
4534
4534
  }, null, 8, ["layout", "info", "isBindFlag"]),
4535
4535
  K(Ba, {
4536
- layout: _.layout,
4536
+ layout: f.layout,
4537
4537
  isBindFlag: J.value
4538
4538
  }, null, 8, ["layout", "isBindFlag"]),
4539
4539
  se ? P("", !0) : (s(), U(Ya, {
4540
4540
  key: 0,
4541
- layout: _.layout,
4542
- data: _.data
4541
+ layout: f.layout,
4542
+ data: f.data
4543
4543
  }, null, 8, ["layout", "data"])),
4544
- _.layout.writeScoreFlag && !se ? (s(), U(_l, {
4544
+ f.layout.writeScoreFlag && !se ? (s(), U(_l, {
4545
4545
  key: 1,
4546
- info: _.info,
4547
- layout: _.layout
4546
+ info: f.info,
4547
+ layout: f.layout
4548
4548
  }, null, 8, ["info", "layout"])) : P("", !0)
4549
4549
  ], 6)) : P("", !0),
4550
- (s(!0), d(M, null, V(se % 2 ? _.layout.backColumn : _.layout.column, (Ce, Me) => (s(), U(Qa, {
4550
+ (s(!0), d(M, null, V(se % 2 ? f.layout.backColumn : f.layout.column, (Ce, Me) => (s(), U(Qa, {
4551
4551
  ref_for: !0,
4552
4552
  ref: (We) => ee(We, L(Me, se)),
4553
4553
  styleInfo: oe(L(Me, se), se),
4554
- column: _.layout.column,
4554
+ column: f.layout.column,
4555
4555
  currentColumn: L(Me, se),
4556
4556
  showColBorder: ne.value
4557
4557
  }, {
4558
- default: It(() => {
4558
+ default: Tt(() => {
4559
4559
  var We;
4560
4560
  return [
4561
- (s(!0), d(M, null, V(((We = a.value[L(Me, se)]) == null ? void 0 : We.data) || [], (ge, zt) => {
4561
+ (s(!0), d(M, null, V(((We = a.value[L(Me, se)]) == null ? void 0 : We.data) || [], (fe, zt) => {
4562
4562
  var pt;
4563
4563
  return s(), d(M, null, [
4564
- ge.isHidden ? P("", !0) : (s(), U(Ct, {
4564
+ fe.isHidden ? P("", !0) : (s(), U(Ct, {
4565
4565
  key: 0,
4566
- item: ge,
4566
+ item: fe,
4567
4567
  showColBorder: ne.value,
4568
4568
  isFirst: !se && !Me && !zt,
4569
- layout: _.layout,
4570
- isActive: ((pt = _.target.value) == null ? void 0 : pt.id) === ge.id,
4571
- onClick: (xe) => fe({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }),
4572
- onDbclick: (xe) => t("dbHeadLineClick", ge)
4569
+ layout: f.layout,
4570
+ isActive: ((pt = f.target.value) == null ? void 0 : pt.id) === fe.id,
4571
+ onClick: (xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }),
4572
+ onDbclick: (xe) => t("dbHeadLineClick", fe)
4573
4573
  }, null, 8, ["item", "showColBorder", "isFirst", "layout", "isActive", "onClick", "onDbclick"])),
4574
4574
  ne.value ? (s(), d("div", {
4575
4575
  key: 1,
4576
- class: te([!ge.children.length && ge.problemType && "p-1 min-h-[2rem]", _.target.type === x(q).headline && _.target.value.id === ge.id && "active_headline"]),
4577
- onClick: Le((xe) => fe({ type: ge.problemType ? x(q).headline : x(q).headlineNotarea, value: ge }), ["stop"]),
4578
- onDblclick: (xe) => t("dbHeadLineClick", ge)
4576
+ class: te([!fe.children.length && fe.problemType && "p-1 min-h-[2rem]", f.target.type === x(q).headline && f.target.value.id === fe.id && "active_headline"]),
4577
+ onClick: Le((xe) => ge({ type: fe.problemType ? x(q).headline : x(q).headlineNotarea, value: fe }), ["stop"]),
4578
+ onDblclick: (xe) => t("dbHeadLineClick", fe)
4579
4579
  }, [
4580
4580
  K(Ge, {
4581
- data: ge,
4582
- layout: _.layout,
4583
- target: _.target,
4581
+ data: fe,
4582
+ layout: f.layout,
4583
+ target: f.target,
4584
4584
  width: W(L(Me, se)) - 10,
4585
- onClick: S[10] || (S[10] = (xe) => fe({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
4585
+ onClick: S[10] || (S[10] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
4586
4586
  onDbclick: S[11] || (S[11] = (xe) => t("dbProblemClick", xe))
4587
4587
  }, null, 8, ["data", "layout", "target", "width"]),
4588
- ge.children.length && ge.children[ge.children.length - 1].id === Y.value ? (s(), d("div", {
4588
+ fe.children.length && fe.children[fe.children.length - 1].id === Y.value ? (s(), d("div", {
4589
4589
  key: 0,
4590
4590
  class: "border-t",
4591
4591
  "data-block": x(Ee)
4592
4592
  }, null, 8, Xs)) : P("", !0)
4593
4593
  ], 42, js)) : (s(), U(Ge, {
4594
4594
  key: 2,
4595
- data: ge,
4596
- layout: _.layout,
4597
- target: _.target,
4595
+ data: fe,
4596
+ layout: f.layout,
4597
+ target: f.target,
4598
4598
  width: W(L(Me, se)),
4599
- onClick: S[12] || (S[12] = (xe) => fe({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
4599
+ onClick: S[12] || (S[12] = (xe) => ge({ type: xe.problemType ? x(q).problem : x(q).problemNotarea, value: xe })),
4600
4600
  onDbclick: S[13] || (S[13] = (xe) => t("dbProblemClick", xe))
4601
4601
  }, null, 8, ["data", "layout", "target", "width"]))
4602
4602
  ], 64);
@@ -4615,7 +4615,7 @@ const Qs = /* @__PURE__ */ re(qs, [["__scopeId", "data-v-09e89b79"]]), Us = ["vi
4615
4615
  };
4616
4616
  }
4617
4617
  });
4618
- const ei = /* @__PURE__ */ re(Vs, [["__scopeId", "data-v-3aab0715"]]);
4618
+ const ei = /* @__PURE__ */ re(Vs, [["__scopeId", "data-v-4825ba41"]]);
4619
4619
  export {
4620
4620
  Js as Config,
4621
4621
  ei as default