catchup-library-web 1.20.33 → 1.20.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +351 -347
- package/dist/index.mjs +294 -290
- package/package.json +1 -1
- package/src/components/activities/material-contents/FillInTheBlanksActivityMaterialContent.tsx +1 -5
- package/src/components/activities/material-contents/OrderingActivityMaterialContent.tsx +214 -115
- package/src/components/activities/material-contents/OrderingActivityMaterialContent2.tsx +231 -0
package/dist/index.mjs
CHANGED
|
@@ -4898,7 +4898,7 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
4898
4898
|
value: answerMap[materialKey],
|
|
4899
4899
|
showSpecialOnly: false
|
|
4900
4900
|
}
|
|
4901
|
-
) :
|
|
4901
|
+
) : null
|
|
4902
4902
|
}
|
|
4903
4903
|
) }),
|
|
4904
4904
|
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ jsx28("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ jsx28(
|
|
@@ -6209,8 +6209,7 @@ var OpenEndedActivityContent = ({
|
|
|
6209
6209
|
var OpenEndedActivityContent_default = OpenEndedActivityContent;
|
|
6210
6210
|
|
|
6211
6211
|
// src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
|
|
6212
|
-
import { useEffect as useEffect13, useState as useState22 } from "react";
|
|
6213
|
-
import { useDrop as useDrop5 } from "react-dnd";
|
|
6212
|
+
import { useEffect as useEffect13, useState as useState22, useRef as useRef8 } from "react";
|
|
6214
6213
|
import { InlineMath as InlineMath9 } from "react-katex";
|
|
6215
6214
|
|
|
6216
6215
|
// src/hooks/useScreenSize.ts
|
|
@@ -6248,59 +6247,8 @@ var useScreenSize = () => {
|
|
|
6248
6247
|
};
|
|
6249
6248
|
var useScreenSize_default = useScreenSize;
|
|
6250
6249
|
|
|
6251
|
-
// src/components/dnds/DraggableDroppableItem.tsx
|
|
6252
|
-
import { useRef as useRef8 } from "react";
|
|
6253
|
-
import { useDrag as useDrag2, useDrop as useDrop4 } from "react-dnd";
|
|
6254
|
-
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
6255
|
-
var DraggableDroppableItem = ({
|
|
6256
|
-
item,
|
|
6257
|
-
type,
|
|
6258
|
-
component,
|
|
6259
|
-
moveCardHandler,
|
|
6260
|
-
dropRef,
|
|
6261
|
-
target,
|
|
6262
|
-
setTarget
|
|
6263
|
-
}) => {
|
|
6264
|
-
const ref = useRef8(null);
|
|
6265
|
-
const [, drop] = useDrop4({
|
|
6266
|
-
accept: type,
|
|
6267
|
-
hover() {
|
|
6268
|
-
if (!ref.current) {
|
|
6269
|
-
return;
|
|
6270
|
-
}
|
|
6271
|
-
if (item.index && target !== item.index) {
|
|
6272
|
-
setTarget(item.index);
|
|
6273
|
-
}
|
|
6274
|
-
}
|
|
6275
|
-
});
|
|
6276
|
-
const [{ isDragging }, drag] = useDrag2({
|
|
6277
|
-
type,
|
|
6278
|
-
item,
|
|
6279
|
-
end: (item2, monitor) => {
|
|
6280
|
-
const dropResult = monitor.getDropResult();
|
|
6281
|
-
if (dropResult) {
|
|
6282
|
-
moveCardHandler();
|
|
6283
|
-
}
|
|
6284
|
-
},
|
|
6285
|
-
collect: (monitor) => ({
|
|
6286
|
-
isDragging: monitor.isDragging()
|
|
6287
|
-
})
|
|
6288
|
-
});
|
|
6289
|
-
const opacity = isDragging ? 0.4 : 1;
|
|
6290
|
-
drag(drop(ref));
|
|
6291
|
-
return /* @__PURE__ */ jsx42(
|
|
6292
|
-
"div",
|
|
6293
|
-
{
|
|
6294
|
-
className: `${isDragging ? "w-[0px] opacity-0" : "w-full opacity-100"} transition-all duration-500`,
|
|
6295
|
-
ref: dropRef,
|
|
6296
|
-
children: /* @__PURE__ */ jsx42("div", { ref, className: "w-full", style: { opacity }, children: component })
|
|
6297
|
-
}
|
|
6298
|
-
);
|
|
6299
|
-
};
|
|
6300
|
-
var DraggableDroppableItem_default = DraggableDroppableItem;
|
|
6301
|
-
|
|
6302
6250
|
// src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
|
|
6303
|
-
import { jsx as
|
|
6251
|
+
import { jsx as jsx42, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6304
6252
|
var OrderingActivityMaterialContent = ({
|
|
6305
6253
|
uniqueValue,
|
|
6306
6254
|
answer,
|
|
@@ -6311,19 +6259,19 @@ var OrderingActivityMaterialContent = ({
|
|
|
6311
6259
|
isPreview,
|
|
6312
6260
|
showCorrectAnswer
|
|
6313
6261
|
}) => {
|
|
6314
|
-
const [selectedTargetKey, setSelectedTargetKey] = useState22(null);
|
|
6315
6262
|
const [selectedKey, setSelectedKey] = useState22(null);
|
|
6263
|
+
const [draggedKey, setDraggedKey] = useState22(null);
|
|
6264
|
+
const [dropTargetKey, setDropTargetKey] = useState22(null);
|
|
6265
|
+
const [draggedElement, setDraggedElement] = useState22(
|
|
6266
|
+
null
|
|
6267
|
+
);
|
|
6268
|
+
const dragElementRef = useRef8(null);
|
|
6269
|
+
const [touchPosition, setTouchPosition] = useState22({
|
|
6270
|
+
x: 0,
|
|
6271
|
+
y: 0
|
|
6272
|
+
});
|
|
6316
6273
|
const { screenSize } = useScreenSize_default();
|
|
6317
6274
|
const [view, setView] = useState22("PC");
|
|
6318
|
-
const [{ isOver, canDrop }, drop] = useDrop5({
|
|
6319
|
-
accept: "ORDERING",
|
|
6320
|
-
drop: () => {
|
|
6321
|
-
},
|
|
6322
|
-
collect: (monitor) => ({
|
|
6323
|
-
isOver: monitor.isOver(),
|
|
6324
|
-
canDrop: monitor.canDrop()
|
|
6325
|
-
})
|
|
6326
|
-
});
|
|
6327
6275
|
useEffect13(() => {
|
|
6328
6276
|
if (!screenSize) return;
|
|
6329
6277
|
if (screenSize.width <= 1024) {
|
|
@@ -6354,23 +6302,9 @@ var OrderingActivityMaterialContent = ({
|
|
|
6354
6302
|
}
|
|
6355
6303
|
return "INCORRECT";
|
|
6356
6304
|
};
|
|
6357
|
-
const handleOrderingActivityItemChange = (selectedKey2, materialKey) => {
|
|
6358
|
-
if (checkCanAnswerQuestion()) {
|
|
6359
|
-
if (selectedKey2) {
|
|
6360
|
-
onChange(answer, selectedKey2, materialKey);
|
|
6361
|
-
setSelectedKey(null);
|
|
6362
|
-
} else {
|
|
6363
|
-
setSelectedKey(materialKey);
|
|
6364
|
-
}
|
|
6365
|
-
}
|
|
6366
|
-
};
|
|
6367
6305
|
const calculateMarginTop = (index) => {
|
|
6368
6306
|
if (index === 0) {
|
|
6369
|
-
|
|
6370
|
-
return 0;
|
|
6371
|
-
} else {
|
|
6372
|
-
return 0;
|
|
6373
|
-
}
|
|
6307
|
+
return 0;
|
|
6374
6308
|
} else if (index === 1) {
|
|
6375
6309
|
if (contentMap.type === "TEXT") {
|
|
6376
6310
|
return 65;
|
|
@@ -6384,97 +6318,167 @@ var OrderingActivityMaterialContent = ({
|
|
|
6384
6318
|
return -130;
|
|
6385
6319
|
}
|
|
6386
6320
|
} else if (index % 2 === 1) {
|
|
6387
|
-
|
|
6388
|
-
return 0;
|
|
6389
|
-
} else {
|
|
6390
|
-
return 0;
|
|
6391
|
-
}
|
|
6321
|
+
return 0;
|
|
6392
6322
|
}
|
|
6393
6323
|
return 0;
|
|
6394
6324
|
};
|
|
6395
|
-
const
|
|
6396
|
-
|
|
6397
|
-
|
|
6398
|
-
|
|
6399
|
-
|
|
6325
|
+
const handleMouseDown = (e, materialKey) => {
|
|
6326
|
+
if (!checkCanAnswerQuestion()) return;
|
|
6327
|
+
e.preventDefault();
|
|
6328
|
+
setDraggedKey(materialKey);
|
|
6329
|
+
setSelectedKey(null);
|
|
6330
|
+
};
|
|
6331
|
+
const handleMouseUp = () => {
|
|
6332
|
+
if (dropTargetKey !== null && draggedKey !== null && dropTargetKey !== draggedKey) {
|
|
6333
|
+
onChange(answer, draggedKey, dropTargetKey);
|
|
6334
|
+
}
|
|
6335
|
+
setDraggedKey(null);
|
|
6336
|
+
setDropTargetKey(null);
|
|
6337
|
+
};
|
|
6338
|
+
const handleTouchStart = (e, materialKey, element) => {
|
|
6339
|
+
if (!checkCanAnswerQuestion()) return;
|
|
6340
|
+
const touch = e.touches[0];
|
|
6341
|
+
setDraggedKey(materialKey);
|
|
6342
|
+
setDraggedElement(element);
|
|
6343
|
+
setTouchPosition({ x: touch.clientX, y: touch.clientY });
|
|
6344
|
+
setSelectedKey(null);
|
|
6345
|
+
};
|
|
6346
|
+
const handleTouchMove = (e) => {
|
|
6347
|
+
if (!draggedKey) return;
|
|
6348
|
+
const touch = e.touches[0];
|
|
6349
|
+
setTouchPosition({ x: touch.clientX, y: touch.clientY });
|
|
6350
|
+
const elementUnder = document.elementFromPoint(
|
|
6351
|
+
touch.clientX,
|
|
6352
|
+
touch.clientY
|
|
6400
6353
|
);
|
|
6401
|
-
|
|
6354
|
+
const dropZone = elementUnder == null ? void 0 : elementUnder.closest("[data-ordering-drop-zone]");
|
|
6355
|
+
if (dropZone) {
|
|
6356
|
+
const dropKey = dropZone.getAttribute("data-ordering-drop-zone");
|
|
6357
|
+
setDropTargetKey(dropKey);
|
|
6358
|
+
} else {
|
|
6359
|
+
setDropTargetKey(null);
|
|
6360
|
+
}
|
|
6361
|
+
};
|
|
6362
|
+
const handleTouchEnd = () => {
|
|
6363
|
+
if (dropTargetKey !== null && draggedKey !== null && dropTargetKey !== draggedKey) {
|
|
6364
|
+
onChange(answer, draggedKey, dropTargetKey);
|
|
6365
|
+
}
|
|
6366
|
+
setDraggedKey(null);
|
|
6367
|
+
setDropTargetKey(null);
|
|
6368
|
+
setDraggedElement(null);
|
|
6369
|
+
};
|
|
6370
|
+
const handleSelectItem = (materialKey) => {
|
|
6371
|
+
if (!checkCanAnswerQuestion()) return;
|
|
6372
|
+
if (selectedKey === null) {
|
|
6373
|
+
setSelectedKey(materialKey);
|
|
6374
|
+
} else if (selectedKey === materialKey) {
|
|
6375
|
+
setSelectedKey(null);
|
|
6376
|
+
} else {
|
|
6377
|
+
onChange(answer, selectedKey, materialKey);
|
|
6378
|
+
setSelectedKey(null);
|
|
6379
|
+
}
|
|
6380
|
+
setDraggedKey(null);
|
|
6381
|
+
};
|
|
6382
|
+
const answerMap = retrieveAnswerMap();
|
|
6383
|
+
return /* @__PURE__ */ jsxs29("div", { className: "flex flex-row flex-wrap", onMouseUp: handleMouseUp, children: [
|
|
6384
|
+
draggedKey && touchPosition.x > 0 && /* @__PURE__ */ jsx42(
|
|
6402
6385
|
"div",
|
|
6403
6386
|
{
|
|
6404
|
-
className:
|
|
6387
|
+
className: "fixed pointer-events-none z-50 opacity-80",
|
|
6405
6388
|
style: {
|
|
6406
|
-
|
|
6389
|
+
left: `${touchPosition.x}px`,
|
|
6390
|
+
top: `${touchPosition.y}px`,
|
|
6391
|
+
transform: "translate(-50%, -50%)"
|
|
6407
6392
|
},
|
|
6408
|
-
children:
|
|
6409
|
-
|
|
6410
|
-
|
|
6411
|
-
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
}
|
|
6415
|
-
|
|
6416
|
-
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
onMouseDown: () => {
|
|
6427
|
-
if (checkCanAnswerQuestion()) {
|
|
6428
|
-
setSelectedKey(materialKey);
|
|
6429
|
-
}
|
|
6430
|
-
},
|
|
6431
|
-
onTouchEnd: () => {
|
|
6432
|
-
if (checkCanAnswerQuestion()) {
|
|
6433
|
-
setSelectedKey(materialKey);
|
|
6434
|
-
}
|
|
6435
|
-
},
|
|
6436
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx43("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6437
|
-
materialMap[answerMap[materialKey]]
|
|
6438
|
-
).map((inputPart, index2) => /* @__PURE__ */ jsx43(
|
|
6439
|
-
"span",
|
|
6440
|
-
{
|
|
6441
|
-
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6442
|
-
children: inputPart.isEquation ? /* @__PURE__ */ jsx43("span", { className: "text-xl", children: /* @__PURE__ */ jsx43(InlineMath9, { math: inputPart.value }) }) : inputPart.value
|
|
6443
|
-
},
|
|
6444
|
-
index2
|
|
6445
|
-
)) }) : /* @__PURE__ */ jsx43(
|
|
6446
|
-
ShowMaterialMediaByContentType_default,
|
|
6447
|
-
{
|
|
6448
|
-
contentType: contentMap.type,
|
|
6449
|
-
src: materialMap[answerMap[materialKey]],
|
|
6450
|
-
canFullScreen: true
|
|
6451
|
-
},
|
|
6452
|
-
`${uniqueValue}-${index}`
|
|
6453
|
-
)
|
|
6454
|
-
}
|
|
6455
|
-
),
|
|
6456
|
-
target: selectedTargetKey,
|
|
6457
|
-
setTarget: setSelectedTargetKey,
|
|
6458
|
-
moveCardHandler: () => {
|
|
6459
|
-
if (!selectedKey) return;
|
|
6460
|
-
if (!selectedTargetKey) return;
|
|
6461
|
-
handleOrderingActivityItemChange(
|
|
6462
|
-
selectedKey,
|
|
6463
|
-
selectedTargetKey
|
|
6464
|
-
);
|
|
6465
|
-
}
|
|
6466
|
-
},
|
|
6467
|
-
index
|
|
6468
|
-
)
|
|
6469
|
-
]
|
|
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(
|
|
6394
|
+
materialMap[answerMap[draggedKey]]
|
|
6395
|
+
).map((inputPart, index) => /* @__PURE__ */ jsx42(
|
|
6396
|
+
"span",
|
|
6397
|
+
{
|
|
6398
|
+
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
|
|
6400
|
+
},
|
|
6401
|
+
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(
|
|
6403
|
+
ShowMaterialMediaByContentType_default,
|
|
6404
|
+
{
|
|
6405
|
+
contentType: contentMap.type,
|
|
6406
|
+
src: materialMap[answerMap[draggedKey]],
|
|
6407
|
+
canFullScreen: false
|
|
6408
|
+
},
|
|
6409
|
+
`${uniqueValue}-drag`
|
|
6410
|
+
) })
|
|
6470
6411
|
}
|
|
6471
|
-
)
|
|
6472
|
-
|
|
6412
|
+
),
|
|
6413
|
+
Object.keys(answerMap).map((materialKey, index) => {
|
|
6414
|
+
const learnerAnswerState = checkAnswerState(
|
|
6415
|
+
answerMap[materialKey] + "",
|
|
6416
|
+
index + ""
|
|
6417
|
+
);
|
|
6418
|
+
return /* @__PURE__ */ jsx42("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ jsxs29(
|
|
6419
|
+
"div",
|
|
6420
|
+
{
|
|
6421
|
+
className: `flex flex-row items-center my-4 mx-2`,
|
|
6422
|
+
style: {
|
|
6423
|
+
marginTop: view === "PC" ? calculateMarginTop(parseFloat(materialKey)) : 0
|
|
6424
|
+
},
|
|
6425
|
+
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(
|
|
6427
|
+
"div",
|
|
6428
|
+
{
|
|
6429
|
+
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 })
|
|
6431
|
+
}
|
|
6432
|
+
) }) }),
|
|
6433
|
+
/* @__PURE__ */ jsx42(
|
|
6434
|
+
"div",
|
|
6435
|
+
{
|
|
6436
|
+
ref: draggedKey === materialKey ? dragElementRef : null,
|
|
6437
|
+
"data-ordering-drop-zone": materialKey,
|
|
6438
|
+
className: `flex-1 ${draggedKey === materialKey ? "opacity-40" : selectedKey === materialKey ? "ring-2 ring-blue-500" : "opacity-100"} ${dropTargetKey === materialKey && draggedKey !== materialKey ? "ring-2 ring-blue-400 bg-blue-50" : ""} transition-all duration-200`,
|
|
6439
|
+
onMouseDown: (e) => handleMouseDown(e, materialKey),
|
|
6440
|
+
onMouseEnter: () => draggedKey && draggedKey !== materialKey && setDropTargetKey(materialKey),
|
|
6441
|
+
onMouseLeave: () => setDropTargetKey(null),
|
|
6442
|
+
onTouchStart: (e) => handleTouchStart(e, materialKey, e.currentTarget),
|
|
6443
|
+
onTouchMove: handleTouchMove,
|
|
6444
|
+
onTouchEnd: handleTouchEnd,
|
|
6445
|
+
children: /* @__PURE__ */ jsx42(
|
|
6446
|
+
"div",
|
|
6447
|
+
{
|
|
6448
|
+
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
|
+
onClick: () => handleSelectItem(materialKey),
|
|
6450
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx42("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6451
|
+
materialMap[answerMap[materialKey]]
|
|
6452
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx42(
|
|
6453
|
+
"span",
|
|
6454
|
+
{
|
|
6455
|
+
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
|
|
6457
|
+
},
|
|
6458
|
+
index2
|
|
6459
|
+
)) }) : /* @__PURE__ */ jsx42(
|
|
6460
|
+
ShowMaterialMediaByContentType_default,
|
|
6461
|
+
{
|
|
6462
|
+
contentType: contentMap.type,
|
|
6463
|
+
src: materialMap[answerMap[materialKey]],
|
|
6464
|
+
canFullScreen: true
|
|
6465
|
+
},
|
|
6466
|
+
`${uniqueValue}-${index}`
|
|
6467
|
+
)
|
|
6468
|
+
}
|
|
6469
|
+
)
|
|
6470
|
+
}
|
|
6471
|
+
)
|
|
6472
|
+
]
|
|
6473
|
+
}
|
|
6474
|
+
) }, index);
|
|
6475
|
+
})
|
|
6476
|
+
] });
|
|
6473
6477
|
};
|
|
6474
6478
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
6475
6479
|
|
|
6476
6480
|
// src/components/activities/OrderingActivityContent.tsx
|
|
6477
|
-
import { Fragment as Fragment9, jsx as
|
|
6481
|
+
import { Fragment as Fragment9, jsx as jsx43, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6478
6482
|
var OrderingActivityContent = ({
|
|
6479
6483
|
answer,
|
|
6480
6484
|
data,
|
|
@@ -6499,15 +6503,15 @@ var OrderingActivityContent = ({
|
|
|
6499
6503
|
changeAnswer(answer2);
|
|
6500
6504
|
};
|
|
6501
6505
|
return /* @__PURE__ */ jsxs30(Fragment9, { children: [
|
|
6502
|
-
/* @__PURE__ */
|
|
6506
|
+
/* @__PURE__ */ jsx43(
|
|
6503
6507
|
ActivityBodyContent_default,
|
|
6504
6508
|
{
|
|
6505
6509
|
bodyMap: orderingBodyMap,
|
|
6506
6510
|
templateType: "ORDERING"
|
|
6507
6511
|
}
|
|
6508
6512
|
),
|
|
6509
|
-
/* @__PURE__ */
|
|
6510
|
-
/* @__PURE__ */
|
|
6513
|
+
/* @__PURE__ */ jsx43(DividerLine_default, {}),
|
|
6514
|
+
/* @__PURE__ */ jsx43(
|
|
6511
6515
|
OrderingActivityMaterialContent_default,
|
|
6512
6516
|
{
|
|
6513
6517
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6527,7 +6531,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
|
|
|
6527
6531
|
// src/components/activities/material-contents/TrueFalseActivityMaterialContent.tsx
|
|
6528
6532
|
import { useEffect as useEffect14, useState as useState23 } from "react";
|
|
6529
6533
|
import { InlineMath as InlineMath10 } from "react-katex";
|
|
6530
|
-
import { Fragment as Fragment10, jsx as
|
|
6534
|
+
import { Fragment as Fragment10, jsx as jsx44, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
6531
6535
|
var TrueFalseActivityMaterialContent = ({
|
|
6532
6536
|
uniqueValue,
|
|
6533
6537
|
answer,
|
|
@@ -6581,13 +6585,13 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6581
6585
|
};
|
|
6582
6586
|
const answerMap = retrieveAnswerMap();
|
|
6583
6587
|
return /* @__PURE__ */ jsxs31("div", { className: "", children: [
|
|
6584
|
-
/* @__PURE__ */
|
|
6585
|
-
/* @__PURE__ */
|
|
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, {}) }),
|
|
6586
6590
|
/* @__PURE__ */ jsxs31("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
|
|
6587
|
-
/* @__PURE__ */
|
|
6588
|
-
/* @__PURE__ */
|
|
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") }) })
|
|
6589
6593
|
] }),
|
|
6590
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */
|
|
6594
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ jsx44("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
|
|
6591
6595
|
const correctAnswer = materialMap.trueList.find(
|
|
6592
6596
|
(trueItem) => trueItem === shuffleOption
|
|
6593
6597
|
) !== void 0 ? "TRUE" : "FALSE";
|
|
@@ -6603,16 +6607,16 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6603
6607
|
{
|
|
6604
6608
|
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" : ""}`,
|
|
6605
6609
|
children: [
|
|
6606
|
-
/* @__PURE__ */
|
|
6610
|
+
/* @__PURE__ */ jsx44("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ jsx44("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6607
6611
|
shuffleOption
|
|
6608
|
-
).map((inputPart, index2) => /* @__PURE__ */
|
|
6612
|
+
).map((inputPart, index2) => /* @__PURE__ */ jsx44(
|
|
6609
6613
|
"span",
|
|
6610
6614
|
{
|
|
6611
6615
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6612
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
6616
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx44("span", { className: "text-xl", children: /* @__PURE__ */ jsx44(InlineMath10, { math: inputPart.value }) }) : inputPart.value
|
|
6613
6617
|
},
|
|
6614
6618
|
index2
|
|
6615
|
-
)) }) : /* @__PURE__ */
|
|
6619
|
+
)) }) : /* @__PURE__ */ jsx44(
|
|
6616
6620
|
ShowMaterialMediaByContentType_default,
|
|
6617
6621
|
{
|
|
6618
6622
|
contentType: contentMap.type,
|
|
@@ -6622,7 +6626,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6622
6626
|
`${uniqueValue}-${index}`
|
|
6623
6627
|
) }),
|
|
6624
6628
|
/* @__PURE__ */ jsxs31("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6625
|
-
/* @__PURE__ */
|
|
6629
|
+
/* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx44(
|
|
6626
6630
|
BaseImage_default,
|
|
6627
6631
|
{
|
|
6628
6632
|
src: answerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -6633,7 +6637,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6633
6637
|
}
|
|
6634
6638
|
}
|
|
6635
6639
|
) }) }),
|
|
6636
|
-
/* @__PURE__ */
|
|
6640
|
+
/* @__PURE__ */ jsx44("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx44("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ jsx44(
|
|
6637
6641
|
BaseImage_default,
|
|
6638
6642
|
{
|
|
6639
6643
|
src: answerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -6651,12 +6655,12 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6651
6655
|
);
|
|
6652
6656
|
}) }) : /* @__PURE__ */ jsxs31(Fragment10, { children: [
|
|
6653
6657
|
answerMap.trueList.map((item) => /* @__PURE__ */ jsxs31("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6654
|
-
/* @__PURE__ */
|
|
6655
|
-
/* @__PURE__ */
|
|
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") }) })
|
|
6656
6660
|
] })),
|
|
6657
6661
|
answerMap.falseList.map((item) => /* @__PURE__ */ jsxs31("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6658
|
-
/* @__PURE__ */
|
|
6659
|
-
/* @__PURE__ */
|
|
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") }) })
|
|
6660
6664
|
] }))
|
|
6661
6665
|
] })
|
|
6662
6666
|
] });
|
|
@@ -6664,7 +6668,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6664
6668
|
var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
|
|
6665
6669
|
|
|
6666
6670
|
// src/components/activities/TrueFalseActivityContent.tsx
|
|
6667
|
-
import { jsx as
|
|
6671
|
+
import { jsx as jsx45, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6668
6672
|
var TrueFalseActivityContent = ({
|
|
6669
6673
|
answer,
|
|
6670
6674
|
data,
|
|
@@ -6716,16 +6720,16 @@ var TrueFalseActivityContent = ({
|
|
|
6716
6720
|
changeAnswer(answer2);
|
|
6717
6721
|
};
|
|
6718
6722
|
return /* @__PURE__ */ jsxs32("div", { className: "flex flex-row flex-wrap", children: [
|
|
6719
|
-
/* @__PURE__ */
|
|
6723
|
+
/* @__PURE__ */ jsx45("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%]"}`, children: /* @__PURE__ */ jsx45(
|
|
6720
6724
|
ActivityBodyContent_default,
|
|
6721
6725
|
{
|
|
6722
6726
|
bodyMap: trueFalseBodyMap,
|
|
6723
6727
|
templateType: "GROUPING"
|
|
6724
6728
|
}
|
|
6725
6729
|
) }),
|
|
6726
|
-
/* @__PURE__ */
|
|
6727
|
-
/* @__PURE__ */
|
|
6728
|
-
/* @__PURE__ */
|
|
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(
|
|
6729
6733
|
TrueFalseActivityMaterialContent_default,
|
|
6730
6734
|
{
|
|
6731
6735
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6744,7 +6748,7 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
|
|
|
6744
6748
|
|
|
6745
6749
|
// src/components/activities/solution-contents/ActivitySolutionContent.tsx
|
|
6746
6750
|
import { InlineMath as InlineMath11 } from "react-katex";
|
|
6747
|
-
import { jsx as
|
|
6751
|
+
import { jsx as jsx46, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6748
6752
|
var ActivitySolutionContent = ({
|
|
6749
6753
|
activityTemplateType,
|
|
6750
6754
|
data
|
|
@@ -6774,8 +6778,8 @@ var ActivitySolutionContent = ({
|
|
|
6774
6778
|
return null;
|
|
6775
6779
|
}
|
|
6776
6780
|
if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
|
|
6777
|
-
return /* @__PURE__ */
|
|
6778
|
-
/* @__PURE__ */
|
|
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") }),
|
|
6779
6783
|
Object.keys(solutionMap).map((key) => {
|
|
6780
6784
|
let currentItem;
|
|
6781
6785
|
try {
|
|
@@ -6785,12 +6789,12 @@ var ActivitySolutionContent = ({
|
|
|
6785
6789
|
return null;
|
|
6786
6790
|
}
|
|
6787
6791
|
const { value } = currentItem;
|
|
6788
|
-
return /* @__PURE__ */
|
|
6789
|
-
(inputPart, partIndex) => /* @__PURE__ */
|
|
6792
|
+
return /* @__PURE__ */ jsx46("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
|
|
6793
|
+
(inputPart, partIndex) => /* @__PURE__ */ jsx46(
|
|
6790
6794
|
"span",
|
|
6791
6795
|
{
|
|
6792
6796
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6793
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
6797
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx46("span", { className: "text-xl", children: /* @__PURE__ */ jsx46(InlineMath11, { math: inputPart.value }) }) : inputPart.value
|
|
6794
6798
|
},
|
|
6795
6799
|
`${key}_part_${partIndex}`
|
|
6796
6800
|
)
|
|
@@ -6802,7 +6806,7 @@ var ActivitySolutionContent_default = ActivitySolutionContent;
|
|
|
6802
6806
|
|
|
6803
6807
|
// src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx
|
|
6804
6808
|
import { InlineMath as InlineMath12 } from "react-katex";
|
|
6805
|
-
import { jsx as
|
|
6809
|
+
import { jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6806
6810
|
var ActivityEvaluationRubricContent = ({
|
|
6807
6811
|
activityTemplateType,
|
|
6808
6812
|
data
|
|
@@ -6832,21 +6836,21 @@ var ActivityEvaluationRubricContent = ({
|
|
|
6832
6836
|
}
|
|
6833
6837
|
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
6834
6838
|
return null;
|
|
6835
|
-
return /* @__PURE__ */
|
|
6836
|
-
/* @__PURE__ */
|
|
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") }),
|
|
6837
6841
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
|
6838
6842
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
6839
6843
|
const { value } = currentItem;
|
|
6840
|
-
return /* @__PURE__ */
|
|
6844
|
+
return /* @__PURE__ */ jsx47(
|
|
6841
6845
|
"p",
|
|
6842
6846
|
{
|
|
6843
6847
|
className: "my-1 text-xl whitespace-pre-wrap",
|
|
6844
6848
|
children: constructInputWithSpecialExpressionList(value).map(
|
|
6845
|
-
(inputPart, index2) => /* @__PURE__ */
|
|
6849
|
+
(inputPart, index2) => /* @__PURE__ */ jsx47(
|
|
6846
6850
|
"span",
|
|
6847
6851
|
{
|
|
6848
6852
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6849
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
6853
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx47("span", { className: "text-xl", children: /* @__PURE__ */ jsx47(InlineMath12, { math: inputPart.value }) }) : inputPart.value
|
|
6850
6854
|
},
|
|
6851
6855
|
index2
|
|
6852
6856
|
)
|
|
@@ -6863,13 +6867,13 @@ var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
|
|
|
6863
6867
|
import { useEffect as useEffect15, useState as useState24 } from "react";
|
|
6864
6868
|
|
|
6865
6869
|
// src/components/boxes/SelectionBox.tsx
|
|
6866
|
-
import { jsx as
|
|
6870
|
+
import { jsx as jsx48, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6867
6871
|
var SelectionBox = ({
|
|
6868
6872
|
optionList,
|
|
6869
6873
|
selectedId,
|
|
6870
6874
|
handleSelectOnClick
|
|
6871
6875
|
}) => {
|
|
6872
|
-
return /* @__PURE__ */
|
|
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(
|
|
6873
6877
|
"div",
|
|
6874
6878
|
{
|
|
6875
6879
|
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`,
|
|
@@ -6883,7 +6887,7 @@ var SelectionBox = ({
|
|
|
6883
6887
|
children: [
|
|
6884
6888
|
option.icon,
|
|
6885
6889
|
/* @__PURE__ */ jsxs35("div", { className: "flex-1 flex flex-col items-center", children: [
|
|
6886
|
-
/* @__PURE__ */
|
|
6890
|
+
/* @__PURE__ */ jsx48("p", { children: option.text }),
|
|
6887
6891
|
option.subText ? /* @__PURE__ */ jsxs35("p", { className: "text-md", children: [
|
|
6888
6892
|
"(",
|
|
6889
6893
|
option.subText,
|
|
@@ -6900,7 +6904,7 @@ var SelectionBox = ({
|
|
|
6900
6904
|
var SelectionBox_default = SelectionBox;
|
|
6901
6905
|
|
|
6902
6906
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
6903
|
-
import { Fragment as Fragment11, jsx as
|
|
6907
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6904
6908
|
var ActivityPreviewByData = ({
|
|
6905
6909
|
data,
|
|
6906
6910
|
showType,
|
|
@@ -6961,8 +6965,8 @@ var ActivityPreviewByData = ({
|
|
|
6961
6965
|
return /* @__PURE__ */ jsxs36("div", { children: [
|
|
6962
6966
|
showType ? /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
6963
6967
|
/* @__PURE__ */ jsxs36("div", { className: "mb-4", children: [
|
|
6964
|
-
showDescription ? /* @__PURE__ */
|
|
6965
|
-
/* @__PURE__ */
|
|
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(
|
|
6966
6970
|
SelectionBox_default,
|
|
6967
6971
|
{
|
|
6968
6972
|
optionList,
|
|
@@ -6973,9 +6977,9 @@ var ActivityPreviewByData = ({
|
|
|
6973
6977
|
}
|
|
6974
6978
|
)
|
|
6975
6979
|
] }),
|
|
6976
|
-
/* @__PURE__ */
|
|
6980
|
+
/* @__PURE__ */ jsx49(DividerLine_default, {})
|
|
6977
6981
|
] }) : null,
|
|
6978
|
-
selectedType ? /* @__PURE__ */
|
|
6982
|
+
selectedType ? /* @__PURE__ */ jsx49("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
6979
6983
|
OrderingActivityContent_default,
|
|
6980
6984
|
{
|
|
6981
6985
|
answer,
|
|
@@ -6989,7 +6993,7 @@ var ActivityPreviewByData = ({
|
|
|
6989
6993
|
showCorrectAnswer: true,
|
|
6990
6994
|
isFullScreen
|
|
6991
6995
|
}
|
|
6992
|
-
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */
|
|
6996
|
+
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
6993
6997
|
DropdownActivityContent_default,
|
|
6994
6998
|
{
|
|
6995
6999
|
answer,
|
|
@@ -7003,7 +7007,7 @@ var ActivityPreviewByData = ({
|
|
|
7003
7007
|
showCorrectAnswer: true,
|
|
7004
7008
|
isFullScreen
|
|
7005
7009
|
}
|
|
7006
|
-
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */
|
|
7010
|
+
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
7007
7011
|
MCSAActivityContent_default,
|
|
7008
7012
|
{
|
|
7009
7013
|
answer,
|
|
@@ -7017,7 +7021,7 @@ var ActivityPreviewByData = ({
|
|
|
7017
7021
|
showCorrectAnswer: true,
|
|
7018
7022
|
isFullScreen
|
|
7019
7023
|
}
|
|
7020
|
-
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */
|
|
7024
|
+
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
7021
7025
|
MCMAActivityContent_default,
|
|
7022
7026
|
{
|
|
7023
7027
|
answer,
|
|
@@ -7031,7 +7035,7 @@ var ActivityPreviewByData = ({
|
|
|
7031
7035
|
showCorrectAnswer: true,
|
|
7032
7036
|
isFullScreen
|
|
7033
7037
|
}
|
|
7034
|
-
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */
|
|
7038
|
+
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
7035
7039
|
MatchingActivityContent_default,
|
|
7036
7040
|
{
|
|
7037
7041
|
answer,
|
|
@@ -7044,7 +7048,7 @@ var ActivityPreviewByData = ({
|
|
|
7044
7048
|
isPreview: true,
|
|
7045
7049
|
showCorrectAnswer: true
|
|
7046
7050
|
}
|
|
7047
|
-
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */
|
|
7051
|
+
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
7048
7052
|
GroupingActivityContent_default,
|
|
7049
7053
|
{
|
|
7050
7054
|
answer,
|
|
@@ -7057,7 +7061,7 @@ var ActivityPreviewByData = ({
|
|
|
7057
7061
|
isPreview: true,
|
|
7058
7062
|
showCorrectAnswer: true
|
|
7059
7063
|
}
|
|
7060
|
-
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */
|
|
7064
|
+
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
7061
7065
|
FillInTheBlanksActivityContent_default,
|
|
7062
7066
|
{
|
|
7063
7067
|
answer,
|
|
@@ -7071,7 +7075,7 @@ var ActivityPreviewByData = ({
|
|
|
7071
7075
|
showCorrectAnswer: true,
|
|
7072
7076
|
isFullScreen
|
|
7073
7077
|
}
|
|
7074
|
-
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */
|
|
7078
|
+
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ jsx49(
|
|
7075
7079
|
OpenEndedActivityContent_default,
|
|
7076
7080
|
{
|
|
7077
7081
|
answer,
|
|
@@ -7083,7 +7087,7 @@ var ActivityPreviewByData = ({
|
|
|
7083
7087
|
isPreview: true,
|
|
7084
7088
|
isFullScreen
|
|
7085
7089
|
}
|
|
7086
|
-
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */
|
|
7090
|
+
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ jsx49(
|
|
7087
7091
|
TrueFalseActivityContent_default,
|
|
7088
7092
|
{
|
|
7089
7093
|
answer,
|
|
@@ -7098,14 +7102,14 @@ var ActivityPreviewByData = ({
|
|
|
7098
7102
|
isFullScreen
|
|
7099
7103
|
}
|
|
7100
7104
|
) : null }, selectedType) : null,
|
|
7101
|
-
selectedType && showSolution ? /* @__PURE__ */
|
|
7105
|
+
selectedType && showSolution ? /* @__PURE__ */ jsx49("div", { className: "my-4", children: /* @__PURE__ */ jsx49(
|
|
7102
7106
|
ActivitySolutionContent_default,
|
|
7103
7107
|
{
|
|
7104
7108
|
activityTemplateType: selectedType,
|
|
7105
7109
|
data
|
|
7106
7110
|
}
|
|
7107
7111
|
) }) : null,
|
|
7108
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */
|
|
7112
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx49("div", { className: "my-4", children: /* @__PURE__ */ jsx49(
|
|
7109
7113
|
ActivityEvaluationRubricContent_default,
|
|
7110
7114
|
{
|
|
7111
7115
|
activityTemplateType: selectedType,
|
|
@@ -7118,7 +7122,7 @@ var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
|
7118
7122
|
|
|
7119
7123
|
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
7120
7124
|
import { useEffect as useEffect16, useState as useState25 } from "react";
|
|
7121
|
-
import { Fragment as Fragment12, jsx as
|
|
7125
|
+
import { Fragment as Fragment12, jsx as jsx50, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
7122
7126
|
var ActivityPreviewByAnswerData = ({
|
|
7123
7127
|
data,
|
|
7124
7128
|
showType = true,
|
|
@@ -7226,28 +7230,28 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7226
7230
|
};
|
|
7227
7231
|
switch (selectedType) {
|
|
7228
7232
|
case "ORDERING":
|
|
7229
|
-
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */
|
|
7233
|
+
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ jsx50(OrderingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7230
7234
|
case "DROPDOWN":
|
|
7231
|
-
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */
|
|
7235
|
+
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ jsx50(DropdownActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7232
7236
|
case "MCSA":
|
|
7233
|
-
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */
|
|
7237
|
+
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ jsx50(MCSAActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7234
7238
|
case "MCMA":
|
|
7235
|
-
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */
|
|
7239
|
+
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ jsx50(MCMAActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7236
7240
|
case "MATCHING":
|
|
7237
|
-
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */
|
|
7241
|
+
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ jsx50(MatchingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7238
7242
|
case "GROUPING":
|
|
7239
|
-
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */
|
|
7243
|
+
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ jsx50(GroupingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7240
7244
|
case "FILL_IN_THE_BLANKS":
|
|
7241
|
-
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */
|
|
7245
|
+
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ jsx50(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7242
7246
|
case "OPEN_ENDED":
|
|
7243
|
-
return data.openEndedBodyMap ? /* @__PURE__ */
|
|
7247
|
+
return data.openEndedBodyMap ? /* @__PURE__ */ jsx50(
|
|
7244
7248
|
OpenEndedActivityContent_default,
|
|
7245
7249
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
7246
7250
|
showMaterialContent: true
|
|
7247
7251
|
})
|
|
7248
7252
|
) : null;
|
|
7249
7253
|
case "TRUE_FALSE":
|
|
7250
|
-
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */
|
|
7254
|
+
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ jsx50(TrueFalseActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7251
7255
|
default:
|
|
7252
7256
|
return null;
|
|
7253
7257
|
}
|
|
@@ -7256,8 +7260,8 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7256
7260
|
return /* @__PURE__ */ jsxs37("div", { children: [
|
|
7257
7261
|
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(Fragment12, { children: [
|
|
7258
7262
|
/* @__PURE__ */ jsxs37("div", { className: "mb-4", children: [
|
|
7259
|
-
showDescription ? /* @__PURE__ */
|
|
7260
|
-
/* @__PURE__ */
|
|
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(
|
|
7261
7265
|
SelectionBox_default,
|
|
7262
7266
|
{
|
|
7263
7267
|
optionList,
|
|
@@ -7268,20 +7272,20 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7268
7272
|
}
|
|
7269
7273
|
)
|
|
7270
7274
|
] }),
|
|
7271
|
-
/* @__PURE__ */
|
|
7275
|
+
/* @__PURE__ */ jsx50(DividerLine_default, {})
|
|
7272
7276
|
] }) : null,
|
|
7273
7277
|
/* @__PURE__ */ jsxs37("div", { className: "flex flex-col my-2 w-full p-5", children: [
|
|
7274
|
-
((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */
|
|
7275
|
-
selectedType ? /* @__PURE__ */
|
|
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
|
|
7276
7280
|
] }),
|
|
7277
|
-
selectedType && showSolution ? /* @__PURE__ */
|
|
7281
|
+
selectedType && showSolution ? /* @__PURE__ */ jsx50("div", { className: "my-4", children: /* @__PURE__ */ jsx50(
|
|
7278
7282
|
ActivitySolutionContent_default,
|
|
7279
7283
|
{
|
|
7280
7284
|
activityTemplateType: selectedType,
|
|
7281
7285
|
data
|
|
7282
7286
|
}
|
|
7283
7287
|
) }) : null,
|
|
7284
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */
|
|
7288
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ jsx50("div", { className: "my-4", children: /* @__PURE__ */ jsx50(
|
|
7285
7289
|
ActivityEvaluationRubricContent_default,
|
|
7286
7290
|
{
|
|
7287
7291
|
activityTemplateType: selectedType,
|
|
@@ -7293,16 +7297,16 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7293
7297
|
var ActivityPreviewByAnswerData_default = ActivityPreviewByAnswerData;
|
|
7294
7298
|
|
|
7295
7299
|
// src/components/errors/StatusError.tsx
|
|
7296
|
-
import { jsx as
|
|
7300
|
+
import { jsx as jsx51, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7297
7301
|
var StatusError = ({
|
|
7298
7302
|
statusCode,
|
|
7299
7303
|
statusText,
|
|
7300
7304
|
textSize
|
|
7301
7305
|
}) => {
|
|
7302
7306
|
return /* @__PURE__ */ jsxs38("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7303
|
-
/* @__PURE__ */
|
|
7307
|
+
/* @__PURE__ */ jsx51("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7304
7308
|
/* @__PURE__ */ jsxs38("div", { className: "text-center my-5", children: [
|
|
7305
|
-
/* @__PURE__ */
|
|
7309
|
+
/* @__PURE__ */ jsx51("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
7306
7310
|
/* @__PURE__ */ jsxs38("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
|
|
7307
7311
|
"(",
|
|
7308
7312
|
statusCode ? `${statusCode} - ` : null,
|
|
@@ -7315,9 +7319,9 @@ var StatusError = ({
|
|
|
7315
7319
|
var StatusError_default = StatusError;
|
|
7316
7320
|
|
|
7317
7321
|
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
7318
|
-
import { jsx as
|
|
7322
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
7319
7323
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
7320
|
-
return /* @__PURE__ */
|
|
7324
|
+
return /* @__PURE__ */ jsx52(
|
|
7321
7325
|
"div",
|
|
7322
7326
|
{
|
|
7323
7327
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -7327,7 +7331,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7327
7331
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7328
7332
|
|
|
7329
7333
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7330
|
-
import { jsx as
|
|
7334
|
+
import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7331
7335
|
var LeftTextRightInputGroup = ({
|
|
7332
7336
|
type,
|
|
7333
7337
|
title,
|
|
@@ -7338,8 +7342,8 @@ var LeftTextRightInputGroup = ({
|
|
|
7338
7342
|
errorText
|
|
7339
7343
|
}) => {
|
|
7340
7344
|
return /* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7341
|
-
/* @__PURE__ */
|
|
7342
|
-
/* @__PURE__ */
|
|
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(
|
|
7343
7347
|
InputGroup_default,
|
|
7344
7348
|
{
|
|
7345
7349
|
type,
|
|
@@ -7356,7 +7360,7 @@ var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
|
7356
7360
|
|
|
7357
7361
|
// src/components/groups/PageTravelGroup.tsx
|
|
7358
7362
|
import { useEffect as useEffect17, useState as useState26 } from "react";
|
|
7359
|
-
import { jsx as
|
|
7363
|
+
import { jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7360
7364
|
var PageTravelGroup = ({
|
|
7361
7365
|
isImageProcessing,
|
|
7362
7366
|
handleImageProcessing,
|
|
@@ -7375,7 +7379,7 @@ var PageTravelGroup = ({
|
|
|
7375
7379
|
setNewPageNumber(pageNumber + 1);
|
|
7376
7380
|
}, [pageNumber]);
|
|
7377
7381
|
return /* @__PURE__ */ jsxs40("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7378
|
-
pageNumber === 0 ? null : /* @__PURE__ */
|
|
7382
|
+
pageNumber === 0 ? null : /* @__PURE__ */ jsx54("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx54(
|
|
7379
7383
|
BaseImage_default,
|
|
7380
7384
|
{
|
|
7381
7385
|
size: "small",
|
|
@@ -7393,7 +7397,7 @@ var PageTravelGroup = ({
|
|
|
7393
7397
|
}
|
|
7394
7398
|
}
|
|
7395
7399
|
) }),
|
|
7396
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */
|
|
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(
|
|
7397
7401
|
"p",
|
|
7398
7402
|
{
|
|
7399
7403
|
className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -7408,7 +7412,7 @@ var PageTravelGroup = ({
|
|
|
7408
7412
|
children: index + 1
|
|
7409
7413
|
}
|
|
7410
7414
|
) }, index)),
|
|
7411
|
-
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */
|
|
7415
|
+
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ jsx54("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx54(
|
|
7412
7416
|
BaseImage_default,
|
|
7413
7417
|
{
|
|
7414
7418
|
size: "small",
|
|
@@ -7426,7 +7430,7 @@ var PageTravelGroup = ({
|
|
|
7426
7430
|
}
|
|
7427
7431
|
}
|
|
7428
7432
|
) }),
|
|
7429
|
-
/* @__PURE__ */
|
|
7433
|
+
/* @__PURE__ */ jsx54("div", { children: /* @__PURE__ */ jsx54(
|
|
7430
7434
|
"input",
|
|
7431
7435
|
{
|
|
7432
7436
|
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`,
|
|
@@ -7450,14 +7454,14 @@ var PageTravelGroup = ({
|
|
|
7450
7454
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7451
7455
|
|
|
7452
7456
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7453
|
-
import { jsx as
|
|
7457
|
+
import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7454
7458
|
var SelectionCheckbox = ({
|
|
7455
7459
|
optionList,
|
|
7456
7460
|
selectedIdList,
|
|
7457
7461
|
handleSelectOnClick,
|
|
7458
7462
|
handleRemoveOnClick
|
|
7459
7463
|
}) => {
|
|
7460
|
-
return /* @__PURE__ */
|
|
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(
|
|
7461
7465
|
"div",
|
|
7462
7466
|
{
|
|
7463
7467
|
className: `${selectedIdList.findIndex(
|
|
@@ -7479,7 +7483,7 @@ var SelectionCheckbox = ({
|
|
|
7479
7483
|
(selectedId) => selectedId === option.id
|
|
7480
7484
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
7481
7485
|
children: [
|
|
7482
|
-
/* @__PURE__ */
|
|
7486
|
+
/* @__PURE__ */ jsx55(
|
|
7483
7487
|
BaseImage_default,
|
|
7484
7488
|
{
|
|
7485
7489
|
src: selectedIdList.findIndex(
|
|
@@ -7489,7 +7493,7 @@ var SelectionCheckbox = ({
|
|
|
7489
7493
|
size: "small"
|
|
7490
7494
|
}
|
|
7491
7495
|
),
|
|
7492
|
-
/* @__PURE__ */
|
|
7496
|
+
/* @__PURE__ */ jsx55("div", { className: "flex-1", children: /* @__PURE__ */ jsx55("p", { children: option.text }) })
|
|
7493
7497
|
]
|
|
7494
7498
|
}
|
|
7495
7499
|
)
|
|
@@ -7500,7 +7504,7 @@ var SelectionCheckbox = ({
|
|
|
7500
7504
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7501
7505
|
|
|
7502
7506
|
// src/components/tabs/SelectionTab.tsx
|
|
7503
|
-
import { jsx as
|
|
7507
|
+
import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7504
7508
|
var SelectionTab = ({
|
|
7505
7509
|
optionList,
|
|
7506
7510
|
selectedId,
|
|
@@ -7510,7 +7514,7 @@ var SelectionTab = ({
|
|
|
7510
7514
|
textColor,
|
|
7511
7515
|
borderColor
|
|
7512
7516
|
}) => {
|
|
7513
|
-
return /* @__PURE__ */
|
|
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(
|
|
7514
7518
|
"div",
|
|
7515
7519
|
{
|
|
7516
7520
|
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`,
|
|
@@ -7518,8 +7522,8 @@ var SelectionTab = ({
|
|
|
7518
7522
|
handleSelectOnClick(option.id);
|
|
7519
7523
|
},
|
|
7520
7524
|
children: [
|
|
7521
|
-
/* @__PURE__ */
|
|
7522
|
-
option.subTitle ? /* @__PURE__ */
|
|
7525
|
+
/* @__PURE__ */ jsx56("p", { className: "text-lg", children: option.title }),
|
|
7526
|
+
option.subTitle ? /* @__PURE__ */ jsx56("p", { className: "text-md", children: option.subTitle }) : null
|
|
7523
7527
|
]
|
|
7524
7528
|
},
|
|
7525
7529
|
index
|
|
@@ -7528,20 +7532,20 @@ var SelectionTab = ({
|
|
|
7528
7532
|
var SelectionTab_default = SelectionTab;
|
|
7529
7533
|
|
|
7530
7534
|
// src/components/tabs/SelectionTabFill.tsx
|
|
7531
|
-
import { jsx as
|
|
7535
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
7532
7536
|
var SelectionTabFill = ({
|
|
7533
7537
|
optionList,
|
|
7534
7538
|
selectedId,
|
|
7535
7539
|
handleSelectOnClick
|
|
7536
7540
|
}) => {
|
|
7537
|
-
return /* @__PURE__ */
|
|
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(
|
|
7538
7542
|
"div",
|
|
7539
7543
|
{
|
|
7540
7544
|
className: "cursor-pointer",
|
|
7541
7545
|
onClick: () => {
|
|
7542
7546
|
handleSelectOnClick(option.id);
|
|
7543
7547
|
},
|
|
7544
|
-
children: /* @__PURE__ */
|
|
7548
|
+
children: /* @__PURE__ */ jsx57(
|
|
7545
7549
|
"p",
|
|
7546
7550
|
{
|
|
7547
7551
|
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`,
|
|
@@ -7555,34 +7559,34 @@ var SelectionTabFill = ({
|
|
|
7555
7559
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7556
7560
|
|
|
7557
7561
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
7558
|
-
import { jsx as
|
|
7562
|
+
import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7559
7563
|
var ActivityTemplateLabel = ({
|
|
7560
7564
|
title,
|
|
7561
7565
|
icon,
|
|
7562
7566
|
font
|
|
7563
7567
|
}) => {
|
|
7564
|
-
return /* @__PURE__ */
|
|
7565
|
-
icon ? icon : /* @__PURE__ */
|
|
7566
|
-
/* @__PURE__ */
|
|
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 })
|
|
7567
7571
|
] }) });
|
|
7568
7572
|
};
|
|
7569
7573
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
7570
7574
|
|
|
7571
7575
|
// src/components/labels/BrandLabel.tsx
|
|
7572
|
-
import { jsx as
|
|
7576
|
+
import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7573
7577
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7574
|
-
return /* @__PURE__ */
|
|
7575
|
-
icon ? icon : /* @__PURE__ */
|
|
7576
|
-
/* @__PURE__ */
|
|
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 })
|
|
7577
7581
|
] }) });
|
|
7578
7582
|
};
|
|
7579
7583
|
var BrandLabel_default = BrandLabel;
|
|
7580
7584
|
|
|
7581
7585
|
// src/components/labels/CategoryLabel.tsx
|
|
7582
|
-
import { jsx as
|
|
7586
|
+
import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7583
7587
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7584
|
-
return /* @__PURE__ */
|
|
7585
|
-
icon ? icon : /* @__PURE__ */
|
|
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(
|
|
7586
7590
|
BaseImage_default,
|
|
7587
7591
|
{
|
|
7588
7592
|
src: "/icons/category-label.webp",
|
|
@@ -7590,40 +7594,40 @@ var CategoryLabel = ({ title, icon, font }) => {
|
|
|
7590
7594
|
size: "xsmall"
|
|
7591
7595
|
}
|
|
7592
7596
|
),
|
|
7593
|
-
/* @__PURE__ */
|
|
7597
|
+
/* @__PURE__ */ jsx60("p", { className: font ? font : "text-sm", children: title })
|
|
7594
7598
|
] }) });
|
|
7595
7599
|
};
|
|
7596
7600
|
var CategoryLabel_default = CategoryLabel;
|
|
7597
7601
|
|
|
7598
7602
|
// src/components/labels/CoterieLabel.tsx
|
|
7599
|
-
import { jsx as
|
|
7603
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
7600
7604
|
var CoterieLabel = ({ title, font }) => {
|
|
7601
|
-
return /* @__PURE__ */
|
|
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 }) });
|
|
7602
7606
|
};
|
|
7603
7607
|
var CoterieLabel_default = CoterieLabel;
|
|
7604
7608
|
|
|
7605
7609
|
// src/components/labels/GradeLabel.tsx
|
|
7606
|
-
import { jsx as
|
|
7610
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7607
7611
|
var GradeLabel = ({ title, font }) => {
|
|
7608
|
-
return /* @__PURE__ */
|
|
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 }) });
|
|
7609
7613
|
};
|
|
7610
7614
|
var GradeLabel_default = GradeLabel;
|
|
7611
7615
|
|
|
7612
7616
|
// src/components/labels/OutcomeLabel.tsx
|
|
7613
|
-
import { jsx as
|
|
7617
|
+
import { jsx as jsx63, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7614
7618
|
var OutcomeLabel = ({ title, font }) => {
|
|
7615
|
-
return /* @__PURE__ */
|
|
7616
|
-
/* @__PURE__ */
|
|
7617
|
-
/* @__PURE__ */
|
|
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 })
|
|
7618
7622
|
] }) });
|
|
7619
7623
|
};
|
|
7620
7624
|
var OutcomeLabel_default = OutcomeLabel;
|
|
7621
7625
|
|
|
7622
7626
|
// src/components/labels/PersonalLabel.tsx
|
|
7623
|
-
import { jsx as
|
|
7627
|
+
import { jsx as jsx64, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7624
7628
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7625
|
-
return /* @__PURE__ */
|
|
7626
|
-
icon ? icon : /* @__PURE__ */
|
|
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(
|
|
7627
7631
|
BaseImage_default,
|
|
7628
7632
|
{
|
|
7629
7633
|
src: "/icons/personal-label.webp",
|
|
@@ -7631,16 +7635,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
7631
7635
|
size: "xsmall"
|
|
7632
7636
|
}
|
|
7633
7637
|
),
|
|
7634
|
-
/* @__PURE__ */
|
|
7638
|
+
/* @__PURE__ */ jsx64("p", { className: font ? font : "text-sm", children: title })
|
|
7635
7639
|
] }) });
|
|
7636
7640
|
};
|
|
7637
7641
|
var PersonalLabel_default = PersonalLabel;
|
|
7638
7642
|
|
|
7639
7643
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7640
|
-
import { jsx as
|
|
7644
|
+
import { jsx as jsx65, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7641
7645
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7642
|
-
return /* @__PURE__ */
|
|
7643
|
-
icon ? icon : /* @__PURE__ */
|
|
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(
|
|
7644
7648
|
BaseImage_default,
|
|
7645
7649
|
{
|
|
7646
7650
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -7648,31 +7652,31 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
7648
7652
|
size: "xsmall"
|
|
7649
7653
|
}
|
|
7650
7654
|
),
|
|
7651
|
-
/* @__PURE__ */
|
|
7655
|
+
/* @__PURE__ */ jsx65("p", { className: font ? font : "text-sm", children: title })
|
|
7652
7656
|
] }) });
|
|
7653
7657
|
};
|
|
7654
7658
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
7655
7659
|
|
|
7656
7660
|
// src/components/labels/ActivityLabel.tsx
|
|
7657
|
-
import { jsx as
|
|
7661
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
7658
7662
|
var ActivityLabel = ({ title, font }) => {
|
|
7659
|
-
return /* @__PURE__ */
|
|
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 }) });
|
|
7660
7664
|
};
|
|
7661
7665
|
var ActivityLabel_default = ActivityLabel;
|
|
7662
7666
|
|
|
7663
7667
|
// src/components/infos/InfoWithText.tsx
|
|
7664
|
-
import { jsx as
|
|
7668
|
+
import { jsx as jsx67, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7665
7669
|
var InfoWithText = (props) => {
|
|
7666
7670
|
const { value } = props;
|
|
7667
7671
|
return /* @__PURE__ */ jsxs49("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7668
|
-
/* @__PURE__ */
|
|
7669
|
-
/* @__PURE__ */
|
|
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 }) })
|
|
7670
7674
|
] });
|
|
7671
7675
|
};
|
|
7672
7676
|
var InfoWithText_default = InfoWithText;
|
|
7673
7677
|
|
|
7674
7678
|
// src/components/titles/BaseTitle.tsx
|
|
7675
|
-
import { jsx as
|
|
7679
|
+
import { jsx as jsx68, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7676
7680
|
var BaseTitle = ({
|
|
7677
7681
|
title,
|
|
7678
7682
|
totalItemCount,
|
|
@@ -7688,15 +7692,15 @@ var BaseTitle = ({
|
|
|
7688
7692
|
itemName
|
|
7689
7693
|
] }) : null
|
|
7690
7694
|
] }),
|
|
7691
|
-
description ? /* @__PURE__ */
|
|
7695
|
+
description ? /* @__PURE__ */ jsx68("p", { className: "", children: description }) : null
|
|
7692
7696
|
] });
|
|
7693
7697
|
};
|
|
7694
7698
|
var BaseTitle_default = BaseTitle;
|
|
7695
7699
|
|
|
7696
7700
|
// src/components/titles/SubTitle.tsx
|
|
7697
|
-
import { jsx as
|
|
7701
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
7698
7702
|
var SubTitle = ({ title }) => {
|
|
7699
|
-
return /* @__PURE__ */
|
|
7703
|
+
return /* @__PURE__ */ jsx69("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7700
7704
|
};
|
|
7701
7705
|
var SubTitle_default = SubTitle;
|
|
7702
7706
|
|