mario-education 2.4.563-feedback → 2.4.565-feedback
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/hooks/useHeaderSideBar.d.ts +1 -1
- package/dist/index.css +36 -12
- package/dist/index.js +147 -101
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +148 -102
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -87,8 +87,6 @@ var AppBar = _interopDefault(require('@material-ui/core/AppBar'));
|
|
|
87
87
|
var Toolbar = _interopDefault(require('@material-ui/core/Toolbar'));
|
|
88
88
|
var Typography = _interopDefault(require('@material-ui/core/Typography'));
|
|
89
89
|
var IconButton = _interopDefault(require('@material-ui/core/IconButton'));
|
|
90
|
-
var MenuIcon = _interopDefault(require('@material-ui/icons/Menu'));
|
|
91
|
-
var NotificationsIcon = _interopDefault(require('@material-ui/icons/Notifications'));
|
|
92
90
|
var HelpOutlineIcon = _interopDefault(require('@material-ui/icons/HelpOutline'));
|
|
93
91
|
var TrackChangesIcon = _interopDefault(require('@material-ui/icons/TrackChanges'));
|
|
94
92
|
var generativeAi = require('@google/generative-ai');
|
|
@@ -1393,6 +1391,7 @@ var FILTER_NAME;
|
|
|
1393
1391
|
FILTER_NAME["Search"] = "search";
|
|
1394
1392
|
})(FILTER_NAME || (FILTER_NAME = {}));
|
|
1395
1393
|
|
|
1394
|
+
var defaultDate = '0001-01-01T00:00:00';
|
|
1396
1395
|
var SMALL_FONT_DEFAULT = 12;
|
|
1397
1396
|
var LARGE_FONT_DEFAULT = 20;
|
|
1398
1397
|
var studentGrades = ["All Grades", "K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"];
|
|
@@ -30167,6 +30166,7 @@ var defaultFontSize = 16;
|
|
|
30167
30166
|
var defaultFontSmall$1 = 12;
|
|
30168
30167
|
var defaultFontLarge$1 = 20;
|
|
30169
30168
|
var LOGO = "" + marioCore.getStaticFileUrl("/images/logo-white.png");
|
|
30169
|
+
var DEFAULT_USER_AVATAR = "/images/image-default.png";
|
|
30170
30170
|
var SMALL_FONT_DEFAULT$1 = 12;
|
|
30171
30171
|
var LARGE_FONT_DEFAULT$1 = 20;
|
|
30172
30172
|
var SESSION_START_TIME = "sessionStartTime";
|
|
@@ -31197,7 +31197,7 @@ var AutocompleteField = function AutocompleteField(_ref) {
|
|
|
31197
31197
|
}));
|
|
31198
31198
|
};
|
|
31199
31199
|
|
|
31200
|
-
var style$2 = {"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-admin":"_d3gb7","custom-scrollbar":"_12ysw","p-0-12":"_1sfzz","date-range":"_44xZV","date-range-item":"_3bulT","calendar-select":"_3RE3I","calendar-label":"_Ld-at","calendar-options":"_dxUCu","option-item":"_2Z66k","selected":"_2Z_Js","no-selected":"_3YPC1"};
|
|
31200
|
+
var style$2 = {"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","btn-close":"_NhW9l","select-user-role":"_2oGz6","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-admin":"_d3gb7","custom-scrollbar":"_12ysw","p-0-12":"_1sfzz","date-range":"_44xZV","date-range-item":"_3bulT","calendar-select":"_3RE3I","calendar-label":"_Ld-at","calendar-options":"_dxUCu","option-item":"_2Z66k","selected":"_2Z_Js","no-selected":"_3YPC1"};
|
|
31201
31201
|
|
|
31202
31202
|
var FilterDateRange = function FilterDateRange(_ref) {
|
|
31203
31203
|
var endDate = _ref.endDate,
|
|
@@ -32359,7 +32359,7 @@ var convertTime = function convertTime(time) {
|
|
|
32359
32359
|
};
|
|
32360
32360
|
var flagSurveyOptions = ["All", "Red", "Yellow", "Green"];
|
|
32361
32361
|
var DATE_MIN_VALUE = "0001-01-01T00:00:00";
|
|
32362
|
-
var DEFAULT_USER_AVATAR = "/images/image-default.png";
|
|
32362
|
+
var DEFAULT_USER_AVATAR$1 = "/images/image-default.png";
|
|
32363
32363
|
var ratingOfQuestionColors = ["#169490", "#316CD9", "#FFB04F", "#C44140", "#0F9655", "#73C8E5"];
|
|
32364
32364
|
var tooltipLabel = "you_can_only_select_number_kpis_at_a_time_To_select_a_new_one_please_switch_off_one_of_the_previous_ones";
|
|
32365
32365
|
var FLAG_TYPES$1;
|
|
@@ -32611,7 +32611,7 @@ var LastAnswerTable = function LastAnswerTable(_ref) {
|
|
|
32611
32611
|
}, React__default.createElement(core$1.Grid, {
|
|
32612
32612
|
className: "d-flex align-items-center"
|
|
32613
32613
|
}, React__default.createElement("img", {
|
|
32614
|
-
src: !!r.studentProfileImage ? marioCore.getFileUrl(r.studentProfileImage) : DEFAULT_USER_AVATAR,
|
|
32614
|
+
src: !!r.studentProfileImage ? marioCore.getFileUrl(r.studentProfileImage) : DEFAULT_USER_AVATAR$1,
|
|
32615
32615
|
alt: "",
|
|
32616
32616
|
className: "" + styles$4["avatar_user"]
|
|
32617
32617
|
}), r.studentName))), React__default.createElement(core$1.TableCell, {
|
|
@@ -32838,7 +32838,7 @@ var SimpleDialog = function SimpleDialog(_ref) {
|
|
|
32838
32838
|
}, "spacing")));
|
|
32839
32839
|
};
|
|
32840
32840
|
|
|
32841
|
-
var DEFAULT_USER_AVATAR$
|
|
32841
|
+
var DEFAULT_USER_AVATAR$2 = marioCore.getStaticFileUrl("/images/image-default.png");
|
|
32842
32842
|
|
|
32843
32843
|
var StudentsMissingConversationModal = function StudentsMissingConversationModal(_ref) {
|
|
32844
32844
|
var students = _ref.students,
|
|
@@ -32882,7 +32882,7 @@ var StudentsMissingConversationModal = function StudentsMissingConversationModal
|
|
|
32882
32882
|
}, React__default.createElement("div", {
|
|
32883
32883
|
className: styles$3["item__data"] + " " + styles$3["item__not-grade"] + " " + styles$3["item__student-information"]
|
|
32884
32884
|
}, React__default.createElement("img", {
|
|
32885
|
-
src: !!(res !== null && res !== void 0 && res.studentProfileImage) ? marioCore.getFileUrl(res === null || res === void 0 ? void 0 : res.studentProfileImage) : DEFAULT_USER_AVATAR$
|
|
32885
|
+
src: !!(res !== null && res !== void 0 && res.studentProfileImage) ? marioCore.getFileUrl(res === null || res === void 0 ? void 0 : res.studentProfileImage) : DEFAULT_USER_AVATAR$2,
|
|
32886
32886
|
alt: res === null || res === void 0 ? void 0 : res.studentName
|
|
32887
32887
|
}), res === null || res === void 0 ? void 0 : res.studentName), React__default.createElement("div", {
|
|
32888
32888
|
className: styles$3["item__data"] + " " + styles$3["item__grade"],
|
|
@@ -33604,6 +33604,13 @@ var DialogBody = function DialogBody(_ref2) {
|
|
|
33604
33604
|
}), studentFiltered.map(function (r) {
|
|
33605
33605
|
var _r$sessionResults, _r$sessionResults$fin, _r$sessionResults2, _r$sessionResults2$fi;
|
|
33606
33606
|
|
|
33607
|
+
var teacherStartTime = r === null || r === void 0 ? void 0 : (_r$sessionResults = r.sessionResults) === null || _r$sessionResults === void 0 ? void 0 : (_r$sessionResults$fin = _r$sessionResults.find(function (i) {
|
|
33608
|
+
return i.isTeacherResult;
|
|
33609
|
+
})) === null || _r$sessionResults$fin === void 0 ? void 0 : _r$sessionResults$fin.startTime;
|
|
33610
|
+
var studentStartTime = r === null || r === void 0 ? void 0 : (_r$sessionResults2 = r.sessionResults) === null || _r$sessionResults2 === void 0 ? void 0 : (_r$sessionResults2$fi = _r$sessionResults2.find(function (i) {
|
|
33611
|
+
return !i.isTeacherResult;
|
|
33612
|
+
})) === null || _r$sessionResults2$fi === void 0 ? void 0 : _r$sessionResults2$fi.startTime;
|
|
33613
|
+
var startTime = !!studentStartTime && studentStartTime != defaultDate ? studentStartTime : teacherStartTime;
|
|
33607
33614
|
return React__default.createElement("div", {
|
|
33608
33615
|
className: styles$7["model-student-item"] + " d-flex"
|
|
33609
33616
|
}, React__default.createElement("div", {
|
|
@@ -33628,17 +33635,13 @@ var DialogBody = function DialogBody(_ref2) {
|
|
|
33628
33635
|
className: "" + styles$7["student-name"]
|
|
33629
33636
|
}, r.studentName), React__default.createElement("div", null, React__default.createElement(core$1.Typography, {
|
|
33630
33637
|
className: styles$7["tag"] + " text-nowrap"
|
|
33631
|
-
}, tagName))), !!
|
|
33632
|
-
return !i.isTeacherResult;
|
|
33633
|
-
})) !== null && _r$sessionResults$fin !== void 0 && _r$sessionResults$fin.startTime) && React__default.createElement("div", {
|
|
33638
|
+
}, tagName))), !!startTime && React__default.createElement("div", {
|
|
33634
33639
|
className: "d-flex flex-wrap"
|
|
33635
33640
|
}, React__default.createElement(core$1.Typography, {
|
|
33636
33641
|
className: styles$7["time"] + " mr-1"
|
|
33637
33642
|
}, (r.isSessionCheckIn ? t('last_check_in') : t('last_1_1')) + ": "), React__default.createElement("b", {
|
|
33638
33643
|
className: "" + styles$7["time"]
|
|
33639
|
-
}, formatSortDate(
|
|
33640
|
-
return !i.isTeacherResult;
|
|
33641
|
-
})) === null || _r$sessionResults2$fi === void 0 ? void 0 : _r$sessionResults2$fi.startTime) || "")))), !isHiddenAvg && React__default.createElement("div", {
|
|
33644
|
+
}, formatSortDate(startTime || "")))), !isHiddenAvg && React__default.createElement("div", {
|
|
33642
33645
|
className: "d-flex align-items-center py-2"
|
|
33643
33646
|
}, React__default.createElement(ChipImage, {
|
|
33644
33647
|
className: "ml-0",
|
|
@@ -35014,23 +35017,6 @@ var BarChart = function BarChart(_ref) {
|
|
|
35014
35017
|
if (!chartEl) return;
|
|
35015
35018
|
var barEls = chartEl.querySelectorAll(".apexcharts-bar-series path");
|
|
35016
35019
|
if (!barEls.length) return;
|
|
35017
|
-
|
|
35018
|
-
if (selectedBarRef.current === dataPointIndex) {
|
|
35019
|
-
selectedBarRef.current = null;
|
|
35020
|
-
barEls[dataPointIndex].setAttribute("fill", "#C4D4F3");
|
|
35021
|
-
setTooltipData(null);
|
|
35022
|
-
return;
|
|
35023
|
-
}
|
|
35024
|
-
|
|
35025
|
-
if (selectedBarRef.current !== null) {
|
|
35026
|
-
var prevIndex = selectedBarRef.current;
|
|
35027
|
-
var prevBar = barEls[prevIndex];
|
|
35028
|
-
|
|
35029
|
-
if (prevBar) {
|
|
35030
|
-
prevBar.setAttribute("fill", "#C4D4F3");
|
|
35031
|
-
}
|
|
35032
|
-
}
|
|
35033
|
-
|
|
35034
35020
|
var newBar = barEls[dataPointIndex];
|
|
35035
35021
|
|
|
35036
35022
|
if (newBar) {
|
|
@@ -35043,16 +35029,22 @@ var BarChart = function BarChart(_ref) {
|
|
|
35043
35029
|
dataPointMouseEnter: function dataPointMouseEnter(_event, _chartContext, config) {
|
|
35044
35030
|
var dataPointIndex = config === null || config === void 0 ? void 0 : config.dataPointIndex;
|
|
35045
35031
|
var currentTooltip = tooltipDataRef.current;
|
|
35032
|
+
var chartEl = document.querySelector("#apexchartsmy-bar-chart");
|
|
35033
|
+
if (!chartEl) return;
|
|
35034
|
+
var barEls = chartEl.querySelectorAll(".apexcharts-bar-series path");
|
|
35035
|
+
if (!barEls.length) return;
|
|
35046
35036
|
|
|
35047
35037
|
if (dataPointIndex != undefined && dataPointIndex !== (currentTooltip === null || currentTooltip === void 0 ? void 0 : currentTooltip.dataPointIndex) && !(currentTooltip !== null && currentTooltip !== void 0 && currentTooltip.isSelect)) {
|
|
35048
|
-
dataPointIndex
|
|
35049
|
-
|
|
35050
|
-
|
|
35051
|
-
|
|
35052
|
-
|
|
35053
|
-
|
|
35054
|
-
|
|
35055
|
-
|
|
35038
|
+
if (dataPointIndex != -1) {
|
|
35039
|
+
showTooltipAtIndex(dataPointIndex);
|
|
35040
|
+
barEls.forEach(function (bar, i) {
|
|
35041
|
+
if (i === dataPointIndex) {
|
|
35042
|
+
bar.setAttribute("fill", "#316CD9");
|
|
35043
|
+
} else {
|
|
35044
|
+
bar.setAttribute("fill", "#C4D4F3");
|
|
35045
|
+
}
|
|
35046
|
+
});
|
|
35047
|
+
}
|
|
35056
35048
|
}
|
|
35057
35049
|
}
|
|
35058
35050
|
}
|
|
@@ -35149,29 +35141,6 @@ var BarChart = function BarChart(_ref) {
|
|
|
35149
35141
|
React.useEffect(function () {
|
|
35150
35142
|
tooltipDataRef.current = tooltipData;
|
|
35151
35143
|
}, [tooltipData]);
|
|
35152
|
-
React.useEffect(function () {
|
|
35153
|
-
var handleClickOutside = function handleClickOutside(e) {
|
|
35154
|
-
if (open) return;
|
|
35155
|
-
var chartEl = document.querySelector("#apexchartsmy-bar-chart");
|
|
35156
|
-
if (!chartEl) return;
|
|
35157
|
-
|
|
35158
|
-
if (!chartEl.contains(e.target)) {
|
|
35159
|
-
var barEls = chartEl.querySelectorAll(".apexcharts-bar-series path");
|
|
35160
|
-
var selectedIndex = selectedBarRef.current;
|
|
35161
|
-
|
|
35162
|
-
if (selectedIndex !== null && barEls[selectedIndex]) {
|
|
35163
|
-
barEls[selectedIndex].setAttribute("fill", "#C4D4F3");
|
|
35164
|
-
selectedBarRef.current = null;
|
|
35165
|
-
setTooltipData(null);
|
|
35166
|
-
}
|
|
35167
|
-
}
|
|
35168
|
-
};
|
|
35169
|
-
|
|
35170
|
-
document.addEventListener("click", handleClickOutside);
|
|
35171
|
-
return function () {
|
|
35172
|
-
document.removeEventListener("click", handleClickOutside);
|
|
35173
|
-
};
|
|
35174
|
-
}, [open]);
|
|
35175
35144
|
return React__default.createElement("div", null, React__default.createElement("div", {
|
|
35176
35145
|
ref: chartWrapperRef,
|
|
35177
35146
|
style: {
|
|
@@ -53955,7 +53924,7 @@ var ConductSurveyModel = function ConductSurveyModel(_ref) {
|
|
|
53955
53924
|
}, React__default.createElement(core$1.Grid, {
|
|
53956
53925
|
className: "" + styles$9["header-conduct"]
|
|
53957
53926
|
}, React__default.createElement("img", {
|
|
53958
|
-
src: marioCore.getFileUrl((student === null || student === void 0 ? void 0 : student.avatar) || "") || DEFAULT_USER_AVATAR,
|
|
53927
|
+
src: marioCore.getFileUrl((student === null || student === void 0 ? void 0 : student.avatar) || "") || DEFAULT_USER_AVATAR$1,
|
|
53959
53928
|
alt: student === null || student === void 0 ? void 0 : student.studentName,
|
|
53960
53929
|
className: "" + styles$9["avatar_user"]
|
|
53961
53930
|
}), React__default.createElement(core$1.Grid, {
|
|
@@ -54057,7 +54026,7 @@ var ResponseQuestionModel = function ResponseQuestionModel(_ref) {
|
|
|
54057
54026
|
hidden: !!isHiddenContact,
|
|
54058
54027
|
className: "" + styles$9["student-detail"]
|
|
54059
54028
|
}, React__default.createElement("img", {
|
|
54060
|
-
src: marioCore.getFileUrl(r.studentAvatar || "") || DEFAULT_USER_AVATAR,
|
|
54029
|
+
src: marioCore.getFileUrl(r.studentAvatar || "") || DEFAULT_USER_AVATAR$1,
|
|
54061
54030
|
alt: r.studentName,
|
|
54062
54031
|
className: "" + styles$9["avatar_user"]
|
|
54063
54032
|
}), React__default.createElement(core$1.Grid, null, React__default.createElement(core$1.Typography, {
|
|
@@ -54458,7 +54427,7 @@ var BarChartQuestionAnswers = function BarChartQuestionAnswers(_ref) {
|
|
|
54458
54427
|
}, t('number_of_answers')));
|
|
54459
54428
|
};
|
|
54460
54429
|
|
|
54461
|
-
var DEFAULT_USER_AVATAR$
|
|
54430
|
+
var DEFAULT_USER_AVATAR$3 = marioCore.getStaticFileUrl("/images/image-default.png");
|
|
54462
54431
|
|
|
54463
54432
|
var AnswerQuestionInput = function AnswerQuestionInput(_ref) {
|
|
54464
54433
|
var handleClickCollapse = _ref.handleClickCollapse,
|
|
@@ -54540,7 +54509,7 @@ var AnswerQuestionInput = function AnswerQuestionInput(_ref) {
|
|
|
54540
54509
|
}, React__default.createElement("div", {
|
|
54541
54510
|
className: styles$9["answer-head"]
|
|
54542
54511
|
}, React__default.createElement("img", {
|
|
54543
|
-
src: "" + (item.profileImageFileName != null ? marioCore.getFileUrl(item.profileImageFileName) : DEFAULT_USER_AVATAR$
|
|
54512
|
+
src: "" + (item.profileImageFileName != null ? marioCore.getFileUrl(item.profileImageFileName) : DEFAULT_USER_AVATAR$3),
|
|
54544
54513
|
alt: "",
|
|
54545
54514
|
style: {
|
|
54546
54515
|
width: '24px',
|
|
@@ -55315,7 +55284,7 @@ var StudentFlagList = function StudentFlagList(_ref) {
|
|
|
55315
55284
|
align: "left",
|
|
55316
55285
|
className: "" + styles$9["row_name"]
|
|
55317
55286
|
}, React__default.createElement("img", {
|
|
55318
|
-
src: !row.avatar ? DEFAULT_USER_AVATAR : marioCore.getFileUrl(row === null || row === void 0 ? void 0 : row.avatar),
|
|
55287
|
+
src: !row.avatar ? DEFAULT_USER_AVATAR$1 : marioCore.getFileUrl(row === null || row === void 0 ? void 0 : row.avatar),
|
|
55319
55288
|
alt: "",
|
|
55320
55289
|
className: "" + styles$9["avatar_user"]
|
|
55321
55290
|
}), row === null || row === void 0 ? void 0 : row.studentName), React__default.createElement(core$1.TableCell, {
|
|
@@ -55358,7 +55327,7 @@ var StudentFlagList = function StudentFlagList(_ref) {
|
|
|
55358
55327
|
color: "disabled"
|
|
55359
55328
|
}),
|
|
55360
55329
|
statusDetail: t((e === null || e === void 0 ? void 0 : e.status) !== "ActionNeed" ? e === null || e === void 0 ? void 0 : (_e$status = e.status) === null || _e$status === void 0 ? void 0 : (_e$status$toLocaleLow = _e$status.toLocaleLowerCase) === null || _e$status$toLocaleLow === void 0 ? void 0 : _e$status$toLocaleLow.call(_e$status) : "action_need"),
|
|
55361
|
-
avatar: !e.avatar ? DEFAULT_USER_AVATAR : marioCore.getFileUrl(e.avatar)
|
|
55330
|
+
avatar: !e.avatar ? DEFAULT_USER_AVATAR$1 : marioCore.getFileUrl(e.avatar)
|
|
55362
55331
|
});
|
|
55363
55332
|
})), !!listSurveyStudent && listSurveyStudent.items.length > 0 && React__default.createElement(core$1.TablePagination, {
|
|
55364
55333
|
rowsPerPageOptions: [5, 10, 25],
|
|
@@ -68594,7 +68563,7 @@ var TableSelectStudent = function TableSelectStudent(_ref) {
|
|
|
68594
68563
|
return React__default.createElement("div", {
|
|
68595
68564
|
className: "" + styles$9["row_name"]
|
|
68596
68565
|
}, React__default.createElement("img", {
|
|
68597
|
-
src: !params.row.avatar ? DEFAULT_USER_AVATAR : marioCore.getFileUrl(params.row.avatar),
|
|
68566
|
+
src: !params.row.avatar ? DEFAULT_USER_AVATAR$1 : marioCore.getFileUrl(params.row.avatar),
|
|
68598
68567
|
alt: "",
|
|
68599
68568
|
className: "" + styles$9["avatar_user"]
|
|
68600
68569
|
}), params.row.fullName);
|
|
@@ -70022,7 +69991,7 @@ var TableSelectStaff = function TableSelectStaff(_ref) {
|
|
|
70022
69991
|
return React__default.createElement("div", {
|
|
70023
69992
|
className: "" + styles$9["row_name"]
|
|
70024
69993
|
}, React__default.createElement("img", {
|
|
70025
|
-
src: !params.row.avatar ? DEFAULT_USER_AVATAR : marioCore.getFileUrl(params.row.avatar),
|
|
69994
|
+
src: !params.row.avatar ? DEFAULT_USER_AVATAR$1 : marioCore.getFileUrl(params.row.avatar),
|
|
70026
69995
|
alt: "",
|
|
70027
69996
|
className: "" + styles$9["avatar_user"]
|
|
70028
69997
|
}), params.row.fullName);
|
|
@@ -72419,7 +72388,7 @@ var getConvertMinuteToHour$1 = function getConvertMinuteToHour(time, usingText)
|
|
|
72419
72388
|
var timeSecond = time * 60;
|
|
72420
72389
|
var hours = Math.floor(timeSecond / 3600);
|
|
72421
72390
|
var minutes = Math.floor(timeSecond % 3600 / 60);
|
|
72422
|
-
var remainingSeconds = timeSecond % 60;
|
|
72391
|
+
var remainingSeconds = Math.floor(timeSecond % 60);
|
|
72423
72392
|
var formattedHours = String(hours).padStart(2, '0');
|
|
72424
72393
|
var formattedMinutes = String(minutes).padStart(2, '0');
|
|
72425
72394
|
var formattedSeconds = String(remainingSeconds).padStart(2, '0');
|
|
@@ -73740,7 +73709,7 @@ var SimpleDialog$1 = function SimpleDialog(_ref) {
|
|
|
73740
73709
|
}, "spacing")));
|
|
73741
73710
|
};
|
|
73742
73711
|
|
|
73743
|
-
var DEFAULT_USER_AVATAR$
|
|
73712
|
+
var DEFAULT_USER_AVATAR$4 = "/images/image-default.png";
|
|
73744
73713
|
|
|
73745
73714
|
var StudentWellnessCheckInItem = function StudentWellnessCheckInItem(_ref) {
|
|
73746
73715
|
var endTime = _ref.endTime,
|
|
@@ -73773,7 +73742,7 @@ var StudentWellnessCheckInItem = function StudentWellnessCheckInItem(_ref) {
|
|
|
73773
73742
|
className: "d-flex w-100"
|
|
73774
73743
|
}, React__default.createElement(core$1.Avatar, {
|
|
73775
73744
|
alt: name === null || name === void 0 ? void 0 : name.toUpperCase(),
|
|
73776
|
-
src: marioCore.getFileUrl(avatar) || DEFAULT_USER_AVATAR$
|
|
73745
|
+
src: marioCore.getFileUrl(avatar) || DEFAULT_USER_AVATAR$4
|
|
73777
73746
|
}), React__default.createElement("div", {
|
|
73778
73747
|
className: "ml-2 ml-sm-3 d-flex flex-column justify-content-center"
|
|
73779
73748
|
}, React__default.createElement("div", {
|
|
@@ -75694,7 +75663,8 @@ var useHeaderSideBar = function useHeaderSideBar(_navigations) {
|
|
|
75694
75663
|
icon: React__default.createElement(TrackChangesIcon, null)
|
|
75695
75664
|
}];
|
|
75696
75665
|
var renderNotificationBadge = React.useCallback(function () {
|
|
75697
|
-
if (!unreadNoti) return React__default.createElement(
|
|
75666
|
+
if (!unreadNoti) return React__default.createElement("img", {
|
|
75667
|
+
src: "/images/bell-icon.png",
|
|
75698
75668
|
onClick: function onClick() {
|
|
75699
75669
|
return openNotification();
|
|
75700
75670
|
}
|
|
@@ -75705,7 +75675,9 @@ var useHeaderSideBar = function useHeaderSideBar(_navigations) {
|
|
|
75705
75675
|
onClick: function onClick() {
|
|
75706
75676
|
return openNotification();
|
|
75707
75677
|
}
|
|
75708
|
-
}, React__default.createElement(
|
|
75678
|
+
}, React__default.createElement("img", {
|
|
75679
|
+
src: "/images/bell-icon.png"
|
|
75680
|
+
}));
|
|
75709
75681
|
}, [unreadNoti, JSON.stringify(roles)]);
|
|
75710
75682
|
|
|
75711
75683
|
var renderNavigationItem = function renderNavigationItem(navigation, isSubItem) {
|
|
@@ -75856,24 +75828,23 @@ var useStyles$l = styles$h.makeStyles(function (theme) {
|
|
|
75856
75828
|
flexGrow: 1
|
|
75857
75829
|
},
|
|
75858
75830
|
menuItem: {
|
|
75859
|
-
padding:
|
|
75831
|
+
padding: "8px 24px",
|
|
75860
75832
|
"& > button > span > span": {
|
|
75861
75833
|
marginLeft: "0.2rem !important"
|
|
75862
75834
|
}
|
|
75863
75835
|
},
|
|
75836
|
+
menuText: {
|
|
75837
|
+
fontSize: "16px"
|
|
75838
|
+
},
|
|
75864
75839
|
menuButton: (_menuButton = {
|
|
75865
75840
|
marginRight: theme.spacing(2)
|
|
75866
75841
|
}, _menuButton["@media(max-width: 768px)"] = {
|
|
75867
75842
|
marginRight: 0
|
|
75868
75843
|
}, _menuButton),
|
|
75869
75844
|
title: (_title = {
|
|
75870
|
-
flexGrow: 0.
|
|
75845
|
+
flexGrow: 0.1,
|
|
75871
75846
|
"& img": {
|
|
75872
|
-
height: "
|
|
75873
|
-
borderRadius: "16px",
|
|
75874
|
-
boxShadow: "0px 0px 24px 0px rgba(0, 0, 0, 0.16)",
|
|
75875
|
-
padding: "5px 10px",
|
|
75876
|
-
border: "2px solid #FFFFFF"
|
|
75847
|
+
height: "40px"
|
|
75877
75848
|
},
|
|
75878
75849
|
"& img:hover": {
|
|
75879
75850
|
boxShadow: "0px 0px 24px 0px rgba(0, 0, 0, 0.36)"
|
|
@@ -75881,17 +75852,29 @@ var useStyles$l = styles$h.makeStyles(function (theme) {
|
|
|
75881
75852
|
}, _title['@media(min-width: 1440px)'] = {
|
|
75882
75853
|
flexGrow: 0.1
|
|
75883
75854
|
}, _title),
|
|
75855
|
+
avatar: {
|
|
75856
|
+
width: "44px",
|
|
75857
|
+
height: "44px",
|
|
75858
|
+
cursor: "pointer",
|
|
75859
|
+
borderRadius: "50px"
|
|
75860
|
+
},
|
|
75884
75861
|
listItem: (_listItem = {}, _listItem["@media(max-width: 768px)"] = {
|
|
75885
75862
|
padding: 0
|
|
75886
75863
|
}, _listItem),
|
|
75887
75864
|
header: {
|
|
75888
75865
|
zIndex: 1000,
|
|
75889
|
-
background: "#336DDA"
|
|
75866
|
+
background: "#336DDA",
|
|
75867
|
+
borderRadius: "0 0 12px 12px",
|
|
75868
|
+
width: "calc(100vw - 32px)",
|
|
75869
|
+
margin: "0 16px"
|
|
75890
75870
|
},
|
|
75891
75871
|
dropdown: {
|
|
75892
75872
|
zIndex: "1410 !important",
|
|
75893
75873
|
top: "40px !important"
|
|
75894
75874
|
},
|
|
75875
|
+
menuIcon: {
|
|
75876
|
+
marginRight: "8px"
|
|
75877
|
+
},
|
|
75895
75878
|
sectionDesktop: {
|
|
75896
75879
|
display: "flex"
|
|
75897
75880
|
},
|
|
@@ -76016,7 +75999,7 @@ var useStyles$l = styles$h.makeStyles(function (theme) {
|
|
|
76016
75999
|
easing: theme.transitions.easing.sharp,
|
|
76017
76000
|
duration: theme.transitions.duration.leavingScreen
|
|
76018
76001
|
}),
|
|
76019
|
-
marginTop:
|
|
76002
|
+
marginTop: 64,
|
|
76020
76003
|
maxHeight: 'calc(100vh - 120px)',
|
|
76021
76004
|
minHeight: 'calc(100vh - 120px)',
|
|
76022
76005
|
paddingTop: '0 !important',
|
|
@@ -76146,7 +76129,9 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
76146
76129
|
color: "inherit",
|
|
76147
76130
|
"aria-label": "menu",
|
|
76148
76131
|
onClick: toggleSideBar
|
|
76149
|
-
}, isOpenSideBar && screenWidth < 1280 ? React__default.createElement(TimesIcon, null) : React__default.createElement(
|
|
76132
|
+
}, isOpenSideBar && screenWidth < 1280 ? React__default.createElement(TimesIcon, null) : React__default.createElement("img", {
|
|
76133
|
+
src: "/images/burger-menu-icon.png"
|
|
76134
|
+
})), React__default.createElement(Typography, {
|
|
76150
76135
|
variant: "h6",
|
|
76151
76136
|
className: classes.title
|
|
76152
76137
|
}, React__default.createElement(reactRouterDom.Link, {
|
|
@@ -76156,7 +76141,8 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
76156
76141
|
alt: ""
|
|
76157
76142
|
}))), screenWidth > 600 && React__default.createElement("span", {
|
|
76158
76143
|
style: {
|
|
76159
|
-
fontSize: "
|
|
76144
|
+
fontSize: "16px",
|
|
76145
|
+
opacity: 0.8
|
|
76160
76146
|
}
|
|
76161
76147
|
}, t('hi'), ", ", user === null || user === void 0 ? void 0 : user.firstName, " \uD83D\uDC4B"), React__default.createElement("div", {
|
|
76162
76148
|
className: classes.grow
|
|
@@ -76173,15 +76159,25 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
76173
76159
|
}, "A"), React__default.createElement("span", {
|
|
76174
76160
|
className: classes.fontBodySmall
|
|
76175
76161
|
}, "A")), React__default.createElement(IconButton, {
|
|
76176
|
-
"aria-label": "
|
|
76162
|
+
"aria-label": "policy",
|
|
76177
76163
|
color: "inherit",
|
|
76178
|
-
onClick:
|
|
76179
|
-
|
|
76180
|
-
|
|
76164
|
+
onClick: function onClick() {
|
|
76165
|
+
return window.open("/privacy-policy");
|
|
76166
|
+
}
|
|
76167
|
+
}, React__default.createElement("img", {
|
|
76168
|
+
src: "/images/policy-icon.png"
|
|
76169
|
+
})), !isReadOnly && React__default.createElement(IconButton, {
|
|
76181
76170
|
"aria-label": "account of current user",
|
|
76182
76171
|
"aria-haspopup": "true",
|
|
76183
76172
|
color: "inherit"
|
|
76184
|
-
}, renderNotificationBadge())
|
|
76173
|
+
}, renderNotificationBadge()), React__default.createElement(IconButton, {
|
|
76174
|
+
"aria-label": "show 17 new notifications",
|
|
76175
|
+
color: "inherit",
|
|
76176
|
+
onClick: handleMenu
|
|
76177
|
+
}, React__default.createElement("img", {
|
|
76178
|
+
className: classes.avatar,
|
|
76179
|
+
src: !!(user !== null && user !== void 0 && user.profileImageFileName) ? marioCore.getFileUrl(user.profileImageFileName) : DEFAULT_USER_AVATAR
|
|
76180
|
+
}))), React__default.createElement(core$1.Menu, {
|
|
76185
76181
|
id: "menu-font",
|
|
76186
76182
|
className: classes.dropdown,
|
|
76187
76183
|
anchorEl: anchorFontEl,
|
|
@@ -76229,19 +76225,46 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
76229
76225
|
horizontal: "right"
|
|
76230
76226
|
},
|
|
76231
76227
|
open: open,
|
|
76232
|
-
onClose: handleClose
|
|
76228
|
+
onClose: handleClose,
|
|
76229
|
+
PaperProps: {
|
|
76230
|
+
style: {
|
|
76231
|
+
borderRadius: 16,
|
|
76232
|
+
padding: "20px 0"
|
|
76233
|
+
}
|
|
76234
|
+
}
|
|
76233
76235
|
}, screenWidth < 600 && React__default.createElement(core$1.MenuItem, {
|
|
76234
76236
|
className: classes.menuItem
|
|
76235
76237
|
}, React__default.createElement(LanguageDropdown, null)), !isReadOnly && React__default.createElement(core$1.MenuItem, {
|
|
76238
|
+
className: classes.menuItem,
|
|
76236
76239
|
onClick: openProfile
|
|
76237
|
-
},
|
|
76240
|
+
}, React__default.createElement("img", {
|
|
76241
|
+
className: classes.menuIcon,
|
|
76242
|
+
src: "/images/profile-icon.png"
|
|
76243
|
+
}), React__default.createElement(Typography, {
|
|
76244
|
+
className: classes.menuText
|
|
76245
|
+
}, t("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, {
|
|
76246
|
+
className: classes.menuItem,
|
|
76238
76247
|
onClick: function onClick() {
|
|
76239
76248
|
onToggleModel === null || onToggleModel === void 0 ? void 0 : onToggleModel();
|
|
76240
76249
|
handleClose();
|
|
76241
76250
|
}
|
|
76242
|
-
},
|
|
76251
|
+
}, React__default.createElement("img", {
|
|
76252
|
+
className: classes.menuIcon,
|
|
76253
|
+
src: "/images/role-change-icon.png"
|
|
76254
|
+
}), React__default.createElement(Typography, {
|
|
76255
|
+
className: classes.menuText
|
|
76256
|
+
}, t("role_change"))), React__default.createElement(core$1.MenuItem, {
|
|
76257
|
+
style: {
|
|
76258
|
+
borderTop: "1px solid #e9e9e9"
|
|
76259
|
+
},
|
|
76260
|
+
className: classes.menuItem,
|
|
76243
76261
|
onClick: signOut
|
|
76244
|
-
},
|
|
76262
|
+
}, React__default.createElement("img", {
|
|
76263
|
+
className: classes.menuIcon,
|
|
76264
|
+
src: "/images/sign-out-icon.png"
|
|
76265
|
+
}), React__default.createElement(Typography, {
|
|
76266
|
+
className: classes.menuText
|
|
76267
|
+
}, t("log_out")))))), !isReadOnly && React__default.createElement(React__default.Fragment, null, isOpenSideBar && React__default.createElement("div", {
|
|
76245
76268
|
className: classes.positionBox
|
|
76246
76269
|
}, React__default.createElement(core$1.Drawer, {
|
|
76247
76270
|
id: "menu-sidebar",
|
|
@@ -76269,6 +76292,17 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
76269
76292
|
}, children));
|
|
76270
76293
|
};
|
|
76271
76294
|
|
|
76295
|
+
var useStyles$m = core$1.makeStyles(function () {
|
|
76296
|
+
return {
|
|
76297
|
+
paper: {
|
|
76298
|
+
borderRadius: 24,
|
|
76299
|
+
position: "absolute",
|
|
76300
|
+
top: "10%",
|
|
76301
|
+
padding: "40px 48px"
|
|
76302
|
+
}
|
|
76303
|
+
};
|
|
76304
|
+
});
|
|
76305
|
+
|
|
76272
76306
|
var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
76273
76307
|
var _handleUserRole;
|
|
76274
76308
|
|
|
@@ -76280,6 +76314,7 @@ var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
|
76280
76314
|
t = _useTranslation.t;
|
|
76281
76315
|
|
|
76282
76316
|
var history = reactRouterDom.useHistory();
|
|
76317
|
+
var classes = useStyles$m();
|
|
76283
76318
|
var pathname = window.location.pathname;
|
|
76284
76319
|
var user = reactRedux.useSelector(function (state) {
|
|
76285
76320
|
return state.common.user;
|
|
@@ -76311,10 +76346,21 @@ var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
|
76311
76346
|
onClose: function onClose() {
|
|
76312
76347
|
return onToggleModel();
|
|
76313
76348
|
},
|
|
76314
|
-
className: "" + style$2["model-switch-roles"]
|
|
76315
|
-
|
|
76349
|
+
className: "" + style$2["model-switch-roles"],
|
|
76350
|
+
classes: {
|
|
76351
|
+
paper: classes.paper
|
|
76352
|
+
}
|
|
76353
|
+
}, React__default.createElement("button", {
|
|
76354
|
+
type: "button",
|
|
76355
|
+
className: style$2["btn-close"],
|
|
76356
|
+
onClick: function onClick() {
|
|
76357
|
+
return onToggleModel();
|
|
76358
|
+
}
|
|
76359
|
+
}, React__default.createElement(CloseIcon$1, null)), React__default.createElement(core$1.Typography, {
|
|
76316
76360
|
className: "" + style$2["title"]
|
|
76317
|
-
}, t('continue_as')), React__default.createElement("div",
|
|
76361
|
+
}, t('continue_as')), React__default.createElement("div", {
|
|
76362
|
+
className: "" + style$2["select-user-role"]
|
|
76363
|
+
}, (_handleUserRole = handleUserRole(user === null || user === void 0 ? void 0 : user.userRoles)) === null || _handleUserRole === void 0 ? void 0 : _handleUserRole.map(function (r) {
|
|
76318
76364
|
return React__default.createElement("p", {
|
|
76319
76365
|
key: r,
|
|
76320
76366
|
className: style$2["item-select-role"] + " " + style$2[roles.includes("Teacher") && roles.includes("Assistant") && r === "Teacher/Assistant" || roles.includes(r) ? "item-role-active" : ""],
|
|
@@ -76327,7 +76373,7 @@ var ModelSelectRole = function ModelSelectRole(_ref) {
|
|
|
76327
76373
|
|
|
76328
76374
|
var styles$e = {"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_"};
|
|
76329
76375
|
|
|
76330
|
-
var useStyles$
|
|
76376
|
+
var useStyles$n = core$1.makeStyles(function () {
|
|
76331
76377
|
var _root, _fullWidth;
|
|
76332
76378
|
|
|
76333
76379
|
return {
|
|
@@ -76360,7 +76406,7 @@ var Footer = function Footer(_ref) {
|
|
|
76360
76406
|
return (_state$common2 = state.common) === null || _state$common2 === void 0 ? void 0 : _state$common2.user;
|
|
76361
76407
|
});
|
|
76362
76408
|
var isStudent = currentUser.roles.includes("Student");
|
|
76363
|
-
var classes = useStyles$
|
|
76409
|
+
var classes = useStyles$n();
|
|
76364
76410
|
return React__default.createElement(core$1.Grid, {
|
|
76365
76411
|
className: styles$e["privacy-policy"] + " " + (isOpenSideBar && !isNotification ? classes.root : classes.fullWidth)
|
|
76366
76412
|
}, React__default.createElement(core$1.Grid, {
|
|
@@ -78053,7 +78099,7 @@ var SubSurveyQuestions = function SubSurveyQuestions(_ref) {
|
|
|
78053
78099
|
}));
|
|
78054
78100
|
};
|
|
78055
78101
|
|
|
78056
|
-
var useStyles$
|
|
78102
|
+
var useStyles$o = core$1.makeStyles(function () {
|
|
78057
78103
|
return core$1.createStyles({
|
|
78058
78104
|
fullWidth: {
|
|
78059
78105
|
width: "100%"
|
|
@@ -78081,7 +78127,7 @@ var SurveyAnswerList = function SurveyAnswerList(_ref) {
|
|
|
78081
78127
|
var _useTranslation = marioCore.useTranslation(),
|
|
78082
78128
|
t = _useTranslation.t;
|
|
78083
78129
|
|
|
78084
|
-
var classes = useStyles$
|
|
78130
|
+
var classes = useStyles$o();
|
|
78085
78131
|
var isEmotional = type === marioCore.QUESTION_TYPES.EMOTIONAL;
|
|
78086
78132
|
var isSingleChoice = type === marioCore.QUESTION_TYPES.SINGLE_CHOICE;
|
|
78087
78133
|
var hasFlag = questionType && parseInt(questionType) === QUESTION_TYPE_PARAMS.Survey && (type === marioCore.QUESTION_TYPES.EMOTIONAL || type === marioCore.QUESTION_TYPES.SINGLE_CHOICE || type == marioCore.QUESTION_TYPES.DROPDOWN || type === marioCore.QUESTION_TYPES.MULTIPLE_CHOICE);
|