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.
@@ -48,6 +48,7 @@ var cancel = "Cancel";
48
48
  var hey = "Hey";
49
49
  var readiness_to_learn = "Readiness to Learn";
50
50
  var high_impact_learning_strategies = "High Impact Learning Strategies";
51
+ var check_in = "Check In";
51
52
  var reflection = "Reflection";
52
53
  var conferences = "Conferences";
53
54
  var safety = "Safety";
@@ -70,6 +71,7 @@ var tooltip_content_safety_chart = "The visual represenation of all the response
70
71
  var tooltip_content_student_by_age_chart = "The specific representation of students by gender and grade level at your school.";
71
72
  var tooltip_content_students_by_designation = "The composite representation of students by individual grades in your school with specific designations.";
72
73
  var total_1_to_1 = "Total 1-to-1";
74
+ var total_check_in = "Total Check In";
73
75
  var total_1_to_1_time = "Total 1-to-1 Time";
74
76
  var total_conferences = "Total Conferences";
75
77
  var total_conferences_time = "Total Conferences Time";
@@ -99,12 +101,14 @@ var current_password = "Current password";
99
101
  var new_password = "New password";
100
102
  var confirm_password = "Confirm password";
101
103
  var save = "Save";
102
- var type_something_to_search_question = "Type something to Search question";
104
+ var type_something_to_search_question = "Type something to search question";
105
+ var type_something_to_search_category = "Type something to search category";
103
106
  var total_of_questions = "Total of questions";
104
107
  var create_question = "Create question";
105
108
  var edit_question = "Edit question";
106
109
  var question_type = "Question Type";
107
110
  var category = "Category";
111
+ var sub_category = "Sub Category";
108
112
  var is_default_question_for_one_to_one = "Is default question for one-to-one";
109
113
  var default_question_for_students_or_teachers = "Default question for students or teachers";
110
114
  var is_default_question_general_class = "Is default question general class";
@@ -215,6 +219,7 @@ var edit_destination = "Edit Destination";
215
219
  var confirm = "Confirm";
216
220
  var hello = "Hello";
217
221
  var todays_1_1 = "Today’s 1-1";
222
+ var todays_check_in = "Today’s Check In";
218
223
  var todays_Conferences = "Today’s Conferences";
219
224
  var next_meeting = "Next Meeting";
220
225
  var next_conference = "Next Conference";
@@ -243,6 +248,7 @@ var import_csv = "Import CSV";
243
248
  var add_new = "Add New";
244
249
  var show_only_work_as_assistant = "Show only work as assistant";
245
250
  var last_1_to_1 = "Last 1-TO-1";
251
+ var last_check_in = "Last Check In";
246
252
  var last_conference = "Last conference";
247
253
  var total_time = "Total time";
248
254
  var assistant_name = "Assistant Name";
@@ -259,6 +265,7 @@ var after = "After";
259
265
  var pick_a_date = "Pick a date";
260
266
  var apply = "Apply";
261
267
  var new_1_to_1 = "New 1-to-1";
268
+ var new_check_in = "New Check In";
262
269
  var do_you_want_to_talk_with_teacher = "Do you want to talk with teacher";
263
270
  var start_now = "Start now";
264
271
  var book_for_later = "Book for later";
@@ -269,6 +276,7 @@ var select_question = "Select question";
269
276
  var select_student = "Select student";
270
277
  var select_date_time = "Select Date & Time";
271
278
  var book_1_to_1 = "Book 1-to-1";
279
+ var book_new_check_in = "Book new Check In";
272
280
  var schedule = "Schedule";
273
281
  var sessions_are_booked_as_10_minute_slots = "Sessions are booked as 10 minute slots";
274
282
  var does_not_reoccur = "Does not reoccur";
@@ -276,13 +284,15 @@ var time_must_be_between_8_am_and_6_pm = "Time must be between 8 AM and 6 PM";
276
284
  var from = "From";
277
285
  var to = "To";
278
286
  var show_only_favorites = "Show only favorites";
287
+ var show_only_conversation = "Show 1-1 conversation only";
279
288
  var duration = "Duration";
280
289
  var favorite = "Favorite";
281
290
  var open = "Open";
282
291
  var no_data = "No Data";
283
292
  var schedule_detail = "Schedule Detail";
284
293
  var are_you_sure_you_want_to_cancel_this_schedule = "Are you sure you want to Cancel this schedule?";
285
- var completed_1_to_1 = "Completed 1-to-1";
294
+ var completed_1_to_1 = "Completed 1-1 Conversation";
295
+ var completed_check_in = "Completed Check In";
286
296
  var done = "Done";
287
297
  var what_do_you_want_to_talk_about = "What do you want to talk about?";
288
298
  var session_type = "Session Type";
@@ -403,6 +413,7 @@ var student_request = "Student Request";
403
413
  var overview = "Overview";
404
414
  var plp = "PLP";
405
415
  var my_student_1_to_1 = "My Student 1-to-1";
416
+ var my_student_check_in = "My Student Check In";
406
417
  var my_student_conference = "My Student Conference";
407
418
  var received_date = "Received Date";
408
419
  var class_impact_score = "Class Impact Score";
@@ -575,6 +586,7 @@ var set_deadline = "Set deadline";
575
586
  var duplicate_survey = "Duplicate Survey";
576
587
  var share_survey = "Share Survey";
577
588
  var new_survey = "New Survey";
589
+ var assign_counselor = "Assign Counselor";
578
590
  var lang_us = {
579
591
  dashboard: dashboard,
580
592
  user: user,
@@ -592,6 +604,7 @@ var lang_us = {
592
604
  readiness_to_learn: readiness_to_learn,
593
605
  high_impact_learning_strategies: high_impact_learning_strategies,
594
606
  "1_to_1": "1 To 1",
607
+ check_in: check_in,
595
608
  reflection: reflection,
596
609
  conferences: conferences,
597
610
  safety: safety,
@@ -614,6 +627,7 @@ var lang_us = {
614
627
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart,
615
628
  tooltip_content_students_by_designation: tooltip_content_students_by_designation,
616
629
  total_1_to_1: total_1_to_1,
630
+ total_check_in: total_check_in,
617
631
  total_1_to_1_time: total_1_to_1_time,
618
632
  total_conferences: total_conferences,
619
633
  total_conferences_time: total_conferences_time,
@@ -645,11 +659,13 @@ var lang_us = {
645
659
  confirm_password: confirm_password,
646
660
  save: save,
647
661
  type_something_to_search_question: type_something_to_search_question,
662
+ type_something_to_search_category: type_something_to_search_category,
648
663
  total_of_questions: total_of_questions,
649
664
  create_question: create_question,
650
665
  edit_question: edit_question,
651
666
  question_type: question_type,
652
667
  category: category,
668
+ sub_category: sub_category,
653
669
  "Question text": "Question text",
654
670
  is_default_question_for_one_to_one: is_default_question_for_one_to_one,
655
671
  default_question_for_students_or_teachers: default_question_for_students_or_teachers,
@@ -761,6 +777,7 @@ var lang_us = {
761
777
  confirm: confirm,
762
778
  hello: hello,
763
779
  todays_1_1: todays_1_1,
780
+ todays_check_in: todays_check_in,
764
781
  todays_Conferences: todays_Conferences,
765
782
  next_meeting: next_meeting,
766
783
  next_conference: next_conference,
@@ -791,6 +808,7 @@ var lang_us = {
791
808
  add_new: add_new,
792
809
  show_only_work_as_assistant: show_only_work_as_assistant,
793
810
  last_1_to_1: last_1_to_1,
811
+ last_check_in: last_check_in,
794
812
  last_conference: last_conference,
795
813
  total_time: total_time,
796
814
  assistant_name: assistant_name,
@@ -807,6 +825,7 @@ var lang_us = {
807
825
  pick_a_date: pick_a_date,
808
826
  apply: apply,
809
827
  new_1_to_1: new_1_to_1,
828
+ new_check_in: new_check_in,
810
829
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher,
811
830
  start_now: start_now,
812
831
  book_for_later: book_for_later,
@@ -817,6 +836,7 @@ var lang_us = {
817
836
  select_student: select_student,
818
837
  select_date_time: select_date_time,
819
838
  book_1_to_1: book_1_to_1,
839
+ book_new_check_in: book_new_check_in,
820
840
  schedule: schedule,
821
841
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots,
822
842
  does_not_reoccur: does_not_reoccur,
@@ -824,6 +844,7 @@ var lang_us = {
824
844
  from: from,
825
845
  to: to,
826
846
  show_only_favorites: show_only_favorites,
847
+ show_only_conversation: show_only_conversation,
827
848
  duration: duration,
828
849
  favorite: favorite,
829
850
  open: open,
@@ -831,6 +852,7 @@ var lang_us = {
831
852
  schedule_detail: schedule_detail,
832
853
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule,
833
854
  completed_1_to_1: completed_1_to_1,
855
+ completed_check_in: completed_check_in,
834
856
  done: done,
835
857
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about,
836
858
  session_type: session_type,
@@ -952,6 +974,7 @@ var lang_us = {
952
974
  overview: overview,
953
975
  plp: plp,
954
976
  my_student_1_to_1: my_student_1_to_1,
977
+ my_student_check_in: my_student_check_in,
955
978
  my_student_conference: my_student_conference,
956
979
  received_date: received_date,
957
980
  class_impact_score: class_impact_score,
@@ -1125,7 +1148,8 @@ var lang_us = {
1125
1148
  set_deadline: set_deadline,
1126
1149
  duplicate_survey: duplicate_survey,
1127
1150
  share_survey: share_survey,
1128
- new_survey: new_survey
1151
+ new_survey: new_survey,
1152
+ assign_counselor: assign_counselor
1129
1153
  };
1130
1154
 
1131
1155
  var dashboard$1 = "Dashboard";
@@ -1143,6 +1167,7 @@ var cancel$1 = "Cancel";
1143
1167
  var hey$1 = "Hey";
1144
1168
  var readiness_to_learn$1 = "Readiness to Learn";
1145
1169
  var high_impact_learning_strategies$1 = "High Impact Learning Strategies";
1170
+ var check_in$1 = "Check In";
1146
1171
  var reflection$1 = "Reflection";
1147
1172
  var conferences$1 = "Conferences";
1148
1173
  var safety$1 = "Safety";
@@ -1165,6 +1190,7 @@ var tooltip_content_safety_chart$1 = "The visual represenation of all the respon
1165
1190
  var tooltip_content_student_by_age_chart$1 = "The specific representation of students by gender and grade level at your school.";
1166
1191
  var tooltip_content_students_by_designation$1 = "The composite representation of students by individual grades in your school with specific designations.";
1167
1192
  var total_1_to_1$1 = "Total 1-to-1";
1193
+ var total_check_in$1 = "Total Check In";
1168
1194
  var total_1_to_1_time$1 = "Total 1-to-1 Time";
1169
1195
  var total_conferences$1 = "Total Conferences";
1170
1196
  var total_conferences_time$1 = "Total Conferences Time";
@@ -1195,12 +1221,14 @@ var current_password$1 = "Current password";
1195
1221
  var new_password$1 = "New password";
1196
1222
  var confirm_password$1 = "Confirm password";
1197
1223
  var save$1 = "Save";
1198
- 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";
1199
1226
  var total_of_questions$1 = "Total of questions";
1200
1227
  var create_question$1 = "Create question";
1201
1228
  var edit_question$1 = "Edit question";
1202
1229
  var question_type$1 = "Question Type";
1203
1230
  var category$1 = "Category";
1231
+ var sub_category$1 = "Sub Category";
1204
1232
  var question_text = "Question text";
1205
1233
  var is_default_question_for_one_to_one$1 = "Is default question for one-to-one";
1206
1234
  var default_question_for_students_or_teachers$1 = "Default question for students or teachers";
@@ -1312,6 +1340,7 @@ var edit_destination$1 = "Edit Destination";
1312
1340
  var confirm$1 = "Confirm";
1313
1341
  var hello$1 = "Hello";
1314
1342
  var todays_1_1$1 = "Today’s 1-1";
1343
+ var todays_check_in$1 = "Today’s Check In";
1315
1344
  var todays_Conferences$1 = "Today’s Conferences";
1316
1345
  var next_meeting$1 = "Next Meeting";
1317
1346
  var next_conference$1 = "Next Conference";
@@ -1340,6 +1369,7 @@ var import_csv$1 = "Import CSV";
1340
1369
  var add_new$1 = "Add New";
1341
1370
  var show_only_work_as_assistant$1 = "Show only work as assistant";
1342
1371
  var last_1_to_1$1 = "Last 1-TO-1";
1372
+ var last_check_in$1 = "Last Check In";
1343
1373
  var last_conference$1 = "Last conference";
1344
1374
  var total_time$1 = "Total time";
1345
1375
  var assistant_name$1 = "Assistant Name";
@@ -1356,6 +1386,7 @@ var after$1 = "After";
1356
1386
  var pick_a_date$1 = "Pick a date";
1357
1387
  var apply$1 = "Apply";
1358
1388
  var new_1_to_1$1 = "New 1-to-1";
1389
+ var new_check_in$1 = "New Check In";
1359
1390
  var do_you_want_to_talk_with_teacher$1 = "Do you want to talk with teacher";
1360
1391
  var start_now$1 = "Start now";
1361
1392
  var book_for_later$1 = "Book for later";
@@ -1366,6 +1397,7 @@ var select_question$1 = "Select question";
1366
1397
  var select_student$1 = "Select student";
1367
1398
  var select_date_time$1 = "Select Date & Time";
1368
1399
  var book_1_to_1$1 = "Book 1-to-1";
1400
+ var book_new_check_in$1 = "Book new Check In";
1369
1401
  var schedule$1 = "Schedule";
1370
1402
  var sessions_are_booked_as_10_minute_slots$1 = "Sessions are booked as 10 minute slots";
1371
1403
  var does_not_reoccur$1 = "Does not reoccur";
@@ -1373,13 +1405,15 @@ var time_must_be_between_8_am_and_6_pm$1 = "Time must be between 8 AM and 6 PM";
1373
1405
  var from$1 = "From";
1374
1406
  var to$1 = "To";
1375
1407
  var show_only_favorites$1 = "Show only favorites";
1408
+ var show_only_conversation$1 = "Show 1-1 conversation only";
1376
1409
  var duration$1 = "Duration";
1377
1410
  var favorite$1 = "Favorite";
1378
1411
  var open$1 = "Open";
1379
1412
  var no_data$1 = "No Data";
1380
1413
  var schedule_detail$1 = "Schedule Detail";
1381
1414
  var are_you_sure_you_want_to_cancel_this_schedule$1 = "Are you sure you want to Cancel this schedule?";
1382
- 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";
1383
1417
  var done$1 = "Done";
1384
1418
  var what_do_you_want_to_talk_about$1 = "What do you want to talk about?";
1385
1419
  var session_type$1 = "Session Type";
@@ -1500,6 +1534,7 @@ var student_request$1 = "Student Request";
1500
1534
  var overview$1 = "Overview";
1501
1535
  var plp$1 = "PLP";
1502
1536
  var my_student_1_to_1$1 = "My Student 1-to-1";
1537
+ var my_student_check_in$1 = "My Student Check In";
1503
1538
  var my_student_conference$1 = "My Student Conference";
1504
1539
  var received_date$1 = "Received Date";
1505
1540
  var class_impact_score$1 = "Class Impact Score";
@@ -1672,6 +1707,7 @@ var set_deadline$1 = "Set deadline";
1672
1707
  var duplicate_survey$1 = "Duplicate Survey";
1673
1708
  var share_survey$1 = "Share Survey";
1674
1709
  var new_survey$1 = "New Survey";
1710
+ var assign_counselor$1 = "Assign Counselor";
1675
1711
  var lang_uk = {
1676
1712
  dashboard: dashboard$1,
1677
1713
  user: user$1,
@@ -1689,6 +1725,7 @@ var lang_uk = {
1689
1725
  readiness_to_learn: readiness_to_learn$1,
1690
1726
  high_impact_learning_strategies: high_impact_learning_strategies$1,
1691
1727
  "1_to_1": "1 to 1",
1728
+ check_in: check_in$1,
1692
1729
  reflection: reflection$1,
1693
1730
  conferences: conferences$1,
1694
1731
  safety: safety$1,
@@ -1711,6 +1748,7 @@ var lang_uk = {
1711
1748
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart$1,
1712
1749
  tooltip_content_students_by_designation: tooltip_content_students_by_designation$1,
1713
1750
  total_1_to_1: total_1_to_1$1,
1751
+ total_check_in: total_check_in$1,
1714
1752
  total_1_to_1_time: total_1_to_1_time$1,
1715
1753
  total_conferences: total_conferences$1,
1716
1754
  total_conferences_time: total_conferences_time$1,
@@ -1742,11 +1780,13 @@ var lang_uk = {
1742
1780
  confirm_password: confirm_password$1,
1743
1781
  save: save$1,
1744
1782
  type_something_to_search_question: type_something_to_search_question$1,
1783
+ type_something_to_search_category: type_something_to_search_category$1,
1745
1784
  total_of_questions: total_of_questions$1,
1746
1785
  create_question: create_question$1,
1747
1786
  edit_question: edit_question$1,
1748
1787
  question_type: question_type$1,
1749
1788
  category: category$1,
1789
+ sub_category: sub_category$1,
1750
1790
  question_text: question_text,
1751
1791
  is_default_question_for_one_to_one: is_default_question_for_one_to_one$1,
1752
1792
  default_question_for_students_or_teachers: default_question_for_students_or_teachers$1,
@@ -1858,6 +1898,7 @@ var lang_uk = {
1858
1898
  confirm: confirm$1,
1859
1899
  hello: hello$1,
1860
1900
  todays_1_1: todays_1_1$1,
1901
+ todays_check_in: todays_check_in$1,
1861
1902
  todays_Conferences: todays_Conferences$1,
1862
1903
  next_meeting: next_meeting$1,
1863
1904
  next_conference: next_conference$1,
@@ -1888,6 +1929,7 @@ var lang_uk = {
1888
1929
  add_new: add_new$1,
1889
1930
  show_only_work_as_assistant: show_only_work_as_assistant$1,
1890
1931
  last_1_to_1: last_1_to_1$1,
1932
+ last_check_in: last_check_in$1,
1891
1933
  last_conference: last_conference$1,
1892
1934
  total_time: total_time$1,
1893
1935
  assistant_name: assistant_name$1,
@@ -1904,6 +1946,7 @@ var lang_uk = {
1904
1946
  pick_a_date: pick_a_date$1,
1905
1947
  apply: apply$1,
1906
1948
  new_1_to_1: new_1_to_1$1,
1949
+ new_check_in: new_check_in$1,
1907
1950
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher$1,
1908
1951
  start_now: start_now$1,
1909
1952
  book_for_later: book_for_later$1,
@@ -1914,6 +1957,7 @@ var lang_uk = {
1914
1957
  select_student: select_student$1,
1915
1958
  select_date_time: select_date_time$1,
1916
1959
  book_1_to_1: book_1_to_1$1,
1960
+ book_new_check_in: book_new_check_in$1,
1917
1961
  schedule: schedule$1,
1918
1962
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots$1,
1919
1963
  does_not_reoccur: does_not_reoccur$1,
@@ -1921,6 +1965,7 @@ var lang_uk = {
1921
1965
  from: from$1,
1922
1966
  to: to$1,
1923
1967
  show_only_favorites: show_only_favorites$1,
1968
+ show_only_conversation: show_only_conversation$1,
1924
1969
  duration: duration$1,
1925
1970
  favorite: favorite$1,
1926
1971
  open: open$1,
@@ -1928,6 +1973,7 @@ var lang_uk = {
1928
1973
  schedule_detail: schedule_detail$1,
1929
1974
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule$1,
1930
1975
  completed_1_to_1: completed_1_to_1$1,
1976
+ completed_check_in: completed_check_in$1,
1931
1977
  done: done$1,
1932
1978
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about$1,
1933
1979
  session_type: session_type$1,
@@ -2049,6 +2095,7 @@ var lang_uk = {
2049
2095
  overview: overview$1,
2050
2096
  plp: plp$1,
2051
2097
  my_student_1_to_1: my_student_1_to_1$1,
2098
+ my_student_check_in: my_student_check_in$1,
2052
2099
  my_student_conference: my_student_conference$1,
2053
2100
  received_date: received_date$1,
2054
2101
  class_impact_score: class_impact_score$1,
@@ -2222,7 +2269,8 @@ var lang_uk = {
2222
2269
  set_deadline: set_deadline$1,
2223
2270
  duplicate_survey: duplicate_survey$1,
2224
2271
  share_survey: share_survey$1,
2225
- new_survey: new_survey$1
2272
+ new_survey: new_survey$1,
2273
+ assign_counselor: assign_counselor$1
2226
2274
  };
2227
2275
 
2228
2276
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -2456,18 +2504,6 @@ var QUESTION_TYPES_OPTIONS = [{
2456
2504
  }, {
2457
2505
  label: "Text input",
2458
2506
  value: "TextInput"
2459
- }, {
2460
- label: "Slider",
2461
- value: "Slider"
2462
- }, {
2463
- label: "Progress bar",
2464
- value: "ProgressBar"
2465
- }, {
2466
- label: "Star rating",
2467
- value: "StarRating"
2468
- }, {
2469
- label: "Text input with sub questions",
2470
- value: "TextInputWithSuggestions"
2471
2507
  }, {
2472
2508
  label: "Emotional",
2473
2509
  value: "Emotional"
@@ -2508,7 +2544,7 @@ var STAR_OPTIONS = [{
2508
2544
  value: 5
2509
2545
  }];
2510
2546
  var ANSWER_EDITOR_HEIGHT = 150;
2511
- var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
2547
+ var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
2512
2548
  var CHAT_CHANNEL = "chat-channel";
2513
2549
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
2514
2550
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
@@ -2524,7 +2560,8 @@ var ROLES = {
2524
2560
  ASSISTANT: "Assistant",
2525
2561
  EDUTEACHER: "General ED teacher",
2526
2562
  STUDENT: "Student",
2527
- PARENT: "Parent"
2563
+ PARENT: "Parent",
2564
+ COUNSELOR: "Counselor"
2528
2565
  };
2529
2566
  var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
2530
2567
 
@@ -2779,7 +2816,7 @@ var useLogin = function useLogin() {
2779
2816
  history.push(HOMEPAGE_DISTRICT);
2780
2817
  } else if (roles.includes("Admin")) {
2781
2818
  history.push(HOMEPAGE_ADMIN);
2782
- } else if (roles.includes("Teacher") || roles.includes("Assistant")) {
2819
+ } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
2783
2820
  history.push(HOMEPAGE_TEACHER);
2784
2821
  } else if (roles.includes("Student")) {
2785
2822
  history.push(HOMEPAGE_STUDENT);
@@ -3869,7 +3906,7 @@ var TheSidebar = function TheSidebar(_ref) {
3869
3906
  className: "" + styles["sidebar-logout"]
3870
3907
  }), React.createElement("p", {
3871
3908
  onClick: signOut
3872
- }, "Log out")));
3909
+ }, "Log out 123")));
3873
3910
  };
3874
3911
 
3875
3912
  var setNotification = createAction("notifications/setNotification");
@@ -7063,13 +7100,13 @@ var UserDetail = function UserDetail() {
7063
7100
  return;
7064
7101
  }
7065
7102
 
7066
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
7103
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
7067
7104
  setFieldValue("roles", [role]);
7068
7105
  return;
7069
7106
  }
7070
7107
 
7071
7108
  var teacherAssistantRoles = values.roles.filter(function (item) {
7072
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
7109
+ return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
7073
7110
  });
7074
7111
  setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7075
7112
  }, [values.roles]);
@@ -7554,8 +7591,17 @@ var SuggestionCategorySelector = function SuggestionCategorySelector(props) {
7554
7591
  };
7555
7592
 
7556
7593
  var CATEGORY_URL$1 = BASE_URL + "/api/QuestionCategory";
7557
- var get$7 = function get() {
7558
- return api.get(CATEGORY_URL$1);
7594
+ var get$7 = function get(parentCategoryId) {
7595
+ return api.get(CATEGORY_URL$1, {
7596
+ params: {
7597
+ parentCategoryId: parentCategoryId
7598
+ }
7599
+ });
7600
+ };
7601
+ var getByFilter = function getByFilter(filter) {
7602
+ return api.get(CATEGORY_URL$1, {
7603
+ params: filter
7604
+ });
7559
7605
  };
7560
7606
 
7561
7607
  var QuestionCategorySelector = function QuestionCategorySelector(props) {
@@ -7563,6 +7609,8 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7563
7609
  getCategoryList = _useState[0],
7564
7610
  setCategoryList = _useState[1];
7565
7611
 
7612
+ var id = props.id,
7613
+ parentCategoryId = props.parentCategoryId;
7566
7614
  useEffect(function () {
7567
7615
  fetchCategory();
7568
7616
  }, []);
@@ -7570,7 +7618,7 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7570
7618
  var fetchCategory = function fetchCategory() {
7571
7619
  try {
7572
7620
  var _temp2 = _catch(function () {
7573
- return Promise.resolve(get$7()).then(function (res) {
7621
+ return Promise.resolve(get$7(parentCategoryId)).then(function (res) {
7574
7622
  setCategoryList(res.data.items);
7575
7623
  });
7576
7624
  }, function (err) {
@@ -7583,7 +7631,6 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7583
7631
  }
7584
7632
  };
7585
7633
 
7586
- var id = props.id;
7587
7634
  var arrCategory = getCategoryList.map(function (i) {
7588
7635
  return {
7589
7636
  id: i.id,
@@ -7600,6 +7647,131 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7600
7647
  }, props));
7601
7648
  };
7602
7649
 
7650
+ var useCategorySelector = function useCategorySelector() {
7651
+ var _useState = useState([]),
7652
+ categories = _useState[0],
7653
+ setCategories = _useState[1];
7654
+
7655
+ var dispatch = useDispatch();
7656
+ var getData = useCallback(function () {
7657
+ try {
7658
+ var _temp3 = function _temp3() {
7659
+ dispatch(setLoading(false));
7660
+ };
7661
+
7662
+ dispatch(setLoading(true));
7663
+
7664
+ var _temp4 = _catch(function () {
7665
+ return Promise.resolve(getByFilter(_extends({}, DEFAULT_FILTER, {
7666
+ pageSize: -1
7667
+ }))).then(function (res) {
7668
+ var convertedCategories = convertOptions(res.data.items);
7669
+ setCategories(convertedCategories);
7670
+ });
7671
+ }, function (err) {
7672
+ var _err$response, _err$response$data;
7673
+
7674
+ dispatch(setAlert({
7675
+ type: "danger",
7676
+ 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
7677
+ }));
7678
+ });
7679
+
7680
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
7681
+ } catch (e) {
7682
+ return Promise.reject(e);
7683
+ }
7684
+ }, []);
7685
+
7686
+ var convertOptions = function convertOptions(categories, parent, children) {
7687
+ var result = [];
7688
+
7689
+ if (!parent) {
7690
+ var noParentCategories = categories.filter(function (c) {
7691
+ return !c.parentCategoryId;
7692
+ });
7693
+ noParentCategories.forEach(function (c) {
7694
+ var childrenOfCategory = categories.filter(function (cg) {
7695
+ return cg.parentCategoryId === c.id;
7696
+ });
7697
+
7698
+ var category = _extends({}, c, {
7699
+ label: c.name,
7700
+ value: c.id,
7701
+ level: 0,
7702
+ isDisabled: childrenOfCategory.length > 0
7703
+ });
7704
+
7705
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7706
+ });
7707
+ } else {
7708
+ result.push(parent);
7709
+ children === null || children === void 0 ? void 0 : children.forEach(function (c) {
7710
+ var childrenOfCategory = categories.filter(function (cg) {
7711
+ return cg.parentCategoryId === c.id;
7712
+ });
7713
+
7714
+ var category = _extends({}, c, {
7715
+ label: c.name,
7716
+ value: c.id,
7717
+ level: parent.level ? parent.level + 1 : 1,
7718
+ isDisabled: childrenOfCategory.length > 0
7719
+ });
7720
+
7721
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7722
+ });
7723
+ }
7724
+
7725
+ return result;
7726
+ };
7727
+
7728
+ useEffect(function () {
7729
+ getData();
7730
+ }, []);
7731
+ return {
7732
+ categories: categories
7733
+ };
7734
+ };
7735
+
7736
+ var optionStyles = {
7737
+ control: function control(styles) {
7738
+ return _extends({}, styles, {
7739
+ backgroundColor: 'white'
7740
+ });
7741
+ },
7742
+ option: function option(styles, _ref) {
7743
+ var data = _ref.data;
7744
+ return _extends({}, styles, {
7745
+ fontWeight: !(data !== null && data !== void 0 && data.level) ? "bold" : "normal",
7746
+ paddingLeft: ((data === null || data === void 0 ? void 0 : data.level) || 0) + 1 + "rem",
7747
+ paddingRight: "1rem",
7748
+ cursor: data.isDisabled ? 'not-allowed' : 'pointer',
7749
+ color: "var(--color)",
7750
+ "&:first-letter": {
7751
+ textTransform: "uppercase"
7752
+ }
7753
+ });
7754
+ }
7755
+ };
7756
+
7757
+ var CategorySelector = function CategorySelector(_ref2) {
7758
+ var value = _ref2.value,
7759
+ rest = _objectWithoutPropertiesLoose(_ref2, ["value"]);
7760
+
7761
+ var _useCategorySelector = useCategorySelector(),
7762
+ categories = _useCategorySelector.categories;
7763
+
7764
+ var initialValue = !!value ? categories.find(function (option) {
7765
+ return option.value === value;
7766
+ }) || null : null;
7767
+ return React.createElement(Select, Object.assign({
7768
+ value: initialValue,
7769
+ options: categories,
7770
+ styles: optionStyles,
7771
+ placeholder: "Select category..."
7772
+ }, rest));
7773
+ };
7774
+
7603
7775
  var StarRatingSelector = function StarRatingSelector(props) {
7604
7776
  var id = props.id;
7605
7777
  var initValue = !!id ? STAR_OPTIONS.find(function (option) {
@@ -7771,7 +7943,7 @@ var useNotificationList = function useNotificationList() {
7771
7943
  };
7772
7944
 
7773
7945
  var viewNotification = function viewNotification(notification) {
7774
- var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
7946
+ 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;
7775
7947
 
7776
7948
  var source = notification.source,
7777
7949
  extraData = notification.extraData;
@@ -7786,23 +7958,23 @@ var useNotificationList = function useNotificationList() {
7786
7958
  break;
7787
7959
 
7788
7960
  case "Class Reflection":
7789
- 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]));
7961
+ 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]));
7790
7962
  break;
7791
7963
 
7792
7964
  case "Class Reflection Completed":
7793
- window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
7965
+ 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]));
7794
7966
  break;
7795
7967
 
7796
7968
  case "External Reflection Completed":
7797
- window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
7969
+ 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");
7798
7970
  break;
7799
7971
 
7800
7972
  case "NewSessionCreated":
7801
- 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]));
7973
+ 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]));
7802
7974
  break;
7803
7975
 
7804
7976
  case "NewSessionComplete":
7805
- 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]));
7977
+ 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]));
7806
7978
  break;
7807
7979
 
7808
7980
  case "ActionPointReminder":
@@ -10619,5 +10791,5 @@ var UserList = function UserList() {
10619
10791
 
10620
10792
  var amplitudeClient$1 = amplitude.getInstance();
10621
10793
 
10622
- export { ACCESS_TOKEN, ANSWER_EDITOR_HEIGHT, AcademicClassSelector, AddButton, BASE_URL, CHAT_CHANNEL, CommonAlert, CommonHeader, CommonModal$1 as CommonModal, CreatableSelector, CustomPagination, CustomSelector, CustomTabs as CustomTab, DATE_FORMAT, DATE_RESULT, DEFAULT_FILTER, Dashboard, DeleteButtonIcon, DetailActionButtons, EMOTIONS, EditButtonIcon, EmailTemplateDetail, EmailTemplateList, EmptyDataAlert, ErrorHandler, FULL_DATE_RESULT, FaqList, InputFile as FileInput, GOOGLE_RECAPTCHA_KEY, GalleryList, INIT_AMPLITUDE_KEY_PROD, INIT_AMPLITUDE_KEY_STAGE, Images, LICENSE_AGGRID, LinkEditButton, Loading, Login, MediaList, NOTIFICATION_ALERT_KEY, NOTIFICATION_CHANNEL, NotFound, NotificationList, NotificationModal, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, QuestionCategorySelector, QuestionTypeSelector, QuitPrompt, ReactNotification, RequiredLabel$1 as RequiredLabel, SchoolList, ScrollToTop, SearchBox$1 as SearchBox, SearchBoxContainer, SkillList, StarRatingSelector, SuggestionCategorySelector, TAB_COLORS, TINY_MCE_API_KEY, TheContent$1 as TheContent, TheLayout, ToggleButton, UploadFileButton, UserDetail, UserList, addTab, amplitudeClient$1 as amplitudeClient, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML, i18n, initAmplitude, isInViewport, isLocalhost, reset, setAlert, setAssessmentList, setAssignmentList, setAssistantList, setBadgeList, setBandScoreList, setCertificateList, setClassList, setConferenceRubricList, setConversationOneToOne, setCurrentStudentId, setCurrentStudentName, setCurrentStudentUserId, setCustomAlertList, setDataPlayer, setEditItemQuesion, setEnableIEP, setEnableSurvey, setFeedbackList, setFilterWidget, setGoalExampleList, setImproveMyClass, setLanguage, setLearningSupportCategoryList, setLoading, setMailCategory, setModal, setMoveItemQuestion, setMyStudent, setQuestionByCategory, setQuestionCateList, setQuestionList, setReflectionList, setReflectionResultList, setResetQuestionList, setSchoolBlankDayList, setSelectQuestion, setSemesterList, setSessionPlayer, setSessionTemplateGeneralClassList, setSessionTemplateList, setStartTime, setStrategyList, setStudentIdSelectedByTeacher, setStudentList, setSubjectList, setSuggestionList, setTurnOffPassWhenChangeMode, setTutorialScreenList, setUser, setUserList, showFontSize, showMenuBar, store, systemCertificateUpload, systemStudentBadge, uploadFile, useFilters, useGalleryList, utcToLocalTime };
10794
+ export { ACCESS_TOKEN, ANSWER_EDITOR_HEIGHT, AcademicClassSelector, AddButton, BASE_URL, CHAT_CHANNEL, CategorySelector, CommonAlert, CommonHeader, CommonModal$1 as CommonModal, CreatableSelector, CustomPagination, CustomSelector, CustomTabs as CustomTab, DATE_FORMAT, DATE_RESULT, DEFAULT_FILTER, Dashboard, DeleteButtonIcon, DetailActionButtons, EMOTIONS, EditButtonIcon, EmailTemplateDetail, EmailTemplateList, EmptyDataAlert, ErrorHandler, FULL_DATE_RESULT, FaqList, InputFile as FileInput, GOOGLE_RECAPTCHA_KEY, GalleryList, INIT_AMPLITUDE_KEY_PROD, INIT_AMPLITUDE_KEY_STAGE, Images, LICENSE_AGGRID, LinkEditButton, Loading, Login, MediaList, NOTIFICATION_ALERT_KEY, NOTIFICATION_CHANNEL, NotFound, NotificationList, NotificationModal, QUESTION_TYPES, QUESTION_TYPES_OPTIONS, QuestionCategorySelector, QuestionTypeSelector, QuitPrompt, ReactNotification, RequiredLabel$1 as RequiredLabel, SchoolList, ScrollToTop, SearchBox$1 as SearchBox, SearchBoxContainer, SkillList, StarRatingSelector, SuggestionCategorySelector, TAB_COLORS, TINY_MCE_API_KEY, TheContent$1 as TheContent, TheLayout, ToggleButton, UploadFileButton, UserDetail, UserList, addTab, amplitudeClient$1 as amplitudeClient, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML, i18n, initAmplitude, isInViewport, isLocalhost, reset, setAlert, setAssessmentList, setAssignmentList, setAssistantList, setBadgeList, setBandScoreList, setCertificateList, setClassList, setConferenceRubricList, setConversationOneToOne, setCurrentStudentId, setCurrentStudentName, setCurrentStudentUserId, setCustomAlertList, setDataPlayer, setEditItemQuesion, setEnableIEP, setEnableSurvey, setFeedbackList, setFilterWidget, setGoalExampleList, setImproveMyClass, setLanguage, setLearningSupportCategoryList, setLoading, setMailCategory, setModal, setMoveItemQuestion, setMyStudent, setQuestionByCategory, setQuestionCateList, setQuestionList, setReflectionList, setReflectionResultList, setResetQuestionList, setSchoolBlankDayList, setSelectQuestion, setSemesterList, setSessionPlayer, setSessionTemplateGeneralClassList, setSessionTemplateList, setStartTime, setStrategyList, setStudentIdSelectedByTeacher, setStudentList, setSubjectList, setSuggestionList, setTurnOffPassWhenChangeMode, setTutorialScreenList, setUser, setUserList, showFontSize, showMenuBar, store, systemCertificateUpload, systemStudentBadge, uploadFile, useFilters, useGalleryList, utcToLocalTime };
10623
10795
  //# sourceMappingURL=index.modern.js.map