catchup-library-web 2.4.2 → 2.4.4
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.js +21 -3
- package/dist/index.mjs +155 -137
- package/package.json +1 -1
- package/src/components/modals/BaseModal.tsx +9 -0
- package/src/utilization/StorageUtilization.ts +8 -1
package/dist/index.js
CHANGED
|
@@ -1237,11 +1237,22 @@ var BaseModal = ({
|
|
|
1237
1237
|
}
|
|
1238
1238
|
},
|
|
1239
1239
|
contentLabel: "",
|
|
1240
|
-
children: customSize ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: `${customSize} font-quicksand`, children }) : /* @__PURE__ */ (0, import_jsx_runtime15.
|
|
1240
|
+
children: customSize ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: `${customSize} font-quicksand`, children }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
1241
1241
|
"div",
|
|
1242
1242
|
{
|
|
1243
1243
|
className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
|
|
1244
|
-
children
|
|
1244
|
+
children: [
|
|
1245
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex flex-row justify-end px-2 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1246
|
+
BaseImage_default,
|
|
1247
|
+
{
|
|
1248
|
+
src: "/icons/cross-red.webp",
|
|
1249
|
+
alt: "cross-red",
|
|
1250
|
+
size: "medium",
|
|
1251
|
+
onClick: onRequestClose
|
|
1252
|
+
}
|
|
1253
|
+
) }),
|
|
1254
|
+
children
|
|
1255
|
+
]
|
|
1245
1256
|
}
|
|
1246
1257
|
)
|
|
1247
1258
|
}
|
|
@@ -6429,7 +6440,14 @@ var retrieveFileTypeFromExtension = (format) => {
|
|
|
6429
6440
|
return "";
|
|
6430
6441
|
};
|
|
6431
6442
|
var retrieveFileTypeOptionList = (optionType) => {
|
|
6432
|
-
if (optionType === "
|
|
6443
|
+
if (optionType === "IMAGE_ONLY") {
|
|
6444
|
+
return [
|
|
6445
|
+
{
|
|
6446
|
+
text: i18n_default.t("IMAGE"),
|
|
6447
|
+
value: "IMAGE"
|
|
6448
|
+
}
|
|
6449
|
+
];
|
|
6450
|
+
} else if (optionType === "PDF_ONLY") {
|
|
6433
6451
|
return [
|
|
6434
6452
|
{
|
|
6435
6453
|
text: i18n_default.t("PDF"),
|
package/dist/index.mjs
CHANGED
|
@@ -967,7 +967,7 @@ var BaseLoadingWithText_default = BaseLoadingWithText;
|
|
|
967
967
|
|
|
968
968
|
// src/components/modals/BaseModal.tsx
|
|
969
969
|
import Modal from "react-modal";
|
|
970
|
-
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
970
|
+
import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
971
971
|
var BaseModal = ({
|
|
972
972
|
isOpen,
|
|
973
973
|
size,
|
|
@@ -1004,11 +1004,22 @@ var BaseModal = ({
|
|
|
1004
1004
|
}
|
|
1005
1005
|
},
|
|
1006
1006
|
contentLabel: "",
|
|
1007
|
-
children: customSize ? /* @__PURE__ */ jsx15("div", { className: `${customSize} font-quicksand`, children }) : /* @__PURE__ */
|
|
1007
|
+
children: customSize ? /* @__PURE__ */ jsx15("div", { className: `${customSize} font-quicksand`, children }) : /* @__PURE__ */ jsxs10(
|
|
1008
1008
|
"div",
|
|
1009
1009
|
{
|
|
1010
1010
|
className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
|
|
1011
|
-
children
|
|
1011
|
+
children: [
|
|
1012
|
+
/* @__PURE__ */ jsx15("div", { className: "flex flex-row justify-end px-2 py-2", children: /* @__PURE__ */ jsx15(
|
|
1013
|
+
BaseImage_default,
|
|
1014
|
+
{
|
|
1015
|
+
src: "/icons/cross-red.webp",
|
|
1016
|
+
alt: "cross-red",
|
|
1017
|
+
size: "medium",
|
|
1018
|
+
onClick: onRequestClose
|
|
1019
|
+
}
|
|
1020
|
+
) }),
|
|
1021
|
+
children
|
|
1022
|
+
]
|
|
1012
1023
|
}
|
|
1013
1024
|
)
|
|
1014
1025
|
}
|
|
@@ -1019,7 +1030,7 @@ var BaseModal_default = BaseModal;
|
|
|
1019
1030
|
// src/components/pdfs/BasePDF.tsx
|
|
1020
1031
|
import { useState as useState10 } from "react";
|
|
1021
1032
|
import { Document, Page } from "react-pdf";
|
|
1022
|
-
import { jsx as jsx16, jsxs as
|
|
1033
|
+
import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1023
1034
|
var BasePDF = ({ file }) => {
|
|
1024
1035
|
const [pageNumber, setPageNumber] = useState10(1);
|
|
1025
1036
|
const [numberOfPages, setNumberOfPages] = useState10(0);
|
|
@@ -1027,9 +1038,9 @@ var BasePDF = ({ file }) => {
|
|
|
1027
1038
|
setPageNumber(1);
|
|
1028
1039
|
setNumberOfPages(numPages);
|
|
1029
1040
|
};
|
|
1030
|
-
return /* @__PURE__ */
|
|
1041
|
+
return /* @__PURE__ */ jsxs11(Document, { file, onLoadSuccess: handleOnDocumentLoadSuccess, children: [
|
|
1031
1042
|
/* @__PURE__ */ jsx16(Page, { pageNumber }),
|
|
1032
|
-
/* @__PURE__ */
|
|
1043
|
+
/* @__PURE__ */ jsxs11("div", { className: "flex flex-row items-center justify-center", children: [
|
|
1033
1044
|
pageNumber === 1 ? null : /* @__PURE__ */ jsx16("div", { className: "px-2", children: /* @__PURE__ */ jsx16("div", { className: "cursor-pointer", children: /* @__PURE__ */ jsx16(
|
|
1034
1045
|
BaseImage_default,
|
|
1035
1046
|
{
|
|
@@ -3094,7 +3105,7 @@ var retrieveActivityCountOptionList = () => {
|
|
|
3094
3105
|
|
|
3095
3106
|
// src/components/activities/body-contents/ShowBodyMediaByContentType.tsx
|
|
3096
3107
|
import { InlineMath } from "react-katex";
|
|
3097
|
-
import { jsx as jsx18, jsxs as
|
|
3108
|
+
import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3098
3109
|
var ShowBodyMediaByContentType = ({
|
|
3099
3110
|
index,
|
|
3100
3111
|
type,
|
|
@@ -3194,7 +3205,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3194
3205
|
);
|
|
3195
3206
|
currentIndex++;
|
|
3196
3207
|
valuePartList.push(
|
|
3197
|
-
/* @__PURE__ */
|
|
3208
|
+
/* @__PURE__ */ jsxs12(
|
|
3198
3209
|
"div",
|
|
3199
3210
|
{
|
|
3200
3211
|
className: "relative w-[200px]",
|
|
@@ -3328,7 +3339,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3328
3339
|
if (regexMatchImageText) {
|
|
3329
3340
|
const imageText = regexMatchImageText[1];
|
|
3330
3341
|
valuePartList.push(
|
|
3331
|
-
/* @__PURE__ */
|
|
3342
|
+
/* @__PURE__ */ jsxs12(
|
|
3332
3343
|
"div",
|
|
3333
3344
|
{
|
|
3334
3345
|
className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2",
|
|
@@ -3377,7 +3388,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3377
3388
|
}
|
|
3378
3389
|
},
|
|
3379
3390
|
contentLabel: "Image Fullscreen View",
|
|
3380
|
-
children: /* @__PURE__ */
|
|
3391
|
+
children: /* @__PURE__ */ jsxs12("div", { className: "flex-1 flex flex-col", children: [
|
|
3381
3392
|
/* @__PURE__ */ jsx18("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx18(
|
|
3382
3393
|
BaseImage_default,
|
|
3383
3394
|
{
|
|
@@ -3408,7 +3419,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3408
3419
|
case "TEXT":
|
|
3409
3420
|
return /* @__PURE__ */ jsx18("div", { className: "mb-1 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ jsx18("p", { className: "whitespace-pre-wrap", children: retrieveValueParts(value) }) });
|
|
3410
3421
|
case "IMAGE":
|
|
3411
|
-
return /* @__PURE__ */ jsx18("div", { className: "mb-1 flex flex-col items-center relative", children: /* @__PURE__ */
|
|
3422
|
+
return /* @__PURE__ */ jsx18("div", { className: "mb-1 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs12(
|
|
3412
3423
|
"div",
|
|
3413
3424
|
{
|
|
3414
3425
|
className: `${convertToPercentage(
|
|
@@ -3458,7 +3469,7 @@ var ShowBodyMediaByContentType = ({
|
|
|
3458
3469
|
return null;
|
|
3459
3470
|
}
|
|
3460
3471
|
};
|
|
3461
|
-
return /* @__PURE__ */
|
|
3472
|
+
return /* @__PURE__ */ jsxs12("div", { className: "w-full", children: [
|
|
3462
3473
|
RenderShowFullScreenItem(),
|
|
3463
3474
|
RenderMainContent()
|
|
3464
3475
|
] }, `body-content-${index}`);
|
|
@@ -3580,7 +3591,7 @@ import { InlineMath as InlineMath2 } from "react-katex";
|
|
|
3580
3591
|
// src/components/groups/InputGroup.tsx
|
|
3581
3592
|
import Select from "react-select";
|
|
3582
3593
|
import { useEffect as useEffect3, useRef, useState as useState12, useCallback } from "react";
|
|
3583
|
-
import { Fragment, jsx as jsx22, jsxs as
|
|
3594
|
+
import { Fragment, jsx as jsx22, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3584
3595
|
var InputGroup = ({
|
|
3585
3596
|
type,
|
|
3586
3597
|
title,
|
|
@@ -3703,8 +3714,8 @@ var InputGroup = ({
|
|
|
3703
3714
|
onRequestClose: () => {
|
|
3704
3715
|
setShowMathConstructor(false);
|
|
3705
3716
|
},
|
|
3706
|
-
children: /* @__PURE__ */ jsx22(FullCard_default, { children: /* @__PURE__ */ jsx22("div", { className: "bg-white rounded-lg overflow-hidden", children: /* @__PURE__ */
|
|
3707
|
-
/* @__PURE__ */
|
|
3717
|
+
children: /* @__PURE__ */ jsx22(FullCard_default, { children: /* @__PURE__ */ jsx22("div", { className: "bg-white rounded-lg overflow-hidden", children: /* @__PURE__ */ jsxs13("div", { className: "p-6 space-y-6", children: [
|
|
3718
|
+
/* @__PURE__ */ jsxs13("div", { children: [
|
|
3708
3719
|
/* @__PURE__ */ jsx22("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: i18n_default.t("math_editor") }),
|
|
3709
3720
|
/* @__PURE__ */ jsx22("div", { className: "border border-catchup-gray-100 rounded-catchup-large focus-within:border-catchup-blue-400 focus-within:shadow-input", children: /* @__PURE__ */ jsx22(
|
|
3710
3721
|
"math-field",
|
|
@@ -3733,9 +3744,9 @@ var InputGroup = ({
|
|
|
3733
3744
|
}
|
|
3734
3745
|
) })
|
|
3735
3746
|
] }),
|
|
3736
|
-
/* @__PURE__ */
|
|
3747
|
+
/* @__PURE__ */ jsxs13("div", { children: [
|
|
3737
3748
|
/* @__PURE__ */ jsx22("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: i18n_default.t("latex_output") }),
|
|
3738
|
-
/* @__PURE__ */
|
|
3749
|
+
/* @__PURE__ */ jsxs13("div", { className: "relative", children: [
|
|
3739
3750
|
/* @__PURE__ */ jsx22(
|
|
3740
3751
|
"textarea",
|
|
3741
3752
|
{
|
|
@@ -3762,7 +3773,7 @@ var InputGroup = ({
|
|
|
3762
3773
|
);
|
|
3763
3774
|
};
|
|
3764
3775
|
const CheckboxInputGroup = () => {
|
|
3765
|
-
return /* @__PURE__ */
|
|
3776
|
+
return /* @__PURE__ */ jsxs13(
|
|
3766
3777
|
"div",
|
|
3767
3778
|
{
|
|
3768
3779
|
className: "flex flex-row items-center gap-x-1 cursor-pointer",
|
|
@@ -3784,7 +3795,7 @@ var InputGroup = ({
|
|
|
3784
3795
|
);
|
|
3785
3796
|
};
|
|
3786
3797
|
const FileInputGroup = () => {
|
|
3787
|
-
return /* @__PURE__ */
|
|
3798
|
+
return /* @__PURE__ */ jsxs13("div", { className: "my-1", children: [
|
|
3788
3799
|
title ? /* @__PURE__ */ jsx22("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
3789
3800
|
/* @__PURE__ */ jsx22(
|
|
3790
3801
|
"input",
|
|
@@ -3803,7 +3814,7 @@ var InputGroup = ({
|
|
|
3803
3814
|
] });
|
|
3804
3815
|
};
|
|
3805
3816
|
const DateInputGroup = () => {
|
|
3806
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsxs13("div", { className: "my-1", children: [
|
|
3807
3818
|
title ? /* @__PURE__ */ jsx22("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
|
|
3808
3819
|
/* @__PURE__ */ jsx22(
|
|
3809
3820
|
"input",
|
|
@@ -3822,7 +3833,7 @@ var InputGroup = ({
|
|
|
3822
3833
|
] });
|
|
3823
3834
|
};
|
|
3824
3835
|
const SearchableSelectInputGroup = () => {
|
|
3825
|
-
return /* @__PURE__ */
|
|
3836
|
+
return /* @__PURE__ */ jsxs13("div", { className: "my-1", children: [
|
|
3826
3837
|
title ? /* @__PURE__ */ jsx22("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400 ", children: title }) : null,
|
|
3827
3838
|
/* @__PURE__ */ jsx22(
|
|
3828
3839
|
Select,
|
|
@@ -3887,10 +3898,10 @@ var InputGroup = ({
|
|
|
3887
3898
|
] });
|
|
3888
3899
|
};
|
|
3889
3900
|
const TextAreaInputGroup = () => {
|
|
3890
|
-
return /* @__PURE__ */
|
|
3891
|
-
/* @__PURE__ */
|
|
3901
|
+
return /* @__PURE__ */ jsxs13("div", { className: "my-1 flex-1 flex flex-col relative", children: [
|
|
3902
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex flex-row justify-between items-center", children: [
|
|
3892
3903
|
/* @__PURE__ */ jsx22("div", { children: title ? /* @__PURE__ */ jsx22("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
|
|
3893
|
-
/* @__PURE__ */ jsx22("div", { children: value && limit ? /* @__PURE__ */
|
|
3904
|
+
/* @__PURE__ */ jsx22("div", { children: value && limit ? /* @__PURE__ */ jsxs13("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
|
|
3894
3905
|
value.length,
|
|
3895
3906
|
" / ",
|
|
3896
3907
|
limit
|
|
@@ -3915,7 +3926,7 @@ var InputGroup = ({
|
|
|
3915
3926
|
className: "absolute right-2 top-1/2 transform -translate-y-1/2 bg-catchup-blue-400 text-white rounded-md px-3 py-1 shadow-sm hover:bg-catchup-blue-500 transition-colors duration-200 z-10",
|
|
3916
3927
|
onClick: handleOpenMathConstructor,
|
|
3917
3928
|
type: "button",
|
|
3918
|
-
children: /* @__PURE__ */
|
|
3929
|
+
children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-1", children: [
|
|
3919
3930
|
/* @__PURE__ */ jsx22("span", { className: "text-sm font-medium", children: "\u{1D453}(x)" }),
|
|
3920
3931
|
/* @__PURE__ */ jsx22(
|
|
3921
3932
|
"svg",
|
|
@@ -3941,10 +3952,10 @@ var InputGroup = ({
|
|
|
3941
3952
|
] });
|
|
3942
3953
|
};
|
|
3943
3954
|
const TextInputGroup = () => {
|
|
3944
|
-
return /* @__PURE__ */
|
|
3945
|
-
/* @__PURE__ */
|
|
3955
|
+
return /* @__PURE__ */ jsxs13("div", { className: "my-1 relative", children: [
|
|
3956
|
+
/* @__PURE__ */ jsxs13("div", { className: "flex flex-row justify-between items-center", children: [
|
|
3946
3957
|
/* @__PURE__ */ jsx22("div", { children: title ? /* @__PURE__ */ jsx22("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
|
|
3947
|
-
/* @__PURE__ */ jsx22("div", { children: value && limit ? /* @__PURE__ */
|
|
3958
|
+
/* @__PURE__ */ jsx22("div", { children: value && limit ? /* @__PURE__ */ jsxs13("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
|
|
3948
3959
|
value.length,
|
|
3949
3960
|
" / ",
|
|
3950
3961
|
limit
|
|
@@ -3978,7 +3989,7 @@ var InputGroup = ({
|
|
|
3978
3989
|
className: "absolute right-2 top-1/2 transform -translate-y-1/2 bg-catchup-blue-400 text-white rounded-md px-3 py-1 shadow-sm hover:bg-catchup-blue-500 transition-colors duration-200",
|
|
3979
3990
|
onClick: handleOpenMathConstructor,
|
|
3980
3991
|
type: "button",
|
|
3981
|
-
children: /* @__PURE__ */
|
|
3992
|
+
children: /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-1", children: [
|
|
3982
3993
|
/* @__PURE__ */ jsx22("span", { className: "text-sm font-medium", children: "\u{1D453}(x)" }),
|
|
3983
3994
|
/* @__PURE__ */ jsx22(
|
|
3984
3995
|
"svg",
|
|
@@ -4020,7 +4031,7 @@ var InputGroup = ({
|
|
|
4020
4031
|
return CheckboxInputGroup();
|
|
4021
4032
|
}
|
|
4022
4033
|
};
|
|
4023
|
-
return /* @__PURE__ */
|
|
4034
|
+
return /* @__PURE__ */ jsxs13(Fragment, { children: [
|
|
4024
4035
|
RenderMainContent(),
|
|
4025
4036
|
/* @__PURE__ */ jsx22(MathConstructorModal, {})
|
|
4026
4037
|
] });
|
|
@@ -4154,7 +4165,7 @@ var getSystemLanguageFromCurriculumType = (curriculumType) => {
|
|
|
4154
4165
|
|
|
4155
4166
|
// src/components/dropdowns/MediaDropdown.tsx
|
|
4156
4167
|
import { useState as useState13, useEffect as useEffect4, useRef as useRef2 } from "react";
|
|
4157
|
-
import { jsx as jsx23, jsxs as
|
|
4168
|
+
import { jsx as jsx23, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4158
4169
|
var MediaDropdown = ({ id, answer, optionList }) => {
|
|
4159
4170
|
const [showDropdown, setShowDropdown] = useState13(false);
|
|
4160
4171
|
const dropdownRef = useRef2(null);
|
|
@@ -4184,7 +4195,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
|
|
|
4184
4195
|
}
|
|
4185
4196
|
setShowDropdown(false);
|
|
4186
4197
|
};
|
|
4187
|
-
return /* @__PURE__ */
|
|
4198
|
+
return /* @__PURE__ */ jsxs14("div", { ref: dropdownRef, className: "w-full relative", children: [
|
|
4188
4199
|
/* @__PURE__ */ jsx23(
|
|
4189
4200
|
"div",
|
|
4190
4201
|
{
|
|
@@ -4197,7 +4208,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
|
|
|
4197
4208
|
"ul",
|
|
4198
4209
|
{
|
|
4199
4210
|
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`,
|
|
4200
|
-
children: optionList.map((option, index) => /* @__PURE__ */
|
|
4211
|
+
children: optionList.map((option, index) => /* @__PURE__ */ jsxs14(
|
|
4201
4212
|
"li",
|
|
4202
4213
|
{
|
|
4203
4214
|
className: `${option.listItemClassNames ? option.listItemClassNames : ""}`,
|
|
@@ -4224,7 +4235,7 @@ var MediaDropdown_default = MediaDropdown;
|
|
|
4224
4235
|
// src/components/activities/material-contents/ShowMaterialMediaByContentType.tsx
|
|
4225
4236
|
import { useEffect as useEffect5, useRef as useRef3, useState as useState14 } from "react";
|
|
4226
4237
|
import Modal3 from "react-modal";
|
|
4227
|
-
import { Fragment as Fragment2, jsx as jsx24, jsxs as
|
|
4238
|
+
import { Fragment as Fragment2, jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
4228
4239
|
var ShowMaterialMediaByContentType = ({
|
|
4229
4240
|
key,
|
|
4230
4241
|
contentType,
|
|
@@ -4271,7 +4282,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4271
4282
|
}
|
|
4272
4283
|
},
|
|
4273
4284
|
contentLabel: "",
|
|
4274
|
-
children: /* @__PURE__ */
|
|
4285
|
+
children: /* @__PURE__ */ jsxs15("div", { className: "flex-1 flex flex-col", children: [
|
|
4275
4286
|
/* @__PURE__ */ jsx24("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx24(
|
|
4276
4287
|
BaseImage_default,
|
|
4277
4288
|
{
|
|
@@ -4297,9 +4308,9 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4297
4308
|
}
|
|
4298
4309
|
);
|
|
4299
4310
|
};
|
|
4300
|
-
return contentType === "IMAGE" ? /* @__PURE__ */
|
|
4311
|
+
return contentType === "IMAGE" ? /* @__PURE__ */ jsxs15(Fragment2, { children: [
|
|
4301
4312
|
RenderShowFullScreenItem(),
|
|
4302
|
-
/* @__PURE__ */ jsx24("div", { className: "my-2 w-full h-full", children: /* @__PURE__ */ jsx24("div", { className: "h-full flex items-center justify-center", children: /* @__PURE__ */
|
|
4313
|
+
/* @__PURE__ */ jsx24("div", { className: "my-2 w-full h-full", children: /* @__PURE__ */ jsx24("div", { className: "h-full flex items-center justify-center", children: /* @__PURE__ */ jsxs15("div", { className: "h-catchup-activity-media-box-item w-catchup-activity-media-box-item flex items-center justify-center relative", children: [
|
|
4303
4314
|
/* @__PURE__ */ jsx24(
|
|
4304
4315
|
BaseImage_default,
|
|
4305
4316
|
{
|
|
@@ -4363,7 +4374,7 @@ var ShowMaterialMediaByContentType = ({
|
|
|
4363
4374
|
var ShowMaterialMediaByContentType_default = ShowMaterialMediaByContentType;
|
|
4364
4375
|
|
|
4365
4376
|
// src/components/activities/material-contents/DropdownActivityMaterialContent.tsx
|
|
4366
|
-
import { jsx as jsx25, jsxs as
|
|
4377
|
+
import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4367
4378
|
var DropdownActivityMaterialContent = ({
|
|
4368
4379
|
uniqueValue,
|
|
4369
4380
|
answerMap,
|
|
@@ -4395,7 +4406,7 @@ var DropdownActivityMaterialContent = ({
|
|
|
4395
4406
|
}
|
|
4396
4407
|
return "INCORRECT";
|
|
4397
4408
|
};
|
|
4398
|
-
return /* @__PURE__ */
|
|
4409
|
+
return /* @__PURE__ */ jsxs16("div", { className: "flex flex-row flex-wrap items-center", children: [
|
|
4399
4410
|
/* @__PURE__ */ jsx25("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx25("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_dropdown_text") }) }),
|
|
4400
4411
|
/* @__PURE__ */ jsx25("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx25(DividerLine_default, {}) }),
|
|
4401
4412
|
/* @__PURE__ */ jsx25("div", { className: "w-full flex flex-row flex-wrap", children: Object.keys(displayAnswerMap).map(
|
|
@@ -4405,12 +4416,12 @@ var DropdownActivityMaterialContent = ({
|
|
|
4405
4416
|
answerKey,
|
|
4406
4417
|
displayAnswerMap[materialKey]
|
|
4407
4418
|
);
|
|
4408
|
-
return /* @__PURE__ */ jsx25("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ jsx25("div", { className: "mx-2", children: /* @__PURE__ */
|
|
4409
|
-
/* @__PURE__ */ jsx25("div", { className: "my-auto", children: /* @__PURE__ */
|
|
4419
|
+
return /* @__PURE__ */ jsx25("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ jsx25("div", { className: "mx-2", children: /* @__PURE__ */ jsxs16("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
|
|
4420
|
+
/* @__PURE__ */ jsx25("div", { className: "my-auto", children: /* @__PURE__ */ jsxs16("p", { className: "text-xl", children: [
|
|
4410
4421
|
parseFloat(materialKey) + 1,
|
|
4411
4422
|
"."
|
|
4412
4423
|
] }) }),
|
|
4413
|
-
/* @__PURE__ */
|
|
4424
|
+
/* @__PURE__ */ jsxs16("div", { className: "w-full relative", children: [
|
|
4414
4425
|
/* @__PURE__ */ jsx25("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsx25("div", { className: "flex-1", children: /* @__PURE__ */ jsx25(
|
|
4415
4426
|
InputGroup_default,
|
|
4416
4427
|
{
|
|
@@ -4512,7 +4523,7 @@ var DropdownActivityMaterialContent_default = DropdownActivityMaterialContent;
|
|
|
4512
4523
|
|
|
4513
4524
|
// src/components/activities/DropdownActivityContent.tsx
|
|
4514
4525
|
import { useState as useState16, useEffect as useEffect7 } from "react";
|
|
4515
|
-
import { jsx as jsx26, jsxs as
|
|
4526
|
+
import { jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4516
4527
|
var DropdownActivityContent = ({
|
|
4517
4528
|
answerMap,
|
|
4518
4529
|
data,
|
|
@@ -4535,7 +4546,7 @@ var DropdownActivityContent = ({
|
|
|
4535
4546
|
setCurrentAnswerMap(answerMap2);
|
|
4536
4547
|
changeAnswer(answerMap2);
|
|
4537
4548
|
};
|
|
4538
|
-
return /* @__PURE__ */
|
|
4549
|
+
return /* @__PURE__ */ jsxs17("div", { className: "flex flex-row flex-wrap", children: [
|
|
4539
4550
|
/* @__PURE__ */ jsx26("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx26(
|
|
4540
4551
|
ActivityBodyContent_default,
|
|
4541
4552
|
{
|
|
@@ -4593,7 +4604,7 @@ var InputWithSpecialExpression = ({
|
|
|
4593
4604
|
var InputWithSpecialExpression_default = InputWithSpecialExpression;
|
|
4594
4605
|
|
|
4595
4606
|
// src/components/activities/material-contents/FillInTheBlanksActivityMaterialContent.tsx
|
|
4596
|
-
import { jsx as jsx28, jsxs as
|
|
4607
|
+
import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
4597
4608
|
var FillInTheBlanksActivityMaterialContent = ({
|
|
4598
4609
|
uniqueValue,
|
|
4599
4610
|
answerMap,
|
|
@@ -4721,7 +4732,7 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4721
4732
|
setSelectedOption(null);
|
|
4722
4733
|
}
|
|
4723
4734
|
};
|
|
4724
|
-
return /* @__PURE__ */
|
|
4735
|
+
return /* @__PURE__ */ jsxs18(
|
|
4725
4736
|
"div",
|
|
4726
4737
|
{
|
|
4727
4738
|
className: "flex flex-row flex-wrap items-center",
|
|
@@ -4846,12 +4857,12 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4846
4857
|
onMouseLeave: () => setDropTargetIndex(null),
|
|
4847
4858
|
onClick: () => handleDropZoneClick(materialKey),
|
|
4848
4859
|
className: `${dropTargetIndex === materialKey ? "ring-2 ring-blue-400 bg-blue-50" : ""} transition-all duration-200 rounded-lg`,
|
|
4849
|
-
children: /* @__PURE__ */
|
|
4850
|
-
/* @__PURE__ */ jsx28("div", { className: "my-auto", children: /* @__PURE__ */
|
|
4860
|
+
children: /* @__PURE__ */ jsxs18("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
|
|
4861
|
+
/* @__PURE__ */ jsx28("div", { className: "my-auto", children: /* @__PURE__ */ jsxs18("p", { className: "text-xl", children: [
|
|
4851
4862
|
parseFloat(materialKey) + 1,
|
|
4852
4863
|
"."
|
|
4853
4864
|
] }) }),
|
|
4854
|
-
/* @__PURE__ */ jsx28("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */
|
|
4865
|
+
/* @__PURE__ */ jsx28("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsxs18("div", { className: "relative", children: [
|
|
4855
4866
|
/* @__PURE__ */ jsx28("div", { className: "flex-1", children: /* @__PURE__ */ jsx28(
|
|
4856
4867
|
"div",
|
|
4857
4868
|
{
|
|
@@ -4932,7 +4943,7 @@ var FillInTheBlanksActivityMaterialContent_default = FillInTheBlanksActivityMate
|
|
|
4932
4943
|
|
|
4933
4944
|
// src/components/activities/FillInTheBlanksActivityContent.tsx
|
|
4934
4945
|
import { useState as useState18, useEffect as useEffect9 } from "react";
|
|
4935
|
-
import { jsx as jsx29, jsxs as
|
|
4946
|
+
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4936
4947
|
var FillInTheBlanksActivityContent = ({
|
|
4937
4948
|
answerMap,
|
|
4938
4949
|
data,
|
|
@@ -4980,7 +4991,7 @@ var FillInTheBlanksActivityContent = ({
|
|
|
4980
4991
|
setCurrentAnswerMap(answerMap2);
|
|
4981
4992
|
changeAnswer(answerMap2);
|
|
4982
4993
|
};
|
|
4983
|
-
return /* @__PURE__ */
|
|
4994
|
+
return /* @__PURE__ */ jsxs19("div", { className: "flex flex-row flex-wrap", children: [
|
|
4984
4995
|
/* @__PURE__ */ jsx29("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx29(
|
|
4985
4996
|
ActivityBodyContent_default,
|
|
4986
4997
|
{
|
|
@@ -5013,7 +5024,7 @@ var FillInTheBlanksActivityContent_default = FillInTheBlanksActivityContent;
|
|
|
5013
5024
|
// src/components/activities/material-contents/GroupingActivityMaterialContent.tsx
|
|
5014
5025
|
import { useEffect as useEffect10, useRef as useRef5, useState as useState19 } from "react";
|
|
5015
5026
|
import { InlineMath as InlineMath5 } from "react-katex";
|
|
5016
|
-
import { Fragment as Fragment3, jsx as jsx30, jsxs as
|
|
5027
|
+
import { Fragment as Fragment3, jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5017
5028
|
var GroupingActivityMaterialContent = ({
|
|
5018
5029
|
uniqueValue,
|
|
5019
5030
|
answerMap,
|
|
@@ -5209,7 +5220,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5209
5220
|
}
|
|
5210
5221
|
};
|
|
5211
5222
|
const filteredMaterialList = retrieveFilteredMaterialList(displayAnswerMap);
|
|
5212
|
-
return /* @__PURE__ */
|
|
5223
|
+
return /* @__PURE__ */ jsxs20("div", { onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, children: [
|
|
5213
5224
|
draggedValue && mousePosition.x > 0 && /* @__PURE__ */ jsx30(
|
|
5214
5225
|
"div",
|
|
5215
5226
|
{
|
|
@@ -5268,7 +5279,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5268
5279
|
) })
|
|
5269
5280
|
}
|
|
5270
5281
|
),
|
|
5271
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */
|
|
5282
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs20(Fragment3, { children: [
|
|
5272
5283
|
/* @__PURE__ */ jsx30("div", { className: "flex-1 flex flex-row gap-x-4 overflow-x-auto py-2", children: filteredMaterialList.map((materialValue, index) => {
|
|
5273
5284
|
return /* @__PURE__ */ jsx30(
|
|
5274
5285
|
"div",
|
|
@@ -5310,7 +5321,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5310
5321
|
}) }),
|
|
5311
5322
|
/* @__PURE__ */ jsx30(DividerLine_default, {})
|
|
5312
5323
|
] }) : null,
|
|
5313
|
-
Object.keys(displayAnswerMap).map((answerMapKey, index) => /* @__PURE__ */
|
|
5324
|
+
Object.keys(displayAnswerMap).map((answerMapKey, index) => /* @__PURE__ */ jsxs20("div", { className: "flex flex-row w-full", children: [
|
|
5314
5325
|
/* @__PURE__ */ jsx30("div", { className: "w-1/3", children: /* @__PURE__ */ jsx30(
|
|
5315
5326
|
"div",
|
|
5316
5327
|
{
|
|
@@ -5400,7 +5411,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
5400
5411
|
var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
|
|
5401
5412
|
|
|
5402
5413
|
// src/components/activities/GroupingActivityContent.tsx
|
|
5403
|
-
import { Fragment as Fragment4, jsx as jsx31, jsxs as
|
|
5414
|
+
import { Fragment as Fragment4, jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
5404
5415
|
var GroupingActivityContent = ({
|
|
5405
5416
|
answerMap,
|
|
5406
5417
|
data,
|
|
@@ -5421,7 +5432,7 @@ var GroupingActivityContent = ({
|
|
|
5421
5432
|
}
|
|
5422
5433
|
changeAnswer(answerMap2);
|
|
5423
5434
|
};
|
|
5424
|
-
return /* @__PURE__ */
|
|
5435
|
+
return /* @__PURE__ */ jsxs21(Fragment4, { children: [
|
|
5425
5436
|
/* @__PURE__ */ jsx31(
|
|
5426
5437
|
ActivityBodyContent_default,
|
|
5427
5438
|
{
|
|
@@ -5450,7 +5461,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
|
|
|
5450
5461
|
// src/components/activities/material-contents/MatchingActivityMaterialContent.tsx
|
|
5451
5462
|
import { useEffect as useEffect11, useRef as useRef6, useState as useState20 } from "react";
|
|
5452
5463
|
import { InlineMath as InlineMath6 } from "react-katex";
|
|
5453
|
-
import { Fragment as Fragment5, jsx as jsx32, jsxs as
|
|
5464
|
+
import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5454
5465
|
var MatchingActivityMaterialContent = ({
|
|
5455
5466
|
uniqueValue,
|
|
5456
5467
|
answerMap,
|
|
@@ -5638,7 +5649,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5638
5649
|
}
|
|
5639
5650
|
};
|
|
5640
5651
|
const filteredMaterialList = retrieveFilteredMaterialList(displayAnswerMap);
|
|
5641
|
-
return /* @__PURE__ */
|
|
5652
|
+
return /* @__PURE__ */ jsxs22("div", { onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, children: [
|
|
5642
5653
|
draggedValue && mousePosition.x > 0 && /* @__PURE__ */ jsx32(
|
|
5643
5654
|
"div",
|
|
5644
5655
|
{
|
|
@@ -5697,7 +5708,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5697
5708
|
) })
|
|
5698
5709
|
}
|
|
5699
5710
|
),
|
|
5700
|
-
filteredMaterialList.length > 0 ? /* @__PURE__ */
|
|
5711
|
+
filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs22(Fragment5, { children: [
|
|
5701
5712
|
/* @__PURE__ */ jsx32(
|
|
5702
5713
|
"div",
|
|
5703
5714
|
{
|
|
@@ -5749,7 +5760,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5749
5760
|
materialMap[answerMapKey],
|
|
5750
5761
|
displayAnswerMap[answerMapKey]
|
|
5751
5762
|
);
|
|
5752
|
-
return /* @__PURE__ */
|
|
5763
|
+
return /* @__PURE__ */ jsxs22("div", { className: "flex flex-row w-full", children: [
|
|
5753
5764
|
/* @__PURE__ */ jsx32("div", { className: "w-1/3", children: /* @__PURE__ */ jsx32(
|
|
5754
5765
|
"div",
|
|
5755
5766
|
{
|
|
@@ -5816,7 +5827,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5816
5827
|
var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
|
|
5817
5828
|
|
|
5818
5829
|
// src/components/activities/MatchingActivityContent.tsx
|
|
5819
|
-
import { Fragment as Fragment6, jsx as jsx33, jsxs as
|
|
5830
|
+
import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5820
5831
|
var MatchingActivityContent = ({
|
|
5821
5832
|
answerMap,
|
|
5822
5833
|
data,
|
|
@@ -5833,7 +5844,7 @@ var MatchingActivityContent = ({
|
|
|
5833
5844
|
answerMap2[key] = value;
|
|
5834
5845
|
changeAnswer(answerMap2);
|
|
5835
5846
|
};
|
|
5836
|
-
return /* @__PURE__ */
|
|
5847
|
+
return /* @__PURE__ */ jsxs23(Fragment6, { children: [
|
|
5837
5848
|
/* @__PURE__ */ jsx33(
|
|
5838
5849
|
ActivityBodyContent_default,
|
|
5839
5850
|
{
|
|
@@ -5862,7 +5873,7 @@ var MatchingActivityContent_default = MatchingActivityContent;
|
|
|
5862
5873
|
// src/components/activities/material-contents/MCMAActivityMaterialContent.tsx
|
|
5863
5874
|
import { useEffect as useEffect12, useState as useState21 } from "react";
|
|
5864
5875
|
import { InlineMath as InlineMath7 } from "react-katex";
|
|
5865
|
-
import { jsx as jsx34, jsxs as
|
|
5876
|
+
import { jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5866
5877
|
var MCMAActivityMaterialContent = ({
|
|
5867
5878
|
uniqueValue,
|
|
5868
5879
|
answerMap,
|
|
@@ -5901,7 +5912,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5901
5912
|
};
|
|
5902
5913
|
const correctAnswerList = retrieveCorrectAnswerList();
|
|
5903
5914
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
5904
|
-
return /* @__PURE__ */ jsx34("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */
|
|
5915
|
+
return /* @__PURE__ */ jsx34("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs24("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
5905
5916
|
/* @__PURE__ */ jsx34("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx34("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
|
|
5906
5917
|
/* @__PURE__ */ jsx34("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx34(DividerLine_default, {}) }),
|
|
5907
5918
|
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx34("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
|
|
@@ -5917,7 +5928,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5917
5928
|
const foundIndex = correctAnswerList.findIndex(
|
|
5918
5929
|
(correctAnswer) => correctAnswer === materialSubKey
|
|
5919
5930
|
);
|
|
5920
|
-
return /* @__PURE__ */
|
|
5931
|
+
return /* @__PURE__ */ jsxs24(
|
|
5921
5932
|
"div",
|
|
5922
5933
|
{
|
|
5923
5934
|
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && foundIndex !== -1 || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
@@ -5974,7 +5985,7 @@ var MCMAActivityMaterialContent = ({
|
|
|
5974
5985
|
var MCMAActivityMaterialContent_default = MCMAActivityMaterialContent;
|
|
5975
5986
|
|
|
5976
5987
|
// src/components/activities/MCMAActivityContent.tsx
|
|
5977
|
-
import { jsx as jsx35, jsxs as
|
|
5988
|
+
import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5978
5989
|
var MCMAActivityContent = ({
|
|
5979
5990
|
answerMap,
|
|
5980
5991
|
data,
|
|
@@ -5999,7 +6010,7 @@ var MCMAActivityContent = ({
|
|
|
5999
6010
|
}
|
|
6000
6011
|
changeAnswer(answerMap2);
|
|
6001
6012
|
};
|
|
6002
|
-
return /* @__PURE__ */
|
|
6013
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex flex-row flex-wrap", children: [
|
|
6003
6014
|
/* @__PURE__ */ jsx35("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx35(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
|
|
6004
6015
|
/* @__PURE__ */ jsx35("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx35(DividerLine_default, {}) }),
|
|
6005
6016
|
/* @__PURE__ */ jsx35("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx35(VerticalDividerLine_default, {}) }),
|
|
@@ -6023,7 +6034,7 @@ var MCMAActivityContent_default = MCMAActivityContent;
|
|
|
6023
6034
|
// src/components/activities/material-contents/MCSAActivityMaterialContent.tsx
|
|
6024
6035
|
import { useEffect as useEffect13, useState as useState22 } from "react";
|
|
6025
6036
|
import { InlineMath as InlineMath8 } from "react-katex";
|
|
6026
|
-
import { jsx as jsx36, jsxs as
|
|
6037
|
+
import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6027
6038
|
var MCSAActivityMaterialContent = ({
|
|
6028
6039
|
uniqueValue,
|
|
6029
6040
|
answerMap,
|
|
@@ -6056,7 +6067,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
6056
6067
|
};
|
|
6057
6068
|
const correctAnswer = retrieveCorrectAnswer();
|
|
6058
6069
|
return Object.keys(materialMap).map((materialKey, index) => {
|
|
6059
|
-
return /* @__PURE__ */ jsx36("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */
|
|
6070
|
+
return /* @__PURE__ */ jsx36("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs26("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
|
|
6060
6071
|
/* @__PURE__ */ jsx36("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx36("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
|
|
6061
6072
|
/* @__PURE__ */ jsx36("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx36(DividerLine_default, {}) }),
|
|
6062
6073
|
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx36(
|
|
@@ -6070,7 +6081,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
6070
6081
|
materialSubKey,
|
|
6071
6082
|
displayAnswerMap[materialKey]
|
|
6072
6083
|
);
|
|
6073
|
-
return /* @__PURE__ */
|
|
6084
|
+
return /* @__PURE__ */ jsxs26(
|
|
6074
6085
|
"div",
|
|
6075
6086
|
{
|
|
6076
6087
|
className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 gap-x-2 ${learnerAnswerState === "EMPTY" && materialSubKey === correctAnswer || learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
|
|
@@ -6129,7 +6140,7 @@ var MCSAActivityMaterialContent = ({
|
|
|
6129
6140
|
var MCSAActivityMaterialContent_default = MCSAActivityMaterialContent;
|
|
6130
6141
|
|
|
6131
6142
|
// src/components/activities/MCSAActivityContent.tsx
|
|
6132
|
-
import { jsx as jsx37, jsxs as
|
|
6143
|
+
import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6133
6144
|
var MCSAActivityContent = ({
|
|
6134
6145
|
answerMap,
|
|
6135
6146
|
data,
|
|
@@ -6147,7 +6158,7 @@ var MCSAActivityContent = ({
|
|
|
6147
6158
|
answerMap2[key] = value;
|
|
6148
6159
|
changeAnswer(answerMap2);
|
|
6149
6160
|
};
|
|
6150
|
-
return /* @__PURE__ */
|
|
6161
|
+
return /* @__PURE__ */ jsxs27("div", { className: "flex flex-row flex-wrap", children: [
|
|
6151
6162
|
/* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx37(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
|
|
6152
6163
|
/* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx37(DividerLine_default, {}) }),
|
|
6153
6164
|
/* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx37(VerticalDividerLine_default, {}) }),
|
|
@@ -6196,7 +6207,14 @@ var retrieveFileTypeFromExtension = (format) => {
|
|
|
6196
6207
|
return "";
|
|
6197
6208
|
};
|
|
6198
6209
|
var retrieveFileTypeOptionList = (optionType) => {
|
|
6199
|
-
if (optionType === "
|
|
6210
|
+
if (optionType === "IMAGE_ONLY") {
|
|
6211
|
+
return [
|
|
6212
|
+
{
|
|
6213
|
+
text: i18n_default.t("IMAGE"),
|
|
6214
|
+
value: "IMAGE"
|
|
6215
|
+
}
|
|
6216
|
+
];
|
|
6217
|
+
} else if (optionType === "PDF_ONLY") {
|
|
6200
6218
|
return [
|
|
6201
6219
|
{
|
|
6202
6220
|
text: i18n_default.t("PDF"),
|
|
@@ -6251,7 +6269,7 @@ var retrieveAcceptedFormats = (fileType) => {
|
|
|
6251
6269
|
};
|
|
6252
6270
|
|
|
6253
6271
|
// src/components/activities/material-contents/OpenEndedActivityMaterialContent.tsx
|
|
6254
|
-
import { Fragment as Fragment7, jsx as jsx38, jsxs as
|
|
6272
|
+
import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6255
6273
|
var OpenEndedActivityMaterialContent = ({
|
|
6256
6274
|
answerMap,
|
|
6257
6275
|
contentMap,
|
|
@@ -6331,7 +6349,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6331
6349
|
}
|
|
6332
6350
|
) });
|
|
6333
6351
|
};
|
|
6334
|
-
return /* @__PURE__ */ jsx38(Fragment7, { children: /* @__PURE__ */
|
|
6352
|
+
return /* @__PURE__ */ jsx38(Fragment7, { children: /* @__PURE__ */ jsxs28("div", { className: "", children: [
|
|
6335
6353
|
/* @__PURE__ */ jsx38("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx38("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
|
|
6336
6354
|
/* @__PURE__ */ jsx38("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx38(DividerLine_default, {}) }),
|
|
6337
6355
|
contentMap.type === "TEXT" ? RenderTextContent(answerMap) : contentMap.type === "IMAGE" ? RenderImageContent(answerMap) : contentMap.type === "AUDIO" ? RenderAudioContent(answerMap) : null
|
|
@@ -6340,7 +6358,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
6340
6358
|
var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
|
|
6341
6359
|
|
|
6342
6360
|
// src/components/activities/OpenEndedActivityContent.tsx
|
|
6343
|
-
import { Fragment as Fragment8, jsx as jsx39, jsxs as
|
|
6361
|
+
import { Fragment as Fragment8, jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6344
6362
|
var OpenEndedActivityContent = ({
|
|
6345
6363
|
answerMap,
|
|
6346
6364
|
data,
|
|
@@ -6357,7 +6375,7 @@ var OpenEndedActivityContent = ({
|
|
|
6357
6375
|
answerMap2["ANSWER"] = value;
|
|
6358
6376
|
changeAnswer(answerMap2);
|
|
6359
6377
|
};
|
|
6360
|
-
return /* @__PURE__ */
|
|
6378
|
+
return /* @__PURE__ */ jsxs29("div", { className: "flex flex-row flex-wrap", children: [
|
|
6361
6379
|
/* @__PURE__ */ jsx39(
|
|
6362
6380
|
"div",
|
|
6363
6381
|
{
|
|
@@ -6371,7 +6389,7 @@ var OpenEndedActivityContent = ({
|
|
|
6371
6389
|
)
|
|
6372
6390
|
}
|
|
6373
6391
|
),
|
|
6374
|
-
showMaterialContent ? /* @__PURE__ */
|
|
6392
|
+
showMaterialContent ? /* @__PURE__ */ jsxs29(Fragment8, { children: [
|
|
6375
6393
|
/* @__PURE__ */ jsx39(
|
|
6376
6394
|
"div",
|
|
6377
6395
|
{
|
|
@@ -6434,7 +6452,7 @@ var useScreenSize = () => {
|
|
|
6434
6452
|
var useScreenSize_default = useScreenSize;
|
|
6435
6453
|
|
|
6436
6454
|
// src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
|
|
6437
|
-
import { jsx as jsx40, jsxs as
|
|
6455
|
+
import { jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6438
6456
|
var OrderingActivityMaterialContent = ({
|
|
6439
6457
|
uniqueValue,
|
|
6440
6458
|
answerMap,
|
|
@@ -6581,7 +6599,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
6581
6599
|
}
|
|
6582
6600
|
setDraggedKey(null);
|
|
6583
6601
|
};
|
|
6584
|
-
return /* @__PURE__ */
|
|
6602
|
+
return /* @__PURE__ */ jsxs30(
|
|
6585
6603
|
"div",
|
|
6586
6604
|
{
|
|
6587
6605
|
className: "flex flex-row flex-wrap",
|
|
@@ -6651,7 +6669,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
6651
6669
|
displayAnswerMap[materialKey] + "",
|
|
6652
6670
|
index + ""
|
|
6653
6671
|
);
|
|
6654
|
-
return /* @__PURE__ */ jsx40("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */
|
|
6672
|
+
return /* @__PURE__ */ jsx40("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ jsxs30(
|
|
6655
6673
|
"div",
|
|
6656
6674
|
{
|
|
6657
6675
|
className: `flex flex-row items-center my-4 mx-2`,
|
|
@@ -6716,7 +6734,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
6716
6734
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
6717
6735
|
|
|
6718
6736
|
// src/components/activities/OrderingActivityContent.tsx
|
|
6719
|
-
import { Fragment as Fragment9, jsx as jsx41, jsxs as
|
|
6737
|
+
import { Fragment as Fragment9, jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6720
6738
|
var OrderingActivityContent = ({
|
|
6721
6739
|
answerMap,
|
|
6722
6740
|
data,
|
|
@@ -6735,7 +6753,7 @@ var OrderingActivityContent = ({
|
|
|
6735
6753
|
answerMap2[secondaryKey] = prevValue;
|
|
6736
6754
|
changeAnswer(answerMap2);
|
|
6737
6755
|
};
|
|
6738
|
-
return /* @__PURE__ */
|
|
6756
|
+
return /* @__PURE__ */ jsxs31(Fragment9, { children: [
|
|
6739
6757
|
/* @__PURE__ */ jsx41(
|
|
6740
6758
|
ActivityBodyContent_default,
|
|
6741
6759
|
{
|
|
@@ -6764,7 +6782,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
|
|
|
6764
6782
|
// src/components/activities/material-contents/TrueFalseActivityMaterialContent.tsx
|
|
6765
6783
|
import { useEffect as useEffect16, useState as useState25 } from "react";
|
|
6766
6784
|
import { InlineMath as InlineMath10 } from "react-katex";
|
|
6767
|
-
import { Fragment as Fragment10, jsx as jsx42, jsxs as
|
|
6785
|
+
import { Fragment as Fragment10, jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6768
6786
|
var TrueFalseActivityMaterialContent = ({
|
|
6769
6787
|
uniqueValue,
|
|
6770
6788
|
answerMap,
|
|
@@ -6801,10 +6819,10 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6801
6819
|
}
|
|
6802
6820
|
return "INCORRECT";
|
|
6803
6821
|
};
|
|
6804
|
-
return /* @__PURE__ */
|
|
6822
|
+
return /* @__PURE__ */ jsxs32("div", { className: "", children: [
|
|
6805
6823
|
/* @__PURE__ */ jsx42("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx42("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
|
|
6806
6824
|
/* @__PURE__ */ jsx42("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx42(DividerLine_default, {}) }),
|
|
6807
|
-
/* @__PURE__ */
|
|
6825
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
|
|
6808
6826
|
/* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
|
|
6809
6827
|
/* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
|
|
6810
6828
|
] }),
|
|
@@ -6819,7 +6837,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6819
6837
|
correctAnswer,
|
|
6820
6838
|
learnerAnswer
|
|
6821
6839
|
);
|
|
6822
|
-
return /* @__PURE__ */
|
|
6840
|
+
return /* @__PURE__ */ jsxs32(
|
|
6823
6841
|
"div",
|
|
6824
6842
|
{
|
|
6825
6843
|
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" : ""}`,
|
|
@@ -6842,7 +6860,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6842
6860
|
},
|
|
6843
6861
|
`${uniqueValue}-${index}`
|
|
6844
6862
|
) }),
|
|
6845
|
-
/* @__PURE__ */
|
|
6863
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6846
6864
|
/* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx42(
|
|
6847
6865
|
BaseImage_default,
|
|
6848
6866
|
{
|
|
@@ -6870,12 +6888,12 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6870
6888
|
},
|
|
6871
6889
|
index
|
|
6872
6890
|
);
|
|
6873
|
-
}) }) : /* @__PURE__ */
|
|
6874
|
-
displayAnswerMap.trueList.map((item) => /* @__PURE__ */
|
|
6891
|
+
}) }) : /* @__PURE__ */ jsxs32(Fragment10, { children: [
|
|
6892
|
+
displayAnswerMap.trueList.map((item) => /* @__PURE__ */ jsxs32("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6875
6893
|
/* @__PURE__ */ jsx42("div", { className: "flex-1", children: /* @__PURE__ */ jsx42("p", { children: item }) }),
|
|
6876
6894
|
/* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "underline", children: i18n_default.t("true") }) })
|
|
6877
6895
|
] })),
|
|
6878
|
-
displayAnswerMap.falseList.map((item) => /* @__PURE__ */
|
|
6896
|
+
displayAnswerMap.falseList.map((item) => /* @__PURE__ */ jsxs32("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6879
6897
|
/* @__PURE__ */ jsx42("div", { className: "flex-1", children: /* @__PURE__ */ jsx42("p", { children: item }) }),
|
|
6880
6898
|
/* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "underline", children: i18n_default.t("false") }) })
|
|
6881
6899
|
] }))
|
|
@@ -6885,7 +6903,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6885
6903
|
var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
|
|
6886
6904
|
|
|
6887
6905
|
// src/components/activities/TrueFalseActivityContent.tsx
|
|
6888
|
-
import { jsx as jsx43, jsxs as
|
|
6906
|
+
import { jsx as jsx43, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6889
6907
|
var TrueFalseActivityContent = ({
|
|
6890
6908
|
answerMap,
|
|
6891
6909
|
data,
|
|
@@ -6929,7 +6947,7 @@ var TrueFalseActivityContent = ({
|
|
|
6929
6947
|
}
|
|
6930
6948
|
changeAnswer(answerMap2);
|
|
6931
6949
|
};
|
|
6932
|
-
return /* @__PURE__ */
|
|
6950
|
+
return /* @__PURE__ */ jsxs33("div", { className: "flex flex-row flex-wrap", children: [
|
|
6933
6951
|
/* @__PURE__ */ jsx43("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%]"}`, children: /* @__PURE__ */ jsx43(
|
|
6934
6952
|
ActivityBodyContent_default,
|
|
6935
6953
|
{
|
|
@@ -6958,7 +6976,7 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
|
|
|
6958
6976
|
|
|
6959
6977
|
// src/components/activities/solution-contents/ActivitySolutionContent.tsx
|
|
6960
6978
|
import { InlineMath as InlineMath11 } from "react-katex";
|
|
6961
|
-
import { jsx as jsx44, jsxs as
|
|
6979
|
+
import { jsx as jsx44, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6962
6980
|
var ActivitySolutionContent = ({
|
|
6963
6981
|
activityTemplateType,
|
|
6964
6982
|
data
|
|
@@ -6990,7 +7008,7 @@ var ActivitySolutionContent = ({
|
|
|
6990
7008
|
return null;
|
|
6991
7009
|
}
|
|
6992
7010
|
if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
|
|
6993
|
-
return /* @__PURE__ */ jsx44("div", { className: "mx-2", children: /* @__PURE__ */
|
|
7011
|
+
return /* @__PURE__ */ jsx44("div", { className: "mx-2", children: /* @__PURE__ */ jsxs34("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
|
|
6994
7012
|
/* @__PURE__ */ jsx44("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
|
|
6995
7013
|
Object.keys(solutionMap).map((key) => {
|
|
6996
7014
|
let currentItem;
|
|
@@ -7018,7 +7036,7 @@ var ActivitySolutionContent_default = ActivitySolutionContent;
|
|
|
7018
7036
|
|
|
7019
7037
|
// src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx
|
|
7020
7038
|
import { InlineMath as InlineMath12 } from "react-katex";
|
|
7021
|
-
import { jsx as jsx45, jsxs as
|
|
7039
|
+
import { jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
7022
7040
|
var ActivityEvaluationRubricContent = ({
|
|
7023
7041
|
activityTemplateType,
|
|
7024
7042
|
data
|
|
@@ -7048,7 +7066,7 @@ var ActivityEvaluationRubricContent = ({
|
|
|
7048
7066
|
}
|
|
7049
7067
|
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
7050
7068
|
return null;
|
|
7051
|
-
return /* @__PURE__ */
|
|
7069
|
+
return /* @__PURE__ */ jsxs35("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
7052
7070
|
/* @__PURE__ */ jsx45("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
7053
7071
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
|
7054
7072
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
@@ -7060,8 +7078,8 @@ var ActivityEvaluationRubricContent = ({
|
|
|
7060
7078
|
points = parseFloat(matchedRegex[1]);
|
|
7061
7079
|
evaluationRubric = matchedRegex[2];
|
|
7062
7080
|
}
|
|
7063
|
-
return /* @__PURE__ */
|
|
7064
|
-
/* @__PURE__ */
|
|
7081
|
+
return /* @__PURE__ */ jsxs35("div", { className: "my-2 flex flex-row gap-x-3", children: [
|
|
7082
|
+
/* @__PURE__ */ jsxs35("div", { className: "font-bold text-xl whitespace-nowrap", children: [
|
|
7065
7083
|
points,
|
|
7066
7084
|
" ",
|
|
7067
7085
|
i18n_default.t("points")
|
|
@@ -7086,7 +7104,7 @@ var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
|
|
|
7086
7104
|
import { useEffect as useEffect17, useState as useState26 } from "react";
|
|
7087
7105
|
|
|
7088
7106
|
// src/components/boxes/SelectionBox.tsx
|
|
7089
|
-
import { jsx as jsx46, jsxs as
|
|
7107
|
+
import { jsx as jsx46, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
7090
7108
|
var SelectionBox = ({
|
|
7091
7109
|
optionList,
|
|
7092
7110
|
selectedId,
|
|
@@ -7099,15 +7117,15 @@ var SelectionBox = ({
|
|
|
7099
7117
|
onClick: () => {
|
|
7100
7118
|
handleSelectOnClick(option.id);
|
|
7101
7119
|
},
|
|
7102
|
-
children: /* @__PURE__ */
|
|
7120
|
+
children: /* @__PURE__ */ jsxs36(
|
|
7103
7121
|
"div",
|
|
7104
7122
|
{
|
|
7105
7123
|
className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
|
|
7106
7124
|
children: [
|
|
7107
7125
|
option.icon,
|
|
7108
|
-
/* @__PURE__ */
|
|
7126
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex-1 flex flex-col items-center", children: [
|
|
7109
7127
|
/* @__PURE__ */ jsx46("p", { children: option.text }),
|
|
7110
|
-
option.subText ? /* @__PURE__ */
|
|
7128
|
+
option.subText ? /* @__PURE__ */ jsxs36("p", { className: "text-md", children: [
|
|
7111
7129
|
"(",
|
|
7112
7130
|
option.subText,
|
|
7113
7131
|
")"
|
|
@@ -7123,7 +7141,7 @@ var SelectionBox = ({
|
|
|
7123
7141
|
var SelectionBox_default = SelectionBox;
|
|
7124
7142
|
|
|
7125
7143
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
7126
|
-
import { Fragment as Fragment11, jsx as jsx47, jsxs as
|
|
7144
|
+
import { Fragment as Fragment11, jsx as jsx47, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7127
7145
|
var ACTIVITY_TEMPLATE_LIST = [
|
|
7128
7146
|
{ type: "ORDERING", materialMap: "orderingMaterialMap" },
|
|
7129
7147
|
{ type: "DROPDOWN", materialMap: "dropdownMaterialMap" },
|
|
@@ -7232,42 +7250,42 @@ var ActivityPreviewByData = ({
|
|
|
7232
7250
|
}
|
|
7233
7251
|
switch (selectedType) {
|
|
7234
7252
|
case "ORDERING":
|
|
7235
|
-
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */
|
|
7253
|
+
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7236
7254
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7237
7255
|
/* @__PURE__ */ jsx47(OrderingActivityContent_default, __spreadValues({}, commonProps))
|
|
7238
7256
|
] }) : null;
|
|
7239
7257
|
case "DROPDOWN":
|
|
7240
|
-
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */
|
|
7258
|
+
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7241
7259
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7242
7260
|
/* @__PURE__ */ jsx47(DropdownActivityContent_default, __spreadValues({}, commonProps))
|
|
7243
7261
|
] }) : null;
|
|
7244
7262
|
case "MCSA":
|
|
7245
|
-
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */
|
|
7263
|
+
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7246
7264
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7247
7265
|
/* @__PURE__ */ jsx47(MCSAActivityContent_default, __spreadValues({}, commonProps))
|
|
7248
7266
|
] }) : null;
|
|
7249
7267
|
case "MCMA":
|
|
7250
|
-
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */
|
|
7268
|
+
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7251
7269
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7252
7270
|
/* @__PURE__ */ jsx47(MCMAActivityContent_default, __spreadValues({}, commonProps))
|
|
7253
7271
|
] }) : null;
|
|
7254
7272
|
case "MATCHING":
|
|
7255
|
-
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */
|
|
7273
|
+
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7256
7274
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7257
7275
|
/* @__PURE__ */ jsx47(MatchingActivityContent_default, __spreadValues({}, commonProps))
|
|
7258
7276
|
] }) : null;
|
|
7259
7277
|
case "GROUPING":
|
|
7260
|
-
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */
|
|
7278
|
+
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7261
7279
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7262
7280
|
/* @__PURE__ */ jsx47(GroupingActivityContent_default, __spreadValues({}, commonProps))
|
|
7263
7281
|
] }) : null;
|
|
7264
7282
|
case "FILL_IN_THE_BLANKS":
|
|
7265
|
-
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */
|
|
7283
|
+
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7266
7284
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7267
7285
|
/* @__PURE__ */ jsx47(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps))
|
|
7268
7286
|
] }) : null;
|
|
7269
7287
|
case "OPEN_ENDED":
|
|
7270
|
-
return data.openEndedBodyMap ? /* @__PURE__ */
|
|
7288
|
+
return data.openEndedBodyMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7271
7289
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7272
7290
|
/* @__PURE__ */ jsx47(
|
|
7273
7291
|
OpenEndedActivityContent_default,
|
|
@@ -7277,7 +7295,7 @@ var ActivityPreviewByData = ({
|
|
|
7277
7295
|
)
|
|
7278
7296
|
] }) : null;
|
|
7279
7297
|
case "TRUE_FALSE":
|
|
7280
|
-
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */
|
|
7298
|
+
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7281
7299
|
isEmpty && /* @__PURE__ */ jsx47(ActivityEmptyContent_default, {}),
|
|
7282
7300
|
/* @__PURE__ */ jsx47(TrueFalseActivityContent_default, __spreadValues({}, commonProps))
|
|
7283
7301
|
] }) : null;
|
|
@@ -7286,9 +7304,9 @@ var ActivityPreviewByData = ({
|
|
|
7286
7304
|
}
|
|
7287
7305
|
};
|
|
7288
7306
|
if (!data) return null;
|
|
7289
|
-
return /* @__PURE__ */
|
|
7290
|
-
showType && optionList.length > 0 ? /* @__PURE__ */
|
|
7291
|
-
/* @__PURE__ */
|
|
7307
|
+
return /* @__PURE__ */ jsxs37("div", { children: [
|
|
7308
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
7309
|
+
/* @__PURE__ */ jsxs37("div", { className: "mb-2", children: [
|
|
7292
7310
|
showDescription ? /* @__PURE__ */ jsx47("div", { className: "my-2", children: /* @__PURE__ */ jsx47("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7293
7311
|
/* @__PURE__ */ jsx47(
|
|
7294
7312
|
SelectionBox_default,
|
|
@@ -7323,17 +7341,17 @@ var ActivityPreviewByData = ({
|
|
|
7323
7341
|
var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
7324
7342
|
|
|
7325
7343
|
// src/components/errors/StatusError.tsx
|
|
7326
|
-
import { jsx as jsx48, jsxs as
|
|
7344
|
+
import { jsx as jsx48, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7327
7345
|
var StatusError = ({
|
|
7328
7346
|
statusCode,
|
|
7329
7347
|
statusText,
|
|
7330
7348
|
textSize
|
|
7331
7349
|
}) => {
|
|
7332
|
-
return /* @__PURE__ */
|
|
7350
|
+
return /* @__PURE__ */ jsxs38("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7333
7351
|
/* @__PURE__ */ jsx48("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7334
|
-
/* @__PURE__ */
|
|
7352
|
+
/* @__PURE__ */ jsxs38("div", { className: "text-center my-5", children: [
|
|
7335
7353
|
/* @__PURE__ */ jsx48("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
7336
|
-
/* @__PURE__ */
|
|
7354
|
+
/* @__PURE__ */ jsxs38("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
|
|
7337
7355
|
"(",
|
|
7338
7356
|
statusCode ? `${statusCode} - ` : null,
|
|
7339
7357
|
statusText,
|
|
@@ -7357,7 +7375,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7357
7375
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7358
7376
|
|
|
7359
7377
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7360
|
-
import { jsx as jsx50, jsxs as
|
|
7378
|
+
import { jsx as jsx50, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7361
7379
|
var LeftTextRightInputGroup = ({
|
|
7362
7380
|
type,
|
|
7363
7381
|
title,
|
|
@@ -7367,7 +7385,7 @@ var LeftTextRightInputGroup = ({
|
|
|
7367
7385
|
disabled,
|
|
7368
7386
|
errorText
|
|
7369
7387
|
}) => {
|
|
7370
|
-
return /* @__PURE__ */
|
|
7388
|
+
return /* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7371
7389
|
/* @__PURE__ */ jsx50("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ jsx50("p", { children: title }) }),
|
|
7372
7390
|
/* @__PURE__ */ jsx50("div", { className: "flex-1", children: /* @__PURE__ */ jsx50(
|
|
7373
7391
|
InputGroup_default,
|
|
@@ -7386,7 +7404,7 @@ var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
|
7386
7404
|
|
|
7387
7405
|
// src/components/groups/PageTravelGroup.tsx
|
|
7388
7406
|
import { useEffect as useEffect18, useState as useState27 } from "react";
|
|
7389
|
-
import { jsx as jsx51, jsxs as
|
|
7407
|
+
import { jsx as jsx51, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7390
7408
|
var PageTravelGroup = ({
|
|
7391
7409
|
isImageProcessing,
|
|
7392
7410
|
handleImageProcessing,
|
|
@@ -7404,7 +7422,7 @@ var PageTravelGroup = ({
|
|
|
7404
7422
|
useEffect18(() => {
|
|
7405
7423
|
setNewPageNumber(pageNumber + 1);
|
|
7406
7424
|
}, [pageNumber]);
|
|
7407
|
-
return /* @__PURE__ */
|
|
7425
|
+
return /* @__PURE__ */ jsxs40("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7408
7426
|
pageNumber === 0 ? null : /* @__PURE__ */ jsx51("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx51(
|
|
7409
7427
|
BaseImage_default,
|
|
7410
7428
|
{
|
|
@@ -7480,7 +7498,7 @@ var PageTravelGroup = ({
|
|
|
7480
7498
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7481
7499
|
|
|
7482
7500
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7483
|
-
import { jsx as jsx52, jsxs as
|
|
7501
|
+
import { jsx as jsx52, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7484
7502
|
var SelectionCheckbox = ({
|
|
7485
7503
|
optionList,
|
|
7486
7504
|
selectedIdList,
|
|
@@ -7502,7 +7520,7 @@ var SelectionCheckbox = ({
|
|
|
7502
7520
|
handleRemoveOnClick(option.id);
|
|
7503
7521
|
}
|
|
7504
7522
|
},
|
|
7505
|
-
children: /* @__PURE__ */
|
|
7523
|
+
children: /* @__PURE__ */ jsxs41(
|
|
7506
7524
|
"div",
|
|
7507
7525
|
{
|
|
7508
7526
|
className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
|
|
@@ -7530,7 +7548,7 @@ var SelectionCheckbox = ({
|
|
|
7530
7548
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7531
7549
|
|
|
7532
7550
|
// src/components/tabs/SelectionTab.tsx
|
|
7533
|
-
import { jsx as jsx53, jsxs as
|
|
7551
|
+
import { jsx as jsx53, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7534
7552
|
var SelectionTab = ({
|
|
7535
7553
|
optionList,
|
|
7536
7554
|
selectedId,
|
|
@@ -7540,7 +7558,7 @@ var SelectionTab = ({
|
|
|
7540
7558
|
textColor,
|
|
7541
7559
|
borderColor
|
|
7542
7560
|
}) => {
|
|
7543
|
-
return /* @__PURE__ */ jsx53("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__ */
|
|
7561
|
+
return /* @__PURE__ */ jsx53("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__ */ jsxs42(
|
|
7544
7562
|
"div",
|
|
7545
7563
|
{
|
|
7546
7564
|
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`,
|
|
@@ -7585,7 +7603,7 @@ var SelectionTabFill = ({
|
|
|
7585
7603
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7586
7604
|
|
|
7587
7605
|
// src/components/labels/Label.tsx
|
|
7588
|
-
import { jsx as jsx55, jsxs as
|
|
7606
|
+
import { jsx as jsx55, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7589
7607
|
var Label = ({
|
|
7590
7608
|
title,
|
|
7591
7609
|
icon,
|
|
@@ -7605,7 +7623,7 @@ var Label = ({
|
|
|
7605
7623
|
background: backgroundColor,
|
|
7606
7624
|
color: textColor
|
|
7607
7625
|
},
|
|
7608
|
-
children: /* @__PURE__ */
|
|
7626
|
+
children: /* @__PURE__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7609
7627
|
icon,
|
|
7610
7628
|
/* @__PURE__ */ jsx55("p", { className: font, children: title })
|
|
7611
7629
|
] })
|
|
@@ -7785,10 +7803,10 @@ var GrayLabel = ({ title, icon, font }) => {
|
|
|
7785
7803
|
var GrayLabel_default = GrayLabel;
|
|
7786
7804
|
|
|
7787
7805
|
// src/components/infos/InfoWithText.tsx
|
|
7788
|
-
import { jsx as jsx66, jsxs as
|
|
7806
|
+
import { jsx as jsx66, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7789
7807
|
var InfoWithText = (props) => {
|
|
7790
7808
|
const { value } = props;
|
|
7791
|
-
return /* @__PURE__ */
|
|
7809
|
+
return /* @__PURE__ */ jsxs44("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7792
7810
|
/* @__PURE__ */ jsx66(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7793
7811
|
/* @__PURE__ */ jsx66("div", { className: "flex-1", children: /* @__PURE__ */ jsx66("p", { className: "", children: value }) })
|
|
7794
7812
|
] });
|
|
@@ -7796,17 +7814,17 @@ var InfoWithText = (props) => {
|
|
|
7796
7814
|
var InfoWithText_default = InfoWithText;
|
|
7797
7815
|
|
|
7798
7816
|
// src/components/titles/BaseTitle.tsx
|
|
7799
|
-
import { jsx as jsx67, jsxs as
|
|
7817
|
+
import { jsx as jsx67, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7800
7818
|
var BaseTitle = ({
|
|
7801
7819
|
title,
|
|
7802
7820
|
totalItemCount,
|
|
7803
7821
|
itemName,
|
|
7804
7822
|
description
|
|
7805
7823
|
}) => {
|
|
7806
|
-
return /* @__PURE__ */
|
|
7807
|
-
/* @__PURE__ */
|
|
7824
|
+
return /* @__PURE__ */ jsxs45("div", { className: "flex flex-col gap-y-2", children: [
|
|
7825
|
+
/* @__PURE__ */ jsxs45("p", { className: "text-2xl font-medium", children: [
|
|
7808
7826
|
title,
|
|
7809
|
-
totalItemCount && itemName ? /* @__PURE__ */
|
|
7827
|
+
totalItemCount && itemName ? /* @__PURE__ */ jsxs45("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
|
|
7810
7828
|
totalItemCount,
|
|
7811
7829
|
" ",
|
|
7812
7830
|
itemName
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import Modal from "react-modal";
|
|
2
2
|
import { IModalProps } from "../../properties/ModalProperties";
|
|
3
|
+
import BaseImage from "../images/BaseImage";
|
|
3
4
|
|
|
4
5
|
const BaseModal = ({
|
|
5
6
|
isOpen,
|
|
@@ -49,6 +50,14 @@ const BaseModal = ({
|
|
|
49
50
|
: "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"
|
|
50
51
|
}`}
|
|
51
52
|
>
|
|
53
|
+
<div className="flex flex-row justify-end px-2 py-2">
|
|
54
|
+
<BaseImage
|
|
55
|
+
src="/icons/cross-red.webp"
|
|
56
|
+
alt="cross-red"
|
|
57
|
+
size="medium"
|
|
58
|
+
onClick={onRequestClose}
|
|
59
|
+
/>
|
|
60
|
+
</div>
|
|
52
61
|
{children}
|
|
53
62
|
</div>
|
|
54
63
|
)}
|
|
@@ -44,7 +44,14 @@ export const retrieveFileTypeFromExtension = (format: string) => {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
export const retrieveFileTypeOptionList = (optionType: string) => {
|
|
47
|
-
if (optionType === "
|
|
47
|
+
if (optionType === "IMAGE_ONLY") {
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
text: i18n.t("IMAGE"),
|
|
51
|
+
value: "IMAGE",
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
} else if (optionType === "PDF_ONLY") {
|
|
48
55
|
return [
|
|
49
56
|
{
|
|
50
57
|
text: i18n.t("PDF"),
|