@yungu-fed/question-editor 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +1015 -988
- package/dist/index.mjs +1033 -1018
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -1
- package/dist/question/content-editor/i18n.d.ts.map +1 -1
- package/dist/question/i18n/messages.d.ts +0 -1
- package/dist/question/i18n/messages.d.ts.map +1 -1
- package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -1
- package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -1
- package/dist/question/shared/SubquestionNumberedContent.d.ts +8 -0
- package/dist/question/shared/SubquestionNumberedContent.d.ts.map +1 -0
- package/dist/question/shared/subquestion-numbering.d.ts +1 -0
- package/dist/question/shared/subquestion-numbering.d.ts.map +1 -1
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -2706,7 +2706,6 @@ var sa = {
|
|
|
2706
2706
|
},
|
|
2707
2707
|
subquestion: {
|
|
2708
2708
|
addChild: "Add Child",
|
|
2709
|
-
childTitle: "Child {{index}}",
|
|
2710
2709
|
deleteChild: "Delete child {{index}}",
|
|
2711
2710
|
editorTitle: "Composite Editor",
|
|
2712
2711
|
emptyNodes: "No child questions yet.",
|
|
@@ -2893,7 +2892,6 @@ var sa = {
|
|
|
2893
2892
|
},
|
|
2894
2893
|
subquestion: {
|
|
2895
2894
|
addChild: "\u65B0\u589E\u5B50\u9898",
|
|
2896
|
-
childTitle: "\u7B2C {{index}} \u9898",
|
|
2897
2895
|
deleteChild: "\u5220\u9664\u7B2C {{index}} \u9898",
|
|
2898
2896
|
editorTitle: "\u7EC4\u5408\u9898\u7F16\u8F91",
|
|
2899
2897
|
emptyNodes: "\u6682\u65E0\u5B50\u9898\u3002",
|
|
@@ -6209,13 +6207,42 @@ function Eo(e) {
|
|
|
6209
6207
|
return String(e + 1);
|
|
6210
6208
|
}).join(".");
|
|
6211
6209
|
}
|
|
6212
|
-
function Do(
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6210
|
+
function Do(e, t) {
|
|
6211
|
+
return e.length > 1 || t > 1;
|
|
6212
|
+
}
|
|
6213
|
+
var Oo = {
|
|
6214
|
+
root: "_root_1phv3_1",
|
|
6215
|
+
indented: "_indented_1phv3_9",
|
|
6216
|
+
number: "_number_1phv3_14",
|
|
6217
|
+
content: "_content_1phv3_22"
|
|
6218
|
+
};
|
|
6219
|
+
function ko(_ref98) {
|
|
6220
|
+
var e = _ref98.children,
|
|
6221
|
+
_ref98$indented = _ref98.indented,
|
|
6222
|
+
n = _ref98$indented === void 0 ? !1 : _ref98$indented,
|
|
6223
|
+
r = _ref98.number;
|
|
6224
|
+
return r === null ? (0, t.jsx)(t.Fragment, {
|
|
6225
|
+
children: e
|
|
6226
|
+
}) : (0, t.jsxs)("div", {
|
|
6227
|
+
className: n ? "".concat(Oo.root, " ").concat(Oo.indented) : Oo.root,
|
|
6228
|
+
"data-subquestion-numbered-content": !0,
|
|
6229
|
+
children: [(0, t.jsx)("span", {
|
|
6230
|
+
className: Oo.number,
|
|
6231
|
+
"data-subquestion-number": !0,
|
|
6232
|
+
children: r
|
|
6233
|
+
}), (0, t.jsx)("div", {
|
|
6234
|
+
className: Oo.content,
|
|
6235
|
+
children: e
|
|
6236
|
+
})]
|
|
6237
|
+
});
|
|
6238
|
+
}
|
|
6239
|
+
function Ao(_ref99) {
|
|
6240
|
+
var e = _ref99.child,
|
|
6241
|
+
n = _ref99.disabled,
|
|
6242
|
+
r = _ref99.onChange,
|
|
6243
|
+
i = _ref99.richTextControls,
|
|
6244
|
+
a = _ref99.structure,
|
|
6245
|
+
o = _ref99.translator;
|
|
6219
6246
|
var s = o.t;
|
|
6220
6247
|
function c(t, n) {
|
|
6221
6248
|
r(C(C({}, e), un(e, t, n)));
|
|
@@ -6249,9 +6276,9 @@ function Do(_ref98) {
|
|
|
6249
6276
|
className: "flex min-w-0 flex-col gap-3 border-t border-slate-100 py-3 first:border-t-0 first:pt-0 last:pb-0",
|
|
6250
6277
|
children: (0, t.jsx)(vo, {
|
|
6251
6278
|
disabled: n,
|
|
6252
|
-
element:
|
|
6279
|
+
element: jo(r),
|
|
6253
6280
|
hasAnswer: a.hasAnswer,
|
|
6254
|
-
item:
|
|
6281
|
+
item: Mo(c),
|
|
6255
6282
|
onChange: function onChange(e) {
|
|
6256
6283
|
return l(s, {
|
|
6257
6284
|
content: e.content,
|
|
@@ -6266,74 +6293,74 @@ function Do(_ref98) {
|
|
|
6266
6293
|
})]
|
|
6267
6294
|
});
|
|
6268
6295
|
}
|
|
6269
|
-
function
|
|
6296
|
+
function jo(e) {
|
|
6270
6297
|
return {
|
|
6271
6298
|
config: {},
|
|
6272
6299
|
name: e.name,
|
|
6273
6300
|
type: "richText"
|
|
6274
6301
|
};
|
|
6275
6302
|
}
|
|
6276
|
-
function
|
|
6303
|
+
function Mo(e) {
|
|
6277
6304
|
return {
|
|
6278
6305
|
content: e.content,
|
|
6279
6306
|
type: "richText"
|
|
6280
6307
|
};
|
|
6281
6308
|
}
|
|
6282
|
-
var
|
|
6283
|
-
|
|
6284
|
-
function
|
|
6309
|
+
var No = new WeakMap(),
|
|
6310
|
+
Po = 0;
|
|
6311
|
+
function Fo(e) {
|
|
6285
6312
|
return e.map(function (e) {
|
|
6286
6313
|
return {
|
|
6287
6314
|
draft: e,
|
|
6288
|
-
runtimeId:
|
|
6315
|
+
runtimeId: Ro(e)
|
|
6289
6316
|
};
|
|
6290
6317
|
});
|
|
6291
6318
|
}
|
|
6292
|
-
function
|
|
6293
|
-
|
|
6319
|
+
function Io(e, t) {
|
|
6320
|
+
No.set(t, Ro(e));
|
|
6294
6321
|
}
|
|
6295
|
-
function
|
|
6322
|
+
function Lo(e, t) {
|
|
6296
6323
|
if (e.length !== t.length) throw Error("\u9898\u76EE\u5B50\u9898\u8FD0\u884C\u65F6\u8EAB\u4EFD\u4F20\u9012\u5931\u8D25\uFF0Cexpected=".concat(e.length, "\uFF0Cactual=").concat(t.length));
|
|
6297
6324
|
var n = t[Symbol.iterator]();
|
|
6298
6325
|
e.forEach(function (e) {
|
|
6299
6326
|
var t = n.next();
|
|
6300
6327
|
if (t.done) throw Error("\u9898\u76EE\u5B50\u9898\u8FD0\u884C\u65F6\u8EAB\u4EFD\u4F20\u9012\u5931\u8D25\uFF0CnextChildren \u63D0\u524D\u7ED3\u675F");
|
|
6301
6328
|
var r = t.value;
|
|
6302
|
-
|
|
6329
|
+
Io(e, r), Lo(e.children, r.children);
|
|
6303
6330
|
});
|
|
6304
6331
|
}
|
|
6305
|
-
function
|
|
6306
|
-
var t =
|
|
6332
|
+
function Ro(e) {
|
|
6333
|
+
var t = No.get(e);
|
|
6307
6334
|
if (t) return t;
|
|
6308
|
-
|
|
6309
|
-
var n = "question-content-child-".concat(
|
|
6310
|
-
return
|
|
6311
|
-
}
|
|
6312
|
-
function
|
|
6313
|
-
var e =
|
|
6314
|
-
n =
|
|
6315
|
-
r =
|
|
6316
|
-
i =
|
|
6317
|
-
a =
|
|
6318
|
-
o =
|
|
6319
|
-
s =
|
|
6320
|
-
c =
|
|
6321
|
-
l =
|
|
6322
|
-
u =
|
|
6323
|
-
d =
|
|
6324
|
-
f =
|
|
6335
|
+
Po += 1;
|
|
6336
|
+
var n = "question-content-child-".concat(Po);
|
|
6337
|
+
return No.set(e, n), n;
|
|
6338
|
+
}
|
|
6339
|
+
function zo(_ref100) {
|
|
6340
|
+
var e = _ref100.child,
|
|
6341
|
+
n = _ref100.childIndex,
|
|
6342
|
+
r = _ref100.disabled,
|
|
6343
|
+
i = _ref100.hasAnswer,
|
|
6344
|
+
a = _ref100.numberPath,
|
|
6345
|
+
o = _ref100.onChange,
|
|
6346
|
+
s = _ref100.onDelete,
|
|
6347
|
+
c = _ref100.onMove,
|
|
6348
|
+
l = _ref100.richTextControls,
|
|
6349
|
+
u = _ref100.siblingCount,
|
|
6350
|
+
d = _ref100.questionTypeTemplates,
|
|
6351
|
+
f = _ref100.translator;
|
|
6325
6352
|
var p = f.t,
|
|
6326
6353
|
m = a == null ? [n] : a,
|
|
6327
6354
|
h = Eo(m),
|
|
6328
|
-
g =
|
|
6355
|
+
g = Bo(e, d),
|
|
6329
6356
|
_ = g ? Xi(g.structure, i) : void 0,
|
|
6330
6357
|
v = _ ? ln(_, e) : e,
|
|
6331
|
-
y =
|
|
6358
|
+
y = Fo(_ ? v.children : []);
|
|
6332
6359
|
if (!_) return (0, t.jsxs)("section", {
|
|
6333
6360
|
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",
|
|
6334
|
-
children: [w(null), (0, t.jsx)(ba, {
|
|
6361
|
+
children: [w(null), T((0, t.jsx)(ba, {
|
|
6335
6362
|
description: p("questionContentEditor.subquestion.missingTemplate")
|
|
6336
|
-
})]
|
|
6363
|
+
}))]
|
|
6337
6364
|
});
|
|
6338
6365
|
function b(e) {
|
|
6339
6366
|
o(C(C({}, v), {}, {
|
|
@@ -6341,15 +6368,15 @@ function Io(_ref99) {
|
|
|
6341
6368
|
}));
|
|
6342
6369
|
}
|
|
6343
6370
|
function x(e, t) {
|
|
6344
|
-
var n =
|
|
6345
|
-
n < 0 || (
|
|
6371
|
+
var n = Uo(y, e);
|
|
6372
|
+
n < 0 || (Io(v.children[n], t), o(C(C({}, v), {}, {
|
|
6346
6373
|
children: v.children.map(function (e, r) {
|
|
6347
6374
|
return r === n ? t : e;
|
|
6348
6375
|
})
|
|
6349
6376
|
})));
|
|
6350
6377
|
}
|
|
6351
6378
|
function S(e) {
|
|
6352
|
-
var t =
|
|
6379
|
+
var t = Uo(y, e);
|
|
6353
6380
|
t < 0 || o(C(C({}, v), {}, {
|
|
6354
6381
|
children: v.children.filter(function (e, n) {
|
|
6355
6382
|
return n !== t;
|
|
@@ -6357,17 +6384,17 @@ function Io(_ref99) {
|
|
|
6357
6384
|
}));
|
|
6358
6385
|
}
|
|
6359
6386
|
function ee(e, t) {
|
|
6360
|
-
var n =
|
|
6387
|
+
var n = Uo(y, e);
|
|
6361
6388
|
n < 0 || o(C(C({}, v), {}, {
|
|
6362
6389
|
children: wo(v.children, n, t)
|
|
6363
6390
|
}));
|
|
6364
6391
|
}
|
|
6365
6392
|
return (0, t.jsxs)("section", {
|
|
6366
6393
|
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",
|
|
6367
|
-
children: [w(b),
|
|
6394
|
+
children: [w(b), T(Ho(r, v, o, l, _, f)), v.children.length === 0 ? null : (0, t.jsx)("div", {
|
|
6368
6395
|
className: "ml-3 flex min-w-0 flex-col pl-3 sm:ml-4 sm:pl-4",
|
|
6369
6396
|
children: y.map(function (e, n) {
|
|
6370
|
-
return (0, t.jsx)(
|
|
6397
|
+
return (0, t.jsx)(zo, {
|
|
6371
6398
|
child: e.draft,
|
|
6372
6399
|
childIndex: n,
|
|
6373
6400
|
disabled: r,
|
|
@@ -6393,18 +6420,12 @@ function Io(_ref99) {
|
|
|
6393
6420
|
function w(a) {
|
|
6394
6421
|
return (0, t.jsxs)("div", {
|
|
6395
6422
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-3",
|
|
6396
|
-
children: [(0, t.
|
|
6423
|
+
children: [(0, t.jsx)("span", {
|
|
6397
6424
|
className: "min-w-0",
|
|
6398
|
-
children:
|
|
6399
|
-
strong: !0,
|
|
6400
|
-
children: p("questionContentEditor.subquestion.childTitle", {
|
|
6401
|
-
index: h
|
|
6402
|
-
})
|
|
6403
|
-
}), (0, t.jsxs)(N.Text, {
|
|
6404
|
-
className: "block",
|
|
6425
|
+
children: (0, t.jsxs)(N.Text, {
|
|
6405
6426
|
type: "secondary",
|
|
6406
|
-
children: [p("questionContentEditor.subquestion.questionKind"), " \xB7", " ",
|
|
6407
|
-
})
|
|
6427
|
+
children: [p("questionContentEditor.subquestion.questionKind"), " \xB7", " ", Vo(g, e)]
|
|
6428
|
+
})
|
|
6408
6429
|
}), (0, t.jsxs)(xa, {
|
|
6409
6430
|
size: 4,
|
|
6410
6431
|
wrap: !0,
|
|
@@ -6447,15 +6468,21 @@ function Io(_ref99) {
|
|
|
6447
6468
|
})]
|
|
6448
6469
|
});
|
|
6449
6470
|
}
|
|
6471
|
+
function T(e) {
|
|
6472
|
+
return (0, t.jsx)(ko, {
|
|
6473
|
+
number: Do(m, u) ? h : null,
|
|
6474
|
+
children: e
|
|
6475
|
+
});
|
|
6476
|
+
}
|
|
6450
6477
|
}
|
|
6451
|
-
function
|
|
6478
|
+
function Bo(e, t) {
|
|
6452
6479
|
return $i(t, e.questionTypeKey);
|
|
6453
6480
|
}
|
|
6454
|
-
function
|
|
6481
|
+
function Vo(e, t) {
|
|
6455
6482
|
return e ? e.label : t.questionTypeKey;
|
|
6456
6483
|
}
|
|
6457
|
-
function
|
|
6458
|
-
return a.elements.length === 0 && a.extras.length === 0 ? null : (0, t.jsx)(
|
|
6484
|
+
function Ho(e, n, r, i, a, o) {
|
|
6485
|
+
return a.elements.length === 0 && a.extras.length === 0 ? null : (0, t.jsx)(Ao, {
|
|
6459
6486
|
child: n,
|
|
6460
6487
|
disabled: e,
|
|
6461
6488
|
onChange: r,
|
|
@@ -6464,21 +6491,21 @@ function zo(e, n, r, i, a, o) {
|
|
|
6464
6491
|
translator: o
|
|
6465
6492
|
});
|
|
6466
6493
|
}
|
|
6467
|
-
function
|
|
6494
|
+
function Uo(e, t) {
|
|
6468
6495
|
return e.findIndex(function (e) {
|
|
6469
6496
|
return e.runtimeId === t;
|
|
6470
6497
|
});
|
|
6471
6498
|
}
|
|
6472
|
-
function
|
|
6473
|
-
var e =
|
|
6474
|
-
n =
|
|
6475
|
-
r =
|
|
6476
|
-
i =
|
|
6477
|
-
a =
|
|
6478
|
-
o =
|
|
6479
|
-
s =
|
|
6499
|
+
function Wo(_ref101) {
|
|
6500
|
+
var e = _ref101.disabled,
|
|
6501
|
+
n = _ref101.hasAnswer,
|
|
6502
|
+
r = _ref101.item,
|
|
6503
|
+
i = _ref101.onChange,
|
|
6504
|
+
a = _ref101.richTextControls,
|
|
6505
|
+
o = _ref101.questionTypeTemplates,
|
|
6506
|
+
s = _ref101.translator;
|
|
6480
6507
|
var c = s.t,
|
|
6481
|
-
l =
|
|
6508
|
+
l = Fo(r.children),
|
|
6482
6509
|
u = r.children.length;
|
|
6483
6510
|
function d(e) {
|
|
6484
6511
|
i(C(C({}, r), {}, {
|
|
@@ -6489,23 +6516,23 @@ function Vo(_ref100) {
|
|
|
6489
6516
|
d([].concat(_toConsumableArray(r.children), [e]));
|
|
6490
6517
|
}
|
|
6491
6518
|
function p(e, t) {
|
|
6492
|
-
var n =
|
|
6493
|
-
n < 0 || (
|
|
6519
|
+
var n = Go(l, e);
|
|
6520
|
+
n < 0 || (Io(r.children[n], t), d(r.children.map(function (e, r) {
|
|
6494
6521
|
return r === n ? t : e;
|
|
6495
6522
|
})));
|
|
6496
6523
|
}
|
|
6497
6524
|
function m(e) {
|
|
6498
|
-
var t =
|
|
6525
|
+
var t = Go(l, e);
|
|
6499
6526
|
t < 0 || d(r.children.filter(function (e, n) {
|
|
6500
6527
|
return n !== t;
|
|
6501
6528
|
}));
|
|
6502
6529
|
}
|
|
6503
6530
|
function h(e, t) {
|
|
6504
|
-
var n =
|
|
6531
|
+
var n = Go(l, e);
|
|
6505
6532
|
n < 0 || d(wo(r.children, n, t));
|
|
6506
6533
|
}
|
|
6507
6534
|
function g(i, c) {
|
|
6508
|
-
return (0, t.jsx)(
|
|
6535
|
+
return (0, t.jsx)(zo, {
|
|
6509
6536
|
child: i.draft,
|
|
6510
6537
|
childIndex: c,
|
|
6511
6538
|
disabled: e,
|
|
@@ -6560,22 +6587,22 @@ function Vo(_ref100) {
|
|
|
6560
6587
|
})]
|
|
6561
6588
|
});
|
|
6562
6589
|
}
|
|
6563
|
-
function
|
|
6590
|
+
function Go(e, t) {
|
|
6564
6591
|
return e.findIndex(function (e) {
|
|
6565
6592
|
return e.runtimeId === t;
|
|
6566
6593
|
});
|
|
6567
6594
|
}
|
|
6568
|
-
function
|
|
6569
|
-
var
|
|
6570
|
-
r =
|
|
6571
|
-
|
|
6572
|
-
i =
|
|
6573
|
-
a =
|
|
6574
|
-
o =
|
|
6575
|
-
s =
|
|
6576
|
-
c =
|
|
6595
|
+
function Ko(_ref102) {
|
|
6596
|
+
var _ref102$disabled = _ref102.disabled,
|
|
6597
|
+
r = _ref102$disabled === void 0 ? !1 : _ref102$disabled,
|
|
6598
|
+
_ref102$locale = _ref102.locale,
|
|
6599
|
+
i = _ref102$locale === void 0 ? "zh-CN" : _ref102$locale,
|
|
6600
|
+
a = _ref102.onChange,
|
|
6601
|
+
o = _ref102.questionTypeTemplates,
|
|
6602
|
+
s = _ref102.uploadImage,
|
|
6603
|
+
c = _ref102.value;
|
|
6577
6604
|
var l = ea(c, o);
|
|
6578
|
-
|
|
6605
|
+
Lo(c.children, l.children);
|
|
6579
6606
|
var u = ca(i),
|
|
6580
6607
|
d = u.t,
|
|
6581
6608
|
f = Zi(o, l),
|
|
@@ -6609,9 +6636,9 @@ function Uo(_ref101) {
|
|
|
6609
6636
|
var a = Xt(l, n, e);
|
|
6610
6637
|
return (0, t.jsx)(vo, {
|
|
6611
6638
|
disabled: r,
|
|
6612
|
-
element:
|
|
6639
|
+
element: qo(e),
|
|
6613
6640
|
hasAnswer: i,
|
|
6614
|
-
item:
|
|
6641
|
+
item: Jo(a),
|
|
6615
6642
|
onChange: function onChange(t) {
|
|
6616
6643
|
return h(n, {
|
|
6617
6644
|
content: t.content,
|
|
@@ -6630,7 +6657,7 @@ function Uo(_ref101) {
|
|
|
6630
6657
|
className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white p-4",
|
|
6631
6658
|
children: g(e, n, f.hasAnswer)
|
|
6632
6659
|
}, "".concat(e.type, "-").concat(n));
|
|
6633
|
-
}), Rt(f) || l.children.length > 0 ? (0, t.jsx)(
|
|
6660
|
+
}), Rt(f) || l.children.length > 0 ? (0, t.jsx)(Wo, {
|
|
6634
6661
|
disabled: r,
|
|
6635
6662
|
hasAnswer: f.hasAnswer,
|
|
6636
6663
|
item: l,
|
|
@@ -6660,27 +6687,27 @@ function Uo(_ref101) {
|
|
|
6660
6687
|
})]
|
|
6661
6688
|
});
|
|
6662
6689
|
}
|
|
6663
|
-
function
|
|
6690
|
+
function qo(e) {
|
|
6664
6691
|
return {
|
|
6665
6692
|
config: {},
|
|
6666
6693
|
name: e.name,
|
|
6667
6694
|
type: "richText"
|
|
6668
6695
|
};
|
|
6669
6696
|
}
|
|
6670
|
-
function
|
|
6697
|
+
function Jo(e) {
|
|
6671
6698
|
return {
|
|
6672
6699
|
content: e.content,
|
|
6673
6700
|
type: "richText"
|
|
6674
6701
|
};
|
|
6675
6702
|
}
|
|
6676
|
-
function
|
|
6703
|
+
function Yo(e, t) {
|
|
6677
6704
|
return {
|
|
6678
6705
|
elements: e.elements.map(function (e) {
|
|
6679
|
-
return
|
|
6706
|
+
return os(e, t);
|
|
6680
6707
|
}),
|
|
6681
6708
|
extras: e.extras.map(function (e) {
|
|
6682
6709
|
return {
|
|
6683
|
-
name:
|
|
6710
|
+
name: cs(e, ge(e.type), _e(e.type), t),
|
|
6684
6711
|
type: e.type
|
|
6685
6712
|
};
|
|
6686
6713
|
}),
|
|
@@ -6688,31 +6715,31 @@ function Ko(e, t) {
|
|
|
6688
6715
|
isComposite: !1
|
|
6689
6716
|
};
|
|
6690
6717
|
}
|
|
6691
|
-
function
|
|
6718
|
+
function Xo(e, t) {
|
|
6692
6719
|
if (!e) return null;
|
|
6693
6720
|
var n = Yi(t, e.questionTypeKey);
|
|
6694
|
-
return n ? C(C({}, cn(n,
|
|
6721
|
+
return n ? C(C({}, cn(n, $o(e))), {}, {
|
|
6695
6722
|
children: e.children.map(function (e) {
|
|
6696
|
-
var n =
|
|
6723
|
+
var n = Xo(e, t);
|
|
6697
6724
|
if (!n) throw Error("\u5B50\u9898\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");
|
|
6698
6725
|
return n;
|
|
6699
6726
|
})
|
|
6700
6727
|
}) : null;
|
|
6701
6728
|
}
|
|
6702
|
-
function
|
|
6729
|
+
function Zo(e) {
|
|
6703
6730
|
return {
|
|
6704
6731
|
description: e.description,
|
|
6705
|
-
elements: e.elements.map(
|
|
6706
|
-
extras: e.extras.map(
|
|
6732
|
+
elements: e.elements.map(ns),
|
|
6733
|
+
extras: e.extras.map(as),
|
|
6707
6734
|
globalConfig: C({}, e.globalConfig),
|
|
6708
6735
|
isSubjective: e.isSubjective,
|
|
6709
6736
|
version: e.version
|
|
6710
6737
|
};
|
|
6711
6738
|
}
|
|
6712
|
-
function
|
|
6713
|
-
return e.globalConfig.hasAnswer !== t.globalConfig.hasAnswer || e.elements.length !== t.elements.length || e.extras.length !== t.extras.length ||
|
|
6739
|
+
function Qo(e, t) {
|
|
6740
|
+
return e.globalConfig.hasAnswer !== t.globalConfig.hasAnswer || e.elements.length !== t.elements.length || e.extras.length !== t.extras.length || es(e.elements, t.elements) || ts(e.extras, t.extras) ? "shape" : "metadata";
|
|
6714
6741
|
}
|
|
6715
|
-
function
|
|
6742
|
+
function $o(e) {
|
|
6716
6743
|
return {
|
|
6717
6744
|
questionTypeKey: e.questionTypeKey,
|
|
6718
6745
|
children: [],
|
|
@@ -6722,22 +6749,22 @@ function Xo(e) {
|
|
|
6722
6749
|
version: e.version
|
|
6723
6750
|
};
|
|
6724
6751
|
}
|
|
6725
|
-
function
|
|
6752
|
+
function es(e, t) {
|
|
6726
6753
|
return e.some(function (e, n) {
|
|
6727
6754
|
var r = t.slice(n, n + 1)[0];
|
|
6728
6755
|
return !r || e.clientId !== r.clientId || e.type !== r.type || JSON.stringify(e.config) !== JSON.stringify(r.config);
|
|
6729
6756
|
});
|
|
6730
6757
|
}
|
|
6731
|
-
function
|
|
6758
|
+
function ts(e, t) {
|
|
6732
6759
|
return e.some(function (e, n) {
|
|
6733
6760
|
var r = t.slice(n, n + 1)[0];
|
|
6734
6761
|
return !r || e.clientId !== r.clientId || e.type !== r.type;
|
|
6735
6762
|
});
|
|
6736
6763
|
}
|
|
6737
|
-
function
|
|
6738
|
-
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ?
|
|
6764
|
+
function ns(e) {
|
|
6765
|
+
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? is(e) : rs(e);
|
|
6739
6766
|
}
|
|
6740
|
-
function
|
|
6767
|
+
function rs(e) {
|
|
6741
6768
|
switch (e.type) {
|
|
6742
6769
|
case "inlineFill":
|
|
6743
6770
|
return {
|
|
@@ -6783,7 +6810,7 @@ function es(e) {
|
|
|
6783
6810
|
};
|
|
6784
6811
|
}
|
|
6785
6812
|
}
|
|
6786
|
-
function
|
|
6813
|
+
function is(e) {
|
|
6787
6814
|
return {
|
|
6788
6815
|
config: {},
|
|
6789
6816
|
enName: e.enName,
|
|
@@ -6791,21 +6818,21 @@ function ts(e) {
|
|
|
6791
6818
|
type: e.type
|
|
6792
6819
|
};
|
|
6793
6820
|
}
|
|
6794
|
-
function
|
|
6821
|
+
function as(e) {
|
|
6795
6822
|
return {
|
|
6796
6823
|
enName: e.enName,
|
|
6797
6824
|
name: e.name,
|
|
6798
6825
|
type: e.type
|
|
6799
6826
|
};
|
|
6800
6827
|
}
|
|
6801
|
-
function
|
|
6828
|
+
function os(e, t) {
|
|
6802
6829
|
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? {
|
|
6803
6830
|
config: {},
|
|
6804
|
-
name:
|
|
6831
|
+
name: cs(e, E(e.type), D(e.type), t),
|
|
6805
6832
|
type: e.type
|
|
6806
|
-
} :
|
|
6833
|
+
} : ss(e, t);
|
|
6807
6834
|
}
|
|
6808
|
-
function
|
|
6835
|
+
function ss(e, t) {
|
|
6809
6836
|
switch (e.type) {
|
|
6810
6837
|
case "inlineFill":
|
|
6811
6838
|
return {
|
|
@@ -6813,7 +6840,7 @@ function is(e, t) {
|
|
|
6813
6840
|
allowCandidateReuse: !!e.config.allowCandidateReuse,
|
|
6814
6841
|
candidateMode: e.config.candidateMode
|
|
6815
6842
|
},
|
|
6816
|
-
name:
|
|
6843
|
+
name: cs(e, E("inlineFill"), D("inlineFill"), t),
|
|
6817
6844
|
type: "inlineFill"
|
|
6818
6845
|
};
|
|
6819
6846
|
case "wordBuilder":
|
|
@@ -6821,7 +6848,7 @@ function is(e, t) {
|
|
|
6821
6848
|
config: {
|
|
6822
6849
|
builderMode: e.config.builderMode
|
|
6823
6850
|
},
|
|
6824
|
-
name:
|
|
6851
|
+
name: cs(e, E("wordBuilder"), D("wordBuilder"), t),
|
|
6825
6852
|
type: "wordBuilder"
|
|
6826
6853
|
};
|
|
6827
6854
|
case "judgement":
|
|
@@ -6829,7 +6856,7 @@ function is(e, t) {
|
|
|
6829
6856
|
config: {
|
|
6830
6857
|
judgeAnswerMode: e.config.judgeAnswerMode
|
|
6831
6858
|
},
|
|
6832
|
-
name:
|
|
6859
|
+
name: cs(e, E("judgement"), D("judgement"), t),
|
|
6833
6860
|
type: "judgement"
|
|
6834
6861
|
};
|
|
6835
6862
|
case "choice":
|
|
@@ -6839,7 +6866,7 @@ function is(e, t) {
|
|
|
6839
6866
|
renderer: e.config.renderer,
|
|
6840
6867
|
selectionType: e.config.selectionType
|
|
6841
6868
|
},
|
|
6842
|
-
name:
|
|
6869
|
+
name: cs(e, E("choice"), D("choice"), t),
|
|
6843
6870
|
type: "choice"
|
|
6844
6871
|
};
|
|
6845
6872
|
case "lineConnect":
|
|
@@ -6849,7 +6876,7 @@ function is(e, t) {
|
|
|
6849
6876
|
return C({}, e);
|
|
6850
6877
|
})
|
|
6851
6878
|
},
|
|
6852
|
-
name:
|
|
6879
|
+
name: cs(e, E("lineConnect"), D("lineConnect"), t),
|
|
6853
6880
|
type: "lineConnect"
|
|
6854
6881
|
};
|
|
6855
6882
|
case "matching":
|
|
@@ -6859,12 +6886,12 @@ function is(e, t) {
|
|
|
6859
6886
|
return C({}, e);
|
|
6860
6887
|
})
|
|
6861
6888
|
},
|
|
6862
|
-
name:
|
|
6889
|
+
name: cs(e, E("matching"), D("matching"), t),
|
|
6863
6890
|
type: "matching"
|
|
6864
6891
|
};
|
|
6865
6892
|
}
|
|
6866
6893
|
}
|
|
6867
|
-
function
|
|
6894
|
+
function cs(e, t, n, r) {
|
|
6868
6895
|
var i;
|
|
6869
6896
|
if (r === "en-US") {
|
|
6870
6897
|
var a;
|
|
@@ -6872,82 +6899,82 @@ function as(e, t, n, r) {
|
|
|
6872
6899
|
}
|
|
6873
6900
|
return ((i = e.name) == null ? void 0 : i.trim()) || t;
|
|
6874
6901
|
}
|
|
6875
|
-
function
|
|
6876
|
-
return ea(
|
|
6902
|
+
function ls(e, t) {
|
|
6903
|
+
return ea(us(e), t);
|
|
6877
6904
|
}
|
|
6878
|
-
function
|
|
6905
|
+
function us(e) {
|
|
6879
6906
|
return {
|
|
6880
6907
|
questionTypeKey: e.questionTypeKey,
|
|
6881
|
-
children: e.children.map(
|
|
6882
|
-
elements: e.elements.map(
|
|
6908
|
+
children: e.children.map(us),
|
|
6909
|
+
elements: e.elements.map(ds),
|
|
6883
6910
|
extras: _toConsumableArray(e.extras),
|
|
6884
6911
|
id: e.id,
|
|
6885
6912
|
version: e.version
|
|
6886
6913
|
};
|
|
6887
6914
|
}
|
|
6888
|
-
function
|
|
6915
|
+
function ds(e) {
|
|
6889
6916
|
return e.type === "choice" ? C(C({}, e), {}, {
|
|
6890
6917
|
answers: e.answers === void 0 ? {
|
|
6891
6918
|
optionIds: []
|
|
6892
6919
|
} : e.answers
|
|
6893
6920
|
}) : e;
|
|
6894
6921
|
}
|
|
6895
|
-
var
|
|
6922
|
+
var fs = {
|
|
6896
6923
|
html: "",
|
|
6897
6924
|
json: [],
|
|
6898
6925
|
text: ""
|
|
6899
6926
|
};
|
|
6900
|
-
function
|
|
6901
|
-
|
|
6927
|
+
function ps(e, t) {
|
|
6928
|
+
ks(e, t);
|
|
6902
6929
|
var n = t.elements.filter(function (e) {
|
|
6903
6930
|
return e.type !== "richText";
|
|
6904
6931
|
});
|
|
6905
|
-
return
|
|
6932
|
+
return Ms("elementAnswers", e.items.length, n.length), Ms("children", e.children.length, t.children.length), {
|
|
6906
6933
|
children: e.children.map(function (e, n) {
|
|
6907
|
-
return
|
|
6934
|
+
return ps(e, t.children[n]);
|
|
6908
6935
|
}),
|
|
6909
6936
|
elementAnswers: e.items.map(function (e, t) {
|
|
6910
|
-
return
|
|
6937
|
+
return hs(e, n[t]);
|
|
6911
6938
|
}),
|
|
6912
6939
|
id: t.id,
|
|
6913
6940
|
questionTypeKey: t.questionTypeKey,
|
|
6914
6941
|
version: t.version
|
|
6915
6942
|
};
|
|
6916
6943
|
}
|
|
6917
|
-
function
|
|
6918
|
-
|
|
6944
|
+
function ms(e, t) {
|
|
6945
|
+
ks(e, t);
|
|
6919
6946
|
var n = t.elements.filter(function (e) {
|
|
6920
6947
|
return e.type !== "richText";
|
|
6921
6948
|
});
|
|
6922
|
-
return
|
|
6949
|
+
return Ms("elementAnswers", e.elementAnswers.length, n.length), Ms("children", e.children.length, t.children.length), {
|
|
6923
6950
|
children: e.children.map(function (e, n) {
|
|
6924
|
-
return
|
|
6951
|
+
return ms(e, t.children[n]);
|
|
6925
6952
|
}),
|
|
6926
6953
|
id: t.id,
|
|
6927
6954
|
items: e.elementAnswers.map(function (e, t) {
|
|
6928
|
-
return
|
|
6955
|
+
return vs(e, n[t]);
|
|
6929
6956
|
}),
|
|
6930
6957
|
questionTypeKey: t.questionTypeKey,
|
|
6931
6958
|
version: t.version
|
|
6932
6959
|
};
|
|
6933
6960
|
}
|
|
6934
|
-
function
|
|
6935
|
-
switch (
|
|
6961
|
+
function hs(e, t) {
|
|
6962
|
+
switch (As(e.type, t.type), e.type) {
|
|
6936
6963
|
case "fill":
|
|
6937
|
-
return
|
|
6938
|
-
answers:
|
|
6964
|
+
return js(t, "fill"), {
|
|
6965
|
+
answers: xs(t, e.answers),
|
|
6939
6966
|
type: e.type
|
|
6940
6967
|
};
|
|
6941
6968
|
case "inlineFill":
|
|
6942
|
-
return
|
|
6943
|
-
answers:
|
|
6969
|
+
return js(t, "inlineFill"), {
|
|
6970
|
+
answers: Ss(t, e.answers),
|
|
6944
6971
|
type: e.type
|
|
6945
6972
|
};
|
|
6946
6973
|
default:
|
|
6947
|
-
return
|
|
6974
|
+
return gs(e);
|
|
6948
6975
|
}
|
|
6949
6976
|
}
|
|
6950
|
-
function
|
|
6977
|
+
function gs(e) {
|
|
6951
6978
|
switch (e.type) {
|
|
6952
6979
|
case "choice":
|
|
6953
6980
|
return {
|
|
@@ -6978,10 +7005,10 @@ function ps(e) {
|
|
|
6978
7005
|
type: e.type
|
|
6979
7006
|
};
|
|
6980
7007
|
default:
|
|
6981
|
-
return
|
|
7008
|
+
return _s(e);
|
|
6982
7009
|
}
|
|
6983
7010
|
}
|
|
6984
|
-
function
|
|
7011
|
+
function _s(e) {
|
|
6985
7012
|
switch (e.type) {
|
|
6986
7013
|
case "ordering":
|
|
6987
7014
|
return {
|
|
@@ -7000,23 +7027,23 @@ function ms(e) {
|
|
|
7000
7027
|
};
|
|
7001
7028
|
}
|
|
7002
7029
|
}
|
|
7003
|
-
function
|
|
7004
|
-
switch (
|
|
7030
|
+
function vs(e, t) {
|
|
7031
|
+
switch (As(e.type, t.type), e.type) {
|
|
7005
7032
|
case "fill":
|
|
7006
7033
|
return {
|
|
7007
|
-
answers:
|
|
7034
|
+
answers: Ts(e.answers),
|
|
7008
7035
|
type: e.type
|
|
7009
7036
|
};
|
|
7010
7037
|
case "inlineFill":
|
|
7011
|
-
return
|
|
7012
|
-
answers:
|
|
7038
|
+
return js(t, "inlineFill"), {
|
|
7039
|
+
answers: Es(t, e.answers),
|
|
7013
7040
|
type: e.type
|
|
7014
7041
|
};
|
|
7015
7042
|
default:
|
|
7016
|
-
return
|
|
7043
|
+
return ys(e);
|
|
7017
7044
|
}
|
|
7018
7045
|
}
|
|
7019
|
-
function
|
|
7046
|
+
function ys(e) {
|
|
7020
7047
|
switch (e.type) {
|
|
7021
7048
|
case "choice":
|
|
7022
7049
|
return {
|
|
@@ -7041,14 +7068,14 @@ function gs(e) {
|
|
|
7041
7068
|
case "lineConnect":
|
|
7042
7069
|
case "matching":
|
|
7043
7070
|
return {
|
|
7044
|
-
connections:
|
|
7071
|
+
connections: Ds(e.answers),
|
|
7045
7072
|
type: e.type
|
|
7046
7073
|
};
|
|
7047
7074
|
default:
|
|
7048
|
-
return
|
|
7075
|
+
return bs(e);
|
|
7049
7076
|
}
|
|
7050
7077
|
}
|
|
7051
|
-
function
|
|
7078
|
+
function bs(e) {
|
|
7052
7079
|
switch (e.type) {
|
|
7053
7080
|
case "ordering":
|
|
7054
7081
|
return {
|
|
@@ -7067,11 +7094,11 @@ function _s(e) {
|
|
|
7067
7094
|
};
|
|
7068
7095
|
}
|
|
7069
7096
|
}
|
|
7070
|
-
function
|
|
7097
|
+
function xs(e, t) {
|
|
7071
7098
|
return k(e.answers, e.blanks).map(function (e) {
|
|
7072
7099
|
var n;
|
|
7073
7100
|
return {
|
|
7074
|
-
answerPools: [
|
|
7101
|
+
answerPools: [Os((n = e.blankIds.map(function (e) {
|
|
7075
7102
|
var n;
|
|
7076
7103
|
return (n = t[e]) == null ? "" : n;
|
|
7077
7104
|
}).find(Boolean)) == null ? "" : n)],
|
|
@@ -7079,31 +7106,31 @@ function vs(e, t) {
|
|
|
7079
7106
|
};
|
|
7080
7107
|
});
|
|
7081
7108
|
}
|
|
7082
|
-
function
|
|
7109
|
+
function Ss(e, t) {
|
|
7083
7110
|
return e.blanks.map(function (n) {
|
|
7084
7111
|
return {
|
|
7085
|
-
answerPools: [
|
|
7112
|
+
answerPools: [Os(Cs(e, n, t[n]))],
|
|
7086
7113
|
blankIds: [n]
|
|
7087
7114
|
};
|
|
7088
7115
|
});
|
|
7089
7116
|
}
|
|
7090
|
-
function
|
|
7117
|
+
function Cs(e, t, n) {
|
|
7091
7118
|
var r;
|
|
7092
7119
|
if (!n) return "";
|
|
7093
7120
|
if (n.kind === "text") return n.value;
|
|
7094
|
-
var i =
|
|
7121
|
+
var i = ws(e, t).find(function (e) {
|
|
7095
7122
|
return n.optionIds.includes(e.optionId);
|
|
7096
7123
|
});
|
|
7097
7124
|
return (r = i == null ? void 0 : i.content.text) == null ? "" : r;
|
|
7098
7125
|
}
|
|
7099
|
-
function
|
|
7126
|
+
function ws(e, t) {
|
|
7100
7127
|
var n, r;
|
|
7101
7128
|
var i = (n = e.blankOptionGroups) == null || (n = n.find(function (e) {
|
|
7102
7129
|
return e.blankId === t;
|
|
7103
7130
|
})) == null ? void 0 : n.options;
|
|
7104
7131
|
return [].concat(_toConsumableArray(i == null ? [] : i), _toConsumableArray((r = e.candidateOptions) == null ? [] : r));
|
|
7105
7132
|
}
|
|
7106
|
-
function
|
|
7133
|
+
function Ts(e) {
|
|
7107
7134
|
return e.reduce(function (e, t) {
|
|
7108
7135
|
return t.blankIds.reduce(function (e, n) {
|
|
7109
7136
|
var r, i;
|
|
@@ -7111,11 +7138,11 @@ function Ss(e) {
|
|
|
7111
7138
|
}, e);
|
|
7112
7139
|
}, {});
|
|
7113
7140
|
}
|
|
7114
|
-
function
|
|
7115
|
-
return Object.entries(
|
|
7116
|
-
var
|
|
7117
|
-
n =
|
|
7118
|
-
r =
|
|
7141
|
+
function Es(e, t) {
|
|
7142
|
+
return Object.entries(Ts(t)).reduce(function (t, _ref103) {
|
|
7143
|
+
var _ref104 = _slicedToArray(_ref103, 2),
|
|
7144
|
+
n = _ref104[0],
|
|
7145
|
+
r = _ref104[1];
|
|
7119
7146
|
var i, a, o;
|
|
7120
7147
|
var s = [].concat(_toConsumableArray((i = (a = e.blankOptionGroups) == null || (a = a.find(function (e) {
|
|
7121
7148
|
return e.blankId === n;
|
|
@@ -7132,107 +7159,107 @@ function Cs(e, t) {
|
|
|
7132
7159
|
return C(C({}, t), {}, _defineProperty({}, n, c));
|
|
7133
7160
|
}, {});
|
|
7134
7161
|
}
|
|
7135
|
-
function
|
|
7162
|
+
function Ds(e) {
|
|
7136
7163
|
return Object.keys(e).reduce(function (t, n) {
|
|
7137
7164
|
return C(C({}, t), {}, _defineProperty({}, n, _toConsumableArray(e[n])));
|
|
7138
7165
|
}, {});
|
|
7139
7166
|
}
|
|
7140
|
-
function
|
|
7141
|
-
return e.length === 0 ?
|
|
7167
|
+
function Os(e) {
|
|
7168
|
+
return e.length === 0 ? fs : {
|
|
7142
7169
|
html: e,
|
|
7143
7170
|
json: [],
|
|
7144
7171
|
text: e
|
|
7145
7172
|
};
|
|
7146
7173
|
}
|
|
7147
|
-
function
|
|
7174
|
+
function ks(e, t) {
|
|
7148
7175
|
if (e.id !== t.id || e.questionTypeKey !== t.questionTypeKey || e.version !== t.version) throw Error("QuestionPlayer response identity mismatch: questionId=".concat(String(t.id), ", responseId=").concat(String(e.id), ", questionTypeKey=").concat(String(t.questionTypeKey), ", responseQuestionTypeKey=").concat(String(e.questionTypeKey), ", questionVersion=").concat(t.version, ", responseVersion=").concat(e.version));
|
|
7149
7176
|
}
|
|
7150
|
-
function
|
|
7177
|
+
function As(e, t) {
|
|
7151
7178
|
if (e !== t) throw Error("QuestionPlayer response element mismatch: expected=".concat(t, ", actual=").concat(e));
|
|
7152
7179
|
}
|
|
7153
|
-
function
|
|
7180
|
+
function js(e, t) {
|
|
7154
7181
|
if (e.type !== t) throw Error("QuestionPlayer content element mismatch: expected=".concat(t, ", actual=").concat(e.type));
|
|
7155
7182
|
}
|
|
7156
|
-
function
|
|
7183
|
+
function Ms(e, t, n) {
|
|
7157
7184
|
if (t !== n) throw Error("QuestionPlayer response ".concat(e, " length mismatch: expected=").concat(n, ", actual=").concat(t));
|
|
7158
7185
|
}
|
|
7159
|
-
function
|
|
7160
|
-
var n =
|
|
7161
|
-
return
|
|
7186
|
+
function Ns(e, t) {
|
|
7187
|
+
var n = ls(e, t);
|
|
7188
|
+
return ps(Ps(n, t), n);
|
|
7162
7189
|
}
|
|
7163
|
-
function
|
|
7190
|
+
function Ps(e, t) {
|
|
7164
7191
|
var n = Yi(t, e.questionTypeKey),
|
|
7165
7192
|
r = n ? Rt(n) : !1;
|
|
7166
7193
|
return {
|
|
7167
7194
|
questionTypeKey: e.questionTypeKey,
|
|
7168
7195
|
children: e.children.map(function (e) {
|
|
7169
|
-
return
|
|
7196
|
+
return Ps(e, t);
|
|
7170
7197
|
}),
|
|
7171
7198
|
id: e.id,
|
|
7172
7199
|
items: !n || r ? [] : n.elements.reduce(function (t, n, r) {
|
|
7173
|
-
var i =
|
|
7200
|
+
var i = tc(n, Yt(e, r, n));
|
|
7174
7201
|
return i ? [].concat(_toConsumableArray(t), [i]) : t;
|
|
7175
7202
|
}, []),
|
|
7176
7203
|
version: e.version
|
|
7177
7204
|
};
|
|
7178
7205
|
}
|
|
7179
|
-
function
|
|
7206
|
+
function Fs(e, t) {
|
|
7180
7207
|
var n;
|
|
7181
7208
|
return (n = V(e, t, "choice")) == null ? {
|
|
7182
7209
|
selectedOptionIds: [],
|
|
7183
7210
|
type: "choice"
|
|
7184
7211
|
} : n;
|
|
7185
7212
|
}
|
|
7186
|
-
function
|
|
7213
|
+
function Is(e, t, n) {
|
|
7187
7214
|
var r;
|
|
7188
7215
|
return (r = V(e, t, "fill")) == null ? {
|
|
7189
|
-
answers:
|
|
7216
|
+
answers: mc(n),
|
|
7190
7217
|
type: "fill"
|
|
7191
7218
|
} : r;
|
|
7192
7219
|
}
|
|
7193
|
-
function
|
|
7220
|
+
function Ls(e, t, n, r) {
|
|
7194
7221
|
var i;
|
|
7195
7222
|
return (i = V(e, t, "inlineFill")) == null ? {
|
|
7196
|
-
answers:
|
|
7223
|
+
answers: hc(n, r),
|
|
7197
7224
|
type: "inlineFill"
|
|
7198
7225
|
} : i;
|
|
7199
7226
|
}
|
|
7200
|
-
function
|
|
7227
|
+
function Rs(e, t, n) {
|
|
7201
7228
|
var r;
|
|
7202
7229
|
return (r = V(e, t, "wordBuilder")) == null ? {
|
|
7203
|
-
answers:
|
|
7230
|
+
answers: mc(n),
|
|
7204
7231
|
type: "wordBuilder"
|
|
7205
7232
|
} : r;
|
|
7206
7233
|
}
|
|
7207
|
-
function
|
|
7234
|
+
function zs(e, t) {
|
|
7208
7235
|
var n;
|
|
7209
7236
|
return (n = V(e, t, "judgement")) == null ? {
|
|
7210
7237
|
selectedValues: [],
|
|
7211
7238
|
type: "judgement"
|
|
7212
7239
|
} : n;
|
|
7213
7240
|
}
|
|
7214
|
-
function
|
|
7241
|
+
function Bs(e, t) {
|
|
7215
7242
|
var n;
|
|
7216
7243
|
return (n = V(e, t, "classification")) == null ? {
|
|
7217
7244
|
placements: {},
|
|
7218
7245
|
type: "classification"
|
|
7219
7246
|
} : n;
|
|
7220
7247
|
}
|
|
7221
|
-
function
|
|
7248
|
+
function Vs(e, t) {
|
|
7222
7249
|
var n;
|
|
7223
7250
|
return (n = V(e, t, "lineConnect")) == null ? {
|
|
7224
7251
|
connections: {},
|
|
7225
7252
|
type: "lineConnect"
|
|
7226
7253
|
} : n;
|
|
7227
7254
|
}
|
|
7228
|
-
function
|
|
7255
|
+
function Hs(e, t) {
|
|
7229
7256
|
var n;
|
|
7230
7257
|
return (n = V(e, t, "matching")) == null ? {
|
|
7231
7258
|
connections: {},
|
|
7232
7259
|
type: "matching"
|
|
7233
7260
|
} : n;
|
|
7234
7261
|
}
|
|
7235
|
-
function
|
|
7262
|
+
function Us(e, t, n) {
|
|
7236
7263
|
var r;
|
|
7237
7264
|
return (r = V(e, t, "ordering")) == null ? {
|
|
7238
7265
|
orderedOptionIds: n.sortOptions.map(function (e) {
|
|
@@ -7241,137 +7268,137 @@ function Bs(e, t, n) {
|
|
|
7241
7268
|
type: "ordering"
|
|
7242
7269
|
} : r;
|
|
7243
7270
|
}
|
|
7244
|
-
function
|
|
7271
|
+
function Ws(e, t) {
|
|
7245
7272
|
var n;
|
|
7246
7273
|
return (n = V(e, t, "textMarker")) == null ? {
|
|
7247
7274
|
selectedMarkers: [],
|
|
7248
7275
|
type: "textMarker"
|
|
7249
7276
|
} : n;
|
|
7250
7277
|
}
|
|
7251
|
-
function
|
|
7278
|
+
function Gs(e, t) {
|
|
7252
7279
|
var n;
|
|
7253
7280
|
return (n = V(e, t, "textResponse")) == null ? {
|
|
7254
7281
|
content: O(),
|
|
7255
7282
|
type: "textResponse"
|
|
7256
7283
|
} : n;
|
|
7257
7284
|
}
|
|
7258
|
-
function
|
|
7285
|
+
function Ks(e, t, n) {
|
|
7259
7286
|
return C(C({}, e), {}, {
|
|
7260
7287
|
items: e.items.map(function (e, r) {
|
|
7261
7288
|
return r === t ? n : e;
|
|
7262
7289
|
})
|
|
7263
7290
|
});
|
|
7264
7291
|
}
|
|
7265
|
-
function
|
|
7292
|
+
function qs(e, t, n) {
|
|
7266
7293
|
return C(C({}, e), {}, {
|
|
7267
7294
|
children: e.children.map(function (e, r) {
|
|
7268
7295
|
return r === t ? n : e;
|
|
7269
7296
|
})
|
|
7270
7297
|
});
|
|
7271
7298
|
}
|
|
7272
|
-
function
|
|
7299
|
+
function Js(e, t, n) {
|
|
7273
7300
|
return Fe(e, t, n);
|
|
7274
7301
|
}
|
|
7275
|
-
function
|
|
7302
|
+
function Ys(e, t) {
|
|
7276
7303
|
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "single";
|
|
7277
7304
|
return {
|
|
7278
7305
|
kind: "option",
|
|
7279
7306
|
optionIds: Fe((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
|
|
7280
7307
|
};
|
|
7281
7308
|
}
|
|
7282
|
-
function
|
|
7309
|
+
function Xs(e, t, n) {
|
|
7283
7310
|
return nt(e, t, n);
|
|
7284
7311
|
}
|
|
7285
|
-
function
|
|
7312
|
+
function Zs(e, t, n) {
|
|
7286
7313
|
return dt(e, t, n);
|
|
7287
7314
|
}
|
|
7288
|
-
function
|
|
7315
|
+
function Qs(e, t, n) {
|
|
7289
7316
|
return Ke(e, t, n);
|
|
7290
7317
|
}
|
|
7291
|
-
function
|
|
7318
|
+
function $s(e, t, n, r) {
|
|
7292
7319
|
return Mr(e, t.sortOptions, n, r);
|
|
7293
7320
|
}
|
|
7294
|
-
function
|
|
7321
|
+
function ec(e, t) {
|
|
7295
7322
|
return e.includes(t) ? e.filter(function (e) {
|
|
7296
7323
|
return e !== t;
|
|
7297
7324
|
}) : [].concat(_toConsumableArray(e), [t]);
|
|
7298
7325
|
}
|
|
7299
|
-
function
|
|
7326
|
+
function tc(e, t) {
|
|
7300
7327
|
return e.type === "richText" ? null : e.type === "textResponse" ? {
|
|
7301
7328
|
content: O(),
|
|
7302
7329
|
type: "textResponse"
|
|
7303
|
-
} : e.type === "ordering" ?
|
|
7330
|
+
} : e.type === "ordering" ? fc(t) : e.type === "classification" ? rc(t) : e.type === "fill" ? oc(t) : nc(e, t);
|
|
7304
7331
|
}
|
|
7305
|
-
function
|
|
7332
|
+
function nc(e, t) {
|
|
7306
7333
|
switch (e.type) {
|
|
7307
7334
|
case "choice":
|
|
7308
|
-
return
|
|
7335
|
+
return ac();
|
|
7309
7336
|
case "inlineFill":
|
|
7310
|
-
return
|
|
7337
|
+
return sc(e, t);
|
|
7311
7338
|
case "wordBuilder":
|
|
7312
|
-
return
|
|
7339
|
+
return ic(t);
|
|
7313
7340
|
case "judgement":
|
|
7314
|
-
return
|
|
7341
|
+
return cc();
|
|
7315
7342
|
case "lineConnect":
|
|
7316
|
-
return
|
|
7343
|
+
return lc();
|
|
7317
7344
|
case "matching":
|
|
7318
|
-
return sc();
|
|
7319
|
-
case "textMarker":
|
|
7320
7345
|
return uc();
|
|
7346
|
+
case "textMarker":
|
|
7347
|
+
return pc();
|
|
7321
7348
|
}
|
|
7322
7349
|
}
|
|
7323
|
-
function
|
|
7350
|
+
function rc(e) {
|
|
7324
7351
|
return e.type === "classification" ? {
|
|
7325
|
-
placements:
|
|
7352
|
+
placements: dc({}, e),
|
|
7326
7353
|
type: "classification"
|
|
7327
7354
|
} : null;
|
|
7328
7355
|
}
|
|
7329
|
-
function
|
|
7356
|
+
function ic(e) {
|
|
7330
7357
|
return e.type === "wordBuilder" ? {
|
|
7331
|
-
answers:
|
|
7358
|
+
answers: mc(e.blanks),
|
|
7332
7359
|
type: "wordBuilder"
|
|
7333
7360
|
} : null;
|
|
7334
7361
|
}
|
|
7335
|
-
function
|
|
7362
|
+
function ac() {
|
|
7336
7363
|
return {
|
|
7337
7364
|
selectedOptionIds: [],
|
|
7338
7365
|
type: "choice"
|
|
7339
7366
|
};
|
|
7340
7367
|
}
|
|
7341
|
-
function
|
|
7368
|
+
function oc(e) {
|
|
7342
7369
|
return e.type === "fill" ? {
|
|
7343
|
-
answers:
|
|
7370
|
+
answers: mc(e.blanks),
|
|
7344
7371
|
type: "fill"
|
|
7345
7372
|
} : null;
|
|
7346
7373
|
}
|
|
7347
|
-
function
|
|
7374
|
+
function sc(e, t) {
|
|
7348
7375
|
return t.type === "inlineFill" ? {
|
|
7349
|
-
answers:
|
|
7376
|
+
answers: hc(e, t.blanks),
|
|
7350
7377
|
type: "inlineFill"
|
|
7351
7378
|
} : null;
|
|
7352
7379
|
}
|
|
7353
|
-
function
|
|
7380
|
+
function cc() {
|
|
7354
7381
|
return {
|
|
7355
7382
|
selectedValues: [],
|
|
7356
7383
|
type: "judgement"
|
|
7357
7384
|
};
|
|
7358
7385
|
}
|
|
7359
|
-
function
|
|
7386
|
+
function lc() {
|
|
7360
7387
|
return {
|
|
7361
7388
|
connections: {},
|
|
7362
7389
|
type: "lineConnect"
|
|
7363
7390
|
};
|
|
7364
7391
|
}
|
|
7365
|
-
function
|
|
7392
|
+
function uc() {
|
|
7366
7393
|
return {
|
|
7367
7394
|
connections: {},
|
|
7368
7395
|
type: "matching"
|
|
7369
7396
|
};
|
|
7370
7397
|
}
|
|
7371
|
-
function
|
|
7398
|
+
function dc(e, t) {
|
|
7372
7399
|
return Ge(e, t.categories, t.items);
|
|
7373
7400
|
}
|
|
7374
|
-
function
|
|
7401
|
+
function fc(e) {
|
|
7375
7402
|
return e.type === "ordering" ? {
|
|
7376
7403
|
orderedOptionIds: e.sortOptions.map(function (e) {
|
|
7377
7404
|
return e.id;
|
|
@@ -7379,18 +7406,18 @@ function lc(e) {
|
|
|
7379
7406
|
type: "ordering"
|
|
7380
7407
|
} : null;
|
|
7381
7408
|
}
|
|
7382
|
-
function
|
|
7409
|
+
function pc() {
|
|
7383
7410
|
return {
|
|
7384
7411
|
selectedMarkers: [],
|
|
7385
7412
|
type: "textMarker"
|
|
7386
7413
|
};
|
|
7387
7414
|
}
|
|
7388
|
-
function
|
|
7415
|
+
function mc(e) {
|
|
7389
7416
|
return e.reduce(function (e, t) {
|
|
7390
7417
|
return C(C({}, e), {}, _defineProperty({}, t, ""));
|
|
7391
7418
|
}, {});
|
|
7392
7419
|
}
|
|
7393
|
-
function
|
|
7420
|
+
function hc(e, t) {
|
|
7394
7421
|
return t.reduce(function (t, n) {
|
|
7395
7422
|
return C(C({}, t), {}, _defineProperty({}, n, e.config.candidateMode === "none" ? {
|
|
7396
7423
|
kind: "text",
|
|
@@ -7403,12 +7430,12 @@ function fc(e, t) {
|
|
|
7403
7430
|
}
|
|
7404
7431
|
function V(e, t, n) {
|
|
7405
7432
|
var r = e.items[t];
|
|
7406
|
-
return r &&
|
|
7433
|
+
return r && gc(r, n) ? r : void 0;
|
|
7407
7434
|
}
|
|
7408
|
-
function
|
|
7435
|
+
function gc(e, t) {
|
|
7409
7436
|
return e.type === t;
|
|
7410
7437
|
}
|
|
7411
|
-
var
|
|
7438
|
+
var _c = {
|
|
7412
7439
|
"en-US": {
|
|
7413
7440
|
addBlank: "Add blank",
|
|
7414
7441
|
addCard: "Add card",
|
|
@@ -7459,7 +7486,6 @@ var mc = {
|
|
|
7459
7486
|
sharedAnswerPool: "Shared answer pool",
|
|
7460
7487
|
standardAnswer: "Standard answer",
|
|
7461
7488
|
standardRenderer: "Standard",
|
|
7462
|
-
subquestion: "Subquestion",
|
|
7463
7489
|
subquestionContent: "Subquestion content",
|
|
7464
7490
|
subquestionStructure: "Subquestion structure",
|
|
7465
7491
|
tableColumn: "Column",
|
|
@@ -7524,7 +7550,6 @@ var mc = {
|
|
|
7524
7550
|
sharedAnswerPool: "\u5171\u4EAB\u7B54\u6848\u6C60",
|
|
7525
7551
|
standardAnswer: "\u6807\u51C6\u7B54\u6848",
|
|
7526
7552
|
standardRenderer: "\u6807\u51C6",
|
|
7527
|
-
subquestion: "\u5B50\u9898",
|
|
7528
7553
|
subquestionContent: "\u5B50\u9898\u5185\u5BB9",
|
|
7529
7554
|
subquestionStructure: "\u5B50\u9898\u7ED3\u6784",
|
|
7530
7555
|
tableColumn: "\u5217",
|
|
@@ -7540,13 +7565,13 @@ var mc = {
|
|
|
7540
7565
|
previewEmpty: "\u6682\u65E0\u9898\u76EE\u5185\u5BB9\u3002"
|
|
7541
7566
|
}
|
|
7542
7567
|
};
|
|
7543
|
-
function
|
|
7568
|
+
function vc() {
|
|
7544
7569
|
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "zh-CN";
|
|
7545
7570
|
switch (e) {
|
|
7546
7571
|
case "en-US":
|
|
7547
|
-
return
|
|
7572
|
+
return _c["en-US"];
|
|
7548
7573
|
case "zh-CN":
|
|
7549
|
-
return
|
|
7574
|
+
return _c["zh-CN"];
|
|
7550
7575
|
}
|
|
7551
7576
|
}
|
|
7552
7577
|
function H() {
|
|
@@ -7555,7 +7580,7 @@ function H() {
|
|
|
7555
7580
|
}
|
|
7556
7581
|
return e.filter(Boolean).join(" ");
|
|
7557
7582
|
}
|
|
7558
|
-
function
|
|
7583
|
+
function yc(e, t, n) {
|
|
7559
7584
|
return e.map(function (e) {
|
|
7560
7585
|
return t.indexOf(e) + 1;
|
|
7561
7586
|
}).filter(function (e) {
|
|
@@ -7564,22 +7589,22 @@ function gc(e, t, n) {
|
|
|
7564
7589
|
return "".concat(n).concat(e);
|
|
7565
7590
|
}).join(" ");
|
|
7566
7591
|
}
|
|
7567
|
-
function
|
|
7592
|
+
function bc(e) {
|
|
7568
7593
|
return "answerPools" in e;
|
|
7569
7594
|
}
|
|
7570
|
-
function
|
|
7595
|
+
function xc(e) {
|
|
7571
7596
|
return "answerOptionId" in e;
|
|
7572
7597
|
}
|
|
7573
|
-
function
|
|
7598
|
+
function Sc(e) {
|
|
7574
7599
|
return "answerOptionIds" in e;
|
|
7575
7600
|
}
|
|
7576
|
-
function
|
|
7601
|
+
function Cc(e, t) {
|
|
7577
7602
|
var n, r;
|
|
7578
7603
|
return (n = e == null || (r = e.find(function (e) {
|
|
7579
7604
|
return e.optionId === t;
|
|
7580
7605
|
})) == null ? void 0 : r.content) == null ? null : n;
|
|
7581
7606
|
}
|
|
7582
|
-
function
|
|
7607
|
+
function wc(e, t, n) {
|
|
7583
7608
|
var r, i;
|
|
7584
7609
|
return (r = e == null || (i = e.find(function (e) {
|
|
7585
7610
|
return e.blankId === t;
|
|
@@ -7587,26 +7612,26 @@ function xc(e, t, n) {
|
|
|
7587
7612
|
return e.optionId === n;
|
|
7588
7613
|
})) == null ? void 0 : i.content) == null ? null : r;
|
|
7589
7614
|
}
|
|
7590
|
-
function
|
|
7615
|
+
function Tc(e) {
|
|
7591
7616
|
return e.answers.reduce(function (t, n) {
|
|
7592
|
-
if (
|
|
7617
|
+
if (bc(n)) return Ec(t, {
|
|
7593
7618
|
blankIds: n.blankIds,
|
|
7594
7619
|
contents: n.answerPools
|
|
7595
7620
|
});
|
|
7596
|
-
if (
|
|
7597
|
-
var _r4 =
|
|
7598
|
-
return
|
|
7621
|
+
if (xc(n)) {
|
|
7622
|
+
var _r4 = wc(e.blankOptionGroups, n.blankId, n.answerOptionId);
|
|
7623
|
+
return Ec(t, {
|
|
7599
7624
|
blankIds: [n.blankId],
|
|
7600
7625
|
contents: _r4 ? [_r4] : []
|
|
7601
7626
|
});
|
|
7602
7627
|
}
|
|
7603
|
-
if (
|
|
7628
|
+
if (Sc(n)) {
|
|
7604
7629
|
var _r5 = n.answerOptionIds.map(function (t) {
|
|
7605
|
-
return
|
|
7630
|
+
return Cc(e.candidateOptions, t);
|
|
7606
7631
|
}).filter(function (e) {
|
|
7607
7632
|
return !!e;
|
|
7608
7633
|
});
|
|
7609
|
-
return
|
|
7634
|
+
return Ec(t, {
|
|
7610
7635
|
blankIds: n.blankIds,
|
|
7611
7636
|
contents: _r5
|
|
7612
7637
|
});
|
|
@@ -7614,7 +7639,7 @@ function Sc(e) {
|
|
|
7614
7639
|
return t;
|
|
7615
7640
|
}, []);
|
|
7616
7641
|
}
|
|
7617
|
-
function
|
|
7642
|
+
function Ec(e, t) {
|
|
7618
7643
|
var n = t.contents.filter(function (e) {
|
|
7619
7644
|
return e.text.trim() !== "";
|
|
7620
7645
|
});
|
|
@@ -7623,59 +7648,60 @@ function Cc(e, t) {
|
|
|
7623
7648
|
contents: n
|
|
7624
7649
|
}]) : e;
|
|
7625
7650
|
}
|
|
7626
|
-
var
|
|
7651
|
+
var Dc = {
|
|
7627
7652
|
title: "_title_hrc5o_1"
|
|
7628
7653
|
};
|
|
7629
|
-
function
|
|
7630
|
-
var e =
|
|
7654
|
+
function Oc(_ref105) {
|
|
7655
|
+
var e = _ref105.children;
|
|
7631
7656
|
return (0, t.jsx)("h3", {
|
|
7632
|
-
className:
|
|
7657
|
+
className: Dc.title,
|
|
7633
7658
|
children: e
|
|
7634
7659
|
});
|
|
7635
7660
|
}
|
|
7636
7661
|
var U = {
|
|
7637
|
-
root: "
|
|
7638
|
-
"element-list": "_element-
|
|
7639
|
-
children: "
|
|
7640
|
-
"control-list": "_control-
|
|
7641
|
-
"fill-text": "_fill-
|
|
7642
|
-
element: "
|
|
7643
|
-
extra: "
|
|
7644
|
-
child: "
|
|
7645
|
-
"
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
field: "_field_13qlm_47"
|
|
7662
|
+
root: "_root_1owdb_1",
|
|
7663
|
+
"element-list": "_element-list_1owdb_19",
|
|
7664
|
+
children: "_children_1owdb_20",
|
|
7665
|
+
"control-list": "_control-list_1owdb_21",
|
|
7666
|
+
"fill-text": "_fill-text_1owdb_22",
|
|
7667
|
+
element: "_element_1owdb_19",
|
|
7668
|
+
extra: "_extra_1owdb_32",
|
|
7669
|
+
child: "_child_1owdb_20",
|
|
7670
|
+
"field-label": "_field-label_1owdb_44",
|
|
7671
|
+
empty: "_empty_1owdb_50",
|
|
7672
|
+
input: "_input_1owdb_62",
|
|
7673
|
+
field: "_field_1owdb_44"
|
|
7650
7674
|
};
|
|
7651
|
-
function
|
|
7652
|
-
var e =
|
|
7653
|
-
|
|
7654
|
-
n =
|
|
7655
|
-
r =
|
|
7656
|
-
i =
|
|
7657
|
-
a =
|
|
7658
|
-
o =
|
|
7675
|
+
function kc(_ref106) {
|
|
7676
|
+
var e = _ref106.messages,
|
|
7677
|
+
_ref106$numberPath = _ref106.numberPath,
|
|
7678
|
+
n = _ref106$numberPath === void 0 ? [] : _ref106$numberPath,
|
|
7679
|
+
r = _ref106.onChildResponseChange,
|
|
7680
|
+
i = _ref106.renderChild,
|
|
7681
|
+
a = _ref106.response,
|
|
7682
|
+
o = _ref106.value;
|
|
7659
7683
|
return o.children.length === 0 ? (0, t.jsx)("div", {
|
|
7660
7684
|
className: U.empty,
|
|
7661
7685
|
children: e.previewEmpty
|
|
7662
7686
|
}) : (0, t.jsx)("div", {
|
|
7663
7687
|
className: U.children,
|
|
7664
|
-
children: o.children.map(function (
|
|
7665
|
-
var
|
|
7666
|
-
|
|
7667
|
-
|
|
7688
|
+
children: o.children.map(function (s, c) {
|
|
7689
|
+
var l = [].concat(_toConsumableArray(n), [c]),
|
|
7690
|
+
u = a.children.slice(c, c + 1)[0],
|
|
7691
|
+
d = Do(l, o.children.length) ? Eo(l) : null;
|
|
7692
|
+
return (0, t.jsx)("section", {
|
|
7668
7693
|
className: U.child,
|
|
7669
|
-
children:
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7694
|
+
children: (0, t.jsx)(ko, {
|
|
7695
|
+
indented: !0,
|
|
7696
|
+
number: d,
|
|
7697
|
+
children: u ? i(s, u, function (e) {
|
|
7698
|
+
return r(c, e);
|
|
7699
|
+
}, l) : (0, t.jsx)("div", {
|
|
7700
|
+
className: U.empty,
|
|
7701
|
+
children: e.missingQuestionTypeTemplate
|
|
7702
|
+
})
|
|
7703
|
+
})
|
|
7704
|
+
}, s.id || c);
|
|
7679
7705
|
})
|
|
7680
7706
|
});
|
|
7681
7707
|
}
|
|
@@ -7694,9 +7720,9 @@ var W = {
|
|
|
7694
7720
|
"word-builder-blank": "_word-builder-blank_3k70y_116",
|
|
7695
7721
|
"word-builder-candidate-list": "_word-builder-candidate-list_3k70y_132"
|
|
7696
7722
|
};
|
|
7697
|
-
function G(
|
|
7698
|
-
var n =
|
|
7699
|
-
r =
|
|
7723
|
+
function G(_ref107) {
|
|
7724
|
+
var n = _ref107.className,
|
|
7725
|
+
r = _ref107.content;
|
|
7700
7726
|
var i = r.html || (0, e.serializeRichTextEditorHtml)(Jt(r), {
|
|
7701
7727
|
plugins: [Dt]
|
|
7702
7728
|
});
|
|
@@ -7707,7 +7733,7 @@ function G(_ref106) {
|
|
|
7707
7733
|
}
|
|
7708
7734
|
});
|
|
7709
7735
|
}
|
|
7710
|
-
var
|
|
7736
|
+
var Ac = {
|
|
7711
7737
|
"answer-panel": "_answer-panel_1bkkd_1",
|
|
7712
7738
|
"answer-list": "_answer-list_1bkkd_8",
|
|
7713
7739
|
"answer-row": "_answer-row_1bkkd_16",
|
|
@@ -7716,30 +7742,30 @@ var Dc = {
|
|
|
7716
7742
|
"answer-content-list": "_answer-content-list_1bkkd_46",
|
|
7717
7743
|
"answer-value": "_answer-value_1bkkd_55"
|
|
7718
7744
|
};
|
|
7719
|
-
function K(
|
|
7720
|
-
var e =
|
|
7721
|
-
n =
|
|
7745
|
+
function K(_ref108) {
|
|
7746
|
+
var e = _ref108.groups,
|
|
7747
|
+
n = _ref108.title;
|
|
7722
7748
|
var r = e.filter(function (e) {
|
|
7723
7749
|
return e.kind === "markerOnly" || e.contents.length > 0;
|
|
7724
7750
|
});
|
|
7725
7751
|
return r.length === 0 ? null : (0, t.jsxs)("section", {
|
|
7726
7752
|
"aria-label": n,
|
|
7727
|
-
className:
|
|
7728
|
-
children: [(0, t.jsx)(
|
|
7753
|
+
className: Ac["answer-panel"],
|
|
7754
|
+
children: [(0, t.jsx)(Oc, {
|
|
7729
7755
|
children: n
|
|
7730
7756
|
}), (0, t.jsx)("ol", {
|
|
7731
|
-
className:
|
|
7757
|
+
className: Ac["answer-list"],
|
|
7732
7758
|
children: r.map(function (e, n) {
|
|
7733
7759
|
return (0, t.jsxs)("li", {
|
|
7734
|
-
className:
|
|
7760
|
+
className: Ac["answer-row"],
|
|
7735
7761
|
children: [e.marker ? (0, t.jsx)("span", {
|
|
7736
|
-
className: e.kind === "markerOnly" ? "".concat(
|
|
7762
|
+
className: e.kind === "markerOnly" ? "".concat(Ac["answer-marker"], " ").concat(Ac["answer-marker-only"]) : Ac["answer-marker"],
|
|
7737
7763
|
children: e.marker
|
|
7738
7764
|
}) : null, e.kind === "detailed" ? (0, t.jsx)("div", {
|
|
7739
|
-
className:
|
|
7765
|
+
className: Ac["answer-content-list"],
|
|
7740
7766
|
children: e.contents.map(function (e, n) {
|
|
7741
7767
|
return (0, t.jsx)("div", {
|
|
7742
|
-
className:
|
|
7768
|
+
className: Ac["answer-value"],
|
|
7743
7769
|
children: e
|
|
7744
7770
|
}, "answer-".concat(n));
|
|
7745
7771
|
})
|
|
@@ -7749,15 +7775,15 @@ function K(_ref107) {
|
|
|
7749
7775
|
})]
|
|
7750
7776
|
});
|
|
7751
7777
|
}
|
|
7752
|
-
function
|
|
7753
|
-
var e =
|
|
7754
|
-
n =
|
|
7755
|
-
r =
|
|
7756
|
-
i =
|
|
7757
|
-
a =
|
|
7758
|
-
o =
|
|
7759
|
-
s =
|
|
7760
|
-
var c =
|
|
7778
|
+
function jc(_ref109) {
|
|
7779
|
+
var e = _ref109.disabled,
|
|
7780
|
+
n = _ref109.item,
|
|
7781
|
+
r = _ref109.messages,
|
|
7782
|
+
i = _ref109.onChange,
|
|
7783
|
+
a = _ref109.response,
|
|
7784
|
+
o = _ref109.responseIndex,
|
|
7785
|
+
s = _ref109.showAnswer;
|
|
7786
|
+
var c = Is(a, o, n.blanks),
|
|
7761
7787
|
l = k(n.answers, n.blanks).map(function (e, i) {
|
|
7762
7788
|
return {
|
|
7763
7789
|
kind: "detailed",
|
|
@@ -7766,7 +7792,7 @@ function Oc(_ref108) {
|
|
|
7766
7792
|
content: e
|
|
7767
7793
|
}, "group-".concat(i, "-answer-").concat(n));
|
|
7768
7794
|
}),
|
|
7769
|
-
marker:
|
|
7795
|
+
marker: yc(e.blankIds, n.blanks, r.blankLabel)
|
|
7770
7796
|
};
|
|
7771
7797
|
});
|
|
7772
7798
|
function u(e, t) {
|
|
@@ -7788,27 +7814,27 @@ function Oc(_ref108) {
|
|
|
7788
7814
|
onChange: function onChange(e) {
|
|
7789
7815
|
return u(n, e.target.value);
|
|
7790
7816
|
},
|
|
7791
|
-
value:
|
|
7817
|
+
value: Nc(c.answers, n)
|
|
7792
7818
|
})]
|
|
7793
|
-
},
|
|
7819
|
+
}, Mc(n, i));
|
|
7794
7820
|
}), s ? (0, t.jsx)(K, {
|
|
7795
7821
|
groups: l,
|
|
7796
7822
|
title: r.standardAnswer
|
|
7797
7823
|
}) : null]
|
|
7798
7824
|
});
|
|
7799
7825
|
}
|
|
7800
|
-
function
|
|
7826
|
+
function Mc(e, t) {
|
|
7801
7827
|
return e || "blank-".concat(t + 1);
|
|
7802
7828
|
}
|
|
7803
|
-
function
|
|
7829
|
+
function Nc(e, t) {
|
|
7804
7830
|
var n, r;
|
|
7805
|
-
return (n = (r = Object.entries(e).find(function (
|
|
7806
|
-
var
|
|
7807
|
-
e =
|
|
7831
|
+
return (n = (r = Object.entries(e).find(function (_ref110) {
|
|
7832
|
+
var _ref111 = _slicedToArray(_ref110, 1),
|
|
7833
|
+
e = _ref111[0];
|
|
7808
7834
|
return e === t;
|
|
7809
7835
|
})) == null ? void 0 : r[1]) == null ? "" : n;
|
|
7810
7836
|
}
|
|
7811
|
-
function
|
|
7837
|
+
function Pc(e) {
|
|
7812
7838
|
return e.categories.map(function (n) {
|
|
7813
7839
|
return {
|
|
7814
7840
|
kind: "detailed",
|
|
@@ -7836,26 +7862,26 @@ var q = {
|
|
|
7836
7862
|
incorrect: "_incorrect_1f76b_81",
|
|
7837
7863
|
unanswered: "_unanswered_1f76b_85"
|
|
7838
7864
|
};
|
|
7839
|
-
function
|
|
7840
|
-
var e =
|
|
7841
|
-
r =
|
|
7842
|
-
i =
|
|
7843
|
-
a =
|
|
7844
|
-
o =
|
|
7845
|
-
s =
|
|
7846
|
-
c =
|
|
7847
|
-
var
|
|
7848
|
-
|
|
7849
|
-
l =
|
|
7850
|
-
u =
|
|
7851
|
-
d =
|
|
7852
|
-
f =
|
|
7865
|
+
function Fc(_ref112) {
|
|
7866
|
+
var e = _ref112.disabled,
|
|
7867
|
+
r = _ref112.item,
|
|
7868
|
+
i = _ref112.messages,
|
|
7869
|
+
a = _ref112.onChange,
|
|
7870
|
+
o = _ref112.response,
|
|
7871
|
+
s = _ref112.responseIndex,
|
|
7872
|
+
c = _ref112.showAnswer;
|
|
7873
|
+
var _ref113 = (0, n.useState)(""),
|
|
7874
|
+
_ref114 = _slicedToArray(_ref113, 2),
|
|
7875
|
+
l = _ref114[0],
|
|
7876
|
+
u = _ref114[1],
|
|
7877
|
+
d = Bs(o, s),
|
|
7878
|
+
f = Lc(d.placements, r),
|
|
7853
7879
|
p = r.items.find(function (e) {
|
|
7854
7880
|
return e.id === l;
|
|
7855
7881
|
});
|
|
7856
7882
|
function m(e, t) {
|
|
7857
7883
|
a(C(C({}, d), {}, {
|
|
7858
|
-
placements:
|
|
7884
|
+
placements: Lc(Qs(f, e, t), r)
|
|
7859
7885
|
})), u("");
|
|
7860
7886
|
}
|
|
7861
7887
|
function h(t, n) {
|
|
@@ -7865,7 +7891,7 @@ function Mc(_ref111) {
|
|
|
7865
7891
|
}
|
|
7866
7892
|
function g(n) {
|
|
7867
7893
|
var i = l === n.id,
|
|
7868
|
-
a =
|
|
7894
|
+
a = Ic(n.id, f, r, c);
|
|
7869
7895
|
return (0, t.jsx)("button", {
|
|
7870
7896
|
"aria-pressed": i,
|
|
7871
7897
|
className: H(q.item, i && q.selected, a === "correct" && q.correct, a === "incorrect" && q.incorrect, a === "unanswered" && q.unanswered),
|
|
@@ -7939,29 +7965,29 @@ function Mc(_ref111) {
|
|
|
7939
7965
|
})
|
|
7940
7966
|
})]
|
|
7941
7967
|
}), c ? (0, t.jsx)(K, {
|
|
7942
|
-
groups:
|
|
7968
|
+
groups: Pc(r),
|
|
7943
7969
|
title: i.standardAnswer
|
|
7944
7970
|
}) : null]
|
|
7945
7971
|
});
|
|
7946
7972
|
}
|
|
7947
|
-
function
|
|
7973
|
+
function Ic(e, t, n, r) {
|
|
7948
7974
|
var i, a;
|
|
7949
7975
|
var o = (i = t[e]) == null ? "" : i,
|
|
7950
7976
|
s = (a = n.answers[e]) == null ? "" : a;
|
|
7951
7977
|
if (!(!r || !s)) return o ? s === o ? "correct" : "incorrect" : "unanswered";
|
|
7952
7978
|
}
|
|
7953
|
-
function
|
|
7979
|
+
function Lc(e, t) {
|
|
7954
7980
|
return Ge(e, t.categories, t.items);
|
|
7955
7981
|
}
|
|
7956
|
-
function
|
|
7957
|
-
var e =
|
|
7958
|
-
n =
|
|
7959
|
-
r =
|
|
7982
|
+
function Rc(_ref115) {
|
|
7983
|
+
var e = _ref115.className,
|
|
7984
|
+
n = _ref115.content,
|
|
7985
|
+
r = _ref115.renderBlank;
|
|
7960
7986
|
var i = new Map();
|
|
7961
7987
|
return (0, t.jsx)("div", {
|
|
7962
7988
|
className: [W["rich-content"], e == null ? "" : e].filter(Boolean).join(" "),
|
|
7963
7989
|
children: n.json.map(function (e, t) {
|
|
7964
|
-
return
|
|
7990
|
+
return zc(e, {
|
|
7965
7991
|
blankIndexes: i,
|
|
7966
7992
|
key: "node-".concat(t),
|
|
7967
7993
|
renderBlank: r
|
|
@@ -7969,17 +7995,17 @@ function Fc(_ref114) {
|
|
|
7969
7995
|
})
|
|
7970
7996
|
});
|
|
7971
7997
|
}
|
|
7972
|
-
function
|
|
7998
|
+
function zc(e, r) {
|
|
7973
7999
|
if (_typeof(e.text) == "string") return (0, t.jsx)(n.Fragment, {
|
|
7974
8000
|
children: e.text
|
|
7975
8001
|
}, r.key);
|
|
7976
8002
|
if (e.type === "blank") return (0, t.jsx)(n.Fragment, {
|
|
7977
|
-
children:
|
|
8003
|
+
children: Bc(e, r)
|
|
7978
8004
|
}, r.key);
|
|
7979
|
-
var i =
|
|
8005
|
+
var i = Hc(e.children, r);
|
|
7980
8006
|
switch (e.type) {
|
|
7981
8007
|
case "heading":
|
|
7982
|
-
return
|
|
8008
|
+
return Uc(e, i, r.key);
|
|
7983
8009
|
case "table":
|
|
7984
8010
|
return (0, t.jsx)("table", {
|
|
7985
8011
|
children: i
|
|
@@ -7998,29 +8024,29 @@ function Ic(e, r) {
|
|
|
7998
8024
|
}, r.key);
|
|
7999
8025
|
}
|
|
8000
8026
|
}
|
|
8001
|
-
function
|
|
8002
|
-
var n =
|
|
8003
|
-
r =
|
|
8027
|
+
function Bc(e, t) {
|
|
8028
|
+
var n = Wc(e.blankId),
|
|
8029
|
+
r = Vc(t.blankIndexes, n);
|
|
8004
8030
|
return t.renderBlank({
|
|
8005
8031
|
blankId: n,
|
|
8006
8032
|
index: r,
|
|
8007
|
-
label:
|
|
8033
|
+
label: Wc(e.label)
|
|
8008
8034
|
});
|
|
8009
8035
|
}
|
|
8010
|
-
function
|
|
8036
|
+
function Vc(e, t) {
|
|
8011
8037
|
var n = e.get(t);
|
|
8012
8038
|
if (n !== void 0) return n;
|
|
8013
8039
|
var r = e.size;
|
|
8014
8040
|
return e.set(t, r), r;
|
|
8015
8041
|
}
|
|
8016
|
-
function
|
|
8042
|
+
function Hc(e, t) {
|
|
8017
8043
|
return (e == null ? [] : e).map(function (e, n) {
|
|
8018
|
-
return
|
|
8044
|
+
return zc(e, C(C({}, t), {}, {
|
|
8019
8045
|
key: "".concat(t.key, "-").concat(n)
|
|
8020
8046
|
}));
|
|
8021
8047
|
});
|
|
8022
8048
|
}
|
|
8023
|
-
function
|
|
8049
|
+
function Uc(e, n, r) {
|
|
8024
8050
|
switch (e.level) {
|
|
8025
8051
|
case 1:
|
|
8026
8052
|
return (0, t.jsx)("h1", {
|
|
@@ -8040,7 +8066,7 @@ function Bc(e, n, r) {
|
|
|
8040
8066
|
}, r);
|
|
8041
8067
|
}
|
|
8042
8068
|
}
|
|
8043
|
-
function
|
|
8069
|
+
function Wc(e) {
|
|
8044
8070
|
return _typeof(e) == "string" ? e : "";
|
|
8045
8071
|
}
|
|
8046
8072
|
var J = {
|
|
@@ -8059,17 +8085,17 @@ var J = {
|
|
|
8059
8085
|
"per-blank-candidate-list": "_per-blank-candidate-list_2je8q_140",
|
|
8060
8086
|
selected: "_selected_2je8q_161"
|
|
8061
8087
|
};
|
|
8062
|
-
function
|
|
8063
|
-
var e =
|
|
8064
|
-
n =
|
|
8065
|
-
r =
|
|
8066
|
-
i =
|
|
8067
|
-
a =
|
|
8068
|
-
o =
|
|
8069
|
-
return (0, t.jsx)(
|
|
8088
|
+
function Gc(_ref116) {
|
|
8089
|
+
var e = _ref116.answers,
|
|
8090
|
+
n = _ref116.disabled,
|
|
8091
|
+
r = _ref116.item,
|
|
8092
|
+
i = _ref116.messages,
|
|
8093
|
+
a = _ref116.onAnswerChange,
|
|
8094
|
+
o = _ref116.structure;
|
|
8095
|
+
return (0, t.jsx)(Rc, {
|
|
8070
8096
|
content: r.content,
|
|
8071
8097
|
renderBlank: function renderBlank(t) {
|
|
8072
|
-
return
|
|
8098
|
+
return Kc(t, {
|
|
8073
8099
|
answers: e,
|
|
8074
8100
|
blankLabel: i.blankLabel,
|
|
8075
8101
|
disabled: n,
|
|
@@ -8080,12 +8106,12 @@ function Hc(_ref115) {
|
|
|
8080
8106
|
}
|
|
8081
8107
|
});
|
|
8082
8108
|
}
|
|
8083
|
-
function
|
|
8109
|
+
function Kc(e, n) {
|
|
8084
8110
|
var r = e.blankId,
|
|
8085
8111
|
i = n.item.blanks.indexOf(r),
|
|
8086
|
-
a =
|
|
8112
|
+
a = Qc(e.label, n.blankLabel, i);
|
|
8087
8113
|
if (n.structure.config.candidateMode === "none") {
|
|
8088
|
-
var _e2 =
|
|
8114
|
+
var _e2 = Jc(n.answers, r);
|
|
8089
8115
|
return (0, t.jsx)("input", {
|
|
8090
8116
|
"aria-label": a,
|
|
8091
8117
|
className: J["inline-input"],
|
|
@@ -8099,9 +8125,9 @@ function Uc(e, n) {
|
|
|
8099
8125
|
value: (_e2 == null ? void 0 : _e2.kind) === "text" ? _e2.value : ""
|
|
8100
8126
|
});
|
|
8101
8127
|
}
|
|
8102
|
-
if (n.structure.config.candidateMode === "sharedPool") return
|
|
8103
|
-
var o =
|
|
8104
|
-
s =
|
|
8128
|
+
if (n.structure.config.candidateMode === "sharedPool") return qc(r, a, n);
|
|
8129
|
+
var o = Jc(n.answers, r),
|
|
8130
|
+
s = Xc(n.item, r, n.structure.config.candidateMode, o);
|
|
8105
8131
|
return (0, t.jsx)("span", {
|
|
8106
8132
|
"aria-label": a,
|
|
8107
8133
|
className: J["inline-blank-underline"],
|
|
@@ -8111,11 +8137,11 @@ function Uc(e, n) {
|
|
|
8111
8137
|
}) : a
|
|
8112
8138
|
});
|
|
8113
8139
|
}
|
|
8114
|
-
function
|
|
8140
|
+
function qc(e, n, r) {
|
|
8115
8141
|
var i, a;
|
|
8116
|
-
var o =
|
|
8142
|
+
var o = Jc(r.answers, e),
|
|
8117
8143
|
s = (i = ((o == null ? void 0 : o.kind) === "option" ? o.optionIds : []).slice(0, 1)[0]) == null ? "" : i,
|
|
8118
|
-
c =
|
|
8144
|
+
c = Zc(r.answers, e);
|
|
8119
8145
|
return (0, t.jsxs)("select", {
|
|
8120
8146
|
"aria-label": n,
|
|
8121
8147
|
className: J["inline-select"],
|
|
@@ -8139,15 +8165,15 @@ function Wc(e, n, r) {
|
|
|
8139
8165
|
})]
|
|
8140
8166
|
});
|
|
8141
8167
|
}
|
|
8142
|
-
function
|
|
8168
|
+
function Jc(e, t) {
|
|
8143
8169
|
var n;
|
|
8144
|
-
return (n = Object.entries(e).find(function (
|
|
8145
|
-
var
|
|
8146
|
-
e =
|
|
8170
|
+
return (n = Object.entries(e).find(function (_ref117) {
|
|
8171
|
+
var _ref118 = _slicedToArray(_ref117, 1),
|
|
8172
|
+
e = _ref118[0];
|
|
8147
8173
|
return e === t;
|
|
8148
8174
|
})) == null ? void 0 : n[1];
|
|
8149
8175
|
}
|
|
8150
|
-
function
|
|
8176
|
+
function Yc(e, t, n) {
|
|
8151
8177
|
var r, i;
|
|
8152
8178
|
if (n === "sharedPool") {
|
|
8153
8179
|
var a;
|
|
@@ -8157,13 +8183,13 @@ function Kc(e, t, n) {
|
|
|
8157
8183
|
return e.blankId === t;
|
|
8158
8184
|
})) == null ? void 0 : i.options) == null ? [] : r;
|
|
8159
8185
|
}
|
|
8160
|
-
function
|
|
8186
|
+
function Xc(e, t, n, r) {
|
|
8161
8187
|
var i = (r == null ? void 0 : r.kind) === "option" ? r.optionIds[0] : void 0;
|
|
8162
|
-
if (i) return
|
|
8188
|
+
if (i) return Yc(e, t, n).find(function (e) {
|
|
8163
8189
|
return e.optionId === i;
|
|
8164
8190
|
});
|
|
8165
8191
|
}
|
|
8166
|
-
function
|
|
8192
|
+
function Zc(e, t) {
|
|
8167
8193
|
var n = new Set(),
|
|
8168
8194
|
r = Object.entries(e);
|
|
8169
8195
|
for (var _i2 = 0, _r6 = r; _i2 < _r6.length; _i2++) {
|
|
@@ -8187,21 +8213,21 @@ function Jc(e, t) {
|
|
|
8187
8213
|
}
|
|
8188
8214
|
return n;
|
|
8189
8215
|
}
|
|
8190
|
-
function
|
|
8216
|
+
function Qc(e, t, n) {
|
|
8191
8217
|
return e || "".concat(t, " ").concat(n + 1);
|
|
8192
8218
|
}
|
|
8193
|
-
function
|
|
8194
|
-
var e =
|
|
8195
|
-
n =
|
|
8196
|
-
r =
|
|
8197
|
-
i =
|
|
8198
|
-
a =
|
|
8199
|
-
o =
|
|
8200
|
-
s =
|
|
8201
|
-
c =
|
|
8219
|
+
function $c(_ref119) {
|
|
8220
|
+
var e = _ref119.disabled,
|
|
8221
|
+
n = _ref119.element,
|
|
8222
|
+
r = _ref119.item,
|
|
8223
|
+
i = _ref119.messages,
|
|
8224
|
+
a = _ref119.onChange,
|
|
8225
|
+
o = _ref119.response,
|
|
8226
|
+
s = _ref119.responseIndex,
|
|
8227
|
+
c = _ref119.showAnswer;
|
|
8202
8228
|
var l = vn(r, n, !0),
|
|
8203
|
-
u =
|
|
8204
|
-
d =
|
|
8229
|
+
u = Tc(l),
|
|
8230
|
+
d = Ls(o, s, n, l.blanks),
|
|
8205
8231
|
f = u.map(function (e, n) {
|
|
8206
8232
|
return {
|
|
8207
8233
|
kind: "detailed",
|
|
@@ -8210,7 +8236,7 @@ function Xc(_ref118) {
|
|
|
8210
8236
|
content: e
|
|
8211
8237
|
}, "group-".concat(n, "-answer-").concat(r));
|
|
8212
8238
|
}),
|
|
8213
|
-
marker:
|
|
8239
|
+
marker: yc(e.blankIds, l.blanks, i.blankLabel)
|
|
8214
8240
|
};
|
|
8215
8241
|
});
|
|
8216
8242
|
function p(e, t) {
|
|
@@ -8220,14 +8246,14 @@ function Xc(_ref118) {
|
|
|
8220
8246
|
}
|
|
8221
8247
|
return (0, t.jsxs)("div", {
|
|
8222
8248
|
className: U["fill-text"],
|
|
8223
|
-
children: [(0, t.jsx)(
|
|
8249
|
+
children: [(0, t.jsx)(Gc, {
|
|
8224
8250
|
answers: d.answers,
|
|
8225
8251
|
disabled: e,
|
|
8226
8252
|
item: l,
|
|
8227
8253
|
messages: i,
|
|
8228
8254
|
onAnswerChange: p,
|
|
8229
8255
|
structure: n
|
|
8230
|
-
}),
|
|
8256
|
+
}), el(l, n.config.candidateMode, i.candidateOptions), tl({
|
|
8231
8257
|
disabled: e,
|
|
8232
8258
|
item: l,
|
|
8233
8259
|
onAnswerChange: p,
|
|
@@ -8238,7 +8264,7 @@ function Xc(_ref118) {
|
|
|
8238
8264
|
}) : null]
|
|
8239
8265
|
});
|
|
8240
8266
|
}
|
|
8241
|
-
function
|
|
8267
|
+
function el(e, n, r) {
|
|
8242
8268
|
var i;
|
|
8243
8269
|
var a = (i = e.candidateOptions) == null ? [] : i;
|
|
8244
8270
|
return n !== "sharedPool" || a.length === 0 ? null : (0, t.jsxs)("div", {
|
|
@@ -8260,11 +8286,11 @@ function Zc(e, n, r) {
|
|
|
8260
8286
|
})]
|
|
8261
8287
|
});
|
|
8262
8288
|
}
|
|
8263
|
-
function
|
|
8264
|
-
var e =
|
|
8265
|
-
n =
|
|
8266
|
-
r =
|
|
8267
|
-
i =
|
|
8289
|
+
function tl(_ref120) {
|
|
8290
|
+
var e = _ref120.disabled,
|
|
8291
|
+
n = _ref120.item,
|
|
8292
|
+
r = _ref120.onAnswerChange,
|
|
8293
|
+
i = _ref120.responseItem;
|
|
8268
8294
|
var a = n.blanks.reduce(function (e, t, r) {
|
|
8269
8295
|
var i;
|
|
8270
8296
|
var a = (i = n.blankOptionGroups) == null ? void 0 : i.find(function (e) {
|
|
@@ -8277,10 +8303,10 @@ function Qc(_ref119) {
|
|
|
8277
8303
|
}, []);
|
|
8278
8304
|
return a.length === 0 ? null : (0, t.jsx)("div", {
|
|
8279
8305
|
className: J["per-blank-candidate-options"],
|
|
8280
|
-
children: a.map(function (
|
|
8281
|
-
var t =
|
|
8282
|
-
n =
|
|
8283
|
-
return
|
|
8306
|
+
children: a.map(function (_ref121) {
|
|
8307
|
+
var t = _ref121.group,
|
|
8308
|
+
n = _ref121.marker;
|
|
8309
|
+
return nl({
|
|
8284
8310
|
disabled: e,
|
|
8285
8311
|
group: t,
|
|
8286
8312
|
marker: n,
|
|
@@ -8290,12 +8316,12 @@ function Qc(_ref119) {
|
|
|
8290
8316
|
})
|
|
8291
8317
|
});
|
|
8292
8318
|
}
|
|
8293
|
-
function
|
|
8294
|
-
var e =
|
|
8295
|
-
n =
|
|
8296
|
-
r =
|
|
8297
|
-
i =
|
|
8298
|
-
a =
|
|
8319
|
+
function nl(_ref122) {
|
|
8320
|
+
var e = _ref122.disabled,
|
|
8321
|
+
n = _ref122.group,
|
|
8322
|
+
r = _ref122.marker,
|
|
8323
|
+
i = _ref122.onAnswerChange,
|
|
8324
|
+
a = _ref122.responseItem;
|
|
8299
8325
|
var o = a.answers[n.blankId];
|
|
8300
8326
|
return (0, t.jsxs)("section", {
|
|
8301
8327
|
"aria-label": r,
|
|
@@ -8306,7 +8332,7 @@ function $c(_ref121) {
|
|
|
8306
8332
|
}), (0, t.jsx)("div", {
|
|
8307
8333
|
className: J["per-blank-candidate-list"],
|
|
8308
8334
|
children: n.options.map(function (t) {
|
|
8309
|
-
return
|
|
8335
|
+
return rl({
|
|
8310
8336
|
activeAnswer: o,
|
|
8311
8337
|
blankId: n.blankId,
|
|
8312
8338
|
disabled: e,
|
|
@@ -8317,12 +8343,12 @@ function $c(_ref121) {
|
|
|
8317
8343
|
})]
|
|
8318
8344
|
}, n.blankId);
|
|
8319
8345
|
}
|
|
8320
|
-
function
|
|
8321
|
-
var e =
|
|
8322
|
-
n =
|
|
8323
|
-
r =
|
|
8324
|
-
i =
|
|
8325
|
-
a =
|
|
8346
|
+
function rl(_ref123) {
|
|
8347
|
+
var e = _ref123.activeAnswer,
|
|
8348
|
+
n = _ref123.blankId,
|
|
8349
|
+
r = _ref123.disabled,
|
|
8350
|
+
i = _ref123.onAnswerChange,
|
|
8351
|
+
a = _ref123.option;
|
|
8326
8352
|
var o = (e == null ? void 0 : e.kind) === "option" && e.optionIds.includes(a.optionId);
|
|
8327
8353
|
return (0, t.jsx)("button", {
|
|
8328
8354
|
"aria-pressed": o,
|
|
@@ -8330,7 +8356,7 @@ function el(_ref122) {
|
|
|
8330
8356
|
"data-selected": o ? "true" : void 0,
|
|
8331
8357
|
disabled: r,
|
|
8332
8358
|
onClick: function onClick() {
|
|
8333
|
-
return i(n,
|
|
8359
|
+
return i(n, Ys(e, a.optionId, "single"));
|
|
8334
8360
|
},
|
|
8335
8361
|
type: "button",
|
|
8336
8362
|
children: (0, t.jsx)(G, {
|
|
@@ -8351,16 +8377,16 @@ var Y = {
|
|
|
8351
8377
|
"option-marker": "_option-marker_rer43_84",
|
|
8352
8378
|
"table-option-marker": "_table-option-marker_rer43_85"
|
|
8353
8379
|
};
|
|
8354
|
-
function
|
|
8355
|
-
var e =
|
|
8356
|
-
n =
|
|
8357
|
-
r =
|
|
8358
|
-
i =
|
|
8359
|
-
a =
|
|
8360
|
-
o =
|
|
8361
|
-
s =
|
|
8362
|
-
c =
|
|
8363
|
-
var l =
|
|
8380
|
+
function il(_ref124) {
|
|
8381
|
+
var e = _ref124.disabled,
|
|
8382
|
+
n = _ref124.element,
|
|
8383
|
+
r = _ref124.item,
|
|
8384
|
+
i = _ref124.messages,
|
|
8385
|
+
a = _ref124.onChange,
|
|
8386
|
+
o = _ref124.response,
|
|
8387
|
+
s = _ref124.responseIndex,
|
|
8388
|
+
c = _ref124.showAnswer;
|
|
8389
|
+
var l = zs(o, s),
|
|
8364
8390
|
u = tn(n.config.judgeAnswerMode),
|
|
8365
8391
|
d = [{
|
|
8366
8392
|
kind: "detailed",
|
|
@@ -8376,9 +8402,9 @@ function tl(_ref123) {
|
|
|
8376
8402
|
className: W.element,
|
|
8377
8403
|
children: [(0, t.jsx)("ol", {
|
|
8378
8404
|
className: H(W["judgement-list"], Y["judgement-list"]),
|
|
8379
|
-
children: u.map(function (
|
|
8380
|
-
var n =
|
|
8381
|
-
r =
|
|
8405
|
+
children: u.map(function (_ref125) {
|
|
8406
|
+
var n = _ref125.label,
|
|
8407
|
+
r = _ref125.value;
|
|
8382
8408
|
var i = l.selectedValues[0] === r;
|
|
8383
8409
|
return (0, t.jsx)("li", {
|
|
8384
8410
|
className: H(W["judgement-item"], Y["judgement-option"], i && Y.selected),
|
|
@@ -8401,8 +8427,8 @@ function tl(_ref123) {
|
|
|
8401
8427
|
}) : null]
|
|
8402
8428
|
});
|
|
8403
8429
|
}
|
|
8404
|
-
function
|
|
8405
|
-
var n =
|
|
8430
|
+
function al(e) {
|
|
8431
|
+
var n = ol(e);
|
|
8406
8432
|
return e.columns.reduce(function (r, i, a) {
|
|
8407
8433
|
var o = i.items.map(function (r, o) {
|
|
8408
8434
|
var s;
|
|
@@ -8424,7 +8450,7 @@ function nl(e) {
|
|
|
8424
8450
|
return [].concat(_toConsumableArray(r), _toConsumableArray(o));
|
|
8425
8451
|
}, []);
|
|
8426
8452
|
}
|
|
8427
|
-
function
|
|
8453
|
+
function ol(e) {
|
|
8428
8454
|
return e.columns.reduce(function (e, t, n) {
|
|
8429
8455
|
return t.items.forEach(function (t) {
|
|
8430
8456
|
return e.set(t.itemId, {
|
|
@@ -8434,25 +8460,25 @@ function rl(e) {
|
|
|
8434
8460
|
}), e;
|
|
8435
8461
|
}, new Map());
|
|
8436
8462
|
}
|
|
8437
|
-
function
|
|
8438
|
-
var e =
|
|
8439
|
-
r =
|
|
8440
|
-
i =
|
|
8441
|
-
a =
|
|
8442
|
-
o =
|
|
8443
|
-
s =
|
|
8444
|
-
c =
|
|
8445
|
-
var
|
|
8446
|
-
|
|
8447
|
-
l =
|
|
8448
|
-
u =
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
d =
|
|
8452
|
-
f =
|
|
8463
|
+
function sl(_ref126) {
|
|
8464
|
+
var e = _ref126.disabled,
|
|
8465
|
+
r = _ref126.item,
|
|
8466
|
+
i = _ref126.messages,
|
|
8467
|
+
a = _ref126.onChange,
|
|
8468
|
+
o = _ref126.response,
|
|
8469
|
+
s = _ref126.responseIndex,
|
|
8470
|
+
c = _ref126.showAnswer;
|
|
8471
|
+
var _ref127 = (0, n.useState)(null),
|
|
8472
|
+
_ref128 = _slicedToArray(_ref127, 2),
|
|
8473
|
+
l = _ref128[0],
|
|
8474
|
+
u = _ref128[1],
|
|
8475
|
+
_ref129 = (0, n.useState)(null),
|
|
8476
|
+
_ref130 = _slicedToArray(_ref129, 2),
|
|
8477
|
+
d = _ref130[0],
|
|
8478
|
+
f = _ref130[1],
|
|
8453
8479
|
p = (0, n.useRef)(null),
|
|
8454
8480
|
m = (0, n.useRef)(new Map()),
|
|
8455
|
-
h =
|
|
8481
|
+
h = Vs(o, s),
|
|
8456
8482
|
g = {
|
|
8457
8483
|
gridTemplateColumns: "repeat(".concat(r.columns.length, ", minmax(12rem, 1fr))")
|
|
8458
8484
|
},
|
|
@@ -8529,7 +8555,7 @@ function il(_ref125) {
|
|
|
8529
8555
|
}) : null;
|
|
8530
8556
|
if (r) {
|
|
8531
8557
|
a(C(C({}, h), {}, {
|
|
8532
|
-
connections:
|
|
8558
|
+
connections: Xs(h.connections, r.fromItemId, r.toItemId)
|
|
8533
8559
|
})), u(null);
|
|
8534
8560
|
return;
|
|
8535
8561
|
}
|
|
@@ -8600,12 +8626,12 @@ function il(_ref125) {
|
|
|
8600
8626
|
})
|
|
8601
8627
|
})]
|
|
8602
8628
|
}), c ? (0, t.jsx)(K, {
|
|
8603
|
-
groups:
|
|
8629
|
+
groups: al(r),
|
|
8604
8630
|
title: i.standardAnswer
|
|
8605
8631
|
}) : null]
|
|
8606
8632
|
});
|
|
8607
8633
|
}
|
|
8608
|
-
function
|
|
8634
|
+
function cl(e) {
|
|
8609
8635
|
var n, r;
|
|
8610
8636
|
var i = e.columns[0],
|
|
8611
8637
|
a = e.columns[1],
|
|
@@ -8628,7 +8654,7 @@ function al(e) {
|
|
|
8628
8654
|
};
|
|
8629
8655
|
});
|
|
8630
8656
|
}
|
|
8631
|
-
var
|
|
8657
|
+
var ll = {
|
|
8632
8658
|
board: "_board_1q6ar_1",
|
|
8633
8659
|
"matched-rows": "_matched-rows_1q6ar_6",
|
|
8634
8660
|
"matched-row": "_matched-row_1q6ar_6",
|
|
@@ -8639,20 +8665,20 @@ var ol = {
|
|
|
8639
8665
|
matched: "_matched_1q6ar_6",
|
|
8640
8666
|
marker: "_marker_1q6ar_66"
|
|
8641
8667
|
};
|
|
8642
|
-
function
|
|
8643
|
-
var e =
|
|
8644
|
-
r =
|
|
8645
|
-
i =
|
|
8646
|
-
a =
|
|
8647
|
-
o =
|
|
8648
|
-
s =
|
|
8649
|
-
c =
|
|
8650
|
-
var
|
|
8651
|
-
|
|
8652
|
-
l =
|
|
8653
|
-
u =
|
|
8654
|
-
d =
|
|
8655
|
-
f =
|
|
8668
|
+
function ul(_ref131) {
|
|
8669
|
+
var e = _ref131.disabled,
|
|
8670
|
+
r = _ref131.item,
|
|
8671
|
+
i = _ref131.messages,
|
|
8672
|
+
a = _ref131.onChange,
|
|
8673
|
+
o = _ref131.response,
|
|
8674
|
+
s = _ref131.responseIndex,
|
|
8675
|
+
c = _ref131.showAnswer;
|
|
8676
|
+
var _ref132 = (0, n.useState)(null),
|
|
8677
|
+
_ref133 = _slicedToArray(_ref132, 2),
|
|
8678
|
+
l = _ref133[0],
|
|
8679
|
+
u = _ref133[1],
|
|
8680
|
+
d = Hs(o, s),
|
|
8681
|
+
f = dl(r, d.connections);
|
|
8656
8682
|
function p(t, n) {
|
|
8657
8683
|
if (e) return;
|
|
8658
8684
|
var r = l ? ct(l, {
|
|
@@ -8661,7 +8687,7 @@ function sl(_ref130) {
|
|
|
8661
8687
|
}) : null;
|
|
8662
8688
|
if (r) {
|
|
8663
8689
|
a(C(C({}, d), {}, {
|
|
8664
|
-
connections:
|
|
8690
|
+
connections: Zs(d.connections, r.fromItemId, r.toItemId)
|
|
8665
8691
|
})), u(null);
|
|
8666
8692
|
return;
|
|
8667
8693
|
}
|
|
@@ -8674,7 +8700,7 @@ function sl(_ref130) {
|
|
|
8674
8700
|
var i = (l == null ? void 0 : l.itemId) === n.item.itemId;
|
|
8675
8701
|
return (0, t.jsxs)("button", {
|
|
8676
8702
|
"aria-pressed": i,
|
|
8677
|
-
className: H(
|
|
8703
|
+
className: H(ll.item, i && ll.selected, r && ll.matched),
|
|
8678
8704
|
"data-testid": "matching-player-item-".concat(n.item.itemId),
|
|
8679
8705
|
disabled: e,
|
|
8680
8706
|
onClick: function onClick() {
|
|
@@ -8682,7 +8708,7 @@ function sl(_ref130) {
|
|
|
8682
8708
|
},
|
|
8683
8709
|
type: "button",
|
|
8684
8710
|
children: [n.marker ? (0, t.jsx)("span", {
|
|
8685
|
-
className:
|
|
8711
|
+
className: ll.marker,
|
|
8686
8712
|
children: n.marker
|
|
8687
8713
|
}) : null, (0, t.jsx)(G, {
|
|
8688
8714
|
content: n.item.content
|
|
@@ -8692,12 +8718,12 @@ function sl(_ref130) {
|
|
|
8692
8718
|
return (0, t.jsxs)("div", {
|
|
8693
8719
|
className: W.element,
|
|
8694
8720
|
children: [(0, t.jsxs)("div", {
|
|
8695
|
-
className:
|
|
8721
|
+
className: ll.board,
|
|
8696
8722
|
children: [f.rows.length > 0 ? (0, t.jsx)("div", {
|
|
8697
|
-
className:
|
|
8723
|
+
className: ll["matched-rows"],
|
|
8698
8724
|
children: f.rows.map(function (e) {
|
|
8699
8725
|
return (0, t.jsxs)("div", {
|
|
8700
|
-
className:
|
|
8726
|
+
className: ll["matched-row"],
|
|
8701
8727
|
"data-testid": "matching-player-row-".concat(e.from.item.itemId, "-").concat(e.to.item.itemId),
|
|
8702
8728
|
children: [m(e.from, !0), m(e.to, !0)]
|
|
8703
8729
|
}, "".concat(e.from.item.itemId, "-").concat(e.to.item.itemId));
|
|
@@ -8705,11 +8731,11 @@ function sl(_ref130) {
|
|
|
8705
8731
|
}) : null, f.unmatchedColumns.some(function (e) {
|
|
8706
8732
|
return e.length > 0;
|
|
8707
8733
|
}) ? (0, t.jsx)("div", {
|
|
8708
|
-
className:
|
|
8734
|
+
className: ll.columns,
|
|
8709
8735
|
children: f.unmatchedColumns.map(function (e, n) {
|
|
8710
8736
|
var i, a;
|
|
8711
8737
|
return (0, t.jsx)("section", {
|
|
8712
|
-
className:
|
|
8738
|
+
className: ll.column,
|
|
8713
8739
|
children: e.map(function (e) {
|
|
8714
8740
|
return m(e, !1);
|
|
8715
8741
|
})
|
|
@@ -8717,12 +8743,12 @@ function sl(_ref130) {
|
|
|
8717
8743
|
})
|
|
8718
8744
|
}) : null]
|
|
8719
8745
|
}), c ? (0, t.jsx)(K, {
|
|
8720
|
-
groups:
|
|
8746
|
+
groups: cl(r),
|
|
8721
8747
|
title: i.standardAnswer
|
|
8722
8748
|
}) : null]
|
|
8723
8749
|
});
|
|
8724
8750
|
}
|
|
8725
|
-
function
|
|
8751
|
+
function dl(e, t) {
|
|
8726
8752
|
var n;
|
|
8727
8753
|
var r = e.columns.map(function (e, t) {
|
|
8728
8754
|
return e.items.map(function (n, r) {
|
|
@@ -8760,7 +8786,7 @@ function cl(e, t) {
|
|
|
8760
8786
|
})
|
|
8761
8787
|
};
|
|
8762
8788
|
}
|
|
8763
|
-
function
|
|
8789
|
+
function fl(e, t) {
|
|
8764
8790
|
return an(t, e.config.optionLabelStyle).map(function (e) {
|
|
8765
8791
|
return {
|
|
8766
8792
|
kind: "markerOnly",
|
|
@@ -8768,39 +8794,39 @@ function ll(e, t) {
|
|
|
8768
8794
|
};
|
|
8769
8795
|
});
|
|
8770
8796
|
}
|
|
8771
|
-
var
|
|
8797
|
+
var pl = {
|
|
8772
8798
|
"table-wrap": "_table-wrap_n67ah_1",
|
|
8773
8799
|
table: "_table_n67ah_1",
|
|
8774
8800
|
"table-option-column": "_table-option-column_n67ah_17",
|
|
8775
8801
|
"table-option-marker": "_table-option-marker_n67ah_45"
|
|
8776
8802
|
};
|
|
8777
|
-
function
|
|
8778
|
-
var e =
|
|
8779
|
-
n =
|
|
8780
|
-
r =
|
|
8781
|
-
i =
|
|
8782
|
-
a =
|
|
8783
|
-
o =
|
|
8784
|
-
s =
|
|
8785
|
-
c =
|
|
8786
|
-
var l =
|
|
8803
|
+
function ml(_ref134) {
|
|
8804
|
+
var e = _ref134.disabled,
|
|
8805
|
+
n = _ref134.element,
|
|
8806
|
+
r = _ref134.item,
|
|
8807
|
+
i = _ref134.messages,
|
|
8808
|
+
a = _ref134.onChange,
|
|
8809
|
+
o = _ref134.response,
|
|
8810
|
+
s = _ref134.responseIndex,
|
|
8811
|
+
c = _ref134.showAnswer;
|
|
8812
|
+
var l = Fs(o, s),
|
|
8787
8813
|
u = rn(r, n.config.optionLabelStyle);
|
|
8788
8814
|
function d(e) {
|
|
8789
8815
|
a(C(C({}, l), {}, {
|
|
8790
|
-
selectedOptionIds:
|
|
8816
|
+
selectedOptionIds: Js(l.selectedOptionIds, e, n.config.selectionType)
|
|
8791
8817
|
}));
|
|
8792
8818
|
}
|
|
8793
8819
|
if (n.config.renderer === "table") {
|
|
8794
|
-
var _a2 =
|
|
8820
|
+
var _a2 = fl(n, r);
|
|
8795
8821
|
return (0, t.jsxs)("div", {
|
|
8796
8822
|
className: W.element,
|
|
8797
8823
|
children: [(0, t.jsx)("div", {
|
|
8798
|
-
className:
|
|
8824
|
+
className: pl["table-wrap"],
|
|
8799
8825
|
children: (0, t.jsxs)("table", {
|
|
8800
|
-
className:
|
|
8826
|
+
className: pl.table,
|
|
8801
8827
|
children: [(0, t.jsxs)("colgroup", {
|
|
8802
8828
|
children: [(0, t.jsx)("col", {
|
|
8803
|
-
className:
|
|
8829
|
+
className: pl["table-option-column"]
|
|
8804
8830
|
}), r.columns.map(function (e) {
|
|
8805
8831
|
return (0, t.jsx)("col", {}, e.id);
|
|
8806
8832
|
})]
|
|
@@ -8863,7 +8889,7 @@ function dl(_ref133) {
|
|
|
8863
8889
|
}) : null]
|
|
8864
8890
|
});
|
|
8865
8891
|
}
|
|
8866
|
-
var f =
|
|
8892
|
+
var f = fl(n, r);
|
|
8867
8893
|
return (0, t.jsxs)("div", {
|
|
8868
8894
|
className: W.element,
|
|
8869
8895
|
children: [(0, t.jsx)("ol", {
|
|
@@ -8897,7 +8923,7 @@ function dl(_ref133) {
|
|
|
8897
8923
|
}) : null]
|
|
8898
8924
|
});
|
|
8899
8925
|
}
|
|
8900
|
-
function
|
|
8926
|
+
function hl(e) {
|
|
8901
8927
|
var n = new Map(e.sortOptions.map(function (e) {
|
|
8902
8928
|
return [e.id, e];
|
|
8903
8929
|
}));
|
|
@@ -8912,15 +8938,15 @@ function fl(e) {
|
|
|
8912
8938
|
};
|
|
8913
8939
|
});
|
|
8914
8940
|
}
|
|
8915
|
-
function
|
|
8916
|
-
var e =
|
|
8917
|
-
n =
|
|
8918
|
-
r =
|
|
8919
|
-
i =
|
|
8920
|
-
a =
|
|
8921
|
-
o =
|
|
8922
|
-
s =
|
|
8923
|
-
var c =
|
|
8941
|
+
function gl(_ref135) {
|
|
8942
|
+
var e = _ref135.disabled,
|
|
8943
|
+
n = _ref135.item,
|
|
8944
|
+
r = _ref135.messages,
|
|
8945
|
+
i = _ref135.onChange,
|
|
8946
|
+
a = _ref135.response,
|
|
8947
|
+
o = _ref135.responseIndex,
|
|
8948
|
+
s = _ref135.showAnswer;
|
|
8949
|
+
var c = Us(a, o, n),
|
|
8924
8950
|
l = new Map(n.sortOptions.map(function (e) {
|
|
8925
8951
|
return [e.id, e];
|
|
8926
8952
|
})),
|
|
@@ -8931,7 +8957,7 @@ function pl(_ref134) {
|
|
|
8931
8957
|
});
|
|
8932
8958
|
function d(e, t) {
|
|
8933
8959
|
i(C(C({}, c), {}, {
|
|
8934
|
-
orderedOptionIds:
|
|
8960
|
+
orderedOptionIds: $s(c.orderedOptionIds, n, e, t)
|
|
8935
8961
|
}));
|
|
8936
8962
|
}
|
|
8937
8963
|
return (0, t.jsxs)("div", {
|
|
@@ -8971,12 +8997,12 @@ function pl(_ref134) {
|
|
|
8971
8997
|
}, n.id);
|
|
8972
8998
|
})
|
|
8973
8999
|
}), s ? (0, t.jsx)(K, {
|
|
8974
|
-
groups:
|
|
9000
|
+
groups: hl(n),
|
|
8975
9001
|
title: r.standardAnswer
|
|
8976
9002
|
}) : null]
|
|
8977
9003
|
});
|
|
8978
9004
|
}
|
|
8979
|
-
var
|
|
9005
|
+
var _l = {
|
|
8980
9006
|
content: "_content_63948_1",
|
|
8981
9007
|
paragraph: "_paragraph_63948_10",
|
|
8982
9008
|
marker: "_marker_63948_14",
|
|
@@ -8984,17 +9010,17 @@ var ml = {
|
|
|
8984
9010
|
"marker-selected": "_marker-selected_63948_31",
|
|
8985
9011
|
"marker-answer": "_marker-answer_63948_37"
|
|
8986
9012
|
};
|
|
8987
|
-
function
|
|
8988
|
-
var
|
|
8989
|
-
e =
|
|
8990
|
-
r =
|
|
8991
|
-
|
|
8992
|
-
i =
|
|
8993
|
-
a =
|
|
8994
|
-
|
|
8995
|
-
o =
|
|
8996
|
-
|
|
8997
|
-
s =
|
|
9013
|
+
function vl(_ref136) {
|
|
9014
|
+
var _ref136$answerMarkers = _ref136.answerMarkers,
|
|
9015
|
+
e = _ref136$answerMarkers === void 0 ? [] : _ref136$answerMarkers,
|
|
9016
|
+
r = _ref136.content,
|
|
9017
|
+
_ref136$disabled = _ref136.disabled,
|
|
9018
|
+
i = _ref136$disabled === void 0 ? !1 : _ref136$disabled,
|
|
9019
|
+
a = _ref136.onMarkerClick,
|
|
9020
|
+
_ref136$selectedMarke = _ref136.selectedMarkers,
|
|
9021
|
+
o = _ref136$selectedMarke === void 0 ? [] : _ref136$selectedMarke,
|
|
9022
|
+
_ref136$showAnswer = _ref136.showAnswer,
|
|
9023
|
+
s = _ref136$showAnswer === void 0 ? !1 : _ref136$showAnswer;
|
|
8998
9024
|
var c = r.json.length ? r.json : [{
|
|
8999
9025
|
children: [{
|
|
9000
9026
|
text: r.text
|
|
@@ -9002,19 +9028,19 @@ function hl(_ref135) {
|
|
|
9002
9028
|
type: "paragraph"
|
|
9003
9029
|
}];
|
|
9004
9030
|
return (0, t.jsx)("div", {
|
|
9005
|
-
className:
|
|
9031
|
+
className: _l.content,
|
|
9006
9032
|
children: c.map(function (e, t) {
|
|
9007
9033
|
return l(e, "node-".concat(t));
|
|
9008
9034
|
})
|
|
9009
9035
|
});
|
|
9010
9036
|
function l(e, n) {
|
|
9011
|
-
if (
|
|
9012
|
-
if (!
|
|
9037
|
+
if (bl(e)) return u(e, n);
|
|
9038
|
+
if (!yl(e)) return null;
|
|
9013
9039
|
var r = e.children.map(function (e, t) {
|
|
9014
9040
|
return l(e, "".concat(n, "-").concat(t));
|
|
9015
9041
|
});
|
|
9016
9042
|
return e.type === "paragraph" ? (0, t.jsx)("p", {
|
|
9017
|
-
className:
|
|
9043
|
+
className: _l.paragraph,
|
|
9018
9044
|
children: r
|
|
9019
9045
|
}, n) : (0, t.jsx)("span", {
|
|
9020
9046
|
children: r
|
|
@@ -9033,7 +9059,7 @@ function hl(_ref135) {
|
|
|
9033
9059
|
r = s && e.includes(t);
|
|
9034
9060
|
return {
|
|
9035
9061
|
answer: r,
|
|
9036
|
-
className: Ba(
|
|
9062
|
+
className: Ba(_l.marker, a ? _l["marker-button"] : "", n ? _l["marker-selected"] : "", r ? _l["marker-answer"] : ""),
|
|
9037
9063
|
selected: n
|
|
9038
9064
|
};
|
|
9039
9065
|
}
|
|
@@ -9061,23 +9087,23 @@ function hl(_ref135) {
|
|
|
9061
9087
|
}, r);
|
|
9062
9088
|
}
|
|
9063
9089
|
}
|
|
9064
|
-
function
|
|
9090
|
+
function yl(e) {
|
|
9065
9091
|
return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
|
|
9066
9092
|
}
|
|
9067
|
-
function
|
|
9093
|
+
function bl(e) {
|
|
9068
9094
|
return !!(e && _typeof(e) == "object" && "text" in e && _typeof(e.text) == "string");
|
|
9069
9095
|
}
|
|
9070
|
-
function
|
|
9071
|
-
var e =
|
|
9072
|
-
n =
|
|
9073
|
-
r =
|
|
9096
|
+
function xl(_ref137) {
|
|
9097
|
+
var e = _ref137.item,
|
|
9098
|
+
n = _ref137.messages,
|
|
9099
|
+
r = _ref137.showAnswer;
|
|
9074
9100
|
var i = yt(e.content.json).filter(function (t) {
|
|
9075
9101
|
return e.answers.includes(t.markerId);
|
|
9076
9102
|
}).map(function (e) {
|
|
9077
9103
|
return e.text;
|
|
9078
9104
|
});
|
|
9079
9105
|
return (0, t.jsxs)(t.Fragment, {
|
|
9080
|
-
children: [(0, t.jsx)(
|
|
9106
|
+
children: [(0, t.jsx)(vl, {
|
|
9081
9107
|
answerMarkers: e.answers,
|
|
9082
9108
|
content: e.content,
|
|
9083
9109
|
showAnswer: r
|
|
@@ -9091,53 +9117,53 @@ function vl(_ref136) {
|
|
|
9091
9117
|
}) : null]
|
|
9092
9118
|
});
|
|
9093
9119
|
}
|
|
9094
|
-
function
|
|
9095
|
-
var e =
|
|
9096
|
-
n =
|
|
9097
|
-
r =
|
|
9098
|
-
i =
|
|
9099
|
-
a =
|
|
9100
|
-
o =
|
|
9101
|
-
s =
|
|
9102
|
-
var c =
|
|
9103
|
-
return s ? (0, t.jsx)(
|
|
9120
|
+
function Sl(_ref138) {
|
|
9121
|
+
var e = _ref138.disabled,
|
|
9122
|
+
n = _ref138.item,
|
|
9123
|
+
r = _ref138.messages,
|
|
9124
|
+
i = _ref138.onChange,
|
|
9125
|
+
a = _ref138.response,
|
|
9126
|
+
o = _ref138.responseIndex,
|
|
9127
|
+
s = _ref138.showAnswer;
|
|
9128
|
+
var c = Ws(a, o);
|
|
9129
|
+
return s ? (0, t.jsx)(xl, {
|
|
9104
9130
|
item: n,
|
|
9105
9131
|
messages: r,
|
|
9106
9132
|
showAnswer: s
|
|
9107
|
-
}) : (0, t.jsx)(
|
|
9133
|
+
}) : (0, t.jsx)(vl, {
|
|
9108
9134
|
answerMarkers: n.answers,
|
|
9109
9135
|
content: n.content,
|
|
9110
9136
|
disabled: e,
|
|
9111
9137
|
onMarkerClick: function onMarkerClick(e) {
|
|
9112
9138
|
return i(C(C({}, c), {}, {
|
|
9113
|
-
selectedMarkers:
|
|
9139
|
+
selectedMarkers: ec(c.selectedMarkers, e)
|
|
9114
9140
|
}));
|
|
9115
9141
|
},
|
|
9116
9142
|
selectedMarkers: c.selectedMarkers
|
|
9117
9143
|
});
|
|
9118
9144
|
}
|
|
9119
|
-
var
|
|
9145
|
+
var Cl = {
|
|
9120
9146
|
placeholder: "_placeholder_xde95_1"
|
|
9121
9147
|
};
|
|
9122
|
-
function
|
|
9123
|
-
var e =
|
|
9148
|
+
function wl(_ref139) {
|
|
9149
|
+
var e = _ref139.label;
|
|
9124
9150
|
return (0, t.jsx)("div", {
|
|
9125
9151
|
"aria-label": e,
|
|
9126
|
-
className:
|
|
9152
|
+
className: Cl.placeholder,
|
|
9127
9153
|
children: e
|
|
9128
9154
|
});
|
|
9129
9155
|
}
|
|
9130
|
-
function
|
|
9131
|
-
var e =
|
|
9132
|
-
n =
|
|
9133
|
-
r =
|
|
9134
|
-
i =
|
|
9135
|
-
a =
|
|
9136
|
-
o =
|
|
9137
|
-
s =
|
|
9138
|
-
c =
|
|
9139
|
-
var l =
|
|
9140
|
-
return e ? A(l.content) ? (0, t.jsx)(
|
|
9156
|
+
function Tl(_ref140) {
|
|
9157
|
+
var e = _ref140.disabled,
|
|
9158
|
+
n = _ref140.locale,
|
|
9159
|
+
r = _ref140.label,
|
|
9160
|
+
i = _ref140.messages,
|
|
9161
|
+
a = _ref140.onChange,
|
|
9162
|
+
o = _ref140.response,
|
|
9163
|
+
s = _ref140.responseIndex,
|
|
9164
|
+
c = _ref140.uploadImage;
|
|
9165
|
+
var l = Gs(o, s);
|
|
9166
|
+
return e ? A(l.content) ? (0, t.jsx)(wl, {
|
|
9141
9167
|
label: i.textResponsePlaceholder
|
|
9142
9168
|
}) : (0, t.jsx)(G, {
|
|
9143
9169
|
content: l.content
|
|
@@ -9156,7 +9182,7 @@ function Sl(_ref139) {
|
|
|
9156
9182
|
value: l.content
|
|
9157
9183
|
});
|
|
9158
9184
|
}
|
|
9159
|
-
function
|
|
9185
|
+
function El(e, n) {
|
|
9160
9186
|
return e.blanks.reduce(function (r, i) {
|
|
9161
9187
|
var a;
|
|
9162
9188
|
var o = (a = e.answers[i]) == null ? void 0 : a.trim();
|
|
@@ -9165,26 +9191,26 @@ function Cl(e, n) {
|
|
|
9165
9191
|
contents: [(0, t.jsx)(G, {
|
|
9166
9192
|
content: O(o)
|
|
9167
9193
|
}, "".concat(i, "-answer"))],
|
|
9168
|
-
marker:
|
|
9194
|
+
marker: yc([i], e.blanks, n)
|
|
9169
9195
|
}]) : r;
|
|
9170
9196
|
}, []);
|
|
9171
9197
|
}
|
|
9172
|
-
var
|
|
9198
|
+
var Dl = {
|
|
9173
9199
|
"word-builder-blank": "_word-builder-blank_ftw6q_1",
|
|
9174
9200
|
"word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
|
|
9175
9201
|
};
|
|
9176
|
-
function
|
|
9177
|
-
var e =
|
|
9178
|
-
n =
|
|
9179
|
-
r =
|
|
9180
|
-
i =
|
|
9181
|
-
a =
|
|
9182
|
-
o =
|
|
9183
|
-
s =
|
|
9184
|
-
c =
|
|
9202
|
+
function Ol(_ref141) {
|
|
9203
|
+
var e = _ref141.disabled,
|
|
9204
|
+
n = _ref141.element,
|
|
9205
|
+
r = _ref141.item,
|
|
9206
|
+
i = _ref141.messages,
|
|
9207
|
+
a = _ref141.onChange,
|
|
9208
|
+
o = _ref141.response,
|
|
9209
|
+
s = _ref141.responseIndex,
|
|
9210
|
+
c = _ref141.showAnswer;
|
|
9185
9211
|
var l = _n(r, !0, n),
|
|
9186
|
-
u =
|
|
9187
|
-
d =
|
|
9212
|
+
u = Rs(o, s, l.blanks),
|
|
9213
|
+
d = El(l, i.blankLabel);
|
|
9188
9214
|
function f(e, t) {
|
|
9189
9215
|
a(C(C({}, u), {}, {
|
|
9190
9216
|
answers: C(C({}, u.answers), {}, _defineProperty({}, e, t))
|
|
@@ -9213,15 +9239,15 @@ function Tl(_ref140) {
|
|
|
9213
9239
|
}
|
|
9214
9240
|
return (0, t.jsxs)("div", {
|
|
9215
9241
|
className: U["fill-text"],
|
|
9216
|
-
children: [(0, t.jsx)(
|
|
9242
|
+
children: [(0, t.jsx)(Rc, {
|
|
9217
9243
|
content: l.content,
|
|
9218
|
-
renderBlank: function renderBlank(
|
|
9219
|
-
var n =
|
|
9220
|
-
r =
|
|
9221
|
-
a =
|
|
9244
|
+
renderBlank: function renderBlank(_ref142) {
|
|
9245
|
+
var n = _ref142.blankId,
|
|
9246
|
+
r = _ref142.index,
|
|
9247
|
+
a = _ref142.label;
|
|
9222
9248
|
var o, s;
|
|
9223
9249
|
var c = (o = u.answers[n]) == null ? "" : o,
|
|
9224
|
-
l =
|
|
9250
|
+
l = kl({
|
|
9225
9251
|
answers: c,
|
|
9226
9252
|
blankLabel: i.blankLabel,
|
|
9227
9253
|
canClear: !e && !!c.trim(),
|
|
@@ -9230,7 +9256,7 @@ function Tl(_ref140) {
|
|
|
9230
9256
|
});
|
|
9231
9257
|
return (0, t.jsx)("button", {
|
|
9232
9258
|
"aria-label": l,
|
|
9233
|
-
className:
|
|
9259
|
+
className: Dl["word-builder-blank"],
|
|
9234
9260
|
disabled: e,
|
|
9235
9261
|
onClick: function onClick() {
|
|
9236
9262
|
return p(n);
|
|
@@ -9247,7 +9273,7 @@ function Tl(_ref140) {
|
|
|
9247
9273
|
});
|
|
9248
9274
|
}
|
|
9249
9275
|
}), (0, t.jsx)("div", {
|
|
9250
|
-
className:
|
|
9276
|
+
className: Dl["word-builder-candidate-list"],
|
|
9251
9277
|
children: l.candidateOptions.map(function (n, r) {
|
|
9252
9278
|
return (0, t.jsx)("button", {
|
|
9253
9279
|
disabled: e,
|
|
@@ -9268,30 +9294,30 @@ function Tl(_ref140) {
|
|
|
9268
9294
|
}) : null]
|
|
9269
9295
|
});
|
|
9270
9296
|
}
|
|
9271
|
-
function
|
|
9272
|
-
var e =
|
|
9273
|
-
t =
|
|
9274
|
-
n =
|
|
9275
|
-
r =
|
|
9276
|
-
i =
|
|
9297
|
+
function kl(_ref143) {
|
|
9298
|
+
var e = _ref143.answers,
|
|
9299
|
+
t = _ref143.blankLabel,
|
|
9300
|
+
n = _ref143.canClear,
|
|
9301
|
+
r = _ref143.index,
|
|
9302
|
+
i = _ref143.label;
|
|
9277
9303
|
var a = i || "".concat(t).concat(r + 1);
|
|
9278
9304
|
return !n || !e.trim() ? a : t === "\u7A7A" ? "".concat(a, "\uFF0C\u70B9\u51FB\u6E05\u7A7A") : "".concat(a, ", click to clear");
|
|
9279
9305
|
}
|
|
9280
|
-
function
|
|
9281
|
-
var e =
|
|
9282
|
-
n =
|
|
9283
|
-
r =
|
|
9284
|
-
i =
|
|
9285
|
-
a =
|
|
9286
|
-
o =
|
|
9287
|
-
s =
|
|
9288
|
-
c =
|
|
9289
|
-
l =
|
|
9290
|
-
u =
|
|
9306
|
+
function Al(_ref144) {
|
|
9307
|
+
var e = _ref144.disabled,
|
|
9308
|
+
n = _ref144.element,
|
|
9309
|
+
r = _ref144.item,
|
|
9310
|
+
i = _ref144.locale,
|
|
9311
|
+
a = _ref144.messages,
|
|
9312
|
+
o = _ref144.onResponseItemChange,
|
|
9313
|
+
s = _ref144.response,
|
|
9314
|
+
c = _ref144.responseIndex,
|
|
9315
|
+
l = _ref144.showAnswer,
|
|
9316
|
+
u = _ref144.uploadImage;
|
|
9291
9317
|
if (n.type !== r.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(n.type, "\uFF0Cactual=").concat(r.type));
|
|
9292
9318
|
return n.type === "richText" ? (0, t.jsx)(G, {
|
|
9293
9319
|
content: r.content
|
|
9294
|
-
}) : n.type === "textResponse" ? (0, t.jsx)(
|
|
9320
|
+
}) : n.type === "textResponse" ? (0, t.jsx)(Tl, {
|
|
9295
9321
|
disabled: e,
|
|
9296
9322
|
label: n.name,
|
|
9297
9323
|
locale: i,
|
|
@@ -9300,7 +9326,7 @@ function Dl(_ref143) {
|
|
|
9300
9326
|
response: s,
|
|
9301
9327
|
responseIndex: c,
|
|
9302
9328
|
uploadImage: u
|
|
9303
|
-
}) : n.type === "ordering" ? (0, t.jsx)(
|
|
9329
|
+
}) : n.type === "ordering" ? (0, t.jsx)(gl, {
|
|
9304
9330
|
disabled: e,
|
|
9305
9331
|
item: r,
|
|
9306
9332
|
messages: a,
|
|
@@ -9308,7 +9334,7 @@ function Dl(_ref143) {
|
|
|
9308
9334
|
response: s,
|
|
9309
9335
|
responseIndex: c,
|
|
9310
9336
|
showAnswer: l
|
|
9311
|
-
}) : n.type === "classification" ? (0, t.jsx)(
|
|
9337
|
+
}) : n.type === "classification" ? (0, t.jsx)(Fc, {
|
|
9312
9338
|
disabled: e,
|
|
9313
9339
|
item: r,
|
|
9314
9340
|
messages: a,
|
|
@@ -9316,7 +9342,7 @@ function Dl(_ref143) {
|
|
|
9316
9342
|
response: s,
|
|
9317
9343
|
responseIndex: c,
|
|
9318
9344
|
showAnswer: l
|
|
9319
|
-
}) : n.type === "textMarker" ? (0, t.jsx)(
|
|
9345
|
+
}) : n.type === "textMarker" ? (0, t.jsx)(Sl, {
|
|
9320
9346
|
disabled: e,
|
|
9321
9347
|
item: r,
|
|
9322
9348
|
messages: a,
|
|
@@ -9324,7 +9350,7 @@ function Dl(_ref143) {
|
|
|
9324
9350
|
response: s,
|
|
9325
9351
|
responseIndex: c,
|
|
9326
9352
|
showAnswer: l
|
|
9327
|
-
}) :
|
|
9353
|
+
}) : jl({
|
|
9328
9354
|
disabled: e,
|
|
9329
9355
|
element: n,
|
|
9330
9356
|
item: r,
|
|
@@ -9337,18 +9363,18 @@ function Dl(_ref143) {
|
|
|
9337
9363
|
uploadImage: u
|
|
9338
9364
|
});
|
|
9339
9365
|
}
|
|
9340
|
-
function
|
|
9341
|
-
var e =
|
|
9342
|
-
n =
|
|
9343
|
-
r =
|
|
9344
|
-
i =
|
|
9345
|
-
a =
|
|
9346
|
-
o =
|
|
9347
|
-
s =
|
|
9348
|
-
c =
|
|
9366
|
+
function jl(_ref145) {
|
|
9367
|
+
var e = _ref145.disabled,
|
|
9368
|
+
n = _ref145.element,
|
|
9369
|
+
r = _ref145.item,
|
|
9370
|
+
i = _ref145.messages,
|
|
9371
|
+
a = _ref145.onResponseItemChange,
|
|
9372
|
+
o = _ref145.response,
|
|
9373
|
+
s = _ref145.responseIndex,
|
|
9374
|
+
c = _ref145.showAnswer;
|
|
9349
9375
|
switch (n.type) {
|
|
9350
9376
|
case "choice":
|
|
9351
|
-
return (0, t.jsx)(
|
|
9377
|
+
return (0, t.jsx)(ml, {
|
|
9352
9378
|
disabled: e,
|
|
9353
9379
|
element: n,
|
|
9354
9380
|
item: r,
|
|
@@ -9359,7 +9385,7 @@ function Ol(_ref144) {
|
|
|
9359
9385
|
showAnswer: c
|
|
9360
9386
|
});
|
|
9361
9387
|
case "fill":
|
|
9362
|
-
return (0, t.jsx)(
|
|
9388
|
+
return (0, t.jsx)(jc, {
|
|
9363
9389
|
disabled: e,
|
|
9364
9390
|
item: r,
|
|
9365
9391
|
messages: i,
|
|
@@ -9369,7 +9395,7 @@ function Ol(_ref144) {
|
|
|
9369
9395
|
showAnswer: c
|
|
9370
9396
|
});
|
|
9371
9397
|
case "inlineFill":
|
|
9372
|
-
return (0, t.jsx)(
|
|
9398
|
+
return (0, t.jsx)($c, {
|
|
9373
9399
|
disabled: e,
|
|
9374
9400
|
element: n,
|
|
9375
9401
|
item: r,
|
|
@@ -9380,7 +9406,7 @@ function Ol(_ref144) {
|
|
|
9380
9406
|
showAnswer: c
|
|
9381
9407
|
});
|
|
9382
9408
|
case "wordBuilder":
|
|
9383
|
-
return (0, t.jsx)(
|
|
9409
|
+
return (0, t.jsx)(Ol, {
|
|
9384
9410
|
disabled: e,
|
|
9385
9411
|
element: n,
|
|
9386
9412
|
item: r,
|
|
@@ -9391,7 +9417,7 @@ function Ol(_ref144) {
|
|
|
9391
9417
|
showAnswer: c
|
|
9392
9418
|
});
|
|
9393
9419
|
case "judgement":
|
|
9394
|
-
return (0, t.jsx)(
|
|
9420
|
+
return (0, t.jsx)(il, {
|
|
9395
9421
|
disabled: e,
|
|
9396
9422
|
element: n,
|
|
9397
9423
|
item: r,
|
|
@@ -9402,7 +9428,7 @@ function Ol(_ref144) {
|
|
|
9402
9428
|
showAnswer: c
|
|
9403
9429
|
});
|
|
9404
9430
|
case "lineConnect":
|
|
9405
|
-
return (0, t.jsx)(
|
|
9431
|
+
return (0, t.jsx)(sl, {
|
|
9406
9432
|
disabled: e,
|
|
9407
9433
|
item: r,
|
|
9408
9434
|
messages: i,
|
|
@@ -9412,7 +9438,7 @@ function Ol(_ref144) {
|
|
|
9412
9438
|
showAnswer: c
|
|
9413
9439
|
});
|
|
9414
9440
|
case "matching":
|
|
9415
|
-
return (0, t.jsx)(
|
|
9441
|
+
return (0, t.jsx)(ul, {
|
|
9416
9442
|
disabled: e,
|
|
9417
9443
|
item: r,
|
|
9418
9444
|
messages: i,
|
|
@@ -9423,41 +9449,41 @@ function Ol(_ref144) {
|
|
|
9423
9449
|
});
|
|
9424
9450
|
}
|
|
9425
9451
|
}
|
|
9426
|
-
var
|
|
9427
|
-
function
|
|
9452
|
+
var Ml = ["locale"];
|
|
9453
|
+
function Nl(e) {
|
|
9428
9454
|
var _e$locale = e.locale,
|
|
9429
9455
|
n = _e$locale === void 0 ? "zh-CN" : _e$locale,
|
|
9430
|
-
r = ma(e,
|
|
9431
|
-
i =
|
|
9432
|
-
a =
|
|
9433
|
-
return (0, t.jsx)(
|
|
9456
|
+
r = ma(e, Ml),
|
|
9457
|
+
i = ls(r.value, r.questionTypeTemplates),
|
|
9458
|
+
a = ms(r.response, i);
|
|
9459
|
+
return (0, t.jsx)(Pl, C(C({}, r), {}, {
|
|
9434
9460
|
locale: n,
|
|
9435
|
-
messages:
|
|
9461
|
+
messages: vc(n),
|
|
9436
9462
|
numberPath: [],
|
|
9437
9463
|
onResponseChange: function onResponseChange(e) {
|
|
9438
|
-
return r.onResponseChange(
|
|
9464
|
+
return r.onResponseChange(ps(e, i));
|
|
9439
9465
|
},
|
|
9440
9466
|
response: a,
|
|
9441
9467
|
value: i
|
|
9442
9468
|
}));
|
|
9443
9469
|
}
|
|
9444
|
-
function
|
|
9445
|
-
var e =
|
|
9446
|
-
|
|
9447
|
-
n =
|
|
9448
|
-
|
|
9449
|
-
r =
|
|
9450
|
-
i =
|
|
9451
|
-
a =
|
|
9452
|
-
o =
|
|
9453
|
-
s =
|
|
9454
|
-
|
|
9455
|
-
c =
|
|
9456
|
-
|
|
9457
|
-
l =
|
|
9458
|
-
u =
|
|
9459
|
-
d =
|
|
9460
|
-
f =
|
|
9470
|
+
function Pl(_ref146) {
|
|
9471
|
+
var e = _ref146.className,
|
|
9472
|
+
_ref146$disabled = _ref146.disabled,
|
|
9473
|
+
n = _ref146$disabled === void 0 ? !1 : _ref146$disabled,
|
|
9474
|
+
_ref146$locale = _ref146.locale,
|
|
9475
|
+
r = _ref146$locale === void 0 ? "zh-CN" : _ref146$locale,
|
|
9476
|
+
i = _ref146.messages,
|
|
9477
|
+
a = _ref146.numberPath,
|
|
9478
|
+
o = _ref146.onResponseChange,
|
|
9479
|
+
s = _ref146.response,
|
|
9480
|
+
_ref146$showAnswer = _ref146.showAnswer,
|
|
9481
|
+
c = _ref146$showAnswer === void 0 ? !1 : _ref146$showAnswer,
|
|
9482
|
+
_ref146$showExtraAttr = _ref146.showExtraAttributes,
|
|
9483
|
+
l = _ref146$showExtraAttr === void 0 ? !1 : _ref146$showExtraAttr,
|
|
9484
|
+
u = _ref146.questionTypeTemplates,
|
|
9485
|
+
d = _ref146.uploadImage,
|
|
9486
|
+
f = _ref146.value;
|
|
9461
9487
|
var p = Zi(u, f);
|
|
9462
9488
|
if (!p) return (0, t.jsx)("div", {
|
|
9463
9489
|
className: H(U.root, e),
|
|
@@ -9466,7 +9492,7 @@ function jl(_ref145) {
|
|
|
9466
9492
|
children: i.missingQuestionTypeTemplate
|
|
9467
9493
|
})
|
|
9468
9494
|
});
|
|
9469
|
-
var m =
|
|
9495
|
+
var m = Fl({
|
|
9470
9496
|
disabled: n,
|
|
9471
9497
|
locale: r,
|
|
9472
9498
|
messages: i,
|
|
@@ -9482,28 +9508,28 @@ function jl(_ref145) {
|
|
|
9482
9508
|
});
|
|
9483
9509
|
return (0, t.jsx)("div", {
|
|
9484
9510
|
className: H(U.root, e),
|
|
9485
|
-
children:
|
|
9511
|
+
children: zl(p, f) ? (0, t.jsx)("div", {
|
|
9486
9512
|
className: U.empty,
|
|
9487
9513
|
children: i.previewEmpty
|
|
9488
9514
|
}) : m
|
|
9489
9515
|
});
|
|
9490
9516
|
}
|
|
9491
|
-
function
|
|
9517
|
+
function Fl(e) {
|
|
9492
9518
|
return (0, t.jsxs)(t.Fragment, {
|
|
9493
|
-
children: [
|
|
9494
|
-
});
|
|
9495
|
-
}
|
|
9496
|
-
function
|
|
9497
|
-
var e =
|
|
9498
|
-
n =
|
|
9499
|
-
r =
|
|
9500
|
-
i =
|
|
9501
|
-
a =
|
|
9502
|
-
o =
|
|
9503
|
-
s =
|
|
9504
|
-
c =
|
|
9505
|
-
l =
|
|
9506
|
-
return (0, t.jsx)("div", {
|
|
9519
|
+
children: [Il(e), Rl(e), Ll(e)]
|
|
9520
|
+
});
|
|
9521
|
+
}
|
|
9522
|
+
function Il(_ref147) {
|
|
9523
|
+
var e = _ref147.disabled,
|
|
9524
|
+
n = _ref147.locale,
|
|
9525
|
+
r = _ref147.messages,
|
|
9526
|
+
i = _ref147.onResponseChange,
|
|
9527
|
+
a = _ref147.response,
|
|
9528
|
+
o = _ref147.showAnswer,
|
|
9529
|
+
s = _ref147.structure,
|
|
9530
|
+
c = _ref147.uploadImage,
|
|
9531
|
+
l = _ref147.value;
|
|
9532
|
+
return s.elements.length === 0 ? null : (0, t.jsx)("div", {
|
|
9507
9533
|
className: U["element-list"],
|
|
9508
9534
|
children: s.elements.map(function (u, d) {
|
|
9509
9535
|
var f = Yt(l, d, u),
|
|
@@ -9512,14 +9538,14 @@ function Nl(_ref146) {
|
|
|
9512
9538
|
}).length;
|
|
9513
9539
|
return (0, t.jsx)("section", {
|
|
9514
9540
|
className: U.element,
|
|
9515
|
-
children: (0, t.jsx)(
|
|
9541
|
+
children: (0, t.jsx)(Al, {
|
|
9516
9542
|
disabled: e,
|
|
9517
9543
|
element: u,
|
|
9518
9544
|
item: f,
|
|
9519
9545
|
locale: n,
|
|
9520
9546
|
messages: r,
|
|
9521
9547
|
onResponseItemChange: function onResponseItemChange(e) {
|
|
9522
|
-
return i(
|
|
9548
|
+
return i(Ks(a, p, e));
|
|
9523
9549
|
},
|
|
9524
9550
|
response: a,
|
|
9525
9551
|
responseIndex: p,
|
|
@@ -9530,27 +9556,27 @@ function Nl(_ref146) {
|
|
|
9530
9556
|
})
|
|
9531
9557
|
});
|
|
9532
9558
|
}
|
|
9533
|
-
function
|
|
9534
|
-
var e =
|
|
9535
|
-
n =
|
|
9536
|
-
r =
|
|
9537
|
-
i =
|
|
9538
|
-
a =
|
|
9539
|
-
o =
|
|
9540
|
-
s =
|
|
9541
|
-
c =
|
|
9559
|
+
function Ll(_ref148) {
|
|
9560
|
+
var e = _ref148.disabled,
|
|
9561
|
+
n = _ref148.locale,
|
|
9562
|
+
r = _ref148.messages,
|
|
9563
|
+
i = _ref148.response,
|
|
9564
|
+
a = _ref148.showExtraAttributes,
|
|
9565
|
+
o = _ref148.structure,
|
|
9566
|
+
s = _ref148.uploadImage,
|
|
9567
|
+
c = _ref148.value;
|
|
9542
9568
|
return a ? (0, t.jsx)("div", {
|
|
9543
9569
|
className: U["element-list"],
|
|
9544
9570
|
children: o.extras.map(function (a, o) {
|
|
9545
9571
|
var l = Xt(c, o, a);
|
|
9546
9572
|
return A(l.content) ? null : (0, t.jsxs)("section", {
|
|
9547
9573
|
className: U.extra,
|
|
9548
|
-
children: [(0, t.jsx)(
|
|
9574
|
+
children: [(0, t.jsx)(Oc, {
|
|
9549
9575
|
children: a.name
|
|
9550
|
-
}), (0, t.jsx)(
|
|
9576
|
+
}), (0, t.jsx)(Al, {
|
|
9551
9577
|
disabled: e,
|
|
9552
|
-
element:
|
|
9553
|
-
item:
|
|
9578
|
+
element: Bl(a),
|
|
9579
|
+
item: Vl(l),
|
|
9554
9580
|
locale: n,
|
|
9555
9581
|
messages: r,
|
|
9556
9582
|
onResponseItemChange: function onResponseItemChange() {
|
|
@@ -9565,28 +9591,28 @@ function Pl(_ref147) {
|
|
|
9565
9591
|
})
|
|
9566
9592
|
}) : null;
|
|
9567
9593
|
}
|
|
9568
|
-
function
|
|
9569
|
-
var e =
|
|
9570
|
-
n =
|
|
9571
|
-
r =
|
|
9572
|
-
i =
|
|
9573
|
-
a =
|
|
9574
|
-
o =
|
|
9575
|
-
s =
|
|
9576
|
-
c =
|
|
9577
|
-
l =
|
|
9578
|
-
u =
|
|
9579
|
-
d =
|
|
9580
|
-
return d.children.length === 0 ? null : (0, t.jsx)(
|
|
9594
|
+
function Rl(_ref149) {
|
|
9595
|
+
var e = _ref149.disabled,
|
|
9596
|
+
n = _ref149.locale,
|
|
9597
|
+
r = _ref149.messages,
|
|
9598
|
+
i = _ref149.numberPath,
|
|
9599
|
+
a = _ref149.onResponseChange,
|
|
9600
|
+
o = _ref149.response,
|
|
9601
|
+
s = _ref149.showAnswer,
|
|
9602
|
+
c = _ref149.showExtraAttributes,
|
|
9603
|
+
l = _ref149.questionTypeTemplates,
|
|
9604
|
+
u = _ref149.uploadImage,
|
|
9605
|
+
d = _ref149.value;
|
|
9606
|
+
return d.children.length === 0 ? null : (0, t.jsx)(kc, {
|
|
9581
9607
|
disabled: e,
|
|
9582
9608
|
messages: r,
|
|
9583
9609
|
numberPath: i,
|
|
9584
9610
|
onChildResponseChange: function onChildResponseChange(e, t) {
|
|
9585
|
-
return a(
|
|
9611
|
+
return a(qs(o, e, t));
|
|
9586
9612
|
},
|
|
9587
9613
|
response: o,
|
|
9588
9614
|
renderChild: function renderChild(i, a, o, d) {
|
|
9589
|
-
return (0, t.jsx)(
|
|
9615
|
+
return (0, t.jsx)(Pl, {
|
|
9590
9616
|
disabled: e,
|
|
9591
9617
|
locale: n,
|
|
9592
9618
|
messages: r,
|
|
@@ -9603,31 +9629,31 @@ function Fl(_ref148) {
|
|
|
9603
9629
|
value: d
|
|
9604
9630
|
});
|
|
9605
9631
|
}
|
|
9606
|
-
function
|
|
9632
|
+
function zl(e, t) {
|
|
9607
9633
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
9608
9634
|
}
|
|
9609
|
-
function
|
|
9635
|
+
function Bl(e) {
|
|
9610
9636
|
return {
|
|
9611
9637
|
config: {},
|
|
9612
9638
|
name: e.name,
|
|
9613
9639
|
type: "richText"
|
|
9614
9640
|
};
|
|
9615
9641
|
}
|
|
9616
|
-
function
|
|
9642
|
+
function Vl(e) {
|
|
9617
9643
|
return {
|
|
9618
9644
|
content: e.content,
|
|
9619
9645
|
type: "richText"
|
|
9620
9646
|
};
|
|
9621
9647
|
}
|
|
9622
|
-
var
|
|
9648
|
+
var Hl = {
|
|
9623
9649
|
"blank-list": "_blank-list_12ccp_1",
|
|
9624
9650
|
"blank-item": "_blank-item_12ccp_11",
|
|
9625
9651
|
"blank-field": "_blank-field_12ccp_17"
|
|
9626
9652
|
};
|
|
9627
|
-
function
|
|
9628
|
-
var e =
|
|
9629
|
-
n =
|
|
9630
|
-
r =
|
|
9653
|
+
function Ul(_ref150) {
|
|
9654
|
+
var e = _ref150.item,
|
|
9655
|
+
n = _ref150.messages,
|
|
9656
|
+
r = _ref150.showAnswer;
|
|
9631
9657
|
var i = k(e.answers, e.blanks).map(function (r, i) {
|
|
9632
9658
|
return {
|
|
9633
9659
|
kind: "detailed",
|
|
@@ -9636,21 +9662,21 @@ function Bl(_ref149) {
|
|
|
9636
9662
|
content: e
|
|
9637
9663
|
}, "group-".concat(i, "-answer-").concat(n));
|
|
9638
9664
|
}),
|
|
9639
|
-
marker:
|
|
9665
|
+
marker: yc(r.blankIds, e.blanks, n.blankLabel)
|
|
9640
9666
|
};
|
|
9641
9667
|
});
|
|
9642
9668
|
return (0, t.jsxs)("div", {
|
|
9643
9669
|
className: W.element,
|
|
9644
9670
|
children: [(0, t.jsx)("ol", {
|
|
9645
|
-
className:
|
|
9671
|
+
className: Hl["blank-list"],
|
|
9646
9672
|
children: e.blanks.map(function (e, r) {
|
|
9647
9673
|
return (0, t.jsx)("li", {
|
|
9648
|
-
className:
|
|
9674
|
+
className: Hl["blank-item"],
|
|
9649
9675
|
children: (0, t.jsxs)("span", {
|
|
9650
|
-
className:
|
|
9676
|
+
className: Hl["blank-field"],
|
|
9651
9677
|
children: [n.blankLabel, " ", r + 1]
|
|
9652
9678
|
})
|
|
9653
|
-
},
|
|
9679
|
+
}, Wl(e, r));
|
|
9654
9680
|
})
|
|
9655
9681
|
}), r ? (0, t.jsx)(K, {
|
|
9656
9682
|
groups: i,
|
|
@@ -9658,13 +9684,13 @@ function Bl(_ref149) {
|
|
|
9658
9684
|
}) : null]
|
|
9659
9685
|
});
|
|
9660
9686
|
}
|
|
9661
|
-
function
|
|
9687
|
+
function Wl(e, t) {
|
|
9662
9688
|
return e || "blank-".concat(t + 1);
|
|
9663
9689
|
}
|
|
9664
|
-
function
|
|
9665
|
-
var e =
|
|
9666
|
-
n =
|
|
9667
|
-
r =
|
|
9690
|
+
function Gl(_ref151) {
|
|
9691
|
+
var e = _ref151.item,
|
|
9692
|
+
n = _ref151.messages,
|
|
9693
|
+
r = _ref151.showAnswer;
|
|
9668
9694
|
return (0, t.jsxs)("div", {
|
|
9669
9695
|
className: W.element,
|
|
9670
9696
|
children: [(0, t.jsxs)("div", {
|
|
@@ -9697,18 +9723,18 @@ function Hl(_ref150) {
|
|
|
9697
9723
|
})
|
|
9698
9724
|
})]
|
|
9699
9725
|
}), r ? (0, t.jsx)(K, {
|
|
9700
|
-
groups:
|
|
9726
|
+
groups: Pc(e),
|
|
9701
9727
|
title: n.standardAnswer
|
|
9702
9728
|
}) : null]
|
|
9703
9729
|
});
|
|
9704
9730
|
}
|
|
9705
|
-
function
|
|
9706
|
-
var e =
|
|
9707
|
-
n =
|
|
9708
|
-
r =
|
|
9709
|
-
i =
|
|
9731
|
+
function Kl(_ref152) {
|
|
9732
|
+
var e = _ref152.element,
|
|
9733
|
+
n = _ref152.item,
|
|
9734
|
+
r = _ref152.messages,
|
|
9735
|
+
i = _ref152.showAnswer;
|
|
9710
9736
|
var a = vn(n, e, !0),
|
|
9711
|
-
o =
|
|
9737
|
+
o = Tc(a).map(function (e, n) {
|
|
9712
9738
|
return {
|
|
9713
9739
|
kind: "detailed",
|
|
9714
9740
|
contents: e.contents.map(function (e, r) {
|
|
@@ -9716,20 +9742,20 @@ function Ul(_ref151) {
|
|
|
9716
9742
|
content: e
|
|
9717
9743
|
}, "group-".concat(n, "-answer-").concat(r));
|
|
9718
9744
|
}),
|
|
9719
|
-
marker:
|
|
9745
|
+
marker: yc(e.blankIds, a.blanks, r.blankLabel)
|
|
9720
9746
|
};
|
|
9721
9747
|
});
|
|
9722
9748
|
return (0, t.jsxs)("div", {
|
|
9723
9749
|
className: W.element,
|
|
9724
9750
|
children: [(0, t.jsx)(G, {
|
|
9725
9751
|
content: a.content
|
|
9726
|
-
}),
|
|
9752
|
+
}), ql(a, r.candidateOptions), i ? (0, t.jsx)(K, {
|
|
9727
9753
|
groups: o,
|
|
9728
9754
|
title: r.standardAnswer
|
|
9729
9755
|
}) : null]
|
|
9730
9756
|
});
|
|
9731
9757
|
}
|
|
9732
|
-
function
|
|
9758
|
+
function ql(e, n) {
|
|
9733
9759
|
var r, i;
|
|
9734
9760
|
var a = (r = e.candidateOptions) == null ? [] : r,
|
|
9735
9761
|
o = (i = e.blankOptionGroups) == null ? [] : i;
|
|
@@ -9760,11 +9786,11 @@ function Wl(e, n) {
|
|
|
9760
9786
|
})]
|
|
9761
9787
|
});
|
|
9762
9788
|
}
|
|
9763
|
-
function
|
|
9764
|
-
var e =
|
|
9765
|
-
n =
|
|
9766
|
-
r =
|
|
9767
|
-
i =
|
|
9789
|
+
function Jl(_ref153) {
|
|
9790
|
+
var e = _ref153.element,
|
|
9791
|
+
n = _ref153.item,
|
|
9792
|
+
r = _ref153.messages,
|
|
9793
|
+
i = _ref153.showAnswer;
|
|
9768
9794
|
var a = tn(e.config.judgeAnswerMode),
|
|
9769
9795
|
o = [{
|
|
9770
9796
|
kind: "detailed",
|
|
@@ -9775,9 +9801,9 @@ function Gl(_ref152) {
|
|
|
9775
9801
|
className: W.element,
|
|
9776
9802
|
children: [(0, t.jsx)("ol", {
|
|
9777
9803
|
className: W["judgement-list"],
|
|
9778
|
-
children: a.map(function (
|
|
9779
|
-
var e =
|
|
9780
|
-
n =
|
|
9804
|
+
children: a.map(function (_ref154) {
|
|
9805
|
+
var e = _ref154.label,
|
|
9806
|
+
n = _ref154.value;
|
|
9781
9807
|
return (0, t.jsx)("li", {
|
|
9782
9808
|
className: W["judgement-item"],
|
|
9783
9809
|
children: e
|
|
@@ -9789,10 +9815,10 @@ function Gl(_ref152) {
|
|
|
9789
9815
|
}) : null]
|
|
9790
9816
|
});
|
|
9791
9817
|
}
|
|
9792
|
-
function
|
|
9793
|
-
var e =
|
|
9794
|
-
n =
|
|
9795
|
-
r =
|
|
9818
|
+
function Yl(_ref155) {
|
|
9819
|
+
var e = _ref155.item,
|
|
9820
|
+
n = _ref155.messages,
|
|
9821
|
+
r = _ref155.showAnswer;
|
|
9796
9822
|
var i = {
|
|
9797
9823
|
gridTemplateColumns: "repeat(".concat(e.columns.length, ", minmax(12rem, 1fr))")
|
|
9798
9824
|
};
|
|
@@ -9825,37 +9851,37 @@ function Kl(_ref154) {
|
|
|
9825
9851
|
})
|
|
9826
9852
|
})
|
|
9827
9853
|
}), r ? (0, t.jsx)(K, {
|
|
9828
|
-
groups:
|
|
9854
|
+
groups: al(e),
|
|
9829
9855
|
title: n.standardAnswer
|
|
9830
9856
|
}) : null]
|
|
9831
9857
|
});
|
|
9832
9858
|
}
|
|
9833
|
-
var
|
|
9859
|
+
var Xl = {
|
|
9834
9860
|
board: "_board_5xarh_1",
|
|
9835
9861
|
columns: "_columns_5xarh_6",
|
|
9836
9862
|
column: "_column_5xarh_6",
|
|
9837
9863
|
item: "_item_5xarh_18",
|
|
9838
9864
|
marker: "_marker_5xarh_42"
|
|
9839
9865
|
};
|
|
9840
|
-
function
|
|
9841
|
-
var e =
|
|
9842
|
-
n =
|
|
9843
|
-
r =
|
|
9866
|
+
function Zl(_ref156) {
|
|
9867
|
+
var e = _ref156.item,
|
|
9868
|
+
n = _ref156.messages,
|
|
9869
|
+
r = _ref156.showAnswer;
|
|
9844
9870
|
return (0, t.jsxs)("div", {
|
|
9845
9871
|
className: W.element,
|
|
9846
9872
|
children: [(0, t.jsx)("div", {
|
|
9847
|
-
className:
|
|
9873
|
+
className: Xl.board,
|
|
9848
9874
|
children: (0, t.jsx)("div", {
|
|
9849
|
-
className:
|
|
9875
|
+
className: Xl.columns,
|
|
9850
9876
|
children: e.columns.map(function (e) {
|
|
9851
9877
|
return (0, t.jsx)("section", {
|
|
9852
|
-
className:
|
|
9878
|
+
className: Xl.column,
|
|
9853
9879
|
children: e.items.map(function (n, r) {
|
|
9854
9880
|
var i = $t(e.labelStyle, r);
|
|
9855
9881
|
return (0, t.jsxs)("div", {
|
|
9856
|
-
className:
|
|
9882
|
+
className: Xl.item,
|
|
9857
9883
|
children: [i ? (0, t.jsx)("span", {
|
|
9858
|
-
className:
|
|
9884
|
+
className: Xl.marker,
|
|
9859
9885
|
children: i
|
|
9860
9886
|
}) : null, (0, t.jsx)(G, {
|
|
9861
9887
|
content: n.content
|
|
@@ -9866,28 +9892,28 @@ function Jl(_ref155) {
|
|
|
9866
9892
|
})
|
|
9867
9893
|
})
|
|
9868
9894
|
}), r ? (0, t.jsx)(K, {
|
|
9869
|
-
groups:
|
|
9895
|
+
groups: cl(e),
|
|
9870
9896
|
title: n.standardAnswer
|
|
9871
9897
|
}) : null]
|
|
9872
9898
|
});
|
|
9873
9899
|
}
|
|
9874
|
-
function
|
|
9875
|
-
var e =
|
|
9876
|
-
n =
|
|
9877
|
-
r =
|
|
9878
|
-
i =
|
|
9900
|
+
function Ql(_ref157) {
|
|
9901
|
+
var e = _ref157.element,
|
|
9902
|
+
n = _ref157.item,
|
|
9903
|
+
r = _ref157.messages,
|
|
9904
|
+
i = _ref157.showAnswer;
|
|
9879
9905
|
var a = rn(n, e.config.optionLabelStyle);
|
|
9880
9906
|
if (e.config.renderer === "table") {
|
|
9881
|
-
var _o3 =
|
|
9907
|
+
var _o3 = fl(e, n);
|
|
9882
9908
|
return (0, t.jsxs)("div", {
|
|
9883
9909
|
className: W.element,
|
|
9884
9910
|
children: [(0, t.jsx)("div", {
|
|
9885
|
-
className:
|
|
9911
|
+
className: pl["table-wrap"],
|
|
9886
9912
|
children: (0, t.jsxs)("table", {
|
|
9887
|
-
className:
|
|
9913
|
+
className: pl.table,
|
|
9888
9914
|
children: [(0, t.jsxs)("colgroup", {
|
|
9889
9915
|
children: [(0, t.jsx)("col", {
|
|
9890
|
-
className:
|
|
9916
|
+
className: pl["table-option-column"]
|
|
9891
9917
|
}), n.columns.map(function (e) {
|
|
9892
9918
|
return (0, t.jsx)("col", {}, e.id);
|
|
9893
9919
|
})]
|
|
@@ -9908,7 +9934,7 @@ function Yl(_ref156) {
|
|
|
9908
9934
|
return (0, t.jsxs)("tr", {
|
|
9909
9935
|
children: [(0, t.jsx)("td", {
|
|
9910
9936
|
children: (0, t.jsx)("span", {
|
|
9911
|
-
className:
|
|
9937
|
+
className: pl["table-option-marker"],
|
|
9912
9938
|
children: e.marker
|
|
9913
9939
|
})
|
|
9914
9940
|
}), e.cells.map(function (n, r) {
|
|
@@ -9928,7 +9954,7 @@ function Yl(_ref156) {
|
|
|
9928
9954
|
}) : null]
|
|
9929
9955
|
});
|
|
9930
9956
|
}
|
|
9931
|
-
var o =
|
|
9957
|
+
var o = fl(e, n);
|
|
9932
9958
|
return (0, t.jsxs)("div", {
|
|
9933
9959
|
className: W.element,
|
|
9934
9960
|
children: [(0, t.jsx)("ol", {
|
|
@@ -9950,10 +9976,10 @@ function Yl(_ref156) {
|
|
|
9950
9976
|
}) : null]
|
|
9951
9977
|
});
|
|
9952
9978
|
}
|
|
9953
|
-
function
|
|
9954
|
-
var e =
|
|
9955
|
-
n =
|
|
9956
|
-
r =
|
|
9979
|
+
function $l(_ref158) {
|
|
9980
|
+
var e = _ref158.item,
|
|
9981
|
+
n = _ref158.messages,
|
|
9982
|
+
r = _ref158.showAnswer;
|
|
9957
9983
|
return (0, t.jsxs)("div", {
|
|
9958
9984
|
className: W.element,
|
|
9959
9985
|
children: [(0, t.jsx)("ol", {
|
|
@@ -9970,26 +9996,26 @@ function Xl(_ref157) {
|
|
|
9970
9996
|
}, e.id);
|
|
9971
9997
|
})
|
|
9972
9998
|
}), r ? (0, t.jsx)(K, {
|
|
9973
|
-
groups:
|
|
9999
|
+
groups: hl(e),
|
|
9974
10000
|
title: n.standardAnswer
|
|
9975
10001
|
}) : null]
|
|
9976
10002
|
});
|
|
9977
10003
|
}
|
|
9978
|
-
function
|
|
9979
|
-
var e =
|
|
9980
|
-
n =
|
|
9981
|
-
r =
|
|
9982
|
-
i =
|
|
10004
|
+
function eu(_ref159) {
|
|
10005
|
+
var e = _ref159.element,
|
|
10006
|
+
n = _ref159.item,
|
|
10007
|
+
r = _ref159.messages,
|
|
10008
|
+
i = _ref159.showAnswer;
|
|
9983
10009
|
var a = _n(n, !0, e),
|
|
9984
|
-
o =
|
|
10010
|
+
o = El(a, r.blankLabel);
|
|
9985
10011
|
return (0, t.jsxs)("div", {
|
|
9986
10012
|
className: W.element,
|
|
9987
|
-
children: [(0, t.jsx)(
|
|
10013
|
+
children: [(0, t.jsx)(Rc, {
|
|
9988
10014
|
content: a.content,
|
|
9989
|
-
renderBlank: function renderBlank(
|
|
9990
|
-
var e =
|
|
9991
|
-
n =
|
|
9992
|
-
i =
|
|
10015
|
+
renderBlank: function renderBlank(_ref160) {
|
|
10016
|
+
var e = _ref160.blankId,
|
|
10017
|
+
n = _ref160.index,
|
|
10018
|
+
i = _ref160.label;
|
|
9993
10019
|
return (0, t.jsx)("span", {
|
|
9994
10020
|
"aria-label": i || "".concat(r.blankLabel).concat(n + 1),
|
|
9995
10021
|
className: W["word-builder-blank"],
|
|
@@ -10016,81 +10042,81 @@ function Zl(_ref158) {
|
|
|
10016
10042
|
}) : null]
|
|
10017
10043
|
});
|
|
10018
10044
|
}
|
|
10019
|
-
function
|
|
10020
|
-
var e =
|
|
10021
|
-
n =
|
|
10022
|
-
r =
|
|
10023
|
-
i =
|
|
10045
|
+
function tu(_ref161) {
|
|
10046
|
+
var e = _ref161.element,
|
|
10047
|
+
n = _ref161.item,
|
|
10048
|
+
r = _ref161.messages,
|
|
10049
|
+
i = _ref161.showAnswer;
|
|
10024
10050
|
if (e.type !== n.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(e.type, "\uFF0Cactual=").concat(n.type));
|
|
10025
10051
|
return e.type === "richText" ? (0, t.jsx)(G, {
|
|
10026
10052
|
content: n.content
|
|
10027
|
-
}) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(
|
|
10053
|
+
}) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)($l, {
|
|
10028
10054
|
item: n,
|
|
10029
10055
|
messages: r,
|
|
10030
10056
|
showAnswer: i
|
|
10031
|
-
}) : e.type === "classification" ? (0, t.jsx)(
|
|
10057
|
+
}) : e.type === "classification" ? (0, t.jsx)(Gl, {
|
|
10032
10058
|
item: n,
|
|
10033
10059
|
messages: r,
|
|
10034
10060
|
showAnswer: i
|
|
10035
|
-
}) : e.type === "textMarker" ? (0, t.jsx)(
|
|
10061
|
+
}) : e.type === "textMarker" ? (0, t.jsx)(xl, {
|
|
10036
10062
|
item: n,
|
|
10037
10063
|
messages: r,
|
|
10038
10064
|
showAnswer: i
|
|
10039
|
-
}) :
|
|
10065
|
+
}) : nu({
|
|
10040
10066
|
element: e,
|
|
10041
10067
|
item: n,
|
|
10042
10068
|
messages: r,
|
|
10043
10069
|
showAnswer: i
|
|
10044
10070
|
});
|
|
10045
10071
|
}
|
|
10046
|
-
function
|
|
10047
|
-
var e =
|
|
10048
|
-
n =
|
|
10049
|
-
r =
|
|
10050
|
-
i =
|
|
10072
|
+
function nu(_ref162) {
|
|
10073
|
+
var e = _ref162.element,
|
|
10074
|
+
n = _ref162.item,
|
|
10075
|
+
r = _ref162.messages,
|
|
10076
|
+
i = _ref162.showAnswer;
|
|
10051
10077
|
switch (e.type) {
|
|
10052
10078
|
case "choice":
|
|
10053
|
-
return (0, t.jsx)(
|
|
10079
|
+
return (0, t.jsx)(Ql, {
|
|
10054
10080
|
element: e,
|
|
10055
10081
|
item: n,
|
|
10056
10082
|
messages: r,
|
|
10057
10083
|
showAnswer: i
|
|
10058
10084
|
});
|
|
10059
10085
|
case "fill":
|
|
10060
|
-
return (0, t.jsx)(
|
|
10086
|
+
return (0, t.jsx)(Ul, {
|
|
10061
10087
|
item: n,
|
|
10062
10088
|
messages: r,
|
|
10063
10089
|
showAnswer: i
|
|
10064
10090
|
});
|
|
10065
10091
|
case "inlineFill":
|
|
10066
|
-
return (0, t.jsx)(
|
|
10092
|
+
return (0, t.jsx)(Kl, {
|
|
10067
10093
|
element: e,
|
|
10068
10094
|
item: n,
|
|
10069
10095
|
messages: r,
|
|
10070
10096
|
showAnswer: i
|
|
10071
10097
|
});
|
|
10072
10098
|
case "wordBuilder":
|
|
10073
|
-
return (0, t.jsx)(
|
|
10099
|
+
return (0, t.jsx)(eu, {
|
|
10074
10100
|
element: e,
|
|
10075
10101
|
item: n,
|
|
10076
10102
|
messages: r,
|
|
10077
10103
|
showAnswer: i
|
|
10078
10104
|
});
|
|
10079
10105
|
case "judgement":
|
|
10080
|
-
return (0, t.jsx)(
|
|
10106
|
+
return (0, t.jsx)(Jl, {
|
|
10081
10107
|
element: e,
|
|
10082
10108
|
item: n,
|
|
10083
10109
|
messages: r,
|
|
10084
10110
|
showAnswer: i
|
|
10085
10111
|
});
|
|
10086
10112
|
case "lineConnect":
|
|
10087
|
-
return (0, t.jsx)(
|
|
10113
|
+
return (0, t.jsx)(Yl, {
|
|
10088
10114
|
item: n,
|
|
10089
10115
|
messages: r,
|
|
10090
10116
|
showAnswer: i
|
|
10091
10117
|
});
|
|
10092
10118
|
case "matching":
|
|
10093
|
-
return (0, t.jsx)(
|
|
10119
|
+
return (0, t.jsx)(Zl, {
|
|
10094
10120
|
item: n,
|
|
10095
10121
|
messages: r,
|
|
10096
10122
|
showAnswer: i
|
|
@@ -10098,60 +10124,61 @@ function $l(_ref161) {
|
|
|
10098
10124
|
}
|
|
10099
10125
|
}
|
|
10100
10126
|
var X = {
|
|
10101
|
-
root: "
|
|
10102
|
-
empty: "
|
|
10103
|
-
"element-list": "_element-
|
|
10104
|
-
children: "
|
|
10105
|
-
element: "
|
|
10106
|
-
extra: "
|
|
10107
|
-
child: "
|
|
10108
|
-
"child-title": "_child-title_b7uvv_55"
|
|
10127
|
+
root: "_root_1jseb_1",
|
|
10128
|
+
empty: "_empty_1jseb_18",
|
|
10129
|
+
"element-list": "_element-list_1jseb_30",
|
|
10130
|
+
children: "_children_1jseb_31",
|
|
10131
|
+
element: "_element_1jseb_30",
|
|
10132
|
+
extra: "_extra_1jseb_41",
|
|
10133
|
+
child: "_child_1jseb_31"
|
|
10109
10134
|
};
|
|
10110
|
-
function
|
|
10111
|
-
var e =
|
|
10112
|
-
|
|
10113
|
-
n =
|
|
10114
|
-
r =
|
|
10115
|
-
i =
|
|
10135
|
+
function ru(_ref163) {
|
|
10136
|
+
var e = _ref163.messages,
|
|
10137
|
+
_ref163$numberPath = _ref163.numberPath,
|
|
10138
|
+
n = _ref163$numberPath === void 0 ? [] : _ref163$numberPath,
|
|
10139
|
+
r = _ref163.renderChild,
|
|
10140
|
+
i = _ref163.value;
|
|
10116
10141
|
return i.children.length === 0 ? (0, t.jsx)("div", {
|
|
10117
10142
|
className: X.empty,
|
|
10118
10143
|
children: e.previewEmpty
|
|
10119
10144
|
}) : (0, t.jsx)("div", {
|
|
10120
10145
|
className: X.children,
|
|
10121
|
-
children: i.children.map(function (
|
|
10122
|
-
var o = [].concat(_toConsumableArray(n), [a])
|
|
10123
|
-
|
|
10146
|
+
children: i.children.map(function (e, a) {
|
|
10147
|
+
var o = [].concat(_toConsumableArray(n), [a]),
|
|
10148
|
+
s = Do(o, i.children.length) ? Eo(o) : null;
|
|
10149
|
+
return (0, t.jsx)("section", {
|
|
10124
10150
|
className: X.child,
|
|
10125
|
-
children:
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10151
|
+
children: (0, t.jsx)(ko, {
|
|
10152
|
+
indented: !0,
|
|
10153
|
+
number: s,
|
|
10154
|
+
children: r(e, o)
|
|
10155
|
+
})
|
|
10156
|
+
}, e.id || a);
|
|
10130
10157
|
})
|
|
10131
10158
|
});
|
|
10132
10159
|
}
|
|
10133
|
-
var
|
|
10134
|
-
function
|
|
10160
|
+
var iu = ["locale"];
|
|
10161
|
+
function au(e) {
|
|
10135
10162
|
var _e$locale2 = e.locale,
|
|
10136
10163
|
n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
|
|
10137
|
-
r = ma(e,
|
|
10138
|
-
i =
|
|
10139
|
-
return (0, t.jsx)(
|
|
10140
|
-
messages:
|
|
10164
|
+
r = ma(e, iu),
|
|
10165
|
+
i = ls(r.value, r.questionTypeTemplates);
|
|
10166
|
+
return (0, t.jsx)(ou, C(C({}, r), {}, {
|
|
10167
|
+
messages: vc(n),
|
|
10141
10168
|
numberPath: [],
|
|
10142
10169
|
value: i
|
|
10143
10170
|
}));
|
|
10144
10171
|
}
|
|
10145
|
-
function
|
|
10146
|
-
var e =
|
|
10147
|
-
n =
|
|
10148
|
-
r =
|
|
10149
|
-
|
|
10150
|
-
i =
|
|
10151
|
-
|
|
10152
|
-
a =
|
|
10153
|
-
o =
|
|
10154
|
-
s =
|
|
10172
|
+
function ou(_ref164) {
|
|
10173
|
+
var e = _ref164.className,
|
|
10174
|
+
n = _ref164.messages,
|
|
10175
|
+
r = _ref164.numberPath,
|
|
10176
|
+
_ref164$showAnswer = _ref164.showAnswer,
|
|
10177
|
+
i = _ref164$showAnswer === void 0 ? !1 : _ref164$showAnswer,
|
|
10178
|
+
_ref164$showExtraAttr = _ref164.showExtraAttributes,
|
|
10179
|
+
a = _ref164$showExtraAttr === void 0 ? !1 : _ref164$showExtraAttr,
|
|
10180
|
+
o = _ref164.questionTypeTemplates,
|
|
10181
|
+
s = _ref164.value;
|
|
10155
10182
|
var c = Zi(o, s);
|
|
10156
10183
|
if (!c) return (0, t.jsx)("div", {
|
|
10157
10184
|
className: H(X.root, e),
|
|
@@ -10160,13 +10187,13 @@ function ru(_ref163) {
|
|
|
10160
10187
|
children: n.missingQuestionTypeTemplate
|
|
10161
10188
|
})
|
|
10162
10189
|
});
|
|
10163
|
-
var l = (0, t.jsx)("div", {
|
|
10190
|
+
var l = c.elements.length === 0 ? null : (0, t.jsx)("div", {
|
|
10164
10191
|
className: X["element-list"],
|
|
10165
10192
|
children: c.elements.map(function (e, r) {
|
|
10166
10193
|
var a = Yt(s, r, e);
|
|
10167
10194
|
return (0, t.jsx)("section", {
|
|
10168
10195
|
className: X.element,
|
|
10169
|
-
children: (0, t.jsx)(
|
|
10196
|
+
children: (0, t.jsx)(tu, {
|
|
10170
10197
|
element: e,
|
|
10171
10198
|
item: a,
|
|
10172
10199
|
messages: n,
|
|
@@ -10181,11 +10208,11 @@ function ru(_ref163) {
|
|
|
10181
10208
|
var i = Xt(s, r, e);
|
|
10182
10209
|
return A(i.content) ? null : (0, t.jsxs)("section", {
|
|
10183
10210
|
className: X.extra,
|
|
10184
|
-
children: [(0, t.jsx)(
|
|
10211
|
+
children: [(0, t.jsx)(Oc, {
|
|
10185
10212
|
children: e.name
|
|
10186
|
-
}), (0, t.jsx)(
|
|
10187
|
-
element:
|
|
10188
|
-
item:
|
|
10213
|
+
}), (0, t.jsx)(tu, {
|
|
10214
|
+
element: cu(e),
|
|
10215
|
+
item: lu(i),
|
|
10189
10216
|
messages: n,
|
|
10190
10217
|
showAnswer: !1
|
|
10191
10218
|
})]
|
|
@@ -10193,11 +10220,11 @@ function ru(_ref163) {
|
|
|
10193
10220
|
})
|
|
10194
10221
|
}) : null,
|
|
10195
10222
|
d = (0, t.jsxs)(t.Fragment, {
|
|
10196
|
-
children: [l, s.children.length === 0 ? null : (0, t.jsx)(
|
|
10223
|
+
children: [l, s.children.length === 0 ? null : (0, t.jsx)(ru, {
|
|
10197
10224
|
messages: n,
|
|
10198
10225
|
numberPath: r,
|
|
10199
10226
|
renderChild: function renderChild(e, r) {
|
|
10200
|
-
return (0, t.jsx)(
|
|
10227
|
+
return (0, t.jsx)(ou, {
|
|
10201
10228
|
numberPath: r,
|
|
10202
10229
|
messages: n,
|
|
10203
10230
|
showAnswer: i,
|
|
@@ -10211,29 +10238,29 @@ function ru(_ref163) {
|
|
|
10211
10238
|
});
|
|
10212
10239
|
return (0, t.jsx)("div", {
|
|
10213
10240
|
className: H(X.root, e),
|
|
10214
|
-
children:
|
|
10241
|
+
children: su(c, s) ? (0, t.jsx)("div", {
|
|
10215
10242
|
className: X.empty,
|
|
10216
10243
|
children: n.previewEmpty
|
|
10217
10244
|
}) : d
|
|
10218
10245
|
});
|
|
10219
10246
|
}
|
|
10220
|
-
function
|
|
10247
|
+
function su(e, t) {
|
|
10221
10248
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
10222
10249
|
}
|
|
10223
|
-
function
|
|
10250
|
+
function cu(e) {
|
|
10224
10251
|
return {
|
|
10225
10252
|
config: {},
|
|
10226
10253
|
name: e.name,
|
|
10227
10254
|
type: "richText"
|
|
10228
10255
|
};
|
|
10229
10256
|
}
|
|
10230
|
-
function
|
|
10257
|
+
function lu(e) {
|
|
10231
10258
|
return {
|
|
10232
10259
|
content: e.content,
|
|
10233
10260
|
type: "richText"
|
|
10234
10261
|
};
|
|
10235
10262
|
}
|
|
10236
|
-
var
|
|
10263
|
+
var uu = {
|
|
10237
10264
|
root: "_root_17bqr_1",
|
|
10238
10265
|
toolbar: "_toolbar_17bqr_26",
|
|
10239
10266
|
"toolbar-title": "_toolbar-title_17bqr_36",
|
|
@@ -10288,7 +10315,7 @@ var su = {
|
|
|
10288
10315
|
"palette-section-title": "_palette-section-title_vhj2r_62",
|
|
10289
10316
|
"palette-button": "_palette-button_vhj2r_70"
|
|
10290
10317
|
},
|
|
10291
|
-
|
|
10318
|
+
du = {
|
|
10292
10319
|
"en-US": {
|
|
10293
10320
|
addElement: "Add element",
|
|
10294
10321
|
addExtra: "Add extra attribute",
|
|
@@ -10422,26 +10449,26 @@ var su = {
|
|
|
10422
10449
|
wordBuilderLabel: "\u7EC4\u8BCD\u62FC\u5199"
|
|
10423
10450
|
}
|
|
10424
10451
|
};
|
|
10425
|
-
function
|
|
10452
|
+
function fu(e, t) {
|
|
10426
10453
|
var n;
|
|
10427
10454
|
return (n = e.extraDescriptions.get(t)) == null ? t : n;
|
|
10428
10455
|
}
|
|
10429
|
-
function
|
|
10456
|
+
function pu(e, t) {
|
|
10430
10457
|
var n;
|
|
10431
10458
|
return (n = e.extraLabels.get(t)) == null ? t : n;
|
|
10432
10459
|
}
|
|
10433
|
-
function
|
|
10460
|
+
function mu(e) {
|
|
10434
10461
|
switch (e) {
|
|
10435
10462
|
case "en-US":
|
|
10436
|
-
return
|
|
10463
|
+
return du["en-US"];
|
|
10437
10464
|
case "zh-CN":
|
|
10438
|
-
return
|
|
10465
|
+
return du["zh-CN"];
|
|
10439
10466
|
}
|
|
10440
10467
|
}
|
|
10441
|
-
function
|
|
10442
|
-
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription :
|
|
10468
|
+
function hu(e, t) {
|
|
10469
|
+
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : vu(e, t);
|
|
10443
10470
|
}
|
|
10444
|
-
var
|
|
10471
|
+
var gu = {
|
|
10445
10472
|
choice: function choice(e) {
|
|
10446
10473
|
return e.optionGroupDescription;
|
|
10447
10474
|
},
|
|
@@ -10473,7 +10500,7 @@ var pu = {
|
|
|
10473
10500
|
return e.wordBuilderDescription;
|
|
10474
10501
|
}
|
|
10475
10502
|
},
|
|
10476
|
-
|
|
10503
|
+
_u = {
|
|
10477
10504
|
choice: function choice(e) {
|
|
10478
10505
|
return e.optionGroupLabel;
|
|
10479
10506
|
},
|
|
@@ -10505,40 +10532,40 @@ var pu = {
|
|
|
10505
10532
|
return e.wordBuilderLabel;
|
|
10506
10533
|
}
|
|
10507
10534
|
};
|
|
10508
|
-
function
|
|
10509
|
-
return
|
|
10535
|
+
function vu(e, t) {
|
|
10536
|
+
return gu[t](e);
|
|
10510
10537
|
}
|
|
10511
|
-
function
|
|
10512
|
-
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel :
|
|
10538
|
+
function yu(e, t) {
|
|
10539
|
+
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : bu(e, t);
|
|
10513
10540
|
}
|
|
10514
|
-
function
|
|
10515
|
-
return
|
|
10541
|
+
function bu(e, t) {
|
|
10542
|
+
return _u[t](e);
|
|
10516
10543
|
}
|
|
10517
|
-
function
|
|
10544
|
+
function xu(e, t) {
|
|
10518
10545
|
var n;
|
|
10519
10546
|
return (n = e.optionValueLabels.get(t)) == null ? t : n;
|
|
10520
10547
|
}
|
|
10521
|
-
function
|
|
10548
|
+
function Su(e, t) {
|
|
10522
10549
|
var n;
|
|
10523
10550
|
return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
|
|
10524
10551
|
}
|
|
10525
|
-
function
|
|
10552
|
+
function Cu(e, t) {
|
|
10526
10553
|
var n;
|
|
10527
10554
|
return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
|
|
10528
10555
|
}
|
|
10529
|
-
function
|
|
10530
|
-
var e =
|
|
10531
|
-
r =
|
|
10532
|
-
i =
|
|
10533
|
-
a =
|
|
10534
|
-
o =
|
|
10535
|
-
s =
|
|
10536
|
-
c =
|
|
10537
|
-
l =
|
|
10538
|
-
var
|
|
10539
|
-
|
|
10540
|
-
u =
|
|
10541
|
-
d =
|
|
10556
|
+
function wu(_ref165) {
|
|
10557
|
+
var e = _ref165.elements,
|
|
10558
|
+
r = _ref165.extras,
|
|
10559
|
+
i = _ref165.labels,
|
|
10560
|
+
a = _ref165.onDeleteElement,
|
|
10561
|
+
o = _ref165.onDeleteExtra,
|
|
10562
|
+
s = _ref165.onMoveElement,
|
|
10563
|
+
c = _ref165.onSelectElement,
|
|
10564
|
+
l = _ref165.selectedElementClientId;
|
|
10565
|
+
var _ref166 = (0, n.useState)(null),
|
|
10566
|
+
_ref167 = _slicedToArray(_ref166, 2),
|
|
10567
|
+
u = _ref167[0],
|
|
10568
|
+
d = _ref167[1];
|
|
10542
10569
|
return (0, t.jsxs)("section", {
|
|
10543
10570
|
className: Q.panel,
|
|
10544
10571
|
children: [(0, t.jsxs)("div", {
|
|
@@ -10557,7 +10584,7 @@ function xu(_ref164) {
|
|
|
10557
10584
|
className: Z["element-list"],
|
|
10558
10585
|
children: [e.map(function (n, r) {
|
|
10559
10586
|
var o = n.clientId === l,
|
|
10560
|
-
f =
|
|
10587
|
+
f = yu(i, n.type);
|
|
10561
10588
|
return (0, t.jsxs)("div", {
|
|
10562
10589
|
className: "".concat(Z["element-card"], " ").concat(o ? Z.active : ""),
|
|
10563
10590
|
onClick: function onClick() {
|
|
@@ -10626,7 +10653,7 @@ function xu(_ref164) {
|
|
|
10626
10653
|
children: i.extraTitle
|
|
10627
10654
|
}) : null, r.map(function (n, r) {
|
|
10628
10655
|
var a = n.clientId === l,
|
|
10629
|
-
s =
|
|
10656
|
+
s = pu(i, n.type);
|
|
10630
10657
|
return (0, t.jsxs)("div", {
|
|
10631
10658
|
className: "".concat(Z["element-card"], " ").concat(a ? Z.active : ""),
|
|
10632
10659
|
onClick: function onClick() {
|
|
@@ -10678,11 +10705,11 @@ function xu(_ref164) {
|
|
|
10678
10705
|
})]
|
|
10679
10706
|
});
|
|
10680
10707
|
}
|
|
10681
|
-
function
|
|
10682
|
-
var e =
|
|
10683
|
-
n =
|
|
10684
|
-
r =
|
|
10685
|
-
i =
|
|
10708
|
+
function Tu(_ref168) {
|
|
10709
|
+
var e = _ref168.addedExtraTypes,
|
|
10710
|
+
n = _ref168.labels,
|
|
10711
|
+
r = _ref168.onAddElement,
|
|
10712
|
+
i = _ref168.onAddExtra;
|
|
10686
10713
|
var a = new Set(e);
|
|
10687
10714
|
return (0, t.jsxs)("aside", {
|
|
10688
10715
|
className: Q.panel,
|
|
@@ -10696,16 +10723,16 @@ function Su(_ref167) {
|
|
|
10696
10723
|
className: Q.palette,
|
|
10697
10724
|
children: ee.map(function (e) {
|
|
10698
10725
|
return (0, t.jsxs)("button", {
|
|
10699
|
-
"aria-label": "".concat(n.addElement, ": ").concat(
|
|
10726
|
+
"aria-label": "".concat(n.addElement, ": ").concat(yu(n, e)),
|
|
10700
10727
|
className: Q["palette-button"],
|
|
10701
10728
|
onClick: function onClick() {
|
|
10702
10729
|
return r(e);
|
|
10703
10730
|
},
|
|
10704
10731
|
type: "button",
|
|
10705
10732
|
children: [(0, t.jsx)("strong", {
|
|
10706
|
-
children:
|
|
10733
|
+
children: yu(n, e)
|
|
10707
10734
|
}), (0, t.jsx)("small", {
|
|
10708
|
-
children:
|
|
10735
|
+
children: hu(n, e)
|
|
10709
10736
|
})]
|
|
10710
10737
|
}, e);
|
|
10711
10738
|
})
|
|
@@ -10719,7 +10746,7 @@ function Su(_ref167) {
|
|
|
10719
10746
|
children: w.map(function (e) {
|
|
10720
10747
|
var r = a.has(e);
|
|
10721
10748
|
return (0, t.jsxs)("button", {
|
|
10722
|
-
"aria-label": "".concat(n.addExtra, ": ").concat(
|
|
10749
|
+
"aria-label": "".concat(n.addExtra, ": ").concat(pu(n, e)),
|
|
10723
10750
|
className: Q["palette-button"],
|
|
10724
10751
|
disabled: r,
|
|
10725
10752
|
onClick: function onClick() {
|
|
@@ -10727,9 +10754,9 @@ function Su(_ref167) {
|
|
|
10727
10754
|
},
|
|
10728
10755
|
type: "button",
|
|
10729
10756
|
children: [(0, t.jsx)("strong", {
|
|
10730
|
-
children:
|
|
10757
|
+
children: pu(n, e)
|
|
10731
10758
|
}), (0, t.jsx)("small", {
|
|
10732
|
-
children:
|
|
10759
|
+
children: fu(n, e)
|
|
10733
10760
|
})]
|
|
10734
10761
|
}, e);
|
|
10735
10762
|
})
|
|
@@ -10747,26 +10774,26 @@ var $ = {
|
|
|
10747
10774
|
textarea: "_textarea_tgswd_28",
|
|
10748
10775
|
empty: "_empty_tgswd_61"
|
|
10749
10776
|
},
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
function
|
|
10759
|
-
var e =
|
|
10760
|
-
n =
|
|
10761
|
-
r =
|
|
10762
|
-
i =
|
|
10763
|
-
a =
|
|
10764
|
-
o =
|
|
10765
|
-
s =
|
|
10766
|
-
c =
|
|
10767
|
-
l =
|
|
10768
|
-
u =
|
|
10769
|
-
var d =
|
|
10777
|
+
Eu = ["none", "sharedPool", "perBlankOptions"],
|
|
10778
|
+
Du = ["upperAlpha", "lowerAlpha", "number"],
|
|
10779
|
+
Ou = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
|
|
10780
|
+
ku = [2, 3, 4, 5],
|
|
10781
|
+
Au = ["standard", "table"],
|
|
10782
|
+
ju = ["single", "multiple"],
|
|
10783
|
+
Mu = ["spelling", "sentence"],
|
|
10784
|
+
Nu = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
|
|
10785
|
+
function Pu(_ref169) {
|
|
10786
|
+
var e = _ref169.description,
|
|
10787
|
+
n = _ref169.globalConfig,
|
|
10788
|
+
r = _ref169.isSubjective,
|
|
10789
|
+
i = _ref169.labels,
|
|
10790
|
+
a = _ref169.onElementChange,
|
|
10791
|
+
o = _ref169.onExtraChange,
|
|
10792
|
+
s = _ref169.onGlobalConfigChange,
|
|
10793
|
+
c = _ref169.onMetadataChange,
|
|
10794
|
+
l = _ref169.selectedExtra,
|
|
10795
|
+
u = _ref169.selectedElement;
|
|
10796
|
+
var d = Fu({
|
|
10770
10797
|
labels: i,
|
|
10771
10798
|
onElementChange: a,
|
|
10772
10799
|
onExtraChange: o,
|
|
@@ -10877,12 +10904,12 @@ function ju(_ref168) {
|
|
|
10877
10904
|
})]
|
|
10878
10905
|
});
|
|
10879
10906
|
}
|
|
10880
|
-
function
|
|
10881
|
-
var e =
|
|
10882
|
-
n =
|
|
10883
|
-
r =
|
|
10884
|
-
i =
|
|
10885
|
-
a =
|
|
10907
|
+
function Fu(_ref170) {
|
|
10908
|
+
var e = _ref170.labels,
|
|
10909
|
+
n = _ref170.onElementChange,
|
|
10910
|
+
r = _ref170.onExtraChange,
|
|
10911
|
+
i = _ref170.selectedElement,
|
|
10912
|
+
a = _ref170.selectedExtra;
|
|
10886
10913
|
return i ? (0, t.jsxs)("div", {
|
|
10887
10914
|
className: $["form-stack"],
|
|
10888
10915
|
children: [(0, t.jsxs)("label", {
|
|
@@ -10911,7 +10938,7 @@ function Mu(_ref169) {
|
|
|
10911
10938
|
},
|
|
10912
10939
|
value: i.enName
|
|
10913
10940
|
})]
|
|
10914
|
-
}),
|
|
10941
|
+
}), Iu(i, e, n)]
|
|
10915
10942
|
}) : a ? (0, t.jsxs)("div", {
|
|
10916
10943
|
className: $["form-stack"],
|
|
10917
10944
|
children: [(0, t.jsxs)("label", {
|
|
@@ -10946,10 +10973,10 @@ function Mu(_ref169) {
|
|
|
10946
10973
|
children: e.noElement
|
|
10947
10974
|
});
|
|
10948
10975
|
}
|
|
10949
|
-
function
|
|
10950
|
-
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null :
|
|
10976
|
+
function Iu(e, t, n) {
|
|
10977
|
+
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Lu(e, t, n);
|
|
10951
10978
|
}
|
|
10952
|
-
function
|
|
10979
|
+
function Lu(e, n, r) {
|
|
10953
10980
|
switch (e.type) {
|
|
10954
10981
|
case "inlineFill":
|
|
10955
10982
|
return (0, t.jsxs)(t.Fragment, {
|
|
@@ -10967,10 +10994,10 @@ function Pu(e, n, r) {
|
|
|
10967
10994
|
}));
|
|
10968
10995
|
},
|
|
10969
10996
|
value: e.config.candidateMode,
|
|
10970
|
-
children:
|
|
10997
|
+
children: Eu.map(function (e) {
|
|
10971
10998
|
return (0, t.jsx)("option", {
|
|
10972
10999
|
value: e,
|
|
10973
|
-
children:
|
|
11000
|
+
children: Su(n, e)
|
|
10974
11001
|
}, e);
|
|
10975
11002
|
})
|
|
10976
11003
|
})]
|
|
@@ -11006,10 +11033,10 @@ function Pu(e, n, r) {
|
|
|
11006
11033
|
}));
|
|
11007
11034
|
},
|
|
11008
11035
|
value: e.config.builderMode,
|
|
11009
|
-
children:
|
|
11036
|
+
children: Mu.map(function (e) {
|
|
11010
11037
|
return (0, t.jsx)("option", {
|
|
11011
11038
|
value: e,
|
|
11012
|
-
children:
|
|
11039
|
+
children: xu(n, e)
|
|
11013
11040
|
}, e);
|
|
11014
11041
|
})
|
|
11015
11042
|
})]
|
|
@@ -11029,23 +11056,23 @@ function Pu(e, n, r) {
|
|
|
11029
11056
|
}));
|
|
11030
11057
|
},
|
|
11031
11058
|
value: e.config.judgeAnswerMode,
|
|
11032
|
-
children:
|
|
11059
|
+
children: Nu.map(function (e) {
|
|
11033
11060
|
return (0, t.jsx)("option", {
|
|
11034
11061
|
value: e,
|
|
11035
|
-
children:
|
|
11062
|
+
children: xu(n, e)
|
|
11036
11063
|
}, e);
|
|
11037
11064
|
})
|
|
11038
11065
|
})]
|
|
11039
11066
|
});
|
|
11040
11067
|
case "choice":
|
|
11041
|
-
return
|
|
11068
|
+
return Ru(e, n, r);
|
|
11042
11069
|
case "lineConnect":
|
|
11043
|
-
return
|
|
11070
|
+
return zu(e, n, r);
|
|
11044
11071
|
case "matching":
|
|
11045
|
-
return
|
|
11072
|
+
return Bu(e, n, r);
|
|
11046
11073
|
}
|
|
11047
11074
|
}
|
|
11048
|
-
function
|
|
11075
|
+
function Ru(e, n, r) {
|
|
11049
11076
|
return (0, t.jsxs)(t.Fragment, {
|
|
11050
11077
|
children: [(0, t.jsxs)("label", {
|
|
11051
11078
|
className: $["form-row"],
|
|
@@ -11061,10 +11088,10 @@ function Fu(e, n, r) {
|
|
|
11061
11088
|
}));
|
|
11062
11089
|
},
|
|
11063
11090
|
value: e.config.selectionType,
|
|
11064
|
-
children:
|
|
11091
|
+
children: ju.map(function (e) {
|
|
11065
11092
|
return (0, t.jsx)("option", {
|
|
11066
11093
|
value: e,
|
|
11067
|
-
children:
|
|
11094
|
+
children: xu(n, e)
|
|
11068
11095
|
}, e);
|
|
11069
11096
|
})
|
|
11070
11097
|
})]
|
|
@@ -11082,10 +11109,10 @@ function Fu(e, n, r) {
|
|
|
11082
11109
|
}));
|
|
11083
11110
|
},
|
|
11084
11111
|
value: e.config.optionLabelStyle,
|
|
11085
|
-
children:
|
|
11112
|
+
children: Du.map(function (e) {
|
|
11086
11113
|
return (0, t.jsx)("option", {
|
|
11087
11114
|
value: e,
|
|
11088
|
-
children:
|
|
11115
|
+
children: xu(n, e)
|
|
11089
11116
|
}, e);
|
|
11090
11117
|
})
|
|
11091
11118
|
})]
|
|
@@ -11103,18 +11130,18 @@ function Fu(e, n, r) {
|
|
|
11103
11130
|
}));
|
|
11104
11131
|
},
|
|
11105
11132
|
value: e.config.renderer,
|
|
11106
|
-
children:
|
|
11133
|
+
children: Au.map(function (e) {
|
|
11107
11134
|
return (0, t.jsx)("option", {
|
|
11108
11135
|
value: e,
|
|
11109
|
-
children:
|
|
11136
|
+
children: xu(n, e)
|
|
11110
11137
|
}, e);
|
|
11111
11138
|
})
|
|
11112
11139
|
})]
|
|
11113
11140
|
})]
|
|
11114
11141
|
});
|
|
11115
11142
|
}
|
|
11116
|
-
function
|
|
11117
|
-
var i =
|
|
11143
|
+
function zu(e, n, r) {
|
|
11144
|
+
var i = Vu(e.config.columns);
|
|
11118
11145
|
return (0, t.jsxs)(t.Fragment, {
|
|
11119
11146
|
children: [(0, t.jsxs)("label", {
|
|
11120
11147
|
className: $["form-row"],
|
|
@@ -11125,12 +11152,12 @@ function Iu(e, n, r) {
|
|
|
11125
11152
|
onChange: function onChange(t) {
|
|
11126
11153
|
return r(C(C({}, e), {}, {
|
|
11127
11154
|
config: {
|
|
11128
|
-
columns:
|
|
11155
|
+
columns: Uu(i, Number(t.target.value))
|
|
11129
11156
|
}
|
|
11130
11157
|
}));
|
|
11131
11158
|
},
|
|
11132
11159
|
value: i.length,
|
|
11133
|
-
children:
|
|
11160
|
+
children: ku.map(function (e) {
|
|
11134
11161
|
return (0, t.jsx)("option", {
|
|
11135
11162
|
value: e,
|
|
11136
11163
|
children: e
|
|
@@ -11156,10 +11183,10 @@ function Iu(e, n, r) {
|
|
|
11156
11183
|
}));
|
|
11157
11184
|
},
|
|
11158
11185
|
value: a.labelStyle,
|
|
11159
|
-
children:
|
|
11186
|
+
children: Ou.map(function (e) {
|
|
11160
11187
|
return (0, t.jsx)("option", {
|
|
11161
11188
|
value: e,
|
|
11162
|
-
children:
|
|
11189
|
+
children: Cu(n, e)
|
|
11163
11190
|
}, e);
|
|
11164
11191
|
})
|
|
11165
11192
|
})]
|
|
@@ -11167,8 +11194,8 @@ function Iu(e, n, r) {
|
|
|
11167
11194
|
})]
|
|
11168
11195
|
});
|
|
11169
11196
|
}
|
|
11170
|
-
function
|
|
11171
|
-
var i =
|
|
11197
|
+
function Bu(e, n, r) {
|
|
11198
|
+
var i = Hu(e.config.columns);
|
|
11172
11199
|
return (0, t.jsx)(t.Fragment, {
|
|
11173
11200
|
children: i.map(function (a, o) {
|
|
11174
11201
|
return (0, t.jsxs)("label", {
|
|
@@ -11189,10 +11216,10 @@ function Lu(e, n, r) {
|
|
|
11189
11216
|
}));
|
|
11190
11217
|
},
|
|
11191
11218
|
value: a.labelStyle,
|
|
11192
|
-
children:
|
|
11219
|
+
children: Ou.map(function (e) {
|
|
11193
11220
|
return (0, t.jsx)("option", {
|
|
11194
11221
|
value: e,
|
|
11195
|
-
children:
|
|
11222
|
+
children: Cu(n, e)
|
|
11196
11223
|
}, e);
|
|
11197
11224
|
})
|
|
11198
11225
|
})]
|
|
@@ -11200,46 +11227,46 @@ function Lu(e, n, r) {
|
|
|
11200
11227
|
})
|
|
11201
11228
|
});
|
|
11202
11229
|
}
|
|
11203
|
-
function
|
|
11230
|
+
function Vu(e) {
|
|
11204
11231
|
var t = e.slice(0, 5);
|
|
11205
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11232
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Ou.slice(t.length, 2).map(function (e) {
|
|
11206
11233
|
return {
|
|
11207
11234
|
labelStyle: e
|
|
11208
11235
|
};
|
|
11209
11236
|
})));
|
|
11210
11237
|
}
|
|
11211
|
-
function
|
|
11238
|
+
function Hu(e) {
|
|
11212
11239
|
var t = e.slice(0, 2);
|
|
11213
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11240
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Ou.slice(t.length, 2).map(function (e) {
|
|
11214
11241
|
return {
|
|
11215
11242
|
labelStyle: e
|
|
11216
11243
|
};
|
|
11217
11244
|
})));
|
|
11218
11245
|
}
|
|
11219
|
-
function
|
|
11246
|
+
function Uu(e, t) {
|
|
11220
11247
|
return Array.from({
|
|
11221
11248
|
length: Math.min(5, Math.max(2, t))
|
|
11222
11249
|
}, function (t, n) {
|
|
11223
11250
|
var r, i;
|
|
11224
11251
|
return (r = e.slice(n, n + 1)[0]) == null ? {
|
|
11225
|
-
labelStyle: (i =
|
|
11252
|
+
labelStyle: (i = Ou[n]) == null ? "number" : i
|
|
11226
11253
|
} : r;
|
|
11227
11254
|
});
|
|
11228
11255
|
}
|
|
11229
|
-
function
|
|
11230
|
-
var
|
|
11231
|
-
e =
|
|
11232
|
-
r =
|
|
11233
|
-
i =
|
|
11256
|
+
function Wu(_ref171) {
|
|
11257
|
+
var _ref171$locale = _ref171.locale,
|
|
11258
|
+
e = _ref171$locale === void 0 ? "zh-CN" : _ref171$locale,
|
|
11259
|
+
r = _ref171.onChange,
|
|
11260
|
+
i = _ref171.value;
|
|
11234
11261
|
var a, o, s, c;
|
|
11235
|
-
var l =
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
u =
|
|
11239
|
-
d =
|
|
11240
|
-
|
|
11241
|
-
f =
|
|
11242
|
-
p =
|
|
11262
|
+
var l = mu(e),
|
|
11263
|
+
_ref172 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
|
|
11264
|
+
_ref173 = _slicedToArray(_ref172, 2),
|
|
11265
|
+
u = _ref173[0],
|
|
11266
|
+
d = _ref173[1],
|
|
11267
|
+
_Gu = Gu(i, u),
|
|
11268
|
+
f = _Gu.selectedElement,
|
|
11269
|
+
p = _Gu.selectedExtra;
|
|
11243
11270
|
function m(e) {
|
|
11244
11271
|
var t = oe(e, i.elements);
|
|
11245
11272
|
r(C(C({}, i), {}, {
|
|
@@ -11257,11 +11284,11 @@ function Vu(_ref170) {
|
|
|
11257
11284
|
}
|
|
11258
11285
|
function g(e) {
|
|
11259
11286
|
var t = ue(i, e);
|
|
11260
|
-
r(t), d(
|
|
11287
|
+
r(t), d(Ku(t));
|
|
11261
11288
|
}
|
|
11262
11289
|
function _(e) {
|
|
11263
11290
|
var t = le(i, e);
|
|
11264
|
-
r(t), d(
|
|
11291
|
+
r(t), d(Ku(t));
|
|
11265
11292
|
}
|
|
11266
11293
|
function v(e) {
|
|
11267
11294
|
r(pe(i, e.clientId, e));
|
|
@@ -11276,19 +11303,19 @@ function Vu(_ref170) {
|
|
|
11276
11303
|
r(he(i, e));
|
|
11277
11304
|
}
|
|
11278
11305
|
return (0, t.jsx)("section", {
|
|
11279
|
-
className:
|
|
11306
|
+
className: uu.root,
|
|
11280
11307
|
children: (0, t.jsx)("div", {
|
|
11281
11308
|
className: Q.shell,
|
|
11282
11309
|
children: (0, t.jsxs)("div", {
|
|
11283
11310
|
className: Q.grid,
|
|
11284
|
-
children: [(0, t.jsx)(
|
|
11311
|
+
children: [(0, t.jsx)(Tu, {
|
|
11285
11312
|
addedExtraTypes: i.extras.map(function (e) {
|
|
11286
11313
|
return e.type;
|
|
11287
11314
|
}),
|
|
11288
11315
|
labels: l,
|
|
11289
11316
|
onAddElement: m,
|
|
11290
11317
|
onAddExtra: h
|
|
11291
|
-
}), (0, t.jsx)(
|
|
11318
|
+
}), (0, t.jsx)(wu, {
|
|
11292
11319
|
elements: i.elements,
|
|
11293
11320
|
extras: i.extras,
|
|
11294
11321
|
labels: l,
|
|
@@ -11299,7 +11326,7 @@ function Vu(_ref170) {
|
|
|
11299
11326
|
},
|
|
11300
11327
|
onSelectElement: d,
|
|
11301
11328
|
selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
|
|
11302
|
-
}), (0, t.jsx)(
|
|
11329
|
+
}), (0, t.jsx)(Pu, {
|
|
11303
11330
|
description: i.description,
|
|
11304
11331
|
globalConfig: i.globalConfig,
|
|
11305
11332
|
isSubjective: i.isSubjective,
|
|
@@ -11315,7 +11342,7 @@ function Vu(_ref170) {
|
|
|
11315
11342
|
})
|
|
11316
11343
|
});
|
|
11317
11344
|
}
|
|
11318
|
-
function
|
|
11345
|
+
function Gu(e, t) {
|
|
11319
11346
|
var n, r, i, a;
|
|
11320
11347
|
var o = (n = e.elements.find(function (e) {
|
|
11321
11348
|
return e.clientId === t;
|
|
@@ -11331,8 +11358,8 @@ function Hu(e, t) {
|
|
|
11331
11358
|
selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
|
|
11332
11359
|
};
|
|
11333
11360
|
}
|
|
11334
|
-
function
|
|
11361
|
+
function Ku(e) {
|
|
11335
11362
|
var t, n, r, i;
|
|
11336
11363
|
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;
|
|
11337
11364
|
}
|
|
11338
|
-
exports.QuestionContentEditor =
|
|
11365
|
+
exports.QuestionContentEditor = Ko, exports.QuestionPlayer = Nl, exports.QuestionPreview = au, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = Wu, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Ns, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Yo, exports.createQuestionPreviewDraft = Xo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = Qo, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Zo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;
|