touchstudy-core 0.1.27 → 0.1.29

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.
@@ -12,6 +12,7 @@ export interface IChatHeaderProps {
12
12
  createdAt?: string;
13
13
  durationExam?: string;
14
14
  score?: number | null;
15
+ totalScore?: number | null;
15
16
  courseId?: number | null;
16
17
  category?: string | null;
17
18
  questionOrder?: number;
@@ -12,6 +12,7 @@ export declare type ConversationsResponse = {
12
12
  courseId: number | null;
13
13
  courseTitle: string | null;
14
14
  score?: number | null;
15
+ totalScore?: number | null;
15
16
  studentId: number;
16
17
  category?: string | null;
17
18
  question: ConversationQuestion;
@@ -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 ._1PMz8 {
1067
- width: 100%; }
1068
- ._3Z1nV ._1PMz8 input[type="range"] {
1069
- -webkit-appearance: none;
1070
- padding: 1px;
1071
- width: 100%;
1072
- border: 1px solid #ebebff;
1073
- border-radius: 255px;
1074
- background-color: transparent;
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
- border: 1px solid #ffffff; }
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 = "etc";
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: isCompleted ? 0 : "1px"
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)), !category && React__default.createElement(material.Box, {
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") : "")))), !category ? React__default.createElement(material.Box, {
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: 100
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")))) : React__default.createElement(material.Box, {
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 && React__default.createElement(material.Typography, {
4048
+ }, examTitle ? React__default.createElement(material.Typography, {
4047
4049
  fontWeight: 600,
4048
4050
  fontSize: "12px",
4049
4051
  lineHeight: "14.32px"
4050
- }, examTitle), React__default.createElement(material.Typography, {
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
- }, questionOrder != undefined ? t("problem_number_question", {
4071
+ }, t("problem_number_question", {
4055
4072
  number: questionOrder + 1
4056
- }) : t("class_inquiry"))), !isCompleted ? React__default.createElement("div", {
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
- var canvas = document.querySelector("#canvas");
8546
- if (!canvas) return;
8547
- html2canvas(canvas).then(function (canvas) {
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 imgHeight = canvas.height * imgWidth / canvas.width;
8551
- var imgData = canvas.toDataURL('image/png');
8552
- doc.addImage(imgData, 'PNG', 0, 0, imgWidth, imgHeight);
8553
- doc.save("download.pdf");
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","inputRange":"_1PMz8","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"};
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();
@@ -9889,8 +9918,9 @@ var useCreateQuestionDialog = function useCreateQuestionDialog() {
9889
9918
  })).then(function () {
9890
9919
  toggleDialog();
9891
9920
  });
9892
- }, function () {
9893
- reactToastify.toast.error("Fail to Create Question!");
9921
+ }, function (error) {
9922
+ var _error$response, _error$response$data;
9923
+ reactToastify.toast.error((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.title) || "Fail to Create Question!");
9894
9924
  });
9895
9925
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
9896
9926
  } catch (e) {
@@ -10686,13 +10716,12 @@ function GradesByTerritory(_ref) {
10686
10716
  }, item.name), React__default.createElement("div", {
10687
10717
  className: styles$2["percent"]
10688
10718
  }, 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["inputRange"]
10690
- }, React__default.createElement("input", {
10691
- min: 0,
10692
- max: 100,
10693
- type: "range",
10694
- value: item.percentageAmongStudents,
10695
- disabled: true
10719
+ className: styles$2["slider"]
10720
+ }, React__default.createElement("span", {
10721
+ className: styles$2["track"],
10722
+ style: {
10723
+ left: item.percentageAmongStudents + "%"
10724
+ }
10696
10725
  })));
10697
10726
  }), openProblem.problem4 && !data.length && React__default.createElement("div", {
10698
10727
  className: styles$2["noData"]
@@ -10722,8 +10751,9 @@ var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
10722
10751
  })).then(function () {
10723
10752
  toggleDialog();
10724
10753
  });
10725
- }, function () {
10726
- reactToastify.toast.error("Fail to Create Question!");
10754
+ }, function (error) {
10755
+ var _error$response, _error$response$data;
10756
+ reactToastify.toast.error((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.title) || "Fail to Create Question!");
10727
10757
  });
10728
10758
  return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
10729
10759
  } catch (e) {
@@ -10902,6 +10932,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
10902
10932
  longTimeSpend = _useExamResult.longTimeSpend,
10903
10933
  effectSize = _useExamResult.effectSize,
10904
10934
  categoryResponses = _useExamResult.categoryResponses,
10935
+ handleExportPdf = _useExamResult.handleExportPdf,
10905
10936
  setOpenProblem = _useExamResult.setOpenProblem,
10906
10937
  handlePrevChart = _useExamResult.handlePrevChart,
10907
10938
  handleNextChart = _useExamResult.handleNextChart;
@@ -10920,7 +10951,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
10920
10951
  }
10921
10952
  }, React__default.createElement(material.Grid, {
10922
10953
  container: true,
10923
- padding: "24px"
10954
+ padding: "24px",
10955
+ id: "header-canvas"
10924
10956
  }, React__default.createElement(material.Grid, {
10925
10957
  item: true
10926
10958
  }, resultDatas.courseName && React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
@@ -11008,7 +11040,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11008
11040
  }
11009
11041
  }, resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.teacherName)))))), React__default.createElement(material.Grid, {
11010
11042
  container: true,
11011
- padding: "24px"
11043
+ padding: "24px",
11044
+ className: "position-relative overflow-hidden"
11012
11045
  }, React__default.createElement(material.Grid, {
11013
11046
  item: true,
11014
11047
  xs: 12
@@ -11044,12 +11077,12 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11044
11077
  })), React__default.createElement(material.Stack, {
11045
11078
  padding: '12px 24px',
11046
11079
  alignItems: "end",
11047
- bgcolor: "#F9FAFB",
11048
- borderBottom: '1px solid #E4E7EC'
11080
+ bgcolor: "#F9FAFB"
11049
11081
  }, React__default.createElement("div", {
11050
11082
  className: styles$2["pdfBtnBox"]
11051
11083
  }, React__default.createElement("button", {
11052
- className: styles$2["pdfBtn"]
11084
+ className: styles$2["pdfBtn"],
11085
+ onClick: handleExportPdf
11053
11086
  }, React__default.createElement(iconPrintFill, null), React__default.createElement("p", null, t("print"))))))), React__default.createElement(material.Grid, {
11054
11087
  item: true,
11055
11088
  xs: 12
@@ -11101,6 +11134,71 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11101
11134
  data: categoryResponses,
11102
11135
  openProblem: openProblem,
11103
11136
  changeOpen: setOpenProblem
11137
+ }))), React__default.createElement(material.Grid, {
11138
+ item: true,
11139
+ xs: 12,
11140
+ className: "position-absolute",
11141
+ sx: {
11142
+ zIndex: -1,
11143
+ width: "100%"
11144
+ },
11145
+ id: "canvas"
11146
+ }, React__default.createElement(CustomTabPanel, {
11147
+ value: selected,
11148
+ index: 0
11149
+ }, React__default.createElement(MyAnswer, {
11150
+ data: resultDatas,
11151
+ categories: categoryResponses,
11152
+ isStudent: isStudent
11153
+ })), React__default.createElement(CustomTabPanel, {
11154
+ value: selected,
11155
+ index: 1
11156
+ }, React__default.createElement("div", {
11157
+ className: styles$2["compareChart"]
11158
+ }, React__default.createElement("div", {
11159
+ className: styles$2["prevChart"] + " " + (dataChartIndex > 0 && "pointer"),
11160
+ onClick: handlePrevChart
11161
+ }, React__default.createElement(iconBtnPrevChart, null)), React__default.createElement("div", {
11162
+ className: styles$2["chart"] + " sr-line-chart"
11163
+ }, React__default.createElement("div", null, React__default.createElement(ReactApexChart, {
11164
+ height: 389,
11165
+ options: chartOptions,
11166
+ series: series
11167
+ }))), React__default.createElement("div", {
11168
+ className: styles$2["nextChart"] + " " + (dataChartIndex < timelyOrderQuestion.length - 1 && "pointer"),
11169
+ onClick: handleNextChart
11170
+ }, React__default.createElement(iconBtnNextChart, null)))), React__default.createElement(CustomTabPanel, {
11171
+ value: selected,
11172
+ index: 2
11173
+ }, React__default.createElement(CompareGrass, {
11174
+ effectSize: effectSize
11175
+ })), React__default.createElement(CustomTabPanel, {
11176
+ value: selected,
11177
+ index: 3
11178
+ }, React__default.createElement(TrickyProblem, {
11179
+ data: resultDatas,
11180
+ openProblem: _extends({}, openProblem, {
11181
+ problem1: true
11182
+ }),
11183
+ changeOpen: setOpenProblem
11184
+ }), React__default.createElement(Vulnerable, {
11185
+ data: resultDatas,
11186
+ openProblem: _extends({}, openProblem, {
11187
+ problem3: true
11188
+ }),
11189
+ changeOpen: setOpenProblem
11190
+ }), React__default.createElement(ProtractedProblem, {
11191
+ data: longTimeSpend,
11192
+ openProblem: _extends({}, openProblem, {
11193
+ problem2: true
11194
+ }),
11195
+ changeOpen: setOpenProblem
11196
+ }), React__default.createElement(GradesByTerritory, {
11197
+ data: categoryResponses,
11198
+ openProblem: _extends({}, openProblem, {
11199
+ problem4: true
11200
+ }),
11201
+ changeOpen: setOpenProblem
11104
11202
  })))), React__default.createElement(CreateNewQuestionDialog$1, {
11105
11203
  examSessionId: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.examSessionId,
11106
11204
  handleCreateQuestion: handleCreateQuestion,
@@ -11119,13 +11217,6 @@ var getLocalDayOfWeek = function getLocalDayOfWeek(utcDateTime, dayOfWeek) {
11119
11217
  var currentDayOfWeek = moment.utc(utcDateTime).weekday();
11120
11218
  var diff = dayOfWeek - currentDayOfWeek;
11121
11219
  if (diff < 0) diff += 7;
11122
- console.log({
11123
- utcDateTime: utcDateTime,
11124
- dayOfWeek: dayOfWeek,
11125
- currentDayOfWeek: currentDayOfWeek,
11126
- localDayOfWeek: moment.utc(utcDateTime).add(diff, "days").local().weekday(),
11127
- day: moment.utc(utcDateTime).add(diff, "days").local().format("YYYY-MMM-DD HH:mm:ss")
11128
- });
11129
11220
  return moment.utc(utcDateTime).add(diff, "days").local().weekday();
11130
11221
  };
11131
11222
  var getUtcDayOfWeek = function getUtcDayOfWeek(localDateTime, dayOfWeek) {