mario-core 2.9.140-level → 2.9.142-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.
@@ -694,6 +694,10 @@ var students_who_are_not_feeling_safe = "Students who are not feeling safe";
694
694
  var students_missing_a_weekly_check_in = "Students missing a weekly check-in";
695
695
  var student_stress_by_zone = "Student Stress by Zone";
696
696
  var student_distribution = "Student Distribution";
697
+ var surveys_flags = "Survey's flags";
698
+ var yellow_flags = "Yellow flags";
699
+ var green_flags = "Green flags";
700
+ var red_flags = "Red flags";
697
701
  var lang_us = {
698
702
  dashboard: dashboard,
699
703
  user: user,
@@ -1366,7 +1370,11 @@ var lang_us = {
1366
1370
  students_who_are_not_feeling_safe: students_who_are_not_feeling_safe,
1367
1371
  students_missing_a_weekly_check_in: students_missing_a_weekly_check_in,
1368
1372
  student_stress_by_zone: student_stress_by_zone,
1369
- student_distribution: student_distribution
1373
+ student_distribution: student_distribution,
1374
+ surveys_flags: surveys_flags,
1375
+ yellow_flags: yellow_flags,
1376
+ green_flags: green_flags,
1377
+ red_flags: red_flags
1370
1378
  };
1371
1379
 
1372
1380
  var dashboard$1 = "Dashboard";
@@ -2031,6 +2039,10 @@ var students_who_are_not_feeling_safe$1 = "Students who are not feeling safe";
2031
2039
  var students_missing_a_weekly_check_in$1 = "Students missing a weekly check-in";
2032
2040
  var student_stress_by_zone$1 = "Student Stress by Zone";
2033
2041
  var student_distribution$1 = "Student Distribution";
2042
+ var surveys_flags$1 = "Survey's flags";
2043
+ var yellow_flags$1 = "Yellow flags";
2044
+ var green_flags$1 = "Green flags";
2045
+ var red_flags$1 = "Red flags";
2034
2046
  var lang_uk = {
2035
2047
  dashboard: dashboard$1,
2036
2048
  user: user$1,
@@ -2703,7 +2715,11 @@ var lang_uk = {
2703
2715
  students_who_are_not_feeling_safe: students_who_are_not_feeling_safe$1,
2704
2716
  students_missing_a_weekly_check_in: students_missing_a_weekly_check_in$1,
2705
2717
  student_stress_by_zone: student_stress_by_zone$1,
2706
- student_distribution: student_distribution$1
2718
+ student_distribution: student_distribution$1,
2719
+ surveys_flags: surveys_flags$1,
2720
+ yellow_flags: yellow_flags$1,
2721
+ green_flags: green_flags$1,
2722
+ red_flags: red_flags$1
2707
2723
  };
2708
2724
 
2709
2725
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -8847,6 +8863,7 @@ var useNotificationList = function useNotificationList() {
8847
8863
  return state.common.user;
8848
8864
  });
8849
8865
  var userId = user === null || user === void 0 ? void 0 : user.id;
8866
+ var studentId = user === null || user === void 0 ? void 0 : user.studentId;
8850
8867
  var notificationList = useSelector(function (state) {
8851
8868
  return state.notification.notificationList;
8852
8869
  });
@@ -8876,7 +8893,7 @@ var useNotificationList = function useNotificationList() {
8876
8893
  };
8877
8894
 
8878
8895
  var viewNotification = function viewNotification(notification) {
8879
- var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9;
8896
+ var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10, _JSON$parse11, _JSON$parse12;
8880
8897
 
8881
8898
  var source = notification.source,
8882
8899
  extraData = notification.extraData;
@@ -8928,6 +8945,14 @@ var useNotificationList = function useNotificationList() {
8928
8945
 
8929
8946
  case "RequestCheckIn":
8930
8947
  window.open("/start-question/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[0]) + "/" + ((_JSON$parse9 = JSON.parse(extraData)) === null || _JSON$parse9 === void 0 ? void 0 : _JSON$parse9[1]));
8948
+
8949
+ case "NewSurveyCreated":
8950
+ !!studentId && window.open("/start-survey/" + ((_JSON$parse10 = JSON.parse(extraData)) === null || _JSON$parse10 === void 0 ? void 0 : _JSON$parse10[0]) + "/" + studentId);
8951
+ break;
8952
+
8953
+ case "StudentCompletedSurvey":
8954
+ !window.open("/start-survey/" + ((_JSON$parse11 = JSON.parse(extraData)) === null || _JSON$parse11 === void 0 ? void 0 : _JSON$parse11[0]) + "/" + ((_JSON$parse12 = JSON.parse(extraData)) === null || _JSON$parse12 === void 0 ? void 0 : _JSON$parse12[1]));
8955
+ break;
8931
8956
  }
8932
8957
  };
8933
8958
 
@@ -9144,7 +9169,7 @@ var NotificationList = function NotificationList() {
9144
9169
  }
9145
9170
  })), React.createElement("td", {
9146
9171
  className: "text-center align-middle"
9147
- }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed", "RequestCheckIn"].includes(record.source) && React.createElement(AiOutlineEye, {
9172
+ }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved", "Class Reflection", "NewSessionComplete", "ActionPointReminder", "SendNotiPLP", "SendNotiGOAL", "Class Reflection Completed", "External Reflection Completed", "RequestCheckIn", "NewSurveyCreated", "StudentCompletedSurvey"].includes(record.source) && React.createElement(AiOutlineEye, {
9148
9173
  className: "cursor-pointer",
9149
9174
  size: ICON_SIZE,
9150
9175
  title: "Detail",