@yungu-fed/question-editor 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.css +1 -1
- package/dist/index.js +773 -782
- package/dist/index.mjs +193 -199
- package/dist/question/content-editor/QuestionContentEditor.d.ts.map +1 -1
- package/dist/question/player/QuestionTextResponsePlayer.d.ts +1 -1
- package/dist/question/player/QuestionTextResponsePlayer.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts +0 -6
- package/dist/question/shared/QuestionTextResponsePlaceholder.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2274,9 +2274,10 @@ function ba(e, t = {}) {
|
|
|
2274
2274
|
return Object.entries(t).reduce((e, [t, n]) => e.split(`{{${t}}}`).join(n == null ? "" : String(n)), e);
|
|
2275
2275
|
}
|
|
2276
2276
|
var xa = {
|
|
2277
|
-
root: "
|
|
2278
|
-
"rich-text-root": "_rich-text-
|
|
2279
|
-
"rich-text-toolbar": "_rich-text-
|
|
2277
|
+
root: "_root_1n8kd_1",
|
|
2278
|
+
"rich-text-root": "_rich-text-root_1n8kd_28",
|
|
2279
|
+
"rich-text-toolbar-sticky": "_rich-text-toolbar-sticky_1n8kd_37",
|
|
2280
|
+
"rich-text-toolbar": "_rich-text-toolbar_1n8kd_37"
|
|
2280
2281
|
}, F = {
|
|
2281
2282
|
button: "_button_8wkgm_1",
|
|
2282
2283
|
"button-small": "_button-small_8wkgm_35",
|
|
@@ -5127,9 +5128,12 @@ function is({ disabled: t = !1, locale: n = "zh-CN", onChange: r, questionTypeTe
|
|
|
5127
5128
|
].join(" "),
|
|
5128
5129
|
plugins: m.plugins,
|
|
5129
5130
|
uploadImage: s,
|
|
5130
|
-
children: [t ? null : /* @__PURE__ */ a(
|
|
5131
|
-
|
|
5132
|
-
|
|
5131
|
+
children: [t ? null : /* @__PURE__ */ a("div", {
|
|
5132
|
+
className: xa["rich-text-toolbar-sticky"],
|
|
5133
|
+
children: /* @__PURE__ */ a(e.Toolbar, {
|
|
5134
|
+
"aria-label": "Rich text toolbar",
|
|
5135
|
+
className: xa["rich-text-toolbar"]
|
|
5136
|
+
})
|
|
5133
5137
|
}), /* @__PURE__ */ a(ma.Provider, {
|
|
5134
5138
|
value: !0,
|
|
5135
5139
|
children: y
|
|
@@ -7099,21 +7103,11 @@ function zl({ disabled: e, item: t, messages: n, onChange: r, response: i, respo
|
|
|
7099
7103
|
selectedMarkers: c.selectedMarkers
|
|
7100
7104
|
});
|
|
7101
7105
|
}
|
|
7102
|
-
var Bl = { placeholder: "_placeholder_xde95_1" };
|
|
7103
|
-
//#endregion
|
|
7104
|
-
//#region src/question/shared/QuestionTextResponsePlaceholder.tsx
|
|
7105
|
-
function Vl({ label: e }) {
|
|
7106
|
-
return /* @__PURE__ */ a("div", {
|
|
7107
|
-
"aria-label": e,
|
|
7108
|
-
className: Bl.placeholder,
|
|
7109
|
-
children: e
|
|
7110
|
-
});
|
|
7111
|
-
}
|
|
7112
7106
|
//#endregion
|
|
7113
7107
|
//#region src/question/player/QuestionTextResponsePlayer.tsx
|
|
7114
|
-
function
|
|
7108
|
+
function Bl({ disabled: e, locale: t, label: n, messages: r, onChange: i, response: o, responseIndex: s, uploadImage: c }) {
|
|
7115
7109
|
let l = rc(o, s);
|
|
7116
|
-
return e ? P(l.content) ?
|
|
7110
|
+
return e ? P(l.content) ? null : /* @__PURE__ */ a(K, { content: l.content }) : /* @__PURE__ */ a(Ia, {
|
|
7117
7111
|
ariaLabel: n,
|
|
7118
7112
|
locale: t,
|
|
7119
7113
|
onChange: (e) => i({
|
|
@@ -7128,7 +7122,7 @@ function Hl({ disabled: e, locale: t, label: n, messages: r, onChange: i, respon
|
|
|
7128
7122
|
}
|
|
7129
7123
|
//#endregion
|
|
7130
7124
|
//#region src/question/renderers/wordBuilderAnswers.tsx
|
|
7131
|
-
function
|
|
7125
|
+
function Vl(e, t) {
|
|
7132
7126
|
return e.blanks.reduce((n, r) => {
|
|
7133
7127
|
var i;
|
|
7134
7128
|
let o = (i = e.answers[r]) == null ? void 0 : i.trim();
|
|
@@ -7141,14 +7135,14 @@ function Ul(e, t) {
|
|
|
7141
7135
|
}
|
|
7142
7136
|
//#endregion
|
|
7143
7137
|
//#region src/question/player/QuestionPlayerWordBuilder.module.css
|
|
7144
|
-
var
|
|
7138
|
+
var Hl = {
|
|
7145
7139
|
"word-builder-blank": "_word-builder-blank_ftw6q_1",
|
|
7146
7140
|
"word-builder-candidate-list": "_word-builder-candidate-list_ftw6q_30"
|
|
7147
7141
|
};
|
|
7148
7142
|
//#endregion
|
|
7149
7143
|
//#region src/question/player/QuestionWordBuilderPlayer.tsx
|
|
7150
|
-
function
|
|
7151
|
-
let u = En(n, !0, t), d = Xs(s, c, u.blanks), f =
|
|
7144
|
+
function Ul({ disabled: e, element: t, item: n, messages: r, onChange: i, response: s, responseIndex: c, showAnswer: l }) {
|
|
7145
|
+
let u = En(n, !0, t), d = Xs(s, c, u.blanks), f = Vl(u, r.blankLabel);
|
|
7152
7146
|
function p(e, t) {
|
|
7153
7147
|
i(k(k({}, d), {}, { answers: k(k({}, d.answers), {}, { [e]: t }) }));
|
|
7154
7148
|
}
|
|
@@ -7180,7 +7174,7 @@ function Gl({ disabled: e, element: t, item: n, messages: r, onChange: i, respon
|
|
|
7180
7174
|
content: u.content,
|
|
7181
7175
|
renderBlank: ({ blankId: t, index: n, label: i }) => {
|
|
7182
7176
|
var o, s;
|
|
7183
|
-
let c = (o = d.answers[t]) == null ? "" : o, l =
|
|
7177
|
+
let c = (o = d.answers[t]) == null ? "" : o, l = Wl({
|
|
7184
7178
|
answers: c,
|
|
7185
7179
|
blankLabel: r.blankLabel,
|
|
7186
7180
|
canClear: !e && !!c.trim(),
|
|
@@ -7189,7 +7183,7 @@ function Gl({ disabled: e, element: t, item: n, messages: r, onChange: i, respon
|
|
|
7189
7183
|
});
|
|
7190
7184
|
return /* @__PURE__ */ a("button", {
|
|
7191
7185
|
"aria-label": l,
|
|
7192
|
-
className:
|
|
7186
|
+
className: Hl["word-builder-blank"],
|
|
7193
7187
|
disabled: e,
|
|
7194
7188
|
onClick: () => m(t),
|
|
7195
7189
|
onDragOver: (e) => e.preventDefault(),
|
|
@@ -7201,7 +7195,7 @@ function Gl({ disabled: e, element: t, item: n, messages: r, onChange: i, respon
|
|
|
7201
7195
|
}
|
|
7202
7196
|
}),
|
|
7203
7197
|
/* @__PURE__ */ a("div", {
|
|
7204
|
-
className:
|
|
7198
|
+
className: Hl["word-builder-candidate-list"],
|
|
7205
7199
|
children: u.candidateOptions.map((t, n) => /* @__PURE__ */ a("button", {
|
|
7206
7200
|
disabled: e,
|
|
7207
7201
|
draggable: !e,
|
|
@@ -7220,15 +7214,15 @@ function Gl({ disabled: e, element: t, item: n, messages: r, onChange: i, respon
|
|
|
7220
7214
|
]
|
|
7221
7215
|
});
|
|
7222
7216
|
}
|
|
7223
|
-
function
|
|
7217
|
+
function Wl({ answers: e, blankLabel: t, canClear: n, index: r, label: i }) {
|
|
7224
7218
|
let a = i || `${t}${r + 1}`;
|
|
7225
7219
|
return !n || !e.trim() ? a : t === "\u7a7a" ? `${a}\uff0c\u70b9\u51fb\u6e05\u7a7a` : `${a}, click to clear`;
|
|
7226
7220
|
}
|
|
7227
7221
|
//#endregion
|
|
7228
7222
|
//#region src/question/player/QuestionPlayerElement.tsx
|
|
7229
|
-
function
|
|
7223
|
+
function Gl({ disabled: e, element: t, item: n, locale: r, messages: i, onResponseItemChange: o, response: s, responseIndex: c, showAnswer: l, uploadImage: u }) {
|
|
7230
7224
|
if (t.type !== n.type) throw Error(`\u9898\u76ee\u5143\u7d20\u7ed3\u6784\u4e0d\u5339\u914d\uff0cexpected=${t.type}\uff0cactual=${n.type}`);
|
|
7231
|
-
return t.type === "richText" ? /* @__PURE__ */ a(K, { content: n.content }) : t.type === "textResponse" ? /* @__PURE__ */ a(
|
|
7225
|
+
return t.type === "richText" ? /* @__PURE__ */ a(K, { content: n.content }) : t.type === "textResponse" ? /* @__PURE__ */ a(Bl, {
|
|
7232
7226
|
disabled: e,
|
|
7233
7227
|
label: t.name,
|
|
7234
7228
|
locale: r,
|
|
@@ -7261,7 +7255,7 @@ function ql({ disabled: e, element: t, item: n, locale: r, messages: i, onRespon
|
|
|
7261
7255
|
response: s,
|
|
7262
7256
|
responseIndex: c,
|
|
7263
7257
|
showAnswer: l
|
|
7264
|
-
}) :
|
|
7258
|
+
}) : Kl({
|
|
7265
7259
|
disabled: e,
|
|
7266
7260
|
element: t,
|
|
7267
7261
|
item: n,
|
|
@@ -7274,7 +7268,7 @@ function ql({ disabled: e, element: t, item: n, locale: r, messages: i, onRespon
|
|
|
7274
7268
|
uploadImage: u
|
|
7275
7269
|
});
|
|
7276
7270
|
}
|
|
7277
|
-
function
|
|
7271
|
+
function Kl({ disabled: e, element: t, item: n, messages: r, onResponseItemChange: i, response: o, responseIndex: s, showAnswer: c }) {
|
|
7278
7272
|
switch (t.type) {
|
|
7279
7273
|
case "choice": return /* @__PURE__ */ a(jl, {
|
|
7280
7274
|
disabled: e,
|
|
@@ -7305,7 +7299,7 @@ function Jl({ disabled: e, element: t, item: n, messages: r, onResponseItemChang
|
|
|
7305
7299
|
responseIndex: s,
|
|
7306
7300
|
showAnswer: c
|
|
7307
7301
|
});
|
|
7308
|
-
case "wordBuilder": return /* @__PURE__ */ a(
|
|
7302
|
+
case "wordBuilder": return /* @__PURE__ */ a(Ul, {
|
|
7309
7303
|
disabled: e,
|
|
7310
7304
|
element: t,
|
|
7311
7305
|
item: n,
|
|
@@ -7347,10 +7341,10 @@ function Jl({ disabled: e, element: t, item: n, messages: r, onResponseItemChang
|
|
|
7347
7341
|
}
|
|
7348
7342
|
//#endregion
|
|
7349
7343
|
//#region src/question/player/QuestionPlayer.tsx
|
|
7350
|
-
var
|
|
7351
|
-
function
|
|
7352
|
-
let { locale: t = "zh-CN" } = e, n = Ca(e,
|
|
7353
|
-
return /* @__PURE__ */ a(
|
|
7344
|
+
var ql = ["locale"];
|
|
7345
|
+
function Jl(e) {
|
|
7346
|
+
let { locale: t = "zh-CN" } = e, n = Ca(e, ql), r = xs(n.value, n.questionTypeTemplates), i = Es(n.response, r);
|
|
7347
|
+
return /* @__PURE__ */ a(Yl, k(k({}, n), {}, {
|
|
7354
7348
|
childIndexPath: [],
|
|
7355
7349
|
locale: t,
|
|
7356
7350
|
messages: jc(t),
|
|
@@ -7359,7 +7353,7 @@ function Xl(e) {
|
|
|
7359
7353
|
value: r
|
|
7360
7354
|
}));
|
|
7361
7355
|
}
|
|
7362
|
-
function
|
|
7356
|
+
function Yl({ childIndexPath: e, className: t, disabled: n = !1, locale: r = "zh-CN", messages: i, onResponseChange: o, response: s, rootQuestionNumber: c, showAnswer: l = !1, showExtraAttributes: u = !1, questionTypeTemplates: d, uploadImage: f, value: p }) {
|
|
7363
7357
|
let m = oa(d, p);
|
|
7364
7358
|
if (!m) return /* @__PURE__ */ a("div", {
|
|
7365
7359
|
className: U(W.root, t),
|
|
@@ -7368,7 +7362,7 @@ function Zl({ childIndexPath: e, className: t, disabled: n = !1, locale: r = "zh
|
|
|
7368
7362
|
children: i.missingQuestionTypeTemplate
|
|
7369
7363
|
})
|
|
7370
7364
|
});
|
|
7371
|
-
let h =
|
|
7365
|
+
let h = Xl({
|
|
7372
7366
|
childIndexPath: e,
|
|
7373
7367
|
disabled: n,
|
|
7374
7368
|
locale: r,
|
|
@@ -7385,27 +7379,27 @@ function Zl({ childIndexPath: e, className: t, disabled: n = !1, locale: r = "zh
|
|
|
7385
7379
|
});
|
|
7386
7380
|
return /* @__PURE__ */ a("div", {
|
|
7387
7381
|
className: U(W.root, t),
|
|
7388
|
-
children:
|
|
7382
|
+
children: eu(m, p) ? /* @__PURE__ */ a("div", {
|
|
7389
7383
|
className: W.empty,
|
|
7390
7384
|
children: i.previewEmpty
|
|
7391
7385
|
}) : h
|
|
7392
7386
|
});
|
|
7393
7387
|
}
|
|
7394
|
-
function
|
|
7388
|
+
function Xl(e) {
|
|
7395
7389
|
return /* @__PURE__ */ o(i, { children: [
|
|
7390
|
+
Zl(e),
|
|
7396
7391
|
$l(e),
|
|
7397
|
-
|
|
7398
|
-
eu(e)
|
|
7392
|
+
Ql(e)
|
|
7399
7393
|
] });
|
|
7400
7394
|
}
|
|
7401
|
-
function
|
|
7395
|
+
function Zl({ disabled: e, locale: t, messages: n, onResponseChange: r, response: i, showAnswer: o, structure: s, uploadImage: c, value: l }) {
|
|
7402
7396
|
return s.elements.length === 0 ? null : /* @__PURE__ */ a("div", {
|
|
7403
7397
|
className: W["element-list"],
|
|
7404
7398
|
children: s.elements.map((u, d) => {
|
|
7405
7399
|
let f = an(l, d, u), p = s.elements.slice(0, d).filter((e) => e.type !== "richText").length;
|
|
7406
7400
|
return /* @__PURE__ */ a("section", {
|
|
7407
7401
|
className: W.element,
|
|
7408
|
-
children: /* @__PURE__ */ a(
|
|
7402
|
+
children: /* @__PURE__ */ a(Gl, {
|
|
7409
7403
|
disabled: e,
|
|
7410
7404
|
element: u,
|
|
7411
7405
|
item: f,
|
|
@@ -7421,17 +7415,17 @@ function $l({ disabled: e, locale: t, messages: n, onResponseChange: r, response
|
|
|
7421
7415
|
})
|
|
7422
7416
|
});
|
|
7423
7417
|
}
|
|
7424
|
-
function
|
|
7418
|
+
function Ql({ disabled: e, locale: t, messages: n, response: r, showExtraAttributes: i, structure: s, uploadImage: c, value: l }) {
|
|
7425
7419
|
return i ? /* @__PURE__ */ a("div", {
|
|
7426
7420
|
className: W["element-list"],
|
|
7427
7421
|
children: s.extras.map((i, s) => {
|
|
7428
7422
|
let u = on(l, s, i);
|
|
7429
7423
|
return P(u.content) ? null : /* @__PURE__ */ o("section", {
|
|
7430
7424
|
className: W.extra,
|
|
7431
|
-
children: [/* @__PURE__ */ a(Vc, { children: i.name }), /* @__PURE__ */ a(
|
|
7425
|
+
children: [/* @__PURE__ */ a(Vc, { children: i.name }), /* @__PURE__ */ a(Gl, {
|
|
7432
7426
|
disabled: e,
|
|
7433
|
-
element:
|
|
7434
|
-
item:
|
|
7427
|
+
element: tu(i),
|
|
7428
|
+
item: nu(u),
|
|
7435
7429
|
locale: t,
|
|
7436
7430
|
messages: n,
|
|
7437
7431
|
onResponseItemChange: () => void 0,
|
|
@@ -7444,14 +7438,14 @@ function eu({ disabled: e, locale: t, messages: n, response: r, showExtraAttribu
|
|
|
7444
7438
|
})
|
|
7445
7439
|
}) : null;
|
|
7446
7440
|
}
|
|
7447
|
-
function
|
|
7441
|
+
function $l({ childIndexPath: e, disabled: t, locale: n, messages: r, onResponseChange: i, response: o, rootQuestionNumber: s, showAnswer: c, showExtraAttributes: l, questionTypeTemplates: u, uploadImage: d, value: f }) {
|
|
7448
7442
|
return f.children.length === 0 ? null : /* @__PURE__ */ a(Hc, {
|
|
7449
7443
|
childIndexPath: e,
|
|
7450
7444
|
disabled: t,
|
|
7451
7445
|
messages: r,
|
|
7452
7446
|
onChildResponseChange: (e, t) => i(ac(o, e, t)),
|
|
7453
7447
|
response: o,
|
|
7454
|
-
renderChild: (e, i, o, f) => /* @__PURE__ */ a(
|
|
7448
|
+
renderChild: (e, i, o, f) => /* @__PURE__ */ a(Yl, {
|
|
7455
7449
|
childIndexPath: f,
|
|
7456
7450
|
disabled: t,
|
|
7457
7451
|
locale: n,
|
|
@@ -7469,17 +7463,17 @@ function tu({ childIndexPath: e, disabled: t, locale: n, messages: r, onResponse
|
|
|
7469
7463
|
value: f
|
|
7470
7464
|
});
|
|
7471
7465
|
}
|
|
7472
|
-
function
|
|
7466
|
+
function eu(e, t) {
|
|
7473
7467
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
7474
7468
|
}
|
|
7475
|
-
function
|
|
7469
|
+
function tu(e) {
|
|
7476
7470
|
return {
|
|
7477
7471
|
config: {},
|
|
7478
7472
|
name: e.name,
|
|
7479
7473
|
type: "richText"
|
|
7480
7474
|
};
|
|
7481
7475
|
}
|
|
7482
|
-
function
|
|
7476
|
+
function nu(e) {
|
|
7483
7477
|
return {
|
|
7484
7478
|
content: e.content,
|
|
7485
7479
|
type: "richText"
|
|
@@ -7487,14 +7481,14 @@ function iu(e) {
|
|
|
7487
7481
|
}
|
|
7488
7482
|
//#endregion
|
|
7489
7483
|
//#region src/question/renderers/QuestionBlankGroupView.module.css
|
|
7490
|
-
var
|
|
7484
|
+
var ru = {
|
|
7491
7485
|
"blank-list": "_blank-list_12ccp_1",
|
|
7492
7486
|
"blank-item": "_blank-item_12ccp_11",
|
|
7493
7487
|
"blank-field": "_blank-field_12ccp_17"
|
|
7494
7488
|
};
|
|
7495
7489
|
//#endregion
|
|
7496
7490
|
//#region src/question/renderers/QuestionBlankGroupView.tsx
|
|
7497
|
-
function
|
|
7491
|
+
function iu({ item: e, messages: t, showAnswer: n }) {
|
|
7498
7492
|
let r = N(e.answers, e.blanks).map((n, r) => ({
|
|
7499
7493
|
kind: "detailed",
|
|
7500
7494
|
contents: n.answerPools.map((e, t) => /* @__PURE__ */ a(K, { content: e }, `group-${r}-answer-${t}`)),
|
|
@@ -7503,30 +7497,30 @@ function ou({ item: e, messages: t, showAnswer: n }) {
|
|
|
7503
7497
|
return /* @__PURE__ */ o("div", {
|
|
7504
7498
|
className: G.element,
|
|
7505
7499
|
children: [/* @__PURE__ */ a("ol", {
|
|
7506
|
-
className:
|
|
7500
|
+
className: ru["blank-list"],
|
|
7507
7501
|
children: e.blanks.map((e, n) => /* @__PURE__ */ a("li", {
|
|
7508
|
-
className:
|
|
7502
|
+
className: ru["blank-item"],
|
|
7509
7503
|
children: /* @__PURE__ */ o("span", {
|
|
7510
|
-
className:
|
|
7504
|
+
className: ru["blank-field"],
|
|
7511
7505
|
children: [
|
|
7512
7506
|
t.blankLabel,
|
|
7513
7507
|
" ",
|
|
7514
7508
|
n + 1
|
|
7515
7509
|
]
|
|
7516
7510
|
})
|
|
7517
|
-
},
|
|
7511
|
+
}, au(e, n)))
|
|
7518
7512
|
}), n ? /* @__PURE__ */ a(q, {
|
|
7519
7513
|
groups: r,
|
|
7520
7514
|
title: t.standardAnswer
|
|
7521
7515
|
}) : null]
|
|
7522
7516
|
});
|
|
7523
7517
|
}
|
|
7524
|
-
function
|
|
7518
|
+
function au(e, t) {
|
|
7525
7519
|
return e || `blank-${t + 1}`;
|
|
7526
7520
|
}
|
|
7527
7521
|
//#endregion
|
|
7528
7522
|
//#region src/question/renderers/QuestionClassificationView.tsx
|
|
7529
|
-
function
|
|
7523
|
+
function ou({ item: e, messages: t, showAnswer: n }) {
|
|
7530
7524
|
return /* @__PURE__ */ o("div", {
|
|
7531
7525
|
className: G.element,
|
|
7532
7526
|
children: [/* @__PURE__ */ o("div", {
|
|
@@ -7558,7 +7552,7 @@ function cu({ item: e, messages: t, showAnswer: n }) {
|
|
|
7558
7552
|
}
|
|
7559
7553
|
//#endregion
|
|
7560
7554
|
//#region src/question/renderers/QuestionFillTextView.tsx
|
|
7561
|
-
function
|
|
7555
|
+
function su({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
7562
7556
|
let i = Dn(t, e, !0), s = Rc(i).map((e, t) => ({
|
|
7563
7557
|
kind: "detailed",
|
|
7564
7558
|
contents: e.contents.map((e, n) => /* @__PURE__ */ a(K, { content: e }, `group-${t}-answer-${n}`)),
|
|
@@ -7568,7 +7562,7 @@ function lu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
|
7568
7562
|
className: G.element,
|
|
7569
7563
|
children: [
|
|
7570
7564
|
/* @__PURE__ */ a(K, { content: i.content }),
|
|
7571
|
-
|
|
7565
|
+
cu(i, n.candidateOptions),
|
|
7572
7566
|
r ? /* @__PURE__ */ a(q, {
|
|
7573
7567
|
groups: s,
|
|
7574
7568
|
title: n.standardAnswer
|
|
@@ -7576,7 +7570,7 @@ function lu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
|
7576
7570
|
]
|
|
7577
7571
|
});
|
|
7578
7572
|
}
|
|
7579
|
-
function
|
|
7573
|
+
function cu(e, t) {
|
|
7580
7574
|
var n, r;
|
|
7581
7575
|
let i = (n = e.candidateOptions) == null ? [] : n, s = (r = e.blankOptionGroups) == null ? [] : r;
|
|
7582
7576
|
return !i.length && !s.length ? null : /* @__PURE__ */ o("div", {
|
|
@@ -7598,7 +7592,7 @@ function uu(e, t) {
|
|
|
7598
7592
|
}
|
|
7599
7593
|
//#endregion
|
|
7600
7594
|
//#region src/question/renderers/QuestionJudgementGroupView.tsx
|
|
7601
|
-
function
|
|
7595
|
+
function lu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
7602
7596
|
let i = dn(e.config.judgeAnswerMode), s = [{
|
|
7603
7597
|
kind: "detailed",
|
|
7604
7598
|
contents: fn(e.config.judgeAnswerMode, t.answers),
|
|
@@ -7620,7 +7614,7 @@ function du({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
|
7620
7614
|
}
|
|
7621
7615
|
//#endregion
|
|
7622
7616
|
//#region src/question/renderers/QuestionLineConnectView.tsx
|
|
7623
|
-
function
|
|
7617
|
+
function uu({ item: e, messages: t, showAnswer: n }) {
|
|
7624
7618
|
let r = { gridTemplateColumns: `repeat(${e.columns.length}, minmax(12rem, 1fr))` };
|
|
7625
7619
|
return /* @__PURE__ */ o("div", {
|
|
7626
7620
|
className: G.element,
|
|
@@ -7656,7 +7650,7 @@ function fu({ item: e, messages: t, showAnswer: n }) {
|
|
|
7656
7650
|
}) : null]
|
|
7657
7651
|
});
|
|
7658
7652
|
}
|
|
7659
|
-
var
|
|
7653
|
+
var du = {
|
|
7660
7654
|
board: "_board_5xarh_1",
|
|
7661
7655
|
columns: "_columns_5xarh_6",
|
|
7662
7656
|
column: "_column_5xarh_6",
|
|
@@ -7665,21 +7659,21 @@ var pu = {
|
|
|
7665
7659
|
};
|
|
7666
7660
|
//#endregion
|
|
7667
7661
|
//#region src/question/renderers/QuestionMatchingView.tsx
|
|
7668
|
-
function
|
|
7662
|
+
function fu({ item: e, messages: t, showAnswer: n }) {
|
|
7669
7663
|
return /* @__PURE__ */ o("div", {
|
|
7670
7664
|
className: G.element,
|
|
7671
7665
|
children: [/* @__PURE__ */ a("div", {
|
|
7672
|
-
className:
|
|
7666
|
+
className: du.board,
|
|
7673
7667
|
children: /* @__PURE__ */ a("div", {
|
|
7674
|
-
className:
|
|
7668
|
+
className: du.columns,
|
|
7675
7669
|
children: e.columns.map((e) => /* @__PURE__ */ a("section", {
|
|
7676
|
-
className:
|
|
7670
|
+
className: du.column,
|
|
7677
7671
|
children: e.items.map((t, n) => {
|
|
7678
7672
|
let r = ln(e.labelStyle, n);
|
|
7679
7673
|
return /* @__PURE__ */ o("div", {
|
|
7680
|
-
className:
|
|
7674
|
+
className: du.item,
|
|
7681
7675
|
children: [r ? /* @__PURE__ */ a("span", {
|
|
7682
|
-
className:
|
|
7676
|
+
className: du.marker,
|
|
7683
7677
|
children: r
|
|
7684
7678
|
}) : null, /* @__PURE__ */ a(K, { content: t.content })]
|
|
7685
7679
|
}, t.itemId);
|
|
@@ -7694,7 +7688,7 @@ function mu({ item: e, messages: t, showAnswer: n }) {
|
|
|
7694
7688
|
}
|
|
7695
7689
|
//#endregion
|
|
7696
7690
|
//#region src/question/renderers/QuestionOptionGroupView.tsx
|
|
7697
|
-
function
|
|
7691
|
+
function pu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
7698
7692
|
let i = pn(t, e.config.optionLabelStyle);
|
|
7699
7693
|
if (e.config.renderer === "table") {
|
|
7700
7694
|
let s = Tl(e, t);
|
|
@@ -7736,7 +7730,7 @@ function hu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
|
7736
7730
|
}
|
|
7737
7731
|
//#endregion
|
|
7738
7732
|
//#region src/question/renderers/QuestionOrderingView.tsx
|
|
7739
|
-
function
|
|
7733
|
+
function mu({ item: e, messages: t, showAnswer: n }) {
|
|
7740
7734
|
return /* @__PURE__ */ o("div", {
|
|
7741
7735
|
className: G.element,
|
|
7742
7736
|
children: [/* @__PURE__ */ a("ol", {
|
|
@@ -7756,8 +7750,8 @@ function gu({ item: e, messages: t, showAnswer: n }) {
|
|
|
7756
7750
|
}
|
|
7757
7751
|
//#endregion
|
|
7758
7752
|
//#region src/question/renderers/QuestionWordBuilderView.tsx
|
|
7759
|
-
function
|
|
7760
|
-
let i = En(t, !0, e), s =
|
|
7753
|
+
function hu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
7754
|
+
let i = En(t, !0, e), s = Vl(i, n.blankLabel);
|
|
7761
7755
|
return /* @__PURE__ */ o("div", {
|
|
7762
7756
|
className: G.element,
|
|
7763
7757
|
children: [
|
|
@@ -7791,13 +7785,13 @@ function _u({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
|
7791
7785
|
}
|
|
7792
7786
|
//#endregion
|
|
7793
7787
|
//#region src/question/renderers/QuestionContentElementView.tsx
|
|
7794
|
-
function
|
|
7788
|
+
function gu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
7795
7789
|
if (e.type !== t.type) throw Error(`\u9898\u76ee\u5143\u7d20\u7ed3\u6784\u4e0d\u5339\u914d\uff0cexpected=${e.type}\uff0cactual=${t.type}`);
|
|
7796
|
-
return e.type === "richText" ? /* @__PURE__ */ a(K, { content: t.content }) : e.type === "textResponse" ? null : e.type === "ordering" ? /* @__PURE__ */ a(
|
|
7790
|
+
return e.type === "richText" ? /* @__PURE__ */ a(K, { content: t.content }) : e.type === "textResponse" ? null : e.type === "ordering" ? /* @__PURE__ */ a(mu, {
|
|
7797
7791
|
item: t,
|
|
7798
7792
|
messages: n,
|
|
7799
7793
|
showAnswer: r
|
|
7800
|
-
}) : e.type === "classification" ? /* @__PURE__ */ a(
|
|
7794
|
+
}) : e.type === "classification" ? /* @__PURE__ */ a(ou, {
|
|
7801
7795
|
item: t,
|
|
7802
7796
|
messages: n,
|
|
7803
7797
|
showAnswer: r
|
|
@@ -7805,57 +7799,57 @@ function vu({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
|
7805
7799
|
item: t,
|
|
7806
7800
|
messages: n,
|
|
7807
7801
|
showAnswer: r
|
|
7808
|
-
}) :
|
|
7802
|
+
}) : _u({
|
|
7809
7803
|
element: e,
|
|
7810
7804
|
item: t,
|
|
7811
7805
|
messages: n,
|
|
7812
7806
|
showAnswer: r
|
|
7813
7807
|
});
|
|
7814
7808
|
}
|
|
7815
|
-
function
|
|
7809
|
+
function _u({ element: e, item: t, messages: n, showAnswer: r }) {
|
|
7816
7810
|
switch (e.type) {
|
|
7817
|
-
case "choice": return /* @__PURE__ */ a(
|
|
7811
|
+
case "choice": return /* @__PURE__ */ a(pu, {
|
|
7818
7812
|
element: e,
|
|
7819
7813
|
item: t,
|
|
7820
7814
|
messages: n,
|
|
7821
7815
|
showAnswer: r
|
|
7822
7816
|
});
|
|
7823
|
-
case "fill": return /* @__PURE__ */ a(
|
|
7817
|
+
case "fill": return /* @__PURE__ */ a(iu, {
|
|
7824
7818
|
item: t,
|
|
7825
7819
|
messages: n,
|
|
7826
7820
|
showAnswer: r
|
|
7827
7821
|
});
|
|
7828
|
-
case "inlineFill": return /* @__PURE__ */ a(
|
|
7822
|
+
case "inlineFill": return /* @__PURE__ */ a(su, {
|
|
7829
7823
|
element: e,
|
|
7830
7824
|
item: t,
|
|
7831
7825
|
messages: n,
|
|
7832
7826
|
showAnswer: r
|
|
7833
7827
|
});
|
|
7834
|
-
case "wordBuilder": return /* @__PURE__ */ a(
|
|
7828
|
+
case "wordBuilder": return /* @__PURE__ */ a(hu, {
|
|
7835
7829
|
element: e,
|
|
7836
7830
|
item: t,
|
|
7837
7831
|
messages: n,
|
|
7838
7832
|
showAnswer: r
|
|
7839
7833
|
});
|
|
7840
|
-
case "judgement": return /* @__PURE__ */ a(
|
|
7834
|
+
case "judgement": return /* @__PURE__ */ a(lu, {
|
|
7841
7835
|
element: e,
|
|
7842
7836
|
item: t,
|
|
7843
7837
|
messages: n,
|
|
7844
7838
|
showAnswer: r
|
|
7845
7839
|
});
|
|
7846
|
-
case "lineConnect": return /* @__PURE__ */ a(
|
|
7840
|
+
case "lineConnect": return /* @__PURE__ */ a(uu, {
|
|
7847
7841
|
item: t,
|
|
7848
7842
|
messages: n,
|
|
7849
7843
|
showAnswer: r
|
|
7850
7844
|
});
|
|
7851
|
-
case "matching": return /* @__PURE__ */ a(
|
|
7845
|
+
case "matching": return /* @__PURE__ */ a(fu, {
|
|
7852
7846
|
item: t,
|
|
7853
7847
|
messages: n,
|
|
7854
7848
|
showAnswer: r
|
|
7855
7849
|
});
|
|
7856
7850
|
}
|
|
7857
7851
|
}
|
|
7858
|
-
var
|
|
7852
|
+
var vu = {
|
|
7859
7853
|
root: "_root_1jseb_1",
|
|
7860
7854
|
empty: "_empty_1jseb_18",
|
|
7861
7855
|
"element-list": "_element-list_1jseb_30",
|
|
@@ -7866,16 +7860,16 @@ var bu = {
|
|
|
7866
7860
|
};
|
|
7867
7861
|
//#endregion
|
|
7868
7862
|
//#region src/question/preview/QuestionCompositePreview.tsx
|
|
7869
|
-
function
|
|
7863
|
+
function yu({ childIndexPath: e = [], messages: t, renderChild: n, rootQuestionNumber: r, value: i }) {
|
|
7870
7864
|
return i.children.length === 0 ? /* @__PURE__ */ a("div", {
|
|
7871
|
-
className:
|
|
7865
|
+
className: vu.empty,
|
|
7872
7866
|
children: t.previewEmpty
|
|
7873
7867
|
}) : /* @__PURE__ */ a("div", {
|
|
7874
|
-
className:
|
|
7868
|
+
className: vu.children,
|
|
7875
7869
|
children: i.children.map((t, o) => {
|
|
7876
7870
|
let s = [...e, o], c = zo(s, i.children.length, r);
|
|
7877
7871
|
return /* @__PURE__ */ a("section", {
|
|
7878
|
-
className:
|
|
7872
|
+
className: vu.child,
|
|
7879
7873
|
children: /* @__PURE__ */ a(Vo, {
|
|
7880
7874
|
indented: !0,
|
|
7881
7875
|
number: c,
|
|
@@ -7887,31 +7881,31 @@ function xu({ childIndexPath: e = [], messages: t, renderChild: n, rootQuestionN
|
|
|
7887
7881
|
}
|
|
7888
7882
|
//#endregion
|
|
7889
7883
|
//#region src/question/preview/QuestionPreview.tsx
|
|
7890
|
-
var
|
|
7891
|
-
function
|
|
7892
|
-
let { locale: t = "zh-CN" } = e, n = Ca(e,
|
|
7893
|
-
return /* @__PURE__ */ a(
|
|
7884
|
+
var bu = ["locale"];
|
|
7885
|
+
function xu(e) {
|
|
7886
|
+
let { locale: t = "zh-CN" } = e, n = Ca(e, bu), r = xs(n.value, n.questionTypeTemplates);
|
|
7887
|
+
return /* @__PURE__ */ a(Su, k(k({}, n), {}, {
|
|
7894
7888
|
childIndexPath: [],
|
|
7895
7889
|
messages: jc(t),
|
|
7896
7890
|
value: r
|
|
7897
7891
|
}));
|
|
7898
7892
|
}
|
|
7899
|
-
function
|
|
7893
|
+
function Su({ childIndexPath: e, className: t, messages: n, rootQuestionNumber: r, showAnswer: s = !1, showExtraAttributes: c = !1, questionTypeTemplates: l, value: u }) {
|
|
7900
7894
|
let d = oa(l, u);
|
|
7901
7895
|
if (!d) return /* @__PURE__ */ a("div", {
|
|
7902
|
-
className: U(
|
|
7896
|
+
className: U(vu.root, t),
|
|
7903
7897
|
children: /* @__PURE__ */ a("div", {
|
|
7904
|
-
className:
|
|
7898
|
+
className: vu.empty,
|
|
7905
7899
|
children: n.missingQuestionTypeTemplate
|
|
7906
7900
|
})
|
|
7907
7901
|
});
|
|
7908
7902
|
let f = d.elements.length === 0 ? null : /* @__PURE__ */ a("div", {
|
|
7909
|
-
className:
|
|
7903
|
+
className: vu["element-list"],
|
|
7910
7904
|
children: d.elements.map((e, t) => {
|
|
7911
7905
|
let r = an(u, t, e);
|
|
7912
7906
|
return /* @__PURE__ */ a("section", {
|
|
7913
|
-
className:
|
|
7914
|
-
children: /* @__PURE__ */ a(
|
|
7907
|
+
className: vu.element,
|
|
7908
|
+
children: /* @__PURE__ */ a(gu, {
|
|
7915
7909
|
element: e,
|
|
7916
7910
|
item: r,
|
|
7917
7911
|
messages: n,
|
|
@@ -7920,14 +7914,14 @@ function wu({ childIndexPath: e, className: t, messages: n, rootQuestionNumber:
|
|
|
7920
7914
|
}, `${e.type}-${t}`);
|
|
7921
7915
|
})
|
|
7922
7916
|
}), p = c ? /* @__PURE__ */ a("div", {
|
|
7923
|
-
className:
|
|
7917
|
+
className: vu["element-list"],
|
|
7924
7918
|
children: d.extras.map((e, t) => {
|
|
7925
7919
|
let r = on(u, t, e);
|
|
7926
7920
|
return P(r.content) ? null : /* @__PURE__ */ o("section", {
|
|
7927
|
-
className:
|
|
7928
|
-
children: [/* @__PURE__ */ a(Vc, { children: e.name }), /* @__PURE__ */ a(
|
|
7929
|
-
element:
|
|
7930
|
-
item:
|
|
7921
|
+
className: vu.extra,
|
|
7922
|
+
children: [/* @__PURE__ */ a(Vc, { children: e.name }), /* @__PURE__ */ a(gu, {
|
|
7923
|
+
element: wu(e),
|
|
7924
|
+
item: Tu(r),
|
|
7931
7925
|
messages: n,
|
|
7932
7926
|
showAnswer: !1
|
|
7933
7927
|
})]
|
|
@@ -7935,10 +7929,10 @@ function wu({ childIndexPath: e, className: t, messages: n, rootQuestionNumber:
|
|
|
7935
7929
|
})
|
|
7936
7930
|
}) : null, m = /* @__PURE__ */ o(i, { children: [
|
|
7937
7931
|
f,
|
|
7938
|
-
u.children.length === 0 ? null : /* @__PURE__ */ a(
|
|
7932
|
+
u.children.length === 0 ? null : /* @__PURE__ */ a(yu, {
|
|
7939
7933
|
childIndexPath: e,
|
|
7940
7934
|
messages: n,
|
|
7941
|
-
renderChild: (e, t) => /* @__PURE__ */ a(
|
|
7935
|
+
renderChild: (e, t) => /* @__PURE__ */ a(Su, {
|
|
7942
7936
|
childIndexPath: t,
|
|
7943
7937
|
messages: n,
|
|
7944
7938
|
rootQuestionNumber: r,
|
|
@@ -7953,30 +7947,30 @@ function wu({ childIndexPath: e, className: t, messages: n, rootQuestionNumber:
|
|
|
7953
7947
|
p
|
|
7954
7948
|
] });
|
|
7955
7949
|
return /* @__PURE__ */ a("div", {
|
|
7956
|
-
className: U(
|
|
7957
|
-
children:
|
|
7958
|
-
className:
|
|
7950
|
+
className: U(vu.root, t),
|
|
7951
|
+
children: Cu(d, u) ? /* @__PURE__ */ a("div", {
|
|
7952
|
+
className: vu.empty,
|
|
7959
7953
|
children: n.previewEmpty
|
|
7960
7954
|
}) : m
|
|
7961
7955
|
});
|
|
7962
7956
|
}
|
|
7963
|
-
function
|
|
7957
|
+
function Cu(e, t) {
|
|
7964
7958
|
return t.elements.length === 0 && t.extras.length === 0 && t.children.length === 0;
|
|
7965
7959
|
}
|
|
7966
|
-
function
|
|
7960
|
+
function wu(e) {
|
|
7967
7961
|
return {
|
|
7968
7962
|
config: {},
|
|
7969
7963
|
name: e.name,
|
|
7970
7964
|
type: "richText"
|
|
7971
7965
|
};
|
|
7972
7966
|
}
|
|
7973
|
-
function
|
|
7967
|
+
function Tu(e) {
|
|
7974
7968
|
return {
|
|
7975
7969
|
content: e.content,
|
|
7976
7970
|
type: "richText"
|
|
7977
7971
|
};
|
|
7978
7972
|
}
|
|
7979
|
-
var
|
|
7973
|
+
var Eu = {
|
|
7980
7974
|
root: "_root_17bqr_1",
|
|
7981
7975
|
toolbar: "_toolbar_17bqr_26",
|
|
7982
7976
|
"toolbar-title": "_toolbar-title_17bqr_36",
|
|
@@ -8028,7 +8022,7 @@ var Ou = {
|
|
|
8028
8022
|
"palette-section": "_palette-section_vhj2r_56",
|
|
8029
8023
|
"palette-section-title": "_palette-section-title_vhj2r_62",
|
|
8030
8024
|
"palette-button": "_palette-button_vhj2r_70"
|
|
8031
|
-
},
|
|
8025
|
+
}, Du = {
|
|
8032
8026
|
"en-US": {
|
|
8033
8027
|
addElement: "Add element",
|
|
8034
8028
|
addExtra: "Add extra attribute",
|
|
@@ -8250,24 +8244,24 @@ var Ou = {
|
|
|
8250
8244
|
wordBuilderLabel: "\u7ec4\u8bcd\u62fc\u5199"
|
|
8251
8245
|
}
|
|
8252
8246
|
};
|
|
8253
|
-
function
|
|
8247
|
+
function Ou(e, t) {
|
|
8254
8248
|
var n;
|
|
8255
8249
|
return (n = e.extraDescriptions.get(t)) == null ? t : n;
|
|
8256
8250
|
}
|
|
8257
|
-
function
|
|
8251
|
+
function ku(e, t) {
|
|
8258
8252
|
var n;
|
|
8259
8253
|
return (n = e.extraLabels.get(t)) == null ? t : n;
|
|
8260
8254
|
}
|
|
8261
|
-
function
|
|
8255
|
+
function Au(e) {
|
|
8262
8256
|
switch (e) {
|
|
8263
|
-
case "en-US": return
|
|
8264
|
-
case "zh-CN": return
|
|
8257
|
+
case "en-US": return Du["en-US"];
|
|
8258
|
+
case "zh-CN": return Du["zh-CN"];
|
|
8265
8259
|
}
|
|
8266
8260
|
}
|
|
8267
|
-
function
|
|
8268
|
-
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription :
|
|
8261
|
+
function ju(e, t) {
|
|
8262
|
+
return t === "richText" ? e.richTextDescription : t === "ordering" ? e.orderingDescription : Pu(e, t);
|
|
8269
8263
|
}
|
|
8270
|
-
var
|
|
8264
|
+
var Mu = {
|
|
8271
8265
|
choice: (e) => e.optionGroupDescription,
|
|
8272
8266
|
classification: (e) => e.classificationDescription,
|
|
8273
8267
|
fill: (e) => e.blankGroupDescription,
|
|
@@ -8278,7 +8272,7 @@ var Pu = {
|
|
|
8278
8272
|
textMarker: (e) => e.textMarkerDescription,
|
|
8279
8273
|
textResponse: (e) => e.textResponseDescription,
|
|
8280
8274
|
wordBuilder: (e) => e.wordBuilderDescription
|
|
8281
|
-
},
|
|
8275
|
+
}, Nu = {
|
|
8282
8276
|
choice: (e) => e.optionGroupLabel,
|
|
8283
8277
|
classification: (e) => e.classificationLabel,
|
|
8284
8278
|
fill: (e) => e.blankGroupLabel,
|
|
@@ -8290,30 +8284,30 @@ var Pu = {
|
|
|
8290
8284
|
textResponse: (e) => e.textResponseLabel,
|
|
8291
8285
|
wordBuilder: (e) => e.wordBuilderLabel
|
|
8292
8286
|
};
|
|
8293
|
-
function
|
|
8294
|
-
return
|
|
8287
|
+
function Pu(e, t) {
|
|
8288
|
+
return Mu[t](e);
|
|
8295
8289
|
}
|
|
8296
|
-
function
|
|
8297
|
-
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel :
|
|
8290
|
+
function Fu(e, t) {
|
|
8291
|
+
return t === "richText" ? e.richTextLabel : t === "ordering" ? e.orderingLabel : Iu(e, t);
|
|
8298
8292
|
}
|
|
8299
|
-
function
|
|
8300
|
-
return
|
|
8293
|
+
function Iu(e, t) {
|
|
8294
|
+
return Nu[t](e);
|
|
8301
8295
|
}
|
|
8302
|
-
function
|
|
8296
|
+
function Lu(e, t) {
|
|
8303
8297
|
var n;
|
|
8304
8298
|
return (n = e.optionValueLabels.get(t)) == null ? t : n;
|
|
8305
8299
|
}
|
|
8306
|
-
function
|
|
8300
|
+
function Ru(e, t) {
|
|
8307
8301
|
var n;
|
|
8308
8302
|
return (n = e.candidateModeValueLabels.get(t)) == null ? t : n;
|
|
8309
8303
|
}
|
|
8310
|
-
function
|
|
8304
|
+
function zu(e, t) {
|
|
8311
8305
|
var n;
|
|
8312
8306
|
return (n = e.lineConnectLabelStyleLabels.get(t)) == null ? t : n;
|
|
8313
8307
|
}
|
|
8314
8308
|
//#endregion
|
|
8315
8309
|
//#region src/question/structure-editor/QuestionStructureCanvas.tsx
|
|
8316
|
-
function
|
|
8310
|
+
function Bu({ elements: e, extras: t, labels: n, onDeleteElement: r, onDeleteExtra: i, onMoveElement: s, onSelectElement: c, selectedElementClientId: l }) {
|
|
8317
8311
|
let [u, d] = h(null);
|
|
8318
8312
|
return /* @__PURE__ */ o("section", {
|
|
8319
8313
|
className: Q.panel,
|
|
@@ -8333,7 +8327,7 @@ function Hu({ elements: e, extras: t, labels: n, onDeleteElement: r, onDeleteExt
|
|
|
8333
8327
|
className: Z["element-list"],
|
|
8334
8328
|
children: [
|
|
8335
8329
|
e.map((t, i) => {
|
|
8336
|
-
let f = t.clientId === l, p =
|
|
8330
|
+
let f = t.clientId === l, p = Fu(n, t.type);
|
|
8337
8331
|
return /* @__PURE__ */ o("div", {
|
|
8338
8332
|
className: `${Z["element-card"]} ${f ? Z.active : ""}`,
|
|
8339
8333
|
onClick: () => c(t.clientId),
|
|
@@ -8397,7 +8391,7 @@ function Hu({ elements: e, extras: t, labels: n, onDeleteElement: r, onDeleteExt
|
|
|
8397
8391
|
children: n.extraTitle
|
|
8398
8392
|
}) : null,
|
|
8399
8393
|
t.map((t, r) => {
|
|
8400
|
-
let s = t.clientId === l, f =
|
|
8394
|
+
let s = t.clientId === l, f = ku(n, t.type);
|
|
8401
8395
|
return /* @__PURE__ */ o("div", {
|
|
8402
8396
|
className: `${Z["element-card"]} ${s ? Z.active : ""}`,
|
|
8403
8397
|
onClick: () => c(t.clientId),
|
|
@@ -8446,7 +8440,7 @@ function Hu({ elements: e, extras: t, labels: n, onDeleteElement: r, onDeleteExt
|
|
|
8446
8440
|
}
|
|
8447
8441
|
//#endregion
|
|
8448
8442
|
//#region src/question/structure-editor/QuestionStructurePalette.tsx
|
|
8449
|
-
function
|
|
8443
|
+
function Vu({ addedExtraTypes: e, labels: t, onAddElement: n, onAddExtra: r }) {
|
|
8450
8444
|
let i = new Set(e);
|
|
8451
8445
|
return /* @__PURE__ */ o("aside", {
|
|
8452
8446
|
className: Q.panel,
|
|
@@ -8461,11 +8455,11 @@ function Uu({ addedExtraTypes: e, labels: t, onAddElement: n, onAddExtra: r }) {
|
|
|
8461
8455
|
/* @__PURE__ */ a("div", {
|
|
8462
8456
|
className: Q.palette,
|
|
8463
8457
|
children: se.map((e) => /* @__PURE__ */ o("button", {
|
|
8464
|
-
"aria-label": `${t.addElement}: ${
|
|
8458
|
+
"aria-label": `${t.addElement}: ${Fu(t, e)}`,
|
|
8465
8459
|
className: Q["palette-button"],
|
|
8466
8460
|
onClick: () => n(e),
|
|
8467
8461
|
type: "button",
|
|
8468
|
-
children: [/* @__PURE__ */ a("strong", { children:
|
|
8462
|
+
children: [/* @__PURE__ */ a("strong", { children: Fu(t, e) }), /* @__PURE__ */ a("small", { children: ju(t, e) })]
|
|
8469
8463
|
}, e))
|
|
8470
8464
|
}),
|
|
8471
8465
|
/* @__PURE__ */ o("div", {
|
|
@@ -8478,12 +8472,12 @@ function Uu({ addedExtraTypes: e, labels: t, onAddElement: n, onAddExtra: r }) {
|
|
|
8478
8472
|
children: ce.map((e) => {
|
|
8479
8473
|
let n = i.has(e);
|
|
8480
8474
|
return /* @__PURE__ */ o("button", {
|
|
8481
|
-
"aria-label": `${t.addExtra}: ${
|
|
8475
|
+
"aria-label": `${t.addExtra}: ${ku(t, e)}`,
|
|
8482
8476
|
className: Q["palette-button"],
|
|
8483
8477
|
disabled: n,
|
|
8484
8478
|
onClick: () => r(e),
|
|
8485
8479
|
type: "button",
|
|
8486
|
-
children: [/* @__PURE__ */ a("strong", { children:
|
|
8480
|
+
children: [/* @__PURE__ */ a("strong", { children: ku(t, e) }), /* @__PURE__ */ a("small", { children: Ou(t, e) })]
|
|
8487
8481
|
}, e);
|
|
8488
8482
|
})
|
|
8489
8483
|
})]
|
|
@@ -8500,27 +8494,27 @@ var $ = {
|
|
|
8500
8494
|
select: "_select_tgswd_27",
|
|
8501
8495
|
textarea: "_textarea_tgswd_28",
|
|
8502
8496
|
empty: "_empty_tgswd_61"
|
|
8503
|
-
},
|
|
8497
|
+
}, Hu = [
|
|
8504
8498
|
"none",
|
|
8505
8499
|
"sharedPool",
|
|
8506
8500
|
"perBlankOptions"
|
|
8507
|
-
],
|
|
8501
|
+
], Uu = [
|
|
8508
8502
|
"upperAlpha",
|
|
8509
8503
|
"lowerAlpha",
|
|
8510
8504
|
"number"
|
|
8511
|
-
],
|
|
8505
|
+
], Wu = [
|
|
8512
8506
|
"number",
|
|
8513
8507
|
"upperAlpha",
|
|
8514
8508
|
"lowerAlpha",
|
|
8515
8509
|
"lowerRoman",
|
|
8516
8510
|
"chineseNumber",
|
|
8517
8511
|
"none"
|
|
8518
|
-
],
|
|
8512
|
+
], Gu = [
|
|
8519
8513
|
2,
|
|
8520
8514
|
3,
|
|
8521
8515
|
4,
|
|
8522
8516
|
5
|
|
8523
|
-
],
|
|
8517
|
+
], Ku = ["standard", "table"], qu = ["single", "multiple"], Ju = ["spelling", "sentence"], Yu = [
|
|
8524
8518
|
"correctWrong",
|
|
8525
8519
|
"yesNo",
|
|
8526
8520
|
"validInvalid",
|
|
@@ -8528,8 +8522,8 @@ var $ = {
|
|
|
8528
8522
|
"rightWrong",
|
|
8529
8523
|
"checkCross"
|
|
8530
8524
|
];
|
|
8531
|
-
function
|
|
8532
|
-
let f =
|
|
8525
|
+
function Xu({ description: e, globalConfig: t, isSubjective: n, labels: r, onElementChange: i, onExtraChange: s, onGlobalConfigChange: c, onMetadataChange: l, selectedExtra: u, selectedElement: d }) {
|
|
8526
|
+
let f = Zu({
|
|
8533
8527
|
labels: r,
|
|
8534
8528
|
onElementChange: i,
|
|
8535
8529
|
onExtraChange: s,
|
|
@@ -8611,7 +8605,7 @@ function Qu({ description: e, globalConfig: t, isSubjective: n, labels: r, onEle
|
|
|
8611
8605
|
})]
|
|
8612
8606
|
});
|
|
8613
8607
|
}
|
|
8614
|
-
function
|
|
8608
|
+
function Zu({ labels: e, onElementChange: t, onExtraChange: n, selectedElement: r, selectedExtra: i }) {
|
|
8615
8609
|
return r ? /* @__PURE__ */ o("div", {
|
|
8616
8610
|
className: $["form-stack"],
|
|
8617
8611
|
children: [
|
|
@@ -8631,7 +8625,7 @@ function $u({ labels: e, onElementChange: t, onExtraChange: n, selectedElement:
|
|
|
8631
8625
|
value: r.enName
|
|
8632
8626
|
})]
|
|
8633
8627
|
}),
|
|
8634
|
-
|
|
8628
|
+
Qu(r, e, t)
|
|
8635
8629
|
]
|
|
8636
8630
|
}) : i ? /* @__PURE__ */ o("div", {
|
|
8637
8631
|
className: $["form-stack"],
|
|
@@ -8655,10 +8649,10 @@ function $u({ labels: e, onElementChange: t, onExtraChange: n, selectedElement:
|
|
|
8655
8649
|
children: e.noElement
|
|
8656
8650
|
});
|
|
8657
8651
|
}
|
|
8658
|
-
function
|
|
8659
|
-
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null :
|
|
8652
|
+
function Qu(e, t, n) {
|
|
8653
|
+
return e.type === "fill" || e.type === "classification" || e.type === "ordering" || e.type === "richText" || e.type === "textMarker" || e.type === "textResponse" ? null : $u(e, t, n);
|
|
8660
8654
|
}
|
|
8661
|
-
function
|
|
8655
|
+
function $u(e, t, n) {
|
|
8662
8656
|
switch (e.type) {
|
|
8663
8657
|
case "inlineFill": return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("label", {
|
|
8664
8658
|
className: $["form-row"],
|
|
@@ -8666,9 +8660,9 @@ function td(e, t, n) {
|
|
|
8666
8660
|
className: $.select,
|
|
8667
8661
|
onChange: (t) => n(k(k({}, e), {}, { config: k(k({}, e.config), {}, { candidateMode: t.target.value }) })),
|
|
8668
8662
|
value: e.config.candidateMode,
|
|
8669
|
-
children:
|
|
8663
|
+
children: Hu.map((e) => /* @__PURE__ */ a("option", {
|
|
8670
8664
|
value: e,
|
|
8671
|
-
children:
|
|
8665
|
+
children: Ru(t, e)
|
|
8672
8666
|
}, e))
|
|
8673
8667
|
})]
|
|
8674
8668
|
}), /* @__PURE__ */ o("label", {
|
|
@@ -8685,9 +8679,9 @@ function td(e, t, n) {
|
|
|
8685
8679
|
className: $.select,
|
|
8686
8680
|
onChange: (t) => n(k(k({}, e), {}, { config: { builderMode: t.target.value } })),
|
|
8687
8681
|
value: e.config.builderMode,
|
|
8688
|
-
children:
|
|
8682
|
+
children: Ju.map((e) => /* @__PURE__ */ a("option", {
|
|
8689
8683
|
value: e,
|
|
8690
|
-
children:
|
|
8684
|
+
children: Lu(t, e)
|
|
8691
8685
|
}, e))
|
|
8692
8686
|
})]
|
|
8693
8687
|
});
|
|
@@ -8697,18 +8691,18 @@ function td(e, t, n) {
|
|
|
8697
8691
|
className: $.select,
|
|
8698
8692
|
onChange: (t) => n(k(k({}, e), {}, { config: { judgeAnswerMode: t.target.value } })),
|
|
8699
8693
|
value: e.config.judgeAnswerMode,
|
|
8700
|
-
children:
|
|
8694
|
+
children: Yu.map((e) => /* @__PURE__ */ a("option", {
|
|
8701
8695
|
value: e,
|
|
8702
|
-
children:
|
|
8696
|
+
children: Lu(t, e)
|
|
8703
8697
|
}, e))
|
|
8704
8698
|
})]
|
|
8705
8699
|
});
|
|
8706
|
-
case "choice": return
|
|
8707
|
-
case "lineConnect": return
|
|
8708
|
-
case "matching": return
|
|
8700
|
+
case "choice": return ed(e, t, n);
|
|
8701
|
+
case "lineConnect": return td(e, t, n);
|
|
8702
|
+
case "matching": return nd(e, t, n);
|
|
8709
8703
|
}
|
|
8710
8704
|
}
|
|
8711
|
-
function
|
|
8705
|
+
function ed(e, t, n) {
|
|
8712
8706
|
return /* @__PURE__ */ o(i, { children: [
|
|
8713
8707
|
/* @__PURE__ */ o("label", {
|
|
8714
8708
|
className: $["form-row"],
|
|
@@ -8716,9 +8710,9 @@ function nd(e, t, n) {
|
|
|
8716
8710
|
className: $.select,
|
|
8717
8711
|
onChange: (t) => n(k(k({}, e), {}, { config: k(k({}, e.config), {}, { selectionType: t.target.value }) })),
|
|
8718
8712
|
value: e.config.selectionType,
|
|
8719
|
-
children:
|
|
8713
|
+
children: qu.map((e) => /* @__PURE__ */ a("option", {
|
|
8720
8714
|
value: e,
|
|
8721
|
-
children:
|
|
8715
|
+
children: Lu(t, e)
|
|
8722
8716
|
}, e))
|
|
8723
8717
|
})]
|
|
8724
8718
|
}),
|
|
@@ -8728,9 +8722,9 @@ function nd(e, t, n) {
|
|
|
8728
8722
|
className: $.select,
|
|
8729
8723
|
onChange: (t) => n(k(k({}, e), {}, { config: k(k({}, e.config), {}, { optionLabelStyle: t.target.value }) })),
|
|
8730
8724
|
value: e.config.optionLabelStyle,
|
|
8731
|
-
children:
|
|
8725
|
+
children: Uu.map((e) => /* @__PURE__ */ a("option", {
|
|
8732
8726
|
value: e,
|
|
8733
|
-
children:
|
|
8727
|
+
children: Lu(t, e)
|
|
8734
8728
|
}, e))
|
|
8735
8729
|
})]
|
|
8736
8730
|
}),
|
|
@@ -8740,23 +8734,23 @@ function nd(e, t, n) {
|
|
|
8740
8734
|
className: $.select,
|
|
8741
8735
|
onChange: (t) => n(k(k({}, e), {}, { config: k(k({}, e.config), {}, { renderer: t.target.value }) })),
|
|
8742
8736
|
value: e.config.renderer,
|
|
8743
|
-
children:
|
|
8737
|
+
children: Ku.map((e) => /* @__PURE__ */ a("option", {
|
|
8744
8738
|
value: e,
|
|
8745
|
-
children:
|
|
8739
|
+
children: Lu(t, e)
|
|
8746
8740
|
}, e))
|
|
8747
8741
|
})]
|
|
8748
8742
|
})
|
|
8749
8743
|
] });
|
|
8750
8744
|
}
|
|
8751
|
-
function
|
|
8752
|
-
let r =
|
|
8745
|
+
function td(e, t, n) {
|
|
8746
|
+
let r = rd(e.config.columns);
|
|
8753
8747
|
return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o("label", {
|
|
8754
8748
|
className: $["form-row"],
|
|
8755
8749
|
children: [/* @__PURE__ */ a("span", { children: t.lineConnectColumnCount }), /* @__PURE__ */ a("select", {
|
|
8756
8750
|
className: $.select,
|
|
8757
|
-
onChange: (t) => n(k(k({}, e), {}, { config: { columns:
|
|
8751
|
+
onChange: (t) => n(k(k({}, e), {}, { config: { columns: ad(r, Number(t.target.value)) } })),
|
|
8758
8752
|
value: r.length,
|
|
8759
|
-
children:
|
|
8753
|
+
children: Gu.map((e) => /* @__PURE__ */ a("option", {
|
|
8760
8754
|
value: e,
|
|
8761
8755
|
children: e
|
|
8762
8756
|
}, e))
|
|
@@ -8767,47 +8761,47 @@ function rd(e, t, n) {
|
|
|
8767
8761
|
className: $.select,
|
|
8768
8762
|
onChange: (t) => n(k(k({}, e), {}, { config: { columns: r.map((e, n) => n === s ? { labelStyle: t.target.value } : e) } })),
|
|
8769
8763
|
value: i.labelStyle,
|
|
8770
|
-
children:
|
|
8764
|
+
children: Wu.map((e) => /* @__PURE__ */ a("option", {
|
|
8771
8765
|
value: e,
|
|
8772
|
-
children:
|
|
8766
|
+
children: zu(t, e)
|
|
8773
8767
|
}, e))
|
|
8774
8768
|
})]
|
|
8775
8769
|
}, `line-column-${s}`))] });
|
|
8776
8770
|
}
|
|
8777
|
-
function
|
|
8778
|
-
let r =
|
|
8771
|
+
function nd(e, t, n) {
|
|
8772
|
+
let r = id(e.config.columns);
|
|
8779
8773
|
return /* @__PURE__ */ a(i, { children: r.map((i, s) => /* @__PURE__ */ o("label", {
|
|
8780
8774
|
className: $["form-row"],
|
|
8781
8775
|
children: [/* @__PURE__ */ a("span", { children: t.lineConnectColumnLabel(s + 1) }), /* @__PURE__ */ a("select", {
|
|
8782
8776
|
className: $.select,
|
|
8783
8777
|
onChange: (t) => n(k(k({}, e), {}, { config: { columns: r.map((e, n) => n === s ? { labelStyle: t.target.value } : e) } })),
|
|
8784
8778
|
value: i.labelStyle,
|
|
8785
|
-
children:
|
|
8779
|
+
children: Wu.map((e) => /* @__PURE__ */ a("option", {
|
|
8786
8780
|
value: e,
|
|
8787
|
-
children:
|
|
8781
|
+
children: zu(t, e)
|
|
8788
8782
|
}, e))
|
|
8789
8783
|
})]
|
|
8790
8784
|
}, `matching-column-${s}`)) });
|
|
8791
8785
|
}
|
|
8792
|
-
function
|
|
8786
|
+
function rd(e) {
|
|
8793
8787
|
let t = e.slice(0, 5);
|
|
8794
|
-
return t.length >= 2 ? t : [...t, ...
|
|
8788
|
+
return t.length >= 2 ? t : [...t, ...Wu.slice(t.length, 2).map((e) => ({ labelStyle: e }))];
|
|
8795
8789
|
}
|
|
8796
|
-
function
|
|
8790
|
+
function id(e) {
|
|
8797
8791
|
let t = e.slice(0, 2);
|
|
8798
|
-
return t.length >= 2 ? t : [...t, ...
|
|
8792
|
+
return t.length >= 2 ? t : [...t, ...Wu.slice(t.length, 2).map((e) => ({ labelStyle: e }))];
|
|
8799
8793
|
}
|
|
8800
|
-
function
|
|
8794
|
+
function ad(e, t) {
|
|
8801
8795
|
return Array.from({ length: Math.min(5, Math.max(2, t)) }, (t, n) => {
|
|
8802
8796
|
var r, i;
|
|
8803
|
-
return (r = e.slice(n, n + 1)[0]) == null ? { labelStyle: (i =
|
|
8797
|
+
return (r = e.slice(n, n + 1)[0]) == null ? { labelStyle: (i = Wu[n]) == null ? "number" : i } : r;
|
|
8804
8798
|
});
|
|
8805
8799
|
}
|
|
8806
8800
|
//#endregion
|
|
8807
8801
|
//#region src/question/structure-editor/QuestionStructureEditor.tsx
|
|
8808
|
-
function
|
|
8802
|
+
function od({ locale: e = "zh-CN", onChange: t, value: n }) {
|
|
8809
8803
|
var r, i, s, c;
|
|
8810
|
-
let l =
|
|
8804
|
+
let l = Au(e), [u, d] = h((r = (i = n.elements[0]) == null ? void 0 : i.clientId) == null ? null : r), { selectedElement: f, selectedExtra: p } = sd(n, u);
|
|
8811
8805
|
function m(e) {
|
|
8812
8806
|
let r = he(e, n.elements);
|
|
8813
8807
|
t(k(k({}, n), {}, { elements: [...n.elements, r] })), d(r.clientId);
|
|
@@ -8819,11 +8813,11 @@ function cd({ locale: e = "zh-CN", onChange: t, value: n }) {
|
|
|
8819
8813
|
}
|
|
8820
8814
|
function _(e) {
|
|
8821
8815
|
let r = ye(n, e);
|
|
8822
|
-
t(r), d(
|
|
8816
|
+
t(r), d(cd(r));
|
|
8823
8817
|
}
|
|
8824
8818
|
function v(e) {
|
|
8825
8819
|
let r = ve(n, e);
|
|
8826
|
-
t(r), d(
|
|
8820
|
+
t(r), d(cd(r));
|
|
8827
8821
|
}
|
|
8828
8822
|
function y(e) {
|
|
8829
8823
|
t(Se(n, e.clientId, e));
|
|
@@ -8838,19 +8832,19 @@ function cd({ locale: e = "zh-CN", onChange: t, value: n }) {
|
|
|
8838
8832
|
t(we(n, e));
|
|
8839
8833
|
}
|
|
8840
8834
|
return /* @__PURE__ */ a("section", {
|
|
8841
|
-
className:
|
|
8835
|
+
className: Eu.root,
|
|
8842
8836
|
children: /* @__PURE__ */ a("div", {
|
|
8843
8837
|
className: Q.shell,
|
|
8844
8838
|
children: /* @__PURE__ */ o("div", {
|
|
8845
8839
|
className: Q.grid,
|
|
8846
8840
|
children: [
|
|
8847
|
-
/* @__PURE__ */ a(
|
|
8841
|
+
/* @__PURE__ */ a(Vu, {
|
|
8848
8842
|
addedExtraTypes: n.extras.map((e) => e.type),
|
|
8849
8843
|
labels: l,
|
|
8850
8844
|
onAddElement: m,
|
|
8851
8845
|
onAddExtra: g
|
|
8852
8846
|
}),
|
|
8853
|
-
/* @__PURE__ */ a(
|
|
8847
|
+
/* @__PURE__ */ a(Bu, {
|
|
8854
8848
|
elements: n.elements,
|
|
8855
8849
|
extras: n.extras,
|
|
8856
8850
|
labels: l,
|
|
@@ -8860,7 +8854,7 @@ function cd({ locale: e = "zh-CN", onChange: t, value: n }) {
|
|
|
8860
8854
|
onSelectElement: d,
|
|
8861
8855
|
selectedElementClientId: (s = (c = f == null ? void 0 : f.clientId) == null ? p == null ? void 0 : p.clientId : c) == null ? null : s
|
|
8862
8856
|
}),
|
|
8863
|
-
/* @__PURE__ */ a(
|
|
8857
|
+
/* @__PURE__ */ a(Xu, {
|
|
8864
8858
|
description: n.description,
|
|
8865
8859
|
globalConfig: n.globalConfig,
|
|
8866
8860
|
isSubjective: n.isSubjective,
|
|
@@ -8877,7 +8871,7 @@ function cd({ locale: e = "zh-CN", onChange: t, value: n }) {
|
|
|
8877
8871
|
})
|
|
8878
8872
|
});
|
|
8879
8873
|
}
|
|
8880
|
-
function
|
|
8874
|
+
function sd(e, t) {
|
|
8881
8875
|
var n, r, i, a;
|
|
8882
8876
|
let o = (n = e.elements.find((e) => e.clientId === t)) == null ? null : n, s = (r = e.extras.find((e) => e.clientId === t)) == null ? null : r;
|
|
8883
8877
|
return o || s ? {
|
|
@@ -8888,9 +8882,9 @@ function ld(e, t) {
|
|
|
8888
8882
|
selectedExtra: e.elements[0] || (a = e.extras[0]) == null ? null : a
|
|
8889
8883
|
};
|
|
8890
8884
|
}
|
|
8891
|
-
function
|
|
8885
|
+
function cd(e) {
|
|
8892
8886
|
var t, n, r, i;
|
|
8893
8887
|
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;
|
|
8894
8888
|
}
|
|
8895
8889
|
//#endregion
|
|
8896
|
-
export { is as QuestionContentEditor,
|
|
8890
|
+
export { is as QuestionContentEditor, Jl as QuestionPlayer, xu as QuestionPreview, K as QuestionRichContentView, od as QuestionStructureEditor, Wn as addBlankToGroup, vn as alignQuestionContentDraftWithStructure, qn as assignBlankToAnswerGroup, Ya as cn, Jn as createBlankAnswerGroupWithBlank, Jt as createEmptyQuestionContentDraft, Gs as createEmptyQuestionPlayerResponse, pe as createEmptyQuestionStructureDraft, _n as createQuestionContentDraftFromSerialized, D as createQuestionContentId, ss as createQuestionContentStructureFromDraft, cs as createQuestionPreviewDraft, he as createQuestionStructureElement, me as createQuestionStructureExtra, M as createRichContentValue, $t as createRichContentValueFromDocument, Pe as createRichTextContent, Gn as deleteBlankFromGroup, ye as deleteQuestionStructureElement, ve as deleteQuestionStructureExtra, Yn as detachBlankFromAnswerGroup, ia as findQuestionContentQuestionTypeStructure, ca as findQuestionContentQuestionTypeTemplate, un as getQuestionContentJudgementOptions, sn as getQuestionContentOptionMarker, nn as getQuestionContentTextMarkerAnswerText, us as getQuestionStructureDraftChangeKind, j as getQuestionStructureElementDefaultEnName, A as getQuestionStructureElementDefaultName, Ee as getQuestionStructureExtraDefaultEnName, Te as getQuestionStructureExtraDefaultName, rn as getRichContentDocument, Kn as getSharedBlankAnswerGroups, qt as isCompositeQuestionContentStructure, hn as isQuestionContentDraftEmpty, be as moveQuestionStructureElement, Dn as normalizeFillTextCandidateState, Fe as normalizeRichTextContent, se as questionStructureElementTypes, ce as questionStructureExtraTypes, la as reconcileQuestionContentDraftWithTemplates, gn as serializeQuestionContentDraft, ls as serializeQuestionStructureDraft, Se as updateQuestionStructureElement, xe as updateQuestionStructureExtra, Ce as updateQuestionStructureGlobalConfig, we as updateQuestionStructureMetadata };
|