touchstudy-core 0.1.195 → 0.1.197
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/add-ts-nocheck.js +33 -0
- package/dist/alert-circle-fill~CSSkoNUz.svg +3 -0
- package/dist/calendar_fill~zEgxFwDs.svg +4 -0
- package/dist/check-circle_fill~bbGHfKpz.svg +3 -0
- package/dist/checked-circle_fill~KLGxfRpW.svg +3 -0
- package/dist/clock_fill~mcRclYYO.svg +3 -0
- package/dist/close-circle_fill~PRVaHJUQ.svg +3 -0
- package/dist/components/Chats/components/CanvasOverlay.d.ts +11 -0
- package/dist/components/Chats/components/SketchDialog/BgColorTool.d.ts +8 -0
- package/dist/components/Chats/components/SketchDialog/BgImgAlignTool.d.ts +10 -0
- package/dist/components/Chats/components/SketchDialog/BgImgAlignToolList.d.ts +9 -0
- package/dist/components/Chats/components/SketchDialog/BgImgTool.d.ts +13 -0
- package/dist/components/Chats/components/SketchDialog/CanvasOverlay.d.ts +11 -0
- package/dist/components/Chats/components/SketchDialog/ColorPicker.d.ts +8 -0
- package/dist/components/Chats/components/SketchDialog/EraserTool.d.ts +9 -0
- package/dist/components/Chats/components/SketchDialog/PencilTool.d.ts +11 -0
- package/dist/components/Chats/components/SketchDialog/WidthSlider.d.ts +7 -0
- package/dist/components/Chats/components/SketchDialog/index.d.ts +9 -0
- package/dist/components/Chats/components/SketchDialog.d.ts +7 -0
- package/dist/components/Chats/styles/styles.d.ts +42 -0
- package/dist/components/CkEditor/CkEditor.d.ts +10 -0
- package/dist/components/CkEditor/config.d.ts +19 -0
- package/dist/components/CkEditor/index.d.ts +2 -0
- package/dist/components/Print/hooks/useDeviceType.d.ts +4 -0
- package/dist/components/Selects/CustomSelectOption.d.ts +1 -1
- package/dist/containers/ExamResult/components/GradesByTerritory/Textbook.d.ts +12 -0
- package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +12 -0
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +10 -0
- package/dist/containers/ExamResult/components/TrickyProblem/Textbook.d.ts +10 -0
- package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +11 -0
- package/dist/containers/ExamResult/components/Vulnerable/Textbook.d.ts +11 -0
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +12 -0
- package/dist/containers/Exams/components/ArticleBlock.d.ts +20 -0
- package/dist/containers/Exams/components/ArticleGroupView.d.ts +33 -0
- package/dist/containers/Exams/components/QuestionBlock.d.ts +19 -0
- package/dist/containers/Exams/components/QuestionCompareType.d.ts +9 -0
- package/dist/containers/Exams/components/QuestionGroupBlock.d.ts +28 -0
- package/dist/containers/Exams/components/QuestionGroupBlockBody.d.ts +23 -0
- package/dist/containers/Exams/components/QuestionOrderName.d.ts +9 -0
- package/dist/containers/Exams/components/QuestionShortInput.d.ts +13 -0
- package/dist/containers/Exams/components/QuestionView.d.ts +20 -0
- package/dist/containers/Exams/hooks/useOverallChartContainer.d.ts +9 -0
- package/dist/containers/Exams/styles/styles.d.ts +6 -0
- package/dist/containers/Notes/components/TeacherAdminNoteDialog.d.ts +4 -0
- package/dist/containers/PreparedTextbook/components/Article.d.ts +20 -0
- package/dist/containers/PreparedTextbook/components/ArticleBlock.d.ts +20 -0
- package/dist/containers/PreparedTextbook/components/Chapter.d.ts +19 -0
- package/dist/containers/PreparedTextbook/components/QuestionBlock.d.ts +19 -0
- package/dist/containers/PreparedTextbook/components/QuestionCompareType.d.ts +8 -0
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlock.d.ts +28 -0
- package/dist/containers/PreparedTextbook/components/QuestionGroupBlockBody.d.ts +24 -0
- package/dist/containers/PreparedTextbook/components/QuestionOrderName.d.ts +9 -0
- package/dist/containers/PreparedTextbook/components/QuestionScore.d.ts +9 -0
- package/dist/containers/PreparedTextbook/components/QuestionShortInput.d.ts +12 -0
- package/dist/containers/PreparedTextbook/components/QuestionTypeFilter.d.ts +10 -0
- package/dist/containers/PreparedTextbook/components/SubChapter.d.ts +18 -0
- package/dist/containers/PreparedTextbook/components/TextbookOwners.d.ts +13 -0
- package/dist/containers/PreparedTextbook/hooks/useExamDetailView.d.ts +30 -0
- package/dist/containers/PreparedTextbook/hooks/useTextbookOptions.d.ts +15 -0
- package/dist/containers/PreparedTextbook/styles/styles.d.ts +6 -0
- package/dist/containers/PreparedTextbook/views/PreparedTextbook.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/Attendance/AttedanceFormDialog.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/AttendanceCourseTable.d.ts +15 -0
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/CourseAttendanceList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerAttendanceTab.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerExamResultTab.d.ts +9 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerNoteTab.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/DrawerTextbookResultTab.d.ts +7 -0
- package/dist/containers/StudentInfoDrawer/components/Exam/ExanResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/ExamResultDrawer.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/ExamResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/ExanResultList.d.ts +4 -0
- package/dist/containers/StudentInfoDrawer/components/LessonTooltip.d.ts +8 -0
- package/dist/containers/StudentInfoDrawer/components/NoteDrawer.d.ts +13 -0
- package/dist/containers/StudentInfoDrawer/components/TextbookResultItem.d.ts +10 -0
- package/dist/containers/StudentInfoDrawer/components/TextbookResultList.d.ts +4 -0
- package/dist/containers/Textbooks/components/ChapterBox.d.ts +4 -0
- package/dist/containers/Textbooks/configs/interfaces.d.ts +21 -0
- package/dist/containers/Textbooks/hooks/useExam.d.ts +16 -0
- package/dist/containers/Textbooks/hooks/useTextbookDetail.d.ts +55 -0
- package/dist/containers/Textbooks/views/TextbookDetail.d.ts +15 -0
- package/dist/iconPerson~bfprHOKm.svg +4 -0
- package/dist/index.css +16 -4
- package/dist/index.js +111 -93
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +111 -93
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/HeaderLink.d.ts +8 -0
- package/dist/layouts/TimerCountItem.d.ts +10 -0
- package/dist/layouts/TimerDialog.d.ts +11 -0
- package/dist/layouts/TimerDropdown.d.ts +3 -0
- package/dist/layouts/TimerItem.d.ts +11 -0
- package/dist/layouts/configs/constants.d.ts +14 -0
- package/dist/layouts/configs/enums.d.ts +6 -0
- package/dist/layouts/configs/fn.d.ts +3 -0
- package/dist/layouts/configs/types.d.ts +8 -0
- package/dist/layouts/hooks/useAlarm.d.ts +19 -0
- package/dist/layouts/hooks/useCountDownTimer.d.ts +13 -0
- package/dist/layouts/hooks/useTimers.d.ts +14 -0
- package/dist/layouts/partials/Alarm/AlarmClock.d.ts +12 -0
- package/dist/layouts/partials/Alarm/AlarmClockNote.d.ts +3 -0
- package/dist/layouts/partials/Alarm/AlarmClockPanel.d.ts +12 -0
- package/dist/layouts/partials/Alarm/AlarmClockPanelNote.d.ts +3 -0
- package/dist/layouts/partials/Alarm/AlarmClockTab.d.ts +14 -0
- package/dist/layouts/partials/Alarm/AlarmSpeakerCheckbox.d.ts +8 -0
- package/dist/layouts/partials/Alarm/AudioToastContent.d.ts +8 -0
- package/dist/layouts/partials/AlarmClock.d.ts +12 -0
- package/dist/layouts/partials/AlarmClockNote.d.ts +3 -0
- package/dist/layouts/partials/AlarmClockPanel.d.ts +12 -0
- package/dist/layouts/partials/AlarmClockPanelNote.d.ts +3 -0
- package/dist/layouts/partials/AlarmClockTab.d.ts +11 -0
- package/dist/layouts/partials/AudioToastContent.d.ts +8 -0
- package/dist/layouts/partials/CircularTimer/index.d.ts +11 -0
- package/dist/layouts/partials/CircularTimer/tick.d.ts +9 -0
- package/dist/layouts/partials/CircularTimer.d.ts +11 -0
- package/dist/layouts/partials/StudyTimerTab.d.ts +13 -0
- package/dist/layouts/partials/TimeUpdateDialog.d.ts +7 -0
- package/dist/layouts/partials/Timer/StudyTimerTab.d.ts +13 -0
- package/dist/layouts/partials/Timer/TimeLineTabPanel.d.ts +8 -0
- package/dist/layouts/partials/Timer/TimeLineTabs.d.ts +11 -0
- package/dist/layouts/partials/Timer/TimeUpdateDialog.d.ts +7 -0
- package/dist/layouts/partials/Timer/TimerCountItem.d.ts +10 -0
- package/dist/layouts/partials/Timer/TimerDivider.d.ts +9 -0
- package/dist/layouts/partials/Timer/TimerItem.d.ts +12 -0
- package/dist/layouts/partials/Timer/TimerLineItem.d.ts +13 -0
- package/dist/layouts/partials/Timer/TimerTabPanel.d.ts +8 -0
- package/dist/layouts/partials/Timer/TimerTabs.d.ts +7 -0
- package/dist/layouts/partials/TimerCountItem.d.ts +10 -0
- package/dist/layouts/partials/TimerItem.d.ts +12 -0
- package/dist/layouts/partials/TimerTabPanel.d.ts +8 -0
- package/dist/layouts/partials/TimerTabs.d.ts +7 -0
- package/dist/services/alarmService.d.ts +9 -0
- package/dist/utils/enums/subject.d.ts +6 -0
- package/dist/utils/functions/checkSuperUrl.d.ts +1 -0
- package/dist/utils/functions/isRealTabletOrMobileDevice.d.ts +1 -0
- package/dist/utils/types/examResults.d.ts +1 -0
- package/dist/utils/types/subjects.d.ts +21 -0
- package/package.json +1 -2
- /package/dist/utils/types/{questionTypeFilter.d.ts → QuestionTypeFilter.d.ts} +0 -0
package/dist/index.js
CHANGED
@@ -1577,6 +1577,9 @@ var there_are_no_problems_you_were_working_on = "풀던 문제가 없습니다."
|
|
1577
1577
|
var incomplete_exam = "미참가";
|
1578
1578
|
var completed_exam = "참가";
|
1579
1579
|
var failed_to_send_the_image_error = "이미지를 보내지 못했습니다: {{ message }}";
|
1580
|
+
var exam_session = "시험 세션";
|
1581
|
+
var must_select_an_exam_first = "먼저 시험을 선택해야 합니다";
|
1582
|
+
var not_selected = "미선택";
|
1580
1583
|
var lang_ko = {
|
1581
1584
|
problem_solving: problem_solving,
|
1582
1585
|
my_story: my_story,
|
@@ -2785,7 +2788,10 @@ var lang_ko = {
|
|
2785
2788
|
there_are_no_problems_you_were_working_on: there_are_no_problems_you_were_working_on,
|
2786
2789
|
incomplete_exam: incomplete_exam,
|
2787
2790
|
completed_exam: completed_exam,
|
2788
|
-
failed_to_send_the_image_error: failed_to_send_the_image_error
|
2791
|
+
failed_to_send_the_image_error: failed_to_send_the_image_error,
|
2792
|
+
exam_session: exam_session,
|
2793
|
+
must_select_an_exam_first: must_select_an_exam_first,
|
2794
|
+
not_selected: not_selected
|
2789
2795
|
};
|
2790
2796
|
|
2791
2797
|
var problem_solving$1 = "Problem Solving";
|
@@ -4021,6 +4027,9 @@ var there_are_no_problems_you_were_working_on$1 = "There are no problems you wer
|
|
4021
4027
|
var incomplete_exam$1 = "Incomplete";
|
4022
4028
|
var completed_exam$1 = "Completed";
|
4023
4029
|
var failed_to_send_the_image_error$1 = "Failed to send the image: {{ message }}";
|
4030
|
+
var exam_session$1 = "Exam session";
|
4031
|
+
var must_select_an_exam_first$1 = "Must select an exam first";
|
4032
|
+
var not_selected$1 = "Not selected";
|
4024
4033
|
var lang_en = {
|
4025
4034
|
problem_solving: problem_solving$1,
|
4026
4035
|
my_story: my_story$1,
|
@@ -5231,7 +5240,10 @@ var lang_en = {
|
|
5231
5240
|
there_are_no_problems_you_were_working_on: there_are_no_problems_you_were_working_on$1,
|
5232
5241
|
incomplete_exam: incomplete_exam$1,
|
5233
5242
|
completed_exam: completed_exam$1,
|
5234
|
-
failed_to_send_the_image_error: failed_to_send_the_image_error$1
|
5243
|
+
failed_to_send_the_image_error: failed_to_send_the_image_error$1,
|
5244
|
+
exam_session: exam_session$1,
|
5245
|
+
must_select_an_exam_first: must_select_an_exam_first$1,
|
5246
|
+
not_selected: not_selected$1
|
5235
5247
|
};
|
5236
5248
|
|
5237
5249
|
i18n__default.use(reactI18next.initReactI18next).init({
|
@@ -7945,7 +7957,7 @@ var CustomSelect = function CustomSelect(_ref) {
|
|
7945
7957
|
}, rest));
|
7946
7958
|
};
|
7947
7959
|
|
7948
|
-
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti", "valueById", "isTextbook"];
|
7960
|
+
var _excluded$3 = ["defaultValue", "options", "isDisabled", "scrollBottom", "value", "isMulti", "valueById", "isTextbook", "styles"];
|
7949
7961
|
var CustomSelectOption = function CustomSelectOption(_ref) {
|
7950
7962
|
var defaultValue = _ref.defaultValue,
|
7951
7963
|
options = _ref.options,
|
@@ -7955,6 +7967,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7955
7967
|
isMulti = _ref.isMulti,
|
7956
7968
|
valueById = _ref.valueById,
|
7957
7969
|
isTextbook = _ref.isTextbook,
|
7970
|
+
styles = _ref.styles,
|
7958
7971
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
7959
7972
|
var _useTranslation = reactI18next.useTranslation(),
|
7960
7973
|
t = _useTranslation.t;
|
@@ -7981,7 +7994,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7981
7994
|
DropdownIndicator: DropdownIndicator,
|
7982
7995
|
Option: CustomOption
|
7983
7996
|
},
|
7984
|
-
styles: customStyles,
|
7997
|
+
styles: _extends({}, customStyles, styles),
|
7985
7998
|
placeholder: t("select_placeholder")
|
7986
7999
|
}, rest)) : React__default.createElement(Select__default, Object.assign({
|
7987
8000
|
isDisabled: isDisabled,
|
@@ -7997,7 +8010,7 @@ var CustomSelectOption = function CustomSelectOption(_ref) {
|
|
7997
8010
|
DropdownIndicator: DropdownIndicator,
|
7998
8011
|
Option: CustomOption
|
7999
8012
|
},
|
8000
|
-
styles: customStyles,
|
8013
|
+
styles: _extends({}, customStyles, styles),
|
8001
8014
|
placeholder: t("select_placeholder")
|
8002
8015
|
}, rest));
|
8003
8016
|
};
|
@@ -19353,7 +19366,7 @@ var ChipCustom = material.styled(material.Stack)(function (_ref) {
|
|
19353
19366
|
};
|
19354
19367
|
});
|
19355
19368
|
var AnswerItem = function AnswerItem(_ref2) {
|
19356
|
-
var _data$selectedAnswers, _data$textualAnswers;
|
19369
|
+
var _data$selectedAnswers, _data$textualAnswers, _data$skipRate$toFixe, _data$skipRate;
|
19357
19370
|
var data = _ref2.data,
|
19358
19371
|
nextData = _ref2.nextData,
|
19359
19372
|
isFirst = _ref2.isFirst,
|
@@ -19418,7 +19431,7 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19418
19431
|
width: "80px",
|
19419
19432
|
justifyContent: "center"
|
19420
19433
|
}
|
19421
|
-
}, data.
|
19434
|
+
}, data.duration != 0 ? React__default.createElement("p", {
|
19422
19435
|
style: {
|
19423
19436
|
margin: 0
|
19424
19437
|
},
|
@@ -19435,7 +19448,7 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19435
19448
|
width: "80px",
|
19436
19449
|
justifyContent: "center"
|
19437
19450
|
}
|
19438
|
-
}, data.
|
19451
|
+
}, data.duration != 0 && data.topDuration ? React__default.createElement("p", {
|
19439
19452
|
style: {
|
19440
19453
|
margin: 0
|
19441
19454
|
},
|
@@ -19450,20 +19463,20 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19450
19463
|
style: {
|
19451
19464
|
display: "flex",
|
19452
19465
|
alignItems: "center",
|
19453
|
-
width: "
|
19466
|
+
width: "150px",
|
19454
19467
|
justifyContent: "center"
|
19455
19468
|
}
|
19456
|
-
},
|
19469
|
+
}, React__default.createElement("p", {
|
19457
19470
|
style: {
|
19458
19471
|
margin: 0
|
19459
19472
|
},
|
19460
19473
|
className: styles$7["answer-response"] + " " + getOverallColorClassName(data.overallCorrectRate, styles$7)
|
19461
|
-
}, data.overallCorrectRate.toFixed(2) + "%"
|
19474
|
+
}, data.overallCorrectRate.toFixed(2) + "%", React__default.createElement("span", {
|
19462
19475
|
style: {
|
19463
|
-
|
19464
|
-
|
19465
|
-
|
19466
|
-
},
|
19476
|
+
fontSize: "10px",
|
19477
|
+
color: red[900]
|
19478
|
+
}
|
19479
|
+
}, "(" + ((_data$skipRate$toFixe = (_data$skipRate = data.skipRate) === null || _data$skipRate === void 0 ? void 0 : _data$skipRate.toFixed(2)) != null ? _data$skipRate$toFixe : 0) + "%)"))), React__default.createElement("div", {
|
19467
19480
|
className: styles$7["classification"] + " " + printStyles["avoid-break-inside"] + " flex-grow-1 justify-content-start",
|
19468
19481
|
style: {
|
19469
19482
|
paddingInline: "14px",
|
@@ -19516,7 +19529,7 @@ var AnswerItem = function AnswerItem(_ref2) {
|
|
19516
19529
|
}, openContextMenu ? React__default.createElement(material.ClickAwayListener, {
|
19517
19530
|
onClickAway: handleCloseContextMenu
|
19518
19531
|
}, React__default.createElement(material.Box, null, React__default.createElement(CustomTooltip, {
|
19519
|
-
onClose:
|
19532
|
+
onClose: handleCloseContextMenu,
|
19520
19533
|
open: openContextMenu,
|
19521
19534
|
disableFocusListener: true,
|
19522
19535
|
disableHoverListener: true,
|
@@ -19662,7 +19675,7 @@ var MyAnswer = function MyAnswer(_ref) {
|
|
19662
19675
|
display: "flex",
|
19663
19676
|
alignItems: "center",
|
19664
19677
|
gap: "4px",
|
19665
|
-
width: "
|
19678
|
+
width: "150px",
|
19666
19679
|
justifyContent: "center"
|
19667
19680
|
}
|
19668
19681
|
}, React__default.createElement(material.Typography, {
|
@@ -19672,9 +19685,15 @@ var MyAnswer = function MyAnswer(_ref) {
|
|
19672
19685
|
fontWeight: 600,
|
19673
19686
|
color: "#97A1AF",
|
19674
19687
|
display: "flex",
|
19675
|
-
alignItems: "
|
19688
|
+
alignItems: "baseline",
|
19689
|
+
gap: "2px"
|
19676
19690
|
}
|
19677
|
-
}, t("total_correct_rate")
|
19691
|
+
}, t("total_correct_rate"), React__default.createElement("span", {
|
19692
|
+
style: {
|
19693
|
+
fontSize: "10px",
|
19694
|
+
color: red[900]
|
19695
|
+
}
|
19696
|
+
}, "(" + t("not_selected") + ")")))), React__default.createElement("div", {
|
19678
19697
|
className: styles$7["titleMyAnswer2"]
|
19679
19698
|
}, React__default.createElement(material.Typography, {
|
19680
19699
|
sx: {
|
@@ -21207,7 +21226,7 @@ var TimeOrderChart = function TimeOrderChart(_ref) {
|
|
21207
21226
|
};
|
21208
21227
|
|
21209
21228
|
var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
21210
|
-
var _data$selectedAnswers, _data$textualAnswers, _data$selectedAnswers2, _data$textualAnswers2, _data$selectedAnswers3, _data$textualAnswers3;
|
21229
|
+
var _data$selectedAnswers, _data$textualAnswers, _data$selectedAnswers2, _data$textualAnswers2, _data$selectedAnswers3, _data$textualAnswers3, _data$skipRate$toFixe, _data$skipRate;
|
21211
21230
|
var data = _ref.data,
|
21212
21231
|
nextData = _ref.nextData,
|
21213
21232
|
isFirst = _ref.isFirst,
|
@@ -21273,7 +21292,7 @@ var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
|
21273
21292
|
display: "flex",
|
21274
21293
|
alignItems: "center"
|
21275
21294
|
}
|
21276
|
-
}, data.
|
21295
|
+
}, data.duration != 0 ? React__default.createElement("p", {
|
21277
21296
|
style: {
|
21278
21297
|
margin: 0
|
21279
21298
|
},
|
@@ -21289,7 +21308,7 @@ var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
|
21289
21308
|
display: "flex",
|
21290
21309
|
alignItems: "center"
|
21291
21310
|
}
|
21292
|
-
}, data.
|
21311
|
+
}, data.duration != 0 && data.topDuration ? React__default.createElement("p", {
|
21293
21312
|
style: {
|
21294
21313
|
margin: 0
|
21295
21314
|
},
|
@@ -21306,22 +21325,22 @@ var TextbookAnswerItem = function TextbookAnswerItem(_ref) {
|
|
21306
21325
|
display: "flex",
|
21307
21326
|
alignItems: "center"
|
21308
21327
|
}
|
21309
|
-
},
|
21328
|
+
}, React__default.createElement("p", {
|
21310
21329
|
style: {
|
21311
21330
|
margin: 0
|
21312
21331
|
},
|
21313
21332
|
className: styles$7["answer-response"] + " " + getOverallColorClassName(data.overallCorrectRate, styles$7)
|
21314
|
-
}, data.overallCorrectRate.toFixed(2) + "%"
|
21333
|
+
}, data.overallCorrectRate.toFixed(2) + "%", React__default.createElement("span", {
|
21315
21334
|
style: {
|
21316
|
-
|
21317
|
-
|
21318
|
-
|
21319
|
-
},
|
21335
|
+
fontSize: "10px",
|
21336
|
+
color: red[900]
|
21337
|
+
}
|
21338
|
+
}, "(" + ((_data$skipRate$toFixe = (_data$skipRate = data.skipRate) === null || _data$skipRate === void 0 ? void 0 : _data$skipRate.toFixed(2)) != null ? _data$skipRate$toFixe : 0) + "%)"))), isStudent && !isLearningSpace && React__default.createElement(material.Box, {
|
21320
21339
|
className: styles["custom-col-2"]
|
21321
21340
|
}, openContextMenu ? React__default.createElement(material.ClickAwayListener, {
|
21322
21341
|
onClickAway: handleCloseContextMenu
|
21323
21342
|
}, React__default.createElement(material.Box, null, React__default.createElement(CustomTooltip, {
|
21324
|
-
onClose:
|
21343
|
+
onClose: handleCloseContextMenu,
|
21325
21344
|
open: openContextMenu,
|
21326
21345
|
disableFocusListener: true,
|
21327
21346
|
disableHoverListener: true,
|
@@ -21474,9 +21493,15 @@ var TextbookMyAnswer = function TextbookMyAnswer(_ref) {
|
|
21474
21493
|
fontWeight: 600,
|
21475
21494
|
color: "#97A1AF",
|
21476
21495
|
display: "flex",
|
21477
|
-
alignItems: "
|
21496
|
+
alignItems: "baseline",
|
21497
|
+
gap: "2px"
|
21478
21498
|
}
|
21479
|
-
}, t("total_correct_rate")
|
21499
|
+
}, t("total_correct_rate"), React__default.createElement("span", {
|
21500
|
+
style: {
|
21501
|
+
fontSize: "10px",
|
21502
|
+
color: red[900]
|
21503
|
+
}
|
21504
|
+
}, "(" + t("not_selected") + ")")))), React__default.createElement("div", {
|
21480
21505
|
className: styles$7["titleMyAnswer2"]
|
21481
21506
|
}, React__default.createElement(material.Typography, {
|
21482
21507
|
sx: {
|
@@ -23192,12 +23217,12 @@ var useExamResultData = function useExamResultData(props) {
|
|
23192
23217
|
var _useState9 = React.useState(),
|
23193
23218
|
openProblem = _useState9[0],
|
23194
23219
|
setOpenProblem = _useState9[1];
|
23195
|
-
var
|
23196
|
-
selectedQuestion =
|
23197
|
-
setSelectedQuestion =
|
23198
|
-
var
|
23199
|
-
errorMessage =
|
23200
|
-
setErrorMessage =
|
23220
|
+
var _useState10 = React.useState(),
|
23221
|
+
selectedQuestion = _useState10[0],
|
23222
|
+
setSelectedQuestion = _useState10[1];
|
23223
|
+
var _useState11 = React.useState(),
|
23224
|
+
errorMessage = _useState11[0],
|
23225
|
+
setErrorMessage = _useState11[1];
|
23201
23226
|
var _useTranslation = reactI18next.useTranslation(),
|
23202
23227
|
t = _useTranslation.t;
|
23203
23228
|
var isBelongAcademy = !!user && user.academyDomain && !user.isLearningSpace;
|
@@ -24090,7 +24115,7 @@ var useOverallChartContainer = function useOverallChartContainer(isStudent, exam
|
|
24090
24115
|
return [texts.slice(0, middle), texts.slice(middle)];
|
24091
24116
|
}, [JSON.stringify(categories)]);
|
24092
24117
|
var formatTooltip = React.useCallback(function (_ref2) {
|
24093
|
-
var _overallData$data$0$h, _overallData$data$, _overallData$data$1$h, _overallData$data$2, _overallData$
|
24118
|
+
var _overallData$data$0$h, _overallData$data$, _overallData$maxData$, _overallData$data$1$h, _overallData$data$2, _overallData$maxData$2, _overallData$data$0$q, _overallData$data$3, _overallData$data$1$q, _overallData$data$4, _overallData$data$0$p, _overallData$data$5, _overallData$data$1$p, _overallData$data$6, _overallData$data$0$t, _overallData$data$7, _overallData$maxData$3, _overallData$data$1$t, _overallData$data$8, _overallData$maxData$4, _overallData$data$0$l, _overallData$data$9, _overallData$maxData$5, _overallData$data$1$l, _overallData$data$10, _overallData$maxData$6, _overallData$data$0$c, _overallData$data$11, _overallData$data$11$, _overallData$data$1$c, _overallData$data$12, _overallData$data$12$;
|
24094
24119
|
var dataPointIndex = _ref2.dataPointIndex,
|
24095
24120
|
w = _ref2.w;
|
24096
24121
|
var label = categories[dataPointIndex];
|
@@ -24099,47 +24124,39 @@ var useOverallChartContainer = function useOverallChartContainer(isStudent, exam
|
|
24099
24124
|
switch (dataPointIndex) {
|
24100
24125
|
case 1:
|
24101
24126
|
myValue = "" + t("n_questions", {
|
24102
|
-
total: (_overallData$data$0$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$ = overallData.data[0]) === null || _overallData$data$ === void 0 ? void 0 : _overallData$data$.highLevelQuestions) != null ? _overallData$data$0$h : 0
|
24127
|
+
total: ((_overallData$data$0$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$ = overallData.data[0]) === null || _overallData$data$ === void 0 ? void 0 : _overallData$data$.highLevelQuestions) != null ? _overallData$data$0$h : 0) + "/" + ((_overallData$maxData$ = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.highLevelQuestions) != null ? _overallData$maxData$ : 0)
|
24103
24128
|
});
|
24104
24129
|
avgValue = "" + t("n_questions", {
|
24105
|
-
total: (_overallData$data$1$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$2 = overallData.data[1]) === null || _overallData$data$2 === void 0 ? void 0 :
|
24130
|
+
total: Math.round((_overallData$data$1$h = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$2 = overallData.data[1]) === null || _overallData$data$2 === void 0 ? void 0 : _overallData$data$2.highLevelQuestions) != null ? _overallData$data$1$h : 0) + "/" + ((_overallData$maxData$2 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.highLevelQuestions) != null ? _overallData$maxData$2 : 0)
|
24106
24131
|
});
|
24107
24132
|
break;
|
24108
24133
|
case 2:
|
24109
|
-
myValue =
|
24110
|
-
|
24111
|
-
});
|
24112
|
-
avgValue = "" + t("n_seconds", {
|
24113
|
-
sec: (((_overallData$data$1$q = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$4 = overallData.data[1]) === null || _overallData$data$4 === void 0 ? void 0 : _overallData$data$4.questionLongestTime) != null ? _overallData$data$1$q : 0) / 1000).toFixed(2)
|
24114
|
-
});
|
24134
|
+
myValue = formatTimeSecond(((_overallData$data$0$q = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$3 = overallData.data[0]) === null || _overallData$data$3 === void 0 ? void 0 : _overallData$data$3.questionLongestTime) != null ? _overallData$data$0$q : 0) / 1000, t);
|
24135
|
+
avgValue = formatTimeSecond(((_overallData$data$1$q = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$4 = overallData.data[1]) === null || _overallData$data$4 === void 0 ? void 0 : _overallData$data$4.questionLongestTime) != null ? _overallData$data$1$q : 0) / 1000, t);
|
24115
24136
|
break;
|
24116
24137
|
case 3:
|
24117
|
-
myValue =
|
24118
|
-
|
24119
|
-
});
|
24120
|
-
avgValue = "" + t("n_seconds", {
|
24121
|
-
sec: (((_overallData$data$1$p = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$6 = overallData.data[1]) === null || _overallData$data$6 === void 0 ? void 0 : _overallData$data$6.problemSolvingTime) != null ? _overallData$data$1$p : 0) / 1000).toFixed(2)
|
24122
|
-
});
|
24138
|
+
myValue = formatTimeSecond(((_overallData$data$0$p = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$5 = overallData.data[0]) === null || _overallData$data$5 === void 0 ? void 0 : _overallData$data$5.problemSolvingTime) != null ? _overallData$data$0$p : 0) / 1000, t);
|
24139
|
+
avgValue = formatTimeSecond(((_overallData$data$1$p = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$6 = overallData.data[1]) === null || _overallData$data$6 === void 0 ? void 0 : _overallData$data$6.problemSolvingTime) != null ? _overallData$data$1$p : 0) / 1000, t);
|
24123
24140
|
break;
|
24124
24141
|
case 4:
|
24125
24142
|
myValue = "" + t("n_questions", {
|
24126
|
-
total: (_overallData$data$0$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$7 = overallData.data[0]) === null || _overallData$data$7 === void 0 ? void 0 : _overallData$data$7.totalAsteriskQuestions) != null ? _overallData$data$0$t : 0
|
24143
|
+
total: ((_overallData$data$0$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$7 = overallData.data[0]) === null || _overallData$data$7 === void 0 ? void 0 : _overallData$data$7.totalAsteriskQuestions) != null ? _overallData$data$0$t : 0) + "/" + ((_overallData$maxData$3 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.totalAsteriskQuestions) != null ? _overallData$maxData$3 : 0)
|
24127
24144
|
});
|
24128
24145
|
avgValue = "" + t("n_questions", {
|
24129
|
-
total: (_overallData$data$1$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$8 = overallData.data[1]) === null || _overallData$data$8 === void 0 ? void 0 :
|
24146
|
+
total: Math.round((_overallData$data$1$t = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$8 = overallData.data[1]) === null || _overallData$data$8 === void 0 ? void 0 : _overallData$data$8.totalAsteriskQuestions) != null ? _overallData$data$1$t : 0) + "/" + ((_overallData$maxData$4 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.totalAsteriskQuestions) != null ? _overallData$maxData$4 : 0)
|
24130
24147
|
});
|
24131
24148
|
break;
|
24132
24149
|
case 5:
|
24133
24150
|
myValue = "" + t("n_questions", {
|
24134
|
-
total: (_overallData$data$0$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$9 = overallData.data[0]) === null || _overallData$data$9 === void 0 ? void 0 : _overallData$data$9.lowLevelQuestions) != null ? _overallData$data$0$l : 0
|
24151
|
+
total: ((_overallData$data$0$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$9 = overallData.data[0]) === null || _overallData$data$9 === void 0 ? void 0 : _overallData$data$9.lowLevelQuestions) != null ? _overallData$data$0$l : 0) + "/" + ((_overallData$maxData$5 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.lowLevelQuestions) != null ? _overallData$maxData$5 : 0)
|
24135
24152
|
});
|
24136
24153
|
avgValue = "" + t("n_questions", {
|
24137
|
-
total: (_overallData$data$1$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$
|
24154
|
+
total: Math.round((_overallData$data$1$l = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$10 = overallData.data[1]) === null || _overallData$data$10 === void 0 ? void 0 : _overallData$data$10.lowLevelQuestions) != null ? _overallData$data$1$l : 0) + "/" + ((_overallData$maxData$6 = overallData === null || overallData === void 0 ? void 0 : overallData.maxData.lowLevelQuestions) != null ? _overallData$maxData$6 : 0)
|
24138
24155
|
});
|
24139
24156
|
break;
|
24140
24157
|
default:
|
24141
|
-
myValue = ((_overallData$data$0$c = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$
|
24142
|
-
avgValue = ((_overallData$data$1$
|
24158
|
+
myValue = ((_overallData$data$0$c = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$11 = overallData.data[0]) === null || _overallData$data$11 === void 0 ? void 0 : (_overallData$data$11$ = _overallData$data$11.correctRate) === null || _overallData$data$11$ === void 0 ? void 0 : _overallData$data$11$.toFixed(2)) != null ? _overallData$data$0$c : 0) + "%";
|
24159
|
+
avgValue = ((_overallData$data$1$c = overallData === null || overallData === void 0 ? void 0 : (_overallData$data$12 = overallData.data[1]) === null || _overallData$data$12 === void 0 ? void 0 : (_overallData$data$12$ = _overallData$data$12.correctRate) === null || _overallData$data$12$ === void 0 ? void 0 : _overallData$data$12$.toFixed(2)) != null ? _overallData$data$1$c : 0) + "%";
|
24143
24160
|
break;
|
24144
24161
|
}
|
24145
24162
|
return "<div style=\"padding: 8px; background: #fff; border-radius: 4px;\">\n <div style=\"border-bottom: 1px solid #f3f3f3; margin-bottom: 4px\"><strong>" + label + "</strong></div>\n <div style=\"display: flex; justify-content: space-between\">\n <p style=\"margin-right: 4px\"><strong style=\"color: " + w.globals.colors[0] + "\">" + t("my_data") + ":</strong></p>\n <p>" + myValue + "</p>\n </div>\n <div style=\"display: flex; justify-content: space-between\">\n <p style=\"margin-right: 4px\"><strong style=\"color: " + w.globals.colors[1] + "\">" + t("avg_data") + ":</strong></p>\n <p>" + avgValue + "</p>\n </div>\n </div>";
|
@@ -26280,7 +26297,7 @@ var ChapterDetail = function ChapterDetail(_ref) {
|
|
26280
26297
|
gap: "16px",
|
26281
26298
|
justifyContent: "center",
|
26282
26299
|
alignItems: "center"
|
26283
|
-
}, React__default.createElement(io5.IoCheckmarkCircle, {
|
26300
|
+
}, chapter.completedChapterQuestions === chapter.totalChapterQuestions && React__default.createElement(io5.IoCheckmarkCircle, {
|
26284
26301
|
color: styles.less_dark
|
26285
26302
|
}), React__default.createElement(material.Typography, {
|
26286
26303
|
fontSize: "14px",
|
@@ -26879,7 +26896,8 @@ var TextbookDrawer = function TextbookDrawer(_ref) {
|
|
26879
26896
|
borderRadius: "10px",
|
26880
26897
|
width: "100%",
|
26881
26898
|
height: "22px",
|
26882
|
-
position: "relative"
|
26899
|
+
position: "relative",
|
26900
|
+
overflow: "hidden"
|
26883
26901
|
}
|
26884
26902
|
}, React__default.createElement(material.Stack, {
|
26885
26903
|
sx: {
|
@@ -29823,13 +29841,13 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29823
29841
|
};
|
29824
29842
|
var handleAddToClass = function handleAddToClass(userIds) {
|
29825
29843
|
try {
|
29826
|
-
var
|
29844
|
+
var _temp12 = function _temp12() {
|
29827
29845
|
dispatch(setLoading(false));
|
29828
29846
|
};
|
29829
29847
|
if (!classId || !openSelectDialog) return Promise.resolve();
|
29830
29848
|
dispatch(setLoading(true));
|
29831
|
-
var
|
29832
|
-
function
|
29849
|
+
var _temp11 = _catch(function () {
|
29850
|
+
function _temp10() {
|
29833
29851
|
return Promise.resolve(handleGetDetailData(false)).then(function () {
|
29834
29852
|
reactToastify.toast.success(t(classId ? "update_class_successfully" : "create_class_successfully"));
|
29835
29853
|
handleCloseSelectDialog();
|
@@ -29846,18 +29864,18 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29846
29864
|
});
|
29847
29865
|
}
|
29848
29866
|
}();
|
29849
|
-
return _temp9 && _temp9.then ? _temp9.then(
|
29867
|
+
return _temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9);
|
29850
29868
|
}, function (error) {
|
29851
29869
|
reactToastify.toast.error(getErrorMessage(t, error));
|
29852
29870
|
});
|
29853
|
-
return Promise.resolve(
|
29871
|
+
return Promise.resolve(_temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11));
|
29854
29872
|
} catch (e) {
|
29855
29873
|
return Promise.reject(e);
|
29856
29874
|
}
|
29857
29875
|
};
|
29858
29876
|
var handleSubmit = function handleSubmit(values, _) {
|
29859
29877
|
try {
|
29860
|
-
var
|
29878
|
+
var _temp16 = function _temp16() {
|
29861
29879
|
dispatch(setLoading(false));
|
29862
29880
|
};
|
29863
29881
|
if (values.courseWeeklyDays.some(function (i) {
|
@@ -29874,11 +29892,11 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29874
29892
|
}
|
29875
29893
|
var body = convertToRequestBody(values);
|
29876
29894
|
dispatch(setLoading(true));
|
29877
|
-
var
|
29878
|
-
function
|
29895
|
+
var _temp15 = _catch(function () {
|
29896
|
+
function _temp14() {
|
29879
29897
|
reactToastify.toast.success(t(classId ? "update_class_successfully" : "create_class_successfully"));
|
29880
29898
|
}
|
29881
|
-
var
|
29899
|
+
var _temp13 = function () {
|
29882
29900
|
if (!classId) {
|
29883
29901
|
return Promise.resolve(createClassApi(body)).then(function (res) {
|
29884
29902
|
pushTo(history, classListUrl + "/" + res.data.id);
|
@@ -29889,11 +29907,11 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29889
29907
|
});
|
29890
29908
|
}
|
29891
29909
|
}();
|
29892
|
-
return
|
29910
|
+
return _temp13 && _temp13.then ? _temp13.then(_temp14) : _temp14(_temp13);
|
29893
29911
|
}, function (error) {
|
29894
29912
|
reactToastify.toast.error(getErrorMessage(t, error));
|
29895
29913
|
});
|
29896
|
-
return Promise.resolve(
|
29914
|
+
return Promise.resolve(_temp15 && _temp15.then ? _temp15.then(_temp16) : _temp16(_temp15));
|
29897
29915
|
} catch (e) {
|
29898
29916
|
return Promise.reject(e);
|
29899
29917
|
}
|
@@ -29901,7 +29919,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29901
29919
|
var getStudentNotInClassList = function getStudentNotInClassList() {
|
29902
29920
|
try {
|
29903
29921
|
if (!classId) return Promise.resolve();
|
29904
|
-
var
|
29922
|
+
var _temp17 = _catch(function () {
|
29905
29923
|
var _textSearchRef$curren;
|
29906
29924
|
return Promise.resolve(getStudentClassApi(classId, _extends({}, filter, {
|
29907
29925
|
textSearch: (_textSearchRef$curren = textSearchRef.current) === null || _textSearchRef$curren === void 0 ? void 0 : _textSearchRef$curren.value,
|
@@ -29932,7 +29950,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29932
29950
|
setStudents([]);
|
29933
29951
|
reactToastify.toast.error(getErrorMessage(t, error));
|
29934
29952
|
});
|
29935
|
-
return Promise.resolve(
|
29953
|
+
return Promise.resolve(_temp17 && _temp17.then ? _temp17.then(function () {}) : void 0);
|
29936
29954
|
} catch (e) {
|
29937
29955
|
return Promise.reject(e);
|
29938
29956
|
}
|
@@ -29940,7 +29958,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29940
29958
|
var getTeacherNotInClassList = function getTeacherNotInClassList() {
|
29941
29959
|
try {
|
29942
29960
|
if (!classId) return Promise.resolve();
|
29943
|
-
var
|
29961
|
+
var _temp18 = _catch(function () {
|
29944
29962
|
var _textSearchRef$curren2;
|
29945
29963
|
return Promise.resolve(getTeacherClassApi(classId, _extends({}, filter, {
|
29946
29964
|
textSearch: (_textSearchRef$curren2 = textSearchRef.current) === null || _textSearchRef$curren2 === void 0 ? void 0 : _textSearchRef$curren2.value,
|
@@ -29971,7 +29989,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
29971
29989
|
setTeachers([]);
|
29972
29990
|
reactToastify.toast.error(getErrorMessage(t, error));
|
29973
29991
|
});
|
29974
|
-
return Promise.resolve(
|
29992
|
+
return Promise.resolve(_temp18 && _temp18.then ? _temp18.then(function () {}) : void 0);
|
29975
29993
|
} catch (e) {
|
29976
29994
|
return Promise.reject(e);
|
29977
29995
|
}
|
@@ -31729,9 +31747,9 @@ var useUserList = function useUserList(role) {
|
|
31729
31747
|
var _useState9 = React.useState(),
|
31730
31748
|
deleteFile = _useState9[0],
|
31731
31749
|
setDeleteFile = _useState9[1];
|
31732
|
-
var
|
31733
|
-
isOpenDeleteUserCsv =
|
31734
|
-
setOpenDeleteUserCsv =
|
31750
|
+
var _useState10 = React.useState(false),
|
31751
|
+
isOpenDeleteUserCsv = _useState10[0],
|
31752
|
+
setOpenDeleteUserCsv = _useState10[1];
|
31735
31753
|
var inputFileRef = React.useRef(null);
|
31736
31754
|
var firstLoadRef = React.useRef(true);
|
31737
31755
|
var handleChangeSelectedStudent = function handleChangeSelectedStudent(student) {
|
@@ -31887,7 +31905,7 @@ var useUserList = function useUserList(role) {
|
|
31887
31905
|
};
|
31888
31906
|
var getUserList = function getUserList() {
|
31889
31907
|
try {
|
31890
|
-
var
|
31908
|
+
var _temp10 = function _temp10() {
|
31891
31909
|
firstLoadRef.current && dispatch(setLoading(false));
|
31892
31910
|
if (firstLoadRef.current) firstLoadRef.current = false;
|
31893
31911
|
};
|
@@ -31916,7 +31934,7 @@ var useUserList = function useUserList(role) {
|
|
31916
31934
|
setPaging(DEFAULT_PAGING_RESPONSE);
|
31917
31935
|
console.log(error);
|
31918
31936
|
});
|
31919
|
-
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(
|
31937
|
+
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9));
|
31920
31938
|
} catch (e) {
|
31921
31939
|
return Promise.reject(e);
|
31922
31940
|
}
|
@@ -31932,7 +31950,7 @@ var useUserList = function useUserList(role) {
|
|
31932
31950
|
setSelectedUser(user);
|
31933
31951
|
setOpenUserDialog(true);
|
31934
31952
|
return Promise.resolve(_catch(function () {
|
31935
|
-
var
|
31953
|
+
var _temp11 = function () {
|
31936
31954
|
if (!!user.id && !!user.email) {
|
31937
31955
|
return Promise.resolve(createRecentUserActionListApi({
|
31938
31956
|
userId: user === null || user === void 0 ? void 0 : user.id,
|
@@ -31942,7 +31960,7 @@ var useUserList = function useUserList(role) {
|
|
31942
31960
|
})).then(function () {});
|
31943
31961
|
}
|
31944
31962
|
}();
|
31945
|
-
if (
|
31963
|
+
if (_temp11 && _temp11.then) return _temp11.then(function () {});
|
31946
31964
|
}, function (error) {
|
31947
31965
|
console.error(getErrorMessage(t, error));
|
31948
31966
|
}));
|
@@ -31971,18 +31989,18 @@ var useUserList = function useUserList(role) {
|
|
31971
31989
|
};
|
31972
31990
|
var handleCreateOrUpdateUser = function handleCreateOrUpdateUser(value) {
|
31973
31991
|
try {
|
31974
|
-
var
|
31992
|
+
var _temp15 = function _temp15() {
|
31975
31993
|
dispatch(setLoading(false));
|
31976
31994
|
};
|
31977
31995
|
if (value.fullName === "marcus") return Promise.resolve();
|
31978
31996
|
dispatch(setLoading(true));
|
31979
|
-
var
|
31980
|
-
function
|
31997
|
+
var _temp14 = _catch(function () {
|
31998
|
+
function _temp13() {
|
31981
31999
|
return Promise.resolve(getUserList()).then(function () {
|
31982
32000
|
handleCloseUserDialog();
|
31983
32001
|
});
|
31984
32002
|
}
|
31985
|
-
var
|
32003
|
+
var _temp12 = function () {
|
31986
32004
|
if (!!(selectedUser !== null && selectedUser !== void 0 && selectedUser.id)) {
|
31987
32005
|
return Promise.resolve(updateUserApi(_extends({}, value, {
|
31988
32006
|
grade: value.grade == null ? undefined : value.grade
|
@@ -31993,23 +32011,23 @@ var useUserList = function useUserList(role) {
|
|
31993
32011
|
}))).then(function () {});
|
31994
32012
|
}
|
31995
32013
|
}();
|
31996
|
-
return
|
32014
|
+
return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
|
31997
32015
|
}, function (error) {
|
31998
32016
|
reactToastify.toast.error(getErrorMessage(t, error));
|
31999
32017
|
});
|
32000
|
-
return Promise.resolve(
|
32018
|
+
return Promise.resolve(_temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14));
|
32001
32019
|
} catch (e) {
|
32002
32020
|
return Promise.reject(e);
|
32003
32021
|
}
|
32004
32022
|
};
|
32005
32023
|
var handleDeleteUser = function handleDeleteUser() {
|
32006
32024
|
try {
|
32007
|
-
var
|
32025
|
+
var _temp17 = function _temp17() {
|
32008
32026
|
dispatch(setLoading(false));
|
32009
32027
|
};
|
32010
32028
|
if (!(selectedUser !== null && selectedUser !== void 0 && selectedUser.id)) return Promise.resolve();
|
32011
32029
|
dispatch(setLoading(true));
|
32012
|
-
var
|
32030
|
+
var _temp16 = _catch(function () {
|
32013
32031
|
return Promise.resolve(deleteUserApi(selectedUser.id)).then(function () {
|
32014
32032
|
toggleConfirmDialog();
|
32015
32033
|
getUserList();
|
@@ -32017,7 +32035,7 @@ var useUserList = function useUserList(role) {
|
|
32017
32035
|
}, function (error) {
|
32018
32036
|
reactToastify.toast.error(getErrorMessage(t, error));
|
32019
32037
|
});
|
32020
|
-
return Promise.resolve(
|
32038
|
+
return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16));
|
32021
32039
|
} catch (e) {
|
32022
32040
|
return Promise.reject(e);
|
32023
32041
|
}
|
@@ -32850,7 +32868,7 @@ var useCategoryOptions = function useCategoryOptions(subjectId, isMath, filter,
|
|
32850
32868
|
};
|
32851
32869
|
var getQuestionTypes = function getQuestionTypes(categoryId, subCategoryId) {
|
32852
32870
|
try {
|
32853
|
-
var
|
32871
|
+
var _temp10 = function _temp10() {
|
32854
32872
|
setLoadingQuestionTypes(false);
|
32855
32873
|
};
|
32856
32874
|
setLoadingQuestionTypes(true);
|
@@ -32873,7 +32891,7 @@ var useCategoryOptions = function useCategoryOptions(subjectId, isMath, filter,
|
|
32873
32891
|
}, function () {
|
32874
32892
|
setQuestionTypes([]);
|
32875
32893
|
});
|
32876
|
-
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(
|
32894
|
+
return Promise.resolve(_temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9));
|
32877
32895
|
} catch (e) {
|
32878
32896
|
return Promise.reject(e);
|
32879
32897
|
}
|