mario-core 2.9.415-feedback → 2.9.415-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.
@@ -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, 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';
5
+ import React, { useCallback, useState, useEffect, useRef, Suspense, memo, Fragment, forwardRef, useImperativeHandle, useMemo } from 'react';
6
+ import { Input, Form, FormGroup, Row, Col, Navbar, NavbarBrand, Collapse, Nav, NavItem, NavLink, Dropdown, DropdownToggle, DropdownMenu, DropdownItem, Button, Alert, Pagination, PaginationItem, PaginationLink, Table, Label, Modal, 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, CHeader, CToggler, CHeaderBrand, CHeaderNav, CContainer } from '@coreui/react';
20
+ import { CSidebar, CSidebarBrand, CSidebarNav, CCreateElement, CSidebarNavDivider, CSidebarNavDropdown, CSidebarNavItem, CSidebarNavTitle, CSidebarFooter, CContainer, CHeader, CToggler, CHeaderBrand, CHeaderNav } 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';
@@ -2182,6 +2182,42 @@ var save_note = "Save note";
2182
2182
  var type_the_main_focus_of_this_session = "Type the main focus of this session";
2183
2183
  var please_add_title_note = "Please add note title";
2184
2184
  var notes_and_logs = "Notes and Logs";
2185
+ var my_well_being = "My Well-being";
2186
+ var my_well_Being_check_in = "My Well-Being Check-in";
2187
+ var my_sessions = "My Sessions";
2188
+ var your_personal_data_will_not_be_shared_with_anyone_else = "Your personal data will <strong>not be shared</strong> with anyone else";
2189
+ var school_leadership_will_only_see_aggregated_data = "School leadership will only see aggregated data.";
2190
+ var save_filters = "Save Filters";
2191
+ var clear_all_filters = "Clear All Filters";
2192
+ var my_well_being_check_in = "My Well-Being Check-in";
2193
+ var unless_you_specifically_choose_to_do_this = "unless you specifically choose to do this.";
2194
+ var physical_well_being = "Physical Well-Being";
2195
+ var emotional_well_being = "Emotional Well-Being";
2196
+ var social_well_being_relationships = "Social Well-Being - Relationships";
2197
+ var social_well_being_environment = "Social Well-Being - Environment";
2198
+ var intellectual_well_being = "Intellectual Well-Being";
2199
+ var colleague_or_staff_member_you_like_to_praise_or_thank = "Colleague or staff member you'd like to praise or thank?";
2200
+ var wellbeing_finished = "Wellbeing Finished";
2201
+ var check_in = "Check-in";
2202
+ var take_a_moment_for_you = "Take a Moment for You";
2203
+ 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
+ var start_check_in_now = "START CHECK-IN NOW";
2205
+ var i_ll_do_it_later = "I'LL DO IT LATER";
2206
+ var survey_portal = "Survey Portal";
2207
+ var external_api = "External Api";
2208
+ var teacher_well_being = "Teacher Well-Being";
2209
+ var frequency_and_setup = "Frequency and Setup";
2210
+ var well_being_dashboard = "Well-Being Dashboard";
2211
+ var go_to_dashboard = "Go to dashboard";
2212
+ 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.";
2213
+ 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.";
2214
+ 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.";
2215
+ var check_in_complete = "Check-in Complete!";
2216
+ var schedule_a_conversation = "Schedule a Conversation";
2217
+ var select_a_contact_to_speak_with = "Select a contact to speak with";
2218
+ var what_would_you_like_to_discuss = "What would you like to discuss?";
2219
+ 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...";
2220
+ var wellbeing_sections = "Wellbeing Sections";
2185
2221
  var school_monthly_usage = "School Monthly Usage";
2186
2222
  var location$1 = "Location";
2187
2223
  var edit_my_profile = "Edit My Profile";
@@ -2189,6 +2225,30 @@ var save_new_password = "Save new password";
2189
2225
  var teacher_code = "Teacher code";
2190
2226
  var number_of_conversations = "Number of conversations";
2191
2227
  var number_of_expected_conversations_based_on_the_goal = "Number of expected conversations based on the goal";
2228
+ var teachers_well_being_dashboard = "Teachers' Well-Being Dashboard";
2229
+ var my_well_being_dashboard = "My Well-Being Dashboard";
2230
+ var understand_the_metrics_about_the_educators_wellness_and_environment = "Understand the metrics about the educator's wellness and environment";
2231
+ var understand_the_metrics_about_my_wellness_and_environment = "Understand the metrics about my wellness and environment";
2232
+ var engagement = "Engagement";
2233
+ var total_1_1_conversations = "Total 1-1 Conversations";
2234
+ var educators_without_check_ins = "Educators without<br/>check-ins";
2235
+ var educators_without_check_ins_not_br = "Educators without Check-ins";
2236
+ var educators_havent_completed_check_ins_in_the_last_30_days = "educators haven't completed check-ins in the last 30 days";
2237
+ var you_can_send_individual_requests_or_bulk_reminders_to_all_educators = "You can send individual requests or bulk reminders to all educators";
2238
+ var department = "Department";
2239
+ var last_check_in_normal = "Last check-in";
2240
+ var request_check_in_wellbeing = "Request check-in";
2241
+ var send_bulk_reminder = "Send bulk reminder";
2242
+ var physical = "Physical";
2243
+ var self_care = "Self-care";
2244
+ var relationships_well_being = "Relationships Well-Being";
2245
+ var self_care_well_being = "Self-Care Well-Being";
2246
+ var environment = "Environment";
2247
+ var environment_well_being = "Environment Well-Being";
2248
+ var intellectual = "Intellectual";
2249
+ var the_data_presented_here_comes_from_the_check_ins = "The data presented here comes from the check-ins.";
2250
+ var charts_will_appear_once_over_20_of_educators = "Charts will appear once over 20% of educators<br/>have completed their check-ins.";
2251
+ var total_1_1_requested = "Total 1-1 Requested";
2192
2252
  var lang_us = {
2193
2253
  dashboard: dashboard,
2194
2254
  user: user,
@@ -4388,13 +4448,74 @@ var lang_us = {
4388
4448
  type_the_main_focus_of_this_session: type_the_main_focus_of_this_session,
4389
4449
  please_add_title_note: please_add_title_note,
4390
4450
  notes_and_logs: notes_and_logs,
4451
+ my_well_being: my_well_being,
4452
+ my_well_Being_check_in: my_well_Being_check_in,
4453
+ my_sessions: my_sessions,
4454
+ your_personal_data_will_not_be_shared_with_anyone_else: your_personal_data_will_not_be_shared_with_anyone_else,
4455
+ school_leadership_will_only_see_aggregated_data: school_leadership_will_only_see_aggregated_data,
4456
+ save_filters: save_filters,
4457
+ clear_all_filters: clear_all_filters,
4458
+ my_well_being_check_in: my_well_being_check_in,
4459
+ unless_you_specifically_choose_to_do_this: unless_you_specifically_choose_to_do_this,
4460
+ physical_well_being: physical_well_being,
4461
+ emotional_well_being: emotional_well_being,
4462
+ "self_care_&_balance": "Self-Care & Balance",
4463
+ social_well_being_relationships: social_well_being_relationships,
4464
+ social_well_being_environment: social_well_being_environment,
4465
+ intellectual_well_being: intellectual_well_being,
4466
+ colleague_or_staff_member_you_like_to_praise_or_thank: colleague_or_staff_member_you_like_to_praise_or_thank,
4467
+ wellbeing_finished: wellbeing_finished,
4468
+ check_in: check_in,
4469
+ take_a_moment_for_you: take_a_moment_for_you,
4470
+ 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,
4471
+ start_check_in_now: start_check_in_now,
4472
+ i_ll_do_it_later: i_ll_do_it_later,
4473
+ survey_portal: survey_portal,
4474
+ external_api: external_api,
4475
+ teacher_well_being: teacher_well_being,
4476
+ frequency_and_setup: frequency_and_setup,
4477
+ well_being_dashboard: well_being_dashboard,
4478
+ go_to_dashboard: go_to_dashboard,
4479
+ 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,
4480
+ 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,
4481
+ 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,
4482
+ check_in_complete: check_in_complete,
4483
+ schedule_a_conversation: schedule_a_conversation,
4484
+ select_a_contact_to_speak_with: select_a_contact_to_speak_with,
4485
+ what_would_you_like_to_discuss: what_would_you_like_to_discuss,
4486
+ 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,
4487
+ wellbeing_sections: wellbeing_sections,
4391
4488
  school_monthly_usage: school_monthly_usage,
4392
4489
  location: location$1,
4393
4490
  edit_my_profile: edit_my_profile,
4394
4491
  save_new_password: save_new_password,
4395
4492
  teacher_code: teacher_code,
4396
4493
  number_of_conversations: number_of_conversations,
4397
- number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal
4494
+ number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal,
4495
+ teachers_well_being_dashboard: teachers_well_being_dashboard,
4496
+ my_well_being_dashboard: my_well_being_dashboard,
4497
+ understand_the_metrics_about_the_educators_wellness_and_environment: understand_the_metrics_about_the_educators_wellness_and_environment,
4498
+ understand_the_metrics_about_my_wellness_and_environment: understand_the_metrics_about_my_wellness_and_environment,
4499
+ engagement: engagement,
4500
+ total_1_1_conversations: total_1_1_conversations,
4501
+ educators_without_check_ins: educators_without_check_ins,
4502
+ educators_without_check_ins_not_br: educators_without_check_ins_not_br,
4503
+ educators_havent_completed_check_ins_in_the_last_30_days: educators_havent_completed_check_ins_in_the_last_30_days,
4504
+ you_can_send_individual_requests_or_bulk_reminders_to_all_educators: you_can_send_individual_requests_or_bulk_reminders_to_all_educators,
4505
+ department: department,
4506
+ last_check_in_normal: last_check_in_normal,
4507
+ request_check_in_wellbeing: request_check_in_wellbeing,
4508
+ send_bulk_reminder: send_bulk_reminder,
4509
+ physical: physical,
4510
+ self_care: self_care,
4511
+ relationships_well_being: relationships_well_being,
4512
+ self_care_well_being: self_care_well_being,
4513
+ environment: environment,
4514
+ environment_well_being: environment_well_being,
4515
+ intellectual: intellectual,
4516
+ the_data_presented_here_comes_from_the_check_ins: the_data_presented_here_comes_from_the_check_ins,
4517
+ charts_will_appear_once_over_20_of_educators: charts_will_appear_once_over_20_of_educators,
4518
+ total_1_1_requested: total_1_1_requested
4398
4519
  };
4399
4520
 
4400
4521
  var dashboard$1 = "Dashboard";
@@ -4412,7 +4533,7 @@ var cancel$1 = "Cancel";
4412
4533
  var hey$1 = "Hey";
4413
4534
  var readiness_to_learn$1 = "Readiness to Learn";
4414
4535
  var high_impact_learning_strategies$1 = "High Impact Learning Strategies";
4415
- var check_in = "Check In";
4536
+ var check_in$1 = "Check In";
4416
4537
  var check_ins$1 = "Check Ins";
4417
4538
  var reflection$1 = "Reflection";
4418
4539
  var conferences$1 = "Conferences";
@@ -6541,13 +6662,72 @@ var save_note$1 = "Save note";
6541
6662
  var type_the_main_focus_of_this_session$1 = "Type the main focus of this session";
6542
6663
  var please_add_title_note$1 = "Please add note title";
6543
6664
  var notes_and_logs$1 = "Notes and Logs";
6665
+ var survey_portal$1 = "Survey Portal";
6666
+ var external_api$1 = "External Api";
6667
+ var teacher_well_being$1 = "Teacher Well-Being";
6668
+ var frequency_and_setup$1 = "Frequency and Setup";
6669
+ var well_being_dashboard$1 = "Well-Being Dashboard";
6670
+ var go_to_dashboard$1 = "Go to dashboard";
6671
+ 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.";
6672
+ 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.";
6673
+ 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.";
6674
+ var check_in_complete$1 = "Check-in Complete!";
6675
+ var schedule_a_conversation$1 = "Schedule a Conversation";
6676
+ var select_a_contact_to_speak_with$1 = "Select a contact to speak with";
6677
+ var what_would_you_like_to_discuss$1 = "What would you like to discuss?";
6678
+ 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...";
6679
+ var wellbeing_sections$1 = "Wellbeing Sections";
6544
6680
  var school_monthly_usage$1 = "School Monthly Usage";
6545
6681
  var location$2 = "Location";
6546
6682
  var edit_my_profile$1 = "Edit My Profile";
6547
6683
  var save_new_password$1 = "Save new password";
6548
6684
  var teacher_code$1 = "Teacher code";
6685
+ var my_well_being$1 = "My Well-being";
6686
+ var my_well_Being_check_in$1 = "My Well-Being Check-in";
6687
+ var my_sessions$1 = "My Sessions";
6688
+ var your_personal_data_will_not_be_shared_with_anyone_else$1 = "Your personal data will <strong>not be shared</strong> with anyone else";
6689
+ var school_leadership_will_only_see_aggregated_data$1 = "School leadership will only see aggregated data.";
6690
+ var save_filters$1 = "Save Filters";
6691
+ var clear_all_filters$1 = "Clear All Filters";
6692
+ var my_well_being_check_in$1 = "My Well-Being Check-in";
6693
+ var unless_you_specifically_choose_to_do_this$1 = "unless you specifically choose to do this.";
6694
+ var physical_well_being$1 = "Physical Well-Being";
6695
+ var emotional_well_being$1 = "Emotional Well-Being";
6696
+ var social_well_being_relationships$1 = "Social Well-Being - Relationships";
6697
+ var social_well_being_environment$1 = "Social Well-Being - Environment";
6698
+ var intellectual_well_being$1 = "Intellectual Well-Being";
6699
+ var colleague_or_staff_member_you_like_to_praise_or_thank$1 = "Colleague or staff member you'd like to praise or thank?";
6700
+ var wellbeing_finished$1 = "Wellbeing Finished";
6701
+ var take_a_moment_for_you$1 = "Take a Moment for You";
6702
+ 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$1 = "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.";
6703
+ var start_check_in_now$1 = "START CHECK-IN NOW";
6704
+ var i_ll_do_it_later$1 = "I'LL DO IT LATER";
6549
6705
  var number_of_conversations$1 = "Number of conversations";
6550
6706
  var number_of_expected_conversations_based_on_the_goal$1 = "Number of expected conversations based on the goal";
6707
+ var teachers_well_being_dashboard$1 = "Teachers' Well-Being Dashboard";
6708
+ var my_well_being_dashboard$1 = "My Well-Being Dashboard";
6709
+ var understand_the_metrics_about_the_educators_wellness_and_environment$1 = "Understand the metrics about the educator's wellness and environment";
6710
+ var understand_the_metrics_about_my_wellness_and_environment$1 = "Understand the metrics about my wellness and environment";
6711
+ var engagement$1 = "Engagement";
6712
+ var total_1_1_conversations$1 = "Total 1-1 Conversations";
6713
+ var educators_without_check_ins$1 = "Educators without<br/>check-ins";
6714
+ var educators_without_check_ins_not_br$1 = "Educators without Check-ins";
6715
+ var educators_havent_completed_check_ins_in_the_last_30_days$1 = "educators haven't completed check-ins in the last 30 days";
6716
+ var you_can_send_individual_requests_or_bulk_reminders_to_all_educators$1 = "You can send individual requests or bulk reminders to all educators";
6717
+ var department$1 = "Department";
6718
+ var last_check_in_normal$1 = "Last check-in";
6719
+ var request_check_in_wellbeing$1 = "Request check-in";
6720
+ var send_bulk_reminder$1 = "Send bulk reminder";
6721
+ var physical$1 = "Physical";
6722
+ var self_care$1 = "Self-care";
6723
+ var relationships_well_being$1 = "Relationships Well-Being";
6724
+ var self_care_well_being$1 = "Self-Care Well-Being";
6725
+ var environment$1 = "Environment";
6726
+ var environment_well_being$1 = "Environment Well-Being";
6727
+ var intellectual$1 = "Intellectual";
6728
+ var the_data_presented_here_comes_from_the_check_ins$1 = "The data presented here comes from the check-ins.";
6729
+ var charts_will_appear_once_over_20_of_educators$1 = "Charts will appear once over 20% of educators<br/>have completed their check-ins.";
6730
+ var total_1_1_requested$1 = "Total 1-1 Requested";
6551
6731
  var lang_uk = {
6552
6732
  dashboard: dashboard$1,
6553
6733
  user: user$1,
@@ -6565,7 +6745,7 @@ var lang_uk = {
6565
6745
  readiness_to_learn: readiness_to_learn$1,
6566
6746
  high_impact_learning_strategies: high_impact_learning_strategies$1,
6567
6747
  "1_to_1": "1 to 1",
6568
- check_in: check_in,
6748
+ check_in: check_in$1,
6569
6749
  check_ins: check_ins$1,
6570
6750
  reflection: reflection$1,
6571
6751
  conferences: conferences$1,
@@ -8745,13 +8925,73 @@ var lang_uk = {
8745
8925
  type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$1,
8746
8926
  please_add_title_note: please_add_title_note$1,
8747
8927
  notes_and_logs: notes_and_logs$1,
8928
+ survey_portal: survey_portal$1,
8929
+ external_api: external_api$1,
8930
+ teacher_well_being: teacher_well_being$1,
8931
+ frequency_and_setup: frequency_and_setup$1,
8932
+ well_being_dashboard: well_being_dashboard$1,
8933
+ go_to_dashboard: go_to_dashboard$1,
8934
+ 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,
8935
+ 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,
8936
+ 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,
8937
+ check_in_complete: check_in_complete$1,
8938
+ schedule_a_conversation: schedule_a_conversation$1,
8939
+ select_a_contact_to_speak_with: select_a_contact_to_speak_with$1,
8940
+ what_would_you_like_to_discuss: what_would_you_like_to_discuss$1,
8941
+ 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,
8942
+ wellbeing_sections: wellbeing_sections$1,
8748
8943
  school_monthly_usage: school_monthly_usage$1,
8749
8944
  location: location$2,
8750
8945
  edit_my_profile: edit_my_profile$1,
8751
8946
  save_new_password: save_new_password$1,
8752
8947
  teacher_code: teacher_code$1,
8948
+ my_well_being: my_well_being$1,
8949
+ my_well_Being_check_in: my_well_Being_check_in$1,
8950
+ my_sessions: my_sessions$1,
8951
+ your_personal_data_will_not_be_shared_with_anyone_else: your_personal_data_will_not_be_shared_with_anyone_else$1,
8952
+ school_leadership_will_only_see_aggregated_data: school_leadership_will_only_see_aggregated_data$1,
8953
+ save_filters: save_filters$1,
8954
+ clear_all_filters: clear_all_filters$1,
8955
+ my_well_being_check_in: my_well_being_check_in$1,
8956
+ unless_you_specifically_choose_to_do_this: unless_you_specifically_choose_to_do_this$1,
8957
+ physical_well_being: physical_well_being$1,
8958
+ emotional_well_being: emotional_well_being$1,
8959
+ "self_care_&_balance": "Self-Care & Balance",
8960
+ social_well_being_relationships: social_well_being_relationships$1,
8961
+ social_well_being_environment: social_well_being_environment$1,
8962
+ intellectual_well_being: intellectual_well_being$1,
8963
+ colleague_or_staff_member_you_like_to_praise_or_thank: colleague_or_staff_member_you_like_to_praise_or_thank$1,
8964
+ wellbeing_finished: wellbeing_finished$1,
8965
+ take_a_moment_for_you: take_a_moment_for_you$1,
8966
+ 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$1,
8967
+ start_check_in_now: start_check_in_now$1,
8968
+ i_ll_do_it_later: i_ll_do_it_later$1,
8753
8969
  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
8970
+ number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$1,
8971
+ teachers_well_being_dashboard: teachers_well_being_dashboard$1,
8972
+ my_well_being_dashboard: my_well_being_dashboard$1,
8973
+ understand_the_metrics_about_the_educators_wellness_and_environment: understand_the_metrics_about_the_educators_wellness_and_environment$1,
8974
+ understand_the_metrics_about_my_wellness_and_environment: understand_the_metrics_about_my_wellness_and_environment$1,
8975
+ engagement: engagement$1,
8976
+ total_1_1_conversations: total_1_1_conversations$1,
8977
+ educators_without_check_ins: educators_without_check_ins$1,
8978
+ educators_without_check_ins_not_br: educators_without_check_ins_not_br$1,
8979
+ educators_havent_completed_check_ins_in_the_last_30_days: educators_havent_completed_check_ins_in_the_last_30_days$1,
8980
+ you_can_send_individual_requests_or_bulk_reminders_to_all_educators: you_can_send_individual_requests_or_bulk_reminders_to_all_educators$1,
8981
+ department: department$1,
8982
+ last_check_in_normal: last_check_in_normal$1,
8983
+ request_check_in_wellbeing: request_check_in_wellbeing$1,
8984
+ send_bulk_reminder: send_bulk_reminder$1,
8985
+ physical: physical$1,
8986
+ self_care: self_care$1,
8987
+ relationships_well_being: relationships_well_being$1,
8988
+ self_care_well_being: self_care_well_being$1,
8989
+ environment: environment$1,
8990
+ environment_well_being: environment_well_being$1,
8991
+ intellectual: intellectual$1,
8992
+ the_data_presented_here_comes_from_the_check_ins: the_data_presented_here_comes_from_the_check_ins$1,
8993
+ charts_will_appear_once_over_20_of_educators: charts_will_appear_once_over_20_of_educators$1,
8994
+ total_1_1_requested: total_1_1_requested$1
8755
8995
  };
8756
8996
 
8757
8997
  var dashboard$2 = "لوحة المعلومات";
@@ -8769,7 +9009,7 @@ var cancel$2 = "إلغاء";
8769
9009
  var hey$2 = "مرحبًا";
8770
9010
  var readiness_to_learn$2 = "الاستعداد للتعلم";
8771
9011
  var high_impact_learning_strategies$2 = "استراتيجيات التعلم عالية التأثير";
8772
- var check_in$1 = "تسجيل الحضور";
9012
+ var check_in$2 = "تسجيل الحضور";
8773
9013
  var check_ins$2 = "عمليات تسجيل الحضور";
8774
9014
  var reflection$2 = "التفكير";
8775
9015
  var conferences$2 = "اللقاءات";
@@ -10928,13 +11168,73 @@ var save_note$2 = "Save note";
10928
11168
  var type_the_main_focus_of_this_session$2 = "Type the main focus of this session";
10929
11169
  var please_add_title_note$2 = "Please add note title";
10930
11170
  var notes_and_logs$2 = "Notes and Logs";
11171
+ var survey_portal$2 = "Survey Portal";
11172
+ var integrations$2 = "Integrations";
11173
+ var external_api$2 = "External Api";
11174
+ var teacher_well_being$2 = "Teacher Well-Being";
11175
+ var frequency_and_setup$2 = "Frequency and Setup";
11176
+ var well_being_dashboard$2 = "Well-Being Dashboard";
11177
+ var go_to_dashboard$2 = "Go to dashboard";
11178
+ 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.";
11179
+ 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.";
11180
+ 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.";
11181
+ var check_in_complete$2 = "Check-in Complete!";
11182
+ var schedule_a_conversation$2 = "Schedule a Conversation";
11183
+ var select_a_contact_to_speak_with$2 = "Select a contact to speak with";
11184
+ var what_would_you_like_to_discuss$2 = "What would you like to discuss?";
11185
+ 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...";
11186
+ var wellbeing_sections$2 = "Wellbeing Sections";
10931
11187
  var school_monthly_usage$2 = "School Monthly Usage";
10932
11188
  var location$3 = "Location";
10933
11189
  var edit_my_profile$2 = "Edit My Profile";
10934
11190
  var save_new_password$2 = "Save new password";
10935
11191
  var teacher_code$2 = "Teacher code";
11192
+ var my_well_being$2 = "My Well-being";
11193
+ var my_well_Being_check_in$2 = "My Well-Being Check-in";
11194
+ var my_sessions$2 = "My Sessions";
11195
+ var your_personal_data_will_not_be_shared_with_anyone_else$2 = "Your personal data will <strong>not be shared</strong> with anyone else";
11196
+ var school_leadership_will_only_see_aggregated_data$2 = "School leadership will only see aggregated data.";
11197
+ var save_filters$2 = "Save Filters";
11198
+ var clear_all_filters$2 = "Clear All Filters";
11199
+ var my_well_being_check_in$2 = "My Well-Being Check-in";
11200
+ var unless_you_specifically_choose_to_do_this$2 = "unless you specifically choose to do this.";
11201
+ var physical_well_being$2 = "Physical Well-Being";
11202
+ var emotional_well_being$2 = "Emotional Well-Being";
11203
+ var social_well_being_relationships$2 = "Social Well-Being - Relationships";
11204
+ var social_well_being_environment$2 = "Social Well-Being - Environment";
11205
+ var intellectual_well_being$2 = "Intellectual Well-Being";
11206
+ var colleague_or_staff_member_you_like_to_praise_or_thank$2 = "Colleague or staff member you'd like to praise or thank?";
11207
+ var wellbeing_finished$2 = "Wellbeing Finished";
11208
+ var take_a_moment_for_you$2 = "Take a Moment for You";
11209
+ 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$2 = "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.";
11210
+ var start_check_in_now$2 = "START CHECK-IN NOW";
11211
+ var i_ll_do_it_later$2 = "I'LL DO IT LATER";
10936
11212
  var number_of_conversations$2 = "Number of conversations";
10937
11213
  var number_of_expected_conversations_based_on_the_goal$2 = "Number of expected conversations based on the goal";
11214
+ var teachers_well_being_dashboard$2 = "Teachers' Well-Being Dashboard";
11215
+ var my_well_being_dashboard$2 = "My Well-Being Dashboard";
11216
+ var understand_the_metrics_about_the_educators_wellness_and_environment$2 = "Understand the metrics about the educator's wellness and environment";
11217
+ var understand_the_metrics_about_my_wellness_and_environment$2 = "Understand the metrics about my wellness and environment";
11218
+ var engagement$2 = "Engagement";
11219
+ var total_1_1_conversations$2 = "Total 1-1 Conversations";
11220
+ var educators_without_check_ins$2 = "Educators without<br/>check-ins";
11221
+ var educators_without_check_ins_not_br$2 = "Educators without Check-ins";
11222
+ var educators_havent_completed_check_ins_in_the_last_30_days$2 = "educators haven't completed check-ins in the last 30 days";
11223
+ var you_can_send_individual_requests_or_bulk_reminders_to_all_educators$2 = "You can send individual requests or bulk reminders to all educators";
11224
+ var department$2 = "Department";
11225
+ var last_check_in_normal$2 = "Last check-in";
11226
+ var request_check_in_wellbeing$2 = "Request check-in";
11227
+ var send_bulk_reminder$2 = "Send bulk reminder";
11228
+ var physical$2 = "Physical";
11229
+ var self_care$2 = "Self-care";
11230
+ var relationships_well_being$2 = "Relationships Well-Being";
11231
+ var self_care_well_being$2 = "Self-Care Well-Being";
11232
+ var environment$2 = "Environment";
11233
+ var environment_well_being$2 = "Environment Well-Being";
11234
+ var intellectual$2 = "Intellectual";
11235
+ var the_data_presented_here_comes_from_the_check_ins$2 = "The data presented here comes from the check-ins.";
11236
+ var charts_will_appear_once_over_20_of_educators$2 = "Charts will appear once over 20% of educators<br/>have completed their check-ins.";
11237
+ var total_1_1_requested$2 = "Total 1-1 Requested";
10938
11238
  var lang_ar = {
10939
11239
  dashboard: dashboard$2,
10940
11240
  user: user$2,
@@ -10952,7 +11252,7 @@ var lang_ar = {
10952
11252
  readiness_to_learn: readiness_to_learn$2,
10953
11253
  high_impact_learning_strategies: high_impact_learning_strategies$2,
10954
11254
  "1_to_1": "1 إلى 1",
10955
- check_in: check_in$1,
11255
+ check_in: check_in$2,
10956
11256
  check_ins: check_ins$2,
10957
11257
  reflection: reflection$2,
10958
11258
  conferences: conferences$2,
@@ -13164,13 +13464,74 @@ var lang_ar = {
13164
13464
  type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$2,
13165
13465
  please_add_title_note: please_add_title_note$2,
13166
13466
  notes_and_logs: notes_and_logs$2,
13467
+ survey_portal: survey_portal$2,
13468
+ integrations: integrations$2,
13469
+ external_api: external_api$2,
13470
+ teacher_well_being: teacher_well_being$2,
13471
+ frequency_and_setup: frequency_and_setup$2,
13472
+ well_being_dashboard: well_being_dashboard$2,
13473
+ go_to_dashboard: go_to_dashboard$2,
13474
+ 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,
13475
+ 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,
13476
+ 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,
13477
+ check_in_complete: check_in_complete$2,
13478
+ schedule_a_conversation: schedule_a_conversation$2,
13479
+ select_a_contact_to_speak_with: select_a_contact_to_speak_with$2,
13480
+ what_would_you_like_to_discuss: what_would_you_like_to_discuss$2,
13481
+ 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,
13482
+ wellbeing_sections: wellbeing_sections$2,
13167
13483
  school_monthly_usage: school_monthly_usage$2,
13168
13484
  location: location$3,
13169
13485
  edit_my_profile: edit_my_profile$2,
13170
13486
  save_new_password: save_new_password$2,
13171
13487
  teacher_code: teacher_code$2,
13488
+ my_well_being: my_well_being$2,
13489
+ my_well_Being_check_in: my_well_Being_check_in$2,
13490
+ my_sessions: my_sessions$2,
13491
+ your_personal_data_will_not_be_shared_with_anyone_else: your_personal_data_will_not_be_shared_with_anyone_else$2,
13492
+ school_leadership_will_only_see_aggregated_data: school_leadership_will_only_see_aggregated_data$2,
13493
+ save_filters: save_filters$2,
13494
+ clear_all_filters: clear_all_filters$2,
13495
+ my_well_being_check_in: my_well_being_check_in$2,
13496
+ unless_you_specifically_choose_to_do_this: unless_you_specifically_choose_to_do_this$2,
13497
+ physical_well_being: physical_well_being$2,
13498
+ emotional_well_being: emotional_well_being$2,
13499
+ "self_care_&_balance": "Self-Care & Balance",
13500
+ social_well_being_relationships: social_well_being_relationships$2,
13501
+ social_well_being_environment: social_well_being_environment$2,
13502
+ intellectual_well_being: intellectual_well_being$2,
13503
+ colleague_or_staff_member_you_like_to_praise_or_thank: colleague_or_staff_member_you_like_to_praise_or_thank$2,
13504
+ wellbeing_finished: wellbeing_finished$2,
13505
+ take_a_moment_for_you: take_a_moment_for_you$2,
13506
+ 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$2,
13507
+ start_check_in_now: start_check_in_now$2,
13508
+ i_ll_do_it_later: i_ll_do_it_later$2,
13172
13509
  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
13510
+ number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$2,
13511
+ teachers_well_being_dashboard: teachers_well_being_dashboard$2,
13512
+ my_well_being_dashboard: my_well_being_dashboard$2,
13513
+ understand_the_metrics_about_the_educators_wellness_and_environment: understand_the_metrics_about_the_educators_wellness_and_environment$2,
13514
+ understand_the_metrics_about_my_wellness_and_environment: understand_the_metrics_about_my_wellness_and_environment$2,
13515
+ engagement: engagement$2,
13516
+ total_1_1_conversations: total_1_1_conversations$2,
13517
+ educators_without_check_ins: educators_without_check_ins$2,
13518
+ educators_without_check_ins_not_br: educators_without_check_ins_not_br$2,
13519
+ educators_havent_completed_check_ins_in_the_last_30_days: educators_havent_completed_check_ins_in_the_last_30_days$2,
13520
+ you_can_send_individual_requests_or_bulk_reminders_to_all_educators: you_can_send_individual_requests_or_bulk_reminders_to_all_educators$2,
13521
+ department: department$2,
13522
+ last_check_in_normal: last_check_in_normal$2,
13523
+ request_check_in_wellbeing: request_check_in_wellbeing$2,
13524
+ send_bulk_reminder: send_bulk_reminder$2,
13525
+ physical: physical$2,
13526
+ self_care: self_care$2,
13527
+ relationships_well_being: relationships_well_being$2,
13528
+ self_care_well_being: self_care_well_being$2,
13529
+ environment: environment$2,
13530
+ environment_well_being: environment_well_being$2,
13531
+ intellectual: intellectual$2,
13532
+ the_data_presented_here_comes_from_the_check_ins: the_data_presented_here_comes_from_the_check_ins$2,
13533
+ charts_will_appear_once_over_20_of_educators: charts_will_appear_once_over_20_of_educators$2,
13534
+ total_1_1_requested: total_1_1_requested$2
13174
13535
  };
13175
13536
 
13176
13537
  var dashboard$3 = "Cuadro de mandos";
@@ -13188,7 +13549,7 @@ var cancel$3 = "Cancelar";
13188
13549
  var hey$3 = "Hola";
13189
13550
  var readiness_to_learn$3 = "Preparación para el aprendizaje";
13190
13551
  var high_impact_learning_strategies$3 = "Estrategias de aprendizaje de alto impacto";
13191
- var check_in$2 = "Registro";
13552
+ var check_in$3 = "Registro";
13192
13553
  var check_ins$3 = "Registro de entrada";
13193
13554
  var reflection$3 = "Reflexión";
13194
13555
  var conferences$3 = "Conferencias";
@@ -15347,13 +15708,73 @@ var save_note$3 = "Save note";
15347
15708
  var type_the_main_focus_of_this_session$3 = "Type the main focus of this session";
15348
15709
  var please_add_title_note$3 = "Please add note title";
15349
15710
  var notes_and_logs$3 = "Notes and Logs";
15711
+ var survey_portal$3 = "Survey Portal";
15712
+ var integrations$3 = "Integrations";
15713
+ var external_api$3 = "External Api";
15714
+ var teacher_well_being$3 = "Teacher Well-Being";
15715
+ var frequency_and_setup$3 = "Frequency and Setup";
15716
+ var well_being_dashboard$3 = "Well-Being Dashboard";
15717
+ var go_to_dashboard$3 = "Go to dashboard";
15718
+ 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.";
15719
+ 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.";
15720
+ 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.";
15721
+ var check_in_complete$3 = "Check-in Complete!";
15722
+ var schedule_a_conversation$3 = "Schedule a Conversation";
15723
+ var select_a_contact_to_speak_with$3 = "Select a contact to speak with";
15724
+ var what_would_you_like_to_discuss$3 = "What would you like to discuss?";
15725
+ 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...";
15726
+ var wellbeing_sections$3 = "Wellbeing Sections";
15350
15727
  var school_monthly_usage$3 = "School Monthly Usage";
15351
15728
  var location$4 = "Location";
15352
15729
  var edit_my_profile$3 = "Edit My Profile";
15353
15730
  var save_new_password$3 = "Save new password";
15354
15731
  var teacher_code$3 = "Teacher code";
15732
+ var my_well_being$3 = "My Well-being";
15733
+ var my_well_Being_check_in$3 = "My Well-Being Check-in";
15734
+ var my_sessions$3 = "My Sessions";
15735
+ var your_personal_data_will_not_be_shared_with_anyone_else$3 = "Your personal data will <strong>not be shared</strong> with anyone else";
15736
+ var school_leadership_will_only_see_aggregated_data$3 = "School leadership will only see aggregated data.";
15737
+ var save_filters$3 = "Save Filters";
15738
+ var clear_all_filters$3 = "Clear All Filters";
15739
+ var my_well_being_check_in$3 = "My Well-Being Check-in";
15740
+ var unless_you_specifically_choose_to_do_this$3 = "unless you specifically choose to do this.";
15741
+ var physical_well_being$3 = "Physical Well-Being";
15742
+ var emotional_well_being$3 = "Emotional Well-Being";
15743
+ var social_well_being_relationships$3 = "Social Well-Being - Relationships";
15744
+ var social_well_being_environment$3 = "Social Well-Being - Environment";
15745
+ var intellectual_well_being$3 = "Intellectual Well-Being";
15746
+ var colleague_or_staff_member_you_like_to_praise_or_thank$3 = "Colleague or staff member you'd like to praise or thank?";
15747
+ var wellbeing_finished$3 = "Wellbeing Finished";
15748
+ var take_a_moment_for_you$3 = "Take a Moment for You";
15749
+ 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$3 = "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.";
15750
+ var start_check_in_now$3 = "START CHECK-IN NOW";
15751
+ var i_ll_do_it_later$3 = "I'LL DO IT LATER";
15355
15752
  var number_of_conversations$3 = "Number of conversations";
15356
15753
  var number_of_expected_conversations_based_on_the_goal$3 = "Number of expected conversations based on the goal";
15754
+ var teachers_well_being_dashboard$3 = "Teachers' Well-Being Dashboard";
15755
+ var my_well_being_dashboard$3 = "My Well-Being Dashboard";
15756
+ var understand_the_metrics_about_the_educators_wellness_and_environment$3 = "Understand the metrics about the educator's wellness and environment";
15757
+ var understand_the_metrics_about_my_wellness_and_environment$3 = "Understand the metrics about my wellness and environment";
15758
+ var engagement$3 = "Engagement";
15759
+ var total_1_1_conversations$3 = "Total 1-1 Conversations";
15760
+ var educators_without_check_ins$3 = "Educators without<br/>check-ins";
15761
+ var educators_without_check_ins_not_br$3 = "Educators without Check-ins";
15762
+ var educators_havent_completed_check_ins_in_the_last_30_days$3 = "educators haven't completed check-ins in the last 30 days";
15763
+ var you_can_send_individual_requests_or_bulk_reminders_to_all_educators$3 = "You can send individual requests or bulk reminders to all educators";
15764
+ var department$3 = "Department";
15765
+ var last_check_in_normal$3 = "Last check-in";
15766
+ var request_check_in_wellbeing$3 = "Request check-in";
15767
+ var send_bulk_reminder$3 = "Send bulk reminder";
15768
+ var physical$3 = "Physical";
15769
+ var self_care$3 = "Self-care";
15770
+ var relationships_well_being$3 = "Relationships Well-Being";
15771
+ var self_care_well_being$3 = "Self-Care Well-Being";
15772
+ var environment$3 = "Environment";
15773
+ var environment_well_being$3 = "Environment Well-Being";
15774
+ var intellectual$3 = "Intellectual";
15775
+ var the_data_presented_here_comes_from_the_check_ins$3 = "The data presented here comes from the check-ins.";
15776
+ var charts_will_appear_once_over_20_of_educators$3 = "Charts will appear once over 20% of educators<br/>have completed their check-ins.";
15777
+ var total_1_1_requested$3 = "Total 1-1 Requested";
15357
15778
  var lang_es = {
15358
15779
  dashboard: dashboard$3,
15359
15780
  user: user$3,
@@ -15371,7 +15792,7 @@ var lang_es = {
15371
15792
  readiness_to_learn: readiness_to_learn$3,
15372
15793
  high_impact_learning_strategies: high_impact_learning_strategies$3,
15373
15794
  "1_to_1": "1 a 1",
15374
- check_in: check_in$2,
15795
+ check_in: check_in$3,
15375
15796
  check_ins: check_ins$3,
15376
15797
  reflection: reflection$3,
15377
15798
  conferences: conferences$3,
@@ -17583,13 +18004,74 @@ var lang_es = {
17583
18004
  type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$3,
17584
18005
  please_add_title_note: please_add_title_note$3,
17585
18006
  notes_and_logs: notes_and_logs$3,
18007
+ survey_portal: survey_portal$3,
18008
+ integrations: integrations$3,
18009
+ external_api: external_api$3,
18010
+ teacher_well_being: teacher_well_being$3,
18011
+ frequency_and_setup: frequency_and_setup$3,
18012
+ well_being_dashboard: well_being_dashboard$3,
18013
+ go_to_dashboard: go_to_dashboard$3,
18014
+ 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,
18015
+ 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,
18016
+ 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,
18017
+ check_in_complete: check_in_complete$3,
18018
+ schedule_a_conversation: schedule_a_conversation$3,
18019
+ select_a_contact_to_speak_with: select_a_contact_to_speak_with$3,
18020
+ what_would_you_like_to_discuss: what_would_you_like_to_discuss$3,
18021
+ 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,
18022
+ wellbeing_sections: wellbeing_sections$3,
17586
18023
  school_monthly_usage: school_monthly_usage$3,
17587
18024
  location: location$4,
17588
18025
  edit_my_profile: edit_my_profile$3,
17589
18026
  save_new_password: save_new_password$3,
17590
18027
  teacher_code: teacher_code$3,
18028
+ my_well_being: my_well_being$3,
18029
+ my_well_Being_check_in: my_well_Being_check_in$3,
18030
+ my_sessions: my_sessions$3,
18031
+ your_personal_data_will_not_be_shared_with_anyone_else: your_personal_data_will_not_be_shared_with_anyone_else$3,
18032
+ school_leadership_will_only_see_aggregated_data: school_leadership_will_only_see_aggregated_data$3,
18033
+ save_filters: save_filters$3,
18034
+ clear_all_filters: clear_all_filters$3,
18035
+ my_well_being_check_in: my_well_being_check_in$3,
18036
+ unless_you_specifically_choose_to_do_this: unless_you_specifically_choose_to_do_this$3,
18037
+ physical_well_being: physical_well_being$3,
18038
+ emotional_well_being: emotional_well_being$3,
18039
+ "self_care_&_balance": "Self-Care & Balance",
18040
+ social_well_being_relationships: social_well_being_relationships$3,
18041
+ social_well_being_environment: social_well_being_environment$3,
18042
+ intellectual_well_being: intellectual_well_being$3,
18043
+ colleague_or_staff_member_you_like_to_praise_or_thank: colleague_or_staff_member_you_like_to_praise_or_thank$3,
18044
+ wellbeing_finished: wellbeing_finished$3,
18045
+ take_a_moment_for_you: take_a_moment_for_you$3,
18046
+ 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$3,
18047
+ start_check_in_now: start_check_in_now$3,
18048
+ i_ll_do_it_later: i_ll_do_it_later$3,
17591
18049
  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
18050
+ number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$3,
18051
+ teachers_well_being_dashboard: teachers_well_being_dashboard$3,
18052
+ my_well_being_dashboard: my_well_being_dashboard$3,
18053
+ understand_the_metrics_about_the_educators_wellness_and_environment: understand_the_metrics_about_the_educators_wellness_and_environment$3,
18054
+ understand_the_metrics_about_my_wellness_and_environment: understand_the_metrics_about_my_wellness_and_environment$3,
18055
+ engagement: engagement$3,
18056
+ total_1_1_conversations: total_1_1_conversations$3,
18057
+ educators_without_check_ins: educators_without_check_ins$3,
18058
+ educators_without_check_ins_not_br: educators_without_check_ins_not_br$3,
18059
+ educators_havent_completed_check_ins_in_the_last_30_days: educators_havent_completed_check_ins_in_the_last_30_days$3,
18060
+ you_can_send_individual_requests_or_bulk_reminders_to_all_educators: you_can_send_individual_requests_or_bulk_reminders_to_all_educators$3,
18061
+ department: department$3,
18062
+ last_check_in_normal: last_check_in_normal$3,
18063
+ request_check_in_wellbeing: request_check_in_wellbeing$3,
18064
+ send_bulk_reminder: send_bulk_reminder$3,
18065
+ physical: physical$3,
18066
+ self_care: self_care$3,
18067
+ relationships_well_being: relationships_well_being$3,
18068
+ self_care_well_being: self_care_well_being$3,
18069
+ environment: environment$3,
18070
+ environment_well_being: environment_well_being$3,
18071
+ intellectual: intellectual$3,
18072
+ the_data_presented_here_comes_from_the_check_ins: the_data_presented_here_comes_from_the_check_ins$3,
18073
+ charts_will_appear_once_over_20_of_educators: charts_will_appear_once_over_20_of_educators$3,
18074
+ total_1_1_requested: total_1_1_requested$3
17593
18075
  };
17594
18076
 
17595
18077
  var dashboard$4 = "仪表板";
@@ -17607,7 +18089,7 @@ var cancel$4 = "取消";
17607
18089
  var hey$4 = "您好";
17608
18090
  var readiness_to_learn$4 = "准备学习";
17609
18091
  var high_impact_learning_strategies$4 = "高效学习策略";
17610
- var check_in$3 = "签到";
18092
+ var check_in$4 = "签到";
17611
18093
  var check_ins$4 = "签到";
17612
18094
  var reflection$4 = "反思";
17613
18095
  var conferences$4 = "讨论会";
@@ -19766,13 +20248,73 @@ var save_note$4 = "Save note";
19766
20248
  var type_the_main_focus_of_this_session$4 = "Type the main focus of this session";
19767
20249
  var please_add_title_note$4 = "Please add note title";
19768
20250
  var notes_and_logs$4 = "Notes and Logs";
20251
+ var survey_portal$4 = "Survey Portal";
20252
+ var integrations$4 = "Integrations";
20253
+ var external_api$4 = "External Api";
20254
+ var teacher_well_being$4 = "Teacher Well-Being";
20255
+ var frequency_and_setup$4 = "Frequency and Setup";
20256
+ var well_being_dashboard$4 = "Well-Being Dashboard";
20257
+ var go_to_dashboard$4 = "Go to dashboard";
20258
+ 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.";
20259
+ 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.";
20260
+ 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.";
20261
+ var check_in_complete$4 = "Check-in Complete!";
20262
+ var schedule_a_conversation$4 = "Schedule a Conversation";
20263
+ var select_a_contact_to_speak_with$4 = "Select a contact to speak with";
20264
+ var what_would_you_like_to_discuss$4 = "What would you like to discuss?";
20265
+ 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...";
20266
+ var wellbeing_sections$4 = "Wellbeing Sections";
19769
20267
  var school_monthly_usage$4 = "School Monthly Usage";
19770
20268
  var location$5 = "Location";
19771
20269
  var edit_my_profile$4 = "Edit My Profile";
19772
20270
  var save_new_password$4 = "Save new password";
19773
20271
  var teacher_code$4 = "Teacher code";
20272
+ var my_well_being$4 = "My Well-being";
20273
+ var my_well_Being_check_in$4 = "My Well-Being Check-in";
20274
+ var my_sessions$4 = "My Sessions";
20275
+ var your_personal_data_will_not_be_shared_with_anyone_else$4 = "Your personal data will <strong>not be shared</strong> with anyone else";
20276
+ var school_leadership_will_only_see_aggregated_data$4 = "School leadership will only see aggregated data.";
20277
+ var save_filters$4 = "Save Filters";
20278
+ var clear_all_filters$4 = "Clear All Filters";
20279
+ var my_well_being_check_in$4 = "My Well-Being Check-in";
20280
+ var unless_you_specifically_choose_to_do_this$4 = "unless you specifically choose to do this.";
20281
+ var physical_well_being$4 = "Physical Well-Being";
20282
+ var emotional_well_being$4 = "Emotional Well-Being";
20283
+ var social_well_being_relationships$4 = "Social Well-Being - Relationships";
20284
+ var social_well_being_environment$4 = "Social Well-Being - Environment";
20285
+ var intellectual_well_being$4 = "Intellectual Well-Being";
20286
+ var colleague_or_staff_member_you_like_to_praise_or_thank$4 = "Colleague or staff member you'd like to praise or thank?";
20287
+ var wellbeing_finished$4 = "Wellbeing Finished";
20288
+ var take_a_moment_for_you$4 = "Take a Moment for You";
20289
+ 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$4 = "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.";
20290
+ var start_check_in_now$4 = "START CHECK-IN NOW";
20291
+ var i_ll_do_it_later$4 = "I'LL DO IT LATER";
19774
20292
  var number_of_conversations$4 = "Number of conversations";
19775
20293
  var number_of_expected_conversations_based_on_the_goal$4 = "Number of expected conversations based on the goal";
20294
+ var teachers_well_being_dashboard$4 = "Teachers' Well-Being Dashboard";
20295
+ var my_well_being_dashboard$4 = "My Well-Being Dashboard";
20296
+ var understand_the_metrics_about_the_educators_wellness_and_environment$4 = "Understand the metrics about the educator's wellness and environment";
20297
+ var understand_the_metrics_about_my_wellness_and_environment$4 = "Understand the metrics about my wellness and environment";
20298
+ var engagement$4 = "Engagement";
20299
+ var total_1_1_conversations$4 = "Total 1-1 Conversations";
20300
+ var educators_without_check_ins$4 = "Educators without<br/>check-ins";
20301
+ var educators_without_check_ins_not_br$4 = "Educators without Check-ins";
20302
+ var educators_havent_completed_check_ins_in_the_last_30_days$4 = "educators haven't completed check-ins in the last 30 days";
20303
+ var you_can_send_individual_requests_or_bulk_reminders_to_all_educators$4 = "You can send individual requests or bulk reminders to all educators";
20304
+ var department$4 = "Department";
20305
+ var last_check_in_normal$4 = "Last check-in";
20306
+ var request_check_in_wellbeing$4 = "Request check-in";
20307
+ var send_bulk_reminder$4 = "Send bulk reminder";
20308
+ var physical$4 = "Physical";
20309
+ var self_care$4 = "Self-care";
20310
+ var relationships_well_being$4 = "Relationships Well-Being";
20311
+ var self_care_well_being$4 = "Self-Care Well-Being";
20312
+ var environment$4 = "Environment";
20313
+ var environment_well_being$4 = "Environment Well-Being";
20314
+ var intellectual$4 = "Intellectual";
20315
+ var the_data_presented_here_comes_from_the_check_ins$4 = "The data presented here comes from the check-ins.";
20316
+ var charts_will_appear_once_over_20_of_educators$4 = "Charts will appear once over 20% of educators<br/>have completed their check-ins.";
20317
+ var total_1_1_requested$4 = "Total 1-1 Requested";
19776
20318
  var lang_zh = {
19777
20319
  dashboard: dashboard$4,
19778
20320
  user: user$4,
@@ -19790,7 +20332,7 @@ var lang_zh = {
19790
20332
  readiness_to_learn: readiness_to_learn$4,
19791
20333
  high_impact_learning_strategies: high_impact_learning_strategies$4,
19792
20334
  "1_to_1": "一对一",
19793
- check_in: check_in$3,
20335
+ check_in: check_in$4,
19794
20336
  check_ins: check_ins$4,
19795
20337
  reflection: reflection$4,
19796
20338
  conferences: conferences$4,
@@ -22002,13 +22544,74 @@ var lang_zh = {
22002
22544
  type_the_main_focus_of_this_session: type_the_main_focus_of_this_session$4,
22003
22545
  please_add_title_note: please_add_title_note$4,
22004
22546
  notes_and_logs: notes_and_logs$4,
22547
+ survey_portal: survey_portal$4,
22548
+ integrations: integrations$4,
22549
+ external_api: external_api$4,
22550
+ teacher_well_being: teacher_well_being$4,
22551
+ frequency_and_setup: frequency_and_setup$4,
22552
+ well_being_dashboard: well_being_dashboard$4,
22553
+ go_to_dashboard: go_to_dashboard$4,
22554
+ 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,
22555
+ 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,
22556
+ 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,
22557
+ check_in_complete: check_in_complete$4,
22558
+ schedule_a_conversation: schedule_a_conversation$4,
22559
+ select_a_contact_to_speak_with: select_a_contact_to_speak_with$4,
22560
+ what_would_you_like_to_discuss: what_would_you_like_to_discuss$4,
22561
+ 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,
22562
+ wellbeing_sections: wellbeing_sections$4,
22005
22563
  school_monthly_usage: school_monthly_usage$4,
22006
22564
  location: location$5,
22007
22565
  edit_my_profile: edit_my_profile$4,
22008
22566
  save_new_password: save_new_password$4,
22009
22567
  teacher_code: teacher_code$4,
22568
+ my_well_being: my_well_being$4,
22569
+ my_well_Being_check_in: my_well_Being_check_in$4,
22570
+ my_sessions: my_sessions$4,
22571
+ your_personal_data_will_not_be_shared_with_anyone_else: your_personal_data_will_not_be_shared_with_anyone_else$4,
22572
+ school_leadership_will_only_see_aggregated_data: school_leadership_will_only_see_aggregated_data$4,
22573
+ save_filters: save_filters$4,
22574
+ clear_all_filters: clear_all_filters$4,
22575
+ my_well_being_check_in: my_well_being_check_in$4,
22576
+ unless_you_specifically_choose_to_do_this: unless_you_specifically_choose_to_do_this$4,
22577
+ physical_well_being: physical_well_being$4,
22578
+ emotional_well_being: emotional_well_being$4,
22579
+ "self_care_&_balance": "Self-Care & Balance",
22580
+ social_well_being_relationships: social_well_being_relationships$4,
22581
+ social_well_being_environment: social_well_being_environment$4,
22582
+ intellectual_well_being: intellectual_well_being$4,
22583
+ colleague_or_staff_member_you_like_to_praise_or_thank: colleague_or_staff_member_you_like_to_praise_or_thank$4,
22584
+ wellbeing_finished: wellbeing_finished$4,
22585
+ take_a_moment_for_you: take_a_moment_for_you$4,
22586
+ 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$4,
22587
+ start_check_in_now: start_check_in_now$4,
22588
+ i_ll_do_it_later: i_ll_do_it_later$4,
22010
22589
  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
22590
+ number_of_expected_conversations_based_on_the_goal: number_of_expected_conversations_based_on_the_goal$4,
22591
+ teachers_well_being_dashboard: teachers_well_being_dashboard$4,
22592
+ my_well_being_dashboard: my_well_being_dashboard$4,
22593
+ understand_the_metrics_about_the_educators_wellness_and_environment: understand_the_metrics_about_the_educators_wellness_and_environment$4,
22594
+ understand_the_metrics_about_my_wellness_and_environment: understand_the_metrics_about_my_wellness_and_environment$4,
22595
+ engagement: engagement$4,
22596
+ total_1_1_conversations: total_1_1_conversations$4,
22597
+ educators_without_check_ins: educators_without_check_ins$4,
22598
+ educators_without_check_ins_not_br: educators_without_check_ins_not_br$4,
22599
+ educators_havent_completed_check_ins_in_the_last_30_days: educators_havent_completed_check_ins_in_the_last_30_days$4,
22600
+ you_can_send_individual_requests_or_bulk_reminders_to_all_educators: you_can_send_individual_requests_or_bulk_reminders_to_all_educators$4,
22601
+ department: department$4,
22602
+ last_check_in_normal: last_check_in_normal$4,
22603
+ request_check_in_wellbeing: request_check_in_wellbeing$4,
22604
+ send_bulk_reminder: send_bulk_reminder$4,
22605
+ physical: physical$4,
22606
+ self_care: self_care$4,
22607
+ relationships_well_being: relationships_well_being$4,
22608
+ self_care_well_being: self_care_well_being$4,
22609
+ environment: environment$4,
22610
+ environment_well_being: environment_well_being$4,
22611
+ intellectual: intellectual$4,
22612
+ the_data_presented_here_comes_from_the_check_ins: the_data_presented_here_comes_from_the_check_ins$4,
22613
+ charts_will_appear_once_over_20_of_educators: charts_will_appear_once_over_20_of_educators$4,
22614
+ total_1_1_requested: total_1_1_requested$4
22012
22615
  };
22013
22616
 
22014
22617
  var TINY_MCE_API_KEY = "htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk";
@@ -39597,6 +40200,7 @@ var showMenuBar = createAction("common/showMenuBar");
39597
40200
  var showFontSize = createAction("common/showFontSize");
39598
40201
  var setEnableIEP = createAction("common/setEnableIEP");
39599
40202
  var setEnableSurvey = createAction("common/setEnableSurvey");
40203
+ var setEnableWellBeing = createAction("common/setEnableWellBeing");
39600
40204
  var setEnableMarioAi = createAction("common/setEnableMarioAi");
39601
40205
  var setSandboxMode = createAction("common/setSandboxMode");
39602
40206
  var setConversationOneToOne = createAction("common/setConversationOneToOne");
@@ -41879,212 +42483,6 @@ var TheHeaderDropdown = function TheHeaderDropdown(_ref) {
41879
42483
  })), t("log_out")))));
41880
42484
  };
41881
42485
 
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
-
42088
42486
  var TITLE$3 = "Not found";
42089
42487
 
42090
42488
  var NotFound = function NotFound() {
@@ -42142,258 +42540,6 @@ var TheContent = function TheContent(_ref) {
42142
42540
 
42143
42541
  var TheContent$1 = React.memo(TheContent);
42144
42542
 
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
-
42397
42543
  var buttonTextStyle = {
42398
42544
  fontWeight: 500
42399
42545
  };
@@ -51740,6 +51886,34 @@ var UserDetail = function UserDetail() {
51740
51886
  });
51741
51887
  };
51742
51888
 
51889
+ var loadingStyle = {
51890
+ minWidth: "100vw",
51891
+ minHeight: "100vh",
51892
+ position: "fixed",
51893
+ top: 0,
51894
+ left: 0,
51895
+ zIndex: 999999999,
51896
+ backgroundColor: "rgba(0, 0, 0, 0.4)",
51897
+ display: "flex",
51898
+ justifyContent: "center",
51899
+ alignItems: "center"
51900
+ };
51901
+
51902
+ var Loading = function Loading() {
51903
+ var isLoading = useSelector(function (state) {
51904
+ return state.common.isLoading;
51905
+ });
51906
+ localStorage.setItem("LAST_TIME_REQUETST", moment().utc().format("YYYY-MM-DD HH:mm:ss"));
51907
+ return isLoading ? React.createElement("div", {
51908
+ style: loadingStyle
51909
+ }, React.createElement("div", {
51910
+ className: "spinner-border text-secondary",
51911
+ role: "status"
51912
+ }, React.createElement("span", {
51913
+ className: "sr-only"
51914
+ }, "Loading..."))) : null;
51915
+ };
51916
+
51743
51917
  var ScrollToTop = function ScrollToTop() {
51744
51918
  var _useLocation = useLocation(),
51745
51919
  pathname = _useLocation.pathname;
@@ -53835,6 +54009,8 @@ var commonReducer = createReducer(initialState, function (builder) {
53835
54009
  state.isEnableIEP = action.payload;
53836
54010
  }).addCase(setEnableSurvey, function (state, action) {
53837
54011
  state.isEnableSurvey = action.payload;
54012
+ }).addCase(setEnableWellBeing, function (state, action) {
54013
+ state.isEnableWellBeing = action.payload;
53838
54014
  }).addCase(setEnableMarioAi, function (state, action) {
53839
54015
  state.isEnableMarioAi = action.payload;
53840
54016
  }).addCase(setConversationOneToOne, function (state, action) {
@@ -54763,6 +54939,32 @@ var store = configureStore({
54763
54939
  }
54764
54940
  });
54765
54941
 
54942
+ var firstCheckToken = function firstCheckToken() {
54943
+ return Promise.resolve(_catch(function () {
54944
+ var token = getAccessToken();
54945
+ return token ? Promise.resolve(checkToken(token)).then(function (tokenStatus) {
54946
+ return tokenStatus.data ? true : false;
54947
+ }) : false;
54948
+ }, function () {
54949
+ return false;
54950
+ }));
54951
+ };
54952
+
54953
+ var canAccess = function canAccess(userRoles, componentRoles) {
54954
+ if (!Array.isArray(userRoles)) {
54955
+ return false;
54956
+ }
54957
+
54958
+ if (Array.isArray(componentRoles)) {
54959
+ var intersects = userRoles.filter(function (i) {
54960
+ return componentRoles.includes(i);
54961
+ });
54962
+ return intersects.length > 0;
54963
+ }
54964
+
54965
+ return true;
54966
+ };
54967
+
54766
54968
  var isInViewport = function isInViewport(el) {
54767
54969
  var rect = el === null || el === void 0 ? void 0 : el.getBoundingClientRect();
54768
54970
  return rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth);
@@ -54796,7 +54998,411 @@ var generateRandomString = (function () {
54796
54998
  return (Math.random() + 1).toString(36).substring(7);
54797
54999
  });
54798
55000
 
55001
+ var apiGetLanguage = function apiGetLanguage() {
55002
+ return api.get(BASE_URL + "/api/language");
55003
+ };
55004
+
55005
+ var apiUpdateLanguage = function apiUpdateLanguage(lang) {
55006
+ return api.put(BASE_URL + "/api/language?lang=" + lang);
55007
+ };
55008
+
55009
+ var LANGUAGE_SYSTEM = "LANGUAGE_SYSTEM";
55010
+
55011
+ var useLanguages = function useLanguages() {
55012
+ var dispatch = useDispatch();
55013
+
55014
+ var _useTranslation = useTranslation(),
55015
+ i18n = _useTranslation.i18n;
55016
+
55017
+ var language = useSelector(function (state) {
55018
+ return state.common.language;
55019
+ });
55020
+ var defaultLanguage = getCookieValue(LANGUAGE_SYSTEM) != null ? getCookieValue(LANGUAGE_SYSTEM) : DEFAULT_LANGUAGE_CODE;
55021
+
55022
+ var _useState = useState([]),
55023
+ languageList = _useState[0],
55024
+ setLanguageList = _useState[1];
55025
+
55026
+ var _useState2 = useState(false),
55027
+ dropdownOpen = _useState2[0],
55028
+ setDropdownOpen = _useState2[1];
55029
+
55030
+ var _useState3 = useState(defaultLanguage),
55031
+ currentLang = _useState3[0],
55032
+ setCurrentLang = _useState3[1];
55033
+
55034
+ var toggle = function toggle() {
55035
+ return setDropdownOpen(function (prevState) {
55036
+ return !prevState;
55037
+ });
55038
+ };
55039
+
55040
+ var changeLanguageApp = function changeLanguageApp(lang) {
55041
+ try {
55042
+ var _temp3 = function _temp3() {
55043
+ dispatch(setLoading(false));
55044
+ };
55045
+
55046
+ dispatch(setLoading(true));
55047
+
55048
+ var _temp4 = _catch(function () {
55049
+ return Promise.resolve(apiUpdateLanguage(lang)).then(function () {
55050
+ i18n.changeLanguage(lang);
55051
+ setCurrentLang(lang);
55052
+ dispatch(setLanguage(lang));
55053
+ });
55054
+ }, function (err) {
55055
+ var _err$response, _err$response$data;
55056
+
55057
+ dispatch(setAlert({
55058
+ type: "danger",
55059
+ 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
55060
+ }));
55061
+ });
55062
+
55063
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
55064
+ } catch (e) {
55065
+ return Promise.reject(e);
55066
+ }
55067
+ };
55068
+
55069
+ var getListLanguage = function getListLanguage() {
55070
+ try {
55071
+ var _temp6 = _catch(function () {
55072
+ return Promise.resolve(apiGetLanguage()).then(function (res) {
55073
+ setLanguageList(res.data);
55074
+ });
55075
+ }, function (err) {
55076
+ var _err$response2, _err$response2$data;
55077
+
55078
+ dispatch(setAlert({
55079
+ type: "danger",
55080
+ 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
55081
+ }));
55082
+ });
55083
+
55084
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
55085
+ } catch (e) {
55086
+ return Promise.reject(e);
55087
+ }
55088
+ };
55089
+
55090
+ useEffect(function () {
55091
+ defaultLanguage != language && changeLanguageApp(defaultLanguage);
55092
+ getListLanguage();
55093
+ }, []);
55094
+ return {
55095
+ languageList: languageList,
55096
+ toggle: toggle,
55097
+ dropdownOpen: dropdownOpen,
55098
+ currentLang: currentLang,
55099
+ changeLanguageApp: changeLanguageApp,
55100
+ setCurrentLang: setCurrentLang
55101
+ };
55102
+ };
55103
+
55104
+ var TheLanguageDropdown = function TheLanguageDropdown() {
55105
+ var _useLanguages = useLanguages(),
55106
+ languageList = _useLanguages.languageList,
55107
+ toggle = _useLanguages.toggle,
55108
+ dropdownOpen = _useLanguages.dropdownOpen,
55109
+ currentLang = _useLanguages.currentLang,
55110
+ changeLanguageApp = _useLanguages.changeLanguageApp;
55111
+
55112
+ var currentLanguage = useMemo(function () {
55113
+ var current = languageList.find(function (i) {
55114
+ return i.code === currentLang;
55115
+ });
55116
+ if (!current) return null;
55117
+ return React.createElement(React.Fragment, null, React.createElement("img", {
55118
+ className: "mr-2 " + styles['dropdown-menu-flag'],
55119
+ src: "" + getStaticFileUrl(current.image)
55120
+ }), " ", current.name);
55121
+ }, [currentLang, languageList]);
55122
+ return React.createElement(Dropdown, {
55123
+ isOpen: dropdownOpen,
55124
+ toggle: toggle,
55125
+ className: "" + styles["dropdown-menu"]
55126
+ }, React.createElement(DropdownToggle, {
55127
+ className: styles["header-avatar"] + " d-flex align-items-center"
55128
+ }, React.createElement("span", {
55129
+ style: {
55130
+ color: "#000",
55131
+ textTransform: "capitalize",
55132
+ display: 'flex',
55133
+ alignItems: 'center'
55134
+ }
55135
+ }, currentLanguage, React.createElement(BsChevronDown, {
55136
+ className: "ml-2",
55137
+ style: {
55138
+ fontSize: '10px'
55139
+ }
55140
+ }))), React.createElement(DropdownMenu, {
55141
+ className: styles["dropdown-content-language"]
55142
+ }, !!languageList && languageList.length > 0 && languageList.map(function (lang, index) {
55143
+ return React.createElement(DropdownItem, {
55144
+ key: lang.code,
55145
+ className: styles["dropdown-change"] + " px-0 py-0 " + (index === languageList.length - 1 ? "pb-2" : "pt-2"),
55146
+ onClick: function onClick() {
55147
+ return changeLanguageApp(lang.code);
55148
+ }
55149
+ }, React.createElement("div", {
55150
+ className: styles["dropdown-item-language"] + " " + styles["item-logout"] + " " + (currentLang == lang.code ? styles['dropdown-item-language-active'] : "") + " d-flex align-items-center w-100"
55151
+ }, React.createElement("span", {
55152
+ className: "mr-2 d-flex hover-opacity"
55153
+ }, React.createElement("img", {
55154
+ style: {
55155
+ width: "30px",
55156
+ height: "25px",
55157
+ borderRadius: "5px"
55158
+ },
55159
+ src: getStaticFileUrl(lang.image)
55160
+ })), lang.name));
55161
+ })));
55162
+ };
55163
+
55164
+ var TheHeader = function TheHeader(_ref) {
55165
+ var onToggleModel = _ref.onToggleModel;
55166
+ var dispatch = useDispatch();
55167
+ var sidebarShow = useSelector(function (state) {
55168
+ return state.common.sidebarShow;
55169
+ });
55170
+
55171
+ var _useTranslation = useTranslation(),
55172
+ t = _useTranslation.t;
55173
+
55174
+ var toggleSidebarMobile = function toggleSidebarMobile() {
55175
+ var val = [false, "responsive"].includes(sidebarShow) ? true : "responsive";
55176
+ dispatch(setSidebar(val));
55177
+ };
55178
+
55179
+ var isDistrict = window.location.host.includes("-district");
55180
+ return React.createElement(CHeader, {
55181
+ withSubheader: true,
55182
+ className: "d-flex align-items-center justify-content-end"
55183
+ }, React.createElement(CToggler, {
55184
+ inHeader: true,
55185
+ className: "ml-md-3 d-lg-none",
55186
+ onClick: toggleSidebarMobile
55187
+ }), React.createElement(CHeaderBrand, {
55188
+ className: "mx-auto flex-grow-1 d-lg-none",
55189
+ to: "/"
55190
+ }, React.createElement("img", {
55191
+ src: getStaticFileUrl(Images.LOGO_HEADER),
55192
+ className: styles["header-logo"]
55193
+ })), React.createElement(CHeaderNav, {
55194
+ className: "pr-3"
55195
+ }, React.createElement(TheLanguageDropdown, null), React.createElement("a", {
55196
+ className: "mr-3",
55197
+ style: {
55198
+ color: '#000'
55199
+ },
55200
+ href: '/privacy-policy',
55201
+ target: "blank"
55202
+ }, t("privacy_policy")), !isDistrict && React.createElement(NotificationButton, null), React.createElement(TheHeaderDropdown, {
55203
+ onToggleModel: onToggleModel
55204
+ })));
55205
+ };
55206
+
55207
+ var ModelSelectRole = function ModelSelectRole(_ref) {
55208
+ var _handleUserRole;
55209
+
55210
+ var open = _ref.open,
55211
+ onToggleModel = _ref.onToggleModel;
55212
+ var dispatch = useDispatch();
55213
+
55214
+ var _useTranslation = useTranslation(),
55215
+ t = _useTranslation.t;
55216
+
55217
+ var history = useHistory();
55218
+ var pathname = window.location.pathname;
55219
+ var user = useSelector(function (state) {
55220
+ return state.common.user;
55221
+ });
55222
+ var roles = user === null || user === void 0 ? void 0 : user.roles;
55223
+
55224
+ var handleSelectUserRoles = function handleSelectUserRoles(roles) {
55225
+ dispatch(setLoading(true));
55226
+ var roleSelect = roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles;
55227
+ dispatch(setUser(_extends({}, user, {
55228
+ roles: roleSelect
55229
+ })));
55230
+ localStorage.setItem("ROLES", roleSelect.toString());
55231
+ onToggleModel();
55232
+
55233
+ if (roles.includes("Parent")) {
55234
+ history.push("/parent");
55235
+ } else if (roles.includes("Admin")) {
55236
+ history.push("/admin/home");
55237
+ } else {
55238
+ pathname !== "/home" ? history.push("/home") : window.location.reload();
55239
+ }
55240
+ };
55241
+
55242
+ return React.createElement(Modal, {
55243
+ isOpen: open,
55244
+ toggle: function toggle() {
55245
+ return onToggleModel();
55246
+ },
55247
+ className: "" + styles["model-switch-roles"],
55248
+ centered: true
55249
+ }, React.createElement("p", {
55250
+ className: "" + styles["title"]
55251
+ }, 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) {
55252
+ return React.createElement("p", {
55253
+ key: r,
55254
+ 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" : ""],
55255
+ onClick: function onClick() {
55256
+ return handleSelectUserRoles([r]);
55257
+ }
55258
+ }, r == "SecondaryTeacher" ? "Support Teacher" : r);
55259
+ })));
55260
+ };
55261
+
55262
+ var TheLayout = function TheLayout(_ref) {
55263
+ var routes = _ref.routes,
55264
+ navigation = _ref.navigation;
55265
+ var history = useHistory();
55266
+ var dispatch = useDispatch();
55267
+ var user = useSelector(function (state) {
55268
+ return state.common.user;
55269
+ });
55270
+ var language = useSelector(function (state) {
55271
+ return state.common.language;
55272
+ });
55273
+
55274
+ var _useState = useState(false),
55275
+ openModelSelectRole = _useState[0],
55276
+ setOpenModelSelectRole = _useState[1];
55277
+
55278
+ var _useTranslation = useTranslation(),
55279
+ t = _useTranslation.t;
55280
+
55281
+ var location = useLocation();
55282
+ var isNotification = location.pathname.includes("notifications");
55283
+ var isDistrict = window.location.host.includes("-district");
55284
+
55285
+ var handleToggleModel = function handleToggleModel() {
55286
+ setOpenModelSelectRole(!openModelSelectRole);
55287
+ };
55288
+
55289
+ var authRoutes = useMemo(function () {
55290
+ return routes.filter(function (route) {
55291
+ return canAccess(user === null || user === void 0 ? void 0 : user.roles, route.roles);
55292
+ }).filter(function (route) {
55293
+ return !!route.isDistrict === isDistrict;
55294
+ });
55295
+ }, [user, language]);
55296
+ var authNavigations = useMemo(function () {
55297
+ return navigation.map(function (item) {
55298
+ var _item$_children, _item$_children2;
55299
+
55300
+ return _extends({}, item, {
55301
+ name: t(item.name),
55302
+ _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) {
55303
+ return _extends({}, x, {
55304
+ name: t(x.name)
55305
+ });
55306
+ }) : undefined
55307
+ });
55308
+ }).filter(function (nav) {
55309
+ return canAccess(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
55310
+ }).filter(function (nav) {
55311
+ return !!nav.isDistrict === isDistrict;
55312
+ });
55313
+ }, [user, language]);
55314
+
55315
+ var getInformationSetting = function getInformationSetting() {
55316
+ try {
55317
+ var _temp2 = _catch(function () {
55318
+ return Promise.resolve(getSchoolSettings()).then(function (res) {
55319
+ dispatch(setSandboxMode(res.data.isSandboxMode));
55320
+ });
55321
+ }, function (err) {
55322
+ console.error(err);
55323
+ });
55324
+
55325
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
55326
+ } catch (e) {
55327
+ return Promise.reject(e);
55328
+ }
55329
+ };
55330
+
55331
+ useEffect(function () {
55332
+ checkAuthentication();
55333
+ }, []);
55334
+ useEffect(function () {
55335
+ getInformationSetting();
55336
+ }, [location.pathname]);
55337
+
55338
+ var checkAuthentication = function checkAuthentication() {
55339
+ try {
55340
+ var _temp4 = _catch(function () {
55341
+ return Promise.resolve(firstCheckToken()).then(function (tokenStatus) {
55342
+ tokenStatus ? loadInfo() : resetAuth();
55343
+ });
55344
+ }, function () {
55345
+ resetAuth();
55346
+ });
55347
+
55348
+ return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
55349
+ } catch (e) {
55350
+ return Promise.reject(e);
55351
+ }
55352
+ };
55353
+
55354
+ var loadInfo = function loadInfo() {
55355
+ try {
55356
+ var _temp6 = _catch(function () {
55357
+ return Promise.resolve(getInfo()).then(function (info) {
55358
+ var _info$data, _info$data$roles;
55359
+
55360
+ 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"))) {
55361
+ resetAuth();
55362
+ }
55363
+
55364
+ dispatch(setUser(info.data));
55365
+ });
55366
+ }, function () {
55367
+ resetAuth();
55368
+ });
55369
+
55370
+ return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(function () {}) : void 0);
55371
+ } catch (e) {
55372
+ return Promise.reject(e);
55373
+ }
55374
+ };
55375
+
55376
+ var resetAuth = function resetAuth() {
55377
+ localStorage.removeItem(ACCESS_TOKEN);
55378
+ sessionStorage.removeItem(ACCESS_TOKEN);
55379
+ localStorage.removeItem("ROLES");
55380
+ history.push("/");
55381
+ };
55382
+
55383
+ if (!user) {
55384
+ return React.createElement(Loading, null);
55385
+ }
55386
+
55387
+ return React.createElement("div", {
55388
+ className: "c-app c-default-layout"
55389
+ }, !isNotification && React.createElement(TheSidebar, {
55390
+ navigation: authNavigations
55391
+ }), React.createElement("div", {
55392
+ className: "c-wrapper"
55393
+ }, !isNotification && React.createElement(TheHeader, {
55394
+ onToggleModel: handleToggleModel
55395
+ }), React.createElement("div", {
55396
+ className: "c-body bg-white"
55397
+ }, React.createElement(TheContent$1, {
55398
+ routes: authRoutes
55399
+ }))), React.createElement(ModelSelectRole, {
55400
+ open: openModelSelectRole,
55401
+ onToggleModel: handleToggleModel
55402
+ }));
55403
+ };
55404
+
54799
55405
  var amplitudeClient = amplitude;
54800
55406
 
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 };
55407
+ 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, setEnableWellBeing, 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 };
54802
55408
  //# sourceMappingURL=index.modern.js.map