mario-core 2.9.408-wellbeing → 2.9.409-wellbeing
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 +700 -483
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +703 -486
- 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?";
|
|
@@ -2203,6 +2204,26 @@ var take_a_moment_for_you = "Take a Moment for You";
|
|
|
2203
2204
|
var it_s_time_to_take_care_of_yourself_start_your_well_being_check_in_to_reflect_on_how_you_re_doing_and_receive_the_support_you_deserve = "It’s time to take care of yourself. Start your Well-Being Check-In to reflect on how you’re doing and receive the support you deserve.";
|
|
2204
2205
|
var start_check_in_now = "START CHECK-IN NOW";
|
|
2205
2206
|
var i_ll_do_it_later = "I’LL DO IT LATER";
|
|
2207
|
+
var survey_portal = "Survey Portal";
|
|
2208
|
+
var external_api = "External Api";
|
|
2209
|
+
var teacher_well_being = "Teacher Well-Being";
|
|
2210
|
+
var frequency_and_setup = "Frequency and Setup";
|
|
2211
|
+
var well_being_dashboard = "Well-Being Dashboard";
|
|
2212
|
+
var go_to_dashboard = "Go to dashboard";
|
|
2213
|
+
var your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey = "Your responses have been recorded and will help us better understand and support your well-being journey.";
|
|
2214
|
+
var you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time = "You can view your personal well-being dashboard anytime to track your progress over time.";
|
|
2215
|
+
var remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership = "Remember: Your individual responses remain private and confidential. Only aggregated data is shared with school leadership.";
|
|
2216
|
+
var check_in_complete = "Check-in Complete!";
|
|
2217
|
+
var schedule_a_conversation = "Schedule a Conversation";
|
|
2218
|
+
var select_a_contact_to_speak_with = "Select a contact to speak with";
|
|
2219
|
+
var what_would_you_like_to_discuss = "What would you like to discuss?";
|
|
2220
|
+
var please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have = "Please describe what you'd like to talk about or any specific concerns you have...";
|
|
2221
|
+
var wellbeing_sections = "Wellbeing Sections";
|
|
2222
|
+
var school_monthly_usage = "School Monthly Usage";
|
|
2223
|
+
var location$1 = "Location";
|
|
2224
|
+
var edit_my_profile = "Edit My Profile";
|
|
2225
|
+
var save_new_password = "Save new password";
|
|
2226
|
+
var teacher_code = "Teacher code";
|
|
2206
2227
|
var lang_us = {
|
|
2207
2228
|
dashboard: dashboard,
|
|
2208
2229
|
user: user,
|
|
@@ -4241,6 +4262,7 @@ var lang_us = {
|
|
|
4241
4262
|
leave: leave,
|
|
4242
4263
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard,
|
|
4243
4264
|
my_dashboard: my_dashboard,
|
|
4265
|
+
nice_choice_what_area_of_category_would_you_like_to_work_on: nice_choice_what_area_of_category_would_you_like_to_work_on,
|
|
4244
4266
|
"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?",
|
|
4245
4267
|
nice_choice_what_area_of_academics_would_you_like_to_work_on: nice_choice_what_area_of_academics_would_you_like_to_work_on,
|
|
4246
4268
|
nice_choice_what_area_of_organization_would_you_like_to_work_on: nice_choice_what_area_of_organization_would_you_like_to_work_on,
|
|
@@ -4422,7 +4444,27 @@ var lang_us = {
|
|
|
4422
4444
|
take_a_moment_for_you: take_a_moment_for_you,
|
|
4423
4445
|
it_s_time_to_take_care_of_yourself_start_your_well_being_check_in_to_reflect_on_how_you_re_doing_and_receive_the_support_you_deserve: it_s_time_to_take_care_of_yourself_start_your_well_being_check_in_to_reflect_on_how_you_re_doing_and_receive_the_support_you_deserve,
|
|
4424
4446
|
start_check_in_now: start_check_in_now,
|
|
4425
|
-
i_ll_do_it_later: i_ll_do_it_later
|
|
4447
|
+
i_ll_do_it_later: i_ll_do_it_later,
|
|
4448
|
+
survey_portal: survey_portal,
|
|
4449
|
+
external_api: external_api,
|
|
4450
|
+
teacher_well_being: teacher_well_being,
|
|
4451
|
+
frequency_and_setup: frequency_and_setup,
|
|
4452
|
+
well_being_dashboard: well_being_dashboard,
|
|
4453
|
+
go_to_dashboard: go_to_dashboard,
|
|
4454
|
+
your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey: your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey,
|
|
4455
|
+
you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time: you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time,
|
|
4456
|
+
remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership: remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership,
|
|
4457
|
+
check_in_complete: check_in_complete,
|
|
4458
|
+
schedule_a_conversation: schedule_a_conversation,
|
|
4459
|
+
select_a_contact_to_speak_with: select_a_contact_to_speak_with,
|
|
4460
|
+
what_would_you_like_to_discuss: what_would_you_like_to_discuss,
|
|
4461
|
+
please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have: please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have,
|
|
4462
|
+
wellbeing_sections: wellbeing_sections,
|
|
4463
|
+
school_monthly_usage: school_monthly_usage,
|
|
4464
|
+
location: location$1,
|
|
4465
|
+
edit_my_profile: edit_my_profile,
|
|
4466
|
+
save_new_password: save_new_password,
|
|
4467
|
+
teacher_code: teacher_code
|
|
4426
4468
|
};
|
|
4427
4469
|
|
|
4428
4470
|
var dashboard$1 = "Dashboard";
|
|
@@ -5234,7 +5276,7 @@ var email_notifications$1 = "Email Notifications";
|
|
|
5234
5276
|
var turn_on_all_emails$1 = "Turn on all emails";
|
|
5235
5277
|
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”";
|
|
5236
5278
|
var a_student_reported_a_low_safety_score_on_a_check_in$1 = "A student reported a low safety score on a check-in";
|
|
5237
|
-
var continue_as$1 = "Continue as
|
|
5279
|
+
var continue_as$1 = "Continue as";
|
|
5238
5280
|
var admin$1 = "Admin";
|
|
5239
5281
|
var counselor$1 = "Counselor";
|
|
5240
5282
|
var support_teacher$1 = "SupportTeacher";
|
|
@@ -6423,6 +6465,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
6423
6465
|
var leave$1 = "leave";
|
|
6424
6466
|
var go_to_the_survey_dashboard$1 = "Go to the Survey Dashboard";
|
|
6425
6467
|
var my_dashboard$1 = "My Dashboard";
|
|
6468
|
+
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?";
|
|
6426
6469
|
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?";
|
|
6427
6470
|
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?";
|
|
6428
6471
|
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?";
|
|
@@ -6568,6 +6611,26 @@ var save_note$1 = "Save note";
|
|
|
6568
6611
|
var type_the_main_focus_of_this_session$1 = "Type the main focus of this session";
|
|
6569
6612
|
var please_add_title_note$1 = "Please add note title";
|
|
6570
6613
|
var notes_and_logs$1 = "Notes and Logs";
|
|
6614
|
+
var survey_portal$1 = "Survey Portal";
|
|
6615
|
+
var external_api$1 = "External Api";
|
|
6616
|
+
var teacher_well_being$1 = "Teacher Well-Being";
|
|
6617
|
+
var frequency_and_setup$1 = "Frequency and Setup";
|
|
6618
|
+
var well_being_dashboard$1 = "Well-Being Dashboard";
|
|
6619
|
+
var go_to_dashboard$1 = "Go to dashboard";
|
|
6620
|
+
var your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$1 = "Your responses have been recorded and will help us better understand and support your well-being journey.";
|
|
6621
|
+
var you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$1 = "You can view your personal well-being dashboard anytime to track your progress over time.";
|
|
6622
|
+
var remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$1 = "Remember: Your individual responses remain private and confidential. Only aggregated data is shared with school leadership.";
|
|
6623
|
+
var check_in_complete$1 = "Check-in Complete!";
|
|
6624
|
+
var schedule_a_conversation$1 = "Schedule a Conversation";
|
|
6625
|
+
var select_a_contact_to_speak_with$1 = "Select a contact to speak with";
|
|
6626
|
+
var what_would_you_like_to_discuss$1 = "What would you like to discuss?";
|
|
6627
|
+
var please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$1 = "Please describe what you'd like to talk about or any specific concerns you have...";
|
|
6628
|
+
var wellbeing_sections$1 = "Wellbeing Sections";
|
|
6629
|
+
var school_monthly_usage$1 = "School Monthly Usage";
|
|
6630
|
+
var location$2 = "Location";
|
|
6631
|
+
var edit_my_profile$1 = "Edit My Profile";
|
|
6632
|
+
var save_new_password$1 = "Save new password";
|
|
6633
|
+
var teacher_code$1 = "Teacher code";
|
|
6571
6634
|
var lang_uk = {
|
|
6572
6635
|
dashboard: dashboard$1,
|
|
6573
6636
|
user: user$1,
|
|
@@ -8606,6 +8669,7 @@ var lang_uk = {
|
|
|
8606
8669
|
leave: leave$1,
|
|
8607
8670
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$1,
|
|
8608
8671
|
my_dashboard: my_dashboard$1,
|
|
8672
|
+
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,
|
|
8609
8673
|
"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?",
|
|
8610
8674
|
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,
|
|
8611
8675
|
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,
|
|
@@ -8763,7 +8827,27 @@ var lang_uk = {
|
|
|
8763
8827
|
save_note: save_note$1,
|
|
8764
8828
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$1,
|
|
8765
8829
|
please_add_title_note: please_add_title_note$1,
|
|
8766
|
-
notes_and_logs: notes_and_logs$1
|
|
8830
|
+
notes_and_logs: notes_and_logs$1,
|
|
8831
|
+
survey_portal: survey_portal$1,
|
|
8832
|
+
external_api: external_api$1,
|
|
8833
|
+
teacher_well_being: teacher_well_being$1,
|
|
8834
|
+
frequency_and_setup: frequency_and_setup$1,
|
|
8835
|
+
well_being_dashboard: well_being_dashboard$1,
|
|
8836
|
+
go_to_dashboard: go_to_dashboard$1,
|
|
8837
|
+
your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey: your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$1,
|
|
8838
|
+
you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time: you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$1,
|
|
8839
|
+
remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership: remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$1,
|
|
8840
|
+
check_in_complete: check_in_complete$1,
|
|
8841
|
+
schedule_a_conversation: schedule_a_conversation$1,
|
|
8842
|
+
select_a_contact_to_speak_with: select_a_contact_to_speak_with$1,
|
|
8843
|
+
what_would_you_like_to_discuss: what_would_you_like_to_discuss$1,
|
|
8844
|
+
please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have: please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$1,
|
|
8845
|
+
wellbeing_sections: wellbeing_sections$1,
|
|
8846
|
+
school_monthly_usage: school_monthly_usage$1,
|
|
8847
|
+
location: location$2,
|
|
8848
|
+
edit_my_profile: edit_my_profile$1,
|
|
8849
|
+
save_new_password: save_new_password$1,
|
|
8850
|
+
teacher_code: teacher_code$1
|
|
8767
8851
|
};
|
|
8768
8852
|
|
|
8769
8853
|
var dashboard$2 = "لوحة المعلومات";
|
|
@@ -9572,7 +9656,7 @@ var email_notifications$2 = "إشعارات البريد الإلكتروني";
|
|
|
9572
9656
|
var turn_on_all_emails$2 = "تشغيل جميع عناوين البريد الإلكتروني";
|
|
9573
9657
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$2 = "استجابة طالب للاستعداد للتعلم في المحادثة الفردية بـ \"لا\"";
|
|
9574
9658
|
var a_student_reported_a_low_safety_score_on_a_check_in$2 = "إبلاغ طالب عن انخفاض درجة السلامة عند تسجيل حضوره";
|
|
9575
|
-
var continue_as$2 = "الاستمرار
|
|
9659
|
+
var continue_as$2 = "الاستمرار كـ";
|
|
9576
9660
|
var admin$2 = "المدير";
|
|
9577
9661
|
var counselor$2 = "المستشار";
|
|
9578
9662
|
var support_teacher$2 = "معلِّم الدعم";
|
|
@@ -10796,6 +10880,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
10796
10880
|
var leave$2 = "يترك";
|
|
10797
10881
|
var go_to_the_survey_dashboard$2 = "انتقل إلى لوحة معلومات الاستطلاع";
|
|
10798
10882
|
var my_dashboard$2 = "لوحة التحكم الخاصة بي";
|
|
10883
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$2 = "اختيار جميل! ما هو مجال {{category}} الذي ترغب في العمل عليه؟";
|
|
10799
10884
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$2 = "اختيار جميل! ما هو المجال الأكاديمي الذي ترغب بالعمل فيه؟";
|
|
10800
10885
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$2 = "اختيار جميل! في أي مجال من مجالات المنظمة تود العمل؟";
|
|
10801
10886
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$2 = "اختيار جميل! ما هو مجال التركيز الذي ترغب في العمل عليه؟";
|
|
@@ -10939,6 +11024,27 @@ var save_note$2 = "Save note";
|
|
|
10939
11024
|
var type_the_main_focus_of_this_session$2 = "Type the main focus of this session";
|
|
10940
11025
|
var please_add_title_note$2 = "Please add note title";
|
|
10941
11026
|
var notes_and_logs$2 = "Notes and Logs";
|
|
11027
|
+
var survey_portal$2 = "Survey Portal";
|
|
11028
|
+
var integrations$2 = "Integrations";
|
|
11029
|
+
var external_api$2 = "External Api";
|
|
11030
|
+
var teacher_well_being$2 = "Teacher Well-Being";
|
|
11031
|
+
var frequency_and_setup$2 = "Frequency and Setup";
|
|
11032
|
+
var well_being_dashboard$2 = "Well-Being Dashboard";
|
|
11033
|
+
var go_to_dashboard$2 = "Go to dashboard";
|
|
11034
|
+
var your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$2 = "Your responses have been recorded and will help us better understand and support your well-being journey.";
|
|
11035
|
+
var you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$2 = "You can view your personal well-being dashboard anytime to track your progress over time.";
|
|
11036
|
+
var remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$2 = "Remember: Your individual responses remain private and confidential. Only aggregated data is shared with school leadership.";
|
|
11037
|
+
var check_in_complete$2 = "Check-in Complete!";
|
|
11038
|
+
var schedule_a_conversation$2 = "Schedule a Conversation";
|
|
11039
|
+
var select_a_contact_to_speak_with$2 = "Select a contact to speak with";
|
|
11040
|
+
var what_would_you_like_to_discuss$2 = "What would you like to discuss?";
|
|
11041
|
+
var please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$2 = "Please describe what you'd like to talk about or any specific concerns you have...";
|
|
11042
|
+
var wellbeing_sections$2 = "Wellbeing Sections";
|
|
11043
|
+
var school_monthly_usage$2 = "School Monthly Usage";
|
|
11044
|
+
var location$3 = "Location";
|
|
11045
|
+
var edit_my_profile$2 = "Edit My Profile";
|
|
11046
|
+
var save_new_password$2 = "Save new password";
|
|
11047
|
+
var teacher_code$2 = "Teacher code";
|
|
10942
11048
|
var lang_ar = {
|
|
10943
11049
|
dashboard: dashboard$2,
|
|
10944
11050
|
user: user$2,
|
|
@@ -13011,6 +13117,7 @@ var lang_ar = {
|
|
|
13011
13117
|
leave: leave$2,
|
|
13012
13118
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$2,
|
|
13013
13119
|
my_dashboard: my_dashboard$2,
|
|
13120
|
+
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,
|
|
13014
13121
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "اختيار جميل! ما هو مجال الصحة والرفاهية الذي ترغب في العمل فيه؟",
|
|
13015
13122
|
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,
|
|
13016
13123
|
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,
|
|
@@ -13166,7 +13273,28 @@ var lang_ar = {
|
|
|
13166
13273
|
save_note: save_note$2,
|
|
13167
13274
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$2,
|
|
13168
13275
|
please_add_title_note: please_add_title_note$2,
|
|
13169
|
-
notes_and_logs: notes_and_logs$2
|
|
13276
|
+
notes_and_logs: notes_and_logs$2,
|
|
13277
|
+
survey_portal: survey_portal$2,
|
|
13278
|
+
integrations: integrations$2,
|
|
13279
|
+
external_api: external_api$2,
|
|
13280
|
+
teacher_well_being: teacher_well_being$2,
|
|
13281
|
+
frequency_and_setup: frequency_and_setup$2,
|
|
13282
|
+
well_being_dashboard: well_being_dashboard$2,
|
|
13283
|
+
go_to_dashboard: go_to_dashboard$2,
|
|
13284
|
+
your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey: your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$2,
|
|
13285
|
+
you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time: you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$2,
|
|
13286
|
+
remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership: remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$2,
|
|
13287
|
+
check_in_complete: check_in_complete$2,
|
|
13288
|
+
schedule_a_conversation: schedule_a_conversation$2,
|
|
13289
|
+
select_a_contact_to_speak_with: select_a_contact_to_speak_with$2,
|
|
13290
|
+
what_would_you_like_to_discuss: what_would_you_like_to_discuss$2,
|
|
13291
|
+
please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have: please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$2,
|
|
13292
|
+
wellbeing_sections: wellbeing_sections$2,
|
|
13293
|
+
school_monthly_usage: school_monthly_usage$2,
|
|
13294
|
+
location: location$3,
|
|
13295
|
+
edit_my_profile: edit_my_profile$2,
|
|
13296
|
+
save_new_password: save_new_password$2,
|
|
13297
|
+
teacher_code: teacher_code$2
|
|
13170
13298
|
};
|
|
13171
13299
|
|
|
13172
13300
|
var dashboard$3 = "Cuadro de mandos";
|
|
@@ -13975,7 +14103,7 @@ var email_notifications$3 = "Notificaciones por correo electrónico";
|
|
|
13975
14103
|
var turn_on_all_emails$3 = "Active todos los correos electrónicos";
|
|
13976
14104
|
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";
|
|
13977
14105
|
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";
|
|
13978
|
-
var continue_as$3 = "Continuar como
|
|
14106
|
+
var continue_as$3 = "Continuar como";
|
|
13979
14107
|
var admin$3 = "Administrador";
|
|
13980
14108
|
var counselor$3 = "Consejero";
|
|
13981
14109
|
var support_teacher$3 = "Profesor de apoyo";
|
|
@@ -15199,6 +15327,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
15199
15327
|
var leave$3 = "dejar";
|
|
15200
15328
|
var go_to_the_survey_dashboard$3 = "Ir al panel de encuestas";
|
|
15201
15329
|
var my_dashboard$3 = "Mi panel de control";
|
|
15330
|
+
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?";
|
|
15202
15331
|
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?";
|
|
15203
15332
|
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?";
|
|
15204
15333
|
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?";
|
|
@@ -15342,6 +15471,27 @@ var save_note$3 = "Save note";
|
|
|
15342
15471
|
var type_the_main_focus_of_this_session$3 = "Type the main focus of this session";
|
|
15343
15472
|
var please_add_title_note$3 = "Please add note title";
|
|
15344
15473
|
var notes_and_logs$3 = "Notes and Logs";
|
|
15474
|
+
var survey_portal$3 = "Survey Portal";
|
|
15475
|
+
var integrations$3 = "Integrations";
|
|
15476
|
+
var external_api$3 = "External Api";
|
|
15477
|
+
var teacher_well_being$3 = "Teacher Well-Being";
|
|
15478
|
+
var frequency_and_setup$3 = "Frequency and Setup";
|
|
15479
|
+
var well_being_dashboard$3 = "Well-Being Dashboard";
|
|
15480
|
+
var go_to_dashboard$3 = "Go to dashboard";
|
|
15481
|
+
var your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$3 = "Your responses have been recorded and will help us better understand and support your well-being journey.";
|
|
15482
|
+
var you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$3 = "You can view your personal well-being dashboard anytime to track your progress over time.";
|
|
15483
|
+
var remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$3 = "Remember: Your individual responses remain private and confidential. Only aggregated data is shared with school leadership.";
|
|
15484
|
+
var check_in_complete$3 = "Check-in Complete!";
|
|
15485
|
+
var schedule_a_conversation$3 = "Schedule a Conversation";
|
|
15486
|
+
var select_a_contact_to_speak_with$3 = "Select a contact to speak with";
|
|
15487
|
+
var what_would_you_like_to_discuss$3 = "What would you like to discuss?";
|
|
15488
|
+
var please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$3 = "Please describe what you'd like to talk about or any specific concerns you have...";
|
|
15489
|
+
var wellbeing_sections$3 = "Wellbeing Sections";
|
|
15490
|
+
var school_monthly_usage$3 = "School Monthly Usage";
|
|
15491
|
+
var location$4 = "Location";
|
|
15492
|
+
var edit_my_profile$3 = "Edit My Profile";
|
|
15493
|
+
var save_new_password$3 = "Save new password";
|
|
15494
|
+
var teacher_code$3 = "Teacher code";
|
|
15345
15495
|
var lang_es = {
|
|
15346
15496
|
dashboard: dashboard$3,
|
|
15347
15497
|
user: user$3,
|
|
@@ -17414,6 +17564,7 @@ var lang_es = {
|
|
|
17414
17564
|
leave: leave$3,
|
|
17415
17565
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$3,
|
|
17416
17566
|
my_dashboard: my_dashboard$3,
|
|
17567
|
+
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,
|
|
17417
17568
|
"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?",
|
|
17418
17569
|
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,
|
|
17419
17570
|
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,
|
|
@@ -17569,7 +17720,28 @@ var lang_es = {
|
|
|
17569
17720
|
save_note: save_note$3,
|
|
17570
17721
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$3,
|
|
17571
17722
|
please_add_title_note: please_add_title_note$3,
|
|
17572
|
-
notes_and_logs: notes_and_logs$3
|
|
17723
|
+
notes_and_logs: notes_and_logs$3,
|
|
17724
|
+
survey_portal: survey_portal$3,
|
|
17725
|
+
integrations: integrations$3,
|
|
17726
|
+
external_api: external_api$3,
|
|
17727
|
+
teacher_well_being: teacher_well_being$3,
|
|
17728
|
+
frequency_and_setup: frequency_and_setup$3,
|
|
17729
|
+
well_being_dashboard: well_being_dashboard$3,
|
|
17730
|
+
go_to_dashboard: go_to_dashboard$3,
|
|
17731
|
+
your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey: your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$3,
|
|
17732
|
+
you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time: you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$3,
|
|
17733
|
+
remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership: remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$3,
|
|
17734
|
+
check_in_complete: check_in_complete$3,
|
|
17735
|
+
schedule_a_conversation: schedule_a_conversation$3,
|
|
17736
|
+
select_a_contact_to_speak_with: select_a_contact_to_speak_with$3,
|
|
17737
|
+
what_would_you_like_to_discuss: what_would_you_like_to_discuss$3,
|
|
17738
|
+
please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have: please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$3,
|
|
17739
|
+
wellbeing_sections: wellbeing_sections$3,
|
|
17740
|
+
school_monthly_usage: school_monthly_usage$3,
|
|
17741
|
+
location: location$4,
|
|
17742
|
+
edit_my_profile: edit_my_profile$3,
|
|
17743
|
+
save_new_password: save_new_password$3,
|
|
17744
|
+
teacher_code: teacher_code$3
|
|
17573
17745
|
};
|
|
17574
17746
|
|
|
17575
17747
|
var dashboard$4 = "仪表板";
|
|
@@ -18378,7 +18550,7 @@ var email_notifications$4 = "电子邮件通知";
|
|
|
18378
18550
|
var turn_on_all_emails$4 = "打开所有电子邮件";
|
|
18379
18551
|
var a_student_responds_to_a_1_1_readiness_to_learn_with_no$4 = "学生对 1-1 学习准备度的回复为“否”";
|
|
18380
18552
|
var a_student_reported_a_low_safety_score_on_a_check_in$4 = "学生在签到时报告安全分数低";
|
|
18381
|
-
var continue_as$4 = "
|
|
18553
|
+
var continue_as$4 = "继续担任";
|
|
18382
18554
|
var admin$4 = "管理员";
|
|
18383
18555
|
var counselor$4 = "辅导员";
|
|
18384
18556
|
var support_teacher$4 = "支持老师";
|
|
@@ -19602,6 +19774,7 @@ var your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of
|
|
|
19602
19774
|
var leave$4 = "离开";
|
|
19603
19775
|
var go_to_the_survey_dashboard$4 = "前往调查仪表板";
|
|
19604
19776
|
var my_dashboard$4 = "我的仪表板";
|
|
19777
|
+
var nice_choice_what_area_of_category_would_you_like_to_work_on$4 = "不错的选择!您想在哪个{{category}}领域开展工作?";
|
|
19605
19778
|
var nice_choice_what_area_of_academics_would_you_like_to_work_on$4 = "尼克·奇克!我看到如果你有学者和你的儿子塔希尔,你有论文吗?";
|
|
19606
19779
|
var nice_choice_what_area_of_organization_would_you_like_to_work_on$4 = "尼克·奇克!让我看看,如果您正在安排,并且您有一个儿子,您有文件吗?";
|
|
19607
19780
|
var nice_choice_what_area_of_focus_would_you_like_to_work_on$4 = "不错的选择!您希望在哪个重点领域开展工作?";
|
|
@@ -19745,6 +19918,27 @@ var save_note$4 = "Save note";
|
|
|
19745
19918
|
var type_the_main_focus_of_this_session$4 = "Type the main focus of this session";
|
|
19746
19919
|
var please_add_title_note$4 = "Please add note title";
|
|
19747
19920
|
var notes_and_logs$4 = "Notes and Logs";
|
|
19921
|
+
var survey_portal$4 = "Survey Portal";
|
|
19922
|
+
var integrations$4 = "Integrations";
|
|
19923
|
+
var external_api$4 = "External Api";
|
|
19924
|
+
var teacher_well_being$4 = "Teacher Well-Being";
|
|
19925
|
+
var frequency_and_setup$4 = "Frequency and Setup";
|
|
19926
|
+
var well_being_dashboard$4 = "Well-Being Dashboard";
|
|
19927
|
+
var go_to_dashboard$4 = "Go to dashboard";
|
|
19928
|
+
var your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$4 = "Your responses have been recorded and will help us better understand and support your well-being journey.";
|
|
19929
|
+
var you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$4 = "You can view your personal well-being dashboard anytime to track your progress over time.";
|
|
19930
|
+
var remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$4 = "Remember: Your individual responses remain private and confidential. Only aggregated data is shared with school leadership.";
|
|
19931
|
+
var check_in_complete$4 = "Check-in Complete!";
|
|
19932
|
+
var schedule_a_conversation$4 = "Schedule a Conversation";
|
|
19933
|
+
var select_a_contact_to_speak_with$4 = "Select a contact to speak with";
|
|
19934
|
+
var what_would_you_like_to_discuss$4 = "What would you like to discuss?";
|
|
19935
|
+
var please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$4 = "Please describe what you'd like to talk about or any specific concerns you have...";
|
|
19936
|
+
var wellbeing_sections$4 = "Wellbeing Sections";
|
|
19937
|
+
var school_monthly_usage$4 = "School Monthly Usage";
|
|
19938
|
+
var location$5 = "Location";
|
|
19939
|
+
var edit_my_profile$4 = "Edit My Profile";
|
|
19940
|
+
var save_new_password$4 = "Save new password";
|
|
19941
|
+
var teacher_code$4 = "Teacher code";
|
|
19748
19942
|
var lang_zh = {
|
|
19749
19943
|
dashboard: dashboard$4,
|
|
19750
19944
|
user: user$4,
|
|
@@ -21817,6 +22011,7 @@ var lang_zh = {
|
|
|
21817
22011
|
leave: leave$4,
|
|
21818
22012
|
go_to_the_survey_dashboard: go_to_the_survey_dashboard$4,
|
|
21819
22013
|
my_dashboard: my_dashboard$4,
|
|
22014
|
+
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,
|
|
21820
22015
|
"nice_choice_what_area_of_well-being_would_you_like_to_work_on": "不错的选择!您想在哪个幸福健康领域开展工作?",
|
|
21821
22016
|
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,
|
|
21822
22017
|
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,
|
|
@@ -21972,7 +22167,28 @@ var lang_zh = {
|
|
|
21972
22167
|
save_note: save_note$4,
|
|
21973
22168
|
type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$4,
|
|
21974
22169
|
please_add_title_note: please_add_title_note$4,
|
|
21975
|
-
notes_and_logs: notes_and_logs$4
|
|
22170
|
+
notes_and_logs: notes_and_logs$4,
|
|
22171
|
+
survey_portal: survey_portal$4,
|
|
22172
|
+
integrations: integrations$4,
|
|
22173
|
+
external_api: external_api$4,
|
|
22174
|
+
teacher_well_being: teacher_well_being$4,
|
|
22175
|
+
frequency_and_setup: frequency_and_setup$4,
|
|
22176
|
+
well_being_dashboard: well_being_dashboard$4,
|
|
22177
|
+
go_to_dashboard: go_to_dashboard$4,
|
|
22178
|
+
your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey: your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey$4,
|
|
22179
|
+
you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time: you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time$4,
|
|
22180
|
+
remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership: remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership$4,
|
|
22181
|
+
check_in_complete: check_in_complete$4,
|
|
22182
|
+
schedule_a_conversation: schedule_a_conversation$4,
|
|
22183
|
+
select_a_contact_to_speak_with: select_a_contact_to_speak_with$4,
|
|
22184
|
+
what_would_you_like_to_discuss: what_would_you_like_to_discuss$4,
|
|
22185
|
+
please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have: please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have$4,
|
|
22186
|
+
wellbeing_sections: wellbeing_sections$4,
|
|
22187
|
+
school_monthly_usage: school_monthly_usage$4,
|
|
22188
|
+
location: location$5,
|
|
22189
|
+
edit_my_profile: edit_my_profile$4,
|
|
22190
|
+
save_new_password: save_new_password$4,
|
|
22191
|
+
teacher_code: teacher_code$4
|
|
21976
22192
|
};
|
|
21977
22193
|
|
|
21978
22194
|
var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
|
|
@@ -39758,7 +39974,8 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39758
39974
|
lg: 6,
|
|
39759
39975
|
md: 6,
|
|
39760
39976
|
xs: 12,
|
|
39761
|
-
className: styles["btn-login-sso"] + " pl-md-2"
|
|
39977
|
+
className: styles["btn-login-sso"] + " pl-md-2",
|
|
39978
|
+
hidden: !(school !== null && school !== void 0 && school.schoolId)
|
|
39762
39979
|
}, React__default.createElement("div", {
|
|
39763
39980
|
className: styles["btn-login-with-sso"],
|
|
39764
39981
|
onClick: function onClick() {
|
|
@@ -40949,6 +41166,8 @@ var useLogin = function useLogin() {
|
|
|
40949
41166
|
try {
|
|
40950
41167
|
msalInstance.handleRedirectPromise().then(function (tokenResponse) {
|
|
40951
41168
|
try {
|
|
41169
|
+
if (!(school !== null && school !== void 0 && school.schoolId)) return Promise.resolve();
|
|
41170
|
+
|
|
40952
41171
|
var _temp38 = function () {
|
|
40953
41172
|
if (!tokenResponse) {
|
|
40954
41173
|
var accounts = msalInstance.getAllAccounts();
|
|
@@ -41841,6 +42060,212 @@ var TheHeaderDropdown = function TheHeaderDropdown(_ref) {
|
|
|
41841
42060
|
})), t("log_out")))));
|
|
41842
42061
|
};
|
|
41843
42062
|
|
|
42063
|
+
var apiGetLanguage = function apiGetLanguage() {
|
|
42064
|
+
return api.get(BASE_URL + "/api/language");
|
|
42065
|
+
};
|
|
42066
|
+
|
|
42067
|
+
var apiUpdateLanguage = function apiUpdateLanguage(lang) {
|
|
42068
|
+
return api.put(BASE_URL + "/api/language?lang=" + lang);
|
|
42069
|
+
};
|
|
42070
|
+
|
|
42071
|
+
var LANGUAGE_SYSTEM = "LANGUAGE_SYSTEM";
|
|
42072
|
+
|
|
42073
|
+
var useLanguages = function useLanguages() {
|
|
42074
|
+
var dispatch = reactRedux.useDispatch();
|
|
42075
|
+
|
|
42076
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
42077
|
+
i18n = _useTranslation.i18n;
|
|
42078
|
+
|
|
42079
|
+
var language = reactRedux.useSelector(function (state) {
|
|
42080
|
+
return state.common.language;
|
|
42081
|
+
});
|
|
42082
|
+
var defaultLanguage = getCookieValue(LANGUAGE_SYSTEM) != null ? getCookieValue(LANGUAGE_SYSTEM) : DEFAULT_LANGUAGE_CODE;
|
|
42083
|
+
|
|
42084
|
+
var _useState = React.useState([]),
|
|
42085
|
+
languageList = _useState[0],
|
|
42086
|
+
setLanguageList = _useState[1];
|
|
42087
|
+
|
|
42088
|
+
var _useState2 = React.useState(false),
|
|
42089
|
+
dropdownOpen = _useState2[0],
|
|
42090
|
+
setDropdownOpen = _useState2[1];
|
|
42091
|
+
|
|
42092
|
+
var _useState3 = React.useState(defaultLanguage),
|
|
42093
|
+
currentLang = _useState3[0],
|
|
42094
|
+
setCurrentLang = _useState3[1];
|
|
42095
|
+
|
|
42096
|
+
var toggle = function toggle() {
|
|
42097
|
+
return setDropdownOpen(function (prevState) {
|
|
42098
|
+
return !prevState;
|
|
42099
|
+
});
|
|
42100
|
+
};
|
|
42101
|
+
|
|
42102
|
+
var changeLanguageApp = function changeLanguageApp(lang) {
|
|
42103
|
+
try {
|
|
42104
|
+
var _temp3 = function _temp3() {
|
|
42105
|
+
dispatch(setLoading(false));
|
|
42106
|
+
};
|
|
42107
|
+
|
|
42108
|
+
dispatch(setLoading(true));
|
|
42109
|
+
|
|
42110
|
+
var _temp4 = _catch(function () {
|
|
42111
|
+
return Promise.resolve(apiUpdateLanguage(lang)).then(function () {
|
|
42112
|
+
i18n.changeLanguage(lang);
|
|
42113
|
+
setCurrentLang(lang);
|
|
42114
|
+
dispatch(setLanguage(lang));
|
|
42115
|
+
});
|
|
42116
|
+
}, function (err) {
|
|
42117
|
+
var _err$response, _err$response$data;
|
|
42118
|
+
|
|
42119
|
+
dispatch(setAlert({
|
|
42120
|
+
type: "danger",
|
|
42121
|
+
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
|
|
42122
|
+
}));
|
|
42123
|
+
});
|
|
42124
|
+
|
|
42125
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
42126
|
+
} catch (e) {
|
|
42127
|
+
return Promise.reject(e);
|
|
42128
|
+
}
|
|
42129
|
+
};
|
|
42130
|
+
|
|
42131
|
+
var getListLanguage = function getListLanguage() {
|
|
42132
|
+
try {
|
|
42133
|
+
var _temp6 = _catch(function () {
|
|
42134
|
+
return Promise.resolve(apiGetLanguage()).then(function (res) {
|
|
42135
|
+
setLanguageList(res.data);
|
|
42136
|
+
});
|
|
42137
|
+
}, function (err) {
|
|
42138
|
+
var _err$response2, _err$response2$data;
|
|
42139
|
+
|
|
42140
|
+
dispatch(setAlert({
|
|
42141
|
+
type: "danger",
|
|
42142
|
+
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
|
|
42143
|
+
}));
|
|
42144
|
+
});
|
|
42145
|
+
|
|
42146
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
42147
|
+
} catch (e) {
|
|
42148
|
+
return Promise.reject(e);
|
|
42149
|
+
}
|
|
42150
|
+
};
|
|
42151
|
+
|
|
42152
|
+
React.useEffect(function () {
|
|
42153
|
+
defaultLanguage != language && changeLanguageApp(defaultLanguage);
|
|
42154
|
+
getListLanguage();
|
|
42155
|
+
}, []);
|
|
42156
|
+
return {
|
|
42157
|
+
languageList: languageList,
|
|
42158
|
+
toggle: toggle,
|
|
42159
|
+
dropdownOpen: dropdownOpen,
|
|
42160
|
+
currentLang: currentLang,
|
|
42161
|
+
changeLanguageApp: changeLanguageApp,
|
|
42162
|
+
setCurrentLang: setCurrentLang
|
|
42163
|
+
};
|
|
42164
|
+
};
|
|
42165
|
+
|
|
42166
|
+
var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
42167
|
+
var _useLanguages = useLanguages(),
|
|
42168
|
+
languageList = _useLanguages.languageList,
|
|
42169
|
+
toggle = _useLanguages.toggle,
|
|
42170
|
+
dropdownOpen = _useLanguages.dropdownOpen,
|
|
42171
|
+
currentLang = _useLanguages.currentLang,
|
|
42172
|
+
changeLanguageApp = _useLanguages.changeLanguageApp;
|
|
42173
|
+
|
|
42174
|
+
var currentLanguage = React.useMemo(function () {
|
|
42175
|
+
var current = languageList.find(function (i) {
|
|
42176
|
+
return i.code === currentLang;
|
|
42177
|
+
});
|
|
42178
|
+
if (!current) return null;
|
|
42179
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement("img", {
|
|
42180
|
+
className: "mr-2 " + styles['dropdown-menu-flag'],
|
|
42181
|
+
src: "" + getStaticFileUrl(current.image)
|
|
42182
|
+
}), " ", current.name);
|
|
42183
|
+
}, [currentLang, languageList]);
|
|
42184
|
+
return React__default.createElement(reactstrap.Dropdown, {
|
|
42185
|
+
isOpen: dropdownOpen,
|
|
42186
|
+
toggle: toggle,
|
|
42187
|
+
className: "" + styles["dropdown-menu"]
|
|
42188
|
+
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
42189
|
+
className: styles["header-avatar"] + " d-flex align-items-center"
|
|
42190
|
+
}, React__default.createElement("span", {
|
|
42191
|
+
style: {
|
|
42192
|
+
color: "#000",
|
|
42193
|
+
textTransform: "capitalize",
|
|
42194
|
+
display: 'flex',
|
|
42195
|
+
alignItems: 'center'
|
|
42196
|
+
}
|
|
42197
|
+
}, currentLanguage, React__default.createElement(bs.BsChevronDown, {
|
|
42198
|
+
className: "ml-2",
|
|
42199
|
+
style: {
|
|
42200
|
+
fontSize: '10px'
|
|
42201
|
+
}
|
|
42202
|
+
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
42203
|
+
className: styles["dropdown-content-language"]
|
|
42204
|
+
}, !!languageList && languageList.length > 0 && languageList.map(function (lang, index) {
|
|
42205
|
+
return React__default.createElement(reactstrap.DropdownItem, {
|
|
42206
|
+
key: lang.code,
|
|
42207
|
+
className: styles["dropdown-change"] + " px-0 py-0 " + (index === languageList.length - 1 ? "pb-2" : "pt-2"),
|
|
42208
|
+
onClick: function onClick() {
|
|
42209
|
+
return changeLanguageApp(lang.code);
|
|
42210
|
+
}
|
|
42211
|
+
}, React__default.createElement("div", {
|
|
42212
|
+
className: styles["dropdown-item-language"] + " " + styles["item-logout"] + " " + (currentLang == lang.code ? styles['dropdown-item-language-active'] : "") + " d-flex align-items-center w-100"
|
|
42213
|
+
}, React__default.createElement("span", {
|
|
42214
|
+
className: "mr-2 d-flex hover-opacity"
|
|
42215
|
+
}, React__default.createElement("img", {
|
|
42216
|
+
style: {
|
|
42217
|
+
width: "30px",
|
|
42218
|
+
height: "25px",
|
|
42219
|
+
borderRadius: "5px"
|
|
42220
|
+
},
|
|
42221
|
+
src: getStaticFileUrl(lang.image)
|
|
42222
|
+
})), lang.name));
|
|
42223
|
+
})));
|
|
42224
|
+
};
|
|
42225
|
+
|
|
42226
|
+
var TheHeader = function TheHeader(_ref) {
|
|
42227
|
+
var onToggleModel = _ref.onToggleModel;
|
|
42228
|
+
var dispatch = reactRedux.useDispatch();
|
|
42229
|
+
var sidebarShow = reactRedux.useSelector(function (state) {
|
|
42230
|
+
return state.common.sidebarShow;
|
|
42231
|
+
});
|
|
42232
|
+
|
|
42233
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
42234
|
+
t = _useTranslation.t;
|
|
42235
|
+
|
|
42236
|
+
var toggleSidebarMobile = function toggleSidebarMobile() {
|
|
42237
|
+
var val = [false, "responsive"].includes(sidebarShow) ? true : "responsive";
|
|
42238
|
+
dispatch(setSidebar(val));
|
|
42239
|
+
};
|
|
42240
|
+
|
|
42241
|
+
var isDistrict = window.location.host.includes("-district");
|
|
42242
|
+
return React__default.createElement(react.CHeader, {
|
|
42243
|
+
withSubheader: true,
|
|
42244
|
+
className: "d-flex align-items-center justify-content-end"
|
|
42245
|
+
}, React__default.createElement(react.CToggler, {
|
|
42246
|
+
inHeader: true,
|
|
42247
|
+
className: "ml-md-3 d-lg-none",
|
|
42248
|
+
onClick: toggleSidebarMobile
|
|
42249
|
+
}), React__default.createElement(react.CHeaderBrand, {
|
|
42250
|
+
className: "mx-auto flex-grow-1 d-lg-none",
|
|
42251
|
+
to: "/"
|
|
42252
|
+
}, React__default.createElement("img", {
|
|
42253
|
+
src: getStaticFileUrl(Images.LOGO_HEADER),
|
|
42254
|
+
className: styles["header-logo"]
|
|
42255
|
+
})), React__default.createElement(react.CHeaderNav, {
|
|
42256
|
+
className: "pr-3"
|
|
42257
|
+
}, React__default.createElement(TheLanguageDropdown, null), React__default.createElement("a", {
|
|
42258
|
+
className: "mr-3",
|
|
42259
|
+
style: {
|
|
42260
|
+
color: '#000'
|
|
42261
|
+
},
|
|
42262
|
+
href: '/privacy-policy',
|
|
42263
|
+
target: "blank"
|
|
42264
|
+
}, t("privacy_policy")), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, {
|
|
42265
|
+
onToggleModel: onToggleModel
|
|
42266
|
+
})));
|
|
42267
|
+
};
|
|
42268
|
+
|
|
41844
42269
|
var TITLE$3 = "Not found";
|
|
41845
42270
|
|
|
41846
42271
|
var NotFound = function NotFound() {
|
|
@@ -41898,6 +42323,258 @@ var TheContent = function TheContent(_ref) {
|
|
|
41898
42323
|
|
|
41899
42324
|
var TheContent$1 = React__default.memo(TheContent);
|
|
41900
42325
|
|
|
42326
|
+
var loadingStyle = {
|
|
42327
|
+
minWidth: "100vw",
|
|
42328
|
+
minHeight: "100vh",
|
|
42329
|
+
position: "fixed",
|
|
42330
|
+
top: 0,
|
|
42331
|
+
left: 0,
|
|
42332
|
+
zIndex: 999999999,
|
|
42333
|
+
backgroundColor: "rgba(0, 0, 0, 0.4)",
|
|
42334
|
+
display: "flex",
|
|
42335
|
+
justifyContent: "center",
|
|
42336
|
+
alignItems: "center"
|
|
42337
|
+
};
|
|
42338
|
+
|
|
42339
|
+
var Loading = function Loading() {
|
|
42340
|
+
var isLoading = reactRedux.useSelector(function (state) {
|
|
42341
|
+
return state.common.isLoading;
|
|
42342
|
+
});
|
|
42343
|
+
localStorage.setItem("LAST_TIME_REQUETST", moment().utc().format("YYYY-MM-DD HH:mm:ss"));
|
|
42344
|
+
return isLoading ? React__default.createElement("div", {
|
|
42345
|
+
style: loadingStyle
|
|
42346
|
+
}, React__default.createElement("div", {
|
|
42347
|
+
className: "spinner-border text-secondary",
|
|
42348
|
+
role: "status"
|
|
42349
|
+
}, React__default.createElement("span", {
|
|
42350
|
+
className: "sr-only"
|
|
42351
|
+
}, "Loading..."))) : null;
|
|
42352
|
+
};
|
|
42353
|
+
|
|
42354
|
+
var firstCheckToken = function firstCheckToken() {
|
|
42355
|
+
return Promise.resolve(_catch(function () {
|
|
42356
|
+
var token = getAccessToken();
|
|
42357
|
+
return token ? Promise.resolve(checkToken(token)).then(function (tokenStatus) {
|
|
42358
|
+
return tokenStatus.data ? true : false;
|
|
42359
|
+
}) : false;
|
|
42360
|
+
}, function () {
|
|
42361
|
+
return false;
|
|
42362
|
+
}));
|
|
42363
|
+
};
|
|
42364
|
+
|
|
42365
|
+
var canAccess = function canAccess(userRoles, componentRoles) {
|
|
42366
|
+
if (!Array.isArray(userRoles)) {
|
|
42367
|
+
return false;
|
|
42368
|
+
}
|
|
42369
|
+
|
|
42370
|
+
if (Array.isArray(componentRoles)) {
|
|
42371
|
+
var intersects = userRoles.filter(function (i) {
|
|
42372
|
+
return componentRoles.includes(i);
|
|
42373
|
+
});
|
|
42374
|
+
return intersects.length > 0;
|
|
42375
|
+
}
|
|
42376
|
+
|
|
42377
|
+
return true;
|
|
42378
|
+
};
|
|
42379
|
+
|
|
42380
|
+
var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
42381
|
+
var _handleUserRole;
|
|
42382
|
+
|
|
42383
|
+
var open = _ref.open,
|
|
42384
|
+
onToggleModel = _ref.onToggleModel;
|
|
42385
|
+
var dispatch = reactRedux.useDispatch();
|
|
42386
|
+
|
|
42387
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
42388
|
+
t = _useTranslation.t;
|
|
42389
|
+
|
|
42390
|
+
var history = reactRouterDom.useHistory();
|
|
42391
|
+
var pathname = window.location.pathname;
|
|
42392
|
+
var user = reactRedux.useSelector(function (state) {
|
|
42393
|
+
return state.common.user;
|
|
42394
|
+
});
|
|
42395
|
+
var roles = user === null || user === void 0 ? void 0 : user.roles;
|
|
42396
|
+
|
|
42397
|
+
var handleSelectUserRoles = function handleSelectUserRoles(roles) {
|
|
42398
|
+
dispatch(setLoading(true));
|
|
42399
|
+
var roleSelect = roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles;
|
|
42400
|
+
dispatch(setUser(_extends({}, user, {
|
|
42401
|
+
roles: roleSelect
|
|
42402
|
+
})));
|
|
42403
|
+
localStorage.setItem("ROLES", roleSelect.toString());
|
|
42404
|
+
onToggleModel();
|
|
42405
|
+
|
|
42406
|
+
if (roles.includes("Parent")) {
|
|
42407
|
+
history.push("/parent");
|
|
42408
|
+
} else if (roles.includes("Admin")) {
|
|
42409
|
+
history.push("/admin/home");
|
|
42410
|
+
} else {
|
|
42411
|
+
pathname !== "/home" ? history.push("/home") : window.location.reload();
|
|
42412
|
+
}
|
|
42413
|
+
};
|
|
42414
|
+
|
|
42415
|
+
return React__default.createElement(reactstrap.Modal, {
|
|
42416
|
+
isOpen: open,
|
|
42417
|
+
toggle: function toggle() {
|
|
42418
|
+
return onToggleModel();
|
|
42419
|
+
},
|
|
42420
|
+
className: "" + styles["model-switch-roles"],
|
|
42421
|
+
centered: true
|
|
42422
|
+
}, React__default.createElement("p", {
|
|
42423
|
+
className: "" + styles["title"]
|
|
42424
|
+
}, 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) {
|
|
42425
|
+
return React__default.createElement("p", {
|
|
42426
|
+
key: r,
|
|
42427
|
+
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" : ""],
|
|
42428
|
+
onClick: function onClick() {
|
|
42429
|
+
return handleSelectUserRoles([r]);
|
|
42430
|
+
}
|
|
42431
|
+
}, r == "SecondaryTeacher" ? "Support Teacher" : r);
|
|
42432
|
+
})));
|
|
42433
|
+
};
|
|
42434
|
+
|
|
42435
|
+
var TheLayout = function TheLayout(_ref) {
|
|
42436
|
+
var routes = _ref.routes,
|
|
42437
|
+
navigation = _ref.navigation;
|
|
42438
|
+
var history = reactRouterDom.useHistory();
|
|
42439
|
+
var dispatch = reactRedux.useDispatch();
|
|
42440
|
+
var user = reactRedux.useSelector(function (state) {
|
|
42441
|
+
return state.common.user;
|
|
42442
|
+
});
|
|
42443
|
+
var language = reactRedux.useSelector(function (state) {
|
|
42444
|
+
return state.common.language;
|
|
42445
|
+
});
|
|
42446
|
+
|
|
42447
|
+
var _useState = React.useState(false),
|
|
42448
|
+
openModelSelectRole = _useState[0],
|
|
42449
|
+
setOpenModelSelectRole = _useState[1];
|
|
42450
|
+
|
|
42451
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
42452
|
+
t = _useTranslation.t;
|
|
42453
|
+
|
|
42454
|
+
var location = reactRouterDom.useLocation();
|
|
42455
|
+
var isNotification = location.pathname.includes("notifications");
|
|
42456
|
+
var isDistrict = window.location.host.includes("-district");
|
|
42457
|
+
|
|
42458
|
+
var handleToggleModel = function handleToggleModel() {
|
|
42459
|
+
setOpenModelSelectRole(!openModelSelectRole);
|
|
42460
|
+
};
|
|
42461
|
+
|
|
42462
|
+
var authRoutes = React.useMemo(function () {
|
|
42463
|
+
return routes.filter(function (route) {
|
|
42464
|
+
return canAccess(user === null || user === void 0 ? void 0 : user.roles, route.roles);
|
|
42465
|
+
}).filter(function (route) {
|
|
42466
|
+
return !!route.isDistrict === isDistrict;
|
|
42467
|
+
});
|
|
42468
|
+
}, [user, language]);
|
|
42469
|
+
var authNavigations = React.useMemo(function () {
|
|
42470
|
+
return navigation.map(function (item) {
|
|
42471
|
+
var _item$_children, _item$_children2;
|
|
42472
|
+
|
|
42473
|
+
return _extends({}, item, {
|
|
42474
|
+
name: t(item.name),
|
|
42475
|
+
_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) {
|
|
42476
|
+
return _extends({}, x, {
|
|
42477
|
+
name: t(x.name)
|
|
42478
|
+
});
|
|
42479
|
+
}) : undefined
|
|
42480
|
+
});
|
|
42481
|
+
}).filter(function (nav) {
|
|
42482
|
+
return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
42483
|
+
}).filter(function (nav) {
|
|
42484
|
+
return !!nav.isDistrict === isDistrict;
|
|
42485
|
+
});
|
|
42486
|
+
}, [user, language]);
|
|
42487
|
+
|
|
42488
|
+
var getInformationSetting = function getInformationSetting() {
|
|
42489
|
+
try {
|
|
42490
|
+
var _temp2 = _catch(function () {
|
|
42491
|
+
return Promise.resolve(getSchoolSettings()).then(function (res) {
|
|
42492
|
+
dispatch(setSandboxMode(res.data.isSandboxMode));
|
|
42493
|
+
});
|
|
42494
|
+
}, function (err) {
|
|
42495
|
+
console.error(err);
|
|
42496
|
+
});
|
|
42497
|
+
|
|
42498
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
42499
|
+
} catch (e) {
|
|
42500
|
+
return Promise.reject(e);
|
|
42501
|
+
}
|
|
42502
|
+
};
|
|
42503
|
+
|
|
42504
|
+
React.useEffect(function () {
|
|
42505
|
+
checkAuthentication();
|
|
42506
|
+
}, []);
|
|
42507
|
+
React.useEffect(function () {
|
|
42508
|
+
getInformationSetting();
|
|
42509
|
+
}, [location.pathname]);
|
|
42510
|
+
|
|
42511
|
+
var checkAuthentication = function checkAuthentication() {
|
|
42512
|
+
try {
|
|
42513
|
+
var _temp4 = _catch(function () {
|
|
42514
|
+
return Promise.resolve(firstCheckToken()).then(function (tokenStatus) {
|
|
42515
|
+
tokenStatus ? loadInfo() : resetAuth();
|
|
42516
|
+
});
|
|
42517
|
+
}, function () {
|
|
42518
|
+
resetAuth();
|
|
42519
|
+
});
|
|
42520
|
+
|
|
42521
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
42522
|
+
} catch (e) {
|
|
42523
|
+
return Promise.reject(e);
|
|
42524
|
+
}
|
|
42525
|
+
};
|
|
42526
|
+
|
|
42527
|
+
var loadInfo = function loadInfo() {
|
|
42528
|
+
try {
|
|
42529
|
+
var _temp6 = _catch(function () {
|
|
42530
|
+
return Promise.resolve(getInfo()).then(function (info) {
|
|
42531
|
+
var _info$data, _info$data$roles;
|
|
42532
|
+
|
|
42533
|
+
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"))) {
|
|
42534
|
+
resetAuth();
|
|
42535
|
+
}
|
|
42536
|
+
|
|
42537
|
+
dispatch(setUser(info.data));
|
|
42538
|
+
});
|
|
42539
|
+
}, function () {
|
|
42540
|
+
resetAuth();
|
|
42541
|
+
});
|
|
42542
|
+
|
|
42543
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
42544
|
+
} catch (e) {
|
|
42545
|
+
return Promise.reject(e);
|
|
42546
|
+
}
|
|
42547
|
+
};
|
|
42548
|
+
|
|
42549
|
+
var resetAuth = function resetAuth() {
|
|
42550
|
+
localStorage.removeItem(ACCESS_TOKEN);
|
|
42551
|
+
sessionStorage.removeItem(ACCESS_TOKEN);
|
|
42552
|
+
localStorage.removeItem("ROLES");
|
|
42553
|
+
history.push("/");
|
|
42554
|
+
};
|
|
42555
|
+
|
|
42556
|
+
if (!user) {
|
|
42557
|
+
return React__default.createElement(Loading, null);
|
|
42558
|
+
}
|
|
42559
|
+
|
|
42560
|
+
return React__default.createElement("div", {
|
|
42561
|
+
className: "c-app c-default-layout"
|
|
42562
|
+
}, !isNotification && React__default.createElement(TheSidebar, {
|
|
42563
|
+
navigation: authNavigations
|
|
42564
|
+
}), React__default.createElement("div", {
|
|
42565
|
+
className: "c-wrapper"
|
|
42566
|
+
}, !isNotification && React__default.createElement(TheHeader, {
|
|
42567
|
+
onToggleModel: handleToggleModel
|
|
42568
|
+
}), React__default.createElement("div", {
|
|
42569
|
+
className: "c-body bg-white"
|
|
42570
|
+
}, React__default.createElement(TheContent$1, {
|
|
42571
|
+
routes: authRoutes
|
|
42572
|
+
}))), React__default.createElement(ModelSelectRole, {
|
|
42573
|
+
open: openModelSelectRole,
|
|
42574
|
+
onToggleModel: handleToggleModel
|
|
42575
|
+
}));
|
|
42576
|
+
};
|
|
42577
|
+
|
|
41901
42578
|
var buttonTextStyle = {
|
|
41902
42579
|
fontWeight: 500
|
|
41903
42580
|
};
|
|
@@ -49786,7 +50463,7 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49786
50463
|
return row.trim();
|
|
49787
50464
|
});
|
|
49788
50465
|
var headerIndex = rows.findIndex(function (row) {
|
|
49789
|
-
return row.split(",").includes("
|
|
50466
|
+
return row.split(",").includes("First Name");
|
|
49790
50467
|
});
|
|
49791
50468
|
|
|
49792
50469
|
if (headerIndex === 0) {
|
|
@@ -49800,6 +50477,17 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49800
50477
|
});
|
|
49801
50478
|
var header = parsedData.meta.fields;
|
|
49802
50479
|
var dataRows = parsedData.data;
|
|
50480
|
+
|
|
50481
|
+
if (!!!dataRows.length) {
|
|
50482
|
+
dispatch(setLoading(false));
|
|
50483
|
+
dispatch(setAlert({
|
|
50484
|
+
type: "danger",
|
|
50485
|
+
message: 'The file has no data or some column names are misformed.'
|
|
50486
|
+
}));
|
|
50487
|
+
_exit2 = true;
|
|
50488
|
+
return;
|
|
50489
|
+
}
|
|
50490
|
+
|
|
49803
50491
|
var chunkSize = 10;
|
|
49804
50492
|
var chunks = [];
|
|
49805
50493
|
|
|
@@ -49810,12 +50498,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49810
50498
|
return (v != null ? v : "").toString().trim();
|
|
49811
50499
|
});
|
|
49812
50500
|
});
|
|
49813
|
-
console.log({
|
|
49814
|
-
valuesOnly: valuesOnly
|
|
49815
|
-
});
|
|
49816
|
-
console.log({
|
|
49817
|
-
chunkData: chunkData
|
|
49818
|
-
});
|
|
49819
50501
|
|
|
49820
50502
|
if (header) {
|
|
49821
50503
|
valuesOnly.unshift(header);
|
|
@@ -49827,13 +50509,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49827
50509
|
chunks.push(valuesOnly);
|
|
49828
50510
|
}
|
|
49829
50511
|
|
|
49830
|
-
console.log({
|
|
49831
|
-
chunks: chunks
|
|
49832
|
-
});
|
|
49833
|
-
console.log({
|
|
49834
|
-
header: header
|
|
49835
|
-
});
|
|
49836
|
-
|
|
49837
50512
|
var _temp5 = _forTo(chunks, function (i) {
|
|
49838
50513
|
return Promise.resolve(importChunkFileUsers({
|
|
49839
50514
|
chunks: chunks[i]
|
|
@@ -51246,34 +51921,6 @@ var UserDetail = function UserDetail() {
|
|
|
51246
51921
|
});
|
|
51247
51922
|
};
|
|
51248
51923
|
|
|
51249
|
-
var loadingStyle = {
|
|
51250
|
-
minWidth: "100vw",
|
|
51251
|
-
minHeight: "100vh",
|
|
51252
|
-
position: "fixed",
|
|
51253
|
-
top: 0,
|
|
51254
|
-
left: 0,
|
|
51255
|
-
zIndex: 999999999,
|
|
51256
|
-
backgroundColor: "rgba(0, 0, 0, 0.4)",
|
|
51257
|
-
display: "flex",
|
|
51258
|
-
justifyContent: "center",
|
|
51259
|
-
alignItems: "center"
|
|
51260
|
-
};
|
|
51261
|
-
|
|
51262
|
-
var Loading = function Loading() {
|
|
51263
|
-
var isLoading = reactRedux.useSelector(function (state) {
|
|
51264
|
-
return state.common.isLoading;
|
|
51265
|
-
});
|
|
51266
|
-
localStorage.setItem("LAST_TIME_REQUETST", moment().utc().format("YYYY-MM-DD HH:mm:ss"));
|
|
51267
|
-
return isLoading ? React__default.createElement("div", {
|
|
51268
|
-
style: loadingStyle
|
|
51269
|
-
}, React__default.createElement("div", {
|
|
51270
|
-
className: "spinner-border text-secondary",
|
|
51271
|
-
role: "status"
|
|
51272
|
-
}, React__default.createElement("span", {
|
|
51273
|
-
className: "sr-only"
|
|
51274
|
-
}, "Loading..."))) : null;
|
|
51275
|
-
};
|
|
51276
|
-
|
|
51277
51924
|
var ScrollToTop = function ScrollToTop() {
|
|
51278
51925
|
var _useLocation = reactRouterDom.useLocation(),
|
|
51279
51926
|
pathname = _useLocation.pathname;
|
|
@@ -54299,32 +54946,6 @@ var store = toolkit.configureStore({
|
|
|
54299
54946
|
}
|
|
54300
54947
|
});
|
|
54301
54948
|
|
|
54302
|
-
var firstCheckToken = function firstCheckToken() {
|
|
54303
|
-
return Promise.resolve(_catch(function () {
|
|
54304
|
-
var token = getAccessToken();
|
|
54305
|
-
return token ? Promise.resolve(checkToken(token)).then(function (tokenStatus) {
|
|
54306
|
-
return tokenStatus.data ? true : false;
|
|
54307
|
-
}) : false;
|
|
54308
|
-
}, function () {
|
|
54309
|
-
return false;
|
|
54310
|
-
}));
|
|
54311
|
-
};
|
|
54312
|
-
|
|
54313
|
-
var canAccess = function canAccess(userRoles, componentRoles) {
|
|
54314
|
-
if (!Array.isArray(userRoles)) {
|
|
54315
|
-
return false;
|
|
54316
|
-
}
|
|
54317
|
-
|
|
54318
|
-
if (Array.isArray(componentRoles)) {
|
|
54319
|
-
var intersects = userRoles.filter(function (i) {
|
|
54320
|
-
return componentRoles.includes(i);
|
|
54321
|
-
});
|
|
54322
|
-
return intersects.length > 0;
|
|
54323
|
-
}
|
|
54324
|
-
|
|
54325
|
-
return true;
|
|
54326
|
-
};
|
|
54327
|
-
|
|
54328
54949
|
var isInViewport = function isInViewport(el) {
|
|
54329
54950
|
var rect = el === null || el === void 0 ? void 0 : el.getBoundingClientRect();
|
|
54330
54951
|
return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);
|
|
@@ -54358,410 +54979,6 @@ var generateRandomString = (function () {
|
|
|
54358
54979
|
return (Math.random() + 1).toString(36).substring(7);
|
|
54359
54980
|
});
|
|
54360
54981
|
|
|
54361
|
-
var apiGetLanguage = function apiGetLanguage() {
|
|
54362
|
-
return api.get(BASE_URL + "/api/language");
|
|
54363
|
-
};
|
|
54364
|
-
|
|
54365
|
-
var apiUpdateLanguage = function apiUpdateLanguage(lang) {
|
|
54366
|
-
return api.put(BASE_URL + "/api/language?lang=" + lang);
|
|
54367
|
-
};
|
|
54368
|
-
|
|
54369
|
-
var LANGUAGE_SYSTEM = "LANGUAGE_SYSTEM";
|
|
54370
|
-
|
|
54371
|
-
var useLanguages = function useLanguages() {
|
|
54372
|
-
var dispatch = reactRedux.useDispatch();
|
|
54373
|
-
|
|
54374
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54375
|
-
i18n = _useTranslation.i18n;
|
|
54376
|
-
|
|
54377
|
-
var language = reactRedux.useSelector(function (state) {
|
|
54378
|
-
return state.common.language;
|
|
54379
|
-
});
|
|
54380
|
-
var defaultLanguage = getCookieValue(LANGUAGE_SYSTEM) != null ? getCookieValue(LANGUAGE_SYSTEM) : DEFAULT_LANGUAGE_CODE;
|
|
54381
|
-
|
|
54382
|
-
var _useState = React.useState([]),
|
|
54383
|
-
languageList = _useState[0],
|
|
54384
|
-
setLanguageList = _useState[1];
|
|
54385
|
-
|
|
54386
|
-
var _useState2 = React.useState(false),
|
|
54387
|
-
dropdownOpen = _useState2[0],
|
|
54388
|
-
setDropdownOpen = _useState2[1];
|
|
54389
|
-
|
|
54390
|
-
var _useState3 = React.useState(defaultLanguage),
|
|
54391
|
-
currentLang = _useState3[0],
|
|
54392
|
-
setCurrentLang = _useState3[1];
|
|
54393
|
-
|
|
54394
|
-
var toggle = function toggle() {
|
|
54395
|
-
return setDropdownOpen(function (prevState) {
|
|
54396
|
-
return !prevState;
|
|
54397
|
-
});
|
|
54398
|
-
};
|
|
54399
|
-
|
|
54400
|
-
var changeLanguageApp = function changeLanguageApp(lang) {
|
|
54401
|
-
try {
|
|
54402
|
-
var _temp3 = function _temp3() {
|
|
54403
|
-
dispatch(setLoading(false));
|
|
54404
|
-
};
|
|
54405
|
-
|
|
54406
|
-
dispatch(setLoading(true));
|
|
54407
|
-
|
|
54408
|
-
var _temp4 = _catch(function () {
|
|
54409
|
-
return Promise.resolve(apiUpdateLanguage(lang)).then(function () {
|
|
54410
|
-
i18n.changeLanguage(lang);
|
|
54411
|
-
setCurrentLang(lang);
|
|
54412
|
-
dispatch(setLanguage(lang));
|
|
54413
|
-
});
|
|
54414
|
-
}, function (err) {
|
|
54415
|
-
var _err$response, _err$response$data;
|
|
54416
|
-
|
|
54417
|
-
dispatch(setAlert({
|
|
54418
|
-
type: "danger",
|
|
54419
|
-
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
|
|
54420
|
-
}));
|
|
54421
|
-
});
|
|
54422
|
-
|
|
54423
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
54424
|
-
} catch (e) {
|
|
54425
|
-
return Promise.reject(e);
|
|
54426
|
-
}
|
|
54427
|
-
};
|
|
54428
|
-
|
|
54429
|
-
var getListLanguage = function getListLanguage() {
|
|
54430
|
-
try {
|
|
54431
|
-
var _temp6 = _catch(function () {
|
|
54432
|
-
return Promise.resolve(apiGetLanguage()).then(function (res) {
|
|
54433
|
-
setLanguageList(res.data);
|
|
54434
|
-
});
|
|
54435
|
-
}, function (err) {
|
|
54436
|
-
var _err$response2, _err$response2$data;
|
|
54437
|
-
|
|
54438
|
-
dispatch(setAlert({
|
|
54439
|
-
type: "danger",
|
|
54440
|
-
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
|
|
54441
|
-
}));
|
|
54442
|
-
});
|
|
54443
|
-
|
|
54444
|
-
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
54445
|
-
} catch (e) {
|
|
54446
|
-
return Promise.reject(e);
|
|
54447
|
-
}
|
|
54448
|
-
};
|
|
54449
|
-
|
|
54450
|
-
React.useEffect(function () {
|
|
54451
|
-
defaultLanguage != language && changeLanguageApp(defaultLanguage);
|
|
54452
|
-
getListLanguage();
|
|
54453
|
-
}, []);
|
|
54454
|
-
return {
|
|
54455
|
-
languageList: languageList,
|
|
54456
|
-
toggle: toggle,
|
|
54457
|
-
dropdownOpen: dropdownOpen,
|
|
54458
|
-
currentLang: currentLang,
|
|
54459
|
-
changeLanguageApp: changeLanguageApp,
|
|
54460
|
-
setCurrentLang: setCurrentLang
|
|
54461
|
-
};
|
|
54462
|
-
};
|
|
54463
|
-
|
|
54464
|
-
var TheLanguageDropdown = function TheLanguageDropdown() {
|
|
54465
|
-
var _useLanguages = useLanguages(),
|
|
54466
|
-
languageList = _useLanguages.languageList,
|
|
54467
|
-
toggle = _useLanguages.toggle,
|
|
54468
|
-
dropdownOpen = _useLanguages.dropdownOpen,
|
|
54469
|
-
currentLang = _useLanguages.currentLang,
|
|
54470
|
-
changeLanguageApp = _useLanguages.changeLanguageApp;
|
|
54471
|
-
|
|
54472
|
-
var currentLanguage = React.useMemo(function () {
|
|
54473
|
-
var current = languageList.find(function (i) {
|
|
54474
|
-
return i.code === currentLang;
|
|
54475
|
-
});
|
|
54476
|
-
if (!current) return null;
|
|
54477
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement("img", {
|
|
54478
|
-
className: "mr-2 " + styles['dropdown-menu-flag'],
|
|
54479
|
-
src: "" + getStaticFileUrl(current.image)
|
|
54480
|
-
}), " ", current.name);
|
|
54481
|
-
}, [currentLang, languageList]);
|
|
54482
|
-
return React__default.createElement(reactstrap.Dropdown, {
|
|
54483
|
-
isOpen: dropdownOpen,
|
|
54484
|
-
toggle: toggle,
|
|
54485
|
-
className: "" + styles["dropdown-menu"]
|
|
54486
|
-
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
54487
|
-
className: styles["header-avatar"] + " d-flex align-items-center"
|
|
54488
|
-
}, React__default.createElement("span", {
|
|
54489
|
-
style: {
|
|
54490
|
-
color: "#000",
|
|
54491
|
-
textTransform: "capitalize",
|
|
54492
|
-
display: 'flex',
|
|
54493
|
-
alignItems: 'center'
|
|
54494
|
-
}
|
|
54495
|
-
}, currentLanguage, React__default.createElement(bs.BsChevronDown, {
|
|
54496
|
-
className: "ml-2",
|
|
54497
|
-
style: {
|
|
54498
|
-
fontSize: '10px'
|
|
54499
|
-
}
|
|
54500
|
-
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
54501
|
-
className: styles["dropdown-content-language"]
|
|
54502
|
-
}, !!languageList && languageList.length > 0 && languageList.map(function (lang, index) {
|
|
54503
|
-
return React__default.createElement(reactstrap.DropdownItem, {
|
|
54504
|
-
key: lang.code,
|
|
54505
|
-
className: styles["dropdown-change"] + " px-0 py-0 " + (index === languageList.length - 1 ? "pb-2" : "pt-2"),
|
|
54506
|
-
onClick: function onClick() {
|
|
54507
|
-
return changeLanguageApp(lang.code);
|
|
54508
|
-
}
|
|
54509
|
-
}, React__default.createElement("div", {
|
|
54510
|
-
className: styles["dropdown-item-language"] + " " + styles["item-logout"] + " " + (currentLang == lang.code ? styles['dropdown-item-language-active'] : "") + " d-flex align-items-center w-100"
|
|
54511
|
-
}, React__default.createElement("span", {
|
|
54512
|
-
className: "mr-2 d-flex hover-opacity"
|
|
54513
|
-
}, React__default.createElement("img", {
|
|
54514
|
-
style: {
|
|
54515
|
-
width: "30px",
|
|
54516
|
-
height: "25px",
|
|
54517
|
-
borderRadius: "5px"
|
|
54518
|
-
},
|
|
54519
|
-
src: getStaticFileUrl(lang.image)
|
|
54520
|
-
})), lang.name));
|
|
54521
|
-
})));
|
|
54522
|
-
};
|
|
54523
|
-
|
|
54524
|
-
var TheHeader = function TheHeader(_ref) {
|
|
54525
|
-
var onToggleModel = _ref.onToggleModel;
|
|
54526
|
-
var dispatch = reactRedux.useDispatch();
|
|
54527
|
-
var sidebarShow = reactRedux.useSelector(function (state) {
|
|
54528
|
-
return state.common.sidebarShow;
|
|
54529
|
-
});
|
|
54530
|
-
|
|
54531
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54532
|
-
t = _useTranslation.t;
|
|
54533
|
-
|
|
54534
|
-
var toggleSidebarMobile = function toggleSidebarMobile() {
|
|
54535
|
-
var val = [false, "responsive"].includes(sidebarShow) ? true : "responsive";
|
|
54536
|
-
dispatch(setSidebar(val));
|
|
54537
|
-
};
|
|
54538
|
-
|
|
54539
|
-
var isDistrict = window.location.host.includes("-district");
|
|
54540
|
-
return React__default.createElement(react.CHeader, {
|
|
54541
|
-
withSubheader: true,
|
|
54542
|
-
className: "d-flex align-items-center justify-content-end"
|
|
54543
|
-
}, React__default.createElement(react.CToggler, {
|
|
54544
|
-
inHeader: true,
|
|
54545
|
-
className: "ml-md-3 d-lg-none",
|
|
54546
|
-
onClick: toggleSidebarMobile
|
|
54547
|
-
}), React__default.createElement(react.CHeaderBrand, {
|
|
54548
|
-
className: "mx-auto flex-grow-1 d-lg-none",
|
|
54549
|
-
to: "/"
|
|
54550
|
-
}, React__default.createElement("img", {
|
|
54551
|
-
src: getStaticFileUrl(Images.LOGO_HEADER),
|
|
54552
|
-
className: styles["header-logo"]
|
|
54553
|
-
})), React__default.createElement(react.CHeaderNav, {
|
|
54554
|
-
className: "pr-3"
|
|
54555
|
-
}, React__default.createElement(TheLanguageDropdown, null), React__default.createElement("a", {
|
|
54556
|
-
className: "mr-3",
|
|
54557
|
-
style: {
|
|
54558
|
-
color: '#000'
|
|
54559
|
-
},
|
|
54560
|
-
href: '/privacy-policy',
|
|
54561
|
-
target: "blank"
|
|
54562
|
-
}, t("privacy_policy")), !isDistrict && React__default.createElement(NotificationButton, null), React__default.createElement(TheHeaderDropdown, {
|
|
54563
|
-
onToggleModel: onToggleModel
|
|
54564
|
-
})));
|
|
54565
|
-
};
|
|
54566
|
-
|
|
54567
|
-
var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
54568
|
-
var _handleUserRole;
|
|
54569
|
-
|
|
54570
|
-
var open = _ref.open,
|
|
54571
|
-
onToggleModel = _ref.onToggleModel;
|
|
54572
|
-
var dispatch = reactRedux.useDispatch();
|
|
54573
|
-
|
|
54574
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54575
|
-
t = _useTranslation.t;
|
|
54576
|
-
|
|
54577
|
-
var history = reactRouterDom.useHistory();
|
|
54578
|
-
var pathname = window.location.pathname;
|
|
54579
|
-
var user = reactRedux.useSelector(function (state) {
|
|
54580
|
-
return state.common.user;
|
|
54581
|
-
});
|
|
54582
|
-
var roles = user === null || user === void 0 ? void 0 : user.roles;
|
|
54583
|
-
|
|
54584
|
-
var handleSelectUserRoles = function handleSelectUserRoles(roles) {
|
|
54585
|
-
dispatch(setLoading(true));
|
|
54586
|
-
var roleSelect = roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles;
|
|
54587
|
-
dispatch(setUser(_extends({}, user, {
|
|
54588
|
-
roles: roleSelect
|
|
54589
|
-
})));
|
|
54590
|
-
localStorage.setItem("ROLES", roleSelect.toString());
|
|
54591
|
-
onToggleModel();
|
|
54592
|
-
|
|
54593
|
-
if (roles.includes("Parent")) {
|
|
54594
|
-
history.push("/parent");
|
|
54595
|
-
} else if (roles.includes("Admin")) {
|
|
54596
|
-
history.push("/admin/home");
|
|
54597
|
-
} else {
|
|
54598
|
-
pathname !== "/home" ? history.push("/home") : window.location.reload();
|
|
54599
|
-
}
|
|
54600
|
-
};
|
|
54601
|
-
|
|
54602
|
-
return React__default.createElement(reactstrap.Modal, {
|
|
54603
|
-
isOpen: open,
|
|
54604
|
-
toggle: function toggle() {
|
|
54605
|
-
return onToggleModel();
|
|
54606
|
-
},
|
|
54607
|
-
className: "" + styles["model-switch-roles"],
|
|
54608
|
-
centered: true
|
|
54609
|
-
}, React__default.createElement("p", {
|
|
54610
|
-
className: "" + styles["title"]
|
|
54611
|
-
}, 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) {
|
|
54612
|
-
return React__default.createElement("p", {
|
|
54613
|
-
key: r,
|
|
54614
|
-
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" : ""],
|
|
54615
|
-
onClick: function onClick() {
|
|
54616
|
-
return handleSelectUserRoles([r]);
|
|
54617
|
-
}
|
|
54618
|
-
}, r == "SecondaryTeacher" ? "Support Teacher" : r);
|
|
54619
|
-
})));
|
|
54620
|
-
};
|
|
54621
|
-
|
|
54622
|
-
var TheLayout = function TheLayout(_ref) {
|
|
54623
|
-
var routes = _ref.routes,
|
|
54624
|
-
navigation = _ref.navigation;
|
|
54625
|
-
var history = reactRouterDom.useHistory();
|
|
54626
|
-
var dispatch = reactRedux.useDispatch();
|
|
54627
|
-
var user = reactRedux.useSelector(function (state) {
|
|
54628
|
-
return state.common.user;
|
|
54629
|
-
});
|
|
54630
|
-
var language = reactRedux.useSelector(function (state) {
|
|
54631
|
-
return state.common.language;
|
|
54632
|
-
});
|
|
54633
|
-
|
|
54634
|
-
var _useState = React.useState(false),
|
|
54635
|
-
openModelSelectRole = _useState[0],
|
|
54636
|
-
setOpenModelSelectRole = _useState[1];
|
|
54637
|
-
|
|
54638
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
54639
|
-
t = _useTranslation.t;
|
|
54640
|
-
|
|
54641
|
-
var location = reactRouterDom.useLocation();
|
|
54642
|
-
var isNotification = location.pathname.includes("notifications");
|
|
54643
|
-
var isDistrict = window.location.host.includes("-district");
|
|
54644
|
-
|
|
54645
|
-
var handleToggleModel = function handleToggleModel() {
|
|
54646
|
-
setOpenModelSelectRole(!openModelSelectRole);
|
|
54647
|
-
};
|
|
54648
|
-
|
|
54649
|
-
var authRoutes = React.useMemo(function () {
|
|
54650
|
-
return routes.filter(function (route) {
|
|
54651
|
-
return canAccess(user === null || user === void 0 ? void 0 : user.roles, route.roles);
|
|
54652
|
-
}).filter(function (route) {
|
|
54653
|
-
return !!route.isDistrict === isDistrict;
|
|
54654
|
-
});
|
|
54655
|
-
}, [user, language]);
|
|
54656
|
-
var authNavigations = React.useMemo(function () {
|
|
54657
|
-
return navigation.map(function (item) {
|
|
54658
|
-
var _item$_children, _item$_children2;
|
|
54659
|
-
|
|
54660
|
-
return _extends({}, item, {
|
|
54661
|
-
name: t(item.name),
|
|
54662
|
-
_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) {
|
|
54663
|
-
return _extends({}, x, {
|
|
54664
|
-
name: t(x.name)
|
|
54665
|
-
});
|
|
54666
|
-
}) : undefined
|
|
54667
|
-
});
|
|
54668
|
-
}).filter(function (nav) {
|
|
54669
|
-
return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
54670
|
-
}).filter(function (nav) {
|
|
54671
|
-
return !!nav.isDistrict === isDistrict;
|
|
54672
|
-
});
|
|
54673
|
-
}, [user, language]);
|
|
54674
|
-
|
|
54675
|
-
var getInformationSetting = function getInformationSetting() {
|
|
54676
|
-
try {
|
|
54677
|
-
var _temp2 = _catch(function () {
|
|
54678
|
-
return Promise.resolve(getSchoolSettings()).then(function (res) {
|
|
54679
|
-
dispatch(setSandboxMode(res.data.isSandboxMode));
|
|
54680
|
-
});
|
|
54681
|
-
}, function (err) {
|
|
54682
|
-
console.error(err);
|
|
54683
|
-
});
|
|
54684
|
-
|
|
54685
|
-
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
54686
|
-
} catch (e) {
|
|
54687
|
-
return Promise.reject(e);
|
|
54688
|
-
}
|
|
54689
|
-
};
|
|
54690
|
-
|
|
54691
|
-
React.useEffect(function () {
|
|
54692
|
-
checkAuthentication();
|
|
54693
|
-
}, []);
|
|
54694
|
-
React.useEffect(function () {
|
|
54695
|
-
getInformationSetting();
|
|
54696
|
-
}, [location.pathname]);
|
|
54697
|
-
|
|
54698
|
-
var checkAuthentication = function checkAuthentication() {
|
|
54699
|
-
try {
|
|
54700
|
-
var _temp4 = _catch(function () {
|
|
54701
|
-
return Promise.resolve(firstCheckToken()).then(function (tokenStatus) {
|
|
54702
|
-
tokenStatus ? loadInfo() : resetAuth();
|
|
54703
|
-
});
|
|
54704
|
-
}, function () {
|
|
54705
|
-
resetAuth();
|
|
54706
|
-
});
|
|
54707
|
-
|
|
54708
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
54709
|
-
} catch (e) {
|
|
54710
|
-
return Promise.reject(e);
|
|
54711
|
-
}
|
|
54712
|
-
};
|
|
54713
|
-
|
|
54714
|
-
var loadInfo = function loadInfo() {
|
|
54715
|
-
try {
|
|
54716
|
-
var _temp6 = _catch(function () {
|
|
54717
|
-
return Promise.resolve(getInfo()).then(function (info) {
|
|
54718
|
-
var _info$data, _info$data$roles;
|
|
54719
|
-
|
|
54720
|
-
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"))) {
|
|
54721
|
-
resetAuth();
|
|
54722
|
-
}
|
|
54723
|
-
|
|
54724
|
-
dispatch(setUser(info.data));
|
|
54725
|
-
});
|
|
54726
|
-
}, function () {
|
|
54727
|
-
resetAuth();
|
|
54728
|
-
});
|
|
54729
|
-
|
|
54730
|
-
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
|
|
54731
|
-
} catch (e) {
|
|
54732
|
-
return Promise.reject(e);
|
|
54733
|
-
}
|
|
54734
|
-
};
|
|
54735
|
-
|
|
54736
|
-
var resetAuth = function resetAuth() {
|
|
54737
|
-
localStorage.removeItem(ACCESS_TOKEN);
|
|
54738
|
-
sessionStorage.removeItem(ACCESS_TOKEN);
|
|
54739
|
-
localStorage.removeItem("ROLES");
|
|
54740
|
-
history.push("/");
|
|
54741
|
-
};
|
|
54742
|
-
|
|
54743
|
-
if (!user) {
|
|
54744
|
-
return React__default.createElement(Loading, null);
|
|
54745
|
-
}
|
|
54746
|
-
|
|
54747
|
-
return React__default.createElement("div", {
|
|
54748
|
-
className: "c-app c-default-layout"
|
|
54749
|
-
}, !isNotification && React__default.createElement(TheSidebar, {
|
|
54750
|
-
navigation: authNavigations
|
|
54751
|
-
}), React__default.createElement("div", {
|
|
54752
|
-
className: "c-wrapper"
|
|
54753
|
-
}, !isNotification && React__default.createElement(TheHeader, {
|
|
54754
|
-
onToggleModel: handleToggleModel
|
|
54755
|
-
}), React__default.createElement("div", {
|
|
54756
|
-
className: "c-body bg-white"
|
|
54757
|
-
}, React__default.createElement(TheContent$1, {
|
|
54758
|
-
routes: authRoutes
|
|
54759
|
-
}))), React__default.createElement(ModelSelectRole, {
|
|
54760
|
-
open: openModelSelectRole,
|
|
54761
|
-
onToggleModel: handleToggleModel
|
|
54762
|
-
}));
|
|
54763
|
-
};
|
|
54764
|
-
|
|
54765
54982
|
var amplitudeClient = amplitude;
|
|
54766
54983
|
|
|
54767
54984
|
Object.defineProperty(exports, 'I18nextProvider', {
|