mario-teacher-student-client 2.1.98-admin → 2.1.99-admin

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.
@@ -1,7 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const ICON_NAV: {
3
- name: string;
4
- icon: JSX.Element;
5
- }[];
6
- declare const HeaderSideBar: ({ children, navigations }: any) => JSX.Element;
2
+ declare const HeaderSideBar: ({ children, navigations, onToggleModel }: any) => JSX.Element;
7
3
  export default HeaderSideBar;
package/dist/index.css CHANGED
@@ -796,6 +796,32 @@ p._1YLGi {
796
796
  background-color: #ff2800 !important;
797
797
  color: white; }
798
798
 
799
+ ._1KcY7 {
800
+ padding: 10px 75px;
801
+ border-top: 1px solid #dee2e6;
802
+ cursor: pointer;
803
+ font-size: 20px;
804
+ text-align: center;
805
+ margin-bottom: 0;
806
+ transition: background-color 0.5s ease-out; }
807
+
808
+ ._1KcY7:hover {
809
+ background: #156DA1;
810
+ color: #ffff; }
811
+
812
+ ._dOVso {
813
+ background: #156DA1;
814
+ color: #ffff; }
815
+
816
+ ._3ZqxI > div {
817
+ border-radius: 7px; }
818
+
819
+ ._3ZqxI ._g-p72 {
820
+ font-weight: 500;
821
+ line-height: 1.6;
822
+ font-size: 20px;
823
+ padding: 10px 20px; }
824
+
799
825
  @font-face {
800
826
  font-family: "Lato-Regular";
801
827
  src: url("/fonts/Lato-Regular.ttf");
package/dist/index.js CHANGED
@@ -423,7 +423,7 @@ var getStudentSimpleProfile = function getStudentSimpleProfile() {
423
423
  return marioCore.api.get("" + STUDENT_PROFILE);
424
424
  };
425
425
 
426
- var styleIndex = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","box-title-question":"_1DlZO","tooltip-question":"_29Hwk","font-description":"_2pyf5","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","font-large":"_3Sup6","font-small":"_2JnMg","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","conference-learning-strategories":"_3o_lQ","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","title":"_g-p72","description":"_2U60d","form-title":"_qDlsm","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg","accomondation-content":"_2qhHZ","accomondation-content-title-box":"_XTfSF","accomondation-content-title":"_1Z_hd","accomondation-body":"_1DtTP","accomondation-content-function":"_3fJXr","function-edit":"_368JR","function-delete":"_2I-ej","accomondation-block-content":"_1fpsj","accomondation-block-note":"_2INhO","accomondation-content-description":"_2BEap","accomondation-content-status":"_UdBci","content-function-mobile":"_3gaSR","card-box":"_3Flx1","card-top":"_3Mi_n","card-top-title":"_21QGx","card-top-right":"_2eeiS","card-top-switch":"_9VWFe","card-view":"_Jwjv5","card-content":"_3AVYm","block-circle":"_3o7Sh","block-item-3":"_3JeRP","item-circle":"_2wunA","block-item-4":"_3P83R","icon-btn":"_3xYAk","slider-avatar":"_2wH1X","btn-delete":"_z69mr","send-icon":"_3oH01","label-single-choice":"_3oSdM","radio-choice":"_2RwcR","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","box-notification":"_iDxHF","notification-1":"_2ZvNu","notification-2":"_2zBWP","notification-3":"_1T24i","notification-4":"_2obEM","notification-5":"_20aq-","notification-6":"_RWFl1","box-item":"_Wtc0p","notification-7":"_3rw4Y","notification-assistant-1":"_1ybh1","notification-assistant-2":"_2o31Q","notification-assistant-3":"_11hn9","notification-assistant-4":"_2sPVk","notification-assistant-5":"_3ln0K","notification-assistant-6":"_3dsZQ","notification-student-1":"_1XdPP","notification-student-2":"_1I9Dc","notification-student-3":"_3DwX3","notification-student-4":"_2TKDh","notification-student-5":"_14nq1","notification-student-6":"_1zCX0","btn-got-it":"_uwWqF","btn-choice":"_hPL_o","yes-active":"_2AK7h","no-active":"_1UouU"};
426
+ var styleIndex = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","box-title-question":"_1DlZO","tooltip-question":"_29Hwk","font-description":"_2pyf5","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","font-large":"_3Sup6","font-small":"_2JnMg","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","conference-learning-strategories":"_3o_lQ","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","title":"_g-p72","description":"_2U60d","form-title":"_qDlsm","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg","accomondation-content":"_2qhHZ","accomondation-content-title-box":"_XTfSF","accomondation-content-title":"_1Z_hd","accomondation-body":"_1DtTP","accomondation-content-function":"_3fJXr","function-edit":"_368JR","function-delete":"_2I-ej","accomondation-block-content":"_1fpsj","accomondation-block-note":"_2INhO","accomondation-content-description":"_2BEap","accomondation-content-status":"_UdBci","content-function-mobile":"_3gaSR","card-box":"_3Flx1","card-top":"_3Mi_n","card-top-title":"_21QGx","card-top-right":"_2eeiS","card-top-switch":"_9VWFe","card-view":"_Jwjv5","card-content":"_3AVYm","block-circle":"_3o7Sh","block-item-3":"_3JeRP","item-circle":"_2wunA","block-item-4":"_3P83R","icon-btn":"_3xYAk","slider-avatar":"_2wH1X","btn-delete":"_z69mr","send-icon":"_3oH01","label-single-choice":"_3oSdM","radio-choice":"_2RwcR","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","box-notification":"_iDxHF","notification-1":"_2ZvNu","notification-2":"_2zBWP","notification-3":"_1T24i","notification-4":"_2obEM","notification-5":"_20aq-","notification-6":"_RWFl1","box-item":"_Wtc0p","notification-7":"_3rw4Y","notification-assistant-1":"_1ybh1","notification-assistant-2":"_2o31Q","notification-assistant-3":"_11hn9","notification-assistant-4":"_2sPVk","notification-assistant-5":"_3ln0K","notification-assistant-6":"_3dsZQ","notification-student-1":"_1XdPP","notification-student-2":"_1I9Dc","notification-student-3":"_3DwX3","notification-student-4":"_2TKDh","notification-student-5":"_14nq1","notification-student-6":"_1zCX0","btn-got-it":"_uwWqF","btn-choice":"_hPL_o","yes-active":"_2AK7h","no-active":"_1UouU","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI"};
427
427
 
428
428
  function toVal(mix) {
429
429
  var k, y, str='';
@@ -686,6 +686,19 @@ var STEP_PROFILE = {
686
686
  message: "Edit your personal settings."
687
687
  };
688
688
 
689
+ var prioritizedRoles = ["Admin", "Teacher", "Assistant", "EduTeacher", "Student", "Parent"];
690
+ var handleUserRole = function handleUserRole(userRoles) {
691
+ if (userRoles.includes("Teacher") && userRoles.includes("Assistant")) {
692
+ var roles = userRoles.filter(function (r) {
693
+ return r !== "Teacher" && r !== "Assistant";
694
+ });
695
+ roles.push("Teacher/Assistant");
696
+ return roles;
697
+ }
698
+
699
+ return userRoles;
700
+ };
701
+
689
702
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
690
703
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
691
704
  var drawerWidth = 280;
@@ -699,53 +712,13 @@ var defaultFontSize = 16;
699
712
  var defaultFontSmall = 12;
700
713
  var defaultFontLarge = 20;
701
714
  var LOGO = "/images/logo.svg";
702
- var domainName$1 = window.location.hostname;
703
- var isCheckDomainRubyoung$1 = domainName$1.includes('rubyyoung');
704
- var ICON_NAV = [{
705
- name: "Home",
706
- icon: React__default.createElement(HomeIcon, null)
707
- }, {
708
- name: "My Students",
709
- icon: React__default.createElement(StudentsIcon, null)
710
- }, {
711
- name: isCheckDomainRubyoung$1 ? "My Reflections" : "My Class Reflections",
712
- icon: React__default.createElement(SchoolIcon, null)
713
- }, {
714
- name: "My 1-to-1",
715
- icon: React__default.createElement(GroupIcon, null)
716
- }, {
717
- name: isCheckDomainRubyoung$1 ? "My Reflection" : "My Class Reflection",
718
- icon: React__default.createElement(CommentIcon, null)
719
- }, {
720
- name: "My Conferences",
721
- icon: React__default.createElement("i", {
722
- className: "fas fa-chalkboard-teacher"
723
- })
724
- }, {
725
- name: "My Learning Plan",
726
- icon: React__default.createElement(CommentIcon, null)
727
- }, {
728
- name: "Learning Plan",
729
- icon: React__default.createElement(CommentIcon, null)
730
- }, {
731
- name: "My Notes",
732
- icon: React__default.createElement(NotesIcon, null)
733
- }, {
734
- name: "Class Schedule",
735
- icon: React__default.createElement(DateRangeIcon, null)
736
- }, {
737
- name: "Training",
738
- icon: React__default.createElement(LinkIcon, null)
739
- }, {
740
- name: "Settings",
741
- icon: React__default.createElement(SettingsIcon, null)
742
- }];
743
715
 
744
716
  var HeaderSideBar = function HeaderSideBar(_ref) {
745
717
  var _currentUrl$split, _clsx;
746
718
 
747
719
  var children = _ref.children,
748
- navigations = _ref.navigations;
720
+ navigations = _ref.navigations,
721
+ onToggleModel = _ref.onToggleModel;
749
722
  var history = reactRouterDom.useHistory();
750
723
  var location = reactRouterDom.useLocation();
751
724
  var dispatch = reactRedux.useDispatch();
@@ -966,7 +939,10 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
966
939
  name: "My Students",
967
940
  icon: React__default.createElement(StudentsIcon, null)
968
941
  }, {
969
- name: isCheckDomainRubyoung$1 ? "My Reflections" : "My Class Reflections",
942
+ name: "My Reflections",
943
+ icon: React__default.createElement(SchoolIcon, null)
944
+ }, {
945
+ name: "My Class Reflections",
970
946
  icon: React__default.createElement(SchoolIcon, null)
971
947
  }, {
972
948
  name: "My 1-to-1",
@@ -1148,7 +1124,12 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
1148
1124
  onClose: handleClose
1149
1125
  }, !!isTeacher && React__default.createElement(core.MenuItem, {
1150
1126
  onClick: openProfile
1151
- }, "Profile"), React__default.createElement(core.MenuItem, {
1127
+ }, "Profile"), handleUserRole(user === null || user === void 0 ? void 0 : user.userRoles).length > 1 && React__default.createElement(core.MenuItem, {
1128
+ onClick: function onClick() {
1129
+ onToggleModel === null || onToggleModel === void 0 ? void 0 : onToggleModel();
1130
+ handleClose();
1131
+ }
1132
+ }, "Role change"), React__default.createElement(core.MenuItem, {
1152
1133
  onClick: signOut
1153
1134
  }, "Logout")))), screenWidth > 600 && isOpenSideBar ? React__default.createElement("div", {
1154
1135
  className: classes.positionBox
@@ -1424,6 +1405,48 @@ var useStyles = styles$O.makeStyles(function (theme) {
1424
1405
  };
1425
1406
  });
1426
1407
 
1408
+ var ModelSelectRole = function ModelSelectRole(_ref) {
1409
+ var open = _ref.open,
1410
+ onToggleModel = _ref.onToggleModel;
1411
+ var dispatch = reactRedux.useDispatch();
1412
+ var history = reactRouterDom.useHistory();
1413
+ var user = reactRedux.useSelector(function (state) {
1414
+ return state.common.user;
1415
+ });
1416
+ var roles = user === null || user === void 0 ? void 0 : user.roles;
1417
+
1418
+ var handleSelectUserRoles = function handleSelectUserRoles(roles) {
1419
+ dispatch(marioCore.setUser(_extends({}, user, {
1420
+ roles: roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles
1421
+ })));
1422
+ onToggleModel();
1423
+
1424
+ if (roles.includes("Parent")) {
1425
+ history.push("/parent");
1426
+ } else {
1427
+ history.push("/home");
1428
+ }
1429
+ };
1430
+
1431
+ return React__default.createElement(core.Dialog, {
1432
+ open: open,
1433
+ onClose: function onClose() {
1434
+ return onToggleModel();
1435
+ },
1436
+ className: "" + styleIndex["model-switch-roles"]
1437
+ }, React__default.createElement(core.Typography, {
1438
+ className: "" + styleIndex["title"]
1439
+ }, "Continue as:"), React__default.createElement("div", null, handleUserRole(user === null || user === void 0 ? void 0 : user.userRoles).map(function (r) {
1440
+ return React__default.createElement("p", {
1441
+ key: r,
1442
+ className: styleIndex["item-select-role"] + " " + styleIndex[roles.includes("Teacher") && roles.includes("Assistant") && r === "Teacher/Assistant" || roles.includes(r) ? "item-role-active" : ""],
1443
+ onClick: function onClick() {
1444
+ return handleSelectUserRoles([r]);
1445
+ }
1446
+ }, r);
1447
+ })));
1448
+ };
1449
+
1427
1450
  var _excluded = ["event", "duration_since"];
1428
1451
  var DATEDEFAULT = new Date("0001-1-1");
1429
1452
 
@@ -1443,13 +1466,17 @@ var MainLayout = function MainLayout(_ref) {
1443
1466
  isCheckDone = _useState[0],
1444
1467
  setIsCheckDone = _useState[1];
1445
1468
 
1446
- var _useState2 = React.useState(DATEDEFAULT),
1447
- curTime = _useState2[0],
1448
- setCurTime = _useState2[1];
1469
+ var _useState2 = React.useState(false),
1470
+ openModelSelectRole = _useState2[0],
1471
+ setOpenModelSelectRole = _useState2[1];
1449
1472
 
1450
- var _useState3 = React.useState(""),
1451
- pathName = _useState3[0],
1452
- setPathName = _useState3[1];
1473
+ var _useState3 = React.useState(DATEDEFAULT),
1474
+ curTime = _useState3[0],
1475
+ setCurTime = _useState3[1];
1476
+
1477
+ var _useState4 = React.useState(""),
1478
+ pathName = _useState4[0],
1479
+ setPathName = _useState4[1];
1453
1480
 
1454
1481
  var location = reactRouterDom.useLocation();
1455
1482
  var authRoutes = React.useMemo(function () {
@@ -1480,6 +1507,10 @@ var MainLayout = function MainLayout(_ref) {
1480
1507
  marioCore.amplitudeClient.logEvent(event, _extends({}, other));
1481
1508
  };
1482
1509
 
1510
+ var handleToggleModel = function handleToggleModel() {
1511
+ setOpenModelSelectRole(!openModelSelectRole);
1512
+ };
1513
+
1483
1514
  React.useEffect(function () {
1484
1515
  if (amplitude !== null && amplitude !== void 0 && amplitude.event) {
1485
1516
  handleLogEvent();
@@ -1558,22 +1589,41 @@ var MainLayout = function MainLayout(_ref) {
1558
1589
  }
1559
1590
  };
1560
1591
 
1561
- var loadInfo = function loadInfo() {
1592
+ var loadInfo = React.useCallback(function () {
1562
1593
  try {
1563
1594
  var _temp6 = _catch(function () {
1564
1595
  return Promise.resolve(marioCore.getInfo()).then(function (info) {
1565
- var _info$data;
1566
-
1567
1596
  function _temp4() {
1568
- dispatch(marioCore.setUser(userData));
1597
+ dispatch(marioCore.setUser(_extends({}, user, userData, {
1598
+ email: userData.email,
1599
+ roles: roles,
1600
+ userRoles: userData.roles
1601
+ })));
1569
1602
  }
1570
1603
 
1571
1604
  if (!info) {
1572
1605
  resetAuth();
1573
1606
  }
1574
1607
 
1575
- var roles = (_info$data = info.data) === null || _info$data === void 0 ? void 0 : _info$data.roles;
1608
+ var roles = [];
1576
1609
  var userData = info.data;
1610
+
1611
+ for (var _iterator = _createForOfIteratorHelperLoose(prioritizedRoles), _step; !(_step = _iterator()).done;) {
1612
+ var _userData$roles;
1613
+
1614
+ var r = _step.value;
1615
+
1616
+ if (userData !== null && userData !== void 0 && (_userData$roles = userData.roles) !== null && _userData$roles !== void 0 && _userData$roles.includes(r)) {
1617
+ if (r.includes("Teacher") && userData !== null && userData !== void 0 && userData.roles.includes("Assistant")) {
1618
+ roles = ["Teacher", "Assistant"];
1619
+ } else {
1620
+ roles = [r];
1621
+ }
1622
+
1623
+ return;
1624
+ }
1625
+ }
1626
+
1577
1627
  var isTeacher = roles.includes("Teacher") || roles.includes("Assistant");
1578
1628
  var isStudent = roles.includes("Student");
1579
1629
  var isAssistant = !roles.includes("Teacher") && roles.includes("Assistant");
@@ -1622,7 +1672,7 @@ var MainLayout = function MainLayout(_ref) {
1622
1672
  } catch (e) {
1623
1673
  return Promise.reject(e);
1624
1674
  }
1625
- };
1675
+ }, [user]);
1626
1676
 
1627
1677
  var resetAuth = function resetAuth() {
1628
1678
  localStorage.removeItem(marioCore.ACCESS_TOKEN);
@@ -1645,7 +1695,8 @@ var MainLayout = function MainLayout(_ref) {
1645
1695
  overflow: "hidden"
1646
1696
  }
1647
1697
  }, path !== "/notifications" ? React__default.createElement(HeaderSideBar, {
1648
- navigations: authNavigations
1698
+ navigations: authNavigations,
1699
+ onToggleModel: handleToggleModel
1649
1700
  }, React__default.createElement("div", {
1650
1701
  className: "" + styleIndex["reset-the-content"]
1651
1702
  }, React__default.createElement(marioCore.TheContent, {
@@ -1654,7 +1705,10 @@ var MainLayout = function MainLayout(_ref) {
1654
1705
  className: "" + styleIndex["reset-the-content"]
1655
1706
  }, React__default.createElement(marioCore.TheContent, {
1656
1707
  routes: authRoutes
1657
- })));
1708
+ })), React__default.createElement(ModelSelectRole, {
1709
+ open: openModelSelectRole,
1710
+ onToggleModel: handleToggleModel
1711
+ }));
1658
1712
  };
1659
1713
 
1660
1714
  var home = {"title-home":"_28pc4","to-do-today":"_1UG9Q","show-calendar":"_2W0R7","today-schedule":"_34JC1","box-schedule":"_UlvOc","action-point":"_1rK_Q","show-arrange-today":"_2pCuD","box":"_ppOfL","title-box":"_3DN3c","content-box":"_2X2qR","title-today-schedule":"_-NEIR","time-line-item":"_po9t4","time":"_1ickv","time-line":"_2y9cV","event":"_2slF0","event-text":"_anBzU","event-red":"_3Tk6m","full-calendar":"_26M4Q","current-time":"_23CKo","current-date":"_1ehp6","current-weekday":"_3Zq5B","action-points":"_10JrS","schedule-item":"_1XZWI","item-time":"_1dn2z","right-content":"_1XobX","font-large":"_1gBbm","font-small":"_3gyKR"};
@@ -3349,7 +3403,7 @@ var Dashboard = function Dashboard() {
3349
3403
  className: "dashboard-page " + home[classFontSize]
3350
3404
  }, React__default.createElement(core.Grid, {
3351
3405
  className: "" + home["title-home"]
3352
- }, React__default.createElement(core.Typography, null, "Hello ", user.name, " ", React__default.createElement("img", {
3406
+ }, React__default.createElement(core.Typography, null, "Hello ", user.firstName + " " + user.lastName, " ", React__default.createElement("img", {
3353
3407
  src: "images/waving-hand.png",
3354
3408
  style: {
3355
3409
  marginTop: "-15px"
@@ -28848,8 +28902,8 @@ var ReadinessToLearn = function ReadinessToLearn(_ref) {
28848
28902
 
28849
28903
  var styles$b = {"chart-one-to-one":"_1sc2P","header-chart-one-to-one":"_14jsg","header-right":"_cwDAr","title":"_34b83","gr-date-time":"_382Go","date-time-start":"_1Pawo","date-time-end":"_16LVQ","date-time":"_ZdRKi","text":"_ptF0O","text-to":"_hlkTl","apexcharts-legend":"_2EMC9","apx-legend-position-top":"_1Ojwo","apexcharts-align-center":"_12O6U","font-large":"_29eqh","chart-label":"_3f0nE","chart-content":"_3eAPT","font-small":"_3REW-","box-chart":"_2K3qC","box-chart-small":"_3fuHY","chart-label-one-1-one":"_3vpT7","chart-label-class-reflection":"_yJtRg","chart-label-learning":"_2bopc"};
28850
28904
 
28851
- var domainName$2 = window.location.hostname;
28852
- var isCheckDomainRubyoung$2 = domainName$2.includes('rubyyoung');
28905
+ var domainName$1 = window.location.hostname;
28906
+ var isCheckDomainRubyoung$1 = domainName$1.includes('rubyyoung');
28853
28907
 
28854
28908
  var ChartOneToOne = function ChartOneToOne(_ref) {
28855
28909
  var title = _ref.title,
@@ -28863,7 +28917,7 @@ var ChartOneToOne = function ChartOneToOne(_ref) {
28863
28917
  classFontSize = _ref.classFontSize;
28864
28918
  var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
28865
28919
  return React__default.createElement("div", {
28866
- className: styles$b["chart-one-to-one"] + " " + styles$b[classFontSize] + " " + (!isCheckDomainRubyoung$2 && "chart-format")
28920
+ className: styles$b["chart-one-to-one"] + " " + styles$b[classFontSize] + " " + (!isCheckDomainRubyoung$1 && "chart-format")
28867
28921
  }, React__default.createElement("div", {
28868
28922
  className: "" + styles$b["header-chart-one-to-one"]
28869
28923
  }, React__default.createElement(core.Typography, {
@@ -29195,8 +29249,8 @@ var ChatLearningProgress = function ChatLearningProgress(_ref) {
29195
29249
  }))));
29196
29250
  };
29197
29251
 
29198
- var domainName$3 = window.location.hostname;
29199
- var isCheckDomainRubyoung$3 = domainName$3.includes("rubyyoung");
29252
+ var domainName$2 = window.location.hostname;
29253
+ var isCheckDomainRubyoung$2 = domainName$2.includes("rubyyoung");
29200
29254
 
29201
29255
  var ChartOverview = function ChartOverview(props) {
29202
29256
  var studentId = props.studentId,
@@ -29303,7 +29357,7 @@ var ChartOverview = function ChartOverview(props) {
29303
29357
  container: true,
29304
29358
  className: isPlp && styles$7["border-chart"]
29305
29359
  }, React__default.createElement(ChartOneToOne, {
29306
- title: isCheckDomainRubyoung$3 ? "1-to-1" : "One To One",
29360
+ title: isCheckDomainRubyoung$2 ? "1-to-1" : "One To One",
29307
29361
  studentId: studentId,
29308
29362
  handleChangeStartDate: handleChangeStartDate,
29309
29363
  handleChangeEndDate: handleChangeEndDate,
@@ -29321,7 +29375,7 @@ var ChartOverview = function ChartOverview(props) {
29321
29375
  container: true,
29322
29376
  className: isPlp && styles$7["border-chart"]
29323
29377
  }, React__default.createElement(ChatClassReflection, {
29324
- title: isCheckDomainRubyoung$3 ? "Reflection" : "Class Reflection",
29378
+ title: isCheckDomainRubyoung$2 ? "Reflection" : "Class Reflection",
29325
29379
  seriesChartClassReflection: seriesChartClassReflection,
29326
29380
  optionClassReflection: optionClassReflection,
29327
29381
  widthChartClassReflection: widthChartClassReflection,
@@ -37569,8 +37623,8 @@ var StudentHistory = function StudentHistory() {
37569
37623
  }))))));
37570
37624
  };
37571
37625
 
37572
- var domainName$4 = window.location.hostname;
37573
- var isCheckDomainRubyoung$4 = domainName$4.includes('rubyyoung');
37626
+ var domainName$3 = window.location.hostname;
37627
+ var isCheckDomainRubyoung$3 = domainName$3.includes('rubyyoung');
37574
37628
  var tabs$3 = [{
37575
37629
  path: "/my-class-reflection/to-do",
37576
37630
  title: "To Do",
@@ -37580,7 +37634,7 @@ var tabs$3 = [{
37580
37634
  title: "History",
37581
37635
  component: StudentHistory
37582
37636
  }];
37583
- var title$2 = isCheckDomainRubyoung$4 ? "My Reflections" : "My Class Reflections";
37637
+ var title$2 = isCheckDomainRubyoung$3 ? "My Reflections" : "My Class Reflections";
37584
37638
 
37585
37639
  var StudentReflection = function StudentReflection() {
37586
37640
  return React__default.createElement(Box, null, React__default.createElement(StudentReflectionTab, {
@@ -61052,18 +61106,18 @@ var CustomTabs$2 = function CustomTabs(props) {
61052
61106
  }, renderContent());
61053
61107
  };
61054
61108
 
61055
- var domainName$5 = window.location.hostname;
61056
- var isCheckDomainRubyoung$5 = domainName$5.includes('rubyyoung');
61109
+ var domainName$4 = window.location.hostname;
61110
+ var isCheckDomainRubyoung$4 = domainName$4.includes('rubyyoung');
61057
61111
  var tabs$5 = [{
61058
61112
  path: "/class-reflection/my-class-reflection",
61059
- title: isCheckDomainRubyoung$5 ? "Reflection" : "Student Reflections",
61113
+ title: isCheckDomainRubyoung$4 ? "Reflection" : "Student Reflections",
61060
61114
  component: MyClassReflection
61061
61115
  }, {
61062
61116
  path: "/class-reflection/external-class-reflection",
61063
- title: isCheckDomainRubyoung$5 ? "External Reflection" : "External Class Reflection",
61117
+ title: isCheckDomainRubyoung$4 ? "External Reflection" : "External Class Reflection",
61064
61118
  component: ExternalClassReflection
61065
61119
  }];
61066
- var title$3 = isCheckDomainRubyoung$5 ? "Reflections" : "Class Reflections";
61120
+ var title$3 = isCheckDomainRubyoung$4 ? "Reflections" : "Class Reflections";
61067
61121
 
61068
61122
  var TeacherClassReflection = function TeacherClassReflection() {
61069
61123
  return React__default.createElement(Box, null, React__default.createElement(CustomTabs$2, {