touchstudy-core 0.1.39 → 0.1.41

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.
Files changed (26) hide show
  1. package/dist/containers/ExamResult/components/CompareGrass/index.d.ts +6 -3
  2. package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +6 -3
  3. package/dist/containers/ExamResult/components/MyAnswer/index.d.ts +2 -1
  4. package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +6 -3
  5. package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +6 -3
  6. package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +6 -3
  7. package/dist/containers/ExamResult/configs/constants.d.ts +73 -0
  8. package/dist/containers/ExamResult/hooks/useExamResult.d.ts +105 -25
  9. package/dist/containers/Login/configs/constants.d.ts +0 -6
  10. package/dist/containers/Login/views/block/BlockLogin.d.ts +1 -1
  11. package/dist/containers/Textbooks/apiClient/articleService.d.ts +1 -1
  12. package/dist/containers/Textbooks/apiClient/chapterService.d.ts +1 -1
  13. package/dist/containers/Textbooks/apiClient/textbookService.d.ts +1 -1
  14. package/dist/containers/Textbooks/views/TextbookDetail.d.ts +1 -1
  15. package/dist/containers/Textbooks/views/TextbookList.d.ts +1 -1
  16. package/dist/index.css +12 -5
  17. package/dist/index.d.ts +1 -2
  18. package/dist/index.js +1561 -1182
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.modern.js +1560 -1181
  21. package/dist/index.modern.js.map +1 -1
  22. package/dist/layouts/Header.d.ts +1 -1
  23. package/dist/layouts/TheAcademyDropdown.d.ts +1 -1
  24. package/dist/utils/constants.d.ts +6 -2
  25. package/dist/utils/hooks/useSwitchAcademy.d.ts +1 -1
  26. package/package.json +1 -1
@@ -92,12 +92,16 @@ var encodeParams = function encodeParams(params) {
92
92
  return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
93
93
  }).join('&');
94
94
  };
95
- var Roles;
96
- (function (Roles) {
97
- Roles["Student"] = "Student";
98
- Roles["Teacher"] = "Teacher";
99
- Roles["Admin"] = "Admin";
100
- })(Roles || (Roles = {}));
95
+ var Role;
96
+ (function (Role) {
97
+ Role["Student"] = "Student";
98
+ Role["Teacher"] = "Teacher";
99
+ Role["Admin"] = "Admin";
100
+ Role["AcademyAdmin"] = "AcademyAdmin";
101
+ })(Role || (Role = {}));
102
+ var PrintHeaderClassName = "print-header";
103
+ var PrintContentClassName = "print-content";
104
+ var PrintContainerClassName = "print-container";
101
105
 
102
106
  var utcToLocalTime = (function (time, FORMAT) {
103
107
  if (time === DATE_MIN_VALUE || time === DATE_TIME_MIN_VALUE) return "";
@@ -139,19 +143,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
139
143
 
140
144
  var styles = {"btn-login-google":"_2HqmH","block-login":"_wWIyO","box-login":"_38Lo1","btn-primary":"_rd4Uy","dropdown-menu":"_1krbH","header-avatar":"_RQaHE","dropdown-menu-flag":"_XK8oS","dropdown-content":"_3ys4W","dropdown-change":"_ToOW_","item-address":"_3sQlR","item-logout":"_3bqSM","title-address":"_1jgSI","img-avatar":"_35Ttz","item-contact":"_1wc7o","content-text":"_3S4f2","dropdown-content-language":"_3ajui","dropdown-item-language":"_3Y_y4","dropdown-item-language-active":"_CzNMi","dropdown-academy":"_3CMVp","image-academy":"_2ibYC","image-academy--item":"_3RDWF","academy-btn":"_1JMRU","switch-icon":"_N4FNf","dropdown-content-academy":"_31Dr0","dropdown-academy-item":"_3bjcz","noGutters":"_31ZQk","custom-col-2":"_3yXyK","custom-col-3":"_1RsJQ","custom-col-5":"_L42CP","custom-col-10":"_2u6eL","custom-row":"_8x7OP","custom-col":"_1JmTh","custom-col-4":"_3HO1e","custom-col-8":"_Oy31M","custom-col-12":"_3aUKo","custom-container":"_39LRs","form-label":"__Ut-u","form-control":"_2k4dX","btn-outline-primary":"_2PWdX","sort-icons":"_mQvLF","active":"_3oAH-","form-select":"_3W3aw","truncate":"_3NJzN","headers":"_3xnI5","logo-container":"_3YG70","tabBox":"_1CQPn","routerBox":"_3hx2T","tabText":"_3UyhW","router-link-active":"_1TGKA","router-link":"_1AqMh","userImg":"_2RI6G","disabled-link":"_3aVHg"};
141
145
 
142
- var AuthenticationMessage;
143
- (function (AuthenticationMessage) {
144
- AuthenticationMessage["NotAllowedToRegister"] = "NotAllowedToRegister";
145
- AuthenticationMessage["InvalidGoogleToken"] = "InvalidGoogleToken";
146
- })(AuthenticationMessage || (AuthenticationMessage = {}));
147
- var Role;
148
- (function (Role) {
149
- Role["Student"] = "Student";
150
- Role["Teacher"] = "Teacher";
151
- Role["Admin"] = "Admin";
152
- Role["AcademyAdmin"] = "AcademyAdmin";
153
- })(Role || (Role = {}));
154
-
155
146
  // A type of promise-like that resolves synchronously and supports only one observer
156
147
  const _Pact = /*#__PURE__*/(function() {
157
148
  function _Pact() {}
@@ -221,6 +212,35 @@ function _isSettledPact(thenable) {
221
212
  return thenable instanceof _Pact && thenable.s & 1;
222
213
  }
223
214
 
215
+ // Asynchronously iterate through an object that has a length property, passing the index as the first argument to the callback (even as the length property changes)
216
+ function _forTo(array, body, check) {
217
+ var i = -1, pact, reject;
218
+ function _cycle(result) {
219
+ try {
220
+ while (++i < array.length && (!check || !check())) {
221
+ result = body(i);
222
+ if (result && result.then) {
223
+ if (_isSettledPact(result)) {
224
+ result = result.v;
225
+ } else {
226
+ result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
227
+ return;
228
+ }
229
+ }
230
+ }
231
+ if (pact) {
232
+ _settle(pact, 1, result);
233
+ } else {
234
+ pact = result;
235
+ }
236
+ } catch (e) {
237
+ _settle(pact || (pact = new _Pact()), 2, e);
238
+ }
239
+ }
240
+ _cycle();
241
+ return pact;
242
+ }
243
+
224
244
  const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
225
245
 
226
246
  const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
@@ -1386,7 +1406,7 @@ var useSubjectSelect = function useSubjectSelect() {
1386
1406
  var isSuperAdmin = useSelector(function (state) {
1387
1407
  var _state$common2, _state$common2$user;
1388
1408
  return (state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : (_state$common2$user = _state$common2.user) === null || _state$common2$user === void 0 ? void 0 : _state$common2$user.roles) || [];
1389
- }).includes(Roles.Admin) && !isDomain;
1409
+ }).includes(Role.Admin) && !isDomain;
1390
1410
  var subjectOptions = useMemo(function () {
1391
1411
  return subjectList === null || subjectList === void 0 ? void 0 : subjectList.map(function (subject) {
1392
1412
  return {
@@ -2106,7 +2126,7 @@ var extra_time$1 = "Extra time";
2106
2126
  var complete$1 = "Complete";
2107
2127
  var current_exam$1 = "Current exam";
2108
2128
  var current_time$1 = "Current time";
2109
- var exam_time$1 = "Extra time";
2129
+ var exam_time$1 = "Exam time";
2110
2130
  var time_remaining$1 = "Time remaining";
2111
2131
  var number_results$1 = "{{number}} Results";
2112
2132
  var number_result$1 = "{{number}} Result";
@@ -3916,75 +3936,6 @@ var ChatItem = function ChatItem(props) {
3916
3936
  }));
3917
3937
  };
3918
3938
 
3919
- var MessageSortBy;
3920
- (function (MessageSortBy) {
3921
- MessageSortBy["CreatedAt"] = "CreatedAt";
3922
- })(MessageSortBy || (MessageSortBy = {}));
3923
- var OrderBy;
3924
- (function (OrderBy) {
3925
- OrderBy["ASC"] = "ASC";
3926
- OrderBy["DESC"] = "DESC";
3927
- })(OrderBy || (OrderBy = {}));
3928
- var StudentSortBy;
3929
- (function (StudentSortBy) {
3930
- StudentSortBy["CreatedAt"] = "CreatedAt";
3931
- StudentSortBy["FullName"] = "FullName";
3932
- })(StudentSortBy || (StudentSortBy = {}));
3933
- var StudentOrderBy;
3934
- (function (StudentOrderBy) {
3935
- StudentOrderBy["ASC"] = "ASC";
3936
- StudentOrderBy["DESC"] = "DESC";
3937
- })(StudentOrderBy || (StudentOrderBy = {}));
3938
- var MessageAction;
3939
- (function (MessageAction) {
3940
- MessageAction[MessageAction["Default"] = 0] = "Default";
3941
- MessageAction[MessageAction["Took"] = 1] = "Took";
3942
- })(MessageAction || (MessageAction = {}));
3943
- var MessageSourceType;
3944
- (function (MessageSourceType) {
3945
- MessageSourceType[MessageSourceType["Default"] = 0] = "Default";
3946
- MessageSourceType[MessageSourceType["Exam"] = 1] = "Exam";
3947
- MessageSourceType[MessageSourceType["Class"] = 2] = "Class";
3948
- })(MessageSourceType || (MessageSourceType = {}));
3949
- var MessageStatus;
3950
- (function (MessageStatus) {
3951
- MessageStatus["Default"] = "Sent";
3952
- MessageStatus["Sending"] = "Sending...";
3953
- MessageStatus["SentError"] = "Sent fail, Retry";
3954
- })(MessageStatus || (MessageStatus = {}));
3955
-
3956
- var types = {
3957
- __proto__: null,
3958
- get MessageSortBy () { return MessageSortBy; },
3959
- get OrderBy () { return OrderBy; },
3960
- get StudentSortBy () { return StudentSortBy; },
3961
- get StudentOrderBy () { return StudentOrderBy; },
3962
- get MessageAction () { return MessageAction; },
3963
- get MessageSourceType () { return MessageSourceType; },
3964
- get MessageStatus () { return MessageStatus; }
3965
- };
3966
-
3967
- var ExamStatus;
3968
- (function (ExamStatus) {
3969
- ExamStatus["Default"] = "Default";
3970
- ExamStatus["Pending"] = "Pending";
3971
- ExamStatus["Inprogress"] = "Inprogress";
3972
- ExamStatus["Completed"] = "Completed";
3973
- })(ExamStatus || (ExamStatus = {}));
3974
- var Roles$1;
3975
- (function (Roles) {
3976
- Roles["Student"] = "Student";
3977
- Roles["Teacher"] = "Teacher";
3978
- Roles["Admin"] = "Admin";
3979
- })(Roles$1 || (Roles$1 = {}));
3980
- var MESSAGE_DEFAULT_FILTER = {
3981
- currentPage: 1,
3982
- pageSize: 15,
3983
- textSearch: "",
3984
- sortColumnDirection: OrderBy.DESC,
3985
- sortColumnName: MessageSortBy.CreatedAt
3986
- };
3987
-
3988
3939
  var ChatList = function ChatList(_ref) {
3989
3940
  var _ref$messages = _ref.messages,
3990
3941
  messages = _ref$messages === void 0 ? [] : _ref$messages,
@@ -4009,7 +3960,7 @@ var ChatList = function ChatList(_ref) {
4009
3960
  });
4010
3961
  });
4011
3962
  }, [JSON.stringify(messages)]);
4012
- var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Roles$1.Student);
3963
+ var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Role.Student);
4013
3964
  return React.createElement("ul", {
4014
3965
  ref: listItemRef,
4015
3966
  className: styles$1["list"] + " " + styles$1["padding-content"] + " d-flex h-100 flex-column mb-0 " + (!(filterMessage !== null && filterMessage !== void 0 && filterMessage.length) ? 'justify-content-center' : '')
@@ -4253,7 +4204,7 @@ var ChatHeader = function ChatHeader(_ref) {
4253
4204
  t = _useTranslation.t;
4254
4205
  var theme = useTheme();
4255
4206
  var isTabletUp = useMediaQuery(theme.breakpoints.up('lg'));
4256
- var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Roles$1.Student);
4207
+ var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Role.Student);
4257
4208
  var filterDurationExam = useMemo(function () {
4258
4209
  if (!durationExam) return;
4259
4210
  return moment.duration(durationExam);
@@ -4567,6 +4518,75 @@ var ChatContainer = function ChatContainer(_ref) {
4567
4518
  })));
4568
4519
  };
4569
4520
 
4521
+ var MessageSortBy;
4522
+ (function (MessageSortBy) {
4523
+ MessageSortBy["CreatedAt"] = "CreatedAt";
4524
+ })(MessageSortBy || (MessageSortBy = {}));
4525
+ var OrderBy;
4526
+ (function (OrderBy) {
4527
+ OrderBy["ASC"] = "ASC";
4528
+ OrderBy["DESC"] = "DESC";
4529
+ })(OrderBy || (OrderBy = {}));
4530
+ var StudentSortBy;
4531
+ (function (StudentSortBy) {
4532
+ StudentSortBy["CreatedAt"] = "CreatedAt";
4533
+ StudentSortBy["FullName"] = "FullName";
4534
+ })(StudentSortBy || (StudentSortBy = {}));
4535
+ var StudentOrderBy;
4536
+ (function (StudentOrderBy) {
4537
+ StudentOrderBy["ASC"] = "ASC";
4538
+ StudentOrderBy["DESC"] = "DESC";
4539
+ })(StudentOrderBy || (StudentOrderBy = {}));
4540
+ var MessageAction;
4541
+ (function (MessageAction) {
4542
+ MessageAction[MessageAction["Default"] = 0] = "Default";
4543
+ MessageAction[MessageAction["Took"] = 1] = "Took";
4544
+ })(MessageAction || (MessageAction = {}));
4545
+ var MessageSourceType;
4546
+ (function (MessageSourceType) {
4547
+ MessageSourceType[MessageSourceType["Default"] = 0] = "Default";
4548
+ MessageSourceType[MessageSourceType["Exam"] = 1] = "Exam";
4549
+ MessageSourceType[MessageSourceType["Class"] = 2] = "Class";
4550
+ })(MessageSourceType || (MessageSourceType = {}));
4551
+ var MessageStatus;
4552
+ (function (MessageStatus) {
4553
+ MessageStatus["Default"] = "Sent";
4554
+ MessageStatus["Sending"] = "Sending...";
4555
+ MessageStatus["SentError"] = "Sent fail, Retry";
4556
+ })(MessageStatus || (MessageStatus = {}));
4557
+
4558
+ var types = {
4559
+ __proto__: null,
4560
+ get MessageSortBy () { return MessageSortBy; },
4561
+ get OrderBy () { return OrderBy; },
4562
+ get StudentSortBy () { return StudentSortBy; },
4563
+ get StudentOrderBy () { return StudentOrderBy; },
4564
+ get MessageAction () { return MessageAction; },
4565
+ get MessageSourceType () { return MessageSourceType; },
4566
+ get MessageStatus () { return MessageStatus; }
4567
+ };
4568
+
4569
+ var ExamStatus;
4570
+ (function (ExamStatus) {
4571
+ ExamStatus["Default"] = "Default";
4572
+ ExamStatus["Pending"] = "Pending";
4573
+ ExamStatus["Inprogress"] = "Inprogress";
4574
+ ExamStatus["Completed"] = "Completed";
4575
+ })(ExamStatus || (ExamStatus = {}));
4576
+ var Roles;
4577
+ (function (Roles) {
4578
+ Roles["Student"] = "Student";
4579
+ Roles["Teacher"] = "Teacher";
4580
+ Roles["Admin"] = "Admin";
4581
+ })(Roles || (Roles = {}));
4582
+ var MESSAGE_DEFAULT_FILTER = {
4583
+ currentPage: 1,
4584
+ pageSize: 15,
4585
+ textSearch: "",
4586
+ sortColumnDirection: OrderBy.DESC,
4587
+ sortColumnName: MessageSortBy.CreatedAt
4588
+ };
4589
+
4570
4590
  var useMessageList = function useMessageList() {
4571
4591
  var _useState = useState([]),
4572
4592
  messages = _useState[0],
@@ -5202,7 +5222,7 @@ var useCategorySelect = function useCategorySelect(_ref) {
5202
5222
  var isSuperAdmin = useSelector(function (state) {
5203
5223
  var _state$common2, _state$common2$user;
5204
5224
  return (state === null || state === void 0 ? void 0 : (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : (_state$common2$user = _state$common2.user) === null || _state$common2$user === void 0 ? void 0 : _state$common2$user.roles) || [];
5205
- }).includes(Roles.Admin) && !isDomain;
5225
+ }).includes(Role.Admin) && !isDomain;
5206
5226
  var categoryOptions = useMemo(function () {
5207
5227
  return categoryList === null || categoryList === void 0 ? void 0 : categoryList.map(function (category) {
5208
5228
  var _category$path;
@@ -5942,7 +5962,7 @@ var useExam = function useExam(props) {
5942
5962
  setExamRequest = _useState2[1];
5943
5963
  var isTeacher = useSelector(function (state) {
5944
5964
  var _state$common, _state$common$user;
5945
- return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : (_state$common$user = _state$common.user) === null || _state$common$user === void 0 ? void 0 : _state$common$user.roles.includes(Roles.Teacher);
5965
+ return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : (_state$common$user = _state$common.user) === null || _state$common$user === void 0 ? void 0 : _state$common$user.roles.includes(Role.Teacher);
5946
5966
  });
5947
5967
  var _useTranslation = useTranslation(),
5948
5968
  t = _useTranslation.t;
@@ -8406,688 +8426,767 @@ var TabList = [{
8406
8426
  label: "problem_analysis",
8407
8427
  value: 3
8408
8428
  }];
8409
- var Roles$2;
8429
+ var Roles$1;
8410
8430
  (function (Roles) {
8411
8431
  Roles["Student"] = "Student";
8412
8432
  Roles["Teacher"] = "Teacher";
8413
8433
  Roles["Admin"] = "Admin";
8414
- })(Roles$2 || (Roles$2 = {}));
8434
+ })(Roles$1 || (Roles$1 = {}));
8415
8435
  var EXAM_RESULT = {
8416
- "id": 6047,
8417
- "teacherId": 1,
8418
- "title": "EXAMPLE EXAM",
8419
- "examSessionId": 8,
8420
- "description": "",
8421
- "image": "",
8422
- "type": "",
8423
- "teacherName": "Admin",
8424
- "teacherAvatar": "https://lh3.googleusercontent.com/a/ACg8ocKoBjuFGZfJYrpnWcDgDRSy0AcVYTOP6s-WWLgxecLmRg=s96-c",
8425
- "finishTime": "0001-01-01T00:00:00+00:00",
8426
- "status": 3,
8427
- "startTime": "2024-03-13T04:28:48.768643+00:00",
8428
- "duration": "01:00:00",
8429
- "student": {
8430
- "id": 1001,
8431
- "phoneNumber": "",
8432
- "email": "",
8433
- "avatar": "https://lh3.googleusercontent.com/a/ACg8ocKtZwjUWLrcUGGP8Vf4i39FjR8rWYz0rDzwcpUBwgyDxm4=s96-c",
8434
- "parentName": "",
8435
- "parentPhoneNumber": "",
8436
- "schoolName": "Academy",
8437
- "className": "1",
8438
- "major": "",
8439
- "roles": []
8436
+ id: 6047,
8437
+ teacherId: 1,
8438
+ title: "EXAMPLE EXAM",
8439
+ examSessionId: 8,
8440
+ description: "",
8441
+ image: "",
8442
+ type: "",
8443
+ teacherName: "Admin",
8444
+ teacherAvatar: "https://lh3.googleusercontent.com/a/ACg8ocKoBjuFGZfJYrpnWcDgDRSy0AcVYTOP6s-WWLgxecLmRg=s96-c",
8445
+ finishTime: "0001-01-01T00:00:00+00:00",
8446
+ status: 3,
8447
+ startTime: "2024-03-13T04:28:48.768643+00:00",
8448
+ duration: "01:00:00",
8449
+ student: {
8450
+ id: 1001,
8451
+ phoneNumber: "",
8452
+ email: "",
8453
+ avatar: "https://lh3.googleusercontent.com/a/ACg8ocKtZwjUWLrcUGGP8Vf4i39FjR8rWYz0rDzwcpUBwgyDxm4=s96-c",
8454
+ parentName: "",
8455
+ parentPhoneNumber: "",
8456
+ schoolName: "Academy",
8457
+ className: "1",
8458
+ major: "",
8459
+ roles: []
8440
8460
  },
8441
- "questions": [{
8442
- "id": 8144,
8443
- "selectedAnswers": "1",
8444
- "correctAnswers": "2",
8445
- "isStar": false,
8446
- "duration": 320.939,
8447
- "classAverageTime": 238.939,
8448
- "topDuration": 180.939,
8449
- "answerResponseSignal": 0,
8450
- "isCorrect": false,
8451
- "answerTime": "2024-03-13T04:29:00.685+00:00",
8452
- "article": 1,
8453
- "category": {
8454
- "parentCategoryId": 5,
8455
- "name": "New category",
8456
- "path": "",
8457
- "numberOfQuestions": 0,
8458
- "numberOfChildren": 0,
8459
- "id": 7
8461
+ questions: [{
8462
+ id: 8144,
8463
+ selectedAnswers: "1",
8464
+ correctAnswers: "2",
8465
+ isStar: false,
8466
+ duration: 320.939,
8467
+ classAverageTime: 238.939,
8468
+ topDuration: 180.939,
8469
+ answerResponseSignal: 0,
8470
+ isCorrect: false,
8471
+ answerTime: "2024-03-13T04:29:00.685+00:00",
8472
+ article: 1,
8473
+ category: {
8474
+ parentCategoryId: 5,
8475
+ name: "New category",
8476
+ path: "",
8477
+ numberOfQuestions: 0,
8478
+ numberOfChildren: 0,
8479
+ id: 7
8460
8480
  },
8461
- "overallCorrectRate": 77,
8462
- "questionOrder": 0
8481
+ overallCorrectRate: 77,
8482
+ questionOrder: 0
8463
8483
  }, {
8464
- "id": 8145,
8465
- "selectedAnswers": "2",
8466
- "correctAnswers": "3",
8467
- "isStar": false,
8468
- "duration": 2.014,
8469
- "classAverageTime": 2.014,
8470
- "topDuration": 2.014,
8471
- "answerResponseSignal": 1,
8472
- "isCorrect": false,
8473
- "answerTime": "2024-03-13T04:29:02.7+00:00",
8474
- "article": 1,
8475
- "category": {
8476
- "parentCategoryId": 5,
8477
- "name": "New category",
8478
- "path": "",
8479
- "numberOfQuestions": 0,
8480
- "numberOfChildren": 0,
8481
- "id": 7
8484
+ id: 8145,
8485
+ selectedAnswers: "2",
8486
+ correctAnswers: "3",
8487
+ isStar: false,
8488
+ duration: 2.014,
8489
+ classAverageTime: 2.014,
8490
+ topDuration: 2.014,
8491
+ answerResponseSignal: 1,
8492
+ isCorrect: false,
8493
+ answerTime: "2024-03-13T04:29:02.7+00:00",
8494
+ article: 1,
8495
+ category: {
8496
+ parentCategoryId: 5,
8497
+ name: "New category",
8498
+ path: "",
8499
+ numberOfQuestions: 0,
8500
+ numberOfChildren: 0,
8501
+ id: 7
8482
8502
  },
8483
- "overallCorrectRate": 64,
8484
- "questionOrder": 1
8503
+ overallCorrectRate: 64,
8504
+ questionOrder: 1
8485
8505
  }, {
8486
- "id": 8146,
8487
- "selectedAnswers": "1",
8488
- "correctAnswers": "2",
8489
- "isStar": false,
8490
- "duration": 72.244,
8491
- "classAverageTime": 52.244,
8492
- "topDuration": 24.244,
8493
- "answerResponseSignal": 1,
8494
- "isCorrect": false,
8495
- "answerTime": "2024-03-13T04:29:04.944+00:00",
8496
- "article": 1,
8497
- "category": {
8498
- "parentCategoryId": 5,
8499
- "name": "New category",
8500
- "path": "",
8501
- "numberOfQuestions": 0,
8502
- "numberOfChildren": 0,
8503
- "id": 7
8506
+ id: 8146,
8507
+ selectedAnswers: "1",
8508
+ correctAnswers: "2",
8509
+ isStar: false,
8510
+ duration: 72.244,
8511
+ classAverageTime: 52.244,
8512
+ topDuration: 24.244,
8513
+ answerResponseSignal: 1,
8514
+ isCorrect: false,
8515
+ answerTime: "2024-03-13T04:29:04.944+00:00",
8516
+ article: 1,
8517
+ category: {
8518
+ parentCategoryId: 5,
8519
+ name: "New category",
8520
+ path: "",
8521
+ numberOfQuestions: 0,
8522
+ numberOfChildren: 0,
8523
+ id: 7
8504
8524
  },
8505
- "overallCorrectRate": 85,
8506
- "questionOrder": 2
8525
+ overallCorrectRate: 85,
8526
+ questionOrder: 2
8507
8527
  }, {
8508
- "id": 8147,
8509
- "selectedAnswers": "1",
8510
- "correctAnswers": "1",
8511
- "isStar": false,
8512
- "duration": 1.373,
8513
- "classAverageTime": 1.373,
8514
- "topDuration": 1.373,
8515
- "answerResponseSignal": 4,
8516
- "isCorrect": true,
8517
- "answerTime": "2024-03-13T04:29:06.317+00:00",
8518
- "article": 1,
8519
- "category": {
8520
- "parentCategoryId": 5,
8521
- "name": "New category",
8522
- "path": "",
8523
- "numberOfQuestions": 0,
8524
- "numberOfChildren": 0,
8525
- "id": 7
8528
+ id: 8147,
8529
+ selectedAnswers: "1",
8530
+ correctAnswers: "1",
8531
+ isStar: false,
8532
+ duration: 1.373,
8533
+ classAverageTime: 1.373,
8534
+ topDuration: 1.373,
8535
+ answerResponseSignal: 4,
8536
+ isCorrect: true,
8537
+ answerTime: "2024-03-13T04:29:06.317+00:00",
8538
+ article: 1,
8539
+ category: {
8540
+ parentCategoryId: 5,
8541
+ name: "New category",
8542
+ path: "",
8543
+ numberOfQuestions: 0,
8544
+ numberOfChildren: 0,
8545
+ id: 7
8526
8546
  },
8527
- "overallCorrectRate": 78.88,
8528
- "questionOrder": 3
8547
+ overallCorrectRate: 78.88,
8548
+ questionOrder: 3
8529
8549
  }, {
8530
- "id": 8148,
8531
- "selectedAnswers": "3",
8532
- "correctAnswers": "4",
8533
- "isStar": false,
8534
- "duration": 120.683,
8535
- "classAverageTime": 132.683,
8536
- "topDuration": 110.683,
8537
- "answerResponseSignal": 2,
8538
- "isCorrect": false,
8539
- "answerTime": "2024-03-13T04:29:07+00:00",
8540
- "article": 1,
8541
- "category": {
8542
- "parentCategoryId": 5,
8543
- "name": "New category",
8544
- "path": "",
8545
- "numberOfQuestions": 0,
8546
- "numberOfChildren": 0,
8547
- "id": 7
8550
+ id: 8148,
8551
+ selectedAnswers: "3",
8552
+ correctAnswers: "4",
8553
+ isStar: false,
8554
+ duration: 120.683,
8555
+ classAverageTime: 132.683,
8556
+ topDuration: 110.683,
8557
+ answerResponseSignal: 2,
8558
+ isCorrect: false,
8559
+ answerTime: "2024-03-13T04:29:07+00:00",
8560
+ article: 1,
8561
+ category: {
8562
+ parentCategoryId: 5,
8563
+ name: "New category",
8564
+ path: "",
8565
+ numberOfQuestions: 0,
8566
+ numberOfChildren: 0,
8567
+ id: 7
8548
8568
  },
8549
- "overallCorrectRate": 55.67,
8550
- "questionOrder": 4
8569
+ overallCorrectRate: 55.67,
8570
+ questionOrder: 4
8551
8571
  }, {
8552
- "id": 8149,
8553
- "selectedAnswers": "2",
8554
- "correctAnswers": "2",
8555
- "isStar": false,
8556
- "duration": 1.052,
8557
- "classAverageTime": 1.052,
8558
- "topDuration": 1.052,
8559
- "answerResponseSignal": 1,
8560
- "isCorrect": true,
8561
- "answerTime": "2024-03-13T04:29:08.052+00:00",
8562
- "article": 2,
8563
- "category": {
8564
- "parentCategoryId": null,
8565
- "name": "123458868",
8566
- "path": "",
8567
- "numberOfQuestions": 0,
8568
- "numberOfChildren": 0,
8569
- "id": 1008
8572
+ id: 8149,
8573
+ selectedAnswers: "2",
8574
+ correctAnswers: "2",
8575
+ isStar: false,
8576
+ duration: 1.052,
8577
+ classAverageTime: 1.052,
8578
+ topDuration: 1.052,
8579
+ answerResponseSignal: 1,
8580
+ isCorrect: true,
8581
+ answerTime: "2024-03-13T04:29:08.052+00:00",
8582
+ article: 2,
8583
+ category: {
8584
+ parentCategoryId: null,
8585
+ name: "123458868",
8586
+ path: "",
8587
+ numberOfQuestions: 0,
8588
+ numberOfChildren: 0,
8589
+ id: 1008
8570
8590
  },
8571
- "overallCorrectRate": 100,
8572
- "questionOrder": 5
8591
+ overallCorrectRate: 100,
8592
+ questionOrder: 5
8573
8593
  }, {
8574
- "id": 8150,
8575
- "selectedAnswers": "",
8576
- "correctAnswers": "3",
8577
- "isStar": false,
8578
- "duration": 0,
8579
- "classAverageTime": 0,
8580
- "topDuration": null,
8581
- "answerResponseSignal": null,
8582
- "isCorrect": false,
8583
- "answerTime": "0001-01-01T00:00:00+00:00",
8584
- "article": 2,
8585
- "category": {
8586
- "parentCategoryId": null,
8587
- "name": "123458868",
8588
- "path": "",
8589
- "numberOfQuestions": 0,
8590
- "numberOfChildren": 0,
8591
- "id": 1008
8594
+ id: 8150,
8595
+ selectedAnswers: "",
8596
+ correctAnswers: "3",
8597
+ isStar: false,
8598
+ duration: 0,
8599
+ classAverageTime: 0,
8600
+ topDuration: null,
8601
+ answerResponseSignal: null,
8602
+ isCorrect: false,
8603
+ answerTime: "0001-01-01T00:00:00+00:00",
8604
+ article: 2,
8605
+ category: {
8606
+ parentCategoryId: null,
8607
+ name: "123458868",
8608
+ path: "",
8609
+ numberOfQuestions: 0,
8610
+ numberOfChildren: 0,
8611
+ id: 1008
8592
8612
  },
8593
- "overallCorrectRate": 55.67,
8594
- "questionOrder": 6
8613
+ overallCorrectRate: 55.67,
8614
+ questionOrder: 6
8595
8615
  }, {
8596
- "id": 8151,
8597
- "selectedAnswers": "3",
8598
- "correctAnswers": "2",
8599
- "isStar": true,
8600
- "duration": 2.596,
8601
- "classAverageTime": 2.596,
8602
- "topDuration": 2.596,
8603
- "answerResponseSignal": 1,
8604
- "isCorrect": false,
8605
- "answerTime": "2024-03-13T04:29:10.648+00:00",
8606
- "article": 2,
8607
- "category": {
8608
- "parentCategoryId": null,
8609
- "name": "123458868",
8610
- "path": "",
8611
- "numberOfQuestions": 0,
8612
- "numberOfChildren": 0,
8613
- "id": 1008
8616
+ id: 8151,
8617
+ selectedAnswers: "3",
8618
+ correctAnswers: "2",
8619
+ isStar: true,
8620
+ duration: 2.596,
8621
+ classAverageTime: 2.596,
8622
+ topDuration: 2.596,
8623
+ answerResponseSignal: 1,
8624
+ isCorrect: false,
8625
+ answerTime: "2024-03-13T04:29:10.648+00:00",
8626
+ article: 2,
8627
+ category: {
8628
+ parentCategoryId: null,
8629
+ name: "123458868",
8630
+ path: "",
8631
+ numberOfQuestions: 0,
8632
+ numberOfChildren: 0,
8633
+ id: 1008
8614
8634
  },
8615
- "overallCorrectRate": 78.24,
8616
- "questionOrder": 7
8635
+ overallCorrectRate: 78.24,
8636
+ questionOrder: 7
8617
8637
  }, {
8618
- "id": 8152,
8619
- "selectedAnswers": "5",
8620
- "correctAnswers": "4",
8621
- "isStar": false,
8622
- "duration": 0.899,
8623
- "classAverageTime": 0.899,
8624
- "topDuration": 0.899,
8625
- "answerResponseSignal": 1,
8626
- "isCorrect": false,
8627
- "answerTime": "2024-03-13T04:29:12.864+00:00",
8628
- "article": 2,
8629
- "category": {
8630
- "parentCategoryId": null,
8631
- "name": "123458868",
8632
- "path": "",
8633
- "numberOfQuestions": 0,
8634
- "numberOfChildren": 0,
8635
- "id": 1008
8638
+ id: 8152,
8639
+ selectedAnswers: "5",
8640
+ correctAnswers: "4",
8641
+ isStar: false,
8642
+ duration: 0.899,
8643
+ classAverageTime: 0.899,
8644
+ topDuration: 0.899,
8645
+ answerResponseSignal: 1,
8646
+ isCorrect: false,
8647
+ answerTime: "2024-03-13T04:29:12.864+00:00",
8648
+ article: 2,
8649
+ category: {
8650
+ parentCategoryId: null,
8651
+ name: "123458868",
8652
+ path: "",
8653
+ numberOfQuestions: 0,
8654
+ numberOfChildren: 0,
8655
+ id: 1008
8636
8656
  },
8637
- "overallCorrectRate": 90,
8638
- "questionOrder": 8
8657
+ overallCorrectRate: 90,
8658
+ questionOrder: 8
8639
8659
  }, {
8640
- "id": 8153,
8641
- "selectedAnswers": "2",
8642
- "correctAnswers": "2",
8643
- "isStar": true,
8644
- "duration": 70.496,
8645
- "classAverageTime": 140.496,
8646
- "topDuration": 20.496,
8647
- "answerResponseSignal": 0,
8648
- "isCorrect": true,
8649
- "answerTime": "2024-03-13T04:29:14.36+00:00",
8650
- "article": 2,
8651
- "category": {
8652
- "parentCategoryId": null,
8653
- "name": "123458868",
8654
- "path": "",
8655
- "numberOfQuestions": 0,
8656
- "numberOfChildren": 0,
8657
- "id": 1008
8660
+ id: 8153,
8661
+ selectedAnswers: "2",
8662
+ correctAnswers: "2",
8663
+ isStar: true,
8664
+ duration: 70.496,
8665
+ classAverageTime: 140.496,
8666
+ topDuration: 20.496,
8667
+ answerResponseSignal: 0,
8668
+ isCorrect: true,
8669
+ answerTime: "2024-03-13T04:29:14.36+00:00",
8670
+ article: 2,
8671
+ category: {
8672
+ parentCategoryId: null,
8673
+ name: "123458868",
8674
+ path: "",
8675
+ numberOfQuestions: 0,
8676
+ numberOfChildren: 0,
8677
+ id: 1008
8658
8678
  },
8659
- "overallCorrectRate": 100,
8660
- "questionOrder": 9
8679
+ overallCorrectRate: 100,
8680
+ questionOrder: 9
8661
8681
  }, {
8662
- "id": 8154,
8663
- "selectedAnswers": "",
8664
- "correctAnswers": "5",
8665
- "isStar": false,
8666
- "duration": 0,
8667
- "classAverageTime": 0,
8668
- "topDuration": null,
8669
- "answerResponseSignal": null,
8670
- "isCorrect": false,
8671
- "answerTime": "0001-01-01T00:00:00+00:00",
8672
- "article": 2,
8673
- "category": {
8674
- "parentCategoryId": null,
8675
- "name": "123458868",
8676
- "path": "",
8677
- "numberOfQuestions": 0,
8678
- "numberOfChildren": 0,
8679
- "id": 1008
8682
+ id: 8154,
8683
+ selectedAnswers: "",
8684
+ correctAnswers: "5",
8685
+ isStar: false,
8686
+ duration: 0,
8687
+ classAverageTime: 0,
8688
+ topDuration: null,
8689
+ answerResponseSignal: null,
8690
+ isCorrect: false,
8691
+ answerTime: "0001-01-01T00:00:00+00:00",
8692
+ article: 2,
8693
+ category: {
8694
+ parentCategoryId: null,
8695
+ name: "123458868",
8696
+ path: "",
8697
+ numberOfQuestions: 0,
8698
+ numberOfChildren: 0,
8699
+ id: 1008
8680
8700
  },
8681
- "overallCorrectRate": 75,
8682
- "questionOrder": 10
8701
+ overallCorrectRate: 75,
8702
+ questionOrder: 10
8683
8703
  }, {
8684
- "id": 8155,
8685
- "selectedAnswers": "2",
8686
- "correctAnswers": "2",
8687
- "isStar": false,
8688
- "duration": 1.317,
8689
- "classAverageTime": 1.317,
8690
- "topDuration": 1.317,
8691
- "answerResponseSignal": 1,
8692
- "isCorrect": true,
8693
- "answerTime": "2024-03-13T04:29:11.965+00:00",
8694
- "article": 3,
8695
- "category": {
8696
- "parentCategoryId": null,
8697
- "name": "The first category a",
8698
- "path": "",
8699
- "numberOfQuestions": 0,
8700
- "numberOfChildren": 0,
8701
- "id": 4
8704
+ id: 8155,
8705
+ selectedAnswers: "2",
8706
+ correctAnswers: "2",
8707
+ isStar: false,
8708
+ duration: 1.317,
8709
+ classAverageTime: 1.317,
8710
+ topDuration: 1.317,
8711
+ answerResponseSignal: 1,
8712
+ isCorrect: true,
8713
+ answerTime: "2024-03-13T04:29:11.965+00:00",
8714
+ article: 3,
8715
+ category: {
8716
+ parentCategoryId: null,
8717
+ name: "The first category a",
8718
+ path: "",
8719
+ numberOfQuestions: 0,
8720
+ numberOfChildren: 0,
8721
+ id: 4
8702
8722
  },
8703
- "overallCorrectRate": 100,
8704
- "questionOrder": 11
8723
+ overallCorrectRate: 100,
8724
+ questionOrder: 11
8705
8725
  }, {
8706
- "id": 8156,
8707
- "selectedAnswers": "2",
8708
- "correctAnswers": "4",
8709
- "isStar": true,
8710
- "duration": 1.593,
8711
- "classAverageTime": 1.593,
8712
- "topDuration": 1.593,
8713
- "answerResponseSignal": 1,
8714
- "isCorrect": false,
8715
- "answerTime": "2024-03-13T04:29:20.734+00:00",
8716
- "article": 3,
8717
- "category": {
8718
- "parentCategoryId": null,
8719
- "name": "The first category a",
8720
- "path": "",
8721
- "numberOfQuestions": 0,
8722
- "numberOfChildren": 0,
8723
- "id": 4
8726
+ id: 8156,
8727
+ selectedAnswers: "2",
8728
+ correctAnswers: "4",
8729
+ isStar: true,
8730
+ duration: 1.593,
8731
+ classAverageTime: 1.593,
8732
+ topDuration: 1.593,
8733
+ answerResponseSignal: 1,
8734
+ isCorrect: false,
8735
+ answerTime: "2024-03-13T04:29:20.734+00:00",
8736
+ article: 3,
8737
+ category: {
8738
+ parentCategoryId: null,
8739
+ name: "The first category a",
8740
+ path: "",
8741
+ numberOfQuestions: 0,
8742
+ numberOfChildren: 0,
8743
+ id: 4
8724
8744
  },
8725
- "overallCorrectRate": 82,
8726
- "questionOrder": 12
8745
+ overallCorrectRate: 82,
8746
+ questionOrder: 12
8727
8747
  }, {
8728
- "id": 8157,
8729
- "selectedAnswers": "2",
8730
- "correctAnswers": "5",
8731
- "isStar": true,
8732
- "duration": 1.204,
8733
- "classAverageTime": 1.204,
8734
- "topDuration": 1.204,
8735
- "answerResponseSignal": 1,
8736
- "isCorrect": false,
8737
- "answerTime": "2024-03-13T04:29:18.164+00:00",
8738
- "article": 3,
8739
- "category": {
8740
- "parentCategoryId": null,
8741
- "name": "The first category a",
8742
- "path": "",
8743
- "numberOfQuestions": 0,
8744
- "numberOfChildren": 0,
8745
- "id": 4
8748
+ id: 8157,
8749
+ selectedAnswers: "2",
8750
+ correctAnswers: "5",
8751
+ isStar: true,
8752
+ duration: 1.204,
8753
+ classAverageTime: 1.204,
8754
+ topDuration: 1.204,
8755
+ answerResponseSignal: 1,
8756
+ isCorrect: false,
8757
+ answerTime: "2024-03-13T04:29:18.164+00:00",
8758
+ article: 3,
8759
+ category: {
8760
+ parentCategoryId: null,
8761
+ name: "The first category a",
8762
+ path: "",
8763
+ numberOfQuestions: 0,
8764
+ numberOfChildren: 0,
8765
+ id: 4
8746
8766
  },
8747
- "overallCorrectRate": 67,
8748
- "questionOrder": 13
8767
+ overallCorrectRate: 67,
8768
+ questionOrder: 13
8749
8769
  }, {
8750
- "id": 8158,
8751
- "selectedAnswers": "4",
8752
- "correctAnswers": "3",
8753
- "isStar": true,
8754
- "duration": 2.6,
8755
- "classAverageTime": 2.6,
8756
- "topDuration": 2.6,
8757
- "answerResponseSignal": 1,
8758
- "isCorrect": false,
8759
- "answerTime": "2024-03-13T04:29:16.96+00:00",
8760
- "article": 3,
8761
- "category": {
8762
- "parentCategoryId": null,
8763
- "name": "The first category a",
8764
- "path": "",
8765
- "numberOfQuestions": 0,
8766
- "numberOfChildren": 0,
8767
- "id": 4
8770
+ id: 8158,
8771
+ selectedAnswers: "4",
8772
+ correctAnswers: "3",
8773
+ isStar: true,
8774
+ duration: 2.6,
8775
+ classAverageTime: 2.6,
8776
+ topDuration: 2.6,
8777
+ answerResponseSignal: 1,
8778
+ isCorrect: false,
8779
+ answerTime: "2024-03-13T04:29:16.96+00:00",
8780
+ article: 3,
8781
+ category: {
8782
+ parentCategoryId: null,
8783
+ name: "The first category a",
8784
+ path: "",
8785
+ numberOfQuestions: 0,
8786
+ numberOfChildren: 0,
8787
+ id: 4
8768
8788
  },
8769
- "overallCorrectRate": 45,
8770
- "questionOrder": 14
8789
+ overallCorrectRate: 45,
8790
+ questionOrder: 14
8771
8791
  }, {
8772
- "id": 8159,
8773
- "selectedAnswers": "3",
8774
- "correctAnswers": "3",
8775
- "isStar": true,
8776
- "duration": 0.977,
8777
- "classAverageTime": 0.977,
8778
- "topDuration": 0.977,
8779
- "answerResponseSignal": 1,
8780
- "isCorrect": true,
8781
- "answerTime": "2024-03-13T04:29:19.141+00:00",
8782
- "article": 3,
8783
- "category": {
8784
- "parentCategoryId": null,
8785
- "name": "The first category a",
8786
- "path": "",
8787
- "numberOfQuestions": 0,
8788
- "numberOfChildren": 0,
8789
- "id": 4
8792
+ id: 8159,
8793
+ selectedAnswers: "3",
8794
+ correctAnswers: "3",
8795
+ isStar: true,
8796
+ duration: 0.977,
8797
+ classAverageTime: 0.977,
8798
+ topDuration: 0.977,
8799
+ answerResponseSignal: 1,
8800
+ isCorrect: true,
8801
+ answerTime: "2024-03-13T04:29:19.141+00:00",
8802
+ article: 3,
8803
+ category: {
8804
+ parentCategoryId: null,
8805
+ name: "The first category a",
8806
+ path: "",
8807
+ numberOfQuestions: 0,
8808
+ numberOfChildren: 0,
8809
+ id: 4
8790
8810
  },
8791
- "overallCorrectRate": 100,
8792
- "questionOrder": 15
8811
+ overallCorrectRate: 100,
8812
+ questionOrder: 15
8793
8813
  }],
8794
- "score": 10,
8795
- "placeOrder": 1,
8796
- "totalStudent": 1,
8797
- "totalTime": 30.987000000000002
8814
+ score: 10,
8815
+ placeOrder: 1,
8816
+ totalStudent: 1,
8817
+ totalTime: 30.987000000000002
8798
8818
  };
8799
8819
  var LONGTIME_SPEND_QUESTIONS = [{
8800
- "id": 8144,
8801
- "questionOrder": 0,
8802
- "duration": 320.939,
8803
- "topDuration": 145.32
8820
+ id: 8144,
8821
+ questionOrder: 0,
8822
+ duration: 320.939,
8823
+ topDuration: 145.32
8804
8824
  }, {
8805
- "id": 8153,
8806
- "questionOrder": 9,
8807
- "duration": 70.496,
8808
- "topDuration": 30.22
8825
+ id: 8153,
8826
+ questionOrder: 9,
8827
+ duration: 70.496,
8828
+ topDuration: 30.22
8809
8829
  }];
8810
8830
  var EFFECT_SIZE_QUESTIONS = [{
8811
- "id": 8144,
8812
- "questionOrder": 0,
8813
- "article": 1,
8814
- "isCorrect": false,
8815
- "selectedAnswers": "1",
8816
- "mostSelectedAnswers": "1",
8817
- "correctAnswers": "2",
8818
- "answerResponseSignal": 1,
8819
- "problemCategories": [3]
8831
+ id: 8144,
8832
+ questionOrder: 0,
8833
+ article: 1,
8834
+ isCorrect: false,
8835
+ selectedAnswers: "1",
8836
+ mostSelectedAnswers: "1",
8837
+ correctAnswers: "2",
8838
+ answerResponseSignal: 1,
8839
+ problemCategories: [3]
8820
8840
  }, {
8821
- "id": 8145,
8822
- "questionOrder": 1,
8823
- "article": 1,
8824
- "isCorrect": false,
8825
- "selectedAnswers": "2",
8826
- "mostSelectedAnswers": "2",
8827
- "correctAnswers": "3",
8828
- "answerResponseSignal": 1,
8829
- "problemCategories": [4]
8841
+ id: 8145,
8842
+ questionOrder: 1,
8843
+ article: 1,
8844
+ isCorrect: false,
8845
+ selectedAnswers: "2",
8846
+ mostSelectedAnswers: "2",
8847
+ correctAnswers: "3",
8848
+ answerResponseSignal: 1,
8849
+ problemCategories: [4]
8830
8850
  }, {
8831
- "id": 8146,
8832
- "questionOrder": 2,
8833
- "article": 1,
8834
- "isCorrect": false,
8835
- "selectedAnswers": "1",
8836
- "mostSelectedAnswers": "1",
8837
- "correctAnswers": "2",
8838
- "answerResponseSignal": 1,
8839
- "problemCategories": [3]
8851
+ id: 8146,
8852
+ questionOrder: 2,
8853
+ article: 1,
8854
+ isCorrect: false,
8855
+ selectedAnswers: "1",
8856
+ mostSelectedAnswers: "1",
8857
+ correctAnswers: "2",
8858
+ answerResponseSignal: 1,
8859
+ problemCategories: [3]
8840
8860
  }, {
8841
- "id": 8147,
8842
- "questionOrder": 3,
8843
- "article": 1,
8844
- "isCorrect": true,
8845
- "selectedAnswers": "1",
8846
- "mostSelectedAnswers": "1",
8847
- "correctAnswers": "1",
8848
- "answerResponseSignal": 1,
8849
- "problemCategories": [1]
8861
+ id: 8147,
8862
+ questionOrder: 3,
8863
+ article: 1,
8864
+ isCorrect: true,
8865
+ selectedAnswers: "1",
8866
+ mostSelectedAnswers: "1",
8867
+ correctAnswers: "1",
8868
+ answerResponseSignal: 1,
8869
+ problemCategories: [1]
8850
8870
  }, {
8851
- "id": 8148,
8852
- "questionOrder": 4,
8853
- "article": 1,
8854
- "isCorrect": false,
8855
- "selectedAnswers": "3",
8856
- "mostSelectedAnswers": "3",
8857
- "correctAnswers": "4",
8858
- "answerResponseSignal": 1,
8859
- "problemCategories": [4]
8871
+ id: 8148,
8872
+ questionOrder: 4,
8873
+ article: 1,
8874
+ isCorrect: false,
8875
+ selectedAnswers: "3",
8876
+ mostSelectedAnswers: "3",
8877
+ correctAnswers: "4",
8878
+ answerResponseSignal: 1,
8879
+ problemCategories: [4]
8860
8880
  }, {
8861
- "id": 8149,
8862
- "questionOrder": 5,
8863
- "article": 2,
8864
- "isCorrect": true,
8865
- "selectedAnswers": "2",
8866
- "mostSelectedAnswers": "2",
8867
- "correctAnswers": "2",
8868
- "answerResponseSignal": 1,
8869
- "problemCategories": [1]
8881
+ id: 8149,
8882
+ questionOrder: 5,
8883
+ article: 2,
8884
+ isCorrect: true,
8885
+ selectedAnswers: "2",
8886
+ mostSelectedAnswers: "2",
8887
+ correctAnswers: "2",
8888
+ answerResponseSignal: 1,
8889
+ problemCategories: [1]
8870
8890
  }, {
8871
- "id": 8150,
8872
- "questionOrder": 6,
8873
- "article": 2,
8874
- "isCorrect": false,
8875
- "selectedAnswers": "",
8876
- "mostSelectedAnswers": "",
8877
- "correctAnswers": "3",
8878
- "answerResponseSignal": null,
8879
- "problemCategories": []
8891
+ id: 8150,
8892
+ questionOrder: 6,
8893
+ article: 2,
8894
+ isCorrect: false,
8895
+ selectedAnswers: "",
8896
+ mostSelectedAnswers: "",
8897
+ correctAnswers: "3",
8898
+ answerResponseSignal: null,
8899
+ problemCategories: []
8880
8900
  }, {
8881
- "id": 8151,
8882
- "questionOrder": 7,
8883
- "article": 2,
8884
- "isCorrect": false,
8885
- "selectedAnswers": "3",
8886
- "mostSelectedAnswers": "3",
8887
- "correctAnswers": "2",
8888
- "answerResponseSignal": 1,
8889
- "problemCategories": [2, 3]
8901
+ id: 8151,
8902
+ questionOrder: 7,
8903
+ article: 2,
8904
+ isCorrect: false,
8905
+ selectedAnswers: "3",
8906
+ mostSelectedAnswers: "3",
8907
+ correctAnswers: "2",
8908
+ answerResponseSignal: 1,
8909
+ problemCategories: [2, 3]
8890
8910
  }, {
8891
- "id": 8152,
8892
- "questionOrder": 8,
8893
- "article": 2,
8894
- "isCorrect": false,
8895
- "selectedAnswers": "5",
8896
- "mostSelectedAnswers": "5",
8897
- "correctAnswers": "4",
8898
- "answerResponseSignal": 1,
8899
- "problemCategories": [4]
8911
+ id: 8152,
8912
+ questionOrder: 8,
8913
+ article: 2,
8914
+ isCorrect: false,
8915
+ selectedAnswers: "5",
8916
+ mostSelectedAnswers: "5",
8917
+ correctAnswers: "4",
8918
+ answerResponseSignal: 1,
8919
+ problemCategories: [4]
8900
8920
  }, {
8901
- "id": 8153,
8902
- "questionOrder": 9,
8903
- "article": 2,
8904
- "isCorrect": true,
8905
- "selectedAnswers": "2",
8906
- "mostSelectedAnswers": "2",
8907
- "correctAnswers": "2",
8908
- "answerResponseSignal": 1,
8909
- "problemCategories": [1]
8921
+ id: 8153,
8922
+ questionOrder: 9,
8923
+ article: 2,
8924
+ isCorrect: true,
8925
+ selectedAnswers: "2",
8926
+ mostSelectedAnswers: "2",
8927
+ correctAnswers: "2",
8928
+ answerResponseSignal: 1,
8929
+ problemCategories: [1]
8910
8930
  }, {
8911
- "id": 8154,
8912
- "questionOrder": 10,
8913
- "article": 2,
8914
- "isCorrect": false,
8915
- "selectedAnswers": "",
8916
- "mostSelectedAnswers": "",
8917
- "correctAnswers": "5",
8918
- "answerResponseSignal": null,
8919
- "problemCategories": []
8931
+ id: 8154,
8932
+ questionOrder: 10,
8933
+ article: 2,
8934
+ isCorrect: false,
8935
+ selectedAnswers: "",
8936
+ mostSelectedAnswers: "",
8937
+ correctAnswers: "5",
8938
+ answerResponseSignal: null,
8939
+ problemCategories: []
8920
8940
  }, {
8921
- "id": 8155,
8922
- "questionOrder": 11,
8923
- "article": 3,
8924
- "isCorrect": true,
8925
- "selectedAnswers": "2",
8926
- "mostSelectedAnswers": "2",
8927
- "correctAnswers": "2",
8928
- "answerResponseSignal": 1,
8929
- "problemCategories": [1]
8941
+ id: 8155,
8942
+ questionOrder: 11,
8943
+ article: 3,
8944
+ isCorrect: true,
8945
+ selectedAnswers: "2",
8946
+ mostSelectedAnswers: "2",
8947
+ correctAnswers: "2",
8948
+ answerResponseSignal: 1,
8949
+ problemCategories: [1]
8930
8950
  }, {
8931
- "id": 8156,
8932
- "questionOrder": 12,
8933
- "article": 3,
8934
- "isCorrect": false,
8935
- "selectedAnswers": "2",
8936
- "mostSelectedAnswers": "2",
8937
- "correctAnswers": "4",
8938
- "answerResponseSignal": 1,
8939
- "problemCategories": [4]
8951
+ id: 8156,
8952
+ questionOrder: 12,
8953
+ article: 3,
8954
+ isCorrect: false,
8955
+ selectedAnswers: "2",
8956
+ mostSelectedAnswers: "2",
8957
+ correctAnswers: "4",
8958
+ answerResponseSignal: 1,
8959
+ problemCategories: [4]
8940
8960
  }, {
8941
- "id": 8157,
8942
- "questionOrder": 13,
8943
- "article": 3,
8944
- "isCorrect": false,
8945
- "selectedAnswers": "2",
8946
- "mostSelectedAnswers": "2",
8947
- "correctAnswers": "5",
8948
- "answerResponseSignal": 1,
8949
- "problemCategories": [4]
8961
+ id: 8157,
8962
+ questionOrder: 13,
8963
+ article: 3,
8964
+ isCorrect: false,
8965
+ selectedAnswers: "2",
8966
+ mostSelectedAnswers: "2",
8967
+ correctAnswers: "5",
8968
+ answerResponseSignal: 1,
8969
+ problemCategories: [4]
8950
8970
  }, {
8951
- "id": 8158,
8952
- "questionOrder": 14,
8953
- "article": 3,
8954
- "isCorrect": false,
8955
- "selectedAnswers": "4",
8956
- "mostSelectedAnswers": "4",
8957
- "correctAnswers": "3",
8958
- "answerResponseSignal": 1,
8959
- "problemCategories": [4]
8971
+ id: 8158,
8972
+ questionOrder: 14,
8973
+ article: 3,
8974
+ isCorrect: false,
8975
+ selectedAnswers: "4",
8976
+ mostSelectedAnswers: "4",
8977
+ correctAnswers: "3",
8978
+ answerResponseSignal: 1,
8979
+ problemCategories: [4]
8960
8980
  }, {
8961
- "id": 8159,
8962
- "questionOrder": 15,
8963
- "article": 3,
8964
- "isCorrect": true,
8965
- "selectedAnswers": "3",
8966
- "mostSelectedAnswers": "3",
8967
- "correctAnswers": "3",
8968
- "answerResponseSignal": 1,
8969
- "problemCategories": [1]
8981
+ id: 8159,
8982
+ questionOrder: 15,
8983
+ article: 3,
8984
+ isCorrect: true,
8985
+ selectedAnswers: "3",
8986
+ mostSelectedAnswers: "3",
8987
+ correctAnswers: "3",
8988
+ answerResponseSignal: 1,
8989
+ problemCategories: [1]
8970
8990
  }];
8971
8991
  var TIMELY_ORDER_QUESTIONS = [{
8972
- "categoryId": 7,
8973
- "categoryName": "New category",
8974
- "article": 1,
8975
- "questions": [{
8976
- "questionId": 8144,
8977
- "questionOrder": 0,
8978
- "answerOrder": 1,
8979
- "topAnswerOrder": 2
8992
+ categoryId: 7,
8993
+ categoryName: "New category",
8994
+ article: 1,
8995
+ questions: [{
8996
+ questionId: 8144,
8997
+ questionOrder: 0,
8998
+ answerOrder: 1,
8999
+ topAnswerOrder: 2
8980
9000
  }, {
8981
- "questionId": 8145,
8982
- "questionOrder": 1,
8983
- "answerOrder": 2,
8984
- "topAnswerOrder": 1
9001
+ questionId: 8145,
9002
+ questionOrder: 1,
9003
+ answerOrder: 2,
9004
+ topAnswerOrder: 1
8985
9005
  }, {
8986
- "questionId": 8146,
8987
- "questionOrder": 2,
8988
- "answerOrder": 3,
8989
- "topAnswerOrder": 4
9006
+ questionId: 8146,
9007
+ questionOrder: 2,
9008
+ answerOrder: 3,
9009
+ topAnswerOrder: 4
8990
9010
  }, {
8991
- "questionId": 8147,
8992
- "questionOrder": 3,
8993
- "answerOrder": 4,
8994
- "topAnswerOrder": 5
9011
+ questionId: 8147,
9012
+ questionOrder: 3,
9013
+ answerOrder: 4,
9014
+ topAnswerOrder: 5
8995
9015
  }, {
8996
- "questionId": 8148,
8997
- "questionOrder": 4,
8998
- "answerOrder": 5,
8999
- "topAnswerOrder": 3
9016
+ questionId: 8148,
9017
+ questionOrder: 4,
9018
+ answerOrder: 5,
9019
+ topAnswerOrder: 3
9000
9020
  }]
9001
9021
  }, {
9002
- "categoryId": 1008,
9003
- "categoryName": "123458868",
9004
- "article": 2,
9005
- "questions": [{
9006
- "questionId": 8149,
9007
- "questionOrder": 5,
9008
- "answerOrder": 1,
9009
- "topAnswerOrder": 5
9022
+ categoryId: 1008,
9023
+ categoryName: "123458868",
9024
+ article: 2,
9025
+ questions: [{
9026
+ questionId: 8149,
9027
+ questionOrder: 5,
9028
+ answerOrder: 1,
9029
+ topAnswerOrder: 5
9010
9030
  }, {
9011
- "questionId": 8150,
9012
- "questionOrder": 6,
9013
- "answerOrder": null,
9014
- "topAnswerOrder": 2
9031
+ questionId: 8150,
9032
+ questionOrder: 6,
9033
+ answerOrder: null,
9034
+ topAnswerOrder: 2
9015
9035
  }, {
9016
- "questionId": 8151,
9017
- "questionOrder": 7,
9018
- "answerOrder": 2,
9019
- "topAnswerOrder": 3
9036
+ questionId: 8151,
9037
+ questionOrder: 7,
9038
+ answerOrder: 2,
9039
+ topAnswerOrder: 3
9020
9040
  }, {
9021
- "questionId": 8152,
9022
- "questionOrder": 8,
9023
- "answerOrder": 3,
9024
- "topAnswerOrder": 4
9041
+ questionId: 8152,
9042
+ questionOrder: 8,
9043
+ answerOrder: 3,
9044
+ topAnswerOrder: 4
9025
9045
  }, {
9026
- "questionId": 8153,
9027
- "questionOrder": 9,
9028
- "answerOrder": 4,
9029
- "topAnswerOrder": 1
9046
+ questionId: 8153,
9047
+ questionOrder: 9,
9048
+ answerOrder: 4,
9049
+ topAnswerOrder: 1
9030
9050
  }, {
9031
- "questionId": 8154,
9032
- "questionOrder": 10,
9033
- "answerOrder": null,
9034
- "topAnswerOrder": 6
9051
+ questionId: 8154,
9052
+ questionOrder: 10,
9053
+ answerOrder: null,
9054
+ topAnswerOrder: 6
9035
9055
  }]
9036
9056
  }, {
9037
- "categoryId": 4,
9038
- "categoryName": "The first category a",
9039
- "article": 3,
9040
- "questions": [{
9041
- "questionId": 8155,
9042
- "questionOrder": 11,
9043
- "answerOrder": 1,
9044
- "topAnswerOrder": 3
9057
+ categoryId: 4,
9058
+ categoryName: "The first category a",
9059
+ article: 3,
9060
+ questions: [{
9061
+ questionId: 8155,
9062
+ questionOrder: 11,
9063
+ answerOrder: 1,
9064
+ topAnswerOrder: 3
9045
9065
  }, {
9046
- "questionId": 8156,
9047
- "questionOrder": 12,
9048
- "answerOrder": 5,
9049
- "topAnswerOrder": 2
9066
+ questionId: 8156,
9067
+ questionOrder: 12,
9068
+ answerOrder: 5,
9069
+ topAnswerOrder: 2
9050
9070
  }, {
9051
- "questionId": 8157,
9052
- "questionOrder": 13,
9053
- "answerOrder": 3,
9054
- "topAnswerOrder": 1
9071
+ questionId: 8157,
9072
+ questionOrder: 13,
9073
+ answerOrder: 3,
9074
+ topAnswerOrder: 1
9055
9075
  }, {
9056
- "questionId": 8158,
9057
- "questionOrder": 14,
9058
- "answerOrder": 2,
9059
- "topAnswerOrder": 4
9076
+ questionId: 8158,
9077
+ questionOrder: 14,
9078
+ answerOrder: 2,
9079
+ topAnswerOrder: 4
9060
9080
  }, {
9061
- "questionId": 8159,
9062
- "questionOrder": 15,
9063
- "answerOrder": 4,
9064
- "topAnswerOrder": 5
9081
+ questionId: 8159,
9082
+ questionOrder: 15,
9083
+ answerOrder: 4,
9084
+ topAnswerOrder: 5
9065
9085
  }]
9066
9086
  }];
9067
9087
  var CATEGORY_RESPONSES = [{
9068
- "id": 7,
9069
- "name": "New category",
9070
- "totalQuestions": 5,
9071
- "totalCorrectQuestions": 1,
9072
- "totalAnsweredQuestions": 5,
9073
- "percentageAmongStudents": 17
9088
+ id: 7,
9089
+ name: "New category",
9090
+ totalQuestions: 5,
9091
+ totalCorrectQuestions: 1,
9092
+ totalAnsweredQuestions: 5,
9093
+ percentageAmongStudents: 17
9074
9094
  }, {
9075
- "id": 1008,
9076
- "name": "123458868",
9077
- "totalQuestions": 6,
9078
- "totalCorrectQuestions": 2,
9079
- "totalAnsweredQuestions": 4,
9080
- "percentageAmongStudents": 48
9095
+ id: 1008,
9096
+ name: "123458868",
9097
+ totalQuestions: 6,
9098
+ totalCorrectQuestions: 2,
9099
+ totalAnsweredQuestions: 4,
9100
+ percentageAmongStudents: 48
9081
9101
  }, {
9082
- "id": 4,
9083
- "name": "The first category a",
9084
- "totalQuestions": 5,
9085
- "totalCorrectQuestions": 2,
9086
- "totalAnsweredQuestions": 5,
9087
- "percentageAmongStudents": 40
9102
+ id: 4,
9103
+ name: "The first category a",
9104
+ totalQuestions: 5,
9105
+ totalCorrectQuestions: 2,
9106
+ totalAnsweredQuestions: 5,
9107
+ percentageAmongStudents: 40
9088
9108
  }];
9109
+ var DEFAULT_LINE_CHART_OPTIONS = {
9110
+ chart: {
9111
+ type: "line",
9112
+ toolbar: {
9113
+ show: false
9114
+ },
9115
+ zoom: {
9116
+ enabled: false
9117
+ }
9118
+ },
9119
+ tooltip: {
9120
+ enabled: true,
9121
+ hideEmptySeries: true
9122
+ },
9123
+ legend: {
9124
+ show: true,
9125
+ fontSize: "12px",
9126
+ fontWeight: 600,
9127
+ markers: {
9128
+ width: 16,
9129
+ height: 1
9130
+ },
9131
+ labels: {
9132
+ colors: "#414E62"
9133
+ },
9134
+ itemMargin: {
9135
+ vertical: 16
9136
+ }
9137
+ },
9138
+ dataLabels: {
9139
+ enabled: false
9140
+ },
9141
+ xaxis: {
9142
+ categories: [],
9143
+ axisBorder: {
9144
+ show: true,
9145
+ color: "#E4E7EC"
9146
+ },
9147
+ labels: {
9148
+ style: {
9149
+ fontSize: "10px"
9150
+ }
9151
+ }
9152
+ },
9153
+ grid: {
9154
+ row: {
9155
+ colors: ["#FFFFFF"]
9156
+ },
9157
+ borderColor: "#E4E7EC",
9158
+ xaxis: {
9159
+ lines: {
9160
+ show: true
9161
+ }
9162
+ }
9163
+ },
9164
+ yaxis: {
9165
+ stepSize: 1,
9166
+ min: 0,
9167
+ axisBorder: {
9168
+ show: true,
9169
+ color: "#E4E7EC"
9170
+ },
9171
+ labels: {
9172
+ style: {
9173
+ fontSize: "10px"
9174
+ }
9175
+ }
9176
+ }
9177
+ };
9178
+ var defaultSeries = function defaultSeries(t) {
9179
+ return [{
9180
+ name: t("my_problem_solving_order"),
9181
+ data: []
9182
+ }, {
9183
+ name: t("top_rankings_problem_solving_order"),
9184
+ data: []
9185
+ }];
9186
+ };
9089
9187
 
9090
- var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code) {
9188
+ var useExamResult = function useExamResult(searchParam, navigate, examSessionId, studentId, code, handleChangeTab) {
9189
+ var _allChartOptions$data, _allSeries$dataChartI;
9091
9190
  if (examSessionId === void 0) {
9092
9191
  examSessionId = 0;
9093
9192
  }
@@ -9103,7 +9202,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
9103
9202
  var _state$common, _state$common$user;
9104
9203
  return (state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : (_state$common$user = _state$common.user) === null || _state$common$user === void 0 ? void 0 : _state$common$user.roles) || [];
9105
9204
  });
9106
- var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Roles$2.Student);
9205
+ var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Role.Student);
9107
9206
  var examCode = query.get("examCode") || "";
9108
9207
  var language = useSelector(function (state) {
9109
9208
  var _state$common2;
@@ -9119,8 +9218,8 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
9119
9218
  longTimeSpend = _useState3[0],
9120
9219
  setLongTimeSpend = _useState3[1];
9121
9220
  var _useState4 = useState([]),
9122
- timelyOrderQuestion = _useState4[0],
9123
- setTimelyOrderQuestion = _useState4[1];
9221
+ timelyOrderQuestions = _useState4[0],
9222
+ setTimelyOrderQuestions = _useState4[1];
9124
9223
  var _useState5 = useState([]),
9125
9224
  categoryResponses = _useState5[0],
9126
9225
  setCategoryResponses = _useState5[1];
@@ -9146,10 +9245,11 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
9146
9245
  var _temp = _catch(function () {
9147
9246
  return Promise.resolve(Promise.all([getResults(examCode), getResultsLongTimeSpend(examCode), getResultsEffectSize(examCode), getResultsTimeOrderQuestion(examCode), getResultsCategories(examCode)])).then(function (result) {
9148
9247
  var _result$0$data, _result$1$data, _result$2$data, _result$3$data, _result$4$data;
9248
+ handleChangeTab(0);
9149
9249
  setResultDatas((_result$0$data = result[0].data) === null || _result$0$data === void 0 ? void 0 : _result$0$data.data);
9150
9250
  setLongTimeSpend((_result$1$data = result[1].data) === null || _result$1$data === void 0 ? void 0 : _result$1$data.data);
9151
9251
  setEffectSize((_result$2$data = result[2].data) === null || _result$2$data === void 0 ? void 0 : _result$2$data.data);
9152
- setTimelyOrderQuestion((_result$3$data = result[3].data) === null || _result$3$data === void 0 ? void 0 : _result$3$data.data);
9252
+ setTimelyOrderQuestions((_result$3$data = result[3].data) === null || _result$3$data === void 0 ? void 0 : _result$3$data.data);
9153
9253
  setCategoryResponses(((_result$4$data = result[4].data) === null || _result$4$data === void 0 ? void 0 : _result$4$data.data) || []);
9154
9254
  });
9155
9255
  }, function (error) {
@@ -9180,10 +9280,11 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
9180
9280
  var _temp5 = _catch(function () {
9181
9281
  return Promise.resolve(Promise.all([getResultsTeacher(examSessionId, studentId), getResultsLongTimeSpendTeacher(examSessionId, studentId), getResultsEffectSizeTeacher(examSessionId, studentId), getResultsTimeOrderQuestionTeacher(examSessionId, studentId), getResultsCategoriesTeacher(examSessionId, studentId)])).then(function (result) {
9182
9282
  var _result$0$data2, _result$1$data2, _result$2$data2, _result$3$data2, _result$4$data2;
9283
+ handleChangeTab(0);
9183
9284
  setResultDatas((_result$0$data2 = result[0].data) === null || _result$0$data2 === void 0 ? void 0 : _result$0$data2.data);
9184
9285
  setLongTimeSpend((_result$1$data2 = result[1].data) === null || _result$1$data2 === void 0 ? void 0 : _result$1$data2.data);
9185
9286
  setEffectSize((_result$2$data2 = result[2].data) === null || _result$2$data2 === void 0 ? void 0 : _result$2$data2.data);
9186
- setTimelyOrderQuestion((_result$3$data2 = result[3].data) === null || _result$3$data2 === void 0 ? void 0 : _result$3$data2.data);
9287
+ setTimelyOrderQuestions((_result$3$data2 = result[3].data) === null || _result$3$data2 === void 0 ? void 0 : _result$3$data2.data);
9187
9288
  setCategoryResponses(((_result$4$data2 = result[4].data) === null || _result$4$data2 === void 0 ? void 0 : _result$4$data2.data) || []);
9188
9289
  });
9189
9290
  }, function (error) {
@@ -9209,7 +9310,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
9209
9310
  setResultDatas(EXAM_RESULT);
9210
9311
  setLongTimeSpend(LONGTIME_SPEND_QUESTIONS);
9211
9312
  setEffectSize(EFFECT_SIZE_QUESTIONS);
9212
- setTimelyOrderQuestion(TIMELY_ORDER_QUESTIONS);
9313
+ setTimelyOrderQuestions(TIMELY_ORDER_QUESTIONS);
9213
9314
  setCategoryResponses(CATEGORY_RESPONSES);
9214
9315
  };
9215
9316
  useEffect(function () {
@@ -9225,7 +9326,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
9225
9326
  }
9226
9327
  };
9227
9328
  var handleNextChart = function handleNextChart() {
9228
- if (dataChartIndex < timelyOrderQuestion.length - 1) {
9329
+ if (dataChartIndex < timelyOrderQuestions.length - 1) {
9229
9330
  setDataChartIndex(dataChartIndex + 1);
9230
9331
  }
9231
9332
  };
@@ -9243,216 +9344,282 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
9243
9344
  seconds: totalTime % 60
9244
9345
  });
9245
9346
  }, [JSON.stringify(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.questions), language]);
9246
- var chartOptions = useMemo(function () {
9247
- return {
9248
- chart: {
9249
- type: "line",
9250
- toolbar: {
9251
- show: false
9252
- },
9253
- zoom: {
9254
- enabled: false
9255
- }
9256
- },
9257
- tooltip: {
9258
- enabled: true,
9259
- hideEmptySeries: true,
9260
- y: {
9261
- formatter: function formatter(val, _ref) {
9262
- var dataPointIndex = _ref.dataPointIndex;
9263
- if (dataPointIndex > 0) {
9264
- var _timelyOrderQuestion$, _questions$length, _questions;
9265
- var questions = ((_timelyOrderQuestion$ = timelyOrderQuestion[dataChartIndex]) === null || _timelyOrderQuestion$ === void 0 ? void 0 : _timelyOrderQuestion$.questions) || null;
9266
- var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
9347
+ var allChartOptions = useMemo(function () {
9348
+ return timelyOrderQuestions.map(function (timelyOrderQuestion) {
9349
+ return _extends({}, DEFAULT_LINE_CHART_OPTIONS, {
9350
+ tooltip: _extends({}, DEFAULT_LINE_CHART_OPTIONS.tooltip, {
9351
+ y: {
9352
+ formatter: function formatter(val, _ref) {
9353
+ var dataPointIndex = _ref.dataPointIndex;
9354
+ if (dataPointIndex > 0) {
9355
+ var _questions$length, _questions;
9356
+ var questions = timelyOrderQuestion.questions || null;
9357
+ var questionLength = (_questions$length = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length : 0;
9358
+ return val != null ? t("problem_number_question", {
9359
+ number: questions !== null ? (((_questions = questions[questionLength - val]) === null || _questions === void 0 ? void 0 : _questions.questionOrder) || 0) + 1 : val
9360
+ }) : t("no_data");
9361
+ }
9362
+ return null;
9363
+ }
9364
+ }
9365
+ }),
9366
+ xaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.xaxis, {
9367
+ categories: ["."].concat(Array.from({
9368
+ length: timelyOrderQuestion ? timelyOrderQuestion.questions.length : 1
9369
+ }, function (_, i) {
9370
+ return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
9371
+ }), ["."])
9372
+ }),
9373
+ yaxis: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis, {
9374
+ tickAmount: timelyOrderQuestion.questions.length + 1,
9375
+ max: timelyOrderQuestion.questions.length + 1,
9376
+ labels: _extends({}, DEFAULT_LINE_CHART_OPTIONS.yaxis.labels, {
9377
+ formatter: function formatter(val) {
9378
+ var _questions$length2, _questions2;
9379
+ var questions = timelyOrderQuestion.questions || null;
9380
+ var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
9267
9381
  return val != null ? t("problem_number_question", {
9268
- number: questions !== null ? (((_questions = questions[questionLength - val]) === null || _questions === void 0 ? void 0 : _questions.questionOrder) || 0) + 1 : val
9382
+ number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
9269
9383
  }) : t("no_data");
9270
9384
  }
9271
- return null;
9272
- }
9273
- }
9274
- },
9275
- legend: {
9276
- show: true,
9277
- fontSize: "12px",
9278
- fontWeight: 600,
9279
- markers: {
9280
- width: 16,
9281
- height: 1
9282
- },
9283
- labels: {
9284
- colors: "#414E62"
9285
- },
9286
- itemMargin: {
9287
- vertical: 16
9288
- }
9289
- },
9290
- dataLabels: {
9291
- enabled: false
9292
- },
9293
- xaxis: {
9294
- categories: ["."].concat(Array.from({
9295
- length: timelyOrderQuestion[dataChartIndex] ? timelyOrderQuestion[dataChartIndex].questions.length : 1
9296
- }, function (_, i) {
9297
- return ORDER_NUMBERS[i + 1] ? t(ORDER_NUMBERS[i + 1]) : toNumberOrder(i + 1);
9298
- }), ["."]),
9299
- axisBorder: {
9300
- show: true,
9301
- color: "#E4E7EC"
9302
- },
9303
- labels: {
9304
- style: {
9305
- fontSize: "10px"
9306
- }
9307
- }
9308
- },
9309
- grid: {
9310
- row: {
9311
- colors: ["#FFFFFF"]
9312
- },
9313
- borderColor: "#E4E7EC",
9314
- xaxis: {
9315
- lines: {
9316
- show: true
9317
- }
9318
- }
9319
- },
9320
- yaxis: {
9321
- tickAmount: timelyOrderQuestion[dataChartIndex] ? timelyOrderQuestion[dataChartIndex].questions.length + 1 : 1,
9322
- stepSize: 1,
9323
- min: 0,
9324
- max: timelyOrderQuestion[dataChartIndex] ? timelyOrderQuestion[dataChartIndex].questions.length + 1 : 1,
9325
- axisBorder: {
9326
- show: true,
9327
- color: "#E4E7EC"
9328
- },
9329
- labels: {
9330
- formatter: function formatter(val) {
9331
- var _timelyOrderQuestion$2, _questions$length2, _questions2;
9332
- var questions = ((_timelyOrderQuestion$2 = timelyOrderQuestion[dataChartIndex]) === null || _timelyOrderQuestion$2 === void 0 ? void 0 : _timelyOrderQuestion$2.questions) || null;
9333
- var questionLength = (_questions$length2 = questions === null || questions === void 0 ? void 0 : questions.length) != null ? _questions$length2 : 0;
9334
- return val != null ? t("problem_number_question", {
9335
- number: questions !== null ? (((_questions2 = questions[questionLength - val]) === null || _questions2 === void 0 ? void 0 : _questions2.questionOrder) || 0) + 1 : val
9336
- }) : t("no_data");
9337
- },
9338
- style: {
9339
- fontSize: "10px"
9340
- }
9341
- }
9342
- }
9343
- };
9344
- }, [JSON.stringify(timelyOrderQuestion), dataChartIndex, language]);
9345
- var series = useMemo(function () {
9346
- if (!timelyOrderQuestion.length || timelyOrderQuestion.length < dataChartIndex + 1 || dataChartIndex < 0) return [{
9347
- name: t("my_problem_solving_order"),
9348
- data: []
9349
- }, {
9350
- name: t("top_rankings_problem_solving_order"),
9351
- data: []
9352
- }];
9353
- var data = timelyOrderQuestion[dataChartIndex];
9354
- var questionsData = data.questions.sort(function (a, b) {
9355
- return a.questionOrder > b.questionOrder ? 1 : b.questionOrder > a.questionOrder ? -1 : 0;
9356
- }).map(function (i, index) {
9357
- return _extends({}, i, {
9358
- questionOrder: index,
9359
- answerOrder: i.answerOrder == null ? 0 : i.answerOrder,
9360
- topAnswerOrder: i.topAnswerOrder == null ? 0 : i.topAnswerOrder
9385
+ })
9386
+ })
9361
9387
  });
9362
9388
  });
9363
- var mySeriesData = [null].concat(_.sortBy(questionsData.filter(function (i) {
9364
- return i.answerOrder !== 0;
9365
- }), ["answerOrder", "questionOrder"]).map(function (item) {
9366
- return data.questions.length - item.questionOrder;
9367
- }), questionsData.filter(function (i) {
9368
- return i.answerOrder === 0;
9369
- }).map(function () {
9370
- return null;
9371
- }), [null]);
9372
- var topSeriesData = [null].concat(_.sortBy(questionsData.filter(function (i) {
9373
- return i.topAnswerOrder !== 0;
9374
- }), ["topAnswerOrder", "questionOrder"]).map(function (item) {
9375
- return data.questions.length - item.questionOrder;
9376
- }), questionsData.filter(function (i) {
9377
- return i.topAnswerOrder === 0;
9378
- }).map(function () {
9379
- return null;
9380
- }), [null]);
9381
- return [{
9382
- name: t("my_problem_solving_order"),
9383
- data: mySeriesData
9384
- }, {
9385
- name: t("top_rankings_problem_solving_order"),
9386
- data: topSeriesData
9387
- }];
9388
- }, [JSON.stringify(timelyOrderQuestion), dataChartIndex, language]);
9389
+ }, [JSON.stringify(timelyOrderQuestions), language]);
9390
+ var allSeries = useMemo(function () {
9391
+ return timelyOrderQuestions.map(function (timelyOrderQuestion) {
9392
+ var questionsData = timelyOrderQuestion.questions.sort(function (a, b) {
9393
+ return a.questionOrder > b.questionOrder ? 1 : b.questionOrder > a.questionOrder ? -1 : 0;
9394
+ }).map(function (i, index) {
9395
+ return _extends({}, i, {
9396
+ questionOrder: index,
9397
+ answerOrder: i.answerOrder == null ? 0 : i.answerOrder,
9398
+ topAnswerOrder: i.topAnswerOrder == null ? 0 : i.topAnswerOrder
9399
+ });
9400
+ });
9401
+ var mySeriesData = [null].concat(_.sortBy(questionsData.filter(function (i) {
9402
+ return i.answerOrder !== 0;
9403
+ }), ["answerOrder", "questionOrder"]).map(function (item) {
9404
+ return timelyOrderQuestion.questions.length - item.questionOrder;
9405
+ }), questionsData.filter(function (i) {
9406
+ return i.answerOrder === 0;
9407
+ }).map(function () {
9408
+ return null;
9409
+ }), [null]);
9410
+ var topSeriesData = [null].concat(_.sortBy(questionsData.filter(function (i) {
9411
+ return i.topAnswerOrder !== 0;
9412
+ }), ["topAnswerOrder", "questionOrder"]).map(function (item) {
9413
+ return timelyOrderQuestion.questions.length - item.questionOrder;
9414
+ }), questionsData.filter(function (i) {
9415
+ return i.topAnswerOrder === 0;
9416
+ }).map(function () {
9417
+ return null;
9418
+ }), [null]);
9419
+ return [{
9420
+ name: t("my_problem_solving_order"),
9421
+ data: mySeriesData
9422
+ }, {
9423
+ name: t("top_rankings_problem_solving_order"),
9424
+ data: topSeriesData
9425
+ }];
9426
+ });
9427
+ }, [JSON.stringify(timelyOrderQuestions), language]);
9428
+ var chartOptions = (_allChartOptions$data = allChartOptions[dataChartIndex]) != null ? _allChartOptions$data : DEFAULT_LINE_CHART_OPTIONS;
9429
+ var series = (_allSeries$dataChartI = allSeries[dataChartIndex]) != null ? _allSeries$dataChartI : defaultSeries(t);
9389
9430
  var handleExportPdf = function handleExportPdf() {
9390
9431
  try {
9391
- var canvas = document.querySelector("#canvas");
9392
- var headerCanvas = document.querySelector("#header-canvas");
9393
- if (!canvas || !headerCanvas) return Promise.resolve();
9394
- var doc = new jsPDF({
9395
- orientation: "p",
9396
- unit: "px",
9397
- format: "a4"
9398
- });
9399
- var WIDTH_PAPER = doc.internal.pageSize.width;
9400
- var HEIGHT_PAPER = doc.internal.pageSize.height;
9401
- var line = 0;
9402
- var imgWidth = WIDTH_PAPER;
9403
- var chartWidth = WIDTH_PAPER - 20;
9404
- return Promise.resolve(html2canvas(headerCanvas)).then(function (header) {
9405
- function _temp11() {
9406
- doc.save("download.pdf");
9432
+ var _temp24 = function _temp24(_result) {
9433
+ if (_exit) return _result;
9434
+ dispatch(setLoading(false));
9435
+ };
9436
+ var _exit = false;
9437
+ dispatch(setLoading(true));
9438
+ var _temp23 = _catch(function () {
9439
+ var canvas = document.querySelector("#canvas");
9440
+ var headerCanvas = document.querySelector("#header-canvas");
9441
+ if (!canvas || !headerCanvas) {
9442
+ _exit = true;
9443
+ return;
9407
9444
  }
9408
- var imgHeaderHeight = header.height * imgWidth / header.width;
9409
- var imgHeaderData = header.toDataURL('image/png');
9410
- doc.addImage(imgHeaderData, 'PNG', 0, 0, imgWidth, imgHeaderHeight);
9411
- line += imgHeaderHeight;
9412
- if (line > HEIGHT_PAPER) {
9445
+ var doc = new jsPDF({
9446
+ orientation: "p",
9447
+ unit: "px",
9448
+ format: "a4"
9449
+ });
9450
+ var WIDTH_PAPER = doc.internal.pageSize.width;
9451
+ var HEIGHT_PAPER = doc.internal.pageSize.height;
9452
+ var line = 0;
9453
+ var breakPage = function breakPage() {
9413
9454
  doc.addPage();
9414
9455
  line = 20;
9415
- }
9416
- var _temp10 = function () {
9417
- if (canvas && canvas.childElementCount > 0) {
9418
- var _index = 0;
9419
- var _temp9 = _for(function () {
9420
- return _index < canvas.childElementCount;
9421
- }, function () {
9422
- return _index++;
9423
- }, function () {
9424
- var chart = canvas.children.item(_index);
9425
- return Promise.resolve(html2canvas(chart)).then(function (chartCanvas) {
9426
- var imgBodyHeight = chartCanvas.height * chartWidth / chartCanvas.width;
9427
- var imgBodyData = chartCanvas.toDataURL('image/png');
9428
- line += 10;
9429
- if (line + imgBodyHeight > HEIGHT_PAPER) {
9430
- doc.addPage();
9431
- line = 20;
9456
+ };
9457
+ var imgWidth = WIDTH_PAPER;
9458
+ var chartWidth = WIDTH_PAPER - 20;
9459
+ return Promise.resolve(html2canvas(headerCanvas)).then(function (header) {
9460
+ function _temp22() {
9461
+ doc.save("download.pdf");
9462
+ }
9463
+ var imgHeaderHeight = header.height * imgWidth / header.width;
9464
+ var imgHeaderData = header.toDataURL('image/png');
9465
+ doc.addImage(imgHeaderData, 'PNG', 0, 0, imgWidth, imgHeaderHeight);
9466
+ line += imgHeaderHeight;
9467
+ if (line > HEIGHT_PAPER) breakPage();
9468
+ var _temp21 = function () {
9469
+ if (canvas && canvas.childElementCount > 0) {
9470
+ var _index = 0;
9471
+ var _temp20 = _for(function () {
9472
+ return _index < canvas.childElementCount;
9473
+ }, function () {
9474
+ return _index++;
9475
+ }, function () {
9476
+ function _temp19() {
9477
+ function _temp17() {
9478
+ line += 20;
9479
+ }
9480
+ var printChartTitle = function printChartTitle() {
9481
+ try {
9482
+ if (chartTitleData && chartTitleHeight) {
9483
+ if (line + chartTitleHeight + 10 > HEIGHT_PAPER) breakPage();else line + 10;
9484
+ doc.addImage(chartTitleData, 'PNG', 10, line, chartWidth, chartTitleHeight);
9485
+ line += chartTitleHeight;
9486
+ }
9487
+ return Promise.resolve();
9488
+ } catch (e) {
9489
+ return Promise.reject(e);
9490
+ }
9491
+ };
9492
+ var _temp16 = function () {
9493
+ if (printContainerEls.length) {
9494
+ var _temp15 = _forTo(printContainerEls, function (i) {
9495
+ function _temp14() {
9496
+ var printHeader = function printHeader(top) {
9497
+ if (top === void 0) {
9498
+ top = 0;
9499
+ }
9500
+ try {
9501
+ if (!printHeaderData || !printHeaderHeight) return Promise.resolve();
9502
+ line += top;
9503
+ if (line + printHeaderHeight > HEIGHT_PAPER) breakPage();
9504
+ doc.addImage(printHeaderData, 'PNG', 10, line, chartWidth, printHeaderHeight);
9505
+ line += printHeaderHeight;
9506
+ return Promise.resolve();
9507
+ } catch (e) {
9508
+ return Promise.reject(e);
9509
+ }
9510
+ };
9511
+ var printContents = printContainerEl.querySelectorAll("." + PrintContentClassName);
9512
+ if (!printContents.length) return;
9513
+ var _temp12 = _forTo(printContents, function (j) {
9514
+ var rowItem = printContents[j];
9515
+ return Promise.resolve(html2canvas(rowItem)).then(function (rowItemCanvas) {
9516
+ function _temp11() {
9517
+ doc.addImage(data, 'PNG', 10, line, chartWidth, height);
9518
+ line += height;
9519
+ }
9520
+ var height = rowItemCanvas.height * chartWidth / rowItemCanvas.width;
9521
+ var data = rowItemCanvas.toDataURL('image/png');
9522
+ if (i === 0 && j === 0 && line + height + (printHeaderHeight || 0) + ((chartTitleHeight || 0) + 10) + 20 > HEIGHT_PAPER) breakPage();
9523
+ i === 0 && j === 0 && printChartTitle();
9524
+ var _temp10 = function () {
9525
+ if (line + height + 20 > HEIGHT_PAPER) {
9526
+ breakPage();
9527
+ return Promise.resolve(printHeader()).then(function () {});
9528
+ } else {
9529
+ var _temp25 = function () {
9530
+ if (j === 0) {
9531
+ return Promise.resolve(printHeader(10)).then(function () {});
9532
+ }
9533
+ }();
9534
+ if (_temp25 && _temp25.then) return _temp25.then(function () {});
9535
+ }
9536
+ }();
9537
+ return _temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10);
9538
+ });
9539
+ });
9540
+ if (_temp12 && _temp12.then) return _temp12.then(function () {});
9541
+ }
9542
+ var printContainerEl = printContainerEls[i];
9543
+ var printHeaderEl = printContainerEl.querySelector("." + PrintHeaderClassName);
9544
+ var printHeaderCanvas = null;
9545
+ var printHeaderHeight = null;
9546
+ var printHeaderData = "";
9547
+ var _temp13 = function () {
9548
+ if (printHeaderEl) {
9549
+ return Promise.resolve(html2canvas(printHeaderEl)).then(function (_html2canvas2) {
9550
+ printHeaderCanvas = _html2canvas2;
9551
+ printHeaderHeight = printHeaderCanvas.height * chartWidth / printHeaderCanvas.width;
9552
+ printHeaderData = printHeaderCanvas.toDataURL('image/png');
9553
+ });
9554
+ }
9555
+ }();
9556
+ return _temp13 && _temp13.then ? _temp13.then(_temp14) : _temp14(_temp13);
9557
+ });
9558
+ if (_temp15 && _temp15.then) return _temp15.then(function () {});
9559
+ } else {
9560
+ return Promise.resolve(html2canvas(chart)).then(function (chartCanvas) {
9561
+ var imgBodyHeight = chartCanvas.height * chartWidth / chartCanvas.width;
9562
+ var imgBodyData = chartCanvas.toDataURL('image/png');
9563
+ line += 10;
9564
+ if (line + imgBodyHeight + 20 + (chartTitleHeight || 0) > HEIGHT_PAPER) breakPage();
9565
+ printChartTitle();
9566
+ doc.addImage(imgBodyData, 'PNG', 10, line, chartWidth, imgBodyHeight);
9567
+ line += imgBodyHeight;
9568
+ });
9569
+ }
9570
+ }();
9571
+ return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
9432
9572
  }
9433
- doc.addImage(imgBodyData, 'PNG', 10, line, chartWidth, imgBodyHeight);
9434
- line += imgBodyHeight;
9573
+ var chart = canvas.children.item(_index);
9574
+ if (chart.getAttribute("id") === "header-canvas") return;
9575
+ var chartTitle = chart.querySelector(".chart-title");
9576
+ var printContainerEls = chart.querySelectorAll("." + PrintContainerClassName);
9577
+ var printChartTitleCanvas = null;
9578
+ var chartTitleHeight = null;
9579
+ var chartTitleData = "";
9580
+ var _temp18 = function () {
9581
+ if (chartTitle && printContainerEls.length) {
9582
+ return Promise.resolve(html2canvas(chartTitle)).then(function (_html2canvas) {
9583
+ printChartTitleCanvas = _html2canvas;
9584
+ chartTitleHeight = printChartTitleCanvas.height * chartWidth / printChartTitleCanvas.width;
9585
+ chartTitleData = printChartTitleCanvas.toDataURL('image/png');
9586
+ });
9587
+ }
9588
+ }();
9589
+ return _temp18 && _temp18.then ? _temp18.then(_temp19) : _temp19(_temp18);
9435
9590
  });
9436
- });
9437
- if (_temp9 && _temp9.then) return _temp9.then(function () {});
9438
- }
9439
- }();
9440
- return _temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10);
9591
+ if (_temp20 && _temp20.then) return _temp20.then(function () {});
9592
+ }
9593
+ }();
9594
+ return _temp21 && _temp21.then ? _temp21.then(_temp22) : _temp22(_temp21);
9595
+ });
9596
+ }, function (error) {
9597
+ console.log({
9598
+ error: error
9599
+ });
9600
+ toast.error("Print pdf failure!");
9441
9601
  });
9602
+ return Promise.resolve(_temp23 && _temp23.then ? _temp23.then(_temp24) : _temp24(_temp23));
9442
9603
  } catch (e) {
9443
9604
  return Promise.reject(e);
9444
9605
  }
9445
9606
  };
9607
+ var examTime = useMemo(function () {
9608
+ return utcToLocalTime(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.startTime, "HH:mm") + " ~ " + utcToLocalTime(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.finishTime, "HH:mm");
9609
+ }, [resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.startTime, resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.finishTime]);
9446
9610
  return {
9611
+ examTime: examTime,
9447
9612
  series: series,
9448
9613
  chartOptions: chartOptions,
9614
+ allChartOptions: allChartOptions,
9615
+ allSeries: allSeries,
9449
9616
  dataChartIndex: dataChartIndex,
9450
9617
  totalTime: totalTime,
9451
9618
  isStudent: isStudent,
9452
9619
  resultDatas: resultDatas,
9453
9620
  effectSize: effectSize,
9454
9621
  longTimeSpend: longTimeSpend,
9455
- timelyOrderQuestion: timelyOrderQuestion,
9622
+ timelyOrderQuestions: timelyOrderQuestions,
9456
9623
  openProblem: openProblem,
9457
9624
  categoryResponses: categoryResponses,
9458
9625
  setOpenProblem: setOpenProblem,
@@ -10941,7 +11108,8 @@ function CreateNewQuestionDialog(_ref) {
10941
11108
  function MyAnswer(_ref) {
10942
11109
  var data = _ref.data,
10943
11110
  categories = _ref.categories,
10944
- isStudent = _ref.isStudent;
11111
+ isStudent = _ref.isStudent,
11112
+ isPrint = _ref.isPrint;
10945
11113
  var _useCreateQuestionDia = useCreateQuestionDialog(),
10946
11114
  handleCreateQuestion = _useCreateQuestionDia.handleCreateQuestion,
10947
11115
  openCreateQuestionDialog = _useCreateQuestionDia.openCreateQuestionDialog,
@@ -10958,94 +11126,8 @@ function MyAnswer(_ref) {
10958
11126
  handleSelectQuestionOrder(id);
10959
11127
  toggleCreateQuestion();
10960
11128
  };
10961
- return React.createElement("div", {
10962
- className: styles$4["myanswer"]
10963
- }, formattedData && formattedData.length > 0 && formattedData.map(function (item) {
10964
- return React.createElement("div", {
10965
- key: item.category.id
10966
- }, React.createElement(Stack, {
10967
- bgcolor: "#F9FAFB",
10968
- flexDirection: "row",
10969
- padding: "12px",
10970
- className: styles$4["myAnswerItem"] + " " + styles["noGutters"]
10971
- }, React.createElement("div", {
10972
- className: styles["custom-col-2"],
10973
- style: {
10974
- display: "flex",
10975
- gap: "4px"
10976
- }
10977
- }, React.createElement(Typography, {
10978
- sx: {
10979
- fontSize: "13px",
10980
- fontWeight: 600,
10981
- color: "#97A1AF"
10982
- }
10983
- }, "\uBB38\uC81C \uBC88\uD638")), React.createElement("div", {
10984
- className: styles["custom-col-2"],
10985
- style: {
10986
- display: "flex",
10987
- gap: "4px"
10988
- }
10989
- }, React.createElement(Typography, {
10990
- sx: {
10991
- fontSize: "13px",
10992
- fontWeight: 600,
10993
- color: "#97A1AF"
10994
- }
10995
- }, "\uC815\uB2F5")), React.createElement("div", {
10996
- className: styles["custom-col-2"],
10997
- style: {
10998
- display: "flex",
10999
- gap: "4px"
11000
- }
11001
- }, React.createElement(Typography, {
11002
- sx: {
11003
- fontSize: "13px",
11004
- fontWeight: 600,
11005
- color: "#97A1AF"
11006
- }
11007
- }, "\uD480\uC774 \uC2DC\uAC04")), React.createElement("div", {
11008
- className: styles["custom-col-2"],
11009
- style: {
11010
- display: "flex",
11011
- alignItems: "center",
11012
- gap: "4px"
11013
- }
11014
- }, React.createElement(Typography, {
11015
- sx: {
11016
- fontSize: "13px",
11017
- fontWeight: 600,
11018
- color: "#97A1AF"
11019
- }
11020
- }, "\uC0C1\uC704\uAD8C \uBE44\uAD50")), React.createElement("div", {
11021
- className: styles["custom-col-2"],
11022
- style: {
11023
- display: "flex",
11024
- alignItems: "center",
11025
- gap: "4px"
11026
- }
11027
- }, React.createElement(Typography, {
11028
- sx: {
11029
- fontSize: "13px",
11030
- fontWeight: 600,
11031
- color: "#97A1AF"
11032
- }
11033
- }, "\uC804\uCCB4 \uC815\uB2F5\uB960"))), React.createElement("div", {
11034
- className: styles$4["titleMyAnswer2"]
11035
- }, React.createElement(Typography, {
11036
- sx: {
11037
- color: "#97A1AF",
11038
- fontSize: "12px"
11039
- }
11040
- }, "\uCE74\uD14C\uACE0\uB9AC"), React.createElement(Typography, {
11041
- sx: {
11042
- color: "#414E62",
11043
- fontSize: "12px",
11044
- fontWeight: 700
11045
- }
11046
- }, item.category.name)), React.createElement("div", {
11047
- className: styles$4["contentMyAnswer"]
11048
- }, item.questions.map(function (question, index) {
11129
+ var renderQuestions = function renderQuestions(questions) {
11130
+ return questions.map(function (question, index) {
11049
11131
  return React.createElement("div", {
11050
11132
  style: isOpenTime[question.id] ? {
11051
11133
  borderTop: index !== 0 ? "1px solid #E4E7EC" : "",
@@ -11140,7 +11222,108 @@ function MyAnswer(_ref) {
11140
11222
  }, React.createElement(iconChat, {
11141
11223
  color: "#5458D5"
11142
11224
  })))));
11143
- })));
11225
+ });
11226
+ };
11227
+ var renderPrintQuestions = function renderPrintQuestions(questions) {
11228
+ var chunkedQuestions = _.chunk(questions, 5);
11229
+ return chunkedQuestions.map(function (i, index) {
11230
+ return React.createElement("div", {
11231
+ key: index,
11232
+ className: PrintContentClassName
11233
+ }, renderQuestions(i));
11234
+ });
11235
+ };
11236
+ return React.createElement("div", {
11237
+ className: styles$4["myanswer"]
11238
+ }, formattedData && formattedData.length > 0 && formattedData.map(function (item) {
11239
+ return React.createElement("div", {
11240
+ key: item.category.id,
11241
+ className: isPrint ? PrintContainerClassName : ""
11242
+ }, React.createElement("div", {
11243
+ className: isPrint ? PrintHeaderClassName : ""
11244
+ }, React.createElement(Stack, {
11245
+ bgcolor: "#F9FAFB",
11246
+ flexDirection: "row",
11247
+ padding: "12px",
11248
+ className: styles$4["myAnswerItem"] + " " + styles["noGutters"]
11249
+ }, React.createElement("div", {
11250
+ className: styles["custom-col-2"],
11251
+ style: {
11252
+ display: "flex",
11253
+ gap: "4px"
11254
+ }
11255
+ }, React.createElement(Typography, {
11256
+ sx: {
11257
+ fontSize: "13px",
11258
+ fontWeight: 600,
11259
+ color: "#97A1AF"
11260
+ }
11261
+ }, "\uBB38\uC81C \uBC88\uD638")), React.createElement("div", {
11262
+ className: styles["custom-col-2"],
11263
+ style: {
11264
+ display: "flex",
11265
+ gap: "4px"
11266
+ }
11267
+ }, React.createElement(Typography, {
11268
+ sx: {
11269
+ fontSize: "13px",
11270
+ fontWeight: 600,
11271
+ color: "#97A1AF"
11272
+ }
11273
+ }, "\uC815\uB2F5")), React.createElement("div", {
11274
+ className: styles["custom-col-2"],
11275
+ style: {
11276
+ display: "flex",
11277
+ gap: "4px"
11278
+ }
11279
+ }, React.createElement(Typography, {
11280
+ sx: {
11281
+ fontSize: "13px",
11282
+ fontWeight: 600,
11283
+ color: "#97A1AF"
11284
+ }
11285
+ }, "\uD480\uC774 \uC2DC\uAC04")), React.createElement("div", {
11286
+ className: styles["custom-col-2"],
11287
+ style: {
11288
+ display: "flex",
11289
+ alignItems: "center",
11290
+ gap: "4px"
11291
+ }
11292
+ }, React.createElement(Typography, {
11293
+ sx: {
11294
+ fontSize: "13px",
11295
+ fontWeight: 600,
11296
+ color: "#97A1AF"
11297
+ }
11298
+ }, "\uC0C1\uC704\uAD8C \uBE44\uAD50")), React.createElement("div", {
11299
+ className: styles["custom-col-2"],
11300
+ style: {
11301
+ display: "flex",
11302
+ alignItems: "center",
11303
+ gap: "4px"
11304
+ }
11305
+ }, React.createElement(Typography, {
11306
+ sx: {
11307
+ fontSize: "13px",
11308
+ fontWeight: 600,
11309
+ color: "#97A1AF"
11310
+ }
11311
+ }, "\uC804\uCCB4 \uC815\uB2F5\uB960"))), React.createElement("div", {
11312
+ className: styles$4["titleMyAnswer2"]
11313
+ }, React.createElement(Typography, {
11314
+ sx: {
11315
+ color: "#97A1AF",
11316
+ fontSize: "12px"
11317
+ }
11318
+ }, "\uCE74\uD14C\uACE0\uB9AC"), React.createElement(Typography, {
11319
+ sx: {
11320
+ color: "#414E62",
11321
+ fontSize: "12px",
11322
+ fontWeight: 700
11323
+ }
11324
+ }, item.category.name))), React.createElement("div", {
11325
+ className: styles$4["contentMyAnswer"]
11326
+ }, isPrint ? renderPrintQuestions(item.questions) : renderQuestions(item.questions)));
11144
11327
  }), React.createElement(CreateNewQuestionDialog, {
11145
11328
  questions: data === null || data === void 0 ? void 0 : data.questions,
11146
11329
  questionOrderSelected: questionOrderSelected,
@@ -11193,10 +11376,74 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
11193
11376
  }));
11194
11377
  };
11195
11378
 
11196
- function CompareGrass(_ref) {
11197
- var effectSize = _ref.effectSize;
11379
+ var CompareGrass = function CompareGrass(_ref) {
11380
+ var effectSize = _ref.effectSize,
11381
+ isPrint = _ref.isPrint;
11382
+ var renderTableBody = function renderTableBody(effectSize) {
11383
+ return effectSize.map(function (item, index) {
11384
+ return React.createElement("tr", {
11385
+ id: "print-item",
11386
+ key: item.id,
11387
+ style: index < effectSize.length - 1 ? {
11388
+ borderBottom: "1px solid #e4e7ec"
11389
+ } : {}
11390
+ }, React.createElement("td", {
11391
+ className: styles$4["tdcolumn1"]
11392
+ }, "\uBB38\uC81C ", item.questionOrder + 1), React.createElement("td", {
11393
+ style: {
11394
+ textAlign: "center",
11395
+ color: "#202B37"
11396
+ }
11397
+ }, item.correctAnswers, "\uBC88"), React.createElement("td", {
11398
+ className: styles$4["tdcolumn3"],
11399
+ style: {
11400
+ color: item.isCorrect ? "#1EE288" : "#F34B4B"
11401
+ }
11402
+ }, item.selectedAnswers ? item.selectedAnswers + "\uBC88" : ""), React.createElement("td", {
11403
+ style: {
11404
+ textAlign: "center",
11405
+ color: "#414E62"
11406
+ }
11407
+ }, item.mostSelectedAnswers ? item.mostSelectedAnswers + "\uBC88" : ""), React.createElement("td", null, React.createElement("div", {
11408
+ className: styles$4["classification"]
11409
+ }, item.problemCategories.map(function (problem, index) {
11410
+ return React.createElement("div", {
11411
+ key: index
11412
+ }, problem === 1 && React.createElement("span", {
11413
+ style: {
11414
+ border: "1px solid #1EE288"
11415
+ }
11416
+ }, "\uC26C\uC6B4 \uBB38\uC81C"), problem === 3 && React.createElement("span", {
11417
+ style: {
11418
+ border: "1px solid #FDDB64"
11419
+ }
11420
+ }, "\uD568\uC815 \uBB38\uC81C"), problem === 2 && React.createElement("span", {
11421
+ style: {
11422
+ border: "1px solid #F34B4B"
11423
+ }
11424
+ }, "\uBCC0\uBCC4\uB825 \uBB38\uC81C"), problem === 0 && React.createElement("span", {
11425
+ style: {
11426
+ border: "1px solid #DDDDDD"
11427
+ }
11428
+ }, "\uC77C\uBC18\uC801\uC778 \uBB38\uC81C"), problem === 4 && React.createElement("span", {
11429
+ style: {
11430
+ border: "1px solid #FF0000"
11431
+ }
11432
+ }, "\uC5B4\uB824\uC6B4 \uBB38\uC81C"));
11433
+ }))));
11434
+ });
11435
+ };
11436
+ var renderPrintTableBody = function renderPrintTableBody(effectSize) {
11437
+ var chunkedEffectSizeQuestions = _.chunk(effectSize, 5);
11438
+ return chunkedEffectSizeQuestions.map(function (i, index) {
11439
+ return React.createElement("tbody", {
11440
+ key: index,
11441
+ className: PrintContentClassName
11442
+ }, renderTableBody(i));
11443
+ });
11444
+ };
11198
11445
  return React.createElement("div", {
11199
- className: styles$4["compareGrass"]
11446
+ className: styles$4["compareGrass"] + " " + (isPrint ? PrintContainerClassName : "")
11200
11447
  }, React.createElement("div", {
11201
11448
  className: styles$4["tableCompareGrass"]
11202
11449
  }, React.createElement("div", {
@@ -11208,7 +11455,8 @@ function CompareGrass(_ref) {
11208
11455
  }, React.createElement("thead", {
11209
11456
  style: {
11210
11457
  borderBottom: "1px solid #E4E7EC"
11211
- }
11458
+ },
11459
+ className: isPrint ? PrintHeaderClassName : ""
11212
11460
  }, React.createElement("tr", null, React.createElement("th", {
11213
11461
  className: styles$4["thcolumn1"]
11214
11462
  }, "\uBB38\uC81C \uBC88\uD638"), React.createElement("th", {
@@ -11227,58 +11475,8 @@ function CompareGrass(_ref) {
11227
11475
  style: {
11228
11476
  textAlign: "center"
11229
11477
  }
11230
- }, "\uBB38\uC81C \uBD84\uB958"))), React.createElement("tbody", null, effectSize.map(function (item, index) {
11231
- return React.createElement("tr", {
11232
- key: item.id,
11233
- style: index < effectSize.length - 1 ? {
11234
- borderBottom: "1px solid #e4e7ec"
11235
- } : {}
11236
- }, React.createElement("td", {
11237
- className: styles$4["tdcolumn1"]
11238
- }, "\uBB38\uC81C ", item.questionOrder + 1), React.createElement("td", {
11239
- style: {
11240
- textAlign: "center",
11241
- color: "#202B37"
11242
- }
11243
- }, item.correctAnswers, "\uBC88"), React.createElement("td", {
11244
- className: styles$4["tdcolumn3"],
11245
- style: {
11246
- color: item.isCorrect ? "#1EE288" : "#F34B4B"
11247
- }
11248
- }, item.selectedAnswers ? item.selectedAnswers + "\uBC88" : ""), React.createElement("td", {
11249
- style: {
11250
- textAlign: "center",
11251
- color: "#414E62"
11252
- }
11253
- }, item.mostSelectedAnswers ? item.mostSelectedAnswers + "\uBC88" : ""), React.createElement("td", null, React.createElement("div", {
11254
- className: styles$4["classification"]
11255
- }, item.problemCategories.map(function (problem, index) {
11256
- return React.createElement("div", {
11257
- key: index
11258
- }, problem === 1 && React.createElement("span", {
11259
- style: {
11260
- border: "1px solid #1EE288"
11261
- }
11262
- }, "\uC26C\uC6B4 \uBB38\uC81C"), problem === 3 && React.createElement("span", {
11263
- style: {
11264
- border: "1px solid #FDDB64"
11265
- }
11266
- }, "\uD568\uC815 \uBB38\uC81C"), problem === 2 && React.createElement("span", {
11267
- style: {
11268
- border: "1px solid #F34B4B"
11269
- }
11270
- }, "\uBCC0\uBCC4\uB825 \uBB38\uC81C"), problem === 0 && React.createElement("span", {
11271
- style: {
11272
- border: "1px solid #DDDDDD"
11273
- }
11274
- }, "\uC77C\uBC18\uC801\uC778 \uBB38\uC81C"), problem === 4 && React.createElement("span", {
11275
- style: {
11276
- border: "1px solid #FF0000"
11277
- }
11278
- }, "\uC5B4\uB824\uC6B4 \uBB38\uC81C"));
11279
- }))));
11280
- }))))));
11281
- }
11478
+ }, "\uBB38\uC81C \uBD84\uB958"))), isPrint ? renderPrintTableBody(effectSize) : React.createElement("tbody", null, renderTableBody(effectSize))))));
11479
+ };
11282
11480
 
11283
11481
  var iconUpArrow = function iconUpArrow(_ref) {
11284
11482
  var _ref$width = _ref.width,
@@ -11295,9 +11493,9 @@ var iconUpArrow = function iconUpArrow(_ref) {
11295
11493
  }, React.createElement("path", {
11296
11494
  d: "M5.25 15.375L12 8.625L18.75 15.375",
11297
11495
  stroke: "#CED2DA",
11298
- "stroke-width": "2",
11299
- "stroke-linecap": "round",
11300
- "stroke-linejoin": "round"
11496
+ strokeWidth: "2",
11497
+ strokeLinecap: "round",
11498
+ strokeLinejoin: "round"
11301
11499
  }));
11302
11500
  };
11303
11501
 
@@ -11316,9 +11514,9 @@ var iconDownArrow = function iconDownArrow(_ref) {
11316
11514
  }, React.createElement("path", {
11317
11515
  d: "M5.25 8.625L12 15.375L18.75 8.625",
11318
11516
  stroke: "#CED2DA",
11319
- "stroke-width": "2",
11320
- "stroke-linecap": "round",
11321
- "stroke-linejoin": "round"
11517
+ strokeWidth: "2",
11518
+ strokeLinecap: "round",
11519
+ strokeLinejoin: "round"
11322
11520
  }));
11323
11521
  };
11324
11522
 
@@ -11367,20 +11565,75 @@ var iconAssignedQuestions = function iconAssignedQuestions(_ref) {
11367
11565
  }));
11368
11566
  };
11369
11567
 
11370
- function TrickyProblem(_ref) {
11568
+ var TrickyProblem = function TrickyProblem(_ref) {
11371
11569
  var data = _ref.data,
11372
11570
  openProblem = _ref.openProblem,
11373
- changeOpen = _ref.changeOpen;
11571
+ changeOpen = _ref.changeOpen,
11572
+ isPrint = _ref.isPrint;
11374
11573
  var inCorrectQuestions = data.questions.filter(function (i) {
11375
11574
  return i.isStar && !i.isCorrect;
11376
11575
  });
11377
11576
  var correctQuestions = data.questions.filter(function (i) {
11378
11577
  return i.isStar && i.isCorrect;
11379
11578
  });
11579
+ var renderProblems = function renderProblems() {
11580
+ return React.createElement(Fragment$1, null, React.createElement("div", {
11581
+ className: styles$4["titleTrickyProblem"]
11582
+ }, React.createElement(iconX, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uD2C0\uB9B0 \uBB38\uC81C")), React.createElement("div", {
11583
+ className: styles$4["wrongQuestions"]
11584
+ }, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
11585
+ return React.createElement("span", {
11586
+ key: question.id,
11587
+ className: styles$4["question"]
11588
+ }, question.questionOrder + 1, "\uBC88");
11589
+ }), !data.questions.length && React.createElement("div", {
11590
+ className: styles$4["noData"]
11591
+ }, "\uB370\uC774\uD130 \uC5C6\uC74C")), React.createElement("div", {
11592
+ className: styles$4["titleTrickyProblem"]
11593
+ }, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uB9DE\uCD98 \uBB38\uC81C")), React.createElement("div", {
11594
+ className: styles$4["assignedQuestions"]
11595
+ }, !!correctQuestions.length && correctQuestions.map(function (question) {
11596
+ return React.createElement("div", {
11597
+ key: question.id,
11598
+ className: styles$4["question"]
11599
+ }, question.questionOrder + 1, "\uBC88");
11600
+ }), !data.questions.length && React.createElement("div", {
11601
+ className: styles$4["noData"]
11602
+ }, "\uB370\uC774\uD130 \uC5C6\uC74C")));
11603
+ };
11604
+ var renderPrintProblems = function renderPrintProblems() {
11605
+ return React.createElement(Fragment$1, null, React.createElement("div", {
11606
+ className: PrintContentClassName
11607
+ }, React.createElement("div", {
11608
+ className: styles$4["titleTrickyProblem"]
11609
+ }, React.createElement(iconX, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uD2C0\uB9B0 \uBB38\uC81C")), React.createElement("div", {
11610
+ className: styles$4["wrongQuestions"]
11611
+ }, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
11612
+ return React.createElement("span", {
11613
+ key: question.id,
11614
+ className: styles$4["question"]
11615
+ }, question.questionOrder + 1, "\uBC88");
11616
+ }), !data.questions.length && React.createElement("div", {
11617
+ className: styles$4["noData"]
11618
+ }, "\uB370\uC774\uD130 \uC5C6\uC74C"))), React.createElement("div", {
11619
+ className: PrintContentClassName
11620
+ }, React.createElement("div", {
11621
+ className: styles$4["titleTrickyProblem"]
11622
+ }, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uB9DE\uCD98 \uBB38\uC81C")), React.createElement("div", {
11623
+ className: styles$4["assignedQuestions"]
11624
+ }, !!correctQuestions.length && correctQuestions.map(function (question) {
11625
+ return React.createElement("div", {
11626
+ key: question.id,
11627
+ className: styles$4["question"]
11628
+ }, question.questionOrder + 1, "\uBC88");
11629
+ }), !data.questions.length && React.createElement("div", {
11630
+ className: styles$4["noData"]
11631
+ }, "\uB370\uC774\uD130 \uC5C6\uC74C"))));
11632
+ };
11380
11633
  return React.createElement("div", {
11381
- className: styles$4["wrapperProblem"]
11634
+ className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
11382
11635
  }, React.createElement("div", {
11383
- className: !openProblem.problem1 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
11636
+ className: (!openProblem.problem1 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
11384
11637
  onClick: function onClick() {
11385
11638
  return changeOpen(_extends({}, openProblem, {
11386
11639
  problem1: !openProblem.problem1
@@ -11392,41 +11645,53 @@ function TrickyProblem(_ref) {
11392
11645
  fontSize: "14px",
11393
11646
  fontWeight: 700
11394
11647
  }
11395
- }, "\uAE4C\uB2E4\uB85C\uC6E0\uB358 \uBB38\uC81C"), openProblem.problem1 ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), openProblem.problem1 && React.createElement(Fragment$1, null, React.createElement("div", {
11396
- className: styles$4["titleTrickyProblem"]
11397
- }, React.createElement(iconX, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uD2C0\uB9B0 \uBB38\uC81C")), React.createElement("div", {
11398
- className: styles$4["wrongQuestions"]
11399
- }, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
11400
- return React.createElement("span", {
11401
- key: question.id,
11402
- className: styles$4["question"]
11403
- }, question.questionOrder + 1, "\uBC88");
11404
- }), !data.questions.length && React.createElement("div", {
11405
- className: styles$4["noData"]
11406
- }, "\uB370\uC774\uD130 \uC5C6\uC74C")), React.createElement("div", {
11407
- className: styles$4["titleTrickyProblem"]
11408
- }, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uB9DE\uCD98 \uBB38\uC81C")), React.createElement("div", {
11409
- className: styles$4["assignedQuestions"]
11410
- }, !!correctQuestions.length && correctQuestions.map(function (question) {
11411
- return React.createElement("div", {
11412
- key: question.id,
11413
- className: styles$4["question"]
11414
- }, question.questionOrder + 1, "\uBC88");
11415
- }), !data.questions.length && React.createElement("div", {
11416
- className: styles$4["noData"]
11417
- }, "\uB370\uC774\uD130 \uC5C6\uC74C"))));
11418
- }
11648
+ }, "\uAE4C\uB2E4\uB85C\uC6E0\uB358 \uBB38\uC81C"), openProblem.problem1 ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), openProblem.problem1 && React.createElement(Fragment$1, null, isPrint ? renderPrintProblems() : renderProblems()));
11649
+ };
11419
11650
 
11420
- function ProtractedProblem(_ref) {
11651
+ var ProtractedProblem = function ProtractedProblem(_ref) {
11421
11652
  var data = _ref.data,
11422
11653
  openProblem = _ref.openProblem,
11423
- changeOpen = _ref.changeOpen;
11654
+ changeOpen = _ref.changeOpen,
11655
+ isPrint = _ref.isPrint;
11424
11656
  var _useTranslation = useTranslation(),
11425
11657
  t = _useTranslation.t;
11658
+ var renderQuestions = function renderQuestions(data) {
11659
+ return data.map(function (item) {
11660
+ return React.createElement("div", {
11661
+ className: styles$4["content"],
11662
+ key: item.id
11663
+ }, React.createElement("div", {
11664
+ className: styles$4["contentColumn1"]
11665
+ }, React.createElement("div", null, React.createElement("span", {
11666
+ className: styles$4["span1"]
11667
+ }, "\uBB38\uC81C"), React.createElement("span", {
11668
+ className: styles$4["span2"]
11669
+ }, item.questionOrder + 1, "\uBC88"))), React.createElement("div", {
11670
+ className: styles$4["contentColumn2"]
11671
+ }, React.createElement("div", null, React.createElement("span", {
11672
+ className: styles$4["span1"]
11673
+ }, "\uB098\uC758 \uC2DC\uAC04"), React.createElement("span", {
11674
+ className: styles$4["span2"]
11675
+ }, "\uC0C1\uC704\uAD8C \uC2DC\uAC04")), React.createElement("div", null, React.createElement("span", {
11676
+ className: styles$4["duration"]
11677
+ }, formatTimeSecond(item.duration, t)), React.createElement("span", {
11678
+ className: styles$4["topDuration"]
11679
+ }, formatTimeSecond(item.topDuration, t)))));
11680
+ });
11681
+ };
11682
+ var renderPrintQuestions = function renderPrintQuestions() {
11683
+ var chunkedData = _.chunk(data, 5);
11684
+ return chunkedData.map(function (i, index) {
11685
+ return React.createElement("div", {
11686
+ key: index,
11687
+ className: PrintContentClassName
11688
+ }, renderQuestions(i));
11689
+ });
11690
+ };
11426
11691
  return React.createElement("div", {
11427
- className: styles$4["wrapperProblem"]
11692
+ className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
11428
11693
  }, React.createElement("div", {
11429
- className: !openProblem.problem2 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
11694
+ className: (!openProblem.problem2 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
11430
11695
  onClick: function onClick() {
11431
11696
  return changeOpen(_extends({}, openProblem, {
11432
11697
  problem2: !openProblem.problem2
@@ -11440,45 +11705,58 @@ function ProtractedProblem(_ref) {
11440
11705
  }
11441
11706
  }, "\uC2DC\uAC04\uC774 \uC624\uB798 \uAC78\uB9B0 \uBB38\uC81C"), openProblem.problem2 ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), openProblem.problem2 && React.createElement(Fragment$1, null, React.createElement("div", {
11442
11707
  className: styles$4["wrapperContent"]
11443
- }, data.length ? data.map(function (item) {
11444
- return React.createElement("div", {
11445
- className: styles$4["content"],
11446
- key: item.id
11447
- }, React.createElement("div", {
11448
- className: styles$4["contentColumn1"]
11449
- }, React.createElement("div", null, React.createElement("span", {
11450
- className: styles$4["span1"]
11451
- }, "\uBB38\uC81C"), React.createElement("span", {
11452
- className: styles$4["span2"]
11453
- }, item.questionOrder + 1, "\uBC88"))), React.createElement("div", {
11454
- className: styles$4["contentColumn2"]
11455
- }, React.createElement("div", null, React.createElement("span", {
11456
- className: styles$4["span1"]
11457
- }, "\uB098\uC758 \uC2DC\uAC04"), React.createElement("span", {
11458
- className: styles$4["span2"]
11459
- }, "\uC0C1\uC704\uAD8C \uC2DC\uAC04")), React.createElement("div", null, React.createElement("span", {
11460
- className: styles$4["duration"]
11461
- }, formatTimeSecond(item.duration, t)), React.createElement("span", {
11462
- className: styles$4["topDuration"]
11463
- }, formatTimeSecond(item.topDuration, t)))));
11464
- }) : React.createElement("div", {
11465
- className: styles$4["noData"]
11708
+ }, data.length ? isPrint ? renderPrintQuestions() : renderQuestions(data) : React.createElement("div", {
11709
+ className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
11466
11710
  }, "\uB370\uC774\uD130 \uC5C6\uC74C"))));
11467
- }
11711
+ };
11468
11712
 
11469
- function Vulnerable(_ref) {
11713
+ var Vulnerable = function Vulnerable(_ref) {
11470
11714
  var data = _ref.data,
11471
11715
  openProblem = _ref.openProblem,
11472
- changeOpen = _ref.changeOpen;
11716
+ changeOpen = _ref.changeOpen,
11717
+ isPrint = _ref.isPrint;
11473
11718
  var incorrectQuestions = data.questions.filter(function (i) {
11474
11719
  return i.selectedAnswers !== "" && i.isCorrect === false;
11475
11720
  }).sort(function (q1, q2) {
11476
11721
  return q2.overallCorrectRate === q1.overallCorrectRate ? q1.questionOrder - q2.questionOrder : q2.overallCorrectRate - q1.overallCorrectRate;
11477
11722
  });
11723
+ var renderQuestions = function renderQuestions(questions) {
11724
+ return questions.map(function (question) {
11725
+ return React.createElement("div", {
11726
+ className: styles$4["content"],
11727
+ key: question.id
11728
+ }, React.createElement("div", {
11729
+ className: styles$4["contentColumn1"]
11730
+ }, React.createElement("div", null, React.createElement("span", {
11731
+ className: styles$4["span1"]
11732
+ }, "\uBB38\uC81C"), React.createElement("span", {
11733
+ className: styles$4["span2"]
11734
+ }, question.questionOrder + 1, "\uBC88"))), React.createElement("div", {
11735
+ className: styles$4["contentColumn2"]
11736
+ }, React.createElement("div", null, React.createElement("span", {
11737
+ className: styles$4["span1"]
11738
+ }, "\uC804\uCCB4 \uC815\uB2F5\uB960"), React.createElement("span", {
11739
+ className: styles$4["span2"]
11740
+ }, "\uB098\uC758 \uC624\uB2F5")), React.createElement("div", null, React.createElement("span", {
11741
+ className: styles$4["overallCorrectRate"]
11742
+ }, question.overallCorrectRate.toFixed(2), "%"), React.createElement("span", {
11743
+ className: styles$4["answer"]
11744
+ }, question.selectedAnswers, "\uBC88 (\uC815\uB2F5", " ", question.correctAnswers, "\uBC88)"))));
11745
+ });
11746
+ };
11747
+ var renderPrintQuestions = function renderPrintQuestions(questions) {
11748
+ var chunkedQuestions = _.chunk(questions, 5);
11749
+ return chunkedQuestions.map(function (i, index) {
11750
+ return React.createElement("div", {
11751
+ key: index,
11752
+ className: PrintContentClassName
11753
+ }, renderQuestions(i));
11754
+ });
11755
+ };
11478
11756
  return React.createElement("div", {
11479
- className: styles$4["wrapperProblem"]
11757
+ className: styles$4["wrapperProblem"] + " " + PrintContainerClassName
11480
11758
  }, React.createElement("div", {
11481
- className: !openProblem.problem3 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
11759
+ className: (!openProblem.problem3 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
11482
11760
  onClick: function onClick() {
11483
11761
  return changeOpen(_extends({}, openProblem, {
11484
11762
  problem3: !openProblem.problem3
@@ -11492,40 +11770,51 @@ function Vulnerable(_ref) {
11492
11770
  }
11493
11771
  }, "\uB0B4\uAC00 \uCDE8\uC57D\uD55C \uBB38\uC81C"), openProblem.problem3 ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), openProblem.problem3 && React.createElement(Fragment$1, null, React.createElement("div", {
11494
11772
  className: styles$4["wrapperContent"]
11495
- }, incorrectQuestions.length ? React.createElement(Fragment$1, null, incorrectQuestions.map(function (question) {
11496
- return React.createElement("div", {
11497
- className: styles$4["content"],
11498
- key: question.id
11499
- }, React.createElement("div", {
11500
- className: styles$4["contentColumn1"]
11501
- }, React.createElement("div", null, React.createElement("span", {
11502
- className: styles$4["span1"]
11503
- }, "\uBB38\uC81C"), React.createElement("span", {
11504
- className: styles$4["span2"]
11505
- }, question.questionOrder + 1, "\uBC88"))), React.createElement("div", {
11506
- className: styles$4["contentColumn2"]
11507
- }, React.createElement("div", null, React.createElement("span", {
11508
- className: styles$4["span1"]
11509
- }, "\uC804\uCCB4 \uC815\uB2F5\uB960"), React.createElement("span", {
11510
- className: styles$4["span2"]
11511
- }, "\uB098\uC758 \uC624\uB2F5")), React.createElement("div", null, React.createElement("span", {
11512
- className: styles$4["overallCorrectRate"]
11513
- }, question.overallCorrectRate.toFixed(2), "%"), React.createElement("span", {
11514
- className: styles$4["answer"]
11515
- }, question.selectedAnswers, "\uBC88 (\uC815\uB2F5", " ", question.correctAnswers, "\uBC88)"))));
11516
- })) : React.createElement("div", {
11517
- className: styles$4["noData"]
11773
+ }, isPrint ? renderPrintQuestions(incorrectQuestions) : renderQuestions(incorrectQuestions), !incorrectQuestions.length && React.createElement("div", {
11774
+ className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
11518
11775
  }, "\uB370\uC774\uD130 \uC5C6\uC74C"))));
11519
- }
11776
+ };
11520
11777
 
11521
- function GradesByTerritory(_ref) {
11778
+ var GradesByTerritory = function GradesByTerritory(_ref) {
11522
11779
  var data = _ref.data,
11523
11780
  openProblem = _ref.openProblem,
11524
- changeOpen = _ref.changeOpen;
11781
+ changeOpen = _ref.changeOpen,
11782
+ isPrint = _ref.isPrint;
11783
+ var renderCategories = function renderCategories(data) {
11784
+ return data.map(function (item) {
11785
+ var trackStyle = {
11786
+ left: item.percentageAmongStudents + "%"
11787
+ };
11788
+ return React.createElement("div", {
11789
+ className: styles$4["contentProblem"],
11790
+ key: item.id
11791
+ }, React.createElement("div", {
11792
+ className: styles$4["labelProblem"]
11793
+ }, React.createElement("span", {
11794
+ className: styles$4["name"]
11795
+ }, item.name), React.createElement("div", {
11796
+ className: styles$4["percent"]
11797
+ }, React.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "\uBB38\uC81C"))), React.createElement("div", {
11798
+ className: styles$4["slider"]
11799
+ }, React.createElement("div", null, React.createElement("span", {
11800
+ className: styles$4["track"],
11801
+ style: trackStyle
11802
+ }))));
11803
+ });
11804
+ };
11805
+ var renderPrintCategories = function renderPrintCategories() {
11806
+ var chunkedCategories = _.chunk(data, 5);
11807
+ return chunkedCategories.map(function (i, index) {
11808
+ return React.createElement("div", {
11809
+ key: index,
11810
+ className: PrintContentClassName
11811
+ }, renderCategories(i));
11812
+ });
11813
+ };
11525
11814
  return React.createElement("div", {
11526
- className: styles$4["wrapperProblem"]
11815
+ className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
11527
11816
  }, React.createElement("div", {
11528
- className: !openProblem.problem4 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
11817
+ className: (!openProblem.problem4 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
11529
11818
  onClick: function onClick() {
11530
11819
  return changeOpen(_extends({}, openProblem, {
11531
11820
  problem4: !openProblem.problem4
@@ -11539,28 +11828,10 @@ function GradesByTerritory(_ref) {
11539
11828
  }
11540
11829
  }, "\uC601\uC5ED\uBCC4 \uC131\uC801"), openProblem.problem4 ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), openProblem.problem4 && React.createElement("div", {
11541
11830
  className: styles$4["wrappContentProblem"]
11542
- }, data.length && data.map(function (item) {
11543
- return React.createElement("div", {
11544
- className: styles$4["contentProblem"],
11545
- key: item.id
11546
- }, React.createElement("div", {
11547
- className: styles$4["labelProblem"]
11548
- }, React.createElement("span", {
11549
- className: styles$4["name"]
11550
- }, item.name), React.createElement("div", {
11551
- className: styles$4["percent"]
11552
- }, React.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "\uBB38\uC81C"))), React.createElement("div", {
11553
- className: styles$4["slider"]
11554
- }, React.createElement("span", {
11555
- className: styles$4["track"],
11556
- style: {
11557
- left: item.percentageAmongStudents + "%"
11558
- }
11559
- })));
11560
- }), openProblem.problem4 && !data.length && React.createElement("div", {
11561
- className: styles$4["noData"]
11831
+ }, isPrint ? renderPrintCategories() : renderCategories(data), openProblem.problem4 && !data.length && React.createElement("div", {
11832
+ className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
11562
11833
  }, "\uB370\uC774\uD130 \uC5C6\uC74C")));
11563
- }
11834
+ };
11564
11835
 
11565
11836
  var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
11566
11837
  var _useState = useState(false),
@@ -11758,11 +12029,17 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11758
12029
  examSessionId = _ref.examSessionId,
11759
12030
  studentId = _ref.studentId,
11760
12031
  code = _ref.code;
11761
- var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code),
12032
+ var _useTab = useTab(),
12033
+ selected = _useTab.selected,
12034
+ handleChangeTab = _useTab.handleChangeTab;
12035
+ var _useExamResult = useExamResult(searchParams, onNavigate, examSessionId, studentId, code, handleChangeTab),
12036
+ examTime = _useExamResult.examTime,
11762
12037
  series = _useExamResult.series,
12038
+ allSeries = _useExamResult.allSeries,
11763
12039
  chartOptions = _useExamResult.chartOptions,
12040
+ allChartOptions = _useExamResult.allChartOptions,
11764
12041
  dataChartIndex = _useExamResult.dataChartIndex,
11765
- timelyOrderQuestion = _useExamResult.timelyOrderQuestion,
12042
+ timelyOrderQuestions = _useExamResult.timelyOrderQuestions,
11766
12043
  isStudent = _useExamResult.isStudent,
11767
12044
  openProblem = _useExamResult.openProblem,
11768
12045
  resultDatas = _useExamResult.resultDatas,
@@ -11779,18 +12056,14 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11779
12056
  handleCreateQuestion = _useCreateQuestionDia.handleCreateQuestion,
11780
12057
  openCreateQuestionDialog = _useCreateQuestionDia.openCreateQuestionDialog,
11781
12058
  toggleCreateQuestion = _useCreateQuestionDia.toggleCreateQuestion;
11782
- var _useTab = useTab(),
11783
- selected = _useTab.selected,
11784
- handleChangeTab = _useTab.handleChangeTab;
11785
12059
  var isTabletUp = useMediaQuery('(min-width:900px)');
11786
- return React.createElement(Fragment$1, null, timelyOrderQuestion[dataChartIndex] && longTimeSpend && resultDatas && effectSize ? React.createElement("div", {
12060
+ return React.createElement(Fragment$1, null, timelyOrderQuestions[dataChartIndex] && longTimeSpend && resultDatas && effectSize ? React.createElement("div", {
11787
12061
  style: {
11788
12062
  width: "100%"
11789
12063
  }
11790
12064
  }, React.createElement(Grid, {
11791
12065
  container: true,
11792
- padding: "24px",
11793
- id: "header-canvas"
12066
+ padding: "24px"
11794
12067
  }, React.createElement(Grid, {
11795
12068
  item: true
11796
12069
  }, resultDatas.courseName && React.createElement(Stack, null, React.createElement(Typography, {
@@ -11850,7 +12123,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11850
12123
  fontWeight: 600,
11851
12124
  color: "#414E62"
11852
12125
  }
11853
- }, moment(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.startTime, "HH:mm").format("hh:mm") + " ~ " + moment(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.finishTime, "HH:mm").format("hh:mm"))), React.createElement(Stack, null, React.createElement(Typography, {
12126
+ }, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
11854
12127
  sx: {
11855
12128
  fontSize: "13px",
11856
12129
  fontWeight: 600,
@@ -11921,6 +12194,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11921
12194
  var label = _ref2.label,
11922
12195
  value = _ref2.value;
11923
12196
  return React.createElement(Button, {
12197
+ key: label,
11924
12198
  className: styles["truncate"],
11925
12199
  disableTouchRipple: true,
11926
12200
  sx: {
@@ -11968,7 +12242,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
11968
12242
  options: chartOptions,
11969
12243
  series: series
11970
12244
  }))), React.createElement("div", {
11971
- className: styles$4["nextChart"] + " " + (dataChartIndex < timelyOrderQuestion.length - 1 && "pointer"),
12245
+ className: styles$4["nextChart"] + " " + (dataChartIndex < timelyOrderQuestions.length - 1 && "pointer"),
11972
12246
  onClick: handleNextChart
11973
12247
  }, React.createElement(iconBtnNextChart, null)))), React.createElement(CustomTabPanel, {
11974
12248
  value: selected,
@@ -12000,69 +12274,170 @@ var ExamResultV2 = function ExamResultV2(_ref) {
12000
12274
  className: "position-absolute",
12001
12275
  sx: {
12002
12276
  zIndex: -1,
12003
- width: "100%"
12277
+ width: "1024px"
12004
12278
  },
12005
12279
  id: "canvas"
12006
- }, React.createElement(Stack, {
12280
+ }, React.createElement(Grid, {
12281
+ container: true,
12282
+ padding: "24px",
12283
+ id: "header-canvas"
12284
+ }, React.createElement(Grid, {
12285
+ item: true
12286
+ }, resultDatas.courseName && React.createElement(Stack, null, React.createElement(Typography, {
12287
+ sx: {
12288
+ fontSize: "14px",
12289
+ fontWeight: 600,
12290
+ color: "#C3C5FE"
12291
+ }
12292
+ }, resultDatas.courseName)), React.createElement(Box, {
12293
+ display: "flex",
12294
+ gap: "16px",
12295
+ flexDirection: "column"
12296
+ }, React.createElement(Stack, null, React.createElement(Typography, {
12297
+ sx: {
12298
+ fontSize: "20px",
12299
+ fontWeight: 600,
12300
+ color: "#5458D5"
12301
+ }
12302
+ }, resultDatas.title)), React.createElement(Stack, {
12303
+ flexDirection: "row",
12304
+ gap: "16px"
12305
+ }, React.createElement(Stack, null, React.createElement(Typography, {
12306
+ sx: {
12307
+ fontSize: "13px",
12308
+ fontWeight: 600,
12309
+ color: "#97A1AF"
12310
+ }
12311
+ }, t("my_score")), React.createElement(Typography, {
12312
+ sx: {
12313
+ fontSize: "14px",
12314
+ fontWeight: 600,
12315
+ color: "#5458D5"
12316
+ }
12317
+ }, t("score_format", {
12318
+ score: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.score
12319
+ }))), React.createElement(Stack, null, React.createElement(Typography, {
12320
+ sx: {
12321
+ fontSize: "13px",
12322
+ fontWeight: 600,
12323
+ color: "#97A1AF"
12324
+ }
12325
+ }, t("exam_date")), React.createElement(Typography, {
12326
+ sx: {
12327
+ fontSize: "14px",
12328
+ fontWeight: 600,
12329
+ color: "#414E62"
12330
+ }
12331
+ }, utcToLocalTime(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.startTime, t("date_format")))), React.createElement(Stack, null, React.createElement(Typography, {
12332
+ sx: {
12333
+ fontSize: "13px",
12334
+ fontWeight: 600,
12335
+ color: "#97A1AF"
12336
+ }
12337
+ }, t("exam_time")), React.createElement(Typography, {
12338
+ sx: {
12339
+ fontSize: "14px",
12340
+ fontWeight: 600,
12341
+ color: "#414E62"
12342
+ }
12343
+ }, examTime)), React.createElement(Stack, null, React.createElement(Typography, {
12344
+ sx: {
12345
+ fontSize: "13px",
12346
+ fontWeight: 600,
12347
+ color: "#97A1AF"
12348
+ }
12349
+ }, t("total_students")), React.createElement(Typography, {
12350
+ sx: {
12351
+ fontSize: "14px",
12352
+ fontWeight: 600,
12353
+ color: "#414E62"
12354
+ }
12355
+ }, t("number_people", {
12356
+ number: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.totalStudent
12357
+ }))), React.createElement(Stack, null, React.createElement(Typography, {
12358
+ sx: {
12359
+ fontSize: "13px",
12360
+ fontWeight: 600,
12361
+ color: "#97A1AF"
12362
+ }
12363
+ }, t("teacher_in_charge")), React.createElement(Typography, {
12364
+ sx: {
12365
+ fontSize: "14px",
12366
+ fontWeight: 600,
12367
+ color: "#414E62"
12368
+ }
12369
+ }, resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.teacherName)))))), React.createElement(Stack, {
12007
12370
  display: "flex",
12008
12371
  flexDirection: "column",
12009
12372
  gap: "12px"
12010
12373
  }, React.createElement(Typography, {
12374
+ className: "chart-title",
12011
12375
  sx: {
12012
- fontSize: "16px",
12376
+ fontSize: "18px",
12013
12377
  fontWeight: 700,
12014
12378
  color: "#414E62"
12015
12379
  }
12016
12380
  }, t(TabList[0].label)), React.createElement(MyAnswer, {
12017
12381
  data: resultDatas,
12018
12382
  categories: categoryResponses,
12019
- isStudent: isStudent
12383
+ isStudent: isStudent,
12384
+ isPrint: true
12020
12385
  })), React.createElement(Stack, {
12021
12386
  display: "flex",
12022
12387
  flexDirection: "column",
12023
12388
  gap: "12px",
12024
12389
  marginTop: "24px"
12025
12390
  }, React.createElement(Typography, {
12391
+ className: "chart-title",
12026
12392
  sx: {
12027
- fontSize: "16px",
12393
+ fontSize: "18px",
12028
12394
  fontWeight: 700,
12029
12395
  color: "#414E62"
12030
12396
  }
12031
- }, t(TabList[1].label)), React.createElement("div", {
12032
- className: styles$4["compareChart"]
12033
- }, React.createElement("div", {
12034
- className: styles$4["prevChart"] + " " + (dataChartIndex > 0 && "pointer"),
12035
- onClick: handlePrevChart
12036
- }, React.createElement(iconBtnPrevChart, null)), React.createElement("div", {
12037
- className: styles$4["chart"] + " sr-line-chart"
12038
- }, React.createElement("div", null, React.createElement(ReactApexChart, {
12039
- height: 389,
12040
- options: chartOptions,
12041
- series: series
12042
- }))), React.createElement("div", {
12043
- className: styles$4["nextChart"] + " " + (dataChartIndex < timelyOrderQuestion.length - 1 && "pointer"),
12044
- onClick: handleNextChart
12045
- }, React.createElement(iconBtnNextChart, null)))), React.createElement(Stack, {
12397
+ }, t(TabList[1].label)), timelyOrderQuestions.map(function (timelyOrderQuestion, index) {
12398
+ return React.createElement("div", {
12399
+ key: index,
12400
+ className: PrintContainerClassName
12401
+ }, React.createElement(Typography, {
12402
+ className: "pb-2 " + PrintHeaderClassName,
12403
+ sx: {
12404
+ fontSize: "14px",
12405
+ fontWeight: 700,
12406
+ color: "#414E62"
12407
+ }
12408
+ }, t("article_number"), " ", timelyOrderQuestion.article), React.createElement("div", {
12409
+ className: styles$4["compareChart"] + " " + PrintContentClassName
12410
+ }, React.createElement("div", {
12411
+ className: styles$4["chart"] + " sr-line-chart"
12412
+ }, React.createElement("div", null, React.createElement(ReactApexChart, {
12413
+ height: 389,
12414
+ options: allChartOptions[index],
12415
+ series: allSeries[index]
12416
+ })))));
12417
+ })), React.createElement(Stack, {
12046
12418
  display: "flex",
12047
12419
  flexDirection: "column",
12048
12420
  gap: "12px",
12049
12421
  marginTop: "24px"
12050
12422
  }, React.createElement(Typography, {
12423
+ className: "chart-title",
12051
12424
  sx: {
12052
- fontSize: "16px",
12425
+ fontSize: "18px",
12053
12426
  fontWeight: 700,
12054
12427
  color: "#414E62"
12055
12428
  }
12056
12429
  }, t(TabList[2].label)), React.createElement(CompareGrass, {
12057
- effectSize: effectSize
12430
+ effectSize: effectSize,
12431
+ isPrint: true
12058
12432
  })), React.createElement(Stack, {
12059
12433
  display: "flex",
12060
12434
  flexDirection: "column",
12061
12435
  gap: "12px",
12062
12436
  marginTop: "24px"
12063
12437
  }, React.createElement(Typography, {
12438
+ className: "chart-title",
12064
12439
  sx: {
12065
- fontSize: "16px",
12440
+ fontSize: "18px",
12066
12441
  fontWeight: 700,
12067
12442
  color: "#414E62"
12068
12443
  }
@@ -12071,25 +12446,29 @@ var ExamResultV2 = function ExamResultV2(_ref) {
12071
12446
  openProblem: _extends({}, openProblem, {
12072
12447
  problem1: true
12073
12448
  }),
12074
- changeOpen: setOpenProblem
12449
+ changeOpen: setOpenProblem,
12450
+ isPrint: true
12075
12451
  }), React.createElement(Vulnerable, {
12076
12452
  data: resultDatas,
12077
12453
  openProblem: _extends({}, openProblem, {
12078
12454
  problem3: true
12079
12455
  }),
12080
- changeOpen: setOpenProblem
12456
+ changeOpen: setOpenProblem,
12457
+ isPrint: true
12081
12458
  }), React.createElement(ProtractedProblem, {
12082
12459
  data: longTimeSpend,
12083
12460
  openProblem: _extends({}, openProblem, {
12084
12461
  problem2: true
12085
12462
  }),
12086
- changeOpen: setOpenProblem
12463
+ changeOpen: setOpenProblem,
12464
+ isPrint: true
12087
12465
  }), React.createElement(GradesByTerritory, {
12088
12466
  data: categoryResponses,
12089
12467
  openProblem: _extends({}, openProblem, {
12090
12468
  problem4: true
12091
12469
  }),
12092
- changeOpen: setOpenProblem
12470
+ changeOpen: setOpenProblem,
12471
+ isPrint: true
12093
12472
  })))), React.createElement(CreateNewQuestionDialog$1, {
12094
12473
  examSessionId: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.examSessionId,
12095
12474
  handleCreateQuestion: handleCreateQuestion,