mario-teacher-student-client 3.0.0-admin → 3.0.1-admin

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.
@@ -5482,7 +5482,7 @@ var UpComing = function UpComing() {
5482
5482
  onClick: function onClick() {
5483
5483
  handleSort("Name");
5484
5484
  }
5485
- }, isTeacher ? "student_name" : "teacher_name", filters.sortBy === "Name" ? filters.sortOrder === "DESC" ? React__default.createElement(ArrowDownwardIcon, {
5485
+ }, isTeacher ? t("student_name") : t("teacher_name"), filters.sortBy === "Name" ? filters.sortOrder === "DESC" ? React__default.createElement(ArrowDownwardIcon, {
5486
5486
  color: "disabled",
5487
5487
  style: {
5488
5488
  marginLeft: "5px"
@@ -30812,332 +30812,406 @@ var OverviewToPDF = function OverviewToPDF(props) {
30812
30812
  doc.setFontSize(14);
30813
30813
  doc.setFont("Helvetica", "normal", "bold");
30814
30814
  doc.text("Student Information", left, 70);
30815
- doc.setFontSize(10);
30816
- doc.setFont("Helvetica", "normal", "bold");
30817
- doc.text(t("student_name") + ":", left, 100);
30818
- doc.text(t("grade") + ":", left, 115);
30819
- doc.text(t("email") + ":", left, 130);
30820
- doc.text(t("phone_number") + ":", left, 145);
30821
- doc.text(t("address") + ":", left, 160);
30822
- doc.text(t("mtss") + ":", left, 175);
30823
- doc.text(t("total_1_to_1") + ":", left + 200, 100);
30824
- doc.text(t("total_1_to_1_time") + ":", left + 200, 115);
30825
- doc.text(t("total_conferences") + ":", left + 200, 130);
30826
- doc.text(t("total_conferences_time") + ":", left + 200, 145);
30827
- doc.text(t("total_class_reflection_check_ins") + ":", left + 200, 160);
30828
- doc.setFont("Helvetica", "normal", "normal");
30829
- doc.text(partnerInformation.name, left + 60, 100);
30830
- doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.gradeLevel) || "", left + 30, 115);
30831
- doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.email) || "", left + 30, 130);
30832
- doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.phoneNumber) || "", left + 70, 145);
30833
- doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.address) || "", left + 40, 160);
30834
- doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.mtss) || "", left + 30, 175);
30835
- doc.text("" + informationDashboard.totalOneToOne, left + 200 + 47, 100);
30836
- doc.text("" + informationDashboard.totalTimeOneToOne, left + 200 + 67, 115);
30837
- doc.text("" + informationDashboard.totalConference, left + 200 + 70, 130);
30838
- doc.text("" + informationDashboard.totalTimeConference, left + 200 + 92, 145);
30839
- doc.text("" + informationDashboard.avgClassReflection, left + 200 + 124, 160);
30840
- doc.setFontSize(14);
30841
- doc.setFont("Helvetica", "normal", "bold");
30842
- doc.text(t("top_learning_strategies"), left, 240);
30843
- var chartLearningStrategies = document.getElementById("learning_strategies");
30844
- return Promise.resolve(html2canvas(chartLearningStrategies)).then(function (chartLearningStrategiesCanvas) {
30845
- doc.setFontSize(8);
30846
- doc.setDrawColor(0);
30847
- doc.setFillColor("#00B8B2");
30848
- doc.roundedRect(120, 375, 5, 5, 1, 1, "F");
30849
- doc.setFont("Helvetica", "normal", "normal");
30850
- doc.text(t("perceived_usage"), 127, 380);
30851
- doc.setFillColor("#006E60");
30852
- doc.roundedRect(200, 375, 5, 5, 1, 1, "F");
30815
+ var studentAvatar = document.getElementById("student_avatar");
30816
+ return Promise.resolve(html2canvas(studentAvatar)).then(function (studentAvatarCanvas) {
30817
+ doc.addImage(studentAvatarCanvas.toDataURL("image/png"), "png", left + 115, 53, 25, 25);
30818
+ doc.setFontSize(10);
30819
+ doc.setFont("Helvetica", "normal", "bold");
30820
+ doc.text(t("student_name") + ":", left, 100);
30821
+ doc.text(t("grade") + ":", left, 115);
30822
+ doc.text(t("email") + ":", left, 130);
30823
+ doc.text(t("phone_number") + ":", left, 145);
30824
+ doc.text(t("address") + ":", left, 160);
30825
+ doc.text(t("mtss") + ":", left, 175);
30826
+ doc.text(t("total_1_to_1") + ":", left + 200, 100);
30827
+ doc.text(t("total_1_to_1_time") + ":", left + 200, 115);
30828
+ doc.text(t("total_conferences") + ":", left + 200, 130);
30829
+ doc.text(t("total_conferences_time") + ":", left + 200, 145);
30830
+ doc.text(t("total_class_reflection_check_ins") + ":", left + 200, 160);
30853
30831
  doc.setFont("Helvetica", "normal", "normal");
30854
- doc.text(t("total_number_of_times_seleted"), 207, 380);
30855
- doc.addImage(chartLearningStrategiesCanvas.toDataURL("image/png", 1.0), 20, 245, 400, 130);
30832
+ doc.text(partnerInformation.name, left + 60, 100);
30833
+ doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.gradeLevel) || "", left + 30, 115);
30834
+ doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.email) || "", left + 30, 130);
30835
+ doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.phoneNumber) || "", left + 70, 145);
30836
+ doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.address) || "", left + 40, 160);
30837
+ doc.text((partnerInformation === null || partnerInformation === void 0 ? void 0 : partnerInformation.mtss) || "", left + 30, 175);
30838
+ doc.text("" + informationDashboard.totalOneToOne, left + 200 + 47, 100);
30839
+ doc.text("" + informationDashboard.totalTimeOneToOne, left + 200 + 67, 115);
30840
+ doc.text("" + informationDashboard.totalConference, left + 200 + 70, 130);
30841
+ doc.text("" + informationDashboard.totalTimeConference, left + 200 + 92, 145);
30842
+ doc.text("" + informationDashboard.avgClassReflection, left + 200 + 124, 160);
30856
30843
  doc.setFontSize(14);
30857
30844
  doc.setFont("Helvetica", "normal", "bold");
30858
- doc.text(t("Readiness To Learn"), left, 420);
30859
- var chartReadinessToLearn = document.getElementById("readiness_to_learn");
30860
- return Promise.resolve(html2canvas(chartReadinessToLearn)).then(function (chartReadinessToLearnCanvas) {
30861
- doc.addImage(chartReadinessToLearnCanvas.toDataURL("image/png"), 20, 425, 400, 130);
30845
+ doc.text(t("top_learning_strategies"), left, 240);
30846
+ var chartLearningStrategies = document.getElementById("learning_strategies");
30847
+ return Promise.resolve(html2canvas(chartLearningStrategies)).then(function (chartLearningStrategiesCanvas) {
30862
30848
  doc.setFontSize(8);
30863
- doc.setFillColor("#7ACAFF");
30864
- doc.roundedRect(100, 555, 5, 5, 1, 1, "F");
30849
+ doc.setDrawColor(0);
30850
+ doc.setFillColor("#00B8B2");
30851
+ doc.roundedRect(120, 375, 5, 5, 1, 1, "F");
30865
30852
  doc.setFont("Helvetica", "normal", "normal");
30866
- doc.text(t("energy"), 107, 560);
30867
- doc.setFillColor("#7AFFD1");
30868
- doc.roundedRect(150, 555, 5, 5, 1, 1, "F");
30853
+ doc.text(t("perceived_usage"), 127, 380);
30854
+ doc.setFillColor("#006E60");
30855
+ doc.roundedRect(200, 375, 5, 5, 1, 1, "F");
30869
30856
  doc.setFont("Helvetica", "normal", "normal");
30870
- doc.text(t("focus"), 157, 560);
30871
- doc.setFillColor("#FFE77D");
30872
- doc.roundedRect(200, 555, 5, 5, 1, 1, "F");
30873
- doc.setFont("Helvetica", "normal", "normal");
30874
- doc.text(t("happiness"), 207, 560);
30875
- doc.setFillColor("#FF8B9E");
30876
- doc.roundedRect(250, 555, 5, 5, 1, 1, "F");
30877
- doc.setFont("Helvetica", "normal", "normal");
30878
- doc.text(t("safety"), 257, 560);
30879
- doc.setFillColor("#B7A3FF");
30880
- doc.roundedRect(300, 555, 5, 5, 1, 1, "F");
30881
- doc.setFont("Helvetica", "normal", "normal");
30882
- doc.text(t("stress"), 307, 560);
30883
- doc.addPage();
30884
- return Promise.resolve(createImageHeader()).then(function () {
30885
- doc.setFontSize(14);
30886
- doc.setFont("Helvetica", "normal", "bold");
30887
- doc.text(t("one_to_one"), left, 70);
30888
- var chartOneToOne = document.getElementById("one_to_one");
30889
- return Promise.resolve(html2canvas(chartOneToOne)).then(function (chartOneToOneCanvas) {
30890
- function _temp17() {
30891
- function _temp15() {
30892
- for (var i = 0; i < dataConvertedOneToOne.length; i++) {
30893
- if (activeColumnOneToOne[i]) {
30894
- var _dataConvertedOneToOn;
30895
-
30896
- doc.setDrawColor(0);
30897
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30898
- doc.roundedRect(left, line, 5, 5, 1, 1, "F");
30899
- doc.setTextColor("#252733");
30900
- doc.text(dataConvertedOneToOne[i], left + 7, line + 5);
30901
- left = left + dataConvertedOneToOne[i].length * 3 + 15;
30902
-
30903
- if (left + ((_dataConvertedOneToOn = dataConvertedOneToOne[i + 1]) === null || _dataConvertedOneToOn === void 0 ? void 0 : _dataConvertedOneToOn.length) * 3 + 15 > WIDTH_PAPER) {
30904
- left = 20;
30905
- line += 10;
30857
+ doc.text(t("total_number_of_times_seleted"), 207, 380);
30858
+ doc.addImage(chartLearningStrategiesCanvas.toDataURL("image/png", 1.0), 20, 245, 400, 130);
30859
+ doc.setFontSize(14);
30860
+ doc.setFont("Helvetica", "normal", "bold");
30861
+ doc.text(t("Readiness To Learn"), left, 420);
30862
+ var chartReadinessToLearn = document.getElementById("readiness_to_learn");
30863
+ return Promise.resolve(html2canvas(chartReadinessToLearn)).then(function (chartReadinessToLearnCanvas) {
30864
+ doc.addImage(chartReadinessToLearnCanvas.toDataURL("image/png"), 20, 425, 400, 130);
30865
+ doc.setFontSize(8);
30866
+ doc.setFillColor("#7ACAFF");
30867
+ doc.roundedRect(100, 555, 5, 5, 1, 1, "F");
30868
+ doc.setFont("Helvetica", "normal", "normal");
30869
+ doc.text(t("energy"), 107, 560);
30870
+ doc.setFillColor("#7AFFD1");
30871
+ doc.roundedRect(150, 555, 5, 5, 1, 1, "F");
30872
+ doc.setFont("Helvetica", "normal", "normal");
30873
+ doc.text(t("focus"), 157, 560);
30874
+ doc.setFillColor("#FFE77D");
30875
+ doc.roundedRect(200, 555, 5, 5, 1, 1, "F");
30876
+ doc.setFont("Helvetica", "normal", "normal");
30877
+ doc.text(t("happiness"), 207, 560);
30878
+ doc.setFillColor("#FF8B9E");
30879
+ doc.roundedRect(250, 555, 5, 5, 1, 1, "F");
30880
+ doc.setFont("Helvetica", "normal", "normal");
30881
+ doc.text(t("safety"), 257, 560);
30882
+ doc.setFillColor("#B7A3FF");
30883
+ doc.roundedRect(300, 555, 5, 5, 1, 1, "F");
30884
+ doc.setFont("Helvetica", "normal", "normal");
30885
+ doc.text(t("stress"), 307, 560);
30886
+ doc.addPage();
30887
+ return Promise.resolve(createImageHeader()).then(function () {
30888
+ doc.setFontSize(14);
30889
+ doc.setFont("Helvetica", "normal", "bold");
30890
+ doc.text(t("one_to_one"), left, 70);
30891
+ var chartOneToOne = document.getElementById("one_to_one");
30892
+ return Promise.resolve(html2canvas(chartOneToOne)).then(function (chartOneToOneCanvas) {
30893
+ function _temp17() {
30894
+ function _temp15() {
30895
+ for (var i = 0; i < dataConvertedOneToOne.length; i++) {
30896
+ if (activeColumnOneToOne[i]) {
30897
+ var _dataConvertedOneToOn;
30898
+
30899
+ doc.setDrawColor(0);
30900
+ doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30901
+ doc.roundedRect(left, line, 5, 5, 1, 1, "F");
30902
+ doc.setTextColor("#252733");
30903
+ doc.text(dataConvertedOneToOne[i], left + 7, line + 5);
30904
+ left = left + dataConvertedOneToOne[i].length * 3 + 15;
30905
+
30906
+ if (left + ((_dataConvertedOneToOn = dataConvertedOneToOne[i + 1]) === null || _dataConvertedOneToOn === void 0 ? void 0 : _dataConvertedOneToOn.length) * 3 + 15 > WIDTH_PAPER) {
30907
+ left = 20;
30908
+ line += 10;
30909
+ }
30906
30910
  }
30907
30911
  }
30908
- }
30909
30912
 
30910
- left = 20;
30911
- doc.addImage(chartOneToOneCanvas.toDataURL("image/png"), 20, line + 20, 400, 130);
30912
- var lineOptionPercent = line + 150;
30913
-
30914
- for (var i = 0; i < dataConvertedOneToOne.length; i++) {
30915
- if (avgOneToOne[i] != 0) {
30916
- var _dataConvertedOneToOn2;
30917
-
30918
- doc.setDrawColor(0);
30919
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30920
- doc.roundedRect(left, lineOptionPercent, 5, 5, 1, 1, "F");
30921
- doc.setTextColor("#252733");
30922
- doc.setFont("Helvetica", "normal", "normal");
30923
- doc.text(dataConvertedOneToOne[i], left + 7, lineOptionPercent + 5);
30924
- doc.setFont("Helvetica", "normal", "bold");
30925
- doc.text(avgOneToOne[i].toFixed(2) + "%", left, lineOptionPercent + 12);
30926
- left = left + dataConvertedOneToOne[i].length * 3 + 15;
30913
+ left = 20;
30914
+ doc.addImage(chartOneToOneCanvas.toDataURL("image/png"), 20, line + 20, 400, 130);
30915
+ var lineOptionPercent = line + 150;
30927
30916
 
30928
- if (left + ((_dataConvertedOneToOn2 = dataConvertedOneToOne[i + 1]) === null || _dataConvertedOneToOn2 === void 0 ? void 0 : _dataConvertedOneToOn2.length) * 3 + 15 > WIDTH_PAPER) {
30929
- left = 20;
30930
- lineOptionPercent += 17;
30931
- }
30932
- }
30933
- }
30917
+ for (var i = 0; i < dataConvertedOneToOne.length; i++) {
30918
+ if (avgOneToOne[i] != 0) {
30919
+ var _dataConvertedOneToOn2;
30934
30920
 
30935
- doc.addPage();
30936
- return Promise.resolve(createImageHeader()).then(function () {
30937
- line = 85;
30938
- left = 20;
30939
- var lineOptionClassReflection = line;
30940
- doc.setFontSize(14);
30941
- doc.setTextColor("#000");
30942
- doc.setFont("Helvetica", "normal", "bold");
30943
- doc.text(t("class_reflection"), left, 70);
30944
- var chartClassReflection = document.getElementById("class_reflection");
30945
- return Promise.resolve(html2canvas(chartClassReflection)).then(function (chartClassReflectionCanvas) {
30946
- function _temp13() {
30921
+ doc.setDrawColor(0);
30922
+ doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30923
+ doc.roundedRect(left, lineOptionPercent, 5, 5, 1, 1, "F");
30924
+ doc.setTextColor("#252733");
30947
30925
  doc.setFont("Helvetica", "normal", "normal");
30948
- left = 20;
30949
- line = lineOptionClassReflection + 30;
30950
-
30951
- for (var i = 0; i < dataConvertedClassReflection.length; i++) {
30952
- if (activeColumnClassReflection[i]) {
30953
- var _dataConvertedClassRe;
30954
-
30955
- doc.setDrawColor(0);
30956
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30957
- doc.roundedRect(left, line, 5, 5, 1, 1, "F");
30958
- doc.setTextColor("#252733");
30959
- doc.text(dataConvertedClassReflection[i], left + 7, line + 5);
30960
- left = left + dataConvertedClassReflection[i].length * 3 + 15;
30961
-
30962
- if (left + ((_dataConvertedClassRe = dataConvertedClassReflection[i + 1]) === null || _dataConvertedClassRe === void 0 ? void 0 : _dataConvertedClassRe.length) * 3 + 15 > WIDTH_PAPER) {
30963
- left = 20;
30964
- line += 10;
30965
- }
30966
- }
30926
+ doc.text(dataConvertedOneToOne[i], left + 7, lineOptionPercent + 5);
30927
+ doc.setFont("Helvetica", "normal", "bold");
30928
+ doc.text(avgOneToOne[i].toFixed(2) + "%", left, lineOptionPercent + 12);
30929
+ left = left + dataConvertedOneToOne[i].length * 3 + 15;
30930
+
30931
+ if (left + ((_dataConvertedOneToOn2 = dataConvertedOneToOne[i + 1]) === null || _dataConvertedOneToOn2 === void 0 ? void 0 : _dataConvertedOneToOn2.length) * 3 + 15 > WIDTH_PAPER) {
30932
+ left = 20;
30933
+ lineOptionPercent += 17;
30967
30934
  }
30935
+ }
30936
+ }
30968
30937
 
30969
- left = 20;
30970
- doc.addImage(chartClassReflectionCanvas.toDataURL("image/png"), 20, line + 20, 400, 130);
30938
+ doc.addPage();
30939
+ return Promise.resolve(createImageHeader()).then(function () {
30940
+ line = 85;
30941
+ left = 20;
30942
+ var lineOptionClassReflection = line;
30943
+ doc.setFontSize(14);
30944
+ doc.setTextColor("#000");
30945
+ doc.setFont("Helvetica", "normal", "bold");
30946
+ doc.text(t("class_reflection"), left, 70);
30947
+ var chartClassReflection = document.getElementById("class_reflection");
30948
+ return Promise.resolve(html2canvas(chartClassReflection)).then(function (chartClassReflectionCanvas) {
30949
+ function _temp13() {
30950
+ doc.setFont("Helvetica", "normal", "normal");
30951
+ left = 20;
30952
+ line = lineOptionClassReflection + 30;
30971
30953
 
30972
- for (var i = 0; i < dataConvertedClassReflection.length; i++) {
30973
- if (avgClassReflection[i] != 0) {
30974
- var _dataConvertedClassRe2;
30954
+ for (var i = 0; i < dataConvertedClassReflection.length; i++) {
30955
+ if (activeColumnClassReflection[i]) {
30956
+ var _dataConvertedClassRe;
30975
30957
 
30976
- doc.setDrawColor(0);
30977
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30978
- doc.roundedRect(left, line + 150, 5, 5, 1, 1, "F");
30979
- doc.setTextColor("#252733");
30980
- doc.setFont("Helvetica", "normal", "normal");
30981
- doc.text(dataConvertedClassReflection[i], left + 7, line + 155);
30982
- doc.setFont("Helvetica", "normal", "bold");
30983
- doc.text("" + avgClassReflection[i].toFixed(2) + (dataConvertedClassReflection[i].toLowerCase().includes("grade") ? "" : "%"), left, line + 162);
30984
- left = left + dataConvertedClassReflection[i].length * 3 + 15;
30958
+ doc.setDrawColor(0);
30959
+ doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30960
+ doc.roundedRect(left, line, 5, 5, 1, 1, "F");
30961
+ doc.setTextColor("#252733");
30962
+ doc.text(dataConvertedClassReflection[i], left + 7, line + 5);
30963
+ left = left + dataConvertedClassReflection[i].length * 3 + 15;
30985
30964
 
30986
- if (left + ((_dataConvertedClassRe2 = dataConvertedClassReflection[i + 1]) === null || _dataConvertedClassRe2 === void 0 ? void 0 : _dataConvertedClassRe2.length) * 3 + 15 > WIDTH_PAPER) {
30987
- left = 20;
30988
- line += 17;
30965
+ if (left + ((_dataConvertedClassRe = dataConvertedClassReflection[i + 1]) === null || _dataConvertedClassRe === void 0 ? void 0 : _dataConvertedClassRe.length) * 3 + 15 > WIDTH_PAPER) {
30966
+ left = 20;
30967
+ line += 10;
30968
+ }
30989
30969
  }
30990
30970
  }
30991
- }
30992
30971
 
30993
- doc.addPage();
30994
- return Promise.resolve(createImageHeader()).then(function () {
30995
30972
  left = 20;
30996
- line = 85;
30997
- var lineOptionConference = line;
30998
- doc.setFontSize(14);
30999
- doc.setFont("Helvetica", "normal", "bold");
31000
- doc.setTextColor("#000");
31001
- doc.text(t("conference"), left, 70);
31002
- var chartConference = document.getElementById("conference");
31003
- return Promise.resolve(html2canvas(chartConference)).then(function (chartConferenceCanvas) {
31004
- function _temp11() {
31005
- function _temp9() {
31006
- function _temp7() {
31007
- doc.setFontSize(14);
31008
- doc.setFont("Helvetica", "normal", "bold");
31009
- doc.setTextColor("#000");
31010
- doc.text("Learning Progress", left, line);
31011
- var chartLearningProgress = document.getElementById("learning_progress");
31012
- return Promise.resolve(html2canvas(chartLearningProgress)).then(function (chartLearningProgressCanvas) {
31013
- doc.addImage(chartLearningProgressCanvas.toDataURL("image/png"), left, line + 15, 400, 130);
31014
- doc.save("Overview.pdf");
31015
- });
31016
- }
30973
+ doc.addImage(chartClassReflectionCanvas.toDataURL("image/png"), 20, line + 20, 400, 130);
30974
+
30975
+ for (var i = 0; i < dataConvertedClassReflection.length; i++) {
30976
+ if (avgClassReflection[i] != 0) {
30977
+ var _dataConvertedClassRe2;
30978
+
30979
+ doc.setDrawColor(0);
30980
+ doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
30981
+ doc.roundedRect(left, line + 150, 5, 5, 1, 1, "F");
30982
+ doc.setTextColor("#252733");
30983
+ doc.setFont("Helvetica", "normal", "normal");
30984
+ doc.text(dataConvertedClassReflection[i], left + 7, line + 155);
30985
+ doc.setFont("Helvetica", "normal", "bold");
30986
+ doc.text("" + avgClassReflection[i].toFixed(2) + (dataConvertedClassReflection[i].toLowerCase().includes("grade") ? "" : "%"), left, line + 162);
30987
+ left = left + dataConvertedClassReflection[i].length * 3 + 15;
31017
30988
 
31018
- doc.setFont("Helvetica", "normal", "normal");
30989
+ if (left + ((_dataConvertedClassRe2 = dataConvertedClassReflection[i + 1]) === null || _dataConvertedClassRe2 === void 0 ? void 0 : _dataConvertedClassRe2.length) * 3 + 15 > WIDTH_PAPER) {
31019
30990
  left = 20;
31020
- line = lineOptionConference + 30;
30991
+ line += 17;
30992
+ }
30993
+ }
30994
+ }
31021
30995
 
31022
- for (var i = 0; i < dataConvertedConference.length; i++) {
31023
- if (activeColumnConference[i]) {
31024
- var _dataConvertedConfere;
30996
+ doc.addPage();
30997
+ return Promise.resolve(createImageHeader()).then(function () {
30998
+ left = 20;
30999
+ line = 85;
31000
+ var lineOptionConference = line;
31001
+ doc.setFontSize(14);
31002
+ doc.setFont("Helvetica", "normal", "bold");
31003
+ doc.setTextColor("#000");
31004
+ doc.text(t("conference"), left, 70);
31005
+ var chartConference = document.getElementById("conference");
31006
+ return Promise.resolve(html2canvas(chartConference)).then(function (chartConferenceCanvas) {
31007
+ function _temp11() {
31008
+ function _temp9() {
31009
+ function _temp7() {
31010
+ doc.setFontSize(14);
31011
+ doc.setFont("Helvetica", "normal", "bold");
31012
+ doc.setTextColor("#000");
31013
+ doc.text("Learning Progress", left, line);
31014
+ var chartLearningProgress = document.getElementById("learning_progress");
31015
+ return Promise.resolve(html2canvas(chartLearningProgress)).then(function (chartLearningProgressCanvas) {
31016
+ doc.addImage(chartLearningProgressCanvas.toDataURL("image/png"), left, line + 15, 400, 130);
31017
+ doc.save("Overview.pdf");
31018
+ });
31019
+ }
31025
31020
 
31026
- doc.setDrawColor(0);
31027
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
31028
- doc.roundedRect(left, line, 5, 5, 1, 1, "F");
31029
- doc.setTextColor("#252733");
31030
- doc.text(dataConvertedConference[i], left + 7, line + 5);
31031
- left = left + dataConvertedConference[i].length * 3 + 15;
31021
+ doc.setFont("Helvetica", "normal", "normal");
31022
+ left = 20;
31023
+ line = lineOptionConference + 30;
31024
+
31025
+ for (var i = 0; i < dataConvertedConference.length; i++) {
31026
+ if (activeColumnConference[i]) {
31027
+ var _dataConvertedConfere;
31028
+
31029
+ doc.setDrawColor(0);
31030
+ doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
31031
+ doc.roundedRect(left, line, 5, 5, 1, 1, "F");
31032
+ doc.setTextColor("#252733");
31033
+ doc.text(dataConvertedConference[i], left + 7, line + 5);
31034
+ left = left + dataConvertedConference[i].length * 3 + 15;
31035
+
31036
+ if (left + ((_dataConvertedConfere = dataConvertedConference[i + 1]) === null || _dataConvertedConfere === void 0 ? void 0 : _dataConvertedConfere.length) * 3 + 15 > WIDTH_PAPER) {
31037
+ left = 20;
31038
+ line += 10;
31039
+ }
31040
+ }
31041
+ }
31032
31042
 
31033
- if (left + ((_dataConvertedConfere = dataConvertedConference[i + 1]) === null || _dataConvertedConfere === void 0 ? void 0 : _dataConvertedConfere.length) * 3 + 15 > WIDTH_PAPER) {
31034
- left = 20;
31035
- line += 10;
31043
+ left = 20;
31044
+ doc.addImage(chartConferenceCanvas.toDataURL("image/png"), 20, line + 10, 400, 130);
31045
+
31046
+ for (var i = 0; i < dataConvertedConference.length; i++) {
31047
+ if (avgConference[i] != 0) {
31048
+ var _dataConvertedConfere2;
31049
+
31050
+ doc.setDrawColor(0);
31051
+ doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
31052
+ doc.roundedRect(left, line + 150, 5, 5, 1, 1, "F");
31053
+ doc.setTextColor("#252733");
31054
+ doc.setFont("Helvetica", "normal", "normal");
31055
+ doc.text(dataConvertedConference[i], left + 7, line + 155);
31056
+ doc.setFont("Helvetica", "normal", "bold");
31057
+ doc.text((avgConference[i] * 100).toFixed(2) + "%", left, line + 162);
31058
+ left = left + dataConvertedConference[i].length * 3 + 15;
31059
+
31060
+ if (left + ((_dataConvertedConfere2 = dataConvertedConference[i + 1]) === null || _dataConvertedConfere2 === void 0 ? void 0 : _dataConvertedConfere2.length) * 3 + 15 > WIDTH_PAPER) {
31061
+ left = 20;
31062
+ line += 17;
31063
+ }
31036
31064
  }
31037
31065
  }
31066
+
31067
+ left = 20;
31068
+ line += 200;
31069
+
31070
+ var _temp6 = function () {
31071
+ if (line + 150 > HEIGHT_PAPER) {
31072
+ doc.addPage();
31073
+ return Promise.resolve(createImageHeader()).then(function () {
31074
+ left = 20;
31075
+ line = 70;
31076
+ });
31077
+ }
31078
+ }();
31079
+
31080
+ return _temp6 && _temp6.then ? _temp6.then(_temp7) : _temp7(_temp6);
31038
31081
  }
31039
31082
 
31040
- left = 20;
31041
- doc.addImage(chartConferenceCanvas.toDataURL("image/png"), 20, line + 10, 400, 130);
31083
+ var _temp8 = function () {
31084
+ if (line + 200 > HEIGHT_PAPER) {
31085
+ doc.addPage();
31086
+ return Promise.resolve(createImageHeader()).then(function () {
31087
+ line = 85;
31088
+ });
31089
+ }
31090
+ }();
31042
31091
 
31043
- for (var i = 0; i < dataConvertedConference.length; i++) {
31044
- if (avgConference[i] != 0) {
31045
- var _dataConvertedConfere2;
31092
+ return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
31093
+ }
31094
+
31095
+ doc.setFontSize(8);
31096
+ var i = 0;
31097
+
31098
+ var _temp10 = _for(function () {
31099
+ var _chartDataConference$;
31100
+
31101
+ return i < ((_chartDataConference$ = chartDataConference.overviewQuestionChoice) === null || _chartDataConference$ === void 0 ? void 0 : _chartDataConference$.length);
31102
+ }, function () {
31103
+ return i++;
31104
+ }, function () {
31105
+ var _chartDataConference$2, _chartDataConference$3, _chartDataConference$4, _chartDataConference$5;
31106
+
31107
+ var LINE = line;
31108
+ var arrResultQuestions = chartDataConference.overviewQuestionChoice[i].resultQuestion;
31109
+ doc.setFontSize(12);
31110
+ doc.setFont("Helvetica", "normal", "bold");
31111
+ doc.text(chartDataConference.overviewQuestionChoice[i].month, left, LINE);
31112
+ doc.setFontSize(8);
31113
+
31114
+ for (var j = 0; j < (arrResultQuestions === null || arrResultQuestions === void 0 ? void 0 : arrResultQuestions.length); j++) {
31115
+ var _arrResultQuestions$j, _arrResultQuestions$j2, _arrResultQuestions$j3, _arrResultQuestions$j4, _arrResultQuestions$j5;
31116
+
31117
+ var resultQuestion = (_arrResultQuestions$j = arrResultQuestions[j]) !== null && _arrResultQuestions$j !== void 0 && _arrResultQuestions$j.questionText.includes("<p>") ? (_arrResultQuestions$j2 = arrResultQuestions[j]) === null || _arrResultQuestions$j2 === void 0 ? void 0 : _arrResultQuestions$j2.questionText.slice(3, (_arrResultQuestions$j3 = arrResultQuestions[j]) === null || _arrResultQuestions$j3 === void 0 ? void 0 : _arrResultQuestions$j3.questionText.indexOf("</p>")) : ((_arrResultQuestions$j4 = arrResultQuestions[j]) === null || _arrResultQuestions$j4 === void 0 ? void 0 : _arrResultQuestions$j4.questionText) || "";
31118
+
31119
+ if (resultQuestion != "" && ((_arrResultQuestions$j5 = arrResultQuestions[j]) === null || _arrResultQuestions$j5 === void 0 ? void 0 : _arrResultQuestions$j5.avgOfStudentChoice) != 0) {
31120
+ var _arrResultQuestions$j6, _arrResultQuestions$j7;
31046
31121
 
31047
- doc.setDrawColor(0);
31048
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[i]);
31049
- doc.roundedRect(left, line + 150, 5, 5, 1, 1, "F");
31050
- doc.setTextColor("#252733");
31051
- doc.setFont("Helvetica", "normal", "normal");
31052
- doc.text(dataConvertedConference[i], left + 7, line + 155);
31053
31122
  doc.setFont("Helvetica", "normal", "bold");
31054
- doc.text((avgConference[i] * 100).toFixed(2) + "%", left, line + 162);
31055
- left = left + dataConvertedConference[i].length * 3 + 15;
31123
+ doc.text(resultQuestion + ":", left + 5, LINE + 10);
31124
+ doc.setFont("Helvetica", "normal", "normal");
31125
+ doc.text(((_arrResultQuestions$j6 = arrResultQuestions[j]) === null || _arrResultQuestions$j6 === void 0 ? void 0 : (_arrResultQuestions$j7 = _arrResultQuestions$j6.avgOfStudentChoice) === null || _arrResultQuestions$j7 === void 0 ? void 0 : _arrResultQuestions$j7.toFixed(1)) * 100 + "%", left + (resultQuestion === null || resultQuestion === void 0 ? void 0 : resultQuestion.length) * 3 + 12, LINE + 10);
31126
+ LINE += 11;
31056
31127
 
31057
- if (left + ((_dataConvertedConfere2 = dataConvertedConference[i + 1]) === null || _dataConvertedConfere2 === void 0 ? void 0 : _dataConvertedConfere2.length) * 3 + 15 > WIDTH_PAPER) {
31058
- left = 20;
31059
- line += 17;
31128
+ if (LINE > lineOptionConference) {
31129
+ lineOptionConference = LINE;
31060
31130
  }
31061
31131
  }
31062
31132
  }
31063
31133
 
31064
- left = 20;
31065
- line += 200;
31134
+ left += 100;
31066
31135
 
31067
- var _temp6 = function () {
31068
- if (line + 150 > HEIGHT_PAPER) {
31136
+ if (left + 105 > WIDTH_PAPER && (((_chartDataConference$2 = chartDataConference.overviewQuestionChoice[i + 1]) === null || _chartDataConference$2 === void 0 ? void 0 : (_chartDataConference$3 = _chartDataConference$2.resultQuestion[0]) === null || _chartDataConference$3 === void 0 ? void 0 : _chartDataConference$3.questionId) != 0 || ((_chartDataConference$4 = chartDataConference.overviewQuestionChoice[i + 1]) === null || _chartDataConference$4 === void 0 ? void 0 : (_chartDataConference$5 = _chartDataConference$4.resultQuestion[0]) === null || _chartDataConference$5 === void 0 ? void 0 : _chartDataConference$5.questionText) != "")) {
31137
+ ;
31138
+ left = 20, line = lineOptionConference + 20;
31139
+ } else {
31140
+ LINE = line;
31141
+ }
31142
+
31143
+ var _temp5 = function () {
31144
+ if (line + 100 > HEIGHT_PAPER) {
31069
31145
  doc.addPage();
31070
31146
  return Promise.resolve(createImageHeader()).then(function () {
31147
+ line = 85;
31071
31148
  left = 20;
31072
- line = 70;
31073
31149
  });
31074
31150
  }
31075
31151
  }();
31076
31152
 
31077
- return _temp6 && _temp6.then ? _temp6.then(_temp7) : _temp7(_temp6);
31078
- }
31153
+ if (_temp5 && _temp5.then) return _temp5.then(function () {});
31154
+ });
31079
31155
 
31080
- var _temp8 = function () {
31081
- if (line + 200 > HEIGHT_PAPER) {
31082
- doc.addPage();
31083
- return Promise.resolve(createImageHeader()).then(function () {
31084
- line = 85;
31085
- });
31086
- }
31087
- }();
31088
-
31089
- return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
31090
- }
31156
+ return _temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10);
31157
+ });
31158
+ });
31159
+ }
31091
31160
 
31092
- doc.setFontSize(8);
31093
- var i = 0;
31161
+ doc.setFontSize(8);
31162
+ var i = 0;
31094
31163
 
31095
- var _temp10 = _for(function () {
31096
- var _chartDataConference$;
31164
+ var _temp12 = _for(function () {
31165
+ var _chartDataClassReflec;
31097
31166
 
31098
- return i < ((_chartDataConference$ = chartDataConference.overviewQuestionChoice) === null || _chartDataConference$ === void 0 ? void 0 : _chartDataConference$.length);
31099
- }, function () {
31100
- return i++;
31101
- }, function () {
31102
- var _chartDataConference$2, _chartDataConference$3, _chartDataConference$4, _chartDataConference$5;
31167
+ return i < ((_chartDataClassReflec = chartDataClassReflection.overviewQuestionChoice) === null || _chartDataClassReflec === void 0 ? void 0 : _chartDataClassReflec.length);
31168
+ }, function () {
31169
+ return i++;
31170
+ }, function () {
31171
+ var LINE = line;
31103
31172
 
31104
- var LINE = line;
31105
- var arrResultQuestions = chartDataConference.overviewQuestionChoice[i].resultQuestion;
31173
+ var _temp4 = function () {
31174
+ if (chartDataClassReflection.overviewQuestionChoice[i].resultQuestion[0].questionId != 0) {
31175
+ var arrResultQuestions = chartDataClassReflection.overviewQuestionChoice[i].resultQuestion;
31106
31176
  doc.setFontSize(12);
31107
31177
  doc.setFont("Helvetica", "normal", "bold");
31108
- doc.text(chartDataConference.overviewQuestionChoice[i].month, left, LINE);
31178
+ doc.text(chartDataClassReflection.overviewQuestionChoice[i].month, left, LINE);
31109
31179
  doc.setFontSize(8);
31110
31180
 
31111
31181
  for (var j = 0; j < (arrResultQuestions === null || arrResultQuestions === void 0 ? void 0 : arrResultQuestions.length); j++) {
31112
- var _arrResultQuestions$j, _arrResultQuestions$j2, _arrResultQuestions$j3, _arrResultQuestions$j4, _arrResultQuestions$j5;
31182
+ var _arrResultQuestions$j8;
31113
31183
 
31114
- var resultQuestion = (_arrResultQuestions$j = arrResultQuestions[j]) !== null && _arrResultQuestions$j !== void 0 && _arrResultQuestions$j.questionText.includes("<p>") ? (_arrResultQuestions$j2 = arrResultQuestions[j]) === null || _arrResultQuestions$j2 === void 0 ? void 0 : _arrResultQuestions$j2.questionText.slice(3, (_arrResultQuestions$j3 = arrResultQuestions[j]) === null || _arrResultQuestions$j3 === void 0 ? void 0 : _arrResultQuestions$j3.questionText.indexOf("</p>")) : ((_arrResultQuestions$j4 = arrResultQuestions[j]) === null || _arrResultQuestions$j4 === void 0 ? void 0 : _arrResultQuestions$j4.questionText) || "";
31184
+ if (((_arrResultQuestions$j8 = arrResultQuestions[j]) === null || _arrResultQuestions$j8 === void 0 ? void 0 : _arrResultQuestions$j8.avgOfStudentChoice) != 0) {
31185
+ var _arrResultQuestions$j9, _arrResultQuestions$j10, _arrResultQuestions$j11, _arrResultQuestions$j12;
31115
31186
 
31116
- if (resultQuestion != "" && ((_arrResultQuestions$j5 = arrResultQuestions[j]) === null || _arrResultQuestions$j5 === void 0 ? void 0 : _arrResultQuestions$j5.avgOfStudentChoice) != 0) {
31117
- var _arrResultQuestions$j6, _arrResultQuestions$j7;
31187
+ var resultQuestion = (_arrResultQuestions$j9 = arrResultQuestions[j]) !== null && _arrResultQuestions$j9 !== void 0 && _arrResultQuestions$j9.questionText.includes("<p>") ? (_arrResultQuestions$j10 = arrResultQuestions[j]) === null || _arrResultQuestions$j10 === void 0 ? void 0 : _arrResultQuestions$j10.questionText.slice(3, (_arrResultQuestions$j11 = arrResultQuestions[j]) === null || _arrResultQuestions$j11 === void 0 ? void 0 : _arrResultQuestions$j11.questionText.indexOf("</p>")) : ((_arrResultQuestions$j12 = arrResultQuestions[j]) === null || _arrResultQuestions$j12 === void 0 ? void 0 : _arrResultQuestions$j12.questionText) || "";
31118
31188
 
31119
- doc.setFont("Helvetica", "normal", "bold");
31120
- doc.text(resultQuestion + ":", left + 5, LINE + 10);
31121
- doc.setFont("Helvetica", "normal", "normal");
31122
- doc.text(((_arrResultQuestions$j6 = arrResultQuestions[j]) === null || _arrResultQuestions$j6 === void 0 ? void 0 : (_arrResultQuestions$j7 = _arrResultQuestions$j6.avgOfStudentChoice) === null || _arrResultQuestions$j7 === void 0 ? void 0 : _arrResultQuestions$j7.toFixed(1)) * 100 + "%", left + (resultQuestion === null || resultQuestion === void 0 ? void 0 : resultQuestion.length) * 3 + 12, LINE + 10);
31123
- LINE += 11;
31189
+ if (resultQuestion != "") {
31190
+ var _arrResultQuestions$j13, _arrResultQuestions$j14;
31124
31191
 
31125
- if (LINE > lineOptionConference) {
31126
- lineOptionConference = LINE;
31192
+ doc.setFont("Helvetica", "normal", "bold");
31193
+ doc.text((resultQuestion.toLowerCase().includes("how productive") ? "Productive" : resultQuestion) + ":", left + 5, LINE + 10);
31194
+ doc.setFont("Helvetica", "normal", "normal");
31195
+ doc.text("" + ((_arrResultQuestions$j13 = arrResultQuestions[j]) === null || _arrResultQuestions$j13 === void 0 ? void 0 : (_arrResultQuestions$j14 = _arrResultQuestions$j13.avgOfStudentChoice) === null || _arrResultQuestions$j14 === void 0 ? void 0 : _arrResultQuestions$j14.toFixed(1)) + (resultQuestion.toLowerCase().includes("grade") ? "" : "%"), left + 12 + (resultQuestion.toLowerCase().includes("how productive") ? 32 : (resultQuestion === null || resultQuestion === void 0 ? void 0 : resultQuestion.length) * 3), LINE + 10);
31196
+ LINE += 10;
31197
+
31198
+ if (LINE > lineOptionClassReflection) {
31199
+ lineOptionClassReflection = LINE;
31200
+ }
31127
31201
  }
31128
31202
  }
31129
31203
  }
31130
31204
 
31131
31205
  left += 100;
31132
31206
 
31133
- if (left + 105 > WIDTH_PAPER && (((_chartDataConference$2 = chartDataConference.overviewQuestionChoice[i + 1]) === null || _chartDataConference$2 === void 0 ? void 0 : (_chartDataConference$3 = _chartDataConference$2.resultQuestion[0]) === null || _chartDataConference$3 === void 0 ? void 0 : _chartDataConference$3.questionId) != 0 || ((_chartDataConference$4 = chartDataConference.overviewQuestionChoice[i + 1]) === null || _chartDataConference$4 === void 0 ? void 0 : (_chartDataConference$5 = _chartDataConference$4.resultQuestion[0]) === null || _chartDataConference$5 === void 0 ? void 0 : _chartDataConference$5.questionText) != "")) {
31207
+ if (left + 105 > WIDTH_PAPER && chartDataClassReflection.overviewQuestionChoice[i + 1].resultQuestion[0].questionId != 0) {
31134
31208
  ;
31135
- left = 20, line = lineOptionConference + 20;
31209
+ left = 20, line = lineOptionClassReflection + 20;
31136
31210
  } else {
31137
31211
  LINE = line;
31138
31212
  }
31139
31213
 
31140
- var _temp5 = function () {
31214
+ var _temp22 = function () {
31141
31215
  if (line + 100 > HEIGHT_PAPER) {
31142
31216
  doc.addPage();
31143
31217
  return Promise.resolve(createImageHeader()).then(function () {
@@ -31147,177 +31221,107 @@ var OverviewToPDF = function OverviewToPDF(props) {
31147
31221
  }
31148
31222
  }();
31149
31223
 
31150
- if (_temp5 && _temp5.then) return _temp5.then(function () {});
31151
- });
31152
-
31153
- return _temp10 && _temp10.then ? _temp10.then(_temp11) : _temp11(_temp10);
31154
- });
31155
- });
31156
- }
31157
-
31158
- doc.setFontSize(8);
31159
- var i = 0;
31160
-
31161
- var _temp12 = _for(function () {
31162
- var _chartDataClassReflec;
31163
-
31164
- return i < ((_chartDataClassReflec = chartDataClassReflection.overviewQuestionChoice) === null || _chartDataClassReflec === void 0 ? void 0 : _chartDataClassReflec.length);
31165
- }, function () {
31166
- return i++;
31167
- }, function () {
31168
- var LINE = line;
31169
-
31170
- var _temp4 = function () {
31171
- if (chartDataClassReflection.overviewQuestionChoice[i].resultQuestion[0].questionId != 0) {
31172
- var arrResultQuestions = chartDataClassReflection.overviewQuestionChoice[i].resultQuestion;
31173
- doc.setFontSize(12);
31174
- doc.setFont("Helvetica", "normal", "bold");
31175
- doc.text(chartDataClassReflection.overviewQuestionChoice[i].month, left, LINE);
31176
- doc.setFontSize(8);
31177
-
31178
- for (var j = 0; j < (arrResultQuestions === null || arrResultQuestions === void 0 ? void 0 : arrResultQuestions.length); j++) {
31179
- var _arrResultQuestions$j8;
31180
-
31181
- if (((_arrResultQuestions$j8 = arrResultQuestions[j]) === null || _arrResultQuestions$j8 === void 0 ? void 0 : _arrResultQuestions$j8.avgOfStudentChoice) != 0) {
31182
- var _arrResultQuestions$j9, _arrResultQuestions$j10, _arrResultQuestions$j11, _arrResultQuestions$j12;
31183
-
31184
- var resultQuestion = (_arrResultQuestions$j9 = arrResultQuestions[j]) !== null && _arrResultQuestions$j9 !== void 0 && _arrResultQuestions$j9.questionText.includes("<p>") ? (_arrResultQuestions$j10 = arrResultQuestions[j]) === null || _arrResultQuestions$j10 === void 0 ? void 0 : _arrResultQuestions$j10.questionText.slice(3, (_arrResultQuestions$j11 = arrResultQuestions[j]) === null || _arrResultQuestions$j11 === void 0 ? void 0 : _arrResultQuestions$j11.questionText.indexOf("</p>")) : ((_arrResultQuestions$j12 = arrResultQuestions[j]) === null || _arrResultQuestions$j12 === void 0 ? void 0 : _arrResultQuestions$j12.questionText) || "";
31185
-
31186
- if (resultQuestion != "") {
31187
- var _arrResultQuestions$j13, _arrResultQuestions$j14;
31188
-
31189
- doc.setFont("Helvetica", "normal", "bold");
31190
- doc.text((resultQuestion.toLowerCase().includes("how productive") ? "Productive" : resultQuestion) + ":", left + 5, LINE + 10);
31191
- doc.setFont("Helvetica", "normal", "normal");
31192
- doc.text("" + ((_arrResultQuestions$j13 = arrResultQuestions[j]) === null || _arrResultQuestions$j13 === void 0 ? void 0 : (_arrResultQuestions$j14 = _arrResultQuestions$j13.avgOfStudentChoice) === null || _arrResultQuestions$j14 === void 0 ? void 0 : _arrResultQuestions$j14.toFixed(1)) + (resultQuestion.toLowerCase().includes("grade") ? "" : "%"), left + 12 + (resultQuestion.toLowerCase().includes("how productive") ? 32 : (resultQuestion === null || resultQuestion === void 0 ? void 0 : resultQuestion.length) * 3), LINE + 10);
31193
- LINE += 10;
31194
-
31195
- if (LINE > lineOptionClassReflection) {
31196
- lineOptionClassReflection = LINE;
31197
- }
31198
- }
31199
- }
31224
+ if (_temp22 && _temp22.then) return _temp22.then(function () {});
31200
31225
  }
31226
+ }();
31201
31227
 
31202
- left += 100;
31203
-
31204
- if (left + 105 > WIDTH_PAPER && chartDataClassReflection.overviewQuestionChoice[i + 1].resultQuestion[0].questionId != 0) {
31205
- ;
31206
- left = 20, line = lineOptionClassReflection + 20;
31207
- } else {
31208
- LINE = line;
31209
- }
31228
+ if (_temp4 && _temp4.then) return _temp4.then(function () {});
31229
+ });
31210
31230
 
31211
- var _temp22 = function () {
31212
- if (line + 100 > HEIGHT_PAPER) {
31213
- doc.addPage();
31214
- return Promise.resolve(createImageHeader()).then(function () {
31215
- line = 85;
31216
- left = 20;
31217
- });
31218
- }
31219
- }();
31231
+ return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
31232
+ });
31233
+ });
31234
+ }
31220
31235
 
31221
- if (_temp22 && _temp22.then) return _temp22.then(function () {});
31222
- }
31223
- }();
31236
+ doc.setFont("Helvetica", "normal", "normal");
31237
+ left = 20;
31238
+ line = lineOptionOneToOne + 30;
31224
31239
 
31225
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
31240
+ var _temp14 = function () {
31241
+ if (line + 200 > HEIGHT_PAPER) {
31242
+ doc.addPage();
31243
+ return Promise.resolve(createImageHeader()).then(function () {
31244
+ line = 80;
31226
31245
  });
31246
+ }
31247
+ }();
31227
31248
 
31228
- return _temp12 && _temp12.then ? _temp12.then(_temp13) : _temp13(_temp12);
31229
- });
31230
- });
31249
+ return _temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14);
31231
31250
  }
31232
31251
 
31233
- doc.setFont("Helvetica", "normal", "normal");
31234
31252
  left = 20;
31235
- line = lineOptionOneToOne + 30;
31253
+ var lineOptionOneToOne = line;
31254
+ var i = 0;
31236
31255
 
31237
- var _temp14 = function () {
31238
- if (line + 200 > HEIGHT_PAPER) {
31239
- doc.addPage();
31240
- return Promise.resolve(createImageHeader()).then(function () {
31241
- line = 80;
31242
- });
31243
- }
31244
- }();
31256
+ var _temp16 = _for(function () {
31257
+ var _chartOneToOneData$ov;
31245
31258
 
31246
- return _temp14 && _temp14.then ? _temp14.then(_temp15) : _temp15(_temp14);
31247
- }
31259
+ return i < ((_chartOneToOneData$ov = chartOneToOneData.overviewQuestionChoice) === null || _chartOneToOneData$ov === void 0 ? void 0 : _chartOneToOneData$ov.length);
31260
+ }, function () {
31261
+ return i++;
31262
+ }, function () {
31263
+ var LINE = line;
31248
31264
 
31249
- left = 20;
31250
- var lineOptionOneToOne = line;
31251
- var i = 0;
31252
-
31253
- var _temp16 = _for(function () {
31254
- var _chartOneToOneData$ov;
31255
-
31256
- return i < ((_chartOneToOneData$ov = chartOneToOneData.overviewQuestionChoice) === null || _chartOneToOneData$ov === void 0 ? void 0 : _chartOneToOneData$ov.length);
31257
- }, function () {
31258
- return i++;
31259
- }, function () {
31260
- var LINE = line;
31261
-
31262
- var _temp2 = function () {
31263
- if (chartOneToOneData.overviewQuestionChoice[i].resultQuestion[0].questionId != 0) {
31264
- var arrResultQuestions = chartOneToOneData.overviewQuestionChoice[i].resultQuestion;
31265
- doc.setFontSize(12);
31266
- doc.setFont("Helvetica", "normal", "bold");
31267
- doc.text(chartOneToOneData.overviewQuestionChoice[i].month, left, LINE);
31268
- doc.setFontSize(8);
31265
+ var _temp2 = function () {
31266
+ if (chartOneToOneData.overviewQuestionChoice[i].resultQuestion[0].questionId != 0) {
31267
+ var arrResultQuestions = chartOneToOneData.overviewQuestionChoice[i].resultQuestion;
31268
+ doc.setFontSize(12);
31269
+ doc.setFont("Helvetica", "normal", "bold");
31270
+ doc.text(chartOneToOneData.overviewQuestionChoice[i].month, left, LINE);
31271
+ doc.setFontSize(8);
31269
31272
 
31270
- for (var j = 0; j < (arrResultQuestions === null || arrResultQuestions === void 0 ? void 0 : arrResultQuestions.length); j++) {
31271
- var _arrResultQuestions$j15;
31273
+ for (var j = 0; j < (arrResultQuestions === null || arrResultQuestions === void 0 ? void 0 : arrResultQuestions.length); j++) {
31274
+ var _arrResultQuestions$j15;
31272
31275
 
31273
- if (((_arrResultQuestions$j15 = arrResultQuestions[j]) === null || _arrResultQuestions$j15 === void 0 ? void 0 : _arrResultQuestions$j15.avgOfStudentChoice) != 0) {
31274
- var _arrResultQuestions$j16, _arrResultQuestions$j17;
31276
+ if (((_arrResultQuestions$j15 = arrResultQuestions[j]) === null || _arrResultQuestions$j15 === void 0 ? void 0 : _arrResultQuestions$j15.avgOfStudentChoice) != 0) {
31277
+ var _arrResultQuestions$j16, _arrResultQuestions$j17;
31275
31278
 
31276
- var resultQuestion = ((_arrResultQuestions$j16 = arrResultQuestions[j]) === null || _arrResultQuestions$j16 === void 0 ? void 0 : _arrResultQuestions$j16.questionText.slice(3, (_arrResultQuestions$j17 = arrResultQuestions[j]) === null || _arrResultQuestions$j17 === void 0 ? void 0 : _arrResultQuestions$j17.questionText.indexOf("</p>"))) || "";
31279
+ var resultQuestion = ((_arrResultQuestions$j16 = arrResultQuestions[j]) === null || _arrResultQuestions$j16 === void 0 ? void 0 : _arrResultQuestions$j16.questionText.slice(3, (_arrResultQuestions$j17 = arrResultQuestions[j]) === null || _arrResultQuestions$j17 === void 0 ? void 0 : _arrResultQuestions$j17.questionText.indexOf("</p>"))) || "";
31277
31280
 
31278
- if (resultQuestion != "") {
31279
- var _arrResultQuestions$j18, _arrResultQuestions$j19;
31281
+ if (resultQuestion != "") {
31282
+ var _arrResultQuestions$j18, _arrResultQuestions$j19;
31280
31283
 
31281
- doc.setFont("Helvetica", "normal", "bold");
31282
- doc.text(resultQuestion + ":", left + 5, LINE + 10);
31283
- doc.setFont("Helvetica", "normal", "normal");
31284
- doc.text(((_arrResultQuestions$j18 = arrResultQuestions[j]) === null || _arrResultQuestions$j18 === void 0 ? void 0 : (_arrResultQuestions$j19 = _arrResultQuestions$j18.avgOfStudentChoice) === null || _arrResultQuestions$j19 === void 0 ? void 0 : _arrResultQuestions$j19.toFixed(1)) + "%", left + (resultQuestion === null || resultQuestion === void 0 ? void 0 : resultQuestion.length) * 2.5 + 17, LINE + 10);
31285
- LINE += 10;
31284
+ doc.setFont("Helvetica", "normal", "bold");
31285
+ doc.text(resultQuestion + ":", left + 5, LINE + 10);
31286
+ doc.setFont("Helvetica", "normal", "normal");
31287
+ doc.text(((_arrResultQuestions$j18 = arrResultQuestions[j]) === null || _arrResultQuestions$j18 === void 0 ? void 0 : (_arrResultQuestions$j19 = _arrResultQuestions$j18.avgOfStudentChoice) === null || _arrResultQuestions$j19 === void 0 ? void 0 : _arrResultQuestions$j19.toFixed(1)) + "%", left + (resultQuestion === null || resultQuestion === void 0 ? void 0 : resultQuestion.length) * 2.5 + 17, LINE + 10);
31288
+ LINE += 10;
31286
31289
 
31287
- if (LINE > lineOptionOneToOne) {
31288
- lineOptionOneToOne = LINE;
31290
+ if (LINE > lineOptionOneToOne) {
31291
+ lineOptionOneToOne = LINE;
31292
+ }
31289
31293
  }
31290
31294
  }
31291
31295
  }
31292
- }
31293
31296
 
31294
- left += 100;
31295
-
31296
- if (left + 105 > WIDTH_PAPER) {
31297
- ;
31298
- left = 20, line = lineOptionOneToOne + 20;
31299
- } else {
31300
- LINE = line;
31301
- }
31297
+ left += 100;
31302
31298
 
31303
- var _temp23 = function () {
31304
- if (line + 150 > HEIGHT_PAPER) {
31305
- doc.addPage();
31306
- return Promise.resolve(createImageHeader()).then(function () {
31307
- line = 85;
31308
- left = 20;
31309
- });
31299
+ if (left + 105 > WIDTH_PAPER) {
31300
+ ;
31301
+ left = 20, line = lineOptionOneToOne + 20;
31302
+ } else {
31303
+ LINE = line;
31310
31304
  }
31311
- }();
31312
31305
 
31313
- if (_temp23 && _temp23.then) return _temp23.then(function () {});
31314
- }
31315
- }();
31306
+ var _temp23 = function () {
31307
+ if (line + 150 > HEIGHT_PAPER) {
31308
+ doc.addPage();
31309
+ return Promise.resolve(createImageHeader()).then(function () {
31310
+ line = 85;
31311
+ left = 20;
31312
+ });
31313
+ }
31314
+ }();
31316
31315
 
31317
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
31318
- });
31316
+ if (_temp23 && _temp23.then) return _temp23.then(function () {});
31317
+ }
31318
+ }();
31319
31319
 
31320
- return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
31320
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
31321
+ });
31322
+
31323
+ return _temp16 && _temp16.then ? _temp16.then(_temp17) : _temp17(_temp16);
31324
+ });
31321
31325
  });
31322
31326
  });
31323
31327
  });
@@ -52952,7 +52956,7 @@ var AddNote = function AddNote() {
52952
52956
  })), React__default.createElement("div", {
52953
52957
  className: "" + styles$z["input-note"]
52954
52958
  }, React__default.createElement(InputComponent, {
52955
- name: "type_a_note",
52959
+ name: t("type_a_note"),
52956
52960
  placeholder: t("type_a_note"),
52957
52961
  valueText: note,
52958
52962
  onChange: function onChange(e) {
@@ -57770,7 +57774,7 @@ var DoneList = function DoneList() {
57770
57774
 
57771
57775
  var tabs$2 = [{
57772
57776
  path: "/action-point/to-do",
57773
- title: "To-do",
57777
+ title: "To do",
57774
57778
  component: TodoList
57775
57779
  }, {
57776
57780
  path: "/action-point/done",