catchup-library-web 2.6.12 → 2.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -850,12 +850,13 @@ var ApproveButton_default = ApproveButton;
850
850
 
851
851
  // src/components/buttons/StartButton.tsx
852
852
  import { useState as useState9 } from "react";
853
- import { jsx as jsx12 } from "react/jsx-runtime";
853
+ import { jsx as jsx12, jsxs as jsxs9 } from "react/jsx-runtime";
854
854
  var StartButton = ({
855
855
  title,
856
856
  size,
857
857
  onClick,
858
- disabled
858
+ disabled,
859
+ icon
859
860
  }) => {
860
861
  const [loading, setLoading] = useState9(false);
861
862
  const internalOnClick = (e) => __async(void 0, null, function* () {
@@ -869,22 +870,22 @@ var StartButton = ({
869
870
  let currentHeightClassName;
870
871
  let currentLoadingSize;
871
872
  if (size === "small") {
872
- currentHeightClassName = "h-8";
873
- currentLoadingSize = 14;
874
- } else if (size === "medium") {
875
873
  currentHeightClassName = "h-10";
876
874
  currentLoadingSize = 16;
877
- } else if (size === "large") {
875
+ } else if (size === "medium") {
878
876
  currentHeightClassName = "h-12";
879
877
  currentLoadingSize = 18;
878
+ } else if (size === "large") {
879
+ currentHeightClassName = "h-14";
880
+ currentLoadingSize = 20;
880
881
  } else if (size === "unlimited") {
881
- currentLoadingSize = 14;
882
- currentHeightClassName = "h-8";
882
+ currentHeightClassName = "h-10";
883
+ currentLoadingSize = 16;
883
884
  }
884
885
  return /* @__PURE__ */ jsx12(
885
886
  "button",
886
887
  {
887
- className: `px-8 py-2.5 bg-gradient-to-r from-catchup-green to-catchup-hover-green text-catchup-white font-bold text-lg rounded-catchup-full shadow-card ${loading ? "" : disabled ? "opacity-50" : "hover:from-catchup-hover-green hover:to-catchup-green hover:shadow-full-card hover:scale-105"} transition-all duration-300 transform ${currentHeightClassName}`,
888
+ className: `px-8 py-2 bg-gradient-to-r from-catchup-green to-catchup-hover-green text-catchup-white font-bold text-lg rounded-catchup-full shadow-card ${loading ? "" : disabled ? "opacity-50" : "hover:from-catchup-hover-green hover:to-catchup-green hover:shadow-full-card hover:scale-105"} transition-all duration-300 transform ${currentHeightClassName || ""}`,
888
889
  onClick: internalOnClick,
889
890
  children: loading ? /* @__PURE__ */ jsx12(
890
891
  BaseLoading_default,
@@ -894,7 +895,10 @@ var StartButton = ({
894
895
  primaryColor: "#ffffff",
895
896
  secondaryColor: "#ffffff"
896
897
  }
897
- ) : /* @__PURE__ */ jsx12("div", { className: "flex flex-row justify-center items-center gap-x-2", children: /* @__PURE__ */ jsx12("p", { children: title }) })
898
+ ) : /* @__PURE__ */ jsxs9("div", { className: "flex flex-row justify-center items-center gap-x-2", children: [
899
+ icon ? /* @__PURE__ */ jsx12("span", { children: icon }) : null,
900
+ /* @__PURE__ */ jsx12("p", { children: title })
901
+ ] })
898
902
  }
899
903
  );
900
904
  };
@@ -946,7 +950,7 @@ i18n.use(initReactI18next);
946
950
  var i18n_default = i18n;
947
951
 
948
952
  // src/components/loading/BaseLoadingWithText.tsx
949
- import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
953
+ import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
950
954
  var BaseLoadingWithText = (props) => {
951
955
  const { height, width, size, primaryColor, secondaryColor, hideText } = props;
952
956
  const [initialTimestamp, setInitialTimestamp] = useState10(
@@ -994,7 +998,7 @@ var BaseLoadingWithText = (props) => {
994
998
  textWidth = 250;
995
999
  }
996
1000
  const loadingText = retrieveLoadingText();
997
- return /* @__PURE__ */ jsxs9("div", { className: "flex flex-col justify-center items-center", children: [
1001
+ return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col justify-center items-center", children: [
998
1002
  /* @__PURE__ */ jsx15(
999
1003
  BaseLoading_default,
1000
1004
  {
@@ -1021,17 +1025,17 @@ var BaseLoadingWithText_default = BaseLoadingWithText;
1021
1025
  import Modal from "react-modal";
1022
1026
 
1023
1027
  // src/components/titles/BaseTitle.tsx
1024
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
1028
+ import { jsx as jsx16, jsxs as jsxs11 } from "react/jsx-runtime";
1025
1029
  var BaseTitle = ({
1026
1030
  title,
1027
1031
  totalItemCount,
1028
1032
  itemName,
1029
1033
  description
1030
1034
  }) => {
1031
- return /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-y-2", children: [
1032
- /* @__PURE__ */ jsxs10("p", { className: "text-2xl font-medium", children: [
1035
+ return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-y-2", children: [
1036
+ /* @__PURE__ */ jsxs11("p", { className: "text-2xl font-medium", children: [
1033
1037
  title,
1034
- totalItemCount && itemName ? /* @__PURE__ */ jsxs10("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: [
1038
+ totalItemCount && itemName ? /* @__PURE__ */ jsxs11("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: [
1035
1039
  totalItemCount,
1036
1040
  " ",
1037
1041
  itemName
@@ -1050,7 +1054,7 @@ var DividerLine = () => {
1050
1054
  var DividerLine_default = DividerLine;
1051
1055
 
1052
1056
  // src/components/modals/BaseModal.tsx
1053
- import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
1057
+ import { jsx as jsx18, jsxs as jsxs12 } from "react/jsx-runtime";
1054
1058
  var BaseModal = ({
1055
1059
  title,
1056
1060
  isOpen,
@@ -1091,8 +1095,8 @@ var BaseModal = ({
1091
1095
  "div",
1092
1096
  {
1093
1097
  className: `font-quicksand ${size === "small" ? "w-[600px]" : size === "medium" ? "w-[900px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
1094
- children: /* @__PURE__ */ jsxs11(FullCard_default, { children: [
1095
- /* @__PURE__ */ jsxs11("div", { className: "flex flex-row justify-between", children: [
1098
+ children: /* @__PURE__ */ jsxs12(FullCard_default, { children: [
1099
+ /* @__PURE__ */ jsxs12("div", { className: "flex flex-row justify-between", children: [
1096
1100
  /* @__PURE__ */ jsx18(BaseTitle_default, { title }),
1097
1101
  /* @__PURE__ */ jsx18(
1098
1102
  BaseImage_default,
@@ -1117,7 +1121,7 @@ var BaseModal_default = BaseModal;
1117
1121
  // src/components/pdfs/BasePDF.tsx
1118
1122
  import { useState as useState11 } from "react";
1119
1123
  import { Document, Page } from "react-pdf";
1120
- import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
1124
+ import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
1121
1125
  var BasePDF = ({ file }) => {
1122
1126
  const [pageNumber, setPageNumber] = useState11(1);
1123
1127
  const [numberOfPages, setNumberOfPages] = useState11(0);
@@ -1125,9 +1129,9 @@ var BasePDF = ({ file }) => {
1125
1129
  setPageNumber(1);
1126
1130
  setNumberOfPages(numPages);
1127
1131
  };
1128
- return /* @__PURE__ */ jsxs12(Document, { file, onLoadSuccess: handleOnDocumentLoadSuccess, children: [
1132
+ return /* @__PURE__ */ jsxs13(Document, { file, onLoadSuccess: handleOnDocumentLoadSuccess, children: [
1129
1133
  /* @__PURE__ */ jsx19(Page, { pageNumber }),
1130
- /* @__PURE__ */ jsxs12("div", { className: "flex flex-row items-center justify-center", children: [
1134
+ /* @__PURE__ */ jsxs13("div", { className: "flex flex-row items-center justify-center", children: [
1131
1135
  pageNumber === 1 ? null : /* @__PURE__ */ jsx19("div", { className: "px-2", children: /* @__PURE__ */ jsx19("div", { className: "cursor-pointer", children: /* @__PURE__ */ jsx19(
1132
1136
  BaseImage_default,
1133
1137
  {
@@ -3192,7 +3196,7 @@ var retrieveActivityCountOptionList = () => {
3192
3196
 
3193
3197
  // src/components/activities/body-contents/ShowBodyMediaByContentType.tsx
3194
3198
  import { InlineMath } from "react-katex";
3195
- import { jsx as jsx21, jsxs as jsxs13 } from "react/jsx-runtime";
3199
+ import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
3196
3200
  var ShowBodyMediaByContentType = ({
3197
3201
  index,
3198
3202
  type,
@@ -3292,7 +3296,7 @@ var ShowBodyMediaByContentType = ({
3292
3296
  );
3293
3297
  currentIndex++;
3294
3298
  valuePartList.push(
3295
- /* @__PURE__ */ jsxs13(
3299
+ /* @__PURE__ */ jsxs14(
3296
3300
  "div",
3297
3301
  {
3298
3302
  className: "relative w-[200px]",
@@ -3426,7 +3430,7 @@ var ShowBodyMediaByContentType = ({
3426
3430
  if (regexMatchImageText) {
3427
3431
  const imageText = regexMatchImageText[1];
3428
3432
  valuePartList.push(
3429
- /* @__PURE__ */ jsxs13(
3433
+ /* @__PURE__ */ jsxs14(
3430
3434
  "div",
3431
3435
  {
3432
3436
  className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2",
@@ -3475,7 +3479,7 @@ var ShowBodyMediaByContentType = ({
3475
3479
  }
3476
3480
  },
3477
3481
  contentLabel: "Image Fullscreen View",
3478
- children: /* @__PURE__ */ jsxs13("div", { className: "flex-1 flex flex-col", children: [
3482
+ children: /* @__PURE__ */ jsxs14("div", { className: "flex-1 flex flex-col", children: [
3479
3483
  /* @__PURE__ */ jsx21("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx21(
3480
3484
  BaseImage_default,
3481
3485
  {
@@ -3506,7 +3510,7 @@ var ShowBodyMediaByContentType = ({
3506
3510
  case "TEXT":
3507
3511
  return /* @__PURE__ */ jsx21("div", { className: "mb-1 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ jsx21("p", { className: "whitespace-pre-wrap", children: retrieveValueParts(value) }) });
3508
3512
  case "IMAGE":
3509
- return /* @__PURE__ */ jsx21("div", { className: "mb-1 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs13("div", { className: "relative", children: [
3513
+ return /* @__PURE__ */ jsx21("div", { className: "mb-1 flex flex-col items-center relative", children: /* @__PURE__ */ jsxs14("div", { className: "relative", children: [
3510
3514
  /* @__PURE__ */ jsx21(
3511
3515
  BaseImage_default,
3512
3516
  {
@@ -3549,7 +3553,7 @@ var ShowBodyMediaByContentType = ({
3549
3553
  return null;
3550
3554
  }
3551
3555
  };
3552
- return /* @__PURE__ */ jsxs13("div", { className: "w-full", children: [
3556
+ return /* @__PURE__ */ jsxs14("div", { className: "w-full", children: [
3553
3557
  RenderShowFullScreenItem(),
3554
3558
  RenderMainContent()
3555
3559
  ] }, `body-content-${index}`);
@@ -3665,7 +3669,7 @@ import { InlineMath as InlineMath2 } from "react-katex";
3665
3669
  import Select from "react-select";
3666
3670
  import Switch from "react-switch";
3667
3671
  import { useEffect as useEffect3, useRef, useState as useState13, useCallback } from "react";
3668
- import { Fragment, jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
3672
+ import { Fragment, jsx as jsx24, jsxs as jsxs15 } from "react/jsx-runtime";
3669
3673
  var InputGroup = ({
3670
3674
  type,
3671
3675
  title,
@@ -3791,7 +3795,7 @@ var InputGroup = ({
3791
3795
  onRequestClose: () => {
3792
3796
  setShowMathConstructor(false);
3793
3797
  },
3794
- children: /* @__PURE__ */ jsx24("div", { className: "bg-catchup-white rounded-lg overflow-hidden", children: /* @__PURE__ */ jsxs14("div", { className: "p-6 space-y-6", children: [
3798
+ children: /* @__PURE__ */ jsx24("div", { className: "bg-catchup-white rounded-lg overflow-hidden", children: /* @__PURE__ */ jsxs15("div", { className: "p-6 space-y-6", children: [
3795
3799
  /* @__PURE__ */ jsx24("div", { children: /* @__PURE__ */ jsx24("div", { className: "border border-catchup-gray-100 rounded-catchup-large focus-within:border-catchup-blue-400 focus-within:shadow-input", children: /* @__PURE__ */ jsx24(
3796
3800
  "math-field",
3797
3801
  {
@@ -3818,9 +3822,9 @@ var InputGroup = ({
3818
3822
  }
3819
3823
  }
3820
3824
  ) }) }),
3821
- /* @__PURE__ */ jsxs14("div", { children: [
3825
+ /* @__PURE__ */ jsxs15("div", { children: [
3822
3826
  /* @__PURE__ */ jsx24("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: i18n_default.t("latex_output") }),
3823
- /* @__PURE__ */ jsxs14("div", { className: "relative", children: [
3827
+ /* @__PURE__ */ jsxs15("div", { className: "relative", children: [
3824
3828
  /* @__PURE__ */ jsx24(
3825
3829
  "textarea",
3826
3830
  {
@@ -3847,7 +3851,7 @@ var InputGroup = ({
3847
3851
  );
3848
3852
  };
3849
3853
  const CheckboxInputGroup = () => {
3850
- return /* @__PURE__ */ jsxs14(
3854
+ return /* @__PURE__ */ jsxs15(
3851
3855
  "div",
3852
3856
  {
3853
3857
  className: "flex flex-row items-center gap-x-1 cursor-pointer",
@@ -3869,7 +3873,7 @@ var InputGroup = ({
3869
3873
  );
3870
3874
  };
3871
3875
  const FileInputGroup = () => {
3872
- return /* @__PURE__ */ jsxs14("div", { className: "my-1", children: [
3876
+ return /* @__PURE__ */ jsxs15("div", { className: "my-1", children: [
3873
3877
  title ? /* @__PURE__ */ jsx24("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
3874
3878
  /* @__PURE__ */ jsx24(
3875
3879
  "input",
@@ -3888,7 +3892,7 @@ var InputGroup = ({
3888
3892
  ] });
3889
3893
  };
3890
3894
  const DateInputGroup = () => {
3891
- return /* @__PURE__ */ jsxs14("div", { className: "my-1", children: [
3895
+ return /* @__PURE__ */ jsxs15("div", { className: "my-1", children: [
3892
3896
  title ? /* @__PURE__ */ jsx24("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
3893
3897
  /* @__PURE__ */ jsx24(
3894
3898
  "input",
@@ -3907,7 +3911,7 @@ var InputGroup = ({
3907
3911
  ] });
3908
3912
  };
3909
3913
  const SearchableSelectInputGroup = () => {
3910
- return /* @__PURE__ */ jsxs14("div", { className: "my-1", children: [
3914
+ return /* @__PURE__ */ jsxs15("div", { className: "my-1", children: [
3911
3915
  title ? /* @__PURE__ */ jsx24("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400 ", children: title }) : null,
3912
3916
  /* @__PURE__ */ jsx24(
3913
3917
  Select,
@@ -3972,10 +3976,10 @@ var InputGroup = ({
3972
3976
  ] });
3973
3977
  };
3974
3978
  const TextAreaInputGroup = () => {
3975
- return /* @__PURE__ */ jsxs14("div", { className: "my-1 flex-1 flex flex-col relative", children: [
3976
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-row justify-between items-center", children: [
3979
+ return /* @__PURE__ */ jsxs15("div", { className: "my-1 flex-1 flex flex-col relative", children: [
3980
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-row justify-between items-center", children: [
3977
3981
  /* @__PURE__ */ jsx24("div", { children: title ? /* @__PURE__ */ jsx24("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
3978
- /* @__PURE__ */ jsx24("div", { children: value && limit ? /* @__PURE__ */ jsxs14("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
3982
+ /* @__PURE__ */ jsx24("div", { children: value && limit ? /* @__PURE__ */ jsxs15("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
3979
3983
  value.length,
3980
3984
  " / ",
3981
3985
  limit
@@ -4000,7 +4004,7 @@ var InputGroup = ({
4000
4004
  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",
4001
4005
  onClick: handleOpenMathConstructor,
4002
4006
  type: "button",
4003
- children: /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-x-1", children: [
4007
+ children: /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-x-1", children: [
4004
4008
  /* @__PURE__ */ jsx24("span", { className: "text-sm font-medium", children: "\u{1D453}(x)" }),
4005
4009
  /* @__PURE__ */ jsx24(
4006
4010
  "svg",
@@ -4026,10 +4030,10 @@ var InputGroup = ({
4026
4030
  ] });
4027
4031
  };
4028
4032
  const TextInputGroup = () => {
4029
- return /* @__PURE__ */ jsxs14("div", { className: "my-1 relative", children: [
4030
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-row justify-between items-center", children: [
4033
+ return /* @__PURE__ */ jsxs15("div", { className: "my-1 relative", children: [
4034
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-row justify-between items-center", children: [
4031
4035
  /* @__PURE__ */ jsx24("div", { children: title ? /* @__PURE__ */ jsx24("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
4032
- /* @__PURE__ */ jsx24("div", { children: value && limit ? /* @__PURE__ */ jsxs14("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
4036
+ /* @__PURE__ */ jsx24("div", { children: value && limit ? /* @__PURE__ */ jsxs15("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
4033
4037
  value.length,
4034
4038
  " / ",
4035
4039
  limit
@@ -4063,7 +4067,7 @@ var InputGroup = ({
4063
4067
  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",
4064
4068
  onClick: handleOpenMathConstructor,
4065
4069
  type: "button",
4066
- children: /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-x-1", children: [
4070
+ children: /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-x-1", children: [
4067
4071
  /* @__PURE__ */ jsx24("span", { className: "text-sm font-medium", children: "\u{1D453}(x)" }),
4068
4072
  /* @__PURE__ */ jsx24(
4069
4073
  "svg",
@@ -4089,8 +4093,8 @@ var InputGroup = ({
4089
4093
  ] });
4090
4094
  };
4091
4095
  const SwitchInputGroup = () => {
4092
- return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col my-1", children: [
4093
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-row items-center", children: [
4096
+ return /* @__PURE__ */ jsxs15("div", { className: "flex flex-col my-1", children: [
4097
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-row items-center", children: [
4094
4098
  /* @__PURE__ */ jsx24(
4095
4099
  Switch,
4096
4100
  {
@@ -4140,7 +4144,7 @@ var InputGroup = ({
4140
4144
  return SwitchInputGroup();
4141
4145
  }
4142
4146
  };
4143
- return /* @__PURE__ */ jsxs14(Fragment, { children: [
4147
+ return /* @__PURE__ */ jsxs15(Fragment, { children: [
4144
4148
  RenderMainContent(),
4145
4149
  /* @__PURE__ */ jsx24(MathConstructorModal, {})
4146
4150
  ] });
@@ -4274,7 +4278,7 @@ var getSystemLanguageFromCurriculumType = (curriculumType) => {
4274
4278
 
4275
4279
  // src/components/dropdowns/MediaDropdown.tsx
4276
4280
  import { useState as useState14, useEffect as useEffect4, useRef as useRef2 } from "react";
4277
- import { jsx as jsx25, jsxs as jsxs15 } from "react/jsx-runtime";
4281
+ import { jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
4278
4282
  var MediaDropdown = ({ id, answer, optionList }) => {
4279
4283
  const [showDropdown, setShowDropdown] = useState14(false);
4280
4284
  const dropdownRef = useRef2(null);
@@ -4304,7 +4308,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
4304
4308
  }
4305
4309
  setShowDropdown(false);
4306
4310
  };
4307
- return /* @__PURE__ */ jsxs15("div", { ref: dropdownRef, className: "w-full relative", children: [
4311
+ return /* @__PURE__ */ jsxs16("div", { ref: dropdownRef, className: "w-full relative", children: [
4308
4312
  /* @__PURE__ */ jsx25(
4309
4313
  "div",
4310
4314
  {
@@ -4317,7 +4321,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
4317
4321
  "ul",
4318
4322
  {
4319
4323
  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`,
4320
- children: optionList.map((option, index) => /* @__PURE__ */ jsxs15(
4324
+ children: optionList.map((option, index) => /* @__PURE__ */ jsxs16(
4321
4325
  "li",
4322
4326
  {
4323
4327
  className: `${option.listItemClassNames ? option.listItemClassNames : ""}`,
@@ -4344,7 +4348,7 @@ var MediaDropdown_default = MediaDropdown;
4344
4348
  // src/components/activities/material-contents/ShowMaterialMediaByContentType.tsx
4345
4349
  import { useEffect as useEffect5, useRef as useRef3, useState as useState15 } from "react";
4346
4350
  import Modal3 from "react-modal";
4347
- import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs16 } from "react/jsx-runtime";
4351
+ import { Fragment as Fragment2, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
4348
4352
  var ShowMaterialMediaByContentType = ({
4349
4353
  key,
4350
4354
  contentType,
@@ -4391,7 +4395,7 @@ var ShowMaterialMediaByContentType = ({
4391
4395
  }
4392
4396
  },
4393
4397
  contentLabel: "",
4394
- children: /* @__PURE__ */ jsxs16("div", { className: "flex-1 flex flex-col", children: [
4398
+ children: /* @__PURE__ */ jsxs17("div", { className: "flex-1 flex flex-col", children: [
4395
4399
  /* @__PURE__ */ jsx26("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ jsx26(
4396
4400
  BaseImage_default,
4397
4401
  {
@@ -4417,9 +4421,9 @@ var ShowMaterialMediaByContentType = ({
4417
4421
  }
4418
4422
  );
4419
4423
  };
4420
- return contentType === "IMAGE" ? /* @__PURE__ */ jsxs16(Fragment2, { children: [
4424
+ return contentType === "IMAGE" ? /* @__PURE__ */ jsxs17(Fragment2, { children: [
4421
4425
  RenderShowFullScreenItem(),
4422
- /* @__PURE__ */ jsx26("div", { className: "my-2 w-full h-full", children: /* @__PURE__ */ jsx26("div", { className: "h-full flex items-center justify-center", children: /* @__PURE__ */ jsxs16("div", { className: "h-catchup-activity-media-box-item w-catchup-activity-media-box-item flex items-center justify-center relative", children: [
4426
+ /* @__PURE__ */ jsx26("div", { className: "my-2 w-full h-full", children: /* @__PURE__ */ jsx26("div", { className: "h-full flex items-center justify-center", children: /* @__PURE__ */ jsxs17("div", { className: "h-catchup-activity-media-box-item w-catchup-activity-media-box-item flex items-center justify-center relative", children: [
4423
4427
  /* @__PURE__ */ jsx26(
4424
4428
  BaseImage_default,
4425
4429
  {
@@ -4483,7 +4487,7 @@ var ShowMaterialMediaByContentType = ({
4483
4487
  var ShowMaterialMediaByContentType_default = ShowMaterialMediaByContentType;
4484
4488
 
4485
4489
  // src/components/activities/material-contents/DropdownActivityMaterialContent.tsx
4486
- import { jsx as jsx27, jsxs as jsxs17 } from "react/jsx-runtime";
4490
+ import { jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
4487
4491
  var DropdownActivityMaterialContent = ({
4488
4492
  uniqueValue,
4489
4493
  answerMap,
@@ -4515,7 +4519,7 @@ var DropdownActivityMaterialContent = ({
4515
4519
  }
4516
4520
  return "INCORRECT";
4517
4521
  };
4518
- return /* @__PURE__ */ jsxs17("div", { className: "flex flex-col h-full", children: [
4522
+ return /* @__PURE__ */ jsxs18("div", { className: "flex flex-col h-full", children: [
4519
4523
  /* @__PURE__ */ jsx27("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx27("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_dropdown_text") }) }),
4520
4524
  /* @__PURE__ */ jsx27("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx27(DividerLine_default, {}) }),
4521
4525
  /* @__PURE__ */ jsx27("div", { className: "flex-1 min-h-0 overflow-y-auto", children: /* @__PURE__ */ jsx27("div", { className: "w-full flex flex-row flex-wrap", children: Object.keys(displayAnswerMap).map(
@@ -4525,12 +4529,12 @@ var DropdownActivityMaterialContent = ({
4525
4529
  answerKey,
4526
4530
  displayAnswerMap[materialKey]
4527
4531
  );
4528
- return /* @__PURE__ */ jsx27("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ jsx27("div", { className: "mx-2", children: /* @__PURE__ */ jsxs17("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
4529
- /* @__PURE__ */ jsx27("div", { className: "my-auto", children: /* @__PURE__ */ jsxs17("p", { className: "text-xl", children: [
4532
+ return /* @__PURE__ */ jsx27("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ jsx27("div", { className: "mx-2", children: /* @__PURE__ */ jsxs18("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
4533
+ /* @__PURE__ */ jsx27("div", { className: "my-auto", children: /* @__PURE__ */ jsxs18("p", { className: "text-xl", children: [
4530
4534
  parseFloat(materialKey) + 1,
4531
4535
  "."
4532
4536
  ] }) }),
4533
- /* @__PURE__ */ jsxs17("div", { className: "w-full relative", children: [
4537
+ /* @__PURE__ */ jsxs18("div", { className: "w-full relative", children: [
4534
4538
  /* @__PURE__ */ jsx27("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsx27("div", { className: "flex-1", children: /* @__PURE__ */ jsx27(
4535
4539
  InputGroup_default,
4536
4540
  {
@@ -4632,7 +4636,7 @@ var DropdownActivityMaterialContent_default = DropdownActivityMaterialContent;
4632
4636
 
4633
4637
  // src/components/activities/DropdownActivityContent.tsx
4634
4638
  import { useState as useState17, useEffect as useEffect7 } from "react";
4635
- import { jsx as jsx28, jsxs as jsxs18 } from "react/jsx-runtime";
4639
+ import { jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
4636
4640
  var DropdownActivityContent = ({
4637
4641
  answerMap,
4638
4642
  data,
@@ -4655,7 +4659,7 @@ var DropdownActivityContent = ({
4655
4659
  setCurrentAnswerMap(answerMap2);
4656
4660
  changeAnswer(answerMap2);
4657
4661
  };
4658
- return /* @__PURE__ */ jsxs18("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
4662
+ return /* @__PURE__ */ jsxs19("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
4659
4663
  /* @__PURE__ */ jsx28("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%] md:overflow-y-auto"}`, children: /* @__PURE__ */ jsx28(
4660
4664
  ActivityBodyContent_default,
4661
4665
  {
@@ -4713,7 +4717,7 @@ var InputWithSpecialExpression = ({
4713
4717
  var InputWithSpecialExpression_default = InputWithSpecialExpression;
4714
4718
 
4715
4719
  // src/components/activities/material-contents/FillInTheBlanksActivityMaterialContent.tsx
4716
- import { jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
4720
+ import { jsx as jsx30, jsxs as jsxs20 } from "react/jsx-runtime";
4717
4721
  var FillInTheBlanksActivityMaterialContent = ({
4718
4722
  uniqueValue,
4719
4723
  answerMap,
@@ -4842,7 +4846,7 @@ var FillInTheBlanksActivityMaterialContent = ({
4842
4846
  setSelectedOption(null);
4843
4847
  }
4844
4848
  };
4845
- return /* @__PURE__ */ jsxs19(
4849
+ return /* @__PURE__ */ jsxs20(
4846
4850
  "div",
4847
4851
  {
4848
4852
  className: "flex flex-col h-full",
@@ -4903,7 +4907,7 @@ var FillInTheBlanksActivityMaterialContent = ({
4903
4907
  ) })
4904
4908
  }
4905
4909
  ),
4906
- /* @__PURE__ */ jsxs19("div", { className: "flex-1 min-h-0 overflow-y-auto", children: [
4910
+ /* @__PURE__ */ jsxs20("div", { className: "flex-1 min-h-0 overflow-y-auto", children: [
4907
4911
  /* @__PURE__ */ jsx30("div", { className: "w-full flex flex-row flex-wrap gap-x-2 gap-y-2 my-2", children: shuffleOptionList.map(
4908
4912
  (option, index) => checkAnswerProvided(displayAnswerMap, option) ? /* @__PURE__ */ jsx30(
4909
4913
  ShowMaterialMediaByContentType_default,
@@ -4969,12 +4973,12 @@ var FillInTheBlanksActivityMaterialContent = ({
4969
4973
  onMouseLeave: () => setDropTargetIndex(null),
4970
4974
  onClick: () => handleDropZoneClick(materialKey),
4971
4975
  className: `${dropTargetIndex === materialKey ? "ring-2 ring-blue-400 bg-blue-50" : ""} transition-all duration-200 rounded-lg`,
4972
- children: /* @__PURE__ */ jsxs19("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
4973
- /* @__PURE__ */ jsx30("div", { className: "my-auto", children: /* @__PURE__ */ jsxs19("p", { className: "text-xl", children: [
4976
+ children: /* @__PURE__ */ jsxs20("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
4977
+ /* @__PURE__ */ jsx30("div", { className: "my-auto", children: /* @__PURE__ */ jsxs20("p", { className: "text-xl", children: [
4974
4978
  parseFloat(materialKey) + 1,
4975
4979
  "."
4976
4980
  ] }) }),
4977
- /* @__PURE__ */ jsx30("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsxs19("div", { className: "relative", children: [
4981
+ /* @__PURE__ */ jsx30("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsxs20("div", { className: "relative", children: [
4978
4982
  /* @__PURE__ */ jsx30("div", { className: "flex-1", children: /* @__PURE__ */ jsx30(
4979
4983
  "div",
4980
4984
  {
@@ -5056,7 +5060,7 @@ var FillInTheBlanksActivityMaterialContent_default = FillInTheBlanksActivityMate
5056
5060
 
5057
5061
  // src/components/activities/FillInTheBlanksActivityContent.tsx
5058
5062
  import { useState as useState19, useEffect as useEffect9 } from "react";
5059
- import { jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
5063
+ import { jsx as jsx31, jsxs as jsxs21 } from "react/jsx-runtime";
5060
5064
  var FillInTheBlanksActivityContent = ({
5061
5065
  answerMap,
5062
5066
  data,
@@ -5104,7 +5108,7 @@ var FillInTheBlanksActivityContent = ({
5104
5108
  setCurrentAnswerMap(answerMap2);
5105
5109
  changeAnswer(answerMap2);
5106
5110
  };
5107
- return /* @__PURE__ */ jsxs20("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
5111
+ return /* @__PURE__ */ jsxs21("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
5108
5112
  /* @__PURE__ */ jsx31("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%] md:overflow-y-auto"}`, children: /* @__PURE__ */ jsx31(
5109
5113
  ActivityBodyContent_default,
5110
5114
  {
@@ -5137,7 +5141,7 @@ var FillInTheBlanksActivityContent_default = FillInTheBlanksActivityContent;
5137
5141
  // src/components/activities/material-contents/GroupingActivityMaterialContent.tsx
5138
5142
  import { useEffect as useEffect10, useRef as useRef5, useState as useState20 } from "react";
5139
5143
  import { InlineMath as InlineMath5 } from "react-katex";
5140
- import { Fragment as Fragment3, jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
5144
+ import { Fragment as Fragment3, jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
5141
5145
  var GroupingActivityMaterialContent = ({
5142
5146
  uniqueValue,
5143
5147
  answerMap,
@@ -5334,7 +5338,7 @@ var GroupingActivityMaterialContent = ({
5334
5338
  }
5335
5339
  };
5336
5340
  const filteredMaterialList = retrieveFilteredMaterialList(displayAnswerMap);
5337
- return /* @__PURE__ */ jsxs21("div", { className: "flex flex-col h-full", onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, children: [
5341
+ return /* @__PURE__ */ jsxs22("div", { className: "flex flex-col h-full", onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, children: [
5338
5342
  draggedValue && mousePosition.x > 0 && /* @__PURE__ */ jsx32(
5339
5343
  "div",
5340
5344
  {
@@ -5393,7 +5397,7 @@ var GroupingActivityMaterialContent = ({
5393
5397
  ) })
5394
5398
  }
5395
5399
  ),
5396
- filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs21(Fragment3, { children: [
5400
+ filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs22(Fragment3, { children: [
5397
5401
  /* @__PURE__ */ jsx32("div", { className: "flex-shrink-0 flex flex-row gap-x-4 overflow-x-auto py-2", children: filteredMaterialList.map((materialValue, index) => {
5398
5402
  return /* @__PURE__ */ jsx32(
5399
5403
  "div",
@@ -5436,7 +5440,7 @@ var GroupingActivityMaterialContent = ({
5436
5440
  }) }),
5437
5441
  /* @__PURE__ */ jsx32("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx32(DividerLine_default, {}) })
5438
5442
  ] }) : null,
5439
- /* @__PURE__ */ jsx32("div", { className: "flex-1 min-h-0 overflow-y-auto", children: Object.keys(displayAnswerMap).map((answerMapKey, index) => /* @__PURE__ */ jsxs21("div", { className: "flex flex-row w-full", children: [
5443
+ /* @__PURE__ */ jsx32("div", { className: "flex-1 min-h-0 overflow-y-auto", children: Object.keys(displayAnswerMap).map((answerMapKey, index) => /* @__PURE__ */ jsxs22("div", { className: "flex flex-row w-full", children: [
5440
5444
  /* @__PURE__ */ jsx32("div", { className: "w-1/3", children: /* @__PURE__ */ jsx32(
5441
5445
  "div",
5442
5446
  {
@@ -5526,7 +5530,7 @@ var GroupingActivityMaterialContent = ({
5526
5530
  var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
5527
5531
 
5528
5532
  // src/components/activities/GroupingActivityContent.tsx
5529
- import { jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
5533
+ import { jsx as jsx33, jsxs as jsxs23 } from "react/jsx-runtime";
5530
5534
  var GroupingActivityContent = ({
5531
5535
  answerMap,
5532
5536
  data,
@@ -5548,7 +5552,7 @@ var GroupingActivityContent = ({
5548
5552
  }
5549
5553
  changeAnswer(answerMap2);
5550
5554
  };
5551
- return /* @__PURE__ */ jsxs22("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
5555
+ return /* @__PURE__ */ jsxs23("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
5552
5556
  /* @__PURE__ */ jsx33(
5553
5557
  "div",
5554
5558
  {
@@ -5590,7 +5594,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
5590
5594
  // src/components/activities/material-contents/MatchingActivityMaterialContent.tsx
5591
5595
  import { useEffect as useEffect11, useRef as useRef6, useState as useState21 } from "react";
5592
5596
  import { InlineMath as InlineMath6 } from "react-katex";
5593
- import { Fragment as Fragment4, jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
5597
+ import { Fragment as Fragment4, jsx as jsx34, jsxs as jsxs24 } from "react/jsx-runtime";
5594
5598
  var MatchingActivityMaterialContent = ({
5595
5599
  uniqueValue,
5596
5600
  answerMap,
@@ -5779,7 +5783,7 @@ var MatchingActivityMaterialContent = ({
5779
5783
  }
5780
5784
  };
5781
5785
  const filteredMaterialList = retrieveFilteredMaterialList(displayAnswerMap);
5782
- return /* @__PURE__ */ jsxs23("div", { className: "flex flex-col h-full", onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, children: [
5786
+ return /* @__PURE__ */ jsxs24("div", { className: "flex flex-col h-full", onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, children: [
5783
5787
  draggedValue && mousePosition.x > 0 && /* @__PURE__ */ jsx34(
5784
5788
  "div",
5785
5789
  {
@@ -5838,7 +5842,7 @@ var MatchingActivityMaterialContent = ({
5838
5842
  ) })
5839
5843
  }
5840
5844
  ),
5841
- filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs23(Fragment4, { children: [
5845
+ filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs24(Fragment4, { children: [
5842
5846
  /* @__PURE__ */ jsx34(
5843
5847
  "div",
5844
5848
  {
@@ -5891,7 +5895,7 @@ var MatchingActivityMaterialContent = ({
5891
5895
  materialMap[answerMapKey],
5892
5896
  displayAnswerMap[answerMapKey]
5893
5897
  );
5894
- return /* @__PURE__ */ jsxs23("div", { className: "flex flex-row w-full", children: [
5898
+ return /* @__PURE__ */ jsxs24("div", { className: "flex flex-row w-full", children: [
5895
5899
  /* @__PURE__ */ jsx34("div", { className: "w-1/3", children: /* @__PURE__ */ jsx34(
5896
5900
  "div",
5897
5901
  {
@@ -5958,7 +5962,7 @@ var MatchingActivityMaterialContent = ({
5958
5962
  var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
5959
5963
 
5960
5964
  // src/components/activities/MatchingActivityContent.tsx
5961
- import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
5965
+ import { jsx as jsx35, jsxs as jsxs25 } from "react/jsx-runtime";
5962
5966
  var MatchingActivityContent = ({
5963
5967
  answerMap,
5964
5968
  data,
@@ -5976,7 +5980,7 @@ var MatchingActivityContent = ({
5976
5980
  answerMap2[key] = value;
5977
5981
  changeAnswer(answerMap2);
5978
5982
  };
5979
- return /* @__PURE__ */ jsxs24("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
5983
+ return /* @__PURE__ */ jsxs25("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
5980
5984
  /* @__PURE__ */ jsx35(
5981
5985
  "div",
5982
5986
  {
@@ -6018,7 +6022,7 @@ var MatchingActivityContent_default = MatchingActivityContent;
6018
6022
  // src/components/activities/material-contents/MCMAActivityMaterialContent.tsx
6019
6023
  import { useEffect as useEffect12, useState as useState22 } from "react";
6020
6024
  import { InlineMath as InlineMath7 } from "react-katex";
6021
- import { jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
6025
+ import { jsx as jsx36, jsxs as jsxs26 } from "react/jsx-runtime";
6022
6026
  var MCMAActivityMaterialContent = ({
6023
6027
  uniqueValue,
6024
6028
  answerMap,
@@ -6057,7 +6061,7 @@ var MCMAActivityMaterialContent = ({
6057
6061
  };
6058
6062
  const correctAnswerList = retrieveCorrectAnswerList();
6059
6063
  return /* @__PURE__ */ jsx36("div", { className: "flex flex-col h-full", children: Object.keys(materialMap).map((materialKey, index) => {
6060
- return /* @__PURE__ */ jsx36("div", { className: "flex flex-col flex-1 min-h-0", children: /* @__PURE__ */ jsxs25("div", { className: "flex-1 flex flex-col border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0 min-h-0", children: [
6064
+ return /* @__PURE__ */ jsx36("div", { className: "flex flex-col flex-1 min-h-0", children: /* @__PURE__ */ jsxs26("div", { className: "flex-1 flex flex-col border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0 min-h-0", children: [
6061
6065
  /* @__PURE__ */ jsx36("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx36("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
6062
6066
  /* @__PURE__ */ jsx36("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx36(DividerLine_default, {}) }),
6063
6067
  /* @__PURE__ */ jsx36("div", { className: "flex-1 min-h-0 overflow-y-auto", children: checkCanAnswerQuestion() ? /* @__PURE__ */ jsx36("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
@@ -6073,7 +6077,7 @@ var MCMAActivityMaterialContent = ({
6073
6077
  const foundIndex = correctAnswerList.findIndex(
6074
6078
  (correctAnswer) => correctAnswer === materialSubKey
6075
6079
  );
6076
- return /* @__PURE__ */ jsxs25(
6080
+ return /* @__PURE__ */ jsxs26(
6077
6081
  "div",
6078
6082
  {
6079
6083
  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" : ""}`,
@@ -6130,7 +6134,7 @@ var MCMAActivityMaterialContent = ({
6130
6134
  var MCMAActivityMaterialContent_default = MCMAActivityMaterialContent;
6131
6135
 
6132
6136
  // src/components/activities/MCMAActivityContent.tsx
6133
- import { jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
6137
+ import { jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
6134
6138
  var MCMAActivityContent = ({
6135
6139
  answerMap,
6136
6140
  data,
@@ -6155,7 +6159,7 @@ var MCMAActivityContent = ({
6155
6159
  }
6156
6160
  changeAnswer(answerMap2);
6157
6161
  };
6158
- return /* @__PURE__ */ jsxs26("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6162
+ return /* @__PURE__ */ jsxs27("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6159
6163
  /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%] md:overflow-y-auto"}`, children: /* @__PURE__ */ jsx37(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
6160
6164
  /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx37(DividerLine_default, {}) }),
6161
6165
  /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx37(VerticalDividerLine_default, {}) }),
@@ -6179,7 +6183,7 @@ var MCMAActivityContent_default = MCMAActivityContent;
6179
6183
  // src/components/activities/material-contents/MCSAActivityMaterialContent.tsx
6180
6184
  import { useEffect as useEffect13, useState as useState23 } from "react";
6181
6185
  import { InlineMath as InlineMath8 } from "react-katex";
6182
- import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
6186
+ import { jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
6183
6187
  var MCSAActivityMaterialContent = ({
6184
6188
  uniqueValue,
6185
6189
  answerMap,
@@ -6212,7 +6216,7 @@ var MCSAActivityMaterialContent = ({
6212
6216
  };
6213
6217
  const correctAnswer = retrieveCorrectAnswer();
6214
6218
  return /* @__PURE__ */ jsx38("div", { className: "flex flex-col h-full", children: Object.keys(materialMap).map((materialKey, index) => {
6215
- return /* @__PURE__ */ jsx38("div", { className: "flex flex-col flex-1 min-h-0", children: /* @__PURE__ */ jsxs27("div", { className: "flex-1 flex flex-col border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0 min-h-0", children: [
6219
+ return /* @__PURE__ */ jsx38("div", { className: "flex flex-col flex-1 min-h-0", children: /* @__PURE__ */ jsxs28("div", { className: "flex-1 flex flex-col border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0 min-h-0", children: [
6216
6220
  /* @__PURE__ */ jsx38("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx38("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
6217
6221
  /* @__PURE__ */ jsx38("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx38(DividerLine_default, {}) }),
6218
6222
  /* @__PURE__ */ jsx38("div", { className: "flex-1 min-h-0 overflow-y-auto", children: checkCanAnswerQuestion() ? /* @__PURE__ */ jsx38(
@@ -6226,7 +6230,7 @@ var MCSAActivityMaterialContent = ({
6226
6230
  materialSubKey,
6227
6231
  displayAnswerMap[materialKey]
6228
6232
  );
6229
- return /* @__PURE__ */ jsxs27(
6233
+ return /* @__PURE__ */ jsxs28(
6230
6234
  "div",
6231
6235
  {
6232
6236
  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" : ""}`,
@@ -6285,7 +6289,7 @@ var MCSAActivityMaterialContent = ({
6285
6289
  var MCSAActivityMaterialContent_default = MCSAActivityMaterialContent;
6286
6290
 
6287
6291
  // src/components/activities/MCSAActivityContent.tsx
6288
- import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
6292
+ import { jsx as jsx39, jsxs as jsxs29 } from "react/jsx-runtime";
6289
6293
  var MCSAActivityContent = ({
6290
6294
  answerMap,
6291
6295
  data,
@@ -6303,7 +6307,7 @@ var MCSAActivityContent = ({
6303
6307
  answerMap2[key] = value;
6304
6308
  changeAnswer(answerMap2);
6305
6309
  };
6306
- return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6310
+ return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6307
6311
  /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%] md:overflow-y-auto"}`, children: /* @__PURE__ */ jsx39(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
6308
6312
  /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx39(DividerLine_default, {}) }),
6309
6313
  /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx39(VerticalDividerLine_default, {}) }),
@@ -6414,7 +6418,7 @@ var retrieveAcceptedFormats = (fileType) => {
6414
6418
  };
6415
6419
 
6416
6420
  // src/components/activities/material-contents/OpenEndedActivityMaterialContent.tsx
6417
- import { Fragment as Fragment5, jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
6421
+ import { Fragment as Fragment5, jsx as jsx40, jsxs as jsxs30 } from "react/jsx-runtime";
6418
6422
  var OpenEndedActivityMaterialContent = ({
6419
6423
  answerMap,
6420
6424
  contentMap,
@@ -6494,7 +6498,7 @@ var OpenEndedActivityMaterialContent = ({
6494
6498
  }
6495
6499
  ) });
6496
6500
  };
6497
- return /* @__PURE__ */ jsxs29("div", { className: "flex flex-col h-full", children: [
6501
+ return /* @__PURE__ */ jsxs30("div", { className: "flex flex-col h-full", children: [
6498
6502
  /* @__PURE__ */ jsx40("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx40("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
6499
6503
  /* @__PURE__ */ jsx40("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx40(DividerLine_default, {}) }),
6500
6504
  /* @__PURE__ */ jsx40("div", { className: "flex-1 min-h-0 overflow-y-auto", children: contentMap.type === "TEXT" ? RenderTextContent(answerMap) : contentMap.type === "IMAGE" ? RenderImageContent(answerMap) : contentMap.type === "AUDIO" ? RenderAudioContent(answerMap) : null })
@@ -6503,7 +6507,7 @@ var OpenEndedActivityMaterialContent = ({
6503
6507
  var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
6504
6508
 
6505
6509
  // src/components/activities/OpenEndedActivityContent.tsx
6506
- import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
6510
+ import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs31 } from "react/jsx-runtime";
6507
6511
  var OpenEndedActivityContent = ({
6508
6512
  answerMap,
6509
6513
  data,
@@ -6520,7 +6524,7 @@ var OpenEndedActivityContent = ({
6520
6524
  answerMap2["ANSWER"] = value;
6521
6525
  changeAnswer(answerMap2);
6522
6526
  };
6523
- return /* @__PURE__ */ jsxs30("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6527
+ return /* @__PURE__ */ jsxs31("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6524
6528
  /* @__PURE__ */ jsx41(
6525
6529
  "div",
6526
6530
  {
@@ -6534,7 +6538,7 @@ var OpenEndedActivityContent = ({
6534
6538
  )
6535
6539
  }
6536
6540
  ),
6537
- showMaterialContent ? /* @__PURE__ */ jsxs30(Fragment6, { children: [
6541
+ showMaterialContent ? /* @__PURE__ */ jsxs31(Fragment6, { children: [
6538
6542
  /* @__PURE__ */ jsx41(
6539
6543
  "div",
6540
6544
  {
@@ -6560,7 +6564,7 @@ var OpenEndedActivityContent_default = OpenEndedActivityContent;
6560
6564
  // src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
6561
6565
  import { useEffect as useEffect14, useState as useState24, useRef as useRef7 } from "react";
6562
6566
  import { InlineMath as InlineMath9 } from "react-katex";
6563
- import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
6567
+ import { jsx as jsx42, jsxs as jsxs32 } from "react/jsx-runtime";
6564
6568
  var OrderingActivityMaterialContent = ({
6565
6569
  uniqueValue,
6566
6570
  answerMap,
@@ -6678,7 +6682,7 @@ var OrderingActivityMaterialContent = ({
6678
6682
  }
6679
6683
  setDraggedKey(null);
6680
6684
  };
6681
- return /* @__PURE__ */ jsxs31(
6685
+ return /* @__PURE__ */ jsxs32(
6682
6686
  "div",
6683
6687
  {
6684
6688
  className: "flex flex-col h-full",
@@ -6748,7 +6752,7 @@ var OrderingActivityMaterialContent = ({
6748
6752
  displayAnswerMap[materialKey] + "",
6749
6753
  index + ""
6750
6754
  );
6751
- return /* @__PURE__ */ jsx42("div", { className: "w-full", children: /* @__PURE__ */ jsxs31(
6755
+ return /* @__PURE__ */ jsx42("div", { className: "w-full", children: /* @__PURE__ */ jsxs32(
6752
6756
  "div",
6753
6757
  {
6754
6758
  className: `flex flex-row items-center my-4 mx-2`,
@@ -6811,7 +6815,7 @@ var OrderingActivityMaterialContent = ({
6811
6815
  var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
6812
6816
 
6813
6817
  // src/components/activities/OrderingActivityContent.tsx
6814
- import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
6818
+ import { jsx as jsx43, jsxs as jsxs33 } from "react/jsx-runtime";
6815
6819
  var OrderingActivityContent = ({
6816
6820
  answerMap,
6817
6821
  data,
@@ -6831,7 +6835,7 @@ var OrderingActivityContent = ({
6831
6835
  answerMap2[secondaryKey] = prevValue;
6832
6836
  changeAnswer(answerMap2);
6833
6837
  };
6834
- return /* @__PURE__ */ jsxs32("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6838
+ return /* @__PURE__ */ jsxs33("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
6835
6839
  /* @__PURE__ */ jsx43(
6836
6840
  "div",
6837
6841
  {
@@ -6873,7 +6877,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
6873
6877
  // src/components/activities/material-contents/TrueFalseActivityMaterialContent.tsx
6874
6878
  import { useEffect as useEffect15, useState as useState25 } from "react";
6875
6879
  import { InlineMath as InlineMath10 } from "react-katex";
6876
- import { Fragment as Fragment7, jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
6880
+ import { Fragment as Fragment7, jsx as jsx44, jsxs as jsxs34 } from "react/jsx-runtime";
6877
6881
  var TrueFalseActivityMaterialContent = ({
6878
6882
  uniqueValue,
6879
6883
  answerMap,
@@ -6910,10 +6914,10 @@ var TrueFalseActivityMaterialContent = ({
6910
6914
  }
6911
6915
  return "INCORRECT";
6912
6916
  };
6913
- return /* @__PURE__ */ jsxs33("div", { className: "flex flex-col h-full", children: [
6917
+ return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col h-full", children: [
6914
6918
  /* @__PURE__ */ jsx44("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx44("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
6915
6919
  /* @__PURE__ */ jsx44("div", { className: "hidden md:block flex-shrink-0", children: /* @__PURE__ */ jsx44(DividerLine_default, {}) }),
6916
- /* @__PURE__ */ jsxs33("div", { className: "flex flex-row justify-end items-center gap-x-2 flex-shrink-0", children: [
6920
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-row justify-end items-center gap-x-2 flex-shrink-0", children: [
6917
6921
  /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
6918
6922
  /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
6919
6923
  ] }),
@@ -6928,7 +6932,7 @@ var TrueFalseActivityMaterialContent = ({
6928
6932
  correctAnswer,
6929
6933
  learnerAnswer
6930
6934
  );
6931
- return /* @__PURE__ */ jsxs33(
6935
+ return /* @__PURE__ */ jsxs34(
6932
6936
  "div",
6933
6937
  {
6934
6938
  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" : ""}`,
@@ -6951,7 +6955,7 @@ var TrueFalseActivityMaterialContent = ({
6951
6955
  },
6952
6956
  `${uniqueValue}-${index}`
6953
6957
  ) }),
6954
- /* @__PURE__ */ jsxs33("div", { className: "flex flex-row items-center gap-x-2", children: [
6958
+ /* @__PURE__ */ jsxs34("div", { className: "flex flex-row items-center gap-x-2", children: [
6955
6959
  /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx44(
6956
6960
  BaseImage_default,
6957
6961
  {
@@ -6979,12 +6983,12 @@ var TrueFalseActivityMaterialContent = ({
6979
6983
  },
6980
6984
  index
6981
6985
  );
6982
- }) }) : /* @__PURE__ */ jsxs33(Fragment7, { children: [
6983
- displayAnswerMap.trueList.map((item) => /* @__PURE__ */ jsxs33("div", { className: "flex flex-row items-center gap-x-2", children: [
6986
+ }) }) : /* @__PURE__ */ jsxs34(Fragment7, { children: [
6987
+ displayAnswerMap.trueList.map((item) => /* @__PURE__ */ jsxs34("div", { className: "flex flex-row items-center gap-x-2", children: [
6984
6988
  /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("p", { children: item }) }),
6985
6989
  /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "underline", children: i18n_default.t("true") }) })
6986
6990
  ] })),
6987
- displayAnswerMap.falseList.map((item) => /* @__PURE__ */ jsxs33("div", { className: "flex flex-row items-center gap-x-2", children: [
6991
+ displayAnswerMap.falseList.map((item) => /* @__PURE__ */ jsxs34("div", { className: "flex flex-row items-center gap-x-2", children: [
6988
6992
  /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("p", { children: item }) }),
6989
6993
  /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "underline", children: i18n_default.t("false") }) })
6990
6994
  ] }))
@@ -6994,7 +6998,7 @@ var TrueFalseActivityMaterialContent = ({
6994
6998
  var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
6995
6999
 
6996
7000
  // src/components/activities/TrueFalseActivityContent.tsx
6997
- import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
7001
+ import { jsx as jsx45, jsxs as jsxs35 } from "react/jsx-runtime";
6998
7002
  var TrueFalseActivityContent = ({
6999
7003
  answerMap,
7000
7004
  data,
@@ -7038,7 +7042,7 @@ var TrueFalseActivityContent = ({
7038
7042
  }
7039
7043
  changeAnswer(answerMap2);
7040
7044
  };
7041
- return /* @__PURE__ */ jsxs34("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
7045
+ return /* @__PURE__ */ jsxs35("div", { className: `flex flex-col ${isFullScreen ? "" : "md:flex-row"} h-full`, children: [
7042
7046
  /* @__PURE__ */ jsx45("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%] md:overflow-y-auto"}`, children: /* @__PURE__ */ jsx45(
7043
7047
  ActivityBodyContent_default,
7044
7048
  {
@@ -7067,7 +7071,7 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
7067
7071
 
7068
7072
  // src/components/activities/solution-contents/ActivitySolutionContent.tsx
7069
7073
  import { InlineMath as InlineMath11 } from "react-katex";
7070
- import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
7074
+ import { jsx as jsx46, jsxs as jsxs36 } from "react/jsx-runtime";
7071
7075
  var ActivitySolutionContent = ({
7072
7076
  activityTemplateType,
7073
7077
  data
@@ -7099,7 +7103,7 @@ var ActivitySolutionContent = ({
7099
7103
  return null;
7100
7104
  }
7101
7105
  if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
7102
- return /* @__PURE__ */ jsx46("div", { className: "mx-2", children: /* @__PURE__ */ jsxs35("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
7106
+ return /* @__PURE__ */ jsx46("div", { className: "mx-2", children: /* @__PURE__ */ jsxs36("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
7103
7107
  /* @__PURE__ */ jsx46("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
7104
7108
  Object.keys(solutionMap).map((key) => {
7105
7109
  let currentItem;
@@ -7127,7 +7131,7 @@ var ActivitySolutionContent_default = ActivitySolutionContent;
7127
7131
 
7128
7132
  // src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx
7129
7133
  import { InlineMath as InlineMath12 } from "react-katex";
7130
- import { jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
7134
+ import { jsx as jsx47, jsxs as jsxs37 } from "react/jsx-runtime";
7131
7135
  var ActivityEvaluationRubricContent = ({
7132
7136
  activityTemplateType,
7133
7137
  data
@@ -7157,7 +7161,7 @@ var ActivityEvaluationRubricContent = ({
7157
7161
  }
7158
7162
  if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
7159
7163
  return null;
7160
- return /* @__PURE__ */ jsxs36("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
7164
+ return /* @__PURE__ */ jsxs37("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
7161
7165
  /* @__PURE__ */ jsx47("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
7162
7166
  Object.keys(evaluationRubricMap).map((key, index) => {
7163
7167
  const currentItem = JSON.parse(evaluationRubricMap[key]);
@@ -7169,8 +7173,8 @@ var ActivityEvaluationRubricContent = ({
7169
7173
  points = parseFloat(matchedRegex[1]);
7170
7174
  evaluationRubric = matchedRegex[2];
7171
7175
  }
7172
- return /* @__PURE__ */ jsxs36("div", { className: "my-2 flex flex-row gap-x-3", children: [
7173
- /* @__PURE__ */ jsxs36("div", { className: "font-bold text-xl whitespace-nowrap", children: [
7176
+ return /* @__PURE__ */ jsxs37("div", { className: "my-2 flex flex-row gap-x-3", children: [
7177
+ /* @__PURE__ */ jsxs37("div", { className: "font-bold text-xl whitespace-nowrap", children: [
7174
7178
  points,
7175
7179
  " ",
7176
7180
  i18n_default.t("points")
@@ -7195,7 +7199,7 @@ var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
7195
7199
  import { useEffect as useEffect16, useState as useState26 } from "react";
7196
7200
 
7197
7201
  // src/components/boxes/SelectionBox.tsx
7198
- import { jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
7202
+ import { jsx as jsx48, jsxs as jsxs38 } from "react/jsx-runtime";
7199
7203
  var SelectionBox = ({
7200
7204
  optionList,
7201
7205
  selectedId,
@@ -7208,15 +7212,15 @@ var SelectionBox = ({
7208
7212
  onClick: () => {
7209
7213
  handleSelectOnClick(option.id);
7210
7214
  },
7211
- children: /* @__PURE__ */ jsxs37(
7215
+ children: /* @__PURE__ */ jsxs38(
7212
7216
  "div",
7213
7217
  {
7214
7218
  className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
7215
7219
  children: [
7216
7220
  option.icon,
7217
- /* @__PURE__ */ jsxs37("div", { className: "flex-1 flex flex-col items-center", children: [
7221
+ /* @__PURE__ */ jsxs38("div", { className: "flex-1 flex flex-col items-center", children: [
7218
7222
  /* @__PURE__ */ jsx48("p", { children: option.text }),
7219
- option.subText ? /* @__PURE__ */ jsxs37("p", { className: "text-md", children: [
7223
+ option.subText ? /* @__PURE__ */ jsxs38("p", { className: "text-md", children: [
7220
7224
  "(",
7221
7225
  option.subText,
7222
7226
  ")"
@@ -7232,7 +7236,7 @@ var SelectionBox = ({
7232
7236
  var SelectionBox_default = SelectionBox;
7233
7237
 
7234
7238
  // src/components/activities/ActivityPreviewByData.tsx
7235
- import { Fragment as Fragment8, jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
7239
+ import { Fragment as Fragment8, jsx as jsx49, jsxs as jsxs39 } from "react/jsx-runtime";
7236
7240
  var ACTIVITY_TEMPLATE_LIST = [
7237
7241
  { type: "ORDERING", materialMap: "orderingMaterialMap" },
7238
7242
  { type: "DROPDOWN", materialMap: "dropdownMaterialMap" },
@@ -7341,42 +7345,42 @@ var ActivityPreviewByData = ({
7341
7345
  }
7342
7346
  switch (selectedType) {
7343
7347
  case "ORDERING":
7344
- return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7348
+ return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7345
7349
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7346
7350
  /* @__PURE__ */ jsx49(OrderingActivityContent_default, __spreadValues({}, commonProps))
7347
7351
  ] }) : null;
7348
7352
  case "DROPDOWN":
7349
- return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7353
+ return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7350
7354
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7351
7355
  /* @__PURE__ */ jsx49(DropdownActivityContent_default, __spreadValues({}, commonProps))
7352
7356
  ] }) : null;
7353
7357
  case "MCSA":
7354
- return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7358
+ return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7355
7359
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7356
7360
  /* @__PURE__ */ jsx49(MCSAActivityContent_default, __spreadValues({}, commonProps))
7357
7361
  ] }) : null;
7358
7362
  case "MCMA":
7359
- return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7363
+ return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7360
7364
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7361
7365
  /* @__PURE__ */ jsx49(MCMAActivityContent_default, __spreadValues({}, commonProps))
7362
7366
  ] }) : null;
7363
7367
  case "MATCHING":
7364
- return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7368
+ return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7365
7369
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7366
7370
  /* @__PURE__ */ jsx49(MatchingActivityContent_default, __spreadValues({}, commonProps))
7367
7371
  ] }) : null;
7368
7372
  case "GROUPING":
7369
- return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7373
+ return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7370
7374
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7371
7375
  /* @__PURE__ */ jsx49(GroupingActivityContent_default, __spreadValues({}, commonProps))
7372
7376
  ] }) : null;
7373
7377
  case "FILL_IN_THE_BLANKS":
7374
- return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7378
+ return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7375
7379
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7376
7380
  /* @__PURE__ */ jsx49(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps))
7377
7381
  ] }) : null;
7378
7382
  case "OPEN_ENDED":
7379
- return data.openEndedBodyMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7383
+ return data.openEndedBodyMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7380
7384
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7381
7385
  /* @__PURE__ */ jsx49(
7382
7386
  OpenEndedActivityContent_default,
@@ -7386,7 +7390,7 @@ var ActivityPreviewByData = ({
7386
7390
  )
7387
7391
  ] }) : null;
7388
7392
  case "TRUE_FALSE":
7389
- return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7393
+ return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7390
7394
  isEmpty && /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}),
7391
7395
  /* @__PURE__ */ jsx49(TrueFalseActivityContent_default, __spreadValues({}, commonProps))
7392
7396
  ] }) : null;
@@ -7395,9 +7399,9 @@ var ActivityPreviewByData = ({
7395
7399
  }
7396
7400
  };
7397
7401
  if (!data) return null;
7398
- return /* @__PURE__ */ jsxs38("div", { children: [
7399
- showType && optionList.length > 0 ? /* @__PURE__ */ jsxs38(Fragment8, { children: [
7400
- /* @__PURE__ */ jsxs38("div", { className: "mb-2", children: [
7402
+ return /* @__PURE__ */ jsxs39("div", { children: [
7403
+ showType && optionList.length > 0 ? /* @__PURE__ */ jsxs39(Fragment8, { children: [
7404
+ /* @__PURE__ */ jsxs39("div", { className: "mb-2", children: [
7401
7405
  showDescription ? /* @__PURE__ */ jsx49("div", { className: "my-2", children: /* @__PURE__ */ jsx49("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
7402
7406
  /* @__PURE__ */ jsx49(
7403
7407
  SelectionBox_default,
@@ -7432,17 +7436,17 @@ var ActivityPreviewByData = ({
7432
7436
  var ActivityPreviewByData_default = ActivityPreviewByData;
7433
7437
 
7434
7438
  // src/components/errors/StatusError.tsx
7435
- import { jsx as jsx50, jsxs as jsxs39 } from "react/jsx-runtime";
7439
+ import { jsx as jsx50, jsxs as jsxs40 } from "react/jsx-runtime";
7436
7440
  var StatusError = ({
7437
7441
  statusCode,
7438
7442
  statusText,
7439
7443
  textSize
7440
7444
  }) => {
7441
- return /* @__PURE__ */ jsxs39("div", { className: "flex flex-col justify-center items-center", children: [
7445
+ return /* @__PURE__ */ jsxs40("div", { className: "flex flex-col justify-center items-center", children: [
7442
7446
  /* @__PURE__ */ jsx50("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
7443
- /* @__PURE__ */ jsxs39("div", { className: "text-center my-5", children: [
7447
+ /* @__PURE__ */ jsxs40("div", { className: "text-center my-5", children: [
7444
7448
  /* @__PURE__ */ jsx50("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
7445
- /* @__PURE__ */ jsxs39("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
7449
+ /* @__PURE__ */ jsxs40("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
7446
7450
  "(",
7447
7451
  statusCode ? `${statusCode} - ` : null,
7448
7452
  statusText,
@@ -7466,7 +7470,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
7466
7470
  var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
7467
7471
 
7468
7472
  // src/components/groups/LeftTextRightInputGroup.tsx
7469
- import { jsx as jsx52, jsxs as jsxs40 } from "react/jsx-runtime";
7473
+ import { jsx as jsx52, jsxs as jsxs41 } from "react/jsx-runtime";
7470
7474
  var LeftTextRightInputGroup = ({
7471
7475
  type,
7472
7476
  title,
@@ -7476,7 +7480,7 @@ var LeftTextRightInputGroup = ({
7476
7480
  disabled,
7477
7481
  errorText
7478
7482
  }) => {
7479
- return /* @__PURE__ */ jsxs40("div", { className: "w-full flex flex-row mx-2", children: [
7483
+ return /* @__PURE__ */ jsxs41("div", { className: "w-full flex flex-row mx-2", children: [
7480
7484
  /* @__PURE__ */ jsx52("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ jsx52("p", { children: title }) }),
7481
7485
  /* @__PURE__ */ jsx52("div", { className: "flex-1", children: /* @__PURE__ */ jsx52(
7482
7486
  InputGroup_default,
@@ -7495,7 +7499,7 @@ var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
7495
7499
 
7496
7500
  // src/components/groups/PageTravelGroup.tsx
7497
7501
  import { useEffect as useEffect17, useState as useState27 } from "react";
7498
- import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
7502
+ import { jsx as jsx53, jsxs as jsxs42 } from "react/jsx-runtime";
7499
7503
  var PageTravelGroup = ({
7500
7504
  isImageProcessing,
7501
7505
  handleImageProcessing,
@@ -7521,7 +7525,7 @@ var PageTravelGroup = ({
7521
7525
  setImageReady(false);
7522
7526
  }
7523
7527
  };
7524
- return /* @__PURE__ */ jsxs41("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap gap-x-2", children: [
7528
+ return /* @__PURE__ */ jsxs42("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap gap-x-2", children: [
7525
7529
  /* @__PURE__ */ jsx53(
7526
7530
  "button",
7527
7531
  {
@@ -7531,7 +7535,7 @@ var PageTravelGroup = ({
7531
7535
  children: "\u2190"
7532
7536
  }
7533
7537
  ),
7534
- /* @__PURE__ */ jsxs41("p", { className: "text-md", children: [
7538
+ /* @__PURE__ */ jsxs42("p", { className: "text-md", children: [
7535
7539
  pageNumber + 1,
7536
7540
  " / ",
7537
7541
  totalPageNumber
@@ -7603,7 +7607,7 @@ var useScreenSize = () => {
7603
7607
  var useScreenSize_default = useScreenSize;
7604
7608
 
7605
7609
  // src/components/boxes/SelectionCheckbox.tsx
7606
- import { jsx as jsx54, jsxs as jsxs42 } from "react/jsx-runtime";
7610
+ import { jsx as jsx54, jsxs as jsxs43 } from "react/jsx-runtime";
7607
7611
  var SelectionCheckbox = ({
7608
7612
  optionList,
7609
7613
  selectedIdList,
@@ -7625,7 +7629,7 @@ var SelectionCheckbox = ({
7625
7629
  handleRemoveOnClick(option.id);
7626
7630
  }
7627
7631
  },
7628
- children: /* @__PURE__ */ jsxs42(
7632
+ children: /* @__PURE__ */ jsxs43(
7629
7633
  "div",
7630
7634
  {
7631
7635
  className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
@@ -7653,7 +7657,7 @@ var SelectionCheckbox = ({
7653
7657
  var SelectionCheckbox_default = SelectionCheckbox;
7654
7658
 
7655
7659
  // src/components/tabs/SelectionTab.tsx
7656
- import { jsx as jsx55, jsxs as jsxs43 } from "react/jsx-runtime";
7660
+ import { jsx as jsx55, jsxs as jsxs44 } from "react/jsx-runtime";
7657
7661
  var SelectionTab = ({
7658
7662
  optionList,
7659
7663
  selectedId,
@@ -7663,7 +7667,7 @@ var SelectionTab = ({
7663
7667
  textColor,
7664
7668
  borderColor
7665
7669
  }) => {
7666
- return /* @__PURE__ */ jsx55("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__ */ jsxs43(
7670
+ return /* @__PURE__ */ jsx55("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__ */ jsxs44(
7667
7671
  "div",
7668
7672
  {
7669
7673
  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 px-4 py-2 cursor-pointer`,
@@ -7729,7 +7733,7 @@ var SelectionTabPill = ({
7729
7733
  var SelectionTabPill_default = SelectionTabPill;
7730
7734
 
7731
7735
  // src/components/labels/Label.tsx
7732
- import { jsx as jsx58, jsxs as jsxs44 } from "react/jsx-runtime";
7736
+ import { jsx as jsx58, jsxs as jsxs45 } from "react/jsx-runtime";
7733
7737
  var Label = ({
7734
7738
  title,
7735
7739
  icon,
@@ -7749,7 +7753,7 @@ var Label = ({
7749
7753
  background: backgroundColor,
7750
7754
  color: textColor
7751
7755
  },
7752
- children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
7756
+ children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
7753
7757
  icon,
7754
7758
  /* @__PURE__ */ jsx58("p", { className: font, children: title })
7755
7759
  ] })
@@ -7946,10 +7950,10 @@ var GrayLabel = ({ title, icon, font }) => {
7946
7950
  var GrayLabel_default = GrayLabel;
7947
7951
 
7948
7952
  // src/components/infos/InfoWithText.tsx
7949
- import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
7953
+ import { jsx as jsx70, jsxs as jsxs46 } from "react/jsx-runtime";
7950
7954
  var InfoWithText = (props) => {
7951
7955
  const { value } = props;
7952
- return /* @__PURE__ */ jsxs45("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
7956
+ return /* @__PURE__ */ jsxs46("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
7953
7957
  /* @__PURE__ */ jsx70(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7954
7958
  /* @__PURE__ */ jsx70("div", { className: "flex-1", children: /* @__PURE__ */ jsx70("p", { className: "", children: value }) })
7955
7959
  ] });