touchstudy-core 0.1.26 → 0.1.28
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/components/Chats/ChatHeader.d.ts +1 -0
- package/dist/components/Chats/configs/types.d.ts +1 -0
- package/dist/components/Chats/hooks/useChatContainer.d.ts +1 -0
- package/dist/containers/ExamResult/configs/types.d.ts +2 -0
- package/dist/containers/ExamResult/hooks/useExamResult.d.ts +1 -1
- package/dist/index.css +12 -15
- package/dist/index.js +136 -41
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +136 -41
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
@@ -11,6 +11,7 @@ declare const useChatContainer: (props: Props) => {
|
|
11
11
|
examTitle: string | undefined;
|
12
12
|
courseId: number | null | undefined;
|
13
13
|
score: number | null | undefined;
|
14
|
+
totalScore: number | null | undefined;
|
14
15
|
questionOrder: number | undefined;
|
15
16
|
category: string | null | undefined;
|
16
17
|
conversationId: number | undefined;
|
@@ -105,6 +105,6 @@ declare const useExamResult: (searchParam: string, navigate: Function) => {
|
|
105
105
|
handlePrevChart: () => void;
|
106
106
|
handleNextChart: () => void;
|
107
107
|
handleExit: () => void;
|
108
|
-
handleExportPdf: () => void
|
108
|
+
handleExportPdf: () => Promise<void>;
|
109
109
|
};
|
110
110
|
export default useExamResult;
|
package/dist/index.css
CHANGED
@@ -1063,23 +1063,20 @@
|
|
1063
1063
|
font-weight: 600;
|
1064
1064
|
font-size: 12px;
|
1065
1065
|
color: #5458D5; }
|
1066
|
-
._3Z1nV .
|
1067
|
-
width: 100%;
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
height: 14px; }
|
1076
|
-
._3Z1nV ._1PMz8 input[type="range"]::-webkit-slider-thumb {
|
1077
|
-
-webkit-appearance: none;
|
1078
|
-
width: 12px;
|
1079
|
-
height: 12px;
|
1066
|
+
._3Z1nV ._1MPdO {
|
1067
|
+
width: 100%;
|
1068
|
+
height: 12px;
|
1069
|
+
background-color: transparent;
|
1070
|
+
border: 1px solid #ebebff;
|
1071
|
+
position: relative; }
|
1072
|
+
._3Z1nV ._1MPdO ._3CV_y {
|
1073
|
+
width: 8px;
|
1074
|
+
height: 8px;
|
1080
1075
|
border-radius: 100%;
|
1081
1076
|
background-color: #5458d5;
|
1082
|
-
|
1077
|
+
position: absolute;
|
1078
|
+
top: 50%;
|
1079
|
+
transform: translate(-50%, -50%); }
|
1083
1080
|
|
1084
1081
|
.__g-ff {
|
1085
1082
|
font-family: "Pretendard";
|
package/dist/index.js
CHANGED
@@ -2144,7 +2144,7 @@ var download$1 = "Download";
|
|
2144
2144
|
var full_exam$1 = "Full exam";
|
2145
2145
|
var sexual$1 = "Sexual";
|
2146
2146
|
var course$1 = "Course";
|
2147
|
-
var etc$1 = "
|
2147
|
+
var etc$1 = "Etc";
|
2148
2148
|
var consultation_category$1 = "Consultation Category";
|
2149
2149
|
var points$1 = "{{number}} points";
|
2150
2150
|
var number_of_people$1 = "{{ number }} students";
|
@@ -3836,12 +3836,13 @@ var InputChat = function InputChat(_ref) {
|
|
3836
3836
|
variant: "outlined",
|
3837
3837
|
component: "label",
|
3838
3838
|
fullWidth: true,
|
3839
|
+
disabled: isCompleted,
|
3839
3840
|
sx: {
|
3840
3841
|
display: "flex",
|
3841
3842
|
gap: "8px",
|
3842
3843
|
padding: "12px !important",
|
3843
|
-
borderColor: "#5458D5",
|
3844
|
-
borderWidth:
|
3844
|
+
borderColor: isCompleted ? "transparent" : "#5458D5",
|
3845
|
+
borderWidth: "1px"
|
3845
3846
|
}
|
3846
3847
|
}, React__default.createElement(iconPlusCircle, null), React__default.createElement(material.Typography, {
|
3847
3848
|
fontWeight: 700,
|
@@ -3883,6 +3884,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
3883
3884
|
examTitle = _ref.examTitle,
|
3884
3885
|
category = _ref.category,
|
3885
3886
|
score = _ref.score,
|
3887
|
+
totalScore = _ref.totalScore,
|
3886
3888
|
courseId = _ref.courseId,
|
3887
3889
|
questionOrder = _ref.questionOrder,
|
3888
3890
|
conversationId = _ref.conversationId,
|
@@ -3935,7 +3937,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
3935
3937
|
fontSize: "14px",
|
3936
3938
|
lineHeight: "16.71px",
|
3937
3939
|
color: "#5458D5"
|
3938
|
-
}, teacherName)),
|
3940
|
+
}, teacherName)), !!examTitle && React__default.createElement(material.Box, {
|
3939
3941
|
display: "flex",
|
3940
3942
|
alignItems: "start",
|
3941
3943
|
color: "#5458D5",
|
@@ -3960,7 +3962,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
3960
3962
|
sx: {
|
3961
3963
|
color: "#97A1AF"
|
3962
3964
|
}
|
3963
|
-
}, (!!filterDurationExam.hours() ? filterDurationExam.hours() + " " + t("hour") : "") + " " + (!!filterDurationExam.minutes() ? filterDurationExam.minutes() + " " + t("minute") : "") + " " + (!!filterDurationExam.seconds() ? filterDurationExam.seconds() + " " + t("second") : "")))),
|
3965
|
+
}, (!!filterDurationExam.hours() ? filterDurationExam.hours() + " " + t("hour") : "") + " " + (!!filterDurationExam.minutes() ? filterDurationExam.minutes() + " " + t("minute") : "") + " " + (!!filterDurationExam.seconds() ? filterDurationExam.seconds() + " " + t("second") : "")))), React__default.createElement(material.Box, {
|
3964
3966
|
display: "flex",
|
3965
3967
|
alignItems: "end",
|
3966
3968
|
gap: "6px",
|
@@ -3989,13 +3991,13 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
3989
3991
|
lineHeight: "14.32px",
|
3990
3992
|
color: "#CED2DA"
|
3991
3993
|
}, "/", t("points", {
|
3992
|
-
number:
|
3994
|
+
number: totalScore
|
3993
3995
|
}))), React__default.createElement(material.Typography, {
|
3994
3996
|
fontWeight: 500,
|
3995
3997
|
fontSize: "12px",
|
3996
3998
|
lineHeight: "14.32px",
|
3997
3999
|
color: "#97A1AF"
|
3998
|
-
}, utcToLocalTime(createdAt, t("date_time_format")))
|
4000
|
+
}, utcToLocalTime(createdAt, t("date_time_format"))), !!category && React__default.createElement(material.Box, {
|
3999
4001
|
display: "flex",
|
4000
4002
|
alignItems: "end",
|
4001
4003
|
gap: "16px",
|
@@ -4010,7 +4012,7 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4010
4012
|
fontSize: "14px",
|
4011
4013
|
lineHeight: "14.32px",
|
4012
4014
|
color: "#5458D5"
|
4013
|
-
}, t("" + category)))) : React__default.createElement(material.Grid, {
|
4015
|
+
}, t("" + category))))) : React__default.createElement(material.Grid, {
|
4014
4016
|
item: true,
|
4015
4017
|
xs: 12,
|
4016
4018
|
borderTop: "1px solid #E4E7EC",
|
@@ -4043,17 +4045,32 @@ var ChatHeader = function ChatHeader(_ref) {
|
|
4043
4045
|
alignItems: "center",
|
4044
4046
|
gap: "24px",
|
4045
4047
|
color: "#5458D5"
|
4046
|
-
}, examTitle
|
4048
|
+
}, examTitle ? React__default.createElement(material.Typography, {
|
4047
4049
|
fontWeight: 600,
|
4048
4050
|
fontSize: "12px",
|
4049
4051
|
lineHeight: "14.32px"
|
4050
|
-
}, examTitle)
|
4052
|
+
}, examTitle) : React__default.createElement(material.Box, {
|
4053
|
+
display: "flex",
|
4054
|
+
alignItems: "end",
|
4055
|
+
gap: "16px",
|
4056
|
+
flexDirection: "row"
|
4057
|
+
}, React__default.createElement(material.Typography, {
|
4058
|
+
fontWeight: 600,
|
4059
|
+
fontSize: "11px",
|
4060
|
+
lineHeight: "14.32px",
|
4061
|
+
color: "#5458D5"
|
4062
|
+
}, t("consultation_category")), React__default.createElement(material.Typography, {
|
4063
|
+
fontWeight: 700,
|
4064
|
+
fontSize: "14px",
|
4065
|
+
lineHeight: "14.32px",
|
4066
|
+
color: "#5458D5"
|
4067
|
+
}, t("" + category))), questionOrder != undefined && React__default.createElement(material.Typography, {
|
4051
4068
|
fontWeight: 700,
|
4052
4069
|
fontSize: "14px",
|
4053
4070
|
lineHeight: "16.71px"
|
4054
|
-
},
|
4071
|
+
}, t("problem_number_question", {
|
4055
4072
|
number: questionOrder + 1
|
4056
|
-
})
|
4073
|
+
}))), !isCompleted ? React__default.createElement("div", {
|
4057
4074
|
onClick: toggleDialog
|
4058
4075
|
}, React__default.createElement(material.Box, {
|
4059
4076
|
padding: "8px 12px",
|
@@ -4590,6 +4607,7 @@ var useChatContainer = function useChatContainer(props) {
|
|
4590
4607
|
examTitle: selectedConversation === null || selectedConversation === void 0 ? void 0 : selectedConversation.examTitle,
|
4591
4608
|
courseId: selectedConversation === null || selectedConversation === void 0 ? void 0 : selectedConversation.courseId,
|
4592
4609
|
score: selectedConversation === null || selectedConversation === void 0 ? void 0 : selectedConversation.score,
|
4610
|
+
totalScore: selectedConversation === null || selectedConversation === void 0 ? void 0 : selectedConversation.totalScore,
|
4593
4611
|
questionOrder: selectedConversation === null || selectedConversation === void 0 ? void 0 : (_selectedConversation3 = selectedConversation.question) === null || _selectedConversation3 === void 0 ? void 0 : _selectedConversation3.questionOrder,
|
4594
4612
|
category: selectedConversation === null || selectedConversation === void 0 ? void 0 : selectedConversation.category,
|
4595
4613
|
conversationId: selectedConversation === null || selectedConversation === void 0 ? void 0 : selectedConversation.id,
|
@@ -8542,16 +8560,27 @@ var useExamResult = function useExamResult(searchParam, navigate) {
|
|
8542
8560
|
}];
|
8543
8561
|
}, [JSON.stringify(timelyOrderQuestion), dataChartIndex]);
|
8544
8562
|
var handleExportPdf = function handleExportPdf() {
|
8545
|
-
|
8546
|
-
|
8547
|
-
|
8563
|
+
try {
|
8564
|
+
var canvas = document.querySelector("#canvas");
|
8565
|
+
var headerCanvas = document.querySelector("#header-canvas");
|
8566
|
+
if (!canvas || !headerCanvas) return Promise.resolve();
|
8548
8567
|
var doc = new jspdf.jsPDF();
|
8549
8568
|
var imgWidth = 208;
|
8550
|
-
var
|
8551
|
-
|
8552
|
-
|
8553
|
-
|
8554
|
-
|
8569
|
+
var bodyWidth = 202;
|
8570
|
+
return Promise.resolve(html2canvas(headerCanvas)).then(function (header) {
|
8571
|
+
var imgHeaderHeight = header.height * imgWidth / header.width;
|
8572
|
+
var imgHeaderData = header.toDataURL('image/png');
|
8573
|
+
doc.addImage(imgHeaderData, 'PNG', 0, 0, imgWidth, imgHeaderHeight);
|
8574
|
+
return Promise.resolve(html2canvas(canvas)).then(function (body) {
|
8575
|
+
var imgBodyHeight = body.height * bodyWidth / body.width;
|
8576
|
+
var imgBodyData = body.toDataURL('image/png');
|
8577
|
+
doc.addImage(imgBodyData, 'PNG', 4, imgHeaderHeight, bodyWidth, imgBodyHeight);
|
8578
|
+
doc.save("download.pdf");
|
8579
|
+
});
|
8580
|
+
});
|
8581
|
+
} catch (e) {
|
8582
|
+
return Promise.reject(e);
|
8583
|
+
}
|
8555
8584
|
};
|
8556
8585
|
return {
|
8557
8586
|
series: series,
|
@@ -9686,7 +9715,7 @@ Object.defineProperty(exports,"__esModule",{value:!0});var _typeof="function"==t
|
|
9686
9715
|
|
9687
9716
|
var ReactApexChart = unwrapExports(reactApexcharts_min);
|
9688
9717
|
|
9689
|
-
var styles$2 = {"titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","
|
9718
|
+
var styles$2 = {"titleBox":"_1dveO","title":"_mxRxf","point":"_2fD-F","buttonGroup":"_2DGl3","btnFeedback":"_xGW1x","btnTerminate":"_3mLu2","myanswer":"_eDBpS","titleMyAnswer1":"_2fMq3","titleMyAnswer2":"_3gEYh","contentMyAnswer":"_2K_sx","myAnswerItem":"_2qiLh","time":"_6TCOK","timeCol":"_hmseC","answer-response":"_3GfJt","answer-response-0":"_3ut64","answer-response-1":"_2VtpD","answer-response-2":"_58lQU","answer-response-3":"_1ucMY","answer-response-4":"_1qkxy","answerCorrect":"_2jIeT","answerIncorrect":"_to2v0","answerNograss":"_1JSte","answerEasy":"_2_uTU","answerDiscrimination":"_1DBoA","answerTrap":"_1q3tD","answerNoTime":"_3iItu","questionOrder":"_1fNkS","myTimeLabel":"_1Z_F3","myPoolTime":"_4KwG0","topTimeLabel":"_245H-","topTime":"_3tZqw","meanTimeLabel":"_PlPLY","meanTime":"_12a7R","compareChart":"_3MW16","prevChart":"_1fNkb","chart":"_3K4oY","nextChart":"_3YKBp","titleChart":"_13BVP","compareGrass":"_1_fJu","titleCompareGrass":"_o1txm","tableCompareGrass":"_bT5nf","thcolumn1":"_3Umg0","tdcolumn1":"_3dRMF","tdcolumn3":"_2tcBP","classification":"_1AFeb","wrapperProblem":"_oTqG7","titleProblem":"_35eIx","titleProblemClose":"_3t4HO","titleTrickyProblem":"_1-oxK","wrongQuestions":"_2dpMR","question":"_1lSOX","assignedQuestions":"_1ONUt","wrapperContent":"_nPoR0","content":"_2zmZn","contentColumn1":"_334SY","span1":"_3Lf-U","span2":"_ZpMot","contentColumn2":"_16P3l","duration":"_1kT28","topDuration":"_1fVRi","overallCorrectRate":"_3jLGe","answer":"_VsZ0K","contentVulnerable":"_QxKMy","wrappContentProblem":"_nnqpW","contentProblem":"_3Z1nV","labelProblem":"_36Xpx","name":"_3ZJQW","percent":"_2J3MK","slider":"_1MPdO","track":"_3CV_y","noData":"__g-ff","loading":"_3j485","table-responsive":"_2O6RX","form-label":"_1RYOQ","form-control":"_3VRVT","form-label-dialog":"_3oCSh","btn-cancel":"_3USKq","btn-register":"_3y_iD","pdfBtnBox":"_3xZHo","pdfBtn":"_1DtWq","form-select":"_1a_vw"};
|
9690
9719
|
|
9691
9720
|
var formatDataMyAnswer = function formatDataMyAnswer(inputData, categories) {
|
9692
9721
|
var uniqueCategories = new Set();
|
@@ -10686,13 +10715,12 @@ function GradesByTerritory(_ref) {
|
|
10686
10715
|
}, item.name), React__default.createElement("div", {
|
10687
10716
|
className: styles$2["percent"]
|
10688
10717
|
}, React__default.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React__default.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "\uBB38\uC81C"))), React__default.createElement("div", {
|
10689
|
-
className: styles$2["
|
10690
|
-
}, React__default.createElement("
|
10691
|
-
|
10692
|
-
|
10693
|
-
|
10694
|
-
|
10695
|
-
disabled: true
|
10718
|
+
className: styles$2["slider"]
|
10719
|
+
}, React__default.createElement("span", {
|
10720
|
+
className: styles$2["track"],
|
10721
|
+
style: {
|
10722
|
+
left: item.percentageAmongStudents + "%"
|
10723
|
+
}
|
10696
10724
|
})));
|
10697
10725
|
}), openProblem.problem4 && !data.length && React__default.createElement("div", {
|
10698
10726
|
className: styles$2["noData"]
|
@@ -10902,6 +10930,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
10902
10930
|
longTimeSpend = _useExamResult.longTimeSpend,
|
10903
10931
|
effectSize = _useExamResult.effectSize,
|
10904
10932
|
categoryResponses = _useExamResult.categoryResponses,
|
10933
|
+
handleExportPdf = _useExamResult.handleExportPdf,
|
10905
10934
|
setOpenProblem = _useExamResult.setOpenProblem,
|
10906
10935
|
handlePrevChart = _useExamResult.handlePrevChart,
|
10907
10936
|
handleNextChart = _useExamResult.handleNextChart;
|
@@ -10920,10 +10949,17 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
10920
10949
|
}
|
10921
10950
|
}, React__default.createElement(material.Grid, {
|
10922
10951
|
container: true,
|
10923
|
-
padding: "24px"
|
10952
|
+
padding: "24px",
|
10953
|
+
id: "header-canvas"
|
10924
10954
|
}, React__default.createElement(material.Grid, {
|
10925
10955
|
item: true
|
10926
|
-
}, React__default.createElement(material.
|
10956
|
+
}, resultDatas.courseName && React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
10957
|
+
sx: {
|
10958
|
+
fontSize: "14px",
|
10959
|
+
fontWeight: 600,
|
10960
|
+
color: "#C3C5FE"
|
10961
|
+
}
|
10962
|
+
}, resultDatas.courseName)), React__default.createElement(material.Box, {
|
10927
10963
|
display: "flex",
|
10928
10964
|
gap: "16px",
|
10929
10965
|
flexDirection: "column"
|
@@ -11002,7 +11038,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
11002
11038
|
}
|
11003
11039
|
}, resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.teacherName)))))), React__default.createElement(material.Grid, {
|
11004
11040
|
container: true,
|
11005
|
-
padding: "24px"
|
11041
|
+
padding: "24px",
|
11042
|
+
className: "position-relative overflow-hidden"
|
11006
11043
|
}, React__default.createElement(material.Grid, {
|
11007
11044
|
item: true,
|
11008
11045
|
xs: 12
|
@@ -11038,12 +11075,12 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
11038
11075
|
})), React__default.createElement(material.Stack, {
|
11039
11076
|
padding: '12px 24px',
|
11040
11077
|
alignItems: "end",
|
11041
|
-
bgcolor: "#F9FAFB"
|
11042
|
-
borderBottom: '1px solid #E4E7EC'
|
11078
|
+
bgcolor: "#F9FAFB"
|
11043
11079
|
}, React__default.createElement("div", {
|
11044
11080
|
className: styles$2["pdfBtnBox"]
|
11045
11081
|
}, React__default.createElement("button", {
|
11046
|
-
className: styles$2["pdfBtn"]
|
11082
|
+
className: styles$2["pdfBtn"],
|
11083
|
+
onClick: handleExportPdf
|
11047
11084
|
}, React__default.createElement(iconPrintFill, null), React__default.createElement("p", null, t("print"))))))), React__default.createElement(material.Grid, {
|
11048
11085
|
item: true,
|
11049
11086
|
xs: 12
|
@@ -11095,6 +11132,71 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
11095
11132
|
data: categoryResponses,
|
11096
11133
|
openProblem: openProblem,
|
11097
11134
|
changeOpen: setOpenProblem
|
11135
|
+
}))), React__default.createElement(material.Grid, {
|
11136
|
+
item: true,
|
11137
|
+
xs: 12,
|
11138
|
+
className: "position-absolute",
|
11139
|
+
sx: {
|
11140
|
+
zIndex: -1,
|
11141
|
+
width: "100%"
|
11142
|
+
},
|
11143
|
+
id: "canvas"
|
11144
|
+
}, React__default.createElement(CustomTabPanel, {
|
11145
|
+
value: selected,
|
11146
|
+
index: 0
|
11147
|
+
}, React__default.createElement(MyAnswer, {
|
11148
|
+
data: resultDatas,
|
11149
|
+
categories: categoryResponses,
|
11150
|
+
isStudent: isStudent
|
11151
|
+
})), React__default.createElement(CustomTabPanel, {
|
11152
|
+
value: selected,
|
11153
|
+
index: 1
|
11154
|
+
}, React__default.createElement("div", {
|
11155
|
+
className: styles$2["compareChart"]
|
11156
|
+
}, React__default.createElement("div", {
|
11157
|
+
className: styles$2["prevChart"] + " " + (dataChartIndex > 0 && "pointer"),
|
11158
|
+
onClick: handlePrevChart
|
11159
|
+
}, React__default.createElement(iconBtnPrevChart, null)), React__default.createElement("div", {
|
11160
|
+
className: styles$2["chart"] + " sr-line-chart"
|
11161
|
+
}, React__default.createElement("div", null, React__default.createElement(ReactApexChart, {
|
11162
|
+
height: 389,
|
11163
|
+
options: chartOptions,
|
11164
|
+
series: series
|
11165
|
+
}))), React__default.createElement("div", {
|
11166
|
+
className: styles$2["nextChart"] + " " + (dataChartIndex < timelyOrderQuestion.length - 1 && "pointer"),
|
11167
|
+
onClick: handleNextChart
|
11168
|
+
}, React__default.createElement(iconBtnNextChart, null)))), React__default.createElement(CustomTabPanel, {
|
11169
|
+
value: selected,
|
11170
|
+
index: 2
|
11171
|
+
}, React__default.createElement(CompareGrass, {
|
11172
|
+
effectSize: effectSize
|
11173
|
+
})), React__default.createElement(CustomTabPanel, {
|
11174
|
+
value: selected,
|
11175
|
+
index: 3
|
11176
|
+
}, React__default.createElement(TrickyProblem, {
|
11177
|
+
data: resultDatas,
|
11178
|
+
openProblem: _extends({}, openProblem, {
|
11179
|
+
problem1: true
|
11180
|
+
}),
|
11181
|
+
changeOpen: setOpenProblem
|
11182
|
+
}), React__default.createElement(Vulnerable, {
|
11183
|
+
data: resultDatas,
|
11184
|
+
openProblem: _extends({}, openProblem, {
|
11185
|
+
problem3: true
|
11186
|
+
}),
|
11187
|
+
changeOpen: setOpenProblem
|
11188
|
+
}), React__default.createElement(ProtractedProblem, {
|
11189
|
+
data: longTimeSpend,
|
11190
|
+
openProblem: _extends({}, openProblem, {
|
11191
|
+
problem2: true
|
11192
|
+
}),
|
11193
|
+
changeOpen: setOpenProblem
|
11194
|
+
}), React__default.createElement(GradesByTerritory, {
|
11195
|
+
data: categoryResponses,
|
11196
|
+
openProblem: _extends({}, openProblem, {
|
11197
|
+
problem4: true
|
11198
|
+
}),
|
11199
|
+
changeOpen: setOpenProblem
|
11098
11200
|
})))), React__default.createElement(CreateNewQuestionDialog$1, {
|
11099
11201
|
examSessionId: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.examSessionId,
|
11100
11202
|
handleCreateQuestion: handleCreateQuestion,
|
@@ -11113,13 +11215,6 @@ var getLocalDayOfWeek = function getLocalDayOfWeek(utcDateTime, dayOfWeek) {
|
|
11113
11215
|
var currentDayOfWeek = moment.utc(utcDateTime).weekday();
|
11114
11216
|
var diff = dayOfWeek - currentDayOfWeek;
|
11115
11217
|
if (diff < 0) diff += 7;
|
11116
|
-
console.log({
|
11117
|
-
utcDateTime: utcDateTime,
|
11118
|
-
dayOfWeek: dayOfWeek,
|
11119
|
-
currentDayOfWeek: currentDayOfWeek,
|
11120
|
-
localDayOfWeek: moment.utc(utcDateTime).add(diff, "days").local().weekday(),
|
11121
|
-
day: moment.utc(utcDateTime).add(diff, "days").local().format("YYYY-MMM-DD HH:mm:ss")
|
11122
|
-
});
|
11123
11218
|
return moment.utc(utcDateTime).add(diff, "days").local().weekday();
|
11124
11219
|
};
|
11125
11220
|
var getUtcDayOfWeek = function getUtcDayOfWeek(localDateTime, dayOfWeek) {
|