mario-teacher-student-client 2.1.75-beta → 2.1.76-admin
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/containers/ConductOneToOne/constant/constant.d.ts +4 -0
- package/dist/containers/Goals/constants/constants.d.ts +5 -0
- package/dist/containers/LearningStrategies/hook/useAddLearningStrategies.d.ts +2 -8
- package/dist/containers/LearningStrategies/hook/useEditLearningStrategies.d.ts +7 -2
- package/dist/containers/MyStudent/hooks/useDesignation.d.ts +5 -0
- package/dist/containers/MyStudent/hooks/useStudentList.d.ts +1 -0
- package/dist/containers/MyStudent/utils/type.interface.d.ts +4 -0
- package/dist/containers/StrengthsAndChallenges/constants/constants.d.ts +4 -0
- package/dist/index.css +22 -4
- package/dist/index.js +753 -389
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +755 -391
- package/dist/index.modern.js.map +1 -1
- package/dist/services/MyStudent.d.ts +2 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -132,6 +132,90 @@ var TableContainer = _interopDefault(require('@material-ui/core/TableContainer')
|
|
|
132
132
|
var Paper = _interopDefault(require('@material-ui/core/Paper'));
|
|
133
133
|
var Checkbox = _interopDefault(require('@material-ui/core/Checkbox'));
|
|
134
134
|
|
|
135
|
+
function _extends() {
|
|
136
|
+
_extends = Object.assign || function (target) {
|
|
137
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
138
|
+
var source = arguments[i];
|
|
139
|
+
|
|
140
|
+
for (var key in source) {
|
|
141
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
142
|
+
target[key] = source[key];
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return target;
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
return _extends.apply(this, arguments);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function _objectDestructuringEmpty(obj) {
|
|
154
|
+
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
158
|
+
if (source == null) return {};
|
|
159
|
+
var target = {};
|
|
160
|
+
var sourceKeys = Object.keys(source);
|
|
161
|
+
var key, i;
|
|
162
|
+
|
|
163
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
164
|
+
key = sourceKeys[i];
|
|
165
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
166
|
+
target[key] = source[key];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return target;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
173
|
+
if (!raw) {
|
|
174
|
+
raw = strings.slice(0);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
strings.raw = raw;
|
|
178
|
+
return strings;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
182
|
+
if (!o) return;
|
|
183
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
184
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
185
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
186
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
187
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function _arrayLikeToArray(arr, len) {
|
|
191
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
192
|
+
|
|
193
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
194
|
+
|
|
195
|
+
return arr2;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
199
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
200
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
201
|
+
|
|
202
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
203
|
+
if (it) o = it;
|
|
204
|
+
var i = 0;
|
|
205
|
+
return function () {
|
|
206
|
+
if (i >= o.length) return {
|
|
207
|
+
done: true
|
|
208
|
+
};
|
|
209
|
+
return {
|
|
210
|
+
done: false,
|
|
211
|
+
value: o[i++]
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
217
|
+
}
|
|
218
|
+
|
|
135
219
|
// A type of promise-like that resolves synchronously and supports only one observer
|
|
136
220
|
const _Pact = /*#__PURE__*/(function() {
|
|
137
221
|
function _Pact() {}
|
|
@@ -339,7 +423,7 @@ var getStudentSimpleProfile = function getStudentSimpleProfile() {
|
|
|
339
423
|
return marioCore.api.get("" + STUDENT_PROFILE);
|
|
340
424
|
};
|
|
341
425
|
|
|
342
|
-
var styleIndex = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","font-large":"_3Sup6","font-small":"_2JnMg","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","conference-learning-strategories":"_3o_lQ","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","title":"_g-p72","description":"_2U60d","form-title":"_qDlsm","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg","accomondation-content":"_2qhHZ","accomondation-content-title-box":"_XTfSF","accomondation-content-title":"_1Z_hd","accomondation-body":"_1DtTP","accomondation-content-function":"_3fJXr","function-edit":"_368JR","function-delete":"_2I-ej","accomondation-block-content":"_1fpsj","accomondation-block-note":"_2INhO","accomondation-content-description":"_2BEap","accomondation-content-status":"_UdBci","content-function-mobile":"_3gaSR","card-box":"_3Flx1","card-top":"_3Mi_n","card-top-title":"_21QGx","card-top-right":"_2eeiS","card-top-switch":"_9VWFe","card-view":"_Jwjv5","card-content":"_3AVYm","block-circle":"_3o7Sh","block-item-3":"_3JeRP","item-circle":"_2wunA","block-item-4":"_3P83R","icon-btn":"_3xYAk","slider-avatar":"_2wH1X","btn-delete":"_z69mr","send-icon":"_3oH01","label-single-choice":"_3oSdM","radio-choice":"_2RwcR","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","box-notification":"_iDxHF","notification-1":"_2ZvNu","notification-2":"_2zBWP","notification-3":"_1T24i","notification-4":"_2obEM","notification-5":"_20aq-","notification-6":"_RWFl1","box-item":"_Wtc0p","notification-7":"_3rw4Y","notification-assistant-1":"_1ybh1","notification-assistant-2":"_2o31Q","notification-assistant-3":"_11hn9","notification-assistant-4":"_2sPVk","notification-assistant-5":"_3ln0K","notification-assistant-6":"_3dsZQ","notification-student-1":"_1XdPP","notification-student-2":"_1I9Dc","notification-student-3":"_3DwX3","notification-student-4":"_2TKDh","notification-student-5":"_14nq1","notification-student-6":"_1zCX0","btn-got-it":"_uwWqF"};
|
|
426
|
+
var styleIndex = {"reset-the-content":"_1zJw3","header-left":"_11kCD","header-icon":"_dqAoB","header-right":"_1jTMg","box-title-question":"_1DlZO","tooltip-question":"_29Hwk","font-description":"_2pyf5","header-component":"_2oMWx","btn-start":"_1M4r8","timer-start":"_-ZWIZ","btn-timer":"_3SGlg","timer-text":"_1Q--B","btn-conduct-session":"_2K2FJ","btn-conduct-session-disabled":"_3ae8F","box-slider":"_1bTW5","margin-right":"_2T6Ym","slider-text":"_1gs0Z","font-question-name":"_13S5D","font-question":"_t-JhH","font-question-description":"_1YLGi","question-block":"_2gqE-","font-large":"_3Sup6","font-small":"_2JnMg","question-text":"_337MJ","question-slider":"_k_dl-","question-block-mobile":"_p-cUG","emotion-list":"_1M6M1","emotion-item":"_1wmi8","emotion-active":"_3JT39","block-learning-strategories":"_KKK4u","conference-learning-strategories":"_3o_lQ","item-learning-strategories":"_1k7-R","question-today":"_WkaIn","block-button":"_275AS","talk-conduct":"_28jd3","box-talk":"_3zlbc","box-p":"_IXk4X","form-upload":"_1spIR","title":"_g-p72","description":"_2U60d","form-title":"_qDlsm","form-upload-image-box":"_2xZUq","form-upload-image":"_3C-Xm","form-upload-icon":"_2zIn5","form-upload-title":"_yNCgm","form-upload-description":"_35Wqq","header-right-download":"_27SXJ","download-title":"_1EWKg","accomondation-content":"_2qhHZ","accomondation-content-title-box":"_XTfSF","accomondation-content-title":"_1Z_hd","accomondation-body":"_1DtTP","accomondation-content-function":"_3fJXr","function-edit":"_368JR","function-delete":"_2I-ej","accomondation-block-content":"_1fpsj","accomondation-block-note":"_2INhO","accomondation-content-description":"_2BEap","accomondation-content-status":"_UdBci","content-function-mobile":"_3gaSR","card-box":"_3Flx1","card-top":"_3Mi_n","card-top-title":"_21QGx","card-top-right":"_2eeiS","card-top-switch":"_9VWFe","card-view":"_Jwjv5","card-content":"_3AVYm","block-circle":"_3o7Sh","block-item-3":"_3JeRP","item-circle":"_2wunA","block-item-4":"_3P83R","icon-btn":"_3xYAk","slider-avatar":"_2wH1X","btn-delete":"_z69mr","send-icon":"_3oH01","label-single-choice":"_3oSdM","radio-choice":"_2RwcR","canva-item-container":"_1tBto","canva-item":"_3A0Al","title-circle":"_2QAQJ","accommodation-header-right":"_4OB3z","about-header-right":"_t4lD7","text-custom":"_22kUd","page-external":"_1Qrsk","box-notification":"_iDxHF","notification-1":"_2ZvNu","notification-2":"_2zBWP","notification-3":"_1T24i","notification-4":"_2obEM","notification-5":"_20aq-","notification-6":"_RWFl1","box-item":"_Wtc0p","notification-7":"_3rw4Y","notification-assistant-1":"_1ybh1","notification-assistant-2":"_2o31Q","notification-assistant-3":"_11hn9","notification-assistant-4":"_2sPVk","notification-assistant-5":"_3ln0K","notification-assistant-6":"_3dsZQ","notification-student-1":"_1XdPP","notification-student-2":"_1I9Dc","notification-student-3":"_3DwX3","notification-student-4":"_2TKDh","notification-student-5":"_14nq1","notification-student-6":"_1zCX0","btn-got-it":"_uwWqF"};
|
|
343
427
|
|
|
344
428
|
function toVal(mix) {
|
|
345
429
|
var k, y, str='';
|
|
@@ -527,6 +611,8 @@ var NotificationStepLogin = function NotificationStepLogin(_ref) {
|
|
|
527
611
|
}, "Got it")));
|
|
528
612
|
};
|
|
529
613
|
|
|
614
|
+
var domainName = window.location.hostname;
|
|
615
|
+
var isCheckDomainRubyoung = domainName.includes('rubyyoung');
|
|
530
616
|
var LIST_TEACHER_STEP_POPUP = [{
|
|
531
617
|
id: 1,
|
|
532
618
|
title: "My Students",
|
|
@@ -537,7 +623,7 @@ var LIST_TEACHER_STEP_POPUP = [{
|
|
|
537
623
|
message: "See an overview of your scheduled, short 1-to-1 sessions or add a new session."
|
|
538
624
|
}, {
|
|
539
625
|
id: 3,
|
|
540
|
-
title: "My Class Reflections",
|
|
626
|
+
title: isCheckDomainRubyoung ? "My Reflections" : "My Class Reflections",
|
|
541
627
|
message: "Send a reflection or see an overview of your students’ reflections."
|
|
542
628
|
}, {
|
|
543
629
|
id: 4,
|
|
@@ -562,7 +648,7 @@ var LIST_ASSISTANT_STEP_POPUP = [{
|
|
|
562
648
|
message: "See an overview of your scheduled, short 1-to-1 sessions or add a new session."
|
|
563
649
|
}, {
|
|
564
650
|
id: 3,
|
|
565
|
-
title: "My Class Reflections",
|
|
651
|
+
title: isCheckDomainRubyoung ? "My Reflections" : "My Class Reflections",
|
|
566
652
|
message: "Send a reflection or see an overview of your students’ reflections."
|
|
567
653
|
}, {
|
|
568
654
|
id: 4,
|
|
@@ -613,6 +699,8 @@ var defaultFontSize = 16;
|
|
|
613
699
|
var defaultFontSmall = 12;
|
|
614
700
|
var defaultFontLarge = 20;
|
|
615
701
|
var LOGO = "/images/logo.svg";
|
|
702
|
+
var domainName$1 = window.location.hostname;
|
|
703
|
+
var isCheckDomainRubyoung$1 = domainName$1.includes('rubyyoung');
|
|
616
704
|
var ICON_NAV = [{
|
|
617
705
|
name: "Home",
|
|
618
706
|
icon: React__default.createElement(HomeIcon, null)
|
|
@@ -620,13 +708,13 @@ var ICON_NAV = [{
|
|
|
620
708
|
name: "My Students",
|
|
621
709
|
icon: React__default.createElement(StudentsIcon, null)
|
|
622
710
|
}, {
|
|
623
|
-
name: "My Class Reflections",
|
|
711
|
+
name: isCheckDomainRubyoung$1 ? "My Reflections" : "My Class Reflections",
|
|
624
712
|
icon: React__default.createElement(SchoolIcon, null)
|
|
625
713
|
}, {
|
|
626
714
|
name: "My 1-to-1",
|
|
627
715
|
icon: React__default.createElement(GroupIcon, null)
|
|
628
716
|
}, {
|
|
629
|
-
name: "My Class Reflection",
|
|
717
|
+
name: isCheckDomainRubyoung$1 ? "My Reflection" : "My Class Reflection",
|
|
630
718
|
icon: React__default.createElement(CommentIcon, null)
|
|
631
719
|
}, {
|
|
632
720
|
name: "My Conferences",
|
|
@@ -707,6 +795,10 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
707
795
|
return (_state$common5 = state.common) === null || _state$common5 === void 0 ? void 0 : _state$common5.user.isLoginFirst;
|
|
708
796
|
});
|
|
709
797
|
|
|
798
|
+
var _useState = React.useState(new Date()),
|
|
799
|
+
curTime = _useState[0],
|
|
800
|
+
setCurTime = _useState[1];
|
|
801
|
+
|
|
710
802
|
var openNotification = function openNotification() {
|
|
711
803
|
var features = "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, width=1080, height=720, top=100, left=100";
|
|
712
804
|
window.open("/notifications", "NotificationDialog", features);
|
|
@@ -738,8 +830,8 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
738
830
|
var open = Boolean(anchorEl);
|
|
739
831
|
var openFont = Boolean(anchorFontEl);
|
|
740
832
|
|
|
741
|
-
var
|
|
742
|
-
hoverConferences =
|
|
833
|
+
var _useState2 = React.useState(false),
|
|
834
|
+
hoverConferences = _useState2[0];
|
|
743
835
|
|
|
744
836
|
var toggleSideBar = function toggleSideBar() {
|
|
745
837
|
dispatch(marioCore.showMenuBar(!isOpenSideBar));
|
|
@@ -762,11 +854,27 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
762
854
|
setAnchorFontEl(null);
|
|
763
855
|
};
|
|
764
856
|
|
|
857
|
+
React.useEffect(function () {
|
|
858
|
+
setCurTime(new Date());
|
|
859
|
+
}, [location.pathname]);
|
|
765
860
|
var signOut = React.useCallback(function () {
|
|
861
|
+
var newCurTime = new Date();
|
|
862
|
+
var hostName = window.location.hostname;
|
|
863
|
+
marioCore.amplitudeClient.logEvent("general: duration", {
|
|
864
|
+
domain: hostName,
|
|
865
|
+
user_id: user.email,
|
|
866
|
+
duration_since: newCurTime.getTime() - curTime.getTime(),
|
|
867
|
+
last_page: location.pathname.replace("/", "")
|
|
868
|
+
});
|
|
869
|
+
marioCore.amplitudeClient.logEvent("general: session end", {
|
|
870
|
+
user_id: user.email,
|
|
871
|
+
domain: hostName
|
|
872
|
+
});
|
|
873
|
+
marioCore.amplitudeClient.resetSessionId();
|
|
766
874
|
localStorage.removeItem(marioCore.ACCESS_TOKEN);
|
|
767
875
|
dispatch(marioCore.reset());
|
|
768
876
|
history.replace("/");
|
|
769
|
-
}, []);
|
|
877
|
+
}, [curTime]);
|
|
770
878
|
|
|
771
879
|
var getTeacherInformationIEP = function getTeacherInformationIEP() {
|
|
772
880
|
try {
|
|
@@ -785,9 +893,9 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
785
893
|
}
|
|
786
894
|
};
|
|
787
895
|
|
|
788
|
-
var
|
|
789
|
-
unreadNoti =
|
|
790
|
-
setUnreadNoti =
|
|
896
|
+
var _useState3 = React.useState(0),
|
|
897
|
+
unreadNoti = _useState3[0],
|
|
898
|
+
setUnreadNoti = _useState3[1];
|
|
791
899
|
|
|
792
900
|
var getUnreadNoti = React.useCallback(function () {
|
|
793
901
|
try {
|
|
@@ -858,7 +966,7 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
858
966
|
name: "My Students",
|
|
859
967
|
icon: React__default.createElement(StudentsIcon, null)
|
|
860
968
|
}, {
|
|
861
|
-
name: "My Class Reflections",
|
|
969
|
+
name: isCheckDomainRubyoung$1 ? "My Reflections" : "My Class Reflections",
|
|
862
970
|
icon: React__default.createElement(SchoolIcon, null)
|
|
863
971
|
}, {
|
|
864
972
|
name: "My 1-to-1",
|
|
@@ -1083,6 +1191,14 @@ var HeaderSideBar = function HeaderSideBar(_ref) {
|
|
|
1083
1191
|
}));
|
|
1084
1192
|
break;
|
|
1085
1193
|
|
|
1194
|
+
case "/my-class-reflection/to-do":
|
|
1195
|
+
dispatch(marioCore.initAmplitude({
|
|
1196
|
+
name: user.email,
|
|
1197
|
+
event: "class reflections: view page",
|
|
1198
|
+
page: "Class Reflections"
|
|
1199
|
+
}));
|
|
1200
|
+
break;
|
|
1201
|
+
|
|
1086
1202
|
case "/plp":
|
|
1087
1203
|
dispatch(marioCore.initAmplitude({
|
|
1088
1204
|
name: user.email,
|
|
@@ -1308,6 +1424,9 @@ var useStyles = styles$O.makeStyles(function (theme) {
|
|
|
1308
1424
|
};
|
|
1309
1425
|
});
|
|
1310
1426
|
|
|
1427
|
+
var _excluded = ["event", "duration_since"];
|
|
1428
|
+
var DATEDEFAULT = new Date("0001-1-1");
|
|
1429
|
+
|
|
1311
1430
|
var MainLayout = function MainLayout(_ref) {
|
|
1312
1431
|
var routes = _ref.routes,
|
|
1313
1432
|
navigation = _ref.navigation;
|
|
@@ -1315,25 +1434,107 @@ var MainLayout = function MainLayout(_ref) {
|
|
|
1315
1434
|
var user = reactRedux.useSelector(function (state) {
|
|
1316
1435
|
return state.common.user;
|
|
1317
1436
|
});
|
|
1437
|
+
var amplitude = reactRedux.useSelector(function (state) {
|
|
1438
|
+
return state.common.amplitude;
|
|
1439
|
+
});
|
|
1318
1440
|
var isDistrict = window.location.host.includes("-district");
|
|
1319
1441
|
|
|
1320
1442
|
var _useState = React.useState(false),
|
|
1321
1443
|
isCheckDone = _useState[0],
|
|
1322
1444
|
setIsCheckDone = _useState[1];
|
|
1323
1445
|
|
|
1446
|
+
var _useState2 = React.useState(DATEDEFAULT),
|
|
1447
|
+
curTime = _useState2[0],
|
|
1448
|
+
setCurTime = _useState2[1];
|
|
1449
|
+
|
|
1450
|
+
var _useState3 = React.useState(""),
|
|
1451
|
+
pathName = _useState3[0],
|
|
1452
|
+
setPathName = _useState3[1];
|
|
1453
|
+
|
|
1454
|
+
var location = reactRouterDom.useLocation();
|
|
1324
1455
|
var authRoutes = React.useMemo(function () {
|
|
1325
1456
|
return routes.filter(function (route) {
|
|
1326
1457
|
return marioCore.canAccessRoute(user === null || user === void 0 ? void 0 : user.roles, route.roles);
|
|
1327
1458
|
});
|
|
1328
1459
|
}, [user]);
|
|
1329
1460
|
var authNavigations = React.useMemo(function () {
|
|
1330
|
-
!!user && marioCore.amplitudeCallInit(user === null || user === void 0 ? void 0 : user.email);
|
|
1331
1461
|
return navigation.filter(function (nav) {
|
|
1332
1462
|
return marioCore.canAccessRoute(user === null || user === void 0 ? void 0 : user.roles, nav.roles);
|
|
1333
1463
|
}).filter(function (nav) {
|
|
1334
1464
|
return !!nav.isDistrict === isDistrict;
|
|
1335
1465
|
});
|
|
1336
1466
|
}, [user]);
|
|
1467
|
+
|
|
1468
|
+
var handleLogEvent = function handleLogEvent() {
|
|
1469
|
+
var event = amplitude.event,
|
|
1470
|
+
duration_since = amplitude.duration_since,
|
|
1471
|
+
other = _objectWithoutPropertiesLoose(amplitude, _excluded);
|
|
1472
|
+
|
|
1473
|
+
if (event === "general: duration") {
|
|
1474
|
+
marioCore.amplitudeClient.logEvent(event, _extends({
|
|
1475
|
+
duration_since: duration_since
|
|
1476
|
+
}, other));
|
|
1477
|
+
return;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
marioCore.amplitudeClient.logEvent(event, _extends({}, other));
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
React.useEffect(function () {
|
|
1484
|
+
if (amplitude !== null && amplitude !== void 0 && amplitude.event) {
|
|
1485
|
+
handleLogEvent();
|
|
1486
|
+
}
|
|
1487
|
+
}, [amplitude === null || amplitude === void 0 ? void 0 : amplitude.event, amplitude === null || amplitude === void 0 ? void 0 : amplitude.last_page]);
|
|
1488
|
+
React.useEffect(function () {
|
|
1489
|
+
if (!!user) {
|
|
1490
|
+
marioCore.amplitudeClient.init(marioCore.INIT_AMPLITUDE_KEY, user.email, {
|
|
1491
|
+
includeReferrer: false,
|
|
1492
|
+
includeUtm: false
|
|
1493
|
+
}, function () {
|
|
1494
|
+
marioCore.amplitudeClient.onNewSessionStart(function (client) {
|
|
1495
|
+
var hostName = window.location.hostname;
|
|
1496
|
+
client.logEvent("general: session start", {
|
|
1497
|
+
user_id: user.email,
|
|
1498
|
+
domain: hostName
|
|
1499
|
+
});
|
|
1500
|
+
});
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
}, [user === null || user === void 0 ? void 0 : user.id]);
|
|
1504
|
+
|
|
1505
|
+
var onUnload = function onUnload(e) {
|
|
1506
|
+
e.preventDefault();
|
|
1507
|
+
var newCurTime = new Date();
|
|
1508
|
+
var hostName = window.location.hostname;
|
|
1509
|
+
marioCore.amplitudeClient.logEvent("general: duration", {
|
|
1510
|
+
domain: hostName,
|
|
1511
|
+
user_id: user.email,
|
|
1512
|
+
duration_since: newCurTime.getTime() - curTime.getTime(),
|
|
1513
|
+
last_page: location.pathname.replace("/", "")
|
|
1514
|
+
});
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
React.useEffect(function () {
|
|
1518
|
+
window.addEventListener("beforeunload", onUnload);
|
|
1519
|
+
return function () {
|
|
1520
|
+
window.removeEventListener("beforeunload", onUnload);
|
|
1521
|
+
};
|
|
1522
|
+
}, [location.pathname]);
|
|
1523
|
+
React.useEffect(function () {
|
|
1524
|
+
var newCurTime = new Date();
|
|
1525
|
+
|
|
1526
|
+
if (curTime != DATEDEFAULT && !!user) {
|
|
1527
|
+
dispatch(marioCore.initAmplitude({
|
|
1528
|
+
name: user.email,
|
|
1529
|
+
event: "general: duration",
|
|
1530
|
+
duration_since: newCurTime.getTime() - curTime.getTime(),
|
|
1531
|
+
last_page: pathName.replace("/", "")
|
|
1532
|
+
}));
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
setPathName(location.pathname);
|
|
1536
|
+
setCurTime(newCurTime);
|
|
1537
|
+
}, [location.pathname]);
|
|
1337
1538
|
React.useEffect(function () {
|
|
1338
1539
|
checkAuthentication();
|
|
1339
1540
|
}, []);
|
|
@@ -1441,7 +1642,7 @@ var MainLayout = function MainLayout(_ref) {
|
|
|
1441
1642
|
return React__default.createElement("div", {
|
|
1442
1643
|
className: "font-family-lato",
|
|
1443
1644
|
style: {
|
|
1444
|
-
overflow:
|
|
1645
|
+
overflow: "hidden"
|
|
1445
1646
|
}
|
|
1446
1647
|
}, path !== "/notifications" ? React__default.createElement(HeaderSideBar, {
|
|
1447
1648
|
navigations: authNavigations
|
|
@@ -1627,90 +1828,6 @@ var TodaySchedule = function TodaySchedule(_ref) {
|
|
|
1627
1828
|
}) : null, isLoading && React__default.createElement(Loading, null));
|
|
1628
1829
|
};
|
|
1629
1830
|
|
|
1630
|
-
function _extends() {
|
|
1631
|
-
_extends = Object.assign || function (target) {
|
|
1632
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1633
|
-
var source = arguments[i];
|
|
1634
|
-
|
|
1635
|
-
for (var key in source) {
|
|
1636
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
1637
|
-
target[key] = source[key];
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
return target;
|
|
1643
|
-
};
|
|
1644
|
-
|
|
1645
|
-
return _extends.apply(this, arguments);
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
function _objectDestructuringEmpty(obj) {
|
|
1649
|
-
if (obj == null) throw new TypeError("Cannot destructure undefined");
|
|
1650
|
-
}
|
|
1651
|
-
|
|
1652
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
1653
|
-
if (source == null) return {};
|
|
1654
|
-
var target = {};
|
|
1655
|
-
var sourceKeys = Object.keys(source);
|
|
1656
|
-
var key, i;
|
|
1657
|
-
|
|
1658
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
1659
|
-
key = sourceKeys[i];
|
|
1660
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
1661
|
-
target[key] = source[key];
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
return target;
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
1668
|
-
if (!raw) {
|
|
1669
|
-
raw = strings.slice(0);
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
strings.raw = raw;
|
|
1673
|
-
return strings;
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
1677
|
-
if (!o) return;
|
|
1678
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
1679
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
1680
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
1681
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
1682
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
function _arrayLikeToArray(arr, len) {
|
|
1686
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
1687
|
-
|
|
1688
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
1689
|
-
|
|
1690
|
-
return arr2;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
1694
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
1695
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
1696
|
-
|
|
1697
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
1698
|
-
if (it) o = it;
|
|
1699
|
-
var i = 0;
|
|
1700
|
-
return function () {
|
|
1701
|
-
if (i >= o.length) return {
|
|
1702
|
-
done: true
|
|
1703
|
-
};
|
|
1704
|
-
return {
|
|
1705
|
-
done: false,
|
|
1706
|
-
value: o[i++]
|
|
1707
|
-
};
|
|
1708
|
-
};
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
1831
|
var _templateObject;
|
|
1715
1832
|
var StyleWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteralLoose(["\n .fc-col-header {\n width: 100% !important;\n }\n .fc-daygrid-body, .fc-scrollgrid-sync-table {\n width: 100% !important;\n }\n .fc-toolbar-title, \n .fc-col-header-cell-cushion, \n .fc-event-title, \n .fc-daygrid-day-number, \n .fc-daygrid-more-link {\n font-family: 'Open Sans', sans-serif !important;\n }\n"])));
|
|
1716
1833
|
|
|
@@ -2082,9 +2199,9 @@ var InputComponent = function InputComponent(_ref) {
|
|
|
2082
2199
|
}, isAddIcon && React__default.createElement(AddCircleIcon, {
|
|
2083
2200
|
className: styleIndex["icon-btn"],
|
|
2084
2201
|
onClick: function onClick() {
|
|
2085
|
-
!!handleAddItem && valueText !== "" && !disabled && handleAddItem();
|
|
2202
|
+
!!handleAddItem && (valueText === null || valueText === void 0 ? void 0 : valueText.trim()) !== "" && !disabled && handleAddItem();
|
|
2086
2203
|
},
|
|
2087
|
-
color: valueText ? "primary" : "disabled"
|
|
2204
|
+
color: valueText !== null && valueText !== void 0 && valueText.trim() ? "primary" : "disabled"
|
|
2088
2205
|
}))
|
|
2089
2206
|
}
|
|
2090
2207
|
})))));
|
|
@@ -3758,6 +3875,7 @@ var UPLOAD_FILE_URL = marioCore.BASE_URL + "/api/file";
|
|
|
3758
3875
|
var GENERAL_EDUCATION_TEACHER = marioCore.BASE_URL + "/api/generalEducationTeacher";
|
|
3759
3876
|
var CHECK_EMAIL = marioCore.BASE_URL + "/api/Teacher/current/student/check-email";
|
|
3760
3877
|
var NOTE_URL = marioCore.BASE_URL + "/api/myNote";
|
|
3878
|
+
var DESIGNATION_URL = marioCore.BASE_URL + "/api/designation";
|
|
3761
3879
|
var uploadFileIEPVersion = function uploadFileIEPVersion(studentId, formData) {
|
|
3762
3880
|
return marioCore.api.post(UPLOAD_FILE_URL + "/system/iep-version-old?studentId=" + studentId, formData);
|
|
3763
3881
|
};
|
|
@@ -3922,6 +4040,12 @@ var getNoteByStudentId = function getNoteByStudentId(studentId) {
|
|
|
3922
4040
|
}
|
|
3923
4041
|
});
|
|
3924
4042
|
};
|
|
4043
|
+
var getAllDesginations = function getAllDesginations() {
|
|
4044
|
+
return marioCore.api.get(DESIGNATION_URL + "/all");
|
|
4045
|
+
};
|
|
4046
|
+
var downloadTemplateFile = function downloadTemplateFile() {
|
|
4047
|
+
return marioCore.api.get(TEACHER_URL$1 + "/download-template-file");
|
|
4048
|
+
};
|
|
3925
4049
|
|
|
3926
4050
|
var useChangeRoteQuestion = function useChangeRoteQuestion() {
|
|
3927
4051
|
var dispatch = reactRedux.useDispatch();
|
|
@@ -3977,7 +4101,7 @@ var useChangeRoteQuestion = function useChangeRoteQuestion() {
|
|
|
3977
4101
|
};
|
|
3978
4102
|
};
|
|
3979
4103
|
|
|
3980
|
-
var _excluded = ["children", "value", "index"];
|
|
4104
|
+
var _excluded$1 = ["children", "value", "index"];
|
|
3981
4105
|
var SimpleDialog = function SimpleDialog(props) {
|
|
3982
4106
|
var onClose = props.onClose,
|
|
3983
4107
|
selectedValue = props.selectedValue,
|
|
@@ -4005,7 +4129,7 @@ var TabPanel = function TabPanel(props) {
|
|
|
4005
4129
|
var children = props.children,
|
|
4006
4130
|
value = props.value,
|
|
4007
4131
|
index = props.index,
|
|
4008
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
4132
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$1);
|
|
4009
4133
|
|
|
4010
4134
|
return React__default.createElement("div", Object.assign({
|
|
4011
4135
|
role: "tabpanel",
|
|
@@ -6218,7 +6342,7 @@ var caculateHeaderFont$1 = function caculateHeaderFont(defaultFont) {
|
|
|
6218
6342
|
return 24;
|
|
6219
6343
|
};
|
|
6220
6344
|
|
|
6221
|
-
var _excluded$
|
|
6345
|
+
var _excluded$2 = ["children", "value", "index"];
|
|
6222
6346
|
var SimpleDialog$1 = function SimpleDialog(props) {
|
|
6223
6347
|
var onClose = props.onClose,
|
|
6224
6348
|
selectedValue = props.selectedValue,
|
|
@@ -6246,7 +6370,7 @@ var TabPanel$1 = function TabPanel(props) {
|
|
|
6246
6370
|
var children = props.children,
|
|
6247
6371
|
value = props.value,
|
|
6248
6372
|
index = props.index,
|
|
6249
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6373
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
6250
6374
|
|
|
6251
6375
|
return React__default.createElement("div", Object.assign({
|
|
6252
6376
|
role: "tabpanel",
|
|
@@ -8536,6 +8660,69 @@ var SingleChoiceComponent = function SingleChoiceComponent(_ref) {
|
|
|
8536
8660
|
})));
|
|
8537
8661
|
};
|
|
8538
8662
|
|
|
8663
|
+
var describeQuestion = [{
|
|
8664
|
+
key: "<p>Well-being</p>",
|
|
8665
|
+
value: "Well-being is feeling good mentally (in your head) and physically (in your body). Do you have habits and routines that help you look after yourself? Some people boost their well-being by eating healthily, being active, spending time with friends and family, doing things they enjoy, or helping others. "
|
|
8666
|
+
}, {
|
|
8667
|
+
key: "<p>Growth</p>",
|
|
8668
|
+
value: "Growth is all about becoming the best version of yourself. This is done through learning, trying new things, working hard, and taking risks. Are you happy with the progress you are making towards your goals and in other areas of your life? "
|
|
8669
|
+
}, {
|
|
8670
|
+
key: "<p>Relationships</p>",
|
|
8671
|
+
value: "Relationships are connections with other people. Good relationships have trust, respect, honesty, and safety. How are you getting on with family, friends, and teachers? Do you have relationships that bring you happiness and people you can talk to?"
|
|
8672
|
+
}, {
|
|
8673
|
+
key: "<p>Productivity</p>",
|
|
8674
|
+
value: "Productivity is about getting things done in a way that is smarter, not harder. This means you know what needs to be done and how you're going to do it. While doing your work today, were you able to help yourself stay focused and finish the task?"
|
|
8675
|
+
}, {
|
|
8676
|
+
key: "<p>Academics</p>",
|
|
8677
|
+
value: "Academics relate to your learning, through work you do at school and home. Are you doing your classwork and homework every day? Do your grades show your teachers, parents, and even yourself how hard you are working to learn? "
|
|
8678
|
+
}, {
|
|
8679
|
+
key: "<p>Self-efficacy</p>",
|
|
8680
|
+
value: "Self-efficacy is when you believe in yourself and that you can do something well. Are you happy with something you have done well today? Do you think you can be successful in what you have to do today? "
|
|
8681
|
+
}, {
|
|
8682
|
+
key: "<p>Focus</p>",
|
|
8683
|
+
value: "Focus is when you pay attention to a task or a person and don't get distracted. If you're trying to focus on your teacher, then you are only thinking about what the teacher is saying. Have you been able to stay on task today? Can you clear your mind to do your work? "
|
|
8684
|
+
}, {
|
|
8685
|
+
key: "<p>Happiness</p>",
|
|
8686
|
+
value: "Happiness is a good feeling that can come from anything you enjoy or from generally being satisfied with the way your life is going. While it's not possible to be happy all the time, you can always find something to be happy about. Has there been a moment that made you smile today? What things/people/activities bring you joy and make you feel good?"
|
|
8687
|
+
}, {
|
|
8688
|
+
key: "<p>Safety</p>",
|
|
8689
|
+
value: "When you feel safe, you are not scared or in danger. It means you are comfortable and happy at home, at school, and wherever your normal activities take you. Are you able to be yourself? Do you feel like people care about you and that your thoughts and feelings matter? "
|
|
8690
|
+
}, {
|
|
8691
|
+
key: "<p>Stress</p>",
|
|
8692
|
+
value: "Stress is a feeling people get when they are worried, scared, or don't know what to do. You may feel powerless or like you have too many things to manage when you are stressed. Are you feeling overwhelmed or worried? How do you feel about your stress level at the moment? "
|
|
8693
|
+
}, {
|
|
8694
|
+
key: "<p>Are you Ready to Learn?</p>",
|
|
8695
|
+
value: "After looking at your answers today, are you ready to do what's asked of you in class or do you need help to get in a good place to learn? Being ready to learn means your mind and body are working together to prepare you to learn new things and deepen your understanding of the learning already covered."
|
|
8696
|
+
}, {
|
|
8697
|
+
key: "<p>How much did you learn from this session?</p>",
|
|
8698
|
+
value: "How helpful was our conversation today?"
|
|
8699
|
+
}, {
|
|
8700
|
+
key: "<p>What is your level of pride in yourself today?</p>",
|
|
8701
|
+
value: "Being proud of yourself is when you feel good about something you did or who you are as a person. How satisfied or happy are you about your actions today? "
|
|
8702
|
+
}, {
|
|
8703
|
+
key: "<p>What is the most important thing you learned from this session?</p>",
|
|
8704
|
+
value: "What is the one thing you are going to keep doing well or start doing differently? OR What is one thing you learned about yourself, others, or the world around you?"
|
|
8705
|
+
}, {
|
|
8706
|
+
key: "<p>Energy</p>",
|
|
8707
|
+
value: "Energy provides the strength and power to do something. This can be something physical, like running a race, or mental, like taking an assessment. Do you feel like you have enough energy to get through the day? How do you feel about your energy levels at the moment? "
|
|
8708
|
+
}];
|
|
8709
|
+
|
|
8710
|
+
var theme = core.createTheme({
|
|
8711
|
+
overrides: {
|
|
8712
|
+
MuiTooltip: {
|
|
8713
|
+
tooltip: {
|
|
8714
|
+
fontSize: "14px",
|
|
8715
|
+
color: "#FFFFFF",
|
|
8716
|
+
backgroundColor: "#156DA1",
|
|
8717
|
+
padding: "10px 15px"
|
|
8718
|
+
},
|
|
8719
|
+
arrow: {
|
|
8720
|
+
color: "#156DA1"
|
|
8721
|
+
}
|
|
8722
|
+
}
|
|
8723
|
+
}
|
|
8724
|
+
});
|
|
8725
|
+
|
|
8539
8726
|
var QuestionComponent = function QuestionComponent(_ref) {
|
|
8540
8727
|
var questionItemName = _ref.questionItemName,
|
|
8541
8728
|
minText = _ref.minText,
|
|
@@ -8625,16 +8812,37 @@ var QuestionComponent = function QuestionComponent(_ref) {
|
|
|
8625
8812
|
}
|
|
8626
8813
|
};
|
|
8627
8814
|
|
|
8815
|
+
var handleRenderDescribe = function handleRenderDescribe(key) {
|
|
8816
|
+
var _describeQuestion$fin;
|
|
8817
|
+
|
|
8818
|
+
return ((_describeQuestion$fin = describeQuestion.find(function (r) {
|
|
8819
|
+
return r.key === key;
|
|
8820
|
+
})) === null || _describeQuestion$fin === void 0 ? void 0 : _describeQuestion$fin.value) || null;
|
|
8821
|
+
};
|
|
8822
|
+
|
|
8628
8823
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
8824
|
+
var dangerouslySetInnerHTML = (questionItemName === null || questionItemName === void 0 ? void 0 : questionItemName.split("\n")) || [];
|
|
8629
8825
|
return screenWidth > 600 ? React__default.createElement("div", {
|
|
8630
8826
|
className: styleIndex["question-block"] + " " + styleIndex[classFontSize]
|
|
8631
8827
|
}, React__default.createElement("div", {
|
|
8632
8828
|
className: styleIndex["question-text"]
|
|
8633
|
-
},
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8829
|
+
}, dangerouslySetInnerHTML.map(function (r, index) {
|
|
8830
|
+
return React__default.createElement("div", {
|
|
8831
|
+
className: "" + styleIndex["box-title-question"]
|
|
8832
|
+
}, React__default.createElement("div", {
|
|
8833
|
+
className: "" + (index > 0 ? styleIndex["font-description"] : styleIndex["font-question"]),
|
|
8834
|
+
dangerouslySetInnerHTML: {
|
|
8835
|
+
__html: r
|
|
8836
|
+
}
|
|
8837
|
+
}), !!handleRenderDescribe(r) && React__default.createElement(core.MuiThemeProvider, {
|
|
8838
|
+
theme: theme
|
|
8839
|
+
}, React__default.createElement(core.Tooltip, {
|
|
8840
|
+
arrow: true,
|
|
8841
|
+
title: handleRenderDescribe(r) || "",
|
|
8842
|
+
className: "" + styleIndex["tooltip-question"]
|
|
8843
|
+
}, React__default.createElement("i", {
|
|
8844
|
+
className: "fal fa-info-circle"
|
|
8845
|
+
}))));
|
|
8638
8846
|
})), React__default.createElement("div", {
|
|
8639
8847
|
className: styleIndex["question-slider"]
|
|
8640
8848
|
}, renderQuestion(questionTypeId))) : React__default.createElement("div", {
|
|
@@ -9678,7 +9886,7 @@ var useProfileDialog = function useProfileDialog() {
|
|
|
9678
9886
|
};
|
|
9679
9887
|
};
|
|
9680
9888
|
|
|
9681
|
-
var _excluded$
|
|
9889
|
+
var _excluded$3 = ["children", "value", "index"];
|
|
9682
9890
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
9683
9891
|
var DEFAULT_USER_AVATAR$4 = "/images/image-default.png";
|
|
9684
9892
|
var useStyles$6 = styles$O.makeStyles(function () {
|
|
@@ -9775,7 +9983,7 @@ var TabPanel$2 = function TabPanel(props) {
|
|
|
9775
9983
|
var children = props.children,
|
|
9776
9984
|
value = props.value,
|
|
9777
9985
|
index = props.index,
|
|
9778
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9986
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
9779
9987
|
|
|
9780
9988
|
return React__default.createElement("div", Object.assign({
|
|
9781
9989
|
role: "tabpanel",
|
|
@@ -13377,7 +13585,9 @@ var BookSession = function BookSession() {
|
|
|
13377
13585
|
setCheckCreateSession(true);
|
|
13378
13586
|
if (isTeacher && !studentId || studentId === -1) throw new Error("Please provider a valid student");
|
|
13379
13587
|
if (!checkTimePast) throw new Error("Invalid time");
|
|
13380
|
-
return Promise.resolve(createSession(
|
|
13588
|
+
return Promise.resolve(createSession(_extends({}, data, {
|
|
13589
|
+
studentId: studentId
|
|
13590
|
+
}))).then(function () {
|
|
13381
13591
|
dispatch(marioCore.setAlert({
|
|
13382
13592
|
type: "success",
|
|
13383
13593
|
message: "Session booked successfully"
|
|
@@ -15845,7 +16055,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
15845
16055
|
_setPrototypeOf(subClass, superClass);
|
|
15846
16056
|
}
|
|
15847
16057
|
|
|
15848
|
-
var _excluded$
|
|
16058
|
+
var _excluded$4 = ["className", "cssModule", "size", "bordered", "borderless", "striped", "dark", "hover", "responsive", "tag", "responsiveTag", "innerRef"];
|
|
15849
16059
|
var propTypes$1 = {
|
|
15850
16060
|
className: propTypes.string,
|
|
15851
16061
|
cssModule: propTypes.object,
|
|
@@ -15878,7 +16088,7 @@ var Table = function Table(props) {
|
|
|
15878
16088
|
Tag = props.tag,
|
|
15879
16089
|
ResponsiveTag = props.responsiveTag,
|
|
15880
16090
|
innerRef = props.innerRef,
|
|
15881
|
-
attributes = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
16091
|
+
attributes = _objectWithoutPropertiesLoose$1(props, _excluded$4);
|
|
15882
16092
|
|
|
15883
16093
|
var classes = mapToCssModules(classnames(className, 'table', size ? 'table-' + size : false, bordered ? 'table-bordered' : false, borderless ? 'table-borderless' : false, striped ? 'table-striped' : false, dark ? 'table-dark' : false, hover ? 'table-hover' : false), cssModule);
|
|
15884
16094
|
var table = /*#__PURE__*/React__default.createElement(Tag, _extends$1({}, attributes, {
|
|
@@ -15899,7 +16109,7 @@ var Table = function Table(props) {
|
|
|
15899
16109
|
Table.propTypes = propTypes$1;
|
|
15900
16110
|
Table.defaultProps = defaultProps;
|
|
15901
16111
|
|
|
15902
|
-
var _excluded$
|
|
16112
|
+
var _excluded$5 = ["className", "cssModule", "type", "bsSize", "valid", "invalid", "tag", "addon", "plaintext", "innerRef"];
|
|
15903
16113
|
var propTypes$2 = {
|
|
15904
16114
|
children: propTypes.node,
|
|
15905
16115
|
type: propTypes.string,
|
|
@@ -15958,7 +16168,7 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
15958
16168
|
addon = _this$props.addon,
|
|
15959
16169
|
plaintext = _this$props.plaintext,
|
|
15960
16170
|
innerRef = _this$props.innerRef,
|
|
15961
|
-
attributes = _objectWithoutPropertiesLoose$1(_this$props, _excluded$
|
|
16171
|
+
attributes = _objectWithoutPropertiesLoose$1(_this$props, _excluded$5);
|
|
15962
16172
|
|
|
15963
16173
|
var checkInput = ['radio', 'checkbox'].indexOf(type) > -1;
|
|
15964
16174
|
var isNotaNumber = new RegExp('\\D', 'g');
|
|
@@ -16014,7 +16224,7 @@ var Input = /*#__PURE__*/function (_React$Component) {
|
|
|
16014
16224
|
Input.propTypes = propTypes$2;
|
|
16015
16225
|
Input.defaultProps = defaultProps$1;
|
|
16016
16226
|
|
|
16017
|
-
var _excluded$
|
|
16227
|
+
var _excluded$6 = ["className", "cssModule", "hidden", "widths", "tag", "check", "size", "for"];
|
|
16018
16228
|
var colWidths = ['xs', 'sm', 'md', 'lg', 'xl'];
|
|
16019
16229
|
var stringOrNumberProp = propTypes.oneOfType([propTypes.number, propTypes.string]);
|
|
16020
16230
|
var columnProps = propTypes.oneOfType([propTypes.bool, propTypes.string, propTypes.number, propTypes.shape({
|
|
@@ -16062,7 +16272,7 @@ var Label = function Label(props) {
|
|
|
16062
16272
|
check = props.check,
|
|
16063
16273
|
size = props.size,
|
|
16064
16274
|
htmlFor = props.for,
|
|
16065
|
-
attributes = _objectWithoutPropertiesLoose$1(props, _excluded$
|
|
16275
|
+
attributes = _objectWithoutPropertiesLoose$1(props, _excluded$6);
|
|
16066
16276
|
|
|
16067
16277
|
var colClasses = [];
|
|
16068
16278
|
widths.forEach(function (colWidth, i) {
|
|
@@ -16353,6 +16563,42 @@ var useStudentList$1 = function useStudentList() {
|
|
|
16353
16563
|
return hTime;
|
|
16354
16564
|
};
|
|
16355
16565
|
|
|
16566
|
+
var downloadTemplate = function downloadTemplate() {
|
|
16567
|
+
try {
|
|
16568
|
+
var _temp15 = function _temp15() {
|
|
16569
|
+
dispatch(marioCore.setLoading(false));
|
|
16570
|
+
};
|
|
16571
|
+
|
|
16572
|
+
dispatch(marioCore.setLoading(true));
|
|
16573
|
+
|
|
16574
|
+
var _temp16 = _catch(function () {
|
|
16575
|
+
return Promise.resolve(downloadTemplateFile()).then(function (res) {
|
|
16576
|
+
var data = new Blob([res.data.content], {
|
|
16577
|
+
type: 'text/csv'
|
|
16578
|
+
});
|
|
16579
|
+
var fileURL = window.URL.createObjectURL(data);
|
|
16580
|
+
var a = document.createElement("a");
|
|
16581
|
+
a.href = fileURL;
|
|
16582
|
+
a.setAttribute("download", res.data.nameFile);
|
|
16583
|
+
a.click();
|
|
16584
|
+
dispatch(marioCore.setAlert({
|
|
16585
|
+
type: "success",
|
|
16586
|
+
message: "Download successfully"
|
|
16587
|
+
}));
|
|
16588
|
+
});
|
|
16589
|
+
}, function (err) {
|
|
16590
|
+
dispatch(marioCore.setAlert({
|
|
16591
|
+
type: "danger",
|
|
16592
|
+
message: err.message
|
|
16593
|
+
}));
|
|
16594
|
+
});
|
|
16595
|
+
|
|
16596
|
+
return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(_temp15) : _temp15(_temp16));
|
|
16597
|
+
} catch (e) {
|
|
16598
|
+
return Promise.reject(e);
|
|
16599
|
+
}
|
|
16600
|
+
};
|
|
16601
|
+
|
|
16356
16602
|
React.useEffect(function () {
|
|
16357
16603
|
getData();
|
|
16358
16604
|
}, [filters]);
|
|
@@ -16371,7 +16617,8 @@ var useStudentList$1 = function useStudentList() {
|
|
|
16371
16617
|
setAssistantId: setAssistantId,
|
|
16372
16618
|
setStudentAssistant: setStudentAssistant,
|
|
16373
16619
|
isRoleTeacherAndAssistant: isRoleTeacherAndAssistant,
|
|
16374
|
-
nameTeacherAssistant: nameTeacherAssistant
|
|
16620
|
+
nameTeacherAssistant: nameTeacherAssistant,
|
|
16621
|
+
downloadTemplate: downloadTemplate
|
|
16375
16622
|
};
|
|
16376
16623
|
};
|
|
16377
16624
|
|
|
@@ -16484,7 +16731,8 @@ var StudentList = function StudentList() {
|
|
|
16484
16731
|
onSubmitAssistant = _useStudentList.onSubmitAssistant,
|
|
16485
16732
|
setStudentAssistant = _useStudentList.setStudentAssistant,
|
|
16486
16733
|
isRoleTeacherAndAssistant = _useStudentList.isRoleTeacherAndAssistant,
|
|
16487
|
-
nameTeacherAssistant = _useStudentList.nameTeacherAssistant
|
|
16734
|
+
nameTeacherAssistant = _useStudentList.nameTeacherAssistant,
|
|
16735
|
+
downloadTemplate = _useStudentList.downloadTemplate;
|
|
16488
16736
|
|
|
16489
16737
|
var classes = useStyles();
|
|
16490
16738
|
var history = reactRouterDom.useHistory();
|
|
@@ -16631,6 +16879,12 @@ var StudentList = function StudentList() {
|
|
|
16631
16879
|
event.target.value = null;
|
|
16632
16880
|
}
|
|
16633
16881
|
}), React__default.createElement(Label, {
|
|
16882
|
+
role: "button",
|
|
16883
|
+
className: "mr-3",
|
|
16884
|
+
onClick: function onClick() {
|
|
16885
|
+
return downloadTemplate();
|
|
16886
|
+
}
|
|
16887
|
+
}, React__default.createElement("p", null, "Download Template ", React__default.createElement(ImportIcon, null))), React__default.createElement(Label, {
|
|
16634
16888
|
htmlFor: "uploadFile",
|
|
16635
16889
|
role: "button",
|
|
16636
16890
|
tabIndex: 0
|
|
@@ -16879,7 +17133,7 @@ var StudentList = function StudentList() {
|
|
|
16879
17133
|
}, convertTimeSecond(row.totalTime)), isTeacher && React__default.createElement(core.TableCell, {
|
|
16880
17134
|
align: "center",
|
|
16881
17135
|
className: "" + myStudent["row_type"]
|
|
16882
|
-
}, !!row.assistantName || isRoleTeacherAndAssistant && row.
|
|
17136
|
+
}, !!row.assistantName || isRoleTeacherAndAssistant && row.assistantName ? React__default.createElement("span", {
|
|
16883
17137
|
className: "" + myStudent["time"]
|
|
16884
17138
|
}, React__default.createElement("span", {
|
|
16885
17139
|
style: {
|
|
@@ -17032,7 +17286,7 @@ var MyStudent = function MyStudent() {
|
|
|
17032
17286
|
return React__default.createElement("div", null, React__default.createElement(StudentList, null));
|
|
17033
17287
|
};
|
|
17034
17288
|
|
|
17035
|
-
var _excluded$
|
|
17289
|
+
var _excluded$7 = ["children", "value", "index"];
|
|
17036
17290
|
var EVENT_LOG_TAB = [{
|
|
17037
17291
|
tabName: "PLP",
|
|
17038
17292
|
pageName: "PLP"
|
|
@@ -17042,7 +17296,7 @@ var TabPanel$3 = function TabPanel(props) {
|
|
|
17042
17296
|
var children = props.children,
|
|
17043
17297
|
value = props.value,
|
|
17044
17298
|
index = props.index,
|
|
17045
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
17299
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
17046
17300
|
|
|
17047
17301
|
return React__default.createElement("div", Object.assign({
|
|
17048
17302
|
role: "tabpanel",
|
|
@@ -17249,7 +17503,7 @@ var StudentTabs = function StudentTabs(props) {
|
|
|
17249
17503
|
|
|
17250
17504
|
var styles$7 = {"box-overview":"_3uYAt","overview-left":"_1V3nf","overview-schedule":"_2AQxk","overview-partner-profiles":"_J8fJn","show-arrange-today":"_1qCwl","font-large":"_vX7SW","title-box":"_175nT","content-box":"_fEaRj","font-small":"_3QEPF","gr-date-time":"_1clLN","date-picker-overview":"_1RV8f","date-time":"_286sF","box":"_2QGnx","overview-right":"_3sc5l","pie-chart-box":"_13FnU","readiness-to-learn":"_21Iny","readiness-to-learn-box":"_177Fz","accordion-item":"_2UlJW","collap-box":"_l-kLp","title-overview":"_3aapW","width-90":"_2wWhs","height-13vh":"_2WNUe","chartDataAndLabelData":"_1jSN5","date-picker-mobile":"_3F0Tm","date-picker-to":"_3140u","box-overview-desktop":"_2tZC3","box-overview-mobile":"_39vGN","overview-mobile":"_3e_xC","border-chart":"_1081B","border-chart-top":"_2N1Xp","class-schedule":"_357lC"};
|
|
17251
17505
|
|
|
17252
|
-
var styles$8 = {"box":"_1Gw8i","goal-card":"_1jL2C","goal-card-item":"_2q6Jl","left-item":"_4pljN","title-item":"_UyJJC","description-item":"_1vD4_","right-item":"_2_cth","category-item":"_Ir2t4","status-item":"_KlwFr","completed":"_3KX9R","in-progress":"_3uKru","inactive":"_3xn_A","about-header":"_6yaJW","about-header-left":"_1WPpp","about-header-right":"_3f3Jr","btn-box":"_1gpWP","btn-delete":"_hDvhF","box-body":"_12xB1","select-option":"_1R60X","about-select":"_1Saet","about-select-box":"_htNcj","about-select-switch":"_2jl3g","list":"_1UciI","list-item":"_23pHy","item-name":"_3OZr_","detail":"_1aWxh","detail-item":"_3w-gW","goal-type":"_N5IAL","right-item-view-container":"_tOmgJ","right-item-view":"_3KxkK","status-box":"_3y2ts","size-check-point":"_2p5xO","box-content":"_1qog7","box-detail":"_34x4Y","box-detail-top":"_OCGzU","content-title":"_3n8Ym","title":"_3GtSy","content":"_2ehnh","err-message":"_3Gf3H","goal-form":"_e5B2A","goal-form-input":"_1wAWv","dialog-box-button":"_hor2Q","dialog-button-add":"_2oVq-","dialog-button-cancel":"_3o2FD","header-dialog":"_FMoSF","dialog-body":"_2wDRF","message-item":"_piBW5","icon-delete":"_1gaoX","block1-survey":"_1DfBV","block-step":"_22x1C","step-active":"_1rICV","back-step":"_DRPKF","box-text":"_5C51T","text-point":"_2lKpt","text-description":"_3h6aC","text-time":"_2w2ZD","done-icon":"_1By2Z","cursor-icon":"_xF74l","box-table-draggable":"_2o-8F","draggable-header":"_5W2Fg","icon-bottom":"_2PHt1","delete-box":"_c9TZq","fit-content":"_2TkuX","box-title-upload":"_2sO-2","title-upload":"_1Y93b","description-upload":"_3MlDb","box-select":"_3znlu","left-file-box":"_yCdmh","file-box":"_30PED","file-name":"_3o3-9","file-icon":"_EcMhp","cancel-icon":"_20zNl","icon-btn":"_2hccP","box-header":"_1lFaB","box-header-title":"_3O23t","box-header-button":"_1Bb3d","box-header-button-name":"_3BZZP","box-header-button-icon":"_37odR","box-header-item":"_1RM3i","item-title":"_1RDj7","item-right":"_3Wl2k","item-description":"_23ld8","box-items":"_Nyi4t","font-large":"_1TgXi","box-status":"_2qZ3K","font-small":"_35dhf","box-progress-item":"_P01if","status-item-margin":"_1XhVj","goals-box":"_2eBS9","step-icon":"_1OOBH","icon":"_3oCcd","cancel":"_3WgsP","active":"_1qDbH","dot":"_1vcUH","btn-to-detail":"_2s5wv","baseline-group":"_1LPsk","btn-add-mobile":"_3x6zJ","m-20":"_2s_iW","btn-delete-mobile":"_2nQLI","box-nodata-goal":"_23F1r","title-mobile":"_338pu","status":"_3OjOB","item-box":"_1S1IR","goal-card-item-mobile":"_3j7-c","select-edit-learning-tablet":"_hXd7q","select-edit-learning-tablet-student":"_1guxI","button-view-goal":"_3fdc_","btn-inActive":"_1EunQ","status-title":"_2FFkv","drag-header":"_3qKQq","drag-content-hidden":"_3qI-Z"};
|
|
17506
|
+
var styles$8 = {"box":"_1Gw8i","baseline-content":"_14qnB","btn-add-baseline-dissable":"_3OC-7","goal-card":"_1jL2C","goal-card-item":"_2q6Jl","left-item":"_4pljN","title-item":"_UyJJC","description-item":"_1vD4_","right-item":"_2_cth","category-item":"_Ir2t4","status-item":"_KlwFr","completed":"_3KX9R","in-progress":"_3uKru","inactive":"_3xn_A","about-header":"_6yaJW","about-header-left":"_1WPpp","about-header-right":"_3f3Jr","btn-box":"_1gpWP","btn-delete":"_hDvhF","box-body":"_12xB1","select-option":"_1R60X","about-select":"_1Saet","about-select-box":"_htNcj","about-select-switch":"_2jl3g","list":"_1UciI","list-item":"_23pHy","item-name":"_3OZr_","detail":"_1aWxh","detail-item":"_3w-gW","goal-type":"_N5IAL","right-item-view-container":"_tOmgJ","right-item-view":"_3KxkK","status-box":"_3y2ts","size-check-point":"_2p5xO","box-content":"_1qog7","box-detail":"_34x4Y","box-detail-top":"_OCGzU","content-title":"_3n8Ym","title":"_3GtSy","content":"_2ehnh","err-message":"_3Gf3H","goal-form":"_e5B2A","goal-form-input":"_1wAWv","dialog-box-button":"_hor2Q","dialog-button-add":"_2oVq-","dialog-button-cancel":"_3o2FD","header-dialog":"_FMoSF","dialog-body":"_2wDRF","message-item":"_piBW5","icon-delete":"_1gaoX","block1-survey":"_1DfBV","block-step":"_22x1C","step-active":"_1rICV","back-step":"_DRPKF","box-text":"_5C51T","text-point":"_2lKpt","text-description":"_3h6aC","text-time":"_2w2ZD","done-icon":"_1By2Z","cursor-icon":"_xF74l","box-table-draggable":"_2o-8F","draggable-header":"_5W2Fg","icon-bottom":"_2PHt1","delete-box":"_c9TZq","fit-content":"_2TkuX","box-title-upload":"_2sO-2","title-upload":"_1Y93b","description-upload":"_3MlDb","box-select":"_3znlu","left-file-box":"_yCdmh","file-box":"_30PED","file-name":"_3o3-9","file-icon":"_EcMhp","cancel-icon":"_20zNl","icon-btn":"_2hccP","box-header":"_1lFaB","box-header-title":"_3O23t","box-header-button":"_1Bb3d","box-header-button-name":"_3BZZP","box-header-button-icon":"_37odR","box-header-item":"_1RM3i","item-title":"_1RDj7","item-right":"_3Wl2k","item-description":"_23ld8","box-items":"_Nyi4t","font-large":"_1TgXi","box-status":"_2qZ3K","font-small":"_35dhf","box-progress-item":"_P01if","status-item-margin":"_1XhVj","goals-box":"_2eBS9","step-icon":"_1OOBH","icon":"_3oCcd","cancel":"_3WgsP","active":"_1qDbH","dot":"_1vcUH","btn-to-detail":"_2s5wv","baseline-group":"_1LPsk","btn-add-mobile":"_3x6zJ","m-20":"_2s_iW","btn-delete-mobile":"_2nQLI","box-nodata-goal":"_23F1r","title-mobile":"_338pu","status":"_3OjOB","item-box":"_1S1IR","goal-card-item-mobile":"_3j7-c","select-edit-learning-tablet":"_hXd7q","select-edit-learning-tablet-student":"_1guxI","button-view-goal":"_3fdc_","btn-inActive":"_1EunQ","status-title":"_2FFkv","drag-header":"_3qKQq","drag-content-hidden":"_3qI-Z"};
|
|
17253
17507
|
|
|
17254
17508
|
var STUDENT_URL$1 = marioCore.BASE_URL + "/api/Student";
|
|
17255
17509
|
var GOAL_URL = marioCore.BASE_URL + "/api/Goal";
|
|
@@ -17402,6 +17656,23 @@ function CheckPoint(_ref) {
|
|
|
17402
17656
|
}));
|
|
17403
17657
|
}
|
|
17404
17658
|
|
|
17659
|
+
var StatusDefault = [{
|
|
17660
|
+
key: "Active",
|
|
17661
|
+
value: "Active"
|
|
17662
|
+
}, {
|
|
17663
|
+
key: "InProgress",
|
|
17664
|
+
value: "In progress"
|
|
17665
|
+
}, {
|
|
17666
|
+
key: "NotYetStarted",
|
|
17667
|
+
value: "Not yet started"
|
|
17668
|
+
}];
|
|
17669
|
+
var handleShowStatus = function handleShowStatus(status) {
|
|
17670
|
+
var result = StatusDefault.find(function (r) {
|
|
17671
|
+
return r.key === status;
|
|
17672
|
+
});
|
|
17673
|
+
return result === null || result === void 0 ? void 0 : result.value;
|
|
17674
|
+
};
|
|
17675
|
+
|
|
17405
17676
|
var GoalProgress = function GoalProgress(props) {
|
|
17406
17677
|
var studentId = props.studentId,
|
|
17407
17678
|
classFontSize = props.classFontSize;
|
|
@@ -17471,7 +17742,7 @@ var GoalProgress = function GoalProgress(props) {
|
|
|
17471
17742
|
className: "" + styles$8["box-status"]
|
|
17472
17743
|
}, React__default.createElement(core.Typography, {
|
|
17473
17744
|
className: styles$8["status-item"] + "\n " + styles$8["status-item-margin"] + "\n " + styles$8[i.status === "Completed" ? "completed" : i.status === "NotYetStarted" ? "inactive" : "in-progress"]
|
|
17474
|
-
}, i.status
|
|
17745
|
+
}, handleShowStatus(i.status)), React__default.createElement(core.Typography, {
|
|
17475
17746
|
className: "" + styles$8["category-item"]
|
|
17476
17747
|
}, i.source)));
|
|
17477
17748
|
}) : null);
|
|
@@ -17576,7 +17847,7 @@ var MyNote = function MyNote(props) {
|
|
|
17576
17847
|
}) : null);
|
|
17577
17848
|
};
|
|
17578
17849
|
|
|
17579
|
-
var _excluded$
|
|
17850
|
+
var _excluded$8 = ["children", "value", "index"];
|
|
17580
17851
|
var DEFAULT_USER_AVATAR$7 = "/images/image-default.png";
|
|
17581
17852
|
var screenWidth$1 = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
17582
17853
|
var useStyles$a = styles$O.makeStyles(function () {
|
|
@@ -17685,7 +17956,7 @@ var TabPanel$4 = function TabPanel(props) {
|
|
|
17685
17956
|
var children = props.children,
|
|
17686
17957
|
value = props.value,
|
|
17687
17958
|
index = props.index,
|
|
17688
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
17959
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
17689
17960
|
|
|
17690
17961
|
return React__default.createElement("div", Object.assign({
|
|
17691
17962
|
role: "tabpanel",
|
|
@@ -18919,6 +19190,9 @@ var ReadinessToLearn = function ReadinessToLearn(_ref) {
|
|
|
18919
19190
|
|
|
18920
19191
|
var styles$b = {"chart-one-to-one":"_1sc2P","header-chart-one-to-one":"_14jsg","header-right":"_cwDAr","title":"_34b83","gr-date-time":"_382Go","date-time-start":"_1Pawo","date-time-end":"_16LVQ","date-time":"_ZdRKi","text":"_ptF0O","text-to":"_hlkTl","apexcharts-legend":"_2EMC9","apx-legend-position-top":"_1Ojwo","apexcharts-align-center":"_12O6U","font-large":"_29eqh","chart-label":"_3f0nE","chart-content":"_3eAPT","font-small":"_3REW-","box-chart":"_2K3qC","box-chart-small":"_3fuHY","chart-label-one-1-one":"_3vpT7","chart-label-class-reflection":"_yJtRg","chart-label-learning":"_2bopc"};
|
|
18921
19192
|
|
|
19193
|
+
var domainName$2 = window.location.hostname;
|
|
19194
|
+
var isCheckDomainRubyoung$2 = domainName$2.includes('rubyyoung');
|
|
19195
|
+
|
|
18922
19196
|
var ChartOneToOne = function ChartOneToOne(_ref) {
|
|
18923
19197
|
var title = _ref.title,
|
|
18924
19198
|
series = _ref.series,
|
|
@@ -18931,7 +19205,7 @@ var ChartOneToOne = function ChartOneToOne(_ref) {
|
|
|
18931
19205
|
classFontSize = _ref.classFontSize;
|
|
18932
19206
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
18933
19207
|
return React__default.createElement("div", {
|
|
18934
|
-
className: styles$b["chart-one-to-one"] + " " + styles$b[classFontSize] + " chart-format"
|
|
19208
|
+
className: styles$b["chart-one-to-one"] + " " + styles$b[classFontSize] + " " + (!isCheckDomainRubyoung$2 && "chart-format")
|
|
18935
19209
|
}, React__default.createElement("div", {
|
|
18936
19210
|
className: "" + styles$b["header-chart-one-to-one"]
|
|
18937
19211
|
}, React__default.createElement(core.Typography, {
|
|
@@ -20457,6 +20731,9 @@ var useLearningProgress = function useLearningProgress(studentId) {
|
|
|
20457
20731
|
};
|
|
20458
20732
|
};
|
|
20459
20733
|
|
|
20734
|
+
var domainName$3 = window.location.hostname;
|
|
20735
|
+
var isCheckDomainRubyoung$3 = domainName$3.includes('rubyyoung');
|
|
20736
|
+
|
|
20460
20737
|
var ChartOverview = function ChartOverview(props) {
|
|
20461
20738
|
var studentId = props.studentId,
|
|
20462
20739
|
isPlp = props.isPlp;
|
|
@@ -20561,7 +20838,7 @@ var ChartOverview = function ChartOverview(props) {
|
|
|
20561
20838
|
container: true,
|
|
20562
20839
|
className: isPlp && styles$7["border-chart"]
|
|
20563
20840
|
}, React__default.createElement(ChartOneToOne, {
|
|
20564
|
-
title: "One To One",
|
|
20841
|
+
title: isCheckDomainRubyoung$3 ? "1-to-1" : "One To One",
|
|
20565
20842
|
studentId: studentId,
|
|
20566
20843
|
handleChangeStartDate: handleChangeStartDate,
|
|
20567
20844
|
handleChangeEndDate: handleChangeEndDate,
|
|
@@ -20579,7 +20856,7 @@ var ChartOverview = function ChartOverview(props) {
|
|
|
20579
20856
|
container: true,
|
|
20580
20857
|
className: isPlp && styles$7["border-chart"]
|
|
20581
20858
|
}, React__default.createElement(ChatClassReflection, {
|
|
20582
|
-
title: "Class Reflection",
|
|
20859
|
+
title: isCheckDomainRubyoung$3 ? "Reflection" : "Class Reflection",
|
|
20583
20860
|
seriesChartClassReflection: seriesChartClassReflection,
|
|
20584
20861
|
optionClassReflection: optionClassReflection,
|
|
20585
20862
|
widthChartClassReflection: widthChartClassReflection,
|
|
@@ -23428,7 +23705,6 @@ var styles$g = {"about-box":"_FH_-Y","about-header":"_MqLnI","about-header-left"
|
|
|
23428
23705
|
|
|
23429
23706
|
var STUDENT_URL$3 = marioCore.BASE_URL + "/api/Student";
|
|
23430
23707
|
var ADDITIONAL_THING = marioCore.BASE_URL + "/api/StudentAdditionalThing";
|
|
23431
|
-
var SUCCESSSFULL_LEARNING_STRAGEGY = marioCore.BASE_URL + "/api/SuccessfulLearningStrategy";
|
|
23432
23708
|
var createItem$1 = function createItem(data, studentId) {
|
|
23433
23709
|
return marioCore.api.post(ADDITIONAL_THING + "/" + studentId, data);
|
|
23434
23710
|
};
|
|
@@ -23452,9 +23728,6 @@ var allowEdit$3 = function allowEdit(id, data) {
|
|
|
23452
23728
|
var getAllowEdit$3 = function getAllowEdit(id) {
|
|
23453
23729
|
return marioCore.api.get(STUDENT_URL$3 + "/" + id + "/allowEditGoal");
|
|
23454
23730
|
};
|
|
23455
|
-
var getAllBestFits = function getAllBestFits() {
|
|
23456
|
-
return marioCore.api.get(SUCCESSSFULL_LEARNING_STRAGEGY + "/allBestFit");
|
|
23457
|
-
};
|
|
23458
23731
|
|
|
23459
23732
|
var defaultFontLarge$g = 20;
|
|
23460
23733
|
var defaultFontSmall$g = 12;
|
|
@@ -23626,8 +23899,7 @@ var useThingTeachersCanHelp = function useThingTeachersCanHelp() {
|
|
|
23626
23899
|
var _temp12 = _catch(function () {
|
|
23627
23900
|
return Promise.resolve(updateItem$1(id, _extends({}, data, {
|
|
23628
23901
|
studentId: isTeacher || isParent ? parseInt(studentId) : currentId
|
|
23629
|
-
}))).then(function (
|
|
23630
|
-
!!res.data && getAll(filters);
|
|
23902
|
+
}))).then(function () {
|
|
23631
23903
|
dispatch(marioCore.setAlert({
|
|
23632
23904
|
type: "success",
|
|
23633
23905
|
message: "Update successfully"
|
|
@@ -24875,7 +25147,7 @@ var Goals = function Goals(_ref) {
|
|
|
24875
25147
|
className: "" + styles$8["right-item"]
|
|
24876
25148
|
}, React__default.createElement(core.Typography, {
|
|
24877
25149
|
className: styles$8["status-item"] + " " + styles$8[i.status === "Completed" ? "completed" : i.status === "NotYetStarted" ? "inactive" : "in-progress"]
|
|
24878
|
-
},
|
|
25150
|
+
}, handleShowStatus(i.status))));
|
|
24879
25151
|
}) : null)) : React__default.createElement(React__default.Fragment, null, React__default.createElement("p", {
|
|
24880
25152
|
className: "" + styles$8["title-mobile"]
|
|
24881
25153
|
}, "Goals"), React__default.createElement("div", {
|
|
@@ -25232,7 +25504,7 @@ var getStudentData = function getStudentData(dispatch, studentId) {
|
|
|
25232
25504
|
|
|
25233
25505
|
var LEARNING_STRATEGY = marioCore.BASE_URL + "/api/SuccessfulLearningStrategy/learningStrategy";
|
|
25234
25506
|
var STUDENT_URL$6 = marioCore.BASE_URL + "/api/Student";
|
|
25235
|
-
var SUCCESSSFULL_LEARNING_STRAGEGY
|
|
25507
|
+
var SUCCESSSFULL_LEARNING_STRAGEGY = marioCore.BASE_URL + "/api/SuccessfulLearningStrategy";
|
|
25236
25508
|
var getAllLearningStrategy = function getAllLearningStrategy(filters) {
|
|
25237
25509
|
return marioCore.api.get("" + LEARNING_STRATEGY, {
|
|
25238
25510
|
params: filters
|
|
@@ -25272,8 +25544,8 @@ var allowEdit$6 = function allowEdit(id, data) {
|
|
|
25272
25544
|
var getAllowEdit$6 = function getAllowEdit(id) {
|
|
25273
25545
|
return marioCore.api.get(STUDENT_URL$6 + "/" + id + "/allowEditGoal");
|
|
25274
25546
|
};
|
|
25275
|
-
var getAllBestFits
|
|
25276
|
-
return marioCore.api.get(SUCCESSSFULL_LEARNING_STRAGEGY
|
|
25547
|
+
var getAllBestFits = function getAllBestFits() {
|
|
25548
|
+
return marioCore.api.get(SUCCESSSFULL_LEARNING_STRAGEGY + "/allBestFit");
|
|
25277
25549
|
};
|
|
25278
25550
|
|
|
25279
25551
|
var defaultFontLarge$k = 20;
|
|
@@ -35419,13 +35691,13 @@ var ResultReflection = function ResultReflection() {
|
|
|
35419
35691
|
})))));
|
|
35420
35692
|
};
|
|
35421
35693
|
|
|
35422
|
-
var _excluded$
|
|
35694
|
+
var _excluded$9 = ["children", "value", "index"];
|
|
35423
35695
|
|
|
35424
35696
|
var TabPanel$5 = function TabPanel(props) {
|
|
35425
35697
|
var children = props.children,
|
|
35426
35698
|
value = props.value,
|
|
35427
35699
|
index = props.index,
|
|
35428
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
35700
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
35429
35701
|
|
|
35430
35702
|
return React__default.createElement("div", Object.assign({
|
|
35431
35703
|
role: "tabpanel",
|
|
@@ -36444,6 +36716,8 @@ var StudentHistory = function StudentHistory() {
|
|
|
36444
36716
|
}))))));
|
|
36445
36717
|
};
|
|
36446
36718
|
|
|
36719
|
+
var domainName$4 = window.location.hostname;
|
|
36720
|
+
var isCheckDomainRubyoung$4 = domainName$4.includes('rubyyoung');
|
|
36447
36721
|
var tabs$3 = [{
|
|
36448
36722
|
path: "/my-class-reflection/to-do",
|
|
36449
36723
|
title: "To Do",
|
|
@@ -36453,7 +36727,7 @@ var tabs$3 = [{
|
|
|
36453
36727
|
title: "History",
|
|
36454
36728
|
component: StudentHistory
|
|
36455
36729
|
}];
|
|
36456
|
-
var title$2 = "My Class Reflections";
|
|
36730
|
+
var title$2 = isCheckDomainRubyoung$4 ? "My Reflections" : "My Class Reflections";
|
|
36457
36731
|
|
|
36458
36732
|
var StudentReflection = function StudentReflection() {
|
|
36459
36733
|
return React__default.createElement(Box, null, React__default.createElement(StudentReflectionTab, {
|
|
@@ -40414,9 +40688,22 @@ var NewLearningPlan = function NewLearningPlan() {
|
|
|
40414
40688
|
setInitialValues(_extends({}, cloneData));
|
|
40415
40689
|
};
|
|
40416
40690
|
|
|
40417
|
-
var handleRemoveGoalItem = function handleRemoveGoalItem(index) {
|
|
40691
|
+
var handleRemoveGoalItem = function handleRemoveGoalItem(index, type, goalLearningPlanOder) {
|
|
40418
40692
|
var cloneData = values;
|
|
40419
|
-
|
|
40693
|
+
|
|
40694
|
+
if (type === "Annual" && !!goalLearningPlanOder) {
|
|
40695
|
+
var listGoalByOder = cloneData.goalLearningPlans.filter(function (r) {
|
|
40696
|
+
return r.goalLearningPlanOder === goalLearningPlanOder;
|
|
40697
|
+
});
|
|
40698
|
+
listGoalByOder.forEach(function (x) {
|
|
40699
|
+
return cloneData.goalLearningPlans.splice(cloneData.goalLearningPlans.findIndex(function (n) {
|
|
40700
|
+
return n === x;
|
|
40701
|
+
}), 1);
|
|
40702
|
+
});
|
|
40703
|
+
} else {
|
|
40704
|
+
cloneData.goalLearningPlans.splice(index, 1);
|
|
40705
|
+
}
|
|
40706
|
+
|
|
40420
40707
|
setInitialValues(_extends({}, cloneData));
|
|
40421
40708
|
};
|
|
40422
40709
|
|
|
@@ -40631,19 +40918,19 @@ var NewLearningPlan = function NewLearningPlan() {
|
|
|
40631
40918
|
className: "" + myStudent["write-and-date-content"]
|
|
40632
40919
|
}, "Benchmarks or short-term objectives are required only for children with disabilities who take alternate assessments aligned to alternate achievement standards."), values.goalLearningPlans.some(function (i) {
|
|
40633
40920
|
return i.goalLearningPlanOder;
|
|
40634
|
-
}) ? values.goalLearningPlans.map(function (e, index) {
|
|
40921
|
+
}) || values.goalLearningPlans.length === 0 ? values.goalLearningPlans.map(function (e, index) {
|
|
40635
40922
|
return React__default.createElement(pickers.MuiPickersUtilsProvider, {
|
|
40636
40923
|
utils: MomentUtils
|
|
40637
40924
|
}, React__default.createElement(core.Grid, {
|
|
40638
40925
|
className: myStudent["input-write-date"] + " " + myStudent[e.type === "ReportingProgress" ? "objectives" : ""]
|
|
40639
40926
|
}, React__default.createElement(core.Grid, {
|
|
40640
40927
|
className: "" + myStudent["input-date"]
|
|
40641
|
-
}, !!values.goalLearningPlans[index].startTime
|
|
40928
|
+
}, !!values.goalLearningPlans[index].startTime && values.goalLearningPlans[index].type == "Annual" && React__default.createElement("label", {
|
|
40642
40929
|
className: "" + myStudent["input-date-label"]
|
|
40643
|
-
}, "Enter a date range")
|
|
40930
|
+
}, "Enter a date range"), React__default.createElement(DatePicker, {
|
|
40644
40931
|
selectsRange: true,
|
|
40645
|
-
startDate: e.startTime ? new Date(e.startTime) : null,
|
|
40646
|
-
endDate:
|
|
40932
|
+
startDate: e.startTime ? new Date(marioCore.utcToLocalTime(e.startTime, "yyyy-MM-DD")) : null,
|
|
40933
|
+
endDate: e.endTime ? new Date(marioCore.utcToLocalTime(e.endTime, "yyyy-MM-DD")) : null,
|
|
40647
40934
|
onChange: function onChange(date) {
|
|
40648
40935
|
setFieldValue("goalLearningPlans[" + index + "].startTime", date[0]);
|
|
40649
40936
|
setFieldValue("goalLearningPlans[" + index + "].endTime", date[1]);
|
|
@@ -40663,9 +40950,9 @@ var NewLearningPlan = function NewLearningPlan() {
|
|
|
40663
40950
|
onChange: function onChange(text) {
|
|
40664
40951
|
return setFieldValue("goalLearningPlans[" + index + "].text", text.target.value);
|
|
40665
40952
|
}
|
|
40666
|
-
}),
|
|
40953
|
+
}), React__default.createElement("img", {
|
|
40667
40954
|
onClick: function onClick() {
|
|
40668
|
-
return handleRemoveGoalItem(index);
|
|
40955
|
+
return handleRemoveGoalItem(index, e.type, e.goalLearningPlanOder);
|
|
40669
40956
|
},
|
|
40670
40957
|
src: "/teacher-student/icons/delete.png",
|
|
40671
40958
|
className: "" + myStudent["icon-remove"]
|
|
@@ -40693,12 +40980,12 @@ var NewLearningPlan = function NewLearningPlan() {
|
|
|
40693
40980
|
className: "" + myStudent["input-write-date"]
|
|
40694
40981
|
}, React__default.createElement(core.Grid, {
|
|
40695
40982
|
className: "" + myStudent["input-date"]
|
|
40696
|
-
}, !!values.goalLearningPlans[index].startTime
|
|
40983
|
+
}, !!values.goalLearningPlans[index].startTime && values.goalLearningPlans[index].type == "Annual" && React__default.createElement("label", {
|
|
40697
40984
|
className: "" + myStudent["input-date-label"]
|
|
40698
|
-
}, "Enter a date range")
|
|
40985
|
+
}, "Enter a date range"), React__default.createElement(DatePicker, {
|
|
40699
40986
|
selectsRange: true,
|
|
40700
|
-
startDate: e.startTime ? new Date(e.startTime) : null,
|
|
40701
|
-
endDate:
|
|
40987
|
+
startDate: e.startTime ? new Date(marioCore.utcToLocalTime(e.startTime, "yyyy-MM-DD")) : null,
|
|
40988
|
+
endDate: e.endTime ? new Date(marioCore.utcToLocalTime(e.endTime, "yyyy-MM-DD")) : null,
|
|
40702
40989
|
onChange: function onChange(date) {
|
|
40703
40990
|
setFieldValue("goalLearningPlans[" + index + "].startTime", date[0]);
|
|
40704
40991
|
setFieldValue("goalLearningPlans[" + index + "].endTime", date[1]);
|
|
@@ -40744,8 +41031,8 @@ var NewLearningPlan = function NewLearningPlan() {
|
|
|
40744
41031
|
className: "" + myStudent["input-date-label"]
|
|
40745
41032
|
}, "Enter a date range") : "", React__default.createElement(DatePicker, {
|
|
40746
41033
|
selectsRange: true,
|
|
40747
|
-
startDate: e.startTime ? new Date(e.startTime) : null,
|
|
40748
|
-
endDate:
|
|
41034
|
+
startDate: e.startTime ? new Date(marioCore.utcToLocalTime(e.startTime, "yyyy-MM-DD")) : null,
|
|
41035
|
+
endDate: e.endTime ? new Date(marioCore.utcToLocalTime(e.endTime, "yyyy-MM-DD")) : null,
|
|
40749
41036
|
onChange: function onChange(date) {
|
|
40750
41037
|
setFieldValue("goalLearningPlans[" + index + "].startTime", date[0]);
|
|
40751
41038
|
setFieldValue("goalLearningPlans[" + index + "].endTime", date[1]);
|
|
@@ -40768,7 +41055,12 @@ var NewLearningPlan = function NewLearningPlan() {
|
|
|
40768
41055
|
})), touched.goalLearningPlans && errors.goalLearningPlans && React__default.createElement(core.Typography, {
|
|
40769
41056
|
className: "" + myStudent["err-message"]
|
|
40770
41057
|
}, errors.goalLearningPlans[index] && "Annual goals is a required"));
|
|
40771
|
-
}))), React__default.createElement(core.Grid, {
|
|
41058
|
+
}))), values.goalLearningPlans.length === 0 && React__default.createElement(core.Grid, null, React__default.createElement(core.Typography, {
|
|
41059
|
+
className: "" + myStudent["reporting"],
|
|
41060
|
+
onClick: function onClick() {
|
|
41061
|
+
return handleAddGoalItem(0, "Annual", 1);
|
|
41062
|
+
}
|
|
41063
|
+
}, "Add Goals")), React__default.createElement(core.Grid, {
|
|
40772
41064
|
className: "" + myStudent["goals-write-and-date"]
|
|
40773
41065
|
}, React__default.createElement(core.Typography, {
|
|
40774
41066
|
className: "" + myStudent["write-and-date-title"]
|
|
@@ -41222,7 +41514,8 @@ var useUpdateProfile = function useUpdateProfile(studentId) {
|
|
|
41222
41514
|
lastNameParent2: res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.thirdLastName,
|
|
41223
41515
|
roleParent2: res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : _res$data8.thirdEmailOwner,
|
|
41224
41516
|
emailParent2: res === null || res === void 0 ? void 0 : (_res$data9 = res.data) === null || _res$data9 === void 0 ? void 0 : _res$data9.thirdEmail,
|
|
41225
|
-
phoneNumberParent2: res === null || res === void 0 ? void 0 : (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.thirdPhone
|
|
41517
|
+
phoneNumberParent2: res === null || res === void 0 ? void 0 : (_res$data10 = res.data) === null || _res$data10 === void 0 ? void 0 : _res$data10.thirdPhone,
|
|
41518
|
+
designationId: res === null || res === void 0 ? void 0 : res.data.designationId
|
|
41226
41519
|
}));
|
|
41227
41520
|
});
|
|
41228
41521
|
}, function (err) {
|
|
@@ -41781,6 +42074,46 @@ var ConfirmDelete = function ConfirmDelete(props) {
|
|
|
41781
42074
|
}, "YES, DELETE ", React__default.createElement(DeleteIcon, null)))));
|
|
41782
42075
|
};
|
|
41783
42076
|
|
|
42077
|
+
var useDesignation = function useDesignation() {
|
|
42078
|
+
var _useState = React.useState([]),
|
|
42079
|
+
designations = _useState[0],
|
|
42080
|
+
setDesignations = _useState[1];
|
|
42081
|
+
|
|
42082
|
+
var dispatch = reactRedux.useDispatch();
|
|
42083
|
+
|
|
42084
|
+
var getDesginations = function getDesginations() {
|
|
42085
|
+
try {
|
|
42086
|
+
var _temp3 = function _temp3() {
|
|
42087
|
+
dispatch(marioCore.setLoading(false));
|
|
42088
|
+
};
|
|
42089
|
+
|
|
42090
|
+
dispatch(marioCore.setLoading(true));
|
|
42091
|
+
|
|
42092
|
+
var _temp4 = _catch(function () {
|
|
42093
|
+
return Promise.resolve(getAllDesginations()).then(function (res) {
|
|
42094
|
+
setDesignations(res.data);
|
|
42095
|
+
});
|
|
42096
|
+
}, function (err) {
|
|
42097
|
+
dispatch(marioCore.setAlert({
|
|
42098
|
+
type: "danger",
|
|
42099
|
+
message: err.message
|
|
42100
|
+
}));
|
|
42101
|
+
});
|
|
42102
|
+
|
|
42103
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
42104
|
+
} catch (e) {
|
|
42105
|
+
return Promise.reject(e);
|
|
42106
|
+
}
|
|
42107
|
+
};
|
|
42108
|
+
|
|
42109
|
+
React.useEffect(function () {
|
|
42110
|
+
getDesginations();
|
|
42111
|
+
}, []);
|
|
42112
|
+
return {
|
|
42113
|
+
designations: designations
|
|
42114
|
+
};
|
|
42115
|
+
};
|
|
42116
|
+
|
|
41784
42117
|
var DEFAULT_USER_AVATAR$i = "/images/image-default.png";
|
|
41785
42118
|
var parents = ["Mother", "Father"];
|
|
41786
42119
|
var gender = ["Male", "Female"];
|
|
@@ -41839,6 +42172,9 @@ var UpdateStudentProfile = function UpdateStudentProfile() {
|
|
|
41839
42172
|
formikState = _useUpdateProfile.formikState,
|
|
41840
42173
|
existEmailData = _useUpdateProfile.existEmailData;
|
|
41841
42174
|
|
|
42175
|
+
var _useDesignation = useDesignation(),
|
|
42176
|
+
designations = _useDesignation.designations;
|
|
42177
|
+
|
|
41842
42178
|
var goBack = function goBack() {
|
|
41843
42179
|
history.push("/student-detail/overview/" + studentId);
|
|
41844
42180
|
};
|
|
@@ -42094,13 +42430,19 @@ var UpdateStudentProfile = function UpdateStudentProfile() {
|
|
|
42094
42430
|
}), React__default.createElement(core.Typography, {
|
|
42095
42431
|
className: "" + styles$p["profile-label"]
|
|
42096
42432
|
}, "Designation"), React__default.createElement(core.TextField, {
|
|
42433
|
+
select: true,
|
|
42434
|
+
id: "outlined-select-currency",
|
|
42097
42435
|
variant: "outlined",
|
|
42098
|
-
value: values === null || values === void 0 ? void 0 : values.
|
|
42099
|
-
className: "" + styles$p["input-field"],
|
|
42436
|
+
value: !!(values !== null && values !== void 0 && values.designationId) && (values === null || values === void 0 ? void 0 : values.designationId),
|
|
42100
42437
|
onChange: function onChange(e) {
|
|
42101
|
-
return setFieldValue("
|
|
42102
|
-
}
|
|
42103
|
-
|
|
42438
|
+
return setFieldValue("designationId", e.target.value);
|
|
42439
|
+
},
|
|
42440
|
+
className: "" + styles$p["input-field"]
|
|
42441
|
+
}, designations.map(function (item) {
|
|
42442
|
+
return React__default.createElement(core.MenuItem, {
|
|
42443
|
+
value: item.id
|
|
42444
|
+
}, item.name);
|
|
42445
|
+
})), React__default.createElement(core.Typography, {
|
|
42104
42446
|
className: "" + styles$p["profile-label"]
|
|
42105
42447
|
}, "MTSS"), React__default.createElement(core.Select, {
|
|
42106
42448
|
variant: "outlined",
|
|
@@ -42355,11 +42697,6 @@ var UpdateStudentProfile = function UpdateStudentProfile() {
|
|
|
42355
42697
|
lastNameParent2: false,
|
|
42356
42698
|
emailParent2: false
|
|
42357
42699
|
});
|
|
42358
|
-
setTouched({
|
|
42359
|
-
firstNameParent1: openAddEditParentModal2,
|
|
42360
|
-
lastNameParent1: openAddEditParentModal2,
|
|
42361
|
-
emailParent1: openAddEditParentModal2
|
|
42362
|
-
});
|
|
42363
42700
|
handleCloseParentModal2();
|
|
42364
42701
|
},
|
|
42365
42702
|
className: "" + styles$p["add-edit-dialog"]
|
|
@@ -42632,6 +42969,10 @@ var useCreateStudent = function useCreateStudent() {
|
|
|
42632
42969
|
submitData = _useState4[0],
|
|
42633
42970
|
setSubmitData = _useState4[1];
|
|
42634
42971
|
|
|
42972
|
+
console.log({
|
|
42973
|
+
submitData: submitData
|
|
42974
|
+
});
|
|
42975
|
+
|
|
42635
42976
|
var _useState5 = React.useState(false),
|
|
42636
42977
|
openAddEditParentModal2 = _useState5[0],
|
|
42637
42978
|
setOpenAddEditParentModal2 = _useState5[1];
|
|
@@ -42831,6 +43172,7 @@ var useCreateStudent = function useCreateStudent() {
|
|
|
42831
43172
|
|
|
42832
43173
|
var DEFAULT_USER_AVATAR$j = "/images/image-default.png";
|
|
42833
43174
|
var parents$1 = ["Mother", "Father"];
|
|
43175
|
+
var gender$1 = ["Male", "Female"];
|
|
42834
43176
|
var gradeLevels$1 = ["K", "G", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
42835
43177
|
|
|
42836
43178
|
var CreateStudent = function CreateStudent() {
|
|
@@ -42971,6 +43313,35 @@ var CreateStudent = function CreateStudent() {
|
|
|
42971
43313
|
className: "" + styles$q["input-error"]
|
|
42972
43314
|
}, errors.lastName) : null, React__default.createElement(core.Typography, {
|
|
42973
43315
|
className: "" + styles$q["profile-label"]
|
|
43316
|
+
}, "Gender"), React__default.createElement(core.Select, {
|
|
43317
|
+
variant: "outlined",
|
|
43318
|
+
value: !!(values !== null && values !== void 0 && values.legalGender) && (values === null || values === void 0 ? void 0 : values.legalGender),
|
|
43319
|
+
onChange: function onChange(e) {
|
|
43320
|
+
return setFieldValue("legalGender", e.target.value);
|
|
43321
|
+
},
|
|
43322
|
+
className: "" + styles$q["input-field"]
|
|
43323
|
+
}, gender$1.map(function (gender) {
|
|
43324
|
+
return React__default.createElement(core.MenuItem, {
|
|
43325
|
+
value: gender
|
|
43326
|
+
}, gender);
|
|
43327
|
+
})), React__default.createElement(core.Typography, {
|
|
43328
|
+
className: "" + styles$q["profile-label"]
|
|
43329
|
+
}, "Date of Birth"), React__default.createElement(pickers.MuiPickersUtilsProvider, {
|
|
43330
|
+
utils: MomentUtils
|
|
43331
|
+
}, React__default.createElement(pickers.KeyboardDatePicker, {
|
|
43332
|
+
inputVariant: "outlined",
|
|
43333
|
+
format: "Do MMM YYYY",
|
|
43334
|
+
id: "time-picker",
|
|
43335
|
+
className: "" + styles$q["input-field"],
|
|
43336
|
+
value: !!(values !== null && values !== void 0 && values.dateOfBirth) ? values === null || values === void 0 ? void 0 : values.dateOfBirth : null,
|
|
43337
|
+
onChange: function onChange(e) {
|
|
43338
|
+
return setFieldValue("dateOfBirth", new Date(e));
|
|
43339
|
+
},
|
|
43340
|
+
KeyboardButtonProps: {
|
|
43341
|
+
"aria-label": "change date"
|
|
43342
|
+
}
|
|
43343
|
+
})), React__default.createElement(core.Typography, {
|
|
43344
|
+
className: "" + styles$q["profile-label"]
|
|
42974
43345
|
}, "Phone Number"), React__default.createElement(core.TextField, {
|
|
42975
43346
|
variant: "outlined",
|
|
42976
43347
|
value: values === null || values === void 0 ? void 0 : values.phone,
|
|
@@ -44580,15 +44951,12 @@ var ListPersonalinterrest = function ListPersonalinterrest() {
|
|
|
44580
44951
|
},
|
|
44581
44952
|
value: valueAddActivity,
|
|
44582
44953
|
onInputChange: function onInputChange(_event, newInputValue) {
|
|
44583
|
-
console.log({
|
|
44584
|
-
newInputValue: newInputValue
|
|
44585
|
-
});
|
|
44586
44954
|
onChangeSetDataNote(newInputValue);
|
|
44587
44955
|
setIsCheckChange(true);
|
|
44588
44956
|
},
|
|
44589
44957
|
renderInput: function renderInput(params) {
|
|
44590
44958
|
return React__default.createElement(core.TextField, Object.assign({}, params, {
|
|
44591
|
-
label: "Select
|
|
44959
|
+
label: "Select personal interest or enter personal interest here",
|
|
44592
44960
|
variant: "outlined",
|
|
44593
44961
|
inputProps: _extends({}, params.inputProps)
|
|
44594
44962
|
}));
|
|
@@ -44679,7 +45047,7 @@ var ListPersonalinterrest = function ListPersonalinterrest() {
|
|
|
44679
45047
|
},
|
|
44680
45048
|
renderInput: function renderInput(params) {
|
|
44681
45049
|
return React__default.createElement(core.TextField, Object.assign({}, params, {
|
|
44682
|
-
label: "Select
|
|
45050
|
+
label: "Select personal interest or enter personal interest here",
|
|
44683
45051
|
variant: "outlined",
|
|
44684
45052
|
inputProps: _extends({}, params.inputProps)
|
|
44685
45053
|
}));
|
|
@@ -45270,7 +45638,7 @@ var AboutMyLearningDialog = function AboutMyLearningDialog(props) {
|
|
|
45270
45638
|
},
|
|
45271
45639
|
renderInput: function renderInput(params) {
|
|
45272
45640
|
return React__default.createElement(core.TextField, Object.assign({}, params, {
|
|
45273
|
-
label: "
|
|
45641
|
+
label: "Select about learning or enter about learning here",
|
|
45274
45642
|
variant: "outlined",
|
|
45275
45643
|
onChange: function onChange(e) {
|
|
45276
45644
|
setFieldValue("title", e.target.value);
|
|
@@ -45696,7 +46064,7 @@ var data = [{
|
|
|
45696
46064
|
teachingStrategyId: 2,
|
|
45697
46065
|
title: "Bite-size Learning",
|
|
45698
46066
|
detail: "I learn best when my teacher breaks down new learning into smaller pieces of information followed by opportunities to review what I learned and identify gaps in learning.",
|
|
45699
|
-
bestFits: "Short-term Memory, Staying Focused, Impulse Control, Self-
|
|
46067
|
+
bestFits: "Short-term Memory, Staying Focused, Impulse Control, Self-Awareness, Listening, Processing Speed"
|
|
45700
46068
|
}, {
|
|
45701
46069
|
id: 3,
|
|
45702
46070
|
teachingStrategyId: 3,
|
|
@@ -45726,13 +46094,13 @@ var data = [{
|
|
|
45726
46094
|
teachingStrategyId: 7,
|
|
45727
46095
|
title: "Frequent Check-ins",
|
|
45728
46096
|
detail: "I learn best when my teacher has frequent, private check-ins to ensure I am on track. This also helps me feel safe and supported in class. (Ideas for check-ins include a sticky note system, silent signal, whisper at desk side, but we can agree on something together).",
|
|
45729
|
-
bestFits: "Stress & Anxiety, Processing Speed, Task Initiation, Developing Ideas,
|
|
46097
|
+
bestFits: "Stress & Anxiety, Processing Speed, Task Initiation, Developing Ideas, Planning, Finishing Tasks, Short-term Memory, Staying Focused, Self-Advocacy, Self-Awareness"
|
|
45730
46098
|
}, {
|
|
45731
46099
|
id: 8,
|
|
45732
46100
|
teachingStrategyId: 8,
|
|
45733
46101
|
title: "Develop Rapport",
|
|
45734
46102
|
detail: "I learn best when my teacher focuses on relationship building, both with teachers and peers - creating a community of care where I feel connected and valued.",
|
|
45735
|
-
bestFits: "Stress & Anxiety, Behavior,
|
|
46103
|
+
bestFits: "Stress & Anxiety, Behavior, Attitude, Confidence"
|
|
45736
46104
|
}, {
|
|
45737
46105
|
id: 9,
|
|
45738
46106
|
teachingStrategyId: 9,
|
|
@@ -45762,7 +46130,7 @@ var data = [{
|
|
|
45762
46130
|
teachingStrategyId: 13,
|
|
45763
46131
|
title: "Non-verbal Cues",
|
|
45764
46132
|
detail: "I learn best when my teacher redirects me with non-verbal cues to redirect me when possible, rather than verbally redirecting me.",
|
|
45765
|
-
bestFits: "Staying Focused, Self-
|
|
46133
|
+
bestFits: "Staying Focused, Self-Awareness, Attitude, Behavior, Stress & Anxiety, Confidence"
|
|
45766
46134
|
}, {
|
|
45767
46135
|
id: 14,
|
|
45768
46136
|
teachingStrategyId: 14,
|
|
@@ -45780,7 +46148,7 @@ var data = [{
|
|
|
45780
46148
|
teachingStrategyId: 16,
|
|
45781
46149
|
title: "Multimodal Learning",
|
|
45782
46150
|
detail: "I learn best when my teacher helps us learn through multiple ways, including reading, listening, watching, and doing. Important concepts are not taught just using one way of learning.",
|
|
45783
|
-
bestFits: "Staying Focused, Listening, Reading, Writing, Math,
|
|
46151
|
+
bestFits: "Staying Focused, Listening, Reading, Writing, Math, Collaboration, Processing Speed"
|
|
45784
46152
|
}, {
|
|
45785
46153
|
id: 17,
|
|
45786
46154
|
teachingStrategyId: 17,
|
|
@@ -45804,7 +46172,7 @@ var data = [{
|
|
|
45804
46172
|
teachingStrategyId: 20,
|
|
45805
46173
|
title: "Understanding Checks",
|
|
45806
46174
|
detail: "I learn best when my teacher frequently checks in with me to see if I've understand new learning.",
|
|
45807
|
-
bestFits: "Starting Tasks, Short-term Memory, Staying Focused, Impulse Control, Self-Advocacy, Listening, Processing"
|
|
46175
|
+
bestFits: "Starting Tasks, Short-term Memory, Staying Focused, Impulse Control, Self-Advocacy, Listening, Processing Speed"
|
|
45808
46176
|
}, {
|
|
45809
46177
|
id: 21,
|
|
45810
46178
|
teachingStrategyId: 21,
|
|
@@ -45846,7 +46214,7 @@ var data = [{
|
|
|
45846
46214
|
teachingStrategyId: 27,
|
|
45847
46215
|
title: "Sharing Vocabulary",
|
|
45848
46216
|
detail: "I learn best when my teacher provides new vocabulary words before we cover new information and provides opportunities to learn the vocabulary.",
|
|
45849
|
-
bestFits: "Short-term Memory, Long
|
|
46217
|
+
bestFits: "Short-term Memory, Long Term Memory, Listening, Reading, Processing Speed"
|
|
45850
46218
|
}, {
|
|
45851
46219
|
id: 28,
|
|
45852
46220
|
teachingStrategyId: 28,
|
|
@@ -45901,7 +46269,7 @@ var useTeachingStrategiesAdd = function useTeachingStrategiesAdd() {
|
|
|
45901
46269
|
var isTeacher = currentUser.roles.includes("Teacher") || currentUser.roles.includes("Assistant");
|
|
45902
46270
|
var isParent = currentUser.roles.includes("Parent") || currentUser.roles.includes("EduTeacher");
|
|
45903
46271
|
|
|
45904
|
-
var _useState = React.useState([
|
|
46272
|
+
var _useState = React.useState([]),
|
|
45905
46273
|
bestFits = _useState[0],
|
|
45906
46274
|
setBestFits = _useState[1];
|
|
45907
46275
|
|
|
@@ -45934,6 +46302,23 @@ var useTeachingStrategiesAdd = function useTeachingStrategiesAdd() {
|
|
|
45934
46302
|
});
|
|
45935
46303
|
};
|
|
45936
46304
|
|
|
46305
|
+
React.useEffect(function () {
|
|
46306
|
+
var arr = [].concat(bestFits);
|
|
46307
|
+
data.forEach(function (item) {
|
|
46308
|
+
item.bestFits.split(", ").forEach(function (i) {
|
|
46309
|
+
return arr.push(i);
|
|
46310
|
+
});
|
|
46311
|
+
});
|
|
46312
|
+
var arrBestFits = [];
|
|
46313
|
+
|
|
46314
|
+
for (var i = 0; i < arr.length; i++) {
|
|
46315
|
+
if (!arrBestFits.includes(arr[i])) {
|
|
46316
|
+
arrBestFits === null || arrBestFits === void 0 ? void 0 : arrBestFits.push(arr[i]);
|
|
46317
|
+
}
|
|
46318
|
+
}
|
|
46319
|
+
|
|
46320
|
+
setBestFits(arrBestFits.sort());
|
|
46321
|
+
}, []);
|
|
45937
46322
|
React.useEffect(function () {
|
|
45938
46323
|
var arr = [].concat(data, listData);
|
|
45939
46324
|
var listStrategoryIds = [];
|
|
@@ -46003,7 +46388,6 @@ var useTeachingStrategiesAdd = function useTeachingStrategiesAdd() {
|
|
|
46003
46388
|
if (!!data && item && item.teachingStrategyId === null) {
|
|
46004
46389
|
var indexItem = updateSelectedStrategies.indexOf(item);
|
|
46005
46390
|
updateSelectedStrategies[indexItem].teachingStrategyId = data.id;
|
|
46006
|
-
updateSelectedStrategies[indexItem].note = data.note;
|
|
46007
46391
|
}
|
|
46008
46392
|
} else {
|
|
46009
46393
|
updateSelectedStrategies[selectedStrategies.indexOf(item)].teachingStrategyId = null;
|
|
@@ -46029,6 +46413,7 @@ var useTeachingStrategiesAdd = function useTeachingStrategiesAdd() {
|
|
|
46029
46413
|
|
|
46030
46414
|
if (updateData.indexOf(foundItem) === -1) {
|
|
46031
46415
|
updateData.push({
|
|
46416
|
+
teachingStrategyId: null,
|
|
46032
46417
|
identification: currentItem.id,
|
|
46033
46418
|
name: currentItem.title,
|
|
46034
46419
|
content: currentItem.detail,
|
|
@@ -46042,33 +46427,6 @@ var useTeachingStrategiesAdd = function useTeachingStrategiesAdd() {
|
|
|
46042
46427
|
setSelectedStrategies(updateData);
|
|
46043
46428
|
};
|
|
46044
46429
|
|
|
46045
|
-
var getBestFits = function getBestFits() {
|
|
46046
|
-
try {
|
|
46047
|
-
var _temp3 = function _temp3() {
|
|
46048
|
-
dispatch(marioCore.setLoading(false));
|
|
46049
|
-
};
|
|
46050
|
-
|
|
46051
|
-
dispatch(marioCore.setLoading(true));
|
|
46052
|
-
|
|
46053
|
-
var _temp4 = _catch(function () {
|
|
46054
|
-
return Promise.resolve(getAllBestFits()).then(function (res) {
|
|
46055
|
-
!!res.data && setBestFits([].concat(res.data, bestFits));
|
|
46056
|
-
});
|
|
46057
|
-
}, function (err) {
|
|
46058
|
-
var _err$response, _err$response$data;
|
|
46059
|
-
|
|
46060
|
-
dispatch(marioCore.setAlert({
|
|
46061
|
-
type: "danger",
|
|
46062
|
-
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
|
|
46063
|
-
}));
|
|
46064
|
-
});
|
|
46065
|
-
|
|
46066
|
-
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
46067
|
-
} catch (e) {
|
|
46068
|
-
return Promise.reject(e);
|
|
46069
|
-
}
|
|
46070
|
-
};
|
|
46071
|
-
|
|
46072
46430
|
var handleCreateTeachingStrategy = function handleCreateTeachingStrategy() {
|
|
46073
46431
|
try {
|
|
46074
46432
|
return Promise.resolve(_catch(function () {
|
|
@@ -46100,35 +46458,34 @@ var useTeachingStrategiesAdd = function useTeachingStrategiesAdd() {
|
|
|
46100
46458
|
|
|
46101
46459
|
var getAll = function getAll() {
|
|
46102
46460
|
try {
|
|
46103
|
-
var
|
|
46461
|
+
var _temp3 = function _temp3() {
|
|
46104
46462
|
dispatch(marioCore.setLoading(false));
|
|
46105
46463
|
};
|
|
46106
46464
|
|
|
46107
46465
|
dispatch(marioCore.setLoading(true));
|
|
46108
46466
|
|
|
46109
|
-
var
|
|
46467
|
+
var _temp4 = _catch(function () {
|
|
46110
46468
|
return Promise.resolve(getAllItem$1({
|
|
46111
46469
|
studentId: isTeacher || isParent ? parseInt(studentId) : currentId
|
|
46112
46470
|
})).then(function (res) {
|
|
46113
46471
|
!!res.data && setListData(res.data.reverse());
|
|
46114
46472
|
});
|
|
46115
46473
|
}, function (err) {
|
|
46116
|
-
var _err$
|
|
46474
|
+
var _err$response, _err$response$data;
|
|
46117
46475
|
|
|
46118
46476
|
dispatch(marioCore.setAlert({
|
|
46119
46477
|
type: "danger",
|
|
46120
|
-
message: ((_err$
|
|
46478
|
+
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
|
|
46121
46479
|
}));
|
|
46122
46480
|
});
|
|
46123
46481
|
|
|
46124
|
-
return Promise.resolve(
|
|
46482
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
46125
46483
|
} catch (e) {
|
|
46126
46484
|
return Promise.reject(e);
|
|
46127
46485
|
}
|
|
46128
46486
|
};
|
|
46129
46487
|
|
|
46130
46488
|
React.useEffect(function () {
|
|
46131
|
-
getBestFits();
|
|
46132
46489
|
getAll();
|
|
46133
46490
|
}, []);
|
|
46134
46491
|
return {
|
|
@@ -46424,6 +46781,20 @@ var styles$w = {"dialog-title":"_1KdDE","title":"_2EGi6","dialog-content":"_3zW3
|
|
|
46424
46781
|
|
|
46425
46782
|
var listStrengthsChallengesFits = ["Time Management", "Organization of Materials", "Developing Ideas", "Planning", "Starting Tasks", "Finishing Tasks", "Short-term Memory", "Long-term Memory", "Staying Focused", "Impulse Control", "Self-Awareness", "Self-Advocacy", "Listening", "Writing", "Reading", "Math", "Setting & Achieving Goals", "Reflecting", "Speaking", "Attitude", "Behavior", "Stress & Anxiety", "Confidence", "Creativity", "Exercise", "Sleep Hygiene", "Flexibility", "Collaboration", "Work Ethic", "Studying", "Processing Speed"];
|
|
46426
46783
|
|
|
46784
|
+
var propTypeDialog = [{
|
|
46785
|
+
text: "significant strengths",
|
|
46786
|
+
type: "SignificantStrengths"
|
|
46787
|
+
}, {
|
|
46788
|
+
text: "strengths",
|
|
46789
|
+
type: "Strengths"
|
|
46790
|
+
}, {
|
|
46791
|
+
text: "challenges",
|
|
46792
|
+
type: "Challenges"
|
|
46793
|
+
}, {
|
|
46794
|
+
text: "significant challenges",
|
|
46795
|
+
type: "SignificantChallenges"
|
|
46796
|
+
}];
|
|
46797
|
+
|
|
46427
46798
|
var CreateEditDialog = function CreateEditDialog(props) {
|
|
46428
46799
|
var open = props.open,
|
|
46429
46800
|
onClose = props.onClose,
|
|
@@ -46449,11 +46820,22 @@ var CreateEditDialog = function CreateEditDialog(props) {
|
|
|
46449
46820
|
note = _useState2[0],
|
|
46450
46821
|
setNote = _useState2[1];
|
|
46451
46822
|
|
|
46823
|
+
var _useState3 = React.useState(""),
|
|
46824
|
+
textSelectBox = _useState3[0],
|
|
46825
|
+
setTextSelectType = _useState3[1];
|
|
46826
|
+
|
|
46452
46827
|
var submitCreate = function submitCreate(formData) {
|
|
46453
46828
|
create(formData);
|
|
46454
46829
|
onClose(selectedValue);
|
|
46455
46830
|
};
|
|
46456
46831
|
|
|
46832
|
+
React.useEffect(function () {
|
|
46833
|
+
var text = propTypeDialog.find(function (r) {
|
|
46834
|
+
return r.type === type;
|
|
46835
|
+
});
|
|
46836
|
+
setTextSelectType((text === null || text === void 0 ? void 0 : text.text) || "");
|
|
46837
|
+
}, [type]);
|
|
46838
|
+
|
|
46457
46839
|
var submitUpdate = function submitUpdate(id, formData) {
|
|
46458
46840
|
update(id, formData);
|
|
46459
46841
|
onClose(selectedValue);
|
|
@@ -46525,7 +46907,7 @@ var CreateEditDialog = function CreateEditDialog(props) {
|
|
|
46525
46907
|
},
|
|
46526
46908
|
renderInput: function renderInput(params) {
|
|
46527
46909
|
return React__default.createElement(core.TextField, Object.assign({}, params, {
|
|
46528
|
-
label: "
|
|
46910
|
+
label: "Select " + textSelectBox + " or enter " + textSelectBox + " here",
|
|
46529
46911
|
variant: "outlined",
|
|
46530
46912
|
onChange: function onChange(e) {
|
|
46531
46913
|
setName(e.target.value);
|
|
@@ -48473,7 +48855,7 @@ var AddNote = function AddNote() {
|
|
|
48473
48855
|
className: "" + styles$y["favourite-checkbox-box"]
|
|
48474
48856
|
}, React__default.createElement("div", {
|
|
48475
48857
|
onClick: handleChangeFavourite
|
|
48476
|
-
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as
|
|
48858
|
+
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as favorite")), React__default.createElement("div", null, React__default.createElement(TextField, {
|
|
48477
48859
|
label: "Note title",
|
|
48478
48860
|
variant: "outlined",
|
|
48479
48861
|
error: errorTitle,
|
|
@@ -48499,7 +48881,7 @@ var AddNote = function AddNote() {
|
|
|
48499
48881
|
className: "" + styles$y["favourite-checkbox-box"]
|
|
48500
48882
|
}, React__default.createElement("div", {
|
|
48501
48883
|
onClick: handleChangeFavourite
|
|
48502
|
-
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as
|
|
48884
|
+
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as favorite")))), screenWidth < 768 && React__default.createElement(core.Box, {
|
|
48503
48885
|
className: "" + styles$y["button-save-mobile"]
|
|
48504
48886
|
}, React__default.createElement(core.Button, {
|
|
48505
48887
|
variant: "contained",
|
|
@@ -49371,7 +49753,7 @@ var ModalGoalFriend = function ModalGoalFriend(props, ref) {
|
|
|
49371
49753
|
onChange: function onChange(e) {
|
|
49372
49754
|
return setFieldValue("firstName", e);
|
|
49373
49755
|
},
|
|
49374
|
-
name: "Add
|
|
49756
|
+
name: "Add name"
|
|
49375
49757
|
}), touched.firstName && errors.firstName && React__default.createElement(marioCore.ErrorHandler, {
|
|
49376
49758
|
text: errors.firstName
|
|
49377
49759
|
})), React__default.createElement(core.Grid, {
|
|
@@ -50616,7 +50998,7 @@ var ModalGoalActivity = function ModalGoalActivity(props, ref) {
|
|
|
50616
50998
|
},
|
|
50617
50999
|
renderInput: function renderInput(params) {
|
|
50618
51000
|
return React__default.createElement(TextField, Object.assign({}, params, {
|
|
50619
|
-
label: "Select an activity",
|
|
51001
|
+
label: "Select or type an activity",
|
|
50620
51002
|
variant: "outlined",
|
|
50621
51003
|
inputProps: _extends({}, params.inputProps)
|
|
50622
51004
|
}));
|
|
@@ -51147,7 +51529,7 @@ var EditNote = function EditNote() {
|
|
|
51147
51529
|
className: "" + styles$y["favourite-checkbox-box"]
|
|
51148
51530
|
}, React__default.createElement("div", {
|
|
51149
51531
|
onClick: handleChangeFavourite
|
|
51150
|
-
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as
|
|
51532
|
+
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as favorite")), React__default.createElement("div", null, React__default.createElement(TextField, {
|
|
51151
51533
|
label: "Note title",
|
|
51152
51534
|
variant: "outlined",
|
|
51153
51535
|
error: errorTitle,
|
|
@@ -51173,7 +51555,7 @@ var EditNote = function EditNote() {
|
|
|
51173
51555
|
className: "" + styles$y["favourite-checkbox-box"]
|
|
51174
51556
|
}, React__default.createElement("div", {
|
|
51175
51557
|
onClick: handleChangeFavourite
|
|
51176
|
-
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as
|
|
51558
|
+
}, isFavourite ? React__default.createElement(StarIcon, null) : React__default.createElement(StarBorderIcon, null)), React__default.createElement("p", null, "Mark as favorite")))), screenWidth < 768 && React__default.createElement(core.Box, {
|
|
51177
51559
|
className: "" + styles$y["button-save-mobile"]
|
|
51178
51560
|
}, React__default.createElement(core.Button, {
|
|
51179
51561
|
variant: "contained",
|
|
@@ -51247,7 +51629,7 @@ var useLearningStrategy = function useLearningStrategy() {
|
|
|
51247
51629
|
dispatch(marioCore.setLoading(true));
|
|
51248
51630
|
|
|
51249
51631
|
var _temp8 = _catch(function () {
|
|
51250
|
-
return Promise.resolve(getAllBestFits
|
|
51632
|
+
return Promise.resolve(getAllBestFits()).then(function (response) {
|
|
51251
51633
|
!!response.data && setBestFits(response.data);
|
|
51252
51634
|
});
|
|
51253
51635
|
}, function (err) {
|
|
@@ -51438,7 +51820,8 @@ var useLearningStrategy = function useLearningStrategy() {
|
|
|
51438
51820
|
var defaultFontLarge$B = 20;
|
|
51439
51821
|
var defaultFontSmall$B = 12;
|
|
51440
51822
|
|
|
51441
|
-
var useEditLearningStrategies = function useEditLearningStrategies() {
|
|
51823
|
+
var useEditLearningStrategies = function useEditLearningStrategies(_ref) {
|
|
51824
|
+
var isShowChoose = _ref.isShowChoose;
|
|
51442
51825
|
var dispatch = reactRedux.useDispatch();
|
|
51443
51826
|
|
|
51444
51827
|
var _useLearningStrategy = useLearningStrategy(),
|
|
@@ -51478,6 +51861,29 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
|
|
|
51478
51861
|
learningStrategyData = _useState3[0],
|
|
51479
51862
|
setLearningStrategyData = _useState3[1];
|
|
51480
51863
|
|
|
51864
|
+
var _useState4 = React.useState({
|
|
51865
|
+
studentId: studentId,
|
|
51866
|
+
isShowChoose: !isShowChoose ? true : false,
|
|
51867
|
+
searchString: "",
|
|
51868
|
+
selected: ""
|
|
51869
|
+
}),
|
|
51870
|
+
filters = _useState4[0],
|
|
51871
|
+
setFilters = _useState4[1];
|
|
51872
|
+
|
|
51873
|
+
var changeFilters = function changeFilters(e) {
|
|
51874
|
+
setFilters(_extends({}, filters, {
|
|
51875
|
+
searchString: e
|
|
51876
|
+
}));
|
|
51877
|
+
};
|
|
51878
|
+
|
|
51879
|
+
var selectedChange = function selectedChange(e) {
|
|
51880
|
+
setFilters(_extends({}, filters, {
|
|
51881
|
+
studentId: studentId,
|
|
51882
|
+
isShowChoose: !isShowChoose ? true : false,
|
|
51883
|
+
selected: e.length ? e.join(",") : ""
|
|
51884
|
+
}));
|
|
51885
|
+
};
|
|
51886
|
+
|
|
51481
51887
|
var defaultFont = reactRedux.useSelector(function (state) {
|
|
51482
51888
|
var _state$common;
|
|
51483
51889
|
|
|
@@ -51506,9 +51912,9 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
|
|
|
51506
51912
|
}));
|
|
51507
51913
|
};
|
|
51508
51914
|
|
|
51509
|
-
var
|
|
51510
|
-
openConfirmDelete =
|
|
51511
|
-
setOpenConfirmDelete =
|
|
51915
|
+
var _useState5 = React.useState(false),
|
|
51916
|
+
openConfirmDelete = _useState5[0],
|
|
51917
|
+
setOpenConfirmDelete = _useState5[1];
|
|
51512
51918
|
|
|
51513
51919
|
var handleOpenConfirmDeleteDialog = function handleOpenConfirmDeleteDialog(id) {
|
|
51514
51920
|
setIdItem(id);
|
|
@@ -51560,10 +51966,7 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
|
|
|
51560
51966
|
var updateItem = function updateItem() {
|
|
51561
51967
|
try {
|
|
51562
51968
|
return Promise.resolve(update(idItem, getOneData, studentId)).then(function () {
|
|
51563
|
-
return Promise.resolve(getAll({
|
|
51564
|
-
studentId: studentId,
|
|
51565
|
-
isShowChoose: true
|
|
51566
|
-
})).then(function () {
|
|
51969
|
+
return Promise.resolve(getAll(filters)).then(function () {
|
|
51567
51970
|
setOpen(false);
|
|
51568
51971
|
});
|
|
51569
51972
|
});
|
|
@@ -51572,18 +51975,6 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
|
|
|
51572
51975
|
}
|
|
51573
51976
|
};
|
|
51574
51977
|
|
|
51575
|
-
var selectedChange = function selectedChange(e) {
|
|
51576
|
-
try {
|
|
51577
|
-
return Promise.resolve(getAll({
|
|
51578
|
-
studentId: studentId,
|
|
51579
|
-
isShowChoose: true,
|
|
51580
|
-
selected: e.length ? e.join(",") : ""
|
|
51581
|
-
})).then(function () {});
|
|
51582
|
-
} catch (e) {
|
|
51583
|
-
return Promise.reject(e);
|
|
51584
|
-
}
|
|
51585
|
-
};
|
|
51586
|
-
|
|
51587
51978
|
React.useEffect(function () {
|
|
51588
51979
|
if (open && !!idItem) getById(idItem, studentId);
|
|
51589
51980
|
}, [idItem]);
|
|
@@ -51591,13 +51982,10 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
|
|
|
51591
51982
|
setLearningStrategyData(data);
|
|
51592
51983
|
}, [data]);
|
|
51593
51984
|
React.useEffect(function () {
|
|
51594
|
-
getAll(
|
|
51595
|
-
|
|
51596
|
-
isShowChoose: true
|
|
51597
|
-
});
|
|
51598
|
-
getAllow(studentId);
|
|
51599
|
-
}, []);
|
|
51985
|
+
getAll(filters);
|
|
51986
|
+
}, [filters]);
|
|
51600
51987
|
React.useEffect(function () {
|
|
51988
|
+
getAllow(studentId);
|
|
51601
51989
|
getBestFits();
|
|
51602
51990
|
}, []);
|
|
51603
51991
|
React.useEffect(function () {
|
|
@@ -51624,7 +52012,9 @@ var useEditLearningStrategies = function useEditLearningStrategies() {
|
|
|
51624
52012
|
bestFits: bestFits,
|
|
51625
52013
|
selectedChange: selectedChange,
|
|
51626
52014
|
nameStudent: nameStudent,
|
|
51627
|
-
isParent: isParent
|
|
52015
|
+
isParent: isParent,
|
|
52016
|
+
changeFilters: changeFilters,
|
|
52017
|
+
data: data
|
|
51628
52018
|
};
|
|
51629
52019
|
};
|
|
51630
52020
|
|
|
@@ -51632,7 +52022,7 @@ function LearningStrategies() {
|
|
|
51632
52022
|
var history = reactRouterDom.useHistory();
|
|
51633
52023
|
var dispatch = reactRedux.useDispatch();
|
|
51634
52024
|
|
|
51635
|
-
var _useEditLearningStrat = useEditLearningStrategies(),
|
|
52025
|
+
var _useEditLearningStrat = useEditLearningStrategies({}),
|
|
51636
52026
|
open = _useEditLearningStrat.open,
|
|
51637
52027
|
studentId = _useEditLearningStrat.studentId,
|
|
51638
52028
|
handleClickOpen = _useEditLearningStrat.handleClickOpen,
|
|
@@ -51651,9 +52041,9 @@ function LearningStrategies() {
|
|
|
51651
52041
|
isTeacher = _useEditLearningStrat.isTeacher,
|
|
51652
52042
|
classFontSize = _useEditLearningStrat.classFontSize,
|
|
51653
52043
|
bestFits = _useEditLearningStrat.bestFits,
|
|
51654
|
-
selectedChange = _useEditLearningStrat.selectedChange,
|
|
51655
52044
|
nameStudent = _useEditLearningStrat.nameStudent,
|
|
51656
|
-
isParent = _useEditLearningStrat.isParent
|
|
52045
|
+
isParent = _useEditLearningStrat.isParent,
|
|
52046
|
+
selectedChange = _useEditLearningStrat.selectedChange;
|
|
51657
52047
|
|
|
51658
52048
|
var user = reactRedux.useSelector(function (state) {
|
|
51659
52049
|
var _state$common;
|
|
@@ -51850,8 +52240,6 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
|
|
|
51850
52240
|
studentId = _useParams.studentId;
|
|
51851
52241
|
|
|
51852
52242
|
var _useLearningStrategy = useLearningStrategy(),
|
|
51853
|
-
getAll = _useLearningStrategy.getAll,
|
|
51854
|
-
data = _useLearningStrategy.data,
|
|
51855
52243
|
create = _useLearningStrategy.create,
|
|
51856
52244
|
getBestFits = _useLearningStrategy.getBestFits,
|
|
51857
52245
|
bestFits = _useLearningStrategy.bestFits;
|
|
@@ -51860,15 +52248,6 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
|
|
|
51860
52248
|
learningStrategyData = _useState[0],
|
|
51861
52249
|
setLearningStrategyData = _useState[1];
|
|
51862
52250
|
|
|
51863
|
-
var _useState2 = React.useState({
|
|
51864
|
-
studentId: studentId,
|
|
51865
|
-
isShowChoose: false,
|
|
51866
|
-
searchString: "",
|
|
51867
|
-
selected: ""
|
|
51868
|
-
}),
|
|
51869
|
-
filters = _useState2[0],
|
|
51870
|
-
setFilters = _useState2[1];
|
|
51871
|
-
|
|
51872
52251
|
var defaultFont = reactRedux.useSelector(function (state) {
|
|
51873
52252
|
var _state$common;
|
|
51874
52253
|
|
|
@@ -51886,15 +52265,9 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
|
|
|
51886
52265
|
return "";
|
|
51887
52266
|
}, [defaultFont]);
|
|
51888
52267
|
|
|
51889
|
-
var
|
|
51890
|
-
|
|
51891
|
-
|
|
51892
|
-
}));
|
|
51893
|
-
};
|
|
51894
|
-
|
|
51895
|
-
var _useState3 = React.useState([]),
|
|
51896
|
-
selectData = _useState3[0],
|
|
51897
|
-
setSelectData = _useState3[1];
|
|
52268
|
+
var _useState2 = React.useState([]),
|
|
52269
|
+
selectData = _useState2[0],
|
|
52270
|
+
setSelectData = _useState2[1];
|
|
51898
52271
|
|
|
51899
52272
|
var selectLearning = function selectLearning(checked, data) {
|
|
51900
52273
|
var value = [].concat(selectData);
|
|
@@ -51997,23 +52370,9 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
|
|
|
51997
52370
|
return data.length;
|
|
51998
52371
|
};
|
|
51999
52372
|
|
|
52000
|
-
var selectedChange = function selectedChange(e) {
|
|
52001
|
-
setFilters(_extends({}, filters, {
|
|
52002
|
-
studentId: studentId,
|
|
52003
|
-
isShowChoose: false,
|
|
52004
|
-
selected: e.length ? e.join(",") : ""
|
|
52005
|
-
}));
|
|
52006
|
-
};
|
|
52007
|
-
|
|
52008
52373
|
React.useEffect(function () {
|
|
52009
52374
|
document.title = "Learning Strategies";
|
|
52010
52375
|
}, []);
|
|
52011
|
-
React.useEffect(function () {
|
|
52012
|
-
setLearningStrategyData(data);
|
|
52013
|
-
}, [data]);
|
|
52014
|
-
React.useEffect(function () {
|
|
52015
|
-
getAll(filters);
|
|
52016
|
-
}, [filters]);
|
|
52017
52376
|
React.useEffect(function () {
|
|
52018
52377
|
getBestFits();
|
|
52019
52378
|
}, []);
|
|
@@ -52021,8 +52380,6 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
|
|
|
52021
52380
|
learningStrategyData: learningStrategyData,
|
|
52022
52381
|
selectLearning: selectLearning,
|
|
52023
52382
|
handleChangeNote: handleChangeNote,
|
|
52024
|
-
changeFilters: changeFilters,
|
|
52025
|
-
filters: filters,
|
|
52026
52383
|
selectData: selectData,
|
|
52027
52384
|
handleAddLearningStrategy: handleAddLearningStrategy,
|
|
52028
52385
|
backToLearningStrategy: backToLearningStrategy,
|
|
@@ -52031,7 +52388,7 @@ var useAddLearningStrategies = function useAddLearningStrategies() {
|
|
|
52031
52388
|
handleShowSelectItemCount: handleShowSelectItemCount,
|
|
52032
52389
|
classFontSize: classFontSize,
|
|
52033
52390
|
bestFits: bestFits,
|
|
52034
|
-
|
|
52391
|
+
setLearningStrategyData: setLearningStrategyData
|
|
52035
52392
|
};
|
|
52036
52393
|
};
|
|
52037
52394
|
|
|
@@ -52040,7 +52397,6 @@ function LearningStrategiesSave() {
|
|
|
52040
52397
|
learningStrategyData = _useAddLearningStrate.learningStrategyData,
|
|
52041
52398
|
selectLearning = _useAddLearningStrate.selectLearning,
|
|
52042
52399
|
handleChangeNote = _useAddLearningStrate.handleChangeNote,
|
|
52043
|
-
changeFilters = _useAddLearningStrate.changeFilters,
|
|
52044
52400
|
handleAddLearningStrategy = _useAddLearningStrate.handleAddLearningStrategy,
|
|
52045
52401
|
backToLearningStrategy = _useAddLearningStrate.backToLearningStrategy,
|
|
52046
52402
|
handleCheckSelectItem = _useAddLearningStrate.handleCheckSelectItem,
|
|
@@ -52048,7 +52404,14 @@ function LearningStrategiesSave() {
|
|
|
52048
52404
|
handleShowSelectItemCount = _useAddLearningStrate.handleShowSelectItemCount,
|
|
52049
52405
|
classFontSize = _useAddLearningStrate.classFontSize,
|
|
52050
52406
|
bestFits = _useAddLearningStrate.bestFits,
|
|
52051
|
-
|
|
52407
|
+
setLearningStrategyData = _useAddLearningStrate.setLearningStrategyData;
|
|
52408
|
+
|
|
52409
|
+
var _useEditLearningStrat = useEditLearningStrategies({
|
|
52410
|
+
isShowChoose: true
|
|
52411
|
+
}),
|
|
52412
|
+
changeFilters = _useEditLearningStrat.changeFilters,
|
|
52413
|
+
selectedChange = _useEditLearningStrat.selectedChange,
|
|
52414
|
+
data = _useEditLearningStrat.data;
|
|
52052
52415
|
|
|
52053
52416
|
var handleBestFit = function handleBestFit(e) {
|
|
52054
52417
|
var string = !!e ? e : "";
|
|
@@ -52060,6 +52423,9 @@ function LearningStrategiesSave() {
|
|
|
52060
52423
|
}) : null);
|
|
52061
52424
|
};
|
|
52062
52425
|
|
|
52426
|
+
React.useEffect(function () {
|
|
52427
|
+
setLearningStrategyData(data);
|
|
52428
|
+
}, [data]);
|
|
52063
52429
|
var inputSearch = React.useRef(null);
|
|
52064
52430
|
|
|
52065
52431
|
var handleChangeInputSearch = function handleChangeInputSearch(event) {
|
|
@@ -52244,13 +52610,13 @@ function LearningStrategiesSave() {
|
|
|
52244
52610
|
}, "ADD", React__default.createElement(AddCircleIcon, null)))));
|
|
52245
52611
|
}
|
|
52246
52612
|
|
|
52247
|
-
var _excluded$
|
|
52613
|
+
var _excluded$a = ["children", "value", "index"];
|
|
52248
52614
|
|
|
52249
52615
|
var TabPanel$6 = function TabPanel(props) {
|
|
52250
52616
|
var children = props.children,
|
|
52251
52617
|
value = props.value,
|
|
52252
52618
|
index = props.index,
|
|
52253
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
52619
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$a);
|
|
52254
52620
|
|
|
52255
52621
|
return React__default.createElement("div", Object.assign({
|
|
52256
52622
|
role: "tabpanel",
|
|
@@ -53525,7 +53891,7 @@ var GoalList = function GoalList() {
|
|
|
53525
53891
|
className: "" + styles$8["status-title"]
|
|
53526
53892
|
}, "Status"), React__default.createElement(core.Typography, {
|
|
53527
53893
|
className: styles$8["status-item"] + " " + styles$8[i.status === "Completed" ? "completed" : i.status === "NotYetStarted" ? "inactive" : "in-progress"]
|
|
53528
|
-
}, !!(i !== null && i !== void 0 && i.status) &&
|
|
53894
|
+
}, !!(i !== null && i !== void 0 && i.status) && handleShowStatus(i.status))), React__default.createElement(CheckPoint, {
|
|
53529
53895
|
target: completedCheckpoint(i.checkPoints),
|
|
53530
53896
|
status: i.status,
|
|
53531
53897
|
point: completedCheckpoint(i.checkPoints, true)
|
|
@@ -54075,6 +54441,9 @@ var EditBaseLine = function EditBaseLine(props) {
|
|
|
54075
54441
|
openDialogConfirm = _useState2[0],
|
|
54076
54442
|
setOpenDialogConfirm = _useState2[1];
|
|
54077
54443
|
|
|
54444
|
+
var domainName = window.location.hostname;
|
|
54445
|
+
var isCheckDomainRubyoung = domainName.includes('rubyyoung');
|
|
54446
|
+
|
|
54078
54447
|
var handleClickOpenConfirm = function handleClickOpenConfirm() {
|
|
54079
54448
|
setOpenDialogConfirm(true);
|
|
54080
54449
|
};
|
|
@@ -54095,8 +54464,14 @@ var EditBaseLine = function EditBaseLine(props) {
|
|
|
54095
54464
|
var handleDeleteBaseLine = function handleDeleteBaseLine() {
|
|
54096
54465
|
updateBaseLine(id, []);
|
|
54097
54466
|
handleClose();
|
|
54467
|
+
!!isCheckDomainRubyoung && setInputValue("");
|
|
54098
54468
|
};
|
|
54099
54469
|
|
|
54470
|
+
React.useEffect(function () {
|
|
54471
|
+
if (!!isCheckDomainRubyoung && !!goalBaseLineItem && goalBaseLineItem.length > 0) {
|
|
54472
|
+
setInputValue(goalBaseLineItem[0].name);
|
|
54473
|
+
}
|
|
54474
|
+
}, [isCheckDomainRubyoung, goalBaseLineItem]);
|
|
54100
54475
|
return React__default.createElement(core.Dialog, {
|
|
54101
54476
|
onClose: handleClose,
|
|
54102
54477
|
"aria-labelledby": "simple-dialog-title",
|
|
@@ -54106,8 +54481,12 @@ var EditBaseLine = function EditBaseLine(props) {
|
|
|
54106
54481
|
enableReinitialize: true,
|
|
54107
54482
|
onSubmit: function (values) {
|
|
54108
54483
|
try {
|
|
54109
|
-
return Promise.resolve(updateBaseLine(id,
|
|
54484
|
+
return Promise.resolve(isCheckDomainRubyoung ? updateBaseLine(id, [{
|
|
54485
|
+
name: inputValue.trim()
|
|
54486
|
+
}]) : updateBaseLine(id, values)).then(function (_updateBaseLine) {
|
|
54487
|
+
_updateBaseLine;
|
|
54110
54488
|
handleClose();
|
|
54489
|
+
!isCheckDomainRubyoung && setInputValue("");
|
|
54111
54490
|
});
|
|
54112
54491
|
} catch (e) {
|
|
54113
54492
|
return Promise.reject(e);
|
|
@@ -54121,7 +54500,7 @@ var EditBaseLine = function EditBaseLine(props) {
|
|
|
54121
54500
|
var handleAddItem = function handleAddItem() {
|
|
54122
54501
|
setGoalBaseLineItem(function () {
|
|
54123
54502
|
return [].concat(values, [{
|
|
54124
|
-
name: inputValue
|
|
54503
|
+
name: inputValue.trim()
|
|
54125
54504
|
}]);
|
|
54126
54505
|
});
|
|
54127
54506
|
setInputValue("");
|
|
@@ -54136,7 +54515,7 @@ var EditBaseLine = function EditBaseLine(props) {
|
|
|
54136
54515
|
onClick: handleClose
|
|
54137
54516
|
})), React__default.createElement(core.Grid, null, React__default.createElement(core.Grid, {
|
|
54138
54517
|
className: "" + styles$8["goal-form-input"]
|
|
54139
|
-
}, !!values && values.length > 0 ? values.map(function (i, index) {
|
|
54518
|
+
}, !isCheckDomainRubyoung && !!values && values.length > 0 ? values.map(function (i, index) {
|
|
54140
54519
|
return React__default.createElement(core.Grid, {
|
|
54141
54520
|
className: "" + styles$8["message-item"]
|
|
54142
54521
|
}, React__default.createElement(core.OutlinedInput, {
|
|
@@ -54156,7 +54535,7 @@ var EditBaseLine = function EditBaseLine(props) {
|
|
|
54156
54535
|
}) : null, React__default.createElement(InputComponent, {
|
|
54157
54536
|
name: "Add title",
|
|
54158
54537
|
valueText: inputValue,
|
|
54159
|
-
isAddIcon:
|
|
54538
|
+
isAddIcon: !isCheckDomainRubyoung,
|
|
54160
54539
|
handleAddItem: handleAddItem,
|
|
54161
54540
|
onChange: function onChange(value) {
|
|
54162
54541
|
setInputValue(value);
|
|
@@ -54175,9 +54554,9 @@ var EditBaseLine = function EditBaseLine(props) {
|
|
|
54175
54554
|
selectedItemId: id
|
|
54176
54555
|
}), React__default.createElement(core.Grid, {
|
|
54177
54556
|
onClick: function onClick() {
|
|
54178
|
-
return handleSubmit();
|
|
54557
|
+
return !!isCheckDomainRubyoung && !(inputValue !== null && inputValue !== void 0 && inputValue.trim()) ? null : handleSubmit();
|
|
54179
54558
|
},
|
|
54180
|
-
className: "" + styles$8["
|
|
54559
|
+
className: styles$8["dialog-button-add"] + " " + (!!isCheckDomainRubyoung && !(inputValue !== null && inputValue !== void 0 && inputValue.trim()) ? styles$8["btn-add-baseline-dissable"] : "")
|
|
54181
54560
|
}, React__default.createElement(core.Typography, null, "SUBMIT"), React__default.createElement(SaveIcon, null))));
|
|
54182
54561
|
}));
|
|
54183
54562
|
};
|
|
@@ -54246,7 +54625,7 @@ var EditCheckPoint = function EditCheckPoint(props) {
|
|
|
54246
54625
|
_touched.push({
|
|
54247
54626
|
text: false,
|
|
54248
54627
|
time: false,
|
|
54249
|
-
endTime:
|
|
54628
|
+
endTime: true,
|
|
54250
54629
|
status: false
|
|
54251
54630
|
});
|
|
54252
54631
|
}
|
|
@@ -54372,7 +54751,7 @@ var EditCheckPoint = function EditCheckPoint(props) {
|
|
|
54372
54751
|
onDrop: onDrop,
|
|
54373
54752
|
lockAxis: "y"
|
|
54374
54753
|
}, values === null || values === void 0 ? void 0 : values.map(function (i, index) {
|
|
54375
|
-
var _touched$index, _errors$, _errors$2, _touched$index2, _errors$3, _errors$4, _i$signatureCheckpoin;
|
|
54754
|
+
var _touched$index, _errors$, _errors$2, _touched$index2, _errors$3, _errors$4, _touched$index3, _errors$5, _touched$index4, _errors$6, _errors$7, _i$signatureCheckpoin;
|
|
54376
54755
|
|
|
54377
54756
|
return React__default.createElement(reactSmoothDnd.Draggable, {
|
|
54378
54757
|
key: index
|
|
@@ -54388,6 +54767,7 @@ var EditCheckPoint = function EditCheckPoint(props) {
|
|
|
54388
54767
|
})), React__default.createElement(core.Grid, {
|
|
54389
54768
|
className: "" + styles$8["drag-content-hidden"]
|
|
54390
54769
|
}, React__default.createElement(InputComponent, {
|
|
54770
|
+
disabled: (getOneData === null || getOneData === void 0 ? void 0 : getOneData.source) !== "IEP" ? false : true,
|
|
54391
54771
|
customId: "outlined-basic-" + index,
|
|
54392
54772
|
name: "Title",
|
|
54393
54773
|
onBlur: function onBlur() {
|
|
@@ -54416,16 +54796,25 @@ var EditCheckPoint = function EditCheckPoint(props) {
|
|
|
54416
54796
|
id: "date-picker-inline",
|
|
54417
54797
|
label: "Pick a date",
|
|
54418
54798
|
className: "" + styles$8["date-time"],
|
|
54419
|
-
value: i.time,
|
|
54799
|
+
value: i.time || null,
|
|
54420
54800
|
onChange: function onChange(date) {
|
|
54421
54801
|
return setFieldValue("[" + index + "]time", date || "");
|
|
54422
54802
|
},
|
|
54423
54803
|
onBlur: function onBlur() {
|
|
54424
54804
|
setFieldValue("[" + index + "]time", i.time || "");
|
|
54805
|
+
|
|
54806
|
+
if (touched[index]) {
|
|
54807
|
+
var _touched = [].concat(touched);
|
|
54808
|
+
|
|
54809
|
+
_touched[index].time = true;
|
|
54810
|
+
setTouched(_touched);
|
|
54811
|
+
}
|
|
54425
54812
|
},
|
|
54426
54813
|
KeyboardButtonProps: {
|
|
54427
54814
|
"aria-label": "change date"
|
|
54428
54815
|
}
|
|
54816
|
+
}), ((_touched$index2 = touched[index]) === null || _touched$index2 === void 0 ? void 0 : _touched$index2.time) && ((_errors$3 = errors["" + index]) === null || _errors$3 === void 0 ? void 0 : _errors$3.time) && React__default.createElement(marioCore.ErrorHandler, {
|
|
54817
|
+
text: (_errors$4 = errors["" + index]) === null || _errors$4 === void 0 ? void 0 : _errors$4.time
|
|
54429
54818
|
}), React__default.createElement(pickers.KeyboardDatePicker, {
|
|
54430
54819
|
fullWidth: true,
|
|
54431
54820
|
inputVariant: "outlined",
|
|
@@ -54440,10 +54829,19 @@ var EditCheckPoint = function EditCheckPoint(props) {
|
|
|
54440
54829
|
},
|
|
54441
54830
|
onBlur: function onBlur() {
|
|
54442
54831
|
setFieldValue("[" + index + "]endTime", i.endTime || "");
|
|
54832
|
+
|
|
54833
|
+
if (touched[index]) {
|
|
54834
|
+
var _touched = [].concat(touched);
|
|
54835
|
+
|
|
54836
|
+
_touched[index].endTime = true;
|
|
54837
|
+
setTouched(_touched);
|
|
54838
|
+
}
|
|
54443
54839
|
},
|
|
54444
54840
|
KeyboardButtonProps: {
|
|
54445
54841
|
"aria-label": "change date"
|
|
54446
54842
|
}
|
|
54843
|
+
}), ((_touched$index3 = touched[index]) === null || _touched$index3 === void 0 ? void 0 : _touched$index3.endTime) && ((_errors$5 = errors["" + index]) === null || _errors$5 === void 0 ? void 0 : _errors$5.endTime) && React__default.createElement(marioCore.ErrorHandler, {
|
|
54844
|
+
text: "End time is required"
|
|
54447
54845
|
})), React__default.createElement(core.Grid, {
|
|
54448
54846
|
className: "" + styles$8["box-select"]
|
|
54449
54847
|
}, React__default.createElement(InputComponent, {
|
|
@@ -54480,8 +54878,8 @@ var EditCheckPoint = function EditCheckPoint(props) {
|
|
|
54480
54878
|
variant: "outlined"
|
|
54481
54879
|
}));
|
|
54482
54880
|
}
|
|
54483
|
-
})), ((_touched$
|
|
54484
|
-
text: (_errors$
|
|
54881
|
+
})), ((_touched$index4 = touched[index]) === null || _touched$index4 === void 0 ? void 0 : _touched$index4.status) && ((_errors$6 = errors["" + index]) === null || _errors$6 === void 0 ? void 0 : _errors$6.status) && React__default.createElement(marioCore.ErrorHandler, {
|
|
54882
|
+
text: (_errors$7 = errors["" + index]) === null || _errors$7 === void 0 ? void 0 : _errors$7.status
|
|
54485
54883
|
}), React__default.createElement(core.Grid, {
|
|
54486
54884
|
className: "" + styles$8["box-title-upload"]
|
|
54487
54885
|
}, React__default.createElement(core.Typography, {
|
|
@@ -54523,10 +54921,9 @@ var EditCheckPoint = function EditCheckPoint(props) {
|
|
|
54523
54921
|
},
|
|
54524
54922
|
className: styles$8["btn-delete"] + " " + styles$8["fit-content"] + " " + (!isActiveDelete(i) && styles$8["btn-inActive"])
|
|
54525
54923
|
}, screenWidth > 768 && React__default.createElement(core.Typography, null, "DELETE"), React__default.createElement(DeleteIcon, null))))));
|
|
54526
|
-
})), React__default.createElement(core.Grid, null, React__default.createElement(core.TextField, {
|
|
54924
|
+
})), React__default.createElement(core.Grid, null, (getOneData === null || getOneData === void 0 ? void 0 : getOneData.source) !== "IEP" && React__default.createElement(core.TextField, {
|
|
54527
54925
|
multiline: true,
|
|
54528
54926
|
fullWidth: true,
|
|
54529
|
-
disabled: !!getOneData && getOneData.source !== "IEP" ? false : true,
|
|
54530
54927
|
value: addValue,
|
|
54531
54928
|
variant: "outlined",
|
|
54532
54929
|
onChange: function onChange(event) {
|
|
@@ -54617,6 +55014,9 @@ var GoalDetail = function GoalDetail() {
|
|
|
54617
55014
|
setDataDetail = _useGoalDetail.setDataDetail,
|
|
54618
55015
|
isParent = _useGoalDetail.isParent;
|
|
54619
55016
|
|
|
55017
|
+
var domainName = window.location.hostname;
|
|
55018
|
+
var isCheckDomainRubyoung = domainName.includes('rubyyoung');
|
|
55019
|
+
|
|
54620
55020
|
var handleClickOpenConfirm = function handleClickOpenConfirm() {
|
|
54621
55021
|
setOpenDialogConfirm(true);
|
|
54622
55022
|
};
|
|
@@ -54654,8 +55054,13 @@ var GoalDetail = function GoalDetail() {
|
|
|
54654
55054
|
};
|
|
54655
55055
|
|
|
54656
55056
|
var handleDelete = function handleDelete() {
|
|
54657
|
-
|
|
54658
|
-
|
|
55057
|
+
try {
|
|
55058
|
+
return Promise.resolve(deleteById(id)).then(function () {
|
|
55059
|
+
handleClickOpen();
|
|
55060
|
+
});
|
|
55061
|
+
} catch (e) {
|
|
55062
|
+
return Promise.reject(e);
|
|
55063
|
+
}
|
|
54659
55064
|
};
|
|
54660
55065
|
|
|
54661
55066
|
var StepIcon = function StepIcon(status) {
|
|
@@ -54743,7 +55148,7 @@ var GoalDetail = function GoalDetail() {
|
|
|
54743
55148
|
className: "" + styles$8["content-title"]
|
|
54744
55149
|
}, "Status"), React__default.createElement(core.Typography, {
|
|
54745
55150
|
className: "" + styles$8["content"]
|
|
54746
|
-
}, !!(getOneData !== null && getOneData !== void 0 && getOneData.status) &&
|
|
55151
|
+
}, !!(getOneData !== null && getOneData !== void 0 && getOneData.status) && handleShowStatus(getOneData === null || getOneData === void 0 ? void 0 : getOneData.status))), React__default.createElement(core.Grid, {
|
|
54747
55152
|
className: "" + styles$8["box-content"]
|
|
54748
55153
|
}, React__default.createElement(core.Typography, {
|
|
54749
55154
|
className: "" + styles$8["content-title"]
|
|
@@ -54771,7 +55176,7 @@ var GoalDetail = function GoalDetail() {
|
|
|
54771
55176
|
defaultValue: "top",
|
|
54772
55177
|
className: "" + styles$8["baseline-group"]
|
|
54773
55178
|
}, !!getOneData && getOneData.goalBaselines ? getOneData.goalBaselines.map(function (i) {
|
|
54774
|
-
return React__default.createElement(core.FormControlLabel, {
|
|
55179
|
+
return React__default.createElement(core.Grid, null, !isCheckDomainRubyoung ? React__default.createElement(core.FormControlLabel, {
|
|
54775
55180
|
value: !!i.name ? i.name : "",
|
|
54776
55181
|
onChange: function onChange(e) {
|
|
54777
55182
|
return handleCheckedBaseLine(e);
|
|
@@ -54782,7 +55187,9 @@ var GoalDetail = function GoalDetail() {
|
|
|
54782
55187
|
checked: (getOneData === null || getOneData === void 0 ? void 0 : getOneData.baseLineChecked) === i.name
|
|
54783
55188
|
}),
|
|
54784
55189
|
label: !!i.name ? i.name : ""
|
|
54785
|
-
})
|
|
55190
|
+
}) : React__default.createElement(core.Typography, {
|
|
55191
|
+
className: "" + styles$8["baseline-content"]
|
|
55192
|
+
}, i.name));
|
|
54786
55193
|
}) : null))), (isAllowedEdit && !isTeacher || isTeacher) && !isParent && React__default.createElement(core.Grid, {
|
|
54787
55194
|
onClick: function onClick() {
|
|
54788
55195
|
return handleClickOpenDialogBaseLine();
|
|
@@ -54852,6 +55259,9 @@ var NewGoal = function NewGoal() {
|
|
|
54852
55259
|
var _useParams = reactRouterDom.useParams(),
|
|
54853
55260
|
studentId = _useParams.studentId;
|
|
54854
55261
|
|
|
55262
|
+
var domainName = window.location.hostname;
|
|
55263
|
+
var isCheckDomainRubyoung = domainName.includes("rubyyoung");
|
|
55264
|
+
|
|
54855
55265
|
var _useState = React.useState([]),
|
|
54856
55266
|
goalCheckpoint = _useState[0],
|
|
54857
55267
|
setGoalCheckpoint = _useState[1];
|
|
@@ -54939,7 +55349,7 @@ var NewGoal = function NewGoal() {
|
|
|
54939
55349
|
enableReinitialize: true,
|
|
54940
55350
|
onSubmit: function onSubmit(values) {
|
|
54941
55351
|
var result = _extends({}, values, {
|
|
54942
|
-
status: values.status.replace(/\s/g,
|
|
55352
|
+
status: values.status.replace(/\s/g, "")
|
|
54943
55353
|
});
|
|
54944
55354
|
|
|
54945
55355
|
create(result, goalBaselines, goalCheckpoint);
|
|
@@ -55019,13 +55429,15 @@ var NewGoal = function NewGoal() {
|
|
|
55019
55429
|
defaultValue: "top",
|
|
55020
55430
|
className: "" + styles$8["baseline-group"]
|
|
55021
55431
|
}, goalBaselines.length > 0 ? goalBaselines.map(function (i) {
|
|
55022
|
-
return React__default.createElement(core.FormControlLabel, {
|
|
55432
|
+
return React__default.createElement(core.Grid, null, !isCheckDomainRubyoung ? React__default.createElement(core.FormControlLabel, {
|
|
55023
55433
|
value: i.name || "",
|
|
55024
55434
|
control: React__default.createElement(core.Radio, {
|
|
55025
55435
|
color: "primary"
|
|
55026
55436
|
}),
|
|
55027
55437
|
label: i.name || ""
|
|
55028
|
-
})
|
|
55438
|
+
}) : React__default.createElement(core.Typography, {
|
|
55439
|
+
className: "" + styles$8["baseline-content"]
|
|
55440
|
+
}, i.name));
|
|
55029
55441
|
}) : null))), React__default.createElement(core.Grid, {
|
|
55030
55442
|
onClick: function onClick() {
|
|
55031
55443
|
return handleClickOpenDialogBaseLine();
|
|
@@ -55347,65 +55759,10 @@ var MyClassReflection = function MyClassReflection() {
|
|
|
55347
55759
|
};
|
|
55348
55760
|
|
|
55349
55761
|
var handleSort = function handleSort(e) {
|
|
55350
|
-
|
|
55351
|
-
filters.sortOrder === "DESC" ?
|
|
55352
|
-
|
|
55353
|
-
|
|
55354
|
-
}) : changeFilters({
|
|
55355
|
-
sortOrder: "DESC",
|
|
55356
|
-
sortBy: "classDate"
|
|
55357
|
-
});
|
|
55358
|
-
}
|
|
55359
|
-
|
|
55360
|
-
if (e === "classType") {
|
|
55361
|
-
filters.sortOrder === "DESC" ? changeFilters({
|
|
55362
|
-
sortOrder: "ASC",
|
|
55363
|
-
sortBy: "classType"
|
|
55364
|
-
}) : changeFilters({
|
|
55365
|
-
sortOrder: "DESC",
|
|
55366
|
-
sortBy: "classType"
|
|
55367
|
-
});
|
|
55368
|
-
}
|
|
55369
|
-
|
|
55370
|
-
if (e === "student") {
|
|
55371
|
-
filters.sortOrder === "DESC" ? changeFilters({
|
|
55372
|
-
sortOrder: "ASC",
|
|
55373
|
-
sortBy: "student"
|
|
55374
|
-
}) : changeFilters({
|
|
55375
|
-
sortOrder: "DESC",
|
|
55376
|
-
sortBy: "student"
|
|
55377
|
-
});
|
|
55378
|
-
}
|
|
55379
|
-
|
|
55380
|
-
if (e === "sentDate") {
|
|
55381
|
-
filters.sortOrder === "DESC" ? changeFilters({
|
|
55382
|
-
sortOrder: "ASC",
|
|
55383
|
-
sortBy: "sentDate"
|
|
55384
|
-
}) : changeFilters({
|
|
55385
|
-
sortOrder: "DESC",
|
|
55386
|
-
sortBy: "sentDate"
|
|
55387
|
-
});
|
|
55388
|
-
}
|
|
55389
|
-
|
|
55390
|
-
if (e === "status") {
|
|
55391
|
-
filters.sortOrder === "DESC" ? changeFilters({
|
|
55392
|
-
sortOrder: "ASC",
|
|
55393
|
-
sortBy: "status"
|
|
55394
|
-
}) : changeFilters({
|
|
55395
|
-
sortOrder: "DESC",
|
|
55396
|
-
sortBy: "status"
|
|
55397
|
-
});
|
|
55398
|
-
}
|
|
55399
|
-
|
|
55400
|
-
if (e === "grade") {
|
|
55401
|
-
filters.sortOrder === "DESC" ? changeFilters({
|
|
55402
|
-
sortOrder: "ASC",
|
|
55403
|
-
sortBy: "grade"
|
|
55404
|
-
}) : changeFilters({
|
|
55405
|
-
sortOrder: "DESC",
|
|
55406
|
-
sortBy: "grade"
|
|
55407
|
-
});
|
|
55408
|
-
}
|
|
55762
|
+
changeFilters({
|
|
55763
|
+
sortOrder: filters.sortOrder === "DESC" ? "ASC" : "DESC",
|
|
55764
|
+
sortBy: e
|
|
55765
|
+
});
|
|
55409
55766
|
};
|
|
55410
55767
|
|
|
55411
55768
|
var handleChangeRowsPerPage = function handleChangeRowsPerPage(event) {
|
|
@@ -56788,6 +57145,8 @@ var useAddClassReflection = function useAddClassReflection() {
|
|
|
56788
57145
|
};
|
|
56789
57146
|
};
|
|
56790
57147
|
|
|
57148
|
+
var domainName$5 = window.location.hostname;
|
|
57149
|
+
var isCheckDomainRubyoung$5 = domainName$5.includes('rubyyoung');
|
|
56791
57150
|
var StyledTableCell = styles$O.withStyles(function (theme) {
|
|
56792
57151
|
return {
|
|
56793
57152
|
head: {
|
|
@@ -56858,11 +57217,11 @@ var AddClassReflection = function AddClassReflection() {
|
|
|
56858
57217
|
onClick: function onClick() {
|
|
56859
57218
|
return history.goBack();
|
|
56860
57219
|
}
|
|
56861
|
-
}), " Add Class Reflections"), React__default.createElement("div", {
|
|
57220
|
+
}), " ", isCheckDomainRubyoung$5 ? "Reflections" : "Add Class Reflections"), React__default.createElement("div", {
|
|
56862
57221
|
className: styles$E["btn-action"]
|
|
56863
57222
|
}, React__default.createElement(AddButton, {
|
|
56864
57223
|
handleClickOpen: saveDataClassReflection,
|
|
56865
|
-
label: "Add"
|
|
57224
|
+
label: isCheckDomainRubyoung$5 ? "Add Reflection" : "Add"
|
|
56866
57225
|
}))), React__default.createElement(core.Grid, {
|
|
56867
57226
|
className: styles$E["body-table"]
|
|
56868
57227
|
}, React__default.createElement(TableContainer, {
|
|
@@ -56905,7 +57264,7 @@ var AddClassReflection = function AddClassReflection() {
|
|
|
56905
57264
|
}, "External Link"), isTeacher && React__default.createElement(StyledTableCell, {
|
|
56906
57265
|
align: "center",
|
|
56907
57266
|
className: styles$E["header-title"]
|
|
56908
|
-
}, "Send Now"))), React__default.createElement(TableBody, null, rowClassReflection.map(function (row) {
|
|
57267
|
+
}, isCheckDomainRubyoung$5 ? "Send" : "Send Now"))), React__default.createElement(TableBody, null, rowClassReflection.map(function (row) {
|
|
56909
57268
|
return React__default.createElement(StyledTableRow, {
|
|
56910
57269
|
key: row.id
|
|
56911
57270
|
}, React__default.createElement(StyledTableCell, {
|
|
@@ -57889,6 +58248,7 @@ var TrainingLink = function TrainingLink() {
|
|
|
57889
58248
|
});
|
|
57890
58249
|
var isTeacher = user.roles.includes("Teacher") || user.roles.includes("Assistant");
|
|
57891
58250
|
var link = isTeacher ? linkTraining.teacherTraining : linkTraining.studentTraining;
|
|
58251
|
+
document.title = "Training";
|
|
57892
58252
|
return React__default.createElement(core.Grid, null, React__default.createElement(core.Grid, {
|
|
57893
58253
|
className: "" + styles$I["header-page"]
|
|
57894
58254
|
}, React__default.createElement(core.Typography, {
|
|
@@ -59445,13 +59805,13 @@ var ExternalClassReflection = function ExternalClassReflection() {
|
|
|
59445
59805
|
}))))));
|
|
59446
59806
|
};
|
|
59447
59807
|
|
|
59448
|
-
var _excluded$
|
|
59808
|
+
var _excluded$b = ["children", "value", "index"];
|
|
59449
59809
|
|
|
59450
59810
|
var TabPanel$7 = function TabPanel(props) {
|
|
59451
59811
|
var children = props.children,
|
|
59452
59812
|
value = props.value,
|
|
59453
59813
|
index = props.index,
|
|
59454
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
59814
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$b);
|
|
59455
59815
|
|
|
59456
59816
|
return React__default.createElement("div", Object.assign({
|
|
59457
59817
|
role: "tabpanel",
|
|
@@ -59545,6 +59905,8 @@ var CustomTabs$2 = function CustomTabs(props) {
|
|
|
59545
59905
|
});
|
|
59546
59906
|
var classes = useStyles();
|
|
59547
59907
|
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
|
|
59908
|
+
var domainName = window.location.hostname;
|
|
59909
|
+
var isCheckDomainRubyoung = domainName.includes('rubyyoung');
|
|
59548
59910
|
|
|
59549
59911
|
var renderContent = function renderContent() {
|
|
59550
59912
|
var activeTab = tabs.map(function (t) {
|
|
@@ -59569,7 +59931,7 @@ var CustomTabs$2 = function CustomTabs(props) {
|
|
|
59569
59931
|
className: classes.title
|
|
59570
59932
|
}, title), screenWidth > 600 && React__default.createElement(AddButton, {
|
|
59571
59933
|
handleClickOpen: handleNavigateToAddPage,
|
|
59572
|
-
label: "Add Class Reflection",
|
|
59934
|
+
label: isCheckDomainRubyoung ? "Add Reflection" : "Add Class Reflection",
|
|
59573
59935
|
fontSize: buttonFontSize(defaultFont)
|
|
59574
59936
|
})), React__default.createElement(core.Grid, {
|
|
59575
59937
|
item: true,
|
|
@@ -59609,16 +59971,18 @@ var CustomTabs$2 = function CustomTabs(props) {
|
|
|
59609
59971
|
}, renderContent());
|
|
59610
59972
|
};
|
|
59611
59973
|
|
|
59974
|
+
var domainName$6 = window.location.hostname;
|
|
59975
|
+
var isCheckDomainRubyoung$6 = domainName$6.includes('rubyyoung');
|
|
59612
59976
|
var tabs$5 = [{
|
|
59613
59977
|
path: "/class-reflection/my-class-reflection",
|
|
59614
|
-
title: "My Class Reflection",
|
|
59978
|
+
title: isCheckDomainRubyoung$6 ? "Reflection" : "My Class Reflection",
|
|
59615
59979
|
component: MyClassReflection
|
|
59616
59980
|
}, {
|
|
59617
59981
|
path: "/class-reflection/external-class-reflection",
|
|
59618
|
-
title: "External Class Reflection",
|
|
59982
|
+
title: isCheckDomainRubyoung$6 ? "External Reflection" : "External Class Reflection",
|
|
59619
59983
|
component: ExternalClassReflection
|
|
59620
59984
|
}];
|
|
59621
|
-
var title$3 = "Class Reflections";
|
|
59985
|
+
var title$3 = isCheckDomainRubyoung$6 ? "Reflections" : "Class Reflections";
|
|
59622
59986
|
|
|
59623
59987
|
var TeacherClassReflection = function TeacherClassReflection() {
|
|
59624
59988
|
return React__default.createElement(Box, null, React__default.createElement(CustomTabs$2, {
|
|
@@ -60028,7 +60392,7 @@ var TeachingStrategiesAdd = function TeachingStrategiesAdd() {
|
|
|
60028
60392
|
onClick: handleGetBack
|
|
60029
60393
|
}), React__default.createElement("span", {
|
|
60030
60394
|
className: "" + styles$N["text-name-header"]
|
|
60031
|
-
}, "Select Strategies")), React__default.createElement(core.Button, {
|
|
60395
|
+
}, "Select Teaching Strategies")), React__default.createElement(core.Button, {
|
|
60032
60396
|
variant: "contained",
|
|
60033
60397
|
onClick: handleCreateTeachingStrategy,
|
|
60034
60398
|
className: "" + styles$N["button-add"]
|
|
@@ -60057,7 +60421,7 @@ var TeachingStrategiesAdd = function TeachingStrategiesAdd() {
|
|
|
60057
60421
|
className: "" + styles$N["best-fit-input"]
|
|
60058
60422
|
}, React__default.createElement(MultipleSelectBox, {
|
|
60059
60423
|
label: "Select Best Fit",
|
|
60060
|
-
options: bestFits,
|
|
60424
|
+
options: bestFits.sort(),
|
|
60061
60425
|
selectedChange: changeSelectedBetsFit,
|
|
60062
60426
|
width: "100%",
|
|
60063
60427
|
backgroundLabel: "white"
|