touchstudy-core 0.1.112 → 0.1.114
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.css +4 -0
- package/dist/index.js +72 -265
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +72 -265
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/hooks/useAutoAcademyDomain.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -27,7 +27,6 @@ import Select, { components } from 'react-select';
|
|
27
27
|
import CreatableSelect from 'react-select/creatable';
|
28
28
|
import { Formik, Form, Field, FieldArray } from 'formik';
|
29
29
|
import { CKEditor } from 'ckeditor4-react';
|
30
|
-
import { CellMeasurerCache, CellMeasurer, AutoSizer, List as List$1, MultiGrid } from 'react-virtualized';
|
31
30
|
import Grid$1 from '@mui/material/Grid';
|
32
31
|
import Typography$1 from '@mui/material/Typography';
|
33
32
|
import Card from '@mui/material/Card';
|
@@ -4937,7 +4936,7 @@ var LANGUAGES = [{
|
|
4937
4936
|
var DEFAULT_LANGUAGE = LANGUAGES[0];
|
4938
4937
|
var LOGIN_URL = "/login";
|
4939
4938
|
|
4940
|
-
var useAutoAcademyDomain = function useAutoAcademyDomain(
|
4939
|
+
var useAutoAcademyDomain = function useAutoAcademyDomain(_, history, superUrls, homeUrl, homeAcademyUrl, isAuthPage) {
|
4941
4940
|
if (isAuthPage === void 0) {
|
4942
4941
|
isAuthPage = true;
|
4943
4942
|
}
|
@@ -4983,11 +4982,7 @@ var useAutoAcademyDomain = function useAutoAcademyDomain(logout, history, superU
|
|
4983
4982
|
});
|
4984
4983
|
return;
|
4985
4984
|
}
|
4986
|
-
if (paramAcademyDomain
|
4987
|
-
logout();
|
4988
|
-
return;
|
4989
|
-
}
|
4990
|
-
if (!paramAcademyDomain) {
|
4985
|
+
if (!paramAcademyDomain || academyDomain.trim().toLocaleLowerCase() !== (paramAcademyDomain === null || paramAcademyDomain === void 0 ? void 0 : paramAcademyDomain.trim().toLocaleLowerCase())) {
|
4991
4986
|
if (isLoginPage || isLearningSpace) searchParams["delete"]("domain");else searchParams.set("domain", academyDomain);
|
4992
4987
|
pushTo(history, _extends({}, window.location, {
|
4993
4988
|
search: searchParams.toString()
|
@@ -5840,12 +5835,11 @@ var apiUpload = axios.create({
|
|
5840
5835
|
return i.interceptors.request.use(function (config) {
|
5841
5836
|
var token = getAccessToken();
|
5842
5837
|
var searchParams = new URLSearchParams(window.location.search);
|
5843
|
-
var paramDomain = searchParams.get('domain');
|
5844
5838
|
var paramLang = searchParams.get('lang');
|
5845
5839
|
var academyDomainStorage = getAcademyDomain();
|
5846
5840
|
var isLearningSpace = getLearningSpace();
|
5847
5841
|
var langStorage = getLanguage();
|
5848
|
-
var academyDomain =
|
5842
|
+
var academyDomain = academyDomainStorage;
|
5849
5843
|
var language = paramLang || langStorage;
|
5850
5844
|
if (token) {
|
5851
5845
|
config.headers.Authorization = "Bearer " + token;
|
@@ -9205,74 +9199,7 @@ var ListView = function ListView(_ref) {
|
|
9205
9199
|
}));
|
9206
9200
|
};
|
9207
9201
|
|
9208
|
-
var
|
9209
|
-
var data = props.data,
|
9210
|
-
loading = props.loading,
|
9211
|
-
onLoadMore = props.onLoadMore;
|
9212
|
-
var handleLoadMore = function handleLoadMore() {
|
9213
|
-
if (loading) return;
|
9214
|
-
onLoadMore === null || onLoadMore === void 0 ? void 0 : onLoadMore();
|
9215
|
-
};
|
9216
|
-
var onScroll = function onScroll(_ref) {
|
9217
|
-
var scrollTop = _ref.scrollTop,
|
9218
|
-
clientHeight = _ref.clientHeight,
|
9219
|
-
scrollHeight = _ref.scrollHeight;
|
9220
|
-
if (scrollTop + clientHeight >= scrollHeight - 100) {
|
9221
|
-
handleLoadMore();
|
9222
|
-
}
|
9223
|
-
};
|
9224
|
-
var rowCount = data.length + (loading ? 1 : 0);
|
9225
|
-
return {
|
9226
|
-
rowCount: rowCount,
|
9227
|
-
onScroll: onScroll
|
9228
|
-
};
|
9229
|
-
};
|
9230
|
-
|
9231
|
-
var cellMeasurerCache = new CellMeasurerCache({
|
9232
|
-
fixedWidth: true,
|
9233
|
-
defaultHeight: 50
|
9234
|
-
});
|
9235
|
-
|
9236
|
-
var VirtualListItem = function VirtualListItem(_ref) {
|
9237
|
-
var isLoading = _ref.isLoading,
|
9238
|
-
rowData = _ref.rowData,
|
9239
|
-
style = _ref.style,
|
9240
|
-
parent = _ref.parent,
|
9241
|
-
index = _ref.index,
|
9242
|
-
renderItem = _ref.renderItem,
|
9243
|
-
loadingElement = _ref.loadingElement;
|
9244
|
-
return React__default.createElement(CellMeasurer, {
|
9245
|
-
cache: cellMeasurerCache,
|
9246
|
-
columnIndex: 0,
|
9247
|
-
rowIndex: index,
|
9248
|
-
key: rowData === null || rowData === void 0 ? void 0 : rowData.id,
|
9249
|
-
parent: parent
|
9250
|
-
}, function (_ref2) {
|
9251
|
-
var measure = _ref2.measure;
|
9252
|
-
if (isLoading) {
|
9253
|
-
if (loadingElement) return loadingElement;
|
9254
|
-
return React__default.createElement("div", {
|
9255
|
-
key: rowData === null || rowData === void 0 ? void 0 : rowData.id,
|
9256
|
-
style: style
|
9257
|
-
}, React__default.createElement(Box, {
|
9258
|
-
p: 1,
|
9259
|
-
className: "d-flex justify-content-center align-items-center w-100"
|
9260
|
-
}, React__default.createElement(CircularProgress, {
|
9261
|
-
size: 24,
|
9262
|
-
sx: {
|
9263
|
-
color: "#5d5d5b"
|
9264
|
-
}
|
9265
|
-
})));
|
9266
|
-
}
|
9267
|
-
return React__default.createElement("div", {
|
9268
|
-
key: rowData === null || rowData === void 0 ? void 0 : rowData.id,
|
9269
|
-
style: style,
|
9270
|
-
ref: measure
|
9271
|
-
}, renderItem(rowData, index));
|
9272
|
-
});
|
9273
|
-
};
|
9274
|
-
|
9275
|
-
var VirtualEmptyItem = function VirtualEmptyItem(_ref) {
|
9202
|
+
var VirtualTableEmpty = function VirtualTableEmpty(_ref) {
|
9276
9203
|
var emptyElement = _ref.emptyElement;
|
9277
9204
|
var _useTranslation = useTranslation(),
|
9278
9205
|
t = _useTranslation.t;
|
@@ -9285,186 +9212,59 @@ var VirtualEmptyItem = function VirtualEmptyItem(_ref) {
|
|
9285
9212
|
var VirtualListView = function VirtualListView(props) {
|
9286
9213
|
var data = props.data,
|
9287
9214
|
containerProps = props.containerProps,
|
9288
|
-
listHeight = props.listHeight,
|
9289
|
-
_props$overscanRowCou = props.overscanRowCount,
|
9290
|
-
overscanRowCount = _props$overscanRowCou === void 0 ? 5 : _props$overscanRowCou,
|
9291
9215
|
renderItem = props.renderItem,
|
9292
9216
|
emptyElement = props.emptyElement,
|
9217
|
+
loading = props.loading,
|
9293
9218
|
loadingElement = props.loadingElement;
|
9294
|
-
|
9295
|
-
|
9296
|
-
|
9297
|
-
|
9298
|
-
|
9299
|
-
|
9300
|
-
|
9301
|
-
return React__default.createElement(VirtualListItem, Object.assign({}, props, {
|
9302
|
-
rowData: rowData,
|
9303
|
-
isLoading: isLoading,
|
9304
|
-
renderItem: renderItem,
|
9305
|
-
loadingElement: loadingElement
|
9306
|
-
}));
|
9307
|
-
};
|
9308
|
-
var noRowsRenderer = function noRowsRenderer() {
|
9309
|
-
return React__default.createElement(VirtualEmptyItem, {
|
9310
|
-
emptyElement: emptyElement
|
9311
|
-
});
|
9312
|
-
};
|
9313
|
-
return React__default.createElement(Box, Object.assign({}, containerProps), React__default.createElement(AutoSizer, {
|
9314
|
-
disableHeight: !!listHeight
|
9315
|
-
}, function (_ref) {
|
9316
|
-
var width = _ref.width,
|
9317
|
-
height = _ref.height;
|
9318
|
-
return React__default.createElement(List$1, {
|
9319
|
-
width: width,
|
9320
|
-
height: listHeight || height,
|
9321
|
-
rowCount: rowCount,
|
9322
|
-
rowHeight: cellMeasurerCache.rowHeight,
|
9323
|
-
rowRenderer: rowRenderer,
|
9324
|
-
deferredMeasurementCache: cellMeasurerCache,
|
9325
|
-
overscanRowCount: overscanRowCount,
|
9326
|
-
noRowsRenderer: noRowsRenderer,
|
9327
|
-
onScroll: onScroll
|
9328
|
-
});
|
9329
|
-
}));
|
9330
|
-
};
|
9331
|
-
|
9332
|
-
var cellMeasurerCache$1 = new CellMeasurerCache({
|
9333
|
-
defaultWidth: 100,
|
9334
|
-
defaultHeight: 50
|
9335
|
-
});
|
9336
|
-
|
9337
|
-
var VirtualTableRowItem = function VirtualTableRowItem(_ref) {
|
9338
|
-
var isLoading = _ref.isLoading,
|
9339
|
-
style = _ref.style,
|
9340
|
-
parent = _ref.parent,
|
9341
|
-
rowIndex = _ref.rowIndex,
|
9342
|
-
columnIndex = _ref.columnIndex,
|
9343
|
-
renderItem = _ref.renderItem,
|
9344
|
-
loadingElement = _ref.loadingElement;
|
9345
|
-
return React__default.createElement(CellMeasurer, {
|
9346
|
-
cache: cellMeasurerCache$1,
|
9347
|
-
columnIndex: columnIndex,
|
9348
|
-
rowIndex: rowIndex,
|
9349
|
-
key: rowIndex + "-" + columnIndex,
|
9350
|
-
parent: parent
|
9351
|
-
}, function (_ref2) {
|
9352
|
-
var measure = _ref2.measure;
|
9353
|
-
if (isLoading) {
|
9354
|
-
if (loadingElement) return loadingElement;
|
9355
|
-
return React__default.createElement("div", {
|
9356
|
-
style: style
|
9357
|
-
}, React__default.createElement(Box, {
|
9358
|
-
p: 1,
|
9359
|
-
className: "d-flex justify-content-center align-items-center w-100"
|
9360
|
-
}, React__default.createElement(CircularProgress, {
|
9361
|
-
size: 24,
|
9362
|
-
sx: {
|
9363
|
-
color: "#5d5d5b"
|
9364
|
-
}
|
9365
|
-
})));
|
9219
|
+
return React__default.createElement(Box, Object.assign({}, containerProps), loading && React__default.createElement(Fragment$1, null, loadingElement != null ? loadingElement : React__default.createElement(Box, {
|
9220
|
+
p: 1,
|
9221
|
+
className: "d-flex justify-content-center align-items-center w-100"
|
9222
|
+
}, React__default.createElement(CircularProgress, {
|
9223
|
+
size: 24,
|
9224
|
+
sx: {
|
9225
|
+
color: "#5d5d5b"
|
9366
9226
|
}
|
9367
|
-
|
9368
|
-
|
9369
|
-
|
9370
|
-
|
9371
|
-
|
9372
|
-
};
|
9373
|
-
|
9374
|
-
var VirtualTableEmpty = function VirtualTableEmpty(_ref) {
|
9375
|
-
var emptyElement = _ref.emptyElement;
|
9376
|
-
var _useTranslation = useTranslation(),
|
9377
|
-
t = _useTranslation.t;
|
9378
|
-
if (emptyElement) return emptyElement;
|
9379
|
-
return React__default.createElement(Box, null, React__default.createElement(Typography, {
|
9380
|
-
className: "text-center text-muted"
|
9381
|
-
}, t("no_data")));
|
9227
|
+
}))), !loading && !data.length && React__default.createElement(VirtualTableEmpty, {
|
9228
|
+
emptyElement: emptyElement
|
9229
|
+
}), !loading && !!data.length && React__default.createElement(ListView, {
|
9230
|
+
data: data,
|
9231
|
+
render: renderItem
|
9232
|
+
}));
|
9382
9233
|
};
|
9383
9234
|
|
9384
|
-
var _excluded$6 = ["data", "containerProps", "listHeight", "overscanRowCount", "renderItem", "emptyElement", "loadingElement", "fixedColumnCount", "fixedRowCount", "listWidth"];
|
9385
9235
|
var VirtualTableView = function VirtualTableView(props) {
|
9386
9236
|
var data = props.data,
|
9387
9237
|
containerProps = props.containerProps,
|
9388
|
-
listHeight = props.listHeight,
|
9389
|
-
_props$overscanRowCou = props.overscanRowCount,
|
9390
|
-
overscanRowCount = _props$overscanRowCou === void 0 ? 5 : _props$overscanRowCou,
|
9391
9238
|
renderItem = props.renderItem,
|
9392
9239
|
emptyElement = props.emptyElement,
|
9393
|
-
|
9394
|
-
|
9395
|
-
|
9396
|
-
listWidth = props.listWidth,
|
9397
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$6);
|
9398
|
-
var columnCount = props.columnCount;
|
9399
|
-
var _useVirtualListView = useVirtualListView(props),
|
9400
|
-
rowCount = _useVirtualListView.rowCount,
|
9401
|
-
onScroll = _useVirtualListView.onScroll;
|
9402
|
-
var _useState = useState(false),
|
9403
|
-
renderedColumnWidth = _useState[0],
|
9404
|
-
setRenderedColumnWidth = _useState[1];
|
9240
|
+
columnCount = props.columnCount,
|
9241
|
+
loading = props.loading,
|
9242
|
+
loadingElement = props.loadingElement;
|
9405
9243
|
var containerRef = useRef(null);
|
9406
|
-
var
|
9407
|
-
|
9408
|
-
|
9409
|
-
|
9410
|
-
|
9411
|
-
|
9412
|
-
|
9413
|
-
loadingElement: loadingElement
|
9244
|
+
var renderTableRow = function renderTableRow(_, index) {
|
9245
|
+
return React__default.createElement(Stack, {
|
9246
|
+
direction: "row"
|
9247
|
+
}, Array.from({
|
9248
|
+
length: columnCount
|
9249
|
+
}, function (_, colIndex) {
|
9250
|
+
return renderItem(index, colIndex);
|
9414
9251
|
}));
|
9415
9252
|
};
|
9416
|
-
var noRowsRenderer = function noRowsRenderer() {
|
9417
|
-
return React__default.createElement(VirtualTableEmpty, {
|
9418
|
-
emptyElement: emptyElement
|
9419
|
-
});
|
9420
|
-
};
|
9421
|
-
var onSectionRendered = function onSectionRendered(_) {
|
9422
|
-
setRenderedColumnWidth(true);
|
9423
|
-
};
|
9424
|
-
var columnWidth = function columnWidth(params) {
|
9425
|
-
var _containerRef$current, _containerRef$current2;
|
9426
|
-
var index = params.index;
|
9427
|
-
var columnWidth = cellMeasurerCache$1.columnWidth(params);
|
9428
|
-
if (listWidth) return columnWidth;
|
9429
|
-
var totalWidths = columnCount * columnWidth;
|
9430
|
-
var w = columnWidth;
|
9431
|
-
if ((_containerRef$current = containerRef.current) !== null && _containerRef$current !== void 0 && _containerRef$current.offsetWidth && totalWidths < ((_containerRef$current2 = containerRef.current) === null || _containerRef$current2 === void 0 ? void 0 : _containerRef$current2.offsetWidth) && index === columnCount - 1) {
|
9432
|
-
var _containerRef$current3;
|
9433
|
-
w = Math.max(columnWidth, ((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.offsetWidth) - (columnCount - 1) * columnWidth);
|
9434
|
-
}
|
9435
|
-
return w;
|
9436
|
-
};
|
9437
|
-
useEffect(function () {
|
9438
|
-
if (renderedColumnWidth && listRef.current) {
|
9439
|
-
listRef.current.forceUpdateGrids();
|
9440
|
-
}
|
9441
|
-
}, [renderedColumnWidth]);
|
9442
9253
|
return React__default.createElement(Box, Object.assign({
|
9443
9254
|
ref: containerRef
|
9444
|
-
}, containerProps), React__default.createElement(
|
9445
|
-
|
9446
|
-
|
9447
|
-
},
|
9448
|
-
|
9449
|
-
|
9450
|
-
|
9451
|
-
|
9452
|
-
|
9453
|
-
|
9454
|
-
|
9455
|
-
|
9456
|
-
|
9457
|
-
columnWidth: columnWidth,
|
9458
|
-
height: listHeight || height,
|
9459
|
-
rowHeight: cellMeasurerCache$1.rowHeight,
|
9460
|
-
deferredMeasurementCache: cellMeasurerCache$1,
|
9461
|
-
rowCount: rowCount,
|
9462
|
-
width: listWidth || width,
|
9463
|
-
overscanRowCount: overscanRowCount,
|
9464
|
-
noRowsRenderer: noRowsRenderer,
|
9465
|
-
onScroll: onScroll,
|
9466
|
-
onSectionRendered: onSectionRendered
|
9467
|
-
}, rest));
|
9255
|
+
}, containerProps), loading && React__default.createElement(Fragment$1, null, loadingElement != null ? loadingElement : React__default.createElement(Box, {
|
9256
|
+
p: 1,
|
9257
|
+
className: "d-flex justify-content-center align-items-center w-100"
|
9258
|
+
}, React__default.createElement(CircularProgress, {
|
9259
|
+
size: 24,
|
9260
|
+
sx: {
|
9261
|
+
color: "#5d5d5b"
|
9262
|
+
}
|
9263
|
+
}))), !loading && !data.length && React__default.createElement(VirtualTableEmpty, {
|
9264
|
+
emptyElement: emptyElement
|
9265
|
+
}), !loading && !!data.length && React__default.createElement(ListView, {
|
9266
|
+
data: data,
|
9267
|
+
render: renderTableRow
|
9468
9268
|
}));
|
9469
9269
|
};
|
9470
9270
|
|
@@ -10927,10 +10727,10 @@ var LoginQRCode = function LoginQRCode(props) {
|
|
10927
10727
|
}));
|
10928
10728
|
};
|
10929
10729
|
|
10930
|
-
var _excluded$
|
10730
|
+
var _excluded$6 = ["history"];
|
10931
10731
|
var Login = function Login(_ref) {
|
10932
10732
|
var history = _ref.history,
|
10933
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
10733
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
10934
10734
|
var _useLogin = useLogin$1({
|
10935
10735
|
homeAcademyUrl: rest.homeAcademyUrl,
|
10936
10736
|
homeUrl: rest.homeUrl,
|
@@ -11880,11 +11680,11 @@ var DEFAULT_USER_FILTERS = {
|
|
11880
11680
|
|
11881
11681
|
var styles$2 = {"avatar":"_2rJkZ","date-picker":"_1iqE2","time-picker":"_20xtc","teacher-selector-wrapper":"_3L1Oj"};
|
11882
11682
|
|
11883
|
-
var _excluded$
|
11683
|
+
var _excluded$7 = ["teachers", "value"];
|
11884
11684
|
var TeacherSelector = function TeacherSelector(_ref) {
|
11885
11685
|
var teachers = _ref.teachers,
|
11886
11686
|
value = _ref.value,
|
11887
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
11687
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
11888
11688
|
var teacherOptions = teachers.map(function (i) {
|
11889
11689
|
return {
|
11890
11690
|
label: i.teacherName + "/" + i.teacherEmail,
|
@@ -13175,7 +12975,7 @@ var useTeacherList = function useTeacherList() {
|
|
13175
12975
|
};
|
13176
12976
|
};
|
13177
12977
|
|
13178
|
-
var _excluded$
|
12978
|
+
var _excluded$8 = ["getStudents"],
|
13179
12979
|
_excluded2 = ["getTeachers"],
|
13180
12980
|
_excluded3 = ["getLessons"];
|
13181
12981
|
var PAGE_TITLE$4 = "classes";
|
@@ -13222,7 +13022,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
13222
13022
|
};
|
13223
13023
|
var _useStudentClassList = useStudentClassList(id ? +id : 0),
|
13224
13024
|
getStudents = _useStudentClassList.getStudents,
|
13225
|
-
studentListProps = _objectWithoutPropertiesLoose(_useStudentClassList, _excluded$
|
13025
|
+
studentListProps = _objectWithoutPropertiesLoose(_useStudentClassList, _excluded$8);
|
13226
13026
|
var _useTeacherClassList = useTeacherClassList(id ? +id : 0),
|
13227
13027
|
getTeachers = _useTeacherClassList.getTeachers,
|
13228
13028
|
teacherListProps = _objectWithoutPropertiesLoose(_useTeacherClassList, _excluded2);
|
@@ -13974,12 +13774,12 @@ var LessonList = function LessonList(_ref) {
|
|
13974
13774
|
}));
|
13975
13775
|
};
|
13976
13776
|
|
13977
|
-
var _excluded$
|
13777
|
+
var _excluded$9 = ["children", "value", "index"];
|
13978
13778
|
var CustomTabPanel = function CustomTabPanel(props) {
|
13979
13779
|
var children = props.children,
|
13980
13780
|
value = props.value,
|
13981
13781
|
index = props.index,
|
13982
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
13782
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
13983
13783
|
return React__default.createElement("div", Object.assign({
|
13984
13784
|
role: "tabpanel",
|
13985
13785
|
hidden: value !== index,
|
@@ -19242,7 +19042,9 @@ var useNotes = function useNotes(setFilter, filter) {
|
|
19242
19042
|
}
|
19243
19043
|
setLoadingNotes(true);
|
19244
19044
|
var _temp = _catch(function () {
|
19245
|
-
return Promise.resolve(getNotesApi(_extends({}, filter
|
19045
|
+
return Promise.resolve(getNotesApi(_extends({}, filter, {
|
19046
|
+
currentPage: -1
|
19047
|
+
}))).then(function (res) {
|
19246
19048
|
var data = res.data;
|
19247
19049
|
setTotalPages((data === null || data === void 0 ? void 0 : data.totalPages) || 0);
|
19248
19050
|
var items = (data === null || data === void 0 ? void 0 : data.items) || [];
|
@@ -20492,6 +20294,11 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20492
20294
|
color: styles.darker
|
20493
20295
|
}
|
20494
20296
|
}, resultData === null || resultData === void 0 ? void 0 : resultData.title)), React__default.createElement(Stack, {
|
20297
|
+
direction: "row",
|
20298
|
+
flexWrap: "wrap",
|
20299
|
+
justifyContent: "space-between",
|
20300
|
+
gap: 1
|
20301
|
+
}, React__default.createElement(Stack, {
|
20495
20302
|
flexDirection: "row",
|
20496
20303
|
gap: "16px"
|
20497
20304
|
}, React__default.createElement(Stack, null, React__default.createElement(Typography, {
|
@@ -20597,7 +20404,7 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20597
20404
|
size: "14px"
|
20598
20405
|
})),
|
20599
20406
|
onClick: handlePrintPdf
|
20600
|
-
}, t("print")))))), React__default.createElement(Grid, {
|
20407
|
+
}, t("print"))))))), React__default.createElement(Grid, {
|
20601
20408
|
container: true,
|
20602
20409
|
className: "position-relative overflow-hidden"
|
20603
20410
|
}, chapterId && React__default.createElement(Grid, {
|
@@ -21181,14 +20988,14 @@ var CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
21181
20988
|
|
21182
20989
|
var styles$5 = {"action-btn":"_1jXbz","action-btn--pencil":"_at4xP","icon-rotate-180":"_12gv9","drop-area":"_R4bn5"};
|
21183
20990
|
|
21184
|
-
var _excluded$
|
20991
|
+
var _excluded$a = ["text", "isRequired", "className"];
|
21185
20992
|
var LabelRequired = function LabelRequired(_ref) {
|
21186
20993
|
var text = _ref.text,
|
21187
20994
|
_ref$isRequired = _ref.isRequired,
|
21188
20995
|
isRequired = _ref$isRequired === void 0 ? true : _ref$isRequired,
|
21189
20996
|
_ref$className = _ref.className,
|
21190
20997
|
className = _ref$className === void 0 ? "" : _ref$className,
|
21191
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
20998
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
21192
20999
|
return React__default.createElement(FormLabel, Object.assign({
|
21193
21000
|
className: "fw-medium mb-1 " + className
|
21194
21001
|
}, rest), text, isRequired && React__default.createElement("span", {
|
@@ -21242,7 +21049,7 @@ var deleteUserApi = function deleteUserApi(id) {
|
|
21242
21049
|
return api["delete"](USER_URL + "/delete/" + id);
|
21243
21050
|
};
|
21244
21051
|
|
21245
|
-
var _excluded$
|
21052
|
+
var _excluded$b = ["ref"],
|
21246
21053
|
_excluded2$1 = ["ref"],
|
21247
21054
|
_excluded3$1 = ["ref"],
|
21248
21055
|
_excluded4 = ["ref"],
|
@@ -21272,7 +21079,7 @@ var UserDialog = function UserDialog(_ref) {
|
|
21272
21079
|
t = _useTranslation.t;
|
21273
21080
|
var _register = register("fullName"),
|
21274
21081
|
fullNameRef = _register.ref,
|
21275
|
-
fullNameBio = _objectWithoutPropertiesLoose(_register, _excluded$
|
21082
|
+
fullNameBio = _objectWithoutPropertiesLoose(_register, _excluded$b);
|
21276
21083
|
var _register2 = register("email"),
|
21277
21084
|
emailRef = _register2.ref,
|
21278
21085
|
emailBio = _objectWithoutPropertiesLoose(_register2, _excluded2$1);
|
@@ -25055,12 +24862,12 @@ var ArticleDialog = function ArticleDialog(_ref) {
|
|
25055
24862
|
|
25056
24863
|
var styles$7 = {"drawer":"_11aYm","open":"_3Ydwm","drawer-overlay":"_3SQDf","drawer-header":"_2BwOx","drawer-form":"_2Zo7R","dropdown-content-academy":"_1lzjD","dropdown-change":"_1y7K9","dropdown-academy-item":"_1Y-55","dropdown-content-language":"_1fBXY","dropdown-item-language":"_3Szun","dropdown-item-language-active":"_2HhLb","item-address":"_3WYHC","item-logout":"_2-9ix","title-address":"_1r4pn","image-academy":"_2ZozT"};
|
25057
24864
|
|
25058
|
-
var _excluded$
|
24865
|
+
var _excluded$c = ["isOpen", "onClose", "handleSaveExam"];
|
25059
24866
|
var CreateExamDrawer = function CreateExamDrawer(props) {
|
25060
24867
|
var isOpen = props.isOpen,
|
25061
24868
|
onClose = props.onClose,
|
25062
24869
|
handleSaveExam = props.handleSaveExam,
|
25063
|
-
examDetailViewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
24870
|
+
examDetailViewProps = _objectWithoutPropertiesLoose(props, _excluded$c);
|
25064
24871
|
var _useTranslation = useTranslation(),
|
25065
24872
|
t = _useTranslation.t;
|
25066
24873
|
var theme = useTheme();
|
@@ -26122,12 +25929,12 @@ var useNotificationDetail = function useNotificationDetail(_ref) {
|
|
26122
25929
|
|
26123
25930
|
var styles$8 = {"avatar":"_8niRT"};
|
26124
25931
|
|
26125
|
-
var _excluded$
|
25932
|
+
var _excluded$d = ["value", "disabled", "optionTypeNotification"];
|
26126
25933
|
var TypeSelector = function TypeSelector(_ref) {
|
26127
25934
|
var value = _ref.value,
|
26128
25935
|
disabled = _ref.disabled,
|
26129
25936
|
optionTypeNotification = _ref.optionTypeNotification,
|
26130
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
25937
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
26131
25938
|
return React__default.createElement(CustomAsyncSelect, Object.assign({
|
26132
25939
|
options: optionTypeNotification,
|
26133
25940
|
value: value
|
@@ -26519,11 +26326,11 @@ var useNotificationList = function useNotificationList(_ref) {
|
|
26519
26326
|
};
|
26520
26327
|
};
|
26521
26328
|
|
26522
|
-
var _excluded$
|
26329
|
+
var _excluded$e = ["value", "optionTypeNotification"];
|
26523
26330
|
var SelectFilterType = function SelectFilterType(_ref) {
|
26524
26331
|
var value = _ref.value,
|
26525
26332
|
optionTypeNotification = _ref.optionTypeNotification,
|
26526
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
26333
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
26527
26334
|
return React__default.createElement(CustomAsyncSelect, Object.assign({
|
26528
26335
|
options: optionTypeNotification,
|
26529
26336
|
value: value
|
@@ -28099,7 +27906,7 @@ var useTextbookManagement = function useTextbookManagement(_ref) {
|
|
28099
27906
|
};
|
28100
27907
|
};
|
28101
27908
|
|
28102
|
-
var _excluded$
|
27909
|
+
var _excluded$f = ["value"],
|
28103
27910
|
_excluded2$2 = ["onChange"],
|
28104
27911
|
_excluded3$2 = ["onChange"];
|
28105
27912
|
var VisuallyHiddenInput = styled("input")({
|
@@ -28360,7 +28167,7 @@ var PreparedTextbook = function PreparedTextbook(_ref) {
|
|
28360
28167
|
render: function render(_ref4) {
|
28361
28168
|
var _ref4$field = _ref4.field,
|
28362
28169
|
value = _ref4$field.value,
|
28363
|
-
action = _objectWithoutPropertiesLoose(_ref4$field, _excluded$
|
28170
|
+
action = _objectWithoutPropertiesLoose(_ref4$field, _excluded$f);
|
28364
28171
|
return React__default.createElement(LocalizationProvider$1, {
|
28365
28172
|
dateAdapter: AdapterMoment
|
28366
28173
|
}, React__default.createElement(DatePicker$1, Object.assign({}, action, {
|
@@ -29833,7 +29640,7 @@ var ChapterProblemSolvingResultsDialog = function ChapterProblemSolvingResultsDi
|
|
29833
29640
|
}, t("cancel"))))));
|
29834
29641
|
};
|
29835
29642
|
|
29836
|
-
var _excluded$
|
29643
|
+
var _excluded$g = ["onChange"];
|
29837
29644
|
var StartPageDialog = function StartPageDialog(_ref) {
|
29838
29645
|
var t = _ref.t,
|
29839
29646
|
onClose = _ref.onClose,
|
@@ -29894,7 +29701,7 @@ var StartPageDialog = function StartPageDialog(_ref) {
|
|
29894
29701
|
}, t("page_to_start_with")), React__default.createElement(Field, {
|
29895
29702
|
name: "startPage",
|
29896
29703
|
render: function render(_ref3) {
|
29897
|
-
var field = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
29704
|
+
var field = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
|
29898
29705
|
return React__default.createElement(CustomSelectOption, Object.assign({
|
29899
29706
|
menuPosition: "fixed",
|
29900
29707
|
onChange: function onChange(option) {
|