catchup-library-web 1.20.34 → 1.20.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5059,71 +5059,9 @@ var FillInTheBlanksActivityContent = ({
5059
5059
  var FillInTheBlanksActivityContent_default = FillInTheBlanksActivityContent;
5060
5060
 
5061
5061
  // src/components/activities/material-contents/GroupingActivityMaterialContent.tsx
5062
- import { useEffect as useEffect10, useRef as useRef6, useState as useState19 } from "react";
5063
- import { useDrop as useDrop2 } from "react-dnd";
5062
+ import { useEffect as useEffect10, useRef as useRef5, useState as useState19 } from "react";
5064
5063
  import { InlineMath as InlineMath5 } from "react-katex";
5065
-
5066
- // src/components/dnds/DraggableItem.tsx
5067
- import { useDrag } from "react-dnd";
5068
- import { jsx as jsx30 } from "react/jsx-runtime";
5069
- var DraggableItem = ({
5070
- item,
5071
- type,
5072
- component,
5073
- moveCardHandler
5074
- }) => {
5075
- const [{ isDragging }, drag] = useDrag({
5076
- type,
5077
- item,
5078
- end: (item2, monitor) => {
5079
- const dropResult = monitor.getDropResult();
5080
- if (dropResult) {
5081
- moveCardHandler();
5082
- }
5083
- },
5084
- collect: (monitor) => ({
5085
- isDragging: monitor.isDragging()
5086
- })
5087
- });
5088
- const opacity = isDragging ? 0.4 : 1;
5089
- return /* @__PURE__ */ jsx30(
5090
- "div",
5091
- {
5092
- className: `${isDragging ? "w-[0px] opacity-0" : "opacity-100"} transition-all duration-500`,
5093
- children: /* @__PURE__ */ jsx30("div", { ref: drag, className: "", style: { opacity }, children: component })
5094
- }
5095
- );
5096
- };
5097
- var DraggableItem_default = DraggableItem;
5098
-
5099
- // src/components/dnds/DroppableItem.tsx
5100
- import { useRef as useRef5 } from "react";
5101
- import { useDrop } from "react-dnd";
5102
- import { jsx as jsx31 } from "react/jsx-runtime";
5103
- var DroppableItem = ({
5104
- item,
5105
- type,
5106
- component,
5107
- dropRef,
5108
- target,
5109
- setTarget
5110
- }) => {
5111
- const ref = useRef5(null);
5112
- const [, drop] = useDrop({
5113
- accept: type,
5114
- hover() {
5115
- if (item.index !== null && target !== item.index) {
5116
- setTarget(item.index);
5117
- }
5118
- }
5119
- });
5120
- dropRef(drop(ref));
5121
- return /* @__PURE__ */ jsx31("div", { className: `w-full transition-all duration-500 h-full`, ref, children: component });
5122
- };
5123
- var DroppableItem_default = DroppableItem;
5124
-
5125
- // src/components/activities/material-contents/GroupingActivityMaterialContent.tsx
5126
- import { Fragment as Fragment3, jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
5064
+ import { Fragment as Fragment3, jsx as jsx30, jsxs as jsxs19 } from "react/jsx-runtime";
5127
5065
  var GroupingActivityMaterialContent = ({
5128
5066
  uniqueValue,
5129
5067
  answer,
@@ -5135,19 +5073,19 @@ var GroupingActivityMaterialContent = ({
5135
5073
  showCorrectAnswer
5136
5074
  }) => {
5137
5075
  const [selectedValue, setSelectedValue] = useState19(null);
5138
- const [selectedTargetKey, setSelectedTargetKey] = useState19(null);
5076
+ const [draggedValue, setDraggedValue] = useState19(null);
5077
+ const [dropTargetKey, setDropTargetKey] = useState19(null);
5078
+ const [draggedElement, setDraggedElement] = useState19(
5079
+ null
5080
+ );
5139
5081
  const [isShuffled, setIsShuffled] = useState19(false);
5140
5082
  const [shuffledMaterialList, setShuffledMaterialList] = useState19([]);
5141
- const [{ isOver, canDrop }, drop] = useDrop2({
5142
- accept: "GROUPING",
5143
- drop: () => {
5144
- },
5145
- collect: (monitor) => ({
5146
- isOver: monitor.isOver(),
5147
- canDrop: monitor.canDrop()
5148
- })
5083
+ const dragElementRef = useRef5(null);
5084
+ const [touchPosition, setTouchPosition] = useState19({
5085
+ x: 0,
5086
+ y: 0
5149
5087
  });
5150
- const ref = useRef6(null);
5088
+ const ref = useRef5(null);
5151
5089
  useEffect10(() => {
5152
5090
  const shuffleArray2 = (array) => {
5153
5091
  if (!isShuffled) {
@@ -5168,13 +5106,13 @@ var GroupingActivityMaterialContent = ({
5168
5106
  }
5169
5107
  });
5170
5108
  setShuffledMaterialList(shuffleArray2(materialList));
5171
- }, []);
5109
+ }, [materialMap, isShuffled]);
5172
5110
  useEffect10(() => {
5173
5111
  if (!showCorrectAnswer) return;
5174
5112
  answer.data.find(
5175
5113
  (answerData) => answerData.type === "GROUPING"
5176
5114
  ).answerMap = materialMap;
5177
- }, [showCorrectAnswer]);
5115
+ }, [showCorrectAnswer, answer, materialMap]);
5178
5116
  const retrieveAnswerMap = () => {
5179
5117
  const foundIndex = answer.data.findIndex(
5180
5118
  (answerData) => answerData.type === "GROUPING"
@@ -5205,56 +5143,120 @@ var GroupingActivityMaterialContent = ({
5205
5143
  }
5206
5144
  return "INCORRECT";
5207
5145
  };
5208
- const handleGroupingActivityItemOnChange = (selectedTargetKey2, selectedValue2) => {
5209
- if (checkCanAnswerQuestion()) {
5210
- onChange(answer, selectedTargetKey2, selectedValue2, null);
5146
+ const handleMouseDown = (e, materialValue) => {
5147
+ if (!checkCanAnswerQuestion()) return;
5148
+ e.preventDefault();
5149
+ setDraggedValue(materialValue);
5150
+ setSelectedValue(null);
5151
+ };
5152
+ const handleMouseUp = () => {
5153
+ if (dropTargetKey !== null && draggedValue !== null) {
5154
+ onChange(answer, dropTargetKey, draggedValue, null);
5155
+ }
5156
+ setDraggedValue(null);
5157
+ setDropTargetKey(null);
5158
+ };
5159
+ const handleTouchStart = (e, materialValue, element) => {
5160
+ if (!checkCanAnswerQuestion()) return;
5161
+ const touch = e.touches[0];
5162
+ setDraggedValue(materialValue);
5163
+ setDraggedElement(element);
5164
+ setTouchPosition({ x: touch.clientX, y: touch.clientY });
5165
+ setSelectedValue(null);
5166
+ };
5167
+ const handleTouchMove = (e) => {
5168
+ if (!draggedValue) return;
5169
+ const touch = e.touches[0];
5170
+ setTouchPosition({ x: touch.clientX, y: touch.clientY });
5171
+ const elementUnder = document.elementFromPoint(
5172
+ touch.clientX,
5173
+ touch.clientY
5174
+ );
5175
+ const dropZone = elementUnder == null ? void 0 : elementUnder.closest("[data-grouping-drop-zone]");
5176
+ if (dropZone) {
5177
+ const dropKey = dropZone.getAttribute("data-grouping-drop-zone");
5178
+ setDropTargetKey(dropKey);
5179
+ } else {
5180
+ setDropTargetKey(null);
5181
+ }
5182
+ };
5183
+ const handleTouchEnd = () => {
5184
+ if (dropTargetKey !== null && draggedValue !== null) {
5185
+ onChange(answer, dropTargetKey, draggedValue, null);
5186
+ }
5187
+ setDraggedValue(null);
5188
+ setDropTargetKey(null);
5189
+ setDraggedElement(null);
5190
+ };
5191
+ const handleSelectItem = (materialValue) => {
5192
+ if (!checkCanAnswerQuestion()) return;
5193
+ setSelectedValue(materialValue);
5194
+ setDraggedValue(null);
5195
+ };
5196
+ const handleDropZoneClick = (answerMapKey) => {
5197
+ if (selectedValue !== null) {
5198
+ onChange(answer, answerMapKey, selectedValue, null);
5211
5199
  setSelectedValue(null);
5212
5200
  }
5213
5201
  };
5214
5202
  const answerMap = retrieveAnswerMap();
5215
5203
  const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
5216
- return /* @__PURE__ */ jsxs19(Fragment3, { children: [
5204
+ return /* @__PURE__ */ jsxs19("div", { onMouseUp: handleMouseUp, children: [
5205
+ draggedValue && touchPosition.x > 0 && /* @__PURE__ */ jsx30(
5206
+ "div",
5207
+ {
5208
+ className: "fixed pointer-events-none z-50 opacity-80",
5209
+ style: {
5210
+ left: `${touchPosition.x}px`,
5211
+ top: `${touchPosition.y}px`,
5212
+ transform: "translate(-50%, -50%)"
5213
+ },
5214
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx30("div", { className: "border-catchup-blue border-2 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx30("div", { className: "flex flex-col items-center justify-center m-2 min-w-[200px]", children: /* @__PURE__ */ jsx30("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(draggedValue).map(
5215
+ (inputPart, index) => /* @__PURE__ */ jsx30(
5216
+ "span",
5217
+ {
5218
+ className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5219
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx30("span", { className: "text-2xl", children: /* @__PURE__ */ jsx30(InlineMath5, { math: inputPart.value }) }) : inputPart.value
5220
+ },
5221
+ index
5222
+ )
5223
+ ) }) }) }) : /* @__PURE__ */ jsx30("div", { className: "border-catchup-blue border-2 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx30(
5224
+ ShowMaterialMediaByContentType_default,
5225
+ {
5226
+ contentType: contentMap.type,
5227
+ src: draggedValue,
5228
+ canFullScreen: false
5229
+ },
5230
+ `${uniqueValue}-drag`
5231
+ ) })
5232
+ }
5233
+ ),
5217
5234
  filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs19(Fragment3, { children: [
5218
- /* @__PURE__ */ jsx32("div", { className: "flex-1 flex flex-row gap-x-4 overflow-x-auto py-2", children: filteredMaterialList.map((materialValue, index) => {
5219
- return /* @__PURE__ */ jsx32(
5220
- DraggableItem_default,
5235
+ /* @__PURE__ */ jsx30("div", { className: "flex-1 flex flex-row gap-x-4 overflow-x-auto py-2", children: filteredMaterialList.map((materialValue, index) => {
5236
+ return /* @__PURE__ */ jsx30(
5237
+ "div",
5221
5238
  {
5222
- item: { index: materialValue },
5223
- type: "GROUPING",
5224
- component: /* @__PURE__ */ jsx32(
5239
+ ref: draggedValue === materialValue ? dragElementRef : null,
5240
+ className: `${draggedValue === materialValue ? "opacity-40" : selectedValue === materialValue ? "ring-2 ring-blue-500" : "opacity-100"} transition-all duration-200`,
5241
+ onMouseDown: (e) => handleMouseDown(e, materialValue),
5242
+ onTouchStart: (e) => handleTouchStart(e, materialValue, e.currentTarget),
5243
+ onTouchMove: handleTouchMove,
5244
+ onTouchEnd: handleTouchEnd,
5245
+ children: /* @__PURE__ */ jsx30(
5225
5246
  "div",
5226
5247
  {
5227
5248
  className: `${selectedValue === materialValue ? "border-catchup-blue" : "border-catchup-lighter-gray"} ${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-box-item"} flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
5228
- onMouseDown: () => {
5229
- if (checkCanAnswerQuestion()) {
5230
- setSelectedValue(materialValue);
5231
- }
5232
- },
5233
- onTouchEnd: () => {
5234
- if (checkCanAnswerQuestion()) {
5235
- setSelectedValue(materialValue);
5236
- }
5237
- },
5238
- onMouseUp: () => {
5239
- if (checkCanAnswerQuestion()) {
5240
- setSelectedValue(null);
5241
- }
5242
- },
5243
- onTouchStart: () => {
5244
- if (checkCanAnswerQuestion()) {
5245
- setSelectedValue(null);
5246
- }
5247
- },
5248
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx32("div", { className: "flex flex-col items-center justify-center m-2 min-w-[200px] overflow-y-auto", children: /* @__PURE__ */ jsx32("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5249
+ onClick: () => handleSelectItem(materialValue),
5250
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx30("div", { className: "flex flex-col items-center justify-center m-2 min-w-[200px] overflow-y-auto", children: /* @__PURE__ */ jsx30("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5249
5251
  materialValue
5250
- ).map((inputPart, index2) => /* @__PURE__ */ jsx32(
5252
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx30(
5251
5253
  "span",
5252
5254
  {
5253
5255
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5254
- children: inputPart.isEquation ? /* @__PURE__ */ jsx32("span", { className: "text-2xl", children: /* @__PURE__ */ jsx32(InlineMath5, { math: inputPart.value }) }) : inputPart.value
5256
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx30("span", { className: "text-2xl", children: /* @__PURE__ */ jsx30(InlineMath5, { math: inputPart.value }) }) : inputPart.value
5255
5257
  },
5256
5258
  index2
5257
- )) }) }) : /* @__PURE__ */ jsx32(
5259
+ )) }) }) : /* @__PURE__ */ jsx30(
5258
5260
  ShowMaterialMediaByContentType_default,
5259
5261
  {
5260
5262
  contentType: contentMap.type,
@@ -5264,109 +5266,94 @@ var GroupingActivityMaterialContent = ({
5264
5266
  `${uniqueValue}-${index}`
5265
5267
  )
5266
5268
  }
5267
- ),
5268
- moveCardHandler: () => {
5269
- if (!selectedTargetKey) return;
5270
- if (!selectedValue) return;
5271
- handleGroupingActivityItemOnChange(
5272
- selectedTargetKey,
5273
- selectedValue
5274
- );
5275
- }
5269
+ )
5276
5270
  },
5277
5271
  index
5278
5272
  );
5279
5273
  }) }),
5280
- /* @__PURE__ */ jsx32(DividerLine_default, {})
5274
+ /* @__PURE__ */ jsx30(DividerLine_default, {})
5281
5275
  ] }) : null,
5282
- /* @__PURE__ */ jsx32("div", { className: "overflow-y-auto max-h-[500px]", children: Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ jsxs19("div", { className: "flex flex-row w-full", children: [
5283
- /* @__PURE__ */ jsx32("div", { className: "w-1/3", children: /* @__PURE__ */ jsx32(
5276
+ /* @__PURE__ */ jsx30("div", { className: "overflow-y-auto max-h-[500px]", children: Object.keys(answerMap).map((answerMapKey, index) => /* @__PURE__ */ jsxs19("div", { className: "flex flex-row w-full", children: [
5277
+ /* @__PURE__ */ jsx30("div", { className: "w-1/3", children: /* @__PURE__ */ jsx30(
5284
5278
  "div",
5285
5279
  {
5286
5280
  className: `border-catchup-blue ${contentMap.type === "TEXT" ? "h-catchup-activity-text-outer-box-item" : "h-catchup-activity-media-outer-box-item"} flex flex-col items-center justify-center border-2 rounded-catchup-xlarge transition-all duration-300 my-3`,
5287
- children: /* @__PURE__ */ jsx32("div", { className: "flex flex-col items-center justify-center transition-all duration-300 px-4 text-center", children: /* @__PURE__ */ jsx32("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
5288
- (inputPart, index2) => /* @__PURE__ */ jsx32(
5281
+ children: /* @__PURE__ */ jsx30("div", { className: "flex flex-col items-center justify-center transition-all duration-300 px-4 text-center", children: /* @__PURE__ */ jsx30("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(answerMapKey).map(
5282
+ (inputPart, index2) => /* @__PURE__ */ jsx30(
5289
5283
  "span",
5290
5284
  {
5291
5285
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5292
- children: inputPart.isEquation ? /* @__PURE__ */ jsx32("span", { className: "text-2xl", children: /* @__PURE__ */ jsx32(InlineMath5, { math: inputPart.value }) }) : inputPart.value
5286
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx30("span", { className: "text-2xl", children: /* @__PURE__ */ jsx30(InlineMath5, { math: inputPart.value }) }) : inputPart.value
5293
5287
  },
5294
5288
  index2
5295
5289
  )
5296
5290
  ) }) })
5297
5291
  }
5298
5292
  ) }),
5299
- /* @__PURE__ */ jsx32("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
5300
- /* @__PURE__ */ jsx32("div", { className: "flex-1 min-w-0", ref, children: /* @__PURE__ */ jsx32("div", { className: "h-full py-3", children: /* @__PURE__ */ jsx32(
5293
+ /* @__PURE__ */ jsx30("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
5294
+ /* @__PURE__ */ jsx30("div", { className: "flex-1 min-w-0", ref, children: /* @__PURE__ */ jsx30("div", { className: "h-full py-3", children: /* @__PURE__ */ jsx30(
5301
5295
  "div",
5302
5296
  {
5303
- 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`,
5304
- children: /* @__PURE__ */ jsx32(
5305
- DroppableItem_default,
5306
- {
5307
- item: { index: answerMapKey },
5308
- type: "GROUPING",
5309
- target: selectedTargetKey,
5310
- setTarget: setSelectedTargetKey,
5311
- dropRef: drop,
5312
- component: /* @__PURE__ */ jsx32("div", { className: "h-full w-full overflow-x-auto", children: /* @__PURE__ */ jsx32("div", { className: "flex flex-row items-center gap-2 w-max h-full", children: answerMap[answerMapKey].map(
5313
- (answerMapValue, answerMapIndex) => {
5314
- const learnerAnswerState = checkAnswerState(
5315
- materialMap[answerMapKey],
5316
- answerMapValue
5317
- );
5318
- return /* @__PURE__ */ jsx32("div", { className: "p-1", children: /* @__PURE__ */ jsx32(
5297
+ "data-grouping-drop-zone": answerMapKey,
5298
+ onMouseEnter: () => draggedValue && setDropTargetKey(answerMapKey),
5299
+ onMouseLeave: () => setDropTargetKey(null),
5300
+ onClick: () => handleDropZoneClick(answerMapKey),
5301
+ className: `${dropTargetKey === answerMapKey ? "bg-catchup-light-blue ring-2 ring-blue-400" : ""} flex-1 border-catchup-blue rounded-catchup-xlarge border-2 h-full p-1 transition-all duration-200`,
5302
+ children: /* @__PURE__ */ jsx30("div", { className: "h-full w-full overflow-x-auto", children: /* @__PURE__ */ jsx30("div", { className: "flex flex-row items-center gap-2 w-max h-full", children: answerMap[answerMapKey].map(
5303
+ (answerMapValue, answerMapIndex) => {
5304
+ const learnerAnswerState = checkAnswerState(
5305
+ materialMap[answerMapKey],
5306
+ answerMapValue
5307
+ );
5308
+ return /* @__PURE__ */ jsx30("div", { className: "p-1", children: /* @__PURE__ */ jsx30(
5309
+ "div",
5310
+ {
5311
+ className: `${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-box-item"}`,
5312
+ children: /* @__PURE__ */ jsx30(
5319
5313
  "div",
5320
5314
  {
5321
- className: `${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-box-item"}`,
5322
- children: /* @__PURE__ */ jsx32(
5323
- "div",
5315
+ 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`,
5316
+ onClick: (e) => {
5317
+ e.stopPropagation();
5318
+ if (checkCanAnswerQuestion()) {
5319
+ onChange(
5320
+ answer,
5321
+ answerMapKey,
5322
+ null,
5323
+ answerMapIndex
5324
+ );
5325
+ setSelectedValue(null);
5326
+ }
5327
+ },
5328
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx30("div", { className: "flex flex-col items-center justify-center transition-all duration-300 min-w-[200px] overflow-y-auto", children: /* @__PURE__ */ jsx30("div", { className: "m-2", children: /* @__PURE__ */ jsx30("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5329
+ answerMapValue
5330
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx30(
5331
+ "span",
5324
5332
  {
5325
- 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`,
5326
- onClick: (e) => {
5327
- e.preventDefault();
5328
- if (checkCanAnswerQuestion()) {
5329
- onChange(
5330
- answer,
5331
- answerMapKey,
5332
- null,
5333
- answerMapIndex
5334
- );
5335
- setSelectedValue(null);
5336
- }
5337
- },
5338
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx32("div", { className: "flex flex-col items-center justify-center transition-all duration-300 min-w-[200px] overflow-y-auto", children: /* @__PURE__ */ jsx32("div", { className: "m-2", children: /* @__PURE__ */ jsx32("p", { className: "text-xl text-center whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5339
- answerMapValue
5340
- ).map((inputPart, index2) => /* @__PURE__ */ jsx32(
5341
- "span",
5333
+ className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5334
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx30("span", { className: "text-2xl", children: /* @__PURE__ */ jsx30(
5335
+ InlineMath5,
5342
5336
  {
5343
- className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5344
- children: inputPart.isEquation ? /* @__PURE__ */ jsx32("span", { className: "text-2xl", children: /* @__PURE__ */ jsx32(
5345
- InlineMath5,
5346
- {
5347
- math: inputPart.value
5348
- }
5349
- ) }) : inputPart.value
5350
- },
5351
- index2
5352
- )) }) }) }) : /* @__PURE__ */ jsx32(
5353
- ShowMaterialMediaByContentType_default,
5354
- {
5355
- contentType: contentMap.type,
5356
- src: answerMapValue,
5357
- canFullScreen: false
5358
- },
5359
- `${uniqueValue}-${answerMapIndex}`
5360
- )
5361
- }
5337
+ math: inputPart.value
5338
+ }
5339
+ ) }) : inputPart.value
5340
+ },
5341
+ index2
5342
+ )) }) }) }) : /* @__PURE__ */ jsx30(
5343
+ ShowMaterialMediaByContentType_default,
5344
+ {
5345
+ contentType: contentMap.type,
5346
+ src: answerMapValue,
5347
+ canFullScreen: false
5348
+ },
5349
+ `${uniqueValue}-${answerMapIndex}`
5362
5350
  )
5363
5351
  }
5364
- ) }, answerMapIndex);
5352
+ )
5365
5353
  }
5366
- ) }) })
5367
- },
5368
- index
5369
- )
5354
+ ) }, answerMapIndex);
5355
+ }
5356
+ ) }) })
5370
5357
  }
5371
5358
  ) }) })
5372
5359
  ] }, index)) })
@@ -5375,7 +5362,7 @@ var GroupingActivityMaterialContent = ({
5375
5362
  var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
5376
5363
 
5377
5364
  // src/components/activities/GroupingActivityContent.tsx
5378
- import { Fragment as Fragment4, jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
5365
+ import { Fragment as Fragment4, jsx as jsx31, jsxs as jsxs20 } from "react/jsx-runtime";
5379
5366
  var GroupingActivityContent = ({
5380
5367
  answer,
5381
5368
  data,
@@ -5401,15 +5388,15 @@ var GroupingActivityContent = ({
5401
5388
  changeAnswer(answer2);
5402
5389
  };
5403
5390
  return /* @__PURE__ */ jsxs20(Fragment4, { children: [
5404
- /* @__PURE__ */ jsx33(
5391
+ /* @__PURE__ */ jsx31(
5405
5392
  ActivityBodyContent_default,
5406
5393
  {
5407
5394
  bodyMap: groupingBodyMap,
5408
5395
  templateType: "GROUPING"
5409
5396
  }
5410
5397
  ),
5411
- /* @__PURE__ */ jsx33(DividerLine_default, {}),
5412
- /* @__PURE__ */ jsx33(
5398
+ /* @__PURE__ */ jsx31(DividerLine_default, {}),
5399
+ /* @__PURE__ */ jsx31(
5413
5400
  GroupingActivityMaterialContent_default,
5414
5401
  {
5415
5402
  uniqueValue: JSON.stringify(data.contentMap),
@@ -5427,10 +5414,9 @@ var GroupingActivityContent = ({
5427
5414
  var GroupingActivityContent_default = GroupingActivityContent;
5428
5415
 
5429
5416
  // src/components/activities/material-contents/MatchingActivityMaterialContent.tsx
5430
- import { useEffect as useEffect11, useRef as useRef7, useState as useState20 } from "react";
5431
- import { useDrop as useDrop3 } from "react-dnd";
5417
+ import { useEffect as useEffect11, useRef as useRef6, useState as useState20 } from "react";
5432
5418
  import { InlineMath as InlineMath6 } from "react-katex";
5433
- import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
5419
+ import { Fragment as Fragment5, jsx as jsx32, jsxs as jsxs21 } from "react/jsx-runtime";
5434
5420
  var MatchingActivityMaterialContent = ({
5435
5421
  uniqueValue,
5436
5422
  answer,
@@ -5442,19 +5428,19 @@ var MatchingActivityMaterialContent = ({
5442
5428
  showCorrectAnswer
5443
5429
  }) => {
5444
5430
  const [selectedValue, setSelectedValue] = useState20(null);
5445
- const [selectedTargetKey, setSelectedTargetKey] = useState20(null);
5431
+ const [draggedValue, setDraggedValue] = useState20(null);
5432
+ const [dropTargetKey, setDropTargetKey] = useState20(null);
5433
+ const [draggedElement, setDraggedElement] = useState20(
5434
+ null
5435
+ );
5446
5436
  const [isShuffled, setIsShuffled] = useState20(false);
5447
5437
  const [shuffledMaterialList, setShuffledMaterialList] = useState20([]);
5448
- const [{ isOver, canDrop }, drop] = useDrop3({
5449
- accept: "MATCHING",
5450
- drop: () => {
5451
- },
5452
- collect: (monitor) => ({
5453
- isOver: monitor.isOver(),
5454
- canDrop: monitor.canDrop()
5455
- })
5438
+ const dragElementRef = useRef6(null);
5439
+ const [touchPosition, setTouchPosition] = useState20({
5440
+ x: 0,
5441
+ y: 0
5456
5442
  });
5457
- const itemsRef = useRef7(null);
5443
+ const itemsRef = useRef6(null);
5458
5444
  useEffect11(() => {
5459
5445
  const shuffleArray2 = (array) => {
5460
5446
  if (!isShuffled) {
@@ -5473,13 +5459,13 @@ var MatchingActivityMaterialContent = ({
5473
5459
  materialList.push(materialMap[materialKey]);
5474
5460
  });
5475
5461
  setShuffledMaterialList(shuffleArray2(materialList));
5476
- }, []);
5462
+ }, [materialMap, isShuffled]);
5477
5463
  useEffect11(() => {
5478
5464
  if (!showCorrectAnswer) return;
5479
5465
  answer.data.find(
5480
5466
  (answerData) => answerData.type === "MATCHING"
5481
5467
  ).answerMap = materialMap;
5482
- }, [showCorrectAnswer]);
5468
+ }, [showCorrectAnswer, answer, materialMap]);
5483
5469
  const retrieveAnswerMap = () => {
5484
5470
  const foundIndex = answer.data.findIndex(
5485
5471
  (answerData) => answerData.type === "MATCHING"
@@ -5503,60 +5489,124 @@ var MatchingActivityMaterialContent = ({
5503
5489
  }
5504
5490
  return "INCORRECT";
5505
5491
  };
5506
- const handleMatchingActivityItemOnChange = (selectedTargetKey2, selectedValue2) => {
5507
- if (checkCanAnswerQuestion()) {
5508
- onChange(answer, selectedTargetKey2, selectedValue2);
5492
+ const handleMouseDown = (e, materialValue) => {
5493
+ if (!checkCanAnswerQuestion()) return;
5494
+ e.preventDefault();
5495
+ setDraggedValue(materialValue);
5496
+ setSelectedValue(null);
5497
+ };
5498
+ const handleMouseUp = () => {
5499
+ if (dropTargetKey !== null && draggedValue !== null) {
5500
+ onChange(answer, dropTargetKey, draggedValue);
5501
+ }
5502
+ setDraggedValue(null);
5503
+ setDropTargetKey(null);
5504
+ };
5505
+ const handleTouchStart = (e, materialValue, element) => {
5506
+ if (!checkCanAnswerQuestion()) return;
5507
+ const touch = e.touches[0];
5508
+ setDraggedValue(materialValue);
5509
+ setDraggedElement(element);
5510
+ setTouchPosition({ x: touch.clientX, y: touch.clientY });
5511
+ setSelectedValue(null);
5512
+ };
5513
+ const handleTouchMove = (e) => {
5514
+ if (!draggedValue) return;
5515
+ const touch = e.touches[0];
5516
+ setTouchPosition({ x: touch.clientX, y: touch.clientY });
5517
+ const elementUnder = document.elementFromPoint(
5518
+ touch.clientX,
5519
+ touch.clientY
5520
+ );
5521
+ const dropZone = elementUnder == null ? void 0 : elementUnder.closest("[data-matching-drop-zone]");
5522
+ if (dropZone) {
5523
+ const dropKey = dropZone.getAttribute("data-matching-drop-zone");
5524
+ setDropTargetKey(dropKey);
5525
+ } else {
5526
+ setDropTargetKey(null);
5527
+ }
5528
+ };
5529
+ const handleTouchEnd = () => {
5530
+ if (dropTargetKey !== null && draggedValue !== null) {
5531
+ onChange(answer, dropTargetKey, draggedValue);
5532
+ }
5533
+ setDraggedValue(null);
5534
+ setDropTargetKey(null);
5535
+ setDraggedElement(null);
5536
+ };
5537
+ const handleSelectItem = (materialValue) => {
5538
+ if (!checkCanAnswerQuestion()) return;
5539
+ setSelectedValue(materialValue);
5540
+ setDraggedValue(null);
5541
+ };
5542
+ const handleDropZoneClick = (answerMapKey) => {
5543
+ if (selectedValue !== null) {
5544
+ onChange(answer, answerMapKey, selectedValue);
5509
5545
  setSelectedValue(null);
5510
5546
  }
5511
5547
  };
5512
5548
  const answerMap = retrieveAnswerMap();
5513
5549
  const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
5514
- return /* @__PURE__ */ jsxs21(Fragment5, { children: [
5550
+ return /* @__PURE__ */ jsxs21("div", { onMouseUp: handleMouseUp, children: [
5551
+ draggedValue && touchPosition.x > 0 && /* @__PURE__ */ jsx32(
5552
+ "div",
5553
+ {
5554
+ className: "fixed pointer-events-none z-50 opacity-80",
5555
+ style: {
5556
+ left: `${touchPosition.x}px`,
5557
+ top: `${touchPosition.y}px`,
5558
+ transform: "translate(-50%, -50%)"
5559
+ },
5560
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx32("div", { className: "border-catchup-blue border-2 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx32("div", { className: "flex flex-col items-center justify-center m-2 min-w-[200px] px-4", children: /* @__PURE__ */ jsx32("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(draggedValue).map(
5561
+ (inputPart, index) => /* @__PURE__ */ jsx32(
5562
+ "span",
5563
+ {
5564
+ className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5565
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx32("span", { className: "text-xl", children: /* @__PURE__ */ jsx32(InlineMath6, { math: inputPart.value }) }) : inputPart.value
5566
+ },
5567
+ index
5568
+ )
5569
+ ) }) }) }) : /* @__PURE__ */ jsx32("div", { className: "border-catchup-blue border-2 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx32(
5570
+ ShowMaterialMediaByContentType_default,
5571
+ {
5572
+ contentType: contentMap.type,
5573
+ src: draggedValue,
5574
+ canFullScreen: false
5575
+ },
5576
+ `${uniqueValue}-drag`
5577
+ ) })
5578
+ }
5579
+ ),
5515
5580
  filteredMaterialList.length > 0 ? /* @__PURE__ */ jsxs21(Fragment5, { children: [
5516
- /* @__PURE__ */ jsx34(
5581
+ /* @__PURE__ */ jsx32(
5517
5582
  "div",
5518
5583
  {
5519
5584
  ref: itemsRef,
5520
5585
  className: "flex-shrink-0 flex flex-row gap-x-4 gap-y-4 overflow-x-auto py-2",
5521
- children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */ jsx34(
5522
- DraggableItem_default,
5586
+ children: filteredMaterialList.map((materialValue, index) => /* @__PURE__ */ jsx32(
5587
+ "div",
5523
5588
  {
5524
- item: { index: materialValue },
5525
- type: "MATCHING",
5526
- component: /* @__PURE__ */ jsx34(
5589
+ ref: draggedValue === materialValue ? dragElementRef : null,
5590
+ className: `${draggedValue === materialValue ? "opacity-40" : selectedValue === materialValue ? "ring-2 ring-blue-500" : "opacity-100"} transition-all duration-200`,
5591
+ onMouseDown: (e) => handleMouseDown(e, materialValue),
5592
+ onTouchStart: (e) => handleTouchStart(e, materialValue, e.currentTarget),
5593
+ onTouchMove: handleTouchMove,
5594
+ onTouchEnd: handleTouchEnd,
5595
+ children: /* @__PURE__ */ jsx32(
5527
5596
  "div",
5528
5597
  {
5529
5598
  className: `${selectedValue === materialValue ? "border-catchup-blue" : "border-catchup-lighter-gray"} ${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-box-item"} flex flex-col items-center justify-center border-2 rounded-catchup-xlarge cursor-pointer transition-all duration-300`,
5530
- onMouseDown: () => {
5531
- if (checkCanAnswerQuestion()) {
5532
- setSelectedValue(materialValue);
5533
- }
5534
- },
5535
- onTouchEnd: () => {
5536
- if (checkCanAnswerQuestion()) {
5537
- setSelectedValue(materialValue);
5538
- }
5539
- },
5540
- onMouseUp: () => {
5541
- if (checkCanAnswerQuestion()) {
5542
- setSelectedValue(null);
5543
- }
5544
- },
5545
- onTouchStart: () => {
5546
- if (checkCanAnswerQuestion()) {
5547
- setSelectedValue(null);
5548
- }
5549
- },
5550
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx34("div", { className: "flex flex-col items-center justify-center m-2 min-w-[200px] overflow-y-auto px-4", children: /* @__PURE__ */ jsx34("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5599
+ onClick: () => handleSelectItem(materialValue),
5600
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx32("div", { className: "flex flex-col items-center justify-center m-2 min-w-[200px] overflow-y-auto px-4", children: /* @__PURE__ */ jsx32("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5551
5601
  materialValue
5552
- ).map((inputPart, index2) => /* @__PURE__ */ jsx34(
5602
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx32(
5553
5603
  "span",
5554
5604
  {
5555
5605
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5556
- children: inputPart.isEquation ? /* @__PURE__ */ jsx34("span", { className: "text-xl", children: /* @__PURE__ */ jsx34(InlineMath6, { math: inputPart.value }) }) : inputPart.value
5606
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx32("span", { className: "text-xl", children: /* @__PURE__ */ jsx32(InlineMath6, { math: inputPart.value }) }) : inputPart.value
5557
5607
  },
5558
5608
  index2
5559
- )) }) }) : /* @__PURE__ */ jsx34(
5609
+ )) }) }) : /* @__PURE__ */ jsx32(
5560
5610
  ShowMaterialMediaByContentType_default,
5561
5611
  {
5562
5612
  contentType: contentMap.type,
@@ -5566,97 +5616,75 @@ var MatchingActivityMaterialContent = ({
5566
5616
  `${uniqueValue}-${index}`
5567
5617
  )
5568
5618
  }
5569
- ),
5570
- moveCardHandler: () => {
5571
- if (!selectedTargetKey) return;
5572
- if (!selectedValue) return;
5573
- handleMatchingActivityItemOnChange(
5574
- selectedTargetKey,
5575
- selectedValue
5576
- );
5577
- }
5619
+ )
5578
5620
  },
5579
5621
  index
5580
5622
  ))
5581
5623
  }
5582
5624
  ),
5583
- /* @__PURE__ */ jsx34("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx34(DividerLine_default, {}) })
5625
+ /* @__PURE__ */ jsx32("div", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx32(DividerLine_default, {}) })
5584
5626
  ] }) : null,
5585
- /* @__PURE__ */ jsx34("div", { className: "overflow-y-auto max-h-[500px]", children: Object.keys(answerMap).map((answerMapKey, index) => {
5627
+ /* @__PURE__ */ jsx32("div", { className: "overflow-y-auto max-h-[500px]", children: Object.keys(answerMap).map((answerMapKey, index) => {
5586
5628
  const learnerAnswerState = checkAnswerState(
5587
5629
  materialMap[answerMapKey],
5588
5630
  answerMap[answerMapKey]
5589
5631
  );
5590
5632
  return /* @__PURE__ */ jsxs21("div", { className: "flex flex-row w-full", children: [
5591
- /* @__PURE__ */ jsx34("div", { className: "w-1/3", children: /* @__PURE__ */ jsx34(
5633
+ /* @__PURE__ */ jsx32("div", { className: "w-1/3", children: /* @__PURE__ */ jsx32(
5592
5634
  "div",
5593
5635
  {
5594
5636
  className: `${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-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"}`,
5595
- children: /* @__PURE__ */ jsx34("div", { className: "flex flex-col items-center justify-center transition-all duration-300 px-4 text-center", children: /* @__PURE__ */ jsx34("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5637
+ children: /* @__PURE__ */ jsx32("div", { className: "flex flex-col items-center justify-center transition-all duration-300 px-4 text-center", children: /* @__PURE__ */ jsx32("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5596
5638
  answerMapKey
5597
- ).map((inputPart, index2) => /* @__PURE__ */ jsx34(
5639
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx32(
5598
5640
  "span",
5599
5641
  {
5600
5642
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5601
- children: inputPart.isEquation ? /* @__PURE__ */ jsx34("span", { className: "text-xl", children: /* @__PURE__ */ jsx34(InlineMath6, { math: inputPart.value }) }) : inputPart.value
5643
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx32("span", { className: "text-xl", children: /* @__PURE__ */ jsx32(InlineMath6, { math: inputPart.value }) }) : inputPart.value
5602
5644
  },
5603
5645
  index2
5604
5646
  )) }) })
5605
5647
  }
5606
5648
  ) }),
5607
- /* @__PURE__ */ jsx34("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
5608
- /* @__PURE__ */ jsx34("div", { className: "flex-1", children: /* @__PURE__ */ jsx34(
5649
+ /* @__PURE__ */ jsx32("div", { className: "mx-4 w-[2px] bg-catchup-lighter-gray" }),
5650
+ /* @__PURE__ */ jsx32("div", { className: "flex-1", children: /* @__PURE__ */ jsx32(
5609
5651
  "div",
5610
5652
  {
5611
- className: `${canDrop ? selectedTargetKey === answerMapKey ? "bg-catchup-light-blue" : "bg-catchup-light-blue opacity-40" : ""} ${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-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"}`,
5612
- onClick: () => {
5613
- if (checkCanAnswerQuestion()) {
5614
- setSelectedValue(null);
5615
- }
5616
- },
5617
- children: /* @__PURE__ */ jsx34(
5618
- DroppableItem_default,
5653
+ "data-matching-drop-zone": answerMapKey,
5654
+ onMouseEnter: () => draggedValue && setDropTargetKey(answerMapKey),
5655
+ onMouseLeave: () => setDropTargetKey(null),
5656
+ onClick: () => handleDropZoneClick(answerMapKey),
5657
+ className: `${dropTargetKey === answerMapKey ? "bg-catchup-light-blue ring-2 ring-blue-400" : ""} ${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-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"}`,
5658
+ children: /* @__PURE__ */ jsx32(
5659
+ "div",
5619
5660
  {
5620
- item: { index: answerMapKey },
5621
- type: "MATCHING",
5622
- target: selectedTargetKey,
5623
- setTarget: setSelectedTargetKey,
5624
- dropRef: drop,
5625
- component: /* @__PURE__ */ jsx34(
5626
- "div",
5627
- {
5628
- className: "h-full flex-1 flex flex-row items-center justify-center px-4",
5629
- onClick: (e) => {
5630
- e.preventDefault();
5631
- if (checkCanAnswerQuestion()) {
5632
- handleMatchingActivityItemOnChange(
5633
- answerMapKey,
5634
- null
5635
- );
5636
- }
5637
- },
5638
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx34("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5639
- answerMap[answerMapKey]
5640
- ).map((inputPart, index2) => /* @__PURE__ */ jsx34(
5641
- "span",
5642
- {
5643
- className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5644
- children: inputPart.isEquation ? /* @__PURE__ */ jsx34("span", { className: "text-xl", children: /* @__PURE__ */ jsx34(InlineMath6, { math: inputPart.value }) }) : inputPart.value
5645
- },
5646
- index2
5647
- )) }) : /* @__PURE__ */ jsx34(
5648
- ShowMaterialMediaByContentType_default,
5649
- {
5650
- contentType: contentMap.type,
5651
- src: answerMap[answerMapKey],
5652
- canFullScreen: false
5653
- },
5654
- `${uniqueValue}-${index}`
5655
- )
5661
+ className: "h-full flex-1 flex flex-row items-center justify-center px-4",
5662
+ onClick: (e) => {
5663
+ e.stopPropagation();
5664
+ if (checkCanAnswerQuestion() && answerMap[answerMapKey]) {
5665
+ onChange(answer, answerMapKey, null);
5666
+ setSelectedValue(null);
5656
5667
  }
5657
- )
5658
- },
5659
- index
5668
+ },
5669
+ children: answerMap[answerMapKey] ? contentMap.type === "TEXT" ? /* @__PURE__ */ jsx32("p", { className: "text-lg whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5670
+ answerMap[answerMapKey]
5671
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx32(
5672
+ "span",
5673
+ {
5674
+ className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5675
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx32("span", { className: "text-xl", children: /* @__PURE__ */ jsx32(InlineMath6, { math: inputPart.value }) }) : inputPart.value
5676
+ },
5677
+ index2
5678
+ )) }) : /* @__PURE__ */ jsx32(
5679
+ ShowMaterialMediaByContentType_default,
5680
+ {
5681
+ contentType: contentMap.type,
5682
+ src: answerMap[answerMapKey],
5683
+ canFullScreen: false
5684
+ },
5685
+ `${uniqueValue}-${index}`
5686
+ ) : null
5687
+ }
5660
5688
  )
5661
5689
  }
5662
5690
  ) })
@@ -5667,7 +5695,7 @@ var MatchingActivityMaterialContent = ({
5667
5695
  var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
5668
5696
 
5669
5697
  // src/components/activities/MatchingActivityContent.tsx
5670
- import { Fragment as Fragment6, jsx as jsx35, jsxs as jsxs22 } from "react/jsx-runtime";
5698
+ import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs22 } from "react/jsx-runtime";
5671
5699
  var MatchingActivityContent = ({
5672
5700
  answer,
5673
5701
  data,
@@ -5689,15 +5717,15 @@ var MatchingActivityContent = ({
5689
5717
  changeAnswer(answer2);
5690
5718
  };
5691
5719
  return /* @__PURE__ */ jsxs22(Fragment6, { children: [
5692
- /* @__PURE__ */ jsx35(
5720
+ /* @__PURE__ */ jsx33(
5693
5721
  ActivityBodyContent_default,
5694
5722
  {
5695
5723
  bodyMap: matchingBodyMap,
5696
5724
  templateType: "MATCHING"
5697
5725
  }
5698
5726
  ),
5699
- /* @__PURE__ */ jsx35(DividerLine_default, {}),
5700
- /* @__PURE__ */ jsx35(
5727
+ /* @__PURE__ */ jsx33(DividerLine_default, {}),
5728
+ /* @__PURE__ */ jsx33(
5701
5729
  MatchingActivityMaterialContent_default,
5702
5730
  {
5703
5731
  uniqueValue: JSON.stringify(data.contentMap),
@@ -5716,7 +5744,7 @@ var MatchingActivityContent_default = MatchingActivityContent;
5716
5744
 
5717
5745
  // src/components/activities/material-contents/MCMAActivityMaterialContent.tsx
5718
5746
  import { InlineMath as InlineMath7 } from "react-katex";
5719
- import { jsx as jsx36, jsxs as jsxs23 } from "react/jsx-runtime";
5747
+ import { jsx as jsx34, jsxs as jsxs23 } from "react/jsx-runtime";
5720
5748
  var MCMAActivityMaterialContent = ({
5721
5749
  uniqueValue,
5722
5750
  answer,
@@ -5749,10 +5777,10 @@ var MCMAActivityMaterialContent = ({
5749
5777
  const answerMap = retrieveAnswerMap();
5750
5778
  const correctAnswerList = retrieveCorrectAnswerList();
5751
5779
  return Object.keys(materialMap).map((materialKey, index) => {
5752
- return /* @__PURE__ */ jsx36("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs23("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
5753
- /* @__PURE__ */ jsx36("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx36("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
5754
- /* @__PURE__ */ jsx36("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx36(DividerLine_default, {}) }),
5755
- checkCanAnswerQuestion() ? /* @__PURE__ */ jsx36("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
5780
+ return /* @__PURE__ */ jsx34("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs23("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
5781
+ /* @__PURE__ */ jsx34("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx34("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcma_text") }) }),
5782
+ /* @__PURE__ */ jsx34("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx34(DividerLine_default, {}) }),
5783
+ checkCanAnswerQuestion() ? /* @__PURE__ */ jsx34("div", { className: "flex flex-row w-full flex-wrap ", children: materialMap[materialKey].map(
5756
5784
  (materialSubKey, index2) => {
5757
5785
  const foundAnswer = answerMap[materialKey].find(
5758
5786
  (learnerAnswer) => learnerAnswer === materialSubKey
@@ -5773,7 +5801,7 @@ var MCMAActivityMaterialContent = ({
5773
5801
  onChange(answer, materialKey, materialSubKey);
5774
5802
  },
5775
5803
  children: [
5776
- /* @__PURE__ */ jsx36(
5804
+ /* @__PURE__ */ jsx34(
5777
5805
  BaseImage_default,
5778
5806
  {
5779
5807
  src: answerMap[materialKey].includes(materialSubKey) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
@@ -5783,16 +5811,16 @@ var MCMAActivityMaterialContent = ({
5783
5811
  }
5784
5812
  }
5785
5813
  ),
5786
- /* @__PURE__ */ jsx36("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx36("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5814
+ /* @__PURE__ */ jsx34("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx34("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5787
5815
  materialSubKey
5788
- ).map((inputPart, index3) => /* @__PURE__ */ jsx36(
5816
+ ).map((inputPart, index3) => /* @__PURE__ */ jsx34(
5789
5817
  "span",
5790
5818
  {
5791
5819
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5792
- children: inputPart.isEquation ? /* @__PURE__ */ jsx36("span", { className: "text-xl", children: /* @__PURE__ */ jsx36(InlineMath7, { math: inputPart.value }) }) : inputPart.value
5820
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx34("span", { className: "text-xl", children: /* @__PURE__ */ jsx34(InlineMath7, { math: inputPart.value }) }) : inputPart.value
5793
5821
  },
5794
5822
  index3
5795
- )) }) : /* @__PURE__ */ jsx36(
5823
+ )) }) : /* @__PURE__ */ jsx34(
5796
5824
  ShowMaterialMediaByContentType_default,
5797
5825
  {
5798
5826
  contentType: contentMap.type,
@@ -5806,13 +5834,13 @@ var MCMAActivityMaterialContent = ({
5806
5834
  index2
5807
5835
  );
5808
5836
  }
5809
- ) }) : /* @__PURE__ */ jsx36("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
5837
+ ) }) : /* @__PURE__ */ jsx34("p", { className: "text-xl", children: constructInputWithSpecialExpressionList(
5810
5838
  answerMap[materialKey]
5811
- ).map((inputPart, index2) => /* @__PURE__ */ jsx36(
5839
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx34(
5812
5840
  "span",
5813
5841
  {
5814
5842
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5815
- children: inputPart.isEquation ? /* @__PURE__ */ jsx36("span", { className: "text-xl", children: /* @__PURE__ */ jsx36(InlineMath7, { math: inputPart.value }) }) : inputPart.value
5843
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx34("span", { className: "text-xl", children: /* @__PURE__ */ jsx34(InlineMath7, { math: inputPart.value }) }) : inputPart.value
5816
5844
  },
5817
5845
  index2
5818
5846
  )) }, materialKey)
@@ -5822,7 +5850,7 @@ var MCMAActivityMaterialContent = ({
5822
5850
  var MCMAActivityMaterialContent_default = MCMAActivityMaterialContent;
5823
5851
 
5824
5852
  // src/components/activities/MCMAActivityContent.tsx
5825
- import { jsx as jsx37, jsxs as jsxs24 } from "react/jsx-runtime";
5853
+ import { jsx as jsx35, jsxs as jsxs24 } from "react/jsx-runtime";
5826
5854
  var MCMAActivityContent = ({
5827
5855
  answer,
5828
5856
  data,
@@ -5851,10 +5879,10 @@ var MCMAActivityContent = ({
5851
5879
  changeAnswer(answer2);
5852
5880
  };
5853
5881
  return /* @__PURE__ */ jsxs24("div", { className: "flex flex-row flex-wrap", children: [
5854
- /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx37(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
5855
- /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx37(DividerLine_default, {}) }),
5856
- /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx37(VerticalDividerLine_default, {}) }),
5857
- /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx37(
5882
+ /* @__PURE__ */ jsx35("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx35(ActivityBodyContent_default, { bodyMap: MCMABodyMap, templateType: "MCMA" }) }),
5883
+ /* @__PURE__ */ jsx35("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx35(DividerLine_default, {}) }),
5884
+ /* @__PURE__ */ jsx35("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx35(VerticalDividerLine_default, {}) }),
5885
+ /* @__PURE__ */ jsx35("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx35(
5858
5886
  MCMAActivityMaterialContent_default,
5859
5887
  {
5860
5888
  uniqueValue: JSON.stringify(data.contentMap),
@@ -5872,7 +5900,7 @@ var MCMAActivityContent_default = MCMAActivityContent;
5872
5900
 
5873
5901
  // src/components/activities/material-contents/MCSAActivityMaterialContent.tsx
5874
5902
  import { InlineMath as InlineMath8 } from "react-katex";
5875
- import { jsx as jsx38, jsxs as jsxs25 } from "react/jsx-runtime";
5903
+ import { jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
5876
5904
  var MCSAActivityMaterialContent = ({
5877
5905
  uniqueValue,
5878
5906
  answer,
@@ -5902,10 +5930,10 @@ var MCSAActivityMaterialContent = ({
5902
5930
  const answerMap = retrieveAnswerMap();
5903
5931
  const correctAnswer = retrieveCorrectAnswer();
5904
5932
  return Object.keys(materialMap).map((materialKey, index) => {
5905
- return /* @__PURE__ */ jsx38("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs25("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
5906
- /* @__PURE__ */ jsx38("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx38("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
5907
- /* @__PURE__ */ jsx38("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx38(DividerLine_default, {}) }),
5908
- checkCanAnswerQuestion() ? /* @__PURE__ */ jsx38(
5933
+ return /* @__PURE__ */ jsx36("div", { className: "flex flex-row items-center my-1", children: /* @__PURE__ */ jsxs25("div", { className: "flex-1 flex flex-col justify-center border-catchup-lighter-gray rounded-catchup-xlarge px-5 md:px-0", children: [
5934
+ /* @__PURE__ */ jsx36("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx36("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_mcsa_text") }) }),
5935
+ /* @__PURE__ */ jsx36("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx36(DividerLine_default, {}) }),
5936
+ checkCanAnswerQuestion() ? /* @__PURE__ */ jsx36(
5909
5937
  "div",
5910
5938
  {
5911
5939
  className: `flex flex-row w-full ${Object.keys(materialMap[materialKey]).length <= 4 ? "justify-center" : ""} flex-wrap`,
@@ -5924,7 +5952,7 @@ var MCSAActivityMaterialContent = ({
5924
5952
  onChange(answer, materialKey, materialSubKey);
5925
5953
  },
5926
5954
  children: [
5927
- /* @__PURE__ */ jsx38(
5955
+ /* @__PURE__ */ jsx36(
5928
5956
  BaseImage_default,
5929
5957
  {
5930
5958
  src: answerMap[materialKey] === materialSubKey ? "/icons/item-element.webp" : "/icons/not-selected-item-element.webp",
@@ -5934,16 +5962,16 @@ var MCSAActivityMaterialContent = ({
5934
5962
  }
5935
5963
  }
5936
5964
  ),
5937
- /* @__PURE__ */ jsx38("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx38("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5965
+ /* @__PURE__ */ jsx36("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx36("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5938
5966
  materialSubKey
5939
- ).map((inputPart, index3) => /* @__PURE__ */ jsx38(
5967
+ ).map((inputPart, index3) => /* @__PURE__ */ jsx36(
5940
5968
  "span",
5941
5969
  {
5942
5970
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5943
- children: inputPart.isEquation ? /* @__PURE__ */ jsx38("span", { className: "text-xl", children: /* @__PURE__ */ jsx38(InlineMath8, { math: inputPart.value }) }) : inputPart.value
5971
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx36("span", { className: "text-xl", children: /* @__PURE__ */ jsx36(InlineMath8, { math: inputPart.value }) }) : inputPart.value
5944
5972
  },
5945
5973
  index3
5946
- )) }) : /* @__PURE__ */ jsx38(
5974
+ )) }) : /* @__PURE__ */ jsx36(
5947
5975
  ShowMaterialMediaByContentType_default,
5948
5976
  {
5949
5977
  contentType: contentMap.type,
@@ -5959,13 +5987,13 @@ var MCSAActivityMaterialContent = ({
5959
5987
  }
5960
5988
  )
5961
5989
  }
5962
- ) : /* @__PURE__ */ jsx38("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5990
+ ) : /* @__PURE__ */ jsx36("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
5963
5991
  answerMap[materialKey]
5964
- ).map((inputPart, index2) => /* @__PURE__ */ jsx38(
5992
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx36(
5965
5993
  "span",
5966
5994
  {
5967
5995
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
5968
- children: inputPart.isEquation ? /* @__PURE__ */ jsx38("span", { className: "text-xl", children: /* @__PURE__ */ jsx38(InlineMath8, { math: inputPart.value }) }) : inputPart.value
5996
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx36("span", { className: "text-xl", children: /* @__PURE__ */ jsx36(InlineMath8, { math: inputPart.value }) }) : inputPart.value
5969
5997
  },
5970
5998
  index2
5971
5999
  )) })
@@ -5975,7 +6003,7 @@ var MCSAActivityMaterialContent = ({
5975
6003
  var MCSAActivityMaterialContent_default = MCSAActivityMaterialContent;
5976
6004
 
5977
6005
  // src/components/activities/MCSAActivityContent.tsx
5978
- import { jsx as jsx39, jsxs as jsxs26 } from "react/jsx-runtime";
6006
+ import { jsx as jsx37, jsxs as jsxs26 } from "react/jsx-runtime";
5979
6007
  var MCSAActivityContent = ({
5980
6008
  answer,
5981
6009
  data,
@@ -5997,10 +6025,10 @@ var MCSAActivityContent = ({
5997
6025
  changeAnswer(answer2);
5998
6026
  };
5999
6027
  return /* @__PURE__ */ jsxs26("div", { className: "flex flex-row flex-wrap", children: [
6000
- /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx39(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
6001
- /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx39(DividerLine_default, {}) }),
6002
- /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx39(VerticalDividerLine_default, {}) }),
6003
- /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx39(
6028
+ /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[60%]"}`, children: /* @__PURE__ */ jsx37(ActivityBodyContent_default, { bodyMap: MCSABodyMap, templateType: "MCSA" }) }),
6029
+ /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx37(DividerLine_default, {}) }),
6030
+ /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx37(VerticalDividerLine_default, {}) }),
6031
+ /* @__PURE__ */ jsx37("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx37(
6004
6032
  MCSAActivityMaterialContent_default,
6005
6033
  {
6006
6034
  uniqueValue: JSON.stringify(data.contentMap),
@@ -6045,7 +6073,7 @@ var retrieveDocumentTypeFromExtension = (format) => {
6045
6073
  };
6046
6074
 
6047
6075
  // src/components/activities/material-contents/OpenEndedActivityMaterialContent.tsx
6048
- import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs27 } from "react/jsx-runtime";
6076
+ import { Fragment as Fragment7, jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
6049
6077
  var OpenEndedActivityMaterialContent = ({
6050
6078
  answer,
6051
6079
  contentMap,
@@ -6075,7 +6103,7 @@ var OpenEndedActivityMaterialContent = ({
6075
6103
  documentType = retrieveDocumentTypeFromExtension(extension);
6076
6104
  }
6077
6105
  if (documentType === "IMAGE") {
6078
- return /* @__PURE__ */ jsx40("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ jsx40(
6106
+ return /* @__PURE__ */ jsx38("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ jsx38(
6079
6107
  BaseImage_default,
6080
6108
  {
6081
6109
  src: answerMapAnswer,
@@ -6085,9 +6113,9 @@ var OpenEndedActivityMaterialContent = ({
6085
6113
  }
6086
6114
  ) });
6087
6115
  } else if (documentType === "PDF") {
6088
- return /* @__PURE__ */ jsx40(BasePDF_default, { file: answerMapAnswer });
6116
+ return /* @__PURE__ */ jsx38(BasePDF_default, { file: answerMapAnswer });
6089
6117
  } else if (documentType === "AUDIO") {
6090
- return /* @__PURE__ */ jsx40("div", { className: "h-[56px]", children: /* @__PURE__ */ jsx40(
6118
+ return /* @__PURE__ */ jsx38("div", { className: "h-[56px]", children: /* @__PURE__ */ jsx38(
6091
6119
  "audio",
6092
6120
  {
6093
6121
  className: "h-full w-full rounded-catchup-xlarge",
@@ -6098,7 +6126,7 @@ var OpenEndedActivityMaterialContent = ({
6098
6126
  }
6099
6127
  ) });
6100
6128
  } else if (documentType === "TEXT") {
6101
- return /* @__PURE__ */ jsx40(
6129
+ return /* @__PURE__ */ jsx38(
6102
6130
  InputGroup_default,
6103
6131
  {
6104
6132
  type: "textarea",
@@ -6117,7 +6145,7 @@ var OpenEndedActivityMaterialContent = ({
6117
6145
  const answerMapAnswer = answerMap2["ANSWER"];
6118
6146
  const extension = answerMapAnswer.split(".").pop();
6119
6147
  const documentType = retrieveDocumentTypeFromExtension(extension);
6120
- return /* @__PURE__ */ jsx40(Fragment7, { children: documentType === "IMAGE" ? /* @__PURE__ */ jsx40("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ jsx40(
6148
+ return /* @__PURE__ */ jsx38(Fragment7, { children: documentType === "IMAGE" ? /* @__PURE__ */ jsx38("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ jsx38(
6121
6149
  BaseImage_default,
6122
6150
  {
6123
6151
  src: answerMapAnswer,
@@ -6125,11 +6153,11 @@ var OpenEndedActivityMaterialContent = ({
6125
6153
  size: "custom",
6126
6154
  className: "w-[80%] rounded-catchup-xlarge"
6127
6155
  }
6128
- ) }) : documentType === "PDF" ? /* @__PURE__ */ jsx40("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ jsx40(BasePDF_default, { file: answerMapAnswer }) }) : null });
6156
+ ) }) : documentType === "PDF" ? /* @__PURE__ */ jsx38("div", { className: "flex flex-col justify-center items-center my-5", children: /* @__PURE__ */ jsx38(BasePDF_default, { file: answerMapAnswer }) }) : null });
6129
6157
  };
6130
6158
  const RenderAudioContent = (answerMap2) => {
6131
6159
  const answerMapAnswer = answerMap2["ANSWER"];
6132
- return /* @__PURE__ */ jsx40("div", { className: "h-[56px]", children: /* @__PURE__ */ jsx40(
6160
+ return /* @__PURE__ */ jsx38("div", { className: "h-[56px]", children: /* @__PURE__ */ jsx38(
6133
6161
  "audio",
6134
6162
  {
6135
6163
  className: "h-full w-full rounded-catchup-xlarge",
@@ -6141,16 +6169,16 @@ var OpenEndedActivityMaterialContent = ({
6141
6169
  ) });
6142
6170
  };
6143
6171
  const answerMap = retrieveAnswerMap();
6144
- return /* @__PURE__ */ jsx40(Fragment7, { children: /* @__PURE__ */ jsxs27("div", { className: "", children: [
6145
- /* @__PURE__ */ jsx40("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx40("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
6146
- /* @__PURE__ */ jsx40("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx40(DividerLine_default, {}) }),
6172
+ return /* @__PURE__ */ jsx38(Fragment7, { children: /* @__PURE__ */ jsxs27("div", { className: "", children: [
6173
+ /* @__PURE__ */ jsx38("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx38("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
6174
+ /* @__PURE__ */ jsx38("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx38(DividerLine_default, {}) }),
6147
6175
  contentMap.type === "TEXT" ? RenderTextContent(answerMap) : contentMap.type === "IMAGE" ? RenderImageContent(answerMap) : contentMap.type === "AUDIO" ? RenderAudioContent(answerMap) : null
6148
6176
  ] }) });
6149
6177
  };
6150
6178
  var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
6151
6179
 
6152
6180
  // src/components/activities/OpenEndedActivityContent.tsx
6153
- import { Fragment as Fragment8, jsx as jsx41, jsxs as jsxs28 } from "react/jsx-runtime";
6181
+ import { Fragment as Fragment8, jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
6154
6182
  var OpenEndedActivityContent = ({
6155
6183
  answer,
6156
6184
  data,
@@ -6172,11 +6200,11 @@ var OpenEndedActivityContent = ({
6172
6200
  changeAnswer(answer2);
6173
6201
  };
6174
6202
  return /* @__PURE__ */ jsxs28("div", { className: "flex flex-row flex-wrap", children: [
6175
- /* @__PURE__ */ jsx41(
6203
+ /* @__PURE__ */ jsx39(
6176
6204
  "div",
6177
6205
  {
6178
6206
  className: `${showMaterialContent ? isFullScreen ? "w-full" : "w-full md:w-[40%]" : "w-full"}`,
6179
- children: /* @__PURE__ */ jsx41(
6207
+ children: /* @__PURE__ */ jsx39(
6180
6208
  ActivityBodyContent_default,
6181
6209
  {
6182
6210
  bodyMap: openEndedBodyMap,
@@ -6186,15 +6214,15 @@ var OpenEndedActivityContent = ({
6186
6214
  }
6187
6215
  ),
6188
6216
  showMaterialContent ? /* @__PURE__ */ jsxs28(Fragment8, { children: [
6189
- /* @__PURE__ */ jsx41(
6217
+ /* @__PURE__ */ jsx39(
6190
6218
  "div",
6191
6219
  {
6192
6220
  className: `${isFullScreen ? "contents" : "contents md:hidden"}`,
6193
- children: /* @__PURE__ */ jsx41(DividerLine_default, {})
6221
+ children: /* @__PURE__ */ jsx39(DividerLine_default, {})
6194
6222
  }
6195
6223
  ),
6196
- /* @__PURE__ */ jsx41("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx41(VerticalDividerLine_default, {}) }),
6197
- /* @__PURE__ */ jsx41("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx41(
6224
+ /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx39(VerticalDividerLine_default, {}) }),
6225
+ /* @__PURE__ */ jsx39("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx39(
6198
6226
  OpenEndedActivityMaterialContent_default,
6199
6227
  {
6200
6228
  answer,
@@ -6209,7 +6237,7 @@ var OpenEndedActivityContent = ({
6209
6237
  var OpenEndedActivityContent_default = OpenEndedActivityContent;
6210
6238
 
6211
6239
  // src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
6212
- import { useEffect as useEffect13, useState as useState22, useRef as useRef8 } from "react";
6240
+ import { useEffect as useEffect13, useState as useState22, useRef as useRef7 } from "react";
6213
6241
  import { InlineMath as InlineMath9 } from "react-katex";
6214
6242
 
6215
6243
  // src/hooks/useScreenSize.ts
@@ -6248,7 +6276,7 @@ var useScreenSize = () => {
6248
6276
  var useScreenSize_default = useScreenSize;
6249
6277
 
6250
6278
  // src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
6251
- import { jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
6279
+ import { jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
6252
6280
  var OrderingActivityMaterialContent = ({
6253
6281
  uniqueValue,
6254
6282
  answer,
@@ -6265,7 +6293,7 @@ var OrderingActivityMaterialContent = ({
6265
6293
  const [draggedElement, setDraggedElement] = useState22(
6266
6294
  null
6267
6295
  );
6268
- const dragElementRef = useRef8(null);
6296
+ const dragElementRef = useRef7(null);
6269
6297
  const [touchPosition, setTouchPosition] = useState22({
6270
6298
  x: 0,
6271
6299
  y: 0
@@ -6381,7 +6409,7 @@ var OrderingActivityMaterialContent = ({
6381
6409
  };
6382
6410
  const answerMap = retrieveAnswerMap();
6383
6411
  return /* @__PURE__ */ jsxs29("div", { className: "flex flex-row flex-wrap", onMouseUp: handleMouseUp, children: [
6384
- draggedKey && touchPosition.x > 0 && /* @__PURE__ */ jsx42(
6412
+ draggedKey && touchPosition.x > 0 && /* @__PURE__ */ jsx40(
6385
6413
  "div",
6386
6414
  {
6387
6415
  className: "fixed pointer-events-none z-50 opacity-80",
@@ -6390,16 +6418,16 @@ var OrderingActivityMaterialContent = ({
6390
6418
  top: `${touchPosition.y}px`,
6391
6419
  transform: "translate(-50%, -50%)"
6392
6420
  },
6393
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx42("div", { className: "border-catchup-blue border-2 px-3 py-2 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx42("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
6421
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx40("div", { className: "border-catchup-blue border-2 px-3 py-2 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx40("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
6394
6422
  materialMap[answerMap[draggedKey]]
6395
- ).map((inputPart, index) => /* @__PURE__ */ jsx42(
6423
+ ).map((inputPart, index) => /* @__PURE__ */ jsx40(
6396
6424
  "span",
6397
6425
  {
6398
6426
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
6399
- children: inputPart.isEquation ? /* @__PURE__ */ jsx42("span", { className: "text-xl", children: /* @__PURE__ */ jsx42(InlineMath9, { math: inputPart.value }) }) : inputPart.value
6427
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx40("span", { className: "text-xl", children: /* @__PURE__ */ jsx40(InlineMath9, { math: inputPart.value }) }) : inputPart.value
6400
6428
  },
6401
6429
  index
6402
- )) }) }) : /* @__PURE__ */ jsx42("div", { className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx42(
6430
+ )) }) }) : /* @__PURE__ */ jsx40("div", { className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ jsx40(
6403
6431
  ShowMaterialMediaByContentType_default,
6404
6432
  {
6405
6433
  contentType: contentMap.type,
@@ -6415,7 +6443,7 @@ var OrderingActivityMaterialContent = ({
6415
6443
  answerMap[materialKey] + "",
6416
6444
  index + ""
6417
6445
  );
6418
- return /* @__PURE__ */ jsx42("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ jsxs29(
6446
+ return /* @__PURE__ */ jsx40("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ jsxs29(
6419
6447
  "div",
6420
6448
  {
6421
6449
  className: `flex flex-row items-center my-4 mx-2`,
@@ -6423,14 +6451,14 @@ var OrderingActivityMaterialContent = ({
6423
6451
  marginTop: view === "PC" ? calculateMarginTop(parseFloat(materialKey)) : 0
6424
6452
  },
6425
6453
  children: [
6426
- /* @__PURE__ */ jsx42("div", { className: "mr-3", children: /* @__PURE__ */ jsx42("div", { className: "h-catchup-activity-box-item w-catchup-activity-box-item flex flex-col items-center justify-center cursor-pointer transition-all duration-300 overflow-y-auto", children: /* @__PURE__ */ jsx42(
6454
+ /* @__PURE__ */ jsx40("div", { className: "mr-3", children: /* @__PURE__ */ jsx40("div", { className: "h-catchup-activity-box-item w-catchup-activity-box-item flex flex-col items-center justify-center cursor-pointer transition-all duration-300 overflow-y-auto", children: /* @__PURE__ */ jsx40(
6427
6455
  "div",
6428
6456
  {
6429
6457
  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]`,
6430
- children: /* @__PURE__ */ jsx42("p", { className: "", children: parseFloat(materialKey) + 1 })
6458
+ children: /* @__PURE__ */ jsx40("p", { className: "", children: parseFloat(materialKey) + 1 })
6431
6459
  }
6432
6460
  ) }) }),
6433
- /* @__PURE__ */ jsx42(
6461
+ /* @__PURE__ */ jsx40(
6434
6462
  "div",
6435
6463
  {
6436
6464
  ref: draggedKey === materialKey ? dragElementRef : null,
@@ -6442,21 +6470,21 @@ var OrderingActivityMaterialContent = ({
6442
6470
  onTouchStart: (e) => handleTouchStart(e, materialKey, e.currentTarget),
6443
6471
  onTouchMove: handleTouchMove,
6444
6472
  onTouchEnd: handleTouchEnd,
6445
- children: /* @__PURE__ */ jsx42(
6473
+ children: /* @__PURE__ */ jsx40(
6446
6474
  "div",
6447
6475
  {
6448
6476
  className: `${contentMap.type === "TEXT" ? "h-catchup-activity-text-box-item" : "h-catchup-activity-media-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"}`,
6449
6477
  onClick: () => handleSelectItem(materialKey),
6450
- children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx42("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
6478
+ children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx40("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
6451
6479
  materialMap[answerMap[materialKey]]
6452
- ).map((inputPart, index2) => /* @__PURE__ */ jsx42(
6480
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx40(
6453
6481
  "span",
6454
6482
  {
6455
6483
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
6456
- children: inputPart.isEquation ? /* @__PURE__ */ jsx42("span", { className: "text-xl", children: /* @__PURE__ */ jsx42(InlineMath9, { math: inputPart.value }) }) : inputPart.value
6484
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx40("span", { className: "text-xl", children: /* @__PURE__ */ jsx40(InlineMath9, { math: inputPart.value }) }) : inputPart.value
6457
6485
  },
6458
6486
  index2
6459
- )) }) : /* @__PURE__ */ jsx42(
6487
+ )) }) : /* @__PURE__ */ jsx40(
6460
6488
  ShowMaterialMediaByContentType_default,
6461
6489
  {
6462
6490
  contentType: contentMap.type,
@@ -6478,7 +6506,7 @@ var OrderingActivityMaterialContent = ({
6478
6506
  var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
6479
6507
 
6480
6508
  // src/components/activities/OrderingActivityContent.tsx
6481
- import { Fragment as Fragment9, jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
6509
+ import { Fragment as Fragment9, jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
6482
6510
  var OrderingActivityContent = ({
6483
6511
  answer,
6484
6512
  data,
@@ -6503,15 +6531,15 @@ var OrderingActivityContent = ({
6503
6531
  changeAnswer(answer2);
6504
6532
  };
6505
6533
  return /* @__PURE__ */ jsxs30(Fragment9, { children: [
6506
- /* @__PURE__ */ jsx43(
6534
+ /* @__PURE__ */ jsx41(
6507
6535
  ActivityBodyContent_default,
6508
6536
  {
6509
6537
  bodyMap: orderingBodyMap,
6510
6538
  templateType: "ORDERING"
6511
6539
  }
6512
6540
  ),
6513
- /* @__PURE__ */ jsx43(DividerLine_default, {}),
6514
- /* @__PURE__ */ jsx43(
6541
+ /* @__PURE__ */ jsx41(DividerLine_default, {}),
6542
+ /* @__PURE__ */ jsx41(
6515
6543
  OrderingActivityMaterialContent_default,
6516
6544
  {
6517
6545
  uniqueValue: JSON.stringify(data.contentMap),
@@ -6531,7 +6559,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
6531
6559
  // src/components/activities/material-contents/TrueFalseActivityMaterialContent.tsx
6532
6560
  import { useEffect as useEffect14, useState as useState23 } from "react";
6533
6561
  import { InlineMath as InlineMath10 } from "react-katex";
6534
- import { Fragment as Fragment10, jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
6562
+ import { Fragment as Fragment10, jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
6535
6563
  var TrueFalseActivityMaterialContent = ({
6536
6564
  uniqueValue,
6537
6565
  answer,
@@ -6585,13 +6613,13 @@ var TrueFalseActivityMaterialContent = ({
6585
6613
  };
6586
6614
  const answerMap = retrieveAnswerMap();
6587
6615
  return /* @__PURE__ */ jsxs31("div", { className: "", children: [
6588
- /* @__PURE__ */ jsx44("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx44("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
6589
- /* @__PURE__ */ jsx44("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx44(DividerLine_default, {}) }),
6616
+ /* @__PURE__ */ jsx42("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx42("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
6617
+ /* @__PURE__ */ jsx42("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx42(DividerLine_default, {}) }),
6590
6618
  /* @__PURE__ */ jsxs31("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
6591
- /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
6592
- /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
6619
+ /* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
6620
+ /* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
6593
6621
  ] }),
6594
- checkCanAnswerQuestion() ? /* @__PURE__ */ jsx44("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
6622
+ checkCanAnswerQuestion() ? /* @__PURE__ */ jsx42("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
6595
6623
  const correctAnswer = materialMap.trueList.find(
6596
6624
  (trueItem) => trueItem === shuffleOption
6597
6625
  ) !== void 0 ? "TRUE" : "FALSE";
@@ -6607,16 +6635,16 @@ var TrueFalseActivityMaterialContent = ({
6607
6635
  {
6608
6636
  className: `w-full flex flex-row items-center justify-center cursor-pointer my-2 ${learnerAnswerState === "CORRECT" ? "border-2 border-catchup-green rounded-catchup-xlarge p-2" : learnerAnswerState === "INCORRECT" ? "border-2 border-catchup-red rounded-catchup-xlarge p-2" : ""}`,
6609
6637
  children: [
6610
- /* @__PURE__ */ jsx44("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx44("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
6638
+ /* @__PURE__ */ jsx42("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx42("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
6611
6639
  shuffleOption
6612
- ).map((inputPart, index2) => /* @__PURE__ */ jsx44(
6640
+ ).map((inputPart, index2) => /* @__PURE__ */ jsx42(
6613
6641
  "span",
6614
6642
  {
6615
6643
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
6616
- children: inputPart.isEquation ? /* @__PURE__ */ jsx44("span", { className: "text-xl", children: /* @__PURE__ */ jsx44(InlineMath10, { math: inputPart.value }) }) : inputPart.value
6644
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx42("span", { className: "text-xl", children: /* @__PURE__ */ jsx42(InlineMath10, { math: inputPart.value }) }) : inputPart.value
6617
6645
  },
6618
6646
  index2
6619
- )) }) : /* @__PURE__ */ jsx44(
6647
+ )) }) : /* @__PURE__ */ jsx42(
6620
6648
  ShowMaterialMediaByContentType_default,
6621
6649
  {
6622
6650
  contentType: contentMap.type,
@@ -6626,7 +6654,7 @@ var TrueFalseActivityMaterialContent = ({
6626
6654
  `${uniqueValue}-${index}`
6627
6655
  ) }),
6628
6656
  /* @__PURE__ */ jsxs31("div", { className: "flex flex-row items-center gap-x-2", children: [
6629
- /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx44(
6657
+ /* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx42(
6630
6658
  BaseImage_default,
6631
6659
  {
6632
6660
  src: answerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
@@ -6637,7 +6665,7 @@ var TrueFalseActivityMaterialContent = ({
6637
6665
  }
6638
6666
  }
6639
6667
  ) }) }),
6640
- /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx44(
6668
+ /* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx42(
6641
6669
  BaseImage_default,
6642
6670
  {
6643
6671
  src: answerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
@@ -6655,12 +6683,12 @@ var TrueFalseActivityMaterialContent = ({
6655
6683
  );
6656
6684
  }) }) : /* @__PURE__ */ jsxs31(Fragment10, { children: [
6657
6685
  answerMap.trueList.map((item) => /* @__PURE__ */ jsxs31("div", { className: "flex flex-row items-center gap-x-2", children: [
6658
- /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("p", { children: item }) }),
6659
- /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "underline", children: i18n_default.t("true") }) })
6686
+ /* @__PURE__ */ jsx42("div", { className: "flex-1", children: /* @__PURE__ */ jsx42("p", { children: item }) }),
6687
+ /* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "underline", children: i18n_default.t("true") }) })
6660
6688
  ] })),
6661
6689
  answerMap.falseList.map((item) => /* @__PURE__ */ jsxs31("div", { className: "flex flex-row items-center gap-x-2", children: [
6662
- /* @__PURE__ */ jsx44("div", { className: "flex-1", children: /* @__PURE__ */ jsx44("p", { children: item }) }),
6663
- /* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("p", { className: "underline", children: i18n_default.t("false") }) })
6690
+ /* @__PURE__ */ jsx42("div", { className: "flex-1", children: /* @__PURE__ */ jsx42("p", { children: item }) }),
6691
+ /* @__PURE__ */ jsx42("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx42("p", { className: "underline", children: i18n_default.t("false") }) })
6664
6692
  ] }))
6665
6693
  ] })
6666
6694
  ] });
@@ -6668,7 +6696,7 @@ var TrueFalseActivityMaterialContent = ({
6668
6696
  var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
6669
6697
 
6670
6698
  // src/components/activities/TrueFalseActivityContent.tsx
6671
- import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
6699
+ import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
6672
6700
  var TrueFalseActivityContent = ({
6673
6701
  answer,
6674
6702
  data,
@@ -6720,16 +6748,16 @@ var TrueFalseActivityContent = ({
6720
6748
  changeAnswer(answer2);
6721
6749
  };
6722
6750
  return /* @__PURE__ */ jsxs32("div", { className: "flex flex-row flex-wrap", children: [
6723
- /* @__PURE__ */ jsx45("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%]"}`, children: /* @__PURE__ */ jsx45(
6751
+ /* @__PURE__ */ jsx43("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%]"}`, children: /* @__PURE__ */ jsx43(
6724
6752
  ActivityBodyContent_default,
6725
6753
  {
6726
6754
  bodyMap: trueFalseBodyMap,
6727
6755
  templateType: "GROUPING"
6728
6756
  }
6729
6757
  ) }),
6730
- /* @__PURE__ */ jsx45("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx45(DividerLine_default, {}) }),
6731
- /* @__PURE__ */ jsx45("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx45(VerticalDividerLine_default, {}) }),
6732
- /* @__PURE__ */ jsx45("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx45(
6758
+ /* @__PURE__ */ jsx43("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ jsx43(DividerLine_default, {}) }),
6759
+ /* @__PURE__ */ jsx43("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ jsx43(VerticalDividerLine_default, {}) }),
6760
+ /* @__PURE__ */ jsx43("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ jsx43(
6733
6761
  TrueFalseActivityMaterialContent_default,
6734
6762
  {
6735
6763
  uniqueValue: JSON.stringify(data.contentMap),
@@ -6748,7 +6776,7 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
6748
6776
 
6749
6777
  // src/components/activities/solution-contents/ActivitySolutionContent.tsx
6750
6778
  import { InlineMath as InlineMath11 } from "react-katex";
6751
- import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
6779
+ import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
6752
6780
  var ActivitySolutionContent = ({
6753
6781
  activityTemplateType,
6754
6782
  data
@@ -6778,8 +6806,8 @@ var ActivitySolutionContent = ({
6778
6806
  return null;
6779
6807
  }
6780
6808
  if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
6781
- return /* @__PURE__ */ jsx46("div", { className: "mx-2", children: /* @__PURE__ */ jsxs33("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
6782
- /* @__PURE__ */ jsx46("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
6809
+ return /* @__PURE__ */ jsx44("div", { className: "mx-2", children: /* @__PURE__ */ jsxs33("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
6810
+ /* @__PURE__ */ jsx44("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
6783
6811
  Object.keys(solutionMap).map((key) => {
6784
6812
  let currentItem;
6785
6813
  try {
@@ -6789,12 +6817,12 @@ var ActivitySolutionContent = ({
6789
6817
  return null;
6790
6818
  }
6791
6819
  const { value } = currentItem;
6792
- return /* @__PURE__ */ jsx46("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
6793
- (inputPart, partIndex) => /* @__PURE__ */ jsx46(
6820
+ return /* @__PURE__ */ jsx44("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
6821
+ (inputPart, partIndex) => /* @__PURE__ */ jsx44(
6794
6822
  "span",
6795
6823
  {
6796
6824
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
6797
- children: inputPart.isEquation ? /* @__PURE__ */ jsx46("span", { className: "text-xl", children: /* @__PURE__ */ jsx46(InlineMath11, { math: inputPart.value }) }) : inputPart.value
6825
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx44("span", { className: "text-xl", children: /* @__PURE__ */ jsx44(InlineMath11, { math: inputPart.value }) }) : inputPart.value
6798
6826
  },
6799
6827
  `${key}_part_${partIndex}`
6800
6828
  )
@@ -6806,7 +6834,7 @@ var ActivitySolutionContent_default = ActivitySolutionContent;
6806
6834
 
6807
6835
  // src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx
6808
6836
  import { InlineMath as InlineMath12 } from "react-katex";
6809
- import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
6837
+ import { jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
6810
6838
  var ActivityEvaluationRubricContent = ({
6811
6839
  activityTemplateType,
6812
6840
  data
@@ -6836,21 +6864,21 @@ var ActivityEvaluationRubricContent = ({
6836
6864
  }
6837
6865
  if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
6838
6866
  return null;
6839
- return /* @__PURE__ */ jsx47("div", { className: "mx-2", children: /* @__PURE__ */ jsxs34("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
6840
- /* @__PURE__ */ jsx47("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
6867
+ return /* @__PURE__ */ jsx45("div", { className: "mx-2", children: /* @__PURE__ */ jsxs34("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
6868
+ /* @__PURE__ */ jsx45("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
6841
6869
  Object.keys(evaluationRubricMap).map((key, index) => {
6842
6870
  const currentItem = JSON.parse(evaluationRubricMap[key]);
6843
6871
  const { value } = currentItem;
6844
- return /* @__PURE__ */ jsx47(
6872
+ return /* @__PURE__ */ jsx45(
6845
6873
  "p",
6846
6874
  {
6847
6875
  className: "my-1 text-xl whitespace-pre-wrap",
6848
6876
  children: constructInputWithSpecialExpressionList(value).map(
6849
- (inputPart, index2) => /* @__PURE__ */ jsx47(
6877
+ (inputPart, index2) => /* @__PURE__ */ jsx45(
6850
6878
  "span",
6851
6879
  {
6852
6880
  className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
6853
- children: inputPart.isEquation ? /* @__PURE__ */ jsx47("span", { className: "text-xl", children: /* @__PURE__ */ jsx47(InlineMath12, { math: inputPart.value }) }) : inputPart.value
6881
+ children: inputPart.isEquation ? /* @__PURE__ */ jsx45("span", { className: "text-xl", children: /* @__PURE__ */ jsx45(InlineMath12, { math: inputPart.value }) }) : inputPart.value
6854
6882
  },
6855
6883
  index2
6856
6884
  )
@@ -6867,13 +6895,13 @@ var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
6867
6895
  import { useEffect as useEffect15, useState as useState24 } from "react";
6868
6896
 
6869
6897
  // src/components/boxes/SelectionBox.tsx
6870
- import { jsx as jsx48, jsxs as jsxs35 } from "react/jsx-runtime";
6898
+ import { jsx as jsx46, jsxs as jsxs35 } from "react/jsx-runtime";
6871
6899
  var SelectionBox = ({
6872
6900
  optionList,
6873
6901
  selectedId,
6874
6902
  handleSelectOnClick
6875
6903
  }) => {
6876
- return /* @__PURE__ */ jsx48("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx48(
6904
+ return /* @__PURE__ */ jsx46("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx46(
6877
6905
  "div",
6878
6906
  {
6879
6907
  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`,
@@ -6887,7 +6915,7 @@ var SelectionBox = ({
6887
6915
  children: [
6888
6916
  option.icon,
6889
6917
  /* @__PURE__ */ jsxs35("div", { className: "flex-1 flex flex-col items-center", children: [
6890
- /* @__PURE__ */ jsx48("p", { children: option.text }),
6918
+ /* @__PURE__ */ jsx46("p", { children: option.text }),
6891
6919
  option.subText ? /* @__PURE__ */ jsxs35("p", { className: "text-md", children: [
6892
6920
  "(",
6893
6921
  option.subText,
@@ -6904,7 +6932,7 @@ var SelectionBox = ({
6904
6932
  var SelectionBox_default = SelectionBox;
6905
6933
 
6906
6934
  // src/components/activities/ActivityPreviewByData.tsx
6907
- import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
6935
+ import { Fragment as Fragment11, jsx as jsx47, jsxs as jsxs36 } from "react/jsx-runtime";
6908
6936
  var ActivityPreviewByData = ({
6909
6937
  data,
6910
6938
  showType,
@@ -6965,8 +6993,8 @@ var ActivityPreviewByData = ({
6965
6993
  return /* @__PURE__ */ jsxs36("div", { children: [
6966
6994
  showType ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
6967
6995
  /* @__PURE__ */ jsxs36("div", { className: "mb-4", children: [
6968
- showDescription ? /* @__PURE__ */ jsx49("div", { className: "my-2", children: /* @__PURE__ */ jsx49("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
6969
- /* @__PURE__ */ jsx49(
6996
+ showDescription ? /* @__PURE__ */ jsx47("div", { className: "my-2", children: /* @__PURE__ */ jsx47("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
6997
+ /* @__PURE__ */ jsx47(
6970
6998
  SelectionBox_default,
6971
6999
  {
6972
7000
  optionList,
@@ -6977,9 +7005,9 @@ var ActivityPreviewByData = ({
6977
7005
  }
6978
7006
  )
6979
7007
  ] }),
6980
- /* @__PURE__ */ jsx49(DividerLine_default, {})
7008
+ /* @__PURE__ */ jsx47(DividerLine_default, {})
6981
7009
  ] }) : null,
6982
- selectedType ? /* @__PURE__ */ jsx49("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7010
+ selectedType ? /* @__PURE__ */ jsx47("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ jsx47(
6983
7011
  OrderingActivityContent_default,
6984
7012
  {
6985
7013
  answer,
@@ -6993,7 +7021,7 @@ var ActivityPreviewByData = ({
6993
7021
  showCorrectAnswer: true,
6994
7022
  isFullScreen
6995
7023
  }
6996
- ) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7024
+ ) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ jsx47(
6997
7025
  DropdownActivityContent_default,
6998
7026
  {
6999
7027
  answer,
@@ -7007,7 +7035,7 @@ var ActivityPreviewByData = ({
7007
7035
  showCorrectAnswer: true,
7008
7036
  isFullScreen
7009
7037
  }
7010
- ) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7038
+ ) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ jsx47(
7011
7039
  MCSAActivityContent_default,
7012
7040
  {
7013
7041
  answer,
@@ -7021,7 +7049,7 @@ var ActivityPreviewByData = ({
7021
7049
  showCorrectAnswer: true,
7022
7050
  isFullScreen
7023
7051
  }
7024
- ) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7052
+ ) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ jsx47(
7025
7053
  MCMAActivityContent_default,
7026
7054
  {
7027
7055
  answer,
@@ -7035,7 +7063,7 @@ var ActivityPreviewByData = ({
7035
7063
  showCorrectAnswer: true,
7036
7064
  isFullScreen
7037
7065
  }
7038
- ) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7066
+ ) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ jsx47(
7039
7067
  MatchingActivityContent_default,
7040
7068
  {
7041
7069
  answer,
@@ -7048,7 +7076,7 @@ var ActivityPreviewByData = ({
7048
7076
  isPreview: true,
7049
7077
  showCorrectAnswer: true
7050
7078
  }
7051
- ) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7079
+ ) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ jsx47(
7052
7080
  GroupingActivityContent_default,
7053
7081
  {
7054
7082
  answer,
@@ -7061,7 +7089,7 @@ var ActivityPreviewByData = ({
7061
7089
  isPreview: true,
7062
7090
  showCorrectAnswer: true
7063
7091
  }
7064
- ) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7092
+ ) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ jsx47(
7065
7093
  FillInTheBlanksActivityContent_default,
7066
7094
  {
7067
7095
  answer,
@@ -7075,7 +7103,7 @@ var ActivityPreviewByData = ({
7075
7103
  showCorrectAnswer: true,
7076
7104
  isFullScreen
7077
7105
  }
7078
- ) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ jsx49(
7106
+ ) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ jsx47(
7079
7107
  OpenEndedActivityContent_default,
7080
7108
  {
7081
7109
  answer,
@@ -7087,7 +7115,7 @@ var ActivityPreviewByData = ({
7087
7115
  isPreview: true,
7088
7116
  isFullScreen
7089
7117
  }
7090
- ) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ jsx49(
7118
+ ) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ jsx47(
7091
7119
  TrueFalseActivityContent_default,
7092
7120
  {
7093
7121
  answer,
@@ -7102,14 +7130,14 @@ var ActivityPreviewByData = ({
7102
7130
  isFullScreen
7103
7131
  }
7104
7132
  ) : null }, selectedType) : null,
7105
- selectedType && showSolution ? /* @__PURE__ */ jsx49("div", { className: "my-4", children: /* @__PURE__ */ jsx49(
7133
+ selectedType && showSolution ? /* @__PURE__ */ jsx47("div", { className: "my-4", children: /* @__PURE__ */ jsx47(
7106
7134
  ActivitySolutionContent_default,
7107
7135
  {
7108
7136
  activityTemplateType: selectedType,
7109
7137
  data
7110
7138
  }
7111
7139
  ) }) : null,
7112
- selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx49("div", { className: "my-4", children: /* @__PURE__ */ jsx49(
7140
+ selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx47("div", { className: "my-4", children: /* @__PURE__ */ jsx47(
7113
7141
  ActivityEvaluationRubricContent_default,
7114
7142
  {
7115
7143
  activityTemplateType: selectedType,
@@ -7122,7 +7150,7 @@ var ActivityPreviewByData_default = ActivityPreviewByData;
7122
7150
 
7123
7151
  // src/components/activities/ActivityPreviewByAnswerData.tsx
7124
7152
  import { useEffect as useEffect16, useState as useState25 } from "react";
7125
- import { Fragment as Fragment12, jsx as jsx50, jsxs as jsxs37 } from "react/jsx-runtime";
7153
+ import { Fragment as Fragment12, jsx as jsx48, jsxs as jsxs37 } from "react/jsx-runtime";
7126
7154
  var ActivityPreviewByAnswerData = ({
7127
7155
  data,
7128
7156
  showType = true,
@@ -7230,28 +7258,28 @@ var ActivityPreviewByAnswerData = ({
7230
7258
  };
7231
7259
  switch (selectedType) {
7232
7260
  case "ORDERING":
7233
- return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsx50(OrderingActivityContent_default, __spreadValues({}, commonProps)) : null;
7261
+ return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsx48(OrderingActivityContent_default, __spreadValues({}, commonProps)) : null;
7234
7262
  case "DROPDOWN":
7235
- return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsx50(DropdownActivityContent_default, __spreadValues({}, commonProps)) : null;
7263
+ return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsx48(DropdownActivityContent_default, __spreadValues({}, commonProps)) : null;
7236
7264
  case "MCSA":
7237
- return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsx50(MCSAActivityContent_default, __spreadValues({}, commonProps)) : null;
7265
+ return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsx48(MCSAActivityContent_default, __spreadValues({}, commonProps)) : null;
7238
7266
  case "MCMA":
7239
- return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsx50(MCMAActivityContent_default, __spreadValues({}, commonProps)) : null;
7267
+ return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsx48(MCMAActivityContent_default, __spreadValues({}, commonProps)) : null;
7240
7268
  case "MATCHING":
7241
- return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsx50(MatchingActivityContent_default, __spreadValues({}, commonProps)) : null;
7269
+ return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsx48(MatchingActivityContent_default, __spreadValues({}, commonProps)) : null;
7242
7270
  case "GROUPING":
7243
- return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsx50(GroupingActivityContent_default, __spreadValues({}, commonProps)) : null;
7271
+ return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsx48(GroupingActivityContent_default, __spreadValues({}, commonProps)) : null;
7244
7272
  case "FILL_IN_THE_BLANKS":
7245
- return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsx50(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps)) : null;
7273
+ return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsx48(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps)) : null;
7246
7274
  case "OPEN_ENDED":
7247
- return data.openEndedBodyMap ? /* @__PURE__ */ jsx50(
7275
+ return data.openEndedBodyMap ? /* @__PURE__ */ jsx48(
7248
7276
  OpenEndedActivityContent_default,
7249
7277
  __spreadProps(__spreadValues({}, commonProps), {
7250
7278
  showMaterialContent: true
7251
7279
  })
7252
7280
  ) : null;
7253
7281
  case "TRUE_FALSE":
7254
- return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsx50(TrueFalseActivityContent_default, __spreadValues({}, commonProps)) : null;
7282
+ return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsx48(TrueFalseActivityContent_default, __spreadValues({}, commonProps)) : null;
7255
7283
  default:
7256
7284
  return null;
7257
7285
  }
@@ -7260,8 +7288,8 @@ var ActivityPreviewByAnswerData = ({
7260
7288
  return /* @__PURE__ */ jsxs37("div", { children: [
7261
7289
  showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(Fragment12, { children: [
7262
7290
  /* @__PURE__ */ jsxs37("div", { className: "mb-4", children: [
7263
- showDescription ? /* @__PURE__ */ jsx50("div", { className: "my-2", children: /* @__PURE__ */ jsx50("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
7264
- /* @__PURE__ */ jsx50(
7291
+ showDescription ? /* @__PURE__ */ jsx48("div", { className: "my-2", children: /* @__PURE__ */ jsx48("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
7292
+ /* @__PURE__ */ jsx48(
7265
7293
  SelectionBox_default,
7266
7294
  {
7267
7295
  optionList,
@@ -7272,20 +7300,20 @@ var ActivityPreviewByAnswerData = ({
7272
7300
  }
7273
7301
  )
7274
7302
  ] }),
7275
- /* @__PURE__ */ jsx50(DividerLine_default, {})
7303
+ /* @__PURE__ */ jsx48(DividerLine_default, {})
7276
7304
  ] }) : null,
7277
7305
  /* @__PURE__ */ jsxs37("div", { className: "flex flex-col my-2 w-full p-5", children: [
7278
- ((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ jsx50(ActivityEmptyContent_default, {}) : null,
7279
- selectedType ? /* @__PURE__ */ jsx50("div", { children: RenderSelectedActivityContent() }, selectedType) : null
7306
+ ((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ jsx48(ActivityEmptyContent_default, {}) : null,
7307
+ selectedType ? /* @__PURE__ */ jsx48("div", { children: RenderSelectedActivityContent() }, selectedType) : null
7280
7308
  ] }),
7281
- selectedType && showSolution ? /* @__PURE__ */ jsx50("div", { className: "my-4", children: /* @__PURE__ */ jsx50(
7309
+ selectedType && showSolution ? /* @__PURE__ */ jsx48("div", { className: "my-4", children: /* @__PURE__ */ jsx48(
7282
7310
  ActivitySolutionContent_default,
7283
7311
  {
7284
7312
  activityTemplateType: selectedType,
7285
7313
  data
7286
7314
  }
7287
7315
  ) }) : null,
7288
- selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx50("div", { className: "my-4", children: /* @__PURE__ */ jsx50(
7316
+ selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx48("div", { className: "my-4", children: /* @__PURE__ */ jsx48(
7289
7317
  ActivityEvaluationRubricContent_default,
7290
7318
  {
7291
7319
  activityTemplateType: selectedType,
@@ -7297,16 +7325,16 @@ var ActivityPreviewByAnswerData = ({
7297
7325
  var ActivityPreviewByAnswerData_default = ActivityPreviewByAnswerData;
7298
7326
 
7299
7327
  // src/components/errors/StatusError.tsx
7300
- import { jsx as jsx51, jsxs as jsxs38 } from "react/jsx-runtime";
7328
+ import { jsx as jsx49, jsxs as jsxs38 } from "react/jsx-runtime";
7301
7329
  var StatusError = ({
7302
7330
  statusCode,
7303
7331
  statusText,
7304
7332
  textSize
7305
7333
  }) => {
7306
7334
  return /* @__PURE__ */ jsxs38("div", { className: "flex flex-col justify-center items-center", children: [
7307
- /* @__PURE__ */ jsx51("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
7335
+ /* @__PURE__ */ jsx49("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
7308
7336
  /* @__PURE__ */ jsxs38("div", { className: "text-center my-5", children: [
7309
- /* @__PURE__ */ jsx51("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
7337
+ /* @__PURE__ */ jsx49("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
7310
7338
  /* @__PURE__ */ jsxs38("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
7311
7339
  "(",
7312
7340
  statusCode ? `${statusCode} - ` : null,
@@ -7319,9 +7347,9 @@ var StatusError = ({
7319
7347
  var StatusError_default = StatusError;
7320
7348
 
7321
7349
  // src/components/dividers/BlueVerticalDividerLine.tsx
7322
- import { jsx as jsx52 } from "react/jsx-runtime";
7350
+ import { jsx as jsx50 } from "react/jsx-runtime";
7323
7351
  var BlueVerticalDividerLine = ({ opacity }) => {
7324
- return /* @__PURE__ */ jsx52(
7352
+ return /* @__PURE__ */ jsx50(
7325
7353
  "div",
7326
7354
  {
7327
7355
  className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
@@ -7331,7 +7359,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
7331
7359
  var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
7332
7360
 
7333
7361
  // src/components/groups/LeftTextRightInputGroup.tsx
7334
- import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
7362
+ import { jsx as jsx51, jsxs as jsxs39 } from "react/jsx-runtime";
7335
7363
  var LeftTextRightInputGroup = ({
7336
7364
  type,
7337
7365
  title,
@@ -7342,8 +7370,8 @@ var LeftTextRightInputGroup = ({
7342
7370
  errorText
7343
7371
  }) => {
7344
7372
  return /* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-row mx-2", children: [
7345
- /* @__PURE__ */ jsx53("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ jsx53("p", { children: title }) }),
7346
- /* @__PURE__ */ jsx53("div", { className: "flex-1", children: /* @__PURE__ */ jsx53(
7373
+ /* @__PURE__ */ jsx51("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ jsx51("p", { children: title }) }),
7374
+ /* @__PURE__ */ jsx51("div", { className: "flex-1", children: /* @__PURE__ */ jsx51(
7347
7375
  InputGroup_default,
7348
7376
  {
7349
7377
  type,
@@ -7360,7 +7388,7 @@ var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
7360
7388
 
7361
7389
  // src/components/groups/PageTravelGroup.tsx
7362
7390
  import { useEffect as useEffect17, useState as useState26 } from "react";
7363
- import { jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
7391
+ import { jsx as jsx52, jsxs as jsxs40 } from "react/jsx-runtime";
7364
7392
  var PageTravelGroup = ({
7365
7393
  isImageProcessing,
7366
7394
  handleImageProcessing,
@@ -7379,7 +7407,7 @@ var PageTravelGroup = ({
7379
7407
  setNewPageNumber(pageNumber + 1);
7380
7408
  }, [pageNumber]);
7381
7409
  return /* @__PURE__ */ jsxs40("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
7382
- pageNumber === 0 ? null : /* @__PURE__ */ jsx54("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx54(
7410
+ pageNumber === 0 ? null : /* @__PURE__ */ jsx52("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx52(
7383
7411
  BaseImage_default,
7384
7412
  {
7385
7413
  size: "small",
@@ -7397,7 +7425,7 @@ var PageTravelGroup = ({
7397
7425
  }
7398
7426
  }
7399
7427
  ) }),
7400
- Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ jsx54("div", { className: "px-2", children: /* @__PURE__ */ jsx54(
7428
+ Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ jsx52("div", { className: "px-2", children: /* @__PURE__ */ jsx52(
7401
7429
  "p",
7402
7430
  {
7403
7431
  className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
@@ -7412,7 +7440,7 @@ var PageTravelGroup = ({
7412
7440
  children: index + 1
7413
7441
  }
7414
7442
  ) }, index)),
7415
- totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ jsx54("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx54(
7443
+ totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ jsx52("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx52(
7416
7444
  BaseImage_default,
7417
7445
  {
7418
7446
  size: "small",
@@ -7430,7 +7458,7 @@ var PageTravelGroup = ({
7430
7458
  }
7431
7459
  }
7432
7460
  ) }),
7433
- /* @__PURE__ */ jsx54("div", { children: /* @__PURE__ */ jsx54(
7461
+ /* @__PURE__ */ jsx52("div", { children: /* @__PURE__ */ jsx52(
7434
7462
  "input",
7435
7463
  {
7436
7464
  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`,
@@ -7454,14 +7482,14 @@ var PageTravelGroup = ({
7454
7482
  var PageTravelGroup_default = PageTravelGroup;
7455
7483
 
7456
7484
  // src/components/boxes/SelectionCheckbox.tsx
7457
- import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
7485
+ import { jsx as jsx53, jsxs as jsxs41 } from "react/jsx-runtime";
7458
7486
  var SelectionCheckbox = ({
7459
7487
  optionList,
7460
7488
  selectedIdList,
7461
7489
  handleSelectOnClick,
7462
7490
  handleRemoveOnClick
7463
7491
  }) => {
7464
- return /* @__PURE__ */ jsx55("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx55(
7492
+ return /* @__PURE__ */ jsx53("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx53(
7465
7493
  "div",
7466
7494
  {
7467
7495
  className: `${selectedIdList.findIndex(
@@ -7483,7 +7511,7 @@ var SelectionCheckbox = ({
7483
7511
  (selectedId) => selectedId === option.id
7484
7512
  ) > -1 ? "opacity-100" : "opacity-50"}`,
7485
7513
  children: [
7486
- /* @__PURE__ */ jsx55(
7514
+ /* @__PURE__ */ jsx53(
7487
7515
  BaseImage_default,
7488
7516
  {
7489
7517
  src: selectedIdList.findIndex(
@@ -7493,7 +7521,7 @@ var SelectionCheckbox = ({
7493
7521
  size: "small"
7494
7522
  }
7495
7523
  ),
7496
- /* @__PURE__ */ jsx55("div", { className: "flex-1", children: /* @__PURE__ */ jsx55("p", { children: option.text }) })
7524
+ /* @__PURE__ */ jsx53("div", { className: "flex-1", children: /* @__PURE__ */ jsx53("p", { children: option.text }) })
7497
7525
  ]
7498
7526
  }
7499
7527
  )
@@ -7504,7 +7532,7 @@ var SelectionCheckbox = ({
7504
7532
  var SelectionCheckbox_default = SelectionCheckbox;
7505
7533
 
7506
7534
  // src/components/tabs/SelectionTab.tsx
7507
- import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
7535
+ import { jsx as jsx54, jsxs as jsxs42 } from "react/jsx-runtime";
7508
7536
  var SelectionTab = ({
7509
7537
  optionList,
7510
7538
  selectedId,
@@ -7514,7 +7542,7 @@ var SelectionTab = ({
7514
7542
  textColor,
7515
7543
  borderColor
7516
7544
  }) => {
7517
- return /* @__PURE__ */ jsx56("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsxs42(
7545
+ return /* @__PURE__ */ jsx54("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsxs42(
7518
7546
  "div",
7519
7547
  {
7520
7548
  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`,
@@ -7522,8 +7550,8 @@ var SelectionTab = ({
7522
7550
  handleSelectOnClick(option.id);
7523
7551
  },
7524
7552
  children: [
7525
- /* @__PURE__ */ jsx56("p", { className: "text-lg", children: option.title }),
7526
- option.subTitle ? /* @__PURE__ */ jsx56("p", { className: "text-md", children: option.subTitle }) : null
7553
+ /* @__PURE__ */ jsx54("p", { className: "text-lg", children: option.title }),
7554
+ option.subTitle ? /* @__PURE__ */ jsx54("p", { className: "text-md", children: option.subTitle }) : null
7527
7555
  ]
7528
7556
  },
7529
7557
  index
@@ -7532,20 +7560,20 @@ var SelectionTab = ({
7532
7560
  var SelectionTab_default = SelectionTab;
7533
7561
 
7534
7562
  // src/components/tabs/SelectionTabFill.tsx
7535
- import { jsx as jsx57 } from "react/jsx-runtime";
7563
+ import { jsx as jsx55 } from "react/jsx-runtime";
7536
7564
  var SelectionTabFill = ({
7537
7565
  optionList,
7538
7566
  selectedId,
7539
7567
  handleSelectOnClick
7540
7568
  }) => {
7541
- return /* @__PURE__ */ jsx57("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__ */ jsx57(
7569
+ return /* @__PURE__ */ jsx55("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__ */ jsx55(
7542
7570
  "div",
7543
7571
  {
7544
7572
  className: "cursor-pointer",
7545
7573
  onClick: () => {
7546
7574
  handleSelectOnClick(option.id);
7547
7575
  },
7548
- children: /* @__PURE__ */ jsx57(
7576
+ children: /* @__PURE__ */ jsx55(
7549
7577
  "p",
7550
7578
  {
7551
7579
  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`,
@@ -7559,34 +7587,34 @@ var SelectionTabFill = ({
7559
7587
  var SelectionTabFill_default = SelectionTabFill;
7560
7588
 
7561
7589
  // src/components/labels/ActivityTemplateLabel.tsx
7562
- import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
7590
+ import { jsx as jsx56, jsxs as jsxs43 } from "react/jsx-runtime";
7563
7591
  var ActivityTemplateLabel = ({
7564
7592
  title,
7565
7593
  icon,
7566
7594
  font
7567
7595
  }) => {
7568
- return /* @__PURE__ */ jsx58("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__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
7569
- icon ? icon : /* @__PURE__ */ jsx58(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
7570
- /* @__PURE__ */ jsx58("p", { className: font ? font : "text-sm", children: title })
7596
+ return /* @__PURE__ */ jsx56("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__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
7597
+ icon ? icon : /* @__PURE__ */ jsx56(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
7598
+ /* @__PURE__ */ jsx56("p", { className: font ? font : "text-sm", children: title })
7571
7599
  ] }) });
7572
7600
  };
7573
7601
  var ActivityTemplateLabel_default = ActivityTemplateLabel;
7574
7602
 
7575
7603
  // src/components/labels/BrandLabel.tsx
7576
- import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
7604
+ import { jsx as jsx57, jsxs as jsxs44 } from "react/jsx-runtime";
7577
7605
  var BrandLabel = ({ title, icon, font }) => {
7578
- return /* @__PURE__ */ jsx59("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__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
7579
- icon ? icon : /* @__PURE__ */ jsx59(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
7580
- /* @__PURE__ */ jsx59("p", { className: font ? font : "text-sm", children: title })
7606
+ return /* @__PURE__ */ jsx57("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__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
7607
+ icon ? icon : /* @__PURE__ */ jsx57(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
7608
+ /* @__PURE__ */ jsx57("p", { className: font ? font : "text-sm", children: title })
7581
7609
  ] }) });
7582
7610
  };
7583
7611
  var BrandLabel_default = BrandLabel;
7584
7612
 
7585
7613
  // src/components/labels/CategoryLabel.tsx
7586
- import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
7614
+ import { jsx as jsx58, jsxs as jsxs45 } from "react/jsx-runtime";
7587
7615
  var CategoryLabel = ({ title, icon, font }) => {
7588
- return /* @__PURE__ */ jsx60("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__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
7589
- icon ? icon : /* @__PURE__ */ jsx60(
7616
+ return /* @__PURE__ */ jsx58("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__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
7617
+ icon ? icon : /* @__PURE__ */ jsx58(
7590
7618
  BaseImage_default,
7591
7619
  {
7592
7620
  src: "/icons/category-label.webp",
@@ -7594,40 +7622,40 @@ var CategoryLabel = ({ title, icon, font }) => {
7594
7622
  size: "xsmall"
7595
7623
  }
7596
7624
  ),
7597
- /* @__PURE__ */ jsx60("p", { className: font ? font : "text-sm", children: title })
7625
+ /* @__PURE__ */ jsx58("p", { className: font ? font : "text-sm", children: title })
7598
7626
  ] }) });
7599
7627
  };
7600
7628
  var CategoryLabel_default = CategoryLabel;
7601
7629
 
7602
7630
  // src/components/labels/CoterieLabel.tsx
7603
- import { jsx as jsx61 } from "react/jsx-runtime";
7631
+ import { jsx as jsx59 } from "react/jsx-runtime";
7604
7632
  var CoterieLabel = ({ title, font }) => {
7605
- return /* @__PURE__ */ jsx61("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__ */ jsx61("p", { className: font ? font : "text-sm", children: title }) });
7633
+ return /* @__PURE__ */ jsx59("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__ */ jsx59("p", { className: font ? font : "text-sm", children: title }) });
7606
7634
  };
7607
7635
  var CoterieLabel_default = CoterieLabel;
7608
7636
 
7609
7637
  // src/components/labels/GradeLabel.tsx
7610
- import { jsx as jsx62 } from "react/jsx-runtime";
7638
+ import { jsx as jsx60 } from "react/jsx-runtime";
7611
7639
  var GradeLabel = ({ title, font }) => {
7612
- return /* @__PURE__ */ jsx62("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__ */ jsx62("p", { className: font ? font : "text-sm", children: title }) });
7640
+ return /* @__PURE__ */ jsx60("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__ */ jsx60("p", { className: font ? font : "text-sm", children: title }) });
7613
7641
  };
7614
7642
  var GradeLabel_default = GradeLabel;
7615
7643
 
7616
7644
  // src/components/labels/OutcomeLabel.tsx
7617
- import { jsx as jsx63, jsxs as jsxs46 } from "react/jsx-runtime";
7645
+ import { jsx as jsx61, jsxs as jsxs46 } from "react/jsx-runtime";
7618
7646
  var OutcomeLabel = ({ title, font }) => {
7619
- return /* @__PURE__ */ jsx63("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__ */ jsxs46("div", { className: "flex flex-row items-center gap-x-2", children: [
7620
- /* @__PURE__ */ jsx63(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
7621
- /* @__PURE__ */ jsx63("p", { className: font ? font : "text-sm", children: title })
7647
+ return /* @__PURE__ */ jsx61("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__ */ jsxs46("div", { className: "flex flex-row items-center gap-x-2", children: [
7648
+ /* @__PURE__ */ jsx61(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
7649
+ /* @__PURE__ */ jsx61("p", { className: font ? font : "text-sm", children: title })
7622
7650
  ] }) });
7623
7651
  };
7624
7652
  var OutcomeLabel_default = OutcomeLabel;
7625
7653
 
7626
7654
  // src/components/labels/PersonalLabel.tsx
7627
- import { jsx as jsx64, jsxs as jsxs47 } from "react/jsx-runtime";
7655
+ import { jsx as jsx62, jsxs as jsxs47 } from "react/jsx-runtime";
7628
7656
  var PersonalLabel = ({ title, icon, font }) => {
7629
- return /* @__PURE__ */ jsx64("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__ */ jsxs47("div", { className: "flex flex-row items-center gap-x-2", children: [
7630
- icon ? icon : /* @__PURE__ */ jsx64(
7657
+ return /* @__PURE__ */ jsx62("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__ */ jsxs47("div", { className: "flex flex-row items-center gap-x-2", children: [
7658
+ icon ? icon : /* @__PURE__ */ jsx62(
7631
7659
  BaseImage_default,
7632
7660
  {
7633
7661
  src: "/icons/personal-label.webp",
@@ -7635,16 +7663,16 @@ var PersonalLabel = ({ title, icon, font }) => {
7635
7663
  size: "xsmall"
7636
7664
  }
7637
7665
  ),
7638
- /* @__PURE__ */ jsx64("p", { className: font ? font : "text-sm", children: title })
7666
+ /* @__PURE__ */ jsx62("p", { className: font ? font : "text-sm", children: title })
7639
7667
  ] }) });
7640
7668
  };
7641
7669
  var PersonalLabel_default = PersonalLabel;
7642
7670
 
7643
7671
  // src/components/labels/PublishingHouseLabel.tsx
7644
- import { jsx as jsx65, jsxs as jsxs48 } from "react/jsx-runtime";
7672
+ import { jsx as jsx63, jsxs as jsxs48 } from "react/jsx-runtime";
7645
7673
  var PublishingHouseLabel = ({ title, icon, font }) => {
7646
- return /* @__PURE__ */ jsx65("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__ */ jsxs48("div", { className: "flex flex-row items-center gap-x-2", children: [
7647
- icon ? icon : /* @__PURE__ */ jsx65(
7674
+ return /* @__PURE__ */ jsx63("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__ */ jsxs48("div", { className: "flex flex-row items-center gap-x-2", children: [
7675
+ icon ? icon : /* @__PURE__ */ jsx63(
7648
7676
  BaseImage_default,
7649
7677
  {
7650
7678
  src: "/icons/publishing-house-label.webp",
@@ -7652,31 +7680,31 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
7652
7680
  size: "xsmall"
7653
7681
  }
7654
7682
  ),
7655
- /* @__PURE__ */ jsx65("p", { className: font ? font : "text-sm", children: title })
7683
+ /* @__PURE__ */ jsx63("p", { className: font ? font : "text-sm", children: title })
7656
7684
  ] }) });
7657
7685
  };
7658
7686
  var PublishingHouseLabel_default = PublishingHouseLabel;
7659
7687
 
7660
7688
  // src/components/labels/ActivityLabel.tsx
7661
- import { jsx as jsx66 } from "react/jsx-runtime";
7689
+ import { jsx as jsx64 } from "react/jsx-runtime";
7662
7690
  var ActivityLabel = ({ title, font }) => {
7663
- return /* @__PURE__ */ jsx66("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__ */ jsx66("p", { className: font ? font : "text-sm", children: title }) });
7691
+ return /* @__PURE__ */ jsx64("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__ */ jsx64("p", { className: font ? font : "text-sm", children: title }) });
7664
7692
  };
7665
7693
  var ActivityLabel_default = ActivityLabel;
7666
7694
 
7667
7695
  // src/components/infos/InfoWithText.tsx
7668
- import { jsx as jsx67, jsxs as jsxs49 } from "react/jsx-runtime";
7696
+ import { jsx as jsx65, jsxs as jsxs49 } from "react/jsx-runtime";
7669
7697
  var InfoWithText = (props) => {
7670
7698
  const { value } = props;
7671
7699
  return /* @__PURE__ */ jsxs49("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
7672
- /* @__PURE__ */ jsx67(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7673
- /* @__PURE__ */ jsx67("div", { className: "flex-1", children: /* @__PURE__ */ jsx67("p", { className: "", children: value }) })
7700
+ /* @__PURE__ */ jsx65(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7701
+ /* @__PURE__ */ jsx65("div", { className: "flex-1", children: /* @__PURE__ */ jsx65("p", { className: "", children: value }) })
7674
7702
  ] });
7675
7703
  };
7676
7704
  var InfoWithText_default = InfoWithText;
7677
7705
 
7678
7706
  // src/components/titles/BaseTitle.tsx
7679
- import { jsx as jsx68, jsxs as jsxs50 } from "react/jsx-runtime";
7707
+ import { jsx as jsx66, jsxs as jsxs50 } from "react/jsx-runtime";
7680
7708
  var BaseTitle = ({
7681
7709
  title,
7682
7710
  totalItemCount,
@@ -7692,15 +7720,15 @@ var BaseTitle = ({
7692
7720
  itemName
7693
7721
  ] }) : null
7694
7722
  ] }),
7695
- description ? /* @__PURE__ */ jsx68("p", { className: "", children: description }) : null
7723
+ description ? /* @__PURE__ */ jsx66("p", { className: "", children: description }) : null
7696
7724
  ] });
7697
7725
  };
7698
7726
  var BaseTitle_default = BaseTitle;
7699
7727
 
7700
7728
  // src/components/titles/SubTitle.tsx
7701
- import { jsx as jsx69 } from "react/jsx-runtime";
7729
+ import { jsx as jsx67 } from "react/jsx-runtime";
7702
7730
  var SubTitle = ({ title }) => {
7703
- return /* @__PURE__ */ jsx69("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
7731
+ return /* @__PURE__ */ jsx67("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
7704
7732
  };
7705
7733
  var SubTitle_default = SubTitle;
7706
7734