catchup-library-web 1.11.5 → 1.12.0
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +91 -9
- package/dist/index.mjs +108 -26
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -287,7 +287,7 @@ declare global {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element
|
|
290
|
+
declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
291
291
|
|
|
292
292
|
declare const LeftTextRightInputGroup: ({ type, title, value, optionList, onChange, disabled, errorText, }: ILeftTextRightInputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
293
293
|
|
package/dist/index.d.ts
CHANGED
|
@@ -287,7 +287,7 @@ declare global {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element
|
|
290
|
+
declare const InputGroup: ({ type, title, defaultValue, placeholder, value, onFocus, onChange, onClick, onKeyDown, optionList, errorText, multiple, accept, theme, useMinHeight, disabled, limit, useMath, }: IInputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
291
291
|
|
|
292
292
|
declare const LeftTextRightInputGroup: ({ type, title, value, optionList, onChange, disabled, errorText, }: ILeftTextRightInputGroupProps) => react_jsx_runtime.JSX.Element;
|
|
293
293
|
|
package/dist/index.js
CHANGED
|
@@ -3624,6 +3624,7 @@ var InputGroup = ({
|
|
|
3624
3624
|
const textAreaRef = (0, import_react10.useRef)(null);
|
|
3625
3625
|
const mathFieldRef = (0, import_react10.useRef)(null);
|
|
3626
3626
|
const [isMathMode, setIsMathMode] = (0, import_react10.useState)(false);
|
|
3627
|
+
const [showMathOverlay, setShowMathOverlay] = (0, import_react10.useState)(false);
|
|
3627
3628
|
(0, import_react10.useEffect)(() => {
|
|
3628
3629
|
if (!textAreaRef) return;
|
|
3629
3630
|
if (!textAreaRef.current) return;
|
|
@@ -3641,6 +3642,17 @@ var InputGroup = ({
|
|
|
3641
3642
|
}
|
|
3642
3643
|
});
|
|
3643
3644
|
}, [useMath, type, placeholder, title]);
|
|
3645
|
+
(0, import_react10.useEffect)(() => {
|
|
3646
|
+
const handleClickOutside = (event) => {
|
|
3647
|
+
if (showMathOverlay && event.target instanceof Element && !event.target.closest(".math-overlay")) {
|
|
3648
|
+
setShowMathOverlay(false);
|
|
3649
|
+
}
|
|
3650
|
+
};
|
|
3651
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
3652
|
+
return () => {
|
|
3653
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
3654
|
+
};
|
|
3655
|
+
}, [showMathOverlay]);
|
|
3644
3656
|
const retrieveNullableOptionList = () => {
|
|
3645
3657
|
if (!optionList) return [];
|
|
3646
3658
|
const currentOptionList = {
|
|
@@ -3684,6 +3696,54 @@ var InputGroup = ({
|
|
|
3684
3696
|
};
|
|
3685
3697
|
onFocus && onFocus(syntheticEvent);
|
|
3686
3698
|
};
|
|
3699
|
+
const handleMathModeToggle = (mode) => {
|
|
3700
|
+
setIsMathMode(mode);
|
|
3701
|
+
setShowMathOverlay(false);
|
|
3702
|
+
};
|
|
3703
|
+
const MathModeOverlay = () => {
|
|
3704
|
+
if (!showMathOverlay) return null;
|
|
3705
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "math-overlay bg-white rounded-lg p-6 shadow-xl max-w-sm w-full mx-4", children: [
|
|
3706
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("h3", { className: "text-lg font-semibold mb-4 text-catchup-gray-400", children: i18n_default.t("select_input_mode") }),
|
|
3707
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "space-y-3", children: [
|
|
3708
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3709
|
+
"button",
|
|
3710
|
+
{
|
|
3711
|
+
className: `w-full p-3 rounded-lg border-2 transition-all duration-200 ${!isMathMode ? "border-catchup-blue-400 bg-catchup-blue-50" : "border-catchup-gray-100 hover:border-catchup-gray-200"}`,
|
|
3712
|
+
onClick: () => handleMathModeToggle(false),
|
|
3713
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center space-x-3", children: [
|
|
3714
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-4 h-4 rounded-full border-2 border-catchup-blue-400 flex items-center justify-center", children: !isMathMode && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-2 h-2 rounded-full bg-catchup-blue-400" }) }),
|
|
3715
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "text-left", children: [
|
|
3716
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "font-medium text-catchup-gray-400", children: i18n_default.t("text_mode") }),
|
|
3717
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-sm text-catchup-gray-300", children: "Regular text input" })
|
|
3718
|
+
] })
|
|
3719
|
+
] })
|
|
3720
|
+
}
|
|
3721
|
+
),
|
|
3722
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3723
|
+
"button",
|
|
3724
|
+
{
|
|
3725
|
+
className: `w-full p-3 rounded-lg border-2 transition-all duration-200 ${isMathMode ? "border-catchup-blue-400 bg-catchup-blue-50" : "border-catchup-gray-100 hover:border-catchup-gray-200"}`,
|
|
3726
|
+
onClick: () => handleMathModeToggle(true),
|
|
3727
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center space-x-3", children: [
|
|
3728
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-4 h-4 rounded-full border-2 border-catchup-blue-400 flex items-center justify-center", children: isMathMode && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "w-2 h-2 rounded-full bg-catchup-blue-400" }) }),
|
|
3729
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "text-left", children: [
|
|
3730
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "font-medium text-catchup-gray-400", children: i18n_default.t("math_mode") }),
|
|
3731
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("p", { className: "text-sm text-catchup-gray-300", children: "Mathematical expressions" })
|
|
3732
|
+
] })
|
|
3733
|
+
] })
|
|
3734
|
+
}
|
|
3735
|
+
)
|
|
3736
|
+
] }),
|
|
3737
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "mt-6 flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3738
|
+
"button",
|
|
3739
|
+
{
|
|
3740
|
+
className: "px-4 py-2 text-catchup-gray-300 hover:text-catchup-gray-400 transition-colors",
|
|
3741
|
+
onClick: () => setShowMathOverlay(false),
|
|
3742
|
+
children: i18n_default.t("cancel")
|
|
3743
|
+
}
|
|
3744
|
+
) })
|
|
3745
|
+
] }) });
|
|
3746
|
+
};
|
|
3687
3747
|
const CheckboxInputGroup = () => {
|
|
3688
3748
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
3689
3749
|
"div",
|
|
@@ -3884,16 +3944,35 @@ var InputGroup = ({
|
|
|
3884
3944
|
)
|
|
3885
3945
|
}
|
|
3886
3946
|
),
|
|
3887
|
-
useMath && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3888
|
-
"
|
|
3947
|
+
useMath && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3948
|
+
"button",
|
|
3889
3949
|
{
|
|
3890
|
-
className: "
|
|
3891
|
-
onClick: () =>
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3950
|
+
className: "absolute right-2 top-1/2 transform -translate-y-1/2 bg-catchup-white border border-catchup-gray-100 rounded-md px-3 py-1 shadow-sm hover:shadow-md transition-shadow duration-200",
|
|
3951
|
+
onClick: () => setShowMathOverlay(true),
|
|
3952
|
+
type: "button",
|
|
3953
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-x-1", children: [
|
|
3954
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-sm font-medium text-catchup-gray-400", children: isMathMode ? "\u{1D453}(x)" : "Aa" }),
|
|
3955
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3956
|
+
"svg",
|
|
3957
|
+
{
|
|
3958
|
+
className: "w-3 h-3 text-catchup-gray-300",
|
|
3959
|
+
fill: "none",
|
|
3960
|
+
stroke: "currentColor",
|
|
3961
|
+
viewBox: "0 0 24 24",
|
|
3962
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
3963
|
+
"path",
|
|
3964
|
+
{
|
|
3965
|
+
strokeLinecap: "round",
|
|
3966
|
+
strokeLinejoin: "round",
|
|
3967
|
+
strokeWidth: 2,
|
|
3968
|
+
d: "M19 9l-7 7-7-7"
|
|
3969
|
+
}
|
|
3970
|
+
)
|
|
3971
|
+
}
|
|
3972
|
+
)
|
|
3973
|
+
] })
|
|
3895
3974
|
}
|
|
3896
|
-
)
|
|
3975
|
+
)
|
|
3897
3976
|
] });
|
|
3898
3977
|
};
|
|
3899
3978
|
const RenderMainContent = () => {
|
|
@@ -3913,7 +3992,10 @@ var InputGroup = ({
|
|
|
3913
3992
|
return CheckboxInputGroup();
|
|
3914
3993
|
}
|
|
3915
3994
|
};
|
|
3916
|
-
return
|
|
3995
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
|
|
3996
|
+
RenderMainContent(),
|
|
3997
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(MathModeOverlay, {})
|
|
3998
|
+
] });
|
|
3917
3999
|
};
|
|
3918
4000
|
var InputGroup_default = InputGroup;
|
|
3919
4001
|
|
package/dist/index.mjs
CHANGED
|
@@ -3400,7 +3400,7 @@ import { InlineMath as InlineMath2 } from "react-katex";
|
|
|
3400
3400
|
// src/components/groups/InputGroup.tsx
|
|
3401
3401
|
import Select from "react-select";
|
|
3402
3402
|
import { useEffect as useEffect2, useRef, useState as useState10 } from "react";
|
|
3403
|
-
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3403
|
+
import { Fragment, jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3404
3404
|
var InputGroup = ({
|
|
3405
3405
|
type,
|
|
3406
3406
|
title,
|
|
@@ -3424,6 +3424,7 @@ var InputGroup = ({
|
|
|
3424
3424
|
const textAreaRef = useRef(null);
|
|
3425
3425
|
const mathFieldRef = useRef(null);
|
|
3426
3426
|
const [isMathMode, setIsMathMode] = useState10(false);
|
|
3427
|
+
const [showMathOverlay, setShowMathOverlay] = useState10(false);
|
|
3427
3428
|
useEffect2(() => {
|
|
3428
3429
|
if (!textAreaRef) return;
|
|
3429
3430
|
if (!textAreaRef.current) return;
|
|
@@ -3441,6 +3442,17 @@ var InputGroup = ({
|
|
|
3441
3442
|
}
|
|
3442
3443
|
});
|
|
3443
3444
|
}, [useMath, type, placeholder, title]);
|
|
3445
|
+
useEffect2(() => {
|
|
3446
|
+
const handleClickOutside = (event) => {
|
|
3447
|
+
if (showMathOverlay && event.target instanceof Element && !event.target.closest(".math-overlay")) {
|
|
3448
|
+
setShowMathOverlay(false);
|
|
3449
|
+
}
|
|
3450
|
+
};
|
|
3451
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
3452
|
+
return () => {
|
|
3453
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
3454
|
+
};
|
|
3455
|
+
}, [showMathOverlay]);
|
|
3444
3456
|
const retrieveNullableOptionList = () => {
|
|
3445
3457
|
if (!optionList) return [];
|
|
3446
3458
|
const currentOptionList = {
|
|
@@ -3484,6 +3496,54 @@ var InputGroup = ({
|
|
|
3484
3496
|
};
|
|
3485
3497
|
onFocus && onFocus(syntheticEvent);
|
|
3486
3498
|
};
|
|
3499
|
+
const handleMathModeToggle = (mode) => {
|
|
3500
|
+
setIsMathMode(mode);
|
|
3501
|
+
setShowMathOverlay(false);
|
|
3502
|
+
};
|
|
3503
|
+
const MathModeOverlay = () => {
|
|
3504
|
+
if (!showMathOverlay) return null;
|
|
3505
|
+
return /* @__PURE__ */ jsx16("div", { className: "fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50", children: /* @__PURE__ */ jsxs9("div", { className: "math-overlay bg-white rounded-lg p-6 shadow-xl max-w-sm w-full mx-4", children: [
|
|
3506
|
+
/* @__PURE__ */ jsx16("h3", { className: "text-lg font-semibold mb-4 text-catchup-gray-400", children: i18n_default.t("select_input_mode") }),
|
|
3507
|
+
/* @__PURE__ */ jsxs9("div", { className: "space-y-3", children: [
|
|
3508
|
+
/* @__PURE__ */ jsx16(
|
|
3509
|
+
"button",
|
|
3510
|
+
{
|
|
3511
|
+
className: `w-full p-3 rounded-lg border-2 transition-all duration-200 ${!isMathMode ? "border-catchup-blue-400 bg-catchup-blue-50" : "border-catchup-gray-100 hover:border-catchup-gray-200"}`,
|
|
3512
|
+
onClick: () => handleMathModeToggle(false),
|
|
3513
|
+
children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center space-x-3", children: [
|
|
3514
|
+
/* @__PURE__ */ jsx16("div", { className: "w-4 h-4 rounded-full border-2 border-catchup-blue-400 flex items-center justify-center", children: !isMathMode && /* @__PURE__ */ jsx16("div", { className: "w-2 h-2 rounded-full bg-catchup-blue-400" }) }),
|
|
3515
|
+
/* @__PURE__ */ jsxs9("div", { className: "text-left", children: [
|
|
3516
|
+
/* @__PURE__ */ jsx16("p", { className: "font-medium text-catchup-gray-400", children: i18n_default.t("text_mode") }),
|
|
3517
|
+
/* @__PURE__ */ jsx16("p", { className: "text-sm text-catchup-gray-300", children: "Regular text input" })
|
|
3518
|
+
] })
|
|
3519
|
+
] })
|
|
3520
|
+
}
|
|
3521
|
+
),
|
|
3522
|
+
/* @__PURE__ */ jsx16(
|
|
3523
|
+
"button",
|
|
3524
|
+
{
|
|
3525
|
+
className: `w-full p-3 rounded-lg border-2 transition-all duration-200 ${isMathMode ? "border-catchup-blue-400 bg-catchup-blue-50" : "border-catchup-gray-100 hover:border-catchup-gray-200"}`,
|
|
3526
|
+
onClick: () => handleMathModeToggle(true),
|
|
3527
|
+
children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center space-x-3", children: [
|
|
3528
|
+
/* @__PURE__ */ jsx16("div", { className: "w-4 h-4 rounded-full border-2 border-catchup-blue-400 flex items-center justify-center", children: isMathMode && /* @__PURE__ */ jsx16("div", { className: "w-2 h-2 rounded-full bg-catchup-blue-400" }) }),
|
|
3529
|
+
/* @__PURE__ */ jsxs9("div", { className: "text-left", children: [
|
|
3530
|
+
/* @__PURE__ */ jsx16("p", { className: "font-medium text-catchup-gray-400", children: i18n_default.t("math_mode") }),
|
|
3531
|
+
/* @__PURE__ */ jsx16("p", { className: "text-sm text-catchup-gray-300", children: "Mathematical expressions" })
|
|
3532
|
+
] })
|
|
3533
|
+
] })
|
|
3534
|
+
}
|
|
3535
|
+
)
|
|
3536
|
+
] }),
|
|
3537
|
+
/* @__PURE__ */ jsx16("div", { className: "mt-6 flex justify-end", children: /* @__PURE__ */ jsx16(
|
|
3538
|
+
"button",
|
|
3539
|
+
{
|
|
3540
|
+
className: "px-4 py-2 text-catchup-gray-300 hover:text-catchup-gray-400 transition-colors",
|
|
3541
|
+
onClick: () => setShowMathOverlay(false),
|
|
3542
|
+
children: i18n_default.t("cancel")
|
|
3543
|
+
}
|
|
3544
|
+
) })
|
|
3545
|
+
] }) });
|
|
3546
|
+
};
|
|
3487
3547
|
const CheckboxInputGroup = () => {
|
|
3488
3548
|
return /* @__PURE__ */ jsxs9(
|
|
3489
3549
|
"div",
|
|
@@ -3684,16 +3744,35 @@ var InputGroup = ({
|
|
|
3684
3744
|
)
|
|
3685
3745
|
}
|
|
3686
3746
|
),
|
|
3687
|
-
useMath && /* @__PURE__ */ jsx16(
|
|
3688
|
-
"
|
|
3747
|
+
useMath && /* @__PURE__ */ jsx16(
|
|
3748
|
+
"button",
|
|
3689
3749
|
{
|
|
3690
|
-
className: "
|
|
3691
|
-
onClick: () =>
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3750
|
+
className: "absolute right-2 top-1/2 transform -translate-y-1/2 bg-catchup-white border border-catchup-gray-100 rounded-md px-3 py-1 shadow-sm hover:shadow-md transition-shadow duration-200",
|
|
3751
|
+
onClick: () => setShowMathOverlay(true),
|
|
3752
|
+
type: "button",
|
|
3753
|
+
children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-1", children: [
|
|
3754
|
+
/* @__PURE__ */ jsx16("span", { className: "text-sm font-medium text-catchup-gray-400", children: isMathMode ? "\u{1D453}(x)" : "Aa" }),
|
|
3755
|
+
/* @__PURE__ */ jsx16(
|
|
3756
|
+
"svg",
|
|
3757
|
+
{
|
|
3758
|
+
className: "w-3 h-3 text-catchup-gray-300",
|
|
3759
|
+
fill: "none",
|
|
3760
|
+
stroke: "currentColor",
|
|
3761
|
+
viewBox: "0 0 24 24",
|
|
3762
|
+
children: /* @__PURE__ */ jsx16(
|
|
3763
|
+
"path",
|
|
3764
|
+
{
|
|
3765
|
+
strokeLinecap: "round",
|
|
3766
|
+
strokeLinejoin: "round",
|
|
3767
|
+
strokeWidth: 2,
|
|
3768
|
+
d: "M19 9l-7 7-7-7"
|
|
3769
|
+
}
|
|
3770
|
+
)
|
|
3771
|
+
}
|
|
3772
|
+
)
|
|
3773
|
+
] })
|
|
3695
3774
|
}
|
|
3696
|
-
)
|
|
3775
|
+
)
|
|
3697
3776
|
] });
|
|
3698
3777
|
};
|
|
3699
3778
|
const RenderMainContent = () => {
|
|
@@ -3713,7 +3792,10 @@ var InputGroup = ({
|
|
|
3713
3792
|
return CheckboxInputGroup();
|
|
3714
3793
|
}
|
|
3715
3794
|
};
|
|
3716
|
-
return
|
|
3795
|
+
return /* @__PURE__ */ jsxs9(Fragment, { children: [
|
|
3796
|
+
RenderMainContent(),
|
|
3797
|
+
/* @__PURE__ */ jsx16(MathModeOverlay, {})
|
|
3798
|
+
] });
|
|
3717
3799
|
};
|
|
3718
3800
|
var InputGroup_default = InputGroup;
|
|
3719
3801
|
|
|
@@ -4671,7 +4753,7 @@ var useScreenSize = () => {
|
|
|
4671
4753
|
var useScreenSize_default = useScreenSize;
|
|
4672
4754
|
|
|
4673
4755
|
// src/components/activities/material-content/GroupingActivityMaterialContent.tsx
|
|
4674
|
-
import { Fragment, jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4756
|
+
import { Fragment as Fragment2, jsx as jsx25, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
4675
4757
|
var GroupingActivityMaterialContent = ({
|
|
4676
4758
|
uniqueValue,
|
|
4677
4759
|
answer,
|
|
@@ -4770,7 +4852,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4770
4852
|
};
|
|
4771
4853
|
const answerMap = retrieveAnswerMap();
|
|
4772
4854
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
4773
|
-
return /* @__PURE__ */ jsxs16(
|
|
4855
|
+
return /* @__PURE__ */ jsxs16(Fragment2, { children: [
|
|
4774
4856
|
/* @__PURE__ */ jsx25(
|
|
4775
4857
|
"div",
|
|
4776
4858
|
{
|
|
@@ -4948,7 +5030,7 @@ var GroupingActivityMaterialContent = ({
|
|
|
4948
5030
|
var GroupingActivityMaterialContent_default = GroupingActivityMaterialContent;
|
|
4949
5031
|
|
|
4950
5032
|
// src/components/activities/GroupingActivityContent.tsx
|
|
4951
|
-
import { Fragment as
|
|
5033
|
+
import { Fragment as Fragment3, jsx as jsx26, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
4952
5034
|
var GroupingActivityContent = ({
|
|
4953
5035
|
answer,
|
|
4954
5036
|
data,
|
|
@@ -4973,7 +5055,7 @@ var GroupingActivityContent = ({
|
|
|
4973
5055
|
}
|
|
4974
5056
|
changeAnswer(answer2);
|
|
4975
5057
|
};
|
|
4976
|
-
return /* @__PURE__ */ jsxs17(
|
|
5058
|
+
return /* @__PURE__ */ jsxs17(Fragment3, { children: [
|
|
4977
5059
|
/* @__PURE__ */ jsx26(
|
|
4978
5060
|
ActivityBodyContent_default,
|
|
4979
5061
|
{
|
|
@@ -5003,7 +5085,7 @@ var GroupingActivityContent_default = GroupingActivityContent;
|
|
|
5003
5085
|
import { useEffect as useEffect10, useRef as useRef5, useState as useState19 } from "react";
|
|
5004
5086
|
import { useDrop as useDrop4 } from "react-dnd";
|
|
5005
5087
|
import { InlineMath as InlineMath5 } from "react-katex";
|
|
5006
|
-
import { Fragment as
|
|
5088
|
+
import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
5007
5089
|
var MatchingActivityMaterialContent = ({
|
|
5008
5090
|
uniqueValue,
|
|
5009
5091
|
answer,
|
|
@@ -5099,7 +5181,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5099
5181
|
};
|
|
5100
5182
|
const answerMap = retrieveAnswerMap();
|
|
5101
5183
|
const filteredMaterialList = retrieveFilteredMaterialList(answerMap);
|
|
5102
|
-
return /* @__PURE__ */ jsxs18(
|
|
5184
|
+
return /* @__PURE__ */ jsxs18(Fragment4, { children: [
|
|
5103
5185
|
/* @__PURE__ */ jsx27(
|
|
5104
5186
|
"div",
|
|
5105
5187
|
{
|
|
@@ -5255,7 +5337,7 @@ var MatchingActivityMaterialContent = ({
|
|
|
5255
5337
|
var MatchingActivityMaterialContent_default = MatchingActivityMaterialContent;
|
|
5256
5338
|
|
|
5257
5339
|
// src/components/activities/MatchingActivityContent.tsx
|
|
5258
|
-
import { Fragment as
|
|
5340
|
+
import { Fragment as Fragment5, jsx as jsx28, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
5259
5341
|
var MatchingActivityContent = ({
|
|
5260
5342
|
answer,
|
|
5261
5343
|
data,
|
|
@@ -5276,7 +5358,7 @@ var MatchingActivityContent = ({
|
|
|
5276
5358
|
answerMap[key] = value;
|
|
5277
5359
|
changeAnswer(answer2);
|
|
5278
5360
|
};
|
|
5279
|
-
return /* @__PURE__ */ jsxs19(
|
|
5361
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
5280
5362
|
/* @__PURE__ */ jsx28(
|
|
5281
5363
|
ActivityBodyContent_default,
|
|
5282
5364
|
{
|
|
@@ -5603,7 +5685,7 @@ var MCSAActivityContent = ({
|
|
|
5603
5685
|
var MCSAActivityContent_default = MCSAActivityContent;
|
|
5604
5686
|
|
|
5605
5687
|
// src/components/activities/material-content/OpenEndedActivityMaterialContent.tsx
|
|
5606
|
-
import { Fragment as
|
|
5688
|
+
import { Fragment as Fragment6, jsx as jsx33, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5607
5689
|
var OpenEndedActivityMaterialContent = ({
|
|
5608
5690
|
answer,
|
|
5609
5691
|
contentMap,
|
|
@@ -5639,7 +5721,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5639
5721
|
);
|
|
5640
5722
|
};
|
|
5641
5723
|
const answerMap = retrieveAnswerMap();
|
|
5642
|
-
return /* @__PURE__ */ jsx33(
|
|
5724
|
+
return /* @__PURE__ */ jsx33(Fragment6, { children: /* @__PURE__ */ jsxs24("div", { className: "", children: [
|
|
5643
5725
|
/* @__PURE__ */ jsx33("div", { className: "hidden md:block", children: /* @__PURE__ */ jsx33("span", { className: "font-semibold text-xl opacity-60", children: i18n_default.t("please_select_open_ended_text") }) }),
|
|
5644
5726
|
/* @__PURE__ */ jsx33("div", { className: "hidden md:contents", children: /* @__PURE__ */ jsx33(DividerLine_default, {}) }),
|
|
5645
5727
|
contentMap.type === "TEXT" ? RenderTextContent(answerMap) : null
|
|
@@ -5648,7 +5730,7 @@ var OpenEndedActivityMaterialContent = ({
|
|
|
5648
5730
|
var OpenEndedActivityMaterialContent_default = OpenEndedActivityMaterialContent;
|
|
5649
5731
|
|
|
5650
5732
|
// src/components/activities/OpenEndedActivityContent.tsx
|
|
5651
|
-
import { Fragment as
|
|
5733
|
+
import { Fragment as Fragment7, jsx as jsx34, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5652
5734
|
var OpenEndedActivityContent = ({
|
|
5653
5735
|
answer,
|
|
5654
5736
|
data,
|
|
@@ -5680,7 +5762,7 @@ var OpenEndedActivityContent = ({
|
|
|
5680
5762
|
)
|
|
5681
5763
|
}
|
|
5682
5764
|
),
|
|
5683
|
-
showMaterialContent ? /* @__PURE__ */ jsxs25(
|
|
5765
|
+
showMaterialContent ? /* @__PURE__ */ jsxs25(Fragment7, { children: [
|
|
5684
5766
|
/* @__PURE__ */ jsx34(
|
|
5685
5767
|
"div",
|
|
5686
5768
|
{
|
|
@@ -5920,7 +6002,7 @@ var OrderingActivityMaterialContent = ({
|
|
|
5920
6002
|
var OrderingActivityMaterialContent_default = OrderingActivityMaterialContent;
|
|
5921
6003
|
|
|
5922
6004
|
// src/components/activities/OrderingActivityContent.tsx
|
|
5923
|
-
import { Fragment as
|
|
6005
|
+
import { Fragment as Fragment8, jsx as jsx37, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
5924
6006
|
var OrderingActivityContent = ({
|
|
5925
6007
|
answer,
|
|
5926
6008
|
data,
|
|
@@ -5943,7 +6025,7 @@ var OrderingActivityContent = ({
|
|
|
5943
6025
|
answerMap[secondaryKey] = prevValue;
|
|
5944
6026
|
changeAnswer(answer2);
|
|
5945
6027
|
};
|
|
5946
|
-
return /* @__PURE__ */ jsxs27(
|
|
6028
|
+
return /* @__PURE__ */ jsxs27(Fragment8, { children: [
|
|
5947
6029
|
/* @__PURE__ */ jsx37(
|
|
5948
6030
|
ActivityBodyContent_default,
|
|
5949
6031
|
{
|
|
@@ -5972,7 +6054,7 @@ var OrderingActivityContent_default = OrderingActivityContent;
|
|
|
5972
6054
|
// src/components/activities/material-content/TrueFalseActivityMaterialContent.tsx
|
|
5973
6055
|
import { useEffect as useEffect12, useState as useState21 } from "react";
|
|
5974
6056
|
import { InlineMath as InlineMath9 } from "react-katex";
|
|
5975
|
-
import { Fragment as
|
|
6057
|
+
import { Fragment as Fragment9, jsx as jsx38, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5976
6058
|
var TrueFalseActivityMaterialContent = ({
|
|
5977
6059
|
uniqueValue,
|
|
5978
6060
|
answer,
|
|
@@ -6094,7 +6176,7 @@ var TrueFalseActivityMaterialContent = ({
|
|
|
6094
6176
|
},
|
|
6095
6177
|
index
|
|
6096
6178
|
);
|
|
6097
|
-
}) }) : /* @__PURE__ */ jsxs28(
|
|
6179
|
+
}) }) : /* @__PURE__ */ jsxs28(Fragment9, { children: [
|
|
6098
6180
|
answerMap.trueList.map((item) => /* @__PURE__ */ jsxs28("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
6099
6181
|
/* @__PURE__ */ jsx38("div", { className: "flex-1", children: /* @__PURE__ */ jsx38("p", { children: item }) }),
|
|
6100
6182
|
/* @__PURE__ */ jsx38("div", { className: "w-[50px]", children: /* @__PURE__ */ jsx38("p", { className: "underline", children: i18n_default.t("true") }) })
|