mario-core 2.10.13-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 +548 -478
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +551 -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";
|
|
@@ -2035,6 +2035,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
2035
2035
|
var leave = "leave";
|
|
2036
2036
|
var go_to_the_survey_dashboard = "Go to the Survey Dashboard";
|
|
2037
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?";
|
|
2038
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?";
|
|
2039
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?";
|
|
2040
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?";
|
|
@@ -2108,7 +2109,7 @@ var add_1_1_conversation_notes = "Add 1-1 Conversation notes";
|
|
|
2108
2109
|
var save_data = "Save data";
|
|
2109
2110
|
var please_select_date_1_1_conversation = "Please select date 1-1 conversation!";
|
|
2110
2111
|
var please_write_something_to_this_1_1_conversation = "Please write something to this 1-1 conversation!";
|
|
2111
|
-
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!";
|
|
2112
2113
|
var no_need_for_it = "No need for it";
|
|
2113
2114
|
var conversation_saved = "Conversation saved!";
|
|
2114
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?";
|
|
@@ -2125,7 +2126,7 @@ var yes_view_student_goals = "Yes, view student goals";
|
|
|
2125
2126
|
var please_set_time_1_1_conversation = "Please set time 1-1 conversation";
|
|
2126
2127
|
var type_your_answer_here = "Type your answer here...";
|
|
2127
2128
|
var delete_bulk = "Delete Bulk";
|
|
2128
|
-
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";
|
|
2129
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%";
|
|
2130
2131
|
var of_students_have_concerned_metrics = "of students have concerned metrics";
|
|
2131
2132
|
var have_metrics_40 = "have metrics <40%";
|
|
@@ -2183,6 +2184,12 @@ var type_the_main_focus_of_this_session = "Type the main focus of this session";
|
|
|
2183
2184
|
var please_add_title_note = "Please add note title";
|
|
2184
2185
|
var notes_and_logs = "Notes and Logs";
|
|
2185
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";
|
|
2186
2193
|
var lang_us = {
|
|
2187
2194
|
dashboard: dashboard,
|
|
2188
2195
|
user: user,
|
|
@@ -4221,6 +4228,7 @@ var lang_us = {
|
|
|
4221
4228
|
leave: leave,
|
|
4222
4229
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard,
|
|
4223
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,
|
|
4224
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?",
|
|
4225
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,
|
|
4226
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,
|
|
@@ -4381,7 +4389,13 @@ var lang_us = {
|
|
|
4381
4389
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session,
|
|
4382
4390
|
please_add_title_note: please_add_title_note,
|
|
4383
4391
|
notes_and_logs: notes_and_logs,
|
|
4384
|
-
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
|
|
4385
4399
|
};
|
|
4386
4400
|
|
|
4387
4401
|
var dashboard$1 = "Dashboard";
|
|
@@ -5193,7 +5207,7 @@ var email_notifications$1 = "Email Notifications";
|
|
|
5193
5207
|
var turn_on_all_emails$1 = "Turn on all emails";
|
|
5194
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”";
|
|
5195
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";
|
|
5196
|
-
var continue_as$1 = "Continue as
|
|
5210
|
+
var continue_as$1 = "Continue as";
|
|
5197
5211
|
var admin$1 = "Admin";
|
|
5198
5212
|
var counselor$1 = "Counselor";
|
|
5199
5213
|
var support_teacher$1 = "SupportTeacher";
|
|
@@ -6382,6 +6396,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
6382
6396
|
var leave$1 = "leave";
|
|
6383
6397
|
var go_to_the_survey_dashboard$1 = "Go to the Survey Dashboard";
|
|
6384
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?";
|
|
6385
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?";
|
|
6386
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?";
|
|
6387
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?";
|
|
@@ -6455,7 +6470,7 @@ var add_1_1_conversation_notes$1 = "Add 1-1 Conversation notes";
|
|
|
6455
6470
|
var save_data$1 = "Save data";
|
|
6456
6471
|
var please_select_date_1_1_conversation$1 = "Please select date 1-1 conversation!";
|
|
6457
6472
|
var please_write_something_to_this_1_1_conversation$1 = "Please write something to this 1-1 conversation!";
|
|
6458
|
-
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!";
|
|
6459
6474
|
var no_need_for_it$1 = "No need for it";
|
|
6460
6475
|
var conversation_saved$1 = "Conversation saved!";
|
|
6461
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?";
|
|
@@ -6472,7 +6487,7 @@ var yes_view_student_goals$1 = "Yes, view student goals";
|
|
|
6472
6487
|
var please_set_time_1_1_conversation$1 = "Please set time 1-1 conversation";
|
|
6473
6488
|
var type_your_answer_here$1 = "Type your answer here...";
|
|
6474
6489
|
var delete_bulk$1 = "Delete Bulk";
|
|
6475
|
-
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";
|
|
6476
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%";
|
|
6477
6492
|
var of_students_have_concerned_metrics$1 = "of students have concerned metrics";
|
|
6478
6493
|
var have_metrics_40$1 = "have metrics <40%";
|
|
@@ -6528,6 +6543,12 @@ var type_the_main_focus_of_this_session$1 = "Type the main focus of this session
|
|
|
6528
6543
|
var please_add_title_note$1 = "Please add note title";
|
|
6529
6544
|
var notes_and_logs$1 = "Notes and Logs";
|
|
6530
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";
|
|
6531
6552
|
var lang_uk = {
|
|
6532
6553
|
dashboard: dashboard$1,
|
|
6533
6554
|
user: user$1,
|
|
@@ -8566,6 +8587,7 @@ var lang_uk = {
|
|
|
8566
8587
|
leave: leave$1,
|
|
8567
8588
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$1,
|
|
8568
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,
|
|
8569
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?",
|
|
8570
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,
|
|
8571
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,
|
|
@@ -8724,7 +8746,13 @@ var lang_uk = {
|
|
|
8724
8746
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$1,
|
|
8725
8747
|
please_add_title_note: please_add_title_note$1,
|
|
8726
8748
|
notes_and_logs: notes_and_logs$1,
|
|
8727
|
-
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
|
|
8728
8756
|
};
|
|
8729
8757
|
|
|
8730
8758
|
var dashboard$2 = "لوحة المعلومات";
|
|
@@ -9533,7 +9561,7 @@ var email_notifications$2 = "إشعارات البريد الإلكتروني";
|
|
|
9533
9561
|
var turn_on_all_emails$2 = "تشغيل جميع عناوين البريد الإلكتروني";
|
|
9534
9562
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$2 = "استجابة طالب للاستعداد للتعلم في المحادثة الفردية بـ \"لا\"";
|
|
9535
9563
|
var a_student_reported_a_low_safety_score_on_a_check_in$2 = "إبلاغ طالب عن انخفاض درجة السلامة عند تسجيل حضوره";
|
|
9536
|
-
var continue_as$2 = "الاستمرار
|
|
9564
|
+
var continue_as$2 = "الاستمرار كـ";
|
|
9537
9565
|
var admin$2 = "المدير";
|
|
9538
9566
|
var counselor$2 = "المستشار";
|
|
9539
9567
|
var support_teacher$2 = "معلِّم الدعم";
|
|
@@ -10757,6 +10785,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
10757
10785
|
var leave$2 = "يترك";
|
|
10758
10786
|
var go_to_the_survey_dashboard$2 = "انتقل إلى لوحة معلومات الاستطلاع";
|
|
10759
10787
|
var my_dashboard$2 = "لوحة التحكم الخاصة بي";
|
|
10788
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$2 = "اختيار جميل! ما هو مجال {{category}} الذي ترغب في العمل عليه؟";
|
|
10760
10789
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$2 = "اختيار جميل! ما هو المجال الأكاديمي الذي ترغب بالعمل فيه؟";
|
|
10761
10790
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$2 = "اختيار جميل! في أي مجال من مجالات المنظمة تود العمل؟";
|
|
10762
10791
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$2 = "اختيار جميل! ما هو مجال التركيز الذي ترغب في العمل عليه؟";
|
|
@@ -10827,7 +10856,7 @@ var add_1_1_conversation_notes$2 = "Add 1-1 Conversation notes";
|
|
|
10827
10856
|
var save_data$2 = "Save data";
|
|
10828
10857
|
var please_select_date_1_1_conversation$2 = "Please select date 1-1 conversation!";
|
|
10829
10858
|
var please_write_something_to_this_1_1_conversation$2 = "Please write something to this 1-1 conversation!";
|
|
10830
|
-
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!";
|
|
10831
10860
|
var no_need_for_it$2 = "No need for it";
|
|
10832
10861
|
var conversation_saved$2 = "Conversation saved!";
|
|
10833
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?";
|
|
@@ -10845,7 +10874,7 @@ var please_set_time_1_1_conversation$2 = "Please set time 1-1 conversation";
|
|
|
10845
10874
|
var type_your_answer_here$2 = "Type your answer here...";
|
|
10846
10875
|
var not_ready_to_learn$2 = "Not ready to learn";
|
|
10847
10876
|
var delete_bulk$2 = "Delete Bulk";
|
|
10848
|
-
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";
|
|
10849
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%";
|
|
10850
10879
|
var of_students_have_concerned_metrics$2 = "of students have concerned metrics";
|
|
10851
10880
|
var have_metrics_40$2 = "have metrics <40%";
|
|
@@ -10901,6 +10930,12 @@ var type_the_main_focus_of_this_session$2 = "Type the main focus of this session
|
|
|
10901
10930
|
var please_add_title_note$2 = "Please add note title";
|
|
10902
10931
|
var notes_and_logs$2 = "Notes and Logs";
|
|
10903
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";
|
|
10904
10939
|
var lang_ar = {
|
|
10905
10940
|
dashboard: dashboard$2,
|
|
10906
10941
|
user: user$2,
|
|
@@ -12973,6 +13008,7 @@ var lang_ar = {
|
|
|
12973
13008
|
leave: leave$2,
|
|
12974
13009
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$2,
|
|
12975
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,
|
|
12976
13012
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "اختيار جميل! ما هو مجال الصحة والرفاهية الذي ترغب في العمل فيه؟",
|
|
12977
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,
|
|
12978
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,
|
|
@@ -13129,7 +13165,13 @@ var lang_ar = {
|
|
|
13129
13165
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$2,
|
|
13130
13166
|
please_add_title_note: please_add_title_note$2,
|
|
13131
13167
|
notes_and_logs: notes_and_logs$2,
|
|
13132
|
-
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
|
|
13133
13175
|
};
|
|
13134
13176
|
|
|
13135
13177
|
var dashboard$3 = "Cuadro de mandos";
|
|
@@ -13938,7 +13980,7 @@ var email_notifications$3 = "Notificaciones por correo electrónico";
|
|
|
13938
13980
|
var turn_on_all_emails$3 = "Active todos los correos electrónicos";
|
|
13939
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";
|
|
13940
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";
|
|
13941
|
-
var continue_as$3 = "Continuar como
|
|
13983
|
+
var continue_as$3 = "Continuar como";
|
|
13942
13984
|
var admin$3 = "Administrador";
|
|
13943
13985
|
var counselor$3 = "Consejero";
|
|
13944
13986
|
var support_teacher$3 = "Profesor de apoyo";
|
|
@@ -15162,6 +15204,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
15162
15204
|
var leave$3 = "dejar";
|
|
15163
15205
|
var go_to_the_survey_dashboard$3 = "Ir al panel de encuestas";
|
|
15164
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?";
|
|
15165
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?";
|
|
15166
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?";
|
|
15167
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?";
|
|
@@ -15233,7 +15276,7 @@ var add_1_1_conversation_notes$3 = "Add 1-1 Conversation notes";
|
|
|
15233
15276
|
var save_data$3 = "Save data";
|
|
15234
15277
|
var please_select_date_1_1_conversation$3 = "Please select date 1-1 conversation!";
|
|
15235
15278
|
var please_write_something_to_this_1_1_conversation$3 = "Please write something to this 1-1 conversation!";
|
|
15236
|
-
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!";
|
|
15237
15280
|
var no_need_for_it$3 = "No need for it";
|
|
15238
15281
|
var conversation_saved$3 = "Conversation saved!";
|
|
15239
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?";
|
|
@@ -15250,7 +15293,7 @@ var yes_view_student_goals$3 = "Yes, view student goals";
|
|
|
15250
15293
|
var please_set_time_1_1_conversation$3 = "Please set time 1-1 conversation";
|
|
15251
15294
|
var type_your_answer_here$3 = "Type your answer here...";
|
|
15252
15295
|
var delete_bulk$3 = "Delete Bulk";
|
|
15253
|
-
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";
|
|
15254
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%";
|
|
15255
15298
|
var of_students_have_concerned_metrics$3 = "of students have concerned metrics";
|
|
15256
15299
|
var have_metrics_40$3 = "have metrics <40%";
|
|
@@ -15306,6 +15349,12 @@ var type_the_main_focus_of_this_session$3 = "Type the main focus of this session
|
|
|
15306
15349
|
var please_add_title_note$3 = "Please add note title";
|
|
15307
15350
|
var notes_and_logs$3 = "Notes and Logs";
|
|
15308
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";
|
|
15309
15358
|
var lang_es = {
|
|
15310
15359
|
dashboard: dashboard$3,
|
|
15311
15360
|
user: user$3,
|
|
@@ -17378,6 +17427,7 @@ var lang_es = {
|
|
|
17378
17427
|
leave: leave$3,
|
|
17379
17428
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$3,
|
|
17380
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,
|
|
17381
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?",
|
|
17382
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,
|
|
17383
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,
|
|
@@ -17534,7 +17584,13 @@ var lang_es = {
|
|
|
17534
17584
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$3,
|
|
17535
17585
|
please_add_title_note: please_add_title_note$3,
|
|
17536
17586
|
notes_and_logs: notes_and_logs$3,
|
|
17537
|
-
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
|
|
17538
17594
|
};
|
|
17539
17595
|
|
|
17540
17596
|
var dashboard$4 = "仪表板";
|
|
@@ -18343,7 +18399,7 @@ var email_notifications$4 = "电子邮件通知";
|
|
|
18343
18399
|
var turn_on_all_emails$4 = "打开所有电子邮件";
|
|
18344
18400
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$4 = "学生对 1-1 学习准备度的回复为“否”";
|
|
18345
18401
|
var a_student_reported_a_low_safety_score_on_a_check_in$4 = "学生在签到时报告安全分数低";
|
|
18346
|
-
var continue_as$4 = "
|
|
18402
|
+
var continue_as$4 = "继续担任";
|
|
18347
18403
|
var admin$4 = "管理员";
|
|
18348
18404
|
var counselor$4 = "辅导员";
|
|
18349
18405
|
var support_teacher$4 = "支持老师";
|
|
@@ -19567,6 +19623,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
19567
19623
|
var leave$4 = "离开";
|
|
19568
19624
|
var go_to_the_survey_dashboard$4 = "前往调查仪表板";
|
|
19569
19625
|
var my_dashboard$4 = "我的仪表板";
|
|
19626
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$4 = "不错的选择!您想在哪个{{category}}领域开展工作?";
|
|
19570
19627
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$4 = "尼克·奇克!我看到如果你有学者和你的儿子塔希尔,你有论文吗?";
|
|
19571
19628
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$4 = "尼克·奇克!让我看看,如果您正在安排,并且您有一个儿子,您有文件吗?";
|
|
19572
19629
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$4 = "不错的选择!您希望在哪个重点领域开展工作?";
|
|
@@ -19638,7 +19695,7 @@ var add_1_1_conversation_notes$4 = "Add 1-1 Conversation notes";
|
|
|
19638
19695
|
var save_data$4 = "Save data";
|
|
19639
19696
|
var please_select_date_1_1_conversation$4 = "Please select date 1-1 conversation!";
|
|
19640
19697
|
var please_write_something_to_this_1_1_conversation$4 = "Please write something to this 1-1 conversation!";
|
|
19641
|
-
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!";
|
|
19642
19699
|
var no_need_for_it$4 = "No need for it";
|
|
19643
19700
|
var conversation_saved$4 = "Conversation saved!";
|
|
19644
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?";
|
|
@@ -19655,7 +19712,7 @@ var yes_view_student_goals$4 = "Yes, view student goals";
|
|
|
19655
19712
|
var please_set_time_1_1_conversation$4 = "Please set time 1-1 conversation";
|
|
19656
19713
|
var type_your_answer_here$4 = "Type your answer here...";
|
|
19657
19714
|
var delete_bulk$4 = "Delete Bulk";
|
|
19658
|
-
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";
|
|
19659
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%";
|
|
19660
19717
|
var of_students_have_concerned_metrics$4 = "of students have concerned metrics";
|
|
19661
19718
|
var have_metrics_40$4 = "have metrics <40%";
|
|
@@ -19711,6 +19768,12 @@ var type_the_main_focus_of_this_session$4 = "Type the main focus of this session
|
|
|
19711
19768
|
var please_add_title_note$4 = "Please add note title";
|
|
19712
19769
|
var notes_and_logs$4 = "Notes and Logs";
|
|
19713
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";
|
|
19714
19777
|
var lang_zh = {
|
|
19715
19778
|
dashboard: dashboard$4,
|
|
19716
19779
|
user: user$4,
|
|
@@ -21783,6 +21846,7 @@ var lang_zh = {
|
|
|
21783
21846
|
leave: leave$4,
|
|
21784
21847
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$4,
|
|
21785
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,
|
|
21786
21850
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "不错的选择!您想在哪个幸福健康领域开展工作?",
|
|
21787
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,
|
|
21788
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,
|
|
@@ -21939,7 +22003,13 @@ var lang_zh = {
|
|
|
21939
22003
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$4,
|
|
21940
22004
|
please_add_title_note: please_add_title_note$4,
|
|
21941
22005
|
notes_and_logs: notes_and_logs$4,
|
|
21942
|
-
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
|
|
21943
22013
|
};
|
|
21944
22014
|
|
|
21945
22015
|
var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
@@ -41810,6 +41880,212 @@ var TheHeaderDropdown = function TheHeaderDropdown(_ref) {
|
|
|
41810
41880
|
})), t("log_out")))));
|
|
41811
41881
|
};
|
|
41812
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
|
+
|
|
41813
42089
|
var TITLE$3 = "Not found";
|
|
41814
42090
|
|
|
41815
42091
|
var NotFound = function NotFound() {
|
|
@@ -41867,6 +42143,258 @@ var TheContent = function TheContent(_ref) {
|
|
|
41867
42143
|
|
|
41868
42144
|
var TheContent$1 = React__default.memo(TheContent);
|
|
41869
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
|
+
|
|
41870
42398
|
var buttonTextStyle = {
|
|
41871
42399
|
fontWeight: 500
|
|
41872
42400
|
};
|
|
@@ -51213,34 +51741,6 @@ var UserDetail = function UserDetail() {
|
|
|
51213
51741
|
});
|
|
51214
51742
|
};
|
|
51215
51743
|
|
|
51216
|
-
var loadingStyle = {
|
|
51217
|
-
minWidth: "100vw",
|
|
51218
|
-
minHeight: "100vh",
|
|
51219
|
-
position: "fixed",
|
|
51220
|
-
top: 0,
|
|
51221
|
-
left: 0,
|
|
51222
|
-
zIndex: 999999999,
|
|
51223
|
-
backgroundColor: "rgba(0, 0, 0, 0.4)",
|
|
51224
|
-
display: "flex",
|
|
51225
|
-
justifyContent: "center",
|
|
51226
|
-
alignItems: "center"
|
|
51227
|
-
};
|
|
51228
|
-
|
|
51229
|
-
var Loading = function Loading() {
|
|
51230
|
-
var isLoading = reactRedux.useSelector(function (state) {
|
|
51231
|
-
return state.common.isLoading;
|
|
51232
|
-
});
|
|
51233
|
-
localStorage.setItem("LAST_TIME_REQUETST", moment().utc().format("YYYY-MM-DD HH:mm:ss"));
|
|
51234
|
-
return isLoading ? React__default.createElement("div", {
|
|
51235
|
-
style: loadingStyle
|
|
51236
|
-
}, React__default.createElement("div", {
|
|
51237
|
-
className: "spinner-border text-secondary",
|
|
51238
|
-
role: "status"
|
|
51239
|
-
}, React__default.createElement("span", {
|
|
51240
|
-
className: "sr-only"
|
|
51241
|
-
}, "Loading..."))) : null;
|
|
51242
|
-
};
|
|
51243
|
-
|
|
51244
51744
|
var ScrollToTop = function ScrollToTop() {
|
|
51245
51745
|
var _useLocation = reactRouterDom.useLocation(),
|
|
51246
51746
|
pathname = _useLocation.pathname;
|
|
@@ -54264,32 +54764,6 @@ var store = toolkit.configureStore({
|
|
|
54264
54764
|
}
|
|
54265
54765
|
});
|
|
54266
54766
|
|
|
54267
|
-
var firstCheckToken = function firstCheckToken() {
|
|
54268
|
-
return Promise.resolve(_catch(function () {
|
|
54269
|
-
var token = getAccessToken();
|
|
54270
|
-
return token ? Promise.resolve(checkToken(token)).then(function (tokenStatus) {
|
|
54271
|
-
return tokenStatus.data ? true : false;
|
|
54272
|
-
}) : false;
|
|
54273
|
-
}, function () {
|
|
54274
|
-
return false;
|
|
54275
|
-
}));
|
|
54276
|
-
};
|
|
54277
|
-
|
|
54278
|
-
var canAccess = function canAccess(userRoles, componentRoles) {
|
|
54279
|
-
if (!Array.isArray(userRoles)) {
|
|
54280
|
-
return false;
|
|
54281
|
-
}
|
|
54282
|
-
|
|
54283
|
-
if (Array.isArray(componentRoles)) {
|
|
54284
|
-
var intersects = userRoles.filter(function (i) {
|
|
54285
|
-
return componentRoles.includes(i);
|
|
54286
|
-
});
|
|
54287
|
-
return intersects.length > 0;
|
|
54288
|
-
}
|
|
54289
|
-
|
|
54290
|
-
return true;
|
|
54291
|
-
};
|
|
54292
|
-
|
|
54293
54767
|
var isInViewport = function isInViewport(el) {
|
|
54294
54768
|
var rect = el === null || el === void 0 ? void 0 : el.getBoundingClientRect();
|
|
54295
54769
|
return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
@@ -54323,410 +54797,6 @@ var generateRandomString = (function () {
|
|
|
54323
54797
|
return (Math.random() + 1).toString(36).substring(7);
|
|
54324
54798
|
});
|
|
54325
54799
|
|
|
54326
|
-
var apiGetLanguage = function apiGetLanguage() {
|
|
54327
|
-
return api.get(BASE_URL + "/api/language");
|
|
54328
|
-
};
|
|
54329
|
-
|
|
54330
|
-
var apiUpdateLanguage = function apiUpdateLanguage(lang) {
|
|
54331
|
-
return api.put(BASE_URL + "/api/language?lang=" + lang);
|
|
54332
|
-
};
|
|
54333
|
-
|
|
54334
|
-
var LANGUAGE_SYSTEM = "LANGUAGE_SYSTEM";
|
|
54335
|
-
|
|
54336
|
-
var useLanguages = function useLanguages() {
|
|
54337
|
-
var dispatch = reactRedux.useDispatch();
|
|
54338
|
-
|
|
54339
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54340
|
-
i18n = _useTranslation.i18n;
|
|
54341
|
-
|
|
54342
|
-
var language = reactRedux.useSelector(function (state) {
|
|
54343
|
-
return state.common.language;
|
|
54344
|
-
});
|
|
54345
|
-
var defaultLanguage = getCookieValue(LANGUAGE_SYSTEM) != null ? getCookieValue(LANGUAGE_SYSTEM) : DEFAULT_LANGUAGE_CODE;
|
|
54346
|
-
|
|
54347
|
-
var _useState = React.useState([]),
|
|
54348
|
-
languageList = _useState[0],
|
|
54349
|
-
setLanguageList = _useState[1];
|
|
54350
|
-
|
|
54351
|
-
var _useState2 = React.useState(false),
|
|
54352
|
-
dropdownOpen = _useState2[0],
|
|
54353
|
-
setDropdownOpen = _useState2[1];
|
|
54354
|
-
|
|
54355
|
-
var _useState3 = React.useState(defaultLanguage),
|
|
54356
|
-
currentLang = _useState3[0],
|
|
54357
|
-
setCurrentLang = _useState3[1];
|
|
54358
|
-
|
|
54359
|
-
var toggle = function toggle() {
|
|
54360
|
-
return setDropdownOpen(function (prevState) {
|
|
54361
|
-
return !prevState;
|
|
54362
|
-
});
|
|
54363
|
-
};
|
|
54364
|
-
|
|
54365
|
-
var changeLanguageApp = function changeLanguageApp(lang) {
|
|
54366
|
-
try {
|
|
54367
|
-
var _temp3 = function _temp3() {
|
|
54368
|
-
dispatch(setLoading(false));
|
|
54369
|
-
};
|
|
54370
|
-
|
|
54371
|
-
dispatch(setLoading(true));
|
|
54372
|
-
|
|
54373
|
-
var _temp4 = _catch(function () {
|
|
54374
|
-
return Promise.resolve(apiUpdateLanguage(lang)).then(function () {
|
|
54375
|
-
i18n.changeLanguage(lang);
|
|
54376
|
-
setCurrentLang(lang);
|
|
54377
|
-
dispatch(setLanguage(lang));
|
|
54378
|
-
});
|
|
54379
|
-
}, function (err) {
|
|
54380
|
-
var _err$response, _err$response$data;
|
|
54381
|
-
|
|
54382
|
-
dispatch(setAlert({
|
|
54383
|
-
type: "danger",
|
|
54384
|
-
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
|
|
54385
|
-
}));
|
|
54386
|
-
});
|
|
54387
|
-
|
|
54388
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
54389
|
-
} catch (e) {
|
|
54390
|
-
return Promise.reject(e);
|
|
54391
|
-
}
|
|
54392
|
-
};
|
|
54393
|
-
|
|
54394
|
-
var getListLanguage = function getListLanguage() {
|
|
54395
|
-
try {
|
|
54396
|
-
var _temp6 = _catch(function () {
|
|
54397
|
-
return Promise.resolve(apiGetLanguage()).then(function (res) {
|
|
54398
|
-
setLanguageList(res.data);
|
|
54399
|
-
});
|
|
54400
|
-
}, function (err) {
|
|
54401
|
-
var _err$response2, _err$response2$data;
|
|
54402
|
-
|
|
54403
|
-
dispatch(setAlert({
|
|
54404
|
-
type: "danger",
|
|
54405
|
-
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
|
|
54406
|
-
}));
|
|
54407
|
-
});
|
|
54408
|
-
|
|
54409
|
-
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
54410
|
-
} catch (e) {
|
|
54411
|
-
return Promise.reject(e);
|
|
54412
|
-
}
|
|
54413
|
-
};
|
|
54414
|
-
|
|
54415
|
-
React.useEffect(function () {
|
|
54416
|
-
defaultLanguage != language && changeLanguageApp(defaultLanguage);
|
|
54417
|
-
getListLanguage();
|
|
54418
|
-
}, []);
|
|
54419
|
-
return {
|
|
54420
|
-
languageList: languageList,
|
|
54421
|
-
toggle: toggle,
|
|
54422
|
-
dropdownOpen: dropdownOpen,
|
|
54423
|
-
currentLang: currentLang,
|
|
54424
|
-
changeLanguageApp: changeLanguageApp,
|
|
54425
|
-
setCurrentLang: setCurrentLang
|
|
54426
|
-
};
|
|
54427
|
-
};
|
|
54428
|
-
|
|
54429
|
-
var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
54430
|
-
var _useLanguages = useLanguages(),
|
|
54431
|
-
languageList = _useLanguages.languageList,
|
|
54432
|
-
toggle = _useLanguages.toggle,
|
|
54433
|
-
dropdownOpen = _useLanguages.dropdownOpen,
|
|
54434
|
-
currentLang = _useLanguages.currentLang,
|
|
54435
|
-
changeLanguageApp = _useLanguages.changeLanguageApp;
|
|
54436
|
-
|
|
54437
|
-
var currentLanguage = React.useMemo(function () {
|
|
54438
|
-
var current = languageList.find(function (i) {
|
|
54439
|
-
return i.code === currentLang;
|
|
54440
|
-
});
|
|
54441
|
-
if (!current) return null;
|
|
54442
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement("img", {
|
|
54443
|
-
className: "mr-2 " + styles['dropdown-menu-flag'],
|
|
54444
|
-
src: "" + getStaticFileUrl(current.image)
|
|
54445
|
-
}), " ", current.name);
|
|
54446
|
-
}, [currentLang, languageList]);
|
|
54447
|
-
return React__default.createElement(reactstrap.Dropdown, {
|
|
54448
|
-
isOpen: dropdownOpen,
|
|
54449
|
-
toggle: toggle,
|
|
54450
|
-
className: "" + styles["dropdown-menu"]
|
|
54451
|
-
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
54452
|
-
className: styles["header-avatar"] + " d-flex align-items-center"
|
|
54453
|
-
}, React__default.createElement("span", {
|
|
54454
|
-
style: {
|
|
54455
|
-
color: "#000",
|
|
54456
|
-
textTransform: "capitalize",
|
|
54457
|
-
display: 'flex',
|
|
54458
|
-
alignItems: 'center'
|
|
54459
|
-
}
|
|
54460
|
-
}, currentLanguage, React__default.createElement(bs.BsChevronDown, {
|
|
54461
|
-
className: "ml-2",
|
|
54462
|
-
style: {
|
|
54463
|
-
fontSize: '10px'
|
|
54464
|
-
}
|
|
54465
|
-
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
54466
|
-
className: styles["dropdown-content-language"]
|
|
54467
|
-
}, !!languageList && languageList.length > 0 && languageList.map(function (lang, index) {
|
|
54468
|
-
return React__default.createElement(reactstrap.DropdownItem, {
|
|
54469
|
-
key: lang.code,
|
|
54470
|
-
className: styles["dropdown-change"] + " px-0 py-0 " + (index === languageList.length - 1 ? "pb-2" : "pt-2"),
|
|
54471
|
-
onClick: function onClick() {
|
|
54472
|
-
return changeLanguageApp(lang.code);
|
|
54473
|
-
}
|
|
54474
|
-
}, React__default.createElement("div", {
|
|
54475
|
-
className: styles["dropdown-item-language"] + " " + styles["item-logout"] + " " + (currentLang == lang.code ? styles['dropdown-item-language-active'] : "") + " d-flex align-items-center w-100"
|
|
54476
|
-
}, React__default.createElement("span", {
|
|
54477
|
-
className: "mr-2 d-flex hover-opacity"
|
|
54478
|
-
}, React__default.createElement("img", {
|
|
54479
|
-
style: {
|
|
54480
|
-
width: "30px",
|
|
54481
|
-
height: "25px",
|
|
54482
|
-
borderRadius: "5px"
|
|
54483
|
-
},
|
|
54484
|
-
src: getStaticFileUrl(lang.image)
|
|
54485
|
-
})), lang.name));
|
|
54486
|
-
})));
|
|
54487
|
-
};
|
|
54488
|
-
|
|
54489
|
-
var TheHeader = function TheHeader(_ref) {
|
|
54490
|
-
var onToggleModel = _ref.onToggleModel;
|
|
54491
|
-
var dispatch = reactRedux.useDispatch();
|
|
54492
|
-
var sidebarShow = reactRedux.useSelector(function (state) {
|
|
54493
|
-
return state.common.sidebarShow;
|
|
54494
|
-
});
|
|
54495
|
-
|
|
54496
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54497
|
-
t = _useTranslation.t;
|
|
54498
|
-
|
|
54499
|
-
var toggleSidebarMobile = function toggleSidebarMobile() {
|
|
54500
|
-
var val = [false, "responsive"].includes(sidebarShow) ? true : "responsive";
|
|
54501
|
-
dispatch(setSidebar(val));
|
|
54502
|
-
};
|
|
54503
|
-
|
|
54504
|
-
var isDistrict = window.location.host.includes("-district");
|
|
54505
|
-
return React__default.createElement(react.CHeader, {
|
|
54506
|
-
withSubheader: true,
|
|
54507
|
-
className: "d-flex align-items-center justify-content-end"
|
|
54508
|
-
}, React__default.createElement(react.CToggler, {
|
|
54509
|
-
inHeader: true,
|
|
54510
|
-
className: "ml-md-3 d-lg-none",
|
|
54511
|
-
onClick: toggleSidebarMobile
|
|
54512
|
-
}), React__default.createElement(react.CHeaderBrand, {
|
|
54513
|
-
className: "mx-auto flex-grow-1 d-lg-none",
|
|
54514
|
-
to: "/"
|
|
54515
|
-
}, React__default.createElement("img", {
|
|
54516
|
-
src: getStaticFileUrl(Images.LOGO_HEADER),
|
|
54517
|
-
className: styles["header-logo"]
|
|
54518
|
-
})), React__default.createElement(react.CHeaderNav, {
|
|
54519
|
-
className: "pr-3"
|
|
54520
|
-
}, React__default.createElement(TheLanguageDropdown, null), React__default.createElement("a", {
|
|
54521
|
-
className: "mr-3",
|
|
54522
|
-
style: {
|
|
54523
|
-
color: '#000'
|
|
54524
|
-
},
|
|
54525
|
-
href: '/privacy-policy',
|
|
54526
|
-
target: "blank"
|
|
54527
|
-
}, t("privacy_policy")), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, {
|
|
54528
|
-
onToggleModel: onToggleModel
|
|
54529
|
-
})));
|
|
54530
|
-
};
|
|
54531
|
-
|
|
54532
|
-
var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
54533
|
-
var _handleUserRole;
|
|
54534
|
-
|
|
54535
|
-
var open = _ref.open,
|
|
54536
|
-
onToggleModel = _ref.onToggleModel;
|
|
54537
|
-
var dispatch = reactRedux.useDispatch();
|
|
54538
|
-
|
|
54539
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54540
|
-
t = _useTranslation.t;
|
|
54541
|
-
|
|
54542
|
-
var history = reactRouterDom.useHistory();
|
|
54543
|
-
var pathname = window.location.pathname;
|
|
54544
|
-
var user = reactRedux.useSelector(function (state) {
|
|
54545
|
-
return state.common.user;
|
|
54546
|
-
});
|
|
54547
|
-
var roles = user === null || user === void 0 ? void 0 : user.roles;
|
|
54548
|
-
|
|
54549
|
-
var handleSelectUserRoles = function handleSelectUserRoles(roles) {
|
|
54550
|
-
dispatch(setLoading(true));
|
|
54551
|
-
var roleSelect = roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles;
|
|
54552
|
-
dispatch(setUser(_extends({}, user, {
|
|
54553
|
-
roles: roleSelect
|
|
54554
|
-
})));
|
|
54555
|
-
localStorage.setItem("ROLES", roleSelect.toString());
|
|
54556
|
-
onToggleModel();
|
|
54557
|
-
|
|
54558
|
-
if (roles.includes("Parent")) {
|
|
54559
|
-
history.push("/parent");
|
|
54560
|
-
} else if (roles.includes("Admin")) {
|
|
54561
|
-
history.push("/admin/home");
|
|
54562
|
-
} else {
|
|
54563
|
-
pathname !== "/home" ? history.push("/home") : window.location.reload();
|
|
54564
|
-
}
|
|
54565
|
-
};
|
|
54566
|
-
|
|
54567
|
-
return React__default.createElement(reactstrap.Modal, {
|
|
54568
|
-
isOpen: open,
|
|
54569
|
-
toggle: function toggle() {
|
|
54570
|
-
return onToggleModel();
|
|
54571
|
-
},
|
|
54572
|
-
className: "" + styles["model-switch-roles"],
|
|
54573
|
-
centered: true
|
|
54574
|
-
}, React__default.createElement("p", {
|
|
54575
|
-
className: "" + styles["title"]
|
|
54576
|
-
}, 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) {
|
|
54577
|
-
return React__default.createElement("p", {
|
|
54578
|
-
key: r,
|
|
54579
|
-
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" : ""],
|
|
54580
|
-
onClick: function onClick() {
|
|
54581
|
-
return handleSelectUserRoles([r]);
|
|
54582
|
-
}
|
|
54583
|
-
}, r == "SecondaryTeacher" ? "Support Teacher" : r);
|
|
54584
|
-
})));
|
|
54585
|
-
};
|
|
54586
|
-
|
|
54587
|
-
var TheLayout = function TheLayout(_ref) {
|
|
54588
|
-
var routes = _ref.routes,
|
|
54589
|
-
navigation = _ref.navigation;
|
|
54590
|
-
var history = reactRouterDom.useHistory();
|
|
54591
|
-
var dispatch = reactRedux.useDispatch();
|
|
54592
|
-
var user = reactRedux.useSelector(function (state) {
|
|
54593
|
-
return state.common.user;
|
|
54594
|
-
});
|
|
54595
|
-
var language = reactRedux.useSelector(function (state) {
|
|
54596
|
-
return state.common.language;
|
|
54597
|
-
});
|
|
54598
|
-
|
|
54599
|
-
var _useState = React.useState(false),
|
|
54600
|
-
openModelSelectRole = _useState[0],
|
|
54601
|
-
setOpenModelSelectRole = _useState[1];
|
|
54602
|
-
|
|
54603
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54604
|
-
t = _useTranslation.t;
|
|
54605
|
-
|
|
54606
|
-
var location = reactRouterDom.useLocation();
|
|
54607
|
-
var isNotification = location.pathname.includes("notifications");
|
|
54608
|
-
var isDistrict = window.location.host.includes("-district");
|
|
54609
|
-
|
|
54610
|
-
var handleToggleModel = function handleToggleModel() {
|
|
54611
|
-
setOpenModelSelectRole(!openModelSelectRole);
|
|
54612
|
-
};
|
|
54613
|
-
|
|
54614
|
-
var authRoutes = React.useMemo(function () {
|
|
54615
|
-
return routes.filter(function (route) {
|
|
54616
|
-
return canAccess(user === null || user === void 0 ? void 0 : user.roles, route.roles);
|
|
54617
|
-
}).filter(function (route) {
|
|
54618
|
-
return !!route.isDistrict === isDistrict;
|
|
54619
|
-
});
|
|
54620
|
-
}, [user, language]);
|
|
54621
|
-
var authNavigations = React.useMemo(function () {
|
|
54622
|
-
return navigation.map(function (item) {
|
|
54623
|
-
var _item$_children, _item$_children2;
|
|
54624
|
-
|
|
54625
|
-
return _extends({}, item, {
|
|
54626
|
-
name: t(item.name),
|
|
54627
|
-
_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) {
|
|
54628
|
-
return _extends({}, x, {
|
|
54629
|
-
name: t(x.name)
|
|
54630
|
-
});
|
|
54631
|
-
}) : undefined
|
|
54632
|
-
});
|
|
54633
|
-
}).filter(function (nav) {
|
|
54634
|
-
return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
54635
|
-
}).filter(function (nav) {
|
|
54636
|
-
return !!nav.isDistrict === isDistrict;
|
|
54637
|
-
});
|
|
54638
|
-
}, [user, language]);
|
|
54639
|
-
|
|
54640
|
-
var getInformationSetting = function getInformationSetting() {
|
|
54641
|
-
try {
|
|
54642
|
-
var _temp2 = _catch(function () {
|
|
54643
|
-
return Promise.resolve(getSchoolSettings()).then(function (res) {
|
|
54644
|
-
dispatch(setSandboxMode(res.data.isSandboxMode));
|
|
54645
|
-
});
|
|
54646
|
-
}, function (err) {
|
|
54647
|
-
console.error(err);
|
|
54648
|
-
});
|
|
54649
|
-
|
|
54650
|
-
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
54651
|
-
} catch (e) {
|
|
54652
|
-
return Promise.reject(e);
|
|
54653
|
-
}
|
|
54654
|
-
};
|
|
54655
|
-
|
|
54656
|
-
React.useEffect(function () {
|
|
54657
|
-
checkAuthentication();
|
|
54658
|
-
}, []);
|
|
54659
|
-
React.useEffect(function () {
|
|
54660
|
-
getInformationSetting();
|
|
54661
|
-
}, [location.pathname]);
|
|
54662
|
-
|
|
54663
|
-
var checkAuthentication = function checkAuthentication() {
|
|
54664
|
-
try {
|
|
54665
|
-
var _temp4 = _catch(function () {
|
|
54666
|
-
return Promise.resolve(firstCheckToken()).then(function (tokenStatus) {
|
|
54667
|
-
tokenStatus ? loadInfo() : resetAuth();
|
|
54668
|
-
});
|
|
54669
|
-
}, function () {
|
|
54670
|
-
resetAuth();
|
|
54671
|
-
});
|
|
54672
|
-
|
|
54673
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
54674
|
-
} catch (e) {
|
|
54675
|
-
return Promise.reject(e);
|
|
54676
|
-
}
|
|
54677
|
-
};
|
|
54678
|
-
|
|
54679
|
-
var loadInfo = function loadInfo() {
|
|
54680
|
-
try {
|
|
54681
|
-
var _temp6 = _catch(function () {
|
|
54682
|
-
return Promise.resolve(getInfo()).then(function (info) {
|
|
54683
|
-
var _info$data, _info$data$roles;
|
|
54684
|
-
|
|
54685
|
-
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"))) {
|
|
54686
|
-
resetAuth();
|
|
54687
|
-
}
|
|
54688
|
-
|
|
54689
|
-
dispatch(setUser(info.data));
|
|
54690
|
-
});
|
|
54691
|
-
}, function () {
|
|
54692
|
-
resetAuth();
|
|
54693
|
-
});
|
|
54694
|
-
|
|
54695
|
-
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
54696
|
-
} catch (e) {
|
|
54697
|
-
return Promise.reject(e);
|
|
54698
|
-
}
|
|
54699
|
-
};
|
|
54700
|
-
|
|
54701
|
-
var resetAuth = function resetAuth() {
|
|
54702
|
-
localStorage.removeItem(ACCESS_TOKEN);
|
|
54703
|
-
sessionStorage.removeItem(ACCESS_TOKEN);
|
|
54704
|
-
localStorage.removeItem("ROLES");
|
|
54705
|
-
history.push("/");
|
|
54706
|
-
};
|
|
54707
|
-
|
|
54708
|
-
if (!user) {
|
|
54709
|
-
return React__default.createElement(Loading, null);
|
|
54710
|
-
}
|
|
54711
|
-
|
|
54712
|
-
return React__default.createElement("div", {
|
|
54713
|
-
className: "c-app c-default-layout"
|
|
54714
|
-
}, !isNotification && React__default.createElement(TheSidebar, {
|
|
54715
|
-
navigation: authNavigations
|
|
54716
|
-
}), React__default.createElement("div", {
|
|
54717
|
-
className: "c-wrapper"
|
|
54718
|
-
}, !isNotification && React__default.createElement(TheHeader, {
|
|
54719
|
-
onToggleModel: handleToggleModel
|
|
54720
|
-
}), React__default.createElement("div", {
|
|
54721
|
-
className: "c-body bg-white"
|
|
54722
|
-
}, React__default.createElement(TheContent$1, {
|
|
54723
|
-
routes: authRoutes
|
|
54724
|
-
}))), React__default.createElement(ModelSelectRole, {
|
|
54725
|
-
open: openModelSelectRole,
|
|
54726
|
-
onToggleModel: handleToggleModel
|
|
54727
|
-
}));
|
|
54728
|
-
};
|
|
54729
|
-
|
|
54730
54800
|
var amplitudeClient = amplitude;
|
|
54731
54801
|
|
|
54732
54802
|
Object.defineProperty(exports, 'I18nextProvider', {
|