@digabi/exam-engine-core 19.12.2-alpha.8 → 19.14.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/dist/__tests__/examServerApi.d.ts.map +1 -1
  2. package/dist/__tests__/examServerApi.js +2 -1
  3. package/dist/__tests__/examServerApi.js.map +1 -1
  4. package/dist/__tests__/testExamRendering.js +9 -1
  5. package/dist/__tests__/testExamRendering.js.map +1 -1
  6. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  7. package/dist/assets/logo.png +0 -0
  8. package/dist/components/context/CommonExamContext.d.ts +0 -1
  9. package/dist/components/context/CommonExamContext.d.ts.map +1 -1
  10. package/dist/components/context/CommonExamContext.js +2 -3
  11. package/dist/components/context/CommonExamContext.js.map +1 -1
  12. package/dist/components/exam/Exam.d.ts +10 -1
  13. package/dist/components/exam/Exam.d.ts.map +1 -1
  14. package/dist/components/exam/Exam.js +14 -9
  15. package/dist/components/exam/Exam.js.map +1 -1
  16. package/dist/components/exam/ExamFooter.d.ts.map +1 -1
  17. package/dist/components/exam/ExamFooter.js +1 -2
  18. package/dist/components/exam/ExamFooter.js.map +1 -1
  19. package/dist/components/exam/FinishExam.d.ts +5 -0
  20. package/dist/components/exam/FinishExam.d.ts.map +1 -0
  21. package/dist/components/exam/FinishExam.js +13 -0
  22. package/dist/components/exam/FinishExam.js.map +1 -0
  23. package/dist/components/exam/RichTextAnswer.d.ts +0 -1
  24. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  25. package/dist/components/exam/RichTextAnswer.js +0 -1
  26. package/dist/components/exam/RichTextAnswer.js.map +1 -1
  27. package/dist/components/exam/StudentNameHeader.d.ts +8 -0
  28. package/dist/components/exam/StudentNameHeader.d.ts.map +1 -0
  29. package/dist/components/exam/StudentNameHeader.js +3 -0
  30. package/dist/components/exam/StudentNameHeader.js.map +1 -0
  31. package/dist/components/exam/UndoHistoryEntry.d.ts +19 -0
  32. package/dist/components/exam/UndoHistoryEntry.d.ts.map +1 -0
  33. package/dist/components/exam/UndoHistoryEntry.js +39 -0
  34. package/dist/components/exam/UndoHistoryEntry.js.map +1 -0
  35. package/dist/components/exam/UndoView.d.ts +35 -0
  36. package/dist/components/exam/UndoView.d.ts.map +1 -0
  37. package/dist/components/exam/UndoView.js +162 -0
  38. package/dist/components/exam/UndoView.js.map +1 -0
  39. package/dist/components/exam/internal/TextAnswerInput.d.ts.map +1 -1
  40. package/dist/components/exam/internal/TextAnswerInput.js +2 -2
  41. package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
  42. package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
  43. package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
  44. package/dist/components/results/isExamFinishPageHook.js +7 -0
  45. package/dist/components/results/isExamFinishPageHook.js.map +1 -0
  46. package/dist/i18n/fi-FI.d.ts +18 -0
  47. package/dist/i18n/fi-FI.d.ts.map +1 -1
  48. package/dist/i18n/fi-FI.js +18 -0
  49. package/dist/i18n/fi-FI.js.map +1 -1
  50. package/dist/i18n/sv-FI.d.ts.map +1 -1
  51. package/dist/i18n/sv-FI.js +18 -0
  52. package/dist/i18n/sv-FI.js.map +1 -1
  53. package/dist/main-bundle.js +1 -1
  54. package/dist/main-bundle.js.LICENSE.txt +10 -0
  55. package/dist/main.css +1 -1
  56. package/dist/types/ExamServerAPI.d.ts +1 -0
  57. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  58. package/package.json +4 -5
Binary file
@@ -15,7 +15,6 @@ export interface CommonExamContext {
15
15
  sections: Element[];
16
16
  resolveAttachment: (filename: string) => string;
17
17
  root: Element;
18
- ignoreEventHandling?: boolean;
19
18
  }
20
19
  export declare const CommonExamContext: React.Context<CommonExamContext>;
21
20
  export declare function withCommonExamContext<P extends CommonExamProps>(Component: React.ComponentType<P>): React.ComponentType<P>;
@@ -1 +1 @@
1
- {"version":3,"file":"CommonExamContext.d.ts","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM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M,CAAA;IAChB,+FAA+F;IAC/F,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,IAAI,EAAE,OAAO,CAAA;CACd;AAED,eAAO,MAAM,iBAAiB,kCAA+C,CAAA;AAE7E,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,eAAe,EAC7D,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAChC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAsBxB"}
@@ -3,7 +3,7 @@ import { getAttribute, getNumericAttribute, queryAll } from '../../dom-utils';
3
3
  import { withContext } from './withContext';
4
4
  export const CommonExamContext = React.createContext({});
5
5
  export function withCommonExamContext(Component) {
6
- return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc, ignoreEventHandling }) => {
6
+ return withContext(CommonExamContext, ({ attachmentsURL, resolveAttachment, doc }) => {
7
7
  const root = doc.documentElement;
8
8
  const maybeDate = getAttribute(root, 'date');
9
9
  const language = getAttribute(root, 'exam-lang');
@@ -20,8 +20,7 @@ export function withCommonExamContext(Component) {
20
20
  maxScore: getNumericAttribute(root, 'max-score'),
21
21
  sections: queryAll(root, 'section'),
22
22
  resolveAttachment,
23
- root,
24
- ignoreEventHandling
23
+ root
25
24
  };
26
25
  })(Component);
27
26
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CommonExamContext.js","sourceRoot":"","sources":["../../../src/components/context/CommonExamContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE7E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAoB3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;AACf,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ExamAnswer, ExamServerAPI, InitialCasStatus, RestrictedAudioPlaybackStats } from '../../index';
3
+ import { TextAnswer as TextAnswerType, RichTextAnswer } from '../../types/ExamAnswer';
3
4
  /** Props common to taking the exams and viewing results */
4
5
  export interface CommonExamProps {
5
6
  /** Initial answers */
@@ -12,7 +13,12 @@ export interface CommonExamProps {
12
13
  doc: XMLDocument;
13
14
  /** @deprecated Not used anymore */
14
15
  language?: string;
15
- ignoreEventHandling?: boolean;
16
+ }
17
+ interface UndoViewProps {
18
+ close: () => void;
19
+ restoreAnswer: (examAnswer: TextAnswerType | RichTextAnswer) => void;
20
+ questionId: number;
21
+ title: string;
16
22
  }
17
23
  /** Props related to taking the exam, 'executing' it */
18
24
  export interface ExamProps extends CommonExamProps {
@@ -27,6 +33,9 @@ export interface ExamProps extends CommonExamProps {
27
33
  restrictedAudioPlaybackStats: RestrictedAudioPlaybackStats[];
28
34
  /** Exam Server API implementation */
29
35
  examServerApi: ExamServerAPI;
36
+ studentName: string;
37
+ showUndoView: boolean;
38
+ undoViewProps: UndoViewProps;
30
39
  }
31
40
  declare const _default: React.MemoExoticComponent<React.ComponentType<any>>;
32
41
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"Exam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAG/D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAA;AA8CvG,2DAA2D;AAC3D,MAAM,WAAW,eAAe;IAC9B,sBAAsB;IACtB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,uCAAuC;IACvC,cAAc,EAAE,MAAM,CAAA;IACtB,iEAAiE;IACjE,iBAAiB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAA;IAC/C,mBAAm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W,SAAU,SAAQ,eAAe;IAChD,2CAA2C;IAC3C,SAAS,EAAE,gBAAgB,CAAA;IAC3B,oEAAoE;IACpE,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B;;;OAGG;IACH,4BAA4B,EAAE,4BAA4B,EAAE,CAAA;IAC5D,qCAAqC;IACrC,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,OAAO,CAAA;IACrB,aAAa,EAAE,aAAa,CAAA;CAC7B;;AA4MD,wBAAuE"}
@@ -45,6 +45,9 @@ import RenderChildNodes from '../RenderChildNodes';
45
45
  import { QuestionNumber } from '../shared/QuestionNumber';
46
46
  import ExamTranslation from '../shared/ExamTranslation';
47
47
  import * as _ from 'lodash-es';
48
+ import { StudentNameHeader } from './StudentNameHeader';
49
+ import { UndoView } from './UndoView';
50
+ import FinishExam from './FinishExam';
48
51
  const renderChildNodes = createRenderChildNodes({
49
52
  attachment: ExamAttachment,
50
53
  'attachment-link': mkAttachmentLink('link'),
@@ -76,7 +79,7 @@ const renderChildNodes = createRenderChildNodes({
76
79
  video: Video,
77
80
  'image-overlay': ImageOverlay
78
81
  });
79
- const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServerApi }) => {
82
+ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServerApi, studentName, showUndoView, undoViewProps }) => {
80
83
  const { date, dateTimeFormatter, dayCode, examCode, language, resolveAttachment, root, subjectLanguage } = useContext(CommonExamContext);
81
84
  const examTitle = findChildElement(root, 'exam-title');
82
85
  const examInstruction = findChildElement(root, 'exam-instruction');
@@ -132,6 +135,7 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
132
135
  }
133
136
  });
134
137
  };
138
+ window.addEventListener('scroll', _.throttle(handleExamScroll, 100, { trailing: false }));
135
139
  const handleTOCScroll = (e) => {
136
140
  const toc = e.currentTarget;
137
141
  if (toc.scrollHeight <= toc.clientHeight) {
@@ -147,13 +151,10 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
147
151
  useEffect(() => {
148
152
  const toc = document.querySelector('.sidebar-toc-container .table-of-contents');
149
153
  toc === null || toc === void 0 ? void 0 : toc.addEventListener('wheel', handleTOCScroll, { passive: false });
150
- const throttleScroll = _.throttle(handleExamScroll, 100, { trailing: false });
151
- window.addEventListener('scroll', throttleScroll);
152
- return () => {
153
- toc === null || toc === void 0 ? void 0 : toc.removeEventListener('wheel', handleTOCScroll);
154
- window.removeEventListener('scroll', throttleScroll);
155
- };
154
+ return () => toc === null || toc === void 0 ? void 0 : toc.addEventListener('wheel', handleTOCScroll, { passive: false });
156
155
  }, []);
156
+ // TODO: Remove 'isOldKoeVersion' checks when old Koe version is not supported anymore
157
+ const isOldKoeVersion = examServerApi.finishExam === undefined;
157
158
  return (React.createElement(Provider, { store: store },
158
159
  React.createElement(I18nextProvider, { i18n: i18n },
159
160
  React.createElement("main", { className: "e-exam", lang: subjectLanguage, "aria-labelledby": examTitleId, ref: examRef },
@@ -164,6 +165,7 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
164
165
  React.createElement(TableOfContentsSidebar, { element: tableOfContents, renderChildNodes }))),
165
166
  React.createElement("div", { className: "main-exam-container" },
166
167
  React.createElement("div", { className: "main-exam" },
168
+ React.createElement(StudentNameHeader, { studentName: studentName }),
167
169
  React.createElement(SectionElement, { "aria-labelledby": examTitleId },
168
170
  examTitle && React.createElement(DocumentTitle, { id: examTitleId }, renderChildNodes(examTitle)),
169
171
  date && (React.createElement("p", null,
@@ -173,10 +175,13 @@ const Exam = ({ doc, casStatus, answers, restrictedAudioPlaybackStats, examServe
173
175
  React.createElement(TableOfContents, { element: tableOfContents,
174
176
  renderChildNodes }))),
175
177
  externalMaterial && (React.createElement(ExternalMaterial, { element: externalMaterial, renderChildNodes, forceRender: true }))),
176
- renderChildNodes(root)))),
178
+ renderChildNodes(root),
179
+ React.createElement(FinishExam, null)))),
180
+ !isOldKoeVersion && React.createElement("div", { className: "e-section e-exam-footer-content" }),
177
181
  React.createElement("div", { className: "e-footer" },
178
182
  React.createElement(ErrorIndicator, null),
179
- React.createElement(SaveIndicator, null))))));
183
+ React.createElement(SaveIndicator, null)),
184
+ showUndoView && !isOldKoeVersion && React.createElement(UndoView, { ...undoViewProps })))));
180
185
  };
181
186
  export default React.memo(withExamContext(withCommonExamContext(Exam)));
182
187
  //# sourceMappingURL=Exam.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Exam.js","sourceRoot":"","sources":["../../../src/components/exam/Exam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,gBAAgB,MAAM,0BAA0B,CAAA;AACvD,OAAO,iBAAiB,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,MAAM,iBAAiB,CAAA;AACnC,OAAO,UAAU,MAAM,sBAAsB,CAAA;AAC7C,OAAO,SAAS,MAAM,qBAAqB,CAAA;AAC3C,OAAO,YAAY,MAAM,gBAAgB,CAAA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Ae,IAAI,oBAAC,QAAQ,OAAK,aAAa,GAAI,CAC/D,CACS,CACT,CACZ,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ExamFooter.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAEpE;;AAED,wBAAqC"}
1
+ {"version":3,"file":"ExamFooter.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAEpE;;AAED,wBAAqC"}
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import SectionElement from '../SectionElement';
3
2
  function ExamFooter({ element, renderChildNodes }) {
4
- return React.createElement(SectionElement, null, renderChildNodes(element));
3
+ return React.createElement("div", { className: "e-exam-footer" }, renderChildNodes(element));
5
4
  }
6
5
  export default React.memo(ExamFooter);
7
6
  //# sourceMappingURL=ExamFooter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExamFooter.js","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAG9C,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACnE,OAAO,oBAAC,cAAc,QAAE,gBAAgB,CAAC,OAAO,CAAC,CAAkB,CAAA;AACrE,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
1
+ {"version":3,"file":"ExamFooter.js","sourceRoot":"","sources":["../../../src/components/exam/ExamFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAsB;IACnE,OAAO,6BAAK,SAAS,EAAC,eAAe,IAAE,gBAAgB,CAAC,OAAO,CAAC,CAAO,CAAA;AACzE,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare function FinishExam(): React.JSX.Element;
3
+ declare const _default: React.MemoExoticComponent<typeof FinishExam>;
4
+ export default _default;
5
+ //# sourceMappingURL=FinishExam.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinishExam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/FinishExam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,iBAAS,UAAU,sBAmBlB;;AAED,wBAAqC"}
@@ -0,0 +1,13 @@
1
+ import React, { useContext } from 'react';
2
+ import { useExamTranslation } from '../../i18n';
3
+ import { ExamContext } from '../context/ExamContext';
4
+ function FinishExam() {
5
+ const { examServerApi } = useContext(ExamContext);
6
+ const { finishExam } = examServerApi;
7
+ const { t } = useExamTranslation();
8
+ return (React.createElement("div", { className: "e-finish-exam" }, finishExam !== undefined && (React.createElement(React.Fragment, null,
9
+ React.createElement("button", { id: "finishExam", onClick: () => void finishExam(), "aria-describedby": "finishExamInstructions" }, t('finish-exam.finish')),
10
+ React.createElement("div", { className: "e-finish-exam-instructions", id: "finishExamInstructions" }, t('finish-exam.instructions'))))));
11
+ }
12
+ export default React.memo(FinishExam);
13
+ //# sourceMappingURL=FinishExam.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FinishExam.js","sourceRoot":"","sources":["../../../src/components/exam/FinishExam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAEpD,SAAS,UAAU;IACjB,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IACjD,MAAM,EAAE,UAAU,EAAE,GAAG,aAAa,CAAA;IACpC,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,6BAAK,SAAS,EAAC,eAAe,IAC3B,UAAU,KAAK,SAAS,IAAI,CAC3B;QACE,gCAAQ,EAAE,EAAC,YAAY,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,UAAU,EAAE,sBAAmB,wBAAwB,IAChG,CAAC,CAAC,oBAAoB,CAAC,CACjB;QACT,6BAAK,SAAS,EAAC,4BAA4B,EAAC,EAAE,EAAC,wBAAwB,IACpE,CAAC,CAAC,0BAA0B,CAAC,CAC1B,CACL,CACJ,CACG,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -21,7 +21,6 @@ interface Props {
21
21
  saveScreenshot: (screenshot: Blob) => Promise<string>;
22
22
  labelledBy: string;
23
23
  lang?: string;
24
- ignoreEventHandling?: boolean;
25
24
  }
26
25
  export default class RichTextAnswer extends React.PureComponent<Props> {
27
26
  static contextType: React.Context<CommonExamContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextAnswer.d.ts","sourceRoot":"","sources":["../../../src/components/exam/RichTextAnswer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,K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EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;IAC5D,OAAO,CAAC,GAAG,CAAiC;IAC5C,OAAO,CAAC,QAAQ,CAAQ;gBAEZ,KAAK,EAAE,KAAK;IAMxB,iBAAiB,IAAI,IAAI;IAwBzB,eAAe,QAAS,aAAa,KAAG,IAAI,CAa3C;IAED,YAAY,SAAU;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,KAAG,IAAI,CAKtE;IAED,kBAAkB,IAAI,IAAI;IAS1B,MAAM,IAAI,KAAK,CAAC,SAAS;CAkC1B"}
@@ -38,7 +38,6 @@ class RichTextAnswer extends React.PureComponent {
38
38
  current.innerHTML = answer.value;
39
39
  }
40
40
  makeRichText(current, {
41
- ignoreEventHandling: this.props.ignoreEventHandling,
42
41
  locale: this.context.language.slice(0, 2).toUpperCase(),
43
42
  screenshotSaver: ({ data, type }) => saveScreenshot(data instanceof Blob ? data : new Blob([data], { type })).catch((err) => {
44
43
  this.handleSaveError(err);
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextAnswer.js","sourceRoot":"","sources":["../../../src/components/exam/RichTextAnswer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAsB/C,MAAqB,cAAe,SAAQ,KAAK,CAAC,aAAoB;IAMpE,YAAY,KAAY;QACtB,KAAK,CAAC,KA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C,SAAS,oBACC,MAAM,kBACP,OAAO,EACrB,QAAQ,EAAE,CAAC,EACX,IAAI,EAAE,IAAI,qBACO,UAAU,EAC3B,EAAE,EAAE,MAAM,CAAC,UAAU,CAAC,GACtB;YACD,CAAC,QAAQ,IAAI,CACZ,gCACE,SAAS,EAAC,aAAa,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,IAAI,CAAC,qBACrB,cAAc,eACnB,MAAM,CAAC,UAAU,CAAC;gBAE7B,oBAAC,iBAAiB,OAAG;gBACrB,oBAAC,eAAe,IAAC,IAAI,EAAE,WAAW,GAAI,CAC/B,CACV,CACA,CACJ,CAC8B,CAClC,CAAA;IACH,CAAC;;AAnGM,0BAAW,GAAG,iBAAiB,AAApB,CAAoB;eADnB,cAAc;AAuGnC,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC7B,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,OAAO,CACL,6BAAK,SAAS,EAAC,OAAO,EAAC,EAAE,EAAC,cAAc,IACrC,CAAC,CAAC,mBAAmB,CAAC,CACnB,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ studentName?: string;
4
+ allowLanguageChange?: boolean;
5
+ }
6
+ export declare const StudentNameHeader: (props: Props) => React.JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=StudentNameHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StudentNameHeader.d.ts","sourceRoot":"","sources":["../../../src/components/exam/StudentNameHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,KAAK;IACb,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED,eAAO,MAAM,iBAAiB,UAAW,KAAK,sBAAwE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export const StudentNameHeader = (props) => React.createElement("div", { className: "e-student-name-container" }, props.studentName);
3
+ //# sourceMappingURL=StudentNameHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StudentNameHeader.js","sourceRoot":"","sources":["../../../src/components/exam/StudentNameHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,KAAY,EAAE,EAAE,CAAC,6BAAK,SAAS,EAAC,0BAA0B,IAAE,KAAK,CAAC,WAAW,CAAO,CAAA"}
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ export interface UndoHistoryEntryProps {
3
+ croppedAnswer: string;
4
+ minutesSinceAnswer: number;
5
+ answerIndex: number;
6
+ selected: boolean;
7
+ onChange: (index: number) => void;
8
+ characterCount: number;
9
+ screenshotCount: number;
10
+ }
11
+ export declare class UndoHistoryEntry extends React.PureComponent<UndoHistoryEntryProps> {
12
+ private entryInputRef;
13
+ private labelInputRef;
14
+ constructor(props: UndoHistoryEntryProps);
15
+ componentDidMount(): void;
16
+ private inputValueChanged;
17
+ render(): React.JSX.Element;
18
+ }
19
+ //# sourceMappingURL=UndoHistoryEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoHistoryEntry.d.ts","sourceRoot":"","sources":["../../../src/components/exam/UndoHistoryEntry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,WAAW,qBAAqB;IACpC,aAAa,EAAE,MAAM,CAAA;IACrB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,cAAc,EAAE,MAAM,CAAA;IACtB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC;IAC9E,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,aAAa,CAAmC;gBAE5C,KAAK,EAAE,qBAAqB;IAMjC,iBAAiB;IAMxB,OAAO,CAAC,iBAAiB,CAKxB;IAEM,MAAM;CAuBd"}
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { useExamTranslation } from '../../i18n';
3
+ export class UndoHistoryEntry extends React.PureComponent {
4
+ constructor(props) {
5
+ super(props);
6
+ this.inputValueChanged = () => {
7
+ this.props.onChange(this.props.answerIndex);
8
+ if (this.labelInputRef && this.labelInputRef.current) {
9
+ this.labelInputRef.current.scrollIntoView({ block: 'center' });
10
+ }
11
+ };
12
+ this.entryInputRef = React.createRef();
13
+ this.labelInputRef = React.createRef();
14
+ }
15
+ componentDidMount() {
16
+ if (this.entryInputRef.current && this.props.answerIndex === 0) {
17
+ this.entryInputRef.current.focus();
18
+ }
19
+ }
20
+ render() {
21
+ const { selected, croppedAnswer, characterCount, screenshotCount, answerIndex, minutesSinceAnswer } = this.props;
22
+ return (React.createElement("label", { ref: this.labelInputRef, className: "js-undo-history-entry" },
23
+ React.createElement("input", { type: "radio", className: "e-undo-view-entry-tab", name: "undoHistory", value: answerIndex, checked: selected, onChange: this.inputValueChanged, ref: this.entryInputRef }),
24
+ React.createElement(UndoEntry, { croppedAnswer: croppedAnswer, characterCount: characterCount, screenshotCount: screenshotCount, answerIndex: answerIndex, minutesSinceAnswer: minutesSinceAnswer })));
25
+ }
26
+ }
27
+ const UndoEntry = ({ croppedAnswer, characterCount, screenshotCount, answerIndex, minutesSinceAnswer }) => {
28
+ const { t } = useExamTranslation();
29
+ const characterCountText = characterCount > 0 ? t('undo.answerCharacterCount', { count: characterCount }) : null;
30
+ const imageCountText = screenshotCount > 0 ? t('undo.answerImageCount', { count: screenshotCount }) : null;
31
+ const arr = [characterCountText, imageCountText].filter(x => x !== null);
32
+ return (React.createElement("div", { className: "e-undo-view-entry js-undo-entry-content" },
33
+ React.createElement("div", { className: "js-undo-history-entry-time" }, answerIndex === 0 ? t('undo.latestVersion') : t('undo.minutesSinceAnswer', { minutes: minutesSinceAnswer })),
34
+ React.createElement("div", { className: "e-undo-view-answer-cropped js-undo-history-entry-answer" }, croppedAnswer || t('undo.answerNoText')),
35
+ React.createElement("div", { className: "e-undo-view-answer-length js-undo-history-entry-stats" }, arr.map((el, index) => (React.createElement(React.Fragment, { key: index },
36
+ el,
37
+ index < arr.length - 1 && React.createElement("span", null, ", ")))))));
38
+ };
39
+ //# sourceMappingURL=UndoHistoryEntry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoHistoryEntry.js","sourceRoot":"","sources":["../../../src/components/exam/UndoHistoryEntry.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAY/C,MAAM,OAAO,gBAAiB,SAAQ,KAAK,CAAC,aAAoC;IAI9E,YAAY,KAA4B;QACtC,KAAK,CAAC,KAAK,CAAC,CAAA;QAWN,sBAAiB,GAAG,GAAG,EAAE;YAC/B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;YAC3C,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,EAAE;gBACpD,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAA;aAC/D;QACH,CAAC,CAAA;QAfC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;QACtC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;IACxC,CAAC;IAEM,iBAAiB;QACtB,IAAI,IAAI,CAAC,aAAa,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,KAAK,C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AAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAA;IAExE,OAAO,CACL,6BAAK,SAAS,EAAC,yCAAyC;QACtD,6BAAK,SAAS,EAAC,4BAA4B,IACxC,WAAW,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,yBAAyB,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC,CACxG;QACN,6BAAK,SAAS,EAAC,yDAAyD,IACrE,aAAa,IAAI,CAAC,CAAC,mBAAmB,CAAC,CACpC;QACN,6BAAK,SAAS,EAAC,uDAAuD,IACnE,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CACtB,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,KAAK;YACvB,EAAE;YACF,KAAK,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,uCAAe,CAC3B,CAClB,CAAC,CACE,CACF,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { RichTextAnswer, TextAnswer } from '../../types/ExamAnswer';
3
+ export interface AnswerHistoryEntry {
4
+ type: 'text' | 'richText';
5
+ value: string;
6
+ characterCount: number;
7
+ answerTime: number;
8
+ }
9
+ export interface UndoViewProps {
10
+ close: () => void;
11
+ restoreAnswer: (examAnswer: TextAnswer | RichTextAnswer) => void;
12
+ questionId: number;
13
+ title: string;
14
+ }
15
+ interface UndoViewState {
16
+ answers: AnswerHistoryEntry[];
17
+ selectedAnswerIndex: number;
18
+ loading: boolean;
19
+ loadRetryTimeout: number | null;
20
+ }
21
+ export declare class UndoView extends React.PureComponent<UndoViewProps, UndoViewState> {
22
+ private source;
23
+ constructor(props: UndoViewProps);
24
+ toggleBodyScroll: (scrollEnabled: boolean) => boolean;
25
+ componentDidMount(): void;
26
+ componentWillUnmount(): void;
27
+ componentDidUpdate(prevProps: UndoViewProps): void;
28
+ private overlayClicked;
29
+ private keydownListener;
30
+ private fetchAnswerHistory;
31
+ private close;
32
+ render(): React.JSX.Element;
33
+ }
34
+ export {};
35
+ //# sourceMappingURL=UndoView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoView.d.ts","sourceRoot":"","sources":["../../../src/components/exam/UndoView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,EAAc,cAAc,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAI/E,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,aAAa,EAAE,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,KAAK,IAAI,CAAA;IAChE,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,UAAU,aAAa;IACrB,OAAO,EAAE,kBAAkB,EAAE,CAAA;IAC7B,mBAAmB,EAAE,MAAM,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;IAChB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AA0FD,qBAAa,QAAS,SAAQ,KAAK,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC;IAC7E,OAAO,CAAC,MAAM,CAAuB;gBAEzB,KAAK,EAAE,aAAa;IAUhC,gBAAgB,kBAAmB,OAAO,aAC0C;IAE7E,iBAAiB;IAMjB,oBAAoB;IAMpB,kBAAkB,CAAC,SAAS,EAAE,aAAa;IAMlD,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,eAAe,CAQtB;YAEa,kBAAkB;IAmBhC,OAAO,CAAC,KAAK;IASN,MAAM;CAkDd"}
@@ -0,0 +1,162 @@
1
+ import axios from 'axios';
2
+ import React from 'react';
3
+ import { UndoHistoryEntry } from './UndoHistoryEntry';
4
+ import FocusTrap from 'focus-trap-react';
5
+ import { useExamTranslation } from '../../i18n';
6
+ const CancelToken = axios.CancelToken;
7
+ function toAnswerHistoryEntry(answer) {
8
+ return {
9
+ type: answer.type,
10
+ value: answer.value,
11
+ answerTime: answer.answer_time,
12
+ characterCount: answer.character_count
13
+ };
14
+ }
15
+ function AnswerDisplay(props) {
16
+ const { selectedAnswer } = props;
17
+ return selectedAnswer ? (selectedAnswer.type === 'richText' ? (React.createElement("div", { className: "e-undo-view-answer-content js-undo-answer-detail", dangerouslySetInnerHTML: { __html: selectedAnswer.value } })) : (React.createElement("div", { className: "e-undo-view-answer-content js-undo-answer-detail plainText" }, selectedAnswer.value))) : null;
18
+ }
19
+ function BottomBar(props) {
20
+ const { selectedAnswer, selectedAnswerIndex, restoreAnswer, questionId } = props;
21
+ const disableRestoreButton = !selectedAnswer || selectedAnswerIndex === 0;
22
+ return (React.createElement("div", { className: "e-undo-view-bottom-bar" },
23
+ React.createElement("button", { className: "e-button-default e-button js-restore-answer-button", disabled: disableRestoreButton, onClick: () => selectedAnswer && restoreAnswer({ ...selectedAnswer, questionId }) },
24
+ React.createElement(RestoreButtonLabel, null))));
25
+ }
26
+ function escapedHtml(html) {
27
+ const container = document.createElement('div');
28
+ container.innerHTML = html;
29
+ return container.innerText;
30
+ }
31
+ function getAnswerText(answer) {
32
+ const fullText = answer.type === 'text' ? answer.value : escapedHtml(answer.value);
33
+ return fullText.replace(/\s+/g, ' ').trim();
34
+ }
35
+ function truncateAnswer(answer, length = 50) {
36
+ const answerText = getAnswerText(answer);
37
+ if (answerText.length <= length) {
38
+ return answerText;
39
+ }
40
+ const separator = '…';
41
+ const charsToShow = length - separator.length;
42
+ const startChars = Math.ceil(charsToShow / 2);
43
+ const endChars = charsToShow - startChars;
44
+ return answerText.substr(0, startChars) + separator + answerText.substr(answerText.length - endChars);
45
+ }
46
+ function countCharacters(answer) {
47
+ const text = getAnswerText(answer);
48
+ return text.replace(/\s/g, '').length;
49
+ }
50
+ function countScreenshots(answer) {
51
+ const answerElement = document.createElement('div');
52
+ answerElement.innerHTML = answer.value;
53
+ const equationImageSelector = 'img[src^="/math.svg"], img[src^="data:image/svg+xml"]';
54
+ const imageCount = answerElement.querySelectorAll('img').length;
55
+ const emptyImageCount = answerElement.querySelectorAll('img[src=""]').length;
56
+ const equationCount = answerElement.querySelectorAll(equationImageSelector).length;
57
+ return imageCount - equationCount - emptyImageCount;
58
+ }
59
+ export class UndoView extends React.PureComponent {
60
+ constructor(props) {
61
+ super(props);
62
+ this.source = CancelToken.source();
63
+ this.toggleBodyScroll = (scrollEnabled) => document.documentElement.classList.toggle('e-exam-body-no-scroll', !scrollEnabled);
64
+ this.keydownListener = (event) => {
65
+ if (event.keyCode === 13) {
66
+ const selectedAnswer = this.state.answers[this.state.selectedAnswerIndex];
67
+ this.props.restoreAnswer({ ...selectedAnswer, questionId: this.props.questionId });
68
+ this.close();
69
+ }
70
+ else if (event.keyCode === 27) {
71
+ this.close();
72
+ }
73
+ };
74
+ this.state = {
75
+ answers: [],
76
+ selectedAnswerIndex: 0,
77
+ loading: true,
78
+ loadRetryTimeout: null
79
+ };
80
+ }
81
+ componentDidMount() {
82
+ this.toggleBodyScroll(false);
83
+ document.addEventListener('keydown', this.keydownListener, false);
84
+ void this.fetchAnswerHistory(this.props.questionId);
85
+ }
86
+ componentWillUnmount() {
87
+ this.source.cancel();
88
+ document.removeEventListener('keydown', this.keydownListener, false);
89
+ this.toggleBodyScroll(true);
90
+ }
91
+ componentDidUpdate(prevProps) {
92
+ if (this.props.questionId !== prevProps.questionId) {
93
+ void this.fetchAnswerHistory(this.props.questionId);
94
+ }
95
+ }
96
+ overlayClicked(event) {
97
+ const targetClass = event.target.className;
98
+ if (targetClass.includes('js-undo-overlay')) {
99
+ this.close();
100
+ }
101
+ }
102
+ async fetchAnswerHistory(questionId) {
103
+ try {
104
+ const answerHistoryResult = await axios.get(`/rest/answer-history/${questionId}`, {
105
+ cancelToken: this.source.token
106
+ });
107
+ const answerHistory = answerHistoryResult.data;
108
+ const answers = answerHistory.map(toAnswerHistoryEntry);
109
+ this.setState({ answers, selectedAnswerIndex: 0, loading: false, loadRetryTimeout: null });
110
+ }
111
+ catch (error) {
112
+ if (!axios.isCancel(error)) {
113
+ this.setState({
114
+ loadRetryTimeout: window.setTimeout(() => {
115
+ void this.fetchAnswerHistory(questionId);
116
+ }, 4000)
117
+ });
118
+ }
119
+ }
120
+ }
121
+ close() {
122
+ const timeout = this.state.loadRetryTimeout;
123
+ if (timeout) {
124
+ clearTimeout(timeout);
125
+ }
126
+ this.source.cancel();
127
+ this.props.close();
128
+ }
129
+ render() {
130
+ const selectedAnswer = this.state.answers[this.state.selectedAnswerIndex];
131
+ const now = new Date().getTime();
132
+ return (React.createElement(FocusTrap, null,
133
+ React.createElement("div", { onClick: this.overlayClicked.bind(this), className: "e-overlay js-undo-overlay", "aria-modal": "true" },
134
+ React.createElement("div", { id: "undo", className: "e-undo-view" },
135
+ React.createElement(CloseButton, { close: this.close.bind(this) }),
136
+ this.state.loading ? (React.createElement(Loading, null)) : (React.createElement("div", { className: "e-undo-view-content" },
137
+ React.createElement("div", { className: "e-undo-view-answer-index js-undo-answer-index" }, this.state.answers.map((answer, index) => {
138
+ const timeSinceAnswer = now - new Date(answer.answerTime).getTime();
139
+ const toMinutes = Math.round(timeSinceAnswer / 1000 / 60);
140
+ return (React.createElement(UndoHistoryEntry, { key: new Date(answer.answerTime).getTime(), answerIndex: index, selected: index === this.state.selectedAnswerIndex, onChange: index => this.setState({ selectedAnswerIndex: index }), croppedAnswer: truncateAnswer(answer), minutesSinceAnswer: toMinutes, characterCount: countCharacters(answer), screenshotCount: countScreenshots(answer) }));
141
+ })),
142
+ React.createElement("div", { className: "e-undo-view-right-panel" },
143
+ React.createElement("div", { className: "e-undo-view-header js-undo-view-header" },
144
+ React.createElement("h3", { className: "e-undo-view-title js-undo-view-title" }, this.props.title)),
145
+ React.createElement(AnswerDisplay, { selectedAnswer: selectedAnswer }),
146
+ React.createElement(BottomBar, { selectedAnswer: selectedAnswer, selectedAnswerIndex: this.state.selectedAnswerIndex, restoreAnswer: this.props.restoreAnswer, questionId: this.props.questionId }))))))));
147
+ }
148
+ }
149
+ const Loading = () => {
150
+ const { t } = useExamTranslation();
151
+ return React.createElement("div", { style: { padding: '10px' } }, t('undo.loading'));
152
+ };
153
+ const CloseButton = ({ close }) => {
154
+ const { t } = useExamTranslation();
155
+ return (React.createElement("div", null,
156
+ React.createElement("img", { src: "img/closeButton.svg", id: "closeUndoDialogButton", className: "e-undo-view-close-overlay-button js-close-undo-dialog-button", onClick: close, tabIndex: 0, role: "button", "aria-label": t('undo.close') })));
157
+ };
158
+ const RestoreButtonLabel = () => {
159
+ const { t } = useExamTranslation();
160
+ return React.createElement("div", null, t('undo.restoreAnswer'));
161
+ };
162
+ //# sourceMappingURL=UndoView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UndoView.js","sourceRoot":"","sources":["../../../src/components/exam/UndoView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,SAAS,MAAM,kBAAkB,CAAA;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAG/C,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;AA4BrC,SAAS,oBAAoB,CAAC,MAA2B;IACvD,OAAO;QACL,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,UAAU,EAAE,MAAM,CAAC,WAAW;QAC9B,cAAc,EAAE,MAAM,CAAC,eAAe;KACvC,CAAA;AACH,CAAC;AAED,SAAS,aAAa,CA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