touchstudy-core 0.1.39 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containers/ExamResult/components/CompareGrass/index.d.ts +6 -3
- package/dist/containers/ExamResult/components/GradesByTerritory/index.d.ts +6 -3
- package/dist/containers/ExamResult/components/MyAnswer/index.d.ts +2 -1
- package/dist/containers/ExamResult/components/ProtractedProblem/index.d.ts +6 -3
- package/dist/containers/ExamResult/components/TrickyProblem/index.d.ts +6 -3
- package/dist/containers/ExamResult/components/Vulnerable/index.d.ts +6 -3
- package/dist/containers/Login/configs/constants.d.ts +0 -6
- package/dist/containers/Login/views/block/BlockLogin.d.ts +1 -1
- package/dist/containers/Textbooks/apiClient/articleService.d.ts +1 -1
- package/dist/containers/Textbooks/apiClient/chapterService.d.ts +1 -1
- package/dist/containers/Textbooks/apiClient/textbookService.d.ts +1 -1
- package/dist/containers/Textbooks/views/TextbookDetail.d.ts +1 -1
- package/dist/containers/Textbooks/views/TextbookList.d.ts +1 -1
- package/dist/index.css +12 -5
- package/dist/index.d.ts +1 -2
- package/dist/index.js +723 -405
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +724 -406
- package/dist/index.modern.js.map +1 -1
- package/dist/layouts/Header.d.ts +1 -1
- package/dist/layouts/TheAcademyDropdown.d.ts +1 -1
- package/dist/utils/constants.d.ts +6 -2
- package/dist/utils/hooks/useSwitchAcademy.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -92,12 +92,16 @@ var encodeParams = function encodeParams(params) {
|
|
92
92
|
return encodeURIComponent(key) + "=" + encodeURIComponent(params[key]);
|
93
93
|
}).join('&');
|
94
94
|
};
|
95
|
-
var
|
96
|
-
(function (
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
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(
|
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 {
|
@@ -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(
|
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(
|
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(
|
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(
|
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,12 +8426,12 @@ var TabList = [{
|
|
8406
8426
|
label: "problem_analysis",
|
8407
8427
|
value: 3
|
8408
8428
|
}];
|
8409
|
-
var Roles$
|
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$
|
8434
|
+
})(Roles$1 || (Roles$1 = {}));
|
8415
8435
|
var EXAM_RESULT = {
|
8416
8436
|
"id": 6047,
|
8417
8437
|
"teacherId": 1,
|
@@ -9103,7 +9123,7 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9103
9123
|
var _state$common, _state$common$user;
|
9104
9124
|
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
9125
|
});
|
9106
|
-
var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(
|
9126
|
+
var isStudent = roles === null || roles === void 0 ? void 0 : roles.includes(Role.Student);
|
9107
9127
|
var examCode = query.get("examCode") || "";
|
9108
9128
|
var language = useSelector(function (state) {
|
9109
9129
|
var _state$common2;
|
@@ -9388,57 +9408,154 @@ var useExamResult = function useExamResult(searchParam, navigate, examSessionId,
|
|
9388
9408
|
}, [JSON.stringify(timelyOrderQuestion), dataChartIndex, language]);
|
9389
9409
|
var handleExportPdf = function handleExportPdf() {
|
9390
9410
|
try {
|
9391
|
-
var
|
9392
|
-
|
9393
|
-
|
9394
|
-
|
9395
|
-
|
9396
|
-
|
9397
|
-
|
9398
|
-
|
9399
|
-
|
9400
|
-
|
9401
|
-
|
9402
|
-
|
9403
|
-
var chartWidth = WIDTH_PAPER - 20;
|
9404
|
-
return Promise.resolve(html2canvas(headerCanvas)).then(function (header) {
|
9405
|
-
function _temp11() {
|
9406
|
-
doc.save("download.pdf");
|
9411
|
+
var _temp23 = function _temp23(_result) {
|
9412
|
+
if (_exit) return _result;
|
9413
|
+
dispatch(setLoading(false));
|
9414
|
+
};
|
9415
|
+
var _exit = false;
|
9416
|
+
dispatch(setLoading(true));
|
9417
|
+
var _temp22 = _catch(function () {
|
9418
|
+
var canvas = document.querySelector("#canvas");
|
9419
|
+
var headerCanvas = document.querySelector("#header-canvas");
|
9420
|
+
if (!canvas || !headerCanvas) {
|
9421
|
+
_exit = true;
|
9422
|
+
return;
|
9407
9423
|
}
|
9408
|
-
var
|
9409
|
-
|
9410
|
-
|
9411
|
-
|
9412
|
-
|
9424
|
+
var doc = new jsPDF({
|
9425
|
+
orientation: "p",
|
9426
|
+
unit: "px",
|
9427
|
+
format: "a4"
|
9428
|
+
});
|
9429
|
+
var WIDTH_PAPER = doc.internal.pageSize.width;
|
9430
|
+
var HEIGHT_PAPER = doc.internal.pageSize.height;
|
9431
|
+
var line = 0;
|
9432
|
+
var breakPage = function breakPage() {
|
9413
9433
|
doc.addPage();
|
9414
9434
|
line = 20;
|
9415
|
-
}
|
9416
|
-
var
|
9417
|
-
|
9418
|
-
|
9419
|
-
|
9420
|
-
|
9421
|
-
|
9422
|
-
|
9423
|
-
|
9424
|
-
|
9425
|
-
|
9426
|
-
|
9427
|
-
|
9428
|
-
|
9429
|
-
|
9430
|
-
|
9431
|
-
|
9435
|
+
};
|
9436
|
+
var imgWidth = WIDTH_PAPER;
|
9437
|
+
var chartWidth = WIDTH_PAPER - 20;
|
9438
|
+
return Promise.resolve(html2canvas(headerCanvas)).then(function (header) {
|
9439
|
+
function _temp21() {
|
9440
|
+
doc.save("download.pdf");
|
9441
|
+
}
|
9442
|
+
var imgHeaderHeight = header.height * imgWidth / header.width;
|
9443
|
+
var imgHeaderData = header.toDataURL('image/png');
|
9444
|
+
doc.addImage(imgHeaderData, 'PNG', 0, 0, imgWidth, imgHeaderHeight);
|
9445
|
+
line += imgHeaderHeight;
|
9446
|
+
if (line > HEIGHT_PAPER) breakPage();
|
9447
|
+
var _temp20 = function () {
|
9448
|
+
if (canvas && canvas.childElementCount > 0) {
|
9449
|
+
var _index = 0;
|
9450
|
+
var _temp19 = _for(function () {
|
9451
|
+
return _index < canvas.childElementCount;
|
9452
|
+
}, function () {
|
9453
|
+
return _index++;
|
9454
|
+
}, function () {
|
9455
|
+
function _temp18() {
|
9456
|
+
function _temp16() {
|
9457
|
+
line += 20;
|
9458
|
+
}
|
9459
|
+
var _temp15 = function () {
|
9460
|
+
if (printContainerEls.length) {
|
9461
|
+
var _temp14 = _forTo(printContainerEls, function (i) {
|
9462
|
+
function _temp13() {
|
9463
|
+
var printHeader = function printHeader(top) {
|
9464
|
+
if (top === void 0) {
|
9465
|
+
top = 0;
|
9466
|
+
}
|
9467
|
+
try {
|
9468
|
+
if (!printHeaderCanvas) return Promise.resolve();
|
9469
|
+
var _height = printHeaderCanvas.height * chartWidth / printHeaderCanvas.width;
|
9470
|
+
var _data = printHeaderCanvas.toDataURL('image/png');
|
9471
|
+
line += top;
|
9472
|
+
if (line + _height > HEIGHT_PAPER) breakPage();
|
9473
|
+
doc.addImage(_data, 'PNG', 10, line, chartWidth, _height);
|
9474
|
+
line += _height;
|
9475
|
+
return Promise.resolve();
|
9476
|
+
} catch (e) {
|
9477
|
+
return Promise.reject(e);
|
9478
|
+
}
|
9479
|
+
};
|
9480
|
+
return Promise.resolve(printHeader(10)).then(function () {
|
9481
|
+
var printContents = printContainerEl.querySelectorAll("." + PrintContentClassName);
|
9482
|
+
if (!printContents.length) return;
|
9483
|
+
var _temp11 = _forTo(printContents, function (j) {
|
9484
|
+
var rowItem = printContents[j];
|
9485
|
+
return Promise.resolve(html2canvas(rowItem)).then(function (rowItemCanvas) {
|
9486
|
+
function _temp10() {
|
9487
|
+
doc.addImage(data, 'PNG', 10, line, chartWidth, height);
|
9488
|
+
line += height;
|
9489
|
+
}
|
9490
|
+
var height = rowItemCanvas.height * chartWidth / rowItemCanvas.width;
|
9491
|
+
var data = rowItemCanvas.toDataURL('image/png');
|
9492
|
+
var _temp9 = function () {
|
9493
|
+
if (line + height > HEIGHT_PAPER) {
|
9494
|
+
breakPage();
|
9495
|
+
return Promise.resolve(printHeader()).then(function () {});
|
9496
|
+
}
|
9497
|
+
}();
|
9498
|
+
return _temp9 && _temp9.then ? _temp9.then(_temp10) : _temp10(_temp9);
|
9499
|
+
});
|
9500
|
+
});
|
9501
|
+
if (_temp11 && _temp11.then) return _temp11.then(function () {});
|
9502
|
+
});
|
9503
|
+
}
|
9504
|
+
var printContainerEl = printContainerEls[i];
|
9505
|
+
var printHeaderEl = printContainerEl.querySelector("." + PrintHeaderClassName);
|
9506
|
+
var printHeaderCanvas = null;
|
9507
|
+
var _temp12 = function () {
|
9508
|
+
if (printHeaderEl) {
|
9509
|
+
return Promise.resolve(html2canvas(printHeaderEl)).then(function (_html2canvas) {
|
9510
|
+
printHeaderCanvas = _html2canvas;
|
9511
|
+
});
|
9512
|
+
}
|
9513
|
+
}();
|
9514
|
+
return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
|
9515
|
+
});
|
9516
|
+
if (_temp14 && _temp14.then) return _temp14.then(function () {});
|
9517
|
+
} else {
|
9518
|
+
return Promise.resolve(html2canvas(chart)).then(function (chartCanvas) {
|
9519
|
+
var imgBodyHeight = chartCanvas.height * chartWidth / chartCanvas.width;
|
9520
|
+
var imgBodyData = chartCanvas.toDataURL('image/png');
|
9521
|
+
line += 10;
|
9522
|
+
if (line + imgBodyHeight > HEIGHT_PAPER) breakPage();
|
9523
|
+
doc.addImage(imgBodyData, 'PNG', 10, line, chartWidth, imgBodyHeight);
|
9524
|
+
line += imgBodyHeight;
|
9525
|
+
});
|
9526
|
+
}
|
9527
|
+
}();
|
9528
|
+
return _temp15 && _temp15.then ? _temp15.then(_temp16) : _temp16(_temp15);
|
9432
9529
|
}
|
9433
|
-
|
9434
|
-
|
9530
|
+
var chart = canvas.children.item(_index);
|
9531
|
+
if (chart.getAttribute("id") === "header-canvas") return;
|
9532
|
+
var chartTitle = chart.querySelector(".chart-title");
|
9533
|
+
var printContainerEls = chart.querySelectorAll("." + PrintContainerClassName);
|
9534
|
+
var _temp17 = function () {
|
9535
|
+
if (chartTitle && printContainerEls.length) {
|
9536
|
+
return Promise.resolve(html2canvas(chartTitle)).then(function (printChartTitleCanvas) {
|
9537
|
+
var height = printChartTitleCanvas.height * chartWidth / printChartTitleCanvas.width;
|
9538
|
+
var data = printChartTitleCanvas.toDataURL('image/png');
|
9539
|
+
if (line + height + 10 > HEIGHT_PAPER) breakPage();else line + 10;
|
9540
|
+
doc.addImage(data, 'PNG', 10, line, chartWidth, height);
|
9541
|
+
line += height;
|
9542
|
+
});
|
9543
|
+
}
|
9544
|
+
}();
|
9545
|
+
return _temp17 && _temp17.then ? _temp17.then(_temp18) : _temp18(_temp17);
|
9435
9546
|
});
|
9436
|
-
|
9437
|
-
|
9438
|
-
}
|
9439
|
-
|
9440
|
-
|
9547
|
+
if (_temp19 && _temp19.then) return _temp19.then(function () {});
|
9548
|
+
}
|
9549
|
+
}();
|
9550
|
+
return _temp20 && _temp20.then ? _temp20.then(_temp21) : _temp21(_temp20);
|
9551
|
+
});
|
9552
|
+
}, function (error) {
|
9553
|
+
console.log({
|
9554
|
+
error: error
|
9555
|
+
});
|
9556
|
+
toast.error("Print pdf failure!");
|
9441
9557
|
});
|
9558
|
+
return Promise.resolve(_temp22 && _temp22.then ? _temp22.then(_temp23) : _temp23(_temp22));
|
9442
9559
|
} catch (e) {
|
9443
9560
|
return Promise.reject(e);
|
9444
9561
|
}
|
@@ -10941,7 +11058,8 @@ function CreateNewQuestionDialog(_ref) {
|
|
10941
11058
|
function MyAnswer(_ref) {
|
10942
11059
|
var data = _ref.data,
|
10943
11060
|
categories = _ref.categories,
|
10944
|
-
isStudent = _ref.isStudent
|
11061
|
+
isStudent = _ref.isStudent,
|
11062
|
+
isPrint = _ref.isPrint;
|
10945
11063
|
var _useCreateQuestionDia = useCreateQuestionDialog(),
|
10946
11064
|
handleCreateQuestion = _useCreateQuestionDia.handleCreateQuestion,
|
10947
11065
|
openCreateQuestionDialog = _useCreateQuestionDia.openCreateQuestionDialog,
|
@@ -10958,94 +11076,8 @@ function MyAnswer(_ref) {
|
|
10958
11076
|
handleSelectQuestionOrder(id);
|
10959
11077
|
toggleCreateQuestion();
|
10960
11078
|
};
|
10961
|
-
|
10962
|
-
|
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) {
|
11079
|
+
var renderQuestions = function renderQuestions(questions) {
|
11080
|
+
return questions.map(function (question, index) {
|
11049
11081
|
return React.createElement("div", {
|
11050
11082
|
style: isOpenTime[question.id] ? {
|
11051
11083
|
borderTop: index !== 0 ? "1px solid #E4E7EC" : "",
|
@@ -11140,7 +11172,108 @@ function MyAnswer(_ref) {
|
|
11140
11172
|
}, React.createElement(iconChat, {
|
11141
11173
|
color: "#5458D5"
|
11142
11174
|
})))));
|
11143
|
-
})
|
11175
|
+
});
|
11176
|
+
};
|
11177
|
+
var renderPrintQuestions = function renderPrintQuestions(questions) {
|
11178
|
+
var chunkedQuestions = _.chunk(questions, 5);
|
11179
|
+
return chunkedQuestions.map(function (i, index) {
|
11180
|
+
return React.createElement("div", {
|
11181
|
+
key: index,
|
11182
|
+
className: PrintContentClassName
|
11183
|
+
}, renderQuestions(i));
|
11184
|
+
});
|
11185
|
+
};
|
11186
|
+
return React.createElement("div", {
|
11187
|
+
className: styles$4["myanswer"]
|
11188
|
+
}, formattedData && formattedData.length > 0 && formattedData.map(function (item) {
|
11189
|
+
return React.createElement("div", {
|
11190
|
+
key: item.category.id,
|
11191
|
+
className: isPrint ? PrintContainerClassName : ""
|
11192
|
+
}, React.createElement("div", {
|
11193
|
+
className: isPrint ? PrintHeaderClassName : ""
|
11194
|
+
}, React.createElement(Stack, {
|
11195
|
+
bgcolor: "#F9FAFB",
|
11196
|
+
flexDirection: "row",
|
11197
|
+
padding: "12px",
|
11198
|
+
className: styles$4["myAnswerItem"] + " " + styles["noGutters"]
|
11199
|
+
}, React.createElement("div", {
|
11200
|
+
className: styles["custom-col-2"],
|
11201
|
+
style: {
|
11202
|
+
display: "flex",
|
11203
|
+
gap: "4px"
|
11204
|
+
}
|
11205
|
+
}, React.createElement(Typography, {
|
11206
|
+
sx: {
|
11207
|
+
fontSize: "13px",
|
11208
|
+
fontWeight: 600,
|
11209
|
+
color: "#97A1AF"
|
11210
|
+
}
|
11211
|
+
}, "\uBB38\uC81C \uBC88\uD638")), React.createElement("div", {
|
11212
|
+
className: styles["custom-col-2"],
|
11213
|
+
style: {
|
11214
|
+
display: "flex",
|
11215
|
+
gap: "4px"
|
11216
|
+
}
|
11217
|
+
}, React.createElement(Typography, {
|
11218
|
+
sx: {
|
11219
|
+
fontSize: "13px",
|
11220
|
+
fontWeight: 600,
|
11221
|
+
color: "#97A1AF"
|
11222
|
+
}
|
11223
|
+
}, "\uC815\uB2F5")), React.createElement("div", {
|
11224
|
+
className: styles["custom-col-2"],
|
11225
|
+
style: {
|
11226
|
+
display: "flex",
|
11227
|
+
gap: "4px"
|
11228
|
+
}
|
11229
|
+
}, React.createElement(Typography, {
|
11230
|
+
sx: {
|
11231
|
+
fontSize: "13px",
|
11232
|
+
fontWeight: 600,
|
11233
|
+
color: "#97A1AF"
|
11234
|
+
}
|
11235
|
+
}, "\uD480\uC774 \uC2DC\uAC04")), React.createElement("div", {
|
11236
|
+
className: styles["custom-col-2"],
|
11237
|
+
style: {
|
11238
|
+
display: "flex",
|
11239
|
+
alignItems: "center",
|
11240
|
+
gap: "4px"
|
11241
|
+
}
|
11242
|
+
}, React.createElement(Typography, {
|
11243
|
+
sx: {
|
11244
|
+
fontSize: "13px",
|
11245
|
+
fontWeight: 600,
|
11246
|
+
color: "#97A1AF"
|
11247
|
+
}
|
11248
|
+
}, "\uC0C1\uC704\uAD8C \uBE44\uAD50")), React.createElement("div", {
|
11249
|
+
className: styles["custom-col-2"],
|
11250
|
+
style: {
|
11251
|
+
display: "flex",
|
11252
|
+
alignItems: "center",
|
11253
|
+
gap: "4px"
|
11254
|
+
}
|
11255
|
+
}, React.createElement(Typography, {
|
11256
|
+
sx: {
|
11257
|
+
fontSize: "13px",
|
11258
|
+
fontWeight: 600,
|
11259
|
+
color: "#97A1AF"
|
11260
|
+
}
|
11261
|
+
}, "\uC804\uCCB4 \uC815\uB2F5\uB960"))), React.createElement("div", {
|
11262
|
+
className: styles$4["titleMyAnswer2"]
|
11263
|
+
}, React.createElement(Typography, {
|
11264
|
+
sx: {
|
11265
|
+
color: "#97A1AF",
|
11266
|
+
fontSize: "12px"
|
11267
|
+
}
|
11268
|
+
}, "\uCE74\uD14C\uACE0\uB9AC"), React.createElement(Typography, {
|
11269
|
+
sx: {
|
11270
|
+
color: "#414E62",
|
11271
|
+
fontSize: "12px",
|
11272
|
+
fontWeight: 700
|
11273
|
+
}
|
11274
|
+
}, item.category.name))), React.createElement("div", {
|
11275
|
+
className: styles$4["contentMyAnswer"]
|
11276
|
+
}, isPrint ? renderPrintQuestions(item.questions) : renderQuestions(item.questions)));
|
11144
11277
|
}), React.createElement(CreateNewQuestionDialog, {
|
11145
11278
|
questions: data === null || data === void 0 ? void 0 : data.questions,
|
11146
11279
|
questionOrderSelected: questionOrderSelected,
|
@@ -11193,10 +11326,74 @@ var iconBtnNextChart = function iconBtnNextChart(_ref) {
|
|
11193
11326
|
}));
|
11194
11327
|
};
|
11195
11328
|
|
11196
|
-
function CompareGrass(_ref) {
|
11197
|
-
var effectSize = _ref.effectSize
|
11329
|
+
var CompareGrass = function CompareGrass(_ref) {
|
11330
|
+
var effectSize = _ref.effectSize,
|
11331
|
+
isPrint = _ref.isPrint;
|
11332
|
+
var renderTableBody = function renderTableBody(effectSize) {
|
11333
|
+
return effectSize.map(function (item, index) {
|
11334
|
+
return React.createElement("tr", {
|
11335
|
+
id: "print-item",
|
11336
|
+
key: item.id,
|
11337
|
+
style: index < effectSize.length - 1 ? {
|
11338
|
+
borderBottom: "1px solid #e4e7ec"
|
11339
|
+
} : {}
|
11340
|
+
}, React.createElement("td", {
|
11341
|
+
className: styles$4["tdcolumn1"]
|
11342
|
+
}, "\uBB38\uC81C ", item.questionOrder + 1), React.createElement("td", {
|
11343
|
+
style: {
|
11344
|
+
textAlign: "center",
|
11345
|
+
color: "#202B37"
|
11346
|
+
}
|
11347
|
+
}, item.correctAnswers, "\uBC88"), React.createElement("td", {
|
11348
|
+
className: styles$4["tdcolumn3"],
|
11349
|
+
style: {
|
11350
|
+
color: item.isCorrect ? "#1EE288" : "#F34B4B"
|
11351
|
+
}
|
11352
|
+
}, item.selectedAnswers ? item.selectedAnswers + "\uBC88" : ""), React.createElement("td", {
|
11353
|
+
style: {
|
11354
|
+
textAlign: "center",
|
11355
|
+
color: "#414E62"
|
11356
|
+
}
|
11357
|
+
}, item.mostSelectedAnswers ? item.mostSelectedAnswers + "\uBC88" : ""), React.createElement("td", null, React.createElement("div", {
|
11358
|
+
className: styles$4["classification"]
|
11359
|
+
}, item.problemCategories.map(function (problem, index) {
|
11360
|
+
return React.createElement("div", {
|
11361
|
+
key: index
|
11362
|
+
}, problem === 1 && React.createElement("span", {
|
11363
|
+
style: {
|
11364
|
+
border: "1px solid #1EE288"
|
11365
|
+
}
|
11366
|
+
}, "\uC26C\uC6B4 \uBB38\uC81C"), problem === 3 && React.createElement("span", {
|
11367
|
+
style: {
|
11368
|
+
border: "1px solid #FDDB64"
|
11369
|
+
}
|
11370
|
+
}, "\uD568\uC815 \uBB38\uC81C"), problem === 2 && React.createElement("span", {
|
11371
|
+
style: {
|
11372
|
+
border: "1px solid #F34B4B"
|
11373
|
+
}
|
11374
|
+
}, "\uBCC0\uBCC4\uB825 \uBB38\uC81C"), problem === 0 && React.createElement("span", {
|
11375
|
+
style: {
|
11376
|
+
border: "1px solid #DDDDDD"
|
11377
|
+
}
|
11378
|
+
}, "\uC77C\uBC18\uC801\uC778 \uBB38\uC81C"), problem === 4 && React.createElement("span", {
|
11379
|
+
style: {
|
11380
|
+
border: "1px solid #FF0000"
|
11381
|
+
}
|
11382
|
+
}, "\uC5B4\uB824\uC6B4 \uBB38\uC81C"));
|
11383
|
+
}))));
|
11384
|
+
});
|
11385
|
+
};
|
11386
|
+
var renderPrintTableBody = function renderPrintTableBody(effectSize) {
|
11387
|
+
var chunkedEffectSizeQuestions = _.chunk(effectSize, 5);
|
11388
|
+
return chunkedEffectSizeQuestions.map(function (i, index) {
|
11389
|
+
return React.createElement("tbody", {
|
11390
|
+
key: index,
|
11391
|
+
className: PrintContentClassName
|
11392
|
+
}, renderTableBody(i));
|
11393
|
+
});
|
11394
|
+
};
|
11198
11395
|
return React.createElement("div", {
|
11199
|
-
className: styles$4["compareGrass"]
|
11396
|
+
className: styles$4["compareGrass"] + " " + (isPrint ? PrintContainerClassName : "")
|
11200
11397
|
}, React.createElement("div", {
|
11201
11398
|
className: styles$4["tableCompareGrass"]
|
11202
11399
|
}, React.createElement("div", {
|
@@ -11208,7 +11405,8 @@ function CompareGrass(_ref) {
|
|
11208
11405
|
}, React.createElement("thead", {
|
11209
11406
|
style: {
|
11210
11407
|
borderBottom: "1px solid #E4E7EC"
|
11211
|
-
}
|
11408
|
+
},
|
11409
|
+
className: isPrint ? PrintHeaderClassName : ""
|
11212
11410
|
}, React.createElement("tr", null, React.createElement("th", {
|
11213
11411
|
className: styles$4["thcolumn1"]
|
11214
11412
|
}, "\uBB38\uC81C \uBC88\uD638"), React.createElement("th", {
|
@@ -11227,58 +11425,8 @@ function CompareGrass(_ref) {
|
|
11227
11425
|
style: {
|
11228
11426
|
textAlign: "center"
|
11229
11427
|
}
|
11230
|
-
}, "\uBB38\uC81C \uBD84\uB958"))), React.createElement("tbody", null, effectSize
|
11231
|
-
|
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
|
-
}
|
11428
|
+
}, "\uBB38\uC81C \uBD84\uB958"))), isPrint ? renderPrintTableBody(effectSize) : React.createElement("tbody", null, renderTableBody(effectSize))))));
|
11429
|
+
};
|
11282
11430
|
|
11283
11431
|
var iconUpArrow = function iconUpArrow(_ref) {
|
11284
11432
|
var _ref$width = _ref.width,
|
@@ -11367,20 +11515,75 @@ var iconAssignedQuestions = function iconAssignedQuestions(_ref) {
|
|
11367
11515
|
}));
|
11368
11516
|
};
|
11369
11517
|
|
11370
|
-
function TrickyProblem(_ref) {
|
11518
|
+
var TrickyProblem = function TrickyProblem(_ref) {
|
11371
11519
|
var data = _ref.data,
|
11372
11520
|
openProblem = _ref.openProblem,
|
11373
|
-
changeOpen = _ref.changeOpen
|
11521
|
+
changeOpen = _ref.changeOpen,
|
11522
|
+
isPrint = _ref.isPrint;
|
11374
11523
|
var inCorrectQuestions = data.questions.filter(function (i) {
|
11375
11524
|
return i.isStar && !i.isCorrect;
|
11376
11525
|
});
|
11377
11526
|
var correctQuestions = data.questions.filter(function (i) {
|
11378
11527
|
return i.isStar && i.isCorrect;
|
11379
11528
|
});
|
11529
|
+
var renderProblems = function renderProblems() {
|
11530
|
+
return React.createElement(Fragment$1, null, React.createElement("div", {
|
11531
|
+
className: styles$4["titleTrickyProblem"]
|
11532
|
+
}, React.createElement(iconX, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uD2C0\uB9B0 \uBB38\uC81C")), React.createElement("div", {
|
11533
|
+
className: styles$4["wrongQuestions"]
|
11534
|
+
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11535
|
+
return React.createElement("span", {
|
11536
|
+
key: question.id,
|
11537
|
+
className: styles$4["question"]
|
11538
|
+
}, question.questionOrder + 1, "\uBC88");
|
11539
|
+
}), !data.questions.length && React.createElement("div", {
|
11540
|
+
className: styles$4["noData"]
|
11541
|
+
}, "\uB370\uC774\uD130 \uC5C6\uC74C")), React.createElement("div", {
|
11542
|
+
className: styles$4["titleTrickyProblem"]
|
11543
|
+
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uB9DE\uCD98 \uBB38\uC81C")), React.createElement("div", {
|
11544
|
+
className: styles$4["assignedQuestions"]
|
11545
|
+
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11546
|
+
return React.createElement("div", {
|
11547
|
+
key: question.id,
|
11548
|
+
className: styles$4["question"]
|
11549
|
+
}, question.questionOrder + 1, "\uBC88");
|
11550
|
+
}), !data.questions.length && React.createElement("div", {
|
11551
|
+
className: styles$4["noData"]
|
11552
|
+
}, "\uB370\uC774\uD130 \uC5C6\uC74C")));
|
11553
|
+
};
|
11554
|
+
var renderPrintProblems = function renderPrintProblems() {
|
11555
|
+
return React.createElement(Fragment$1, null, React.createElement("div", {
|
11556
|
+
className: PrintContentClassName
|
11557
|
+
}, React.createElement("div", {
|
11558
|
+
className: styles$4["titleTrickyProblem"]
|
11559
|
+
}, React.createElement(iconX, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uD2C0\uB9B0 \uBB38\uC81C")), React.createElement("div", {
|
11560
|
+
className: styles$4["wrongQuestions"]
|
11561
|
+
}, !!inCorrectQuestions.length && inCorrectQuestions.map(function (question) {
|
11562
|
+
return React.createElement("span", {
|
11563
|
+
key: question.id,
|
11564
|
+
className: styles$4["question"]
|
11565
|
+
}, question.questionOrder + 1, "\uBC88");
|
11566
|
+
}), !data.questions.length && React.createElement("div", {
|
11567
|
+
className: styles$4["noData"]
|
11568
|
+
}, "\uB370\uC774\uD130 \uC5C6\uC74C"))), React.createElement("div", {
|
11569
|
+
className: PrintContentClassName
|
11570
|
+
}, React.createElement("div", {
|
11571
|
+
className: styles$4["titleTrickyProblem"]
|
11572
|
+
}, React.createElement(iconAssignedQuestions, null), React.createElement("span", null, "\uBCC4\uD45C \uCE5C \uBB38\uC81C \uC911 \uB9DE\uCD98 \uBB38\uC81C")), React.createElement("div", {
|
11573
|
+
className: styles$4["assignedQuestions"]
|
11574
|
+
}, !!correctQuestions.length && correctQuestions.map(function (question) {
|
11575
|
+
return React.createElement("div", {
|
11576
|
+
key: question.id,
|
11577
|
+
className: styles$4["question"]
|
11578
|
+
}, question.questionOrder + 1, "\uBC88");
|
11579
|
+
}), !data.questions.length && React.createElement("div", {
|
11580
|
+
className: styles$4["noData"]
|
11581
|
+
}, "\uB370\uC774\uD130 \uC5C6\uC74C"))));
|
11582
|
+
};
|
11380
11583
|
return React.createElement("div", {
|
11381
|
-
className: styles$4["wrapperProblem"]
|
11584
|
+
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11382
11585
|
}, React.createElement("div", {
|
11383
|
-
className: !openProblem.problem1 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
|
11586
|
+
className: (!openProblem.problem1 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11384
11587
|
onClick: function onClick() {
|
11385
11588
|
return changeOpen(_extends({}, openProblem, {
|
11386
11589
|
problem1: !openProblem.problem1
|
@@ -11392,41 +11595,53 @@ function TrickyProblem(_ref) {
|
|
11392
11595
|
fontSize: "14px",
|
11393
11596
|
fontWeight: 700
|
11394
11597
|
}
|
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,
|
11396
|
-
|
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
|
-
}
|
11598
|
+
}, "\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()));
|
11599
|
+
};
|
11419
11600
|
|
11420
|
-
function ProtractedProblem(_ref) {
|
11601
|
+
var ProtractedProblem = function ProtractedProblem(_ref) {
|
11421
11602
|
var data = _ref.data,
|
11422
11603
|
openProblem = _ref.openProblem,
|
11423
|
-
changeOpen = _ref.changeOpen
|
11604
|
+
changeOpen = _ref.changeOpen,
|
11605
|
+
isPrint = _ref.isPrint;
|
11424
11606
|
var _useTranslation = useTranslation(),
|
11425
11607
|
t = _useTranslation.t;
|
11608
|
+
var renderQuestions = function renderQuestions(data) {
|
11609
|
+
return data.map(function (item) {
|
11610
|
+
return React.createElement("div", {
|
11611
|
+
className: styles$4["content"],
|
11612
|
+
key: item.id
|
11613
|
+
}, React.createElement("div", {
|
11614
|
+
className: styles$4["contentColumn1"]
|
11615
|
+
}, React.createElement("div", null, React.createElement("span", {
|
11616
|
+
className: styles$4["span1"]
|
11617
|
+
}, "\uBB38\uC81C"), React.createElement("span", {
|
11618
|
+
className: styles$4["span2"]
|
11619
|
+
}, item.questionOrder + 1, "\uBC88"))), React.createElement("div", {
|
11620
|
+
className: styles$4["contentColumn2"]
|
11621
|
+
}, React.createElement("div", null, React.createElement("span", {
|
11622
|
+
className: styles$4["span1"]
|
11623
|
+
}, "\uB098\uC758 \uC2DC\uAC04"), React.createElement("span", {
|
11624
|
+
className: styles$4["span2"]
|
11625
|
+
}, "\uC0C1\uC704\uAD8C \uC2DC\uAC04")), React.createElement("div", null, React.createElement("span", {
|
11626
|
+
className: styles$4["duration"]
|
11627
|
+
}, formatTimeSecond(item.duration, t)), React.createElement("span", {
|
11628
|
+
className: styles$4["topDuration"]
|
11629
|
+
}, formatTimeSecond(item.topDuration, t)))));
|
11630
|
+
});
|
11631
|
+
};
|
11632
|
+
var renderPrintQuestions = function renderPrintQuestions() {
|
11633
|
+
var chunkedData = _.chunk(data, 5);
|
11634
|
+
return chunkedData.map(function (i, index) {
|
11635
|
+
return React.createElement("div", {
|
11636
|
+
key: index,
|
11637
|
+
className: PrintContentClassName
|
11638
|
+
}, renderQuestions(i));
|
11639
|
+
});
|
11640
|
+
};
|
11426
11641
|
return React.createElement("div", {
|
11427
|
-
className: styles$4["wrapperProblem"]
|
11642
|
+
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11428
11643
|
}, React.createElement("div", {
|
11429
|
-
className: !openProblem.problem2 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
|
11644
|
+
className: (!openProblem.problem2 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11430
11645
|
onClick: function onClick() {
|
11431
11646
|
return changeOpen(_extends({}, openProblem, {
|
11432
11647
|
problem2: !openProblem.problem2
|
@@ -11440,45 +11655,58 @@ function ProtractedProblem(_ref) {
|
|
11440
11655
|
}
|
11441
11656
|
}, "\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
11657
|
className: styles$4["wrapperContent"]
|
11443
|
-
}, data.length ?
|
11444
|
-
|
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"]
|
11658
|
+
}, data.length ? isPrint ? renderPrintQuestions() : renderQuestions(data) : React.createElement("div", {
|
11659
|
+
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11466
11660
|
}, "\uB370\uC774\uD130 \uC5C6\uC74C"))));
|
11467
|
-
}
|
11661
|
+
};
|
11468
11662
|
|
11469
|
-
function Vulnerable(_ref) {
|
11663
|
+
var Vulnerable = function Vulnerable(_ref) {
|
11470
11664
|
var data = _ref.data,
|
11471
11665
|
openProblem = _ref.openProblem,
|
11472
|
-
changeOpen = _ref.changeOpen
|
11666
|
+
changeOpen = _ref.changeOpen,
|
11667
|
+
isPrint = _ref.isPrint;
|
11473
11668
|
var incorrectQuestions = data.questions.filter(function (i) {
|
11474
11669
|
return i.selectedAnswers !== "" && i.isCorrect === false;
|
11475
11670
|
}).sort(function (q1, q2) {
|
11476
11671
|
return q2.overallCorrectRate === q1.overallCorrectRate ? q1.questionOrder - q2.questionOrder : q2.overallCorrectRate - q1.overallCorrectRate;
|
11477
11672
|
});
|
11673
|
+
var renderQuestions = function renderQuestions(questions) {
|
11674
|
+
return questions.map(function (question) {
|
11675
|
+
return React.createElement("div", {
|
11676
|
+
className: styles$4["content"],
|
11677
|
+
key: question.id
|
11678
|
+
}, React.createElement("div", {
|
11679
|
+
className: styles$4["contentColumn1"]
|
11680
|
+
}, React.createElement("div", null, React.createElement("span", {
|
11681
|
+
className: styles$4["span1"]
|
11682
|
+
}, "\uBB38\uC81C"), React.createElement("span", {
|
11683
|
+
className: styles$4["span2"]
|
11684
|
+
}, question.questionOrder + 1, "\uBC88"))), React.createElement("div", {
|
11685
|
+
className: styles$4["contentColumn2"]
|
11686
|
+
}, React.createElement("div", null, React.createElement("span", {
|
11687
|
+
className: styles$4["span1"]
|
11688
|
+
}, "\uC804\uCCB4 \uC815\uB2F5\uB960"), React.createElement("span", {
|
11689
|
+
className: styles$4["span2"]
|
11690
|
+
}, "\uB098\uC758 \uC624\uB2F5")), React.createElement("div", null, React.createElement("span", {
|
11691
|
+
className: styles$4["overallCorrectRate"]
|
11692
|
+
}, question.overallCorrectRate.toFixed(2), "%"), React.createElement("span", {
|
11693
|
+
className: styles$4["answer"]
|
11694
|
+
}, question.selectedAnswers, "\uBC88 (\uC815\uB2F5", " ", question.correctAnswers, "\uBC88)"))));
|
11695
|
+
});
|
11696
|
+
};
|
11697
|
+
var renderPrintQuestions = function renderPrintQuestions(questions) {
|
11698
|
+
var chunkedQuestions = _.chunk(questions, 5);
|
11699
|
+
return chunkedQuestions.map(function (i, index) {
|
11700
|
+
return React.createElement("div", {
|
11701
|
+
key: index,
|
11702
|
+
className: PrintContentClassName
|
11703
|
+
}, renderQuestions(i));
|
11704
|
+
});
|
11705
|
+
};
|
11478
11706
|
return React.createElement("div", {
|
11479
|
-
className: styles$4["wrapperProblem"]
|
11707
|
+
className: styles$4["wrapperProblem"] + " " + PrintContainerClassName
|
11480
11708
|
}, React.createElement("div", {
|
11481
|
-
className: !openProblem.problem3 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
|
11709
|
+
className: (!openProblem.problem3 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11482
11710
|
onClick: function onClick() {
|
11483
11711
|
return changeOpen(_extends({}, openProblem, {
|
11484
11712
|
problem3: !openProblem.problem3
|
@@ -11492,40 +11720,51 @@ function Vulnerable(_ref) {
|
|
11492
11720
|
}
|
11493
11721
|
}, "\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
11722
|
className: styles$4["wrapperContent"]
|
11495
|
-
},
|
11496
|
-
|
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"]
|
11723
|
+
}, isPrint ? renderPrintQuestions(incorrectQuestions) : renderQuestions(incorrectQuestions), !incorrectQuestions.length && React.createElement("div", {
|
11724
|
+
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11518
11725
|
}, "\uB370\uC774\uD130 \uC5C6\uC74C"))));
|
11519
|
-
}
|
11726
|
+
};
|
11520
11727
|
|
11521
|
-
function GradesByTerritory(_ref) {
|
11728
|
+
var GradesByTerritory = function GradesByTerritory(_ref) {
|
11522
11729
|
var data = _ref.data,
|
11523
11730
|
openProblem = _ref.openProblem,
|
11524
|
-
changeOpen = _ref.changeOpen
|
11731
|
+
changeOpen = _ref.changeOpen,
|
11732
|
+
isPrint = _ref.isPrint;
|
11733
|
+
var renderCategories = function renderCategories(data) {
|
11734
|
+
return data.map(function (item) {
|
11735
|
+
var trackStyle = {
|
11736
|
+
left: item.percentageAmongStudents + "%"
|
11737
|
+
};
|
11738
|
+
return React.createElement("div", {
|
11739
|
+
className: styles$4["contentProblem"],
|
11740
|
+
key: item.id
|
11741
|
+
}, React.createElement("div", {
|
11742
|
+
className: styles$4["labelProblem"]
|
11743
|
+
}, React.createElement("span", {
|
11744
|
+
className: styles$4["name"]
|
11745
|
+
}, item.name), React.createElement("div", {
|
11746
|
+
className: styles$4["percent"]
|
11747
|
+
}, React.createElement("span", null, item.percentageAmongStudents.toFixed(2), "%"), React.createElement("span", null, item.totalCorrectQuestions, "/", item.totalQuestions, "\uBB38\uC81C"))), React.createElement("div", {
|
11748
|
+
className: styles$4["slider"]
|
11749
|
+
}, React.createElement("div", null, React.createElement("span", {
|
11750
|
+
className: styles$4["track"],
|
11751
|
+
style: trackStyle
|
11752
|
+
}))));
|
11753
|
+
});
|
11754
|
+
};
|
11755
|
+
var renderPrintCategories = function renderPrintCategories() {
|
11756
|
+
var chunkedCategories = _.chunk(data, 5);
|
11757
|
+
return chunkedCategories.map(function (i, index) {
|
11758
|
+
return React.createElement("div", {
|
11759
|
+
key: index,
|
11760
|
+
className: PrintContentClassName
|
11761
|
+
}, renderCategories(i));
|
11762
|
+
});
|
11763
|
+
};
|
11525
11764
|
return React.createElement("div", {
|
11526
|
-
className: styles$4["wrapperProblem"]
|
11765
|
+
className: styles$4["wrapperProblem"] + " " + (isPrint ? PrintContainerClassName : "")
|
11527
11766
|
}, React.createElement("div", {
|
11528
|
-
className: !openProblem.problem4 ? styles$4["titleProblemClose"] : styles$4["titleProblem"],
|
11767
|
+
className: (!openProblem.problem4 ? styles$4["titleProblemClose"] : styles$4["titleProblem"]) + " " + (isPrint ? PrintHeaderClassName : ""),
|
11529
11768
|
onClick: function onClick() {
|
11530
11769
|
return changeOpen(_extends({}, openProblem, {
|
11531
11770
|
problem4: !openProblem.problem4
|
@@ -11539,28 +11778,10 @@ function GradesByTerritory(_ref) {
|
|
11539
11778
|
}
|
11540
11779
|
}, "\uC601\uC5ED\uBCC4 \uC131\uC801"), openProblem.problem4 ? React.createElement(iconUpArrow, null) : React.createElement(iconDownArrow, null)), openProblem.problem4 && React.createElement("div", {
|
11541
11780
|
className: styles$4["wrappContentProblem"]
|
11542
|
-
}, data.
|
11543
|
-
|
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"]
|
11781
|
+
}, isPrint ? renderPrintCategories() : renderCategories(data), openProblem.problem4 && !data.length && React.createElement("div", {
|
11782
|
+
className: styles$4["noData"] + " " + (isPrint ? PrintContentClassName : "")
|
11562
11783
|
}, "\uB370\uC774\uD130 \uC5C6\uC74C")));
|
11563
|
-
}
|
11784
|
+
};
|
11564
11785
|
|
11565
11786
|
var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
|
11566
11787
|
var _useState = useState(false),
|
@@ -11789,8 +12010,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
11789
12010
|
}
|
11790
12011
|
}, React.createElement(Grid, {
|
11791
12012
|
container: true,
|
11792
|
-
padding: "24px"
|
11793
|
-
id: "header-canvas"
|
12013
|
+
padding: "24px"
|
11794
12014
|
}, React.createElement(Grid, {
|
11795
12015
|
item: true
|
11796
12016
|
}, resultDatas.courseName && React.createElement(Stack, null, React.createElement(Typography, {
|
@@ -12000,14 +12220,104 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12000
12220
|
className: "position-absolute",
|
12001
12221
|
sx: {
|
12002
12222
|
zIndex: -1,
|
12003
|
-
width: "
|
12223
|
+
width: "1024px"
|
12004
12224
|
},
|
12005
12225
|
id: "canvas"
|
12006
|
-
}, React.createElement(
|
12226
|
+
}, React.createElement(Grid, {
|
12227
|
+
container: true,
|
12228
|
+
padding: "24px",
|
12229
|
+
id: "header-canvas"
|
12230
|
+
}, React.createElement(Grid, {
|
12231
|
+
item: true
|
12232
|
+
}, resultDatas.courseName && React.createElement(Stack, null, React.createElement(Typography, {
|
12233
|
+
sx: {
|
12234
|
+
fontSize: "14px",
|
12235
|
+
fontWeight: 600,
|
12236
|
+
color: "#C3C5FE"
|
12237
|
+
}
|
12238
|
+
}, resultDatas.courseName)), React.createElement(Box, {
|
12239
|
+
display: "flex",
|
12240
|
+
gap: "16px",
|
12241
|
+
flexDirection: "column"
|
12242
|
+
}, React.createElement(Stack, null, React.createElement(Typography, {
|
12243
|
+
sx: {
|
12244
|
+
fontSize: "20px",
|
12245
|
+
fontWeight: 600,
|
12246
|
+
color: "#5458D5"
|
12247
|
+
}
|
12248
|
+
}, resultDatas.title)), React.createElement(Stack, {
|
12249
|
+
flexDirection: "row",
|
12250
|
+
gap: "16px"
|
12251
|
+
}, React.createElement(Stack, null, React.createElement(Typography, {
|
12252
|
+
sx: {
|
12253
|
+
fontSize: "13px",
|
12254
|
+
fontWeight: 600,
|
12255
|
+
color: "#97A1AF"
|
12256
|
+
}
|
12257
|
+
}, t("my_score")), React.createElement(Typography, {
|
12258
|
+
sx: {
|
12259
|
+
fontSize: "14px",
|
12260
|
+
fontWeight: 600,
|
12261
|
+
color: "#5458D5"
|
12262
|
+
}
|
12263
|
+
}, t("score_format", {
|
12264
|
+
score: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.score
|
12265
|
+
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12266
|
+
sx: {
|
12267
|
+
fontSize: "13px",
|
12268
|
+
fontWeight: 600,
|
12269
|
+
color: "#97A1AF"
|
12270
|
+
}
|
12271
|
+
}, t("exam_date")), React.createElement(Typography, {
|
12272
|
+
sx: {
|
12273
|
+
fontSize: "14px",
|
12274
|
+
fontWeight: 600,
|
12275
|
+
color: "#414E62"
|
12276
|
+
}
|
12277
|
+
}, utcToLocalTime(resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.startTime, t("date_format")))), React.createElement(Stack, null, React.createElement(Typography, {
|
12278
|
+
sx: {
|
12279
|
+
fontSize: "13px",
|
12280
|
+
fontWeight: 600,
|
12281
|
+
color: "#97A1AF"
|
12282
|
+
}
|
12283
|
+
}, t("exam_time")), React.createElement(Typography, {
|
12284
|
+
sx: {
|
12285
|
+
fontSize: "14px",
|
12286
|
+
fontWeight: 600,
|
12287
|
+
color: "#414E62"
|
12288
|
+
}
|
12289
|
+
}, 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, {
|
12290
|
+
sx: {
|
12291
|
+
fontSize: "13px",
|
12292
|
+
fontWeight: 600,
|
12293
|
+
color: "#97A1AF"
|
12294
|
+
}
|
12295
|
+
}, t("total_students")), React.createElement(Typography, {
|
12296
|
+
sx: {
|
12297
|
+
fontSize: "14px",
|
12298
|
+
fontWeight: 600,
|
12299
|
+
color: "#414E62"
|
12300
|
+
}
|
12301
|
+
}, t("number_people", {
|
12302
|
+
number: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.totalStudent
|
12303
|
+
}))), React.createElement(Stack, null, React.createElement(Typography, {
|
12304
|
+
sx: {
|
12305
|
+
fontSize: "13px",
|
12306
|
+
fontWeight: 600,
|
12307
|
+
color: "#97A1AF"
|
12308
|
+
}
|
12309
|
+
}, t("teacher_in_charge")), React.createElement(Typography, {
|
12310
|
+
sx: {
|
12311
|
+
fontSize: "14px",
|
12312
|
+
fontWeight: 600,
|
12313
|
+
color: "#414E62"
|
12314
|
+
}
|
12315
|
+
}, resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.teacherName)))))), React.createElement(Stack, {
|
12007
12316
|
display: "flex",
|
12008
12317
|
flexDirection: "column",
|
12009
12318
|
gap: "12px"
|
12010
12319
|
}, React.createElement(Typography, {
|
12320
|
+
className: "chart-title",
|
12011
12321
|
sx: {
|
12012
12322
|
fontSize: "16px",
|
12013
12323
|
fontWeight: 700,
|
@@ -12016,7 +12326,8 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12016
12326
|
}, t(TabList[0].label)), React.createElement(MyAnswer, {
|
12017
12327
|
data: resultDatas,
|
12018
12328
|
categories: categoryResponses,
|
12019
|
-
isStudent: isStudent
|
12329
|
+
isStudent: isStudent,
|
12330
|
+
isPrint: true
|
12020
12331
|
})), React.createElement(Stack, {
|
12021
12332
|
display: "flex",
|
12022
12333
|
flexDirection: "column",
|
@@ -12048,19 +12359,22 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12048
12359
|
gap: "12px",
|
12049
12360
|
marginTop: "24px"
|
12050
12361
|
}, React.createElement(Typography, {
|
12362
|
+
className: "chart-title",
|
12051
12363
|
sx: {
|
12052
12364
|
fontSize: "16px",
|
12053
12365
|
fontWeight: 700,
|
12054
12366
|
color: "#414E62"
|
12055
12367
|
}
|
12056
12368
|
}, t(TabList[2].label)), React.createElement(CompareGrass, {
|
12057
|
-
effectSize: effectSize
|
12369
|
+
effectSize: effectSize,
|
12370
|
+
isPrint: true
|
12058
12371
|
})), React.createElement(Stack, {
|
12059
12372
|
display: "flex",
|
12060
12373
|
flexDirection: "column",
|
12061
12374
|
gap: "12px",
|
12062
12375
|
marginTop: "24px"
|
12063
12376
|
}, React.createElement(Typography, {
|
12377
|
+
className: "chart-title",
|
12064
12378
|
sx: {
|
12065
12379
|
fontSize: "16px",
|
12066
12380
|
fontWeight: 700,
|
@@ -12071,25 +12385,29 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
12071
12385
|
openProblem: _extends({}, openProblem, {
|
12072
12386
|
problem1: true
|
12073
12387
|
}),
|
12074
|
-
changeOpen: setOpenProblem
|
12388
|
+
changeOpen: setOpenProblem,
|
12389
|
+
isPrint: true
|
12075
12390
|
}), React.createElement(Vulnerable, {
|
12076
12391
|
data: resultDatas,
|
12077
12392
|
openProblem: _extends({}, openProblem, {
|
12078
12393
|
problem3: true
|
12079
12394
|
}),
|
12080
|
-
changeOpen: setOpenProblem
|
12395
|
+
changeOpen: setOpenProblem,
|
12396
|
+
isPrint: true
|
12081
12397
|
}), React.createElement(ProtractedProblem, {
|
12082
12398
|
data: longTimeSpend,
|
12083
12399
|
openProblem: _extends({}, openProblem, {
|
12084
12400
|
problem2: true
|
12085
12401
|
}),
|
12086
|
-
changeOpen: setOpenProblem
|
12402
|
+
changeOpen: setOpenProblem,
|
12403
|
+
isPrint: true
|
12087
12404
|
}), React.createElement(GradesByTerritory, {
|
12088
12405
|
data: categoryResponses,
|
12089
12406
|
openProblem: _extends({}, openProblem, {
|
12090
12407
|
problem4: true
|
12091
12408
|
}),
|
12092
|
-
changeOpen: setOpenProblem
|
12409
|
+
changeOpen: setOpenProblem,
|
12410
|
+
isPrint: true
|
12093
12411
|
})))), React.createElement(CreateNewQuestionDialog$1, {
|
12094
12412
|
examSessionId: resultDatas === null || resultDatas === void 0 ? void 0 : resultDatas.examSessionId,
|
12095
12413
|
handleCreateQuestion: handleCreateQuestion,
|