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