mario-teacher-student-client 2.0.4 → 2.0.7

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.
Files changed (35) hide show
  1. package/dist/containers/ConductOneToOne/components/SimpleDialog.d.ts +3 -0
  2. package/dist/containers/ConferenceRubric/components/SimpleDialog.d.ts +3 -0
  3. package/dist/containers/MyOneToOne/components/dialog/DialogNodes.d.ts +3 -3
  4. package/dist/containers/PersonalLearningPlan/hook/personalInterestApi.d.ts +6 -0
  5. package/dist/containers/PersonalLearningPlan/hook/personalInterestsService.d.ts +6 -0
  6. package/dist/containers/PersonalLearningPlan/hook/usePersonalInterest.d.ts +33 -2
  7. package/dist/index.js +109 -79
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.modern.js +109 -79
  10. package/dist/index.modern.js.map +1 -1
  11. package/package.json +1 -1
  12. package/dist/components/Circle/Circle.d.ts +0 -11
  13. package/dist/components/Circle/ItemCircle.d.ts +0 -7
  14. package/dist/components/Header/HeaderLearningPlan.d.ts +0 -11
  15. package/dist/components/Header/HeaderSurvey.d.ts +0 -11
  16. package/dist/components/Input/TextAreaComponent.d.ts +0 -8
  17. package/dist/containers/FriendCircle/components/ModalGoalFriend.d.ts +0 -3
  18. package/dist/containers/FriendCircle/constants/types.d.ts +0 -101
  19. package/dist/containers/FriendCircle/hooks/useListDetail.d.ts +0 -20
  20. package/dist/containers/FriendCircle/hooks/useListFriend.d.ts +0 -8
  21. package/dist/containers/FriendCircle/views/FriendCircle.d.ts +0 -3
  22. package/dist/containers/FriendCircle/views/FriendCircleLearning.d.ts +0 -3
  23. package/dist/containers/FriendCircle/views/ListFriendCircle.d.ts +0 -3
  24. package/dist/containers/MyStudent/components/Accommodation/Accomondation.d.ts +0 -3
  25. package/dist/containers/MyStudent/components/Accommodation/AccomondationList.d.ts +0 -3
  26. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/hooks/useTopLearningStrategies.d.ts +0 -4
  27. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/services/TopLearningStrategies.d.ts +0 -1
  28. package/dist/containers/MyStudent/components/NewOverview/TopLearningStrategies/view/TopLearningStrategiesChart.d.ts +0 -3
  29. package/dist/containers/MyStudent/hooks/useAccommodation.d.ts +0 -8
  30. package/dist/containers/MySurvey/constants/types.d.ts +0 -41
  31. package/dist/containers/MySurvey/hooks/useStudentList.d.ts +0 -9
  32. package/dist/containers/MySurvey/views/CreateSurvey.d.ts +0 -3
  33. package/dist/containers/MySurvey/views/Mysurvey.d.ts +0 -3
  34. package/dist/containers/MySurvey/views/StudentSurvey.d.ts +0 -3
  35. package/dist/services/myFriendGoalService.d.ts +0 -5
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const DialogNodes: (props: any) => JSX.Element;
3
- export default DialogNodes;
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<(props: any) => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export declare const createDataPersonalInterestApi: (body: any) => Promise<import("axios").AxiosResponse<any>>;
2
+ export declare const uploadFilePersonalInterestApi: (body: any) => Promise<import("axios").AxiosResponse<any>>;
3
+ export declare const getDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
4
+ export declare const editDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
5
+ export declare const updateDataPersonalInterestApi: (id: number, body: any) => Promise<import("axios").AxiosResponse<any>>;
6
+ export declare const deleteDataPersonalInterestApi: (id: number) => Promise<import("axios").AxiosResponse<any>>;
@@ -0,0 +1,6 @@
1
+ export declare const createDataPersonalInterest: (dispatch: any, data: any) => Promise<void>;
2
+ export declare const getDataPersonalInterest: (dispatch: any, id: number) => Promise<any>;
3
+ export declare const upDateDataPersonalInterest: (dispatch: any, idupdate: number, dataUpload: any) => Promise<void>;
4
+ export declare const deleteataPersonalInterest: (dispatch: any, iddelete: number) => Promise<void>;
5
+ export declare const uploadFilePersonalInterest: (dispatch: any, file: string) => Promise<any>;
6
+ export declare const editDataPersonalInterest: (dispatch: any, id: number) => Promise<any>;
@@ -1,5 +1,36 @@
1
1
  declare const usePersonalInterest: () => {
2
- getDataPersonalInterest: () => Promise<void>;
3
- listPersonalInterest: any;
2
+ upDateData: () => Promise<void>;
3
+ editData: (id: number) => Promise<void>;
4
+ sendDataCreate: () => Promise<void>;
5
+ deleteDataItem: () => Promise<void>;
6
+ handleClose: () => void;
7
+ handleCloseEdit: () => void;
8
+ handUpload: (e: any) => void;
9
+ handleCloseDelete: () => void;
10
+ dataList: any;
11
+ handUploadEdit: (e: any) => void;
12
+ openModal: boolean;
13
+ openModalDelete: boolean;
14
+ openModalEdit: boolean;
15
+ targetImage: any;
16
+ fileUploadEdit: string;
17
+ fileAvatarEdit: string;
18
+ deleteData: (id: number) => void;
19
+ handOpenModal: () => void;
20
+ handCloseModalEdit: () => void;
21
+ handCloseModalDelete: () => void;
22
+ value: string;
23
+ fileAvatar: string;
24
+ valueAddActivity: string;
25
+ onChangeSetData: (e: any) => void;
26
+ onChangeSetDataNote: (e: any) => void;
27
+ dataEdit: {
28
+ id: string;
29
+ Title: string;
30
+ Note: string;
31
+ studentId: string;
32
+ };
33
+ onChangeSetDataEdit: (e: any) => void;
34
+ onChangeSetDataEditNote: (e: any) => void;
4
35
  };
5
36
  export default usePersonalInterest;
package/dist/index.js CHANGED
@@ -153,7 +153,7 @@ var getUnreadNotification = function getUnreadNotification() {
153
153
 
154
154
  var NOTIFICATION_CHANNEL = "NOTIFICATION_CHANNEL";
155
155
  var NEW_NOTIFICATION = "NEW_NOTIFICATION";
156
- var drawerWidth = 240;
156
+ var drawerWidth = 280;
157
157
  var headerHeightDesktop = 64;
158
158
  var headerHeightMobile = 55;
159
159
  var headerHeightScroll = 0;
@@ -5301,7 +5301,10 @@ var HeaderComponent = function HeaderComponent(_ref) {
5301
5301
  }, React__default.createElement(BiArrowBack, {
5302
5302
  className: styles["header-icon"]
5303
5303
  }), " ", text)), isShowButtonPageHeader && screenWidth > 600 && React__default.createElement("div", {
5304
- className: "styles[\"header-right\"]"
5304
+ className: "styles[\"header-right\"]",
5305
+ style: {
5306
+ marginRight: "50px"
5307
+ }
5305
5308
  }, React__default.createElement(core.Button, {
5306
5309
  variant: "contained",
5307
5310
  className: isShowButtonBackGround ? styles["btn-conduct-session"] : styles["btn-conduct-session-disabled"],
@@ -8157,6 +8160,7 @@ var DialogNodes = function DialogNodes(props) {
8157
8160
  className: "" + stylesOto["footer-note-form"],
8158
8161
  value: inputValue,
8159
8162
  onChange: handleChange,
8163
+ maxRows: 6,
8160
8164
  style: {
8161
8165
  border: "none"
8162
8166
  },
@@ -8196,6 +8200,55 @@ var DialogNodes = function DialogNodes(props) {
8196
8200
  }))))));
8197
8201
  };
8198
8202
 
8203
+ function areEqual(prevProps, nextProps) {
8204
+ if (prevProps.checkOpenModal == nextProps.checkOpenModal) return false;
8205
+ return true;
8206
+ }
8207
+
8208
+ var DialogNodes$1 = React__default.memo(DialogNodes, areEqual);
8209
+
8210
+ var SimpleDialog$2 = function SimpleDialog(props) {
8211
+ var onClose = props.onClose,
8212
+ selectedValue = props.selectedValue,
8213
+ open = props.open,
8214
+ checkOpenModal = props.checkOpenModal,
8215
+ listLearningStrategoryCategory = props.listLearningStrategoryCategory,
8216
+ currentSessionTypeId = props.currentSessionTypeId;
8217
+
8218
+ var handleClose = function handleClose() {
8219
+ if (localStorage.getItem("activeTab") != null) {
8220
+ localStorage.removeItem("activeTab");
8221
+ }
8222
+
8223
+ onClose(selectedValue);
8224
+ };
8225
+
8226
+ return React__default.createElement(core.Dialog, {
8227
+ onClose: handleClose,
8228
+ open: open,
8229
+ fullWidth: true,
8230
+ maxWidth: "sm",
8231
+ style: {
8232
+ maxHeight: "90%",
8233
+ marginTop: "80px"
8234
+ }
8235
+ }, React__default.createElement(DialogNodes$1, {
8236
+ handleClose: handleClose,
8237
+ sessionId: props.sessionId,
8238
+ sessionResultId: props.sessionResultId,
8239
+ checkOpenModal: checkOpenModal,
8240
+ listLearningStrategoryCategory: listLearningStrategoryCategory,
8241
+ currentSessionTypeId: currentSessionTypeId
8242
+ }));
8243
+ };
8244
+
8245
+ function areEqual$1(prevProps, nextProps) {
8246
+ if (prevProps.checkOpenModal == nextProps.checkOpenModal) return false;
8247
+ return true;
8248
+ }
8249
+
8250
+ var SimpleDialog$3 = React__default.memo(SimpleDialog$2, areEqual$1);
8251
+
8199
8252
  function NodeDraggable(props) {
8200
8253
  var _useState = React.useState({
8201
8254
  xAxis: 0,
@@ -8272,41 +8325,6 @@ var ConductIndex = function ConductIndex() {
8272
8325
  setOpen(false);
8273
8326
  };
8274
8327
 
8275
- var SimpleDialog = function SimpleDialog(props) {
8276
- var onClose = props.onClose,
8277
- selectedValue = props.selectedValue,
8278
- open = props.open,
8279
- checkOpenModal = props.checkOpenModal,
8280
- listLearningStrategoryCategory = props.listLearningStrategoryCategory,
8281
- currentSessionTypeId = props.currentSessionTypeId;
8282
-
8283
- var handleClose = function handleClose() {
8284
- if (localStorage.getItem("activeTab") != null) {
8285
- localStorage.removeItem("activeTab");
8286
- }
8287
-
8288
- onClose(selectedValue);
8289
- };
8290
-
8291
- return React__default.createElement(core.Dialog, {
8292
- onClose: handleClose,
8293
- open: open,
8294
- fullWidth: true,
8295
- maxWidth: "sm",
8296
- style: {
8297
- maxHeight: "90%",
8298
- marginTop: "80px"
8299
- }
8300
- }, React__default.createElement(DialogNodes, {
8301
- handleClose: handleClose,
8302
- sessionId: sessionId,
8303
- sessionResultId: sessionResultId,
8304
- checkOpenModal: checkOpenModal,
8305
- listLearningStrategoryCategory: listLearningStrategoryCategory,
8306
- currentSessionTypeId: currentSessionTypeId
8307
- }));
8308
- };
8309
-
8310
8328
  var history = reactRouterDom.useHistory();
8311
8329
  var questionRatings = listQuestionStudents.filter(function (item) {
8312
8330
  return item.type == QuestionType.Rating && !!item.isBeforeSession;
@@ -8562,13 +8580,15 @@ var ConductIndex = function ConductIndex() {
8562
8580
  }
8563
8581
  }, React__default.createElement(NodeDraggable, {
8564
8582
  handleClickOpen: handleClickOpen
8565
- })), React__default.createElement(SimpleDialog, {
8583
+ })), React__default.createElement(SimpleDialog$3, {
8566
8584
  selectedValue: "",
8567
8585
  open: open,
8568
8586
  onClose: handleClose,
8569
8587
  checkOpenModal: checkOpenModal,
8570
8588
  listLearningStrategoryCategory: listLearningStrategoryCategory,
8571
- currentSessionTypeId: sessionTypeCategoryId
8589
+ currentSessionTypeId: sessionTypeCategoryId,
8590
+ sessionId: sessionId,
8591
+ sessionResultId: sessionResultId
8572
8592
  }), React__default.createElement(core.Dialog, {
8573
8593
  open: openModalSession,
8574
8594
  onClose: handleModalSessionClose,
@@ -13415,7 +13435,7 @@ var OneToOne = function OneToOne() {
13415
13435
  marginLeft: "5px"
13416
13436
  }
13417
13437
  }) : ""))), React__default.createElement(core.TableBody, null, !!sessionData && (sessionData === null || sessionData === void 0 ? void 0 : sessionData.items).length > 0 ? sessionData === null || sessionData === void 0 ? void 0 : (_sessionData$items = sessionData.items) === null || _sessionData$items === void 0 ? void 0 : _sessionData$items.map(function (row) {
13418
- var _row$studentProfile, _row$studentProfile2;
13438
+ var _row$studentProfile, _row$studentProfile2, _row$studentProfile3, _row$studentProfile4, _row$studentProfile5;
13419
13439
 
13420
13440
  var timeStart = marioCore.utcToLocalTime(row === null || row === void 0 ? void 0 : row.startTime, "Do MMMM yyyy - hh:mm A").toString();
13421
13441
  var timeSplitArray = timeStart.split(" - ");
@@ -13437,7 +13457,7 @@ var OneToOne = function OneToOne() {
13437
13457
  src: !!((_row$studentProfile = row.studentProfile) !== null && _row$studentProfile !== void 0 && _row$studentProfile.avatar) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile2 = row.studentProfile) === null || _row$studentProfile2 === void 0 ? void 0 : _row$studentProfile2.avatar) : DEFAULT_USER_AVATAR$7,
13438
13458
  alt: "",
13439
13459
  className: "" + styles$4["avatar_user"]
13440
- }), (row === null || row === void 0 ? void 0 : row.studentProfile.name).length > 12 ? (row === null || row === void 0 ? void 0 : row.studentProfile.name).slice(0, 12).concat("...") : row === null || row === void 0 ? void 0 : row.studentProfile.name), React__default.createElement(core.TableCell, {
13460
+ }), (row === null || row === void 0 ? void 0 : (_row$studentProfile3 = row.studentProfile) === null || _row$studentProfile3 === void 0 ? void 0 : _row$studentProfile3.name).length > 12 ? (row === null || row === void 0 ? void 0 : (_row$studentProfile4 = row.studentProfile) === null || _row$studentProfile4 === void 0 ? void 0 : _row$studentProfile4.name).slice(0, 12).concat("...") : row === null || row === void 0 ? void 0 : (_row$studentProfile5 = row.studentProfile) === null || _row$studentProfile5 === void 0 ? void 0 : _row$studentProfile5.name), React__default.createElement(core.TableCell, {
13441
13461
  align: "left",
13442
13462
  className: "" + styles$4["row_grade"]
13443
13463
  }, !!row.gradeLevel ? row === null || row === void 0 ? void 0 : row.gradeLevel : ""), React__default.createElement(core.TableCell, {
@@ -13481,7 +13501,7 @@ var OneToOne = function OneToOne() {
13481
13501
  }, React__default.createElement("div", {
13482
13502
  className: "" + styles$4["list-title"]
13483
13503
  }, "All"), !!sessionData && (sessionData === null || sessionData === void 0 ? void 0 : sessionData.items).length > 0 ? sessionData === null || sessionData === void 0 ? void 0 : (_sessionData$items2 = sessionData.items) === null || _sessionData$items2 === void 0 ? void 0 : _sessionData$items2.map(function (row) {
13484
- var _row$studentProfile3, _row$studentProfile4;
13504
+ var _row$studentProfile6, _row$studentProfile7, _row$studentProfile8;
13485
13505
 
13486
13506
  var timeStart = marioCore.utcToLocalTime(row.startTime, "Do MMMM yyyy - hh:mm A").toString();
13487
13507
  var timeSplitArray = timeStart.split(" - ");
@@ -13490,7 +13510,7 @@ var OneToOne = function OneToOne() {
13490
13510
  }, React__default.createElement("div", {
13491
13511
  className: "" + styles$4["avatar"]
13492
13512
  }, React__default.createElement("img", {
13493
- src: !!row.studentProfile.avatar ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile3 = row.studentProfile) === null || _row$studentProfile3 === void 0 ? void 0 : _row$studentProfile3.avatar) : DEFAULT_USER_AVATAR$7,
13513
+ src: !!((_row$studentProfile6 = row.studentProfile) !== null && _row$studentProfile6 !== void 0 && _row$studentProfile6.avatar) ? marioCore.getFileUrl(row === null || row === void 0 ? void 0 : (_row$studentProfile7 = row.studentProfile) === null || _row$studentProfile7 === void 0 ? void 0 : _row$studentProfile7.avatar) : DEFAULT_USER_AVATAR$7,
13494
13514
  alt: "",
13495
13515
  className: "" + styles$4["avatar_user"]
13496
13516
  })), React__default.createElement("div", {
@@ -13503,7 +13523,7 @@ var OneToOne = function OneToOne() {
13503
13523
  className: "" + styles$4["time-Hours-Minute"]
13504
13524
  }, " ", "-", " ", timeSplitArray[1]))), React__default.createElement("div", null, React__default.createElement("p", {
13505
13525
  className: "" + styles$4["name"]
13506
- }, row === null || row === void 0 ? void 0 : (_row$studentProfile4 = row.studentProfile) === null || _row$studentProfile4 === void 0 ? void 0 : _row$studentProfile4.name), React__default.createElement("p", {
13526
+ }, row === null || row === void 0 ? void 0 : (_row$studentProfile8 = row.studentProfile) === null || _row$studentProfile8 === void 0 ? void 0 : _row$studentProfile8.name), React__default.createElement("p", {
13507
13527
  className: "" + styles$4["classes"]
13508
13528
  }, !!row.gradeLevel && row.gradeLevel), React__default.createElement("div", {
13509
13529
  style: {
@@ -17355,6 +17375,44 @@ var useConferenceRubric = function useConferenceRubric() {
17355
17375
  };
17356
17376
  };
17357
17377
 
17378
+ var SimpleDialog$4 = function SimpleDialog(props) {
17379
+ var onClose = props.onClose,
17380
+ selectedValue = props.selectedValue,
17381
+ open = props.open,
17382
+ checkOpenModal = props.checkOpenModal,
17383
+ conferenceId = props.conferenceId,
17384
+ isTeacher = props.isTeacher,
17385
+ conferenceResult = props.conferenceResult;
17386
+
17387
+ var handleClose = function handleClose() {
17388
+ if (localStorage.getItem("activeTab") != null) {
17389
+ localStorage.removeItem("activeTab");
17390
+ }
17391
+
17392
+ onClose(selectedValue);
17393
+ };
17394
+
17395
+ return React__default.createElement(core.Dialog, {
17396
+ onClose: handleClose,
17397
+ open: open,
17398
+ fullWidth: true,
17399
+ maxWidth: "sm"
17400
+ }, React__default.createElement(DialogNodes$1, {
17401
+ handleClose: handleClose,
17402
+ sessionId: conferenceId,
17403
+ sessionResultId: isTeacher ? conferenceResult.teacherResultId : conferenceResult.studentResultId,
17404
+ checkOpenModal: checkOpenModal,
17405
+ isPageConference: true
17406
+ }));
17407
+ };
17408
+
17409
+ function areEqual$2(prevProps, nextProps) {
17410
+ if (prevProps.checkOpenModal == nextProps.checkOpenModal) return false;
17411
+ return true;
17412
+ }
17413
+
17414
+ var SimpleDialog$5 = React__default.memo(SimpleDialog$4, areEqual$2);
17415
+
17358
17416
  var QuestionType$1;
17359
17417
 
17360
17418
  (function (QuestionType) {
@@ -17512,38 +17570,6 @@ var ConferenceRubric = function ConferenceRubric() {
17512
17570
  document.title = "Start conference";
17513
17571
  !!foundId && getPartnerProfileSelector(foundId);
17514
17572
  }, [foundId]);
17515
-
17516
- var SimpleDialog = function SimpleDialog(props) {
17517
- var onClose = props.onClose,
17518
- selectedValue = props.selectedValue,
17519
- open = props.open,
17520
- checkOpenModal = props.checkOpenModal,
17521
- conferenceId = props.conferenceId,
17522
- isTeacher = props.isTeacher,
17523
- conferenceResult = props.conferenceResult;
17524
-
17525
- var handleClose = function handleClose() {
17526
- if (localStorage.getItem("activeTab") != null) {
17527
- localStorage.removeItem("activeTab");
17528
- }
17529
-
17530
- onClose(selectedValue);
17531
- };
17532
-
17533
- return React__default.createElement(core.Dialog, {
17534
- onClose: handleClose,
17535
- open: open,
17536
- fullWidth: true,
17537
- maxWidth: "sm"
17538
- }, React__default.createElement(DialogNodes, {
17539
- handleClose: handleClose,
17540
- sessionId: conferenceId,
17541
- sessionResultId: isTeacher ? conferenceResult.teacherResultId : conferenceResult.studentResultId,
17542
- checkOpenModal: checkOpenModal,
17543
- isPageConference: true
17544
- }));
17545
- };
17546
-
17547
17573
  return React__default.createElement("div", {
17548
17574
  className: styles$7["block-conference"]
17549
17575
  }, React__default.createElement(HeaderComponent, {
@@ -17666,7 +17692,7 @@ var ConferenceRubric = function ConferenceRubric() {
17666
17692
  }
17667
17693
  }, React__default.createElement(NodeDraggable, {
17668
17694
  handleClickOpen: handleClickOpen
17669
- })), React__default.createElement(ScrollToTopBtn, null), React__default.createElement(SimpleDialog, {
17695
+ })), React__default.createElement(ScrollToTopBtn, null), React__default.createElement(SimpleDialog$5, {
17670
17696
  selectedValue: "",
17671
17697
  open: open,
17672
17698
  onClose: handleClose,
@@ -21904,6 +21930,10 @@ function NotificationsPage() {
21904
21930
  var updateSetting = React.useCallback(function () {
21905
21931
  return updateSettingPage(dataSetting);
21906
21932
  }, [dataSetting]);
21933
+ var roles = reactRedux.useSelector(function (state) {
21934
+ return state.common.user;
21935
+ }).roles;
21936
+ console.log(roles.includes('Teacher'));
21907
21937
  return React__default.createElement("div", {
21908
21938
  id: "setting-page",
21909
21939
  className: classes.paddindNotificationsPage
@@ -21945,7 +21975,7 @@ function NotificationsPage() {
21945
21975
  }
21946
21976
  }, React__default.createElement("p", {
21947
21977
  className: classes.textNotifications
21948
- }, "Send notification when a student quick start a session/conference"), React__default.createElement(core.Switch, {
21978
+ }, "Send notification when a ", roles.includes('Teacher') ? "student" : "teacher", " quick start a session/conference"), React__default.createElement(core.Switch, {
21949
21979
  color: "primary",
21950
21980
  name: "IsReceiveNotificationBookedSession",
21951
21981
  onChange: onChangeDataSettingPage,
@@ -21961,7 +21991,7 @@ function NotificationsPage() {
21961
21991
  }
21962
21992
  }, React__default.createElement("p", {
21963
21993
  className: classes.textNotifications
21964
- }, "Send notification when a student books a session/conference"), React__default.createElement(core.Switch, {
21994
+ }, "Send notification when a ", roles.includes('Teacher') ? "student" : "teacher", " books a session/conference"), React__default.createElement(core.Switch, {
21965
21995
  color: "primary",
21966
21996
  name: "IsReceiveNotificationPrebookedSession",
21967
21997
  onChange: onChangeDataSettingPage,