mario-education 2.4.170-level → 2.4.172-level

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.
@@ -28426,9 +28426,9 @@ var INITIAl_STUDENT_DASHBOARD = {
28426
28426
  totalOneToOne: 0,
28427
28427
  totalTimeConference: 0,
28428
28428
  totalTimeOneToOne: 0,
28429
- totalCheckIn: 0
28429
+ totalCheckIn: 0,
28430
+ schoolName: ""
28430
28431
  };
28431
- var COLOR_CHART_AND_PERCENTS = ["#73C8E5", "#97AFB9", "#FFB04F", "#FF7670", "#00B8B2", "#00B8FF", "#C6A762", "#C94645", "#006E60", "#336DDA", "#994700"];
28432
28432
  var COLOR_CHART_BUBBLE = ["#169490", "#316CD9", "#FFB04F", "#0F9655"];
28433
28433
  var PERCENT = [100, 80, 60, 40, 20, 0];
28434
28434
  var GENDER_OPTION = [{
@@ -29868,7 +29868,8 @@ var useChartDatas = function useChartDatas() {
29868
29868
  avgQuestionLastMonth: avgQuestionLastMonth,
29869
29869
  studentPressure: studentPressure,
29870
29870
  dataOverallReadyToLearn: dataOverallReadyToLearn,
29871
- readinessToLearning: readinessToLearning
29871
+ readinessToLearning: readinessToLearning,
29872
+ listTotalTime: listTotalTime
29872
29873
  };
29873
29874
  };
29874
29875
 
@@ -30685,13 +30686,17 @@ var LineChart = function LineChart(_ref) {
30685
30686
  var OverallDonutChart = function OverallDonutChart(_ref) {
30686
30687
  var series = _ref.series,
30687
30688
  colors = _ref.colors,
30688
- label = _ref.label;
30689
+ label = _ref.label,
30690
+ _ref$width = _ref.width,
30691
+ width = _ref$width === void 0 ? "100%" : _ref$width,
30692
+ _ref$height = _ref.height,
30693
+ height = _ref$height === void 0 ? 250 : _ref$height;
30689
30694
  return React.createElement(Chart, {
30690
30695
  options: overallDonutCHartOptions(label, colors),
30691
30696
  series: series,
30692
30697
  type: "donut",
30693
- width: "100%",
30694
- height: 250
30698
+ width: width,
30699
+ height: height
30695
30700
  });
30696
30701
  };
30697
30702
 
@@ -30708,7 +30713,10 @@ var GenerateChartData = function GenerateChartData(_ref) {
30708
30713
  avgQuestionLastMonth = _ref.avgQuestionLastMonth,
30709
30714
  isShowExpandIcon = _ref.isShowExpandIcon,
30710
30715
  onExpand = _ref.onExpand,
30711
- timeOfDay = _ref.timeOfDay;
30716
+ timeOfDay = _ref.timeOfDay,
30717
+ isPrint = _ref.isPrint,
30718
+ width = _ref.width,
30719
+ height = _ref.height;
30712
30720
  var avgs = [];
30713
30721
 
30714
30722
  var _loop = function _loop(i) {
@@ -30745,7 +30753,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
30745
30753
  return React.createElement("div", {
30746
30754
  key: name,
30747
30755
  className: "w-100 h-100 " + styles$1["column-chart-percent"]
30748
- }, React.createElement("div", {
30756
+ }, !isPrint && React.createElement("div", {
30749
30757
  className: "" + styles$1["header-chart-generate"]
30750
30758
  }, React.createElement("p", {
30751
30759
  className: "" + styles$1["title-chart-generate"]
@@ -30764,6 +30772,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
30764
30772
  var isStressQuestion = item.name.toLocaleLowerCase().includes("stress");
30765
30773
  var classArrowUp = !isStressQuestion ? "arrow-up" : "arrow-down";
30766
30774
  var classArrowDown = !isStressQuestion ? "arrow-down" : "arrow-up";
30775
+ if (isPrint && !activeColumn[index]) return null;
30767
30776
  return React.createElement("div", {
30768
30777
  hidden: !item.name,
30769
30778
  className: "" + styles$1["item-checkbox"],
@@ -30817,7 +30826,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
30817
30826
  className: "" + styles$1["month-text"]
30818
30827
  }, "vs last " + timeOfDay))));
30819
30828
  })), React.createElement("div", {
30820
- className: "w-100"
30829
+ className: "w-100 " + (isPrint && typeChart === TYPECHART.DONUT ? "d-flex justify-content-center" : "")
30821
30830
  }, typeChart === TYPECHART.AREA && React.createElement(AreaChart, {
30822
30831
  months: months,
30823
30832
  activeColumn: activeColumn,
@@ -30839,7 +30848,9 @@ var GenerateChartData = function GenerateChartData(_ref) {
30839
30848
  }), typeChart === TYPECHART.DONUT && React.createElement(OverallDonutChart, {
30840
30849
  series: seriesDonut,
30841
30850
  colors: colors,
30842
- label: label
30851
+ label: label,
30852
+ width: width,
30853
+ height: height
30843
30854
  })));
30844
30855
  };
30845
30856
 
@@ -30924,7 +30935,9 @@ var CustomArcLabel = function CustomArcLabel(_ref) {
30924
30935
  var TopLearningStrategy = function TopLearningStrategy(_ref2) {
30925
30936
  var _data$learningStrateg, _learningStrategies$f, _learningStrategies$f2;
30926
30937
 
30927
- var data = _ref2.data;
30938
+ var data = _ref2.data,
30939
+ learningStrategyId = _ref2.learningStrategyId,
30940
+ topLearningStrategyId = _ref2.topLearningStrategyId;
30928
30941
  if (!data) return React.createElement(Loading, null);
30929
30942
  var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
30930
30943
  var isMobileScreen = screenWidth < 576;
@@ -31045,7 +31058,10 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
31045
31058
  className: "" + styles$1["title-chart"]
31046
31059
  }, t(topLearningStrategyName)), React.createElement("p", {
31047
31060
  className: "" + styles$1["description-chart"]
31048
- }, "The Effectiveness of Learning Strategies by Student's feedback"))), seriesLearningStrategy.some(function (i) {
31061
+ }, "The Effectiveness of Learning Strategies by Student's feedback"))), React.createElement("div", {
31062
+ className: "w-100 h-100",
31063
+ id: learningStrategyId
31064
+ }, seriesLearningStrategy.some(function (i) {
31049
31065
  return i.data;
31050
31066
  }) ? React.createElement("div", {
31051
31067
  style: {
@@ -31062,7 +31078,7 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
31062
31078
  src: "images/chart-top-learning.png"
31063
31079
  }), React.createElement("p", {
31064
31080
  className: "" + styles$1["name-chart"]
31065
- }, "Perceived Usefulness")), React.createElement(Col, {
31081
+ }, "Perceived Usefulness"))), React.createElement(Col, {
31066
31082
  md: 5,
31067
31083
  className: "" + styles$1["box-top-5-most"]
31068
31084
  }, React.createElement("div", {
@@ -31073,7 +31089,10 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
31073
31089
  className: "" + styles$1["title-chart"]
31074
31090
  }, t(topMostUsedStrategiesName)), React.createElement("p", {
31075
31091
  className: "" + styles$1["description-chart"]
31076
- }, "How many times a strategy has been chosen"))), dataConvert.length > 0 ? React.createElement(ResponsivePie, {
31092
+ }, "How many times a strategy has been chosen"))), React.createElement("div", {
31093
+ className: "w-100 h-100",
31094
+ id: topLearningStrategyId
31095
+ }, dataConvert.length > 0 ? React.createElement(ResponsivePie, {
31077
31096
  data: dataConvert,
31078
31097
  margin: screenWidth > 550 ? largeMarginChart : smallMarginChart,
31079
31098
  innerRadius: 0.5,
@@ -31088,7 +31107,7 @@ var TopLearningStrategy = function TopLearningStrategy(_ref2) {
31088
31107
  style: {
31089
31108
  fontSize: "14px"
31090
31109
  }
31091
- }, t("no_data"))))));
31110
+ }, t("no_data")))))));
31092
31111
  };
31093
31112
 
31094
31113
  var propsAreEqual = function propsAreEqual(preProps, nextProps) {
@@ -31098,7 +31117,8 @@ var propsAreEqual = function propsAreEqual(preProps, nextProps) {
31098
31117
  var TopLearningStrategy$1 = React.memo(TopLearningStrategy, propsAreEqual);
31099
31118
 
31100
31119
  var BubbleChartCustom = function BubbleChartCustom(_ref) {
31101
- var data = _ref.data;
31120
+ var data = _ref.data,
31121
+ isPrint = _ref.isPrint;
31102
31122
 
31103
31123
  var _useTranslation = useTranslation(),
31104
31124
  t = _useTranslation.t;
@@ -31112,7 +31132,7 @@ var BubbleChartCustom = function BubbleChartCustom(_ref) {
31112
31132
  var seriesName = seriesNameBubbleChartCustom(data);
31113
31133
  return React.createElement("div", {
31114
31134
  className: "" + styles$1["size-100"]
31115
- }, React.createElement("div", {
31135
+ }, !isPrint && React.createElement("div", {
31116
31136
  className: "" + styles$1["block-header-chart"]
31117
31137
  }, React.createElement("p", {
31118
31138
  className: styles$1["title-chart"] + " " + styles$1["ml-10"]
@@ -31436,88 +31456,240 @@ var DashboardToPDF = function DashboardToPDF(props) {
31436
31456
  dayOfWeekConference = props.dayOfWeekConference,
31437
31457
  avgConferenceLastMonth = props.avgConferenceLastMonth,
31438
31458
  readinessToLearning = props.readinessToLearning,
31439
- studentPressure = props.studentPressure;
31459
+ studentPressure = props.studentPressure,
31460
+ dataOverallReadyToLearn = props.dataOverallReadyToLearn,
31461
+ schoolName = props.schoolName;
31440
31462
 
31441
31463
  var _useTranslation = useTranslation(),
31442
31464
  t = _useTranslation.t;
31443
31465
 
31444
31466
  var dispatch = useDispatch();
31445
31467
 
31468
+ var getWidthOfWord = function getWidthOfWord(character, fontSize, fontWeight) {
31469
+ var dummyElement = document.createElement("span");
31470
+ dummyElement.style.visibility = "hidden";
31471
+ dummyElement.style.position = "absolute";
31472
+ dummyElement.style.whiteSpace = "nowrap";
31473
+ dummyElement.style.fontSize = fontSize;
31474
+ dummyElement.style.fontWeight = fontWeight;
31475
+ dummyElement.innerHTML = character;
31476
+ document.body.appendChild(dummyElement);
31477
+ var width = dummyElement.offsetWidth;
31478
+ document.body.removeChild(dummyElement);
31479
+ return width;
31480
+ };
31481
+
31446
31482
  var generatePDF = function generatePDF() {
31447
31483
  try {
31448
- var _temp42 = function _temp42() {
31484
+ var _temp40 = function _temp40() {
31449
31485
  dispatch(setLoading(false));
31450
31486
  };
31451
31487
 
31452
31488
  dispatch(setLoading(true));
31453
31489
 
31454
- var _temp43 = _catch(function () {
31455
- function _temp39() {
31456
- function _temp37() {
31457
- function _temp35() {
31458
- function _temp33() {
31459
- function _temp31() {
31460
- function _temp29() {
31461
- function _temp27() {
31462
- function _temp25() {
31463
- doc.save("DashBoard.pdf");
31490
+ var _temp41 = _catch(function () {
31491
+ function _temp37() {
31492
+ function _temp35() {
31493
+ function _temp33() {
31494
+ function _temp31() {
31495
+ function _temp29() {
31496
+ function _temp27() {
31497
+ function _temp25() {
31498
+ function _temp23() {
31499
+ function _temp21() {
31500
+ doc.save("DashBoard.pdf");
31501
+ }
31502
+
31503
+ var _temp20 = function () {
31504
+ if (selectedToPDF.includes(topLearningStrategyName)) {
31505
+ return Promise.resolve(createImageHeader()).then(function () {
31506
+ doc.setFontSize(14);
31507
+ doc.setTextColor("#000");
31508
+ doc.setFont("Helvetica", "normal", "bold");
31509
+ doc.text(t(topLearningStrategyName), left, 70);
31510
+ doc.setFontSize(12);
31511
+ doc.setTextColor("#3D3D3D");
31512
+ doc.setFont("Helvetica", "normal", "normal");
31513
+ doc.text("The Effectiveness of Learning Strategies by Student's feedback", left, line + 4);
31514
+ var chart = document.getElementById(topLearningStrategyName);
31515
+ return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31516
+ line += 12;
31517
+ left = 20;
31518
+ var chartWidth = 420;
31519
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31520
+ doc.addImage(canvas.toDataURL("image/png"), 10, line, chartWidth, chartHeight);
31521
+ doc.addPage();
31522
+ line = 80;
31523
+ left = 20;
31524
+ return Promise.resolve(createImageHeader()).then(function () {
31525
+ doc.setFontSize(14);
31526
+ doc.setFont("Helvetica", "normal", "bold");
31527
+ doc.setTextColor("#000");
31528
+ doc.text(t(topMostUsedStrategiesName), left, 70);
31529
+ doc.setFontSize(12);
31530
+ doc.setTextColor("#3D3D3D");
31531
+ doc.setFont("Helvetica", "normal", "normal");
31532
+ doc.text("How many times a strategy has been chosen", left, line + 4);
31533
+ var topChart = document.getElementById(topMostUsedStrategiesName);
31534
+ return Promise.resolve(html2canvas(topChart)).then(function (topCanvas) {
31535
+ doc.setFontSize(8);
31536
+ line += 16;
31537
+ var topChartWidth = 420;
31538
+ var topChartHeight = topChart && topChart.clientWidth ? topChartWidth * topChart.clientHeight / topChart.clientWidth : heightChart;
31539
+ doc.addImage(topCanvas.toDataURL("image/png"), 10, line + 20, topChartWidth, topChartHeight);
31540
+ });
31541
+ });
31542
+ });
31543
+ });
31544
+ }
31545
+ }();
31546
+
31547
+ return _temp20 && _temp20.then ? _temp20.then(_temp21) : _temp21(_temp20);
31464
31548
  }
31465
31549
 
31466
- var _temp24 = function () {
31467
- if (selectedToPDF.includes(topLearningStrategyName)) {
31468
- var chart = document.getElementById("learning_strategy");
31469
- return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31470
- doc.setFontSize(8);
31471
- left = 20;
31472
- doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, 450, 150);
31473
- doc.setFontSize(8);
31550
+ var _temp22 = function () {
31551
+ if (selectedToPDF.includes(learningProcessName)) {
31552
+ return Promise.resolve(createImageHeader()).then(function () {
31553
+ doc.setFontSize(14);
31554
+ doc.setFont("Helvetica", "normal", "bold");
31555
+ doc.text(t(learningProcessName), left, 70);
31556
+ line += 20;
31557
+ var chart = document.getElementById("learning_progress");
31558
+ return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31559
+ function _temp19() {
31560
+ left = 20;
31561
+ line += questions.length * 10;
31562
+ var chartWidth = 420;
31563
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31564
+ doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, chartWidth, chartHeight);
31565
+ chartCount++;
31566
+
31567
+ if (chartCount < selectedToPDF.length) {
31568
+ doc.addPage();
31569
+ line = 80;
31570
+ left = 20;
31571
+ }
31572
+ }
31573
+
31574
+ var lineOptionPrecess = line;
31575
+ doc.setFontSize(8);
31576
+ var questions = seriesConference.map(function (r) {
31577
+ return r.name;
31578
+ });
31579
+ var COLORS = ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"];
31580
+
31581
+ var _temp18 = _forTo(monthsConference, function (index) {
31582
+ var _line = line;
31583
+ doc.setFontSize(12);
31584
+ doc.setFont("Helvetica", "normal", "bold");
31585
+ doc.text(monthsConference[index], left, _line);
31586
+ doc.setFontSize(8);
31587
+
31588
+ for (var indexResult = 0; indexResult < (seriesConference === null || seriesConference === void 0 ? void 0 : seriesConference.length); indexResult++) {
31589
+ var avg = seriesConference[indexResult].data[index];
31590
+
31591
+ if (avg != 0) {
31592
+ var questionText = questions[indexResult];
31593
+
31594
+ if (questionText != "") {
31595
+ doc.setDrawColor(0);
31596
+ doc.setFillColor(COLORS[indexResult]);
31597
+ doc.roundedRect(left, _line + 5, 5, 5, 1, 1, "F");
31598
+ doc.setFont("Helvetica", "normal", "bold");
31599
+ doc.text(questionText + ":", left + 8, _line + 10);
31600
+ doc.setFont("Helvetica", "normal", "normal");
31601
+ doc.text((avg === null || avg === void 0 ? void 0 : avg.toFixed(2)) + "%", left + (questionText === null || questionText === void 0 ? void 0 : questionText.length) * 2.5 + 20.5, _line + 10);
31602
+ }
31603
+
31604
+ _line += 10;
31605
+
31606
+ if (_line > lineOptionPrecess) {
31607
+ lineOptionPrecess = _line;
31608
+ }
31609
+ }
31610
+ }
31611
+
31612
+ left += 100;
31613
+
31614
+ if (left + 105 > WIDTH_PAPER) {
31615
+ left = 20;
31616
+ line = lineOptionPrecess + 25;
31617
+ }
31618
+
31619
+ var _temp17 = function () {
31620
+ if (line + 150 > HEIGHT_PAPER) {
31621
+ doc.addPage();
31622
+ return Promise.resolve(createImageHeader()).then(function () {
31623
+ line = 80;
31624
+ left = 20;
31625
+ });
31626
+ }
31627
+ }();
31628
+
31629
+ if (_temp17 && _temp17.then) return _temp17.then(function () {});
31630
+ });
31631
+
31632
+ return _temp18 && _temp18.then ? _temp18.then(_temp19) : _temp19(_temp18);
31633
+ });
31474
31634
  });
31475
31635
  }
31476
31636
  }();
31477
31637
 
31478
- return _temp24 && _temp24.then ? _temp24.then(_temp25) : _temp25(_temp24);
31638
+ return _temp22 && _temp22.then ? _temp22.then(_temp23) : _temp23(_temp22);
31479
31639
  }
31480
31640
 
31481
- var _temp26 = function () {
31482
- if (selectedToPDF.includes(learningProcessName)) {
31483
- var _temp44 = function _temp44() {
31641
+ var _temp24 = function () {
31642
+ if (selectedToPDF.includes(successIndicatorsName)) {
31643
+ return Promise.resolve(createImageHeader()).then(function () {
31484
31644
  doc.setFontSize(14);
31485
31645
  doc.setFont("Helvetica", "normal", "bold");
31486
- doc.text(t(learningProcessName), left, line);
31487
- line += 20;
31488
- var chart = document.getElementById("learning_progress");
31646
+ doc.text(t(successIndicatorsName), left, line);
31647
+ line += 40;
31648
+ var chart = document.getElementById("success_indicators");
31489
31649
  return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31490
- function _temp21() {
31491
- left = 20;
31492
- doc.addImage(canvas.toDataURL("image/png"), 10, line + 70, 420, heightChart);
31493
- doc.setFontSize(8);
31494
- doc.addPage();
31495
- line = 80;
31650
+ function _temp16() {
31496
31651
  left = 20;
31652
+ line += questions.length * 10;
31653
+ var chartWidth = 420;
31654
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31655
+ doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, chartWidth, chartHeight);
31656
+ chartCount++;
31657
+
31658
+ if (chartCount < selectedToPDF.length) {
31659
+ doc.addPage();
31660
+ line = 80;
31661
+ left = 20;
31662
+ }
31497
31663
  }
31498
31664
 
31499
- var lineOptionPrecess = line;
31665
+ var lineOptionCheckIn = line;
31500
31666
  doc.setFontSize(8);
31501
- var questions = seriesConference.map(function (r) {
31667
+ var questions = successIndicatorsData.map(function (r) {
31502
31668
  return r.name;
31503
31669
  });
31504
-
31505
- var _temp20 = _forTo(monthsConference, function (index) {
31670
+ var COLORS = ["#73C8E5", "#FFB04F", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"];
31671
+ var indexCheckIn = 0;
31672
+
31673
+ var _temp15 = _for(function () {
31674
+ return indexCheckIn < monthsOneToOne.length;
31675
+ }, function () {
31676
+ return indexCheckIn++;
31677
+ }, function () {
31506
31678
  var _line = line;
31507
31679
  doc.setFontSize(12);
31508
31680
  doc.setFont("Helvetica", "normal", "bold");
31509
- doc.text(monthsConference[index], left, _line);
31681
+ doc.text(monthsOneToOne[indexCheckIn], left, _line);
31510
31682
  doc.setFontSize(8);
31511
31683
 
31512
- for (var indexResult = 0; indexResult < (seriesConference === null || seriesConference === void 0 ? void 0 : seriesConference.length); indexResult++) {
31513
- var avg = seriesConference[indexResult].data[index];
31684
+ for (var indexResult = 0; indexResult < (successIndicatorsData === null || successIndicatorsData === void 0 ? void 0 : successIndicatorsData.length); indexResult++) {
31685
+ var avg = successIndicatorsData[indexResult].data[indexCheckIn];
31514
31686
 
31515
31687
  if (avg != 0) {
31516
31688
  var questionText = questions[indexResult];
31517
31689
 
31518
31690
  if (questionText != "") {
31519
31691
  doc.setDrawColor(0);
31520
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[indexResult]);
31692
+ doc.setFillColor(COLORS[indexResult]);
31521
31693
  doc.roundedRect(left, _line + 5, 5, 5, 1, 1, "F");
31522
31694
  doc.setFont("Helvetica", "normal", "bold");
31523
31695
  doc.text(questionText + ":", left + 8, _line + 10);
@@ -31527,8 +31699,8 @@ var DashboardToPDF = function DashboardToPDF(props) {
31527
31699
 
31528
31700
  _line += 10;
31529
31701
 
31530
- if (_line > lineOptionPrecess) {
31531
- lineOptionPrecess = _line;
31702
+ if (_line > lineOptionCheckIn) {
31703
+ lineOptionCheckIn = _line;
31532
31704
  }
31533
31705
  }
31534
31706
  }
@@ -31537,10 +31709,10 @@ var DashboardToPDF = function DashboardToPDF(props) {
31537
31709
 
31538
31710
  if (left + 105 > WIDTH_PAPER) {
31539
31711
  left = 20;
31540
- line = lineOptionPrecess + 25;
31712
+ line = lineOptionCheckIn + 25;
31541
31713
  }
31542
31714
 
31543
- var _temp19 = function () {
31715
+ var _temp14 = function () {
31544
31716
  if (line + 150 > HEIGHT_PAPER) {
31545
31717
  doc.addPage();
31546
31718
  return Promise.resolve(createImageHeader()).then(function () {
@@ -31550,185 +31722,124 @@ var DashboardToPDF = function DashboardToPDF(props) {
31550
31722
  }
31551
31723
  }();
31552
31724
 
31553
- if (_temp19 && _temp19.then) return _temp19.then(function () {});
31725
+ if (_temp14 && _temp14.then) return _temp14.then(function () {});
31554
31726
  });
31555
31727
 
31556
- return _temp20 && _temp20.then ? _temp20.then(_temp21) : _temp21(_temp20);
31728
+ return _temp15 && _temp15.then ? _temp15.then(_temp16) : _temp16(_temp15);
31557
31729
  });
31558
- };
31559
-
31560
- var _temp45 = function () {
31561
- if (line > HEIGHT_PAPER / 2) {
31562
- line = 80;
31563
- left = 20;
31564
- doc.addPage();
31565
- return Promise.resolve(createImageHeader()).then(function () {});
31566
- }
31567
- }();
31568
-
31569
- return _temp45 && _temp45.then ? _temp45.then(_temp44) : _temp44(_temp45);
31730
+ });
31570
31731
  }
31571
31732
  }();
31572
31733
 
31573
- return _temp26 && _temp26.then ? _temp26.then(_temp27) : _temp27(_temp26);
31734
+ return _temp24 && _temp24.then ? _temp24.then(_temp25) : _temp25(_temp24);
31574
31735
  }
31575
31736
 
31576
- var _temp28 = function () {
31737
+ var _temp26 = function () {
31577
31738
  if (selectedToPDF.includes(studentStressByZone)) {
31578
- var _temp46 = function _temp46() {
31739
+ var _temp42 = function _temp42() {
31579
31740
  doc.setFontSize(14);
31580
31741
  doc.setFont("Helvetica", "normal", "bold");
31581
- doc.text(t(studentStressByZone), left, line);
31742
+ doc.text(t(studentStressByZone), left, line <= 85 ? 70 : line);
31582
31743
  line += 20;
31583
31744
  var chart = document.getElementById("student_stress_by_zone");
31584
31745
  return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31585
- doc.addImage(canvas.toDataURL("image/png"), 10, line, 420, heightChart);
31586
- line += heightChart + 20;
31746
+ var chartWidth = 460;
31747
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31748
+ doc.addImage(canvas.toDataURL("image/png"), 10, line, chartWidth, chartHeight);
31749
+ chartCount++;
31750
+
31751
+ if (chartCount < selectedToPDF.length) {
31752
+ doc.addPage();
31753
+ line = 80;
31754
+ left = 20;
31755
+ }
31587
31756
  });
31588
31757
  };
31589
31758
 
31590
- var _temp47 = function () {
31591
- if (line > HEIGHT_PAPER / 2) {
31592
- line = 80;
31593
- left = 20;
31594
- doc.addPage();
31759
+ if (line > HEIGHT_PAPER / 2) {
31760
+ line = 80;
31761
+ left = 20;
31762
+ doc.addPage();
31763
+ }
31764
+
31765
+ var _temp43 = function () {
31766
+ if (line <= 85) {
31595
31767
  return Promise.resolve(createImageHeader()).then(function () {});
31596
31768
  }
31597
31769
  }();
31598
31770
 
31599
- return _temp47 && _temp47.then ? _temp47.then(_temp46) : _temp46(_temp47);
31771
+ return _temp43 && _temp43.then ? _temp43.then(_temp42) : _temp42(_temp43);
31600
31772
  }
31601
31773
  }();
31602
31774
 
31603
- return _temp28 && _temp28.then ? _temp28.then(_temp29) : _temp29(_temp28);
31775
+ return _temp26 && _temp26.then ? _temp26.then(_temp27) : _temp27(_temp26);
31604
31776
  }
31605
31777
 
31606
- var _temp30 = function () {
31778
+ var _temp28 = function () {
31607
31779
  if (selectedToPDF.includes(studentDistribution)) {
31608
- var _temp48 = function _temp48() {
31609
- var chart = document.getElementById("student_distribution");
31780
+ var _temp44 = function _temp44() {
31781
+ doc.setFontSize(14);
31782
+ doc.setFont("Helvetica", "normal", "bold");
31783
+ doc.text(t(studentDistribution), left, line <= 85 ? 70 : line);
31784
+ var chart = document.getElementById(studentDistribution);
31610
31785
  return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31611
- doc.addImage(canvas.toDataURL("image/png"), 10, line, 420, heightChart);
31612
- line += heightChart + 20;
31786
+ var chartWidth = 420;
31787
+ line += 20;
31788
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31789
+ doc.addImage(canvas.toDataURL("image/png"), 10, line, chartWidth, chartHeight);
31790
+ chartCount++;
31791
+ line += heightChart;
31792
+
31793
+ if (chartCount < selectedToPDF.length && !selectedToPDF.includes(studentStressByZone)) {
31794
+ doc.addPage();
31795
+ line = 80;
31796
+ left = 20;
31797
+ }
31613
31798
  });
31614
31799
  };
31615
31800
 
31616
- var _temp49 = function () {
31617
- if (line > HEIGHT_PAPER / 2) {
31618
- line = 80;
31619
- left = 20;
31620
- doc.addPage();
31801
+ if (line > HEIGHT_PAPER / 2) {
31802
+ line = 80;
31803
+ left = 20;
31804
+ doc.addPage();
31805
+ }
31806
+
31807
+ var _temp45 = function () {
31808
+ if (line <= 85) {
31621
31809
  return Promise.resolve(createImageHeader()).then(function () {});
31622
31810
  }
31623
31811
  }();
31624
31812
 
31625
- return _temp49 && _temp49.then ? _temp49.then(_temp48) : _temp48(_temp49);
31813
+ return _temp45 && _temp45.then ? _temp45.then(_temp44) : _temp44(_temp45);
31626
31814
  }
31627
31815
  }();
31628
31816
 
31629
- return _temp30 && _temp30.then ? _temp30.then(_temp31) : _temp31(_temp30);
31817
+ return _temp28 && _temp28.then ? _temp28.then(_temp29) : _temp29(_temp28);
31630
31818
  }
31631
31819
 
31632
- var _temp32 = function () {
31633
- if (selectedToPDF.includes(successIndicatorsName)) {
31634
- var _temp50 = function _temp50() {
31820
+ var _temp30 = function () {
31821
+ if (selectedToPDF.includes(overallReadinessToLearn)) {
31822
+ return Promise.resolve(createImageHeader()).then(function () {
31635
31823
  doc.setFontSize(14);
31636
31824
  doc.setFont("Helvetica", "normal", "bold");
31637
- doc.text(t(successIndicatorsName), left, line);
31638
- line += 20;
31639
- var chart = document.getElementById("success_indicators");
31825
+ doc.text(t(overallReadinessToLearn), left, 70);
31826
+ var chart = document.getElementById(overallReadinessToLearn);
31640
31827
  return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31641
- function _temp12() {
31642
- left = 20;
31643
- line += questions.length * 10;
31644
- doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, 420, heightChart);
31645
- doc.setFontSize(8);
31646
- line += heightChart + 20;
31647
- }
31648
-
31649
- var lineOptionCheckIn = line;
31650
- doc.setFontSize(8);
31651
- var questions = successIndicatorsData.map(function (r) {
31652
- return r.name;
31653
- });
31654
- var indexCheckIn = 0;
31655
-
31656
- var _temp11 = _for(function () {
31657
- return indexCheckIn < monthsOneToOne.length;
31658
- }, function () {
31659
- return indexCheckIn++;
31660
- }, function () {
31661
- var _line = line;
31662
- doc.setFontSize(12);
31663
- doc.setFont("Helvetica", "normal", "bold");
31664
- doc.text(monthsOneToOne[indexCheckIn], left, _line);
31665
- doc.setFontSize(8);
31666
-
31667
- for (var indexResult = 0; indexResult < (successIndicatorsData === null || successIndicatorsData === void 0 ? void 0 : successIndicatorsData.length); indexResult++) {
31668
- var avg = successIndicatorsData[indexResult].data[indexCheckIn];
31669
-
31670
- if (avg != 0) {
31671
- var questionText = questions[indexResult];
31672
-
31673
- if (questionText != "") {
31674
- doc.setDrawColor(0);
31675
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[indexResult]);
31676
- doc.roundedRect(left, _line + 5, 5, 5, 1, 1, "F");
31677
- doc.setFont("Helvetica", "normal", "bold");
31678
- doc.text(questionText + ":", left + 8, _line + 10);
31679
- doc.setFont("Helvetica", "normal", "normal");
31680
- doc.text((avg === null || avg === void 0 ? void 0 : avg.toFixed(2)) + "%", left + (questionText === null || questionText === void 0 ? void 0 : questionText.length) * 2.5 + 20.5, _line + 10);
31681
- }
31682
-
31683
- _line += 10;
31684
-
31685
- if (_line > lineOptionCheckIn) {
31686
- lineOptionCheckIn = _line;
31687
- }
31688
- }
31689
- }
31690
-
31691
- left += 100;
31692
-
31693
- if (left + 105 > WIDTH_PAPER) {
31694
- left = 20;
31695
- line = lineOptionCheckIn + 25;
31696
- }
31697
-
31698
- var _temp10 = function () {
31699
- if (line + 150 > HEIGHT_PAPER) {
31700
- doc.addPage();
31701
- return Promise.resolve(createImageHeader()).then(function () {
31702
- line = 80;
31703
- left = 20;
31704
- });
31705
- }
31706
- }();
31707
-
31708
- if (_temp10 && _temp10.then) return _temp10.then(function () {});
31709
- });
31710
-
31711
- return _temp11 && _temp11.then ? _temp11.then(_temp12) : _temp12(_temp11);
31712
- });
31713
- };
31714
-
31715
- var _temp51 = function () {
31716
- if (line > HEIGHT_PAPER / 2) {
31717
- line = 80;
31718
31828
  left = 20;
31719
- doc.addPage();
31720
- return Promise.resolve(createImageHeader()).then(function () {});
31721
- }
31722
- }();
31723
-
31724
- return _temp51 && _temp51.then ? _temp51.then(_temp50) : _temp50(_temp51);
31829
+ var chartWidth = 420;
31830
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31831
+ doc.addImage(canvas.toDataURL("image/png"), 10, line, chartWidth, chartHeight);
31832
+ chartCount++;
31833
+ line += heightChart + 20;
31834
+ });
31835
+ });
31725
31836
  }
31726
31837
  }();
31727
31838
 
31728
- return _temp32 && _temp32.then ? _temp32.then(_temp33) : _temp33(_temp32);
31839
+ return _temp30 && _temp30.then ? _temp30.then(_temp31) : _temp31(_temp30);
31729
31840
  }
31730
31841
 
31731
- var _temp34 = function () {
31842
+ var _temp32 = function () {
31732
31843
  if (selectedToPDF.includes(preparednessChartName)) {
31733
31844
  return Promise.resolve(createImageHeader()).then(function () {
31734
31845
  doc.setFontSize(14);
@@ -31740,11 +31851,19 @@ var DashboardToPDF = function DashboardToPDF(props) {
31740
31851
  function _temp9() {
31741
31852
  left = 20;
31742
31853
  line += questions.length * 10;
31743
- doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, 420, heightChart);
31744
- doc.setFontSize(8);
31745
- line += heightChart + 20;
31854
+ var chartWidth = 420;
31855
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31856
+ doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, chartWidth, chartHeight);
31857
+ chartCount++;
31858
+
31859
+ if (chartCount < selectedToPDF.length) {
31860
+ doc.addPage();
31861
+ line = 80;
31862
+ left = 20;
31863
+ }
31746
31864
  }
31747
31865
 
31866
+ line += 20;
31748
31867
  var lineOptionCheckIn = line;
31749
31868
  doc.setFontSize(8);
31750
31869
  var questions = preparednessData.map(function (r) {
@@ -31762,6 +31881,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31762
31881
  doc.setFont("Helvetica", "normal", "bold");
31763
31882
  doc.text(monthsOneToOne[indexCheckIn], left, _line);
31764
31883
  doc.setFontSize(8);
31884
+ var COLORS = ["#169490", "#316CD9", "#FFB04F"];
31765
31885
 
31766
31886
  for (var indexResult = 0; indexResult < (preparednessData === null || preparednessData === void 0 ? void 0 : preparednessData.length); indexResult++) {
31767
31887
  var avg = preparednessData[indexResult].data[indexCheckIn];
@@ -31771,7 +31891,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31771
31891
 
31772
31892
  if (questionText != "") {
31773
31893
  doc.setDrawColor(0);
31774
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[indexResult]);
31894
+ doc.setFillColor(COLORS[indexResult]);
31775
31895
  doc.roundedRect(left, _line + 5, 5, 5, 1, 1, "F");
31776
31896
  doc.setFont("Helvetica", "normal", "bold");
31777
31897
  doc.text(questionText + ":", left + 8, _line + 10);
@@ -31813,10 +31933,10 @@ var DashboardToPDF = function DashboardToPDF(props) {
31813
31933
  }
31814
31934
  }();
31815
31935
 
31816
- return _temp34 && _temp34.then ? _temp34.then(_temp35) : _temp35(_temp34);
31936
+ return _temp32 && _temp32.then ? _temp32.then(_temp33) : _temp33(_temp32);
31817
31937
  }
31818
31938
 
31819
- var _temp36 = function () {
31939
+ var _temp34 = function () {
31820
31940
  if (selectedToPDF.includes(averageStudentStressName)) {
31821
31941
  return Promise.resolve(createImageHeader()).then(function () {
31822
31942
  doc.setFontSize(14);
@@ -31827,13 +31947,19 @@ var DashboardToPDF = function DashboardToPDF(props) {
31827
31947
  return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31828
31948
  function _temp6() {
31829
31949
  left = 20;
31830
- doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, 420, heightChart);
31831
- doc.setFontSize(8);
31832
- doc.addPage();
31833
- line = 80;
31834
- left = 20;
31950
+ var chartWidth = 420;
31951
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
31952
+ doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, chartWidth, chartHeight);
31953
+ chartCount++;
31954
+
31955
+ if (chartCount < selectedToPDF.length) {
31956
+ doc.addPage();
31957
+ line = 80;
31958
+ left = 20;
31959
+ }
31835
31960
  }
31836
31961
 
31962
+ line += 20;
31837
31963
  var lineOptionCheckIn = line;
31838
31964
  doc.setFontSize(8);
31839
31965
  var questions = stressData.map(function (r) {
@@ -31860,7 +31986,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31860
31986
 
31861
31987
  if (questionText != "") {
31862
31988
  doc.setDrawColor(0);
31863
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[indexResult]);
31989
+ doc.setFillColor("#C44140");
31864
31990
  doc.roundedRect(left, _line + 5, 5, 5, 1, 1, "F");
31865
31991
  doc.setFont("Helvetica", "normal", "bold");
31866
31992
  doc.text(questionText + ":", left + 8, _line + 10);
@@ -31902,7 +32028,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31902
32028
  }
31903
32029
  }();
31904
32030
 
31905
- return _temp36 && _temp36.then ? _temp36.then(_temp37) : _temp37(_temp36);
32031
+ return _temp34 && _temp34.then ? _temp34.then(_temp35) : _temp35(_temp34);
31906
32032
  }
31907
32033
 
31908
32034
  var doc = new jsPDF({
@@ -31913,12 +32039,18 @@ var DashboardToPDF = function DashboardToPDF(props) {
31913
32039
  var WIDTH_PAPER = doc.internal.pageSize.width;
31914
32040
  var HEIGHT_PAPER = doc.internal.pageSize.height;
31915
32041
  var heightChart = 200;
32042
+ var splitShoolName = doc.splitTextToSize(schoolName, 120);
32043
+ var chartCount = 0;
32044
+ var schoolWidth = schoolName.length <= 18 ? getWidthOfWord(schoolName, "18px", "bold") : getWidthOfWord(splitShoolName.join(""), "18px", "bold");
31916
32045
 
31917
32046
  var createImageHeader = function createImageHeader() {
31918
32047
  try {
31919
32048
  var imageLogo = document.getElementById("header-logo");
31920
32049
  return Promise.resolve(html2canvas(imageLogo)).then(function (imageLogoCanvas) {
31921
32050
  doc.addImage(imageLogoCanvas.toDataURL("image/png", 1.0), "png", 20, 20, 90, 25);
32051
+ doc.setFontSize(18);
32052
+ doc.setFont("Helvetica", "normal", "bold");
32053
+ doc.text(schoolName.length <= 18 ? schoolName : splitShoolName[0] + "...", (WIDTH_PAPER - schoolWidth) / 2 + 15, 40);
31922
32054
  doc.setFontSize(10);
31923
32055
  doc.setFont("Helvetica", "italic", "normal");
31924
32056
  doc.text("From: " + moment(startTime).format("DD/MM/YYYY"), 310, 40);
@@ -31935,7 +32067,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31935
32067
  var line = 85;
31936
32068
  var left = 20;
31937
32069
 
31938
- var _temp38 = function () {
32070
+ var _temp36 = function () {
31939
32071
  if (selectedToPDF.includes(averageStudentSafetyName)) {
31940
32072
  return Promise.resolve(createImageHeader()).then(function () {
31941
32073
  doc.setFontSize(14);
@@ -31945,16 +32077,19 @@ var DashboardToPDF = function DashboardToPDF(props) {
31945
32077
  return Promise.resolve(html2canvas(chart)).then(function (canvas) {
31946
32078
  function _temp3() {
31947
32079
  left = 20;
31948
- doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, 420, heightChart);
31949
- line = line + heightChart + 30;
32080
+ var chartWidth = 420;
32081
+ var chartHeight = chart && chart.clientWidth ? chartWidth * chart.clientHeight / chart.clientWidth : heightChart;
32082
+ doc.addImage(canvas.toDataURL("image/png"), 10, line + 20, chartWidth, chartHeight);
32083
+ chartCount++;
31950
32084
 
31951
- if (line + 150 > HEIGHT_PAPER) {
32085
+ if (chartCount < selectedToPDF.length) {
31952
32086
  doc.addPage();
31953
32087
  line = 80;
31954
32088
  left = 20;
31955
32089
  }
31956
32090
  }
31957
32091
 
32092
+ line += 20;
31958
32093
  var lineOptionCheckIn = line;
31959
32094
  doc.setFontSize(8);
31960
32095
  var questions = safetyData.map(function (r) {
@@ -31981,7 +32116,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31981
32116
 
31982
32117
  if (questionText != "") {
31983
32118
  doc.setDrawColor(0);
31984
- doc.setFillColor(COLOR_CHART_AND_PERCENTS[indexResult]);
32119
+ doc.setFillColor("#0F9655");
31985
32120
  doc.roundedRect(left, _line + 5, 5, 5, 1, 1, "F");
31986
32121
  doc.setFont("Helvetica", "normal", "bold");
31987
32122
  doc.text(questionText + ":", left + 8, _line + 10);
@@ -32023,7 +32158,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
32023
32158
  }
32024
32159
  }();
32025
32160
 
32026
- return _temp38 && _temp38.then ? _temp38.then(_temp39) : _temp39(_temp38);
32161
+ return _temp36 && _temp36.then ? _temp36.then(_temp37) : _temp37(_temp36);
32027
32162
  }, function (err) {
32028
32163
  console.log(err);
32029
32164
  dispatch(setAlert({
@@ -32032,7 +32167,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
32032
32167
  }));
32033
32168
  });
32034
32169
 
32035
- return Promise.resolve(_temp43 && _temp43.then ? _temp43.then(_temp42) : _temp42(_temp43));
32170
+ return Promise.resolve(_temp41 && _temp41.then ? _temp41.then(_temp40) : _temp40(_temp41));
32036
32171
  } catch (e) {
32037
32172
  return Promise.reject(e);
32038
32173
  }
@@ -32084,7 +32219,8 @@ var DashboardToPDF = function DashboardToPDF(props) {
32084
32219
  months: monthsOneToOne,
32085
32220
  dayOfWeek: dayOfWeekOneToOne,
32086
32221
  avgQuestionLastMonth: avgQuestionLastMonth,
32087
- timeOfDay: timeOfDay
32222
+ timeOfDay: timeOfDay,
32223
+ isPrint: true
32088
32224
  })), React.createElement("div", {
32089
32225
  id: "success_indicators",
32090
32226
  style: {
@@ -32099,21 +32235,38 @@ var DashboardToPDF = function DashboardToPDF(props) {
32099
32235
  months: monthsOneToOne,
32100
32236
  dayOfWeek: dayOfWeekOneToOne,
32101
32237
  timeOfDay: timeOfDay,
32102
- colors: ["#73C8E5", "#FFB04F", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"]
32238
+ colors: ["#73C8E5", "#FFB04F", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
32239
+ isPrint: true
32103
32240
  })), React.createElement("div", {
32104
- id: "student_distribution",
32241
+ id: overallReadinessToLearn,
32105
32242
  style: {
32106
32243
  display: "block",
32107
32244
  width: "45%"
32108
32245
  }
32109
- }, React.createElement(BubbleChartCustom$1, {
32110
- data: readinessToLearning
32246
+ }, React.createElement(GenerateChartData, {
32247
+ isPrint: true,
32248
+ colors: ["#D9EEE4", "#FAF0F0"],
32249
+ name: t(overallReadinessToLearn),
32250
+ typeChart: TYPECHART.DONUT,
32251
+ months: [],
32252
+ activeColumn: [true, true],
32253
+ avgQuestionLastMonth: dataOverallReadyToLearn.overViewQuestionLastMonth,
32254
+ series: dataOverallReadyToLearn.resultQuestion,
32255
+ timeOfDay: timeOfDay,
32256
+ dayOfWeek: [],
32257
+ width: 320,
32258
+ height: 320
32111
32259
  })), React.createElement("div", {
32112
- id: "student_stress_by_zone",
32260
+ id: studentDistribution,
32113
32261
  style: {
32114
32262
  display: "block",
32115
32263
  width: "45%"
32116
32264
  }
32265
+ }, React.createElement(BubbleChartCustom$1, {
32266
+ data: readinessToLearning,
32267
+ isPrint: true
32268
+ })), React.createElement("div", {
32269
+ id: "student_stress_by_zone"
32117
32270
  }, React.createElement(StudentPressureChart, {
32118
32271
  studentPressure: studentPressure
32119
32272
  })), React.createElement("div", {
@@ -32130,11 +32283,19 @@ var DashboardToPDF = function DashboardToPDF(props) {
32130
32283
  months: monthsConference,
32131
32284
  dayOfWeek: dayOfWeekConference,
32132
32285
  avgQuestionLastMonth: avgConferenceLastMonth,
32133
- timeOfDay: timeOfDay
32286
+ timeOfDay: timeOfDay,
32287
+ isPrint: true
32134
32288
  })), React.createElement("div", {
32135
- id: "learning_strategy"
32289
+ style: {
32290
+ display: "block",
32291
+ width: "75%"
32292
+ }
32136
32293
  }, React.createElement(TopLearningStrategy$1, {
32137
- data: topLearningStrategiesData
32294
+ data: topLearningStrategiesData,
32295
+ learningStrategyId: topLearningStrategyName
32296
+ })), React.createElement("div", null, React.createElement(TopLearningStrategy$1, {
32297
+ data: topLearningStrategiesData,
32298
+ topLearningStrategyId: topMostUsedStrategiesName
32138
32299
  }))), React.createElement("div", {
32139
32300
  className: "" + styles$1["image-logo"],
32140
32301
  id: "header-logo"
@@ -32311,7 +32472,8 @@ var Dashboard = function Dashboard() {
32311
32472
  avgQuestionLastMonth = _useChartDatas.avgQuestionLastMonth,
32312
32473
  studentPressure = _useChartDatas.studentPressure,
32313
32474
  dataOverallReadyToLearn = _useChartDatas.dataOverallReadyToLearn,
32314
- readinessToLearning = _useChartDatas.readinessToLearning;
32475
+ readinessToLearning = _useChartDatas.readinessToLearning,
32476
+ listTotalTime = _useChartDatas.listTotalTime;
32315
32477
 
32316
32478
  var _useBehavior = useBehavior(),
32317
32479
  chartIsOpened = _useBehavior.chartIsOpened,
@@ -32400,7 +32562,9 @@ var Dashboard = function Dashboard() {
32400
32562
  dayOfWeekConference: dayOfWeekConference,
32401
32563
  avgConferenceLastMonth: avgConferenceLastMonth,
32402
32564
  readinessToLearning: readinessToLearning,
32403
- studentPressure: studentPressure
32565
+ studentPressure: studentPressure,
32566
+ dataOverallReadyToLearn: dataOverallReadyToLearn,
32567
+ schoolName: listTotalTime.schoolName
32404
32568
  }))), React.createElement("div", {
32405
32569
  className: "d-flex align-items-center justify-content-between"
32406
32570
  }, React.createElement("div", {
@@ -33902,7 +34066,7 @@ var TYPECHART$1;
33902
34066
  TYPECHART[TYPECHART["BOTH"] = 3] = "BOTH";
33903
34067
  })(TYPECHART$1 || (TYPECHART$1 = {}));
33904
34068
 
33905
- var COLOR_CHART_AND_PERCENTS$1 = ["#73C8E5", "#97AFB9", "#FFB04F", "#FF7670", "#00B8B2", "#00B8FF", "#C6A762", "#C94645", "#006E60", "#336DDA", "#994700"];
34069
+ var COLOR_CHART_AND_PERCENTS = ["#73C8E5", "#97AFB9", "#FFB04F", "#FF7670", "#00B8B2", "#00B8FF", "#C6A762", "#C94645", "#006E60", "#336DDA", "#994700"];
33906
34070
 
33907
34071
  var COLOR_CHART_AND_PIE = ["#5A7F05", "#C94645", "#FFB04F"];
33908
34072
  var COLOR_LABEL_PIE = ["#006E60", "#FF7670", "#994700"];
@@ -33917,7 +34081,7 @@ var INIT_TOP_MOST_SURVEY_USED = {
33917
34081
  sendDateSurvey: new Date(),
33918
34082
  percentSurvey: 0
33919
34083
  };
33920
- var COLOR_CHART_AND_PERCENTS$2 = ["#73C8E5", "#97AFB9", "#FFB04F", "#FF7670", "#00B8B2", "#00B8FF", "#C6A762", "#C94645", "#006E60", "#336DDA", "#994700"];
34084
+ var COLOR_CHART_AND_PERCENTS$1 = ["#73C8E5", "#97AFB9", "#FFB04F", "#FF7670", "#00B8B2", "#00B8FF", "#C6A762", "#C94645", "#006E60", "#336DDA", "#994700"];
33921
34085
  var DEFAULT_START_DATE$1 = moment().subtract(2, 'months').startOf("day").valueOf();
33922
34086
  var DEFAULT_END_DATE$1 = moment().endOf("day").valueOf();
33923
34087
  var CALENDAR_OPTIONS$1 = [{
@@ -34754,13 +34918,13 @@ var optionColumnChartAndPercents$1 = function optionColumnChartAndPercents(month
34754
34918
  fill: {
34755
34919
  opacity: isRidgeCharts ? 0.2 : 1
34756
34920
  },
34757
- colors: COLOR_CHART_AND_PERCENTS$2.filter(function (_, index) {
34921
+ colors: COLOR_CHART_AND_PERCENTS$1.filter(function (_, index) {
34758
34922
  return activeData[index];
34759
34923
  }),
34760
34924
  stroke: {
34761
34925
  curve: "smooth",
34762
34926
  show: true,
34763
- colors: isRidgeCharts ? COLOR_CHART_AND_PERCENTS$2.filter(function (_, index) {
34927
+ colors: isRidgeCharts ? COLOR_CHART_AND_PERCENTS$1.filter(function (_, index) {
34764
34928
  return activeData[index];
34765
34929
  }) : ["#fff"],
34766
34930
  width: 3,
@@ -34850,13 +35014,13 @@ var optionBarChartAndArea = function optionBarChartAndArea(months, activeData, n
34850
35014
  return 0.6;
34851
35015
  })
34852
35016
  },
34853
- colors: COLOR_CHART_AND_PERCENTS$2.filter(function (_, index) {
35017
+ colors: COLOR_CHART_AND_PERCENTS$1.filter(function (_, index) {
34854
35018
  return activeData[index];
34855
35019
  }),
34856
35020
  stroke: {
34857
35021
  curve: "smooth",
34858
35022
  show: true,
34859
- colors: COLOR_CHART_AND_PERCENTS$2.filter(function (_, index) {
35023
+ colors: COLOR_CHART_AND_PERCENTS$1.filter(function (_, index) {
34860
35024
  return activeData[index];
34861
35025
  }),
34862
35026
  width: newseries === null || newseries === void 0 ? void 0 : newseries.map(function (item) {
@@ -35245,7 +35409,7 @@ var ChartViewDashboard = function ChartViewDashboard(_ref) {
35245
35409
  className: "" + styles$2["item-checkbox"],
35246
35410
  key: index
35247
35411
  }, React.createElement(CheckboxCustom$1, {
35248
- background: COLOR_CHART_AND_PERCENTS$1[index],
35412
+ background: COLOR_CHART_AND_PERCENTS[index],
35249
35413
  width: 16,
35250
35414
  height: 16,
35251
35415
  isActive: activeColumn[index],
@@ -35295,7 +35459,7 @@ var ChartViewDashboard = function ChartViewDashboard(_ref) {
35295
35459
  }, React.createElement("div", {
35296
35460
  className: "" + styles$2["mark-custom"],
35297
35461
  style: {
35298
- backgroundColor: COLOR_CHART_AND_PERCENTS$1[index]
35462
+ backgroundColor: COLOR_CHART_AND_PERCENTS[index]
35299
35463
  }
35300
35464
  }), React.createElement("label", {
35301
35465
  className: "" + styles$2["label-legend-custom"]