mario-core 2.9.62-beta → 2.9.64-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.
@@ -578,6 +578,7 @@ var set_deadline = "Set deadline";
578
578
  var duplicate_survey = "Duplicate Survey";
579
579
  var share_survey = "Share Survey";
580
580
  var new_survey = "New Survey";
581
+ var assign_counselor = "Assign Counselor";
581
582
  var lang_us = {
582
583
  dashboard: dashboard,
583
584
  user: user,
@@ -1131,7 +1132,8 @@ var lang_us = {
1131
1132
  set_deadline: set_deadline,
1132
1133
  duplicate_survey: duplicate_survey,
1133
1134
  share_survey: share_survey,
1134
- new_survey: new_survey
1135
+ new_survey: new_survey,
1136
+ assign_counselor: assign_counselor
1135
1137
  };
1136
1138
 
1137
1139
  var dashboard$1 = "Dashboard";
@@ -1310,7 +1312,7 @@ var use_for$1 = "Use for";
1310
1312
  var admin_training$1 = "Admin training";
1311
1313
  var teacher_training$1 = "Teacher training";
1312
1314
  var created_time$1 = "Create time";
1313
- var total_reflections$1 = "Total Reflections:";
1315
+ var total_reflections$1 = "Total Reflections";
1314
1316
  var student_training$1 = "Student training";
1315
1317
  var create_destination$1 = "Create Destination";
1316
1318
  var total_of_designation$1 = "Total of Designation";
@@ -1681,6 +1683,7 @@ var set_deadline$1 = "Set deadline";
1681
1683
  var duplicate_survey$1 = "Duplicate Survey";
1682
1684
  var share_survey$1 = "Share Survey";
1683
1685
  var new_survey$1 = "New Survey";
1686
+ var assign_counselor$1 = "Assign Counselor";
1684
1687
  var lang_uk = {
1685
1688
  dashboard: dashboard$1,
1686
1689
  user: user$1,
@@ -2234,7 +2237,8 @@ var lang_uk = {
2234
2237
  set_deadline: set_deadline$1,
2235
2238
  duplicate_survey: duplicate_survey$1,
2236
2239
  share_survey: share_survey$1,
2237
- new_survey: new_survey$1
2240
+ new_survey: new_survey$1,
2241
+ assign_counselor: assign_counselor$1
2238
2242
  };
2239
2243
 
2240
2244
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -2518,7 +2522,7 @@ var STAR_OPTIONS = [{
2518
2522
  value: 5
2519
2523
  }];
2520
2524
  var ANSWER_EDITOR_HEIGHT = 150;
2521
- var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
2525
+ var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
2522
2526
  var CHAT_CHANNEL = "chat-channel";
2523
2527
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
2524
2528
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
@@ -2534,7 +2538,8 @@ var ROLES = {
2534
2538
  ASSISTANT: "Assistant",
2535
2539
  EDUTEACHER: "General ED teacher",
2536
2540
  STUDENT: "Student",
2537
- PARENT: "Parent"
2541
+ PARENT: "Parent",
2542
+ COUNSELOR: "Counselor"
2538
2543
  };
2539
2544
  var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
2540
2545
 
@@ -2789,7 +2794,7 @@ var useLogin = function useLogin() {
2789
2794
  history.push(HOMEPAGE_DISTRICT);
2790
2795
  } else if (roles.includes("Admin")) {
2791
2796
  history.push(HOMEPAGE_ADMIN);
2792
- } else if (roles.includes("Teacher") || roles.includes("Assistant")) {
2797
+ } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
2793
2798
  history.push(HOMEPAGE_TEACHER);
2794
2799
  } else if (roles.includes("Student")) {
2795
2800
  history.push(HOMEPAGE_STUDENT);
@@ -7385,13 +7390,13 @@ var UserDetail = function UserDetail() {
7385
7390
  return;
7386
7391
  }
7387
7392
 
7388
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
7393
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
7389
7394
  setFieldValue("roles", [role]);
7390
7395
  return;
7391
7396
  }
7392
7397
 
7393
7398
  var teacherAssistantRoles = values.roles.filter(function (item) {
7394
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
7399
+ return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
7395
7400
  });
7396
7401
  setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7397
7402
  }, [values.roles]);
@@ -8047,7 +8052,7 @@ var useNotificationList = function useNotificationList() {
8047
8052
  };
8048
8053
 
8049
8054
  var viewNotification = function viewNotification(notification) {
8050
- var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
8055
+ var _JSON$parse, _JSON$parse2, _extraData$replace, _extraData$replace$sp, _extraData$replace2, _extraData$replace2$s, _extraData$replace3, _extraData$replace3$s, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6;
8051
8056
 
8052
8057
  var source = notification.source,
8053
8058
  extraData = notification.extraData;
@@ -8062,23 +8067,23 @@ var useNotificationList = function useNotificationList() {
8062
8067
  break;
8063
8068
 
8064
8069
  case "Class Reflection":
8065
- window.open("/start-reflection/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
8070
+ window.open("/start-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace === void 0 ? void 0 : (_extraData$replace$sp = _extraData$replace.split(',')) === null || _extraData$replace$sp === void 0 ? void 0 : _extraData$replace$sp[1]));
8066
8071
  break;
8067
8072
 
8068
8073
  case "Class Reflection Completed":
8069
- window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
8074
+ window.open("/result-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace2 = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace2 === void 0 ? void 0 : (_extraData$replace2$s = _extraData$replace2.split(',')) === null || _extraData$replace2$s === void 0 ? void 0 : _extraData$replace2$s[1]));
8070
8075
  break;
8071
8076
 
8072
8077
  case "External Reflection Completed":
8073
- window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
8078
+ window.open("/result-reflection/" + (extraData === null || extraData === void 0 ? void 0 : (_extraData$replace3 = extraData.replace(/[\[\]]/g, '')) === null || _extraData$replace3 === void 0 ? void 0 : (_extraData$replace3$s = _extraData$replace3.split(',')) === null || _extraData$replace3$s === void 0 ? void 0 : _extraData$replace3$s[1]) + "/external");
8074
8079
  break;
8075
8080
 
8076
8081
  case "NewSessionCreated":
8077
- window.open("/start-question/" + ((_JSON$parse7 = JSON.parse(extraData)) === null || _JSON$parse7 === void 0 ? void 0 : _JSON$parse7[0]) + "/" + ((_JSON$parse8 = JSON.parse(extraData)) === null || _JSON$parse8 === void 0 ? void 0 : _JSON$parse8[1]));
8082
+ window.open("/start-question/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
8078
8083
  break;
8079
8084
 
8080
8085
  case "NewSessionComplete":
8081
- window.open("/start-question/" + ((_JSON$parse9 = JSON.parse(extraData)) === null || _JSON$parse9 === void 0 ? void 0 : _JSON$parse9[0]) + "/" + ((_JSON$parse10 = JSON.parse(extraData)) === null || _JSON$parse10 === void 0 ? void 0 : _JSON$parse10[1]));
8086
+ window.open("/start-question/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[0]) + "/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]));
8082
8087
  break;
8083
8088
 
8084
8089
  case "ActionPointReminder":