catchup-library-web 1.4.13 → 1.4.15
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +434 -425
- package/dist/index.mjs +380 -372
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/utilization/PlanUtilization.ts +22 -22
package/dist/index.mjs
CHANGED
|
@@ -799,6 +799,13 @@ var BaseModal = ({
|
|
|
799
799
|
};
|
|
800
800
|
var BaseModal_default = BaseModal;
|
|
801
801
|
|
|
802
|
+
// src/components/activities/empty-content/ActivityEmptyContent.tsx
|
|
803
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
804
|
+
var ActivityEmptyContent = () => {
|
|
805
|
+
return /* @__PURE__ */ jsx11("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__ */ jsx11("div", { className: "", children: /* @__PURE__ */ jsx11("p", { className: "text-catchup-white text-xl", children: i18n_default.t("you_have_set_this_activity_as_empty") }) }) });
|
|
806
|
+
};
|
|
807
|
+
var ActivityEmptyContent_default = ActivityEmptyContent;
|
|
808
|
+
|
|
802
809
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
803
810
|
import { useState as useState9 } from "react";
|
|
804
811
|
import Modal2 from "react-modal";
|
|
@@ -2864,7 +2871,7 @@ var constructActivityItemListSolutionOnly = (solutionMap) => {
|
|
|
2864
2871
|
|
|
2865
2872
|
// src/components/activities/body-content/ShowBodyMediaByContentType.tsx
|
|
2866
2873
|
import { InlineMath } from "react-katex";
|
|
2867
|
-
import { jsx as
|
|
2874
|
+
import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2868
2875
|
var ShowBodyMediaByContentType = ({
|
|
2869
2876
|
index,
|
|
2870
2877
|
type,
|
|
@@ -2906,16 +2913,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
2906
2913
|
addition += 1;
|
|
2907
2914
|
}
|
|
2908
2915
|
valuePartList.push(
|
|
2909
|
-
/* @__PURE__ */
|
|
2916
|
+
/* @__PURE__ */ jsx12(
|
|
2910
2917
|
"span",
|
|
2911
2918
|
{
|
|
2912
2919
|
className: "text-xl whitespace-pre-wrap",
|
|
2913
2920
|
children: constructInputWithSpecialExpressionList(textValue).map(
|
|
2914
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
2921
|
+
(inputPart, index2) => /* @__PURE__ */ jsx12(
|
|
2915
2922
|
"span",
|
|
2916
2923
|
{
|
|
2917
2924
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
2918
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
2925
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx12("span", { className: "text-2xl", children: /* @__PURE__ */ jsx12(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
2919
2926
|
},
|
|
2920
2927
|
index2
|
|
2921
2928
|
)
|
|
@@ -2929,17 +2936,17 @@ var ShowBodyMediaByContentType = ({
|
|
|
2929
2936
|
const secondIndex = subValue.indexOf(checkText) + checkText.length + textValue.length - addition;
|
|
2930
2937
|
currentIndex++;
|
|
2931
2938
|
valuePartList.push(
|
|
2932
|
-
/* @__PURE__ */
|
|
2939
|
+
/* @__PURE__ */ jsx12(
|
|
2933
2940
|
"span",
|
|
2934
2941
|
{
|
|
2935
2942
|
className: `text-xl font-bold whitespace-pre-wrap`,
|
|
2936
2943
|
children: constructInputWithSpecialExpressionList(
|
|
2937
2944
|
copyValue.substring(firstIndex + checkText.length, secondIndex)
|
|
2938
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
2945
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx12(
|
|
2939
2946
|
"span",
|
|
2940
2947
|
{
|
|
2941
2948
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
2942
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
2949
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx12("span", { className: "text-2xl", children: /* @__PURE__ */ jsx12(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
2943
2950
|
},
|
|
2944
2951
|
index2
|
|
2945
2952
|
))
|
|
@@ -2959,7 +2966,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2959
2966
|
if (textValue.trim() !== "") {
|
|
2960
2967
|
currentIndex++;
|
|
2961
2968
|
valuePartList.push(
|
|
2962
|
-
/* @__PURE__ */
|
|
2969
|
+
/* @__PURE__ */ jsx12("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
|
|
2963
2970
|
);
|
|
2964
2971
|
}
|
|
2965
2972
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -2971,7 +2978,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2971
2978
|
currentIndex++;
|
|
2972
2979
|
valuePartList.push(
|
|
2973
2980
|
/* @__PURE__ */ jsxs8("div", { className: "relative w-[200px]", children: [
|
|
2974
|
-
/* @__PURE__ */
|
|
2981
|
+
/* @__PURE__ */ jsx12(
|
|
2975
2982
|
BaseImage_default,
|
|
2976
2983
|
{
|
|
2977
2984
|
src: imageSource,
|
|
@@ -2980,7 +2987,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2980
2987
|
className: "rounded-catchup-xlarge"
|
|
2981
2988
|
}
|
|
2982
2989
|
),
|
|
2983
|
-
/* @__PURE__ */
|
|
2990
|
+
/* @__PURE__ */ jsx12(
|
|
2984
2991
|
"div",
|
|
2985
2992
|
{
|
|
2986
2993
|
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",
|
|
@@ -2988,7 +2995,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
2988
2995
|
setShowFullScreen(true);
|
|
2989
2996
|
setSelectedFullScreenItem(imageSource);
|
|
2990
2997
|
},
|
|
2991
|
-
children: /* @__PURE__ */
|
|
2998
|
+
children: /* @__PURE__ */ jsx12(
|
|
2992
2999
|
BaseImage_default,
|
|
2993
3000
|
{
|
|
2994
3001
|
src: "/icons/arrow-up.webp",
|
|
@@ -3010,7 +3017,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3010
3017
|
if (textValue.trim() !== "") {
|
|
3011
3018
|
currentIndex++;
|
|
3012
3019
|
valuePartList.push(
|
|
3013
|
-
/* @__PURE__ */
|
|
3020
|
+
/* @__PURE__ */ jsx12("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
|
|
3014
3021
|
);
|
|
3015
3022
|
}
|
|
3016
3023
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -3021,7 +3028,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3021
3028
|
);
|
|
3022
3029
|
currentIndex++;
|
|
3023
3030
|
valuePartList.push(
|
|
3024
|
-
/* @__PURE__ */
|
|
3031
|
+
/* @__PURE__ */ jsx12(
|
|
3025
3032
|
"video",
|
|
3026
3033
|
{
|
|
3027
3034
|
src: videoSource,
|
|
@@ -3039,7 +3046,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3039
3046
|
if (textValue.trim() !== "") {
|
|
3040
3047
|
currentIndex++;
|
|
3041
3048
|
valuePartList.push(
|
|
3042
|
-
/* @__PURE__ */
|
|
3049
|
+
/* @__PURE__ */ jsx12("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
|
|
3043
3050
|
);
|
|
3044
3051
|
}
|
|
3045
3052
|
const subValue = copyValue.substring(firstIndex + checkText.length);
|
|
@@ -3050,7 +3057,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3050
3057
|
);
|
|
3051
3058
|
currentIndex++;
|
|
3052
3059
|
valuePartList.push(
|
|
3053
|
-
/* @__PURE__ */
|
|
3060
|
+
/* @__PURE__ */ jsx12(
|
|
3054
3061
|
"audio",
|
|
3055
3062
|
{
|
|
3056
3063
|
src: audioSource,
|
|
@@ -3077,8 +3084,8 @@ var ShowBodyMediaByContentType = ({
|
|
|
3077
3084
|
const imageText = regexMatchImageText[1];
|
|
3078
3085
|
valuePartList.push(
|
|
3079
3086
|
/* @__PURE__ */ jsxs8("div", { className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2", children: [
|
|
3080
|
-
/* @__PURE__ */
|
|
3081
|
-
/* @__PURE__ */
|
|
3087
|
+
/* @__PURE__ */ jsx12("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ jsx12("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
|
|
3088
|
+
/* @__PURE__ */ jsx12(
|
|
3082
3089
|
"span",
|
|
3083
3090
|
{
|
|
3084
3091
|
className: "text-xl whitespace-pre-wrap ",
|
|
@@ -3090,16 +3097,16 @@ var ShowBodyMediaByContentType = ({
|
|
|
3090
3097
|
);
|
|
3091
3098
|
} else {
|
|
3092
3099
|
valuePartList.push(
|
|
3093
|
-
/* @__PURE__ */
|
|
3100
|
+
/* @__PURE__ */ jsx12(
|
|
3094
3101
|
"span",
|
|
3095
3102
|
{
|
|
3096
3103
|
className: "text-xl whitespace-pre-wrap",
|
|
3097
3104
|
children: constructInputWithSpecialExpressionList(copyValue).map(
|
|
3098
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
3105
|
+
(inputPart, index2) => /* @__PURE__ */ jsx12(
|
|
3099
3106
|
"span",
|
|
3100
3107
|
{
|
|
3101
3108
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3102
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
3109
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx12("span", { className: "text-2xl", children: /* @__PURE__ */ jsx12(InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
3103
3110
|
},
|
|
3104
3111
|
index2
|
|
3105
3112
|
)
|
|
@@ -3113,7 +3120,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3113
3120
|
return valuePartList;
|
|
3114
3121
|
};
|
|
3115
3122
|
const RenderShowFullScreenItem = () => {
|
|
3116
|
-
return /* @__PURE__ */
|
|
3123
|
+
return /* @__PURE__ */ jsx12(
|
|
3117
3124
|
Modal2,
|
|
3118
3125
|
{
|
|
3119
3126
|
isOpen: showFullScreen,
|
|
@@ -3145,7 +3152,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3145
3152
|
},
|
|
3146
3153
|
contentLabel: "",
|
|
3147
3154
|
children: /* @__PURE__ */ jsxs8("div", { className: "flex-1 flex flex-col", children: [
|
|
3148
|
-
/* @__PURE__ */
|
|
3155
|
+
/* @__PURE__ */ jsx12("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx12(
|
|
3149
3156
|
BaseImage_default,
|
|
3150
3157
|
{
|
|
3151
3158
|
src: "/icons/cross-red.webp",
|
|
@@ -3157,7 +3164,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3157
3164
|
}
|
|
3158
3165
|
}
|
|
3159
3166
|
) }),
|
|
3160
|
-
/* @__PURE__ */
|
|
3167
|
+
/* @__PURE__ */ jsx12("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ jsx12(
|
|
3161
3168
|
BaseImage_default,
|
|
3162
3169
|
{
|
|
3163
3170
|
src: selectedFullScreenItem,
|
|
@@ -3172,14 +3179,14 @@ var ShowBodyMediaByContentType = ({
|
|
|
3172
3179
|
};
|
|
3173
3180
|
const RenderMainContent = () => {
|
|
3174
3181
|
if (type === "TEXT") {
|
|
3175
|
-
return /* @__PURE__ */
|
|
3182
|
+
return /* @__PURE__ */ jsx12("div", { className: "mb-3 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ jsx12("span", { children: retrieveValueParts(value) }) });
|
|
3176
3183
|
} else if (type === "IMAGE") {
|
|
3177
|
-
return /* @__PURE__ */
|
|
3184
|
+
return /* @__PURE__ */ jsx12("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs8(
|
|
3178
3185
|
"div",
|
|
3179
3186
|
{
|
|
3180
3187
|
className: `${size ? `${convertToPercentage(size)}` : ""} rounded-catchup-xlarge relative`,
|
|
3181
3188
|
children: [
|
|
3182
|
-
/* @__PURE__ */
|
|
3189
|
+
/* @__PURE__ */ jsx12(
|
|
3183
3190
|
BaseImage_default,
|
|
3184
3191
|
{
|
|
3185
3192
|
src: value,
|
|
@@ -3188,7 +3195,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3188
3195
|
className: "w-full rounded-catchup-xlarge"
|
|
3189
3196
|
}
|
|
3190
3197
|
),
|
|
3191
|
-
/* @__PURE__ */
|
|
3198
|
+
/* @__PURE__ */ jsx12(
|
|
3192
3199
|
"div",
|
|
3193
3200
|
{
|
|
3194
3201
|
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",
|
|
@@ -3196,7 +3203,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3196
3203
|
setShowFullScreen(true);
|
|
3197
3204
|
setSelectedFullScreenItem(value);
|
|
3198
3205
|
},
|
|
3199
|
-
children: /* @__PURE__ */
|
|
3206
|
+
children: /* @__PURE__ */ jsx12(
|
|
3200
3207
|
BaseImage_default,
|
|
3201
3208
|
{
|
|
3202
3209
|
src: "/icons/arrow-up.webp",
|
|
@@ -3211,7 +3218,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3211
3218
|
}
|
|
3212
3219
|
) });
|
|
3213
3220
|
} else if (type === "VIDEO") {
|
|
3214
|
-
return /* @__PURE__ */
|
|
3221
|
+
return /* @__PURE__ */ jsx12("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ jsx12(
|
|
3215
3222
|
"video",
|
|
3216
3223
|
{
|
|
3217
3224
|
src: value,
|
|
@@ -3220,7 +3227,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3220
3227
|
}
|
|
3221
3228
|
) });
|
|
3222
3229
|
} else if (type === "AUDIO") {
|
|
3223
|
-
return /* @__PURE__ */
|
|
3230
|
+
return /* @__PURE__ */ jsx12("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ jsx12("audio", { src: value, controls: true, className: `rounded-catchup-xlarge` }) });
|
|
3224
3231
|
}
|
|
3225
3232
|
};
|
|
3226
3233
|
return /* @__PURE__ */ jsxs8("div", { className: "w-full", children: [
|
|
@@ -3231,7 +3238,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3231
3238
|
var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
|
|
3232
3239
|
|
|
3233
3240
|
// src/components/activities/body-content/ActivityBodyContent.tsx
|
|
3234
|
-
import { jsx as
|
|
3241
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
3235
3242
|
var ActivityBodyContent = ({
|
|
3236
3243
|
templateType,
|
|
3237
3244
|
bodyMap,
|
|
@@ -3239,7 +3246,7 @@ var ActivityBodyContent = ({
|
|
|
3239
3246
|
answerMap
|
|
3240
3247
|
}) => {
|
|
3241
3248
|
let currentQQIndex = 0;
|
|
3242
|
-
return /* @__PURE__ */
|
|
3249
|
+
return /* @__PURE__ */ jsx13("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
|
|
3243
3250
|
const body = JSON.parse(bodyMap[key]);
|
|
3244
3251
|
if (templateType === "DROPDOWN") {
|
|
3245
3252
|
while (body.value.includes("@@")) {
|
|
@@ -3316,7 +3323,7 @@ var ActivityBodyContent = ({
|
|
|
3316
3323
|
currentQQIndex++;
|
|
3317
3324
|
}
|
|
3318
3325
|
}
|
|
3319
|
-
return /* @__PURE__ */
|
|
3326
|
+
return /* @__PURE__ */ jsx13(
|
|
3320
3327
|
ShowBodyMediaByContentType_default,
|
|
3321
3328
|
{
|
|
3322
3329
|
index,
|
|
@@ -3330,16 +3337,16 @@ var ActivityBodyContent = ({
|
|
|
3330
3337
|
var ActivityBodyContent_default = ActivityBodyContent;
|
|
3331
3338
|
|
|
3332
3339
|
// src/components/dividers/DividerLine.tsx
|
|
3333
|
-
import { jsx as
|
|
3340
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
3334
3341
|
var DividerLine = () => {
|
|
3335
|
-
return /* @__PURE__ */
|
|
3342
|
+
return /* @__PURE__ */ jsx14("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
|
|
3336
3343
|
};
|
|
3337
3344
|
var DividerLine_default = DividerLine;
|
|
3338
3345
|
|
|
3339
3346
|
// src/components/dividers/VerticalDividerLine.tsx
|
|
3340
|
-
import { jsx as
|
|
3347
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
3341
3348
|
var VerticalDividerLine = () => {
|
|
3342
|
-
return /* @__PURE__ */
|
|
3349
|
+
return /* @__PURE__ */ jsx15("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
|
|
3343
3350
|
};
|
|
3344
3351
|
var VerticalDividerLine_default = VerticalDividerLine;
|
|
3345
3352
|
|
|
@@ -3349,7 +3356,7 @@ import { InlineMath as InlineMath2 } from "react-katex";
|
|
|
3349
3356
|
// src/components/groups/InputGroup.tsx
|
|
3350
3357
|
import Select from "react-select";
|
|
3351
3358
|
import { useEffect as useEffect2, useRef } from "react";
|
|
3352
|
-
import { jsx as
|
|
3359
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3353
3360
|
var InputGroup = ({
|
|
3354
3361
|
type,
|
|
3355
3362
|
title,
|
|
@@ -3413,7 +3420,7 @@ var InputGroup = ({
|
|
|
3413
3420
|
className: "flex flex-row items-center gap-x-1 cursor-pointer",
|
|
3414
3421
|
onClick,
|
|
3415
3422
|
children: [
|
|
3416
|
-
/* @__PURE__ */
|
|
3423
|
+
/* @__PURE__ */ jsx16(
|
|
3417
3424
|
BaseImage_default,
|
|
3418
3425
|
{
|
|
3419
3426
|
src: value ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -3423,15 +3430,15 @@ var InputGroup = ({
|
|
|
3423
3430
|
}
|
|
3424
3431
|
}
|
|
3425
3432
|
),
|
|
3426
|
-
/* @__PURE__ */
|
|
3433
|
+
/* @__PURE__ */ jsx16("p", { className: "", children: title })
|
|
3427
3434
|
]
|
|
3428
3435
|
}
|
|
3429
3436
|
);
|
|
3430
3437
|
};
|
|
3431
3438
|
const FileInputGroup = () => {
|
|
3432
3439
|
return /* @__PURE__ */ jsxs9("div", { className: "my-1", children: [
|
|
3433
|
-
title ? /* @__PURE__ */
|
|
3434
|
-
/* @__PURE__ */
|
|
3440
|
+
title ? /* @__PURE__ */ jsx16("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
3441
|
+
/* @__PURE__ */ jsx16(
|
|
3435
3442
|
"input",
|
|
3436
3443
|
{
|
|
3437
3444
|
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",
|
|
@@ -3449,8 +3456,8 @@ var InputGroup = ({
|
|
|
3449
3456
|
};
|
|
3450
3457
|
const DateInputGroup = () => {
|
|
3451
3458
|
return /* @__PURE__ */ jsxs9("div", { className: "my-1", children: [
|
|
3452
|
-
title ? /* @__PURE__ */
|
|
3453
|
-
/* @__PURE__ */
|
|
3459
|
+
title ? /* @__PURE__ */ jsx16("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
3460
|
+
/* @__PURE__ */ jsx16(
|
|
3454
3461
|
"input",
|
|
3455
3462
|
{
|
|
3456
3463
|
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`,
|
|
@@ -3466,8 +3473,8 @@ var InputGroup = ({
|
|
|
3466
3473
|
};
|
|
3467
3474
|
const SearchableSelectInputGroup = () => {
|
|
3468
3475
|
return /* @__PURE__ */ jsxs9("div", { className: "my-1", children: [
|
|
3469
|
-
title ? /* @__PURE__ */
|
|
3470
|
-
/* @__PURE__ */
|
|
3476
|
+
title ? /* @__PURE__ */ jsx16("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400 ", children: title }) : null,
|
|
3477
|
+
/* @__PURE__ */ jsx16(
|
|
3471
3478
|
Select,
|
|
3472
3479
|
{
|
|
3473
3480
|
options: convertOptionListToSelectComponent(
|
|
@@ -3532,14 +3539,14 @@ var InputGroup = ({
|
|
|
3532
3539
|
const TextAreaInputGroup = () => {
|
|
3533
3540
|
return /* @__PURE__ */ jsxs9("div", { className: "my-1 flex-1 flex flex-col relative", children: [
|
|
3534
3541
|
/* @__PURE__ */ jsxs9("div", { className: "flex flex-row justify-between items-center", children: [
|
|
3535
|
-
/* @__PURE__ */
|
|
3536
|
-
/* @__PURE__ */
|
|
3542
|
+
/* @__PURE__ */ jsx16("div", { children: title ? /* @__PURE__ */ jsx16("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
|
|
3543
|
+
/* @__PURE__ */ jsx16("div", { children: value && limit ? /* @__PURE__ */ jsxs9("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
|
|
3537
3544
|
value.length,
|
|
3538
3545
|
" / ",
|
|
3539
3546
|
limit
|
|
3540
3547
|
] }) : null })
|
|
3541
3548
|
] }),
|
|
3542
|
-
/* @__PURE__ */
|
|
3549
|
+
/* @__PURE__ */ jsx16(
|
|
3543
3550
|
"textarea",
|
|
3544
3551
|
{
|
|
3545
3552
|
ref: textAreaRef,
|
|
@@ -3559,8 +3566,8 @@ var InputGroup = ({
|
|
|
3559
3566
|
};
|
|
3560
3567
|
const TextInputGroup = () => {
|
|
3561
3568
|
return /* @__PURE__ */ jsxs9("div", { className: "my-1 relative", children: [
|
|
3562
|
-
title ? /* @__PURE__ */
|
|
3563
|
-
/* @__PURE__ */
|
|
3569
|
+
title ? /* @__PURE__ */ jsx16("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
3570
|
+
/* @__PURE__ */ jsx16(
|
|
3564
3571
|
"input",
|
|
3565
3572
|
{
|
|
3566
3573
|
disabled,
|
|
@@ -3700,7 +3707,7 @@ var getColorByIndex = (index) => {
|
|
|
3700
3707
|
|
|
3701
3708
|
// src/components/dropdowns/MediaDropdown.tsx
|
|
3702
3709
|
import { useState as useState10 } from "react";
|
|
3703
|
-
import { jsx as
|
|
3710
|
+
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3704
3711
|
var MediaDropdown = ({ id, answer, optionList }) => {
|
|
3705
3712
|
const [showDropdown, setShowDropdown] = useState10(false);
|
|
3706
3713
|
return /* @__PURE__ */ jsxs10(
|
|
@@ -3714,8 +3721,8 @@ var MediaDropdown = ({ id, answer, optionList }) => {
|
|
|
3714
3721
|
setShowDropdown(false);
|
|
3715
3722
|
},
|
|
3716
3723
|
children: [
|
|
3717
|
-
/* @__PURE__ */
|
|
3718
|
-
/* @__PURE__ */
|
|
3724
|
+
/* @__PURE__ */ jsx17("div", { className: "w-full flex flex-col items-center justify-center", children: answer }),
|
|
3725
|
+
/* @__PURE__ */ jsx17(
|
|
3719
3726
|
"ul",
|
|
3720
3727
|
{
|
|
3721
3728
|
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`,
|
|
@@ -3724,7 +3731,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
|
|
|
3724
3731
|
{
|
|
3725
3732
|
className: `${option.listItemClassNames ? option.listItemClassNames : ""}`,
|
|
3726
3733
|
children: [
|
|
3727
|
-
/* @__PURE__ */
|
|
3734
|
+
/* @__PURE__ */ jsx17(
|
|
3728
3735
|
"div",
|
|
3729
3736
|
{
|
|
3730
3737
|
className: `w-full flex flex-col my-2 ${option.divClassNames ? option.divClassNames : ""}`,
|
|
@@ -3732,7 +3739,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
|
|
|
3732
3739
|
children: option.media
|
|
3733
3740
|
}
|
|
3734
3741
|
),
|
|
3735
|
-
index !== optionList.length - 1 ? /* @__PURE__ */
|
|
3742
|
+
index !== optionList.length - 1 ? /* @__PURE__ */ jsx17("div", { className: "w-full border my-1 border-catchup-light-blue rounded-catchup-full" }) : null
|
|
3736
3743
|
]
|
|
3737
3744
|
},
|
|
3738
3745
|
option.id
|
|
@@ -3749,7 +3756,7 @@ var MediaDropdown_default = MediaDropdown;
|
|
|
3749
3756
|
// src/components/activities/material-content/ShowMaterialMediaByContentType.tsx
|
|
3750
3757
|
import { useEffect as useEffect3, useRef as useRef2, useState as useState11 } from "react";
|
|
3751
3758
|
import Modal3 from "react-modal";
|
|
3752
|
-
import { jsx as
|
|
3759
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3753
3760
|
var ShowMaterialMediaByContentType = ({
|
|
3754
3761
|
key,
|
|
3755
3762
|
contentType,
|
|
@@ -3777,7 +3784,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3777
3784
|
}
|
|
3778
3785
|
}, [isLoaded, key]);
|
|
3779
3786
|
const RenderShowFullScreenItem = () => {
|
|
3780
|
-
return /* @__PURE__ */
|
|
3787
|
+
return /* @__PURE__ */ jsx18(
|
|
3781
3788
|
Modal3,
|
|
3782
3789
|
{
|
|
3783
3790
|
isOpen: showFullScreen,
|
|
@@ -3809,7 +3816,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3809
3816
|
},
|
|
3810
3817
|
contentLabel: "",
|
|
3811
3818
|
children: /* @__PURE__ */ jsxs11("div", { className: "flex-1 flex flex-col", children: [
|
|
3812
|
-
/* @__PURE__ */
|
|
3819
|
+
/* @__PURE__ */ jsx18("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx18(
|
|
3813
3820
|
BaseImage_default,
|
|
3814
3821
|
{
|
|
3815
3822
|
src: "/icons/cross-red.webp",
|
|
@@ -3821,7 +3828,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3821
3828
|
}
|
|
3822
3829
|
}
|
|
3823
3830
|
) }),
|
|
3824
|
-
/* @__PURE__ */
|
|
3831
|
+
/* @__PURE__ */ jsx18("div", { className: "flex items-center justify-center h-[500px]", children: /* @__PURE__ */ jsx18(
|
|
3825
3832
|
BaseImage_default,
|
|
3826
3833
|
{
|
|
3827
3834
|
src: selectedFullScreenItem,
|
|
@@ -3836,12 +3843,12 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3836
3843
|
};
|
|
3837
3844
|
return contentType === "IMAGE" ? /* @__PURE__ */ jsxs11("div", { children: [
|
|
3838
3845
|
RenderShowFullScreenItem(),
|
|
3839
|
-
/* @__PURE__ */
|
|
3846
|
+
/* @__PURE__ */ jsx18("div", { className: "my-2", children: /* @__PURE__ */ jsx18("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ jsxs11(
|
|
3840
3847
|
"div",
|
|
3841
3848
|
{
|
|
3842
3849
|
className: `${isFullHeight ? "h-catchup-activity-box-item" : "max-w-catchup-activity-box-item"} flex flex-col justify-center items-center relative`,
|
|
3843
3850
|
children: [
|
|
3844
|
-
/* @__PURE__ */
|
|
3851
|
+
/* @__PURE__ */ jsx18(
|
|
3845
3852
|
BaseImage_default,
|
|
3846
3853
|
{
|
|
3847
3854
|
src,
|
|
@@ -3854,7 +3861,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3854
3861
|
}
|
|
3855
3862
|
}
|
|
3856
3863
|
),
|
|
3857
|
-
src !== null && src !== "" && src !== "DEFAULT_OPTION" && canFullScreen ? /* @__PURE__ */
|
|
3864
|
+
src !== null && src !== "" && src !== "DEFAULT_OPTION" && canFullScreen ? /* @__PURE__ */ jsx18(
|
|
3858
3865
|
"div",
|
|
3859
3866
|
{
|
|
3860
3867
|
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",
|
|
@@ -3866,7 +3873,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3866
3873
|
setShowFullScreen(true);
|
|
3867
3874
|
setSelectedFullScreenItem(src);
|
|
3868
3875
|
},
|
|
3869
|
-
children: /* @__PURE__ */
|
|
3876
|
+
children: /* @__PURE__ */ jsx18(
|
|
3870
3877
|
BaseImage_default,
|
|
3871
3878
|
{
|
|
3872
3879
|
src: "/icons/arrow-up.webp",
|
|
@@ -3880,7 +3887,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3880
3887
|
]
|
|
3881
3888
|
}
|
|
3882
3889
|
) }) })
|
|
3883
|
-
] }, key) : contentType === "VIDEO" ? /* @__PURE__ */
|
|
3890
|
+
] }, key) : contentType === "VIDEO" ? /* @__PURE__ */ jsx18("div", { className: "my-2", children: /* @__PURE__ */ jsx18("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ jsx18("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ jsx18(
|
|
3884
3891
|
"video",
|
|
3885
3892
|
{
|
|
3886
3893
|
className: "h-catchup-activity-box-item rounded-catchup-xlarge",
|
|
@@ -3889,7 +3896,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3889
3896
|
onClick: () => {
|
|
3890
3897
|
}
|
|
3891
3898
|
}
|
|
3892
|
-
) }) }) }) : contentType === "AUDIO" ? /* @__PURE__ */
|
|
3899
|
+
) }) }) }) : contentType === "AUDIO" ? /* @__PURE__ */ jsx18("div", { className: "my-2", children: /* @__PURE__ */ jsx18("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ jsx18("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ jsx18(
|
|
3893
3900
|
"audio",
|
|
3894
3901
|
{
|
|
3895
3902
|
className: "h-catchup-activity-box-item rounded-catchup-xlarge",
|
|
@@ -3903,7 +3910,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
3903
3910
|
var ShowMaterialMediaByContentType_default = ShowMaterialMediaByContentType;
|
|
3904
3911
|
|
|
3905
3912
|
// src/components/activities/material-content/DropdownActivityMaterialContent.tsx
|
|
3906
|
-
import { jsx as
|
|
3913
|
+
import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3907
3914
|
var DropdownActivityMaterialContent = ({
|
|
3908
3915
|
uniqueValue,
|
|
3909
3916
|
answer,
|
|
@@ -3946,21 +3953,21 @@ var DropdownActivityMaterialContent = ({
|
|
|
3946
3953
|
};
|
|
3947
3954
|
const answerMap = retrieveAnswerMap();
|
|
3948
3955
|
return /* @__PURE__ */ jsxs12("div", { className: "flex flex-row flex-wrap items-center", children: [
|
|
3949
|
-
/* @__PURE__ */
|
|
3950
|
-
/* @__PURE__ */
|
|
3951
|
-
/* @__PURE__ */
|
|
3956
|
+
/* @__PURE__ */ jsx19("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx19("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_dropdown_text") }) }),
|
|
3957
|
+
/* @__PURE__ */ jsx19("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx19(DividerLine_default, {}) }),
|
|
3958
|
+
/* @__PURE__ */ jsx19("div", { className: "w-full flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
|
|
3952
3959
|
const answerKey = Object.keys(materialMap[materialKey])[0];
|
|
3953
3960
|
const learnerAnswerState = checkAnswerState(
|
|
3954
3961
|
answerKey,
|
|
3955
3962
|
answerMap[materialKey]
|
|
3956
3963
|
);
|
|
3957
|
-
return /* @__PURE__ */
|
|
3958
|
-
/* @__PURE__ */
|
|
3964
|
+
return /* @__PURE__ */ jsx19("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ jsx19("div", { className: "mx-2", children: /* @__PURE__ */ jsxs12("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
|
|
3965
|
+
/* @__PURE__ */ jsx19("div", { className: "my-auto", children: /* @__PURE__ */ jsxs12("p", { className: "text-xl", children: [
|
|
3959
3966
|
parseFloat(materialKey) + 1,
|
|
3960
3967
|
"."
|
|
3961
3968
|
] }) }),
|
|
3962
3969
|
/* @__PURE__ */ jsxs12("div", { className: "w-full relative", children: [
|
|
3963
|
-
/* @__PURE__ */
|
|
3970
|
+
/* @__PURE__ */ jsx19("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsx19("div", { className: "flex-1", children: /* @__PURE__ */ jsx19(
|
|
3964
3971
|
InputGroup_default,
|
|
3965
3972
|
{
|
|
3966
3973
|
type: "select",
|
|
@@ -3968,13 +3975,13 @@ var DropdownActivityMaterialContent = ({
|
|
|
3968
3975
|
optionList: shuffleArray(
|
|
3969
3976
|
materialMap[materialKey][answerKey]
|
|
3970
3977
|
).map((materialOption) => ({
|
|
3971
|
-
text: /* @__PURE__ */
|
|
3978
|
+
text: /* @__PURE__ */ jsx19("span", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
3972
3979
|
materialOption
|
|
3973
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
3980
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx19(
|
|
3974
3981
|
"span",
|
|
3975
3982
|
{
|
|
3976
3983
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
3977
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
3984
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx19("span", { className: "text-2xl", children: /* @__PURE__ */ jsx19(
|
|
3978
3985
|
InlineMath2,
|
|
3979
3986
|
{
|
|
3980
3987
|
math: inputPart.value
|
|
@@ -3989,11 +3996,11 @@ var DropdownActivityMaterialContent = ({
|
|
|
3989
3996
|
onChange(answer, materialKey, e.target.value);
|
|
3990
3997
|
}
|
|
3991
3998
|
}
|
|
3992
|
-
) }) : /* @__PURE__ */
|
|
3999
|
+
) }) : /* @__PURE__ */ jsx19(
|
|
3993
4000
|
MediaDropdown_default,
|
|
3994
4001
|
{
|
|
3995
4002
|
id: materialKey,
|
|
3996
|
-
answer: answerMap[materialKey] === "DEFAULT_OPTION" ? /* @__PURE__ */
|
|
4003
|
+
answer: answerMap[materialKey] === "DEFAULT_OPTION" ? /* @__PURE__ */ jsx19("div", { className: "w-catchup-activity-box-item border h-catchup-activity-box-item rounded-catchup-xlarge border-dashed border-catchup-blue", children: /* @__PURE__ */ jsx19("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ jsx19("span", { className: "italic", children: i18n_default.t("please_select") }) }) }) : /* @__PURE__ */ jsx19(
|
|
3997
4004
|
ShowMaterialMediaByContentType_default,
|
|
3998
4005
|
{
|
|
3999
4006
|
contentType: contentMap.type,
|
|
@@ -4005,7 +4012,7 @@ var DropdownActivityMaterialContent = ({
|
|
|
4005
4012
|
optionList: materialMap[materialKey][answerKey].map(
|
|
4006
4013
|
(materialOption, index2) => ({
|
|
4007
4014
|
id: index2,
|
|
4008
|
-
media: /* @__PURE__ */
|
|
4015
|
+
media: /* @__PURE__ */ jsx19("div", { children: /* @__PURE__ */ jsx19(
|
|
4009
4016
|
ShowMaterialMediaByContentType_default,
|
|
4010
4017
|
{
|
|
4011
4018
|
contentType: contentMap.type,
|
|
@@ -4024,24 +4031,24 @@ var DropdownActivityMaterialContent = ({
|
|
|
4024
4031
|
})
|
|
4025
4032
|
)
|
|
4026
4033
|
}
|
|
4027
|
-
) : /* @__PURE__ */
|
|
4034
|
+
) : /* @__PURE__ */ jsx19("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
4028
4035
|
answerMap[materialKey]
|
|
4029
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
4036
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx19(
|
|
4030
4037
|
"span",
|
|
4031
4038
|
{
|
|
4032
4039
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4033
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
4040
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx19("span", { className: "text-2xl", children: /* @__PURE__ */ jsx19(InlineMath2, { math: inputPart.value }) }) : inputPart.value
|
|
4034
4041
|
},
|
|
4035
4042
|
index2
|
|
4036
4043
|
)) }) }),
|
|
4037
|
-
learnerAnswerState === "CORRECT" ? /* @__PURE__ */
|
|
4044
|
+
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ jsx19("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ jsx19(
|
|
4038
4045
|
BaseImage_default,
|
|
4039
4046
|
{
|
|
4040
4047
|
src: "/icons/checkbox.webp",
|
|
4041
4048
|
alt: "chekbbox",
|
|
4042
4049
|
size: "small"
|
|
4043
4050
|
}
|
|
4044
|
-
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */
|
|
4051
|
+
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ jsx19("div", { className: "absolute -top-2 right-3 bg-catchup-white", children: /* @__PURE__ */ jsx19(
|
|
4045
4052
|
BaseImage_default,
|
|
4046
4053
|
{
|
|
4047
4054
|
src: "/icons/cross-red.webp",
|
|
@@ -4057,7 +4064,7 @@ var DropdownActivityMaterialContent = ({
|
|
|
4057
4064
|
var DropdownActivityMaterialContent_default = DropdownActivityMaterialContent;
|
|
4058
4065
|
|
|
4059
4066
|
// src/components/activities/DropdownActivityContent.tsx
|
|
4060
|
-
import { jsx as
|
|
4067
|
+
import { jsx as jsx20, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4061
4068
|
var DropdownActivityContent = ({
|
|
4062
4069
|
answer,
|
|
4063
4070
|
data,
|
|
@@ -4082,7 +4089,7 @@ var DropdownActivityContent = ({
|
|
|
4082
4089
|
changeAnswer(answer2);
|
|
4083
4090
|
};
|
|
4084
4091
|
return /* @__PURE__ */ jsxs13("div", { className: "flex flex-row flex-wrap", children: [
|
|
4085
|
-
/* @__PURE__ */
|
|
4092
|
+
/* @__PURE__ */ jsx20("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx20(
|
|
4086
4093
|
ActivityBodyContent_default,
|
|
4087
4094
|
{
|
|
4088
4095
|
bodyMap: dropdownBodyMap,
|
|
@@ -4091,9 +4098,9 @@ var DropdownActivityContent = ({
|
|
|
4091
4098
|
templateType: "DROPDOWN"
|
|
4092
4099
|
}
|
|
4093
4100
|
) }),
|
|
4094
|
-
/* @__PURE__ */
|
|
4095
|
-
/* @__PURE__ */
|
|
4096
|
-
/* @__PURE__ */
|
|
4101
|
+
/* @__PURE__ */ jsx20("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx20(DividerLine_default, {}) }),
|
|
4102
|
+
/* @__PURE__ */ jsx20("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx20(VerticalDividerLine_default, {}) }),
|
|
4103
|
+
/* @__PURE__ */ jsx20("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx20(
|
|
4097
4104
|
DropdownActivityMaterialContent_default,
|
|
4098
4105
|
{
|
|
4099
4106
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -4118,7 +4125,7 @@ import { useDrop as useDrop2 } from "react-dnd";
|
|
|
4118
4125
|
|
|
4119
4126
|
// src/components/dnds/DraggableItem.tsx
|
|
4120
4127
|
import { useDrag } from "react-dnd";
|
|
4121
|
-
import { jsx as
|
|
4128
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
4122
4129
|
var DraggableItem = ({
|
|
4123
4130
|
key,
|
|
4124
4131
|
item,
|
|
@@ -4140,11 +4147,11 @@ var DraggableItem = ({
|
|
|
4140
4147
|
})
|
|
4141
4148
|
});
|
|
4142
4149
|
const opacity = isDragging ? 0.4 : 1;
|
|
4143
|
-
return /* @__PURE__ */
|
|
4150
|
+
return /* @__PURE__ */ jsx21(
|
|
4144
4151
|
"div",
|
|
4145
4152
|
{
|
|
4146
4153
|
className: `${isDragging ? "w-[0px] opacity-0" : "opacity-100"} transition-all duration-500`,
|
|
4147
|
-
children: /* @__PURE__ */
|
|
4154
|
+
children: /* @__PURE__ */ jsx21("div", { ref: drag, className: "", style: { opacity }, children: component })
|
|
4148
4155
|
},
|
|
4149
4156
|
key
|
|
4150
4157
|
);
|
|
@@ -4154,7 +4161,7 @@ var DraggableItem_default = DraggableItem;
|
|
|
4154
4161
|
// src/components/dnds/DroppableItem.tsx
|
|
4155
4162
|
import { useRef as useRef3 } from "react";
|
|
4156
4163
|
import { useDrop } from "react-dnd";
|
|
4157
|
-
import { jsx as
|
|
4164
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
4158
4165
|
var DroppableItem = ({
|
|
4159
4166
|
key,
|
|
4160
4167
|
item,
|
|
@@ -4174,7 +4181,7 @@ var DroppableItem = ({
|
|
|
4174
4181
|
}
|
|
4175
4182
|
});
|
|
4176
4183
|
dropRef(drop(ref));
|
|
4177
|
-
return /* @__PURE__ */
|
|
4184
|
+
return /* @__PURE__ */ jsx22(
|
|
4178
4185
|
"div",
|
|
4179
4186
|
{
|
|
4180
4187
|
className: `w-full transition-all duration-500 h-full`,
|
|
@@ -4187,7 +4194,7 @@ var DroppableItem = ({
|
|
|
4187
4194
|
var DroppableItem_default = DroppableItem;
|
|
4188
4195
|
|
|
4189
4196
|
// src/components/activities/material-content/FillInTheBlanksActivityMaterialContent.tsx
|
|
4190
|
-
import { jsx as
|
|
4197
|
+
import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4191
4198
|
var FillInTheBlanksActivityMaterialContent = ({
|
|
4192
4199
|
uniqueValue,
|
|
4193
4200
|
answer,
|
|
@@ -4247,10 +4254,10 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4247
4254
|
const answerMap = retrieveAnswerMap();
|
|
4248
4255
|
return /* @__PURE__ */ jsxs14("div", { className: "flex flex-row flex-wrap items-center", onMouseUp: () => {
|
|
4249
4256
|
}, children: [
|
|
4250
|
-
/* @__PURE__ */
|
|
4251
|
-
/* @__PURE__ */
|
|
4252
|
-
/* @__PURE__ */
|
|
4253
|
-
(option, index) => checkAnswerProvided(answerMap, option) ? /* @__PURE__ */
|
|
4257
|
+
/* @__PURE__ */ jsx23("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx23("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_fill_in_the_blanks_text") }) }),
|
|
4258
|
+
/* @__PURE__ */ jsx23("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx23(DividerLine_default, {}) }),
|
|
4259
|
+
/* @__PURE__ */ jsx23("div", { className: "w-full flex flex-row flex-wrap gap-x-2 gap-y-2 my-2", children: shuffleOptionList.map(
|
|
4260
|
+
(option, index) => checkAnswerProvided(answerMap, option) ? /* @__PURE__ */ jsx23("div", { className: "opacity-30", children: /* @__PURE__ */ jsx23(
|
|
4254
4261
|
ShowMaterialMediaByContentType_default,
|
|
4255
4262
|
{
|
|
4256
4263
|
contentType: contentMap.type,
|
|
@@ -4258,12 +4265,12 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4258
4265
|
canFullScreen: true
|
|
4259
4266
|
},
|
|
4260
4267
|
`${uniqueValue}-${index}`
|
|
4261
|
-
) }) : /* @__PURE__ */
|
|
4268
|
+
) }) : /* @__PURE__ */ jsx23(
|
|
4262
4269
|
DraggableItem_default,
|
|
4263
4270
|
{
|
|
4264
4271
|
item: { index: option },
|
|
4265
4272
|
type: "FILL_IN_THE_BLANKS",
|
|
4266
|
-
component: contentMap.type === "TEXT" ? /* @__PURE__ */
|
|
4273
|
+
component: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx23(
|
|
4267
4274
|
"div",
|
|
4268
4275
|
{
|
|
4269
4276
|
className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge cursor-pointer",
|
|
@@ -4271,9 +4278,9 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4271
4278
|
setSelectedOption(option);
|
|
4272
4279
|
setPasteOptionIndex(null);
|
|
4273
4280
|
},
|
|
4274
|
-
children: /* @__PURE__ */
|
|
4281
|
+
children: /* @__PURE__ */ jsx23("p", { className: "italic whitespace-pre-wrap", children: option })
|
|
4275
4282
|
}
|
|
4276
|
-
) : /* @__PURE__ */
|
|
4283
|
+
) : /* @__PURE__ */ jsx23(
|
|
4277
4284
|
"div",
|
|
4278
4285
|
{
|
|
4279
4286
|
className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge cursor-pointer",
|
|
@@ -4281,7 +4288,7 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4281
4288
|
setSelectedOption(option);
|
|
4282
4289
|
setPasteOptionIndex(null);
|
|
4283
4290
|
},
|
|
4284
|
-
children: /* @__PURE__ */
|
|
4291
|
+
children: /* @__PURE__ */ jsx23(
|
|
4285
4292
|
ShowMaterialMediaByContentType_default,
|
|
4286
4293
|
{
|
|
4287
4294
|
contentType: contentMap.type,
|
|
@@ -4299,12 +4306,12 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4299
4306
|
index
|
|
4300
4307
|
)
|
|
4301
4308
|
) }),
|
|
4302
|
-
/* @__PURE__ */
|
|
4309
|
+
/* @__PURE__ */ jsx23("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
|
|
4303
4310
|
const learnerAnswerState = checkAnswerState(
|
|
4304
4311
|
JSON.parse(materialMap[materialKey]),
|
|
4305
4312
|
answerMap[materialKey]
|
|
4306
4313
|
);
|
|
4307
|
-
return /* @__PURE__ */
|
|
4314
|
+
return /* @__PURE__ */ jsx23("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ jsx23("div", { className: "mx-2", children: /* @__PURE__ */ jsx23(
|
|
4308
4315
|
DroppableItem_default,
|
|
4309
4316
|
{
|
|
4310
4317
|
item: { index },
|
|
@@ -4313,12 +4320,12 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4313
4320
|
setTarget: setPasteOptionIndex,
|
|
4314
4321
|
dropRef: drop,
|
|
4315
4322
|
component: /* @__PURE__ */ jsxs14("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
|
|
4316
|
-
/* @__PURE__ */
|
|
4323
|
+
/* @__PURE__ */ jsx23("div", { className: "my-auto", children: /* @__PURE__ */ jsxs14("p", { className: "text-xl", children: [
|
|
4317
4324
|
parseFloat(materialKey) + 1,
|
|
4318
4325
|
"."
|
|
4319
4326
|
] }) }),
|
|
4320
|
-
/* @__PURE__ */
|
|
4321
|
-
/* @__PURE__ */
|
|
4327
|
+
/* @__PURE__ */ jsx23("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsxs14("div", { className: "relative", children: [
|
|
4328
|
+
/* @__PURE__ */ jsx23("div", { className: "flex-1", children: /* @__PURE__ */ jsx23(
|
|
4322
4329
|
InputGroup_default,
|
|
4323
4330
|
{
|
|
4324
4331
|
type: "textarea",
|
|
@@ -4333,14 +4340,14 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4333
4340
|
}
|
|
4334
4341
|
}
|
|
4335
4342
|
) }),
|
|
4336
|
-
learnerAnswerState === "CORRECT" ? /* @__PURE__ */
|
|
4343
|
+
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ jsx23("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ jsx23(
|
|
4337
4344
|
BaseImage_default,
|
|
4338
4345
|
{
|
|
4339
4346
|
src: "/icons/checkbox.webp",
|
|
4340
4347
|
alt: "checkbox",
|
|
4341
4348
|
size: "small"
|
|
4342
4349
|
}
|
|
4343
|
-
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */
|
|
4350
|
+
) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ jsx23("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ jsx23(
|
|
4344
4351
|
BaseImage_default,
|
|
4345
4352
|
{
|
|
4346
4353
|
src: "/icons/cross-red.webp",
|
|
@@ -4348,20 +4355,20 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4348
4355
|
size: "small"
|
|
4349
4356
|
}
|
|
4350
4357
|
) }) : null
|
|
4351
|
-
] }) : answerMap[materialKey] === "" ? /* @__PURE__ */
|
|
4358
|
+
] }) : answerMap[materialKey] === "" ? /* @__PURE__ */ jsx23(
|
|
4352
4359
|
"div",
|
|
4353
4360
|
{
|
|
4354
4361
|
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"}`,
|
|
4355
|
-
children: /* @__PURE__ */
|
|
4362
|
+
children: /* @__PURE__ */ jsx23("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ jsx23("span", { className: "italic", children: i18n_default.t("please_drop_here") }) })
|
|
4356
4363
|
}
|
|
4357
|
-
) : /* @__PURE__ */
|
|
4364
|
+
) : /* @__PURE__ */ jsx23(
|
|
4358
4365
|
"div",
|
|
4359
4366
|
{
|
|
4360
4367
|
className: "flex-1 cursor-pointer",
|
|
4361
4368
|
onClick: () => {
|
|
4362
4369
|
onChange(answer, materialKey, "");
|
|
4363
4370
|
},
|
|
4364
|
-
children: /* @__PURE__ */
|
|
4371
|
+
children: /* @__PURE__ */ jsx23(
|
|
4365
4372
|
ShowMaterialMediaByContentType_default,
|
|
4366
4373
|
{
|
|
4367
4374
|
contentType: contentMap.type,
|
|
@@ -4371,13 +4378,13 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4371
4378
|
`${uniqueValue}-${index}`
|
|
4372
4379
|
)
|
|
4373
4380
|
}
|
|
4374
|
-
) : /* @__PURE__ */
|
|
4381
|
+
) : /* @__PURE__ */ jsx23("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
|
|
4375
4382
|
answerMap[materialKey]
|
|
4376
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
4383
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx23(
|
|
4377
4384
|
"span",
|
|
4378
4385
|
{
|
|
4379
4386
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4380
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
4387
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx23("span", { className: "text-2xl", children: /* @__PURE__ */ jsx23(InlineMath3, { math: inputPart.value }) }) : inputPart.value
|
|
4381
4388
|
},
|
|
4382
4389
|
index2
|
|
4383
4390
|
)) }, materialKey) })
|
|
@@ -4391,7 +4398,7 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4391
4398
|
var FillInTheBlanksActivityMaterialContent_default = FillInTheBlanksActivityMaterialContent;
|
|
4392
4399
|
|
|
4393
4400
|
// src/components/activities/FillInTheBlanksActivityContent.tsx
|
|
4394
|
-
import { jsx as
|
|
4401
|
+
import { jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4395
4402
|
var FillInTheBlanksActivityContent = ({
|
|
4396
4403
|
answer,
|
|
4397
4404
|
data,
|
|
@@ -4441,7 +4448,7 @@ var FillInTheBlanksActivityContent = ({
|
|
|
4441
4448
|
changeAnswer(answer2);
|
|
4442
4449
|
};
|
|
4443
4450
|
return /* @__PURE__ */ jsxs15("div", { className: "flex flex-row flex-wrap", children: [
|
|
4444
|
-
/* @__PURE__ */
|
|
4451
|
+
/* @__PURE__ */ jsx24("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx24(
|
|
4445
4452
|
ActivityBodyContent_default,
|
|
4446
4453
|
{
|
|
4447
4454
|
bodyMap: fillInTheBlanksBodyMap,
|
|
@@ -4450,9 +4457,9 @@ var FillInTheBlanksActivityContent = ({
|
|
|
4450
4457
|
templateType: "FILL_IN_THE_BLANKS"
|
|
4451
4458
|
}
|
|
4452
4459
|
) }),
|
|
4453
|
-
/* @__PURE__ */
|
|
4454
|
-
/* @__PURE__ */
|
|
4455
|
-
/* @__PURE__ */
|
|
4460
|
+
/* @__PURE__ */ jsx24("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx24(DividerLine_default, {}) }),
|
|
4461
|
+
/* @__PURE__ */ jsx24("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx24(VerticalDividerLine_default, {}) }),
|
|
4462
|
+
/* @__PURE__ */ jsx24("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx24(
|
|
4456
4463
|
FillInTheBlanksActivityMaterialContent_default,
|
|
4457
4464
|
{
|
|
4458
4465
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -4511,7 +4518,7 @@ var useScreenSize = () => {
|
|
|
4511
4518
|
var useScreenSize_default = useScreenSize;
|
|
4512
4519
|
|
|
4513
4520
|
// src/components/activities/material-content/GroupingActivityMaterialContent.tsx
|
|
4514
|
-
import { Fragment, jsx as
|
|
4521
|
+
import { Fragment, jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4515
4522
|
var GroupingActivityMaterialContent = ({
|
|
4516
4523
|
uniqueValue,
|
|
4517
4524
|
answer,
|
|
@@ -4617,18 +4624,18 @@ var GroupingActivityMaterialContent = ({
|
|
|
4617
4624
|
const answerMap = retrieveAnswerMap();
|
|
4618
4625
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
4619
4626
|
return /* @__PURE__ */ jsxs16(Fragment, { children: [
|
|
4620
|
-
/* @__PURE__ */
|
|
4627
|
+
/* @__PURE__ */ jsx25(
|
|
4621
4628
|
"div",
|
|
4622
4629
|
{
|
|
4623
4630
|
ref: itemsRef,
|
|
4624
4631
|
className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
|
|
4625
4632
|
children: filteredMaterialList.map((materialValue, index) => {
|
|
4626
|
-
return /* @__PURE__ */
|
|
4633
|
+
return /* @__PURE__ */ jsx25(
|
|
4627
4634
|
DraggableItem_default,
|
|
4628
4635
|
{
|
|
4629
4636
|
item: { index: materialValue },
|
|
4630
4637
|
type: "GROUPING",
|
|
4631
|
-
component: /* @__PURE__ */
|
|
4638
|
+
component: /* @__PURE__ */ jsx25(
|
|
4632
4639
|
"div",
|
|
4633
4640
|
{
|
|
4634
4641
|
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`,
|
|
@@ -4642,22 +4649,22 @@ var GroupingActivityMaterialContent = ({
|
|
|
4642
4649
|
setSelectedValue(null);
|
|
4643
4650
|
}
|
|
4644
4651
|
},
|
|
4645
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */
|
|
4652
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx25(
|
|
4646
4653
|
"div",
|
|
4647
4654
|
{
|
|
4648
4655
|
className: `flex flex-col items-center justify-center m-4 min-h-[64px] min-w-[200px]`,
|
|
4649
|
-
children: /* @__PURE__ */
|
|
4656
|
+
children: /* @__PURE__ */ jsx25("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
4650
4657
|
materialValue
|
|
4651
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
4658
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx25(
|
|
4652
4659
|
"span",
|
|
4653
4660
|
{
|
|
4654
4661
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4655
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
4662
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx25("span", { className: "text-2xl", children: /* @__PURE__ */ jsx25(InlineMath4, { math: inputPart.value }) }) : inputPart.value
|
|
4656
4663
|
},
|
|
4657
4664
|
index2
|
|
4658
4665
|
)) })
|
|
4659
4666
|
}
|
|
4660
|
-
) : /* @__PURE__ */
|
|
4667
|
+
) : /* @__PURE__ */ jsx25(
|
|
4661
4668
|
ShowMaterialMediaByContentType_default,
|
|
4662
4669
|
{
|
|
4663
4670
|
contentType: contentMap.type,
|
|
@@ -4682,22 +4689,22 @@ var GroupingActivityMaterialContent = ({
|
|
|
4682
4689
|
})
|
|
4683
4690
|
}
|
|
4684
4691
|
),
|
|
4685
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */
|
|
4692
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsx25(DividerLine_default, {}) : null,
|
|
4686
4693
|
Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ jsxs16("div", { className: "flex flex-row w-full", children: [
|
|
4687
|
-
/* @__PURE__ */
|
|
4694
|
+
/* @__PURE__ */ jsx25("div", { className: "w-1/3", children: /* @__PURE__ */ jsx25(
|
|
4688
4695
|
"div",
|
|
4689
4696
|
{
|
|
4690
4697
|
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`,
|
|
4691
|
-
children: /* @__PURE__ */
|
|
4698
|
+
children: /* @__PURE__ */ jsx25(
|
|
4692
4699
|
"div",
|
|
4693
4700
|
{
|
|
4694
4701
|
className: `flex flex-col items-center justify-center transition-all duration-300 m-4`,
|
|
4695
|
-
children: /* @__PURE__ */
|
|
4696
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
4702
|
+
children: /* @__PURE__ */ jsx25("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
|
|
4703
|
+
(inputPart, index2) => /* @__PURE__ */ jsx25(
|
|
4697
4704
|
"span",
|
|
4698
4705
|
{
|
|
4699
4706
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4700
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
4707
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx25("span", { className: "text-2xl", children: /* @__PURE__ */ jsx25(InlineMath4, { math: inputPart.value }) }) : inputPart.value
|
|
4701
4708
|
},
|
|
4702
4709
|
index2
|
|
4703
4710
|
)
|
|
@@ -4706,12 +4713,12 @@ var GroupingActivityMaterialContent = ({
|
|
|
4706
4713
|
)
|
|
4707
4714
|
}
|
|
4708
4715
|
) }),
|
|
4709
|
-
/* @__PURE__ */
|
|
4710
|
-
/* @__PURE__ */
|
|
4716
|
+
/* @__PURE__ */ jsx25("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
|
|
4717
|
+
/* @__PURE__ */ jsx25("div", { className: "flex-1", ref, children: /* @__PURE__ */ jsx25("div", { className: "h-full py-3", children: /* @__PURE__ */ jsx25(
|
|
4711
4718
|
"div",
|
|
4712
4719
|
{
|
|
4713
4720
|
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`,
|
|
4714
|
-
children: /* @__PURE__ */
|
|
4721
|
+
children: /* @__PURE__ */ jsx25(
|
|
4715
4722
|
DroppableItem_default,
|
|
4716
4723
|
{
|
|
4717
4724
|
item: { index: answerMapKey },
|
|
@@ -4719,7 +4726,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4719
4726
|
target: selectedTargetKey,
|
|
4720
4727
|
setTarget: setSelectedTargetKey,
|
|
4721
4728
|
dropRef: drop,
|
|
4722
|
-
component: /* @__PURE__ */
|
|
4729
|
+
component: /* @__PURE__ */ jsx25(
|
|
4723
4730
|
"div",
|
|
4724
4731
|
{
|
|
4725
4732
|
className: "h-full flex-1 flex flex-row items-center overflow-x-auto",
|
|
@@ -4732,7 +4739,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4732
4739
|
materialMap[answerMapKey],
|
|
4733
4740
|
answerMapValue
|
|
4734
4741
|
);
|
|
4735
|
-
return /* @__PURE__ */
|
|
4742
|
+
return /* @__PURE__ */ jsx25("div", { className: "p-1", children: /* @__PURE__ */ jsx25("div", { className: "h-catchup-activity-box-item", children: /* @__PURE__ */ jsx25(
|
|
4736
4743
|
"div",
|
|
4737
4744
|
{
|
|
4738
4745
|
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`,
|
|
@@ -4748,17 +4755,17 @@ var GroupingActivityMaterialContent = ({
|
|
|
4748
4755
|
setSelectedValue(null);
|
|
4749
4756
|
}
|
|
4750
4757
|
},
|
|
4751
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */
|
|
4758
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx25(
|
|
4752
4759
|
"div",
|
|
4753
4760
|
{
|
|
4754
4761
|
className: `flex flex-col items-center justify-center transition-all duration-300 min-h-[64px] min-w-[200px]`,
|
|
4755
|
-
children: /* @__PURE__ */
|
|
4762
|
+
children: /* @__PURE__ */ jsx25("div", { className: "m-2", children: /* @__PURE__ */ jsx25("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
4756
4763
|
answerMapValue
|
|
4757
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
4764
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx25(
|
|
4758
4765
|
"span",
|
|
4759
4766
|
{
|
|
4760
4767
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4761
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
4768
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx25("span", { className: "text-2xl", children: /* @__PURE__ */ jsx25(
|
|
4762
4769
|
InlineMath4,
|
|
4763
4770
|
{
|
|
4764
4771
|
math: inputPart.value
|
|
@@ -4768,7 +4775,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4768
4775
|
index2
|
|
4769
4776
|
)) }) })
|
|
4770
4777
|
}
|
|
4771
|
-
) : /* @__PURE__ */
|
|
4778
|
+
) : /* @__PURE__ */ jsx25(
|
|
4772
4779
|
ShowMaterialMediaByContentType_default,
|
|
4773
4780
|
{
|
|
4774
4781
|
contentType: contentMap.type,
|
|
@@ -4794,7 +4801,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4794
4801
|
var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
|
|
4795
4802
|
|
|
4796
4803
|
// src/components/activities/GroupingActivityContent.tsx
|
|
4797
|
-
import { Fragment as Fragment2, jsx as
|
|
4804
|
+
import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4798
4805
|
var GroupingActivityContent = ({
|
|
4799
4806
|
answer,
|
|
4800
4807
|
data,
|
|
@@ -4820,15 +4827,15 @@ var GroupingActivityContent = ({
|
|
|
4820
4827
|
changeAnswer(answer2);
|
|
4821
4828
|
};
|
|
4822
4829
|
return /* @__PURE__ */ jsxs17(Fragment2, { children: [
|
|
4823
|
-
/* @__PURE__ */
|
|
4830
|
+
/* @__PURE__ */ jsx26(
|
|
4824
4831
|
ActivityBodyContent_default,
|
|
4825
4832
|
{
|
|
4826
4833
|
bodyMap: groupingBodyMap,
|
|
4827
4834
|
templateType: "GROUPING"
|
|
4828
4835
|
}
|
|
4829
4836
|
),
|
|
4830
|
-
/* @__PURE__ */
|
|
4831
|
-
/* @__PURE__ */
|
|
4837
|
+
/* @__PURE__ */ jsx26(DividerLine_default, {}),
|
|
4838
|
+
/* @__PURE__ */ jsx26(
|
|
4832
4839
|
GroupingActivityMaterialContent_default,
|
|
4833
4840
|
{
|
|
4834
4841
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -4849,7 +4856,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
|
|
|
4849
4856
|
import { useEffect as useEffect8, useRef as useRef5, useState as useState16 } from "react";
|
|
4850
4857
|
import { useDrop as useDrop4 } from "react-dnd";
|
|
4851
4858
|
import { InlineMath as InlineMath5 } from "react-katex";
|
|
4852
|
-
import { Fragment as Fragment3, jsx as
|
|
4859
|
+
import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4853
4860
|
var MatchingActivityMaterialContent = ({
|
|
4854
4861
|
uniqueValue,
|
|
4855
4862
|
answer,
|
|
@@ -4946,17 +4953,17 @@ var MatchingActivityMaterialContent = ({
|
|
|
4946
4953
|
const answerMap = retrieveAnswerMap();
|
|
4947
4954
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
4948
4955
|
return /* @__PURE__ */ jsxs18(Fragment3, { children: [
|
|
4949
|
-
/* @__PURE__ */
|
|
4956
|
+
/* @__PURE__ */ jsx27(
|
|
4950
4957
|
"div",
|
|
4951
4958
|
{
|
|
4952
4959
|
ref: itemsRef,
|
|
4953
4960
|
className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
|
|
4954
|
-
children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */
|
|
4961
|
+
children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */ jsx27(
|
|
4955
4962
|
DraggableItem_default,
|
|
4956
4963
|
{
|
|
4957
4964
|
item: { index: materialValue },
|
|
4958
4965
|
type: "MATCHING",
|
|
4959
|
-
component: /* @__PURE__ */
|
|
4966
|
+
component: /* @__PURE__ */ jsx27(
|
|
4960
4967
|
"div",
|
|
4961
4968
|
{
|
|
4962
4969
|
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`,
|
|
@@ -4970,22 +4977,22 @@ var MatchingActivityMaterialContent = ({
|
|
|
4970
4977
|
setSelectedValue(null);
|
|
4971
4978
|
}
|
|
4972
4979
|
},
|
|
4973
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */
|
|
4980
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx27(
|
|
4974
4981
|
"div",
|
|
4975
4982
|
{
|
|
4976
4983
|
className: `flex flex-col items-center justify-center m-4 min-h-[64px] min-w-[200px]`,
|
|
4977
|
-
children: /* @__PURE__ */
|
|
4984
|
+
children: /* @__PURE__ */ jsx27("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
4978
4985
|
materialValue
|
|
4979
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
4986
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx27(
|
|
4980
4987
|
"span",
|
|
4981
4988
|
{
|
|
4982
4989
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
4983
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
4990
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx27("span", { className: "text-2xl", children: /* @__PURE__ */ jsx27(InlineMath5, { math: inputPart.value }) }) : inputPart.value
|
|
4984
4991
|
},
|
|
4985
4992
|
index2
|
|
4986
4993
|
)) })
|
|
4987
4994
|
}
|
|
4988
|
-
) : /* @__PURE__ */
|
|
4995
|
+
) : /* @__PURE__ */ jsx27(
|
|
4989
4996
|
ShowMaterialMediaByContentType_default,
|
|
4990
4997
|
{
|
|
4991
4998
|
contentType: contentMap.type,
|
|
@@ -5009,27 +5016,27 @@ var MatchingActivityMaterialContent = ({
|
|
|
5009
5016
|
))
|
|
5010
5017
|
}
|
|
5011
5018
|
),
|
|
5012
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */
|
|
5019
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsx27(DividerLine_default, {}) : null,
|
|
5013
5020
|
Object.keys(answerMap).map((answerMapKey, index) => {
|
|
5014
5021
|
const learnerAnswerState = checkAnswerState(
|
|
5015
5022
|
materialMap[answerMapKey],
|
|
5016
5023
|
answerMap[answerMapKey]
|
|
5017
5024
|
);
|
|
5018
5025
|
return /* @__PURE__ */ jsxs18("div", { className: "flex flex-row w-full", children: [
|
|
5019
|
-
/* @__PURE__ */
|
|
5026
|
+
/* @__PURE__ */ jsx27("div", { className: "w-1/3", children: /* @__PURE__ */ jsx27(
|
|
5020
5027
|
"div",
|
|
5021
5028
|
{
|
|
5022
5029
|
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"}`,
|
|
5023
|
-
children: /* @__PURE__ */
|
|
5030
|
+
children: /* @__PURE__ */ jsx27(
|
|
5024
5031
|
"div",
|
|
5025
5032
|
{
|
|
5026
5033
|
className: `flex flex-col items-center justify-center transition-all duration-300 m-4`,
|
|
5027
|
-
children: /* @__PURE__ */
|
|
5028
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
5034
|
+
children: /* @__PURE__ */ jsx27("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
|
|
5035
|
+
(inputPart, index2) => /* @__PURE__ */ jsx27(
|
|
5029
5036
|
"span",
|
|
5030
5037
|
{
|
|
5031
5038
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5032
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5039
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx27("span", { className: "text-2xl", children: /* @__PURE__ */ jsx27(InlineMath5, { math: inputPart.value }) }) : inputPart.value
|
|
5033
5040
|
},
|
|
5034
5041
|
index2
|
|
5035
5042
|
)
|
|
@@ -5038,8 +5045,8 @@ var MatchingActivityMaterialContent = ({
|
|
|
5038
5045
|
)
|
|
5039
5046
|
}
|
|
5040
5047
|
) }),
|
|
5041
|
-
/* @__PURE__ */
|
|
5042
|
-
/* @__PURE__ */
|
|
5048
|
+
/* @__PURE__ */ jsx27("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
|
|
5049
|
+
/* @__PURE__ */ jsx27("div", { className: "flex-1", children: /* @__PURE__ */ jsx27(
|
|
5043
5050
|
"div",
|
|
5044
5051
|
{
|
|
5045
5052
|
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"}`,
|
|
@@ -5048,7 +5055,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5048
5055
|
setSelectedValue(null);
|
|
5049
5056
|
}
|
|
5050
5057
|
},
|
|
5051
|
-
children: /* @__PURE__ */
|
|
5058
|
+
children: /* @__PURE__ */ jsx27(
|
|
5052
5059
|
DroppableItem_default,
|
|
5053
5060
|
{
|
|
5054
5061
|
item: { index: answerMapKey },
|
|
@@ -5056,7 +5063,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5056
5063
|
target: selectedTargetKey,
|
|
5057
5064
|
setTarget: setSelectedTargetKey,
|
|
5058
5065
|
dropRef: drop,
|
|
5059
|
-
component: /* @__PURE__ */
|
|
5066
|
+
component: /* @__PURE__ */ jsx27(
|
|
5060
5067
|
"div",
|
|
5061
5068
|
{
|
|
5062
5069
|
className: `h-full flex-1 flex flex-row items-center justify-center `,
|
|
@@ -5069,16 +5076,16 @@ var MatchingActivityMaterialContent = ({
|
|
|
5069
5076
|
);
|
|
5070
5077
|
}
|
|
5071
5078
|
},
|
|
5072
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */
|
|
5079
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx27("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5073
5080
|
answerMap[answerMapKey]
|
|
5074
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
5081
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx27(
|
|
5075
5082
|
"span",
|
|
5076
5083
|
{
|
|
5077
5084
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5078
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5085
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx27("span", { className: "text-2xl", children: /* @__PURE__ */ jsx27(InlineMath5, { math: inputPart.value }) }) : inputPart.value
|
|
5079
5086
|
},
|
|
5080
5087
|
index2
|
|
5081
|
-
)) }) : /* @__PURE__ */
|
|
5088
|
+
)) }) : /* @__PURE__ */ jsx27(
|
|
5082
5089
|
ShowMaterialMediaByContentType_default,
|
|
5083
5090
|
{
|
|
5084
5091
|
contentType: contentMap.type,
|
|
@@ -5101,7 +5108,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5101
5108
|
var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
|
|
5102
5109
|
|
|
5103
5110
|
// src/components/activities/MatchingActivityContent.tsx
|
|
5104
|
-
import { Fragment as Fragment4, jsx as
|
|
5111
|
+
import { Fragment as Fragment4, jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5105
5112
|
var MatchingActivityContent = ({
|
|
5106
5113
|
answer,
|
|
5107
5114
|
data,
|
|
@@ -5123,15 +5130,15 @@ var MatchingActivityContent = ({
|
|
|
5123
5130
|
changeAnswer(answer2);
|
|
5124
5131
|
};
|
|
5125
5132
|
return /* @__PURE__ */ jsxs19(Fragment4, { children: [
|
|
5126
|
-
/* @__PURE__ */
|
|
5133
|
+
/* @__PURE__ */ jsx28(
|
|
5127
5134
|
ActivityBodyContent_default,
|
|
5128
5135
|
{
|
|
5129
5136
|
bodyMap: matchingBodyMap,
|
|
5130
5137
|
templateType: "MATCHING"
|
|
5131
5138
|
}
|
|
5132
5139
|
),
|
|
5133
|
-
/* @__PURE__ */
|
|
5134
|
-
/* @__PURE__ */
|
|
5140
|
+
/* @__PURE__ */ jsx28(DividerLine_default, {}),
|
|
5141
|
+
/* @__PURE__ */ jsx28(
|
|
5135
5142
|
MatchingActivityMaterialContent_default,
|
|
5136
5143
|
{
|
|
5137
5144
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -5150,7 +5157,7 @@ var MatchingActivityContent_default = MatchingActivityContent;
|
|
|
5150
5157
|
|
|
5151
5158
|
// src/components/activities/material-content/MCMAActivityMaterialContent.tsx
|
|
5152
5159
|
import { InlineMath as InlineMath6 } from "react-katex";
|
|
5153
|
-
import { jsx as
|
|
5160
|
+
import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5154
5161
|
var MCMAActivityMaterialContent = ({
|
|
5155
5162
|
uniqueValue,
|
|
5156
5163
|
answer,
|
|
@@ -5183,10 +5190,10 @@ var MCMAActivityMaterialContent = ({
|
|
|
5183
5190
|
const answerMap = retrieveAnswerMap();
|
|
5184
5191
|
const correctAnswerList = retrieveCorrectAnswerList();
|
|
5185
5192
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5186
|
-
return /* @__PURE__ */
|
|
5187
|
-
/* @__PURE__ */
|
|
5188
|
-
/* @__PURE__ */
|
|
5189
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */
|
|
5193
|
+
return /* @__PURE__ */ jsx29("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs20("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
|
|
5194
|
+
/* @__PURE__ */ jsx29("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx29("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
|
|
5195
|
+
/* @__PURE__ */ jsx29("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx29(DividerLine_default, {}) }),
|
|
5196
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx29("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
|
|
5190
5197
|
(materialSubKey, index2) => {
|
|
5191
5198
|
const foundAnswer = answerMap[materialKey].find(
|
|
5192
5199
|
(learnerAnswer) => learnerAnswer === materialSubKey
|
|
@@ -5207,7 +5214,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5207
5214
|
onChange(answer, materialKey, materialSubKey);
|
|
5208
5215
|
},
|
|
5209
5216
|
children: [
|
|
5210
|
-
/* @__PURE__ */
|
|
5217
|
+
/* @__PURE__ */ jsx29(
|
|
5211
5218
|
BaseImage_default,
|
|
5212
5219
|
{
|
|
5213
5220
|
src: answerMap[materialKey].includes(materialSubKey) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -5217,16 +5224,16 @@ var MCMAActivityMaterialContent = ({
|
|
|
5217
5224
|
}
|
|
5218
5225
|
}
|
|
5219
5226
|
),
|
|
5220
|
-
/* @__PURE__ */
|
|
5227
|
+
/* @__PURE__ */ jsx29("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx29("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5221
5228
|
materialSubKey
|
|
5222
|
-
).map((inputPart, index3) => /* @__PURE__ */
|
|
5229
|
+
).map((inputPart, index3) => /* @__PURE__ */ jsx29(
|
|
5223
5230
|
"span",
|
|
5224
5231
|
{
|
|
5225
5232
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5226
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5233
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx29("span", { className: "text-2xl", children: /* @__PURE__ */ jsx29(InlineMath6, { math: inputPart.value }) }) : inputPart.value
|
|
5227
5234
|
},
|
|
5228
5235
|
index3
|
|
5229
|
-
)) }) : /* @__PURE__ */
|
|
5236
|
+
)) }) : /* @__PURE__ */ jsx29(
|
|
5230
5237
|
ShowMaterialMediaByContentType_default,
|
|
5231
5238
|
{
|
|
5232
5239
|
contentType: contentMap.type,
|
|
@@ -5240,13 +5247,13 @@ var MCMAActivityMaterialContent = ({
|
|
|
5240
5247
|
index2
|
|
5241
5248
|
);
|
|
5242
5249
|
}
|
|
5243
|
-
) }) : /* @__PURE__ */
|
|
5250
|
+
) }) : /* @__PURE__ */ jsx29("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
|
|
5244
5251
|
answerMap[materialKey]
|
|
5245
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
5252
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx29(
|
|
5246
5253
|
"span",
|
|
5247
5254
|
{
|
|
5248
5255
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5249
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5256
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx29("span", { className: "text-2xl", children: /* @__PURE__ */ jsx29(InlineMath6, { math: inputPart.value }) }) : inputPart.value
|
|
5250
5257
|
},
|
|
5251
5258
|
index2
|
|
5252
5259
|
)) }, materialKey)
|
|
@@ -5256,7 +5263,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5256
5263
|
var MCMAActivityMaterialContent_default = MCMAActivityMaterialContent;
|
|
5257
5264
|
|
|
5258
5265
|
// src/components/activities/MCMAActivityContent.tsx
|
|
5259
|
-
import { jsx as
|
|
5266
|
+
import { jsx as jsx30, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5260
5267
|
var MCMAActivityContent = ({
|
|
5261
5268
|
answer,
|
|
5262
5269
|
data,
|
|
@@ -5284,10 +5291,10 @@ var MCMAActivityContent = ({
|
|
|
5284
5291
|
changeAnswer(answer2);
|
|
5285
5292
|
};
|
|
5286
5293
|
return /* @__PURE__ */ jsxs21("div", { className: "flex flex-row flex-wrap", children: [
|
|
5287
|
-
/* @__PURE__ */
|
|
5288
|
-
/* @__PURE__ */
|
|
5289
|
-
/* @__PURE__ */
|
|
5290
|
-
/* @__PURE__ */
|
|
5294
|
+
/* @__PURE__ */ jsx30("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx30(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
|
|
5295
|
+
/* @__PURE__ */ jsx30("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx30(DividerLine_default, {}) }),
|
|
5296
|
+
/* @__PURE__ */ jsx30("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx30(VerticalDividerLine_default, {}) }),
|
|
5297
|
+
/* @__PURE__ */ jsx30("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx30(
|
|
5291
5298
|
MCMAActivityMaterialContent_default,
|
|
5292
5299
|
{
|
|
5293
5300
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -5305,7 +5312,7 @@ var MCMAActivityContent_default = MCMAActivityContent;
|
|
|
5305
5312
|
|
|
5306
5313
|
// src/components/activities/material-content/MCSAActivityMaterialContent.tsx
|
|
5307
5314
|
import { InlineMath as InlineMath7 } from "react-katex";
|
|
5308
|
-
import { jsx as
|
|
5315
|
+
import { jsx as jsx31, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5309
5316
|
var MCSAActivityMaterialContent = ({
|
|
5310
5317
|
uniqueValue,
|
|
5311
5318
|
answer,
|
|
@@ -5335,10 +5342,10 @@ var MCSAActivityMaterialContent = ({
|
|
|
5335
5342
|
const answerMap = retrieveAnswerMap();
|
|
5336
5343
|
const correctAnswer = retrieveCorrectAnswer();
|
|
5337
5344
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5338
|
-
return /* @__PURE__ */
|
|
5339
|
-
/* @__PURE__ */
|
|
5340
|
-
/* @__PURE__ */
|
|
5341
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */
|
|
5345
|
+
return /* @__PURE__ */ jsx31("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs22("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
|
|
5346
|
+
/* @__PURE__ */ jsx31("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx31("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
|
|
5347
|
+
/* @__PURE__ */ jsx31("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx31(DividerLine_default, {}) }),
|
|
5348
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx31(
|
|
5342
5349
|
"div",
|
|
5343
5350
|
{
|
|
5344
5351
|
className: `flex flex-row w-full ${Object.keys(materialMap[materialKey]).length <= 4 ? "justify-center" : ""} flex-wrap`,
|
|
@@ -5357,7 +5364,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5357
5364
|
onChange(answer, materialKey, materialSubKey);
|
|
5358
5365
|
},
|
|
5359
5366
|
children: [
|
|
5360
|
-
/* @__PURE__ */
|
|
5367
|
+
/* @__PURE__ */ jsx31(
|
|
5361
5368
|
BaseImage_default,
|
|
5362
5369
|
{
|
|
5363
5370
|
src: answerMap[materialKey] === materialSubKey ? "/icons/item-element.webp" : "/icons/not-selected-item-element.webp",
|
|
@@ -5367,16 +5374,16 @@ var MCSAActivityMaterialContent = ({
|
|
|
5367
5374
|
}
|
|
5368
5375
|
}
|
|
5369
5376
|
),
|
|
5370
|
-
/* @__PURE__ */
|
|
5377
|
+
/* @__PURE__ */ jsx31("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx31("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5371
5378
|
materialSubKey
|
|
5372
|
-
).map((inputPart, index3) => /* @__PURE__ */
|
|
5379
|
+
).map((inputPart, index3) => /* @__PURE__ */ jsx31(
|
|
5373
5380
|
"span",
|
|
5374
5381
|
{
|
|
5375
5382
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5376
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5383
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx31("span", { className: "text-2xl", children: /* @__PURE__ */ jsx31(InlineMath7, { math: inputPart.value }) }) : inputPart.value
|
|
5377
5384
|
},
|
|
5378
5385
|
index3
|
|
5379
|
-
)) }) : /* @__PURE__ */
|
|
5386
|
+
)) }) : /* @__PURE__ */ jsx31(
|
|
5380
5387
|
ShowMaterialMediaByContentType_default,
|
|
5381
5388
|
{
|
|
5382
5389
|
contentType: contentMap.type,
|
|
@@ -5392,13 +5399,13 @@ var MCSAActivityMaterialContent = ({
|
|
|
5392
5399
|
}
|
|
5393
5400
|
)
|
|
5394
5401
|
}
|
|
5395
|
-
) : /* @__PURE__ */
|
|
5402
|
+
) : /* @__PURE__ */ jsx31("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5396
5403
|
answerMap[materialKey]
|
|
5397
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
5404
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx31(
|
|
5398
5405
|
"span",
|
|
5399
5406
|
{
|
|
5400
5407
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5401
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5408
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx31("span", { className: "text-2xl", children: /* @__PURE__ */ jsx31(InlineMath7, { math: inputPart.value }) }) : inputPart.value
|
|
5402
5409
|
},
|
|
5403
5410
|
index2
|
|
5404
5411
|
)) })
|
|
@@ -5408,7 +5415,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
5408
5415
|
var MCSAActivityMaterialContent_default = MCSAActivityMaterialContent;
|
|
5409
5416
|
|
|
5410
5417
|
// src/components/activities/MCSAActivityContent.tsx
|
|
5411
|
-
import { jsx as
|
|
5418
|
+
import { jsx as jsx32, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5412
5419
|
var MCSAActivityContent = ({
|
|
5413
5420
|
answer,
|
|
5414
5421
|
data,
|
|
@@ -5429,10 +5436,10 @@ var MCSAActivityContent = ({
|
|
|
5429
5436
|
changeAnswer(answer2);
|
|
5430
5437
|
};
|
|
5431
5438
|
return /* @__PURE__ */ jsxs23("div", { className: "flex flex-row flex-wrap", children: [
|
|
5432
|
-
/* @__PURE__ */
|
|
5433
|
-
/* @__PURE__ */
|
|
5434
|
-
/* @__PURE__ */
|
|
5435
|
-
/* @__PURE__ */
|
|
5439
|
+
/* @__PURE__ */ jsx32("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx32(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
|
|
5440
|
+
/* @__PURE__ */ jsx32("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx32(DividerLine_default, {}) }),
|
|
5441
|
+
/* @__PURE__ */ jsx32("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx32(VerticalDividerLine_default, {}) }),
|
|
5442
|
+
/* @__PURE__ */ jsx32("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx32(
|
|
5436
5443
|
MCSAActivityMaterialContent_default,
|
|
5437
5444
|
{
|
|
5438
5445
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -5449,7 +5456,7 @@ var MCSAActivityContent = ({
|
|
|
5449
5456
|
var MCSAActivityContent_default = MCSAActivityContent;
|
|
5450
5457
|
|
|
5451
5458
|
// src/components/activities/material-content/OpenEndedActivityMaterialContent.tsx
|
|
5452
|
-
import { Fragment as Fragment5, jsx as
|
|
5459
|
+
import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5453
5460
|
var OpenEndedActivityMaterialContent = ({
|
|
5454
5461
|
answer,
|
|
5455
5462
|
contentMap,
|
|
@@ -5475,7 +5482,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5475
5482
|
};
|
|
5476
5483
|
const RenderTextContent = (answerMap2) => {
|
|
5477
5484
|
const answerMapAnswer = answerMap2["ANSWER"];
|
|
5478
|
-
return /* @__PURE__ */
|
|
5485
|
+
return /* @__PURE__ */ jsx33(
|
|
5479
5486
|
InputGroup_default,
|
|
5480
5487
|
{
|
|
5481
5488
|
type: "textarea",
|
|
@@ -5488,16 +5495,16 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5488
5495
|
);
|
|
5489
5496
|
};
|
|
5490
5497
|
const answerMap = retrieveAnswerMap();
|
|
5491
|
-
return /* @__PURE__ */
|
|
5492
|
-
/* @__PURE__ */
|
|
5493
|
-
/* @__PURE__ */
|
|
5498
|
+
return /* @__PURE__ */ jsx33(Fragment5, { children: /* @__PURE__ */ jsxs24("div", { className: "", children: [
|
|
5499
|
+
/* @__PURE__ */ jsx33("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx33("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
|
|
5500
|
+
/* @__PURE__ */ jsx33("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx33(DividerLine_default, {}) }),
|
|
5494
5501
|
contentMap.type === "TEXT" ? RenderTextContent(answerMap) : null
|
|
5495
5502
|
] }) });
|
|
5496
5503
|
};
|
|
5497
5504
|
var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
|
|
5498
5505
|
|
|
5499
5506
|
// src/components/activities/OpenEndedActivityContent.tsx
|
|
5500
|
-
import { Fragment as Fragment6, jsx as
|
|
5507
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5501
5508
|
var OpenEndedActivityContent = ({
|
|
5502
5509
|
answer,
|
|
5503
5510
|
data,
|
|
@@ -5516,11 +5523,11 @@ var OpenEndedActivityContent = ({
|
|
|
5516
5523
|
changeAnswer(answer2);
|
|
5517
5524
|
};
|
|
5518
5525
|
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-row flex-wrap", children: [
|
|
5519
|
-
/* @__PURE__ */
|
|
5526
|
+
/* @__PURE__ */ jsx34(
|
|
5520
5527
|
"div",
|
|
5521
5528
|
{
|
|
5522
5529
|
className: `${showMaterialContent ? isFullScreen ? "w-full" : "w-full md:w-[40%]" : "w-full"}`,
|
|
5523
|
-
children: /* @__PURE__ */
|
|
5530
|
+
children: /* @__PURE__ */ jsx34(
|
|
5524
5531
|
ActivityBodyContent_default,
|
|
5525
5532
|
{
|
|
5526
5533
|
bodyMap: openEndedBodyMap,
|
|
@@ -5530,15 +5537,15 @@ var OpenEndedActivityContent = ({
|
|
|
5530
5537
|
}
|
|
5531
5538
|
),
|
|
5532
5539
|
showMaterialContent ? /* @__PURE__ */ jsxs25(Fragment6, { children: [
|
|
5533
|
-
/* @__PURE__ */
|
|
5540
|
+
/* @__PURE__ */ jsx34(
|
|
5534
5541
|
"div",
|
|
5535
5542
|
{
|
|
5536
5543
|
className: `${isFullScreen ? "contents" : "contents md:hidden"}`,
|
|
5537
|
-
children: /* @__PURE__ */
|
|
5544
|
+
children: /* @__PURE__ */ jsx34(DividerLine_default, {})
|
|
5538
5545
|
}
|
|
5539
5546
|
),
|
|
5540
|
-
/* @__PURE__ */
|
|
5541
|
-
/* @__PURE__ */
|
|
5547
|
+
/* @__PURE__ */ jsx34("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx34(VerticalDividerLine_default, {}) }),
|
|
5548
|
+
/* @__PURE__ */ jsx34("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx34(
|
|
5542
5549
|
OpenEndedActivityMaterialContent_default,
|
|
5543
5550
|
{
|
|
5544
5551
|
answer,
|
|
@@ -5559,7 +5566,7 @@ import { InlineMath as InlineMath8 } from "react-katex";
|
|
|
5559
5566
|
// src/components/dnds/DraggableDroppableItem.tsx
|
|
5560
5567
|
import { useRef as useRef6 } from "react";
|
|
5561
5568
|
import { useDrag as useDrag2, useDrop as useDrop5 } from "react-dnd";
|
|
5562
|
-
import { jsx as
|
|
5569
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
5563
5570
|
var DraggableDroppableItem = ({
|
|
5564
5571
|
key,
|
|
5565
5572
|
item,
|
|
@@ -5597,12 +5604,12 @@ var DraggableDroppableItem = ({
|
|
|
5597
5604
|
});
|
|
5598
5605
|
const opacity = isDragging ? 0.4 : 1;
|
|
5599
5606
|
drag(drop(ref));
|
|
5600
|
-
return /* @__PURE__ */
|
|
5607
|
+
return /* @__PURE__ */ jsx35(
|
|
5601
5608
|
"div",
|
|
5602
5609
|
{
|
|
5603
5610
|
className: `${isDragging ? "w-[0px] opacity-0" : "w-full opacity-100"} transition-all duration-500`,
|
|
5604
5611
|
ref: dropRef,
|
|
5605
|
-
children: /* @__PURE__ */
|
|
5612
|
+
children: /* @__PURE__ */ jsx35("div", { ref, className: "w-full", style: { opacity }, children: component })
|
|
5606
5613
|
},
|
|
5607
5614
|
key
|
|
5608
5615
|
);
|
|
@@ -5610,7 +5617,7 @@ var DraggableDroppableItem = ({
|
|
|
5610
5617
|
var DraggableDroppableItem_default = DraggableDroppableItem;
|
|
5611
5618
|
|
|
5612
5619
|
// src/components/activities/material-content/OrderingActivityMaterialContent.tsx
|
|
5613
|
-
import { jsx as
|
|
5620
|
+
import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
5614
5621
|
var OrderingActivityMaterialContent = ({
|
|
5615
5622
|
uniqueValue,
|
|
5616
5623
|
answer,
|
|
@@ -5687,12 +5694,12 @@ var OrderingActivityMaterialContent = ({
|
|
|
5687
5694
|
return 0;
|
|
5688
5695
|
};
|
|
5689
5696
|
const answerMap = retrieveAnswerMap();
|
|
5690
|
-
return /* @__PURE__ */
|
|
5697
|
+
return /* @__PURE__ */ jsx36("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
|
|
5691
5698
|
const learnerAnswerState = checkAnswerState(
|
|
5692
5699
|
answerMap[materialKey] + "",
|
|
5693
5700
|
index + ""
|
|
5694
5701
|
);
|
|
5695
|
-
return /* @__PURE__ */
|
|
5702
|
+
return /* @__PURE__ */ jsx36("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ jsxs26(
|
|
5696
5703
|
"div",
|
|
5697
5704
|
{
|
|
5698
5705
|
className: `flex flex-row items-center my-4 mx-2`,
|
|
@@ -5700,26 +5707,26 @@ var OrderingActivityMaterialContent = ({
|
|
|
5700
5707
|
marginTop: view === "PC" ? calculateMarginTop(parseFloat(materialKey)) : 0
|
|
5701
5708
|
},
|
|
5702
5709
|
children: [
|
|
5703
|
-
/* @__PURE__ */
|
|
5710
|
+
/* @__PURE__ */ jsx36("div", { className: "mr-3", children: /* @__PURE__ */ jsx36(
|
|
5704
5711
|
"div",
|
|
5705
5712
|
{
|
|
5706
5713
|
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`,
|
|
5707
|
-
children: /* @__PURE__ */
|
|
5714
|
+
children: /* @__PURE__ */ jsx36(
|
|
5708
5715
|
"div",
|
|
5709
5716
|
{
|
|
5710
5717
|
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]`,
|
|
5711
|
-
children: /* @__PURE__ */
|
|
5718
|
+
children: /* @__PURE__ */ jsx36("p", { className: "", children: parseFloat(materialKey) + 1 })
|
|
5712
5719
|
}
|
|
5713
5720
|
)
|
|
5714
5721
|
}
|
|
5715
5722
|
) }),
|
|
5716
|
-
/* @__PURE__ */
|
|
5723
|
+
/* @__PURE__ */ jsx36(
|
|
5717
5724
|
DraggableDroppableItem_default,
|
|
5718
5725
|
{
|
|
5719
5726
|
item: { index: materialKey },
|
|
5720
5727
|
type: "ORDERING",
|
|
5721
5728
|
dropRef: drop,
|
|
5722
|
-
component: /* @__PURE__ */
|
|
5729
|
+
component: /* @__PURE__ */ jsx36(
|
|
5723
5730
|
"div",
|
|
5724
5731
|
{
|
|
5725
5732
|
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"}`,
|
|
@@ -5728,16 +5735,16 @@ var OrderingActivityMaterialContent = ({
|
|
|
5728
5735
|
setSelectedKey(materialKey);
|
|
5729
5736
|
}
|
|
5730
5737
|
},
|
|
5731
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */
|
|
5738
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx36("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5732
5739
|
materialMap[answerMap[materialKey]]
|
|
5733
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
5740
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx36(
|
|
5734
5741
|
"span",
|
|
5735
5742
|
{
|
|
5736
5743
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5737
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5744
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx36("span", { className: "text-2xl", children: /* @__PURE__ */ jsx36(InlineMath8, { math: inputPart.value }) }) : inputPart.value
|
|
5738
5745
|
},
|
|
5739
5746
|
index2
|
|
5740
|
-
)) }) : /* @__PURE__ */
|
|
5747
|
+
)) }) : /* @__PURE__ */ jsx36(
|
|
5741
5748
|
ShowMaterialMediaByContentType_default,
|
|
5742
5749
|
{
|
|
5743
5750
|
contentType: contentMap.type,
|
|
@@ -5769,7 +5776,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
5769
5776
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
5770
5777
|
|
|
5771
5778
|
// src/components/activities/OrderingActivityContent.tsx
|
|
5772
|
-
import { Fragment as Fragment7, jsx as
|
|
5779
|
+
import { Fragment as Fragment7, jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5773
5780
|
var OrderingActivityContent = ({
|
|
5774
5781
|
answer,
|
|
5775
5782
|
data,
|
|
@@ -5793,15 +5800,15 @@ var OrderingActivityContent = ({
|
|
|
5793
5800
|
changeAnswer(answer2);
|
|
5794
5801
|
};
|
|
5795
5802
|
return /* @__PURE__ */ jsxs27(Fragment7, { children: [
|
|
5796
|
-
/* @__PURE__ */
|
|
5803
|
+
/* @__PURE__ */ jsx37(
|
|
5797
5804
|
ActivityBodyContent_default,
|
|
5798
5805
|
{
|
|
5799
5806
|
bodyMap: orderingBodyMap,
|
|
5800
5807
|
templateType: "ORDERING"
|
|
5801
5808
|
}
|
|
5802
5809
|
),
|
|
5803
|
-
/* @__PURE__ */
|
|
5804
|
-
/* @__PURE__ */
|
|
5810
|
+
/* @__PURE__ */ jsx37(DividerLine_default, {}),
|
|
5811
|
+
/* @__PURE__ */ jsx37(
|
|
5805
5812
|
OrderingActivityMaterialContent_default,
|
|
5806
5813
|
{
|
|
5807
5814
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -5821,7 +5828,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
|
|
|
5821
5828
|
// src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx
|
|
5822
5829
|
import { useEffect as useEffect10, useState as useState18 } from "react";
|
|
5823
5830
|
import { InlineMath as InlineMath9 } from "react-katex";
|
|
5824
|
-
import { Fragment as Fragment8, jsx as
|
|
5831
|
+
import { Fragment as Fragment8, jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5825
5832
|
var TrueFalseActivityMaterialContent = ({
|
|
5826
5833
|
uniqueValue,
|
|
5827
5834
|
answer,
|
|
@@ -5875,13 +5882,13 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5875
5882
|
};
|
|
5876
5883
|
const answerMap = retrieveAnswerMap();
|
|
5877
5884
|
return /* @__PURE__ */ jsxs28("div", { className: "", children: [
|
|
5878
|
-
/* @__PURE__ */
|
|
5879
|
-
/* @__PURE__ */
|
|
5885
|
+
/* @__PURE__ */ jsx38("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx38("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
|
|
5886
|
+
/* @__PURE__ */ jsx38("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx38(DividerLine_default, {}) }),
|
|
5880
5887
|
/* @__PURE__ */ jsxs28("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
|
|
5881
|
-
/* @__PURE__ */
|
|
5882
|
-
/* @__PURE__ */
|
|
5888
|
+
/* @__PURE__ */ jsx38("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx38("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
|
|
5889
|
+
/* @__PURE__ */ jsx38("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx38("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
|
|
5883
5890
|
] }),
|
|
5884
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */
|
|
5891
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx38("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
|
|
5885
5892
|
const correctAnswer = materialMap.trueList.find(
|
|
5886
5893
|
(trueItem) => trueItem === shuffleOption
|
|
5887
5894
|
) !== void 0 ? "TRUE" : "FALSE";
|
|
@@ -5897,16 +5904,16 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5897
5904
|
{
|
|
5898
5905
|
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" : ""}`,
|
|
5899
5906
|
children: [
|
|
5900
|
-
/* @__PURE__ */
|
|
5907
|
+
/* @__PURE__ */ jsx38("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx38("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
5901
5908
|
shuffleOption
|
|
5902
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
5909
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx38(
|
|
5903
5910
|
"span",
|
|
5904
5911
|
{
|
|
5905
5912
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
5906
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
5913
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx38("span", { className: "text-2xl", children: /* @__PURE__ */ jsx38(InlineMath9, { math: inputPart.value }) }) : inputPart.value
|
|
5907
5914
|
},
|
|
5908
5915
|
index2
|
|
5909
|
-
)) }) : /* @__PURE__ */
|
|
5916
|
+
)) }) : /* @__PURE__ */ jsx38(
|
|
5910
5917
|
ShowMaterialMediaByContentType_default,
|
|
5911
5918
|
{
|
|
5912
5919
|
contentType: contentMap.type,
|
|
@@ -5916,7 +5923,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5916
5923
|
`${uniqueValue}-${index}`
|
|
5917
5924
|
) }),
|
|
5918
5925
|
/* @__PURE__ */ jsxs28("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
5919
|
-
/* @__PURE__ */
|
|
5926
|
+
/* @__PURE__ */ jsx38("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx38("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx38(
|
|
5920
5927
|
BaseImage_default,
|
|
5921
5928
|
{
|
|
5922
5929
|
src: answerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -5927,7 +5934,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5927
5934
|
}
|
|
5928
5935
|
}
|
|
5929
5936
|
) }) }),
|
|
5930
|
-
/* @__PURE__ */
|
|
5937
|
+
/* @__PURE__ */ jsx38("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx38("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx38(
|
|
5931
5938
|
BaseImage_default,
|
|
5932
5939
|
{
|
|
5933
5940
|
src: answerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -5945,12 +5952,12 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5945
5952
|
);
|
|
5946
5953
|
}) }) : /* @__PURE__ */ jsxs28(Fragment8, { children: [
|
|
5947
5954
|
answerMap.trueList.map((item) => /* @__PURE__ */ jsxs28("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
5948
|
-
/* @__PURE__ */
|
|
5949
|
-
/* @__PURE__ */
|
|
5955
|
+
/* @__PURE__ */ jsx38("div", { className: "flex-1", children: /* @__PURE__ */ jsx38("p", { children: item }) }),
|
|
5956
|
+
/* @__PURE__ */ jsx38("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx38("p", { className: "underline", children: i18n_default.t("true") }) })
|
|
5950
5957
|
] })),
|
|
5951
5958
|
answerMap.falseList.map((item) => /* @__PURE__ */ jsxs28("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
5952
|
-
/* @__PURE__ */
|
|
5953
|
-
/* @__PURE__ */
|
|
5959
|
+
/* @__PURE__ */ jsx38("div", { className: "flex-1", children: /* @__PURE__ */ jsx38("p", { children: item }) }),
|
|
5960
|
+
/* @__PURE__ */ jsx38("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx38("p", { className: "underline", children: i18n_default.t("false") }) })
|
|
5954
5961
|
] }))
|
|
5955
5962
|
] })
|
|
5956
5963
|
] });
|
|
@@ -5958,7 +5965,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
5958
5965
|
var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
|
|
5959
5966
|
|
|
5960
5967
|
// src/components/activities/TrueFalseActivityContent.tsx
|
|
5961
|
-
import { jsx as
|
|
5968
|
+
import { jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5962
5969
|
var TrueFalseActivityContent = ({
|
|
5963
5970
|
answer,
|
|
5964
5971
|
data,
|
|
@@ -6009,16 +6016,16 @@ var TrueFalseActivityContent = ({
|
|
|
6009
6016
|
changeAnswer(answer2);
|
|
6010
6017
|
};
|
|
6011
6018
|
return /* @__PURE__ */ jsxs29("div", { className: "flex flex-row flex-wrap", children: [
|
|
6012
|
-
/* @__PURE__ */
|
|
6019
|
+
/* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%]"}`, children: /* @__PURE__ */ jsx39(
|
|
6013
6020
|
ActivityBodyContent_default,
|
|
6014
6021
|
{
|
|
6015
6022
|
bodyMap: trueFalseBodyMap,
|
|
6016
6023
|
templateType: "GROUPING"
|
|
6017
6024
|
}
|
|
6018
6025
|
) }),
|
|
6019
|
-
/* @__PURE__ */
|
|
6020
|
-
/* @__PURE__ */
|
|
6021
|
-
/* @__PURE__ */
|
|
6026
|
+
/* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx39(DividerLine_default, {}) }),
|
|
6027
|
+
/* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx39(VerticalDividerLine_default, {}) }),
|
|
6028
|
+
/* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx39(
|
|
6022
6029
|
TrueFalseActivityMaterialContent_default,
|
|
6023
6030
|
{
|
|
6024
6031
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6037,7 +6044,7 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
|
|
|
6037
6044
|
|
|
6038
6045
|
// src/components/activities/solution-content/ActivitySolutionContent.tsx
|
|
6039
6046
|
import { InlineMath as InlineMath10 } from "react-katex";
|
|
6040
|
-
import { jsx as
|
|
6047
|
+
import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6041
6048
|
var ActivitySolutionContent = ({
|
|
6042
6049
|
activityTemplateType,
|
|
6043
6050
|
data
|
|
@@ -6074,21 +6081,21 @@ var ActivitySolutionContent = ({
|
|
|
6074
6081
|
const solutionMap = JSON.parse(solutionMapString);
|
|
6075
6082
|
if (!solutionMap) return;
|
|
6076
6083
|
if (Object.keys(solutionMap).length === 0) return;
|
|
6077
|
-
return /* @__PURE__ */
|
|
6078
|
-
/* @__PURE__ */
|
|
6084
|
+
return /* @__PURE__ */ jsx40("div", { className: "mx-2", children: /* @__PURE__ */ jsxs30("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
|
|
6085
|
+
/* @__PURE__ */ jsx40("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
|
|
6079
6086
|
Object.keys(solutionMap).map((key, index) => {
|
|
6080
6087
|
const currentItem = JSON.parse(solutionMap[key]);
|
|
6081
6088
|
const { value } = currentItem;
|
|
6082
|
-
return /* @__PURE__ */
|
|
6089
|
+
return /* @__PURE__ */ jsx40("p", { className: "my-3", children: /* @__PURE__ */ jsx40(
|
|
6083
6090
|
"span",
|
|
6084
6091
|
{
|
|
6085
6092
|
className: "text-xl whitespace-pre-wrap",
|
|
6086
6093
|
children: constructInputWithSpecialExpressionList(value).map(
|
|
6087
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
6094
|
+
(inputPart, index2) => /* @__PURE__ */ jsx40(
|
|
6088
6095
|
"span",
|
|
6089
6096
|
{
|
|
6090
6097
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6091
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
6098
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx40("span", { className: "text-2xl", children: /* @__PURE__ */ jsx40(InlineMath10, { math: inputPart.value }) }) : inputPart.value
|
|
6092
6099
|
},
|
|
6093
6100
|
index2
|
|
6094
6101
|
)
|
|
@@ -6105,13 +6112,13 @@ var ActivitySolutionContent_default = ActivitySolutionContent;
|
|
|
6105
6112
|
import { useEffect as useEffect11, useState as useState19 } from "react";
|
|
6106
6113
|
|
|
6107
6114
|
// src/components/boxes/SelectionBox.tsx
|
|
6108
|
-
import { jsx as
|
|
6115
|
+
import { jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6109
6116
|
var SelectionBox = ({
|
|
6110
6117
|
optionList,
|
|
6111
6118
|
selectedId,
|
|
6112
6119
|
handleSelectOnClick
|
|
6113
6120
|
}) => {
|
|
6114
|
-
return /* @__PURE__ */
|
|
6121
|
+
return /* @__PURE__ */ jsx41("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx41(
|
|
6115
6122
|
"div",
|
|
6116
6123
|
{
|
|
6117
6124
|
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`,
|
|
@@ -6125,7 +6132,7 @@ var SelectionBox = ({
|
|
|
6125
6132
|
children: [
|
|
6126
6133
|
option.icon,
|
|
6127
6134
|
/* @__PURE__ */ jsxs31("div", { className: "flex-1 flex flex-col items-center", children: [
|
|
6128
|
-
/* @__PURE__ */
|
|
6135
|
+
/* @__PURE__ */ jsx41("p", { children: option.text }),
|
|
6129
6136
|
option.subText ? /* @__PURE__ */ jsxs31("p", { className: "text-md", children: [
|
|
6130
6137
|
"(",
|
|
6131
6138
|
option.subText,
|
|
@@ -6143,7 +6150,7 @@ var SelectionBox_default = SelectionBox;
|
|
|
6143
6150
|
|
|
6144
6151
|
// src/components/activities/evaluation-rubric-content/ActivityEvaluationRubricContent.tsx
|
|
6145
6152
|
import { InlineMath as InlineMath11 } from "react-katex";
|
|
6146
|
-
import { jsx as
|
|
6153
|
+
import { jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6147
6154
|
var ActivityEvaluationRubricContent = ({
|
|
6148
6155
|
activityTemplateType,
|
|
6149
6156
|
data
|
|
@@ -6181,21 +6188,21 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6181
6188
|
const evaluationRubricMap = JSON.parse(evaluationRubricMapString);
|
|
6182
6189
|
if (!evaluationRubricMap) return;
|
|
6183
6190
|
if (Object.keys(evaluationRubricMap).length === 0) return;
|
|
6184
|
-
return /* @__PURE__ */
|
|
6185
|
-
/* @__PURE__ */
|
|
6191
|
+
return /* @__PURE__ */ jsx42("div", { className: "mx-2", children: /* @__PURE__ */ jsxs32("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
6192
|
+
/* @__PURE__ */ jsx42("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
6186
6193
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
|
6187
6194
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
6188
6195
|
const { value } = currentItem;
|
|
6189
|
-
return /* @__PURE__ */
|
|
6196
|
+
return /* @__PURE__ */ jsx42("p", { className: "my-3", children: /* @__PURE__ */ jsx42(
|
|
6190
6197
|
"span",
|
|
6191
6198
|
{
|
|
6192
6199
|
className: "text-xl whitespace-pre-wrap",
|
|
6193
6200
|
children: constructInputWithSpecialExpressionList(value).map(
|
|
6194
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
6201
|
+
(inputPart, index2) => /* @__PURE__ */ jsx42(
|
|
6195
6202
|
"span",
|
|
6196
6203
|
{
|
|
6197
6204
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6198
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
6205
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx42("span", { className: "text-2xl", children: /* @__PURE__ */ jsx42(InlineMath11, { math: inputPart.value }) }) : inputPart.value
|
|
6199
6206
|
},
|
|
6200
6207
|
index2
|
|
6201
6208
|
)
|
|
@@ -6209,7 +6216,7 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6209
6216
|
var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
|
|
6210
6217
|
|
|
6211
6218
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
6212
|
-
import { jsx as
|
|
6219
|
+
import { jsx as jsx43, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6213
6220
|
var ActivityPreviewByData = ({
|
|
6214
6221
|
data,
|
|
6215
6222
|
showType,
|
|
@@ -6294,8 +6301,8 @@ var ActivityPreviewByData = ({
|
|
|
6294
6301
|
const answer = constructAnswerBasedOnData(data);
|
|
6295
6302
|
return /* @__PURE__ */ jsxs33("div", { children: [
|
|
6296
6303
|
showType ? /* @__PURE__ */ jsxs33("div", { className: "mb-4", children: [
|
|
6297
|
-
showDescription ? /* @__PURE__ */
|
|
6298
|
-
/* @__PURE__ */
|
|
6304
|
+
showDescription ? /* @__PURE__ */ jsx43("div", { className: "my-2", children: /* @__PURE__ */ jsx43("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
6305
|
+
/* @__PURE__ */ jsx43(
|
|
6299
6306
|
SelectionBox_default,
|
|
6300
6307
|
{
|
|
6301
6308
|
optionList,
|
|
@@ -6306,7 +6313,7 @@ var ActivityPreviewByData = ({
|
|
|
6306
6313
|
}
|
|
6307
6314
|
)
|
|
6308
6315
|
] }) : null,
|
|
6309
|
-
selectedType ? /* @__PURE__ */
|
|
6316
|
+
selectedType ? /* @__PURE__ */ jsx43("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6310
6317
|
OrderingActivityContent_default,
|
|
6311
6318
|
{
|
|
6312
6319
|
answer,
|
|
@@ -6320,7 +6327,7 @@ var ActivityPreviewByData = ({
|
|
|
6320
6327
|
showCorrectAnswer: true,
|
|
6321
6328
|
isFullScreen
|
|
6322
6329
|
}
|
|
6323
|
-
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */
|
|
6330
|
+
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6324
6331
|
DropdownActivityContent_default,
|
|
6325
6332
|
{
|
|
6326
6333
|
answer,
|
|
@@ -6334,7 +6341,7 @@ var ActivityPreviewByData = ({
|
|
|
6334
6341
|
showCorrectAnswer: true,
|
|
6335
6342
|
isFullScreen
|
|
6336
6343
|
}
|
|
6337
|
-
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */
|
|
6344
|
+
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6338
6345
|
MCSAActivityContent_default,
|
|
6339
6346
|
{
|
|
6340
6347
|
answer,
|
|
@@ -6348,7 +6355,7 @@ var ActivityPreviewByData = ({
|
|
|
6348
6355
|
showCorrectAnswer: true,
|
|
6349
6356
|
isFullScreen
|
|
6350
6357
|
}
|
|
6351
|
-
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */
|
|
6358
|
+
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6352
6359
|
MCMAActivityContent_default,
|
|
6353
6360
|
{
|
|
6354
6361
|
answer,
|
|
@@ -6362,7 +6369,7 @@ var ActivityPreviewByData = ({
|
|
|
6362
6369
|
showCorrectAnswer: true,
|
|
6363
6370
|
isFullScreen
|
|
6364
6371
|
}
|
|
6365
|
-
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */
|
|
6372
|
+
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6366
6373
|
MatchingActivityContent_default,
|
|
6367
6374
|
{
|
|
6368
6375
|
answer,
|
|
@@ -6376,7 +6383,7 @@ var ActivityPreviewByData = ({
|
|
|
6376
6383
|
showCorrectAnswer: true,
|
|
6377
6384
|
isFullScreen
|
|
6378
6385
|
}
|
|
6379
|
-
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */
|
|
6386
|
+
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6380
6387
|
GroupingActivityContent_default,
|
|
6381
6388
|
{
|
|
6382
6389
|
answer,
|
|
@@ -6390,7 +6397,7 @@ var ActivityPreviewByData = ({
|
|
|
6390
6397
|
showCorrectAnswer: true,
|
|
6391
6398
|
isFullScreen
|
|
6392
6399
|
}
|
|
6393
|
-
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */
|
|
6400
|
+
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6394
6401
|
FillInTheBlanksActivityContent_default,
|
|
6395
6402
|
{
|
|
6396
6403
|
answer,
|
|
@@ -6404,7 +6411,7 @@ var ActivityPreviewByData = ({
|
|
|
6404
6411
|
showCorrectAnswer: true,
|
|
6405
6412
|
isFullScreen
|
|
6406
6413
|
}
|
|
6407
|
-
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */
|
|
6414
|
+
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6408
6415
|
OpenEndedActivityContent_default,
|
|
6409
6416
|
{
|
|
6410
6417
|
answer,
|
|
@@ -6414,7 +6421,7 @@ var ActivityPreviewByData = ({
|
|
|
6414
6421
|
data,
|
|
6415
6422
|
isFullScreen
|
|
6416
6423
|
}
|
|
6417
|
-
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */
|
|
6424
|
+
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ jsx43(
|
|
6418
6425
|
TrueFalseActivityContent_default,
|
|
6419
6426
|
{
|
|
6420
6427
|
answer,
|
|
@@ -6429,14 +6436,14 @@ var ActivityPreviewByData = ({
|
|
|
6429
6436
|
isFullScreen
|
|
6430
6437
|
}
|
|
6431
6438
|
) : null }, selectedType) : null,
|
|
6432
|
-
selectedType && showSolution ? /* @__PURE__ */
|
|
6439
|
+
selectedType && showSolution ? /* @__PURE__ */ jsx43("div", { className: "my-4", children: /* @__PURE__ */ jsx43(
|
|
6433
6440
|
ActivitySolutionContent_default,
|
|
6434
6441
|
{
|
|
6435
6442
|
activityTemplateType: selectedType,
|
|
6436
6443
|
data
|
|
6437
6444
|
}
|
|
6438
6445
|
) }) : null,
|
|
6439
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */
|
|
6446
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx43("div", { className: "my-4", children: /* @__PURE__ */ jsx43(
|
|
6440
6447
|
ActivityEvaluationRubricContent_default,
|
|
6441
6448
|
{
|
|
6442
6449
|
activityTemplateType: selectedType,
|
|
@@ -6448,9 +6455,9 @@ var ActivityPreviewByData = ({
|
|
|
6448
6455
|
var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
6449
6456
|
|
|
6450
6457
|
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
6451
|
-
import { jsx as
|
|
6458
|
+
import { jsx as jsx44 } from "react/jsx-runtime";
|
|
6452
6459
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
6453
|
-
return /* @__PURE__ */
|
|
6460
|
+
return /* @__PURE__ */ jsx44(
|
|
6454
6461
|
"div",
|
|
6455
6462
|
{
|
|
6456
6463
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -6460,7 +6467,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
6460
6467
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
6461
6468
|
|
|
6462
6469
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
6463
|
-
import { jsx as
|
|
6470
|
+
import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6464
6471
|
var LeftTextRightInputGroup = ({
|
|
6465
6472
|
type,
|
|
6466
6473
|
title,
|
|
@@ -6471,8 +6478,8 @@ var LeftTextRightInputGroup = ({
|
|
|
6471
6478
|
errorText
|
|
6472
6479
|
}) => {
|
|
6473
6480
|
return /* @__PURE__ */ jsxs34("div", { className: "w-full flex flex-row mx-2", children: [
|
|
6474
|
-
/* @__PURE__ */
|
|
6475
|
-
/* @__PURE__ */
|
|
6481
|
+
/* @__PURE__ */ jsx45("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ jsx45("p", { children: title }) }),
|
|
6482
|
+
/* @__PURE__ */ jsx45("div", { className: "flex-1", children: /* @__PURE__ */ jsx45(
|
|
6476
6483
|
InputGroup_default,
|
|
6477
6484
|
{
|
|
6478
6485
|
type,
|
|
@@ -6488,14 +6495,14 @@ var LeftTextRightInputGroup = ({
|
|
|
6488
6495
|
var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
6489
6496
|
|
|
6490
6497
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
6491
|
-
import { jsx as
|
|
6498
|
+
import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6492
6499
|
var SelectionCheckbox = ({
|
|
6493
6500
|
optionList,
|
|
6494
6501
|
selectedIdList,
|
|
6495
6502
|
handleSelectOnClick,
|
|
6496
6503
|
handleRemoveOnClick
|
|
6497
6504
|
}) => {
|
|
6498
|
-
return /* @__PURE__ */
|
|
6505
|
+
return /* @__PURE__ */ jsx46("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx46(
|
|
6499
6506
|
"div",
|
|
6500
6507
|
{
|
|
6501
6508
|
className: `${selectedIdList.findIndex(
|
|
@@ -6517,7 +6524,7 @@ var SelectionCheckbox = ({
|
|
|
6517
6524
|
(selectedId) => selectedId === option.id
|
|
6518
6525
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
6519
6526
|
children: [
|
|
6520
|
-
/* @__PURE__ */
|
|
6527
|
+
/* @__PURE__ */ jsx46(
|
|
6521
6528
|
BaseImage_default,
|
|
6522
6529
|
{
|
|
6523
6530
|
src: selectedIdList.findIndex(
|
|
@@ -6527,7 +6534,7 @@ var SelectionCheckbox = ({
|
|
|
6527
6534
|
size: "small"
|
|
6528
6535
|
}
|
|
6529
6536
|
),
|
|
6530
|
-
/* @__PURE__ */
|
|
6537
|
+
/* @__PURE__ */ jsx46("div", { className: "flex-1", children: /* @__PURE__ */ jsx46("p", { children: option.text }) })
|
|
6531
6538
|
]
|
|
6532
6539
|
}
|
|
6533
6540
|
)
|
|
@@ -6538,7 +6545,7 @@ var SelectionCheckbox = ({
|
|
|
6538
6545
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
6539
6546
|
|
|
6540
6547
|
// src/components/tabs/SelectionTab.tsx
|
|
6541
|
-
import { jsx as
|
|
6548
|
+
import { jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6542
6549
|
var SelectionTab = ({
|
|
6543
6550
|
optionList,
|
|
6544
6551
|
selectedId,
|
|
@@ -6548,7 +6555,7 @@ var SelectionTab = ({
|
|
|
6548
6555
|
textColor,
|
|
6549
6556
|
borderColor
|
|
6550
6557
|
}) => {
|
|
6551
|
-
return /* @__PURE__ */
|
|
6558
|
+
return /* @__PURE__ */ jsx47("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__ */ jsxs36(
|
|
6552
6559
|
"div",
|
|
6553
6560
|
{
|
|
6554
6561
|
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`,
|
|
@@ -6556,8 +6563,8 @@ var SelectionTab = ({
|
|
|
6556
6563
|
handleSelectOnClick(option.id);
|
|
6557
6564
|
},
|
|
6558
6565
|
children: [
|
|
6559
|
-
/* @__PURE__ */
|
|
6560
|
-
option.subTitle ? /* @__PURE__ */
|
|
6566
|
+
/* @__PURE__ */ jsx47("p", { className: "text-lg", children: option.title }),
|
|
6567
|
+
option.subTitle ? /* @__PURE__ */ jsx47("p", { className: "text-md", children: option.subTitle }) : null
|
|
6561
6568
|
]
|
|
6562
6569
|
},
|
|
6563
6570
|
index
|
|
@@ -6566,20 +6573,20 @@ var SelectionTab = ({
|
|
|
6566
6573
|
var SelectionTab_default = SelectionTab;
|
|
6567
6574
|
|
|
6568
6575
|
// src/components/tabs/SelectionTabFill.tsx
|
|
6569
|
-
import { jsx as
|
|
6576
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
6570
6577
|
var SelectionTabFill = ({
|
|
6571
6578
|
optionList,
|
|
6572
6579
|
selectedId,
|
|
6573
6580
|
handleSelectOnClick
|
|
6574
6581
|
}) => {
|
|
6575
|
-
return /* @__PURE__ */
|
|
6582
|
+
return /* @__PURE__ */ jsx48("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__ */ jsx48(
|
|
6576
6583
|
"div",
|
|
6577
6584
|
{
|
|
6578
6585
|
className: "cursor-pointer",
|
|
6579
6586
|
onClick: () => {
|
|
6580
6587
|
handleSelectOnClick(option.id);
|
|
6581
6588
|
},
|
|
6582
|
-
children: /* @__PURE__ */
|
|
6589
|
+
children: /* @__PURE__ */ jsx48(
|
|
6583
6590
|
"p",
|
|
6584
6591
|
{
|
|
6585
6592
|
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`,
|
|
@@ -6593,57 +6600,57 @@ var SelectionTabFill = ({
|
|
|
6593
6600
|
var SelectionTabFill_default = SelectionTabFill;
|
|
6594
6601
|
|
|
6595
6602
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
6596
|
-
import { jsx as
|
|
6603
|
+
import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6597
6604
|
var ActivityTemplateLabel = ({
|
|
6598
6605
|
title,
|
|
6599
6606
|
font
|
|
6600
6607
|
}) => {
|
|
6601
|
-
return /* @__PURE__ */
|
|
6602
|
-
/* @__PURE__ */
|
|
6603
|
-
/* @__PURE__ */
|
|
6608
|
+
return /* @__PURE__ */ jsx49("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs37("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6609
|
+
/* @__PURE__ */ jsx49(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
6610
|
+
/* @__PURE__ */ jsx49("p", { className: font ? font : "text-sm", children: title })
|
|
6604
6611
|
] }) });
|
|
6605
6612
|
};
|
|
6606
6613
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
6607
6614
|
|
|
6608
6615
|
// src/components/labels/BrandLabel.tsx
|
|
6609
|
-
import { jsx as
|
|
6616
|
+
import { jsx as jsx50, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
6610
6617
|
var BrandLabel = ({ title, icon, font }) => {
|
|
6611
|
-
return /* @__PURE__ */
|
|
6612
|
-
icon ? icon : /* @__PURE__ */
|
|
6613
|
-
/* @__PURE__ */
|
|
6618
|
+
return /* @__PURE__ */ jsx50("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs38("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6619
|
+
icon ? icon : /* @__PURE__ */ jsx50(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
6620
|
+
/* @__PURE__ */ jsx50("p", { className: font ? font : "text-sm", children: title })
|
|
6614
6621
|
] }) });
|
|
6615
6622
|
};
|
|
6616
6623
|
var BrandLabel_default = BrandLabel;
|
|
6617
6624
|
|
|
6618
6625
|
// src/components/labels/CoterieLabel.tsx
|
|
6619
|
-
import { jsx as
|
|
6626
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
6620
6627
|
var CoterieLabel = ({ title, font }) => {
|
|
6621
|
-
return /* @__PURE__ */
|
|
6628
|
+
return /* @__PURE__ */ jsx51("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsx51("p", { className: font ? font : "text-sm", children: title }) });
|
|
6622
6629
|
};
|
|
6623
6630
|
var CoterieLabel_default = CoterieLabel;
|
|
6624
6631
|
|
|
6625
6632
|
// src/components/labels/GradeLabel.tsx
|
|
6626
|
-
import { jsx as
|
|
6633
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
6627
6634
|
var GradeLabel = ({ title, font }) => {
|
|
6628
|
-
return /* @__PURE__ */
|
|
6635
|
+
return /* @__PURE__ */ jsx52("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsx52("p", { className: font ? font : "text-sm", children: title }) });
|
|
6629
6636
|
};
|
|
6630
6637
|
var GradeLabel_default = GradeLabel;
|
|
6631
6638
|
|
|
6632
6639
|
// src/components/labels/OutcomeLabel.tsx
|
|
6633
|
-
import { jsx as
|
|
6640
|
+
import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
6634
6641
|
var OutcomeLabel = ({ title, font }) => {
|
|
6635
|
-
return /* @__PURE__ */
|
|
6636
|
-
/* @__PURE__ */
|
|
6637
|
-
/* @__PURE__ */
|
|
6642
|
+
return /* @__PURE__ */ jsx53("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs39("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6643
|
+
/* @__PURE__ */ jsx53(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
6644
|
+
/* @__PURE__ */ jsx53("p", { className: font ? font : "text-sm", children: title })
|
|
6638
6645
|
] }) });
|
|
6639
6646
|
};
|
|
6640
6647
|
var OutcomeLabel_default = OutcomeLabel;
|
|
6641
6648
|
|
|
6642
6649
|
// src/components/labels/PersonalLabel.tsx
|
|
6643
|
-
import { jsx as
|
|
6650
|
+
import { jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
6644
6651
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
6645
|
-
return /* @__PURE__ */
|
|
6646
|
-
icon ? icon : /* @__PURE__ */
|
|
6652
|
+
return /* @__PURE__ */ jsx54("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ jsxs40("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6653
|
+
icon ? icon : /* @__PURE__ */ jsx54(
|
|
6647
6654
|
BaseImage_default,
|
|
6648
6655
|
{
|
|
6649
6656
|
src: "/icons/personal-label.webp",
|
|
@@ -6651,16 +6658,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
6651
6658
|
size: "xsmall"
|
|
6652
6659
|
}
|
|
6653
6660
|
),
|
|
6654
|
-
/* @__PURE__ */
|
|
6661
|
+
/* @__PURE__ */ jsx54("p", { className: font ? font : "text-sm", children: title })
|
|
6655
6662
|
] }) });
|
|
6656
6663
|
};
|
|
6657
6664
|
var PersonalLabel_default = PersonalLabel;
|
|
6658
6665
|
|
|
6659
6666
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
6660
|
-
import { jsx as
|
|
6667
|
+
import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
6661
6668
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
6662
|
-
return /* @__PURE__ */
|
|
6663
|
-
icon ? icon : /* @__PURE__ */
|
|
6669
|
+
return /* @__PURE__ */ jsx55("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", children: /* @__PURE__ */ jsxs41("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6670
|
+
icon ? icon : /* @__PURE__ */ jsx55(
|
|
6664
6671
|
BaseImage_default,
|
|
6665
6672
|
{
|
|
6666
6673
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -6668,55 +6675,55 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
6668
6675
|
size: "xsmall"
|
|
6669
6676
|
}
|
|
6670
6677
|
),
|
|
6671
|
-
/* @__PURE__ */
|
|
6678
|
+
/* @__PURE__ */ jsx55("p", { className: font ? font : "text-sm", children: title })
|
|
6672
6679
|
] }) });
|
|
6673
6680
|
};
|
|
6674
6681
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
6675
6682
|
|
|
6676
6683
|
// src/components/labels/ActivityLabel.tsx
|
|
6677
|
-
import { jsx as
|
|
6684
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
6678
6685
|
var ActivityLabel = ({ title, font }) => {
|
|
6679
|
-
return /* @__PURE__ */
|
|
6686
|
+
return /* @__PURE__ */ jsx56("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", children: /* @__PURE__ */ jsx56("p", { className: font ? font : "text-sm", children: title }) });
|
|
6680
6687
|
};
|
|
6681
6688
|
var ActivityLabel_default = ActivityLabel;
|
|
6682
6689
|
|
|
6683
6690
|
// src/components/infos/InfoWithText.tsx
|
|
6684
|
-
import { jsx as
|
|
6691
|
+
import { jsx as jsx57, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
6685
6692
|
var InfoWithText = (props) => {
|
|
6686
6693
|
const { value } = props;
|
|
6687
6694
|
return /* @__PURE__ */ jsxs42("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
6688
|
-
/* @__PURE__ */
|
|
6689
|
-
/* @__PURE__ */
|
|
6695
|
+
/* @__PURE__ */ jsx57(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
6696
|
+
/* @__PURE__ */ jsx57("div", { className: "flex-1", children: /* @__PURE__ */ jsx57("p", { className: "", children: value }) })
|
|
6690
6697
|
] });
|
|
6691
6698
|
};
|
|
6692
6699
|
var InfoWithText_default = InfoWithText;
|
|
6693
6700
|
|
|
6694
6701
|
// src/components/texts/InputWithSpecialExpression.tsx
|
|
6695
6702
|
import { InlineMath as InlineMath12 } from "react-katex";
|
|
6696
|
-
import { jsx as
|
|
6703
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
6697
6704
|
var InputWithSpecialExpression = ({
|
|
6698
6705
|
value,
|
|
6699
6706
|
showSpecialOnly
|
|
6700
6707
|
}) => {
|
|
6701
6708
|
const inputWithSpecialExpressionList = constructInputWithSpecialExpressionList(value);
|
|
6702
|
-
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */
|
|
6709
|
+
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ jsx58("div", { className: "m-2", children: /* @__PURE__ */ jsx58("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ jsx58(
|
|
6703
6710
|
"span",
|
|
6704
6711
|
{
|
|
6705
6712
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6706
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
6713
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx58("span", { className: "text-lg", children: /* @__PURE__ */ jsx58(InlineMath12, { math: inputPart.value }, index) }) : inputPart.value
|
|
6707
6714
|
}
|
|
6708
|
-
)) }) }) : null : /* @__PURE__ */
|
|
6715
|
+
)) }) }) : null : /* @__PURE__ */ jsx58("div", { className: "m-2", children: /* @__PURE__ */ jsx58("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ jsx58(
|
|
6709
6716
|
"span",
|
|
6710
6717
|
{
|
|
6711
6718
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6712
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
6719
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx58("span", { className: "text-lg", children: /* @__PURE__ */ jsx58(InlineMath12, { math: inputPart.value }, index) }) : inputPart.value
|
|
6713
6720
|
}
|
|
6714
6721
|
)) }) });
|
|
6715
6722
|
};
|
|
6716
6723
|
var InputWithSpecialExpression_default = InputWithSpecialExpression;
|
|
6717
6724
|
|
|
6718
6725
|
// src/components/titles/BaseTitle.tsx
|
|
6719
|
-
import { jsx as
|
|
6726
|
+
import { jsx as jsx59, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
6720
6727
|
var BaseTitle = ({
|
|
6721
6728
|
title,
|
|
6722
6729
|
totalItemCount,
|
|
@@ -6732,15 +6739,15 @@ var BaseTitle = ({
|
|
|
6732
6739
|
itemName
|
|
6733
6740
|
] }) : null
|
|
6734
6741
|
] }),
|
|
6735
|
-
description ? /* @__PURE__ */
|
|
6742
|
+
description ? /* @__PURE__ */ jsx59("p", { className: "", children: description }) : null
|
|
6736
6743
|
] });
|
|
6737
6744
|
};
|
|
6738
6745
|
var BaseTitle_default = BaseTitle;
|
|
6739
6746
|
|
|
6740
6747
|
// src/components/titles/SubTitle.tsx
|
|
6741
|
-
import { jsx as
|
|
6748
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
6742
6749
|
var SubTitle = ({ title }) => {
|
|
6743
|
-
return /* @__PURE__ */
|
|
6750
|
+
return /* @__PURE__ */ jsx60("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
6744
6751
|
};
|
|
6745
6752
|
var SubTitle_default = SubTitle;
|
|
6746
6753
|
|
|
@@ -8898,40 +8905,40 @@ var retrieveOutcomePlanTypeOptionList = () => {
|
|
|
8898
8905
|
var retrieveTeachingMethodologyOptionList = () => {
|
|
8899
8906
|
return [
|
|
8900
8907
|
{
|
|
8901
|
-
value: "
|
|
8902
|
-
text: i18n_default.t("
|
|
8908
|
+
value: "FIVE_E_LEARNING_MODEL",
|
|
8909
|
+
text: i18n_default.t("FIVE_E_LEARNING_MODEL")
|
|
8903
8910
|
},
|
|
8904
8911
|
{
|
|
8905
|
-
value: "
|
|
8906
|
-
text: i18n_default.t("
|
|
8912
|
+
value: "STEM_LEARNING_MODEL",
|
|
8913
|
+
text: i18n_default.t("STEM_LEARNING_MODEL")
|
|
8907
8914
|
},
|
|
8908
8915
|
{
|
|
8909
|
-
value: "
|
|
8910
|
-
text: i18n_default.t("
|
|
8916
|
+
value: "ARGUMENTATION_BASED_LEARNING_APPROACH",
|
|
8917
|
+
text: i18n_default.t("ARGUMENTATION_BASED_LEARNING_APPROACH")
|
|
8911
8918
|
},
|
|
8912
8919
|
{
|
|
8913
|
-
value: "
|
|
8914
|
-
text: i18n_default.t("
|
|
8920
|
+
value: "GEMS_BASED_LEARNING_APPROACH",
|
|
8921
|
+
text: i18n_default.t("GEMS_BASED_LEARNING_APPROACH")
|
|
8915
8922
|
},
|
|
8916
8923
|
{
|
|
8917
|
-
value: "
|
|
8918
|
-
text: i18n_default.t("
|
|
8924
|
+
value: "PROBLEM_BASED_LEARNING_APPROACH",
|
|
8925
|
+
text: i18n_default.t("PROBLEM_BASED_LEARNING_APPROACH")
|
|
8919
8926
|
},
|
|
8920
8927
|
{
|
|
8921
|
-
value: "
|
|
8922
|
-
text: i18n_default.t("
|
|
8928
|
+
value: "PROJECT_BASED_LEARNING_APPROACH",
|
|
8929
|
+
text: i18n_default.t("PROJECT_BASED_LEARNING_APPROACH")
|
|
8923
8930
|
},
|
|
8924
8931
|
{
|
|
8925
|
-
value: "
|
|
8926
|
-
text: i18n_default.t("
|
|
8932
|
+
value: "INQUIRY_BASED_LEARNING_APPROACH",
|
|
8933
|
+
text: i18n_default.t("INQUIRY_BASED_LEARNING_APPROACH")
|
|
8927
8934
|
},
|
|
8928
8935
|
{
|
|
8929
|
-
value: "
|
|
8930
|
-
text: i18n_default.t("
|
|
8936
|
+
value: "SOCIAL_EMOTIONAL_LEARNING_APPROACH",
|
|
8937
|
+
text: i18n_default.t("SOCIAL_EMOTIONAL_LEARNING_APPROACH")
|
|
8931
8938
|
},
|
|
8932
8939
|
{
|
|
8933
|
-
value: "
|
|
8934
|
-
text: i18n_default.t("
|
|
8940
|
+
value: "KINESTHETIC_LEARNING_STYLE",
|
|
8941
|
+
text: i18n_default.t("KINESTHETIC_LEARNING_STYLE")
|
|
8935
8942
|
},
|
|
8936
8943
|
{
|
|
8937
8944
|
value: "COMMON_KNOWLEDGE_STRUCTURING_MODEL",
|
|
@@ -8958,8 +8965,8 @@ var retrieveTeachingMethodologyOptionList = () => {
|
|
|
8958
8965
|
text: i18n_default.t("PROCESS_BASED_TEACHING_APPROACH")
|
|
8959
8966
|
},
|
|
8960
8967
|
{
|
|
8961
|
-
value: "
|
|
8962
|
-
text: i18n_default.t("
|
|
8968
|
+
value: "SIX_THINKING_HATS_THINKING_METHOD",
|
|
8969
|
+
text: i18n_default.t("SIX_THINKING_HATS_THINKING_METHOD")
|
|
8963
8970
|
},
|
|
8964
8971
|
{
|
|
8965
8972
|
value: "CONSTRUCTIVIST_LEARNING_APPROACH",
|
|
@@ -8978,8 +8985,8 @@ var retrieveTeachingMethodologyOptionList = () => {
|
|
|
8978
8985
|
var retrieveActivityMethodologyOptionList = () => {
|
|
8979
8986
|
return [
|
|
8980
8987
|
{
|
|
8981
|
-
value: "
|
|
8982
|
-
text: i18n_default.t("
|
|
8988
|
+
value: "STEM_LEARNING_MODEL",
|
|
8989
|
+
text: i18n_default.t("STEM_LEARNING_MODEL")
|
|
8983
8990
|
},
|
|
8984
8991
|
{
|
|
8985
8992
|
value: "EXPERIMENT_AND_OBSERVATION",
|
|
@@ -9073,6 +9080,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
9073
9080
|
};
|
|
9074
9081
|
export {
|
|
9075
9082
|
ActivityBodyContent_default as ActivityBodyContent,
|
|
9083
|
+
ActivityEmptyContent_default as ActivityEmptyContent,
|
|
9076
9084
|
ActivityLabel_default as ActivityLabel,
|
|
9077
9085
|
ActivityPreviewByData_default as ActivityPreviewByData,
|
|
9078
9086
|
ActivitySolutionContent_default as ActivitySolutionContent,
|