@yungu-fed/question-editor 0.3.1 → 0.3.3

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
@@ -155,8 +155,8 @@ function C(e) {
155
155
  return e;
156
156
  }
157
157
  var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement", "classification", "lineConnect", "matching", "ordering", "textMarker", "textResponse"],
158
- w = ["solvingProcess", "solvingStrategy", "keyInformation", "commonMistake", "solvingHint", "scoringRule", "sampleAnswer", "extensionExplanation"],
159
- T = {
158
+ te = ["solvingProcess", "solvingStrategy", "keyInformation", "commonMistake", "solvingHint", "scoringRule", "sampleAnswer", "extensionExplanation"],
159
+ w = {
160
160
  commonMistake: "\u6613\u9519\u63D0\u9192",
161
161
  extensionExplanation: "\u62D3\u5C55\u8BB2\u89E3",
162
162
  keyInformation: "\u5173\u952E\u4FE1\u606F",
@@ -166,7 +166,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
166
166
  solvingProcess: "\u89E3\u9898\u8FC7\u7A0B",
167
167
  solvingStrategy: "\u89E3\u9898\u7B56\u7565"
168
168
  },
169
- te = {
169
+ ne = {
170
170
  commonMistake: "Common mistake reminder",
171
171
  extensionExplanation: "Extension explanation",
172
172
  keyInformation: "Key information",
@@ -176,7 +176,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
176
176
  solvingProcess: "Solving process",
177
177
  solvingStrategy: "Solving strategy"
178
178
  },
179
- ne = {
179
+ re = {
180
180
  choice: "\u9009\u62E9",
181
181
  classification: "\u5206\u7C7B",
182
182
  fill: "\u586B\u7A7A",
@@ -190,7 +190,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
190
190
  textResponse: "\u6587\u672C\u4F5C\u7B54",
191
191
  wordBuilder: "\u7EC4\u8BCD\u62FC\u5199"
192
192
  },
193
- re = {
193
+ ie = {
194
194
  choice: "Choice",
195
195
  classification: "Classification",
196
196
  fill: "Blank group",
@@ -204,7 +204,7 @@ var ee = ["richText", "inlineFill", "wordBuilder", "fill", "choice", "judgement"
204
204
  textResponse: "Text response",
205
205
  wordBuilder: "Word builder"
206
206
  };
207
- function ie() {
207
+ function ae() {
208
208
  return {
209
209
  description: "",
210
210
  elements: [],
@@ -220,21 +220,21 @@ function ie() {
220
220
  version: ""
221
221
  };
222
222
  }
223
- function ae(e) {
223
+ function oe(e) {
224
224
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
225
225
  return {
226
- clientId: ye(),
227
- enName: _e(e),
228
- name: ge(e),
226
+ clientId: be(),
227
+ enName: ve(e),
228
+ name: _e(e),
229
229
  type: e
230
230
  };
231
231
  }
232
- function oe(e) {
232
+ function se(e) {
233
233
  var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
234
- var n = ye();
235
- return e === "classification" || e === "fill" || e === "richText" || e === "textMarker" || e === "textResponse" || e === "ordering" ? be(e, n) : se(e, n);
234
+ var n = be();
235
+ return e === "classification" || e === "fill" || e === "richText" || e === "textMarker" || e === "textResponse" || e === "ordering" ? xe(e, n) : ce(e, n);
236
236
  }
237
- function se(e, t) {
237
+ function ce(e, t) {
238
238
  switch (e) {
239
239
  case "inlineFill":
240
240
  return {
@@ -243,8 +243,8 @@ function se(e, t) {
243
243
  allowCandidateReuse: !1,
244
244
  candidateMode: "none"
245
245
  },
246
- enName: D(e),
247
- name: E(e),
246
+ enName: E(e),
247
+ name: T(e),
248
248
  type: e
249
249
  };
250
250
  case "wordBuilder":
@@ -253,8 +253,8 @@ function se(e, t) {
253
253
  config: {
254
254
  builderMode: "spelling"
255
255
  },
256
- enName: D(e),
257
- name: E(e),
256
+ enName: E(e),
257
+ name: T(e),
258
258
  type: e
259
259
  };
260
260
  case "judgement":
@@ -263,8 +263,8 @@ function se(e, t) {
263
263
  config: {
264
264
  judgeAnswerMode: "correctWrong"
265
265
  },
266
- enName: D(e),
267
- name: E(e),
266
+ enName: E(e),
267
+ name: T(e),
268
268
  type: e
269
269
  };
270
270
  case "choice":
@@ -275,17 +275,17 @@ function se(e, t) {
275
275
  renderer: "standard",
276
276
  selectionType: "single"
277
277
  },
278
- enName: D(e),
279
- name: E(e),
278
+ enName: E(e),
279
+ name: T(e),
280
280
  type: e
281
281
  };
282
282
  case "lineConnect":
283
- return ce(e, t);
283
+ return le(e, t);
284
284
  case "matching":
285
- return ce(e, t);
285
+ return le(e, t);
286
286
  }
287
287
  }
288
- function ce(e, t) {
288
+ function le(e, t) {
289
289
  return {
290
290
  clientId: t,
291
291
  config: {
@@ -295,74 +295,74 @@ function ce(e, t) {
295
295
  labelStyle: "upperAlpha"
296
296
  }]
297
297
  },
298
- enName: D(e),
299
- name: E(e),
298
+ enName: E(e),
299
+ name: T(e),
300
300
  type: e
301
301
  };
302
302
  }
303
- function le(e, t) {
303
+ function ue(e, t) {
304
304
  return C(C({}, e), {}, {
305
305
  extras: e.extras.filter(function (e) {
306
306
  return e.clientId !== t;
307
307
  })
308
308
  });
309
309
  }
310
- function ue(e, t) {
310
+ function de(e, t) {
311
311
  return C(C({}, e), {}, {
312
312
  elements: e.elements.filter(function (e) {
313
313
  return e.clientId !== t;
314
314
  })
315
315
  });
316
316
  }
317
- function de(e, t, n) {
317
+ function fe(e, t, n) {
318
318
  var r = e.elements.findIndex(function (e) {
319
319
  return e.clientId === t;
320
320
  }),
321
321
  i = r + n;
322
322
  if (r < 0 || i < 0 || i >= e.elements.length) return e;
323
- var a = xe(e.elements, r),
324
- o = xe(e.elements, i);
323
+ var a = Se(e.elements, r),
324
+ o = Se(e.elements, i);
325
325
  return !a || !o ? e : C(C({}, e), {}, {
326
326
  elements: e.elements.map(function (e, t) {
327
327
  return t === r ? o : t === i ? a : e;
328
328
  })
329
329
  });
330
330
  }
331
- function fe(e, t, n) {
331
+ function pe(e, t, n) {
332
332
  return C(C({}, e), {}, {
333
333
  extras: e.extras.map(function (e) {
334
334
  return e.clientId === t ? n : e;
335
335
  })
336
336
  });
337
337
  }
338
- function pe(e, t, n) {
338
+ function me(e, t, n) {
339
339
  return C(C({}, e), {}, {
340
340
  elements: e.elements.map(function (e) {
341
341
  return e.clientId === t ? n : e;
342
342
  })
343
343
  });
344
344
  }
345
- function me(e, t) {
345
+ function he(e, t) {
346
346
  return C(C({}, e), {}, {
347
347
  globalConfig: C(C({}, e.globalConfig), t)
348
348
  });
349
349
  }
350
- function he(e, t) {
350
+ function ge(e, t) {
351
351
  return C(C({}, e), t);
352
352
  }
353
- function E(e) {
354
- return ne[e];
355
- }
356
- function D(e) {
353
+ function T(e) {
357
354
  return re[e];
358
355
  }
359
- function ge(e) {
360
- return ve(T, e);
356
+ function E(e) {
357
+ return ie[e];
361
358
  }
362
359
  function _e(e) {
363
- return ve(te, e);
360
+ return ye(w, e);
361
+ }
362
+ function ve(e) {
363
+ return ye(ne, e);
364
364
  }
365
- function ve(e, t) {
365
+ function ye(e, t) {
366
366
  var n, r;
367
367
  return (n = (r = Object.entries(e).find(function (_ref) {
368
368
  var _ref2 = _slicedToArray(_ref, 1),
@@ -370,24 +370,24 @@ function ve(e, t) {
370
370
  return e === t;
371
371
  })) == null ? void 0 : r[1]) == null ? "" : n;
372
372
  }
373
- function ye() {
373
+ function be() {
374
374
  return h();
375
375
  }
376
- function be(e, t) {
376
+ function xe(e, t) {
377
377
  return {
378
378
  clientId: t,
379
379
  config: {},
380
- enName: D(e),
381
- name: E(e),
380
+ enName: E(e),
381
+ name: T(e),
382
382
  type: e
383
383
  };
384
384
  }
385
- function xe(e, t) {
385
+ function Se(e, t) {
386
386
  return e.find(function (e, n) {
387
387
  return n === t;
388
388
  });
389
389
  }
390
- var Se = {
390
+ var Ce = {
391
391
  nodes: [{
392
392
  codecs: {
393
393
  html: {
@@ -405,15 +405,15 @@ var Se = {
405
405
  },
406
406
  serialize: function serialize(_ref4) {
407
407
  var e = _ref4.node;
408
- return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(we(e.blankId), "\" data-label=\"").concat(we(e.label), "\"></span>") : null;
408
+ return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(Te(e.blankId), "\" data-label=\"").concat(Te(e.label), "\"></span>") : null;
409
409
  }
410
410
  },
411
411
  json: {
412
412
  deserialize: function deserialize(_ref5) {
413
413
  var e = _ref5.input;
414
- return Ce(e) ? {
415
- blankId: we(e.blankId),
416
- label: we(e.label),
414
+ return we(e) ? {
415
+ blankId: Te(e.blankId),
416
+ label: Te(e.label),
417
417
  children: [{
418
418
  text: ""
419
419
  }],
@@ -423,8 +423,8 @@ var Se = {
423
423
  serialize: function serialize(_ref6) {
424
424
  var e = _ref6.node;
425
425
  return e.type === "blank" ? {
426
- blankId: we(e.blankId),
427
- label: we(e.label),
426
+ blankId: Te(e.blankId),
427
+ label: Te(e.label),
428
428
  type: "blank"
429
429
  } : null;
430
430
  }
@@ -438,35 +438,35 @@ var Se = {
438
438
  type: "blank"
439
439
  }]
440
440
  };
441
- function Ce(e) {
441
+ function we(e) {
442
442
  return !!(e && _typeof(e) == "object" && "type" in e && e.type === "blank");
443
443
  }
444
- function we(e) {
444
+ function Te(e) {
445
445
  return _typeof(e) == "string" ? e : "";
446
446
  }
447
- function Te() {
447
+ function Ee() {
448
448
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
449
- return Ee({
450
- json: Oe(e)
449
+ return De({
450
+ json: ke(e)
451
451
  });
452
452
  }
453
- function Ee(e) {
454
- var t = De(e);
453
+ function De(e) {
454
+ var t = Oe(e);
455
455
  return {
456
- html: je(t),
456
+ html: Me(t),
457
457
  json: t,
458
- text: ke(t)
458
+ text: Ae(t)
459
459
  };
460
460
  }
461
- function De(t) {
461
+ function Oe(t) {
462
462
  var n;
463
463
  return t != null && t.json ? (0, e.deserializeRichTextEditorJson)(t.json, {
464
- plugins: [Se]
464
+ plugins: [Ce]
465
465
  }) : t != null && t.html ? (0, e.deserializeRichTextEditorHtml)(t.html, {
466
- plugins: [Se]
467
- }) : Oe((n = t == null ? void 0 : t.text) == null ? "" : n);
466
+ plugins: [Ce]
467
+ }) : ke((n = t == null ? void 0 : t.text) == null ? "" : n);
468
468
  }
469
- function Oe(e) {
469
+ function ke(e) {
470
470
  return [{
471
471
  children: [{
472
472
  text: e
@@ -474,22 +474,22 @@ function Oe(e) {
474
474
  type: "paragraph"
475
475
  }];
476
476
  }
477
- function ke(e) {
478
- return e.map(Ae).join("\n");
479
- }
480
477
  function Ae(e) {
481
- return "text" in e && _typeof(e.text) == "string" ? e.text : Me(e) ? e.type === "blank" ? "____" : e.children.map(Ae).join("") : "";
478
+ return e.map(je).join("\n");
482
479
  }
483
- function je(t) {
480
+ function je(e) {
481
+ return "text" in e && _typeof(e.text) == "string" ? e.text : Ne(e) ? e.type === "blank" ? "____" : e.children.map(je).join("") : "";
482
+ }
483
+ function Me(t) {
484
484
  return (0, e.serializeRichTextEditorHtml)(t, {
485
- plugins: [Se]
485
+ plugins: [Ce]
486
486
  });
487
487
  }
488
- function Me(e) {
488
+ function Ne(e) {
489
489
  return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
490
490
  }
491
- var Ne = ["A", "B", "C", "D"];
492
- function Pe(e, t) {
491
+ var Pe = ["A", "B", "C", "D"];
492
+ function Fe(e, t) {
493
493
  return e.columns.length <= 1 || t < 0 ? e : C(C({}, e), {}, {
494
494
  columns: e.columns.filter(function (e, n) {
495
495
  return n !== t;
@@ -503,67 +503,67 @@ function Pe(e, t) {
503
503
  })
504
504
  });
505
505
  }
506
- function Fe(e, t, n) {
506
+ function Ie(e, t, n) {
507
507
  return n === "single" ? e.includes(t) ? [] : [t] : e.includes(t) ? e.filter(function (e) {
508
508
  return e !== t;
509
509
  }) : [].concat(_toConsumableArray(e), [t]);
510
510
  }
511
- function Ie(e) {
512
- return e === "table" ? [Ue(1), Ue(2)] : [{
513
- content: Te("\u9009\u9879"),
511
+ function Le(e) {
512
+ return e === "table" ? [We(1), We(2)] : [{
513
+ content: Ee("\u9009\u9879"),
514
514
  id: g()
515
515
  }];
516
516
  }
517
- function Le(e, t) {
518
- var n = We(e.map(function (e) {
517
+ function Re(e, t) {
518
+ var n = Ge(e.map(function (e) {
519
519
  return e.id;
520
520
  })),
521
521
  r = e.map(function (e, t) {
522
522
  var r;
523
523
  return {
524
- content: Ee(e.content),
524
+ content: De(e.content),
525
525
  id: (r = n[t]) == null ? g() : r
526
526
  };
527
527
  });
528
- return r.length > 0 ? r : Ie(t);
528
+ return r.length > 0 ? r : Le(t);
529
529
  }
530
- function Re(e) {
531
- return Ne.map(function (t) {
530
+ function ze(e) {
531
+ return Pe.map(function (t) {
532
532
  return {
533
533
  cells: e.map(function (e, n) {
534
- return Te(n === 0 ? "\u9009\u9879 ".concat(t) : "");
534
+ return Ee(n === 0 ? "\u9009\u9879 ".concat(t) : "");
535
535
  }),
536
536
  id: g()
537
537
  };
538
538
  });
539
539
  }
540
- function ze(e, t) {
540
+ function Be(e, t) {
541
541
  var n = e.length;
542
542
  return {
543
543
  cells: t.map(function (e, t) {
544
- return Te(t === 0 ? "\u9009\u9879 ".concat(n + 1) : "");
544
+ return Ee(t === 0 ? "\u9009\u9879 ".concat(n + 1) : "");
545
545
  }),
546
546
  id: g()
547
547
  };
548
548
  }
549
- function Be(e, t) {
550
- var n = We(e.map(function (e) {
549
+ function Ve(e, t) {
550
+ var n = Ge(e.map(function (e) {
551
551
  return e.id;
552
552
  })),
553
553
  r = e.map(function (e, r) {
554
554
  var i;
555
555
  return {
556
556
  cells: t.map(function (t, n) {
557
- return Ee(e.cells.find(function (e, t) {
557
+ return De(e.cells.find(function (e, t) {
558
558
  return t === n;
559
559
  }));
560
560
  }),
561
561
  id: (i = n[r]) == null ? g() : i
562
562
  };
563
563
  });
564
- return r.length > 0 ? r : Re(t);
564
+ return r.length > 0 ? r : ze(t);
565
565
  }
566
- function Ve(e, t, n) {
566
+ function He(e, t, n) {
567
567
  var r;
568
568
  var i = new Set(t.map(function (e) {
569
569
  return e.id;
@@ -575,22 +575,22 @@ function Ve(e, t, n) {
575
575
  optionIds: n === "single" ? a.slice(0, 1) : a
576
576
  };
577
577
  }
578
- function He(e) {
579
- return Ue(e.length + 1);
580
- }
581
578
  function Ue(e) {
579
+ return We(e.length + 1);
580
+ }
581
+ function We(e) {
582
582
  return {
583
- content: Te("\u5217 ".concat(e)),
583
+ content: Ee("\u5217 ".concat(e)),
584
584
  id: g()
585
585
  };
586
586
  }
587
- function We(e) {
587
+ function Ge(e) {
588
588
  var t = new Set();
589
589
  return e.map(function (e) {
590
590
  return _(String(e || ""), t);
591
591
  });
592
592
  }
593
- function Ge(e, t, n) {
593
+ function Ke(e, t, n) {
594
594
  var r = new Set(t.map(function (e) {
595
595
  return e.id;
596
596
  })),
@@ -604,22 +604,22 @@ function Ge(e, t, n) {
604
604
  return i.has(t) && r.has(n) ? C(C({}, e), {}, _defineProperty({}, t, n)) : e;
605
605
  }, {});
606
606
  }
607
- function Ke(e, t, n) {
607
+ function qe(e, t, n) {
608
608
  if (!n) {
609
609
  var _n2 = C({}, e);
610
610
  return delete _n2[t], _n2;
611
611
  }
612
612
  return C(C({}, e), {}, _defineProperty({}, t, n));
613
613
  }
614
- var qe = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
615
- Je = {
614
+ var Je = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
615
+ Ye = {
616
616
  max: 5,
617
617
  min: 2
618
618
  };
619
- function Ye(e, t) {
619
+ function Xe(e, t) {
620
620
  return t > e;
621
621
  }
622
- function Xe(e, t) {
622
+ function Ze(e, t) {
623
623
  return e.columnIndex === t.columnIndex ? null : e.columnIndex < t.columnIndex ? {
624
624
  fromItemId: e.itemId,
625
625
  toItemId: t.itemId
@@ -628,20 +628,20 @@ function Xe(e, t) {
628
628
  toItemId: e.itemId
629
629
  };
630
630
  }
631
- var Ze = ["number", "upperAlpha"],
632
- Qe = ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94"],
633
- $e = ["i", "ii", "iii", "iv", "v"],
634
- et = {
631
+ var Qe = ["number", "upperAlpha"],
632
+ $e = ["\u4E00", "\u4E8C", "\u4E09", "\u56DB", "\u4E94"],
633
+ et = ["i", "ii", "iii", "iv", "v"],
634
+ tt = {
635
635
  chineseNumber: function chineseNumber(e) {
636
636
  var t;
637
- return (t = Qe[e]) == null ? String(e + 1) : t;
637
+ return (t = $e[e]) == null ? String(e + 1) : t;
638
638
  },
639
639
  lowerAlpha: function lowerAlpha(e) {
640
640
  return String.fromCharCode(97 + e);
641
641
  },
642
642
  lowerRoman: function lowerRoman(e) {
643
643
  var t;
644
- return (t = $e[e]) == null ? String(e + 1) : t;
644
+ return (t = et[e]) == null ? String(e + 1) : t;
645
645
  },
646
646
  none: function none() {
647
647
  return "";
@@ -653,7 +653,7 @@ var Ze = ["number", "upperAlpha"],
653
653
  return String.fromCharCode(65 + e);
654
654
  }
655
655
  };
656
- function tt(e, t) {
656
+ function nt(e, t) {
657
657
  return Object.entries(e == null ? {} : e).reduce(function (e, _ref9) {
658
658
  var _ref0 = _slicedToArray(_ref9, 2),
659
659
  n = _ref0[0],
@@ -662,12 +662,12 @@ function tt(e, t) {
662
662
  if (i === void 0) return e;
663
663
  var a = r.filter(function (e, n, r) {
664
664
  var a = t.get(e);
665
- return a !== void 0 && Ye(i, a) && r.indexOf(e) === n;
665
+ return a !== void 0 && Xe(i, a) && r.indexOf(e) === n;
666
666
  });
667
667
  return a.length > 0 ? C(C({}, e), {}, _defineProperty({}, n, a)) : e;
668
668
  }, {});
669
669
  }
670
- function nt(e, t, n) {
670
+ function rt(e, t, n) {
671
671
  var r;
672
672
  var i = (r = e[t]) == null ? [] : r,
673
673
  a = i.includes(n) ? i.filter(function (e) {
@@ -681,34 +681,34 @@ function nt(e, t, n) {
681
681
  }, {});
682
682
  return a.length > 0 ? C(C({}, o), {}, _defineProperty({}, t, a)) : o;
683
683
  }
684
- function rt(e) {
684
+ function it(e) {
685
685
  var t;
686
- var n = (t = e == null ? void 0 : e.slice(0, Je.max).map(function (e, t) {
686
+ var n = (t = e == null ? void 0 : e.slice(0, Ye.max).map(function (e, t) {
687
687
  var n;
688
688
  return {
689
- labelStyle: at(e.labelStyle, (n = Ze[t]) == null ? "number" : n)
689
+ labelStyle: ot(e.labelStyle, (n = Qe[t]) == null ? "number" : n)
690
690
  };
691
691
  })) == null ? [] : t;
692
- return n.length >= Je.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(Ze.slice(n.length, Je.min).map(function (e) {
692
+ return n.length >= Ye.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(Qe.slice(n.length, Ye.min).map(function (e) {
693
693
  return {
694
694
  labelStyle: e
695
695
  };
696
696
  })));
697
697
  }
698
- function it(e, t) {
699
- return et[e](t);
700
- }
701
698
  function at(e, t) {
702
- return qe.includes(e) ? e : t;
699
+ return tt[e](t);
700
+ }
701
+ function ot(e, t) {
702
+ return Je.includes(e) ? e : t;
703
703
  }
704
- var ot = {
704
+ var st = {
705
705
  max: 2,
706
706
  min: 2
707
707
  };
708
- function st(e, t) {
708
+ function ct(e, t) {
709
709
  return e === 0 && t === 1;
710
710
  }
711
- function ct(e, t) {
711
+ function lt(e, t) {
712
712
  if (e.columnIndex === t.columnIndex) return null;
713
713
  var n = e.columnIndex < t.columnIndex ? {
714
714
  fromItemId: e.itemId,
@@ -717,10 +717,10 @@ function ct(e, t) {
717
717
  fromItemId: t.itemId,
718
718
  toItemId: e.itemId
719
719
  };
720
- return st(Math.min(e.columnIndex, t.columnIndex), Math.max(e.columnIndex, t.columnIndex)) ? n : null;
720
+ return ct(Math.min(e.columnIndex, t.columnIndex), Math.max(e.columnIndex, t.columnIndex)) ? n : null;
721
721
  }
722
- var lt = ["number", "upperAlpha"];
723
- function ut(e, t) {
722
+ var ut = ["number", "upperAlpha"];
723
+ function dt(e, t) {
724
724
  var n = new Set();
725
725
  return Object.entries(e == null ? {} : e).reduce(function (e, _ref11) {
726
726
  var _ref12 = _slicedToArray(_ref11, 2),
@@ -733,7 +733,7 @@ function ut(e, t) {
733
733
  return a ? (n.add(a), C(C({}, e), {}, _defineProperty({}, r, [a]))) : e;
734
734
  }, {});
735
735
  }
736
- function dt(e, t, n) {
736
+ function ft(e, t, n) {
737
737
  var r, i;
738
738
  return (r = (i = e[t]) == null ? void 0 : i.includes(n)) != null && r ? Object.entries(e).reduce(function (e, _ref13) {
739
739
  var _ref14 = _slicedToArray(_ref13, 2),
@@ -751,29 +751,29 @@ function dt(e, t, n) {
751
751
  return a.length > 0 ? C(C({}, e), {}, _defineProperty({}, r, a)) : e;
752
752
  }, {})), {}, _defineProperty({}, t, [n]));
753
753
  }
754
- function ft(e) {
754
+ function pt(e) {
755
755
  var t;
756
- var n = (t = e == null ? void 0 : e.slice(0, ot.max).map(function (e, t) {
756
+ var n = (t = e == null ? void 0 : e.slice(0, st.max).map(function (e, t) {
757
757
  var n;
758
758
  return {
759
- labelStyle: at(e.labelStyle, (n = lt[t]) == null ? "number" : n)
759
+ labelStyle: ot(e.labelStyle, (n = ut[t]) == null ? "number" : n)
760
760
  };
761
761
  })) == null ? [] : t;
762
- return n.length >= ot.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(lt.slice(n.length, ot.min).map(function (e) {
762
+ return n.length >= st.min ? n : [].concat(_toConsumableArray(n), _toConsumableArray(ut.slice(n.length, st.min).map(function (e) {
763
763
  return {
764
764
  labelStyle: e
765
765
  };
766
766
  })));
767
767
  }
768
- function pt(e, t) {
769
- return it(e, t);
768
+ function mt(e, t) {
769
+ return at(e, t);
770
770
  }
771
- var mt = "mark.textMarker",
772
- ht = "markerId",
773
- gt = {
774
- marks: [_t()]
771
+ var ht = "mark.textMarker",
772
+ gt = "markerId",
773
+ _t = {
774
+ marks: [vt()]
775
775
  };
776
- function _t(e) {
776
+ function vt(e) {
777
777
  return {
778
778
  behavior: {
779
779
  clearOnSelectionDelete: !0
@@ -782,36 +782,36 @@ function _t(e) {
782
782
  html: {
783
783
  deserialize: function deserialize(_ref17) {
784
784
  var e = _ref17.element;
785
- var t = Ct(e.dataset.markerId);
786
- return t ? _defineProperty({}, ht, t) : null;
785
+ var t = wt(e.dataset.markerId);
786
+ return t ? _defineProperty({}, gt, t) : null;
787
787
  },
788
788
  serialize: function serialize(_ref19) {
789
789
  var e = _ref19.leaf,
790
790
  t = _ref19.text;
791
- var n = xt(e);
792
- return n ? "<span data-marker-id=\"".concat(wt(n), "\">").concat(t, "</span>") : null;
791
+ var n = St(e);
792
+ return n ? "<span data-marker-id=\"".concat(Tt(n), "\">").concat(t, "</span>") : null;
793
793
  }
794
794
  }
795
795
  },
796
796
  commands: [{
797
- command: mt,
798
- markKey: ht
797
+ command: ht,
798
+ markKey: gt
799
799
  }],
800
800
  render: e
801
801
  };
802
802
  }
803
- function vt(e) {
803
+ function yt(e) {
804
804
  var t = [];
805
- return St(e == null ? [] : e, function (e) {
806
- var n = xt(e);
805
+ return Ct(e == null ? [] : e, function (e) {
806
+ var n = St(e);
807
807
  n && !t.includes(n) && t.push(n);
808
808
  }), t;
809
809
  }
810
- function yt(e) {
810
+ function bt(e) {
811
811
  var t = [];
812
- return St(e == null ? [] : e, function (e) {
813
- var n = xt(e),
814
- r = Tt(e) && _typeof(e.text) == "string" ? e.text : "";
812
+ return Ct(e == null ? [] : e, function (e) {
813
+ var n = St(e),
814
+ r = Et(e) && _typeof(e.text) == "string" ? e.text : "";
815
815
  if (!n || !r) return;
816
816
  var i = t.slice(t.length - 1)[0];
817
817
  if ((i == null ? void 0 : i.markerId) === n) {
@@ -827,30 +827,30 @@ function yt(e) {
827
827
  });
828
828
  }), t;
829
829
  }
830
- function bt() {
830
+ function xt() {
831
831
  return g();
832
832
  }
833
- function xt(e) {
834
- return Tt(e) ? Ct(e[ht]) : "";
833
+ function St(e) {
834
+ return Et(e) ? wt(e[gt]) : "";
835
835
  }
836
- function St(e, t) {
836
+ function Ct(e, t) {
837
837
  e.forEach(function (e) {
838
- t(e), Tt(e) && Array.isArray(e.children) && St(e.children, t);
838
+ t(e), Et(e) && Array.isArray(e.children) && Ct(e.children, t);
839
839
  });
840
840
  }
841
- function Ct(e) {
841
+ function wt(e) {
842
842
  return _typeof(e) == "string" ? e.trim() : "";
843
843
  }
844
- function wt(e) {
844
+ function Tt(e) {
845
845
  return e.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
846
846
  }
847
- function Tt(e) {
847
+ function Et(e) {
848
848
  return _typeof(e) == "object" && !!e;
849
849
  }
850
- var Et = {
850
+ var Dt = {
851
851
  "blank-underline": "_blank-underline_1wnlx_1"
852
852
  },
853
- Dt = {
853
+ Ot = {
854
854
  nodes: [{
855
855
  codecs: {
856
856
  html: {
@@ -868,15 +868,15 @@ var Et = {
868
868
  },
869
869
  serialize: function serialize(_ref21) {
870
870
  var e = _ref21.node;
871
- return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(jt(e.blankId), "\" data-label=\"").concat(jt(e.label), "\"></span>") : null;
871
+ return e.type === "blank" ? "<span data-rte-node=\"blank\" data-blank-id=\"".concat(D(e.blankId), "\" data-label=\"").concat(D(e.label), "\"></span>") : null;
872
872
  }
873
873
  },
874
874
  json: {
875
875
  deserialize: function deserialize(_ref22) {
876
876
  var e = _ref22.input;
877
- return Ot(e) ? {
878
- blankId: jt(e.blankId),
879
- label: jt(e.label),
877
+ return kt(e) ? {
878
+ blankId: D(e.blankId),
879
+ label: D(e.label),
880
880
  children: [{
881
881
  text: ""
882
882
  }],
@@ -886,8 +886,8 @@ var Et = {
886
886
  serialize: function serialize(_ref23) {
887
887
  var e = _ref23.node;
888
888
  return e.type === "blank" ? {
889
- blankId: jt(e.blankId),
890
- label: jt(e.label),
889
+ blankId: D(e.blankId),
890
+ label: D(e.label),
891
891
  type: "blank"
892
892
  } : null;
893
893
  }
@@ -897,8 +897,8 @@ var Et = {
897
897
  insert: function insert(_ref24) {
898
898
  var e = _ref24.payload;
899
899
  return {
900
- blankId: kt(e),
901
- label: At(e),
900
+ blankId: At(e),
901
+ label: jt(e),
902
902
  type: "blank"
903
903
  };
904
904
  }
@@ -910,25 +910,25 @@ var Et = {
910
910
  var e = _ref25.element,
911
911
  n = _ref25.selected;
912
912
  return (0, t.jsx)("span", {
913
- className: Et["blank-underline"],
913
+ className: Dt["blank-underline"],
914
914
  "data-selected": n ? "true" : void 0,
915
- children: jt(e.label) || jt(e.blankId) || "Blank"
915
+ children: D(e.label) || D(e.blankId) || "Blank"
916
916
  });
917
917
  }
918
918
  },
919
919
  type: "blank"
920
920
  }]
921
921
  };
922
- function Ot(e) {
923
- return !!(e && _typeof(e) == "object" && "type" in e && e.type === "blank");
924
- }
925
922
  function kt(e) {
926
- return e && _typeof(e) == "object" && "blankId" in e ? jt(e.blankId) : "";
923
+ return !!(e && _typeof(e) == "object" && "type" in e && e.type === "blank");
927
924
  }
928
925
  function At(e) {
929
- return e && _typeof(e) == "object" && "label" in e ? jt(e.label) : "";
926
+ return e && _typeof(e) == "object" && "blankId" in e ? D(e.blankId) : "";
930
927
  }
931
928
  function jt(e) {
929
+ return e && _typeof(e) == "object" && "label" in e ? D(e.label) : "";
930
+ }
931
+ function D(e) {
932
932
  return _typeof(e) == "string" ? e : "";
933
933
  }
934
934
  var Mt = 1,
@@ -1030,7 +1030,7 @@ function O() {
1030
1030
  return Wt(t == null ? gi(e) : t);
1031
1031
  }
1032
1032
  function Wt(t) {
1033
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Dt];
1033
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Ot];
1034
1034
  var r = wi(t, n);
1035
1035
  return {
1036
1036
  html: (0, e.serializeRichTextEditorHtml)(r, {
@@ -1044,15 +1044,15 @@ function Gt() {
1044
1044
  var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
1045
1045
  var t = arguments.length > 1 ? arguments[1] : undefined;
1046
1046
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "";
1047
- return Wt(Kt(e, t, n), [gt]);
1047
+ return Wt(Kt(e, t, n), [_t]);
1048
1048
  }
1049
1049
  function Kt(t, n, r) {
1050
1050
  return n && Ci(n) ? n : r ? (0, e.deserializeRichTextEditorHtml)(r, {
1051
- plugins: [gt]
1051
+ plugins: [_t]
1052
1052
  }) : gi(t);
1053
1053
  }
1054
1054
  function qt(e) {
1055
- return yt(e.content.json).filter(function (t) {
1055
+ return bt(e.content.json).filter(function (t) {
1056
1056
  return e.answers.includes(t.markerId);
1057
1057
  }).map(function (e) {
1058
1058
  return e.text.trim();
@@ -1081,10 +1081,10 @@ function Zt(e, t) {
1081
1081
  return Lt[e](t);
1082
1082
  }
1083
1083
  function Qt(e, t) {
1084
- return it(e, t);
1084
+ return at(e, t);
1085
1085
  }
1086
1086
  function $t(e, t) {
1087
- return pt(e, t);
1087
+ return mt(e, t);
1088
1088
  }
1089
1089
  function en(e) {
1090
1090
  switch (e) {
@@ -1214,7 +1214,7 @@ function hn(e, t, n, r) {
1214
1214
  }
1215
1215
  function gn(e, t, n) {
1216
1216
  var r = Gt(t.text, t.json, t.html),
1217
- i = vt(r.json);
1217
+ i = yt(r.json);
1218
1218
  return C(C({}, e), {}, {
1219
1219
  answers: n ? li(e.answers, i) : [],
1220
1220
  content: r,
@@ -1578,15 +1578,15 @@ function Wn(e, t) {
1578
1578
  return n !== t;
1579
1579
  });
1580
1580
  return C(C({}, e), {}, {
1581
- answers: Ve(e.answers, n, "multiple"),
1581
+ answers: He(e.answers, n, "multiple"),
1582
1582
  options: n
1583
1583
  });
1584
1584
  }
1585
1585
  function Gn(e, t, n) {
1586
- return Fe(e, t, n);
1586
+ return Ie(e, t, n);
1587
1587
  }
1588
1588
  function Kn(e) {
1589
- var t = [].concat(_toConsumableArray(e.columns), [He(e.columns)]);
1589
+ var t = [].concat(_toConsumableArray(e.columns), [Ue(e.columns)]);
1590
1590
  return C(C({}, e), {}, {
1591
1591
  columns: t,
1592
1592
  options: e.options.map(function (e) {
@@ -1597,7 +1597,7 @@ function Kn(e) {
1597
1597
  });
1598
1598
  }
1599
1599
  function qn(e, t) {
1600
- return Pe(e, t);
1600
+ return Fe(e, t);
1601
1601
  }
1602
1602
  function Jn(e) {
1603
1603
  return tr(e);
@@ -1608,7 +1608,7 @@ function Yn(e, t) {
1608
1608
  return n !== t;
1609
1609
  });
1610
1610
  return C(C({}, e), {}, {
1611
- answers: Ve(e.answers, n, "multiple"),
1611
+ answers: He(e.answers, n, "multiple"),
1612
1612
  options: n
1613
1613
  });
1614
1614
  }
@@ -1634,10 +1634,10 @@ function Zn(e, t, n) {
1634
1634
  }
1635
1635
  function Qn(e, t, n) {
1636
1636
  er(e);
1637
- var r = Le(e.columns, t.config.renderer),
1638
- i = Be(e.options, r);
1637
+ var r = Re(e.columns, t.config.renderer),
1638
+ i = Ve(e.options, r);
1639
1639
  return C(C({}, e), {}, {
1640
- answers: n ? Ve(e.answers, i, t.config.selectionType) : {
1640
+ answers: n ? He(e.answers, i, t.config.selectionType) : {
1641
1641
  optionIds: []
1642
1642
  },
1643
1643
  columns: r,
@@ -1662,7 +1662,7 @@ function er(e) {
1662
1662
  }
1663
1663
  function tr(e) {
1664
1664
  return C(C({}, e), {}, {
1665
- options: [].concat(_toConsumableArray(e.options), [ze(e.options, e.columns)])
1665
+ options: [].concat(_toConsumableArray(e.options), [Be(e.options, e.columns)])
1666
1666
  });
1667
1667
  }
1668
1668
  function nr(e, t, n) {
@@ -1673,14 +1673,14 @@ function nr(e, t, n) {
1673
1673
  });
1674
1674
  }
1675
1675
  function rr(e) {
1676
- if (e.columns.length >= Je.max) return e;
1676
+ if (e.columns.length >= Ye.max) return e;
1677
1677
  var t = e.columns.length;
1678
1678
  return C(C({}, e), {}, {
1679
1679
  columns: [].concat(_toConsumableArray(e.columns), [ni(ei(t))])
1680
1680
  });
1681
1681
  }
1682
1682
  function ir(e, t) {
1683
- if (e.columns.length <= Je.min) return e;
1683
+ if (e.columns.length <= Ye.min) return e;
1684
1684
  var n = e.columns.filter(function (e) {
1685
1685
  return e.columnId !== t;
1686
1686
  });
@@ -1712,7 +1712,7 @@ function cr(e, t, n) {
1712
1712
  return vr(e, t, n);
1713
1713
  }
1714
1714
  function lr(e, t, n) {
1715
- return nt(e, t, n);
1715
+ return rt(e, t, n);
1716
1716
  }
1717
1717
  function ur(e, t, n) {
1718
1718
  var r = ai(e.columns, t);
@@ -1756,7 +1756,7 @@ function hr(e, t, n) {
1756
1756
  return vr(e, t, n);
1757
1757
  }
1758
1758
  function gr(e, t, n) {
1759
- return dt(e, t, n);
1759
+ return ft(e, t, n);
1760
1760
  }
1761
1761
  function _r(e, t, n) {
1762
1762
  return C(C({}, e), {}, {
@@ -1784,7 +1784,7 @@ function yr(e, t) {
1784
1784
  var n = qr(e.categories),
1785
1785
  r = Jr(e.items);
1786
1786
  return C(C({}, e), {}, {
1787
- answers: t ? Ge(e.answers, n, r) : {},
1787
+ answers: t ? Ke(e.answers, n, r) : {},
1788
1788
  categories: n,
1789
1789
  items: r
1790
1790
  });
@@ -1802,7 +1802,7 @@ function xr(e, t) {
1802
1802
  return e.id !== t;
1803
1803
  });
1804
1804
  return C(C({}, e), {}, {
1805
- answers: Ge(e.answers, n, e.items),
1805
+ answers: Ke(e.answers, n, e.items),
1806
1806
  categories: n
1807
1807
  });
1808
1808
  }
@@ -1828,7 +1828,7 @@ function wr(e, t) {
1828
1828
  return e.id !== t;
1829
1829
  });
1830
1830
  return C(C({}, e), {}, {
1831
- answers: Ge(e.answers, e.categories, n),
1831
+ answers: Ke(e.answers, e.categories, n),
1832
1832
  items: n
1833
1833
  });
1834
1834
  }
@@ -1842,7 +1842,7 @@ function Tr(e, t, n) {
1842
1842
  });
1843
1843
  }
1844
1844
  function Er(e, t, n) {
1845
- return Ke(e, t, n);
1845
+ return qe(e, t, n);
1846
1846
  }
1847
1847
  function Dr(e, t) {
1848
1848
  var n = ui(e.sortOptions);
@@ -2039,13 +2039,13 @@ function Gr(e) {
2039
2039
  };
2040
2040
  }
2041
2041
  function Kr(e) {
2042
- var t = Ie(e.config.renderer);
2042
+ var t = Le(e.config.renderer);
2043
2043
  return {
2044
2044
  answers: {
2045
2045
  optionIds: []
2046
2046
  },
2047
2047
  columns: t,
2048
- options: Re(t),
2048
+ options: ze(t),
2049
2049
  type: "choice"
2050
2050
  };
2051
2051
  }
@@ -2094,12 +2094,12 @@ function Zr(e, t) {
2094
2094
  r = new Set(),
2095
2095
  i = new Set(),
2096
2096
  a = $r(t);
2097
- return n.slice(0, Je.max).map(function (e, t) {
2097
+ return n.slice(0, Ye.max).map(function (e, t) {
2098
2098
  var n, o;
2099
2099
  return {
2100
2100
  columnId: _(e.columnId, r),
2101
2101
  items: ti(e.items, i),
2102
- labelStyle: at(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2102
+ labelStyle: ot(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2103
2103
  };
2104
2104
  });
2105
2105
  }
@@ -2109,11 +2109,11 @@ function Qr(e) {
2109
2109
  });
2110
2110
  }
2111
2111
  function $r(e) {
2112
- return rt(e.config.columns);
2112
+ return it(e.config.columns);
2113
2113
  }
2114
2114
  function ei(e) {
2115
2115
  var t, n;
2116
- return (t = (n = rt([])[e]) == null ? void 0 : n.labelStyle) == null ? "number" : t;
2116
+ return (t = (n = it([])[e]) == null ? void 0 : n.labelStyle) == null ? "number" : t;
2117
2117
  }
2118
2118
  function ti(e, t) {
2119
2119
  var n = e.map(function (e) {
@@ -2143,24 +2143,24 @@ function ri(e) {
2143
2143
  });
2144
2144
  }
2145
2145
  function ii(e, t) {
2146
- return tt(e, mi(t));
2146
+ return nt(e, mi(t));
2147
2147
  }
2148
2148
  function ai(e, t) {
2149
2149
  var n = e.length > 0 ? e : oi(t),
2150
2150
  r = new Set(),
2151
2151
  i = new Set(),
2152
- a = ft(t.config.columns);
2153
- return n.slice(0, ot.max).map(function (e, t) {
2152
+ a = pt(t.config.columns);
2153
+ return n.slice(0, st.max).map(function (e, t) {
2154
2154
  var n, o;
2155
2155
  return {
2156
2156
  columnId: _(e.columnId, r),
2157
2157
  items: ti(e.items, i),
2158
- labelStyle: at(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2158
+ labelStyle: ot(e.labelStyle, (n = (o = a[t]) == null ? void 0 : o.labelStyle) == null ? "number" : n)
2159
2159
  };
2160
2160
  });
2161
2161
  }
2162
2162
  function oi(e) {
2163
- return ft(e.config.columns).map(function (e) {
2163
+ return pt(e.config.columns).map(function (e) {
2164
2164
  return si(e.labelStyle);
2165
2165
  });
2166
2166
  }
@@ -2180,7 +2180,7 @@ function si(e) {
2180
2180
  };
2181
2181
  }
2182
2182
  function ci(e, t) {
2183
- return ut(e, mi(t));
2183
+ return dt(e, mi(t));
2184
2184
  }
2185
2185
  function li(e, t) {
2186
2186
  var n = new Set(t);
@@ -2277,7 +2277,7 @@ function Ci(e) {
2277
2277
  return Array.isArray(e) && e.length > 0;
2278
2278
  }
2279
2279
  function wi(t) {
2280
- var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Dt];
2280
+ var n = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [Ot];
2281
2281
  return Ci(t) ? (0, e.deserializeRichTextEditorJson)(t, {
2282
2282
  plugins: n
2283
2283
  }) : gi("");
@@ -2521,10 +2521,10 @@ var na = {
2521
2521
  marker: "_marker_rlnj7_1"
2522
2522
  },
2523
2523
  ra = {
2524
- marks: [_t(function (_ref35) {
2524
+ marks: [vt(function (_ref35) {
2525
2525
  var e = _ref35.children,
2526
2526
  t = _ref35.leaf;
2527
- return xt(t) ? ia(e) : e;
2527
+ return St(t) ? ia(e) : e;
2528
2528
  })]
2529
2529
  };
2530
2530
  function ia(e) {
@@ -2949,9 +2949,10 @@ function da(e) {
2949
2949
  }, e);
2950
2950
  }
2951
2951
  var fa = {
2952
- root: "_root_1ojgr_1",
2953
- "rich-text-root": "_rich-text-root_1ojgr_28",
2954
- "rich-text-toolbar": "_rich-text-toolbar_1ojgr_37"
2952
+ root: "_root_1n8kd_1",
2953
+ "rich-text-root": "_rich-text-root_1n8kd_28",
2954
+ "rich-text-toolbar-sticky": "_rich-text-toolbar-sticky_1n8kd_37",
2955
+ "rich-text-toolbar": "_rich-text-toolbar_1n8kd_37"
2955
2956
  },
2956
2957
  j = {
2957
2958
  button: "_button_8wkgm_1",
@@ -3263,7 +3264,7 @@ function Da(_ref50) {
3263
3264
  "aria-label": r,
3264
3265
  className: "".concat(P.textarea, " rich-content-editor-surface"),
3265
3266
  onChange: function onChange(e) {
3266
- return a(Te(e.target.value));
3267
+ return a(Ee(e.target.value));
3267
3268
  },
3268
3269
  placeholder: s,
3269
3270
  value: f.text
@@ -3316,7 +3317,7 @@ function Da(_ref50) {
3316
3317
  className: ja(i),
3317
3318
  initialValue: f.json,
3318
3319
  onChange: function onChange(e) {
3319
- return a(Ee({
3320
+ return a(De({
3320
3321
  json: e
3321
3322
  }));
3322
3323
  },
@@ -3353,7 +3354,7 @@ function Ma(_ref52) {
3353
3354
  className: ja(i),
3354
3355
  initialValue: s.json,
3355
3356
  onChange: function onChange(e) {
3356
- return a(Ee({
3357
+ return a(De({
3357
3358
  json: e
3358
3359
  }));
3359
3360
  },
@@ -3469,7 +3470,7 @@ function Na(_ref54) {
3469
3470
  answers: p
3470
3471
  }), l, d)), S());
3471
3472
  }
3472
- function w(n, r) {
3473
+ function te(n, r) {
3473
3474
  return (0, t.jsxs)("div", {
3474
3475
  className: "flex min-w-0 flex-wrap items-start gap-3",
3475
3476
  children: [r.answerPools.map(function (i, a) {
@@ -3513,7 +3514,7 @@ function Na(_ref54) {
3513
3514
  })]
3514
3515
  });
3515
3516
  }
3516
- function T(n, r, a, o) {
3517
+ function w(n, r, a, o) {
3517
3518
  var s = b(n);
3518
3519
  return (0, t.jsxs)("section", {
3519
3520
  className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
@@ -3555,7 +3556,7 @@ function Na(_ref54) {
3555
3556
  })]
3556
3557
  }), (0, t.jsx)("div", {
3557
3558
  className: "min-w-72 flex-1",
3558
- children: w(a, o)
3559
+ children: te(a, o)
3559
3560
  }), (0, t.jsx)(M, {
3560
3561
  "aria-label": c("questionContentEditor.actions.deleteBlank", {
3561
3562
  index: r + 1
@@ -3573,7 +3574,7 @@ function Na(_ref54) {
3573
3574
  })]
3574
3575
  }, n);
3575
3576
  }
3576
- function te(n, r, a) {
3577
+ function ne(n, r, a) {
3577
3578
  return (0, t.jsxs)("section", {
3578
3579
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-blue-200 bg-blue-50/40 px-4 py-3",
3579
3580
  children: [(0, t.jsxs)("div", {
@@ -3603,10 +3604,10 @@ function Na(_ref54) {
3603
3604
  strong: !0,
3604
3605
  children: c("questionContentEditor.blank.sharedAnswer")
3605
3606
  })]
3606
- }), w(r, n)]
3607
+ }), te(r, n)]
3607
3608
  }, "shared-group-".concat(r));
3608
3609
  }
3609
- function ne() {
3610
+ function re() {
3610
3611
  var e = new Set();
3611
3612
  return i.blanks.reduce(function (t, n, r) {
3612
3613
  var i = p.findIndex(function (e) {
@@ -3619,9 +3620,9 @@ function Na(_ref54) {
3619
3620
  var _n4 = m.findIndex(function (e) {
3620
3621
  return e.groupIndex === i;
3621
3622
  });
3622
- return e.add(i), t.push(te(a, i, _n4)), t;
3623
+ return e.add(i), t.push(ne(a, i, _n4)), t;
3623
3624
  }
3624
- return t.push(T(n, r, i, a)), t;
3625
+ return t.push(w(n, r, i, a)), t;
3625
3626
  }, []);
3626
3627
  }
3627
3628
  return r ? (0, t.jsxs)(t.Fragment, {
@@ -3629,7 +3630,7 @@ function Na(_ref54) {
3629
3630
  className: "flex min-w-0 flex-col gap-4",
3630
3631
  children: (0, t.jsx)("div", {
3631
3632
  className: "flex min-w-0 flex-col gap-3",
3632
- children: ne()
3633
+ children: re()
3633
3634
  })
3634
3635
  }), (0, t.jsx)(_a, {
3635
3636
  cancelText: c("questionContentEditor.actions.cancel"),
@@ -3938,7 +3939,7 @@ function La(_ref62) {
3938
3939
  candidateOptions: bn(e)
3939
3940
  }));
3940
3941
  }
3941
- function w(e, t) {
3942
+ function te(e, t) {
3942
3943
  var n = jn(v.blankOptionGroups, v.blanks).map(function (n) {
3943
3944
  return n.blankId === e ? C(C({}, t), {}, {
3944
3945
  blankId: e
@@ -3948,24 +3949,24 @@ function La(_ref62) {
3948
3949
  blankOptionGroups: n
3949
3950
  }));
3950
3951
  }
3951
- function T() {
3952
+ function w() {
3952
3953
  return v.answers.filter(function (e) {
3953
3954
  return "answerOptionIds" in e;
3954
3955
  });
3955
3956
  }
3956
- function te(e) {
3957
+ function ne(e) {
3957
3958
  return e.blankIds.join("__");
3958
3959
  }
3959
- function ne(e) {
3960
+ function re(e) {
3960
3961
  x(C(C({}, v), {}, {
3961
3962
  answers: e
3962
3963
  }));
3963
3964
  }
3964
- function re(e, t, n) {
3965
- var r = T(),
3965
+ function ie(e, t, n) {
3966
+ var r = w(),
3966
3967
  i = r.slice(e, e + 1)[0];
3967
3968
  if (!i) return;
3968
- var a = te(i),
3969
+ var a = ne(i),
3969
3970
  o = (t < i.answerOptionIds.length ? i.answerOptionIds.map(function (e, r) {
3970
3971
  return r === t ? n : e;
3971
3972
  }) : [].concat(_toConsumableArray(i.answerOptionIds), [n])).filter(function (e, t, n) {
@@ -3973,41 +3974,41 @@ function La(_ref62) {
3973
3974
  });
3974
3975
  t >= i.answerOptionIds.length && n && p(function (e) {
3975
3976
  return C(C({}, e), {}, _defineProperty({}, a, Math.max(0, Ra(e, a) - 1)));
3976
- }), ne(r.map(function (t, n) {
3977
+ }), re(r.map(function (t, n) {
3977
3978
  return n === e ? C(C({}, t), {}, {
3978
3979
  answerOptionIds: o
3979
3980
  }) : t;
3980
3981
  }));
3981
3982
  }
3982
- function ie(e) {
3983
+ function ae(e) {
3983
3984
  var t = jn(v.blankOptionGroups, v.blanks).find(function (t) {
3984
3985
  return t.blankId === e;
3985
3986
  });
3986
3987
  if (!t) throw Error("Missing option group for blank ".concat(e, "."));
3987
3988
  return t;
3988
3989
  }
3989
- function ae(e, t, n, r) {
3990
+ function oe(e, t, n, r) {
3990
3991
  t(e.map(function (e) {
3991
3992
  return e.optionId === n ? C(C({}, e), {}, {
3992
3993
  content: r
3993
3994
  }) : e;
3994
3995
  }));
3995
3996
  }
3996
- function oe(e, t, n) {
3997
+ function se(e, t, n) {
3997
3998
  t(e.filter(function (e) {
3998
3999
  return e.optionId !== n;
3999
4000
  }));
4000
4001
  }
4001
- function se() {
4002
- return T().reduce(function (e, t, n) {
4002
+ function ce() {
4003
+ return w().reduce(function (e, t, n) {
4003
4004
  return t.blankIds.length >= 2 && e.push({
4004
4005
  group: t,
4005
4006
  groupIndex: n
4006
4007
  }), e;
4007
4008
  }, []);
4008
4009
  }
4009
- function ce(e) {
4010
- return T().filter(function (e) {
4010
+ function le(e) {
4011
+ return w().filter(function (e) {
4011
4012
  return e.blankIds.length === 1;
4012
4013
  }).map(function (e) {
4013
4014
  return e.blankIds[0];
@@ -4015,22 +4016,22 @@ function La(_ref62) {
4015
4016
  return !!t && t !== e;
4016
4017
  });
4017
4018
  }
4018
- function le(e, t) {
4019
+ function ue(e, t) {
4019
4020
  if (t === "__single__") {
4020
- he(e);
4021
+ ge(e);
4021
4022
  return;
4022
4023
  }
4023
4024
  if (t === "__new__") {
4024
- de(e);
4025
+ fe(e);
4025
4026
  return;
4026
4027
  }
4027
4028
  var n = Number(t.replace("group:", ""));
4028
- Number.isNaN(n) || ue(e, n);
4029
+ Number.isNaN(n) || de(e, n);
4029
4030
  }
4030
- function ue(e, t) {
4031
- var n = T(),
4031
+ function de(e, t) {
4032
+ var n = w(),
4032
4033
  r = n.slice(t, t + 1)[0];
4033
- !r || r.blankIds.length < 2 || r.blankIds.includes(e) || ne(n.map(function (n, r) {
4034
+ !r || r.blankIds.length < 2 || r.blankIds.includes(e) || re(n.map(function (n, r) {
4034
4035
  return r === t ? C(C({}, n), {}, {
4035
4036
  blankIds: [].concat(_toConsumableArray(n.blankIds), [e])
4036
4037
  }) : C(C({}, n), {}, {
@@ -4042,24 +4043,24 @@ function La(_ref62) {
4042
4043
  return e.blankIds.length > 0;
4043
4044
  }));
4044
4045
  }
4045
- function de(e) {
4046
- var t = ce(e)[0];
4046
+ function fe(e) {
4047
+ var t = le(e)[0];
4047
4048
  t && (h(e), _(t));
4048
4049
  }
4049
- function fe() {
4050
+ function pe() {
4050
4051
  h(null), _(null);
4051
4052
  }
4052
- function pe() {
4053
- !m || !g || (me(m, g), fe());
4053
+ function me() {
4054
+ !m || !g || (he(m, g), pe());
4054
4055
  }
4055
- function me(e, t) {
4056
+ function he(e, t) {
4056
4057
  var n;
4057
4058
  if (e === t) return;
4058
- var r = T(),
4059
+ var r = w(),
4059
4060
  i = r.find(function (t) {
4060
4061
  return t.blankIds.includes(e);
4061
4062
  });
4062
- ne([].concat(_toConsumableArray(r.map(function (n) {
4063
+ re([].concat(_toConsumableArray(r.map(function (n) {
4063
4064
  return C(C({}, n), {}, {
4064
4065
  blankIds: n.blankIds.filter(function (n) {
4065
4066
  return n !== e && n !== t;
@@ -4072,13 +4073,13 @@ function La(_ref62) {
4072
4073
  return e.blankIds.length > 0;
4073
4074
  }));
4074
4075
  }
4075
- function he(e) {
4076
+ function ge(e) {
4076
4077
  var t;
4077
- var n = T(),
4078
+ var n = w(),
4078
4079
  r = n.find(function (t) {
4079
4080
  return t.blankIds.includes(e);
4080
4081
  });
4081
- ne([].concat(_toConsumableArray(n.map(function (t) {
4082
+ re([].concat(_toConsumableArray(n.map(function (t) {
4082
4083
  return C(C({}, t), {}, {
4083
4084
  blankIds: t.blankIds.filter(function (t) {
4084
4085
  return t !== e;
@@ -4091,13 +4092,13 @@ function La(_ref62) {
4091
4092
  return e.blankIds.length > 0;
4092
4093
  }));
4093
4094
  }
4094
- function E(e) {
4095
- var t = te(e);
4095
+ function T(e) {
4096
+ var t = ne(e);
4096
4097
  p(function (e) {
4097
4098
  return C(C({}, e), {}, _defineProperty({}, t, Ra(e, t) + 1));
4098
4099
  });
4099
4100
  }
4100
- function D(e, t) {
4101
+ function E(e, t) {
4101
4102
  return [{
4102
4103
  label: u("questionContentEditor.blank.singleAnswer"),
4103
4104
  value: "__single__"
@@ -4109,13 +4110,13 @@ function La(_ref62) {
4109
4110
  }),
4110
4111
  value: "group:".concat(e)
4111
4112
  };
4112
- })), _toConsumableArray(ce(e).length > 0 ? [{
4113
+ })), _toConsumableArray(le(e).length > 0 ? [{
4113
4114
  label: u("questionContentEditor.blank.newAnswerGroup"),
4114
4115
  value: "__new__"
4115
4116
  }] : []));
4116
4117
  }
4117
- function ge() {
4118
- return ce(m == null ? "" : m).map(function (e) {
4118
+ function _e() {
4119
+ return le(m == null ? "" : m).map(function (e) {
4119
4120
  return {
4120
4121
  label: u("questionContentEditor.blank.shortLabel", {
4121
4122
  index: v.blanks.indexOf(e) + 1
@@ -4124,7 +4125,7 @@ function La(_ref62) {
4124
4125
  };
4125
4126
  });
4126
4127
  }
4127
- function _e(e, t) {
4128
+ function ve(e, t) {
4128
4129
  var n = new Set(e.map(function (e) {
4129
4130
  return e.optionId;
4130
4131
  })),
@@ -4133,7 +4134,7 @@ function La(_ref62) {
4133
4134
  for (; n.has(i);) r += 1, i = "".concat(t).concat(r);
4134
4135
  return i;
4135
4136
  }
4136
- function ve(n, r) {
4137
+ function ye(n, r) {
4137
4138
  return (0, t.jsx)("div", {
4138
4139
  className: "flex min-w-0 flex-col gap-2",
4139
4140
  children: n.map(function (i, a) {
@@ -4151,7 +4152,7 @@ function La(_ref62) {
4151
4152
  index: a + 1
4152
4153
  }),
4153
4154
  onChange: function onChange(e) {
4154
- return ae(n, r, i.optionId, e);
4155
+ return oe(n, r, i.optionId, e);
4155
4156
  },
4156
4157
  placeholder: u("questionContentEditor.placeholders.candidateOption"),
4157
4158
  value: i.content,
@@ -4164,7 +4165,7 @@ function La(_ref62) {
4164
4165
  disabled: e || n.length <= 1,
4165
4166
  icon: "\xD7",
4166
4167
  onClick: function onClick() {
4167
- return oe(n, r, i.optionId);
4168
+ return se(n, r, i.optionId);
4168
4169
  },
4169
4170
  size: "small"
4170
4171
  })]
@@ -4172,7 +4173,7 @@ function La(_ref62) {
4172
4173
  })
4173
4174
  });
4174
4175
  }
4175
- function ye(n, r, i, a) {
4176
+ function be(n, r, i, a) {
4176
4177
  return (0, t.jsxs)("section", {
4177
4178
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white px-4 py-3",
4178
4179
  children: [(0, t.jsxs)("div", {
@@ -4184,22 +4185,22 @@ function La(_ref62) {
4184
4185
  disabled: e,
4185
4186
  icon: "+",
4186
4187
  onClick: function onClick() {
4187
- return r([].concat(_toConsumableArray(n), [yn(_e(n, a))]));
4188
+ return r([].concat(_toConsumableArray(n), [yn(ve(n, a))]));
4188
4189
  },
4189
4190
  size: "small",
4190
4191
  children: u("questionContentEditor.actions.addCandidateOption")
4191
4192
  })]
4192
- }), ve(n, r)]
4193
+ }), ye(n, r)]
4193
4194
  });
4194
4195
  }
4195
- function be() {
4196
+ function xe() {
4196
4197
  var e;
4197
4198
  return (e = v.candidateOptions) == null ? [] : e;
4198
4199
  }
4199
- function xe(e) {
4200
+ function Se(e) {
4200
4201
  if (r.config.candidateMode !== "sharedPool" || r.config.allowCandidateReuse) return new Set();
4201
4202
  var t = new Set(e.blankIds);
4202
- return new Set(T().filter(function (e) {
4203
+ return new Set(w().filter(function (e) {
4203
4204
  return e.blankIds.every(function (e) {
4204
4205
  return !t.has(e);
4205
4206
  });
@@ -4207,8 +4208,8 @@ function La(_ref62) {
4207
4208
  return [].concat(_toConsumableArray(e), _toConsumableArray(t.answerOptionIds));
4208
4209
  }, []));
4209
4210
  }
4210
- function Se(n, r) {
4211
- var i = te(n),
4211
+ function Ce(n, r) {
4212
+ var i = ne(n),
4212
4213
  a = Mn(n),
4213
4214
  o = a.length ? [].concat(_toConsumableArray(a), _toConsumableArray(Array.from({
4214
4215
  length: Ra(f, i)
@@ -4219,8 +4220,8 @@ function La(_ref62) {
4219
4220
  }, function () {
4220
4221
  return "";
4221
4222
  }),
4222
- s = xe(n),
4223
- c = be().map(function (e, t) {
4223
+ s = Se(n),
4224
+ c = xe().map(function (e, t) {
4224
4225
  var n = Zt("upperAlpha", t),
4225
4226
  r = a.includes(e.optionId);
4226
4227
  return {
@@ -4243,7 +4244,7 @@ function La(_ref62) {
4243
4244
  className: "min-w-60",
4244
4245
  disabled: e,
4245
4246
  onChange: function onChange(e) {
4246
- return re(r, a, e);
4247
+ return ie(r, a, e);
4247
4248
  },
4248
4249
  options: c,
4249
4250
  placeholder: u("questionContentEditor.placeholders.blankAnswer"),
@@ -4254,18 +4255,18 @@ function La(_ref62) {
4254
4255
  disabled: e,
4255
4256
  icon: "+",
4256
4257
  onClick: function onClick() {
4257
- return E(n);
4258
+ return T(n);
4258
4259
  },
4259
4260
  type: "dashed",
4260
4261
  children: u("questionContentEditor.actions.addAnswerPool")
4261
4262
  })]
4262
4263
  });
4263
4264
  }
4264
- function Ce(n) {
4265
+ function we(n) {
4265
4266
  return (0, t.jsx)(M, {
4266
4267
  disabled: e,
4267
4268
  onClick: function onClick() {
4268
- return he(n);
4269
+ return ge(n);
4269
4270
  },
4270
4271
  size: "small",
4271
4272
  children: u("questionContentEditor.blank.memberDetach", {
@@ -4273,7 +4274,7 @@ function La(_ref62) {
4273
4274
  })
4274
4275
  }, n);
4275
4276
  }
4276
- function we(e, n, r) {
4277
+ function Te(e, n, r) {
4277
4278
  return (0, t.jsxs)("section", {
4278
4279
  className: "flex min-w-0 flex-col gap-3 rounded-md border border-blue-200 bg-blue-50/40 px-4 py-3",
4279
4280
  children: [(0, t.jsxs)("div", {
@@ -4285,15 +4286,15 @@ function La(_ref62) {
4285
4286
  children: u("questionContentEditor.blank.answerGroup", {
4286
4287
  index: r + 1
4287
4288
  })
4288
- }), e.blankIds.map(Ce)]
4289
+ }), e.blankIds.map(we)]
4289
4290
  }), (0, t.jsx)(N.Text, {
4290
4291
  strong: !0,
4291
4292
  children: u("questionContentEditor.blank.sharedAnswer")
4292
4293
  })]
4293
- }), Se(e, n)]
4294
+ }), Ce(e, n)]
4294
4295
  }, "candidate-shared-group-".concat(n));
4295
4296
  }
4296
- function Te(n, r, i, a, o) {
4297
+ function Ee(n, r, i, a, o) {
4297
4298
  return (0, t.jsxs)("section", {
4298
4299
  className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
4299
4300
  children: [(0, t.jsx)(N.Text, {
@@ -4309,18 +4310,18 @@ function La(_ref62) {
4309
4310
  className: "w-48",
4310
4311
  disabled: e,
4311
4312
  onChange: function onChange(e) {
4312
- return le(n, e == null ? "__single__" : e);
4313
+ return ue(n, e == null ? "__single__" : e);
4313
4314
  },
4314
- options: D(n, o),
4315
+ options: E(n, o),
4315
4316
  value: "__single__"
4316
4317
  }), (0, t.jsx)("div", {
4317
4318
  className: "min-w-72 flex-1",
4318
- children: Se(i, a)
4319
+ children: Ce(i, a)
4319
4320
  })]
4320
4321
  }, n);
4321
4322
  }
4322
- function Ee() {
4323
- return T().map(function (e, t) {
4323
+ function De() {
4324
+ return w().map(function (e, t) {
4324
4325
  return {
4325
4326
  firstBlankIndex: Math.min.apply(Math, _toConsumableArray(e.blankIds.map(function (e) {
4326
4327
  return v.blanks.indexOf(e);
@@ -4332,36 +4333,36 @@ function La(_ref62) {
4332
4333
  return e.firstBlankIndex - t.firstBlankIndex;
4333
4334
  });
4334
4335
  }
4335
- function De() {
4336
- var e = se();
4336
+ function Oe() {
4337
+ var e = ce();
4337
4338
  return (0, t.jsxs)("div", {
4338
4339
  className: "flex min-w-0 flex-col gap-3",
4339
4340
  children: [(0, t.jsx)(N.Text, {
4340
4341
  strong: !0,
4341
4342
  children: u("questionContentEditor.blank.groupsTitle")
4342
- }), Ee().map(function (_ref70) {
4343
+ }), De().map(function (_ref70) {
4343
4344
  var t = _ref70.group,
4344
4345
  n = _ref70.groupIndex;
4345
- if (t.blankIds.length > 1) return we(t, n, e.findIndex(function (e) {
4346
+ if (t.blankIds.length > 1) return Te(t, n, e.findIndex(function (e) {
4346
4347
  return e.groupIndex === n;
4347
4348
  }));
4348
4349
  var r = t.blankIds[0];
4349
- return r ? Te(r, v.blanks.indexOf(r), t, n, e) : null;
4350
+ return r ? Ee(r, v.blanks.indexOf(r), t, n, e) : null;
4350
4351
  })]
4351
4352
  });
4352
4353
  }
4353
- function Oe(e) {
4354
+ function ke(e) {
4354
4355
  var t, n;
4355
4356
  var r = v.answers.find(function (t) {
4356
4357
  return "answerOptionId" in t && t.blankId === e;
4357
4358
  }),
4358
- i = (t = (n = ie(e).options[0]) == null ? void 0 : n.optionId) == null ? "" : t;
4359
+ i = (t = (n = ae(e).options[0]) == null ? void 0 : n.optionId) == null ? "" : t;
4359
4360
  return {
4360
4361
  answerOptionId: (r == null ? void 0 : r.answerOptionId) || i,
4361
4362
  blankId: e
4362
4363
  };
4363
4364
  }
4364
- function ke(e, t) {
4365
+ function Ae(e, t) {
4365
4366
  x(C(C({}, v), {}, {
4366
4367
  answers: v.answers.map(function (n) {
4367
4368
  return "answerOptionId" in n && n.blankId === e ? C(C({}, n), {}, {
@@ -4370,14 +4371,14 @@ function La(_ref62) {
4370
4371
  })
4371
4372
  }));
4372
4373
  }
4373
- function Ae(e, t) {
4374
- w(e, {
4374
+ function je(e, t) {
4375
+ te(e, {
4375
4376
  blankId: e,
4376
4377
  options: t
4377
4378
  });
4378
4379
  }
4379
- function je(n, r) {
4380
- var a = Oe(n.blankId),
4380
+ function Me(n, r) {
4381
+ var a = ke(n.blankId),
4381
4382
  o = n.options.map(function (e, t) {
4382
4383
  return {
4383
4384
  label: "".concat(Zt("upperAlpha", t), ". ").concat(e.content.text || u("questionContentEditor.fields.candidateOption", {
@@ -4409,7 +4410,7 @@ function La(_ref62) {
4409
4410
  className: "min-w-48",
4410
4411
  disabled: e,
4411
4412
  onChange: function onChange(e) {
4412
- return e ? ke(n.blankId, e) : void 0;
4413
+ return e ? Ae(n.blankId, e) : void 0;
4413
4414
  },
4414
4415
  options: o,
4415
4416
  value: a.answerOptionId
@@ -4417,22 +4418,22 @@ function La(_ref62) {
4417
4418
  }) : null, (0, t.jsx)(M, {
4418
4419
  disabled: e,
4419
4420
  onClick: function onClick() {
4420
- return Ae(n.blankId, [].concat(_toConsumableArray(n.options), [yn(_e(n.options, "".concat(n.blankId, "_option_")))]));
4421
+ return je(n.blankId, [].concat(_toConsumableArray(n.options), [yn(ve(n.options, "".concat(n.blankId, "_option_")))]));
4421
4422
  },
4422
4423
  size: "small",
4423
4424
  children: u("questionContentEditor.actions.addBlankOption")
4424
4425
  })]
4425
4426
  })]
4426
- }), ve(n.options, function (e) {
4427
- return Ae(n.blankId, e);
4427
+ }), ye(n.options, function (e) {
4428
+ return je(n.blankId, e);
4428
4429
  })]
4429
4430
  }, n.blankId);
4430
4431
  }
4431
- function Me() {
4432
+ function Ne() {
4432
4433
  if (r.config.candidateMode === "sharedPool") {
4433
4434
  var e;
4434
4435
  return (0, t.jsxs)(t.Fragment, {
4435
- children: [ye((e = v.candidateOptions) == null ? [] : e, ee, u("questionContentEditor.fields.candidateOptions"), "option_"), i ? De() : null]
4436
+ children: [be((e = v.candidateOptions) == null ? [] : e, ee, u("questionContentEditor.fields.candidateOptions"), "option_"), i ? Oe() : null]
4436
4437
  });
4437
4438
  }
4438
4439
  var n = jn(v.blankOptionGroups, v.blanks);
@@ -4441,7 +4442,7 @@ function La(_ref62) {
4441
4442
  children: [(0, t.jsx)(N.Text, {
4442
4443
  strong: !0,
4443
4444
  children: u("questionContentEditor.blank.perBlankOptionsTitle")
4444
- }), n.map(je)]
4445
+ }), n.map(Me)]
4445
4446
  });
4446
4447
  }
4447
4448
  return (0, t.jsxs)("div", {
@@ -4476,15 +4477,15 @@ function La(_ref62) {
4476
4477
  onChange: S,
4477
4478
  richTextControls: s,
4478
4479
  translator: l
4479
- }) : Me(), (0, t.jsx)(_a, {
4480
+ }) : Ne(), (0, t.jsx)(_a, {
4480
4481
  cancelText: u("questionContentEditor.actions.cancel"),
4481
4482
  closeLabel: u("questionContentEditor.actions.close"),
4482
4483
  okButtonProps: {
4483
4484
  disabled: !g
4484
4485
  },
4485
4486
  okText: u("questionContentEditor.actions.confirmCreateAnswerGroup"),
4486
- onCancel: fe,
4487
- onOk: pe,
4487
+ onCancel: pe,
4488
+ onOk: me,
4488
4489
  open: !!m,
4489
4490
  title: u("questionContentEditor.blank.createGroupTitle"),
4490
4491
  children: (0, t.jsxs)("div", {
@@ -4496,7 +4497,7 @@ function La(_ref62) {
4496
4497
  onChange: function onChange(e) {
4497
4498
  return _(String(e.target.value));
4498
4499
  },
4499
- options: ge(),
4500
+ options: _e(),
4500
4501
  value: g
4501
4502
  })]
4502
4503
  })
@@ -4570,7 +4571,7 @@ function Ha(e) {
4570
4571
  return Array.isArray(e);
4571
4572
  }
4572
4573
  function Ua(e, t) {
4573
- var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Ye;
4574
+ var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Xe;
4574
4575
  var r = e.columns.reduce(function (e, t, n) {
4575
4576
  return t.items.forEach(function (t, r) {
4576
4577
  return e.set(t.itemId, {
@@ -4740,26 +4741,26 @@ function Qa(_ref77) {
4740
4741
  function ee(e, t) {
4741
4742
  S(cr(g, e, t));
4742
4743
  }
4743
- function w(e, t) {
4744
+ function te(e, t) {
4744
4745
  S(C(C({}, g), {}, {
4745
4746
  answers: lr(g.answers, e, t)
4746
4747
  }));
4747
4748
  }
4748
- function T(t, n, r) {
4749
+ function w(t, n, r) {
4749
4750
  if (e || !i) return;
4750
4751
  var a = {
4751
4752
  columnIndex: t,
4752
4753
  itemId: n,
4753
4754
  label: r
4754
4755
  },
4755
- o = u ? Xe(u, a) : null;
4756
+ o = u ? Ze(u, a) : null;
4756
4757
  if (o) {
4757
- w(o.fromItemId, o.toItemId), d(null);
4758
+ te(o.fromItemId, o.toItemId), d(null);
4758
4759
  return;
4759
4760
  }
4760
4761
  d(a);
4761
4762
  }
4762
- function te() {
4763
+ function ne() {
4763
4764
  return i ? (0, t.jsx)("div", {
4764
4765
  "aria-live": "polite",
4765
4766
  className: "rounded-md border border-blue-100 bg-blue-50 px-3 py-2 text-sm text-blue-700",
@@ -4768,7 +4769,7 @@ function Qa(_ref77) {
4768
4769
  }) : l("questionContentEditor.lineConnect.connectHintIdle")
4769
4770
  }) : null;
4770
4771
  }
4771
- function ne(n, r) {
4772
+ function re(n, r) {
4772
4773
  return (0, t.jsxs)("section", {
4773
4774
  className: L.column,
4774
4775
  children: [(0, t.jsxs)("div", {
@@ -4811,7 +4812,7 @@ function Qa(_ref77) {
4811
4812
  }), (0, t.jsx)("div", {
4812
4813
  className: "flex min-w-0 flex-col gap-2",
4813
4814
  children: n.items.map(function (e, t) {
4814
- return re(n, r, e, t);
4815
+ return ie(n, r, e, t);
4815
4816
  })
4816
4817
  }), (0, t.jsx)(M, {
4817
4818
  "aria-label": l("questionContentEditor.lineConnect.addItem", {
@@ -4829,7 +4830,7 @@ function Qa(_ref77) {
4829
4830
  })]
4830
4831
  }, n.columnId);
4831
4832
  }
4832
- function re(n, r, a, o) {
4833
+ function ie(n, r, a, o) {
4833
4834
  var c = Qt(n.labelStyle, o),
4834
4835
  d = c ? "".concat(c, ". ").concat(a.content.text) : a.content.text,
4835
4836
  f = (u == null ? void 0 : u.itemId) === a.itemId,
@@ -4841,7 +4842,7 @@ function Qa(_ref77) {
4841
4842
  className: ro(f, h),
4842
4843
  "data-testid": "line-connect-item-".concat(a.itemId),
4843
4844
  style: _,
4844
- children: [ie(r, a, o, c, d, p), (0, t.jsx)(F, {
4845
+ children: [ae(r, a, o, c, d, p), (0, t.jsx)(F, {
4845
4846
  controls: s,
4846
4847
  disabled: e,
4847
4848
  label: l("questionContentEditor.lineConnect.itemAria", {
@@ -4868,17 +4869,17 @@ function Qa(_ref77) {
4868
4869
  return S(sr(g, a.itemId));
4869
4870
  },
4870
4871
  size: "small"
4871
- }), ae(r, a, o, d, f, m)]
4872
+ }), oe(r, a, o, d, f, m)]
4872
4873
  }, a.itemId);
4873
4874
  }
4874
- function ie(n, r, a, o, s, c) {
4875
+ function ae(n, r, a, o, s, c) {
4875
4876
  return i ? (0, t.jsx)("button", {
4876
- "aria-label": oe("incoming", n, a, r.content.text),
4877
+ "aria-label": se("incoming", n, a, r.content.text),
4877
4878
  "aria-pressed": c,
4878
4879
  className: Ba(R.marker, R["incoming-marker"], c && R["connect-button-connected"]),
4879
4880
  disabled: e,
4880
4881
  onClick: function onClick() {
4881
- return T(n, r.itemId, s);
4882
+ return w(n, r.itemId, s);
4882
4883
  },
4883
4884
  ref: x(r.itemId, "incoming"),
4884
4885
  title: u ? l("questionContentEditor.lineConnect.connectHintActive", {
@@ -4895,15 +4896,15 @@ function Qa(_ref77) {
4895
4896
  children: o
4896
4897
  });
4897
4898
  }
4898
- function ae(n, r, a, o, s, c) {
4899
+ function oe(n, r, a, o, s, c) {
4899
4900
  return i ? (0, t.jsx)("button", {
4900
- "aria-label": oe("outgoing", n, a, r.content.text),
4901
+ "aria-label": se("outgoing", n, a, r.content.text),
4901
4902
  "aria-pressed": s,
4902
4903
  className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
4903
4904
  disabled: e,
4904
4905
  ref: x(r.itemId, "outgoing"),
4905
4906
  onClick: function onClick() {
4906
- return T(n, r.itemId, o);
4907
+ return w(n, r.itemId, o);
4907
4908
  },
4908
4909
  title: u ? l("questionContentEditor.lineConnect.connectHintActive", {
4909
4910
  label: u.label
@@ -4915,7 +4916,7 @@ function Qa(_ref77) {
4915
4916
  })
4916
4917
  }) : null;
4917
4918
  }
4918
- function oe(e, t, n, r) {
4919
+ function se(e, t, n, r) {
4919
4920
  return l("questionContentEditor.lineConnect.".concat(e === "incoming" ? "connectToAria" : "connectFromAria"), {
4920
4921
  column: t + 1,
4921
4922
  content: r,
@@ -4924,7 +4925,7 @@ function Qa(_ref77) {
4924
4925
  }
4925
4926
  return (0, t.jsxs)("div", {
4926
4927
  className: "flex min-w-0 flex-col gap-4",
4927
- children: [te(), (0, t.jsxs)("div", {
4928
+ children: [ne(), (0, t.jsxs)("div", {
4928
4929
  className: L.board,
4929
4930
  "data-testid": "line-connect-editor-board",
4930
4931
  ref: m,
@@ -4950,7 +4951,7 @@ function Qa(_ref77) {
4950
4951
  }) : null, (0, t.jsx)("div", {
4951
4952
  className: L.columns,
4952
4953
  style: _,
4953
- children: g.columns.map(ne)
4954
+ children: g.columns.map(re)
4954
4955
  })]
4955
4956
  }), (0, t.jsx)(M, {
4956
4957
  "aria-label": l("questionContentEditor.lineConnect.addColumn"),
@@ -5022,7 +5023,7 @@ function oo(_ref82) {
5022
5023
  gridTemplateColumns: "repeat(".concat(g.columns.length, ", minmax(16rem, 1fr))")
5023
5024
  },
5024
5025
  v = (0, n.useMemo)(function () {
5025
- return i ? Ua(g, g.answers, st) : [];
5026
+ return i ? Ua(g, g.answers, ct) : [];
5026
5027
  }, [i, g]),
5027
5028
  y = (0, n.useMemo)(function () {
5028
5029
  return JSON.stringify({
@@ -5093,14 +5094,14 @@ function oo(_ref82) {
5093
5094
  function ee(e, t) {
5094
5095
  S(hr(g, e, t));
5095
5096
  }
5096
- function w(t, n, r) {
5097
+ function te(t, n, r) {
5097
5098
  if (e || !i) return;
5098
5099
  var a = {
5099
5100
  columnIndex: t,
5100
5101
  itemId: n,
5101
5102
  label: r
5102
5103
  },
5103
- o = u ? ct(u, a) : null;
5104
+ o = u ? lt(u, a) : null;
5104
5105
  if (o) {
5105
5106
  S(C(C({}, g), {}, {
5106
5107
  answers: gr(g.answers, o.fromItemId, o.toItemId)
@@ -5109,7 +5110,7 @@ function oo(_ref82) {
5109
5110
  }
5110
5111
  d(a);
5111
5112
  }
5112
- function T(n, r) {
5113
+ function w(n, r) {
5113
5114
  return (0, t.jsxs)("section", {
5114
5115
  className: z.column,
5115
5116
  children: [(0, t.jsx)("div", {
@@ -5133,7 +5134,7 @@ function oo(_ref82) {
5133
5134
  }), (0, t.jsx)("div", {
5134
5135
  className: z.items,
5135
5136
  children: n.items.map(function (e, t) {
5136
- return te(n, r, e, t);
5137
+ return ne(n, r, e, t);
5137
5138
  })
5138
5139
  }), (0, t.jsx)(M, {
5139
5140
  "aria-label": l("questionContentEditor.matching.addItem", {
@@ -5149,7 +5150,7 @@ function oo(_ref82) {
5149
5150
  })]
5150
5151
  }, n.columnId);
5151
5152
  }
5152
- function te(n, r, a, o) {
5153
+ function ne(n, r, a, o) {
5153
5154
  var c = $t(n.labelStyle, o),
5154
5155
  d = (u == null ? void 0 : u.itemId) === a.itemId,
5155
5156
  f = so(g, a.itemId),
@@ -5161,7 +5162,7 @@ function oo(_ref82) {
5161
5162
  className: Ba(z.item, d ? z.selected : "", m ? z.matched : ""),
5162
5163
  "data-testid": "matching-editor-item-".concat(a.itemId),
5163
5164
  style: _,
5164
- children: [ne(r, a, o, c, h, f), (0, t.jsx)(F, {
5165
+ children: [re(r, a, o, c, h, f), (0, t.jsx)(F, {
5165
5166
  controls: s,
5166
5167
  disabled: e,
5167
5168
  label: l("questionContentEditor.matching.itemAria", {
@@ -5188,17 +5189,17 @@ function oo(_ref82) {
5188
5189
  return S(mr(g, a.itemId));
5189
5190
  },
5190
5191
  size: "small"
5191
- }), re(r, a, o, h, d, p)]
5192
+ }), ie(r, a, o, h, d, p)]
5192
5193
  }, a.itemId);
5193
5194
  }
5194
- function ne(n, r, a, o, s, c) {
5195
+ function re(n, r, a, o, s, c) {
5195
5196
  return i ? (0, t.jsx)("button", {
5196
- "aria-label": ie("incoming", n, a, r.content.text),
5197
+ "aria-label": ae("incoming", n, a, r.content.text),
5197
5198
  "aria-pressed": c,
5198
5199
  className: Ba(z.marker, R["incoming-marker"], c && R["connect-button-connected"]),
5199
5200
  disabled: e,
5200
5201
  onClick: function onClick() {
5201
- return w(n, r.itemId, s);
5202
+ return te(n, r.itemId, s);
5202
5203
  },
5203
5204
  ref: x(r.itemId, "incoming"),
5204
5205
  title: u ? l("questionContentEditor.matching.connectHintActive", {
@@ -5214,14 +5215,14 @@ function oo(_ref82) {
5214
5215
  children: o
5215
5216
  }) : (0, t.jsx)("span", {});
5216
5217
  }
5217
- function re(n, r, a, o, s, c) {
5218
+ function ie(n, r, a, o, s, c) {
5218
5219
  return i ? (0, t.jsx)("button", {
5219
- "aria-label": ie("outgoing", n, a, r.content.text),
5220
+ "aria-label": ae("outgoing", n, a, r.content.text),
5220
5221
  "aria-pressed": s,
5221
5222
  className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
5222
5223
  disabled: e,
5223
5224
  onClick: function onClick() {
5224
- return w(n, r.itemId, o);
5225
+ return te(n, r.itemId, o);
5225
5226
  },
5226
5227
  ref: x(r.itemId, "outgoing"),
5227
5228
  title: u ? l("questionContentEditor.matching.connectHintActive", {
@@ -5234,7 +5235,7 @@ function oo(_ref82) {
5234
5235
  })
5235
5236
  }) : null;
5236
5237
  }
5237
- function ie(e, t, n, r) {
5238
+ function ae(e, t, n, r) {
5238
5239
  return l("questionContentEditor.matching.".concat(e === "incoming" ? "connectToAria" : "connectFromAria"), {
5239
5240
  column: t + 1,
5240
5241
  content: r,
@@ -5276,7 +5277,7 @@ function oo(_ref82) {
5276
5277
  className: z.columns,
5277
5278
  style: _,
5278
5279
  children: g.columns.map(function (e, t) {
5279
- return T(e, t);
5280
+ return w(e, t);
5280
5281
  })
5281
5282
  })]
5282
5283
  })]
@@ -5702,13 +5703,13 @@ function go(_ref91) {
5702
5703
  c = _ref91.translator;
5703
5704
  var l = (0, n.useRef)(null),
5704
5705
  u = c.t,
5705
- d = yt(i.content.json);
5706
+ d = bt(i.content.json);
5706
5707
  function f(e) {
5707
5708
  a(gn(e, e.content, r));
5708
5709
  }
5709
5710
  function p() {
5710
5711
  var e;
5711
- var t = bt();
5712
+ var t = xt();
5712
5713
  (e = l.current) == null || e.runCommand({
5713
5714
  command: "mark.textMarker",
5714
5715
  payload: t
@@ -6334,7 +6335,7 @@ function Bo(_ref100) {
6334
6335
  y = Io(_ ? v.children : []);
6335
6336
  if (!_) return (0, t.jsxs)("section", {
6336
6337
  className: "flex min-w-0 flex-col gap-3 border-b border-l-2 border-slate-200 border-l-blue-600 bg-white py-4 pr-0 pl-3 last:border-b-0 sm:pl-4",
6337
- children: [w(null), T((0, t.jsx)(ba, {
6338
+ children: [te(null), w((0, t.jsx)(ba, {
6338
6339
  description: p("questionContentEditor.subquestion.missingTemplate")
6339
6340
  }))]
6340
6341
  });
@@ -6367,7 +6368,7 @@ function Bo(_ref100) {
6367
6368
  }
6368
6369
  return (0, t.jsxs)("section", {
6369
6370
  className: "flex min-w-0 flex-col gap-3 border-b border-l-2 border-slate-200 border-l-blue-600 bg-white py-4 pr-0 pl-3 last:border-b-0 sm:pl-4",
6370
- children: [w(b), T(Uo(i, v, o, l, _, f)), v.children.length === 0 ? null : (0, t.jsx)("div", {
6371
+ children: [te(b), w(Uo(i, v, o, l, _, f)), v.children.length === 0 ? null : (0, t.jsx)("div", {
6371
6372
  className: "ml-3 flex min-w-0 flex-col pl-3 sm:ml-4 sm:pl-4",
6372
6373
  children: y.map(function (e, n) {
6373
6374
  return (0, t.jsx)(Bo, {
@@ -6393,7 +6394,7 @@ function Bo(_ref100) {
6393
6394
  })
6394
6395
  })]
6395
6396
  });
6396
- function w(r) {
6397
+ function te(r) {
6397
6398
  return (0, t.jsxs)("div", {
6398
6399
  className: "flex min-w-0 flex-wrap items-start justify-between gap-3",
6399
6400
  children: [(0, t.jsx)("span", {
@@ -6444,7 +6445,7 @@ function Bo(_ref100) {
6444
6445
  })]
6445
6446
  });
6446
6447
  }
6447
- function T(e) {
6448
+ function w(e) {
6448
6449
  return (0, t.jsx)(Ao, {
6449
6450
  number: Do(m, u) ? h : null,
6450
6451
  children: e
@@ -6584,7 +6585,7 @@ function qo(_ref102) {
6584
6585
  f = Zi(o, l),
6585
6586
  p = (0, n.useMemo)(function () {
6586
6587
  return {
6587
- plugins: [Dt, ra],
6588
+ plugins: [Ot, ra],
6588
6589
  uploadImage: s
6589
6590
  };
6590
6591
  }, [s]);
@@ -6654,9 +6655,12 @@ function qo(_ref102) {
6654
6655
  className: ["question-content-editor", fa.root, fa["rich-text-root"]].join(" "),
6655
6656
  plugins: p.plugins,
6656
6657
  uploadImage: s,
6657
- children: [r ? null : (0, t.jsx)(e.RichTextEditor.Toolbar, {
6658
- "aria-label": "Rich text toolbar",
6659
- className: fa["rich-text-toolbar"]
6658
+ children: [r ? null : (0, t.jsx)("div", {
6659
+ className: fa["rich-text-toolbar-sticky"],
6660
+ children: (0, t.jsx)(e.RichTextEditor.Toolbar, {
6661
+ "aria-label": "Rich text toolbar",
6662
+ className: fa["rich-text-toolbar"]
6663
+ })
6660
6664
  }), (0, t.jsx)(aa.Provider, {
6661
6665
  value: !0,
6662
6666
  children: v
@@ -6683,7 +6687,7 @@ function Xo(e, t) {
6683
6687
  }),
6684
6688
  extras: e.extras.map(function (e) {
6685
6689
  return {
6686
- name: ls(e, ge(e.type), _e(e.type), t),
6690
+ name: ls(e, _e(e.type), ve(e.type), t),
6687
6691
  type: e.type
6688
6692
  };
6689
6693
  }),
@@ -6804,7 +6808,7 @@ function os(e) {
6804
6808
  function ss(e, t) {
6805
6809
  return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? {
6806
6810
  config: {},
6807
- name: ls(e, E(e.type), D(e.type), t),
6811
+ name: ls(e, T(e.type), E(e.type), t),
6808
6812
  type: e.type
6809
6813
  } : cs(e, t);
6810
6814
  }
@@ -6816,7 +6820,7 @@ function cs(e, t) {
6816
6820
  allowCandidateReuse: !!e.config.allowCandidateReuse,
6817
6821
  candidateMode: e.config.candidateMode
6818
6822
  },
6819
- name: ls(e, E("inlineFill"), D("inlineFill"), t),
6823
+ name: ls(e, T("inlineFill"), E("inlineFill"), t),
6820
6824
  type: "inlineFill"
6821
6825
  };
6822
6826
  case "wordBuilder":
@@ -6824,7 +6828,7 @@ function cs(e, t) {
6824
6828
  config: {
6825
6829
  builderMode: e.config.builderMode
6826
6830
  },
6827
- name: ls(e, E("wordBuilder"), D("wordBuilder"), t),
6831
+ name: ls(e, T("wordBuilder"), E("wordBuilder"), t),
6828
6832
  type: "wordBuilder"
6829
6833
  };
6830
6834
  case "judgement":
@@ -6832,7 +6836,7 @@ function cs(e, t) {
6832
6836
  config: {
6833
6837
  judgeAnswerMode: e.config.judgeAnswerMode
6834
6838
  },
6835
- name: ls(e, E("judgement"), D("judgement"), t),
6839
+ name: ls(e, T("judgement"), E("judgement"), t),
6836
6840
  type: "judgement"
6837
6841
  };
6838
6842
  case "choice":
@@ -6842,7 +6846,7 @@ function cs(e, t) {
6842
6846
  renderer: e.config.renderer,
6843
6847
  selectionType: e.config.selectionType
6844
6848
  },
6845
- name: ls(e, E("choice"), D("choice"), t),
6849
+ name: ls(e, T("choice"), E("choice"), t),
6846
6850
  type: "choice"
6847
6851
  };
6848
6852
  case "lineConnect":
@@ -6852,7 +6856,7 @@ function cs(e, t) {
6852
6856
  return C({}, e);
6853
6857
  })
6854
6858
  },
6855
- name: ls(e, E("lineConnect"), D("lineConnect"), t),
6859
+ name: ls(e, T("lineConnect"), E("lineConnect"), t),
6856
6860
  type: "lineConnect"
6857
6861
  };
6858
6862
  case "matching":
@@ -6862,7 +6866,7 @@ function cs(e, t) {
6862
6866
  return C({}, e);
6863
6867
  })
6864
6868
  },
6865
- name: ls(e, E("matching"), D("matching"), t),
6869
+ name: ls(e, T("matching"), E("matching"), t),
6866
6870
  type: "matching"
6867
6871
  };
6868
6872
  }
@@ -7273,23 +7277,23 @@ function Js(e, t, n) {
7273
7277
  });
7274
7278
  }
7275
7279
  function Ys(e, t, n) {
7276
- return Fe(e, t, n);
7280
+ return Ie(e, t, n);
7277
7281
  }
7278
7282
  function Xs(e, t) {
7279
7283
  var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "single";
7280
7284
  return {
7281
7285
  kind: "option",
7282
- optionIds: Fe((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
7286
+ optionIds: Ie((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
7283
7287
  };
7284
7288
  }
7285
7289
  function Zs(e, t, n) {
7286
- return nt(e, t, n);
7290
+ return rt(e, t, n);
7287
7291
  }
7288
7292
  function Qs(e, t, n) {
7289
- return dt(e, t, n);
7293
+ return ft(e, t, n);
7290
7294
  }
7291
7295
  function $s(e, t, n) {
7292
- return Ke(e, t, n);
7296
+ return qe(e, t, n);
7293
7297
  }
7294
7298
  function ec(e, t, n, r) {
7295
7299
  return Mr(e, t.sortOptions, n, r);
@@ -7372,7 +7376,7 @@ function dc() {
7372
7376
  };
7373
7377
  }
7374
7378
  function fc(e, t) {
7375
- return Ge(e, t.categories, t.items);
7379
+ return Ke(e, t.categories, t.items);
7376
7380
  }
7377
7381
  function pc(e) {
7378
7382
  return e.type === "ordering" ? {
@@ -7701,7 +7705,7 @@ function G(_ref107) {
7701
7705
  var n = _ref107.className,
7702
7706
  r = _ref107.content;
7703
7707
  var i = r.html || (0, e.serializeRichTextEditorHtml)(Jt(r), {
7704
- plugins: [Dt]
7708
+ plugins: [Ot]
7705
7709
  });
7706
7710
  return (0, t.jsx)("div", {
7707
7711
  className: n ? "".concat(W["rich-content"], " ").concat(n) : W["rich-content"],
@@ -7954,7 +7958,7 @@ function Lc(e, t, n, r) {
7954
7958
  if (!(!r || !s)) return o ? s === o ? "correct" : "incorrect" : "unanswered";
7955
7959
  }
7956
7960
  function Rc(e, t) {
7957
- return Ge(e, t.categories, t.items);
7961
+ return Ke(e, t.categories, t.items);
7958
7962
  }
7959
7963
  function zc(_ref115) {
7960
7964
  var e = _ref115.className,
@@ -8413,7 +8417,7 @@ function ol(e) {
8413
8417
  kind: "detailed",
8414
8418
  contents: ((s = e.answers[r.itemId]) == null ? [] : s).map(function (e) {
8415
8419
  var t = n.get(e);
8416
- return t && Ye(a, t.columnIndex) ? t.item : void 0;
8420
+ return t && Xe(a, t.columnIndex) ? t.item : void 0;
8417
8421
  }).filter(function (e) {
8418
8422
  return !!e;
8419
8423
  }).map(function (e, n) {
@@ -8526,7 +8530,7 @@ function cl(_ref126) {
8526
8530
  }
8527
8531
  function x(t, n) {
8528
8532
  if (e) return;
8529
- var r = l ? Xe(l, {
8533
+ var r = l ? Ze(l, {
8530
8534
  columnIndex: t,
8531
8535
  itemId: n
8532
8536
  }) : null;
@@ -8658,7 +8662,7 @@ function dl(_ref131) {
8658
8662
  f = fl(r, d.connections);
8659
8663
  function p(t, n) {
8660
8664
  if (e) return;
8661
- var r = l ? ct(l, {
8665
+ var r = l ? lt(l, {
8662
8666
  columnIndex: t,
8663
8667
  itemId: n
8664
8668
  }) : null;
@@ -9102,7 +9106,7 @@ function Cl(_ref140) {
9102
9106
  }, n);
9103
9107
  }
9104
9108
  function u(e, r) {
9105
- var i = xt(e);
9109
+ var i = St(e);
9106
9110
  if (!i) return (0, t.jsx)(n.Fragment, {
9107
9111
  children: e.text
9108
9112
  }, r);
@@ -9152,7 +9156,7 @@ function El(_ref141) {
9152
9156
  var e = _ref141.item,
9153
9157
  n = _ref141.messages,
9154
9158
  r = _ref141.showAnswer;
9155
- var i = yt(e.content.json).filter(function (t) {
9159
+ var i = bt(e.content.json).filter(function (t) {
9156
9160
  return e.answers.includes(t.markerId);
9157
9161
  }).map(function (e) {
9158
9162
  return e.text;
@@ -9197,30 +9201,17 @@ function Dl(_ref142) {
9197
9201
  selectedMarkers: c.selectedMarkers
9198
9202
  });
9199
9203
  }
9200
- var Ol = {
9201
- placeholder: "_placeholder_xde95_1"
9202
- };
9203
- function kl(_ref143) {
9204
- var e = _ref143.label;
9205
- return (0, t.jsx)("div", {
9206
- "aria-label": e,
9207
- className: Ol.placeholder,
9208
- children: e
9209
- });
9210
- }
9211
- function Al(_ref144) {
9212
- var e = _ref144.disabled,
9213
- n = _ref144.locale,
9214
- r = _ref144.label,
9215
- i = _ref144.messages,
9216
- a = _ref144.onChange,
9217
- o = _ref144.response,
9218
- s = _ref144.responseIndex,
9219
- c = _ref144.uploadImage;
9204
+ function Ol(_ref143) {
9205
+ var e = _ref143.disabled,
9206
+ n = _ref143.locale,
9207
+ r = _ref143.label,
9208
+ i = _ref143.messages,
9209
+ a = _ref143.onChange,
9210
+ o = _ref143.response,
9211
+ s = _ref143.responseIndex,
9212
+ c = _ref143.uploadImage;
9220
9213
  var l = Ks(o, s);
9221
- return e ? A(l.content) ? (0, t.jsx)(kl, {
9222
- label: i.textResponsePlaceholder
9223
- }) : (0, t.jsx)(G, {
9214
+ return e ? A(l.content) ? null : (0, t.jsx)(G, {
9224
9215
  content: l.content
9225
9216
  }) : (0, t.jsx)(Da, {
9226
9217
  ariaLabel: r,
@@ -9237,7 +9228,7 @@ function Al(_ref144) {
9237
9228
  value: l.content
9238
9229
  });
9239
9230
  }
9240
- function jl(e, n) {
9231
+ function kl(e, n) {
9241
9232
  return e.blanks.reduce(function (r, i) {
9242
9233
  var a;
9243
9234
  var o = (a = e.answers[i]) == null ? void 0 : a.trim();
@@ -9250,22 +9241,22 @@ function jl(e, n) {
9250
9241
  }]) : r;
9251
9242
  }, []);
9252
9243
  }
9253
- var Ml = {
9244
+ var Al = {
9254
9245
  "word-builder-blank": "_word-builder-blank_ftw6q_1",
9255
9246
  "word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
9256
9247
  };
9257
- function Nl(_ref145) {
9258
- var e = _ref145.disabled,
9259
- n = _ref145.element,
9260
- r = _ref145.item,
9261
- i = _ref145.messages,
9262
- a = _ref145.onChange,
9263
- o = _ref145.response,
9264
- s = _ref145.responseIndex,
9265
- c = _ref145.showAnswer;
9248
+ function jl(_ref144) {
9249
+ var e = _ref144.disabled,
9250
+ n = _ref144.element,
9251
+ r = _ref144.item,
9252
+ i = _ref144.messages,
9253
+ a = _ref144.onChange,
9254
+ o = _ref144.response,
9255
+ s = _ref144.responseIndex,
9256
+ c = _ref144.showAnswer;
9266
9257
  var l = _n(r, !0, n),
9267
9258
  u = zs(o, s, l.blanks),
9268
- d = jl(l, i.blankLabel);
9259
+ d = kl(l, i.blankLabel);
9269
9260
  function f(e, t) {
9270
9261
  a(C(C({}, u), {}, {
9271
9262
  answers: C(C({}, u.answers), {}, _defineProperty({}, e, t))
@@ -9296,13 +9287,13 @@ function Nl(_ref145) {
9296
9287
  className: U["fill-text"],
9297
9288
  children: [(0, t.jsx)(zc, {
9298
9289
  content: l.content,
9299
- renderBlank: function renderBlank(_ref146) {
9300
- var n = _ref146.blankId,
9301
- r = _ref146.index,
9302
- a = _ref146.label;
9290
+ renderBlank: function renderBlank(_ref145) {
9291
+ var n = _ref145.blankId,
9292
+ r = _ref145.index,
9293
+ a = _ref145.label;
9303
9294
  var o, s;
9304
9295
  var c = (o = u.answers[n]) == null ? "" : o,
9305
- l = Pl({
9296
+ l = Ml({
9306
9297
  answers: c,
9307
9298
  blankLabel: i.blankLabel,
9308
9299
  canClear: !e && !!c.trim(),
@@ -9311,7 +9302,7 @@ function Nl(_ref145) {
9311
9302
  });
9312
9303
  return (0, t.jsx)("button", {
9313
9304
  "aria-label": l,
9314
- className: Ml["word-builder-blank"],
9305
+ className: Al["word-builder-blank"],
9315
9306
  disabled: e,
9316
9307
  onClick: function onClick() {
9317
9308
  return p(n);
@@ -9328,7 +9319,7 @@ function Nl(_ref145) {
9328
9319
  });
9329
9320
  }
9330
9321
  }), (0, t.jsx)("div", {
9331
- className: Ml["word-builder-candidate-list"],
9322
+ className: Al["word-builder-candidate-list"],
9332
9323
  children: l.candidateOptions.map(function (n, r) {
9333
9324
  return (0, t.jsx)("button", {
9334
9325
  disabled: e,
@@ -9349,30 +9340,30 @@ function Nl(_ref145) {
9349
9340
  }) : null]
9350
9341
  });
9351
9342
  }
9352
- function Pl(_ref147) {
9353
- var e = _ref147.answers,
9354
- t = _ref147.blankLabel,
9355
- n = _ref147.canClear,
9356
- r = _ref147.index,
9357
- i = _ref147.label;
9343
+ function Ml(_ref146) {
9344
+ var e = _ref146.answers,
9345
+ t = _ref146.blankLabel,
9346
+ n = _ref146.canClear,
9347
+ r = _ref146.index,
9348
+ i = _ref146.label;
9358
9349
  var a = i || "".concat(t).concat(r + 1);
9359
9350
  return !n || !e.trim() ? a : t === "\u7A7A" ? "".concat(a, "\uFF0C\u70B9\u51FB\u6E05\u7A7A") : "".concat(a, ", click to clear");
9360
9351
  }
9361
- function Fl(_ref148) {
9362
- var e = _ref148.disabled,
9363
- n = _ref148.element,
9364
- r = _ref148.item,
9365
- i = _ref148.locale,
9366
- a = _ref148.messages,
9367
- o = _ref148.onResponseItemChange,
9368
- s = _ref148.response,
9369
- c = _ref148.responseIndex,
9370
- l = _ref148.showAnswer,
9371
- u = _ref148.uploadImage;
9352
+ function Nl(_ref147) {
9353
+ var e = _ref147.disabled,
9354
+ n = _ref147.element,
9355
+ r = _ref147.item,
9356
+ i = _ref147.locale,
9357
+ a = _ref147.messages,
9358
+ o = _ref147.onResponseItemChange,
9359
+ s = _ref147.response,
9360
+ c = _ref147.responseIndex,
9361
+ l = _ref147.showAnswer,
9362
+ u = _ref147.uploadImage;
9372
9363
  if (n.type !== r.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(n.type, "\uFF0Cactual=").concat(r.type));
9373
9364
  return n.type === "richText" ? (0, t.jsx)(G, {
9374
9365
  content: r.content
9375
- }) : n.type === "textResponse" ? (0, t.jsx)(Al, {
9366
+ }) : n.type === "textResponse" ? (0, t.jsx)(Ol, {
9376
9367
  disabled: e,
9377
9368
  label: n.name,
9378
9369
  locale: i,
@@ -9405,7 +9396,7 @@ function Fl(_ref148) {
9405
9396
  response: s,
9406
9397
  responseIndex: c,
9407
9398
  showAnswer: l
9408
- }) : Il({
9399
+ }) : Pl({
9409
9400
  disabled: e,
9410
9401
  element: n,
9411
9402
  item: r,
@@ -9418,15 +9409,15 @@ function Fl(_ref148) {
9418
9409
  uploadImage: u
9419
9410
  });
9420
9411
  }
9421
- function Il(_ref149) {
9422
- var e = _ref149.disabled,
9423
- n = _ref149.element,
9424
- r = _ref149.item,
9425
- i = _ref149.messages,
9426
- a = _ref149.onResponseItemChange,
9427
- o = _ref149.response,
9428
- s = _ref149.responseIndex,
9429
- c = _ref149.showAnswer;
9412
+ function Pl(_ref148) {
9413
+ var e = _ref148.disabled,
9414
+ n = _ref148.element,
9415
+ r = _ref148.item,
9416
+ i = _ref148.messages,
9417
+ a = _ref148.onResponseItemChange,
9418
+ o = _ref148.response,
9419
+ s = _ref148.responseIndex,
9420
+ c = _ref148.showAnswer;
9430
9421
  switch (n.type) {
9431
9422
  case "choice":
9432
9423
  return (0, t.jsx)(yl, {
@@ -9461,7 +9452,7 @@ function Il(_ref149) {
9461
9452
  showAnswer: c
9462
9453
  });
9463
9454
  case "wordBuilder":
9464
- return (0, t.jsx)(Nl, {
9455
+ return (0, t.jsx)(jl, {
9465
9456
  disabled: e,
9466
9457
  element: n,
9467
9458
  item: r,
@@ -9504,14 +9495,14 @@ function Il(_ref149) {
9504
9495
  });
9505
9496
  }
9506
9497
  }
9507
- var Ll = ["locale"];
9508
- function Rl(e) {
9498
+ var Fl = ["locale"];
9499
+ function Il(e) {
9509
9500
  var _e$locale = e.locale,
9510
9501
  n = _e$locale === void 0 ? "zh-CN" : _e$locale,
9511
- r = ma(e, Ll),
9502
+ r = ma(e, Fl),
9512
9503
  i = us(r.value, r.questionTypeTemplates),
9513
9504
  a = hs(r.response, i);
9514
- return (0, t.jsx)(zl, C(C({}, r), {}, {
9505
+ return (0, t.jsx)(Ll, C(C({}, r), {}, {
9515
9506
  childIndexPath: [],
9516
9507
  locale: n,
9517
9508
  messages: yc(n),
@@ -9522,24 +9513,24 @@ function Rl(e) {
9522
9513
  value: i
9523
9514
  }));
9524
9515
  }
9525
- function zl(_ref150) {
9526
- var e = _ref150.childIndexPath,
9527
- n = _ref150.className,
9528
- _ref150$disabled = _ref150.disabled,
9529
- r = _ref150$disabled === void 0 ? !1 : _ref150$disabled,
9530
- _ref150$locale = _ref150.locale,
9531
- i = _ref150$locale === void 0 ? "zh-CN" : _ref150$locale,
9532
- a = _ref150.messages,
9533
- o = _ref150.onResponseChange,
9534
- s = _ref150.response,
9535
- c = _ref150.rootQuestionNumber,
9536
- _ref150$showAnswer = _ref150.showAnswer,
9537
- l = _ref150$showAnswer === void 0 ? !1 : _ref150$showAnswer,
9538
- _ref150$showExtraAttr = _ref150.showExtraAttributes,
9539
- u = _ref150$showExtraAttr === void 0 ? !1 : _ref150$showExtraAttr,
9540
- d = _ref150.questionTypeTemplates,
9541
- f = _ref150.uploadImage,
9542
- p = _ref150.value;
9516
+ function Ll(_ref149) {
9517
+ var e = _ref149.childIndexPath,
9518
+ n = _ref149.className,
9519
+ _ref149$disabled = _ref149.disabled,
9520
+ r = _ref149$disabled === void 0 ? !1 : _ref149$disabled,
9521
+ _ref149$locale = _ref149.locale,
9522
+ i = _ref149$locale === void 0 ? "zh-CN" : _ref149$locale,
9523
+ a = _ref149.messages,
9524
+ o = _ref149.onResponseChange,
9525
+ s = _ref149.response,
9526
+ c = _ref149.rootQuestionNumber,
9527
+ _ref149$showAnswer = _ref149.showAnswer,
9528
+ l = _ref149$showAnswer === void 0 ? !1 : _ref149$showAnswer,
9529
+ _ref149$showExtraAttr = _ref149.showExtraAttributes,
9530
+ u = _ref149$showExtraAttr === void 0 ? !1 : _ref149$showExtraAttr,
9531
+ d = _ref149.questionTypeTemplates,
9532
+ f = _ref149.uploadImage,
9533
+ p = _ref149.value;
9543
9534
  var m = Zi(d, p);
9544
9535
  if (!m) return (0, t.jsx)("div", {
9545
9536
  className: H(U.root, n),
@@ -9548,7 +9539,7 @@ function zl(_ref150) {
9548
9539
  children: a.missingQuestionTypeTemplate
9549
9540
  })
9550
9541
  });
9551
- var h = Bl({
9542
+ var h = Rl({
9552
9543
  childIndexPath: e,
9553
9544
  disabled: r,
9554
9545
  locale: i,
@@ -9565,27 +9556,27 @@ function zl(_ref150) {
9565
9556
  });
9566
9557
  return (0, t.jsx)("div", {
9567
9558
  className: H(U.root, n),
9568
- children: Wl(m, p) ? (0, t.jsx)("div", {
9559
+ children: Hl(m, p) ? (0, t.jsx)("div", {
9569
9560
  className: U.empty,
9570
9561
  children: a.previewEmpty
9571
9562
  }) : h
9572
9563
  });
9573
9564
  }
9574
- function Bl(e) {
9565
+ function Rl(e) {
9575
9566
  return (0, t.jsxs)(t.Fragment, {
9576
- children: [Vl(e), Ul(e), Hl(e)]
9567
+ children: [zl(e), Vl(e), Bl(e)]
9577
9568
  });
9578
9569
  }
9579
- function Vl(_ref151) {
9580
- var e = _ref151.disabled,
9581
- n = _ref151.locale,
9582
- r = _ref151.messages,
9583
- i = _ref151.onResponseChange,
9584
- a = _ref151.response,
9585
- o = _ref151.showAnswer,
9586
- s = _ref151.structure,
9587
- c = _ref151.uploadImage,
9588
- l = _ref151.value;
9570
+ function zl(_ref150) {
9571
+ var e = _ref150.disabled,
9572
+ n = _ref150.locale,
9573
+ r = _ref150.messages,
9574
+ i = _ref150.onResponseChange,
9575
+ a = _ref150.response,
9576
+ o = _ref150.showAnswer,
9577
+ s = _ref150.structure,
9578
+ c = _ref150.uploadImage,
9579
+ l = _ref150.value;
9589
9580
  return s.elements.length === 0 ? null : (0, t.jsx)("div", {
9590
9581
  className: U["element-list"],
9591
9582
  children: s.elements.map(function (u, d) {
@@ -9595,7 +9586,7 @@ function Vl(_ref151) {
9595
9586
  }).length;
9596
9587
  return (0, t.jsx)("section", {
9597
9588
  className: U.element,
9598
- children: (0, t.jsx)(Fl, {
9589
+ children: (0, t.jsx)(Nl, {
9599
9590
  disabled: e,
9600
9591
  element: u,
9601
9592
  item: f,
@@ -9613,15 +9604,15 @@ function Vl(_ref151) {
9613
9604
  })
9614
9605
  });
9615
9606
  }
9616
- function Hl(_ref152) {
9617
- var e = _ref152.disabled,
9618
- n = _ref152.locale,
9619
- r = _ref152.messages,
9620
- i = _ref152.response,
9621
- a = _ref152.showExtraAttributes,
9622
- o = _ref152.structure,
9623
- s = _ref152.uploadImage,
9624
- c = _ref152.value;
9607
+ function Bl(_ref151) {
9608
+ var e = _ref151.disabled,
9609
+ n = _ref151.locale,
9610
+ r = _ref151.messages,
9611
+ i = _ref151.response,
9612
+ a = _ref151.showExtraAttributes,
9613
+ o = _ref151.structure,
9614
+ s = _ref151.uploadImage,
9615
+ c = _ref151.value;
9625
9616
  return a ? (0, t.jsx)("div", {
9626
9617
  className: U["element-list"],
9627
9618
  children: o.extras.map(function (a, o) {
@@ -9630,10 +9621,10 @@ function Hl(_ref152) {
9630
9621
  className: U.extra,
9631
9622
  children: [(0, t.jsx)(kc, {
9632
9623
  children: a.name
9633
- }), (0, t.jsx)(Fl, {
9624
+ }), (0, t.jsx)(Nl, {
9634
9625
  disabled: e,
9635
- element: Gl(a),
9636
- item: Kl(l),
9626
+ element: Ul(a),
9627
+ item: Wl(l),
9637
9628
  locale: n,
9638
9629
  messages: r,
9639
9630
  onResponseItemChange: function onResponseItemChange() {
@@ -9648,19 +9639,19 @@ function Hl(_ref152) {
9648
9639
  })
9649
9640
  }) : null;
9650
9641
  }
9651
- function Ul(_ref153) {
9652
- var e = _ref153.childIndexPath,
9653
- n = _ref153.disabled,
9654
- r = _ref153.locale,
9655
- i = _ref153.messages,
9656
- a = _ref153.onResponseChange,
9657
- o = _ref153.response,
9658
- s = _ref153.rootQuestionNumber,
9659
- c = _ref153.showAnswer,
9660
- l = _ref153.showExtraAttributes,
9661
- u = _ref153.questionTypeTemplates,
9662
- d = _ref153.uploadImage,
9663
- f = _ref153.value;
9642
+ function Vl(_ref152) {
9643
+ var e = _ref152.childIndexPath,
9644
+ n = _ref152.disabled,
9645
+ r = _ref152.locale,
9646
+ i = _ref152.messages,
9647
+ a = _ref152.onResponseChange,
9648
+ o = _ref152.response,
9649
+ s = _ref152.rootQuestionNumber,
9650
+ c = _ref152.showAnswer,
9651
+ l = _ref152.showExtraAttributes,
9652
+ u = _ref152.questionTypeTemplates,
9653
+ d = _ref152.uploadImage,
9654
+ f = _ref152.value;
9664
9655
  return f.children.length === 0 ? null : (0, t.jsx)(Ac, {
9665
9656
  childIndexPath: e,
9666
9657
  disabled: n,
@@ -9670,7 +9661,7 @@ function Ul(_ref153) {
9670
9661
  },
9671
9662
  response: o,
9672
9663
  renderChild: function renderChild(e, a, o, f) {
9673
- return (0, t.jsx)(zl, {
9664
+ return (0, t.jsx)(Ll, {
9674
9665
  childIndexPath: f,
9675
9666
  disabled: n,
9676
9667
  locale: r,
@@ -9689,31 +9680,31 @@ function Ul(_ref153) {
9689
9680
  value: f
9690
9681
  });
9691
9682
  }
9692
- function Wl(e, t) {
9683
+ function Hl(e, t) {
9693
9684
  return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
9694
9685
  }
9695
- function Gl(e) {
9686
+ function Ul(e) {
9696
9687
  return {
9697
9688
  config: {},
9698
9689
  name: e.name,
9699
9690
  type: "richText"
9700
9691
  };
9701
9692
  }
9702
- function Kl(e) {
9693
+ function Wl(e) {
9703
9694
  return {
9704
9695
  content: e.content,
9705
9696
  type: "richText"
9706
9697
  };
9707
9698
  }
9708
- var ql = {
9699
+ var Gl = {
9709
9700
  "blank-list": "_blank-list_12ccp_1",
9710
9701
  "blank-item": "_blank-item_12ccp_11",
9711
9702
  "blank-field": "_blank-field_12ccp_17"
9712
9703
  };
9713
- function Jl(_ref154) {
9714
- var e = _ref154.item,
9715
- n = _ref154.messages,
9716
- r = _ref154.showAnswer;
9704
+ function Kl(_ref153) {
9705
+ var e = _ref153.item,
9706
+ n = _ref153.messages,
9707
+ r = _ref153.showAnswer;
9717
9708
  var i = k(e.answers, e.blanks).map(function (r, i) {
9718
9709
  return {
9719
9710
  kind: "detailed",
@@ -9728,15 +9719,15 @@ function Jl(_ref154) {
9728
9719
  return (0, t.jsxs)("div", {
9729
9720
  className: W.element,
9730
9721
  children: [(0, t.jsx)("ol", {
9731
- className: ql["blank-list"],
9722
+ className: Gl["blank-list"],
9732
9723
  children: e.blanks.map(function (e, r) {
9733
9724
  return (0, t.jsx)("li", {
9734
- className: ql["blank-item"],
9725
+ className: Gl["blank-item"],
9735
9726
  children: (0, t.jsxs)("span", {
9736
- className: ql["blank-field"],
9727
+ className: Gl["blank-field"],
9737
9728
  children: [n.blankLabel, " ", r + 1]
9738
9729
  })
9739
- }, Yl(e, r));
9730
+ }, ql(e, r));
9740
9731
  })
9741
9732
  }), r ? (0, t.jsx)(K, {
9742
9733
  groups: i,
@@ -9744,13 +9735,13 @@ function Jl(_ref154) {
9744
9735
  }) : null]
9745
9736
  });
9746
9737
  }
9747
- function Yl(e, t) {
9738
+ function ql(e, t) {
9748
9739
  return e || "blank-".concat(t + 1);
9749
9740
  }
9750
- function Xl(_ref155) {
9751
- var e = _ref155.item,
9752
- n = _ref155.messages,
9753
- r = _ref155.showAnswer;
9741
+ function Jl(_ref154) {
9742
+ var e = _ref154.item,
9743
+ n = _ref154.messages,
9744
+ r = _ref154.showAnswer;
9754
9745
  return (0, t.jsxs)("div", {
9755
9746
  className: W.element,
9756
9747
  children: [(0, t.jsxs)("div", {
@@ -9788,11 +9779,11 @@ function Xl(_ref155) {
9788
9779
  }) : null]
9789
9780
  });
9790
9781
  }
9791
- function Zl(_ref156) {
9792
- var e = _ref156.element,
9793
- n = _ref156.item,
9794
- r = _ref156.messages,
9795
- i = _ref156.showAnswer;
9782
+ function Yl(_ref155) {
9783
+ var e = _ref155.element,
9784
+ n = _ref155.item,
9785
+ r = _ref155.messages,
9786
+ i = _ref155.showAnswer;
9796
9787
  var a = vn(n, e, !0),
9797
9788
  o = Ec(a).map(function (e, n) {
9798
9789
  return {
@@ -9809,13 +9800,13 @@ function Zl(_ref156) {
9809
9800
  className: W.element,
9810
9801
  children: [(0, t.jsx)(G, {
9811
9802
  content: a.content
9812
- }), Ql(a, r.candidateOptions), i ? (0, t.jsx)(K, {
9803
+ }), Xl(a, r.candidateOptions), i ? (0, t.jsx)(K, {
9813
9804
  groups: o,
9814
9805
  title: r.standardAnswer
9815
9806
  }) : null]
9816
9807
  });
9817
9808
  }
9818
- function Ql(e, n) {
9809
+ function Xl(e, n) {
9819
9810
  var r, i;
9820
9811
  var a = (r = e.candidateOptions) == null ? [] : r,
9821
9812
  o = (i = e.blankOptionGroups) == null ? [] : i;
@@ -9846,11 +9837,11 @@ function Ql(e, n) {
9846
9837
  })]
9847
9838
  });
9848
9839
  }
9849
- function $l(_ref157) {
9850
- var e = _ref157.element,
9851
- n = _ref157.item,
9852
- r = _ref157.messages,
9853
- i = _ref157.showAnswer;
9840
+ function Zl(_ref156) {
9841
+ var e = _ref156.element,
9842
+ n = _ref156.item,
9843
+ r = _ref156.messages,
9844
+ i = _ref156.showAnswer;
9854
9845
  var a = tn(e.config.judgeAnswerMode),
9855
9846
  o = [{
9856
9847
  kind: "detailed",
@@ -9861,9 +9852,9 @@ function $l(_ref157) {
9861
9852
  className: W.element,
9862
9853
  children: [(0, t.jsx)("ol", {
9863
9854
  className: W["judgement-list"],
9864
- children: a.map(function (_ref158) {
9865
- var e = _ref158.label,
9866
- n = _ref158.value;
9855
+ children: a.map(function (_ref157) {
9856
+ var e = _ref157.label,
9857
+ n = _ref157.value;
9867
9858
  return (0, t.jsx)("li", {
9868
9859
  className: W["judgement-item"],
9869
9860
  children: e
@@ -9875,10 +9866,10 @@ function $l(_ref157) {
9875
9866
  }) : null]
9876
9867
  });
9877
9868
  }
9878
- function eu(_ref159) {
9879
- var e = _ref159.item,
9880
- n = _ref159.messages,
9881
- r = _ref159.showAnswer;
9869
+ function Ql(_ref158) {
9870
+ var e = _ref158.item,
9871
+ n = _ref158.messages,
9872
+ r = _ref158.showAnswer;
9882
9873
  var i = {
9883
9874
  gridTemplateColumns: "repeat(".concat(e.columns.length, ", minmax(12rem, 1fr))")
9884
9875
  };
@@ -9916,32 +9907,32 @@ function eu(_ref159) {
9916
9907
  }) : null]
9917
9908
  });
9918
9909
  }
9919
- var tu = {
9910
+ var $l = {
9920
9911
  board: "_board_5xarh_1",
9921
9912
  columns: "_columns_5xarh_6",
9922
9913
  column: "_column_5xarh_6",
9923
9914
  item: "_item_5xarh_18",
9924
9915
  marker: "_marker_5xarh_42"
9925
9916
  };
9926
- function nu(_ref160) {
9927
- var e = _ref160.item,
9928
- n = _ref160.messages,
9929
- r = _ref160.showAnswer;
9917
+ function eu(_ref159) {
9918
+ var e = _ref159.item,
9919
+ n = _ref159.messages,
9920
+ r = _ref159.showAnswer;
9930
9921
  return (0, t.jsxs)("div", {
9931
9922
  className: W.element,
9932
9923
  children: [(0, t.jsx)("div", {
9933
- className: tu.board,
9924
+ className: $l.board,
9934
9925
  children: (0, t.jsx)("div", {
9935
- className: tu.columns,
9926
+ className: $l.columns,
9936
9927
  children: e.columns.map(function (e) {
9937
9928
  return (0, t.jsx)("section", {
9938
- className: tu.column,
9929
+ className: $l.column,
9939
9930
  children: e.items.map(function (n, r) {
9940
9931
  var i = $t(e.labelStyle, r);
9941
9932
  return (0, t.jsxs)("div", {
9942
- className: tu.item,
9933
+ className: $l.item,
9943
9934
  children: [i ? (0, t.jsx)("span", {
9944
- className: tu.marker,
9935
+ className: $l.marker,
9945
9936
  children: i
9946
9937
  }) : null, (0, t.jsx)(G, {
9947
9938
  content: n.content
@@ -9957,11 +9948,11 @@ function nu(_ref160) {
9957
9948
  }) : null]
9958
9949
  });
9959
9950
  }
9960
- function ru(_ref161) {
9961
- var e = _ref161.element,
9962
- n = _ref161.item,
9963
- r = _ref161.messages,
9964
- i = _ref161.showAnswer;
9951
+ function tu(_ref160) {
9952
+ var e = _ref160.element,
9953
+ n = _ref160.item,
9954
+ r = _ref160.messages,
9955
+ i = _ref160.showAnswer;
9965
9956
  var a = rn(n, e.config.optionLabelStyle);
9966
9957
  if (e.config.renderer === "table") {
9967
9958
  var _o3 = pl(e, n);
@@ -10035,10 +10026,10 @@ function ru(_ref161) {
10035
10026
  }) : null]
10036
10027
  });
10037
10028
  }
10038
- function iu(_ref162) {
10039
- var e = _ref162.item,
10040
- n = _ref162.messages,
10041
- r = _ref162.showAnswer;
10029
+ function nu(_ref161) {
10030
+ var e = _ref161.item,
10031
+ n = _ref161.messages,
10032
+ r = _ref161.showAnswer;
10042
10033
  return (0, t.jsxs)("div", {
10043
10034
  className: W.element,
10044
10035
  children: [(0, t.jsx)("ol", {
@@ -10060,21 +10051,21 @@ function iu(_ref162) {
10060
10051
  }) : null]
10061
10052
  });
10062
10053
  }
10063
- function au(_ref163) {
10064
- var e = _ref163.element,
10065
- n = _ref163.item,
10066
- r = _ref163.messages,
10067
- i = _ref163.showAnswer;
10054
+ function ru(_ref162) {
10055
+ var e = _ref162.element,
10056
+ n = _ref162.item,
10057
+ r = _ref162.messages,
10058
+ i = _ref162.showAnswer;
10068
10059
  var a = _n(n, !0, e),
10069
- o = jl(a, r.blankLabel);
10060
+ o = kl(a, r.blankLabel);
10070
10061
  return (0, t.jsxs)("div", {
10071
10062
  className: W.element,
10072
10063
  children: [(0, t.jsx)(zc, {
10073
10064
  content: a.content,
10074
- renderBlank: function renderBlank(_ref164) {
10075
- var e = _ref164.blankId,
10076
- n = _ref164.index,
10077
- i = _ref164.label;
10065
+ renderBlank: function renderBlank(_ref163) {
10066
+ var e = _ref163.blankId,
10067
+ n = _ref163.index,
10068
+ i = _ref163.label;
10078
10069
  return (0, t.jsx)("span", {
10079
10070
  "aria-label": i || "".concat(r.blankLabel).concat(n + 1),
10080
10071
  className: W["word-builder-blank"],
@@ -10101,19 +10092,19 @@ function au(_ref163) {
10101
10092
  }) : null]
10102
10093
  });
10103
10094
  }
10104
- function ou(_ref165) {
10105
- var e = _ref165.element,
10106
- n = _ref165.item,
10107
- r = _ref165.messages,
10108
- i = _ref165.showAnswer;
10095
+ function iu(_ref164) {
10096
+ var e = _ref164.element,
10097
+ n = _ref164.item,
10098
+ r = _ref164.messages,
10099
+ i = _ref164.showAnswer;
10109
10100
  if (e.type !== n.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(e.type, "\uFF0Cactual=").concat(n.type));
10110
10101
  return e.type === "richText" ? (0, t.jsx)(G, {
10111
10102
  content: n.content
10112
- }) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(iu, {
10103
+ }) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(nu, {
10113
10104
  item: n,
10114
10105
  messages: r,
10115
10106
  showAnswer: i
10116
- }) : e.type === "classification" ? (0, t.jsx)(Xl, {
10107
+ }) : e.type === "classification" ? (0, t.jsx)(Jl, {
10117
10108
  item: n,
10118
10109
  messages: r,
10119
10110
  showAnswer: i
@@ -10121,61 +10112,61 @@ function ou(_ref165) {
10121
10112
  item: n,
10122
10113
  messages: r,
10123
10114
  showAnswer: i
10124
- }) : su({
10115
+ }) : au({
10125
10116
  element: e,
10126
10117
  item: n,
10127
10118
  messages: r,
10128
10119
  showAnswer: i
10129
10120
  });
10130
10121
  }
10131
- function su(_ref166) {
10132
- var e = _ref166.element,
10133
- n = _ref166.item,
10134
- r = _ref166.messages,
10135
- i = _ref166.showAnswer;
10122
+ function au(_ref165) {
10123
+ var e = _ref165.element,
10124
+ n = _ref165.item,
10125
+ r = _ref165.messages,
10126
+ i = _ref165.showAnswer;
10136
10127
  switch (e.type) {
10137
10128
  case "choice":
10138
- return (0, t.jsx)(ru, {
10129
+ return (0, t.jsx)(tu, {
10139
10130
  element: e,
10140
10131
  item: n,
10141
10132
  messages: r,
10142
10133
  showAnswer: i
10143
10134
  });
10144
10135
  case "fill":
10145
- return (0, t.jsx)(Jl, {
10136
+ return (0, t.jsx)(Kl, {
10146
10137
  item: n,
10147
10138
  messages: r,
10148
10139
  showAnswer: i
10149
10140
  });
10150
10141
  case "inlineFill":
10151
- return (0, t.jsx)(Zl, {
10142
+ return (0, t.jsx)(Yl, {
10152
10143
  element: e,
10153
10144
  item: n,
10154
10145
  messages: r,
10155
10146
  showAnswer: i
10156
10147
  });
10157
10148
  case "wordBuilder":
10158
- return (0, t.jsx)(au, {
10149
+ return (0, t.jsx)(ru, {
10159
10150
  element: e,
10160
10151
  item: n,
10161
10152
  messages: r,
10162
10153
  showAnswer: i
10163
10154
  });
10164
10155
  case "judgement":
10165
- return (0, t.jsx)($l, {
10156
+ return (0, t.jsx)(Zl, {
10166
10157
  element: e,
10167
10158
  item: n,
10168
10159
  messages: r,
10169
10160
  showAnswer: i
10170
10161
  });
10171
10162
  case "lineConnect":
10172
- return (0, t.jsx)(eu, {
10163
+ return (0, t.jsx)(Ql, {
10173
10164
  item: n,
10174
10165
  messages: r,
10175
10166
  showAnswer: i
10176
10167
  });
10177
10168
  case "matching":
10178
- return (0, t.jsx)(nu, {
10169
+ return (0, t.jsx)(eu, {
10179
10170
  item: n,
10180
10171
  messages: r,
10181
10172
  showAnswer: i
@@ -10191,13 +10182,13 @@ var X = {
10191
10182
  extra: "_extra_1jseb_41",
10192
10183
  child: "_child_1jseb_31"
10193
10184
  };
10194
- function cu(_ref167) {
10195
- var _ref167$childIndexPat = _ref167.childIndexPath,
10196
- e = _ref167$childIndexPat === void 0 ? [] : _ref167$childIndexPat,
10197
- n = _ref167.messages,
10198
- r = _ref167.renderChild,
10199
- i = _ref167.rootQuestionNumber,
10200
- a = _ref167.value;
10185
+ function ou(_ref166) {
10186
+ var _ref166$childIndexPat = _ref166.childIndexPath,
10187
+ e = _ref166$childIndexPat === void 0 ? [] : _ref166$childIndexPat,
10188
+ n = _ref166.messages,
10189
+ r = _ref166.renderChild,
10190
+ i = _ref166.rootQuestionNumber,
10191
+ a = _ref166.value;
10201
10192
  return a.children.length === 0 ? (0, t.jsx)("div", {
10202
10193
  className: X.empty,
10203
10194
  children: n.previewEmpty
@@ -10217,29 +10208,29 @@ function cu(_ref167) {
10217
10208
  })
10218
10209
  });
10219
10210
  }
10220
- var lu = ["locale"];
10221
- function uu(e) {
10211
+ var su = ["locale"];
10212
+ function cu(e) {
10222
10213
  var _e$locale2 = e.locale,
10223
10214
  n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
10224
- r = ma(e, lu),
10215
+ r = ma(e, su),
10225
10216
  i = us(r.value, r.questionTypeTemplates);
10226
- return (0, t.jsx)(du, C(C({}, r), {}, {
10217
+ return (0, t.jsx)(lu, C(C({}, r), {}, {
10227
10218
  childIndexPath: [],
10228
10219
  messages: yc(n),
10229
10220
  value: i
10230
10221
  }));
10231
10222
  }
10232
- function du(_ref168) {
10233
- var e = _ref168.childIndexPath,
10234
- n = _ref168.className,
10235
- r = _ref168.messages,
10236
- i = _ref168.rootQuestionNumber,
10237
- _ref168$showAnswer = _ref168.showAnswer,
10238
- a = _ref168$showAnswer === void 0 ? !1 : _ref168$showAnswer,
10239
- _ref168$showExtraAttr = _ref168.showExtraAttributes,
10240
- o = _ref168$showExtraAttr === void 0 ? !1 : _ref168$showExtraAttr,
10241
- s = _ref168.questionTypeTemplates,
10242
- c = _ref168.value;
10223
+ function lu(_ref167) {
10224
+ var e = _ref167.childIndexPath,
10225
+ n = _ref167.className,
10226
+ r = _ref167.messages,
10227
+ i = _ref167.rootQuestionNumber,
10228
+ _ref167$showAnswer = _ref167.showAnswer,
10229
+ a = _ref167$showAnswer === void 0 ? !1 : _ref167$showAnswer,
10230
+ _ref167$showExtraAttr = _ref167.showExtraAttributes,
10231
+ o = _ref167$showExtraAttr === void 0 ? !1 : _ref167$showExtraAttr,
10232
+ s = _ref167.questionTypeTemplates,
10233
+ c = _ref167.value;
10243
10234
  var l = Zi(s, c);
10244
10235
  if (!l) return (0, t.jsx)("div", {
10245
10236
  className: H(X.root, n),
@@ -10254,7 +10245,7 @@ function du(_ref168) {
10254
10245
  var i = Yt(c, n, e);
10255
10246
  return (0, t.jsx)("section", {
10256
10247
  className: X.element,
10257
- children: (0, t.jsx)(ou, {
10248
+ children: (0, t.jsx)(iu, {
10258
10249
  element: e,
10259
10250
  item: i,
10260
10251
  messages: r,
@@ -10271,9 +10262,9 @@ function du(_ref168) {
10271
10262
  className: X.extra,
10272
10263
  children: [(0, t.jsx)(kc, {
10273
10264
  children: e.name
10274
- }), (0, t.jsx)(ou, {
10275
- element: pu(e),
10276
- item: mu(i),
10265
+ }), (0, t.jsx)(iu, {
10266
+ element: du(e),
10267
+ item: fu(i),
10277
10268
  messages: r,
10278
10269
  showAnswer: !1
10279
10270
  })]
@@ -10281,11 +10272,11 @@ function du(_ref168) {
10281
10272
  })
10282
10273
  }) : null,
10283
10274
  f = (0, t.jsxs)(t.Fragment, {
10284
- children: [u, c.children.length === 0 ? null : (0, t.jsx)(cu, {
10275
+ children: [u, c.children.length === 0 ? null : (0, t.jsx)(ou, {
10285
10276
  childIndexPath: e,
10286
10277
  messages: r,
10287
10278
  renderChild: function renderChild(e, n) {
10288
- return (0, t.jsx)(du, {
10279
+ return (0, t.jsx)(lu, {
10289
10280
  childIndexPath: n,
10290
10281
  messages: r,
10291
10282
  rootQuestionNumber: i,
@@ -10301,29 +10292,29 @@ function du(_ref168) {
10301
10292
  });
10302
10293
  return (0, t.jsx)("div", {
10303
10294
  className: H(X.root, n),
10304
- children: fu(l, c) ? (0, t.jsx)("div", {
10295
+ children: uu(l, c) ? (0, t.jsx)("div", {
10305
10296
  className: X.empty,
10306
10297
  children: r.previewEmpty
10307
10298
  }) : f
10308
10299
  });
10309
10300
  }
10310
- function fu(e, t) {
10301
+ function uu(e, t) {
10311
10302
  return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
10312
10303
  }
10313
- function pu(e) {
10304
+ function du(e) {
10314
10305
  return {
10315
10306
  config: {},
10316
10307
  name: e.name,
10317
10308
  type: "richText"
10318
10309
  };
10319
10310
  }
10320
- function mu(e) {
10311
+ function fu(e) {
10321
10312
  return {
10322
10313
  content: e.content,
10323
10314
  type: "richText"
10324
10315
  };
10325
10316
  }
10326
- var hu = {
10317
+ var pu = {
10327
10318
  root: "_root_17bqr_1",
10328
10319
  toolbar: "_toolbar_17bqr_26",
10329
10320
  "toolbar-title": "_toolbar-title_17bqr_36",
@@ -10378,7 +10369,7 @@ var hu = {
10378
10369
  "palette-section-title": "_palette-section-title_vhj2r_62",
10379
10370
  "palette-button": "_palette-button_vhj2r_70"
10380
10371
  },
10381
- gu = {
10372
+ mu = {
10382
10373
  "en-US": {
10383
10374
  addElement: "Add element",
10384
10375
  addExtra: "Add extra attribute",
@@ -10512,26 +10503,26 @@ var hu = {
10512
10503
  wordBuilderLabel: "\u7EC4\u8BCD\u62FC\u5199"
10513
10504
  }
10514
10505
  };
10515
- function _u(e, t) {
10506
+ function hu(e, t) {
10516
10507
  var n;
10517
10508
  return (n = e.extraDescriptions.get(t)) == null ? t : n;
10518
10509
  }
10519
- function vu(e, t) {
10510
+ function gu(e, t) {
10520
10511
  var n;
10521
10512
  return (n = e.extraLabels.get(t)) == null ? t : n;
10522
10513
  }
10523
- function yu(e) {
10514
+ function _u(e) {
10524
10515
  switch (e) {
10525
10516
  case "en-US":
10526
- return gu["en-US"];
10517
+ return mu["en-US"];
10527
10518
  case "zh-CN":
10528
- return gu["zh-CN"];
10519
+ return mu["zh-CN"];
10529
10520
  }
10530
10521
  }
10531
- function bu(e, t) {
10532
- return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : Cu(e, t);
10522
+ function vu(e, t) {
10523
+ return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : xu(e, t);
10533
10524
  }
10534
- var xu = {
10525
+ var yu = {
10535
10526
  choice: function choice(e) {
10536
10527
  return e.optionGroupDescription;
10537
10528
  },
@@ -10563,7 +10554,7 @@ var xu = {
10563
10554
  return e.wordBuilderDescription;
10564
10555
  }
10565
10556
  },
10566
- Su = {
10557
+ bu = {
10567
10558
  choice: function choice(e) {
10568
10559
  return e.optionGroupLabel;
10569
10560
  },
@@ -10595,40 +10586,40 @@ var xu = {
10595
10586
  return e.wordBuilderLabel;
10596
10587
  }
10597
10588
  };
10598
- function Cu(e, t) {
10599
- return xu[t](e);
10589
+ function xu(e, t) {
10590
+ return yu[t](e);
10600
10591
  }
10601
- function wu(e, t) {
10602
- return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : Tu(e, t);
10592
+ function Su(e, t) {
10593
+ return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : Cu(e, t);
10603
10594
  }
10604
- function Tu(e, t) {
10605
- return Su[t](e);
10595
+ function Cu(e, t) {
10596
+ return bu[t](e);
10606
10597
  }
10607
- function Eu(e, t) {
10598
+ function wu(e, t) {
10608
10599
  var n;
10609
10600
  return (n = e.optionValueLabels.get(t)) == null ? t : n;
10610
10601
  }
10611
- function Du(e, t) {
10602
+ function Tu(e, t) {
10612
10603
  var n;
10613
10604
  return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
10614
10605
  }
10615
- function Ou(e, t) {
10606
+ function Eu(e, t) {
10616
10607
  var n;
10617
10608
  return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
10618
10609
  }
10619
- function ku(_ref169) {
10620
- var e = _ref169.elements,
10621
- r = _ref169.extras,
10622
- i = _ref169.labels,
10623
- a = _ref169.onDeleteElement,
10624
- o = _ref169.onDeleteExtra,
10625
- s = _ref169.onMoveElement,
10626
- c = _ref169.onSelectElement,
10627
- l = _ref169.selectedElementClientId;
10628
- var _ref170 = (0, n.useState)(null),
10629
- _ref171 = _slicedToArray(_ref170, 2),
10630
- u = _ref171[0],
10631
- d = _ref171[1];
10610
+ function Du(_ref168) {
10611
+ var e = _ref168.elements,
10612
+ r = _ref168.extras,
10613
+ i = _ref168.labels,
10614
+ a = _ref168.onDeleteElement,
10615
+ o = _ref168.onDeleteExtra,
10616
+ s = _ref168.onMoveElement,
10617
+ c = _ref168.onSelectElement,
10618
+ l = _ref168.selectedElementClientId;
10619
+ var _ref169 = (0, n.useState)(null),
10620
+ _ref170 = _slicedToArray(_ref169, 2),
10621
+ u = _ref170[0],
10622
+ d = _ref170[1];
10632
10623
  return (0, t.jsxs)("section", {
10633
10624
  className: Q.panel,
10634
10625
  children: [(0, t.jsxs)("div", {
@@ -10647,7 +10638,7 @@ function ku(_ref169) {
10647
10638
  className: Z["element-list"],
10648
10639
  children: [e.map(function (n, r) {
10649
10640
  var o = n.clientId === l,
10650
- f = wu(i, n.type);
10641
+ f = Su(i, n.type);
10651
10642
  return (0, t.jsxs)("div", {
10652
10643
  className: "".concat(Z["element-card"], " ").concat(o ? Z.active : ""),
10653
10644
  onClick: function onClick() {
@@ -10716,7 +10707,7 @@ function ku(_ref169) {
10716
10707
  children: i.extraTitle
10717
10708
  }) : null, r.map(function (n, r) {
10718
10709
  var a = n.clientId === l,
10719
- s = vu(i, n.type);
10710
+ s = gu(i, n.type);
10720
10711
  return (0, t.jsxs)("div", {
10721
10712
  className: "".concat(Z["element-card"], " ").concat(a ? Z.active : ""),
10722
10713
  onClick: function onClick() {
@@ -10768,11 +10759,11 @@ function ku(_ref169) {
10768
10759
  })]
10769
10760
  });
10770
10761
  }
10771
- function Au(_ref172) {
10772
- var e = _ref172.addedExtraTypes,
10773
- n = _ref172.labels,
10774
- r = _ref172.onAddElement,
10775
- i = _ref172.onAddExtra;
10762
+ function Ou(_ref171) {
10763
+ var e = _ref171.addedExtraTypes,
10764
+ n = _ref171.labels,
10765
+ r = _ref171.onAddElement,
10766
+ i = _ref171.onAddExtra;
10776
10767
  var a = new Set(e);
10777
10768
  return (0, t.jsxs)("aside", {
10778
10769
  className: Q.panel,
@@ -10786,16 +10777,16 @@ function Au(_ref172) {
10786
10777
  className: Q.palette,
10787
10778
  children: ee.map(function (e) {
10788
10779
  return (0, t.jsxs)("button", {
10789
- "aria-label": "".concat(n.addElement, ": ").concat(wu(n, e)),
10780
+ "aria-label": "".concat(n.addElement, ": ").concat(Su(n, e)),
10790
10781
  className: Q["palette-button"],
10791
10782
  onClick: function onClick() {
10792
10783
  return r(e);
10793
10784
  },
10794
10785
  type: "button",
10795
10786
  children: [(0, t.jsx)("strong", {
10796
- children: wu(n, e)
10787
+ children: Su(n, e)
10797
10788
  }), (0, t.jsx)("small", {
10798
- children: bu(n, e)
10789
+ children: vu(n, e)
10799
10790
  })]
10800
10791
  }, e);
10801
10792
  })
@@ -10806,10 +10797,10 @@ function Au(_ref172) {
10806
10797
  children: n.extraTitle
10807
10798
  }), (0, t.jsx)("div", {
10808
10799
  className: Q.palette,
10809
- children: w.map(function (e) {
10800
+ children: te.map(function (e) {
10810
10801
  var r = a.has(e);
10811
10802
  return (0, t.jsxs)("button", {
10812
- "aria-label": "".concat(n.addExtra, ": ").concat(vu(n, e)),
10803
+ "aria-label": "".concat(n.addExtra, ": ").concat(gu(n, e)),
10813
10804
  className: Q["palette-button"],
10814
10805
  disabled: r,
10815
10806
  onClick: function onClick() {
@@ -10817,9 +10808,9 @@ function Au(_ref172) {
10817
10808
  },
10818
10809
  type: "button",
10819
10810
  children: [(0, t.jsx)("strong", {
10820
- children: vu(n, e)
10811
+ children: gu(n, e)
10821
10812
  }), (0, t.jsx)("small", {
10822
- children: _u(n, e)
10813
+ children: hu(n, e)
10823
10814
  })]
10824
10815
  }, e);
10825
10816
  })
@@ -10837,26 +10828,26 @@ var $ = {
10837
10828
  textarea: "_textarea_tgswd_28",
10838
10829
  empty: "_empty_tgswd_61"
10839
10830
  },
10840
- ju = ["none", "sharedPool", "perBlankOptions"],
10841
- Mu = ["upperAlpha", "lowerAlpha", "number"],
10842
- Nu = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
10843
- Pu = [2, 3, 4, 5],
10844
- Fu = ["standard", "table"],
10845
- Iu = ["single", "multiple"],
10846
- Lu = ["spelling", "sentence"],
10847
- Ru = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
10848
- function zu(_ref173) {
10849
- var e = _ref173.description,
10850
- n = _ref173.globalConfig,
10851
- r = _ref173.isSubjective,
10852
- i = _ref173.labels,
10853
- a = _ref173.onElementChange,
10854
- o = _ref173.onExtraChange,
10855
- s = _ref173.onGlobalConfigChange,
10856
- c = _ref173.onMetadataChange,
10857
- l = _ref173.selectedExtra,
10858
- u = _ref173.selectedElement;
10859
- var d = Bu({
10831
+ ku = ["none", "sharedPool", "perBlankOptions"],
10832
+ Au = ["upperAlpha", "lowerAlpha", "number"],
10833
+ ju = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
10834
+ Mu = [2, 3, 4, 5],
10835
+ Nu = ["standard", "table"],
10836
+ Pu = ["single", "multiple"],
10837
+ Fu = ["spelling", "sentence"],
10838
+ Iu = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
10839
+ function Lu(_ref172) {
10840
+ var e = _ref172.description,
10841
+ n = _ref172.globalConfig,
10842
+ r = _ref172.isSubjective,
10843
+ i = _ref172.labels,
10844
+ a = _ref172.onElementChange,
10845
+ o = _ref172.onExtraChange,
10846
+ s = _ref172.onGlobalConfigChange,
10847
+ c = _ref172.onMetadataChange,
10848
+ l = _ref172.selectedExtra,
10849
+ u = _ref172.selectedElement;
10850
+ var d = Ru({
10860
10851
  labels: i,
10861
10852
  onElementChange: a,
10862
10853
  onExtraChange: o,
@@ -10967,12 +10958,12 @@ function zu(_ref173) {
10967
10958
  })]
10968
10959
  });
10969
10960
  }
10970
- function Bu(_ref174) {
10971
- var e = _ref174.labels,
10972
- n = _ref174.onElementChange,
10973
- r = _ref174.onExtraChange,
10974
- i = _ref174.selectedElement,
10975
- a = _ref174.selectedExtra;
10961
+ function Ru(_ref173) {
10962
+ var e = _ref173.labels,
10963
+ n = _ref173.onElementChange,
10964
+ r = _ref173.onExtraChange,
10965
+ i = _ref173.selectedElement,
10966
+ a = _ref173.selectedExtra;
10976
10967
  return i ? (0, t.jsxs)("div", {
10977
10968
  className: $["form-stack"],
10978
10969
  children: [(0, t.jsxs)("label", {
@@ -11001,7 +10992,7 @@ function Bu(_ref174) {
11001
10992
  },
11002
10993
  value: i.enName
11003
10994
  })]
11004
- }), Vu(i, e, n)]
10995
+ }), zu(i, e, n)]
11005
10996
  }) : a ? (0, t.jsxs)("div", {
11006
10997
  className: $["form-stack"],
11007
10998
  children: [(0, t.jsxs)("label", {
@@ -11036,10 +11027,10 @@ function Bu(_ref174) {
11036
11027
  children: e.noElement
11037
11028
  });
11038
11029
  }
11039
- function Vu(e, t, n) {
11040
- return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Hu(e, t, n);
11030
+ function zu(e, t, n) {
11031
+ return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Bu(e, t, n);
11041
11032
  }
11042
- function Hu(e, n, r) {
11033
+ function Bu(e, n, r) {
11043
11034
  switch (e.type) {
11044
11035
  case "inlineFill":
11045
11036
  return (0, t.jsxs)(t.Fragment, {
@@ -11057,10 +11048,10 @@ function Hu(e, n, r) {
11057
11048
  }));
11058
11049
  },
11059
11050
  value: e.config.candidateMode,
11060
- children: ju.map(function (e) {
11051
+ children: ku.map(function (e) {
11061
11052
  return (0, t.jsx)("option", {
11062
11053
  value: e,
11063
- children: Du(n, e)
11054
+ children: Tu(n, e)
11064
11055
  }, e);
11065
11056
  })
11066
11057
  })]
@@ -11096,10 +11087,10 @@ function Hu(e, n, r) {
11096
11087
  }));
11097
11088
  },
11098
11089
  value: e.config.builderMode,
11099
- children: Lu.map(function (e) {
11090
+ children: Fu.map(function (e) {
11100
11091
  return (0, t.jsx)("option", {
11101
11092
  value: e,
11102
- children: Eu(n, e)
11093
+ children: wu(n, e)
11103
11094
  }, e);
11104
11095
  })
11105
11096
  })]
@@ -11119,23 +11110,23 @@ function Hu(e, n, r) {
11119
11110
  }));
11120
11111
  },
11121
11112
  value: e.config.judgeAnswerMode,
11122
- children: Ru.map(function (e) {
11113
+ children: Iu.map(function (e) {
11123
11114
  return (0, t.jsx)("option", {
11124
11115
  value: e,
11125
- children: Eu(n, e)
11116
+ children: wu(n, e)
11126
11117
  }, e);
11127
11118
  })
11128
11119
  })]
11129
11120
  });
11130
11121
  case "choice":
11131
- return Uu(e, n, r);
11122
+ return Vu(e, n, r);
11132
11123
  case "lineConnect":
11133
- return Wu(e, n, r);
11124
+ return Hu(e, n, r);
11134
11125
  case "matching":
11135
- return Gu(e, n, r);
11126
+ return Uu(e, n, r);
11136
11127
  }
11137
11128
  }
11138
- function Uu(e, n, r) {
11129
+ function Vu(e, n, r) {
11139
11130
  return (0, t.jsxs)(t.Fragment, {
11140
11131
  children: [(0, t.jsxs)("label", {
11141
11132
  className: $["form-row"],
@@ -11151,10 +11142,10 @@ function Uu(e, n, r) {
11151
11142
  }));
11152
11143
  },
11153
11144
  value: e.config.selectionType,
11154
- children: Iu.map(function (e) {
11145
+ children: Pu.map(function (e) {
11155
11146
  return (0, t.jsx)("option", {
11156
11147
  value: e,
11157
- children: Eu(n, e)
11148
+ children: wu(n, e)
11158
11149
  }, e);
11159
11150
  })
11160
11151
  })]
@@ -11172,10 +11163,10 @@ function Uu(e, n, r) {
11172
11163
  }));
11173
11164
  },
11174
11165
  value: e.config.optionLabelStyle,
11175
- children: Mu.map(function (e) {
11166
+ children: Au.map(function (e) {
11176
11167
  return (0, t.jsx)("option", {
11177
11168
  value: e,
11178
- children: Eu(n, e)
11169
+ children: wu(n, e)
11179
11170
  }, e);
11180
11171
  })
11181
11172
  })]
@@ -11193,18 +11184,18 @@ function Uu(e, n, r) {
11193
11184
  }));
11194
11185
  },
11195
11186
  value: e.config.renderer,
11196
- children: Fu.map(function (e) {
11187
+ children: Nu.map(function (e) {
11197
11188
  return (0, t.jsx)("option", {
11198
11189
  value: e,
11199
- children: Eu(n, e)
11190
+ children: wu(n, e)
11200
11191
  }, e);
11201
11192
  })
11202
11193
  })]
11203
11194
  })]
11204
11195
  });
11205
11196
  }
11206
- function Wu(e, n, r) {
11207
- var i = Ku(e.config.columns);
11197
+ function Hu(e, n, r) {
11198
+ var i = Wu(e.config.columns);
11208
11199
  return (0, t.jsxs)(t.Fragment, {
11209
11200
  children: [(0, t.jsxs)("label", {
11210
11201
  className: $["form-row"],
@@ -11215,12 +11206,12 @@ function Wu(e, n, r) {
11215
11206
  onChange: function onChange(t) {
11216
11207
  return r(C(C({}, e), {}, {
11217
11208
  config: {
11218
- columns: Ju(i, Number(t.target.value))
11209
+ columns: Ku(i, Number(t.target.value))
11219
11210
  }
11220
11211
  }));
11221
11212
  },
11222
11213
  value: i.length,
11223
- children: Pu.map(function (e) {
11214
+ children: Mu.map(function (e) {
11224
11215
  return (0, t.jsx)("option", {
11225
11216
  value: e,
11226
11217
  children: e
@@ -11246,10 +11237,10 @@ function Wu(e, n, r) {
11246
11237
  }));
11247
11238
  },
11248
11239
  value: a.labelStyle,
11249
- children: Nu.map(function (e) {
11240
+ children: ju.map(function (e) {
11250
11241
  return (0, t.jsx)("option", {
11251
11242
  value: e,
11252
- children: Ou(n, e)
11243
+ children: Eu(n, e)
11253
11244
  }, e);
11254
11245
  })
11255
11246
  })]
@@ -11257,8 +11248,8 @@ function Wu(e, n, r) {
11257
11248
  })]
11258
11249
  });
11259
11250
  }
11260
- function Gu(e, n, r) {
11261
- var i = qu(e.config.columns);
11251
+ function Uu(e, n, r) {
11252
+ var i = Gu(e.config.columns);
11262
11253
  return (0, t.jsx)(t.Fragment, {
11263
11254
  children: i.map(function (a, o) {
11264
11255
  return (0, t.jsxs)("label", {
@@ -11279,10 +11270,10 @@ function Gu(e, n, r) {
11279
11270
  }));
11280
11271
  },
11281
11272
  value: a.labelStyle,
11282
- children: Nu.map(function (e) {
11273
+ children: ju.map(function (e) {
11283
11274
  return (0, t.jsx)("option", {
11284
11275
  value: e,
11285
- children: Ou(n, e)
11276
+ children: Eu(n, e)
11286
11277
  }, e);
11287
11278
  })
11288
11279
  })]
@@ -11290,48 +11281,48 @@ function Gu(e, n, r) {
11290
11281
  })
11291
11282
  });
11292
11283
  }
11293
- function Ku(e) {
11284
+ function Wu(e) {
11294
11285
  var t = e.slice(0, 5);
11295
- return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Nu.slice(t.length, 2).map(function (e) {
11286
+ return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(ju.slice(t.length, 2).map(function (e) {
11296
11287
  return {
11297
11288
  labelStyle: e
11298
11289
  };
11299
11290
  })));
11300
11291
  }
11301
- function qu(e) {
11292
+ function Gu(e) {
11302
11293
  var t = e.slice(0, 2);
11303
- return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Nu.slice(t.length, 2).map(function (e) {
11294
+ return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(ju.slice(t.length, 2).map(function (e) {
11304
11295
  return {
11305
11296
  labelStyle: e
11306
11297
  };
11307
11298
  })));
11308
11299
  }
11309
- function Ju(e, t) {
11300
+ function Ku(e, t) {
11310
11301
  return Array.from({
11311
11302
  length: Math.min(5, Math.max(2, t))
11312
11303
  }, function (t, n) {
11313
11304
  var r, i;
11314
11305
  return (r = e.slice(n, n + 1)[0]) == null ? {
11315
- labelStyle: (i = Nu[n]) == null ? "number" : i
11306
+ labelStyle: (i = ju[n]) == null ? "number" : i
11316
11307
  } : r;
11317
11308
  });
11318
11309
  }
11319
- function Yu(_ref175) {
11320
- var _ref175$locale = _ref175.locale,
11321
- e = _ref175$locale === void 0 ? "zh-CN" : _ref175$locale,
11322
- r = _ref175.onChange,
11323
- i = _ref175.value;
11310
+ function qu(_ref174) {
11311
+ var _ref174$locale = _ref174.locale,
11312
+ e = _ref174$locale === void 0 ? "zh-CN" : _ref174$locale,
11313
+ r = _ref174.onChange,
11314
+ i = _ref174.value;
11324
11315
  var a, o, s, c;
11325
- var l = yu(e),
11326
- _ref176 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
11327
- _ref177 = _slicedToArray(_ref176, 2),
11328
- u = _ref177[0],
11329
- d = _ref177[1],
11330
- _Xu = Xu(i, u),
11331
- f = _Xu.selectedElement,
11332
- p = _Xu.selectedExtra;
11316
+ var l = _u(e),
11317
+ _ref175 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
11318
+ _ref176 = _slicedToArray(_ref175, 2),
11319
+ u = _ref176[0],
11320
+ d = _ref176[1],
11321
+ _Ju = Ju(i, u),
11322
+ f = _Ju.selectedElement,
11323
+ p = _Ju.selectedExtra;
11333
11324
  function m(e) {
11334
- var t = oe(e, i.elements);
11325
+ var t = se(e, i.elements);
11335
11326
  r(C(C({}, i), {}, {
11336
11327
  elements: [].concat(_toConsumableArray(i.elements), [t])
11337
11328
  })), d(t.clientId);
@@ -11340,56 +11331,56 @@ function Yu(_ref175) {
11340
11331
  if (i.extras.some(function (t) {
11341
11332
  return t.type === e;
11342
11333
  })) return;
11343
- var t = ae(e, i.extras);
11334
+ var t = oe(e, i.extras);
11344
11335
  r(C(C({}, i), {}, {
11345
11336
  extras: [].concat(_toConsumableArray(i.extras), [t])
11346
11337
  })), d(t.clientId);
11347
11338
  }
11348
11339
  function g(e) {
11349
- var t = ue(i, e);
11350
- r(t), d(Zu(t));
11340
+ var t = de(i, e);
11341
+ r(t), d(Yu(t));
11351
11342
  }
11352
11343
  function _(e) {
11353
- var t = le(i, e);
11354
- r(t), d(Zu(t));
11344
+ var t = ue(i, e);
11345
+ r(t), d(Yu(t));
11355
11346
  }
11356
11347
  function v(e) {
11357
- r(pe(i, e.clientId, e));
11348
+ r(me(i, e.clientId, e));
11358
11349
  }
11359
11350
  function y(e) {
11360
- r(fe(i, e.clientId, e));
11351
+ r(pe(i, e.clientId, e));
11361
11352
  }
11362
11353
  function b(e) {
11363
- r(me(i, e));
11354
+ r(he(i, e));
11364
11355
  }
11365
11356
  function x(e) {
11366
- r(he(i, e));
11357
+ r(ge(i, e));
11367
11358
  }
11368
11359
  return (0, t.jsx)("section", {
11369
- className: hu.root,
11360
+ className: pu.root,
11370
11361
  children: (0, t.jsx)("div", {
11371
11362
  className: Q.shell,
11372
11363
  children: (0, t.jsxs)("div", {
11373
11364
  className: Q.grid,
11374
- children: [(0, t.jsx)(Au, {
11365
+ children: [(0, t.jsx)(Ou, {
11375
11366
  addedExtraTypes: i.extras.map(function (e) {
11376
11367
  return e.type;
11377
11368
  }),
11378
11369
  labels: l,
11379
11370
  onAddElement: m,
11380
11371
  onAddExtra: h
11381
- }), (0, t.jsx)(ku, {
11372
+ }), (0, t.jsx)(Du, {
11382
11373
  elements: i.elements,
11383
11374
  extras: i.extras,
11384
11375
  labels: l,
11385
11376
  onDeleteElement: g,
11386
11377
  onDeleteExtra: _,
11387
11378
  onMoveElement: function onMoveElement(e, t) {
11388
- return r(de(i, e, t));
11379
+ return r(fe(i, e, t));
11389
11380
  },
11390
11381
  onSelectElement: d,
11391
11382
  selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
11392
- }), (0, t.jsx)(zu, {
11383
+ }), (0, t.jsx)(Lu, {
11393
11384
  description: i.description,
11394
11385
  globalConfig: i.globalConfig,
11395
11386
  isSubjective: i.isSubjective,
@@ -11405,7 +11396,7 @@ function Yu(_ref175) {
11405
11396
  })
11406
11397
  });
11407
11398
  }
11408
- function Xu(e, t) {
11399
+ function Ju(e, t) {
11409
11400
  var n, r, i, a;
11410
11401
  var o = (n = e.elements.find(function (e) {
11411
11402
  return e.clientId === t;
@@ -11421,8 +11412,8 @@ function Xu(e, t) {
11421
11412
  selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
11422
11413
  };
11423
11414
  }
11424
- function Zu(e) {
11415
+ function Yu(e) {
11425
11416
  var t, n, r, i;
11426
11417
  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;
11427
11418
  }
11428
- 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;
11419
+ exports.QuestionContentEditor = qo, exports.QuestionPlayer = Il, exports.QuestionPreview = cu, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = qu, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Ps, exports.createEmptyQuestionStructureDraft = ae, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Xo, exports.createQuestionPreviewDraft = Zo, exports.createQuestionStructureElement = se, exports.createQuestionStructureExtra = oe, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Ee, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = de, exports.deleteQuestionStructureExtra = ue, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = $o, exports.getQuestionStructureElementDefaultEnName = E, exports.getQuestionStructureElementDefaultName = T, exports.getQuestionStructureExtraDefaultEnName = ve, exports.getQuestionStructureExtraDefaultName = _e, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = fe, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = De, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = te, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Qo, exports.updateQuestionStructureElement = me, exports.updateQuestionStructureExtra = pe, exports.updateQuestionStructureGlobalConfig = he, exports.updateQuestionStructureMetadata = ge;