@yungu-fed/question-editor 0.3.2 → 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/README.md +5 -0
- package/dist/index.css +1 -1
- package/dist/index.js +763 -776
- package/dist/index.mjs +183 -193
- package/dist/question/player/QuestionTextResponsePlayer.d.ts +1 -1
- package/dist/question/player/QuestionTextResponsePlayer.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts +0 -6
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts.map +0 -1
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
|
-
|
|
159
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
223
|
+
function oe(e) {
|
|
224
224
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
225
225
|
return {
|
|
226
|
-
clientId:
|
|
227
|
-
enName:
|
|
228
|
-
name:
|
|
226
|
+
clientId: be(),
|
|
227
|
+
enName: ve(e),
|
|
228
|
+
name: _e(e),
|
|
229
229
|
type: e
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function se(e) {
|
|
233
233
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
234
|
-
var n =
|
|
235
|
-
return e === "classification" || e === "fill" || e === "richText" || e === "textMarker" || e === "textResponse" || e === "ordering" ?
|
|
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
|
|
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:
|
|
247
|
-
name:
|
|
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:
|
|
257
|
-
name:
|
|
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:
|
|
267
|
-
name:
|
|
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:
|
|
279
|
-
name:
|
|
278
|
+
enName: E(e),
|
|
279
|
+
name: T(e),
|
|
280
280
|
type: e
|
|
281
281
|
};
|
|
282
282
|
case "lineConnect":
|
|
283
|
-
return
|
|
283
|
+
return le(e, t);
|
|
284
284
|
case "matching":
|
|
285
|
-
return
|
|
285
|
+
return le(e, t);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
function
|
|
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:
|
|
299
|
-
name:
|
|
298
|
+
enName: E(e),
|
|
299
|
+
name: T(e),
|
|
300
300
|
type: e
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
function
|
|
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
|
|
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
|
|
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 =
|
|
324
|
-
o =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
350
|
+
function ge(e, t) {
|
|
351
351
|
return C(C({}, e), t);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
return ne[e];
|
|
355
|
-
}
|
|
356
|
-
function D(e) {
|
|
353
|
+
function T(e) {
|
|
357
354
|
return re[e];
|
|
358
355
|
}
|
|
359
|
-
function
|
|
360
|
-
return
|
|
356
|
+
function E(e) {
|
|
357
|
+
return ie[e];
|
|
361
358
|
}
|
|
362
359
|
function _e(e) {
|
|
363
|
-
return
|
|
360
|
+
return ye(w, e);
|
|
361
|
+
}
|
|
362
|
+
function ve(e) {
|
|
363
|
+
return ye(ne, e);
|
|
364
364
|
}
|
|
365
|
-
function
|
|
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
|
|
373
|
+
function be() {
|
|
374
374
|
return h();
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function xe(e, t) {
|
|
377
377
|
return {
|
|
378
378
|
clientId: t,
|
|
379
379
|
config: {},
|
|
380
|
-
enName:
|
|
381
|
-
name:
|
|
380
|
+
enName: E(e),
|
|
381
|
+
name: T(e),
|
|
382
382
|
type: e
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function Se(e, t) {
|
|
386
386
|
return e.find(function (e, n) {
|
|
387
387
|
return n === t;
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
var
|
|
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(
|
|
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
|
|
415
|
-
blankId:
|
|
416
|
-
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:
|
|
427
|
-
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
|
|
441
|
+
function we(e) {
|
|
442
442
|
return !!(e && _typeof(e) == "object" && "type" in e && e.type === "blank");
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Te(e) {
|
|
445
445
|
return _typeof(e) == "string" ? e : "";
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Ee() {
|
|
448
448
|
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
449
|
-
return
|
|
450
|
-
json:
|
|
449
|
+
return De({
|
|
450
|
+
json: ke(e)
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
var t =
|
|
453
|
+
function De(e) {
|
|
454
|
+
var t = Oe(e);
|
|
455
455
|
return {
|
|
456
|
-
html:
|
|
456
|
+
html: Me(t),
|
|
457
457
|
json: t,
|
|
458
|
-
text:
|
|
458
|
+
text: Ae(t)
|
|
459
459
|
};
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Oe(t) {
|
|
462
462
|
var n;
|
|
463
463
|
return t != null && t.json ? (0, e.deserializeRichTextEditorJson)(t.json, {
|
|
464
|
-
plugins: [
|
|
464
|
+
plugins: [Ce]
|
|
465
465
|
}) : t != null && t.html ? (0, e.deserializeRichTextEditorHtml)(t.html, {
|
|
466
|
-
plugins: [
|
|
467
|
-
}) :
|
|
466
|
+
plugins: [Ce]
|
|
467
|
+
}) : ke((n = t == null ? void 0 : t.text) == null ? "" : n);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
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
|
|
478
|
+
return e.map(je).join("\n");
|
|
482
479
|
}
|
|
483
|
-
function je(
|
|
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: [
|
|
485
|
+
plugins: [Ce]
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Ne(e) {
|
|
489
489
|
return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
|
|
490
490
|
}
|
|
491
|
-
var
|
|
492
|
-
function
|
|
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
|
|
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
|
|
512
|
-
return e === "table" ? [
|
|
513
|
-
content:
|
|
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
|
|
518
|
-
var n =
|
|
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:
|
|
524
|
+
content: De(e.content),
|
|
525
525
|
id: (r = n[t]) == null ? g() : r
|
|
526
526
|
};
|
|
527
527
|
});
|
|
528
|
-
return r.length > 0 ? r :
|
|
528
|
+
return r.length > 0 ? r : Le(t);
|
|
529
529
|
}
|
|
530
|
-
function
|
|
531
|
-
return
|
|
530
|
+
function ze(e) {
|
|
531
|
+
return Pe.map(function (t) {
|
|
532
532
|
return {
|
|
533
533
|
cells: e.map(function (e, n) {
|
|
534
|
-
return
|
|
534
|
+
return Ee(n === 0 ? "\u9009\u9879 ".concat(t) : "");
|
|
535
535
|
}),
|
|
536
536
|
id: g()
|
|
537
537
|
};
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Be(e, t) {
|
|
541
541
|
var n = e.length;
|
|
542
542
|
return {
|
|
543
543
|
cells: t.map(function (e, t) {
|
|
544
|
-
return
|
|
544
|
+
return Ee(t === 0 ? "\u9009\u9879 ".concat(n + 1) : "");
|
|
545
545
|
}),
|
|
546
546
|
id: g()
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
-
function
|
|
550
|
-
var n =
|
|
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
|
|
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 :
|
|
564
|
+
return r.length > 0 ? r : ze(t);
|
|
565
565
|
}
|
|
566
|
-
function
|
|
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:
|
|
583
|
+
content: Ee("\u5217 ".concat(e)),
|
|
584
584
|
id: g()
|
|
585
585
|
};
|
|
586
586
|
}
|
|
587
|
-
function
|
|
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
|
|
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
|
|
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
|
|
615
|
-
|
|
614
|
+
var Je = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
|
|
615
|
+
Ye = {
|
|
616
616
|
max: 5,
|
|
617
617
|
min: 2
|
|
618
618
|
};
|
|
619
|
-
function
|
|
619
|
+
function Xe(e, t) {
|
|
620
620
|
return t > e;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
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
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
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 =
|
|
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 =
|
|
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
|
|
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 &&
|
|
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
|
|
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
|
|
684
|
+
function it(e) {
|
|
685
685
|
var t;
|
|
686
|
-
var n = (t = e == null ? void 0 : e.slice(0,
|
|
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:
|
|
689
|
+
labelStyle: ot(e.labelStyle, (n = Qe[t]) == null ? "number" : n)
|
|
690
690
|
};
|
|
691
691
|
})) == null ? [] : t;
|
|
692
|
-
return n.length >=
|
|
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
|
|
699
|
+
return tt[e](t);
|
|
700
|
+
}
|
|
701
|
+
function ot(e, t) {
|
|
702
|
+
return Je.includes(e) ? e : t;
|
|
703
703
|
}
|
|
704
|
-
var
|
|
704
|
+
var st = {
|
|
705
705
|
max: 2,
|
|
706
706
|
min: 2
|
|
707
707
|
};
|
|
708
|
-
function
|
|
708
|
+
function ct(e, t) {
|
|
709
709
|
return e === 0 && t === 1;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
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
|
|
720
|
+
return ct(Math.min(e.columnIndex, t.columnIndex), Math.max(e.columnIndex, t.columnIndex)) ? n : null;
|
|
721
721
|
}
|
|
722
|
-
var
|
|
723
|
-
function
|
|
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
|
|
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
|
|
754
|
+
function pt(e) {
|
|
755
755
|
var t;
|
|
756
|
-
var n = (t = e == null ? void 0 : e.slice(0,
|
|
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:
|
|
759
|
+
labelStyle: ot(e.labelStyle, (n = ut[t]) == null ? "number" : n)
|
|
760
760
|
};
|
|
761
761
|
})) == null ? [] : t;
|
|
762
|
-
return n.length >=
|
|
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
|
|
769
|
-
return
|
|
768
|
+
function mt(e, t) {
|
|
769
|
+
return at(e, t);
|
|
770
770
|
}
|
|
771
|
-
var
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
marks: [
|
|
771
|
+
var ht = "mark.textMarker",
|
|
772
|
+
gt = "markerId",
|
|
773
|
+
_t = {
|
|
774
|
+
marks: [vt()]
|
|
775
775
|
};
|
|
776
|
-
function
|
|
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 =
|
|
786
|
-
return t ? _defineProperty({},
|
|
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 =
|
|
792
|
-
return n ? "<span data-marker-id=\"".concat(
|
|
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:
|
|
798
|
-
markKey:
|
|
797
|
+
command: ht,
|
|
798
|
+
markKey: gt
|
|
799
799
|
}],
|
|
800
800
|
render: e
|
|
801
801
|
};
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function yt(e) {
|
|
804
804
|
var t = [];
|
|
805
|
-
return
|
|
806
|
-
var n =
|
|
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
|
|
810
|
+
function bt(e) {
|
|
811
811
|
var t = [];
|
|
812
|
-
return
|
|
813
|
-
var n =
|
|
814
|
-
r =
|
|
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
|
|
830
|
+
function xt() {
|
|
831
831
|
return g();
|
|
832
832
|
}
|
|
833
|
-
function
|
|
834
|
-
return
|
|
833
|
+
function St(e) {
|
|
834
|
+
return Et(e) ? wt(e[gt]) : "";
|
|
835
835
|
}
|
|
836
|
-
function
|
|
836
|
+
function Ct(e, t) {
|
|
837
837
|
e.forEach(function (e) {
|
|
838
|
-
t(e),
|
|
838
|
+
t(e), Et(e) && Array.isArray(e.children) && Ct(e.children, t);
|
|
839
839
|
});
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function wt(e) {
|
|
842
842
|
return _typeof(e) == "string" ? e.trim() : "";
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function Tt(e) {
|
|
845
845
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<").replace(/>/g, ">");
|
|
846
846
|
}
|
|
847
|
-
function
|
|
847
|
+
function Et(e) {
|
|
848
848
|
return _typeof(e) == "object" && !!e;
|
|
849
849
|
}
|
|
850
|
-
var
|
|
850
|
+
var Dt = {
|
|
851
851
|
"blank-underline": "_blank-underline_1wnlx_1"
|
|
852
852
|
},
|
|
853
|
-
|
|
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(
|
|
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
|
|
878
|
-
blankId:
|
|
879
|
-
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:
|
|
890
|
-
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:
|
|
901
|
-
label:
|
|
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:
|
|
913
|
+
className: Dt["blank-underline"],
|
|
914
914
|
"data-selected": n ? "true" : void 0,
|
|
915
|
-
children:
|
|
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" && "
|
|
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" && "
|
|
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] : [
|
|
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), [
|
|
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: [
|
|
1051
|
+
plugins: [_t]
|
|
1052
1052
|
}) : gi(t);
|
|
1053
1053
|
}
|
|
1054
1054
|
function qt(e) {
|
|
1055
|
-
return
|
|
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
|
|
1084
|
+
return at(e, t);
|
|
1085
1085
|
}
|
|
1086
1086
|
function $t(e, t) {
|
|
1087
|
-
return
|
|
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 =
|
|
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:
|
|
1581
|
+
answers: He(e.answers, n, "multiple"),
|
|
1582
1582
|
options: n
|
|
1583
1583
|
});
|
|
1584
1584
|
}
|
|
1585
1585
|
function Gn(e, t, n) {
|
|
1586
|
-
return
|
|
1586
|
+
return Ie(e, t, n);
|
|
1587
1587
|
}
|
|
1588
1588
|
function Kn(e) {
|
|
1589
|
-
var t = [].concat(_toConsumableArray(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
|
|
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:
|
|
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 =
|
|
1638
|
-
i =
|
|
1637
|
+
var r = Re(e.columns, t.config.renderer),
|
|
1638
|
+
i = Ve(e.options, r);
|
|
1639
1639
|
return C(C({}, e), {}, {
|
|
1640
|
-
answers: n ?
|
|
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), [
|
|
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 >=
|
|
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 <=
|
|
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
|
|
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
|
|
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 ?
|
|
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:
|
|
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:
|
|
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
|
|
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 =
|
|
2042
|
+
var t = Le(e.config.renderer);
|
|
2043
2043
|
return {
|
|
2044
2044
|
answers: {
|
|
2045
2045
|
optionIds: []
|
|
2046
2046
|
},
|
|
2047
2047
|
columns: t,
|
|
2048
|
-
options:
|
|
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,
|
|
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:
|
|
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
|
|
2112
|
+
return it(e.config.columns);
|
|
2113
2113
|
}
|
|
2114
2114
|
function ei(e) {
|
|
2115
2115
|
var t, n;
|
|
2116
|
-
return (t = (n =
|
|
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
|
|
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 =
|
|
2153
|
-
return n.slice(0,
|
|
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:
|
|
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
|
|
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
|
|
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] : [
|
|
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: [
|
|
2524
|
+
marks: [vt(function (_ref35) {
|
|
2525
2525
|
var e = _ref35.children,
|
|
2526
2526
|
t = _ref35.leaf;
|
|
2527
|
-
return
|
|
2527
|
+
return St(t) ? ia(e) : e;
|
|
2528
2528
|
})]
|
|
2529
2529
|
};
|
|
2530
2530
|
function ia(e) {
|
|
@@ -3264,7 +3264,7 @@ function Da(_ref50) {
|
|
|
3264
3264
|
"aria-label": r,
|
|
3265
3265
|
className: "".concat(P.textarea, " rich-content-editor-surface"),
|
|
3266
3266
|
onChange: function onChange(e) {
|
|
3267
|
-
return a(
|
|
3267
|
+
return a(Ee(e.target.value));
|
|
3268
3268
|
},
|
|
3269
3269
|
placeholder: s,
|
|
3270
3270
|
value: f.text
|
|
@@ -3317,7 +3317,7 @@ function Da(_ref50) {
|
|
|
3317
3317
|
className: ja(i),
|
|
3318
3318
|
initialValue: f.json,
|
|
3319
3319
|
onChange: function onChange(e) {
|
|
3320
|
-
return a(
|
|
3320
|
+
return a(De({
|
|
3321
3321
|
json: e
|
|
3322
3322
|
}));
|
|
3323
3323
|
},
|
|
@@ -3354,7 +3354,7 @@ function Ma(_ref52) {
|
|
|
3354
3354
|
className: ja(i),
|
|
3355
3355
|
initialValue: s.json,
|
|
3356
3356
|
onChange: function onChange(e) {
|
|
3357
|
-
return a(
|
|
3357
|
+
return a(De({
|
|
3358
3358
|
json: e
|
|
3359
3359
|
}));
|
|
3360
3360
|
},
|
|
@@ -3470,7 +3470,7 @@ function Na(_ref54) {
|
|
|
3470
3470
|
answers: p
|
|
3471
3471
|
}), l, d)), S());
|
|
3472
3472
|
}
|
|
3473
|
-
function
|
|
3473
|
+
function te(n, r) {
|
|
3474
3474
|
return (0, t.jsxs)("div", {
|
|
3475
3475
|
className: "flex min-w-0 flex-wrap items-start gap-3",
|
|
3476
3476
|
children: [r.answerPools.map(function (i, a) {
|
|
@@ -3514,7 +3514,7 @@ function Na(_ref54) {
|
|
|
3514
3514
|
})]
|
|
3515
3515
|
});
|
|
3516
3516
|
}
|
|
3517
|
-
function
|
|
3517
|
+
function w(n, r, a, o) {
|
|
3518
3518
|
var s = b(n);
|
|
3519
3519
|
return (0, t.jsxs)("section", {
|
|
3520
3520
|
className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
|
|
@@ -3556,7 +3556,7 @@ function Na(_ref54) {
|
|
|
3556
3556
|
})]
|
|
3557
3557
|
}), (0, t.jsx)("div", {
|
|
3558
3558
|
className: "min-w-72 flex-1",
|
|
3559
|
-
children:
|
|
3559
|
+
children: te(a, o)
|
|
3560
3560
|
}), (0, t.jsx)(M, {
|
|
3561
3561
|
"aria-label": c("questionContentEditor.actions.deleteBlank", {
|
|
3562
3562
|
index: r + 1
|
|
@@ -3574,7 +3574,7 @@ function Na(_ref54) {
|
|
|
3574
3574
|
})]
|
|
3575
3575
|
}, n);
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function ne(n, r, a) {
|
|
3578
3578
|
return (0, t.jsxs)("section", {
|
|
3579
3579
|
className: "flex min-w-0 flex-col gap-3 rounded-md border border-blue-200 bg-blue-50/40 px-4 py-3",
|
|
3580
3580
|
children: [(0, t.jsxs)("div", {
|
|
@@ -3604,10 +3604,10 @@ function Na(_ref54) {
|
|
|
3604
3604
|
strong: !0,
|
|
3605
3605
|
children: c("questionContentEditor.blank.sharedAnswer")
|
|
3606
3606
|
})]
|
|
3607
|
-
}),
|
|
3607
|
+
}), te(r, n)]
|
|
3608
3608
|
}, "shared-group-".concat(r));
|
|
3609
3609
|
}
|
|
3610
|
-
function
|
|
3610
|
+
function re() {
|
|
3611
3611
|
var e = new Set();
|
|
3612
3612
|
return i.blanks.reduce(function (t, n, r) {
|
|
3613
3613
|
var i = p.findIndex(function (e) {
|
|
@@ -3620,9 +3620,9 @@ function Na(_ref54) {
|
|
|
3620
3620
|
var _n4 = m.findIndex(function (e) {
|
|
3621
3621
|
return e.groupIndex === i;
|
|
3622
3622
|
});
|
|
3623
|
-
return e.add(i), t.push(
|
|
3623
|
+
return e.add(i), t.push(ne(a, i, _n4)), t;
|
|
3624
3624
|
}
|
|
3625
|
-
return t.push(
|
|
3625
|
+
return t.push(w(n, r, i, a)), t;
|
|
3626
3626
|
}, []);
|
|
3627
3627
|
}
|
|
3628
3628
|
return r ? (0, t.jsxs)(t.Fragment, {
|
|
@@ -3630,7 +3630,7 @@ function Na(_ref54) {
|
|
|
3630
3630
|
className: "flex min-w-0 flex-col gap-4",
|
|
3631
3631
|
children: (0, t.jsx)("div", {
|
|
3632
3632
|
className: "flex min-w-0 flex-col gap-3",
|
|
3633
|
-
children:
|
|
3633
|
+
children: re()
|
|
3634
3634
|
})
|
|
3635
3635
|
}), (0, t.jsx)(_a, {
|
|
3636
3636
|
cancelText: c("questionContentEditor.actions.cancel"),
|
|
@@ -3939,7 +3939,7 @@ function La(_ref62) {
|
|
|
3939
3939
|
candidateOptions: bn(e)
|
|
3940
3940
|
}));
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3942
|
+
function te(e, t) {
|
|
3943
3943
|
var n = jn(v.blankOptionGroups, v.blanks).map(function (n) {
|
|
3944
3944
|
return n.blankId === e ? C(C({}, t), {}, {
|
|
3945
3945
|
blankId: e
|
|
@@ -3949,24 +3949,24 @@ function La(_ref62) {
|
|
|
3949
3949
|
blankOptionGroups: n
|
|
3950
3950
|
}));
|
|
3951
3951
|
}
|
|
3952
|
-
function
|
|
3952
|
+
function w() {
|
|
3953
3953
|
return v.answers.filter(function (e) {
|
|
3954
3954
|
return "answerOptionIds" in e;
|
|
3955
3955
|
});
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3957
|
+
function ne(e) {
|
|
3958
3958
|
return e.blankIds.join("__");
|
|
3959
3959
|
}
|
|
3960
|
-
function
|
|
3960
|
+
function re(e) {
|
|
3961
3961
|
x(C(C({}, v), {}, {
|
|
3962
3962
|
answers: e
|
|
3963
3963
|
}));
|
|
3964
3964
|
}
|
|
3965
|
-
function
|
|
3966
|
-
var r =
|
|
3965
|
+
function ie(e, t, n) {
|
|
3966
|
+
var r = w(),
|
|
3967
3967
|
i = r.slice(e, e + 1)[0];
|
|
3968
3968
|
if (!i) return;
|
|
3969
|
-
var a =
|
|
3969
|
+
var a = ne(i),
|
|
3970
3970
|
o = (t < i.answerOptionIds.length ? i.answerOptionIds.map(function (e, r) {
|
|
3971
3971
|
return r === t ? n : e;
|
|
3972
3972
|
}) : [].concat(_toConsumableArray(i.answerOptionIds), [n])).filter(function (e, t, n) {
|
|
@@ -3974,41 +3974,41 @@ function La(_ref62) {
|
|
|
3974
3974
|
});
|
|
3975
3975
|
t >= i.answerOptionIds.length && n && p(function (e) {
|
|
3976
3976
|
return C(C({}, e), {}, _defineProperty({}, a, Math.max(0, Ra(e, a) - 1)));
|
|
3977
|
-
}),
|
|
3977
|
+
}), re(r.map(function (t, n) {
|
|
3978
3978
|
return n === e ? C(C({}, t), {}, {
|
|
3979
3979
|
answerOptionIds: o
|
|
3980
3980
|
}) : t;
|
|
3981
3981
|
}));
|
|
3982
3982
|
}
|
|
3983
|
-
function
|
|
3983
|
+
function ae(e) {
|
|
3984
3984
|
var t = jn(v.blankOptionGroups, v.blanks).find(function (t) {
|
|
3985
3985
|
return t.blankId === e;
|
|
3986
3986
|
});
|
|
3987
3987
|
if (!t) throw Error("Missing option group for blank ".concat(e, "."));
|
|
3988
3988
|
return t;
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3990
|
+
function oe(e, t, n, r) {
|
|
3991
3991
|
t(e.map(function (e) {
|
|
3992
3992
|
return e.optionId === n ? C(C({}, e), {}, {
|
|
3993
3993
|
content: r
|
|
3994
3994
|
}) : e;
|
|
3995
3995
|
}));
|
|
3996
3996
|
}
|
|
3997
|
-
function
|
|
3997
|
+
function se(e, t, n) {
|
|
3998
3998
|
t(e.filter(function (e) {
|
|
3999
3999
|
return e.optionId !== n;
|
|
4000
4000
|
}));
|
|
4001
4001
|
}
|
|
4002
|
-
function
|
|
4003
|
-
return
|
|
4002
|
+
function ce() {
|
|
4003
|
+
return w().reduce(function (e, t, n) {
|
|
4004
4004
|
return t.blankIds.length >= 2 && e.push({
|
|
4005
4005
|
group: t,
|
|
4006
4006
|
groupIndex: n
|
|
4007
4007
|
}), e;
|
|
4008
4008
|
}, []);
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4011
|
-
return
|
|
4010
|
+
function le(e) {
|
|
4011
|
+
return w().filter(function (e) {
|
|
4012
4012
|
return e.blankIds.length === 1;
|
|
4013
4013
|
}).map(function (e) {
|
|
4014
4014
|
return e.blankIds[0];
|
|
@@ -4016,22 +4016,22 @@ function La(_ref62) {
|
|
|
4016
4016
|
return !!t && t !== e;
|
|
4017
4017
|
});
|
|
4018
4018
|
}
|
|
4019
|
-
function
|
|
4019
|
+
function ue(e, t) {
|
|
4020
4020
|
if (t === "__single__") {
|
|
4021
|
-
|
|
4021
|
+
ge(e);
|
|
4022
4022
|
return;
|
|
4023
4023
|
}
|
|
4024
4024
|
if (t === "__new__") {
|
|
4025
|
-
|
|
4025
|
+
fe(e);
|
|
4026
4026
|
return;
|
|
4027
4027
|
}
|
|
4028
4028
|
var n = Number(t.replace("group:", ""));
|
|
4029
|
-
Number.isNaN(n) ||
|
|
4029
|
+
Number.isNaN(n) || de(e, n);
|
|
4030
4030
|
}
|
|
4031
|
-
function
|
|
4032
|
-
var n =
|
|
4031
|
+
function de(e, t) {
|
|
4032
|
+
var n = w(),
|
|
4033
4033
|
r = n.slice(t, t + 1)[0];
|
|
4034
|
-
!r || r.blankIds.length < 2 || r.blankIds.includes(e) ||
|
|
4034
|
+
!r || r.blankIds.length < 2 || r.blankIds.includes(e) || re(n.map(function (n, r) {
|
|
4035
4035
|
return r === t ? C(C({}, n), {}, {
|
|
4036
4036
|
blankIds: [].concat(_toConsumableArray(n.blankIds), [e])
|
|
4037
4037
|
}) : C(C({}, n), {}, {
|
|
@@ -4043,24 +4043,24 @@ function La(_ref62) {
|
|
|
4043
4043
|
return e.blankIds.length > 0;
|
|
4044
4044
|
}));
|
|
4045
4045
|
}
|
|
4046
|
-
function
|
|
4047
|
-
var t =
|
|
4046
|
+
function fe(e) {
|
|
4047
|
+
var t = le(e)[0];
|
|
4048
4048
|
t && (h(e), _(t));
|
|
4049
4049
|
}
|
|
4050
|
-
function
|
|
4050
|
+
function pe() {
|
|
4051
4051
|
h(null), _(null);
|
|
4052
4052
|
}
|
|
4053
|
-
function
|
|
4054
|
-
!m || !g || (
|
|
4053
|
+
function me() {
|
|
4054
|
+
!m || !g || (he(m, g), pe());
|
|
4055
4055
|
}
|
|
4056
|
-
function
|
|
4056
|
+
function he(e, t) {
|
|
4057
4057
|
var n;
|
|
4058
4058
|
if (e === t) return;
|
|
4059
|
-
var r =
|
|
4059
|
+
var r = w(),
|
|
4060
4060
|
i = r.find(function (t) {
|
|
4061
4061
|
return t.blankIds.includes(e);
|
|
4062
4062
|
});
|
|
4063
|
-
|
|
4063
|
+
re([].concat(_toConsumableArray(r.map(function (n) {
|
|
4064
4064
|
return C(C({}, n), {}, {
|
|
4065
4065
|
blankIds: n.blankIds.filter(function (n) {
|
|
4066
4066
|
return n !== e && n !== t;
|
|
@@ -4073,13 +4073,13 @@ function La(_ref62) {
|
|
|
4073
4073
|
return e.blankIds.length > 0;
|
|
4074
4074
|
}));
|
|
4075
4075
|
}
|
|
4076
|
-
function
|
|
4076
|
+
function ge(e) {
|
|
4077
4077
|
var t;
|
|
4078
|
-
var n =
|
|
4078
|
+
var n = w(),
|
|
4079
4079
|
r = n.find(function (t) {
|
|
4080
4080
|
return t.blankIds.includes(e);
|
|
4081
4081
|
});
|
|
4082
|
-
|
|
4082
|
+
re([].concat(_toConsumableArray(n.map(function (t) {
|
|
4083
4083
|
return C(C({}, t), {}, {
|
|
4084
4084
|
blankIds: t.blankIds.filter(function (t) {
|
|
4085
4085
|
return t !== e;
|
|
@@ -4092,13 +4092,13 @@ function La(_ref62) {
|
|
|
4092
4092
|
return e.blankIds.length > 0;
|
|
4093
4093
|
}));
|
|
4094
4094
|
}
|
|
4095
|
-
function
|
|
4096
|
-
var t =
|
|
4095
|
+
function T(e) {
|
|
4096
|
+
var t = ne(e);
|
|
4097
4097
|
p(function (e) {
|
|
4098
4098
|
return C(C({}, e), {}, _defineProperty({}, t, Ra(e, t) + 1));
|
|
4099
4099
|
});
|
|
4100
4100
|
}
|
|
4101
|
-
function
|
|
4101
|
+
function E(e, t) {
|
|
4102
4102
|
return [{
|
|
4103
4103
|
label: u("questionContentEditor.blank.singleAnswer"),
|
|
4104
4104
|
value: "__single__"
|
|
@@ -4110,13 +4110,13 @@ function La(_ref62) {
|
|
|
4110
4110
|
}),
|
|
4111
4111
|
value: "group:".concat(e)
|
|
4112
4112
|
};
|
|
4113
|
-
})), _toConsumableArray(
|
|
4113
|
+
})), _toConsumableArray(le(e).length > 0 ? [{
|
|
4114
4114
|
label: u("questionContentEditor.blank.newAnswerGroup"),
|
|
4115
4115
|
value: "__new__"
|
|
4116
4116
|
}] : []));
|
|
4117
4117
|
}
|
|
4118
|
-
function
|
|
4119
|
-
return
|
|
4118
|
+
function _e() {
|
|
4119
|
+
return le(m == null ? "" : m).map(function (e) {
|
|
4120
4120
|
return {
|
|
4121
4121
|
label: u("questionContentEditor.blank.shortLabel", {
|
|
4122
4122
|
index: v.blanks.indexOf(e) + 1
|
|
@@ -4125,7 +4125,7 @@ function La(_ref62) {
|
|
|
4125
4125
|
};
|
|
4126
4126
|
});
|
|
4127
4127
|
}
|
|
4128
|
-
function
|
|
4128
|
+
function ve(e, t) {
|
|
4129
4129
|
var n = new Set(e.map(function (e) {
|
|
4130
4130
|
return e.optionId;
|
|
4131
4131
|
})),
|
|
@@ -4134,7 +4134,7 @@ function La(_ref62) {
|
|
|
4134
4134
|
for (; n.has(i);) r += 1, i = "".concat(t).concat(r);
|
|
4135
4135
|
return i;
|
|
4136
4136
|
}
|
|
4137
|
-
function
|
|
4137
|
+
function ye(n, r) {
|
|
4138
4138
|
return (0, t.jsx)("div", {
|
|
4139
4139
|
className: "flex min-w-0 flex-col gap-2",
|
|
4140
4140
|
children: n.map(function (i, a) {
|
|
@@ -4152,7 +4152,7 @@ function La(_ref62) {
|
|
|
4152
4152
|
index: a + 1
|
|
4153
4153
|
}),
|
|
4154
4154
|
onChange: function onChange(e) {
|
|
4155
|
-
return
|
|
4155
|
+
return oe(n, r, i.optionId, e);
|
|
4156
4156
|
},
|
|
4157
4157
|
placeholder: u("questionContentEditor.placeholders.candidateOption"),
|
|
4158
4158
|
value: i.content,
|
|
@@ -4165,7 +4165,7 @@ function La(_ref62) {
|
|
|
4165
4165
|
disabled: e || n.length <= 1,
|
|
4166
4166
|
icon: "\xD7",
|
|
4167
4167
|
onClick: function onClick() {
|
|
4168
|
-
return
|
|
4168
|
+
return se(n, r, i.optionId);
|
|
4169
4169
|
},
|
|
4170
4170
|
size: "small"
|
|
4171
4171
|
})]
|
|
@@ -4173,7 +4173,7 @@ function La(_ref62) {
|
|
|
4173
4173
|
})
|
|
4174
4174
|
});
|
|
4175
4175
|
}
|
|
4176
|
-
function
|
|
4176
|
+
function be(n, r, i, a) {
|
|
4177
4177
|
return (0, t.jsxs)("section", {
|
|
4178
4178
|
className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white px-4 py-3",
|
|
4179
4179
|
children: [(0, t.jsxs)("div", {
|
|
@@ -4185,22 +4185,22 @@ function La(_ref62) {
|
|
|
4185
4185
|
disabled: e,
|
|
4186
4186
|
icon: "+",
|
|
4187
4187
|
onClick: function onClick() {
|
|
4188
|
-
return r([].concat(_toConsumableArray(n), [yn(
|
|
4188
|
+
return r([].concat(_toConsumableArray(n), [yn(ve(n, a))]));
|
|
4189
4189
|
},
|
|
4190
4190
|
size: "small",
|
|
4191
4191
|
children: u("questionContentEditor.actions.addCandidateOption")
|
|
4192
4192
|
})]
|
|
4193
|
-
}),
|
|
4193
|
+
}), ye(n, r)]
|
|
4194
4194
|
});
|
|
4195
4195
|
}
|
|
4196
|
-
function
|
|
4196
|
+
function xe() {
|
|
4197
4197
|
var e;
|
|
4198
4198
|
return (e = v.candidateOptions) == null ? [] : e;
|
|
4199
4199
|
}
|
|
4200
|
-
function
|
|
4200
|
+
function Se(e) {
|
|
4201
4201
|
if (r.config.candidateMode !== "sharedPool" || r.config.allowCandidateReuse) return new Set();
|
|
4202
4202
|
var t = new Set(e.blankIds);
|
|
4203
|
-
return new Set(
|
|
4203
|
+
return new Set(w().filter(function (e) {
|
|
4204
4204
|
return e.blankIds.every(function (e) {
|
|
4205
4205
|
return !t.has(e);
|
|
4206
4206
|
});
|
|
@@ -4208,8 +4208,8 @@ function La(_ref62) {
|
|
|
4208
4208
|
return [].concat(_toConsumableArray(e), _toConsumableArray(t.answerOptionIds));
|
|
4209
4209
|
}, []));
|
|
4210
4210
|
}
|
|
4211
|
-
function
|
|
4212
|
-
var i =
|
|
4211
|
+
function Ce(n, r) {
|
|
4212
|
+
var i = ne(n),
|
|
4213
4213
|
a = Mn(n),
|
|
4214
4214
|
o = a.length ? [].concat(_toConsumableArray(a), _toConsumableArray(Array.from({
|
|
4215
4215
|
length: Ra(f, i)
|
|
@@ -4220,8 +4220,8 @@ function La(_ref62) {
|
|
|
4220
4220
|
}, function () {
|
|
4221
4221
|
return "";
|
|
4222
4222
|
}),
|
|
4223
|
-
s =
|
|
4224
|
-
c =
|
|
4223
|
+
s = Se(n),
|
|
4224
|
+
c = xe().map(function (e, t) {
|
|
4225
4225
|
var n = Zt("upperAlpha", t),
|
|
4226
4226
|
r = a.includes(e.optionId);
|
|
4227
4227
|
return {
|
|
@@ -4244,7 +4244,7 @@ function La(_ref62) {
|
|
|
4244
4244
|
className: "min-w-60",
|
|
4245
4245
|
disabled: e,
|
|
4246
4246
|
onChange: function onChange(e) {
|
|
4247
|
-
return
|
|
4247
|
+
return ie(r, a, e);
|
|
4248
4248
|
},
|
|
4249
4249
|
options: c,
|
|
4250
4250
|
placeholder: u("questionContentEditor.placeholders.blankAnswer"),
|
|
@@ -4255,18 +4255,18 @@ function La(_ref62) {
|
|
|
4255
4255
|
disabled: e,
|
|
4256
4256
|
icon: "+",
|
|
4257
4257
|
onClick: function onClick() {
|
|
4258
|
-
return
|
|
4258
|
+
return T(n);
|
|
4259
4259
|
},
|
|
4260
4260
|
type: "dashed",
|
|
4261
4261
|
children: u("questionContentEditor.actions.addAnswerPool")
|
|
4262
4262
|
})]
|
|
4263
4263
|
});
|
|
4264
4264
|
}
|
|
4265
|
-
function
|
|
4265
|
+
function we(n) {
|
|
4266
4266
|
return (0, t.jsx)(M, {
|
|
4267
4267
|
disabled: e,
|
|
4268
4268
|
onClick: function onClick() {
|
|
4269
|
-
return
|
|
4269
|
+
return ge(n);
|
|
4270
4270
|
},
|
|
4271
4271
|
size: "small",
|
|
4272
4272
|
children: u("questionContentEditor.blank.memberDetach", {
|
|
@@ -4274,7 +4274,7 @@ function La(_ref62) {
|
|
|
4274
4274
|
})
|
|
4275
4275
|
}, n);
|
|
4276
4276
|
}
|
|
4277
|
-
function
|
|
4277
|
+
function Te(e, n, r) {
|
|
4278
4278
|
return (0, t.jsxs)("section", {
|
|
4279
4279
|
className: "flex min-w-0 flex-col gap-3 rounded-md border border-blue-200 bg-blue-50/40 px-4 py-3",
|
|
4280
4280
|
children: [(0, t.jsxs)("div", {
|
|
@@ -4286,15 +4286,15 @@ function La(_ref62) {
|
|
|
4286
4286
|
children: u("questionContentEditor.blank.answerGroup", {
|
|
4287
4287
|
index: r + 1
|
|
4288
4288
|
})
|
|
4289
|
-
}), e.blankIds.map(
|
|
4289
|
+
}), e.blankIds.map(we)]
|
|
4290
4290
|
}), (0, t.jsx)(N.Text, {
|
|
4291
4291
|
strong: !0,
|
|
4292
4292
|
children: u("questionContentEditor.blank.sharedAnswer")
|
|
4293
4293
|
})]
|
|
4294
|
-
}),
|
|
4294
|
+
}), Ce(e, n)]
|
|
4295
4295
|
}, "candidate-shared-group-".concat(n));
|
|
4296
4296
|
}
|
|
4297
|
-
function
|
|
4297
|
+
function Ee(n, r, i, a, o) {
|
|
4298
4298
|
return (0, t.jsxs)("section", {
|
|
4299
4299
|
className: "flex min-w-0 flex-wrap items-center gap-4 rounded-md border border-slate-200 bg-white px-4 py-3",
|
|
4300
4300
|
children: [(0, t.jsx)(N.Text, {
|
|
@@ -4310,18 +4310,18 @@ function La(_ref62) {
|
|
|
4310
4310
|
className: "w-48",
|
|
4311
4311
|
disabled: e,
|
|
4312
4312
|
onChange: function onChange(e) {
|
|
4313
|
-
return
|
|
4313
|
+
return ue(n, e == null ? "__single__" : e);
|
|
4314
4314
|
},
|
|
4315
|
-
options:
|
|
4315
|
+
options: E(n, o),
|
|
4316
4316
|
value: "__single__"
|
|
4317
4317
|
}), (0, t.jsx)("div", {
|
|
4318
4318
|
className: "min-w-72 flex-1",
|
|
4319
|
-
children:
|
|
4319
|
+
children: Ce(i, a)
|
|
4320
4320
|
})]
|
|
4321
4321
|
}, n);
|
|
4322
4322
|
}
|
|
4323
|
-
function
|
|
4324
|
-
return
|
|
4323
|
+
function De() {
|
|
4324
|
+
return w().map(function (e, t) {
|
|
4325
4325
|
return {
|
|
4326
4326
|
firstBlankIndex: Math.min.apply(Math, _toConsumableArray(e.blankIds.map(function (e) {
|
|
4327
4327
|
return v.blanks.indexOf(e);
|
|
@@ -4333,36 +4333,36 @@ function La(_ref62) {
|
|
|
4333
4333
|
return e.firstBlankIndex - t.firstBlankIndex;
|
|
4334
4334
|
});
|
|
4335
4335
|
}
|
|
4336
|
-
function
|
|
4337
|
-
var e =
|
|
4336
|
+
function Oe() {
|
|
4337
|
+
var e = ce();
|
|
4338
4338
|
return (0, t.jsxs)("div", {
|
|
4339
4339
|
className: "flex min-w-0 flex-col gap-3",
|
|
4340
4340
|
children: [(0, t.jsx)(N.Text, {
|
|
4341
4341
|
strong: !0,
|
|
4342
4342
|
children: u("questionContentEditor.blank.groupsTitle")
|
|
4343
|
-
}),
|
|
4343
|
+
}), De().map(function (_ref70) {
|
|
4344
4344
|
var t = _ref70.group,
|
|
4345
4345
|
n = _ref70.groupIndex;
|
|
4346
|
-
if (t.blankIds.length > 1) return
|
|
4346
|
+
if (t.blankIds.length > 1) return Te(t, n, e.findIndex(function (e) {
|
|
4347
4347
|
return e.groupIndex === n;
|
|
4348
4348
|
}));
|
|
4349
4349
|
var r = t.blankIds[0];
|
|
4350
|
-
return r ?
|
|
4350
|
+
return r ? Ee(r, v.blanks.indexOf(r), t, n, e) : null;
|
|
4351
4351
|
})]
|
|
4352
4352
|
});
|
|
4353
4353
|
}
|
|
4354
|
-
function
|
|
4354
|
+
function ke(e) {
|
|
4355
4355
|
var t, n;
|
|
4356
4356
|
var r = v.answers.find(function (t) {
|
|
4357
4357
|
return "answerOptionId" in t && t.blankId === e;
|
|
4358
4358
|
}),
|
|
4359
|
-
i = (t = (n =
|
|
4359
|
+
i = (t = (n = ae(e).options[0]) == null ? void 0 : n.optionId) == null ? "" : t;
|
|
4360
4360
|
return {
|
|
4361
4361
|
answerOptionId: (r == null ? void 0 : r.answerOptionId) || i,
|
|
4362
4362
|
blankId: e
|
|
4363
4363
|
};
|
|
4364
4364
|
}
|
|
4365
|
-
function
|
|
4365
|
+
function Ae(e, t) {
|
|
4366
4366
|
x(C(C({}, v), {}, {
|
|
4367
4367
|
answers: v.answers.map(function (n) {
|
|
4368
4368
|
return "answerOptionId" in n && n.blankId === e ? C(C({}, n), {}, {
|
|
@@ -4371,14 +4371,14 @@ function La(_ref62) {
|
|
|
4371
4371
|
})
|
|
4372
4372
|
}));
|
|
4373
4373
|
}
|
|
4374
|
-
function
|
|
4375
|
-
|
|
4374
|
+
function je(e, t) {
|
|
4375
|
+
te(e, {
|
|
4376
4376
|
blankId: e,
|
|
4377
4377
|
options: t
|
|
4378
4378
|
});
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4381
|
-
var a =
|
|
4380
|
+
function Me(n, r) {
|
|
4381
|
+
var a = ke(n.blankId),
|
|
4382
4382
|
o = n.options.map(function (e, t) {
|
|
4383
4383
|
return {
|
|
4384
4384
|
label: "".concat(Zt("upperAlpha", t), ". ").concat(e.content.text || u("questionContentEditor.fields.candidateOption", {
|
|
@@ -4410,7 +4410,7 @@ function La(_ref62) {
|
|
|
4410
4410
|
className: "min-w-48",
|
|
4411
4411
|
disabled: e,
|
|
4412
4412
|
onChange: function onChange(e) {
|
|
4413
|
-
return e ?
|
|
4413
|
+
return e ? Ae(n.blankId, e) : void 0;
|
|
4414
4414
|
},
|
|
4415
4415
|
options: o,
|
|
4416
4416
|
value: a.answerOptionId
|
|
@@ -4418,22 +4418,22 @@ function La(_ref62) {
|
|
|
4418
4418
|
}) : null, (0, t.jsx)(M, {
|
|
4419
4419
|
disabled: e,
|
|
4420
4420
|
onClick: function onClick() {
|
|
4421
|
-
return
|
|
4421
|
+
return je(n.blankId, [].concat(_toConsumableArray(n.options), [yn(ve(n.options, "".concat(n.blankId, "_option_")))]));
|
|
4422
4422
|
},
|
|
4423
4423
|
size: "small",
|
|
4424
4424
|
children: u("questionContentEditor.actions.addBlankOption")
|
|
4425
4425
|
})]
|
|
4426
4426
|
})]
|
|
4427
|
-
}),
|
|
4428
|
-
return
|
|
4427
|
+
}), ye(n.options, function (e) {
|
|
4428
|
+
return je(n.blankId, e);
|
|
4429
4429
|
})]
|
|
4430
4430
|
}, n.blankId);
|
|
4431
4431
|
}
|
|
4432
|
-
function
|
|
4432
|
+
function Ne() {
|
|
4433
4433
|
if (r.config.candidateMode === "sharedPool") {
|
|
4434
4434
|
var e;
|
|
4435
4435
|
return (0, t.jsxs)(t.Fragment, {
|
|
4436
|
-
children: [
|
|
4436
|
+
children: [be((e = v.candidateOptions) == null ? [] : e, ee, u("questionContentEditor.fields.candidateOptions"), "option_"), i ? Oe() : null]
|
|
4437
4437
|
});
|
|
4438
4438
|
}
|
|
4439
4439
|
var n = jn(v.blankOptionGroups, v.blanks);
|
|
@@ -4442,7 +4442,7 @@ function La(_ref62) {
|
|
|
4442
4442
|
children: [(0, t.jsx)(N.Text, {
|
|
4443
4443
|
strong: !0,
|
|
4444
4444
|
children: u("questionContentEditor.blank.perBlankOptionsTitle")
|
|
4445
|
-
}), n.map(
|
|
4445
|
+
}), n.map(Me)]
|
|
4446
4446
|
});
|
|
4447
4447
|
}
|
|
4448
4448
|
return (0, t.jsxs)("div", {
|
|
@@ -4477,15 +4477,15 @@ function La(_ref62) {
|
|
|
4477
4477
|
onChange: S,
|
|
4478
4478
|
richTextControls: s,
|
|
4479
4479
|
translator: l
|
|
4480
|
-
}) :
|
|
4480
|
+
}) : Ne(), (0, t.jsx)(_a, {
|
|
4481
4481
|
cancelText: u("questionContentEditor.actions.cancel"),
|
|
4482
4482
|
closeLabel: u("questionContentEditor.actions.close"),
|
|
4483
4483
|
okButtonProps: {
|
|
4484
4484
|
disabled: !g
|
|
4485
4485
|
},
|
|
4486
4486
|
okText: u("questionContentEditor.actions.confirmCreateAnswerGroup"),
|
|
4487
|
-
onCancel:
|
|
4488
|
-
onOk:
|
|
4487
|
+
onCancel: pe,
|
|
4488
|
+
onOk: me,
|
|
4489
4489
|
open: !!m,
|
|
4490
4490
|
title: u("questionContentEditor.blank.createGroupTitle"),
|
|
4491
4491
|
children: (0, t.jsxs)("div", {
|
|
@@ -4497,7 +4497,7 @@ function La(_ref62) {
|
|
|
4497
4497
|
onChange: function onChange(e) {
|
|
4498
4498
|
return _(String(e.target.value));
|
|
4499
4499
|
},
|
|
4500
|
-
options:
|
|
4500
|
+
options: _e(),
|
|
4501
4501
|
value: g
|
|
4502
4502
|
})]
|
|
4503
4503
|
})
|
|
@@ -4571,7 +4571,7 @@ function Ha(e) {
|
|
|
4571
4571
|
return Array.isArray(e);
|
|
4572
4572
|
}
|
|
4573
4573
|
function Ua(e, t) {
|
|
4574
|
-
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] :
|
|
4574
|
+
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Xe;
|
|
4575
4575
|
var r = e.columns.reduce(function (e, t, n) {
|
|
4576
4576
|
return t.items.forEach(function (t, r) {
|
|
4577
4577
|
return e.set(t.itemId, {
|
|
@@ -4741,26 +4741,26 @@ function Qa(_ref77) {
|
|
|
4741
4741
|
function ee(e, t) {
|
|
4742
4742
|
S(cr(g, e, t));
|
|
4743
4743
|
}
|
|
4744
|
-
function
|
|
4744
|
+
function te(e, t) {
|
|
4745
4745
|
S(C(C({}, g), {}, {
|
|
4746
4746
|
answers: lr(g.answers, e, t)
|
|
4747
4747
|
}));
|
|
4748
4748
|
}
|
|
4749
|
-
function
|
|
4749
|
+
function w(t, n, r) {
|
|
4750
4750
|
if (e || !i) return;
|
|
4751
4751
|
var a = {
|
|
4752
4752
|
columnIndex: t,
|
|
4753
4753
|
itemId: n,
|
|
4754
4754
|
label: r
|
|
4755
4755
|
},
|
|
4756
|
-
o = u ?
|
|
4756
|
+
o = u ? Ze(u, a) : null;
|
|
4757
4757
|
if (o) {
|
|
4758
|
-
|
|
4758
|
+
te(o.fromItemId, o.toItemId), d(null);
|
|
4759
4759
|
return;
|
|
4760
4760
|
}
|
|
4761
4761
|
d(a);
|
|
4762
4762
|
}
|
|
4763
|
-
function
|
|
4763
|
+
function ne() {
|
|
4764
4764
|
return i ? (0, t.jsx)("div", {
|
|
4765
4765
|
"aria-live": "polite",
|
|
4766
4766
|
className: "rounded-md border border-blue-100 bg-blue-50 px-3 py-2 text-sm text-blue-700",
|
|
@@ -4769,7 +4769,7 @@ function Qa(_ref77) {
|
|
|
4769
4769
|
}) : l("questionContentEditor.lineConnect.connectHintIdle")
|
|
4770
4770
|
}) : null;
|
|
4771
4771
|
}
|
|
4772
|
-
function
|
|
4772
|
+
function re(n, r) {
|
|
4773
4773
|
return (0, t.jsxs)("section", {
|
|
4774
4774
|
className: L.column,
|
|
4775
4775
|
children: [(0, t.jsxs)("div", {
|
|
@@ -4812,7 +4812,7 @@ function Qa(_ref77) {
|
|
|
4812
4812
|
}), (0, t.jsx)("div", {
|
|
4813
4813
|
className: "flex min-w-0 flex-col gap-2",
|
|
4814
4814
|
children: n.items.map(function (e, t) {
|
|
4815
|
-
return
|
|
4815
|
+
return ie(n, r, e, t);
|
|
4816
4816
|
})
|
|
4817
4817
|
}), (0, t.jsx)(M, {
|
|
4818
4818
|
"aria-label": l("questionContentEditor.lineConnect.addItem", {
|
|
@@ -4830,7 +4830,7 @@ function Qa(_ref77) {
|
|
|
4830
4830
|
})]
|
|
4831
4831
|
}, n.columnId);
|
|
4832
4832
|
}
|
|
4833
|
-
function
|
|
4833
|
+
function ie(n, r, a, o) {
|
|
4834
4834
|
var c = Qt(n.labelStyle, o),
|
|
4835
4835
|
d = c ? "".concat(c, ". ").concat(a.content.text) : a.content.text,
|
|
4836
4836
|
f = (u == null ? void 0 : u.itemId) === a.itemId,
|
|
@@ -4842,7 +4842,7 @@ function Qa(_ref77) {
|
|
|
4842
4842
|
className: ro(f, h),
|
|
4843
4843
|
"data-testid": "line-connect-item-".concat(a.itemId),
|
|
4844
4844
|
style: _,
|
|
4845
|
-
children: [
|
|
4845
|
+
children: [ae(r, a, o, c, d, p), (0, t.jsx)(F, {
|
|
4846
4846
|
controls: s,
|
|
4847
4847
|
disabled: e,
|
|
4848
4848
|
label: l("questionContentEditor.lineConnect.itemAria", {
|
|
@@ -4869,17 +4869,17 @@ function Qa(_ref77) {
|
|
|
4869
4869
|
return S(sr(g, a.itemId));
|
|
4870
4870
|
},
|
|
4871
4871
|
size: "small"
|
|
4872
|
-
}),
|
|
4872
|
+
}), oe(r, a, o, d, f, m)]
|
|
4873
4873
|
}, a.itemId);
|
|
4874
4874
|
}
|
|
4875
|
-
function
|
|
4875
|
+
function ae(n, r, a, o, s, c) {
|
|
4876
4876
|
return i ? (0, t.jsx)("button", {
|
|
4877
|
-
"aria-label":
|
|
4877
|
+
"aria-label": se("incoming", n, a, r.content.text),
|
|
4878
4878
|
"aria-pressed": c,
|
|
4879
4879
|
className: Ba(R.marker, R["incoming-marker"], c && R["connect-button-connected"]),
|
|
4880
4880
|
disabled: e,
|
|
4881
4881
|
onClick: function onClick() {
|
|
4882
|
-
return
|
|
4882
|
+
return w(n, r.itemId, s);
|
|
4883
4883
|
},
|
|
4884
4884
|
ref: x(r.itemId, "incoming"),
|
|
4885
4885
|
title: u ? l("questionContentEditor.lineConnect.connectHintActive", {
|
|
@@ -4896,15 +4896,15 @@ function Qa(_ref77) {
|
|
|
4896
4896
|
children: o
|
|
4897
4897
|
});
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function oe(n, r, a, o, s, c) {
|
|
4900
4900
|
return i ? (0, t.jsx)("button", {
|
|
4901
|
-
"aria-label":
|
|
4901
|
+
"aria-label": se("outgoing", n, a, r.content.text),
|
|
4902
4902
|
"aria-pressed": s,
|
|
4903
4903
|
className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
|
|
4904
4904
|
disabled: e,
|
|
4905
4905
|
ref: x(r.itemId, "outgoing"),
|
|
4906
4906
|
onClick: function onClick() {
|
|
4907
|
-
return
|
|
4907
|
+
return w(n, r.itemId, o);
|
|
4908
4908
|
},
|
|
4909
4909
|
title: u ? l("questionContentEditor.lineConnect.connectHintActive", {
|
|
4910
4910
|
label: u.label
|
|
@@ -4916,7 +4916,7 @@ function Qa(_ref77) {
|
|
|
4916
4916
|
})
|
|
4917
4917
|
}) : null;
|
|
4918
4918
|
}
|
|
4919
|
-
function
|
|
4919
|
+
function se(e, t, n, r) {
|
|
4920
4920
|
return l("questionContentEditor.lineConnect.".concat(e === "incoming" ? "connectToAria" : "connectFromAria"), {
|
|
4921
4921
|
column: t + 1,
|
|
4922
4922
|
content: r,
|
|
@@ -4925,7 +4925,7 @@ function Qa(_ref77) {
|
|
|
4925
4925
|
}
|
|
4926
4926
|
return (0, t.jsxs)("div", {
|
|
4927
4927
|
className: "flex min-w-0 flex-col gap-4",
|
|
4928
|
-
children: [
|
|
4928
|
+
children: [ne(), (0, t.jsxs)("div", {
|
|
4929
4929
|
className: L.board,
|
|
4930
4930
|
"data-testid": "line-connect-editor-board",
|
|
4931
4931
|
ref: m,
|
|
@@ -4951,7 +4951,7 @@ function Qa(_ref77) {
|
|
|
4951
4951
|
}) : null, (0, t.jsx)("div", {
|
|
4952
4952
|
className: L.columns,
|
|
4953
4953
|
style: _,
|
|
4954
|
-
children: g.columns.map(
|
|
4954
|
+
children: g.columns.map(re)
|
|
4955
4955
|
})]
|
|
4956
4956
|
}), (0, t.jsx)(M, {
|
|
4957
4957
|
"aria-label": l("questionContentEditor.lineConnect.addColumn"),
|
|
@@ -5023,7 +5023,7 @@ function oo(_ref82) {
|
|
|
5023
5023
|
gridTemplateColumns: "repeat(".concat(g.columns.length, ", minmax(16rem, 1fr))")
|
|
5024
5024
|
},
|
|
5025
5025
|
v = (0, n.useMemo)(function () {
|
|
5026
|
-
return i ? Ua(g, g.answers,
|
|
5026
|
+
return i ? Ua(g, g.answers, ct) : [];
|
|
5027
5027
|
}, [i, g]),
|
|
5028
5028
|
y = (0, n.useMemo)(function () {
|
|
5029
5029
|
return JSON.stringify({
|
|
@@ -5094,14 +5094,14 @@ function oo(_ref82) {
|
|
|
5094
5094
|
function ee(e, t) {
|
|
5095
5095
|
S(hr(g, e, t));
|
|
5096
5096
|
}
|
|
5097
|
-
function
|
|
5097
|
+
function te(t, n, r) {
|
|
5098
5098
|
if (e || !i) return;
|
|
5099
5099
|
var a = {
|
|
5100
5100
|
columnIndex: t,
|
|
5101
5101
|
itemId: n,
|
|
5102
5102
|
label: r
|
|
5103
5103
|
},
|
|
5104
|
-
o = u ?
|
|
5104
|
+
o = u ? lt(u, a) : null;
|
|
5105
5105
|
if (o) {
|
|
5106
5106
|
S(C(C({}, g), {}, {
|
|
5107
5107
|
answers: gr(g.answers, o.fromItemId, o.toItemId)
|
|
@@ -5110,7 +5110,7 @@ function oo(_ref82) {
|
|
|
5110
5110
|
}
|
|
5111
5111
|
d(a);
|
|
5112
5112
|
}
|
|
5113
|
-
function
|
|
5113
|
+
function w(n, r) {
|
|
5114
5114
|
return (0, t.jsxs)("section", {
|
|
5115
5115
|
className: z.column,
|
|
5116
5116
|
children: [(0, t.jsx)("div", {
|
|
@@ -5134,7 +5134,7 @@ function oo(_ref82) {
|
|
|
5134
5134
|
}), (0, t.jsx)("div", {
|
|
5135
5135
|
className: z.items,
|
|
5136
5136
|
children: n.items.map(function (e, t) {
|
|
5137
|
-
return
|
|
5137
|
+
return ne(n, r, e, t);
|
|
5138
5138
|
})
|
|
5139
5139
|
}), (0, t.jsx)(M, {
|
|
5140
5140
|
"aria-label": l("questionContentEditor.matching.addItem", {
|
|
@@ -5150,7 +5150,7 @@ function oo(_ref82) {
|
|
|
5150
5150
|
})]
|
|
5151
5151
|
}, n.columnId);
|
|
5152
5152
|
}
|
|
5153
|
-
function
|
|
5153
|
+
function ne(n, r, a, o) {
|
|
5154
5154
|
var c = $t(n.labelStyle, o),
|
|
5155
5155
|
d = (u == null ? void 0 : u.itemId) === a.itemId,
|
|
5156
5156
|
f = so(g, a.itemId),
|
|
@@ -5162,7 +5162,7 @@ function oo(_ref82) {
|
|
|
5162
5162
|
className: Ba(z.item, d ? z.selected : "", m ? z.matched : ""),
|
|
5163
5163
|
"data-testid": "matching-editor-item-".concat(a.itemId),
|
|
5164
5164
|
style: _,
|
|
5165
|
-
children: [
|
|
5165
|
+
children: [re(r, a, o, c, h, f), (0, t.jsx)(F, {
|
|
5166
5166
|
controls: s,
|
|
5167
5167
|
disabled: e,
|
|
5168
5168
|
label: l("questionContentEditor.matching.itemAria", {
|
|
@@ -5189,17 +5189,17 @@ function oo(_ref82) {
|
|
|
5189
5189
|
return S(mr(g, a.itemId));
|
|
5190
5190
|
},
|
|
5191
5191
|
size: "small"
|
|
5192
|
-
}),
|
|
5192
|
+
}), ie(r, a, o, h, d, p)]
|
|
5193
5193
|
}, a.itemId);
|
|
5194
5194
|
}
|
|
5195
|
-
function
|
|
5195
|
+
function re(n, r, a, o, s, c) {
|
|
5196
5196
|
return i ? (0, t.jsx)("button", {
|
|
5197
|
-
"aria-label":
|
|
5197
|
+
"aria-label": ae("incoming", n, a, r.content.text),
|
|
5198
5198
|
"aria-pressed": c,
|
|
5199
5199
|
className: Ba(z.marker, R["incoming-marker"], c && R["connect-button-connected"]),
|
|
5200
5200
|
disabled: e,
|
|
5201
5201
|
onClick: function onClick() {
|
|
5202
|
-
return
|
|
5202
|
+
return te(n, r.itemId, s);
|
|
5203
5203
|
},
|
|
5204
5204
|
ref: x(r.itemId, "incoming"),
|
|
5205
5205
|
title: u ? l("questionContentEditor.matching.connectHintActive", {
|
|
@@ -5215,14 +5215,14 @@ function oo(_ref82) {
|
|
|
5215
5215
|
children: o
|
|
5216
5216
|
}) : (0, t.jsx)("span", {});
|
|
5217
5217
|
}
|
|
5218
|
-
function
|
|
5218
|
+
function ie(n, r, a, o, s, c) {
|
|
5219
5219
|
return i ? (0, t.jsx)("button", {
|
|
5220
|
-
"aria-label":
|
|
5220
|
+
"aria-label": ae("outgoing", n, a, r.content.text),
|
|
5221
5221
|
"aria-pressed": s,
|
|
5222
5222
|
className: Ba(R["connect-handle"], R["connect-handle-outgoing"], s && R["connect-button-selected"], c && R["connect-button-connected"]),
|
|
5223
5223
|
disabled: e,
|
|
5224
5224
|
onClick: function onClick() {
|
|
5225
|
-
return
|
|
5225
|
+
return te(n, r.itemId, o);
|
|
5226
5226
|
},
|
|
5227
5227
|
ref: x(r.itemId, "outgoing"),
|
|
5228
5228
|
title: u ? l("questionContentEditor.matching.connectHintActive", {
|
|
@@ -5235,7 +5235,7 @@ function oo(_ref82) {
|
|
|
5235
5235
|
})
|
|
5236
5236
|
}) : null;
|
|
5237
5237
|
}
|
|
5238
|
-
function
|
|
5238
|
+
function ae(e, t, n, r) {
|
|
5239
5239
|
return l("questionContentEditor.matching.".concat(e === "incoming" ? "connectToAria" : "connectFromAria"), {
|
|
5240
5240
|
column: t + 1,
|
|
5241
5241
|
content: r,
|
|
@@ -5277,7 +5277,7 @@ function oo(_ref82) {
|
|
|
5277
5277
|
className: z.columns,
|
|
5278
5278
|
style: _,
|
|
5279
5279
|
children: g.columns.map(function (e, t) {
|
|
5280
|
-
return
|
|
5280
|
+
return w(e, t);
|
|
5281
5281
|
})
|
|
5282
5282
|
})]
|
|
5283
5283
|
})]
|
|
@@ -5703,13 +5703,13 @@ function go(_ref91) {
|
|
|
5703
5703
|
c = _ref91.translator;
|
|
5704
5704
|
var l = (0, n.useRef)(null),
|
|
5705
5705
|
u = c.t,
|
|
5706
|
-
d =
|
|
5706
|
+
d = bt(i.content.json);
|
|
5707
5707
|
function f(e) {
|
|
5708
5708
|
a(gn(e, e.content, r));
|
|
5709
5709
|
}
|
|
5710
5710
|
function p() {
|
|
5711
5711
|
var e;
|
|
5712
|
-
var t =
|
|
5712
|
+
var t = xt();
|
|
5713
5713
|
(e = l.current) == null || e.runCommand({
|
|
5714
5714
|
command: "mark.textMarker",
|
|
5715
5715
|
payload: t
|
|
@@ -6335,7 +6335,7 @@ function Bo(_ref100) {
|
|
|
6335
6335
|
y = Io(_ ? v.children : []);
|
|
6336
6336
|
if (!_) return (0, t.jsxs)("section", {
|
|
6337
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",
|
|
6338
|
-
children: [
|
|
6338
|
+
children: [te(null), w((0, t.jsx)(ba, {
|
|
6339
6339
|
description: p("questionContentEditor.subquestion.missingTemplate")
|
|
6340
6340
|
}))]
|
|
6341
6341
|
});
|
|
@@ -6368,7 +6368,7 @@ function Bo(_ref100) {
|
|
|
6368
6368
|
}
|
|
6369
6369
|
return (0, t.jsxs)("section", {
|
|
6370
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",
|
|
6371
|
-
children: [
|
|
6371
|
+
children: [te(b), w(Uo(i, v, o, l, _, f)), v.children.length === 0 ? null : (0, t.jsx)("div", {
|
|
6372
6372
|
className: "ml-3 flex min-w-0 flex-col pl-3 sm:ml-4 sm:pl-4",
|
|
6373
6373
|
children: y.map(function (e, n) {
|
|
6374
6374
|
return (0, t.jsx)(Bo, {
|
|
@@ -6394,7 +6394,7 @@ function Bo(_ref100) {
|
|
|
6394
6394
|
})
|
|
6395
6395
|
})]
|
|
6396
6396
|
});
|
|
6397
|
-
function
|
|
6397
|
+
function te(r) {
|
|
6398
6398
|
return (0, t.jsxs)("div", {
|
|
6399
6399
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-3",
|
|
6400
6400
|
children: [(0, t.jsx)("span", {
|
|
@@ -6445,7 +6445,7 @@ function Bo(_ref100) {
|
|
|
6445
6445
|
})]
|
|
6446
6446
|
});
|
|
6447
6447
|
}
|
|
6448
|
-
function
|
|
6448
|
+
function w(e) {
|
|
6449
6449
|
return (0, t.jsx)(Ao, {
|
|
6450
6450
|
number: Do(m, u) ? h : null,
|
|
6451
6451
|
children: e
|
|
@@ -6585,7 +6585,7 @@ function qo(_ref102) {
|
|
|
6585
6585
|
f = Zi(o, l),
|
|
6586
6586
|
p = (0, n.useMemo)(function () {
|
|
6587
6587
|
return {
|
|
6588
|
-
plugins: [
|
|
6588
|
+
plugins: [Ot, ra],
|
|
6589
6589
|
uploadImage: s
|
|
6590
6590
|
};
|
|
6591
6591
|
}, [s]);
|
|
@@ -6687,7 +6687,7 @@ function Xo(e, t) {
|
|
|
6687
6687
|
}),
|
|
6688
6688
|
extras: e.extras.map(function (e) {
|
|
6689
6689
|
return {
|
|
6690
|
-
name: ls(e,
|
|
6690
|
+
name: ls(e, _e(e.type), ve(e.type), t),
|
|
6691
6691
|
type: e.type
|
|
6692
6692
|
};
|
|
6693
6693
|
}),
|
|
@@ -6808,7 +6808,7 @@ function os(e) {
|
|
|
6808
6808
|
function ss(e, t) {
|
|
6809
6809
|
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? {
|
|
6810
6810
|
config: {},
|
|
6811
|
-
name: ls(e,
|
|
6811
|
+
name: ls(e, T(e.type), E(e.type), t),
|
|
6812
6812
|
type: e.type
|
|
6813
6813
|
} : cs(e, t);
|
|
6814
6814
|
}
|
|
@@ -6820,7 +6820,7 @@ function cs(e, t) {
|
|
|
6820
6820
|
allowCandidateReuse: !!e.config.allowCandidateReuse,
|
|
6821
6821
|
candidateMode: e.config.candidateMode
|
|
6822
6822
|
},
|
|
6823
|
-
name: ls(e,
|
|
6823
|
+
name: ls(e, T("inlineFill"), E("inlineFill"), t),
|
|
6824
6824
|
type: "inlineFill"
|
|
6825
6825
|
};
|
|
6826
6826
|
case "wordBuilder":
|
|
@@ -6828,7 +6828,7 @@ function cs(e, t) {
|
|
|
6828
6828
|
config: {
|
|
6829
6829
|
builderMode: e.config.builderMode
|
|
6830
6830
|
},
|
|
6831
|
-
name: ls(e,
|
|
6831
|
+
name: ls(e, T("wordBuilder"), E("wordBuilder"), t),
|
|
6832
6832
|
type: "wordBuilder"
|
|
6833
6833
|
};
|
|
6834
6834
|
case "judgement":
|
|
@@ -6836,7 +6836,7 @@ function cs(e, t) {
|
|
|
6836
6836
|
config: {
|
|
6837
6837
|
judgeAnswerMode: e.config.judgeAnswerMode
|
|
6838
6838
|
},
|
|
6839
|
-
name: ls(e,
|
|
6839
|
+
name: ls(e, T("judgement"), E("judgement"), t),
|
|
6840
6840
|
type: "judgement"
|
|
6841
6841
|
};
|
|
6842
6842
|
case "choice":
|
|
@@ -6846,7 +6846,7 @@ function cs(e, t) {
|
|
|
6846
6846
|
renderer: e.config.renderer,
|
|
6847
6847
|
selectionType: e.config.selectionType
|
|
6848
6848
|
},
|
|
6849
|
-
name: ls(e,
|
|
6849
|
+
name: ls(e, T("choice"), E("choice"), t),
|
|
6850
6850
|
type: "choice"
|
|
6851
6851
|
};
|
|
6852
6852
|
case "lineConnect":
|
|
@@ -6856,7 +6856,7 @@ function cs(e, t) {
|
|
|
6856
6856
|
return C({}, e);
|
|
6857
6857
|
})
|
|
6858
6858
|
},
|
|
6859
|
-
name: ls(e,
|
|
6859
|
+
name: ls(e, T("lineConnect"), E("lineConnect"), t),
|
|
6860
6860
|
type: "lineConnect"
|
|
6861
6861
|
};
|
|
6862
6862
|
case "matching":
|
|
@@ -6866,7 +6866,7 @@ function cs(e, t) {
|
|
|
6866
6866
|
return C({}, e);
|
|
6867
6867
|
})
|
|
6868
6868
|
},
|
|
6869
|
-
name: ls(e,
|
|
6869
|
+
name: ls(e, T("matching"), E("matching"), t),
|
|
6870
6870
|
type: "matching"
|
|
6871
6871
|
};
|
|
6872
6872
|
}
|
|
@@ -7277,23 +7277,23 @@ function Js(e, t, n) {
|
|
|
7277
7277
|
});
|
|
7278
7278
|
}
|
|
7279
7279
|
function Ys(e, t, n) {
|
|
7280
|
-
return
|
|
7280
|
+
return Ie(e, t, n);
|
|
7281
7281
|
}
|
|
7282
7282
|
function Xs(e, t) {
|
|
7283
7283
|
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "single";
|
|
7284
7284
|
return {
|
|
7285
7285
|
kind: "option",
|
|
7286
|
-
optionIds:
|
|
7286
|
+
optionIds: Ie((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
|
|
7287
7287
|
};
|
|
7288
7288
|
}
|
|
7289
7289
|
function Zs(e, t, n) {
|
|
7290
|
-
return
|
|
7290
|
+
return rt(e, t, n);
|
|
7291
7291
|
}
|
|
7292
7292
|
function Qs(e, t, n) {
|
|
7293
|
-
return
|
|
7293
|
+
return ft(e, t, n);
|
|
7294
7294
|
}
|
|
7295
7295
|
function $s(e, t, n) {
|
|
7296
|
-
return
|
|
7296
|
+
return qe(e, t, n);
|
|
7297
7297
|
}
|
|
7298
7298
|
function ec(e, t, n, r) {
|
|
7299
7299
|
return Mr(e, t.sortOptions, n, r);
|
|
@@ -7376,7 +7376,7 @@ function dc() {
|
|
|
7376
7376
|
};
|
|
7377
7377
|
}
|
|
7378
7378
|
function fc(e, t) {
|
|
7379
|
-
return
|
|
7379
|
+
return Ke(e, t.categories, t.items);
|
|
7380
7380
|
}
|
|
7381
7381
|
function pc(e) {
|
|
7382
7382
|
return e.type === "ordering" ? {
|
|
@@ -7705,7 +7705,7 @@ function G(_ref107) {
|
|
|
7705
7705
|
var n = _ref107.className,
|
|
7706
7706
|
r = _ref107.content;
|
|
7707
7707
|
var i = r.html || (0, e.serializeRichTextEditorHtml)(Jt(r), {
|
|
7708
|
-
plugins: [
|
|
7708
|
+
plugins: [Ot]
|
|
7709
7709
|
});
|
|
7710
7710
|
return (0, t.jsx)("div", {
|
|
7711
7711
|
className: n ? "".concat(W["rich-content"], " ").concat(n) : W["rich-content"],
|
|
@@ -7958,7 +7958,7 @@ function Lc(e, t, n, r) {
|
|
|
7958
7958
|
if (!(!r || !s)) return o ? s === o ? "correct" : "incorrect" : "unanswered";
|
|
7959
7959
|
}
|
|
7960
7960
|
function Rc(e, t) {
|
|
7961
|
-
return
|
|
7961
|
+
return Ke(e, t.categories, t.items);
|
|
7962
7962
|
}
|
|
7963
7963
|
function zc(_ref115) {
|
|
7964
7964
|
var e = _ref115.className,
|
|
@@ -8417,7 +8417,7 @@ function ol(e) {
|
|
|
8417
8417
|
kind: "detailed",
|
|
8418
8418
|
contents: ((s = e.answers[r.itemId]) == null ? [] : s).map(function (e) {
|
|
8419
8419
|
var t = n.get(e);
|
|
8420
|
-
return t &&
|
|
8420
|
+
return t && Xe(a, t.columnIndex) ? t.item : void 0;
|
|
8421
8421
|
}).filter(function (e) {
|
|
8422
8422
|
return !!e;
|
|
8423
8423
|
}).map(function (e, n) {
|
|
@@ -8530,7 +8530,7 @@ function cl(_ref126) {
|
|
|
8530
8530
|
}
|
|
8531
8531
|
function x(t, n) {
|
|
8532
8532
|
if (e) return;
|
|
8533
|
-
var r = l ?
|
|
8533
|
+
var r = l ? Ze(l, {
|
|
8534
8534
|
columnIndex: t,
|
|
8535
8535
|
itemId: n
|
|
8536
8536
|
}) : null;
|
|
@@ -8662,7 +8662,7 @@ function dl(_ref131) {
|
|
|
8662
8662
|
f = fl(r, d.connections);
|
|
8663
8663
|
function p(t, n) {
|
|
8664
8664
|
if (e) return;
|
|
8665
|
-
var r = l ?
|
|
8665
|
+
var r = l ? lt(l, {
|
|
8666
8666
|
columnIndex: t,
|
|
8667
8667
|
itemId: n
|
|
8668
8668
|
}) : null;
|
|
@@ -9106,7 +9106,7 @@ function Cl(_ref140) {
|
|
|
9106
9106
|
}, n);
|
|
9107
9107
|
}
|
|
9108
9108
|
function u(e, r) {
|
|
9109
|
-
var i =
|
|
9109
|
+
var i = St(e);
|
|
9110
9110
|
if (!i) return (0, t.jsx)(n.Fragment, {
|
|
9111
9111
|
children: e.text
|
|
9112
9112
|
}, r);
|
|
@@ -9156,7 +9156,7 @@ function El(_ref141) {
|
|
|
9156
9156
|
var e = _ref141.item,
|
|
9157
9157
|
n = _ref141.messages,
|
|
9158
9158
|
r = _ref141.showAnswer;
|
|
9159
|
-
var i =
|
|
9159
|
+
var i = bt(e.content.json).filter(function (t) {
|
|
9160
9160
|
return e.answers.includes(t.markerId);
|
|
9161
9161
|
}).map(function (e) {
|
|
9162
9162
|
return e.text;
|
|
@@ -9201,30 +9201,17 @@ function Dl(_ref142) {
|
|
|
9201
9201
|
selectedMarkers: c.selectedMarkers
|
|
9202
9202
|
});
|
|
9203
9203
|
}
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
});
|
|
9214
|
-
}
|
|
9215
|
-
function Al(_ref144) {
|
|
9216
|
-
var e = _ref144.disabled,
|
|
9217
|
-
n = _ref144.locale,
|
|
9218
|
-
r = _ref144.label,
|
|
9219
|
-
i = _ref144.messages,
|
|
9220
|
-
a = _ref144.onChange,
|
|
9221
|
-
o = _ref144.response,
|
|
9222
|
-
s = _ref144.responseIndex,
|
|
9223
|
-
c = _ref144.uploadImage;
|
|
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;
|
|
9224
9213
|
var l = Ks(o, s);
|
|
9225
|
-
return e ? A(l.content) ? (0, t.jsx)(
|
|
9226
|
-
label: i.textResponsePlaceholder
|
|
9227
|
-
}) : (0, t.jsx)(G, {
|
|
9214
|
+
return e ? A(l.content) ? null : (0, t.jsx)(G, {
|
|
9228
9215
|
content: l.content
|
|
9229
9216
|
}) : (0, t.jsx)(Da, {
|
|
9230
9217
|
ariaLabel: r,
|
|
@@ -9241,7 +9228,7 @@ function Al(_ref144) {
|
|
|
9241
9228
|
value: l.content
|
|
9242
9229
|
});
|
|
9243
9230
|
}
|
|
9244
|
-
function
|
|
9231
|
+
function kl(e, n) {
|
|
9245
9232
|
return e.blanks.reduce(function (r, i) {
|
|
9246
9233
|
var a;
|
|
9247
9234
|
var o = (a = e.answers[i]) == null ? void 0 : a.trim();
|
|
@@ -9254,22 +9241,22 @@ function jl(e, n) {
|
|
|
9254
9241
|
}]) : r;
|
|
9255
9242
|
}, []);
|
|
9256
9243
|
}
|
|
9257
|
-
var
|
|
9244
|
+
var Al = {
|
|
9258
9245
|
"word-builder-blank": "_word-builder-blank_ftw6q_1",
|
|
9259
9246
|
"word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
|
|
9260
9247
|
};
|
|
9261
|
-
function
|
|
9262
|
-
var e =
|
|
9263
|
-
n =
|
|
9264
|
-
r =
|
|
9265
|
-
i =
|
|
9266
|
-
a =
|
|
9267
|
-
o =
|
|
9268
|
-
s =
|
|
9269
|
-
c =
|
|
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;
|
|
9270
9257
|
var l = _n(r, !0, n),
|
|
9271
9258
|
u = zs(o, s, l.blanks),
|
|
9272
|
-
d =
|
|
9259
|
+
d = kl(l, i.blankLabel);
|
|
9273
9260
|
function f(e, t) {
|
|
9274
9261
|
a(C(C({}, u), {}, {
|
|
9275
9262
|
answers: C(C({}, u.answers), {}, _defineProperty({}, e, t))
|
|
@@ -9300,13 +9287,13 @@ function Nl(_ref145) {
|
|
|
9300
9287
|
className: U["fill-text"],
|
|
9301
9288
|
children: [(0, t.jsx)(zc, {
|
|
9302
9289
|
content: l.content,
|
|
9303
|
-
renderBlank: function renderBlank(
|
|
9304
|
-
var n =
|
|
9305
|
-
r =
|
|
9306
|
-
a =
|
|
9290
|
+
renderBlank: function renderBlank(_ref145) {
|
|
9291
|
+
var n = _ref145.blankId,
|
|
9292
|
+
r = _ref145.index,
|
|
9293
|
+
a = _ref145.label;
|
|
9307
9294
|
var o, s;
|
|
9308
9295
|
var c = (o = u.answers[n]) == null ? "" : o,
|
|
9309
|
-
l =
|
|
9296
|
+
l = Ml({
|
|
9310
9297
|
answers: c,
|
|
9311
9298
|
blankLabel: i.blankLabel,
|
|
9312
9299
|
canClear: !e && !!c.trim(),
|
|
@@ -9315,7 +9302,7 @@ function Nl(_ref145) {
|
|
|
9315
9302
|
});
|
|
9316
9303
|
return (0, t.jsx)("button", {
|
|
9317
9304
|
"aria-label": l,
|
|
9318
|
-
className:
|
|
9305
|
+
className: Al["word-builder-blank"],
|
|
9319
9306
|
disabled: e,
|
|
9320
9307
|
onClick: function onClick() {
|
|
9321
9308
|
return p(n);
|
|
@@ -9332,7 +9319,7 @@ function Nl(_ref145) {
|
|
|
9332
9319
|
});
|
|
9333
9320
|
}
|
|
9334
9321
|
}), (0, t.jsx)("div", {
|
|
9335
|
-
className:
|
|
9322
|
+
className: Al["word-builder-candidate-list"],
|
|
9336
9323
|
children: l.candidateOptions.map(function (n, r) {
|
|
9337
9324
|
return (0, t.jsx)("button", {
|
|
9338
9325
|
disabled: e,
|
|
@@ -9353,30 +9340,30 @@ function Nl(_ref145) {
|
|
|
9353
9340
|
}) : null]
|
|
9354
9341
|
});
|
|
9355
9342
|
}
|
|
9356
|
-
function
|
|
9357
|
-
var e =
|
|
9358
|
-
t =
|
|
9359
|
-
n =
|
|
9360
|
-
r =
|
|
9361
|
-
i =
|
|
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;
|
|
9362
9349
|
var a = i || "".concat(t).concat(r + 1);
|
|
9363
9350
|
return !n || !e.trim() ? a : t === "\u7A7A" ? "".concat(a, "\uFF0C\u70B9\u51FB\u6E05\u7A7A") : "".concat(a, ", click to clear");
|
|
9364
9351
|
}
|
|
9365
|
-
function
|
|
9366
|
-
var e =
|
|
9367
|
-
n =
|
|
9368
|
-
r =
|
|
9369
|
-
i =
|
|
9370
|
-
a =
|
|
9371
|
-
o =
|
|
9372
|
-
s =
|
|
9373
|
-
c =
|
|
9374
|
-
l =
|
|
9375
|
-
u =
|
|
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;
|
|
9376
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));
|
|
9377
9364
|
return n.type === "richText" ? (0, t.jsx)(G, {
|
|
9378
9365
|
content: r.content
|
|
9379
|
-
}) : n.type === "textResponse" ? (0, t.jsx)(
|
|
9366
|
+
}) : n.type === "textResponse" ? (0, t.jsx)(Ol, {
|
|
9380
9367
|
disabled: e,
|
|
9381
9368
|
label: n.name,
|
|
9382
9369
|
locale: i,
|
|
@@ -9409,7 +9396,7 @@ function Fl(_ref148) {
|
|
|
9409
9396
|
response: s,
|
|
9410
9397
|
responseIndex: c,
|
|
9411
9398
|
showAnswer: l
|
|
9412
|
-
}) :
|
|
9399
|
+
}) : Pl({
|
|
9413
9400
|
disabled: e,
|
|
9414
9401
|
element: n,
|
|
9415
9402
|
item: r,
|
|
@@ -9422,15 +9409,15 @@ function Fl(_ref148) {
|
|
|
9422
9409
|
uploadImage: u
|
|
9423
9410
|
});
|
|
9424
9411
|
}
|
|
9425
|
-
function
|
|
9426
|
-
var e =
|
|
9427
|
-
n =
|
|
9428
|
-
r =
|
|
9429
|
-
i =
|
|
9430
|
-
a =
|
|
9431
|
-
o =
|
|
9432
|
-
s =
|
|
9433
|
-
c =
|
|
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;
|
|
9434
9421
|
switch (n.type) {
|
|
9435
9422
|
case "choice":
|
|
9436
9423
|
return (0, t.jsx)(yl, {
|
|
@@ -9465,7 +9452,7 @@ function Il(_ref149) {
|
|
|
9465
9452
|
showAnswer: c
|
|
9466
9453
|
});
|
|
9467
9454
|
case "wordBuilder":
|
|
9468
|
-
return (0, t.jsx)(
|
|
9455
|
+
return (0, t.jsx)(jl, {
|
|
9469
9456
|
disabled: e,
|
|
9470
9457
|
element: n,
|
|
9471
9458
|
item: r,
|
|
@@ -9508,14 +9495,14 @@ function Il(_ref149) {
|
|
|
9508
9495
|
});
|
|
9509
9496
|
}
|
|
9510
9497
|
}
|
|
9511
|
-
var
|
|
9512
|
-
function
|
|
9498
|
+
var Fl = ["locale"];
|
|
9499
|
+
function Il(e) {
|
|
9513
9500
|
var _e$locale = e.locale,
|
|
9514
9501
|
n = _e$locale === void 0 ? "zh-CN" : _e$locale,
|
|
9515
|
-
r = ma(e,
|
|
9502
|
+
r = ma(e, Fl),
|
|
9516
9503
|
i = us(r.value, r.questionTypeTemplates),
|
|
9517
9504
|
a = hs(r.response, i);
|
|
9518
|
-
return (0, t.jsx)(
|
|
9505
|
+
return (0, t.jsx)(Ll, C(C({}, r), {}, {
|
|
9519
9506
|
childIndexPath: [],
|
|
9520
9507
|
locale: n,
|
|
9521
9508
|
messages: yc(n),
|
|
@@ -9526,24 +9513,24 @@ function Rl(e) {
|
|
|
9526
9513
|
value: i
|
|
9527
9514
|
}));
|
|
9528
9515
|
}
|
|
9529
|
-
function
|
|
9530
|
-
var e =
|
|
9531
|
-
n =
|
|
9532
|
-
|
|
9533
|
-
r =
|
|
9534
|
-
|
|
9535
|
-
i =
|
|
9536
|
-
a =
|
|
9537
|
-
o =
|
|
9538
|
-
s =
|
|
9539
|
-
c =
|
|
9540
|
-
|
|
9541
|
-
l =
|
|
9542
|
-
|
|
9543
|
-
u =
|
|
9544
|
-
d =
|
|
9545
|
-
f =
|
|
9546
|
-
p =
|
|
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;
|
|
9547
9534
|
var m = Zi(d, p);
|
|
9548
9535
|
if (!m) return (0, t.jsx)("div", {
|
|
9549
9536
|
className: H(U.root, n),
|
|
@@ -9552,7 +9539,7 @@ function zl(_ref150) {
|
|
|
9552
9539
|
children: a.missingQuestionTypeTemplate
|
|
9553
9540
|
})
|
|
9554
9541
|
});
|
|
9555
|
-
var h =
|
|
9542
|
+
var h = Rl({
|
|
9556
9543
|
childIndexPath: e,
|
|
9557
9544
|
disabled: r,
|
|
9558
9545
|
locale: i,
|
|
@@ -9569,27 +9556,27 @@ function zl(_ref150) {
|
|
|
9569
9556
|
});
|
|
9570
9557
|
return (0, t.jsx)("div", {
|
|
9571
9558
|
className: H(U.root, n),
|
|
9572
|
-
children:
|
|
9559
|
+
children: Hl(m, p) ? (0, t.jsx)("div", {
|
|
9573
9560
|
className: U.empty,
|
|
9574
9561
|
children: a.previewEmpty
|
|
9575
9562
|
}) : h
|
|
9576
9563
|
});
|
|
9577
9564
|
}
|
|
9578
|
-
function
|
|
9565
|
+
function Rl(e) {
|
|
9579
9566
|
return (0, t.jsxs)(t.Fragment, {
|
|
9580
|
-
children: [
|
|
9567
|
+
children: [zl(e), Vl(e), Bl(e)]
|
|
9581
9568
|
});
|
|
9582
9569
|
}
|
|
9583
|
-
function
|
|
9584
|
-
var e =
|
|
9585
|
-
n =
|
|
9586
|
-
r =
|
|
9587
|
-
i =
|
|
9588
|
-
a =
|
|
9589
|
-
o =
|
|
9590
|
-
s =
|
|
9591
|
-
c =
|
|
9592
|
-
l =
|
|
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;
|
|
9593
9580
|
return s.elements.length === 0 ? null : (0, t.jsx)("div", {
|
|
9594
9581
|
className: U["element-list"],
|
|
9595
9582
|
children: s.elements.map(function (u, d) {
|
|
@@ -9599,7 +9586,7 @@ function Vl(_ref151) {
|
|
|
9599
9586
|
}).length;
|
|
9600
9587
|
return (0, t.jsx)("section", {
|
|
9601
9588
|
className: U.element,
|
|
9602
|
-
children: (0, t.jsx)(
|
|
9589
|
+
children: (0, t.jsx)(Nl, {
|
|
9603
9590
|
disabled: e,
|
|
9604
9591
|
element: u,
|
|
9605
9592
|
item: f,
|
|
@@ -9617,15 +9604,15 @@ function Vl(_ref151) {
|
|
|
9617
9604
|
})
|
|
9618
9605
|
});
|
|
9619
9606
|
}
|
|
9620
|
-
function
|
|
9621
|
-
var e =
|
|
9622
|
-
n =
|
|
9623
|
-
r =
|
|
9624
|
-
i =
|
|
9625
|
-
a =
|
|
9626
|
-
o =
|
|
9627
|
-
s =
|
|
9628
|
-
c =
|
|
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;
|
|
9629
9616
|
return a ? (0, t.jsx)("div", {
|
|
9630
9617
|
className: U["element-list"],
|
|
9631
9618
|
children: o.extras.map(function (a, o) {
|
|
@@ -9634,10 +9621,10 @@ function Hl(_ref152) {
|
|
|
9634
9621
|
className: U.extra,
|
|
9635
9622
|
children: [(0, t.jsx)(kc, {
|
|
9636
9623
|
children: a.name
|
|
9637
|
-
}), (0, t.jsx)(
|
|
9624
|
+
}), (0, t.jsx)(Nl, {
|
|
9638
9625
|
disabled: e,
|
|
9639
|
-
element:
|
|
9640
|
-
item:
|
|
9626
|
+
element: Ul(a),
|
|
9627
|
+
item: Wl(l),
|
|
9641
9628
|
locale: n,
|
|
9642
9629
|
messages: r,
|
|
9643
9630
|
onResponseItemChange: function onResponseItemChange() {
|
|
@@ -9652,19 +9639,19 @@ function Hl(_ref152) {
|
|
|
9652
9639
|
})
|
|
9653
9640
|
}) : null;
|
|
9654
9641
|
}
|
|
9655
|
-
function
|
|
9656
|
-
var e =
|
|
9657
|
-
n =
|
|
9658
|
-
r =
|
|
9659
|
-
i =
|
|
9660
|
-
a =
|
|
9661
|
-
o =
|
|
9662
|
-
s =
|
|
9663
|
-
c =
|
|
9664
|
-
l =
|
|
9665
|
-
u =
|
|
9666
|
-
d =
|
|
9667
|
-
f =
|
|
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;
|
|
9668
9655
|
return f.children.length === 0 ? null : (0, t.jsx)(Ac, {
|
|
9669
9656
|
childIndexPath: e,
|
|
9670
9657
|
disabled: n,
|
|
@@ -9674,7 +9661,7 @@ function Ul(_ref153) {
|
|
|
9674
9661
|
},
|
|
9675
9662
|
response: o,
|
|
9676
9663
|
renderChild: function renderChild(e, a, o, f) {
|
|
9677
|
-
return (0, t.jsx)(
|
|
9664
|
+
return (0, t.jsx)(Ll, {
|
|
9678
9665
|
childIndexPath: f,
|
|
9679
9666
|
disabled: n,
|
|
9680
9667
|
locale: r,
|
|
@@ -9693,31 +9680,31 @@ function Ul(_ref153) {
|
|
|
9693
9680
|
value: f
|
|
9694
9681
|
});
|
|
9695
9682
|
}
|
|
9696
|
-
function
|
|
9683
|
+
function Hl(e, t) {
|
|
9697
9684
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
9698
9685
|
}
|
|
9699
|
-
function
|
|
9686
|
+
function Ul(e) {
|
|
9700
9687
|
return {
|
|
9701
9688
|
config: {},
|
|
9702
9689
|
name: e.name,
|
|
9703
9690
|
type: "richText"
|
|
9704
9691
|
};
|
|
9705
9692
|
}
|
|
9706
|
-
function
|
|
9693
|
+
function Wl(e) {
|
|
9707
9694
|
return {
|
|
9708
9695
|
content: e.content,
|
|
9709
9696
|
type: "richText"
|
|
9710
9697
|
};
|
|
9711
9698
|
}
|
|
9712
|
-
var
|
|
9699
|
+
var Gl = {
|
|
9713
9700
|
"blank-list": "_blank-list_12ccp_1",
|
|
9714
9701
|
"blank-item": "_blank-item_12ccp_11",
|
|
9715
9702
|
"blank-field": "_blank-field_12ccp_17"
|
|
9716
9703
|
};
|
|
9717
|
-
function
|
|
9718
|
-
var e =
|
|
9719
|
-
n =
|
|
9720
|
-
r =
|
|
9704
|
+
function Kl(_ref153) {
|
|
9705
|
+
var e = _ref153.item,
|
|
9706
|
+
n = _ref153.messages,
|
|
9707
|
+
r = _ref153.showAnswer;
|
|
9721
9708
|
var i = k(e.answers, e.blanks).map(function (r, i) {
|
|
9722
9709
|
return {
|
|
9723
9710
|
kind: "detailed",
|
|
@@ -9732,15 +9719,15 @@ function Jl(_ref154) {
|
|
|
9732
9719
|
return (0, t.jsxs)("div", {
|
|
9733
9720
|
className: W.element,
|
|
9734
9721
|
children: [(0, t.jsx)("ol", {
|
|
9735
|
-
className:
|
|
9722
|
+
className: Gl["blank-list"],
|
|
9736
9723
|
children: e.blanks.map(function (e, r) {
|
|
9737
9724
|
return (0, t.jsx)("li", {
|
|
9738
|
-
className:
|
|
9725
|
+
className: Gl["blank-item"],
|
|
9739
9726
|
children: (0, t.jsxs)("span", {
|
|
9740
|
-
className:
|
|
9727
|
+
className: Gl["blank-field"],
|
|
9741
9728
|
children: [n.blankLabel, " ", r + 1]
|
|
9742
9729
|
})
|
|
9743
|
-
},
|
|
9730
|
+
}, ql(e, r));
|
|
9744
9731
|
})
|
|
9745
9732
|
}), r ? (0, t.jsx)(K, {
|
|
9746
9733
|
groups: i,
|
|
@@ -9748,13 +9735,13 @@ function Jl(_ref154) {
|
|
|
9748
9735
|
}) : null]
|
|
9749
9736
|
});
|
|
9750
9737
|
}
|
|
9751
|
-
function
|
|
9738
|
+
function ql(e, t) {
|
|
9752
9739
|
return e || "blank-".concat(t + 1);
|
|
9753
9740
|
}
|
|
9754
|
-
function
|
|
9755
|
-
var e =
|
|
9756
|
-
n =
|
|
9757
|
-
r =
|
|
9741
|
+
function Jl(_ref154) {
|
|
9742
|
+
var e = _ref154.item,
|
|
9743
|
+
n = _ref154.messages,
|
|
9744
|
+
r = _ref154.showAnswer;
|
|
9758
9745
|
return (0, t.jsxs)("div", {
|
|
9759
9746
|
className: W.element,
|
|
9760
9747
|
children: [(0, t.jsxs)("div", {
|
|
@@ -9792,11 +9779,11 @@ function Xl(_ref155) {
|
|
|
9792
9779
|
}) : null]
|
|
9793
9780
|
});
|
|
9794
9781
|
}
|
|
9795
|
-
function
|
|
9796
|
-
var e =
|
|
9797
|
-
n =
|
|
9798
|
-
r =
|
|
9799
|
-
i =
|
|
9782
|
+
function Yl(_ref155) {
|
|
9783
|
+
var e = _ref155.element,
|
|
9784
|
+
n = _ref155.item,
|
|
9785
|
+
r = _ref155.messages,
|
|
9786
|
+
i = _ref155.showAnswer;
|
|
9800
9787
|
var a = vn(n, e, !0),
|
|
9801
9788
|
o = Ec(a).map(function (e, n) {
|
|
9802
9789
|
return {
|
|
@@ -9813,13 +9800,13 @@ function Zl(_ref156) {
|
|
|
9813
9800
|
className: W.element,
|
|
9814
9801
|
children: [(0, t.jsx)(G, {
|
|
9815
9802
|
content: a.content
|
|
9816
|
-
}),
|
|
9803
|
+
}), Xl(a, r.candidateOptions), i ? (0, t.jsx)(K, {
|
|
9817
9804
|
groups: o,
|
|
9818
9805
|
title: r.standardAnswer
|
|
9819
9806
|
}) : null]
|
|
9820
9807
|
});
|
|
9821
9808
|
}
|
|
9822
|
-
function
|
|
9809
|
+
function Xl(e, n) {
|
|
9823
9810
|
var r, i;
|
|
9824
9811
|
var a = (r = e.candidateOptions) == null ? [] : r,
|
|
9825
9812
|
o = (i = e.blankOptionGroups) == null ? [] : i;
|
|
@@ -9850,11 +9837,11 @@ function Ql(e, n) {
|
|
|
9850
9837
|
})]
|
|
9851
9838
|
});
|
|
9852
9839
|
}
|
|
9853
|
-
function
|
|
9854
|
-
var e =
|
|
9855
|
-
n =
|
|
9856
|
-
r =
|
|
9857
|
-
i =
|
|
9840
|
+
function Zl(_ref156) {
|
|
9841
|
+
var e = _ref156.element,
|
|
9842
|
+
n = _ref156.item,
|
|
9843
|
+
r = _ref156.messages,
|
|
9844
|
+
i = _ref156.showAnswer;
|
|
9858
9845
|
var a = tn(e.config.judgeAnswerMode),
|
|
9859
9846
|
o = [{
|
|
9860
9847
|
kind: "detailed",
|
|
@@ -9865,9 +9852,9 @@ function $l(_ref157) {
|
|
|
9865
9852
|
className: W.element,
|
|
9866
9853
|
children: [(0, t.jsx)("ol", {
|
|
9867
9854
|
className: W["judgement-list"],
|
|
9868
|
-
children: a.map(function (
|
|
9869
|
-
var e =
|
|
9870
|
-
n =
|
|
9855
|
+
children: a.map(function (_ref157) {
|
|
9856
|
+
var e = _ref157.label,
|
|
9857
|
+
n = _ref157.value;
|
|
9871
9858
|
return (0, t.jsx)("li", {
|
|
9872
9859
|
className: W["judgement-item"],
|
|
9873
9860
|
children: e
|
|
@@ -9879,10 +9866,10 @@ function $l(_ref157) {
|
|
|
9879
9866
|
}) : null]
|
|
9880
9867
|
});
|
|
9881
9868
|
}
|
|
9882
|
-
function
|
|
9883
|
-
var e =
|
|
9884
|
-
n =
|
|
9885
|
-
r =
|
|
9869
|
+
function Ql(_ref158) {
|
|
9870
|
+
var e = _ref158.item,
|
|
9871
|
+
n = _ref158.messages,
|
|
9872
|
+
r = _ref158.showAnswer;
|
|
9886
9873
|
var i = {
|
|
9887
9874
|
gridTemplateColumns: "repeat(".concat(e.columns.length, ", minmax(12rem, 1fr))")
|
|
9888
9875
|
};
|
|
@@ -9920,32 +9907,32 @@ function eu(_ref159) {
|
|
|
9920
9907
|
}) : null]
|
|
9921
9908
|
});
|
|
9922
9909
|
}
|
|
9923
|
-
var
|
|
9910
|
+
var $l = {
|
|
9924
9911
|
board: "_board_5xarh_1",
|
|
9925
9912
|
columns: "_columns_5xarh_6",
|
|
9926
9913
|
column: "_column_5xarh_6",
|
|
9927
9914
|
item: "_item_5xarh_18",
|
|
9928
9915
|
marker: "_marker_5xarh_42"
|
|
9929
9916
|
};
|
|
9930
|
-
function
|
|
9931
|
-
var e =
|
|
9932
|
-
n =
|
|
9933
|
-
r =
|
|
9917
|
+
function eu(_ref159) {
|
|
9918
|
+
var e = _ref159.item,
|
|
9919
|
+
n = _ref159.messages,
|
|
9920
|
+
r = _ref159.showAnswer;
|
|
9934
9921
|
return (0, t.jsxs)("div", {
|
|
9935
9922
|
className: W.element,
|
|
9936
9923
|
children: [(0, t.jsx)("div", {
|
|
9937
|
-
className:
|
|
9924
|
+
className: $l.board,
|
|
9938
9925
|
children: (0, t.jsx)("div", {
|
|
9939
|
-
className:
|
|
9926
|
+
className: $l.columns,
|
|
9940
9927
|
children: e.columns.map(function (e) {
|
|
9941
9928
|
return (0, t.jsx)("section", {
|
|
9942
|
-
className:
|
|
9929
|
+
className: $l.column,
|
|
9943
9930
|
children: e.items.map(function (n, r) {
|
|
9944
9931
|
var i = $t(e.labelStyle, r);
|
|
9945
9932
|
return (0, t.jsxs)("div", {
|
|
9946
|
-
className:
|
|
9933
|
+
className: $l.item,
|
|
9947
9934
|
children: [i ? (0, t.jsx)("span", {
|
|
9948
|
-
className:
|
|
9935
|
+
className: $l.marker,
|
|
9949
9936
|
children: i
|
|
9950
9937
|
}) : null, (0, t.jsx)(G, {
|
|
9951
9938
|
content: n.content
|
|
@@ -9961,11 +9948,11 @@ function nu(_ref160) {
|
|
|
9961
9948
|
}) : null]
|
|
9962
9949
|
});
|
|
9963
9950
|
}
|
|
9964
|
-
function
|
|
9965
|
-
var e =
|
|
9966
|
-
n =
|
|
9967
|
-
r =
|
|
9968
|
-
i =
|
|
9951
|
+
function tu(_ref160) {
|
|
9952
|
+
var e = _ref160.element,
|
|
9953
|
+
n = _ref160.item,
|
|
9954
|
+
r = _ref160.messages,
|
|
9955
|
+
i = _ref160.showAnswer;
|
|
9969
9956
|
var a = rn(n, e.config.optionLabelStyle);
|
|
9970
9957
|
if (e.config.renderer === "table") {
|
|
9971
9958
|
var _o3 = pl(e, n);
|
|
@@ -10039,10 +10026,10 @@ function ru(_ref161) {
|
|
|
10039
10026
|
}) : null]
|
|
10040
10027
|
});
|
|
10041
10028
|
}
|
|
10042
|
-
function
|
|
10043
|
-
var e =
|
|
10044
|
-
n =
|
|
10045
|
-
r =
|
|
10029
|
+
function nu(_ref161) {
|
|
10030
|
+
var e = _ref161.item,
|
|
10031
|
+
n = _ref161.messages,
|
|
10032
|
+
r = _ref161.showAnswer;
|
|
10046
10033
|
return (0, t.jsxs)("div", {
|
|
10047
10034
|
className: W.element,
|
|
10048
10035
|
children: [(0, t.jsx)("ol", {
|
|
@@ -10064,21 +10051,21 @@ function iu(_ref162) {
|
|
|
10064
10051
|
}) : null]
|
|
10065
10052
|
});
|
|
10066
10053
|
}
|
|
10067
|
-
function
|
|
10068
|
-
var e =
|
|
10069
|
-
n =
|
|
10070
|
-
r =
|
|
10071
|
-
i =
|
|
10054
|
+
function ru(_ref162) {
|
|
10055
|
+
var e = _ref162.element,
|
|
10056
|
+
n = _ref162.item,
|
|
10057
|
+
r = _ref162.messages,
|
|
10058
|
+
i = _ref162.showAnswer;
|
|
10072
10059
|
var a = _n(n, !0, e),
|
|
10073
|
-
o =
|
|
10060
|
+
o = kl(a, r.blankLabel);
|
|
10074
10061
|
return (0, t.jsxs)("div", {
|
|
10075
10062
|
className: W.element,
|
|
10076
10063
|
children: [(0, t.jsx)(zc, {
|
|
10077
10064
|
content: a.content,
|
|
10078
|
-
renderBlank: function renderBlank(
|
|
10079
|
-
var e =
|
|
10080
|
-
n =
|
|
10081
|
-
i =
|
|
10065
|
+
renderBlank: function renderBlank(_ref163) {
|
|
10066
|
+
var e = _ref163.blankId,
|
|
10067
|
+
n = _ref163.index,
|
|
10068
|
+
i = _ref163.label;
|
|
10082
10069
|
return (0, t.jsx)("span", {
|
|
10083
10070
|
"aria-label": i || "".concat(r.blankLabel).concat(n + 1),
|
|
10084
10071
|
className: W["word-builder-blank"],
|
|
@@ -10105,19 +10092,19 @@ function au(_ref163) {
|
|
|
10105
10092
|
}) : null]
|
|
10106
10093
|
});
|
|
10107
10094
|
}
|
|
10108
|
-
function
|
|
10109
|
-
var e =
|
|
10110
|
-
n =
|
|
10111
|
-
r =
|
|
10112
|
-
i =
|
|
10095
|
+
function iu(_ref164) {
|
|
10096
|
+
var e = _ref164.element,
|
|
10097
|
+
n = _ref164.item,
|
|
10098
|
+
r = _ref164.messages,
|
|
10099
|
+
i = _ref164.showAnswer;
|
|
10113
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));
|
|
10114
10101
|
return e.type === "richText" ? (0, t.jsx)(G, {
|
|
10115
10102
|
content: n.content
|
|
10116
|
-
}) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(
|
|
10103
|
+
}) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(nu, {
|
|
10117
10104
|
item: n,
|
|
10118
10105
|
messages: r,
|
|
10119
10106
|
showAnswer: i
|
|
10120
|
-
}) : e.type === "classification" ? (0, t.jsx)(
|
|
10107
|
+
}) : e.type === "classification" ? (0, t.jsx)(Jl, {
|
|
10121
10108
|
item: n,
|
|
10122
10109
|
messages: r,
|
|
10123
10110
|
showAnswer: i
|
|
@@ -10125,61 +10112,61 @@ function ou(_ref165) {
|
|
|
10125
10112
|
item: n,
|
|
10126
10113
|
messages: r,
|
|
10127
10114
|
showAnswer: i
|
|
10128
|
-
}) :
|
|
10115
|
+
}) : au({
|
|
10129
10116
|
element: e,
|
|
10130
10117
|
item: n,
|
|
10131
10118
|
messages: r,
|
|
10132
10119
|
showAnswer: i
|
|
10133
10120
|
});
|
|
10134
10121
|
}
|
|
10135
|
-
function
|
|
10136
|
-
var e =
|
|
10137
|
-
n =
|
|
10138
|
-
r =
|
|
10139
|
-
i =
|
|
10122
|
+
function au(_ref165) {
|
|
10123
|
+
var e = _ref165.element,
|
|
10124
|
+
n = _ref165.item,
|
|
10125
|
+
r = _ref165.messages,
|
|
10126
|
+
i = _ref165.showAnswer;
|
|
10140
10127
|
switch (e.type) {
|
|
10141
10128
|
case "choice":
|
|
10142
|
-
return (0, t.jsx)(
|
|
10129
|
+
return (0, t.jsx)(tu, {
|
|
10143
10130
|
element: e,
|
|
10144
10131
|
item: n,
|
|
10145
10132
|
messages: r,
|
|
10146
10133
|
showAnswer: i
|
|
10147
10134
|
});
|
|
10148
10135
|
case "fill":
|
|
10149
|
-
return (0, t.jsx)(
|
|
10136
|
+
return (0, t.jsx)(Kl, {
|
|
10150
10137
|
item: n,
|
|
10151
10138
|
messages: r,
|
|
10152
10139
|
showAnswer: i
|
|
10153
10140
|
});
|
|
10154
10141
|
case "inlineFill":
|
|
10155
|
-
return (0, t.jsx)(
|
|
10142
|
+
return (0, t.jsx)(Yl, {
|
|
10156
10143
|
element: e,
|
|
10157
10144
|
item: n,
|
|
10158
10145
|
messages: r,
|
|
10159
10146
|
showAnswer: i
|
|
10160
10147
|
});
|
|
10161
10148
|
case "wordBuilder":
|
|
10162
|
-
return (0, t.jsx)(
|
|
10149
|
+
return (0, t.jsx)(ru, {
|
|
10163
10150
|
element: e,
|
|
10164
10151
|
item: n,
|
|
10165
10152
|
messages: r,
|
|
10166
10153
|
showAnswer: i
|
|
10167
10154
|
});
|
|
10168
10155
|
case "judgement":
|
|
10169
|
-
return (0, t.jsx)(
|
|
10156
|
+
return (0, t.jsx)(Zl, {
|
|
10170
10157
|
element: e,
|
|
10171
10158
|
item: n,
|
|
10172
10159
|
messages: r,
|
|
10173
10160
|
showAnswer: i
|
|
10174
10161
|
});
|
|
10175
10162
|
case "lineConnect":
|
|
10176
|
-
return (0, t.jsx)(
|
|
10163
|
+
return (0, t.jsx)(Ql, {
|
|
10177
10164
|
item: n,
|
|
10178
10165
|
messages: r,
|
|
10179
10166
|
showAnswer: i
|
|
10180
10167
|
});
|
|
10181
10168
|
case "matching":
|
|
10182
|
-
return (0, t.jsx)(
|
|
10169
|
+
return (0, t.jsx)(eu, {
|
|
10183
10170
|
item: n,
|
|
10184
10171
|
messages: r,
|
|
10185
10172
|
showAnswer: i
|
|
@@ -10195,13 +10182,13 @@ var X = {
|
|
|
10195
10182
|
extra: "_extra_1jseb_41",
|
|
10196
10183
|
child: "_child_1jseb_31"
|
|
10197
10184
|
};
|
|
10198
|
-
function
|
|
10199
|
-
var
|
|
10200
|
-
e =
|
|
10201
|
-
n =
|
|
10202
|
-
r =
|
|
10203
|
-
i =
|
|
10204
|
-
a =
|
|
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;
|
|
10205
10192
|
return a.children.length === 0 ? (0, t.jsx)("div", {
|
|
10206
10193
|
className: X.empty,
|
|
10207
10194
|
children: n.previewEmpty
|
|
@@ -10221,29 +10208,29 @@ function cu(_ref167) {
|
|
|
10221
10208
|
})
|
|
10222
10209
|
});
|
|
10223
10210
|
}
|
|
10224
|
-
var
|
|
10225
|
-
function
|
|
10211
|
+
var su = ["locale"];
|
|
10212
|
+
function cu(e) {
|
|
10226
10213
|
var _e$locale2 = e.locale,
|
|
10227
10214
|
n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
|
|
10228
|
-
r = ma(e,
|
|
10215
|
+
r = ma(e, su),
|
|
10229
10216
|
i = us(r.value, r.questionTypeTemplates);
|
|
10230
|
-
return (0, t.jsx)(
|
|
10217
|
+
return (0, t.jsx)(lu, C(C({}, r), {}, {
|
|
10231
10218
|
childIndexPath: [],
|
|
10232
10219
|
messages: yc(n),
|
|
10233
10220
|
value: i
|
|
10234
10221
|
}));
|
|
10235
10222
|
}
|
|
10236
|
-
function
|
|
10237
|
-
var e =
|
|
10238
|
-
n =
|
|
10239
|
-
r =
|
|
10240
|
-
i =
|
|
10241
|
-
|
|
10242
|
-
a =
|
|
10243
|
-
|
|
10244
|
-
o =
|
|
10245
|
-
s =
|
|
10246
|
-
c =
|
|
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;
|
|
10247
10234
|
var l = Zi(s, c);
|
|
10248
10235
|
if (!l) return (0, t.jsx)("div", {
|
|
10249
10236
|
className: H(X.root, n),
|
|
@@ -10258,7 +10245,7 @@ function du(_ref168) {
|
|
|
10258
10245
|
var i = Yt(c, n, e);
|
|
10259
10246
|
return (0, t.jsx)("section", {
|
|
10260
10247
|
className: X.element,
|
|
10261
|
-
children: (0, t.jsx)(
|
|
10248
|
+
children: (0, t.jsx)(iu, {
|
|
10262
10249
|
element: e,
|
|
10263
10250
|
item: i,
|
|
10264
10251
|
messages: r,
|
|
@@ -10275,9 +10262,9 @@ function du(_ref168) {
|
|
|
10275
10262
|
className: X.extra,
|
|
10276
10263
|
children: [(0, t.jsx)(kc, {
|
|
10277
10264
|
children: e.name
|
|
10278
|
-
}), (0, t.jsx)(
|
|
10279
|
-
element:
|
|
10280
|
-
item:
|
|
10265
|
+
}), (0, t.jsx)(iu, {
|
|
10266
|
+
element: du(e),
|
|
10267
|
+
item: fu(i),
|
|
10281
10268
|
messages: r,
|
|
10282
10269
|
showAnswer: !1
|
|
10283
10270
|
})]
|
|
@@ -10285,11 +10272,11 @@ function du(_ref168) {
|
|
|
10285
10272
|
})
|
|
10286
10273
|
}) : null,
|
|
10287
10274
|
f = (0, t.jsxs)(t.Fragment, {
|
|
10288
|
-
children: [u, c.children.length === 0 ? null : (0, t.jsx)(
|
|
10275
|
+
children: [u, c.children.length === 0 ? null : (0, t.jsx)(ou, {
|
|
10289
10276
|
childIndexPath: e,
|
|
10290
10277
|
messages: r,
|
|
10291
10278
|
renderChild: function renderChild(e, n) {
|
|
10292
|
-
return (0, t.jsx)(
|
|
10279
|
+
return (0, t.jsx)(lu, {
|
|
10293
10280
|
childIndexPath: n,
|
|
10294
10281
|
messages: r,
|
|
10295
10282
|
rootQuestionNumber: i,
|
|
@@ -10305,29 +10292,29 @@ function du(_ref168) {
|
|
|
10305
10292
|
});
|
|
10306
10293
|
return (0, t.jsx)("div", {
|
|
10307
10294
|
className: H(X.root, n),
|
|
10308
|
-
children:
|
|
10295
|
+
children: uu(l, c) ? (0, t.jsx)("div", {
|
|
10309
10296
|
className: X.empty,
|
|
10310
10297
|
children: r.previewEmpty
|
|
10311
10298
|
}) : f
|
|
10312
10299
|
});
|
|
10313
10300
|
}
|
|
10314
|
-
function
|
|
10301
|
+
function uu(e, t) {
|
|
10315
10302
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
10316
10303
|
}
|
|
10317
|
-
function
|
|
10304
|
+
function du(e) {
|
|
10318
10305
|
return {
|
|
10319
10306
|
config: {},
|
|
10320
10307
|
name: e.name,
|
|
10321
10308
|
type: "richText"
|
|
10322
10309
|
};
|
|
10323
10310
|
}
|
|
10324
|
-
function
|
|
10311
|
+
function fu(e) {
|
|
10325
10312
|
return {
|
|
10326
10313
|
content: e.content,
|
|
10327
10314
|
type: "richText"
|
|
10328
10315
|
};
|
|
10329
10316
|
}
|
|
10330
|
-
var
|
|
10317
|
+
var pu = {
|
|
10331
10318
|
root: "_root_17bqr_1",
|
|
10332
10319
|
toolbar: "_toolbar_17bqr_26",
|
|
10333
10320
|
"toolbar-title": "_toolbar-title_17bqr_36",
|
|
@@ -10382,7 +10369,7 @@ var hu = {
|
|
|
10382
10369
|
"palette-section-title": "_palette-section-title_vhj2r_62",
|
|
10383
10370
|
"palette-button": "_palette-button_vhj2r_70"
|
|
10384
10371
|
},
|
|
10385
|
-
|
|
10372
|
+
mu = {
|
|
10386
10373
|
"en-US": {
|
|
10387
10374
|
addElement: "Add element",
|
|
10388
10375
|
addExtra: "Add extra attribute",
|
|
@@ -10516,26 +10503,26 @@ var hu = {
|
|
|
10516
10503
|
wordBuilderLabel: "\u7EC4\u8BCD\u62FC\u5199"
|
|
10517
10504
|
}
|
|
10518
10505
|
};
|
|
10519
|
-
function
|
|
10506
|
+
function hu(e, t) {
|
|
10520
10507
|
var n;
|
|
10521
10508
|
return (n = e.extraDescriptions.get(t)) == null ? t : n;
|
|
10522
10509
|
}
|
|
10523
|
-
function
|
|
10510
|
+
function gu(e, t) {
|
|
10524
10511
|
var n;
|
|
10525
10512
|
return (n = e.extraLabels.get(t)) == null ? t : n;
|
|
10526
10513
|
}
|
|
10527
|
-
function
|
|
10514
|
+
function _u(e) {
|
|
10528
10515
|
switch (e) {
|
|
10529
10516
|
case "en-US":
|
|
10530
|
-
return
|
|
10517
|
+
return mu["en-US"];
|
|
10531
10518
|
case "zh-CN":
|
|
10532
|
-
return
|
|
10519
|
+
return mu["zh-CN"];
|
|
10533
10520
|
}
|
|
10534
10521
|
}
|
|
10535
|
-
function
|
|
10536
|
-
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription :
|
|
10522
|
+
function vu(e, t) {
|
|
10523
|
+
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : xu(e, t);
|
|
10537
10524
|
}
|
|
10538
|
-
var
|
|
10525
|
+
var yu = {
|
|
10539
10526
|
choice: function choice(e) {
|
|
10540
10527
|
return e.optionGroupDescription;
|
|
10541
10528
|
},
|
|
@@ -10567,7 +10554,7 @@ var xu = {
|
|
|
10567
10554
|
return e.wordBuilderDescription;
|
|
10568
10555
|
}
|
|
10569
10556
|
},
|
|
10570
|
-
|
|
10557
|
+
bu = {
|
|
10571
10558
|
choice: function choice(e) {
|
|
10572
10559
|
return e.optionGroupLabel;
|
|
10573
10560
|
},
|
|
@@ -10599,40 +10586,40 @@ var xu = {
|
|
|
10599
10586
|
return e.wordBuilderLabel;
|
|
10600
10587
|
}
|
|
10601
10588
|
};
|
|
10602
|
-
function
|
|
10603
|
-
return
|
|
10589
|
+
function xu(e, t) {
|
|
10590
|
+
return yu[t](e);
|
|
10604
10591
|
}
|
|
10605
|
-
function
|
|
10606
|
-
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel :
|
|
10592
|
+
function Su(e, t) {
|
|
10593
|
+
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : Cu(e, t);
|
|
10607
10594
|
}
|
|
10608
|
-
function
|
|
10609
|
-
return
|
|
10595
|
+
function Cu(e, t) {
|
|
10596
|
+
return bu[t](e);
|
|
10610
10597
|
}
|
|
10611
|
-
function
|
|
10598
|
+
function wu(e, t) {
|
|
10612
10599
|
var n;
|
|
10613
10600
|
return (n = e.optionValueLabels.get(t)) == null ? t : n;
|
|
10614
10601
|
}
|
|
10615
|
-
function
|
|
10602
|
+
function Tu(e, t) {
|
|
10616
10603
|
var n;
|
|
10617
10604
|
return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
|
|
10618
10605
|
}
|
|
10619
|
-
function
|
|
10606
|
+
function Eu(e, t) {
|
|
10620
10607
|
var n;
|
|
10621
10608
|
return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
|
|
10622
10609
|
}
|
|
10623
|
-
function
|
|
10624
|
-
var e =
|
|
10625
|
-
r =
|
|
10626
|
-
i =
|
|
10627
|
-
a =
|
|
10628
|
-
o =
|
|
10629
|
-
s =
|
|
10630
|
-
c =
|
|
10631
|
-
l =
|
|
10632
|
-
var
|
|
10633
|
-
|
|
10634
|
-
u =
|
|
10635
|
-
d =
|
|
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];
|
|
10636
10623
|
return (0, t.jsxs)("section", {
|
|
10637
10624
|
className: Q.panel,
|
|
10638
10625
|
children: [(0, t.jsxs)("div", {
|
|
@@ -10651,7 +10638,7 @@ function ku(_ref169) {
|
|
|
10651
10638
|
className: Z["element-list"],
|
|
10652
10639
|
children: [e.map(function (n, r) {
|
|
10653
10640
|
var o = n.clientId === l,
|
|
10654
|
-
f =
|
|
10641
|
+
f = Su(i, n.type);
|
|
10655
10642
|
return (0, t.jsxs)("div", {
|
|
10656
10643
|
className: "".concat(Z["element-card"], " ").concat(o ? Z.active : ""),
|
|
10657
10644
|
onClick: function onClick() {
|
|
@@ -10720,7 +10707,7 @@ function ku(_ref169) {
|
|
|
10720
10707
|
children: i.extraTitle
|
|
10721
10708
|
}) : null, r.map(function (n, r) {
|
|
10722
10709
|
var a = n.clientId === l,
|
|
10723
|
-
s =
|
|
10710
|
+
s = gu(i, n.type);
|
|
10724
10711
|
return (0, t.jsxs)("div", {
|
|
10725
10712
|
className: "".concat(Z["element-card"], " ").concat(a ? Z.active : ""),
|
|
10726
10713
|
onClick: function onClick() {
|
|
@@ -10772,11 +10759,11 @@ function ku(_ref169) {
|
|
|
10772
10759
|
})]
|
|
10773
10760
|
});
|
|
10774
10761
|
}
|
|
10775
|
-
function
|
|
10776
|
-
var e =
|
|
10777
|
-
n =
|
|
10778
|
-
r =
|
|
10779
|
-
i =
|
|
10762
|
+
function Ou(_ref171) {
|
|
10763
|
+
var e = _ref171.addedExtraTypes,
|
|
10764
|
+
n = _ref171.labels,
|
|
10765
|
+
r = _ref171.onAddElement,
|
|
10766
|
+
i = _ref171.onAddExtra;
|
|
10780
10767
|
var a = new Set(e);
|
|
10781
10768
|
return (0, t.jsxs)("aside", {
|
|
10782
10769
|
className: Q.panel,
|
|
@@ -10790,16 +10777,16 @@ function Au(_ref172) {
|
|
|
10790
10777
|
className: Q.palette,
|
|
10791
10778
|
children: ee.map(function (e) {
|
|
10792
10779
|
return (0, t.jsxs)("button", {
|
|
10793
|
-
"aria-label": "".concat(n.addElement, ": ").concat(
|
|
10780
|
+
"aria-label": "".concat(n.addElement, ": ").concat(Su(n, e)),
|
|
10794
10781
|
className: Q["palette-button"],
|
|
10795
10782
|
onClick: function onClick() {
|
|
10796
10783
|
return r(e);
|
|
10797
10784
|
},
|
|
10798
10785
|
type: "button",
|
|
10799
10786
|
children: [(0, t.jsx)("strong", {
|
|
10800
|
-
children:
|
|
10787
|
+
children: Su(n, e)
|
|
10801
10788
|
}), (0, t.jsx)("small", {
|
|
10802
|
-
children:
|
|
10789
|
+
children: vu(n, e)
|
|
10803
10790
|
})]
|
|
10804
10791
|
}, e);
|
|
10805
10792
|
})
|
|
@@ -10810,10 +10797,10 @@ function Au(_ref172) {
|
|
|
10810
10797
|
children: n.extraTitle
|
|
10811
10798
|
}), (0, t.jsx)("div", {
|
|
10812
10799
|
className: Q.palette,
|
|
10813
|
-
children:
|
|
10800
|
+
children: te.map(function (e) {
|
|
10814
10801
|
var r = a.has(e);
|
|
10815
10802
|
return (0, t.jsxs)("button", {
|
|
10816
|
-
"aria-label": "".concat(n.addExtra, ": ").concat(
|
|
10803
|
+
"aria-label": "".concat(n.addExtra, ": ").concat(gu(n, e)),
|
|
10817
10804
|
className: Q["palette-button"],
|
|
10818
10805
|
disabled: r,
|
|
10819
10806
|
onClick: function onClick() {
|
|
@@ -10821,9 +10808,9 @@ function Au(_ref172) {
|
|
|
10821
10808
|
},
|
|
10822
10809
|
type: "button",
|
|
10823
10810
|
children: [(0, t.jsx)("strong", {
|
|
10824
|
-
children:
|
|
10811
|
+
children: gu(n, e)
|
|
10825
10812
|
}), (0, t.jsx)("small", {
|
|
10826
|
-
children:
|
|
10813
|
+
children: hu(n, e)
|
|
10827
10814
|
})]
|
|
10828
10815
|
}, e);
|
|
10829
10816
|
})
|
|
@@ -10841,26 +10828,26 @@ var $ = {
|
|
|
10841
10828
|
textarea: "_textarea_tgswd_28",
|
|
10842
10829
|
empty: "_empty_tgswd_61"
|
|
10843
10830
|
},
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
|
|
10851
|
-
|
|
10852
|
-
function
|
|
10853
|
-
var e =
|
|
10854
|
-
n =
|
|
10855
|
-
r =
|
|
10856
|
-
i =
|
|
10857
|
-
a =
|
|
10858
|
-
o =
|
|
10859
|
-
s =
|
|
10860
|
-
c =
|
|
10861
|
-
l =
|
|
10862
|
-
u =
|
|
10863
|
-
var d =
|
|
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({
|
|
10864
10851
|
labels: i,
|
|
10865
10852
|
onElementChange: a,
|
|
10866
10853
|
onExtraChange: o,
|
|
@@ -10971,12 +10958,12 @@ function zu(_ref173) {
|
|
|
10971
10958
|
})]
|
|
10972
10959
|
});
|
|
10973
10960
|
}
|
|
10974
|
-
function
|
|
10975
|
-
var e =
|
|
10976
|
-
n =
|
|
10977
|
-
r =
|
|
10978
|
-
i =
|
|
10979
|
-
a =
|
|
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;
|
|
10980
10967
|
return i ? (0, t.jsxs)("div", {
|
|
10981
10968
|
className: $["form-stack"],
|
|
10982
10969
|
children: [(0, t.jsxs)("label", {
|
|
@@ -11005,7 +10992,7 @@ function Bu(_ref174) {
|
|
|
11005
10992
|
},
|
|
11006
10993
|
value: i.enName
|
|
11007
10994
|
})]
|
|
11008
|
-
}),
|
|
10995
|
+
}), zu(i, e, n)]
|
|
11009
10996
|
}) : a ? (0, t.jsxs)("div", {
|
|
11010
10997
|
className: $["form-stack"],
|
|
11011
10998
|
children: [(0, t.jsxs)("label", {
|
|
@@ -11040,10 +11027,10 @@ function Bu(_ref174) {
|
|
|
11040
11027
|
children: e.noElement
|
|
11041
11028
|
});
|
|
11042
11029
|
}
|
|
11043
|
-
function
|
|
11044
|
-
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null :
|
|
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);
|
|
11045
11032
|
}
|
|
11046
|
-
function
|
|
11033
|
+
function Bu(e, n, r) {
|
|
11047
11034
|
switch (e.type) {
|
|
11048
11035
|
case "inlineFill":
|
|
11049
11036
|
return (0, t.jsxs)(t.Fragment, {
|
|
@@ -11061,10 +11048,10 @@ function Hu(e, n, r) {
|
|
|
11061
11048
|
}));
|
|
11062
11049
|
},
|
|
11063
11050
|
value: e.config.candidateMode,
|
|
11064
|
-
children:
|
|
11051
|
+
children: ku.map(function (e) {
|
|
11065
11052
|
return (0, t.jsx)("option", {
|
|
11066
11053
|
value: e,
|
|
11067
|
-
children:
|
|
11054
|
+
children: Tu(n, e)
|
|
11068
11055
|
}, e);
|
|
11069
11056
|
})
|
|
11070
11057
|
})]
|
|
@@ -11100,10 +11087,10 @@ function Hu(e, n, r) {
|
|
|
11100
11087
|
}));
|
|
11101
11088
|
},
|
|
11102
11089
|
value: e.config.builderMode,
|
|
11103
|
-
children:
|
|
11090
|
+
children: Fu.map(function (e) {
|
|
11104
11091
|
return (0, t.jsx)("option", {
|
|
11105
11092
|
value: e,
|
|
11106
|
-
children:
|
|
11093
|
+
children: wu(n, e)
|
|
11107
11094
|
}, e);
|
|
11108
11095
|
})
|
|
11109
11096
|
})]
|
|
@@ -11123,23 +11110,23 @@ function Hu(e, n, r) {
|
|
|
11123
11110
|
}));
|
|
11124
11111
|
},
|
|
11125
11112
|
value: e.config.judgeAnswerMode,
|
|
11126
|
-
children:
|
|
11113
|
+
children: Iu.map(function (e) {
|
|
11127
11114
|
return (0, t.jsx)("option", {
|
|
11128
11115
|
value: e,
|
|
11129
|
-
children:
|
|
11116
|
+
children: wu(n, e)
|
|
11130
11117
|
}, e);
|
|
11131
11118
|
})
|
|
11132
11119
|
})]
|
|
11133
11120
|
});
|
|
11134
11121
|
case "choice":
|
|
11135
|
-
return
|
|
11122
|
+
return Vu(e, n, r);
|
|
11136
11123
|
case "lineConnect":
|
|
11137
|
-
return
|
|
11124
|
+
return Hu(e, n, r);
|
|
11138
11125
|
case "matching":
|
|
11139
|
-
return
|
|
11126
|
+
return Uu(e, n, r);
|
|
11140
11127
|
}
|
|
11141
11128
|
}
|
|
11142
|
-
function
|
|
11129
|
+
function Vu(e, n, r) {
|
|
11143
11130
|
return (0, t.jsxs)(t.Fragment, {
|
|
11144
11131
|
children: [(0, t.jsxs)("label", {
|
|
11145
11132
|
className: $["form-row"],
|
|
@@ -11155,10 +11142,10 @@ function Uu(e, n, r) {
|
|
|
11155
11142
|
}));
|
|
11156
11143
|
},
|
|
11157
11144
|
value: e.config.selectionType,
|
|
11158
|
-
children:
|
|
11145
|
+
children: Pu.map(function (e) {
|
|
11159
11146
|
return (0, t.jsx)("option", {
|
|
11160
11147
|
value: e,
|
|
11161
|
-
children:
|
|
11148
|
+
children: wu(n, e)
|
|
11162
11149
|
}, e);
|
|
11163
11150
|
})
|
|
11164
11151
|
})]
|
|
@@ -11176,10 +11163,10 @@ function Uu(e, n, r) {
|
|
|
11176
11163
|
}));
|
|
11177
11164
|
},
|
|
11178
11165
|
value: e.config.optionLabelStyle,
|
|
11179
|
-
children:
|
|
11166
|
+
children: Au.map(function (e) {
|
|
11180
11167
|
return (0, t.jsx)("option", {
|
|
11181
11168
|
value: e,
|
|
11182
|
-
children:
|
|
11169
|
+
children: wu(n, e)
|
|
11183
11170
|
}, e);
|
|
11184
11171
|
})
|
|
11185
11172
|
})]
|
|
@@ -11197,18 +11184,18 @@ function Uu(e, n, r) {
|
|
|
11197
11184
|
}));
|
|
11198
11185
|
},
|
|
11199
11186
|
value: e.config.renderer,
|
|
11200
|
-
children:
|
|
11187
|
+
children: Nu.map(function (e) {
|
|
11201
11188
|
return (0, t.jsx)("option", {
|
|
11202
11189
|
value: e,
|
|
11203
|
-
children:
|
|
11190
|
+
children: wu(n, e)
|
|
11204
11191
|
}, e);
|
|
11205
11192
|
})
|
|
11206
11193
|
})]
|
|
11207
11194
|
})]
|
|
11208
11195
|
});
|
|
11209
11196
|
}
|
|
11210
|
-
function
|
|
11211
|
-
var i =
|
|
11197
|
+
function Hu(e, n, r) {
|
|
11198
|
+
var i = Wu(e.config.columns);
|
|
11212
11199
|
return (0, t.jsxs)(t.Fragment, {
|
|
11213
11200
|
children: [(0, t.jsxs)("label", {
|
|
11214
11201
|
className: $["form-row"],
|
|
@@ -11219,12 +11206,12 @@ function Wu(e, n, r) {
|
|
|
11219
11206
|
onChange: function onChange(t) {
|
|
11220
11207
|
return r(C(C({}, e), {}, {
|
|
11221
11208
|
config: {
|
|
11222
|
-
columns:
|
|
11209
|
+
columns: Ku(i, Number(t.target.value))
|
|
11223
11210
|
}
|
|
11224
11211
|
}));
|
|
11225
11212
|
},
|
|
11226
11213
|
value: i.length,
|
|
11227
|
-
children:
|
|
11214
|
+
children: Mu.map(function (e) {
|
|
11228
11215
|
return (0, t.jsx)("option", {
|
|
11229
11216
|
value: e,
|
|
11230
11217
|
children: e
|
|
@@ -11250,10 +11237,10 @@ function Wu(e, n, r) {
|
|
|
11250
11237
|
}));
|
|
11251
11238
|
},
|
|
11252
11239
|
value: a.labelStyle,
|
|
11253
|
-
children:
|
|
11240
|
+
children: ju.map(function (e) {
|
|
11254
11241
|
return (0, t.jsx)("option", {
|
|
11255
11242
|
value: e,
|
|
11256
|
-
children:
|
|
11243
|
+
children: Eu(n, e)
|
|
11257
11244
|
}, e);
|
|
11258
11245
|
})
|
|
11259
11246
|
})]
|
|
@@ -11261,8 +11248,8 @@ function Wu(e, n, r) {
|
|
|
11261
11248
|
})]
|
|
11262
11249
|
});
|
|
11263
11250
|
}
|
|
11264
|
-
function
|
|
11265
|
-
var i =
|
|
11251
|
+
function Uu(e, n, r) {
|
|
11252
|
+
var i = Gu(e.config.columns);
|
|
11266
11253
|
return (0, t.jsx)(t.Fragment, {
|
|
11267
11254
|
children: i.map(function (a, o) {
|
|
11268
11255
|
return (0, t.jsxs)("label", {
|
|
@@ -11283,10 +11270,10 @@ function Gu(e, n, r) {
|
|
|
11283
11270
|
}));
|
|
11284
11271
|
},
|
|
11285
11272
|
value: a.labelStyle,
|
|
11286
|
-
children:
|
|
11273
|
+
children: ju.map(function (e) {
|
|
11287
11274
|
return (0, t.jsx)("option", {
|
|
11288
11275
|
value: e,
|
|
11289
|
-
children:
|
|
11276
|
+
children: Eu(n, e)
|
|
11290
11277
|
}, e);
|
|
11291
11278
|
})
|
|
11292
11279
|
})]
|
|
@@ -11294,48 +11281,48 @@ function Gu(e, n, r) {
|
|
|
11294
11281
|
})
|
|
11295
11282
|
});
|
|
11296
11283
|
}
|
|
11297
|
-
function
|
|
11284
|
+
function Wu(e) {
|
|
11298
11285
|
var t = e.slice(0, 5);
|
|
11299
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11286
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(ju.slice(t.length, 2).map(function (e) {
|
|
11300
11287
|
return {
|
|
11301
11288
|
labelStyle: e
|
|
11302
11289
|
};
|
|
11303
11290
|
})));
|
|
11304
11291
|
}
|
|
11305
|
-
function
|
|
11292
|
+
function Gu(e) {
|
|
11306
11293
|
var t = e.slice(0, 2);
|
|
11307
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11294
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(ju.slice(t.length, 2).map(function (e) {
|
|
11308
11295
|
return {
|
|
11309
11296
|
labelStyle: e
|
|
11310
11297
|
};
|
|
11311
11298
|
})));
|
|
11312
11299
|
}
|
|
11313
|
-
function
|
|
11300
|
+
function Ku(e, t) {
|
|
11314
11301
|
return Array.from({
|
|
11315
11302
|
length: Math.min(5, Math.max(2, t))
|
|
11316
11303
|
}, function (t, n) {
|
|
11317
11304
|
var r, i;
|
|
11318
11305
|
return (r = e.slice(n, n + 1)[0]) == null ? {
|
|
11319
|
-
labelStyle: (i =
|
|
11306
|
+
labelStyle: (i = ju[n]) == null ? "number" : i
|
|
11320
11307
|
} : r;
|
|
11321
11308
|
});
|
|
11322
11309
|
}
|
|
11323
|
-
function
|
|
11324
|
-
var
|
|
11325
|
-
e =
|
|
11326
|
-
r =
|
|
11327
|
-
i =
|
|
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;
|
|
11328
11315
|
var a, o, s, c;
|
|
11329
|
-
var l =
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
u =
|
|
11333
|
-
d =
|
|
11334
|
-
|
|
11335
|
-
f =
|
|
11336
|
-
p =
|
|
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;
|
|
11337
11324
|
function m(e) {
|
|
11338
|
-
var t =
|
|
11325
|
+
var t = se(e, i.elements);
|
|
11339
11326
|
r(C(C({}, i), {}, {
|
|
11340
11327
|
elements: [].concat(_toConsumableArray(i.elements), [t])
|
|
11341
11328
|
})), d(t.clientId);
|
|
@@ -11344,56 +11331,56 @@ function Yu(_ref175) {
|
|
|
11344
11331
|
if (i.extras.some(function (t) {
|
|
11345
11332
|
return t.type === e;
|
|
11346
11333
|
})) return;
|
|
11347
|
-
var t =
|
|
11334
|
+
var t = oe(e, i.extras);
|
|
11348
11335
|
r(C(C({}, i), {}, {
|
|
11349
11336
|
extras: [].concat(_toConsumableArray(i.extras), [t])
|
|
11350
11337
|
})), d(t.clientId);
|
|
11351
11338
|
}
|
|
11352
11339
|
function g(e) {
|
|
11353
|
-
var t =
|
|
11354
|
-
r(t), d(
|
|
11340
|
+
var t = de(i, e);
|
|
11341
|
+
r(t), d(Yu(t));
|
|
11355
11342
|
}
|
|
11356
11343
|
function _(e) {
|
|
11357
|
-
var t =
|
|
11358
|
-
r(t), d(
|
|
11344
|
+
var t = ue(i, e);
|
|
11345
|
+
r(t), d(Yu(t));
|
|
11359
11346
|
}
|
|
11360
11347
|
function v(e) {
|
|
11361
|
-
r(
|
|
11348
|
+
r(me(i, e.clientId, e));
|
|
11362
11349
|
}
|
|
11363
11350
|
function y(e) {
|
|
11364
|
-
r(
|
|
11351
|
+
r(pe(i, e.clientId, e));
|
|
11365
11352
|
}
|
|
11366
11353
|
function b(e) {
|
|
11367
|
-
r(
|
|
11354
|
+
r(he(i, e));
|
|
11368
11355
|
}
|
|
11369
11356
|
function x(e) {
|
|
11370
|
-
r(
|
|
11357
|
+
r(ge(i, e));
|
|
11371
11358
|
}
|
|
11372
11359
|
return (0, t.jsx)("section", {
|
|
11373
|
-
className:
|
|
11360
|
+
className: pu.root,
|
|
11374
11361
|
children: (0, t.jsx)("div", {
|
|
11375
11362
|
className: Q.shell,
|
|
11376
11363
|
children: (0, t.jsxs)("div", {
|
|
11377
11364
|
className: Q.grid,
|
|
11378
|
-
children: [(0, t.jsx)(
|
|
11365
|
+
children: [(0, t.jsx)(Ou, {
|
|
11379
11366
|
addedExtraTypes: i.extras.map(function (e) {
|
|
11380
11367
|
return e.type;
|
|
11381
11368
|
}),
|
|
11382
11369
|
labels: l,
|
|
11383
11370
|
onAddElement: m,
|
|
11384
11371
|
onAddExtra: h
|
|
11385
|
-
}), (0, t.jsx)(
|
|
11372
|
+
}), (0, t.jsx)(Du, {
|
|
11386
11373
|
elements: i.elements,
|
|
11387
11374
|
extras: i.extras,
|
|
11388
11375
|
labels: l,
|
|
11389
11376
|
onDeleteElement: g,
|
|
11390
11377
|
onDeleteExtra: _,
|
|
11391
11378
|
onMoveElement: function onMoveElement(e, t) {
|
|
11392
|
-
return r(
|
|
11379
|
+
return r(fe(i, e, t));
|
|
11393
11380
|
},
|
|
11394
11381
|
onSelectElement: d,
|
|
11395
11382
|
selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
|
|
11396
|
-
}), (0, t.jsx)(
|
|
11383
|
+
}), (0, t.jsx)(Lu, {
|
|
11397
11384
|
description: i.description,
|
|
11398
11385
|
globalConfig: i.globalConfig,
|
|
11399
11386
|
isSubjective: i.isSubjective,
|
|
@@ -11409,7 +11396,7 @@ function Yu(_ref175) {
|
|
|
11409
11396
|
})
|
|
11410
11397
|
});
|
|
11411
11398
|
}
|
|
11412
|
-
function
|
|
11399
|
+
function Ju(e, t) {
|
|
11413
11400
|
var n, r, i, a;
|
|
11414
11401
|
var o = (n = e.elements.find(function (e) {
|
|
11415
11402
|
return e.clientId === t;
|
|
@@ -11425,8 +11412,8 @@ function Xu(e, t) {
|
|
|
11425
11412
|
selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
|
|
11426
11413
|
};
|
|
11427
11414
|
}
|
|
11428
|
-
function
|
|
11415
|
+
function Yu(e) {
|
|
11429
11416
|
var t, n, r, i;
|
|
11430
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;
|
|
11431
11418
|
}
|
|
11432
|
-
exports.QuestionContentEditor = qo, exports.QuestionPlayer =
|
|
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;
|