catchup-library-web 2.1.6 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -71,7 +71,6 @@ __export(index_exports, {
71
71
  ActivityEmptyContent: () => ActivityEmptyContent_default,
72
72
  ActivityEvaluationRubricContent: () => ActivityEvaluationRubricContent_default,
73
73
  ActivityLabel: () => ActivityLabel_default,
74
- ActivityPreviewByAnswerData: () => ActivityPreviewByAnswerData_default,
75
74
  ActivityPreviewByData: () => ActivityPreviewByData_default,
76
75
  ActivitySolutionContent: () => ActivitySolutionContent_default,
77
76
  ActivityTemplateLabel: () => ActivityTemplateLabel_default,
@@ -6867,6 +6866,7 @@ var TrueFalseActivityMaterialContent = ({
6867
6866
  showCorrectAnswer
6868
6867
  }) => {
6869
6868
  const [shuffleOptionList, setShuffleOptionList] = (0, import_react24.useState)([]);
6869
+ const [displayAnswerMap, setDisplayAnswerMap] = (0, import_react24.useState)(answerMap);
6870
6870
  (0, import_react24.useEffect)(() => {
6871
6871
  const optionList = [];
6872
6872
  optionList.push(...materialMap.trueList);
@@ -6878,9 +6878,12 @@ var TrueFalseActivityMaterialContent = ({
6878
6878
  }
6879
6879
  }, []);
6880
6880
  (0, import_react24.useEffect)(() => {
6881
- if (!showCorrectAnswer) return;
6882
- answerMap = materialMap;
6883
- }, [showCorrectAnswer]);
6881
+ if (showCorrectAnswer) {
6882
+ setDisplayAnswerMap(materialMap);
6883
+ } else {
6884
+ setDisplayAnswerMap(answerMap);
6885
+ }
6886
+ }, [showCorrectAnswer, materialMap, answerMap]);
6884
6887
  const checkAnswerState = (correctAnswer, learnerAnswer) => {
6885
6888
  if (!isPreview) return null;
6886
6889
  if (correctAnswer === learnerAnswer) {
@@ -6933,7 +6936,7 @@ var TrueFalseActivityMaterialContent = ({
6933
6936
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6934
6937
  BaseImage_default,
6935
6938
  {
6936
- src: answerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
6939
+ src: displayAnswerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
6937
6940
  alt: "checkbox",
6938
6941
  size: "small",
6939
6942
  onClick: () => {
@@ -6944,7 +6947,7 @@ var TrueFalseActivityMaterialContent = ({
6944
6947
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
6945
6948
  BaseImage_default,
6946
6949
  {
6947
- src: answerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
6950
+ src: displayAnswerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
6948
6951
  alt: "checkbox",
6949
6952
  size: "small",
6950
6953
  onClick: () => {
@@ -6958,11 +6961,11 @@ var TrueFalseActivityMaterialContent = ({
6958
6961
  index
6959
6962
  );
6960
6963
  }) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_jsx_runtime42.Fragment, { children: [
6961
- answerMap.trueList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
6964
+ displayAnswerMap.trueList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
6962
6965
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { children: item }) }),
6963
6966
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "underline", children: i18n_default.t("true") }) })
6964
6967
  ] })),
6965
- answerMap.falseList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
6968
+ displayAnswerMap.falseList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
6966
6969
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { children: item }) }),
6967
6970
  /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "underline", children: i18n_default.t("false") }) })
6968
6971
  ] }))
@@ -7204,224 +7207,6 @@ var SelectionBox_default = SelectionBox;
7204
7207
 
7205
7208
  // src/components/activities/ActivityPreviewByData.tsx
7206
7209
  var import_jsx_runtime47 = require("react/jsx-runtime");
7207
- var ActivityPreviewByData = ({
7208
- data,
7209
- showType,
7210
- showDescription,
7211
- lockedType,
7212
- typeOptionList,
7213
- showSolution,
7214
- showEvaluationRubric,
7215
- showDifficulty,
7216
- isFullScreen
7217
- }) => {
7218
- const [key, setKey] = (0, import_react25.useState)((/* @__PURE__ */ new Date()).getTime());
7219
- const [selectedType, setSelectedType] = (0, import_react25.useState)(null);
7220
- const [optionList, setOptionList] = (0, import_react25.useState)([]);
7221
- (0, import_react25.useEffect)(() => {
7222
- if (!data) return;
7223
- setKey((/* @__PURE__ */ new Date()).getTime());
7224
- }, [data]);
7225
- (0, import_react25.useEffect)(() => {
7226
- if (!typeOptionList) return;
7227
- if (typeOptionList.length === 0) return;
7228
- let foundTypeOption;
7229
- if (lockedType) {
7230
- foundTypeOption = typeOptionList.find(
7231
- (typeOption) => typeOption.id === lockedType
7232
- );
7233
- }
7234
- if (foundTypeOption) {
7235
- setSelectedType(foundTypeOption.id);
7236
- } else {
7237
- setSelectedType(typeOptionList[0].id);
7238
- }
7239
- }, [typeOptionList, lockedType]);
7240
- (0, import_react25.useEffect)(() => {
7241
- if (!data) return;
7242
- if (!typeOptionList) return;
7243
- if (typeOptionList.length === 0) return;
7244
- let currentTypeOptionList = JSON.parse(JSON.stringify(typeOptionList));
7245
- if (lockedType) {
7246
- currentTypeOptionList = currentTypeOptionList.filter(
7247
- (typeOption) => typeOption.id === lockedType
7248
- );
7249
- }
7250
- if (showDifficulty) {
7251
- setOptionList(
7252
- currentTypeOptionList.map((typeOption) => __spreadProps(__spreadValues({}, typeOption), {
7253
- subText: i18n_default.t(
7254
- retrieveDifficultyByActivityTypeFromData(typeOption.id, data)
7255
- )
7256
- }))
7257
- );
7258
- } else {
7259
- setOptionList(currentTypeOptionList);
7260
- }
7261
- }, [data, lockedType, typeOptionList, showDifficulty]);
7262
- if (!data) return;
7263
- if (!selectedType) return;
7264
- let answerMap = constructAnswerBasedOnData(selectedType, data);
7265
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
7266
- showType ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7267
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "mb-4", children: [
7268
- showDescription ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
7269
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7270
- SelectionBox_default,
7271
- {
7272
- optionList,
7273
- selectedId: selectedType,
7274
- handleSelectOnClick: (itemId) => {
7275
- setSelectedType(itemId);
7276
- }
7277
- }
7278
- )
7279
- ] }),
7280
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DividerLine_default, {})
7281
- ] }) : null,
7282
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7283
- OrderingActivityContent_default,
7284
- {
7285
- answerMap,
7286
- changeAnswer: () => {
7287
- },
7288
- canAnswerQuestion: () => {
7289
- return true;
7290
- },
7291
- data,
7292
- isPreview: true,
7293
- showCorrectAnswer: true
7294
- }
7295
- ) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7296
- DropdownActivityContent_default,
7297
- {
7298
- answerMap,
7299
- changeAnswer: () => {
7300
- },
7301
- canAnswerQuestion: () => {
7302
- return true;
7303
- },
7304
- data,
7305
- isPreview: true,
7306
- showCorrectAnswer: true,
7307
- isFullScreen
7308
- }
7309
- ) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7310
- MCSAActivityContent_default,
7311
- {
7312
- answerMap,
7313
- changeAnswer: () => {
7314
- },
7315
- canAnswerQuestion: () => {
7316
- return true;
7317
- },
7318
- data,
7319
- isPreview: true,
7320
- showCorrectAnswer: true,
7321
- isFullScreen
7322
- }
7323
- ) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7324
- MCMAActivityContent_default,
7325
- {
7326
- answerMap,
7327
- changeAnswer: () => {
7328
- },
7329
- canAnswerQuestion: () => {
7330
- return true;
7331
- },
7332
- data,
7333
- isPreview: true,
7334
- showCorrectAnswer: true,
7335
- isFullScreen
7336
- }
7337
- ) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7338
- MatchingActivityContent_default,
7339
- {
7340
- answerMap,
7341
- changeAnswer: () => {
7342
- },
7343
- canAnswerQuestion: () => {
7344
- return true;
7345
- },
7346
- data,
7347
- isPreview: true,
7348
- showCorrectAnswer: true
7349
- }
7350
- ) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7351
- GroupingActivityContent_default,
7352
- {
7353
- answerMap,
7354
- changeAnswer: () => {
7355
- },
7356
- canAnswerQuestion: () => {
7357
- return true;
7358
- },
7359
- data,
7360
- isPreview: true,
7361
- showCorrectAnswer: true
7362
- }
7363
- ) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7364
- FillInTheBlanksActivityContent_default,
7365
- {
7366
- answerMap,
7367
- changeAnswer: () => {
7368
- },
7369
- canAnswerQuestion: () => {
7370
- return true;
7371
- },
7372
- data,
7373
- isPreview: true,
7374
- showCorrectAnswer: true,
7375
- isFullScreen
7376
- }
7377
- ) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7378
- OpenEndedActivityContent_default,
7379
- {
7380
- answerMap,
7381
- canAnswerQuestion: () => false,
7382
- changeAnswer: () => {
7383
- },
7384
- showMaterialContent: true,
7385
- data,
7386
- isPreview: true,
7387
- isFullScreen
7388
- }
7389
- ) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7390
- TrueFalseActivityContent_default,
7391
- {
7392
- answerMap,
7393
- changeAnswer: () => {
7394
- },
7395
- canAnswerQuestion: () => {
7396
- return true;
7397
- },
7398
- data,
7399
- isPreview: true,
7400
- showCorrectAnswer: true,
7401
- isFullScreen
7402
- }
7403
- ) : null }, selectedType),
7404
- showSolution ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7405
- ActivitySolutionContent_default,
7406
- {
7407
- activityTemplateType: selectedType,
7408
- data
7409
- }
7410
- ) }) : null,
7411
- showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7412
- ActivityEvaluationRubricContent_default,
7413
- {
7414
- activityTemplateType: selectedType,
7415
- data
7416
- }
7417
- ) }) : null
7418
- ] }, key);
7419
- };
7420
- var ActivityPreviewByData_default = ActivityPreviewByData;
7421
-
7422
- // src/components/activities/ActivityPreviewByAnswerData.tsx
7423
- var import_react26 = require("react");
7424
- var import_jsx_runtime48 = require("react/jsx-runtime");
7425
7210
  var ACTIVITY_TEMPLATE_LIST = [
7426
7211
  { type: "ORDERING", materialMap: "orderingMaterialMap" },
7427
7212
  { type: "DROPDOWN", materialMap: "dropdownMaterialMap" },
@@ -7436,7 +7221,7 @@ var ACTIVITY_TEMPLATE_LIST = [
7436
7221
  { type: "OPEN_ENDED", materialMap: "openEndedMaterialMap" },
7437
7222
  { type: "TRUE_FALSE", materialMap: "trueFalseMaterialMap" }
7438
7223
  ];
7439
- var ActivityPreviewByAnswerData = ({
7224
+ var ActivityPreviewByData = ({
7440
7225
  data,
7441
7226
  answerType = null,
7442
7227
  showType = true,
@@ -7448,11 +7233,11 @@ var ActivityPreviewByAnswerData = ({
7448
7233
  isFullScreen = false,
7449
7234
  showCorrectAnswer = false
7450
7235
  }) => {
7451
- const [selectedType, setSelectedType] = (0, import_react26.useState)(null);
7452
- const [optionList, setOptionList] = (0, import_react26.useState)([]);
7453
- const [answerMapMap, setAnswerMapMap] = (0, import_react26.useState)({});
7454
- const [activityTemplateTypeList, setActivityTemplateTypeList] = (0, import_react26.useState)([]);
7455
- (0, import_react26.useEffect)(() => {
7236
+ const [selectedType, setSelectedType] = (0, import_react25.useState)(null);
7237
+ const [optionList, setOptionList] = (0, import_react25.useState)([]);
7238
+ const [answerMapMap, setAnswerMapMap] = (0, import_react25.useState)({});
7239
+ const [activityTemplateTypeList, setActivityTemplateTypeList] = (0, import_react25.useState)([]);
7240
+ (0, import_react25.useEffect)(() => {
7456
7241
  if (!data) return;
7457
7242
  let currentActivityTemplateMapList = JSON.parse(
7458
7243
  JSON.stringify(ACTIVITY_TEMPLATE_LIST)
@@ -7470,7 +7255,7 @@ var ActivityPreviewByAnswerData = ({
7470
7255
  }
7471
7256
  setActivityTemplateTypeList(currentActivityTemplateMapList);
7472
7257
  }, [data, answerType, typeList]);
7473
- (0, import_react26.useEffect)(() => {
7258
+ (0, import_react25.useEffect)(() => {
7474
7259
  if (activityTemplateTypeList.length === 0) return;
7475
7260
  const currentOptionList = [];
7476
7261
  for (const activityTemplateType of activityTemplateTypeList) {
@@ -7490,11 +7275,11 @@ var ActivityPreviewByAnswerData = ({
7490
7275
  }
7491
7276
  setOptionList(currentOptionList);
7492
7277
  }, [activityTemplateTypeList, showDifficulty]);
7493
- (0, import_react26.useEffect)(() => {
7278
+ (0, import_react25.useEffect)(() => {
7494
7279
  if (optionList.length === 0) return;
7495
7280
  setSelectedType(optionList[0].id);
7496
7281
  }, [optionList]);
7497
- (0, import_react26.useEffect)(() => {
7282
+ (0, import_react25.useEffect)(() => {
7498
7283
  if (activityTemplateTypeList.length === 0) return;
7499
7284
  const currentAnswerMapMap = {};
7500
7285
  for (const activityTemplateMap of activityTemplateTypeList) {
@@ -7524,44 +7309,44 @@ var ActivityPreviewByAnswerData = ({
7524
7309
  const isEmpty = answerMapMap[selectedType].isEmpty;
7525
7310
  switch (selectedType) {
7526
7311
  case "ORDERING":
7527
- return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7528
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7529
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(OrderingActivityContent_default, __spreadValues({}, commonProps))
7312
+ return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7313
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7314
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(OrderingActivityContent_default, __spreadValues({}, commonProps))
7530
7315
  ] }) : null;
7531
7316
  case "DROPDOWN":
7532
- return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7533
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7534
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DropdownActivityContent_default, __spreadValues({}, commonProps))
7317
+ return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7318
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7319
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DropdownActivityContent_default, __spreadValues({}, commonProps))
7535
7320
  ] }) : null;
7536
7321
  case "MCSA":
7537
- return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7538
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7539
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MCSAActivityContent_default, __spreadValues({}, commonProps))
7322
+ return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7323
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7324
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MCSAActivityContent_default, __spreadValues({}, commonProps))
7540
7325
  ] }) : null;
7541
7326
  case "MCMA":
7542
- return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7543
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7544
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MCMAActivityContent_default, __spreadValues({}, commonProps))
7327
+ return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7328
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7329
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MCMAActivityContent_default, __spreadValues({}, commonProps))
7545
7330
  ] }) : null;
7546
7331
  case "MATCHING":
7547
- return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7548
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7549
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(MatchingActivityContent_default, __spreadValues({}, commonProps))
7332
+ return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7333
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7334
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(MatchingActivityContent_default, __spreadValues({}, commonProps))
7550
7335
  ] }) : null;
7551
7336
  case "GROUPING":
7552
- return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7553
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7554
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(GroupingActivityContent_default, __spreadValues({}, commonProps))
7337
+ return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7338
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7339
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(GroupingActivityContent_default, __spreadValues({}, commonProps))
7555
7340
  ] }) : null;
7556
7341
  case "FILL_IN_THE_BLANKS":
7557
- return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7558
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7559
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps))
7342
+ return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7343
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7344
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps))
7560
7345
  ] }) : null;
7561
7346
  case "OPEN_ENDED":
7562
- return data.openEndedBodyMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7563
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7564
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7347
+ return data.openEndedBodyMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7348
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7349
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7565
7350
  OpenEndedActivityContent_default,
7566
7351
  __spreadProps(__spreadValues({}, commonProps), {
7567
7352
  showMaterialContent: true
@@ -7569,20 +7354,20 @@ var ActivityPreviewByAnswerData = ({
7569
7354
  )
7570
7355
  ] }) : null;
7571
7356
  case "TRUE_FALSE":
7572
- return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7573
- isEmpty && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ActivityEmptyContent_default, {}),
7574
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(TrueFalseActivityContent_default, __spreadValues({}, commonProps))
7357
+ return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7358
+ isEmpty && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ActivityEmptyContent_default, {}),
7359
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(TrueFalseActivityContent_default, __spreadValues({}, commonProps))
7575
7360
  ] }) : null;
7576
7361
  default:
7577
7362
  return null;
7578
7363
  }
7579
7364
  };
7580
7365
  if (!data) return null;
7581
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { children: [
7582
- showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
7583
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "mb-4", children: [
7584
- showDescription ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
7585
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7366
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
7367
+ showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
7368
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "mb-4", children: [
7369
+ showDescription ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
7370
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7586
7371
  SelectionBox_default,
7587
7372
  {
7588
7373
  optionList,
@@ -7593,17 +7378,17 @@ var ActivityPreviewByAnswerData = ({
7593
7378
  }
7594
7379
  )
7595
7380
  ] }),
7596
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(DividerLine_default, {})
7381
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(DividerLine_default, {})
7597
7382
  ] }) : null,
7598
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex flex-col my-2 w-full p-5", children: RenderSelectedActivityContent() }),
7599
- selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7383
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col my-2 w-full p-5", children: RenderSelectedActivityContent() }),
7384
+ selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7600
7385
  ActivitySolutionContent_default,
7601
7386
  {
7602
7387
  activityTemplateType: selectedType,
7603
7388
  data
7604
7389
  }
7605
7390
  ) }) : null,
7606
- selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
7391
+ selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
7607
7392
  ActivityEvaluationRubricContent_default,
7608
7393
  {
7609
7394
  activityTemplateType: selectedType,
@@ -7612,20 +7397,20 @@ var ActivityPreviewByAnswerData = ({
7612
7397
  ) }) : null
7613
7398
  ] });
7614
7399
  };
7615
- var ActivityPreviewByAnswerData_default = ActivityPreviewByAnswerData;
7400
+ var ActivityPreviewByData_default = ActivityPreviewByData;
7616
7401
 
7617
7402
  // src/components/errors/StatusError.tsx
7618
- var import_jsx_runtime49 = require("react/jsx-runtime");
7403
+ var import_jsx_runtime48 = require("react/jsx-runtime");
7619
7404
  var StatusError = ({
7620
7405
  statusCode,
7621
7406
  statusText,
7622
7407
  textSize
7623
7408
  }) => {
7624
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
7625
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
7626
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "text-center my-5", children: [
7627
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
7628
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
7409
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
7410
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
7411
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "text-center my-5", children: [
7412
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
7413
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
7629
7414
  "(",
7630
7415
  statusCode ? `${statusCode} - ` : null,
7631
7416
  statusText,
@@ -7637,9 +7422,9 @@ var StatusError = ({
7637
7422
  var StatusError_default = StatusError;
7638
7423
 
7639
7424
  // src/components/dividers/BlueVerticalDividerLine.tsx
7640
- var import_jsx_runtime50 = require("react/jsx-runtime");
7425
+ var import_jsx_runtime49 = require("react/jsx-runtime");
7641
7426
  var BlueVerticalDividerLine = ({ opacity }) => {
7642
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7427
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7643
7428
  "div",
7644
7429
  {
7645
7430
  className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
@@ -7649,7 +7434,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
7649
7434
  var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
7650
7435
 
7651
7436
  // src/components/groups/LeftTextRightInputGroup.tsx
7652
- var import_jsx_runtime51 = require("react/jsx-runtime");
7437
+ var import_jsx_runtime50 = require("react/jsx-runtime");
7653
7438
  var LeftTextRightInputGroup = ({
7654
7439
  type,
7655
7440
  title,
@@ -7659,9 +7444,9 @@ var LeftTextRightInputGroup = ({
7659
7444
  disabled,
7660
7445
  errorText
7661
7446
  }) => {
7662
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "w-full flex flex-row mx-2", children: [
7663
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { children: title }) }),
7664
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7447
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "w-full flex flex-row mx-2", children: [
7448
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { children: title }) }),
7449
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
7665
7450
  InputGroup_default,
7666
7451
  {
7667
7452
  type,
@@ -7677,8 +7462,8 @@ var LeftTextRightInputGroup = ({
7677
7462
  var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
7678
7463
 
7679
7464
  // src/components/groups/PageTravelGroup.tsx
7680
- var import_react27 = require("react");
7681
- var import_jsx_runtime52 = require("react/jsx-runtime");
7465
+ var import_react26 = require("react");
7466
+ var import_jsx_runtime51 = require("react/jsx-runtime");
7682
7467
  var PageTravelGroup = ({
7683
7468
  isImageProcessing,
7684
7469
  handleImageProcessing,
@@ -7687,17 +7472,17 @@ var PageTravelGroup = ({
7687
7472
  setPageNumber,
7688
7473
  setImageReady
7689
7474
  }) => {
7690
- const [totalPageNumber, setTotalPageNumber] = (0, import_react27.useState)(0);
7691
- const [newPageNumber, setNewPageNumber] = (0, import_react27.useState)(0);
7692
- (0, import_react27.useEffect)(() => {
7475
+ const [totalPageNumber, setTotalPageNumber] = (0, import_react26.useState)(0);
7476
+ const [newPageNumber, setNewPageNumber] = (0, import_react26.useState)(0);
7477
+ (0, import_react26.useEffect)(() => {
7693
7478
  if (!initialTotalPageNumber) return;
7694
7479
  setTotalPageNumber(initialTotalPageNumber);
7695
7480
  }, [initialTotalPageNumber]);
7696
- (0, import_react27.useEffect)(() => {
7481
+ (0, import_react26.useEffect)(() => {
7697
7482
  setNewPageNumber(pageNumber + 1);
7698
7483
  }, [pageNumber]);
7699
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
7700
- pageNumber === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7484
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
7485
+ pageNumber === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7701
7486
  BaseImage_default,
7702
7487
  {
7703
7488
  size: "small",
@@ -7715,7 +7500,7 @@ var PageTravelGroup = ({
7715
7500
  }
7716
7501
  }
7717
7502
  ) }),
7718
- Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7503
+ Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7719
7504
  "p",
7720
7505
  {
7721
7506
  className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
@@ -7730,7 +7515,7 @@ var PageTravelGroup = ({
7730
7515
  children: index + 1
7731
7516
  }
7732
7517
  ) }, index)),
7733
- totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7518
+ totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7734
7519
  BaseImage_default,
7735
7520
  {
7736
7521
  size: "small",
@@ -7748,7 +7533,7 @@ var PageTravelGroup = ({
7748
7533
  }
7749
7534
  }
7750
7535
  ) }),
7751
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7536
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
7752
7537
  "input",
7753
7538
  {
7754
7539
  className: `w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input`,
@@ -7772,14 +7557,14 @@ var PageTravelGroup = ({
7772
7557
  var PageTravelGroup_default = PageTravelGroup;
7773
7558
 
7774
7559
  // src/components/boxes/SelectionCheckbox.tsx
7775
- var import_jsx_runtime53 = require("react/jsx-runtime");
7560
+ var import_jsx_runtime52 = require("react/jsx-runtime");
7776
7561
  var SelectionCheckbox = ({
7777
7562
  optionList,
7778
7563
  selectedIdList,
7779
7564
  handleSelectOnClick,
7780
7565
  handleRemoveOnClick
7781
7566
  }) => {
7782
- return /* @__PURE__ */ (0, import_jsx_runtime53.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_runtime53.jsx)(
7567
+ return /* @__PURE__ */ (0, import_jsx_runtime52.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_runtime52.jsx)(
7783
7568
  "div",
7784
7569
  {
7785
7570
  className: `${selectedIdList.findIndex(
@@ -7794,14 +7579,14 @@ var SelectionCheckbox = ({
7794
7579
  handleRemoveOnClick(option.id);
7795
7580
  }
7796
7581
  },
7797
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
7582
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
7798
7583
  "div",
7799
7584
  {
7800
7585
  className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
7801
7586
  (selectedId) => selectedId === option.id
7802
7587
  ) > -1 ? "opacity-100" : "opacity-50"}`,
7803
7588
  children: [
7804
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
7589
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
7805
7590
  BaseImage_default,
7806
7591
  {
7807
7592
  src: selectedIdList.findIndex(
@@ -7811,7 +7596,7 @@ var SelectionCheckbox = ({
7811
7596
  size: "small"
7812
7597
  }
7813
7598
  ),
7814
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { children: option.text }) })
7599
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { children: option.text }) })
7815
7600
  ]
7816
7601
  }
7817
7602
  )
@@ -7822,7 +7607,7 @@ var SelectionCheckbox = ({
7822
7607
  var SelectionCheckbox_default = SelectionCheckbox;
7823
7608
 
7824
7609
  // src/components/tabs/SelectionTab.tsx
7825
- var import_jsx_runtime54 = require("react/jsx-runtime");
7610
+ var import_jsx_runtime53 = require("react/jsx-runtime");
7826
7611
  var SelectionTab = ({
7827
7612
  optionList,
7828
7613
  selectedId,
@@ -7832,7 +7617,7 @@ var SelectionTab = ({
7832
7617
  textColor,
7833
7618
  borderColor
7834
7619
  }) => {
7835
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
7620
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
7836
7621
  "div",
7837
7622
  {
7838
7623
  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`,
@@ -7840,8 +7625,8 @@ var SelectionTab = ({
7840
7625
  handleSelectOnClick(option.id);
7841
7626
  },
7842
7627
  children: [
7843
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-lg", children: option.title }),
7844
- option.subTitle ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "text-md", children: option.subTitle }) : null
7628
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-lg", children: option.title }),
7629
+ option.subTitle ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-md", children: option.subTitle }) : null
7845
7630
  ]
7846
7631
  },
7847
7632
  index
@@ -7850,20 +7635,20 @@ var SelectionTab = ({
7850
7635
  var SelectionTab_default = SelectionTab;
7851
7636
 
7852
7637
  // src/components/tabs/SelectionTabFill.tsx
7853
- var import_jsx_runtime55 = require("react/jsx-runtime");
7638
+ var import_jsx_runtime54 = require("react/jsx-runtime");
7854
7639
  var SelectionTabFill = ({
7855
7640
  optionList,
7856
7641
  selectedId,
7857
7642
  handleSelectOnClick
7858
7643
  }) => {
7859
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7644
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7860
7645
  "div",
7861
7646
  {
7862
7647
  className: "cursor-pointer",
7863
7648
  onClick: () => {
7864
7649
  handleSelectOnClick(option.id);
7865
7650
  },
7866
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
7651
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
7867
7652
  "p",
7868
7653
  {
7869
7654
  className: `${selectedId === option.id ? "text-catchup-white bg-catchup-blue-500" : "text-catchup-gray-300"} transition-all duration-300 rounded-catchup-medium px-2 py-1`,
@@ -7877,34 +7662,34 @@ var SelectionTabFill = ({
7877
7662
  var SelectionTabFill_default = SelectionTabFill;
7878
7663
 
7879
7664
  // src/components/labels/ActivityTemplateLabel.tsx
7880
- var import_jsx_runtime56 = require("react/jsx-runtime");
7665
+ var import_jsx_runtime55 = require("react/jsx-runtime");
7881
7666
  var ActivityTemplateLabel = ({
7882
7667
  title,
7883
7668
  icon,
7884
7669
  font
7885
7670
  }) => {
7886
- return /* @__PURE__ */ (0, import_jsx_runtime56.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7887
- icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
7888
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: font ? font : "text-sm", children: title })
7671
+ return /* @__PURE__ */ (0, import_jsx_runtime55.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7672
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
7673
+ /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: font ? font : "text-sm", children: title })
7889
7674
  ] }) });
7890
7675
  };
7891
7676
  var ActivityTemplateLabel_default = ActivityTemplateLabel;
7892
7677
 
7893
7678
  // src/components/labels/BrandLabel.tsx
7894
- var import_jsx_runtime57 = require("react/jsx-runtime");
7679
+ var import_jsx_runtime56 = require("react/jsx-runtime");
7895
7680
  var BrandLabel = ({ title, icon, font }) => {
7896
- return /* @__PURE__ */ (0, import_jsx_runtime57.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7897
- icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
7898
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: font ? font : "text-sm", children: title })
7681
+ return /* @__PURE__ */ (0, import_jsx_runtime56.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7682
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
7683
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: font ? font : "text-sm", children: title })
7899
7684
  ] }) });
7900
7685
  };
7901
7686
  var BrandLabel_default = BrandLabel;
7902
7687
 
7903
7688
  // src/components/labels/CategoryLabel.tsx
7904
- var import_jsx_runtime58 = require("react/jsx-runtime");
7689
+ var import_jsx_runtime57 = require("react/jsx-runtime");
7905
7690
  var CategoryLabel = ({ title, icon, font }) => {
7906
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7907
- icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7691
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7692
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7908
7693
  BaseImage_default,
7909
7694
  {
7910
7695
  src: "/icons/category-label.webp",
@@ -7912,40 +7697,40 @@ var CategoryLabel = ({ title, icon, font }) => {
7912
7697
  size: "xsmall"
7913
7698
  }
7914
7699
  ),
7915
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: font ? font : "text-sm", children: title })
7700
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: font ? font : "text-sm", children: title })
7916
7701
  ] }) });
7917
7702
  };
7918
7703
  var CategoryLabel_default = CategoryLabel;
7919
7704
 
7920
7705
  // src/components/labels/CoterieLabel.tsx
7921
- var import_jsx_runtime59 = require("react/jsx-runtime");
7706
+ var import_jsx_runtime58 = require("react/jsx-runtime");
7922
7707
  var CoterieLabel = ({ title, font }) => {
7923
- return /* @__PURE__ */ (0, import_jsx_runtime59.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7708
+ return /* @__PURE__ */ (0, import_jsx_runtime58.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7924
7709
  };
7925
7710
  var CoterieLabel_default = CoterieLabel;
7926
7711
 
7927
7712
  // src/components/labels/GradeLabel.tsx
7928
- var import_jsx_runtime60 = require("react/jsx-runtime");
7713
+ var import_jsx_runtime59 = require("react/jsx-runtime");
7929
7714
  var GradeLabel = ({ title, font }) => {
7930
- return /* @__PURE__ */ (0, import_jsx_runtime60.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7715
+ return /* @__PURE__ */ (0, import_jsx_runtime59.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7931
7716
  };
7932
7717
  var GradeLabel_default = GradeLabel;
7933
7718
 
7934
7719
  // src/components/labels/OutcomeLabel.tsx
7935
- var import_jsx_runtime61 = require("react/jsx-runtime");
7720
+ var import_jsx_runtime60 = require("react/jsx-runtime");
7936
7721
  var OutcomeLabel = ({ title, font }) => {
7937
- return /* @__PURE__ */ (0, import_jsx_runtime61.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7938
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
7939
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title })
7722
+ return /* @__PURE__ */ (0, import_jsx_runtime60.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7723
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
7724
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title })
7940
7725
  ] }) });
7941
7726
  };
7942
7727
  var OutcomeLabel_default = OutcomeLabel;
7943
7728
 
7944
7729
  // src/components/labels/PersonalLabel.tsx
7945
- var import_jsx_runtime62 = require("react/jsx-runtime");
7730
+ var import_jsx_runtime61 = require("react/jsx-runtime");
7946
7731
  var PersonalLabel = ({ title, icon, font }) => {
7947
- return /* @__PURE__ */ (0, import_jsx_runtime62.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7948
- icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7732
+ return /* @__PURE__ */ (0, import_jsx_runtime61.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7733
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7949
7734
  BaseImage_default,
7950
7735
  {
7951
7736
  src: "/icons/personal-label.webp",
@@ -7953,16 +7738,16 @@ var PersonalLabel = ({ title, icon, font }) => {
7953
7738
  size: "xsmall"
7954
7739
  }
7955
7740
  ),
7956
- /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: font ? font : "text-sm", children: title })
7741
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title })
7957
7742
  ] }) });
7958
7743
  };
7959
7744
  var PersonalLabel_default = PersonalLabel;
7960
7745
 
7961
7746
  // src/components/labels/PublishingHouseLabel.tsx
7962
- var import_jsx_runtime63 = require("react/jsx-runtime");
7747
+ var import_jsx_runtime62 = require("react/jsx-runtime");
7963
7748
  var PublishingHouseLabel = ({ title, icon, font }) => {
7964
- return /* @__PURE__ */ (0, import_jsx_runtime63.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7965
- icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
7749
+ return /* @__PURE__ */ (0, import_jsx_runtime62.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7750
+ icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7966
7751
  BaseImage_default,
7967
7752
  {
7968
7753
  src: "/icons/publishing-house-label.webp",
@@ -7970,55 +7755,55 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
7970
7755
  size: "xsmall"
7971
7756
  }
7972
7757
  ),
7973
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: font ? font : "text-sm", children: title })
7758
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: font ? font : "text-sm", children: title })
7974
7759
  ] }) });
7975
7760
  };
7976
7761
  var PublishingHouseLabel_default = PublishingHouseLabel;
7977
7762
 
7978
7763
  // src/components/labels/ActivityLabel.tsx
7979
- var import_jsx_runtime64 = require("react/jsx-runtime");
7764
+ var import_jsx_runtime63 = require("react/jsx-runtime");
7980
7765
  var ActivityLabel = ({ title, font }) => {
7981
- return /* @__PURE__ */ (0, import_jsx_runtime64.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7766
+ return /* @__PURE__ */ (0, import_jsx_runtime63.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 text-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: font ? font : "text-sm", children: title }) });
7982
7767
  };
7983
7768
  var ActivityLabel_default = ActivityLabel;
7984
7769
 
7985
7770
  // src/components/infos/InfoWithText.tsx
7986
- var import_jsx_runtime65 = require("react/jsx-runtime");
7771
+ var import_jsx_runtime64 = require("react/jsx-runtime");
7987
7772
  var InfoWithText = (props) => {
7988
7773
  const { value } = props;
7989
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
7990
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7991
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "", children: value }) })
7774
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
7775
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7776
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "", children: value }) })
7992
7777
  ] });
7993
7778
  };
7994
7779
  var InfoWithText_default = InfoWithText;
7995
7780
 
7996
7781
  // src/components/titles/BaseTitle.tsx
7997
- var import_jsx_runtime66 = require("react/jsx-runtime");
7782
+ var import_jsx_runtime65 = require("react/jsx-runtime");
7998
7783
  var BaseTitle = ({
7999
7784
  title,
8000
7785
  totalItemCount,
8001
7786
  itemName,
8002
7787
  description
8003
7788
  }) => {
8004
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
8005
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("p", { className: "text-2xl font-medium", children: [
7789
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
7790
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "text-2xl font-medium", children: [
8006
7791
  title,
8007
- totalItemCount && itemName ? /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
7792
+ totalItemCount && itemName ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
8008
7793
  totalItemCount,
8009
7794
  " ",
8010
7795
  itemName
8011
7796
  ] }) : null
8012
7797
  ] }),
8013
- description ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "", children: description }) : null
7798
+ description ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: "", children: description }) : null
8014
7799
  ] });
8015
7800
  };
8016
7801
  var BaseTitle_default = BaseTitle;
8017
7802
 
8018
7803
  // src/components/titles/SubTitle.tsx
8019
- var import_jsx_runtime67 = require("react/jsx-runtime");
7804
+ var import_jsx_runtime66 = require("react/jsx-runtime");
8020
7805
  var SubTitle = ({ title }) => {
8021
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
7806
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
8022
7807
  };
8023
7808
  var SubTitle_default = SubTitle;
8024
7809
 
@@ -10740,7 +10525,6 @@ var retrieveActivityMethodologyOptionList = () => {
10740
10525
  ActivityEmptyContent,
10741
10526
  ActivityEvaluationRubricContent,
10742
10527
  ActivityLabel,
10743
- ActivityPreviewByAnswerData,
10744
10528
  ActivityPreviewByData,
10745
10529
  ActivitySolutionContent,
10746
10530
  ActivityTemplateLabel,