mario-education 2.4.293-release → 2.4.296-layout
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/layouts/constants/constants.d.ts +79 -0
- package/dist/components/layouts/hooks/useHeaderSideBar.d.ts +1 -1
- package/dist/components/layouts/icons/ConferenceRubricIcon.d.ts +3 -0
- package/dist/components/layouts/icons/CustomAlertIcon.d.ts +3 -0
- package/dist/components/layouts/icons/CustomizeIcon.d.ts +3 -0
- package/dist/components/layouts/icons/DashboardIcon.d.ts +3 -0
- package/dist/components/layouts/icons/DataImportExportIcon.d.ts +3 -0
- package/dist/components/layouts/icons/EIPTemplateIcon.d.ts +3 -0
- package/dist/components/layouts/icons/EmailTemplateIcon.d.ts +3 -0
- package/dist/components/layouts/icons/HelpIcon.d.ts +3 -0
- package/dist/components/layouts/icons/MEDIAGalleryIcon.d.ts +3 -0
- package/dist/components/layouts/icons/QuestionIcon.d.ts +3 -0
- package/dist/components/layouts/icons/SandboxIcon.d.ts +3 -0
- package/dist/components/layouts/icons/SurveyDashboardIcon.d.ts +3 -0
- package/dist/components/layouts/icons/TechnicalSettingsIcon.d.ts +3 -0
- package/dist/components/layouts/icons/ToolIcon.d.ts +3 -0
- package/dist/components/layouts/icons/UserIcon.d.ts +3 -0
- package/dist/containers/Homepage/common/constant.d.ts +0 -33
- package/dist/containers/Homepage/common/interface.d.ts +0 -174
- package/dist/containers/Homepage/common/utils.d.ts +1 -29
- package/dist/index.css +4866 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4164 -24
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4151 -13
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -37,7 +37,7 @@ var pickers = require('@material-ui/pickers');
|
|
|
37
37
|
var MomentUtils = _interopDefault(require('@date-io/moment'));
|
|
38
38
|
var Autocomplete = _interopDefault(require('@material-ui/lab/Autocomplete'));
|
|
39
39
|
var SearchIcon = _interopDefault(require('@material-ui/icons/Search'));
|
|
40
|
-
var styles$
|
|
40
|
+
var styles$b = require('@material-ui/core/styles');
|
|
41
41
|
var FilterListIcon = _interopDefault(require('@material-ui/icons/FilterList'));
|
|
42
42
|
var EventIcon = _interopDefault(require('@material-ui/icons/Event'));
|
|
43
43
|
var PersonIcon = _interopDefault(require('@material-ui/icons/Person'));
|
|
@@ -72,6 +72,14 @@ var CancelIcon = _interopDefault(require('@material-ui/icons/Cancel'));
|
|
|
72
72
|
var EditIcon = _interopDefault(require('@material-ui/icons/Edit'));
|
|
73
73
|
var GetAppIcon = _interopDefault(require('@material-ui/icons/GetApp'));
|
|
74
74
|
var PublishIcon = _interopDefault(require('@material-ui/icons/Publish'));
|
|
75
|
+
var ErrorIcon = _interopDefault(require('@material-ui/icons/Error'));
|
|
76
|
+
var CheckCircleIcon = _interopDefault(require('@material-ui/icons/CheckCircle'));
|
|
77
|
+
var AppBar = _interopDefault(require('@material-ui/core/AppBar'));
|
|
78
|
+
var Toolbar = _interopDefault(require('@material-ui/core/Toolbar'));
|
|
79
|
+
var Typography = _interopDefault(require('@material-ui/core/Typography'));
|
|
80
|
+
var IconButton = _interopDefault(require('@material-ui/core/IconButton'));
|
|
81
|
+
var MenuIcon = _interopDefault(require('@material-ui/icons/Menu'));
|
|
82
|
+
var NotificationsIcon = _interopDefault(require('@material-ui/icons/Notifications'));
|
|
75
83
|
|
|
76
84
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
77
85
|
const _Pact = /*#__PURE__*/(function() {
|
|
@@ -46628,7 +46636,7 @@ var useFontStyles = function useFontStyles() {
|
|
|
46628
46636
|
}, [defaultFont]);
|
|
46629
46637
|
var useStyles = React.useMemo(function () {
|
|
46630
46638
|
if (defaultFont === LARGE_FONT_DEFAULT) {
|
|
46631
|
-
return styles$
|
|
46639
|
+
return styles$b.makeStyles({
|
|
46632
46640
|
fontCustom: {
|
|
46633
46641
|
fontSize: defaultFont + "px"
|
|
46634
46642
|
},
|
|
@@ -46639,7 +46647,7 @@ var useFontStyles = function useFontStyles() {
|
|
|
46639
46647
|
});
|
|
46640
46648
|
}
|
|
46641
46649
|
|
|
46642
|
-
return styles$
|
|
46650
|
+
return styles$b.makeStyles({
|
|
46643
46651
|
fontCustom: {
|
|
46644
46652
|
fontSize: defaultFont + "px"
|
|
46645
46653
|
},
|
|
@@ -46650,7 +46658,7 @@ var useFontStyles = function useFontStyles() {
|
|
|
46650
46658
|
}, [defaultFont]);
|
|
46651
46659
|
var useSmallStyles = React.useMemo(function () {
|
|
46652
46660
|
if (defaultFont === LARGE_FONT_DEFAULT) {
|
|
46653
|
-
return styles$
|
|
46661
|
+
return styles$b.makeStyles({
|
|
46654
46662
|
fontCustom: {
|
|
46655
46663
|
fontSize: "16px"
|
|
46656
46664
|
}
|
|
@@ -46658,14 +46666,14 @@ var useFontStyles = function useFontStyles() {
|
|
|
46658
46666
|
}
|
|
46659
46667
|
|
|
46660
46668
|
if (defaultFont === SMALL_FONT_DEFAULT) {
|
|
46661
|
-
return styles$
|
|
46669
|
+
return styles$b.makeStyles({
|
|
46662
46670
|
fontCustom: {
|
|
46663
46671
|
fontSize: "10px"
|
|
46664
46672
|
}
|
|
46665
46673
|
});
|
|
46666
46674
|
}
|
|
46667
46675
|
|
|
46668
|
-
return styles$
|
|
46676
|
+
return styles$b.makeStyles({
|
|
46669
46677
|
fontCustom: {
|
|
46670
46678
|
fontSize: "inherit"
|
|
46671
46679
|
}
|
|
@@ -47167,7 +47175,7 @@ var CustomButton = function CustomButton(_ref) {
|
|
|
47167
47175
|
_ref$fontSize = _ref.fontSize,
|
|
47168
47176
|
fontSize = _ref$fontSize === void 0 ? "inherit" : _ref$fontSize,
|
|
47169
47177
|
icon = _ref.icon;
|
|
47170
|
-
var ColorButton = styles$
|
|
47178
|
+
var ColorButton = styles$b.withStyles(function () {
|
|
47171
47179
|
return {
|
|
47172
47180
|
root: {
|
|
47173
47181
|
backgroundColor: backgroundColor != null ? backgroundColor : BACKGROUND_DEFAULT,
|
|
@@ -49754,7 +49762,7 @@ var ResponseQuestionModel = function ResponseQuestionModel(_ref) {
|
|
|
49754
49762
|
}))));
|
|
49755
49763
|
};
|
|
49756
49764
|
|
|
49757
|
-
var useTabStyles = styles$
|
|
49765
|
+
var useTabStyles = styles$b.makeStyles(function (theme) {
|
|
49758
49766
|
var _tabLabel;
|
|
49759
49767
|
|
|
49760
49768
|
return {
|
|
@@ -50726,7 +50734,7 @@ var SurveyDetailAdmin = function SurveyDetailAdmin() {
|
|
|
50726
50734
|
}));
|
|
50727
50735
|
};
|
|
50728
50736
|
|
|
50729
|
-
var useStyles$3 = styles$
|
|
50737
|
+
var useStyles$3 = styles$b.makeStyles(function (theme) {
|
|
50730
50738
|
var _tabLabel;
|
|
50731
50739
|
|
|
50732
50740
|
return {
|
|
@@ -50781,8 +50789,8 @@ var useStyles$3 = styles$7.makeStyles(function (theme) {
|
|
|
50781
50789
|
}
|
|
50782
50790
|
};
|
|
50783
50791
|
});
|
|
50784
|
-
var useStyleModelCreate = styles$
|
|
50785
|
-
return styles$
|
|
50792
|
+
var useStyleModelCreate = styles$b.makeStyles(function (theme) {
|
|
50793
|
+
return styles$b.createStyles({
|
|
50786
50794
|
root: {
|
|
50787
50795
|
width: "100%"
|
|
50788
50796
|
},
|
|
@@ -50801,7 +50809,7 @@ var useStyleModelCreate = styles$7.makeStyles(function (theme) {
|
|
|
50801
50809
|
}
|
|
50802
50810
|
});
|
|
50803
50811
|
});
|
|
50804
|
-
var useStylesDataGrid = styles$
|
|
50812
|
+
var useStylesDataGrid = styles$b.makeStyles(function () {
|
|
50805
50813
|
return {
|
|
50806
50814
|
root: {
|
|
50807
50815
|
borderBottom: "none",
|
|
@@ -51139,7 +51147,53 @@ var SurveyStudentFlagListAdmin = function SurveyStudentFlagListAdmin() {
|
|
|
51139
51147
|
var HEADER_DESKTOP_HEIGHT = 57;
|
|
51140
51148
|
var HEADER_MOBILE_HEIGHT = 55;
|
|
51141
51149
|
var NOTIFICATION_HEIGHT = 36;
|
|
51150
|
+
var NEW_NOTIFICATION = "NEW_NOTIFICATION";
|
|
51151
|
+
var drawerWidth = 280;
|
|
51152
|
+
var drawerWidth11 = 260;
|
|
51153
|
+
var drawerWidth12 = 240;
|
|
51154
|
+
var drawerWidth15 = 210;
|
|
51155
|
+
var headerHeightScroll = 0;
|
|
51156
|
+
var defaultFontSize = 16;
|
|
51157
|
+
var defaultFontSmall = 12;
|
|
51158
|
+
var defaultFontLarge = 20;
|
|
51142
51159
|
var LOGO = "" + marioCore.getStaticFileUrl("/images/logo-white.svg");
|
|
51160
|
+
var SMALL_FONT_DEFAULT$1 = 12;
|
|
51161
|
+
var LARGE_FONT_DEFAULT$1 = 20;
|
|
51162
|
+
var SESSION_START_TIME = "sessionStartTime";
|
|
51163
|
+
var SESSION_END_TIME = "sessionEndTime";
|
|
51164
|
+
var SESSION_HISTORY_START_TIME = "sessionHistoryStartTime";
|
|
51165
|
+
var SESSION_HISTORY_END_TIME = "sessionHistoryEndTime";
|
|
51166
|
+
var NOTE_START_TIME = "noteStartTime";
|
|
51167
|
+
var NOTE_END_TIME = "noteEndTime";
|
|
51168
|
+
var SURVEY_OVERVIEW_FILTERS = "surveyOverviewFilters";
|
|
51169
|
+
var SURVEY_SUMMARY_FILTERS = "surveySummaryFilters";
|
|
51170
|
+
var REFLECTION_DASHBOARD_FILTERS = "reflectionDashboardFilters";
|
|
51171
|
+
var STUDENT_REFECTION_FILTERS = "studentRefectionFilters";
|
|
51172
|
+
var TEACHER_REFLECTION_FILTERS = "teacherReflectionFilters";
|
|
51173
|
+
var CONFERENCE_FILTERS = "conferenceFilters";
|
|
51174
|
+
var CONFERENCE_HISTORY_FILTERS = "conferenceHistoryFilters";
|
|
51175
|
+
var CHECKIN_STUDENT_FILTERS = "checkInStudentFilters";
|
|
51176
|
+
var CONFERENCE_STUDENT_FILTERS = "conferenceStudentFilters";
|
|
51177
|
+
var LEARNING_PLAN_FILTERS = "learningPlanFilters";
|
|
51178
|
+
var CONVERSATION_STUDENT_FILTERS = "conversationStudentFilters";
|
|
51179
|
+
var OVERVIEW_STUDENT_FILTERS = "overviewStudentFilters";
|
|
51180
|
+
var guideType;
|
|
51181
|
+
|
|
51182
|
+
(function (guideType) {
|
|
51183
|
+
guideType[guideType["CheckIn"] = 0] = "CheckIn";
|
|
51184
|
+
guideType[guideType["Dashboard"] = 1] = "Dashboard";
|
|
51185
|
+
guideType[guideType["Plp"] = 2] = "Plp";
|
|
51186
|
+
guideType[guideType["Conference"] = 3] = "Conference";
|
|
51187
|
+
guideType[guideType["Survey"] = 4] = "Survey";
|
|
51188
|
+
guideType[guideType["ClassReflection"] = 5] = "ClassReflection";
|
|
51189
|
+
})(guideType || (guideType = {}));
|
|
51190
|
+
var TYPE_SURVEY_OPTION$1;
|
|
51191
|
+
|
|
51192
|
+
(function (TYPE_SURVEY_OPTION) {
|
|
51193
|
+
TYPE_SURVEY_OPTION[TYPE_SURVEY_OPTION["VIEW_PREVIEW"] = 0] = "VIEW_PREVIEW";
|
|
51194
|
+
TYPE_SURVEY_OPTION[TYPE_SURVEY_OPTION["VIEW_RESPONSE"] = 1] = "VIEW_RESPONSE";
|
|
51195
|
+
TYPE_SURVEY_OPTION[TYPE_SURVEY_OPTION["DELETE"] = 2] = "DELETE";
|
|
51196
|
+
})(TYPE_SURVEY_OPTION$1 || (TYPE_SURVEY_OPTION$1 = {}));
|
|
51143
51197
|
|
|
51144
51198
|
var _templateObject$1;
|
|
51145
51199
|
var TypeTime$1;
|
|
@@ -51247,7 +51301,7 @@ var ChipButton = function ChipButton(_ref) {
|
|
|
51247
51301
|
var color = _ref.color,
|
|
51248
51302
|
label = _ref.label,
|
|
51249
51303
|
backgroundColor = _ref.backgroundColor;
|
|
51250
|
-
var StyleChip = styles$
|
|
51304
|
+
var StyleChip = styles$b.withStyles({
|
|
51251
51305
|
root: {
|
|
51252
51306
|
backgroundColor: !!backgroundColor ? backgroundColor : BACKGROUND_COLOR,
|
|
51253
51307
|
color: color,
|
|
@@ -51425,7 +51479,7 @@ var SliderSurveyComponent = function SliderSurveyComponent(_ref) {
|
|
|
51425
51479
|
cursor: "default"
|
|
51426
51480
|
} : {};
|
|
51427
51481
|
var result = Math.abs(val - (averageOtherRatings || 0));
|
|
51428
|
-
var PrettoSlider = styles$
|
|
51482
|
+
var PrettoSlider = styles$b.withStyles({
|
|
51429
51483
|
root: (_root = {
|
|
51430
51484
|
color: "#EFEFEF",
|
|
51431
51485
|
height: 8,
|
|
@@ -51679,7 +51733,7 @@ var EmotionComponent = function EmotionComponent(_ref) {
|
|
|
51679
51733
|
}));
|
|
51680
51734
|
};
|
|
51681
51735
|
|
|
51682
|
-
var CustomRadio = styles$
|
|
51736
|
+
var CustomRadio = styles$b.withStyles({
|
|
51683
51737
|
root: {
|
|
51684
51738
|
"&$checked": {
|
|
51685
51739
|
color: "orange"
|
|
@@ -59658,8 +59712,8 @@ unwrapExports(pusherWithEncryption);
|
|
|
59658
59712
|
var withEncryption = pusherWithEncryption;
|
|
59659
59713
|
|
|
59660
59714
|
var rollBackQuestionList = "ROLL_BACK_QUESTION_LIST";
|
|
59661
|
-
var defaultFontSmall = 12;
|
|
59662
|
-
var defaultFontLarge = 20;
|
|
59715
|
+
var defaultFontSmall$1 = 12;
|
|
59716
|
+
var defaultFontLarge$1 = 20;
|
|
59663
59717
|
|
|
59664
59718
|
var useConductSurvey = function useConductSurvey() {
|
|
59665
59719
|
var apiTimeouts = React.useRef({});
|
|
@@ -59691,11 +59745,11 @@ var useConductSurvey = function useConductSurvey() {
|
|
|
59691
59745
|
return (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.defaultFontSize;
|
|
59692
59746
|
});
|
|
59693
59747
|
var classFontSize = React.useMemo(function () {
|
|
59694
|
-
if (defaultFont == defaultFontLarge) {
|
|
59748
|
+
if (defaultFont == defaultFontLarge$1) {
|
|
59695
59749
|
return "font-large";
|
|
59696
59750
|
}
|
|
59697
59751
|
|
|
59698
|
-
if (defaultFont == defaultFontSmall) {
|
|
59752
|
+
if (defaultFont == defaultFontSmall$1) {
|
|
59699
59753
|
return "font-small";
|
|
59700
59754
|
}
|
|
59701
59755
|
|
|
@@ -60319,7 +60373,7 @@ var _valueLabelFormat$1 = function valueLabelFormat(avatar) {
|
|
|
60319
60373
|
});
|
|
60320
60374
|
};
|
|
60321
60375
|
|
|
60322
|
-
var PrettoSlider = styles$
|
|
60376
|
+
var PrettoSlider = styles$b.withStyles({
|
|
60323
60377
|
root: (_root = {
|
|
60324
60378
|
color: "#EFEFEF",
|
|
60325
60379
|
height: 8,
|
|
@@ -78968,8 +79022,8 @@ var HeaderComponent = function HeaderComponent(_ref) {
|
|
|
78968
79022
|
}))));
|
|
78969
79023
|
};
|
|
78970
79024
|
|
|
78971
|
-
var defaultFontSmall$
|
|
78972
|
-
var defaultFontLarge$
|
|
79025
|
+
var defaultFontSmall$2 = 12;
|
|
79026
|
+
var defaultFontLarge$2 = 20;
|
|
78973
79027
|
|
|
78974
79028
|
var usePreviewSurvey = function usePreviewSurvey() {
|
|
78975
79029
|
var _currentUser$roles, _currentUser$roles2, _currentUser$roles3;
|
|
@@ -79048,11 +79102,11 @@ var usePreviewSurvey = function usePreviewSurvey() {
|
|
|
79048
79102
|
};
|
|
79049
79103
|
|
|
79050
79104
|
var classFontSize = React.useMemo(function () {
|
|
79051
|
-
if (defaultFont == defaultFontLarge$
|
|
79105
|
+
if (defaultFont == defaultFontLarge$2) {
|
|
79052
79106
|
return "font-large";
|
|
79053
79107
|
}
|
|
79054
79108
|
|
|
79055
|
-
if (defaultFont == defaultFontSmall$
|
|
79109
|
+
if (defaultFont == defaultFontSmall$2) {
|
|
79056
79110
|
return "font-small";
|
|
79057
79111
|
}
|
|
79058
79112
|
|
|
@@ -86465,6 +86519,4090 @@ var CustomQuestionAlert = function CustomQuestionAlert() {
|
|
|
86465
86519
|
}))));
|
|
86466
86520
|
};
|
|
86467
86521
|
|
|
86522
|
+
var convertDataToDataChart$2 = function convertDataToDataChart(data) {
|
|
86523
|
+
if (data.length > 0) {
|
|
86524
|
+
return data.reduce(function (acc, cur) {
|
|
86525
|
+
return [].concat(acc, cur.resultQuestion.map(function (i) {
|
|
86526
|
+
var _i$questionText;
|
|
86527
|
+
|
|
86528
|
+
var quests = ((_i$questionText = i.questionText) === null || _i$questionText === void 0 ? void 0 : _i$questionText.split("</p>")) || [""];
|
|
86529
|
+
return quests[0].replace("<p>", "").trim();
|
|
86530
|
+
}).filter(function (i) {
|
|
86531
|
+
return !!i && !acc.includes(i);
|
|
86532
|
+
}));
|
|
86533
|
+
}, []);
|
|
86534
|
+
}
|
|
86535
|
+
|
|
86536
|
+
return [];
|
|
86537
|
+
};
|
|
86538
|
+
var convertToSeriesColumnChartAndPercent$1 = function convertToSeriesColumnChartAndPercent(dataCharts, data, isHardQuestion) {
|
|
86539
|
+
return dataCharts.map(function (dataName) {
|
|
86540
|
+
return {
|
|
86541
|
+
name: dataName,
|
|
86542
|
+
data: data.map(function (i) {
|
|
86543
|
+
var questionItem = i.resultQuestion.find(function (question) {
|
|
86544
|
+
return !isHardQuestion ? question.questionText.includes(dataName) : question.questionText == dataName;
|
|
86545
|
+
});
|
|
86546
|
+
return !!questionItem ? questionItem.avgOfStudentChoice : 0;
|
|
86547
|
+
})
|
|
86548
|
+
};
|
|
86549
|
+
});
|
|
86550
|
+
};
|
|
86551
|
+
var handleAveraged$1 = function handleAveraged(points, isStress) {
|
|
86552
|
+
if (!points || points.length === 0) return 0;
|
|
86553
|
+
var total = points.reduce(function (acc, cur) {
|
|
86554
|
+
return acc + (!isStress ? cur : (cur - 50) * 2);
|
|
86555
|
+
}, 0);
|
|
86556
|
+
return total / points.length;
|
|
86557
|
+
};
|
|
86558
|
+
var getConvertMinuteToHour$1 = function getConvertMinuteToHour(timeSecond, usingText) {
|
|
86559
|
+
var hours = Math.floor(timeSecond / 3600);
|
|
86560
|
+
var minutes = Math.floor(timeSecond % 3600 / 60);
|
|
86561
|
+
var remainingSeconds = timeSecond % 60;
|
|
86562
|
+
var formattedHours = String(hours).padStart(2, '0');
|
|
86563
|
+
var formattedMinutes = String(minutes).padStart(2, '0');
|
|
86564
|
+
var formattedSeconds = String(remainingSeconds).padStart(2, '0');
|
|
86565
|
+
return usingText ? formattedHours + " h " + formattedMinutes + " m" : formattedHours + ":" + formattedMinutes + ":" + formattedSeconds;
|
|
86566
|
+
};
|
|
86567
|
+
var getTimeOfFirstDayCurrentMonth = function getTimeOfFirstDayCurrentMonth() {
|
|
86568
|
+
var currentDate = new Date();
|
|
86569
|
+
var firstDayOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
|
|
86570
|
+
firstDayOfMonth.setHours(0, 0, 0, 0);
|
|
86571
|
+
var timestamp = firstDayOfMonth.getTime();
|
|
86572
|
+
return timestamp;
|
|
86573
|
+
};
|
|
86574
|
+
var getTimeCurrentDay = function getTimeCurrentDay() {
|
|
86575
|
+
var currentDate = new Date();
|
|
86576
|
+
currentDate.setHours(23, 59, 59, 999);
|
|
86577
|
+
var timestamp = currentDate.getTime();
|
|
86578
|
+
return timestamp;
|
|
86579
|
+
};
|
|
86580
|
+
var getTimeOfFirstDayLastMonth = function getTimeOfFirstDayLastMonth() {
|
|
86581
|
+
var currentDate = new Date();
|
|
86582
|
+
var previousMonth = currentDate.getMonth() - 1;
|
|
86583
|
+
var firstDayOfPreviousMonth = new Date(currentDate.getFullYear(), previousMonth, 1);
|
|
86584
|
+
firstDayOfPreviousMonth.setHours(0, 0, 0, 0);
|
|
86585
|
+
var timestamp = firstDayOfPreviousMonth.getTime();
|
|
86586
|
+
return timestamp;
|
|
86587
|
+
};
|
|
86588
|
+
var getTimeOfLastDayLastMonth = function getTimeOfLastDayLastMonth() {
|
|
86589
|
+
var currentDate = new Date();
|
|
86590
|
+
var firstDayOfCurrentMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
|
|
86591
|
+
var lastDayOfPreviousMonth = new Date(firstDayOfCurrentMonth);
|
|
86592
|
+
lastDayOfPreviousMonth.setDate(0);
|
|
86593
|
+
lastDayOfPreviousMonth.setHours(23, 59, 59, 999);
|
|
86594
|
+
var timestamp = lastDayOfPreviousMonth.getTime();
|
|
86595
|
+
return timestamp;
|
|
86596
|
+
};
|
|
86597
|
+
|
|
86598
|
+
var getAdminGeneralTipApi = function getAdminGeneralTipApi() {
|
|
86599
|
+
return marioCore.api.get(marioCore.BASE_URL + "/api/Report/get-admin-tips");
|
|
86600
|
+
};
|
|
86601
|
+
var getGradeUsageApi = function getGradeUsageApi() {
|
|
86602
|
+
return marioCore.api.get(marioCore.BASE_URL + "/api/Report/admin-total-grade");
|
|
86603
|
+
};
|
|
86604
|
+
|
|
86605
|
+
var useGeneralTip = function useGeneralTip() {
|
|
86606
|
+
var dispatch = reactRedux.useDispatch();
|
|
86607
|
+
|
|
86608
|
+
var _useState = React.useState([]),
|
|
86609
|
+
generalTips = _useState[0],
|
|
86610
|
+
setGeneralTips = _useState[1];
|
|
86611
|
+
|
|
86612
|
+
var getDataAdminGeneralTip = function getDataAdminGeneralTip() {
|
|
86613
|
+
try {
|
|
86614
|
+
var _temp3 = function _temp3() {
|
|
86615
|
+
dispatch(marioCore.setLoading(false));
|
|
86616
|
+
};
|
|
86617
|
+
|
|
86618
|
+
dispatch(marioCore.setLoading(true));
|
|
86619
|
+
|
|
86620
|
+
var _temp4 = _catch(function () {
|
|
86621
|
+
return Promise.resolve(getAdminGeneralTipApi()).then(function (res) {
|
|
86622
|
+
if (res) {
|
|
86623
|
+
setGeneralTips(res.data);
|
|
86624
|
+
}
|
|
86625
|
+
});
|
|
86626
|
+
}, function (err) {
|
|
86627
|
+
var _err$response, _err$response$data;
|
|
86628
|
+
|
|
86629
|
+
dispatch(marioCore.setAlert({
|
|
86630
|
+
type: "danger",
|
|
86631
|
+
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
|
|
86632
|
+
}));
|
|
86633
|
+
});
|
|
86634
|
+
|
|
86635
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
86636
|
+
} catch (e) {
|
|
86637
|
+
return Promise.reject(e);
|
|
86638
|
+
}
|
|
86639
|
+
};
|
|
86640
|
+
|
|
86641
|
+
return {
|
|
86642
|
+
generalTips: generalTips,
|
|
86643
|
+
getDataAdminGeneralTip: getDataAdminGeneralTip
|
|
86644
|
+
};
|
|
86645
|
+
};
|
|
86646
|
+
|
|
86647
|
+
var useViewStudent = function useViewStudent() {
|
|
86648
|
+
var dispatch = reactRedux.useDispatch();
|
|
86649
|
+
|
|
86650
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
86651
|
+
t = _useTranslation.t;
|
|
86652
|
+
|
|
86653
|
+
var history = reactRouterDom.useHistory();
|
|
86654
|
+
|
|
86655
|
+
var _useState = React.useState(""),
|
|
86656
|
+
searchStringStudent = _useState[0],
|
|
86657
|
+
setSearchStringStudent = _useState[1];
|
|
86658
|
+
|
|
86659
|
+
var _useState2 = React.useState([]),
|
|
86660
|
+
dataStudents = _useState2[0],
|
|
86661
|
+
setDataStudents = _useState2[1];
|
|
86662
|
+
|
|
86663
|
+
var _useState3 = React.useState({
|
|
86664
|
+
id: '',
|
|
86665
|
+
fullName: '',
|
|
86666
|
+
studentId: 0
|
|
86667
|
+
}),
|
|
86668
|
+
studentSelected = _useState3[0],
|
|
86669
|
+
setStudentSelected = _useState3[1];
|
|
86670
|
+
|
|
86671
|
+
var timeout = React.useRef();
|
|
86672
|
+
|
|
86673
|
+
var handleAddNewStudent = function handleAddNewStudent() {
|
|
86674
|
+
history.push("/admin/create-user");
|
|
86675
|
+
};
|
|
86676
|
+
|
|
86677
|
+
var getDataStudents = React.useCallback(function () {
|
|
86678
|
+
try {
|
|
86679
|
+
var _temp3 = function _temp3() {
|
|
86680
|
+
marioCore.setLoading(false);
|
|
86681
|
+
};
|
|
86682
|
+
|
|
86683
|
+
marioCore.setLoading(true);
|
|
86684
|
+
|
|
86685
|
+
var _temp4 = _catch(function () {
|
|
86686
|
+
return Promise.resolve(getAllStudents(searchStringStudent)).then(function (res) {
|
|
86687
|
+
setDataStudents(res.data);
|
|
86688
|
+
});
|
|
86689
|
+
}, function (err) {
|
|
86690
|
+
var _err$response, _err$response$data;
|
|
86691
|
+
|
|
86692
|
+
dispatch(marioCore.setAlert({
|
|
86693
|
+
type: "danger",
|
|
86694
|
+
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
|
|
86695
|
+
}));
|
|
86696
|
+
});
|
|
86697
|
+
|
|
86698
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
86699
|
+
} catch (e) {
|
|
86700
|
+
return Promise.reject(e);
|
|
86701
|
+
}
|
|
86702
|
+
}, [searchStringStudent]);
|
|
86703
|
+
|
|
86704
|
+
var handleViewStudent = function handleViewStudent() {
|
|
86705
|
+
try {
|
|
86706
|
+
if (!studentSelected || (studentSelected === null || studentSelected === void 0 ? void 0 : studentSelected.studentId) === 0) {
|
|
86707
|
+
throw new Error(t("please_select_a_student"));
|
|
86708
|
+
} else {
|
|
86709
|
+
history.push("/admin/user/" + (studentSelected === null || studentSelected === void 0 ? void 0 : studentSelected.id));
|
|
86710
|
+
}
|
|
86711
|
+
} catch (err) {
|
|
86712
|
+
dispatch(marioCore.setAlert({
|
|
86713
|
+
type: "danger",
|
|
86714
|
+
message: err.message
|
|
86715
|
+
}));
|
|
86716
|
+
}
|
|
86717
|
+
};
|
|
86718
|
+
|
|
86719
|
+
return {
|
|
86720
|
+
handleAddNewStudent: handleAddNewStudent,
|
|
86721
|
+
dataStudents: dataStudents,
|
|
86722
|
+
searchStringStudent: searchStringStudent,
|
|
86723
|
+
setSearchStringStudent: setSearchStringStudent,
|
|
86724
|
+
studentSelected: studentSelected,
|
|
86725
|
+
setStudentSelected: setStudentSelected,
|
|
86726
|
+
handleViewStudent: handleViewStudent,
|
|
86727
|
+
getDataStudents: getDataStudents,
|
|
86728
|
+
setDataStudents: setDataStudents,
|
|
86729
|
+
timeout: timeout
|
|
86730
|
+
};
|
|
86731
|
+
};
|
|
86732
|
+
|
|
86733
|
+
var INITIAL_STUDENT_SKILL_QUESTION = {
|
|
86734
|
+
studentPercentageStress: 0,
|
|
86735
|
+
studentPercentageUnsafe: 0,
|
|
86736
|
+
studentSafetyQuestionCount: 0,
|
|
86737
|
+
studentStressQuestionCount: 0,
|
|
86738
|
+
responseStudentStress: [],
|
|
86739
|
+
responseStudentSafety: []
|
|
86740
|
+
};
|
|
86741
|
+
var INITIAl_HOMEPAGE_STATIC = {
|
|
86742
|
+
totalStudent: 0,
|
|
86743
|
+
totalCheckIn: 0,
|
|
86744
|
+
totalCheckInLastMonth: 0,
|
|
86745
|
+
totalConversationTime: 0,
|
|
86746
|
+
totalConversationTimeLastMonth: 0,
|
|
86747
|
+
totalOneToOneConversation: 0,
|
|
86748
|
+
totalOneToOneConversationLastMonth: 0,
|
|
86749
|
+
totalConference: 0,
|
|
86750
|
+
totalConferenceLastMonth: 0,
|
|
86751
|
+
avgClassReflection: 0,
|
|
86752
|
+
avgClassReflectionLastMonth: 0
|
|
86753
|
+
};
|
|
86754
|
+
var INITIAl_SCHOOL_INFO = {
|
|
86755
|
+
logo: '',
|
|
86756
|
+
name: ''
|
|
86757
|
+
};
|
|
86758
|
+
var SAFETY_QUESTION$1 = "safety";
|
|
86759
|
+
var STRESS_QUESTION$1 = "stress";
|
|
86760
|
+
var PREPAREDNESS_QUESTION$1 = ["energy", "focus", "happiness"];
|
|
86761
|
+
var SUCCESS_INDICATORS_QUESTION$1 = ["well-being", "growth", "relationships", "productivity", "self-efficacy", "academics"];
|
|
86762
|
+
var readinessToLearnName$1 = "readiness_to_learn";
|
|
86763
|
+
var DATE_MIN_VALUE$1 = "0001-01-01T00:00:00";
|
|
86764
|
+
|
|
86765
|
+
var REPORT_URL$1 = marioCore.BASE_URL + "/api/report";
|
|
86766
|
+
var getAllTotalStatic = function getAllTotalStatic(filter) {
|
|
86767
|
+
return marioCore.api.get(REPORT_URL$1 + "/dashboard-total-static", {
|
|
86768
|
+
params: filter
|
|
86769
|
+
});
|
|
86770
|
+
};
|
|
86771
|
+
|
|
86772
|
+
var useSchoolUsage = function useSchoolUsage() {
|
|
86773
|
+
var dispatch = reactRedux.useDispatch();
|
|
86774
|
+
|
|
86775
|
+
var _useState = React.useState(INITIAl_HOMEPAGE_STATIC),
|
|
86776
|
+
listTotalTime = _useState[0],
|
|
86777
|
+
setListTotalTime = _useState[1];
|
|
86778
|
+
|
|
86779
|
+
var _useState2 = React.useState(INITIAl_SCHOOL_INFO),
|
|
86780
|
+
schoolInfo = _useState2[0],
|
|
86781
|
+
setSchoolInfo = _useState2[1];
|
|
86782
|
+
|
|
86783
|
+
var filter = {
|
|
86784
|
+
StartDate: getTimeOfFirstDayCurrentMonth(),
|
|
86785
|
+
EndDate: getTimeCurrentDay(),
|
|
86786
|
+
StartDateLastMonth: getTimeOfFirstDayLastMonth(),
|
|
86787
|
+
EndDateLastMonth: getTimeOfLastDayLastMonth()
|
|
86788
|
+
};
|
|
86789
|
+
|
|
86790
|
+
var getTotalTime = function getTotalTime() {
|
|
86791
|
+
try {
|
|
86792
|
+
var _temp3 = function _temp3() {
|
|
86793
|
+
dispatch(marioCore.setLoading(false));
|
|
86794
|
+
};
|
|
86795
|
+
|
|
86796
|
+
dispatch(marioCore.setLoading(true));
|
|
86797
|
+
|
|
86798
|
+
var _temp4 = _catch(function () {
|
|
86799
|
+
return Promise.resolve(getAllTotalStatic(filter)).then(function (res) {
|
|
86800
|
+
if (res) {
|
|
86801
|
+
var _res$data;
|
|
86802
|
+
|
|
86803
|
+
setListTotalTime(res === null || res === void 0 ? void 0 : res.data);
|
|
86804
|
+
setSchoolInfo(res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.schoolInfo);
|
|
86805
|
+
}
|
|
86806
|
+
});
|
|
86807
|
+
}, function (err) {
|
|
86808
|
+
var _err$response, _err$response$data;
|
|
86809
|
+
|
|
86810
|
+
dispatch(marioCore.setAlert({
|
|
86811
|
+
type: "danger",
|
|
86812
|
+
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
|
|
86813
|
+
}));
|
|
86814
|
+
});
|
|
86815
|
+
|
|
86816
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
86817
|
+
} catch (e) {
|
|
86818
|
+
return Promise.reject(e);
|
|
86819
|
+
}
|
|
86820
|
+
};
|
|
86821
|
+
|
|
86822
|
+
var totalCardData = [{
|
|
86823
|
+
id: "total_check_in",
|
|
86824
|
+
title: 'Total Check-in',
|
|
86825
|
+
value: listTotalTime === null || listTotalTime === void 0 ? void 0 : listTotalTime.totalCheckIn,
|
|
86826
|
+
lastMonthValue: listTotalTime.totalCheckInLastMonth,
|
|
86827
|
+
totalStudent: listTotalTime.totalStudent
|
|
86828
|
+
}, {
|
|
86829
|
+
id: "total_conversations_time",
|
|
86830
|
+
title: 'Total Conversations time',
|
|
86831
|
+
value: listTotalTime === null || listTotalTime === void 0 ? void 0 : listTotalTime.totalConversationTime,
|
|
86832
|
+
lastMonthValue: listTotalTime.totalConversationTimeLastMonth
|
|
86833
|
+
}, {
|
|
86834
|
+
id: "total_1_to_1",
|
|
86835
|
+
title: "Total 1-1 Conversation",
|
|
86836
|
+
value: listTotalTime === null || listTotalTime === void 0 ? void 0 : listTotalTime.totalOneToOneConversation,
|
|
86837
|
+
lastMonthValue: listTotalTime.totalOneToOneConversationLastMonth
|
|
86838
|
+
}, {
|
|
86839
|
+
id: "total_conferences",
|
|
86840
|
+
title: "Total Conferences",
|
|
86841
|
+
value: listTotalTime === null || listTotalTime === void 0 ? void 0 : listTotalTime.totalConference,
|
|
86842
|
+
lastMonthValue: listTotalTime === null || listTotalTime === void 0 ? void 0 : listTotalTime.totalConferenceLastMonth
|
|
86843
|
+
}, {
|
|
86844
|
+
id: "total_class_reflections",
|
|
86845
|
+
title: "Total Class Reflections",
|
|
86846
|
+
value: listTotalTime === null || listTotalTime === void 0 ? void 0 : listTotalTime.avgClassReflection,
|
|
86847
|
+
lastMonthValue: listTotalTime === null || listTotalTime === void 0 ? void 0 : listTotalTime.avgClassReflectionLastMonth
|
|
86848
|
+
}];
|
|
86849
|
+
return {
|
|
86850
|
+
totalCardData: totalCardData,
|
|
86851
|
+
schoolInfo: schoolInfo,
|
|
86852
|
+
getTotalTime: getTotalTime
|
|
86853
|
+
};
|
|
86854
|
+
};
|
|
86855
|
+
|
|
86856
|
+
var getOneToOneApi = function getOneToOneApi(filter) {
|
|
86857
|
+
return marioCore.api.get(marioCore.BASE_URL + "/api/Student/overview-chart", {
|
|
86858
|
+
params: {
|
|
86859
|
+
studentId: filter.studentId,
|
|
86860
|
+
startDate: filter.timeSearch.startDate,
|
|
86861
|
+
endDate: filter.timeSearch.endDate,
|
|
86862
|
+
optionDate: filter.timeSearch.optionDate,
|
|
86863
|
+
type: "OneToOne",
|
|
86864
|
+
grade: filter.gradeFilter,
|
|
86865
|
+
roles: filter.roles,
|
|
86866
|
+
academicYearId: filter.academicYearId
|
|
86867
|
+
}
|
|
86868
|
+
});
|
|
86869
|
+
};
|
|
86870
|
+
var getStudentQuestionSkillApi = function getStudentQuestionSkillApi(filter) {
|
|
86871
|
+
return marioCore.api.get(marioCore.BASE_URL + "/api/Report/student-skill-question", {
|
|
86872
|
+
params: {
|
|
86873
|
+
studentId: filter.studentId,
|
|
86874
|
+
startDate: filter.startDate,
|
|
86875
|
+
endDate: filter.endDate,
|
|
86876
|
+
grade: filter.gradeFilter,
|
|
86877
|
+
roles: filter.roles,
|
|
86878
|
+
academicYearId: filter.academicYearId,
|
|
86879
|
+
optionDate: filter.optionDate
|
|
86880
|
+
}
|
|
86881
|
+
});
|
|
86882
|
+
};
|
|
86883
|
+
|
|
86884
|
+
var getDataOneToOneServices = function getDataOneToOneServices(dispatch, filter) {
|
|
86885
|
+
try {
|
|
86886
|
+
dispatch(marioCore.setLoading(true));
|
|
86887
|
+
return Promise.resolve(_catch(function () {
|
|
86888
|
+
return Promise.resolve(getOneToOneApi(filter)).then(function (res) {
|
|
86889
|
+
dispatch(marioCore.setLoading(false));
|
|
86890
|
+
return res === null || res === void 0 ? void 0 : res.data;
|
|
86891
|
+
});
|
|
86892
|
+
}, function (err) {
|
|
86893
|
+
dispatch(marioCore.setAlert({
|
|
86894
|
+
type: "danger",
|
|
86895
|
+
message: err.message
|
|
86896
|
+
}));
|
|
86897
|
+
dispatch(marioCore.setLoading(false));
|
|
86898
|
+
}));
|
|
86899
|
+
} catch (e) {
|
|
86900
|
+
return Promise.reject(e);
|
|
86901
|
+
}
|
|
86902
|
+
};
|
|
86903
|
+
|
|
86904
|
+
var useStudentWellness = function useStudentWellness(studentId, filterDateChart, gradeFilter, academicYearId) {
|
|
86905
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
86906
|
+
t = _useTranslation.t;
|
|
86907
|
+
|
|
86908
|
+
var dispatch = reactRedux.useDispatch();
|
|
86909
|
+
var roles = reactRedux.useSelector(function (state) {
|
|
86910
|
+
var _state$common;
|
|
86911
|
+
|
|
86912
|
+
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.user.roles;
|
|
86913
|
+
});
|
|
86914
|
+
|
|
86915
|
+
var _useState = React.useState([]),
|
|
86916
|
+
stressData = _useState[0],
|
|
86917
|
+
setStressData = _useState[1];
|
|
86918
|
+
|
|
86919
|
+
var _useState2 = React.useState([]),
|
|
86920
|
+
safetyData = _useState2[0],
|
|
86921
|
+
setSafetyData = _useState2[1];
|
|
86922
|
+
|
|
86923
|
+
var _useState3 = React.useState([]),
|
|
86924
|
+
preparednessData = _useState3[0],
|
|
86925
|
+
setPreparednessData = _useState3[1];
|
|
86926
|
+
|
|
86927
|
+
var _useState4 = React.useState([]),
|
|
86928
|
+
successIndicatorsData = _useState4[0],
|
|
86929
|
+
setSuccessIndicatorsData = _useState4[1];
|
|
86930
|
+
|
|
86931
|
+
var _useState5 = React.useState([]),
|
|
86932
|
+
avgQuestionLastMonth = _useState5[0],
|
|
86933
|
+
setAvgQuestionLastMonth = _useState5[1];
|
|
86934
|
+
|
|
86935
|
+
var _useState6 = React.useState([]),
|
|
86936
|
+
activeColumnSuccessIndicators = _useState6[0],
|
|
86937
|
+
setActiveColumnSuccessIndicators = _useState6[1];
|
|
86938
|
+
|
|
86939
|
+
var _useState7 = React.useState([]),
|
|
86940
|
+
activeColumnPreparedness = _useState7[0],
|
|
86941
|
+
setActiveColumnPreparedness = _useState7[1];
|
|
86942
|
+
|
|
86943
|
+
var _useState8 = React.useState([]),
|
|
86944
|
+
dataConvertedOneToOne = _useState8[0],
|
|
86945
|
+
setDataConvertedOneToOne = _useState8[1];
|
|
86946
|
+
|
|
86947
|
+
var _useState9 = React.useState([]),
|
|
86948
|
+
monthsOneToOne = _useState9[0],
|
|
86949
|
+
setMonthsOneToOne = _useState9[1];
|
|
86950
|
+
|
|
86951
|
+
var _useState10 = React.useState([]),
|
|
86952
|
+
dayOfWeekOneToOne = _useState10[0],
|
|
86953
|
+
setDayOfWeekOneToOne = _useState10[1];
|
|
86954
|
+
|
|
86955
|
+
var _useState11 = React.useState(INITIAL_STUDENT_SKILL_QUESTION),
|
|
86956
|
+
studentSkillQuestion = _useState11[0],
|
|
86957
|
+
setStudentSkillQuestion = _useState11[1];
|
|
86958
|
+
|
|
86959
|
+
var handleActiveColumnOneToOne = function handleActiveColumnOneToOne(index, name) {
|
|
86960
|
+
if (name !== t(readinessToLearnName$1)) {
|
|
86961
|
+
var newActiveColumn = [].concat(activeColumnSuccessIndicators);
|
|
86962
|
+
newActiveColumn[index] = !newActiveColumn[index];
|
|
86963
|
+
setActiveColumnSuccessIndicators(newActiveColumn);
|
|
86964
|
+
} else {
|
|
86965
|
+
var _newActiveColumn = [].concat(activeColumnPreparedness);
|
|
86966
|
+
|
|
86967
|
+
_newActiveColumn[index] = !_newActiveColumn[index];
|
|
86968
|
+
setActiveColumnPreparedness(_newActiveColumn);
|
|
86969
|
+
}
|
|
86970
|
+
};
|
|
86971
|
+
|
|
86972
|
+
var getDataOneToOne = function getDataOneToOne() {
|
|
86973
|
+
try {
|
|
86974
|
+
var timeSearch = {
|
|
86975
|
+
startDate: filterDateChart.startDate,
|
|
86976
|
+
endDate: filterDateChart.endDate
|
|
86977
|
+
};
|
|
86978
|
+
var filterParams = {
|
|
86979
|
+
studentId: studentId,
|
|
86980
|
+
timeSearch: timeSearch,
|
|
86981
|
+
gradeFilter: gradeFilter,
|
|
86982
|
+
roles: roles,
|
|
86983
|
+
academicYearId: academicYearId
|
|
86984
|
+
};
|
|
86985
|
+
return Promise.resolve(getDataOneToOneServices(dispatch, filterParams)).then(function (res) {
|
|
86986
|
+
var _data$overviewQuestio;
|
|
86987
|
+
|
|
86988
|
+
var data = res;
|
|
86989
|
+
var questions = convertDataToDataChart$2(data === null || data === void 0 ? void 0 : data.overviewQuestionChoice);
|
|
86990
|
+
var months = (data === null || data === void 0 ? void 0 : (_data$overviewQuestio = data.overviewQuestionChoice) === null || _data$overviewQuestio === void 0 ? void 0 : _data$overviewQuestio.map(function (i) {
|
|
86991
|
+
return (i === null || i === void 0 ? void 0 : i.month) || "";
|
|
86992
|
+
})) || [];
|
|
86993
|
+
var newSeriesOneToOne = convertToSeriesColumnChartAndPercent$1(questions, data === null || data === void 0 ? void 0 : data.overviewQuestionChoice);
|
|
86994
|
+
var dayOfWeeks = data.overviewQuestionChoice.map(function (r) {
|
|
86995
|
+
return marioCore.utcToLocalTime(r.startDate, "DD-MM-yyyy") + " - " + marioCore.utcToLocalTime(r.endDate, "DD-MM-yyyy");
|
|
86996
|
+
});
|
|
86997
|
+
var preparednessQuestionData = newSeriesOneToOne.filter(function (r) {
|
|
86998
|
+
return PREPAREDNESS_QUESTION$1.includes(r.name.toLocaleLowerCase());
|
|
86999
|
+
});
|
|
87000
|
+
var successIndicatorsQuestionData = newSeriesOneToOne.filter(function (r) {
|
|
87001
|
+
return SUCCESS_INDICATORS_QUESTION$1.includes(r.name.toLocaleLowerCase());
|
|
87002
|
+
});
|
|
87003
|
+
|
|
87004
|
+
if (preparednessQuestionData.length >= 0) {
|
|
87005
|
+
if (activeColumnPreparedness.filter(function (r) {
|
|
87006
|
+
return r == true;
|
|
87007
|
+
}).length == 0 || activeColumnPreparedness.length != preparednessQuestionData.length) {
|
|
87008
|
+
setActiveColumnPreparedness([true].concat(preparednessQuestionData.map(function (_i) {
|
|
87009
|
+
return false;
|
|
87010
|
+
}).splice(0, preparednessQuestionData.length - 1)));
|
|
87011
|
+
}
|
|
87012
|
+
}
|
|
87013
|
+
|
|
87014
|
+
if (successIndicatorsQuestionData.length >= 0) {
|
|
87015
|
+
if (activeColumnSuccessIndicators.filter(function (r) {
|
|
87016
|
+
return r == true;
|
|
87017
|
+
}).length == 0 || activeColumnSuccessIndicators.length != successIndicatorsQuestionData.length) {
|
|
87018
|
+
setActiveColumnSuccessIndicators([true].concat(successIndicatorsQuestionData.map(function (_i) {
|
|
87019
|
+
return false;
|
|
87020
|
+
}).splice(0, successIndicatorsQuestionData.length - 1)));
|
|
87021
|
+
}
|
|
87022
|
+
}
|
|
87023
|
+
|
|
87024
|
+
if (!preparednessQuestionData.length) {
|
|
87025
|
+
preparednessQuestionData = [{
|
|
87026
|
+
name: "Energy",
|
|
87027
|
+
data: []
|
|
87028
|
+
}, {
|
|
87029
|
+
name: "Focus",
|
|
87030
|
+
data: []
|
|
87031
|
+
}, {
|
|
87032
|
+
name: "Happiness",
|
|
87033
|
+
data: []
|
|
87034
|
+
}];
|
|
87035
|
+
} else {
|
|
87036
|
+
preparednessQuestionData = preparednessQuestionData.sort(function (a, b) {
|
|
87037
|
+
if (a.name.toLocaleLowerCase() > b.name.toLocaleLowerCase()) return 1;
|
|
87038
|
+
if (a.name.toLocaleLowerCase() < b.name.toLocaleLowerCase()) return -1;
|
|
87039
|
+
return 0;
|
|
87040
|
+
});
|
|
87041
|
+
}
|
|
87042
|
+
|
|
87043
|
+
var stressDataQuestion = newSeriesOneToOne.filter(function (r) {
|
|
87044
|
+
return r.name.toLocaleLowerCase() == STRESS_QUESTION$1;
|
|
87045
|
+
});
|
|
87046
|
+
var stressDataConvert = stressDataQuestion.map(function (r) {
|
|
87047
|
+
return {
|
|
87048
|
+
name: r.name,
|
|
87049
|
+
data: r.data.map(function (i) {
|
|
87050
|
+
return i / 2 + 50;
|
|
87051
|
+
})
|
|
87052
|
+
};
|
|
87053
|
+
});
|
|
87054
|
+
setDataConvertedOneToOne(questions);
|
|
87055
|
+
setDayOfWeekOneToOne(dayOfWeeks);
|
|
87056
|
+
setMonthsOneToOne(months);
|
|
87057
|
+
setStressData(stressDataConvert);
|
|
87058
|
+
setSafetyData(newSeriesOneToOne.filter(function (r) {
|
|
87059
|
+
return r.name.toLocaleLowerCase() == SAFETY_QUESTION$1;
|
|
87060
|
+
}));
|
|
87061
|
+
setPreparednessData(preparednessQuestionData);
|
|
87062
|
+
setSuccessIndicatorsData(successIndicatorsQuestionData);
|
|
87063
|
+
setAvgQuestionLastMonth(data.overViewQuestionLastMonth);
|
|
87064
|
+
});
|
|
87065
|
+
} catch (e) {
|
|
87066
|
+
return Promise.reject(e);
|
|
87067
|
+
}
|
|
87068
|
+
};
|
|
87069
|
+
|
|
87070
|
+
var getDataStudentSkillServices = function getDataStudentSkillServices() {
|
|
87071
|
+
try {
|
|
87072
|
+
var _temp3 = function _temp3() {
|
|
87073
|
+
dispatch(marioCore.setLoading(false));
|
|
87074
|
+
};
|
|
87075
|
+
|
|
87076
|
+
dispatch(marioCore.setLoading(true));
|
|
87077
|
+
|
|
87078
|
+
var _temp4 = _catch(function () {
|
|
87079
|
+
var filterParams = {
|
|
87080
|
+
studentId: studentId,
|
|
87081
|
+
startDate: filterDateChart.startDate,
|
|
87082
|
+
endDate: filterDateChart.endDate,
|
|
87083
|
+
gradeFilter: gradeFilter || [],
|
|
87084
|
+
roles: roles,
|
|
87085
|
+
academicYearId: academicYearId,
|
|
87086
|
+
optionDate: filterDateChart === null || filterDateChart === void 0 ? void 0 : filterDateChart.optionDate
|
|
87087
|
+
};
|
|
87088
|
+
return Promise.resolve(getStudentQuestionSkillApi(filterParams)).then(function (res) {
|
|
87089
|
+
setStudentSkillQuestion(res.data);
|
|
87090
|
+
});
|
|
87091
|
+
}, function (err) {
|
|
87092
|
+
dispatch(marioCore.setAlert({
|
|
87093
|
+
type: "danger",
|
|
87094
|
+
message: err.message
|
|
87095
|
+
}));
|
|
87096
|
+
});
|
|
87097
|
+
|
|
87098
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
87099
|
+
} catch (e) {
|
|
87100
|
+
return Promise.reject(e);
|
|
87101
|
+
}
|
|
87102
|
+
};
|
|
87103
|
+
|
|
87104
|
+
return {
|
|
87105
|
+
handleActiveColumnOneToOne: handleActiveColumnOneToOne,
|
|
87106
|
+
activeColumnSuccessIndicators: activeColumnSuccessIndicators,
|
|
87107
|
+
monthsOneToOne: monthsOneToOne,
|
|
87108
|
+
dataConvertedOneToOne: dataConvertedOneToOne,
|
|
87109
|
+
dayOfWeekOneToOne: dayOfWeekOneToOne,
|
|
87110
|
+
stressData: stressData,
|
|
87111
|
+
safetyData: safetyData,
|
|
87112
|
+
preparednessData: preparednessData,
|
|
87113
|
+
successIndicatorsData: successIndicatorsData,
|
|
87114
|
+
avgQuestionLastMonth: avgQuestionLastMonth,
|
|
87115
|
+
activeColumnPreparedness: activeColumnPreparedness,
|
|
87116
|
+
studentSkillQuestion: studentSkillQuestion,
|
|
87117
|
+
getDataStudentSkillServices: getDataStudentSkillServices,
|
|
87118
|
+
getDataOneToOne: getDataOneToOne
|
|
87119
|
+
};
|
|
87120
|
+
};
|
|
87121
|
+
|
|
87122
|
+
var useGradeUsage = function useGradeUsage() {
|
|
87123
|
+
var dispatch = reactRedux.useDispatch();
|
|
87124
|
+
|
|
87125
|
+
var _useState = React.useState([]),
|
|
87126
|
+
dataGradeUsage = _useState[0],
|
|
87127
|
+
setDataGradeUsage = _useState[1];
|
|
87128
|
+
|
|
87129
|
+
var getDataGradeUsage = function getDataGradeUsage() {
|
|
87130
|
+
try {
|
|
87131
|
+
var _temp3 = function _temp3() {
|
|
87132
|
+
dispatch(marioCore.setLoading(false));
|
|
87133
|
+
};
|
|
87134
|
+
|
|
87135
|
+
dispatch(marioCore.setLoading(true));
|
|
87136
|
+
|
|
87137
|
+
var _temp4 = _catch(function () {
|
|
87138
|
+
return Promise.resolve(getGradeUsageApi()).then(function (res) {
|
|
87139
|
+
if (res) {
|
|
87140
|
+
setDataGradeUsage(res.data);
|
|
87141
|
+
}
|
|
87142
|
+
});
|
|
87143
|
+
}, function (err) {
|
|
87144
|
+
var _err$response, _err$response$data;
|
|
87145
|
+
|
|
87146
|
+
dispatch(marioCore.setAlert({
|
|
87147
|
+
type: "danger",
|
|
87148
|
+
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
|
|
87149
|
+
}));
|
|
87150
|
+
});
|
|
87151
|
+
|
|
87152
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
87153
|
+
} catch (e) {
|
|
87154
|
+
return Promise.reject(e);
|
|
87155
|
+
}
|
|
87156
|
+
};
|
|
87157
|
+
|
|
87158
|
+
return {
|
|
87159
|
+
dataGradeUsage: dataGradeUsage,
|
|
87160
|
+
getDataGradeUsage: getDataGradeUsage
|
|
87161
|
+
};
|
|
87162
|
+
};
|
|
87163
|
+
|
|
87164
|
+
var useHome = function useHome() {
|
|
87165
|
+
var currentUser = reactRedux.useSelector(function (state) {
|
|
87166
|
+
var _state$common;
|
|
87167
|
+
|
|
87168
|
+
return (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.user;
|
|
87169
|
+
});
|
|
87170
|
+
var useStylesBox = core$1.makeStyles(function () {
|
|
87171
|
+
return core$1.createStyles({
|
|
87172
|
+
card: {
|
|
87173
|
+
boxShadow: '0px 0px 24px 0px #608DE03D',
|
|
87174
|
+
padding: 32,
|
|
87175
|
+
borderRadius: 16
|
|
87176
|
+
},
|
|
87177
|
+
cardContent: {
|
|
87178
|
+
padding: 0,
|
|
87179
|
+
'&:last-child': {
|
|
87180
|
+
paddingBottom: 0
|
|
87181
|
+
}
|
|
87182
|
+
}
|
|
87183
|
+
});
|
|
87184
|
+
});
|
|
87185
|
+
var dateOfLastMonth = {
|
|
87186
|
+
startDate: moment(getTimeOfFirstDayLastMonth()).format('DD.MM.YYYY'),
|
|
87187
|
+
endDate: moment(getTimeOfLastDayLastMonth()).format('DD.MM.YYYY')
|
|
87188
|
+
};
|
|
87189
|
+
|
|
87190
|
+
var _useGeneralTip = useGeneralTip(),
|
|
87191
|
+
generalTips = _useGeneralTip.generalTips,
|
|
87192
|
+
getDataAdminGeneralTip = _useGeneralTip.getDataAdminGeneralTip;
|
|
87193
|
+
|
|
87194
|
+
var _useViewStudent = useViewStudent(),
|
|
87195
|
+
handleAddNewStudent = _useViewStudent.handleAddNewStudent,
|
|
87196
|
+
dataStudents = _useViewStudent.dataStudents,
|
|
87197
|
+
searchStringStudent = _useViewStudent.searchStringStudent,
|
|
87198
|
+
setSearchStringStudent = _useViewStudent.setSearchStringStudent,
|
|
87199
|
+
studentSelected = _useViewStudent.studentSelected,
|
|
87200
|
+
setStudentSelected = _useViewStudent.setStudentSelected,
|
|
87201
|
+
handleViewStudent = _useViewStudent.handleViewStudent,
|
|
87202
|
+
getDataStudents = _useViewStudent.getDataStudents,
|
|
87203
|
+
setDataStudents = _useViewStudent.setDataStudents,
|
|
87204
|
+
timeout = _useViewStudent.timeout;
|
|
87205
|
+
|
|
87206
|
+
var _useSchoolUsage = useSchoolUsage(),
|
|
87207
|
+
totalCardData = _useSchoolUsage.totalCardData,
|
|
87208
|
+
schoolInfo = _useSchoolUsage.schoolInfo,
|
|
87209
|
+
getTotalTime = _useSchoolUsage.getTotalTime;
|
|
87210
|
+
|
|
87211
|
+
var _useStudentWellness = useStudentWellness(currentUser.roles.includes("Student") ? currentUser === null || currentUser === void 0 ? void 0 : currentUser.studentId : undefined, {
|
|
87212
|
+
startDate: moment().startOf("month").valueOf(),
|
|
87213
|
+
endDate: moment().endOf("month").valueOf()
|
|
87214
|
+
}, undefined),
|
|
87215
|
+
avgQuestionLastMonth = _useStudentWellness.avgQuestionLastMonth,
|
|
87216
|
+
stressData = _useStudentWellness.stressData,
|
|
87217
|
+
safetyData = _useStudentWellness.safetyData,
|
|
87218
|
+
studentSkillQuestion = _useStudentWellness.studentSkillQuestion,
|
|
87219
|
+
getDataStudentSkillServices = _useStudentWellness.getDataStudentSkillServices,
|
|
87220
|
+
getDataOneToOne = _useStudentWellness.getDataOneToOne;
|
|
87221
|
+
|
|
87222
|
+
var _useGradeUsage = useGradeUsage(),
|
|
87223
|
+
dataGradeUsage = _useGradeUsage.dataGradeUsage,
|
|
87224
|
+
getDataGradeUsage = _useGradeUsage.getDataGradeUsage;
|
|
87225
|
+
|
|
87226
|
+
var handleCallAllApi = function handleCallAllApi() {
|
|
87227
|
+
try {
|
|
87228
|
+
return Promise.resolve(getDataAdminGeneralTip()).then(function () {
|
|
87229
|
+
return Promise.resolve(getDataStudents()).then(function () {
|
|
87230
|
+
return Promise.resolve(getTotalTime()).then(function () {
|
|
87231
|
+
return Promise.resolve(getDataStudentSkillServices()).then(function () {
|
|
87232
|
+
return Promise.resolve(getDataOneToOne()).then(function () {
|
|
87233
|
+
return Promise.resolve(getDataGradeUsage()).then(function () {});
|
|
87234
|
+
});
|
|
87235
|
+
});
|
|
87236
|
+
});
|
|
87237
|
+
});
|
|
87238
|
+
});
|
|
87239
|
+
} catch (e) {
|
|
87240
|
+
return Promise.reject(e);
|
|
87241
|
+
}
|
|
87242
|
+
};
|
|
87243
|
+
|
|
87244
|
+
React.useEffect(function () {
|
|
87245
|
+
handleCallAllApi();
|
|
87246
|
+
}, []);
|
|
87247
|
+
React.useEffect(function () {
|
|
87248
|
+
timeout && timeout.current && clearTimeout(timeout.current);
|
|
87249
|
+
|
|
87250
|
+
if (!searchStringStudent || searchStringStudent.trim().length < 2) {
|
|
87251
|
+
setDataStudents([]);
|
|
87252
|
+
} else {
|
|
87253
|
+
timeout.current = setTimeout(getDataStudents, 300);
|
|
87254
|
+
}
|
|
87255
|
+
}, [searchStringStudent]);
|
|
87256
|
+
return {
|
|
87257
|
+
useStylesBox: useStylesBox,
|
|
87258
|
+
currentUser: currentUser,
|
|
87259
|
+
dateOfLastMonth: dateOfLastMonth,
|
|
87260
|
+
dataStudents: dataStudents,
|
|
87261
|
+
searchStringStudent: searchStringStudent,
|
|
87262
|
+
setSearchStringStudent: setSearchStringStudent,
|
|
87263
|
+
studentSelected: studentSelected,
|
|
87264
|
+
setStudentSelected: setStudentSelected,
|
|
87265
|
+
handleViewStudent: handleViewStudent,
|
|
87266
|
+
handleAddNewStudent: handleAddNewStudent,
|
|
87267
|
+
totalCardData: totalCardData,
|
|
87268
|
+
schoolInfo: schoolInfo,
|
|
87269
|
+
avgQuestionLastMonth: avgQuestionLastMonth,
|
|
87270
|
+
stressData: stressData,
|
|
87271
|
+
safetyData: safetyData,
|
|
87272
|
+
studentSkillQuestion: studentSkillQuestion,
|
|
87273
|
+
generalTips: generalTips,
|
|
87274
|
+
dataGradeUsage: dataGradeUsage
|
|
87275
|
+
};
|
|
87276
|
+
};
|
|
87277
|
+
|
|
87278
|
+
var useStyles$a = core$1.makeStyles(function () {
|
|
87279
|
+
return core$1.createStyles({
|
|
87280
|
+
title: {
|
|
87281
|
+
fontSize: 20,
|
|
87282
|
+
fontWeight: 600,
|
|
87283
|
+
lineHeight: '30px',
|
|
87284
|
+
marginBottom: 16
|
|
87285
|
+
},
|
|
87286
|
+
label: {
|
|
87287
|
+
fontSize: 16
|
|
87288
|
+
},
|
|
87289
|
+
tipItem: {
|
|
87290
|
+
display: 'flex'
|
|
87291
|
+
},
|
|
87292
|
+
tipIcon: {
|
|
87293
|
+
color: '#316CD9 !important'
|
|
87294
|
+
},
|
|
87295
|
+
tipText: {
|
|
87296
|
+
display: 'flex',
|
|
87297
|
+
alignItems: 'center'
|
|
87298
|
+
}
|
|
87299
|
+
});
|
|
87300
|
+
});
|
|
87301
|
+
|
|
87302
|
+
var AdminGeneralTip = function AdminGeneralTip(_ref) {
|
|
87303
|
+
var classBox = _ref.classBox,
|
|
87304
|
+
generalTips = _ref.generalTips;
|
|
87305
|
+
var classes = useStyles$a();
|
|
87306
|
+
return React__default.createElement(core$1.Card, {
|
|
87307
|
+
className: classBox.card
|
|
87308
|
+
}, React__default.createElement(core$1.CardContent, {
|
|
87309
|
+
className: classBox.cardContent
|
|
87310
|
+
}, React__default.createElement(core$1.Typography, {
|
|
87311
|
+
variant: "h4",
|
|
87312
|
+
component: "h4",
|
|
87313
|
+
className: classes.title
|
|
87314
|
+
}, "Admin General Tips"), React__default.createElement(core$1.Grid, {
|
|
87315
|
+
container: true
|
|
87316
|
+
}, generalTips.map(function (item) {
|
|
87317
|
+
return React__default.createElement(core$1.Grid, {
|
|
87318
|
+
item: true,
|
|
87319
|
+
xs: 6,
|
|
87320
|
+
key: item.id,
|
|
87321
|
+
className: classes.tipItem
|
|
87322
|
+
}, React__default.createElement(core$1.Checkbox, {
|
|
87323
|
+
className: classes.tipIcon,
|
|
87324
|
+
defaultChecked: true,
|
|
87325
|
+
color: "primary",
|
|
87326
|
+
disabled: true
|
|
87327
|
+
}), React__default.createElement(core$1.Typography, {
|
|
87328
|
+
className: classes.tipText
|
|
87329
|
+
}, item.text));
|
|
87330
|
+
}))));
|
|
87331
|
+
};
|
|
87332
|
+
|
|
87333
|
+
var PenAndPaperIcon = function PenAndPaperIcon() {
|
|
87334
|
+
return React__default.createElement("svg", {
|
|
87335
|
+
width: "33",
|
|
87336
|
+
height: "34",
|
|
87337
|
+
viewBox: "0 0 33 34",
|
|
87338
|
+
fill: "none",
|
|
87339
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
87340
|
+
}, React__default.createElement("path", {
|
|
87341
|
+
d: "M1 13.0166H31.6393V32.9992H8.51115C4.36285 32.9992 1 29.6364 1 25.4881V13.0166Z",
|
|
87342
|
+
fill: "white",
|
|
87343
|
+
stroke: "#242424",
|
|
87344
|
+
strokeWidth: "1.34074",
|
|
87345
|
+
strokeLinejoin: "round"
|
|
87346
|
+
}), React__default.createElement("path", {
|
|
87347
|
+
d: "M27.1162 2.62581C27.8836 1.72768 29.2668 1.58067 30.2058 2.29746L31.2999 3.13266C32.2388 3.84945 32.378 5.15859 31.6106 6.05672L18.5168 21.3823L14.0224 17.9514L27.1162 2.62581Z",
|
|
87348
|
+
fill: "#316CD9",
|
|
87349
|
+
stroke: "#242424",
|
|
87350
|
+
strokeWidth: "1.34074",
|
|
87351
|
+
strokeLinejoin: "round"
|
|
87352
|
+
}), React__default.createElement("path", {
|
|
87353
|
+
d: "M14.0228 17.95L18.5172 21.3809L13.1492 23.3182L14.0228 17.95Z",
|
|
87354
|
+
fill: "white",
|
|
87355
|
+
stroke: "#242424",
|
|
87356
|
+
strokeWidth: "1.34074",
|
|
87357
|
+
strokeLinejoin: "round"
|
|
87358
|
+
}), React__default.createElement("path", {
|
|
87359
|
+
d: "M1 5.72149V26.8306C1 24.3533 2.83445 22.1089 5.84837 22.1089V0.999802C2.83445 0.999802 1 3.24415 1 5.72149Z",
|
|
87360
|
+
fill: "#316CD9",
|
|
87361
|
+
stroke: "#242424",
|
|
87362
|
+
strokeWidth: "1.34074",
|
|
87363
|
+
strokeLinejoin: "round"
|
|
87364
|
+
}));
|
|
87365
|
+
};
|
|
87366
|
+
|
|
87367
|
+
var PlusIcon$1 = function PlusIcon(_ref) {
|
|
87368
|
+
var _ref$fill = _ref.fill,
|
|
87369
|
+
fill = _ref$fill === void 0 ? "#FFFFF" : _ref$fill,
|
|
87370
|
+
props = _objectWithoutPropertiesLoose(_ref, ["fill"]);
|
|
87371
|
+
|
|
87372
|
+
return React__default.createElement("svg", Object.assign({}, props, {
|
|
87373
|
+
width: "24",
|
|
87374
|
+
height: "24",
|
|
87375
|
+
viewBox: "0 0 24 24",
|
|
87376
|
+
fill: "none",
|
|
87377
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
87378
|
+
}), React__default.createElement("path", {
|
|
87379
|
+
d: "M12.0003 6.66699V17.3337V6.66699ZM17.3337 12.0003H6.66699H17.3337Z",
|
|
87380
|
+
fill: fill
|
|
87381
|
+
}), React__default.createElement("path", {
|
|
87382
|
+
d: "M17.3337 12.0003H6.66699M12.0003 6.66699V17.3337V6.66699Z",
|
|
87383
|
+
stroke: fill,
|
|
87384
|
+
strokeWidth: "3",
|
|
87385
|
+
strokeLinecap: "round",
|
|
87386
|
+
strokeLinejoin: "round"
|
|
87387
|
+
}));
|
|
87388
|
+
};
|
|
87389
|
+
|
|
87390
|
+
var ArrowIcon = function ArrowIcon(_ref) {
|
|
87391
|
+
var _ref$fill = _ref.fill,
|
|
87392
|
+
fill = _ref$fill === void 0 ? "#316CD9" : _ref$fill,
|
|
87393
|
+
props = _objectWithoutPropertiesLoose(_ref, ["fill"]);
|
|
87394
|
+
|
|
87395
|
+
return React__default.createElement("svg", Object.assign({
|
|
87396
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
87397
|
+
width: "24",
|
|
87398
|
+
height: "24",
|
|
87399
|
+
viewBox: "0 0 24 24",
|
|
87400
|
+
fill: "none"
|
|
87401
|
+
}, props), React__default.createElement("path", {
|
|
87402
|
+
d: "M13.1255 4.5C12.8267 4.5 12.5401 4.61892 12.329 4.83051C12.1175 5.04157 11.9985 5.32815 11.9985 5.62701C11.9985 5.92587 12.1175 6.21245 12.329 6.42351L17.1596 11.2522H4.125C3.50368 11.2522 3 11.7559 3 12.3772C3 12.9985 3.50368 13.5022 4.125 13.5022H17.1592L12.329 18.3305C11.8892 18.7704 11.8892 19.4836 12.329 19.9235C12.7689 20.3634 13.4822 20.3634 13.922 19.9235L20.672 13.1735C20.8836 12.9625 21.0026 12.6759 21.0026 12.377C21.0026 12.0782 20.8836 11.7916 20.672 11.5805L13.922 4.83051C13.711 4.61892 13.4244 4.5 13.1255 4.5Z",
|
|
87403
|
+
fill: fill
|
|
87404
|
+
}));
|
|
87405
|
+
};
|
|
87406
|
+
|
|
87407
|
+
var useStyles$b = core$1.makeStyles(function () {
|
|
87408
|
+
return core$1.createStyles({
|
|
87409
|
+
title: {
|
|
87410
|
+
fontSize: 20,
|
|
87411
|
+
fontWeight: 600,
|
|
87412
|
+
lineHeight: '30px',
|
|
87413
|
+
marginBottom: 16
|
|
87414
|
+
},
|
|
87415
|
+
description: {
|
|
87416
|
+
fontSize: 12,
|
|
87417
|
+
lineHeight: '18px'
|
|
87418
|
+
},
|
|
87419
|
+
button: {
|
|
87420
|
+
borderRadius: 32,
|
|
87421
|
+
height: 56,
|
|
87422
|
+
padding: '10px 24px',
|
|
87423
|
+
display: 'flex',
|
|
87424
|
+
justifyContent: 'center',
|
|
87425
|
+
alignItems: 'center',
|
|
87426
|
+
background: '#316CD9',
|
|
87427
|
+
fontSize: 18,
|
|
87428
|
+
fontWeight: 700
|
|
87429
|
+
},
|
|
87430
|
+
formControl: {
|
|
87431
|
+
width: '100%'
|
|
87432
|
+
},
|
|
87433
|
+
buttonViewRoot: {
|
|
87434
|
+
display: 'flex',
|
|
87435
|
+
justifyContent: 'center',
|
|
87436
|
+
alignItems: 'center'
|
|
87437
|
+
},
|
|
87438
|
+
buttonView: {
|
|
87439
|
+
display: 'flex',
|
|
87440
|
+
justifyContent: 'center',
|
|
87441
|
+
alignItems: 'center',
|
|
87442
|
+
gap: 8,
|
|
87443
|
+
lineHeight: '27px',
|
|
87444
|
+
color: '#316CD9',
|
|
87445
|
+
'& .MuiButton-label': {
|
|
87446
|
+
fontWeight: 700,
|
|
87447
|
+
fontSize: 18
|
|
87448
|
+
}
|
|
87449
|
+
}
|
|
87450
|
+
});
|
|
87451
|
+
});
|
|
87452
|
+
|
|
87453
|
+
var ViewStudent = function ViewStudent(_ref) {
|
|
87454
|
+
var classBox = _ref.classBox,
|
|
87455
|
+
handleAddNewStudent = _ref.handleAddNewStudent,
|
|
87456
|
+
handleViewStudent = _ref.handleViewStudent,
|
|
87457
|
+
dataStudents = _ref.dataStudents,
|
|
87458
|
+
setStudentSelected = _ref.setStudentSelected,
|
|
87459
|
+
setSearchStringStudent = _ref.setSearchStringStudent,
|
|
87460
|
+
searchStringStudent = _ref.searchStringStudent;
|
|
87461
|
+
|
|
87462
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
87463
|
+
t = _useTranslation.t;
|
|
87464
|
+
|
|
87465
|
+
var classes = useStyles$b();
|
|
87466
|
+
|
|
87467
|
+
var _React$useState = React__default.useState(null),
|
|
87468
|
+
defaultValue = _React$useState[0],
|
|
87469
|
+
setDefaultValue = _React$useState[1];
|
|
87470
|
+
|
|
87471
|
+
var _useState = React.useState(false),
|
|
87472
|
+
open = _useState[0],
|
|
87473
|
+
setOpen = _useState[1];
|
|
87474
|
+
|
|
87475
|
+
return React__default.createElement(core$1.Card, {
|
|
87476
|
+
className: classBox.card
|
|
87477
|
+
}, React__default.createElement(core$1.CardContent, {
|
|
87478
|
+
className: classBox.cardContent
|
|
87479
|
+
}, React__default.createElement(core$1.Grid, {
|
|
87480
|
+
container: true,
|
|
87481
|
+
spacing: 3
|
|
87482
|
+
}, React__default.createElement(core$1.Grid, {
|
|
87483
|
+
item: true,
|
|
87484
|
+
xs: 1
|
|
87485
|
+
}, React__default.createElement(PenAndPaperIcon, null)), React__default.createElement(core$1.Grid, {
|
|
87486
|
+
item: true,
|
|
87487
|
+
xs: 6
|
|
87488
|
+
}, React__default.createElement(core$1.Typography, {
|
|
87489
|
+
variant: "h4",
|
|
87490
|
+
component: "h4",
|
|
87491
|
+
className: classes.title
|
|
87492
|
+
}, "View a Student"), React__default.createElement(core$1.Typography, {
|
|
87493
|
+
className: classes.description
|
|
87494
|
+
}, "Select a student to see their profile and learning plan")), React__default.createElement(core$1.Grid, {
|
|
87495
|
+
item: true,
|
|
87496
|
+
xs: 5
|
|
87497
|
+
}, React__default.createElement(core$1.Button, {
|
|
87498
|
+
variant: "contained",
|
|
87499
|
+
startIcon: React__default.createElement(PlusIcon$1, {
|
|
87500
|
+
fill: "#FFF"
|
|
87501
|
+
}),
|
|
87502
|
+
color: "primary",
|
|
87503
|
+
onClick: handleAddNewStudent,
|
|
87504
|
+
className: classes.button
|
|
87505
|
+
}, t("add_new_student")))), React__default.createElement(core$1.Grid, {
|
|
87506
|
+
container: true,
|
|
87507
|
+
spacing: 3
|
|
87508
|
+
}, React__default.createElement(core$1.Grid, {
|
|
87509
|
+
item: true,
|
|
87510
|
+
xs: 1
|
|
87511
|
+
}), React__default.createElement(core$1.Grid, {
|
|
87512
|
+
item: true,
|
|
87513
|
+
xs: 9
|
|
87514
|
+
}, React__default.createElement(core$1.FormControl, {
|
|
87515
|
+
variant: "outlined",
|
|
87516
|
+
className: classes.formControl
|
|
87517
|
+
}, React__default.createElement(lab.Autocomplete, {
|
|
87518
|
+
options: dataStudents,
|
|
87519
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
87520
|
+
return option.fullName ? option.fullName : "";
|
|
87521
|
+
},
|
|
87522
|
+
onChange: function onChange(_event, newValue) {
|
|
87523
|
+
setStudentSelected(newValue);
|
|
87524
|
+
},
|
|
87525
|
+
onOpen: function onOpen() {
|
|
87526
|
+
setOpen(true);
|
|
87527
|
+
},
|
|
87528
|
+
onClose: function onClose() {
|
|
87529
|
+
setOpen(false);
|
|
87530
|
+
},
|
|
87531
|
+
forcePopupIcon: !open,
|
|
87532
|
+
popupIcon: open ? React__default.createElement(ArrowDropDownIcon, null) : React__default.createElement(SearchIcon, null),
|
|
87533
|
+
getOptionSelected: function getOptionSelected(option, value) {
|
|
87534
|
+
return option.id == value.id;
|
|
87535
|
+
},
|
|
87536
|
+
value: defaultValue,
|
|
87537
|
+
renderInput: function renderInput(params) {
|
|
87538
|
+
return React__default.createElement(core$1.TextField, Object.assign({}, params, {
|
|
87539
|
+
label: searchStringStudent ? searchStringStudent : t("search_student"),
|
|
87540
|
+
margin: "normal",
|
|
87541
|
+
onChange: function onChange(event) {
|
|
87542
|
+
if (event.target.value === '') {
|
|
87543
|
+
setSearchStringStudent('');
|
|
87544
|
+
setDefaultValue('');
|
|
87545
|
+
setStudentSelected({
|
|
87546
|
+
id: 0,
|
|
87547
|
+
fullName: '',
|
|
87548
|
+
studentId: ''
|
|
87549
|
+
});
|
|
87550
|
+
}
|
|
87551
|
+
},
|
|
87552
|
+
variant: "outlined"
|
|
87553
|
+
}));
|
|
87554
|
+
}
|
|
87555
|
+
}))), React__default.createElement(core$1.Grid, {
|
|
87556
|
+
item: true,
|
|
87557
|
+
xs: 2,
|
|
87558
|
+
className: classes.buttonViewRoot
|
|
87559
|
+
}, React__default.createElement(core$1.Button, {
|
|
87560
|
+
className: classes.buttonView,
|
|
87561
|
+
variant: "text",
|
|
87562
|
+
color: "primary",
|
|
87563
|
+
endIcon: React__default.createElement(ArrowIcon, {
|
|
87564
|
+
fill: "#316CD9"
|
|
87565
|
+
}),
|
|
87566
|
+
onClick: handleViewStudent
|
|
87567
|
+
}, t("view"))))));
|
|
87568
|
+
};
|
|
87569
|
+
|
|
87570
|
+
var styles$7 = {"home-wrapper":"_3xtG1","title-home":"_2Rgtz","to-do-today":"_2ozqx","show-calendar":"_1yiXe","box-schedule":"_2fa5A","action-point":"_33qkZ","show-arrange-today":"_384qN","box":"_XhKrW","title-box":"_1-ERs","content-box":"_3rkSq","title-today-schedule":"_KAFQX","time-line-item":"_a9dKS","time":"_3A5pN","time-line":"_3Z9Io","event":"_18ivw","event-text":"_3IBrg","event-red":"_1nRQ1","full-calendar":"_2YspL","current-time":"_3oP0z","current-date":"__wEbd","current-weekday":"_2UQOH","action-points":"_3-F67","schedule-item":"_2GDe5","item-time":"_mgXWN","right-content":"_2ZuoY","motivation-item":"_2DSdr","movivation-head":"_1hmjK","movivation-description":"_2zFif","font-large":"_1wM3M","font-small":"_2ai-W","container":"_L0eRH","today-schedule":"_8bR8P","today-schedule__title":"_2BmUS","today-schedule__view":"_amKb3","today-schedule__view__text":"_3JxnC","today-schedule__view__btn":"_3tYQd","today-schedule__list":"_36FVE","today-schedule__list--scroll":"_1KwMw","today-schedule__list--loading":"_3eavO","today-schedule__list-item":"_4OS5W","today-schedule__list-item--empty":"_1Jl1e","today-schedule__list-item__time":"_3-ZOG","today-schedule__list-item__content":"_1zD58","today-schedule__list-item--check-in":"_2PLeO","today-schedule__list-item--conversation":"_1G1wf","today-schedule__list-item--conference":"_2eyOL","home-block--left":"_1kLfg","home-block--right":"_2cymW","conference-block__main":"_6iqn8","conference-block__groupBtn":"_1PNPL","conference-block__image":"_2eMW2","conference-block__title":"_2esSh","conference-block__content":"_hd9Nx","conference-block__book-for-later":"_kpcck","conference-block__action":"_1N2sI","student-wellness":"_2wy3J","student-wellness__title":"_2K4RH","student-wellness__view-btn":"_11HxL","student-wellness__main-block":"_25Ncf","student-wellness__item":"_3NYdc","student-wellness__item__name":"_r-LuT","student-wellness__item__info":"_iJvz9","student-wellness__item__info__percent":"_3xBEm","student-wellness__item__info__percent--bold":"_3imsa","student-wellness__item__info__icon":"_sAp2F","student-wellness__item__info__students":"_3-jP-","student-wellness__item__info__percent-diff":"_IZAUf","student-wellness__item__info--increase":"_3DBK2","stress":"_2klFk","student-wellness__item__info--decrease":"_3Hjtv","student-wellness__note":"_OOke8","student-wellness__note--danger":"_1ta5m","student-wellness__note__icon":"_3N42d","student-wellness__note__icon--success":"_271BU","student-wellness__note__icon--danger":"_2qvh9","check-in-block":"_2vZCQ","check-in-block__wrapper":"_2MoCC","check-in-block__wrapper--b-0":"_1Jp9E","check-in-block__note-wrapper":"_12wGp","check-in-block__number":"_3jK2y","check-in-block__text":"_27HmS","check-in-block__view":"_1IW24","one-to-one-dialog":"_1Kcer","one-to-one-dialog__footer":"_2Ud0d","one-to-one-dialog__head__title":"_1hpbK","one-to-one-dialog__head__content":"_17hOs","one-to-one-dialog__head__selector":"_3kPwB","one-to-one-dialog__body":"_nWAPK","one-to-one-dialog__footer__book-btn":"_2MIJC","this-week-checkIn-dialog":"_1cnG_","this-week-checkIn-dialog__head__title":"_g2BKJ","this-week-checkIn-dialog__head__icon":"_3ge0p","this-week-checkIn-dialog__head__content":"_iV_Av","this-week-checkIn-dialog__head__selector":"_UbFad","this-week-checkIn-dialog__body":"_2hh0I","this-week-checkIn-dialog__footer":"_3tHyf","this-week-checkIn-dialog__footer__book-btn":"_ju0GR","check-in-item":"_2jIqE","check-in-item__name":"_3wFuc","check-in-item__hashtag":"_KRtU0","check-in-item__percent":"_gfNDh","check-in-item__percent--success":"_1HiUT","check-in-item__percent__text":"_93bP9","check-in-item__type":"_3aai_","check-in-item__info__time":"_3krx2","check-in-item__info__note":"_3KJLR","check-in-item__info__note__text":"_G5WFU","check-in-item__info__note__icon":"_26GmP","check-in-item__action":"_eMvrB","check-in-item__action__btn":"_3tQsS","check-in-list":"_2rWDY","check-in-list__item":"_Z2B4n","check-in-list__item--empty":"_3weSf","check-in-list--scroll":"_2I9Na","plp__view":"_10J4M","plp__list-item":"_3mfG6","plp__list-item__goal-text":"_1eO8l","plp__list-item__name":"_2I3EH","plp__list-item__content":"_2IGwF","plp__list-item__icon":"_1fs7n","plp__list--scroll":"_1vZdb","today-schedule__head":"_2B6Rf","student-wellness__head":"_1-N-n","title-card-box":"_DkZPN","box-item":"_8dSSA","title-card":"_2i5c6","value-card":"_2ntr2","equal-value":"_3Jnty","school-logo":"_3Y4Vi"};
|
|
87571
|
+
|
|
87572
|
+
var StudentWellnessNote = function StudentWellnessNote(_ref) {
|
|
87573
|
+
var percent = _ref.percent,
|
|
87574
|
+
percentText = _ref.percentText,
|
|
87575
|
+
number = _ref.number,
|
|
87576
|
+
numberText = _ref.numberText,
|
|
87577
|
+
_ref$numberUnit = _ref.numberUnit,
|
|
87578
|
+
numberUnit = _ref$numberUnit === void 0 ? number && number > 1 ? "students" : "student" : _ref$numberUnit,
|
|
87579
|
+
isBelowNumber = _ref.isBelowNumber,
|
|
87580
|
+
defaultText = _ref.defaultText,
|
|
87581
|
+
onSeeMore = _ref.onSeeMore,
|
|
87582
|
+
_ref$className = _ref.className,
|
|
87583
|
+
className = _ref$className === void 0 ? "" : _ref$className;
|
|
87584
|
+
|
|
87585
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
87586
|
+
t = _useTranslation.t;
|
|
87587
|
+
|
|
87588
|
+
return React__default.createElement(core$1.Grid, {
|
|
87589
|
+
container: true,
|
|
87590
|
+
className: styles$7["student-wellness__note"] + " " + (!!number ? styles$7["student-wellness__note--danger"] : "") + " " + className
|
|
87591
|
+
}, React__default.createElement("span", {
|
|
87592
|
+
className: "" + styles$7["student-wellness__note__icon"]
|
|
87593
|
+
}, !number ? React__default.createElement(CheckCircleIcon, {
|
|
87594
|
+
className: "" + styles$7["student-wellness__note__icon--success"]
|
|
87595
|
+
}) : React__default.createElement(ErrorIcon, {
|
|
87596
|
+
className: "" + styles$7["student-wellness__note__icon--danger"]
|
|
87597
|
+
})), React__default.createElement("div", null, !number && React__default.createElement(core$1.Typography, null, defaultText), !!percent && React__default.createElement(core$1.Typography, {
|
|
87598
|
+
className: "" + styles$7["student-wellness__item__info"]
|
|
87599
|
+
}, React__default.createElement("span", null, React__default.createElement("span", {
|
|
87600
|
+
className: " " + styles$7["student-wellness__item__info__percent--bold"],
|
|
87601
|
+
style: {
|
|
87602
|
+
marginRight: 3
|
|
87603
|
+
}
|
|
87604
|
+
}, Math.round(percent) + "%"), percentText)), !isBelowNumber && !!number && number > 0 && React__default.createElement(core$1.Typography, {
|
|
87605
|
+
className: styles$7["student-wellness__item__info__students"] + " mb-0",
|
|
87606
|
+
onClick: onSeeMore
|
|
87607
|
+
}, "(", t("see_them"), ")"), !!number && React__default.createElement(core$1.Typography, {
|
|
87608
|
+
className: styles$7["student-wellness__item__info"] + " d-block"
|
|
87609
|
+
}, React__default.createElement("span", null, React__default.createElement("span", {
|
|
87610
|
+
className: "text-nowrap " + styles$7["student-wellness__item__info__percent--bold"] + " text-lowercase",
|
|
87611
|
+
style: {
|
|
87612
|
+
marginRight: 3
|
|
87613
|
+
}
|
|
87614
|
+
}, number + " " + t(numberUnit)), numberText)), isBelowNumber && !!number && number > 0 && React__default.createElement(core$1.Typography, {
|
|
87615
|
+
className: styles$7["student-wellness__item__info__students"] + " mb-0",
|
|
87616
|
+
onClick: onSeeMore
|
|
87617
|
+
}, "(", t("see_them"), ")")));
|
|
87618
|
+
};
|
|
87619
|
+
|
|
87620
|
+
var ArrowUpIcon = function ArrowUpIcon(_ref) {
|
|
87621
|
+
var _ref$fill = _ref.fill,
|
|
87622
|
+
fill = _ref$fill === void 0 ? "#242424" : _ref$fill,
|
|
87623
|
+
props = _objectWithoutPropertiesLoose(_ref, ["fill"]);
|
|
87624
|
+
|
|
87625
|
+
return React__default.createElement("svg", Object.assign({
|
|
87626
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
87627
|
+
width: "8",
|
|
87628
|
+
height: "9",
|
|
87629
|
+
viewBox: "0 0 8 9",
|
|
87630
|
+
fill: "none"
|
|
87631
|
+
}, props), React__default.createElement("path", {
|
|
87632
|
+
d: "M4.35355 0.646446C4.15829 0.451184 3.84171 0.451184 3.64645 0.646446L0.464466 3.82843C0.269204 4.02369 0.269204 4.34027 0.464466 4.53553C0.659728 4.7308 0.976311 4.7308 1.17157 4.53553L4 1.70711L6.82843 4.53553C7.02369 4.7308 7.34027 4.7308 7.53553 4.53553C7.7308 4.34027 7.7308 4.02369 7.53553 3.82843L4.35355 0.646446ZM4.5 9L4.5 1L3.5 1L3.5 9L4.5 9Z",
|
|
87633
|
+
fill: fill
|
|
87634
|
+
}));
|
|
87635
|
+
};
|
|
87636
|
+
|
|
87637
|
+
var StudentWellnessItem = function StudentWellnessItem(_ref) {
|
|
87638
|
+
var name = _ref.name,
|
|
87639
|
+
image = _ref.image,
|
|
87640
|
+
percent = _ref.percent,
|
|
87641
|
+
diffPercent = _ref.diffPercent,
|
|
87642
|
+
percentOfStudent = _ref.percentOfStudent,
|
|
87643
|
+
numberOfStudent = _ref.numberOfStudent,
|
|
87644
|
+
percentOfStudentText = _ref.percentOfStudentText,
|
|
87645
|
+
numberOfStudentText = _ref.numberOfStudentText,
|
|
87646
|
+
onSeeMore = _ref.onSeeMore,
|
|
87647
|
+
_ref$showMore = _ref.showMore,
|
|
87648
|
+
showMore = _ref$showMore === void 0 ? true : _ref$showMore,
|
|
87649
|
+
isStudent = _ref.isStudent,
|
|
87650
|
+
defaultText = _ref.defaultText;
|
|
87651
|
+
|
|
87652
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
87653
|
+
t = _useTranslation.t;
|
|
87654
|
+
|
|
87655
|
+
var handleSeeMore = function handleSeeMore() {
|
|
87656
|
+
onSeeMore === null || onSeeMore === void 0 ? void 0 : onSeeMore();
|
|
87657
|
+
};
|
|
87658
|
+
|
|
87659
|
+
return React__default.createElement("div", {
|
|
87660
|
+
className: styles$7["student-wellness__item"] + " h-100 d-flex flex-column"
|
|
87661
|
+
}, showMore && React__default.createElement(core$1.Grid, {
|
|
87662
|
+
container: true,
|
|
87663
|
+
className: styles$7["student-wellness__main-block"] + " justify-content-between align-items-center flex-nowrap"
|
|
87664
|
+
}, React__default.createElement("div", {
|
|
87665
|
+
className: "w-100"
|
|
87666
|
+
}, React__default.createElement("div", {
|
|
87667
|
+
className: "d-flex justify-content-between align-items-center w-100"
|
|
87668
|
+
}, React__default.createElement(core$1.Typography, {
|
|
87669
|
+
className: "" + styles$7["student-wellness__item__name"]
|
|
87670
|
+
}, name), React__default.createElement("div", {
|
|
87671
|
+
className: styles$7["student-wellness__item__image"] + " d-block d-lg-none"
|
|
87672
|
+
}, React__default.createElement("img", {
|
|
87673
|
+
src: image,
|
|
87674
|
+
alt: name
|
|
87675
|
+
}))), React__default.createElement("div", {
|
|
87676
|
+
className: styles$7["student-wellness__item__info"] + " " + styles$7["student-wellness__item__info--" + (diffPercent >= 0 ? "increase" : "decrease")] + " flex-wrap"
|
|
87677
|
+
}, React__default.createElement("span", {
|
|
87678
|
+
className: styles$7["student-wellness__item__info__percent"] + " " + styles$7["student-wellness__item__info__percent--bold"] + " mb-0"
|
|
87679
|
+
}, percent.toFixed(2) + "%"), React__default.createElement("span", {
|
|
87680
|
+
className: "d-flex mt-1 mt-lg-0"
|
|
87681
|
+
}, React__default.createElement("span", {
|
|
87682
|
+
className: "d-flex flex-nowrap"
|
|
87683
|
+
}, React__default.createElement("span", {
|
|
87684
|
+
className: styles$7["student-wellness__item__info__icon"] + " " + (name.includes('Stress') && styles$7["stress"])
|
|
87685
|
+
}, React__default.createElement(ArrowUpIcon, {
|
|
87686
|
+
style: {
|
|
87687
|
+
transform: "rotate(" + (diffPercent >= 0 ? "0deg" : "180deg") + ")"
|
|
87688
|
+
}
|
|
87689
|
+
})), React__default.createElement("span", {
|
|
87690
|
+
className: styles$7["student-wellness__item__info__percent-diff"] + " " + styles$7["student-wellness__item__info__percent--bold"] + " " + (name.includes('Stress') && styles$7["stress"])
|
|
87691
|
+
}, Math.abs(diffPercent).toFixed(2) + "%")), React__default.createElement("span", {
|
|
87692
|
+
className: "text-nowrap"
|
|
87693
|
+
}, t("vs_last_month"))))), React__default.createElement("div", {
|
|
87694
|
+
className: styles$7["student-wellness__item__image"] + " d-none d-lg-block"
|
|
87695
|
+
}, React__default.createElement("img", {
|
|
87696
|
+
src: image,
|
|
87697
|
+
alt: name
|
|
87698
|
+
}))), !showMore && React__default.createElement(core$1.Grid, {
|
|
87699
|
+
container: true,
|
|
87700
|
+
className: "" + styles$7["student-wellness__main-block"]
|
|
87701
|
+
}, React__default.createElement("div", {
|
|
87702
|
+
className: "d-flex justify-content-between align-items-center w-100"
|
|
87703
|
+
}, React__default.createElement(core$1.Typography, {
|
|
87704
|
+
className: "" + styles$7["student-wellness__item__name"]
|
|
87705
|
+
}, name), React__default.createElement("div", {
|
|
87706
|
+
className: "" + styles$7["student-wellness__item__image"]
|
|
87707
|
+
}, React__default.createElement("img", {
|
|
87708
|
+
src: image,
|
|
87709
|
+
alt: name
|
|
87710
|
+
}))), React__default.createElement("div", {
|
|
87711
|
+
className: styles$7["student-wellness__item__info"] + " " + styles$7["student-wellness__item__info--" + (diffPercent >= 0 ? "increase" : "decrease")] + " d-block"
|
|
87712
|
+
}, React__default.createElement("p", {
|
|
87713
|
+
className: styles$7["student-wellness__item__info__percent"] + " " + styles$7["student-wellness__item__info__percent--bold"] + " mb-0"
|
|
87714
|
+
}, percent.toFixed(2) + "%"), React__default.createElement("p", {
|
|
87715
|
+
className: "mb-0 mt-2"
|
|
87716
|
+
}, React__default.createElement("span", {
|
|
87717
|
+
className: styles$7["student-wellness__item__info__icon"] + " ml-0"
|
|
87718
|
+
}, React__default.createElement(ArrowUpIcon, {
|
|
87719
|
+
style: {
|
|
87720
|
+
transform: "rotate(" + (diffPercent >= 0 ? "0deg" : "180deg") + ")"
|
|
87721
|
+
}
|
|
87722
|
+
})), React__default.createElement("span", {
|
|
87723
|
+
className: styles$7["student-wellness__item__info__percent-diff"] + " " + styles$7["student-wellness__item__info__percent--bold"]
|
|
87724
|
+
}, Math.abs(diffPercent).toFixed(2) + "% "), React__default.createElement("span", {
|
|
87725
|
+
className: "text-nowrap"
|
|
87726
|
+
}, t("vs_last_month"))))), showMore && !isStudent && !!numberOfStudent && numberOfStudent > 0 && React__default.createElement(StudentWellnessNote, {
|
|
87727
|
+
className: "flex-grow-1",
|
|
87728
|
+
percent: percentOfStudent,
|
|
87729
|
+
percentText: percentOfStudentText,
|
|
87730
|
+
number: numberOfStudent,
|
|
87731
|
+
numberText: numberOfStudentText,
|
|
87732
|
+
onSeeMore: handleSeeMore,
|
|
87733
|
+
defaultText: defaultText,
|
|
87734
|
+
seeMoreable: true
|
|
87735
|
+
}));
|
|
87736
|
+
};
|
|
87737
|
+
|
|
87738
|
+
var styles$8 = {"font-large":"_2iMYV","block-card-title":"_1VlDJ","btn-conduct-checkIn":"_cq4hV","btn-conduct-session":"_gfJxE","total-card-title":"_22b9l","total-card-value":"_2LpC_","header-left":"_oIDhN","custom-header-title":"_3EXLv","custom-header-large-title":"_2GFaT","block-card-btn-title":"_YEtJa","custom-button-content":"_kFZE0","show-answers":"_337BG","detail-questions":"_1NMz0","detail":"_3ruvQ","answers":"_18SSl","answer-item":"_3xQ34","download-btn":"_2gdDh","btn-favorite-text":"_2ILjf","box-slider":"_yGWXd","slider-text":"_2xuyR","chip-slider":"_ESykW","value":"_2Zodd","compare-avr":"_3uyRV","content":"_3ciPP","percent":"_9w8nE","arrow":"_1wTiT","label-single-choice":"_269Z9","btn-choice":"_d_5xI","font-small":"__IGBg","reset-the-content":"_2sUuq","btn-duplicate-survey":"__knGq","menu-item-strategories":"_2itwx","time-Date":"_ZQZAA","time-Hours-Minute":"_2O9sz","arrow-icon":"_2PzGy","word-break":"_1jWsG","header-icon":"_1vzRC","full-width":"_dCy0Y","header-right-student":"_eT8oM","header-right":"_1Uksx","header-student":"_AihsE","box-title-question":"_1FbtC","tooltip-question":"_qzkQC","font-description":"_3b1VX","header-component":"_2qX1V","btn-start":"_3KX4Z","timer-start":"_3shN7","btn-timer":"_P8p6Y","timer-text":"_12fMC","timer-session":"_2PTXG","play-icon-pause":"_2JE70","play-icon":"_2KLmg","block-right":"_1SnUB","filter-item":"_1prlp","btn-conduct-session-disabled":"_sSd7W","btn-conduct-icon":"_26Ble","animation-btn-conduct":"_1ebIJ","ring":"_QaunS","answer-text":"_lvIv3","icon-text":"_1ynPj","icon-left":"_108Ts","margin-right":"_1sJog","up-color-background":"_2zYN_","down-color-background":"_QsfZx","grey-background":"_25f8C","up-color-icon":"_2UXzt","up-color":"_3ctyl","down-color-icon":"_NI8gq","down-color":"_kNjGp","rotate":"_21WcW","font-question-name":"_3Lz8m","font-question":"_3sa4M","font-question--all-bold":"_2dr_2","font-question-description":"_17qsx","question-block":"_1fRGC","question-text":"_1H53D","question-slider":"_381nH","input-survey":"_3oilt","question-block-mobile":"_3z3Mu","emotion-list":"_nw3YI","emotion-item":"_dWyki","emotion-active":"_T3nPh","block-learning-strategories":"_2hqgX","conference-learning-strategories":"_2cV6C","item-learning-strategories":"_NiTmm","question-today":"_iJ0y5","block-button":"_1Gxqe","talk-conduct":"_1g1CB","box-talk":"_2Og_J","box-p":"_2SiEG","form-upload":"_2TI8e","title":"_I_U1k","description":"_gaw77","form-title":"_23E-w","form-upload-image-box":"_2eEzi","form-upload-image":"_nnU2p","form-upload-icon":"_1AtKU","form-upload-title":"_2wpzu","form-upload-description":"_2_btb","header-right-download":"_1zTpI","download-title":"_9KA6B","accomondation-content":"_20wkr","accomondation-content-title-box":"_1S716","accomondation-content-title":"_1dc53","accomondation-body":"_nrOo_","accomondation-content-function":"_5tPj4","function-edit":"_3oqtF","function-delete":"_3C4Fy","accomondation-block-content":"_2sbt3","accomondation-block-note":"_2xemY","accomondation-content-description":"_34F_c","accomondation-content-status":"_Ygah4","content-function-mobile":"_28ygg","card-box":"_2nDlP","card-top":"_z99fx","card-top-title":"_OS-sm","card-top-right":"_1QGGv","card-top-switch":"_3kIwQ","card-view":"_3opiQ","card-content":"_1MSsI","block-circle":"_3NNBP","block-item-3":"_kBi43","item-circle":"_1p18m","block-item-4":"_DR_ut","icon-btn":"_1L_cs","slider-avatar":"_1blLJ","btn-delete":"_2lc4h","send-icon":"_3o6vP","radio-choice":"_38A5_","checkbox-control":"_DTW10","block-question":"_3D2YM","question-choice":"_zdcg1","radio-disable":"_1sU8k","pointer-page-result":"_V9NfQ","canva-item-container":"_7vlR5","canva-item":"_1jCbZ","title-circle":"_2zR2k","accommodation-header-right":"_1b3h8","about-header-right":"_12Jrc","text-custom":"_1txPi","page-external":"_yTWSi","custom-header":"_2idV7","custom-header-right":"_jNUtL","custom-header-button":"_3vAFW","disable-button":"_yM9io","border-none":"_tCPvk","block-btn-header":"_d50vF","custom-preview-button":"_1PolP","total-card-box":"_10qKW","total-card-box--hover":"_mr4XO","total-card-box-3":"_mUofi","total-card-box-4":"_2lZqR","total-card-box-5":"_2P-4s","total-card-box__content":"_1azHg","status-default":"_39vEG","pending":"_3v5Vh","active":"_2VMce","close":"_1sxqi","box-filter":"_1qY5i","block-total":"_2cS1_","filter-select":"_3W4bH","box-filter-left":"_3sodU","filter-select-list":"_1Uqvn","box-filter-right":"_3RoKy","search-input-icon":"_1iv7x","inputInput":"_3WjC-","filter-item-collapse":"_32UBc","box-show-filter-mobile":"_1zNPn","icon-show-all-filter":"_LGedI","space-item":"_1OYr0","block-card-name":"_18shC","block-card-btn":"_tskyu","block-card-btn-icon":"_11EkD","table-cell":"_19z4C","table-cell--pointer":"_1HLRL","box-notification":"_7aSns","notification-1":"_1ogW-","notification-2":"_23Agv","notification-3":"_1WHED","notification-4":"_ma4KE","notification-5":"_3hS5h","notification-6":"_1ANWc","box-item":"_Sgwsd","notification-7":"_2ipun","notification-assistant-1":"_3xpjF","notification-assistant-2":"_27WLA","notification-assistant-3":"_Vew9E","notification-assistant-4":"_2chUN","notification-assistant-5":"_3kdI3","notification-assistant-6":"_3gHKZ","notification-student-1":"_LPHEl","notification-student-2":"_1LLEY","notification-student-3":"_dUT3k","notification-student-4":"_1h-Z2","notification-student-5":"_54X_d","notification-student-6":"_2mz6o","btn-got-it":"_8wuam","yes-active":"_2cKiE","no-active":"_1ZSdb","item-select-role":"_3wdCp","item-role-active":"_G-CJr","model-switch-roles":"_13p9g","box-switch":"_3lCM-","title-label":"_38zjj","title-text":"_1uQ9l","header-contact":"_2Cbvr","logo-home":"_1AjlH","hide-in-desktop":"_1Pz3h","hamburger-menu":"_3zwBS","collapse-box":"_3xG7o","nav-home":"_1dK7c","contact":"_2nxLa","active-current":"_3OAl0","box-header-user":"_1b_sR","header-user-left":"_1uTwV","user-avatar":"_HI1B1","user-detail":"_2KnpY","user-name":"_3iI8p","user-chip":"_nELwc","chip":"_2Yf2q","grade":"_3soxv","date":"_1Z9d6","header-user-right":"_2dDRv","disable-slider":"_1qz7v","h-200":"_1BMzd","h-250":"_32BUA","half-circle-slider":"_3wHG2","wrapper":"_3mmaU","t-125":"_T1-6r","t-180":"_1SRIc","box-slider-text":"_2El9K","text-right":"_3k92f","icon":"_wMlz6","circle-slider-text":"_zRQ4p","circle-slider-value":"_3UBTw","roundy-gradient":"_1QIWJ","pointer":"_1ZWJ-","icon-info":"_134zm","icon-warning":"_1H_m8","answer--never":"_Fd4DT","answer--rarely":"_1Pp7L","answer--sometimes":"_1yYwJ","answer--often":"_2Gfvn","answer--almost-always":"_3BneQ","answer--all-the-time":"_2BWmy","block-container":"_3lkdM","the-container":"_2i6__","custom-scrollbar":"_yLb6E","dialog-body":"_2s5rS","dialog-body--full":"_31ysu","dialog-body__close-icon":"_3-fRR","dialog-body__content":"_2ScDl","dialog-body__content--scroll-body":"_uMY-6","dialog-body__spacing":"_16c-s","guide-body":"_3JvKg","confirm-dialog__title":"_39kTI","confirm-dialog__actions":"_37jNy","confirm-dialog__btn":"_17H54","model-guide-checkIn":"_3JIlu","guide-video":"_1WT6i","got-it-action":"_2x_mA","prompt-model":"_3B4wO","prompt-content":"_1Q5mL","prompt-cancel":"_3bK83","prompt-leave":"_3zTxS"};
|
|
87739
|
+
|
|
87740
|
+
var SimpleDialog$1 = function SimpleDialog(_ref) {
|
|
87741
|
+
var open = _ref.open,
|
|
87742
|
+
fullScreen = _ref.fullScreen,
|
|
87743
|
+
maxWidth = _ref.maxWidth,
|
|
87744
|
+
onClose = _ref.onClose,
|
|
87745
|
+
children = _ref.children,
|
|
87746
|
+
scroll = _ref.scroll,
|
|
87747
|
+
_ref$contentClassName = _ref.contentClassName,
|
|
87748
|
+
contentClassName = _ref$contentClassName === void 0 ? "" : _ref$contentClassName,
|
|
87749
|
+
_ref$bodyClass = _ref.bodyClass,
|
|
87750
|
+
bodyClass = _ref$bodyClass === void 0 ? "" : _ref$bodyClass;
|
|
87751
|
+
|
|
87752
|
+
var handleClose = function handleClose(_, reason) {
|
|
87753
|
+
if (reason && reason == "backdropClick") return;
|
|
87754
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
87755
|
+
};
|
|
87756
|
+
|
|
87757
|
+
var CustomDialog = core$1.withStyles(function (theme) {
|
|
87758
|
+
var _MuiDialogPaper;
|
|
87759
|
+
|
|
87760
|
+
return {
|
|
87761
|
+
root: {
|
|
87762
|
+
"& .MuiDialog-paper": (_MuiDialogPaper = {
|
|
87763
|
+
boxShadow: "none!important",
|
|
87764
|
+
backgroundColor: "transparent!important",
|
|
87765
|
+
overflow: "visible!important",
|
|
87766
|
+
width: "100%",
|
|
87767
|
+
height: "100%",
|
|
87768
|
+
padding: "32px",
|
|
87769
|
+
margin: "0!important"
|
|
87770
|
+
}, _MuiDialogPaper[theme.breakpoints.down("md")] = {
|
|
87771
|
+
maxWidth: "unset"
|
|
87772
|
+
}, _MuiDialogPaper[theme.breakpoints.down("xs")] = {
|
|
87773
|
+
padding: "0"
|
|
87774
|
+
}, _MuiDialogPaper),
|
|
87775
|
+
"& .MuiBackdrop-root": {
|
|
87776
|
+
backgroundColor: "#242424A3!important"
|
|
87777
|
+
}
|
|
87778
|
+
}
|
|
87779
|
+
};
|
|
87780
|
+
})(core$1.Dialog);
|
|
87781
|
+
return React__default.createElement(CustomDialog, {
|
|
87782
|
+
fullScreen: fullScreen,
|
|
87783
|
+
open: !!open,
|
|
87784
|
+
maxWidth: maxWidth,
|
|
87785
|
+
scroll: scroll
|
|
87786
|
+
}, React__default.createElement("div", {
|
|
87787
|
+
className: styles$8["dialog-body"] + " " + (fullScreen ? "" + styles$8["dialog-body--full"] : "") + " " + styles$8[bodyClass]
|
|
87788
|
+
}, React__default.createElement("span", {
|
|
87789
|
+
className: "" + styles$8["dialog-body__close-icon"],
|
|
87790
|
+
onClick: handleClose
|
|
87791
|
+
}, React__default.createElement("svg", {
|
|
87792
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
87793
|
+
width: "56",
|
|
87794
|
+
height: "56",
|
|
87795
|
+
viewBox: "0 0 56 56",
|
|
87796
|
+
fill: "none"
|
|
87797
|
+
}, React__default.createElement("path", {
|
|
87798
|
+
d: "M49 7L28 28M28 28L49 49M28 28L7 7M28 28L7 49",
|
|
87799
|
+
stroke: "#D3D3D3",
|
|
87800
|
+
strokeWidth: "2",
|
|
87801
|
+
strokeLinecap: "round",
|
|
87802
|
+
strokeLinejoin: "round"
|
|
87803
|
+
}))), React__default.createElement("div", {
|
|
87804
|
+
className: "w-100 " + styles$8["dialog-body__content"] + " " + (scroll === "body" && styles$8["dialog-body__content--scroll-body"]) + " " + contentClassName
|
|
87805
|
+
}, children), scroll === "body" && React__default.createElement("div", {
|
|
87806
|
+
className: "w-100 " + styles$8["dialog-body__spacing"]
|
|
87807
|
+
}, "spacing")));
|
|
87808
|
+
};
|
|
87809
|
+
|
|
87810
|
+
var DEFAULT_USER_AVATAR$1 = "/images/image-default.png";
|
|
87811
|
+
|
|
87812
|
+
var StudentWellnessCheckInItem = function StudentWellnessCheckInItem(_ref) {
|
|
87813
|
+
var endTime = _ref.endTime,
|
|
87814
|
+
startTime = _ref.startTime,
|
|
87815
|
+
onView = _ref.onView,
|
|
87816
|
+
sessionId = _ref.sessionId,
|
|
87817
|
+
sessionResultId = _ref.sessionResultId,
|
|
87818
|
+
name = _ref.name,
|
|
87819
|
+
avatar = _ref.avatar,
|
|
87820
|
+
percent = _ref.percent,
|
|
87821
|
+
tagTitle = _ref.tagTitle,
|
|
87822
|
+
_ref$isSession = _ref.isSession,
|
|
87823
|
+
isSession = _ref$isSession === void 0 ? true : _ref$isSession;
|
|
87824
|
+
|
|
87825
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
87826
|
+
t = _useTranslation.t;
|
|
87827
|
+
|
|
87828
|
+
var handleView = function handleView() {
|
|
87829
|
+
onView(sessionId, sessionResultId, true);
|
|
87830
|
+
};
|
|
87831
|
+
|
|
87832
|
+
var endDiffHours = React.useMemo(function () {
|
|
87833
|
+
return endTime && endTime !== DATE_MIN_VALUE$1 ? moment().diff(moment.utc(endTime).local(), "hours") : undefined;
|
|
87834
|
+
}, [endTime]);
|
|
87835
|
+
return React__default.createElement("div", null, React__default.createElement("div", {
|
|
87836
|
+
className: "" + styles$7["check-in-item"]
|
|
87837
|
+
}, React__default.createElement("div", {
|
|
87838
|
+
className: "d-flex justify-content-between flex-grow-1 align-items-center"
|
|
87839
|
+
}, React__default.createElement("div", {
|
|
87840
|
+
className: "d-flex w-100"
|
|
87841
|
+
}, React__default.createElement(core$1.Avatar, {
|
|
87842
|
+
alt: name === null || name === void 0 ? void 0 : name.toUpperCase(),
|
|
87843
|
+
src: marioCore.getFileUrl(avatar) || DEFAULT_USER_AVATAR$1
|
|
87844
|
+
}), React__default.createElement("div", {
|
|
87845
|
+
className: "ml-2 ml-sm-3 d-flex flex-column justify-content-center"
|
|
87846
|
+
}, React__default.createElement("div", {
|
|
87847
|
+
className: "d-flex align-items-baseline"
|
|
87848
|
+
}, React__default.createElement(core$1.Typography, {
|
|
87849
|
+
className: "" + styles$7["check-in-item__name"]
|
|
87850
|
+
}, name), !!percent && React__default.createElement("span", {
|
|
87851
|
+
className: "" + styles$7["check-in-item__hashtag"]
|
|
87852
|
+
}, tagTitle)), React__default.createElement("div", {
|
|
87853
|
+
className: "d-flex flex-row flex-wrap"
|
|
87854
|
+
}, React__default.createElement(core$1.Typography, {
|
|
87855
|
+
className: styles$7["check-in-item__type"] + " text-nowrap"
|
|
87856
|
+
}, t("last") + " " + (isSession ? t("check_in") : t("1-1")) + ":"), React__default.createElement("div", {
|
|
87857
|
+
className: "" + styles$7["check-in-item__info"]
|
|
87858
|
+
}, !!startTime && startTime !== DATE_MIN_VALUE$1 && React__default.createElement(core$1.Typography, {
|
|
87859
|
+
className: "" + styles$7["check-in-item__info__time"]
|
|
87860
|
+
}, marioCore.utcToLocalTime(startTime, "Do MMM YYYY - hh:mm A")), endDiffHours !== undefined && !!endTime && React__default.createElement("div", {
|
|
87861
|
+
className: "" + styles$7["check-in-item__info__note"]
|
|
87862
|
+
}, React__default.createElement("span", {
|
|
87863
|
+
className: "" + styles$7["check-in-item__info__note__icon"]
|
|
87864
|
+
}, React__default.createElement(ErrorIcon, null)), React__default.createElement(core$1.Typography, {
|
|
87865
|
+
className: "" + styles$7["check-in-item__info__note__text"]
|
|
87866
|
+
}, endDiffHours === 0 ? "ended in less than one hour" : "ended over " + (endDiffHours > 24 ? 24 : endDiffHours) + " " + (endDiffHours > 1 ? "hours" : "hour") + " ago")))))), React__default.createElement("div", null, !!percent && React__default.createElement("div", {
|
|
87867
|
+
className: styles$7["check-in-item__percent"] + " " + (percent > 0 ? styles$7["check-in-item__percent--success"] : "")
|
|
87868
|
+
}, React__default.createElement("span", {
|
|
87869
|
+
className: "" + styles$7["check-in-item__percent__text"]
|
|
87870
|
+
}, Math.abs(percent) + "%"), React__default.createElement("img", {
|
|
87871
|
+
src: "images/chart-" + (percent > 0 ? "increase" : "reduced") + ".png"
|
|
87872
|
+
})))), React__default.createElement("div", {
|
|
87873
|
+
className: "" + styles$7["check-in-item__action"]
|
|
87874
|
+
}, React__default.createElement(core$1.Button, {
|
|
87875
|
+
className: "" + styles$7["check-in-item__action__btn"],
|
|
87876
|
+
variant: "text",
|
|
87877
|
+
color: "primary",
|
|
87878
|
+
onClick: handleView
|
|
87879
|
+
}, t("view_results")))));
|
|
87880
|
+
};
|
|
87881
|
+
|
|
87882
|
+
var StudentWellnessCheckInList = function StudentWellnessCheckInList(_ref) {
|
|
87883
|
+
var _ref$className = _ref.className,
|
|
87884
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
87885
|
+
checkInList = _ref.checkInList,
|
|
87886
|
+
onView = _ref.onView,
|
|
87887
|
+
showEmptyText = _ref.showEmptyText,
|
|
87888
|
+
emptyText = _ref.emptyText;
|
|
87889
|
+
|
|
87890
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
87891
|
+
t = _useTranslation.t;
|
|
87892
|
+
|
|
87893
|
+
return React__default.createElement(core$1.Grid, {
|
|
87894
|
+
container: true,
|
|
87895
|
+
spacing: 2,
|
|
87896
|
+
className: styles$8["custom-scrollbar"] + " " + (checkInList.length > 5 ? styles$7["check-in-list--scroll"] : "") + " " + className
|
|
87897
|
+
}, checkInList.length > 0 && checkInList.map(function (item, index) {
|
|
87898
|
+
return React__default.createElement("div", {
|
|
87899
|
+
key: index,
|
|
87900
|
+
className: styles$7["check-in-list__item"] + " w-100"
|
|
87901
|
+
}, React__default.createElement(StudentWellnessCheckInItem, {
|
|
87902
|
+
onView: onView,
|
|
87903
|
+
endTime: item.endTime || DATE_MIN_VALUE$1,
|
|
87904
|
+
startTime: item.startTime || DATE_MIN_VALUE$1,
|
|
87905
|
+
sessionId: item.sessionId,
|
|
87906
|
+
sessionResultId: item.sessionResultId,
|
|
87907
|
+
avatar: item.avatar || "",
|
|
87908
|
+
name: item.name || "",
|
|
87909
|
+
percent: item.percentDiff,
|
|
87910
|
+
tagTitle: item.tagTitle,
|
|
87911
|
+
isSession: item.isSessionCheckIn
|
|
87912
|
+
}));
|
|
87913
|
+
}), !!showEmptyText && !checkInList.length && React__default.createElement("div", {
|
|
87914
|
+
className: styles$7["check-in-list__item"] + " " + styles$7["check-in-list__item--empty"]
|
|
87915
|
+
}, React__default.createElement(core$1.Typography, null, emptyText || t("no_last_or_requested_check_ins"))));
|
|
87916
|
+
};
|
|
87917
|
+
|
|
87918
|
+
var StudentWellnessDialog = function StudentWellnessDialog(props) {
|
|
87919
|
+
var open = props.open,
|
|
87920
|
+
onClose = props.onClose,
|
|
87921
|
+
checkIns = props.checkIns,
|
|
87922
|
+
subject = props.subject;
|
|
87923
|
+
return React__default.createElement(SimpleDialog$1, {
|
|
87924
|
+
open: open,
|
|
87925
|
+
onClose: onClose,
|
|
87926
|
+
scroll: "body",
|
|
87927
|
+
maxWidth: "lg"
|
|
87928
|
+
}, React__default.createElement(DialogBody, {
|
|
87929
|
+
checkIns: checkIns,
|
|
87930
|
+
subject: subject
|
|
87931
|
+
}));
|
|
87932
|
+
};
|
|
87933
|
+
|
|
87934
|
+
var DialogBody = function DialogBody(_ref) {
|
|
87935
|
+
var checkIns = _ref.checkIns,
|
|
87936
|
+
subject = _ref.subject;
|
|
87937
|
+
|
|
87938
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
87939
|
+
t = _useTranslation.t;
|
|
87940
|
+
|
|
87941
|
+
var _useState = React.useState(0),
|
|
87942
|
+
studentId = _useState[0];
|
|
87943
|
+
|
|
87944
|
+
var history = reactRouterDom.useHistory();
|
|
87945
|
+
|
|
87946
|
+
var handleViewResult = function handleViewResult(sessionId, sessionResultId) {
|
|
87947
|
+
var url = "/start-question/" + sessionId + "/" + sessionResultId;
|
|
87948
|
+
history.push(url);
|
|
87949
|
+
};
|
|
87950
|
+
|
|
87951
|
+
var filterCheckInList = function filterCheckInList() {
|
|
87952
|
+
return checkIns.filter(function (i) {
|
|
87953
|
+
return i.studentId == studentId || !studentId;
|
|
87954
|
+
});
|
|
87955
|
+
};
|
|
87956
|
+
|
|
87957
|
+
var checkInList = React.useMemo(function () {
|
|
87958
|
+
return filterCheckInList();
|
|
87959
|
+
}, [checkIns, studentId]);
|
|
87960
|
+
return React__default.createElement("div", {
|
|
87961
|
+
className: "" + styles$7["this-week-checkIn-dialog"]
|
|
87962
|
+
}, React__default.createElement("div", {
|
|
87963
|
+
className: "" + styles$7["this-week-checkIn-dialog__head"]
|
|
87964
|
+
}, React__default.createElement(core$1.Box, {
|
|
87965
|
+
sx: {
|
|
87966
|
+
display: "flex",
|
|
87967
|
+
justifyContent: "space-between"
|
|
87968
|
+
}
|
|
87969
|
+
}, React__default.createElement(core$1.Typography, {
|
|
87970
|
+
variant: "h5",
|
|
87971
|
+
className: "" + styles$7["this-week-checkIn-dialog__head__title"]
|
|
87972
|
+
}, subject === "stress" ? t("students_who_are_highly_stressed") : t("students_who_are_not_feeling_safe")), React__default.createElement("div", {
|
|
87973
|
+
className: "" + styles$7["this-week-checkIn-dialog__head__icon"]
|
|
87974
|
+
}, React__default.createElement("img", {
|
|
87975
|
+
src: "/images/home/" + subject + ".png",
|
|
87976
|
+
alt: t("check_in")
|
|
87977
|
+
}), " ")), React__default.createElement("div", {
|
|
87978
|
+
className: "" + styles$7["this-week-checkIn-dialog__head__selector"]
|
|
87979
|
+
})), React__default.createElement("div", {
|
|
87980
|
+
className: "" + styles$7["this-week-checkIn-dialog__body"]
|
|
87981
|
+
}, React__default.createElement(StudentWellnessCheckInList, {
|
|
87982
|
+
className: "" + styles$7["check-in-list"],
|
|
87983
|
+
onView: handleViewResult,
|
|
87984
|
+
checkInList: checkInList
|
|
87985
|
+
})));
|
|
87986
|
+
};
|
|
87987
|
+
|
|
87988
|
+
var useStyles$c = core$1.makeStyles(function () {
|
|
87989
|
+
return core$1.createStyles({
|
|
87990
|
+
root: {
|
|
87991
|
+
padding: '40px !important',
|
|
87992
|
+
height: '100%'
|
|
87993
|
+
},
|
|
87994
|
+
title: {
|
|
87995
|
+
fontFamily: 'Montserrat',
|
|
87996
|
+
fontSize: 36,
|
|
87997
|
+
fontWeight: 700,
|
|
87998
|
+
lineHeight: '44px'
|
|
87999
|
+
},
|
|
88000
|
+
note: {
|
|
88001
|
+
fontSize: 12,
|
|
88002
|
+
fontWeight: 400,
|
|
88003
|
+
lineHeight: '18px',
|
|
88004
|
+
textAlign: 'left',
|
|
88005
|
+
marginBottom: 32
|
|
88006
|
+
}
|
|
88007
|
+
});
|
|
88008
|
+
});
|
|
88009
|
+
|
|
88010
|
+
var StudentWellness = function StudentWellness(_ref) {
|
|
88011
|
+
var classBox = _ref.classBox,
|
|
88012
|
+
isStudent = _ref.isStudent,
|
|
88013
|
+
dateOfLastMonth = _ref.dateOfLastMonth,
|
|
88014
|
+
avgQuestionLastMonth = _ref.avgQuestionLastMonth,
|
|
88015
|
+
stressData = _ref.stressData,
|
|
88016
|
+
safetyData = _ref.safetyData,
|
|
88017
|
+
studentSkillQuestion = _ref.studentSkillQuestion;
|
|
88018
|
+
|
|
88019
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
88020
|
+
t = _useTranslation.t;
|
|
88021
|
+
|
|
88022
|
+
var history = reactRouterDom.useHistory();
|
|
88023
|
+
var theme = core$1.useTheme();
|
|
88024
|
+
var isSmall = core$1.useMediaQuery(theme.breakpoints.down('sm'));
|
|
88025
|
+
|
|
88026
|
+
var _useState = React.useState(),
|
|
88027
|
+
studentResponse = _useState[0],
|
|
88028
|
+
setStudentResponse = _useState[1];
|
|
88029
|
+
|
|
88030
|
+
var _useState2 = React.useState(false),
|
|
88031
|
+
isOpenDialog = _useState2[0],
|
|
88032
|
+
setOpenDialog = _useState2[1];
|
|
88033
|
+
|
|
88034
|
+
var _useState3 = React.useState(""),
|
|
88035
|
+
subject = _useState3[0],
|
|
88036
|
+
setSubject = _useState3[1];
|
|
88037
|
+
|
|
88038
|
+
var classes = useStyles$c();
|
|
88039
|
+
|
|
88040
|
+
var handleViewDataDashboard = function handleViewDataDashboard() {
|
|
88041
|
+
history.push("/admin/dashboard");
|
|
88042
|
+
};
|
|
88043
|
+
|
|
88044
|
+
var handleCloseDialog = function handleCloseDialog() {
|
|
88045
|
+
setOpenDialog(false);
|
|
88046
|
+
setStudentResponse(undefined);
|
|
88047
|
+
};
|
|
88048
|
+
|
|
88049
|
+
var handleOpenDialog = function handleOpenDialog() {
|
|
88050
|
+
return setOpenDialog(true);
|
|
88051
|
+
};
|
|
88052
|
+
|
|
88053
|
+
var handleClickSeeMore = function handleClickSeeMore(students, sub) {
|
|
88054
|
+
setStudentResponse(students);
|
|
88055
|
+
setSubject(sub);
|
|
88056
|
+
handleOpenDialog();
|
|
88057
|
+
};
|
|
88058
|
+
|
|
88059
|
+
var calculatePercent = function calculatePercent(series, isStress) {
|
|
88060
|
+
var _series$data, _handleAveraged;
|
|
88061
|
+
|
|
88062
|
+
if (!series || !(series !== null && series !== void 0 && (_series$data = series.data) !== null && _series$data !== void 0 && _series$data.length)) return 0;
|
|
88063
|
+
return (_handleAveraged = handleAveraged$1(series.data, isStress)) != null ? _handleAveraged : 0;
|
|
88064
|
+
};
|
|
88065
|
+
|
|
88066
|
+
var calculateDiffPercent = function calculateDiffPercent(series) {
|
|
88067
|
+
var _series$data2;
|
|
88068
|
+
|
|
88069
|
+
if (!series || !(series !== null && series !== void 0 && (_series$data2 = series.data) !== null && _series$data2 !== void 0 && _series$data2.length)) return 0;
|
|
88070
|
+
var sumData = series.data.reduce(function (acc, curr) {
|
|
88071
|
+
return acc + curr;
|
|
88072
|
+
}, 0);
|
|
88073
|
+
var average = sumData / series.data.length;
|
|
88074
|
+
var avgLastQuestion = avgQuestionLastMonth.find(function (r) {
|
|
88075
|
+
return r.questionText.toLocaleLowerCase().includes(series.name.toLocaleLowerCase());
|
|
88076
|
+
});
|
|
88077
|
+
|
|
88078
|
+
if (!!avgLastQuestion) {
|
|
88079
|
+
var difference = avgLastQuestion.avgQuestionResponse - avgLastQuestion.avgQuestionResponseLastMonth;
|
|
88080
|
+
return difference;
|
|
88081
|
+
} else {
|
|
88082
|
+
return average;
|
|
88083
|
+
}
|
|
88084
|
+
};
|
|
88085
|
+
|
|
88086
|
+
var safetyPercent = React.useMemo(function () {
|
|
88087
|
+
return calculatePercent(safetyData === null || safetyData === void 0 ? void 0 : safetyData[0]);
|
|
88088
|
+
}, [safetyData]);
|
|
88089
|
+
var stressPercent = React.useMemo(function () {
|
|
88090
|
+
return calculatePercent(stressData === null || stressData === void 0 ? void 0 : stressData[0], true);
|
|
88091
|
+
}, [stressData]);
|
|
88092
|
+
var safetyDiffPercent = React.useMemo(function () {
|
|
88093
|
+
return calculateDiffPercent(safetyData === null || safetyData === void 0 ? void 0 : safetyData[0]);
|
|
88094
|
+
}, [safetyData, avgQuestionLastMonth]);
|
|
88095
|
+
var stressDiffPercent = React.useMemo(function () {
|
|
88096
|
+
return calculateDiffPercent(stressData === null || stressData === void 0 ? void 0 : stressData[0]);
|
|
88097
|
+
}, [stressData, avgQuestionLastMonth]);
|
|
88098
|
+
|
|
88099
|
+
var mapStudents = function mapStudents() {
|
|
88100
|
+
var _studentResponse$map;
|
|
88101
|
+
|
|
88102
|
+
return (studentResponse === null || studentResponse === void 0 ? void 0 : (_studentResponse$map = studentResponse.map(function (i) {
|
|
88103
|
+
var _i$sessionResults, _i$sessionResults2;
|
|
88104
|
+
|
|
88105
|
+
var teacherResult = (_i$sessionResults = i.sessionResults) === null || _i$sessionResults === void 0 ? void 0 : _i$sessionResults.find(function (r) {
|
|
88106
|
+
return !!r.isTeacherResult;
|
|
88107
|
+
});
|
|
88108
|
+
var studentResult = (_i$sessionResults2 = i.sessionResults) === null || _i$sessionResults2 === void 0 ? void 0 : _i$sessionResults2.find(function (r) {
|
|
88109
|
+
return !r.isTeacherResult;
|
|
88110
|
+
});
|
|
88111
|
+
return {
|
|
88112
|
+
startTime: (studentResult === null || studentResult === void 0 ? void 0 : studentResult.startTime) || DATE_MIN_VALUE$1,
|
|
88113
|
+
endTime: studentResult === null || studentResult === void 0 ? void 0 : studentResult.endTime,
|
|
88114
|
+
sessionId: i.sessionId,
|
|
88115
|
+
sessionResultId: (teacherResult === null || teacherResult === void 0 ? void 0 : teacherResult.id) || 0,
|
|
88116
|
+
name: i.studentName,
|
|
88117
|
+
avatar: i.studentAvatar,
|
|
88118
|
+
isSessionCheckIn: i.isSessionCheckIn,
|
|
88119
|
+
percentDiff: i.point - i.averageOtherRatings,
|
|
88120
|
+
tagTitle: subject === "stress" ? t("high_stressed") : t("unsafe"),
|
|
88121
|
+
studentId: i.studentId
|
|
88122
|
+
};
|
|
88123
|
+
})) === null || _studentResponse$map === void 0 ? void 0 : _studentResponse$map.sort(function (a, b) {
|
|
88124
|
+
if (a.name.toLocaleLowerCase() > b.name.toLocaleLowerCase()) return 1;
|
|
88125
|
+
if (a.name.toLocaleLowerCase() < b.name.toLocaleLowerCase()) return -1;
|
|
88126
|
+
return 0;
|
|
88127
|
+
})) || [];
|
|
88128
|
+
};
|
|
88129
|
+
|
|
88130
|
+
var mappedStudents = React.useMemo(function () {
|
|
88131
|
+
return mapStudents();
|
|
88132
|
+
}, [subject, studentResponse]);
|
|
88133
|
+
return React__default.createElement(core$1.Card, {
|
|
88134
|
+
className: classBox.card + " " + classes.root
|
|
88135
|
+
}, React__default.createElement(core$1.CardContent, {
|
|
88136
|
+
className: classBox.cardContent
|
|
88137
|
+
}, React__default.createElement("div", {
|
|
88138
|
+
className: "" + styles$7["student-wellness"]
|
|
88139
|
+
}, React__default.createElement(core$1.Grid, {
|
|
88140
|
+
container: true,
|
|
88141
|
+
className: styles$7["student-wellness__head"] + " mb-4"
|
|
88142
|
+
}, React__default.createElement(core$1.Typography, {
|
|
88143
|
+
variant: "h4",
|
|
88144
|
+
component: "h4",
|
|
88145
|
+
className: classes.title
|
|
88146
|
+
}, " ", t("student_wellness")), React__default.createElement(core$1.Button, {
|
|
88147
|
+
variant: "text",
|
|
88148
|
+
color: "primary",
|
|
88149
|
+
endIcon: React__default.createElement(ArrowIcon, {
|
|
88150
|
+
fill: "#316CD9"
|
|
88151
|
+
}),
|
|
88152
|
+
className: "" + styles$7["student-wellness__view-btn"],
|
|
88153
|
+
onClick: handleViewDataDashboard
|
|
88154
|
+
}, t("view_data_dashboard"))), React__default.createElement(core$1.Grid, {
|
|
88155
|
+
container: true
|
|
88156
|
+
}, React__default.createElement(core$1.Typography, {
|
|
88157
|
+
variant: "h4",
|
|
88158
|
+
component: "h4",
|
|
88159
|
+
className: classes.note
|
|
88160
|
+
}, "Data for the last month (", dateOfLastMonth.startDate, "-", dateOfLastMonth.endDate, ")")), React__default.createElement(core$1.Grid, {
|
|
88161
|
+
container: true,
|
|
88162
|
+
spacing: isSmall ? 2 : 3
|
|
88163
|
+
}, React__default.createElement(core$1.Grid, {
|
|
88164
|
+
item: true,
|
|
88165
|
+
xs: 12,
|
|
88166
|
+
sm: 6
|
|
88167
|
+
}, React__default.createElement(StudentWellnessItem, {
|
|
88168
|
+
name: t("average_safety"),
|
|
88169
|
+
image: "" + marioCore.getStaticFileUrl("/images/home/safety.png"),
|
|
88170
|
+
percent: safetyPercent,
|
|
88171
|
+
diffPercent: safetyDiffPercent,
|
|
88172
|
+
numberOfStudent: (studentSkillQuestion === null || studentSkillQuestion === void 0 ? void 0 : studentSkillQuestion.studentSafetyQuestionCount) || 0,
|
|
88173
|
+
numberOfStudentText: t("of_students_are_not_feeling_safe"),
|
|
88174
|
+
percentOfStudent: (studentSkillQuestion === null || studentSkillQuestion === void 0 ? void 0 : studentSkillQuestion.studentPercentageUnsafe) || 0,
|
|
88175
|
+
percentOfStudentText: t("marked_themselves_as_unsafe"),
|
|
88176
|
+
onSeeMore: function onSeeMore() {
|
|
88177
|
+
return handleClickSeeMore(studentSkillQuestion.responseStudentSafety, "safety");
|
|
88178
|
+
},
|
|
88179
|
+
isStudent: isStudent,
|
|
88180
|
+
defaultText: ""
|
|
88181
|
+
})), React__default.createElement(core$1.Grid, {
|
|
88182
|
+
item: true,
|
|
88183
|
+
xs: 12,
|
|
88184
|
+
sm: 6
|
|
88185
|
+
}, React__default.createElement(StudentWellnessItem, {
|
|
88186
|
+
name: t("average_stress"),
|
|
88187
|
+
image: "" + marioCore.getStaticFileUrl("/images/home/stress.png"),
|
|
88188
|
+
percent: stressPercent,
|
|
88189
|
+
diffPercent: stressDiffPercent,
|
|
88190
|
+
numberOfStudent: (studentSkillQuestion === null || studentSkillQuestion === void 0 ? void 0 : studentSkillQuestion.studentStressQuestionCount) || 0,
|
|
88191
|
+
numberOfStudentText: t("of_students_are_highly_stressed"),
|
|
88192
|
+
percentOfStudent: (studentSkillQuestion === null || studentSkillQuestion === void 0 ? void 0 : studentSkillQuestion.studentPercentageStress) || 0,
|
|
88193
|
+
percentOfStudentText: t("flagged_with_high_stress"),
|
|
88194
|
+
onSeeMore: function onSeeMore() {
|
|
88195
|
+
return handleClickSeeMore(studentSkillQuestion.responseStudentStress, "stress");
|
|
88196
|
+
},
|
|
88197
|
+
isStudent: isStudent,
|
|
88198
|
+
defaultText: ""
|
|
88199
|
+
}))), !isStudent && isOpenDialog && React__default.createElement(StudentWellnessDialog, {
|
|
88200
|
+
open: isOpenDialog,
|
|
88201
|
+
onClose: handleCloseDialog,
|
|
88202
|
+
subject: subject,
|
|
88203
|
+
checkIns: mappedStudents
|
|
88204
|
+
}))));
|
|
88205
|
+
};
|
|
88206
|
+
|
|
88207
|
+
var CheckinIcon = function CheckinIcon() {
|
|
88208
|
+
return React__default.createElement("svg", {
|
|
88209
|
+
width: "40",
|
|
88210
|
+
height: "40",
|
|
88211
|
+
viewBox: "0 0 40 40",
|
|
88212
|
+
fill: "none",
|
|
88213
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
88214
|
+
}, React__default.createElement("path", {
|
|
88215
|
+
d: "M37.9816 4H12.6931C12.1307 4 11.6747 4.45595 11.6747 5.0184V21.8263C11.6747 22.3888 12.1307 22.8447 12.6931 22.8447H31.4896C32.052 22.8447 32.4934 23.3032 32.5627 23.8613C32.7183 25.1143 33.2557 26.0849 34.7942 26.3676C35.3473 26.4692 35.8088 25.9955 35.8088 25.433V23.8631C35.8088 23.3007 36.2648 22.8447 36.8272 22.8447H37.9816C38.544 22.8447 39 22.3888 39 21.8263V5.0184C39 4.45595 38.544 4 37.9816 4Z",
|
|
88216
|
+
fill: "white",
|
|
88217
|
+
stroke: "#242424"
|
|
88218
|
+
}), React__default.createElement("path", {
|
|
88219
|
+
d: "M18.7272 10.4343H32.647",
|
|
88220
|
+
stroke: "#169490",
|
|
88221
|
+
strokeWidth: "2",
|
|
88222
|
+
strokeLinecap: "round"
|
|
88223
|
+
}), React__default.createElement("path", {
|
|
88224
|
+
d: "M18.7272 15.2257H32.647",
|
|
88225
|
+
stroke: "#169490",
|
|
88226
|
+
strokeWidth: "2",
|
|
88227
|
+
strokeLinecap: "round"
|
|
88228
|
+
}), React__default.createElement("path", {
|
|
88229
|
+
d: "M13.2415 33.1807C20.0022 33.1807 25.4829 28.2028 25.4829 22.0624C25.4829 15.9219 20.0022 10.9441 13.2415 10.9441C6.48069 10.9441 1 15.9219 1 22.0624C1 24.9946 2.27287 27.6793 4.31178 29.6652C4.58021 29.9266 4.70585 30.3059 4.62156 30.6711L3.91018 33.7525C3.76286 34.3907 4.26075 35.0058 4.87939 34.7907C5.82906 34.4606 6.59654 33.7663 7.17144 32.8985C7.48612 32.4235 8.0945 32.203 8.62692 32.4059C10.0511 32.9487 11.5329 33.1807 13.2415 33.1807Z",
|
|
88230
|
+
fill: "white",
|
|
88231
|
+
stroke: "#242424"
|
|
88232
|
+
}), React__default.createElement("path", {
|
|
88233
|
+
d: "M7.75568 19.5199H18.727",
|
|
88234
|
+
stroke: "#169490",
|
|
88235
|
+
strokeWidth: "2",
|
|
88236
|
+
strokeLinecap: "round"
|
|
88237
|
+
}), React__default.createElement("path", {
|
|
88238
|
+
d: "M7.75568 24.3175H15.1626",
|
|
88239
|
+
stroke: "#169490",
|
|
88240
|
+
strokeWidth: "2",
|
|
88241
|
+
strokeLinecap: "round"
|
|
88242
|
+
}));
|
|
88243
|
+
};
|
|
88244
|
+
|
|
88245
|
+
var ConversationTimeIcon = function ConversationTimeIcon() {
|
|
88246
|
+
return React__default.createElement("svg", {
|
|
88247
|
+
width: "40",
|
|
88248
|
+
height: "40",
|
|
88249
|
+
viewBox: "0 0 40 40",
|
|
88250
|
+
fill: "none",
|
|
88251
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
88252
|
+
}, React__default.createElement("path", {
|
|
88253
|
+
d: "M20 36C28.8366 36 36 28.8366 36 20C36 11.1634 28.8366 4 20 4C11.1634 4 4 11.1634 4 20C4 28.8366 11.1634 36 20 36Z",
|
|
88254
|
+
fill: "white",
|
|
88255
|
+
stroke: "#242424"
|
|
88256
|
+
}), React__default.createElement("path", {
|
|
88257
|
+
d: "M19.8515 6.10117V8.53331",
|
|
88258
|
+
stroke: "#242424",
|
|
88259
|
+
strokeLinecap: "round"
|
|
88260
|
+
}), React__default.createElement("path", {
|
|
88261
|
+
d: "M19.8515 31.3691V33.8012",
|
|
88262
|
+
stroke: "#242424",
|
|
88263
|
+
strokeLinecap: "round"
|
|
88264
|
+
}), React__default.createElement("path", {
|
|
88265
|
+
d: "M6.00214 19.9512L8.43428 19.9512",
|
|
88266
|
+
stroke: "#242424",
|
|
88267
|
+
strokeLinecap: "round"
|
|
88268
|
+
}), React__default.createElement("path", {
|
|
88269
|
+
d: "M31.2706 19.9512L33.7028 19.9512",
|
|
88270
|
+
stroke: "#242424",
|
|
88271
|
+
strokeLinecap: "round"
|
|
88272
|
+
}), React__default.createElement("path", {
|
|
88273
|
+
d: "M19.121 13.2095V20.9259L26.2809 26.6926",
|
|
88274
|
+
stroke: "#316CD9",
|
|
88275
|
+
strokeWidth: "3",
|
|
88276
|
+
strokeLinecap: "round"
|
|
88277
|
+
}));
|
|
88278
|
+
};
|
|
88279
|
+
|
|
88280
|
+
var ConversationIcon = function ConversationIcon() {
|
|
88281
|
+
return React__default.createElement("svg", {
|
|
88282
|
+
width: "40",
|
|
88283
|
+
height: "40",
|
|
88284
|
+
viewBox: "0 0 40 40",
|
|
88285
|
+
fill: "none",
|
|
88286
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
88287
|
+
}, React__default.createElement("path", {
|
|
88288
|
+
d: "M11.579 17.4737V28.4211H22.5264M17.4738 11.5789H28.4211V22.5263",
|
|
88289
|
+
stroke: "#242424",
|
|
88290
|
+
strokeLinecap: "round",
|
|
88291
|
+
strokeLinejoin: "round"
|
|
88292
|
+
}), React__default.createElement("path", {
|
|
88293
|
+
d: "M4 17.4737V4H17.4737V17.4737H4ZM22.5263 36V22.5263H36V36H22.5263Z",
|
|
88294
|
+
fill: "#316CD9",
|
|
88295
|
+
stroke: "#242424",
|
|
88296
|
+
strokeLinecap: "round",
|
|
88297
|
+
strokeLinejoin: "round"
|
|
88298
|
+
}));
|
|
88299
|
+
};
|
|
88300
|
+
|
|
88301
|
+
var ConferenceIcon = function ConferenceIcon() {
|
|
88302
|
+
return React__default.createElement("svg", {
|
|
88303
|
+
width: "40",
|
|
88304
|
+
height: "40",
|
|
88305
|
+
viewBox: "0 0 40 40",
|
|
88306
|
+
fill: "none",
|
|
88307
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
88308
|
+
}, React__default.createElement("ellipse", {
|
|
88309
|
+
cx: "29.2122",
|
|
88310
|
+
cy: "25.3204",
|
|
88311
|
+
rx: "2.06641",
|
|
88312
|
+
ry: "2.13743",
|
|
88313
|
+
stroke: "#242424"
|
|
88314
|
+
}), React__default.createElement("path", {
|
|
88315
|
+
fillRule: "evenodd",
|
|
88316
|
+
clipRule: "evenodd",
|
|
88317
|
+
d: "M34.4538 32.9998H23.9703C24.1983 30.9007 25.5777 29.1619 27.4399 28.475C27.9157 28.899 28.5351 29.1553 29.2123 29.1553C29.8895 29.1553 30.5088 28.899 30.9846 28.4752C32.8466 29.1622 34.2258 30.9008 34.4538 32.9998Z",
|
|
88318
|
+
fill: "#FFB04F"
|
|
88319
|
+
}), React__default.createElement("path", {
|
|
88320
|
+
d: "M34.4538 32.9998V33.4998H35.0111L34.9509 32.9458L34.4538 32.9998ZM23.9703 32.9998L23.4733 32.9458L23.4131 33.4998H23.9703V32.9998ZM27.4399 28.475L27.7725 28.1017L27.5485 27.9021L27.2669 28.0059L27.4399 28.475ZM30.9846 28.4752L31.1577 28.0061L30.8761 27.9022L30.652 28.1018L30.9846 28.4752ZM34.4538 32.4998H23.9703V33.4998H34.4538V32.4998ZM27.2669 28.0059C25.2237 28.7596 23.7214 30.6612 23.4733 32.9458L24.4674 33.0538C24.6753 31.1402 25.9317 29.5643 27.6129 28.9441L27.2669 28.0059ZM29.2123 28.6553C28.6643 28.6553 28.1618 28.4485 27.7725 28.1017L27.1073 28.8483C27.6697 29.3494 28.4059 29.6553 29.2123 29.6553V28.6553ZM30.652 28.1018C30.2628 28.4486 29.7603 28.6553 29.2123 28.6553V29.6553C30.0187 29.6553 30.7549 29.3495 31.3172 28.8485L30.652 28.1018ZM34.9509 32.9458C34.7028 30.6614 33.2007 28.7598 31.1577 28.0061L30.8115 28.9443C32.4926 29.5645 33.7489 31.1403 33.9568 33.0538L34.9509 32.9458Z",
|
|
88321
|
+
fill: "#242424"
|
|
88322
|
+
}), React__default.createElement("ellipse", {
|
|
88323
|
+
cx: "10.262",
|
|
88324
|
+
cy: "16.3386",
|
|
88325
|
+
rx: "4.48323",
|
|
88326
|
+
ry: "4.63731",
|
|
88327
|
+
stroke: "#242424"
|
|
88328
|
+
}), React__default.createElement("path", {
|
|
88329
|
+
fillRule: "evenodd",
|
|
88330
|
+
clipRule: "evenodd",
|
|
88331
|
+
d: "M19.9515 28.033V31.6345C19.9515 32.3887 19.3401 33.0001 18.5859 33.0001H2.36563C1.61145 33.0001 1.00006 32.3887 1.00006 31.6345V27.3821C2.34368 25.4707 4.22681 23.9912 6.41805 23.183C7.45025 24.1025 8.79383 24.6584 10.2629 24.6584C11.7319 24.6584 13.0754 24.1026 14.1076 23.1832C16.5414 24.081 18.595 25.8069 19.9515 28.033Z",
|
|
88332
|
+
fill: "#FFB04F"
|
|
88333
|
+
}), React__default.createElement("path", {
|
|
88334
|
+
d: "M19.9515 28.033H20.4515V27.8926L20.3784 27.7728L19.9515 28.033ZM1.00006 27.3821L0.591011 27.0946L0.500061 27.224V27.3821H1.00006ZM6.41805 23.183L6.75063 22.8097L6.52657 22.6101L6.24503 22.7139L6.41805 23.183ZM14.1076 23.1832L14.2806 22.7141L13.9991 22.6102L13.775 22.8098L14.1076 23.1832ZM19.4515 28.033V31.6345H20.4515V28.033H19.4515ZM19.4515 31.6345C19.4515 32.1126 19.0639 32.5001 18.5859 32.5001V33.5001C19.6162 33.5001 20.4515 32.6648 20.4515 31.6345H19.4515ZM18.5859 32.5001H2.36563V33.5001H18.5859V32.5001ZM2.36563 32.5001C1.88759 32.5001 1.50006 32.1126 1.50006 31.6345H0.500061C0.500061 32.6648 1.3353 33.5001 2.36563 33.5001V32.5001ZM1.50006 31.6345V27.3821H0.500061V31.6345H1.50006ZM6.24503 22.7139C3.95504 23.5585 1.99088 25.1031 0.591011 27.0946L1.40911 27.6697C2.69647 25.8383 4.49857 24.4239 6.59107 23.6521L6.24503 22.7139ZM10.2629 24.1584C8.92302 24.1584 7.69627 23.652 6.75063 22.8097L6.08547 23.5564C7.20423 24.553 8.66464 25.1584 10.2629 25.1584V24.1584ZM13.775 22.8098C12.8294 23.6521 11.6027 24.1584 10.2629 24.1584V25.1584C11.8611 25.1584 13.3214 24.553 14.4402 23.5566L13.775 22.8098ZM20.3784 27.7728C18.9655 25.454 16.824 23.6523 14.2806 22.7141L13.9345 23.6523C16.2587 24.5096 18.2245 26.1598 19.5245 28.2931L20.3784 27.7728Z",
|
|
88335
|
+
fill: "#242424"
|
|
88336
|
+
}), React__default.createElement("ellipse", {
|
|
88337
|
+
cx: "29.2121",
|
|
88338
|
+
cy: "11.6899",
|
|
88339
|
+
rx: "2.10148",
|
|
88340
|
+
ry: "2.1737",
|
|
88341
|
+
stroke: "#242424"
|
|
88342
|
+
}), React__default.createElement("path", {
|
|
88343
|
+
fillRule: "evenodd",
|
|
88344
|
+
clipRule: "evenodd",
|
|
88345
|
+
d: "M34.5431 19.4999H23.8817C24.1136 17.3652 25.5163 15.5969 27.4101 14.8984C27.894 15.3294 28.5238 15.59 29.2124 15.59C29.9011 15.59 30.5309 15.3294 31.0147 14.8984C32.9085 15.5969 34.3113 17.3652 34.5431 19.4999Z",
|
|
88346
|
+
fill: "#FFB04F"
|
|
88347
|
+
}), React__default.createElement("path", {
|
|
88348
|
+
d: "M34.5431 19.4999V19.9999H35.1004L35.0402 19.4459L34.5431 19.4999ZM23.8817 19.4999L23.3846 19.4459L23.3245 19.9999H23.8817V19.4999ZM27.4101 14.8984L27.7427 14.525L27.5186 14.3254L27.2371 14.4293L27.4101 14.8984ZM31.0147 14.8984L31.1878 14.4293L30.9062 14.3254L30.6821 14.525L31.0147 14.8984ZM34.5431 18.9999H23.8817V19.9999H34.5431V18.9999ZM27.2371 14.4293C25.1623 15.1946 23.6367 17.1257 23.3846 19.4459L24.3788 19.5539C24.5905 17.6047 25.8704 15.9993 27.5832 15.3675L27.2371 14.4293ZM29.2124 15.09C28.653 15.09 28.14 14.879 27.7427 14.525L27.0775 15.2717C27.6479 15.7799 28.3946 16.09 29.2124 16.09V15.09ZM30.6821 14.525C30.2849 14.8789 29.7719 15.09 29.2124 15.09V16.09C30.0303 16.09 30.7769 15.7799 31.3473 15.2717L30.6821 14.525ZM35.0402 19.4459C34.7882 17.1257 33.2625 15.1946 31.1878 14.4293L30.8417 15.3675C32.5545 15.9993 33.8343 17.6047 34.0461 19.5539L35.0402 19.4459Z",
|
|
88349
|
+
fill: "#242424"
|
|
88350
|
+
}), React__default.createElement("path", {
|
|
88351
|
+
d: "M20 32.9999H37.6344C38.3886 32.9999 39 32.3885 39 31.6343V19.5M20 32.9999H2.36557C1.61139 32.9999 1 32.3885 1 31.6343V7.36557C1 6.61139 1.61139 6 2.36557 6H20M20 32.9999V19.5M20 6H37.6344C38.3886 6 39 6.61139 39 7.36557V19.5M20 6V19.5M20 19.5H39",
|
|
88352
|
+
stroke: "#242424"
|
|
88353
|
+
}));
|
|
88354
|
+
};
|
|
88355
|
+
|
|
88356
|
+
var ClassReflectionIcon = function ClassReflectionIcon() {
|
|
88357
|
+
return React__default.createElement("svg", {
|
|
88358
|
+
width: "40",
|
|
88359
|
+
height: "40",
|
|
88360
|
+
viewBox: "0 0 40 40",
|
|
88361
|
+
fill: "none",
|
|
88362
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
88363
|
+
}, React__default.createElement("path", {
|
|
88364
|
+
d: "M35.193 20C35.6387 20 36.0021 20.3615 35.9797 20.8067C35.8875 22.6322 35.4831 24.4305 34.7821 26.1229C33.978 28.0641 32.7994 29.828 31.3137 31.3137C29.828 32.7994 28.0641 33.978 26.1229 34.7821C24.1817 35.5861 22.1011 36 20 36C17.8988 36 15.8183 35.5861 13.8771 34.7821C11.9359 33.978 10.172 32.7994 8.68629 31.3137C7.20055 29.828 6.022 28.0641 5.21793 26.1229C4.51691 24.4305 4.1125 22.6322 4.02035 20.8067C3.99788 20.3615 4.3613 20 4.80699 20L20 20H35.193Z",
|
|
88365
|
+
fill: "#73C8E5",
|
|
88366
|
+
stroke: "#242424"
|
|
88367
|
+
}), React__default.createElement("ellipse", {
|
|
88368
|
+
cx: "19.9985",
|
|
88369
|
+
cy: "20",
|
|
88370
|
+
rx: "11.0777",
|
|
88371
|
+
ry: "11.0777",
|
|
88372
|
+
fill: "white",
|
|
88373
|
+
stroke: "#242424"
|
|
88374
|
+
}), React__default.createElement("path", {
|
|
88375
|
+
d: "M14.3182 11.8165L17.3152 13.3502L14.404 15.0378L12.865 18.0243L11.1679 15.1231L8.17097 13.5895L11.0858 11.8985L12.6248 8.91202L14.3182 11.8165Z",
|
|
88376
|
+
fill: "white",
|
|
88377
|
+
stroke: "#242424"
|
|
88378
|
+
}), React__default.createElement("path", {
|
|
88379
|
+
d: "M7.97362 7.11289L9.73166 7.90064L8.11845 8.95099L7.32793 10.7029L6.2719 9.09531L4.51385 8.30755L6.12908 7.2552L6.9196 5.5033L7.97362 7.11289Z",
|
|
88380
|
+
fill: "#242424"
|
|
88381
|
+
}));
|
|
88382
|
+
};
|
|
88383
|
+
|
|
88384
|
+
var UpGreenIcon = function UpGreenIcon() {
|
|
88385
|
+
return React__default.createElement("svg", {
|
|
88386
|
+
width: "8",
|
|
88387
|
+
height: "9",
|
|
88388
|
+
viewBox: "0 0 8 9",
|
|
88389
|
+
fill: "none",
|
|
88390
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
88391
|
+
}, React__default.createElement("path", {
|
|
88392
|
+
d: "M4.35355 0.646446C4.15829 0.451184 3.84171 0.451184 3.64645 0.646446L0.464466 3.82843C0.269204 4.02369 0.269204 4.34027 0.464466 4.53553C0.659728 4.7308 0.976311 4.7308 1.17157 4.53553L4 1.70711L6.82843 4.53553C7.02369 4.7308 7.34027 4.7308 7.53553 4.53553C7.7308 4.34027 7.7308 4.02369 7.53553 3.82843L4.35355 0.646446ZM4.5 9L4.5 1L3.5 1L3.5 9L4.5 9Z",
|
|
88393
|
+
fill: "#0F9655"
|
|
88394
|
+
}));
|
|
88395
|
+
};
|
|
88396
|
+
|
|
88397
|
+
var DownRedIcon = function DownRedIcon() {
|
|
88398
|
+
return React__default.createElement("svg", {
|
|
88399
|
+
width: "8",
|
|
88400
|
+
height: "9",
|
|
88401
|
+
viewBox: "0 0 8 9",
|
|
88402
|
+
fill: "none",
|
|
88403
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
88404
|
+
}, React__default.createElement("path", {
|
|
88405
|
+
d: "M4.35355 8.35355C4.15829 8.54882 3.84171 8.54882 3.64645 8.35355L0.464466 5.17157C0.269204 4.97631 0.269204 4.65973 0.464466 4.46447C0.659728 4.2692 0.976311 4.2692 1.17157 4.46447L4 7.29289L6.82843 4.46447C7.02369 4.2692 7.34027 4.2692 7.53553 4.46447C7.7308 4.65973 7.7308 4.97631 7.53553 5.17157L4.35355 8.35355ZM4.5 2.18557e-08L4.5 8L3.5 8L3.5 -2.18557e-08L4.5 2.18557e-08Z",
|
|
88406
|
+
fill: "#C44140"
|
|
88407
|
+
}));
|
|
88408
|
+
};
|
|
88409
|
+
|
|
88410
|
+
var BorderLinearProgress = core$1.withStyles(function (theme) {
|
|
88411
|
+
return core$1.createStyles({
|
|
88412
|
+
root: {
|
|
88413
|
+
height: 10,
|
|
88414
|
+
borderRadius: 5,
|
|
88415
|
+
width: '100%',
|
|
88416
|
+
marginBottom: 8
|
|
88417
|
+
},
|
|
88418
|
+
colorPrimary: {
|
|
88419
|
+
backgroundColor: theme.palette.grey[theme.palette.type === 'light' ? 200 : 700]
|
|
88420
|
+
},
|
|
88421
|
+
bar: {
|
|
88422
|
+
borderRadius: 5,
|
|
88423
|
+
backgroundColor: '#1a90ff'
|
|
88424
|
+
}
|
|
88425
|
+
});
|
|
88426
|
+
})(core$1.LinearProgress);
|
|
88427
|
+
|
|
88428
|
+
var TotalCard$2 = function TotalCard(_ref) {
|
|
88429
|
+
var card = _ref.card;
|
|
88430
|
+
var id = card.id,
|
|
88431
|
+
title = card.title;
|
|
88432
|
+
|
|
88433
|
+
var renderIcon = function renderIcon(value) {
|
|
88434
|
+
switch (value) {
|
|
88435
|
+
case 'total_check_in':
|
|
88436
|
+
return React__default.createElement(CheckinIcon, null);
|
|
88437
|
+
|
|
88438
|
+
case 'total_conversations_time':
|
|
88439
|
+
return React__default.createElement(ConversationTimeIcon, null);
|
|
88440
|
+
|
|
88441
|
+
case 'total_1_to_1':
|
|
88442
|
+
return React__default.createElement(ConversationIcon, null);
|
|
88443
|
+
|
|
88444
|
+
case 'total_class_reflections':
|
|
88445
|
+
return React__default.createElement(ClassReflectionIcon, null);
|
|
88446
|
+
|
|
88447
|
+
case 'total_conferences':
|
|
88448
|
+
return React__default.createElement(ConferenceIcon, null);
|
|
88449
|
+
}
|
|
88450
|
+
|
|
88451
|
+
return;
|
|
88452
|
+
};
|
|
88453
|
+
|
|
88454
|
+
var renderValue = function renderValue(item) {
|
|
88455
|
+
if (item.id === 'total_conversations_time') {
|
|
88456
|
+
return getConvertMinuteToHour$1(item.value);
|
|
88457
|
+
} else {
|
|
88458
|
+
return item.value;
|
|
88459
|
+
}
|
|
88460
|
+
};
|
|
88461
|
+
|
|
88462
|
+
var renderEqualValue = function renderEqualValue(card) {
|
|
88463
|
+
var result = Math.abs(card.value - card.lastMonthValue);
|
|
88464
|
+
return React__default.createElement("p", {
|
|
88465
|
+
className: "" + styles$7["equal-value"]
|
|
88466
|
+
}, card.value > card.lastMonthValue ? React__default.createElement(UpGreenIcon, null) : React__default.createElement(DownRedIcon, null), React__default.createElement("span", {
|
|
88467
|
+
style: {
|
|
88468
|
+
color: card.value > card.lastMonthValue ? '#0F9655' : '#C44140'
|
|
88469
|
+
}
|
|
88470
|
+
}, card.id === 'total_conversations_time' ? getConvertMinuteToHour$1(result, true) : result), "vs last month");
|
|
88471
|
+
};
|
|
88472
|
+
|
|
88473
|
+
return React__default.createElement("div", {
|
|
88474
|
+
className: styles$7["title-card-box"] + " " + styles$7["box-item"] + " p-4 mb-2 mb-sm-0 mb-lg-2 shadow-md"
|
|
88475
|
+
}, React__default.createElement("div", {
|
|
88476
|
+
className: "d-flex align-items-center justify-content-between w-100"
|
|
88477
|
+
}, React__default.createElement("p", {
|
|
88478
|
+
className: "" + styles$7["title-card"]
|
|
88479
|
+
}, title), renderIcon(id)), card.id === 'total_check_in' ? React__default.createElement(BorderLinearProgress, {
|
|
88480
|
+
variant: "determinate",
|
|
88481
|
+
value: 50
|
|
88482
|
+
}) : null, React__default.createElement("div", {
|
|
88483
|
+
className: "d-flex align-items-center w-100"
|
|
88484
|
+
}, React__default.createElement("p", {
|
|
88485
|
+
className: "" + styles$7["value-card"]
|
|
88486
|
+
}, renderValue(card), card.id === 'total_check_in' ? React__default.createElement("span", {
|
|
88487
|
+
style: {
|
|
88488
|
+
color: '#242424',
|
|
88489
|
+
opacity: 0.56
|
|
88490
|
+
}
|
|
88491
|
+
}, " / ", card === null || card === void 0 ? void 0 : card.totalStudent, " students") : null), renderEqualValue(card)));
|
|
88492
|
+
};
|
|
88493
|
+
|
|
88494
|
+
var useStyles$d = core$1.makeStyles(function () {
|
|
88495
|
+
return core$1.createStyles({
|
|
88496
|
+
title: {
|
|
88497
|
+
fontSize: 20,
|
|
88498
|
+
fontWeight: 600,
|
|
88499
|
+
lineHeight: '30px',
|
|
88500
|
+
marginBottom: 16,
|
|
88501
|
+
textAlign: 'center'
|
|
88502
|
+
}
|
|
88503
|
+
});
|
|
88504
|
+
});
|
|
88505
|
+
|
|
88506
|
+
var SchoolUsage = function SchoolUsage(_ref) {
|
|
88507
|
+
var classBox = _ref.classBox,
|
|
88508
|
+
totalCardData = _ref.totalCardData,
|
|
88509
|
+
schoolInfo = _ref.schoolInfo;
|
|
88510
|
+
var classes = useStyles$d();
|
|
88511
|
+
return React__default.createElement(core$1.Card, {
|
|
88512
|
+
className: classBox.card
|
|
88513
|
+
}, React__default.createElement(core$1.CardContent, {
|
|
88514
|
+
className: classBox.cardContent
|
|
88515
|
+
}, React__default.createElement("div", {
|
|
88516
|
+
className: "" + styles$7["school-logo"]
|
|
88517
|
+
}, React__default.createElement("img", {
|
|
88518
|
+
src: "" + (schoolInfo !== null && schoolInfo !== void 0 && schoolInfo.logo ? marioCore.getFileUrl("" + (schoolInfo === null || schoolInfo === void 0 ? void 0 : schoolInfo.logo)) : marioCore.getStaticFileUrl("/images/logoR.png")),
|
|
88519
|
+
alt: schoolInfo !== null && schoolInfo !== void 0 && schoolInfo.name ? schoolInfo === null || schoolInfo === void 0 ? void 0 : schoolInfo.name : "mario school"
|
|
88520
|
+
}), React__default.createElement("p", null, schoolInfo !== null && schoolInfo !== void 0 && schoolInfo.name ? schoolInfo === null || schoolInfo === void 0 ? void 0 : schoolInfo.name : "mario school")), React__default.createElement(core$1.Typography, {
|
|
88521
|
+
variant: "h4",
|
|
88522
|
+
component: "h4",
|
|
88523
|
+
className: classes.title
|
|
88524
|
+
}, "School Usage"), totalCardData.map(function (item) {
|
|
88525
|
+
return React__default.createElement(TotalCard$2, {
|
|
88526
|
+
key: item.id,
|
|
88527
|
+
card: item
|
|
88528
|
+
});
|
|
88529
|
+
})));
|
|
88530
|
+
};
|
|
88531
|
+
|
|
88532
|
+
var StyledTableCell = core$1.withStyles(function () {
|
|
88533
|
+
return core$1.createStyles({
|
|
88534
|
+
head: {
|
|
88535
|
+
backgroundColor: '#EFF3FC',
|
|
88536
|
+
fontWeight: 600,
|
|
88537
|
+
borderRight: '1px dashed #D3D3D3'
|
|
88538
|
+
},
|
|
88539
|
+
body: {
|
|
88540
|
+
fontSize: 14,
|
|
88541
|
+
lineHeight: '20px',
|
|
88542
|
+
borderRight: '1px dashed #D3D3D3',
|
|
88543
|
+
padding: '16px 40px'
|
|
88544
|
+
}
|
|
88545
|
+
});
|
|
88546
|
+
})(core$1.TableCell);
|
|
88547
|
+
var StyledTableRow = core$1.withStyles(function (theme) {
|
|
88548
|
+
return core$1.createStyles({
|
|
88549
|
+
root: {
|
|
88550
|
+
fontWeight: 400,
|
|
88551
|
+
'&:nth-of-type(odd)': {
|
|
88552
|
+
backgroundColor: theme.palette.action.hover
|
|
88553
|
+
}
|
|
88554
|
+
}
|
|
88555
|
+
});
|
|
88556
|
+
})(core$1.TableRow);
|
|
88557
|
+
var useStyles$e = core$1.makeStyles(function () {
|
|
88558
|
+
return core$1.createStyles({
|
|
88559
|
+
root: {
|
|
88560
|
+
padding: '0 !important'
|
|
88561
|
+
},
|
|
88562
|
+
tableContainerRoot: {
|
|
88563
|
+
height: 365,
|
|
88564
|
+
'&::-webkit-scrollbar': {
|
|
88565
|
+
width: 10,
|
|
88566
|
+
background: '#F6F6F6'
|
|
88567
|
+
},
|
|
88568
|
+
'&::-webkit-scrollbar-track': {
|
|
88569
|
+
background: '#F6F6F6',
|
|
88570
|
+
borderRadius: 10
|
|
88571
|
+
},
|
|
88572
|
+
'&::-webkit-scrollbar-thumb': {
|
|
88573
|
+
background: '#316CD9',
|
|
88574
|
+
borderRadius: 10
|
|
88575
|
+
}
|
|
88576
|
+
},
|
|
88577
|
+
title: {
|
|
88578
|
+
fontSize: 20,
|
|
88579
|
+
fontWeight: 600,
|
|
88580
|
+
lineHeight: '30px',
|
|
88581
|
+
marginBottom: 24,
|
|
88582
|
+
paddingTop: 32,
|
|
88583
|
+
paddingLeft: 40
|
|
88584
|
+
},
|
|
88585
|
+
label: {
|
|
88586
|
+
fontSize: 16
|
|
88587
|
+
}
|
|
88588
|
+
});
|
|
88589
|
+
});
|
|
88590
|
+
|
|
88591
|
+
var GradeUsage = function GradeUsage(_ref) {
|
|
88592
|
+
var classBox = _ref.classBox,
|
|
88593
|
+
dataGradeUsage = _ref.dataGradeUsage;
|
|
88594
|
+
var classes = useStyles$e();
|
|
88595
|
+
return React__default.createElement(core$1.Card, {
|
|
88596
|
+
className: classBox.card + " " + classes.root
|
|
88597
|
+
}, React__default.createElement(core$1.CardContent, {
|
|
88598
|
+
className: classBox.cardContent
|
|
88599
|
+
}, React__default.createElement(core$1.Typography, {
|
|
88600
|
+
variant: "h4",
|
|
88601
|
+
component: "h4",
|
|
88602
|
+
className: classes.title
|
|
88603
|
+
}, "Grade Usage"), React__default.createElement(core$1.TableContainer, {
|
|
88604
|
+
component: core$1.Paper,
|
|
88605
|
+
className: classes.tableContainerRoot
|
|
88606
|
+
}, React__default.createElement(core$1.Table, {
|
|
88607
|
+
stickyHeader: true,
|
|
88608
|
+
"aria-label": "sticky table"
|
|
88609
|
+
}, React__default.createElement(core$1.TableHead, null, React__default.createElement(core$1.TableRow, null, React__default.createElement(StyledTableCell, {
|
|
88610
|
+
align: "center"
|
|
88611
|
+
}, "Grade"), React__default.createElement(StyledTableCell, {
|
|
88612
|
+
align: "center"
|
|
88613
|
+
}, "Total 1-to-1"), React__default.createElement(StyledTableCell, {
|
|
88614
|
+
align: "center"
|
|
88615
|
+
}, "Total Conversation"), React__default.createElement(StyledTableCell, {
|
|
88616
|
+
align: "center"
|
|
88617
|
+
}, "Total Check-in"), React__default.createElement(StyledTableCell, {
|
|
88618
|
+
align: "center"
|
|
88619
|
+
}, "Total Conferences"), React__default.createElement(StyledTableCell, {
|
|
88620
|
+
align: "center"
|
|
88621
|
+
}, "Total Reflections"))), React__default.createElement(core$1.TableBody, null, dataGradeUsage.map(function (row) {
|
|
88622
|
+
return React__default.createElement(StyledTableRow, {
|
|
88623
|
+
key: row.grade
|
|
88624
|
+
}, React__default.createElement(StyledTableCell, {
|
|
88625
|
+
component: "th",
|
|
88626
|
+
scope: "row"
|
|
88627
|
+
}, row.grade), React__default.createElement(StyledTableCell, {
|
|
88628
|
+
align: "left"
|
|
88629
|
+
}, row.totalOneToOne), React__default.createElement(StyledTableCell, {
|
|
88630
|
+
align: "left"
|
|
88631
|
+
}, row.totalConversation), React__default.createElement(StyledTableCell, {
|
|
88632
|
+
align: "left"
|
|
88633
|
+
}, row.totalCheckIn), React__default.createElement(StyledTableCell, {
|
|
88634
|
+
align: "left"
|
|
88635
|
+
}, row.totalConference), React__default.createElement(StyledTableCell, {
|
|
88636
|
+
align: "left"
|
|
88637
|
+
}, row.totalReflection));
|
|
88638
|
+
}))))));
|
|
88639
|
+
};
|
|
88640
|
+
|
|
88641
|
+
var useStyles$f = core$1.makeStyles(function () {
|
|
88642
|
+
return core$1.createStyles({
|
|
88643
|
+
root: {
|
|
88644
|
+
display: 'flex'
|
|
88645
|
+
},
|
|
88646
|
+
leftRoot: {
|
|
88647
|
+
display: 'flex',
|
|
88648
|
+
flexDirection: "column",
|
|
88649
|
+
flexWrap: 'nowrap',
|
|
88650
|
+
flex: 1
|
|
88651
|
+
},
|
|
88652
|
+
schoolUsageRoot: {
|
|
88653
|
+
display: 'flex',
|
|
88654
|
+
'& .MuiCard-root': {
|
|
88655
|
+
flex: 1
|
|
88656
|
+
}
|
|
88657
|
+
},
|
|
88658
|
+
adminGeneralTipRoot: {
|
|
88659
|
+
flexBasis: 0
|
|
88660
|
+
},
|
|
88661
|
+
viewStudentRoot: {
|
|
88662
|
+
flexBasis: 0
|
|
88663
|
+
},
|
|
88664
|
+
studentWellnessRoot: {
|
|
88665
|
+
flex: 1
|
|
88666
|
+
},
|
|
88667
|
+
gradeUsageRoot: {
|
|
88668
|
+
marginTop: 12,
|
|
88669
|
+
paddingBottom: 32
|
|
88670
|
+
}
|
|
88671
|
+
});
|
|
88672
|
+
});
|
|
88673
|
+
|
|
88674
|
+
var HomePage = function HomePage() {
|
|
88675
|
+
var classes = useStyles$f();
|
|
88676
|
+
|
|
88677
|
+
var _useHome = useHome(),
|
|
88678
|
+
useStylesBox = _useHome.useStylesBox,
|
|
88679
|
+
currentUser = _useHome.currentUser,
|
|
88680
|
+
dateOfLastMonth = _useHome.dateOfLastMonth,
|
|
88681
|
+
dataStudents = _useHome.dataStudents,
|
|
88682
|
+
searchStringStudent = _useHome.searchStringStudent,
|
|
88683
|
+
setSearchStringStudent = _useHome.setSearchStringStudent,
|
|
88684
|
+
studentSelected = _useHome.studentSelected,
|
|
88685
|
+
setStudentSelected = _useHome.setStudentSelected,
|
|
88686
|
+
handleViewStudent = _useHome.handleViewStudent,
|
|
88687
|
+
handleAddNewStudent = _useHome.handleAddNewStudent,
|
|
88688
|
+
totalCardData = _useHome.totalCardData,
|
|
88689
|
+
schoolInfo = _useHome.schoolInfo,
|
|
88690
|
+
avgQuestionLastMonth = _useHome.avgQuestionLastMonth,
|
|
88691
|
+
stressData = _useHome.stressData,
|
|
88692
|
+
safetyData = _useHome.safetyData,
|
|
88693
|
+
studentSkillQuestion = _useHome.studentSkillQuestion,
|
|
88694
|
+
generalTips = _useHome.generalTips,
|
|
88695
|
+
dataGradeUsage = _useHome.dataGradeUsage;
|
|
88696
|
+
|
|
88697
|
+
return React__default.createElement("div", {
|
|
88698
|
+
className: "w-100 h-100"
|
|
88699
|
+
}, React__default.createElement(core$1.Grid, {
|
|
88700
|
+
container: true,
|
|
88701
|
+
spacing: 3
|
|
88702
|
+
}, React__default.createElement(core$1.Grid, {
|
|
88703
|
+
item: true,
|
|
88704
|
+
xs: 8,
|
|
88705
|
+
className: classes.root
|
|
88706
|
+
}, React__default.createElement(core$1.Grid, {
|
|
88707
|
+
container: true,
|
|
88708
|
+
spacing: 3,
|
|
88709
|
+
className: classes.leftRoot
|
|
88710
|
+
}, React__default.createElement(core$1.Grid, {
|
|
88711
|
+
item: true,
|
|
88712
|
+
xs: 12,
|
|
88713
|
+
className: classes.adminGeneralTipRoot
|
|
88714
|
+
}, React__default.createElement(AdminGeneralTip, {
|
|
88715
|
+
classBox: useStylesBox(),
|
|
88716
|
+
generalTips: generalTips
|
|
88717
|
+
})), React__default.createElement(core$1.Grid, {
|
|
88718
|
+
item: true,
|
|
88719
|
+
xs: 12,
|
|
88720
|
+
className: classes.viewStudentRoot
|
|
88721
|
+
}, React__default.createElement(ViewStudent, {
|
|
88722
|
+
classBox: useStylesBox(),
|
|
88723
|
+
handleAddNewStudent: handleAddNewStudent,
|
|
88724
|
+
dataStudents: dataStudents,
|
|
88725
|
+
searchStringStudent: searchStringStudent,
|
|
88726
|
+
setSearchStringStudent: setSearchStringStudent,
|
|
88727
|
+
studentSelected: studentSelected,
|
|
88728
|
+
setStudentSelected: setStudentSelected,
|
|
88729
|
+
handleViewStudent: handleViewStudent
|
|
88730
|
+
})), React__default.createElement(core$1.Grid, {
|
|
88731
|
+
item: true,
|
|
88732
|
+
xs: 12,
|
|
88733
|
+
className: classes.studentWellnessRoot
|
|
88734
|
+
}, React__default.createElement(StudentWellness, {
|
|
88735
|
+
classBox: useStylesBox(),
|
|
88736
|
+
isStudent: currentUser.roles.includes("Student"),
|
|
88737
|
+
dateOfLastMonth: dateOfLastMonth,
|
|
88738
|
+
avgQuestionLastMonth: avgQuestionLastMonth,
|
|
88739
|
+
stressData: stressData,
|
|
88740
|
+
safetyData: safetyData,
|
|
88741
|
+
studentSkillQuestion: studentSkillQuestion
|
|
88742
|
+
})))), React__default.createElement(core$1.Grid, {
|
|
88743
|
+
item: true,
|
|
88744
|
+
xs: 4,
|
|
88745
|
+
className: classes.schoolUsageRoot
|
|
88746
|
+
}, React__default.createElement(SchoolUsage, {
|
|
88747
|
+
classBox: useStylesBox(),
|
|
88748
|
+
totalCardData: totalCardData,
|
|
88749
|
+
schoolInfo: schoolInfo
|
|
88750
|
+
}))), React__default.createElement(core$1.Grid, {
|
|
88751
|
+
container: true,
|
|
88752
|
+
spacing: 3,
|
|
88753
|
+
className: classes.gradeUsageRoot
|
|
88754
|
+
}, React__default.createElement(core$1.Grid, {
|
|
88755
|
+
item: true,
|
|
88756
|
+
xs: 12
|
|
88757
|
+
}, React__default.createElement(GradeUsage, {
|
|
88758
|
+
classBox: useStylesBox(),
|
|
88759
|
+
dataGradeUsage: dataGradeUsage
|
|
88760
|
+
}))));
|
|
88761
|
+
};
|
|
88762
|
+
|
|
88763
|
+
var style$4 = {"font-large":"_3Sup6","block-card-title":"_3Qn6F","btn-conduct-checkIn":"_1qNfu","btn-conduct-session":"_2K2FJ","total-card-title":"_3vk3b","total-card-value":"_IHasQ","header-left":"_11kCD","custom-header-title":"_d8RZe","custom-header-large-title":"_3lHAH","block-card-btn-title":"_3svb4","custom-button-content":"_1oCai","show-answers":"_1L_vx","detail-questions":"_3kMDk","detail":"_3TKX7","answers":"_ejtt2","answer-item":"_2SV9m","download-btn":"_oQC64","btn-favorite-text":"_3m4oI","box-slider":"_1bTW5","slider-text":"_1gs0Z","chip-slider":"_xowPU","value":"_3hnI_","compare-avr":"_lL-Yg","content":"_1EgBn","percent":"_3Bs0W","arrow":"_2BhP8","label-single-choice":"_3oSdM","btn-choice":"_hPL_o","font-small":"_2JnMg","reset-the-content":"_1zJw3","btn-duplicate-survey":"_11N79","menu-item-strategories":"_1oZYB","time-Date":"_1Q7w6","time-Hours-Minute":"_3ZcQD","arrow-icon":"_2NJ7E","word-break":"_27YiF","header-icon":"_dqAoB","full-width":"_2DGWF","header-right-student":"_1GQrw","header-right":"_1jTMg","header-student":"_SSISD","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","timer-session":"_26lTc","play-icon-pause":"_d_2HA","play-icon":"_1mIjz","block-right":"_2CN0T","filter-item":"_3jAEH","btn-conduct-session-disabled":"_3ae8F","btn-conduct-icon":"_2msER","animation-btn-conduct":"_3bftL","ring":"_3Jd73","answer-text":"_Vct9B","icon-text":"_1MuMl","icon-left":"_3bBeE","margin-right":"_2T6Ym","up-color-background":"_1cck_","down-color-background":"_2Z76g","grey-background":"_2ryO2","up-color-icon":"_RTrVT","up-color":"_3UMJw","down-color-icon":"_3hZXx","down-color":"_1u1gK","rotate":"_1yp9N","font-question-name":"_13S5D","font-question":"_t-JhH","font-question--all-bold":"_2t1gp","font-question-description":"_1YLGi","question-block":"_2gqE-","question-text":"_337MJ","question-slider":"_k_dl-","input-survey":"_24vPq","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","radio-choice":"_2RwcR","checkbox-control":"_3woGH","block-question":"_3TJl8","question-choice":"_3LiGg","radio-disable":"_1WFdo","pointer-page-result":"_3mfi0","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","custom-header":"_22CX0","custom-header-right":"_3EDTf","custom-header-button":"_2OUSw","disable-button":"_3rQql","border-none":"_3MpEU","block-btn-header":"_25ahZ","custom-preview-button":"_mpfwz","total-card-box":"_1Xx6l","total-card-box--hover":"_2_ntJ","total-card-box-3":"_2eiNE","total-card-box-4":"_3eYTQ","total-card-box-5":"_230Hu","total-card-box__content":"_3ua19","status-default":"_165c9","pending":"_ZcAbu","active":"_3oAH-","close":"_3XmhO","box-filter":"_KT2NK","block-total":"_2GGFc","filter-select":"_3xiAo","box-filter-left":"_1hkQM","filter-select-list":"_3zE9Z","box-filter-right":"_1SOsh","search-input-icon":"_Od6MC","inputInput":"_2st_0","filter-item-collapse":"_2opDJ","box-show-filter-mobile":"_3xvBF","icon-show-all-filter":"_3gNUH","space-item":"_1G-S_","block-card-name":"_2Wl9Z","block-card-btn":"_1Z1H6","block-card-btn-icon":"_2Bg4S","table-cell":"_2uhRa","table-cell--pointer":"_3DnAh","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","yes-active":"_2AK7h","no-active":"_1UouU","item-select-role":"_1KcY7","item-role-active":"_dOVso","model-switch-roles":"_3ZqxI","box-switch":"_2Nd8Z","title-label":"_XYA0v","title-text":"_88rqO","header-contact":"_EKp5e","logo-home":"_24U3W","hide-in-desktop":"_2LIqK","hamburger-menu":"_2yRc8","collapse-box":"_WX97m","nav-home":"_1TT1q","contact":"_NszFe","active-current":"_19XSx","box-header-user":"_2UxPq","header-user-left":"_2GnfS","user-avatar":"_2voun","user-detail":"_2NSw4","user-name":"_2ncLc","user-chip":"_3MdPs","chip":"_2clqF","grade":"_WSIoQ","date":"_1fNCD","header-user-right":"_Nd4GQ","disable-slider":"_1Vzhe","h-200":"_1xJfb","h-250":"_2IoEF","half-circle-slider":"_CRJ3D","wrapper":"_yak_n","t-125":"_3O6h7","t-180":"_tTvT4","box-slider-text":"_3QJJx","text-right":"_tZ2Y_","icon":"_20YJX","circle-slider-text":"_1LcjC","circle-slider-value":"_3Ch7F","roundy-gradient":"_PnoOX","pointer":"_1gsNz","icon-info":"_37jaA","icon-warning":"_1eWQQ","answer--never":"_1mTcA","answer--rarely":"_Vu1zQ","answer--sometimes":"_X0wca","answer--often":"_2dDxa","answer--almost-always":"_390EV","answer--all-the-time":"_28JDY","block-container":"_1PGSC","the-container":"_mQufI","custom-scrollbar":"_12ysw"};
|
|
88764
|
+
|
|
88765
|
+
function r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r$2(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r$2(e))&&(n&&(n+=" "),n+=t);return n}
|
|
88766
|
+
|
|
88767
|
+
var handleUserRole = function handleUserRole(userRoles) {
|
|
88768
|
+
if (userRoles !== null && userRoles !== void 0 && userRoles.includes("Teacher") && userRoles !== null && userRoles !== void 0 && userRoles.includes("Assistant")) {
|
|
88769
|
+
var roles = userRoles.filter(function (r) {
|
|
88770
|
+
return r !== "Teacher" && r !== "Assistant";
|
|
88771
|
+
});
|
|
88772
|
+
roles.push("Teacher/Assistant");
|
|
88773
|
+
return roles;
|
|
88774
|
+
}
|
|
88775
|
+
|
|
88776
|
+
return userRoles;
|
|
88777
|
+
};
|
|
88778
|
+
|
|
88779
|
+
var useStyles$g = core$1.makeStyles({
|
|
88780
|
+
dropdown: {
|
|
88781
|
+
zIndex: "1410 !important",
|
|
88782
|
+
top: "40px !important",
|
|
88783
|
+
"& .MuiList-padding": {
|
|
88784
|
+
padding: "8px !important"
|
|
88785
|
+
},
|
|
88786
|
+
"& .MuiPaper-rounded": {
|
|
88787
|
+
borderRadius: "8px"
|
|
88788
|
+
},
|
|
88789
|
+
"& .MuiListItem-root.Mui-selected, & .MuiListItem-root.Mui-selected:hover": {
|
|
88790
|
+
backgroundColor: "#f1faff",
|
|
88791
|
+
color: "#009ef7",
|
|
88792
|
+
borderRadius: "8px"
|
|
88793
|
+
}
|
|
88794
|
+
},
|
|
88795
|
+
fontMedium: {
|
|
88796
|
+
fontSize: "16px"
|
|
88797
|
+
},
|
|
88798
|
+
icon_lang: {
|
|
88799
|
+
width: "30px",
|
|
88800
|
+
marginRight: "10px"
|
|
88801
|
+
}
|
|
88802
|
+
});
|
|
88803
|
+
|
|
88804
|
+
var LanguageDropdown = function LanguageDropdown() {
|
|
88805
|
+
var defaultLanguage = !!localStorage.getItem("language") ? localStorage.getItem("language") : navigator.language || marioCore.DEFAULT_LANGUAGE_CODE;
|
|
88806
|
+
|
|
88807
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
88808
|
+
i18n = _useTranslation.i18n;
|
|
88809
|
+
|
|
88810
|
+
var dispatch = reactRedux.useDispatch();
|
|
88811
|
+
var classes = useStyles$g();
|
|
88812
|
+
|
|
88813
|
+
var _useState = React.useState(null),
|
|
88814
|
+
anchorLang = _useState[0],
|
|
88815
|
+
setAnchorLang = _useState[1];
|
|
88816
|
+
|
|
88817
|
+
var _useState2 = React.useState(defaultLanguage),
|
|
88818
|
+
currentLang = _useState2[0],
|
|
88819
|
+
setCurrentLang = _useState2[1];
|
|
88820
|
+
|
|
88821
|
+
var openChooseLanguage = Boolean(anchorLang);
|
|
88822
|
+
|
|
88823
|
+
var handleLangClose = function handleLangClose() {
|
|
88824
|
+
return setAnchorLang(null);
|
|
88825
|
+
};
|
|
88826
|
+
|
|
88827
|
+
var handleLangMenu = function handleLangMenu(event) {
|
|
88828
|
+
setAnchorLang(event.currentTarget);
|
|
88829
|
+
};
|
|
88830
|
+
|
|
88831
|
+
var changeLanguageApp = function changeLanguageApp(lang) {
|
|
88832
|
+
if (!marioCore.SUPPORTED_LANGUAGES_CODE.includes(lang)) lang = marioCore.DEFAULT_LANGUAGE_CODE;
|
|
88833
|
+
i18n.changeLanguage(lang);
|
|
88834
|
+
localStorage.setItem("language", lang);
|
|
88835
|
+
setCurrentLang(lang);
|
|
88836
|
+
dispatch(marioCore.setLanguage(lang));
|
|
88837
|
+
};
|
|
88838
|
+
|
|
88839
|
+
var currentLanguage = React.useMemo(function () {
|
|
88840
|
+
var current = marioCore.LANGUAGES.find(function (i) {
|
|
88841
|
+
return i.code === currentLang;
|
|
88842
|
+
});
|
|
88843
|
+
if (!current) return null;
|
|
88844
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement("img", {
|
|
88845
|
+
className: "mr-2 " + classes.icon_lang,
|
|
88846
|
+
src: "" + marioCore.getStaticFileUrl(current.image)
|
|
88847
|
+
}), current.shortName);
|
|
88848
|
+
}, [currentLang]);
|
|
88849
|
+
React.useEffect(function () {
|
|
88850
|
+
changeLanguageApp(currentLang);
|
|
88851
|
+
}, [currentLang]);
|
|
88852
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(core$1.IconButton, {
|
|
88853
|
+
onClick: handleLangMenu,
|
|
88854
|
+
color: "inherit"
|
|
88855
|
+
}, React__default.createElement("span", {
|
|
88856
|
+
className: "ml-2 d-flex align-items-center"
|
|
88857
|
+
}, currentLanguage, React__default.createElement(ExpandMoreIcon, {
|
|
88858
|
+
fontSize: "small"
|
|
88859
|
+
}))), React__default.createElement(core$1.Menu, {
|
|
88860
|
+
id: "menu-language",
|
|
88861
|
+
className: "" + classes.dropdown,
|
|
88862
|
+
anchorEl: anchorLang,
|
|
88863
|
+
anchorOrigin: {
|
|
88864
|
+
vertical: "top",
|
|
88865
|
+
horizontal: "right"
|
|
88866
|
+
},
|
|
88867
|
+
keepMounted: true,
|
|
88868
|
+
transformOrigin: {
|
|
88869
|
+
vertical: "top",
|
|
88870
|
+
horizontal: "right"
|
|
88871
|
+
},
|
|
88872
|
+
open: openChooseLanguage,
|
|
88873
|
+
onClose: handleLangClose,
|
|
88874
|
+
onClick: handleLangClose
|
|
88875
|
+
}, marioCore.LANGUAGES.map(function (i) {
|
|
88876
|
+
return React__default.createElement(core$1.MenuItem, {
|
|
88877
|
+
key: i.code,
|
|
88878
|
+
onClick: function onClick() {
|
|
88879
|
+
return setCurrentLang(i.code);
|
|
88880
|
+
},
|
|
88881
|
+
selected: currentLang == i.code,
|
|
88882
|
+
className: classes.fontMedium
|
|
88883
|
+
}, React__default.createElement("img", {
|
|
88884
|
+
className: classes.icon_lang,
|
|
88885
|
+
src: marioCore.getStaticFileUrl(i.image)
|
|
88886
|
+
}), i.name);
|
|
88887
|
+
})));
|
|
88888
|
+
};
|
|
88889
|
+
|
|
88890
|
+
var useAnimation = function useAnimation(data, fontSize) {
|
|
88891
|
+
var _useState = React.useState(),
|
|
88892
|
+
pWidth = _useState[0],
|
|
88893
|
+
setPWidth = _useState[1];
|
|
88894
|
+
|
|
88895
|
+
var _useState2 = React.useState(),
|
|
88896
|
+
cWidth = _useState2[0],
|
|
88897
|
+
setCWidth = _useState2[1];
|
|
88898
|
+
|
|
88899
|
+
var parentRef = React.useRef(null);
|
|
88900
|
+
var childRef = React.useRef(null);
|
|
88901
|
+
React.useEffect(function () {
|
|
88902
|
+
if (parentRef.current) {
|
|
88903
|
+
setPWidth(parentRef.current.offsetWidth);
|
|
88904
|
+
}
|
|
88905
|
+
|
|
88906
|
+
if (childRef.current) {
|
|
88907
|
+
setCWidth(childRef.current.offsetWidth);
|
|
88908
|
+
}
|
|
88909
|
+
}, [JSON.stringify(data), fontSize]);
|
|
88910
|
+
return {
|
|
88911
|
+
parentRef: parentRef,
|
|
88912
|
+
childRef: childRef,
|
|
88913
|
+
pWidth: pWidth,
|
|
88914
|
+
cWidth: cWidth
|
|
88915
|
+
};
|
|
88916
|
+
};
|
|
88917
|
+
|
|
88918
|
+
var styles$9 = {"notification__title":"_2xFCD","notification":"_28v_I","notification__button":"_1la70"};
|
|
88919
|
+
|
|
88920
|
+
var SPEED_PX_PER_SECOND = 120;
|
|
88921
|
+
|
|
88922
|
+
var NotificationAlert = function NotificationAlert(_ref) {
|
|
88923
|
+
var data = _ref.data,
|
|
88924
|
+
isOpen = _ref.isOpen,
|
|
88925
|
+
onClose = _ref.onClose,
|
|
88926
|
+
fontSize = _ref.fontSize;
|
|
88927
|
+
|
|
88928
|
+
var _useAnimation = useAnimation(data, fontSize),
|
|
88929
|
+
parentRef = _useAnimation.parentRef,
|
|
88930
|
+
childRef = _useAnimation.childRef,
|
|
88931
|
+
pWidth = _useAnimation.pWidth,
|
|
88932
|
+
cWidth = _useAnimation.cWidth;
|
|
88933
|
+
|
|
88934
|
+
var classes = useStyles$h({
|
|
88935
|
+
width: cWidth || 0,
|
|
88936
|
+
duration: cWidth ? 1.05 * cWidth / SPEED_PX_PER_SECOND : 0
|
|
88937
|
+
});
|
|
88938
|
+
return React__default.createElement(core$1.Collapse, {
|
|
88939
|
+
"in": isOpen,
|
|
88940
|
+
className: "w-100 position-relative shadow-sm " + styles$9["notification"]
|
|
88941
|
+
}, React__default.createElement("div", {
|
|
88942
|
+
className: "h-100"
|
|
88943
|
+
}, React__default.createElement("p", {
|
|
88944
|
+
ref: parentRef,
|
|
88945
|
+
title: "" + (!!data ? data.name : ""),
|
|
88946
|
+
className: "mb-0 w-100 " + styles$9["notification__title"]
|
|
88947
|
+
}, React__default.createElement("span", {
|
|
88948
|
+
ref: childRef,
|
|
88949
|
+
className: !!cWidth && !!pWidth && cWidth > pWidth ? classes.animate : "",
|
|
88950
|
+
style: {
|
|
88951
|
+
fontSize: fontSize
|
|
88952
|
+
}
|
|
88953
|
+
}, !!data && data.name)), React__default.createElement(core$1.IconButton, {
|
|
88954
|
+
"aria-label": "hide",
|
|
88955
|
+
title: "Close notification",
|
|
88956
|
+
className: "position-absolute " + styles$9["notification__button"],
|
|
88957
|
+
onClick: function onClick() {
|
|
88958
|
+
!!onClose && onClose();
|
|
88959
|
+
}
|
|
88960
|
+
}, React__default.createElement(icons.Close, null))));
|
|
88961
|
+
};
|
|
88962
|
+
|
|
88963
|
+
var useStyles$h = styles$b.makeStyles(function () {
|
|
88964
|
+
return {
|
|
88965
|
+
animate: {
|
|
88966
|
+
left: function left(_ref2) {
|
|
88967
|
+
var width = _ref2.width;
|
|
88968
|
+
return "-" + width + "px";
|
|
88969
|
+
},
|
|
88970
|
+
animation: "$moving linear 2s infinite",
|
|
88971
|
+
animationDuration: function animationDuration(_ref3) {
|
|
88972
|
+
var duration = _ref3.duration;
|
|
88973
|
+
return duration + "s";
|
|
88974
|
+
}
|
|
88975
|
+
},
|
|
88976
|
+
"@keyframes moving": {
|
|
88977
|
+
"0%": {
|
|
88978
|
+
left: "0px"
|
|
88979
|
+
},
|
|
88980
|
+
"5%": {
|
|
88981
|
+
left: "0px"
|
|
88982
|
+
},
|
|
88983
|
+
"100%": {
|
|
88984
|
+
left: function left(_ref4) {
|
|
88985
|
+
var width = _ref4.width;
|
|
88986
|
+
return "-" + width + "px";
|
|
88987
|
+
}
|
|
88988
|
+
}
|
|
88989
|
+
}
|
|
88990
|
+
};
|
|
88991
|
+
});
|
|
88992
|
+
|
|
88993
|
+
var NOTIFICATION_ALERT = marioCore.BASE_URL + "/api/notification-alerts";
|
|
88994
|
+
var getBySchool = function getBySchool() {
|
|
88995
|
+
return marioCore.api.get("" + NOTIFICATION_ALERT);
|
|
88996
|
+
};
|
|
88997
|
+
|
|
88998
|
+
var useNotificationAlert = function useNotificationAlert() {
|
|
88999
|
+
var _useState = React.useState(),
|
|
89000
|
+
data = _useState[0],
|
|
89001
|
+
setData = _useState[1];
|
|
89002
|
+
|
|
89003
|
+
var _useState2 = React.useState(false),
|
|
89004
|
+
isOpen = _useState2[0],
|
|
89005
|
+
setOpen = _useState2[1];
|
|
89006
|
+
|
|
89007
|
+
var location = reactRouterDom.useLocation();
|
|
89008
|
+
var storedData = localStorage.getItem(marioCore.NOTIFICATION_ALERT_KEY);
|
|
89009
|
+
|
|
89010
|
+
var getData = function getData() {
|
|
89011
|
+
try {
|
|
89012
|
+
var _temp2 = _catch(function () {
|
|
89013
|
+
return Promise.resolve(getBySchool()).then(function (res) {
|
|
89014
|
+
setData(res.data);
|
|
89015
|
+
var notification = storedData ? JSON.parse(storedData) : null;
|
|
89016
|
+
|
|
89017
|
+
if (!res.data.id || res.data.id === (notification === null || notification === void 0 ? void 0 : notification.id) && !(notification !== null && notification !== void 0 && notification.isOpen)) {
|
|
89018
|
+
var _res$data;
|
|
89019
|
+
|
|
89020
|
+
storeToLocalStorage({
|
|
89021
|
+
id: ((_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.id) || 0,
|
|
89022
|
+
isOpen: false
|
|
89023
|
+
});
|
|
89024
|
+
} else {
|
|
89025
|
+
var _res$data2;
|
|
89026
|
+
|
|
89027
|
+
storeToLocalStorage({
|
|
89028
|
+
id: ((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.id) || 0,
|
|
89029
|
+
isOpen: true
|
|
89030
|
+
});
|
|
89031
|
+
}
|
|
89032
|
+
});
|
|
89033
|
+
}, function (err) {
|
|
89034
|
+
var _err$response, _err$response$data;
|
|
89035
|
+
|
|
89036
|
+
console.warn("Error occur: " + (((_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));
|
|
89037
|
+
setOpen(false);
|
|
89038
|
+
});
|
|
89039
|
+
|
|
89040
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
89041
|
+
} catch (e) {
|
|
89042
|
+
return Promise.reject(e);
|
|
89043
|
+
}
|
|
89044
|
+
};
|
|
89045
|
+
|
|
89046
|
+
var storeToLocalStorage = function storeToLocalStorage(notification) {
|
|
89047
|
+
setOpen(notification.isOpen);
|
|
89048
|
+
!!data && localStorage.setItem(marioCore.NOTIFICATION_ALERT_KEY, JSON.stringify(notification));
|
|
89049
|
+
var event = new CustomEvent("changeStorage", {
|
|
89050
|
+
detail: notification
|
|
89051
|
+
});
|
|
89052
|
+
window.dispatchEvent(event);
|
|
89053
|
+
};
|
|
89054
|
+
|
|
89055
|
+
var handleCloseNotification = function handleCloseNotification() {
|
|
89056
|
+
storeToLocalStorage({
|
|
89057
|
+
id: (data === null || data === void 0 ? void 0 : data.id) || 0,
|
|
89058
|
+
isOpen: false
|
|
89059
|
+
});
|
|
89060
|
+
};
|
|
89061
|
+
|
|
89062
|
+
React.useEffect(function () {
|
|
89063
|
+
getData();
|
|
89064
|
+
}, [JSON.stringify(location)]);
|
|
89065
|
+
return {
|
|
89066
|
+
data: data,
|
|
89067
|
+
isOpen: isOpen,
|
|
89068
|
+
handleCloseNotification: handleCloseNotification
|
|
89069
|
+
};
|
|
89070
|
+
};
|
|
89071
|
+
|
|
89072
|
+
var buttonFontSize = function buttonFontSize(defaultFont) {
|
|
89073
|
+
if (defaultFont === SMALL_FONT_DEFAULT$1) return "12px";
|
|
89074
|
+
if (defaultFont === LARGE_FONT_DEFAULT$1) return "16px";
|
|
89075
|
+
return "inherit";
|
|
89076
|
+
};
|
|
89077
|
+
var tabLargeFontSize = function tabLargeFontSize(defaultFont) {
|
|
89078
|
+
if (defaultFont === SMALL_FONT_DEFAULT$1) return 16;
|
|
89079
|
+
if (defaultFont === LARGE_FONT_DEFAULT$1) return 20;
|
|
89080
|
+
return 18;
|
|
89081
|
+
};
|
|
89082
|
+
var handleClearFilterStorage = function handleClearFilterStorage() {
|
|
89083
|
+
localStorage.removeItem(SESSION_START_TIME);
|
|
89084
|
+
localStorage.removeItem(SESSION_END_TIME);
|
|
89085
|
+
localStorage.removeItem(SESSION_HISTORY_START_TIME);
|
|
89086
|
+
localStorage.removeItem(SESSION_HISTORY_END_TIME);
|
|
89087
|
+
localStorage.removeItem(NOTE_START_TIME);
|
|
89088
|
+
localStorage.removeItem(NOTE_END_TIME);
|
|
89089
|
+
localStorage.removeItem(SURVEY_OVERVIEW_FILTERS);
|
|
89090
|
+
localStorage.removeItem(SURVEY_SUMMARY_FILTERS);
|
|
89091
|
+
localStorage.removeItem(REFLECTION_DASHBOARD_FILTERS);
|
|
89092
|
+
localStorage.removeItem(STUDENT_REFECTION_FILTERS);
|
|
89093
|
+
localStorage.removeItem(TEACHER_REFLECTION_FILTERS);
|
|
89094
|
+
localStorage.removeItem(CONFERENCE_FILTERS);
|
|
89095
|
+
localStorage.removeItem(CONFERENCE_HISTORY_FILTERS);
|
|
89096
|
+
localStorage.removeItem(CHECKIN_STUDENT_FILTERS);
|
|
89097
|
+
localStorage.removeItem(CONFERENCE_STUDENT_FILTERS);
|
|
89098
|
+
localStorage.removeItem(LEARNING_PLAN_FILTERS);
|
|
89099
|
+
localStorage.removeItem(CONVERSATION_STUDENT_FILTERS);
|
|
89100
|
+
localStorage.removeItem(OVERVIEW_STUDENT_FILTERS);
|
|
89101
|
+
};
|
|
89102
|
+
|
|
89103
|
+
var NOTIFICATION_URL = "api/notification";
|
|
89104
|
+
var TEACHER_URL$2 = marioCore.BASE_URL + "/api/Teacher";
|
|
89105
|
+
var getUnreadNotification = function getUnreadNotification() {
|
|
89106
|
+
return marioCore.api.get(NOTIFICATION_URL + "/unread");
|
|
89107
|
+
};
|
|
89108
|
+
var getInformation = function getInformation() {
|
|
89109
|
+
return marioCore.api.get(TEACHER_URL$2 + "/information-enable");
|
|
89110
|
+
};
|
|
89111
|
+
|
|
89112
|
+
var UserIcon = function UserIcon() {
|
|
89113
|
+
return React__default.createElement("svg", {
|
|
89114
|
+
width: "24",
|
|
89115
|
+
height: "24",
|
|
89116
|
+
viewBox: "0 0 24 24",
|
|
89117
|
+
fill: "none",
|
|
89118
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89119
|
+
}, React__default.createElement("path", {
|
|
89120
|
+
"fill-rule": "evenodd",
|
|
89121
|
+
"clip-rule": "evenodd",
|
|
89122
|
+
d: "M15.6334 11.9937C13.6175 11.991 11.9997 10.4146 12.0071 8.45968C12.0145 6.55342 13.6721 4.98803 15.6704 5.00007C17.6528 5.01211 19.291 6.59938 19.2773 8.4947C19.2631 10.4398 17.6414 11.997 15.6334 11.9937ZM7.48269 5.00011C5.46904 4.99956 3.82626 6.56988 3.83081 8.49146C3.83479 10.4404 5.46278 11.9992 7.48894 11.9938C9.4787 11.9888 11.0982 10.4147 11.1004 8.48435C11.1027 6.58356 9.45936 5.00121 7.48269 5.00011ZM10.3524 18.9913H15.6306C16.5031 18.9913 17.3757 18.9913 18.2483 18.9918C18.5194 18.9918 18.7905 18.9921 19.0616 18.9923H19.0617H19.0618C19.7129 18.9929 20.3641 18.9934 21.0151 18.9907C21.6391 18.988 22.0202 18.6017 21.9992 18.0031C21.9968 17.9311 21.991 17.8594 21.9852 17.7875L21.9852 17.7875L21.9852 17.7873C21.9835 17.7668 21.9819 17.7462 21.9803 17.7257C21.9795 17.716 21.9788 17.7064 21.9781 17.6967C21.8194 15.4704 20.0976 13.5056 17.8382 13.0246C16.5373 12.7478 15.2079 12.7893 13.8996 12.9447C11.3496 13.2473 9.33307 15.4687 9.28359 17.9435C9.26937 18.6449 9.62204 18.9913 10.3524 18.9913ZM7.56062 18.9914C7.22842 16.712 8.00089 14.8254 9.56289 13.1889C9.55873 13.1842 9.55525 13.1792 9.55201 13.1745C9.54596 13.1659 9.54072 13.1584 9.53331 13.1555C9.47724 13.1348 9.41964 13.1165 9.36244 13.0984L9.35299 13.0954C8.48496 12.8185 7.59133 12.8409 6.69714 12.8885C5.85868 12.9334 5.07939 13.1785 4.37916 13.6206C2.81261 14.6104 2.05152 16.021 2.00089 17.82C1.97757 18.6462 2.41102 19.0171 3.2125 18.9996C4.186 18.9785 5.16007 18.983 6.1341 18.9876C6.54421 18.9895 6.95432 18.9914 7.36437 18.9914H7.56062Z",
|
|
89123
|
+
fill: "#242424"
|
|
89124
|
+
}));
|
|
89125
|
+
};
|
|
89126
|
+
|
|
89127
|
+
var ToolIcon = function ToolIcon() {
|
|
89128
|
+
return React__default.createElement("svg", {
|
|
89129
|
+
width: "24",
|
|
89130
|
+
height: "24",
|
|
89131
|
+
viewBox: "0 0 24 24",
|
|
89132
|
+
fill: "none",
|
|
89133
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89134
|
+
}, React__default.createElement("path", {
|
|
89135
|
+
"fill-rule": "evenodd",
|
|
89136
|
+
"clip-rule": "evenodd",
|
|
89137
|
+
d: "M19.9338 7.13751L19.9337 7.13753C19.8872 7.20396 19.8407 7.27043 19.7848 7.32773C19.545 7.5737 19.3014 7.81637 19.0623 8.0545C18.9833 8.13321 18.9048 8.21144 18.8271 8.28912L17.8031 7.26443C17.103 6.56395 16.4061 5.86661 15.7122 5.17191C15.8096 5.07237 15.9076 4.97062 16.0067 4.86785L16.0067 4.86784C16.2491 4.61637 16.4974 4.35879 16.7562 4.11255C16.9414 3.93662 17.255 3.97581 17.4498 4.16842C17.7205 4.43548 17.9891 4.70452 18.2578 4.97363L18.2578 4.97364L18.2579 4.97366L18.2579 4.97371C18.3789 5.09485 18.4999 5.21601 18.621 5.33701C18.7161 5.43206 18.8117 5.52666 18.9073 5.62127L18.9074 5.62137L18.9074 5.6214L18.9075 5.62142L18.9075 5.62144C19.1447 5.85624 19.3819 6.09102 19.6117 6.33258C19.7098 6.43551 19.7946 6.55124 19.8793 6.66694L19.8793 6.66694C19.9188 6.72088 19.9583 6.77482 19.9992 6.82744V7.04632C19.9768 7.0761 19.9553 7.1068 19.9338 7.13751ZM17.1891 20.0002C16.9255 19.9305 16.7424 19.7483 16.561 19.5603C16.4536 19.449 16.3423 19.3419 16.2263 19.2302L16.2263 19.2302L16.2263 19.2302L16.2263 19.2302C16.1746 19.1805 16.122 19.1298 16.0684 19.0775C16.0862 19.0584 16.1027 19.0403 16.1185 19.0231C16.1469 18.992 16.1729 18.9636 16.1998 18.9362L16.9979 18.1232L17.796 17.3103L17.8057 17.3004C17.8389 17.2665 17.8725 17.2323 17.8995 17.194C18.0021 17.0476 17.9858 16.8567 17.864 16.7366C17.7397 16.614 17.5374 16.6049 17.3939 16.7187C17.3549 16.7497 17.3199 16.7852 17.2848 16.8208L17.2584 16.8475C16.689 17.4178 16.1201 17.9882 15.5595 18.5506C15.1736 18.1633 14.7949 17.783 14.4101 17.3964L14.2915 17.2773C14.3856 17.1837 14.4808 17.0893 14.5766 16.9942C14.8498 16.723 15.1286 16.4465 15.4043 16.1671C15.4682 16.1025 15.527 16.0216 15.5557 15.9374C15.605 15.794 15.532 15.6351 15.4073 15.5589C15.2642 15.4713 15.0948 15.4876 14.9639 15.6151C14.7032 15.8694 14.4467 16.1275 14.191 16.3872C14.0955 16.4842 14.003 16.5838 13.9122 16.6815L13.9121 16.6816L13.9117 16.6821L13.9116 16.6822L13.9115 16.6823C13.8744 16.7222 13.8376 16.7618 13.801 16.8008L13.4023 16.3991L13.4011 16.3979L13.3993 16.3961C13.1326 16.1274 12.874 15.8669 12.6214 15.6122C13.6004 14.6333 14.5947 13.639 15.6229 12.6113C15.7227 12.7151 15.8234 12.8208 15.925 12.9276L15.9252 12.9277C16.153 13.1671 16.3856 13.4114 16.6244 13.6498C17.6221 14.6458 18.6236 15.6381 19.6267 16.6286C19.7919 16.7916 19.9395 16.9605 20 17.1906V17.5029C19.9158 17.7501 19.7443 17.9319 19.5625 18.1107C19.0674 18.5985 18.576 19.09 18.088 19.5845C17.9161 19.7588 17.7414 19.9234 17.502 19.9997C17.3973 20.0002 17.2934 20.0002 17.1891 20.0002ZM4.04946 19.2083C3.93559 19.5956 4.03194 19.8199 4.38815 20H4.57627C4.59013 19.9945 4.60387 19.9886 4.61761 19.9827C4.64642 19.9703 4.67521 19.9579 4.70515 19.9491C5.13091 19.824 5.55681 19.6993 5.98268 19.5746C6.27902 19.4879 6.57534 19.4011 6.8716 19.3142C7.02333 19.2698 7.17506 19.2249 7.32295 19.1813L7.32559 19.1805L7.32619 19.1803L7.32662 19.1802L7.32699 19.1801C7.44277 19.1459 7.55617 19.1124 7.66535 19.0803C6.74188 18.1573 5.82216 17.238 4.90328 16.3191C4.90073 16.3267 4.8974 16.3358 4.89364 16.3462C4.88509 16.3698 4.8743 16.3996 4.86532 16.43C4.59295 17.356 4.321 18.2819 4.04946 19.2083ZM15.172 5.7334C16.2068 6.76774 17.2471 7.80792 18.2782 8.83893C14.9885 12.1275 11.69 15.4252 8.40029 18.7146L5.29411 15.6091C8.58465 12.3188 11.8835 9.0207 15.172 5.7334ZM8.41281 11.3663L11.4135 8.36583C11.4027 8.35927 11.39 8.35275 11.3765 8.34578C11.3445 8.32928 11.3077 8.3103 11.2796 8.28245C10.6524 7.65879 10.0271 7.03364 9.40152 6.40826C9.28774 6.29452 9.17396 6.18076 9.06015 6.06701C8.88775 5.89457 8.71552 5.72192 8.54328 5.54926C8.12047 5.12541 7.69761 4.70152 7.27202 4.28057C6.93125 3.94371 6.46367 3.91495 6.13958 4.23054C5.4914 4.86174 4.85239 5.50294 4.21964 6.14998C3.96771 6.40721 3.92141 6.82328 4.13872 7.09802C4.30371 7.30667 4.49214 7.49704 4.69059 7.69752C4.77962 7.78747 4.87066 7.87945 4.96251 7.97603C4.98066 7.95086 4.99583 7.92811 5.00961 7.90744C5.03509 7.86923 5.05581 7.83816 5.0818 7.81218C5.35333 7.53953 5.62549 7.2674 5.89765 6.99527C6.16981 6.72313 6.44198 6.45099 6.71352 6.17833C6.81696 6.0741 6.92874 5.99447 7.08391 6.02157C7.21613 6.0445 7.31206 6.11788 7.35544 6.24962C7.40675 6.40554 7.35836 6.53353 7.24616 6.64568C6.68682 7.20433 6.1279 7.7634 5.56898 8.32247C5.54395 8.34776 5.51996 8.37409 5.49758 8.39866C5.48527 8.41217 5.47345 8.42514 5.4622 8.43712C5.67533 8.65057 5.88624 8.8619 6.09679 9.07288C6.30406 9.28057 6.51099 9.48792 6.71936 9.6966C6.73039 9.68612 6.74187 9.67538 6.75362 9.66439C6.7774 9.64213 6.80226 9.61887 6.82655 9.59487C6.92535 9.49612 7.02409 9.3973 7.12282 9.29848C7.36963 9.05144 7.61644 8.80441 7.86431 8.55844C8.03866 8.38584 8.25722 8.36875 8.40405 8.51092C8.55796 8.66017 8.54169 8.87821 8.35983 9.06081C8.13234 9.28959 7.90429 9.51743 7.67618 9.74534C7.56217 9.85925 7.44815 9.97317 7.33417 10.0872C7.30843 10.1132 7.28324 10.14 7.26287 10.1616C7.25254 10.1726 7.24345 10.1822 7.23615 10.1898C7.44064 10.3942 7.64223 10.5958 7.84099 10.7946C8.03426 10.9878 8.22485 11.1784 8.41281 11.3663Z",
|
|
89138
|
+
fill: "#242424"
|
|
89139
|
+
}));
|
|
89140
|
+
};
|
|
89141
|
+
|
|
89142
|
+
var DashboardIcon = function DashboardIcon() {
|
|
89143
|
+
return React__default.createElement("svg", {
|
|
89144
|
+
width: "24",
|
|
89145
|
+
height: "24",
|
|
89146
|
+
viewBox: "0 0 24 24",
|
|
89147
|
+
fill: "none",
|
|
89148
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89149
|
+
}, React__default.createElement("circle", {
|
|
89150
|
+
cx: "4",
|
|
89151
|
+
cy: "15",
|
|
89152
|
+
r: "2",
|
|
89153
|
+
fill: "#242424"
|
|
89154
|
+
}), React__default.createElement("circle", {
|
|
89155
|
+
cx: "10",
|
|
89156
|
+
cy: "9",
|
|
89157
|
+
r: "2",
|
|
89158
|
+
fill: "#242424"
|
|
89159
|
+
}), React__default.createElement("circle", {
|
|
89160
|
+
cx: "14",
|
|
89161
|
+
cy: "13",
|
|
89162
|
+
r: "2",
|
|
89163
|
+
fill: "#242424"
|
|
89164
|
+
}), React__default.createElement("circle", {
|
|
89165
|
+
cx: "20",
|
|
89166
|
+
cy: "8",
|
|
89167
|
+
r: "2",
|
|
89168
|
+
fill: "#242424"
|
|
89169
|
+
}), React__default.createElement("path", {
|
|
89170
|
+
d: "M4 15L10 9L14 13L20 8",
|
|
89171
|
+
stroke: "#242424",
|
|
89172
|
+
"stroke-width": "1.5"
|
|
89173
|
+
}));
|
|
89174
|
+
};
|
|
89175
|
+
|
|
89176
|
+
var SurveyDashboardIcon = function SurveyDashboardIcon() {
|
|
89177
|
+
return React__default.createElement("svg", {
|
|
89178
|
+
width: "24",
|
|
89179
|
+
height: "24",
|
|
89180
|
+
viewBox: "0 0 24 24",
|
|
89181
|
+
fill: "none",
|
|
89182
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89183
|
+
}, React__default.createElement("path", {
|
|
89184
|
+
d: "M20.9997 12.0221C20.9997 14.4572 21.0003 16.8923 20.9997 19.3274C20.9992 20.9054 19.9159 21.9985 18.348 21.9991C14.1157 22.0003 9.88287 22.0003 5.65058 21.9991C4.08504 21.9985 3.00058 20.9025 3 19.3256C3 14.4409 3 9.55618 3 4.67204C3 3.09574 4.08561 2.00087 5.65174 2.00087C9.88402 1.99971 14.1169 1.99971 18.3492 2.00087C19.9164 2.00145 20.9992 3.09457 20.9992 4.67378C20.9997 7.12283 20.9997 9.57246 20.9997 12.0221ZM7.84431 17.326C7.53974 17.0173 7.26516 16.7283 6.9779 16.4539C6.88156 16.362 6.761 16.2789 6.63641 16.2387C6.33933 16.1428 6.02149 16.276 5.86632 16.5324C5.69731 16.8115 5.72788 17.1516 5.96381 17.3952C6.37683 17.822 6.7985 18.2395 7.21671 18.6605C7.64242 19.089 7.99256 19.0902 8.42288 18.661C9.12028 17.9662 9.81711 17.2708 10.5145 16.5766C10.5958 16.4957 10.6928 16.4271 10.7608 16.3364C10.9662 16.0608 10.92 15.6614 10.6668 15.4253C10.3991 15.1759 10.0005 15.1712 9.72654 15.4323C9.43351 15.712 9.15316 16.0056 8.86763 16.2934C8.5319 16.6312 8.19676 16.9696 7.84431 17.326ZM7.87084 12.1832C7.83393 12.1704 7.8172 12.1692 7.80855 12.1605C7.54205 11.8948 7.2767 11.6273 7.01078 11.361C6.66986 11.0203 6.25396 10.9947 5.95977 11.2959C5.67539 11.5872 5.70135 12.0105 6.02611 12.3396C6.43797 12.757 6.85157 13.1734 7.26516 13.5885C7.62857 13.9531 8.00756 13.9508 8.37846 13.585C9.14566 12.8268 9.91459 12.0709 10.6772 11.3087C10.7499 11.236 10.8006 11.1272 10.8277 11.0267C10.9102 10.7173 10.7799 10.4109 10.518 10.2574C10.2434 10.0963 9.9169 10.1289 9.6804 10.3586C9.37409 10.6557 9.07702 10.9633 8.77649 11.2668C8.47076 11.5744 8.16734 11.8825 7.87084 12.1832ZM7.86911 7.09376C7.58646 6.8042 7.32573 6.53383 7.06154 6.26694C6.76504 5.9675 6.36471 5.95529 6.08033 6.23264C5.79191 6.51406 5.79653 6.93619 6.09533 7.23912C6.49162 7.6409 6.88906 8.04035 7.28708 8.43981C7.65222 8.80612 8.03467 8.80961 8.39981 8.44678C9.09721 7.7537 9.7923 7.05829 10.4891 6.36404C10.5301 6.32334 10.5658 6.27276 10.6143 6.24485C10.8779 6.09193 10.9108 5.84423 10.8618 5.58374C10.8104 5.31279 10.6333 5.1337 10.3657 5.06509C10.09 4.99416 9.85922 5.08021 9.66021 5.28314C9.07298 5.88144 8.48172 6.47568 7.86911 7.09376ZM15.2434 7.81243C15.9858 7.81243 16.7277 7.81359 17.4701 7.81184C17.9131 7.81068 18.2251 7.52577 18.2298 7.12283C18.2344 6.71117 17.9188 6.41754 17.4654 6.41696C15.9737 6.41579 14.482 6.41579 12.9909 6.41696C12.5467 6.41754 12.2364 6.7007 12.2295 7.10539C12.2225 7.51182 12.5444 7.81068 12.9955 7.81184C13.7448 7.81359 14.4941 7.81243 15.2434 7.81243ZM15.2198 12.9251C15.2198 12.9257 15.2198 12.9262 15.2198 12.9262C15.976 12.9262 16.7329 12.9292 17.4891 12.9251C17.9194 12.9228 18.224 12.6367 18.2292 12.2419C18.2349 11.8384 17.9263 11.5337 17.4879 11.5319C15.9824 11.5279 14.4763 11.5273 12.9707 11.5354C12.8271 11.536 12.6684 11.5843 12.5433 11.6569C12.2837 11.807 12.1793 12.1198 12.2566 12.414C12.3339 12.7088 12.5882 12.9198 12.9067 12.9222C13.6779 12.9292 14.4491 12.9251 15.2198 12.9251ZM15.2296 16.658C15.2296 16.6574 15.2296 16.6568 15.2296 16.6562C14.4803 16.6562 13.731 16.6539 12.9817 16.6568C12.5381 16.6585 12.2283 16.9481 12.2289 17.3505C12.2295 17.7464 12.5467 18.0494 12.9834 18.0505C14.482 18.054 15.9807 18.054 17.4793 18.0476C17.6114 18.047 17.7544 18.0133 17.8727 17.9546C18.145 17.8185 18.2834 17.4871 18.2148 17.1987C18.1403 16.8888 17.8842 16.6632 17.5647 16.6603C16.7859 16.6533 16.0078 16.658 15.2296 16.658Z",
|
|
89185
|
+
fill: "#242424"
|
|
89186
|
+
}));
|
|
89187
|
+
};
|
|
89188
|
+
|
|
89189
|
+
var EIPTemplateIcon = function EIPTemplateIcon() {
|
|
89190
|
+
return React__default.createElement("svg", {
|
|
89191
|
+
width: "24",
|
|
89192
|
+
height: "24",
|
|
89193
|
+
viewBox: "0 0 24 24",
|
|
89194
|
+
fill: "none",
|
|
89195
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89196
|
+
}, React__default.createElement("path", {
|
|
89197
|
+
"fill-rule": "evenodd",
|
|
89198
|
+
"clip-rule": "evenodd",
|
|
89199
|
+
d: "M12.1082 4.09281L12.1082 4.09281C12.3195 4.15409 12.5258 4.21391 12.7065 4.31799C14.0782 5.1095 15.447 5.90594 16.8158 6.7024C18.3028 7.56763 19.7898 8.43288 21.2806 9.29182C21.6696 9.51614 21.716 10.037 21.2853 10.2863C19.7311 11.1853 18.1793 12.0886 16.6275 12.9919L16.6271 12.9921C15.317 13.7548 14.0069 14.5174 12.6952 15.2775C12.087 15.6301 11.4704 15.5996 10.8628 15.2453C9.16689 14.256 7.4694 13.2689 5.77215 12.2819L3.84776 11.1627C3.67561 11.0625 3.50332 10.9628 3.33106 10.863L3.33089 10.8629C2.99653 10.6692 2.66227 10.4756 2.3293 10.2792C1.89384 10.0221 1.88907 9.56029 2.32215 9.30793L2.92818 8.95487C5.59558 7.40087 8.26249 5.84715 10.9361 4.30426C11.1082 4.20494 11.3049 4.14879 11.5098 4.09032C11.6076 4.06239 11.7073 4.03394 11.807 4C11.9071 4.03449 12.0082 4.06381 12.1082 4.09281ZM5.22503 13.1914C5.82987 13.5433 6.39154 13.8704 6.95305 14.1973L6.95914 14.2009L7.69001 14.6259C8.56331 15.1338 9.43654 15.6416 10.3094 16.1506C11.3096 16.734 12.3098 16.7316 13.3088 16.1512C14.3073 15.5709 15.3054 14.9899 16.3035 14.4089L16.3036 14.4089L16.3126 14.4037C16.9286 14.0451 17.5447 13.6865 18.1608 13.3281C18.2031 13.3037 18.2462 13.2806 18.2962 13.2539L18.2962 13.2539C18.3135 13.2447 18.3315 13.2351 18.3506 13.2248C18.3588 13.2203 18.3673 13.2158 18.3759 13.2111C18.3779 13.237 18.3801 13.2608 18.3822 13.2833L18.3822 13.2833C18.3868 13.3332 18.3908 13.3761 18.3908 13.4193C18.3913 13.7379 18.391 14.0565 18.3907 14.3752C18.3903 14.853 18.3898 15.3309 18.392 15.8087C18.395 16.496 18.1001 17.0108 17.5103 17.3533C17.2375 17.5118 16.965 17.6708 16.6925 17.8298C15.7784 18.3631 14.8645 18.8964 13.9402 19.4116C12.4986 20.2146 11.0421 20.1871 9.61064 19.3793C8.85961 18.9556 8.1147 18.5213 7.3698 18.087L7.36976 18.087C6.95366 17.8444 6.53756 17.6018 6.12038 17.3611C5.51931 17.0144 5.22027 16.5008 5.22444 15.8039C5.22728 15.2216 5.22653 14.6393 5.22576 14.0425L5.22576 14.042C5.2254 13.7622 5.22503 13.4792 5.22503 13.1914ZM21.5022 15.6773V11.3848C21.3926 11.4485 21.2861 11.5111 21.1818 11.5724C20.9101 11.7322 20.6525 11.8837 20.39 12.0255C20.2536 12.0989 20.2107 12.186 20.2113 12.3381C20.2166 13.7676 20.2172 15.1964 20.2089 16.6253C20.2083 16.7261 20.1499 16.8484 20.079 16.923C19.7657 17.2511 19.643 17.6276 19.7591 18.0684C19.8824 18.5356 20.2857 18.8697 20.7492 18.9073C21.2442 18.9472 21.7041 18.677 21.9013 18.2301C22.0967 17.7874 21.999 17.2738 21.635 16.9421C21.5278 16.8448 21.4974 16.7488 21.5004 16.6151C21.5046 16.3937 21.5037 16.1723 21.5029 15.9509C21.5025 15.8597 21.5022 15.7685 21.5022 15.6773Z",
|
|
89200
|
+
fill: "#242424"
|
|
89201
|
+
}));
|
|
89202
|
+
};
|
|
89203
|
+
|
|
89204
|
+
var ConferenceRubricIcon = function ConferenceRubricIcon() {
|
|
89205
|
+
return React__default.createElement("svg", {
|
|
89206
|
+
width: "24",
|
|
89207
|
+
height: "24",
|
|
89208
|
+
viewBox: "0 0 24 24",
|
|
89209
|
+
fill: "none",
|
|
89210
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89211
|
+
}, React__default.createElement("path", {
|
|
89212
|
+
d: "M20.5 17C21.0304 17 21.5391 16.7893 21.9142 16.4142C22.2893 16.0391 22.5 15.5304 22.5 15V4C22.5 3.46957 22.2893 2.96086 21.9142 2.58579C21.5391 2.21071 21.0304 2 20.5 2H11.2868C10.6962 2 10.3101 2.65799 10.4248 3.23732C10.5073 3.65361 10.844 4 11.2684 4H19.5C20.0523 4 20.5 4.44772 20.5 5V14C20.5 14.5523 20.0523 15 19.5 15H12.5C11.9477 15 11.5 15.4477 11.5 16C11.5 16.5523 11.9477 17 12.5 17H20.5ZM14.5 7C15.0523 7 15.5 7.44772 15.5 8C15.5 8.55228 15.0523 9 14.5 9H10.5C9.94772 9 9.5 9.44772 9.5 10V21C9.5 21.5523 9.05228 22 8.5 22C7.94772 22 7.5 21.5523 7.5 21V17C7.5 16.4477 7.05228 16 6.5 16C5.94772 16 5.5 16.4477 5.5 17V21C5.5 21.5523 5.05228 22 4.5 22C3.94772 22 3.5 21.5523 3.5 21V14.75C3.5 14.3358 3.16421 14 2.75 14C2.33579 14 2 13.6642 2 13.25V9C2 8.46957 2.21071 7.96086 2.58579 7.58579C2.96086 7.21071 3.46957 7 4 7H14.5ZM8.5 4C8.5 4.53043 8.28929 5.03914 7.91421 5.41421C7.53914 5.78929 7.03043 6 6.5 6C5.96957 6 5.46086 5.78929 5.08579 5.41421C4.71071 5.03914 4.5 4.53043 4.5 4C4.5 3.46957 4.71071 2.96086 5.08579 2.58579C5.46086 2.21071 5.96957 2 6.5 2C7.03043 2 7.53914 2.21071 7.91421 2.58579C8.28929 2.96086 8.5 3.46957 8.5 4Z",
|
|
89213
|
+
fill: "#242424"
|
|
89214
|
+
}));
|
|
89215
|
+
};
|
|
89216
|
+
|
|
89217
|
+
var CustomizeIcon = function CustomizeIcon() {
|
|
89218
|
+
return React__default.createElement("svg", {
|
|
89219
|
+
width: "24",
|
|
89220
|
+
height: "24",
|
|
89221
|
+
viewBox: "0 0 24 24",
|
|
89222
|
+
fill: "none",
|
|
89223
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89224
|
+
}, React__default.createElement("path", {
|
|
89225
|
+
d: "M16.5857 13.7417C15.95 13.6382 15.3089 13.5586 14.6797 13.4236C14.2932 13.3409 14.0101 13.4194 13.7437 13.709C11.4922 16.1633 9.23531 18.6135 6.97607 21.0612C6.14469 21.9622 4.87977 22.2411 3.77126 21.7826C2.64967 21.3187 1.94614 20.2221 2.00323 18.9923C2.03951 18.2061 2.36124 17.5424 2.94166 17.0108C4.86728 15.2493 6.79469 13.4902 8.7215 11.7299C9.23174 11.2636 9.73664 10.7902 10.2564 10.3347C10.5585 10.0701 10.6584 9.77511 10.5484 9.38261C10.3183 8.56133 10.2219 7.72341 10.2873 6.86824C10.4556 4.67619 11.7735 2.99321 13.8739 2.3099C15.2322 1.86805 16.578 1.88589 17.9024 2.44609C18.3442 2.63282 18.5084 3.08776 18.2824 3.47134C18.2271 3.5659 18.1474 3.64856 18.0695 3.72647C17.2244 4.5745 16.3776 5.42075 15.5319 6.2676C15.1287 6.67139 15.1264 7.04665 15.5254 7.44688C15.8715 7.79477 16.217 8.14326 16.5661 8.48819C16.9313 8.84976 17.3368 8.85036 17.6996 8.48878C18.5625 7.62707 19.4236 6.76357 20.2859 5.90127C20.7718 5.41599 21.3195 5.51293 21.5913 6.14925C22.1235 7.39692 22.0986 8.67611 21.7096 9.94578C21.1131 11.894 19.8482 13.153 17.8144 13.5699C17.6835 13.5966 17.5515 13.6216 17.4189 13.6341C17.1453 13.6596 16.8712 13.6763 16.597 13.6965C16.5929 13.7114 16.5893 13.7269 16.5857 13.7417ZM4.84528 20.5641C5.63919 20.5682 6.27968 19.9337 6.28028 19.1433C6.28087 18.3565 5.63384 17.7077 4.85004 17.7101C4.07455 17.7125 3.43169 18.3512 3.42574 19.1267C3.41979 19.9194 4.05255 20.5599 4.84528 20.5641Z",
|
|
89226
|
+
fill: "#242424"
|
|
89227
|
+
}));
|
|
89228
|
+
};
|
|
89229
|
+
|
|
89230
|
+
var TechnicalSettingsIcon = function TechnicalSettingsIcon() {
|
|
89231
|
+
return React__default.createElement("svg", {
|
|
89232
|
+
width: "24",
|
|
89233
|
+
height: "24",
|
|
89234
|
+
viewBox: "0 0 24 24",
|
|
89235
|
+
fill: "none",
|
|
89236
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89237
|
+
}, React__default.createElement("path", {
|
|
89238
|
+
d: "M10.7104 2C11.5699 2 12.429 2 13.2885 2C13.583 2.10156 13.719 2.32275 13.787 2.61572C13.9377 3.26758 14.1065 3.91553 14.2601 4.56689C14.2885 4.68652 14.3389 4.75342 14.4572 4.79883C14.7782 4.92188 15.0952 5.05615 15.4088 5.19727C15.5154 5.24512 15.5947 5.24316 15.6959 5.18164C16.2062 4.86914 16.7203 4.56396 17.2345 4.25781C17.6063 4.03613 17.8347 4.06396 18.14 4.36816C18.6331 4.85986 19.1253 5.35254 19.6174 5.84521C19.931 6.15918 19.9594 6.38721 19.7329 6.7666C19.4291 7.27441 19.1272 7.7832 18.8171 8.28711C18.751 8.39453 18.7501 8.47852 18.8014 8.5918C18.9413 8.89844 19.0729 9.20996 19.1938 9.5249C19.2407 9.64648 19.3019 9.70898 19.4335 9.74023C20.1101 9.89941 20.7842 10.0698 21.4588 10.2383C21.8453 10.335 21.9979 10.5322 21.9989 10.9355C22.0004 11.645 22.0004 12.3545 21.9989 13.064C21.9984 13.4668 21.8453 13.665 21.4593 13.7612C20.7847 13.9297 20.1105 14.1001 19.434 14.2593C19.3024 14.29 19.2407 14.3521 19.1938 14.4741C19.0759 14.7832 18.9467 15.0884 18.8102 15.3896C18.7618 15.4966 18.7652 15.5742 18.8269 15.6748C19.1365 16.1792 19.4389 16.6875 19.7417 17.1958C19.956 17.5552 19.9271 17.7881 19.6306 18.0864C19.1351 18.585 18.638 19.082 18.1405 19.5781C17.8411 19.8765 17.597 19.9058 17.2311 19.6875C16.734 19.3906 16.2365 19.0952 15.7439 18.792C15.6441 18.7305 15.5677 18.7251 15.4596 18.7744C15.1294 18.9258 14.7943 19.0674 14.4563 19.2002C14.3389 19.2461 14.2875 19.312 14.2586 19.4326C14.1031 20.0903 13.9313 20.7441 13.7792 21.4023C13.7127 21.6909 13.5713 21.8989 13.288 22C12.4285 22 11.5694 22 10.7099 22C10.4266 21.8989 10.2853 21.6914 10.2187 21.4028C10.0666 20.7451 9.89389 20.0918 9.74028 19.4346C9.70946 19.3022 9.64684 19.2417 9.52552 19.1948C9.20508 19.0713 8.88759 18.9385 8.57547 18.7949C8.46051 18.7422 8.37881 18.749 8.27314 18.814C7.79176 19.1104 7.30597 19.3989 6.82019 19.6885C6.45523 19.9062 6.21356 19.876 5.9127 19.5757C5.42007 19.0845 4.92792 18.5923 4.43627 18.0996C4.12611 17.7886 4.09675 17.5537 4.3213 17.1777C4.61434 16.687 4.91276 16.1992 5.19894 15.7041C5.23563 15.6406 5.23955 15.5322 5.21264 15.4624C5.08202 15.1235 4.93037 14.793 4.79779 14.4551C4.75523 14.3467 4.69946 14.291 4.58352 14.2632C3.92015 14.106 3.26069 13.9336 2.59635 13.7803C2.30869 13.7139 2.10078 13.5723 2 13.2891C2 12.4297 2 11.5703 2 10.7109C2.10127 10.4277 2.30918 10.2866 2.59733 10.2197C3.25531 10.0674 3.90841 9.89404 4.56542 9.73975C4.69652 9.70898 4.75963 9.64746 4.80415 9.52393C4.90395 9.24951 5.01353 8.97852 5.13437 8.71289C5.18329 8.60547 5.18182 8.52783 5.12067 8.42773C4.78556 7.87842 4.45632 7.32568 4.1266 6.77344C3.90156 6.39648 3.92895 6.15479 4.23373 5.84912C4.7249 5.35596 5.21704 4.86377 5.71017 4.37256C6.02131 4.0625 6.25026 4.03613 6.63184 4.26465C7.16165 4.58154 7.69294 4.896 8.21835 5.21973C8.32793 5.28711 8.4111 5.2832 8.52264 5.23242C8.85334 5.08203 9.18698 4.93848 9.52503 4.80566C9.64586 4.7583 9.70946 4.69824 9.74028 4.56592C9.89389 3.9082 10.0666 3.25488 10.2187 2.59717C10.2862 2.30908 10.4271 2.10107 10.7104 2ZM12.0004 7.89893C9.74615 7.89795 7.89938 9.74365 7.8984 11.999C7.89743 14.2534 9.74321 16.1001 11.998 16.1011C14.2523 16.1021 16.099 14.2563 16.1 12.001C16.101 9.74658 14.2557 7.8999 12.0004 7.89893Z",
|
|
89239
|
+
fill: "#242424"
|
|
89240
|
+
}));
|
|
89241
|
+
};
|
|
89242
|
+
|
|
89243
|
+
var SandboxIcon = function SandboxIcon() {
|
|
89244
|
+
return React__default.createElement("svg", {
|
|
89245
|
+
width: "24",
|
|
89246
|
+
height: "24",
|
|
89247
|
+
viewBox: "0 0 24 24",
|
|
89248
|
+
fill: "none",
|
|
89249
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89250
|
+
}, React__default.createElement("path", {
|
|
89251
|
+
d: "M14.0037 11.2454C15.2964 11.2454 16.5736 11.3269 17.8359 11.2246C19.3903 11.0984 20.5706 9.64949 20.5676 8.06192C20.5646 6.48565 19.3808 5.10872 17.8425 4.89748C17.6592 4.87249 17.4724 4.85761 17.2874 4.85761C13.6509 4.85523 10.0144 4.85761 6.37846 4.85166C6.21011 4.85166 6.13635 4.90522 6.06675 5.05338C5.60155 6.04532 4.49269 6.51897 3.47008 6.17385C2.43617 5.82515 1.83653 4.77847 2.05069 3.69847C2.25473 2.67024 3.24284 1.91692 4.30589 2.00736C5.10898 2.0752 5.70268 2.48756 6.05663 3.21173C6.14408 3.39084 6.23926 3.43189 6.42427 3.43189C10.0608 3.42654 13.6973 3.42416 17.3332 3.42892C19.5391 3.43189 21.3773 4.90343 21.8811 7.05332C22.5022 9.70067 20.6176 12.3712 17.9109 12.6747C17.6896 12.6997 17.4665 12.7116 17.244 12.7122C16.225 12.7163 15.2065 12.7151 14.1875 12.7122C14.0745 12.7116 14.0078 12.73 13.9501 12.8514C13.5635 13.672 12.9144 14.1343 12.0019 14.1355C11.0899 14.1367 10.4403 13.6755 10.0507 12.8562C9.99536 12.739 9.93408 12.7116 9.81689 12.7122C8.73837 12.7163 7.66044 12.7062 6.58191 12.7175C4.92992 12.7342 3.53373 14.0713 3.43617 15.7148C3.33623 17.3969 4.53254 18.8774 6.17918 19.1041C6.35526 19.1285 6.53432 19.1416 6.71219 19.1416C10.3487 19.144 13.9852 19.1416 17.6212 19.1482C17.7907 19.1482 17.8633 19.0928 17.9323 18.9458C18.3981 17.9539 19.5063 17.4802 20.5295 17.8254C21.5629 18.1735 22.1631 19.2207 21.9489 20.3008C21.7449 21.3302 20.7562 22.0841 19.6943 21.9925C18.8918 21.9234 18.2981 21.5111 17.9436 20.7875C17.8561 20.6084 17.7604 20.5673 17.576 20.5679C13.9394 20.5733 10.3029 20.5763 6.66698 20.5703C4.46235 20.5667 2.6194 19.0904 2.11851 16.9459C1.49923 14.295 3.37847 11.6328 6.08935 11.3245C6.31005 11.2995 6.53373 11.2882 6.75622 11.287C7.77525 11.2835 8.79369 11.2841 9.81273 11.287C9.92516 11.2876 9.99238 11.2698 10.0495 11.1484C10.4415 10.3201 11.0971 9.85538 12.0191 9.8649C12.94 9.87382 13.5861 10.3469 13.9686 11.1823C13.9835 11.215 14.0043 11.246 14.0037 11.2454Z",
|
|
89252
|
+
fill: "#242424"
|
|
89253
|
+
}));
|
|
89254
|
+
};
|
|
89255
|
+
|
|
89256
|
+
var EmailTemplateIcon = function EmailTemplateIcon() {
|
|
89257
|
+
return React__default.createElement("svg", {
|
|
89258
|
+
width: "24",
|
|
89259
|
+
height: "24",
|
|
89260
|
+
viewBox: "0 0 24 24",
|
|
89261
|
+
fill: "none",
|
|
89262
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89263
|
+
}, React__default.createElement("path", {
|
|
89264
|
+
"fill-rule": "evenodd",
|
|
89265
|
+
"clip-rule": "evenodd",
|
|
89266
|
+
d: "M6.35091 22H17.654C17.6888 21.9908 17.7236 21.9817 17.7584 21.9727C17.8339 21.953 17.9092 21.9334 17.9841 21.9124C18.84 21.663 19.4674 20.8433 19.4961 19.9349C19.5008 19.7838 19.5002 19.6325 19.4996 19.4811C19.4994 19.4306 19.4992 19.3801 19.4992 19.3296V8.12054V7.85965H19.2682C18.7878 7.85965 18.3074 7.85971 17.8269 7.85977C16.866 7.85989 15.9049 7.86 14.9441 7.85965C14.0672 7.85913 13.5024 7.28519 13.5019 6.39454C13.5016 5.46995 13.5017 4.5456 13.5018 3.62132C13.5018 3.15921 13.5019 2.69712 13.5019 2.23503V2.00023H13.2647C12.5408 2.00023 11.8168 2.00017 11.0929 2.00012C9.64505 2 8.19719 1.99988 6.74933 2.00023C5.40672 2.00023 4.50566 2.9128 4.50566 4.27304C4.50551 5.75837 4.50608 7.24375 4.50666 8.72915C4.50809 12.399 4.50951 16.069 4.50001 19.7387C4.49693 21.0102 5.39748 21.8581 6.30213 21.9724C6.31346 21.9738 6.32411 21.9815 6.33483 21.9892C6.34014 21.993 6.34547 21.9969 6.35091 22ZM11.5011 9.81262H11.8851C12.3502 9.81262 12.8154 9.81245 13.2805 9.81227C14.211 9.81193 15.1416 9.81158 16.0726 9.81262C16.5234 9.81314 16.8135 10.2201 16.6477 10.6177C16.5481 10.8562 16.3607 10.9793 16.106 10.9824C15.8361 10.9858 15.5665 10.9851 15.2967 10.9845C15.1888 10.9842 15.0809 10.984 14.9729 10.984C12.5782 10.984 10.1841 10.984 7.78953 10.9835C7.77877 10.9835 7.76797 10.9835 7.75715 10.9836C7.68477 10.9839 7.61121 10.9843 7.54154 10.9689C7.2494 10.9052 7.05327 10.6281 7.08511 10.337C7.11745 10.0359 7.36133 9.81419 7.67914 9.81366C8.60559 9.81177 9.53232 9.81208 10.4589 9.81239C10.8063 9.8125 11.1537 9.81262 11.5011 9.81262ZM12.0402 14.1094H11.8672C11.4504 14.1094 11.0337 14.1095 10.617 14.1096C9.64438 14.11 8.67177 14.1103 7.69916 14.1088C7.23195 14.1078 6.94443 13.6679 7.14466 13.2657C7.25659 13.0413 7.44502 12.938 7.69095 12.938H9.70769C10.3131 12.938 10.9185 12.9379 11.5239 12.9378C13.0376 12.9376 14.5514 12.9374 16.0649 12.9385C16.526 12.9385 16.8207 13.3549 16.642 13.7556C16.5301 14.0076 16.3237 14.1109 16.0541 14.1104C15.0507 14.1088 14.0473 14.109 13.0439 14.1092C12.7093 14.1093 12.3748 14.1094 12.0402 14.1094ZM8.66051 16.062C8.79701 16.0622 8.93351 16.0623 9.07001 16.0623C9.19636 16.0623 9.32272 16.0622 9.44907 16.0622C9.76477 16.0619 10.0805 16.0617 10.3962 16.0628C10.7659 16.0644 11.0318 16.3107 11.0318 16.6477C11.0323 16.9848 10.7664 17.2332 10.3967 17.2337C9.49975 17.2353 8.60279 17.2358 7.70584 17.2337C7.33771 17.2332 7.07689 16.9806 7.08203 16.6389C7.08767 16.3055 7.34541 16.0644 7.70533 16.0628C8.02372 16.0614 8.34211 16.0617 8.66051 16.062ZM14.8574 2.36941C14.8071 2.33095 14.7567 2.2925 14.7074 2.25293L14.7074 2.25297C14.6899 2.26339 14.6725 2.27381 14.6561 2.28319V2.47259V6.35713C14.6561 6.64358 14.6977 6.68689 14.9754 6.68689H19.0484H19.2107C19.2158 6.67828 19.2211 6.66981 19.2263 6.66133C19.2316 6.65285 19.2369 6.64437 19.242 6.63576C19.1921 6.57743 19.1436 6.51762 19.095 6.45782C18.9907 6.32931 18.8863 6.2008 18.7686 6.08686C17.5723 4.92906 16.3714 3.77596 15.1685 2.62547C15.0714 2.53287 14.9644 2.45112 14.8574 2.36941Z",
|
|
89267
|
+
fill: "#242424"
|
|
89268
|
+
}));
|
|
89269
|
+
};
|
|
89270
|
+
|
|
89271
|
+
var MEDIAGalleryIcon = function MEDIAGalleryIcon() {
|
|
89272
|
+
return React__default.createElement("svg", {
|
|
89273
|
+
width: "24",
|
|
89274
|
+
height: "24",
|
|
89275
|
+
viewBox: "0 0 24 24",
|
|
89276
|
+
fill: "none",
|
|
89277
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89278
|
+
}, React__default.createElement("path", {
|
|
89279
|
+
"fill-rule": "evenodd",
|
|
89280
|
+
"clip-rule": "evenodd",
|
|
89281
|
+
d: "M13.6562 16.0903L11.8985 16.0905H11.8963C10.4321 16.0908 8.96786 16.0911 7.50361 16.0895C6.43152 16.0883 5.61352 15.4691 5.38648 14.4841C5.3453 14.305 5.33197 14.1167 5.33158 13.9327C5.32844 11.0111 5.32844 8.0891 5.32962 5.16751C5.33001 3.87442 6.22055 3.00029 7.5342 3.00029C11.6226 2.9999 15.7114 2.9999 19.7998 3.00029C21.1072 3.00029 21.9989 3.87134 21.9993 5.15018C22 8.08486 22.0004 11.0192 21.9993 13.9538C21.9989 15.2138 21.1119 16.0879 19.8276 16.0899C18.4205 16.0917 17.0132 16.0912 15.6058 16.0907H15.6057C14.9559 16.0905 14.3061 16.0903 13.6562 16.0903ZM12.3641 11.5117L13.3703 10.3268C13.5864 10.0723 13.8023 9.81767 14.0182 9.56305C14.4893 9.00747 14.9605 8.45185 15.433 7.89733C15.8149 7.44871 16.2964 7.2554 16.8901 7.37208C17.2423 7.4414 17.5207 7.62816 17.7524 7.89502C18.1789 8.38587 18.6065 8.87577 19.0341 9.36566L19.0346 9.36619C19.42 9.80772 19.8054 10.2492 20.1899 10.6915C20.2139 10.7192 20.2282 10.7548 20.2425 10.7905L20.2426 10.7905C20.2491 10.8069 20.2557 10.8233 20.2633 10.8389L20.3307 10.7835V10.6125L20.3308 9.24942C20.3309 7.88852 20.3309 6.52763 20.3303 5.16674C20.3303 4.76626 20.2009 4.63995 19.7931 4.63995C15.7122 4.63957 11.6312 4.63957 7.55028 4.63995C7.1303 4.63995 7.0005 4.76703 7.0005 5.17598V12.5391V12.7589C7.02945 12.7322 7.05465 12.7092 7.07728 12.6886C7.11842 12.6511 7.15109 12.6213 7.18245 12.5903C7.49009 12.2885 7.79756 11.9865 8.10505 11.6845L8.1052 11.6844C8.47418 11.322 8.84318 10.9596 9.21253 10.5975C9.90583 9.91745 10.7572 9.91514 11.4508 10.5948C11.6585 10.7982 11.863 11.0051 12.0717 11.2164L12.0717 11.2164L12.0718 11.2165C12.1681 11.3139 12.2653 11.4123 12.3641 11.5117ZM2 15.5053L2.49056 13.8947L2.491 13.8933C2.69186 13.2337 2.8927 12.5742 3.09366 11.9148C3.31718 11.1816 3.54135 10.4483 3.76552 9.71503L3.98969 8.9817C4.00538 8.9301 4.02341 8.87889 4.07949 8.83383V9.03446C4.07949 9.54671 4.07837 10.059 4.07725 10.5712C4.07461 11.7718 4.07198 12.9724 4.0838 14.1729C4.09596 15.401 4.64495 16.3448 5.74292 16.9551C6.23505 17.2289 6.77424 17.3206 7.33891 17.3202C10.3041 17.317 13.2693 17.3173 16.2345 17.3177L19.0147 17.3179H19.3002C19.2933 17.3424 19.2871 17.365 19.2812 17.3863C19.2692 17.4303 19.2586 17.4688 19.2465 17.507L19.132 17.8659C18.9393 18.4707 18.7465 19.0756 18.552 19.6799C18.2316 20.6769 17.2623 21.2002 16.227 20.9288C13.9435 20.3296 11.6604 19.7289 9.3772 19.1282L6.75698 18.4388C6.41268 18.3483 6.06853 18.2573 5.72441 18.1664L5.72329 18.1661C4.98881 17.9719 4.25441 17.7777 3.51874 17.5882C2.71251 17.3803 2.20862 16.8928 2.03137 16.0876C2.02898 16.0763 2.02031 16.0664 2.01167 16.0564L2.01166 16.0564L2.01166 16.0564C2.00754 16.0517 2.00342 16.047 2 16.0421V15.5053ZM7.83139 7.10099C7.8408 8.00207 8.58781 8.72563 9.5058 8.72294C10.423 8.72024 11.17 7.9859 11.1681 7.08905C11.1661 6.19143 10.4171 5.45632 9.50345 5.45478C8.58232 5.45324 7.82197 6.20183 7.83139 7.10099Z",
|
|
89282
|
+
fill: "#242424"
|
|
89283
|
+
}));
|
|
89284
|
+
};
|
|
89285
|
+
|
|
89286
|
+
var DataImportExportIcon = function DataImportExportIcon() {
|
|
89287
|
+
return React__default.createElement("svg", {
|
|
89288
|
+
width: "24",
|
|
89289
|
+
height: "24",
|
|
89290
|
+
viewBox: "0 0 24 24",
|
|
89291
|
+
fill: "none",
|
|
89292
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89293
|
+
}, React__default.createElement("path", {
|
|
89294
|
+
"fill-rule": "evenodd",
|
|
89295
|
+
"clip-rule": "evenodd",
|
|
89296
|
+
d: "M8.86057 2.04801C8.84692 2.03189 8.83329 2.0158 8.81945 2H8.78147C8.76708 2.0174 8.7531 2.03514 8.73912 2.05287C8.71005 2.08975 8.68102 2.12658 8.64852 2.16013C7.3254 3.52484 6.00165 4.88889 4.67726 6.25163C4.64386 6.28567 4.60095 6.30958 4.5581 6.33346C4.53841 6.34442 4.51873 6.35539 4.5 6.36732C4.5076 6.38039 4.51535 6.39346 4.5231 6.40653C4.53086 6.4196 4.53862 6.43268 4.54621 6.44575H7.73247V14.2373H9.88618V6.43791H13.0674L13.0996 6.37451C13.082 6.36144 13.0638 6.34901 13.0456 6.33657C13.0055 6.30922 12.9654 6.28186 12.9319 6.24771C11.6018 4.88039 10.2736 3.51242 8.94543 2.14379C8.91579 2.11319 8.88814 2.08055 8.86057 2.04801ZM14.2 17.5915H11.0182C12.0882 18.705 13.1489 19.8086 14.1981 20.9001C14.5519 21.2681 14.9043 21.6348 15.2553 22C16.6721 20.5288 18.0871 19.0588 19.5001 17.5896H16.3531V9.80133H14.2V17.5915Z",
|
|
89297
|
+
fill: "#242424"
|
|
89298
|
+
}));
|
|
89299
|
+
};
|
|
89300
|
+
|
|
89301
|
+
var HelpIcon = function HelpIcon() {
|
|
89302
|
+
return React__default.createElement("svg", {
|
|
89303
|
+
width: "24",
|
|
89304
|
+
height: "24",
|
|
89305
|
+
viewBox: "0 0 24 24",
|
|
89306
|
+
fill: "none",
|
|
89307
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89308
|
+
}, React__default.createElement("path", {
|
|
89309
|
+
"fill-rule": "evenodd",
|
|
89310
|
+
"clip-rule": "evenodd",
|
|
89311
|
+
d: "M6.67609 3.9233C4.70369 5.58129 3.7266 7.72998 3.65829 10.3076C2.57647 10.437 1.99945 11.0837 2.00075 12.1398C2.0001 13.7081 1.99945 15.2764 2.00075 16.8447C2.0014 17.9444 2.69421 18.6379 3.79816 18.6431C4.36116 18.6461 4.92417 18.6452 5.48718 18.6444C5.65601 18.6441 5.82485 18.6439 5.99368 18.6437C6.69495 18.6431 7.0033 18.3344 7.00395 17.6324C7.0042 17.1479 7.00397 16.6635 7.00374 16.179C7.00337 15.4039 7.003 14.6288 7.0046 13.8537C7.0059 13.1596 6.81985 12.5252 6.42563 11.9513C6.33645 11.8215 6.25186 11.688 6.16731 11.5546C6.00765 11.3026 5.84812 11.0508 5.65801 10.8243C5.336 10.4409 5.30673 10.0262 5.37438 9.57321C5.39845 9.41267 5.42317 9.25214 5.45179 9.09225C6.08215 5.54555 9.60085 3.10568 13.1436 3.75757C16.0996 4.30157 18.2769 6.62834 18.6263 9.60765C18.6776 10.0477 18.6471 10.4428 18.3426 10.812C18.1525 11.0424 17.9913 11.2963 17.83 11.5503C17.7425 11.6882 17.6549 11.8262 17.5626 11.9604C17.1684 12.535 16.9869 13.17 16.9889 13.8641C16.9921 15.1887 16.9928 16.5132 16.985 17.8378C16.9843 17.9476 16.944 18.0841 16.8724 18.1621C15.8947 19.2202 14.7042 19.9397 13.2789 20.162C12.681 20.2554 12.0709 20.2698 11.461 20.2843C11.1923 20.2907 10.9236 20.297 10.656 20.3102C10.5866 20.3137 10.5168 20.3127 10.4482 20.3117C10.4166 20.3113 10.3852 20.3108 10.3542 20.3108V22C10.6305 21.9915 10.9053 21.9888 11.1786 21.9861C11.7779 21.9802 12.3701 21.9745 12.955 21.9071C15.2247 21.6451 17.0748 20.5877 18.5085 18.8108C18.6132 18.6808 18.7219 18.6398 18.8806 18.6411C18.9711 18.642 19.0615 18.6433 19.152 18.6445C19.5743 18.6502 19.9966 18.6559 20.4172 18.6307C21.3103 18.5781 21.9778 17.9028 21.9875 17.0137C22.0057 15.3232 22.0025 13.6327 21.9875 11.9429C21.981 11.2149 21.4957 10.6014 20.8185 10.3967C20.7146 10.3653 20.6068 10.3466 20.4941 10.327C20.441 10.3177 20.3867 10.3083 20.3313 10.2972C20.2831 8.02895 19.4986 6.0577 17.8912 4.4478C16.2766 2.83011 14.3029 2.01314 12.0202 2.00014C10.0133 1.98909 8.21393 2.63058 6.67609 3.9233ZM14.9571 7.34003C15.233 7.06185 15.5127 6.77978 15.8015 6.48926C13.686 4.33017 10.1524 4.44521 8.20794 6.47886L9.05557 7.32573C11.0169 5.74313 12.9861 5.74703 14.9571 7.34003Z",
|
|
89312
|
+
fill: "#242424"
|
|
89313
|
+
}));
|
|
89314
|
+
};
|
|
89315
|
+
|
|
89316
|
+
var CustomAlertIcon = function CustomAlertIcon() {
|
|
89317
|
+
return React__default.createElement("svg", {
|
|
89318
|
+
width: "24",
|
|
89319
|
+
height: "24",
|
|
89320
|
+
viewBox: "0 0 24 24",
|
|
89321
|
+
fill: "none",
|
|
89322
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89323
|
+
}, React__default.createElement("path", {
|
|
89324
|
+
"fill-rule": "evenodd",
|
|
89325
|
+
"clip-rule": "evenodd",
|
|
89326
|
+
d: "M12.1688 2H11.8236C11.3314 2.18047 11.1453 2.54844 11.1779 3.06328C11.1807 3.10656 11.1851 3.15211 11.1897 3.19846L11.1897 3.19849L11.1897 3.19852C11.2075 3.38055 11.2265 3.57465 11.1461 3.68984C11.0849 3.77772 10.9332 3.79978 10.7811 3.82191C10.7121 3.83194 10.643 3.84199 10.5822 3.8582C8.26133 4.47813 6.57804 6.42773 6.31565 8.85078C6.27158 9.25822 6.27289 9.67053 6.27421 10.0831C6.27493 10.3098 6.27565 10.5365 6.26885 10.7625C6.26343 10.9443 6.26121 11.1266 6.25899 11.309C6.25304 11.798 6.24708 12.2872 6.17947 12.7672C5.99802 14.0559 5.38117 15.1289 4.42981 15.9969C4.14134 16.2602 3.90695 16.5496 3.84404 16.9512C3.70939 17.8082 4.25949 18.5508 5.10651 18.6555C5.1886 18.6656 5.27223 18.6691 5.35509 18.6691C9.78542 18.6699 14.2154 18.6703 18.6457 18.6695C19.3297 18.6695 19.8445 18.3395 20.0773 17.7582C20.3156 17.1637 20.1656 16.5336 19.66 16.0809C19.0013 15.4906 18.4896 14.7953 18.152 13.9691C17.8892 13.3254 17.7435 12.6547 17.735 11.9582C17.729 11.466 17.7298 10.9738 17.7307 10.4816C17.7312 10.1601 17.7318 9.83866 17.7304 9.51719C17.7189 6.63789 15.7291 4.24609 12.9395 3.7543C12.9152 3.75013 12.8915 3.74213 12.8645 3.73298L12.8645 3.73298C12.851 3.72841 12.8366 3.72356 12.8209 3.71875C12.8209 3.64612 12.8197 3.57375 12.8185 3.50165V3.50157V3.5015C12.8159 3.34448 12.8133 3.18868 12.8232 3.03398C12.857 2.51953 12.6548 2.16875 12.1688 2ZM11.3161 21.8912C11.4347 21.9261 11.5534 21.9609 11.67 22H12.3221C12.442 21.9598 12.5643 21.9243 12.6866 21.8888C12.9576 21.8102 13.2285 21.7316 13.4733 21.6016C14.2996 21.1621 14.7926 20.4414 15.0078 19.5106H9.00807C9.01133 19.5308 9.01389 19.5501 9.01634 19.5685C9.0214 19.6065 9.02601 19.6411 9.03531 19.6742C9.27852 20.5348 9.76839 21.209 10.5548 21.6149C10.7933 21.7379 11.0547 21.8146 11.3161 21.8912ZM3.00234 9.95938C3.10745 7.22344 4.07876 4.86406 5.96536 2.90469C6.31368 2.54297 6.81199 2.53086 7.14612 2.86328C7.47833 3.19414 7.48063 3.70391 7.13193 4.06758C6.17366 5.06602 5.46897 6.21992 5.04891 7.55039C4.8011 8.33477 4.66377 9.13945 4.64535 9.96445L4.64489 9.98627C4.64203 10.1218 4.63914 10.2591 4.6162 10.3918C4.5437 10.8105 4.18387 11.0875 3.75844 11.0637C3.36141 11.0414 3.02805 10.7023 3.00311 10.291C2.99867 10.216 2.99992 10.1406 3.00117 10.0653C3.00176 10.03 3.00234 9.99465 3.00234 9.95938ZM20.9987 10.0287C20.9981 9.9879 20.9975 9.94705 20.9975 9.90624C20.9139 7.63242 20.1996 5.59101 18.8163 3.79999C18.5604 3.46874 18.2762 3.15781 17.9861 2.85585C17.7418 2.60156 17.3904 2.55781 17.082 2.70429C16.7793 2.84804 16.6025 3.1582 16.6147 3.51093C16.6251 3.80507 16.8031 3.99617 16.9832 4.18959C16.9971 4.20449 17.011 4.2194 17.0248 4.23437C18.0575 5.35117 18.7568 6.65312 19.1197 8.14374C19.2931 8.85546 19.3487 9.57929 19.3779 10.3086C19.3955 10.7437 19.7669 11.0707 20.2015 11.0648C20.6227 11.0594 20.973 10.723 20.9964 10.2965C21.0014 10.2075 21 10.1181 20.9987 10.0287Z",
|
|
89327
|
+
fill: "#242424"
|
|
89328
|
+
}));
|
|
89329
|
+
};
|
|
89330
|
+
|
|
89331
|
+
var QuestionIcon = function QuestionIcon() {
|
|
89332
|
+
return React__default.createElement("svg", {
|
|
89333
|
+
width: "24",
|
|
89334
|
+
height: "24",
|
|
89335
|
+
viewBox: "0 0 24 24",
|
|
89336
|
+
fill: "none",
|
|
89337
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
89338
|
+
}, React__default.createElement("path", {
|
|
89339
|
+
d: "M11.9974 2.00002C13.844 2.00377 15.6637 2.20249 17.4015 2.86051C18.0033 3.08798 18.5851 3.38669 19.1406 3.71351C20.3373 4.41716 20.9453 5.55574 21.3271 6.84055C21.8889 8.73278 22.042 10.6725 21.9907 12.6341C21.9482 14.2563 21.7289 15.8486 21.2502 17.4078C20.7397 19.0706 19.6599 20.178 18.0933 20.866C16.6754 21.489 15.1863 21.8046 13.6528 21.929C11.8299 22.0764 10.0165 22.0052 8.22368 21.6121C7.19822 21.3872 6.21339 21.0516 5.28542 20.5504C4.05625 19.8868 3.24701 18.8894 2.80459 17.5677C2.27155 15.9742 2.05472 14.3326 2.00972 12.6628C1.95661 10.6931 2.11346 8.74715 2.67024 6.84493C3.08017 5.44451 3.7838 4.25593 5.11358 3.55729C5.76597 3.21421 6.44773 2.90738 7.14698 2.67742C8.71797 2.16062 10.3489 1.99814 11.9974 2.00002ZM10.992 12.959C10.9976 12.959 11.0026 12.9597 11.0082 12.9597C11.0082 13.1628 10.9995 13.3665 11.0101 13.5689C11.0382 14.0951 11.4706 14.4938 12.0018 14.4932C12.533 14.4926 12.9629 14.0932 12.991 13.5658C13.0022 13.3552 13.0122 13.1421 12.9922 12.9334C12.9704 12.7066 13.0466 12.5997 13.2635 12.5041C14.7513 11.8448 15.5018 10.0595 14.9194 8.6078C14.357 7.20613 12.8473 6.40312 11.3575 6.71307C10.0084 6.99366 8.97793 8.16036 8.86669 9.53141C8.8067 10.2757 9.50096 10.8306 10.1915 10.5788C10.6708 10.4038 10.8464 10.022 10.8751 9.53391C10.9101 8.94837 11.42 8.50344 12.0124 8.51218C12.6192 8.52093 13.1079 8.98836 13.1316 9.5814C13.1535 10.1276 12.8685 10.5425 12.3249 10.7369C11.6287 10.9862 11.1851 11.463 11.0388 12.1885C10.9888 12.4385 11.0057 12.7016 10.992 12.959ZM11.9912 17.4934C12.5479 17.499 12.9916 17.0634 12.9935 16.5085C12.9954 15.9473 12.5654 15.5099 12.0087 15.5055C11.45 15.5012 11.0095 15.9336 11.0057 16.4898C11.0026 17.0491 11.4331 17.4877 11.9912 17.4934Z",
|
|
89340
|
+
fill: "#242424"
|
|
89341
|
+
}));
|
|
89342
|
+
};
|
|
89343
|
+
|
|
89344
|
+
var useHeaderSideBar = function useHeaderSideBar(_navigations) {
|
|
89345
|
+
var _currentUrl$split;
|
|
89346
|
+
|
|
89347
|
+
var history = reactRouterDom.useHistory();
|
|
89348
|
+
var location = reactRouterDom.useLocation();
|
|
89349
|
+
var dispatch = reactRedux.useDispatch();
|
|
89350
|
+
|
|
89351
|
+
var _useTranslation = marioCore.useTranslation(),
|
|
89352
|
+
t = _useTranslation.t;
|
|
89353
|
+
|
|
89354
|
+
var user = reactRedux.useSelector(function (state) {
|
|
89355
|
+
var _state$common;
|
|
89356
|
+
|
|
89357
|
+
return (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.user;
|
|
89358
|
+
});
|
|
89359
|
+
var userId = user === null || user === void 0 ? void 0 : user.id;
|
|
89360
|
+
var defaultFont = reactRedux.useSelector(function (state) {
|
|
89361
|
+
var _state$common2;
|
|
89362
|
+
|
|
89363
|
+
return (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.defaultFontSize;
|
|
89364
|
+
});
|
|
89365
|
+
var pusherCluster = reactRedux.useSelector(function (state) {
|
|
89366
|
+
return state.common.user.pusherCluster;
|
|
89367
|
+
});
|
|
89368
|
+
var pusherKey = reactRedux.useSelector(function (state) {
|
|
89369
|
+
return state.common.user.pusherKey;
|
|
89370
|
+
});
|
|
89371
|
+
var currentUrl = location.pathname;
|
|
89372
|
+
var urlActive = (_currentUrl$split = currentUrl.split("/")) === null || _currentUrl$split === void 0 ? void 0 : _currentUrl$split[2];
|
|
89373
|
+
var roles = reactRedux.useSelector(function (state) {
|
|
89374
|
+
var _state$common3, _state$common3$user;
|
|
89375
|
+
|
|
89376
|
+
return (_state$common3 = state.common) === null || _state$common3 === void 0 ? void 0 : (_state$common3$user = _state$common3.user) === null || _state$common3$user === void 0 ? void 0 : _state$common3$user.roles;
|
|
89377
|
+
});
|
|
89378
|
+
var isOpenSideBar = reactRedux.useSelector(function (state) {
|
|
89379
|
+
var _state$common4;
|
|
89380
|
+
|
|
89381
|
+
return (_state$common4 = state.common) === null || _state$common4 === void 0 ? void 0 : _state$common4.menuBar;
|
|
89382
|
+
});
|
|
89383
|
+
|
|
89384
|
+
var _useState = React.useState(new Date()),
|
|
89385
|
+
curTime = _useState[0],
|
|
89386
|
+
setCurTime = _useState[1];
|
|
89387
|
+
|
|
89388
|
+
var _useState2 = React.useState(window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth),
|
|
89389
|
+
screenWidth = _useState2[0],
|
|
89390
|
+
setScreenWidth = _useState2[1];
|
|
89391
|
+
|
|
89392
|
+
var params = new URLSearchParams(location.search);
|
|
89393
|
+
var isReadOnly = params.get("isReadOnly");
|
|
89394
|
+
|
|
89395
|
+
var _useNotificationAlert = useNotificationAlert(),
|
|
89396
|
+
notificationAlert = _useNotificationAlert.data,
|
|
89397
|
+
isOpen = _useNotificationAlert.isOpen,
|
|
89398
|
+
handleCloseNotification = _useNotificationAlert.handleCloseNotification;
|
|
89399
|
+
|
|
89400
|
+
var drawerRef = React.useRef(null);
|
|
89401
|
+
|
|
89402
|
+
var handleResize = function handleResize() {
|
|
89403
|
+
setScreenWidth(window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth);
|
|
89404
|
+
};
|
|
89405
|
+
|
|
89406
|
+
var openNotification = function openNotification() {
|
|
89407
|
+
var features = "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=1080, height=720, top=100, left=100";
|
|
89408
|
+
window.open("/notifications/" + roles, "NotificationDialog", features);
|
|
89409
|
+
};
|
|
89410
|
+
|
|
89411
|
+
var classes = useStyles$i({
|
|
89412
|
+
isOpen: isOpen
|
|
89413
|
+
});
|
|
89414
|
+
|
|
89415
|
+
var _React$useState = React__default.useState(null),
|
|
89416
|
+
anchorEl = _React$useState[0],
|
|
89417
|
+
setAnchorEl = _React$useState[1];
|
|
89418
|
+
|
|
89419
|
+
var _React$useState2 = React__default.useState(null),
|
|
89420
|
+
anchorFontEl = _React$useState2[0],
|
|
89421
|
+
setAnchorFontEl = _React$useState2[1];
|
|
89422
|
+
|
|
89423
|
+
var _useState3 = React.useState({}),
|
|
89424
|
+
openNavigationItem = _useState3[0],
|
|
89425
|
+
setOpenNavigationItem = _useState3[1];
|
|
89426
|
+
|
|
89427
|
+
var open = Boolean(anchorEl);
|
|
89428
|
+
var openFont = Boolean(anchorFontEl);
|
|
89429
|
+
|
|
89430
|
+
var toggleSideBar = function toggleSideBar() {
|
|
89431
|
+
dispatch(marioCore.showMenuBar(!isOpenSideBar));
|
|
89432
|
+
};
|
|
89433
|
+
|
|
89434
|
+
var handleMenu = function handleMenu(event) {
|
|
89435
|
+
setAnchorEl(event.currentTarget);
|
|
89436
|
+
};
|
|
89437
|
+
|
|
89438
|
+
var handleFontMenu = function handleFontMenu(event) {
|
|
89439
|
+
setAnchorFontEl(event.currentTarget);
|
|
89440
|
+
handleClose();
|
|
89441
|
+
};
|
|
89442
|
+
|
|
89443
|
+
var handleClose = function handleClose() {
|
|
89444
|
+
setAnchorEl(null);
|
|
89445
|
+
};
|
|
89446
|
+
|
|
89447
|
+
var handleFontClose = function handleFontClose() {
|
|
89448
|
+
setAnchorFontEl(null);
|
|
89449
|
+
};
|
|
89450
|
+
|
|
89451
|
+
var handleClickNavigationItem = React.useCallback(function (navigation) {
|
|
89452
|
+
if (navigation.to != window.location.pathname) {
|
|
89453
|
+
handleClearFilterStorage();
|
|
89454
|
+
}
|
|
89455
|
+
|
|
89456
|
+
history.push(navigation.to);
|
|
89457
|
+
|
|
89458
|
+
if (screenWidth < 600) {
|
|
89459
|
+
dispatch(marioCore.showMenuBar(false));
|
|
89460
|
+
}
|
|
89461
|
+
}, [screenWidth, roles]);
|
|
89462
|
+
|
|
89463
|
+
var getNavigationActive = function getNavigationActive(navigation) {
|
|
89464
|
+
var _navigation$to;
|
|
89465
|
+
|
|
89466
|
+
return urlActive != "" && navigation !== null && navigation !== void 0 && (_navigation$to = navigation.to) !== null && _navigation$to !== void 0 && _navigation$to.includes("/" + urlActive) ? classes.drawerActive : "";
|
|
89467
|
+
};
|
|
89468
|
+
|
|
89469
|
+
var getNavigationItemIcon = function getNavigationItemIcon(navigation) {
|
|
89470
|
+
var _ICON_NAV$find;
|
|
89471
|
+
|
|
89472
|
+
return (_ICON_NAV$find = ICON_NAV.find(function (nav) {
|
|
89473
|
+
return nav.name.trim().toLocaleLowerCase() == navigation.name.trim().toLocaleLowerCase();
|
|
89474
|
+
})) === null || _ICON_NAV$find === void 0 ? void 0 : _ICON_NAV$find.icon;
|
|
89475
|
+
};
|
|
89476
|
+
|
|
89477
|
+
var handleToggleNavigationItem = function handleToggleNavigationItem(name) {
|
|
89478
|
+
var _extends2;
|
|
89479
|
+
|
|
89480
|
+
setOpenNavigationItem(_extends({}, openNavigationItem, (_extends2 = {}, _extends2[name] = !openNavigationItem[name], _extends2)));
|
|
89481
|
+
};
|
|
89482
|
+
|
|
89483
|
+
var handleOpenNavigationItem = function handleOpenNavigationItem(name) {
|
|
89484
|
+
var _extends3;
|
|
89485
|
+
|
|
89486
|
+
setOpenNavigationItem(_extends({}, openNavigationItem, (_extends3 = {}, _extends3[name] = true, _extends3)));
|
|
89487
|
+
};
|
|
89488
|
+
|
|
89489
|
+
React.useEffect(function () {
|
|
89490
|
+
setCurTime(new Date());
|
|
89491
|
+
}, [location.pathname]);
|
|
89492
|
+
var signOut = React.useCallback(function () {
|
|
89493
|
+
localStorage.removeItem(marioCore.ACCESS_TOKEN);
|
|
89494
|
+
localStorage.removeItem("ROLES");
|
|
89495
|
+
dispatch(marioCore.reset());
|
|
89496
|
+
history.replace("/");
|
|
89497
|
+
}, [curTime]);
|
|
89498
|
+
|
|
89499
|
+
var getTeacherInformationIEP = function getTeacherInformationIEP() {
|
|
89500
|
+
try {
|
|
89501
|
+
var _temp2 = _catch(function () {
|
|
89502
|
+
return Promise.resolve(getInformation()).then(function (res) {
|
|
89503
|
+
dispatch(marioCore.setEnableIEP(res.data.isEnableIEP));
|
|
89504
|
+
dispatch(marioCore.setConversationOneToOne(res.data.isConversationOneToOne));
|
|
89505
|
+
dispatch(marioCore.setEnableSurvey(res.data.isEnableSurvey));
|
|
89506
|
+
});
|
|
89507
|
+
}, function (err) {
|
|
89508
|
+
console.error(err);
|
|
89509
|
+
});
|
|
89510
|
+
|
|
89511
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
89512
|
+
} catch (e) {
|
|
89513
|
+
return Promise.reject(e);
|
|
89514
|
+
}
|
|
89515
|
+
};
|
|
89516
|
+
|
|
89517
|
+
var _useState4 = React.useState(0),
|
|
89518
|
+
unreadNoti = _useState4[0],
|
|
89519
|
+
setUnreadNoti = _useState4[1];
|
|
89520
|
+
|
|
89521
|
+
var getUnreadNoti = React.useCallback(function () {
|
|
89522
|
+
try {
|
|
89523
|
+
var _temp4 = _catch(function () {
|
|
89524
|
+
return Promise.resolve(getUnreadNotification()).then(function (res) {
|
|
89525
|
+
setUnreadNoti(res.data);
|
|
89526
|
+
});
|
|
89527
|
+
}, function (err) {
|
|
89528
|
+
console.error(err);
|
|
89529
|
+
});
|
|
89530
|
+
|
|
89531
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
|
|
89532
|
+
} catch (e) {
|
|
89533
|
+
return Promise.reject(e);
|
|
89534
|
+
}
|
|
89535
|
+
}, []);
|
|
89536
|
+
|
|
89537
|
+
var openProfile = function openProfile() {
|
|
89538
|
+
handleClose();
|
|
89539
|
+
var url = "/my-profile";
|
|
89540
|
+
history.push(url);
|
|
89541
|
+
};
|
|
89542
|
+
|
|
89543
|
+
var goToSettings = function goToSettings() {
|
|
89544
|
+
handleClose();
|
|
89545
|
+
var url = "/settings";
|
|
89546
|
+
history.push(url);
|
|
89547
|
+
};
|
|
89548
|
+
|
|
89549
|
+
var onChangeFont = function onChangeFont(fontSize) {
|
|
89550
|
+
dispatch(marioCore.showFontSize(fontSize));
|
|
89551
|
+
};
|
|
89552
|
+
|
|
89553
|
+
var ICON_NAV = [{
|
|
89554
|
+
name: "user",
|
|
89555
|
+
icon: React__default.createElement(UserIcon, null)
|
|
89556
|
+
}, {
|
|
89557
|
+
name: "mario_tools",
|
|
89558
|
+
icon: React__default.createElement(ToolIcon, null)
|
|
89559
|
+
}, {
|
|
89560
|
+
name: "question",
|
|
89561
|
+
icon: React__default.createElement(QuestionIcon, null)
|
|
89562
|
+
}, {
|
|
89563
|
+
name: "survey_questions",
|
|
89564
|
+
icon: React__default.createElement(icons.QuestionAnswer, null)
|
|
89565
|
+
}, {
|
|
89566
|
+
name: "data_dashboard",
|
|
89567
|
+
icon: React__default.createElement(DashboardIcon, null)
|
|
89568
|
+
}, {
|
|
89569
|
+
name: "survey_dashboard",
|
|
89570
|
+
icon: React__default.createElement(SurveyDashboardIcon, null)
|
|
89571
|
+
}, {
|
|
89572
|
+
name: "iep_template",
|
|
89573
|
+
icon: React__default.createElement(EIPTemplateIcon, null)
|
|
89574
|
+
}, {
|
|
89575
|
+
name: "conference_rubric",
|
|
89576
|
+
icon: React__default.createElement(ConferenceRubricIcon, null)
|
|
89577
|
+
}, {
|
|
89578
|
+
name: "customize",
|
|
89579
|
+
icon: React__default.createElement(CustomizeIcon, null)
|
|
89580
|
+
}, {
|
|
89581
|
+
name: "techical_settings",
|
|
89582
|
+
icon: React__default.createElement(TechnicalSettingsIcon, null)
|
|
89583
|
+
}, {
|
|
89584
|
+
name: "sandbox",
|
|
89585
|
+
icon: React__default.createElement(SandboxIcon, null)
|
|
89586
|
+
}, {
|
|
89587
|
+
name: "email_template",
|
|
89588
|
+
icon: React__default.createElement(EmailTemplateIcon, null)
|
|
89589
|
+
}, {
|
|
89590
|
+
name: "custom_alert",
|
|
89591
|
+
icon: React__default.createElement(CustomAlertIcon, null)
|
|
89592
|
+
}, {
|
|
89593
|
+
name: "media_gallery",
|
|
89594
|
+
icon: React__default.createElement(MEDIAGalleryIcon, null)
|
|
89595
|
+
}, {
|
|
89596
|
+
name: "data_import_export",
|
|
89597
|
+
icon: React__default.createElement(DataImportExportIcon, null)
|
|
89598
|
+
}, {
|
|
89599
|
+
name: "help",
|
|
89600
|
+
icon: React__default.createElement(HelpIcon, null)
|
|
89601
|
+
}];
|
|
89602
|
+
var renderNotificationBadge = React.useCallback(function () {
|
|
89603
|
+
if (!unreadNoti) return React__default.createElement(NotificationsIcon, {
|
|
89604
|
+
onClick: function onClick() {
|
|
89605
|
+
return openNotification();
|
|
89606
|
+
}
|
|
89607
|
+
});
|
|
89608
|
+
return React__default.createElement(core$1.Badge, {
|
|
89609
|
+
badgeContent: unreadNoti,
|
|
89610
|
+
color: "secondary",
|
|
89611
|
+
onClick: function onClick() {
|
|
89612
|
+
return openNotification();
|
|
89613
|
+
}
|
|
89614
|
+
}, React__default.createElement(NotificationsIcon, null));
|
|
89615
|
+
}, [unreadNoti, JSON.stringify(roles)]);
|
|
89616
|
+
|
|
89617
|
+
var renderNavigationItem = function renderNavigationItem(navigation, isSubItem) {
|
|
89618
|
+
var _navigation$children2, _navigation$children3, _navigation$children4;
|
|
89619
|
+
|
|
89620
|
+
var activeClass = getNavigationActive(navigation);
|
|
89621
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(core$1.ListItem, {
|
|
89622
|
+
button: true,
|
|
89623
|
+
key: navigation === null || navigation === void 0 ? void 0 : navigation.name,
|
|
89624
|
+
onClick: function onClick() {
|
|
89625
|
+
var _navigation$children;
|
|
89626
|
+
|
|
89627
|
+
return !!((_navigation$children = navigation.children) !== null && _navigation$children !== void 0 && _navigation$children.length) ? handleToggleNavigationItem(navigation.name) : handleClickNavigationItem(navigation);
|
|
89628
|
+
},
|
|
89629
|
+
className: classes.drawerItem + " " + activeClass + " " + (isSubItem ? classes.subDrawerItem : "") + " " + (!!((_navigation$children2 = navigation.children) !== null && _navigation$children2 !== void 0 && _navigation$children2.length) ? "border-bottom-0" : "")
|
|
89630
|
+
}, React__default.createElement(core$1.ListItemIcon, {
|
|
89631
|
+
style: {
|
|
89632
|
+
width: 20,
|
|
89633
|
+
height: 20
|
|
89634
|
+
}
|
|
89635
|
+
}, getNavigationItemIcon(navigation)), React__default.createElement(core$1.ListItemText, {
|
|
89636
|
+
style: {
|
|
89637
|
+
marginLeft: 8
|
|
89638
|
+
}
|
|
89639
|
+
}, React__default.createElement("span", {
|
|
89640
|
+
className: classes.drawerContent,
|
|
89641
|
+
style: {
|
|
89642
|
+
fontSize: tabLargeFontSize(defaultFont)
|
|
89643
|
+
}
|
|
89644
|
+
}, t(navigation === null || navigation === void 0 ? void 0 : navigation.name))), !!((_navigation$children3 = navigation.children) !== null && _navigation$children3 !== void 0 && _navigation$children3.length) && React__default.createElement(icons.ChevronLeft, {
|
|
89645
|
+
className: classes.arrow + " " + (!!openNavigationItem[navigation.name] ? classes.arrowDown : classes.arrowUp)
|
|
89646
|
+
})), !!((_navigation$children4 = navigation.children) !== null && _navigation$children4 !== void 0 && _navigation$children4.length) && React__default.createElement(core$1.ListItem, {
|
|
89647
|
+
key: (navigation === null || navigation === void 0 ? void 0 : navigation.name) + "_sub",
|
|
89648
|
+
className: "" + classes.subMenuDrawer
|
|
89649
|
+
}, React__default.createElement(core$1.Collapse, {
|
|
89650
|
+
"in": !!openNavigationItem[navigation.name],
|
|
89651
|
+
className: "w-100"
|
|
89652
|
+
}, navigation.children.filter(function (child) {
|
|
89653
|
+
return !child.name.includes("surveys");
|
|
89654
|
+
}).map(function (child) {
|
|
89655
|
+
return renderNavigationItem(child, true);
|
|
89656
|
+
}))));
|
|
89657
|
+
};
|
|
89658
|
+
|
|
89659
|
+
React.useEffect(function () {
|
|
89660
|
+
window.addEventListener("resize", handleResize);
|
|
89661
|
+
return function () {
|
|
89662
|
+
window.removeEventListener("resize", handleResize);
|
|
89663
|
+
};
|
|
89664
|
+
}, []);
|
|
89665
|
+
React.useEffect(function () {
|
|
89666
|
+
getUnreadNoti();
|
|
89667
|
+
getTeacherInformationIEP();
|
|
89668
|
+
}, [JSON.stringify(location)]);
|
|
89669
|
+
React.useEffect(function () {
|
|
89670
|
+
getUnreadNoti();
|
|
89671
|
+
var pusher;
|
|
89672
|
+
|
|
89673
|
+
if (pusherCluster && pusherKey) {
|
|
89674
|
+
pusher = new withEncryption(pusherKey, {
|
|
89675
|
+
cluster: pusherCluster
|
|
89676
|
+
});
|
|
89677
|
+
var channel = pusher.subscribe(marioCore.NOTIFICATION_CHANNEL + "-" + userId);
|
|
89678
|
+
channel.bind(NEW_NOTIFICATION, function () {
|
|
89679
|
+
getUnreadNoti();
|
|
89680
|
+
});
|
|
89681
|
+
}
|
|
89682
|
+
|
|
89683
|
+
return function () {
|
|
89684
|
+
pusher && pusher.unsubscribe(marioCore.NOTIFICATION_CHANNEL + "-" + userId);
|
|
89685
|
+
};
|
|
89686
|
+
}, [unreadNoti, pusherCluster, pusherKey]);
|
|
89687
|
+
|
|
89688
|
+
var handleHideDropdown = function handleHideDropdown(event) {
|
|
89689
|
+
if (event.key === 'Escape') {
|
|
89690
|
+
dispatch(marioCore.showMenuBar(false));
|
|
89691
|
+
}
|
|
89692
|
+
};
|
|
89693
|
+
|
|
89694
|
+
var handleClickOutside = function handleClickOutside(event) {
|
|
89695
|
+
if (drawerRef.current && !drawerRef.current.contains(event.target)) {
|
|
89696
|
+
if (window.innerWidth < 1024) dispatch(marioCore.showMenuBar(false));
|
|
89697
|
+
}
|
|
89698
|
+
};
|
|
89699
|
+
|
|
89700
|
+
React.useEffect(function () {
|
|
89701
|
+
document.addEventListener('keydown', handleHideDropdown, true);
|
|
89702
|
+
document.addEventListener('click', handleClickOutside, true);
|
|
89703
|
+
return function () {
|
|
89704
|
+
document.removeEventListener('keydown', handleHideDropdown, true);
|
|
89705
|
+
document.removeEventListener('click', handleClickOutside, true);
|
|
89706
|
+
};
|
|
89707
|
+
});
|
|
89708
|
+
React.useEffect(function () {
|
|
89709
|
+
if (window.innerWidth < 1024) {
|
|
89710
|
+
dispatch(marioCore.showMenuBar(false));
|
|
89711
|
+
}
|
|
89712
|
+
}, []);
|
|
89713
|
+
return {
|
|
89714
|
+
anchorFontEl: anchorFontEl,
|
|
89715
|
+
anchorEl: anchorEl,
|
|
89716
|
+
classes: classes,
|
|
89717
|
+
screenWidth: screenWidth,
|
|
89718
|
+
isReadOnly: isReadOnly,
|
|
89719
|
+
notificationAlert: notificationAlert,
|
|
89720
|
+
open: open,
|
|
89721
|
+
openFont: openFont,
|
|
89722
|
+
isOpen: isOpen,
|
|
89723
|
+
isOpenSideBar: isOpenSideBar,
|
|
89724
|
+
defaultFont: defaultFont,
|
|
89725
|
+
user: user,
|
|
89726
|
+
drawerRef: drawerRef,
|
|
89727
|
+
openNavigationItem: openNavigationItem,
|
|
89728
|
+
handleOpenNavigationItem: handleOpenNavigationItem,
|
|
89729
|
+
handleCloseNotification: handleCloseNotification,
|
|
89730
|
+
toggleSideBar: toggleSideBar,
|
|
89731
|
+
handleMenu: handleMenu,
|
|
89732
|
+
handleFontMenu: handleFontMenu,
|
|
89733
|
+
handleFontClose: handleFontClose,
|
|
89734
|
+
signOut: signOut,
|
|
89735
|
+
renderNotificationBadge: renderNotificationBadge,
|
|
89736
|
+
openProfile: openProfile,
|
|
89737
|
+
onChangeFont: onChangeFont,
|
|
89738
|
+
handleClose: handleClose,
|
|
89739
|
+
renderNavigationItem: renderNavigationItem,
|
|
89740
|
+
goToSettings: goToSettings,
|
|
89741
|
+
t: t
|
|
89742
|
+
};
|
|
89743
|
+
};
|
|
89744
|
+
var useStyles$i = styles$b.makeStyles(function (theme) {
|
|
89745
|
+
var _overlay, _menuButton, _title, _listItem, _drawer, _textPrivacy, _subMenuDrawer, _subDrawerItem, _drawerItem, _drawerContent, _drawerPaper, _drawerPaperMobile, _content, _theme$breakpoints$up, _contentShift;
|
|
89746
|
+
|
|
89747
|
+
return {
|
|
89748
|
+
overlay: (_overlay = {
|
|
89749
|
+
display: "none"
|
|
89750
|
+
}, _overlay[theme.breakpoints.down(1024)] = {
|
|
89751
|
+
display: "block",
|
|
89752
|
+
position: "fixed",
|
|
89753
|
+
width: "100vw",
|
|
89754
|
+
height: "100vh",
|
|
89755
|
+
zIndex: 899,
|
|
89756
|
+
background: "rgba(0, 0, 0, 0.25)"
|
|
89757
|
+
}, _overlay),
|
|
89758
|
+
grow: {
|
|
89759
|
+
flexGrow: 1
|
|
89760
|
+
},
|
|
89761
|
+
menuItem: {
|
|
89762
|
+
padding: 0,
|
|
89763
|
+
"& > button > span > span": {
|
|
89764
|
+
marginLeft: "0.2rem !important"
|
|
89765
|
+
}
|
|
89766
|
+
},
|
|
89767
|
+
menuButton: (_menuButton = {
|
|
89768
|
+
marginRight: theme.spacing(2)
|
|
89769
|
+
}, _menuButton["@media(max-width: 768px)"] = {
|
|
89770
|
+
marginRight: 0
|
|
89771
|
+
}, _menuButton),
|
|
89772
|
+
title: (_title = {
|
|
89773
|
+
flexGrow: 0.2,
|
|
89774
|
+
"& img": {
|
|
89775
|
+
height: "50px",
|
|
89776
|
+
borderRadius: "16px",
|
|
89777
|
+
boxShadow: "0px 0px 24px 0px rgba(0, 0, 0, 0.16)",
|
|
89778
|
+
padding: "5px 10px",
|
|
89779
|
+
border: "2px solid #FFFFFF"
|
|
89780
|
+
},
|
|
89781
|
+
"& img:hover": {
|
|
89782
|
+
boxShadow: "0px 0px 24px 0px rgba(0, 0, 0, 0.36)"
|
|
89783
|
+
}
|
|
89784
|
+
}, _title['@media(min-width: 1440px)'] = {
|
|
89785
|
+
flexGrow: 0.1
|
|
89786
|
+
}, _title),
|
|
89787
|
+
listItem: (_listItem = {}, _listItem["@media(max-width: 768px)"] = {
|
|
89788
|
+
padding: 0
|
|
89789
|
+
}, _listItem),
|
|
89790
|
+
header: {
|
|
89791
|
+
zIndex: 1000,
|
|
89792
|
+
background: "#336DDA"
|
|
89793
|
+
},
|
|
89794
|
+
dropdown: {
|
|
89795
|
+
zIndex: "1410 !important",
|
|
89796
|
+
top: "40px !important"
|
|
89797
|
+
},
|
|
89798
|
+
sectionDesktop: {
|
|
89799
|
+
display: "flex"
|
|
89800
|
+
},
|
|
89801
|
+
drawer: (_drawer = {
|
|
89802
|
+
width: drawerWidth
|
|
89803
|
+
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.1),screen and (-moz-min-device-pixel-ratio: 1.1)"] = {
|
|
89804
|
+
width: drawerWidth11
|
|
89805
|
+
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
89806
|
+
width: drawerWidth12
|
|
89807
|
+
}, _drawer["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
89808
|
+
width: drawerWidth15
|
|
89809
|
+
}, _drawer.flexShrink = 0, _drawer[theme.breakpoints.down(600)] = {
|
|
89810
|
+
position: "fixed",
|
|
89811
|
+
zIndex: 999
|
|
89812
|
+
}, _drawer),
|
|
89813
|
+
textPrivacy: (_textPrivacy = {
|
|
89814
|
+
display: "flex",
|
|
89815
|
+
alignItems: "center",
|
|
89816
|
+
color: "#fff",
|
|
89817
|
+
textDecoration: "none",
|
|
89818
|
+
marginRight: "12px",
|
|
89819
|
+
"&:hover": {
|
|
89820
|
+
color: "#fff",
|
|
89821
|
+
textDecoration: "none"
|
|
89822
|
+
}
|
|
89823
|
+
}, _textPrivacy[theme.breakpoints.down(415)] = {
|
|
89824
|
+
marginRight: "0px"
|
|
89825
|
+
}, _textPrivacy),
|
|
89826
|
+
subMenuDrawer: (_subMenuDrawer = {
|
|
89827
|
+
padding: 0,
|
|
89828
|
+
borderBottom: "none"
|
|
89829
|
+
}, _subMenuDrawer[theme.breakpoints.down(600)] = {
|
|
89830
|
+
borderBottom: "1px solid #D3D3D3"
|
|
89831
|
+
}, _subMenuDrawer),
|
|
89832
|
+
subDrawerItem: (_subDrawerItem = {
|
|
89833
|
+
paddingLeft: "48px",
|
|
89834
|
+
minHeight: "56px!important"
|
|
89835
|
+
}, _subDrawerItem[theme.breakpoints.down(600)] = {
|
|
89836
|
+
borderBottom: "none!important",
|
|
89837
|
+
"&:last-child": {
|
|
89838
|
+
marginBottom: "16px"
|
|
89839
|
+
}
|
|
89840
|
+
}, _subDrawerItem),
|
|
89841
|
+
drawerItem: (_drawerItem = {
|
|
89842
|
+
minHeight: "70px",
|
|
89843
|
+
display: "flex",
|
|
89844
|
+
justifyContent: "center",
|
|
89845
|
+
alignItems: "center",
|
|
89846
|
+
transition: "0.4s",
|
|
89847
|
+
"& svg ": {
|
|
89848
|
+
color: "#242424",
|
|
89849
|
+
"& path": {
|
|
89850
|
+
fill: "#242424"
|
|
89851
|
+
}
|
|
89852
|
+
},
|
|
89853
|
+
"&:hover": {
|
|
89854
|
+
"& span": {
|
|
89855
|
+
color: "#316CD9"
|
|
89856
|
+
},
|
|
89857
|
+
"& svg ": {
|
|
89858
|
+
color: "#316CD9",
|
|
89859
|
+
"& path": {
|
|
89860
|
+
fill: "#316CD9"
|
|
89861
|
+
}
|
|
89862
|
+
}
|
|
89863
|
+
},
|
|
89864
|
+
"& > div": {
|
|
89865
|
+
minWidth: "32px"
|
|
89866
|
+
}
|
|
89867
|
+
}, _drawerItem[theme.breakpoints.down(600)] = {
|
|
89868
|
+
borderBottom: "1px solid #D3D3D3"
|
|
89869
|
+
}, _drawerItem),
|
|
89870
|
+
drawerContent: (_drawerContent = {
|
|
89871
|
+
color: "#1A202C",
|
|
89872
|
+
fontSize: "18px",
|
|
89873
|
+
fontWeight: 500
|
|
89874
|
+
}, _drawerContent["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
89875
|
+
fontSize: "16px"
|
|
89876
|
+
}, _drawerContent["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
89877
|
+
fontSize: "15px"
|
|
89878
|
+
}, _drawerContent),
|
|
89879
|
+
drawerPaper: (_drawerPaper = {
|
|
89880
|
+
borderRight: "none",
|
|
89881
|
+
display: "flex",
|
|
89882
|
+
flexDirection: "column",
|
|
89883
|
+
justifyContent: "space-between",
|
|
89884
|
+
width: drawerWidth
|
|
89885
|
+
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.1),screen and (-moz-min-device-pixel-ratio: 1.1)"] = {
|
|
89886
|
+
width: drawerWidth11
|
|
89887
|
+
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
89888
|
+
width: drawerWidth12
|
|
89889
|
+
}, _drawerPaper["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
89890
|
+
width: drawerWidth15
|
|
89891
|
+
}, _drawerPaper.paddingTop = function paddingTop(props) {
|
|
89892
|
+
return HEADER_DESKTOP_HEIGHT + (props.isOpen ? NOTIFICATION_HEIGHT : 0);
|
|
89893
|
+
}, _drawerPaper.zIndex = 900, _drawerPaper[theme.breakpoints.down(600)] = {
|
|
89894
|
+
paddingTop: HEADER_MOBILE_HEIGHT,
|
|
89895
|
+
width: "100vw",
|
|
89896
|
+
background: "#F6F6F6"
|
|
89897
|
+
}, _drawerPaper[theme.breakpoints.down(415)] = {
|
|
89898
|
+
paddingTop: headerHeightScroll
|
|
89899
|
+
}, _drawerPaper),
|
|
89900
|
+
drawerPaperMobile: (_drawerPaperMobile = {
|
|
89901
|
+
paddingTop: HEADER_DESKTOP_HEIGHT
|
|
89902
|
+
}, _drawerPaperMobile[theme.breakpoints.down(600)] = {
|
|
89903
|
+
paddingTop: 0
|
|
89904
|
+
}, _drawerPaperMobile[theme.breakpoints.down(415)] = {
|
|
89905
|
+
paddingTop: headerHeightScroll
|
|
89906
|
+
}, _drawerPaperMobile),
|
|
89907
|
+
drawerActive: {
|
|
89908
|
+
color: "#336DDA",
|
|
89909
|
+
"& span": {
|
|
89910
|
+
color: "#336DDA"
|
|
89911
|
+
},
|
|
89912
|
+
"& svg": {
|
|
89913
|
+
color: "#336DDA",
|
|
89914
|
+
"& path": {
|
|
89915
|
+
fill: "#336DDA"
|
|
89916
|
+
}
|
|
89917
|
+
}
|
|
89918
|
+
},
|
|
89919
|
+
content: (_content = {
|
|
89920
|
+
flexGrow: 1,
|
|
89921
|
+
transition: theme.transitions.create("margin", {
|
|
89922
|
+
easing: theme.transitions.easing.sharp,
|
|
89923
|
+
duration: theme.transitions.duration.leavingScreen
|
|
89924
|
+
}),
|
|
89925
|
+
paddingTop: function paddingTop(props) {
|
|
89926
|
+
return HEADER_DESKTOP_HEIGHT + (props.isOpen ? NOTIFICATION_HEIGHT : 0);
|
|
89927
|
+
}
|
|
89928
|
+
}, _content[theme.breakpoints.down(600)] = {
|
|
89929
|
+
paddingTop: function paddingTop(props) {
|
|
89930
|
+
return HEADER_MOBILE_HEIGHT + (props.isOpen ? NOTIFICATION_HEIGHT : 0);
|
|
89931
|
+
}
|
|
89932
|
+
}, _content),
|
|
89933
|
+
contentShift: (_contentShift = {
|
|
89934
|
+
transition: theme.transitions.create("margin", {
|
|
89935
|
+
easing: theme.transitions.easing.easeOut,
|
|
89936
|
+
duration: theme.transitions.duration.enteringScreen
|
|
89937
|
+
})
|
|
89938
|
+
}, _contentShift[theme.breakpoints.up(1024)] = (_theme$breakpoints$up = {
|
|
89939
|
+
marginLeft: drawerWidth
|
|
89940
|
+
}, _theme$breakpoints$up["@media screen and (-webkit-min-device-pixel-ratio: 1.1),screen and (-moz-min-device-pixel-ratio: 1.1)"] = {
|
|
89941
|
+
marginLeft: drawerWidth11
|
|
89942
|
+
}, _theme$breakpoints$up["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
89943
|
+
marginLeft: drawerWidth12
|
|
89944
|
+
}, _theme$breakpoints$up["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
89945
|
+
marginLeft: drawerWidth15
|
|
89946
|
+
}, _theme$breakpoints$up), _contentShift),
|
|
89947
|
+
fontBodyLarge: {
|
|
89948
|
+
fontSize: "16px",
|
|
89949
|
+
color: "#fff"
|
|
89950
|
+
},
|
|
89951
|
+
fontBodySmall: {
|
|
89952
|
+
fontSize: "12px",
|
|
89953
|
+
color: "#fff",
|
|
89954
|
+
marginLeft: "3px",
|
|
89955
|
+
paddingTop: "4px"
|
|
89956
|
+
},
|
|
89957
|
+
fontSmall: {
|
|
89958
|
+
fontSize: "12px"
|
|
89959
|
+
},
|
|
89960
|
+
fontMedium: {
|
|
89961
|
+
fontSize: "16px"
|
|
89962
|
+
},
|
|
89963
|
+
fontLarge: {
|
|
89964
|
+
fontSize: "20px"
|
|
89965
|
+
},
|
|
89966
|
+
sectionFontDesktop: {
|
|
89967
|
+
paddingTop: "7px"
|
|
89968
|
+
},
|
|
89969
|
+
itemSideBar: {
|
|
89970
|
+
position: "relative"
|
|
89971
|
+
},
|
|
89972
|
+
positionBox: {
|
|
89973
|
+
position: "relative"
|
|
89974
|
+
},
|
|
89975
|
+
arrow: {
|
|
89976
|
+
opacity: 0.56
|
|
89977
|
+
},
|
|
89978
|
+
arrowDown: {
|
|
89979
|
+
transform: "rotate(90deg)"
|
|
89980
|
+
},
|
|
89981
|
+
arrowUp: {
|
|
89982
|
+
transform: "rotate(-90deg)"
|
|
89983
|
+
},
|
|
89984
|
+
dailyMotivation: {
|
|
89985
|
+
padding: "32px 16px 16px"
|
|
89986
|
+
}
|
|
89987
|
+
};
|
|
89988
|
+
});
|
|
89989
|
+
|
|
89990
|
+
var TimesIcon = function TimesIcon(_ref) {
|
|
89991
|
+
var _ref$fill = _ref.fill,
|
|
89992
|
+
fill = _ref$fill === void 0 ? "#FFFFFF" : _ref$fill,
|
|
89993
|
+
props = _objectWithoutPropertiesLoose(_ref, ["fill"]);
|
|
89994
|
+
|
|
89995
|
+
return React__default.createElement("svg", Object.assign({}, props, {
|
|
89996
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
89997
|
+
width: "24",
|
|
89998
|
+
height: "24",
|
|
89999
|
+
viewBox: "0 0 24 24",
|
|
90000
|
+
fill: "none"
|
|
90001
|
+
}), React__default.createElement("path", {
|
|
90002
|
+
d: "M20.6997 19.2498C21.1001 19.6501 21.1001 20.2993 20.6997 20.6997C20.2993 21.1001 19.6501 21.1001 19.2497 20.6997L12 13.45L4.75026 20.6997C4.34986 21.1001 3.7007 21.1001 3.30031 20.6997C2.89991 20.2993 2.89991 19.6501 3.30031 19.2498L10.5501 12L3.30029 4.75025C2.8999 4.34985 2.8999 3.70069 3.30029 3.30029C3.70069 2.8999 4.34985 2.8999 4.75024 3.30029L12 10.5501L19.2498 3.30029C19.6502 2.8999 20.2993 2.8999 20.6997 3.30029C21.1001 3.70069 21.1001 4.34985 20.6997 4.75025L13.45 12L20.6997 19.2498Z",
|
|
90003
|
+
fill: fill
|
|
90004
|
+
}));
|
|
90005
|
+
};
|
|
90006
|
+
|
|
90007
|
+
var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
90008
|
+
var _handleUserRole, _clsx;
|
|
90009
|
+
|
|
90010
|
+
var children = _ref.children,
|
|
90011
|
+
navigations = _ref.navigations,
|
|
90012
|
+
onToggleModel = _ref.onToggleModel;
|
|
90013
|
+
|
|
90014
|
+
var _useHeaderSideBar = useHeaderSideBar(),
|
|
90015
|
+
anchorFontEl = _useHeaderSideBar.anchorFontEl,
|
|
90016
|
+
anchorEl = _useHeaderSideBar.anchorEl,
|
|
90017
|
+
classes = _useHeaderSideBar.classes,
|
|
90018
|
+
screenWidth = _useHeaderSideBar.screenWidth,
|
|
90019
|
+
isReadOnly = _useHeaderSideBar.isReadOnly,
|
|
90020
|
+
notificationAlert = _useHeaderSideBar.notificationAlert,
|
|
90021
|
+
open = _useHeaderSideBar.open,
|
|
90022
|
+
openFont = _useHeaderSideBar.openFont,
|
|
90023
|
+
isOpen = _useHeaderSideBar.isOpen,
|
|
90024
|
+
isOpenSideBar = _useHeaderSideBar.isOpenSideBar,
|
|
90025
|
+
defaultFont = _useHeaderSideBar.defaultFont,
|
|
90026
|
+
user = _useHeaderSideBar.user,
|
|
90027
|
+
drawerRef = _useHeaderSideBar.drawerRef,
|
|
90028
|
+
handleCloseNotification = _useHeaderSideBar.handleCloseNotification,
|
|
90029
|
+
toggleSideBar = _useHeaderSideBar.toggleSideBar,
|
|
90030
|
+
handleMenu = _useHeaderSideBar.handleMenu,
|
|
90031
|
+
handleFontMenu = _useHeaderSideBar.handleFontMenu,
|
|
90032
|
+
handleFontClose = _useHeaderSideBar.handleFontClose,
|
|
90033
|
+
signOut = _useHeaderSideBar.signOut,
|
|
90034
|
+
renderNotificationBadge = _useHeaderSideBar.renderNotificationBadge,
|
|
90035
|
+
openProfile = _useHeaderSideBar.openProfile,
|
|
90036
|
+
onChangeFont = _useHeaderSideBar.onChangeFont,
|
|
90037
|
+
handleClose = _useHeaderSideBar.handleClose,
|
|
90038
|
+
renderNavigationItem = _useHeaderSideBar.renderNavigationItem;
|
|
90039
|
+
|
|
90040
|
+
return React__default.createElement("div", null, React__default.createElement(AppBar, {
|
|
90041
|
+
position: "fixed",
|
|
90042
|
+
className: classes.header
|
|
90043
|
+
}, !!(notificationAlert !== null && notificationAlert !== void 0 && notificationAlert.name) && !!(notificationAlert !== null && notificationAlert !== void 0 && notificationAlert.id) && React__default.createElement(NotificationAlert, {
|
|
90044
|
+
isOpen: isOpen,
|
|
90045
|
+
data: notificationAlert,
|
|
90046
|
+
onClose: handleCloseNotification,
|
|
90047
|
+
fontSize: buttonFontSize(defaultFont)
|
|
90048
|
+
}), React__default.createElement(Toolbar, null, !isReadOnly && React__default.createElement(IconButton, {
|
|
90049
|
+
edge: "start",
|
|
90050
|
+
className: classes.menuButton,
|
|
90051
|
+
color: "inherit",
|
|
90052
|
+
"aria-label": "menu",
|
|
90053
|
+
onClick: toggleSideBar
|
|
90054
|
+
}, isOpenSideBar && screenWidth < 1280 ? React__default.createElement(TimesIcon, null) : React__default.createElement(MenuIcon, null)), React__default.createElement(Typography, {
|
|
90055
|
+
variant: "h6",
|
|
90056
|
+
className: classes.title
|
|
90057
|
+
}, React__default.createElement(reactRouterDom.Link, {
|
|
90058
|
+
to: "/admin/home"
|
|
90059
|
+
}, React__default.createElement("img", {
|
|
90060
|
+
src: LOGO,
|
|
90061
|
+
alt: ""
|
|
90062
|
+
}))), screenWidth > 600 && React__default.createElement("span", {
|
|
90063
|
+
style: {
|
|
90064
|
+
fontSize: "1.1rem"
|
|
90065
|
+
}
|
|
90066
|
+
}, "Hi, ", user === null || user === void 0 ? void 0 : user.firstName, " \uD83D\uDC4B"), React__default.createElement("div", {
|
|
90067
|
+
className: classes.grow
|
|
90068
|
+
}), React__default.createElement("div", {
|
|
90069
|
+
className: classes.sectionDesktop
|
|
90070
|
+
}, screenWidth > 600 && React__default.createElement(LanguageDropdown, null), React__default.createElement(IconButton, {
|
|
90071
|
+
color: "inherit",
|
|
90072
|
+
onClick: handleFontMenu,
|
|
90073
|
+
"aria-controls": "menu-font",
|
|
90074
|
+
"aria-haspopup": "true",
|
|
90075
|
+
className: classes.sectionFontDesktop
|
|
90076
|
+
}, React__default.createElement("span", {
|
|
90077
|
+
className: classes.fontBodyLarge
|
|
90078
|
+
}, "A"), React__default.createElement("span", {
|
|
90079
|
+
className: classes.fontBodySmall
|
|
90080
|
+
}, "A")), React__default.createElement(IconButton, {
|
|
90081
|
+
"aria-label": "show 17 new notifications",
|
|
90082
|
+
color: "inherit",
|
|
90083
|
+
onClick: handleMenu
|
|
90084
|
+
}, React__default.createElement(icons.AccountCircle, null)), !isReadOnly && React__default.createElement(IconButton, {
|
|
90085
|
+
edge: "end",
|
|
90086
|
+
"aria-label": "account of current user",
|
|
90087
|
+
"aria-haspopup": "true",
|
|
90088
|
+
color: "inherit"
|
|
90089
|
+
}, renderNotificationBadge())), React__default.createElement(core$1.Menu, {
|
|
90090
|
+
id: "menu-font",
|
|
90091
|
+
className: classes.dropdown,
|
|
90092
|
+
anchorEl: anchorFontEl,
|
|
90093
|
+
anchorOrigin: {
|
|
90094
|
+
vertical: "top",
|
|
90095
|
+
horizontal: "right"
|
|
90096
|
+
},
|
|
90097
|
+
keepMounted: true,
|
|
90098
|
+
transformOrigin: {
|
|
90099
|
+
vertical: "top",
|
|
90100
|
+
horizontal: "right"
|
|
90101
|
+
},
|
|
90102
|
+
open: openFont,
|
|
90103
|
+
onClose: handleFontClose,
|
|
90104
|
+
onClick: handleFontClose
|
|
90105
|
+
}, React__default.createElement(core$1.MenuItem, {
|
|
90106
|
+
onClick: function onClick() {
|
|
90107
|
+
return onChangeFont(defaultFontSmall);
|
|
90108
|
+
},
|
|
90109
|
+
selected: defaultFont == defaultFontSmall,
|
|
90110
|
+
className: classes.fontSmall
|
|
90111
|
+
}, "Small text"), React__default.createElement(core$1.MenuItem, {
|
|
90112
|
+
onClick: function onClick() {
|
|
90113
|
+
return onChangeFont(defaultFontSize);
|
|
90114
|
+
},
|
|
90115
|
+
selected: defaultFont == defaultFontSize,
|
|
90116
|
+
className: classes.fontMedium
|
|
90117
|
+
}, "Medium text"), React__default.createElement(core$1.MenuItem, {
|
|
90118
|
+
onClick: function onClick() {
|
|
90119
|
+
return onChangeFont(defaultFontLarge);
|
|
90120
|
+
},
|
|
90121
|
+
selected: defaultFont == defaultFontLarge,
|
|
90122
|
+
className: classes.fontLarge
|
|
90123
|
+
}, "Large text")), React__default.createElement(core$1.Menu, {
|
|
90124
|
+
id: "menu-appbar",
|
|
90125
|
+
className: classes.dropdown,
|
|
90126
|
+
anchorEl: anchorEl,
|
|
90127
|
+
anchorOrigin: {
|
|
90128
|
+
vertical: "top",
|
|
90129
|
+
horizontal: "right"
|
|
90130
|
+
},
|
|
90131
|
+
keepMounted: true,
|
|
90132
|
+
transformOrigin: {
|
|
90133
|
+
vertical: "top",
|
|
90134
|
+
horizontal: "right"
|
|
90135
|
+
},
|
|
90136
|
+
open: open,
|
|
90137
|
+
onClose: handleClose
|
|
90138
|
+
}, screenWidth < 600 && React__default.createElement(core$1.MenuItem, {
|
|
90139
|
+
className: classes.menuItem
|
|
90140
|
+
}, React__default.createElement(LanguageDropdown, null)), !isReadOnly && React__default.createElement(core$1.MenuItem, {
|
|
90141
|
+
onClick: openProfile
|
|
90142
|
+
}, "Profile"), ((_handleUserRole = handleUserRole((user === null || user === void 0 ? void 0 : user.userRoles) || [])) === null || _handleUserRole === void 0 ? void 0 : _handleUserRole.length) > 1 && !isReadOnly && React__default.createElement(core$1.MenuItem, {
|
|
90143
|
+
onClick: function onClick() {
|
|
90144
|
+
onToggleModel === null || onToggleModel === void 0 ? void 0 : onToggleModel();
|
|
90145
|
+
handleClose();
|
|
90146
|
+
}
|
|
90147
|
+
}, "Role change"), React__default.createElement(core$1.MenuItem, {
|
|
90148
|
+
onClick: signOut
|
|
90149
|
+
}, "Log out")))), !isReadOnly && React__default.createElement(React__default.Fragment, null, isOpenSideBar && React__default.createElement("div", {
|
|
90150
|
+
className: classes.positionBox
|
|
90151
|
+
}, React__default.createElement(core$1.Drawer, {
|
|
90152
|
+
id: "menu-sidebar",
|
|
90153
|
+
className: classes.drawer,
|
|
90154
|
+
variant: "persistent",
|
|
90155
|
+
anchor: "left",
|
|
90156
|
+
ref: drawerRef,
|
|
90157
|
+
open: isOpenSideBar,
|
|
90158
|
+
classes: {
|
|
90159
|
+
paper: classes.drawerPaper
|
|
90160
|
+
}
|
|
90161
|
+
}, React__default.createElement(core$1.List, {
|
|
90162
|
+
style: {
|
|
90163
|
+
paddingTop: 0,
|
|
90164
|
+
paddingBottom: 50
|
|
90165
|
+
}
|
|
90166
|
+
}, !!navigations && navigations.map(function (navigation) {
|
|
90167
|
+
return renderNavigationItem(navigation);
|
|
90168
|
+
}))))), React__default.createElement("main", {
|
|
90169
|
+
className: clsx(classes.content, (_clsx = {}, _clsx[classes.contentShift] = isReadOnly ? false : isOpenSideBar, _clsx))
|
|
90170
|
+
}, children));
|
|
90171
|
+
};
|
|
90172
|
+
|
|
90173
|
+
var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
90174
|
+
var _handleUserRole;
|
|
90175
|
+
|
|
90176
|
+
var open = _ref.open,
|
|
90177
|
+
onToggleModel = _ref.onToggleModel;
|
|
90178
|
+
var dispatch = reactRedux.useDispatch();
|
|
90179
|
+
var history = reactRouterDom.useHistory();
|
|
90180
|
+
var pathname = window.location.pathname;
|
|
90181
|
+
var user = reactRedux.useSelector(function (state) {
|
|
90182
|
+
return state.common.user;
|
|
90183
|
+
});
|
|
90184
|
+
var roles = user === null || user === void 0 ? void 0 : user.roles;
|
|
90185
|
+
|
|
90186
|
+
var handleSelectUserRoles = function handleSelectUserRoles(roles) {
|
|
90187
|
+
dispatch(marioCore.setLoading(true));
|
|
90188
|
+
var roleSelect = roles.includes("Teacher/Assistant") ? ["Teacher", "Assistant"] : roles;
|
|
90189
|
+
dispatch(marioCore.setUser(_extends({}, user, {
|
|
90190
|
+
roles: roleSelect
|
|
90191
|
+
})));
|
|
90192
|
+
localStorage.setItem("ROLES", roleSelect.toString());
|
|
90193
|
+
onToggleModel();
|
|
90194
|
+
|
|
90195
|
+
if (roles.includes("Parent")) {
|
|
90196
|
+
history.push("/parent");
|
|
90197
|
+
} else if (roles.includes("Admin")) {
|
|
90198
|
+
history.push("/admin/home");
|
|
90199
|
+
} else {
|
|
90200
|
+
pathname !== "/home" ? history.push("/home") : window.location.reload();
|
|
90201
|
+
}
|
|
90202
|
+
};
|
|
90203
|
+
|
|
90204
|
+
return React__default.createElement(core$1.Dialog, {
|
|
90205
|
+
open: open,
|
|
90206
|
+
onClose: function onClose() {
|
|
90207
|
+
return onToggleModel();
|
|
90208
|
+
},
|
|
90209
|
+
className: "" + style$4["model-switch-roles"]
|
|
90210
|
+
}, React__default.createElement(core$1.Typography, {
|
|
90211
|
+
className: "" + style$4["title"]
|
|
90212
|
+
}, "Continue as:"), React__default.createElement("div", null, (_handleUserRole = handleUserRole(user === null || user === void 0 ? void 0 : user.userRoles)) === null || _handleUserRole === void 0 ? void 0 : _handleUserRole.map(function (r) {
|
|
90213
|
+
return React__default.createElement("p", {
|
|
90214
|
+
key: r,
|
|
90215
|
+
className: style$4["item-select-role"] + " " + style$4[roles.includes("Teacher") && roles.includes("Assistant") && r === "Teacher/Assistant" || roles.includes(r) ? "item-role-active" : ""],
|
|
90216
|
+
onClick: function onClick() {
|
|
90217
|
+
return handleSelectUserRoles([r]);
|
|
90218
|
+
}
|
|
90219
|
+
}, r == "SecondaryTeacher" ? "Support Teacher" : r);
|
|
90220
|
+
})));
|
|
90221
|
+
};
|
|
90222
|
+
|
|
90223
|
+
var styles$a = {"privacy-policy":"_2dEzh","privacy-policy-left":"_2lSk2","all-rights-reserved":"_2unK1","policy-link":"_1cFLY","privacy-policy-right":"_1a3Jo","product-link":"_3ztHM","image-link":"_1PDl3","margin-by-sidebar":"_1XXX_"};
|
|
90224
|
+
|
|
90225
|
+
var useStyles$j = core$1.makeStyles(function () {
|
|
90226
|
+
var _root, _fullWidth;
|
|
90227
|
+
|
|
90228
|
+
return {
|
|
90229
|
+
root: (_root = {
|
|
90230
|
+
width: "calc(100vw - " + drawerWidth + "px)"
|
|
90231
|
+
}, _root["@media screen and (-webkit-min-device-pixel-ratio: 1.1),screen and (-moz-min-device-pixel-ratio: 1.1)"] = {
|
|
90232
|
+
width: "calc(100vw - " + drawerWidth11 + "px)"
|
|
90233
|
+
}, _root["@media screen and (-webkit-min-device-pixel-ratio: 1.2),screen and (-moz-min-device-pixel-ratio: 1.2)"] = {
|
|
90234
|
+
width: "calc(100vw - " + drawerWidth12 + "px)"
|
|
90235
|
+
}, _root["@media screen and (-webkit-min-device-pixel-ratio: 1.5),screen and (-moz-min-device-pixel-ratio: 1.5)"] = {
|
|
90236
|
+
width: "calc(100vw - " + drawerWidth15 + "px)"
|
|
90237
|
+
}, _root),
|
|
90238
|
+
fullWidth: (_fullWidth = {}, _fullWidth["@media(min-width: 1024px)"] = {
|
|
90239
|
+
width: "100vw!important"
|
|
90240
|
+
}, _fullWidth)
|
|
90241
|
+
};
|
|
90242
|
+
});
|
|
90243
|
+
|
|
90244
|
+
var Footer = function Footer(_ref) {
|
|
90245
|
+
var isNotification = _ref.isNotification;
|
|
90246
|
+
var isOpenSideBar = reactRedux.useSelector(function (state) {
|
|
90247
|
+
var _state$common;
|
|
90248
|
+
|
|
90249
|
+
return (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.menuBar;
|
|
90250
|
+
});
|
|
90251
|
+
var currentUser = reactRedux.useSelector(function (state) {
|
|
90252
|
+
var _state$common2;
|
|
90253
|
+
|
|
90254
|
+
return (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.user;
|
|
90255
|
+
});
|
|
90256
|
+
var isStudent = currentUser.roles.includes("Student");
|
|
90257
|
+
var classes = useStyles$j();
|
|
90258
|
+
return React__default.createElement(core$1.Grid, {
|
|
90259
|
+
className: styles$a["privacy-policy"] + " " + (isOpenSideBar && !isNotification ? classes.root : classes.fullWidth)
|
|
90260
|
+
}, React__default.createElement(core$1.Grid, {
|
|
90261
|
+
className: "" + styles$a["privacy-policy-left"]
|
|
90262
|
+
}, React__default.createElement(core$1.Typography, {
|
|
90263
|
+
className: "" + styles$a["all-rights-reserved"]
|
|
90264
|
+
}, "\xA9 2019-2023 MARIO Framework, LLC, All Rights Reserved"), React__default.createElement(core$1.Typography, {
|
|
90265
|
+
className: "" + styles$a["policy-link"]
|
|
90266
|
+
}, "Privacy Policy")), React__default.createElement(core$1.Grid, null, React__default.createElement("a", {
|
|
90267
|
+
href: "https://site.imsglobal.org/certifications/mario-framework-llc/mario-for-me",
|
|
90268
|
+
target: "_blank"
|
|
90269
|
+
}, React__default.createElement("img", {
|
|
90270
|
+
className: "" + styles$a["image-link"],
|
|
90271
|
+
src: "" + marioCore.getStaticFileUrl("/images/1EdTech.png"),
|
|
90272
|
+
alt: "1EdTech_TrustEd"
|
|
90273
|
+
}))), !isStudent && React__default.createElement(core$1.Grid, {
|
|
90274
|
+
className: "" + styles$a["privacy-policy-right"]
|
|
90275
|
+
}, React__default.createElement(core$1.Typography, {
|
|
90276
|
+
hidden: isStudent,
|
|
90277
|
+
className: "" + styles$a["product-link"]
|
|
90278
|
+
}, "marioframework.com"), React__default.createElement("a", {
|
|
90279
|
+
className: "" + styles$a["product-link"],
|
|
90280
|
+
href: "https://twitter.com/marioframework",
|
|
90281
|
+
target: "_blank"
|
|
90282
|
+
}, React__default.createElement("img", {
|
|
90283
|
+
src: "" + marioCore.getStaticFileUrl("/images/twitter.png"),
|
|
90284
|
+
alt: "twitter"
|
|
90285
|
+
})), React__default.createElement("a", {
|
|
90286
|
+
className: "" + styles$a["product-link"],
|
|
90287
|
+
href: "https://www.facebook.com/marioframework/",
|
|
90288
|
+
target: "_blank"
|
|
90289
|
+
}, React__default.createElement("img", {
|
|
90290
|
+
src: "" + marioCore.getStaticFileUrl("/images/facebook.png"),
|
|
90291
|
+
alt: "facebook"
|
|
90292
|
+
})), React__default.createElement("a", {
|
|
90293
|
+
className: "" + styles$a["product-link"],
|
|
90294
|
+
href: "https://www.instagram.com/themarioframework/",
|
|
90295
|
+
target: "_blank"
|
|
90296
|
+
}, React__default.createElement("img", {
|
|
90297
|
+
src: "" + marioCore.getStaticFileUrl("/images/instagram.png"),
|
|
90298
|
+
alt: "instagram"
|
|
90299
|
+
})), React__default.createElement("a", {
|
|
90300
|
+
className: "" + styles$a["product-link"],
|
|
90301
|
+
href: "https://www.linkedin.com/company/marioframework",
|
|
90302
|
+
target: "_blank"
|
|
90303
|
+
}, React__default.createElement("img", {
|
|
90304
|
+
src: "" + marioCore.getStaticFileUrl("/images/linkedin.png"),
|
|
90305
|
+
alt: "linkedin"
|
|
90306
|
+
}))));
|
|
90307
|
+
};
|
|
90308
|
+
|
|
90309
|
+
var STUDENT_PROFILE = marioCore.BASE_URL + "/api/student/profile";
|
|
90310
|
+
var getStudentSimpleProfile = function getStudentSimpleProfile() {
|
|
90311
|
+
return marioCore.api.get("" + STUDENT_PROFILE);
|
|
90312
|
+
};
|
|
90313
|
+
|
|
90314
|
+
var SCHOOL_URL = marioCore.BASE_URL + "/api/school";
|
|
90315
|
+
var getSchoolSettings = function getSchoolSettings() {
|
|
90316
|
+
return marioCore.api.get(SCHOOL_URL + "/settings");
|
|
90317
|
+
};
|
|
90318
|
+
|
|
90319
|
+
var DATEDEFAULT = new Date("0001-1-1");
|
|
90320
|
+
|
|
90321
|
+
var MainLayoutAdmin = function MainLayoutAdmin(_ref) {
|
|
90322
|
+
var routes = _ref.routes,
|
|
90323
|
+
navigation = _ref.navigation;
|
|
90324
|
+
var dispatch = reactRedux.useDispatch();
|
|
90325
|
+
var history = reactRouterDom.useHistory();
|
|
90326
|
+
var user = reactRedux.useSelector(function (state) {
|
|
90327
|
+
return state.common.user;
|
|
90328
|
+
});
|
|
90329
|
+
var amplitude = reactRedux.useSelector(function (state) {
|
|
90330
|
+
return state.common.amplitude;
|
|
90331
|
+
});
|
|
90332
|
+
var isSandboxMode = reactRedux.useSelector(function (state) {
|
|
90333
|
+
var _state$common;
|
|
90334
|
+
|
|
90335
|
+
return state === null || state === void 0 ? void 0 : (_state$common = state.common) === null || _state$common === void 0 ? void 0 : _state$common.isSandboxMode;
|
|
90336
|
+
});
|
|
90337
|
+
var isDistrict = window.location.host.includes("-district");
|
|
90338
|
+
|
|
90339
|
+
var _useState = React.useState(false),
|
|
90340
|
+
openModelSelectRole = _useState[0],
|
|
90341
|
+
setOpenModelSelectRole = _useState[1];
|
|
90342
|
+
|
|
90343
|
+
var _useState2 = React.useState(false),
|
|
90344
|
+
isCheckDone = _useState2[0],
|
|
90345
|
+
setIsCheckDone = _useState2[1];
|
|
90346
|
+
|
|
90347
|
+
var _useState3 = React.useState(DATEDEFAULT),
|
|
90348
|
+
curTime = _useState3[0],
|
|
90349
|
+
setCurTime = _useState3[1];
|
|
90350
|
+
|
|
90351
|
+
var _useState4 = React.useState(""),
|
|
90352
|
+
pathName = _useState4[0],
|
|
90353
|
+
setPathName = _useState4[1];
|
|
90354
|
+
|
|
90355
|
+
var location = reactRouterDom.useLocation();
|
|
90356
|
+
var authRoutes = React.useMemo(function () {
|
|
90357
|
+
return routes.filter(function (route) {
|
|
90358
|
+
return marioCore.canAccessRoute(user === null || user === void 0 ? void 0 : user.roles, route.roles);
|
|
90359
|
+
});
|
|
90360
|
+
}, [user]);
|
|
90361
|
+
|
|
90362
|
+
var handleReplacePathName = function handleReplacePathName(path) {
|
|
90363
|
+
var edit = path.replace(/[0-9, "/"]/g, "").split(/(?=[A-Z])/);
|
|
90364
|
+
var result = "";
|
|
90365
|
+
|
|
90366
|
+
for (var _iterator = _createForOfIteratorHelperLoose(edit), _step; !(_step = _iterator()).done;) {
|
|
90367
|
+
var item = _step.value;
|
|
90368
|
+
result += "-" + item.toLocaleLowerCase();
|
|
90369
|
+
}
|
|
90370
|
+
|
|
90371
|
+
return result.replace("-", "");
|
|
90372
|
+
};
|
|
90373
|
+
|
|
90374
|
+
var authNavigations = React.useMemo(function () {
|
|
90375
|
+
return navigation.filter(function (nav) {
|
|
90376
|
+
return marioCore.canAccessRoute(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
90377
|
+
}).filter(function (nav) {
|
|
90378
|
+
return !!nav.isDistrict === isDistrict;
|
|
90379
|
+
}).map(function (nav) {
|
|
90380
|
+
var _nav$children, _nav$children$filter;
|
|
90381
|
+
|
|
90382
|
+
return _extends({}, nav, {
|
|
90383
|
+
children: (_nav$children = nav.children) === null || _nav$children === void 0 ? void 0 : (_nav$children$filter = _nav$children.filter(function (nav) {
|
|
90384
|
+
return marioCore.canAccessRoute(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
90385
|
+
})) === null || _nav$children$filter === void 0 ? void 0 : _nav$children$filter.filter(function (nav) {
|
|
90386
|
+
return !!nav.isDistrict === isDistrict;
|
|
90387
|
+
})
|
|
90388
|
+
});
|
|
90389
|
+
});
|
|
90390
|
+
}, [user]);
|
|
90391
|
+
|
|
90392
|
+
var handleToggleModel = function handleToggleModel() {
|
|
90393
|
+
setOpenModelSelectRole(!openModelSelectRole);
|
|
90394
|
+
};
|
|
90395
|
+
|
|
90396
|
+
var getInformationSetting = function getInformationSetting() {
|
|
90397
|
+
try {
|
|
90398
|
+
var _temp2 = _catch(function () {
|
|
90399
|
+
return Promise.resolve(getSchoolSettings()).then(function (res) {
|
|
90400
|
+
dispatch(marioCore.setSandboxMode(res.data.isSandboxMode));
|
|
90401
|
+
});
|
|
90402
|
+
}, function (err) {
|
|
90403
|
+
console.error(err);
|
|
90404
|
+
});
|
|
90405
|
+
|
|
90406
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
90407
|
+
} catch (e) {
|
|
90408
|
+
return Promise.reject(e);
|
|
90409
|
+
}
|
|
90410
|
+
};
|
|
90411
|
+
|
|
90412
|
+
React.useEffect(function () {
|
|
90413
|
+
getInformationSetting();
|
|
90414
|
+
}, [location.pathname]);
|
|
90415
|
+
React.useEffect(function () {
|
|
90416
|
+
}, [amplitude === null || amplitude === void 0 ? void 0 : amplitude.event, amplitude === null || amplitude === void 0 ? void 0 : amplitude.last_page]);
|
|
90417
|
+
React.useEffect(function () {
|
|
90418
|
+
var newCurTime = new Date();
|
|
90419
|
+
|
|
90420
|
+
if (curTime != DATEDEFAULT && !!user) {
|
|
90421
|
+
dispatch(marioCore.initAmplitude({
|
|
90422
|
+
name: user.email,
|
|
90423
|
+
event: "general: duration",
|
|
90424
|
+
duration_since: newCurTime.getTime() - curTime.getTime(),
|
|
90425
|
+
last_page: handleReplacePathName(pathName),
|
|
90426
|
+
roles: user === null || user === void 0 ? void 0 : user.roles
|
|
90427
|
+
}));
|
|
90428
|
+
}
|
|
90429
|
+
|
|
90430
|
+
setPathName(location.pathname);
|
|
90431
|
+
setCurTime(newCurTime);
|
|
90432
|
+
}, [location.pathname]);
|
|
90433
|
+
React.useEffect(function () {
|
|
90434
|
+
checkAuthentication();
|
|
90435
|
+
}, [isSandboxMode]);
|
|
90436
|
+
|
|
90437
|
+
var checkAuthentication = function checkAuthentication() {
|
|
90438
|
+
try {
|
|
90439
|
+
var _temp5 = function _temp5() {
|
|
90440
|
+
dispatch(marioCore.setLoading(false));
|
|
90441
|
+
};
|
|
90442
|
+
|
|
90443
|
+
dispatch(marioCore.setLoading(true));
|
|
90444
|
+
|
|
90445
|
+
var _temp6 = _catch(function () {
|
|
90446
|
+
return Promise.resolve(marioCore.firstCheckToken()).then(function (tokenStatus) {
|
|
90447
|
+
return Promise.resolve(tokenStatus ? loadInfo() : resetAuth()).then(function () {
|
|
90448
|
+
setIsCheckDone(true);
|
|
90449
|
+
});
|
|
90450
|
+
});
|
|
90451
|
+
}, function () {
|
|
90452
|
+
resetAuth();
|
|
90453
|
+
setIsCheckDone(true);
|
|
90454
|
+
});
|
|
90455
|
+
|
|
90456
|
+
return Promise.resolve(_temp6 && _temp6.then ? _temp6.then(_temp5) : _temp5(_temp6));
|
|
90457
|
+
} catch (e) {
|
|
90458
|
+
return Promise.reject(e);
|
|
90459
|
+
}
|
|
90460
|
+
};
|
|
90461
|
+
|
|
90462
|
+
var loadInfo = React.useCallback(function () {
|
|
90463
|
+
try {
|
|
90464
|
+
var _temp10 = _catch(function () {
|
|
90465
|
+
return Promise.resolve(marioCore.getInfo()).then(function (info) {
|
|
90466
|
+
var _userData$roles, _roles, _roles2, _roles3, _roles4, _roles5, _roles6;
|
|
90467
|
+
|
|
90468
|
+
function _temp8() {
|
|
90469
|
+
dispatch(marioCore.setUser(_extends({}, user, userData, {
|
|
90470
|
+
email: userData.email,
|
|
90471
|
+
roles: roles,
|
|
90472
|
+
userRoles: userData.roles
|
|
90473
|
+
})));
|
|
90474
|
+
}
|
|
90475
|
+
|
|
90476
|
+
if (!info) {
|
|
90477
|
+
resetAuth();
|
|
90478
|
+
}
|
|
90479
|
+
|
|
90480
|
+
var roles = [];
|
|
90481
|
+
var userData = info.data;
|
|
90482
|
+
var localRoles = localStorage.getItem("ROLES");
|
|
90483
|
+
|
|
90484
|
+
if (!localRoles || !(userData !== null && userData !== void 0 && (_userData$roles = userData.roles) !== null && _userData$roles !== void 0 && _userData$roles.includes(localRoles)) || localRoles !== null && localRoles !== void 0 && localRoles.includes("Admin")) {
|
|
90485
|
+
if (localRoles !== null && localRoles !== void 0 && localRoles.includes("Admin")) {
|
|
90486
|
+
localStorage.setItem("ROLES", localRoles);
|
|
90487
|
+
roles.push("Admin");
|
|
90488
|
+
} else {
|
|
90489
|
+
var _userData$roles2, _userData$roles4, _userData$roles5, _userData$roles6;
|
|
90490
|
+
|
|
90491
|
+
if (userData !== null && userData !== void 0 && (_userData$roles2 = userData.roles) !== null && _userData$roles2 !== void 0 && _userData$roles2.includes("Teacher")) {
|
|
90492
|
+
var _userData$roles3;
|
|
90493
|
+
|
|
90494
|
+
roles.push("Teacher");
|
|
90495
|
+
|
|
90496
|
+
if (userData !== null && userData !== void 0 && (_userData$roles3 = userData.roles) !== null && _userData$roles3 !== void 0 && _userData$roles3.includes("Assistant")) {
|
|
90497
|
+
roles.push("Assistant");
|
|
90498
|
+
}
|
|
90499
|
+
} else if (userData !== null && userData !== void 0 && (_userData$roles4 = userData.roles) !== null && _userData$roles4 !== void 0 && _userData$roles4.includes("Assistant")) {
|
|
90500
|
+
roles.push("Assistant");
|
|
90501
|
+
} else if (userData !== null && userData !== void 0 && (_userData$roles5 = userData.roles) !== null && _userData$roles5 !== void 0 && _userData$roles5.includes("Counselor")) {
|
|
90502
|
+
roles.push("Counselor");
|
|
90503
|
+
} else if (userData !== null && userData !== void 0 && (_userData$roles6 = userData.roles) !== null && _userData$roles6 !== void 0 && _userData$roles6.includes("SecondaryTeacher")) {
|
|
90504
|
+
roles.push("SecondaryTeacher");
|
|
90505
|
+
} else {
|
|
90506
|
+
roles = userData === null || userData === void 0 ? void 0 : userData.roles;
|
|
90507
|
+
}
|
|
90508
|
+
|
|
90509
|
+
localStorage.setItem("ROLES", roles.toString());
|
|
90510
|
+
}
|
|
90511
|
+
} else {
|
|
90512
|
+
roles = [localRoles];
|
|
90513
|
+
}
|
|
90514
|
+
|
|
90515
|
+
var isTeacher = ((_roles = roles) === null || _roles === void 0 ? void 0 : _roles.includes("Teacher")) || ((_roles2 = roles) === null || _roles2 === void 0 ? void 0 : _roles2.includes("Assistant"));
|
|
90516
|
+
var isStudent = roles.includes("Student");
|
|
90517
|
+
var isAssistant = !((_roles3 = roles) !== null && _roles3 !== void 0 && _roles3.includes("Teacher")) && ((_roles4 = roles) === null || _roles4 === void 0 ? void 0 : _roles4.includes("Assistant"));
|
|
90518
|
+
var isTeacherAssistant = ((_roles5 = roles) === null || _roles5 === void 0 ? void 0 : _roles5.includes("Teacher")) && ((_roles6 = roles) === null || _roles6 === void 0 ? void 0 : _roles6.includes("Assistant"));
|
|
90519
|
+
var isCounselor = roles.includes("Counselor");
|
|
90520
|
+
var isSecondaryTeacher = roles.includes("SecondaryTeacher");
|
|
90521
|
+
|
|
90522
|
+
var _temp7 = function () {
|
|
90523
|
+
if (isTeacher || isStudent || isTeacherAssistant || isCounselor || isSecondaryTeacher || isAssistant) {
|
|
90524
|
+
return Promise.resolve(getStudentSimpleProfile()).then(function (profileRes) {
|
|
90525
|
+
var _profileRes$data10;
|
|
90526
|
+
|
|
90527
|
+
if (!isStudent) {
|
|
90528
|
+
var _profileRes$data, _profileRes$data2, _profileRes$data3, _profileRes$data4;
|
|
90529
|
+
|
|
90530
|
+
userData.teacherId = (_profileRes$data = profileRes.data) === null || _profileRes$data === void 0 ? void 0 : _profileRes$data.id;
|
|
90531
|
+
userData.assistantId = (_profileRes$data2 = profileRes.data) === null || _profileRes$data2 === void 0 ? void 0 : _profileRes$data2.assistantId;
|
|
90532
|
+
userData.counselorId = (_profileRes$data3 = profileRes.data) === null || _profileRes$data3 === void 0 ? void 0 : _profileRes$data3.counselorId;
|
|
90533
|
+
userData.secondaryTeacherId = (_profileRes$data4 = profileRes.data) === null || _profileRes$data4 === void 0 ? void 0 : _profileRes$data4.secondaryTeacherId;
|
|
90534
|
+
} else if (isStudent) {
|
|
90535
|
+
var _profileRes$data5, _profileRes$data6, _profileRes$data7, _profileRes$data8, _profileRes$data9;
|
|
90536
|
+
|
|
90537
|
+
userData.studentId = (_profileRes$data5 = profileRes.data) === null || _profileRes$data5 === void 0 ? void 0 : _profileRes$data5.id;
|
|
90538
|
+
userData.mainTeacherId = (_profileRes$data6 = profileRes.data) === null || _profileRes$data6 === void 0 ? void 0 : _profileRes$data6.mainTeacherId;
|
|
90539
|
+
userData.mainTeacherName = (_profileRes$data7 = profileRes.data) === null || _profileRes$data7 === void 0 ? void 0 : _profileRes$data7.mainTeacherName;
|
|
90540
|
+
userData.mainTeacherUserId = (_profileRes$data8 = profileRes.data) === null || _profileRes$data8 === void 0 ? void 0 : _profileRes$data8.mainTeacherUserId;
|
|
90541
|
+
userData.mainTeacherProfileImageFileName = (_profileRes$data9 = profileRes.data) === null || _profileRes$data9 === void 0 ? void 0 : _profileRes$data9.mainTeacherProfileImageFileName;
|
|
90542
|
+
}
|
|
90543
|
+
|
|
90544
|
+
userData.name = (_profileRes$data10 = profileRes.data) === null || _profileRes$data10 === void 0 ? void 0 : _profileRes$data10.name;
|
|
90545
|
+
});
|
|
90546
|
+
}
|
|
90547
|
+
}();
|
|
90548
|
+
|
|
90549
|
+
return _temp7 && _temp7.then ? _temp7.then(_temp8) : _temp8(_temp7);
|
|
90550
|
+
});
|
|
90551
|
+
}, function () {
|
|
90552
|
+
resetAuth();
|
|
90553
|
+
});
|
|
90554
|
+
|
|
90555
|
+
return Promise.resolve(_temp10 && _temp10.then ? _temp10.then(function () {}) : void 0);
|
|
90556
|
+
} catch (e) {
|
|
90557
|
+
return Promise.reject(e);
|
|
90558
|
+
}
|
|
90559
|
+
}, [user]);
|
|
90560
|
+
|
|
90561
|
+
var resetAuth = function resetAuth() {
|
|
90562
|
+
localStorage.removeItem(marioCore.ACCESS_TOKEN);
|
|
90563
|
+
localStorage.removeItem("USER_EMAIL");
|
|
90564
|
+
history.push("/");
|
|
90565
|
+
};
|
|
90566
|
+
|
|
90567
|
+
if (!isCheckDone) {
|
|
90568
|
+
return React__default.createElement(marioCore.Loading, null);
|
|
90569
|
+
}
|
|
90570
|
+
|
|
90571
|
+
if (!user) {
|
|
90572
|
+
return React__default.createElement("div", {
|
|
90573
|
+
className: "font-family-poppins"
|
|
90574
|
+
}, React__default.createElement(marioCore.Loading, null), React__default.createElement(marioCore.Dashboard, null));
|
|
90575
|
+
}
|
|
90576
|
+
|
|
90577
|
+
var path = window.location.pathname;
|
|
90578
|
+
return React__default.createElement("div", {
|
|
90579
|
+
className: "font-family-poppins",
|
|
90580
|
+
style: {
|
|
90581
|
+
overflow: "hidden"
|
|
90582
|
+
}
|
|
90583
|
+
}, !path.includes("notifications") ? React__default.createElement(HeaderSideBar, {
|
|
90584
|
+
navigations: authNavigations,
|
|
90585
|
+
onToggleModel: handleToggleModel
|
|
90586
|
+
}, React__default.createElement("div", {
|
|
90587
|
+
className: "" + style$4["reset-the-content"]
|
|
90588
|
+
}, React__default.createElement("div", {
|
|
90589
|
+
className: "" + style$4["the-container"]
|
|
90590
|
+
}, React__default.createElement(marioCore.TheContent, {
|
|
90591
|
+
routes: authRoutes
|
|
90592
|
+
}), React__default.createElement(Footer, null)))) : React__default.createElement("div", {
|
|
90593
|
+
className: "" + style$4["reset-the-content"]
|
|
90594
|
+
}, React__default.createElement("div", {
|
|
90595
|
+
className: "" + style$4["the-container"]
|
|
90596
|
+
}, React__default.createElement(marioCore.TheContent, {
|
|
90597
|
+
routes: authRoutes
|
|
90598
|
+
}), React__default.createElement(Footer, {
|
|
90599
|
+
isNotification: true
|
|
90600
|
+
}))), React__default.createElement(ModelSelectRole, {
|
|
90601
|
+
open: openModelSelectRole,
|
|
90602
|
+
onToggleModel: handleToggleModel
|
|
90603
|
+
}));
|
|
90604
|
+
};
|
|
90605
|
+
|
|
86468
90606
|
core.LicenseManager.setLicenseKey(marioCore.LICENSE_AGGRID);
|
|
86469
90607
|
|
|
86470
90608
|
exports.AdminTraining = AdminTraining;
|
|
@@ -86485,9 +90623,11 @@ exports.Dashboard = Dashboard;
|
|
|
86485
90623
|
exports.FeedbackList = FeedbackList;
|
|
86486
90624
|
exports.FixDataStudent = FixDataStudent;
|
|
86487
90625
|
exports.GoalExampleList = GoalExampleList;
|
|
90626
|
+
exports.HomePage = HomePage;
|
|
86488
90627
|
exports.LearningStrategyList = LearningStrategyList;
|
|
86489
90628
|
exports.LearningSupportCategoryList = LearningSupportCategoryList;
|
|
86490
90629
|
exports.LoadLanguage = LoadLanguage;
|
|
90630
|
+
exports.MainLayoutAdmin = MainLayoutAdmin;
|
|
86491
90631
|
exports.OneRosterContainer = OneRosterContainer;
|
|
86492
90632
|
exports.PreviewSurveyAdmin = PreviewSurveyAdmin;
|
|
86493
90633
|
exports.QuestionBankContainer = QuestionBankContainer;
|