@yungu-fed/question-editor 0.2.4 → 0.3.1
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 +1016 -953
- package/dist/index.mjs +1803 -1760
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +1 -1
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +2 -2
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -1
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -1
- package/dist/question/player/QuestionPlayer.d.ts.map +1 -1
- package/dist/question/player/QuestionPlayerComposite.d.ts +4 -3
- package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -1
- package/dist/question/player/types.d.ts +1 -0
- package/dist/question/player/types.d.ts.map +1 -1
- package/dist/question/preview/QuestionCompositePreview.d.ts +4 -3
- package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -1
- package/dist/question/preview/QuestionPreview.d.ts +1 -0
- package/dist/question/preview/QuestionPreview.d.ts.map +1 -1
- package/dist/question/renderers/QuestionAdaptiveOptionList.d.ts +6 -0
- package/dist/question/renderers/QuestionAdaptiveOptionList.d.ts.map +1 -0
- package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -1
- package/dist/question/renderers/question-option-grid.d.ts +8 -0
- package/dist/question/renderers/question-option-grid.d.ts.map +1 -0
- package/dist/question/shared/subquestion-numbering.d.ts +3 -2
- package/dist/question/shared/subquestion-numbering.d.ts.map +1 -1
- package/package.json +15 -15
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./index.css');function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var
|
|
1
|
+
require('./index.css');function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n6 = 0, F = function F() {}; return { s: F, n: function n() { return _n6 >= r.length ? { done: !0 } : { done: !1, value: r[_n6++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
2
2
|
function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); }
|
|
3
3
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
4
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
@@ -5334,20 +5334,20 @@ function fo(_ref87) {
|
|
|
5334
5334
|
}
|
|
5335
5335
|
}));
|
|
5336
5336
|
}
|
|
5337
|
-
function _(n, r, i
|
|
5338
|
-
var
|
|
5339
|
-
return (0, t.
|
|
5337
|
+
function _(n, r, i) {
|
|
5338
|
+
var a = l.includes(n);
|
|
5339
|
+
return (0, t.jsx)("button", {
|
|
5340
5340
|
"aria-label": c("questionContentEditor.option.answerAria", {
|
|
5341
5341
|
index: r + 1
|
|
5342
5342
|
}),
|
|
5343
|
-
"aria-pressed":
|
|
5344
|
-
className: "min-h-12 rounded-md border px-3 py-2 text-left text-sm font-medium transition ".concat(
|
|
5343
|
+
"aria-pressed": a,
|
|
5344
|
+
className: "min-h-12 rounded-md border px-3 py-2 text-left text-sm font-medium transition ".concat(a ? "border-blue-600 bg-blue-50 text-blue-700" : "border-slate-200 bg-white text-slate-900 hover:border-blue-300"),
|
|
5345
5345
|
disabled: e,
|
|
5346
5346
|
onClick: function onClick() {
|
|
5347
5347
|
return g(n);
|
|
5348
5348
|
},
|
|
5349
5349
|
type: "button",
|
|
5350
|
-
children:
|
|
5350
|
+
children: i
|
|
5351
5351
|
}, "answer-option-".concat(n));
|
|
5352
5352
|
}
|
|
5353
5353
|
function v() {
|
|
@@ -5533,34 +5533,7 @@ function fo(_ref87) {
|
|
|
5533
5533
|
});
|
|
5534
5534
|
}
|
|
5535
5535
|
function x() {
|
|
5536
|
-
return
|
|
5537
|
-
return {
|
|
5538
|
-
marker: e.marker,
|
|
5539
|
-
optionId: e.optionId,
|
|
5540
|
-
text: e.standardContent.text || c("questionContentEditor.placeholders.option", {
|
|
5541
|
-
marker: e.marker
|
|
5542
|
-
})
|
|
5543
|
-
};
|
|
5544
|
-
});
|
|
5545
|
-
}
|
|
5546
|
-
function S() {
|
|
5547
|
-
return d.map(function (e) {
|
|
5548
|
-
var t = e.cells.map(function (e) {
|
|
5549
|
-
return e.text.trim();
|
|
5550
|
-
}).filter(Boolean).join(" / ") || c("questionContentEditor.placeholders.option", {
|
|
5551
|
-
marker: e.marker
|
|
5552
|
-
});
|
|
5553
|
-
return {
|
|
5554
|
-
marker: e.marker,
|
|
5555
|
-
optionId: e.optionId,
|
|
5556
|
-
text: t
|
|
5557
|
-
};
|
|
5558
|
-
});
|
|
5559
|
-
}
|
|
5560
|
-
function ee() {
|
|
5561
|
-
if (!r) return null;
|
|
5562
|
-
var e = u ? S() : x();
|
|
5563
|
-
return (0, t.jsxs)("div", {
|
|
5536
|
+
return r ? (0, t.jsxs)("div", {
|
|
5564
5537
|
className: "mt-2 border-t border-slate-200 pt-4",
|
|
5565
5538
|
children: [(0, t.jsx)(N.Text, {
|
|
5566
5539
|
className: "mb-3 block text-base",
|
|
@@ -5568,18 +5541,17 @@ function fo(_ref87) {
|
|
|
5568
5541
|
children: c("questionContentEditor.option.answerSettings")
|
|
5569
5542
|
}), (0, t.jsx)("div", {
|
|
5570
5543
|
className: "grid min-w-0 grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-4",
|
|
5571
|
-
children:
|
|
5544
|
+
children: d.map(function (_ref88, n) {
|
|
5572
5545
|
var e = _ref88.marker,
|
|
5573
|
-
t = _ref88.optionId
|
|
5574
|
-
|
|
5575
|
-
return _(t, r, e, n);
|
|
5546
|
+
t = _ref88.optionId;
|
|
5547
|
+
return _(t, n, e);
|
|
5576
5548
|
})
|
|
5577
5549
|
})]
|
|
5578
|
-
});
|
|
5550
|
+
}) : null;
|
|
5579
5551
|
}
|
|
5580
5552
|
return (0, t.jsxs)("div", {
|
|
5581
5553
|
className: "flex min-w-0 flex-col gap-3",
|
|
5582
|
-
children: [u ? b() : v(),
|
|
5554
|
+
children: [u ? b() : v(), x()]
|
|
5583
5555
|
});
|
|
5584
5556
|
}
|
|
5585
5557
|
function po(_ref89) {
|
|
@@ -6202,21 +6174,25 @@ function To(_ref95) {
|
|
|
6202
6174
|
})]
|
|
6203
6175
|
});
|
|
6204
6176
|
}
|
|
6205
|
-
function Eo(e) {
|
|
6206
|
-
|
|
6207
|
-
return
|
|
6208
|
-
})
|
|
6177
|
+
function Eo(e, t) {
|
|
6178
|
+
var n = e.map(function (e) {
|
|
6179
|
+
return e + 1;
|
|
6180
|
+
});
|
|
6181
|
+
return (t === void 0 ? n : [t].concat(_toConsumableArray(n))).join(".");
|
|
6209
6182
|
}
|
|
6210
6183
|
function Do(e, t) {
|
|
6211
6184
|
return e.length > 1 || t > 1;
|
|
6212
6185
|
}
|
|
6213
|
-
|
|
6186
|
+
function Oo(e, t, n) {
|
|
6187
|
+
return Do(e, t) ? Eo(e, n) : null;
|
|
6188
|
+
}
|
|
6189
|
+
var ko = {
|
|
6214
6190
|
root: "_root_1phv3_1",
|
|
6215
6191
|
indented: "_indented_1phv3_9",
|
|
6216
6192
|
number: "_number_1phv3_14",
|
|
6217
6193
|
content: "_content_1phv3_22"
|
|
6218
6194
|
};
|
|
6219
|
-
function
|
|
6195
|
+
function Ao(_ref98) {
|
|
6220
6196
|
var e = _ref98.children,
|
|
6221
6197
|
_ref98$indented = _ref98.indented,
|
|
6222
6198
|
n = _ref98$indented === void 0 ? !1 : _ref98$indented,
|
|
@@ -6224,19 +6200,19 @@ function ko(_ref98) {
|
|
|
6224
6200
|
return r === null ? (0, t.jsx)(t.Fragment, {
|
|
6225
6201
|
children: e
|
|
6226
6202
|
}) : (0, t.jsxs)("div", {
|
|
6227
|
-
className: n ? "".concat(
|
|
6203
|
+
className: n ? "".concat(ko.root, " ").concat(ko.indented) : ko.root,
|
|
6228
6204
|
"data-subquestion-numbered-content": !0,
|
|
6229
6205
|
children: [(0, t.jsx)("span", {
|
|
6230
|
-
className:
|
|
6206
|
+
className: ko.number,
|
|
6231
6207
|
"data-subquestion-number": !0,
|
|
6232
6208
|
children: r
|
|
6233
6209
|
}), (0, t.jsx)("div", {
|
|
6234
|
-
className:
|
|
6210
|
+
className: ko.content,
|
|
6235
6211
|
children: e
|
|
6236
6212
|
})]
|
|
6237
6213
|
});
|
|
6238
6214
|
}
|
|
6239
|
-
function
|
|
6215
|
+
function jo(_ref99) {
|
|
6240
6216
|
var e = _ref99.child,
|
|
6241
6217
|
n = _ref99.disabled,
|
|
6242
6218
|
r = _ref99.onChange,
|
|
@@ -6276,9 +6252,9 @@ function Ao(_ref99) {
|
|
|
6276
6252
|
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",
|
|
6277
6253
|
children: (0, t.jsx)(vo, {
|
|
6278
6254
|
disabled: n,
|
|
6279
|
-
element:
|
|
6255
|
+
element: Mo(r),
|
|
6280
6256
|
hasAnswer: a.hasAnswer,
|
|
6281
|
-
item:
|
|
6257
|
+
item: No(c),
|
|
6282
6258
|
onChange: function onChange(e) {
|
|
6283
6259
|
return l(s, {
|
|
6284
6260
|
content: e.content,
|
|
@@ -6293,55 +6269,55 @@ function Ao(_ref99) {
|
|
|
6293
6269
|
})]
|
|
6294
6270
|
});
|
|
6295
6271
|
}
|
|
6296
|
-
function
|
|
6272
|
+
function Mo(e) {
|
|
6297
6273
|
return {
|
|
6298
6274
|
config: {},
|
|
6299
6275
|
name: e.name,
|
|
6300
6276
|
type: "richText"
|
|
6301
6277
|
};
|
|
6302
6278
|
}
|
|
6303
|
-
function
|
|
6279
|
+
function No(e) {
|
|
6304
6280
|
return {
|
|
6305
6281
|
content: e.content,
|
|
6306
6282
|
type: "richText"
|
|
6307
6283
|
};
|
|
6308
6284
|
}
|
|
6309
|
-
var
|
|
6310
|
-
|
|
6311
|
-
function
|
|
6285
|
+
var Po = new WeakMap(),
|
|
6286
|
+
Fo = 0;
|
|
6287
|
+
function Io(e) {
|
|
6312
6288
|
return e.map(function (e) {
|
|
6313
6289
|
return {
|
|
6314
6290
|
draft: e,
|
|
6315
|
-
runtimeId:
|
|
6291
|
+
runtimeId: zo(e)
|
|
6316
6292
|
};
|
|
6317
6293
|
});
|
|
6318
6294
|
}
|
|
6319
|
-
function Io(e, t) {
|
|
6320
|
-
No.set(t, Ro(e));
|
|
6321
|
-
}
|
|
6322
6295
|
function Lo(e, t) {
|
|
6296
|
+
Po.set(t, zo(e));
|
|
6297
|
+
}
|
|
6298
|
+
function Ro(e, t) {
|
|
6323
6299
|
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));
|
|
6324
6300
|
var n = t[Symbol.iterator]();
|
|
6325
6301
|
e.forEach(function (e) {
|
|
6326
6302
|
var t = n.next();
|
|
6327
6303
|
if (t.done) throw Error("\u9898\u76EE\u5B50\u9898\u8FD0\u884C\u65F6\u8EAB\u4EFD\u4F20\u9012\u5931\u8D25\uFF0CnextChildren \u63D0\u524D\u7ED3\u675F");
|
|
6328
6304
|
var r = t.value;
|
|
6329
|
-
|
|
6305
|
+
Lo(e, r), Ro(e.children, r.children);
|
|
6330
6306
|
});
|
|
6331
6307
|
}
|
|
6332
|
-
function
|
|
6333
|
-
var t =
|
|
6308
|
+
function zo(e) {
|
|
6309
|
+
var t = Po.get(e);
|
|
6334
6310
|
if (t) return t;
|
|
6335
|
-
|
|
6336
|
-
var n = "question-content-child-".concat(
|
|
6337
|
-
return
|
|
6311
|
+
Fo += 1;
|
|
6312
|
+
var n = "question-content-child-".concat(Fo);
|
|
6313
|
+
return Po.set(e, n), n;
|
|
6338
6314
|
}
|
|
6339
|
-
function
|
|
6315
|
+
function Bo(_ref100) {
|
|
6340
6316
|
var e = _ref100.child,
|
|
6341
6317
|
n = _ref100.childIndex,
|
|
6342
|
-
r = _ref100.
|
|
6343
|
-
i = _ref100.
|
|
6344
|
-
a = _ref100.
|
|
6318
|
+
r = _ref100.childIndexPath,
|
|
6319
|
+
i = _ref100.disabled,
|
|
6320
|
+
a = _ref100.hasAnswer,
|
|
6345
6321
|
o = _ref100.onChange,
|
|
6346
6322
|
s = _ref100.onDelete,
|
|
6347
6323
|
c = _ref100.onMove,
|
|
@@ -6350,12 +6326,12 @@ function zo(_ref100) {
|
|
|
6350
6326
|
d = _ref100.questionTypeTemplates,
|
|
6351
6327
|
f = _ref100.translator;
|
|
6352
6328
|
var p = f.t,
|
|
6353
|
-
m =
|
|
6329
|
+
m = r == null ? [n] : r,
|
|
6354
6330
|
h = Eo(m),
|
|
6355
|
-
g =
|
|
6356
|
-
_ = g ? Xi(g.structure,
|
|
6331
|
+
g = Vo(e, d),
|
|
6332
|
+
_ = g ? Xi(g.structure, a) : void 0,
|
|
6357
6333
|
v = _ ? ln(_, e) : e,
|
|
6358
|
-
y =
|
|
6334
|
+
y = Io(_ ? v.children : []);
|
|
6359
6335
|
if (!_) return (0, t.jsxs)("section", {
|
|
6360
6336
|
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",
|
|
6361
6337
|
children: [w(null), T((0, t.jsx)(ba, {
|
|
@@ -6368,15 +6344,15 @@ function zo(_ref100) {
|
|
|
6368
6344
|
}));
|
|
6369
6345
|
}
|
|
6370
6346
|
function x(e, t) {
|
|
6371
|
-
var n =
|
|
6372
|
-
n < 0 || (
|
|
6347
|
+
var n = Wo(y, e);
|
|
6348
|
+
n < 0 || (Lo(v.children[n], t), o(C(C({}, v), {}, {
|
|
6373
6349
|
children: v.children.map(function (e, r) {
|
|
6374
6350
|
return r === n ? t : e;
|
|
6375
6351
|
})
|
|
6376
6352
|
})));
|
|
6377
6353
|
}
|
|
6378
6354
|
function S(e) {
|
|
6379
|
-
var t =
|
|
6355
|
+
var t = Wo(y, e);
|
|
6380
6356
|
t < 0 || o(C(C({}, v), {}, {
|
|
6381
6357
|
children: v.children.filter(function (e, n) {
|
|
6382
6358
|
return n !== t;
|
|
@@ -6384,22 +6360,22 @@ function zo(_ref100) {
|
|
|
6384
6360
|
}));
|
|
6385
6361
|
}
|
|
6386
6362
|
function ee(e, t) {
|
|
6387
|
-
var n =
|
|
6363
|
+
var n = Wo(y, e);
|
|
6388
6364
|
n < 0 || o(C(C({}, v), {}, {
|
|
6389
6365
|
children: wo(v.children, n, t)
|
|
6390
6366
|
}));
|
|
6391
6367
|
}
|
|
6392
6368
|
return (0, t.jsxs)("section", {
|
|
6393
6369
|
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",
|
|
6394
|
-
children: [w(b), T(
|
|
6370
|
+
children: [w(b), T(Uo(i, v, o, l, _, f)), v.children.length === 0 ? null : (0, t.jsx)("div", {
|
|
6395
6371
|
className: "ml-3 flex min-w-0 flex-col pl-3 sm:ml-4 sm:pl-4",
|
|
6396
6372
|
children: y.map(function (e, n) {
|
|
6397
|
-
return (0, t.jsx)(
|
|
6373
|
+
return (0, t.jsx)(Bo, {
|
|
6398
6374
|
child: e.draft,
|
|
6399
6375
|
childIndex: n,
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
|
|
6376
|
+
childIndexPath: [].concat(_toConsumableArray(m), [n]),
|
|
6377
|
+
disabled: i,
|
|
6378
|
+
hasAnswer: a,
|
|
6403
6379
|
onChange: function onChange(t) {
|
|
6404
6380
|
return x(e.runtimeId, t);
|
|
6405
6381
|
},
|
|
@@ -6417,29 +6393,29 @@ function zo(_ref100) {
|
|
|
6417
6393
|
})
|
|
6418
6394
|
})]
|
|
6419
6395
|
});
|
|
6420
|
-
function w(
|
|
6396
|
+
function w(r) {
|
|
6421
6397
|
return (0, t.jsxs)("div", {
|
|
6422
6398
|
className: "flex min-w-0 flex-wrap items-start justify-between gap-3",
|
|
6423
6399
|
children: [(0, t.jsx)("span", {
|
|
6424
6400
|
className: "min-w-0",
|
|
6425
6401
|
children: (0, t.jsxs)(N.Text, {
|
|
6426
6402
|
type: "secondary",
|
|
6427
|
-
children: [p("questionContentEditor.subquestion.questionKind"), " \xB7", " ",
|
|
6403
|
+
children: [p("questionContentEditor.subquestion.questionKind"), " \xB7", " ", Ho(g, e)]
|
|
6428
6404
|
})
|
|
6429
6405
|
}), (0, t.jsxs)(xa, {
|
|
6430
6406
|
size: 4,
|
|
6431
6407
|
wrap: !0,
|
|
6432
|
-
children: [
|
|
6433
|
-
disabled:
|
|
6434
|
-
hasAnswer:
|
|
6435
|
-
onAddChild:
|
|
6408
|
+
children: [r ? (0, t.jsx)(To, {
|
|
6409
|
+
disabled: i,
|
|
6410
|
+
hasAnswer: a,
|
|
6411
|
+
onAddChild: r,
|
|
6436
6412
|
questionTypeTemplates: d,
|
|
6437
6413
|
translator: f
|
|
6438
6414
|
}) : null, (0, t.jsx)(M, {
|
|
6439
6415
|
"aria-label": p("questionContentEditor.subquestion.moveChildUp", {
|
|
6440
6416
|
index: h
|
|
6441
6417
|
}),
|
|
6442
|
-
disabled:
|
|
6418
|
+
disabled: i || n === 0,
|
|
6443
6419
|
icon: "\u2191",
|
|
6444
6420
|
onClick: function onClick() {
|
|
6445
6421
|
return c(-1);
|
|
@@ -6449,7 +6425,7 @@ function zo(_ref100) {
|
|
|
6449
6425
|
"aria-label": p("questionContentEditor.subquestion.moveChildDown", {
|
|
6450
6426
|
index: h
|
|
6451
6427
|
}),
|
|
6452
|
-
disabled:
|
|
6428
|
+
disabled: i || n === u - 1,
|
|
6453
6429
|
icon: "\u2193",
|
|
6454
6430
|
onClick: function onClick() {
|
|
6455
6431
|
return c(1);
|
|
@@ -6460,7 +6436,7 @@ function zo(_ref100) {
|
|
|
6460
6436
|
index: h
|
|
6461
6437
|
}),
|
|
6462
6438
|
danger: !0,
|
|
6463
|
-
disabled:
|
|
6439
|
+
disabled: i,
|
|
6464
6440
|
icon: "\xD7",
|
|
6465
6441
|
onClick: s,
|
|
6466
6442
|
size: "small"
|
|
@@ -6469,20 +6445,20 @@ function zo(_ref100) {
|
|
|
6469
6445
|
});
|
|
6470
6446
|
}
|
|
6471
6447
|
function T(e) {
|
|
6472
|
-
return (0, t.jsx)(
|
|
6448
|
+
return (0, t.jsx)(Ao, {
|
|
6473
6449
|
number: Do(m, u) ? h : null,
|
|
6474
6450
|
children: e
|
|
6475
6451
|
});
|
|
6476
6452
|
}
|
|
6477
6453
|
}
|
|
6478
|
-
function
|
|
6454
|
+
function Vo(e, t) {
|
|
6479
6455
|
return $i(t, e.questionTypeKey);
|
|
6480
6456
|
}
|
|
6481
|
-
function
|
|
6457
|
+
function Ho(e, t) {
|
|
6482
6458
|
return e ? e.label : t.questionTypeKey;
|
|
6483
6459
|
}
|
|
6484
|
-
function
|
|
6485
|
-
return a.elements.length === 0 && a.extras.length === 0 ? null : (0, t.jsx)(
|
|
6460
|
+
function Uo(e, n, r, i, a, o) {
|
|
6461
|
+
return a.elements.length === 0 && a.extras.length === 0 ? null : (0, t.jsx)(jo, {
|
|
6486
6462
|
child: n,
|
|
6487
6463
|
disabled: e,
|
|
6488
6464
|
onChange: r,
|
|
@@ -6491,12 +6467,12 @@ function Ho(e, n, r, i, a, o) {
|
|
|
6491
6467
|
translator: o
|
|
6492
6468
|
});
|
|
6493
6469
|
}
|
|
6494
|
-
function
|
|
6470
|
+
function Wo(e, t) {
|
|
6495
6471
|
return e.findIndex(function (e) {
|
|
6496
6472
|
return e.runtimeId === t;
|
|
6497
6473
|
});
|
|
6498
6474
|
}
|
|
6499
|
-
function
|
|
6475
|
+
function Go(_ref101) {
|
|
6500
6476
|
var e = _ref101.disabled,
|
|
6501
6477
|
n = _ref101.hasAnswer,
|
|
6502
6478
|
r = _ref101.item,
|
|
@@ -6505,7 +6481,7 @@ function Wo(_ref101) {
|
|
|
6505
6481
|
o = _ref101.questionTypeTemplates,
|
|
6506
6482
|
s = _ref101.translator;
|
|
6507
6483
|
var c = s.t,
|
|
6508
|
-
l =
|
|
6484
|
+
l = Io(r.children),
|
|
6509
6485
|
u = r.children.length;
|
|
6510
6486
|
function d(e) {
|
|
6511
6487
|
i(C(C({}, r), {}, {
|
|
@@ -6516,23 +6492,23 @@ function Wo(_ref101) {
|
|
|
6516
6492
|
d([].concat(_toConsumableArray(r.children), [e]));
|
|
6517
6493
|
}
|
|
6518
6494
|
function p(e, t) {
|
|
6519
|
-
var n =
|
|
6520
|
-
n < 0 || (
|
|
6495
|
+
var n = Ko(l, e);
|
|
6496
|
+
n < 0 || (Lo(r.children[n], t), d(r.children.map(function (e, r) {
|
|
6521
6497
|
return r === n ? t : e;
|
|
6522
6498
|
})));
|
|
6523
6499
|
}
|
|
6524
6500
|
function m(e) {
|
|
6525
|
-
var t =
|
|
6501
|
+
var t = Ko(l, e);
|
|
6526
6502
|
t < 0 || d(r.children.filter(function (e, n) {
|
|
6527
6503
|
return n !== t;
|
|
6528
6504
|
}));
|
|
6529
6505
|
}
|
|
6530
6506
|
function h(e, t) {
|
|
6531
|
-
var n =
|
|
6507
|
+
var n = Ko(l, e);
|
|
6532
6508
|
n < 0 || d(wo(r.children, n, t));
|
|
6533
6509
|
}
|
|
6534
6510
|
function g(i, c) {
|
|
6535
|
-
return (0, t.jsx)(
|
|
6511
|
+
return (0, t.jsx)(Bo, {
|
|
6536
6512
|
child: i.draft,
|
|
6537
6513
|
childIndex: c,
|
|
6538
6514
|
disabled: e,
|
|
@@ -6587,12 +6563,12 @@ function Wo(_ref101) {
|
|
|
6587
6563
|
})]
|
|
6588
6564
|
});
|
|
6589
6565
|
}
|
|
6590
|
-
function
|
|
6566
|
+
function Ko(e, t) {
|
|
6591
6567
|
return e.findIndex(function (e) {
|
|
6592
6568
|
return e.runtimeId === t;
|
|
6593
6569
|
});
|
|
6594
6570
|
}
|
|
6595
|
-
function
|
|
6571
|
+
function qo(_ref102) {
|
|
6596
6572
|
var _ref102$disabled = _ref102.disabled,
|
|
6597
6573
|
r = _ref102$disabled === void 0 ? !1 : _ref102$disabled,
|
|
6598
6574
|
_ref102$locale = _ref102.locale,
|
|
@@ -6602,7 +6578,7 @@ function Ko(_ref102) {
|
|
|
6602
6578
|
s = _ref102.uploadImage,
|
|
6603
6579
|
c = _ref102.value;
|
|
6604
6580
|
var l = ea(c, o);
|
|
6605
|
-
|
|
6581
|
+
Ro(c.children, l.children);
|
|
6606
6582
|
var u = ca(i),
|
|
6607
6583
|
d = u.t,
|
|
6608
6584
|
f = Zi(o, l),
|
|
@@ -6636,9 +6612,9 @@ function Ko(_ref102) {
|
|
|
6636
6612
|
var a = Xt(l, n, e);
|
|
6637
6613
|
return (0, t.jsx)(vo, {
|
|
6638
6614
|
disabled: r,
|
|
6639
|
-
element:
|
|
6615
|
+
element: Jo(e),
|
|
6640
6616
|
hasAnswer: i,
|
|
6641
|
-
item:
|
|
6617
|
+
item: Yo(a),
|
|
6642
6618
|
onChange: function onChange(t) {
|
|
6643
6619
|
return h(n, {
|
|
6644
6620
|
content: t.content,
|
|
@@ -6657,7 +6633,7 @@ function Ko(_ref102) {
|
|
|
6657
6633
|
className: "flex min-w-0 flex-col gap-3 rounded-md border border-slate-200 bg-white p-4",
|
|
6658
6634
|
children: g(e, n, f.hasAnswer)
|
|
6659
6635
|
}, "".concat(e.type, "-").concat(n));
|
|
6660
|
-
}), Rt(f) || l.children.length > 0 ? (0, t.jsx)(
|
|
6636
|
+
}), Rt(f) || l.children.length > 0 ? (0, t.jsx)(Go, {
|
|
6661
6637
|
disabled: r,
|
|
6662
6638
|
hasAnswer: f.hasAnswer,
|
|
6663
6639
|
item: l,
|
|
@@ -6687,27 +6663,27 @@ function Ko(_ref102) {
|
|
|
6687
6663
|
})]
|
|
6688
6664
|
});
|
|
6689
6665
|
}
|
|
6690
|
-
function
|
|
6666
|
+
function Jo(e) {
|
|
6691
6667
|
return {
|
|
6692
6668
|
config: {},
|
|
6693
6669
|
name: e.name,
|
|
6694
6670
|
type: "richText"
|
|
6695
6671
|
};
|
|
6696
6672
|
}
|
|
6697
|
-
function
|
|
6673
|
+
function Yo(e) {
|
|
6698
6674
|
return {
|
|
6699
6675
|
content: e.content,
|
|
6700
6676
|
type: "richText"
|
|
6701
6677
|
};
|
|
6702
6678
|
}
|
|
6703
|
-
function
|
|
6679
|
+
function Xo(e, t) {
|
|
6704
6680
|
return {
|
|
6705
6681
|
elements: e.elements.map(function (e) {
|
|
6706
|
-
return
|
|
6682
|
+
return ss(e, t);
|
|
6707
6683
|
}),
|
|
6708
6684
|
extras: e.extras.map(function (e) {
|
|
6709
6685
|
return {
|
|
6710
|
-
name:
|
|
6686
|
+
name: ls(e, ge(e.type), _e(e.type), t),
|
|
6711
6687
|
type: e.type
|
|
6712
6688
|
};
|
|
6713
6689
|
}),
|
|
@@ -6715,31 +6691,31 @@ function Yo(e, t) {
|
|
|
6715
6691
|
isComposite: !1
|
|
6716
6692
|
};
|
|
6717
6693
|
}
|
|
6718
|
-
function
|
|
6694
|
+
function Zo(e, t) {
|
|
6719
6695
|
if (!e) return null;
|
|
6720
6696
|
var n = Yi(t, e.questionTypeKey);
|
|
6721
|
-
return n ? C(C({}, cn(n,
|
|
6697
|
+
return n ? C(C({}, cn(n, es(e))), {}, {
|
|
6722
6698
|
children: e.children.map(function (e) {
|
|
6723
|
-
var n =
|
|
6699
|
+
var n = Zo(e, t);
|
|
6724
6700
|
if (!n) throw Error("\u5B50\u9898\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");
|
|
6725
6701
|
return n;
|
|
6726
6702
|
})
|
|
6727
6703
|
}) : null;
|
|
6728
6704
|
}
|
|
6729
|
-
function
|
|
6705
|
+
function Qo(e) {
|
|
6730
6706
|
return {
|
|
6731
6707
|
description: e.description,
|
|
6732
|
-
elements: e.elements.map(
|
|
6733
|
-
extras: e.extras.map(
|
|
6708
|
+
elements: e.elements.map(rs),
|
|
6709
|
+
extras: e.extras.map(os),
|
|
6734
6710
|
globalConfig: C({}, e.globalConfig),
|
|
6735
6711
|
isSubjective: e.isSubjective,
|
|
6736
6712
|
version: e.version
|
|
6737
6713
|
};
|
|
6738
6714
|
}
|
|
6739
|
-
function
|
|
6740
|
-
return e.globalConfig.hasAnswer !== t.globalConfig.hasAnswer || e.elements.length !== t.elements.length || e.extras.length !== t.extras.length ||
|
|
6715
|
+
function $o(e, t) {
|
|
6716
|
+
return e.globalConfig.hasAnswer !== t.globalConfig.hasAnswer || e.elements.length !== t.elements.length || e.extras.length !== t.extras.length || ts(e.elements, t.elements) || ns(e.extras, t.extras) ? "shape" : "metadata";
|
|
6741
6717
|
}
|
|
6742
|
-
function
|
|
6718
|
+
function es(e) {
|
|
6743
6719
|
return {
|
|
6744
6720
|
questionTypeKey: e.questionTypeKey,
|
|
6745
6721
|
children: [],
|
|
@@ -6749,22 +6725,22 @@ function $o(e) {
|
|
|
6749
6725
|
version: e.version
|
|
6750
6726
|
};
|
|
6751
6727
|
}
|
|
6752
|
-
function
|
|
6728
|
+
function ts(e, t) {
|
|
6753
6729
|
return e.some(function (e, n) {
|
|
6754
6730
|
var r = t.slice(n, n + 1)[0];
|
|
6755
6731
|
return !r || e.clientId !== r.clientId || e.type !== r.type || JSON.stringify(e.config) !== JSON.stringify(r.config);
|
|
6756
6732
|
});
|
|
6757
6733
|
}
|
|
6758
|
-
function
|
|
6734
|
+
function ns(e, t) {
|
|
6759
6735
|
return e.some(function (e, n) {
|
|
6760
6736
|
var r = t.slice(n, n + 1)[0];
|
|
6761
6737
|
return !r || e.clientId !== r.clientId || e.type !== r.type;
|
|
6762
6738
|
});
|
|
6763
6739
|
}
|
|
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);
|
|
6766
|
-
}
|
|
6767
6740
|
function rs(e) {
|
|
6741
|
+
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? as(e) : is(e);
|
|
6742
|
+
}
|
|
6743
|
+
function is(e) {
|
|
6768
6744
|
switch (e.type) {
|
|
6769
6745
|
case "inlineFill":
|
|
6770
6746
|
return {
|
|
@@ -6810,7 +6786,7 @@ function rs(e) {
|
|
|
6810
6786
|
};
|
|
6811
6787
|
}
|
|
6812
6788
|
}
|
|
6813
|
-
function
|
|
6789
|
+
function as(e) {
|
|
6814
6790
|
return {
|
|
6815
6791
|
config: {},
|
|
6816
6792
|
enName: e.enName,
|
|
@@ -6818,21 +6794,21 @@ function is(e) {
|
|
|
6818
6794
|
type: e.type
|
|
6819
6795
|
};
|
|
6820
6796
|
}
|
|
6821
|
-
function
|
|
6797
|
+
function os(e) {
|
|
6822
6798
|
return {
|
|
6823
6799
|
enName: e.enName,
|
|
6824
6800
|
name: e.name,
|
|
6825
6801
|
type: e.type
|
|
6826
6802
|
};
|
|
6827
6803
|
}
|
|
6828
|
-
function
|
|
6804
|
+
function ss(e, t) {
|
|
6829
6805
|
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? {
|
|
6830
6806
|
config: {},
|
|
6831
|
-
name:
|
|
6807
|
+
name: ls(e, E(e.type), D(e.type), t),
|
|
6832
6808
|
type: e.type
|
|
6833
|
-
} :
|
|
6809
|
+
} : cs(e, t);
|
|
6834
6810
|
}
|
|
6835
|
-
function
|
|
6811
|
+
function cs(e, t) {
|
|
6836
6812
|
switch (e.type) {
|
|
6837
6813
|
case "inlineFill":
|
|
6838
6814
|
return {
|
|
@@ -6840,7 +6816,7 @@ function ss(e, t) {
|
|
|
6840
6816
|
allowCandidateReuse: !!e.config.allowCandidateReuse,
|
|
6841
6817
|
candidateMode: e.config.candidateMode
|
|
6842
6818
|
},
|
|
6843
|
-
name:
|
|
6819
|
+
name: ls(e, E("inlineFill"), D("inlineFill"), t),
|
|
6844
6820
|
type: "inlineFill"
|
|
6845
6821
|
};
|
|
6846
6822
|
case "wordBuilder":
|
|
@@ -6848,7 +6824,7 @@ function ss(e, t) {
|
|
|
6848
6824
|
config: {
|
|
6849
6825
|
builderMode: e.config.builderMode
|
|
6850
6826
|
},
|
|
6851
|
-
name:
|
|
6827
|
+
name: ls(e, E("wordBuilder"), D("wordBuilder"), t),
|
|
6852
6828
|
type: "wordBuilder"
|
|
6853
6829
|
};
|
|
6854
6830
|
case "judgement":
|
|
@@ -6856,7 +6832,7 @@ function ss(e, t) {
|
|
|
6856
6832
|
config: {
|
|
6857
6833
|
judgeAnswerMode: e.config.judgeAnswerMode
|
|
6858
6834
|
},
|
|
6859
|
-
name:
|
|
6835
|
+
name: ls(e, E("judgement"), D("judgement"), t),
|
|
6860
6836
|
type: "judgement"
|
|
6861
6837
|
};
|
|
6862
6838
|
case "choice":
|
|
@@ -6866,7 +6842,7 @@ function ss(e, t) {
|
|
|
6866
6842
|
renderer: e.config.renderer,
|
|
6867
6843
|
selectionType: e.config.selectionType
|
|
6868
6844
|
},
|
|
6869
|
-
name:
|
|
6845
|
+
name: ls(e, E("choice"), D("choice"), t),
|
|
6870
6846
|
type: "choice"
|
|
6871
6847
|
};
|
|
6872
6848
|
case "lineConnect":
|
|
@@ -6876,7 +6852,7 @@ function ss(e, t) {
|
|
|
6876
6852
|
return C({}, e);
|
|
6877
6853
|
})
|
|
6878
6854
|
},
|
|
6879
|
-
name:
|
|
6855
|
+
name: ls(e, E("lineConnect"), D("lineConnect"), t),
|
|
6880
6856
|
type: "lineConnect"
|
|
6881
6857
|
};
|
|
6882
6858
|
case "matching":
|
|
@@ -6886,12 +6862,12 @@ function ss(e, t) {
|
|
|
6886
6862
|
return C({}, e);
|
|
6887
6863
|
})
|
|
6888
6864
|
},
|
|
6889
|
-
name:
|
|
6865
|
+
name: ls(e, E("matching"), D("matching"), t),
|
|
6890
6866
|
type: "matching"
|
|
6891
6867
|
};
|
|
6892
6868
|
}
|
|
6893
6869
|
}
|
|
6894
|
-
function
|
|
6870
|
+
function ls(e, t, n, r) {
|
|
6895
6871
|
var i;
|
|
6896
6872
|
if (r === "en-US") {
|
|
6897
6873
|
var a;
|
|
@@ -6899,82 +6875,82 @@ function cs(e, t, n, r) {
|
|
|
6899
6875
|
}
|
|
6900
6876
|
return ((i = e.name) == null ? void 0 : i.trim()) || t;
|
|
6901
6877
|
}
|
|
6902
|
-
function
|
|
6903
|
-
return ea(
|
|
6878
|
+
function us(e, t) {
|
|
6879
|
+
return ea(ds(e), t);
|
|
6904
6880
|
}
|
|
6905
|
-
function
|
|
6881
|
+
function ds(e) {
|
|
6906
6882
|
return {
|
|
6907
6883
|
questionTypeKey: e.questionTypeKey,
|
|
6908
|
-
children: e.children.map(
|
|
6909
|
-
elements: e.elements.map(
|
|
6884
|
+
children: e.children.map(ds),
|
|
6885
|
+
elements: e.elements.map(fs),
|
|
6910
6886
|
extras: _toConsumableArray(e.extras),
|
|
6911
6887
|
id: e.id,
|
|
6912
6888
|
version: e.version
|
|
6913
6889
|
};
|
|
6914
6890
|
}
|
|
6915
|
-
function
|
|
6891
|
+
function fs(e) {
|
|
6916
6892
|
return e.type === "choice" ? C(C({}, e), {}, {
|
|
6917
6893
|
answers: e.answers === void 0 ? {
|
|
6918
6894
|
optionIds: []
|
|
6919
6895
|
} : e.answers
|
|
6920
6896
|
}) : e;
|
|
6921
6897
|
}
|
|
6922
|
-
var
|
|
6898
|
+
var ps = {
|
|
6923
6899
|
html: "",
|
|
6924
6900
|
json: [],
|
|
6925
6901
|
text: ""
|
|
6926
6902
|
};
|
|
6927
|
-
function
|
|
6928
|
-
|
|
6903
|
+
function ms(e, t) {
|
|
6904
|
+
As(e, t);
|
|
6929
6905
|
var n = t.elements.filter(function (e) {
|
|
6930
6906
|
return e.type !== "richText";
|
|
6931
6907
|
});
|
|
6932
|
-
return
|
|
6908
|
+
return Ns("elementAnswers", e.items.length, n.length), Ns("children", e.children.length, t.children.length), {
|
|
6933
6909
|
children: e.children.map(function (e, n) {
|
|
6934
|
-
return
|
|
6910
|
+
return ms(e, t.children[n]);
|
|
6935
6911
|
}),
|
|
6936
6912
|
elementAnswers: e.items.map(function (e, t) {
|
|
6937
|
-
return
|
|
6913
|
+
return gs(e, n[t]);
|
|
6938
6914
|
}),
|
|
6939
6915
|
id: t.id,
|
|
6940
6916
|
questionTypeKey: t.questionTypeKey,
|
|
6941
6917
|
version: t.version
|
|
6942
6918
|
};
|
|
6943
6919
|
}
|
|
6944
|
-
function
|
|
6945
|
-
|
|
6920
|
+
function hs(e, t) {
|
|
6921
|
+
As(e, t);
|
|
6946
6922
|
var n = t.elements.filter(function (e) {
|
|
6947
6923
|
return e.type !== "richText";
|
|
6948
6924
|
});
|
|
6949
|
-
return
|
|
6925
|
+
return Ns("elementAnswers", e.elementAnswers.length, n.length), Ns("children", e.children.length, t.children.length), {
|
|
6950
6926
|
children: e.children.map(function (e, n) {
|
|
6951
|
-
return
|
|
6927
|
+
return hs(e, t.children[n]);
|
|
6952
6928
|
}),
|
|
6953
6929
|
id: t.id,
|
|
6954
6930
|
items: e.elementAnswers.map(function (e, t) {
|
|
6955
|
-
return
|
|
6931
|
+
return ys(e, n[t]);
|
|
6956
6932
|
}),
|
|
6957
6933
|
questionTypeKey: t.questionTypeKey,
|
|
6958
6934
|
version: t.version
|
|
6959
6935
|
};
|
|
6960
6936
|
}
|
|
6961
|
-
function
|
|
6962
|
-
switch (
|
|
6937
|
+
function gs(e, t) {
|
|
6938
|
+
switch (js(e.type, t.type), e.type) {
|
|
6963
6939
|
case "fill":
|
|
6964
|
-
return
|
|
6965
|
-
answers:
|
|
6940
|
+
return Ms(t, "fill"), {
|
|
6941
|
+
answers: Ss(t, e.answers),
|
|
6966
6942
|
type: e.type
|
|
6967
6943
|
};
|
|
6968
6944
|
case "inlineFill":
|
|
6969
|
-
return
|
|
6970
|
-
answers:
|
|
6945
|
+
return Ms(t, "inlineFill"), {
|
|
6946
|
+
answers: Cs(t, e.answers),
|
|
6971
6947
|
type: e.type
|
|
6972
6948
|
};
|
|
6973
6949
|
default:
|
|
6974
|
-
return
|
|
6950
|
+
return _s(e);
|
|
6975
6951
|
}
|
|
6976
6952
|
}
|
|
6977
|
-
function
|
|
6953
|
+
function _s(e) {
|
|
6978
6954
|
switch (e.type) {
|
|
6979
6955
|
case "choice":
|
|
6980
6956
|
return {
|
|
@@ -7005,10 +6981,10 @@ function gs(e) {
|
|
|
7005
6981
|
type: e.type
|
|
7006
6982
|
};
|
|
7007
6983
|
default:
|
|
7008
|
-
return
|
|
6984
|
+
return vs(e);
|
|
7009
6985
|
}
|
|
7010
6986
|
}
|
|
7011
|
-
function
|
|
6987
|
+
function vs(e) {
|
|
7012
6988
|
switch (e.type) {
|
|
7013
6989
|
case "ordering":
|
|
7014
6990
|
return {
|
|
@@ -7027,23 +7003,23 @@ function _s(e) {
|
|
|
7027
7003
|
};
|
|
7028
7004
|
}
|
|
7029
7005
|
}
|
|
7030
|
-
function
|
|
7031
|
-
switch (
|
|
7006
|
+
function ys(e, t) {
|
|
7007
|
+
switch (js(e.type, t.type), e.type) {
|
|
7032
7008
|
case "fill":
|
|
7033
7009
|
return {
|
|
7034
|
-
answers:
|
|
7010
|
+
answers: Es(e.answers),
|
|
7035
7011
|
type: e.type
|
|
7036
7012
|
};
|
|
7037
7013
|
case "inlineFill":
|
|
7038
|
-
return
|
|
7039
|
-
answers:
|
|
7014
|
+
return Ms(t, "inlineFill"), {
|
|
7015
|
+
answers: Ds(t, e.answers),
|
|
7040
7016
|
type: e.type
|
|
7041
7017
|
};
|
|
7042
7018
|
default:
|
|
7043
|
-
return
|
|
7019
|
+
return bs(e);
|
|
7044
7020
|
}
|
|
7045
7021
|
}
|
|
7046
|
-
function
|
|
7022
|
+
function bs(e) {
|
|
7047
7023
|
switch (e.type) {
|
|
7048
7024
|
case "choice":
|
|
7049
7025
|
return {
|
|
@@ -7068,14 +7044,14 @@ function ys(e) {
|
|
|
7068
7044
|
case "lineConnect":
|
|
7069
7045
|
case "matching":
|
|
7070
7046
|
return {
|
|
7071
|
-
connections:
|
|
7047
|
+
connections: Os(e.answers),
|
|
7072
7048
|
type: e.type
|
|
7073
7049
|
};
|
|
7074
7050
|
default:
|
|
7075
|
-
return
|
|
7051
|
+
return xs(e);
|
|
7076
7052
|
}
|
|
7077
7053
|
}
|
|
7078
|
-
function
|
|
7054
|
+
function xs(e) {
|
|
7079
7055
|
switch (e.type) {
|
|
7080
7056
|
case "ordering":
|
|
7081
7057
|
return {
|
|
@@ -7094,11 +7070,11 @@ function bs(e) {
|
|
|
7094
7070
|
};
|
|
7095
7071
|
}
|
|
7096
7072
|
}
|
|
7097
|
-
function
|
|
7073
|
+
function Ss(e, t) {
|
|
7098
7074
|
return k(e.answers, e.blanks).map(function (e) {
|
|
7099
7075
|
var n;
|
|
7100
7076
|
return {
|
|
7101
|
-
answerPools: [
|
|
7077
|
+
answerPools: [ks((n = e.blankIds.map(function (e) {
|
|
7102
7078
|
var n;
|
|
7103
7079
|
return (n = t[e]) == null ? "" : n;
|
|
7104
7080
|
}).find(Boolean)) == null ? "" : n)],
|
|
@@ -7106,31 +7082,31 @@ function xs(e, t) {
|
|
|
7106
7082
|
};
|
|
7107
7083
|
});
|
|
7108
7084
|
}
|
|
7109
|
-
function
|
|
7085
|
+
function Cs(e, t) {
|
|
7110
7086
|
return e.blanks.map(function (n) {
|
|
7111
7087
|
return {
|
|
7112
|
-
answerPools: [
|
|
7088
|
+
answerPools: [ks(ws(e, n, t[n]))],
|
|
7113
7089
|
blankIds: [n]
|
|
7114
7090
|
};
|
|
7115
7091
|
});
|
|
7116
7092
|
}
|
|
7117
|
-
function
|
|
7093
|
+
function ws(e, t, n) {
|
|
7118
7094
|
var r;
|
|
7119
7095
|
if (!n) return "";
|
|
7120
7096
|
if (n.kind === "text") return n.value;
|
|
7121
|
-
var i =
|
|
7097
|
+
var i = Ts(e, t).find(function (e) {
|
|
7122
7098
|
return n.optionIds.includes(e.optionId);
|
|
7123
7099
|
});
|
|
7124
7100
|
return (r = i == null ? void 0 : i.content.text) == null ? "" : r;
|
|
7125
7101
|
}
|
|
7126
|
-
function
|
|
7102
|
+
function Ts(e, t) {
|
|
7127
7103
|
var n, r;
|
|
7128
7104
|
var i = (n = e.blankOptionGroups) == null || (n = n.find(function (e) {
|
|
7129
7105
|
return e.blankId === t;
|
|
7130
7106
|
})) == null ? void 0 : n.options;
|
|
7131
7107
|
return [].concat(_toConsumableArray(i == null ? [] : i), _toConsumableArray((r = e.candidateOptions) == null ? [] : r));
|
|
7132
7108
|
}
|
|
7133
|
-
function
|
|
7109
|
+
function Es(e) {
|
|
7134
7110
|
return e.reduce(function (e, t) {
|
|
7135
7111
|
return t.blankIds.reduce(function (e, n) {
|
|
7136
7112
|
var r, i;
|
|
@@ -7138,8 +7114,8 @@ function Ts(e) {
|
|
|
7138
7114
|
}, e);
|
|
7139
7115
|
}, {});
|
|
7140
7116
|
}
|
|
7141
|
-
function
|
|
7142
|
-
return Object.entries(
|
|
7117
|
+
function Ds(e, t) {
|
|
7118
|
+
return Object.entries(Es(t)).reduce(function (t, _ref103) {
|
|
7143
7119
|
var _ref104 = _slicedToArray(_ref103, 2),
|
|
7144
7120
|
n = _ref104[0],
|
|
7145
7121
|
r = _ref104[1];
|
|
@@ -7159,107 +7135,107 @@ function Es(e, t) {
|
|
|
7159
7135
|
return C(C({}, t), {}, _defineProperty({}, n, c));
|
|
7160
7136
|
}, {});
|
|
7161
7137
|
}
|
|
7162
|
-
function
|
|
7138
|
+
function Os(e) {
|
|
7163
7139
|
return Object.keys(e).reduce(function (t, n) {
|
|
7164
7140
|
return C(C({}, t), {}, _defineProperty({}, n, _toConsumableArray(e[n])));
|
|
7165
7141
|
}, {});
|
|
7166
7142
|
}
|
|
7167
|
-
function
|
|
7168
|
-
return e.length === 0 ?
|
|
7143
|
+
function ks(e) {
|
|
7144
|
+
return e.length === 0 ? ps : {
|
|
7169
7145
|
html: e,
|
|
7170
7146
|
json: [],
|
|
7171
7147
|
text: e
|
|
7172
7148
|
};
|
|
7173
7149
|
}
|
|
7174
|
-
function
|
|
7150
|
+
function As(e, t) {
|
|
7175
7151
|
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));
|
|
7176
7152
|
}
|
|
7177
|
-
function
|
|
7153
|
+
function js(e, t) {
|
|
7178
7154
|
if (e !== t) throw Error("QuestionPlayer response element mismatch: expected=".concat(t, ", actual=").concat(e));
|
|
7179
7155
|
}
|
|
7180
|
-
function
|
|
7156
|
+
function Ms(e, t) {
|
|
7181
7157
|
if (e.type !== t) throw Error("QuestionPlayer content element mismatch: expected=".concat(t, ", actual=").concat(e.type));
|
|
7182
7158
|
}
|
|
7183
|
-
function
|
|
7159
|
+
function Ns(e, t, n) {
|
|
7184
7160
|
if (t !== n) throw Error("QuestionPlayer response ".concat(e, " length mismatch: expected=").concat(n, ", actual=").concat(t));
|
|
7185
7161
|
}
|
|
7186
|
-
function Ns(e, t) {
|
|
7187
|
-
var n = ls(e, t);
|
|
7188
|
-
return ps(Ps(n, t), n);
|
|
7189
|
-
}
|
|
7190
7162
|
function Ps(e, t) {
|
|
7163
|
+
var n = us(e, t);
|
|
7164
|
+
return ms(Fs(n, t), n);
|
|
7165
|
+
}
|
|
7166
|
+
function Fs(e, t) {
|
|
7191
7167
|
var n = Yi(t, e.questionTypeKey),
|
|
7192
7168
|
r = n ? Rt(n) : !1;
|
|
7193
7169
|
return {
|
|
7194
7170
|
questionTypeKey: e.questionTypeKey,
|
|
7195
7171
|
children: e.children.map(function (e) {
|
|
7196
|
-
return
|
|
7172
|
+
return Fs(e, t);
|
|
7197
7173
|
}),
|
|
7198
7174
|
id: e.id,
|
|
7199
7175
|
items: !n || r ? [] : n.elements.reduce(function (t, n, r) {
|
|
7200
|
-
var i =
|
|
7176
|
+
var i = nc(n, Yt(e, r, n));
|
|
7201
7177
|
return i ? [].concat(_toConsumableArray(t), [i]) : t;
|
|
7202
7178
|
}, []),
|
|
7203
7179
|
version: e.version
|
|
7204
7180
|
};
|
|
7205
7181
|
}
|
|
7206
|
-
function
|
|
7182
|
+
function Is(e, t) {
|
|
7207
7183
|
var n;
|
|
7208
7184
|
return (n = V(e, t, "choice")) == null ? {
|
|
7209
7185
|
selectedOptionIds: [],
|
|
7210
7186
|
type: "choice"
|
|
7211
7187
|
} : n;
|
|
7212
7188
|
}
|
|
7213
|
-
function
|
|
7189
|
+
function Ls(e, t, n) {
|
|
7214
7190
|
var r;
|
|
7215
7191
|
return (r = V(e, t, "fill")) == null ? {
|
|
7216
|
-
answers:
|
|
7192
|
+
answers: hc(n),
|
|
7217
7193
|
type: "fill"
|
|
7218
7194
|
} : r;
|
|
7219
7195
|
}
|
|
7220
|
-
function
|
|
7196
|
+
function Rs(e, t, n, r) {
|
|
7221
7197
|
var i;
|
|
7222
7198
|
return (i = V(e, t, "inlineFill")) == null ? {
|
|
7223
|
-
answers:
|
|
7199
|
+
answers: gc(n, r),
|
|
7224
7200
|
type: "inlineFill"
|
|
7225
7201
|
} : i;
|
|
7226
7202
|
}
|
|
7227
|
-
function
|
|
7203
|
+
function zs(e, t, n) {
|
|
7228
7204
|
var r;
|
|
7229
7205
|
return (r = V(e, t, "wordBuilder")) == null ? {
|
|
7230
|
-
answers:
|
|
7206
|
+
answers: hc(n),
|
|
7231
7207
|
type: "wordBuilder"
|
|
7232
7208
|
} : r;
|
|
7233
7209
|
}
|
|
7234
|
-
function
|
|
7210
|
+
function Bs(e, t) {
|
|
7235
7211
|
var n;
|
|
7236
7212
|
return (n = V(e, t, "judgement")) == null ? {
|
|
7237
7213
|
selectedValues: [],
|
|
7238
7214
|
type: "judgement"
|
|
7239
7215
|
} : n;
|
|
7240
7216
|
}
|
|
7241
|
-
function
|
|
7217
|
+
function Vs(e, t) {
|
|
7242
7218
|
var n;
|
|
7243
7219
|
return (n = V(e, t, "classification")) == null ? {
|
|
7244
7220
|
placements: {},
|
|
7245
7221
|
type: "classification"
|
|
7246
7222
|
} : n;
|
|
7247
7223
|
}
|
|
7248
|
-
function
|
|
7224
|
+
function Hs(e, t) {
|
|
7249
7225
|
var n;
|
|
7250
7226
|
return (n = V(e, t, "lineConnect")) == null ? {
|
|
7251
7227
|
connections: {},
|
|
7252
7228
|
type: "lineConnect"
|
|
7253
7229
|
} : n;
|
|
7254
7230
|
}
|
|
7255
|
-
function
|
|
7231
|
+
function Us(e, t) {
|
|
7256
7232
|
var n;
|
|
7257
7233
|
return (n = V(e, t, "matching")) == null ? {
|
|
7258
7234
|
connections: {},
|
|
7259
7235
|
type: "matching"
|
|
7260
7236
|
} : n;
|
|
7261
7237
|
}
|
|
7262
|
-
function
|
|
7238
|
+
function Ws(e, t, n) {
|
|
7263
7239
|
var r;
|
|
7264
7240
|
return (r = V(e, t, "ordering")) == null ? {
|
|
7265
7241
|
orderedOptionIds: n.sortOptions.map(function (e) {
|
|
@@ -7268,137 +7244,137 @@ function Us(e, t, n) {
|
|
|
7268
7244
|
type: "ordering"
|
|
7269
7245
|
} : r;
|
|
7270
7246
|
}
|
|
7271
|
-
function
|
|
7247
|
+
function Gs(e, t) {
|
|
7272
7248
|
var n;
|
|
7273
7249
|
return (n = V(e, t, "textMarker")) == null ? {
|
|
7274
7250
|
selectedMarkers: [],
|
|
7275
7251
|
type: "textMarker"
|
|
7276
7252
|
} : n;
|
|
7277
7253
|
}
|
|
7278
|
-
function
|
|
7254
|
+
function Ks(e, t) {
|
|
7279
7255
|
var n;
|
|
7280
7256
|
return (n = V(e, t, "textResponse")) == null ? {
|
|
7281
7257
|
content: O(),
|
|
7282
7258
|
type: "textResponse"
|
|
7283
7259
|
} : n;
|
|
7284
7260
|
}
|
|
7285
|
-
function
|
|
7261
|
+
function qs(e, t, n) {
|
|
7286
7262
|
return C(C({}, e), {}, {
|
|
7287
7263
|
items: e.items.map(function (e, r) {
|
|
7288
7264
|
return r === t ? n : e;
|
|
7289
7265
|
})
|
|
7290
7266
|
});
|
|
7291
7267
|
}
|
|
7292
|
-
function
|
|
7268
|
+
function Js(e, t, n) {
|
|
7293
7269
|
return C(C({}, e), {}, {
|
|
7294
7270
|
children: e.children.map(function (e, r) {
|
|
7295
7271
|
return r === t ? n : e;
|
|
7296
7272
|
})
|
|
7297
7273
|
});
|
|
7298
7274
|
}
|
|
7299
|
-
function
|
|
7275
|
+
function Ys(e, t, n) {
|
|
7300
7276
|
return Fe(e, t, n);
|
|
7301
7277
|
}
|
|
7302
|
-
function
|
|
7278
|
+
function Xs(e, t) {
|
|
7303
7279
|
var n = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "single";
|
|
7304
7280
|
return {
|
|
7305
7281
|
kind: "option",
|
|
7306
7282
|
optionIds: Fe((e == null ? void 0 : e.kind) === "option" ? e.optionIds : [], t, n)
|
|
7307
7283
|
};
|
|
7308
7284
|
}
|
|
7309
|
-
function
|
|
7285
|
+
function Zs(e, t, n) {
|
|
7310
7286
|
return nt(e, t, n);
|
|
7311
7287
|
}
|
|
7312
|
-
function
|
|
7288
|
+
function Qs(e, t, n) {
|
|
7313
7289
|
return dt(e, t, n);
|
|
7314
7290
|
}
|
|
7315
|
-
function
|
|
7291
|
+
function $s(e, t, n) {
|
|
7316
7292
|
return Ke(e, t, n);
|
|
7317
7293
|
}
|
|
7318
|
-
function
|
|
7294
|
+
function ec(e, t, n, r) {
|
|
7319
7295
|
return Mr(e, t.sortOptions, n, r);
|
|
7320
7296
|
}
|
|
7321
|
-
function
|
|
7297
|
+
function tc(e, t) {
|
|
7322
7298
|
return e.includes(t) ? e.filter(function (e) {
|
|
7323
7299
|
return e !== t;
|
|
7324
7300
|
}) : [].concat(_toConsumableArray(e), [t]);
|
|
7325
7301
|
}
|
|
7326
|
-
function
|
|
7302
|
+
function nc(e, t) {
|
|
7327
7303
|
return e.type === "richText" ? null : e.type === "textResponse" ? {
|
|
7328
7304
|
content: O(),
|
|
7329
7305
|
type: "textResponse"
|
|
7330
|
-
} : e.type === "ordering" ?
|
|
7306
|
+
} : e.type === "ordering" ? pc(t) : e.type === "classification" ? ic(t) : e.type === "fill" ? sc(t) : rc(e, t);
|
|
7331
7307
|
}
|
|
7332
|
-
function
|
|
7308
|
+
function rc(e, t) {
|
|
7333
7309
|
switch (e.type) {
|
|
7334
7310
|
case "choice":
|
|
7335
|
-
return
|
|
7311
|
+
return oc();
|
|
7336
7312
|
case "inlineFill":
|
|
7337
|
-
return
|
|
7313
|
+
return cc(e, t);
|
|
7338
7314
|
case "wordBuilder":
|
|
7339
|
-
return
|
|
7315
|
+
return ac(t);
|
|
7340
7316
|
case "judgement":
|
|
7341
|
-
return cc();
|
|
7342
|
-
case "lineConnect":
|
|
7343
7317
|
return lc();
|
|
7344
|
-
case "
|
|
7318
|
+
case "lineConnect":
|
|
7345
7319
|
return uc();
|
|
7320
|
+
case "matching":
|
|
7321
|
+
return dc();
|
|
7346
7322
|
case "textMarker":
|
|
7347
|
-
return
|
|
7323
|
+
return mc();
|
|
7348
7324
|
}
|
|
7349
7325
|
}
|
|
7350
|
-
function
|
|
7326
|
+
function ic(e) {
|
|
7351
7327
|
return e.type === "classification" ? {
|
|
7352
|
-
placements:
|
|
7328
|
+
placements: fc({}, e),
|
|
7353
7329
|
type: "classification"
|
|
7354
7330
|
} : null;
|
|
7355
7331
|
}
|
|
7356
|
-
function
|
|
7332
|
+
function ac(e) {
|
|
7357
7333
|
return e.type === "wordBuilder" ? {
|
|
7358
|
-
answers:
|
|
7334
|
+
answers: hc(e.blanks),
|
|
7359
7335
|
type: "wordBuilder"
|
|
7360
7336
|
} : null;
|
|
7361
7337
|
}
|
|
7362
|
-
function
|
|
7338
|
+
function oc() {
|
|
7363
7339
|
return {
|
|
7364
7340
|
selectedOptionIds: [],
|
|
7365
7341
|
type: "choice"
|
|
7366
7342
|
};
|
|
7367
7343
|
}
|
|
7368
|
-
function
|
|
7344
|
+
function sc(e) {
|
|
7369
7345
|
return e.type === "fill" ? {
|
|
7370
|
-
answers:
|
|
7346
|
+
answers: hc(e.blanks),
|
|
7371
7347
|
type: "fill"
|
|
7372
7348
|
} : null;
|
|
7373
7349
|
}
|
|
7374
|
-
function
|
|
7350
|
+
function cc(e, t) {
|
|
7375
7351
|
return t.type === "inlineFill" ? {
|
|
7376
|
-
answers:
|
|
7352
|
+
answers: gc(e, t.blanks),
|
|
7377
7353
|
type: "inlineFill"
|
|
7378
7354
|
} : null;
|
|
7379
7355
|
}
|
|
7380
|
-
function
|
|
7356
|
+
function lc() {
|
|
7381
7357
|
return {
|
|
7382
7358
|
selectedValues: [],
|
|
7383
7359
|
type: "judgement"
|
|
7384
7360
|
};
|
|
7385
7361
|
}
|
|
7386
|
-
function
|
|
7362
|
+
function uc() {
|
|
7387
7363
|
return {
|
|
7388
7364
|
connections: {},
|
|
7389
7365
|
type: "lineConnect"
|
|
7390
7366
|
};
|
|
7391
7367
|
}
|
|
7392
|
-
function
|
|
7368
|
+
function dc() {
|
|
7393
7369
|
return {
|
|
7394
7370
|
connections: {},
|
|
7395
7371
|
type: "matching"
|
|
7396
7372
|
};
|
|
7397
7373
|
}
|
|
7398
|
-
function
|
|
7374
|
+
function fc(e, t) {
|
|
7399
7375
|
return Ge(e, t.categories, t.items);
|
|
7400
7376
|
}
|
|
7401
|
-
function
|
|
7377
|
+
function pc(e) {
|
|
7402
7378
|
return e.type === "ordering" ? {
|
|
7403
7379
|
orderedOptionIds: e.sortOptions.map(function (e) {
|
|
7404
7380
|
return e.id;
|
|
@@ -7406,18 +7382,18 @@ function fc(e) {
|
|
|
7406
7382
|
type: "ordering"
|
|
7407
7383
|
} : null;
|
|
7408
7384
|
}
|
|
7409
|
-
function
|
|
7385
|
+
function mc() {
|
|
7410
7386
|
return {
|
|
7411
7387
|
selectedMarkers: [],
|
|
7412
7388
|
type: "textMarker"
|
|
7413
7389
|
};
|
|
7414
7390
|
}
|
|
7415
|
-
function
|
|
7391
|
+
function hc(e) {
|
|
7416
7392
|
return e.reduce(function (e, t) {
|
|
7417
7393
|
return C(C({}, e), {}, _defineProperty({}, t, ""));
|
|
7418
7394
|
}, {});
|
|
7419
7395
|
}
|
|
7420
|
-
function
|
|
7396
|
+
function gc(e, t) {
|
|
7421
7397
|
return t.reduce(function (t, n) {
|
|
7422
7398
|
return C(C({}, t), {}, _defineProperty({}, n, e.config.candidateMode === "none" ? {
|
|
7423
7399
|
kind: "text",
|
|
@@ -7430,12 +7406,12 @@ function hc(e, t) {
|
|
|
7430
7406
|
}
|
|
7431
7407
|
function V(e, t, n) {
|
|
7432
7408
|
var r = e.items[t];
|
|
7433
|
-
return r &&
|
|
7409
|
+
return r && _c(r, n) ? r : void 0;
|
|
7434
7410
|
}
|
|
7435
|
-
function
|
|
7411
|
+
function _c(e, t) {
|
|
7436
7412
|
return e.type === t;
|
|
7437
7413
|
}
|
|
7438
|
-
var
|
|
7414
|
+
var vc = {
|
|
7439
7415
|
"en-US": {
|
|
7440
7416
|
addBlank: "Add blank",
|
|
7441
7417
|
addCard: "Add card",
|
|
@@ -7565,13 +7541,13 @@ var _c = {
|
|
|
7565
7541
|
previewEmpty: "\u6682\u65E0\u9898\u76EE\u5185\u5BB9\u3002"
|
|
7566
7542
|
}
|
|
7567
7543
|
};
|
|
7568
|
-
function
|
|
7544
|
+
function yc() {
|
|
7569
7545
|
var e = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "zh-CN";
|
|
7570
7546
|
switch (e) {
|
|
7571
7547
|
case "en-US":
|
|
7572
|
-
return
|
|
7548
|
+
return vc["en-US"];
|
|
7573
7549
|
case "zh-CN":
|
|
7574
|
-
return
|
|
7550
|
+
return vc["zh-CN"];
|
|
7575
7551
|
}
|
|
7576
7552
|
}
|
|
7577
7553
|
function H() {
|
|
@@ -7580,7 +7556,7 @@ function H() {
|
|
|
7580
7556
|
}
|
|
7581
7557
|
return e.filter(Boolean).join(" ");
|
|
7582
7558
|
}
|
|
7583
|
-
function
|
|
7559
|
+
function bc(e, t, n) {
|
|
7584
7560
|
return e.map(function (e) {
|
|
7585
7561
|
return t.indexOf(e) + 1;
|
|
7586
7562
|
}).filter(function (e) {
|
|
@@ -7589,22 +7565,22 @@ function yc(e, t, n) {
|
|
|
7589
7565
|
return "".concat(n).concat(e);
|
|
7590
7566
|
}).join(" ");
|
|
7591
7567
|
}
|
|
7592
|
-
function
|
|
7568
|
+
function xc(e) {
|
|
7593
7569
|
return "answerPools" in e;
|
|
7594
7570
|
}
|
|
7595
|
-
function
|
|
7571
|
+
function Sc(e) {
|
|
7596
7572
|
return "answerOptionId" in e;
|
|
7597
7573
|
}
|
|
7598
|
-
function
|
|
7574
|
+
function Cc(e) {
|
|
7599
7575
|
return "answerOptionIds" in e;
|
|
7600
7576
|
}
|
|
7601
|
-
function
|
|
7577
|
+
function wc(e, t) {
|
|
7602
7578
|
var n, r;
|
|
7603
7579
|
return (n = e == null || (r = e.find(function (e) {
|
|
7604
7580
|
return e.optionId === t;
|
|
7605
7581
|
})) == null ? void 0 : r.content) == null ? null : n;
|
|
7606
7582
|
}
|
|
7607
|
-
function
|
|
7583
|
+
function Tc(e, t, n) {
|
|
7608
7584
|
var r, i;
|
|
7609
7585
|
return (r = e == null || (i = e.find(function (e) {
|
|
7610
7586
|
return e.blankId === t;
|
|
@@ -7612,26 +7588,26 @@ function wc(e, t, n) {
|
|
|
7612
7588
|
return e.optionId === n;
|
|
7613
7589
|
})) == null ? void 0 : i.content) == null ? null : r;
|
|
7614
7590
|
}
|
|
7615
|
-
function
|
|
7591
|
+
function Ec(e) {
|
|
7616
7592
|
return e.answers.reduce(function (t, n) {
|
|
7617
|
-
if (
|
|
7593
|
+
if (xc(n)) return Dc(t, {
|
|
7618
7594
|
blankIds: n.blankIds,
|
|
7619
7595
|
contents: n.answerPools
|
|
7620
7596
|
});
|
|
7621
|
-
if (
|
|
7622
|
-
var _r4 =
|
|
7623
|
-
return
|
|
7597
|
+
if (Sc(n)) {
|
|
7598
|
+
var _r4 = Tc(e.blankOptionGroups, n.blankId, n.answerOptionId);
|
|
7599
|
+
return Dc(t, {
|
|
7624
7600
|
blankIds: [n.blankId],
|
|
7625
7601
|
contents: _r4 ? [_r4] : []
|
|
7626
7602
|
});
|
|
7627
7603
|
}
|
|
7628
|
-
if (
|
|
7604
|
+
if (Cc(n)) {
|
|
7629
7605
|
var _r5 = n.answerOptionIds.map(function (t) {
|
|
7630
|
-
return
|
|
7606
|
+
return wc(e.candidateOptions, t);
|
|
7631
7607
|
}).filter(function (e) {
|
|
7632
7608
|
return !!e;
|
|
7633
7609
|
});
|
|
7634
|
-
return
|
|
7610
|
+
return Dc(t, {
|
|
7635
7611
|
blankIds: n.blankIds,
|
|
7636
7612
|
contents: _r5
|
|
7637
7613
|
});
|
|
@@ -7639,7 +7615,7 @@ function Tc(e) {
|
|
|
7639
7615
|
return t;
|
|
7640
7616
|
}, []);
|
|
7641
7617
|
}
|
|
7642
|
-
function
|
|
7618
|
+
function Dc(e, t) {
|
|
7643
7619
|
var n = t.contents.filter(function (e) {
|
|
7644
7620
|
return e.text.trim() !== "";
|
|
7645
7621
|
});
|
|
@@ -7648,13 +7624,13 @@ function Ec(e, t) {
|
|
|
7648
7624
|
contents: n
|
|
7649
7625
|
}]) : e;
|
|
7650
7626
|
}
|
|
7651
|
-
var
|
|
7627
|
+
var Oc = {
|
|
7652
7628
|
title: "_title_hrc5o_1"
|
|
7653
7629
|
};
|
|
7654
|
-
function
|
|
7630
|
+
function kc(_ref105) {
|
|
7655
7631
|
var e = _ref105.children;
|
|
7656
7632
|
return (0, t.jsx)("h3", {
|
|
7657
|
-
className:
|
|
7633
|
+
className: Oc.title,
|
|
7658
7634
|
children: e
|
|
7659
7635
|
});
|
|
7660
7636
|
}
|
|
@@ -7672,36 +7648,37 @@ var U = {
|
|
|
7672
7648
|
input: "_input_1owdb_62",
|
|
7673
7649
|
field: "_field_1owdb_44"
|
|
7674
7650
|
};
|
|
7675
|
-
function
|
|
7676
|
-
var
|
|
7677
|
-
_ref106$
|
|
7678
|
-
n = _ref106
|
|
7651
|
+
function Ac(_ref106) {
|
|
7652
|
+
var _ref106$childIndexPat = _ref106.childIndexPath,
|
|
7653
|
+
e = _ref106$childIndexPat === void 0 ? [] : _ref106$childIndexPat,
|
|
7654
|
+
n = _ref106.messages,
|
|
7679
7655
|
r = _ref106.onChildResponseChange,
|
|
7680
7656
|
i = _ref106.renderChild,
|
|
7681
7657
|
a = _ref106.response,
|
|
7682
|
-
o = _ref106.
|
|
7683
|
-
|
|
7658
|
+
o = _ref106.rootQuestionNumber,
|
|
7659
|
+
s = _ref106.value;
|
|
7660
|
+
return s.children.length === 0 ? (0, t.jsx)("div", {
|
|
7684
7661
|
className: U.empty,
|
|
7685
|
-
children:
|
|
7662
|
+
children: n.previewEmpty
|
|
7686
7663
|
}) : (0, t.jsx)("div", {
|
|
7687
7664
|
className: U.children,
|
|
7688
|
-
children:
|
|
7689
|
-
var
|
|
7690
|
-
|
|
7691
|
-
|
|
7665
|
+
children: s.children.map(function (c, l) {
|
|
7666
|
+
var u = [].concat(_toConsumableArray(e), [l]),
|
|
7667
|
+
d = a.children.slice(l, l + 1)[0],
|
|
7668
|
+
f = Oo(u, s.children.length, o);
|
|
7692
7669
|
return (0, t.jsx)("section", {
|
|
7693
7670
|
className: U.child,
|
|
7694
|
-
children: (0, t.jsx)(
|
|
7671
|
+
children: (0, t.jsx)(Ao, {
|
|
7695
7672
|
indented: !0,
|
|
7696
|
-
number:
|
|
7697
|
-
children:
|
|
7698
|
-
return r(
|
|
7699
|
-
},
|
|
7673
|
+
number: f,
|
|
7674
|
+
children: d ? i(c, d, function (e) {
|
|
7675
|
+
return r(l, e);
|
|
7676
|
+
}, u) : (0, t.jsx)("div", {
|
|
7700
7677
|
className: U.empty,
|
|
7701
|
-
children:
|
|
7678
|
+
children: n.missingQuestionTypeTemplate
|
|
7702
7679
|
})
|
|
7703
7680
|
})
|
|
7704
|
-
},
|
|
7681
|
+
}, c.id || l);
|
|
7705
7682
|
})
|
|
7706
7683
|
});
|
|
7707
7684
|
}
|
|
@@ -7733,7 +7710,7 @@ function G(_ref107) {
|
|
|
7733
7710
|
}
|
|
7734
7711
|
});
|
|
7735
7712
|
}
|
|
7736
|
-
var
|
|
7713
|
+
var jc = {
|
|
7737
7714
|
"answer-panel": "_answer-panel_1bkkd_1",
|
|
7738
7715
|
"answer-list": "_answer-list_1bkkd_8",
|
|
7739
7716
|
"answer-row": "_answer-row_1bkkd_16",
|
|
@@ -7750,22 +7727,22 @@ function K(_ref108) {
|
|
|
7750
7727
|
});
|
|
7751
7728
|
return r.length === 0 ? null : (0, t.jsxs)("section", {
|
|
7752
7729
|
"aria-label": n,
|
|
7753
|
-
className:
|
|
7754
|
-
children: [(0, t.jsx)(
|
|
7730
|
+
className: jc["answer-panel"],
|
|
7731
|
+
children: [(0, t.jsx)(kc, {
|
|
7755
7732
|
children: n
|
|
7756
7733
|
}), (0, t.jsx)("ol", {
|
|
7757
|
-
className:
|
|
7734
|
+
className: jc["answer-list"],
|
|
7758
7735
|
children: r.map(function (e, n) {
|
|
7759
7736
|
return (0, t.jsxs)("li", {
|
|
7760
|
-
className:
|
|
7737
|
+
className: jc["answer-row"],
|
|
7761
7738
|
children: [e.marker ? (0, t.jsx)("span", {
|
|
7762
|
-
className: e.kind === "markerOnly" ? "".concat(
|
|
7739
|
+
className: e.kind === "markerOnly" ? "".concat(jc["answer-marker"], " ").concat(jc["answer-marker-only"]) : jc["answer-marker"],
|
|
7763
7740
|
children: e.marker
|
|
7764
7741
|
}) : null, e.kind === "detailed" ? (0, t.jsx)("div", {
|
|
7765
|
-
className:
|
|
7742
|
+
className: jc["answer-content-list"],
|
|
7766
7743
|
children: e.contents.map(function (e, n) {
|
|
7767
7744
|
return (0, t.jsx)("div", {
|
|
7768
|
-
className:
|
|
7745
|
+
className: jc["answer-value"],
|
|
7769
7746
|
children: e
|
|
7770
7747
|
}, "answer-".concat(n));
|
|
7771
7748
|
})
|
|
@@ -7775,7 +7752,7 @@ function K(_ref108) {
|
|
|
7775
7752
|
})]
|
|
7776
7753
|
});
|
|
7777
7754
|
}
|
|
7778
|
-
function
|
|
7755
|
+
function Mc(_ref109) {
|
|
7779
7756
|
var e = _ref109.disabled,
|
|
7780
7757
|
n = _ref109.item,
|
|
7781
7758
|
r = _ref109.messages,
|
|
@@ -7783,7 +7760,7 @@ function jc(_ref109) {
|
|
|
7783
7760
|
a = _ref109.response,
|
|
7784
7761
|
o = _ref109.responseIndex,
|
|
7785
7762
|
s = _ref109.showAnswer;
|
|
7786
|
-
var c =
|
|
7763
|
+
var c = Ls(a, o, n.blanks),
|
|
7787
7764
|
l = k(n.answers, n.blanks).map(function (e, i) {
|
|
7788
7765
|
return {
|
|
7789
7766
|
kind: "detailed",
|
|
@@ -7792,7 +7769,7 @@ function jc(_ref109) {
|
|
|
7792
7769
|
content: e
|
|
7793
7770
|
}, "group-".concat(i, "-answer-").concat(n));
|
|
7794
7771
|
}),
|
|
7795
|
-
marker:
|
|
7772
|
+
marker: bc(e.blankIds, n.blanks, r.blankLabel)
|
|
7796
7773
|
};
|
|
7797
7774
|
});
|
|
7798
7775
|
function u(e, t) {
|
|
@@ -7814,19 +7791,19 @@ function jc(_ref109) {
|
|
|
7814
7791
|
onChange: function onChange(e) {
|
|
7815
7792
|
return u(n, e.target.value);
|
|
7816
7793
|
},
|
|
7817
|
-
value:
|
|
7794
|
+
value: Pc(c.answers, n)
|
|
7818
7795
|
})]
|
|
7819
|
-
},
|
|
7796
|
+
}, Nc(n, i));
|
|
7820
7797
|
}), s ? (0, t.jsx)(K, {
|
|
7821
7798
|
groups: l,
|
|
7822
7799
|
title: r.standardAnswer
|
|
7823
7800
|
}) : null]
|
|
7824
7801
|
});
|
|
7825
7802
|
}
|
|
7826
|
-
function
|
|
7803
|
+
function Nc(e, t) {
|
|
7827
7804
|
return e || "blank-".concat(t + 1);
|
|
7828
7805
|
}
|
|
7829
|
-
function
|
|
7806
|
+
function Pc(e, t) {
|
|
7830
7807
|
var n, r;
|
|
7831
7808
|
return (n = (r = Object.entries(e).find(function (_ref110) {
|
|
7832
7809
|
var _ref111 = _slicedToArray(_ref110, 1),
|
|
@@ -7834,7 +7811,7 @@ function Nc(e, t) {
|
|
|
7834
7811
|
return e === t;
|
|
7835
7812
|
})) == null ? void 0 : r[1]) == null ? "" : n;
|
|
7836
7813
|
}
|
|
7837
|
-
function
|
|
7814
|
+
function Fc(e) {
|
|
7838
7815
|
return e.categories.map(function (n) {
|
|
7839
7816
|
return {
|
|
7840
7817
|
kind: "detailed",
|
|
@@ -7862,7 +7839,7 @@ var q = {
|
|
|
7862
7839
|
incorrect: "_incorrect_1f76b_81",
|
|
7863
7840
|
unanswered: "_unanswered_1f76b_85"
|
|
7864
7841
|
};
|
|
7865
|
-
function
|
|
7842
|
+
function Ic(_ref112) {
|
|
7866
7843
|
var e = _ref112.disabled,
|
|
7867
7844
|
r = _ref112.item,
|
|
7868
7845
|
i = _ref112.messages,
|
|
@@ -7874,14 +7851,14 @@ function Fc(_ref112) {
|
|
|
7874
7851
|
_ref114 = _slicedToArray(_ref113, 2),
|
|
7875
7852
|
l = _ref114[0],
|
|
7876
7853
|
u = _ref114[1],
|
|
7877
|
-
d =
|
|
7878
|
-
f =
|
|
7854
|
+
d = Vs(o, s),
|
|
7855
|
+
f = Rc(d.placements, r),
|
|
7879
7856
|
p = r.items.find(function (e) {
|
|
7880
7857
|
return e.id === l;
|
|
7881
7858
|
});
|
|
7882
7859
|
function m(e, t) {
|
|
7883
7860
|
a(C(C({}, d), {}, {
|
|
7884
|
-
placements:
|
|
7861
|
+
placements: Rc($s(f, e, t), r)
|
|
7885
7862
|
})), u("");
|
|
7886
7863
|
}
|
|
7887
7864
|
function h(t, n) {
|
|
@@ -7891,7 +7868,7 @@ function Fc(_ref112) {
|
|
|
7891
7868
|
}
|
|
7892
7869
|
function g(n) {
|
|
7893
7870
|
var i = l === n.id,
|
|
7894
|
-
a =
|
|
7871
|
+
a = Lc(n.id, f, r, c);
|
|
7895
7872
|
return (0, t.jsx)("button", {
|
|
7896
7873
|
"aria-pressed": i,
|
|
7897
7874
|
className: H(q.item, i && q.selected, a === "correct" && q.correct, a === "incorrect" && q.incorrect, a === "unanswered" && q.unanswered),
|
|
@@ -7965,21 +7942,21 @@ function Fc(_ref112) {
|
|
|
7965
7942
|
})
|
|
7966
7943
|
})]
|
|
7967
7944
|
}), c ? (0, t.jsx)(K, {
|
|
7968
|
-
groups:
|
|
7945
|
+
groups: Fc(r),
|
|
7969
7946
|
title: i.standardAnswer
|
|
7970
7947
|
}) : null]
|
|
7971
7948
|
});
|
|
7972
7949
|
}
|
|
7973
|
-
function
|
|
7950
|
+
function Lc(e, t, n, r) {
|
|
7974
7951
|
var i, a;
|
|
7975
7952
|
var o = (i = t[e]) == null ? "" : i,
|
|
7976
7953
|
s = (a = n.answers[e]) == null ? "" : a;
|
|
7977
7954
|
if (!(!r || !s)) return o ? s === o ? "correct" : "incorrect" : "unanswered";
|
|
7978
7955
|
}
|
|
7979
|
-
function
|
|
7956
|
+
function Rc(e, t) {
|
|
7980
7957
|
return Ge(e, t.categories, t.items);
|
|
7981
7958
|
}
|
|
7982
|
-
function
|
|
7959
|
+
function zc(_ref115) {
|
|
7983
7960
|
var e = _ref115.className,
|
|
7984
7961
|
n = _ref115.content,
|
|
7985
7962
|
r = _ref115.renderBlank;
|
|
@@ -7987,7 +7964,7 @@ function Rc(_ref115) {
|
|
|
7987
7964
|
return (0, t.jsx)("div", {
|
|
7988
7965
|
className: [W["rich-content"], e == null ? "" : e].filter(Boolean).join(" "),
|
|
7989
7966
|
children: n.json.map(function (e, t) {
|
|
7990
|
-
return
|
|
7967
|
+
return Bc(e, {
|
|
7991
7968
|
blankIndexes: i,
|
|
7992
7969
|
key: "node-".concat(t),
|
|
7993
7970
|
renderBlank: r
|
|
@@ -7995,17 +7972,17 @@ function Rc(_ref115) {
|
|
|
7995
7972
|
})
|
|
7996
7973
|
});
|
|
7997
7974
|
}
|
|
7998
|
-
function
|
|
7975
|
+
function Bc(e, r) {
|
|
7999
7976
|
if (_typeof(e.text) == "string") return (0, t.jsx)(n.Fragment, {
|
|
8000
7977
|
children: e.text
|
|
8001
7978
|
}, r.key);
|
|
8002
7979
|
if (e.type === "blank") return (0, t.jsx)(n.Fragment, {
|
|
8003
|
-
children:
|
|
7980
|
+
children: Vc(e, r)
|
|
8004
7981
|
}, r.key);
|
|
8005
|
-
var i =
|
|
7982
|
+
var i = Uc(e.children, r);
|
|
8006
7983
|
switch (e.type) {
|
|
8007
7984
|
case "heading":
|
|
8008
|
-
return
|
|
7985
|
+
return Wc(e, i, r.key);
|
|
8009
7986
|
case "table":
|
|
8010
7987
|
return (0, t.jsx)("table", {
|
|
8011
7988
|
children: i
|
|
@@ -8024,29 +8001,29 @@ function zc(e, r) {
|
|
|
8024
8001
|
}, r.key);
|
|
8025
8002
|
}
|
|
8026
8003
|
}
|
|
8027
|
-
function
|
|
8028
|
-
var n =
|
|
8029
|
-
r =
|
|
8004
|
+
function Vc(e, t) {
|
|
8005
|
+
var n = Gc(e.blankId),
|
|
8006
|
+
r = Hc(t.blankIndexes, n);
|
|
8030
8007
|
return t.renderBlank({
|
|
8031
8008
|
blankId: n,
|
|
8032
8009
|
index: r,
|
|
8033
|
-
label:
|
|
8010
|
+
label: Gc(e.label)
|
|
8034
8011
|
});
|
|
8035
8012
|
}
|
|
8036
|
-
function
|
|
8013
|
+
function Hc(e, t) {
|
|
8037
8014
|
var n = e.get(t);
|
|
8038
8015
|
if (n !== void 0) return n;
|
|
8039
8016
|
var r = e.size;
|
|
8040
8017
|
return e.set(t, r), r;
|
|
8041
8018
|
}
|
|
8042
|
-
function
|
|
8019
|
+
function Uc(e, t) {
|
|
8043
8020
|
return (e == null ? [] : e).map(function (e, n) {
|
|
8044
|
-
return
|
|
8021
|
+
return Bc(e, C(C({}, t), {}, {
|
|
8045
8022
|
key: "".concat(t.key, "-").concat(n)
|
|
8046
8023
|
}));
|
|
8047
8024
|
});
|
|
8048
8025
|
}
|
|
8049
|
-
function
|
|
8026
|
+
function Wc(e, n, r) {
|
|
8050
8027
|
switch (e.level) {
|
|
8051
8028
|
case 1:
|
|
8052
8029
|
return (0, t.jsx)("h1", {
|
|
@@ -8066,7 +8043,7 @@ function Uc(e, n, r) {
|
|
|
8066
8043
|
}, r);
|
|
8067
8044
|
}
|
|
8068
8045
|
}
|
|
8069
|
-
function
|
|
8046
|
+
function Gc(e) {
|
|
8070
8047
|
return _typeof(e) == "string" ? e : "";
|
|
8071
8048
|
}
|
|
8072
8049
|
var J = {
|
|
@@ -8085,17 +8062,17 @@ var J = {
|
|
|
8085
8062
|
"per-blank-candidate-list": "_per-blank-candidate-list_2je8q_140",
|
|
8086
8063
|
selected: "_selected_2je8q_161"
|
|
8087
8064
|
};
|
|
8088
|
-
function
|
|
8065
|
+
function Kc(_ref116) {
|
|
8089
8066
|
var e = _ref116.answers,
|
|
8090
8067
|
n = _ref116.disabled,
|
|
8091
8068
|
r = _ref116.item,
|
|
8092
8069
|
i = _ref116.messages,
|
|
8093
8070
|
a = _ref116.onAnswerChange,
|
|
8094
8071
|
o = _ref116.structure;
|
|
8095
|
-
return (0, t.jsx)(
|
|
8072
|
+
return (0, t.jsx)(zc, {
|
|
8096
8073
|
content: r.content,
|
|
8097
8074
|
renderBlank: function renderBlank(t) {
|
|
8098
|
-
return
|
|
8075
|
+
return qc(t, {
|
|
8099
8076
|
answers: e,
|
|
8100
8077
|
blankLabel: i.blankLabel,
|
|
8101
8078
|
disabled: n,
|
|
@@ -8106,12 +8083,12 @@ function Gc(_ref116) {
|
|
|
8106
8083
|
}
|
|
8107
8084
|
});
|
|
8108
8085
|
}
|
|
8109
|
-
function
|
|
8086
|
+
function qc(e, n) {
|
|
8110
8087
|
var r = e.blankId,
|
|
8111
8088
|
i = n.item.blanks.indexOf(r),
|
|
8112
|
-
a =
|
|
8089
|
+
a = $c(e.label, n.blankLabel, i);
|
|
8113
8090
|
if (n.structure.config.candidateMode === "none") {
|
|
8114
|
-
var _e2 =
|
|
8091
|
+
var _e2 = Yc(n.answers, r);
|
|
8115
8092
|
return (0, t.jsx)("input", {
|
|
8116
8093
|
"aria-label": a,
|
|
8117
8094
|
className: J["inline-input"],
|
|
@@ -8125,9 +8102,9 @@ function Kc(e, n) {
|
|
|
8125
8102
|
value: (_e2 == null ? void 0 : _e2.kind) === "text" ? _e2.value : ""
|
|
8126
8103
|
});
|
|
8127
8104
|
}
|
|
8128
|
-
if (n.structure.config.candidateMode === "sharedPool") return
|
|
8129
|
-
var o =
|
|
8130
|
-
s =
|
|
8105
|
+
if (n.structure.config.candidateMode === "sharedPool") return Jc(r, a, n);
|
|
8106
|
+
var o = Yc(n.answers, r),
|
|
8107
|
+
s = Zc(n.item, r, n.structure.config.candidateMode, o);
|
|
8131
8108
|
return (0, t.jsx)("span", {
|
|
8132
8109
|
"aria-label": a,
|
|
8133
8110
|
className: J["inline-blank-underline"],
|
|
@@ -8137,11 +8114,11 @@ function Kc(e, n) {
|
|
|
8137
8114
|
}) : a
|
|
8138
8115
|
});
|
|
8139
8116
|
}
|
|
8140
|
-
function
|
|
8117
|
+
function Jc(e, n, r) {
|
|
8141
8118
|
var i, a;
|
|
8142
|
-
var o =
|
|
8119
|
+
var o = Yc(r.answers, e),
|
|
8143
8120
|
s = (i = ((o == null ? void 0 : o.kind) === "option" ? o.optionIds : []).slice(0, 1)[0]) == null ? "" : i,
|
|
8144
|
-
c =
|
|
8121
|
+
c = Qc(r.answers, e);
|
|
8145
8122
|
return (0, t.jsxs)("select", {
|
|
8146
8123
|
"aria-label": n,
|
|
8147
8124
|
className: J["inline-select"],
|
|
@@ -8165,7 +8142,7 @@ function qc(e, n, r) {
|
|
|
8165
8142
|
})]
|
|
8166
8143
|
});
|
|
8167
8144
|
}
|
|
8168
|
-
function
|
|
8145
|
+
function Yc(e, t) {
|
|
8169
8146
|
var n;
|
|
8170
8147
|
return (n = Object.entries(e).find(function (_ref117) {
|
|
8171
8148
|
var _ref118 = _slicedToArray(_ref117, 1),
|
|
@@ -8173,7 +8150,7 @@ function Jc(e, t) {
|
|
|
8173
8150
|
return e === t;
|
|
8174
8151
|
})) == null ? void 0 : n[1];
|
|
8175
8152
|
}
|
|
8176
|
-
function
|
|
8153
|
+
function Xc(e, t, n) {
|
|
8177
8154
|
var r, i;
|
|
8178
8155
|
if (n === "sharedPool") {
|
|
8179
8156
|
var a;
|
|
@@ -8183,13 +8160,13 @@ function Yc(e, t, n) {
|
|
|
8183
8160
|
return e.blankId === t;
|
|
8184
8161
|
})) == null ? void 0 : i.options) == null ? [] : r;
|
|
8185
8162
|
}
|
|
8186
|
-
function
|
|
8163
|
+
function Zc(e, t, n, r) {
|
|
8187
8164
|
var i = (r == null ? void 0 : r.kind) === "option" ? r.optionIds[0] : void 0;
|
|
8188
|
-
if (i) return
|
|
8165
|
+
if (i) return Xc(e, t, n).find(function (e) {
|
|
8189
8166
|
return e.optionId === i;
|
|
8190
8167
|
});
|
|
8191
8168
|
}
|
|
8192
|
-
function
|
|
8169
|
+
function Qc(e, t) {
|
|
8193
8170
|
var n = new Set(),
|
|
8194
8171
|
r = Object.entries(e);
|
|
8195
8172
|
for (var _i2 = 0, _r6 = r; _i2 < _r6.length; _i2++) {
|
|
@@ -8213,10 +8190,10 @@ function Zc(e, t) {
|
|
|
8213
8190
|
}
|
|
8214
8191
|
return n;
|
|
8215
8192
|
}
|
|
8216
|
-
function
|
|
8193
|
+
function $c(e, t, n) {
|
|
8217
8194
|
return e || "".concat(t, " ").concat(n + 1);
|
|
8218
8195
|
}
|
|
8219
|
-
function
|
|
8196
|
+
function el(_ref119) {
|
|
8220
8197
|
var e = _ref119.disabled,
|
|
8221
8198
|
n = _ref119.element,
|
|
8222
8199
|
r = _ref119.item,
|
|
@@ -8226,8 +8203,8 @@ function $c(_ref119) {
|
|
|
8226
8203
|
s = _ref119.responseIndex,
|
|
8227
8204
|
c = _ref119.showAnswer;
|
|
8228
8205
|
var l = vn(r, n, !0),
|
|
8229
|
-
u =
|
|
8230
|
-
d =
|
|
8206
|
+
u = Ec(l),
|
|
8207
|
+
d = Rs(o, s, n, l.blanks),
|
|
8231
8208
|
f = u.map(function (e, n) {
|
|
8232
8209
|
return {
|
|
8233
8210
|
kind: "detailed",
|
|
@@ -8236,7 +8213,7 @@ function $c(_ref119) {
|
|
|
8236
8213
|
content: e
|
|
8237
8214
|
}, "group-".concat(n, "-answer-").concat(r));
|
|
8238
8215
|
}),
|
|
8239
|
-
marker:
|
|
8216
|
+
marker: bc(e.blankIds, l.blanks, i.blankLabel)
|
|
8240
8217
|
};
|
|
8241
8218
|
});
|
|
8242
8219
|
function p(e, t) {
|
|
@@ -8246,14 +8223,14 @@ function $c(_ref119) {
|
|
|
8246
8223
|
}
|
|
8247
8224
|
return (0, t.jsxs)("div", {
|
|
8248
8225
|
className: U["fill-text"],
|
|
8249
|
-
children: [(0, t.jsx)(
|
|
8226
|
+
children: [(0, t.jsx)(Kc, {
|
|
8250
8227
|
answers: d.answers,
|
|
8251
8228
|
disabled: e,
|
|
8252
8229
|
item: l,
|
|
8253
8230
|
messages: i,
|
|
8254
8231
|
onAnswerChange: p,
|
|
8255
8232
|
structure: n
|
|
8256
|
-
}),
|
|
8233
|
+
}), tl(l, n.config.candidateMode, i.candidateOptions), nl({
|
|
8257
8234
|
disabled: e,
|
|
8258
8235
|
item: l,
|
|
8259
8236
|
onAnswerChange: p,
|
|
@@ -8264,7 +8241,7 @@ function $c(_ref119) {
|
|
|
8264
8241
|
}) : null]
|
|
8265
8242
|
});
|
|
8266
8243
|
}
|
|
8267
|
-
function
|
|
8244
|
+
function tl(e, n, r) {
|
|
8268
8245
|
var i;
|
|
8269
8246
|
var a = (i = e.candidateOptions) == null ? [] : i;
|
|
8270
8247
|
return n !== "sharedPool" || a.length === 0 ? null : (0, t.jsxs)("div", {
|
|
@@ -8286,7 +8263,7 @@ function el(e, n, r) {
|
|
|
8286
8263
|
})]
|
|
8287
8264
|
});
|
|
8288
8265
|
}
|
|
8289
|
-
function
|
|
8266
|
+
function nl(_ref120) {
|
|
8290
8267
|
var e = _ref120.disabled,
|
|
8291
8268
|
n = _ref120.item,
|
|
8292
8269
|
r = _ref120.onAnswerChange,
|
|
@@ -8306,7 +8283,7 @@ function tl(_ref120) {
|
|
|
8306
8283
|
children: a.map(function (_ref121) {
|
|
8307
8284
|
var t = _ref121.group,
|
|
8308
8285
|
n = _ref121.marker;
|
|
8309
|
-
return
|
|
8286
|
+
return rl({
|
|
8310
8287
|
disabled: e,
|
|
8311
8288
|
group: t,
|
|
8312
8289
|
marker: n,
|
|
@@ -8316,7 +8293,7 @@ function tl(_ref120) {
|
|
|
8316
8293
|
})
|
|
8317
8294
|
});
|
|
8318
8295
|
}
|
|
8319
|
-
function
|
|
8296
|
+
function rl(_ref122) {
|
|
8320
8297
|
var e = _ref122.disabled,
|
|
8321
8298
|
n = _ref122.group,
|
|
8322
8299
|
r = _ref122.marker,
|
|
@@ -8332,7 +8309,7 @@ function nl(_ref122) {
|
|
|
8332
8309
|
}), (0, t.jsx)("div", {
|
|
8333
8310
|
className: J["per-blank-candidate-list"],
|
|
8334
8311
|
children: n.options.map(function (t) {
|
|
8335
|
-
return
|
|
8312
|
+
return il({
|
|
8336
8313
|
activeAnswer: o,
|
|
8337
8314
|
blankId: n.blankId,
|
|
8338
8315
|
disabled: e,
|
|
@@ -8343,7 +8320,7 @@ function nl(_ref122) {
|
|
|
8343
8320
|
})]
|
|
8344
8321
|
}, n.blankId);
|
|
8345
8322
|
}
|
|
8346
|
-
function
|
|
8323
|
+
function il(_ref123) {
|
|
8347
8324
|
var e = _ref123.activeAnswer,
|
|
8348
8325
|
n = _ref123.blankId,
|
|
8349
8326
|
r = _ref123.disabled,
|
|
@@ -8356,7 +8333,7 @@ function rl(_ref123) {
|
|
|
8356
8333
|
"data-selected": o ? "true" : void 0,
|
|
8357
8334
|
disabled: r,
|
|
8358
8335
|
onClick: function onClick() {
|
|
8359
|
-
return i(n,
|
|
8336
|
+
return i(n, Xs(e, a.optionId, "single"));
|
|
8360
8337
|
},
|
|
8361
8338
|
type: "button",
|
|
8362
8339
|
children: (0, t.jsx)(G, {
|
|
@@ -8365,19 +8342,19 @@ function rl(_ref123) {
|
|
|
8365
8342
|
}, a.optionId);
|
|
8366
8343
|
}
|
|
8367
8344
|
var Y = {
|
|
8368
|
-
"choice-button": "_choice-
|
|
8369
|
-
"table-row-button": "_table-row-
|
|
8370
|
-
"judgement-button": "_judgement-
|
|
8371
|
-
"ordering-controls": "_ordering-
|
|
8372
|
-
"ordering-button": "_ordering-
|
|
8373
|
-
"choice-option": "_choice-
|
|
8374
|
-
"table-choice-row": "_table-choice-
|
|
8375
|
-
"judgement-option": "_judgement-
|
|
8376
|
-
selected: "
|
|
8377
|
-
"option-marker": "_option-
|
|
8378
|
-
"table-option-marker": "_table-option-
|
|
8345
|
+
"choice-button": "_choice-button_3nny2_1",
|
|
8346
|
+
"table-row-button": "_table-row-button_3nny2_2",
|
|
8347
|
+
"judgement-button": "_judgement-button_3nny2_28",
|
|
8348
|
+
"ordering-controls": "_ordering-controls_3nny2_43",
|
|
8349
|
+
"ordering-button": "_ordering-button_3nny2_51",
|
|
8350
|
+
"choice-option": "_choice-option_3nny2_68",
|
|
8351
|
+
"table-choice-row": "_table-choice-row_3nny2_73",
|
|
8352
|
+
"judgement-option": "_judgement-option_3nny2_77",
|
|
8353
|
+
selected: "_selected_3nny2_81",
|
|
8354
|
+
"option-marker": "_option-marker_3nny2_86",
|
|
8355
|
+
"table-option-marker": "_table-option-marker_3nny2_87"
|
|
8379
8356
|
};
|
|
8380
|
-
function
|
|
8357
|
+
function al(_ref124) {
|
|
8381
8358
|
var e = _ref124.disabled,
|
|
8382
8359
|
n = _ref124.element,
|
|
8383
8360
|
r = _ref124.item,
|
|
@@ -8386,7 +8363,7 @@ function il(_ref124) {
|
|
|
8386
8363
|
o = _ref124.response,
|
|
8387
8364
|
s = _ref124.responseIndex,
|
|
8388
8365
|
c = _ref124.showAnswer;
|
|
8389
|
-
var l =
|
|
8366
|
+
var l = Bs(o, s),
|
|
8390
8367
|
u = tn(n.config.judgeAnswerMode),
|
|
8391
8368
|
d = [{
|
|
8392
8369
|
kind: "detailed",
|
|
@@ -8427,8 +8404,8 @@ function il(_ref124) {
|
|
|
8427
8404
|
}) : null]
|
|
8428
8405
|
});
|
|
8429
8406
|
}
|
|
8430
|
-
function
|
|
8431
|
-
var n =
|
|
8407
|
+
function ol(e) {
|
|
8408
|
+
var n = sl(e);
|
|
8432
8409
|
return e.columns.reduce(function (r, i, a) {
|
|
8433
8410
|
var o = i.items.map(function (r, o) {
|
|
8434
8411
|
var s;
|
|
@@ -8450,7 +8427,7 @@ function al(e) {
|
|
|
8450
8427
|
return [].concat(_toConsumableArray(r), _toConsumableArray(o));
|
|
8451
8428
|
}, []);
|
|
8452
8429
|
}
|
|
8453
|
-
function
|
|
8430
|
+
function sl(e) {
|
|
8454
8431
|
return e.columns.reduce(function (e, t, n) {
|
|
8455
8432
|
return t.items.forEach(function (t) {
|
|
8456
8433
|
return e.set(t.itemId, {
|
|
@@ -8460,7 +8437,7 @@ function ol(e) {
|
|
|
8460
8437
|
}), e;
|
|
8461
8438
|
}, new Map());
|
|
8462
8439
|
}
|
|
8463
|
-
function
|
|
8440
|
+
function cl(_ref126) {
|
|
8464
8441
|
var e = _ref126.disabled,
|
|
8465
8442
|
r = _ref126.item,
|
|
8466
8443
|
i = _ref126.messages,
|
|
@@ -8478,7 +8455,7 @@ function sl(_ref126) {
|
|
|
8478
8455
|
f = _ref130[1],
|
|
8479
8456
|
p = (0, n.useRef)(null),
|
|
8480
8457
|
m = (0, n.useRef)(new Map()),
|
|
8481
|
-
h =
|
|
8458
|
+
h = Hs(o, s),
|
|
8482
8459
|
g = {
|
|
8483
8460
|
gridTemplateColumns: "repeat(".concat(r.columns.length, ", minmax(12rem, 1fr))")
|
|
8484
8461
|
},
|
|
@@ -8555,7 +8532,7 @@ function sl(_ref126) {
|
|
|
8555
8532
|
}) : null;
|
|
8556
8533
|
if (r) {
|
|
8557
8534
|
a(C(C({}, h), {}, {
|
|
8558
|
-
connections:
|
|
8535
|
+
connections: Zs(h.connections, r.fromItemId, r.toItemId)
|
|
8559
8536
|
})), u(null);
|
|
8560
8537
|
return;
|
|
8561
8538
|
}
|
|
@@ -8626,12 +8603,12 @@ function sl(_ref126) {
|
|
|
8626
8603
|
})
|
|
8627
8604
|
})]
|
|
8628
8605
|
}), c ? (0, t.jsx)(K, {
|
|
8629
|
-
groups:
|
|
8606
|
+
groups: ol(r),
|
|
8630
8607
|
title: i.standardAnswer
|
|
8631
8608
|
}) : null]
|
|
8632
8609
|
});
|
|
8633
8610
|
}
|
|
8634
|
-
function
|
|
8611
|
+
function ll(e) {
|
|
8635
8612
|
var n, r;
|
|
8636
8613
|
var i = e.columns[0],
|
|
8637
8614
|
a = e.columns[1],
|
|
@@ -8654,7 +8631,7 @@ function cl(e) {
|
|
|
8654
8631
|
};
|
|
8655
8632
|
});
|
|
8656
8633
|
}
|
|
8657
|
-
var
|
|
8634
|
+
var ul = {
|
|
8658
8635
|
board: "_board_1q6ar_1",
|
|
8659
8636
|
"matched-rows": "_matched-rows_1q6ar_6",
|
|
8660
8637
|
"matched-row": "_matched-row_1q6ar_6",
|
|
@@ -8665,7 +8642,7 @@ var ll = {
|
|
|
8665
8642
|
matched: "_matched_1q6ar_6",
|
|
8666
8643
|
marker: "_marker_1q6ar_66"
|
|
8667
8644
|
};
|
|
8668
|
-
function
|
|
8645
|
+
function dl(_ref131) {
|
|
8669
8646
|
var e = _ref131.disabled,
|
|
8670
8647
|
r = _ref131.item,
|
|
8671
8648
|
i = _ref131.messages,
|
|
@@ -8677,8 +8654,8 @@ function ul(_ref131) {
|
|
|
8677
8654
|
_ref133 = _slicedToArray(_ref132, 2),
|
|
8678
8655
|
l = _ref133[0],
|
|
8679
8656
|
u = _ref133[1],
|
|
8680
|
-
d =
|
|
8681
|
-
f =
|
|
8657
|
+
d = Us(o, s),
|
|
8658
|
+
f = fl(r, d.connections);
|
|
8682
8659
|
function p(t, n) {
|
|
8683
8660
|
if (e) return;
|
|
8684
8661
|
var r = l ? ct(l, {
|
|
@@ -8687,7 +8664,7 @@ function ul(_ref131) {
|
|
|
8687
8664
|
}) : null;
|
|
8688
8665
|
if (r) {
|
|
8689
8666
|
a(C(C({}, d), {}, {
|
|
8690
|
-
connections:
|
|
8667
|
+
connections: Qs(d.connections, r.fromItemId, r.toItemId)
|
|
8691
8668
|
})), u(null);
|
|
8692
8669
|
return;
|
|
8693
8670
|
}
|
|
@@ -8700,7 +8677,7 @@ function ul(_ref131) {
|
|
|
8700
8677
|
var i = (l == null ? void 0 : l.itemId) === n.item.itemId;
|
|
8701
8678
|
return (0, t.jsxs)("button", {
|
|
8702
8679
|
"aria-pressed": i,
|
|
8703
|
-
className: H(
|
|
8680
|
+
className: H(ul.item, i && ul.selected, r && ul.matched),
|
|
8704
8681
|
"data-testid": "matching-player-item-".concat(n.item.itemId),
|
|
8705
8682
|
disabled: e,
|
|
8706
8683
|
onClick: function onClick() {
|
|
@@ -8708,7 +8685,7 @@ function ul(_ref131) {
|
|
|
8708
8685
|
},
|
|
8709
8686
|
type: "button",
|
|
8710
8687
|
children: [n.marker ? (0, t.jsx)("span", {
|
|
8711
|
-
className:
|
|
8688
|
+
className: ul.marker,
|
|
8712
8689
|
children: n.marker
|
|
8713
8690
|
}) : null, (0, t.jsx)(G, {
|
|
8714
8691
|
content: n.item.content
|
|
@@ -8718,12 +8695,12 @@ function ul(_ref131) {
|
|
|
8718
8695
|
return (0, t.jsxs)("div", {
|
|
8719
8696
|
className: W.element,
|
|
8720
8697
|
children: [(0, t.jsxs)("div", {
|
|
8721
|
-
className:
|
|
8698
|
+
className: ul.board,
|
|
8722
8699
|
children: [f.rows.length > 0 ? (0, t.jsx)("div", {
|
|
8723
|
-
className:
|
|
8700
|
+
className: ul["matched-rows"],
|
|
8724
8701
|
children: f.rows.map(function (e) {
|
|
8725
8702
|
return (0, t.jsxs)("div", {
|
|
8726
|
-
className:
|
|
8703
|
+
className: ul["matched-row"],
|
|
8727
8704
|
"data-testid": "matching-player-row-".concat(e.from.item.itemId, "-").concat(e.to.item.itemId),
|
|
8728
8705
|
children: [m(e.from, !0), m(e.to, !0)]
|
|
8729
8706
|
}, "".concat(e.from.item.itemId, "-").concat(e.to.item.itemId));
|
|
@@ -8731,11 +8708,11 @@ function ul(_ref131) {
|
|
|
8731
8708
|
}) : null, f.unmatchedColumns.some(function (e) {
|
|
8732
8709
|
return e.length > 0;
|
|
8733
8710
|
}) ? (0, t.jsx)("div", {
|
|
8734
|
-
className:
|
|
8711
|
+
className: ul.columns,
|
|
8735
8712
|
children: f.unmatchedColumns.map(function (e, n) {
|
|
8736
8713
|
var i, a;
|
|
8737
8714
|
return (0, t.jsx)("section", {
|
|
8738
|
-
className:
|
|
8715
|
+
className: ul.column,
|
|
8739
8716
|
children: e.map(function (e) {
|
|
8740
8717
|
return m(e, !1);
|
|
8741
8718
|
})
|
|
@@ -8743,12 +8720,12 @@ function ul(_ref131) {
|
|
|
8743
8720
|
})
|
|
8744
8721
|
}) : null]
|
|
8745
8722
|
}), c ? (0, t.jsx)(K, {
|
|
8746
|
-
groups:
|
|
8723
|
+
groups: ll(r),
|
|
8747
8724
|
title: i.standardAnswer
|
|
8748
8725
|
}) : null]
|
|
8749
8726
|
});
|
|
8750
8727
|
}
|
|
8751
|
-
function
|
|
8728
|
+
function fl(e, t) {
|
|
8752
8729
|
var n;
|
|
8753
8730
|
var r = e.columns.map(function (e, t) {
|
|
8754
8731
|
return e.items.map(function (n, r) {
|
|
@@ -8786,7 +8763,7 @@ function dl(e, t) {
|
|
|
8786
8763
|
})
|
|
8787
8764
|
};
|
|
8788
8765
|
}
|
|
8789
|
-
function
|
|
8766
|
+
function pl(e, t) {
|
|
8790
8767
|
return an(t, e.config.optionLabelStyle).map(function (e) {
|
|
8791
8768
|
return {
|
|
8792
8769
|
kind: "markerOnly",
|
|
@@ -8794,39 +8771,118 @@ function fl(e, t) {
|
|
|
8794
8771
|
};
|
|
8795
8772
|
});
|
|
8796
8773
|
}
|
|
8797
|
-
|
|
8774
|
+
function ml(_ref134) {
|
|
8775
|
+
var e = _ref134.availableWidth,
|
|
8776
|
+
t = _ref134.columnGap,
|
|
8777
|
+
n = _ref134.optionCount,
|
|
8778
|
+
r = _ref134.widestOptionWidth;
|
|
8779
|
+
var i = Math.max(1, Math.trunc(n));
|
|
8780
|
+
if (e <= 0 || r <= 0) return 1;
|
|
8781
|
+
for (var _n5 = i; _n5 >= 2; --_n5) if (i % _n5 === 0 && (e - Math.max(0, t) * (_n5 - 1)) / _n5 >= r) return _n5;
|
|
8782
|
+
return 1;
|
|
8783
|
+
}
|
|
8784
|
+
var hl = {
|
|
8785
|
+
list: "_list_1xo1n_1"
|
|
8786
|
+
};
|
|
8787
|
+
function gl(_ref135) {
|
|
8788
|
+
var e = _ref135.children;
|
|
8789
|
+
var r = (0, n.useRef)(null),
|
|
8790
|
+
_ref136 = (0, n.useState)(1),
|
|
8791
|
+
_ref137 = _slicedToArray(_ref136, 2),
|
|
8792
|
+
i = _ref137[0],
|
|
8793
|
+
a = _ref137[1],
|
|
8794
|
+
o = {
|
|
8795
|
+
gridTemplateColumns: "repeat(".concat(i, ", minmax(0, 1fr))")
|
|
8796
|
+
};
|
|
8797
|
+
return (0, n.useLayoutEffect)(function () {
|
|
8798
|
+
if (!r.current) return;
|
|
8799
|
+
var t = r.current,
|
|
8800
|
+
i = null;
|
|
8801
|
+
function o() {
|
|
8802
|
+
var r = t.getBoundingClientRect().width,
|
|
8803
|
+
i = Number.parseFloat(getComputedStyle(t).columnGap) || 0,
|
|
8804
|
+
o = _l(t),
|
|
8805
|
+
s = ml({
|
|
8806
|
+
availableWidth: r,
|
|
8807
|
+
columnGap: i,
|
|
8808
|
+
optionCount: n.Children.count(e),
|
|
8809
|
+
widestOptionWidth: o
|
|
8810
|
+
});
|
|
8811
|
+
a(function (e) {
|
|
8812
|
+
return e === s ? e : s;
|
|
8813
|
+
});
|
|
8814
|
+
}
|
|
8815
|
+
function s() {
|
|
8816
|
+
i !== null && cancelAnimationFrame(i), i = requestAnimationFrame(o);
|
|
8817
|
+
}
|
|
8818
|
+
if (o(), t.addEventListener("load", s, !0), (typeof ResizeObserver === "undefined" ? "undefined" : _typeof(ResizeObserver)) > "u") return window.addEventListener("resize", s), function () {
|
|
8819
|
+
i !== null && cancelAnimationFrame(i), t.removeEventListener("load", s, !0), window.removeEventListener("resize", s);
|
|
8820
|
+
};
|
|
8821
|
+
var c = new ResizeObserver(s);
|
|
8822
|
+
return c.observe(t), function () {
|
|
8823
|
+
i !== null && cancelAnimationFrame(i), t.removeEventListener("load", s, !0), c.disconnect();
|
|
8824
|
+
};
|
|
8825
|
+
}), (0, t.jsx)("ol", {
|
|
8826
|
+
className: "".concat(W["option-list"], " ").concat(hl.list),
|
|
8827
|
+
"data-column-count": i,
|
|
8828
|
+
"data-question-option-grid": "true",
|
|
8829
|
+
ref: r,
|
|
8830
|
+
style: o,
|
|
8831
|
+
children: e
|
|
8832
|
+
});
|
|
8833
|
+
}
|
|
8834
|
+
function _l(e) {
|
|
8835
|
+
var t = e.parentElement;
|
|
8836
|
+
if (!t || e.children.length === 0) return 0;
|
|
8837
|
+
var n = e.cloneNode(!1);
|
|
8838
|
+
n.removeAttribute("style"), n.setAttribute("aria-hidden", "true"), n.setAttribute("data-question-option-measurement", "true"), Object.assign(n.style, {
|
|
8839
|
+
display: "grid",
|
|
8840
|
+
gridTemplateColumns: "max-content",
|
|
8841
|
+
left: "-100000px",
|
|
8842
|
+
maxWidth: "none",
|
|
8843
|
+
pointerEvents: "none",
|
|
8844
|
+
position: "fixed",
|
|
8845
|
+
visibility: "hidden",
|
|
8846
|
+
width: "max-content"
|
|
8847
|
+
}), Array.from(e.children).forEach(function (e) {
|
|
8848
|
+
n.append(e.cloneNode(!0));
|
|
8849
|
+
}), t.append(n);
|
|
8850
|
+
var r = n.getBoundingClientRect().width;
|
|
8851
|
+
return n.remove(), r;
|
|
8852
|
+
}
|
|
8853
|
+
var vl = {
|
|
8798
8854
|
"table-wrap": "_table-wrap_n67ah_1",
|
|
8799
8855
|
table: "_table_n67ah_1",
|
|
8800
8856
|
"table-option-column": "_table-option-column_n67ah_17",
|
|
8801
8857
|
"table-option-marker": "_table-option-marker_n67ah_45"
|
|
8802
8858
|
};
|
|
8803
|
-
function
|
|
8804
|
-
var e =
|
|
8805
|
-
n =
|
|
8806
|
-
r =
|
|
8807
|
-
i =
|
|
8808
|
-
a =
|
|
8809
|
-
o =
|
|
8810
|
-
s =
|
|
8811
|
-
c =
|
|
8812
|
-
var l =
|
|
8859
|
+
function yl(_ref138) {
|
|
8860
|
+
var e = _ref138.disabled,
|
|
8861
|
+
n = _ref138.element,
|
|
8862
|
+
r = _ref138.item,
|
|
8863
|
+
i = _ref138.messages,
|
|
8864
|
+
a = _ref138.onChange,
|
|
8865
|
+
o = _ref138.response,
|
|
8866
|
+
s = _ref138.responseIndex,
|
|
8867
|
+
c = _ref138.showAnswer;
|
|
8868
|
+
var l = Is(o, s),
|
|
8813
8869
|
u = rn(r, n.config.optionLabelStyle);
|
|
8814
8870
|
function d(e) {
|
|
8815
8871
|
a(C(C({}, l), {}, {
|
|
8816
|
-
selectedOptionIds:
|
|
8872
|
+
selectedOptionIds: Ys(l.selectedOptionIds, e, n.config.selectionType)
|
|
8817
8873
|
}));
|
|
8818
8874
|
}
|
|
8819
8875
|
if (n.config.renderer === "table") {
|
|
8820
|
-
var _a2 =
|
|
8876
|
+
var _a2 = pl(n, r);
|
|
8821
8877
|
return (0, t.jsxs)("div", {
|
|
8822
8878
|
className: W.element,
|
|
8823
8879
|
children: [(0, t.jsx)("div", {
|
|
8824
|
-
className:
|
|
8880
|
+
className: vl["table-wrap"],
|
|
8825
8881
|
children: (0, t.jsxs)("table", {
|
|
8826
|
-
className:
|
|
8882
|
+
className: vl.table,
|
|
8827
8883
|
children: [(0, t.jsxs)("colgroup", {
|
|
8828
8884
|
children: [(0, t.jsx)("col", {
|
|
8829
|
-
className:
|
|
8885
|
+
className: vl["table-option-column"]
|
|
8830
8886
|
}), r.columns.map(function (e) {
|
|
8831
8887
|
return (0, t.jsx)("col", {}, e.id);
|
|
8832
8888
|
})]
|
|
@@ -8889,11 +8945,10 @@ function ml(_ref134) {
|
|
|
8889
8945
|
}) : null]
|
|
8890
8946
|
});
|
|
8891
8947
|
}
|
|
8892
|
-
var f =
|
|
8948
|
+
var f = pl(n, r);
|
|
8893
8949
|
return (0, t.jsxs)("div", {
|
|
8894
8950
|
className: W.element,
|
|
8895
|
-
children: [(0, t.jsx)(
|
|
8896
|
-
className: W["option-list"],
|
|
8951
|
+
children: [(0, t.jsx)(gl, {
|
|
8897
8952
|
children: u.map(function (n) {
|
|
8898
8953
|
var r = l.selectedOptionIds.includes(n.optionId);
|
|
8899
8954
|
return (0, t.jsx)("li", {
|
|
@@ -8923,7 +8978,7 @@ function ml(_ref134) {
|
|
|
8923
8978
|
}) : null]
|
|
8924
8979
|
});
|
|
8925
8980
|
}
|
|
8926
|
-
function
|
|
8981
|
+
function bl(e) {
|
|
8927
8982
|
var n = new Map(e.sortOptions.map(function (e) {
|
|
8928
8983
|
return [e.id, e];
|
|
8929
8984
|
}));
|
|
@@ -8938,15 +8993,15 @@ function hl(e) {
|
|
|
8938
8993
|
};
|
|
8939
8994
|
});
|
|
8940
8995
|
}
|
|
8941
|
-
function
|
|
8942
|
-
var e =
|
|
8943
|
-
n =
|
|
8944
|
-
r =
|
|
8945
|
-
i =
|
|
8946
|
-
a =
|
|
8947
|
-
o =
|
|
8948
|
-
s =
|
|
8949
|
-
var c =
|
|
8996
|
+
function xl(_ref139) {
|
|
8997
|
+
var e = _ref139.disabled,
|
|
8998
|
+
n = _ref139.item,
|
|
8999
|
+
r = _ref139.messages,
|
|
9000
|
+
i = _ref139.onChange,
|
|
9001
|
+
a = _ref139.response,
|
|
9002
|
+
o = _ref139.responseIndex,
|
|
9003
|
+
s = _ref139.showAnswer;
|
|
9004
|
+
var c = Ws(a, o, n),
|
|
8950
9005
|
l = new Map(n.sortOptions.map(function (e) {
|
|
8951
9006
|
return [e.id, e];
|
|
8952
9007
|
})),
|
|
@@ -8957,7 +9012,7 @@ function gl(_ref135) {
|
|
|
8957
9012
|
});
|
|
8958
9013
|
function d(e, t) {
|
|
8959
9014
|
i(C(C({}, c), {}, {
|
|
8960
|
-
orderedOptionIds:
|
|
9015
|
+
orderedOptionIds: ec(c.orderedOptionIds, n, e, t)
|
|
8961
9016
|
}));
|
|
8962
9017
|
}
|
|
8963
9018
|
return (0, t.jsxs)("div", {
|
|
@@ -8997,12 +9052,12 @@ function gl(_ref135) {
|
|
|
8997
9052
|
}, n.id);
|
|
8998
9053
|
})
|
|
8999
9054
|
}), s ? (0, t.jsx)(K, {
|
|
9000
|
-
groups:
|
|
9055
|
+
groups: bl(n),
|
|
9001
9056
|
title: r.standardAnswer
|
|
9002
9057
|
}) : null]
|
|
9003
9058
|
});
|
|
9004
9059
|
}
|
|
9005
|
-
var
|
|
9060
|
+
var Sl = {
|
|
9006
9061
|
content: "_content_63948_1",
|
|
9007
9062
|
paragraph: "_paragraph_63948_10",
|
|
9008
9063
|
marker: "_marker_63948_14",
|
|
@@ -9010,17 +9065,17 @@ var _l = {
|
|
|
9010
9065
|
"marker-selected": "_marker-selected_63948_31",
|
|
9011
9066
|
"marker-answer": "_marker-answer_63948_37"
|
|
9012
9067
|
};
|
|
9013
|
-
function
|
|
9014
|
-
var
|
|
9015
|
-
e =
|
|
9016
|
-
r =
|
|
9017
|
-
|
|
9018
|
-
i =
|
|
9019
|
-
a =
|
|
9020
|
-
|
|
9021
|
-
o =
|
|
9022
|
-
|
|
9023
|
-
s =
|
|
9068
|
+
function Cl(_ref140) {
|
|
9069
|
+
var _ref140$answerMarkers = _ref140.answerMarkers,
|
|
9070
|
+
e = _ref140$answerMarkers === void 0 ? [] : _ref140$answerMarkers,
|
|
9071
|
+
r = _ref140.content,
|
|
9072
|
+
_ref140$disabled = _ref140.disabled,
|
|
9073
|
+
i = _ref140$disabled === void 0 ? !1 : _ref140$disabled,
|
|
9074
|
+
a = _ref140.onMarkerClick,
|
|
9075
|
+
_ref140$selectedMarke = _ref140.selectedMarkers,
|
|
9076
|
+
o = _ref140$selectedMarke === void 0 ? [] : _ref140$selectedMarke,
|
|
9077
|
+
_ref140$showAnswer = _ref140.showAnswer,
|
|
9078
|
+
s = _ref140$showAnswer === void 0 ? !1 : _ref140$showAnswer;
|
|
9024
9079
|
var c = r.json.length ? r.json : [{
|
|
9025
9080
|
children: [{
|
|
9026
9081
|
text: r.text
|
|
@@ -9028,19 +9083,19 @@ function vl(_ref136) {
|
|
|
9028
9083
|
type: "paragraph"
|
|
9029
9084
|
}];
|
|
9030
9085
|
return (0, t.jsx)("div", {
|
|
9031
|
-
className:
|
|
9086
|
+
className: Sl.content,
|
|
9032
9087
|
children: c.map(function (e, t) {
|
|
9033
9088
|
return l(e, "node-".concat(t));
|
|
9034
9089
|
})
|
|
9035
9090
|
});
|
|
9036
9091
|
function l(e, n) {
|
|
9037
|
-
if (
|
|
9038
|
-
if (!
|
|
9092
|
+
if (Tl(e)) return u(e, n);
|
|
9093
|
+
if (!wl(e)) return null;
|
|
9039
9094
|
var r = e.children.map(function (e, t) {
|
|
9040
9095
|
return l(e, "".concat(n, "-").concat(t));
|
|
9041
9096
|
});
|
|
9042
9097
|
return e.type === "paragraph" ? (0, t.jsx)("p", {
|
|
9043
|
-
className:
|
|
9098
|
+
className: Sl.paragraph,
|
|
9044
9099
|
children: r
|
|
9045
9100
|
}, n) : (0, t.jsx)("span", {
|
|
9046
9101
|
children: r
|
|
@@ -9059,7 +9114,7 @@ function vl(_ref136) {
|
|
|
9059
9114
|
r = s && e.includes(t);
|
|
9060
9115
|
return {
|
|
9061
9116
|
answer: r,
|
|
9062
|
-
className: Ba(
|
|
9117
|
+
className: Ba(Sl.marker, a ? Sl["marker-button"] : "", n ? Sl["marker-selected"] : "", r ? Sl["marker-answer"] : ""),
|
|
9063
9118
|
selected: n
|
|
9064
9119
|
};
|
|
9065
9120
|
}
|
|
@@ -9087,23 +9142,23 @@ function vl(_ref136) {
|
|
|
9087
9142
|
}, r);
|
|
9088
9143
|
}
|
|
9089
9144
|
}
|
|
9090
|
-
function
|
|
9145
|
+
function wl(e) {
|
|
9091
9146
|
return !!(e && _typeof(e) == "object" && "children" in e && Array.isArray(e.children));
|
|
9092
9147
|
}
|
|
9093
|
-
function
|
|
9148
|
+
function Tl(e) {
|
|
9094
9149
|
return !!(e && _typeof(e) == "object" && "text" in e && _typeof(e.text) == "string");
|
|
9095
9150
|
}
|
|
9096
|
-
function
|
|
9097
|
-
var e =
|
|
9098
|
-
n =
|
|
9099
|
-
r =
|
|
9151
|
+
function El(_ref141) {
|
|
9152
|
+
var e = _ref141.item,
|
|
9153
|
+
n = _ref141.messages,
|
|
9154
|
+
r = _ref141.showAnswer;
|
|
9100
9155
|
var i = yt(e.content.json).filter(function (t) {
|
|
9101
9156
|
return e.answers.includes(t.markerId);
|
|
9102
9157
|
}).map(function (e) {
|
|
9103
9158
|
return e.text;
|
|
9104
9159
|
});
|
|
9105
9160
|
return (0, t.jsxs)(t.Fragment, {
|
|
9106
|
-
children: [(0, t.jsx)(
|
|
9161
|
+
children: [(0, t.jsx)(Cl, {
|
|
9107
9162
|
answerMarkers: e.answers,
|
|
9108
9163
|
content: e.content,
|
|
9109
9164
|
showAnswer: r
|
|
@@ -9117,53 +9172,53 @@ function xl(_ref137) {
|
|
|
9117
9172
|
}) : null]
|
|
9118
9173
|
});
|
|
9119
9174
|
}
|
|
9120
|
-
function
|
|
9121
|
-
var e =
|
|
9122
|
-
n =
|
|
9123
|
-
r =
|
|
9124
|
-
i =
|
|
9125
|
-
a =
|
|
9126
|
-
o =
|
|
9127
|
-
s =
|
|
9128
|
-
var c =
|
|
9129
|
-
return s ? (0, t.jsx)(
|
|
9175
|
+
function Dl(_ref142) {
|
|
9176
|
+
var e = _ref142.disabled,
|
|
9177
|
+
n = _ref142.item,
|
|
9178
|
+
r = _ref142.messages,
|
|
9179
|
+
i = _ref142.onChange,
|
|
9180
|
+
a = _ref142.response,
|
|
9181
|
+
o = _ref142.responseIndex,
|
|
9182
|
+
s = _ref142.showAnswer;
|
|
9183
|
+
var c = Gs(a, o);
|
|
9184
|
+
return s ? (0, t.jsx)(El, {
|
|
9130
9185
|
item: n,
|
|
9131
9186
|
messages: r,
|
|
9132
9187
|
showAnswer: s
|
|
9133
|
-
}) : (0, t.jsx)(
|
|
9188
|
+
}) : (0, t.jsx)(Cl, {
|
|
9134
9189
|
answerMarkers: n.answers,
|
|
9135
9190
|
content: n.content,
|
|
9136
9191
|
disabled: e,
|
|
9137
9192
|
onMarkerClick: function onMarkerClick(e) {
|
|
9138
9193
|
return i(C(C({}, c), {}, {
|
|
9139
|
-
selectedMarkers:
|
|
9194
|
+
selectedMarkers: tc(c.selectedMarkers, e)
|
|
9140
9195
|
}));
|
|
9141
9196
|
},
|
|
9142
9197
|
selectedMarkers: c.selectedMarkers
|
|
9143
9198
|
});
|
|
9144
9199
|
}
|
|
9145
|
-
var
|
|
9200
|
+
var Ol = {
|
|
9146
9201
|
placeholder: "_placeholder_xde95_1"
|
|
9147
9202
|
};
|
|
9148
|
-
function
|
|
9149
|
-
var e =
|
|
9203
|
+
function kl(_ref143) {
|
|
9204
|
+
var e = _ref143.label;
|
|
9150
9205
|
return (0, t.jsx)("div", {
|
|
9151
9206
|
"aria-label": e,
|
|
9152
|
-
className:
|
|
9207
|
+
className: Ol.placeholder,
|
|
9153
9208
|
children: e
|
|
9154
9209
|
});
|
|
9155
9210
|
}
|
|
9156
|
-
function
|
|
9157
|
-
var e =
|
|
9158
|
-
n =
|
|
9159
|
-
r =
|
|
9160
|
-
i =
|
|
9161
|
-
a =
|
|
9162
|
-
o =
|
|
9163
|
-
s =
|
|
9164
|
-
c =
|
|
9165
|
-
var l =
|
|
9166
|
-
return e ? A(l.content) ? (0, t.jsx)(
|
|
9211
|
+
function Al(_ref144) {
|
|
9212
|
+
var e = _ref144.disabled,
|
|
9213
|
+
n = _ref144.locale,
|
|
9214
|
+
r = _ref144.label,
|
|
9215
|
+
i = _ref144.messages,
|
|
9216
|
+
a = _ref144.onChange,
|
|
9217
|
+
o = _ref144.response,
|
|
9218
|
+
s = _ref144.responseIndex,
|
|
9219
|
+
c = _ref144.uploadImage;
|
|
9220
|
+
var l = Ks(o, s);
|
|
9221
|
+
return e ? A(l.content) ? (0, t.jsx)(kl, {
|
|
9167
9222
|
label: i.textResponsePlaceholder
|
|
9168
9223
|
}) : (0, t.jsx)(G, {
|
|
9169
9224
|
content: l.content
|
|
@@ -9182,7 +9237,7 @@ function Tl(_ref140) {
|
|
|
9182
9237
|
value: l.content
|
|
9183
9238
|
});
|
|
9184
9239
|
}
|
|
9185
|
-
function
|
|
9240
|
+
function jl(e, n) {
|
|
9186
9241
|
return e.blanks.reduce(function (r, i) {
|
|
9187
9242
|
var a;
|
|
9188
9243
|
var o = (a = e.answers[i]) == null ? void 0 : a.trim();
|
|
@@ -9191,26 +9246,26 @@ function El(e, n) {
|
|
|
9191
9246
|
contents: [(0, t.jsx)(G, {
|
|
9192
9247
|
content: O(o)
|
|
9193
9248
|
}, "".concat(i, "-answer"))],
|
|
9194
|
-
marker:
|
|
9249
|
+
marker: bc([i], e.blanks, n)
|
|
9195
9250
|
}]) : r;
|
|
9196
9251
|
}, []);
|
|
9197
9252
|
}
|
|
9198
|
-
var
|
|
9253
|
+
var Ml = {
|
|
9199
9254
|
"word-builder-blank": "_word-builder-blank_ftw6q_1",
|
|
9200
9255
|
"word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
|
|
9201
9256
|
};
|
|
9202
|
-
function
|
|
9203
|
-
var e =
|
|
9204
|
-
n =
|
|
9205
|
-
r =
|
|
9206
|
-
i =
|
|
9207
|
-
a =
|
|
9208
|
-
o =
|
|
9209
|
-
s =
|
|
9210
|
-
c =
|
|
9257
|
+
function Nl(_ref145) {
|
|
9258
|
+
var e = _ref145.disabled,
|
|
9259
|
+
n = _ref145.element,
|
|
9260
|
+
r = _ref145.item,
|
|
9261
|
+
i = _ref145.messages,
|
|
9262
|
+
a = _ref145.onChange,
|
|
9263
|
+
o = _ref145.response,
|
|
9264
|
+
s = _ref145.responseIndex,
|
|
9265
|
+
c = _ref145.showAnswer;
|
|
9211
9266
|
var l = _n(r, !0, n),
|
|
9212
|
-
u =
|
|
9213
|
-
d =
|
|
9267
|
+
u = zs(o, s, l.blanks),
|
|
9268
|
+
d = jl(l, i.blankLabel);
|
|
9214
9269
|
function f(e, t) {
|
|
9215
9270
|
a(C(C({}, u), {}, {
|
|
9216
9271
|
answers: C(C({}, u.answers), {}, _defineProperty({}, e, t))
|
|
@@ -9239,15 +9294,15 @@ function Ol(_ref141) {
|
|
|
9239
9294
|
}
|
|
9240
9295
|
return (0, t.jsxs)("div", {
|
|
9241
9296
|
className: U["fill-text"],
|
|
9242
|
-
children: [(0, t.jsx)(
|
|
9297
|
+
children: [(0, t.jsx)(zc, {
|
|
9243
9298
|
content: l.content,
|
|
9244
|
-
renderBlank: function renderBlank(
|
|
9245
|
-
var n =
|
|
9246
|
-
r =
|
|
9247
|
-
a =
|
|
9299
|
+
renderBlank: function renderBlank(_ref146) {
|
|
9300
|
+
var n = _ref146.blankId,
|
|
9301
|
+
r = _ref146.index,
|
|
9302
|
+
a = _ref146.label;
|
|
9248
9303
|
var o, s;
|
|
9249
9304
|
var c = (o = u.answers[n]) == null ? "" : o,
|
|
9250
|
-
l =
|
|
9305
|
+
l = Pl({
|
|
9251
9306
|
answers: c,
|
|
9252
9307
|
blankLabel: i.blankLabel,
|
|
9253
9308
|
canClear: !e && !!c.trim(),
|
|
@@ -9256,7 +9311,7 @@ function Ol(_ref141) {
|
|
|
9256
9311
|
});
|
|
9257
9312
|
return (0, t.jsx)("button", {
|
|
9258
9313
|
"aria-label": l,
|
|
9259
|
-
className:
|
|
9314
|
+
className: Ml["word-builder-blank"],
|
|
9260
9315
|
disabled: e,
|
|
9261
9316
|
onClick: function onClick() {
|
|
9262
9317
|
return p(n);
|
|
@@ -9273,7 +9328,7 @@ function Ol(_ref141) {
|
|
|
9273
9328
|
});
|
|
9274
9329
|
}
|
|
9275
9330
|
}), (0, t.jsx)("div", {
|
|
9276
|
-
className:
|
|
9331
|
+
className: Ml["word-builder-candidate-list"],
|
|
9277
9332
|
children: l.candidateOptions.map(function (n, r) {
|
|
9278
9333
|
return (0, t.jsx)("button", {
|
|
9279
9334
|
disabled: e,
|
|
@@ -9294,30 +9349,30 @@ function Ol(_ref141) {
|
|
|
9294
9349
|
}) : null]
|
|
9295
9350
|
});
|
|
9296
9351
|
}
|
|
9297
|
-
function
|
|
9298
|
-
var e =
|
|
9299
|
-
t =
|
|
9300
|
-
n =
|
|
9301
|
-
r =
|
|
9302
|
-
i =
|
|
9352
|
+
function Pl(_ref147) {
|
|
9353
|
+
var e = _ref147.answers,
|
|
9354
|
+
t = _ref147.blankLabel,
|
|
9355
|
+
n = _ref147.canClear,
|
|
9356
|
+
r = _ref147.index,
|
|
9357
|
+
i = _ref147.label;
|
|
9303
9358
|
var a = i || "".concat(t).concat(r + 1);
|
|
9304
9359
|
return !n || !e.trim() ? a : t === "\u7A7A" ? "".concat(a, "\uFF0C\u70B9\u51FB\u6E05\u7A7A") : "".concat(a, ", click to clear");
|
|
9305
9360
|
}
|
|
9306
|
-
function
|
|
9307
|
-
var e =
|
|
9308
|
-
n =
|
|
9309
|
-
r =
|
|
9310
|
-
i =
|
|
9311
|
-
a =
|
|
9312
|
-
o =
|
|
9313
|
-
s =
|
|
9314
|
-
c =
|
|
9315
|
-
l =
|
|
9316
|
-
u =
|
|
9361
|
+
function Fl(_ref148) {
|
|
9362
|
+
var e = _ref148.disabled,
|
|
9363
|
+
n = _ref148.element,
|
|
9364
|
+
r = _ref148.item,
|
|
9365
|
+
i = _ref148.locale,
|
|
9366
|
+
a = _ref148.messages,
|
|
9367
|
+
o = _ref148.onResponseItemChange,
|
|
9368
|
+
s = _ref148.response,
|
|
9369
|
+
c = _ref148.responseIndex,
|
|
9370
|
+
l = _ref148.showAnswer,
|
|
9371
|
+
u = _ref148.uploadImage;
|
|
9317
9372
|
if (n.type !== r.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(n.type, "\uFF0Cactual=").concat(r.type));
|
|
9318
9373
|
return n.type === "richText" ? (0, t.jsx)(G, {
|
|
9319
9374
|
content: r.content
|
|
9320
|
-
}) : n.type === "textResponse" ? (0, t.jsx)(
|
|
9375
|
+
}) : n.type === "textResponse" ? (0, t.jsx)(Al, {
|
|
9321
9376
|
disabled: e,
|
|
9322
9377
|
label: n.name,
|
|
9323
9378
|
locale: i,
|
|
@@ -9326,7 +9381,7 @@ function Al(_ref144) {
|
|
|
9326
9381
|
response: s,
|
|
9327
9382
|
responseIndex: c,
|
|
9328
9383
|
uploadImage: u
|
|
9329
|
-
}) : n.type === "ordering" ? (0, t.jsx)(
|
|
9384
|
+
}) : n.type === "ordering" ? (0, t.jsx)(xl, {
|
|
9330
9385
|
disabled: e,
|
|
9331
9386
|
item: r,
|
|
9332
9387
|
messages: a,
|
|
@@ -9334,7 +9389,7 @@ function Al(_ref144) {
|
|
|
9334
9389
|
response: s,
|
|
9335
9390
|
responseIndex: c,
|
|
9336
9391
|
showAnswer: l
|
|
9337
|
-
}) : n.type === "classification" ? (0, t.jsx)(
|
|
9392
|
+
}) : n.type === "classification" ? (0, t.jsx)(Ic, {
|
|
9338
9393
|
disabled: e,
|
|
9339
9394
|
item: r,
|
|
9340
9395
|
messages: a,
|
|
@@ -9342,7 +9397,7 @@ function Al(_ref144) {
|
|
|
9342
9397
|
response: s,
|
|
9343
9398
|
responseIndex: c,
|
|
9344
9399
|
showAnswer: l
|
|
9345
|
-
}) : n.type === "textMarker" ? (0, t.jsx)(
|
|
9400
|
+
}) : n.type === "textMarker" ? (0, t.jsx)(Dl, {
|
|
9346
9401
|
disabled: e,
|
|
9347
9402
|
item: r,
|
|
9348
9403
|
messages: a,
|
|
@@ -9350,7 +9405,7 @@ function Al(_ref144) {
|
|
|
9350
9405
|
response: s,
|
|
9351
9406
|
responseIndex: c,
|
|
9352
9407
|
showAnswer: l
|
|
9353
|
-
}) :
|
|
9408
|
+
}) : Il({
|
|
9354
9409
|
disabled: e,
|
|
9355
9410
|
element: n,
|
|
9356
9411
|
item: r,
|
|
@@ -9363,18 +9418,18 @@ function Al(_ref144) {
|
|
|
9363
9418
|
uploadImage: u
|
|
9364
9419
|
});
|
|
9365
9420
|
}
|
|
9366
|
-
function
|
|
9367
|
-
var e =
|
|
9368
|
-
n =
|
|
9369
|
-
r =
|
|
9370
|
-
i =
|
|
9371
|
-
a =
|
|
9372
|
-
o =
|
|
9373
|
-
s =
|
|
9374
|
-
c =
|
|
9421
|
+
function Il(_ref149) {
|
|
9422
|
+
var e = _ref149.disabled,
|
|
9423
|
+
n = _ref149.element,
|
|
9424
|
+
r = _ref149.item,
|
|
9425
|
+
i = _ref149.messages,
|
|
9426
|
+
a = _ref149.onResponseItemChange,
|
|
9427
|
+
o = _ref149.response,
|
|
9428
|
+
s = _ref149.responseIndex,
|
|
9429
|
+
c = _ref149.showAnswer;
|
|
9375
9430
|
switch (n.type) {
|
|
9376
9431
|
case "choice":
|
|
9377
|
-
return (0, t.jsx)(
|
|
9432
|
+
return (0, t.jsx)(yl, {
|
|
9378
9433
|
disabled: e,
|
|
9379
9434
|
element: n,
|
|
9380
9435
|
item: r,
|
|
@@ -9385,7 +9440,7 @@ function jl(_ref145) {
|
|
|
9385
9440
|
showAnswer: c
|
|
9386
9441
|
});
|
|
9387
9442
|
case "fill":
|
|
9388
|
-
return (0, t.jsx)(
|
|
9443
|
+
return (0, t.jsx)(Mc, {
|
|
9389
9444
|
disabled: e,
|
|
9390
9445
|
item: r,
|
|
9391
9446
|
messages: i,
|
|
@@ -9395,7 +9450,7 @@ function jl(_ref145) {
|
|
|
9395
9450
|
showAnswer: c
|
|
9396
9451
|
});
|
|
9397
9452
|
case "inlineFill":
|
|
9398
|
-
return (0, t.jsx)(
|
|
9453
|
+
return (0, t.jsx)(el, {
|
|
9399
9454
|
disabled: e,
|
|
9400
9455
|
element: n,
|
|
9401
9456
|
item: r,
|
|
@@ -9406,7 +9461,7 @@ function jl(_ref145) {
|
|
|
9406
9461
|
showAnswer: c
|
|
9407
9462
|
});
|
|
9408
9463
|
case "wordBuilder":
|
|
9409
|
-
return (0, t.jsx)(
|
|
9464
|
+
return (0, t.jsx)(Nl, {
|
|
9410
9465
|
disabled: e,
|
|
9411
9466
|
element: n,
|
|
9412
9467
|
item: r,
|
|
@@ -9417,7 +9472,7 @@ function jl(_ref145) {
|
|
|
9417
9472
|
showAnswer: c
|
|
9418
9473
|
});
|
|
9419
9474
|
case "judgement":
|
|
9420
|
-
return (0, t.jsx)(
|
|
9475
|
+
return (0, t.jsx)(al, {
|
|
9421
9476
|
disabled: e,
|
|
9422
9477
|
element: n,
|
|
9423
9478
|
item: r,
|
|
@@ -9428,7 +9483,7 @@ function jl(_ref145) {
|
|
|
9428
9483
|
showAnswer: c
|
|
9429
9484
|
});
|
|
9430
9485
|
case "lineConnect":
|
|
9431
|
-
return (0, t.jsx)(
|
|
9486
|
+
return (0, t.jsx)(cl, {
|
|
9432
9487
|
disabled: e,
|
|
9433
9488
|
item: r,
|
|
9434
9489
|
messages: i,
|
|
@@ -9438,7 +9493,7 @@ function jl(_ref145) {
|
|
|
9438
9493
|
showAnswer: c
|
|
9439
9494
|
});
|
|
9440
9495
|
case "matching":
|
|
9441
|
-
return (0, t.jsx)(
|
|
9496
|
+
return (0, t.jsx)(dl, {
|
|
9442
9497
|
disabled: e,
|
|
9443
9498
|
item: r,
|
|
9444
9499
|
messages: i,
|
|
@@ -9449,86 +9504,88 @@ function jl(_ref145) {
|
|
|
9449
9504
|
});
|
|
9450
9505
|
}
|
|
9451
9506
|
}
|
|
9452
|
-
var
|
|
9453
|
-
function
|
|
9507
|
+
var Ll = ["locale"];
|
|
9508
|
+
function Rl(e) {
|
|
9454
9509
|
var _e$locale = e.locale,
|
|
9455
9510
|
n = _e$locale === void 0 ? "zh-CN" : _e$locale,
|
|
9456
|
-
r = ma(e,
|
|
9457
|
-
i =
|
|
9458
|
-
a =
|
|
9459
|
-
return (0, t.jsx)(
|
|
9511
|
+
r = ma(e, Ll),
|
|
9512
|
+
i = us(r.value, r.questionTypeTemplates),
|
|
9513
|
+
a = hs(r.response, i);
|
|
9514
|
+
return (0, t.jsx)(zl, C(C({}, r), {}, {
|
|
9515
|
+
childIndexPath: [],
|
|
9460
9516
|
locale: n,
|
|
9461
|
-
messages:
|
|
9462
|
-
numberPath: [],
|
|
9517
|
+
messages: yc(n),
|
|
9463
9518
|
onResponseChange: function onResponseChange(e) {
|
|
9464
|
-
return r.onResponseChange(
|
|
9519
|
+
return r.onResponseChange(ms(e, i));
|
|
9465
9520
|
},
|
|
9466
9521
|
response: a,
|
|
9467
9522
|
value: i
|
|
9468
9523
|
}));
|
|
9469
9524
|
}
|
|
9470
|
-
function
|
|
9471
|
-
var e =
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9476
|
-
i =
|
|
9477
|
-
a =
|
|
9478
|
-
o =
|
|
9479
|
-
s =
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
u =
|
|
9485
|
-
d =
|
|
9486
|
-
f =
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9525
|
+
function zl(_ref150) {
|
|
9526
|
+
var e = _ref150.childIndexPath,
|
|
9527
|
+
n = _ref150.className,
|
|
9528
|
+
_ref150$disabled = _ref150.disabled,
|
|
9529
|
+
r = _ref150$disabled === void 0 ? !1 : _ref150$disabled,
|
|
9530
|
+
_ref150$locale = _ref150.locale,
|
|
9531
|
+
i = _ref150$locale === void 0 ? "zh-CN" : _ref150$locale,
|
|
9532
|
+
a = _ref150.messages,
|
|
9533
|
+
o = _ref150.onResponseChange,
|
|
9534
|
+
s = _ref150.response,
|
|
9535
|
+
c = _ref150.rootQuestionNumber,
|
|
9536
|
+
_ref150$showAnswer = _ref150.showAnswer,
|
|
9537
|
+
l = _ref150$showAnswer === void 0 ? !1 : _ref150$showAnswer,
|
|
9538
|
+
_ref150$showExtraAttr = _ref150.showExtraAttributes,
|
|
9539
|
+
u = _ref150$showExtraAttr === void 0 ? !1 : _ref150$showExtraAttr,
|
|
9540
|
+
d = _ref150.questionTypeTemplates,
|
|
9541
|
+
f = _ref150.uploadImage,
|
|
9542
|
+
p = _ref150.value;
|
|
9543
|
+
var m = Zi(d, p);
|
|
9544
|
+
if (!m) return (0, t.jsx)("div", {
|
|
9545
|
+
className: H(U.root, n),
|
|
9490
9546
|
children: (0, t.jsx)("div", {
|
|
9491
9547
|
className: U.empty,
|
|
9492
|
-
children:
|
|
9548
|
+
children: a.missingQuestionTypeTemplate
|
|
9493
9549
|
})
|
|
9494
9550
|
});
|
|
9495
|
-
var
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9551
|
+
var h = Bl({
|
|
9552
|
+
childIndexPath: e,
|
|
9553
|
+
disabled: r,
|
|
9554
|
+
locale: i,
|
|
9555
|
+
messages: a,
|
|
9500
9556
|
onResponseChange: o,
|
|
9501
9557
|
response: s,
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
|
|
9558
|
+
rootQuestionNumber: c,
|
|
9559
|
+
showAnswer: l,
|
|
9560
|
+
showExtraAttributes: u,
|
|
9561
|
+
structure: m,
|
|
9562
|
+
uploadImage: f,
|
|
9563
|
+
questionTypeTemplates: d,
|
|
9564
|
+
value: p
|
|
9508
9565
|
});
|
|
9509
9566
|
return (0, t.jsx)("div", {
|
|
9510
|
-
className: H(U.root,
|
|
9511
|
-
children:
|
|
9567
|
+
className: H(U.root, n),
|
|
9568
|
+
children: Wl(m, p) ? (0, t.jsx)("div", {
|
|
9512
9569
|
className: U.empty,
|
|
9513
|
-
children:
|
|
9514
|
-
}) :
|
|
9570
|
+
children: a.previewEmpty
|
|
9571
|
+
}) : h
|
|
9515
9572
|
});
|
|
9516
9573
|
}
|
|
9517
|
-
function
|
|
9574
|
+
function Bl(e) {
|
|
9518
9575
|
return (0, t.jsxs)(t.Fragment, {
|
|
9519
|
-
children: [
|
|
9520
|
-
});
|
|
9521
|
-
}
|
|
9522
|
-
function
|
|
9523
|
-
var e =
|
|
9524
|
-
n =
|
|
9525
|
-
r =
|
|
9526
|
-
i =
|
|
9527
|
-
a =
|
|
9528
|
-
o =
|
|
9529
|
-
s =
|
|
9530
|
-
c =
|
|
9531
|
-
l =
|
|
9576
|
+
children: [Vl(e), Ul(e), Hl(e)]
|
|
9577
|
+
});
|
|
9578
|
+
}
|
|
9579
|
+
function Vl(_ref151) {
|
|
9580
|
+
var e = _ref151.disabled,
|
|
9581
|
+
n = _ref151.locale,
|
|
9582
|
+
r = _ref151.messages,
|
|
9583
|
+
i = _ref151.onResponseChange,
|
|
9584
|
+
a = _ref151.response,
|
|
9585
|
+
o = _ref151.showAnswer,
|
|
9586
|
+
s = _ref151.structure,
|
|
9587
|
+
c = _ref151.uploadImage,
|
|
9588
|
+
l = _ref151.value;
|
|
9532
9589
|
return s.elements.length === 0 ? null : (0, t.jsx)("div", {
|
|
9533
9590
|
className: U["element-list"],
|
|
9534
9591
|
children: s.elements.map(function (u, d) {
|
|
@@ -9538,14 +9595,14 @@ function Il(_ref147) {
|
|
|
9538
9595
|
}).length;
|
|
9539
9596
|
return (0, t.jsx)("section", {
|
|
9540
9597
|
className: U.element,
|
|
9541
|
-
children: (0, t.jsx)(
|
|
9598
|
+
children: (0, t.jsx)(Fl, {
|
|
9542
9599
|
disabled: e,
|
|
9543
9600
|
element: u,
|
|
9544
9601
|
item: f,
|
|
9545
9602
|
locale: n,
|
|
9546
9603
|
messages: r,
|
|
9547
9604
|
onResponseItemChange: function onResponseItemChange(e) {
|
|
9548
|
-
return i(
|
|
9605
|
+
return i(qs(a, p, e));
|
|
9549
9606
|
},
|
|
9550
9607
|
response: a,
|
|
9551
9608
|
responseIndex: p,
|
|
@@ -9556,27 +9613,27 @@ function Il(_ref147) {
|
|
|
9556
9613
|
})
|
|
9557
9614
|
});
|
|
9558
9615
|
}
|
|
9559
|
-
function
|
|
9560
|
-
var e =
|
|
9561
|
-
n =
|
|
9562
|
-
r =
|
|
9563
|
-
i =
|
|
9564
|
-
a =
|
|
9565
|
-
o =
|
|
9566
|
-
s =
|
|
9567
|
-
c =
|
|
9616
|
+
function Hl(_ref152) {
|
|
9617
|
+
var e = _ref152.disabled,
|
|
9618
|
+
n = _ref152.locale,
|
|
9619
|
+
r = _ref152.messages,
|
|
9620
|
+
i = _ref152.response,
|
|
9621
|
+
a = _ref152.showExtraAttributes,
|
|
9622
|
+
o = _ref152.structure,
|
|
9623
|
+
s = _ref152.uploadImage,
|
|
9624
|
+
c = _ref152.value;
|
|
9568
9625
|
return a ? (0, t.jsx)("div", {
|
|
9569
9626
|
className: U["element-list"],
|
|
9570
9627
|
children: o.extras.map(function (a, o) {
|
|
9571
9628
|
var l = Xt(c, o, a);
|
|
9572
9629
|
return A(l.content) ? null : (0, t.jsxs)("section", {
|
|
9573
9630
|
className: U.extra,
|
|
9574
|
-
children: [(0, t.jsx)(
|
|
9631
|
+
children: [(0, t.jsx)(kc, {
|
|
9575
9632
|
children: a.name
|
|
9576
|
-
}), (0, t.jsx)(
|
|
9633
|
+
}), (0, t.jsx)(Fl, {
|
|
9577
9634
|
disabled: e,
|
|
9578
|
-
element:
|
|
9579
|
-
item:
|
|
9635
|
+
element: Gl(a),
|
|
9636
|
+
item: Kl(l),
|
|
9580
9637
|
locale: n,
|
|
9581
9638
|
messages: r,
|
|
9582
9639
|
onResponseItemChange: function onResponseItemChange() {
|
|
@@ -9591,69 +9648,72 @@ function Ll(_ref148) {
|
|
|
9591
9648
|
})
|
|
9592
9649
|
}) : null;
|
|
9593
9650
|
}
|
|
9594
|
-
function
|
|
9595
|
-
var e =
|
|
9596
|
-
n =
|
|
9597
|
-
r =
|
|
9598
|
-
i =
|
|
9599
|
-
a =
|
|
9600
|
-
o =
|
|
9601
|
-
s =
|
|
9602
|
-
c =
|
|
9603
|
-
l =
|
|
9604
|
-
u =
|
|
9605
|
-
d =
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9651
|
+
function Ul(_ref153) {
|
|
9652
|
+
var e = _ref153.childIndexPath,
|
|
9653
|
+
n = _ref153.disabled,
|
|
9654
|
+
r = _ref153.locale,
|
|
9655
|
+
i = _ref153.messages,
|
|
9656
|
+
a = _ref153.onResponseChange,
|
|
9657
|
+
o = _ref153.response,
|
|
9658
|
+
s = _ref153.rootQuestionNumber,
|
|
9659
|
+
c = _ref153.showAnswer,
|
|
9660
|
+
l = _ref153.showExtraAttributes,
|
|
9661
|
+
u = _ref153.questionTypeTemplates,
|
|
9662
|
+
d = _ref153.uploadImage,
|
|
9663
|
+
f = _ref153.value;
|
|
9664
|
+
return f.children.length === 0 ? null : (0, t.jsx)(Ac, {
|
|
9665
|
+
childIndexPath: e,
|
|
9666
|
+
disabled: n,
|
|
9667
|
+
messages: i,
|
|
9610
9668
|
onChildResponseChange: function onChildResponseChange(e, t) {
|
|
9611
|
-
return a(
|
|
9669
|
+
return a(Js(o, e, t));
|
|
9612
9670
|
},
|
|
9613
9671
|
response: o,
|
|
9614
|
-
renderChild: function renderChild(
|
|
9615
|
-
return (0, t.jsx)(
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9672
|
+
renderChild: function renderChild(e, a, o, f) {
|
|
9673
|
+
return (0, t.jsx)(zl, {
|
|
9674
|
+
childIndexPath: f,
|
|
9675
|
+
disabled: n,
|
|
9676
|
+
locale: r,
|
|
9677
|
+
messages: i,
|
|
9620
9678
|
onResponseChange: o,
|
|
9621
9679
|
response: a,
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9680
|
+
rootQuestionNumber: s,
|
|
9681
|
+
showAnswer: c,
|
|
9682
|
+
showExtraAttributes: l,
|
|
9683
|
+
questionTypeTemplates: u,
|
|
9684
|
+
uploadImage: d,
|
|
9685
|
+
value: e
|
|
9627
9686
|
});
|
|
9628
9687
|
},
|
|
9629
|
-
|
|
9688
|
+
rootQuestionNumber: s,
|
|
9689
|
+
value: f
|
|
9630
9690
|
});
|
|
9631
9691
|
}
|
|
9632
|
-
function
|
|
9692
|
+
function Wl(e, t) {
|
|
9633
9693
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
9634
9694
|
}
|
|
9635
|
-
function
|
|
9695
|
+
function Gl(e) {
|
|
9636
9696
|
return {
|
|
9637
9697
|
config: {},
|
|
9638
9698
|
name: e.name,
|
|
9639
9699
|
type: "richText"
|
|
9640
9700
|
};
|
|
9641
9701
|
}
|
|
9642
|
-
function
|
|
9702
|
+
function Kl(e) {
|
|
9643
9703
|
return {
|
|
9644
9704
|
content: e.content,
|
|
9645
9705
|
type: "richText"
|
|
9646
9706
|
};
|
|
9647
9707
|
}
|
|
9648
|
-
var
|
|
9708
|
+
var ql = {
|
|
9649
9709
|
"blank-list": "_blank-list_12ccp_1",
|
|
9650
9710
|
"blank-item": "_blank-item_12ccp_11",
|
|
9651
9711
|
"blank-field": "_blank-field_12ccp_17"
|
|
9652
9712
|
};
|
|
9653
|
-
function
|
|
9654
|
-
var e =
|
|
9655
|
-
n =
|
|
9656
|
-
r =
|
|
9713
|
+
function Jl(_ref154) {
|
|
9714
|
+
var e = _ref154.item,
|
|
9715
|
+
n = _ref154.messages,
|
|
9716
|
+
r = _ref154.showAnswer;
|
|
9657
9717
|
var i = k(e.answers, e.blanks).map(function (r, i) {
|
|
9658
9718
|
return {
|
|
9659
9719
|
kind: "detailed",
|
|
@@ -9662,21 +9722,21 @@ function Ul(_ref150) {
|
|
|
9662
9722
|
content: e
|
|
9663
9723
|
}, "group-".concat(i, "-answer-").concat(n));
|
|
9664
9724
|
}),
|
|
9665
|
-
marker:
|
|
9725
|
+
marker: bc(r.blankIds, e.blanks, n.blankLabel)
|
|
9666
9726
|
};
|
|
9667
9727
|
});
|
|
9668
9728
|
return (0, t.jsxs)("div", {
|
|
9669
9729
|
className: W.element,
|
|
9670
9730
|
children: [(0, t.jsx)("ol", {
|
|
9671
|
-
className:
|
|
9731
|
+
className: ql["blank-list"],
|
|
9672
9732
|
children: e.blanks.map(function (e, r) {
|
|
9673
9733
|
return (0, t.jsx)("li", {
|
|
9674
|
-
className:
|
|
9734
|
+
className: ql["blank-item"],
|
|
9675
9735
|
children: (0, t.jsxs)("span", {
|
|
9676
|
-
className:
|
|
9736
|
+
className: ql["blank-field"],
|
|
9677
9737
|
children: [n.blankLabel, " ", r + 1]
|
|
9678
9738
|
})
|
|
9679
|
-
},
|
|
9739
|
+
}, Yl(e, r));
|
|
9680
9740
|
})
|
|
9681
9741
|
}), r ? (0, t.jsx)(K, {
|
|
9682
9742
|
groups: i,
|
|
@@ -9684,13 +9744,13 @@ function Ul(_ref150) {
|
|
|
9684
9744
|
}) : null]
|
|
9685
9745
|
});
|
|
9686
9746
|
}
|
|
9687
|
-
function
|
|
9747
|
+
function Yl(e, t) {
|
|
9688
9748
|
return e || "blank-".concat(t + 1);
|
|
9689
9749
|
}
|
|
9690
|
-
function
|
|
9691
|
-
var e =
|
|
9692
|
-
n =
|
|
9693
|
-
r =
|
|
9750
|
+
function Xl(_ref155) {
|
|
9751
|
+
var e = _ref155.item,
|
|
9752
|
+
n = _ref155.messages,
|
|
9753
|
+
r = _ref155.showAnswer;
|
|
9694
9754
|
return (0, t.jsxs)("div", {
|
|
9695
9755
|
className: W.element,
|
|
9696
9756
|
children: [(0, t.jsxs)("div", {
|
|
@@ -9723,18 +9783,18 @@ function Gl(_ref151) {
|
|
|
9723
9783
|
})
|
|
9724
9784
|
})]
|
|
9725
9785
|
}), r ? (0, t.jsx)(K, {
|
|
9726
|
-
groups:
|
|
9786
|
+
groups: Fc(e),
|
|
9727
9787
|
title: n.standardAnswer
|
|
9728
9788
|
}) : null]
|
|
9729
9789
|
});
|
|
9730
9790
|
}
|
|
9731
|
-
function
|
|
9732
|
-
var e =
|
|
9733
|
-
n =
|
|
9734
|
-
r =
|
|
9735
|
-
i =
|
|
9791
|
+
function Zl(_ref156) {
|
|
9792
|
+
var e = _ref156.element,
|
|
9793
|
+
n = _ref156.item,
|
|
9794
|
+
r = _ref156.messages,
|
|
9795
|
+
i = _ref156.showAnswer;
|
|
9736
9796
|
var a = vn(n, e, !0),
|
|
9737
|
-
o =
|
|
9797
|
+
o = Ec(a).map(function (e, n) {
|
|
9738
9798
|
return {
|
|
9739
9799
|
kind: "detailed",
|
|
9740
9800
|
contents: e.contents.map(function (e, r) {
|
|
@@ -9742,20 +9802,20 @@ function Kl(_ref152) {
|
|
|
9742
9802
|
content: e
|
|
9743
9803
|
}, "group-".concat(n, "-answer-").concat(r));
|
|
9744
9804
|
}),
|
|
9745
|
-
marker:
|
|
9805
|
+
marker: bc(e.blankIds, a.blanks, r.blankLabel)
|
|
9746
9806
|
};
|
|
9747
9807
|
});
|
|
9748
9808
|
return (0, t.jsxs)("div", {
|
|
9749
9809
|
className: W.element,
|
|
9750
9810
|
children: [(0, t.jsx)(G, {
|
|
9751
9811
|
content: a.content
|
|
9752
|
-
}),
|
|
9812
|
+
}), Ql(a, r.candidateOptions), i ? (0, t.jsx)(K, {
|
|
9753
9813
|
groups: o,
|
|
9754
9814
|
title: r.standardAnswer
|
|
9755
9815
|
}) : null]
|
|
9756
9816
|
});
|
|
9757
9817
|
}
|
|
9758
|
-
function
|
|
9818
|
+
function Ql(e, n) {
|
|
9759
9819
|
var r, i;
|
|
9760
9820
|
var a = (r = e.candidateOptions) == null ? [] : r,
|
|
9761
9821
|
o = (i = e.blankOptionGroups) == null ? [] : i;
|
|
@@ -9786,11 +9846,11 @@ function ql(e, n) {
|
|
|
9786
9846
|
})]
|
|
9787
9847
|
});
|
|
9788
9848
|
}
|
|
9789
|
-
function
|
|
9790
|
-
var e =
|
|
9791
|
-
n =
|
|
9792
|
-
r =
|
|
9793
|
-
i =
|
|
9849
|
+
function $l(_ref157) {
|
|
9850
|
+
var e = _ref157.element,
|
|
9851
|
+
n = _ref157.item,
|
|
9852
|
+
r = _ref157.messages,
|
|
9853
|
+
i = _ref157.showAnswer;
|
|
9794
9854
|
var a = tn(e.config.judgeAnswerMode),
|
|
9795
9855
|
o = [{
|
|
9796
9856
|
kind: "detailed",
|
|
@@ -9801,9 +9861,9 @@ function Jl(_ref153) {
|
|
|
9801
9861
|
className: W.element,
|
|
9802
9862
|
children: [(0, t.jsx)("ol", {
|
|
9803
9863
|
className: W["judgement-list"],
|
|
9804
|
-
children: a.map(function (
|
|
9805
|
-
var e =
|
|
9806
|
-
n =
|
|
9864
|
+
children: a.map(function (_ref158) {
|
|
9865
|
+
var e = _ref158.label,
|
|
9866
|
+
n = _ref158.value;
|
|
9807
9867
|
return (0, t.jsx)("li", {
|
|
9808
9868
|
className: W["judgement-item"],
|
|
9809
9869
|
children: e
|
|
@@ -9815,10 +9875,10 @@ function Jl(_ref153) {
|
|
|
9815
9875
|
}) : null]
|
|
9816
9876
|
});
|
|
9817
9877
|
}
|
|
9818
|
-
function
|
|
9819
|
-
var e =
|
|
9820
|
-
n =
|
|
9821
|
-
r =
|
|
9878
|
+
function eu(_ref159) {
|
|
9879
|
+
var e = _ref159.item,
|
|
9880
|
+
n = _ref159.messages,
|
|
9881
|
+
r = _ref159.showAnswer;
|
|
9822
9882
|
var i = {
|
|
9823
9883
|
gridTemplateColumns: "repeat(".concat(e.columns.length, ", minmax(12rem, 1fr))")
|
|
9824
9884
|
};
|
|
@@ -9851,37 +9911,37 @@ function Yl(_ref155) {
|
|
|
9851
9911
|
})
|
|
9852
9912
|
})
|
|
9853
9913
|
}), r ? (0, t.jsx)(K, {
|
|
9854
|
-
groups:
|
|
9914
|
+
groups: ol(e),
|
|
9855
9915
|
title: n.standardAnswer
|
|
9856
9916
|
}) : null]
|
|
9857
9917
|
});
|
|
9858
9918
|
}
|
|
9859
|
-
var
|
|
9919
|
+
var tu = {
|
|
9860
9920
|
board: "_board_5xarh_1",
|
|
9861
9921
|
columns: "_columns_5xarh_6",
|
|
9862
9922
|
column: "_column_5xarh_6",
|
|
9863
9923
|
item: "_item_5xarh_18",
|
|
9864
9924
|
marker: "_marker_5xarh_42"
|
|
9865
9925
|
};
|
|
9866
|
-
function
|
|
9867
|
-
var e =
|
|
9868
|
-
n =
|
|
9869
|
-
r =
|
|
9926
|
+
function nu(_ref160) {
|
|
9927
|
+
var e = _ref160.item,
|
|
9928
|
+
n = _ref160.messages,
|
|
9929
|
+
r = _ref160.showAnswer;
|
|
9870
9930
|
return (0, t.jsxs)("div", {
|
|
9871
9931
|
className: W.element,
|
|
9872
9932
|
children: [(0, t.jsx)("div", {
|
|
9873
|
-
className:
|
|
9933
|
+
className: tu.board,
|
|
9874
9934
|
children: (0, t.jsx)("div", {
|
|
9875
|
-
className:
|
|
9935
|
+
className: tu.columns,
|
|
9876
9936
|
children: e.columns.map(function (e) {
|
|
9877
9937
|
return (0, t.jsx)("section", {
|
|
9878
|
-
className:
|
|
9938
|
+
className: tu.column,
|
|
9879
9939
|
children: e.items.map(function (n, r) {
|
|
9880
9940
|
var i = $t(e.labelStyle, r);
|
|
9881
9941
|
return (0, t.jsxs)("div", {
|
|
9882
|
-
className:
|
|
9942
|
+
className: tu.item,
|
|
9883
9943
|
children: [i ? (0, t.jsx)("span", {
|
|
9884
|
-
className:
|
|
9944
|
+
className: tu.marker,
|
|
9885
9945
|
children: i
|
|
9886
9946
|
}) : null, (0, t.jsx)(G, {
|
|
9887
9947
|
content: n.content
|
|
@@ -9892,28 +9952,28 @@ function Zl(_ref156) {
|
|
|
9892
9952
|
})
|
|
9893
9953
|
})
|
|
9894
9954
|
}), r ? (0, t.jsx)(K, {
|
|
9895
|
-
groups:
|
|
9955
|
+
groups: ll(e),
|
|
9896
9956
|
title: n.standardAnswer
|
|
9897
9957
|
}) : null]
|
|
9898
9958
|
});
|
|
9899
9959
|
}
|
|
9900
|
-
function
|
|
9901
|
-
var e =
|
|
9902
|
-
n =
|
|
9903
|
-
r =
|
|
9904
|
-
i =
|
|
9960
|
+
function ru(_ref161) {
|
|
9961
|
+
var e = _ref161.element,
|
|
9962
|
+
n = _ref161.item,
|
|
9963
|
+
r = _ref161.messages,
|
|
9964
|
+
i = _ref161.showAnswer;
|
|
9905
9965
|
var a = rn(n, e.config.optionLabelStyle);
|
|
9906
9966
|
if (e.config.renderer === "table") {
|
|
9907
|
-
var _o3 =
|
|
9967
|
+
var _o3 = pl(e, n);
|
|
9908
9968
|
return (0, t.jsxs)("div", {
|
|
9909
9969
|
className: W.element,
|
|
9910
9970
|
children: [(0, t.jsx)("div", {
|
|
9911
|
-
className:
|
|
9971
|
+
className: vl["table-wrap"],
|
|
9912
9972
|
children: (0, t.jsxs)("table", {
|
|
9913
|
-
className:
|
|
9973
|
+
className: vl.table,
|
|
9914
9974
|
children: [(0, t.jsxs)("colgroup", {
|
|
9915
9975
|
children: [(0, t.jsx)("col", {
|
|
9916
|
-
className:
|
|
9976
|
+
className: vl["table-option-column"]
|
|
9917
9977
|
}), n.columns.map(function (e) {
|
|
9918
9978
|
return (0, t.jsx)("col", {}, e.id);
|
|
9919
9979
|
})]
|
|
@@ -9934,7 +9994,7 @@ function Ql(_ref157) {
|
|
|
9934
9994
|
return (0, t.jsxs)("tr", {
|
|
9935
9995
|
children: [(0, t.jsx)("td", {
|
|
9936
9996
|
children: (0, t.jsx)("span", {
|
|
9937
|
-
className:
|
|
9997
|
+
className: vl["table-option-marker"],
|
|
9938
9998
|
children: e.marker
|
|
9939
9999
|
})
|
|
9940
10000
|
}), e.cells.map(function (n, r) {
|
|
@@ -9954,11 +10014,10 @@ function Ql(_ref157) {
|
|
|
9954
10014
|
}) : null]
|
|
9955
10015
|
});
|
|
9956
10016
|
}
|
|
9957
|
-
var o =
|
|
10017
|
+
var o = pl(e, n);
|
|
9958
10018
|
return (0, t.jsxs)("div", {
|
|
9959
10019
|
className: W.element,
|
|
9960
|
-
children: [(0, t.jsx)(
|
|
9961
|
-
className: W["option-list"],
|
|
10020
|
+
children: [(0, t.jsx)(gl, {
|
|
9962
10021
|
children: a.map(function (e) {
|
|
9963
10022
|
return (0, t.jsxs)("li", {
|
|
9964
10023
|
className: W["option-item"],
|
|
@@ -9976,10 +10035,10 @@ function Ql(_ref157) {
|
|
|
9976
10035
|
}) : null]
|
|
9977
10036
|
});
|
|
9978
10037
|
}
|
|
9979
|
-
function
|
|
9980
|
-
var e =
|
|
9981
|
-
n =
|
|
9982
|
-
r =
|
|
10038
|
+
function iu(_ref162) {
|
|
10039
|
+
var e = _ref162.item,
|
|
10040
|
+
n = _ref162.messages,
|
|
10041
|
+
r = _ref162.showAnswer;
|
|
9983
10042
|
return (0, t.jsxs)("div", {
|
|
9984
10043
|
className: W.element,
|
|
9985
10044
|
children: [(0, t.jsx)("ol", {
|
|
@@ -9996,26 +10055,26 @@ function $l(_ref158) {
|
|
|
9996
10055
|
}, e.id);
|
|
9997
10056
|
})
|
|
9998
10057
|
}), r ? (0, t.jsx)(K, {
|
|
9999
|
-
groups:
|
|
10058
|
+
groups: bl(e),
|
|
10000
10059
|
title: n.standardAnswer
|
|
10001
10060
|
}) : null]
|
|
10002
10061
|
});
|
|
10003
10062
|
}
|
|
10004
|
-
function
|
|
10005
|
-
var e =
|
|
10006
|
-
n =
|
|
10007
|
-
r =
|
|
10008
|
-
i =
|
|
10063
|
+
function au(_ref163) {
|
|
10064
|
+
var e = _ref163.element,
|
|
10065
|
+
n = _ref163.item,
|
|
10066
|
+
r = _ref163.messages,
|
|
10067
|
+
i = _ref163.showAnswer;
|
|
10009
10068
|
var a = _n(n, !0, e),
|
|
10010
|
-
o =
|
|
10069
|
+
o = jl(a, r.blankLabel);
|
|
10011
10070
|
return (0, t.jsxs)("div", {
|
|
10012
10071
|
className: W.element,
|
|
10013
|
-
children: [(0, t.jsx)(
|
|
10072
|
+
children: [(0, t.jsx)(zc, {
|
|
10014
10073
|
content: a.content,
|
|
10015
|
-
renderBlank: function renderBlank(
|
|
10016
|
-
var e =
|
|
10017
|
-
n =
|
|
10018
|
-
i =
|
|
10074
|
+
renderBlank: function renderBlank(_ref164) {
|
|
10075
|
+
var e = _ref164.blankId,
|
|
10076
|
+
n = _ref164.index,
|
|
10077
|
+
i = _ref164.label;
|
|
10019
10078
|
return (0, t.jsx)("span", {
|
|
10020
10079
|
"aria-label": i || "".concat(r.blankLabel).concat(n + 1),
|
|
10021
10080
|
className: W["word-builder-blank"],
|
|
@@ -10042,81 +10101,81 @@ function eu(_ref159) {
|
|
|
10042
10101
|
}) : null]
|
|
10043
10102
|
});
|
|
10044
10103
|
}
|
|
10045
|
-
function
|
|
10046
|
-
var e =
|
|
10047
|
-
n =
|
|
10048
|
-
r =
|
|
10049
|
-
i =
|
|
10104
|
+
function ou(_ref165) {
|
|
10105
|
+
var e = _ref165.element,
|
|
10106
|
+
n = _ref165.item,
|
|
10107
|
+
r = _ref165.messages,
|
|
10108
|
+
i = _ref165.showAnswer;
|
|
10050
10109
|
if (e.type !== n.type) throw Error("\u9898\u76EE\u5143\u7D20\u7ED3\u6784\u4E0D\u5339\u914D\uFF0Cexpected=".concat(e.type, "\uFF0Cactual=").concat(n.type));
|
|
10051
10110
|
return e.type === "richText" ? (0, t.jsx)(G, {
|
|
10052
10111
|
content: n.content
|
|
10053
|
-
}) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(
|
|
10112
|
+
}) : e.type === "textResponse" ? null : e.type === "ordering" ? (0, t.jsx)(iu, {
|
|
10054
10113
|
item: n,
|
|
10055
10114
|
messages: r,
|
|
10056
10115
|
showAnswer: i
|
|
10057
|
-
}) : e.type === "classification" ? (0, t.jsx)(
|
|
10116
|
+
}) : e.type === "classification" ? (0, t.jsx)(Xl, {
|
|
10058
10117
|
item: n,
|
|
10059
10118
|
messages: r,
|
|
10060
10119
|
showAnswer: i
|
|
10061
|
-
}) : e.type === "textMarker" ? (0, t.jsx)(
|
|
10120
|
+
}) : e.type === "textMarker" ? (0, t.jsx)(El, {
|
|
10062
10121
|
item: n,
|
|
10063
10122
|
messages: r,
|
|
10064
10123
|
showAnswer: i
|
|
10065
|
-
}) :
|
|
10124
|
+
}) : su({
|
|
10066
10125
|
element: e,
|
|
10067
10126
|
item: n,
|
|
10068
10127
|
messages: r,
|
|
10069
10128
|
showAnswer: i
|
|
10070
10129
|
});
|
|
10071
10130
|
}
|
|
10072
|
-
function
|
|
10073
|
-
var e =
|
|
10074
|
-
n =
|
|
10075
|
-
r =
|
|
10076
|
-
i =
|
|
10131
|
+
function su(_ref166) {
|
|
10132
|
+
var e = _ref166.element,
|
|
10133
|
+
n = _ref166.item,
|
|
10134
|
+
r = _ref166.messages,
|
|
10135
|
+
i = _ref166.showAnswer;
|
|
10077
10136
|
switch (e.type) {
|
|
10078
10137
|
case "choice":
|
|
10079
|
-
return (0, t.jsx)(
|
|
10138
|
+
return (0, t.jsx)(ru, {
|
|
10080
10139
|
element: e,
|
|
10081
10140
|
item: n,
|
|
10082
10141
|
messages: r,
|
|
10083
10142
|
showAnswer: i
|
|
10084
10143
|
});
|
|
10085
10144
|
case "fill":
|
|
10086
|
-
return (0, t.jsx)(
|
|
10145
|
+
return (0, t.jsx)(Jl, {
|
|
10087
10146
|
item: n,
|
|
10088
10147
|
messages: r,
|
|
10089
10148
|
showAnswer: i
|
|
10090
10149
|
});
|
|
10091
10150
|
case "inlineFill":
|
|
10092
|
-
return (0, t.jsx)(
|
|
10151
|
+
return (0, t.jsx)(Zl, {
|
|
10093
10152
|
element: e,
|
|
10094
10153
|
item: n,
|
|
10095
10154
|
messages: r,
|
|
10096
10155
|
showAnswer: i
|
|
10097
10156
|
});
|
|
10098
10157
|
case "wordBuilder":
|
|
10099
|
-
return (0, t.jsx)(
|
|
10158
|
+
return (0, t.jsx)(au, {
|
|
10100
10159
|
element: e,
|
|
10101
10160
|
item: n,
|
|
10102
10161
|
messages: r,
|
|
10103
10162
|
showAnswer: i
|
|
10104
10163
|
});
|
|
10105
10164
|
case "judgement":
|
|
10106
|
-
return (0, t.jsx)(
|
|
10165
|
+
return (0, t.jsx)($l, {
|
|
10107
10166
|
element: e,
|
|
10108
10167
|
item: n,
|
|
10109
10168
|
messages: r,
|
|
10110
10169
|
showAnswer: i
|
|
10111
10170
|
});
|
|
10112
10171
|
case "lineConnect":
|
|
10113
|
-
return (0, t.jsx)(
|
|
10172
|
+
return (0, t.jsx)(eu, {
|
|
10114
10173
|
item: n,
|
|
10115
10174
|
messages: r,
|
|
10116
10175
|
showAnswer: i
|
|
10117
10176
|
});
|
|
10118
10177
|
case "matching":
|
|
10119
|
-
return (0, t.jsx)(
|
|
10178
|
+
return (0, t.jsx)(nu, {
|
|
10120
10179
|
item: n,
|
|
10121
10180
|
messages: r,
|
|
10122
10181
|
showAnswer: i
|
|
@@ -10132,135 +10191,139 @@ var X = {
|
|
|
10132
10191
|
extra: "_extra_1jseb_41",
|
|
10133
10192
|
child: "_child_1jseb_31"
|
|
10134
10193
|
};
|
|
10135
|
-
function
|
|
10136
|
-
var
|
|
10137
|
-
|
|
10138
|
-
n =
|
|
10139
|
-
r =
|
|
10140
|
-
i =
|
|
10141
|
-
|
|
10194
|
+
function cu(_ref167) {
|
|
10195
|
+
var _ref167$childIndexPat = _ref167.childIndexPath,
|
|
10196
|
+
e = _ref167$childIndexPat === void 0 ? [] : _ref167$childIndexPat,
|
|
10197
|
+
n = _ref167.messages,
|
|
10198
|
+
r = _ref167.renderChild,
|
|
10199
|
+
i = _ref167.rootQuestionNumber,
|
|
10200
|
+
a = _ref167.value;
|
|
10201
|
+
return a.children.length === 0 ? (0, t.jsx)("div", {
|
|
10142
10202
|
className: X.empty,
|
|
10143
|
-
children:
|
|
10203
|
+
children: n.previewEmpty
|
|
10144
10204
|
}) : (0, t.jsx)("div", {
|
|
10145
10205
|
className: X.children,
|
|
10146
|
-
children:
|
|
10147
|
-
var
|
|
10148
|
-
|
|
10206
|
+
children: a.children.map(function (n, o) {
|
|
10207
|
+
var s = [].concat(_toConsumableArray(e), [o]),
|
|
10208
|
+
c = Oo(s, a.children.length, i);
|
|
10149
10209
|
return (0, t.jsx)("section", {
|
|
10150
10210
|
className: X.child,
|
|
10151
|
-
children: (0, t.jsx)(
|
|
10211
|
+
children: (0, t.jsx)(Ao, {
|
|
10152
10212
|
indented: !0,
|
|
10153
|
-
number:
|
|
10154
|
-
children: r(
|
|
10213
|
+
number: c,
|
|
10214
|
+
children: r(n, s)
|
|
10155
10215
|
})
|
|
10156
|
-
},
|
|
10216
|
+
}, n.id || o);
|
|
10157
10217
|
})
|
|
10158
10218
|
});
|
|
10159
10219
|
}
|
|
10160
|
-
var
|
|
10161
|
-
function
|
|
10220
|
+
var lu = ["locale"];
|
|
10221
|
+
function uu(e) {
|
|
10162
10222
|
var _e$locale2 = e.locale,
|
|
10163
10223
|
n = _e$locale2 === void 0 ? "zh-CN" : _e$locale2,
|
|
10164
|
-
r = ma(e,
|
|
10165
|
-
i =
|
|
10166
|
-
return (0, t.jsx)(
|
|
10167
|
-
|
|
10168
|
-
|
|
10224
|
+
r = ma(e, lu),
|
|
10225
|
+
i = us(r.value, r.questionTypeTemplates);
|
|
10226
|
+
return (0, t.jsx)(du, C(C({}, r), {}, {
|
|
10227
|
+
childIndexPath: [],
|
|
10228
|
+
messages: yc(n),
|
|
10169
10229
|
value: i
|
|
10170
10230
|
}));
|
|
10171
10231
|
}
|
|
10172
|
-
function
|
|
10173
|
-
var e =
|
|
10174
|
-
n =
|
|
10175
|
-
r =
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
o =
|
|
10181
|
-
s =
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10232
|
+
function du(_ref168) {
|
|
10233
|
+
var e = _ref168.childIndexPath,
|
|
10234
|
+
n = _ref168.className,
|
|
10235
|
+
r = _ref168.messages,
|
|
10236
|
+
i = _ref168.rootQuestionNumber,
|
|
10237
|
+
_ref168$showAnswer = _ref168.showAnswer,
|
|
10238
|
+
a = _ref168$showAnswer === void 0 ? !1 : _ref168$showAnswer,
|
|
10239
|
+
_ref168$showExtraAttr = _ref168.showExtraAttributes,
|
|
10240
|
+
o = _ref168$showExtraAttr === void 0 ? !1 : _ref168$showExtraAttr,
|
|
10241
|
+
s = _ref168.questionTypeTemplates,
|
|
10242
|
+
c = _ref168.value;
|
|
10243
|
+
var l = Zi(s, c);
|
|
10244
|
+
if (!l) return (0, t.jsx)("div", {
|
|
10245
|
+
className: H(X.root, n),
|
|
10185
10246
|
children: (0, t.jsx)("div", {
|
|
10186
10247
|
className: X.empty,
|
|
10187
|
-
children:
|
|
10248
|
+
children: r.missingQuestionTypeTemplate
|
|
10188
10249
|
})
|
|
10189
10250
|
});
|
|
10190
|
-
var
|
|
10251
|
+
var u = l.elements.length === 0 ? null : (0, t.jsx)("div", {
|
|
10191
10252
|
className: X["element-list"],
|
|
10192
|
-
children:
|
|
10193
|
-
var
|
|
10253
|
+
children: l.elements.map(function (e, n) {
|
|
10254
|
+
var i = Yt(c, n, e);
|
|
10194
10255
|
return (0, t.jsx)("section", {
|
|
10195
10256
|
className: X.element,
|
|
10196
|
-
children: (0, t.jsx)(
|
|
10257
|
+
children: (0, t.jsx)(ou, {
|
|
10197
10258
|
element: e,
|
|
10198
|
-
item:
|
|
10199
|
-
messages:
|
|
10200
|
-
showAnswer:
|
|
10259
|
+
item: i,
|
|
10260
|
+
messages: r,
|
|
10261
|
+
showAnswer: a && l.hasAnswer
|
|
10201
10262
|
})
|
|
10202
|
-
}, "".concat(e.type, "-").concat(
|
|
10263
|
+
}, "".concat(e.type, "-").concat(n));
|
|
10203
10264
|
})
|
|
10204
10265
|
}),
|
|
10205
|
-
|
|
10266
|
+
d = o ? (0, t.jsx)("div", {
|
|
10206
10267
|
className: X["element-list"],
|
|
10207
|
-
children:
|
|
10208
|
-
var i = Xt(
|
|
10268
|
+
children: l.extras.map(function (e, n) {
|
|
10269
|
+
var i = Xt(c, n, e);
|
|
10209
10270
|
return A(i.content) ? null : (0, t.jsxs)("section", {
|
|
10210
10271
|
className: X.extra,
|
|
10211
|
-
children: [(0, t.jsx)(
|
|
10272
|
+
children: [(0, t.jsx)(kc, {
|
|
10212
10273
|
children: e.name
|
|
10213
|
-
}), (0, t.jsx)(
|
|
10214
|
-
element:
|
|
10215
|
-
item:
|
|
10216
|
-
messages:
|
|
10274
|
+
}), (0, t.jsx)(ou, {
|
|
10275
|
+
element: pu(e),
|
|
10276
|
+
item: mu(i),
|
|
10277
|
+
messages: r,
|
|
10217
10278
|
showAnswer: !1
|
|
10218
10279
|
})]
|
|
10219
|
-
}, "".concat(e.type, "-").concat(
|
|
10280
|
+
}, "".concat(e.type, "-").concat(n));
|
|
10220
10281
|
})
|
|
10221
10282
|
}) : null,
|
|
10222
|
-
|
|
10223
|
-
children: [
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
renderChild: function renderChild(e,
|
|
10227
|
-
return (0, t.jsx)(
|
|
10228
|
-
|
|
10229
|
-
messages:
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10283
|
+
f = (0, t.jsxs)(t.Fragment, {
|
|
10284
|
+
children: [u, c.children.length === 0 ? null : (0, t.jsx)(cu, {
|
|
10285
|
+
childIndexPath: e,
|
|
10286
|
+
messages: r,
|
|
10287
|
+
renderChild: function renderChild(e, n) {
|
|
10288
|
+
return (0, t.jsx)(du, {
|
|
10289
|
+
childIndexPath: n,
|
|
10290
|
+
messages: r,
|
|
10291
|
+
rootQuestionNumber: i,
|
|
10292
|
+
showAnswer: a,
|
|
10293
|
+
showExtraAttributes: o,
|
|
10294
|
+
questionTypeTemplates: s,
|
|
10233
10295
|
value: e
|
|
10234
10296
|
});
|
|
10235
10297
|
},
|
|
10236
|
-
|
|
10237
|
-
|
|
10298
|
+
rootQuestionNumber: i,
|
|
10299
|
+
value: c
|
|
10300
|
+
}), d]
|
|
10238
10301
|
});
|
|
10239
10302
|
return (0, t.jsx)("div", {
|
|
10240
|
-
className: H(X.root,
|
|
10241
|
-
children:
|
|
10303
|
+
className: H(X.root, n),
|
|
10304
|
+
children: fu(l, c) ? (0, t.jsx)("div", {
|
|
10242
10305
|
className: X.empty,
|
|
10243
|
-
children:
|
|
10244
|
-
}) :
|
|
10306
|
+
children: r.previewEmpty
|
|
10307
|
+
}) : f
|
|
10245
10308
|
});
|
|
10246
10309
|
}
|
|
10247
|
-
function
|
|
10310
|
+
function fu(e, t) {
|
|
10248
10311
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
10249
10312
|
}
|
|
10250
|
-
function
|
|
10313
|
+
function pu(e) {
|
|
10251
10314
|
return {
|
|
10252
10315
|
config: {},
|
|
10253
10316
|
name: e.name,
|
|
10254
10317
|
type: "richText"
|
|
10255
10318
|
};
|
|
10256
10319
|
}
|
|
10257
|
-
function
|
|
10320
|
+
function mu(e) {
|
|
10258
10321
|
return {
|
|
10259
10322
|
content: e.content,
|
|
10260
10323
|
type: "richText"
|
|
10261
10324
|
};
|
|
10262
10325
|
}
|
|
10263
|
-
var
|
|
10326
|
+
var hu = {
|
|
10264
10327
|
root: "_root_17bqr_1",
|
|
10265
10328
|
toolbar: "_toolbar_17bqr_26",
|
|
10266
10329
|
"toolbar-title": "_toolbar-title_17bqr_36",
|
|
@@ -10315,7 +10378,7 @@ var uu = {
|
|
|
10315
10378
|
"palette-section-title": "_palette-section-title_vhj2r_62",
|
|
10316
10379
|
"palette-button": "_palette-button_vhj2r_70"
|
|
10317
10380
|
},
|
|
10318
|
-
|
|
10381
|
+
gu = {
|
|
10319
10382
|
"en-US": {
|
|
10320
10383
|
addElement: "Add element",
|
|
10321
10384
|
addExtra: "Add extra attribute",
|
|
@@ -10449,26 +10512,26 @@ var uu = {
|
|
|
10449
10512
|
wordBuilderLabel: "\u7EC4\u8BCD\u62FC\u5199"
|
|
10450
10513
|
}
|
|
10451
10514
|
};
|
|
10452
|
-
function
|
|
10515
|
+
function _u(e, t) {
|
|
10453
10516
|
var n;
|
|
10454
10517
|
return (n = e.extraDescriptions.get(t)) == null ? t : n;
|
|
10455
10518
|
}
|
|
10456
|
-
function
|
|
10519
|
+
function vu(e, t) {
|
|
10457
10520
|
var n;
|
|
10458
10521
|
return (n = e.extraLabels.get(t)) == null ? t : n;
|
|
10459
10522
|
}
|
|
10460
|
-
function
|
|
10523
|
+
function yu(e) {
|
|
10461
10524
|
switch (e) {
|
|
10462
10525
|
case "en-US":
|
|
10463
|
-
return
|
|
10526
|
+
return gu["en-US"];
|
|
10464
10527
|
case "zh-CN":
|
|
10465
|
-
return
|
|
10528
|
+
return gu["zh-CN"];
|
|
10466
10529
|
}
|
|
10467
10530
|
}
|
|
10468
|
-
function
|
|
10469
|
-
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription :
|
|
10531
|
+
function bu(e, t) {
|
|
10532
|
+
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : Cu(e, t);
|
|
10470
10533
|
}
|
|
10471
|
-
var
|
|
10534
|
+
var xu = {
|
|
10472
10535
|
choice: function choice(e) {
|
|
10473
10536
|
return e.optionGroupDescription;
|
|
10474
10537
|
},
|
|
@@ -10500,7 +10563,7 @@ var gu = {
|
|
|
10500
10563
|
return e.wordBuilderDescription;
|
|
10501
10564
|
}
|
|
10502
10565
|
},
|
|
10503
|
-
|
|
10566
|
+
Su = {
|
|
10504
10567
|
choice: function choice(e) {
|
|
10505
10568
|
return e.optionGroupLabel;
|
|
10506
10569
|
},
|
|
@@ -10532,40 +10595,40 @@ var gu = {
|
|
|
10532
10595
|
return e.wordBuilderLabel;
|
|
10533
10596
|
}
|
|
10534
10597
|
};
|
|
10535
|
-
function
|
|
10536
|
-
return
|
|
10598
|
+
function Cu(e, t) {
|
|
10599
|
+
return xu[t](e);
|
|
10537
10600
|
}
|
|
10538
|
-
function
|
|
10539
|
-
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel :
|
|
10601
|
+
function wu(e, t) {
|
|
10602
|
+
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : Tu(e, t);
|
|
10540
10603
|
}
|
|
10541
|
-
function
|
|
10542
|
-
return
|
|
10604
|
+
function Tu(e, t) {
|
|
10605
|
+
return Su[t](e);
|
|
10543
10606
|
}
|
|
10544
|
-
function
|
|
10607
|
+
function Eu(e, t) {
|
|
10545
10608
|
var n;
|
|
10546
10609
|
return (n = e.optionValueLabels.get(t)) == null ? t : n;
|
|
10547
10610
|
}
|
|
10548
|
-
function
|
|
10611
|
+
function Du(e, t) {
|
|
10549
10612
|
var n;
|
|
10550
10613
|
return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
|
|
10551
10614
|
}
|
|
10552
|
-
function
|
|
10615
|
+
function Ou(e, t) {
|
|
10553
10616
|
var n;
|
|
10554
10617
|
return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
|
|
10555
10618
|
}
|
|
10556
|
-
function
|
|
10557
|
-
var e =
|
|
10558
|
-
r =
|
|
10559
|
-
i =
|
|
10560
|
-
a =
|
|
10561
|
-
o =
|
|
10562
|
-
s =
|
|
10563
|
-
c =
|
|
10564
|
-
l =
|
|
10565
|
-
var
|
|
10566
|
-
|
|
10567
|
-
u =
|
|
10568
|
-
d =
|
|
10619
|
+
function ku(_ref169) {
|
|
10620
|
+
var e = _ref169.elements,
|
|
10621
|
+
r = _ref169.extras,
|
|
10622
|
+
i = _ref169.labels,
|
|
10623
|
+
a = _ref169.onDeleteElement,
|
|
10624
|
+
o = _ref169.onDeleteExtra,
|
|
10625
|
+
s = _ref169.onMoveElement,
|
|
10626
|
+
c = _ref169.onSelectElement,
|
|
10627
|
+
l = _ref169.selectedElementClientId;
|
|
10628
|
+
var _ref170 = (0, n.useState)(null),
|
|
10629
|
+
_ref171 = _slicedToArray(_ref170, 2),
|
|
10630
|
+
u = _ref171[0],
|
|
10631
|
+
d = _ref171[1];
|
|
10569
10632
|
return (0, t.jsxs)("section", {
|
|
10570
10633
|
className: Q.panel,
|
|
10571
10634
|
children: [(0, t.jsxs)("div", {
|
|
@@ -10584,7 +10647,7 @@ function wu(_ref165) {
|
|
|
10584
10647
|
className: Z["element-list"],
|
|
10585
10648
|
children: [e.map(function (n, r) {
|
|
10586
10649
|
var o = n.clientId === l,
|
|
10587
|
-
f =
|
|
10650
|
+
f = wu(i, n.type);
|
|
10588
10651
|
return (0, t.jsxs)("div", {
|
|
10589
10652
|
className: "".concat(Z["element-card"], " ").concat(o ? Z.active : ""),
|
|
10590
10653
|
onClick: function onClick() {
|
|
@@ -10653,7 +10716,7 @@ function wu(_ref165) {
|
|
|
10653
10716
|
children: i.extraTitle
|
|
10654
10717
|
}) : null, r.map(function (n, r) {
|
|
10655
10718
|
var a = n.clientId === l,
|
|
10656
|
-
s =
|
|
10719
|
+
s = vu(i, n.type);
|
|
10657
10720
|
return (0, t.jsxs)("div", {
|
|
10658
10721
|
className: "".concat(Z["element-card"], " ").concat(a ? Z.active : ""),
|
|
10659
10722
|
onClick: function onClick() {
|
|
@@ -10705,11 +10768,11 @@ function wu(_ref165) {
|
|
|
10705
10768
|
})]
|
|
10706
10769
|
});
|
|
10707
10770
|
}
|
|
10708
|
-
function
|
|
10709
|
-
var e =
|
|
10710
|
-
n =
|
|
10711
|
-
r =
|
|
10712
|
-
i =
|
|
10771
|
+
function Au(_ref172) {
|
|
10772
|
+
var e = _ref172.addedExtraTypes,
|
|
10773
|
+
n = _ref172.labels,
|
|
10774
|
+
r = _ref172.onAddElement,
|
|
10775
|
+
i = _ref172.onAddExtra;
|
|
10713
10776
|
var a = new Set(e);
|
|
10714
10777
|
return (0, t.jsxs)("aside", {
|
|
10715
10778
|
className: Q.panel,
|
|
@@ -10723,16 +10786,16 @@ function Tu(_ref168) {
|
|
|
10723
10786
|
className: Q.palette,
|
|
10724
10787
|
children: ee.map(function (e) {
|
|
10725
10788
|
return (0, t.jsxs)("button", {
|
|
10726
|
-
"aria-label": "".concat(n.addElement, ": ").concat(
|
|
10789
|
+
"aria-label": "".concat(n.addElement, ": ").concat(wu(n, e)),
|
|
10727
10790
|
className: Q["palette-button"],
|
|
10728
10791
|
onClick: function onClick() {
|
|
10729
10792
|
return r(e);
|
|
10730
10793
|
},
|
|
10731
10794
|
type: "button",
|
|
10732
10795
|
children: [(0, t.jsx)("strong", {
|
|
10733
|
-
children:
|
|
10796
|
+
children: wu(n, e)
|
|
10734
10797
|
}), (0, t.jsx)("small", {
|
|
10735
|
-
children:
|
|
10798
|
+
children: bu(n, e)
|
|
10736
10799
|
})]
|
|
10737
10800
|
}, e);
|
|
10738
10801
|
})
|
|
@@ -10746,7 +10809,7 @@ function Tu(_ref168) {
|
|
|
10746
10809
|
children: w.map(function (e) {
|
|
10747
10810
|
var r = a.has(e);
|
|
10748
10811
|
return (0, t.jsxs)("button", {
|
|
10749
|
-
"aria-label": "".concat(n.addExtra, ": ").concat(
|
|
10812
|
+
"aria-label": "".concat(n.addExtra, ": ").concat(vu(n, e)),
|
|
10750
10813
|
className: Q["palette-button"],
|
|
10751
10814
|
disabled: r,
|
|
10752
10815
|
onClick: function onClick() {
|
|
@@ -10754,9 +10817,9 @@ function Tu(_ref168) {
|
|
|
10754
10817
|
},
|
|
10755
10818
|
type: "button",
|
|
10756
10819
|
children: [(0, t.jsx)("strong", {
|
|
10757
|
-
children:
|
|
10820
|
+
children: vu(n, e)
|
|
10758
10821
|
}), (0, t.jsx)("small", {
|
|
10759
|
-
children:
|
|
10822
|
+
children: _u(n, e)
|
|
10760
10823
|
})]
|
|
10761
10824
|
}, e);
|
|
10762
10825
|
})
|
|
@@ -10774,26 +10837,26 @@ var $ = {
|
|
|
10774
10837
|
textarea: "_textarea_tgswd_28",
|
|
10775
10838
|
empty: "_empty_tgswd_61"
|
|
10776
10839
|
},
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
function
|
|
10786
|
-
var e =
|
|
10787
|
-
n =
|
|
10788
|
-
r =
|
|
10789
|
-
i =
|
|
10790
|
-
a =
|
|
10791
|
-
o =
|
|
10792
|
-
s =
|
|
10793
|
-
c =
|
|
10794
|
-
l =
|
|
10795
|
-
u =
|
|
10796
|
-
var d =
|
|
10840
|
+
ju = ["none", "sharedPool", "perBlankOptions"],
|
|
10841
|
+
Mu = ["upperAlpha", "lowerAlpha", "number"],
|
|
10842
|
+
Nu = ["number", "upperAlpha", "lowerAlpha", "lowerRoman", "chineseNumber", "none"],
|
|
10843
|
+
Pu = [2, 3, 4, 5],
|
|
10844
|
+
Fu = ["standard", "table"],
|
|
10845
|
+
Iu = ["single", "multiple"],
|
|
10846
|
+
Lu = ["spelling", "sentence"],
|
|
10847
|
+
Ru = ["correctWrong", "yesNo", "validInvalid", "tf", "rightWrong", "checkCross"];
|
|
10848
|
+
function zu(_ref173) {
|
|
10849
|
+
var e = _ref173.description,
|
|
10850
|
+
n = _ref173.globalConfig,
|
|
10851
|
+
r = _ref173.isSubjective,
|
|
10852
|
+
i = _ref173.labels,
|
|
10853
|
+
a = _ref173.onElementChange,
|
|
10854
|
+
o = _ref173.onExtraChange,
|
|
10855
|
+
s = _ref173.onGlobalConfigChange,
|
|
10856
|
+
c = _ref173.onMetadataChange,
|
|
10857
|
+
l = _ref173.selectedExtra,
|
|
10858
|
+
u = _ref173.selectedElement;
|
|
10859
|
+
var d = Bu({
|
|
10797
10860
|
labels: i,
|
|
10798
10861
|
onElementChange: a,
|
|
10799
10862
|
onExtraChange: o,
|
|
@@ -10904,12 +10967,12 @@ function Pu(_ref169) {
|
|
|
10904
10967
|
})]
|
|
10905
10968
|
});
|
|
10906
10969
|
}
|
|
10907
|
-
function
|
|
10908
|
-
var e =
|
|
10909
|
-
n =
|
|
10910
|
-
r =
|
|
10911
|
-
i =
|
|
10912
|
-
a =
|
|
10970
|
+
function Bu(_ref174) {
|
|
10971
|
+
var e = _ref174.labels,
|
|
10972
|
+
n = _ref174.onElementChange,
|
|
10973
|
+
r = _ref174.onExtraChange,
|
|
10974
|
+
i = _ref174.selectedElement,
|
|
10975
|
+
a = _ref174.selectedExtra;
|
|
10913
10976
|
return i ? (0, t.jsxs)("div", {
|
|
10914
10977
|
className: $["form-stack"],
|
|
10915
10978
|
children: [(0, t.jsxs)("label", {
|
|
@@ -10938,7 +11001,7 @@ function Fu(_ref170) {
|
|
|
10938
11001
|
},
|
|
10939
11002
|
value: i.enName
|
|
10940
11003
|
})]
|
|
10941
|
-
}),
|
|
11004
|
+
}), Vu(i, e, n)]
|
|
10942
11005
|
}) : a ? (0, t.jsxs)("div", {
|
|
10943
11006
|
className: $["form-stack"],
|
|
10944
11007
|
children: [(0, t.jsxs)("label", {
|
|
@@ -10973,10 +11036,10 @@ function Fu(_ref170) {
|
|
|
10973
11036
|
children: e.noElement
|
|
10974
11037
|
});
|
|
10975
11038
|
}
|
|
10976
|
-
function
|
|
10977
|
-
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null :
|
|
11039
|
+
function Vu(e, t, n) {
|
|
11040
|
+
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : Hu(e, t, n);
|
|
10978
11041
|
}
|
|
10979
|
-
function
|
|
11042
|
+
function Hu(e, n, r) {
|
|
10980
11043
|
switch (e.type) {
|
|
10981
11044
|
case "inlineFill":
|
|
10982
11045
|
return (0, t.jsxs)(t.Fragment, {
|
|
@@ -10994,10 +11057,10 @@ function Lu(e, n, r) {
|
|
|
10994
11057
|
}));
|
|
10995
11058
|
},
|
|
10996
11059
|
value: e.config.candidateMode,
|
|
10997
|
-
children:
|
|
11060
|
+
children: ju.map(function (e) {
|
|
10998
11061
|
return (0, t.jsx)("option", {
|
|
10999
11062
|
value: e,
|
|
11000
|
-
children:
|
|
11063
|
+
children: Du(n, e)
|
|
11001
11064
|
}, e);
|
|
11002
11065
|
})
|
|
11003
11066
|
})]
|
|
@@ -11033,10 +11096,10 @@ function Lu(e, n, r) {
|
|
|
11033
11096
|
}));
|
|
11034
11097
|
},
|
|
11035
11098
|
value: e.config.builderMode,
|
|
11036
|
-
children:
|
|
11099
|
+
children: Lu.map(function (e) {
|
|
11037
11100
|
return (0, t.jsx)("option", {
|
|
11038
11101
|
value: e,
|
|
11039
|
-
children:
|
|
11102
|
+
children: Eu(n, e)
|
|
11040
11103
|
}, e);
|
|
11041
11104
|
})
|
|
11042
11105
|
})]
|
|
@@ -11056,23 +11119,23 @@ function Lu(e, n, r) {
|
|
|
11056
11119
|
}));
|
|
11057
11120
|
},
|
|
11058
11121
|
value: e.config.judgeAnswerMode,
|
|
11059
|
-
children:
|
|
11122
|
+
children: Ru.map(function (e) {
|
|
11060
11123
|
return (0, t.jsx)("option", {
|
|
11061
11124
|
value: e,
|
|
11062
|
-
children:
|
|
11125
|
+
children: Eu(n, e)
|
|
11063
11126
|
}, e);
|
|
11064
11127
|
})
|
|
11065
11128
|
})]
|
|
11066
11129
|
});
|
|
11067
11130
|
case "choice":
|
|
11068
|
-
return
|
|
11131
|
+
return Uu(e, n, r);
|
|
11069
11132
|
case "lineConnect":
|
|
11070
|
-
return
|
|
11133
|
+
return Wu(e, n, r);
|
|
11071
11134
|
case "matching":
|
|
11072
|
-
return
|
|
11135
|
+
return Gu(e, n, r);
|
|
11073
11136
|
}
|
|
11074
11137
|
}
|
|
11075
|
-
function
|
|
11138
|
+
function Uu(e, n, r) {
|
|
11076
11139
|
return (0, t.jsxs)(t.Fragment, {
|
|
11077
11140
|
children: [(0, t.jsxs)("label", {
|
|
11078
11141
|
className: $["form-row"],
|
|
@@ -11088,10 +11151,10 @@ function Ru(e, n, r) {
|
|
|
11088
11151
|
}));
|
|
11089
11152
|
},
|
|
11090
11153
|
value: e.config.selectionType,
|
|
11091
|
-
children:
|
|
11154
|
+
children: Iu.map(function (e) {
|
|
11092
11155
|
return (0, t.jsx)("option", {
|
|
11093
11156
|
value: e,
|
|
11094
|
-
children:
|
|
11157
|
+
children: Eu(n, e)
|
|
11095
11158
|
}, e);
|
|
11096
11159
|
})
|
|
11097
11160
|
})]
|
|
@@ -11109,10 +11172,10 @@ function Ru(e, n, r) {
|
|
|
11109
11172
|
}));
|
|
11110
11173
|
},
|
|
11111
11174
|
value: e.config.optionLabelStyle,
|
|
11112
|
-
children:
|
|
11175
|
+
children: Mu.map(function (e) {
|
|
11113
11176
|
return (0, t.jsx)("option", {
|
|
11114
11177
|
value: e,
|
|
11115
|
-
children:
|
|
11178
|
+
children: Eu(n, e)
|
|
11116
11179
|
}, e);
|
|
11117
11180
|
})
|
|
11118
11181
|
})]
|
|
@@ -11130,18 +11193,18 @@ function Ru(e, n, r) {
|
|
|
11130
11193
|
}));
|
|
11131
11194
|
},
|
|
11132
11195
|
value: e.config.renderer,
|
|
11133
|
-
children:
|
|
11196
|
+
children: Fu.map(function (e) {
|
|
11134
11197
|
return (0, t.jsx)("option", {
|
|
11135
11198
|
value: e,
|
|
11136
|
-
children:
|
|
11199
|
+
children: Eu(n, e)
|
|
11137
11200
|
}, e);
|
|
11138
11201
|
})
|
|
11139
11202
|
})]
|
|
11140
11203
|
})]
|
|
11141
11204
|
});
|
|
11142
11205
|
}
|
|
11143
|
-
function
|
|
11144
|
-
var i =
|
|
11206
|
+
function Wu(e, n, r) {
|
|
11207
|
+
var i = Ku(e.config.columns);
|
|
11145
11208
|
return (0, t.jsxs)(t.Fragment, {
|
|
11146
11209
|
children: [(0, t.jsxs)("label", {
|
|
11147
11210
|
className: $["form-row"],
|
|
@@ -11152,12 +11215,12 @@ function zu(e, n, r) {
|
|
|
11152
11215
|
onChange: function onChange(t) {
|
|
11153
11216
|
return r(C(C({}, e), {}, {
|
|
11154
11217
|
config: {
|
|
11155
|
-
columns:
|
|
11218
|
+
columns: Ju(i, Number(t.target.value))
|
|
11156
11219
|
}
|
|
11157
11220
|
}));
|
|
11158
11221
|
},
|
|
11159
11222
|
value: i.length,
|
|
11160
|
-
children:
|
|
11223
|
+
children: Pu.map(function (e) {
|
|
11161
11224
|
return (0, t.jsx)("option", {
|
|
11162
11225
|
value: e,
|
|
11163
11226
|
children: e
|
|
@@ -11183,10 +11246,10 @@ function zu(e, n, r) {
|
|
|
11183
11246
|
}));
|
|
11184
11247
|
},
|
|
11185
11248
|
value: a.labelStyle,
|
|
11186
|
-
children:
|
|
11249
|
+
children: Nu.map(function (e) {
|
|
11187
11250
|
return (0, t.jsx)("option", {
|
|
11188
11251
|
value: e,
|
|
11189
|
-
children:
|
|
11252
|
+
children: Ou(n, e)
|
|
11190
11253
|
}, e);
|
|
11191
11254
|
})
|
|
11192
11255
|
})]
|
|
@@ -11194,8 +11257,8 @@ function zu(e, n, r) {
|
|
|
11194
11257
|
})]
|
|
11195
11258
|
});
|
|
11196
11259
|
}
|
|
11197
|
-
function
|
|
11198
|
-
var i =
|
|
11260
|
+
function Gu(e, n, r) {
|
|
11261
|
+
var i = qu(e.config.columns);
|
|
11199
11262
|
return (0, t.jsx)(t.Fragment, {
|
|
11200
11263
|
children: i.map(function (a, o) {
|
|
11201
11264
|
return (0, t.jsxs)("label", {
|
|
@@ -11216,10 +11279,10 @@ function Bu(e, n, r) {
|
|
|
11216
11279
|
}));
|
|
11217
11280
|
},
|
|
11218
11281
|
value: a.labelStyle,
|
|
11219
|
-
children:
|
|
11282
|
+
children: Nu.map(function (e) {
|
|
11220
11283
|
return (0, t.jsx)("option", {
|
|
11221
11284
|
value: e,
|
|
11222
|
-
children:
|
|
11285
|
+
children: Ou(n, e)
|
|
11223
11286
|
}, e);
|
|
11224
11287
|
})
|
|
11225
11288
|
})]
|
|
@@ -11227,46 +11290,46 @@ function Bu(e, n, r) {
|
|
|
11227
11290
|
})
|
|
11228
11291
|
});
|
|
11229
11292
|
}
|
|
11230
|
-
function
|
|
11293
|
+
function Ku(e) {
|
|
11231
11294
|
var t = e.slice(0, 5);
|
|
11232
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11295
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Nu.slice(t.length, 2).map(function (e) {
|
|
11233
11296
|
return {
|
|
11234
11297
|
labelStyle: e
|
|
11235
11298
|
};
|
|
11236
11299
|
})));
|
|
11237
11300
|
}
|
|
11238
|
-
function
|
|
11301
|
+
function qu(e) {
|
|
11239
11302
|
var t = e.slice(0, 2);
|
|
11240
|
-
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(
|
|
11303
|
+
return t.length >= 2 ? t : [].concat(_toConsumableArray(t), _toConsumableArray(Nu.slice(t.length, 2).map(function (e) {
|
|
11241
11304
|
return {
|
|
11242
11305
|
labelStyle: e
|
|
11243
11306
|
};
|
|
11244
11307
|
})));
|
|
11245
11308
|
}
|
|
11246
|
-
function
|
|
11309
|
+
function Ju(e, t) {
|
|
11247
11310
|
return Array.from({
|
|
11248
11311
|
length: Math.min(5, Math.max(2, t))
|
|
11249
11312
|
}, function (t, n) {
|
|
11250
11313
|
var r, i;
|
|
11251
11314
|
return (r = e.slice(n, n + 1)[0]) == null ? {
|
|
11252
|
-
labelStyle: (i =
|
|
11315
|
+
labelStyle: (i = Nu[n]) == null ? "number" : i
|
|
11253
11316
|
} : r;
|
|
11254
11317
|
});
|
|
11255
11318
|
}
|
|
11256
|
-
function
|
|
11257
|
-
var
|
|
11258
|
-
e =
|
|
11259
|
-
r =
|
|
11260
|
-
i =
|
|
11319
|
+
function Yu(_ref175) {
|
|
11320
|
+
var _ref175$locale = _ref175.locale,
|
|
11321
|
+
e = _ref175$locale === void 0 ? "zh-CN" : _ref175$locale,
|
|
11322
|
+
r = _ref175.onChange,
|
|
11323
|
+
i = _ref175.value;
|
|
11261
11324
|
var a, o, s, c;
|
|
11262
|
-
var l =
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
u =
|
|
11266
|
-
d =
|
|
11267
|
-
|
|
11268
|
-
f =
|
|
11269
|
-
p =
|
|
11325
|
+
var l = yu(e),
|
|
11326
|
+
_ref176 = (0, n.useState)((a = (o = i.elements[0]) == null ? void 0 : o.clientId) == null ? null : a),
|
|
11327
|
+
_ref177 = _slicedToArray(_ref176, 2),
|
|
11328
|
+
u = _ref177[0],
|
|
11329
|
+
d = _ref177[1],
|
|
11330
|
+
_Xu = Xu(i, u),
|
|
11331
|
+
f = _Xu.selectedElement,
|
|
11332
|
+
p = _Xu.selectedExtra;
|
|
11270
11333
|
function m(e) {
|
|
11271
11334
|
var t = oe(e, i.elements);
|
|
11272
11335
|
r(C(C({}, i), {}, {
|
|
@@ -11284,11 +11347,11 @@ function Wu(_ref171) {
|
|
|
11284
11347
|
}
|
|
11285
11348
|
function g(e) {
|
|
11286
11349
|
var t = ue(i, e);
|
|
11287
|
-
r(t), d(
|
|
11350
|
+
r(t), d(Zu(t));
|
|
11288
11351
|
}
|
|
11289
11352
|
function _(e) {
|
|
11290
11353
|
var t = le(i, e);
|
|
11291
|
-
r(t), d(
|
|
11354
|
+
r(t), d(Zu(t));
|
|
11292
11355
|
}
|
|
11293
11356
|
function v(e) {
|
|
11294
11357
|
r(pe(i, e.clientId, e));
|
|
@@ -11303,19 +11366,19 @@ function Wu(_ref171) {
|
|
|
11303
11366
|
r(he(i, e));
|
|
11304
11367
|
}
|
|
11305
11368
|
return (0, t.jsx)("section", {
|
|
11306
|
-
className:
|
|
11369
|
+
className: hu.root,
|
|
11307
11370
|
children: (0, t.jsx)("div", {
|
|
11308
11371
|
className: Q.shell,
|
|
11309
11372
|
children: (0, t.jsxs)("div", {
|
|
11310
11373
|
className: Q.grid,
|
|
11311
|
-
children: [(0, t.jsx)(
|
|
11374
|
+
children: [(0, t.jsx)(Au, {
|
|
11312
11375
|
addedExtraTypes: i.extras.map(function (e) {
|
|
11313
11376
|
return e.type;
|
|
11314
11377
|
}),
|
|
11315
11378
|
labels: l,
|
|
11316
11379
|
onAddElement: m,
|
|
11317
11380
|
onAddExtra: h
|
|
11318
|
-
}), (0, t.jsx)(
|
|
11381
|
+
}), (0, t.jsx)(ku, {
|
|
11319
11382
|
elements: i.elements,
|
|
11320
11383
|
extras: i.extras,
|
|
11321
11384
|
labels: l,
|
|
@@ -11326,7 +11389,7 @@ function Wu(_ref171) {
|
|
|
11326
11389
|
},
|
|
11327
11390
|
onSelectElement: d,
|
|
11328
11391
|
selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
|
|
11329
|
-
}), (0, t.jsx)(
|
|
11392
|
+
}), (0, t.jsx)(zu, {
|
|
11330
11393
|
description: i.description,
|
|
11331
11394
|
globalConfig: i.globalConfig,
|
|
11332
11395
|
isSubjective: i.isSubjective,
|
|
@@ -11342,7 +11405,7 @@ function Wu(_ref171) {
|
|
|
11342
11405
|
})
|
|
11343
11406
|
});
|
|
11344
11407
|
}
|
|
11345
|
-
function
|
|
11408
|
+
function Xu(e, t) {
|
|
11346
11409
|
var n, r, i, a;
|
|
11347
11410
|
var o = (n = e.elements.find(function (e) {
|
|
11348
11411
|
return e.clientId === t;
|
|
@@ -11358,8 +11421,8 @@ function Gu(e, t) {
|
|
|
11358
11421
|
selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
|
|
11359
11422
|
};
|
|
11360
11423
|
}
|
|
11361
|
-
function
|
|
11424
|
+
function Zu(e) {
|
|
11362
11425
|
var t, n, r, i;
|
|
11363
11426
|
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;
|
|
11364
11427
|
}
|
|
11365
|
-
exports.QuestionContentEditor =
|
|
11428
|
+
exports.QuestionContentEditor = qo, exports.QuestionPlayer = Rl, exports.QuestionPreview = uu, exports.QuestionRichContentView = G, exports.QuestionStructureEditor = Yu, exports.addBlankToGroup = Fn, exports.alignQuestionContentDraftWithStructure = ln, exports.assignBlankToAnswerGroup = Rn, exports.cn = Ba, exports.createBlankAnswerGroupWithBlank = zn, exports.createEmptyQuestionContentDraft = zt, exports.createEmptyQuestionPlayerResponse = Ps, exports.createEmptyQuestionStructureDraft = ie, exports.createQuestionContentDraftFromSerialized = cn, exports.createQuestionContentId = g, exports.createQuestionContentStructureFromDraft = Xo, exports.createQuestionPreviewDraft = Zo, exports.createQuestionStructureElement = oe, exports.createQuestionStructureExtra = ae, exports.createRichContentValue = O, exports.createRichContentValueFromDocument = Wt, exports.createRichTextContent = Te, exports.deleteBlankFromGroup = In, exports.deleteQuestionStructureElement = ue, exports.deleteQuestionStructureExtra = le, exports.detachBlankFromAnswerGroup = Bn, exports.findQuestionContentQuestionTypeStructure = Yi, exports.findQuestionContentQuestionTypeTemplate = $i, exports.getQuestionContentJudgementOptions = en, exports.getQuestionContentOptionMarker = Zt, exports.getQuestionContentTextMarkerAnswerText = qt, exports.getQuestionStructureDraftChangeKind = $o, exports.getQuestionStructureElementDefaultEnName = D, exports.getQuestionStructureElementDefaultName = E, exports.getQuestionStructureExtraDefaultEnName = _e, exports.getQuestionStructureExtraDefaultName = ge, exports.getRichContentDocument = Jt, exports.getSharedBlankAnswerGroups = Ln, exports.isCompositeQuestionContentStructure = Rt, exports.isQuestionContentDraftEmpty = on, exports.moveQuestionStructureElement = de, exports.normalizeFillTextCandidateState = vn, exports.normalizeRichTextContent = Ee, exports.questionStructureElementTypes = ee, exports.questionStructureExtraTypes = w, exports.reconcileQuestionContentDraftWithTemplates = ea, exports.serializeQuestionContentDraft = sn, exports.serializeQuestionStructureDraft = Qo, exports.updateQuestionStructureElement = pe, exports.updateQuestionStructureExtra = fe, exports.updateQuestionStructureGlobalConfig = me, exports.updateQuestionStructureMetadata = he;
|