catchup-library-web 1.16.12 → 1.16.13
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 +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +496 -483
- package/dist/index.mjs +427 -415
- package/package.json +1 -1
- package/src/components/activities/body-content/ShowBodyMediaByContentType.tsx +2 -2
- package/src/components/cards/BaseCard.tsx +13 -0
- package/src/components/cards/FullCard.tsx +13 -18
- package/src/index.ts +1 -0
- package/src/properties/CardProperties.ts +6 -2
package/dist/index.js
CHANGED
|
@@ -76,6 +76,7 @@ __export(index_exports, {
|
|
|
76
76
|
ActivitySolutionContent: () => ActivitySolutionContent_default,
|
|
77
77
|
ActivityTemplateLabel: () => ActivityTemplateLabel_default,
|
|
78
78
|
ApproveButton: () => ApproveButton_default,
|
|
79
|
+
BaseCard: () => BaseCard_default,
|
|
79
80
|
BaseImage: () => BaseImage_default,
|
|
80
81
|
BaseLoading: () => BaseLoading_default,
|
|
81
82
|
BaseLoadingWithText: () => BaseLoadingWithText_default,
|
|
@@ -1055,16 +1056,20 @@ var ApproveButton_default = ApproveButton;
|
|
|
1055
1056
|
// src/components/cards/FullCard.tsx
|
|
1056
1057
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1057
1058
|
var FullCard = ({
|
|
1058
|
-
|
|
1059
|
+
backgroundColor,
|
|
1060
|
+
borderColor,
|
|
1059
1061
|
opacity,
|
|
1060
|
-
isShadowed,
|
|
1061
1062
|
usePadding,
|
|
1062
1063
|
children
|
|
1063
1064
|
}) => {
|
|
1064
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1065
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1065
1066
|
"div",
|
|
1066
1067
|
{
|
|
1067
|
-
className: `
|
|
1068
|
+
className: `min-h-full
|
|
1069
|
+
${backgroundColor ? backgroundColor : "bg-catchup-white"}
|
|
1070
|
+
${borderColor ? borderColor : "border-catchup-gray-50"}
|
|
1071
|
+
${opacity ? opacity : "opacity-100"}
|
|
1072
|
+
rounded-catchup-xlarge w-full `,
|
|
1068
1073
|
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1069
1074
|
"div",
|
|
1070
1075
|
{
|
|
@@ -1073,10 +1078,17 @@ var FullCard = ({
|
|
|
1073
1078
|
}
|
|
1074
1079
|
)
|
|
1075
1080
|
}
|
|
1076
|
-
)
|
|
1081
|
+
);
|
|
1077
1082
|
};
|
|
1078
1083
|
var FullCard_default = FullCard;
|
|
1079
1084
|
|
|
1085
|
+
// src/components/cards/BaseCard.tsx
|
|
1086
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1087
|
+
var BaseCard = ({ children }) => {
|
|
1088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex flex-col justify-center items-center h-full", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "bg-catchup-white rounded-catchup-xlarge h-catchup-card w-catchup-card shadow-dropdown", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex flex-col mx-auto p-8 h-full", children }) }) });
|
|
1089
|
+
};
|
|
1090
|
+
var BaseCard_default = BaseCard;
|
|
1091
|
+
|
|
1080
1092
|
// src/components/loading/BaseLoadingWithText.tsx
|
|
1081
1093
|
var import_react9 = require("react");
|
|
1082
1094
|
|
|
@@ -1087,7 +1099,7 @@ import_i18next.default.use(import_react_i18next.initReactI18next);
|
|
|
1087
1099
|
var i18n_default = import_i18next.default;
|
|
1088
1100
|
|
|
1089
1101
|
// src/components/loading/BaseLoadingWithText.tsx
|
|
1090
|
-
var
|
|
1102
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1091
1103
|
var BaseLoadingWithText = (props) => {
|
|
1092
1104
|
const { height, width, size, primaryColor, secondaryColor, hideText } = props;
|
|
1093
1105
|
const [initialTimestamp, setInitialTimestamp] = (0, import_react9.useState)(
|
|
@@ -1135,8 +1147,8 @@ var BaseLoadingWithText = (props) => {
|
|
|
1135
1147
|
textWidth = 250;
|
|
1136
1148
|
}
|
|
1137
1149
|
const loadingText = retrieveLoadingText();
|
|
1138
|
-
return /* @__PURE__ */ (0,
|
|
1139
|
-
/* @__PURE__ */ (0,
|
|
1150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
|
|
1151
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1140
1152
|
BaseLoading_default,
|
|
1141
1153
|
{
|
|
1142
1154
|
height,
|
|
@@ -1146,12 +1158,12 @@ var BaseLoadingWithText = (props) => {
|
|
|
1146
1158
|
secondaryColor
|
|
1147
1159
|
}
|
|
1148
1160
|
),
|
|
1149
|
-
!hideText && size !== "small" ? /* @__PURE__ */ (0,
|
|
1161
|
+
!hideText && size !== "small" ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1150
1162
|
"div",
|
|
1151
1163
|
{
|
|
1152
1164
|
className: `${textClassName} text-center`,
|
|
1153
1165
|
style: { width: textWidth },
|
|
1154
|
-
children: /* @__PURE__ */ (0,
|
|
1166
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "font-bold", children: loadingText })
|
|
1155
1167
|
}
|
|
1156
1168
|
) : null
|
|
1157
1169
|
] });
|
|
@@ -1160,7 +1172,7 @@ var BaseLoadingWithText_default = BaseLoadingWithText;
|
|
|
1160
1172
|
|
|
1161
1173
|
// src/components/modals/BaseModal.tsx
|
|
1162
1174
|
var import_react_modal = __toESM(require("react-modal"));
|
|
1163
|
-
var
|
|
1175
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1164
1176
|
var BaseModal = ({
|
|
1165
1177
|
isOpen,
|
|
1166
1178
|
size,
|
|
@@ -1169,7 +1181,7 @@ var BaseModal = ({
|
|
|
1169
1181
|
customSize,
|
|
1170
1182
|
children
|
|
1171
1183
|
}) => {
|
|
1172
|
-
return /* @__PURE__ */ (0,
|
|
1184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1173
1185
|
import_react_modal.default,
|
|
1174
1186
|
{
|
|
1175
1187
|
isOpen,
|
|
@@ -1197,7 +1209,7 @@ var BaseModal = ({
|
|
|
1197
1209
|
}
|
|
1198
1210
|
},
|
|
1199
1211
|
contentLabel: "",
|
|
1200
|
-
children: customSize ? /* @__PURE__ */ (0,
|
|
1212
|
+
children: customSize ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: `${customSize} font-quicksand`, children }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1201
1213
|
"div",
|
|
1202
1214
|
{
|
|
1203
1215
|
className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
|
|
@@ -1212,7 +1224,7 @@ var BaseModal_default = BaseModal;
|
|
|
1212
1224
|
// src/components/pdfs/BasePDF.tsx
|
|
1213
1225
|
var import_react10 = require("react");
|
|
1214
1226
|
var import_react_pdf = require("react-pdf");
|
|
1215
|
-
var
|
|
1227
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1216
1228
|
var BasePDF = ({ file }) => {
|
|
1217
1229
|
const [pageNumber, setPageNumber] = (0, import_react10.useState)(1);
|
|
1218
1230
|
const [numberOfPages, setNumberOfPages] = (0, import_react10.useState)(0);
|
|
@@ -1220,10 +1232,10 @@ var BasePDF = ({ file }) => {
|
|
|
1220
1232
|
setPageNumber(1);
|
|
1221
1233
|
setNumberOfPages(numPages);
|
|
1222
1234
|
};
|
|
1223
|
-
return /* @__PURE__ */ (0,
|
|
1224
|
-
/* @__PURE__ */ (0,
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1226
|
-
pageNumber === 1 ? null : /* @__PURE__ */ (0,
|
|
1235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_react_pdf.Document, { file, onLoadSuccess: handleOnDocumentLoadSuccess, children: [
|
|
1236
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_pdf.Page, { pageNumber }),
|
|
1237
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-row items-center justify-center", children: [
|
|
1238
|
+
pageNumber === 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1227
1239
|
BaseImage_default,
|
|
1228
1240
|
{
|
|
1229
1241
|
alt: "arrow-left",
|
|
@@ -1234,7 +1246,7 @@ var BasePDF = ({ file }) => {
|
|
|
1234
1246
|
}
|
|
1235
1247
|
}
|
|
1236
1248
|
) }) }),
|
|
1237
|
-
Array.from(Array(numberOfPages).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0,
|
|
1249
|
+
Array.from(Array(numberOfPages).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1238
1250
|
"p",
|
|
1239
1251
|
{
|
|
1240
1252
|
className: `${pageNumber === index + 1 ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -1244,7 +1256,7 @@ var BasePDF = ({ file }) => {
|
|
|
1244
1256
|
children: index + 1
|
|
1245
1257
|
}
|
|
1246
1258
|
) }, index)),
|
|
1247
|
-
numberOfPages === 0 || pageNumber === numberOfPages ? null : /* @__PURE__ */ (0,
|
|
1259
|
+
numberOfPages === 0 || pageNumber === numberOfPages ? null : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1248
1260
|
BaseImage_default,
|
|
1249
1261
|
{
|
|
1250
1262
|
src: "/icons/arrow-right.webp",
|
|
@@ -1261,9 +1273,9 @@ var BasePDF = ({ file }) => {
|
|
|
1261
1273
|
var BasePDF_default = BasePDF;
|
|
1262
1274
|
|
|
1263
1275
|
// src/components/activities/empty-content/ActivityEmptyContent.tsx
|
|
1264
|
-
var
|
|
1276
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
1265
1277
|
var ActivityEmptyContent = () => {
|
|
1266
|
-
return /* @__PURE__ */ (0,
|
|
1278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex flex-col items-center justify-center border-2 border-catchup-orange rounded-catchup-xlarge px-5 py-2 my-5 bg-catchup-orange", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-catchup-white text-xl", children: i18n_default.t("you_have_set_this_activity_as_empty") }) }) });
|
|
1267
1279
|
};
|
|
1268
1280
|
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
1269
1281
|
|
|
@@ -3352,7 +3364,7 @@ var retrieveOpticalExamPartTypeOptionList = () => {
|
|
|
3352
3364
|
|
|
3353
3365
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
3354
3366
|
var import_react_katex = require("react-katex");
|
|
3355
|
-
var
|
|
3367
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
3356
3368
|
var ShowBodyMediaByContentType = ({
|
|
3357
3369
|
index,
|
|
3358
3370
|
type,
|
|
@@ -3374,11 +3386,11 @@ var ShowBodyMediaByContentType = ({
|
|
|
3374
3386
|
}
|
|
3375
3387
|
};
|
|
3376
3388
|
const renderSpecialExpressions = (inputPart, inputPartIndex) => {
|
|
3377
|
-
return /* @__PURE__ */ (0,
|
|
3389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3378
3390
|
"span",
|
|
3379
3391
|
{
|
|
3380
3392
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3381
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
3393
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
3382
3394
|
},
|
|
3383
3395
|
inputPartIndex
|
|
3384
3396
|
);
|
|
@@ -3398,7 +3410,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3398
3410
|
};
|
|
3399
3411
|
const renderTextContent = (text, itemKey) => {
|
|
3400
3412
|
const balancedText = balanceSpecialChars(text);
|
|
3401
|
-
return /* @__PURE__ */ (0,
|
|
3413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xl", children: constructInputWithSpecialExpressionList(balancedText).map(
|
|
3402
3414
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3403
3415
|
) }, itemKey);
|
|
3404
3416
|
};
|
|
@@ -3431,7 +3443,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3431
3443
|
currentIndex++;
|
|
3432
3444
|
const itemKey = `text-inside-${index}-${currentIndex}`;
|
|
3433
3445
|
valuePartList.push(
|
|
3434
|
-
/* @__PURE__ */ (0,
|
|
3446
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xl font-bold", children: constructInputWithSpecialExpressionList(textInsideTag).map(
|
|
3435
3447
|
(inputPart, inputPartIndex) => renderSpecialExpressions(inputPart, inputPartIndex)
|
|
3436
3448
|
) }, itemKey)
|
|
3437
3449
|
);
|
|
@@ -3451,7 +3463,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3451
3463
|
if (textBeforeTag.trim() !== "") {
|
|
3452
3464
|
currentIndex++;
|
|
3453
3465
|
valuePartList.push(
|
|
3454
|
-
/* @__PURE__ */ (0,
|
|
3466
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3455
3467
|
"p",
|
|
3456
3468
|
{
|
|
3457
3469
|
className: "text-xl",
|
|
@@ -3470,12 +3482,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3470
3482
|
);
|
|
3471
3483
|
currentIndex++;
|
|
3472
3484
|
valuePartList.push(
|
|
3473
|
-
/* @__PURE__ */ (0,
|
|
3485
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3474
3486
|
"div",
|
|
3475
3487
|
{
|
|
3476
3488
|
className: "relative w-[200px]",
|
|
3477
3489
|
children: [
|
|
3478
|
-
/* @__PURE__ */ (0,
|
|
3490
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3479
3491
|
BaseImage_default,
|
|
3480
3492
|
{
|
|
3481
3493
|
src: imageSource,
|
|
@@ -3484,12 +3496,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3484
3496
|
className: "rounded-catchup-xlarge"
|
|
3485
3497
|
}
|
|
3486
3498
|
),
|
|
3487
|
-
/* @__PURE__ */ (0,
|
|
3499
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3488
3500
|
"div",
|
|
3489
3501
|
{
|
|
3490
3502
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
3491
3503
|
onClick: () => handleOpenFullScreen(imageSource),
|
|
3492
|
-
children: /* @__PURE__ */ (0,
|
|
3504
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3493
3505
|
BaseImage_default,
|
|
3494
3506
|
{
|
|
3495
3507
|
src: "/icons/arrow-up.webp",
|
|
@@ -3518,7 +3530,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3518
3530
|
if (textBeforeTag.trim() !== "") {
|
|
3519
3531
|
currentIndex++;
|
|
3520
3532
|
valuePartList.push(
|
|
3521
|
-
/* @__PURE__ */ (0,
|
|
3533
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3522
3534
|
"p",
|
|
3523
3535
|
{
|
|
3524
3536
|
className: "text-xl",
|
|
@@ -3537,7 +3549,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3537
3549
|
);
|
|
3538
3550
|
currentIndex++;
|
|
3539
3551
|
valuePartList.push(
|
|
3540
|
-
/* @__PURE__ */ (0,
|
|
3552
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3541
3553
|
"video",
|
|
3542
3554
|
{
|
|
3543
3555
|
src: videoSource,
|
|
@@ -3560,7 +3572,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3560
3572
|
if (textBeforeTag.trim() !== "") {
|
|
3561
3573
|
currentIndex++;
|
|
3562
3574
|
valuePartList.push(
|
|
3563
|
-
/* @__PURE__ */ (0,
|
|
3575
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3564
3576
|
"p",
|
|
3565
3577
|
{
|
|
3566
3578
|
className: "text-xl",
|
|
@@ -3579,7 +3591,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3579
3591
|
);
|
|
3580
3592
|
currentIndex++;
|
|
3581
3593
|
valuePartList.push(
|
|
3582
|
-
/* @__PURE__ */ (0,
|
|
3594
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3583
3595
|
"audio",
|
|
3584
3596
|
{
|
|
3585
3597
|
src: audioSource,
|
|
@@ -3605,13 +3617,13 @@ var ShowBodyMediaByContentType = ({
|
|
|
3605
3617
|
if (regexMatchImageText) {
|
|
3606
3618
|
const imageText = regexMatchImageText[1];
|
|
3607
3619
|
valuePartList.push(
|
|
3608
|
-
/* @__PURE__ */ (0,
|
|
3620
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3609
3621
|
"div",
|
|
3610
3622
|
{
|
|
3611
3623
|
className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2",
|
|
3612
3624
|
children: [
|
|
3613
|
-
/* @__PURE__ */ (0,
|
|
3614
|
-
/* @__PURE__ */ (0,
|
|
3625
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
|
|
3626
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-xl", children: imageText })
|
|
3615
3627
|
]
|
|
3616
3628
|
},
|
|
3617
3629
|
`img-desc-${index}-${currentIndex}`
|
|
@@ -3625,7 +3637,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3625
3637
|
return valuePartList;
|
|
3626
3638
|
};
|
|
3627
3639
|
const RenderShowFullScreenItem = () => {
|
|
3628
|
-
return /* @__PURE__ */ (0,
|
|
3640
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3629
3641
|
import_react_modal2.default,
|
|
3630
3642
|
{
|
|
3631
3643
|
isOpen: showFullScreen,
|
|
@@ -3654,8 +3666,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3654
3666
|
}
|
|
3655
3667
|
},
|
|
3656
3668
|
contentLabel: "Image Fullscreen View",
|
|
3657
|
-
children: /* @__PURE__ */ (0,
|
|
3658
|
-
/* @__PURE__ */ (0,
|
|
3669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex-1 flex flex-col", children: [
|
|
3670
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3659
3671
|
BaseImage_default,
|
|
3660
3672
|
{
|
|
3661
3673
|
src: "/icons/cross-red.webp",
|
|
@@ -3667,7 +3679,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3667
3679
|
}
|
|
3668
3680
|
}
|
|
3669
3681
|
) }),
|
|
3670
|
-
/* @__PURE__ */ (0,
|
|
3682
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3671
3683
|
BaseImage_default,
|
|
3672
3684
|
{
|
|
3673
3685
|
src: selectedFullScreenItem,
|
|
@@ -3683,30 +3695,30 @@ var ShowBodyMediaByContentType = ({
|
|
|
3683
3695
|
const RenderMainContent = () => {
|
|
3684
3696
|
switch (type) {
|
|
3685
3697
|
case "TEXT":
|
|
3686
|
-
return /* @__PURE__ */ (0,
|
|
3698
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "mb-1 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "whitespace-pre-wrap", children: retrieveValueParts(value) }) });
|
|
3687
3699
|
case "IMAGE":
|
|
3688
|
-
return /* @__PURE__ */ (0,
|
|
3700
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "mb-1 flex flex-col items-center relative", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3689
3701
|
"div",
|
|
3690
3702
|
{
|
|
3691
3703
|
className: `${convertToPercentage(
|
|
3692
|
-
size
|
|
3704
|
+
size
|
|
3693
3705
|
)} rounded-catchup-xlarge relative`,
|
|
3694
3706
|
children: [
|
|
3695
|
-
/* @__PURE__ */ (0,
|
|
3707
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3696
3708
|
BaseImage_default,
|
|
3697
3709
|
{
|
|
3698
3710
|
src: value,
|
|
3699
|
-
alt: "body
|
|
3711
|
+
alt: "body-image",
|
|
3700
3712
|
size: "custom",
|
|
3701
3713
|
className: "w-full rounded-catchup-xlarge"
|
|
3702
3714
|
}
|
|
3703
3715
|
),
|
|
3704
|
-
/* @__PURE__ */ (0,
|
|
3716
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3705
3717
|
"div",
|
|
3706
3718
|
{
|
|
3707
3719
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
3708
3720
|
onClick: () => handleOpenFullScreen(value),
|
|
3709
|
-
children: /* @__PURE__ */ (0,
|
|
3721
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3710
3722
|
BaseImage_default,
|
|
3711
3723
|
{
|
|
3712
3724
|
src: "/icons/arrow-up.webp",
|
|
@@ -3721,7 +3733,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3721
3733
|
}
|
|
3722
3734
|
) });
|
|
3723
3735
|
case "VIDEO":
|
|
3724
|
-
return /* @__PURE__ */ (0,
|
|
3736
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "mb-1 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3725
3737
|
"video",
|
|
3726
3738
|
{
|
|
3727
3739
|
src: value,
|
|
@@ -3732,12 +3744,12 @@ var ShowBodyMediaByContentType = ({
|
|
|
3732
3744
|
}
|
|
3733
3745
|
) });
|
|
3734
3746
|
case "AUDIO":
|
|
3735
|
-
return /* @__PURE__ */ (0,
|
|
3747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "mb-1 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("audio", { src: value, controls: true, className: "rounded-catchup-xlarge" }) });
|
|
3736
3748
|
default:
|
|
3737
3749
|
return null;
|
|
3738
3750
|
}
|
|
3739
3751
|
};
|
|
3740
|
-
return /* @__PURE__ */ (0,
|
|
3752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "w-full", children: [
|
|
3741
3753
|
RenderShowFullScreenItem(),
|
|
3742
3754
|
RenderMainContent()
|
|
3743
3755
|
] }, `body-content-${index}`);
|
|
@@ -3745,7 +3757,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3745
3757
|
var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
|
|
3746
3758
|
|
|
3747
3759
|
// src/components/activities/body-content/ActivityBodyContent.tsx
|
|
3748
|
-
var
|
|
3760
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
3749
3761
|
var ActivityBodyContent = ({
|
|
3750
3762
|
templateType,
|
|
3751
3763
|
bodyMap,
|
|
@@ -3826,7 +3838,7 @@ var ActivityBodyContent = ({
|
|
|
3826
3838
|
key
|
|
3827
3839
|
});
|
|
3828
3840
|
}).filter(Boolean);
|
|
3829
|
-
return /* @__PURE__ */ (0,
|
|
3841
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex flex-col justify-center items-center", children: processedBodies.map((body, index) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3830
3842
|
ShowBodyMediaByContentType_default,
|
|
3831
3843
|
{
|
|
3832
3844
|
index,
|
|
@@ -3840,16 +3852,16 @@ var ActivityBodyContent = ({
|
|
|
3840
3852
|
var ActivityBodyContent_default = ActivityBodyContent;
|
|
3841
3853
|
|
|
3842
3854
|
// src/components/dividers/DividerLine.tsx
|
|
3843
|
-
var
|
|
3855
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
3844
3856
|
var DividerLine = () => {
|
|
3845
|
-
return /* @__PURE__ */ (0,
|
|
3857
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
3846
3858
|
};
|
|
3847
3859
|
var DividerLine_default = DividerLine;
|
|
3848
3860
|
|
|
3849
3861
|
// src/components/dividers/VerticalDividerLine.tsx
|
|
3850
|
-
var
|
|
3862
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3851
3863
|
var VerticalDividerLine = () => {
|
|
3852
|
-
return /* @__PURE__ */ (0,
|
|
3864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
|
|
3853
3865
|
};
|
|
3854
3866
|
var VerticalDividerLine_default = VerticalDividerLine;
|
|
3855
3867
|
|
|
@@ -3859,7 +3871,7 @@ var import_react_katex2 = require("react-katex");
|
|
|
3859
3871
|
// src/components/groups/InputGroup.tsx
|
|
3860
3872
|
var import_react_select = __toESM(require("react-select"));
|
|
3861
3873
|
var import_react12 = require("react");
|
|
3862
|
-
var
|
|
3874
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3863
3875
|
var InputGroup = ({
|
|
3864
3876
|
type,
|
|
3865
3877
|
title,
|
|
@@ -3961,7 +3973,7 @@ var InputGroup = ({
|
|
|
3961
3973
|
setShowMathConstructor(true);
|
|
3962
3974
|
};
|
|
3963
3975
|
const MathConstructorModal = () => {
|
|
3964
|
-
return /* @__PURE__ */ (0,
|
|
3976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3965
3977
|
BaseModal_default,
|
|
3966
3978
|
{
|
|
3967
3979
|
isOpen: showMathConstructor,
|
|
@@ -3971,10 +3983,10 @@ var InputGroup = ({
|
|
|
3971
3983
|
onRequestClose: () => {
|
|
3972
3984
|
setShowMathConstructor(false);
|
|
3973
3985
|
},
|
|
3974
|
-
children: /* @__PURE__ */ (0,
|
|
3975
|
-
/* @__PURE__ */ (0,
|
|
3976
|
-
/* @__PURE__ */ (0,
|
|
3977
|
-
/* @__PURE__ */ (0,
|
|
3986
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FullCard_default, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "bg-white rounded-lg overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "p-6 space-y-6", children: [
|
|
3987
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
|
|
3988
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: i18n_default.t("math_editor") }),
|
|
3989
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "border border-catchup-gray-100 rounded-catchup-large focus-within:border-catchup-blue-400 focus-within:shadow-input", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
3978
3990
|
"math-field",
|
|
3979
3991
|
{
|
|
3980
3992
|
ref: mathFieldRef,
|
|
@@ -4001,10 +4013,10 @@ var InputGroup = ({
|
|
|
4001
4013
|
}
|
|
4002
4014
|
) })
|
|
4003
4015
|
] }),
|
|
4004
|
-
/* @__PURE__ */ (0,
|
|
4005
|
-
/* @__PURE__ */ (0,
|
|
4006
|
-
/* @__PURE__ */ (0,
|
|
4007
|
-
/* @__PURE__ */ (0,
|
|
4016
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { children: [
|
|
4017
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: i18n_default.t("latex_output") }),
|
|
4018
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative", children: [
|
|
4019
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4008
4020
|
"textarea",
|
|
4009
4021
|
{
|
|
4010
4022
|
ref: latexTextAreaRef,
|
|
@@ -4014,7 +4026,7 @@ var InputGroup = ({
|
|
|
4014
4026
|
placeholder: i18n_default.t("latex_will_appear_here")
|
|
4015
4027
|
}
|
|
4016
4028
|
),
|
|
4017
|
-
/* @__PURE__ */ (0,
|
|
4029
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4018
4030
|
"button",
|
|
4019
4031
|
{
|
|
4020
4032
|
onClick: handleCopyLatex,
|
|
@@ -4030,13 +4042,13 @@ var InputGroup = ({
|
|
|
4030
4042
|
);
|
|
4031
4043
|
};
|
|
4032
4044
|
const CheckboxInputGroup = () => {
|
|
4033
|
-
return /* @__PURE__ */ (0,
|
|
4045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4034
4046
|
"div",
|
|
4035
4047
|
{
|
|
4036
4048
|
className: "flex flex-row items-center gap-x-1 cursor-pointer",
|
|
4037
4049
|
onClick,
|
|
4038
4050
|
children: [
|
|
4039
|
-
/* @__PURE__ */ (0,
|
|
4051
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4040
4052
|
BaseImage_default,
|
|
4041
4053
|
{
|
|
4042
4054
|
src: value ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -4046,15 +4058,15 @@ var InputGroup = ({
|
|
|
4046
4058
|
}
|
|
4047
4059
|
}
|
|
4048
4060
|
),
|
|
4049
|
-
/* @__PURE__ */ (0,
|
|
4061
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "", children: title })
|
|
4050
4062
|
]
|
|
4051
4063
|
}
|
|
4052
4064
|
);
|
|
4053
4065
|
};
|
|
4054
4066
|
const FileInputGroup = () => {
|
|
4055
|
-
return /* @__PURE__ */ (0,
|
|
4056
|
-
title ? /* @__PURE__ */ (0,
|
|
4057
|
-
/* @__PURE__ */ (0,
|
|
4067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "my-1", children: [
|
|
4068
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
4069
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4058
4070
|
"input",
|
|
4059
4071
|
{
|
|
4060
4072
|
className: "w-full py-2 px-4 border border-catchup-gray-100 placeholder-catchup-gray-200 rounded-catchup-large text-black focus:outline-none focus:border-catchup-blue-400 focus:shadow-input",
|
|
@@ -4071,9 +4083,9 @@ var InputGroup = ({
|
|
|
4071
4083
|
] });
|
|
4072
4084
|
};
|
|
4073
4085
|
const DateInputGroup = () => {
|
|
4074
|
-
return /* @__PURE__ */ (0,
|
|
4075
|
-
title ? /* @__PURE__ */ (0,
|
|
4076
|
-
/* @__PURE__ */ (0,
|
|
4086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "my-1", children: [
|
|
4087
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
4088
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4077
4089
|
"input",
|
|
4078
4090
|
{
|
|
4079
4091
|
className: `w-full py-2 px-4 border ${errorText ? "border-catchup-red shadow-error" : theme === "red" ? "border-catchup-red bg-catchup-red text-catchup-white focus:border-catchup-red" : "border-catchup-gray-100 placeholder-catchup-gray-200 focus:border-catchup-blue-400"} rounded-catchup-large text-black focus:outline-none focus:shadow-input`,
|
|
@@ -4088,9 +4100,9 @@ var InputGroup = ({
|
|
|
4088
4100
|
] });
|
|
4089
4101
|
};
|
|
4090
4102
|
const SearchableSelectInputGroup = () => {
|
|
4091
|
-
return /* @__PURE__ */ (0,
|
|
4092
|
-
title ? /* @__PURE__ */ (0,
|
|
4093
|
-
/* @__PURE__ */ (0,
|
|
4103
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "my-1", children: [
|
|
4104
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400 ", children: title }) : null,
|
|
4105
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4094
4106
|
import_react_select.default,
|
|
4095
4107
|
{
|
|
4096
4108
|
options: convertOptionListToSelectComponent(
|
|
@@ -4153,16 +4165,16 @@ var InputGroup = ({
|
|
|
4153
4165
|
] });
|
|
4154
4166
|
};
|
|
4155
4167
|
const TextAreaInputGroup = () => {
|
|
4156
|
-
return /* @__PURE__ */ (0,
|
|
4157
|
-
/* @__PURE__ */ (0,
|
|
4158
|
-
/* @__PURE__ */ (0,
|
|
4159
|
-
/* @__PURE__ */ (0,
|
|
4168
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "my-1 flex-1 flex flex-col relative", children: [
|
|
4169
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row justify-between items-center", children: [
|
|
4170
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: title ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
|
|
4171
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: value && limit ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
|
|
4160
4172
|
value.length,
|
|
4161
4173
|
" / ",
|
|
4162
4174
|
limit
|
|
4163
4175
|
] }) : null })
|
|
4164
4176
|
] }),
|
|
4165
|
-
/* @__PURE__ */ (0,
|
|
4177
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4166
4178
|
"textarea",
|
|
4167
4179
|
{
|
|
4168
4180
|
ref: textAreaRef,
|
|
@@ -4175,22 +4187,22 @@ var InputGroup = ({
|
|
|
4175
4187
|
onKeyDown
|
|
4176
4188
|
}
|
|
4177
4189
|
),
|
|
4178
|
-
useMath && /* @__PURE__ */ (0,
|
|
4190
|
+
useMath && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4179
4191
|
"button",
|
|
4180
4192
|
{
|
|
4181
4193
|
className: "absolute right-2 top-1/2 transform -translate-y-1/2 bg-catchup-blue-400 text-white rounded-md px-3 py-1 shadow-sm hover:bg-catchup-blue-500 transition-colors duration-200 z-10",
|
|
4182
4194
|
onClick: handleOpenMathConstructor,
|
|
4183
4195
|
type: "button",
|
|
4184
|
-
children: /* @__PURE__ */ (0,
|
|
4185
|
-
/* @__PURE__ */ (0,
|
|
4186
|
-
/* @__PURE__ */ (0,
|
|
4196
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-x-1", children: [
|
|
4197
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium", children: "\u{1D453}(x)" }),
|
|
4198
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4187
4199
|
"svg",
|
|
4188
4200
|
{
|
|
4189
4201
|
className: "w-3 h-3",
|
|
4190
4202
|
fill: "none",
|
|
4191
4203
|
stroke: "currentColor",
|
|
4192
4204
|
viewBox: "0 0 24 24",
|
|
4193
|
-
children: /* @__PURE__ */ (0,
|
|
4205
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4194
4206
|
"path",
|
|
4195
4207
|
{
|
|
4196
4208
|
strokeLinecap: "round",
|
|
@@ -4207,13 +4219,13 @@ var InputGroup = ({
|
|
|
4207
4219
|
] });
|
|
4208
4220
|
};
|
|
4209
4221
|
const TextInputGroup = () => {
|
|
4210
|
-
return /* @__PURE__ */ (0,
|
|
4211
|
-
title ? /* @__PURE__ */ (0,
|
|
4212
|
-
/* @__PURE__ */ (0,
|
|
4222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "my-1 relative", children: [
|
|
4223
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
4224
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4213
4225
|
"div",
|
|
4214
4226
|
{
|
|
4215
4227
|
className: `w-full border ${errorText ? "border-catchup-red shadow-error" : "border-catchup-gray-100"} rounded-catchup-large focus-within:border-catchup-blue-400 focus-within:shadow-input ${disabled ? "bg-catchup-lighter-gray" : "bg-white"}`,
|
|
4216
|
-
children: /* @__PURE__ */ (0,
|
|
4228
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4217
4229
|
"input",
|
|
4218
4230
|
{
|
|
4219
4231
|
disabled,
|
|
@@ -4229,22 +4241,22 @@ var InputGroup = ({
|
|
|
4229
4241
|
)
|
|
4230
4242
|
}
|
|
4231
4243
|
),
|
|
4232
|
-
useMath && /* @__PURE__ */ (0,
|
|
4244
|
+
useMath && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4233
4245
|
"button",
|
|
4234
4246
|
{
|
|
4235
4247
|
className: "absolute right-2 top-1/2 transform -translate-y-1/2 bg-catchup-blue-400 text-white rounded-md px-3 py-1 shadow-sm hover:bg-catchup-blue-500 transition-colors duration-200",
|
|
4236
4248
|
onClick: handleOpenMathConstructor,
|
|
4237
4249
|
type: "button",
|
|
4238
|
-
children: /* @__PURE__ */ (0,
|
|
4239
|
-
/* @__PURE__ */ (0,
|
|
4240
|
-
/* @__PURE__ */ (0,
|
|
4250
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-x-1", children: [
|
|
4251
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-sm font-medium", children: "\u{1D453}(x)" }),
|
|
4252
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4241
4253
|
"svg",
|
|
4242
4254
|
{
|
|
4243
4255
|
className: "w-3 h-3",
|
|
4244
4256
|
fill: "none",
|
|
4245
4257
|
stroke: "currentColor",
|
|
4246
4258
|
viewBox: "0 0 24 24",
|
|
4247
|
-
children: /* @__PURE__ */ (0,
|
|
4259
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4248
4260
|
"path",
|
|
4249
4261
|
{
|
|
4250
4262
|
strokeLinecap: "round",
|
|
@@ -4277,9 +4289,9 @@ var InputGroup = ({
|
|
|
4277
4289
|
return CheckboxInputGroup();
|
|
4278
4290
|
}
|
|
4279
4291
|
};
|
|
4280
|
-
return /* @__PURE__ */ (0,
|
|
4292
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
4281
4293
|
RenderMainContent(),
|
|
4282
|
-
/* @__PURE__ */ (0,
|
|
4294
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(MathConstructorModal, {})
|
|
4283
4295
|
] });
|
|
4284
4296
|
};
|
|
4285
4297
|
var InputGroup_default = InputGroup;
|
|
@@ -4387,10 +4399,10 @@ var getColorByIndex = (index) => {
|
|
|
4387
4399
|
|
|
4388
4400
|
// src/components/dropdowns/MediaDropdown.tsx
|
|
4389
4401
|
var import_react13 = require("react");
|
|
4390
|
-
var
|
|
4402
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
4391
4403
|
var MediaDropdown = ({ id, answer, optionList }) => {
|
|
4392
4404
|
const [showDropdown, setShowDropdown] = (0, import_react13.useState)(false);
|
|
4393
|
-
return /* @__PURE__ */ (0,
|
|
4405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
4394
4406
|
"div",
|
|
4395
4407
|
{
|
|
4396
4408
|
className: "w-full relative",
|
|
@@ -4401,17 +4413,17 @@ var MediaDropdown = ({ id, answer, optionList }) => {
|
|
|
4401
4413
|
setShowDropdown(false);
|
|
4402
4414
|
},
|
|
4403
4415
|
children: [
|
|
4404
|
-
/* @__PURE__ */ (0,
|
|
4405
|
-
/* @__PURE__ */ (0,
|
|
4416
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "w-full flex flex-col items-center justify-center", children: answer }),
|
|
4417
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4406
4418
|
"ul",
|
|
4407
4419
|
{
|
|
4408
4420
|
className: `absolute ${showDropdown ? "opacity-100 visible" : "opacity-0 invisible"} flex flex-col items-center w-[300px] rounded-catchup-xlarge border-3 transition-all duration-300 border-catchup-blue bg-catchup-white px-4 py-4 translate-x-1/2 right-1/2 mt-2 z-10`,
|
|
4409
|
-
children: optionList.map((option, index) => /* @__PURE__ */ (0,
|
|
4421
|
+
children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
4410
4422
|
"li",
|
|
4411
4423
|
{
|
|
4412
4424
|
className: `${option.listItemClassNames ? option.listItemClassNames : ""}`,
|
|
4413
4425
|
children: [
|
|
4414
|
-
/* @__PURE__ */ (0,
|
|
4426
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
4415
4427
|
"div",
|
|
4416
4428
|
{
|
|
4417
4429
|
className: `w-full flex flex-col my-2 ${option.divClassNames ? option.divClassNames : ""}`,
|
|
@@ -4419,7 +4431,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
|
|
|
4419
4431
|
children: option.media
|
|
4420
4432
|
}
|
|
4421
4433
|
),
|
|
4422
|
-
index !== optionList.length - 1 ? /* @__PURE__ */ (0,
|
|
4434
|
+
index !== optionList.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "w-full border my-1 border-catchup-light-blue rounded-catchup-full" }) : null
|
|
4423
4435
|
]
|
|
4424
4436
|
},
|
|
4425
4437
|
option.id
|
|
@@ -4436,7 +4448,7 @@ var MediaDropdown_default = MediaDropdown;
|
|
|
4436
4448
|
// src/components/activities/material-content/ShowMaterialMediaByContentType.tsx
|
|
4437
4449
|
var import_react14 = require("react");
|
|
4438
4450
|
var import_react_modal3 = __toESM(require("react-modal"));
|
|
4439
|
-
var
|
|
4451
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
4440
4452
|
var ShowMaterialMediaByContentType = ({
|
|
4441
4453
|
key,
|
|
4442
4454
|
contentType,
|
|
@@ -4464,7 +4476,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4464
4476
|
}
|
|
4465
4477
|
}, [isLoaded, key]);
|
|
4466
4478
|
const RenderShowFullScreenItem = () => {
|
|
4467
|
-
return /* @__PURE__ */ (0,
|
|
4479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4468
4480
|
import_react_modal3.default,
|
|
4469
4481
|
{
|
|
4470
4482
|
isOpen: showFullScreen,
|
|
@@ -4495,8 +4507,8 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4495
4507
|
}
|
|
4496
4508
|
},
|
|
4497
4509
|
contentLabel: "",
|
|
4498
|
-
children: /* @__PURE__ */ (0,
|
|
4499
|
-
/* @__PURE__ */ (0,
|
|
4510
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex-1 flex flex-col", children: [
|
|
4511
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4500
4512
|
BaseImage_default,
|
|
4501
4513
|
{
|
|
4502
4514
|
src: "/icons/cross-red.webp",
|
|
@@ -4508,7 +4520,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4508
4520
|
}
|
|
4509
4521
|
}
|
|
4510
4522
|
) }),
|
|
4511
|
-
/* @__PURE__ */ (0,
|
|
4523
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex items-center justify-center h-[500px]", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4512
4524
|
BaseImage_default,
|
|
4513
4525
|
{
|
|
4514
4526
|
src: selectedFullScreenItem,
|
|
@@ -4521,14 +4533,14 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4521
4533
|
}
|
|
4522
4534
|
);
|
|
4523
4535
|
};
|
|
4524
|
-
return contentType === "IMAGE" ? /* @__PURE__ */ (0,
|
|
4536
|
+
return contentType === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { children: [
|
|
4525
4537
|
RenderShowFullScreenItem(),
|
|
4526
|
-
/* @__PURE__ */ (0,
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
4527
4539
|
"div",
|
|
4528
4540
|
{
|
|
4529
4541
|
className: `${isFullHeight ? "h-catchup-activity-box-item" : "max-w-catchup-activity-box-item"} flex flex-col justify-center items-center relative`,
|
|
4530
4542
|
children: [
|
|
4531
|
-
/* @__PURE__ */ (0,
|
|
4543
|
+
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4532
4544
|
BaseImage_default,
|
|
4533
4545
|
{
|
|
4534
4546
|
src,
|
|
@@ -4541,7 +4553,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4541
4553
|
}
|
|
4542
4554
|
}
|
|
4543
4555
|
),
|
|
4544
|
-
src !== null && src !== "" && src !== "DEFAULT_OPTION" && canFullScreen ? /* @__PURE__ */ (0,
|
|
4556
|
+
src !== null && src !== "" && src !== "DEFAULT_OPTION" && canFullScreen ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4545
4557
|
"div",
|
|
4546
4558
|
{
|
|
4547
4559
|
className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
|
|
@@ -4553,7 +4565,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4553
4565
|
setShowFullScreen(true);
|
|
4554
4566
|
setSelectedFullScreenItem(src);
|
|
4555
4567
|
},
|
|
4556
|
-
children: /* @__PURE__ */ (0,
|
|
4568
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4557
4569
|
BaseImage_default,
|
|
4558
4570
|
{
|
|
4559
4571
|
src: "/icons/arrow-up.webp",
|
|
@@ -4567,7 +4579,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4567
4579
|
]
|
|
4568
4580
|
}
|
|
4569
4581
|
) }) })
|
|
4570
|
-
] }, key) : contentType === "VIDEO" ? /* @__PURE__ */ (0,
|
|
4582
|
+
] }, key) : contentType === "VIDEO" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4571
4583
|
"video",
|
|
4572
4584
|
{
|
|
4573
4585
|
className: "h-catchup-activity-box-item rounded-catchup-xlarge",
|
|
@@ -4576,7 +4588,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4576
4588
|
onClick: () => {
|
|
4577
4589
|
}
|
|
4578
4590
|
}
|
|
4579
|
-
) }) }) }) : contentType === "AUDIO" ? /* @__PURE__ */ (0,
|
|
4591
|
+
) }) }) }) : contentType === "AUDIO" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
4580
4592
|
"audio",
|
|
4581
4593
|
{
|
|
4582
4594
|
className: "h-catchup-activity-box-item rounded-catchup-xlarge",
|
|
@@ -4590,7 +4602,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4590
4602
|
var ShowMaterialMediaByContentType_default = ShowMaterialMediaByContentType;
|
|
4591
4603
|
|
|
4592
4604
|
// src/components/activities/material-content/DropdownActivityMaterialContent.tsx
|
|
4593
|
-
var
|
|
4605
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
4594
4606
|
var DropdownActivityMaterialContent = ({
|
|
4595
4607
|
uniqueValue,
|
|
4596
4608
|
answer,
|
|
@@ -4633,22 +4645,22 @@ var DropdownActivityMaterialContent = ({
|
|
|
4633
4645
|
return "INCORRECT";
|
|
4634
4646
|
};
|
|
4635
4647
|
const answerMap = retrieveAnswerMap();
|
|
4636
|
-
return /* @__PURE__ */ (0,
|
|
4637
|
-
/* @__PURE__ */ (0,
|
|
4638
|
-
/* @__PURE__ */ (0,
|
|
4639
|
-
/* @__PURE__ */ (0,
|
|
4648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-row flex-wrap items-center", children: [
|
|
4649
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_dropdown_text") }) }),
|
|
4650
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DividerLine_default, {}) }),
|
|
4651
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-full flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
|
|
4640
4652
|
const answerKey = Object.keys(materialMap[materialKey])[0];
|
|
4641
4653
|
const learnerAnswerState = checkAnswerState(
|
|
4642
4654
|
answerKey,
|
|
4643
4655
|
answerMap[materialKey]
|
|
4644
4656
|
);
|
|
4645
|
-
return /* @__PURE__ */ (0,
|
|
4646
|
-
/* @__PURE__ */ (0,
|
|
4657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
|
|
4658
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "my-auto", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("p", { className: "text-xl", children: [
|
|
4647
4659
|
parseFloat(materialKey) + 1,
|
|
4648
4660
|
"."
|
|
4649
4661
|
] }) }),
|
|
4650
|
-
/* @__PURE__ */ (0,
|
|
4651
|
-
/* @__PURE__ */ (0,
|
|
4662
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "w-full relative", children: [
|
|
4663
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4652
4664
|
InputGroup_default,
|
|
4653
4665
|
{
|
|
4654
4666
|
type: "select",
|
|
@@ -4656,13 +4668,13 @@ var DropdownActivityMaterialContent = ({
|
|
|
4656
4668
|
optionList: shuffleArray(
|
|
4657
4669
|
materialMap[materialKey][answerKey]
|
|
4658
4670
|
).map((materialOption) => ({
|
|
4659
|
-
text: /* @__PURE__ */ (0,
|
|
4671
|
+
text: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
4660
4672
|
materialOption
|
|
4661
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
4673
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4662
4674
|
"span",
|
|
4663
4675
|
{
|
|
4664
4676
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4665
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
4677
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4666
4678
|
import_react_katex2.InlineMath,
|
|
4667
4679
|
{
|
|
4668
4680
|
math: inputPart.value
|
|
@@ -4677,11 +4689,11 @@ var DropdownActivityMaterialContent = ({
|
|
|
4677
4689
|
onChange(answer, materialKey, e.target.value);
|
|
4678
4690
|
}
|
|
4679
4691
|
}
|
|
4680
|
-
) }) : /* @__PURE__ */ (0,
|
|
4692
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4681
4693
|
MediaDropdown_default,
|
|
4682
4694
|
{
|
|
4683
4695
|
id: materialKey,
|
|
4684
|
-
answer: answerMap[materialKey] === "DEFAULT_OPTION" ? /* @__PURE__ */ (0,
|
|
4696
|
+
answer: answerMap[materialKey] === "DEFAULT_OPTION" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-catchup-activity-box-item border h-catchup-activity-box-item rounded-catchup-xlarge border-dashed border-catchup-blue", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "italic", children: i18n_default.t("please_select") }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4685
4697
|
ShowMaterialMediaByContentType_default,
|
|
4686
4698
|
{
|
|
4687
4699
|
contentType: contentMap.type,
|
|
@@ -4693,7 +4705,7 @@ var DropdownActivityMaterialContent = ({
|
|
|
4693
4705
|
optionList: materialMap[materialKey][answerKey].map(
|
|
4694
4706
|
(materialOption, index2) => ({
|
|
4695
4707
|
id: index2,
|
|
4696
|
-
media: /* @__PURE__ */ (0,
|
|
4708
|
+
media: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4697
4709
|
ShowMaterialMediaByContentType_default,
|
|
4698
4710
|
{
|
|
4699
4711
|
contentType: contentMap.type,
|
|
@@ -4712,24 +4724,24 @@ var DropdownActivityMaterialContent = ({
|
|
|
4712
4724
|
})
|
|
4713
4725
|
)
|
|
4714
4726
|
}
|
|
4715
|
-
) : /* @__PURE__ */ (0,
|
|
4727
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
4716
4728
|
answerMap[materialKey]
|
|
4717
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
4729
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4718
4730
|
"span",
|
|
4719
4731
|
{
|
|
4720
4732
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4721
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
4733
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_katex2.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
4722
4734
|
},
|
|
4723
4735
|
index2
|
|
4724
4736
|
)) }) }),
|
|
4725
|
-
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0,
|
|
4737
|
+
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4726
4738
|
BaseImage_default,
|
|
4727
4739
|
{
|
|
4728
4740
|
src: "/icons/checkbox.webp",
|
|
4729
4741
|
alt: "chekbbox",
|
|
4730
4742
|
size: "small"
|
|
4731
4743
|
}
|
|
4732
|
-
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0,
|
|
4744
|
+
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4733
4745
|
BaseImage_default,
|
|
4734
4746
|
{
|
|
4735
4747
|
src: "/icons/cross-red.webp",
|
|
@@ -4746,7 +4758,7 @@ var DropdownActivityMaterialContent_default = DropdownActivityMaterialContent;
|
|
|
4746
4758
|
|
|
4747
4759
|
// src/components/activities/DropdownActivityContent.tsx
|
|
4748
4760
|
var import_react17 = require("react");
|
|
4749
|
-
var
|
|
4761
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
4750
4762
|
var DropdownActivityContent = ({
|
|
4751
4763
|
answer,
|
|
4752
4764
|
data,
|
|
@@ -4788,8 +4800,8 @@ var DropdownActivityContent = ({
|
|
|
4788
4800
|
setCurrentAnswerMap(newAnswerMap);
|
|
4789
4801
|
changeAnswer(newAnswer);
|
|
4790
4802
|
};
|
|
4791
|
-
return /* @__PURE__ */ (0,
|
|
4792
|
-
/* @__PURE__ */ (0,
|
|
4803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
|
|
4804
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4793
4805
|
ActivityBodyContent_default,
|
|
4794
4806
|
{
|
|
4795
4807
|
bodyMap: dropdownBodyMap,
|
|
@@ -4798,9 +4810,9 @@ var DropdownActivityContent = ({
|
|
|
4798
4810
|
templateType: "DROPDOWN"
|
|
4799
4811
|
}
|
|
4800
4812
|
) }),
|
|
4801
|
-
/* @__PURE__ */ (0,
|
|
4802
|
-
/* @__PURE__ */ (0,
|
|
4803
|
-
/* @__PURE__ */ (0,
|
|
4813
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DividerLine_default, {}) }),
|
|
4814
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(VerticalDividerLine_default, {}) }),
|
|
4815
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
4804
4816
|
DropdownActivityMaterialContent_default,
|
|
4805
4817
|
{
|
|
4806
4818
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -4825,7 +4837,7 @@ var import_react_dnd3 = require("react-dnd");
|
|
|
4825
4837
|
|
|
4826
4838
|
// src/components/dnds/DraggableItem.tsx
|
|
4827
4839
|
var import_react_dnd = require("react-dnd");
|
|
4828
|
-
var
|
|
4840
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
4829
4841
|
var DraggableItem = ({
|
|
4830
4842
|
item,
|
|
4831
4843
|
type,
|
|
@@ -4846,11 +4858,11 @@ var DraggableItem = ({
|
|
|
4846
4858
|
})
|
|
4847
4859
|
});
|
|
4848
4860
|
const opacity = isDragging ? 0.4 : 1;
|
|
4849
|
-
return /* @__PURE__ */ (0,
|
|
4861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
4850
4862
|
"div",
|
|
4851
4863
|
{
|
|
4852
4864
|
className: `${isDragging ? "w-[0px] opacity-0" : "opacity-100"} transition-all duration-500`,
|
|
4853
|
-
children: /* @__PURE__ */ (0,
|
|
4865
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref: drag, className: "", style: { opacity }, children: component })
|
|
4854
4866
|
}
|
|
4855
4867
|
);
|
|
4856
4868
|
};
|
|
@@ -4859,7 +4871,7 @@ var DraggableItem_default = DraggableItem;
|
|
|
4859
4871
|
// src/components/dnds/DroppableItem.tsx
|
|
4860
4872
|
var import_react18 = require("react");
|
|
4861
4873
|
var import_react_dnd2 = require("react-dnd");
|
|
4862
|
-
var
|
|
4874
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
4863
4875
|
var DroppableItem = ({
|
|
4864
4876
|
item,
|
|
4865
4877
|
type,
|
|
@@ -4878,12 +4890,12 @@ var DroppableItem = ({
|
|
|
4878
4890
|
}
|
|
4879
4891
|
});
|
|
4880
4892
|
dropRef(drop(ref));
|
|
4881
|
-
return /* @__PURE__ */ (0,
|
|
4893
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: `w-full transition-all duration-500 h-full`, ref, children: component });
|
|
4882
4894
|
};
|
|
4883
4895
|
var DroppableItem_default = DroppableItem;
|
|
4884
4896
|
|
|
4885
4897
|
// src/components/activities/material-content/FillInTheBlanksActivityMaterialContent.tsx
|
|
4886
|
-
var
|
|
4898
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
4887
4899
|
var FillInTheBlanksActivityMaterialContent = ({
|
|
4888
4900
|
uniqueValue,
|
|
4889
4901
|
answer,
|
|
@@ -4942,12 +4954,12 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4942
4954
|
return Object.keys(answerMap2).findIndex((key) => answerMap2[key] === option) !== -1;
|
|
4943
4955
|
};
|
|
4944
4956
|
const answerMap = retrieveAnswerMap();
|
|
4945
|
-
return /* @__PURE__ */ (0,
|
|
4957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-row flex-wrap items-center", onMouseUp: () => {
|
|
4946
4958
|
}, children: [
|
|
4947
|
-
/* @__PURE__ */ (0,
|
|
4948
|
-
/* @__PURE__ */ (0,
|
|
4949
|
-
/* @__PURE__ */ (0,
|
|
4950
|
-
(option, index) => checkAnswerProvided(answerMap, option) ? /* @__PURE__ */ (0,
|
|
4959
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_fill_in_the_blanks_text") }) }),
|
|
4960
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DividerLine_default, {}) }),
|
|
4961
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "w-full flex flex-row flex-wrap gap-x-2 gap-y-2 my-2", children: shuffleOptionList.map(
|
|
4962
|
+
(option, index) => checkAnswerProvided(answerMap, option) ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "opacity-30", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4951
4963
|
ShowMaterialMediaByContentType_default,
|
|
4952
4964
|
{
|
|
4953
4965
|
contentType: contentMap.type,
|
|
@@ -4955,12 +4967,12 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4955
4967
|
canFullScreen: true
|
|
4956
4968
|
},
|
|
4957
4969
|
`${uniqueValue}-${index}`
|
|
4958
|
-
) }, index) : /* @__PURE__ */ (0,
|
|
4970
|
+
) }, index) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4959
4971
|
DraggableItem_default,
|
|
4960
4972
|
{
|
|
4961
4973
|
item: { index: option },
|
|
4962
4974
|
type: "FILL_IN_THE_BLANKS",
|
|
4963
|
-
component: contentMap.type === "TEXT" ? /* @__PURE__ */ (0,
|
|
4975
|
+
component: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4964
4976
|
"div",
|
|
4965
4977
|
{
|
|
4966
4978
|
className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge cursor-pointer",
|
|
@@ -4968,9 +4980,9 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4968
4980
|
setSelectedOption(option);
|
|
4969
4981
|
setPasteOptionIndex(null);
|
|
4970
4982
|
},
|
|
4971
|
-
children: /* @__PURE__ */ (0,
|
|
4983
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "italic whitespace-pre-wrap", children: option })
|
|
4972
4984
|
}
|
|
4973
|
-
) : /* @__PURE__ */ (0,
|
|
4985
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4974
4986
|
"div",
|
|
4975
4987
|
{
|
|
4976
4988
|
className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge cursor-pointer",
|
|
@@ -4978,7 +4990,7 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4978
4990
|
setSelectedOption(option);
|
|
4979
4991
|
setPasteOptionIndex(null);
|
|
4980
4992
|
},
|
|
4981
|
-
children: /* @__PURE__ */ (0,
|
|
4993
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4982
4994
|
ShowMaterialMediaByContentType_default,
|
|
4983
4995
|
{
|
|
4984
4996
|
contentType: contentMap.type,
|
|
@@ -4996,12 +5008,12 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4996
5008
|
index
|
|
4997
5009
|
)
|
|
4998
5010
|
) }),
|
|
4999
|
-
/* @__PURE__ */ (0,
|
|
5011
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
|
|
5000
5012
|
const learnerAnswerState = checkAnswerState(
|
|
5001
5013
|
JSON.parse(materialMap[materialKey]),
|
|
5002
5014
|
answerMap[materialKey]
|
|
5003
5015
|
);
|
|
5004
|
-
return /* @__PURE__ */ (0,
|
|
5016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5005
5017
|
DroppableItem_default,
|
|
5006
5018
|
{
|
|
5007
5019
|
item: { index },
|
|
@@ -5009,13 +5021,13 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
5009
5021
|
target: pasteOptionIndex,
|
|
5010
5022
|
setTarget: setPasteOptionIndex,
|
|
5011
5023
|
dropRef: drop,
|
|
5012
|
-
component: /* @__PURE__ */ (0,
|
|
5013
|
-
/* @__PURE__ */ (0,
|
|
5024
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
|
|
5025
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "my-auto", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("p", { className: "text-xl", children: [
|
|
5014
5026
|
parseFloat(materialKey) + 1,
|
|
5015
5027
|
"."
|
|
5016
5028
|
] }) }),
|
|
5017
|
-
/* @__PURE__ */ (0,
|
|
5018
|
-
/* @__PURE__ */ (0,
|
|
5029
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "relative", children: [
|
|
5030
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5019
5031
|
InputGroup_default,
|
|
5020
5032
|
{
|
|
5021
5033
|
type: "textarea",
|
|
@@ -5030,14 +5042,14 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
5030
5042
|
}
|
|
5031
5043
|
}
|
|
5032
5044
|
) }),
|
|
5033
|
-
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0,
|
|
5045
|
+
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5034
5046
|
BaseImage_default,
|
|
5035
5047
|
{
|
|
5036
5048
|
src: "/icons/checkbox.webp",
|
|
5037
5049
|
alt: "checkbox",
|
|
5038
5050
|
size: "small"
|
|
5039
5051
|
}
|
|
5040
|
-
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0,
|
|
5052
|
+
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5041
5053
|
BaseImage_default,
|
|
5042
5054
|
{
|
|
5043
5055
|
src: "/icons/cross-red.webp",
|
|
@@ -5045,20 +5057,20 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
5045
5057
|
size: "small"
|
|
5046
5058
|
}
|
|
5047
5059
|
) }) : null
|
|
5048
|
-
] }) : answerMap[materialKey] === "" ? /* @__PURE__ */ (0,
|
|
5060
|
+
] }) : answerMap[materialKey] === "" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5049
5061
|
"div",
|
|
5050
5062
|
{
|
|
5051
5063
|
className: `w-catchup-activity-box-item border h-catchup-activity-box-item rounded-catchup-xlarge border-dashed ${learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
|
|
5052
|
-
children: /* @__PURE__ */ (0,
|
|
5064
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "italic", children: i18n_default.t("please_drop_here") }) })
|
|
5053
5065
|
}
|
|
5054
|
-
) : /* @__PURE__ */ (0,
|
|
5066
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5055
5067
|
"div",
|
|
5056
5068
|
{
|
|
5057
5069
|
className: "flex-1 cursor-pointer",
|
|
5058
5070
|
onClick: () => {
|
|
5059
5071
|
onChange(answer, materialKey, "");
|
|
5060
5072
|
},
|
|
5061
|
-
children: /* @__PURE__ */ (0,
|
|
5073
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5062
5074
|
ShowMaterialMediaByContentType_default,
|
|
5063
5075
|
{
|
|
5064
5076
|
contentType: contentMap.type,
|
|
@@ -5068,13 +5080,13 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
5068
5080
|
`${uniqueValue}-${index}`
|
|
5069
5081
|
)
|
|
5070
5082
|
}
|
|
5071
|
-
) : /* @__PURE__ */ (0,
|
|
5083
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
|
|
5072
5084
|
answerMap[materialKey]
|
|
5073
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
5085
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
5074
5086
|
"span",
|
|
5075
5087
|
{
|
|
5076
5088
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5077
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5089
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_katex3.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5078
5090
|
},
|
|
5079
5091
|
index2
|
|
5080
5092
|
)) }, materialKey) })
|
|
@@ -5089,7 +5101,7 @@ var FillInTheBlanksActivityMaterialContent_default = FillInTheBlanksActivityMate
|
|
|
5089
5101
|
|
|
5090
5102
|
// src/components/activities/FillInTheBlanksActivityContent.tsx
|
|
5091
5103
|
var import_react21 = require("react");
|
|
5092
|
-
var
|
|
5104
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
5093
5105
|
var FillInTheBlanksActivityContent = ({
|
|
5094
5106
|
answer,
|
|
5095
5107
|
data,
|
|
@@ -5156,8 +5168,8 @@ var FillInTheBlanksActivityContent = ({
|
|
|
5156
5168
|
setCurrentAnswerMap(newAnswerMap);
|
|
5157
5169
|
changeAnswer(newAnswer);
|
|
5158
5170
|
};
|
|
5159
|
-
return /* @__PURE__ */ (0,
|
|
5160
|
-
/* @__PURE__ */ (0,
|
|
5171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
|
|
5172
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
5161
5173
|
ActivityBodyContent_default,
|
|
5162
5174
|
{
|
|
5163
5175
|
bodyMap: fillInTheBlanksBodyMap,
|
|
@@ -5166,9 +5178,9 @@ var FillInTheBlanksActivityContent = ({
|
|
|
5166
5178
|
templateType: "FILL_IN_THE_BLANKS"
|
|
5167
5179
|
}
|
|
5168
5180
|
) }),
|
|
5169
|
-
/* @__PURE__ */ (0,
|
|
5170
|
-
/* @__PURE__ */ (0,
|
|
5171
|
-
/* @__PURE__ */ (0,
|
|
5181
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DividerLine_default, {}) }),
|
|
5182
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(VerticalDividerLine_default, {}) }),
|
|
5183
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
5172
5184
|
FillInTheBlanksActivityMaterialContent_default,
|
|
5173
5185
|
{
|
|
5174
5186
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -5227,7 +5239,7 @@ var useScreenSize = () => {
|
|
|
5227
5239
|
var useScreenSize_default = useScreenSize;
|
|
5228
5240
|
|
|
5229
5241
|
// src/components/activities/material-content/GroupingActivityMaterialContent.tsx
|
|
5230
|
-
var
|
|
5242
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
5231
5243
|
var GroupingActivityMaterialContent = ({
|
|
5232
5244
|
uniqueValue,
|
|
5233
5245
|
answer,
|
|
@@ -5326,19 +5338,19 @@ var GroupingActivityMaterialContent = ({
|
|
|
5326
5338
|
};
|
|
5327
5339
|
const answerMap = retrieveAnswerMap();
|
|
5328
5340
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
5329
|
-
return /* @__PURE__ */ (0,
|
|
5330
|
-
/* @__PURE__ */ (0,
|
|
5341
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
5342
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5331
5343
|
"div",
|
|
5332
5344
|
{
|
|
5333
5345
|
ref: itemsRef,
|
|
5334
5346
|
className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
|
|
5335
5347
|
children: filteredMaterialList.map((materialValue, index) => {
|
|
5336
|
-
return /* @__PURE__ */ (0,
|
|
5348
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5337
5349
|
DraggableItem_default,
|
|
5338
5350
|
{
|
|
5339
5351
|
item: { index: materialValue },
|
|
5340
5352
|
type: "GROUPING",
|
|
5341
|
-
component: /* @__PURE__ */ (0,
|
|
5353
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5342
5354
|
"div",
|
|
5343
5355
|
{
|
|
5344
5356
|
className: `${selectedValue === materialValue ? "border-catchup-blue" : "border-catchup-lighter-gray"} h-catchup-activity-covering-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
|
|
@@ -5352,22 +5364,22 @@ var GroupingActivityMaterialContent = ({
|
|
|
5352
5364
|
setSelectedValue(null);
|
|
5353
5365
|
}
|
|
5354
5366
|
},
|
|
5355
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0,
|
|
5367
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5356
5368
|
"div",
|
|
5357
5369
|
{
|
|
5358
5370
|
className: `flex flex-col items-center justify-center m-4 min-h-[64px] min-w-[200px]`,
|
|
5359
|
-
children: /* @__PURE__ */ (0,
|
|
5371
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5360
5372
|
materialValue
|
|
5361
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
5373
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5362
5374
|
"span",
|
|
5363
5375
|
{
|
|
5364
5376
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5365
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5377
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_katex4.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5366
5378
|
},
|
|
5367
5379
|
index2
|
|
5368
5380
|
)) })
|
|
5369
5381
|
}
|
|
5370
|
-
) : /* @__PURE__ */ (0,
|
|
5382
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5371
5383
|
ShowMaterialMediaByContentType_default,
|
|
5372
5384
|
{
|
|
5373
5385
|
contentType: contentMap.type,
|
|
@@ -5392,22 +5404,22 @@ var GroupingActivityMaterialContent = ({
|
|
|
5392
5404
|
})
|
|
5393
5405
|
}
|
|
5394
5406
|
),
|
|
5395
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */ (0,
|
|
5396
|
-
Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ (0,
|
|
5397
|
-
/* @__PURE__ */ (0,
|
|
5407
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DividerLine_default, {}) : null,
|
|
5408
|
+
Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-row w-full", children: [
|
|
5409
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5398
5410
|
"div",
|
|
5399
5411
|
{
|
|
5400
5412
|
className: `border-catchup-blue h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge transition-all duration-300 my-3`,
|
|
5401
|
-
children: /* @__PURE__ */ (0,
|
|
5413
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5402
5414
|
"div",
|
|
5403
5415
|
{
|
|
5404
5416
|
className: `flex flex-col items-center justify-center transition-all duration-300 m-4`,
|
|
5405
|
-
children: /* @__PURE__ */ (0,
|
|
5406
|
-
(inputPart, index2) => /* @__PURE__ */ (0,
|
|
5417
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
|
|
5418
|
+
(inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5407
5419
|
"span",
|
|
5408
5420
|
{
|
|
5409
5421
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5410
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5422
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_katex4.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5411
5423
|
},
|
|
5412
5424
|
index2
|
|
5413
5425
|
)
|
|
@@ -5416,12 +5428,12 @@ var GroupingActivityMaterialContent = ({
|
|
|
5416
5428
|
)
|
|
5417
5429
|
}
|
|
5418
5430
|
) }),
|
|
5419
|
-
/* @__PURE__ */ (0,
|
|
5420
|
-
/* @__PURE__ */ (0,
|
|
5431
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
|
|
5432
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex-1", ref, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "h-full py-3", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5421
5433
|
"div",
|
|
5422
5434
|
{
|
|
5423
5435
|
className: `${canDrop ? selectedTargetKey === answerMapKey ? "bg-catchup-light-blue" : "bg-catchup-light-blue opacity-40" : ""} flex-1 border-catchup-blue rounded-catchup-xlarge border-2 h-full p-1`,
|
|
5424
|
-
children: /* @__PURE__ */ (0,
|
|
5436
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5425
5437
|
DroppableItem_default,
|
|
5426
5438
|
{
|
|
5427
5439
|
item: { index: answerMapKey },
|
|
@@ -5429,7 +5441,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5429
5441
|
target: selectedTargetKey,
|
|
5430
5442
|
setTarget: setSelectedTargetKey,
|
|
5431
5443
|
dropRef: drop,
|
|
5432
|
-
component: /* @__PURE__ */ (0,
|
|
5444
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5433
5445
|
"div",
|
|
5434
5446
|
{
|
|
5435
5447
|
className: "h-full flex-1 flex flex-row items-center overflow-x-auto",
|
|
@@ -5442,7 +5454,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5442
5454
|
materialMap[answerMapKey],
|
|
5443
5455
|
answerMapValue
|
|
5444
5456
|
);
|
|
5445
|
-
return /* @__PURE__ */ (0,
|
|
5457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "p-1", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "h-catchup-activity-box-item", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5446
5458
|
"div",
|
|
5447
5459
|
{
|
|
5448
5460
|
className: `${learnerAnswerState === "EMPTY" ? "border-catchup-lighter-gray" : learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"} border-2 rounded-catchup-xlarge h-full flex flex-col items-center justify-center transition-all duration-300 cursor-pointer`,
|
|
@@ -5458,17 +5470,17 @@ var GroupingActivityMaterialContent = ({
|
|
|
5458
5470
|
setSelectedValue(null);
|
|
5459
5471
|
}
|
|
5460
5472
|
},
|
|
5461
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0,
|
|
5473
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5462
5474
|
"div",
|
|
5463
5475
|
{
|
|
5464
5476
|
className: `flex flex-col items-center justify-center transition-all duration-300 min-h-[64px] min-w-[200px]`,
|
|
5465
|
-
children: /* @__PURE__ */ (0,
|
|
5477
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5466
5478
|
answerMapValue
|
|
5467
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
5479
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5468
5480
|
"span",
|
|
5469
5481
|
{
|
|
5470
5482
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5471
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5483
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5472
5484
|
import_react_katex4.InlineMath,
|
|
5473
5485
|
{
|
|
5474
5486
|
math: inputPart.value
|
|
@@ -5478,7 +5490,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5478
5490
|
index2
|
|
5479
5491
|
)) }) })
|
|
5480
5492
|
}
|
|
5481
|
-
) : /* @__PURE__ */ (0,
|
|
5493
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
5482
5494
|
ShowMaterialMediaByContentType_default,
|
|
5483
5495
|
{
|
|
5484
5496
|
contentType: contentMap.type,
|
|
@@ -5504,7 +5516,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5504
5516
|
var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
|
|
5505
5517
|
|
|
5506
5518
|
// src/components/activities/GroupingActivityContent.tsx
|
|
5507
|
-
var
|
|
5519
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
5508
5520
|
var GroupingActivityContent = ({
|
|
5509
5521
|
answer,
|
|
5510
5522
|
data,
|
|
@@ -5529,16 +5541,16 @@ var GroupingActivityContent = ({
|
|
|
5529
5541
|
}
|
|
5530
5542
|
changeAnswer(answer2);
|
|
5531
5543
|
};
|
|
5532
|
-
return /* @__PURE__ */ (0,
|
|
5533
|
-
/* @__PURE__ */ (0,
|
|
5544
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
5545
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5534
5546
|
ActivityBodyContent_default,
|
|
5535
5547
|
{
|
|
5536
5548
|
bodyMap: groupingBodyMap,
|
|
5537
5549
|
templateType: "GROUPING"
|
|
5538
5550
|
}
|
|
5539
5551
|
),
|
|
5540
|
-
/* @__PURE__ */ (0,
|
|
5541
|
-
/* @__PURE__ */ (0,
|
|
5552
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DividerLine_default, {}),
|
|
5553
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
5542
5554
|
GroupingActivityMaterialContent_default,
|
|
5543
5555
|
{
|
|
5544
5556
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -5559,7 +5571,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
|
|
|
5559
5571
|
var import_react24 = require("react");
|
|
5560
5572
|
var import_react_dnd5 = require("react-dnd");
|
|
5561
5573
|
var import_react_katex5 = require("react-katex");
|
|
5562
|
-
var
|
|
5574
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
5563
5575
|
var MatchingActivityMaterialContent = ({
|
|
5564
5576
|
uniqueValue,
|
|
5565
5577
|
answer,
|
|
@@ -5655,18 +5667,18 @@ var MatchingActivityMaterialContent = ({
|
|
|
5655
5667
|
};
|
|
5656
5668
|
const answerMap = retrieveAnswerMap();
|
|
5657
5669
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
5658
|
-
return /* @__PURE__ */ (0,
|
|
5659
|
-
/* @__PURE__ */ (0,
|
|
5670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
5671
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5660
5672
|
"div",
|
|
5661
5673
|
{
|
|
5662
5674
|
ref: itemsRef,
|
|
5663
5675
|
className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
|
|
5664
|
-
children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */ (0,
|
|
5676
|
+
children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5665
5677
|
DraggableItem_default,
|
|
5666
5678
|
{
|
|
5667
5679
|
item: { index: materialValue },
|
|
5668
5680
|
type: "MATCHING",
|
|
5669
|
-
component: /* @__PURE__ */ (0,
|
|
5681
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5670
5682
|
"div",
|
|
5671
5683
|
{
|
|
5672
5684
|
className: `${selectedValue === materialValue ? "border-catchup-blue" : "border-catchup-lighter-gray"} h-catchup-activity-covering-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
|
|
@@ -5680,22 +5692,22 @@ var MatchingActivityMaterialContent = ({
|
|
|
5680
5692
|
setSelectedValue(null);
|
|
5681
5693
|
}
|
|
5682
5694
|
},
|
|
5683
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0,
|
|
5695
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5684
5696
|
"div",
|
|
5685
5697
|
{
|
|
5686
5698
|
className: `flex flex-col items-center justify-center m-4 min-h-[64px] min-w-[200px]`,
|
|
5687
|
-
children: /* @__PURE__ */ (0,
|
|
5699
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5688
5700
|
materialValue
|
|
5689
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
5701
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5690
5702
|
"span",
|
|
5691
5703
|
{
|
|
5692
5704
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5693
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5705
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5694
5706
|
},
|
|
5695
5707
|
index2
|
|
5696
5708
|
)) })
|
|
5697
5709
|
}
|
|
5698
|
-
) : /* @__PURE__ */ (0,
|
|
5710
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5699
5711
|
ShowMaterialMediaByContentType_default,
|
|
5700
5712
|
{
|
|
5701
5713
|
contentType: contentMap.type,
|
|
@@ -5719,27 +5731,27 @@ var MatchingActivityMaterialContent = ({
|
|
|
5719
5731
|
))
|
|
5720
5732
|
}
|
|
5721
5733
|
),
|
|
5722
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */ (0,
|
|
5734
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(DividerLine_default, {}) : null,
|
|
5723
5735
|
Object.keys(answerMap).map((answerMapKey, index) => {
|
|
5724
5736
|
const learnerAnswerState = checkAnswerState(
|
|
5725
5737
|
materialMap[answerMapKey],
|
|
5726
5738
|
answerMap[answerMapKey]
|
|
5727
5739
|
);
|
|
5728
|
-
return /* @__PURE__ */ (0,
|
|
5729
|
-
/* @__PURE__ */ (0,
|
|
5740
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-row w-full", children: [
|
|
5741
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5730
5742
|
"div",
|
|
5731
5743
|
{
|
|
5732
5744
|
className: `h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge transition-all duration-300 my-3 ${learnerAnswerState === "EMPTY" ? "border-catchup-blue" : learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
|
|
5733
|
-
children: /* @__PURE__ */ (0,
|
|
5745
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5734
5746
|
"div",
|
|
5735
5747
|
{
|
|
5736
5748
|
className: `flex flex-col items-center justify-center transition-all duration-300 m-4`,
|
|
5737
|
-
children: /* @__PURE__ */ (0,
|
|
5738
|
-
(inputPart, index2) => /* @__PURE__ */ (0,
|
|
5749
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
|
|
5750
|
+
(inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5739
5751
|
"span",
|
|
5740
5752
|
{
|
|
5741
5753
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5742
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5754
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5743
5755
|
},
|
|
5744
5756
|
index2
|
|
5745
5757
|
)
|
|
@@ -5748,8 +5760,8 @@ var MatchingActivityMaterialContent = ({
|
|
|
5748
5760
|
)
|
|
5749
5761
|
}
|
|
5750
5762
|
) }),
|
|
5751
|
-
/* @__PURE__ */ (0,
|
|
5752
|
-
/* @__PURE__ */ (0,
|
|
5763
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
|
|
5764
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5753
5765
|
"div",
|
|
5754
5766
|
{
|
|
5755
5767
|
className: `${canDrop ? selectedTargetKey === answerMapKey ? "bg-catchup-light-blue" : "bg-catchup-light-blue opacity-40" : ""} h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300 my-3 ${learnerAnswerState === "EMPTY" ? "border-catchup-blue" : learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
|
|
@@ -5758,7 +5770,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5758
5770
|
setSelectedValue(null);
|
|
5759
5771
|
}
|
|
5760
5772
|
},
|
|
5761
|
-
children: /* @__PURE__ */ (0,
|
|
5773
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5762
5774
|
DroppableItem_default,
|
|
5763
5775
|
{
|
|
5764
5776
|
item: { index: answerMapKey },
|
|
@@ -5766,7 +5778,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5766
5778
|
target: selectedTargetKey,
|
|
5767
5779
|
setTarget: setSelectedTargetKey,
|
|
5768
5780
|
dropRef: drop,
|
|
5769
|
-
component: /* @__PURE__ */ (0,
|
|
5781
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5770
5782
|
"div",
|
|
5771
5783
|
{
|
|
5772
5784
|
className: `h-full flex-1 flex flex-row items-center justify-center `,
|
|
@@ -5779,16 +5791,16 @@ var MatchingActivityMaterialContent = ({
|
|
|
5779
5791
|
);
|
|
5780
5792
|
}
|
|
5781
5793
|
},
|
|
5782
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0,
|
|
5794
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5783
5795
|
answerMap[answerMapKey]
|
|
5784
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
5796
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5785
5797
|
"span",
|
|
5786
5798
|
{
|
|
5787
5799
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5788
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5800
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5789
5801
|
},
|
|
5790
5802
|
index2
|
|
5791
|
-
)) }) : /* @__PURE__ */ (0,
|
|
5803
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5792
5804
|
ShowMaterialMediaByContentType_default,
|
|
5793
5805
|
{
|
|
5794
5806
|
contentType: contentMap.type,
|
|
@@ -5811,7 +5823,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5811
5823
|
var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
|
|
5812
5824
|
|
|
5813
5825
|
// src/components/activities/MatchingActivityContent.tsx
|
|
5814
|
-
var
|
|
5826
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
5815
5827
|
var MatchingActivityContent = ({
|
|
5816
5828
|
answer,
|
|
5817
5829
|
data,
|
|
@@ -5832,16 +5844,16 @@ var MatchingActivityContent = ({
|
|
|
5832
5844
|
answerMap[key] = value;
|
|
5833
5845
|
changeAnswer(answer2);
|
|
5834
5846
|
};
|
|
5835
|
-
return /* @__PURE__ */ (0,
|
|
5836
|
-
/* @__PURE__ */ (0,
|
|
5847
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
|
5848
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5837
5849
|
ActivityBodyContent_default,
|
|
5838
5850
|
{
|
|
5839
5851
|
bodyMap: matchingBodyMap,
|
|
5840
5852
|
templateType: "MATCHING"
|
|
5841
5853
|
}
|
|
5842
5854
|
),
|
|
5843
|
-
/* @__PURE__ */ (0,
|
|
5844
|
-
/* @__PURE__ */ (0,
|
|
5855
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DividerLine_default, {}),
|
|
5856
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
5845
5857
|
MatchingActivityMaterialContent_default,
|
|
5846
5858
|
{
|
|
5847
5859
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -5860,7 +5872,7 @@ var MatchingActivityContent_default = MatchingActivityContent;
|
|
|
5860
5872
|
|
|
5861
5873
|
// src/components/activities/material-content/MCMAActivityMaterialContent.tsx
|
|
5862
5874
|
var import_react_katex6 = require("react-katex");
|
|
5863
|
-
var
|
|
5875
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
5864
5876
|
var MCMAActivityMaterialContent = ({
|
|
5865
5877
|
uniqueValue,
|
|
5866
5878
|
answer,
|
|
@@ -5893,10 +5905,10 @@ var MCMAActivityMaterialContent = ({
|
|
|
5893
5905
|
const answerMap = retrieveAnswerMap();
|
|
5894
5906
|
const correctAnswerList = retrieveCorrectAnswerList();
|
|
5895
5907
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5896
|
-
return /* @__PURE__ */ (0,
|
|
5897
|
-
/* @__PURE__ */ (0,
|
|
5898
|
-
/* @__PURE__ */ (0,
|
|
5899
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */ (0,
|
|
5908
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
5909
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
|
|
5910
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DividerLine_default, {}) }),
|
|
5911
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
|
|
5900
5912
|
(materialSubKey, index2) => {
|
|
5901
5913
|
const foundAnswer = answerMap[materialKey].find(
|
|
5902
5914
|
(learnerAnswer) => learnerAnswer === materialSubKey
|
|
@@ -5909,7 +5921,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5909
5921
|
const foundIndex = correctAnswerList.findIndex(
|
|
5910
5922
|
(correctAnswer) => correctAnswer === materialSubKey
|
|
5911
5923
|
);
|
|
5912
|
-
return /* @__PURE__ */ (0,
|
|
5924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
5913
5925
|
"div",
|
|
5914
5926
|
{
|
|
5915
5927
|
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
@@ -5917,7 +5929,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5917
5929
|
onChange(answer, materialKey, materialSubKey);
|
|
5918
5930
|
},
|
|
5919
5931
|
children: [
|
|
5920
|
-
/* @__PURE__ */ (0,
|
|
5932
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5921
5933
|
BaseImage_default,
|
|
5922
5934
|
{
|
|
5923
5935
|
src: answerMap[materialKey].includes(materialSubKey) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -5927,16 +5939,16 @@ var MCMAActivityMaterialContent = ({
|
|
|
5927
5939
|
}
|
|
5928
5940
|
}
|
|
5929
5941
|
),
|
|
5930
|
-
/* @__PURE__ */ (0,
|
|
5942
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5931
5943
|
materialSubKey
|
|
5932
|
-
).map((inputPart, index3) => /* @__PURE__ */ (0,
|
|
5944
|
+
).map((inputPart, index3) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5933
5945
|
"span",
|
|
5934
5946
|
{
|
|
5935
5947
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5936
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5948
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_katex6.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5937
5949
|
},
|
|
5938
5950
|
index3
|
|
5939
|
-
)) }) : /* @__PURE__ */ (0,
|
|
5951
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5940
5952
|
ShowMaterialMediaByContentType_default,
|
|
5941
5953
|
{
|
|
5942
5954
|
contentType: contentMap.type,
|
|
@@ -5950,13 +5962,13 @@ var MCMAActivityMaterialContent = ({
|
|
|
5950
5962
|
index2
|
|
5951
5963
|
);
|
|
5952
5964
|
}
|
|
5953
|
-
) }) : /* @__PURE__ */ (0,
|
|
5965
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
|
|
5954
5966
|
answerMap[materialKey]
|
|
5955
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
5967
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
5956
5968
|
"span",
|
|
5957
5969
|
{
|
|
5958
5970
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5959
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
5971
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_katex6.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
5960
5972
|
},
|
|
5961
5973
|
index2
|
|
5962
5974
|
)) }, materialKey)
|
|
@@ -5966,7 +5978,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5966
5978
|
var MCMAActivityMaterialContent_default = MCMAActivityMaterialContent;
|
|
5967
5979
|
|
|
5968
5980
|
// src/components/activities/MCMAActivityContent.tsx
|
|
5969
|
-
var
|
|
5981
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
5970
5982
|
var MCMAActivityContent = ({
|
|
5971
5983
|
answer,
|
|
5972
5984
|
data,
|
|
@@ -5993,11 +6005,11 @@ var MCMAActivityContent = ({
|
|
|
5993
6005
|
}
|
|
5994
6006
|
changeAnswer(answer2);
|
|
5995
6007
|
};
|
|
5996
|
-
return /* @__PURE__ */ (0,
|
|
5997
|
-
/* @__PURE__ */ (0,
|
|
5998
|
-
/* @__PURE__ */ (0,
|
|
5999
|
-
/* @__PURE__ */ (0,
|
|
6000
|
-
/* @__PURE__ */ (0,
|
|
6008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
|
|
6009
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
|
|
6010
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DividerLine_default, {}) }),
|
|
6011
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(VerticalDividerLine_default, {}) }),
|
|
6012
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6001
6013
|
MCMAActivityMaterialContent_default,
|
|
6002
6014
|
{
|
|
6003
6015
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6015,7 +6027,7 @@ var MCMAActivityContent_default = MCMAActivityContent;
|
|
|
6015
6027
|
|
|
6016
6028
|
// src/components/activities/material-content/MCSAActivityMaterialContent.tsx
|
|
6017
6029
|
var import_react_katex7 = require("react-katex");
|
|
6018
|
-
var
|
|
6030
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
6019
6031
|
var MCSAActivityMaterialContent = ({
|
|
6020
6032
|
uniqueValue,
|
|
6021
6033
|
answer,
|
|
@@ -6045,10 +6057,10 @@ var MCSAActivityMaterialContent = ({
|
|
|
6045
6057
|
const answerMap = retrieveAnswerMap();
|
|
6046
6058
|
const correctAnswer = retrieveCorrectAnswer();
|
|
6047
6059
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
6048
|
-
return /* @__PURE__ */ (0,
|
|
6049
|
-
/* @__PURE__ */ (0,
|
|
6050
|
-
/* @__PURE__ */ (0,
|
|
6051
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */ (0,
|
|
6060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
6061
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
|
|
6062
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DividerLine_default, {}) }),
|
|
6063
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6052
6064
|
"div",
|
|
6053
6065
|
{
|
|
6054
6066
|
className: `flex flex-row w-full ${Object.keys(materialMap[materialKey]).length <= 4 ? "justify-center" : ""} flex-wrap`,
|
|
@@ -6059,7 +6071,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
6059
6071
|
materialSubKey,
|
|
6060
6072
|
answerMap[materialKey]
|
|
6061
6073
|
);
|
|
6062
|
-
return /* @__PURE__ */ (0,
|
|
6074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
6063
6075
|
"div",
|
|
6064
6076
|
{
|
|
6065
6077
|
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
@@ -6067,7 +6079,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
6067
6079
|
onChange(answer, materialKey, materialSubKey);
|
|
6068
6080
|
},
|
|
6069
6081
|
children: [
|
|
6070
|
-
/* @__PURE__ */ (0,
|
|
6082
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6071
6083
|
BaseImage_default,
|
|
6072
6084
|
{
|
|
6073
6085
|
src: answerMap[materialKey] === materialSubKey ? "/icons/item-element.webp" : "/icons/not-selected-item-element.webp",
|
|
@@ -6077,16 +6089,16 @@ var MCSAActivityMaterialContent = ({
|
|
|
6077
6089
|
}
|
|
6078
6090
|
}
|
|
6079
6091
|
),
|
|
6080
|
-
/* @__PURE__ */ (0,
|
|
6092
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6081
6093
|
materialSubKey
|
|
6082
|
-
).map((inputPart, index3) => /* @__PURE__ */ (0,
|
|
6094
|
+
).map((inputPart, index3) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6083
6095
|
"span",
|
|
6084
6096
|
{
|
|
6085
6097
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6086
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
6098
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_katex7.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6087
6099
|
},
|
|
6088
6100
|
index3
|
|
6089
|
-
)) }) : /* @__PURE__ */ (0,
|
|
6101
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6090
6102
|
ShowMaterialMediaByContentType_default,
|
|
6091
6103
|
{
|
|
6092
6104
|
contentType: contentMap.type,
|
|
@@ -6102,13 +6114,13 @@ var MCSAActivityMaterialContent = ({
|
|
|
6102
6114
|
}
|
|
6103
6115
|
)
|
|
6104
6116
|
}
|
|
6105
|
-
) : /* @__PURE__ */ (0,
|
|
6117
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6106
6118
|
answerMap[materialKey]
|
|
6107
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
6119
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
6108
6120
|
"span",
|
|
6109
6121
|
{
|
|
6110
6122
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6111
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
6123
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_katex7.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6112
6124
|
},
|
|
6113
6125
|
index2
|
|
6114
6126
|
)) })
|
|
@@ -6118,7 +6130,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
6118
6130
|
var MCSAActivityMaterialContent_default = MCSAActivityMaterialContent;
|
|
6119
6131
|
|
|
6120
6132
|
// src/components/activities/MCSAActivityContent.tsx
|
|
6121
|
-
var
|
|
6133
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
6122
6134
|
var MCSAActivityContent = ({
|
|
6123
6135
|
answer,
|
|
6124
6136
|
data,
|
|
@@ -6138,11 +6150,11 @@ var MCSAActivityContent = ({
|
|
|
6138
6150
|
answerMap[key] = value;
|
|
6139
6151
|
changeAnswer(answer2);
|
|
6140
6152
|
};
|
|
6141
|
-
return /* @__PURE__ */ (0,
|
|
6142
|
-
/* @__PURE__ */ (0,
|
|
6143
|
-
/* @__PURE__ */ (0,
|
|
6144
|
-
/* @__PURE__ */ (0,
|
|
6145
|
-
/* @__PURE__ */ (0,
|
|
6153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
|
|
6154
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
|
|
6155
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(DividerLine_default, {}) }),
|
|
6156
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(VerticalDividerLine_default, {}) }),
|
|
6157
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6146
6158
|
MCSAActivityMaterialContent_default,
|
|
6147
6159
|
{
|
|
6148
6160
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6187,7 +6199,7 @@ var retrieveDocumentTypeFromExtension = (format) => {
|
|
|
6187
6199
|
};
|
|
6188
6200
|
|
|
6189
6201
|
// src/components/activities/material-content/OpenEndedActivityMaterialContent.tsx
|
|
6190
|
-
var
|
|
6202
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
6191
6203
|
var OpenEndedActivityMaterialContent = ({
|
|
6192
6204
|
answer,
|
|
6193
6205
|
contentMap,
|
|
@@ -6217,7 +6229,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6217
6229
|
documentType = retrieveDocumentTypeFromExtension(extension);
|
|
6218
6230
|
}
|
|
6219
6231
|
if (documentType === "IMAGE") {
|
|
6220
|
-
return /* @__PURE__ */ (0,
|
|
6232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6221
6233
|
BaseImage_default,
|
|
6222
6234
|
{
|
|
6223
6235
|
src: answerMapAnswer,
|
|
@@ -6227,9 +6239,9 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6227
6239
|
}
|
|
6228
6240
|
) });
|
|
6229
6241
|
} else if (documentType === "PDF") {
|
|
6230
|
-
return /* @__PURE__ */ (0,
|
|
6242
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(BasePDF_default, { file: answerMapAnswer });
|
|
6231
6243
|
} else if (documentType === "AUDIO") {
|
|
6232
|
-
return /* @__PURE__ */ (0,
|
|
6244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "h-[56px]", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6233
6245
|
"audio",
|
|
6234
6246
|
{
|
|
6235
6247
|
className: "h-full w-full rounded-catchup-xlarge",
|
|
@@ -6240,7 +6252,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6240
6252
|
}
|
|
6241
6253
|
) });
|
|
6242
6254
|
} else if (documentType === "TEXT") {
|
|
6243
|
-
return /* @__PURE__ */ (0,
|
|
6255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6244
6256
|
InputGroup_default,
|
|
6245
6257
|
{
|
|
6246
6258
|
type: "textarea",
|
|
@@ -6259,7 +6271,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6259
6271
|
const answerMapAnswer = answerMap2["ANSWER"];
|
|
6260
6272
|
const extension = answerMapAnswer.split(".").pop();
|
|
6261
6273
|
const documentType = retrieveDocumentTypeFromExtension(extension);
|
|
6262
|
-
return /* @__PURE__ */ (0,
|
|
6274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: documentType === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6263
6275
|
BaseImage_default,
|
|
6264
6276
|
{
|
|
6265
6277
|
src: answerMapAnswer,
|
|
@@ -6267,11 +6279,11 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6267
6279
|
size: "custom",
|
|
6268
6280
|
className: "w-[80%] rounded-catchup-xlarge"
|
|
6269
6281
|
}
|
|
6270
|
-
) }) : documentType === "PDF" ? /* @__PURE__ */ (0,
|
|
6282
|
+
) }) : documentType === "PDF" ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(BasePDF_default, { file: answerMapAnswer }) }) : null });
|
|
6271
6283
|
};
|
|
6272
6284
|
const RenderAudioContent = (answerMap2) => {
|
|
6273
6285
|
const answerMapAnswer = answerMap2["ANSWER"];
|
|
6274
|
-
return /* @__PURE__ */ (0,
|
|
6286
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "h-[56px]", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6275
6287
|
"audio",
|
|
6276
6288
|
{
|
|
6277
6289
|
className: "h-full w-full rounded-catchup-xlarge",
|
|
@@ -6283,16 +6295,16 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6283
6295
|
) });
|
|
6284
6296
|
};
|
|
6285
6297
|
const answerMap = retrieveAnswerMap();
|
|
6286
|
-
return /* @__PURE__ */ (0,
|
|
6287
|
-
/* @__PURE__ */ (0,
|
|
6288
|
-
/* @__PURE__ */ (0,
|
|
6298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_jsx_runtime39.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "", children: [
|
|
6299
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
|
|
6300
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(DividerLine_default, {}) }),
|
|
6289
6301
|
contentMap.type === "TEXT" ? RenderTextContent(answerMap) : contentMap.type === "IMAGE" ? RenderImageContent(answerMap) : contentMap.type === "AUDIO" ? RenderAudioContent(answerMap) : null
|
|
6290
6302
|
] }) });
|
|
6291
6303
|
};
|
|
6292
6304
|
var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
|
|
6293
6305
|
|
|
6294
6306
|
// src/components/activities/OpenEndedActivityContent.tsx
|
|
6295
|
-
var
|
|
6307
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
6296
6308
|
var OpenEndedActivityContent = ({
|
|
6297
6309
|
answer,
|
|
6298
6310
|
data,
|
|
@@ -6311,12 +6323,12 @@ var OpenEndedActivityContent = ({
|
|
|
6311
6323
|
answerMap["ANSWER"] = value;
|
|
6312
6324
|
changeAnswer(answer2);
|
|
6313
6325
|
};
|
|
6314
|
-
return /* @__PURE__ */ (0,
|
|
6315
|
-
/* @__PURE__ */ (0,
|
|
6326
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
|
|
6327
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6316
6328
|
"div",
|
|
6317
6329
|
{
|
|
6318
6330
|
className: `${showMaterialContent ? isFullScreen ? "w-full" : "w-full md:w-[40%]" : "w-full"}`,
|
|
6319
|
-
children: /* @__PURE__ */ (0,
|
|
6331
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6320
6332
|
ActivityBodyContent_default,
|
|
6321
6333
|
{
|
|
6322
6334
|
bodyMap: openEndedBodyMap,
|
|
@@ -6325,16 +6337,16 @@ var OpenEndedActivityContent = ({
|
|
|
6325
6337
|
)
|
|
6326
6338
|
}
|
|
6327
6339
|
),
|
|
6328
|
-
showMaterialContent ? /* @__PURE__ */ (0,
|
|
6329
|
-
/* @__PURE__ */ (0,
|
|
6340
|
+
showMaterialContent ? /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
6341
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6330
6342
|
"div",
|
|
6331
6343
|
{
|
|
6332
6344
|
className: `${isFullScreen ? "contents" : "contents md:hidden"}`,
|
|
6333
|
-
children: /* @__PURE__ */ (0,
|
|
6345
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(DividerLine_default, {})
|
|
6334
6346
|
}
|
|
6335
6347
|
),
|
|
6336
|
-
/* @__PURE__ */ (0,
|
|
6337
|
-
/* @__PURE__ */ (0,
|
|
6348
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(VerticalDividerLine_default, {}) }),
|
|
6349
|
+
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
6338
6350
|
OpenEndedActivityMaterialContent_default,
|
|
6339
6351
|
{
|
|
6340
6352
|
answer,
|
|
@@ -6356,7 +6368,7 @@ var import_react_katex8 = require("react-katex");
|
|
|
6356
6368
|
// src/components/dnds/DraggableDroppableItem.tsx
|
|
6357
6369
|
var import_react25 = require("react");
|
|
6358
6370
|
var import_react_dnd6 = require("react-dnd");
|
|
6359
|
-
var
|
|
6371
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
6360
6372
|
var DraggableDroppableItem = ({
|
|
6361
6373
|
item,
|
|
6362
6374
|
type,
|
|
@@ -6393,19 +6405,19 @@ var DraggableDroppableItem = ({
|
|
|
6393
6405
|
});
|
|
6394
6406
|
const opacity = isDragging ? 0.4 : 1;
|
|
6395
6407
|
drag(drop(ref));
|
|
6396
|
-
return /* @__PURE__ */ (0,
|
|
6408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
6397
6409
|
"div",
|
|
6398
6410
|
{
|
|
6399
6411
|
className: `${isDragging ? "w-[0px] opacity-0" : "w-full opacity-100"} transition-all duration-500`,
|
|
6400
6412
|
ref: dropRef,
|
|
6401
|
-
children: /* @__PURE__ */ (0,
|
|
6413
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { ref, className: "w-full", style: { opacity }, children: component })
|
|
6402
6414
|
}
|
|
6403
6415
|
);
|
|
6404
6416
|
};
|
|
6405
6417
|
var DraggableDroppableItem_default = DraggableDroppableItem;
|
|
6406
6418
|
|
|
6407
6419
|
// src/components/activities/material-content/OrderingActivityMaterialContent.tsx
|
|
6408
|
-
var
|
|
6420
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
6409
6421
|
var OrderingActivityMaterialContent = ({
|
|
6410
6422
|
uniqueValue,
|
|
6411
6423
|
answer,
|
|
@@ -6482,12 +6494,12 @@ var OrderingActivityMaterialContent = ({
|
|
|
6482
6494
|
return 0;
|
|
6483
6495
|
};
|
|
6484
6496
|
const answerMap = retrieveAnswerMap();
|
|
6485
|
-
return /* @__PURE__ */ (0,
|
|
6497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
|
|
6486
6498
|
const learnerAnswerState = checkAnswerState(
|
|
6487
6499
|
answerMap[materialKey] + "",
|
|
6488
6500
|
index + ""
|
|
6489
6501
|
);
|
|
6490
|
-
return /* @__PURE__ */ (0,
|
|
6502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
6491
6503
|
"div",
|
|
6492
6504
|
{
|
|
6493
6505
|
className: `flex flex-row items-center my-4 mx-2`,
|
|
@@ -6495,26 +6507,26 @@ var OrderingActivityMaterialContent = ({
|
|
|
6495
6507
|
marginTop: view === "PC" ? calculateMarginTop(parseFloat(materialKey)) : 0
|
|
6496
6508
|
},
|
|
6497
6509
|
children: [
|
|
6498
|
-
/* @__PURE__ */ (0,
|
|
6510
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mr-3", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6499
6511
|
"div",
|
|
6500
6512
|
{
|
|
6501
6513
|
className: `min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center cursor-pointer transition-all duration-300`,
|
|
6502
|
-
children: /* @__PURE__ */ (0,
|
|
6514
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6503
6515
|
"div",
|
|
6504
6516
|
{
|
|
6505
6517
|
className: `${selectedKey === materialKey ? "border-2 border-catchup-light-gray" : "border-2 border-catchup-blue"} flex flex-col items-center justify-center transition-all duration-300 rounded-catchup-full w-[50px] h-[50px]`,
|
|
6506
|
-
children: /* @__PURE__ */ (0,
|
|
6518
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "", children: parseFloat(materialKey) + 1 })
|
|
6507
6519
|
}
|
|
6508
6520
|
)
|
|
6509
6521
|
}
|
|
6510
6522
|
) }),
|
|
6511
|
-
/* @__PURE__ */ (0,
|
|
6523
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6512
6524
|
DraggableDroppableItem_default,
|
|
6513
6525
|
{
|
|
6514
6526
|
item: { index: materialKey },
|
|
6515
6527
|
type: "ORDERING",
|
|
6516
6528
|
dropRef: drop,
|
|
6517
|
-
component: /* @__PURE__ */ (0,
|
|
6529
|
+
component: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6518
6530
|
"div",
|
|
6519
6531
|
{
|
|
6520
6532
|
className: `${canDrop ? selectedKey !== materialKey ? selectedTargetKey === materialKey ? "bg-catchup-light-blue rounded-catchup-xlarge" : "bg-catchup-light-blue rounded-catchup-xlarge opacity-40" : "" : ""} flex-1 min-h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer p-3 ${learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
|
|
@@ -6523,16 +6535,16 @@ var OrderingActivityMaterialContent = ({
|
|
|
6523
6535
|
setSelectedKey(materialKey);
|
|
6524
6536
|
}
|
|
6525
6537
|
},
|
|
6526
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0,
|
|
6538
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6527
6539
|
materialMap[answerMap[materialKey]]
|
|
6528
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
6540
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6529
6541
|
"span",
|
|
6530
6542
|
{
|
|
6531
6543
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6532
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
6544
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_katex8.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6533
6545
|
},
|
|
6534
6546
|
index2
|
|
6535
|
-
)) }) : /* @__PURE__ */ (0,
|
|
6547
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6536
6548
|
ShowMaterialMediaByContentType_default,
|
|
6537
6549
|
{
|
|
6538
6550
|
contentType: contentMap.type,
|
|
@@ -6564,7 +6576,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
6564
6576
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
6565
6577
|
|
|
6566
6578
|
// src/components/activities/OrderingActivityContent.tsx
|
|
6567
|
-
var
|
|
6579
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
6568
6580
|
var OrderingActivityContent = ({
|
|
6569
6581
|
answer,
|
|
6570
6582
|
data,
|
|
@@ -6587,16 +6599,16 @@ var OrderingActivityContent = ({
|
|
|
6587
6599
|
answerMap[secondaryKey] = prevValue;
|
|
6588
6600
|
changeAnswer(answer2);
|
|
6589
6601
|
};
|
|
6590
|
-
return /* @__PURE__ */ (0,
|
|
6591
|
-
/* @__PURE__ */ (0,
|
|
6602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
6603
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6592
6604
|
ActivityBodyContent_default,
|
|
6593
6605
|
{
|
|
6594
6606
|
bodyMap: orderingBodyMap,
|
|
6595
6607
|
templateType: "ORDERING"
|
|
6596
6608
|
}
|
|
6597
6609
|
),
|
|
6598
|
-
/* @__PURE__ */ (0,
|
|
6599
|
-
/* @__PURE__ */ (0,
|
|
6610
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DividerLine_default, {}),
|
|
6611
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6600
6612
|
OrderingActivityMaterialContent_default,
|
|
6601
6613
|
{
|
|
6602
6614
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6616,7 +6628,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
|
|
|
6616
6628
|
// src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx
|
|
6617
6629
|
var import_react27 = require("react");
|
|
6618
6630
|
var import_react_katex9 = require("react-katex");
|
|
6619
|
-
var
|
|
6631
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
6620
6632
|
var TrueFalseActivityMaterialContent = ({
|
|
6621
6633
|
uniqueValue,
|
|
6622
6634
|
answer,
|
|
@@ -6669,14 +6681,14 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6669
6681
|
return "INCORRECT";
|
|
6670
6682
|
};
|
|
6671
6683
|
const answerMap = retrieveAnswerMap();
|
|
6672
|
-
return /* @__PURE__ */ (0,
|
|
6673
|
-
/* @__PURE__ */ (0,
|
|
6674
|
-
/* @__PURE__ */ (0,
|
|
6675
|
-
/* @__PURE__ */ (0,
|
|
6676
|
-
/* @__PURE__ */ (0,
|
|
6677
|
-
/* @__PURE__ */ (0,
|
|
6684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "", children: [
|
|
6685
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
|
|
6686
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DividerLine_default, {}) }),
|
|
6687
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
|
|
6688
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
|
|
6689
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
|
|
6678
6690
|
] }),
|
|
6679
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */ (0,
|
|
6691
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
|
|
6680
6692
|
const correctAnswer = materialMap.trueList.find(
|
|
6681
6693
|
(trueItem) => trueItem === shuffleOption
|
|
6682
6694
|
) !== void 0 ? "TRUE" : "FALSE";
|
|
@@ -6687,21 +6699,21 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6687
6699
|
correctAnswer,
|
|
6688
6700
|
learnerAnswer
|
|
6689
6701
|
);
|
|
6690
|
-
return /* @__PURE__ */ (0,
|
|
6702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
6691
6703
|
"div",
|
|
6692
6704
|
{
|
|
6693
6705
|
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
6694
6706
|
children: [
|
|
6695
|
-
/* @__PURE__ */ (0,
|
|
6707
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6696
6708
|
shuffleOption
|
|
6697
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
6709
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6698
6710
|
"span",
|
|
6699
6711
|
{
|
|
6700
6712
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6701
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
6713
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_katex9.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6702
6714
|
},
|
|
6703
6715
|
index2
|
|
6704
|
-
)) }) : /* @__PURE__ */ (0,
|
|
6716
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6705
6717
|
ShowMaterialMediaByContentType_default,
|
|
6706
6718
|
{
|
|
6707
6719
|
contentType: contentMap.type,
|
|
@@ -6710,8 +6722,8 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6710
6722
|
},
|
|
6711
6723
|
`${uniqueValue}-${index}`
|
|
6712
6724
|
) }),
|
|
6713
|
-
/* @__PURE__ */ (0,
|
|
6714
|
-
/* @__PURE__ */ (0,
|
|
6725
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6726
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6715
6727
|
BaseImage_default,
|
|
6716
6728
|
{
|
|
6717
6729
|
src: answerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -6722,7 +6734,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6722
6734
|
}
|
|
6723
6735
|
}
|
|
6724
6736
|
) }) }),
|
|
6725
|
-
/* @__PURE__ */ (0,
|
|
6737
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6726
6738
|
BaseImage_default,
|
|
6727
6739
|
{
|
|
6728
6740
|
src: answerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -6738,14 +6750,14 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6738
6750
|
},
|
|
6739
6751
|
index
|
|
6740
6752
|
);
|
|
6741
|
-
}) }) : /* @__PURE__ */ (0,
|
|
6742
|
-
answerMap.trueList.map((item) => /* @__PURE__ */ (0,
|
|
6743
|
-
/* @__PURE__ */ (0,
|
|
6744
|
-
/* @__PURE__ */ (0,
|
|
6753
|
+
}) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
6754
|
+
answerMap.trueList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6755
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { children: item }) }),
|
|
6756
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "underline", children: i18n_default.t("true") }) })
|
|
6745
6757
|
] })),
|
|
6746
|
-
answerMap.falseList.map((item) => /* @__PURE__ */ (0,
|
|
6747
|
-
/* @__PURE__ */ (0,
|
|
6748
|
-
/* @__PURE__ */ (0,
|
|
6758
|
+
answerMap.falseList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6759
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { children: item }) }),
|
|
6760
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "underline", children: i18n_default.t("false") }) })
|
|
6749
6761
|
] }))
|
|
6750
6762
|
] })
|
|
6751
6763
|
] });
|
|
@@ -6753,7 +6765,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6753
6765
|
var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
|
|
6754
6766
|
|
|
6755
6767
|
// src/components/activities/TrueFalseActivityContent.tsx
|
|
6756
|
-
var
|
|
6768
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
6757
6769
|
var TrueFalseActivityContent = ({
|
|
6758
6770
|
answer,
|
|
6759
6771
|
data,
|
|
@@ -6803,17 +6815,17 @@ var TrueFalseActivityContent = ({
|
|
|
6803
6815
|
}
|
|
6804
6816
|
changeAnswer(answer2);
|
|
6805
6817
|
};
|
|
6806
|
-
return /* @__PURE__ */ (0,
|
|
6807
|
-
/* @__PURE__ */ (0,
|
|
6818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
|
|
6819
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%]"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6808
6820
|
ActivityBodyContent_default,
|
|
6809
6821
|
{
|
|
6810
6822
|
bodyMap: trueFalseBodyMap,
|
|
6811
6823
|
templateType: "GROUPING"
|
|
6812
6824
|
}
|
|
6813
6825
|
) }),
|
|
6814
|
-
/* @__PURE__ */ (0,
|
|
6815
|
-
/* @__PURE__ */ (0,
|
|
6816
|
-
/* @__PURE__ */ (0,
|
|
6826
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DividerLine_default, {}) }),
|
|
6827
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(VerticalDividerLine_default, {}) }),
|
|
6828
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6817
6829
|
TrueFalseActivityMaterialContent_default,
|
|
6818
6830
|
{
|
|
6819
6831
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6832,7 +6844,7 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
|
|
|
6832
6844
|
|
|
6833
6845
|
// src/components/activities/solution-content/ActivitySolutionContent.tsx
|
|
6834
6846
|
var import_react_katex10 = require("react-katex");
|
|
6835
|
-
var
|
|
6847
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
6836
6848
|
var ActivitySolutionContent = ({
|
|
6837
6849
|
activityTemplateType,
|
|
6838
6850
|
data
|
|
@@ -6862,8 +6874,8 @@ var ActivitySolutionContent = ({
|
|
|
6862
6874
|
return null;
|
|
6863
6875
|
}
|
|
6864
6876
|
if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
|
|
6865
|
-
return /* @__PURE__ */ (0,
|
|
6866
|
-
/* @__PURE__ */ (0,
|
|
6877
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
|
|
6878
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
|
|
6867
6879
|
Object.keys(solutionMap).map((key) => {
|
|
6868
6880
|
let currentItem;
|
|
6869
6881
|
try {
|
|
@@ -6873,12 +6885,12 @@ var ActivitySolutionContent = ({
|
|
|
6873
6885
|
return null;
|
|
6874
6886
|
}
|
|
6875
6887
|
const { value } = currentItem;
|
|
6876
|
-
return /* @__PURE__ */ (0,
|
|
6877
|
-
(inputPart, partIndex) => /* @__PURE__ */ (0,
|
|
6888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
|
|
6889
|
+
(inputPart, partIndex) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
6878
6890
|
"span",
|
|
6879
6891
|
{
|
|
6880
6892
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6881
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
6893
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_katex10.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6882
6894
|
},
|
|
6883
6895
|
`${key}_part_${partIndex}`
|
|
6884
6896
|
)
|
|
@@ -6890,7 +6902,7 @@ var ActivitySolutionContent_default = ActivitySolutionContent;
|
|
|
6890
6902
|
|
|
6891
6903
|
// src/components/activities/evaluation-rubric-content/ActivityEvaluationRubricContent.tsx
|
|
6892
6904
|
var import_react_katex11 = require("react-katex");
|
|
6893
|
-
var
|
|
6905
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
6894
6906
|
var ActivityEvaluationRubricContent = ({
|
|
6895
6907
|
activityTemplateType,
|
|
6896
6908
|
data
|
|
@@ -6919,21 +6931,21 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6919
6931
|
}
|
|
6920
6932
|
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
6921
6933
|
return null;
|
|
6922
|
-
return /* @__PURE__ */ (0,
|
|
6923
|
-
/* @__PURE__ */ (0,
|
|
6934
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
6935
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
6924
6936
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
|
6925
6937
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
6926
6938
|
const { value } = currentItem;
|
|
6927
|
-
return /* @__PURE__ */ (0,
|
|
6939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6928
6940
|
"p",
|
|
6929
6941
|
{
|
|
6930
6942
|
className: "my-1 text-xl whitespace-pre-wrap",
|
|
6931
6943
|
children: constructInputWithSpecialExpressionList(value).map(
|
|
6932
|
-
(inputPart, index2) => /* @__PURE__ */ (0,
|
|
6944
|
+
(inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
6933
6945
|
"span",
|
|
6934
6946
|
{
|
|
6935
6947
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6936
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
6948
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_katex11.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6937
6949
|
},
|
|
6938
6950
|
index2
|
|
6939
6951
|
)
|
|
@@ -6950,28 +6962,28 @@ var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
|
|
|
6950
6962
|
var import_react28 = require("react");
|
|
6951
6963
|
|
|
6952
6964
|
// src/components/boxes/SelectionBox.tsx
|
|
6953
|
-
var
|
|
6965
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
6954
6966
|
var SelectionBox = ({
|
|
6955
6967
|
optionList,
|
|
6956
6968
|
selectedId,
|
|
6957
6969
|
handleSelectOnClick
|
|
6958
6970
|
}) => {
|
|
6959
|
-
return /* @__PURE__ */ (0,
|
|
6971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.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_runtime48.jsx)(
|
|
6960
6972
|
"div",
|
|
6961
6973
|
{
|
|
6962
6974
|
className: `${option.id === selectedId ? "border-catchup-blue-400" : "border-catchup-gray-100 hover:border-catchup-blue-500"} border-2 rounded-catchup-xlarge py-3 px-8 cursor-pointer duration-300 transition-all`,
|
|
6963
6975
|
onClick: () => {
|
|
6964
6976
|
handleSelectOnClick(option.id);
|
|
6965
6977
|
},
|
|
6966
|
-
children: /* @__PURE__ */ (0,
|
|
6978
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
6967
6979
|
"div",
|
|
6968
6980
|
{
|
|
6969
6981
|
className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
|
|
6970
6982
|
children: [
|
|
6971
6983
|
option.icon,
|
|
6972
|
-
/* @__PURE__ */ (0,
|
|
6973
|
-
/* @__PURE__ */ (0,
|
|
6974
|
-
option.subText ? /* @__PURE__ */ (0,
|
|
6984
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-1 flex flex-col items-center", children: [
|
|
6985
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { children: option.text }),
|
|
6986
|
+
option.subText ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: "text-md", children: [
|
|
6975
6987
|
"(",
|
|
6976
6988
|
option.subText,
|
|
6977
6989
|
")"
|
|
@@ -6987,7 +6999,7 @@ var SelectionBox = ({
|
|
|
6987
6999
|
var SelectionBox_default = SelectionBox;
|
|
6988
7000
|
|
|
6989
7001
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
6990
|
-
var
|
|
7002
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
6991
7003
|
var ActivityPreviewByData = ({
|
|
6992
7004
|
data,
|
|
6993
7005
|
showType,
|
|
@@ -7045,11 +7057,11 @@ var ActivityPreviewByData = ({
|
|
|
7045
7057
|
}, [data, lockedType, typeOptionList, showDifficulty]);
|
|
7046
7058
|
if (!data) return;
|
|
7047
7059
|
const answer = constructAnswerBasedOnData(data);
|
|
7048
|
-
return /* @__PURE__ */ (0,
|
|
7049
|
-
showType ? /* @__PURE__ */ (0,
|
|
7050
|
-
/* @__PURE__ */ (0,
|
|
7051
|
-
showDescription ? /* @__PURE__ */ (0,
|
|
7052
|
-
/* @__PURE__ */ (0,
|
|
7060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
|
|
7061
|
+
showType ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
7062
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "mb-4", children: [
|
|
7063
|
+
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7064
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7053
7065
|
SelectionBox_default,
|
|
7054
7066
|
{
|
|
7055
7067
|
optionList,
|
|
@@ -7060,9 +7072,9 @@ var ActivityPreviewByData = ({
|
|
|
7060
7072
|
}
|
|
7061
7073
|
)
|
|
7062
7074
|
] }),
|
|
7063
|
-
/* @__PURE__ */ (0,
|
|
7075
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DividerLine_default, {})
|
|
7064
7076
|
] }) : null,
|
|
7065
|
-
selectedType ? /* @__PURE__ */ (0,
|
|
7077
|
+
selectedType ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7066
7078
|
OrderingActivityContent_default,
|
|
7067
7079
|
{
|
|
7068
7080
|
answer,
|
|
@@ -7076,7 +7088,7 @@ var ActivityPreviewByData = ({
|
|
|
7076
7088
|
showCorrectAnswer: true,
|
|
7077
7089
|
isFullScreen
|
|
7078
7090
|
}
|
|
7079
|
-
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7091
|
+
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7080
7092
|
DropdownActivityContent_default,
|
|
7081
7093
|
{
|
|
7082
7094
|
answer,
|
|
@@ -7090,7 +7102,7 @@ var ActivityPreviewByData = ({
|
|
|
7090
7102
|
showCorrectAnswer: true,
|
|
7091
7103
|
isFullScreen
|
|
7092
7104
|
}
|
|
7093
|
-
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7105
|
+
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7094
7106
|
MCSAActivityContent_default,
|
|
7095
7107
|
{
|
|
7096
7108
|
answer,
|
|
@@ -7104,7 +7116,7 @@ var ActivityPreviewByData = ({
|
|
|
7104
7116
|
showCorrectAnswer: true,
|
|
7105
7117
|
isFullScreen
|
|
7106
7118
|
}
|
|
7107
|
-
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7119
|
+
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7108
7120
|
MCMAActivityContent_default,
|
|
7109
7121
|
{
|
|
7110
7122
|
answer,
|
|
@@ -7118,7 +7130,7 @@ var ActivityPreviewByData = ({
|
|
|
7118
7130
|
showCorrectAnswer: true,
|
|
7119
7131
|
isFullScreen
|
|
7120
7132
|
}
|
|
7121
|
-
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7133
|
+
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7122
7134
|
MatchingActivityContent_default,
|
|
7123
7135
|
{
|
|
7124
7136
|
answer,
|
|
@@ -7132,7 +7144,7 @@ var ActivityPreviewByData = ({
|
|
|
7132
7144
|
showCorrectAnswer: true,
|
|
7133
7145
|
isFullScreen
|
|
7134
7146
|
}
|
|
7135
|
-
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7147
|
+
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7136
7148
|
GroupingActivityContent_default,
|
|
7137
7149
|
{
|
|
7138
7150
|
answer,
|
|
@@ -7146,7 +7158,7 @@ var ActivityPreviewByData = ({
|
|
|
7146
7158
|
showCorrectAnswer: true,
|
|
7147
7159
|
isFullScreen
|
|
7148
7160
|
}
|
|
7149
|
-
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7161
|
+
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7150
7162
|
FillInTheBlanksActivityContent_default,
|
|
7151
7163
|
{
|
|
7152
7164
|
answer,
|
|
@@ -7160,7 +7172,7 @@ var ActivityPreviewByData = ({
|
|
|
7160
7172
|
showCorrectAnswer: true,
|
|
7161
7173
|
isFullScreen
|
|
7162
7174
|
}
|
|
7163
|
-
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ (0,
|
|
7175
|
+
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7164
7176
|
OpenEndedActivityContent_default,
|
|
7165
7177
|
{
|
|
7166
7178
|
answer,
|
|
@@ -7171,7 +7183,7 @@ var ActivityPreviewByData = ({
|
|
|
7171
7183
|
data,
|
|
7172
7184
|
isFullScreen
|
|
7173
7185
|
}
|
|
7174
|
-
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7186
|
+
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7175
7187
|
TrueFalseActivityContent_default,
|
|
7176
7188
|
{
|
|
7177
7189
|
answer,
|
|
@@ -7186,14 +7198,14 @@ var ActivityPreviewByData = ({
|
|
|
7186
7198
|
isFullScreen
|
|
7187
7199
|
}
|
|
7188
7200
|
) : null }, selectedType) : null,
|
|
7189
|
-
selectedType && showSolution ? /* @__PURE__ */ (0,
|
|
7201
|
+
selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7190
7202
|
ActivitySolutionContent_default,
|
|
7191
7203
|
{
|
|
7192
7204
|
activityTemplateType: selectedType,
|
|
7193
7205
|
data
|
|
7194
7206
|
}
|
|
7195
7207
|
) }) : null,
|
|
7196
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0,
|
|
7208
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7197
7209
|
ActivityEvaluationRubricContent_default,
|
|
7198
7210
|
{
|
|
7199
7211
|
activityTemplateType: selectedType,
|
|
@@ -7206,7 +7218,7 @@ var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
|
7206
7218
|
|
|
7207
7219
|
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
7208
7220
|
var import_react29 = require("react");
|
|
7209
|
-
var
|
|
7221
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
7210
7222
|
var ActivityPreviewByAnswerData = ({
|
|
7211
7223
|
data,
|
|
7212
7224
|
showType = true,
|
|
@@ -7314,38 +7326,38 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7314
7326
|
};
|
|
7315
7327
|
switch (selectedType) {
|
|
7316
7328
|
case "ORDERING":
|
|
7317
|
-
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0,
|
|
7329
|
+
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(OrderingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7318
7330
|
case "DROPDOWN":
|
|
7319
|
-
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0,
|
|
7331
|
+
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DropdownActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7320
7332
|
case "MCSA":
|
|
7321
|
-
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0,
|
|
7333
|
+
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MCSAActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7322
7334
|
case "MCMA":
|
|
7323
|
-
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0,
|
|
7335
|
+
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MCMAActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7324
7336
|
case "MATCHING":
|
|
7325
|
-
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0,
|
|
7337
|
+
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MatchingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7326
7338
|
case "GROUPING":
|
|
7327
|
-
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0,
|
|
7339
|
+
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(GroupingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7328
7340
|
case "FILL_IN_THE_BLANKS":
|
|
7329
|
-
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0,
|
|
7341
|
+
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7330
7342
|
case "OPEN_ENDED":
|
|
7331
|
-
return data.openEndedBodyMap ? /* @__PURE__ */ (0,
|
|
7343
|
+
return data.openEndedBodyMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7332
7344
|
OpenEndedActivityContent_default,
|
|
7333
7345
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
7334
7346
|
showMaterialContent: true
|
|
7335
7347
|
})
|
|
7336
7348
|
) : null;
|
|
7337
7349
|
case "TRUE_FALSE":
|
|
7338
|
-
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0,
|
|
7350
|
+
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TrueFalseActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7339
7351
|
default:
|
|
7340
7352
|
return null;
|
|
7341
7353
|
}
|
|
7342
7354
|
};
|
|
7343
7355
|
if (!data) return null;
|
|
7344
|
-
return /* @__PURE__ */ (0,
|
|
7345
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ (0,
|
|
7346
|
-
/* @__PURE__ */ (0,
|
|
7347
|
-
showDescription ? /* @__PURE__ */ (0,
|
|
7348
|
-
/* @__PURE__ */ (0,
|
|
7356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { children: [
|
|
7357
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
7358
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "mb-4", children: [
|
|
7359
|
+
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7360
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7349
7361
|
SelectionBox_default,
|
|
7350
7362
|
{
|
|
7351
7363
|
optionList,
|
|
@@ -7356,20 +7368,20 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7356
7368
|
}
|
|
7357
7369
|
)
|
|
7358
7370
|
] }),
|
|
7359
|
-
/* @__PURE__ */ (0,
|
|
7371
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DividerLine_default, {})
|
|
7360
7372
|
] }) : null,
|
|
7361
|
-
/* @__PURE__ */ (0,
|
|
7362
|
-
((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ (0,
|
|
7363
|
-
selectedType ? /* @__PURE__ */ (0,
|
|
7373
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col my-2 w-full p-5", children: [
|
|
7374
|
+
((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ActivityEmptyContent_default, {}) : null,
|
|
7375
|
+
selectedType ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: RenderSelectedActivityContent() }, selectedType) : null
|
|
7364
7376
|
] }),
|
|
7365
|
-
selectedType && showSolution ? /* @__PURE__ */ (0,
|
|
7377
|
+
selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7366
7378
|
ActivitySolutionContent_default,
|
|
7367
7379
|
{
|
|
7368
7380
|
activityTemplateType: selectedType,
|
|
7369
7381
|
data
|
|
7370
7382
|
}
|
|
7371
7383
|
) }) : null,
|
|
7372
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0,
|
|
7384
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7373
7385
|
ActivityEvaluationRubricContent_default,
|
|
7374
7386
|
{
|
|
7375
7387
|
activityTemplateType: selectedType,
|
|
@@ -7381,9 +7393,9 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7381
7393
|
var ActivityPreviewByAnswerData_default = ActivityPreviewByAnswerData;
|
|
7382
7394
|
|
|
7383
7395
|
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
7384
|
-
var
|
|
7396
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
7385
7397
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
7386
|
-
return /* @__PURE__ */ (0,
|
|
7398
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
7387
7399
|
"div",
|
|
7388
7400
|
{
|
|
7389
7401
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -7393,7 +7405,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7393
7405
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7394
7406
|
|
|
7395
7407
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7396
|
-
var
|
|
7408
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
7397
7409
|
var LeftTextRightInputGroup = ({
|
|
7398
7410
|
type,
|
|
7399
7411
|
title,
|
|
@@ -7403,9 +7415,9 @@ var LeftTextRightInputGroup = ({
|
|
|
7403
7415
|
disabled,
|
|
7404
7416
|
errorText
|
|
7405
7417
|
}) => {
|
|
7406
|
-
return /* @__PURE__ */ (0,
|
|
7407
|
-
/* @__PURE__ */ (0,
|
|
7408
|
-
/* @__PURE__ */ (0,
|
|
7418
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7419
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { children: title }) }),
|
|
7420
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7409
7421
|
InputGroup_default,
|
|
7410
7422
|
{
|
|
7411
7423
|
type,
|
|
@@ -7422,7 +7434,7 @@ var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
|
7422
7434
|
|
|
7423
7435
|
// src/components/groups/PageTravelGroup.tsx
|
|
7424
7436
|
var import_react30 = require("react");
|
|
7425
|
-
var
|
|
7437
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7426
7438
|
var PageTravelGroup = ({
|
|
7427
7439
|
isImageProcessing,
|
|
7428
7440
|
handleImageProcessing,
|
|
@@ -7440,8 +7452,8 @@ var PageTravelGroup = ({
|
|
|
7440
7452
|
(0, import_react30.useEffect)(() => {
|
|
7441
7453
|
setNewPageNumber(pageNumber + 1);
|
|
7442
7454
|
}, [pageNumber]);
|
|
7443
|
-
return /* @__PURE__ */ (0,
|
|
7444
|
-
pageNumber === 0 ? null : /* @__PURE__ */ (0,
|
|
7455
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7456
|
+
pageNumber === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7445
7457
|
BaseImage_default,
|
|
7446
7458
|
{
|
|
7447
7459
|
size: "small",
|
|
@@ -7459,7 +7471,7 @@ var PageTravelGroup = ({
|
|
|
7459
7471
|
}
|
|
7460
7472
|
}
|
|
7461
7473
|
) }),
|
|
7462
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0,
|
|
7474
|
+
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7463
7475
|
"p",
|
|
7464
7476
|
{
|
|
7465
7477
|
className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -7474,7 +7486,7 @@ var PageTravelGroup = ({
|
|
|
7474
7486
|
children: index + 1
|
|
7475
7487
|
}
|
|
7476
7488
|
) }, index)),
|
|
7477
|
-
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0,
|
|
7489
|
+
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7478
7490
|
BaseImage_default,
|
|
7479
7491
|
{
|
|
7480
7492
|
size: "small",
|
|
@@ -7492,7 +7504,7 @@ var PageTravelGroup = ({
|
|
|
7492
7504
|
}
|
|
7493
7505
|
}
|
|
7494
7506
|
) }),
|
|
7495
|
-
/* @__PURE__ */ (0,
|
|
7507
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7496
7508
|
"input",
|
|
7497
7509
|
{
|
|
7498
7510
|
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`,
|
|
@@ -7516,14 +7528,14 @@ var PageTravelGroup = ({
|
|
|
7516
7528
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7517
7529
|
|
|
7518
7530
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7519
|
-
var
|
|
7531
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7520
7532
|
var SelectionCheckbox = ({
|
|
7521
7533
|
optionList,
|
|
7522
7534
|
selectedIdList,
|
|
7523
7535
|
handleSelectOnClick,
|
|
7524
7536
|
handleRemoveOnClick
|
|
7525
7537
|
}) => {
|
|
7526
|
-
return /* @__PURE__ */ (0,
|
|
7538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsx)(
|
|
7527
7539
|
"div",
|
|
7528
7540
|
{
|
|
7529
7541
|
className: `${selectedIdList.findIndex(
|
|
@@ -7538,14 +7550,14 @@ var SelectionCheckbox = ({
|
|
|
7538
7550
|
handleRemoveOnClick(option.id);
|
|
7539
7551
|
}
|
|
7540
7552
|
},
|
|
7541
|
-
children: /* @__PURE__ */ (0,
|
|
7553
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
7542
7554
|
"div",
|
|
7543
7555
|
{
|
|
7544
7556
|
className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
|
|
7545
7557
|
(selectedId) => selectedId === option.id
|
|
7546
7558
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
7547
7559
|
children: [
|
|
7548
|
-
/* @__PURE__ */ (0,
|
|
7560
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7549
7561
|
BaseImage_default,
|
|
7550
7562
|
{
|
|
7551
7563
|
src: selectedIdList.findIndex(
|
|
@@ -7555,7 +7567,7 @@ var SelectionCheckbox = ({
|
|
|
7555
7567
|
size: "small"
|
|
7556
7568
|
}
|
|
7557
7569
|
),
|
|
7558
|
-
/* @__PURE__ */ (0,
|
|
7570
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { children: option.text }) })
|
|
7559
7571
|
]
|
|
7560
7572
|
}
|
|
7561
7573
|
)
|
|
@@ -7566,7 +7578,7 @@ var SelectionCheckbox = ({
|
|
|
7566
7578
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7567
7579
|
|
|
7568
7580
|
// src/components/tabs/SelectionTab.tsx
|
|
7569
|
-
var
|
|
7581
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7570
7582
|
var SelectionTab = ({
|
|
7571
7583
|
optionList,
|
|
7572
7584
|
selectedId,
|
|
@@ -7576,7 +7588,7 @@ var SelectionTab = ({
|
|
|
7576
7588
|
textColor,
|
|
7577
7589
|
borderColor
|
|
7578
7590
|
}) => {
|
|
7579
|
-
return /* @__PURE__ */ (0,
|
|
7591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.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_runtime55.jsxs)(
|
|
7580
7592
|
"div",
|
|
7581
7593
|
{
|
|
7582
7594
|
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`,
|
|
@@ -7584,8 +7596,8 @@ var SelectionTab = ({
|
|
|
7584
7596
|
handleSelectOnClick(option.id);
|
|
7585
7597
|
},
|
|
7586
7598
|
children: [
|
|
7587
|
-
/* @__PURE__ */ (0,
|
|
7588
|
-
option.subTitle ? /* @__PURE__ */ (0,
|
|
7599
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-lg", children: option.title }),
|
|
7600
|
+
option.subTitle ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-md", children: option.subTitle }) : null
|
|
7589
7601
|
]
|
|
7590
7602
|
},
|
|
7591
7603
|
index
|
|
@@ -7594,20 +7606,20 @@ var SelectionTab = ({
|
|
|
7594
7606
|
var SelectionTab_default = SelectionTab;
|
|
7595
7607
|
|
|
7596
7608
|
// src/components/tabs/SelectionTabFill.tsx
|
|
7597
|
-
var
|
|
7609
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
7598
7610
|
var SelectionTabFill = ({
|
|
7599
7611
|
optionList,
|
|
7600
7612
|
selectedId,
|
|
7601
7613
|
handleSelectOnClick
|
|
7602
7614
|
}) => {
|
|
7603
|
-
return /* @__PURE__ */ (0,
|
|
7615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.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_runtime56.jsx)(
|
|
7604
7616
|
"div",
|
|
7605
7617
|
{
|
|
7606
7618
|
className: "cursor-pointer",
|
|
7607
7619
|
onClick: () => {
|
|
7608
7620
|
handleSelectOnClick(option.id);
|
|
7609
7621
|
},
|
|
7610
|
-
children: /* @__PURE__ */ (0,
|
|
7622
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
7611
7623
|
"p",
|
|
7612
7624
|
{
|
|
7613
7625
|
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`,
|
|
@@ -7621,34 +7633,34 @@ var SelectionTabFill = ({
|
|
|
7621
7633
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7622
7634
|
|
|
7623
7635
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
7624
|
-
var
|
|
7636
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
7625
7637
|
var ActivityTemplateLabel = ({
|
|
7626
7638
|
title,
|
|
7627
7639
|
icon,
|
|
7628
7640
|
font
|
|
7629
7641
|
}) => {
|
|
7630
|
-
return /* @__PURE__ */ (0,
|
|
7631
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7632
|
-
/* @__PURE__ */ (0,
|
|
7642
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7643
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7644
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7633
7645
|
] }) });
|
|
7634
7646
|
};
|
|
7635
7647
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
7636
7648
|
|
|
7637
7649
|
// src/components/labels/BrandLabel.tsx
|
|
7638
|
-
var
|
|
7650
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
7639
7651
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7640
|
-
return /* @__PURE__ */ (0,
|
|
7641
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7642
|
-
/* @__PURE__ */ (0,
|
|
7652
|
+
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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7653
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7654
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7643
7655
|
] }) });
|
|
7644
7656
|
};
|
|
7645
7657
|
var BrandLabel_default = BrandLabel;
|
|
7646
7658
|
|
|
7647
7659
|
// src/components/labels/CategoryLabel.tsx
|
|
7648
|
-
var
|
|
7660
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7649
7661
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7650
|
-
return /* @__PURE__ */ (0,
|
|
7651
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7662
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7663
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
7652
7664
|
BaseImage_default,
|
|
7653
7665
|
{
|
|
7654
7666
|
src: "/icons/category-label.webp",
|
|
@@ -7656,40 +7668,40 @@ var CategoryLabel = ({ title, icon, font }) => {
|
|
|
7656
7668
|
size: "xsmall"
|
|
7657
7669
|
}
|
|
7658
7670
|
),
|
|
7659
|
-
/* @__PURE__ */ (0,
|
|
7671
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7660
7672
|
] }) });
|
|
7661
7673
|
};
|
|
7662
7674
|
var CategoryLabel_default = CategoryLabel;
|
|
7663
7675
|
|
|
7664
7676
|
// src/components/labels/CoterieLabel.tsx
|
|
7665
|
-
var
|
|
7677
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7666
7678
|
var CoterieLabel = ({ title, font }) => {
|
|
7667
|
-
return /* @__PURE__ */ (0,
|
|
7679
|
+
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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7668
7680
|
};
|
|
7669
7681
|
var CoterieLabel_default = CoterieLabel;
|
|
7670
7682
|
|
|
7671
7683
|
// src/components/labels/GradeLabel.tsx
|
|
7672
|
-
var
|
|
7684
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7673
7685
|
var GradeLabel = ({ title, font }) => {
|
|
7674
|
-
return /* @__PURE__ */ (0,
|
|
7686
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7675
7687
|
};
|
|
7676
7688
|
var GradeLabel_default = GradeLabel;
|
|
7677
7689
|
|
|
7678
7690
|
// src/components/labels/OutcomeLabel.tsx
|
|
7679
|
-
var
|
|
7691
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7680
7692
|
var OutcomeLabel = ({ title, font }) => {
|
|
7681
|
-
return /* @__PURE__ */ (0,
|
|
7682
|
-
/* @__PURE__ */ (0,
|
|
7683
|
-
/* @__PURE__ */ (0,
|
|
7693
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7694
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7695
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7684
7696
|
] }) });
|
|
7685
7697
|
};
|
|
7686
7698
|
var OutcomeLabel_default = OutcomeLabel;
|
|
7687
7699
|
|
|
7688
7700
|
// src/components/labels/PersonalLabel.tsx
|
|
7689
|
-
var
|
|
7701
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7690
7702
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7691
|
-
return /* @__PURE__ */ (0,
|
|
7692
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7703
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7704
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
7693
7705
|
BaseImage_default,
|
|
7694
7706
|
{
|
|
7695
7707
|
src: "/icons/personal-label.webp",
|
|
@@ -7697,16 +7709,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
7697
7709
|
size: "xsmall"
|
|
7698
7710
|
}
|
|
7699
7711
|
),
|
|
7700
|
-
/* @__PURE__ */ (0,
|
|
7712
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7701
7713
|
] }) });
|
|
7702
7714
|
};
|
|
7703
7715
|
var PersonalLabel_default = PersonalLabel;
|
|
7704
7716
|
|
|
7705
7717
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7706
|
-
var
|
|
7718
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7707
7719
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7708
|
-
return /* @__PURE__ */ (0,
|
|
7709
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7720
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7721
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
7710
7722
|
BaseImage_default,
|
|
7711
7723
|
{
|
|
7712
7724
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -7714,79 +7726,79 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
7714
7726
|
size: "xsmall"
|
|
7715
7727
|
}
|
|
7716
7728
|
),
|
|
7717
|
-
/* @__PURE__ */ (0,
|
|
7729
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7718
7730
|
] }) });
|
|
7719
7731
|
};
|
|
7720
7732
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
7721
7733
|
|
|
7722
7734
|
// src/components/labels/ActivityLabel.tsx
|
|
7723
|
-
var
|
|
7735
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7724
7736
|
var ActivityLabel = ({ title, font }) => {
|
|
7725
|
-
return /* @__PURE__ */ (0,
|
|
7737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.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 m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7726
7738
|
};
|
|
7727
7739
|
var ActivityLabel_default = ActivityLabel;
|
|
7728
7740
|
|
|
7729
7741
|
// src/components/infos/InfoWithText.tsx
|
|
7730
|
-
var
|
|
7742
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7731
7743
|
var InfoWithText = (props) => {
|
|
7732
7744
|
const { value } = props;
|
|
7733
|
-
return /* @__PURE__ */ (0,
|
|
7734
|
-
/* @__PURE__ */ (0,
|
|
7735
|
-
/* @__PURE__ */ (0,
|
|
7745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7746
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7747
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "", children: value }) })
|
|
7736
7748
|
] });
|
|
7737
7749
|
};
|
|
7738
7750
|
var InfoWithText_default = InfoWithText;
|
|
7739
7751
|
|
|
7740
7752
|
// src/components/texts/InputWithSpecialExpression.tsx
|
|
7741
7753
|
var import_react_katex12 = require("react-katex");
|
|
7742
|
-
var
|
|
7754
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7743
7755
|
var InputWithSpecialExpression = ({
|
|
7744
7756
|
value,
|
|
7745
7757
|
showSpecialOnly
|
|
7746
7758
|
}) => {
|
|
7747
7759
|
const inputWithSpecialExpressionList = constructInputWithSpecialExpressionList(value);
|
|
7748
|
-
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ (0,
|
|
7760
|
+
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7749
7761
|
"span",
|
|
7750
7762
|
{
|
|
7751
7763
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7752
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
7764
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-lg", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }, index) }) : inputPart.value
|
|
7753
7765
|
}
|
|
7754
|
-
)) }) }) : null : /* @__PURE__ */ (0,
|
|
7766
|
+
)) }) }) : null : /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
7755
7767
|
"span",
|
|
7756
7768
|
{
|
|
7757
7769
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7758
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
7770
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("span", { className: "text-lg", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }, index) }) : inputPart.value
|
|
7759
7771
|
}
|
|
7760
7772
|
)) }) });
|
|
7761
7773
|
};
|
|
7762
7774
|
var InputWithSpecialExpression_default = InputWithSpecialExpression;
|
|
7763
7775
|
|
|
7764
7776
|
// src/components/titles/BaseTitle.tsx
|
|
7765
|
-
var
|
|
7777
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
7766
7778
|
var BaseTitle = ({
|
|
7767
7779
|
title,
|
|
7768
7780
|
totalItemCount,
|
|
7769
7781
|
itemName,
|
|
7770
7782
|
description
|
|
7771
7783
|
}) => {
|
|
7772
|
-
return /* @__PURE__ */ (0,
|
|
7773
|
-
/* @__PURE__ */ (0,
|
|
7784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
|
|
7785
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("p", { className: "text-2xl font-medium", children: [
|
|
7774
7786
|
title,
|
|
7775
|
-
totalItemCount && itemName ? /* @__PURE__ */ (0,
|
|
7787
|
+
totalItemCount && itemName ? /* @__PURE__ */ (0, import_jsx_runtime68.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: [
|
|
7776
7788
|
totalItemCount,
|
|
7777
7789
|
" ",
|
|
7778
7790
|
itemName
|
|
7779
7791
|
] }) : null
|
|
7780
7792
|
] }),
|
|
7781
|
-
description ? /* @__PURE__ */ (0,
|
|
7793
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "", children: description }) : null
|
|
7782
7794
|
] });
|
|
7783
7795
|
};
|
|
7784
7796
|
var BaseTitle_default = BaseTitle;
|
|
7785
7797
|
|
|
7786
7798
|
// src/components/titles/SubTitle.tsx
|
|
7787
|
-
var
|
|
7799
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7788
7800
|
var SubTitle = ({ title }) => {
|
|
7789
|
-
return /* @__PURE__ */ (0,
|
|
7801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7790
7802
|
};
|
|
7791
7803
|
var SubTitle_default = SubTitle;
|
|
7792
7804
|
|
|
@@ -10427,6 +10439,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10427
10439
|
ActivitySolutionContent,
|
|
10428
10440
|
ActivityTemplateLabel,
|
|
10429
10441
|
ApproveButton,
|
|
10442
|
+
BaseCard,
|
|
10430
10443
|
BaseImage,
|
|
10431
10444
|
BaseLoading,
|
|
10432
10445
|
BaseLoadingWithText,
|