mario-core 2.9.61-beta → 2.9.63-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.
package/dist/index.js CHANGED
@@ -50,6 +50,7 @@ var cancel = "Cancel";
50
50
  var hey = "Hey";
51
51
  var readiness_to_learn = "Readiness to Learn";
52
52
  var high_impact_learning_strategies = "High Impact Learning Strategies";
53
+ var check_in = "Check In";
53
54
  var reflection = "Reflection";
54
55
  var conferences = "Conferences";
55
56
  var safety = "Safety";
@@ -72,6 +73,7 @@ var tooltip_content_safety_chart = "The visual represenation of all the response
72
73
  var tooltip_content_student_by_age_chart = "The specific representation of students by gender and grade level at your school.";
73
74
  var tooltip_content_students_by_designation = "The composite representation of students by individual grades in your school with specific designations.";
74
75
  var total_1_to_1 = "Total 1-to-1";
76
+ var total_check_in = "Total Check In";
75
77
  var total_1_to_1_time = "Total 1-to-1 Time";
76
78
  var total_conferences = "Total Conferences";
77
79
  var total_conferences_time = "Total Conferences Time";
@@ -101,12 +103,14 @@ var current_password = "Current password";
101
103
  var new_password = "New password";
102
104
  var confirm_password = "Confirm password";
103
105
  var save = "Save";
104
- var type_something_to_search_question = "Type something to Search question";
106
+ var type_something_to_search_question = "Type something to search question";
107
+ var type_something_to_search_category = "Type something to search category";
105
108
  var total_of_questions = "Total of questions";
106
109
  var create_question = "Create question";
107
110
  var edit_question = "Edit question";
108
111
  var question_type = "Question Type";
109
112
  var category = "Category";
113
+ var sub_category = "Sub Category";
110
114
  var is_default_question_for_one_to_one = "Is default question for one-to-one";
111
115
  var default_question_for_students_or_teachers = "Default question for students or teachers";
112
116
  var is_default_question_general_class = "Is default question general class";
@@ -217,6 +221,7 @@ var edit_destination = "Edit Destination";
217
221
  var confirm = "Confirm";
218
222
  var hello = "Hello";
219
223
  var todays_1_1 = "Today’s 1-1";
224
+ var todays_check_in = "Today’s Check In";
220
225
  var todays_Conferences = "Today’s Conferences";
221
226
  var next_meeting = "Next Meeting";
222
227
  var next_conference = "Next Conference";
@@ -245,6 +250,7 @@ var import_csv = "Import CSV";
245
250
  var add_new = "Add New";
246
251
  var show_only_work_as_assistant = "Show only work as assistant";
247
252
  var last_1_to_1 = "Last 1-TO-1";
253
+ var last_check_in = "Last Check In";
248
254
  var last_conference = "Last conference";
249
255
  var total_time = "Total time";
250
256
  var assistant_name = "Assistant Name";
@@ -261,6 +267,7 @@ var after = "After";
261
267
  var pick_a_date = "Pick a date";
262
268
  var apply = "Apply";
263
269
  var new_1_to_1 = "New 1-to-1";
270
+ var new_check_in = "New Check In";
264
271
  var do_you_want_to_talk_with_teacher = "Do you want to talk with teacher";
265
272
  var start_now = "Start now";
266
273
  var book_for_later = "Book for later";
@@ -271,6 +278,7 @@ var select_question = "Select question";
271
278
  var select_student = "Select student";
272
279
  var select_date_time = "Select Date & Time";
273
280
  var book_1_to_1 = "Book 1-to-1";
281
+ var book_new_check_in = "Book new Check In";
274
282
  var schedule = "Schedule";
275
283
  var sessions_are_booked_as_10_minute_slots = "Sessions are booked as 10 minute slots";
276
284
  var does_not_reoccur = "Does not reoccur";
@@ -278,13 +286,15 @@ var time_must_be_between_8_am_and_6_pm = "Time must be between 8 AM and 6 PM";
278
286
  var from = "From";
279
287
  var to = "To";
280
288
  var show_only_favorites = "Show only favorites";
289
+ var show_only_conversation = "Show 1-1 conversation only";
281
290
  var duration = "Duration";
282
291
  var favorite = "Favorite";
283
292
  var open = "Open";
284
293
  var no_data = "No Data";
285
294
  var schedule_detail = "Schedule Detail";
286
295
  var are_you_sure_you_want_to_cancel_this_schedule = "Are you sure you want to Cancel this schedule?";
287
- var completed_1_to_1 = "Completed 1-to-1";
296
+ var completed_1_to_1 = "Completed 1-1 Conversation";
297
+ var completed_check_in = "Completed Check In";
288
298
  var done = "Done";
289
299
  var what_do_you_want_to_talk_about = "What do you want to talk about?";
290
300
  var session_type = "Session Type";
@@ -405,6 +415,7 @@ var student_request = "Student Request";
405
415
  var overview = "Overview";
406
416
  var plp = "PLP";
407
417
  var my_student_1_to_1 = "My Student 1-to-1";
418
+ var my_student_check_in = "My Student Check In";
408
419
  var my_student_conference = "My Student Conference";
409
420
  var received_date = "Received Date";
410
421
  var class_impact_score = "Class Impact Score";
@@ -577,7 +588,6 @@ var set_deadline = "Set deadline";
577
588
  var duplicate_survey = "Duplicate Survey";
578
589
  var share_survey = "Share Survey";
579
590
  var new_survey = "New Survey";
580
- var assign_counselor = "Assign Counselor";
581
591
  var lang_us = {
582
592
  dashboard: dashboard,
583
593
  user: user,
@@ -595,6 +605,7 @@ var lang_us = {
595
605
  readiness_to_learn: readiness_to_learn,
596
606
  high_impact_learning_strategies: high_impact_learning_strategies,
597
607
  "1_to_1": "1 To 1",
608
+ check_in: check_in,
598
609
  reflection: reflection,
599
610
  conferences: conferences,
600
611
  safety: safety,
@@ -617,6 +628,7 @@ var lang_us = {
617
628
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart,
618
629
  tooltip_content_students_by_designation: tooltip_content_students_by_designation,
619
630
  total_1_to_1: total_1_to_1,
631
+ total_check_in: total_check_in,
620
632
  total_1_to_1_time: total_1_to_1_time,
621
633
  total_conferences: total_conferences,
622
634
  total_conferences_time: total_conferences_time,
@@ -648,11 +660,13 @@ var lang_us = {
648
660
  confirm_password: confirm_password,
649
661
  save: save,
650
662
  type_something_to_search_question: type_something_to_search_question,
663
+ type_something_to_search_category: type_something_to_search_category,
651
664
  total_of_questions: total_of_questions,
652
665
  create_question: create_question,
653
666
  edit_question: edit_question,
654
667
  question_type: question_type,
655
668
  category: category,
669
+ sub_category: sub_category,
656
670
  "Question text": "Question text",
657
671
  is_default_question_for_one_to_one: is_default_question_for_one_to_one,
658
672
  default_question_for_students_or_teachers: default_question_for_students_or_teachers,
@@ -764,6 +778,7 @@ var lang_us = {
764
778
  confirm: confirm,
765
779
  hello: hello,
766
780
  todays_1_1: todays_1_1,
781
+ todays_check_in: todays_check_in,
767
782
  todays_Conferences: todays_Conferences,
768
783
  next_meeting: next_meeting,
769
784
  next_conference: next_conference,
@@ -794,6 +809,7 @@ var lang_us = {
794
809
  add_new: add_new,
795
810
  show_only_work_as_assistant: show_only_work_as_assistant,
796
811
  last_1_to_1: last_1_to_1,
812
+ last_check_in: last_check_in,
797
813
  last_conference: last_conference,
798
814
  total_time: total_time,
799
815
  assistant_name: assistant_name,
@@ -810,6 +826,7 @@ var lang_us = {
810
826
  pick_a_date: pick_a_date,
811
827
  apply: apply,
812
828
  new_1_to_1: new_1_to_1,
829
+ new_check_in: new_check_in,
813
830
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher,
814
831
  start_now: start_now,
815
832
  book_for_later: book_for_later,
@@ -820,6 +837,7 @@ var lang_us = {
820
837
  select_student: select_student,
821
838
  select_date_time: select_date_time,
822
839
  book_1_to_1: book_1_to_1,
840
+ book_new_check_in: book_new_check_in,
823
841
  schedule: schedule,
824
842
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots,
825
843
  does_not_reoccur: does_not_reoccur,
@@ -827,6 +845,7 @@ var lang_us = {
827
845
  from: from,
828
846
  to: to,
829
847
  show_only_favorites: show_only_favorites,
848
+ show_only_conversation: show_only_conversation,
830
849
  duration: duration,
831
850
  favorite: favorite,
832
851
  open: open,
@@ -834,6 +853,7 @@ var lang_us = {
834
853
  schedule_detail: schedule_detail,
835
854
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule,
836
855
  completed_1_to_1: completed_1_to_1,
856
+ completed_check_in: completed_check_in,
837
857
  done: done,
838
858
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about,
839
859
  session_type: session_type,
@@ -955,6 +975,7 @@ var lang_us = {
955
975
  overview: overview,
956
976
  plp: plp,
957
977
  my_student_1_to_1: my_student_1_to_1,
978
+ my_student_check_in: my_student_check_in,
958
979
  my_student_conference: my_student_conference,
959
980
  received_date: received_date,
960
981
  class_impact_score: class_impact_score,
@@ -1128,8 +1149,7 @@ var lang_us = {
1128
1149
  set_deadline: set_deadline,
1129
1150
  duplicate_survey: duplicate_survey,
1130
1151
  share_survey: share_survey,
1131
- new_survey: new_survey,
1132
- assign_counselor: assign_counselor
1152
+ new_survey: new_survey
1133
1153
  };
1134
1154
 
1135
1155
  var dashboard$1 = "Dashboard";
@@ -1147,6 +1167,7 @@ var cancel$1 = "Cancel";
1147
1167
  var hey$1 = "Hey";
1148
1168
  var readiness_to_learn$1 = "Readiness to Learn";
1149
1169
  var high_impact_learning_strategies$1 = "High Impact Learning Strategies";
1170
+ var check_in$1 = "Check In";
1150
1171
  var reflection$1 = "Reflection";
1151
1172
  var conferences$1 = "Conferences";
1152
1173
  var safety$1 = "Safety";
@@ -1169,6 +1190,7 @@ var tooltip_content_safety_chart$1 = "The visual represenation of all the respon
1169
1190
  var tooltip_content_student_by_age_chart$1 = "The specific representation of students by gender and grade level at your school.";
1170
1191
  var tooltip_content_students_by_designation$1 = "The composite representation of students by individual grades in your school with specific designations.";
1171
1192
  var total_1_to_1$1 = "Total 1-to-1";
1193
+ var total_check_in$1 = "Total Check In";
1172
1194
  var total_1_to_1_time$1 = "Total 1-to-1 Time";
1173
1195
  var total_conferences$1 = "Total Conferences";
1174
1196
  var total_conferences_time$1 = "Total Conferences Time";
@@ -1199,12 +1221,14 @@ var current_password$1 = "Current password";
1199
1221
  var new_password$1 = "New password";
1200
1222
  var confirm_password$1 = "Confirm password";
1201
1223
  var save$1 = "Save";
1202
- var type_something_to_search_question$1 = "Type something to Search question";
1224
+ var type_something_to_search_question$1 = "Type something to search question";
1225
+ var type_something_to_search_category$1 = "Type something to search category";
1203
1226
  var total_of_questions$1 = "Total of questions";
1204
1227
  var create_question$1 = "Create question";
1205
1228
  var edit_question$1 = "Edit question";
1206
1229
  var question_type$1 = "Question Type";
1207
1230
  var category$1 = "Category";
1231
+ var sub_category$1 = "Sub Category";
1208
1232
  var question_text = "Question text";
1209
1233
  var is_default_question_for_one_to_one$1 = "Is default question for one-to-one";
1210
1234
  var default_question_for_students_or_teachers$1 = "Default question for students or teachers";
@@ -1307,7 +1331,7 @@ var use_for$1 = "Use for";
1307
1331
  var admin_training$1 = "Admin training";
1308
1332
  var teacher_training$1 = "Teacher training";
1309
1333
  var created_time$1 = "Create time";
1310
- var total_reflections$1 = "Total Reflections:";
1334
+ var total_reflections$1 = "Total Reflections";
1311
1335
  var student_training$1 = "Student training";
1312
1336
  var create_destination$1 = "Create Destination";
1313
1337
  var total_of_designation$1 = "Total of Designation";
@@ -1316,6 +1340,7 @@ var edit_destination$1 = "Edit Destination";
1316
1340
  var confirm$1 = "Confirm";
1317
1341
  var hello$1 = "Hello";
1318
1342
  var todays_1_1$1 = "Today’s 1-1";
1343
+ var todays_check_in$1 = "Today’s Check In";
1319
1344
  var todays_Conferences$1 = "Today’s Conferences";
1320
1345
  var next_meeting$1 = "Next Meeting";
1321
1346
  var next_conference$1 = "Next Conference";
@@ -1344,6 +1369,7 @@ var import_csv$1 = "Import CSV";
1344
1369
  var add_new$1 = "Add New";
1345
1370
  var show_only_work_as_assistant$1 = "Show only work as assistant";
1346
1371
  var last_1_to_1$1 = "Last 1-TO-1";
1372
+ var last_check_in$1 = "Last Check In";
1347
1373
  var last_conference$1 = "Last conference";
1348
1374
  var total_time$1 = "Total time";
1349
1375
  var assistant_name$1 = "Assistant Name";
@@ -1360,6 +1386,7 @@ var after$1 = "After";
1360
1386
  var pick_a_date$1 = "Pick a date";
1361
1387
  var apply$1 = "Apply";
1362
1388
  var new_1_to_1$1 = "New 1-to-1";
1389
+ var new_check_in$1 = "New Check In";
1363
1390
  var do_you_want_to_talk_with_teacher$1 = "Do you want to talk with teacher";
1364
1391
  var start_now$1 = "Start now";
1365
1392
  var book_for_later$1 = "Book for later";
@@ -1370,6 +1397,7 @@ var select_question$1 = "Select question";
1370
1397
  var select_student$1 = "Select student";
1371
1398
  var select_date_time$1 = "Select Date & Time";
1372
1399
  var book_1_to_1$1 = "Book 1-to-1";
1400
+ var book_new_check_in$1 = "Book new Check In";
1373
1401
  var schedule$1 = "Schedule";
1374
1402
  var sessions_are_booked_as_10_minute_slots$1 = "Sessions are booked as 10 minute slots";
1375
1403
  var does_not_reoccur$1 = "Does not reoccur";
@@ -1377,13 +1405,15 @@ var time_must_be_between_8_am_and_6_pm$1 = "Time must be between 8 AM and 6 PM";
1377
1405
  var from$1 = "From";
1378
1406
  var to$1 = "To";
1379
1407
  var show_only_favorites$1 = "Show only favorites";
1408
+ var show_only_conversation$1 = "Show 1-1 conversation only";
1380
1409
  var duration$1 = "Duration";
1381
1410
  var favorite$1 = "Favorite";
1382
1411
  var open$1 = "Open";
1383
1412
  var no_data$1 = "No Data";
1384
1413
  var schedule_detail$1 = "Schedule Detail";
1385
1414
  var are_you_sure_you_want_to_cancel_this_schedule$1 = "Are you sure you want to Cancel this schedule?";
1386
- var completed_1_to_1$1 = "Completed 1-to-1";
1415
+ var completed_1_to_1$1 = "Completed 1-1 Conversation";
1416
+ var completed_check_in$1 = "Completed Check In";
1387
1417
  var done$1 = "Done";
1388
1418
  var what_do_you_want_to_talk_about$1 = "What do you want to talk about?";
1389
1419
  var session_type$1 = "Session Type";
@@ -1504,6 +1534,7 @@ var student_request$1 = "Student Request";
1504
1534
  var overview$1 = "Overview";
1505
1535
  var plp$1 = "PLP";
1506
1536
  var my_student_1_to_1$1 = "My Student 1-to-1";
1537
+ var my_student_check_in$1 = "My Student Check In";
1507
1538
  var my_student_conference$1 = "My Student Conference";
1508
1539
  var received_date$1 = "Received Date";
1509
1540
  var class_impact_score$1 = "Class Impact Score";
@@ -1585,7 +1616,7 @@ var accommodation$1 = "Accommodation";
1585
1616
  var all_categories$1 = "All categories";
1586
1617
  var do_you_want_to_delete_this_accommodation$1 = "Do you want to delete this accommodation";
1587
1618
  var edit_accommodation$1 = "Edit Accommodation";
1588
- var add_accommodation$1 = "add_accommodation";
1619
+ var add_accommodation$1 = "Add Accommodation";
1589
1620
  var all$1 = "All";
1590
1621
  var all_status$1 = "All status";
1591
1622
  var goal_type$1 = "Goal Type";
@@ -1676,7 +1707,6 @@ var set_deadline$1 = "Set deadline";
1676
1707
  var duplicate_survey$1 = "Duplicate Survey";
1677
1708
  var share_survey$1 = "Share Survey";
1678
1709
  var new_survey$1 = "New Survey";
1679
- var assign_counselor$1 = "Assign Counselor";
1680
1710
  var lang_uk = {
1681
1711
  dashboard: dashboard$1,
1682
1712
  user: user$1,
@@ -1694,6 +1724,7 @@ var lang_uk = {
1694
1724
  readiness_to_learn: readiness_to_learn$1,
1695
1725
  high_impact_learning_strategies: high_impact_learning_strategies$1,
1696
1726
  "1_to_1": "1 to 1",
1727
+ check_in: check_in$1,
1697
1728
  reflection: reflection$1,
1698
1729
  conferences: conferences$1,
1699
1730
  safety: safety$1,
@@ -1716,6 +1747,7 @@ var lang_uk = {
1716
1747
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart$1,
1717
1748
  tooltip_content_students_by_designation: tooltip_content_students_by_designation$1,
1718
1749
  total_1_to_1: total_1_to_1$1,
1750
+ total_check_in: total_check_in$1,
1719
1751
  total_1_to_1_time: total_1_to_1_time$1,
1720
1752
  total_conferences: total_conferences$1,
1721
1753
  total_conferences_time: total_conferences_time$1,
@@ -1747,11 +1779,13 @@ var lang_uk = {
1747
1779
  confirm_password: confirm_password$1,
1748
1780
  save: save$1,
1749
1781
  type_something_to_search_question: type_something_to_search_question$1,
1782
+ type_something_to_search_category: type_something_to_search_category$1,
1750
1783
  total_of_questions: total_of_questions$1,
1751
1784
  create_question: create_question$1,
1752
1785
  edit_question: edit_question$1,
1753
1786
  question_type: question_type$1,
1754
1787
  category: category$1,
1788
+ sub_category: sub_category$1,
1755
1789
  question_text: question_text,
1756
1790
  is_default_question_for_one_to_one: is_default_question_for_one_to_one$1,
1757
1791
  default_question_for_students_or_teachers: default_question_for_students_or_teachers$1,
@@ -1863,6 +1897,7 @@ var lang_uk = {
1863
1897
  confirm: confirm$1,
1864
1898
  hello: hello$1,
1865
1899
  todays_1_1: todays_1_1$1,
1900
+ todays_check_in: todays_check_in$1,
1866
1901
  todays_Conferences: todays_Conferences$1,
1867
1902
  next_meeting: next_meeting$1,
1868
1903
  next_conference: next_conference$1,
@@ -1893,6 +1928,7 @@ var lang_uk = {
1893
1928
  add_new: add_new$1,
1894
1929
  show_only_work_as_assistant: show_only_work_as_assistant$1,
1895
1930
  last_1_to_1: last_1_to_1$1,
1931
+ last_check_in: last_check_in$1,
1896
1932
  last_conference: last_conference$1,
1897
1933
  total_time: total_time$1,
1898
1934
  assistant_name: assistant_name$1,
@@ -1909,6 +1945,7 @@ var lang_uk = {
1909
1945
  pick_a_date: pick_a_date$1,
1910
1946
  apply: apply$1,
1911
1947
  new_1_to_1: new_1_to_1$1,
1948
+ new_check_in: new_check_in$1,
1912
1949
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher$1,
1913
1950
  start_now: start_now$1,
1914
1951
  book_for_later: book_for_later$1,
@@ -1919,6 +1956,7 @@ var lang_uk = {
1919
1956
  select_student: select_student$1,
1920
1957
  select_date_time: select_date_time$1,
1921
1958
  book_1_to_1: book_1_to_1$1,
1959
+ book_new_check_in: book_new_check_in$1,
1922
1960
  schedule: schedule$1,
1923
1961
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots$1,
1924
1962
  does_not_reoccur: does_not_reoccur$1,
@@ -1926,6 +1964,7 @@ var lang_uk = {
1926
1964
  from: from$1,
1927
1965
  to: to$1,
1928
1966
  show_only_favorites: show_only_favorites$1,
1967
+ show_only_conversation: show_only_conversation$1,
1929
1968
  duration: duration$1,
1930
1969
  favorite: favorite$1,
1931
1970
  open: open$1,
@@ -1933,6 +1972,7 @@ var lang_uk = {
1933
1972
  schedule_detail: schedule_detail$1,
1934
1973
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule$1,
1935
1974
  completed_1_to_1: completed_1_to_1$1,
1975
+ completed_check_in: completed_check_in$1,
1936
1976
  done: done$1,
1937
1977
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about$1,
1938
1978
  session_type: session_type$1,
@@ -2054,6 +2094,7 @@ var lang_uk = {
2054
2094
  overview: overview$1,
2055
2095
  plp: plp$1,
2056
2096
  my_student_1_to_1: my_student_1_to_1$1,
2097
+ my_student_check_in: my_student_check_in$1,
2057
2098
  my_student_conference: my_student_conference$1,
2058
2099
  received_date: received_date$1,
2059
2100
  class_impact_score: class_impact_score$1,
@@ -2227,8 +2268,7 @@ var lang_uk = {
2227
2268
  set_deadline: set_deadline$1,
2228
2269
  duplicate_survey: duplicate_survey$1,
2229
2270
  share_survey: share_survey$1,
2230
- new_survey: new_survey$1,
2231
- assign_counselor: assign_counselor$1
2271
+ new_survey: new_survey$1
2232
2272
  };
2233
2273
 
2234
2274
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -2460,18 +2500,6 @@ var QUESTION_TYPES_OPTIONS = [{
2460
2500
  }, {
2461
2501
  label: "Text input",
2462
2502
  value: "TextInput"
2463
- }, {
2464
- label: "Slider",
2465
- value: "Slider"
2466
- }, {
2467
- label: "Progress bar",
2468
- value: "ProgressBar"
2469
- }, {
2470
- label: "Star rating",
2471
- value: "StarRating"
2472
- }, {
2473
- label: "Text input with sub questions",
2474
- value: "TextInputWithSuggestions"
2475
2503
  }, {
2476
2504
  label: "Emotional",
2477
2505
  value: "Emotional"
@@ -2512,7 +2540,7 @@ var STAR_OPTIONS = [{
2512
2540
  value: 5
2513
2541
  }];
2514
2542
  var ANSWER_EDITOR_HEIGHT = 150;
2515
- var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
2543
+ var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
2516
2544
  var CHAT_CHANNEL = "chat-channel";
2517
2545
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
2518
2546
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
@@ -2528,8 +2556,7 @@ var ROLES = {
2528
2556
  ASSISTANT: "Assistant",
2529
2557
  EDUTEACHER: "General ED teacher",
2530
2558
  STUDENT: "Student",
2531
- PARENT: "Parent",
2532
- COUNSELOR: "Counselor"
2559
+ PARENT: "Parent"
2533
2560
  };
2534
2561
  var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
2535
2562
 
@@ -2784,7 +2811,7 @@ var useLogin = function useLogin() {
2784
2811
  history.push(HOMEPAGE_DISTRICT);
2785
2812
  } else if (roles.includes("Admin")) {
2786
2813
  history.push(HOMEPAGE_ADMIN);
2787
- } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
2814
+ } else if (roles.includes("Teacher") || roles.includes("Assistant")) {
2788
2815
  history.push(HOMEPAGE_TEACHER);
2789
2816
  } else if (roles.includes("Student")) {
2790
2817
  history.push(HOMEPAGE_STUDENT);
@@ -3874,7 +3901,7 @@ var TheSidebar = function TheSidebar(_ref) {
3874
3901
  className: "" + styles["sidebar-logout"]
3875
3902
  }), React__default.createElement("p", {
3876
3903
  onClick: signOut
3877
- }, "Log out")));
3904
+ }, "Log out 123")));
3878
3905
  };
3879
3906
 
3880
3907
  var setNotification = toolkit.createAction("notifications/setNotification");
@@ -7380,13 +7407,13 @@ var UserDetail = function UserDetail() {
7380
7407
  return;
7381
7408
  }
7382
7409
 
7383
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
7410
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
7384
7411
  setFieldValue("roles", [role]);
7385
7412
  return;
7386
7413
  }
7387
7414
 
7388
7415
  var teacherAssistantRoles = values.roles.filter(function (item) {
7389
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
7416
+ return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
7390
7417
  });
7391
7418
  setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7392
7419
  }, [values.roles]);
@@ -7835,8 +7862,17 @@ var SuggestionCategorySelector = function SuggestionCategorySelector(props) {
7835
7862
  };
7836
7863
 
7837
7864
  var CATEGORY_URL$1 = BASE_URL + "/api/QuestionCategory";
7838
- var get$7 = function get() {
7839
- return api.get(CATEGORY_URL$1);
7865
+ var get$7 = function get(parentCategoryId) {
7866
+ return api.get(CATEGORY_URL$1, {
7867
+ params: {
7868
+ parentCategoryId: parentCategoryId
7869
+ }
7870
+ });
7871
+ };
7872
+ var getByFilter = function getByFilter(filter) {
7873
+ return api.get(CATEGORY_URL$1, {
7874
+ params: filter
7875
+ });
7840
7876
  };
7841
7877
 
7842
7878
  var QuestionCategorySelector = function QuestionCategorySelector(props) {
@@ -7844,6 +7880,8 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7844
7880
  getCategoryList = _useState[0],
7845
7881
  setCategoryList = _useState[1];
7846
7882
 
7883
+ var id = props.id,
7884
+ parentCategoryId = props.parentCategoryId;
7847
7885
  React.useEffect(function () {
7848
7886
  fetchCategory();
7849
7887
  }, []);
@@ -7851,7 +7889,7 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7851
7889
  var fetchCategory = function fetchCategory() {
7852
7890
  try {
7853
7891
  var _temp2 = _catch(function () {
7854
- return Promise.resolve(get$7()).then(function (res) {
7892
+ return Promise.resolve(get$7(parentCategoryId)).then(function (res) {
7855
7893
  setCategoryList(res.data.items);
7856
7894
  });
7857
7895
  }, function (err) {
@@ -7864,7 +7902,6 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7864
7902
  }
7865
7903
  };
7866
7904
 
7867
- var id = props.id;
7868
7905
  var arrCategory = getCategoryList.map(function (i) {
7869
7906
  return {
7870
7907
  id: i.id,
@@ -7881,6 +7918,131 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7881
7918
  }, props));
7882
7919
  };
7883
7920
 
7921
+ var useCategorySelector = function useCategorySelector() {
7922
+ var _useState = React.useState([]),
7923
+ categories = _useState[0],
7924
+ setCategories = _useState[1];
7925
+
7926
+ var dispatch = reactRedux.useDispatch();
7927
+ var getData = React.useCallback(function () {
7928
+ try {
7929
+ var _temp3 = function _temp3() {
7930
+ dispatch(setLoading(false));
7931
+ };
7932
+
7933
+ dispatch(setLoading(true));
7934
+
7935
+ var _temp4 = _catch(function () {
7936
+ return Promise.resolve(getByFilter(_extends({}, DEFAULT_FILTER, {
7937
+ pageSize: -1
7938
+ }))).then(function (res) {
7939
+ var convertedCategories = convertOptions(res.data.items);
7940
+ setCategories(convertedCategories);
7941
+ });
7942
+ }, function (err) {
7943
+ var _err$response, _err$response$data;
7944
+
7945
+ dispatch(setAlert({
7946
+ type: "danger",
7947
+ message: ((_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : _err$response$data.title) || err.message
7948
+ }));
7949
+ });
7950
+
7951
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
7952
+ } catch (e) {
7953
+ return Promise.reject(e);
7954
+ }
7955
+ }, []);
7956
+
7957
+ var convertOptions = function convertOptions(categories, parent, children) {
7958
+ var result = [];
7959
+
7960
+ if (!parent) {
7961
+ var noParentCategories = categories.filter(function (c) {
7962
+ return !c.parentCategoryId;
7963
+ });
7964
+ noParentCategories.forEach(function (c) {
7965
+ var childrenOfCategory = categories.filter(function (cg) {
7966
+ return cg.parentCategoryId === c.id;
7967
+ });
7968
+
7969
+ var category = _extends({}, c, {
7970
+ label: c.name,
7971
+ value: c.id,
7972
+ level: 0,
7973
+ isDisabled: childrenOfCategory.length > 0
7974
+ });
7975
+
7976
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7977
+ });
7978
+ } else {
7979
+ result.push(parent);
7980
+ children === null || children === void 0 ? void 0 : children.forEach(function (c) {
7981
+ var childrenOfCategory = categories.filter(function (cg) {
7982
+ return cg.parentCategoryId === c.id;
7983
+ });
7984
+
7985
+ var category = _extends({}, c, {
7986
+ label: c.name,
7987
+ value: c.id,
7988
+ level: parent.level ? parent.level + 1 : 1,
7989
+ isDisabled: childrenOfCategory.length > 0
7990
+ });
7991
+
7992
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7993
+ });
7994
+ }
7995
+
7996
+ return result;
7997
+ };
7998
+
7999
+ React.useEffect(function () {
8000
+ getData();
8001
+ }, []);
8002
+ return {
8003
+ categories: categories
8004
+ };
8005
+ };
8006
+
8007
+ var optionStyles = {
8008
+ control: function control(styles) {
8009
+ return _extends({}, styles, {
8010
+ backgroundColor: 'white'
8011
+ });
8012
+ },
8013
+ option: function option(styles, _ref) {
8014
+ var data = _ref.data;
8015
+ return _extends({}, styles, {
8016
+ fontWeight: !(data !== null && data !== void 0 && data.level) ? "bold" : "normal",
8017
+ paddingLeft: ((data === null || data === void 0 ? void 0 : data.level) || 0) + 1 + "rem",
8018
+ paddingRight: "1rem",
8019
+ cursor: data.isDisabled ? 'not-allowed' : 'pointer',
8020
+ color: "var(--color)",
8021
+ "&:first-letter": {
8022
+ textTransform: "uppercase"
8023
+ }
8024
+ });
8025
+ }
8026
+ };
8027
+
8028
+ var CategorySelector = function CategorySelector(_ref2) {
8029
+ var value = _ref2.value,
8030
+ rest = _objectWithoutPropertiesLoose(_ref2, ["value"]);
8031
+
8032
+ var _useCategorySelector = useCategorySelector(),
8033
+ categories = _useCategorySelector.categories;
8034
+
8035
+ var initialValue = !!value ? categories.find(function (option) {
8036
+ return option.value === value;
8037
+ }) || null : null;
8038
+ return React__default.createElement(Select, Object.assign({
8039
+ value: initialValue,
8040
+ options: categories,
8041
+ styles: optionStyles,
8042
+ placeholder: "Select category..."
8043
+ }, rest));
8044
+ };
8045
+
7884
8046
  var StarRatingSelector = function StarRatingSelector(props) {
7885
8047
  var id = props.id;
7886
8048
  var initValue = !!id ? STAR_OPTIONS.find(function (option) {
@@ -8042,7 +8204,7 @@ var useNotificationList = function useNotificationList() {
8042
8204
  };
8043
8205
 
8044
8206
  var viewNotification = function viewNotification(notification) {
8045
- 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;
8207
+ var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
8046
8208
 
8047
8209
  var source = notification.source,
8048
8210
  extraData = notification.extraData;
@@ -8057,23 +8219,23 @@ var useNotificationList = function useNotificationList() {
8057
8219
  break;
8058
8220
 
8059
8221
  case "Class Reflection":
8060
- 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]));
8222
+ 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]));
8061
8223
  break;
8062
8224
 
8063
8225
  case "Class Reflection Completed":
8064
- 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]));
8226
+ window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
8065
8227
  break;
8066
8228
 
8067
8229
  case "External Reflection Completed":
8068
- 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");
8230
+ window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
8069
8231
  break;
8070
8232
 
8071
8233
  case "NewSessionCreated":
8072
- 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]));
8234
+ 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]));
8073
8235
  break;
8074
8236
 
8075
8237
  case "NewSessionComplete":
8076
- 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]));
8238
+ 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]));
8077
8239
  break;
8078
8240
 
8079
8241
  case "ActionPointReminder":
@@ -10526,6 +10688,7 @@ exports.AcademicClassSelector = AcademicClassSelector;
10526
10688
  exports.AddButton = AddButton;
10527
10689
  exports.BASE_URL = BASE_URL;
10528
10690
  exports.CHAT_CHANNEL = CHAT_CHANNEL;
10691
+ exports.CategorySelector = CategorySelector;
10529
10692
  exports.CommonAlert = CommonAlert;
10530
10693
  exports.CommonHeader = CommonHeader;
10531
10694
  exports.CommonModal = CommonModal$1;