mario-education 2.4.149-level → 2.4.151-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.
@@ -22501,7 +22501,7 @@ var TYPECHART;
22501
22501
  TYPECHART[TYPECHART["DONUT"] = 4] = "DONUT";
22502
22502
  })(TYPECHART || (TYPECHART = {}));
22503
22503
 
22504
- var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","image-grade":"_3ZX0b","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk","shadow-lg":"_2eMbe","chart-header-wrapper":"_6ZvFg","devide-component":"_24CNV","header-chart":"_2vtSi","header-left":"_IpsVf","icon-chart":"_gzxWe","header-right":"_37IcR","header-title":"_2G6Wz","button-export":"_3xpNv","button-content":"_3H5Ly","button-icon":"_J_n-D","icon-config":"_3AALV","cursor-pointer":"_11Xjn","btn-show-chart":"_2htKu","rotate-180":"_q1nUO","header-chart-generate":"_s8xMf","block-header-chart":"_tHUJ_","name-chart":"_3xKHX","title-chart":"_pFFg9","description-chart":"_3hqV3","title-chart-generate":"_3rdqX","expand-icon":"_nwv00","custom-tooltip":"_29aQo","custom-tooltip-month":"_2SJIY","tooltip-data-cursor":"_2lZv_","tooltip-data-box":"_8NzTd","tooltip-data":"_1EP1I","name":"_1J69a","data":"_3-8OW","checkbox-chart":"_1qXAT","column-chart-percent":"_3NgrB","chart-background":"_32fu3","custom-marker":"_DmMzw","mark-custom":"_1eUXn","item-legend":"_3hrrC","label-legend-custom":"_Q-iiW","mark-legend":"_cD4ey","percent":"_2HWhv","listItem":"_2Hdbu","item":"_3RJ2T","item-checkbox":"_3dK0P","box-checkbox":"_1bHgZ","check-box":"_QwDVv","item-detail":"_1QgWc","question":"_348ls","avr-question":"_1VfnR","volatility":"_3eW34","arr":"_1bljF","month-text":"_30y0h","arrow":"_1HtM3","arrow-up":"_3qqQU","percent-text":"_2Fgfn","arrow-down":"_1yXO7","point-custom":"_2JNm-","student-by-age":"_38ikt","total-student":"_1TnWs","pie-chart":"_3BTJi","options-gender":"_1Ws0m","legend":"_2HnO_","text-lengend":"_2BFJw","student-by-grade":"_2az-l","bubble-chart-custom":"_2j8fp","x-axis-custom-wrap":"_1BN5z","axis-content":"_1rYav","legend-wrap":"_3-zAs","label-chart":"_24PRg","list-percent":"_1PPhv","percent-item":"_1rjWR","chart-custom":"_f-Ti4","chart-buddle":"_TPa6x","title-grade":"_1hZ_V","title-modal":"_3L9WC","header-desc-modal":"_1TFtP","form-checkbox":"_37aqf","checkbox-content":"_1iabV","btn-export":"_1eQAg","image-logo":"_1eqkj","chart-to-canvas":"_2IQ8b","chart-pdf":"_sQ21k","box-top-5-most":"_3Eas5"};
22504
+ var styles$1 = {"dashboard-card":"_1Jgr2","quantity-table":"_3Thdy","size-icon":"_1WLBo","block-dashboard":"_10Pgm","size-arrow":"_3jPb_","color-down":"_1c43y","color-up":"_F1afY","box-filter":"_1kqUQ","title-card":"_10hbz","value-card":"_2rmw_","deviant-card":"_1tdQu","filter-card":"_2BvFN","box-skill-item":"_2TBTW","numerical-order":"_3XXJp","backoround-top-skill":"_LCuWQ","color-filter":"_3x9D7","btn-filter":"_2In63","block-collapse":"_1Vhg_","form-date-picker":"_6yLxd","bock-filter-left":"_h74SO","bock-filter-right":"_3e2pi","form-filter-right":"_ntUB6","form-filter-left":"_1DlZ4","bock-filter-wrap":"_1tYDM","title-card-box":"_3hSow","box-item":"_1yuC9","image-no-data":"_2PMoX","image-grade":"_3ZX0b","chart-data":"_2asi-","apexcharts-datalabels":"_muT01","apexcharts-pie-label":"_35BzZ","image-custom":"_3pkbc","image-special-need":"_16MpB","title-dashboard":"_CHu-i","box-chart":"_3Y-Dd","block-filter-right":"_1YJnk","shadow-lg":"_2eMbe","chart-header-wrapper":"_6ZvFg","devide-component":"_24CNV","header-chart":"_2vtSi","header-left":"_IpsVf","icon-chart":"_gzxWe","header-right":"_37IcR","header-title":"_2G6Wz","button-export":"_3xpNv","button-content":"_3H5Ly","button-icon":"_J_n-D","icon-config":"_3AALV","cursor-pointer":"_11Xjn","btn-show-chart":"_2htKu","rotate-180":"_q1nUO","header-chart-generate":"_s8xMf","block-header-chart":"_tHUJ_","name-chart":"_3xKHX","title-chart":"_pFFg9","description-chart":"_3hqV3","title-chart-generate":"_3rdqX","expand-icon":"_nwv00","custom-tooltip":"_29aQo","custom-tooltip-month":"_2SJIY","tooltip-data-cursor":"_2lZv_","tooltip-data-box":"_8NzTd","tooltip-data":"_1EP1I","name":"_1J69a","data":"_3-8OW","checkbox-chart":"_1qXAT","column-chart-percent":"_3NgrB","chart-background":"_32fu3","custom-marker":"_DmMzw","mark-custom":"_1eUXn","item-legend":"_3hrrC","label-legend-custom":"_Q-iiW","mark-legend":"_cD4ey","percent":"_2HWhv","listItem":"_2Hdbu","item":"_3RJ2T","item-checkbox":"_3dK0P","box-checkbox":"_1bHgZ","check-box":"_QwDVv","item-detail":"_1QgWc","question":"_348ls","avr-question":"_1VfnR","volatility":"_3eW34","arr":"_1bljF","month-text":"_30y0h","arrow":"_1HtM3","arrow-up":"_3qqQU","percent-text":"_2Fgfn","arrow-down":"_1yXO7","point-custom":"_2JNm-","student-by-age":"_38ikt","total-student":"_1TnWs","pie-chart":"_3BTJi","options-gender":"_1Ws0m","legend":"_2HnO_","text-lengend":"_2BFJw","student-by-grade":"_2az-l","bubble-chart-custom":"_2j8fp","x-axis-custom-wrap":"_1BN5z","axis-content":"_1rYav","legend-wrap":"_3-zAs","label-chart":"_24PRg","list-percent":"_1PPhv","percent-item":"_1rjWR","chart-custom":"_f-Ti4","title-grade":"_1hZ_V","title-modal":"_3L9WC","header-desc-modal":"_1TFtP","form-checkbox":"_37aqf","checkbox-content":"_1iabV","btn-export":"_1eQAg","image-logo":"_1eqkj","chart-to-canvas":"_2IQ8b","chart-pdf":"_sQ21k","box-top-5-most":"_3Eas5","filter-mobile-block":"_1tKnn","filter-wrapper-mobile":"_1Zuq3","total-card-wrapper":"_1i0El"};
22505
22505
 
22506
22506
  var CheckboxCustom = function CheckboxCustom(_ref) {
22507
22507
  var _ref$background = _ref.background,
@@ -28366,11 +28366,6 @@ var LEARNING_STRATEGY_INIT = {
28366
28366
  learningStrategies: []
28367
28367
  };
28368
28368
  var GRAGE_DEFAULT = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
28369
- var INITIAl_COLUNM_CHART_AND_PERCENT = {
28370
- overviewQuestionChoice: [],
28371
- type: "",
28372
- overViewQuestionLastMonth: []
28373
- };
28374
28369
  var INITIAL_AGE_OF_STUDENT = {
28375
28370
  ageOfFeMaleStudent: {
28376
28371
  nineToTwelve: 0,
@@ -28400,6 +28395,7 @@ var INITIAl_STUDENT_DASHBOARD = {
28400
28395
  totalCheckIn: 0
28401
28396
  };
28402
28397
  var COLOR_CHART_AND_PERCENTS = ["#73C8E5", "#97AFB9", "#FFB04F", "#FF7670", "#00B8B2", "#00B8FF", "#C6A762", "#C94645", "#006E60", "#336DDA", "#994700"];
28398
+ var COLOR_CHART_BUBBLE = ["#169490", "#316CD9", "#FFB04F", "#0F9655"];
28403
28399
  var GENDER_OPTION = [{
28404
28400
  value: -1,
28405
28401
  label: "All"
@@ -28453,8 +28449,9 @@ var learningProcessName = "learning_process";
28453
28449
  var topLearningStrategyName = "learning_strategies";
28454
28450
  var topMostUsedStrategiesName = "top_5_most_used_strategies";
28455
28451
  var overallReadinessToLearn = "overall_readiness_to_learn";
28456
- var studentPressureName = "student_pressure";
28457
- var chartNames = [averageStudentSafetyName, averageStudentStressName, preparednessChartName, overallReadinessToLearn, successIndicatorsName, learningProcessName, topLearningStrategyName, studentPressureName];
28452
+ var studentStressByZone = "student_stress_by_zone";
28453
+ var studentDistribution = "student_distribution";
28454
+ var chartNames = [averageStudentSafetyName, averageStudentStressName, preparednessChartName, overallReadinessToLearn, successIndicatorsName, learningProcessName, topLearningStrategyName, studentStressByZone, studentDistribution];
28458
28455
 
28459
28456
  var gradeOptions = function gradeOptions(grades, studentUserId) {
28460
28457
  var result = !studentUserId ? GRAGE_DEFAULT : GRAGE_DEFAULT.filter(function (val) {
@@ -28597,6 +28594,156 @@ var getConvertMinuteToHour = function getConvertMinuteToHour(timeSecond) {
28597
28594
 
28598
28595
  return hTime;
28599
28596
  };
28597
+
28598
+ var readinesToLearnoptions = function readinesToLearnoptions(seriesName, data) {
28599
+ var history = useHistory();
28600
+ data === null || data === void 0 ? void 0 : data.forEach(function (element) {
28601
+ var _element$studentPerce;
28602
+
28603
+ element === null || element === void 0 ? void 0 : (_element$studentPerce = element.studentPercentQuestion) === null || _element$studentPerce === void 0 ? void 0 : _element$studentPerce.forEach(function (item) {
28604
+ });
28605
+ });
28606
+ return {
28607
+ colors: COLOR_CHART_BUBBLE,
28608
+ chart: {
28609
+ height: 250,
28610
+ toolbar: {
28611
+ show: false
28612
+ },
28613
+ events: {
28614
+ dataPointSelection: function dataPointSelection(_event, chartContext, config) {
28615
+ var studentName = chartContext.data.threeDSeries[config.dataPointIndex];
28616
+ var series = config.w.config.series[config.seriesIndex].data;
28617
+ var student = series.find(function (r) {
28618
+ return r.includes(studentName);
28619
+ });
28620
+ !!student && history.push("/student-detail/overview/" + student[student.length - 1] + "?isReadOnly=true");
28621
+ }
28622
+ }
28623
+ },
28624
+ dataLabels: {
28625
+ enabled: false
28626
+ },
28627
+ fill: {
28628
+ opacity: 0.8
28629
+ },
28630
+ grid: {
28631
+ strokeDashArray: 5,
28632
+ borderColor: "#D3D3D3",
28633
+ xaxis: {
28634
+ lines: {
28635
+ show: true
28636
+ }
28637
+ }
28638
+ },
28639
+ xaxis: {
28640
+ tickAmount: 4,
28641
+ tickPlacement: "between",
28642
+ labels: {
28643
+ show: true,
28644
+ style: {
28645
+ colors: "#FFFFFF"
28646
+ }
28647
+ },
28648
+ tooltip: {
28649
+ enabled: false
28650
+ },
28651
+ axisBorder: {
28652
+ show: false
28653
+ },
28654
+ axisTicks: {
28655
+ show: false
28656
+ }
28657
+ },
28658
+ yaxis: [{
28659
+ min: 0,
28660
+ max: 100,
28661
+ tickAmount: 5,
28662
+ axisBorder: {
28663
+ show: true
28664
+ },
28665
+ labels: {
28666
+ style: {
28667
+ colors: "#D3D3D3",
28668
+ fontSize: "16px",
28669
+ fontFamily: "Roboto",
28670
+ fontWeight: 400,
28671
+ cssClass: "apexcharts-yaxis-label"
28672
+ },
28673
+ formatter: function formatter(value) {
28674
+ return Math.round(value) !== value ? value.toFixed(2) + "%" : value + "%";
28675
+ }
28676
+ }
28677
+ }, {
28678
+ min: 0,
28679
+ max: 100,
28680
+ tickAmount: 5,
28681
+ opposite: true,
28682
+ axisBorder: {
28683
+ show: true
28684
+ },
28685
+ labels: {
28686
+ style: {
28687
+ colors: "#D3D3D3",
28688
+ fontSize: "16px",
28689
+ fontFamily: "Roboto",
28690
+ fontWeight: 400,
28691
+ cssClass: "apexcharts-yaxis-label"
28692
+ },
28693
+ formatter: function formatter(value) {
28694
+ return Math.round(value) !== value ? value.toFixed(2) + "%" : value + "%";
28695
+ }
28696
+ }
28697
+ }],
28698
+ tooltip: {
28699
+ enabled: true,
28700
+ x: {
28701
+ show: false
28702
+ },
28703
+ y: {
28704
+ formatter: undefined,
28705
+ title: {
28706
+ formatter: function formatter() {
28707
+ return "Percent";
28708
+ }
28709
+ }
28710
+ },
28711
+ z: {
28712
+ formatter: undefined,
28713
+ title: "Student: "
28714
+ }
28715
+ },
28716
+ labels: seriesName,
28717
+ legend: {
28718
+ show: false,
28719
+ offsetY: 18,
28720
+ markers: {
28721
+ width: 12,
28722
+ height: 12,
28723
+ radius: 2
28724
+ },
28725
+ position: "bottom",
28726
+ horizontalAlign: "center"
28727
+ }
28728
+ };
28729
+ };
28730
+
28731
+ var getRandomArbitrary = function getRandomArbitrary(min, max) {
28732
+ return Math.random() * (max - min) + min;
28733
+ };
28734
+
28735
+ var convertDataToSeriesBullderChart = function convertDataToSeriesBullderChart(data) {
28736
+ return data.map(function (i, index) {
28737
+ var _i$studentPercentQues;
28738
+
28739
+ return {
28740
+ name: i.questionText.replace("<p>", "").replace("</p>", ""),
28741
+ data: ((_i$studentPercentQues = i.studentPercentQuestion) === null || _i$studentPercentQues === void 0 ? void 0 : _i$studentPercentQues.map(function (question) {
28742
+ return [getRandomArbitrary((index + 1) * 1000 - 330, (index + 1) * 1000 + 330), question.percentQuestion, question.studentName, question.studentId];
28743
+ })) || []
28744
+ };
28745
+ });
28746
+ };
28600
28747
  var optionColumnChartAndPercents = function optionColumnChartAndPercents(months, activeData, isRidgeCharts, colors, dayOfWeek) {
28601
28748
  return {
28602
28749
  chart: {
@@ -28886,15 +29033,10 @@ var convertToSeriesColumnChartAndPercent = function convertToSeriesColumnChartAn
28886
29033
  };
28887
29034
  });
28888
29035
  };
28889
- var convertToSeriesColumnChartAndPercentProgress = function convertToSeriesColumnChartAndPercentProgress(data) {
28890
- return [{
28891
- name: "",
28892
- data: data.map(function (i) {
28893
- return i.resultQuestion.reduce(function (a, b) {
28894
- return a + b.avgOfStudentChoice;
28895
- }, 0);
28896
- })
28897
- }];
29036
+ var seriesNameBubbleChartCustom = function seriesNameBubbleChartCustom(series) {
29037
+ return series.map(function (i) {
29038
+ return i.questionText.replace("<p>", "").replace("</p>", "");
29039
+ });
28898
29040
  };
28899
29041
  var getLastQuarterRange = function getLastQuarterRange() {
28900
29042
  var lastQuarter = moment().utc().quarter() - 1;
@@ -28946,6 +29088,11 @@ var getAllTotalTime = function getAllTotalTime(filter) {
28946
29088
  params: filter
28947
29089
  });
28948
29090
  };
29091
+ var getReadinessToLearning = function getReadinessToLearning(filter) {
29092
+ return api.get(REPORT_URL + "/top-readiness-learn", {
29093
+ params: filter
29094
+ });
29095
+ };
28949
29096
  var getTopLearningStrategies = function getTopLearningStrategies(filter) {
28950
29097
  return api.get(REPORT_URL + "/top-learning-strategies", {
28951
29098
  params: filter
@@ -29036,8 +29183,6 @@ var getAllAcademicYearApi = function getAllAcademicYearApi(filters) {
29036
29183
  var TITLE$y = "Dashboard";
29037
29184
 
29038
29185
  var useDashboard = function useDashboard() {
29039
- var _learningProgress$ove;
29040
-
29041
29186
  var dispatch = useDispatch();
29042
29187
 
29043
29188
  var _useState = useState({
@@ -29062,17 +29207,17 @@ var useDashboard = function useDashboard() {
29062
29207
  listTotalTime = _useState2[0],
29063
29208
  setListTotalTime = _useState2[1];
29064
29209
 
29065
- var _useState3 = useState(LEARNING_STRATEGY_INIT),
29066
- topLearningStrategies = _useState3[0],
29067
- setTopLearningStrategies = _useState3[1];
29210
+ var _useState3 = useState([]),
29211
+ readinessToLearning = _useState3[0],
29212
+ setReadinessToLearning = _useState3[1];
29068
29213
 
29069
- var _useState4 = useState([]),
29070
- studentByGrade = _useState4[0],
29071
- setStudentByGrade = _useState4[1];
29214
+ var _useState4 = useState(LEARNING_STRATEGY_INIT),
29215
+ topLearningStrategies = _useState4[0],
29216
+ setTopLearningStrategies = _useState4[1];
29072
29217
 
29073
- var _useState5 = useState(INITIAl_COLUNM_CHART_AND_PERCENT),
29074
- learningProgress = _useState5[0],
29075
- setLearningProgress = _useState5[1];
29218
+ var _useState5 = useState([]),
29219
+ studentByGrade = _useState5[0],
29220
+ setStudentByGrade = _useState5[1];
29076
29221
 
29077
29222
  var _useState6 = useState(),
29078
29223
  friendCircles = _useState6[0],
@@ -29237,13 +29382,65 @@ var useDashboard = function useDashboard() {
29237
29382
  dataOverallReadyToLearn = _useState27[0],
29238
29383
  setDataOverallReadyToLearn = _useState27[1];
29239
29384
 
29240
- var seriesLearningProgress = convertToSeriesColumnChartAndPercentProgress(learningProgress === null || learningProgress === void 0 ? void 0 : learningProgress.overviewQuestionChoice);
29241
- var monthsLearningProgress = learningProgress === null || learningProgress === void 0 ? void 0 : (_learningProgress$ove = learningProgress.overviewQuestionChoice) === null || _learningProgress$ove === void 0 ? void 0 : _learningProgress$ove.map(function (i) {
29242
- return (i === null || i === void 0 ? void 0 : i.month) || "";
29243
- });
29244
- var dayOfWeekLearningProgress = learningProgress === null || learningProgress === void 0 ? void 0 : learningProgress.overviewQuestionChoice.map(function (r) {
29245
- return utcToLocalTime(r.startDate, "DD-MM-yyyy") + " - " + utcToLocalTime(r.endDate, "DD-MM-yyyy");
29246
- });
29385
+ var _useState28 = useState([]),
29386
+ seriesConference = _useState28[0],
29387
+ setSeriesConference = _useState28[1];
29388
+
29389
+ var _useState29 = useState([]),
29390
+ activeColumnConference = _useState29[0],
29391
+ setActiveColumnConference = _useState29[1];
29392
+
29393
+ var _useState30 = useState([]),
29394
+ avgConferenceLastMonth = _useState30[0],
29395
+ setAvgConferenceLastMonth = _useState30[1];
29396
+
29397
+ var _useState31 = useState([]),
29398
+ dataConvertedConference = _useState31[0],
29399
+ setDataConvertedConference = _useState31[1];
29400
+
29401
+ var _useState32 = useState([]),
29402
+ monthsConference = _useState32[0],
29403
+ setMonthsConference = _useState32[1];
29404
+
29405
+ var _useState33 = useState([]),
29406
+ dayOfWeekConference = _useState33[0],
29407
+ setDayOfWeekConference = _useState33[1];
29408
+
29409
+ var handleSetDataChartConference = function handleSetDataChartConference(data) {
29410
+ var _data$overviewQuestio2;
29411
+
29412
+ var questions = convertDataToDataChart(data === null || data === void 0 ? void 0 : data.overviewQuestionChoice);
29413
+ var months = (data === null || data === void 0 ? void 0 : (_data$overviewQuestio2 = data.overviewQuestionChoice) === null || _data$overviewQuestio2 === void 0 ? void 0 : _data$overviewQuestio2.map(function (i) {
29414
+ return (i === null || i === void 0 ? void 0 : i.month) || "";
29415
+ })) || [];
29416
+ var newSeriesConference = convertToSeriesColumnChartAndPercent(questions, data === null || data === void 0 ? void 0 : data.overviewQuestionChoice);
29417
+ var dayOfWeeks = data.overviewQuestionChoice.map(function (r) {
29418
+ return utcToLocalTime(r.startDate, "DD-MM-yyyy") + " - " + utcToLocalTime(r.endDate, "DD-MM-yyyy");
29419
+ });
29420
+
29421
+ if (newSeriesConference.length >= 0) {
29422
+ if (activeColumnConference.filter(function (r) {
29423
+ return r == true;
29424
+ }).length == 0 || activeColumnConference.length != newSeriesConference.length) {
29425
+ setActiveColumnConference([true].concat(newSeriesConference.map(function (_i) {
29426
+ return false;
29427
+ }).splice(0, newSeriesConference.length - 1)));
29428
+ }
29429
+ }
29430
+
29431
+ setDataConvertedConference(questions);
29432
+ setDayOfWeekConference(dayOfWeeks);
29433
+ setMonthsConference(months);
29434
+ setSeriesConference(newSeriesConference);
29435
+ setAvgConferenceLastMonth(data.overViewQuestionLastMonth);
29436
+ };
29437
+
29438
+ var handleActiveColumnConference = function handleActiveColumnConference(index) {
29439
+ var newActiveColumn = [].concat(activeColumnConference);
29440
+ newActiveColumn[index] = !newActiveColumn[index];
29441
+ setActiveColumnConference(newActiveColumn);
29442
+ };
29443
+
29247
29444
  var callApi = useCallback(function (apiCaller, setData, defaultData, type) {
29248
29445
  try {
29249
29446
  var _temp2 = _catch(function () {
@@ -29353,7 +29550,7 @@ var useDashboard = function useDashboard() {
29353
29550
  try {
29354
29551
  document.title = TITLE$y;
29355
29552
  dispatch(setLoading(true));
29356
- return Promise.resolve(Promise.any([callApi(getAllTotalTime, setListTotalTime, []), callApi(getTopLearningStrategies, setTopLearningStrategies, []), callApi(getStudentByGrade, setStudentByGrade, []), callApi(getOverviewQuestionChart, handleSetDataChartOneToOne, [], "OneToOne"), callApi(getOverviewQuestionChart, setLearningProgress, [], "LearningProgress"), callApi(getFriendCircleItems, setFriendCircles, INITIAL_BEST_FRIENDS), callApi(getActivityCircleItems, setActivityCircles, INITIAL_ACTIVITY_FRIENDS), callApi(getStudentBySpecialNeed, setStudentBySpecialNeed, []), callApi(getStudentByAge, setStudentByAge, INITIAL_AGE_OF_STUDENT), callApi(getStudentByGender, setStudentByGender, []), callApi(getStudentPressure, setStudentPressure, initStudentPressure), callApi(getOverallReadinessToLearn, setDataOverallReadyToLearn, INITIAL_OVERALL_READY_TO_LEARN)])).then(function () {
29553
+ return Promise.resolve(Promise.any([callApi(getAllTotalTime, setListTotalTime, []), callApi(getReadinessToLearning, setReadinessToLearning, []), callApi(getTopLearningStrategies, setTopLearningStrategies, []), callApi(getStudentByGrade, setStudentByGrade, []), callApi(getOverviewQuestionChart, handleSetDataChartOneToOne, [], "OneToOne"), callApi(getOverviewQuestionChart, handleSetDataChartConference, [], "Conference"), callApi(getFriendCircleItems, setFriendCircles, INITIAL_BEST_FRIENDS), callApi(getActivityCircleItems, setActivityCircles, INITIAL_ACTIVITY_FRIENDS), callApi(getStudentBySpecialNeed, setStudentBySpecialNeed, []), callApi(getStudentByAge, setStudentByAge, INITIAL_AGE_OF_STUDENT), callApi(getStudentByGender, setStudentByGender, []), callApi(getStudentPressure, setStudentPressure, initStudentPressure), callApi(getOverallReadinessToLearn, setDataOverallReadyToLearn, INITIAL_OVERALL_READY_TO_LEARN)])).then(function () {
29357
29554
  dispatch(setLoading(false));
29358
29555
  });
29359
29556
  } catch (e) {
@@ -29374,9 +29571,9 @@ var useDashboard = function useDashboard() {
29374
29571
  setFilter: setFilter,
29375
29572
  filter: filter,
29376
29573
  listTotalTime: listTotalTime,
29574
+ readinessToLearning: readinessToLearning,
29377
29575
  topLearningStrategies: topLearningStrategies,
29378
29576
  studentByGrade: studentByGrade,
29379
- learningProgress: learningProgress,
29380
29577
  friendCircles: friendCircles,
29381
29578
  activityCircles: activityCircles,
29382
29579
  studentBySpecialNeed: studentBySpecialNeed,
@@ -29404,19 +29601,24 @@ var useDashboard = function useDashboard() {
29404
29601
  successIndicatorsData: successIndicatorsData,
29405
29602
  activeColumnSuccessIndicators: activeColumnSuccessIndicators,
29406
29603
  activeColumnPreparedness: activeColumnPreparedness,
29407
- seriesLearningProgress: seriesLearningProgress,
29408
- monthsLearningProgress: monthsLearningProgress,
29409
- dayOfWeekLearningProgress: dayOfWeekLearningProgress,
29410
29604
  avgQuestionLastMonth: avgQuestionLastMonth,
29411
29605
  gradeList: gradeList,
29412
29606
  studentPressure: studentPressure,
29413
- dataOverallReadyToLearn: dataOverallReadyToLearn
29607
+ dataOverallReadyToLearn: dataOverallReadyToLearn,
29608
+ seriesConference: seriesConference,
29609
+ avgConferenceLastMonth: avgConferenceLastMonth,
29610
+ dataConvertedConference: dataConvertedConference,
29611
+ monthsConference: monthsConference,
29612
+ dayOfWeekConference: dayOfWeekConference,
29613
+ handleActiveColumnConference: handleActiveColumnConference,
29614
+ activeColumnConference: activeColumnConference
29414
29615
  };
29415
29616
  };
29416
29617
 
29417
29618
  var useChartDatas = function useChartDatas() {
29418
29619
  var _useDashboard = useDashboard(),
29419
29620
  topLearningStrategies = _useDashboard.topLearningStrategies,
29621
+ readinessToLearning = _useDashboard.readinessToLearning,
29420
29622
  handleChangeFilters = _useDashboard.handleChangeFilters,
29421
29623
  handleChangeAcademicYearFilters = _useDashboard.handleChangeAcademicYearFilters,
29422
29624
  bandScore = _useDashboard.bandScore,
@@ -29439,11 +29641,15 @@ var useChartDatas = function useChartDatas() {
29439
29641
  preparednessData = _useDashboard.preparednessData,
29440
29642
  safetyData = _useDashboard.safetyData,
29441
29643
  stressData = _useDashboard.stressData,
29442
- seriesLearningProgress = _useDashboard.seriesLearningProgress,
29443
- monthsLearningProgress = _useDashboard.monthsLearningProgress,
29444
- dayOfWeekLearningProgress = _useDashboard.dayOfWeekLearningProgress,
29445
29644
  avgQuestionLastMonth = _useDashboard.avgQuestionLastMonth,
29446
- gradeList = _useDashboard.gradeList;
29645
+ gradeList = _useDashboard.gradeList,
29646
+ seriesConference = _useDashboard.seriesConference,
29647
+ avgConferenceLastMonth = _useDashboard.avgConferenceLastMonth,
29648
+ dataConvertedConference = _useDashboard.dataConvertedConference,
29649
+ monthsConference = _useDashboard.monthsConference,
29650
+ dayOfWeekConference = _useDashboard.dayOfWeekConference,
29651
+ handleActiveColumnConference = _useDashboard.handleActiveColumnConference,
29652
+ activeColumnConference = _useDashboard.activeColumnConference;
29447
29653
 
29448
29654
  var _useState = useState([]),
29449
29655
  selectedToPrint = _useState[0],
@@ -29598,12 +29804,17 @@ var useChartDatas = function useChartDatas() {
29598
29804
  preparednessData: preparednessData,
29599
29805
  safetyData: safetyData,
29600
29806
  stressData: stressData,
29601
- seriesLearningProgress: seriesLearningProgress,
29602
- monthsLearningProgress: monthsLearningProgress,
29603
- dayOfWeekLearningProgress: dayOfWeekLearningProgress,
29807
+ seriesConference: seriesConference,
29808
+ avgConferenceLastMonth: avgConferenceLastMonth,
29809
+ dataConvertedConference: dataConvertedConference,
29810
+ monthsConference: monthsConference,
29811
+ dayOfWeekConference: dayOfWeekConference,
29812
+ handleActiveColumnConference: handleActiveColumnConference,
29813
+ activeColumnConference: activeColumnConference,
29604
29814
  avgQuestionLastMonth: avgQuestionLastMonth,
29605
29815
  studentPressure: studentPressure,
29606
- dataOverallReadyToLearn: dataOverallReadyToLearn
29816
+ dataOverallReadyToLearn: dataOverallReadyToLearn,
29817
+ readinessToLearning: readinessToLearning
29607
29818
  };
29608
29819
  };
29609
29820
 
@@ -30319,7 +30530,7 @@ var TotalCard = function TotalCard(_ref) {
30319
30530
  title = _ref.title,
30320
30531
  value = _ref.value;
30321
30532
  return React.createElement("div", {
30322
- className: styles$1["title-card-box"] + " " + styles$1["box-item"] + " p-4 mb-2 shadow-md"
30533
+ className: styles$1["title-card-box"] + " " + styles$1["box-item"] + " p-4 mb-2 mb-sm-0 mb-lg-2 shadow-md"
30323
30534
  }, React.createElement("div", {
30324
30535
  className: "d-flex align-items-center justify-content-center"
30325
30536
  }, React.createElement("img", {
@@ -30349,7 +30560,7 @@ var AreaChart = function AreaChart(_ref) {
30349
30560
  return "<div class=" + styles$1["custom-tooltip"] + "> \n <p class=" + styles$1["custom-tooltip-month"] + "> " + dayOfWeek[dataPointIndex] + " </p>\n " + seriesItem.map(function (r, index) {
30350
30561
  var _r$data$dataPointInde;
30351
30562
 
30352
- return "<div class=" + styles$1["tooltip-data-box"] + ">\n <div class=" + styles$1["tooltip-data-cursor"] + " style=\"background: " + colorsItem[index] + "\"></div>\n <div class=" + styles$1["tooltip-data"] + ">\n <p class=" + styles$1["name"] + ">" + r.name + ":</p>\n <p class=" + styles$1["data"] + ">" + ((_r$data$dataPointInde = r.data[dataPointIndex]) === null || _r$data$dataPointInde === void 0 ? void 0 : _r$data$dataPointInde.toFixed(2)) + "%</p>\n </div>\n </div>";
30563
+ return "<div key={" + index + "} class=" + styles$1["tooltip-data-box"] + ">\n <div class=" + styles$1["tooltip-data-cursor"] + " style=\"background: " + colorsItem[index] + "\"></div>\n <div class=" + styles$1["tooltip-data"] + ">\n <p class=" + styles$1["name"] + ">" + r.name + ":</p>\n <p class=" + styles$1["data"] + ">" + ((_r$data$dataPointInde = r.data[dataPointIndex]) === null || _r$data$dataPointInde === void 0 ? void 0 : _r$data$dataPointInde.toFixed(2)) + "%</p>\n </div>\n </div>";
30353
30564
  }) + "\n </div>";
30354
30565
  }
30355
30566
  };
@@ -30467,6 +30678,7 @@ var GenerateChartData = function GenerateChartData(_ref) {
30467
30678
  return r.name.charAt(0).toUpperCase() + r.name.slice(1);
30468
30679
  }) || [];
30469
30680
  return React.createElement("div", {
30681
+ key: name,
30470
30682
  className: "w-100 h-100 " + styles$1["column-chart-percent"]
30471
30683
  }, React.createElement("div", {
30472
30684
  className: "" + styles$1["header-chart-generate"]
@@ -30566,6 +30778,12 @@ var GenerateChartData = function GenerateChartData(_ref) {
30566
30778
  })));
30567
30779
  };
30568
30780
 
30781
+ var chartPropsAreEqual = function chartPropsAreEqual(prevMovie, nextMovie) {
30782
+ return prevMovie === nextMovie;
30783
+ };
30784
+
30785
+ var GenerateChartData$1 = React.memo(GenerateChartData, chartPropsAreEqual);
30786
+
30569
30787
  var Loading = function Loading() {
30570
30788
  return React.createElement("div", {
30571
30789
  className: "d-flex align-items-center justify-content-center"
@@ -30797,17 +31015,19 @@ var DashboardToPDF = function DashboardToPDF(props) {
30797
31015
  activeColumnPreparedness = props.activeColumnPreparedness,
30798
31016
  activeColumnSuccessIndicators = props.activeColumnSuccessIndicators,
30799
31017
  avgQuestionLastMonth = props.avgQuestionLastMonth,
30800
- dayOfWeekLearningProgress = props.dayOfWeekLearningProgress,
30801
31018
  dayOfWeekOneToOne = props.dayOfWeekOneToOne,
30802
- monthsLearningProgress = props.monthsLearningProgress,
30803
31019
  monthsOneToOne = props.monthsOneToOne,
30804
31020
  preparednessData = props.preparednessData,
30805
31021
  safetyData = props.safetyData,
30806
- seriesLearningProgress = props.seriesLearningProgress,
30807
31022
  stressData = props.stressData,
30808
31023
  successIndicatorsData = props.successIndicatorsData,
30809
31024
  topLearningStrategiesData = props.topLearningStrategiesData,
30810
- timeOfDay = props.timeOfDay;
31025
+ timeOfDay = props.timeOfDay,
31026
+ seriesConference = props.seriesConference,
31027
+ monthsConference = props.monthsConference,
31028
+ activeColumnConference = props.activeColumnConference,
31029
+ dayOfWeekConference = props.dayOfWeekConference,
31030
+ avgConferenceLastMonth = props.avgConferenceLastMonth;
30811
31031
 
30812
31032
  var _useTranslation = useTranslation(),
30813
31033
  t = _useTranslation.t;
@@ -31279,7 +31499,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31279
31499
  display: "block",
31280
31500
  width: "45%"
31281
31501
  }
31282
- }, React.createElement(GenerateChartData, {
31502
+ }, React.createElement(GenerateChartData$1, {
31283
31503
  colors: ["#0F9655"],
31284
31504
  typeChart: TYPECHART.AREA,
31285
31505
  activeColumn: [true],
@@ -31294,7 +31514,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31294
31514
  display: "block",
31295
31515
  width: "45%"
31296
31516
  }
31297
- }, React.createElement(GenerateChartData, {
31517
+ }, React.createElement(GenerateChartData$1, {
31298
31518
  colors: ["#C44140"],
31299
31519
  typeChart: TYPECHART.LINE,
31300
31520
  activeColumn: [true],
@@ -31309,7 +31529,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31309
31529
  display: "block",
31310
31530
  width: "45%"
31311
31531
  }
31312
- }, React.createElement(GenerateChartData, {
31532
+ }, React.createElement(GenerateChartData$1, {
31313
31533
  colors: ["#169490", "#316CD9", "#FFB04F"],
31314
31534
  typeChart: TYPECHART.LINE,
31315
31535
  activeColumn: activeColumnPreparedness,
@@ -31324,7 +31544,7 @@ var DashboardToPDF = function DashboardToPDF(props) {
31324
31544
  display: "block",
31325
31545
  width: "45%"
31326
31546
  }
31327
- }, React.createElement(GenerateChartData, {
31547
+ }, React.createElement(GenerateChartData$1, {
31328
31548
  typeChart: TYPECHART.AREA,
31329
31549
  activeColumn: activeColumnSuccessIndicators,
31330
31550
  series: successIndicatorsData,
@@ -31339,14 +31559,16 @@ var DashboardToPDF = function DashboardToPDF(props) {
31339
31559
  display: "block",
31340
31560
  width: "45%"
31341
31561
  }
31342
- }, React.createElement(GenerateChartData, {
31343
- colors: ["#73C8E5"],
31562
+ }, React.createElement(GenerateChartData$1, {
31563
+ colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
31564
+ name: "Learning Process",
31344
31565
  typeChart: TYPECHART.AREA,
31345
- activeColumn: [true],
31346
- series: seriesLearningProgress,
31347
- months: monthsLearningProgress,
31348
- dayOfWeek: dayOfWeekLearningProgress,
31349
- avgQuestionLastMonth: []
31566
+ activeColumn: activeColumnConference,
31567
+ series: seriesConference,
31568
+ months: monthsConference,
31569
+ dayOfWeek: dayOfWeekConference,
31570
+ avgQuestionLastMonth: avgConferenceLastMonth,
31571
+ timeOfDay: timeOfDay
31350
31572
  })), React.createElement("div", {
31351
31573
  id: "learning_strategy"
31352
31574
  }, React.createElement(TopLearningStrategy$1, {
@@ -31614,6 +31836,60 @@ var StudentPressureChart = function StudentPressureChart(_ref) {
31614
31836
  })))));
31615
31837
  };
31616
31838
 
31839
+ var BubbleChartCustom = function BubbleChartCustom(_ref) {
31840
+ var data = _ref.data;
31841
+
31842
+ var _useTranslation = useTranslation(),
31843
+ t = _useTranslation.t;
31844
+
31845
+ if (!data) return React.createElement("div", {
31846
+ className: "flex justify-content-center align-items-center",
31847
+ style: {
31848
+ height: 450
31849
+ }
31850
+ }, React.createElement("div", null, "No Data"));
31851
+ var seriesName = seriesNameBubbleChartCustom(data);
31852
+ return React.createElement("div", {
31853
+ className: "" + styles$1["size-100"]
31854
+ }, React.createElement("div", {
31855
+ className: "" + styles$1["block-header-chart"]
31856
+ }, React.createElement("p", {
31857
+ className: styles$1["title-chart"] + " " + styles$1["ml-10"]
31858
+ }, t(studentDistribution))), React.createElement("div", {
31859
+ className: "" + styles$1["bubble-chart-custom"]
31860
+ }, React.createElement("div", {
31861
+ className: styles$1["chart-custom"]
31862
+ }, React.createElement("div", {
31863
+ className: styles$1["chart-buddle"]
31864
+ }, React.createElement("div", null, React.createElement("div", {
31865
+ className: styles$1["legend-wrap"]
31866
+ }, seriesName.map(function (i, index) {
31867
+ return React.createElement("div", {
31868
+ className: "" + styles$1["item"],
31869
+ key: index
31870
+ }, React.createElement("div", {
31871
+ className: "" + styles$1["mark-custom"],
31872
+ style: {
31873
+ backgroundColor: COLOR_CHART_BUBBLE[index]
31874
+ }
31875
+ }), React.createElement("label", {
31876
+ className: "" + styles$1["label-legend-custom"]
31877
+ }, i));
31878
+ })), React.createElement(Chart, {
31879
+ options: readinesToLearnoptions(seriesName, data),
31880
+ type: "scatter",
31881
+ series: convertDataToSeriesBullderChart(data),
31882
+ width: "100%",
31883
+ height: 250
31884
+ }))))));
31885
+ };
31886
+
31887
+ function propsAreEqual$1(prevProps, nextProps) {
31888
+ return JSON.stringify(prevProps === null || prevProps === void 0 ? void 0 : prevProps.data) === JSON.stringify(nextProps === null || nextProps === void 0 ? void 0 : nextProps.data);
31889
+ }
31890
+
31891
+ var BubbleChartCustom$1 = React.memo(BubbleChartCustom, propsAreEqual$1);
31892
+
31617
31893
  var Dashboard = function Dashboard() {
31618
31894
  var _useChartDatas = useChartDatas(),
31619
31895
  user = _useChartDatas.user,
@@ -31635,12 +31911,16 @@ var Dashboard = function Dashboard() {
31635
31911
  preparednessData = _useChartDatas.preparednessData,
31636
31912
  safetyData = _useChartDatas.safetyData,
31637
31913
  stressData = _useChartDatas.stressData,
31638
- seriesLearningProgress = _useChartDatas.seriesLearningProgress,
31639
- monthsLearningProgress = _useChartDatas.monthsLearningProgress,
31640
- dayOfWeekLearningProgress = _useChartDatas.dayOfWeekLearningProgress,
31914
+ seriesConference = _useChartDatas.seriesConference,
31915
+ avgConferenceLastMonth = _useChartDatas.avgConferenceLastMonth,
31916
+ monthsConference = _useChartDatas.monthsConference,
31917
+ dayOfWeekConference = _useChartDatas.dayOfWeekConference,
31918
+ activeColumnConference = _useChartDatas.activeColumnConference,
31919
+ handleActiveColumnConference = _useChartDatas.handleActiveColumnConference,
31641
31920
  avgQuestionLastMonth = _useChartDatas.avgQuestionLastMonth,
31642
31921
  studentPressure = _useChartDatas.studentPressure,
31643
- dataOverallReadyToLearn = _useChartDatas.dataOverallReadyToLearn;
31922
+ dataOverallReadyToLearn = _useChartDatas.dataOverallReadyToLearn,
31923
+ readinessToLearning = _useChartDatas.readinessToLearning;
31644
31924
 
31645
31925
  var _useBehavior = useBehavior(),
31646
31926
  chartIsOpened = _useBehavior.chartIsOpened,
@@ -31659,6 +31939,10 @@ var Dashboard = function Dashboard() {
31659
31939
  isExpandChart = _useState2[0],
31660
31940
  setIsExpandChart = _useState2[1];
31661
31941
 
31942
+ var _useState3 = useState(false),
31943
+ isShowFilterMobile = _useState3[0],
31944
+ setIsShowFilterMobile = _useState3[1];
31945
+
31662
31946
  var toggle = function toggle() {
31663
31947
  setSelectedToPrint([]);
31664
31948
  setModal(!modal);
@@ -31708,16 +31992,18 @@ var Dashboard = function Dashboard() {
31708
31992
  activeColumnPreparedness: activeColumnPreparedness,
31709
31993
  activeColumnSuccessIndicators: activeColumnSuccessIndicators,
31710
31994
  avgQuestionLastMonth: avgQuestionLastMonth,
31711
- dayOfWeekLearningProgress: dayOfWeekLearningProgress,
31712
31995
  dayOfWeekOneToOne: dayOfWeekOneToOne,
31713
- monthsLearningProgress: monthsLearningProgress,
31714
31996
  monthsOneToOne: monthsOneToOne,
31715
31997
  preparednessData: preparednessData,
31716
31998
  safetyData: safetyData,
31717
- seriesLearningProgress: seriesLearningProgress,
31718
31999
  stressData: stressData,
31719
32000
  successIndicatorsData: successIndicatorsData,
31720
- timeOfDay: filter.optionDate
32001
+ timeOfDay: filter.optionDate,
32002
+ seriesConference: seriesConference,
32003
+ monthsConference: monthsConference,
32004
+ activeColumnConference: activeColumnConference,
32005
+ dayOfWeekConference: dayOfWeekConference,
32006
+ avgConferenceLastMonth: avgConferenceLastMonth
31721
32007
  }))), React.createElement("div", {
31722
32008
  className: "d-flex align-items-center justify-content-between"
31723
32009
  }, React.createElement("div", {
@@ -31739,9 +32025,53 @@ var Dashboard = function Dashboard() {
31739
32025
  })), React.createElement("p", {
31740
32026
  className: styles$1["button-content"] + " mb-0"
31741
32027
  }, t("export_to_pdf")))), React.createElement("div", {
31742
- className: "d-flex justify-content-between flex-wrap my-2"
32028
+ className: styles$1['filter-mobile-block'] + " p-3 my-4"
31743
32029
  }, React.createElement("div", {
31744
- className: "d-flex"
32030
+ onClick: function onClick() {
32031
+ return setIsShowFilterMobile(!isShowFilterMobile);
32032
+ },
32033
+ className: "d-flex justify-content-between cursor-pointer"
32034
+ }, React.createElement("span", {
32035
+ className: "font-weight-bold"
32036
+ }, "Filter"), isShowFilterMobile ? React.createElement(FiChevronUp, {
32037
+ size: "1.5rem"
32038
+ }) : React.createElement(FiChevronDown, {
32039
+ size: "1.5rem"
32040
+ })), isShowFilterMobile ? React.createElement("div", {
32041
+ className: "d-flex flex-column " + styles$1["filter-wrapper-mobile"]
32042
+ }, React.createElement("div", {
32043
+ className: "d-flex flex-column mt-3 " + styles$1["filter-wrapper-mobile"]
32044
+ }, LIST_FILTERS_LEFT.map(function (e) {
32045
+ return React.createElement(SelectFilter, {
32046
+ name: e.name,
32047
+ icon: e.icon,
32048
+ handleChangeFilters: e.handleChangeFilters,
32049
+ filter: filter,
32050
+ option: e.option,
32051
+ onChangeFilters: onChangeFilters
32052
+ });
32053
+ })), React.createElement("div", {
32054
+ className: "d-flex flex-column " + styles$1["filter-wrapper-mobile"]
32055
+ }, LIST_FILTERS_RIGHT.map(function (e) {
32056
+ return React.createElement(SelectFilter, {
32057
+ name: e.name,
32058
+ icon: e.icon,
32059
+ handleChangeFilters: e.handleChangeFilters,
32060
+ filter: filter,
32061
+ studentId: e.studentId || 0,
32062
+ studentDefault: e.studentDefault,
32063
+ onChangeFilters: onChangeFilters,
32064
+ teacherUserId: teacherUserId,
32065
+ changeCurrentTeacherUserId: changeCurrentTeacherUserId,
32066
+ btnStyle: e.name === FILTER_NAME.StudentName ? {
32067
+ minWidth: 220,
32068
+ justifyContent: "center"
32069
+ } : {}
32070
+ });
32071
+ }))) : null), React.createElement("div", {
32072
+ className: "d-none d-sm-flex justify-content-between flex-wrap my-2"
32073
+ }, React.createElement("div", {
32074
+ className: "d-flex flex-wrap"
31745
32075
  }, LIST_FILTERS_LEFT.map(function (e) {
31746
32076
  return React.createElement(SelectFilter, {
31747
32077
  name: e.name,
@@ -31770,7 +32100,7 @@ var Dashboard = function Dashboard() {
31770
32100
  } : {}
31771
32101
  });
31772
32102
  }))), React.createElement("div", {
31773
- className: "d-flex align-items-center justify-content-between flex-wrap mb-3"
32103
+ className: styles$1["total-card-wrapper"] + " d-flex align-items-center justify-content-center justify-content-lg-between flex-wrap mb-3"
31774
32104
  }, totalCardData.map(function (item) {
31775
32105
  return React.createElement(TotalCard, {
31776
32106
  icon: item.icon,
@@ -31794,8 +32124,8 @@ var Dashboard = function Dashboard() {
31794
32124
  }, React.createElement(Row, {
31795
32125
  className: "d-flex"
31796
32126
  }, React.createElement(Col, {
31797
- md: !isExpandChart ? 6 : 12
31798
- }, React.createElement(GenerateChartData, {
32127
+ md: !isExpandChart && chartIsOpened[0] ? 6 : 12
32128
+ }, React.createElement(GenerateChartData$1, {
31799
32129
  isShowExpandIcon: true,
31800
32130
  colors: ["#0F9655"],
31801
32131
  name: t(averageStudentSafetyName),
@@ -31810,7 +32140,7 @@ var Dashboard = function Dashboard() {
31810
32140
  })), React.createElement(Col, {
31811
32141
  md: !isExpandChart ? 6 : 12,
31812
32142
  className: ""
31813
- }, React.createElement(GenerateChartData, {
32143
+ }, React.createElement(GenerateChartData$1, {
31814
32144
  isShowExpandIcon: true,
31815
32145
  colors: ["#C44140"],
31816
32146
  name: t(averageStudentStressName),
@@ -31826,7 +32156,7 @@ var Dashboard = function Dashboard() {
31826
32156
  className: "d-flex"
31827
32157
  }, React.createElement(Col, {
31828
32158
  md: 7
31829
- }, React.createElement(GenerateChartData, {
32159
+ }, React.createElement(GenerateChartData$1, {
31830
32160
  colors: ["#169490", "#316CD9", "#FFB04F"],
31831
32161
  name: t(preparednessChartName),
31832
32162
  typeChart: TYPECHART.AREA,
@@ -31839,7 +32169,7 @@ var Dashboard = function Dashboard() {
31839
32169
  timeOfDay: filter.optionDate
31840
32170
  })), React.createElement(Col, {
31841
32171
  md: 5
31842
- }, React.createElement(GenerateChartData, {
32172
+ }, React.createElement(GenerateChartData$1, {
31843
32173
  colors: ["#D9EEE4", "#FAF0F0"],
31844
32174
  name: t(overallReadinessToLearn),
31845
32175
  typeChart: TYPECHART.DONUT,
@@ -31849,7 +32179,7 @@ var Dashboard = function Dashboard() {
31849
32179
  series: dataOverallReadyToLearn.resultQuestion,
31850
32180
  timeOfDay: filter.optionDate,
31851
32181
  dayOfWeek: []
31852
- }))), React.createElement(GenerateChartData, {
32182
+ }))), React.createElement(GenerateChartData$1, {
31853
32183
  name: t(successIndicatorsName),
31854
32184
  typeChart: TYPECHART.AREA,
31855
32185
  onActiveColumn: handleActiveColumnOneToOne,
@@ -31860,11 +32190,13 @@ var Dashboard = function Dashboard() {
31860
32190
  dayOfWeek: dayOfWeekOneToOne,
31861
32191
  timeOfDay: filter.optionDate,
31862
32192
  colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"]
32193
+ }), React.createElement(BubbleChartCustom$1, {
32194
+ data: readinessToLearning
31863
32195
  }), React.createElement("div", {
31864
32196
  className: "" + styles$1["mt-15"]
31865
32197
  }, React.createElement("p", {
31866
32198
  className: "" + styles$1["title-chart"]
31867
- }, "Student Stress by Zone"), React.createElement("div", {
32199
+ }, t(studentStressByZone)), React.createElement("div", {
31868
32200
  className: "" + styles$1["box-chart-pressure"]
31869
32201
  }, React.createElement(StudentPressureChart, {
31870
32202
  studentPressure: studentPressure
@@ -31879,15 +32211,17 @@ var Dashboard = function Dashboard() {
31879
32211
  index: 1
31880
32212
  }), React.createElement(Collapse, {
31881
32213
  isOpen: chartIsOpened[1]
31882
- }, React.createElement(GenerateChartData, {
31883
- colors: ["#73C8E5"],
32214
+ }, React.createElement(GenerateChartData$1, {
32215
+ colors: ["#73C8E5", "#F9F871", "#D7B0DE", "#E56362", "#5A7F05", "#D3D3D3"],
31884
32216
  name: t(learningProcessName),
31885
32217
  typeChart: TYPECHART.AREA,
31886
- activeColumn: [true],
31887
- series: seriesLearningProgress,
31888
- months: monthsLearningProgress,
31889
- dayOfWeek: dayOfWeekLearningProgress,
31890
- avgQuestionLastMonth: []
32218
+ onActiveColumn: handleActiveColumnConference,
32219
+ activeColumn: activeColumnConference,
32220
+ series: seriesConference,
32221
+ months: monthsConference,
32222
+ dayOfWeek: dayOfWeekConference,
32223
+ avgQuestionLastMonth: avgConferenceLastMonth,
32224
+ timeOfDay: filter.optionDate
31891
32225
  }), React.createElement(TopLearningStrategy$1, {
31892
32226
  data: topLearningStrategies
31893
32227
  }))));
@@ -33926,11 +34260,11 @@ var TopMostSurveyUsed = function TopMostSurveyUsed(_ref) {
33926
34260
  }));
33927
34261
  };
33928
34262
 
33929
- var propsAreEqual$1 = function propsAreEqual(preProps, nextProps) {
34263
+ var propsAreEqual$2 = function propsAreEqual(preProps, nextProps) {
33930
34264
  return JSON.stringify(preProps) === JSON.stringify(nextProps);
33931
34265
  };
33932
34266
 
33933
- var TopMostSurveyUsed$1 = React.memo(TopMostSurveyUsed, propsAreEqual$1);
34267
+ var TopMostSurveyUsed$1 = React.memo(TopMostSurveyUsed, propsAreEqual$2);
33934
34268
 
33935
34269
  var maxSeries = function maxSeries(series) {
33936
34270
  var max = 0;
@@ -34645,7 +34979,8 @@ var SurveyDashboard = function SurveyDashboard() {
34645
34979
  })), React.createElement(Col, {
34646
34980
  md: 5
34647
34981
  }, React.createElement(Row, null, React.createElement(Col, {
34648
- md: 7,
34982
+ md: 9,
34983
+ lg: 7,
34649
34984
  style: {
34650
34985
  margin: "0 auto"
34651
34986
  }