mario-teacher-student-client 2.2.20-beta → 2.2.21-beta

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.
@@ -25,5 +25,6 @@ declare const useConductSurvey: () => {
25
25
  setQuestionIBLearner: import("react").Dispatch<import("react").SetStateAction<string>>;
26
26
  isSchedule: boolean;
27
27
  isDone: boolean;
28
+ currentPage: import("react").ReactText;
28
29
  };
29
30
  export default useConductSurvey;
@@ -1,6 +1,7 @@
1
1
  export declare const STEP_MODEL: string[];
2
2
  export declare const lableStep: (activeStep: number) => "" | "NEXT" | "REVIEW" | "Publish survey";
3
3
  export declare const convertTime: (time: string) => string;
4
+ export declare const initTabSurvey: string[];
4
5
  export declare const initialValues: {
5
6
  title: string;
6
7
  additionalQuestions: never[];
package/dist/index.css CHANGED
@@ -27,10 +27,11 @@
27
27
  background-color: #ffffff !important;
28
28
  border-radius: 12px !important;
29
29
  padding: 10px 21px !important;
30
- border: 1px solid #0A4DA2 !important;
31
- margin-right: 15px !important; }
30
+ border: 1px solid #336DDA !important;
31
+ margin-right: 15px !important;
32
+ box-shadow: none; }
32
33
  ._11N79 > span {
33
- color: #0A4DA2 !important;
34
+ color: #336DDA !important;
34
35
  font-weight: 600 !important;
35
36
  font-size: 13px !important; }
36
37
 
@@ -4256,9 +4257,9 @@ h2._2HVLw {
4256
4257
 
4257
4258
  ._2ZiJ5 ._3a_fi {
4258
4259
  padding: 5px 10px;
4259
- background: #308252; }
4260
+ background: #5A7F05; }
4260
4261
  ._2ZiJ5 ._3a_fi:hover {
4261
- background: #308252; }
4262
+ background: #5A7F05; }
4262
4263
  ._2ZiJ5 ._3a_fi span {
4263
4264
  font-size: 15px;
4264
4265
  color: #fff;
@@ -4379,10 +4380,10 @@ h2._2HVLw {
4379
4380
  padding: 8px;
4380
4381
  margin: 8px;
4381
4382
  margin-left: 14px !important;
4382
- color: #153e75;
4383
- background-color: #e7f6fd;
4383
+ color: #336DDA;
4384
+ background-color: #fff;
4384
4385
  border-left: 3px solid;
4385
- border-color: #0ea5e9;
4386
+ border-color: #316CD9;
4386
4387
  border-radius: 4px; }
4387
4388
  ._BsjjF ._2Vtyk ._188XK ._jEewf ._329tN {
4388
4389
  text-align: center;
@@ -4405,7 +4406,7 @@ h2._2HVLw {
4405
4406
  ._1J4Xk {
4406
4407
  padding: 0 15px; }
4407
4408
  ._1J4Xk ._zz5G4 {
4408
- background-color: #308252;
4409
+ background-color: #5A7F05;
4409
4410
  border-radius: 12px;
4410
4411
  margin: 15px 0 30px;
4411
4412
  width: 100%;
@@ -4474,12 +4475,12 @@ h2._2HVLw {
4474
4475
  align-items: center; }
4475
4476
 
4476
4477
  ._1cjDe {
4477
- background: #edf2f7;
4478
+ background: #DFE0DF;
4478
4479
  padding: 16px;
4479
4480
  border-radius: 10px; }
4480
4481
  ._1cjDe ._17pRN {
4481
4482
  font-size: 16px;
4482
- color: #2d3748;
4483
+ color: #242424;
4483
4484
  line-height: 24px;
4484
4485
  margin-bottom: 0px; }
4485
4486
 
@@ -4511,16 +4512,16 @@ h2._2HVLw {
4511
4512
  color: #F44336; }
4512
4513
 
4513
4514
  ._ymo8r ._3dIQu {
4514
- background-color: #308252;
4515
+ background-color: #5A7F05;
4515
4516
  color: #ffff;
4516
4517
  border-radius: 12px;
4517
4518
  padding: 10px 15px; }
4518
4519
 
4519
4520
  ._ymo8r ._3dIQu:hover {
4520
- background-color: #154729; }
4521
+ background-color: #5A7F05; }
4521
4522
 
4522
4523
  ._ymo8r ._3dIQu:disabled {
4523
- background-color: #69af86; }
4524
+ background-color: #5A7F05; }
4524
4525
  ._ymo8r ._3dIQu:disabled > span {
4525
4526
  color: #ffffff; }
4526
4527
 
@@ -4539,7 +4540,7 @@ h2._2HVLw {
4539
4540
  width: 100%; }
4540
4541
 
4541
4542
  ._3AIlB {
4542
- background: #308252 !important;
4543
+ background: #5A7F05 !important;
4543
4544
  color: white !important; }
4544
4545
 
4545
4546
  ._3KML_ {
@@ -15244,9 +15245,9 @@ h4._3lNz0 {
15244
15245
  ._3tbAL ._1Vgmy {
15245
15246
  color: #fff;
15246
15247
  border-radius: 12px;
15247
- background-color: #308252; }
15248
+ background-color: #5A7F05; }
15248
15249
  ._3tbAL ._1Vgmy:hover {
15249
- background-color: #308252; }
15250
+ background-color: #5A7F05; }
15250
15251
 
15251
15252
  ._3tbAL ._1m1n9 {
15252
15253
  color: rgba(0, 0, 0, 0.54); }
package/dist/index.js CHANGED
@@ -8808,8 +8808,7 @@ var ChipButton = function ChipButton(_ref) {
8808
8808
  var StyleChip = styles$R.withStyles({
8809
8809
  root: {
8810
8810
  backgroundColor: !!backgroundColor ? backgroundColor : BACKGROUND_COLOR,
8811
- color: color,
8812
- fontWeight: "bold"
8811
+ color: color
8813
8812
  }
8814
8813
  })(core.Chip);
8815
8814
  return React__default.createElement(StyleChip, {
@@ -8881,34 +8880,34 @@ var ConductTop = function ConductTop(_ref) {
8881
8880
  }, [lengthSession]);
8882
8881
  var listConduct = [{
8883
8882
  label: "" + (!!gradeLevel ? "Grade: " + gradeLevel : ""),
8884
- color: "#1E4E8C",
8885
- backgroundColor: "#CEEDFF"
8883
+ color: "#242424",
8884
+ backgroundColor: "#B3D4FF"
8886
8885
  }, {
8887
8886
  label: !!startTime && marioCore.utcToLocalTime(startTime, "Do MMMM YYYY - hh:mm A") || "",
8888
- color: "#153E75",
8889
- backgroundColor: "#BAD5F8"
8887
+ color: "#242424",
8888
+ backgroundColor: "#B3D4FF"
8890
8889
  }, {
8891
8890
  label: isConference ? "Conference" : "",
8892
- color: "#702459",
8891
+ color: "#242424",
8893
8892
  backgroundColor: "#FFB0A6"
8894
8893
  }];
8895
8894
  var sessionResultTitle = [{
8896
8895
  label: !!sessionType ? "" + sessionType : "",
8897
- color: "#702459",
8896
+ color: "#242424",
8898
8897
  backgroundColor: "#FFB0A6"
8899
8898
  }, {
8900
8899
  label: "" + timeSession,
8901
- color: "#702459",
8900
+ color: "#242424",
8902
8901
  backgroundColor: "#FFB0A6"
8903
8902
  }];
8904
8903
  var teacherRequest = {
8905
8904
  label: isConference ? "" : "Teacher request",
8906
- color: "#702459",
8905
+ color: "#242424",
8907
8906
  backgroundColor: "#FFB0A6"
8908
8907
  };
8909
8908
  var studentRequest = {
8910
8909
  label: isConference ? "" : "Student request",
8911
- color: "#702459",
8910
+ color: "#242424",
8912
8911
  backgroundColor: "#FFB0A6"
8913
8912
  };
8914
8913
  var objectRequest = createdByTeacher ? teacherRequest : studentRequest;
@@ -13403,17 +13402,17 @@ var SurveyTop = function SurveyTop(_ref) {
13403
13402
  dayLeft = _ref.dayLeft;
13404
13403
  var listConduct = [{
13405
13404
  label: "" + (!!gradeLevel ? "Grade: " + gradeLevel : ""),
13406
- color: "#1E4E8C",
13407
- backgroundColor: "#CEEDFF"
13405
+ color: "#242424",
13406
+ backgroundColor: "#B3D4FF"
13408
13407
  }, {
13409
13408
  label: !!startTime && marioCore.utcToLocalTime(startTime, "Do MMMM YYYY - hh:mm A") || "",
13410
- color: "#153E75",
13411
- backgroundColor: "#BAD5F8"
13409
+ color: "#242424",
13410
+ backgroundColor: "#B3D4FF"
13412
13411
  }];
13413
13412
  var objectRequest = {
13414
13413
  label: dayLeft + " Day left",
13415
- color: "#702459",
13416
- backgroundColor: "#FED7E2"
13414
+ color: "#242424",
13415
+ backgroundColor: "#FFB0A6"
13417
13416
  };
13418
13417
  return React__default.createElement("div", {
13419
13418
  className: styles$8["title-conduct"] + " " + styles$8[classFontSize]
@@ -13507,6 +13506,8 @@ var defaultFontLarge$9 = 20;
13507
13506
 
13508
13507
  var useConductSurvey = function useConductSurvey() {
13509
13508
  var apiTimeouts = React.useRef({});
13509
+ var params = new URLSearchParams(location.search);
13510
+ var currentPage = params.get('currentPage') || 0;
13510
13511
  var pusherCluster = reactRedux.useSelector(function (state) {
13511
13512
  return state.common.user.pusherCluster;
13512
13513
  });
@@ -13615,13 +13616,13 @@ var useConductSurvey = function useConductSurvey() {
13615
13616
  var _res$data, _res$data$studentResu, _res$data2, _res$data2$teacherRes, _res$data$teacherResu, _res$data$teacherResu2, _res$data$studentResu2, _res$data$studentResu3, _res$data$teacherResu3, _res$data$studentResu4, _res$data$teacherResu4, _res$data3, _res$data3$teacherRes, _res$data4, _res$data4$teacherRes;
13616
13617
 
13617
13618
  if (isStudent && (_res$data = res.data) !== null && _res$data !== void 0 && (_res$data$studentResu = _res$data.studentResult) !== null && _res$data$studentResu !== void 0 && _res$data$studentResu.isDone) {
13618
- history.push("/result-survey/" + surveyId + "/" + studentId);
13619
+ history.push("/result-survey/" + surveyId + "/" + studentId + "?currentPage=" + currentPage);
13619
13620
  }
13620
13621
 
13621
13622
  setIsStudentChangeAfter(res.data.isChangeAfterSession);
13622
13623
 
13623
13624
  if (isTeacher && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && (_res$data2$teacherRes = _res$data2.teacherResult) !== null && _res$data2$teacherRes !== void 0 && _res$data2$teacherRes.isDone) {
13624
- history.push("/result-survey/" + surveyId + "/" + studentId);
13625
+ history.push("/result-survey/" + surveyId + "/" + studentId + "?currentPage=" + currentPage);
13625
13626
  }
13626
13627
 
13627
13628
  setListQuestionTeacherAnswer((_res$data$teacherResu = res.data.teacherResult) === null || _res$data$teacherResu === void 0 ? void 0 : (_res$data$teacherResu2 = _res$data$teacherResu.questions) === null || _res$data$teacherResu2 === void 0 ? void 0 : _res$data$teacherResu2[0]);
@@ -13867,7 +13868,8 @@ var useConductSurvey = function useConductSurvey() {
13867
13868
  questionIBLearner: questionIBLearner,
13868
13869
  setQuestionIBLearner: setQuestionIBLearner,
13869
13870
  isSchedule: isSchedule,
13870
- isDone: isDone
13871
+ isDone: isDone,
13872
+ currentPage: currentPage
13871
13873
  };
13872
13874
  };
13873
13875
 
@@ -13993,8 +13995,8 @@ var IBLearnerComponent = function IBLearnerComponent(_ref) {
13993
13995
  return !isResultPage && isUserChangeConference && onChangeLearingStategory("" + item.text);
13994
13996
  }
13995
13997
  }, React__default.createElement(ChipButton, {
13996
- color: answerLearningStrategy.includes("" + item.text) ? "#FFF" : "#000",
13997
- backgroundColor: answerLearningStrategy.includes("" + item.text) ? "#1E4E8C" : "#EDF2F7",
13998
+ color: answerLearningStrategy.includes("" + item.text) ? "#FFFFFF" : "#242424",
13999
+ backgroundColor: answerLearningStrategy.includes("" + item.text) ? "#336DDA" : "#EDF2F7",
13998
14000
  label: item.text
13999
14001
  }));
14000
14002
  }));
@@ -14023,7 +14025,8 @@ var SurveyIndex = function SurveyIndex() {
14023
14025
  updateAnswerIBLearner = _useConductSurvey.updateAnswerIBLearner,
14024
14026
  questionIBLearner = _useConductSurvey.questionIBLearner,
14025
14027
  setQuestionIBLearner = _useConductSurvey.setQuestionIBLearner,
14026
- isSchedule = _useConductSurvey.isSchedule;
14028
+ isSchedule = _useConductSurvey.isSchedule,
14029
+ currentPage = _useConductSurvey.currentPage;
14027
14030
 
14028
14031
  var history = reactRouterDom.useHistory();
14029
14032
  var checkQuestionAnswer = React.useMemo(function () {
@@ -14076,12 +14079,12 @@ var SurveyIndex = function SurveyIndex() {
14076
14079
 
14077
14080
  var handleFinished = function handleFinished() {
14078
14081
  fnfinishSurvey(function () {
14079
- history.push("/result-survey/" + surveyId + "/" + studentId);
14082
+ history.push("/result-survey/" + surveyId + "/" + studentId + "?currentPage=" + currentPage);
14080
14083
  });
14081
14084
  };
14082
14085
 
14083
14086
  var goBack = function goBack() {
14084
- !isTeacher ? history.push("/my-surveys/pending") : history.push("/survey-detail/" + surveyId);
14087
+ !isTeacher ? history.push("/my-surveys/pending") : history.push("/survey-detail/" + surveyId + "?currentPage=" + currentPage);
14085
14088
  };
14086
14089
 
14087
14090
  var onChangeIBLearnerAnswer = function onChangeIBLearnerAnswer(_questionId, answerText) {
@@ -14127,14 +14130,14 @@ var SurveyIndex = function SurveyIndex() {
14127
14130
  }, React__default.createElement("div", {
14128
14131
  className: styles$8["item-question"] + " mr-3"
14129
14132
  }, React__default.createElement(ChipButton, {
14130
- color: "#153E75",
14131
- backgroundColor: "#CEEDFF",
14133
+ color: "#242424",
14134
+ backgroundColor: "#B3D4FF",
14132
14135
  label: numberQuestions + " Questions"
14133
14136
  })), React__default.createElement("div", {
14134
14137
  className: "item-question mr-3"
14135
14138
  }, React__default.createElement(ChipButton, {
14136
- color: "#153E75",
14137
- backgroundColor: "#CEEDFF",
14139
+ color: "#242424",
14140
+ backgroundColor: "#B3D4FF",
14138
14141
  label: "Deadline " + marioCore.utcToLocalTime(informationUser === null || informationUser === void 0 ? void 0 : informationUser.deadline, "Do MMMM yyyy - hh:mm A")
14139
14142
  }))))), !!questionSummarize && React__default.createElement("div", {
14140
14143
  className: styles$8["talk-conduct"]
@@ -14288,12 +14291,13 @@ var SurveyResult = function SurveyResult() {
14288
14291
  studentId = _useConductSurvey.studentId,
14289
14292
  questionIBLearner = _useConductSurvey.questionIBLearner,
14290
14293
  isSchedule = _useConductSurvey.isSchedule,
14291
- isDone = _useConductSurvey.isDone;
14294
+ isDone = _useConductSurvey.isDone,
14295
+ currentPage = _useConductSurvey.currentPage;
14292
14296
 
14293
14297
  var history = reactRouterDom.useHistory();
14294
14298
 
14295
14299
  var goBack = function goBack() {
14296
- !isTeacher ? history.push("/my-surveys/pending") : history.push("/survey-detail/" + surveyId);
14300
+ !isTeacher ? history.push("/my-surveys/pending") : history.push("/survey-detail/" + surveyId + "?currentPage=" + currentPage);
14297
14301
  };
14298
14302
 
14299
14303
  var resultIBLearnerProfile = React.useMemo(function () {
@@ -14349,14 +14353,14 @@ var SurveyResult = function SurveyResult() {
14349
14353
  }, React__default.createElement("div", {
14350
14354
  className: styles$8["item-question"] + " mr-3"
14351
14355
  }, React__default.createElement(ChipButton, {
14352
- color: "#153E75",
14353
- backgroundColor: "#CEEDFF",
14356
+ color: "#242424",
14357
+ backgroundColor: "#B3D4FF",
14354
14358
  label: numberQuestions + " Questions"
14355
14359
  })), React__default.createElement("div", {
14356
14360
  className: "item-question mr-3"
14357
14361
  }, React__default.createElement(ChipButton, {
14358
- color: "#153E75",
14359
- backgroundColor: "#CEEDFF",
14362
+ color: "#242424",
14363
+ backgroundColor: "#B3D4FF",
14360
14364
  label: "Deadline " + marioCore.utcToLocalTime(informationUser === null || informationUser === void 0 ? void 0 : informationUser.deadline, "Do MMMM yyyy - hh:mm A")
14361
14365
  }))))), !!questionSummarize && React__default.createElement("div", {
14362
14366
  className: styles$8["talk-conduct"]
@@ -14947,14 +14951,14 @@ var useStyles$a = core.makeStyles(function (theme) {
14947
14951
  tabs: {
14948
14952
  "& > div > div": {
14949
14953
  padding: "15px 20px 0 20px",
14950
- borderBottom: "2px solid #156DA1"
14954
+ borderBottom: "2px solid #336DDA"
14951
14955
  }
14952
14956
  },
14953
14957
  tabLabel: (_tabLabel = {
14954
14958
  height: "59px",
14955
14959
  opacity: 1,
14956
- background: "#156DA1",
14957
- border: "2px solid #156DA1",
14960
+ background: "#336DDA",
14961
+ border: "2px solid #336DDA",
14958
14962
  borderRadius: "12px 12px 0px 0px",
14959
14963
  bottom: "-3px",
14960
14964
  width: 200,
@@ -14973,7 +14977,7 @@ var useStyles$a = core.makeStyles(function (theme) {
14973
14977
  borderBottom: "2px solid #ffffff",
14974
14978
  background: "#ffffff",
14975
14979
  "& span": {
14976
- color: "#156DA1"
14980
+ color: "#336DDA"
14977
14981
  }
14978
14982
  },
14979
14983
  tabLabelActive: {
@@ -14981,7 +14985,7 @@ var useStyles$a = core.makeStyles(function (theme) {
14981
14985
  borderBottom: "2px solid #efefef",
14982
14986
  background: "#efefef",
14983
14987
  "& span": {
14984
- color: "#156DA1"
14988
+ color: "#242424"
14985
14989
  }
14986
14990
  }
14987
14991
  };
@@ -45964,7 +45968,7 @@ var ConfirmDelete = function ConfirmDelete(props) {
45964
45968
  }, React__default.createElement(core.Button, {
45965
45969
  onClick: handleCloseConfirmDeleteDialog,
45966
45970
  style: {
45967
- color: "red"
45971
+ color: "#c94645"
45968
45972
  }
45969
45973
  }, "CANCEL"), React__default.createElement(core.Button, {
45970
45974
  onClick: function onClick() {
@@ -45973,8 +45977,8 @@ var ConfirmDelete = function ConfirmDelete(props) {
45973
45977
  },
45974
45978
  variant: "contained",
45975
45979
  style: {
45976
- color: "white",
45977
- backgroundColor: "red"
45980
+ color: "#fff",
45981
+ backgroundColor: "#c94645"
45978
45982
  }
45979
45983
  }, "YES, DELETE ", React__default.createElement(DeleteIcon, null)))));
45980
45984
  };
@@ -60424,7 +60428,7 @@ var useStyleItem = styles$R.makeStyles(function (theme) {
60424
60428
  },
60425
60429
  button: {
60426
60430
  margin: theme.spacing(1),
60427
- backgroundColor: "#a10630 !important",
60431
+ backgroundColor: "#c94645 !important",
60428
60432
  color: "#fff"
60429
60433
  }
60430
60434
  };
@@ -64393,6 +64397,7 @@ var lableStep = function lableStep(activeStep) {
64393
64397
  var convertTime = function convertTime(time) {
64394
64398
  return marioCore.utcToLocalTime(time, "Do MMM yyyy - hh:mm A").toString();
64395
64399
  };
64400
+ var initTabSurvey = ["ALL", "PENDING", "COMPLETED", "ACTION NEEDED", "EXTERNAL"];
64396
64401
  var initialValues = {
64397
64402
  title: "",
64398
64403
  additionalQuestions: [],
@@ -64480,8 +64485,8 @@ var TYPECHART$1;
64480
64485
  TYPECHART[TYPECHART["BOTH"] = 3] = "BOTH";
64481
64486
  })(TYPECHART$1 || (TYPECHART$1 = {}));
64482
64487
 
64483
- var COLOR_CHART_AND_PIE = ["#336DDA", "#F9F871", "#C94645"];
64484
- var COLOR_LABEL_PIE = ["#5A7F05", "#C94645", "#994700"];
64488
+ var COLOR_CHART_AND_PIE = ["#5A7F05", "#C94645", "#FFB04F"];
64489
+ var COLOR_LABEL_PIE = ["#006E60", "#FF7670", "#994700"];
64485
64490
  var COLOR_NAME = ["Green", "Red", "Yellow"];
64486
64491
  var optionTotalSurvey = ["Total survey done", "Total survey not done"];
64487
64492
  var LABEL_NAME_PIE_CHART = ["Green", "Red", "Yellow"];
@@ -65580,14 +65585,14 @@ var useStyles$m = styles$R.makeStyles(function (theme) {
65580
65585
  },
65581
65586
  "& > div > div": {
65582
65587
  padding: "0 20px",
65583
- borderBottom: "2px solid #156DA1"
65588
+ borderBottom: "2px solid #336DDA"
65584
65589
  }
65585
65590
  },
65586
65591
  tabLabel: (_tabLabel = {
65587
65592
  height: "59px",
65588
65593
  opacity: 1,
65589
- background: "#156DA1",
65590
- border: "2px solid #156DA1",
65594
+ background: "#336DDA",
65595
+ border: "2px solid #336DDA",
65591
65596
  borderRadius: "12px 12px 0px 0px",
65592
65597
  bottom: "-3px",
65593
65598
  width: 200,
@@ -65606,7 +65611,7 @@ var useStyles$m = styles$R.makeStyles(function (theme) {
65606
65611
  borderBottom: "2px solid #ffffff",
65607
65612
  background: "#FFFFFF",
65608
65613
  "& span": {
65609
- color: "#156DA1"
65614
+ color: "#336DDA"
65610
65615
  }
65611
65616
  }
65612
65617
  };
@@ -65736,7 +65741,7 @@ var useListSurveyDetail = function useListSurveyDetail(_ref) {
65736
65741
  };
65737
65742
 
65738
65743
  var handleStartSurvey = function handleStartSurvey(surveyId, studentId) {
65739
- history.push("/start-survey/" + surveyId + "/" + studentId);
65744
+ history.push("/start-survey/" + surveyId + "/" + studentId + "?currentPage=" + (filters.type ? filters.type : 0));
65740
65745
  };
65741
65746
 
65742
65747
  var goToBookSession = function goToBookSession(studentId, surveyId) {
@@ -66098,7 +66103,7 @@ var RepliedSurvey = function RepliedSurvey() {
66098
66103
  scope: "row",
66099
66104
  height: 80,
66100
66105
  className: "" + styles$N["table-class-type"]
66101
- }, React__default.createElement(core.Typography, {
66106
+ }, !!row.flag && React__default.createElement(core.Typography, {
66102
66107
  className: styles$N["row-status"] + " " + styles$N[flagCellBgColor(row.flag)]
66103
66108
  }, React__default.createElement(core.Typography, {
66104
66109
  className: styles$N["session"] + " " + styles$N[sessionBackground(row.actionScore)]
@@ -66450,6 +66455,8 @@ var ListSurveyDetail = function ListSurveyDetail(props) {
66450
66455
  var useSurveyDetail = function useSurveyDetail() {
66451
66456
  var dispatch = reactRedux.useDispatch();
66452
66457
  var history = reactRouterDom.useHistory();
66458
+ var params = new URLSearchParams(location.search);
66459
+ var currentPage = params.get('currentPage') || 0;
66453
66460
 
66454
66461
  var _useParams = reactRouterDom.useParams(),
66455
66462
  id = _useParams.id;
@@ -66462,7 +66469,7 @@ var useSurveyDetail = function useSurveyDetail() {
66462
66469
  detailSurvey = _useState2[0],
66463
66470
  setDetailSurvey = _useState2[1];
66464
66471
 
66465
- var _useState3 = React.useState("ALL"),
66472
+ var _useState3 = React.useState(initTabSurvey[Number(currentPage) || 0]),
66466
66473
  activeTab = _useState3[0],
66467
66474
  setActiveTab = _useState3[1];
66468
66475
 
@@ -70896,6 +70903,7 @@ var optionColumnChartAndPercents$1 = function optionColumnChartAndPercents(month
70896
70903
  decimalsInFloat: 0
70897
70904
  },
70898
70905
  tooltip: {
70906
+ shared: false,
70899
70907
  y: {
70900
70908
  formatter: function formatter(value) {
70901
70909
  return "" + (!percentData ? value : value.toFixed(2) + "%");
@@ -70994,6 +71002,7 @@ var optionBarChartAndArea$1 = function optionBarChartAndArea(months, activeData,
70994
71002
  decimalsInFloat: 0
70995
71003
  },
70996
71004
  tooltip: {
71005
+ shared: false,
70997
71006
  enabledOnSeries: handleViewSeriesActive$1(activeData),
70998
71007
  y: {
70999
71008
  formatter: function formatter(value) {