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