mario-education 2.4.299-layout → 2.4.301-layout
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { api, BASE_URL, useTranslation as useTranslation$1, setAlert, CustomSelector, LinkEditButton, DeleteButtonIcon, EmptyDataAlert, CommonModal, RequiredLabel, ErrorHandler, useFilters, setLoading, setClassList, setModal, QuitPrompt, AddButton, CustomPagination, setConferenceRubricList, SearchBoxContainer, getTextFromHTML, generateRandomString, SuggestionCategorySelector, CreatableSelector, setSuggestionList, setStrategyList, UploadFileButton, systemStudentBadge, setBadgeList, getFileUrl, setGoalExampleList, setSubjectList, setLearningSupportCategoryList, apiUpload, utcToLocalTime, setBandScoreList, EditButtonIcon, DATE_FORMAT, setSchoolBlankDayList, SearchBox, CustomTab, SkillList, QUESTION_TYPES, EMOTIONS, QUESTION_TYPES_OPTIONS, setQuestionList, QuestionCategorySelector, setQuestionByCategory, setSelectQuestion, setResetQuestionList, setMoveItemQuestion, setEditItemQuesion, DEFAULT_FILTER as DEFAULT_FILTER$2, setReflectionList, setReflectionResultList, DATE_RESULT, StarRatingSelector, QuestionTypeSelector, CategorySelector as CategorySelector$1,
|
|
1
|
+
import { api, BASE_URL, useTranslation as useTranslation$1, setAlert, CustomSelector, LinkEditButton, DeleteButtonIcon, EmptyDataAlert, CommonModal, RequiredLabel, ErrorHandler, useFilters, setLoading, setClassList, setModal, QuitPrompt, AddButton, CustomPagination, setConferenceRubricList, SearchBoxContainer, getTextFromHTML, generateRandomString, SuggestionCategorySelector, CreatableSelector, setSuggestionList, setStrategyList, UploadFileButton, systemStudentBadge, setBadgeList, getFileUrl, setGoalExampleList, setSubjectList, setLearningSupportCategoryList, apiUpload, utcToLocalTime, setBandScoreList, EditButtonIcon, DATE_FORMAT, setSchoolBlankDayList, SearchBox, CustomTab, SkillList, QUESTION_TYPES, EMOTIONS, QUESTION_TYPES_OPTIONS, setQuestionList, QuestionCategorySelector, setQuestionByCategory, setSelectQuestion, setResetQuestionList, setMoveItemQuestion, setEditItemQuesion, DEFAULT_FILTER as DEFAULT_FILTER$2, setReflectionList, setReflectionResultList, DATE_RESULT, StarRatingSelector, QuestionTypeSelector, CategorySelector as CategorySelector$1, editorConfig, DetailActionButtons, setAssessmentList, FULL_DATE_RESULT, setFeedbackList, TINY_MCE_API_KEY, setTutorialScreenList, setQuestionCateList, setAssignmentList, setSessionTemplateList, setSessionTemplateGeneralClassList, setCustomAlertList, systemCertificateUpload, setCertificateList, getStaticFileUrl, ACCESS_TOKEN, reset, NOTIFICATION_ALERT_KEY, setUser, setSandboxMode, DEFAULT_LANGUAGE_CODE, LANGUAGES, SUPPORTED_LANGUAGES_CODE, setLanguage, showMenuBar, showFontSize, NOTIFICATION_CHANNEL, setEnableIEP, setConversationOneToOne, setEnableSurvey, canAccessRoute, initAmplitude, firstCheckToken, getInfo, Loading as Loading$1, Dashboard as Dashboard$1, TheContent, LICENSE_AGGRID } from 'mario-core';
|
|
2
2
|
import { LicenseManager } from '@ag-grid-enterprise/core';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useState, useRef, useCallback, useEffect, forwardRef, useMemo, Fragment as Fragment$1, memo, useLayoutEffect, useContext, createContext, createElement, Component } from 'react';
|
|
@@ -1654,6 +1654,7 @@ var SkillSelector = function SkillSelector(_ref) {
|
|
|
1654
1654
|
};
|
|
1655
1655
|
|
|
1656
1656
|
var QUESTION_URL = BASE_URL + "/api/question";
|
|
1657
|
+
var TINY_MCE_KEY_URL = "/api/TinyMCEKey";
|
|
1657
1658
|
var get$2 = function get(filter) {
|
|
1658
1659
|
return api.get(QUESTION_URL, {
|
|
1659
1660
|
params: filter
|
|
@@ -1689,6 +1690,9 @@ var getLabelQuestions = function getLabelQuestions(filter) {
|
|
|
1689
1690
|
params: filter
|
|
1690
1691
|
});
|
|
1691
1692
|
};
|
|
1693
|
+
var getTinyMCEKeyApi = function getTinyMCEKeyApi() {
|
|
1694
|
+
return api.get("" + TINY_MCE_KEY_URL);
|
|
1695
|
+
};
|
|
1692
1696
|
|
|
1693
1697
|
var QuestionSelector = function QuestionSelector(_ref) {
|
|
1694
1698
|
var value = _ref.value,
|
|
@@ -14458,7 +14462,9 @@ var SliderScale = function SliderScale(_ref) {
|
|
|
14458
14462
|
id: "combo-box-demo",
|
|
14459
14463
|
freeSolo: true,
|
|
14460
14464
|
options: fromLabels.filter(function (r) {
|
|
14461
|
-
|
|
14465
|
+
var _fromLabel$toLocaleLo;
|
|
14466
|
+
|
|
14467
|
+
return !(fromLabel !== null && fromLabel !== void 0 && fromLabel.trim()) ? true : r.toLocaleLowerCase().includes(fromLabel === null || fromLabel === void 0 ? void 0 : (_fromLabel$toLocaleLo = fromLabel.toLocaleLowerCase()) === null || _fromLabel$toLocaleLo === void 0 ? void 0 : _fromLabel$toLocaleLo.trim());
|
|
14462
14468
|
}) || [],
|
|
14463
14469
|
value: fromLabel || null,
|
|
14464
14470
|
onChange: function onChange(_e, value) {
|
|
@@ -14479,7 +14485,9 @@ var SliderScale = function SliderScale(_ref) {
|
|
|
14479
14485
|
id: "combo-box-demo",
|
|
14480
14486
|
freeSolo: true,
|
|
14481
14487
|
options: toLabels.filter(function (r) {
|
|
14482
|
-
|
|
14488
|
+
var _toLabel$toLocaleLowe;
|
|
14489
|
+
|
|
14490
|
+
return !(toLabel !== null && toLabel !== void 0 && toLabel.trim()) ? true : r.toLocaleLowerCase().includes(toLabel === null || toLabel === void 0 ? void 0 : (_toLabel$toLocaleLowe = toLabel.toLocaleLowerCase()) === null || _toLabel$toLocaleLowe === void 0 ? void 0 : _toLabel$toLocaleLowe.trim());
|
|
14483
14491
|
}) || [],
|
|
14484
14492
|
value: toLabel || null,
|
|
14485
14493
|
onChange: function onChange(_e, value) {
|
|
@@ -15066,8 +15074,8 @@ var initValue$f = {
|
|
|
15066
15074
|
isDefaultQuestionGeneralClassTeacher: null,
|
|
15067
15075
|
categoryId: 0,
|
|
15068
15076
|
explainAnswer: "",
|
|
15069
|
-
fromLabel: "",
|
|
15070
|
-
toLabel: "",
|
|
15077
|
+
fromLabel: "Never",
|
|
15078
|
+
toLabel: "All of the time",
|
|
15071
15079
|
numberOfStars: 0,
|
|
15072
15080
|
answers: [],
|
|
15073
15081
|
subQuestions: [],
|
|
@@ -15108,6 +15116,10 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15108
15116
|
labelQuestions = _useState3[0],
|
|
15109
15117
|
setLabelQuestions = _useState3[1];
|
|
15110
15118
|
|
|
15119
|
+
var _useState4 = useState(""),
|
|
15120
|
+
tinyMCEKey = _useState4[0],
|
|
15121
|
+
setTinyMCEKey = _useState4[1];
|
|
15122
|
+
|
|
15111
15123
|
var getMinIdCategory = function getMinIdCategory(categories) {
|
|
15112
15124
|
var sortedCategory = categories.sort(function (c1, c2) {
|
|
15113
15125
|
return c1.id - c2.id;
|
|
@@ -15116,7 +15128,7 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15116
15128
|
return (firstCategory === null || firstCategory === void 0 ? void 0 : firstCategory.id) || 1;
|
|
15117
15129
|
};
|
|
15118
15130
|
|
|
15119
|
-
var
|
|
15131
|
+
var getTinyMCEKey = function getTinyMCEKey() {
|
|
15120
15132
|
try {
|
|
15121
15133
|
var _temp3 = function _temp3() {
|
|
15122
15134
|
dispatch(setLoading(false));
|
|
@@ -15125,6 +15137,37 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15125
15137
|
dispatch(setLoading(true));
|
|
15126
15138
|
|
|
15127
15139
|
var _temp4 = _catch(function () {
|
|
15140
|
+
return Promise.resolve(getTinyMCEKeyApi()).then(function (res) {
|
|
15141
|
+
var data = res.data;
|
|
15142
|
+
|
|
15143
|
+
if (!!data) {
|
|
15144
|
+
setTinyMCEKey(data.key);
|
|
15145
|
+
}
|
|
15146
|
+
});
|
|
15147
|
+
}, function (err) {
|
|
15148
|
+
var _err$response, _err$response$data;
|
|
15149
|
+
|
|
15150
|
+
dispatch(setAlert({
|
|
15151
|
+
type: "danger",
|
|
15152
|
+
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) || "Get question failed"
|
|
15153
|
+
}));
|
|
15154
|
+
});
|
|
15155
|
+
|
|
15156
|
+
return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(_temp3) : _temp3(_temp4));
|
|
15157
|
+
} catch (e) {
|
|
15158
|
+
return Promise.reject(e);
|
|
15159
|
+
}
|
|
15160
|
+
};
|
|
15161
|
+
|
|
15162
|
+
var getQuestionCategories = function getQuestionCategories() {
|
|
15163
|
+
try {
|
|
15164
|
+
var _temp7 = function _temp7() {
|
|
15165
|
+
dispatch(setLoading(false));
|
|
15166
|
+
};
|
|
15167
|
+
|
|
15168
|
+
dispatch(setLoading(true));
|
|
15169
|
+
|
|
15170
|
+
var _temp8 = _catch(function () {
|
|
15128
15171
|
return Promise.resolve(get$i()).then(function (res) {
|
|
15129
15172
|
var items = res.data.items;
|
|
15130
15173
|
var categoryId = getMinIdCategory(items);
|
|
@@ -15133,15 +15176,15 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15133
15176
|
}));
|
|
15134
15177
|
});
|
|
15135
15178
|
}, function (err) {
|
|
15136
|
-
var _err$
|
|
15179
|
+
var _err$response2, _err$response2$data;
|
|
15137
15180
|
|
|
15138
15181
|
dispatch(setAlert({
|
|
15139
15182
|
type: "danger",
|
|
15140
|
-
message: ((_err$
|
|
15183
|
+
message: ((_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : _err$response2$data.title) || "Get question failed"
|
|
15141
15184
|
}));
|
|
15142
15185
|
});
|
|
15143
15186
|
|
|
15144
|
-
return Promise.resolve(
|
|
15187
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(_temp7) : _temp7(_temp8));
|
|
15145
15188
|
} catch (e) {
|
|
15146
15189
|
return Promise.reject(e);
|
|
15147
15190
|
}
|
|
@@ -15160,13 +15203,13 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15160
15203
|
}, [id, type]);
|
|
15161
15204
|
var getData = useCallback(function () {
|
|
15162
15205
|
try {
|
|
15163
|
-
var
|
|
15206
|
+
var _temp11 = function _temp11() {
|
|
15164
15207
|
dispatch(setLoading(false));
|
|
15165
15208
|
};
|
|
15166
15209
|
|
|
15167
15210
|
dispatch(setLoading(true));
|
|
15168
15211
|
|
|
15169
|
-
var
|
|
15212
|
+
var _temp12 = _catch(function () {
|
|
15170
15213
|
return Promise.resolve(getById$2(id)).then(function (res) {
|
|
15171
15214
|
var _res$data$category, _res$data, _res$data2, _res$data3;
|
|
15172
15215
|
|
|
@@ -15181,15 +15224,15 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15181
15224
|
}
|
|
15182
15225
|
});
|
|
15183
15226
|
}, function (err) {
|
|
15184
|
-
var _err$
|
|
15227
|
+
var _err$response3, _err$response3$data;
|
|
15185
15228
|
|
|
15186
15229
|
dispatch(setAlert({
|
|
15187
15230
|
type: "danger",
|
|
15188
|
-
message: ((_err$
|
|
15231
|
+
message: ((_err$response3 = err.response) === null || _err$response3 === void 0 ? void 0 : (_err$response3$data = _err$response3.data) === null || _err$response3$data === void 0 ? void 0 : _err$response3$data.title) || "Get key failed"
|
|
15189
15232
|
}));
|
|
15190
15233
|
});
|
|
15191
15234
|
|
|
15192
|
-
return Promise.resolve(
|
|
15235
|
+
return Promise.resolve(_temp12 && _temp12.then ? _temp12.then(_temp11) : _temp11(_temp12));
|
|
15193
15236
|
} catch (e) {
|
|
15194
15237
|
return Promise.reject(e);
|
|
15195
15238
|
}
|
|
@@ -15206,14 +15249,14 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15206
15249
|
try {
|
|
15207
15250
|
var _exit2 = false;
|
|
15208
15251
|
|
|
15209
|
-
var
|
|
15252
|
+
var _temp15 = function _temp15(_result) {
|
|
15210
15253
|
if (_exit2) return _result;
|
|
15211
15254
|
dispatch(setLoading(false));
|
|
15212
15255
|
};
|
|
15213
15256
|
|
|
15214
15257
|
dispatch(setLoading(true));
|
|
15215
15258
|
|
|
15216
|
-
var
|
|
15259
|
+
var _temp16 = _catch(function () {
|
|
15217
15260
|
var next = !!id ? update$2 : create$2;
|
|
15218
15261
|
var validator = validationChoices(data);
|
|
15219
15262
|
if (validator.isError) throw new Error(validator.message);
|
|
@@ -15226,28 +15269,28 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15226
15269
|
backToList();
|
|
15227
15270
|
});
|
|
15228
15271
|
}, function (err) {
|
|
15229
|
-
var _err$
|
|
15272
|
+
var _err$response4, _err$response4$data;
|
|
15230
15273
|
|
|
15231
15274
|
dispatch(setAlert({
|
|
15232
15275
|
type: "danger",
|
|
15233
|
-
message: ((_err$
|
|
15276
|
+
message: ((_err$response4 = err.response) === null || _err$response4 === void 0 ? void 0 : (_err$response4$data = _err$response4.data) === null || _err$response4$data === void 0 ? void 0 : _err$response4$data.title) || err.message
|
|
15234
15277
|
}));
|
|
15235
15278
|
});
|
|
15236
15279
|
|
|
15237
|
-
return Promise.resolve(
|
|
15280
|
+
return Promise.resolve(_temp16 && _temp16.then ? _temp16.then(_temp15) : _temp15(_temp16));
|
|
15238
15281
|
} catch (e) {
|
|
15239
15282
|
return Promise.reject(e);
|
|
15240
15283
|
}
|
|
15241
15284
|
}, [id]);
|
|
15242
15285
|
var handleGetLabelQuestions = useCallback(function (questionType) {
|
|
15243
15286
|
try {
|
|
15244
|
-
var
|
|
15287
|
+
var _temp19 = function _temp19() {
|
|
15245
15288
|
dispatch(setLoading(false));
|
|
15246
15289
|
};
|
|
15247
15290
|
|
|
15248
15291
|
dispatch(setLoading(true));
|
|
15249
15292
|
|
|
15250
|
-
var
|
|
15293
|
+
var _temp20 = _catch(function () {
|
|
15251
15294
|
return Promise.resolve(getLabelQuestions({
|
|
15252
15295
|
isDefaultSurvey: true,
|
|
15253
15296
|
questionType: questionType
|
|
@@ -15255,19 +15298,22 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15255
15298
|
setLabelQuestions(res.data);
|
|
15256
15299
|
});
|
|
15257
15300
|
}, function (err) {
|
|
15258
|
-
var _err$
|
|
15301
|
+
var _err$response5, _err$response5$data;
|
|
15259
15302
|
|
|
15260
15303
|
dispatch(setAlert({
|
|
15261
15304
|
type: "danger",
|
|
15262
|
-
message: ((_err$
|
|
15305
|
+
message: ((_err$response5 = err.response) === null || _err$response5 === void 0 ? void 0 : (_err$response5$data = _err$response5.data) === null || _err$response5$data === void 0 ? void 0 : _err$response5$data.title) || err.message
|
|
15263
15306
|
}));
|
|
15264
15307
|
});
|
|
15265
15308
|
|
|
15266
|
-
return Promise.resolve(
|
|
15309
|
+
return Promise.resolve(_temp20 && _temp20.then ? _temp20.then(_temp19) : _temp19(_temp20));
|
|
15267
15310
|
} catch (e) {
|
|
15268
15311
|
return Promise.reject(e);
|
|
15269
15312
|
}
|
|
15270
15313
|
}, []);
|
|
15314
|
+
useEffect(function () {
|
|
15315
|
+
getTinyMCEKey();
|
|
15316
|
+
}, []);
|
|
15271
15317
|
return {
|
|
15272
15318
|
questionDetail: questionDetail,
|
|
15273
15319
|
setEditorRef: setEditorRef,
|
|
@@ -15277,7 +15323,8 @@ var useQuestionDetail$1 = function useQuestionDetail(id, type) {
|
|
|
15277
15323
|
setEdited: setEdited,
|
|
15278
15324
|
setEditedTrue: setEditedTrue,
|
|
15279
15325
|
handleGetLabelQuestions: handleGetLabelQuestions,
|
|
15280
|
-
labelQuestions: labelQuestions
|
|
15326
|
+
labelQuestions: labelQuestions,
|
|
15327
|
+
tinyMCEKey: tinyMCEKey
|
|
15281
15328
|
};
|
|
15282
15329
|
};
|
|
15283
15330
|
|
|
@@ -15354,7 +15401,8 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15354
15401
|
setEdited = _useQuestionDetail.setEdited,
|
|
15355
15402
|
setEditedTrue = _useQuestionDetail.setEditedTrue,
|
|
15356
15403
|
handleGetLabelQuestions = _useQuestionDetail.handleGetLabelQuestions,
|
|
15357
|
-
labelQuestions = _useQuestionDetail.labelQuestions
|
|
15404
|
+
labelQuestions = _useQuestionDetail.labelQuestions,
|
|
15405
|
+
tinyMCEKey = _useQuestionDetail.tinyMCEKey;
|
|
15358
15406
|
|
|
15359
15407
|
var header = !!id ? t(EDIT_QUESTION_HEADER) : t(CREATE_QUESTION_HEADER);
|
|
15360
15408
|
var confirmText = !!id ? t("update") : t("create");
|
|
@@ -15459,8 +15507,8 @@ var QuestionDetail = function QuestionDetail() {
|
|
|
15459
15507
|
className: styles["form-question-text"] + " mb-2"
|
|
15460
15508
|
}, React__default.createElement(RequiredLabel, {
|
|
15461
15509
|
text: t("question_text")
|
|
15462
|
-
}), (questionDetail.text || !id) && React__default.createElement(Editor, {
|
|
15463
|
-
apiKey:
|
|
15510
|
+
}), (questionDetail.text || !id) && !!tinyMCEKey && React__default.createElement(Editor, {
|
|
15511
|
+
apiKey: tinyMCEKey,
|
|
15464
15512
|
initialValue: questionDetail.text,
|
|
15465
15513
|
init: editorConfig.question,
|
|
15466
15514
|
onEditorChange: function onEditorChange(content) {
|
|
@@ -37877,18 +37925,13 @@ var Emotion$1 = Emotion;
|
|
|
37877
37925
|
|
|
37878
37926
|
var _extends_1 = createCommonjsModule(function (module) {
|
|
37879
37927
|
function _extends() {
|
|
37880
|
-
module.exports = _extends = Object.assign ? Object.assign.bind() : function (
|
|
37881
|
-
for (var
|
|
37882
|
-
var
|
|
37883
|
-
for (var
|
|
37884
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
37885
|
-
target[key] = source[key];
|
|
37886
|
-
}
|
|
37887
|
-
}
|
|
37928
|
+
return (module.exports = _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
37929
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
37930
|
+
var t = arguments[e];
|
|
37931
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
37888
37932
|
}
|
|
37889
|
-
return
|
|
37890
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37891
|
-
return _extends.apply(this, arguments);
|
|
37933
|
+
return n;
|
|
37934
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _extends.apply(null, arguments);
|
|
37892
37935
|
}
|
|
37893
37936
|
module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
37894
37937
|
});
|
|
@@ -49920,19 +49963,13 @@ module.exports = toPropertyKey, module.exports.__esModule = true, module.exports
|
|
|
49920
49963
|
unwrapExports(toPropertyKey_1);
|
|
49921
49964
|
|
|
49922
49965
|
var defineProperty$1 = createCommonjsModule(function (module) {
|
|
49923
|
-
function _defineProperty(
|
|
49924
|
-
|
|
49925
|
-
|
|
49926
|
-
|
|
49927
|
-
|
|
49928
|
-
|
|
49929
|
-
|
|
49930
|
-
writable: true
|
|
49931
|
-
});
|
|
49932
|
-
} else {
|
|
49933
|
-
obj[key] = value;
|
|
49934
|
-
}
|
|
49935
|
-
return obj;
|
|
49966
|
+
function _defineProperty(e, r, t) {
|
|
49967
|
+
return (r = toPropertyKey_1(r)) in e ? Object.defineProperty(e, r, {
|
|
49968
|
+
value: t,
|
|
49969
|
+
enumerable: !0,
|
|
49970
|
+
configurable: !0,
|
|
49971
|
+
writable: !0
|
|
49972
|
+
}) : e[r] = t, e;
|
|
49936
49973
|
}
|
|
49937
49974
|
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49938
49975
|
});
|
|
@@ -49940,10 +49977,8 @@ module.exports = _defineProperty, module.exports.__esModule = true, module.expor
|
|
|
49940
49977
|
var _defineProperty$2 = unwrapExports(defineProperty$1);
|
|
49941
49978
|
|
|
49942
49979
|
var classCallCheck = createCommonjsModule(function (module) {
|
|
49943
|
-
function _classCallCheck(
|
|
49944
|
-
if (!(
|
|
49945
|
-
throw new TypeError("Cannot call a class as a function");
|
|
49946
|
-
}
|
|
49980
|
+
function _classCallCheck(a, n) {
|
|
49981
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
49947
49982
|
}
|
|
49948
49983
|
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49949
49984
|
});
|
|
@@ -49951,22 +49986,16 @@ module.exports = _classCallCheck, module.exports.__esModule = true, module.expor
|
|
|
49951
49986
|
var _classCallCheck$1 = unwrapExports(classCallCheck);
|
|
49952
49987
|
|
|
49953
49988
|
var createClass = createCommonjsModule(function (module) {
|
|
49954
|
-
function _defineProperties(
|
|
49955
|
-
for (var
|
|
49956
|
-
var
|
|
49957
|
-
|
|
49958
|
-
descriptor.configurable = true;
|
|
49959
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
49960
|
-
Object.defineProperty(target, toPropertyKey_1(descriptor.key), descriptor);
|
|
49989
|
+
function _defineProperties(e, r) {
|
|
49990
|
+
for (var t = 0; t < r.length; t++) {
|
|
49991
|
+
var o = r[t];
|
|
49992
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey_1(o.key), o);
|
|
49961
49993
|
}
|
|
49962
49994
|
}
|
|
49963
|
-
function _createClass(
|
|
49964
|
-
|
|
49965
|
-
|
|
49966
|
-
|
|
49967
|
-
writable: false
|
|
49968
|
-
});
|
|
49969
|
-
return Constructor;
|
|
49995
|
+
function _createClass(e, r, t) {
|
|
49996
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
49997
|
+
writable: !1
|
|
49998
|
+
}), e;
|
|
49970
49999
|
}
|
|
49971
50000
|
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
49972
50001
|
});
|
|
@@ -50130,8 +50159,8 @@ function hasLoadedNamespace(ns, i18n) {
|
|
|
50130
50159
|
}
|
|
50131
50160
|
|
|
50132
50161
|
var arrayWithHoles = createCommonjsModule(function (module) {
|
|
50133
|
-
function _arrayWithHoles(
|
|
50134
|
-
if (Array.isArray(
|
|
50162
|
+
function _arrayWithHoles(r) {
|
|
50163
|
+
if (Array.isArray(r)) return r;
|
|
50135
50164
|
}
|
|
50136
50165
|
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50137
50166
|
});
|
|
@@ -50172,10 +50201,10 @@ module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module
|
|
|
50172
50201
|
unwrapExports(iterableToArrayLimit);
|
|
50173
50202
|
|
|
50174
50203
|
var arrayLikeToArray = createCommonjsModule(function (module) {
|
|
50175
|
-
function _arrayLikeToArray(
|
|
50176
|
-
|
|
50177
|
-
for (var
|
|
50178
|
-
return
|
|
50204
|
+
function _arrayLikeToArray(r, a) {
|
|
50205
|
+
(null == a || a > r.length) && (a = r.length);
|
|
50206
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
50207
|
+
return n;
|
|
50179
50208
|
}
|
|
50180
50209
|
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50181
50210
|
});
|
|
@@ -50183,13 +50212,12 @@ module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exp
|
|
|
50183
50212
|
unwrapExports(arrayLikeToArray);
|
|
50184
50213
|
|
|
50185
50214
|
var unsupportedIterableToArray = createCommonjsModule(function (module) {
|
|
50186
|
-
function _unsupportedIterableToArray(
|
|
50187
|
-
if (
|
|
50188
|
-
|
|
50189
|
-
|
|
50190
|
-
|
|
50191
|
-
|
|
50192
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
|
|
50215
|
+
function _unsupportedIterableToArray(r, a) {
|
|
50216
|
+
if (r) {
|
|
50217
|
+
if ("string" == typeof r) return arrayLikeToArray(r, a);
|
|
50218
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
50219
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;
|
|
50220
|
+
}
|
|
50193
50221
|
}
|
|
50194
50222
|
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50195
50223
|
});
|
|
@@ -50206,8 +50234,8 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
50206
50234
|
unwrapExports(nonIterableRest);
|
|
50207
50235
|
|
|
50208
50236
|
var slicedToArray = createCommonjsModule(function (module) {
|
|
50209
|
-
function _slicedToArray(
|
|
50210
|
-
return arrayWithHoles(
|
|
50237
|
+
function _slicedToArray(r, e) {
|
|
50238
|
+
return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();
|
|
50211
50239
|
}
|
|
50212
50240
|
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
50213
50241
|
});
|
|
@@ -68330,7 +68358,7 @@ var DialogBody = function DialogBody(_ref) {
|
|
|
68330
68358
|
var history = useHistory();
|
|
68331
68359
|
|
|
68332
68360
|
var handleViewResult = function handleViewResult(sessionId, sessionResultId) {
|
|
68333
|
-
var url = "/
|
|
68361
|
+
var url = "/view-session/" + sessionId + "/" + sessionResultId + "?isReadOnly=true";
|
|
68334
68362
|
history.push(url);
|
|
68335
68363
|
};
|
|
68336
68364
|
|
|
@@ -69919,7 +69947,7 @@ var useHeaderSideBar = function useHeaderSideBar(_navigations) {
|
|
|
69919
69947
|
|
|
69920
69948
|
var openProfile = function openProfile() {
|
|
69921
69949
|
handleClose();
|
|
69922
|
-
var url = "/
|
|
69950
|
+
var url = "/admin/user/" + userId;
|
|
69923
69951
|
history.push(url);
|
|
69924
69952
|
};
|
|
69925
69953
|
|