@yungu-fed/question-editor 0.3.2 → 0.4.0

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.js CHANGED
@@ -6905,11 +6905,11 @@ var ps = {
6905
6905
  text: ""
6906
6906
  };
6907
6907
  function ms(e, t) {
6908
- As(e, t);
6908
+ js(e, t);
6909
6909
  var n = t.elements.filter(function (e) {
6910
6910
  return e.type !== "richText";
6911
6911
  });
6912
- return Ns("elementAnswers", e.items.length, n.length), Ns("children", e.children.length, t.children.length), {
6912
+ return Ps("elementAnswers", e.items.length, n.length), Ps("children", e.children.length, t.children.length), {
6913
6913
  children: e.children.map(function (e, n) {
6914
6914
  return ms(e, t.children[n]);
6915
6915
  }),
@@ -6922,11 +6922,11 @@ function ms(e, t) {
6922
6922
  };
6923
6923
  }
6924
6924
  function hs(e, t) {
6925
- As(e, t);
6925
+ js(e, t);
6926
6926
  var n = t.elements.filter(function (e) {
6927
6927
  return e.type !== "richText";
6928
6928
  });
6929
- return Ns("elementAnswers", e.elementAnswers.length, n.length), Ns("children", e.children.length, t.children.length), {
6929
+ return Ps("elementAnswers", e.elementAnswers.length, n.length), Ps("children", e.children.length, t.children.length), {
6930
6930
  children: e.children.map(function (e, n) {
6931
6931
  return hs(e, t.children[n]);
6932
6932
  }),
@@ -6939,14 +6939,14 @@ function hs(e, t) {
6939
6939
  };
6940
6940
  }
6941
6941
  function gs(e, t) {
6942
- switch (js(e.type, t.type), e.type) {
6942
+ switch (Ms(e.type, t.type), e.type) {
6943
6943
  case "fill":
6944
- return Ms(t, "fill"), {
6945
- answers: Ss(t, e.answers),
6944
+ return Ns(t, "fill"), {
6945
+ answers: Ss(t.blanks, e.answers),
6946
6946
  type: e.type
6947
6947
  };
6948
6948
  case "inlineFill":
6949
- return Ms(t, "inlineFill"), {
6949
+ return Ns(t, "inlineFill"), {
6950
6950
  answers: Cs(t, e.answers),
6951
6951
  type: e.type
6952
6952
  };
@@ -7008,15 +7008,15 @@ function vs(e) {
7008
7008
  }
7009
7009
  }
7010
7010
  function ys(e, t) {
7011
- switch (js(e.type, t.type), e.type) {
7011
+ switch (Ms(e.type, t.type), e.type) {
7012
7012
  case "fill":
7013
- return {
7014
- answers: Es(e.answers),
7013
+ return Ns(t, "fill"), {
7014
+ answers: Ds(t.blanks, e.answers),
7015
7015
  type: e.type
7016
7016
  };
7017
7017
  case "inlineFill":
7018
- return Ms(t, "inlineFill"), {
7019
- answers: Ds(t, e.answers),
7018
+ return Ns(t, "inlineFill"), {
7019
+ answers: Os(t, e.answers),
7020
7020
  type: e.type
7021
7021
  };
7022
7022
  default:
@@ -7048,7 +7048,7 @@ function bs(e) {
7048
7048
  case "lineConnect":
7049
7049
  case "matching":
7050
7050
  return {
7051
- connections: Os(e.answers),
7051
+ connections: ks(e.answers),
7052
7052
  type: e.type
7053
7053
  };
7054
7054
  default:
@@ -7075,21 +7075,18 @@ function xs(e) {
7075
7075
  }
7076
7076
  }
7077
7077
  function Ss(e, t) {
7078
- return k(e.answers, e.blanks).map(function (e) {
7078
+ return e.map(function (e) {
7079
7079
  var n;
7080
7080
  return {
7081
- answerPools: [ks((n = e.blankIds.map(function (e) {
7082
- var n;
7083
- return (n = t[e]) == null ? "" : n;
7084
- }).find(Boolean)) == null ? "" : n)],
7085
- blankIds: _toConsumableArray(e.blankIds)
7081
+ blankId: e,
7082
+ content: As((n = t[e]) == null ? "" : n)
7086
7083
  };
7087
7084
  });
7088
7085
  }
7089
7086
  function Cs(e, t) {
7090
7087
  return e.blanks.map(function (n) {
7091
7088
  return {
7092
- answerPools: [ks(ws(e, n, t[n]))],
7089
+ answerPools: [As(ws(e, n, t[n]))],
7093
7090
  blankIds: [n]
7094
7091
  };
7095
7092
  });
@@ -7119,6 +7116,15 @@ function Es(e) {
7119
7116
  }, {});
7120
7117
  }
7121
7118
  function Ds(e, t) {
7119
+ var n = t.reduce(function (e, t) {
7120
+ return e.has(t.blankId) || e.set(t.blankId, t), e;
7121
+ }, new Map());
7122
+ return e.reduce(function (e, t) {
7123
+ var r, i;
7124
+ return C(C({}, e), {}, _defineProperty({}, t, (r = (i = n.get(t)) == null ? void 0 : i.content.text) == null ? "" : r));
7125
+ }, {});
7126
+ }
7127
+ function Os(e, t) {
7122
7128
  return Object.entries(Es(t)).reduce(function (t, _ref103) {
7123
7129
  var _ref104 = _slicedToArray(_ref103, 2),
7124
7130
  n = _ref104[0],
@@ -7139,107 +7145,107 @@ function Ds(e, t) {
7139
7145
  return C(C({}, t), {}, _defineProperty({}, n, c));
7140
7146
  }, {});
7141
7147
  }
7142
- function Os(e) {
7148
+ function ks(e) {
7143
7149
  return Object.keys(e).reduce(function (t, n) {
7144
7150
  return C(C({}, t), {}, _defineProperty({}, n, _toConsumableArray(e[n])));
7145
7151
  }, {});
7146
7152
  }
7147
- function ks(e) {
7153
+ function As(e) {
7148
7154
  return e.length === 0 ? ps : {
7149
7155
  html: e,
7150
7156
  json: [],
7151
7157
  text: e
7152
7158
  };
7153
7159
  }
7154
- function As(e, t) {
7160
+ function js(e, t) {
7155
7161
  if (e.id !== t.id || e.questionTypeKey !== t.questionTypeKey || e.version !== t.version) throw Error("QuestionPlayer response identity mismatch: questionId=".concat(String(t.id), ", responseId=").concat(String(e.id), ", questionTypeKey=").concat(String(t.questionTypeKey), ", responseQuestionTypeKey=").concat(String(e.questionTypeKey), ", questionVersion=").concat(t.version, ", responseVersion=").concat(e.version));
7156
7162
  }
7157
- function js(e, t) {
7163
+ function Ms(e, t) {
7158
7164
  if (e !== t) throw Error("QuestionPlayer response element mismatch: expected=".concat(t, ", actual=").concat(e));
7159
7165
  }
7160
- function Ms(e, t) {
7166
+ function Ns(e, t) {
7161
7167
  if (e.type !== t) throw Error("QuestionPlayer content element mismatch: expected=".concat(t, ", actual=").concat(e.type));
7162
7168
  }
7163
- function Ns(e, t, n) {
7169
+ function Ps(e, t, n) {
7164
7170
  if (t !== n) throw Error("QuestionPlayer response ".concat(e, " length mismatch: expected=").concat(n, ", actual=").concat(t));
7165
7171
  }
7166
- function Ps(e, t) {
7172
+ function Fs(e, t) {
7167
7173
  var n = us(e, t);
7168
- return ms(Fs(n, t), n);
7174
+ return ms(Is(n, t), n);
7169
7175
  }
7170
- function Fs(e, t) {
7176
+ function Is(e, t) {
7171
7177
  var n = Yi(t, e.questionTypeKey),
7172
7178
  r = n ? Rt(n) : !1;
7173
7179
  return {
7174
7180
  questionTypeKey: e.questionTypeKey,
7175
7181
  children: e.children.map(function (e) {
7176
- return Fs(e, t);
7182
+ return Is(e, t);
7177
7183
  }),
7178
7184
  id: e.id,
7179
7185
  items: !n || r ? [] : n.elements.reduce(function (t, n, r) {
7180
- var i = nc(n, Yt(e, r, n));
7186
+ var i = rc(n, Yt(e, r, n));
7181
7187
  return i ? [].concat(_toConsumableArray(t), [i]) : t;
7182
7188
  }, []),
7183
7189
  version: e.version
7184
7190
  };
7185
7191
  }
7186
- function Is(e, t) {
7192
+ function Ls(e, t) {
7187
7193
  var n;
7188
7194
  return (n = V(e, t, "choice")) == null ? {
7189
7195
  selectedOptionIds: [],
7190
7196
  type: "choice"
7191
7197
  } : n;
7192
7198
  }
7193
- function Ls(e, t, n) {
7199
+ function Rs(e, t, n) {
7194
7200
  var r;
7195
7201
  return (r = V(e, t, "fill")) == null ? {
7196
- answers: hc(n),
7202
+ answers: gc(n),
7197
7203
  type: "fill"
7198
7204
  } : r;
7199
7205
  }
7200
- function Rs(e, t, n, r) {
7206
+ function zs(e, t, n, r) {
7201
7207
  var i;
7202
7208
  return (i = V(e, t, "inlineFill")) == null ? {
7203
- answers: gc(n, r),
7209
+ answers: _c(n, r),
7204
7210
  type: "inlineFill"
7205
7211
  } : i;
7206
7212
  }
7207
- function zs(e, t, n) {
7213
+ function Bs(e, t, n) {
7208
7214
  var r;
7209
7215
  return (r = V(e, t, "wordBuilder")) == null ? {
7210
- answers: hc(n),
7216
+ answers: gc(n),
7211
7217
  type: "wordBuilder"
7212
7218
  } : r;
7213
7219
  }
7214
- function Bs(e, t) {
7220
+ function Vs(e, t) {
7215
7221
  var n;
7216
7222
  return (n = V(e, t, "judgement")) == null ? {
7217
7223
  selectedValues: [],
7218
7224
  type: "judgement"
7219
7225
  } : n;
7220
7226
  }
7221
- function Vs(e, t) {
7227
+ function Hs(e, t) {
7222
7228
  var n;
7223
7229
  return (n = V(e, t, "classification")) == null ? {
7224
7230
  placements: {},
7225
7231
  type: "classification"
7226
7232
  } : n;
7227
7233
  }
7228
- function Hs(e, t) {
7234
+ function Us(e, t) {
7229
7235
  var n;
7230
7236
  return (n = V(e, t, "lineConnect")) == null ? {
7231
7237
  connections: {},
7232
7238
  type: "lineConnect"
7233
7239
  } : n;
7234
7240
  }
7235
- function Us(e, t) {
7241
+ function Ws(e, t) {
7236
7242
  var n;
7237
7243
  return (n = V(e, t, "matching")) == null ? {
7238
7244
  connections: {},
7239
7245
  type: "matching"
7240
7246
  } : n;
7241
7247
  }
7242
- function Ws(e, t, n) {
7248
+ function Gs(e, t, n) {
7243
7249
  var r;
7244
7250
  return (r = V(e, t, "ordering")) == null ? {
7245
7251
  orderedOptionIds: n.sortOptions.map(function (e) {
@@ -7248,137 +7254,137 @@ function Ws(e, t, n) {
7248
7254
  type: "ordering"
7249
7255
  } : r;
7250
7256
  }
7251
- function Gs(e, t) {
7257
+ function Ks(e, t) {
7252
7258
  var n;
7253
7259
  return (n = V(e, t, "textMarker")) == null ? {
7254
7260
  selectedMarkers: [],
7255
7261
  type: "textMarker"
7256
7262
  } : n;
7257
7263
  }
7258
- function Ks(e, t) {
7264
+ function qs(e, t) {
7259
7265
  var n;
7260
7266
  return (n = V(e, t, "textResponse")) == null ? {
7261
7267
  content: O(),
7262
7268
  type: "textResponse"
7263
7269
  } : n;
7264
7270
  }
7265
- function qs(e, t, n) {
7271
+ function Js(e, t, n) {
7266
7272
  return C(C({}, e), {}, {
7267
7273
  items: e.items.map(function (e, r) {
7268
7274
  return r === t ? n : e;
7269
7275
  })
7270
7276
  });
7271
7277
  }
7272
- function Js(e, t, n) {
7278
+ function Ys(e, t, n) {
7273
7279
  return C(C({}, e), {}, {
7274
7280
  children: e.children.map(function (e, r) {
7275
7281
  return r === t ? n : e;
7276
7282
  })
7277
7283
  });
7278
7284
  }
7279
- function Ys(e, t, n) {
7285
+ function Xs(e, t, n) {
7280
7286
  return Fe(e, t, n);
7281
7287
  }
7282
- function Xs(e, t) {
7288
+ function Zs(e, t) {
7283
7289
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "single";
7284
7290
  return {
7285
7291
  kind: "option",
7286
7292
  optionIds: Fe((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
7287
7293
  };
7288
7294
  }
7289
- function Zs(e, t, n) {
7295
+ function Qs(e, t, n) {
7290
7296
  return nt(e, t, n);
7291
7297
  }
7292
- function Qs(e, t, n) {
7298
+ function $s(e, t, n) {
7293
7299
  return dt(e, t, n);
7294
7300
  }
7295
- function $s(e, t, n) {
7301
+ function ec(e, t, n) {
7296
7302
  return Ke(e, t, n);
7297
7303
  }
7298
- function ec(e, t, n, r) {
7304
+ function tc(e, t, n, r) {
7299
7305
  return Mr(e, t.sortOptions, n, r);
7300
7306
  }
7301
- function tc(e, t) {
7307
+ function nc(e, t) {
7302
7308
  return e.includes(t) ? e.filter(function (e) {
7303
7309
  return e !== t;
7304
7310
  }) : [].concat(_toConsumableArray(e), [t]);
7305
7311
  }
7306
- function nc(e, t) {
7312
+ function rc(e, t) {
7307
7313
  return e.type === "richText" ? null : e.type === "textResponse" ? {
7308
7314
  content: O(),
7309
7315
  type: "textResponse"
7310
- } : e.type === "ordering" ? pc(t) : e.type === "classification" ? ic(t) : e.type === "fill" ? sc(t) : rc(e, t);
7316
+ } : e.type === "ordering" ? mc(t) : e.type === "classification" ? ac(t) : e.type === "fill" ? cc(t) : ic(e, t);
7311
7317
  }
7312
- function rc(e, t) {
7318
+ function ic(e, t) {
7313
7319
  switch (e.type) {
7314
7320
  case "choice":
7315
- return oc();
7321
+ return sc();
7316
7322
  case "inlineFill":
7317
- return cc(e, t);
7323
+ return lc(e, t);
7318
7324
  case "wordBuilder":
7319
- return ac(t);
7325
+ return oc(t);
7320
7326
  case "judgement":
7321
- return lc();
7322
- case "lineConnect":
7323
7327
  return uc();
7324
- case "matching":
7328
+ case "lineConnect":
7325
7329
  return dc();
7330
+ case "matching":
7331
+ return fc();
7326
7332
  case "textMarker":
7327
- return mc();
7333
+ return hc();
7328
7334
  }
7329
7335
  }
7330
- function ic(e) {
7336
+ function ac(e) {
7331
7337
  return e.type === "classification" ? {
7332
- placements: fc({}, e),
7338
+ placements: pc({}, e),
7333
7339
  type: "classification"
7334
7340
  } : null;
7335
7341
  }
7336
- function ac(e) {
7342
+ function oc(e) {
7337
7343
  return e.type === "wordBuilder" ? {
7338
- answers: hc(e.blanks),
7344
+ answers: gc(e.blanks),
7339
7345
  type: "wordBuilder"
7340
7346
  } : null;
7341
7347
  }
7342
- function oc() {
7348
+ function sc() {
7343
7349
  return {
7344
7350
  selectedOptionIds: [],
7345
7351
  type: "choice"
7346
7352
  };
7347
7353
  }
7348
- function sc(e) {
7354
+ function cc(e) {
7349
7355
  return e.type === "fill" ? {
7350
- answers: hc(e.blanks),
7356
+ answers: gc(e.blanks),
7351
7357
  type: "fill"
7352
7358
  } : null;
7353
7359
  }
7354
- function cc(e, t) {
7360
+ function lc(e, t) {
7355
7361
  return t.type === "inlineFill" ? {
7356
- answers: gc(e, t.blanks),
7362
+ answers: _c(e, t.blanks),
7357
7363
  type: "inlineFill"
7358
7364
  } : null;
7359
7365
  }
7360
- function lc() {
7366
+ function uc() {
7361
7367
  return {
7362
7368
  selectedValues: [],
7363
7369
  type: "judgement"
7364
7370
  };
7365
7371
  }
7366
- function uc() {
7372
+ function dc() {
7367
7373
  return {
7368
7374
  connections: {},
7369
7375
  type: "lineConnect"
7370
7376
  };
7371
7377
  }
7372
- function dc() {
7378
+ function fc() {
7373
7379
  return {
7374
7380
  connections: {},
7375
7381
  type: "matching"
7376
7382
  };
7377
7383
  }
7378
- function fc(e, t) {
7384
+ function pc(e, t) {
7379
7385
  return Ge(e, t.categories, t.items);
7380
7386
  }
7381
- function pc(e) {
7387
+ function mc(e) {
7382
7388
  return e.type === "ordering" ? {
7383
7389
  orderedOptionIds: e.sortOptions.map(function (e) {
7384
7390
  return e.id;
@@ -7386,18 +7392,18 @@ function pc(e) {
7386
7392
  type: "ordering"
7387
7393
  } : null;
7388
7394
  }
7389
- function mc() {
7395
+ function hc() {
7390
7396
  return {
7391
7397
  selectedMarkers: [],
7392
7398
  type: "textMarker"
7393
7399
  };
7394
7400
  }
7395
- function hc(e) {
7401
+ function gc(e) {
7396
7402
  return e.reduce(function (e, t) {
7397
7403
  return C(C({}, e), {}, _defineProperty({}, t, ""));
7398
7404
  }, {});
7399
7405
  }
7400
- function gc(e, t) {
7406
+ function _c(e, t) {
7401
7407
  return t.reduce(function (t, n) {
7402
7408
  return C(C({}, t), {}, _defineProperty({}, n, e.config.candidateMode === "none" ? {
7403
7409
  kind: "text",
@@ -7410,12 +7416,12 @@ function gc(e, t) {
7410
7416
  }
7411
7417
  function V(e, t, n) {
7412
7418
  var r = e.items[t];
7413
- return r && _c(r, n) ? r : void 0;
7419
+ return r && vc(r, n) ? r : void 0;
7414
7420
  }
7415
- function _c(e, t) {
7421
+ function vc(e, t) {
7416
7422
  return e.type === t;
7417
7423
  }
7418
- var vc = {
7424
+ var yc = {
7419
7425
  "en-US": {
7420
7426
  addBlank: "Add blank",
7421
7427
  addCard: "Add card",
@@ -7545,13 +7551,13 @@ var vc = {
7545
7551
  previewEmpty: "\u6682\u65E0\u9898\u76EE\u5185\u5BB9\u3002"
7546
7552
  }
7547
7553
  };
7548
- function yc() {
7554
+ function bc() {
7549
7555
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "zh-CN";
7550
7556
  switch (e) {
7551
7557
  case "en-US":
7552
- return vc["en-US"];
7558
+ return yc["en-US"];
7553
7559
  case "zh-CN":
7554
- return vc["zh-CN"];
7560
+ return yc["zh-CN"];
7555
7561
  }
7556
7562
  }
7557
7563
  function H() {
@@ -7560,7 +7566,7 @@ function H() {
7560
7566
  }
7561
7567
  return e.filter(Boolean).join(" ");
7562
7568
  }
7563
- function bc(e, t, n) {
7569
+ function xc(e, t, n) {
7564
7570
  return e.map(function (e) {
7565
7571
  return t.indexOf(e) + 1;
7566
7572
  }).filter(function (e) {
@@ -7569,22 +7575,22 @@ function bc(e, t, n) {
7569
7575
  return "".concat(n).concat(e);
7570
7576
  }).join(" ");
7571
7577
  }
7572
- function xc(e) {
7578
+ function Sc(e) {
7573
7579
  return "answerPools" in e;
7574
7580
  }
7575
- function Sc(e) {
7581
+ function Cc(e) {
7576
7582
  return "answerOptionId" in e;
7577
7583
  }
7578
- function Cc(e) {
7584
+ function wc(e) {
7579
7585
  return "answerOptionIds" in e;
7580
7586
  }
7581
- function wc(e, t) {
7587
+ function Tc(e, t) {
7582
7588
  var n, r;
7583
7589
  return (n = e == null || (r = e.find(function (e) {
7584
7590
  return e.optionId === t;
7585
7591
  })) == null ? void 0 : r.content) == null ? null : n;
7586
7592
  }
7587
- function Tc(e, t, n) {
7593
+ function Ec(e, t, n) {
7588
7594
  var r, i;
7589
7595
  return (r = e == null || (i = e.find(function (e) {
7590
7596
  return e.blankId === t;
@@ -7592,26 +7598,26 @@ function Tc(e, t, n) {
7592
7598
  return e.optionId === n;
7593
7599
  })) == null ? void 0 : i.content) == null ? null : r;
7594
7600
  }
7595
- function Ec(e) {
7601
+ function Dc(e) {
7596
7602
  return e.answers.reduce(function (t, n) {
7597
- if (xc(n)) return Dc(t, {
7603
+ if (Sc(n)) return Oc(t, {
7598
7604
  blankIds: n.blankIds,
7599
7605
  contents: n.answerPools
7600
7606
  });
7601
- if (Sc(n)) {
7602
- var _r4 = Tc(e.blankOptionGroups, n.blankId, n.answerOptionId);
7603
- return Dc(t, {
7607
+ if (Cc(n)) {
7608
+ var _r4 = Ec(e.blankOptionGroups, n.blankId, n.answerOptionId);
7609
+ return Oc(t, {
7604
7610
  blankIds: [n.blankId],
7605
7611
  contents: _r4 ? [_r4] : []
7606
7612
  });
7607
7613
  }
7608
- if (Cc(n)) {
7614
+ if (wc(n)) {
7609
7615
  var _r5 = n.answerOptionIds.map(function (t) {
7610
- return wc(e.candidateOptions, t);
7616
+ return Tc(e.candidateOptions, t);
7611
7617
  }).filter(function (e) {
7612
7618
  return !!e;
7613
7619
  });
7614
- return Dc(t, {
7620
+ return Oc(t, {
7615
7621
  blankIds: n.blankIds,
7616
7622
  contents: _r5
7617
7623
  });
@@ -7619,7 +7625,7 @@ function Ec(e) {
7619
7625
  return t;
7620
7626
  }, []);
7621
7627
  }
7622
- function Dc(e, t) {
7628
+ function Oc(e, t) {
7623
7629
  var n = t.contents.filter(function (e) {
7624
7630
  return e.text.trim() !== "";
7625
7631
  });
@@ -7628,31 +7634,31 @@ function Dc(e, t) {
7628
7634
  contents: n
7629
7635
  }]) : e;
7630
7636
  }
7631
- var Oc = {
7637
+ var kc = {
7632
7638
  title: "_title_hrc5o_1"
7633
7639
  };
7634
- function kc(_ref105) {
7640
+ function Ac(_ref105) {
7635
7641
  var e = _ref105.children;
7636
7642
  return (0, t.jsx)("h3", {
7637
- className: Oc.title,
7643
+ className: kc.title,
7638
7644
  children: e
7639
7645
  });
7640
7646
  }
7641
7647
  var U = {
7642
- root: "_root_1owdb_1",
7643
- "element-list": "_element-list_1owdb_19",
7644
- children: "_children_1owdb_20",
7645
- "control-list": "_control-list_1owdb_21",
7646
- "fill-text": "_fill-text_1owdb_22",
7647
- element: "_element_1owdb_19",
7648
- extra: "_extra_1owdb_32",
7649
- child: "_child_1owdb_20",
7650
- "field-label": "_field-label_1owdb_44",
7651
- empty: "_empty_1owdb_50",
7652
- input: "_input_1owdb_62",
7653
- field: "_field_1owdb_44"
7648
+ root: "_root_nr9um_1",
7649
+ "element-list": "_element-list_nr9um_18",
7650
+ children: "_children_nr9um_19",
7651
+ "control-list": "_control-list_nr9um_20",
7652
+ "fill-text": "_fill-text_nr9um_21",
7653
+ element: "_element_nr9um_18",
7654
+ extra: "_extra_nr9um_31",
7655
+ child: "_child_nr9um_19",
7656
+ "field-label": "_field-label_nr9um_43",
7657
+ empty: "_empty_nr9um_49",
7658
+ input: "_input_nr9um_61",
7659
+ field: "_field_nr9um_43"
7654
7660
  };
7655
- function Ac(_ref106) {
7661
+ function jc(_ref106) {
7656
7662
  var _ref106$childIndexPat = _ref106.childIndexPath,
7657
7663
  e = _ref106$childIndexPat === void 0 ? [] : _ref106$childIndexPat,
7658
7664
  n = _ref106.messages,
@@ -7714,7 +7720,7 @@ function G(_ref107) {
7714
7720
  }
7715
7721
  });
7716
7722
  }
7717
- var jc = {
7723
+ var Mc = {
7718
7724
  "answer-panel": "_answer-panel_1bkkd_1",
7719
7725
  "answer-list": "_answer-list_1bkkd_8",
7720
7726
  "answer-row": "_answer-row_1bkkd_16",
@@ -7731,22 +7737,22 @@ function K(_ref108) {
7731
7737
  });
7732
7738
  return r.length === 0 ? null : (0, t.jsxs)("section", {
7733
7739
  "aria-label": n,
7734
- className: jc["answer-panel"],
7735
- children: [(0, t.jsx)(kc, {
7740
+ className: Mc["answer-panel"],
7741
+ children: [(0, t.jsx)(Ac, {
7736
7742
  children: n
7737
7743
  }), (0, t.jsx)("ol", {
7738
- className: jc["answer-list"],
7744
+ className: Mc["answer-list"],
7739
7745
  children: r.map(function (e, n) {
7740
7746
  return (0, t.jsxs)("li", {
7741
- className: jc["answer-row"],
7747
+ className: Mc["answer-row"],
7742
7748
  children: [e.marker ? (0, t.jsx)("span", {
7743
- className: e.kind === "markerOnly" ? "".concat(jc["answer-marker"], " ").concat(jc["answer-marker-only"]) : jc["answer-marker"],
7749
+ className: e.kind === "markerOnly" ? "".concat(Mc["answer-marker"], " ").concat(Mc["answer-marker-only"]) : Mc["answer-marker"],
7744
7750
  children: e.marker
7745
7751
  }) : null, e.kind === "detailed" ? (0, t.jsx)("div", {
7746
- className: jc["answer-content-list"],
7752
+ className: Mc["answer-content-list"],
7747
7753
  children: e.contents.map(function (e, n) {
7748
7754
  return (0, t.jsx)("div", {
7749
- className: jc["answer-value"],
7755
+ className: Mc["answer-value"],
7750
7756
  children: e
7751
7757
  }, "answer-".concat(n));
7752
7758
  })
@@ -7756,7 +7762,7 @@ function K(_ref108) {
7756
7762
  })]
7757
7763
  });
7758
7764
  }
7759
- function Mc(_ref109) {
7765
+ function Nc(_ref109) {
7760
7766
  var e = _ref109.disabled,
7761
7767
  n = _ref109.item,
7762
7768
  r = _ref109.messages,
@@ -7764,7 +7770,7 @@ function Mc(_ref109) {
7764
7770
  a = _ref109.response,
7765
7771
  o = _ref109.responseIndex,
7766
7772
  s = _ref109.showAnswer;
7767
- var c = Ls(a, o, n.blanks),
7773
+ var c = Rs(a, o, n.blanks),
7768
7774
  l = k(n.answers, n.blanks).map(function (e, i) {
7769
7775
  return {
7770
7776
  kind: "detailed",
@@ -7773,7 +7779,7 @@ function Mc(_ref109) {
7773
7779
  content: e
7774
7780
  }, "group-".concat(i, "-answer-").concat(n));
7775
7781
  }),
7776
- marker: bc(e.blankIds, n.blanks, r.blankLabel)
7782
+ marker: xc(e.blankIds, n.blanks, r.blankLabel)
7777
7783
  };
7778
7784
  });
7779
7785
  function u(e, t) {
@@ -7795,19 +7801,19 @@ function Mc(_ref109) {
7795
7801
  onChange: function onChange(e) {
7796
7802
  return u(n, e.target.value);
7797
7803
  },
7798
- value: Pc(c.answers, n)
7804
+ value: Fc(c.answers, n)
7799
7805
  })]
7800
- }, Nc(n, i));
7806
+ }, Pc(n, i));
7801
7807
  }), s ? (0, t.jsx)(K, {
7802
7808
  groups: l,
7803
7809
  title: r.standardAnswer
7804
7810
  }) : null]
7805
7811
  });
7806
7812
  }
7807
- function Nc(e, t) {
7813
+ function Pc(e, t) {
7808
7814
  return e || "blank-".concat(t + 1);
7809
7815
  }
7810
- function Pc(e, t) {
7816
+ function Fc(e, t) {
7811
7817
  var n, r;
7812
7818
  return (n = (r = Object.entries(e).find(function (_ref110) {
7813
7819
  var _ref111 = _slicedToArray(_ref110, 1),
@@ -7815,7 +7821,7 @@ function Pc(e, t) {
7815
7821
  return e === t;
7816
7822
  })) == null ? void 0 : r[1]) == null ? "" : n;
7817
7823
  }
7818
- function Fc(e) {
7824
+ function Ic(e) {
7819
7825
  return e.categories.map(function (n) {
7820
7826
  return {
7821
7827
  kind: "detailed",
@@ -7843,7 +7849,7 @@ var q = {
7843
7849
  incorrect: "_incorrect_1f76b_81",
7844
7850
  unanswered: "_unanswered_1f76b_85"
7845
7851
  };
7846
- function Ic(_ref112) {
7852
+ function Lc(_ref112) {
7847
7853
  var e = _ref112.disabled,
7848
7854
  r = _ref112.item,
7849
7855
  i = _ref112.messages,
@@ -7855,14 +7861,14 @@ function Ic(_ref112) {
7855
7861
  _ref114 = _slicedToArray(_ref113, 2),
7856
7862
  l = _ref114[0],
7857
7863
  u = _ref114[1],
7858
- d = Vs(o, s),
7859
- f = Rc(d.placements, r),
7864
+ d = Hs(o, s),
7865
+ f = zc(d.placements, r),
7860
7866
  p = r.items.find(function (e) {
7861
7867
  return e.id === l;
7862
7868
  });
7863
7869
  function m(e, t) {
7864
7870
  a(C(C({}, d), {}, {
7865
- placements: Rc($s(f, e, t), r)
7871
+ placements: zc(ec(f, e, t), r)
7866
7872
  })), u("");
7867
7873
  }
7868
7874
  function h(t, n) {
@@ -7872,7 +7878,7 @@ function Ic(_ref112) {
7872
7878
  }
7873
7879
  function g(n) {
7874
7880
  var i = l === n.id,
7875
- a = Lc(n.id, f, r, c);
7881
+ a = Rc(n.id, f, r, c);
7876
7882
  return (0, t.jsx)("button", {
7877
7883
  "aria-pressed": i,
7878
7884
  className: H(q.item, i && q.selected, a === "correct" && q.correct, a === "incorrect" && q.incorrect, a === "unanswered" && q.unanswered),
@@ -7946,21 +7952,21 @@ function Ic(_ref112) {
7946
7952
  })
7947
7953
  })]
7948
7954
  }), c ? (0, t.jsx)(K, {
7949
- groups: Fc(r),
7955
+ groups: Ic(r),
7950
7956
  title: i.standardAnswer
7951
7957
  }) : null]
7952
7958
  });
7953
7959
  }
7954
- function Lc(e, t, n, r) {
7960
+ function Rc(e, t, n, r) {
7955
7961
  var i, a;
7956
7962
  var o = (i = t[e]) == null ? "" : i,
7957
7963
  s = (a = n.answers[e]) == null ? "" : a;
7958
7964
  if (!(!r || !s)) return o ? s === o ? "correct" : "incorrect" : "unanswered";
7959
7965
  }
7960
- function Rc(e, t) {
7966
+ function zc(e, t) {
7961
7967
  return Ge(e, t.categories, t.items);
7962
7968
  }
7963
- function zc(_ref115) {
7969
+ function Bc(_ref115) {
7964
7970
  var e = _ref115.className,
7965
7971
  n = _ref115.content,
7966
7972
  r = _ref115.renderBlank;
@@ -7968,7 +7974,7 @@ function zc(_ref115) {
7968
7974
  return (0, t.jsx)("div", {
7969
7975
  className: [W["rich-content"], e == null ? "" : e].filter(Boolean).join(" "),
7970
7976
  children: n.json.map(function (e, t) {
7971
- return Bc(e, {
7977
+ return Vc(e, {
7972
7978
  blankIndexes: i,
7973
7979
  key: "node-".concat(t),
7974
7980
  renderBlank: r
@@ -7976,17 +7982,17 @@ function zc(_ref115) {
7976
7982
  })
7977
7983
  });
7978
7984
  }
7979
- function Bc(e, r) {
7985
+ function Vc(e, r) {
7980
7986
  if (_typeof(e.text) == "string") return (0, t.jsx)(n.Fragment, {
7981
7987
  children: e.text
7982
7988
  }, r.key);
7983
7989
  if (e.type === "blank") return (0, t.jsx)(n.Fragment, {
7984
- children: Vc(e, r)
7990
+ children: Hc(e, r)
7985
7991
  }, r.key);
7986
- var i = Uc(e.children, r);
7992
+ var i = Wc(e.children, r);
7987
7993
  switch (e.type) {
7988
7994
  case "heading":
7989
- return Wc(e, i, r.key);
7995
+ return Gc(e, i, r.key);
7990
7996
  case "table":
7991
7997
  return (0, t.jsx)("table", {
7992
7998
  children: i
@@ -8005,29 +8011,29 @@ function Bc(e, r) {
8005
8011
  }, r.key);
8006
8012
  }
8007
8013
  }
8008
- function Vc(e, t) {
8009
- var n = Gc(e.blankId),
8010
- r = Hc(t.blankIndexes, n);
8014
+ function Hc(e, t) {
8015
+ var n = Kc(e.blankId),
8016
+ r = Uc(t.blankIndexes, n);
8011
8017
  return t.renderBlank({
8012
8018
  blankId: n,
8013
8019
  index: r,
8014
- label: Gc(e.label)
8020
+ label: Kc(e.label)
8015
8021
  });
8016
8022
  }
8017
- function Hc(e, t) {
8023
+ function Uc(e, t) {
8018
8024
  var n = e.get(t);
8019
8025
  if (n !== void 0) return n;
8020
8026
  var r = e.size;
8021
8027
  return e.set(t, r), r;
8022
8028
  }
8023
- function Uc(e, t) {
8029
+ function Wc(e, t) {
8024
8030
  return (e == null ? [] : e).map(function (e, n) {
8025
- return Bc(e, C(C({}, t), {}, {
8031
+ return Vc(e, C(C({}, t), {}, {
8026
8032
  key: "".concat(t.key, "-").concat(n)
8027
8033
  }));
8028
8034
  });
8029
8035
  }
8030
- function Wc(e, n, r) {
8036
+ function Gc(e, n, r) {
8031
8037
  switch (e.level) {
8032
8038
  case 1:
8033
8039
  return (0, t.jsx)("h1", {
@@ -8047,7 +8053,7 @@ function Wc(e, n, r) {
8047
8053
  }, r);
8048
8054
  }
8049
8055
  }
8050
- function Gc(e) {
8056
+ function Kc(e) {
8051
8057
  return _typeof(e) == "string" ? e : "";
8052
8058
  }
8053
8059
  var J = {
@@ -8066,17 +8072,17 @@ var J = {
8066
8072
  "per-blank-candidate-list": "_per-blank-candidate-list_2je8q_140",
8067
8073
  selected: "_selected_2je8q_161"
8068
8074
  };
8069
- function Kc(_ref116) {
8075
+ function qc(_ref116) {
8070
8076
  var e = _ref116.answers,
8071
8077
  n = _ref116.disabled,
8072
8078
  r = _ref116.item,
8073
8079
  i = _ref116.messages,
8074
8080
  a = _ref116.onAnswerChange,
8075
8081
  o = _ref116.structure;
8076
- return (0, t.jsx)(zc, {
8082
+ return (0, t.jsx)(Bc, {
8077
8083
  content: r.content,
8078
8084
  renderBlank: function renderBlank(t) {
8079
- return qc(t, {
8085
+ return Jc(t, {
8080
8086
  answers: e,
8081
8087
  blankLabel: i.blankLabel,
8082
8088
  disabled: n,
@@ -8087,12 +8093,12 @@ function Kc(_ref116) {
8087
8093
  }
8088
8094
  });
8089
8095
  }
8090
- function qc(e, n) {
8096
+ function Jc(e, n) {
8091
8097
  var r = e.blankId,
8092
8098
  i = n.item.blanks.indexOf(r),
8093
- a = $c(e.label, n.blankLabel, i);
8099
+ a = el(e.label, n.blankLabel, i);
8094
8100
  if (n.structure.config.candidateMode === "none") {
8095
- var _e2 = Yc(n.answers, r);
8101
+ var _e2 = Xc(n.answers, r);
8096
8102
  return (0, t.jsx)("input", {
8097
8103
  "aria-label": a,
8098
8104
  className: J["inline-input"],
@@ -8106,9 +8112,9 @@ function qc(e, n) {
8106
8112
  value: (_e2 == null ? void 0 : _e2.kind) === "text" ? _e2.value : ""
8107
8113
  });
8108
8114
  }
8109
- if (n.structure.config.candidateMode === "sharedPool") return Jc(r, a, n);
8110
- var o = Yc(n.answers, r),
8111
- s = Zc(n.item, r, n.structure.config.candidateMode, o);
8115
+ if (n.structure.config.candidateMode === "sharedPool") return Yc(r, a, n);
8116
+ var o = Xc(n.answers, r),
8117
+ s = Qc(n.item, r, n.structure.config.candidateMode, o);
8112
8118
  return (0, t.jsx)("span", {
8113
8119
  "aria-label": a,
8114
8120
  className: J["inline-blank-underline"],
@@ -8118,11 +8124,11 @@ function qc(e, n) {
8118
8124
  }) : a
8119
8125
  });
8120
8126
  }
8121
- function Jc(e, n, r) {
8127
+ function Yc(e, n, r) {
8122
8128
  var i, a;
8123
- var o = Yc(r.answers, e),
8129
+ var o = Xc(r.answers, e),
8124
8130
  s = (i = ((o == null ? void 0 : o.kind) === "option" ? o.optionIds : []).slice(0, 1)[0]) == null ? "" : i,
8125
- c = Qc(r.answers, e);
8131
+ c = $c(r.answers, e);
8126
8132
  return (0, t.jsxs)("select", {
8127
8133
  "aria-label": n,
8128
8134
  className: J["inline-select"],
@@ -8146,7 +8152,7 @@ function Jc(e, n, r) {
8146
8152
  })]
8147
8153
  });
8148
8154
  }
8149
- function Yc(e, t) {
8155
+ function Xc(e, t) {
8150
8156
  var n;
8151
8157
  return (n = Object.entries(e).find(function (_ref117) {
8152
8158
  var _ref118 = _slicedToArray(_ref117, 1),
@@ -8154,7 +8160,7 @@ function Yc(e, t) {
8154
8160
  return e === t;
8155
8161
  })) == null ? void 0 : n[1];
8156
8162
  }
8157
- function Xc(e, t, n) {
8163
+ function Zc(e, t, n) {
8158
8164
  var r, i;
8159
8165
  if (n === "sharedPool") {
8160
8166
  var a;
@@ -8164,13 +8170,13 @@ function Xc(e, t, n) {
8164
8170
  return e.blankId === t;
8165
8171
  })) == null ? void 0 : i.options) == null ? [] : r;
8166
8172
  }
8167
- function Zc(e, t, n, r) {
8173
+ function Qc(e, t, n, r) {
8168
8174
  var i = (r == null ? void 0 : r.kind) === "option" ? r.optionIds[0] : void 0;
8169
- if (i) return Xc(e, t, n).find(function (e) {
8175
+ if (i) return Zc(e, t, n).find(function (e) {
8170
8176
  return e.optionId === i;
8171
8177
  });
8172
8178
  }
8173
- function Qc(e, t) {
8179
+ function $c(e, t) {
8174
8180
  var n = new Set(),
8175
8181
  r = Object.entries(e);
8176
8182
  for (var _i2 = 0, _r6 = r; _i2 < _r6.length; _i2++) {
@@ -8194,10 +8200,10 @@ function Qc(e, t) {
8194
8200
  }
8195
8201
  return n;
8196
8202
  }
8197
- function $c(e, t, n) {
8203
+ function el(e, t, n) {
8198
8204
  return e || "".concat(t, " ").concat(n + 1);
8199
8205
  }
8200
- function el(_ref119) {
8206
+ function tl(_ref119) {
8201
8207
  var e = _ref119.disabled,
8202
8208
  n = _ref119.element,
8203
8209
  r = _ref119.item,
@@ -8207,8 +8213,8 @@ function el(_ref119) {
8207
8213
  s = _ref119.responseIndex,
8208
8214
  c = _ref119.showAnswer;
8209
8215
  var l = vn(r, n, !0),
8210
- u = Ec(l),
8211
- d = Rs(o, s, n, l.blanks),
8216
+ u = Dc(l),
8217
+ d = zs(o, s, n, l.blanks),
8212
8218
  f = u.map(function (e, n) {
8213
8219
  return {
8214
8220
  kind: "detailed",
@@ -8217,7 +8223,7 @@ function el(_ref119) {
8217
8223
  content: e
8218
8224
  }, "group-".concat(n, "-answer-").concat(r));
8219
8225
  }),
8220
- marker: bc(e.blankIds, l.blanks, i.blankLabel)
8226
+ marker: xc(e.blankIds, l.blanks, i.blankLabel)
8221
8227
  };
8222
8228
  });
8223
8229
  function p(e, t) {
@@ -8227,14 +8233,14 @@ function el(_ref119) {
8227
8233
  }
8228
8234
  return (0, t.jsxs)("div", {
8229
8235
  className: U["fill-text"],
8230
- children: [(0, t.jsx)(Kc, {
8236
+ children: [(0, t.jsx)(qc, {
8231
8237
  answers: d.answers,
8232
8238
  disabled: e,
8233
8239
  item: l,
8234
8240
  messages: i,
8235
8241
  onAnswerChange: p,
8236
8242
  structure: n
8237
- }), tl(l, n.config.candidateMode, i.candidateOptions), nl({
8243
+ }), nl(l, n.config.candidateMode, i.candidateOptions), rl({
8238
8244
  disabled: e,
8239
8245
  item: l,
8240
8246
  onAnswerChange: p,
@@ -8245,7 +8251,7 @@ function el(_ref119) {
8245
8251
  }) : null]
8246
8252
  });
8247
8253
  }
8248
- function tl(e, n, r) {
8254
+ function nl(e, n, r) {
8249
8255
  var i;
8250
8256
  var a = (i = e.candidateOptions) == null ? [] : i;
8251
8257
  return n !== "sharedPool" || a.length === 0 ? null : (0, t.jsxs)("div", {
@@ -8267,7 +8273,7 @@ function tl(e, n, r) {
8267
8273
  })]
8268
8274
  });
8269
8275
  }
8270
- function nl(_ref120) {
8276
+ function rl(_ref120) {
8271
8277
  var e = _ref120.disabled,
8272
8278
  n = _ref120.item,
8273
8279
  r = _ref120.onAnswerChange,
@@ -8287,7 +8293,7 @@ function nl(_ref120) {
8287
8293
  children: a.map(function (_ref121) {
8288
8294
  var t = _ref121.group,
8289
8295
  n = _ref121.marker;
8290
- return rl({
8296
+ return il({
8291
8297
  disabled: e,
8292
8298
  group: t,
8293
8299
  marker: n,
@@ -8297,7 +8303,7 @@ function nl(_ref120) {
8297
8303
  })
8298
8304
  });
8299
8305
  }
8300
- function rl(_ref122) {
8306
+ function il(_ref122) {
8301
8307
  var e = _ref122.disabled,
8302
8308
  n = _ref122.group,
8303
8309
  r = _ref122.marker,
@@ -8313,7 +8319,7 @@ function rl(_ref122) {
8313
8319
  }), (0, t.jsx)("div", {
8314
8320
  className: J["per-blank-candidate-list"],
8315
8321
  children: n.options.map(function (t) {
8316
- return il({
8322
+ return al({
8317
8323
  activeAnswer: o,
8318
8324
  blankId: n.blankId,
8319
8325
  disabled: e,
@@ -8324,7 +8330,7 @@ function rl(_ref122) {
8324
8330
  })]
8325
8331
  }, n.blankId);
8326
8332
  }
8327
- function il(_ref123) {
8333
+ function al(_ref123) {
8328
8334
  var e = _ref123.activeAnswer,
8329
8335
  n = _ref123.blankId,
8330
8336
  r = _ref123.disabled,
@@ -8337,7 +8343,7 @@ function il(_ref123) {
8337
8343
  "data-selected": o ? "true" : void 0,
8338
8344
  disabled: r,
8339
8345
  onClick: function onClick() {
8340
- return i(n, Xs(e, a.optionId, "single"));
8346
+ return i(n, Zs(e, a.optionId, "single"));
8341
8347
  },
8342
8348
  type: "button",
8343
8349
  children: (0, t.jsx)(G, {
@@ -8358,7 +8364,7 @@ var Y = {
8358
8364
  "option-marker": "_option-marker_3nny2_86",
8359
8365
  "table-option-marker": "_table-option-marker_3nny2_87"
8360
8366
  };
8361
- function al(_ref124) {
8367
+ function ol(_ref124) {
8362
8368
  var e = _ref124.disabled,
8363
8369
  n = _ref124.element,
8364
8370
  r = _ref124.item,
@@ -8367,7 +8373,7 @@ function al(_ref124) {
8367
8373
  o = _ref124.response,
8368
8374
  s = _ref124.responseIndex,
8369
8375
  c = _ref124.showAnswer;
8370
- var l = Bs(o, s),
8376
+ var l = Vs(o, s),
8371
8377
  u = tn(n.config.judgeAnswerMode),
8372
8378
  d = [{
8373
8379
  kind: "detailed",
@@ -8408,8 +8414,8 @@ function al(_ref124) {
8408
8414
  }) : null]
8409
8415
  });
8410
8416
  }
8411
- function ol(e) {
8412
- var n = sl(e);
8417
+ function sl(e) {
8418
+ var n = cl(e);
8413
8419
  return e.columns.reduce(function (r, i, a) {
8414
8420
  var o = i.items.map(function (r, o) {
8415
8421
  var s;
@@ -8431,7 +8437,7 @@ function ol(e) {
8431
8437
  return [].concat(_toConsumableArray(r), _toConsumableArray(o));
8432
8438
  }, []);
8433
8439
  }
8434
- function sl(e) {
8440
+ function cl(e) {
8435
8441
  return e.columns.reduce(function (e, t, n) {
8436
8442
  return t.items.forEach(function (t) {
8437
8443
  return e.set(t.itemId, {
@@ -8441,7 +8447,7 @@ function sl(e) {
8441
8447
  }), e;
8442
8448
  }, new Map());
8443
8449
  }
8444
- function cl(_ref126) {
8450
+ function ll(_ref126) {
8445
8451
  var e = _ref126.disabled,
8446
8452
  r = _ref126.item,
8447
8453
  i = _ref126.messages,
@@ -8459,7 +8465,7 @@ function cl(_ref126) {
8459
8465
  f = _ref130[1],
8460
8466
  p = (0, n.useRef)(null),
8461
8467
  m = (0, n.useRef)(new Map()),
8462
- h = Hs(o, s),
8468
+ h = Us(o, s),
8463
8469
  g = {
8464
8470
  gridTemplateColumns: "repeat(".concat(r.columns.length, ", minmax(12rem, 1fr))")
8465
8471
  },
@@ -8536,7 +8542,7 @@ function cl(_ref126) {
8536
8542
  }) : null;
8537
8543
  if (r) {
8538
8544
  a(C(C({}, h), {}, {
8539
- connections: Zs(h.connections, r.fromItemId, r.toItemId)
8545
+ connections: Qs(h.connections, r.fromItemId, r.toItemId)
8540
8546
  })), u(null);
8541
8547
  return;
8542
8548
  }
@@ -8607,12 +8613,12 @@ function cl(_ref126) {
8607
8613
  })
8608
8614
  })]
8609
8615
  }), c ? (0, t.jsx)(K, {
8610
- groups: ol(r),
8616
+ groups: sl(r),
8611
8617
  title: i.standardAnswer
8612
8618
  }) : null]
8613
8619
  });
8614
8620
  }
8615
- function ll(e) {
8621
+ function ul(e) {
8616
8622
  var n, r;
8617
8623
  var i = e.columns[0],
8618
8624
  a = e.columns[1],
@@ -8635,7 +8641,7 @@ function ll(e) {
8635
8641
  };
8636
8642
  });
8637
8643
  }
8638
- var ul = {
8644
+ var dl = {
8639
8645
  board: "_board_1q6ar_1",
8640
8646
  "matched-rows": "_matched-rows_1q6ar_6",
8641
8647
  "matched-row": "_matched-row_1q6ar_6",
@@ -8646,7 +8652,7 @@ var ul = {
8646
8652
  matched: "_matched_1q6ar_6",
8647
8653
  marker: "_marker_1q6ar_66"
8648
8654
  };
8649
- function dl(_ref131) {
8655
+ function fl(_ref131) {
8650
8656
  var e = _ref131.disabled,
8651
8657
  r = _ref131.item,
8652
8658
  i = _ref131.messages,
@@ -8658,8 +8664,8 @@ function dl(_ref131) {
8658
8664
  _ref133 = _slicedToArray(_ref132, 2),
8659
8665
  l = _ref133[0],
8660
8666
  u = _ref133[1],
8661
- d = Us(o, s),
8662
- f = fl(r, d.connections);
8667
+ d = Ws(o, s),
8668
+ f = pl(r, d.connections);
8663
8669
  function p(t, n) {
8664
8670
  if (e) return;
8665
8671
  var r = l ? ct(l, {
@@ -8668,7 +8674,7 @@ function dl(_ref131) {
8668
8674
  }) : null;
8669
8675
  if (r) {
8670
8676
  a(C(C({}, d), {}, {
8671
- connections: Qs(d.connections, r.fromItemId, r.toItemId)
8677
+ connections: $s(d.connections, r.fromItemId, r.toItemId)
8672
8678
  })), u(null);
8673
8679
  return;
8674
8680
  }
@@ -8681,7 +8687,7 @@ function dl(_ref131) {
8681
8687
  var i = (l == null ? void 0 : l.itemId) === n.item.itemId;
8682
8688
  return (0, t.jsxs)("button", {
8683
8689
  "aria-pressed": i,
8684
- className: H(ul.item, i && ul.selected, r && ul.matched),
8690
+ className: H(dl.item, i && dl.selected, r && dl.matched),
8685
8691
  "data-testid": "matching-player-item-".concat(n.item.itemId),
8686
8692
  disabled: e,
8687
8693
  onClick: function onClick() {
@@ -8689,7 +8695,7 @@ function dl(_ref131) {
8689
8695
  },
8690
8696
  type: "button",
8691
8697
  children: [n.marker ? (0, t.jsx)("span", {
8692
- className: ul.marker,
8698
+ className: dl.marker,
8693
8699
  children: n.marker
8694
8700
  }) : null, (0, t.jsx)(G, {
8695
8701
  content: n.item.content
@@ -8699,12 +8705,12 @@ function dl(_ref131) {
8699
8705
  return (0, t.jsxs)("div", {
8700
8706
  className: W.element,
8701
8707
  children: [(0, t.jsxs)("div", {
8702
- className: ul.board,
8708
+ className: dl.board,
8703
8709
  children: [f.rows.length > 0 ? (0, t.jsx)("div", {
8704
- className: ul["matched-rows"],
8710
+ className: dl["matched-rows"],
8705
8711
  children: f.rows.map(function (e) {
8706
8712
  return (0, t.jsxs)("div", {
8707
- className: ul["matched-row"],
8713
+ className: dl["matched-row"],
8708
8714
  "data-testid": "matching-player-row-".concat(e.from.item.itemId, "-").concat(e.to.item.itemId),
8709
8715
  children: [m(e.from, !0), m(e.to, !0)]
8710
8716
  }, "".concat(e.from.item.itemId, "-").concat(e.to.item.itemId));
@@ -8712,11 +8718,11 @@ function dl(_ref131) {
8712
8718
  }) : null, f.unmatchedColumns.some(function (e) {
8713
8719
  return e.length > 0;
8714
8720
  }) ? (0, t.jsx)("div", {
8715
- className: ul.columns,
8721
+ className: dl.columns,
8716
8722
  children: f.unmatchedColumns.map(function (e, n) {
8717
8723
  var i, a;
8718
8724
  return (0, t.jsx)("section", {
8719
- className: ul.column,
8725
+ className: dl.column,
8720
8726
  children: e.map(function (e) {
8721
8727
  return m(e, !1);
8722
8728
  })
@@ -8724,12 +8730,12 @@ function dl(_ref131) {
8724
8730
  })
8725
8731
  }) : null]
8726
8732
  }), c ? (0, t.jsx)(K, {
8727
- groups: ll(r),
8733
+ groups: ul(r),
8728
8734
  title: i.standardAnswer
8729
8735
  }) : null]
8730
8736
  });
8731
8737
  }
8732
- function fl(e, t) {
8738
+ function pl(e, t) {
8733
8739
  var n;
8734
8740
  var r = e.columns.map(function (e, t) {
8735
8741
  return e.items.map(function (n, r) {
@@ -8767,7 +8773,7 @@ function fl(e, t) {
8767
8773
  })
8768
8774
  };
8769
8775
  }
8770
- function pl(e, t) {
8776
+ function ml(e, t) {
8771
8777
  return an(t, e.config.optionLabelStyle).map(function (e) {
8772
8778
  return {
8773
8779
  kind: "markerOnly",
@@ -8775,7 +8781,7 @@ function pl(e, t) {
8775
8781
  };
8776
8782
  });
8777
8783
  }
8778
- function ml(_ref134) {
8784
+ function hl(_ref134) {
8779
8785
  var e = _ref134.availableWidth,
8780
8786
  t = _ref134.columnGap,
8781
8787
  n = _ref134.optionCount,
@@ -8785,10 +8791,10 @@ function ml(_ref134) {
8785
8791
  for (var _n5 = i; _n5 >= 2; --_n5) if (i % _n5 === 0 && (e - Math.max(0, t) * (_n5 - 1)) / _n5 >= r) return _n5;
8786
8792
  return 1;
8787
8793
  }
8788
- var hl = {
8794
+ var gl = {
8789
8795
  list: "_list_1xo1n_1"
8790
8796
  };
8791
- function gl(_ref135) {
8797
+ function _l(_ref135) {
8792
8798
  var e = _ref135.children;
8793
8799
  var r = (0, n.useRef)(null),
8794
8800
  _ref136 = (0, n.useState)(1),
@@ -8805,8 +8811,8 @@ function gl(_ref135) {
8805
8811
  function o() {
8806
8812
  var r = t.getBoundingClientRect().width,
8807
8813
  i = Number.parseFloat(getComputedStyle(t).columnGap) || 0,
8808
- o = _l(t),
8809
- s = ml({
8814
+ o = vl(t),
8815
+ s = hl({
8810
8816
  availableWidth: r,
8811
8817
  columnGap: i,
8812
8818
  optionCount: n.Children.count(e),
@@ -8827,7 +8833,7 @@ function gl(_ref135) {
8827
8833
  i !== null && cancelAnimationFrame(i), t.removeEventListener("load", s, !0), c.disconnect();
8828
8834
  };
8829
8835
  }), (0, t.jsx)("ol", {
8830
- className: "".concat(W["option-list"], " ").concat(hl.list),
8836
+ className: "".concat(W["option-list"], " ").concat(gl.list),
8831
8837
  "data-column-count": i,
8832
8838
  "data-question-option-grid": "true",
8833
8839
  ref: r,
@@ -8835,7 +8841,7 @@ function gl(_ref135) {
8835
8841
  children: e
8836
8842
  });
8837
8843
  }
8838
- function _l(e) {
8844
+ function vl(e) {
8839
8845
  var t = e.parentElement;
8840
8846
  if (!t || e.children.length === 0) return 0;
8841
8847
  var n = e.cloneNode(!1);
@@ -8854,13 +8860,13 @@ function _l(e) {
8854
8860
  var r = n.getBoundingClientRect().width;
8855
8861
  return n.remove(), r;
8856
8862
  }
8857
- var vl = {
8863
+ var yl = {
8858
8864
  "table-wrap": "_table-wrap_n67ah_1",
8859
8865
  table: "_table_n67ah_1",
8860
8866
  "table-option-column": "_table-option-column_n67ah_17",
8861
8867
  "table-option-marker": "_table-option-marker_n67ah_45"
8862
8868
  };
8863
- function yl(_ref138) {
8869
+ function bl(_ref138) {
8864
8870
  var e = _ref138.disabled,
8865
8871
  n = _ref138.element,
8866
8872
  r = _ref138.item,
@@ -8869,24 +8875,24 @@ function yl(_ref138) {
8869
8875
  o = _ref138.response,
8870
8876
  s = _ref138.responseIndex,
8871
8877
  c = _ref138.showAnswer;
8872
- var l = Is(o, s),
8878
+ var l = Ls(o, s),
8873
8879
  u = rn(r, n.config.optionLabelStyle);
8874
8880
  function d(e) {
8875
8881
  a(C(C({}, l), {}, {
8876
- selectedOptionIds: Ys(l.selectedOptionIds, e, n.config.selectionType)
8882
+ selectedOptionIds: Xs(l.selectedOptionIds, e, n.config.selectionType)
8877
8883
  }));
8878
8884
  }
8879
8885
  if (n.config.renderer === "table") {
8880
- var _a2 = pl(n, r);
8886
+ var _a2 = ml(n, r);
8881
8887
  return (0, t.jsxs)("div", {
8882
8888
  className: W.element,
8883
8889
  children: [(0, t.jsx)("div", {
8884
- className: vl["table-wrap"],
8890
+ className: yl["table-wrap"],
8885
8891
  children: (0, t.jsxs)("table", {
8886
- className: vl.table,
8892
+ className: yl.table,
8887
8893
  children: [(0, t.jsxs)("colgroup", {
8888
8894
  children: [(0, t.jsx)("col", {
8889
- className: vl["table-option-column"]
8895
+ className: yl["table-option-column"]
8890
8896
  }), r.columns.map(function (e) {
8891
8897
  return (0, t.jsx)("col", {}, e.id);
8892
8898
  })]
@@ -8949,10 +8955,10 @@ function yl(_ref138) {
8949
8955
  }) : null]
8950
8956
  });
8951
8957
  }
8952
- var f = pl(n, r);
8958
+ var f = ml(n, r);
8953
8959
  return (0, t.jsxs)("div", {
8954
8960
  className: W.element,
8955
- children: [(0, t.jsx)(gl, {
8961
+ children: [(0, t.jsx)(_l, {
8956
8962
  children: u.map(function (n) {
8957
8963
  var r = l.selectedOptionIds.includes(n.optionId);
8958
8964
  return (0, t.jsx)("li", {
@@ -8982,7 +8988,7 @@ function yl(_ref138) {
8982
8988
  }) : null]
8983
8989
  });
8984
8990
  }
8985
- function bl(e) {
8991
+ function xl(e) {
8986
8992
  var n = new Map(e.sortOptions.map(function (e) {
8987
8993
  return [e.id, e];
8988
8994
  }));
@@ -8997,7 +9003,7 @@ function bl(e) {
8997
9003
  };
8998
9004
  });
8999
9005
  }
9000
- function xl(_ref139) {
9006
+ function Sl(_ref139) {
9001
9007
  var e = _ref139.disabled,
9002
9008
  n = _ref139.item,
9003
9009
  r = _ref139.messages,
@@ -9005,7 +9011,7 @@ function xl(_ref139) {
9005
9011
  a = _ref139.response,
9006
9012
  o = _ref139.responseIndex,
9007
9013
  s = _ref139.showAnswer;
9008
- var c = Ws(a, o, n),
9014
+ var c = Gs(a, o, n),
9009
9015
  l = new Map(n.sortOptions.map(function (e) {
9010
9016
  return [e.id, e];
9011
9017
  })),
@@ -9016,7 +9022,7 @@ function xl(_ref139) {
9016
9022
  });
9017
9023
  function d(e, t) {
9018
9024
  i(C(C({}, c), {}, {
9019
- orderedOptionIds: ec(c.orderedOptionIds, n, e, t)
9025
+ orderedOptionIds: tc(c.orderedOptionIds, n, e, t)
9020
9026
  }));
9021
9027
  }
9022
9028
  return (0, t.jsxs)("div", {
@@ -9056,12 +9062,12 @@ function xl(_ref139) {
9056
9062
  }, n.id);
9057
9063
  })
9058
9064
  }), s ? (0, t.jsx)(K, {
9059
- groups: bl(n),
9065
+ groups: xl(n),
9060
9066
  title: r.standardAnswer
9061
9067
  }) : null]
9062
9068
  });
9063
9069
  }
9064
- var Sl = {
9070
+ var Cl = {
9065
9071
  content: "_content_63948_1",
9066
9072
  paragraph: "_paragraph_63948_10",
9067
9073
  marker: "_marker_63948_14",
@@ -9069,7 +9075,7 @@ var Sl = {
9069
9075
  "marker-selected": "_marker-selected_63948_31",
9070
9076
  "marker-answer": "_marker-answer_63948_37"
9071
9077
  };
9072
- function Cl(_ref140) {
9078
+ function wl(_ref140) {
9073
9079
  var _ref140$answerMarkers = _ref140.answerMarkers,
9074
9080
  e = _ref140$answerMarkers === void 0 ? [] : _ref140$answerMarkers,
9075
9081
  r = _ref140.content,
@@ -9087,19 +9093,19 @@ function Cl(_ref140) {
9087
9093
  type: "paragraph"
9088
9094
  }];
9089
9095
  return (0, t.jsx)("div", {
9090
- className: Sl.content,
9096
+ className: Cl.content,
9091
9097
  children: c.map(function (e, t) {
9092
9098
  return l(e, "node-".concat(t));
9093
9099
  })
9094
9100
  });
9095
9101
  function l(e, n) {
9096
- if (Tl(e)) return u(e, n);
9097
- if (!wl(e)) return null;
9102
+ if (El(e)) return u(e, n);
9103
+ if (!Tl(e)) return null;
9098
9104
  var r = e.children.map(function (e, t) {
9099
9105
  return l(e, "".concat(n, "-").concat(t));
9100
9106
  });
9101
9107
  return e.type === "paragraph" ? (0, t.jsx)("p", {
9102
- className: Sl.paragraph,
9108
+ className: Cl.paragraph,
9103
9109
  children: r
9104
9110
  }, n) : (0, t.jsx)("span", {
9105
9111
  children: r
@@ -9118,7 +9124,7 @@ function Cl(_ref140) {
9118
9124
  r = s && e.includes(t);
9119
9125
  return {
9120
9126
  answer: r,
9121
- className: Ba(Sl.marker, a ? Sl["marker-button"] : "", n ? Sl["marker-selected"] : "", r ? Sl["marker-answer"] : ""),
9127
+ className: Ba(Cl.marker, a ? Cl["marker-button"] : "", n ? Cl["marker-selected"] : "", r ? Cl["marker-answer"] : ""),
9122
9128
  selected: n
9123
9129
  };
9124
9130
  }
@@ -9146,13 +9152,13 @@ function Cl(_ref140) {
9146
9152
  }, r);
9147
9153
  }
9148
9154
  }
9149
- function wl(e) {
9155
+ function Tl(e) {
9150
9156
  return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
9151
9157
  }
9152
- function Tl(e) {
9158
+ function El(e) {
9153
9159
  return !!(e && _typeof(e) == "object" && "text" in e && _typeof(e.text) == "string");
9154
9160
  }
9155
- function El(_ref141) {
9161
+ function Dl(_ref141) {
9156
9162
  var e = _ref141.item,
9157
9163
  n = _ref141.messages,
9158
9164
  r = _ref141.showAnswer;
@@ -9162,7 +9168,7 @@ function El(_ref141) {
9162
9168
  return e.text;
9163
9169
  });
9164
9170
  return (0, t.jsxs)(t.Fragment, {
9165
- children: [(0, t.jsx)(Cl, {
9171
+ children: [(0, t.jsx)(wl, {
9166
9172
  answerMarkers: e.answers,
9167
9173
  content: e.content,
9168
9174
  showAnswer: r
@@ -9176,7 +9182,7 @@ function El(_ref141) {
9176
9182
  }) : null]
9177
9183
  });
9178
9184
  }
9179
- function Dl(_ref142) {
9185
+ function Ol(_ref142) {
9180
9186
  var e = _ref142.disabled,
9181
9187
  n = _ref142.item,
9182
9188
  r = _ref142.messages,
@@ -9184,47 +9190,34 @@ function Dl(_ref142) {
9184
9190
  a = _ref142.response,
9185
9191
  o = _ref142.responseIndex,
9186
9192
  s = _ref142.showAnswer;
9187
- var c = Gs(a, o);
9188
- return s ? (0, t.jsx)(El, {
9193
+ var c = Ks(a, o);
9194
+ return s ? (0, t.jsx)(Dl, {
9189
9195
  item: n,
9190
9196
  messages: r,
9191
9197
  showAnswer: s
9192
- }) : (0, t.jsx)(Cl, {
9198
+ }) : (0, t.jsx)(wl, {
9193
9199
  answerMarkers: n.answers,
9194
9200
  content: n.content,
9195
9201
  disabled: e,
9196
9202
  onMarkerClick: function onMarkerClick(e) {
9197
9203
  return i(C(C({}, c), {}, {
9198
- selectedMarkers: tc(c.selectedMarkers, e)
9204
+ selectedMarkers: nc(c.selectedMarkers, e)
9199
9205
  }));
9200
9206
  },
9201
9207
  selectedMarkers: c.selectedMarkers
9202
9208
  });
9203
9209
  }
9204
- var Ol = {
9205
- placeholder: "_placeholder_xde95_1"
9206
- };
9207
9210
  function kl(_ref143) {
9208
- var e = _ref143.label;
9209
- return (0, t.jsx)("div", {
9210
- "aria-label": e,
9211
- className: Ol.placeholder,
9212
- children: e
9213
- });
9214
- }
9215
- function Al(_ref144) {
9216
- var e = _ref144.disabled,
9217
- n = _ref144.locale,
9218
- r = _ref144.label,
9219
- i = _ref144.messages,
9220
- a = _ref144.onChange,
9221
- o = _ref144.response,
9222
- s = _ref144.responseIndex,
9223
- c = _ref144.uploadImage;
9224
- var l = Ks(o, s);
9225
- return e ? A(l.content) ? (0, t.jsx)(kl, {
9226
- label: i.textResponsePlaceholder
9227
- }) : (0, t.jsx)(G, {
9211
+ var e = _ref143.disabled,
9212
+ n = _ref143.locale,
9213
+ r = _ref143.label,
9214
+ i = _ref143.messages,
9215
+ a = _ref143.onChange,
9216
+ o = _ref143.response,
9217
+ s = _ref143.responseIndex,
9218
+ c = _ref143.uploadImage;
9219
+ var l = qs(o, s);
9220
+ return e ? A(l.content) ? null : (0, t.jsx)(G, {
9228
9221
  content: l.content
9229
9222
  }) : (0, t.jsx)(Da, {
9230
9223
  ariaLabel: r,
@@ -9241,7 +9234,7 @@ function Al(_ref144) {
9241
9234
  value: l.content
9242
9235
  });
9243
9236
  }
9244
- function jl(e, n) {
9237
+ function Al(e, n) {
9245
9238
  return e.blanks.reduce(function (r, i) {
9246
9239
  var a;
9247
9240
  var o = (a = e.answers[i]) == null ? void 0 : a.trim();
@@ -9250,26 +9243,26 @@ function jl(e, n) {
9250
9243
  contents: [(0, t.jsx)(G, {
9251
9244
  content: O(o)
9252
9245
  }, "".concat(i, "-answer"))],
9253
- marker: bc([i], e.blanks, n)
9246
+ marker: xc([i], e.blanks, n)
9254
9247
  }]) : r;
9255
9248
  }, []);
9256
9249
  }
9257
- var Ml = {
9250
+ var jl = {
9258
9251
  "word-builder-blank": "_word-builder-blank_ftw6q_1",
9259
9252
  "word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
9260
9253
  };
9261
- function Nl(_ref145) {
9262
- var e = _ref145.disabled,
9263
- n = _ref145.element,
9264
- r = _ref145.item,
9265
- i = _ref145.messages,
9266
- a = _ref145.onChange,
9267
- o = _ref145.response,
9268
- s = _ref145.responseIndex,
9269
- c = _ref145.showAnswer;
9254
+ function Ml(_ref144) {
9255
+ var e = _ref144.disabled,
9256
+ n = _ref144.element,
9257
+ r = _ref144.item,
9258
+ i = _ref144.messages,
9259
+ a = _ref144.onChange,
9260
+ o = _ref144.response,
9261
+ s = _ref144.responseIndex,
9262
+ c = _ref144.showAnswer;
9270
9263
  var l = _n(r, !0, n),
9271
- u = zs(o, s, l.blanks),
9272
- d = jl(l, i.blankLabel);
9264
+ u = Bs(o, s, l.blanks),
9265
+ d = Al(l, i.blankLabel);
9273
9266
  function f(e, t) {
9274
9267
  a(C(C({}, u), {}, {
9275
9268
  answers: C(C({}, u.answers), {}, _defineProperty({}, e, t))
@@ -9298,15 +9291,15 @@ function Nl(_ref145) {
9298
9291
  }
9299
9292
  return (0, t.jsxs)("div", {
9300
9293
  className: U["fill-text"],
9301
- children: [(0, t.jsx)(zc, {
9294
+ children: [(0, t.jsx)(Bc, {
9302
9295
  content: l.content,
9303
- renderBlank: function renderBlank(_ref146) {
9304
- var n = _ref146.blankId,
9305
- r = _ref146.index,
9306
- a = _ref146.label;
9296
+ renderBlank: function renderBlank(_ref145) {
9297
+ var n = _ref145.blankId,
9298
+ r = _ref145.index,
9299
+ a = _ref145.label;
9307
9300
  var o, s;
9308
9301
  var c = (o = u.answers[n]) == null ? "" : o,
9309
- l = Pl({
9302
+ l = Nl({
9310
9303
  answers: c,
9311
9304
  blankLabel: i.blankLabel,
9312
9305
  canClear: !e && !!c.trim(),
@@ -9315,7 +9308,7 @@ function Nl(_ref145) {
9315
9308
  });
9316
9309
  return (0, t.jsx)("button", {
9317
9310
  "aria-label": l,
9318
- className: Ml["word-builder-blank"],
9311
+ className: jl["word-builder-blank"],
9319
9312
  disabled: e,
9320
9313
  onClick: function onClick() {
9321
9314
  return p(n);
@@ -9332,7 +9325,7 @@ function Nl(_ref145) {
9332
9325
  });
9333
9326
  }
9334
9327
  }), (0, t.jsx)("div", {
9335
- className: Ml["word-builder-candidate-list"],
9328
+ className: jl["word-builder-candidate-list"],
9336
9329
  children: l.candidateOptions.map(function (n, r) {
9337
9330
  return (0, t.jsx)("button", {
9338
9331
  disabled: e,
@@ -9353,30 +9346,30 @@ function Nl(_ref145) {
9353
9346
  }) : null]
9354
9347
  });
9355
9348
  }
9356
- function Pl(_ref147) {
9357
- var e = _ref147.answers,
9358
- t = _ref147.blankLabel,
9359
- n = _ref147.canClear,
9360
- r = _ref147.index,
9361
- i = _ref147.label;
9349
+ function Nl(_ref146) {
9350
+ var e = _ref146.answers,
9351
+ t = _ref146.blankLabel,
9352
+ n = _ref146.canClear,
9353
+ r = _ref146.index,
9354
+ i = _ref146.label;
9362
9355
  var a = i || "".concat(t).concat(r + 1);
9363
9356
  return !n || !e.trim() ? a : t === "\u7A7A" ? "".concat(a, "\uFF0C\u70B9\u51FB\u6E05\u7A7A") : "".concat(a, ", click to clear");
9364
9357
  }
9365
- function Fl(_ref148) {
9366
- var e = _ref148.disabled,
9367
- n = _ref148.element,
9368
- r = _ref148.item,
9369
- i = _ref148.locale,
9370
- a = _ref148.messages,
9371
- o = _ref148.onResponseItemChange,
9372
- s = _ref148.response,
9373
- c = _ref148.responseIndex,
9374
- l = _ref148.showAnswer,
9375
- u = _ref148.uploadImage;
9358
+ function Pl(_ref147) {
9359
+ var e = _ref147.disabled,
9360
+ n = _ref147.element,
9361
+ r = _ref147.item,
9362
+ i = _ref147.locale,
9363
+ a = _ref147.messages,
9364
+ o = _ref147.onResponseItemChange,
9365
+ s = _ref147.response,
9366
+ c = _ref147.responseIndex,
9367
+ l = _ref147.showAnswer,
9368
+ u = _ref147.uploadImage;
9376
9369
  if (n.type !== r.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(n.type, "\uFF0Cactual=").concat(r.type));
9377
9370
  return n.type === "richText" ? (0, t.jsx)(G, {
9378
9371
  content: r.content
9379
- }) : n.type === "textResponse" ? (0, t.jsx)(Al, {
9372
+ }) : n.type === "textResponse" ? (0, t.jsx)(kl, {
9380
9373
  disabled: e,
9381
9374
  label: n.name,
9382
9375
  locale: i,
@@ -9385,7 +9378,7 @@ function Fl(_ref148) {
9385
9378
  response: s,
9386
9379
  responseIndex: c,
9387
9380
  uploadImage: u
9388
- }) : n.type === "ordering" ? (0, t.jsx)(xl, {
9381
+ }) : n.type === "ordering" ? (0, t.jsx)(Sl, {
9389
9382
  disabled: e,
9390
9383
  item: r,
9391
9384
  messages: a,
@@ -9393,7 +9386,7 @@ function Fl(_ref148) {
9393
9386
  response: s,
9394
9387
  responseIndex: c,
9395
9388
  showAnswer: l
9396
- }) : n.type === "classification" ? (0, t.jsx)(Ic, {
9389
+ }) : n.type === "classification" ? (0, t.jsx)(Lc, {
9397
9390
  disabled: e,
9398
9391
  item: r,
9399
9392
  messages: a,
@@ -9401,7 +9394,7 @@ function Fl(_ref148) {
9401
9394
  response: s,
9402
9395
  responseIndex: c,
9403
9396
  showAnswer: l
9404
- }) : n.type === "textMarker" ? (0, t.jsx)(Dl, {
9397
+ }) : n.type === "textMarker" ? (0, t.jsx)(Ol, {
9405
9398
  disabled: e,
9406
9399
  item: r,
9407
9400
  messages: a,
@@ -9409,7 +9402,7 @@ function Fl(_ref148) {
9409
9402
  response: s,
9410
9403
  responseIndex: c,
9411
9404
  showAnswer: l
9412
- }) : Il({
9405
+ }) : Fl({
9413
9406
  disabled: e,
9414
9407
  element: n,
9415
9408
  item: r,
@@ -9422,18 +9415,18 @@ function Fl(_ref148) {
9422
9415
  uploadImage: u
9423
9416
  });
9424
9417
  }
9425
- function Il(_ref149) {
9426
- var e = _ref149.disabled,
9427
- n = _ref149.element,
9428
- r = _ref149.item,
9429
- i = _ref149.messages,
9430
- a = _ref149.onResponseItemChange,
9431
- o = _ref149.response,
9432
- s = _ref149.responseIndex,
9433
- c = _ref149.showAnswer;
9418
+ function Fl(_ref148) {
9419
+ var e = _ref148.disabled,
9420
+ n = _ref148.element,
9421
+ r = _ref148.item,
9422
+ i = _ref148.messages,
9423
+ a = _ref148.onResponseItemChange,
9424
+ o = _ref148.response,
9425
+ s = _ref148.responseIndex,
9426
+ c = _ref148.showAnswer;
9434
9427
  switch (n.type) {
9435
9428
  case "choice":
9436
- return (0, t.jsx)(yl, {
9429
+ return (0, t.jsx)(bl, {
9437
9430
  disabled: e,
9438
9431
  element: n,
9439
9432
  item: r,
@@ -9444,7 +9437,7 @@ function Il(_ref149) {
9444
9437
  showAnswer: c
9445
9438
  });
9446
9439
  case "fill":
9447
- return (0, t.jsx)(Mc, {
9440
+ return (0, t.jsx)(Nc, {
9448
9441
  disabled: e,
9449
9442
  item: r,
9450
9443
  messages: i,
@@ -9454,7 +9447,7 @@ function Il(_ref149) {
9454
9447
  showAnswer: c
9455
9448
  });
9456
9449
  case "inlineFill":
9457
- return (0, t.jsx)(el, {
9450
+ return (0, t.jsx)(tl, {
9458
9451
  disabled: e,
9459
9452
  element: n,
9460
9453
  item: r,
@@ -9465,7 +9458,7 @@ function Il(_ref149) {
9465
9458
  showAnswer: c
9466
9459
  });
9467
9460
  case "wordBuilder":
9468
- return (0, t.jsx)(Nl, {
9461
+ return (0, t.jsx)(Ml, {
9469
9462
  disabled: e,
9470
9463
  element: n,
9471
9464
  item: r,
@@ -9476,7 +9469,7 @@ function Il(_ref149) {
9476
9469
  showAnswer: c
9477
9470
  });
9478
9471
  case "judgement":
9479
- return (0, t.jsx)(al, {
9472
+ return (0, t.jsx)(ol, {
9480
9473
  disabled: e,
9481
9474
  element: n,
9482
9475
  item: r,
@@ -9487,7 +9480,7 @@ function Il(_ref149) {
9487
9480
  showAnswer: c
9488
9481
  });
9489
9482
  case "lineConnect":
9490
- return (0, t.jsx)(cl, {
9483
+ return (0, t.jsx)(ll, {
9491
9484
  disabled: e,
9492
9485
  item: r,
9493
9486
  messages: i,
@@ -9497,7 +9490,7 @@ function Il(_ref149) {
9497
9490
  showAnswer: c
9498
9491
  });
9499
9492
  case "matching":
9500
- return (0, t.jsx)(dl, {
9493
+ return (0, t.jsx)(fl, {
9501
9494
  disabled: e,
9502
9495
  item: r,
9503
9496
  messages: i,
@@ -9508,17 +9501,17 @@ function Il(_ref149) {
9508
9501
  });
9509
9502
  }
9510
9503
  }
9511
- var Ll = ["locale"];
9512
- function Rl(e) {
9504
+ var Il = ["locale"];
9505
+ function Ll(e) {
9513
9506
  var _e$locale = e.locale,
9514
9507
  n = _e$locale === void 0 ? "zh-CN" : _e$locale,
9515
- r = ma(e, Ll),
9508
+ r = ma(e, Il),
9516
9509
  i = us(r.value, r.questionTypeTemplates),
9517
9510
  a = hs(r.response, i);
9518
- return (0, t.jsx)(zl, C(C({}, r), {}, {
9511
+ return (0, t.jsx)(Rl, C(C({}, r), {}, {
9519
9512
  childIndexPath: [],
9520
9513
  locale: n,
9521
- messages: yc(n),
9514
+ messages: bc(n),
9522
9515
  onResponseChange: function onResponseChange(e) {
9523
9516
  return r.onResponseChange(ms(e, i));
9524
9517
  },
@@ -9526,24 +9519,24 @@ function Rl(e) {
9526
9519
  value: i
9527
9520
  }));
9528
9521
  }
9529
- function zl(_ref150) {
9530
- var e = _ref150.childIndexPath,
9531
- n = _ref150.className,
9532
- _ref150$disabled = _ref150.disabled,
9533
- r = _ref150$disabled === void 0 ? !1 : _ref150$disabled,
9534
- _ref150$locale = _ref150.locale,
9535
- i = _ref150$locale === void 0 ? "zh-CN" : _ref150$locale,
9536
- a = _ref150.messages,
9537
- o = _ref150.onResponseChange,
9538
- s = _ref150.response,
9539
- c = _ref150.rootQuestionNumber,
9540
- _ref150$showAnswer = _ref150.showAnswer,
9541
- l = _ref150$showAnswer === void 0 ? !1 : _ref150$showAnswer,
9542
- _ref150$showExtraAttr = _ref150.showExtraAttributes,
9543
- u = _ref150$showExtraAttr === void 0 ? !1 : _ref150$showExtraAttr,
9544
- d = _ref150.questionTypeTemplates,
9545
- f = _ref150.uploadImage,
9546
- p = _ref150.value;
9522
+ function Rl(_ref149) {
9523
+ var e = _ref149.childIndexPath,
9524
+ n = _ref149.className,
9525
+ _ref149$disabled = _ref149.disabled,
9526
+ r = _ref149$disabled === void 0 ? !1 : _ref149$disabled,
9527
+ _ref149$locale = _ref149.locale,
9528
+ i = _ref149$locale === void 0 ? "zh-CN" : _ref149$locale,
9529
+ a = _ref149.messages,
9530
+ o = _ref149.onResponseChange,
9531
+ s = _ref149.response,
9532
+ c = _ref149.rootQuestionNumber,
9533
+ _ref149$showAnswer = _ref149.showAnswer,
9534
+ l = _ref149$showAnswer === void 0 ? !1 : _ref149$showAnswer,
9535
+ _ref149$showExtraAttr = _ref149.showExtraAttributes,
9536
+ u = _ref149$showExtraAttr === void 0 ? !1 : _ref149$showExtraAttr,
9537
+ d = _ref149.questionTypeTemplates,
9538
+ f = _ref149.uploadImage,
9539
+ p = _ref149.value;
9547
9540
  var m = Zi(d, p);
9548
9541
  if (!m) return (0, t.jsx)("div", {
9549
9542
  className: H(U.root, n),
@@ -9552,7 +9545,7 @@ function zl(_ref150) {
9552
9545
  children: a.missingQuestionTypeTemplate
9553
9546
  })
9554
9547
  });
9555
- var h = Bl({
9548
+ var h = zl({
9556
9549
  childIndexPath: e,
9557
9550
  disabled: r,
9558
9551
  locale: i,
@@ -9569,27 +9562,27 @@ function zl(_ref150) {
9569
9562
  });
9570
9563
  return (0, t.jsx)("div", {
9571
9564
  className: H(U.root, n),
9572
- children: Wl(m, p) ? (0, t.jsx)("div", {
9565
+ children: Ul(m, p) ? (0, t.jsx)("div", {
9573
9566
  className: U.empty,
9574
9567
  children: a.previewEmpty
9575
9568
  }) : h
9576
9569
  });
9577
9570
  }
9578
- function Bl(e) {
9571
+ function zl(e) {
9579
9572
  return (0, t.jsxs)(t.Fragment, {
9580
- children: [Vl(e), Ul(e), Hl(e)]
9581
- });
9582
- }
9583
- function Vl(_ref151) {
9584
- var e = _ref151.disabled,
9585
- n = _ref151.locale,
9586
- r = _ref151.messages,
9587
- i = _ref151.onResponseChange,
9588
- a = _ref151.response,
9589
- o = _ref151.showAnswer,
9590
- s = _ref151.structure,
9591
- c = _ref151.uploadImage,
9592
- l = _ref151.value;
9573
+ children: [Bl(e), Hl(e), Vl(e)]
9574
+ });
9575
+ }
9576
+ function Bl(_ref150) {
9577
+ var e = _ref150.disabled,
9578
+ n = _ref150.locale,
9579
+ r = _ref150.messages,
9580
+ i = _ref150.onResponseChange,
9581
+ a = _ref150.response,
9582
+ o = _ref150.showAnswer,
9583
+ s = _ref150.structure,
9584
+ c = _ref150.uploadImage,
9585
+ l = _ref150.value;
9593
9586
  return s.elements.length === 0 ? null : (0, t.jsx)("div", {
9594
9587
  className: U["element-list"],
9595
9588
  children: s.elements.map(function (u, d) {
@@ -9599,14 +9592,14 @@ function Vl(_ref151) {
9599
9592
  }).length;
9600
9593
  return (0, t.jsx)("section", {
9601
9594
  className: U.element,
9602
- children: (0, t.jsx)(Fl, {
9595
+ children: (0, t.jsx)(Pl, {
9603
9596
  disabled: e,
9604
9597
  element: u,
9605
9598
  item: f,
9606
9599
  locale: n,
9607
9600
  messages: r,
9608
9601
  onResponseItemChange: function onResponseItemChange(e) {
9609
- return i(qs(a, p, e));
9602
+ return i(Js(a, p, e));
9610
9603
  },
9611
9604
  response: a,
9612
9605
  responseIndex: p,
@@ -9617,27 +9610,27 @@ function Vl(_ref151) {
9617
9610
  })
9618
9611
  });
9619
9612
  }
9620
- function Hl(_ref152) {
9621
- var e = _ref152.disabled,
9622
- n = _ref152.locale,
9623
- r = _ref152.messages,
9624
- i = _ref152.response,
9625
- a = _ref152.showExtraAttributes,
9626
- o = _ref152.structure,
9627
- s = _ref152.uploadImage,
9628
- c = _ref152.value;
9613
+ function Vl(_ref151) {
9614
+ var e = _ref151.disabled,
9615
+ n = _ref151.locale,
9616
+ r = _ref151.messages,
9617
+ i = _ref151.response,
9618
+ a = _ref151.showExtraAttributes,
9619
+ o = _ref151.structure,
9620
+ s = _ref151.uploadImage,
9621
+ c = _ref151.value;
9629
9622
  return a ? (0, t.jsx)("div", {
9630
9623
  className: U["element-list"],
9631
9624
  children: o.extras.map(function (a, o) {
9632
9625
  var l = Xt(c, o, a);
9633
9626
  return A(l.content) ? null : (0, t.jsxs)("section", {
9634
9627
  className: U.extra,
9635
- children: [(0, t.jsx)(kc, {
9628
+ children: [(0, t.jsx)(Ac, {
9636
9629
  children: a.name
9637
- }), (0, t.jsx)(Fl, {
9630
+ }), (0, t.jsx)(Pl, {
9638
9631
  disabled: e,
9639
- element: Gl(a),
9640
- item: Kl(l),
9632
+ element: Wl(a),
9633
+ item: Gl(l),
9641
9634
  locale: n,
9642
9635
  messages: r,
9643
9636
  onResponseItemChange: function onResponseItemChange() {
@@ -9652,29 +9645,29 @@ function Hl(_ref152) {
9652
9645
  })
9653
9646
  }) : null;
9654
9647
  }
9655
- function Ul(_ref153) {
9656
- var e = _ref153.childIndexPath,
9657
- n = _ref153.disabled,
9658
- r = _ref153.locale,
9659
- i = _ref153.messages,
9660
- a = _ref153.onResponseChange,
9661
- o = _ref153.response,
9662
- s = _ref153.rootQuestionNumber,
9663
- c = _ref153.showAnswer,
9664
- l = _ref153.showExtraAttributes,
9665
- u = _ref153.questionTypeTemplates,
9666
- d = _ref153.uploadImage,
9667
- f = _ref153.value;
9668
- return f.children.length === 0 ? null : (0, t.jsx)(Ac, {
9648
+ function Hl(_ref152) {
9649
+ var e = _ref152.childIndexPath,
9650
+ n = _ref152.disabled,
9651
+ r = _ref152.locale,
9652
+ i = _ref152.messages,
9653
+ a = _ref152.onResponseChange,
9654
+ o = _ref152.response,
9655
+ s = _ref152.rootQuestionNumber,
9656
+ c = _ref152.showAnswer,
9657
+ l = _ref152.showExtraAttributes,
9658
+ u = _ref152.questionTypeTemplates,
9659
+ d = _ref152.uploadImage,
9660
+ f = _ref152.value;
9661
+ return f.children.length === 0 ? null : (0, t.jsx)(jc, {
9669
9662
  childIndexPath: e,
9670
9663
  disabled: n,
9671
9664
  messages: i,
9672
9665
  onChildResponseChange: function onChildResponseChange(e, t) {
9673
- return a(Js(o, e, t));
9666
+ return a(Ys(o, e, t));
9674
9667
  },
9675
9668
  response: o,
9676
9669
  renderChild: function renderChild(e, a, o, f) {
9677
- return (0, t.jsx)(zl, {
9670
+ return (0, t.jsx)(Rl, {
9678
9671
  childIndexPath: f,
9679
9672
  disabled: n,
9680
9673
  locale: r,
@@ -9693,31 +9686,31 @@ function Ul(_ref153) {
9693
9686
  value: f
9694
9687
  });
9695
9688
  }
9696
- function Wl(e, t) {
9689
+ function Ul(e, t) {
9697
9690
  return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
9698
9691
  }
9699
- function Gl(e) {
9692
+ function Wl(e) {
9700
9693
  return {
9701
9694
  config: {},
9702
9695
  name: e.name,
9703
9696
  type: "richText"
9704
9697
  };
9705
9698
  }
9706
- function Kl(e) {
9699
+ function Gl(e) {
9707
9700
  return {
9708
9701
  content: e.content,
9709
9702
  type: "richText"
9710
9703
  };
9711
9704
  }
9712
- var ql = {
9705
+ var Kl = {
9713
9706
  "blank-list": "_blank-list_12ccp_1",
9714
9707
  "blank-item": "_blank-item_12ccp_11",
9715
9708
  "blank-field": "_blank-field_12ccp_17"
9716
9709
  };
9717
- function Jl(_ref154) {
9718
- var e = _ref154.item,
9719
- n = _ref154.messages,
9720
- r = _ref154.showAnswer;
9710
+ function ql(_ref153) {
9711
+ var e = _ref153.item,
9712
+ n = _ref153.messages,
9713
+ r = _ref153.showAnswer;
9721
9714
  var i = k(e.answers, e.blanks).map(function (r, i) {
9722
9715
  return {
9723
9716
  kind: "detailed",
@@ -9726,21 +9719,21 @@ function Jl(_ref154) {
9726
9719
  content: e
9727
9720
  }, "group-".concat(i, "-answer-").concat(n));
9728
9721
  }),
9729
- marker: bc(r.blankIds, e.blanks, n.blankLabel)
9722
+ marker: xc(r.blankIds, e.blanks, n.blankLabel)
9730
9723
  };
9731
9724
  });
9732
9725
  return (0, t.jsxs)("div", {
9733
9726
  className: W.element,
9734
9727
  children: [(0, t.jsx)("ol", {
9735
- className: ql["blank-list"],
9728
+ className: Kl["blank-list"],
9736
9729
  children: e.blanks.map(function (e, r) {
9737
9730
  return (0, t.jsx)("li", {
9738
- className: ql["blank-item"],
9731
+ className: Kl["blank-item"],
9739
9732
  children: (0, t.jsxs)("span", {
9740
- className: ql["blank-field"],
9733
+ className: Kl["blank-field"],
9741
9734
  children: [n.blankLabel, " ", r + 1]
9742
9735
  })
9743
- }, Yl(e, r));
9736
+ }, Jl(e, r));
9744
9737
  })
9745
9738
  }), r ? (0, t.jsx)(K, {
9746
9739
  groups: i,
@@ -9748,13 +9741,13 @@ function Jl(_ref154) {
9748
9741
  }) : null]
9749
9742
  });
9750
9743
  }
9751
- function Yl(e, t) {
9744
+ function Jl(e, t) {
9752
9745
  return e || "blank-".concat(t + 1);
9753
9746
  }
9754
- function Xl(_ref155) {
9755
- var e = _ref155.item,
9756
- n = _ref155.messages,
9757
- r = _ref155.showAnswer;
9747
+ function Yl(_ref154) {
9748
+ var e = _ref154.item,
9749
+ n = _ref154.messages,
9750
+ r = _ref154.showAnswer;
9758
9751
  return (0, t.jsxs)("div", {
9759
9752
  className: W.element,
9760
9753
  children: [(0, t.jsxs)("div", {
@@ -9787,18 +9780,18 @@ function Xl(_ref155) {
9787
9780
  })
9788
9781
  })]
9789
9782
  }), r ? (0, t.jsx)(K, {
9790
- groups: Fc(e),
9783
+ groups: Ic(e),
9791
9784
  title: n.standardAnswer
9792
9785
  }) : null]
9793
9786
  });
9794
9787
  }
9795
- function Zl(_ref156) {
9796
- var e = _ref156.element,
9797
- n = _ref156.item,
9798
- r = _ref156.messages,
9799
- i = _ref156.showAnswer;
9788
+ function Xl(_ref155) {
9789
+ var e = _ref155.element,
9790
+ n = _ref155.item,
9791
+ r = _ref155.messages,
9792
+ i = _ref155.showAnswer;
9800
9793
  var a = vn(n, e, !0),
9801
- o = Ec(a).map(function (e, n) {
9794
+ o = Dc(a).map(function (e, n) {
9802
9795
  return {
9803
9796
  kind: "detailed",
9804
9797
  contents: e.contents.map(function (e, r) {
@@ -9806,20 +9799,20 @@ function Zl(_ref156) {
9806
9799
  content: e
9807
9800
  }, "group-".concat(n, "-answer-").concat(r));
9808
9801
  }),
9809
- marker: bc(e.blankIds, a.blanks, r.blankLabel)
9802
+ marker: xc(e.blankIds, a.blanks, r.blankLabel)
9810
9803
  };
9811
9804
  });
9812
9805
  return (0, t.jsxs)("div", {
9813
9806
  className: W.element,
9814
9807
  children: [(0, t.jsx)(G, {
9815
9808
  content: a.content
9816
- }), Ql(a, r.candidateOptions), i ? (0, t.jsx)(K, {
9809
+ }), Zl(a, r.candidateOptions), i ? (0, t.jsx)(K, {
9817
9810
  groups: o,
9818
9811
  title: r.standardAnswer
9819
9812
  }) : null]
9820
9813
  });
9821
9814
  }
9822
- function Ql(e, n) {
9815
+ function Zl(e, n) {
9823
9816
  var r, i;
9824
9817
  var a = (r = e.candidateOptions) == null ? [] : r,
9825
9818
  o = (i = e.blankOptionGroups) == null ? [] : i;
@@ -9850,11 +9843,11 @@ function Ql(e, n) {
9850
9843
  })]
9851
9844
  });
9852
9845
  }
9853
- function $l(_ref157) {
9854
- var e = _ref157.element,
9855
- n = _ref157.item,
9856
- r = _ref157.messages,
9857
- i = _ref157.showAnswer;
9846
+ function Ql(_ref156) {
9847
+ var e = _ref156.element,
9848
+ n = _ref156.item,
9849
+ r = _ref156.messages,
9850
+ i = _ref156.showAnswer;
9858
9851
  var a = tn(e.config.judgeAnswerMode),
9859
9852
  o = [{
9860
9853
  kind: "detailed",
@@ -9865,9 +9858,9 @@ function $l(_ref157) {
9865
9858
  className: W.element,
9866
9859
  children: [(0, t.jsx)("ol", {
9867
9860
  className: W["judgement-list"],
9868
- children: a.map(function (_ref158) {
9869
- var e = _ref158.label,
9870
- n = _ref158.value;
9861
+ children: a.map(function (_ref157) {
9862
+ var e = _ref157.label,
9863
+ n = _ref157.value;
9871
9864
  return (0, t.jsx)("li", {
9872
9865
  className: W["judgement-item"],
9873
9866
  children: e
@@ -9879,10 +9872,10 @@ function $l(_ref157) {
9879
9872
  }) : null]
9880
9873
  });
9881
9874
  }
9882
- function eu(_ref159) {
9883
- var e = _ref159.item,
9884
- n = _ref159.messages,
9885
- r = _ref159.showAnswer;
9875
+ function $l(_ref158) {
9876
+ var e = _ref158.item,
9877
+ n = _ref158.messages,
9878
+ r = _ref158.showAnswer;
9886
9879
  var i = {
9887
9880
  gridTemplateColumns: "repeat(".concat(e.columns.length, ", minmax(12rem, 1fr))")
9888
9881
  };
@@ -9915,37 +9908,37 @@ function eu(_ref159) {
9915
9908
  })
9916
9909
  })
9917
9910
  }), r ? (0, t.jsx)(K, {
9918
- groups: ol(e),
9911
+ groups: sl(e),
9919
9912
  title: n.standardAnswer
9920
9913
  }) : null]
9921
9914
  });
9922
9915
  }
9923
- var tu = {
9916
+ var eu = {
9924
9917
  board: "_board_5xarh_1",
9925
9918
  columns: "_columns_5xarh_6",
9926
9919
  column: "_column_5xarh_6",
9927
9920
  item: "_item_5xarh_18",
9928
9921
  marker: "_marker_5xarh_42"
9929
9922
  };
9930
- function nu(_ref160) {
9931
- var e = _ref160.item,
9932
- n = _ref160.messages,
9933
- r = _ref160.showAnswer;
9923
+ function tu(_ref159) {
9924
+ var e = _ref159.item,
9925
+ n = _ref159.messages,
9926
+ r = _ref159.showAnswer;
9934
9927
  return (0, t.jsxs)("div", {
9935
9928
  className: W.element,
9936
9929
  children: [(0, t.jsx)("div", {
9937
- className: tu.board,
9930
+ className: eu.board,
9938
9931
  children: (0, t.jsx)("div", {
9939
- className: tu.columns,
9932
+ className: eu.columns,
9940
9933
  children: e.columns.map(function (e) {
9941
9934
  return (0, t.jsx)("section", {
9942
- className: tu.column,
9935
+ className: eu.column,
9943
9936
  children: e.items.map(function (n, r) {
9944
9937
  var i = $t(e.labelStyle, r);
9945
9938
  return (0, t.jsxs)("div", {
9946
- className: tu.item,
9939
+ className: eu.item,
9947
9940
  children: [i ? (0, t.jsx)("span", {
9948
- className: tu.marker,
9941
+ className: eu.marker,
9949
9942
  children: i
9950
9943
  }) : null, (0, t.jsx)(G, {
9951
9944
  content: n.content
@@ -9956,28 +9949,28 @@ function nu(_ref160) {
9956
9949
  })
9957
9950
  })
9958
9951
  }), r ? (0, t.jsx)(K, {
9959
- groups: ll(e),
9952
+ groups: ul(e),
9960
9953
  title: n.standardAnswer
9961
9954
  }) : null]
9962
9955
  });
9963
9956
  }
9964
- function ru(_ref161) {
9965
- var e = _ref161.element,
9966
- n = _ref161.item,
9967
- r = _ref161.messages,
9968
- i = _ref161.showAnswer;
9957
+ function nu(_ref160) {
9958
+ var e = _ref160.element,
9959
+ n = _ref160.item,
9960
+ r = _ref160.messages,
9961
+ i = _ref160.showAnswer;
9969
9962
  var a = rn(n, e.config.optionLabelStyle);
9970
9963
  if (e.config.renderer === "table") {
9971
- var _o3 = pl(e, n);
9964
+ var _o3 = ml(e, n);
9972
9965
  return (0, t.jsxs)("div", {
9973
9966
  className: W.element,
9974
9967
  children: [(0, t.jsx)("div", {
9975
- className: vl["table-wrap"],
9968
+ className: yl["table-wrap"],
9976
9969
  children: (0, t.jsxs)("table", {
9977
- className: vl.table,
9970
+ className: yl.table,
9978
9971
  children: [(0, t.jsxs)("colgroup", {
9979
9972
  children: [(0, t.jsx)("col", {
9980
- className: vl["table-option-column"]
9973
+ className: yl["table-option-column"]
9981
9974
  }), n.columns.map(function (e) {
9982
9975
  return (0, t.jsx)("col", {}, e.id);
9983
9976
  })]
@@ -9998,7 +9991,7 @@ function ru(_ref161) {
9998
9991
  return (0, t.jsxs)("tr", {
9999
9992
  children: [(0, t.jsx)("td", {
10000
9993
  children: (0, t.jsx)("span", {
10001
- className: vl["table-option-marker"],
9994
+ className: yl["table-option-marker"],
10002
9995
  children: e.marker
10003
9996
  })
10004
9997
  }), e.cells.map(function (n, r) {
@@ -10018,10 +10011,10 @@ function ru(_ref161) {
10018
10011
  }) : null]
10019
10012
  });
10020
10013
  }
10021
- var o = pl(e, n);
10014
+ var o = ml(e, n);
10022
10015
  return (0, t.jsxs)("div", {
10023
10016
  className: W.element,
10024
- children: [(0, t.jsx)(gl, {
10017
+ children: [(0, t.jsx)(_l, {
10025
10018
  children: a.map(function (e) {
10026
10019
  return (0, t.jsxs)("li", {
10027
10020
  className: W["option-item"],
@@ -10039,10 +10032,10 @@ function ru(_ref161) {
10039
10032
  }) : null]
10040
10033
  });
10041
10034
  }
10042
- function iu(_ref162) {
10043
- var e = _ref162.item,
10044
- n = _ref162.messages,
10045
- r = _ref162.showAnswer;
10035
+ function ru(_ref161) {
10036
+ var e = _ref161.item,
10037
+ n = _ref161.messages,
10038
+ r = _ref161.showAnswer;
10046
10039
  return (0, t.jsxs)("div", {
10047
10040
  className: W.element,
10048
10041
  children: [(0, t.jsx)("ol", {
@@ -10059,26 +10052,26 @@ function iu(_ref162) {
10059
10052
  }, e.id);
10060
10053
  })
10061
10054
  }), r ? (0, t.jsx)(K, {
10062
- groups: bl(e),
10055
+ groups: xl(e),
10063
10056
  title: n.standardAnswer
10064
10057
  }) : null]
10065
10058
  });
10066
10059
  }
10067
- function au(_ref163) {
10068
- var e = _ref163.element,
10069
- n = _ref163.item,
10070
- r = _ref163.messages,
10071
- i = _ref163.showAnswer;
10060
+ function iu(_ref162) {
10061
+ var e = _ref162.element,
10062
+ n = _ref162.item,
10063
+ r = _ref162.messages,
10064
+ i = _ref162.showAnswer;
10072
10065
  var a = _n(n, !0, e),
10073
- o = jl(a, r.blankLabel);
10066
+ o = Al(a, r.blankLabel);
10074
10067
  return (0, t.jsxs)("div", {
10075
10068
  className: W.element,
10076
- children: [(0, t.jsx)(zc, {
10069
+ children: [(0, t.jsx)(Bc, {
10077
10070
  content: a.content,
10078
- renderBlank: function renderBlank(_ref164) {
10079
- var e = _ref164.blankId,
10080
- n = _ref164.index,
10081
- i = _ref164.label;
10071
+ renderBlank: function renderBlank(_ref163) {
10072
+ var e = _ref163.blankId,
10073
+ n = _ref163.index,
10074
+ i = _ref163.label;
10082
10075
  return (0, t.jsx)("span", {
10083
10076
  "aria-label": i || "".concat(r.blankLabel).concat(n + 1),
10084
10077
  className: W["word-builder-blank"],
@@ -10105,81 +10098,81 @@ function au(_ref163) {
10105
10098
  }) : null]
10106
10099
  });
10107
10100
  }
10108
- function ou(_ref165) {
10109
- var e = _ref165.element,
10110
- n = _ref165.item,
10111
- r = _ref165.messages,
10112
- i = _ref165.showAnswer;
10101
+ function au(_ref164) {
10102
+ var e = _ref164.element,
10103
+ n = _ref164.item,
10104
+ r = _ref164.messages,
10105
+ i = _ref164.showAnswer;
10113
10106
  if (e.type !== n.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(e.type, "\uFF0Cactual=").concat(n.type));
10114
10107
  return e.type === "richText" ? (0, t.jsx)(G, {
10115
10108
  content: n.content
10116
- }) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(iu, {
10109
+ }) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(ru, {
10117
10110
  item: n,
10118
10111
  messages: r,
10119
10112
  showAnswer: i
10120
- }) : e.type === "classification" ? (0, t.jsx)(Xl, {
10113
+ }) : e.type === "classification" ? (0, t.jsx)(Yl, {
10121
10114
  item: n,
10122
10115
  messages: r,
10123
10116
  showAnswer: i
10124
- }) : e.type === "textMarker" ? (0, t.jsx)(El, {
10117
+ }) : e.type === "textMarker" ? (0, t.jsx)(Dl, {
10125
10118
  item: n,
10126
10119
  messages: r,
10127
10120
  showAnswer: i
10128
- }) : su({
10121
+ }) : ou({
10129
10122
  element: e,
10130
10123
  item: n,
10131
10124
  messages: r,
10132
10125
  showAnswer: i
10133
10126
  });
10134
10127
  }
10135
- function su(_ref166) {
10136
- var e = _ref166.element,
10137
- n = _ref166.item,
10138
- r = _ref166.messages,
10139
- i = _ref166.showAnswer;
10128
+ function ou(_ref165) {
10129
+ var e = _ref165.element,
10130
+ n = _ref165.item,
10131
+ r = _ref165.messages,
10132
+ i = _ref165.showAnswer;
10140
10133
  switch (e.type) {
10141
10134
  case "choice":
10142
- return (0, t.jsx)(ru, {
10135
+ return (0, t.jsx)(nu, {
10143
10136
  element: e,
10144
10137
  item: n,
10145
10138
  messages: r,
10146
10139
  showAnswer: i
10147
10140
  });
10148
10141
  case "fill":
10149
- return (0, t.jsx)(Jl, {
10142
+ return (0, t.jsx)(ql, {
10150
10143
  item: n,
10151
10144
  messages: r,
10152
10145
  showAnswer: i
10153
10146
  });
10154
10147
  case "inlineFill":
10155
- return (0, t.jsx)(Zl, {
10148
+ return (0, t.jsx)(Xl, {
10156
10149
  element: e,
10157
10150
  item: n,
10158
10151
  messages: r,
10159
10152
  showAnswer: i
10160
10153
  });
10161
10154
  case "wordBuilder":
10162
- return (0, t.jsx)(au, {
10155
+ return (0, t.jsx)(iu, {
10163
10156
  element: e,
10164
10157
  item: n,
10165
10158
  messages: r,
10166
10159
  showAnswer: i
10167
10160
  });
10168
10161
  case "judgement":
10169
- return (0, t.jsx)($l, {
10162
+ return (0, t.jsx)(Ql, {
10170
10163
  element: e,
10171
10164
  item: n,
10172
10165
  messages: r,
10173
10166
  showAnswer: i
10174
10167
  });
10175
10168
  case "lineConnect":
10176
- return (0, t.jsx)(eu, {
10169
+ return (0, t.jsx)($l, {
10177
10170
  item: n,
10178
10171
  messages: r,
10179
10172
  showAnswer: i
10180
10173
  });
10181
10174
  case "matching":
10182
- return (0, t.jsx)(nu, {
10175
+ return (0, t.jsx)(tu, {
10183
10176
  item: n,
10184
10177
  messages: r,
10185
10178
  showAnswer: i
@@ -10187,21 +10180,21 @@ function su(_ref166) {
10187
10180
  }
10188
10181
  }
10189
10182
  var X = {
10190
- root: "_root_1jseb_1",
10191
- empty: "_empty_1jseb_18",
10192
- "element-list": "_element-list_1jseb_30",
10193
- children: "_children_1jseb_31",
10194
- element: "_element_1jseb_30",
10195
- extra: "_extra_1jseb_41",
10196
- child: "_child_1jseb_31"
10183
+ root: "_root_13x11_1",
10184
+ empty: "_empty_13x11_17",
10185
+ "element-list": "_element-list_13x11_29",
10186
+ children: "_children_13x11_30",
10187
+ element: "_element_13x11_29",
10188
+ extra: "_extra_13x11_40",
10189
+ child: "_child_13x11_30"
10197
10190
  };
10198
- function cu(_ref167) {
10199
- var _ref167$childIndexPat = _ref167.childIndexPath,
10200
- e = _ref167$childIndexPat === void 0 ? [] : _ref167$childIndexPat,
10201
- n = _ref167.messages,
10202
- r = _ref167.renderChild,
10203
- i = _ref167.rootQuestionNumber,
10204
- a = _ref167.value;
10191
+ function su(_ref166) {
10192
+ var _ref166$childIndexPat = _ref166.childIndexPath,
10193
+ e = _ref166$childIndexPat === void 0 ? [] : _ref166$childIndexPat,
10194
+ n = _ref166.messages,
10195
+ r = _ref166.renderChild,
10196
+ i = _ref166.rootQuestionNumber,
10197
+ a = _ref166.value;
10205
10198
  return a.children.length === 0 ? (0, t.jsx)("div", {
10206
10199
  className: X.empty,
10207
10200
  children: n.previewEmpty
@@ -10221,29 +10214,29 @@ function cu(_ref167) {
10221
10214
  })
10222
10215
  });
10223
10216
  }
10224
- var lu = ["locale"];
10225
- function uu(e) {
10217
+ var cu = ["locale"];
10218
+ function lu(e) {
10226
10219
  var _e$locale2 = e.locale,
10227
10220
  n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
10228
- r = ma(e, lu),
10221
+ r = ma(e, cu),
10229
10222
  i = us(r.value, r.questionTypeTemplates);
10230
- return (0, t.jsx)(du, C(C({}, r), {}, {
10223
+ return (0, t.jsx)(uu, C(C({}, r), {}, {
10231
10224
  childIndexPath: [],
10232
- messages: yc(n),
10225
+ messages: bc(n),
10233
10226
  value: i
10234
10227
  }));
10235
10228
  }
10236
- function du(_ref168) {
10237
- var e = _ref168.childIndexPath,
10238
- n = _ref168.className,
10239
- r = _ref168.messages,
10240
- i = _ref168.rootQuestionNumber,
10241
- _ref168$showAnswer = _ref168.showAnswer,
10242
- a = _ref168$showAnswer === void 0 ? !1 : _ref168$showAnswer,
10243
- _ref168$showExtraAttr = _ref168.showExtraAttributes,
10244
- o = _ref168$showExtraAttr === void 0 ? !1 : _ref168$showExtraAttr,
10245
- s = _ref168.questionTypeTemplates,
10246
- c = _ref168.value;
10229
+ function uu(_ref167) {
10230
+ var e = _ref167.childIndexPath,
10231
+ n = _ref167.className,
10232
+ r = _ref167.messages,
10233
+ i = _ref167.rootQuestionNumber,
10234
+ _ref167$showAnswer = _ref167.showAnswer,
10235
+ a = _ref167$showAnswer === void 0 ? !1 : _ref167$showAnswer,
10236
+ _ref167$showExtraAttr = _ref167.showExtraAttributes,
10237
+ o = _ref167$showExtraAttr === void 0 ? !1 : _ref167$showExtraAttr,
10238
+ s = _ref167.questionTypeTemplates,
10239
+ c = _ref167.value;
10247
10240
  var l = Zi(s, c);
10248
10241
  if (!l) return (0, t.jsx)("div", {
10249
10242
  className: H(X.root, n),
@@ -10258,7 +10251,7 @@ function du(_ref168) {
10258
10251
  var i = Yt(c, n, e);
10259
10252
  return (0, t.jsx)("section", {
10260
10253
  className: X.element,
10261
- children: (0, t.jsx)(ou, {
10254
+ children: (0, t.jsx)(au, {
10262
10255
  element: e,
10263
10256
  item: i,
10264
10257
  messages: r,
@@ -10273,11 +10266,11 @@ function du(_ref168) {
10273
10266
  var i = Xt(c, n, e);
10274
10267
  return A(i.content) ? null : (0, t.jsxs)("section", {
10275
10268
  className: X.extra,
10276
- children: [(0, t.jsx)(kc, {
10269
+ children: [(0, t.jsx)(Ac, {
10277
10270
  children: e.name
10278
- }), (0, t.jsx)(ou, {
10279
- element: pu(e),
10280
- item: mu(i),
10271
+ }), (0, t.jsx)(au, {
10272
+ element: fu(e),
10273
+ item: pu(i),
10281
10274
  messages: r,
10282
10275
  showAnswer: !1
10283
10276
  })]
@@ -10285,11 +10278,11 @@ function du(_ref168) {
10285
10278
  })
10286
10279
  }) : null,
10287
10280
  f = (0, t.jsxs)(t.Fragment, {
10288
- children: [u, c.children.length === 0 ? null : (0, t.jsx)(cu, {
10281
+ children: [u, c.children.length === 0 ? null : (0, t.jsx)(su, {
10289
10282
  childIndexPath: e,
10290
10283
  messages: r,
10291
10284
  renderChild: function renderChild(e, n) {
10292
- return (0, t.jsx)(du, {
10285
+ return (0, t.jsx)(uu, {
10293
10286
  childIndexPath: n,
10294
10287
  messages: r,
10295
10288
  rootQuestionNumber: i,
@@ -10305,29 +10298,29 @@ function du(_ref168) {
10305
10298
  });
10306
10299
  return (0, t.jsx)("div", {
10307
10300
  className: H(X.root, n),
10308
- children: fu(l, c) ? (0, t.jsx)("div", {
10301
+ children: du(l, c) ? (0, t.jsx)("div", {
10309
10302
  className: X.empty,
10310
10303
  children: r.previewEmpty
10311
10304
  }) : f
10312
10305
  });
10313
10306
  }
10314
- function fu(e, t) {
10307
+ function du(e, t) {
10315
10308
  return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
10316
10309
  }
10317
- function pu(e) {
10310
+ function fu(e) {
10318
10311
  return {
10319
10312
  config: {},
10320
10313
  name: e.name,
10321
10314
  type: "richText"
10322
10315
  };
10323
10316
  }
10324
- function mu(e) {
10317
+ function pu(e) {
10325
10318
  return {
10326
10319
  content: e.content,
10327
10320
  type: "richText"
10328
10321
  };
10329
10322
  }
10330
- var hu = {
10323
+ var mu = {
10331
10324
  root: "_root_17bqr_1",
10332
10325
  toolbar: "_toolbar_17bqr_26",
10333
10326
  "toolbar-title": "_toolbar-title_17bqr_36",
@@ -10382,7 +10375,7 @@ var hu = {
10382
10375
  "palette-section-title": "_palette-section-title_vhj2r_62",
10383
10376
  "palette-button": "_palette-button_vhj2r_70"
10384
10377
  },
10385
- gu = {
10378
+ hu = {
10386
10379
  "en-US": {
10387
10380
  addElement: "Add element",
10388
10381
  addExtra: "Add extra attribute",
@@ -10516,26 +10509,26 @@ var hu = {
10516
10509
  wordBuilderLabel: "\u7EC4\u8BCD\u62FC\u5199"
10517
10510
  }
10518
10511
  };
10519
- function _u(e, t) {
10512
+ function gu(e, t) {
10520
10513
  var n;
10521
10514
  return (n = e.extraDescriptions.get(t)) == null ? t : n;
10522
10515
  }
10523
- function vu(e, t) {
10516
+ function _u(e, t) {
10524
10517
  var n;
10525
10518
  return (n = e.extraLabels.get(t)) == null ? t : n;
10526
10519
  }
10527
- function yu(e) {
10520
+ function vu(e) {
10528
10521
  switch (e) {
10529
10522
  case "en-US":
10530
- return gu["en-US"];
10523
+ return hu["en-US"];
10531
10524
  case "zh-CN":
10532
- return gu["zh-CN"];
10525
+ return hu["zh-CN"];
10533
10526
  }
10534
10527
  }
10535
- function bu(e, t) {
10536
- return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : Cu(e, t);
10528
+ function yu(e, t) {
10529
+ return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : Su(e, t);
10537
10530
  }
10538
- var xu = {
10531
+ var bu = {
10539
10532
  choice: function choice(e) {
10540
10533
  return e.optionGroupDescription;
10541
10534
  },
@@ -10567,7 +10560,7 @@ var xu = {
10567
10560
  return e.wordBuilderDescription;
10568
10561
  }
10569
10562
  },
10570
- Su = {
10563
+ xu = {
10571
10564
  choice: function choice(e) {
10572
10565
  return e.optionGroupLabel;
10573
10566
  },
@@ -10599,40 +10592,40 @@ var xu = {
10599
10592
  return e.wordBuilderLabel;
10600
10593
  }
10601
10594
  };
10595
+ function Su(e, t) {
10596
+ return bu[t](e);
10597
+ }
10602
10598
  function Cu(e, t) {
10603
- return xu[t](e);
10599
+ return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : wu(e, t);
10604
10600
  }
10605
10601
  function wu(e, t) {
10606
- return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : Tu(e, t);
10602
+ return xu[t](e);
10607
10603
  }
10608
10604
  function Tu(e, t) {
10609
- return Su[t](e);
10610
- }
10611
- function Eu(e, t) {
10612
10605
  var n;
10613
10606
  return (n = e.optionValueLabels.get(t)) == null ? t : n;
10614
10607
  }
10615
- function Du(e, t) {
10608
+ function Eu(e, t) {
10616
10609
  var n;
10617
10610
  return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
10618
10611
  }
10619
- function Ou(e, t) {
10612
+ function Du(e, t) {
10620
10613
  var n;
10621
10614
  return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
10622
10615
  }
10623
- function ku(_ref169) {
10624
- var e = _ref169.elements,
10625
- r = _ref169.extras,
10626
- i = _ref169.labels,
10627
- a = _ref169.onDeleteElement,
10628
- o = _ref169.onDeleteExtra,
10629
- s = _ref169.onMoveElement,
10630
- c = _ref169.onSelectElement,
10631
- l = _ref169.selectedElementClientId;
10632
- var _ref170 = (0, n.useState)(null),
10633
- _ref171 = _slicedToArray(_ref170, 2),
10634
- u = _ref171[0],
10635
- d = _ref171[1];
10616
+ function Ou(_ref168) {
10617
+ var e = _ref168.elements,
10618
+ r = _ref168.extras,
10619
+ i = _ref168.labels,
10620
+ a = _ref168.onDeleteElement,
10621
+ o = _ref168.onDeleteExtra,
10622
+ s = _ref168.onMoveElement,
10623
+ c = _ref168.onSelectElement,
10624
+ l = _ref168.selectedElementClientId;
10625
+ var _ref169 = (0, n.useState)(null),
10626
+ _ref170 = _slicedToArray(_ref169, 2),
10627
+ u = _ref170[0],
10628
+ d = _ref170[1];
10636
10629
  return (0, t.jsxs)("section", {
10637
10630
  className: Q.panel,
10638
10631
  children: [(0, t.jsxs)("div", {
@@ -10651,7 +10644,7 @@ function ku(_ref169) {
10651
10644
  className: Z["element-list"],
10652
10645
  children: [e.map(function (n, r) {
10653
10646
  var o = n.clientId === l,
10654
- f = wu(i, n.type);
10647
+ f = Cu(i, n.type);
10655
10648
  return (0, t.jsxs)("div", {
10656
10649
  className: "".concat(Z["element-card"], " ").concat(o ? Z.active : ""),
10657
10650
  onClick: function onClick() {
@@ -10720,7 +10713,7 @@ function ku(_ref169) {
10720
10713
  children: i.extraTitle
10721
10714
  }) : null, r.map(function (n, r) {
10722
10715
  var a = n.clientId === l,
10723
- s = vu(i, n.type);
10716
+ s = _u(i, n.type);
10724
10717
  return (0, t.jsxs)("div", {
10725
10718
  className: "".concat(Z["element-card"], " ").concat(a ? Z.active : ""),
10726
10719
  onClick: function onClick() {
@@ -10772,11 +10765,11 @@ function ku(_ref169) {
10772
10765
  })]
10773
10766
  });
10774
10767
  }
10775
- function Au(_ref172) {
10776
- var e = _ref172.addedExtraTypes,
10777
- n = _ref172.labels,
10778
- r = _ref172.onAddElement,
10779
- i = _ref172.onAddExtra;
10768
+ function ku(_ref171) {
10769
+ var e = _ref171.addedExtraTypes,
10770
+ n = _ref171.labels,
10771
+ r = _ref171.onAddElement,
10772
+ i = _ref171.onAddExtra;
10780
10773
  var a = new Set(e);
10781
10774
  return (0, t.jsxs)("aside", {
10782
10775
  className: Q.panel,
@@ -10790,16 +10783,16 @@ function Au(_ref172) {
10790
10783
  className: Q.palette,
10791
10784
  children: ee.map(function (e) {
10792
10785
  return (0, t.jsxs)("button", {
10793
- "aria-label": "".concat(n.addElement, ": ").concat(wu(n, e)),
10786
+ "aria-label": "".concat(n.addElement, ": ").concat(Cu(n, e)),
10794
10787
  className: Q["palette-button"],
10795
10788
  onClick: function onClick() {
10796
10789
  return r(e);
10797
10790
  },
10798
10791
  type: "button",
10799
10792
  children: [(0, t.jsx)("strong", {
10800
- children: wu(n, e)
10793
+ children: Cu(n, e)
10801
10794
  }), (0, t.jsx)("small", {
10802
- children: bu(n, e)
10795
+ children: yu(n, e)
10803
10796
  })]
10804
10797
  }, e);
10805
10798
  })
@@ -10813,7 +10806,7 @@ function Au(_ref172) {
10813
10806
  children: w.map(function (e) {
10814
10807
  var r = a.has(e);
10815
10808
  return (0, t.jsxs)("button", {
10816
- "aria-label": "".concat(n.addExtra, ": ").concat(vu(n, e)),
10809
+ "aria-label": "".concat(n.addExtra, ": ").concat(_u(n, e)),
10817
10810
  className: Q["palette-button"],
10818
10811
  disabled: r,
10819
10812
  onClick: function onClick() {
@@ -10821,9 +10814,9 @@ function Au(_ref172) {
10821
10814
  },
10822
10815
  type: "button",
10823
10816
  children: [(0, t.jsx)("strong", {
10824
- children: vu(n, e)
10825
- }), (0, t.jsx)("small", {
10826
10817
  children: _u(n, e)
10818
+ }), (0, t.jsx)("small", {
10819
+ children: gu(n, e)
10827
10820
  })]
10828
10821
  }, e);
10829
10822
  })
@@ -10841,26 +10834,26 @@ var $ = {
10841
10834
  textarea: "_textarea_tgswd_28",
10842
10835
  empty: "_empty_tgswd_61"
10843
10836
  },
10844
- ju = ["none", "sharedPool", "perBlankOptions"],
10845
- Mu = ["upperAlpha", "lowerAlpha", "number"],
10846
- Nu = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
10847
- Pu = [2, 3, 4, 5],
10848
- Fu = ["standard", "table"],
10849
- Iu = ["single", "multiple"],
10850
- Lu = ["spelling", "sentence"],
10851
- Ru = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
10852
- function zu(_ref173) {
10853
- var e = _ref173.description,
10854
- n = _ref173.globalConfig,
10855
- r = _ref173.isSubjective,
10856
- i = _ref173.labels,
10857
- a = _ref173.onElementChange,
10858
- o = _ref173.onExtraChange,
10859
- s = _ref173.onGlobalConfigChange,
10860
- c = _ref173.onMetadataChange,
10861
- l = _ref173.selectedExtra,
10862
- u = _ref173.selectedElement;
10863
- var d = Bu({
10837
+ Au = ["none", "sharedPool", "perBlankOptions"],
10838
+ ju = ["upperAlpha", "lowerAlpha", "number"],
10839
+ Mu = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
10840
+ Nu = [2, 3, 4, 5],
10841
+ Pu = ["standard", "table"],
10842
+ Fu = ["single", "multiple"],
10843
+ Iu = ["spelling", "sentence"],
10844
+ Lu = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
10845
+ function Ru(_ref172) {
10846
+ var e = _ref172.description,
10847
+ n = _ref172.globalConfig,
10848
+ r = _ref172.isSubjective,
10849
+ i = _ref172.labels,
10850
+ a = _ref172.onElementChange,
10851
+ o = _ref172.onExtraChange,
10852
+ s = _ref172.onGlobalConfigChange,
10853
+ c = _ref172.onMetadataChange,
10854
+ l = _ref172.selectedExtra,
10855
+ u = _ref172.selectedElement;
10856
+ var d = zu({
10864
10857
  labels: i,
10865
10858
  onElementChange: a,
10866
10859
  onExtraChange: o,
@@ -10971,12 +10964,12 @@ function zu(_ref173) {
10971
10964
  })]
10972
10965
  });
10973
10966
  }
10974
- function Bu(_ref174) {
10975
- var e = _ref174.labels,
10976
- n = _ref174.onElementChange,
10977
- r = _ref174.onExtraChange,
10978
- i = _ref174.selectedElement,
10979
- a = _ref174.selectedExtra;
10967
+ function zu(_ref173) {
10968
+ var e = _ref173.labels,
10969
+ n = _ref173.onElementChange,
10970
+ r = _ref173.onExtraChange,
10971
+ i = _ref173.selectedElement,
10972
+ a = _ref173.selectedExtra;
10980
10973
  return i ? (0, t.jsxs)("div", {
10981
10974
  className: $["form-stack"],
10982
10975
  children: [(0, t.jsxs)("label", {
@@ -11005,7 +10998,7 @@ function Bu(_ref174) {
11005
10998
  },
11006
10999
  value: i.enName
11007
11000
  })]
11008
- }), Vu(i, e, n)]
11001
+ }), Bu(i, e, n)]
11009
11002
  }) : a ? (0, t.jsxs)("div", {
11010
11003
  className: $["form-stack"],
11011
11004
  children: [(0, t.jsxs)("label", {
@@ -11040,10 +11033,10 @@ function Bu(_ref174) {
11040
11033
  children: e.noElement
11041
11034
  });
11042
11035
  }
11043
- function Vu(e, t, n) {
11044
- return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Hu(e, t, n);
11036
+ function Bu(e, t, n) {
11037
+ return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Vu(e, t, n);
11045
11038
  }
11046
- function Hu(e, n, r) {
11039
+ function Vu(e, n, r) {
11047
11040
  switch (e.type) {
11048
11041
  case "inlineFill":
11049
11042
  return (0, t.jsxs)(t.Fragment, {
@@ -11061,10 +11054,10 @@ function Hu(e, n, r) {
11061
11054
  }));
11062
11055
  },
11063
11056
  value: e.config.candidateMode,
11064
- children: ju.map(function (e) {
11057
+ children: Au.map(function (e) {
11065
11058
  return (0, t.jsx)("option", {
11066
11059
  value: e,
11067
- children: Du(n, e)
11060
+ children: Eu(n, e)
11068
11061
  }, e);
11069
11062
  })
11070
11063
  })]
@@ -11100,10 +11093,10 @@ function Hu(e, n, r) {
11100
11093
  }));
11101
11094
  },
11102
11095
  value: e.config.builderMode,
11103
- children: Lu.map(function (e) {
11096
+ children: Iu.map(function (e) {
11104
11097
  return (0, t.jsx)("option", {
11105
11098
  value: e,
11106
- children: Eu(n, e)
11099
+ children: Tu(n, e)
11107
11100
  }, e);
11108
11101
  })
11109
11102
  })]
@@ -11123,23 +11116,23 @@ function Hu(e, n, r) {
11123
11116
  }));
11124
11117
  },
11125
11118
  value: e.config.judgeAnswerMode,
11126
- children: Ru.map(function (e) {
11119
+ children: Lu.map(function (e) {
11127
11120
  return (0, t.jsx)("option", {
11128
11121
  value: e,
11129
- children: Eu(n, e)
11122
+ children: Tu(n, e)
11130
11123
  }, e);
11131
11124
  })
11132
11125
  })]
11133
11126
  });
11134
11127
  case "choice":
11135
- return Uu(e, n, r);
11128
+ return Hu(e, n, r);
11136
11129
  case "lineConnect":
11137
- return Wu(e, n, r);
11130
+ return Uu(e, n, r);
11138
11131
  case "matching":
11139
- return Gu(e, n, r);
11132
+ return Wu(e, n, r);
11140
11133
  }
11141
11134
  }
11142
- function Uu(e, n, r) {
11135
+ function Hu(e, n, r) {
11143
11136
  return (0, t.jsxs)(t.Fragment, {
11144
11137
  children: [(0, t.jsxs)("label", {
11145
11138
  className: $["form-row"],
@@ -11155,10 +11148,10 @@ function Uu(e, n, r) {
11155
11148
  }));
11156
11149
  },
11157
11150
  value: e.config.selectionType,
11158
- children: Iu.map(function (e) {
11151
+ children: Fu.map(function (e) {
11159
11152
  return (0, t.jsx)("option", {
11160
11153
  value: e,
11161
- children: Eu(n, e)
11154
+ children: Tu(n, e)
11162
11155
  }, e);
11163
11156
  })
11164
11157
  })]
@@ -11176,10 +11169,10 @@ function Uu(e, n, r) {
11176
11169
  }));
11177
11170
  },
11178
11171
  value: e.config.optionLabelStyle,
11179
- children: Mu.map(function (e) {
11172
+ children: ju.map(function (e) {
11180
11173
  return (0, t.jsx)("option", {
11181
11174
  value: e,
11182
- children: Eu(n, e)
11175
+ children: Tu(n, e)
11183
11176
  }, e);
11184
11177
  })
11185
11178
  })]
@@ -11197,18 +11190,18 @@ function Uu(e, n, r) {
11197
11190
  }));
11198
11191
  },
11199
11192
  value: e.config.renderer,
11200
- children: Fu.map(function (e) {
11193
+ children: Pu.map(function (e) {
11201
11194
  return (0, t.jsx)("option", {
11202
11195
  value: e,
11203
- children: Eu(n, e)
11196
+ children: Tu(n, e)
11204
11197
  }, e);
11205
11198
  })
11206
11199
  })]
11207
11200
  })]
11208
11201
  });
11209
11202
  }
11210
- function Wu(e, n, r) {
11211
- var i = Ku(e.config.columns);
11203
+ function Uu(e, n, r) {
11204
+ var i = Gu(e.config.columns);
11212
11205
  return (0, t.jsxs)(t.Fragment, {
11213
11206
  children: [(0, t.jsxs)("label", {
11214
11207
  className: $["form-row"],
@@ -11219,12 +11212,12 @@ function Wu(e, n, r) {
11219
11212
  onChange: function onChange(t) {
11220
11213
  return r(C(C({}, e), {}, {
11221
11214
  config: {
11222
- columns: Ju(i, Number(t.target.value))
11215
+ columns: qu(i, Number(t.target.value))
11223
11216
  }
11224
11217
  }));
11225
11218
  },
11226
11219
  value: i.length,
11227
- children: Pu.map(function (e) {
11220
+ children: Nu.map(function (e) {
11228
11221
  return (0, t.jsx)("option", {
11229
11222
  value: e,
11230
11223
  children: e
@@ -11250,10 +11243,10 @@ function Wu(e, n, r) {
11250
11243
  }));
11251
11244
  },
11252
11245
  value: a.labelStyle,
11253
- children: Nu.map(function (e) {
11246
+ children: Mu.map(function (e) {
11254
11247
  return (0, t.jsx)("option", {
11255
11248
  value: e,
11256
- children: Ou(n, e)
11249
+ children: Du(n, e)
11257
11250
  }, e);
11258
11251
  })
11259
11252
  })]
@@ -11261,8 +11254,8 @@ function Wu(e, n, r) {
11261
11254
  })]
11262
11255
  });
11263
11256
  }
11264
- function Gu(e, n, r) {
11265
- var i = qu(e.config.columns);
11257
+ function Wu(e, n, r) {
11258
+ var i = Ku(e.config.columns);
11266
11259
  return (0, t.jsx)(t.Fragment, {
11267
11260
  children: i.map(function (a, o) {
11268
11261
  return (0, t.jsxs)("label", {
@@ -11283,10 +11276,10 @@ function Gu(e, n, r) {
11283
11276
  }));
11284
11277
  },
11285
11278
  value: a.labelStyle,
11286
- children: Nu.map(function (e) {
11279
+ children: Mu.map(function (e) {
11287
11280
  return (0, t.jsx)("option", {
11288
11281
  value: e,
11289
- children: Ou(n, e)
11282
+ children: Du(n, e)
11290
11283
  }, e);
11291
11284
  })
11292
11285
  })]
@@ -11294,46 +11287,46 @@ function Gu(e, n, r) {
11294
11287
  })
11295
11288
  });
11296
11289
  }
11297
- function Ku(e) {
11290
+ function Gu(e) {
11298
11291
  var t = e.slice(0, 5);
11299
- return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Nu.slice(t.length, 2).map(function (e) {
11292
+ return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Mu.slice(t.length, 2).map(function (e) {
11300
11293
  return {
11301
11294
  labelStyle: e
11302
11295
  };
11303
11296
  })));
11304
11297
  }
11305
- function qu(e) {
11298
+ function Ku(e) {
11306
11299
  var t = e.slice(0, 2);
11307
- return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Nu.slice(t.length, 2).map(function (e) {
11300
+ return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Mu.slice(t.length, 2).map(function (e) {
11308
11301
  return {
11309
11302
  labelStyle: e
11310
11303
  };
11311
11304
  })));
11312
11305
  }
11313
- function Ju(e, t) {
11306
+ function qu(e, t) {
11314
11307
  return Array.from({
11315
11308
  length: Math.min(5, Math.max(2, t))
11316
11309
  }, function (t, n) {
11317
11310
  var r, i;
11318
11311
  return (r = e.slice(n, n + 1)[0]) == null ? {
11319
- labelStyle: (i = Nu[n]) == null ? "number" : i
11312
+ labelStyle: (i = Mu[n]) == null ? "number" : i
11320
11313
  } : r;
11321
11314
  });
11322
11315
  }
11323
- function Yu(_ref175) {
11324
- var _ref175$locale = _ref175.locale,
11325
- e = _ref175$locale === void 0 ? "zh-CN" : _ref175$locale,
11326
- r = _ref175.onChange,
11327
- i = _ref175.value;
11316
+ function Ju(_ref174) {
11317
+ var _ref174$locale = _ref174.locale,
11318
+ e = _ref174$locale === void 0 ? "zh-CN" : _ref174$locale,
11319
+ r = _ref174.onChange,
11320
+ i = _ref174.value;
11328
11321
  var a, o, s, c;
11329
- var l = yu(e),
11330
- _ref176 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
11331
- _ref177 = _slicedToArray(_ref176, 2),
11332
- u = _ref177[0],
11333
- d = _ref177[1],
11334
- _Xu = Xu(i, u),
11335
- f = _Xu.selectedElement,
11336
- p = _Xu.selectedExtra;
11322
+ var l = vu(e),
11323
+ _ref175 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
11324
+ _ref176 = _slicedToArray(_ref175, 2),
11325
+ u = _ref176[0],
11326
+ d = _ref176[1],
11327
+ _Yu = Yu(i, u),
11328
+ f = _Yu.selectedElement,
11329
+ p = _Yu.selectedExtra;
11337
11330
  function m(e) {
11338
11331
  var t = oe(e, i.elements);
11339
11332
  r(C(C({}, i), {}, {
@@ -11351,11 +11344,11 @@ function Yu(_ref175) {
11351
11344
  }
11352
11345
  function g(e) {
11353
11346
  var t = ue(i, e);
11354
- r(t), d(Zu(t));
11347
+ r(t), d(Xu(t));
11355
11348
  }
11356
11349
  function _(e) {
11357
11350
  var t = le(i, e);
11358
- r(t), d(Zu(t));
11351
+ r(t), d(Xu(t));
11359
11352
  }
11360
11353
  function v(e) {
11361
11354
  r(pe(i, e.clientId, e));
@@ -11370,19 +11363,19 @@ function Yu(_ref175) {
11370
11363
  r(he(i, e));
11371
11364
  }
11372
11365
  return (0, t.jsx)("section", {
11373
- className: hu.root,
11366
+ className: mu.root,
11374
11367
  children: (0, t.jsx)("div", {
11375
11368
  className: Q.shell,
11376
11369
  children: (0, t.jsxs)("div", {
11377
11370
  className: Q.grid,
11378
- children: [(0, t.jsx)(Au, {
11371
+ children: [(0, t.jsx)(ku, {
11379
11372
  addedExtraTypes: i.extras.map(function (e) {
11380
11373
  return e.type;
11381
11374
  }),
11382
11375
  labels: l,
11383
11376
  onAddElement: m,
11384
11377
  onAddExtra: h
11385
- }), (0, t.jsx)(ku, {
11378
+ }), (0, t.jsx)(Ou, {
11386
11379
  elements: i.elements,
11387
11380
  extras: i.extras,
11388
11381
  labels: l,
@@ -11393,7 +11386,7 @@ function Yu(_ref175) {
11393
11386
  },
11394
11387
  onSelectElement: d,
11395
11388
  selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
11396
- }), (0, t.jsx)(zu, {
11389
+ }), (0, t.jsx)(Ru, {
11397
11390
  description: i.description,
11398
11391
  globalConfig: i.globalConfig,
11399
11392
  isSubjective: i.isSubjective,
@@ -11409,7 +11402,7 @@ function Yu(_ref175) {
11409
11402
  })
11410
11403
  });
11411
11404
  }
11412
- function Xu(e, t) {
11405
+ function Yu(e, t) {
11413
11406
  var n, r, i, a;
11414
11407
  var o = (n = e.elements.find(function (e) {
11415
11408
  return e.clientId === t;
@@ -11425,8 +11418,8 @@ function Xu(e, t) {
11425
11418
  selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
11426
11419
  };
11427
11420
  }
11428
- function Zu(e) {
11421
+ function Xu(e) {
11429
11422
  var t, n, r, i;
11430
11423
  return (t = (n = (r = e.elements[0]) == null ? void 0 : r.clientId) == null ? (i = e.extras[0]) == null ? void 0 : i.clientId : n) == null ? null : t;
11431
11424
  }
11432
- exports.QuestionContentEditor = qo, exports.QuestionPlayer = Rl, exports.QuestionPreview = uu, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = Yu, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Ps, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Xo, exports.createQuestionPreviewDraft = Zo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = $o, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Qo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;
11425
+ exports.QuestionContentEditor = qo, exports.QuestionPlayer = Ll, exports.QuestionPreview = lu, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = Ju, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Fs, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Xo, exports.createQuestionPreviewDraft = Zo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = $o, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Qo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;