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.
@@ -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,7 +586,6 @@ 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";
578
- var assign_counselor = "Assign Counselor";
579
589
  var lang_us = {
580
590
  dashboard: dashboard,
581
591
  user: user,
@@ -593,6 +603,7 @@ var lang_us = {
593
603
  readiness_to_learn: readiness_to_learn,
594
604
  high_impact_learning_strategies: high_impact_learning_strategies,
595
605
  "1_to_1": "1 To 1",
606
+ check_in: check_in,
596
607
  reflection: reflection,
597
608
  conferences: conferences,
598
609
  safety: safety,
@@ -615,6 +626,7 @@ var lang_us = {
615
626
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart,
616
627
  tooltip_content_students_by_designation: tooltip_content_students_by_designation,
617
628
  total_1_to_1: total_1_to_1,
629
+ total_check_in: total_check_in,
618
630
  total_1_to_1_time: total_1_to_1_time,
619
631
  total_conferences: total_conferences,
620
632
  total_conferences_time: total_conferences_time,
@@ -646,11 +658,13 @@ var lang_us = {
646
658
  confirm_password: confirm_password,
647
659
  save: save,
648
660
  type_something_to_search_question: type_something_to_search_question,
661
+ type_something_to_search_category: type_something_to_search_category,
649
662
  total_of_questions: total_of_questions,
650
663
  create_question: create_question,
651
664
  edit_question: edit_question,
652
665
  question_type: question_type,
653
666
  category: category,
667
+ sub_category: sub_category,
654
668
  "Question text": "Question text",
655
669
  is_default_question_for_one_to_one: is_default_question_for_one_to_one,
656
670
  default_question_for_students_or_teachers: default_question_for_students_or_teachers,
@@ -762,6 +776,7 @@ var lang_us = {
762
776
  confirm: confirm,
763
777
  hello: hello,
764
778
  todays_1_1: todays_1_1,
779
+ todays_check_in: todays_check_in,
765
780
  todays_Conferences: todays_Conferences,
766
781
  next_meeting: next_meeting,
767
782
  next_conference: next_conference,
@@ -792,6 +807,7 @@ var lang_us = {
792
807
  add_new: add_new,
793
808
  show_only_work_as_assistant: show_only_work_as_assistant,
794
809
  last_1_to_1: last_1_to_1,
810
+ last_check_in: last_check_in,
795
811
  last_conference: last_conference,
796
812
  total_time: total_time,
797
813
  assistant_name: assistant_name,
@@ -808,6 +824,7 @@ var lang_us = {
808
824
  pick_a_date: pick_a_date,
809
825
  apply: apply,
810
826
  new_1_to_1: new_1_to_1,
827
+ new_check_in: new_check_in,
811
828
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher,
812
829
  start_now: start_now,
813
830
  book_for_later: book_for_later,
@@ -818,6 +835,7 @@ var lang_us = {
818
835
  select_student: select_student,
819
836
  select_date_time: select_date_time,
820
837
  book_1_to_1: book_1_to_1,
838
+ book_new_check_in: book_new_check_in,
821
839
  schedule: schedule,
822
840
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots,
823
841
  does_not_reoccur: does_not_reoccur,
@@ -825,6 +843,7 @@ var lang_us = {
825
843
  from: from,
826
844
  to: to,
827
845
  show_only_favorites: show_only_favorites,
846
+ show_only_conversation: show_only_conversation,
828
847
  duration: duration,
829
848
  favorite: favorite,
830
849
  open: open,
@@ -832,6 +851,7 @@ var lang_us = {
832
851
  schedule_detail: schedule_detail,
833
852
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule,
834
853
  completed_1_to_1: completed_1_to_1,
854
+ completed_check_in: completed_check_in,
835
855
  done: done,
836
856
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about,
837
857
  session_type: session_type,
@@ -953,6 +973,7 @@ var lang_us = {
953
973
  overview: overview,
954
974
  plp: plp,
955
975
  my_student_1_to_1: my_student_1_to_1,
976
+ my_student_check_in: my_student_check_in,
956
977
  my_student_conference: my_student_conference,
957
978
  received_date: received_date,
958
979
  class_impact_score: class_impact_score,
@@ -1126,8 +1147,7 @@ var lang_us = {
1126
1147
  set_deadline: set_deadline,
1127
1148
  duplicate_survey: duplicate_survey,
1128
1149
  share_survey: share_survey,
1129
- new_survey: new_survey,
1130
- assign_counselor: assign_counselor
1150
+ new_survey: new_survey
1131
1151
  };
1132
1152
 
1133
1153
  var dashboard$1 = "Dashboard";
@@ -1145,6 +1165,7 @@ var cancel$1 = "Cancel";
1145
1165
  var hey$1 = "Hey";
1146
1166
  var readiness_to_learn$1 = "Readiness to Learn";
1147
1167
  var high_impact_learning_strategies$1 = "High Impact Learning Strategies";
1168
+ var check_in$1 = "Check In";
1148
1169
  var reflection$1 = "Reflection";
1149
1170
  var conferences$1 = "Conferences";
1150
1171
  var safety$1 = "Safety";
@@ -1167,6 +1188,7 @@ var tooltip_content_safety_chart$1 = "The visual represenation of all the respon
1167
1188
  var tooltip_content_student_by_age_chart$1 = "The specific representation of students by gender and grade level at your school.";
1168
1189
  var tooltip_content_students_by_designation$1 = "The composite representation of students by individual grades in your school with specific designations.";
1169
1190
  var total_1_to_1$1 = "Total 1-to-1";
1191
+ var total_check_in$1 = "Total Check In";
1170
1192
  var total_1_to_1_time$1 = "Total 1-to-1 Time";
1171
1193
  var total_conferences$1 = "Total Conferences";
1172
1194
  var total_conferences_time$1 = "Total Conferences Time";
@@ -1197,12 +1219,14 @@ var current_password$1 = "Current password";
1197
1219
  var new_password$1 = "New password";
1198
1220
  var confirm_password$1 = "Confirm password";
1199
1221
  var save$1 = "Save";
1200
- var type_something_to_search_question$1 = "Type something to Search question";
1222
+ var type_something_to_search_question$1 = "Type something to search question";
1223
+ var type_something_to_search_category$1 = "Type something to search category";
1201
1224
  var total_of_questions$1 = "Total of questions";
1202
1225
  var create_question$1 = "Create question";
1203
1226
  var edit_question$1 = "Edit question";
1204
1227
  var question_type$1 = "Question Type";
1205
1228
  var category$1 = "Category";
1229
+ var sub_category$1 = "Sub Category";
1206
1230
  var question_text = "Question text";
1207
1231
  var is_default_question_for_one_to_one$1 = "Is default question for one-to-one";
1208
1232
  var default_question_for_students_or_teachers$1 = "Default question for students or teachers";
@@ -1305,7 +1329,7 @@ var use_for$1 = "Use for";
1305
1329
  var admin_training$1 = "Admin training";
1306
1330
  var teacher_training$1 = "Teacher training";
1307
1331
  var created_time$1 = "Create time";
1308
- var total_reflections$1 = "Total Reflections:";
1332
+ var total_reflections$1 = "Total Reflections";
1309
1333
  var student_training$1 = "Student training";
1310
1334
  var create_destination$1 = "Create Destination";
1311
1335
  var total_of_designation$1 = "Total of Designation";
@@ -1314,6 +1338,7 @@ var edit_destination$1 = "Edit Destination";
1314
1338
  var confirm$1 = "Confirm";
1315
1339
  var hello$1 = "Hello";
1316
1340
  var todays_1_1$1 = "Today’s 1-1";
1341
+ var todays_check_in$1 = "Today’s Check In";
1317
1342
  var todays_Conferences$1 = "Today’s Conferences";
1318
1343
  var next_meeting$1 = "Next Meeting";
1319
1344
  var next_conference$1 = "Next Conference";
@@ -1342,6 +1367,7 @@ var import_csv$1 = "Import CSV";
1342
1367
  var add_new$1 = "Add New";
1343
1368
  var show_only_work_as_assistant$1 = "Show only work as assistant";
1344
1369
  var last_1_to_1$1 = "Last 1-TO-1";
1370
+ var last_check_in$1 = "Last Check In";
1345
1371
  var last_conference$1 = "Last conference";
1346
1372
  var total_time$1 = "Total time";
1347
1373
  var assistant_name$1 = "Assistant Name";
@@ -1358,6 +1384,7 @@ var after$1 = "After";
1358
1384
  var pick_a_date$1 = "Pick a date";
1359
1385
  var apply$1 = "Apply";
1360
1386
  var new_1_to_1$1 = "New 1-to-1";
1387
+ var new_check_in$1 = "New Check In";
1361
1388
  var do_you_want_to_talk_with_teacher$1 = "Do you want to talk with teacher";
1362
1389
  var start_now$1 = "Start now";
1363
1390
  var book_for_later$1 = "Book for later";
@@ -1368,6 +1395,7 @@ var select_question$1 = "Select question";
1368
1395
  var select_student$1 = "Select student";
1369
1396
  var select_date_time$1 = "Select Date & Time";
1370
1397
  var book_1_to_1$1 = "Book 1-to-1";
1398
+ var book_new_check_in$1 = "Book new Check In";
1371
1399
  var schedule$1 = "Schedule";
1372
1400
  var sessions_are_booked_as_10_minute_slots$1 = "Sessions are booked as 10 minute slots";
1373
1401
  var does_not_reoccur$1 = "Does not reoccur";
@@ -1375,13 +1403,15 @@ var time_must_be_between_8_am_and_6_pm$1 = "Time must be between 8 AM and 6 PM";
1375
1403
  var from$1 = "From";
1376
1404
  var to$1 = "To";
1377
1405
  var show_only_favorites$1 = "Show only favorites";
1406
+ var show_only_conversation$1 = "Show 1-1 conversation only";
1378
1407
  var duration$1 = "Duration";
1379
1408
  var favorite$1 = "Favorite";
1380
1409
  var open$1 = "Open";
1381
1410
  var no_data$1 = "No Data";
1382
1411
  var schedule_detail$1 = "Schedule Detail";
1383
1412
  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";
1413
+ var completed_1_to_1$1 = "Completed 1-1 Conversation";
1414
+ var completed_check_in$1 = "Completed Check In";
1385
1415
  var done$1 = "Done";
1386
1416
  var what_do_you_want_to_talk_about$1 = "What do you want to talk about?";
1387
1417
  var session_type$1 = "Session Type";
@@ -1502,6 +1532,7 @@ var student_request$1 = "Student Request";
1502
1532
  var overview$1 = "Overview";
1503
1533
  var plp$1 = "PLP";
1504
1534
  var my_student_1_to_1$1 = "My Student 1-to-1";
1535
+ var my_student_check_in$1 = "My Student Check In";
1505
1536
  var my_student_conference$1 = "My Student Conference";
1506
1537
  var received_date$1 = "Received Date";
1507
1538
  var class_impact_score$1 = "Class Impact Score";
@@ -1583,7 +1614,7 @@ var accommodation$1 = "Accommodation";
1583
1614
  var all_categories$1 = "All categories";
1584
1615
  var do_you_want_to_delete_this_accommodation$1 = "Do you want to delete this accommodation";
1585
1616
  var edit_accommodation$1 = "Edit Accommodation";
1586
- var add_accommodation$1 = "add_accommodation";
1617
+ var add_accommodation$1 = "Add Accommodation";
1587
1618
  var all$1 = "All";
1588
1619
  var all_status$1 = "All status";
1589
1620
  var goal_type$1 = "Goal Type";
@@ -1674,7 +1705,6 @@ var set_deadline$1 = "Set deadline";
1674
1705
  var duplicate_survey$1 = "Duplicate Survey";
1675
1706
  var share_survey$1 = "Share Survey";
1676
1707
  var new_survey$1 = "New Survey";
1677
- var assign_counselor$1 = "Assign Counselor";
1678
1708
  var lang_uk = {
1679
1709
  dashboard: dashboard$1,
1680
1710
  user: user$1,
@@ -1692,6 +1722,7 @@ var lang_uk = {
1692
1722
  readiness_to_learn: readiness_to_learn$1,
1693
1723
  high_impact_learning_strategies: high_impact_learning_strategies$1,
1694
1724
  "1_to_1": "1 to 1",
1725
+ check_in: check_in$1,
1695
1726
  reflection: reflection$1,
1696
1727
  conferences: conferences$1,
1697
1728
  safety: safety$1,
@@ -1714,6 +1745,7 @@ var lang_uk = {
1714
1745
  tooltip_content_student_by_age_chart: tooltip_content_student_by_age_chart$1,
1715
1746
  tooltip_content_students_by_designation: tooltip_content_students_by_designation$1,
1716
1747
  total_1_to_1: total_1_to_1$1,
1748
+ total_check_in: total_check_in$1,
1717
1749
  total_1_to_1_time: total_1_to_1_time$1,
1718
1750
  total_conferences: total_conferences$1,
1719
1751
  total_conferences_time: total_conferences_time$1,
@@ -1745,11 +1777,13 @@ var lang_uk = {
1745
1777
  confirm_password: confirm_password$1,
1746
1778
  save: save$1,
1747
1779
  type_something_to_search_question: type_something_to_search_question$1,
1780
+ type_something_to_search_category: type_something_to_search_category$1,
1748
1781
  total_of_questions: total_of_questions$1,
1749
1782
  create_question: create_question$1,
1750
1783
  edit_question: edit_question$1,
1751
1784
  question_type: question_type$1,
1752
1785
  category: category$1,
1786
+ sub_category: sub_category$1,
1753
1787
  question_text: question_text,
1754
1788
  is_default_question_for_one_to_one: is_default_question_for_one_to_one$1,
1755
1789
  default_question_for_students_or_teachers: default_question_for_students_or_teachers$1,
@@ -1861,6 +1895,7 @@ var lang_uk = {
1861
1895
  confirm: confirm$1,
1862
1896
  hello: hello$1,
1863
1897
  todays_1_1: todays_1_1$1,
1898
+ todays_check_in: todays_check_in$1,
1864
1899
  todays_Conferences: todays_Conferences$1,
1865
1900
  next_meeting: next_meeting$1,
1866
1901
  next_conference: next_conference$1,
@@ -1891,6 +1926,7 @@ var lang_uk = {
1891
1926
  add_new: add_new$1,
1892
1927
  show_only_work_as_assistant: show_only_work_as_assistant$1,
1893
1928
  last_1_to_1: last_1_to_1$1,
1929
+ last_check_in: last_check_in$1,
1894
1930
  last_conference: last_conference$1,
1895
1931
  total_time: total_time$1,
1896
1932
  assistant_name: assistant_name$1,
@@ -1907,6 +1943,7 @@ var lang_uk = {
1907
1943
  pick_a_date: pick_a_date$1,
1908
1944
  apply: apply$1,
1909
1945
  new_1_to_1: new_1_to_1$1,
1946
+ new_check_in: new_check_in$1,
1910
1947
  do_you_want_to_talk_with_teacher: do_you_want_to_talk_with_teacher$1,
1911
1948
  start_now: start_now$1,
1912
1949
  book_for_later: book_for_later$1,
@@ -1917,6 +1954,7 @@ var lang_uk = {
1917
1954
  select_student: select_student$1,
1918
1955
  select_date_time: select_date_time$1,
1919
1956
  book_1_to_1: book_1_to_1$1,
1957
+ book_new_check_in: book_new_check_in$1,
1920
1958
  schedule: schedule$1,
1921
1959
  sessions_are_booked_as_10_minute_slots: sessions_are_booked_as_10_minute_slots$1,
1922
1960
  does_not_reoccur: does_not_reoccur$1,
@@ -1924,6 +1962,7 @@ var lang_uk = {
1924
1962
  from: from$1,
1925
1963
  to: to$1,
1926
1964
  show_only_favorites: show_only_favorites$1,
1965
+ show_only_conversation: show_only_conversation$1,
1927
1966
  duration: duration$1,
1928
1967
  favorite: favorite$1,
1929
1968
  open: open$1,
@@ -1931,6 +1970,7 @@ var lang_uk = {
1931
1970
  schedule_detail: schedule_detail$1,
1932
1971
  are_you_sure_you_want_to_cancel_this_schedule: are_you_sure_you_want_to_cancel_this_schedule$1,
1933
1972
  completed_1_to_1: completed_1_to_1$1,
1973
+ completed_check_in: completed_check_in$1,
1934
1974
  done: done$1,
1935
1975
  what_do_you_want_to_talk_about: what_do_you_want_to_talk_about$1,
1936
1976
  session_type: session_type$1,
@@ -2052,6 +2092,7 @@ var lang_uk = {
2052
2092
  overview: overview$1,
2053
2093
  plp: plp$1,
2054
2094
  my_student_1_to_1: my_student_1_to_1$1,
2095
+ my_student_check_in: my_student_check_in$1,
2055
2096
  my_student_conference: my_student_conference$1,
2056
2097
  received_date: received_date$1,
2057
2098
  class_impact_score: class_impact_score$1,
@@ -2225,8 +2266,7 @@ var lang_uk = {
2225
2266
  set_deadline: set_deadline$1,
2226
2267
  duplicate_survey: duplicate_survey$1,
2227
2268
  share_survey: share_survey$1,
2228
- new_survey: new_survey$1,
2229
- assign_counselor: assign_counselor$1
2269
+ new_survey: new_survey$1
2230
2270
  };
2231
2271
 
2232
2272
  var DEFAULT_LANGUAGE = localStorage.getItem("language") !== null ? localStorage.getItem("language") : "uk";
@@ -2458,18 +2498,6 @@ var QUESTION_TYPES_OPTIONS = [{
2458
2498
  }, {
2459
2499
  label: "Text input",
2460
2500
  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
2501
  }, {
2474
2502
  label: "Emotional",
2475
2503
  value: "Emotional"
@@ -2510,7 +2538,7 @@ var STAR_OPTIONS = [{
2510
2538
  value: 5
2511
2539
  }];
2512
2540
  var ANSWER_EDITOR_HEIGHT = 150;
2513
- var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Counselor", "Student", "Parent"];
2541
+ var USER_ROLES = ["Admin", "Assistant", "Teacher", "General ED teacher", "Student", "Parent"];
2514
2542
  var CHAT_CHANNEL = "chat-channel";
2515
2543
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
2516
2544
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
@@ -2526,8 +2554,7 @@ var ROLES = {
2526
2554
  ASSISTANT: "Assistant",
2527
2555
  EDUTEACHER: "General ED teacher",
2528
2556
  STUDENT: "Student",
2529
- PARENT: "Parent",
2530
- COUNSELOR: "Counselor"
2557
+ PARENT: "Parent"
2531
2558
  };
2532
2559
  var NOTIFICATION_ALERT_KEY = "NOTIFICATION_ALERT_KEY";
2533
2560
 
@@ -2782,7 +2809,7 @@ var useLogin = function useLogin() {
2782
2809
  history.push(HOMEPAGE_DISTRICT);
2783
2810
  } else if (roles.includes("Admin")) {
2784
2811
  history.push(HOMEPAGE_ADMIN);
2785
- } else if (roles.includes("Teacher") || roles.includes("Assistant") || roles.includes("Counselor")) {
2812
+ } else if (roles.includes("Teacher") || roles.includes("Assistant")) {
2786
2813
  history.push(HOMEPAGE_TEACHER);
2787
2814
  } else if (roles.includes("Student")) {
2788
2815
  history.push(HOMEPAGE_STUDENT);
@@ -3872,7 +3899,7 @@ var TheSidebar = function TheSidebar(_ref) {
3872
3899
  className: "" + styles["sidebar-logout"]
3873
3900
  }), React.createElement("p", {
3874
3901
  onClick: signOut
3875
- }, "Log out")));
3902
+ }, "Log out 123")));
3876
3903
  };
3877
3904
 
3878
3905
  var setNotification = createAction("notifications/setNotification");
@@ -7378,13 +7405,13 @@ var UserDetail = function UserDetail() {
7378
7405
  return;
7379
7406
  }
7380
7407
 
7381
- if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(role)) {
7408
+ if ([ROLES.ADMIN, ROLES.STUDENT, ROLES.PARENT, ROLES.EDUTEACHER].includes(role)) {
7382
7409
  setFieldValue("roles", [role]);
7383
7410
  return;
7384
7411
  }
7385
7412
 
7386
7413
  var teacherAssistantRoles = values.roles.filter(function (item) {
7387
- return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER, ROLES.COUNSELOR].includes(item);
7414
+ return ![ROLES.STUDENT, ROLES.ADMIN, ROLES.PARENT, ROLES.EDUTEACHER].includes(item);
7388
7415
  });
7389
7416
  setFieldValue("roles", [].concat(teacherAssistantRoles, [role]));
7390
7417
  }, [values.roles]);
@@ -7833,8 +7860,17 @@ var SuggestionCategorySelector = function SuggestionCategorySelector(props) {
7833
7860
  };
7834
7861
 
7835
7862
  var CATEGORY_URL$1 = BASE_URL + "/api/QuestionCategory";
7836
- var get$7 = function get() {
7837
- return api.get(CATEGORY_URL$1);
7863
+ var get$7 = function get(parentCategoryId) {
7864
+ return api.get(CATEGORY_URL$1, {
7865
+ params: {
7866
+ parentCategoryId: parentCategoryId
7867
+ }
7868
+ });
7869
+ };
7870
+ var getByFilter = function getByFilter(filter) {
7871
+ return api.get(CATEGORY_URL$1, {
7872
+ params: filter
7873
+ });
7838
7874
  };
7839
7875
 
7840
7876
  var QuestionCategorySelector = function QuestionCategorySelector(props) {
@@ -7842,6 +7878,8 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7842
7878
  getCategoryList = _useState[0],
7843
7879
  setCategoryList = _useState[1];
7844
7880
 
7881
+ var id = props.id,
7882
+ parentCategoryId = props.parentCategoryId;
7845
7883
  useEffect(function () {
7846
7884
  fetchCategory();
7847
7885
  }, []);
@@ -7849,7 +7887,7 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7849
7887
  var fetchCategory = function fetchCategory() {
7850
7888
  try {
7851
7889
  var _temp2 = _catch(function () {
7852
- return Promise.resolve(get$7()).then(function (res) {
7890
+ return Promise.resolve(get$7(parentCategoryId)).then(function (res) {
7853
7891
  setCategoryList(res.data.items);
7854
7892
  });
7855
7893
  }, function (err) {
@@ -7862,7 +7900,6 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7862
7900
  }
7863
7901
  };
7864
7902
 
7865
- var id = props.id;
7866
7903
  var arrCategory = getCategoryList.map(function (i) {
7867
7904
  return {
7868
7905
  id: i.id,
@@ -7879,6 +7916,131 @@ var QuestionCategorySelector = function QuestionCategorySelector(props) {
7879
7916
  }, props));
7880
7917
  };
7881
7918
 
7919
+ var useCategorySelector = function useCategorySelector() {
7920
+ var _useState = useState([]),
7921
+ categories = _useState[0],
7922
+ setCategories = _useState[1];
7923
+
7924
+ var dispatch = useDispatch();
7925
+ var getData = useCallback(function () {
7926
+ try {
7927
+ var _temp3 = function _temp3() {
7928
+ dispatch(setLoading(false));
7929
+ };
7930
+
7931
+ dispatch(setLoading(true));
7932
+
7933
+ var _temp4 = _catch(function () {
7934
+ return Promise.resolve(getByFilter(_extends({}, DEFAULT_FILTER, {
7935
+ pageSize: -1
7936
+ }))).then(function (res) {
7937
+ var convertedCategories = convertOptions(res.data.items);
7938
+ setCategories(convertedCategories);
7939
+ });
7940
+ }, function (err) {
7941
+ var _err$response, _err$response$data;
7942
+
7943
+ dispatch(setAlert({
7944
+ type: "danger",
7945
+ 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
7946
+ }));
7947
+ });
7948
+
7949
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
7950
+ } catch (e) {
7951
+ return Promise.reject(e);
7952
+ }
7953
+ }, []);
7954
+
7955
+ var convertOptions = function convertOptions(categories, parent, children) {
7956
+ var result = [];
7957
+
7958
+ if (!parent) {
7959
+ var noParentCategories = categories.filter(function (c) {
7960
+ return !c.parentCategoryId;
7961
+ });
7962
+ noParentCategories.forEach(function (c) {
7963
+ var childrenOfCategory = categories.filter(function (cg) {
7964
+ return cg.parentCategoryId === c.id;
7965
+ });
7966
+
7967
+ var category = _extends({}, c, {
7968
+ label: c.name,
7969
+ value: c.id,
7970
+ level: 0,
7971
+ isDisabled: childrenOfCategory.length > 0
7972
+ });
7973
+
7974
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7975
+ });
7976
+ } else {
7977
+ result.push(parent);
7978
+ children === null || children === void 0 ? void 0 : children.forEach(function (c) {
7979
+ var childrenOfCategory = categories.filter(function (cg) {
7980
+ return cg.parentCategoryId === c.id;
7981
+ });
7982
+
7983
+ var category = _extends({}, c, {
7984
+ label: c.name,
7985
+ value: c.id,
7986
+ level: parent.level ? parent.level + 1 : 1,
7987
+ isDisabled: childrenOfCategory.length > 0
7988
+ });
7989
+
7990
+ result = result.concat(convertOptions(categories, category, childrenOfCategory));
7991
+ });
7992
+ }
7993
+
7994
+ return result;
7995
+ };
7996
+
7997
+ useEffect(function () {
7998
+ getData();
7999
+ }, []);
8000
+ return {
8001
+ categories: categories
8002
+ };
8003
+ };
8004
+
8005
+ var optionStyles = {
8006
+ control: function control(styles) {
8007
+ return _extends({}, styles, {
8008
+ backgroundColor: 'white'
8009
+ });
8010
+ },
8011
+ option: function option(styles, _ref) {
8012
+ var data = _ref.data;
8013
+ return _extends({}, styles, {
8014
+ fontWeight: !(data !== null && data !== void 0 && data.level) ? "bold" : "normal",
8015
+ paddingLeft: ((data === null || data === void 0 ? void 0 : data.level) || 0) + 1 + "rem",
8016
+ paddingRight: "1rem",
8017
+ cursor: data.isDisabled ? 'not-allowed' : 'pointer',
8018
+ color: "var(--color)",
8019
+ "&:first-letter": {
8020
+ textTransform: "uppercase"
8021
+ }
8022
+ });
8023
+ }
8024
+ };
8025
+
8026
+ var CategorySelector = function CategorySelector(_ref2) {
8027
+ var value = _ref2.value,
8028
+ rest = _objectWithoutPropertiesLoose(_ref2, ["value"]);
8029
+
8030
+ var _useCategorySelector = useCategorySelector(),
8031
+ categories = _useCategorySelector.categories;
8032
+
8033
+ var initialValue = !!value ? categories.find(function (option) {
8034
+ return option.value === value;
8035
+ }) || null : null;
8036
+ return React.createElement(Select, Object.assign({
8037
+ value: initialValue,
8038
+ options: categories,
8039
+ styles: optionStyles,
8040
+ placeholder: "Select category..."
8041
+ }, rest));
8042
+ };
8043
+
7882
8044
  var StarRatingSelector = function StarRatingSelector(props) {
7883
8045
  var id = props.id;
7884
8046
  var initValue = !!id ? STAR_OPTIONS.find(function (option) {
@@ -8040,7 +8202,7 @@ var useNotificationList = function useNotificationList() {
8040
8202
  };
8041
8203
 
8042
8204
  var viewNotification = function viewNotification(notification) {
8043
- 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;
8205
+ var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4, _JSON$parse5, _JSON$parse6, _JSON$parse7, _JSON$parse8, _JSON$parse9, _JSON$parse10;
8044
8206
 
8045
8207
  var source = notification.source,
8046
8208
  extraData = notification.extraData;
@@ -8055,23 +8217,23 @@ var useNotificationList = function useNotificationList() {
8055
8217
  break;
8056
8218
 
8057
8219
  case "Class Reflection":
8058
- 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]));
8220
+ 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]));
8059
8221
  break;
8060
8222
 
8061
8223
  case "Class Reflection Completed":
8062
- 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]));
8224
+ window.open("/result-reflection/" + ((_JSON$parse5 = JSON.parse(extraData)) === null || _JSON$parse5 === void 0 ? void 0 : _JSON$parse5[1]));
8063
8225
  break;
8064
8226
 
8065
8227
  case "External Reflection Completed":
8066
- 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");
8228
+ window.open("/result-reflection/" + ((_JSON$parse6 = JSON.parse(extraData)) === null || _JSON$parse6 === void 0 ? void 0 : _JSON$parse6[1]) + "/external");
8067
8229
  break;
8068
8230
 
8069
8231
  case "NewSessionCreated":
8070
- 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]));
8232
+ 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]));
8071
8233
  break;
8072
8234
 
8073
8235
  case "NewSessionComplete":
8074
- 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]));
8236
+ 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]));
8075
8237
  break;
8076
8238
 
8077
8239
  case "ActionPointReminder":
@@ -10506,5 +10668,5 @@ var generateRandomString = (function () {
10506
10668
 
10507
10669
  var amplitudeClient = amplitude.getInstance();
10508
10670
 
10509
- 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, 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, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML, i18n, initAmplitude, isInViewport, 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 };
10671
+ 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, 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, answerQuestion, answerQuestionDataPlayer, api, apiUpload, canAccess as canAccessRoute, changeNote, changeTags, clearTab, closeTab, debounce, editTab, editorConfig, firstCheckToken, generateRandomString, getFileUrl, getInfo, getTextFromHTML, i18n, initAmplitude, isInViewport, 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 };
10510
10672
  //# sourceMappingURL=index.modern.js.map