mario-core 2.9.68-beta → 2.9.80-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,6 +588,7 @@ 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";
591
+ var assign_counselor = "Assign Counselor";
580
592
  var lang_us = {
581
593
  dashboard: dashboard,
582
594
  user: user,
@@ -594,6 +606,7 @@ var lang_us = {
594
606
  readiness_to_learn: readiness_to_learn,
595
607
  high_impact_learning_strategies: high_impact_learning_strategies,
596
608
  "1_to_1": "1 To 1",
609
+ check_in: check_in,
597
610
  reflection: reflection,
598
611
  conferences: conferences,
599
612
  safety: safety,
@@ -616,6 +629,7 @@ var lang_us = {
616
629
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart,
617
630
  tooltip_content_students_by_designation: tooltip_content_students_by_designation,
618
631
  total_1_to_1: total_1_to_1,
632
+ total_check_in: total_check_in,
619
633
  total_1_to_1_time: total_1_to_1_time,
620
634
  total_conferences: total_conferences,
621
635
  total_conferences_time: total_conferences_time,
@@ -647,11 +661,13 @@ var lang_us = {
647
661
  confirm_password: confirm_password,
648
662
  save: save,
649
663
  type_something_to_search_question: type_something_to_search_question,
664
+ type_something_to_search_category: type_something_to_search_category,
650
665
  total_of_questions: total_of_questions,
651
666
  create_question: create_question,
652
667
  edit_question: edit_question,
653
668
  question_type: question_type,
654
669
  category: category,
670
+ sub_category: sub_category,
655
671
  "Question text": "Question text",
656
672
  is_default_question_for_one_to_one: is_default_question_for_one_to_one,
657
673
  default_question_for_students_or_teachers: default_question_for_students_or_teachers,
@@ -763,6 +779,7 @@ var lang_us = {
763
779
  confirm: confirm,
764
780
  hello: hello,
765
781
  todays_1_1: todays_1_1,
782
+ todays_check_in: todays_check_in,
766
783
  todays_Conferences: todays_Conferences,
767
784
  next_meeting: next_meeting,
768
785
  next_conference: next_conference,
@@ -793,6 +810,7 @@ var lang_us = {
793
810
  add_new: add_new,
794
811
  show_only_work_as_assistant: show_only_work_as_assistant,
795
812
  last_1_to_1: last_1_to_1,
813
+ last_check_in: last_check_in,
796
814
  last_conference: last_conference,
797
815
  total_time: total_time,
798
816
  assistant_name: assistant_name,
@@ -809,6 +827,7 @@ var lang_us = {
809
827
  pick_a_date: pick_a_date,
810
828
  apply: apply,
811
829
  new_1_to_1: new_1_to_1,
830
+ new_check_in: new_check_in,
812
831
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher,
813
832
  start_now: start_now,
814
833
  book_for_later: book_for_later,
@@ -819,6 +838,7 @@ var lang_us = {
819
838
  select_student: select_student,
820
839
  select_date_time: select_date_time,
821
840
  book_1_to_1: book_1_to_1,
841
+ book_new_check_in: book_new_check_in,
822
842
  schedule: schedule,
823
843
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots,
824
844
  does_not_reoccur: does_not_reoccur,
@@ -826,6 +846,7 @@ var lang_us = {
826
846
  from: from,
827
847
  to: to,
828
848
  show_only_favorites: show_only_favorites,
849
+ show_only_conversation: show_only_conversation,
829
850
  duration: duration,
830
851
  favorite: favorite,
831
852
  open: open,
@@ -833,6 +854,7 @@ var lang_us = {
833
854
  schedule_detail: schedule_detail,
834
855
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule,
835
856
  completed_1_to_1: completed_1_to_1,
857
+ completed_check_in: completed_check_in,
836
858
  done: done,
837
859
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about,
838
860
  session_type: session_type,
@@ -954,6 +976,7 @@ var lang_us = {
954
976
  overview: overview,
955
977
  plp: plp,
956
978
  my_student_1_to_1: my_student_1_to_1,
979
+ my_student_check_in: my_student_check_in,
957
980
  my_student_conference: my_student_conference,
958
981
  received_date: received_date,
959
982
  class_impact_score: class_impact_score,
@@ -1127,7 +1150,8 @@ var lang_us = {
1127
1150
  set_deadline: set_deadline,
1128
1151
  duplicate_survey: duplicate_survey,
1129
1152
  share_survey: share_survey,
1130
- new_survey: new_survey
1153
+ new_survey: new_survey,
1154
+ assign_counselor: assign_counselor
1131
1155
  };
1132
1156
 
1133
1157
  var dashboard$1 = "Dashboard";
@@ -1145,6 +1169,7 @@ var cancel$1 = "Cancel";
1145
1169
  var hey$1 = "Hey";
1146
1170
  var readiness_to_learn$1 = "Readiness to Learn";
1147
1171
  var high_impact_learning_strategies$1 = "High Impact Learning Strategies";
1172
+ var check_in$1 = "Check In";
1148
1173
  var reflection$1 = "Reflection";
1149
1174
  var conferences$1 = "Conferences";
1150
1175
  var safety$1 = "Safety";
@@ -1167,6 +1192,7 @@ var tooltip_content_safety_chart$1 = "The visual represenation of all the respon
1167
1192
  var tooltip_content_student_by_age_chart$1 = "The specific representation of students by gender and grade level at your school.";
1168
1193
  var tooltip_content_students_by_designation$1 = "The composite representation of students by individual grades in your school with specific designations.";
1169
1194
  var total_1_to_1$1 = "Total 1-to-1";
1195
+ var total_check_in$1 = "Total Check In";
1170
1196
  var total_1_to_1_time$1 = "Total 1-to-1 Time";
1171
1197
  var total_conferences$1 = "Total Conferences";
1172
1198
  var total_conferences_time$1 = "Total Conferences Time";
@@ -1197,12 +1223,14 @@ var current_password$1 = "Current password";
1197
1223
  var new_password$1 = "New password";
1198
1224
  var confirm_password$1 = "Confirm password";
1199
1225
  var save$1 = "Save";
1200
- var type_something_to_search_question$1 = "Type something to Search question";
1226
+ var type_something_to_search_question$1 = "Type something to search question";
1227
+ var type_something_to_search_category$1 = "Type something to search category";
1201
1228
  var total_of_questions$1 = "Total of questions";
1202
1229
  var create_question$1 = "Create question";
1203
1230
  var edit_question$1 = "Edit question";
1204
1231
  var question_type$1 = "Question Type";
1205
1232
  var category$1 = "Category";
1233
+ var sub_category$1 = "Sub Category";
1206
1234
  var question_text = "Question text";
1207
1235
  var is_default_question_for_one_to_one$1 = "Is default question for one-to-one";
1208
1236
  var default_question_for_students_or_teachers$1 = "Default question for students or teachers";
@@ -1314,6 +1342,7 @@ var edit_destination$1 = "Edit Destination";
1314
1342
  var confirm$1 = "Confirm";
1315
1343
  var hello$1 = "Hello";
1316
1344
  var todays_1_1$1 = "Today’s 1-1";
1345
+ var todays_check_in$1 = "Today’s Check In";
1317
1346
  var todays_Conferences$1 = "Today’s Conferences";
1318
1347
  var next_meeting$1 = "Next Meeting";
1319
1348
  var next_conference$1 = "Next Conference";
@@ -1342,6 +1371,7 @@ var import_csv$1 = "Import CSV";
1342
1371
  var add_new$1 = "Add New";
1343
1372
  var show_only_work_as_assistant$1 = "Show only work as assistant";
1344
1373
  var last_1_to_1$1 = "Last 1-TO-1";
1374
+ var last_check_in$1 = "Last Check In";
1345
1375
  var last_conference$1 = "Last conference";
1346
1376
  var total_time$1 = "Total time";
1347
1377
  var assistant_name$1 = "Assistant Name";
@@ -1358,6 +1388,7 @@ var after$1 = "After";
1358
1388
  var pick_a_date$1 = "Pick a date";
1359
1389
  var apply$1 = "Apply";
1360
1390
  var new_1_to_1$1 = "New 1-to-1";
1391
+ var new_check_in$1 = "New Check In";
1361
1392
  var do_you_want_to_talk_with_teacher$1 = "Do you want to talk with teacher";
1362
1393
  var start_now$1 = "Start now";
1363
1394
  var book_for_later$1 = "Book for later";
@@ -1368,6 +1399,7 @@ var select_question$1 = "Select question";
1368
1399
  var select_student$1 = "Select student";
1369
1400
  var select_date_time$1 = "Select Date & Time";
1370
1401
  var book_1_to_1$1 = "Book 1-to-1";
1402
+ var book_new_check_in$1 = "Book new Check In";
1371
1403
  var schedule$1 = "Schedule";
1372
1404
  var sessions_are_booked_as_10_minute_slots$1 = "Sessions are booked as 10 minute slots";
1373
1405
  var does_not_reoccur$1 = "Does not reoccur";
@@ -1375,13 +1407,15 @@ var time_must_be_between_8_am_and_6_pm$1 = "Time must be between 8 AM and 6 PM";
1375
1407
  var from$1 = "From";
1376
1408
  var to$1 = "To";
1377
1409
  var show_only_favorites$1 = "Show only favorites";
1410
+ var show_only_conversation$1 = "Show 1-1 conversation only";
1378
1411
  var duration$1 = "Duration";
1379
1412
  var favorite$1 = "Favorite";
1380
1413
  var open$1 = "Open";
1381
1414
  var no_data$1 = "No Data";
1382
1415
  var schedule_detail$1 = "Schedule Detail";
1383
1416
  var are_you_sure_you_want_to_cancel_this_schedule$1 = "Are you sure you want to Cancel this schedule?";
1384
- var completed_1_to_1$1 = "Completed 1-to-1";
1417
+ var completed_1_to_1$1 = "Completed 1-1 Conversation";
1418
+ var completed_check_in$1 = "Completed Check In";
1385
1419
  var done$1 = "Done";
1386
1420
  var what_do_you_want_to_talk_about$1 = "What do you want to talk about?";
1387
1421
  var session_type$1 = "Session Type";
@@ -1502,6 +1536,7 @@ var student_request$1 = "Student Request";
1502
1536
  var overview$1 = "Overview";
1503
1537
  var plp$1 = "PLP";
1504
1538
  var my_student_1_to_1$1 = "My Student 1-to-1";
1539
+ var my_student_check_in$1 = "My Student Check In";
1505
1540
  var my_student_conference$1 = "My Student Conference";
1506
1541
  var received_date$1 = "Received Date";
1507
1542
  var class_impact_score$1 = "Class Impact Score";
@@ -1674,6 +1709,7 @@ var set_deadline$1 = "Set deadline";
1674
1709
  var duplicate_survey$1 = "Duplicate Survey";
1675
1710
  var share_survey$1 = "Share Survey";
1676
1711
  var new_survey$1 = "New Survey";
1712
+ var assign_counselor$1 = "Assign Counselor";
1677
1713
  var lang_uk = {
1678
1714
  dashboard: dashboard$1,
1679
1715
  user: user$1,
@@ -1691,6 +1727,7 @@ var lang_uk = {
1691
1727
  readiness_to_learn: readiness_to_learn$1,
1692
1728
  high_impact_learning_strategies: high_impact_learning_strategies$1,
1693
1729
  "1_to_1": "1 to 1",
1730
+ check_in: check_in$1,
1694
1731
  reflection: reflection$1,
1695
1732
  conferences: conferences$1,
1696
1733
  safety: safety$1,
@@ -1713,6 +1750,7 @@ var lang_uk = {
1713
1750
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart$1,
1714
1751
  tooltip_content_students_by_designation: tooltip_content_students_by_designation$1,
1715
1752
  total_1_to_1: total_1_to_1$1,
1753
+ total_check_in: total_check_in$1,
1716
1754
  total_1_to_1_time: total_1_to_1_time$1,
1717
1755
  total_conferences: total_conferences$1,
1718
1756
  total_conferences_time: total_conferences_time$1,
@@ -1744,11 +1782,13 @@ var lang_uk = {
1744
1782
  confirm_password: confirm_password$1,
1745
1783
  save: save$1,
1746
1784
  type_something_to_search_question: type_something_to_search_question$1,
1785
+ type_something_to_search_category: type_something_to_search_category$1,
1747
1786
  total_of_questions: total_of_questions$1,
1748
1787
  create_question: create_question$1,
1749
1788
  edit_question: edit_question$1,
1750
1789
  question_type: question_type$1,
1751
1790
  category: category$1,
1791
+ sub_category: sub_category$1,
1752
1792
  question_text: question_text,
1753
1793
  is_default_question_for_one_to_one: is_default_question_for_one_to_one$1,
1754
1794
  default_question_for_students_or_teachers: default_question_for_students_or_teachers$1,
@@ -1860,6 +1900,7 @@ var lang_uk = {
1860
1900
  confirm: confirm$1,
1861
1901
  hello: hello$1,
1862
1902
  todays_1_1: todays_1_1$1,
1903
+ todays_check_in: todays_check_in$1,
1863
1904
  todays_Conferences: todays_Conferences$1,
1864
1905
  next_meeting: next_meeting$1,
1865
1906
  next_conference: next_conference$1,
@@ -1890,6 +1931,7 @@ var lang_uk = {
1890
1931
  add_new: add_new$1,
1891
1932
  show_only_work_as_assistant: show_only_work_as_assistant$1,
1892
1933
  last_1_to_1: last_1_to_1$1,
1934
+ last_check_in: last_check_in$1,
1893
1935
  last_conference: last_conference$1,
1894
1936
  total_time: total_time$1,
1895
1937
  assistant_name: assistant_name$1,
@@ -1906,6 +1948,7 @@ var lang_uk = {
1906
1948
  pick_a_date: pick_a_date$1,
1907
1949
  apply: apply$1,
1908
1950
  new_1_to_1: new_1_to_1$1,
1951
+ new_check_in: new_check_in$1,
1909
1952
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher$1,
1910
1953
  start_now: start_now$1,
1911
1954
  book_for_later: book_for_later$1,
@@ -1916,6 +1959,7 @@ var lang_uk = {
1916
1959
  select_student: select_student$1,
1917
1960
  select_date_time: select_date_time$1,
1918
1961
  book_1_to_1: book_1_to_1$1,
1962
+ book_new_check_in: book_new_check_in$1,
1919
1963
  schedule: schedule$1,
1920
1964
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots$1,
1921
1965
  does_not_reoccur: does_not_reoccur$1,
@@ -1923,6 +1967,7 @@ var lang_uk = {
1923
1967
  from: from$1,
1924
1968
  to: to$1,
1925
1969
  show_only_favorites: show_only_favorites$1,
1970
+ show_only_conversation: show_only_conversation$1,
1926
1971
  duration: duration$1,
1927
1972
  favorite: favorite$1,
1928
1973
  open: open$1,
@@ -1930,6 +1975,7 @@ var lang_uk = {
1930
1975
  schedule_detail: schedule_detail$1,
1931
1976
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule$1,
1932
1977
  completed_1_to_1: completed_1_to_1$1,
1978
+ completed_check_in: completed_check_in$1,
1933
1979
  done: done$1,
1934
1980
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about$1,
1935
1981
  session_type: session_type$1,
@@ -2051,6 +2097,7 @@ var lang_uk = {
2051
2097
  overview: overview$1,
2052
2098
  plp: plp$1,
2053
2099
  my_student_1_to_1: my_student_1_to_1$1,
2100
+ my_student_check_in: my_student_check_in$1,
2054
2101
  my_student_conference: my_student_conference$1,
2055
2102
  received_date: received_date$1,
2056
2103
  class_impact_score: class_impact_score$1,
@@ -2224,7 +2271,8 @@ var lang_uk = {
2224
2271
  set_deadline: set_deadline$1,
2225
2272
  duplicate_survey: duplicate_survey$1,
2226
2273
  share_survey: share_survey$1,
2227
- new_survey: new_survey$1
2274
+ new_survey: new_survey$1,
2275
+ assign_counselor: assign_counselor$1
2228
2276
  };
2229
2277
 
2230
2278
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -2458,18 +2506,6 @@ var QUESTION_TYPES_OPTIONS = [{
2458
2506
  }, {
2459
2507
  label: "Text input",
2460
2508
  value: "TextInput"
2461
- }, {
2462
- label: "Slider",
2463
- value: "Slider"
2464
- }, {
2465
- label: "Progress bar",
2466
- value: "ProgressBar"
2467
- }, {
2468
- label: "Star rating",
2469
- value: "StarRating"
2470
- }, {
2471
- label: "Text input with sub questions",
2472
- value: "TextInputWithSuggestions"
2473
2509
  }, {
2474
2510
  label: "Emotional",
2475
2511
  value: "Emotional"
@@ -2510,7 +2546,7 @@ var STAR_OPTIONS = [{
2510
2546
  value: 5
2511
2547
  }];
2512
2548
  var ANSWER_EDITOR_HEIGHT = 150;
2513
- var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
2549
+ var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
2514
2550
  var CHAT_CHANNEL = "chat-channel";
2515
2551
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
2516
2552
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
@@ -2526,7 +2562,8 @@ var ROLES = {
2526
2562
  ASSISTANT: "Assistant",
2527
2563
  EDUTEACHER: "General ED teacher",
2528
2564
  STUDENT: "Student",
2529
- PARENT: "Parent"
2565
+ PARENT: "Parent",
2566
+ COUNSELOR: "Counselor"
2530
2567
  };
2531
2568
  var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
2532
2569
 
@@ -2781,7 +2818,7 @@ var useLogin = function useLogin() {
2781
2818
  history.push(HOMEPAGE_DISTRICT);
2782
2819
  } else if (roles.includes("Admin")) {
2783
2820
  history.push(HOMEPAGE_ADMIN);
2784
- } else if (roles.includes("Teacher") || roles.includes("Assistant")) {
2821
+ } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
2785
2822
  history.push(HOMEPAGE_TEACHER);
2786
2823
  } else if (roles.includes("Student")) {
2787
2824
  history.push(HOMEPAGE_STUDENT);
@@ -3871,7 +3908,7 @@ var TheSidebar = function TheSidebar(_ref) {
3871
3908
  className: "" + styles["sidebar-logout"]
3872
3909
  }), React__default.createElement("p", {
3873
3910
  onClick: signOut
3874
- }, "Log out")));
3911
+ }, "Log out 123")));
3875
3912
  };
3876
3913
 
3877
3914
  var setNotification = toolkit.createAction("notifications/setNotification");
@@ -7065,13 +7102,13 @@ var UserDetail = function UserDetail() {
7065
7102
  return;
7066
7103
  }
7067
7104
 
7068
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
7105
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
7069
7106
  setFieldValue("roles", [role]);
7070
7107
  return;
7071
7108
  }
7072
7109
 
7073
7110
  var teacherAssistantRoles = values.roles.filter(function (item) {
7074
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
7111
+ return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
7075
7112
  });
7076
7113
  setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7077
7114
  }, [values.roles]);
@@ -7556,8 +7593,17 @@ var SuggestionCategorySelector = function SuggestionCategorySelector(props) {
7556
7593
  };
7557
7594
 
7558
7595
  var CATEGORY_URL$1 = BASE_URL + "/api/QuestionCategory";
7559
- var get$7 = function get() {
7560
- return api.get(CATEGORY_URL$1);
7596
+ var get$7 = function get(parentCategoryId) {
7597
+ return api.get(CATEGORY_URL$1, {
7598
+ params: {
7599
+ parentCategoryId: parentCategoryId
7600
+ }
7601
+ });
7602
+ };
7603
+ var getByFilter = function getByFilter(filter) {
7604
+ return api.get(CATEGORY_URL$1, {
7605
+ params: filter
7606
+ });
7561
7607
  };
7562
7608
 
7563
7609
  var QuestionCategorySelector = function QuestionCategorySelector(props) {
@@ -7565,6 +7611,8 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7565
7611
  getCategoryList = _useState[0],
7566
7612
  setCategoryList = _useState[1];
7567
7613
 
7614
+ var id = props.id,
7615
+ parentCategoryId = props.parentCategoryId;
7568
7616
  React.useEffect(function () {
7569
7617
  fetchCategory();
7570
7618
  }, []);
@@ -7572,7 +7620,7 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7572
7620
  var fetchCategory = function fetchCategory() {
7573
7621
  try {
7574
7622
  var _temp2 = _catch(function () {
7575
- return Promise.resolve(get$7()).then(function (res) {
7623
+ return Promise.resolve(get$7(parentCategoryId)).then(function (res) {
7576
7624
  setCategoryList(res.data.items);
7577
7625
  });
7578
7626
  }, function (err) {
@@ -7585,7 +7633,6 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7585
7633
  }
7586
7634
  };
7587
7635
 
7588
- var id = props.id;
7589
7636
  var arrCategory = getCategoryList.map(function (i) {
7590
7637
  return {
7591
7638
  id: i.id,
@@ -7602,6 +7649,131 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7602
7649
  }, props));
7603
7650
  };
7604
7651
 
7652
+ var useCategorySelector = function useCategorySelector() {
7653
+ var _useState = React.useState([]),
7654
+ categories = _useState[0],
7655
+ setCategories = _useState[1];
7656
+
7657
+ var dispatch = reactRedux.useDispatch();
7658
+ var getData = React.useCallback(function () {
7659
+ try {
7660
+ var _temp3 = function _temp3() {
7661
+ dispatch(setLoading(false));
7662
+ };
7663
+
7664
+ dispatch(setLoading(true));
7665
+
7666
+ var _temp4 = _catch(function () {
7667
+ return Promise.resolve(getByFilter(_extends({}, DEFAULT_FILTER, {
7668
+ pageSize: -1
7669
+ }))).then(function (res) {
7670
+ var convertedCategories = convertOptions(res.data.items);
7671
+ setCategories(convertedCategories);
7672
+ });
7673
+ }, function (err) {
7674
+ var _err$response, _err$response$data;
7675
+
7676
+ dispatch(setAlert({
7677
+ type: "danger",
7678
+ 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
7679
+ }));
7680
+ });
7681
+
7682
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
7683
+ } catch (e) {
7684
+ return Promise.reject(e);
7685
+ }
7686
+ }, []);
7687
+
7688
+ var convertOptions = function convertOptions(categories, parent, children) {
7689
+ var result = [];
7690
+
7691
+ if (!parent) {
7692
+ var noParentCategories = categories.filter(function (c) {
7693
+ return !c.parentCategoryId;
7694
+ });
7695
+ noParentCategories.forEach(function (c) {
7696
+ var childrenOfCategory = categories.filter(function (cg) {
7697
+ return cg.parentCategoryId === c.id;
7698
+ });
7699
+
7700
+ var category = _extends({}, c, {
7701
+ label: c.name,
7702
+ value: c.id,
7703
+ level: 0,
7704
+ isDisabled: childrenOfCategory.length > 0
7705
+ });
7706
+
7707
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7708
+ });
7709
+ } else {
7710
+ result.push(parent);
7711
+ children === null || children === void 0 ? void 0 : children.forEach(function (c) {
7712
+ var childrenOfCategory = categories.filter(function (cg) {
7713
+ return cg.parentCategoryId === c.id;
7714
+ });
7715
+
7716
+ var category = _extends({}, c, {
7717
+ label: c.name,
7718
+ value: c.id,
7719
+ level: parent.level ? parent.level + 1 : 1,
7720
+ isDisabled: childrenOfCategory.length > 0
7721
+ });
7722
+
7723
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7724
+ });
7725
+ }
7726
+
7727
+ return result;
7728
+ };
7729
+
7730
+ React.useEffect(function () {
7731
+ getData();
7732
+ }, []);
7733
+ return {
7734
+ categories: categories
7735
+ };
7736
+ };
7737
+
7738
+ var optionStyles = {
7739
+ control: function control(styles) {
7740
+ return _extends({}, styles, {
7741
+ backgroundColor: 'white'
7742
+ });
7743
+ },
7744
+ option: function option(styles, _ref) {
7745
+ var data = _ref.data;
7746
+ return _extends({}, styles, {
7747
+ fontWeight: !(data !== null && data !== void 0 && data.level) ? "bold" : "normal",
7748
+ paddingLeft: ((data === null || data === void 0 ? void 0 : data.level) || 0) + 1 + "rem",
7749
+ paddingRight: "1rem",
7750
+ cursor: data.isDisabled ? 'not-allowed' : 'pointer',
7751
+ color: "var(--color)",
7752
+ "&:first-letter": {
7753
+ textTransform: "uppercase"
7754
+ }
7755
+ });
7756
+ }
7757
+ };
7758
+
7759
+ var CategorySelector = function CategorySelector(_ref2) {
7760
+ var value = _ref2.value,
7761
+ rest = _objectWithoutPropertiesLoose(_ref2, ["value"]);
7762
+
7763
+ var _useCategorySelector = useCategorySelector(),
7764
+ categories = _useCategorySelector.categories;
7765
+
7766
+ var initialValue = !!value ? categories.find(function (option) {
7767
+ return option.value === value;
7768
+ }) || null : null;
7769
+ return React__default.createElement(Select, Object.assign({
7770
+ value: initialValue,
7771
+ options: categories,
7772
+ styles: optionStyles,
7773
+ placeholder: "Select category..."
7774
+ }, rest));
7775
+ };
7776
+
7605
7777
  var StarRatingSelector = function StarRatingSelector(props) {
7606
7778
  var id = props.id;
7607
7779
  var initValue = !!id ? STAR_OPTIONS.find(function (option) {
@@ -7773,7 +7945,7 @@ var useNotificationList = function useNotificationList() {
7773
7945
  };
7774
7946
 
7775
7947
  var viewNotification = function viewNotification(notification) {
7776
- var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
7948
+ 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;
7777
7949
 
7778
7950
  var source = notification.source,
7779
7951
  extraData = notification.extraData;
@@ -7788,23 +7960,23 @@ var useNotificationList = function useNotificationList() {
7788
7960
  break;
7789
7961
 
7790
7962
  case "Class Reflection":
7791
- 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]));
7963
+ 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]));
7792
7964
  break;
7793
7965
 
7794
7966
  case "Class Reflection Completed":
7795
- window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
7967
+ 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]));
7796
7968
  break;
7797
7969
 
7798
7970
  case "External Reflection Completed":
7799
- window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
7971
+ 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");
7800
7972
  break;
7801
7973
 
7802
7974
  case "NewSessionCreated":
7803
- 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]));
7975
+ 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]));
7804
7976
  break;
7805
7977
 
7806
7978
  case "NewSessionComplete":
7807
- 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]));
7979
+ 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]));
7808
7980
  break;
7809
7981
 
7810
7982
  case "ActionPointReminder":
@@ -10639,6 +10811,7 @@ exports.AcademicClassSelector = AcademicClassSelector;
10639
10811
  exports.AddButton = AddButton;
10640
10812
  exports.BASE_URL = BASE_URL;
10641
10813
  exports.CHAT_CHANNEL = CHAT_CHANNEL;
10814
+ exports.CategorySelector = CategorySelector;
10642
10815
  exports.CommonAlert = CommonAlert;
10643
10816
  exports.CommonHeader = CommonHeader;
10644
10817
  exports.CommonModal = CommonModal$1;