catchup-library-web 2.1.5 → 2.2.0
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.d.mts +2 -15
- package/dist/index.d.ts +2 -15
- package/dist/index.js +122 -343
- package/dist/index.mjs +122 -342
- package/package.json +1 -1
- package/src/components/activities/ActivityPreviewByData.tsx +194 -180
- package/src/index.ts +0 -1
- package/src/properties/ActivityProperties.ts +0 -12
- package/src/components/activities/ActivityPreviewByAnswerData.tsx +0 -268
package/dist/index.js
CHANGED
|
@@ -71,7 +71,6 @@ __export(index_exports, {
|
|
|
71
71
|
ActivityEmptyContent: () => ActivityEmptyContent_default,
|
|
72
72
|
ActivityEvaluationRubricContent: () => ActivityEvaluationRubricContent_default,
|
|
73
73
|
ActivityLabel: () => ActivityLabel_default,
|
|
74
|
-
ActivityPreviewByAnswerData: () => ActivityPreviewByAnswerData_default,
|
|
75
74
|
ActivityPreviewByData: () => ActivityPreviewByData_default,
|
|
76
75
|
ActivitySolutionContent: () => ActivitySolutionContent_default,
|
|
77
76
|
ActivityTemplateLabel: () => ActivityTemplateLabel_default,
|
|
@@ -7204,225 +7203,6 @@ var SelectionBox_default = SelectionBox;
|
|
|
7204
7203
|
|
|
7205
7204
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
7206
7205
|
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
7207
|
-
var ActivityPreviewByData = ({
|
|
7208
|
-
data,
|
|
7209
|
-
showType,
|
|
7210
|
-
showDescription,
|
|
7211
|
-
lockedType,
|
|
7212
|
-
typeOptionList,
|
|
7213
|
-
showSolution,
|
|
7214
|
-
showEvaluationRubric,
|
|
7215
|
-
showDifficulty,
|
|
7216
|
-
isFullScreen
|
|
7217
|
-
}) => {
|
|
7218
|
-
const [key, setKey] = (0, import_react25.useState)((/* @__PURE__ */ new Date()).getTime());
|
|
7219
|
-
const [selectedType, setSelectedType] = (0, import_react25.useState)(null);
|
|
7220
|
-
const [optionList, setOptionList] = (0, import_react25.useState)([]);
|
|
7221
|
-
(0, import_react25.useEffect)(() => {
|
|
7222
|
-
if (!data) return;
|
|
7223
|
-
setKey((/* @__PURE__ */ new Date()).getTime());
|
|
7224
|
-
}, [data]);
|
|
7225
|
-
(0, import_react25.useEffect)(() => {
|
|
7226
|
-
if (!typeOptionList) return;
|
|
7227
|
-
if (typeOptionList.length === 0) return;
|
|
7228
|
-
let foundTypeOption;
|
|
7229
|
-
if (lockedType) {
|
|
7230
|
-
foundTypeOption = typeOptionList.find(
|
|
7231
|
-
(typeOption) => typeOption.id === lockedType
|
|
7232
|
-
);
|
|
7233
|
-
}
|
|
7234
|
-
if (foundTypeOption) {
|
|
7235
|
-
setSelectedType(foundTypeOption.id);
|
|
7236
|
-
} else {
|
|
7237
|
-
setSelectedType(typeOptionList[0].id);
|
|
7238
|
-
}
|
|
7239
|
-
}, [typeOptionList, lockedType]);
|
|
7240
|
-
(0, import_react25.useEffect)(() => {
|
|
7241
|
-
if (!data) return;
|
|
7242
|
-
if (!typeOptionList) return;
|
|
7243
|
-
if (typeOptionList.length === 0) return;
|
|
7244
|
-
let currentTypeOptionList = JSON.parse(JSON.stringify(typeOptionList));
|
|
7245
|
-
if (lockedType) {
|
|
7246
|
-
currentTypeOptionList = currentTypeOptionList.filter(
|
|
7247
|
-
(typeOption) => typeOption.id === lockedType
|
|
7248
|
-
);
|
|
7249
|
-
}
|
|
7250
|
-
if (showDifficulty) {
|
|
7251
|
-
setOptionList(
|
|
7252
|
-
currentTypeOptionList.map((typeOption) => __spreadProps(__spreadValues({}, typeOption), {
|
|
7253
|
-
subText: i18n_default.t(
|
|
7254
|
-
retrieveDifficultyByActivityTypeFromData(typeOption.id, data)
|
|
7255
|
-
)
|
|
7256
|
-
}))
|
|
7257
|
-
);
|
|
7258
|
-
} else {
|
|
7259
|
-
setOptionList(currentTypeOptionList);
|
|
7260
|
-
}
|
|
7261
|
-
}, [data, lockedType, typeOptionList, showDifficulty]);
|
|
7262
|
-
if (!data) return;
|
|
7263
|
-
if (!selectedType) return;
|
|
7264
|
-
const answerMap = constructAnswerBasedOnData(selectedType, data);
|
|
7265
|
-
console.log("answer map: ", answerMap);
|
|
7266
|
-
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
|
|
7267
|
-
showType ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7268
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "mb-4", children: [
|
|
7269
|
-
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7270
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7271
|
-
SelectionBox_default,
|
|
7272
|
-
{
|
|
7273
|
-
optionList,
|
|
7274
|
-
selectedId: selectedType,
|
|
7275
|
-
handleSelectOnClick: (itemId) => {
|
|
7276
|
-
setSelectedType(itemId);
|
|
7277
|
-
}
|
|
7278
|
-
}
|
|
7279
|
-
)
|
|
7280
|
-
] }),
|
|
7281
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DividerLine_default, {})
|
|
7282
|
-
] }) : null,
|
|
7283
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7284
|
-
OrderingActivityContent_default,
|
|
7285
|
-
{
|
|
7286
|
-
answerMap,
|
|
7287
|
-
changeAnswer: () => {
|
|
7288
|
-
},
|
|
7289
|
-
canAnswerQuestion: () => {
|
|
7290
|
-
return true;
|
|
7291
|
-
},
|
|
7292
|
-
data,
|
|
7293
|
-
isPreview: true,
|
|
7294
|
-
showCorrectAnswer: true
|
|
7295
|
-
}
|
|
7296
|
-
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7297
|
-
DropdownActivityContent_default,
|
|
7298
|
-
{
|
|
7299
|
-
answerMap,
|
|
7300
|
-
changeAnswer: () => {
|
|
7301
|
-
},
|
|
7302
|
-
canAnswerQuestion: () => {
|
|
7303
|
-
return true;
|
|
7304
|
-
},
|
|
7305
|
-
data,
|
|
7306
|
-
isPreview: true,
|
|
7307
|
-
showCorrectAnswer: true,
|
|
7308
|
-
isFullScreen
|
|
7309
|
-
}
|
|
7310
|
-
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7311
|
-
MCSAActivityContent_default,
|
|
7312
|
-
{
|
|
7313
|
-
answerMap,
|
|
7314
|
-
changeAnswer: () => {
|
|
7315
|
-
},
|
|
7316
|
-
canAnswerQuestion: () => {
|
|
7317
|
-
return true;
|
|
7318
|
-
},
|
|
7319
|
-
data,
|
|
7320
|
-
isPreview: true,
|
|
7321
|
-
showCorrectAnswer: true,
|
|
7322
|
-
isFullScreen
|
|
7323
|
-
}
|
|
7324
|
-
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7325
|
-
MCMAActivityContent_default,
|
|
7326
|
-
{
|
|
7327
|
-
answerMap,
|
|
7328
|
-
changeAnswer: () => {
|
|
7329
|
-
},
|
|
7330
|
-
canAnswerQuestion: () => {
|
|
7331
|
-
return true;
|
|
7332
|
-
},
|
|
7333
|
-
data,
|
|
7334
|
-
isPreview: true,
|
|
7335
|
-
showCorrectAnswer: true,
|
|
7336
|
-
isFullScreen
|
|
7337
|
-
}
|
|
7338
|
-
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7339
|
-
MatchingActivityContent_default,
|
|
7340
|
-
{
|
|
7341
|
-
answerMap,
|
|
7342
|
-
changeAnswer: () => {
|
|
7343
|
-
},
|
|
7344
|
-
canAnswerQuestion: () => {
|
|
7345
|
-
return true;
|
|
7346
|
-
},
|
|
7347
|
-
data,
|
|
7348
|
-
isPreview: true,
|
|
7349
|
-
showCorrectAnswer: true
|
|
7350
|
-
}
|
|
7351
|
-
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7352
|
-
GroupingActivityContent_default,
|
|
7353
|
-
{
|
|
7354
|
-
answerMap,
|
|
7355
|
-
changeAnswer: () => {
|
|
7356
|
-
},
|
|
7357
|
-
canAnswerQuestion: () => {
|
|
7358
|
-
return true;
|
|
7359
|
-
},
|
|
7360
|
-
data,
|
|
7361
|
-
isPreview: true,
|
|
7362
|
-
showCorrectAnswer: true
|
|
7363
|
-
}
|
|
7364
|
-
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7365
|
-
FillInTheBlanksActivityContent_default,
|
|
7366
|
-
{
|
|
7367
|
-
answerMap,
|
|
7368
|
-
changeAnswer: () => {
|
|
7369
|
-
},
|
|
7370
|
-
canAnswerQuestion: () => {
|
|
7371
|
-
return true;
|
|
7372
|
-
},
|
|
7373
|
-
data,
|
|
7374
|
-
isPreview: true,
|
|
7375
|
-
showCorrectAnswer: true,
|
|
7376
|
-
isFullScreen
|
|
7377
|
-
}
|
|
7378
|
-
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7379
|
-
OpenEndedActivityContent_default,
|
|
7380
|
-
{
|
|
7381
|
-
answerMap,
|
|
7382
|
-
canAnswerQuestion: () => false,
|
|
7383
|
-
changeAnswer: () => {
|
|
7384
|
-
},
|
|
7385
|
-
showMaterialContent: true,
|
|
7386
|
-
data,
|
|
7387
|
-
isPreview: true,
|
|
7388
|
-
isFullScreen
|
|
7389
|
-
}
|
|
7390
|
-
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7391
|
-
TrueFalseActivityContent_default,
|
|
7392
|
-
{
|
|
7393
|
-
answerMap,
|
|
7394
|
-
changeAnswer: () => {
|
|
7395
|
-
},
|
|
7396
|
-
canAnswerQuestion: () => {
|
|
7397
|
-
return true;
|
|
7398
|
-
},
|
|
7399
|
-
data,
|
|
7400
|
-
isPreview: true,
|
|
7401
|
-
showCorrectAnswer: true,
|
|
7402
|
-
isFullScreen
|
|
7403
|
-
}
|
|
7404
|
-
) : null }, selectedType),
|
|
7405
|
-
showSolution ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7406
|
-
ActivitySolutionContent_default,
|
|
7407
|
-
{
|
|
7408
|
-
activityTemplateType: selectedType,
|
|
7409
|
-
data
|
|
7410
|
-
}
|
|
7411
|
-
) }) : null,
|
|
7412
|
-
showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7413
|
-
ActivityEvaluationRubricContent_default,
|
|
7414
|
-
{
|
|
7415
|
-
activityTemplateType: selectedType,
|
|
7416
|
-
data
|
|
7417
|
-
}
|
|
7418
|
-
) }) : null
|
|
7419
|
-
] }, key);
|
|
7420
|
-
};
|
|
7421
|
-
var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
7422
|
-
|
|
7423
|
-
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
7424
|
-
var import_react26 = require("react");
|
|
7425
|
-
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
7426
7206
|
var ACTIVITY_TEMPLATE_LIST = [
|
|
7427
7207
|
{ type: "ORDERING", materialMap: "orderingMaterialMap" },
|
|
7428
7208
|
{ type: "DROPDOWN", materialMap: "dropdownMaterialMap" },
|
|
@@ -7437,7 +7217,7 @@ var ACTIVITY_TEMPLATE_LIST = [
|
|
|
7437
7217
|
{ type: "OPEN_ENDED", materialMap: "openEndedMaterialMap" },
|
|
7438
7218
|
{ type: "TRUE_FALSE", materialMap: "trueFalseMaterialMap" }
|
|
7439
7219
|
];
|
|
7440
|
-
var
|
|
7220
|
+
var ActivityPreviewByData = ({
|
|
7441
7221
|
data,
|
|
7442
7222
|
answerType = null,
|
|
7443
7223
|
showType = true,
|
|
@@ -7449,11 +7229,11 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7449
7229
|
isFullScreen = false,
|
|
7450
7230
|
showCorrectAnswer = false
|
|
7451
7231
|
}) => {
|
|
7452
|
-
const [selectedType, setSelectedType] = (0,
|
|
7453
|
-
const [optionList, setOptionList] = (0,
|
|
7454
|
-
const [answerMapMap, setAnswerMapMap] = (0,
|
|
7455
|
-
const [activityTemplateTypeList, setActivityTemplateTypeList] = (0,
|
|
7456
|
-
(0,
|
|
7232
|
+
const [selectedType, setSelectedType] = (0, import_react25.useState)(null);
|
|
7233
|
+
const [optionList, setOptionList] = (0, import_react25.useState)([]);
|
|
7234
|
+
const [answerMapMap, setAnswerMapMap] = (0, import_react25.useState)({});
|
|
7235
|
+
const [activityTemplateTypeList, setActivityTemplateTypeList] = (0, import_react25.useState)([]);
|
|
7236
|
+
(0, import_react25.useEffect)(() => {
|
|
7457
7237
|
if (!data) return;
|
|
7458
7238
|
let currentActivityTemplateMapList = JSON.parse(
|
|
7459
7239
|
JSON.stringify(ACTIVITY_TEMPLATE_LIST)
|
|
@@ -7471,7 +7251,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7471
7251
|
}
|
|
7472
7252
|
setActivityTemplateTypeList(currentActivityTemplateMapList);
|
|
7473
7253
|
}, [data, answerType, typeList]);
|
|
7474
|
-
(0,
|
|
7254
|
+
(0, import_react25.useEffect)(() => {
|
|
7475
7255
|
if (activityTemplateTypeList.length === 0) return;
|
|
7476
7256
|
const currentOptionList = [];
|
|
7477
7257
|
for (const activityTemplateType of activityTemplateTypeList) {
|
|
@@ -7491,11 +7271,11 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7491
7271
|
}
|
|
7492
7272
|
setOptionList(currentOptionList);
|
|
7493
7273
|
}, [activityTemplateTypeList, showDifficulty]);
|
|
7494
|
-
(0,
|
|
7274
|
+
(0, import_react25.useEffect)(() => {
|
|
7495
7275
|
if (optionList.length === 0) return;
|
|
7496
7276
|
setSelectedType(optionList[0].id);
|
|
7497
7277
|
}, [optionList]);
|
|
7498
|
-
(0,
|
|
7278
|
+
(0, import_react25.useEffect)(() => {
|
|
7499
7279
|
if (activityTemplateTypeList.length === 0) return;
|
|
7500
7280
|
const currentAnswerMapMap = {};
|
|
7501
7281
|
for (const activityTemplateMap of activityTemplateTypeList) {
|
|
@@ -7525,44 +7305,44 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7525
7305
|
const isEmpty = answerMapMap[selectedType].isEmpty;
|
|
7526
7306
|
switch (selectedType) {
|
|
7527
7307
|
case "ORDERING":
|
|
7528
|
-
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0,
|
|
7529
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7530
|
-
/* @__PURE__ */ (0,
|
|
7308
|
+
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7309
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7310
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(OrderingActivityContent_default, __spreadValues({}, commonProps))
|
|
7531
7311
|
] }) : null;
|
|
7532
7312
|
case "DROPDOWN":
|
|
7533
|
-
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0,
|
|
7534
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7535
|
-
/* @__PURE__ */ (0,
|
|
7313
|
+
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7314
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7315
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DropdownActivityContent_default, __spreadValues({}, commonProps))
|
|
7536
7316
|
] }) : null;
|
|
7537
7317
|
case "MCSA":
|
|
7538
|
-
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0,
|
|
7539
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7540
|
-
/* @__PURE__ */ (0,
|
|
7318
|
+
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7319
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7320
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MCSAActivityContent_default, __spreadValues({}, commonProps))
|
|
7541
7321
|
] }) : null;
|
|
7542
7322
|
case "MCMA":
|
|
7543
|
-
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0,
|
|
7544
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7545
|
-
/* @__PURE__ */ (0,
|
|
7323
|
+
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7324
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7325
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MCMAActivityContent_default, __spreadValues({}, commonProps))
|
|
7546
7326
|
] }) : null;
|
|
7547
7327
|
case "MATCHING":
|
|
7548
|
-
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0,
|
|
7549
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7550
|
-
/* @__PURE__ */ (0,
|
|
7328
|
+
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7329
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7330
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MatchingActivityContent_default, __spreadValues({}, commonProps))
|
|
7551
7331
|
] }) : null;
|
|
7552
7332
|
case "GROUPING":
|
|
7553
|
-
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0,
|
|
7554
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7555
|
-
/* @__PURE__ */ (0,
|
|
7333
|
+
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7334
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7335
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(GroupingActivityContent_default, __spreadValues({}, commonProps))
|
|
7556
7336
|
] }) : null;
|
|
7557
7337
|
case "FILL_IN_THE_BLANKS":
|
|
7558
|
-
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0,
|
|
7559
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7560
|
-
/* @__PURE__ */ (0,
|
|
7338
|
+
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7339
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7340
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps))
|
|
7561
7341
|
] }) : null;
|
|
7562
7342
|
case "OPEN_ENDED":
|
|
7563
|
-
return data.openEndedBodyMap ? /* @__PURE__ */ (0,
|
|
7564
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7565
|
-
/* @__PURE__ */ (0,
|
|
7343
|
+
return data.openEndedBodyMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7344
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7345
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7566
7346
|
OpenEndedActivityContent_default,
|
|
7567
7347
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
7568
7348
|
showMaterialContent: true
|
|
@@ -7570,20 +7350,20 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7570
7350
|
)
|
|
7571
7351
|
] }) : null;
|
|
7572
7352
|
case "TRUE_FALSE":
|
|
7573
|
-
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0,
|
|
7574
|
-
isEmpty && /* @__PURE__ */ (0,
|
|
7575
|
-
/* @__PURE__ */ (0,
|
|
7353
|
+
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7354
|
+
isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
|
|
7355
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TrueFalseActivityContent_default, __spreadValues({}, commonProps))
|
|
7576
7356
|
] }) : null;
|
|
7577
7357
|
default:
|
|
7578
7358
|
return null;
|
|
7579
7359
|
}
|
|
7580
7360
|
};
|
|
7581
7361
|
if (!data) return null;
|
|
7582
|
-
return /* @__PURE__ */ (0,
|
|
7583
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ (0,
|
|
7584
|
-
/* @__PURE__ */ (0,
|
|
7585
|
-
showDescription ? /* @__PURE__ */ (0,
|
|
7586
|
-
/* @__PURE__ */ (0,
|
|
7362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
|
|
7363
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
7364
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "mb-4", children: [
|
|
7365
|
+
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7366
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7587
7367
|
SelectionBox_default,
|
|
7588
7368
|
{
|
|
7589
7369
|
optionList,
|
|
@@ -7594,17 +7374,17 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7594
7374
|
}
|
|
7595
7375
|
)
|
|
7596
7376
|
] }),
|
|
7597
|
-
/* @__PURE__ */ (0,
|
|
7377
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DividerLine_default, {})
|
|
7598
7378
|
] }) : null,
|
|
7599
|
-
/* @__PURE__ */ (0,
|
|
7600
|
-
selectedType && showSolution ? /* @__PURE__ */ (0,
|
|
7379
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col my-2 w-full p-5", children: RenderSelectedActivityContent() }),
|
|
7380
|
+
selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7601
7381
|
ActivitySolutionContent_default,
|
|
7602
7382
|
{
|
|
7603
7383
|
activityTemplateType: selectedType,
|
|
7604
7384
|
data
|
|
7605
7385
|
}
|
|
7606
7386
|
) }) : null,
|
|
7607
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0,
|
|
7387
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7608
7388
|
ActivityEvaluationRubricContent_default,
|
|
7609
7389
|
{
|
|
7610
7390
|
activityTemplateType: selectedType,
|
|
@@ -7613,20 +7393,20 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7613
7393
|
) }) : null
|
|
7614
7394
|
] });
|
|
7615
7395
|
};
|
|
7616
|
-
var
|
|
7396
|
+
var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
7617
7397
|
|
|
7618
7398
|
// src/components/errors/StatusError.tsx
|
|
7619
|
-
var
|
|
7399
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
7620
7400
|
var StatusError = ({
|
|
7621
7401
|
statusCode,
|
|
7622
7402
|
statusText,
|
|
7623
7403
|
textSize
|
|
7624
7404
|
}) => {
|
|
7625
|
-
return /* @__PURE__ */ (0,
|
|
7626
|
-
/* @__PURE__ */ (0,
|
|
7627
|
-
/* @__PURE__ */ (0,
|
|
7628
|
-
/* @__PURE__ */ (0,
|
|
7629
|
-
/* @__PURE__ */ (0,
|
|
7405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7406
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7407
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "text-center my-5", children: [
|
|
7408
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
7409
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
|
|
7630
7410
|
"(",
|
|
7631
7411
|
statusCode ? `${statusCode} - ` : null,
|
|
7632
7412
|
statusText,
|
|
@@ -7638,9 +7418,9 @@ var StatusError = ({
|
|
|
7638
7418
|
var StatusError_default = StatusError;
|
|
7639
7419
|
|
|
7640
7420
|
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
7641
|
-
var
|
|
7421
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
7642
7422
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
7643
|
-
return /* @__PURE__ */ (0,
|
|
7423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7644
7424
|
"div",
|
|
7645
7425
|
{
|
|
7646
7426
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -7650,7 +7430,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7650
7430
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7651
7431
|
|
|
7652
7432
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7653
|
-
var
|
|
7433
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
7654
7434
|
var LeftTextRightInputGroup = ({
|
|
7655
7435
|
type,
|
|
7656
7436
|
title,
|
|
@@ -7660,9 +7440,9 @@ var LeftTextRightInputGroup = ({
|
|
|
7660
7440
|
disabled,
|
|
7661
7441
|
errorText
|
|
7662
7442
|
}) => {
|
|
7663
|
-
return /* @__PURE__ */ (0,
|
|
7664
|
-
/* @__PURE__ */ (0,
|
|
7665
|
-
/* @__PURE__ */ (0,
|
|
7443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7444
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { children: title }) }),
|
|
7445
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7666
7446
|
InputGroup_default,
|
|
7667
7447
|
{
|
|
7668
7448
|
type,
|
|
@@ -7678,8 +7458,8 @@ var LeftTextRightInputGroup = ({
|
|
|
7678
7458
|
var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
7679
7459
|
|
|
7680
7460
|
// src/components/groups/PageTravelGroup.tsx
|
|
7681
|
-
var
|
|
7682
|
-
var
|
|
7461
|
+
var import_react26 = require("react");
|
|
7462
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
7683
7463
|
var PageTravelGroup = ({
|
|
7684
7464
|
isImageProcessing,
|
|
7685
7465
|
handleImageProcessing,
|
|
@@ -7688,17 +7468,17 @@ var PageTravelGroup = ({
|
|
|
7688
7468
|
setPageNumber,
|
|
7689
7469
|
setImageReady
|
|
7690
7470
|
}) => {
|
|
7691
|
-
const [totalPageNumber, setTotalPageNumber] = (0,
|
|
7692
|
-
const [newPageNumber, setNewPageNumber] = (0,
|
|
7693
|
-
(0,
|
|
7471
|
+
const [totalPageNumber, setTotalPageNumber] = (0, import_react26.useState)(0);
|
|
7472
|
+
const [newPageNumber, setNewPageNumber] = (0, import_react26.useState)(0);
|
|
7473
|
+
(0, import_react26.useEffect)(() => {
|
|
7694
7474
|
if (!initialTotalPageNumber) return;
|
|
7695
7475
|
setTotalPageNumber(initialTotalPageNumber);
|
|
7696
7476
|
}, [initialTotalPageNumber]);
|
|
7697
|
-
(0,
|
|
7477
|
+
(0, import_react26.useEffect)(() => {
|
|
7698
7478
|
setNewPageNumber(pageNumber + 1);
|
|
7699
7479
|
}, [pageNumber]);
|
|
7700
|
-
return /* @__PURE__ */ (0,
|
|
7701
|
-
pageNumber === 0 ? null : /* @__PURE__ */ (0,
|
|
7480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7481
|
+
pageNumber === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7702
7482
|
BaseImage_default,
|
|
7703
7483
|
{
|
|
7704
7484
|
size: "small",
|
|
@@ -7716,7 +7496,7 @@ var PageTravelGroup = ({
|
|
|
7716
7496
|
}
|
|
7717
7497
|
}
|
|
7718
7498
|
) }),
|
|
7719
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0,
|
|
7499
|
+
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7720
7500
|
"p",
|
|
7721
7501
|
{
|
|
7722
7502
|
className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -7731,7 +7511,7 @@ var PageTravelGroup = ({
|
|
|
7731
7511
|
children: index + 1
|
|
7732
7512
|
}
|
|
7733
7513
|
) }, index)),
|
|
7734
|
-
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0,
|
|
7514
|
+
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7735
7515
|
BaseImage_default,
|
|
7736
7516
|
{
|
|
7737
7517
|
size: "small",
|
|
@@ -7749,7 +7529,7 @@ var PageTravelGroup = ({
|
|
|
7749
7529
|
}
|
|
7750
7530
|
}
|
|
7751
7531
|
) }),
|
|
7752
|
-
/* @__PURE__ */ (0,
|
|
7532
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7753
7533
|
"input",
|
|
7754
7534
|
{
|
|
7755
7535
|
className: `w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input`,
|
|
@@ -7773,14 +7553,14 @@ var PageTravelGroup = ({
|
|
|
7773
7553
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7774
7554
|
|
|
7775
7555
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7776
|
-
var
|
|
7556
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
7777
7557
|
var SelectionCheckbox = ({
|
|
7778
7558
|
optionList,
|
|
7779
7559
|
selectedIdList,
|
|
7780
7560
|
handleSelectOnClick,
|
|
7781
7561
|
handleRemoveOnClick
|
|
7782
7562
|
}) => {
|
|
7783
|
-
return /* @__PURE__ */ (0,
|
|
7563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7784
7564
|
"div",
|
|
7785
7565
|
{
|
|
7786
7566
|
className: `${selectedIdList.findIndex(
|
|
@@ -7795,14 +7575,14 @@ var SelectionCheckbox = ({
|
|
|
7795
7575
|
handleRemoveOnClick(option.id);
|
|
7796
7576
|
}
|
|
7797
7577
|
},
|
|
7798
|
-
children: /* @__PURE__ */ (0,
|
|
7578
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
7799
7579
|
"div",
|
|
7800
7580
|
{
|
|
7801
7581
|
className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
|
|
7802
7582
|
(selectedId) => selectedId === option.id
|
|
7803
7583
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
7804
7584
|
children: [
|
|
7805
|
-
/* @__PURE__ */ (0,
|
|
7585
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7806
7586
|
BaseImage_default,
|
|
7807
7587
|
{
|
|
7808
7588
|
src: selectedIdList.findIndex(
|
|
@@ -7812,7 +7592,7 @@ var SelectionCheckbox = ({
|
|
|
7812
7592
|
size: "small"
|
|
7813
7593
|
}
|
|
7814
7594
|
),
|
|
7815
|
-
/* @__PURE__ */ (0,
|
|
7595
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { children: option.text }) })
|
|
7816
7596
|
]
|
|
7817
7597
|
}
|
|
7818
7598
|
)
|
|
@@ -7823,7 +7603,7 @@ var SelectionCheckbox = ({
|
|
|
7823
7603
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7824
7604
|
|
|
7825
7605
|
// src/components/tabs/SelectionTab.tsx
|
|
7826
|
-
var
|
|
7606
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7827
7607
|
var SelectionTab = ({
|
|
7828
7608
|
optionList,
|
|
7829
7609
|
selectedId,
|
|
@@ -7833,7 +7613,7 @@ var SelectionTab = ({
|
|
|
7833
7613
|
textColor,
|
|
7834
7614
|
borderColor
|
|
7835
7615
|
}) => {
|
|
7836
|
-
return /* @__PURE__ */ (0,
|
|
7616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
7837
7617
|
"div",
|
|
7838
7618
|
{
|
|
7839
7619
|
className: `${selectedId === option.id ? selectedTextColor ? selectedTextColor : "text-catchup-blue-500" : textColor ? textColor : "text-catchup-gray-300"} ${selectedId === option.id ? selectedBorderColor ? selectedBorderColor : "border-catchup-blue-500" : borderColor ? borderColor : "border-catchup-gray-50"} border-b-2 transition-all duration-300 p-3 cursor-pointer`,
|
|
@@ -7841,8 +7621,8 @@ var SelectionTab = ({
|
|
|
7841
7621
|
handleSelectOnClick(option.id);
|
|
7842
7622
|
},
|
|
7843
7623
|
children: [
|
|
7844
|
-
/* @__PURE__ */ (0,
|
|
7845
|
-
option.subTitle ? /* @__PURE__ */ (0,
|
|
7624
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-lg", children: option.title }),
|
|
7625
|
+
option.subTitle ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-md", children: option.subTitle }) : null
|
|
7846
7626
|
]
|
|
7847
7627
|
},
|
|
7848
7628
|
index
|
|
@@ -7851,20 +7631,20 @@ var SelectionTab = ({
|
|
|
7851
7631
|
var SelectionTab_default = SelectionTab;
|
|
7852
7632
|
|
|
7853
7633
|
// src/components/tabs/SelectionTabFill.tsx
|
|
7854
|
-
var
|
|
7634
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7855
7635
|
var SelectionTabFill = ({
|
|
7856
7636
|
optionList,
|
|
7857
7637
|
selectedId,
|
|
7858
7638
|
handleSelectOnClick
|
|
7859
7639
|
}) => {
|
|
7860
|
-
return /* @__PURE__ */ (0,
|
|
7640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7861
7641
|
"div",
|
|
7862
7642
|
{
|
|
7863
7643
|
className: "cursor-pointer",
|
|
7864
7644
|
onClick: () => {
|
|
7865
7645
|
handleSelectOnClick(option.id);
|
|
7866
7646
|
},
|
|
7867
|
-
children: /* @__PURE__ */ (0,
|
|
7647
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7868
7648
|
"p",
|
|
7869
7649
|
{
|
|
7870
7650
|
className: `${selectedId === option.id ? "text-catchup-white bg-catchup-blue-500" : "text-catchup-gray-300"} transition-all duration-300 rounded-catchup-medium px-2 py-1`,
|
|
@@ -7878,34 +7658,34 @@ var SelectionTabFill = ({
|
|
|
7878
7658
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7879
7659
|
|
|
7880
7660
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
7881
|
-
var
|
|
7661
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7882
7662
|
var ActivityTemplateLabel = ({
|
|
7883
7663
|
title,
|
|
7884
7664
|
icon,
|
|
7885
7665
|
font
|
|
7886
7666
|
}) => {
|
|
7887
|
-
return /* @__PURE__ */ (0,
|
|
7888
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7889
|
-
/* @__PURE__ */ (0,
|
|
7667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7668
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7669
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7890
7670
|
] }) });
|
|
7891
7671
|
};
|
|
7892
7672
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
7893
7673
|
|
|
7894
7674
|
// src/components/labels/BrandLabel.tsx
|
|
7895
|
-
var
|
|
7675
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
7896
7676
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7897
|
-
return /* @__PURE__ */ (0,
|
|
7898
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7899
|
-
/* @__PURE__ */ (0,
|
|
7677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7678
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7679
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7900
7680
|
] }) });
|
|
7901
7681
|
};
|
|
7902
7682
|
var BrandLabel_default = BrandLabel;
|
|
7903
7683
|
|
|
7904
7684
|
// src/components/labels/CategoryLabel.tsx
|
|
7905
|
-
var
|
|
7685
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
7906
7686
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7907
|
-
return /* @__PURE__ */ (0,
|
|
7908
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7687
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7688
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7909
7689
|
BaseImage_default,
|
|
7910
7690
|
{
|
|
7911
7691
|
src: "/icons/category-label.webp",
|
|
@@ -7913,40 +7693,40 @@ var CategoryLabel = ({ title, icon, font }) => {
|
|
|
7913
7693
|
size: "xsmall"
|
|
7914
7694
|
}
|
|
7915
7695
|
),
|
|
7916
|
-
/* @__PURE__ */ (0,
|
|
7696
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7917
7697
|
] }) });
|
|
7918
7698
|
};
|
|
7919
7699
|
var CategoryLabel_default = CategoryLabel;
|
|
7920
7700
|
|
|
7921
7701
|
// src/components/labels/CoterieLabel.tsx
|
|
7922
|
-
var
|
|
7702
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
7923
7703
|
var CoterieLabel = ({ title, font }) => {
|
|
7924
|
-
return /* @__PURE__ */ (0,
|
|
7704
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7925
7705
|
};
|
|
7926
7706
|
var CoterieLabel_default = CoterieLabel;
|
|
7927
7707
|
|
|
7928
7708
|
// src/components/labels/GradeLabel.tsx
|
|
7929
|
-
var
|
|
7709
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7930
7710
|
var GradeLabel = ({ title, font }) => {
|
|
7931
|
-
return /* @__PURE__ */ (0,
|
|
7711
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7932
7712
|
};
|
|
7933
7713
|
var GradeLabel_default = GradeLabel;
|
|
7934
7714
|
|
|
7935
7715
|
// src/components/labels/OutcomeLabel.tsx
|
|
7936
|
-
var
|
|
7716
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7937
7717
|
var OutcomeLabel = ({ title, font }) => {
|
|
7938
|
-
return /* @__PURE__ */ (0,
|
|
7939
|
-
/* @__PURE__ */ (0,
|
|
7940
|
-
/* @__PURE__ */ (0,
|
|
7718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7719
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7720
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7941
7721
|
] }) });
|
|
7942
7722
|
};
|
|
7943
7723
|
var OutcomeLabel_default = OutcomeLabel;
|
|
7944
7724
|
|
|
7945
7725
|
// src/components/labels/PersonalLabel.tsx
|
|
7946
|
-
var
|
|
7726
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7947
7727
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7948
|
-
return /* @__PURE__ */ (0,
|
|
7949
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7728
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7729
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
7950
7730
|
BaseImage_default,
|
|
7951
7731
|
{
|
|
7952
7732
|
src: "/icons/personal-label.webp",
|
|
@@ -7954,16 +7734,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
7954
7734
|
size: "xsmall"
|
|
7955
7735
|
}
|
|
7956
7736
|
),
|
|
7957
|
-
/* @__PURE__ */ (0,
|
|
7737
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7958
7738
|
] }) });
|
|
7959
7739
|
};
|
|
7960
7740
|
var PersonalLabel_default = PersonalLabel;
|
|
7961
7741
|
|
|
7962
7742
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7963
|
-
var
|
|
7743
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7964
7744
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7965
|
-
return /* @__PURE__ */ (0,
|
|
7966
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7746
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
7967
7747
|
BaseImage_default,
|
|
7968
7748
|
{
|
|
7969
7749
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -7971,55 +7751,55 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
7971
7751
|
size: "xsmall"
|
|
7972
7752
|
}
|
|
7973
7753
|
),
|
|
7974
|
-
/* @__PURE__ */ (0,
|
|
7754
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7975
7755
|
] }) });
|
|
7976
7756
|
};
|
|
7977
7757
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
7978
7758
|
|
|
7979
7759
|
// src/components/labels/ActivityLabel.tsx
|
|
7980
|
-
var
|
|
7760
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7981
7761
|
var ActivityLabel = ({ title, font }) => {
|
|
7982
|
-
return /* @__PURE__ */ (0,
|
|
7762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7983
7763
|
};
|
|
7984
7764
|
var ActivityLabel_default = ActivityLabel;
|
|
7985
7765
|
|
|
7986
7766
|
// src/components/infos/InfoWithText.tsx
|
|
7987
|
-
var
|
|
7767
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7988
7768
|
var InfoWithText = (props) => {
|
|
7989
7769
|
const { value } = props;
|
|
7990
|
-
return /* @__PURE__ */ (0,
|
|
7991
|
-
/* @__PURE__ */ (0,
|
|
7992
|
-
/* @__PURE__ */ (0,
|
|
7770
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7771
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7772
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "", children: value }) })
|
|
7993
7773
|
] });
|
|
7994
7774
|
};
|
|
7995
7775
|
var InfoWithText_default = InfoWithText;
|
|
7996
7776
|
|
|
7997
7777
|
// src/components/titles/BaseTitle.tsx
|
|
7998
|
-
var
|
|
7778
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7999
7779
|
var BaseTitle = ({
|
|
8000
7780
|
title,
|
|
8001
7781
|
totalItemCount,
|
|
8002
7782
|
itemName,
|
|
8003
7783
|
description
|
|
8004
7784
|
}) => {
|
|
8005
|
-
return /* @__PURE__ */ (0,
|
|
8006
|
-
/* @__PURE__ */ (0,
|
|
7785
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
|
|
7786
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-2xl font-medium", children: [
|
|
8007
7787
|
title,
|
|
8008
|
-
totalItemCount && itemName ? /* @__PURE__ */ (0,
|
|
7788
|
+
totalItemCount && itemName ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
|
|
8009
7789
|
totalItemCount,
|
|
8010
7790
|
" ",
|
|
8011
7791
|
itemName
|
|
8012
7792
|
] }) : null
|
|
8013
7793
|
] }),
|
|
8014
|
-
description ? /* @__PURE__ */ (0,
|
|
7794
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "", children: description }) : null
|
|
8015
7795
|
] });
|
|
8016
7796
|
};
|
|
8017
7797
|
var BaseTitle_default = BaseTitle;
|
|
8018
7798
|
|
|
8019
7799
|
// src/components/titles/SubTitle.tsx
|
|
8020
|
-
var
|
|
7800
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
8021
7801
|
var SubTitle = ({ title }) => {
|
|
8022
|
-
return /* @__PURE__ */ (0,
|
|
7802
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
8023
7803
|
};
|
|
8024
7804
|
var SubTitle_default = SubTitle;
|
|
8025
7805
|
|
|
@@ -10741,7 +10521,6 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10741
10521
|
ActivityEmptyContent,
|
|
10742
10522
|
ActivityEvaluationRubricContent,
|
|
10743
10523
|
ActivityLabel,
|
|
10744
|
-
ActivityPreviewByAnswerData,
|
|
10745
10524
|
ActivityPreviewByData,
|
|
10746
10525
|
ActivitySolutionContent,
|
|
10747
10526
|
ActivityTemplateLabel,
|