catchup-library-web 1.0.2 → 1.0.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.
Files changed (32) hide show
  1. package/dist/index.d.mts +305 -2
  2. package/dist/index.d.ts +305 -2
  3. package/dist/index.js +2768 -334
  4. package/dist/index.mjs +2657 -292
  5. package/package.json +1 -1
  6. package/src/components/boxes/SelectionBox.tsx +41 -0
  7. package/src/components/boxes/SelectionCheckbox.tsx +66 -0
  8. package/src/components/labels/ActivityTemplateLabel.tsx +15 -0
  9. package/src/components/labels/BrandLabel.tsx +19 -0
  10. package/src/components/labels/CoterieLabel.tsx +11 -0
  11. package/src/components/labels/GradeLabel.tsx +11 -0
  12. package/src/components/labels/OutcomeLabel.tsx +15 -0
  13. package/src/components/labels/PersonalLabel.tsx +23 -0
  14. package/src/components/labels/PublishingHouseLabel.tsx +23 -0
  15. package/src/components/modals/BaseModal.tsx +56 -0
  16. package/src/components/tabs/SelectionTab.tsx +45 -0
  17. package/src/index.ts +25 -0
  18. package/src/properties/BoxProperties.ts +12 -0
  19. package/src/properties/GroupProperties.ts +1 -1
  20. package/src/properties/LabelProperties.ts +33 -0
  21. package/src/properties/ModalProperties.ts +8 -0
  22. package/src/properties/TabProperties.ts +9 -0
  23. package/src/utilization/AuthorizationUtilization.ts +15 -0
  24. package/src/utilization/CategoryUtilization.ts +314 -0
  25. package/src/utilization/DateUtilization.ts +85 -0
  26. package/src/utilization/FunctionUtilization.ts +50 -0
  27. package/src/utilization/GamificationUtilization.ts +495 -0
  28. package/src/utilization/IndividualModelUtilization.ts +48 -0
  29. package/src/utilization/ManagementUtilization.ts +1201 -0
  30. package/src/utilization/NotificationUtilization.ts +59 -0
  31. package/src/utilization/ReportUtilization.ts +42 -0
  32. package/src/utilization/TokenUtilization.ts +39 -0
package/dist/index.js CHANGED
@@ -67,50 +67,99 @@ var __async = (__this, __arguments, generator) => {
67
67
  // src/index.ts
68
68
  var index_exports = {};
69
69
  __export(index_exports, {
70
+ ActivityTemplateLabel: () => ActivityTemplateLabel_default,
70
71
  ApproveButton: () => ApproveButton_default,
71
72
  BaseImage: () => BaseImage_default,
72
73
  BaseLoading: () => BaseLoading_default,
74
+ BaseModal: () => BaseModal_default,
73
75
  BlueVerticalDividerLine: () => BlueVerticalDividerLine_default,
76
+ BrandLabel: () => BrandLabel_default,
74
77
  CancelButton: () => CancelButton_default,
78
+ CoterieLabel: () => CoterieLabel_default,
75
79
  CreateButton: () => CreateButton_default,
76
80
  DeleteButton: () => DeleteButton_default,
77
81
  DividerLine: () => DividerLine_default,
78
82
  DropdownActivityContent: () => DropdownActivityContent_default,
79
83
  FillInTheBlanksActivityContent: () => FillInTheBlanksActivityContent_default,
84
+ GradeLabel: () => GradeLabel_default,
80
85
  GroupingActivityContent: () => GroupingActivityContent_default,
81
86
  InputGroup: () => InputGroup_default,
82
87
  MCMAActivityContent: () => MCMAActivityContent_default,
83
88
  MCSAActivityContent: () => MCSAActivityContent_default,
84
89
  MatchingActivityContent: () => MatchingActivityContent_default,
90
+ ONE_DAY: () => ONE_DAY,
91
+ ONE_HOUR: () => ONE_HOUR,
92
+ ONE_MONTH: () => ONE_MONTH,
93
+ ONE_WEEK: () => ONE_WEEK,
85
94
  OpenEndedActivityContent: () => OpenEndedActivityContent_default,
86
95
  OrderingActivityContent: () => OrderingActivityContent_default,
96
+ OutcomeLabel: () => OutcomeLabel_default,
97
+ PersonalLabel: () => PersonalLabel_default,
87
98
  PrimaryButton: () => PrimaryButton_default,
99
+ PublishingHouseLabel: () => PublishingHouseLabel_default,
88
100
  SecondaryButton: () => SecondaryButton_default,
101
+ SelectionBox: () => SelectionBox_default,
102
+ SelectionCheckbox: () => SelectionCheckbox_default,
103
+ SelectionTab: () => SelectionTab_default,
104
+ THREE_MONTHS: () => THREE_MONTHS,
89
105
  TrueFalseActivityContent: () => TrueFalseActivityContent_default,
90
106
  VerticalDividerLine: () => VerticalDividerLine_default,
107
+ calculateLevenshteinDistance: () => calculateLevenshteinDistance,
91
108
  checkActivityAnswerState: () => checkActivityAnswerState,
92
109
  checkIfAnswerIsEmpty: () => checkIfAnswerIsEmpty,
93
110
  constructActivityAnswerMap: () => constructActivityAnswerMap,
94
111
  constructActivityAnswerStateList: () => constructActivityAnswerStateList,
95
112
  constructActivityItemListWithAnswersForAI: () => constructActivityItemListWithAnswersForAI,
96
113
  constructActivityItemListWithSolutionForAI: () => constructActivityItemListWithSolutionForAI,
114
+ constructBaseNumericIndividualModel: () => constructBaseNumericIndividualModel,
115
+ constructBaseVerbalIndvidualModel: () => constructBaseVerbalIndvidualModel,
97
116
  constructInputWithSpecialExpressionList: () => constructInputWithSpecialExpressionList,
117
+ constructUserProfileQueryParams: () => constructUserProfileQueryParams,
118
+ constructWeekName: () => constructWeekName,
98
119
  convertDataURLtoFile: () => convertDataURLtoFile,
120
+ convertToBase64: () => convertToBase64,
121
+ convertTurkishCharactersToEnglish: () => convertTurkishCharactersToEnglish,
122
+ filterCategoryVersionCodeOptionList: () => filterCategoryVersionCodeOptionList,
123
+ filterCategoryVersionCodeOptionListByGradeDTO: () => filterCategoryVersionCodeOptionListByGradeDTO,
124
+ filterCategoryVersionCodeOptionListByInstitutionDTO: () => filterCategoryVersionCodeOptionListByInstitutionDTO,
125
+ filterCoterieTypeOptionList: () => filterCoterieTypeOptionList,
126
+ filterGradeLevelOptionList: () => filterGradeLevelOptionList,
127
+ filterUserRoleOptionList: () => filterUserRoleOptionList,
128
+ findAISettingsFromCurrentProfile: () => findAISettingsFromCurrentProfile,
99
129
  findBestFitActivity: () => findBestFitActivity,
100
130
  getColorByIndex: () => getColorByIndex,
101
131
  i18n: () => i18n_default,
102
132
  ignoreMathematicalExpression: () => ignoreMathematicalExpression,
103
133
  parseBodyMapFromData: () => parseBodyMapFromData,
104
134
  parseContentMapFromData: () => parseContentMapFromData,
135
+ parseJwt: () => parseJwt,
105
136
  parseMaterialMapFromData: () => parseMaterialMapFromData,
106
137
  retrieveActivityAnswerFromAnswerList: () => retrieveActivityAnswerFromAnswerList,
107
138
  retrieveActivityTemplateDTOOptionList: () => retrieveActivityTemplateDTOOptionList,
139
+ retrieveAllEarnedBadgeDTOListByCoterieType: () => retrieveAllEarnedBadgeDTOListByCoterieType,
140
+ retrieveAllEarnedBadgeDTOListByCoterieTypeList: () => retrieveAllEarnedBadgeDTOListByCoterieTypeList,
141
+ retrieveAnnouncementAudienceOptionList: () => retrieveAnnouncementAudienceOptionList,
142
+ retrieveAnnouncementTypeOptionList: () => retrieveAnnouncementTypeOptionList,
143
+ retrieveBadgeRuleListByParams: () => retrieveBadgeRuleListByParams,
144
+ retrieveBadgeRuleTextByParams: () => retrieveBadgeRuleTextByParams,
145
+ retrieveBranchDTOByUserProfileOptionList: () => retrieveBranchDTOByUserProfileOptionList,
146
+ retrieveBranchDTOOptionList: () => retrieveBranchDTOOptionList,
147
+ retrieveBrandDTOByUserProfileOptionList: () => retrieveBrandDTOByUserProfileOptionList,
148
+ retrieveBrandDTOOptionList: () => retrieveBrandDTOOptionList,
149
+ retrieveCampusDTOByUserProfileOptionList: () => retrieveCampusDTOByUserProfileOptionList,
150
+ retrieveCampusDTOOptionList: () => retrieveCampusDTOOptionList,
151
+ retrieveCategoryVersionCodeOptionList: () => retrieveCategoryVersionCodeOptionList,
108
152
  retrieveClockTimeLeft: () => retrieveClockTimeLeft,
109
153
  retrieveColorByScore: () => retrieveColorByScore,
110
154
  retrieveContentTypeOptionList: () => retrieveContentTypeOptionList,
111
155
  retrieveContestTypeOptionList: () => retrieveContestTypeOptionList,
112
156
  retrieveCoterieTypeFromStandardExamCoterieType: () => retrieveCoterieTypeFromStandardExamCoterieType,
157
+ retrieveCoterieTypeOptionList: () => retrieveCoterieTypeOptionList,
158
+ retrieveCountryCodeOptionList: () => retrieveCountryCodeOptionList,
159
+ retrieveCountryNameOptionList: () => retrieveCountryNameOptionList,
113
160
  retrieveCurrentDefaultDataMap: () => retrieveCurrentDefaultDataMap,
161
+ retrieveDateIntervalOptionList: () => retrieveDateIntervalOptionList,
162
+ retrieveDefaultUserRoleOptionList: () => retrieveDefaultUserRoleOptionList,
114
163
  retrieveDistintCoterieTypeFromCatchtivityApplicationDTO: () => retrieveDistintCoterieTypeFromCatchtivityApplicationDTO,
115
164
  retrieveDocumentTypeFromAcceptedFormat: () => retrieveDocumentTypeFromAcceptedFormat,
116
165
  retrieveDocumentTypeFromExtension: () => retrieveDocumentTypeFromExtension,
@@ -118,7 +167,23 @@ __export(index_exports, {
118
167
  retrieveDurationInSecondsOptionList: () => retrieveDurationInSecondsOptionList,
119
168
  retrieveDurationTypeOptionList: () => retrieveDurationTypeOptionList,
120
169
  retrieveEachTimeSpentInSeconds: () => retrieveEachTimeSpentInSeconds,
170
+ retrieveEnableOptionList: () => retrieveEnableOptionList,
171
+ retrieveExternalRegistrationDTOOptionList: () => retrieveExternalRegistrationDTOOptionList,
121
172
  retrieveFrequencyTypeOptionList: () => retrieveFrequencyTypeOptionList,
173
+ retrieveGenderOptionList: () => retrieveGenderOptionList,
174
+ retrieveGradeDTOByUserProfileOptionList: () => retrieveGradeDTOByUserProfileOptionList,
175
+ retrieveGradeDTOOptionList: () => retrieveGradeDTOOptionList,
176
+ retrieveGradeLevelOptionList: () => retrieveGradeLevelOptionList,
177
+ retrieveInstitutionDTOByUserProfileOptionList: () => retrieveInstitutionDTOByUserProfileOptionList,
178
+ retrieveInstitutionDTOOptionList: () => retrieveInstitutionDTOOptionList,
179
+ retrieveInstitutionTypeOptionList: () => retrieveInstitutionTypeOptionList,
180
+ retrieveMonthNameByIndex: () => retrieveMonthNameByIndex,
181
+ retrieveOtherBadgeDTOList: () => retrieveOtherBadgeDTOList,
182
+ retrievePhoneNumberAreaCodeList: () => retrievePhoneNumberAreaCodeList,
183
+ retrieveProvinceNameOptionList: () => retrieveProvinceNameOptionList,
184
+ retrieveReportTypeOptionList: () => retrieveReportTypeOptionList,
185
+ retrieveSeasonDTOByUserProfileOptionList: () => retrieveSeasonDTOByUserProfileOptionList,
186
+ retrieveSeasonDTOOptionList: () => retrieveSeasonDTOOptionList,
122
187
  retrieveStandardExamCoterieTypeOptionListByStandardExamType: () => retrieveStandardExamCoterieTypeOptionListByStandardExamType,
123
188
  retrieveStandardExamTypeIcon: () => retrieveStandardExamTypeIcon,
124
189
  retrieveStandardExamTypeOptionList: () => retrieveStandardExamTypeOptionList,
@@ -126,8 +191,12 @@ __export(index_exports, {
126
191
  retrieveTaxonomyGroupName: () => retrieveTaxonomyGroupName,
127
192
  retrieveTaxonomyName: () => retrieveTaxonomyName,
128
193
  retrieveTaxonomyType: () => retrieveTaxonomyType,
194
+ retrieveTokenUsageSubTypeOptionList: () => retrieveTokenUsageSubTypeOptionList,
195
+ retrieveTokenUsageTypeOptionList: () => retrieveTokenUsageTypeOptionList,
129
196
  retrieveTotalTimeSpentInMinutes: () => retrieveTotalTimeSpentInMinutes,
130
197
  retrieveTotalTimeSpentInSeconds: () => retrieveTotalTimeSpentInSeconds,
198
+ retrieveUserAuthorityGeneralOptionList: () => retrieveUserAuthorityGeneralOptionList,
199
+ retrieveUserRoleOptionList: () => retrieveUserRoleOptionList,
131
200
  retrieveValidationRequirementList: () => retrieveValidationRequirementList,
132
201
  shuffleArray: () => shuffleArray,
133
202
  useScreenSize: () => useScreenSize_default
@@ -745,6 +814,56 @@ var ApproveButton = ({
745
814
  };
746
815
  var ApproveButton_default = ApproveButton;
747
816
 
817
+ // src/components/modals/BaseModal.tsx
818
+ var import_react_modal = __toESM(require("react-modal"));
819
+ var import_jsx_runtime9 = require("react/jsx-runtime");
820
+ var BaseModal = ({
821
+ isOpen,
822
+ size,
823
+ onAfterOpen,
824
+ onRequestClose,
825
+ customSize,
826
+ children
827
+ }) => {
828
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
829
+ import_react_modal.default,
830
+ {
831
+ isOpen,
832
+ onAfterOpen,
833
+ onRequestClose,
834
+ style: {
835
+ content: {
836
+ top: "50%",
837
+ left: "50%",
838
+ right: "auto",
839
+ bottom: "auto",
840
+ marginRight: "-50%",
841
+ transform: "translate(-50%, -50%)",
842
+ padding: 0,
843
+ borderRadius: 20,
844
+ background: "",
845
+ border: "",
846
+ maxHeight: "70%",
847
+ overflow: "auto",
848
+ zIndex: 20
849
+ },
850
+ overlay: {
851
+ background: "rgba(0, 0, 0, 0.6)"
852
+ }
853
+ },
854
+ contentLabel: "",
855
+ children: customSize ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: `${customSize}`, children }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
856
+ "div",
857
+ {
858
+ className: `${size === "small" ? "w-[600px]" : "w-[600px] lg:w-[900px] xl:w-[1200px] 2xl:w-[1500px]"}`,
859
+ children
860
+ }
861
+ )
862
+ }
863
+ );
864
+ };
865
+ var BaseModal_default = BaseModal;
866
+
748
867
  // src/language/i18n.ts
749
868
  var import_i18next = __toESM(require("i18next"));
750
869
  var import_react_i18next = require("react-i18next");
@@ -2092,24 +2211,24 @@ var parseMaterialMapFromData = (data, type) => {
2092
2211
  };
2093
2212
 
2094
2213
  // src/components/dividers/DividerLine.tsx
2095
- var import_jsx_runtime9 = require("react/jsx-runtime");
2214
+ var import_jsx_runtime10 = require("react/jsx-runtime");
2096
2215
  var DividerLine = () => {
2097
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
2216
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "bg-catchup-gray-50 h-[1px] w-full my-3" });
2098
2217
  };
2099
2218
  var DividerLine_default = DividerLine;
2100
2219
 
2101
2220
  // src/components/dividers/VerticalDividerLine.tsx
2102
- var import_jsx_runtime10 = require("react/jsx-runtime");
2221
+ var import_jsx_runtime11 = require("react/jsx-runtime");
2103
2222
  var VerticalDividerLine = () => {
2104
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
2223
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "bg-catchup-gray-50 h-full w-[1px] mx-3" });
2105
2224
  };
2106
2225
  var VerticalDividerLine_default = VerticalDividerLine;
2107
2226
 
2108
2227
  // src/components/activities/body-content/ShowBodyMediaByContentType.tsx
2109
2228
  var import_react8 = require("react");
2110
- var import_react_modal = __toESM(require("react-modal"));
2229
+ var import_react_modal2 = __toESM(require("react-modal"));
2111
2230
  var import_react_katex = require("react-katex");
2112
- var import_jsx_runtime11 = require("react/jsx-runtime");
2231
+ var import_jsx_runtime12 = require("react/jsx-runtime");
2113
2232
  var ShowBodyMediaByContentType = ({
2114
2233
  index,
2115
2234
  type,
@@ -2151,16 +2270,16 @@ var ShowBodyMediaByContentType = ({
2151
2270
  addition += 1;
2152
2271
  }
2153
2272
  valuePartList.push(
2154
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2273
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2155
2274
  "span",
2156
2275
  {
2157
2276
  className: "text-xl whitespace-pre-wrap",
2158
2277
  children: constructInputWithSpecialExpressionList(textValue).map(
2159
- (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2278
+ (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2160
2279
  "span",
2161
2280
  {
2162
2281
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2163
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
2282
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
2164
2283
  },
2165
2284
  index2
2166
2285
  )
@@ -2174,17 +2293,17 @@ var ShowBodyMediaByContentType = ({
2174
2293
  const secondIndex = subValue.indexOf(checkText) + checkText.length + textValue.length - addition;
2175
2294
  currentIndex++;
2176
2295
  valuePartList.push(
2177
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2296
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2178
2297
  "span",
2179
2298
  {
2180
2299
  className: `text-xl font-bold whitespace-pre-wrap`,
2181
2300
  children: constructInputWithSpecialExpressionList(
2182
2301
  copyValue.substring(firstIndex + checkText.length, secondIndex)
2183
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2302
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2184
2303
  "span",
2185
2304
  {
2186
2305
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2187
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
2306
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
2188
2307
  },
2189
2308
  index2
2190
2309
  ))
@@ -2204,7 +2323,7 @@ var ShowBodyMediaByContentType = ({
2204
2323
  if (textValue.trim() !== "") {
2205
2324
  currentIndex++;
2206
2325
  valuePartList.push(
2207
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
2326
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xl", children: textValue }, `${index}_${currentIndex}`)
2208
2327
  );
2209
2328
  }
2210
2329
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -2215,8 +2334,8 @@ var ShowBodyMediaByContentType = ({
2215
2334
  );
2216
2335
  currentIndex++;
2217
2336
  valuePartList.push(
2218
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "relative w-[200px]", children: [
2219
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2337
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "relative w-[200px]", children: [
2338
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2220
2339
  BaseImage_default,
2221
2340
  {
2222
2341
  src: imageSource,
@@ -2225,7 +2344,7 @@ var ShowBodyMediaByContentType = ({
2225
2344
  className: "rounded-catchup-xlarge"
2226
2345
  }
2227
2346
  ),
2228
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2347
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2229
2348
  "div",
2230
2349
  {
2231
2350
  className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
@@ -2233,7 +2352,7 @@ var ShowBodyMediaByContentType = ({
2233
2352
  setShowFullScreen(true);
2234
2353
  setSelectedFullScreenItem(imageSource);
2235
2354
  },
2236
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2355
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2237
2356
  BaseImage_default,
2238
2357
  {
2239
2358
  src: "/icons/arrow-up.png",
@@ -2255,7 +2374,7 @@ var ShowBodyMediaByContentType = ({
2255
2374
  if (textValue.trim() !== "") {
2256
2375
  currentIndex++;
2257
2376
  valuePartList.push(
2258
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2377
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2259
2378
  );
2260
2379
  }
2261
2380
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -2266,7 +2385,7 @@ var ShowBodyMediaByContentType = ({
2266
2385
  );
2267
2386
  currentIndex++;
2268
2387
  valuePartList.push(
2269
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2388
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2270
2389
  "video",
2271
2390
  {
2272
2391
  src: videoSource,
@@ -2284,7 +2403,7 @@ var ShowBodyMediaByContentType = ({
2284
2403
  if (textValue.trim() !== "") {
2285
2404
  currentIndex++;
2286
2405
  valuePartList.push(
2287
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2406
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xl", children: textValue }, `${index}-${currentIndex}`)
2288
2407
  );
2289
2408
  }
2290
2409
  const subValue = copyValue.substring(firstIndex + checkText.length);
@@ -2295,7 +2414,7 @@ var ShowBodyMediaByContentType = ({
2295
2414
  );
2296
2415
  currentIndex++;
2297
2416
  valuePartList.push(
2298
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2417
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2299
2418
  "audio",
2300
2419
  {
2301
2420
  src: audioSource,
@@ -2321,9 +2440,9 @@ var ShowBodyMediaByContentType = ({
2321
2440
  if (regexMatchImageText) {
2322
2441
  const imageText = regexMatchImageText[1];
2323
2442
  valuePartList.push(
2324
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2", children: [
2325
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
2326
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2443
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "bg-catchup-gray-50 relative px-4 py-4 rounded-catchup-small mt-2", children: [
2444
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "absolute -top-3 bg-catchup-white border rounded-catchup-small px-2 left-2", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "font-bold", children: i18n_default.t("image_description") }) }),
2445
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2327
2446
  "span",
2328
2447
  {
2329
2448
  className: "text-xl whitespace-pre-wrap ",
@@ -2335,16 +2454,16 @@ var ShowBodyMediaByContentType = ({
2335
2454
  );
2336
2455
  } else {
2337
2456
  valuePartList.push(
2338
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2457
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2339
2458
  "span",
2340
2459
  {
2341
2460
  className: "text-xl whitespace-pre-wrap",
2342
2461
  children: constructInputWithSpecialExpressionList(copyValue).map(
2343
- (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2462
+ (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2344
2463
  "span",
2345
2464
  {
2346
2465
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
2347
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
2466
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_react_katex.InlineMath, { math: inputPart.value }) }) : inputPart.value
2348
2467
  },
2349
2468
  index2
2350
2469
  )
@@ -2358,8 +2477,8 @@ var ShowBodyMediaByContentType = ({
2358
2477
  return valuePartList;
2359
2478
  };
2360
2479
  const RenderShowFullScreenItem = () => {
2361
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2362
- import_react_modal.default,
2480
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2481
+ import_react_modal2.default,
2363
2482
  {
2364
2483
  isOpen: showFullScreen,
2365
2484
  onAfterOpen: () => {
@@ -2389,8 +2508,8 @@ var ShowBodyMediaByContentType = ({
2389
2508
  }
2390
2509
  },
2391
2510
  contentLabel: "",
2392
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex-1 flex flex-col", children: [
2393
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2511
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex-1 flex flex-col", children: [
2512
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2394
2513
  BaseImage_default,
2395
2514
  {
2396
2515
  src: "/icons/cross-red.png",
@@ -2402,7 +2521,7 @@ var ShowBodyMediaByContentType = ({
2402
2521
  }
2403
2522
  }
2404
2523
  ) }),
2405
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2524
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex items-center justify-center h-[500]", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2406
2525
  BaseImage_default,
2407
2526
  {
2408
2527
  src: selectedFullScreenItem,
@@ -2417,14 +2536,14 @@ var ShowBodyMediaByContentType = ({
2417
2536
  };
2418
2537
  const RenderMainContent = () => {
2419
2538
  if (type === "TEXT") {
2420
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { children: retrieveValueParts(value) }) });
2539
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "mb-3 flex flex-row flex-wrap items-center mx-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: retrieveValueParts(value) }) });
2421
2540
  } else if (type === "IMAGE") {
2422
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2541
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "mb-3 flex flex-col items-center relative", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2423
2542
  "div",
2424
2543
  {
2425
2544
  className: `${size ? `${convertToPercentage(size)}` : ""} rounded-catchup-xlarge relative`,
2426
2545
  children: [
2427
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2546
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2428
2547
  BaseImage_default,
2429
2548
  {
2430
2549
  src: value,
@@ -2433,7 +2552,7 @@ var ShowBodyMediaByContentType = ({
2433
2552
  className: "w-full rounded-catchup-xlarge"
2434
2553
  }
2435
2554
  ),
2436
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2555
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2437
2556
  "div",
2438
2557
  {
2439
2558
  className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
@@ -2441,7 +2560,7 @@ var ShowBodyMediaByContentType = ({
2441
2560
  setShowFullScreen(true);
2442
2561
  setSelectedFullScreenItem(value);
2443
2562
  },
2444
- children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2563
+ children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2445
2564
  BaseImage_default,
2446
2565
  {
2447
2566
  src: "/icons/arrow-up.png",
@@ -2456,7 +2575,7 @@ var ShowBodyMediaByContentType = ({
2456
2575
  }
2457
2576
  ) });
2458
2577
  } else if (type === "VIDEO") {
2459
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2578
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2460
2579
  "video",
2461
2580
  {
2462
2581
  src: value,
@@ -2465,10 +2584,10 @@ var ShowBodyMediaByContentType = ({
2465
2584
  }
2466
2585
  ) });
2467
2586
  } else if (type === "AUDIO") {
2468
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("audio", { src: value, controls: true, className: `rounded-catchup-xlarge` }) });
2587
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "mb-3 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("audio", { src: value, controls: true, className: `rounded-catchup-xlarge` }) });
2469
2588
  }
2470
2589
  };
2471
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "w-full", children: [
2590
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "w-full", children: [
2472
2591
  RenderShowFullScreenItem(),
2473
2592
  RenderMainContent()
2474
2593
  ] }, index);
@@ -2476,7 +2595,7 @@ var ShowBodyMediaByContentType = ({
2476
2595
  var ShowBodyMediaByContentType_default = ShowBodyMediaByContentType;
2477
2596
 
2478
2597
  // src/components/activities/body-content/ActivityBodyContent.tsx
2479
- var import_jsx_runtime12 = require("react/jsx-runtime");
2598
+ var import_jsx_runtime13 = require("react/jsx-runtime");
2480
2599
  var ActivityBodyContent = ({
2481
2600
  templateType,
2482
2601
  bodyMap,
@@ -2484,7 +2603,7 @@ var ActivityBodyContent = ({
2484
2603
  answerMap
2485
2604
  }) => {
2486
2605
  let currentQQIndex = 0;
2487
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
2606
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex flex-col justify-center items-center", children: Object.keys(bodyMap).map((key, index) => {
2488
2607
  const body = JSON.parse(bodyMap[key]);
2489
2608
  if (templateType === "DROPDOWN") {
2490
2609
  while (body.value.includes("@@")) {
@@ -2561,7 +2680,7 @@ var ActivityBodyContent = ({
2561
2680
  currentQQIndex++;
2562
2681
  }
2563
2682
  }
2564
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2683
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2565
2684
  ShowBodyMediaByContentType_default,
2566
2685
  {
2567
2686
  index,
@@ -2580,7 +2699,7 @@ var import_react_katex2 = require("react-katex");
2580
2699
  // src/components/groups/InputGroup.tsx
2581
2700
  var import_react_select = __toESM(require("react-select"));
2582
2701
  var import_react9 = require("react");
2583
- var import_jsx_runtime13 = require("react/jsx-runtime");
2702
+ var import_jsx_runtime14 = require("react/jsx-runtime");
2584
2703
  var InputGroup = ({
2585
2704
  type,
2586
2705
  title,
@@ -2638,13 +2757,13 @@ var InputGroup = ({
2638
2757
  }
2639
2758
  };
2640
2759
  const CheckboxInputGroup = () => {
2641
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2760
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2642
2761
  "div",
2643
2762
  {
2644
2763
  className: "flex flex-row items-center gap-x-1 cursor-pointer",
2645
2764
  onClick,
2646
2765
  children: [
2647
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2766
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2648
2767
  BaseImage_default,
2649
2768
  {
2650
2769
  src: value ? "/icons/checkbox.png" : "/icons/checkbox-empty.png",
@@ -2654,15 +2773,15 @@ var InputGroup = ({
2654
2773
  }
2655
2774
  }
2656
2775
  ),
2657
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "", children: title })
2776
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "", children: title })
2658
2777
  ]
2659
2778
  }
2660
2779
  );
2661
2780
  };
2662
2781
  const FileInputGroup = () => {
2663
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "my-1", children: [
2664
- title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
2665
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2782
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "my-1", children: [
2783
+ title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
2784
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2666
2785
  "input",
2667
2786
  {
2668
2787
  className: "w-full py-2 px-4 border border-catchup-gray-100 placeholder-catchup-gray-200 rounded-catchup-large text-black focus:outline-none focus:border-catchup-blue-400 focus:shadow-input",
@@ -2679,9 +2798,9 @@ var InputGroup = ({
2679
2798
  ] });
2680
2799
  };
2681
2800
  const DateInputGroup = () => {
2682
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "my-1", children: [
2683
- title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
2684
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2801
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "my-1", children: [
2802
+ title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
2803
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2685
2804
  "input",
2686
2805
  {
2687
2806
  className: `w-full py-2 px-4 border ${errorText ? "border-catchup-red shadow-error" : theme === "red" ? "border-catchup-red bg-catchup-red text-catchup-white focus:border-catchup-red" : "border-catchup-gray-100 placeholder-catchup-gray-200 focus:border-catchup-blue-400"} rounded-catchup-large text-black focus:outline-none focus:shadow-input`,
@@ -2696,9 +2815,9 @@ var InputGroup = ({
2696
2815
  ] });
2697
2816
  };
2698
2817
  const SearchableSelectInputGroup = () => {
2699
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "my-1", children: [
2700
- title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400 ", children: title }) : null,
2701
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2818
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "my-1", children: [
2819
+ title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400 ", children: title }) : null,
2820
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2702
2821
  import_react_select.default,
2703
2822
  {
2704
2823
  options: convertOptionListToSelectComponent(
@@ -2761,16 +2880,16 @@ var InputGroup = ({
2761
2880
  ] });
2762
2881
  };
2763
2882
  const TextAreaInputGroup = () => {
2764
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "my-1 flex-1 flex flex-col relative", children: [
2765
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "flex flex-row justify-between items-center", children: [
2766
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { children: title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
2767
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { children: limit ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
2883
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "my-1 flex-1 flex flex-col relative", children: [
2884
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-row justify-between items-center", children: [
2885
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null }),
2886
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { children: limit ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("p", { className: "text-md font-semibold pr-2 py-1 text-catchup-gray-400", children: [
2768
2887
  value.length,
2769
2888
  " / ",
2770
2889
  limit
2771
2890
  ] }) : null })
2772
2891
  ] }),
2773
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2892
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2774
2893
  "textarea",
2775
2894
  {
2776
2895
  ref: textAreaRef,
@@ -2789,9 +2908,9 @@ var InputGroup = ({
2789
2908
  ] });
2790
2909
  };
2791
2910
  const TextInputGroup = () => {
2792
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "my-1 relative", children: [
2793
- title ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
2794
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2911
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "my-1 relative", children: [
2912
+ title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "text-md font-semibold pl-2 py-1 text-catchup-gray-400", children: title }) : null,
2913
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2795
2914
  "input",
2796
2915
  {
2797
2916
  disabled,
@@ -2931,10 +3050,10 @@ var getColorByIndex = (index) => {
2931
3050
 
2932
3051
  // src/components/dropdowns/MediaDropdown.tsx
2933
3052
  var import_react10 = require("react");
2934
- var import_jsx_runtime14 = require("react/jsx-runtime");
3053
+ var import_jsx_runtime15 = require("react/jsx-runtime");
2935
3054
  var MediaDropdown = ({ id, answer, optionList }) => {
2936
3055
  const [showDropdown, setShowDropdown] = (0, import_react10.useState)(false);
2937
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
3056
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2938
3057
  "div",
2939
3058
  {
2940
3059
  className: "w-full relative",
@@ -2945,17 +3064,17 @@ var MediaDropdown = ({ id, answer, optionList }) => {
2945
3064
  setShowDropdown(false);
2946
3065
  },
2947
3066
  children: [
2948
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "w-full flex flex-col items-center justify-center", children: answer }),
2949
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3067
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "w-full flex flex-col items-center justify-center", children: answer }),
3068
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2950
3069
  "ul",
2951
3070
  {
2952
3071
  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`,
2953
- children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
3072
+ children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
2954
3073
  "li",
2955
3074
  {
2956
3075
  className: `${option.listItemClassNames ? option.listItemClassNames : ""}`,
2957
3076
  children: [
2958
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3077
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2959
3078
  "div",
2960
3079
  {
2961
3080
  className: `w-full flex flex-col my-2 ${option.divClassNames ? option.divClassNames : ""}`,
@@ -2963,7 +3082,7 @@ var MediaDropdown = ({ id, answer, optionList }) => {
2963
3082
  children: option.media
2964
3083
  }
2965
3084
  ),
2966
- index !== optionList.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "w-full border my-1 border-catchup-light-blue rounded-catchup-full" }) : null
3085
+ index !== optionList.length - 1 ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "w-full border my-1 border-catchup-light-blue rounded-catchup-full" }) : null
2967
3086
  ]
2968
3087
  },
2969
3088
  option.id
@@ -2979,8 +3098,8 @@ var MediaDropdown_default = MediaDropdown;
2979
3098
 
2980
3099
  // src/components/activities/material-content/ShowMaterialMediaByContentType.tsx
2981
3100
  var import_react11 = require("react");
2982
- var import_react_modal2 = __toESM(require("react-modal"));
2983
- var import_jsx_runtime15 = require("react/jsx-runtime");
3101
+ var import_react_modal3 = __toESM(require("react-modal"));
3102
+ var import_jsx_runtime16 = require("react/jsx-runtime");
2984
3103
  var ShowMaterialMediaByContentType = ({
2985
3104
  key,
2986
3105
  contentType,
@@ -3008,8 +3127,8 @@ var ShowMaterialMediaByContentType = ({
3008
3127
  }
3009
3128
  }, [isLoaded, key]);
3010
3129
  const RenderShowFullScreenItem = () => {
3011
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3012
- import_react_modal2.default,
3130
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3131
+ import_react_modal3.default,
3013
3132
  {
3014
3133
  isOpen: showFullScreen,
3015
3134
  onAfterOpen: () => {
@@ -3039,8 +3158,8 @@ var ShowMaterialMediaByContentType = ({
3039
3158
  }
3040
3159
  },
3041
3160
  contentLabel: "",
3042
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex-1 flex flex-col", children: [
3043
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3161
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex-1 flex flex-col", children: [
3162
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "ml-auto px-5 py-3", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3044
3163
  BaseImage_default,
3045
3164
  {
3046
3165
  src: "/icons/cross-red.png",
@@ -3052,7 +3171,7 @@ var ShowMaterialMediaByContentType = ({
3052
3171
  }
3053
3172
  }
3054
3173
  ) }),
3055
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-center h-[500px]", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3174
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex items-center justify-center h-[500px]", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3056
3175
  BaseImage_default,
3057
3176
  {
3058
3177
  src: selectedFullScreenItem,
@@ -3065,14 +3184,14 @@ var ShowMaterialMediaByContentType = ({
3065
3184
  }
3066
3185
  );
3067
3186
  };
3068
- return contentType === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { children: [
3187
+ return contentType === "IMAGE" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { children: [
3069
3188
  RenderShowFullScreenItem(),
3070
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3189
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
3071
3190
  "div",
3072
3191
  {
3073
3192
  className: `${isFullHeight ? "h-catchup-activity-box-item" : "max-w-catchup-activity-box-item"} flex flex-col justify-center items-center relative`,
3074
3193
  children: [
3075
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3194
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3076
3195
  BaseImage_default,
3077
3196
  {
3078
3197
  src,
@@ -3085,7 +3204,7 @@ var ShowMaterialMediaByContentType = ({
3085
3204
  }
3086
3205
  }
3087
3206
  ),
3088
- src !== null && src !== "" && src !== "DEFAULT_OPTION" && canFullScreen ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3207
+ src !== null && src !== "" && src !== "DEFAULT_OPTION" && canFullScreen ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3089
3208
  "div",
3090
3209
  {
3091
3210
  className: "absolute flex items-center justify-center top-2 right-2 h-6 w-6 cursor-pointer border rounded-catchup-xlarge border-catchup-blue p-1",
@@ -3097,7 +3216,7 @@ var ShowMaterialMediaByContentType = ({
3097
3216
  setShowFullScreen(true);
3098
3217
  setSelectedFullScreenItem(src);
3099
3218
  },
3100
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3219
+ children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3101
3220
  BaseImage_default,
3102
3221
  {
3103
3222
  src: "/icons/arrow-up.png",
@@ -3111,7 +3230,7 @@ var ShowMaterialMediaByContentType = ({
3111
3230
  ]
3112
3231
  }
3113
3232
  ) }) })
3114
- ] }, key) : contentType === "VIDEO" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3233
+ ] }, key) : contentType === "VIDEO" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3115
3234
  "video",
3116
3235
  {
3117
3236
  className: "h-catchup-activity-box-item rounded-catchup-xlarge",
@@ -3120,7 +3239,7 @@ var ShowMaterialMediaByContentType = ({
3120
3239
  onClick: () => {
3121
3240
  }
3122
3241
  }
3123
- ) }) }) }) : contentType === "AUDIO" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3242
+ ) }) }) }) : contentType === "AUDIO" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "h-full flex flex-row flex-wrap items-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "h-full flex flex-col justify-center items-center", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3124
3243
  "audio",
3125
3244
  {
3126
3245
  className: "h-catchup-activity-box-item rounded-catchup-xlarge",
@@ -3134,7 +3253,7 @@ var ShowMaterialMediaByContentType = ({
3134
3253
  var ShowMaterialMediaByContentType_default = ShowMaterialMediaByContentType;
3135
3254
 
3136
3255
  // src/components/activities/material-content/DropdownActivityMaterialContent.tsx
3137
- var import_jsx_runtime16 = require("react/jsx-runtime");
3256
+ var import_jsx_runtime17 = require("react/jsx-runtime");
3138
3257
  var DropdownActivityMaterialContent = ({
3139
3258
  uniqueValue,
3140
3259
  answer,
@@ -3176,22 +3295,22 @@ var DropdownActivityMaterialContent = ({
3176
3295
  return "INCORRECT";
3177
3296
  };
3178
3297
  const answerMap = retrieveAnswerMap();
3179
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex flex-row flex-wrap items-center", children: [
3180
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_dropdown_text") }) }),
3181
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DividerLine_default, {}) }),
3182
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-full flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
3298
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-row flex-wrap items-center", children: [
3299
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_dropdown_text") }) }),
3300
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DividerLine_default, {}) }),
3301
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-full flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
3183
3302
  const answerKey = Object.keys(materialMap[materialKey])[0];
3184
3303
  const learnerAnswerState = checkAnswerState(
3185
3304
  answerKey,
3186
3305
  answerMap[materialKey]
3187
3306
  );
3188
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
3189
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "my-auto", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("p", { className: "text-xl", children: [
3307
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
3308
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "my-auto", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: "text-xl", children: [
3190
3309
  parseFloat(materialKey) + 1,
3191
3310
  "."
3192
3311
  ] }) }),
3193
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "w-full relative", children: [
3194
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3312
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "w-full relative", children: [
3313
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3195
3314
  InputGroup_default,
3196
3315
  {
3197
3316
  type: "select",
@@ -3199,13 +3318,13 @@ var DropdownActivityMaterialContent = ({
3199
3318
  optionList: shuffleArray(
3200
3319
  materialMap[materialKey][answerKey]
3201
3320
  ).map((materialOption) => ({
3202
- text: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
3321
+ text: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
3203
3322
  materialOption
3204
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3323
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3205
3324
  "span",
3206
3325
  {
3207
3326
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
3208
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3327
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3209
3328
  import_react_katex2.InlineMath,
3210
3329
  {
3211
3330
  math: inputPart.value
@@ -3220,11 +3339,11 @@ var DropdownActivityMaterialContent = ({
3220
3339
  onChange(answer, materialKey, e.target.value);
3221
3340
  }
3222
3341
  }
3223
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3342
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3224
3343
  MediaDropdown_default,
3225
3344
  {
3226
3345
  id: materialKey,
3227
- answer: answerMap[materialKey] === "DEFAULT_OPTION" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-catchup-activity-box-item border h-catchup-activity-box-item rounded-catchup-xlarge border-dashed border-catchup-blue", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "italic", children: i18n_default.t("please_select") }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3346
+ answer: answerMap[materialKey] === "DEFAULT_OPTION" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-catchup-activity-box-item border h-catchup-activity-box-item rounded-catchup-xlarge border-dashed border-catchup-blue", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "italic", children: i18n_default.t("please_select") }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3228
3347
  ShowMaterialMediaByContentType_default,
3229
3348
  {
3230
3349
  contentType: contentMap.type,
@@ -3236,7 +3355,7 @@ var DropdownActivityMaterialContent = ({
3236
3355
  optionList: materialMap[materialKey][answerKey].map(
3237
3356
  (materialOption, index2) => ({
3238
3357
  id: index2,
3239
- media: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3358
+ media: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3240
3359
  ShowMaterialMediaByContentType_default,
3241
3360
  {
3242
3361
  contentType: contentMap.type,
@@ -3255,24 +3374,24 @@ var DropdownActivityMaterialContent = ({
3255
3374
  })
3256
3375
  )
3257
3376
  }
3258
- ) : /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
3377
+ ) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
3259
3378
  answerMap[materialKey]
3260
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3379
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3261
3380
  "span",
3262
3381
  {
3263
3382
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
3264
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react_katex2.InlineMath, { math: inputPart.value }) }) : inputPart.value
3383
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_katex2.InlineMath, { math: inputPart.value }) }) : inputPart.value
3265
3384
  },
3266
3385
  index2
3267
3386
  )) }) }),
3268
- learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "absolute top-[0px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3387
+ learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "absolute top-[0px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3269
3388
  BaseImage_default,
3270
3389
  {
3271
3390
  src: "/icons/checkbox.png",
3272
3391
  alt: "chekbbox",
3273
3392
  size: "small"
3274
3393
  }
3275
- ) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "absolute top-[0px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3394
+ ) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "absolute top-[0px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3276
3395
  BaseImage_default,
3277
3396
  {
3278
3397
  src: "/icons/cross-red.png",
@@ -3288,7 +3407,7 @@ var DropdownActivityMaterialContent = ({
3288
3407
  var DropdownActivityMaterialContent_default = DropdownActivityMaterialContent;
3289
3408
 
3290
3409
  // src/components/activities/DropdownActivityContent.tsx
3291
- var import_jsx_runtime17 = require("react/jsx-runtime");
3410
+ var import_jsx_runtime18 = require("react/jsx-runtime");
3292
3411
  var DropdownActivityContent = ({
3293
3412
  answer,
3294
3413
  data,
@@ -3311,8 +3430,8 @@ var DropdownActivityContent = ({
3311
3430
  answerMap[key] = value;
3312
3431
  changeAnswer(answer2);
3313
3432
  };
3314
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
3315
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3433
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
3434
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3316
3435
  ActivityBodyContent_default,
3317
3436
  {
3318
3437
  bodyMap: dropdownBodyMap,
@@ -3321,9 +3440,9 @@ var DropdownActivityContent = ({
3321
3440
  templateType: "DROPDOWN"
3322
3441
  }
3323
3442
  ) }),
3324
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(DividerLine_default, {}) }),
3325
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(VerticalDividerLine_default, {}) }),
3326
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3443
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(DividerLine_default, {}) }),
3444
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(VerticalDividerLine_default, {}) }),
3445
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3327
3446
  DropdownActivityMaterialContent_default,
3328
3447
  {
3329
3448
  uniqueValue: JSON.stringify(data.contentMap),
@@ -3348,7 +3467,7 @@ var import_react_dnd3 = require("react-dnd");
3348
3467
 
3349
3468
  // src/components/dnds/DraggableItem.tsx
3350
3469
  var import_react_dnd = require("react-dnd");
3351
- var import_jsx_runtime18 = require("react/jsx-runtime");
3470
+ var import_jsx_runtime19 = require("react/jsx-runtime");
3352
3471
  var DraggableItem = ({
3353
3472
  key,
3354
3473
  item,
@@ -3370,11 +3489,11 @@ var DraggableItem = ({
3370
3489
  })
3371
3490
  });
3372
3491
  const opacity = isDragging ? 0.4 : 1;
3373
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
3492
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3374
3493
  "div",
3375
3494
  {
3376
3495
  className: `${isDragging ? "w-[0px] opacity-0" : "opacity-100"} transition-all duration-500`,
3377
- children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { ref: drag, className: "", style: { opacity }, children: component })
3496
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { ref: drag, className: "", style: { opacity }, children: component })
3378
3497
  },
3379
3498
  key
3380
3499
  );
@@ -3384,7 +3503,7 @@ var DraggableItem_default = DraggableItem;
3384
3503
  // src/components/dnds/DroppableItem.tsx
3385
3504
  var import_react14 = require("react");
3386
3505
  var import_react_dnd2 = require("react-dnd");
3387
- var import_jsx_runtime19 = require("react/jsx-runtime");
3506
+ var import_jsx_runtime20 = require("react/jsx-runtime");
3388
3507
  var DroppableItem = ({
3389
3508
  key,
3390
3509
  item,
@@ -3404,7 +3523,7 @@ var DroppableItem = ({
3404
3523
  }
3405
3524
  });
3406
3525
  dropRef(drop(ref));
3407
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
3526
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3408
3527
  "div",
3409
3528
  {
3410
3529
  className: `w-full transition-all duration-500 h-full`,
@@ -3417,7 +3536,7 @@ var DroppableItem = ({
3417
3536
  var DroppableItem_default = DroppableItem;
3418
3537
 
3419
3538
  // src/components/activities/material-content/FillInTheBlanksActivityMaterialContent.tsx
3420
- var import_jsx_runtime20 = require("react/jsx-runtime");
3539
+ var import_jsx_runtime21 = require("react/jsx-runtime");
3421
3540
  var FillInTheBlanksActivityMaterialContent = ({
3422
3541
  uniqueValue,
3423
3542
  answer,
@@ -3475,12 +3594,12 @@ var FillInTheBlanksActivityMaterialContent = ({
3475
3594
  return Object.keys(answerMap2).findIndex((key) => answerMap2[key] === option) !== -1;
3476
3595
  };
3477
3596
  const answerMap = retrieveAnswerMap();
3478
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-row flex-wrap items-center", onMouseUp: () => {
3597
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-row flex-wrap items-center", onMouseUp: () => {
3479
3598
  }, children: [
3480
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_fill_in_the_blanks_text") }) }),
3481
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(DividerLine_default, {}) }),
3482
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "w-full flex flex-row flex-wrap gap-x-2 gap-y-2 my-2", children: shuffleOptionList.map(
3483
- (option, index) => checkAnswerProvided(answerMap, option) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "opacity-30", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3599
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_fill_in_the_blanks_text") }) }),
3600
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DividerLine_default, {}) }),
3601
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "w-full flex flex-row flex-wrap gap-x-2 gap-y-2 my-2", children: shuffleOptionList.map(
3602
+ (option, index) => checkAnswerProvided(answerMap, option) ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "opacity-30", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3484
3603
  ShowMaterialMediaByContentType_default,
3485
3604
  {
3486
3605
  contentType: contentMap.type,
@@ -3488,12 +3607,12 @@ var FillInTheBlanksActivityMaterialContent = ({
3488
3607
  canFullScreen: true
3489
3608
  },
3490
3609
  `${uniqueValue}-${index}`
3491
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3610
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3492
3611
  DraggableItem_default,
3493
3612
  {
3494
3613
  item: { index: option },
3495
3614
  type: "FILL_IN_THE_BLANKS",
3496
- component: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3615
+ component: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3497
3616
  "div",
3498
3617
  {
3499
3618
  className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge cursor-pointer",
@@ -3501,9 +3620,9 @@ var FillInTheBlanksActivityMaterialContent = ({
3501
3620
  setSelectedOption(option);
3502
3621
  setPasteOptionIndex(null);
3503
3622
  },
3504
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "italic whitespace-pre-wrap", children: option })
3623
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "italic whitespace-pre-wrap", children: option })
3505
3624
  }
3506
- ) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3625
+ ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3507
3626
  "div",
3508
3627
  {
3509
3628
  className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge cursor-pointer",
@@ -3511,7 +3630,7 @@ var FillInTheBlanksActivityMaterialContent = ({
3511
3630
  setSelectedOption(option);
3512
3631
  setPasteOptionIndex(null);
3513
3632
  },
3514
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3633
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3515
3634
  ShowMaterialMediaByContentType_default,
3516
3635
  {
3517
3636
  contentType: contentMap.type,
@@ -3529,12 +3648,12 @@ var FillInTheBlanksActivityMaterialContent = ({
3529
3648
  index
3530
3649
  )
3531
3650
  ) }),
3532
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
3651
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
3533
3652
  const learnerAnswerState = checkAnswerState(
3534
3653
  JSON.parse(materialMap[materialKey]),
3535
3654
  answerMap[materialKey]
3536
3655
  );
3537
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3656
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "w-full md:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3538
3657
  DroppableItem_default,
3539
3658
  {
3540
3659
  item: { index },
@@ -3542,13 +3661,13 @@ var FillInTheBlanksActivityMaterialContent = ({
3542
3661
  target: pasteOptionIndex,
3543
3662
  setTarget: setPasteOptionIndex,
3544
3663
  dropRef: drop,
3545
- component: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
3546
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "my-auto", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("p", { className: "text-xl", children: [
3664
+ component: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "w-full flex flex-row my-2 gap-x-2", children: [
3665
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "my-auto", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("p", { className: "text-xl", children: [
3547
3666
  parseFloat(materialKey) + 1,
3548
3667
  "."
3549
3668
  ] }) }),
3550
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "relative", children: [
3551
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3669
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex-1", children: checkCanAnswerQuestion() ? contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative", children: [
3670
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3552
3671
  InputGroup_default,
3553
3672
  {
3554
3673
  type: "textarea",
@@ -3563,14 +3682,14 @@ var FillInTheBlanksActivityMaterialContent = ({
3563
3682
  }
3564
3683
  }
3565
3684
  ) }),
3566
- learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3685
+ learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3567
3686
  BaseImage_default,
3568
3687
  {
3569
3688
  src: "/icons/checkbox.png",
3570
3689
  alt: "checkbox",
3571
3690
  size: "small"
3572
3691
  }
3573
- ) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3692
+ ) }) : learnerAnswerState === "INCORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3574
3693
  BaseImage_default,
3575
3694
  {
3576
3695
  src: "/icons/cross-red.png",
@@ -3578,20 +3697,20 @@ var FillInTheBlanksActivityMaterialContent = ({
3578
3697
  size: "small"
3579
3698
  }
3580
3699
  ) }) : null
3581
- ] }) : answerMap[materialKey] === "" ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3700
+ ] }) : answerMap[materialKey] === "" ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3582
3701
  "div",
3583
3702
  {
3584
3703
  className: `w-catchup-activity-box-item border h-catchup-activity-box-item rounded-catchup-xlarge border-dashed ${learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
3585
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "italic", children: i18n_default.t("please_drop_here") }) })
3704
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "h-full flex flex-col items-center justify-center px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "italic", children: i18n_default.t("please_drop_here") }) })
3586
3705
  }
3587
- ) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3706
+ ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3588
3707
  "div",
3589
3708
  {
3590
3709
  className: "flex-1 cursor-pointer",
3591
3710
  onClick: () => {
3592
3711
  onChange(answer, materialKey, "");
3593
3712
  },
3594
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3713
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3595
3714
  ShowMaterialMediaByContentType_default,
3596
3715
  {
3597
3716
  contentType: contentMap.type,
@@ -3601,13 +3720,13 @@ var FillInTheBlanksActivityMaterialContent = ({
3601
3720
  `${uniqueValue}-${index}`
3602
3721
  )
3603
3722
  }
3604
- ) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
3723
+ ) : /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
3605
3724
  answerMap[materialKey]
3606
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
3725
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3607
3726
  "span",
3608
3727
  {
3609
3728
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
3610
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react_katex3.InlineMath, { math: inputPart.value }) }) : inputPart.value
3729
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_katex3.InlineMath, { math: inputPart.value }) }) : inputPart.value
3611
3730
  },
3612
3731
  index2
3613
3732
  )) }, materialKey) })
@@ -3621,7 +3740,7 @@ var FillInTheBlanksActivityMaterialContent = ({
3621
3740
  var FillInTheBlanksActivityMaterialContent_default = FillInTheBlanksActivityMaterialContent;
3622
3741
 
3623
3742
  // src/components/activities/FillInTheBlanksActivityContent.tsx
3624
- var import_jsx_runtime21 = require("react/jsx-runtime");
3743
+ var import_jsx_runtime22 = require("react/jsx-runtime");
3625
3744
  var FillInTheBlanksActivityContent = ({
3626
3745
  answer,
3627
3746
  data,
@@ -3669,8 +3788,8 @@ var FillInTheBlanksActivityContent = ({
3669
3788
  answerMap[key] = value;
3670
3789
  changeAnswer(answer2);
3671
3790
  };
3672
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
3673
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3791
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
3792
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3674
3793
  ActivityBodyContent_default,
3675
3794
  {
3676
3795
  bodyMap: fillInTheBlanksBodyMap,
@@ -3679,9 +3798,9 @@ var FillInTheBlanksActivityContent = ({
3679
3798
  templateType: "FILL_IN_THE_BLANKS"
3680
3799
  }
3681
3800
  ) }),
3682
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(DividerLine_default, {}) }),
3683
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(VerticalDividerLine_default, {}) }),
3684
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
3801
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DividerLine_default, {}) }),
3802
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(VerticalDividerLine_default, {}) }),
3803
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3685
3804
  FillInTheBlanksActivityMaterialContent_default,
3686
3805
  {
3687
3806
  uniqueValue: JSON.stringify(data.contentMap),
@@ -3740,7 +3859,7 @@ var useScreenSize = () => {
3740
3859
  var useScreenSize_default = useScreenSize;
3741
3860
 
3742
3861
  // src/components/activities/material-content/GroupingActivityMaterialContent.tsx
3743
- var import_jsx_runtime22 = require("react/jsx-runtime");
3862
+ var import_jsx_runtime23 = require("react/jsx-runtime");
3744
3863
  var GroupingActivityMaterialContent = ({
3745
3864
  uniqueValue,
3746
3865
  answer,
@@ -3845,19 +3964,19 @@ var GroupingActivityMaterialContent = ({
3845
3964
  };
3846
3965
  const answerMap = retrieveAnswerMap();
3847
3966
  const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
3848
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
3849
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3967
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
3968
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3850
3969
  "div",
3851
3970
  {
3852
3971
  ref: itemsRef,
3853
3972
  className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
3854
3973
  children: filteredMaterialList.map((materialValue, index) => {
3855
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3974
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3856
3975
  DraggableItem_default,
3857
3976
  {
3858
3977
  item: { index: materialValue },
3859
3978
  type: "GROUPING",
3860
- component: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3979
+ component: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3861
3980
  "div",
3862
3981
  {
3863
3982
  className: `${selectedValue === materialValue ? "border-catchup-blue" : "border-catchup-lighter-gray"} h-catchup-activity-covering-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
@@ -3871,22 +3990,22 @@ var GroupingActivityMaterialContent = ({
3871
3990
  setSelectedValue(null);
3872
3991
  }
3873
3992
  },
3874
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3993
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3875
3994
  "div",
3876
3995
  {
3877
3996
  className: `flex flex-col items-center justify-center m-4 min-h-[64px] min-w-[200px]`,
3878
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
3997
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
3879
3998
  materialValue
3880
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
3999
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3881
4000
  "span",
3882
4001
  {
3883
4002
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
3884
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_katex4.InlineMath, { math: inputPart.value }) }) : inputPart.value
4003
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_katex4.InlineMath, { math: inputPart.value }) }) : inputPart.value
3885
4004
  },
3886
4005
  index2
3887
4006
  )) })
3888
4007
  }
3889
- ) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4008
+ ) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3890
4009
  ShowMaterialMediaByContentType_default,
3891
4010
  {
3892
4011
  contentType: contentMap.type,
@@ -3911,22 +4030,22 @@ var GroupingActivityMaterialContent = ({
3911
4030
  })
3912
4031
  }
3913
4032
  ),
3914
- filteredMaterialList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DividerLine_default, {}) : null,
3915
- Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row w-full", children: [
3916
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4033
+ filteredMaterialList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DividerLine_default, {}) : null,
4034
+ Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "flex flex-row w-full", children: [
4035
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3917
4036
  "div",
3918
4037
  {
3919
4038
  className: `border-catchup-blue h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge transition-all duration-300 my-3`,
3920
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4039
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3921
4040
  "div",
3922
4041
  {
3923
4042
  className: `flex flex-col items-center justify-center transition-all duration-300 m-4`,
3924
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
3925
- (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4043
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
4044
+ (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3926
4045
  "span",
3927
4046
  {
3928
4047
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
3929
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_katex4.InlineMath, { math: inputPart.value }) }) : inputPart.value
4048
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_katex4.InlineMath, { math: inputPart.value }) }) : inputPart.value
3930
4049
  },
3931
4050
  index2
3932
4051
  )
@@ -3935,12 +4054,12 @@ var GroupingActivityMaterialContent = ({
3935
4054
  )
3936
4055
  }
3937
4056
  ) }),
3938
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
3939
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex-1", ref, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "h-full py-3", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4057
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
4058
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex-1", ref, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "h-full py-3", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3940
4059
  "div",
3941
4060
  {
3942
4061
  className: `${canDrop ? selectedTargetKey === answerMapKey ? "bg-catchup-light-blue" : "bg-catchup-light-blue opacity-40" : ""} flex-1 border-catchup-blue rounded-catchup-xlarge border-2 h-full p-1`,
3943
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4062
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3944
4063
  DroppableItem_default,
3945
4064
  {
3946
4065
  item: { index: answerMapKey },
@@ -3948,7 +4067,7 @@ var GroupingActivityMaterialContent = ({
3948
4067
  target: selectedTargetKey,
3949
4068
  setTarget: setSelectedTargetKey,
3950
4069
  dropRef: drop,
3951
- component: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4070
+ component: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3952
4071
  "div",
3953
4072
  {
3954
4073
  className: "h-full flex-1 flex flex-row items-center overflow-x-auto",
@@ -3961,7 +4080,7 @@ var GroupingActivityMaterialContent = ({
3961
4080
  materialMap[answerMapKey],
3962
4081
  answerMapValue
3963
4082
  );
3964
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "p-1", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "h-catchup-activity-box-item", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4083
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "p-1", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "h-catchup-activity-box-item", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3965
4084
  "div",
3966
4085
  {
3967
4086
  className: `${learnerAnswerState === "EMPTY" ? "border-catchup-lighter-gray" : learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"} border-2 rounded-catchup-xlarge h-full flex flex-col items-center justify-center transition-all duration-300 cursor-pointer`,
@@ -3977,17 +4096,17 @@ var GroupingActivityMaterialContent = ({
3977
4096
  setSelectedValue(null);
3978
4097
  }
3979
4098
  },
3980
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4099
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3981
4100
  "div",
3982
4101
  {
3983
4102
  className: `flex flex-col items-center justify-center transition-all duration-300 min-h-[64px] min-w-[200px]`,
3984
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4103
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
3985
4104
  answerMapValue
3986
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4105
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3987
4106
  "span",
3988
4107
  {
3989
4108
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
3990
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4109
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
3991
4110
  import_react_katex4.InlineMath,
3992
4111
  {
3993
4112
  math: inputPart.value
@@ -3997,7 +4116,7 @@ var GroupingActivityMaterialContent = ({
3997
4116
  index2
3998
4117
  )) }) })
3999
4118
  }
4000
- ) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
4119
+ ) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4001
4120
  ShowMaterialMediaByContentType_default,
4002
4121
  {
4003
4122
  contentType: contentMap.type,
@@ -4023,7 +4142,7 @@ var GroupingActivityMaterialContent = ({
4023
4142
  var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
4024
4143
 
4025
4144
  // src/components/activities/GroupingActivityContent.tsx
4026
- var import_jsx_runtime23 = require("react/jsx-runtime");
4145
+ var import_jsx_runtime24 = require("react/jsx-runtime");
4027
4146
  var GroupingActivityContent = ({
4028
4147
  answer,
4029
4148
  data,
@@ -4047,16 +4166,16 @@ var GroupingActivityContent = ({
4047
4166
  }
4048
4167
  changeAnswer(answer2);
4049
4168
  };
4050
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
4051
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4169
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
4170
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4052
4171
  ActivityBodyContent_default,
4053
4172
  {
4054
4173
  bodyMap: groupingBodyMap,
4055
4174
  templateType: "GROUPING"
4056
4175
  }
4057
4176
  ),
4058
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(DividerLine_default, {}),
4059
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
4177
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DividerLine_default, {}),
4178
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4060
4179
  GroupingActivityMaterialContent_default,
4061
4180
  {
4062
4181
  uniqueValue: JSON.stringify(data.contentMap),
@@ -4077,7 +4196,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
4077
4196
  var import_react19 = require("react");
4078
4197
  var import_react_dnd5 = require("react-dnd");
4079
4198
  var import_react_katex5 = require("react-katex");
4080
- var import_jsx_runtime24 = require("react/jsx-runtime");
4199
+ var import_jsx_runtime25 = require("react/jsx-runtime");
4081
4200
  var MatchingActivityMaterialContent = ({
4082
4201
  uniqueValue,
4083
4202
  answer,
@@ -4173,18 +4292,18 @@ var MatchingActivityMaterialContent = ({
4173
4292
  };
4174
4293
  const answerMap = retrieveAnswerMap();
4175
4294
  const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
4176
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
4177
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4295
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
4296
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4178
4297
  "div",
4179
4298
  {
4180
4299
  ref: itemsRef,
4181
4300
  className: "flex-1 flex flex-row gap-x-4 gap-y-4 overflow-auto py-2",
4182
- children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4301
+ children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4183
4302
  DraggableItem_default,
4184
4303
  {
4185
4304
  item: { index: materialValue },
4186
4305
  type: "MATCHING",
4187
- component: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4306
+ component: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4188
4307
  "div",
4189
4308
  {
4190
4309
  className: `${selectedValue === materialValue ? "border-catchup-blue" : "border-catchup-lighter-gray"} h-catchup-activity-covering-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
@@ -4198,22 +4317,22 @@ var MatchingActivityMaterialContent = ({
4198
4317
  setSelectedValue(null);
4199
4318
  }
4200
4319
  },
4201
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4320
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4202
4321
  "div",
4203
4322
  {
4204
4323
  className: `flex flex-col items-center justify-center m-4 min-h-[64px] min-w-[200px]`,
4205
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4324
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4206
4325
  materialValue
4207
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4326
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4208
4327
  "span",
4209
4328
  {
4210
4329
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4211
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
4330
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
4212
4331
  },
4213
4332
  index2
4214
4333
  )) })
4215
4334
  }
4216
- ) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4335
+ ) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4217
4336
  ShowMaterialMediaByContentType_default,
4218
4337
  {
4219
4338
  contentType: contentMap.type,
@@ -4237,27 +4356,27 @@ var MatchingActivityMaterialContent = ({
4237
4356
  ))
4238
4357
  }
4239
4358
  ),
4240
- filteredMaterialList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(DividerLine_default, {}) : null,
4359
+ filteredMaterialList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DividerLine_default, {}) : null,
4241
4360
  Object.keys(answerMap).map((answerMapKey, index) => {
4242
4361
  const learnerAnswerState = checkAnswerState(
4243
4362
  materialMap[answerMapKey],
4244
4363
  answerMap[answerMapKey]
4245
4364
  );
4246
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: "flex flex-row w-full", children: [
4247
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4365
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "flex flex-row w-full", children: [
4366
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "w-1/3", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4248
4367
  "div",
4249
4368
  {
4250
4369
  className: `h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge transition-all duration-300 my-3 ${learnerAnswerState === "EMPTY" ? "border-catchup-blue" : learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
4251
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4370
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4252
4371
  "div",
4253
4372
  {
4254
4373
  className: `flex flex-col items-center justify-center transition-all duration-300 m-4`,
4255
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
4256
- (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4374
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
4375
+ (inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4257
4376
  "span",
4258
4377
  {
4259
4378
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4260
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
4379
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
4261
4380
  },
4262
4381
  index2
4263
4382
  )
@@ -4266,8 +4385,8 @@ var MatchingActivityMaterialContent = ({
4266
4385
  )
4267
4386
  }
4268
4387
  ) }),
4269
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
4270
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4388
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
4389
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4271
4390
  "div",
4272
4391
  {
4273
4392
  className: `${canDrop ? selectedTargetKey === answerMapKey ? "bg-catchup-light-blue" : "bg-catchup-light-blue opacity-40" : ""} h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300 my-3 ${learnerAnswerState === "EMPTY" ? "border-catchup-blue" : learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
@@ -4276,7 +4395,7 @@ var MatchingActivityMaterialContent = ({
4276
4395
  setSelectedValue(null);
4277
4396
  }
4278
4397
  },
4279
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4398
+ children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4280
4399
  DroppableItem_default,
4281
4400
  {
4282
4401
  item: { index: answerMapKey },
@@ -4284,7 +4403,7 @@ var MatchingActivityMaterialContent = ({
4284
4403
  target: selectedTargetKey,
4285
4404
  setTarget: setSelectedTargetKey,
4286
4405
  dropRef: drop,
4287
- component: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4406
+ component: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4288
4407
  "div",
4289
4408
  {
4290
4409
  className: `h-full flex-1 flex flex-row items-center justify-center `,
@@ -4297,16 +4416,16 @@ var MatchingActivityMaterialContent = ({
4297
4416
  );
4298
4417
  }
4299
4418
  },
4300
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4419
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-xl p-5 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4301
4420
  answerMap[answerMapKey]
4302
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4421
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4303
4422
  "span",
4304
4423
  {
4305
4424
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4306
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
4425
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_katex5.InlineMath, { math: inputPart.value }) }) : inputPart.value
4307
4426
  },
4308
4427
  index2
4309
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
4428
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4310
4429
  ShowMaterialMediaByContentType_default,
4311
4430
  {
4312
4431
  contentType: contentMap.type,
@@ -4329,7 +4448,7 @@ var MatchingActivityMaterialContent = ({
4329
4448
  var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
4330
4449
 
4331
4450
  // src/components/activities/MatchingActivityContent.tsx
4332
- var import_jsx_runtime25 = require("react/jsx-runtime");
4451
+ var import_jsx_runtime26 = require("react/jsx-runtime");
4333
4452
  var MatchingActivityContent = ({
4334
4453
  answer,
4335
4454
  data,
@@ -4349,16 +4468,16 @@ var MatchingActivityContent = ({
4349
4468
  answerMap[key] = value;
4350
4469
  changeAnswer(answer2);
4351
4470
  };
4352
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
4353
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4471
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
4472
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4354
4473
  ActivityBodyContent_default,
4355
4474
  {
4356
4475
  bodyMap: matchingBodyMap,
4357
4476
  templateType: "MATCHING"
4358
4477
  }
4359
4478
  ),
4360
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(DividerLine_default, {}),
4361
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
4479
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DividerLine_default, {}),
4480
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4362
4481
  MatchingActivityMaterialContent_default,
4363
4482
  {
4364
4483
  uniqueValue: JSON.stringify(data.contentMap),
@@ -4377,7 +4496,7 @@ var MatchingActivityContent_default = MatchingActivityContent;
4377
4496
 
4378
4497
  // src/components/activities/material-content/MCMAActivityMaterialContent.tsx
4379
4498
  var import_react_katex6 = require("react-katex");
4380
- var import_jsx_runtime26 = require("react/jsx-runtime");
4499
+ var import_jsx_runtime27 = require("react/jsx-runtime");
4381
4500
  var MCMAActivityMaterialContent = ({
4382
4501
  uniqueValue,
4383
4502
  answer,
@@ -4410,10 +4529,10 @@ var MCMAActivityMaterialContent = ({
4410
4529
  const answerMap = retrieveAnswerMap();
4411
4530
  const correctAnswerList = retrieveCorrectAnswerList();
4412
4531
  return Object.keys(materialMap).map((materialKey, index) => {
4413
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
4414
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
4415
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DividerLine_default, {}) }),
4416
- checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
4532
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
4533
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
4534
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DividerLine_default, {}) }),
4535
+ checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
4417
4536
  (materialSubKey, index2) => {
4418
4537
  const foundAnswer = answerMap[materialKey].find(
4419
4538
  (learnerAnswer) => learnerAnswer === materialSubKey
@@ -4426,7 +4545,7 @@ var MCMAActivityMaterialContent = ({
4426
4545
  const foundIndex = correctAnswerList.findIndex(
4427
4546
  (correctAnswer) => correctAnswer === materialSubKey
4428
4547
  );
4429
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
4548
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
4430
4549
  "div",
4431
4550
  {
4432
4551
  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" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
@@ -4434,7 +4553,7 @@ var MCMAActivityMaterialContent = ({
4434
4553
  onChange(answer, materialKey, materialSubKey);
4435
4554
  },
4436
4555
  children: [
4437
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4556
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4438
4557
  BaseImage_default,
4439
4558
  {
4440
4559
  src: answerMap[materialKey].includes(materialSubKey) ? "/icons/checkbox.png" : "/icons/empty-checkbox.png",
@@ -4444,16 +4563,16 @@ var MCMAActivityMaterialContent = ({
4444
4563
  }
4445
4564
  }
4446
4565
  ) }),
4447
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4566
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4448
4567
  materialSubKey
4449
- ).map((inputPart, index3) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4568
+ ).map((inputPart, index3) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4450
4569
  "span",
4451
4570
  {
4452
4571
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4453
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_katex6.InlineMath, { math: inputPart.value }) }) : inputPart.value
4572
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_katex6.InlineMath, { math: inputPart.value }) }) : inputPart.value
4454
4573
  },
4455
4574
  index3
4456
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4575
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4457
4576
  ShowMaterialMediaByContentType_default,
4458
4577
  {
4459
4578
  contentType: contentMap.type,
@@ -4467,13 +4586,13 @@ var MCMAActivityMaterialContent = ({
4467
4586
  index2
4468
4587
  );
4469
4588
  }
4470
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
4589
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
4471
4590
  answerMap[materialKey]
4472
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
4591
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4473
4592
  "span",
4474
4593
  {
4475
4594
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4476
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_katex6.InlineMath, { math: inputPart.value }) }) : inputPart.value
4595
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_katex6.InlineMath, { math: inputPart.value }) }) : inputPart.value
4477
4596
  },
4478
4597
  index2
4479
4598
  )) }, materialKey)
@@ -4483,7 +4602,7 @@ var MCMAActivityMaterialContent = ({
4483
4602
  var MCMAActivityMaterialContent_default = MCMAActivityMaterialContent;
4484
4603
 
4485
4604
  // src/components/activities/MCMAActivityContent.tsx
4486
- var import_jsx_runtime27 = require("react/jsx-runtime");
4605
+ var import_jsx_runtime28 = require("react/jsx-runtime");
4487
4606
  var MCMAActivityContent = ({
4488
4607
  answer,
4489
4608
  data,
@@ -4509,11 +4628,11 @@ var MCMAActivityContent = ({
4509
4628
  }
4510
4629
  changeAnswer(answer2);
4511
4630
  };
4512
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
4513
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
4514
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DividerLine_default, {}) }),
4515
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(VerticalDividerLine_default, {}) }),
4516
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
4631
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
4632
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
4633
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DividerLine_default, {}) }),
4634
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(VerticalDividerLine_default, {}) }),
4635
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4517
4636
  MCMAActivityMaterialContent_default,
4518
4637
  {
4519
4638
  uniqueValue: JSON.stringify(data.contentMap),
@@ -4531,7 +4650,7 @@ var MCMAActivityContent_default = MCMAActivityContent;
4531
4650
 
4532
4651
  // src/components/activities/material-content/MCSAActivityMaterialContent.tsx
4533
4652
  var import_react_katex7 = require("react-katex");
4534
- var import_jsx_runtime28 = require("react/jsx-runtime");
4653
+ var import_jsx_runtime29 = require("react/jsx-runtime");
4535
4654
  var MCSAActivityMaterialContent = ({
4536
4655
  uniqueValue,
4537
4656
  answer,
@@ -4561,10 +4680,10 @@ var MCSAActivityMaterialContent = ({
4561
4680
  const answerMap = retrieveAnswerMap();
4562
4681
  const correctAnswer = retrieveCorrectAnswer();
4563
4682
  return Object.keys(materialMap).map((materialKey, index) => {
4564
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
4565
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
4566
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DividerLine_default, {}) }),
4567
- checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4683
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5", children: [
4684
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
4685
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DividerLine_default, {}) }),
4686
+ checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4568
4687
  "div",
4569
4688
  {
4570
4689
  className: `flex flex-row w-full ${Object.keys(materialMap[materialKey]).length <= 4 ? "justify-center" : ""} flex-wrap`,
@@ -4575,7 +4694,7 @@ var MCSAActivityMaterialContent = ({
4575
4694
  materialSubKey,
4576
4695
  answerMap[materialKey]
4577
4696
  );
4578
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
4697
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
4579
4698
  "div",
4580
4699
  {
4581
4700
  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" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
@@ -4583,7 +4702,7 @@ var MCSAActivityMaterialContent = ({
4583
4702
  onChange(answer, materialKey, materialSubKey);
4584
4703
  },
4585
4704
  children: [
4586
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4705
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4587
4706
  BaseImage_default,
4588
4707
  {
4589
4708
  src: answerMap[materialKey] === materialSubKey ? "/icons/item-element.png" : "/icons/not-selected-item-element.png",
@@ -4593,16 +4712,16 @@ var MCSAActivityMaterialContent = ({
4593
4712
  }
4594
4713
  }
4595
4714
  ) }),
4596
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4715
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4597
4716
  materialSubKey
4598
- ).map((inputPart, index3) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4717
+ ).map((inputPart, index3) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4599
4718
  "span",
4600
4719
  {
4601
4720
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4602
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react_katex7.InlineMath, { math: inputPart.value }) }) : inputPart.value
4721
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_katex7.InlineMath, { math: inputPart.value }) }) : inputPart.value
4603
4722
  },
4604
4723
  index3
4605
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4724
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4606
4725
  ShowMaterialMediaByContentType_default,
4607
4726
  {
4608
4727
  contentType: contentMap.type,
@@ -4618,13 +4737,13 @@ var MCSAActivityMaterialContent = ({
4618
4737
  }
4619
4738
  )
4620
4739
  }
4621
- ) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4740
+ ) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4622
4741
  answerMap[materialKey]
4623
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
4742
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4624
4743
  "span",
4625
4744
  {
4626
4745
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4627
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react_katex7.InlineMath, { math: inputPart.value }) }) : inputPart.value
4746
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_katex7.InlineMath, { math: inputPart.value }) }) : inputPart.value
4628
4747
  },
4629
4748
  index2
4630
4749
  )) })
@@ -4634,7 +4753,7 @@ var MCSAActivityMaterialContent = ({
4634
4753
  var MCSAActivityMaterialContent_default = MCSAActivityMaterialContent;
4635
4754
 
4636
4755
  // src/components/activities/MCSAActivityContent.tsx
4637
- var import_jsx_runtime29 = require("react/jsx-runtime");
4756
+ var import_jsx_runtime30 = require("react/jsx-runtime");
4638
4757
  var MCSAActivityContent = ({
4639
4758
  answer,
4640
4759
  data,
@@ -4653,11 +4772,11 @@ var MCSAActivityContent = ({
4653
4772
  answerMap[key] = value;
4654
4773
  changeAnswer(answer2);
4655
4774
  };
4656
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
4657
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
4658
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DividerLine_default, {}) }),
4659
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(VerticalDividerLine_default, {}) }),
4660
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
4775
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
4776
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-full md:w-[60%]", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
4777
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DividerLine_default, {}) }),
4778
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(VerticalDividerLine_default, {}) }),
4779
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4661
4780
  MCSAActivityMaterialContent_default,
4662
4781
  {
4663
4782
  uniqueValue: JSON.stringify(data.contentMap),
@@ -4674,7 +4793,7 @@ var MCSAActivityContent = ({
4674
4793
  var MCSAActivityContent_default = MCSAActivityContent;
4675
4794
 
4676
4795
  // src/components/activities/material-content/OpenEndedActivityMaterialContent.tsx
4677
- var import_jsx_runtime30 = require("react/jsx-runtime");
4796
+ var import_jsx_runtime31 = require("react/jsx-runtime");
4678
4797
  var OpenEndedActivityMaterialContent = ({
4679
4798
  answer,
4680
4799
  contentMap,
@@ -4700,7 +4819,7 @@ var OpenEndedActivityMaterialContent = ({
4700
4819
  };
4701
4820
  const RenderTextContent = (answerMap2) => {
4702
4821
  const answerMapAnswer = answerMap2["ANSWER"];
4703
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
4822
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4704
4823
  InputGroup_default,
4705
4824
  {
4706
4825
  type: "textarea",
@@ -4713,16 +4832,16 @@ var OpenEndedActivityMaterialContent = ({
4713
4832
  );
4714
4833
  };
4715
4834
  const answerMap = retrieveAnswerMap();
4716
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "", children: [
4717
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
4718
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(DividerLine_default, {}) }),
4835
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "", children: [
4836
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
4837
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DividerLine_default, {}) }),
4719
4838
  contentMap.type === "TEXT" ? RenderTextContent(answerMap) : null
4720
4839
  ] }) });
4721
4840
  };
4722
4841
  var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
4723
4842
 
4724
4843
  // src/components/activities/OpenEndedActivityContent.tsx
4725
- var import_jsx_runtime31 = require("react/jsx-runtime");
4844
+ var import_jsx_runtime32 = require("react/jsx-runtime");
4726
4845
  var OpenEndedActivityContent = ({
4727
4846
  answer,
4728
4847
  data,
@@ -4739,12 +4858,12 @@ var OpenEndedActivityContent = ({
4739
4858
  answerMap["ANSWER"] = value;
4740
4859
  changeAnswer(answer2);
4741
4860
  };
4742
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
4743
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4861
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
4862
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4744
4863
  "div",
4745
4864
  {
4746
4865
  className: `${showMaterialContent ? "w-full md:w-[40%]" : "w-full"}`,
4747
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4866
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4748
4867
  ActivityBodyContent_default,
4749
4868
  {
4750
4869
  bodyMap: openEndedBodyMap,
@@ -4753,10 +4872,10 @@ var OpenEndedActivityContent = ({
4753
4872
  )
4754
4873
  }
4755
4874
  ),
4756
- showMaterialContent ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
4757
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DividerLine_default, {}) }),
4758
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(VerticalDividerLine_default, {}) }),
4759
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
4875
+ showMaterialContent ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
4876
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DividerLine_default, {}) }),
4877
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(VerticalDividerLine_default, {}) }),
4878
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4760
4879
  OpenEndedActivityMaterialContent_default,
4761
4880
  {
4762
4881
  answer,
@@ -4777,7 +4896,7 @@ var import_react_katex8 = require("react-katex");
4777
4896
  // src/components/dnds/DraggableDroppableItem.tsx
4778
4897
  var import_react20 = require("react");
4779
4898
  var import_react_dnd6 = require("react-dnd");
4780
- var import_jsx_runtime32 = require("react/jsx-runtime");
4899
+ var import_jsx_runtime33 = require("react/jsx-runtime");
4781
4900
  var DraggableDroppableItem = ({
4782
4901
  key,
4783
4902
  item,
@@ -4815,12 +4934,12 @@ var DraggableDroppableItem = ({
4815
4934
  });
4816
4935
  const opacity = isDragging ? 0.4 : 1;
4817
4936
  drag(drop(ref));
4818
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4937
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
4819
4938
  "div",
4820
4939
  {
4821
4940
  className: `${isDragging ? "w-[0px] opacity-0" : "w-full opacity-100"} transition-all duration-500`,
4822
4941
  ref: dropRef,
4823
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ref, className: "w-full", style: { opacity }, children: component })
4942
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ref, className: "w-full", style: { opacity }, children: component })
4824
4943
  },
4825
4944
  key
4826
4945
  );
@@ -4828,7 +4947,7 @@ var DraggableDroppableItem = ({
4828
4947
  var DraggableDroppableItem_default = DraggableDroppableItem;
4829
4948
 
4830
4949
  // src/components/activities/material-content/OrderingActivityMaterialContent.tsx
4831
- var import_jsx_runtime33 = require("react/jsx-runtime");
4950
+ var import_jsx_runtime34 = require("react/jsx-runtime");
4832
4951
  var OrderingActivityMaterialContent = ({
4833
4952
  uniqueValue,
4834
4953
  answer,
@@ -4905,12 +5024,12 @@ var OrderingActivityMaterialContent = ({
4905
5024
  return 0;
4906
5025
  };
4907
5026
  const answerMap = retrieveAnswerMap();
4908
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
5027
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "flex flex-row flex-wrap", children: Object.keys(answerMap).map((materialKey, index) => {
4909
5028
  const learnerAnswerState = checkAnswerState(
4910
5029
  answerMap[materialKey] + "",
4911
5030
  index + ""
4912
5031
  );
4913
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5032
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
4914
5033
  "div",
4915
5034
  {
4916
5035
  className: `flex flex-row items-center my-4 mx-2`,
@@ -4918,26 +5037,26 @@ var OrderingActivityMaterialContent = ({
4918
5037
  marginTop: view === "PC" ? calculateMarginTop(parseFloat(materialKey)) : 0
4919
5038
  },
4920
5039
  children: [
4921
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "mr-3", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5040
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mr-3", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4922
5041
  "div",
4923
5042
  {
4924
5043
  className: `${learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : selectedKey === materialKey ? "border-catchup-blue" : "border-catchup-lighter-gray"} min-h-catchup-activity-outer-box-item w-catchup-activity-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
4925
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5044
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4926
5045
  "div",
4927
5046
  {
4928
5047
  className: `${selectedKey === materialKey ? "border-2 border-catchup-light-gray" : "border-2 border-catchup-blue"} flex flex-col items-center justify-center transition-all duration-300 rounded-catchup-full w-[50px] h-[50px]`,
4929
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "", children: parseFloat(materialKey) + 1 })
5048
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "", children: parseFloat(materialKey) + 1 })
4930
5049
  }
4931
5050
  )
4932
5051
  }
4933
5052
  ) }),
4934
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5053
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4935
5054
  DraggableDroppableItem_default,
4936
5055
  {
4937
5056
  item: { index: materialKey },
4938
5057
  type: "ORDERING",
4939
5058
  dropRef: drop,
4940
- component: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5059
+ component: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4941
5060
  "div",
4942
5061
  {
4943
5062
  className: `${canDrop ? selectedKey !== materialKey ? selectedTargetKey === materialKey ? "bg-catchup-light-blue rounded-catchup-xlarge" : "bg-catchup-light-blue rounded-catchup-xlarge opacity-40" : "" : ""} flex-1 min-h-catchup-activity-outer-box-item flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer p-3 ${learnerAnswerState === "CORRECT" ? "border-catchup-green" : learnerAnswerState === "INCORRECT" ? "border-catchup-red" : "border-catchup-blue"}`,
@@ -4946,16 +5065,16 @@ var OrderingActivityMaterialContent = ({
4946
5065
  setSelectedKey(materialKey);
4947
5066
  }
4948
5067
  },
4949
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5068
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
4950
5069
  materialMap[answerMap[materialKey]]
4951
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5070
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4952
5071
  "span",
4953
5072
  {
4954
5073
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
4955
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_katex8.InlineMath, { math: inputPart.value }) }) : inputPart.value
5074
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_katex8.InlineMath, { math: inputPart.value }) }) : inputPart.value
4956
5075
  },
4957
5076
  index2
4958
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
5077
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
4959
5078
  ShowMaterialMediaByContentType_default,
4960
5079
  {
4961
5080
  contentType: contentMap.type,
@@ -4987,7 +5106,7 @@ var OrderingActivityMaterialContent = ({
4987
5106
  var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
4988
5107
 
4989
5108
  // src/components/activities/OrderingActivityContent.tsx
4990
- var import_jsx_runtime34 = require("react/jsx-runtime");
5109
+ var import_jsx_runtime35 = require("react/jsx-runtime");
4991
5110
  var OrderingActivityContent = ({
4992
5111
  answer,
4993
5112
  data,
@@ -5009,16 +5128,16 @@ var OrderingActivityContent = ({
5009
5128
  answerMap[secondaryKey] = prevValue;
5010
5129
  changeAnswer(answer2);
5011
5130
  };
5012
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
5013
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5131
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
5132
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5014
5133
  ActivityBodyContent_default,
5015
5134
  {
5016
5135
  bodyMap: orderingBodyMap,
5017
5136
  templateType: "ORDERING"
5018
5137
  }
5019
5138
  ),
5020
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(DividerLine_default, {}),
5021
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
5139
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DividerLine_default, {}),
5140
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5022
5141
  OrderingActivityMaterialContent_default,
5023
5142
  {
5024
5143
  uniqueValue: JSON.stringify(data.contentMap),
@@ -5038,7 +5157,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
5038
5157
  // src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx
5039
5158
  var import_react22 = require("react");
5040
5159
  var import_react_katex9 = require("react-katex");
5041
- var import_jsx_runtime35 = require("react/jsx-runtime");
5160
+ var import_jsx_runtime36 = require("react/jsx-runtime");
5042
5161
  var TrueFalseActivityMaterialContent = ({
5043
5162
  uniqueValue,
5044
5163
  answer,
@@ -5091,14 +5210,14 @@ var TrueFalseActivityMaterialContent = ({
5091
5210
  return "INCORRECT";
5092
5211
  };
5093
5212
  const answerMap = retrieveAnswerMap();
5094
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "", children: [
5095
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
5096
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(DividerLine_default, {}) }),
5097
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
5098
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
5099
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
5213
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "", children: [
5214
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
5215
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DividerLine_default, {}) }),
5216
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
5217
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
5218
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
5100
5219
  ] }),
5101
- checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
5220
+ checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
5102
5221
  const correctAnswer = materialMap.trueList.find(
5103
5222
  (trueItem) => trueItem === shuffleOption
5104
5223
  ) !== void 0 ? "TRUE" : "FALSE";
@@ -5109,21 +5228,21 @@ var TrueFalseActivityMaterialContent = ({
5109
5228
  correctAnswer,
5110
5229
  learnerAnswer
5111
5230
  );
5112
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
5231
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
5113
5232
  "div",
5114
5233
  {
5115
5234
  className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge" : ""}`,
5116
5235
  children: [
5117
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5236
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5118
5237
  shuffleOption
5119
- ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5238
+ ).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5120
5239
  "span",
5121
5240
  {
5122
5241
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5123
- children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react_katex9.InlineMath, { math: inputPart.value }) }) : inputPart.value
5242
+ children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-2xl", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_katex9.InlineMath, { math: inputPart.value }) }) : inputPart.value
5124
5243
  },
5125
5244
  index2
5126
- )) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5245
+ )) }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5127
5246
  ShowMaterialMediaByContentType_default,
5128
5247
  {
5129
5248
  contentType: contentMap.type,
@@ -5132,8 +5251,8 @@ var TrueFalseActivityMaterialContent = ({
5132
5251
  },
5133
5252
  `${uniqueValue}-${index}`
5134
5253
  ) }),
5135
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5136
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5254
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5255
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5137
5256
  BaseImage_default,
5138
5257
  {
5139
5258
  src: answerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.png" : "/icons/empty-checkbox.png",
@@ -5144,7 +5263,7 @@ var TrueFalseActivityMaterialContent = ({
5144
5263
  }
5145
5264
  }
5146
5265
  ) }) }),
5147
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
5266
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5148
5267
  BaseImage_default,
5149
5268
  {
5150
5269
  src: answerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.png" : "/icons/empty-checkbox.png",
@@ -5160,14 +5279,14 @@ var TrueFalseActivityMaterialContent = ({
5160
5279
  },
5161
5280
  index
5162
5281
  );
5163
- }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
5164
- answerMap.trueList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5165
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { children: item }) }),
5166
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "underline", children: i18n_default.t("true") }) })
5282
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
5283
+ answerMap.trueList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5284
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { children: item }) }),
5285
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "underline", children: i18n_default.t("true") }) })
5167
5286
  ] })),
5168
- answerMap.falseList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5169
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { children: item }) }),
5170
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "underline", children: i18n_default.t("false") }) })
5287
+ answerMap.falseList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5288
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { children: item }) }),
5289
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: "underline", children: i18n_default.t("false") }) })
5171
5290
  ] }))
5172
5291
  ] })
5173
5292
  ] });
@@ -5175,7 +5294,7 @@ var TrueFalseActivityMaterialContent = ({
5175
5294
  var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
5176
5295
 
5177
5296
  // src/components/activities/TrueFalseActivityContent.tsx
5178
- var import_jsx_runtime36 = require("react/jsx-runtime");
5297
+ var import_jsx_runtime37 = require("react/jsx-runtime");
5179
5298
  var TrueFalseActivityContent = ({
5180
5299
  answer,
5181
5300
  data,
@@ -5224,17 +5343,17 @@ var TrueFalseActivityContent = ({
5224
5343
  }
5225
5344
  changeAnswer(answer2);
5226
5345
  };
5227
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
5228
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-full md:w-[40%]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5346
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
5347
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "w-full md:w-[40%]", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5229
5348
  ActivityBodyContent_default,
5230
5349
  {
5231
5350
  bodyMap: trueFalseBodyMap,
5232
5351
  templateType: "GROUPING"
5233
5352
  }
5234
5353
  ) }),
5235
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(DividerLine_default, {}) }),
5236
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(VerticalDividerLine_default, {}) }),
5237
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
5354
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "contents md:hidden", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(DividerLine_default, {}) }),
5355
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(VerticalDividerLine_default, {}) }),
5356
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "w-full md:flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5238
5357
  TrueFalseActivityMaterialContent_default,
5239
5358
  {
5240
5359
  uniqueValue: JSON.stringify(data.contentMap),
@@ -5252,9 +5371,9 @@ var TrueFalseActivityContent = ({
5252
5371
  var TrueFalseActivityContent_default = TrueFalseActivityContent;
5253
5372
 
5254
5373
  // src/components/dividers/BlueVerticalDividerLine.tsx
5255
- var import_jsx_runtime37 = require("react/jsx-runtime");
5374
+ var import_jsx_runtime38 = require("react/jsx-runtime");
5256
5375
  var BlueVerticalDividerLine = ({ opacity }) => {
5257
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
5376
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
5258
5377
  "div",
5259
5378
  {
5260
5379
  className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
@@ -5263,78 +5382,2373 @@ var BlueVerticalDividerLine = ({ opacity }) => {
5263
5382
  };
5264
5383
  var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
5265
5384
 
5266
- // src/utilization/StorageUtilization.ts
5267
- var convertDataURLtoFile = (dataurl, filename) => {
5268
- var arr = dataurl.split(","), mime = (arr[0].match(/:(.*?);/) || [])[1], bstr = atob(arr[arr.length - 1]), n = bstr.length, u8arr = new Uint8Array(n);
5269
- while (n--) {
5270
- u8arr[n] = bstr.charCodeAt(n);
5385
+ // src/components/boxes/SelectionBox.tsx
5386
+ var import_jsx_runtime39 = require("react/jsx-runtime");
5387
+ var SelectionBox = ({
5388
+ optionList,
5389
+ selectedId,
5390
+ handleSelectOnClick
5391
+ }) => {
5392
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
5393
+ "div",
5394
+ {
5395
+ className: `${option.id === selectedId ? "border-catchup-blue-400" : "border-catchup-gray-100 hover:border-catchup-blue-500"} border-2 rounded-catchup-xlarge py-3 px-8 cursor-pointer duration-300 transition-all`,
5396
+ onClick: () => {
5397
+ handleSelectOnClick(option.id);
5398
+ },
5399
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
5400
+ "div",
5401
+ {
5402
+ className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
5403
+ children: [
5404
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: option.icon }),
5405
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex-1 flex flex-col items-center", children: [
5406
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { children: option.text }),
5407
+ option.subText ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("p", { className: "text-md", children: [
5408
+ "(",
5409
+ option.subText,
5410
+ ")"
5411
+ ] }) : null
5412
+ ] })
5413
+ ]
5414
+ }
5415
+ )
5416
+ },
5417
+ index
5418
+ )) });
5419
+ };
5420
+ var SelectionBox_default = SelectionBox;
5421
+
5422
+ // src/components/boxes/SelectionCheckbox.tsx
5423
+ var import_jsx_runtime40 = require("react/jsx-runtime");
5424
+ var SelectionCheckbox = ({
5425
+ optionList,
5426
+ selectedIdList,
5427
+ handleSelectOnClick,
5428
+ handleRemoveOnClick
5429
+ }) => {
5430
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5431
+ "div",
5432
+ {
5433
+ className: `${selectedIdList.findIndex(
5434
+ (selectedId) => selectedId === option.id
5435
+ ) > -1 ? "border-catchup-blue-400" : "border-catchup-gray-100 hover:border-catchup-blue-500"} border-2 rounded-catchup-xlarge py-3 px-6 cursor-pointer duration-300 transition-all`,
5436
+ onClick: () => {
5437
+ if (selectedIdList.findIndex(
5438
+ (selectedId) => selectedId === option.id
5439
+ ) === -1) {
5440
+ handleSelectOnClick(option.id);
5441
+ } else {
5442
+ handleRemoveOnClick(option.id);
5443
+ }
5444
+ },
5445
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
5446
+ "div",
5447
+ {
5448
+ className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
5449
+ (selectedId) => selectedId === option.id
5450
+ ) > -1 ? "opacity-100" : "opacity-50"}`,
5451
+ children: [
5452
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
5453
+ BaseImage_default,
5454
+ {
5455
+ src: selectedIdList.findIndex(
5456
+ (selectedId) => selectedId === option.id
5457
+ ) > -1 ? "/icons/checkbox.png" : "/icons/checkbox-empty.png",
5458
+ alt: "checkbox",
5459
+ size: "small"
5460
+ }
5461
+ ) }),
5462
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: option.text }) })
5463
+ ]
5464
+ }
5465
+ )
5466
+ },
5467
+ index
5468
+ )) });
5469
+ };
5470
+ var SelectionCheckbox_default = SelectionCheckbox;
5471
+
5472
+ // src/components/tabs/SelectionTab.tsx
5473
+ var import_jsx_runtime41 = require("react/jsx-runtime");
5474
+ var SelectionTab = ({
5475
+ optionList,
5476
+ selectedId,
5477
+ handleSelectOnClick,
5478
+ selectedTextColor,
5479
+ selectedBorderColor,
5480
+ textColor,
5481
+ borderColor
5482
+ }) => {
5483
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-5 text-lg text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
5484
+ "div",
5485
+ {
5486
+ 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`,
5487
+ onClick: () => {
5488
+ handleSelectOnClick(option.id);
5489
+ },
5490
+ children: option.title
5491
+ },
5492
+ index
5493
+ )) });
5494
+ };
5495
+ var SelectionTab_default = SelectionTab;
5496
+
5497
+ // src/components/labels/ActivityTemplateLabel.tsx
5498
+ var import_jsx_runtime42 = require("react/jsx-runtime");
5499
+ var ActivityTemplateLabel = ({ title }) => {
5500
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5501
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(BaseImage_default, { src: "/icons/activity.png", alt: "label", size: "xsmall" }),
5502
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-md", children: title })
5503
+ ] }) });
5504
+ };
5505
+ var ActivityTemplateLabel_default = ActivityTemplateLabel;
5506
+
5507
+ // src/components/labels/BrandLabel.tsx
5508
+ var import_jsx_runtime43 = require("react/jsx-runtime");
5509
+ var BrandLabel = ({ title, icon, font }) => {
5510
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5511
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(BaseImage_default, { src: "/icons/brand-label.png", alt: "label", size: "xsmall" }),
5512
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: font ? font : "text-sm", children: title })
5513
+ ] }) });
5514
+ };
5515
+ var BrandLabel_default = BrandLabel;
5516
+
5517
+ // src/components/labels/CoterieLabel.tsx
5518
+ var import_jsx_runtime44 = require("react/jsx-runtime");
5519
+ var CoterieLabel = ({ title }) => {
5520
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-md", children: title }) });
5521
+ };
5522
+ var CoterieLabel_default = CoterieLabel;
5523
+
5524
+ // src/components/labels/GradeLabel.tsx
5525
+ var import_jsx_runtime45 = require("react/jsx-runtime");
5526
+ var GradeLabel = ({ title }) => {
5527
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "text-sm", children: title }) });
5528
+ };
5529
+ var GradeLabel_default = GradeLabel;
5530
+
5531
+ // src/components/labels/OutcomeLabel.tsx
5532
+ var import_jsx_runtime46 = require("react/jsx-runtime");
5533
+ var OutcomeLabel = ({ title }) => {
5534
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5535
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(BaseImage_default, { src: "/icons/category.png", alt: "label", size: "xsmall" }),
5536
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "text-md", children: title })
5537
+ ] }) });
5538
+ };
5539
+ var OutcomeLabel_default = OutcomeLabel;
5540
+
5541
+ // src/components/labels/PersonalLabel.tsx
5542
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5543
+ var PersonalLabel = ({ title, icon, font }) => {
5544
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5545
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
5546
+ BaseImage_default,
5547
+ {
5548
+ src: "/icons/personal-label.png",
5549
+ alt: "label",
5550
+ size: "xsmall"
5551
+ }
5552
+ ),
5553
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: font ? font : "text-sm", children: title })
5554
+ ] }) });
5555
+ };
5556
+ var PersonalLabel_default = PersonalLabel;
5557
+
5558
+ // src/components/labels/PublishingHouseLabel.tsx
5559
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5560
+ var PublishingHouseLabel = ({ title, icon, font }) => {
5561
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
5562
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5563
+ BaseImage_default,
5564
+ {
5565
+ src: "/icons/publishing-house-label.png",
5566
+ alt: "label",
5567
+ size: "xsmall"
5568
+ }
5569
+ ),
5570
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: font ? font : "text-sm", children: title })
5571
+ ] }) });
5572
+ };
5573
+ var PublishingHouseLabel_default = PublishingHouseLabel;
5574
+
5575
+ // src/utilization/AuthorizationUtilization.ts
5576
+ var parseJwt = (token) => {
5577
+ var base64Url = token.split(".")[1];
5578
+ var base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
5579
+ var jsonPayload = decodeURIComponent(
5580
+ window.atob(base64).split("").map(function(c) {
5581
+ return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
5582
+ }).join("")
5583
+ );
5584
+ return JSON.parse(jsonPayload);
5585
+ };
5586
+
5587
+ // src/utilization/ManagementUtilization.ts
5588
+ var retrieveBrandDTOByUserProfileOptionList = (userProfile) => {
5589
+ const brandDTOOptionList = [];
5590
+ if (userProfile) {
5591
+ for (const branchDTO of userProfile.branchDTOList) {
5592
+ const currentBrand = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
5593
+ if (brandDTOOptionList.findIndex(
5594
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5595
+ ) === -1) {
5596
+ brandDTOOptionList.push({
5597
+ value: currentBrand.id,
5598
+ fullValue: currentBrand,
5599
+ text: currentBrand.name
5600
+ });
5601
+ }
5602
+ }
5603
+ for (const gradeDTO of userProfile.gradeDTOList) {
5604
+ const currentBrand = gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO;
5605
+ if (brandDTOOptionList.findIndex(
5606
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5607
+ ) === -1) {
5608
+ brandDTOOptionList.push({
5609
+ value: currentBrand.id,
5610
+ fullValue: currentBrand,
5611
+ text: currentBrand.name
5612
+ });
5613
+ }
5614
+ }
5615
+ for (const seasonDTO of userProfile.seasonDTOList) {
5616
+ const currentBrand = seasonDTO.institutionDTO.campusDTO.brandDTO;
5617
+ if (brandDTOOptionList.findIndex(
5618
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5619
+ ) === -1) {
5620
+ brandDTOOptionList.push({
5621
+ value: currentBrand.id,
5622
+ fullValue: currentBrand,
5623
+ text: currentBrand.name
5624
+ });
5625
+ }
5626
+ }
5627
+ for (const institutionDTO of userProfile.institutionDTOList) {
5628
+ const currentBrand = institutionDTO.campusDTO.brandDTO;
5629
+ if (brandDTOOptionList.findIndex(
5630
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5631
+ ) === -1) {
5632
+ brandDTOOptionList.push({
5633
+ value: currentBrand.id,
5634
+ fullValue: currentBrand,
5635
+ text: currentBrand.name
5636
+ });
5637
+ }
5638
+ }
5639
+ for (const campusDTO of userProfile.campusDTOList) {
5640
+ const currentBrand = campusDTO.brandDTO;
5641
+ if (brandDTOOptionList.findIndex(
5642
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5643
+ ) === -1) {
5644
+ brandDTOOptionList.push({
5645
+ value: currentBrand.id,
5646
+ fullValue: currentBrand,
5647
+ text: currentBrand.name
5648
+ });
5649
+ }
5650
+ }
5651
+ for (const brandDTO of userProfile.brandDTOList) {
5652
+ const currentBrand = brandDTO;
5653
+ if (brandDTOOptionList.findIndex(
5654
+ (brandDTOOption) => brandDTOOption.value === currentBrand.id
5655
+ ) === -1) {
5656
+ brandDTOOptionList.push({
5657
+ value: currentBrand.id,
5658
+ fullValue: currentBrand,
5659
+ text: currentBrand.name
5660
+ });
5661
+ }
5662
+ }
5271
5663
  }
5272
- return new File([u8arr], filename, { type: mime });
5664
+ return brandDTOOptionList;
5273
5665
  };
5274
- var retrieveDocumentTypeFromAcceptedFormat = (format) => {
5275
- if (format === "application/pdf") {
5276
- return "PDF";
5277
- } else if (format === "image/jpeg" || format === "image/png" || format === "image/jpg") {
5278
- return "IMAGE";
5279
- } else if (format === "audio/mp3") {
5280
- return "AUDIO";
5666
+ var retrieveBrandDTOOptionList = (brandDTOList) => {
5667
+ return brandDTOList.map((brandDTO) => ({
5668
+ value: brandDTO.id,
5669
+ text: brandDTO.name,
5670
+ fullValue: brandDTO
5671
+ }));
5672
+ };
5673
+ var retrieveCampusDTOOptionList = (campusDTOList) => {
5674
+ return campusDTOList.map((campusDTO) => ({
5675
+ value: campusDTO.id,
5676
+ text: `${campusDTO.name} (${campusDTO.brandDTO.name})`,
5677
+ fullValue: campusDTO
5678
+ }));
5679
+ };
5680
+ var retrieveInstitutionDTOOptionList = (institutionDTOList) => {
5681
+ return institutionDTOList.map((institutionDTO) => ({
5682
+ value: institutionDTO.id,
5683
+ text: `${institutionDTO.name} (${institutionDTO.campusDTO.name} - ${institutionDTO.campusDTO.brandDTO.name})`,
5684
+ fullValue: institutionDTO
5685
+ }));
5686
+ };
5687
+ var retrieveSeasonDTOOptionList = (seasonDTOList) => {
5688
+ return seasonDTOList.map((seasonDTO) => ({
5689
+ value: seasonDTO.id,
5690
+ text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name})`,
5691
+ fullValue: seasonDTO
5692
+ // text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name} - ${seasonDTO.institutionDTO.campusDTO.name}/${seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5693
+ }));
5694
+ };
5695
+ var retrieveGradeDTOOptionList = (gradeDTOList) => {
5696
+ return gradeDTOList.map((gradeDTO) => ({
5697
+ value: gradeDTO.id,
5698
+ text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.name})`,
5699
+ fullValue: gradeDTO
5700
+ // text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} ${gradeDTO.seasonDTO.institutionDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5701
+ }));
5702
+ };
5703
+ var retrieveBranchDTOOptionList = (branchDTOList) => {
5704
+ return branchDTOList.map((branchDTO) => ({
5705
+ value: branchDTO.id,
5706
+ text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name})`,
5707
+ fullValue: branchDTO
5708
+ // text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5709
+ }));
5710
+ };
5711
+ var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) => {
5712
+ const campusDTOOptionList = [];
5713
+ if (userProfile) {
5714
+ if (selectedBrandId) {
5715
+ for (const branchDTO of userProfile.branchDTOList) {
5716
+ const currentCampus = branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO;
5717
+ if (campusDTOOptionList.findIndex(
5718
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5719
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5720
+ campusDTOOptionList.push({
5721
+ value: currentCampus.id,
5722
+ fullValue: currentCampus,
5723
+ text: currentCampus.name
5724
+ });
5725
+ }
5726
+ }
5727
+ for (const gradeDTO of userProfile.gradeDTOList) {
5728
+ const currentCampus = gradeDTO.seasonDTO.institutionDTO.campusDTO;
5729
+ if (campusDTOOptionList.findIndex(
5730
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5731
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5732
+ campusDTOOptionList.push({
5733
+ value: currentCampus.id,
5734
+ fullValue: currentCampus,
5735
+ text: currentCampus.name
5736
+ });
5737
+ }
5738
+ }
5739
+ for (const seasonDTO of userProfile.seasonDTOList) {
5740
+ const currentCampus = seasonDTO.institutionDTO.campusDTO;
5741
+ if (campusDTOOptionList.findIndex(
5742
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5743
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5744
+ campusDTOOptionList.push({
5745
+ value: currentCampus.id,
5746
+ fullValue: currentCampus,
5747
+ text: currentCampus.name
5748
+ });
5749
+ }
5750
+ }
5751
+ for (const institutionDTO of userProfile.institutionDTOList) {
5752
+ const currentCampus = institutionDTO.campusDTO;
5753
+ if (campusDTOOptionList.findIndex(
5754
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5755
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5756
+ campusDTOOptionList.push({
5757
+ value: currentCampus.id,
5758
+ fullValue: currentCampus,
5759
+ text: currentCampus.name
5760
+ });
5761
+ }
5762
+ }
5763
+ for (const campusDTO of userProfile.campusDTOList) {
5764
+ const currentCampus = campusDTO;
5765
+ if (campusDTOOptionList.findIndex(
5766
+ (campusDTOOption) => campusDTOOption.value === currentCampus.id
5767
+ ) === -1 && currentCampus.brandDTO.id === parseFloat(selectedBrandId)) {
5768
+ campusDTOOptionList.push({
5769
+ value: currentCampus.id,
5770
+ fullValue: currentCampus,
5771
+ text: currentCampus.name
5772
+ });
5773
+ }
5774
+ }
5775
+ return campusDTOOptionList;
5776
+ }
5281
5777
  }
5778
+ return [];
5282
5779
  };
5283
- var retrieveDocumentTypeFromExtension = (format) => {
5284
- if (format === "pdf") {
5285
- return "PDF";
5286
- } else if (format === "jpeg" || format === "png" || format === "jpg") {
5287
- return "IMAGE";
5288
- } else if (format === "mp3") {
5289
- return "AUDIO";
5780
+ var retrieveInstitutionDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedCampusId) => {
5781
+ const institutionDTOOptionList = [];
5782
+ if (userProfile) {
5783
+ if (selectedCampusId) {
5784
+ for (const branchDTO of userProfile.branchDTOList) {
5785
+ const currentInstitution = branchDTO.gradeDTO.seasonDTO.institutionDTO;
5786
+ if (institutionDTOOptionList.findIndex(
5787
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5788
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5789
+ institutionDTOOptionList.push({
5790
+ value: currentInstitution.id,
5791
+ fullValue: currentInstitution,
5792
+ text: currentInstitution.name
5793
+ });
5794
+ }
5795
+ }
5796
+ for (const gradeDTO of userProfile.gradeDTOList) {
5797
+ const currentInstitution = gradeDTO.seasonDTO.institutionDTO;
5798
+ if (institutionDTOOptionList.findIndex(
5799
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5800
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5801
+ institutionDTOOptionList.push({
5802
+ value: currentInstitution.id,
5803
+ fullValue: currentInstitution,
5804
+ text: currentInstitution.name
5805
+ });
5806
+ }
5807
+ }
5808
+ for (const seasonDTO of userProfile.seasonDTOList) {
5809
+ const currentInstitution = seasonDTO.institutionDTO;
5810
+ if (institutionDTOOptionList.findIndex(
5811
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5812
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5813
+ institutionDTOOptionList.push({
5814
+ value: currentInstitution.id,
5815
+ fullValue: currentInstitution,
5816
+ text: currentInstitution.name
5817
+ });
5818
+ }
5819
+ }
5820
+ for (const institutionDTO of userProfile.institutionDTOList) {
5821
+ const currentInstitution = institutionDTO;
5822
+ if (institutionDTOOptionList.findIndex(
5823
+ (institutionDTOOption) => institutionDTOOption.value === currentInstitution.id
5824
+ ) === -1 && currentInstitution.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentInstitution.campusDTO.id === parseFloat(selectedCampusId)) {
5825
+ institutionDTOOptionList.push({
5826
+ value: currentInstitution.id,
5827
+ fullValue: currentInstitution,
5828
+ text: currentInstitution.name
5829
+ });
5830
+ }
5831
+ }
5832
+ }
5290
5833
  }
5834
+ return institutionDTOOptionList;
5835
+ };
5836
+ var retrieveSeasonDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedInstitutionId) => {
5837
+ const seasonDTOOptionList = [];
5838
+ if (userProfile) {
5839
+ if (selectedInstitutionId) {
5840
+ for (const branchDTO of userProfile.branchDTOList) {
5841
+ const currentSeason = branchDTO.gradeDTO.seasonDTO;
5842
+ if (seasonDTOOptionList.findIndex(
5843
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
5844
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
5845
+ seasonDTOOptionList.push({
5846
+ value: currentSeason.id,
5847
+ fullValue: currentSeason,
5848
+ text: currentSeason.name
5849
+ });
5850
+ }
5851
+ }
5852
+ for (const gradeDTO of userProfile.gradeDTOList) {
5853
+ const currentSeason = gradeDTO.seasonDTO;
5854
+ if (seasonDTOOptionList.findIndex(
5855
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
5856
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
5857
+ seasonDTOOptionList.push({
5858
+ value: currentSeason.id,
5859
+ fullValue: currentSeason,
5860
+ text: currentSeason.name
5861
+ });
5862
+ }
5863
+ }
5864
+ for (const seasonDTO of userProfile.seasonDTOList) {
5865
+ const currentSeason = seasonDTO;
5866
+ if (seasonDTOOptionList.findIndex(
5867
+ (seasonDTOOption) => seasonDTOOption.value === currentSeason.id
5868
+ ) === -1 && currentSeason.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentSeason.institutionDTO.id === parseFloat(selectedInstitutionId)) {
5869
+ seasonDTOOptionList.push({
5870
+ value: currentSeason.id,
5871
+ fullValue: currentSeason,
5872
+ text: currentSeason.name
5873
+ });
5874
+ }
5875
+ }
5876
+ }
5877
+ }
5878
+ return seasonDTOOptionList;
5879
+ };
5880
+ var retrieveGradeDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedSeasonId) => {
5881
+ const gradeDTOOptionList = [];
5882
+ if (userProfile) {
5883
+ if (selectedSeasonId) {
5884
+ for (const branchDTO of userProfile.branchDTOList) {
5885
+ const currentGrade = branchDTO.gradeDTO;
5886
+ if (gradeDTOOptionList.findIndex(
5887
+ (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
5888
+ ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
5889
+ gradeDTOOptionList.push({
5890
+ value: currentGrade.id,
5891
+ fullValue: currentGrade,
5892
+ text: currentGrade.name
5893
+ });
5894
+ }
5895
+ }
5896
+ for (const gradeDTO of userProfile.gradeDTOList) {
5897
+ const currentGrade = gradeDTO;
5898
+ if (gradeDTOOptionList.findIndex(
5899
+ (gradeDTOOption) => gradeDTOOption.value === currentGrade.id
5900
+ ) === -1 && currentGrade.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentGrade.seasonDTO.id === parseFloat(selectedSeasonId)) {
5901
+ gradeDTOOptionList.push({
5902
+ value: currentGrade.id,
5903
+ fullValue: currentGrade,
5904
+ text: currentGrade.name
5905
+ });
5906
+ }
5907
+ }
5908
+ }
5909
+ }
5910
+ return gradeDTOOptionList;
5911
+ };
5912
+ var retrieveBranchDTOByUserProfileOptionList = (userProfile, selectedBrandId, selectedGradeId) => {
5913
+ const branchDTOOptionList = [];
5914
+ if (userProfile) {
5915
+ if (selectedGradeId) {
5916
+ for (const branchDTO of userProfile.branchDTOList) {
5917
+ const currentBranch = branchDTO;
5918
+ if (branchDTOOptionList.findIndex(
5919
+ (branchDTOOption) => branchDTOOption.value === currentBranch.id
5920
+ ) === -1 && currentBranch.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.id === parseFloat(selectedBrandId) && currentBranch.gradeDTO.id === parseFloat(selectedGradeId)) {
5921
+ branchDTOOptionList.push({
5922
+ value: currentBranch.id,
5923
+ fullValue: currentBranch,
5924
+ text: currentBranch.name
5925
+ });
5926
+ }
5927
+ }
5928
+ }
5929
+ }
5930
+ return branchDTOOptionList;
5931
+ };
5932
+ var retrieveExternalRegistrationDTOOptionList = (externalRegistrationDTOList) => {
5933
+ return externalRegistrationDTOList.map((externalRegistrationDTO) => ({
5934
+ value: externalRegistrationDTO.id,
5935
+ text: externalRegistrationDTO.name,
5936
+ fullValue: externalRegistrationDTO
5937
+ // text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name} - ${seasonDTO.institutionDTO.campusDTO.name}/${seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
5938
+ }));
5939
+ };
5940
+ var retrieveGenderOptionList = () => {
5941
+ return [
5942
+ {
5943
+ value: "MALE",
5944
+ text: i18n_default.t("MALE")
5945
+ },
5946
+ {
5947
+ value: "FEMALE",
5948
+ text: i18n_default.t("FEMALE")
5949
+ },
5950
+ {
5951
+ value: "NOT_GIVEN",
5952
+ text: i18n_default.t("NOT_GIVEN")
5953
+ }
5954
+ ];
5955
+ };
5956
+ var retrieveEnableOptionList = () => {
5957
+ return [
5958
+ {
5959
+ value: true,
5960
+ text: i18n_default.t("yes")
5961
+ },
5962
+ {
5963
+ value: false,
5964
+ text: i18n_default.t("no")
5965
+ }
5966
+ ];
5967
+ };
5968
+ var retrieveUserRoleOptionList = () => {
5969
+ return [
5970
+ {
5971
+ value: "STAFF",
5972
+ text: i18n_default.t("STAFF")
5973
+ },
5974
+ {
5975
+ value: "LEARNER",
5976
+ text: i18n_default.t("LEARNER")
5977
+ },
5978
+ {
5979
+ value: "PARENT",
5980
+ text: i18n_default.t("PARENT")
5981
+ },
5982
+ {
5983
+ value: "INDIVIDUAL",
5984
+ text: i18n_default.t("INDIVIDUAL")
5985
+ },
5986
+ {
5987
+ value: "CONTENT_CREATOR",
5988
+ text: i18n_default.t("CONTENT_CREATOR")
5989
+ }
5990
+ ];
5991
+ };
5992
+ var filterUserRoleOptionList = (accountType, userProfileRole) => {
5993
+ if (accountType === "GENIXO") {
5994
+ return retrieveUserRoleOptionList().filter(
5995
+ (userRoleOption) => userRoleOption.value === "STAFF" || userRoleOption.value === "LEARNER" || userRoleOption.value === "CONTENT_CREATOR"
5996
+ );
5997
+ } else {
5998
+ if (userProfileRole === "STAFF") {
5999
+ return retrieveUserRoleOptionList().filter(
6000
+ (userRoleOption) => userRoleOption.value === "STAFF" || userRoleOption.value === "LEARNER"
6001
+ );
6002
+ } else if (userProfileRole === "INDIVIDUAL") {
6003
+ return retrieveUserRoleOptionList().filter(
6004
+ (userRoleOption) => userRoleOption.value === "LEARNER"
6005
+ );
6006
+ }
6007
+ }
6008
+ return [];
6009
+ };
6010
+ var retrieveDefaultUserRoleOptionList = () => {
6011
+ return [
6012
+ {
6013
+ value: "BASIC",
6014
+ text: i18n_default.t("BASIC")
6015
+ },
6016
+ {
6017
+ value: "LEARNER",
6018
+ text: i18n_default.t("LEARNER")
6019
+ },
6020
+ {
6021
+ value: "STAFF_WRITER",
6022
+ text: i18n_default.t("STAFF_WRITER")
6023
+ },
6024
+ {
6025
+ value: "STAFF_TEACHER",
6026
+ text: i18n_default.t("STAFF_TEACHER")
6027
+ },
6028
+ {
6029
+ value: "STAFF_COTERIE_MANAGER",
6030
+ text: i18n_default.t("STAFF_COTERIE_MANAGER")
6031
+ },
6032
+ {
6033
+ value: "STAFF_INSTITUTION_MANAGER",
6034
+ text: i18n_default.t("STAFF_INSTITUTION_MANAGER")
6035
+ },
6036
+ {
6037
+ value: "STAFF_INSTITUTION_ASSISTANT_MANAGER",
6038
+ text: i18n_default.t("STAFF_INSTITUTION_ASSISTANT_MANAGER")
6039
+ },
6040
+ {
6041
+ value: "STAFF_CAMPUS_MANAGER",
6042
+ text: i18n_default.t("STAFF_CAMPUS_MANAGER")
6043
+ },
6044
+ {
6045
+ value: "STAFF_BRAND_MANAGER",
6046
+ text: i18n_default.t("STAFF_BRAND_MANAGER")
6047
+ },
6048
+ {
6049
+ value: "STAFF_INFORMATION_TECHNOLOGY",
6050
+ text: i18n_default.t("STAFF_INFORMATION_TECHNOLOGY")
6051
+ },
6052
+ {
6053
+ value: "INDIVIDUAL",
6054
+ text: i18n_default.t("INDIVIDUAL")
6055
+ },
6056
+ {
6057
+ value: "CONTENT_CREATOR",
6058
+ text: i18n_default.t("CONTENT_CREATOR")
6059
+ }
6060
+ ];
6061
+ };
6062
+ var retrieveCountryCodeOptionList = () => {
6063
+ return [
6064
+ {
6065
+ value: "TR",
6066
+ text: i18n_default.t("TR"),
6067
+ parent: "TURKEY"
6068
+ }
6069
+ // {
6070
+ // value: "US",
6071
+ // text: i18n.t("US"),
6072
+ // parent: "UNITED_STATES",
6073
+ // },
6074
+ // {
6075
+ // value: "DE",
6076
+ // text: i18n.t("DE"),
6077
+ // parent: "GERMANY",
6078
+ // },
6079
+ ];
6080
+ };
6081
+ var retrieveCountryNameOptionList = () => {
6082
+ return [
6083
+ {
6084
+ value: "TURKEY",
6085
+ text: i18n_default.t("TURKEY")
6086
+ }
6087
+ // {
6088
+ // value: "UNITED_STATES",
6089
+ // text: i18n.t("UNITED_STATES"),
6090
+ // },
6091
+ // {
6092
+ // value: "GERMANY",
6093
+ // text: i18n.t("GERMANY"),
6094
+ // },
6095
+ ];
6096
+ };
6097
+ var retrieveProvinceNameOptionList = () => {
6098
+ return [
6099
+ // { parent: "TURKEY", value: "ADANA", text: "Adana", code: "01" },
6100
+ // { parent: "TURKEY", value: "ADIYAMAN", text: "Adıyaman", code: "02" },
6101
+ // { parent: "TURKEY", value: "AFYON", text: "Afyon", code: "03" },
6102
+ // { parent: "TURKEY", value: "AGRI", text: "Ağrı", code: "04" },
6103
+ // { parent: "TURKEY", value: "AMASYA", text: "Amasya", code: "05" },
6104
+ { parent: "TURKEY", value: "ANKARA", text: "Ankara", code: "06" },
6105
+ { parent: "TURKEY", value: "ANTALYA", text: "Antalya", code: "07" },
6106
+ // { parent: "TURKEY", value: "ARTVIN", text: "Artvin", code: "08" },
6107
+ // { parent: "TURKEY", value: "AYDIN", text: "Aydın", code: "09" },
6108
+ // { parent: "TURKEY", value: "BALIKESIR", text: "Balıkesir", code: "10" },
6109
+ // { parent: "TURKEY", value: "BILECIK", text: "Bilecik", code: "11" },
6110
+ // { parent: "TURKEY", value: "BINGOL", text: "Bingöl", code: "12" },
6111
+ // { parent: "TURKEY", value: "BITLIS", text: "Bitlis", code: "13" },
6112
+ // { parent: "TURKEY", value: "BOLU", text: "Bolu", code: "14" },
6113
+ // { parent: "TURKEY", value: "BURDUR", text: "Burdur", code: "15" },
6114
+ // { parent: "TURKEY", value: "BURSA", text: "Bursa", code: "16" },
6115
+ // { parent: "TURKEY", value: "CANAKKALE", text: "Çanakkale", code: "17" },
6116
+ // { parent: "TURKEY", value: "CANKIRI", text: "Çankırı", code: "18" },
6117
+ // { parent: "TURKEY", value: "CORUM", text: "Çorum", code: "19" },
6118
+ // { parent: "TURKEY", value: "DENIZLI", text: "Denizli", code: "20" },
6119
+ // { parent: "TURKEY", value: "DIYARBAKIR", text: "Diyarbakır", code: "21" },
6120
+ // { parent: "TURKEY", value: "EDIRNE", text: "Edirne", code: "22" },
6121
+ // { parent: "TURKEY", value: "ELAZIG", text: "Elazığ", code: "23" },
6122
+ // { parent: "TURKEY", value: "ERZINCAN", text: "Erzincan", code: "24" },
6123
+ // { parent: "TURKEY", value: "ERZURUM", text: "Erzurum", code: "25" },
6124
+ { parent: "TURKEY", value: "ESKISEHIR", text: "Eski\u015Fehir", code: "26" },
6125
+ { parent: "TURKEY", value: "GAZIANTEP", text: "Gaziantep", code: "27" },
6126
+ // { parent: "TURKEY", value: "GIRESUN", text: "Giresun", code: "28" },
6127
+ // { parent: "TURKEY", value: "GUMUSHANE", text: "Gümüşhane", code: "29" },
6128
+ // { parent: "TURKEY", value: "HAKKARI", text: "Hakkari", code: "30" },
6129
+ // { parent: "TURKEY", value: "HATAY", text: "Hatay", code: "31" },
6130
+ // { parent: "TURKEY", value: "ISPARTA", text: "Isparta", code: "32" },
6131
+ { parent: "TURKEY", value: "MERSIN", text: "Mersin", code: "33" },
6132
+ { parent: "TURKEY", value: "ISTANBUL", text: "\u0130stanbul", code: "34" },
6133
+ { parent: "TURKEY", value: "IZMIR", text: "\u0130zmir", code: "35" }
6134
+ // { parent: "TURKEY", value: "KARS", text: "Kars", code: "36" },
6135
+ // { parent: "TURKEY", value: "KASTAMONU", text: "Kastamonu", code: "37" },
6136
+ // { parent: "TURKEY", value: "KAYSERI", text: "Kayseri", code: "38" },
6137
+ // { parent: "TURKEY", value: "KIRKLARELI", text: "Kırklareli", code: "39" },
6138
+ // { parent: "TURKEY", value: "KIRSEHIR", text: "Kırşehir", code: "40" },
6139
+ // { parent: "TURKEY", value: "KOCAELI", text: "Kocaeli", code: "41" },
6140
+ // { parent: "TURKEY", value: "KONYA", text: "Konya", code: "42" },
6141
+ // { parent: "TURKEY", value: "KUTAHYA", text: "Kütahya", code: "43" },
6142
+ // { parent: "TURKEY", value: "MALATYA", text: "Malatya", code: "44" },
6143
+ // { parent: "TURKEY", value: "MANISA", text: "Manisa", code: "45" },
6144
+ // {
6145
+ // parent: "TURKEY",
6146
+ // value: "KAHRAMANMARAS",
6147
+ // text: "Kahramanmaraş",
6148
+ // code: "46",
6149
+ // },
6150
+ // { parent: "TURKEY", value: "MARDIN", text: "Mardin", code: "47" },
6151
+ // { parent: "TURKEY", value: "MUGLA", text: "Muğla", code: "48" },
6152
+ // { parent: "TURKEY", value: "MUS", text: "Muş", code: "49" },
6153
+ // { parent: "TURKEY", value: "NEVSEHIR", text: "Nevşehir", code: "50" },
6154
+ // { parent: "TURKEY", value: "NIGDE", text: "Niğde", code: "51" },
6155
+ // { parent: "TURKEY", value: "ORDU", text: "Ordu", code: "52" },
6156
+ // { parent: "TURKEY", value: "RIZE", text: "Rize", code: "53" },
6157
+ // { parent: "TURKEY", value: "SAKARYA", text: "Sakarya", code: "54" },
6158
+ // { parent: "TURKEY", value: "SAMSUN", text: "Samsun", code: "55" },
6159
+ // { parent: "TURKEY", value: "SIIRT", text: "Siirt", code: "56" },
6160
+ // { parent: "TURKEY", value: "SINOP", text: "Sinop", code: "57" },
6161
+ // { parent: "TURKEY", value: "SIVAS", text: "Sivas", code: "58" },
6162
+ // { parent: "TURKEY", value: "TEKIRDAG", text: "Tekirdağ", code: "59" },
6163
+ // { parent: "TURKEY", value: "TOKAT", text: "Tokat", code: "60" },
6164
+ // { parent: "TURKEY", value: "TRABZON", text: "Trabzon", code: "61" },
6165
+ // { parent: "TURKEY", value: "TUNCELI", text: "Tunceli", code: "62" },
6166
+ // { parent: "TURKEY", value: "SANLIURFA", text: "Şanlıurfa", code: "63" },
6167
+ // { parent: "TURKEY", value: "USAK", text: "Uşak", code: "64" },
6168
+ // { parent: "TURKEY", value: "VAN", text: "Van", code: "65" },
6169
+ // { parent: "TURKEY", value: "YOZGAT", text: "Yozgat", code: "66" },
6170
+ // { parent: "TURKEY", value: "ZONGULDAK", text: "Zonguldak", code: "67" },
6171
+ // { parent: "TURKEY", value: "AKSARAY", text: "Aksaray", code: "68" },
6172
+ // { parent: "TURKEY", value: "BAYBURT", text: "Bayburt", code: "69" },
6173
+ // { parent: "TURKEY", value: "KARAMAN", text: "Karaman", code: "70" },
6174
+ // { parent: "TURKEY", value: "KIRIKKALE", text: "Kırıkkale", code: "71" },
6175
+ // { parent: "TURKEY", value: "BATMAN", text: "Batman", code: "72" },
6176
+ // { parent: "TURKEY", value: "SIRNAK", text: "Şırnak", code: "73" },
6177
+ // { parent: "TURKEY", value: "BARTIN", text: "Bartın", code: "74" },
6178
+ // { parent: "TURKEY", value: "ARDAHAN", text: "Ardahan", code: "75" },
6179
+ // { parent: "TURKEY", value: "IGDIR", text: "Iğdır", code: "76" },
6180
+ // { parent: "TURKEY", value: "YALOVA", text: "Yalova", code: "77" },
6181
+ // { parent: "TURKEY", value: "KARABUK", text: "Karabük", code: "78" },
6182
+ // { parent: "TURKEY", value: "KILIS", text: "Kilis", code: "79" },
6183
+ // { parent: "TURKEY", value: "OSMANIYE", text: "Osmaniye", code: "80" },
6184
+ // { parent: "TURKEY", value: "Düzce", text: "Düzce", code: "81" },
6185
+ ];
6186
+ };
6187
+ var retrievePhoneNumberAreaCodeList = () => {
6188
+ return [
6189
+ {
6190
+ parent: "UNITED_STATES",
6191
+ value: "+1",
6192
+ text: "+1"
6193
+ },
6194
+ {
6195
+ parent: "GERMANY",
6196
+ value: "+49",
6197
+ text: "+49"
6198
+ },
6199
+ {
6200
+ parent: "TURKEY",
6201
+ value: "+90",
6202
+ text: "+90"
6203
+ }
6204
+ ];
6205
+ };
6206
+ var retrieveInstitutionTypeOptionList = () => {
6207
+ return [
6208
+ {
6209
+ value: "WEST_PRIMARY",
6210
+ text: i18n_default.t("WEST_PRIMARY")
6211
+ },
6212
+ {
6213
+ value: "EAST_PRIMARY",
6214
+ text: i18n_default.t("EAST_PRIMARY")
6215
+ },
6216
+ {
6217
+ value: "EAST_SECONDARY",
6218
+ text: i18n_default.t("EAST_SECONDARY")
6219
+ },
6220
+ {
6221
+ value: "HIGH_SCHOOL",
6222
+ text: i18n_default.t("HIGH_SCHOOL")
6223
+ },
6224
+ {
6225
+ value: "COLLEGE",
6226
+ text: i18n_default.t("COLLEGE")
6227
+ },
6228
+ {
6229
+ value: "PRIVATE_TRAINING",
6230
+ text: i18n_default.t("PRIVATE_TRAINING")
6231
+ },
6232
+ {
6233
+ value: "PRIVATE_LESSON",
6234
+ text: i18n_default.t("PRIVATE_LESSON")
6235
+ },
6236
+ {
6237
+ value: "COURSE",
6238
+ text: i18n_default.t("COURSE")
6239
+ },
6240
+ {
6241
+ value: "COMPANY",
6242
+ text: i18n_default.t("COMPANY")
6243
+ },
6244
+ {
6245
+ value: "ORGANIZATION",
6246
+ text: i18n_default.t("ORGANIZATION")
6247
+ }
6248
+ ];
6249
+ };
6250
+ var retrieveGradeLevelOptionList = () => {
6251
+ return [
6252
+ {
6253
+ value: 0,
6254
+ text: i18n_default.t("other")
6255
+ },
6256
+ {
6257
+ value: 1,
6258
+ text: i18n_default.t("1")
6259
+ },
6260
+ {
6261
+ value: 2,
6262
+ text: i18n_default.t("2")
6263
+ },
6264
+ {
6265
+ value: 3,
6266
+ text: i18n_default.t("3")
6267
+ },
6268
+ {
6269
+ value: 4,
6270
+ text: i18n_default.t("4")
6271
+ },
6272
+ {
6273
+ value: 5,
6274
+ text: i18n_default.t("5")
6275
+ },
6276
+ {
6277
+ value: 6,
6278
+ text: i18n_default.t("6")
6279
+ },
6280
+ {
6281
+ value: 7,
6282
+ text: i18n_default.t("7")
6283
+ },
6284
+ {
6285
+ value: 8,
6286
+ text: i18n_default.t("8")
6287
+ },
6288
+ {
6289
+ value: 9,
6290
+ text: i18n_default.t("9")
6291
+ },
6292
+ {
6293
+ value: 10,
6294
+ text: i18n_default.t("10")
6295
+ },
6296
+ {
6297
+ value: 11,
6298
+ text: i18n_default.t("11")
6299
+ },
6300
+ {
6301
+ value: 12,
6302
+ text: i18n_default.t("12")
6303
+ }
6304
+ ];
6305
+ };
6306
+ var constructUserProfileQueryParams = (userProfile, userProfileBrand) => {
6307
+ let queryParams;
6308
+ if (userProfile.branchDTOList.length > 0) {
6309
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6310
+ branchIdList: userProfile.branchDTOList.map(
6311
+ (branchDTO) => branchDTO.id
6312
+ )
6313
+ });
6314
+ } else if (userProfile.gradeDTOList.length > 0) {
6315
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6316
+ gradeIdList: userProfile.gradeDTOList.map((gradeDTO) => gradeDTO.id)
6317
+ });
6318
+ } else if (userProfile.seasonDTOList.length > 0) {
6319
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6320
+ seasonIdList: userProfile.seasonDTOList.map(
6321
+ (seasonDTO) => seasonDTO.id
6322
+ )
6323
+ });
6324
+ } else if (userProfile.institutionDTOList.length > 0) {
6325
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6326
+ institutionIdList: userProfile.institutionDTOList.map(
6327
+ (institutionDTO) => institutionDTO.id
6328
+ )
6329
+ });
6330
+ } else if (userProfile.campusDTOList.length > 0) {
6331
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6332
+ campusIdList: userProfile.campusDTOList.map(
6333
+ (campusDTO) => campusDTO.id
6334
+ )
6335
+ });
6336
+ } else if (userProfile.brandDTOList.length > 0) {
6337
+ queryParams = __spreadProps(__spreadValues({}, queryParams), {
6338
+ brandIdList: [userProfileBrand.id]
6339
+ });
6340
+ }
6341
+ queryParams.deleted = false;
6342
+ return queryParams;
6343
+ };
6344
+ var retrieveCoterieTypeOptionList = () => {
6345
+ return [
6346
+ {
6347
+ text: i18n_default.t("MANAGEMENT"),
6348
+ value: "MANAGEMENT",
6349
+ includes: [
6350
+ "WEST_PRIMARY",
6351
+ "EAST_PRIMARY",
6352
+ "EAST_SECONDARY",
6353
+ "COLLEGE",
6354
+ "HIGH_SCHOOL",
6355
+ "COURSE"
6356
+ ]
6357
+ },
6358
+ {
6359
+ text: i18n_default.t("TURKISH"),
6360
+ value: "TURKISH",
6361
+ includes: [
6362
+ "WEST_PRIMARY",
6363
+ "EAST_PRIMARY",
6364
+ "EAST_SECONDARY",
6365
+ "COLLEGE",
6366
+ "HIGH_SCHOOL",
6367
+ "COURSE"
6368
+ ]
6369
+ },
6370
+ {
6371
+ text: i18n_default.t("HISTORY"),
6372
+ value: "HISTORY",
6373
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6374
+ },
6375
+ {
6376
+ text: i18n_default.t("MATHEMATICS"),
6377
+ value: "MATHEMATICS",
6378
+ includes: [
6379
+ "WEST_PRIMARY",
6380
+ "EAST_PRIMARY",
6381
+ "EAST_SECONDARY",
6382
+ "COLLEGE",
6383
+ "HIGH_SCHOOL",
6384
+ "COURSE"
6385
+ ]
6386
+ },
6387
+ {
6388
+ text: i18n_default.t("BIOLOGY"),
6389
+ value: "BIOLOGY",
6390
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6391
+ },
6392
+ {
6393
+ text: i18n_default.t("LITERATURE"),
6394
+ value: "LITERATURE",
6395
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6396
+ },
6397
+ {
6398
+ text: i18n_default.t("GEOGRAPHY"),
6399
+ value: "GEOGRAPHY",
6400
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6401
+ },
6402
+ {
6403
+ text: i18n_default.t("ENGLISH"),
6404
+ value: "ENGLISH",
6405
+ includes: [
6406
+ "WEST_PRIMARY",
6407
+ "EAST_PRIMARY",
6408
+ "EAST_SECONDARY",
6409
+ "COLLEGE",
6410
+ "HIGH_SCHOOL",
6411
+ "COURSE"
6412
+ ]
6413
+ },
6414
+ {
6415
+ text: i18n_default.t("PHYSICS"),
6416
+ value: "PHYSICS",
6417
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6418
+ },
6419
+ {
6420
+ text: i18n_default.t("CHEMISTRY"),
6421
+ value: "CHEMISTRY",
6422
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6423
+ },
6424
+ {
6425
+ text: i18n_default.t("PHILOSOPHY"),
6426
+ value: "PHILOSOPHY",
6427
+ includes: ["COLLEGE", "HIGH_SCHOOL", "COURSE"]
6428
+ },
6429
+ {
6430
+ text: i18n_default.t("PHYSICAL_EDUCATION"),
6431
+ value: "PHYSICAL_EDUCATION",
6432
+ includes: [
6433
+ "WEST_PRIMARY",
6434
+ "EAST_PRIMARY",
6435
+ "EAST_SECONDARY",
6436
+ "COLLEGE",
6437
+ "HIGH_SCHOOL",
6438
+ "COURSE"
6439
+ ]
6440
+ },
6441
+ {
6442
+ text: i18n_default.t("SOCIAL_STUDIES"),
6443
+ value: "SOCIAL_STUDIES",
6444
+ includes: [
6445
+ "WEST_PRIMARY",
6446
+ "EAST_PRIMARY",
6447
+ "EAST_SECONDARY",
6448
+ "COLLEGE",
6449
+ "COURSE"
6450
+ ]
6451
+ },
6452
+ {
6453
+ text: i18n_default.t("SCIENCE"),
6454
+ value: "SCIENCE",
6455
+ includes: [
6456
+ "WEST_PRIMARY",
6457
+ "EAST_PRIMARY",
6458
+ "EAST_SECONDARY",
6459
+ "COLLEGE",
6460
+ "COURSE"
6461
+ ]
6462
+ },
6463
+ {
6464
+ text: i18n_default.t("LIFE_STUDIES"),
6465
+ value: "LIFE_STUDIES",
6466
+ includes: ["WEST_PRIMARY", "EAST_PRIMARY", "COLLEGE", "COURSE"]
6467
+ },
6468
+ {
6469
+ text: i18n_default.t("CULTURE_AND_RELIGION_KNOWLEDGE"),
6470
+ value: "CULTURE_AND_RELIGION_KNOWLEDGE",
6471
+ includes: [
6472
+ "WEST_PRIMARY",
6473
+ "EAST_PRIMARY",
6474
+ "EAST_SECONDARY",
6475
+ "COLLEGE",
6476
+ "HIGH_SCHOOL",
6477
+ "COURSE"
6478
+ ]
6479
+ },
6480
+ {
6481
+ text: i18n_default.t("TRAFFIC_SAFETY"),
6482
+ value: "TRAFFIC_SAFETY",
6483
+ includes: ["WEST_PRIMARY", "EAST_PRIMARY", "COLLEGE", "COURSE"]
6484
+ },
6485
+ {
6486
+ text: i18n_default.t("GENERAL_CULTURE"),
6487
+ value: "GENERAL_CULTURE",
6488
+ includes: [
6489
+ "WEST_PRIMARY",
6490
+ "EAST_PRIMARY",
6491
+ "EAST_SECONDARY",
6492
+ "COLLEGE",
6493
+ "HIGH_SCHOOL",
6494
+ "COURSE"
6495
+ ]
6496
+ }
6497
+ ];
6498
+ };
6499
+ var retrieveUserAuthorityGeneralOptionList = () => {
6500
+ return [
6501
+ { text: i18n_default.t("all"), value: "" },
6502
+ { text: i18n_default.t("user"), value: "USER" },
6503
+ { text: i18n_default.t("activity"), value: "ACTIVITY" },
6504
+ { text: i18n_default.t("catchtivity"), value: "CATCHTIVITY" },
6505
+ { text: i18n_default.t("catchxam"), value: "CATCHXAM" },
6506
+ { text: i18n_default.t("label"), value: "LABEL" },
6507
+ { text: i18n_default.t("announcement"), value: "NOTIFICATION" },
6508
+ { text: i18n_default.t("report"), value: "REPORT" },
6509
+ { text: i18n_default.t("category"), value: "CATEGORY" },
6510
+ { text: i18n_default.t("library"), value: "STORAGE_FILE" },
6511
+ { text: i18n_default.t("brand"), value: "BRAND" },
6512
+ { text: i18n_default.t("region"), value: "REGION" },
6513
+ { text: i18n_default.t("campus"), value: "CAMPUS" },
6514
+ { text: i18n_default.t("institution"), value: "INSTITUTION" },
6515
+ { text: i18n_default.t("season"), value: "SEASON" },
6516
+ { text: i18n_default.t("grade"), value: "GRADE" },
6517
+ { text: i18n_default.t("branch"), value: "BRANCH" },
6518
+ { text: i18n_default.t("plan"), value: "PLAN" },
6519
+ { text: i18n_default.t("standard_exam"), value: "STANDARD_EXAM" },
6520
+ { text: i18n_default.t("etude"), value: "ETUDE" }
6521
+ ];
6522
+ };
6523
+ var filterGradeLevelOptionList = (institutionDTO, gradeDTO) => {
6524
+ if (gradeDTO) {
6525
+ return retrieveGradeLevelOptionList().filter(
6526
+ (gradeLevel) => parseFloat(gradeLevel.value) === gradeDTO.level
6527
+ );
6528
+ }
6529
+ if (institutionDTO) {
6530
+ const { type } = institutionDTO;
6531
+ if (type === "WEST_PRIMARY") {
6532
+ return retrieveGradeLevelOptionList().filter(
6533
+ (gradeLevel) => parseFloat(gradeLevel.value) <= 8
6534
+ );
6535
+ } else if (type === "EAST_PRIMARY") {
6536
+ return retrieveGradeLevelOptionList().filter(
6537
+ (gradeLevel) => parseFloat(gradeLevel.value) <= 4
6538
+ );
6539
+ } else if (type === "EAST_SECONDARY") {
6540
+ return retrieveGradeLevelOptionList().filter(
6541
+ (gradeLevel) => parseFloat(gradeLevel.value) > 4 && parseFloat(gradeLevel.value) <= 8
6542
+ );
6543
+ } else if (type === "HIGH_SCHOOL") {
6544
+ return retrieveGradeLevelOptionList().filter(
6545
+ (gradeLevel) => parseFloat(gradeLevel.value) > 8
6546
+ );
6547
+ } else if (type === "COLLEGE" || type === "PRIVATE_TRAINING" || type === "PRIVATE_LESSON" || type === "COURSE") {
6548
+ return retrieveGradeLevelOptionList();
6549
+ } else {
6550
+ return [];
6551
+ }
6552
+ }
6553
+ return retrieveGradeLevelOptionList();
6554
+ };
6555
+ var filterCoterieTypeOptionList = (userInformation, userProfile, userProfileInstitution) => {
6556
+ if (userInformation.accountType === "GENIXO") {
6557
+ return retrieveCoterieTypeOptionList().sort(
6558
+ (a, b) => a.text.localeCompare(b.text)
6559
+ );
6560
+ }
6561
+ if (userProfile.role === "STAFF" || userProfile.role === "CONTENT_CREATOR") {
6562
+ if (userProfile.coterieType === "MANAGEMENT") {
6563
+ if (userProfileInstitution) {
6564
+ return retrieveCoterieTypeOptionList().filter(
6565
+ (coterieTypeOption) => coterieTypeOption.includes.includes(userProfileInstitution.type)
6566
+ ).sort((a, b) => a.text.localeCompare(b.text));
6567
+ } else {
6568
+ return retrieveCoterieTypeOptionList().sort(
6569
+ (a, b) => a.text.localeCompare(b.text)
6570
+ );
6571
+ }
6572
+ } else {
6573
+ return retrieveCoterieTypeOptionList().filter(
6574
+ (coterieTypeOption) => coterieTypeOption.value === userProfile.coterieType
6575
+ ).sort((a, b) => a.text.localeCompare(b.text));
6576
+ }
6577
+ } else if (userProfile.role === "INDIVIDUAL") {
6578
+ const individualCoterieTypeOptionList = [];
6579
+ const coterieTypeOptionList = retrieveCoterieTypeOptionList();
6580
+ userProfile.coterieTypeList.forEach((coterieType) => {
6581
+ const foundCoterieTypeOption = coterieTypeOptionList.find(
6582
+ (coterieTypeOption) => coterieTypeOption.value === coterieType
6583
+ );
6584
+ if (foundCoterieTypeOption) {
6585
+ individualCoterieTypeOptionList.push(foundCoterieTypeOption);
6586
+ }
6587
+ });
6588
+ return individualCoterieTypeOptionList;
6589
+ }
6590
+ return [];
6591
+ };
6592
+ var findAISettingsFromCurrentProfile = (userProfileBrand, userProfileCampus, userProfileInstitution) => {
6593
+ if (userProfileInstitution) {
6594
+ const { institutionSettingsDTO } = userProfileInstitution;
6595
+ const { institutionAISettingsDTO } = institutionSettingsDTO;
6596
+ return institutionAISettingsDTO;
6597
+ } else {
6598
+ if (userProfileCampus) {
6599
+ const { campusSettingsDTO } = userProfileCampus;
6600
+ const { campusAISettingsDTO } = campusSettingsDTO;
6601
+ return campusAISettingsDTO;
6602
+ } else {
6603
+ if (userProfileBrand) {
6604
+ const { brandSettingsDTO } = userProfileBrand;
6605
+ const { brandAISettingsDTO } = brandSettingsDTO;
6606
+ return brandAISettingsDTO;
6607
+ }
6608
+ }
6609
+ }
6610
+ };
6611
+
6612
+ // src/utilization/CategoryUtilization.ts
6613
+ var retrieveCategoryVersionCodeOptionList = () => {
6614
+ return [
6615
+ {
6616
+ value: "MEB-IO-MAT-2024",
6617
+ text: i18n_default.t("MEB-IO-MAT-2024"),
6618
+ type: "MATHEMATICS",
6619
+ availableLevelList: [5]
6620
+ },
6621
+ {
6622
+ value: "MEB-IO-MAT-2018",
6623
+ text: i18n_default.t("MEB-IO-MAT-2018"),
6624
+ type: "MATHEMATICS",
6625
+ availableLevelList: [4, 6, 7, 8]
6626
+ },
6627
+ {
6628
+ value: "MEB-IO-TUR-2024",
6629
+ text: i18n_default.t("MEB-IO-TUR-2024"),
6630
+ type: "TURKISH",
6631
+ availableLevelList: [5]
6632
+ },
6633
+ {
6634
+ value: "MEB-IO-TUR-2019",
6635
+ text: i18n_default.t("MEB-IO-TUR-2019"),
6636
+ type: "TURKISH",
6637
+ availableLevelList: [4, 6, 7, 8]
6638
+ },
6639
+ {
6640
+ value: "MEB-IO-HAY-2018",
6641
+ text: i18n_default.t("MEB-IO-HAY-2018"),
6642
+ type: "LIFE_STUDIES",
6643
+ availableLevelList: [3]
6644
+ },
6645
+ {
6646
+ value: "MEB-IO-TRAF-2018",
6647
+ text: i18n_default.t("MEB-IO-TRAF-2018"),
6648
+ type: "TRAFFIC_SAFETY",
6649
+ availableLevelList: [4]
6650
+ },
6651
+ {
6652
+ value: "MEB-IO-FEN-2024",
6653
+ text: i18n_default.t("MEB-IO-FEN-2024"),
6654
+ type: "SCIENCE",
6655
+ availableLevelList: [5]
6656
+ },
6657
+ {
6658
+ value: "MEB-IO-SCI-2018",
6659
+ text: i18n_default.t("MEB-IO-SCI-2018"),
6660
+ type: "SCIENCE",
6661
+ availableLevelList: [4, 6, 7, 8]
6662
+ },
6663
+ {
6664
+ value: "MEB-IO-SOS-2024",
6665
+ text: i18n_default.t("MEB-IO-SOS-2024"),
6666
+ type: "SOCIAL_STUDIES",
6667
+ availableLevelList: [5]
6668
+ },
6669
+ {
6670
+ value: "MEB-IO-SOS-2018",
6671
+ text: i18n_default.t("MEB-IO-SOS-2018"),
6672
+ type: "SOCIAL_STUDIES",
6673
+ availableLevelList: [4, 6, 7]
6674
+ },
6675
+ {
6676
+ value: "MEB-IO-ITA-2018",
6677
+ text: i18n_default.t("MEB-IO-ITA-2018"),
6678
+ type: "SOCIAL_STUDIES",
6679
+ availableLevelList: [8]
6680
+ },
6681
+ {
6682
+ value: "MEB-IO-ENG-2018",
6683
+ text: i18n_default.t("MEB-IO-ENG-2018"),
6684
+ type: "ENGLISH",
6685
+ availableLevelList: [4, 5, 6, 7, 8]
6686
+ },
6687
+ {
6688
+ value: "MEB-AL-MAT-2024",
6689
+ text: i18n_default.t("MEB-AL-MAT-2024"),
6690
+ type: "MATHEMATICS",
6691
+ availableLevelList: [9]
6692
+ },
6693
+ {
6694
+ value: "MEB-AL-MAT-2018",
6695
+ text: i18n_default.t("MEB-AL-MAT-2018"),
6696
+ type: "MATHEMATICS",
6697
+ availableLevelList: [10, 11, 12]
6698
+ },
6699
+ {
6700
+ value: "MEB-AL-F\u0130Z-2024",
6701
+ text: i18n_default.t("MEB-AL-F\u0130Z-2024"),
6702
+ type: "PHYSICS",
6703
+ availableLevelList: [9]
6704
+ },
6705
+ {
6706
+ value: "MEB-AL-FIZ-2018",
6707
+ text: i18n_default.t("MEB-AL-FIZ-2018"),
6708
+ type: "PHYSICS",
6709
+ availableLevelList: [10, 11, 12]
6710
+ },
6711
+ {
6712
+ value: "MEB-AL-B\u0130Y-2024",
6713
+ text: i18n_default.t("MEB-AL-B\u0130Y-2024"),
6714
+ type: "BIOLOGY",
6715
+ availableLevelList: [9]
6716
+ },
6717
+ {
6718
+ value: "MEB-AL-BIO-2018",
6719
+ text: i18n_default.t("MEB-AL-BIO-2018"),
6720
+ type: "BIOLOGY",
6721
+ availableLevelList: [10, 11, 12]
6722
+ },
6723
+ {
6724
+ value: "MEB-AL-K\u0130M-2024",
6725
+ text: i18n_default.t("MEB-AL-K\u0130M-2024"),
6726
+ type: "CHEMISTRY",
6727
+ availableLevelList: [9]
6728
+ },
6729
+ {
6730
+ value: "MEB-AL-KIM-2018",
6731
+ text: i18n_default.t("MEB-AL-KIM-2018"),
6732
+ type: "CHEMISTRY",
6733
+ availableLevelList: [10, 11, 12]
6734
+ },
6735
+ {
6736
+ value: "MEB-AL-TAR-2024",
6737
+ text: i18n_default.t("MEB-AL-TAR-2024"),
6738
+ type: "HISTORY",
6739
+ availableLevelList: [9]
6740
+ },
6741
+ {
6742
+ value: "MEB-AL-TAR-2018",
6743
+ text: i18n_default.t("MEB-AL-TAR-2018"),
6744
+ type: "HISTORY",
6745
+ availableLevelList: [10, 11]
6746
+ },
6747
+ {
6748
+ value: "MEB-AL-ITA-2018",
6749
+ text: i18n_default.t("MEB-AL-ITA-2018"),
6750
+ type: "HISTORY",
6751
+ availableLevelList: [12]
6752
+ },
6753
+ {
6754
+ value: "MEB-AL-CO\u011E-2024",
6755
+ text: i18n_default.t("MEB-AL-CO\u011E-2024"),
6756
+ type: "GEOGRAPHY",
6757
+ availableLevelList: [9]
6758
+ },
6759
+ {
6760
+ value: "MEB-AL-CO\u011E-2018",
6761
+ text: i18n_default.t("MEB-AL-CO\u011E-2018"),
6762
+ type: "GEOGRAPHY",
6763
+ availableLevelList: [10, 11, 12]
6764
+ },
6765
+ {
6766
+ value: "MEB-IO-DKAB-2018",
6767
+ text: i18n_default.t("MEB-IO-DKAB-2018"),
6768
+ type: "CULTURE_AND_RELIGION_KNOWLEDGE",
6769
+ availableLevelList: [4, 5, 6, 7, 8]
6770
+ },
6771
+ {
6772
+ value: "MEB-AL-DKAB-2018",
6773
+ text: i18n_default.t("MEB-AL-DKAB-2018"),
6774
+ type: "CULTURE_AND_RELIGION_KNOWLEDGE",
6775
+ availableLevelList: [9, 10, 11, 12]
6776
+ },
6777
+ {
6778
+ value: "MEB-AL-FEL-2018",
6779
+ text: i18n_default.t("MEB-AL-FEL-2018"),
6780
+ type: "PHILOSOPHY",
6781
+ availableLevelList: [10, 11]
6782
+ },
6783
+ {
6784
+ value: "MEB-AL-TDE-2024",
6785
+ text: i18n_default.t("MEB-AL-TDE-2024"),
6786
+ type: "LITERATURE",
6787
+ availableLevelList: [9]
6788
+ },
6789
+ {
6790
+ value: "MEB-AL-LIT-2018",
6791
+ text: i18n_default.t("MEB-AL-LIT-2018"),
6792
+ type: "LITERATURE",
6793
+ availableLevelList: [10, 11, 12]
6794
+ },
6795
+ // {
6796
+ // value: "CEFR-STANDARDS-A1",
6797
+ // text: i18n.t("CEFR-STANDARDS-A1"),
6798
+ // type: "ENGLISH",
6799
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6800
+ // },
6801
+ // {
6802
+ // value: "CEFR-STANDARDS-A2",
6803
+ // text: i18n.t("CEFR-STANDARDS-A2"),
6804
+ // type: "ENGLISH",
6805
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6806
+ // },
6807
+ // {
6808
+ // value: "CEFR-STANDARDS-B1",
6809
+ // text: i18n.t("CEFR-STANDARDS-B1"),
6810
+ // type: "ENGLISH",
6811
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6812
+ // },
6813
+ // {
6814
+ // value: "CEFR-STANDARDS-B2",
6815
+ // text: i18n.t("CEFR-STANDARDS-B2"),
6816
+ // type: "ENGLISH",
6817
+ // availableLevelList: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
6818
+ // },
6819
+ {
6820
+ value: "GENERAL-CULTURE",
6821
+ text: i18n_default.t("GENERAL-CULTURE"),
6822
+ type: "GENERAL_CULTURE",
6823
+ availableLevelList: [8, 12]
6824
+ },
6825
+ {
6826
+ value: "SPE-TYT-TUR-2024",
6827
+ text: i18n_default.t("SPE-TYT-TUR-2024"),
6828
+ type: "TURKISH",
6829
+ availableLevelList: [12]
6830
+ },
6831
+ {
6832
+ value: "SPE-LGS-TUR-2024",
6833
+ text: i18n_default.t("SPE-LGS-TUR-2024"),
6834
+ type: "TURKISH",
6835
+ availableLevelList: [8]
6836
+ }
6837
+ ];
6838
+ };
6839
+ var filterCategoryVersionCodeOptionList = (categoryVersionCodeOptionList, coterieType, level) => {
6840
+ if (coterieType && coterieType === "DEFAULT_OPTION") return [];
6841
+ if (level && level === "DEFAULT_OPTION") return [];
6842
+ let currentCategoryVersionCodeOptionList = categoryVersionCodeOptionList;
6843
+ if (coterieType !== "MANAGEMENT") {
6844
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6845
+ (categoryVersionCode) => categoryVersionCode.type === coterieType
6846
+ );
6847
+ }
6848
+ if (level) {
6849
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6850
+ (categoryVersionCode) => categoryVersionCode.availableLevelList.includes(level)
6851
+ );
6852
+ }
6853
+ return currentCategoryVersionCodeOptionList;
6854
+ };
6855
+ var filterCategoryVersionCodeOptionListByGradeDTO = (categoryVersionCodeOptionList, coterieType, gradeDTO) => {
6856
+ if (coterieType && coterieType === "DEFAULT_OPTION") return [];
6857
+ let currentCategoryVersionCodeOptionList = categoryVersionCodeOptionList;
6858
+ if (coterieType !== "MANAGEMENT") {
6859
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6860
+ (categoryVersionCode) => categoryVersionCode.type === coterieType
6861
+ );
6862
+ }
6863
+ if (gradeDTO) {
6864
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6865
+ (categoryVersionCodeOption) => categoryVersionCodeOption.availableLevelList.includes(gradeDTO.level)
6866
+ );
6867
+ }
6868
+ return currentCategoryVersionCodeOptionList;
6869
+ };
6870
+ var filterCategoryVersionCodeOptionListByInstitutionDTO = (categoryVersionCodeOptionList, coterieType, institutionDTO) => {
6871
+ if (coterieType && coterieType === "DEFAULT_OPTION") return [];
6872
+ let currentCategoryVersionCodeOptionList = categoryVersionCodeOptionList;
6873
+ if (coterieType !== "MANAGEMENT") {
6874
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6875
+ (categoryVersionCodeOption) => categoryVersionCodeOption.type === coterieType
6876
+ );
6877
+ }
6878
+ if (institutionDTO) {
6879
+ const gradeLevelList = filterGradeLevelOptionList(institutionDTO, null).map(
6880
+ (option) => option.value
6881
+ );
6882
+ currentCategoryVersionCodeOptionList = currentCategoryVersionCodeOptionList.filter(
6883
+ (categoryVersionCodeOption) => {
6884
+ return gradeLevelList.find(
6885
+ (gradeLevel) => categoryVersionCodeOption.availableLevelList.includes(gradeLevel)
6886
+ ) !== void 0;
6887
+ }
6888
+ );
6889
+ }
6890
+ return currentCategoryVersionCodeOptionList;
6891
+ };
6892
+
6893
+ // src/utilization/DateUtilization.ts
6894
+ var ONE_HOUR = 36e5;
6895
+ var ONE_DAY = 864e5;
6896
+ var ONE_WEEK = 6048e5;
6897
+ var ONE_MONTH = 24192e5;
6898
+ var THREE_MONTHS = 72576e5;
6899
+ var retrieveMonthNameByIndex = (index) => {
6900
+ if (index === 0) {
6901
+ return i18n_default.t("january");
6902
+ } else if (index === 1) {
6903
+ return i18n_default.t("february");
6904
+ } else if (index === 2) {
6905
+ return i18n_default.t("march");
6906
+ } else if (index === 3) {
6907
+ return i18n_default.t("april");
6908
+ } else if (index === 4) {
6909
+ return i18n_default.t("may");
6910
+ } else if (index === 5) {
6911
+ return i18n_default.t("june");
6912
+ } else if (index === 6) {
6913
+ return i18n_default.t("july");
6914
+ } else if (index === 7) {
6915
+ return i18n_default.t("august");
6916
+ } else if (index === 8) {
6917
+ return i18n_default.t("september");
6918
+ } else if (index === 9) {
6919
+ return i18n_default.t("october");
6920
+ } else if (index === 10) {
6921
+ return i18n_default.t("november");
6922
+ } else if (index === 11) {
6923
+ return i18n_default.t("december");
6924
+ }
6925
+ };
6926
+ var retrieveDateIntervalOptionList = () => {
6927
+ return [
6928
+ {
6929
+ value: "LAST_DAY",
6930
+ text: i18n_default.t("last_day")
6931
+ },
6932
+ {
6933
+ value: "LAST_WEEK",
6934
+ text: i18n_default.t("last_week")
6935
+ },
6936
+ {
6937
+ value: "LAST_MONTH",
6938
+ text: i18n_default.t("last_month")
6939
+ },
6940
+ {
6941
+ value: "LAST_THREE_MONTHS",
6942
+ text: i18n_default.t("last_three_months")
6943
+ }
6944
+ ];
6945
+ };
6946
+ var constructWeekName = (beginDate, endDate) => {
6947
+ let currentEndDate;
6948
+ if (endDate) {
6949
+ currentEndDate = endDate;
6950
+ } else {
6951
+ currentEndDate = new Date(beginDate);
6952
+ currentEndDate.setDate(beginDate.getDate() + 4);
6953
+ }
6954
+ if (beginDate.getFullYear() !== currentEndDate.getFullYear()) {
6955
+ return `${beginDate.getDate()} ${retrieveMonthNameByIndex(
6956
+ beginDate.getMonth()
6957
+ )} ${beginDate.getFullYear()} - ${currentEndDate.getDate()} ${retrieveMonthNameByIndex(
6958
+ currentEndDate.getMonth()
6959
+ )} ${currentEndDate.getFullYear()}`;
6960
+ } else {
6961
+ if (beginDate.getMonth() !== currentEndDate.getMonth()) {
6962
+ return `${beginDate.getDate()} ${retrieveMonthNameByIndex(
6963
+ beginDate.getMonth()
6964
+ )} - ${currentEndDate.getDate()} ${retrieveMonthNameByIndex(
6965
+ currentEndDate.getMonth()
6966
+ )} ${currentEndDate.getFullYear()}`;
6967
+ } else {
6968
+ return `${beginDate.getDate()} - ${currentEndDate.getDate()} ${retrieveMonthNameByIndex(
6969
+ currentEndDate.getMonth()
6970
+ )} ${currentEndDate.getFullYear()}`;
6971
+ }
6972
+ }
6973
+ };
6974
+
6975
+ // src/utilization/FunctionUtilization.ts
6976
+ var calculateLevenshteinDistance = (s, t) => {
6977
+ if (!s.length) return t.length;
6978
+ if (!t.length) return s.length;
6979
+ const arr = [];
6980
+ for (let i = 0; i <= t.length; i++) {
6981
+ arr[i] = [i];
6982
+ for (let j = 1; j <= s.length; j++) {
6983
+ arr[i][j] = i === 0 ? j : Math.min(
6984
+ arr[i - 1][j] + 1,
6985
+ arr[i][j - 1] + 1,
6986
+ arr[i - 1][j - 1] + (s[j - 1] === t[i - 1] ? 0 : 1)
6987
+ );
6988
+ }
6989
+ }
6990
+ return arr[t.length][s.length];
6991
+ };
6992
+ var convertTurkishCharactersToEnglish = (text) => {
6993
+ return text.replaceAll("\u011E", "g").replaceAll("\xDC", "u").replaceAll("\u015E", "s").replaceAll("I", "i").replaceAll("\u0130", "i").replaceAll("\xD6", "o").replaceAll("\xC7", "c").replaceAll("\u011F", "g").replaceAll("\xFC", "u").replaceAll("\u015F", "s").replaceAll("\u0131", "i").replaceAll("\xF6", "o").replaceAll("\xE7", "c");
6994
+ };
6995
+ function convertToBase64(arrayBuffer) {
6996
+ return new Promise((resolve, reject) => {
6997
+ const blob = new Blob([arrayBuffer], { type: "image/png" });
6998
+ const reader = new FileReader();
6999
+ reader.onloadend = () => {
7000
+ const base64data = typeof reader.result === "string" ? reader.result.split(",")[1] : null;
7001
+ resolve(base64data);
7002
+ };
7003
+ reader.onerror = reject;
7004
+ reader.readAsDataURL(blob);
7005
+ });
7006
+ }
7007
+
7008
+ // src/utilization/GamificationUtilization.ts
7009
+ var retrieveSourceTypeOptionList = (coterieOnly) => {
7010
+ const currentSourceTypeOptionList = [
7011
+ {
7012
+ value: "CATCHTIVITY",
7013
+ text: i18n_default.t("CATCHTIVITY")
7014
+ },
7015
+ {
7016
+ value: "CATCHXAM",
7017
+ text: i18n_default.t("CATCHXAM")
7018
+ },
7019
+ // {
7020
+ // value: "STANDARD_EXAM",
7021
+ // text: i18n.t("STANDARD_EXAM"),
7022
+ // },
7023
+ {
7024
+ value: "ETUDE",
7025
+ text: i18n_default.t("ETUDE")
7026
+ },
7027
+ {
7028
+ value: "CONTEST",
7029
+ text: i18n_default.t("CONTEST")
7030
+ },
7031
+ {
7032
+ value: "ACTIVITY",
7033
+ text: i18n_default.t("ACTIVITY")
7034
+ }
7035
+ ];
7036
+ if (!coterieOnly) {
7037
+ currentSourceTypeOptionList.push({
7038
+ value: "LOGIN",
7039
+ text: i18n_default.t("LOGIN")
7040
+ });
7041
+ }
7042
+ return currentSourceTypeOptionList;
7043
+ };
7044
+ var retrieveBadgeTypeOptionList = (isActivity) => {
7045
+ const currentBadgeTypeOptionList = [
7046
+ {
7047
+ value: "COUNT",
7048
+ text: i18n_default.t("COUNT")
7049
+ }
7050
+ ];
7051
+ if (isActivity) {
7052
+ currentBadgeTypeOptionList.push({
7053
+ value: "CORRECT",
7054
+ text: i18n_default.t("CORRECT")
7055
+ });
7056
+ currentBadgeTypeOptionList.push({
7057
+ value: "REVIEW",
7058
+ text: i18n_default.t("REVIEW")
7059
+ });
7060
+ currentBadgeTypeOptionList.push({
7061
+ value: "TIME_SPENT",
7062
+ text: i18n_default.t("TIME_SPENT")
7063
+ });
7064
+ }
7065
+ return currentBadgeTypeOptionList;
7066
+ };
7067
+ var retrieveOtherBadgeDTOList = () => {
7068
+ const badgeList = [];
7069
+ const sourceTypeOptionList = retrieveSourceTypeOptionList(false);
7070
+ const filteredSourceTypeOptionList = sourceTypeOptionList.filter(
7071
+ (sourceTypeOption) => sourceTypeOption.value === "LOGIN"
7072
+ );
7073
+ for (let i = 1; i <= 5; i++) {
7074
+ for (const sourceTypeOption of filteredSourceTypeOptionList) {
7075
+ const badgeTypeOptionList = retrieveBadgeTypeOptionList(
7076
+ sourceTypeOption.value === "ACTIVITY"
7077
+ );
7078
+ for (const badgeTypeOption of badgeTypeOptionList) {
7079
+ badgeList.push({
7080
+ badgeDTO: {
7081
+ coterieType: "MANAGEMENT",
7082
+ sourceType: sourceTypeOption.value,
7083
+ badgeType: badgeTypeOption.value
7084
+ },
7085
+ level: i
7086
+ });
7087
+ }
7088
+ }
7089
+ }
7090
+ return badgeList;
7091
+ };
7092
+ var retrieveAllEarnedBadgeDTOListByCoterieTypeList = (coterieTypeList) => {
7093
+ const badgeList = [];
7094
+ for (const coterieType of coterieTypeList) {
7095
+ badgeList.push(...retrieveAllEarnedBadgeDTOListByCoterieType(coterieType));
7096
+ }
7097
+ return badgeList;
7098
+ };
7099
+ var retrieveAllEarnedBadgeDTOListByCoterieType = (coterieType) => {
7100
+ const sourceTypeOptionList = retrieveSourceTypeOptionList(true);
7101
+ const badgeList = [];
7102
+ for (let i = 1; i <= 5; i++) {
7103
+ for (const sourceTypeOption of sourceTypeOptionList) {
7104
+ const badgeTypeOptionList = retrieveBadgeTypeOptionList(
7105
+ sourceTypeOption.value === "ACTIVITY"
7106
+ );
7107
+ for (const badgeTypeOption of badgeTypeOptionList) {
7108
+ badgeList.push({
7109
+ badgeDTO: {
7110
+ coterieType,
7111
+ sourceType: sourceTypeOption.value,
7112
+ badgeType: badgeTypeOption.value
7113
+ },
7114
+ level: i
7115
+ });
7116
+ }
7117
+ }
7118
+ }
7119
+ return badgeList.sort((a, b) => {
7120
+ if (a.badgeDTO.sourceType !== b.badgeDTO.sourceType) {
7121
+ return a.badgeDTO.sourceType.localeCompare(b.badgeDTO.sourceType);
7122
+ }
7123
+ return a.badgeDTO.badgeType.localeCompare(b.badgeDTO.badgeType);
7124
+ });
7125
+ };
7126
+ var retrieveBadgeRuleListByParams = (coterieType, sourceType, badgeType) => {
7127
+ if (coterieType === "MANAGEMENT") {
7128
+ if (sourceType === "ACTIVITY") {
7129
+ if (badgeType === "COUNT") {
7130
+ return [
7131
+ {
7132
+ level: 1,
7133
+ value: 50
7134
+ },
7135
+ {
7136
+ level: 2,
7137
+ value: 100
7138
+ },
7139
+ {
7140
+ level: 3,
7141
+ value: 500
7142
+ },
7143
+ {
7144
+ level: 4,
7145
+ value: 1e3
7146
+ },
7147
+ {
7148
+ level: 5,
7149
+ value: 5e3
7150
+ }
7151
+ ];
7152
+ }
7153
+ } else if (sourceType === "LOGIN") {
7154
+ return [
7155
+ {
7156
+ level: 1,
7157
+ value: 3
7158
+ },
7159
+ {
7160
+ level: 2,
7161
+ value: 7
7162
+ },
7163
+ {
7164
+ level: 3,
7165
+ value: 15
7166
+ },
7167
+ {
7168
+ level: 4,
7169
+ value: 30
7170
+ },
7171
+ {
7172
+ level: 5,
7173
+ value: 90
7174
+ }
7175
+ ];
7176
+ } else {
7177
+ if (badgeType === "COUNT") {
7178
+ return [
7179
+ {
7180
+ level: 1,
7181
+ value: 5
7182
+ },
7183
+ {
7184
+ level: 2,
7185
+ value: 10
7186
+ },
7187
+ {
7188
+ level: 3,
7189
+ value: 50
7190
+ },
7191
+ {
7192
+ level: 4,
7193
+ value: 100
7194
+ },
7195
+ {
7196
+ level: 5,
7197
+ value: 500
7198
+ }
7199
+ ];
7200
+ } else {
7201
+ return [
7202
+ {
7203
+ level: 1,
7204
+ value: 25
7205
+ },
7206
+ {
7207
+ level: 2,
7208
+ value: 50
7209
+ },
7210
+ {
7211
+ level: 3,
7212
+ value: 250
7213
+ },
7214
+ {
7215
+ level: 4,
7216
+ value: 500
7217
+ },
7218
+ {
7219
+ level: 5,
7220
+ value: 1e3
7221
+ }
7222
+ ];
7223
+ }
7224
+ }
7225
+ } else {
7226
+ if (sourceType === "ACTIVITY") {
7227
+ if (badgeType === "COUNT") {
7228
+ return [
7229
+ {
7230
+ level: 1,
7231
+ value: 10
7232
+ },
7233
+ {
7234
+ level: 2,
7235
+ value: 50
7236
+ },
7237
+ {
7238
+ level: 3,
7239
+ value: 100
7240
+ },
7241
+ {
7242
+ level: 4,
7243
+ value: 500
7244
+ },
7245
+ {
7246
+ level: 5,
7247
+ value: 1e3
7248
+ }
7249
+ ];
7250
+ } else {
7251
+ return [
7252
+ {
7253
+ level: 1,
7254
+ value: 5
7255
+ },
7256
+ {
7257
+ level: 2,
7258
+ value: 25
7259
+ },
7260
+ {
7261
+ level: 3,
7262
+ value: 50
7263
+ },
7264
+ {
7265
+ level: 4,
7266
+ value: 250
7267
+ },
7268
+ {
7269
+ level: 5,
7270
+ value: 500
7271
+ }
7272
+ ];
7273
+ }
7274
+ } else if (sourceType === "LOGIN") {
7275
+ return [];
7276
+ } else {
7277
+ if (badgeType === "COUNT") {
7278
+ return [
7279
+ {
7280
+ level: 1,
7281
+ value: 1
7282
+ },
7283
+ {
7284
+ level: 2,
7285
+ value: 5
7286
+ },
7287
+ {
7288
+ level: 3,
7289
+ value: 25
7290
+ },
7291
+ {
7292
+ level: 4,
7293
+ value: 50
7294
+ },
7295
+ {
7296
+ level: 5,
7297
+ value: 100
7298
+ }
7299
+ ];
7300
+ }
7301
+ }
7302
+ }
7303
+ return [];
7304
+ };
7305
+ var retrieveBadgeRuleTextByParams = (coterieType, sourceType, badgeType, level) => {
7306
+ const badgeRuleList = retrieveBadgeRuleListByParams(
7307
+ coterieType,
7308
+ sourceType,
7309
+ badgeType
7310
+ );
7311
+ const foundBadgeRule = badgeRuleList[level - 1];
7312
+ if (coterieType === "MANAGEMENT") {
7313
+ if (sourceType === "ACTIVITY") {
7314
+ if (badgeType === "COUNT") {
7315
+ if (foundBadgeRule) {
7316
+ return `${i18n_default.t("total_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_count_text_2")}`;
7317
+ } else {
7318
+ return i18n_default.t("none_activity_count_text");
7319
+ }
7320
+ } else if (badgeType === "CORRECT") {
7321
+ if (foundBadgeRule) {
7322
+ return `${i18n_default.t("total_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_correct_text_2")}`;
7323
+ } else {
7324
+ return i18n_default.t("none_activity_correct_text");
7325
+ }
7326
+ } else if (badgeType === "REVIEW") {
7327
+ if (foundBadgeRule) {
7328
+ return `${i18n_default.t("total_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_review_text_2")}`;
7329
+ } else {
7330
+ return i18n_default.t("none_activity_review_text");
7331
+ }
7332
+ } else if (badgeType === "TIME_SPENT") {
7333
+ if (foundBadgeRule) {
7334
+ return `${i18n_default.t("total_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("total_activity_time_spent_text_2")}`;
7335
+ } else {
7336
+ return i18n_default.t("none_activity_time_spent_text");
7337
+ }
7338
+ }
7339
+ } else if (sourceType === "CATCHTIVITY") {
7340
+ if (badgeType === "COUNT") {
7341
+ if (foundBadgeRule) {
7342
+ return `${i18n_default.t("total_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchtivity_count_text_2")}`;
7343
+ } else {
7344
+ return i18n_default.t("none_catchtivity_count_text");
7345
+ }
7346
+ }
7347
+ } else if (sourceType === "CATCHXAM") {
7348
+ if (badgeType === "COUNT") {
7349
+ if (foundBadgeRule) {
7350
+ return `${i18n_default.t("total_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_catchxam_count_text_2")}`;
7351
+ } else {
7352
+ return i18n_default.t("none_catchxam_count_text");
7353
+ }
7354
+ }
7355
+ } else if (sourceType === "ETUDE") {
7356
+ if (badgeType === "COUNT") {
7357
+ if (foundBadgeRule) {
7358
+ return `${i18n_default.t("total_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_etude_count_text_2")}`;
7359
+ } else {
7360
+ return i18n_default.t("none_etude_count_text");
7361
+ }
7362
+ }
7363
+ } else if (sourceType === "CONTEST") {
7364
+ if (badgeType === "COUNT") {
7365
+ if (foundBadgeRule) {
7366
+ return `${i18n_default.t("total_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_contest_count_text_2")}`;
7367
+ } else {
7368
+ return i18n_default.t("none_contest_count_text");
7369
+ }
7370
+ }
7371
+ } else if (sourceType === "LOGIN") {
7372
+ if (badgeType === "COUNT") {
7373
+ if (foundBadgeRule) {
7374
+ return `${i18n_default.t("total_login_count_text_1")}${foundBadgeRule.value}${i18n_default.t("total_login_count_text_2")}`;
7375
+ } else {
7376
+ return i18n_default.t("none_login_count_text");
7377
+ }
7378
+ }
7379
+ }
7380
+ } else {
7381
+ if (sourceType === "ACTIVITY") {
7382
+ if (badgeType === "COUNT") {
7383
+ if (foundBadgeRule) {
7384
+ return `${i18n_default.t("coterie_activity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_count_text_2")}`;
7385
+ } else {
7386
+ return i18n_default.t("none_activity_count_text");
7387
+ }
7388
+ } else if (badgeType === "CORRECT") {
7389
+ if (foundBadgeRule) {
7390
+ return `${i18n_default.t("coterie_activity_correct_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_correct_text_2")}`;
7391
+ } else {
7392
+ return i18n_default.t("none_activity_correct_text");
7393
+ }
7394
+ } else if (badgeType === "REVIEW") {
7395
+ if (foundBadgeRule) {
7396
+ return `${i18n_default.t("coterie_activity_review_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_review_text_2")}`;
7397
+ } else {
7398
+ return i18n_default.t("none_activity_review_text");
7399
+ }
7400
+ } else if (badgeType === "TIME_SPENT") {
7401
+ if (foundBadgeRule) {
7402
+ return `${i18n_default.t("coterie_activity_time_spent_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_activity_time_spent_text_2")}`;
7403
+ } else {
7404
+ return i18n_default.t("none_activity_time_spent_text");
7405
+ }
7406
+ }
7407
+ } else if (sourceType === "CATCHTIVITY") {
7408
+ if (badgeType === "COUNT") {
7409
+ if (foundBadgeRule) {
7410
+ return `${i18n_default.t("coterie_catchtivity_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchtivity_count_text_2")}`;
7411
+ } else {
7412
+ return i18n_default.t("none_catchtivity_count_text");
7413
+ }
7414
+ }
7415
+ } else if (sourceType === "CATCHXAM") {
7416
+ if (badgeType === "COUNT") {
7417
+ if (foundBadgeRule) {
7418
+ return `${i18n_default.t("coterie_catchxam_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_catchxam_count_text_2")}`;
7419
+ } else {
7420
+ return i18n_default.t("none_catchxam_count_text");
7421
+ }
7422
+ }
7423
+ } else if (sourceType === "ETUDE") {
7424
+ if (badgeType === "COUNT") {
7425
+ if (foundBadgeRule) {
7426
+ return `${i18n_default.t("coterie_etude_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_etude_count_text_2")}`;
7427
+ } else {
7428
+ return i18n_default.t("none_etude_count_text");
7429
+ }
7430
+ }
7431
+ } else if (sourceType === "CONTEST") {
7432
+ if (badgeType === "COUNT") {
7433
+ if (foundBadgeRule) {
7434
+ return `${i18n_default.t("coterie_contest_count_text_1")}${foundBadgeRule.value}${i18n_default.t("coterie_contest_count_text_2")}`;
7435
+ } else {
7436
+ return i18n_default.t("none_contest_count_text");
7437
+ }
7438
+ }
7439
+ } else if (sourceType === "LOGIN") {
7440
+ }
7441
+ }
7442
+ return null;
7443
+ };
7444
+
7445
+ // src/utilization/IndividualModelUtilization.ts
7446
+ var NUMBER_OF_ACTIVITY_TEMPLATE = 9;
7447
+ var NUMBER_OF_TAXONOMY = 6;
7448
+ var INITIAL_TAXONOMY_VALUE = 1 / NUMBER_OF_TAXONOMY;
7449
+ var INITIAL_TEMPLATE_VALUE = 1 / NUMBER_OF_ACTIVITY_TEMPLATE;
7450
+ var constructBaseVerbalIndvidualModel = (userId) => {
7451
+ return {
7452
+ bloomBloomAnalyze: INITIAL_TAXONOMY_VALUE,
7453
+ bloomBloomApply: INITIAL_TAXONOMY_VALUE,
7454
+ bloomBloomCreate: INITIAL_TAXONOMY_VALUE,
7455
+ bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
7456
+ bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
7457
+ bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
7458
+ dropdown: INITIAL_TEMPLATE_VALUE,
7459
+ coterieField: "VERBAL",
7460
+ fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
7461
+ grouping: INITIAL_TEMPLATE_VALUE,
7462
+ matching: INITIAL_TEMPLATE_VALUE,
7463
+ mcma: INITIAL_TEMPLATE_VALUE,
7464
+ mcsa: INITIAL_TEMPLATE_VALUE,
7465
+ openEnded: INITIAL_TEMPLATE_VALUE,
7466
+ ordering: INITIAL_TEMPLATE_VALUE,
7467
+ trueFalse: INITIAL_TEMPLATE_VALUE,
7468
+ userId
7469
+ };
7470
+ };
7471
+ var constructBaseNumericIndividualModel = (userId) => {
7472
+ return {
7473
+ bloomBloomAnalyze: INITIAL_TAXONOMY_VALUE,
7474
+ bloomBloomApply: INITIAL_TAXONOMY_VALUE,
7475
+ bloomBloomCreate: INITIAL_TAXONOMY_VALUE,
7476
+ bloomBloomEvaluate: INITIAL_TAXONOMY_VALUE,
7477
+ bloomBloomRemember: INITIAL_TAXONOMY_VALUE,
7478
+ bloomBloomUnderstand: INITIAL_TAXONOMY_VALUE,
7479
+ dropdown: INITIAL_TEMPLATE_VALUE,
7480
+ coterieField: "NUMERIC",
7481
+ fillInTheBlanks: INITIAL_TEMPLATE_VALUE,
7482
+ grouping: INITIAL_TEMPLATE_VALUE,
7483
+ matching: INITIAL_TEMPLATE_VALUE,
7484
+ mcma: INITIAL_TEMPLATE_VALUE,
7485
+ mcsa: INITIAL_TEMPLATE_VALUE,
7486
+ openEnded: INITIAL_TEMPLATE_VALUE,
7487
+ ordering: INITIAL_TEMPLATE_VALUE,
7488
+ trueFalse: INITIAL_TEMPLATE_VALUE,
7489
+ userId
7490
+ };
7491
+ };
7492
+
7493
+ // src/utilization/NotificationUtilization.ts
7494
+ var retrieveAnnouncementTypeOptionList = () => {
7495
+ return [
7496
+ {
7497
+ value: "USER",
7498
+ text: i18n_default.t("USER")
7499
+ },
7500
+ {
7501
+ value: "USER_PROFILE",
7502
+ text: i18n_default.t("USER_PROFILE")
7503
+ },
7504
+ {
7505
+ value: "BRAND",
7506
+ text: i18n_default.t("BRAND")
7507
+ },
7508
+ {
7509
+ value: "CAMPUS",
7510
+ text: i18n_default.t("CAMPUS")
7511
+ },
7512
+ {
7513
+ value: "INSTITUTION",
7514
+ text: i18n_default.t("INSTITUTION")
7515
+ },
7516
+ {
7517
+ value: "SEASON",
7518
+ text: i18n_default.t("SEASON")
7519
+ },
7520
+ {
7521
+ value: "GRADE",
7522
+ text: i18n_default.t("GRADE")
7523
+ },
7524
+ {
7525
+ value: "BRANCH",
7526
+ text: i18n_default.t("BRANCH")
7527
+ }
7528
+ ];
7529
+ };
7530
+ var retrieveAnnouncementAudienceOptionList = () => {
7531
+ return [
7532
+ {
7533
+ value: "EVERYONE",
7534
+ text: i18n_default.t("EVERYONE")
7535
+ },
7536
+ {
7537
+ value: "STAFF",
7538
+ text: i18n_default.t("STAFF")
7539
+ },
7540
+ {
7541
+ value: "COTERIE",
7542
+ text: i18n_default.t("COTERIE")
7543
+ },
7544
+ {
7545
+ value: "LEARNER",
7546
+ text: i18n_default.t("LEARNER")
7547
+ }
7548
+ ];
7549
+ };
7550
+
7551
+ // src/utilization/ReportUtilization.ts
7552
+ var retrieveReportTypeOptionList = () => {
7553
+ return [
7554
+ {
7555
+ value: "USER",
7556
+ text: i18n_default.t("USER")
7557
+ },
7558
+ {
7559
+ value: "USER_PROFILE",
7560
+ text: i18n_default.t("USER_PROFILE")
7561
+ },
7562
+ {
7563
+ value: "BRANCH",
7564
+ text: i18n_default.t("BRANCH")
7565
+ },
7566
+ {
7567
+ value: "GRADE",
7568
+ text: i18n_default.t("GRADE")
7569
+ },
7570
+ {
7571
+ value: "SEASON",
7572
+ text: i18n_default.t("SEASON")
7573
+ },
7574
+ {
7575
+ value: "INSTITUTION",
7576
+ text: i18n_default.t("INSTITUTION")
7577
+ },
7578
+ {
7579
+ value: "CAMPUS",
7580
+ text: i18n_default.t("CAMPUS")
7581
+ },
7582
+ {
7583
+ value: "REGION",
7584
+ text: i18n_default.t("REGION")
7585
+ },
7586
+ {
7587
+ value: "BRAND",
7588
+ text: i18n_default.t("BRAND")
7589
+ }
7590
+ ];
7591
+ };
7592
+
7593
+ // src/utilization/StorageUtilization.ts
7594
+ var convertDataURLtoFile = (dataurl, filename) => {
7595
+ var arr = dataurl.split(","), mime = (arr[0].match(/:(.*?);/) || [])[1], bstr = atob(arr[arr.length - 1]), n = bstr.length, u8arr = new Uint8Array(n);
7596
+ while (n--) {
7597
+ u8arr[n] = bstr.charCodeAt(n);
7598
+ }
7599
+ return new File([u8arr], filename, { type: mime });
7600
+ };
7601
+ var retrieveDocumentTypeFromAcceptedFormat = (format) => {
7602
+ if (format === "application/pdf") {
7603
+ return "PDF";
7604
+ } else if (format === "image/jpeg" || format === "image/png" || format === "image/jpg") {
7605
+ return "IMAGE";
7606
+ } else if (format === "audio/mp3") {
7607
+ return "AUDIO";
7608
+ }
7609
+ };
7610
+ var retrieveDocumentTypeFromExtension = (format) => {
7611
+ if (format === "pdf") {
7612
+ return "PDF";
7613
+ } else if (format === "jpeg" || format === "png" || format === "jpg") {
7614
+ return "IMAGE";
7615
+ } else if (format === "mp3") {
7616
+ return "AUDIO";
7617
+ }
7618
+ };
7619
+
7620
+ // src/utilization/TokenUtilization.ts
7621
+ var retrieveTokenUsageTypeOptionList = () => {
7622
+ return [
7623
+ {
7624
+ text: i18n_default.t("AI"),
7625
+ value: "AI"
7626
+ },
7627
+ {
7628
+ text: i18n_default.t("SYSTEM"),
7629
+ value: "SYSTEM"
7630
+ }
7631
+ ];
7632
+ };
7633
+ var retrieveTokenUsageSubTypeOptionList = () => {
7634
+ return [
7635
+ {
7636
+ text: i18n_default.t("ACTIVITY_EVALUATION"),
7637
+ value: "ACTIVITY_EVALUATION"
7638
+ },
7639
+ {
7640
+ text: i18n_default.t("ACTIVITY_TEMPLATE_GENERATION"),
7641
+ value: "ACTIVITY_TEMPLATE_GENERATION"
7642
+ },
7643
+ {
7644
+ text: i18n_default.t("IMAGE_PROCESSING"),
7645
+ value: "IMAGE_PROCESSING"
7646
+ },
7647
+ {
7648
+ text: i18n_default.t("ACTIVITY_SOLUTION"),
7649
+ value: "ACTIVITY_SOLUTION"
7650
+ },
7651
+ {
7652
+ text: i18n_default.t("ACTIVITY_HINT"),
7653
+ value: "ACTIVITY_HINT"
7654
+ }
7655
+ ];
5291
7656
  };
5292
7657
  // Annotate the CommonJS export names for ESM import in node:
5293
7658
  0 && (module.exports = {
7659
+ ActivityTemplateLabel,
5294
7660
  ApproveButton,
5295
7661
  BaseImage,
5296
7662
  BaseLoading,
7663
+ BaseModal,
5297
7664
  BlueVerticalDividerLine,
7665
+ BrandLabel,
5298
7666
  CancelButton,
7667
+ CoterieLabel,
5299
7668
  CreateButton,
5300
7669
  DeleteButton,
5301
7670
  DividerLine,
5302
7671
  DropdownActivityContent,
5303
7672
  FillInTheBlanksActivityContent,
7673
+ GradeLabel,
5304
7674
  GroupingActivityContent,
5305
7675
  InputGroup,
5306
7676
  MCMAActivityContent,
5307
7677
  MCSAActivityContent,
5308
7678
  MatchingActivityContent,
7679
+ ONE_DAY,
7680
+ ONE_HOUR,
7681
+ ONE_MONTH,
7682
+ ONE_WEEK,
5309
7683
  OpenEndedActivityContent,
5310
7684
  OrderingActivityContent,
7685
+ OutcomeLabel,
7686
+ PersonalLabel,
5311
7687
  PrimaryButton,
7688
+ PublishingHouseLabel,
5312
7689
  SecondaryButton,
7690
+ SelectionBox,
7691
+ SelectionCheckbox,
7692
+ SelectionTab,
7693
+ THREE_MONTHS,
5313
7694
  TrueFalseActivityContent,
5314
7695
  VerticalDividerLine,
7696
+ calculateLevenshteinDistance,
5315
7697
  checkActivityAnswerState,
5316
7698
  checkIfAnswerIsEmpty,
5317
7699
  constructActivityAnswerMap,
5318
7700
  constructActivityAnswerStateList,
5319
7701
  constructActivityItemListWithAnswersForAI,
5320
7702
  constructActivityItemListWithSolutionForAI,
7703
+ constructBaseNumericIndividualModel,
7704
+ constructBaseVerbalIndvidualModel,
5321
7705
  constructInputWithSpecialExpressionList,
7706
+ constructUserProfileQueryParams,
7707
+ constructWeekName,
5322
7708
  convertDataURLtoFile,
7709
+ convertToBase64,
7710
+ convertTurkishCharactersToEnglish,
7711
+ filterCategoryVersionCodeOptionList,
7712
+ filterCategoryVersionCodeOptionListByGradeDTO,
7713
+ filterCategoryVersionCodeOptionListByInstitutionDTO,
7714
+ filterCoterieTypeOptionList,
7715
+ filterGradeLevelOptionList,
7716
+ filterUserRoleOptionList,
7717
+ findAISettingsFromCurrentProfile,
5323
7718
  findBestFitActivity,
5324
7719
  getColorByIndex,
5325
7720
  i18n,
5326
7721
  ignoreMathematicalExpression,
5327
7722
  parseBodyMapFromData,
5328
7723
  parseContentMapFromData,
7724
+ parseJwt,
5329
7725
  parseMaterialMapFromData,
5330
7726
  retrieveActivityAnswerFromAnswerList,
5331
7727
  retrieveActivityTemplateDTOOptionList,
7728
+ retrieveAllEarnedBadgeDTOListByCoterieType,
7729
+ retrieveAllEarnedBadgeDTOListByCoterieTypeList,
7730
+ retrieveAnnouncementAudienceOptionList,
7731
+ retrieveAnnouncementTypeOptionList,
7732
+ retrieveBadgeRuleListByParams,
7733
+ retrieveBadgeRuleTextByParams,
7734
+ retrieveBranchDTOByUserProfileOptionList,
7735
+ retrieveBranchDTOOptionList,
7736
+ retrieveBrandDTOByUserProfileOptionList,
7737
+ retrieveBrandDTOOptionList,
7738
+ retrieveCampusDTOByUserProfileOptionList,
7739
+ retrieveCampusDTOOptionList,
7740
+ retrieveCategoryVersionCodeOptionList,
5332
7741
  retrieveClockTimeLeft,
5333
7742
  retrieveColorByScore,
5334
7743
  retrieveContentTypeOptionList,
5335
7744
  retrieveContestTypeOptionList,
5336
7745
  retrieveCoterieTypeFromStandardExamCoterieType,
7746
+ retrieveCoterieTypeOptionList,
7747
+ retrieveCountryCodeOptionList,
7748
+ retrieveCountryNameOptionList,
5337
7749
  retrieveCurrentDefaultDataMap,
7750
+ retrieveDateIntervalOptionList,
7751
+ retrieveDefaultUserRoleOptionList,
5338
7752
  retrieveDistintCoterieTypeFromCatchtivityApplicationDTO,
5339
7753
  retrieveDocumentTypeFromAcceptedFormat,
5340
7754
  retrieveDocumentTypeFromExtension,
@@ -5342,7 +7756,23 @@ var retrieveDocumentTypeFromExtension = (format) => {
5342
7756
  retrieveDurationInSecondsOptionList,
5343
7757
  retrieveDurationTypeOptionList,
5344
7758
  retrieveEachTimeSpentInSeconds,
7759
+ retrieveEnableOptionList,
7760
+ retrieveExternalRegistrationDTOOptionList,
5345
7761
  retrieveFrequencyTypeOptionList,
7762
+ retrieveGenderOptionList,
7763
+ retrieveGradeDTOByUserProfileOptionList,
7764
+ retrieveGradeDTOOptionList,
7765
+ retrieveGradeLevelOptionList,
7766
+ retrieveInstitutionDTOByUserProfileOptionList,
7767
+ retrieveInstitutionDTOOptionList,
7768
+ retrieveInstitutionTypeOptionList,
7769
+ retrieveMonthNameByIndex,
7770
+ retrieveOtherBadgeDTOList,
7771
+ retrievePhoneNumberAreaCodeList,
7772
+ retrieveProvinceNameOptionList,
7773
+ retrieveReportTypeOptionList,
7774
+ retrieveSeasonDTOByUserProfileOptionList,
7775
+ retrieveSeasonDTOOptionList,
5346
7776
  retrieveStandardExamCoterieTypeOptionListByStandardExamType,
5347
7777
  retrieveStandardExamTypeIcon,
5348
7778
  retrieveStandardExamTypeOptionList,
@@ -5350,8 +7780,12 @@ var retrieveDocumentTypeFromExtension = (format) => {
5350
7780
  retrieveTaxonomyGroupName,
5351
7781
  retrieveTaxonomyName,
5352
7782
  retrieveTaxonomyType,
7783
+ retrieveTokenUsageSubTypeOptionList,
7784
+ retrieveTokenUsageTypeOptionList,
5353
7785
  retrieveTotalTimeSpentInMinutes,
5354
7786
  retrieveTotalTimeSpentInSeconds,
7787
+ retrieveUserAuthorityGeneralOptionList,
7788
+ retrieveUserRoleOptionList,
5355
7789
  retrieveValidationRequirementList,
5356
7790
  shuffleArray,
5357
7791
  useScreenSize