mario-core 2.10.12-release → 2.10.14-release
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 +558 -478
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +561 -481
- package/dist/index.modern.js.map +1 -1
- package/package.json +105 -105
- package/dist/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +0 -8
- package/dist/services/weeklyQuestService.d.ts +0 -1
- package/dist/types/WeeklyQuest.d.ts +0 -37
package/dist/index.js
CHANGED
|
@@ -845,7 +845,7 @@ var email_notifications = "Email Notifications";
|
|
|
845
845
|
var turn_on_all_emails = "Turn on all emails";
|
|
846
846
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no = "A student responds to a 1-1 Readiness to Learn with “NO”";
|
|
847
847
|
var a_student_reported_a_low_safety_score_on_a_check_in = "A student reported a low safety score on a check-in";
|
|
848
|
-
var continue_as = "Continue as
|
|
848
|
+
var continue_as = "Continue as";
|
|
849
849
|
var admin = "Admin";
|
|
850
850
|
var counselor = "Counselor";
|
|
851
851
|
var support_teacher = "SupportTeacher";
|
|
@@ -1009,6 +1009,7 @@ var create_template_system = "Create Template System";
|
|
|
1009
1009
|
var created_at = "Created At";
|
|
1010
1010
|
var do_you_want_to_remove_this_template = "Do you want to remove this template?";
|
|
1011
1011
|
var one_roster_setting = "OneRoster Setting";
|
|
1012
|
+
var clever_setting = "Clever Setting";
|
|
1012
1013
|
var users = "Users";
|
|
1013
1014
|
var one_roster_config = "OneRoster Config";
|
|
1014
1015
|
var end_point_url = "End Point URL";
|
|
@@ -2034,6 +2035,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
2034
2035
|
var leave = "leave";
|
|
2035
2036
|
var go_to_the_survey_dashboard = "Go to the Survey Dashboard";
|
|
2036
2037
|
var my_dashboard = "My Dashboard";
|
|
2038
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on = "Nice choice! What area of {{category}} would you like to work on?";
|
|
2037
2039
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on = "Nice choice! What area of Academics would you like to work on?";
|
|
2038
2040
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on = "Nice choice! What area of Organization would you like to work on?";
|
|
2039
2041
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on = "Nice choice! What area of Focus would you like to work on?";
|
|
@@ -2107,7 +2109,7 @@ var add_1_1_conversation_notes = "Add 1-1 Conversation notes";
|
|
|
2107
2109
|
var save_data = "Save data";
|
|
2108
2110
|
var please_select_date_1_1_conversation = "Please select date 1-1 conversation!";
|
|
2109
2111
|
var please_write_something_to_this_1_1_conversation = "Please write something to this 1-1 conversation!";
|
|
2110
|
-
var data_1_1_conversation_cannot_exceed_300_characters = "Data 1-1 conversation cannot exceed
|
|
2112
|
+
var data_1_1_conversation_cannot_exceed_300_characters = "Data 1-1 conversation cannot exceed 1000 characters!";
|
|
2111
2113
|
var no_need_for_it = "No need for it";
|
|
2112
2114
|
var conversation_saved = "Conversation saved!";
|
|
2113
2115
|
var what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal = "What did you and the student choose as an action step?<br/>Would you like to add it as a Goal?";
|
|
@@ -2124,7 +2126,7 @@ var yes_view_student_goals = "Yes, view student goals";
|
|
|
2124
2126
|
var please_set_time_1_1_conversation = "Please set time 1-1 conversation";
|
|
2125
2127
|
var type_your_answer_here = "Type your answer here...";
|
|
2126
2128
|
var delete_bulk = "Delete Bulk";
|
|
2127
|
-
var number_of_students_with_at_least_one_very_low_metric = "
|
|
2129
|
+
var number_of_students_with_at_least_one_very_low_metric = "Students with concerning metrics";
|
|
2128
2130
|
var this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40 = "This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%";
|
|
2129
2131
|
var of_students_have_concerned_metrics = "of students have concerned metrics";
|
|
2130
2132
|
var have_metrics_40 = "have metrics <40%";
|
|
@@ -2182,6 +2184,12 @@ var type_the_main_focus_of_this_session = "Type the main focus of this session";
|
|
|
2182
2184
|
var please_add_title_note = "Please add note title";
|
|
2183
2185
|
var notes_and_logs = "Notes and Logs";
|
|
2184
2186
|
var school_monthly_usage = "School Monthly Usage";
|
|
2187
|
+
var location$1 = "Location";
|
|
2188
|
+
var edit_my_profile = "Edit My Profile";
|
|
2189
|
+
var save_new_password = "Save new password";
|
|
2190
|
+
var teacher_code = "Teacher code";
|
|
2191
|
+
var number_of_conversations = "Number of conversations";
|
|
2192
|
+
var number_of_expected_conversations_based_on_the_goal = "Number of expected conversations based on the goal";
|
|
2185
2193
|
var lang_us = {
|
|
2186
2194
|
dashboard: dashboard,
|
|
2187
2195
|
user: user,
|
|
@@ -3171,6 +3179,7 @@ var lang_us = {
|
|
|
3171
3179
|
created_at: created_at,
|
|
3172
3180
|
do_you_want_to_remove_this_template: do_you_want_to_remove_this_template,
|
|
3173
3181
|
one_roster_setting: one_roster_setting,
|
|
3182
|
+
clever_setting: clever_setting,
|
|
3174
3183
|
users: users,
|
|
3175
3184
|
one_roster_config: one_roster_config,
|
|
3176
3185
|
end_point_url: end_point_url,
|
|
@@ -4219,6 +4228,7 @@ var lang_us = {
|
|
|
4219
4228
|
leave: leave,
|
|
4220
4229
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard,
|
|
4221
4230
|
my_dashboard: my_dashboard,
|
|
4231
|
+
nice_choice_what_area_of_category_would_you_like_to_work_on: nice_choice_what_area_of_category_would_you_like_to_work_on,
|
|
4222
4232
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "Nice choice! What area of Well-being would you like to work on?",
|
|
4223
4233
|
nice_choice_what_area_of_academics_would_you_like_to_work_on: nice_choice_what_area_of_academics_would_you_like_to_work_on,
|
|
4224
4234
|
nice_choice_what_area_of_organization_would_you_like_to_work_on: nice_choice_what_area_of_organization_would_you_like_to_work_on,
|
|
@@ -4379,7 +4389,13 @@ var lang_us = {
|
|
|
4379
4389
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session,
|
|
4380
4390
|
please_add_title_note: please_add_title_note,
|
|
4381
4391
|
notes_and_logs: notes_and_logs,
|
|
4382
|
-
school_monthly_usage: school_monthly_usage
|
|
4392
|
+
school_monthly_usage: school_monthly_usage,
|
|
4393
|
+
location: location$1,
|
|
4394
|
+
edit_my_profile: edit_my_profile,
|
|
4395
|
+
save_new_password: save_new_password,
|
|
4396
|
+
teacher_code: teacher_code,
|
|
4397
|
+
number_of_conversations: number_of_conversations,
|
|
4398
|
+
number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal
|
|
4383
4399
|
};
|
|
4384
4400
|
|
|
4385
4401
|
var dashboard$1 = "Dashboard";
|
|
@@ -5191,7 +5207,7 @@ var email_notifications$1 = "Email Notifications";
|
|
|
5191
5207
|
var turn_on_all_emails$1 = "Turn on all emails";
|
|
5192
5208
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$1 = "A student responds to a 1-1 Readiness to Learn with “NO”";
|
|
5193
5209
|
var a_student_reported_a_low_safety_score_on_a_check_in$1 = "A student reported a low safety score on a check-in";
|
|
5194
|
-
var continue_as$1 = "Continue as
|
|
5210
|
+
var continue_as$1 = "Continue as";
|
|
5195
5211
|
var admin$1 = "Admin";
|
|
5196
5212
|
var counselor$1 = "Counselor";
|
|
5197
5213
|
var support_teacher$1 = "SupportTeacher";
|
|
@@ -5355,6 +5371,7 @@ var create_template_system$1 = "Create Template System";
|
|
|
5355
5371
|
var created_at$1 = "Created At";
|
|
5356
5372
|
var do_you_want_to_remove_this_template$1 = "Do you want to remove this template?";
|
|
5357
5373
|
var one_roster_setting$1 = "OneRoster Setting";
|
|
5374
|
+
var clever_setting$1 = "Clever Setting";
|
|
5358
5375
|
var users$1 = "Users";
|
|
5359
5376
|
var one_roster_config$1 = "OneRoster Config";
|
|
5360
5377
|
var end_point_url$1 = "End Point URL";
|
|
@@ -6379,6 +6396,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
6379
6396
|
var leave$1 = "leave";
|
|
6380
6397
|
var go_to_the_survey_dashboard$1 = "Go to the Survey Dashboard";
|
|
6381
6398
|
var my_dashboard$1 = "My Dashboard";
|
|
6399
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$1 = "Nice choice! What area of {{category}} would you like to work on?";
|
|
6382
6400
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$1 = "Nice choice! What area of Academics would you like to work on?";
|
|
6383
6401
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$1 = "Nice choice! What area of Organization would you like to work on?";
|
|
6384
6402
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$1 = "Nice choice! What area of Focus would you like to work on?";
|
|
@@ -6452,7 +6470,7 @@ var add_1_1_conversation_notes$1 = "Add 1-1 Conversation notes";
|
|
|
6452
6470
|
var save_data$1 = "Save data";
|
|
6453
6471
|
var please_select_date_1_1_conversation$1 = "Please select date 1-1 conversation!";
|
|
6454
6472
|
var please_write_something_to_this_1_1_conversation$1 = "Please write something to this 1-1 conversation!";
|
|
6455
|
-
var data_1_1_conversation_cannot_exceed_300_characters$1 = "Data 1-1 conversation cannot exceed
|
|
6473
|
+
var data_1_1_conversation_cannot_exceed_300_characters$1 = "Data 1-1 conversation cannot exceed 1000 characters!";
|
|
6456
6474
|
var no_need_for_it$1 = "No need for it";
|
|
6457
6475
|
var conversation_saved$1 = "Conversation saved!";
|
|
6458
6476
|
var what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal$1 = "What did you and the student choose as an action step?<br/>Would you like to add it as a Goal?";
|
|
@@ -6469,7 +6487,7 @@ var yes_view_student_goals$1 = "Yes, view student goals";
|
|
|
6469
6487
|
var please_set_time_1_1_conversation$1 = "Please set time 1-1 conversation";
|
|
6470
6488
|
var type_your_answer_here$1 = "Type your answer here...";
|
|
6471
6489
|
var delete_bulk$1 = "Delete Bulk";
|
|
6472
|
-
var number_of_students_with_at_least_one_very_low_metric$1 = "
|
|
6490
|
+
var number_of_students_with_at_least_one_very_low_metric$1 = "Students with concerning metrics";
|
|
6473
6491
|
var this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40$1 = "This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%";
|
|
6474
6492
|
var of_students_have_concerned_metrics$1 = "of students have concerned metrics";
|
|
6475
6493
|
var have_metrics_40$1 = "have metrics <40%";
|
|
@@ -6525,6 +6543,12 @@ var type_the_main_focus_of_this_session$1 = "Type the main focus of this session
|
|
|
6525
6543
|
var please_add_title_note$1 = "Please add note title";
|
|
6526
6544
|
var notes_and_logs$1 = "Notes and Logs";
|
|
6527
6545
|
var school_monthly_usage$1 = "School Monthly Usage";
|
|
6546
|
+
var location$2 = "Location";
|
|
6547
|
+
var edit_my_profile$1 = "Edit My Profile";
|
|
6548
|
+
var save_new_password$1 = "Save new password";
|
|
6549
|
+
var teacher_code$1 = "Teacher code";
|
|
6550
|
+
var number_of_conversations$1 = "Number of conversations";
|
|
6551
|
+
var number_of_expected_conversations_based_on_the_goal$1 = "Number of expected conversations based on the goal";
|
|
6528
6552
|
var lang_uk = {
|
|
6529
6553
|
dashboard: dashboard$1,
|
|
6530
6554
|
user: user$1,
|
|
@@ -7517,6 +7541,7 @@ var lang_uk = {
|
|
|
7517
7541
|
created_at: created_at$1,
|
|
7518
7542
|
do_you_want_to_remove_this_template: do_you_want_to_remove_this_template$1,
|
|
7519
7543
|
one_roster_setting: one_roster_setting$1,
|
|
7544
|
+
clever_setting: clever_setting$1,
|
|
7520
7545
|
users: users$1,
|
|
7521
7546
|
one_roster_config: one_roster_config$1,
|
|
7522
7547
|
end_point_url: end_point_url$1,
|
|
@@ -8562,6 +8587,7 @@ var lang_uk = {
|
|
|
8562
8587
|
leave: leave$1,
|
|
8563
8588
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$1,
|
|
8564
8589
|
my_dashboard: my_dashboard$1,
|
|
8590
|
+
nice_choice_what_area_of_category_would_you_like_to_work_on: nice_choice_what_area_of_category_would_you_like_to_work_on$1,
|
|
8565
8591
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "Nice choice! What area of Well-being would you like to work on?",
|
|
8566
8592
|
nice_choice_what_area_of_academics_would_you_like_to_work_on: nice_choice_what_area_of_academics_would_you_like_to_work_on$1,
|
|
8567
8593
|
nice_choice_what_area_of_organization_would_you_like_to_work_on: nice_choice_what_area_of_organization_would_you_like_to_work_on$1,
|
|
@@ -8720,7 +8746,13 @@ var lang_uk = {
|
|
|
8720
8746
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$1,
|
|
8721
8747
|
please_add_title_note: please_add_title_note$1,
|
|
8722
8748
|
notes_and_logs: notes_and_logs$1,
|
|
8723
|
-
school_monthly_usage: school_monthly_usage$1
|
|
8749
|
+
school_monthly_usage: school_monthly_usage$1,
|
|
8750
|
+
location: location$2,
|
|
8751
|
+
edit_my_profile: edit_my_profile$1,
|
|
8752
|
+
save_new_password: save_new_password$1,
|
|
8753
|
+
teacher_code: teacher_code$1,
|
|
8754
|
+
number_of_conversations: number_of_conversations$1,
|
|
8755
|
+
number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$1
|
|
8724
8756
|
};
|
|
8725
8757
|
|
|
8726
8758
|
var dashboard$2 = "لوحة المعلومات";
|
|
@@ -9529,7 +9561,7 @@ var email_notifications$2 = "إشعارات البريد الإلكتروني";
|
|
|
9529
9561
|
var turn_on_all_emails$2 = "تشغيل جميع عناوين البريد الإلكتروني";
|
|
9530
9562
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$2 = "استجابة طالب للاستعداد للتعلم في المحادثة الفردية بـ \"لا\"";
|
|
9531
9563
|
var a_student_reported_a_low_safety_score_on_a_check_in$2 = "إبلاغ طالب عن انخفاض درجة السلامة عند تسجيل حضوره";
|
|
9532
|
-
var continue_as$2 = "الاستمرار
|
|
9564
|
+
var continue_as$2 = "الاستمرار كـ";
|
|
9533
9565
|
var admin$2 = "المدير";
|
|
9534
9566
|
var counselor$2 = "المستشار";
|
|
9535
9567
|
var support_teacher$2 = "معلِّم الدعم";
|
|
@@ -9693,6 +9725,7 @@ var create_template_system$2 = "إنشاء قالب النظام";
|
|
|
9693
9725
|
var created_at$2 = "تم إنشاؤه في";
|
|
9694
9726
|
var do_you_want_to_remove_this_template$2 = "هل تريد إزالة هذا القالب؟";
|
|
9695
9727
|
var one_roster_setting$2 = "إعداد OneRoster";
|
|
9728
|
+
var clever_setting$2 = "إعداد ذكي";
|
|
9696
9729
|
var users$2 = "المستخدمون";
|
|
9697
9730
|
var one_roster_config$2 = "ضبط OneRoster";
|
|
9698
9731
|
var end_point_url$2 = "عنوان URL لنقطة النهاية";
|
|
@@ -10752,6 +10785,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
10752
10785
|
var leave$2 = "يترك";
|
|
10753
10786
|
var go_to_the_survey_dashboard$2 = "انتقل إلى لوحة معلومات الاستطلاع";
|
|
10754
10787
|
var my_dashboard$2 = "لوحة التحكم الخاصة بي";
|
|
10788
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$2 = "اختيار جميل! ما هو مجال {{category}} الذي ترغب في العمل عليه؟";
|
|
10755
10789
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$2 = "اختيار جميل! ما هو المجال الأكاديمي الذي ترغب بالعمل فيه؟";
|
|
10756
10790
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$2 = "اختيار جميل! في أي مجال من مجالات المنظمة تود العمل؟";
|
|
10757
10791
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$2 = "اختيار جميل! ما هو مجال التركيز الذي ترغب في العمل عليه؟";
|
|
@@ -10822,7 +10856,7 @@ var add_1_1_conversation_notes$2 = "Add 1-1 Conversation notes";
|
|
|
10822
10856
|
var save_data$2 = "Save data";
|
|
10823
10857
|
var please_select_date_1_1_conversation$2 = "Please select date 1-1 conversation!";
|
|
10824
10858
|
var please_write_something_to_this_1_1_conversation$2 = "Please write something to this 1-1 conversation!";
|
|
10825
|
-
var data_1_1_conversation_cannot_exceed_300_characters$2 = "Data 1-1 conversation cannot exceed
|
|
10859
|
+
var data_1_1_conversation_cannot_exceed_300_characters$2 = "Data 1-1 conversation cannot exceed 1000 characters!";
|
|
10826
10860
|
var no_need_for_it$2 = "No need for it";
|
|
10827
10861
|
var conversation_saved$2 = "Conversation saved!";
|
|
10828
10862
|
var what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal$2 = "What did you and the student choose as an action step?<br/>Would you like to add it as a Goal?";
|
|
@@ -10840,7 +10874,7 @@ var please_set_time_1_1_conversation$2 = "Please set time 1-1 conversation";
|
|
|
10840
10874
|
var type_your_answer_here$2 = "Type your answer here...";
|
|
10841
10875
|
var not_ready_to_learn$2 = "Not ready to learn";
|
|
10842
10876
|
var delete_bulk$2 = "Delete Bulk";
|
|
10843
|
-
var number_of_students_with_at_least_one_very_low_metric$2 = "
|
|
10877
|
+
var number_of_students_with_at_least_one_very_low_metric$2 = "Students with concerning metrics";
|
|
10844
10878
|
var this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40$2 = "This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%";
|
|
10845
10879
|
var of_students_have_concerned_metrics$2 = "of students have concerned metrics";
|
|
10846
10880
|
var have_metrics_40$2 = "have metrics <40%";
|
|
@@ -10896,6 +10930,12 @@ var type_the_main_focus_of_this_session$2 = "Type the main focus of this session
|
|
|
10896
10930
|
var please_add_title_note$2 = "Please add note title";
|
|
10897
10931
|
var notes_and_logs$2 = "Notes and Logs";
|
|
10898
10932
|
var school_monthly_usage$2 = "School Monthly Usage";
|
|
10933
|
+
var location$3 = "Location";
|
|
10934
|
+
var edit_my_profile$2 = "Edit My Profile";
|
|
10935
|
+
var save_new_password$2 = "Save new password";
|
|
10936
|
+
var teacher_code$2 = "Teacher code";
|
|
10937
|
+
var number_of_conversations$2 = "Number of conversations";
|
|
10938
|
+
var number_of_expected_conversations_based_on_the_goal$2 = "Number of expected conversations based on the goal";
|
|
10899
10939
|
var lang_ar = {
|
|
10900
10940
|
dashboard: dashboard$2,
|
|
10901
10941
|
user: user$2,
|
|
@@ -11883,6 +11923,7 @@ var lang_ar = {
|
|
|
11883
11923
|
created_at: created_at$2,
|
|
11884
11924
|
do_you_want_to_remove_this_template: do_you_want_to_remove_this_template$2,
|
|
11885
11925
|
one_roster_setting: one_roster_setting$2,
|
|
11926
|
+
clever_setting: clever_setting$2,
|
|
11886
11927
|
users: users$2,
|
|
11887
11928
|
one_roster_config: one_roster_config$2,
|
|
11888
11929
|
end_point_url: end_point_url$2,
|
|
@@ -12967,6 +13008,7 @@ var lang_ar = {
|
|
|
12967
13008
|
leave: leave$2,
|
|
12968
13009
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$2,
|
|
12969
13010
|
my_dashboard: my_dashboard$2,
|
|
13011
|
+
nice_choice_what_area_of_category_would_you_like_to_work_on: nice_choice_what_area_of_category_would_you_like_to_work_on$2,
|
|
12970
13012
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "اختيار جميل! ما هو مجال الصحة والرفاهية الذي ترغب في العمل فيه؟",
|
|
12971
13013
|
nice_choice_what_area_of_academics_would_you_like_to_work_on: nice_choice_what_area_of_academics_would_you_like_to_work_on$2,
|
|
12972
13014
|
nice_choice_what_area_of_organization_would_you_like_to_work_on: nice_choice_what_area_of_organization_would_you_like_to_work_on$2,
|
|
@@ -13123,7 +13165,13 @@ var lang_ar = {
|
|
|
13123
13165
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$2,
|
|
13124
13166
|
please_add_title_note: please_add_title_note$2,
|
|
13125
13167
|
notes_and_logs: notes_and_logs$2,
|
|
13126
|
-
school_monthly_usage: school_monthly_usage$2
|
|
13168
|
+
school_monthly_usage: school_monthly_usage$2,
|
|
13169
|
+
location: location$3,
|
|
13170
|
+
edit_my_profile: edit_my_profile$2,
|
|
13171
|
+
save_new_password: save_new_password$2,
|
|
13172
|
+
teacher_code: teacher_code$2,
|
|
13173
|
+
number_of_conversations: number_of_conversations$2,
|
|
13174
|
+
number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$2
|
|
13127
13175
|
};
|
|
13128
13176
|
|
|
13129
13177
|
var dashboard$3 = "Cuadro de mandos";
|
|
@@ -13932,7 +13980,7 @@ var email_notifications$3 = "Notificaciones por correo electrónico";
|
|
|
13932
13980
|
var turn_on_all_emails$3 = "Active todos los correos electrónicos";
|
|
13933
13981
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$3 = "Un estudiante responde a un 1-1 Preparación para aprender con un No";
|
|
13934
13982
|
var a_student_reported_a_low_safety_score_on_a_check_in$3 = "Un estudiante informó de una puntuación de seguridad baja en un registro";
|
|
13935
|
-
var continue_as$3 = "Continuar como
|
|
13983
|
+
var continue_as$3 = "Continuar como";
|
|
13936
13984
|
var admin$3 = "Administrador";
|
|
13937
13985
|
var counselor$3 = "Consejero";
|
|
13938
13986
|
var support_teacher$3 = "Profesor de apoyo";
|
|
@@ -14096,6 +14144,7 @@ var create_template_system$3 = "Crear sistema de plantillas";
|
|
|
14096
14144
|
var created_at$3 = "Creado en";
|
|
14097
14145
|
var do_you_want_to_remove_this_template$3 = "¿Desea eliminar esta plantilla?";
|
|
14098
14146
|
var one_roster_setting$3 = "Configuración de OneRoster";
|
|
14147
|
+
var clever_setting$3 = "Configuración inteligente";
|
|
14099
14148
|
var users$3 = "Usuarios";
|
|
14100
14149
|
var one_roster_config$3 = "Configuración OneRoster";
|
|
14101
14150
|
var end_point_url$3 = "URL del punto final";
|
|
@@ -15155,6 +15204,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
15155
15204
|
var leave$3 = "dejar";
|
|
15156
15205
|
var go_to_the_survey_dashboard$3 = "Ir al panel de encuestas";
|
|
15157
15206
|
var my_dashboard$3 = "Mi panel de control";
|
|
15207
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$3 = "¡Buena elección! ¿En qué área de {{category}} te gustaría trabajar?";
|
|
15158
15208
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$3 = "¡Chica Nick! Y veo si tienes estudios académicos y un hijo tuyo, Taher, ¿tienes algún trabajo?";
|
|
15159
15209
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$3 = "¡Chica Nick! Y a ver si ya estás arreglando y tienes un hijo, tienes un papel?";
|
|
15160
15210
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$3 = "¡Chica Nick! Y a ver si Fox y su hijo son como tú, Taher, ¿qué pasa?";
|
|
@@ -15226,7 +15276,7 @@ var add_1_1_conversation_notes$3 = "Add 1-1 Conversation notes";
|
|
|
15226
15276
|
var save_data$3 = "Save data";
|
|
15227
15277
|
var please_select_date_1_1_conversation$3 = "Please select date 1-1 conversation!";
|
|
15228
15278
|
var please_write_something_to_this_1_1_conversation$3 = "Please write something to this 1-1 conversation!";
|
|
15229
|
-
var data_1_1_conversation_cannot_exceed_300_characters$3 = "Data 1-1 conversation cannot exceed
|
|
15279
|
+
var data_1_1_conversation_cannot_exceed_300_characters$3 = "Data 1-1 conversation cannot exceed 1000 characters!";
|
|
15230
15280
|
var no_need_for_it$3 = "No need for it";
|
|
15231
15281
|
var conversation_saved$3 = "Conversation saved!";
|
|
15232
15282
|
var what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal$3 = "What did you and the student choose as an action step?<br/>Would you like to add it as a Goal?";
|
|
@@ -15243,7 +15293,7 @@ var yes_view_student_goals$3 = "Yes, view student goals";
|
|
|
15243
15293
|
var please_set_time_1_1_conversation$3 = "Please set time 1-1 conversation";
|
|
15244
15294
|
var type_your_answer_here$3 = "Type your answer here...";
|
|
15245
15295
|
var delete_bulk$3 = "Delete Bulk";
|
|
15246
|
-
var number_of_students_with_at_least_one_very_low_metric$3 = "
|
|
15296
|
+
var number_of_students_with_at_least_one_very_low_metric$3 = "Students with concerning metrics";
|
|
15247
15297
|
var this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40$3 = "This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%";
|
|
15248
15298
|
var of_students_have_concerned_metrics$3 = "of students have concerned metrics";
|
|
15249
15299
|
var have_metrics_40$3 = "have metrics <40%";
|
|
@@ -15299,6 +15349,12 @@ var type_the_main_focus_of_this_session$3 = "Type the main focus of this session
|
|
|
15299
15349
|
var please_add_title_note$3 = "Please add note title";
|
|
15300
15350
|
var notes_and_logs$3 = "Notes and Logs";
|
|
15301
15351
|
var school_monthly_usage$3 = "School Monthly Usage";
|
|
15352
|
+
var location$4 = "Location";
|
|
15353
|
+
var edit_my_profile$3 = "Edit My Profile";
|
|
15354
|
+
var save_new_password$3 = "Save new password";
|
|
15355
|
+
var teacher_code$3 = "Teacher code";
|
|
15356
|
+
var number_of_conversations$3 = "Number of conversations";
|
|
15357
|
+
var number_of_expected_conversations_based_on_the_goal$3 = "Number of expected conversations based on the goal";
|
|
15302
15358
|
var lang_es = {
|
|
15303
15359
|
dashboard: dashboard$3,
|
|
15304
15360
|
user: user$3,
|
|
@@ -16286,6 +16342,7 @@ var lang_es = {
|
|
|
16286
16342
|
created_at: created_at$3,
|
|
16287
16343
|
do_you_want_to_remove_this_template: do_you_want_to_remove_this_template$3,
|
|
16288
16344
|
one_roster_setting: one_roster_setting$3,
|
|
16345
|
+
clever_setting: clever_setting$3,
|
|
16289
16346
|
users: users$3,
|
|
16290
16347
|
one_roster_config: one_roster_config$3,
|
|
16291
16348
|
end_point_url: end_point_url$3,
|
|
@@ -17370,6 +17427,7 @@ var lang_es = {
|
|
|
17370
17427
|
leave: leave$3,
|
|
17371
17428
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$3,
|
|
17372
17429
|
my_dashboard: my_dashboard$3,
|
|
17430
|
+
nice_choice_what_area_of_category_would_you_like_to_work_on: nice_choice_what_area_of_category_would_you_like_to_work_on$3,
|
|
17373
17431
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "¡Buena elección! ¿En qué área del bienestar te gustaría trabajar?",
|
|
17374
17432
|
nice_choice_what_area_of_academics_would_you_like_to_work_on: nice_choice_what_area_of_academics_would_you_like_to_work_on$3,
|
|
17375
17433
|
nice_choice_what_area_of_organization_would_you_like_to_work_on: nice_choice_what_area_of_organization_would_you_like_to_work_on$3,
|
|
@@ -17526,7 +17584,13 @@ var lang_es = {
|
|
|
17526
17584
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$3,
|
|
17527
17585
|
please_add_title_note: please_add_title_note$3,
|
|
17528
17586
|
notes_and_logs: notes_and_logs$3,
|
|
17529
|
-
school_monthly_usage: school_monthly_usage$3
|
|
17587
|
+
school_monthly_usage: school_monthly_usage$3,
|
|
17588
|
+
location: location$4,
|
|
17589
|
+
edit_my_profile: edit_my_profile$3,
|
|
17590
|
+
save_new_password: save_new_password$3,
|
|
17591
|
+
teacher_code: teacher_code$3,
|
|
17592
|
+
number_of_conversations: number_of_conversations$3,
|
|
17593
|
+
number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$3
|
|
17530
17594
|
};
|
|
17531
17595
|
|
|
17532
17596
|
var dashboard$4 = "仪表板";
|
|
@@ -18335,7 +18399,7 @@ var email_notifications$4 = "电子邮件通知";
|
|
|
18335
18399
|
var turn_on_all_emails$4 = "打开所有电子邮件";
|
|
18336
18400
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$4 = "学生对 1-1 学习准备度的回复为“否”";
|
|
18337
18401
|
var a_student_reported_a_low_safety_score_on_a_check_in$4 = "学生在签到时报告安全分数低";
|
|
18338
|
-
var continue_as$4 = "
|
|
18402
|
+
var continue_as$4 = "继续担任";
|
|
18339
18403
|
var admin$4 = "管理员";
|
|
18340
18404
|
var counselor$4 = "辅导员";
|
|
18341
18405
|
var support_teacher$4 = "支持老师";
|
|
@@ -18499,6 +18563,7 @@ var create_template_system$4 = "创建模板系统";
|
|
|
18499
18563
|
var created_at$4 = "创建时间";
|
|
18500
18564
|
var do_you_want_to_remove_this_template$4 = "是否要删除此模板?";
|
|
18501
18565
|
var one_roster_setting$4 = "OneRoster 设置";
|
|
18566
|
+
var clever_setting$4 = "巧妙的设置";
|
|
18502
18567
|
var users$4 = "用户";
|
|
18503
18568
|
var one_roster_config$4 = "OneRoster 配置";
|
|
18504
18569
|
var end_point_url$4 = "端点 URL";
|
|
@@ -19558,6 +19623,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
19558
19623
|
var leave$4 = "离开";
|
|
19559
19624
|
var go_to_the_survey_dashboard$4 = "前往调查仪表板";
|
|
19560
19625
|
var my_dashboard$4 = "我的仪表板";
|
|
19626
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$4 = "不错的选择!您想在哪个{{category}}领域开展工作?";
|
|
19561
19627
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$4 = "尼克·奇克!我看到如果你有学者和你的儿子塔希尔,你有论文吗?";
|
|
19562
19628
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$4 = "尼克·奇克!让我看看,如果您正在安排,并且您有一个儿子,您有文件吗?";
|
|
19563
19629
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$4 = "不错的选择!您希望在哪个重点领域开展工作?";
|
|
@@ -19629,7 +19695,7 @@ var add_1_1_conversation_notes$4 = "Add 1-1 Conversation notes";
|
|
|
19629
19695
|
var save_data$4 = "Save data";
|
|
19630
19696
|
var please_select_date_1_1_conversation$4 = "Please select date 1-1 conversation!";
|
|
19631
19697
|
var please_write_something_to_this_1_1_conversation$4 = "Please write something to this 1-1 conversation!";
|
|
19632
|
-
var data_1_1_conversation_cannot_exceed_300_characters$4 = "Data 1-1 conversation cannot exceed
|
|
19698
|
+
var data_1_1_conversation_cannot_exceed_300_characters$4 = "Data 1-1 conversation cannot exceed 1000 characters!";
|
|
19633
19699
|
var no_need_for_it$4 = "No need for it";
|
|
19634
19700
|
var conversation_saved$4 = "Conversation saved!";
|
|
19635
19701
|
var what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal$4 = "What did you and the student choose as an action step?<br/>Would you like to add it as a Goal?";
|
|
@@ -19646,7 +19712,7 @@ var yes_view_student_goals$4 = "Yes, view student goals";
|
|
|
19646
19712
|
var please_set_time_1_1_conversation$4 = "Please set time 1-1 conversation";
|
|
19647
19713
|
var type_your_answer_here$4 = "Type your answer here...";
|
|
19648
19714
|
var delete_bulk$4 = "Delete Bulk";
|
|
19649
|
-
var number_of_students_with_at_least_one_very_low_metric$4 = "
|
|
19715
|
+
var number_of_students_with_at_least_one_very_low_metric$4 = "Students with concerning metrics";
|
|
19650
19716
|
var this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40$4 = "This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%";
|
|
19651
19717
|
var of_students_have_concerned_metrics$4 = "of students have concerned metrics";
|
|
19652
19718
|
var have_metrics_40$4 = "have metrics <40%";
|
|
@@ -19702,6 +19768,12 @@ var type_the_main_focus_of_this_session$4 = "Type the main focus of this session
|
|
|
19702
19768
|
var please_add_title_note$4 = "Please add note title";
|
|
19703
19769
|
var notes_and_logs$4 = "Notes and Logs";
|
|
19704
19770
|
var school_monthly_usage$4 = "School Monthly Usage";
|
|
19771
|
+
var location$5 = "Location";
|
|
19772
|
+
var edit_my_profile$4 = "Edit My Profile";
|
|
19773
|
+
var save_new_password$4 = "Save new password";
|
|
19774
|
+
var teacher_code$4 = "Teacher code";
|
|
19775
|
+
var number_of_conversations$4 = "Number of conversations";
|
|
19776
|
+
var number_of_expected_conversations_based_on_the_goal$4 = "Number of expected conversations based on the goal";
|
|
19705
19777
|
var lang_zh = {
|
|
19706
19778
|
dashboard: dashboard$4,
|
|
19707
19779
|
user: user$4,
|
|
@@ -20689,6 +20761,7 @@ var lang_zh = {
|
|
|
20689
20761
|
created_at: created_at$4,
|
|
20690
20762
|
do_you_want_to_remove_this_template: do_you_want_to_remove_this_template$4,
|
|
20691
20763
|
one_roster_setting: one_roster_setting$4,
|
|
20764
|
+
clever_setting: clever_setting$4,
|
|
20692
20765
|
users: users$4,
|
|
20693
20766
|
one_roster_config: one_roster_config$4,
|
|
20694
20767
|
end_point_url: end_point_url$4,
|
|
@@ -21773,6 +21846,7 @@ var lang_zh = {
|
|
|
21773
21846
|
leave: leave$4,
|
|
21774
21847
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$4,
|
|
21775
21848
|
my_dashboard: my_dashboard$4,
|
|
21849
|
+
nice_choice_what_area_of_category_would_you_like_to_work_on: nice_choice_what_area_of_category_would_you_like_to_work_on$4,
|
|
21776
21850
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "不错的选择!您想在哪个幸福健康领域开展工作?",
|
|
21777
21851
|
nice_choice_what_area_of_academics_would_you_like_to_work_on: nice_choice_what_area_of_academics_would_you_like_to_work_on$4,
|
|
21778
21852
|
nice_choice_what_area_of_organization_would_you_like_to_work_on: nice_choice_what_area_of_organization_would_you_like_to_work_on$4,
|
|
@@ -21929,7 +22003,13 @@ var lang_zh = {
|
|
|
21929
22003
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$4,
|
|
21930
22004
|
please_add_title_note: please_add_title_note$4,
|
|
21931
22005
|
notes_and_logs: notes_and_logs$4,
|
|
21932
|
-
school_monthly_usage: school_monthly_usage$4
|
|
22006
|
+
school_monthly_usage: school_monthly_usage$4,
|
|
22007
|
+
location: location$5,
|
|
22008
|
+
edit_my_profile: edit_my_profile$4,
|
|
22009
|
+
save_new_password: save_new_password$4,
|
|
22010
|
+
teacher_code: teacher_code$4,
|
|
22011
|
+
number_of_conversations: number_of_conversations$4,
|
|
22012
|
+
number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$4
|
|
21933
22013
|
};
|
|
21934
22014
|
|
|
21935
22015
|
var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
@@ -41800,6 +41880,212 @@ var TheHeaderDropdown = function TheHeaderDropdown(_ref) {
|
|
|
41800
41880
|
})), t("log_out")))));
|
|
41801
41881
|
};
|
|
41802
41882
|
|
|
41883
|
+
var apiGetLanguage = function apiGetLanguage() {
|
|
41884
|
+
return api.get(BASE_URL + "/api/language");
|
|
41885
|
+
};
|
|
41886
|
+
|
|
41887
|
+
var apiUpdateLanguage = function apiUpdateLanguage(lang) {
|
|
41888
|
+
return api.put(BASE_URL + "/api/language?lang=" + lang);
|
|
41889
|
+
};
|
|
41890
|
+
|
|
41891
|
+
var LANGUAGE_SYSTEM = "LANGUAGE_SYSTEM";
|
|
41892
|
+
|
|
41893
|
+
var useLanguages = function useLanguages() {
|
|
41894
|
+
var dispatch = reactRedux.useDispatch();
|
|
41895
|
+
|
|
41896
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
41897
|
+
i18n = _useTranslation.i18n;
|
|
41898
|
+
|
|
41899
|
+
var language = reactRedux.useSelector(function (state) {
|
|
41900
|
+
return state.common.language;
|
|
41901
|
+
});
|
|
41902
|
+
var defaultLanguage = getCookieValue(LANGUAGE_SYSTEM) != null ? getCookieValue(LANGUAGE_SYSTEM) : DEFAULT_LANGUAGE_CODE;
|
|
41903
|
+
|
|
41904
|
+
var _useState = React.useState([]),
|
|
41905
|
+
languageList = _useState[0],
|
|
41906
|
+
setLanguageList = _useState[1];
|
|
41907
|
+
|
|
41908
|
+
var _useState2 = React.useState(false),
|
|
41909
|
+
dropdownOpen = _useState2[0],
|
|
41910
|
+
setDropdownOpen = _useState2[1];
|
|
41911
|
+
|
|
41912
|
+
var _useState3 = React.useState(defaultLanguage),
|
|
41913
|
+
currentLang = _useState3[0],
|
|
41914
|
+
setCurrentLang = _useState3[1];
|
|
41915
|
+
|
|
41916
|
+
var toggle = function toggle() {
|
|
41917
|
+
return setDropdownOpen(function (prevState) {
|
|
41918
|
+
return !prevState;
|
|
41919
|
+
});
|
|
41920
|
+
};
|
|
41921
|
+
|
|
41922
|
+
var changeLanguageApp = function changeLanguageApp(lang) {
|
|
41923
|
+
try {
|
|
41924
|
+
var _temp3 = function _temp3() {
|
|
41925
|
+
dispatch(setLoading(false));
|
|
41926
|
+
};
|
|
41927
|
+
|
|
41928
|
+
dispatch(setLoading(true));
|
|
41929
|
+
|
|
41930
|
+
var _temp4 = _catch(function () {
|
|
41931
|
+
return Promise.resolve(apiUpdateLanguage(lang)).then(function () {
|
|
41932
|
+
i18n.changeLanguage(lang);
|
|
41933
|
+
setCurrentLang(lang);
|
|
41934
|
+
dispatch(setLanguage(lang));
|
|
41935
|
+
});
|
|
41936
|
+
}, function (err) {
|
|
41937
|
+
var _err$response, _err$response$data;
|
|
41938
|
+
|
|
41939
|
+
dispatch(setAlert({
|
|
41940
|
+
type: "danger",
|
|
41941
|
+
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
|
|
41942
|
+
}));
|
|
41943
|
+
});
|
|
41944
|
+
|
|
41945
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
41946
|
+
} catch (e) {
|
|
41947
|
+
return Promise.reject(e);
|
|
41948
|
+
}
|
|
41949
|
+
};
|
|
41950
|
+
|
|
41951
|
+
var getListLanguage = function getListLanguage() {
|
|
41952
|
+
try {
|
|
41953
|
+
var _temp6 = _catch(function () {
|
|
41954
|
+
return Promise.resolve(apiGetLanguage()).then(function (res) {
|
|
41955
|
+
setLanguageList(res.data);
|
|
41956
|
+
});
|
|
41957
|
+
}, function (err) {
|
|
41958
|
+
var _err$response2, _err$response2$data;
|
|
41959
|
+
|
|
41960
|
+
dispatch(setAlert({
|
|
41961
|
+
type: "danger",
|
|
41962
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
41963
|
+
}));
|
|
41964
|
+
});
|
|
41965
|
+
|
|
41966
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
41967
|
+
} catch (e) {
|
|
41968
|
+
return Promise.reject(e);
|
|
41969
|
+
}
|
|
41970
|
+
};
|
|
41971
|
+
|
|
41972
|
+
React.useEffect(function () {
|
|
41973
|
+
defaultLanguage != language && changeLanguageApp(defaultLanguage);
|
|
41974
|
+
getListLanguage();
|
|
41975
|
+
}, []);
|
|
41976
|
+
return {
|
|
41977
|
+
languageList: languageList,
|
|
41978
|
+
toggle: toggle,
|
|
41979
|
+
dropdownOpen: dropdownOpen,
|
|
41980
|
+
currentLang: currentLang,
|
|
41981
|
+
changeLanguageApp: changeLanguageApp,
|
|
41982
|
+
setCurrentLang: setCurrentLang
|
|
41983
|
+
};
|
|
41984
|
+
};
|
|
41985
|
+
|
|
41986
|
+
var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
41987
|
+
var _useLanguages = useLanguages(),
|
|
41988
|
+
languageList = _useLanguages.languageList,
|
|
41989
|
+
toggle = _useLanguages.toggle,
|
|
41990
|
+
dropdownOpen = _useLanguages.dropdownOpen,
|
|
41991
|
+
currentLang = _useLanguages.currentLang,
|
|
41992
|
+
changeLanguageApp = _useLanguages.changeLanguageApp;
|
|
41993
|
+
|
|
41994
|
+
var currentLanguage = React.useMemo(function () {
|
|
41995
|
+
var current = languageList.find(function (i) {
|
|
41996
|
+
return i.code === currentLang;
|
|
41997
|
+
});
|
|
41998
|
+
if (!current) return null;
|
|
41999
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement("img", {
|
|
42000
|
+
className: "mr-2 " + styles['dropdown-menu-flag'],
|
|
42001
|
+
src: "" + getStaticFileUrl(current.image)
|
|
42002
|
+
}), " ", current.name);
|
|
42003
|
+
}, [currentLang, languageList]);
|
|
42004
|
+
return React__default.createElement(reactstrap.Dropdown, {
|
|
42005
|
+
isOpen: dropdownOpen,
|
|
42006
|
+
toggle: toggle,
|
|
42007
|
+
className: "" + styles["dropdown-menu"]
|
|
42008
|
+
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
42009
|
+
className: styles["header-avatar"] + " d-flex align-items-center"
|
|
42010
|
+
}, React__default.createElement("span", {
|
|
42011
|
+
style: {
|
|
42012
|
+
color: "#000",
|
|
42013
|
+
textTransform: "capitalize",
|
|
42014
|
+
display: 'flex',
|
|
42015
|
+
alignItems: 'center'
|
|
42016
|
+
}
|
|
42017
|
+
}, currentLanguage, React__default.createElement(bs.BsChevronDown, {
|
|
42018
|
+
className: "ml-2",
|
|
42019
|
+
style: {
|
|
42020
|
+
fontSize: '10px'
|
|
42021
|
+
}
|
|
42022
|
+
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
42023
|
+
className: styles["dropdown-content-language"]
|
|
42024
|
+
}, !!languageList && languageList.length > 0 && languageList.map(function (lang, index) {
|
|
42025
|
+
return React__default.createElement(reactstrap.DropdownItem, {
|
|
42026
|
+
key: lang.code,
|
|
42027
|
+
className: styles["dropdown-change"] + " px-0 py-0 " + (index === languageList.length - 1 ? "pb-2" : "pt-2"),
|
|
42028
|
+
onClick: function onClick() {
|
|
42029
|
+
return changeLanguageApp(lang.code);
|
|
42030
|
+
}
|
|
42031
|
+
}, React__default.createElement("div", {
|
|
42032
|
+
className: styles["dropdown-item-language"] + " " + styles["item-logout"] + " " + (currentLang == lang.code ? styles['dropdown-item-language-active'] : "") + " d-flex align-items-center w-100"
|
|
42033
|
+
}, React__default.createElement("span", {
|
|
42034
|
+
className: "mr-2 d-flex hover-opacity"
|
|
42035
|
+
}, React__default.createElement("img", {
|
|
42036
|
+
style: {
|
|
42037
|
+
width: "30px",
|
|
42038
|
+
height: "25px",
|
|
42039
|
+
borderRadius: "5px"
|
|
42040
|
+
},
|
|
42041
|
+
src: getStaticFileUrl(lang.image)
|
|
42042
|
+
})), lang.name));
|
|
42043
|
+
})));
|
|
42044
|
+
};
|
|
42045
|
+
|
|
42046
|
+
var TheHeader = function TheHeader(_ref) {
|
|
42047
|
+
var onToggleModel = _ref.onToggleModel;
|
|
42048
|
+
var dispatch = reactRedux.useDispatch();
|
|
42049
|
+
var sidebarShow = reactRedux.useSelector(function (state) {
|
|
42050
|
+
return state.common.sidebarShow;
|
|
42051
|
+
});
|
|
42052
|
+
|
|
42053
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
42054
|
+
t = _useTranslation.t;
|
|
42055
|
+
|
|
42056
|
+
var toggleSidebarMobile = function toggleSidebarMobile() {
|
|
42057
|
+
var val = [false, "responsive"].includes(sidebarShow) ? true : "responsive";
|
|
42058
|
+
dispatch(setSidebar(val));
|
|
42059
|
+
};
|
|
42060
|
+
|
|
42061
|
+
var isDistrict = window.location.host.includes("-district");
|
|
42062
|
+
return React__default.createElement(react.CHeader, {
|
|
42063
|
+
withSubheader: true,
|
|
42064
|
+
className: "d-flex align-items-center justify-content-end"
|
|
42065
|
+
}, React__default.createElement(react.CToggler, {
|
|
42066
|
+
inHeader: true,
|
|
42067
|
+
className: "ml-md-3 d-lg-none",
|
|
42068
|
+
onClick: toggleSidebarMobile
|
|
42069
|
+
}), React__default.createElement(react.CHeaderBrand, {
|
|
42070
|
+
className: "mx-auto flex-grow-1 d-lg-none",
|
|
42071
|
+
to: "/"
|
|
42072
|
+
}, React__default.createElement("img", {
|
|
42073
|
+
src: getStaticFileUrl(Images.LOGO_HEADER),
|
|
42074
|
+
className: styles["header-logo"]
|
|
42075
|
+
})), React__default.createElement(react.CHeaderNav, {
|
|
42076
|
+
className: "pr-3"
|
|
42077
|
+
}, React__default.createElement(TheLanguageDropdown, null), React__default.createElement("a", {
|
|
42078
|
+
className: "mr-3",
|
|
42079
|
+
style: {
|
|
42080
|
+
color: '#000'
|
|
42081
|
+
},
|
|
42082
|
+
href: '/privacy-policy',
|
|
42083
|
+
target: "blank"
|
|
42084
|
+
}, t("privacy_policy")), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, {
|
|
42085
|
+
onToggleModel: onToggleModel
|
|
42086
|
+
})));
|
|
42087
|
+
};
|
|
42088
|
+
|
|
41803
42089
|
var TITLE$3 = "Not found";
|
|
41804
42090
|
|
|
41805
42091
|
var NotFound = function NotFound() {
|
|
@@ -41857,6 +42143,258 @@ var TheContent = function TheContent(_ref) {
|
|
|
41857
42143
|
|
|
41858
42144
|
var TheContent$1 = React__default.memo(TheContent);
|
|
41859
42145
|
|
|
42146
|
+
var loadingStyle = {
|
|
42147
|
+
minWidth: "100vw",
|
|
42148
|
+
minHeight: "100vh",
|
|
42149
|
+
position: "fixed",
|
|
42150
|
+
top: 0,
|
|
42151
|
+
left: 0,
|
|
42152
|
+
zIndex: 999999999,
|
|
42153
|
+
backgroundColor: "rgba(0, 0, 0, 0.4)",
|
|
42154
|
+
display: "flex",
|
|
42155
|
+
justifyContent: "center",
|
|
42156
|
+
alignItems: "center"
|
|
42157
|
+
};
|
|
42158
|
+
|
|
42159
|
+
var Loading = function Loading() {
|
|
42160
|
+
var isLoading = reactRedux.useSelector(function (state) {
|
|
42161
|
+
return state.common.isLoading;
|
|
42162
|
+
});
|
|
42163
|
+
localStorage.setItem("LAST_TIME_REQUETST", moment().utc().format("YYYY-MM-DD HH:mm:ss"));
|
|
42164
|
+
return isLoading ? React__default.createElement("div", {
|
|
42165
|
+
style: loadingStyle
|
|
42166
|
+
}, React__default.createElement("div", {
|
|
42167
|
+
className: "spinner-border text-secondary",
|
|
42168
|
+
role: "status"
|
|
42169
|
+
}, React__default.createElement("span", {
|
|
42170
|
+
className: "sr-only"
|
|
42171
|
+
}, "Loading..."))) : null;
|
|
42172
|
+
};
|
|
42173
|
+
|
|
42174
|
+
var firstCheckToken = function firstCheckToken() {
|
|
42175
|
+
return Promise.resolve(_catch(function () {
|
|
42176
|
+
var token = getAccessToken();
|
|
42177
|
+
return token ? Promise.resolve(checkToken(token)).then(function (tokenStatus) {
|
|
42178
|
+
return tokenStatus.data ? true : false;
|
|
42179
|
+
}) : false;
|
|
42180
|
+
}, function () {
|
|
42181
|
+
return false;
|
|
42182
|
+
}));
|
|
42183
|
+
};
|
|
42184
|
+
|
|
42185
|
+
var canAccess = function canAccess(userRoles, componentRoles) {
|
|
42186
|
+
if (!Array.isArray(userRoles)) {
|
|
42187
|
+
return false;
|
|
42188
|
+
}
|
|
42189
|
+
|
|
42190
|
+
if (Array.isArray(componentRoles)) {
|
|
42191
|
+
var intersects = userRoles.filter(function (i) {
|
|
42192
|
+
return componentRoles.includes(i);
|
|
42193
|
+
});
|
|
42194
|
+
return intersects.length > 0;
|
|
42195
|
+
}
|
|
42196
|
+
|
|
42197
|
+
return true;
|
|
42198
|
+
};
|
|
42199
|
+
|
|
42200
|
+
var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
42201
|
+
var _handleUserRole;
|
|
42202
|
+
|
|
42203
|
+
var open = _ref.open,
|
|
42204
|
+
onToggleModel = _ref.onToggleModel;
|
|
42205
|
+
var dispatch = reactRedux.useDispatch();
|
|
42206
|
+
|
|
42207
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
42208
|
+
t = _useTranslation.t;
|
|
42209
|
+
|
|
42210
|
+
var history = reactRouterDom.useHistory();
|
|
42211
|
+
var pathname = window.location.pathname;
|
|
42212
|
+
var user = reactRedux.useSelector(function (state) {
|
|
42213
|
+
return state.common.user;
|
|
42214
|
+
});
|
|
42215
|
+
var roles = user === null || user === void 0 ? void 0 : user.roles;
|
|
42216
|
+
|
|
42217
|
+
var handleSelectUserRoles = function handleSelectUserRoles(roles) {
|
|
42218
|
+
dispatch(setLoading(true));
|
|
42219
|
+
var roleSelect = roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles;
|
|
42220
|
+
dispatch(setUser(_extends({}, user, {
|
|
42221
|
+
roles: roleSelect
|
|
42222
|
+
})));
|
|
42223
|
+
localStorage.setItem("ROLES", roleSelect.toString());
|
|
42224
|
+
onToggleModel();
|
|
42225
|
+
|
|
42226
|
+
if (roles.includes("Parent")) {
|
|
42227
|
+
history.push("/parent");
|
|
42228
|
+
} else if (roles.includes("Admin")) {
|
|
42229
|
+
history.push("/admin/home");
|
|
42230
|
+
} else {
|
|
42231
|
+
pathname !== "/home" ? history.push("/home") : window.location.reload();
|
|
42232
|
+
}
|
|
42233
|
+
};
|
|
42234
|
+
|
|
42235
|
+
return React__default.createElement(reactstrap.Modal, {
|
|
42236
|
+
isOpen: open,
|
|
42237
|
+
toggle: function toggle() {
|
|
42238
|
+
return onToggleModel();
|
|
42239
|
+
},
|
|
42240
|
+
className: "" + styles["model-switch-roles"],
|
|
42241
|
+
centered: true
|
|
42242
|
+
}, React__default.createElement("p", {
|
|
42243
|
+
className: "" + styles["title"]
|
|
42244
|
+
}, t("continue_as")), React__default.createElement("div", null, (_handleUserRole = handleUserRole(user === null || user === void 0 ? void 0 : user.roles)) === null || _handleUserRole === void 0 ? void 0 : _handleUserRole.map(function (r) {
|
|
42245
|
+
return React__default.createElement("p", {
|
|
42246
|
+
key: r,
|
|
42247
|
+
className: styles["item-select-role"] + " " + styles[roles.includes("Teacher") && roles.includes("Assistant") && r === "Teacher/Assistant" && !roles.includes("Admin") || roles.includes("Admin") && r === "Admin" || roles.includes(r) && !roles.includes("Admin") ? "item-role-active" : ""],
|
|
42248
|
+
onClick: function onClick() {
|
|
42249
|
+
return handleSelectUserRoles([r]);
|
|
42250
|
+
}
|
|
42251
|
+
}, r == "SecondaryTeacher" ? "Support Teacher" : r);
|
|
42252
|
+
})));
|
|
42253
|
+
};
|
|
42254
|
+
|
|
42255
|
+
var TheLayout = function TheLayout(_ref) {
|
|
42256
|
+
var routes = _ref.routes,
|
|
42257
|
+
navigation = _ref.navigation;
|
|
42258
|
+
var history = reactRouterDom.useHistory();
|
|
42259
|
+
var dispatch = reactRedux.useDispatch();
|
|
42260
|
+
var user = reactRedux.useSelector(function (state) {
|
|
42261
|
+
return state.common.user;
|
|
42262
|
+
});
|
|
42263
|
+
var language = reactRedux.useSelector(function (state) {
|
|
42264
|
+
return state.common.language;
|
|
42265
|
+
});
|
|
42266
|
+
|
|
42267
|
+
var _useState = React.useState(false),
|
|
42268
|
+
openModelSelectRole = _useState[0],
|
|
42269
|
+
setOpenModelSelectRole = _useState[1];
|
|
42270
|
+
|
|
42271
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
42272
|
+
t = _useTranslation.t;
|
|
42273
|
+
|
|
42274
|
+
var location = reactRouterDom.useLocation();
|
|
42275
|
+
var isNotification = location.pathname.includes("notifications");
|
|
42276
|
+
var isDistrict = window.location.host.includes("-district");
|
|
42277
|
+
|
|
42278
|
+
var handleToggleModel = function handleToggleModel() {
|
|
42279
|
+
setOpenModelSelectRole(!openModelSelectRole);
|
|
42280
|
+
};
|
|
42281
|
+
|
|
42282
|
+
var authRoutes = React.useMemo(function () {
|
|
42283
|
+
return routes.filter(function (route) {
|
|
42284
|
+
return canAccess(user === null || user === void 0 ? void 0 : user.roles, route.roles);
|
|
42285
|
+
}).filter(function (route) {
|
|
42286
|
+
return !!route.isDistrict === isDistrict;
|
|
42287
|
+
});
|
|
42288
|
+
}, [user, language]);
|
|
42289
|
+
var authNavigations = React.useMemo(function () {
|
|
42290
|
+
return navigation.map(function (item) {
|
|
42291
|
+
var _item$_children, _item$_children2;
|
|
42292
|
+
|
|
42293
|
+
return _extends({}, item, {
|
|
42294
|
+
name: t(item.name),
|
|
42295
|
+
_children: item !== null && item !== void 0 && (_item$_children = item._children) !== null && _item$_children !== void 0 && _item$_children.length ? item === null || item === void 0 ? void 0 : (_item$_children2 = item._children) === null || _item$_children2 === void 0 ? void 0 : _item$_children2.map(function (x) {
|
|
42296
|
+
return _extends({}, x, {
|
|
42297
|
+
name: t(x.name)
|
|
42298
|
+
});
|
|
42299
|
+
}) : undefined
|
|
42300
|
+
});
|
|
42301
|
+
}).filter(function (nav) {
|
|
42302
|
+
return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
42303
|
+
}).filter(function (nav) {
|
|
42304
|
+
return !!nav.isDistrict === isDistrict;
|
|
42305
|
+
});
|
|
42306
|
+
}, [user, language]);
|
|
42307
|
+
|
|
42308
|
+
var getInformationSetting = function getInformationSetting() {
|
|
42309
|
+
try {
|
|
42310
|
+
var _temp2 = _catch(function () {
|
|
42311
|
+
return Promise.resolve(getSchoolSettings()).then(function (res) {
|
|
42312
|
+
dispatch(setSandboxMode(res.data.isSandboxMode));
|
|
42313
|
+
});
|
|
42314
|
+
}, function (err) {
|
|
42315
|
+
console.error(err);
|
|
42316
|
+
});
|
|
42317
|
+
|
|
42318
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
42319
|
+
} catch (e) {
|
|
42320
|
+
return Promise.reject(e);
|
|
42321
|
+
}
|
|
42322
|
+
};
|
|
42323
|
+
|
|
42324
|
+
React.useEffect(function () {
|
|
42325
|
+
checkAuthentication();
|
|
42326
|
+
}, []);
|
|
42327
|
+
React.useEffect(function () {
|
|
42328
|
+
getInformationSetting();
|
|
42329
|
+
}, [location.pathname]);
|
|
42330
|
+
|
|
42331
|
+
var checkAuthentication = function checkAuthentication() {
|
|
42332
|
+
try {
|
|
42333
|
+
var _temp4 = _catch(function () {
|
|
42334
|
+
return Promise.resolve(firstCheckToken()).then(function (tokenStatus) {
|
|
42335
|
+
tokenStatus ? loadInfo() : resetAuth();
|
|
42336
|
+
});
|
|
42337
|
+
}, function () {
|
|
42338
|
+
resetAuth();
|
|
42339
|
+
});
|
|
42340
|
+
|
|
42341
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
42342
|
+
} catch (e) {
|
|
42343
|
+
return Promise.reject(e);
|
|
42344
|
+
}
|
|
42345
|
+
};
|
|
42346
|
+
|
|
42347
|
+
var loadInfo = function loadInfo() {
|
|
42348
|
+
try {
|
|
42349
|
+
var _temp6 = _catch(function () {
|
|
42350
|
+
return Promise.resolve(getInfo()).then(function (info) {
|
|
42351
|
+
var _info$data, _info$data$roles;
|
|
42352
|
+
|
|
42353
|
+
if (!info || !(info !== null && info !== void 0 && (_info$data = info.data) !== null && _info$data !== void 0 && (_info$data$roles = _info$data.roles) !== null && _info$data$roles !== void 0 && _info$data$roles.includes("Admin"))) {
|
|
42354
|
+
resetAuth();
|
|
42355
|
+
}
|
|
42356
|
+
|
|
42357
|
+
dispatch(setUser(info.data));
|
|
42358
|
+
});
|
|
42359
|
+
}, function () {
|
|
42360
|
+
resetAuth();
|
|
42361
|
+
});
|
|
42362
|
+
|
|
42363
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
42364
|
+
} catch (e) {
|
|
42365
|
+
return Promise.reject(e);
|
|
42366
|
+
}
|
|
42367
|
+
};
|
|
42368
|
+
|
|
42369
|
+
var resetAuth = function resetAuth() {
|
|
42370
|
+
localStorage.removeItem(ACCESS_TOKEN);
|
|
42371
|
+
sessionStorage.removeItem(ACCESS_TOKEN);
|
|
42372
|
+
localStorage.removeItem("ROLES");
|
|
42373
|
+
history.push("/");
|
|
42374
|
+
};
|
|
42375
|
+
|
|
42376
|
+
if (!user) {
|
|
42377
|
+
return React__default.createElement(Loading, null);
|
|
42378
|
+
}
|
|
42379
|
+
|
|
42380
|
+
return React__default.createElement("div", {
|
|
42381
|
+
className: "c-app c-default-layout"
|
|
42382
|
+
}, !isNotification && React__default.createElement(TheSidebar, {
|
|
42383
|
+
navigation: authNavigations
|
|
42384
|
+
}), React__default.createElement("div", {
|
|
42385
|
+
className: "c-wrapper"
|
|
42386
|
+
}, !isNotification && React__default.createElement(TheHeader, {
|
|
42387
|
+
onToggleModel: handleToggleModel
|
|
42388
|
+
}), React__default.createElement("div", {
|
|
42389
|
+
className: "c-body bg-white"
|
|
42390
|
+
}, React__default.createElement(TheContent$1, {
|
|
42391
|
+
routes: authRoutes
|
|
42392
|
+
}))), React__default.createElement(ModelSelectRole, {
|
|
42393
|
+
open: openModelSelectRole,
|
|
42394
|
+
onToggleModel: handleToggleModel
|
|
42395
|
+
}));
|
|
42396
|
+
};
|
|
42397
|
+
|
|
41860
42398
|
var buttonTextStyle = {
|
|
41861
42399
|
fontWeight: 500
|
|
41862
42400
|
};
|
|
@@ -51203,34 +51741,6 @@ var UserDetail = function UserDetail() {
|
|
|
51203
51741
|
});
|
|
51204
51742
|
};
|
|
51205
51743
|
|
|
51206
|
-
var loadingStyle = {
|
|
51207
|
-
minWidth: "100vw",
|
|
51208
|
-
minHeight: "100vh",
|
|
51209
|
-
position: "fixed",
|
|
51210
|
-
top: 0,
|
|
51211
|
-
left: 0,
|
|
51212
|
-
zIndex: 999999999,
|
|
51213
|
-
backgroundColor: "rgba(0, 0, 0, 0.4)",
|
|
51214
|
-
display: "flex",
|
|
51215
|
-
justifyContent: "center",
|
|
51216
|
-
alignItems: "center"
|
|
51217
|
-
};
|
|
51218
|
-
|
|
51219
|
-
var Loading = function Loading() {
|
|
51220
|
-
var isLoading = reactRedux.useSelector(function (state) {
|
|
51221
|
-
return state.common.isLoading;
|
|
51222
|
-
});
|
|
51223
|
-
localStorage.setItem("LAST_TIME_REQUETST", moment().utc().format("YYYY-MM-DD HH:mm:ss"));
|
|
51224
|
-
return isLoading ? React__default.createElement("div", {
|
|
51225
|
-
style: loadingStyle
|
|
51226
|
-
}, React__default.createElement("div", {
|
|
51227
|
-
className: "spinner-border text-secondary",
|
|
51228
|
-
role: "status"
|
|
51229
|
-
}, React__default.createElement("span", {
|
|
51230
|
-
className: "sr-only"
|
|
51231
|
-
}, "Loading..."))) : null;
|
|
51232
|
-
};
|
|
51233
|
-
|
|
51234
51744
|
var ScrollToTop = function ScrollToTop() {
|
|
51235
51745
|
var _useLocation = reactRouterDom.useLocation(),
|
|
51236
51746
|
pathname = _useLocation.pathname;
|
|
@@ -54254,32 +54764,6 @@ var store = toolkit.configureStore({
|
|
|
54254
54764
|
}
|
|
54255
54765
|
});
|
|
54256
54766
|
|
|
54257
|
-
var firstCheckToken = function firstCheckToken() {
|
|
54258
|
-
return Promise.resolve(_catch(function () {
|
|
54259
|
-
var token = getAccessToken();
|
|
54260
|
-
return token ? Promise.resolve(checkToken(token)).then(function (tokenStatus) {
|
|
54261
|
-
return tokenStatus.data ? true : false;
|
|
54262
|
-
}) : false;
|
|
54263
|
-
}, function () {
|
|
54264
|
-
return false;
|
|
54265
|
-
}));
|
|
54266
|
-
};
|
|
54267
|
-
|
|
54268
|
-
var canAccess = function canAccess(userRoles, componentRoles) {
|
|
54269
|
-
if (!Array.isArray(userRoles)) {
|
|
54270
|
-
return false;
|
|
54271
|
-
}
|
|
54272
|
-
|
|
54273
|
-
if (Array.isArray(componentRoles)) {
|
|
54274
|
-
var intersects = userRoles.filter(function (i) {
|
|
54275
|
-
return componentRoles.includes(i);
|
|
54276
|
-
});
|
|
54277
|
-
return intersects.length > 0;
|
|
54278
|
-
}
|
|
54279
|
-
|
|
54280
|
-
return true;
|
|
54281
|
-
};
|
|
54282
|
-
|
|
54283
54767
|
var isInViewport = function isInViewport(el) {
|
|
54284
54768
|
var rect = el === null || el === void 0 ? void 0 : el.getBoundingClientRect();
|
|
54285
54769
|
return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
@@ -54313,410 +54797,6 @@ var generateRandomString = (function () {
|
|
|
54313
54797
|
return (Math.random() + 1).toString(36).substring(7);
|
|
54314
54798
|
});
|
|
54315
54799
|
|
|
54316
|
-
var apiGetLanguage = function apiGetLanguage() {
|
|
54317
|
-
return api.get(BASE_URL + "/api/language");
|
|
54318
|
-
};
|
|
54319
|
-
|
|
54320
|
-
var apiUpdateLanguage = function apiUpdateLanguage(lang) {
|
|
54321
|
-
return api.put(BASE_URL + "/api/language?lang=" + lang);
|
|
54322
|
-
};
|
|
54323
|
-
|
|
54324
|
-
var LANGUAGE_SYSTEM = "LANGUAGE_SYSTEM";
|
|
54325
|
-
|
|
54326
|
-
var useLanguages = function useLanguages() {
|
|
54327
|
-
var dispatch = reactRedux.useDispatch();
|
|
54328
|
-
|
|
54329
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54330
|
-
i18n = _useTranslation.i18n;
|
|
54331
|
-
|
|
54332
|
-
var language = reactRedux.useSelector(function (state) {
|
|
54333
|
-
return state.common.language;
|
|
54334
|
-
});
|
|
54335
|
-
var defaultLanguage = getCookieValue(LANGUAGE_SYSTEM) != null ? getCookieValue(LANGUAGE_SYSTEM) : DEFAULT_LANGUAGE_CODE;
|
|
54336
|
-
|
|
54337
|
-
var _useState = React.useState([]),
|
|
54338
|
-
languageList = _useState[0],
|
|
54339
|
-
setLanguageList = _useState[1];
|
|
54340
|
-
|
|
54341
|
-
var _useState2 = React.useState(false),
|
|
54342
|
-
dropdownOpen = _useState2[0],
|
|
54343
|
-
setDropdownOpen = _useState2[1];
|
|
54344
|
-
|
|
54345
|
-
var _useState3 = React.useState(defaultLanguage),
|
|
54346
|
-
currentLang = _useState3[0],
|
|
54347
|
-
setCurrentLang = _useState3[1];
|
|
54348
|
-
|
|
54349
|
-
var toggle = function toggle() {
|
|
54350
|
-
return setDropdownOpen(function (prevState) {
|
|
54351
|
-
return !prevState;
|
|
54352
|
-
});
|
|
54353
|
-
};
|
|
54354
|
-
|
|
54355
|
-
var changeLanguageApp = function changeLanguageApp(lang) {
|
|
54356
|
-
try {
|
|
54357
|
-
var _temp3 = function _temp3() {
|
|
54358
|
-
dispatch(setLoading(false));
|
|
54359
|
-
};
|
|
54360
|
-
|
|
54361
|
-
dispatch(setLoading(true));
|
|
54362
|
-
|
|
54363
|
-
var _temp4 = _catch(function () {
|
|
54364
|
-
return Promise.resolve(apiUpdateLanguage(lang)).then(function () {
|
|
54365
|
-
i18n.changeLanguage(lang);
|
|
54366
|
-
setCurrentLang(lang);
|
|
54367
|
-
dispatch(setLanguage(lang));
|
|
54368
|
-
});
|
|
54369
|
-
}, function (err) {
|
|
54370
|
-
var _err$response, _err$response$data;
|
|
54371
|
-
|
|
54372
|
-
dispatch(setAlert({
|
|
54373
|
-
type: "danger",
|
|
54374
|
-
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
|
|
54375
|
-
}));
|
|
54376
|
-
});
|
|
54377
|
-
|
|
54378
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
54379
|
-
} catch (e) {
|
|
54380
|
-
return Promise.reject(e);
|
|
54381
|
-
}
|
|
54382
|
-
};
|
|
54383
|
-
|
|
54384
|
-
var getListLanguage = function getListLanguage() {
|
|
54385
|
-
try {
|
|
54386
|
-
var _temp6 = _catch(function () {
|
|
54387
|
-
return Promise.resolve(apiGetLanguage()).then(function (res) {
|
|
54388
|
-
setLanguageList(res.data);
|
|
54389
|
-
});
|
|
54390
|
-
}, function (err) {
|
|
54391
|
-
var _err$response2, _err$response2$data;
|
|
54392
|
-
|
|
54393
|
-
dispatch(setAlert({
|
|
54394
|
-
type: "danger",
|
|
54395
|
-
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || err.message
|
|
54396
|
-
}));
|
|
54397
|
-
});
|
|
54398
|
-
|
|
54399
|
-
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
54400
|
-
} catch (e) {
|
|
54401
|
-
return Promise.reject(e);
|
|
54402
|
-
}
|
|
54403
|
-
};
|
|
54404
|
-
|
|
54405
|
-
React.useEffect(function () {
|
|
54406
|
-
defaultLanguage != language && changeLanguageApp(defaultLanguage);
|
|
54407
|
-
getListLanguage();
|
|
54408
|
-
}, []);
|
|
54409
|
-
return {
|
|
54410
|
-
languageList: languageList,
|
|
54411
|
-
toggle: toggle,
|
|
54412
|
-
dropdownOpen: dropdownOpen,
|
|
54413
|
-
currentLang: currentLang,
|
|
54414
|
-
changeLanguageApp: changeLanguageApp,
|
|
54415
|
-
setCurrentLang: setCurrentLang
|
|
54416
|
-
};
|
|
54417
|
-
};
|
|
54418
|
-
|
|
54419
|
-
var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
54420
|
-
var _useLanguages = useLanguages(),
|
|
54421
|
-
languageList = _useLanguages.languageList,
|
|
54422
|
-
toggle = _useLanguages.toggle,
|
|
54423
|
-
dropdownOpen = _useLanguages.dropdownOpen,
|
|
54424
|
-
currentLang = _useLanguages.currentLang,
|
|
54425
|
-
changeLanguageApp = _useLanguages.changeLanguageApp;
|
|
54426
|
-
|
|
54427
|
-
var currentLanguage = React.useMemo(function () {
|
|
54428
|
-
var current = languageList.find(function (i) {
|
|
54429
|
-
return i.code === currentLang;
|
|
54430
|
-
});
|
|
54431
|
-
if (!current) return null;
|
|
54432
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement("img", {
|
|
54433
|
-
className: "mr-2 " + styles['dropdown-menu-flag'],
|
|
54434
|
-
src: "" + getStaticFileUrl(current.image)
|
|
54435
|
-
}), " ", current.name);
|
|
54436
|
-
}, [currentLang, languageList]);
|
|
54437
|
-
return React__default.createElement(reactstrap.Dropdown, {
|
|
54438
|
-
isOpen: dropdownOpen,
|
|
54439
|
-
toggle: toggle,
|
|
54440
|
-
className: "" + styles["dropdown-menu"]
|
|
54441
|
-
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
54442
|
-
className: styles["header-avatar"] + " d-flex align-items-center"
|
|
54443
|
-
}, React__default.createElement("span", {
|
|
54444
|
-
style: {
|
|
54445
|
-
color: "#000",
|
|
54446
|
-
textTransform: "capitalize",
|
|
54447
|
-
display: 'flex',
|
|
54448
|
-
alignItems: 'center'
|
|
54449
|
-
}
|
|
54450
|
-
}, currentLanguage, React__default.createElement(bs.BsChevronDown, {
|
|
54451
|
-
className: "ml-2",
|
|
54452
|
-
style: {
|
|
54453
|
-
fontSize: '10px'
|
|
54454
|
-
}
|
|
54455
|
-
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
54456
|
-
className: styles["dropdown-content-language"]
|
|
54457
|
-
}, !!languageList && languageList.length > 0 && languageList.map(function (lang, index) {
|
|
54458
|
-
return React__default.createElement(reactstrap.DropdownItem, {
|
|
54459
|
-
key: lang.code,
|
|
54460
|
-
className: styles["dropdown-change"] + " px-0 py-0 " + (index === languageList.length - 1 ? "pb-2" : "pt-2"),
|
|
54461
|
-
onClick: function onClick() {
|
|
54462
|
-
return changeLanguageApp(lang.code);
|
|
54463
|
-
}
|
|
54464
|
-
}, React__default.createElement("div", {
|
|
54465
|
-
className: styles["dropdown-item-language"] + " " + styles["item-logout"] + " " + (currentLang == lang.code ? styles['dropdown-item-language-active'] : "") + " d-flex align-items-center w-100"
|
|
54466
|
-
}, React__default.createElement("span", {
|
|
54467
|
-
className: "mr-2 d-flex hover-opacity"
|
|
54468
|
-
}, React__default.createElement("img", {
|
|
54469
|
-
style: {
|
|
54470
|
-
width: "30px",
|
|
54471
|
-
height: "25px",
|
|
54472
|
-
borderRadius: "5px"
|
|
54473
|
-
},
|
|
54474
|
-
src: getStaticFileUrl(lang.image)
|
|
54475
|
-
})), lang.name));
|
|
54476
|
-
})));
|
|
54477
|
-
};
|
|
54478
|
-
|
|
54479
|
-
var TheHeader = function TheHeader(_ref) {
|
|
54480
|
-
var onToggleModel = _ref.onToggleModel;
|
|
54481
|
-
var dispatch = reactRedux.useDispatch();
|
|
54482
|
-
var sidebarShow = reactRedux.useSelector(function (state) {
|
|
54483
|
-
return state.common.sidebarShow;
|
|
54484
|
-
});
|
|
54485
|
-
|
|
54486
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54487
|
-
t = _useTranslation.t;
|
|
54488
|
-
|
|
54489
|
-
var toggleSidebarMobile = function toggleSidebarMobile() {
|
|
54490
|
-
var val = [false, "responsive"].includes(sidebarShow) ? true : "responsive";
|
|
54491
|
-
dispatch(setSidebar(val));
|
|
54492
|
-
};
|
|
54493
|
-
|
|
54494
|
-
var isDistrict = window.location.host.includes("-district");
|
|
54495
|
-
return React__default.createElement(react.CHeader, {
|
|
54496
|
-
withSubheader: true,
|
|
54497
|
-
className: "d-flex align-items-center justify-content-end"
|
|
54498
|
-
}, React__default.createElement(react.CToggler, {
|
|
54499
|
-
inHeader: true,
|
|
54500
|
-
className: "ml-md-3 d-lg-none",
|
|
54501
|
-
onClick: toggleSidebarMobile
|
|
54502
|
-
}), React__default.createElement(react.CHeaderBrand, {
|
|
54503
|
-
className: "mx-auto flex-grow-1 d-lg-none",
|
|
54504
|
-
to: "/"
|
|
54505
|
-
}, React__default.createElement("img", {
|
|
54506
|
-
src: getStaticFileUrl(Images.LOGO_HEADER),
|
|
54507
|
-
className: styles["header-logo"]
|
|
54508
|
-
})), React__default.createElement(react.CHeaderNav, {
|
|
54509
|
-
className: "pr-3"
|
|
54510
|
-
}, React__default.createElement(TheLanguageDropdown, null), React__default.createElement("a", {
|
|
54511
|
-
className: "mr-3",
|
|
54512
|
-
style: {
|
|
54513
|
-
color: '#000'
|
|
54514
|
-
},
|
|
54515
|
-
href: '/privacy-policy',
|
|
54516
|
-
target: "blank"
|
|
54517
|
-
}, t("privacy_policy")), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, {
|
|
54518
|
-
onToggleModel: onToggleModel
|
|
54519
|
-
})));
|
|
54520
|
-
};
|
|
54521
|
-
|
|
54522
|
-
var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
54523
|
-
var _handleUserRole;
|
|
54524
|
-
|
|
54525
|
-
var open = _ref.open,
|
|
54526
|
-
onToggleModel = _ref.onToggleModel;
|
|
54527
|
-
var dispatch = reactRedux.useDispatch();
|
|
54528
|
-
|
|
54529
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54530
|
-
t = _useTranslation.t;
|
|
54531
|
-
|
|
54532
|
-
var history = reactRouterDom.useHistory();
|
|
54533
|
-
var pathname = window.location.pathname;
|
|
54534
|
-
var user = reactRedux.useSelector(function (state) {
|
|
54535
|
-
return state.common.user;
|
|
54536
|
-
});
|
|
54537
|
-
var roles = user === null || user === void 0 ? void 0 : user.roles;
|
|
54538
|
-
|
|
54539
|
-
var handleSelectUserRoles = function handleSelectUserRoles(roles) {
|
|
54540
|
-
dispatch(setLoading(true));
|
|
54541
|
-
var roleSelect = roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles;
|
|
54542
|
-
dispatch(setUser(_extends({}, user, {
|
|
54543
|
-
roles: roleSelect
|
|
54544
|
-
})));
|
|
54545
|
-
localStorage.setItem("ROLES", roleSelect.toString());
|
|
54546
|
-
onToggleModel();
|
|
54547
|
-
|
|
54548
|
-
if (roles.includes("Parent")) {
|
|
54549
|
-
history.push("/parent");
|
|
54550
|
-
} else if (roles.includes("Admin")) {
|
|
54551
|
-
history.push("/admin/home");
|
|
54552
|
-
} else {
|
|
54553
|
-
pathname !== "/home" ? history.push("/home") : window.location.reload();
|
|
54554
|
-
}
|
|
54555
|
-
};
|
|
54556
|
-
|
|
54557
|
-
return React__default.createElement(reactstrap.Modal, {
|
|
54558
|
-
isOpen: open,
|
|
54559
|
-
toggle: function toggle() {
|
|
54560
|
-
return onToggleModel();
|
|
54561
|
-
},
|
|
54562
|
-
className: "" + styles["model-switch-roles"],
|
|
54563
|
-
centered: true
|
|
54564
|
-
}, React__default.createElement("p", {
|
|
54565
|
-
className: "" + styles["title"]
|
|
54566
|
-
}, t("continue_as")), React__default.createElement("div", null, (_handleUserRole = handleUserRole(user === null || user === void 0 ? void 0 : user.roles)) === null || _handleUserRole === void 0 ? void 0 : _handleUserRole.map(function (r) {
|
|
54567
|
-
return React__default.createElement("p", {
|
|
54568
|
-
key: r,
|
|
54569
|
-
className: styles["item-select-role"] + " " + styles[roles.includes("Teacher") && roles.includes("Assistant") && r === "Teacher/Assistant" && !roles.includes("Admin") || roles.includes("Admin") && r === "Admin" || roles.includes(r) && !roles.includes("Admin") ? "item-role-active" : ""],
|
|
54570
|
-
onClick: function onClick() {
|
|
54571
|
-
return handleSelectUserRoles([r]);
|
|
54572
|
-
}
|
|
54573
|
-
}, r == "SecondaryTeacher" ? "Support Teacher" : r);
|
|
54574
|
-
})));
|
|
54575
|
-
};
|
|
54576
|
-
|
|
54577
|
-
var TheLayout = function TheLayout(_ref) {
|
|
54578
|
-
var routes = _ref.routes,
|
|
54579
|
-
navigation = _ref.navigation;
|
|
54580
|
-
var history = reactRouterDom.useHistory();
|
|
54581
|
-
var dispatch = reactRedux.useDispatch();
|
|
54582
|
-
var user = reactRedux.useSelector(function (state) {
|
|
54583
|
-
return state.common.user;
|
|
54584
|
-
});
|
|
54585
|
-
var language = reactRedux.useSelector(function (state) {
|
|
54586
|
-
return state.common.language;
|
|
54587
|
-
});
|
|
54588
|
-
|
|
54589
|
-
var _useState = React.useState(false),
|
|
54590
|
-
openModelSelectRole = _useState[0],
|
|
54591
|
-
setOpenModelSelectRole = _useState[1];
|
|
54592
|
-
|
|
54593
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54594
|
-
t = _useTranslation.t;
|
|
54595
|
-
|
|
54596
|
-
var location = reactRouterDom.useLocation();
|
|
54597
|
-
var isNotification = location.pathname.includes("notifications");
|
|
54598
|
-
var isDistrict = window.location.host.includes("-district");
|
|
54599
|
-
|
|
54600
|
-
var handleToggleModel = function handleToggleModel() {
|
|
54601
|
-
setOpenModelSelectRole(!openModelSelectRole);
|
|
54602
|
-
};
|
|
54603
|
-
|
|
54604
|
-
var authRoutes = React.useMemo(function () {
|
|
54605
|
-
return routes.filter(function (route) {
|
|
54606
|
-
return canAccess(user === null || user === void 0 ? void 0 : user.roles, route.roles);
|
|
54607
|
-
}).filter(function (route) {
|
|
54608
|
-
return !!route.isDistrict === isDistrict;
|
|
54609
|
-
});
|
|
54610
|
-
}, [user, language]);
|
|
54611
|
-
var authNavigations = React.useMemo(function () {
|
|
54612
|
-
return navigation.map(function (item) {
|
|
54613
|
-
var _item$_children, _item$_children2;
|
|
54614
|
-
|
|
54615
|
-
return _extends({}, item, {
|
|
54616
|
-
name: t(item.name),
|
|
54617
|
-
_children: item !== null && item !== void 0 && (_item$_children = item._children) !== null && _item$_children !== void 0 && _item$_children.length ? item === null || item === void 0 ? void 0 : (_item$_children2 = item._children) === null || _item$_children2 === void 0 ? void 0 : _item$_children2.map(function (x) {
|
|
54618
|
-
return _extends({}, x, {
|
|
54619
|
-
name: t(x.name)
|
|
54620
|
-
});
|
|
54621
|
-
}) : undefined
|
|
54622
|
-
});
|
|
54623
|
-
}).filter(function (nav) {
|
|
54624
|
-
return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
54625
|
-
}).filter(function (nav) {
|
|
54626
|
-
return !!nav.isDistrict === isDistrict;
|
|
54627
|
-
});
|
|
54628
|
-
}, [user, language]);
|
|
54629
|
-
|
|
54630
|
-
var getInformationSetting = function getInformationSetting() {
|
|
54631
|
-
try {
|
|
54632
|
-
var _temp2 = _catch(function () {
|
|
54633
|
-
return Promise.resolve(getSchoolSettings()).then(function (res) {
|
|
54634
|
-
dispatch(setSandboxMode(res.data.isSandboxMode));
|
|
54635
|
-
});
|
|
54636
|
-
}, function (err) {
|
|
54637
|
-
console.error(err);
|
|
54638
|
-
});
|
|
54639
|
-
|
|
54640
|
-
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
54641
|
-
} catch (e) {
|
|
54642
|
-
return Promise.reject(e);
|
|
54643
|
-
}
|
|
54644
|
-
};
|
|
54645
|
-
|
|
54646
|
-
React.useEffect(function () {
|
|
54647
|
-
checkAuthentication();
|
|
54648
|
-
}, []);
|
|
54649
|
-
React.useEffect(function () {
|
|
54650
|
-
getInformationSetting();
|
|
54651
|
-
}, [location.pathname]);
|
|
54652
|
-
|
|
54653
|
-
var checkAuthentication = function checkAuthentication() {
|
|
54654
|
-
try {
|
|
54655
|
-
var _temp4 = _catch(function () {
|
|
54656
|
-
return Promise.resolve(firstCheckToken()).then(function (tokenStatus) {
|
|
54657
|
-
tokenStatus ? loadInfo() : resetAuth();
|
|
54658
|
-
});
|
|
54659
|
-
}, function () {
|
|
54660
|
-
resetAuth();
|
|
54661
|
-
});
|
|
54662
|
-
|
|
54663
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
54664
|
-
} catch (e) {
|
|
54665
|
-
return Promise.reject(e);
|
|
54666
|
-
}
|
|
54667
|
-
};
|
|
54668
|
-
|
|
54669
|
-
var loadInfo = function loadInfo() {
|
|
54670
|
-
try {
|
|
54671
|
-
var _temp6 = _catch(function () {
|
|
54672
|
-
return Promise.resolve(getInfo()).then(function (info) {
|
|
54673
|
-
var _info$data, _info$data$roles;
|
|
54674
|
-
|
|
54675
|
-
if (!info || !(info !== null && info !== void 0 && (_info$data = info.data) !== null && _info$data !== void 0 && (_info$data$roles = _info$data.roles) !== null && _info$data$roles !== void 0 && _info$data$roles.includes("Admin"))) {
|
|
54676
|
-
resetAuth();
|
|
54677
|
-
}
|
|
54678
|
-
|
|
54679
|
-
dispatch(setUser(info.data));
|
|
54680
|
-
});
|
|
54681
|
-
}, function () {
|
|
54682
|
-
resetAuth();
|
|
54683
|
-
});
|
|
54684
|
-
|
|
54685
|
-
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
54686
|
-
} catch (e) {
|
|
54687
|
-
return Promise.reject(e);
|
|
54688
|
-
}
|
|
54689
|
-
};
|
|
54690
|
-
|
|
54691
|
-
var resetAuth = function resetAuth() {
|
|
54692
|
-
localStorage.removeItem(ACCESS_TOKEN);
|
|
54693
|
-
sessionStorage.removeItem(ACCESS_TOKEN);
|
|
54694
|
-
localStorage.removeItem("ROLES");
|
|
54695
|
-
history.push("/");
|
|
54696
|
-
};
|
|
54697
|
-
|
|
54698
|
-
if (!user) {
|
|
54699
|
-
return React__default.createElement(Loading, null);
|
|
54700
|
-
}
|
|
54701
|
-
|
|
54702
|
-
return React__default.createElement("div", {
|
|
54703
|
-
className: "c-app c-default-layout"
|
|
54704
|
-
}, !isNotification && React__default.createElement(TheSidebar, {
|
|
54705
|
-
navigation: authNavigations
|
|
54706
|
-
}), React__default.createElement("div", {
|
|
54707
|
-
className: "c-wrapper"
|
|
54708
|
-
}, !isNotification && React__default.createElement(TheHeader, {
|
|
54709
|
-
onToggleModel: handleToggleModel
|
|
54710
|
-
}), React__default.createElement("div", {
|
|
54711
|
-
className: "c-body bg-white"
|
|
54712
|
-
}, React__default.createElement(TheContent$1, {
|
|
54713
|
-
routes: authRoutes
|
|
54714
|
-
}))), React__default.createElement(ModelSelectRole, {
|
|
54715
|
-
open: openModelSelectRole,
|
|
54716
|
-
onToggleModel: handleToggleModel
|
|
54717
|
-
}));
|
|
54718
|
-
};
|
|
54719
|
-
|
|
54720
54800
|
var amplitudeClient = amplitude;
|
|
54721
54801
|
|
|
54722
54802
|
Object.defineProperty(exports, 'I18nextProvider', {
|