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.js
CHANGED
|
@@ -5114,7 +5114,7 @@ var FillInTheBlanksActivityMaterialContent = ({
|
|
|
5114
5114
|
value: answerMap[materialKey],
|
|
5115
5115
|
showSpecialOnly: false
|
|
5116
5116
|
}
|
|
5117
|
-
) :
|
|
5117
|
+
) : null
|
|
5118
5118
|
}
|
|
5119
5119
|
) }),
|
|
5120
5120
|
learnerAnswerState === "CORRECT" ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "absolute -top-[10px] right-4 bg-catchup-white", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
@@ -6425,8 +6425,7 @@ var OpenEndedActivityContent = ({
|
|
|
6425
6425
|
var OpenEndedActivityContent_default = OpenEndedActivityContent;
|
|
6426
6426
|
|
|
6427
6427
|
// src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
|
|
6428
|
-
var
|
|
6429
|
-
var import_react_dnd6 = require("react-dnd");
|
|
6428
|
+
var import_react24 = require("react");
|
|
6430
6429
|
var import_react_katex9 = require("react-katex");
|
|
6431
6430
|
|
|
6432
6431
|
// src/hooks/useScreenSize.ts
|
|
@@ -6464,59 +6463,8 @@ var useScreenSize = () => {
|
|
|
6464
6463
|
};
|
|
6465
6464
|
var useScreenSize_default = useScreenSize;
|
|
6466
6465
|
|
|
6467
|
-
// src/components/dnds/DraggableDroppableItem.tsx
|
|
6468
|
-
var import_react24 = require("react");
|
|
6469
|
-
var import_react_dnd5 = require("react-dnd");
|
|
6470
|
-
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
6471
|
-
var DraggableDroppableItem = ({
|
|
6472
|
-
item,
|
|
6473
|
-
type,
|
|
6474
|
-
component,
|
|
6475
|
-
moveCardHandler,
|
|
6476
|
-
dropRef,
|
|
6477
|
-
target,
|
|
6478
|
-
setTarget
|
|
6479
|
-
}) => {
|
|
6480
|
-
const ref = (0, import_react24.useRef)(null);
|
|
6481
|
-
const [, drop] = (0, import_react_dnd5.useDrop)({
|
|
6482
|
-
accept: type,
|
|
6483
|
-
hover() {
|
|
6484
|
-
if (!ref.current) {
|
|
6485
|
-
return;
|
|
6486
|
-
}
|
|
6487
|
-
if (item.index && target !== item.index) {
|
|
6488
|
-
setTarget(item.index);
|
|
6489
|
-
}
|
|
6490
|
-
}
|
|
6491
|
-
});
|
|
6492
|
-
const [{ isDragging }, drag] = (0, import_react_dnd5.useDrag)({
|
|
6493
|
-
type,
|
|
6494
|
-
item,
|
|
6495
|
-
end: (item2, monitor) => {
|
|
6496
|
-
const dropResult = monitor.getDropResult();
|
|
6497
|
-
if (dropResult) {
|
|
6498
|
-
moveCardHandler();
|
|
6499
|
-
}
|
|
6500
|
-
},
|
|
6501
|
-
collect: (monitor) => ({
|
|
6502
|
-
isDragging: monitor.isDragging()
|
|
6503
|
-
})
|
|
6504
|
-
});
|
|
6505
|
-
const opacity = isDragging ? 0.4 : 1;
|
|
6506
|
-
drag(drop(ref));
|
|
6507
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6508
|
-
"div",
|
|
6509
|
-
{
|
|
6510
|
-
className: `${isDragging ? "w-[0px] opacity-0" : "w-full opacity-100"} transition-all duration-500`,
|
|
6511
|
-
ref: dropRef,
|
|
6512
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { ref, className: "w-full", style: { opacity }, children: component })
|
|
6513
|
-
}
|
|
6514
|
-
);
|
|
6515
|
-
};
|
|
6516
|
-
var DraggableDroppableItem_default = DraggableDroppableItem;
|
|
6517
|
-
|
|
6518
6466
|
// src/components/activities/material-contents/OrderingActivityMaterialContent.tsx
|
|
6519
|
-
var
|
|
6467
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
6520
6468
|
var OrderingActivityMaterialContent = ({
|
|
6521
6469
|
uniqueValue,
|
|
6522
6470
|
answer,
|
|
@@ -6527,20 +6475,20 @@ var OrderingActivityMaterialContent = ({
|
|
|
6527
6475
|
isPreview,
|
|
6528
6476
|
showCorrectAnswer
|
|
6529
6477
|
}) => {
|
|
6530
|
-
const [
|
|
6531
|
-
const [
|
|
6532
|
-
const
|
|
6533
|
-
const [
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
canDrop: monitor.canDrop()
|
|
6541
|
-
})
|
|
6478
|
+
const [selectedKey, setSelectedKey] = (0, import_react24.useState)(null);
|
|
6479
|
+
const [draggedKey, setDraggedKey] = (0, import_react24.useState)(null);
|
|
6480
|
+
const [dropTargetKey, setDropTargetKey] = (0, import_react24.useState)(null);
|
|
6481
|
+
const [draggedElement, setDraggedElement] = (0, import_react24.useState)(
|
|
6482
|
+
null
|
|
6483
|
+
);
|
|
6484
|
+
const dragElementRef = (0, import_react24.useRef)(null);
|
|
6485
|
+
const [touchPosition, setTouchPosition] = (0, import_react24.useState)({
|
|
6486
|
+
x: 0,
|
|
6487
|
+
y: 0
|
|
6542
6488
|
});
|
|
6543
|
-
|
|
6489
|
+
const { screenSize } = useScreenSize_default();
|
|
6490
|
+
const [view, setView] = (0, import_react24.useState)("PC");
|
|
6491
|
+
(0, import_react24.useEffect)(() => {
|
|
6544
6492
|
if (!screenSize) return;
|
|
6545
6493
|
if (screenSize.width <= 1024) {
|
|
6546
6494
|
setView("TABLET");
|
|
@@ -6548,7 +6496,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
6548
6496
|
setView("PC");
|
|
6549
6497
|
}
|
|
6550
6498
|
}, [screenSize]);
|
|
6551
|
-
(0,
|
|
6499
|
+
(0, import_react24.useEffect)(() => {
|
|
6552
6500
|
if (!showCorrectAnswer) return;
|
|
6553
6501
|
const answerMap2 = answer.data.find(
|
|
6554
6502
|
(answerData) => answerData.type === "ORDERING"
|
|
@@ -6570,23 +6518,9 @@ var OrderingActivityMaterialContent = ({
|
|
|
6570
6518
|
}
|
|
6571
6519
|
return "INCORRECT";
|
|
6572
6520
|
};
|
|
6573
|
-
const handleOrderingActivityItemChange = (selectedKey2, materialKey) => {
|
|
6574
|
-
if (checkCanAnswerQuestion()) {
|
|
6575
|
-
if (selectedKey2) {
|
|
6576
|
-
onChange(answer, selectedKey2, materialKey);
|
|
6577
|
-
setSelectedKey(null);
|
|
6578
|
-
} else {
|
|
6579
|
-
setSelectedKey(materialKey);
|
|
6580
|
-
}
|
|
6581
|
-
}
|
|
6582
|
-
};
|
|
6583
6521
|
const calculateMarginTop = (index) => {
|
|
6584
6522
|
if (index === 0) {
|
|
6585
|
-
|
|
6586
|
-
return 0;
|
|
6587
|
-
} else {
|
|
6588
|
-
return 0;
|
|
6589
|
-
}
|
|
6523
|
+
return 0;
|
|
6590
6524
|
} else if (index === 1) {
|
|
6591
6525
|
if (contentMap.type === "TEXT") {
|
|
6592
6526
|
return 65;
|
|
@@ -6600,97 +6534,167 @@ var OrderingActivityMaterialContent = ({
|
|
|
6600
6534
|
return -130;
|
|
6601
6535
|
}
|
|
6602
6536
|
} else if (index % 2 === 1) {
|
|
6603
|
-
|
|
6604
|
-
return 0;
|
|
6605
|
-
} else {
|
|
6606
|
-
return 0;
|
|
6607
|
-
}
|
|
6537
|
+
return 0;
|
|
6608
6538
|
}
|
|
6609
6539
|
return 0;
|
|
6610
6540
|
};
|
|
6611
|
-
const
|
|
6612
|
-
|
|
6613
|
-
|
|
6614
|
-
|
|
6615
|
-
|
|
6541
|
+
const handleMouseDown = (e, materialKey) => {
|
|
6542
|
+
if (!checkCanAnswerQuestion()) return;
|
|
6543
|
+
e.preventDefault();
|
|
6544
|
+
setDraggedKey(materialKey);
|
|
6545
|
+
setSelectedKey(null);
|
|
6546
|
+
};
|
|
6547
|
+
const handleMouseUp = () => {
|
|
6548
|
+
if (dropTargetKey !== null && draggedKey !== null && dropTargetKey !== draggedKey) {
|
|
6549
|
+
onChange(answer, draggedKey, dropTargetKey);
|
|
6550
|
+
}
|
|
6551
|
+
setDraggedKey(null);
|
|
6552
|
+
setDropTargetKey(null);
|
|
6553
|
+
};
|
|
6554
|
+
const handleTouchStart = (e, materialKey, element) => {
|
|
6555
|
+
if (!checkCanAnswerQuestion()) return;
|
|
6556
|
+
const touch = e.touches[0];
|
|
6557
|
+
setDraggedKey(materialKey);
|
|
6558
|
+
setDraggedElement(element);
|
|
6559
|
+
setTouchPosition({ x: touch.clientX, y: touch.clientY });
|
|
6560
|
+
setSelectedKey(null);
|
|
6561
|
+
};
|
|
6562
|
+
const handleTouchMove = (e) => {
|
|
6563
|
+
if (!draggedKey) return;
|
|
6564
|
+
const touch = e.touches[0];
|
|
6565
|
+
setTouchPosition({ x: touch.clientX, y: touch.clientY });
|
|
6566
|
+
const elementUnder = document.elementFromPoint(
|
|
6567
|
+
touch.clientX,
|
|
6568
|
+
touch.clientY
|
|
6616
6569
|
);
|
|
6617
|
-
|
|
6570
|
+
const dropZone = elementUnder == null ? void 0 : elementUnder.closest("[data-ordering-drop-zone]");
|
|
6571
|
+
if (dropZone) {
|
|
6572
|
+
const dropKey = dropZone.getAttribute("data-ordering-drop-zone");
|
|
6573
|
+
setDropTargetKey(dropKey);
|
|
6574
|
+
} else {
|
|
6575
|
+
setDropTargetKey(null);
|
|
6576
|
+
}
|
|
6577
|
+
};
|
|
6578
|
+
const handleTouchEnd = () => {
|
|
6579
|
+
if (dropTargetKey !== null && draggedKey !== null && dropTargetKey !== draggedKey) {
|
|
6580
|
+
onChange(answer, draggedKey, dropTargetKey);
|
|
6581
|
+
}
|
|
6582
|
+
setDraggedKey(null);
|
|
6583
|
+
setDropTargetKey(null);
|
|
6584
|
+
setDraggedElement(null);
|
|
6585
|
+
};
|
|
6586
|
+
const handleSelectItem = (materialKey) => {
|
|
6587
|
+
if (!checkCanAnswerQuestion()) return;
|
|
6588
|
+
if (selectedKey === null) {
|
|
6589
|
+
setSelectedKey(materialKey);
|
|
6590
|
+
} else if (selectedKey === materialKey) {
|
|
6591
|
+
setSelectedKey(null);
|
|
6592
|
+
} else {
|
|
6593
|
+
onChange(answer, selectedKey, materialKey);
|
|
6594
|
+
setSelectedKey(null);
|
|
6595
|
+
}
|
|
6596
|
+
setDraggedKey(null);
|
|
6597
|
+
};
|
|
6598
|
+
const answerMap = retrieveAnswerMap();
|
|
6599
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-row flex-wrap", onMouseUp: handleMouseUp, children: [
|
|
6600
|
+
draggedKey && touchPosition.x > 0 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6618
6601
|
"div",
|
|
6619
6602
|
{
|
|
6620
|
-
className:
|
|
6603
|
+
className: "fixed pointer-events-none z-50 opacity-80",
|
|
6621
6604
|
style: {
|
|
6622
|
-
|
|
6605
|
+
left: `${touchPosition.x}px`,
|
|
6606
|
+
top: `${touchPosition.y}px`,
|
|
6607
|
+
transform: "translate(-50%, -50%)"
|
|
6623
6608
|
},
|
|
6624
|
-
children:
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
}
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
onMouseDown: () => {
|
|
6643
|
-
if (checkCanAnswerQuestion()) {
|
|
6644
|
-
setSelectedKey(materialKey);
|
|
6645
|
-
}
|
|
6646
|
-
},
|
|
6647
|
-
onTouchEnd: () => {
|
|
6648
|
-
if (checkCanAnswerQuestion()) {
|
|
6649
|
-
setSelectedKey(materialKey);
|
|
6650
|
-
}
|
|
6651
|
-
},
|
|
6652
|
-
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6653
|
-
materialMap[answerMap[materialKey]]
|
|
6654
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6655
|
-
"span",
|
|
6656
|
-
{
|
|
6657
|
-
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6658
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react_katex9.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6659
|
-
},
|
|
6660
|
-
index2
|
|
6661
|
-
)) }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6662
|
-
ShowMaterialMediaByContentType_default,
|
|
6663
|
-
{
|
|
6664
|
-
contentType: contentMap.type,
|
|
6665
|
-
src: materialMap[answerMap[materialKey]],
|
|
6666
|
-
canFullScreen: true
|
|
6667
|
-
},
|
|
6668
|
-
`${uniqueValue}-${index}`
|
|
6669
|
-
)
|
|
6670
|
-
}
|
|
6671
|
-
),
|
|
6672
|
-
target: selectedTargetKey,
|
|
6673
|
-
setTarget: setSelectedTargetKey,
|
|
6674
|
-
moveCardHandler: () => {
|
|
6675
|
-
if (!selectedKey) return;
|
|
6676
|
-
if (!selectedTargetKey) return;
|
|
6677
|
-
handleOrderingActivityItemChange(
|
|
6678
|
-
selectedKey,
|
|
6679
|
-
selectedTargetKey
|
|
6680
|
-
);
|
|
6681
|
-
}
|
|
6682
|
-
},
|
|
6683
|
-
index
|
|
6684
|
-
)
|
|
6685
|
-
]
|
|
6609
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "border-catchup-blue border-2 px-3 py-2 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6610
|
+
materialMap[answerMap[draggedKey]]
|
|
6611
|
+
).map((inputPart, index) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6612
|
+
"span",
|
|
6613
|
+
{
|
|
6614
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6615
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_katex9.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6616
|
+
},
|
|
6617
|
+
index
|
|
6618
|
+
)) }) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "border-catchup-blue border-2 px-2 py-1 rounded-catchup-xlarge bg-white shadow-lg", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6619
|
+
ShowMaterialMediaByContentType_default,
|
|
6620
|
+
{
|
|
6621
|
+
contentType: contentMap.type,
|
|
6622
|
+
src: materialMap[answerMap[draggedKey]],
|
|
6623
|
+
canFullScreen: false
|
|
6624
|
+
},
|
|
6625
|
+
`${uniqueValue}-drag`
|
|
6626
|
+
) })
|
|
6686
6627
|
}
|
|
6687
|
-
)
|
|
6688
|
-
|
|
6628
|
+
),
|
|
6629
|
+
Object.keys(answerMap).map((materialKey, index) => {
|
|
6630
|
+
const learnerAnswerState = checkAnswerState(
|
|
6631
|
+
answerMap[materialKey] + "",
|
|
6632
|
+
index + ""
|
|
6633
|
+
);
|
|
6634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
6635
|
+
"div",
|
|
6636
|
+
{
|
|
6637
|
+
className: `flex flex-row items-center my-4 mx-2`,
|
|
6638
|
+
style: {
|
|
6639
|
+
marginTop: view === "PC" ? calculateMarginTop(parseFloat(materialKey)) : 0
|
|
6640
|
+
},
|
|
6641
|
+
children: [
|
|
6642
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "mr-3", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("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__ */ (0, import_jsx_runtime42.jsx)(
|
|
6643
|
+
"div",
|
|
6644
|
+
{
|
|
6645
|
+
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]`,
|
|
6646
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "", children: parseFloat(materialKey) + 1 })
|
|
6647
|
+
}
|
|
6648
|
+
) }) }),
|
|
6649
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6650
|
+
"div",
|
|
6651
|
+
{
|
|
6652
|
+
ref: draggedKey === materialKey ? dragElementRef : null,
|
|
6653
|
+
"data-ordering-drop-zone": materialKey,
|
|
6654
|
+
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`,
|
|
6655
|
+
onMouseDown: (e) => handleMouseDown(e, materialKey),
|
|
6656
|
+
onMouseEnter: () => draggedKey && draggedKey !== materialKey && setDropTargetKey(materialKey),
|
|
6657
|
+
onMouseLeave: () => setDropTargetKey(null),
|
|
6658
|
+
onTouchStart: (e) => handleTouchStart(e, materialKey, e.currentTarget),
|
|
6659
|
+
onTouchMove: handleTouchMove,
|
|
6660
|
+
onTouchEnd: handleTouchEnd,
|
|
6661
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6662
|
+
"div",
|
|
6663
|
+
{
|
|
6664
|
+
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"}`,
|
|
6665
|
+
onClick: () => handleSelectItem(materialKey),
|
|
6666
|
+
children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-xl whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6667
|
+
materialMap[answerMap[materialKey]]
|
|
6668
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6669
|
+
"span",
|
|
6670
|
+
{
|
|
6671
|
+
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6672
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_katex9.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6673
|
+
},
|
|
6674
|
+
index2
|
|
6675
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
6676
|
+
ShowMaterialMediaByContentType_default,
|
|
6677
|
+
{
|
|
6678
|
+
contentType: contentMap.type,
|
|
6679
|
+
src: materialMap[answerMap[materialKey]],
|
|
6680
|
+
canFullScreen: true
|
|
6681
|
+
},
|
|
6682
|
+
`${uniqueValue}-${index}`
|
|
6683
|
+
)
|
|
6684
|
+
}
|
|
6685
|
+
)
|
|
6686
|
+
}
|
|
6687
|
+
)
|
|
6688
|
+
]
|
|
6689
|
+
}
|
|
6690
|
+
) }, index);
|
|
6691
|
+
})
|
|
6692
|
+
] });
|
|
6689
6693
|
};
|
|
6690
6694
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
6691
6695
|
|
|
6692
6696
|
// src/components/activities/OrderingActivityContent.tsx
|
|
6693
|
-
var
|
|
6697
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
6694
6698
|
var OrderingActivityContent = ({
|
|
6695
6699
|
answer,
|
|
6696
6700
|
data,
|
|
@@ -6714,16 +6718,16 @@ var OrderingActivityContent = ({
|
|
|
6714
6718
|
answerMap[secondaryKey] = prevValue;
|
|
6715
6719
|
changeAnswer(answer2);
|
|
6716
6720
|
};
|
|
6717
|
-
return /* @__PURE__ */ (0,
|
|
6718
|
-
/* @__PURE__ */ (0,
|
|
6721
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
|
|
6722
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6719
6723
|
ActivityBodyContent_default,
|
|
6720
6724
|
{
|
|
6721
6725
|
bodyMap: orderingBodyMap,
|
|
6722
6726
|
templateType: "ORDERING"
|
|
6723
6727
|
}
|
|
6724
6728
|
),
|
|
6725
|
-
/* @__PURE__ */ (0,
|
|
6726
|
-
/* @__PURE__ */ (0,
|
|
6729
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(DividerLine_default, {}),
|
|
6730
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
6727
6731
|
OrderingActivityMaterialContent_default,
|
|
6728
6732
|
{
|
|
6729
6733
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6741,9 +6745,9 @@ var OrderingActivityContent = ({
|
|
|
6741
6745
|
var OrderingActivityContent_default = OrderingActivityContent;
|
|
6742
6746
|
|
|
6743
6747
|
// src/components/activities/material-contents/TrueFalseActivityMaterialContent.tsx
|
|
6744
|
-
var
|
|
6748
|
+
var import_react25 = require("react");
|
|
6745
6749
|
var import_react_katex10 = require("react-katex");
|
|
6746
|
-
var
|
|
6750
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
6747
6751
|
var TrueFalseActivityMaterialContent = ({
|
|
6748
6752
|
uniqueValue,
|
|
6749
6753
|
answer,
|
|
@@ -6755,8 +6759,8 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6755
6759
|
showCorrectAnswer
|
|
6756
6760
|
}) => {
|
|
6757
6761
|
const { screenSize } = useScreenSize_default();
|
|
6758
|
-
const [shuffleOptionList, setShuffleOptionList] = (0,
|
|
6759
|
-
(0,
|
|
6762
|
+
const [shuffleOptionList, setShuffleOptionList] = (0, import_react25.useState)([]);
|
|
6763
|
+
(0, import_react25.useEffect)(() => {
|
|
6760
6764
|
const optionList = [];
|
|
6761
6765
|
optionList.push(...materialMap.trueList);
|
|
6762
6766
|
optionList.push(...materialMap.falseList);
|
|
@@ -6766,7 +6770,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6766
6770
|
setShuffleOptionList(shuffleArray(optionList));
|
|
6767
6771
|
}
|
|
6768
6772
|
}, []);
|
|
6769
|
-
(0,
|
|
6773
|
+
(0, import_react25.useEffect)(() => {
|
|
6770
6774
|
if (!showCorrectAnswer) return;
|
|
6771
6775
|
answer.data.find(
|
|
6772
6776
|
(answerData) => answerData.type === "TRUE_FALSE"
|
|
@@ -6796,14 +6800,14 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6796
6800
|
return "INCORRECT";
|
|
6797
6801
|
};
|
|
6798
6802
|
const answerMap = retrieveAnswerMap();
|
|
6799
|
-
return /* @__PURE__ */ (0,
|
|
6800
|
-
/* @__PURE__ */ (0,
|
|
6801
|
-
/* @__PURE__ */ (0,
|
|
6802
|
-
/* @__PURE__ */ (0,
|
|
6803
|
-
/* @__PURE__ */ (0,
|
|
6804
|
-
/* @__PURE__ */ (0,
|
|
6803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "", children: [
|
|
6804
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "hidden md:block", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_true_false_text") }) }),
|
|
6805
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "hidden md:contents", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DividerLine_default, {}) }),
|
|
6806
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row justify-end items-center gap-x-2", children: [
|
|
6807
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("true") }) }),
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "font-bold text-lg", children: i18n_default.t("false") }) })
|
|
6805
6809
|
] }),
|
|
6806
|
-
checkCanAnswerQuestion() ? /* @__PURE__ */ (0,
|
|
6810
|
+
checkCanAnswerQuestion() ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: `flex flex-row w-full justify-center flex-wrap`, children: shuffleOptionList.map((shuffleOption, index) => {
|
|
6807
6811
|
const correctAnswer = materialMap.trueList.find(
|
|
6808
6812
|
(trueItem) => trueItem === shuffleOption
|
|
6809
6813
|
) !== void 0 ? "TRUE" : "FALSE";
|
|
@@ -6814,21 +6818,21 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6814
6818
|
correctAnswer,
|
|
6815
6819
|
learnerAnswer
|
|
6816
6820
|
);
|
|
6817
|
-
return /* @__PURE__ */ (0,
|
|
6821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
6818
6822
|
"div",
|
|
6819
6823
|
{
|
|
6820
6824
|
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" : ""}`,
|
|
6821
6825
|
children: [
|
|
6822
|
-
/* @__PURE__ */ (0,
|
|
6826
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex-1", children: contentMap.type === "TEXT" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "text-xl p-2 whitespace-pre-wrap", children: constructInputWithSpecialExpressionList(
|
|
6823
6827
|
shuffleOption
|
|
6824
|
-
).map((inputPart, index2) => /* @__PURE__ */ (0,
|
|
6828
|
+
).map((inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6825
6829
|
"span",
|
|
6826
6830
|
{
|
|
6827
6831
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
6828
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
6832
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_katex10.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
6829
6833
|
},
|
|
6830
6834
|
index2
|
|
6831
|
-
)) }) : /* @__PURE__ */ (0,
|
|
6835
|
+
)) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6832
6836
|
ShowMaterialMediaByContentType_default,
|
|
6833
6837
|
{
|
|
6834
6838
|
contentType: contentMap.type,
|
|
@@ -6837,8 +6841,8 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6837
6841
|
},
|
|
6838
6842
|
`${uniqueValue}-${index}`
|
|
6839
6843
|
) }),
|
|
6840
|
-
/* @__PURE__ */ (0,
|
|
6841
|
-
/* @__PURE__ */ (0,
|
|
6844
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6845
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6842
6846
|
BaseImage_default,
|
|
6843
6847
|
{
|
|
6844
6848
|
src: answerMap.trueList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -6849,7 +6853,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6849
6853
|
}
|
|
6850
6854
|
}
|
|
6851
6855
|
) }) }),
|
|
6852
|
-
/* @__PURE__ */ (0,
|
|
6856
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex flex-col items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
6853
6857
|
BaseImage_default,
|
|
6854
6858
|
{
|
|
6855
6859
|
src: answerMap.falseList.includes(shuffleOption) ? "/icons/checkbox.webp" : "/icons/checkbox-empty.webp",
|
|
@@ -6865,14 +6869,14 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6865
6869
|
},
|
|
6866
6870
|
index
|
|
6867
6871
|
);
|
|
6868
|
-
}) }) : /* @__PURE__ */ (0,
|
|
6869
|
-
answerMap.trueList.map((item) => /* @__PURE__ */ (0,
|
|
6870
|
-
/* @__PURE__ */ (0,
|
|
6871
|
-
/* @__PURE__ */ (0,
|
|
6872
|
+
}) }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
|
|
6873
|
+
answerMap.trueList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6874
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { children: item }) }),
|
|
6875
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "underline", children: i18n_default.t("true") }) })
|
|
6872
6876
|
] })),
|
|
6873
|
-
answerMap.falseList.map((item) => /* @__PURE__ */ (0,
|
|
6874
|
-
/* @__PURE__ */ (0,
|
|
6875
|
-
/* @__PURE__ */ (0,
|
|
6877
|
+
answerMap.falseList.map((item) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6878
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { children: item }) }),
|
|
6879
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "w-[50px]", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "underline", children: i18n_default.t("false") }) })
|
|
6876
6880
|
] }))
|
|
6877
6881
|
] })
|
|
6878
6882
|
] });
|
|
@@ -6880,7 +6884,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6880
6884
|
var TrueFalseActivityMaterialContent_default = TrueFalseActivityMaterialContent;
|
|
6881
6885
|
|
|
6882
6886
|
// src/components/activities/TrueFalseActivityContent.tsx
|
|
6883
|
-
var
|
|
6887
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
6884
6888
|
var TrueFalseActivityContent = ({
|
|
6885
6889
|
answer,
|
|
6886
6890
|
data,
|
|
@@ -6931,17 +6935,17 @@ var TrueFalseActivityContent = ({
|
|
|
6931
6935
|
}
|
|
6932
6936
|
changeAnswer(answer2);
|
|
6933
6937
|
};
|
|
6934
|
-
return /* @__PURE__ */ (0,
|
|
6935
|
-
/* @__PURE__ */ (0,
|
|
6938
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex flex-row flex-wrap", children: [
|
|
6939
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:w-[40%]"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6936
6940
|
ActivityBodyContent_default,
|
|
6937
6941
|
{
|
|
6938
6942
|
bodyMap: trueFalseBodyMap,
|
|
6939
6943
|
templateType: "GROUPING"
|
|
6940
6944
|
}
|
|
6941
6945
|
) }),
|
|
6942
|
-
/* @__PURE__ */ (0,
|
|
6943
|
-
/* @__PURE__ */ (0,
|
|
6944
|
-
/* @__PURE__ */ (0,
|
|
6946
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "contents" : "contents md:hidden"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(DividerLine_default, {}) }),
|
|
6947
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "hidden" : "hidden md:block"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(VerticalDividerLine_default, {}) }),
|
|
6948
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: `${isFullScreen ? "w-full" : "w-full md:flex-1"}`, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
6945
6949
|
TrueFalseActivityMaterialContent_default,
|
|
6946
6950
|
{
|
|
6947
6951
|
uniqueValue: JSON.stringify(data.contentMap),
|
|
@@ -6960,7 +6964,7 @@ var TrueFalseActivityContent_default = TrueFalseActivityContent;
|
|
|
6960
6964
|
|
|
6961
6965
|
// src/components/activities/solution-contents/ActivitySolutionContent.tsx
|
|
6962
6966
|
var import_react_katex11 = require("react-katex");
|
|
6963
|
-
var
|
|
6967
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
6964
6968
|
var ActivitySolutionContent = ({
|
|
6965
6969
|
activityTemplateType,
|
|
6966
6970
|
data
|
|
@@ -6990,8 +6994,8 @@ var ActivitySolutionContent = ({
|
|
|
6990
6994
|
return null;
|
|
6991
6995
|
}
|
|
6992
6996
|
if (!solutionMap || Object.keys(solutionMap).length === 0) return null;
|
|
6993
|
-
return /* @__PURE__ */ (0,
|
|
6994
|
-
/* @__PURE__ */ (0,
|
|
6997
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "p-4 border-catchup-blue border-2 rounded-catchup-xlarge", children: [
|
|
6998
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("solution") }),
|
|
6995
6999
|
Object.keys(solutionMap).map((key) => {
|
|
6996
7000
|
let currentItem;
|
|
6997
7001
|
try {
|
|
@@ -7001,12 +7005,12 @@ var ActivitySolutionContent = ({
|
|
|
7001
7005
|
return null;
|
|
7002
7006
|
}
|
|
7003
7007
|
const { value } = currentItem;
|
|
7004
|
-
return /* @__PURE__ */ (0,
|
|
7005
|
-
(inputPart, partIndex) => /* @__PURE__ */ (0,
|
|
7008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "my-3 text-xl", children: constructInputWithSpecialExpressionList(value).map(
|
|
7009
|
+
(inputPart, partIndex) => /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
7006
7010
|
"span",
|
|
7007
7011
|
{
|
|
7008
7012
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7009
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
7013
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_katex11.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
7010
7014
|
},
|
|
7011
7015
|
`${key}_part_${partIndex}`
|
|
7012
7016
|
)
|
|
@@ -7018,7 +7022,7 @@ var ActivitySolutionContent_default = ActivitySolutionContent;
|
|
|
7018
7022
|
|
|
7019
7023
|
// src/components/activities/evaluation-rubric-contents/ActivityEvaluationRubricContent.tsx
|
|
7020
7024
|
var import_react_katex12 = require("react-katex");
|
|
7021
|
-
var
|
|
7025
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
7022
7026
|
var ActivityEvaluationRubricContent = ({
|
|
7023
7027
|
activityTemplateType,
|
|
7024
7028
|
data
|
|
@@ -7048,21 +7052,21 @@ var ActivityEvaluationRubricContent = ({
|
|
|
7048
7052
|
}
|
|
7049
7053
|
if (!evaluationRubricMap || Object.keys(evaluationRubricMap).length === 0)
|
|
7050
7054
|
return null;
|
|
7051
|
-
return /* @__PURE__ */ (0,
|
|
7052
|
-
/* @__PURE__ */ (0,
|
|
7055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "mx-2", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "p-4 border-catchup-gray-400 border-2 rounded-catchup-xlarge", children: [
|
|
7056
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "text-xl font-bold text-center mb-3", children: i18n_default.t("evaluation_rubric") }),
|
|
7053
7057
|
Object.keys(evaluationRubricMap).map((key, index) => {
|
|
7054
7058
|
const currentItem = JSON.parse(evaluationRubricMap[key]);
|
|
7055
7059
|
const { value } = currentItem;
|
|
7056
|
-
return /* @__PURE__ */ (0,
|
|
7060
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7057
7061
|
"p",
|
|
7058
7062
|
{
|
|
7059
7063
|
className: "my-1 text-xl whitespace-pre-wrap",
|
|
7060
7064
|
children: constructInputWithSpecialExpressionList(value).map(
|
|
7061
|
-
(inputPart, index2) => /* @__PURE__ */ (0,
|
|
7065
|
+
(inputPart, index2) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7062
7066
|
"span",
|
|
7063
7067
|
{
|
|
7064
7068
|
className: `${inputPart.isBold ? "font-bold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7065
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
7069
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { className: "text-xl", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }) }) : inputPart.value
|
|
7066
7070
|
},
|
|
7067
7071
|
index2
|
|
7068
7072
|
)
|
|
@@ -7076,31 +7080,31 @@ var ActivityEvaluationRubricContent = ({
|
|
|
7076
7080
|
var ActivityEvaluationRubricContent_default = ActivityEvaluationRubricContent;
|
|
7077
7081
|
|
|
7078
7082
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
7079
|
-
var
|
|
7083
|
+
var import_react26 = require("react");
|
|
7080
7084
|
|
|
7081
7085
|
// src/components/boxes/SelectionBox.tsx
|
|
7082
|
-
var
|
|
7086
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
7083
7087
|
var SelectionBox = ({
|
|
7084
7088
|
optionList,
|
|
7085
7089
|
selectedId,
|
|
7086
7090
|
handleSelectOnClick
|
|
7087
7091
|
}) => {
|
|
7088
|
-
return /* @__PURE__ */ (0,
|
|
7092
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
7089
7093
|
"div",
|
|
7090
7094
|
{
|
|
7091
7095
|
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`,
|
|
7092
7096
|
onClick: () => {
|
|
7093
7097
|
handleSelectOnClick(option.id);
|
|
7094
7098
|
},
|
|
7095
|
-
children: /* @__PURE__ */ (0,
|
|
7099
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
7096
7100
|
"div",
|
|
7097
7101
|
{
|
|
7098
7102
|
className: `flex flex-row items-center gap-x-1 ${option.id === selectedId ? "opacity-100" : "opacity-50"}`,
|
|
7099
7103
|
children: [
|
|
7100
7104
|
option.icon,
|
|
7101
|
-
/* @__PURE__ */ (0,
|
|
7102
|
-
/* @__PURE__ */ (0,
|
|
7103
|
-
option.subText ? /* @__PURE__ */ (0,
|
|
7105
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex-1 flex flex-col items-center", children: [
|
|
7106
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { children: option.text }),
|
|
7107
|
+
option.subText ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("p", { className: "text-md", children: [
|
|
7104
7108
|
"(",
|
|
7105
7109
|
option.subText,
|
|
7106
7110
|
")"
|
|
@@ -7116,7 +7120,7 @@ var SelectionBox = ({
|
|
|
7116
7120
|
var SelectionBox_default = SelectionBox;
|
|
7117
7121
|
|
|
7118
7122
|
// src/components/activities/ActivityPreviewByData.tsx
|
|
7119
|
-
var
|
|
7123
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
7120
7124
|
var ActivityPreviewByData = ({
|
|
7121
7125
|
data,
|
|
7122
7126
|
showType,
|
|
@@ -7128,14 +7132,14 @@ var ActivityPreviewByData = ({
|
|
|
7128
7132
|
showDifficulty,
|
|
7129
7133
|
isFullScreen
|
|
7130
7134
|
}) => {
|
|
7131
|
-
const [key, setKey] = (0,
|
|
7132
|
-
const [selectedType, setSelectedType] = (0,
|
|
7133
|
-
const [optionList, setOptionList] = (0,
|
|
7134
|
-
(0,
|
|
7135
|
+
const [key, setKey] = (0, import_react26.useState)((/* @__PURE__ */ new Date()).getTime());
|
|
7136
|
+
const [selectedType, setSelectedType] = (0, import_react26.useState)(null);
|
|
7137
|
+
const [optionList, setOptionList] = (0, import_react26.useState)([]);
|
|
7138
|
+
(0, import_react26.useEffect)(() => {
|
|
7135
7139
|
if (!data) return;
|
|
7136
7140
|
setKey((/* @__PURE__ */ new Date()).getTime());
|
|
7137
7141
|
}, [data]);
|
|
7138
|
-
(0,
|
|
7142
|
+
(0, import_react26.useEffect)(() => {
|
|
7139
7143
|
if (!typeOptionList) return;
|
|
7140
7144
|
if (typeOptionList.length === 0) return;
|
|
7141
7145
|
let foundTypeOption;
|
|
@@ -7150,7 +7154,7 @@ var ActivityPreviewByData = ({
|
|
|
7150
7154
|
setSelectedType(typeOptionList[0].id);
|
|
7151
7155
|
}
|
|
7152
7156
|
}, [typeOptionList, lockedType]);
|
|
7153
|
-
(0,
|
|
7157
|
+
(0, import_react26.useEffect)(() => {
|
|
7154
7158
|
if (!data) return;
|
|
7155
7159
|
if (!typeOptionList) return;
|
|
7156
7160
|
if (typeOptionList.length === 0) return;
|
|
@@ -7174,11 +7178,11 @@ var ActivityPreviewByData = ({
|
|
|
7174
7178
|
}, [data, lockedType, typeOptionList, showDifficulty]);
|
|
7175
7179
|
if (!data) return;
|
|
7176
7180
|
const answer = constructAnswerBasedOnData(data);
|
|
7177
|
-
return /* @__PURE__ */ (0,
|
|
7178
|
-
showType ? /* @__PURE__ */ (0,
|
|
7179
|
-
/* @__PURE__ */ (0,
|
|
7180
|
-
showDescription ? /* @__PURE__ */ (0,
|
|
7181
|
-
/* @__PURE__ */ (0,
|
|
7181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
|
|
7182
|
+
showType ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
7183
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "mb-4", children: [
|
|
7184
|
+
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7185
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7182
7186
|
SelectionBox_default,
|
|
7183
7187
|
{
|
|
7184
7188
|
optionList,
|
|
@@ -7189,9 +7193,9 @@ var ActivityPreviewByData = ({
|
|
|
7189
7193
|
}
|
|
7190
7194
|
)
|
|
7191
7195
|
] }),
|
|
7192
|
-
/* @__PURE__ */ (0,
|
|
7196
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DividerLine_default, {})
|
|
7193
7197
|
] }) : null,
|
|
7194
|
-
selectedType ? /* @__PURE__ */ (0,
|
|
7198
|
+
selectedType ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "", children: selectedType === "ORDERING" && data["orderingBodyMap"] != null && data["orderingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7195
7199
|
OrderingActivityContent_default,
|
|
7196
7200
|
{
|
|
7197
7201
|
answer,
|
|
@@ -7205,7 +7209,7 @@ var ActivityPreviewByData = ({
|
|
|
7205
7209
|
showCorrectAnswer: true,
|
|
7206
7210
|
isFullScreen
|
|
7207
7211
|
}
|
|
7208
|
-
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7212
|
+
) : selectedType === "DROPDOWN" && data["dropdownBodyMap"] != null && data["dropdownMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7209
7213
|
DropdownActivityContent_default,
|
|
7210
7214
|
{
|
|
7211
7215
|
answer,
|
|
@@ -7219,7 +7223,7 @@ var ActivityPreviewByData = ({
|
|
|
7219
7223
|
showCorrectAnswer: true,
|
|
7220
7224
|
isFullScreen
|
|
7221
7225
|
}
|
|
7222
|
-
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7226
|
+
) : selectedType === "MCSA" && data["MCSABodyMap"] != null && data["MCSAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7223
7227
|
MCSAActivityContent_default,
|
|
7224
7228
|
{
|
|
7225
7229
|
answer,
|
|
@@ -7233,7 +7237,7 @@ var ActivityPreviewByData = ({
|
|
|
7233
7237
|
showCorrectAnswer: true,
|
|
7234
7238
|
isFullScreen
|
|
7235
7239
|
}
|
|
7236
|
-
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7240
|
+
) : selectedType === "MCMA" && data["MCMABodyMap"] != null && data["MCMAMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7237
7241
|
MCMAActivityContent_default,
|
|
7238
7242
|
{
|
|
7239
7243
|
answer,
|
|
@@ -7247,7 +7251,7 @@ var ActivityPreviewByData = ({
|
|
|
7247
7251
|
showCorrectAnswer: true,
|
|
7248
7252
|
isFullScreen
|
|
7249
7253
|
}
|
|
7250
|
-
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7254
|
+
) : selectedType === "MATCHING" && data["matchingBodyMap"] != null && data["matchingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7251
7255
|
MatchingActivityContent_default,
|
|
7252
7256
|
{
|
|
7253
7257
|
answer,
|
|
@@ -7260,7 +7264,7 @@ var ActivityPreviewByData = ({
|
|
|
7260
7264
|
isPreview: true,
|
|
7261
7265
|
showCorrectAnswer: true
|
|
7262
7266
|
}
|
|
7263
|
-
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7267
|
+
) : selectedType === "GROUPING" && data["groupingBodyMap"] != null && data["groupingMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7264
7268
|
GroupingActivityContent_default,
|
|
7265
7269
|
{
|
|
7266
7270
|
answer,
|
|
@@ -7273,7 +7277,7 @@ var ActivityPreviewByData = ({
|
|
|
7273
7277
|
isPreview: true,
|
|
7274
7278
|
showCorrectAnswer: true
|
|
7275
7279
|
}
|
|
7276
|
-
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7280
|
+
) : selectedType === "FILL_IN_THE_BLANKS" && data["fillInTheBlanksBodyMap"] != null && data["fillInTheBlanksMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7277
7281
|
FillInTheBlanksActivityContent_default,
|
|
7278
7282
|
{
|
|
7279
7283
|
answer,
|
|
@@ -7287,7 +7291,7 @@ var ActivityPreviewByData = ({
|
|
|
7287
7291
|
showCorrectAnswer: true,
|
|
7288
7292
|
isFullScreen
|
|
7289
7293
|
}
|
|
7290
|
-
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ (0,
|
|
7294
|
+
) : selectedType === "OPEN_ENDED" && data["openEndedBodyMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7291
7295
|
OpenEndedActivityContent_default,
|
|
7292
7296
|
{
|
|
7293
7297
|
answer,
|
|
@@ -7299,7 +7303,7 @@ var ActivityPreviewByData = ({
|
|
|
7299
7303
|
isPreview: true,
|
|
7300
7304
|
isFullScreen
|
|
7301
7305
|
}
|
|
7302
|
-
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ (0,
|
|
7306
|
+
) : selectedType === "TRUE_FALSE" && data["trueFalseBodyMap"] != null && data["trueFalseMaterialMap"] != null ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7303
7307
|
TrueFalseActivityContent_default,
|
|
7304
7308
|
{
|
|
7305
7309
|
answer,
|
|
@@ -7314,14 +7318,14 @@ var ActivityPreviewByData = ({
|
|
|
7314
7318
|
isFullScreen
|
|
7315
7319
|
}
|
|
7316
7320
|
) : null }, selectedType) : null,
|
|
7317
|
-
selectedType && showSolution ? /* @__PURE__ */ (0,
|
|
7321
|
+
selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7318
7322
|
ActivitySolutionContent_default,
|
|
7319
7323
|
{
|
|
7320
7324
|
activityTemplateType: selectedType,
|
|
7321
7325
|
data
|
|
7322
7326
|
}
|
|
7323
7327
|
) }) : null,
|
|
7324
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0,
|
|
7328
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7325
7329
|
ActivityEvaluationRubricContent_default,
|
|
7326
7330
|
{
|
|
7327
7331
|
activityTemplateType: selectedType,
|
|
@@ -7333,8 +7337,8 @@ var ActivityPreviewByData = ({
|
|
|
7333
7337
|
var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
7334
7338
|
|
|
7335
7339
|
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
7336
|
-
var
|
|
7337
|
-
var
|
|
7340
|
+
var import_react27 = require("react");
|
|
7341
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
7338
7342
|
var ActivityPreviewByAnswerData = ({
|
|
7339
7343
|
data,
|
|
7340
7344
|
showType = true,
|
|
@@ -7348,11 +7352,11 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7348
7352
|
showCorrectAnswer = false
|
|
7349
7353
|
}) => {
|
|
7350
7354
|
var _a;
|
|
7351
|
-
const [key, setKey] = (0,
|
|
7352
|
-
const [selectedType, setSelectedType] = (0,
|
|
7353
|
-
const [optionList, setOptionList] = (0,
|
|
7354
|
-
const [answer, setAnswer] = (0,
|
|
7355
|
-
(0,
|
|
7355
|
+
const [key, setKey] = (0, import_react27.useState)((/* @__PURE__ */ new Date()).getTime());
|
|
7356
|
+
const [selectedType, setSelectedType] = (0, import_react27.useState)(null);
|
|
7357
|
+
const [optionList, setOptionList] = (0, import_react27.useState)([]);
|
|
7358
|
+
const [answer, setAnswer] = (0, import_react27.useState)({ data: [] });
|
|
7359
|
+
(0, import_react27.useEffect)(() => {
|
|
7356
7360
|
if (!data) return;
|
|
7357
7361
|
setKey((/* @__PURE__ */ new Date()).getTime());
|
|
7358
7362
|
}, [data]);
|
|
@@ -7365,7 +7369,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7365
7369
|
}
|
|
7366
7370
|
return null;
|
|
7367
7371
|
};
|
|
7368
|
-
(0,
|
|
7372
|
+
(0, import_react27.useEffect)(() => {
|
|
7369
7373
|
if (!data) return;
|
|
7370
7374
|
const constructAnswerBasedOnData2 = () => {
|
|
7371
7375
|
const newAnswer = { data: [] };
|
|
@@ -7404,7 +7408,7 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7404
7408
|
};
|
|
7405
7409
|
constructAnswerBasedOnData2();
|
|
7406
7410
|
}, [data, lockedType]);
|
|
7407
|
-
(0,
|
|
7411
|
+
(0, import_react27.useEffect)(() => {
|
|
7408
7412
|
if (!data || !answer.data.length) return;
|
|
7409
7413
|
let currentTypeOptionList = typeOptionList || answer.data.map((item) => ({
|
|
7410
7414
|
id: item.type,
|
|
@@ -7442,38 +7446,38 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7442
7446
|
};
|
|
7443
7447
|
switch (selectedType) {
|
|
7444
7448
|
case "ORDERING":
|
|
7445
|
-
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0,
|
|
7449
|
+
return data.orderingBodyMap && data.orderingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(OrderingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7446
7450
|
case "DROPDOWN":
|
|
7447
|
-
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0,
|
|
7451
|
+
return data.dropdownBodyMap && data.dropdownMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DropdownActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7448
7452
|
case "MCSA":
|
|
7449
|
-
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0,
|
|
7453
|
+
return data.MCSABodyMap && data.MCSAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MCSAActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7450
7454
|
case "MCMA":
|
|
7451
|
-
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0,
|
|
7455
|
+
return data.MCMABodyMap && data.MCMAMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MCMAActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7452
7456
|
case "MATCHING":
|
|
7453
|
-
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0,
|
|
7457
|
+
return data.matchingBodyMap && data.matchingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(MatchingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7454
7458
|
case "GROUPING":
|
|
7455
|
-
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0,
|
|
7459
|
+
return data.groupingBodyMap && data.groupingMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(GroupingActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7456
7460
|
case "FILL_IN_THE_BLANKS":
|
|
7457
|
-
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0,
|
|
7461
|
+
return data.fillInTheBlanksBodyMap && data.fillInTheBlanksMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(FillInTheBlanksActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7458
7462
|
case "OPEN_ENDED":
|
|
7459
|
-
return data.openEndedBodyMap ? /* @__PURE__ */ (0,
|
|
7463
|
+
return data.openEndedBodyMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7460
7464
|
OpenEndedActivityContent_default,
|
|
7461
7465
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
7462
7466
|
showMaterialContent: true
|
|
7463
7467
|
})
|
|
7464
7468
|
) : null;
|
|
7465
7469
|
case "TRUE_FALSE":
|
|
7466
|
-
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0,
|
|
7470
|
+
return data.trueFalseBodyMap && data.trueFalseMaterialMap ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TrueFalseActivityContent_default, __spreadValues({}, commonProps)) : null;
|
|
7467
7471
|
default:
|
|
7468
7472
|
return null;
|
|
7469
7473
|
}
|
|
7470
7474
|
};
|
|
7471
7475
|
if (!data) return null;
|
|
7472
|
-
return /* @__PURE__ */ (0,
|
|
7473
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ (0,
|
|
7474
|
-
/* @__PURE__ */ (0,
|
|
7475
|
-
showDescription ? /* @__PURE__ */ (0,
|
|
7476
|
-
/* @__PURE__ */ (0,
|
|
7476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { children: [
|
|
7477
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_jsx_runtime50.Fragment, { children: [
|
|
7478
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "mb-4", children: [
|
|
7479
|
+
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7480
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7477
7481
|
SelectionBox_default,
|
|
7478
7482
|
{
|
|
7479
7483
|
optionList,
|
|
@@ -7484,20 +7488,20 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7484
7488
|
}
|
|
7485
7489
|
)
|
|
7486
7490
|
] }),
|
|
7487
|
-
/* @__PURE__ */ (0,
|
|
7491
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(DividerLine_default, {})
|
|
7488
7492
|
] }) : null,
|
|
7489
|
-
/* @__PURE__ */ (0,
|
|
7490
|
-
((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ (0,
|
|
7491
|
-
selectedType ? /* @__PURE__ */ (0,
|
|
7493
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex flex-col my-2 w-full p-5", children: [
|
|
7494
|
+
((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ActivityEmptyContent_default, {}) : null,
|
|
7495
|
+
selectedType ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: RenderSelectedActivityContent() }, selectedType) : null
|
|
7492
7496
|
] }),
|
|
7493
|
-
selectedType && showSolution ? /* @__PURE__ */ (0,
|
|
7497
|
+
selectedType && showSolution ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7494
7498
|
ActivitySolutionContent_default,
|
|
7495
7499
|
{
|
|
7496
7500
|
activityTemplateType: selectedType,
|
|
7497
7501
|
data
|
|
7498
7502
|
}
|
|
7499
7503
|
) }) : null,
|
|
7500
|
-
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0,
|
|
7504
|
+
selectedType && showEvaluationRubric ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "my-4", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
7501
7505
|
ActivityEvaluationRubricContent_default,
|
|
7502
7506
|
{
|
|
7503
7507
|
activityTemplateType: selectedType,
|
|
@@ -7509,17 +7513,17 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7509
7513
|
var ActivityPreviewByAnswerData_default = ActivityPreviewByAnswerData;
|
|
7510
7514
|
|
|
7511
7515
|
// src/components/errors/StatusError.tsx
|
|
7512
|
-
var
|
|
7516
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
7513
7517
|
var StatusError = ({
|
|
7514
7518
|
statusCode,
|
|
7515
7519
|
statusText,
|
|
7516
7520
|
textSize
|
|
7517
7521
|
}) => {
|
|
7518
|
-
return /* @__PURE__ */ (0,
|
|
7519
|
-
/* @__PURE__ */ (0,
|
|
7520
|
-
/* @__PURE__ */ (0,
|
|
7521
|
-
/* @__PURE__ */ (0,
|
|
7522
|
-
/* @__PURE__ */ (0,
|
|
7522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7523
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7524
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "text-center my-5", children: [
|
|
7525
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
7526
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
|
|
7523
7527
|
"(",
|
|
7524
7528
|
statusCode ? `${statusCode} - ` : null,
|
|
7525
7529
|
statusText,
|
|
@@ -7531,9 +7535,9 @@ var StatusError = ({
|
|
|
7531
7535
|
var StatusError_default = StatusError;
|
|
7532
7536
|
|
|
7533
7537
|
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
7534
|
-
var
|
|
7538
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
7535
7539
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
7536
|
-
return /* @__PURE__ */ (0,
|
|
7540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7537
7541
|
"div",
|
|
7538
7542
|
{
|
|
7539
7543
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -7543,7 +7547,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7543
7547
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7544
7548
|
|
|
7545
7549
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7546
|
-
var
|
|
7550
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7547
7551
|
var LeftTextRightInputGroup = ({
|
|
7548
7552
|
type,
|
|
7549
7553
|
title,
|
|
@@ -7553,9 +7557,9 @@ var LeftTextRightInputGroup = ({
|
|
|
7553
7557
|
disabled,
|
|
7554
7558
|
errorText
|
|
7555
7559
|
}) => {
|
|
7556
|
-
return /* @__PURE__ */ (0,
|
|
7557
|
-
/* @__PURE__ */ (0,
|
|
7558
|
-
/* @__PURE__ */ (0,
|
|
7560
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7561
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { children: title }) }),
|
|
7562
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7559
7563
|
InputGroup_default,
|
|
7560
7564
|
{
|
|
7561
7565
|
type,
|
|
@@ -7571,8 +7575,8 @@ var LeftTextRightInputGroup = ({
|
|
|
7571
7575
|
var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
7572
7576
|
|
|
7573
7577
|
// src/components/groups/PageTravelGroup.tsx
|
|
7574
|
-
var
|
|
7575
|
-
var
|
|
7578
|
+
var import_react28 = require("react");
|
|
7579
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7576
7580
|
var PageTravelGroup = ({
|
|
7577
7581
|
isImageProcessing,
|
|
7578
7582
|
handleImageProcessing,
|
|
@@ -7581,17 +7585,17 @@ var PageTravelGroup = ({
|
|
|
7581
7585
|
setPageNumber,
|
|
7582
7586
|
setImageReady
|
|
7583
7587
|
}) => {
|
|
7584
|
-
const [totalPageNumber, setTotalPageNumber] = (0,
|
|
7585
|
-
const [newPageNumber, setNewPageNumber] = (0,
|
|
7586
|
-
(0,
|
|
7588
|
+
const [totalPageNumber, setTotalPageNumber] = (0, import_react28.useState)(0);
|
|
7589
|
+
const [newPageNumber, setNewPageNumber] = (0, import_react28.useState)(0);
|
|
7590
|
+
(0, import_react28.useEffect)(() => {
|
|
7587
7591
|
if (!initialTotalPageNumber) return;
|
|
7588
7592
|
setTotalPageNumber(initialTotalPageNumber);
|
|
7589
7593
|
}, [initialTotalPageNumber]);
|
|
7590
|
-
(0,
|
|
7594
|
+
(0, import_react28.useEffect)(() => {
|
|
7591
7595
|
setNewPageNumber(pageNumber + 1);
|
|
7592
7596
|
}, [pageNumber]);
|
|
7593
|
-
return /* @__PURE__ */ (0,
|
|
7594
|
-
pageNumber === 0 ? null : /* @__PURE__ */ (0,
|
|
7597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7598
|
+
pageNumber === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7595
7599
|
BaseImage_default,
|
|
7596
7600
|
{
|
|
7597
7601
|
size: "small",
|
|
@@ -7609,7 +7613,7 @@ var PageTravelGroup = ({
|
|
|
7609
7613
|
}
|
|
7610
7614
|
}
|
|
7611
7615
|
) }),
|
|
7612
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0,
|
|
7616
|
+
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7613
7617
|
"p",
|
|
7614
7618
|
{
|
|
7615
7619
|
className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -7624,7 +7628,7 @@ var PageTravelGroup = ({
|
|
|
7624
7628
|
children: index + 1
|
|
7625
7629
|
}
|
|
7626
7630
|
) }, index)),
|
|
7627
|
-
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0,
|
|
7631
|
+
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7628
7632
|
BaseImage_default,
|
|
7629
7633
|
{
|
|
7630
7634
|
size: "small",
|
|
@@ -7642,7 +7646,7 @@ var PageTravelGroup = ({
|
|
|
7642
7646
|
}
|
|
7643
7647
|
}
|
|
7644
7648
|
) }),
|
|
7645
|
-
/* @__PURE__ */ (0,
|
|
7649
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7646
7650
|
"input",
|
|
7647
7651
|
{
|
|
7648
7652
|
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`,
|
|
@@ -7666,14 +7670,14 @@ var PageTravelGroup = ({
|
|
|
7666
7670
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7667
7671
|
|
|
7668
7672
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7669
|
-
var
|
|
7673
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7670
7674
|
var SelectionCheckbox = ({
|
|
7671
7675
|
optionList,
|
|
7672
7676
|
selectedIdList,
|
|
7673
7677
|
handleSelectOnClick,
|
|
7674
7678
|
handleRemoveOnClick
|
|
7675
7679
|
}) => {
|
|
7676
|
-
return /* @__PURE__ */ (0,
|
|
7680
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7677
7681
|
"div",
|
|
7678
7682
|
{
|
|
7679
7683
|
className: `${selectedIdList.findIndex(
|
|
@@ -7688,14 +7692,14 @@ var SelectionCheckbox = ({
|
|
|
7688
7692
|
handleRemoveOnClick(option.id);
|
|
7689
7693
|
}
|
|
7690
7694
|
},
|
|
7691
|
-
children: /* @__PURE__ */ (0,
|
|
7695
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
7692
7696
|
"div",
|
|
7693
7697
|
{
|
|
7694
7698
|
className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
|
|
7695
7699
|
(selectedId) => selectedId === option.id
|
|
7696
7700
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
7697
7701
|
children: [
|
|
7698
|
-
/* @__PURE__ */ (0,
|
|
7702
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7699
7703
|
BaseImage_default,
|
|
7700
7704
|
{
|
|
7701
7705
|
src: selectedIdList.findIndex(
|
|
@@ -7705,7 +7709,7 @@ var SelectionCheckbox = ({
|
|
|
7705
7709
|
size: "small"
|
|
7706
7710
|
}
|
|
7707
7711
|
),
|
|
7708
|
-
/* @__PURE__ */ (0,
|
|
7712
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { children: option.text }) })
|
|
7709
7713
|
]
|
|
7710
7714
|
}
|
|
7711
7715
|
)
|
|
@@ -7716,7 +7720,7 @@ var SelectionCheckbox = ({
|
|
|
7716
7720
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7717
7721
|
|
|
7718
7722
|
// src/components/tabs/SelectionTab.tsx
|
|
7719
|
-
var
|
|
7723
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
7720
7724
|
var SelectionTab = ({
|
|
7721
7725
|
optionList,
|
|
7722
7726
|
selectedId,
|
|
@@ -7726,7 +7730,7 @@ var SelectionTab = ({
|
|
|
7726
7730
|
textColor,
|
|
7727
7731
|
borderColor
|
|
7728
7732
|
}) => {
|
|
7729
|
-
return /* @__PURE__ */ (0,
|
|
7733
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
7730
7734
|
"div",
|
|
7731
7735
|
{
|
|
7732
7736
|
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`,
|
|
@@ -7734,8 +7738,8 @@ var SelectionTab = ({
|
|
|
7734
7738
|
handleSelectOnClick(option.id);
|
|
7735
7739
|
},
|
|
7736
7740
|
children: [
|
|
7737
|
-
/* @__PURE__ */ (0,
|
|
7738
|
-
option.subTitle ? /* @__PURE__ */ (0,
|
|
7741
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-lg", children: option.title }),
|
|
7742
|
+
option.subTitle ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-md", children: option.subTitle }) : null
|
|
7739
7743
|
]
|
|
7740
7744
|
},
|
|
7741
7745
|
index
|
|
@@ -7744,20 +7748,20 @@ var SelectionTab = ({
|
|
|
7744
7748
|
var SelectionTab_default = SelectionTab;
|
|
7745
7749
|
|
|
7746
7750
|
// src/components/tabs/SelectionTabFill.tsx
|
|
7747
|
-
var
|
|
7751
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
7748
7752
|
var SelectionTabFill = ({
|
|
7749
7753
|
optionList,
|
|
7750
7754
|
selectedId,
|
|
7751
7755
|
handleSelectOnClick
|
|
7752
7756
|
}) => {
|
|
7753
|
-
return /* @__PURE__ */ (0,
|
|
7757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7754
7758
|
"div",
|
|
7755
7759
|
{
|
|
7756
7760
|
className: "cursor-pointer",
|
|
7757
7761
|
onClick: () => {
|
|
7758
7762
|
handleSelectOnClick(option.id);
|
|
7759
7763
|
},
|
|
7760
|
-
children: /* @__PURE__ */ (0,
|
|
7764
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7761
7765
|
"p",
|
|
7762
7766
|
{
|
|
7763
7767
|
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`,
|
|
@@ -7771,34 +7775,34 @@ var SelectionTabFill = ({
|
|
|
7771
7775
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7772
7776
|
|
|
7773
7777
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
7774
|
-
var
|
|
7778
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
7775
7779
|
var ActivityTemplateLabel = ({
|
|
7776
7780
|
title,
|
|
7777
7781
|
icon,
|
|
7778
7782
|
font
|
|
7779
7783
|
}) => {
|
|
7780
|
-
return /* @__PURE__ */ (0,
|
|
7781
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7782
|
-
/* @__PURE__ */ (0,
|
|
7784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7785
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7786
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7783
7787
|
] }) });
|
|
7784
7788
|
};
|
|
7785
7789
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
7786
7790
|
|
|
7787
7791
|
// src/components/labels/BrandLabel.tsx
|
|
7788
|
-
var
|
|
7792
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7789
7793
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7790
|
-
return /* @__PURE__ */ (0,
|
|
7791
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7792
|
-
/* @__PURE__ */ (0,
|
|
7794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7795
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7796
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7793
7797
|
] }) });
|
|
7794
7798
|
};
|
|
7795
7799
|
var BrandLabel_default = BrandLabel;
|
|
7796
7800
|
|
|
7797
7801
|
// src/components/labels/CategoryLabel.tsx
|
|
7798
|
-
var
|
|
7802
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7799
7803
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7800
|
-
return /* @__PURE__ */ (0,
|
|
7801
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7804
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7805
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7802
7806
|
BaseImage_default,
|
|
7803
7807
|
{
|
|
7804
7808
|
src: "/icons/category-label.webp",
|
|
@@ -7806,40 +7810,40 @@ var CategoryLabel = ({ title, icon, font }) => {
|
|
|
7806
7810
|
size: "xsmall"
|
|
7807
7811
|
}
|
|
7808
7812
|
),
|
|
7809
|
-
/* @__PURE__ */ (0,
|
|
7813
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7810
7814
|
] }) });
|
|
7811
7815
|
};
|
|
7812
7816
|
var CategoryLabel_default = CategoryLabel;
|
|
7813
7817
|
|
|
7814
7818
|
// src/components/labels/CoterieLabel.tsx
|
|
7815
|
-
var
|
|
7819
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7816
7820
|
var CoterieLabel = ({ title, font }) => {
|
|
7817
|
-
return /* @__PURE__ */ (0,
|
|
7821
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7818
7822
|
};
|
|
7819
7823
|
var CoterieLabel_default = CoterieLabel;
|
|
7820
7824
|
|
|
7821
7825
|
// src/components/labels/GradeLabel.tsx
|
|
7822
|
-
var
|
|
7826
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7823
7827
|
var GradeLabel = ({ title, font }) => {
|
|
7824
|
-
return /* @__PURE__ */ (0,
|
|
7828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7825
7829
|
};
|
|
7826
7830
|
var GradeLabel_default = GradeLabel;
|
|
7827
7831
|
|
|
7828
7832
|
// src/components/labels/OutcomeLabel.tsx
|
|
7829
|
-
var
|
|
7833
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7830
7834
|
var OutcomeLabel = ({ title, font }) => {
|
|
7831
|
-
return /* @__PURE__ */ (0,
|
|
7832
|
-
/* @__PURE__ */ (0,
|
|
7833
|
-
/* @__PURE__ */ (0,
|
|
7835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7836
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7837
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7834
7838
|
] }) });
|
|
7835
7839
|
};
|
|
7836
7840
|
var OutcomeLabel_default = OutcomeLabel;
|
|
7837
7841
|
|
|
7838
7842
|
// src/components/labels/PersonalLabel.tsx
|
|
7839
|
-
var
|
|
7843
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7840
7844
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7841
|
-
return /* @__PURE__ */ (0,
|
|
7842
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7846
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
7843
7847
|
BaseImage_default,
|
|
7844
7848
|
{
|
|
7845
7849
|
src: "/icons/personal-label.webp",
|
|
@@ -7847,16 +7851,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
7847
7851
|
size: "xsmall"
|
|
7848
7852
|
}
|
|
7849
7853
|
),
|
|
7850
|
-
/* @__PURE__ */ (0,
|
|
7854
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7851
7855
|
] }) });
|
|
7852
7856
|
};
|
|
7853
7857
|
var PersonalLabel_default = PersonalLabel;
|
|
7854
7858
|
|
|
7855
7859
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7856
|
-
var
|
|
7860
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7857
7861
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7858
|
-
return /* @__PURE__ */ (0,
|
|
7859
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7863
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7860
7864
|
BaseImage_default,
|
|
7861
7865
|
{
|
|
7862
7866
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -7864,55 +7868,55 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
7864
7868
|
size: "xsmall"
|
|
7865
7869
|
}
|
|
7866
7870
|
),
|
|
7867
|
-
/* @__PURE__ */ (0,
|
|
7871
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7868
7872
|
] }) });
|
|
7869
7873
|
};
|
|
7870
7874
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
7871
7875
|
|
|
7872
7876
|
// src/components/labels/ActivityLabel.tsx
|
|
7873
|
-
var
|
|
7877
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7874
7878
|
var ActivityLabel = ({ title, font }) => {
|
|
7875
|
-
return /* @__PURE__ */ (0,
|
|
7879
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge text-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7876
7880
|
};
|
|
7877
7881
|
var ActivityLabel_default = ActivityLabel;
|
|
7878
7882
|
|
|
7879
7883
|
// src/components/infos/InfoWithText.tsx
|
|
7880
|
-
var
|
|
7884
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7881
7885
|
var InfoWithText = (props) => {
|
|
7882
7886
|
const { value } = props;
|
|
7883
|
-
return /* @__PURE__ */ (0,
|
|
7884
|
-
/* @__PURE__ */ (0,
|
|
7885
|
-
/* @__PURE__ */ (0,
|
|
7887
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7888
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7889
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "", children: value }) })
|
|
7886
7890
|
] });
|
|
7887
7891
|
};
|
|
7888
7892
|
var InfoWithText_default = InfoWithText;
|
|
7889
7893
|
|
|
7890
7894
|
// src/components/titles/BaseTitle.tsx
|
|
7891
|
-
var
|
|
7895
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
7892
7896
|
var BaseTitle = ({
|
|
7893
7897
|
title,
|
|
7894
7898
|
totalItemCount,
|
|
7895
7899
|
itemName,
|
|
7896
7900
|
description
|
|
7897
7901
|
}) => {
|
|
7898
|
-
return /* @__PURE__ */ (0,
|
|
7899
|
-
/* @__PURE__ */ (0,
|
|
7902
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
|
|
7903
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("p", { className: "text-2xl font-medium", children: [
|
|
7900
7904
|
title,
|
|
7901
|
-
totalItemCount && itemName ? /* @__PURE__ */ (0,
|
|
7905
|
+
totalItemCount && itemName ? /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
|
|
7902
7906
|
totalItemCount,
|
|
7903
7907
|
" ",
|
|
7904
7908
|
itemName
|
|
7905
7909
|
] }) : null
|
|
7906
7910
|
] }),
|
|
7907
|
-
description ? /* @__PURE__ */ (0,
|
|
7911
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "", children: description }) : null
|
|
7908
7912
|
] });
|
|
7909
7913
|
};
|
|
7910
7914
|
var BaseTitle_default = BaseTitle;
|
|
7911
7915
|
|
|
7912
7916
|
// src/components/titles/SubTitle.tsx
|
|
7913
|
-
var
|
|
7917
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7914
7918
|
var SubTitle = ({ title }) => {
|
|
7915
|
-
return /* @__PURE__ */ (0,
|
|
7919
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7916
7920
|
};
|
|
7917
7921
|
var SubTitle_default = SubTitle;
|
|
7918
7922
|
|