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.css
CHANGED
@@ -165,6 +165,8 @@
|
|
165
165
|
._2ibYC img {
|
166
166
|
width: 40px;
|
167
167
|
height: 40px;
|
168
|
+
min-width: 40px;
|
169
|
+
max-width: 40px;
|
168
170
|
aspect-ratio: 1;
|
169
171
|
border-radius: 50%;
|
170
172
|
-o-object-fit: cover;
|
@@ -198,6 +200,8 @@
|
|
198
200
|
._N4FNf {
|
199
201
|
width: 34px;
|
200
202
|
height: 34px;
|
203
|
+
min-width: 20px;
|
204
|
+
min-height: 20px;
|
201
205
|
display: flex;
|
202
206
|
border-radius: 100%;
|
203
207
|
background-color: #FBFBF9;
|
package/dist/index.js
CHANGED
@@ -27,7 +27,6 @@ var Select__default = _interopDefault(Select);
|
|
27
27
|
var CreatableSelect = _interopDefault(require('react-select/creatable'));
|
28
28
|
var formik = require('formik');
|
29
29
|
var ckeditor4React = require('ckeditor4-react');
|
30
|
-
var reactVirtualized = require('react-virtualized');
|
31
30
|
var Grid = _interopDefault(require('@mui/material/Grid'));
|
32
31
|
var Typography = _interopDefault(require('@mui/material/Typography'));
|
33
32
|
var Card = _interopDefault(require('@mui/material/Card'));
|
@@ -4928,7 +4927,7 @@ var LANGUAGES = [{
|
|
4928
4927
|
var DEFAULT_LANGUAGE = LANGUAGES[0];
|
4929
4928
|
var LOGIN_URL = "/login";
|
4930
4929
|
|
4931
|
-
var useAutoAcademyDomain = function useAutoAcademyDomain(
|
4930
|
+
var useAutoAcademyDomain = function useAutoAcademyDomain(_, history, superUrls, homeUrl, homeAcademyUrl, isAuthPage) {
|
4932
4931
|
if (isAuthPage === void 0) {
|
4933
4932
|
isAuthPage = true;
|
4934
4933
|
}
|
@@ -4974,11 +4973,7 @@ var useAutoAcademyDomain = function useAutoAcademyDomain(logout, history, superU
|
|
4974
4973
|
});
|
4975
4974
|
return;
|
4976
4975
|
}
|
4977
|
-
if (paramAcademyDomain
|
4978
|
-
logout();
|
4979
|
-
return;
|
4980
|
-
}
|
4981
|
-
if (!paramAcademyDomain) {
|
4976
|
+
if (!paramAcademyDomain || academyDomain.trim().toLocaleLowerCase() !== (paramAcademyDomain === null || paramAcademyDomain === void 0 ? void 0 : paramAcademyDomain.trim().toLocaleLowerCase())) {
|
4982
4977
|
if (isLoginPage || isLearningSpace) searchParams["delete"]("domain");else searchParams.set("domain", academyDomain);
|
4983
4978
|
pushTo(history, _extends({}, window.location, {
|
4984
4979
|
search: searchParams.toString()
|
@@ -5829,12 +5824,11 @@ var apiUpload = axios.create({
|
|
5829
5824
|
return i.interceptors.request.use(function (config) {
|
5830
5825
|
var token = getAccessToken();
|
5831
5826
|
var searchParams = new URLSearchParams(window.location.search);
|
5832
|
-
var paramDomain = searchParams.get('domain');
|
5833
5827
|
var paramLang = searchParams.get('lang');
|
5834
5828
|
var academyDomainStorage = getAcademyDomain();
|
5835
5829
|
var isLearningSpace = getLearningSpace();
|
5836
5830
|
var langStorage = getLanguage();
|
5837
|
-
var academyDomain =
|
5831
|
+
var academyDomain = academyDomainStorage;
|
5838
5832
|
var language = paramLang || langStorage;
|
5839
5833
|
if (token) {
|
5840
5834
|
config.headers.Authorization = "Bearer " + token;
|
@@ -9194,74 +9188,7 @@ var ListView = function ListView(_ref) {
|
|
9194
9188
|
}));
|
9195
9189
|
};
|
9196
9190
|
|
9197
|
-
var
|
9198
|
-
var data = props.data,
|
9199
|
-
loading = props.loading,
|
9200
|
-
onLoadMore = props.onLoadMore;
|
9201
|
-
var handleLoadMore = function handleLoadMore() {
|
9202
|
-
if (loading) return;
|
9203
|
-
onLoadMore === null || onLoadMore === void 0 ? void 0 : onLoadMore();
|
9204
|
-
};
|
9205
|
-
var onScroll = function onScroll(_ref) {
|
9206
|
-
var scrollTop = _ref.scrollTop,
|
9207
|
-
clientHeight = _ref.clientHeight,
|
9208
|
-
scrollHeight = _ref.scrollHeight;
|
9209
|
-
if (scrollTop + clientHeight >= scrollHeight - 100) {
|
9210
|
-
handleLoadMore();
|
9211
|
-
}
|
9212
|
-
};
|
9213
|
-
var rowCount = data.length + (loading ? 1 : 0);
|
9214
|
-
return {
|
9215
|
-
rowCount: rowCount,
|
9216
|
-
onScroll: onScroll
|
9217
|
-
};
|
9218
|
-
};
|
9219
|
-
|
9220
|
-
var cellMeasurerCache = new reactVirtualized.CellMeasurerCache({
|
9221
|
-
fixedWidth: true,
|
9222
|
-
defaultHeight: 50
|
9223
|
-
});
|
9224
|
-
|
9225
|
-
var VirtualListItem = function VirtualListItem(_ref) {
|
9226
|
-
var isLoading = _ref.isLoading,
|
9227
|
-
rowData = _ref.rowData,
|
9228
|
-
style = _ref.style,
|
9229
|
-
parent = _ref.parent,
|
9230
|
-
index = _ref.index,
|
9231
|
-
renderItem = _ref.renderItem,
|
9232
|
-
loadingElement = _ref.loadingElement;
|
9233
|
-
return React__default.createElement(reactVirtualized.CellMeasurer, {
|
9234
|
-
cache: cellMeasurerCache,
|
9235
|
-
columnIndex: 0,
|
9236
|
-
rowIndex: index,
|
9237
|
-
key: rowData === null || rowData === void 0 ? void 0 : rowData.id,
|
9238
|
-
parent: parent
|
9239
|
-
}, function (_ref2) {
|
9240
|
-
var measure = _ref2.measure;
|
9241
|
-
if (isLoading) {
|
9242
|
-
if (loadingElement) return loadingElement;
|
9243
|
-
return React__default.createElement("div", {
|
9244
|
-
key: rowData === null || rowData === void 0 ? void 0 : rowData.id,
|
9245
|
-
style: style
|
9246
|
-
}, React__default.createElement(material.Box, {
|
9247
|
-
p: 1,
|
9248
|
-
className: "d-flex justify-content-center align-items-center w-100"
|
9249
|
-
}, React__default.createElement(material.CircularProgress, {
|
9250
|
-
size: 24,
|
9251
|
-
sx: {
|
9252
|
-
color: "#5d5d5b"
|
9253
|
-
}
|
9254
|
-
})));
|
9255
|
-
}
|
9256
|
-
return React__default.createElement("div", {
|
9257
|
-
key: rowData === null || rowData === void 0 ? void 0 : rowData.id,
|
9258
|
-
style: style,
|
9259
|
-
ref: measure
|
9260
|
-
}, renderItem(rowData, index));
|
9261
|
-
});
|
9262
|
-
};
|
9263
|
-
|
9264
|
-
var VirtualEmptyItem = function VirtualEmptyItem(_ref) {
|
9191
|
+
var VirtualTableEmpty = function VirtualTableEmpty(_ref) {
|
9265
9192
|
var emptyElement = _ref.emptyElement;
|
9266
9193
|
var _useTranslation = reactI18next.useTranslation(),
|
9267
9194
|
t = _useTranslation.t;
|
@@ -9274,186 +9201,59 @@ var VirtualEmptyItem = function VirtualEmptyItem(_ref) {
|
|
9274
9201
|
var VirtualListView = function VirtualListView(props) {
|
9275
9202
|
var data = props.data,
|
9276
9203
|
containerProps = props.containerProps,
|
9277
|
-
listHeight = props.listHeight,
|
9278
|
-
_props$overscanRowCou = props.overscanRowCount,
|
9279
|
-
overscanRowCount = _props$overscanRowCou === void 0 ? 5 : _props$overscanRowCou,
|
9280
9204
|
renderItem = props.renderItem,
|
9281
9205
|
emptyElement = props.emptyElement,
|
9206
|
+
loading = props.loading,
|
9282
9207
|
loadingElement = props.loadingElement;
|
9283
|
-
|
9284
|
-
|
9285
|
-
|
9286
|
-
|
9287
|
-
|
9288
|
-
|
9289
|
-
|
9290
|
-
return React__default.createElement(VirtualListItem, Object.assign({}, props, {
|
9291
|
-
rowData: rowData,
|
9292
|
-
isLoading: isLoading,
|
9293
|
-
renderItem: renderItem,
|
9294
|
-
loadingElement: loadingElement
|
9295
|
-
}));
|
9296
|
-
};
|
9297
|
-
var noRowsRenderer = function noRowsRenderer() {
|
9298
|
-
return React__default.createElement(VirtualEmptyItem, {
|
9299
|
-
emptyElement: emptyElement
|
9300
|
-
});
|
9301
|
-
};
|
9302
|
-
return React__default.createElement(material.Box, Object.assign({}, containerProps), React__default.createElement(reactVirtualized.AutoSizer, {
|
9303
|
-
disableHeight: !!listHeight
|
9304
|
-
}, function (_ref) {
|
9305
|
-
var width = _ref.width,
|
9306
|
-
height = _ref.height;
|
9307
|
-
return React__default.createElement(reactVirtualized.List, {
|
9308
|
-
width: width,
|
9309
|
-
height: listHeight || height,
|
9310
|
-
rowCount: rowCount,
|
9311
|
-
rowHeight: cellMeasurerCache.rowHeight,
|
9312
|
-
rowRenderer: rowRenderer,
|
9313
|
-
deferredMeasurementCache: cellMeasurerCache,
|
9314
|
-
overscanRowCount: overscanRowCount,
|
9315
|
-
noRowsRenderer: noRowsRenderer,
|
9316
|
-
onScroll: onScroll
|
9317
|
-
});
|
9318
|
-
}));
|
9319
|
-
};
|
9320
|
-
|
9321
|
-
var cellMeasurerCache$1 = new reactVirtualized.CellMeasurerCache({
|
9322
|
-
defaultWidth: 100,
|
9323
|
-
defaultHeight: 50
|
9324
|
-
});
|
9325
|
-
|
9326
|
-
var VirtualTableRowItem = function VirtualTableRowItem(_ref) {
|
9327
|
-
var isLoading = _ref.isLoading,
|
9328
|
-
style = _ref.style,
|
9329
|
-
parent = _ref.parent,
|
9330
|
-
rowIndex = _ref.rowIndex,
|
9331
|
-
columnIndex = _ref.columnIndex,
|
9332
|
-
renderItem = _ref.renderItem,
|
9333
|
-
loadingElement = _ref.loadingElement;
|
9334
|
-
return React__default.createElement(reactVirtualized.CellMeasurer, {
|
9335
|
-
cache: cellMeasurerCache$1,
|
9336
|
-
columnIndex: columnIndex,
|
9337
|
-
rowIndex: rowIndex,
|
9338
|
-
key: rowIndex + "-" + columnIndex,
|
9339
|
-
parent: parent
|
9340
|
-
}, function (_ref2) {
|
9341
|
-
var measure = _ref2.measure;
|
9342
|
-
if (isLoading) {
|
9343
|
-
if (loadingElement) return loadingElement;
|
9344
|
-
return React__default.createElement("div", {
|
9345
|
-
style: style
|
9346
|
-
}, React__default.createElement(material.Box, {
|
9347
|
-
p: 1,
|
9348
|
-
className: "d-flex justify-content-center align-items-center w-100"
|
9349
|
-
}, React__default.createElement(material.CircularProgress, {
|
9350
|
-
size: 24,
|
9351
|
-
sx: {
|
9352
|
-
color: "#5d5d5b"
|
9353
|
-
}
|
9354
|
-
})));
|
9208
|
+
return React__default.createElement(material.Box, Object.assign({}, containerProps), loading && React__default.createElement(React.Fragment, null, loadingElement != null ? loadingElement : React__default.createElement(material.Box, {
|
9209
|
+
p: 1,
|
9210
|
+
className: "d-flex justify-content-center align-items-center w-100"
|
9211
|
+
}, React__default.createElement(material.CircularProgress, {
|
9212
|
+
size: 24,
|
9213
|
+
sx: {
|
9214
|
+
color: "#5d5d5b"
|
9355
9215
|
}
|
9356
|
-
|
9357
|
-
|
9358
|
-
|
9359
|
-
|
9360
|
-
|
9361
|
-
};
|
9362
|
-
|
9363
|
-
var VirtualTableEmpty = function VirtualTableEmpty(_ref) {
|
9364
|
-
var emptyElement = _ref.emptyElement;
|
9365
|
-
var _useTranslation = reactI18next.useTranslation(),
|
9366
|
-
t = _useTranslation.t;
|
9367
|
-
if (emptyElement) return emptyElement;
|
9368
|
-
return React__default.createElement(material.Box, null, React__default.createElement(material.Typography, {
|
9369
|
-
className: "text-center text-muted"
|
9370
|
-
}, t("no_data")));
|
9216
|
+
}))), !loading && !data.length && React__default.createElement(VirtualTableEmpty, {
|
9217
|
+
emptyElement: emptyElement
|
9218
|
+
}), !loading && !!data.length && React__default.createElement(ListView, {
|
9219
|
+
data: data,
|
9220
|
+
render: renderItem
|
9221
|
+
}));
|
9371
9222
|
};
|
9372
9223
|
|
9373
|
-
var _excluded$6 = ["data", "containerProps", "listHeight", "overscanRowCount", "renderItem", "emptyElement", "loadingElement", "fixedColumnCount", "fixedRowCount", "listWidth"];
|
9374
9224
|
var VirtualTableView = function VirtualTableView(props) {
|
9375
9225
|
var data = props.data,
|
9376
9226
|
containerProps = props.containerProps,
|
9377
|
-
listHeight = props.listHeight,
|
9378
|
-
_props$overscanRowCou = props.overscanRowCount,
|
9379
|
-
overscanRowCount = _props$overscanRowCou === void 0 ? 5 : _props$overscanRowCou,
|
9380
9227
|
renderItem = props.renderItem,
|
9381
9228
|
emptyElement = props.emptyElement,
|
9382
|
-
|
9383
|
-
|
9384
|
-
|
9385
|
-
listWidth = props.listWidth,
|
9386
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$6);
|
9387
|
-
var columnCount = props.columnCount;
|
9388
|
-
var _useVirtualListView = useVirtualListView(props),
|
9389
|
-
rowCount = _useVirtualListView.rowCount,
|
9390
|
-
onScroll = _useVirtualListView.onScroll;
|
9391
|
-
var _useState = React.useState(false),
|
9392
|
-
renderedColumnWidth = _useState[0],
|
9393
|
-
setRenderedColumnWidth = _useState[1];
|
9229
|
+
columnCount = props.columnCount,
|
9230
|
+
loading = props.loading,
|
9231
|
+
loadingElement = props.loadingElement;
|
9394
9232
|
var containerRef = React.useRef(null);
|
9395
|
-
var
|
9396
|
-
|
9397
|
-
|
9398
|
-
|
9399
|
-
|
9400
|
-
|
9401
|
-
|
9402
|
-
loadingElement: loadingElement
|
9233
|
+
var renderTableRow = function renderTableRow(_, index) {
|
9234
|
+
return React__default.createElement(material.Stack, {
|
9235
|
+
direction: "row"
|
9236
|
+
}, Array.from({
|
9237
|
+
length: columnCount
|
9238
|
+
}, function (_, colIndex) {
|
9239
|
+
return renderItem(index, colIndex);
|
9403
9240
|
}));
|
9404
9241
|
};
|
9405
|
-
var noRowsRenderer = function noRowsRenderer() {
|
9406
|
-
return React__default.createElement(VirtualTableEmpty, {
|
9407
|
-
emptyElement: emptyElement
|
9408
|
-
});
|
9409
|
-
};
|
9410
|
-
var onSectionRendered = function onSectionRendered(_) {
|
9411
|
-
setRenderedColumnWidth(true);
|
9412
|
-
};
|
9413
|
-
var columnWidth = function columnWidth(params) {
|
9414
|
-
var _containerRef$current, _containerRef$current2;
|
9415
|
-
var index = params.index;
|
9416
|
-
var columnWidth = cellMeasurerCache$1.columnWidth(params);
|
9417
|
-
if (listWidth) return columnWidth;
|
9418
|
-
var totalWidths = columnCount * columnWidth;
|
9419
|
-
var w = columnWidth;
|
9420
|
-
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) {
|
9421
|
-
var _containerRef$current3;
|
9422
|
-
w = Math.max(columnWidth, ((_containerRef$current3 = containerRef.current) === null || _containerRef$current3 === void 0 ? void 0 : _containerRef$current3.offsetWidth) - (columnCount - 1) * columnWidth);
|
9423
|
-
}
|
9424
|
-
return w;
|
9425
|
-
};
|
9426
|
-
React.useEffect(function () {
|
9427
|
-
if (renderedColumnWidth && listRef.current) {
|
9428
|
-
listRef.current.forceUpdateGrids();
|
9429
|
-
}
|
9430
|
-
}, [renderedColumnWidth]);
|
9431
9242
|
return React__default.createElement(material.Box, Object.assign({
|
9432
9243
|
ref: containerRef
|
9433
|
-
}, containerProps), React__default.createElement(
|
9434
|
-
|
9435
|
-
|
9436
|
-
},
|
9437
|
-
|
9438
|
-
|
9439
|
-
|
9440
|
-
|
9441
|
-
|
9442
|
-
|
9443
|
-
|
9444
|
-
|
9445
|
-
|
9446
|
-
columnWidth: columnWidth,
|
9447
|
-
height: listHeight || height,
|
9448
|
-
rowHeight: cellMeasurerCache$1.rowHeight,
|
9449
|
-
deferredMeasurementCache: cellMeasurerCache$1,
|
9450
|
-
rowCount: rowCount,
|
9451
|
-
width: listWidth || width,
|
9452
|
-
overscanRowCount: overscanRowCount,
|
9453
|
-
noRowsRenderer: noRowsRenderer,
|
9454
|
-
onScroll: onScroll,
|
9455
|
-
onSectionRendered: onSectionRendered
|
9456
|
-
}, rest));
|
9244
|
+
}, containerProps), loading && React__default.createElement(React.Fragment, null, loadingElement != null ? loadingElement : React__default.createElement(material.Box, {
|
9245
|
+
p: 1,
|
9246
|
+
className: "d-flex justify-content-center align-items-center w-100"
|
9247
|
+
}, React__default.createElement(material.CircularProgress, {
|
9248
|
+
size: 24,
|
9249
|
+
sx: {
|
9250
|
+
color: "#5d5d5b"
|
9251
|
+
}
|
9252
|
+
}))), !loading && !data.length && React__default.createElement(VirtualTableEmpty, {
|
9253
|
+
emptyElement: emptyElement
|
9254
|
+
}), !loading && !!data.length && React__default.createElement(ListView, {
|
9255
|
+
data: data,
|
9256
|
+
render: renderTableRow
|
9457
9257
|
}));
|
9458
9258
|
};
|
9459
9259
|
|
@@ -10916,10 +10716,10 @@ var LoginQRCode = function LoginQRCode(props) {
|
|
10916
10716
|
}));
|
10917
10717
|
};
|
10918
10718
|
|
10919
|
-
var _excluded$
|
10719
|
+
var _excluded$6 = ["history"];
|
10920
10720
|
var Login = function Login(_ref) {
|
10921
10721
|
var history = _ref.history,
|
10922
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
10722
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
10923
10723
|
var _useLogin = useLogin$1({
|
10924
10724
|
homeAcademyUrl: rest.homeAcademyUrl,
|
10925
10725
|
homeUrl: rest.homeUrl,
|
@@ -11869,11 +11669,11 @@ var DEFAULT_USER_FILTERS = {
|
|
11869
11669
|
|
11870
11670
|
var styles$2 = {"avatar":"_2rJkZ","date-picker":"_1iqE2","time-picker":"_20xtc","teacher-selector-wrapper":"_3L1Oj"};
|
11871
11671
|
|
11872
|
-
var _excluded$
|
11672
|
+
var _excluded$7 = ["teachers", "value"];
|
11873
11673
|
var TeacherSelector = function TeacherSelector(_ref) {
|
11874
11674
|
var teachers = _ref.teachers,
|
11875
11675
|
value = _ref.value,
|
11876
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
11676
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
11877
11677
|
var teacherOptions = teachers.map(function (i) {
|
11878
11678
|
return {
|
11879
11679
|
label: i.teacherName + "/" + i.teacherEmail,
|
@@ -13164,7 +12964,7 @@ var useTeacherList = function useTeacherList() {
|
|
13164
12964
|
};
|
13165
12965
|
};
|
13166
12966
|
|
13167
|
-
var _excluded$
|
12967
|
+
var _excluded$8 = ["getStudents"],
|
13168
12968
|
_excluded2 = ["getTeachers"],
|
13169
12969
|
_excluded3 = ["getLessons"];
|
13170
12970
|
var PAGE_TITLE$4 = "classes";
|
@@ -13211,7 +13011,7 @@ var useClassDetail = function useClassDetail(_ref) {
|
|
13211
13011
|
};
|
13212
13012
|
var _useStudentClassList = useStudentClassList(id ? +id : 0),
|
13213
13013
|
getStudents = _useStudentClassList.getStudents,
|
13214
|
-
studentListProps = _objectWithoutPropertiesLoose(_useStudentClassList, _excluded$
|
13014
|
+
studentListProps = _objectWithoutPropertiesLoose(_useStudentClassList, _excluded$8);
|
13215
13015
|
var _useTeacherClassList = useTeacherClassList(id ? +id : 0),
|
13216
13016
|
getTeachers = _useTeacherClassList.getTeachers,
|
13217
13017
|
teacherListProps = _objectWithoutPropertiesLoose(_useTeacherClassList, _excluded2);
|
@@ -13963,12 +13763,12 @@ var LessonList = function LessonList(_ref) {
|
|
13963
13763
|
}));
|
13964
13764
|
};
|
13965
13765
|
|
13966
|
-
var _excluded$
|
13766
|
+
var _excluded$9 = ["children", "value", "index"];
|
13967
13767
|
var CustomTabPanel = function CustomTabPanel(props) {
|
13968
13768
|
var children = props.children,
|
13969
13769
|
value = props.value,
|
13970
13770
|
index = props.index,
|
13971
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
13771
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
13972
13772
|
return React__default.createElement("div", Object.assign({
|
13973
13773
|
role: "tabpanel",
|
13974
13774
|
hidden: value !== index,
|
@@ -19231,7 +19031,9 @@ var useNotes = function useNotes(setFilter, filter) {
|
|
19231
19031
|
}
|
19232
19032
|
setLoadingNotes(true);
|
19233
19033
|
var _temp = _catch(function () {
|
19234
|
-
return Promise.resolve(getNotesApi(_extends({}, filter
|
19034
|
+
return Promise.resolve(getNotesApi(_extends({}, filter, {
|
19035
|
+
currentPage: -1
|
19036
|
+
}))).then(function (res) {
|
19235
19037
|
var data = res.data;
|
19236
19038
|
setTotalPages((data === null || data === void 0 ? void 0 : data.totalPages) || 0);
|
19237
19039
|
var items = (data === null || data === void 0 ? void 0 : data.items) || [];
|
@@ -20481,6 +20283,11 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20481
20283
|
color: styles.darker
|
20482
20284
|
}
|
20483
20285
|
}, resultData === null || resultData === void 0 ? void 0 : resultData.title)), React__default.createElement(material.Stack, {
|
20286
|
+
direction: "row",
|
20287
|
+
flexWrap: "wrap",
|
20288
|
+
justifyContent: "space-between",
|
20289
|
+
gap: 1
|
20290
|
+
}, React__default.createElement(material.Stack, {
|
20484
20291
|
flexDirection: "row",
|
20485
20292
|
gap: "16px"
|
20486
20293
|
}, React__default.createElement(material.Stack, null, React__default.createElement(material.Typography, {
|
@@ -20586,7 +20393,7 @@ var ExamResultV2 = function ExamResultV2(props) {
|
|
20586
20393
|
size: "14px"
|
20587
20394
|
})),
|
20588
20395
|
onClick: handlePrintPdf
|
20589
|
-
}, t("print")))))), React__default.createElement(material.Grid, {
|
20396
|
+
}, t("print"))))))), React__default.createElement(material.Grid, {
|
20590
20397
|
container: true,
|
20591
20398
|
className: "position-relative overflow-hidden"
|
20592
20399
|
}, chapterId && React__default.createElement(material.Grid, {
|
@@ -21170,14 +20977,14 @@ var CSV_PREFIX = "data:text/csv;charset=utf-8,";
|
|
21170
20977
|
|
21171
20978
|
var styles$5 = {"action-btn":"_1jXbz","action-btn--pencil":"_at4xP","icon-rotate-180":"_12gv9","drop-area":"_R4bn5"};
|
21172
20979
|
|
21173
|
-
var _excluded$
|
20980
|
+
var _excluded$a = ["text", "isRequired", "className"];
|
21174
20981
|
var LabelRequired = function LabelRequired(_ref) {
|
21175
20982
|
var text = _ref.text,
|
21176
20983
|
_ref$isRequired = _ref.isRequired,
|
21177
20984
|
isRequired = _ref$isRequired === void 0 ? true : _ref$isRequired,
|
21178
20985
|
_ref$className = _ref.className,
|
21179
20986
|
className = _ref$className === void 0 ? "" : _ref$className,
|
21180
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
20987
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
21181
20988
|
return React__default.createElement(material.FormLabel, Object.assign({
|
21182
20989
|
className: "fw-medium mb-1 " + className
|
21183
20990
|
}, rest), text, isRequired && React__default.createElement("span", {
|
@@ -21231,7 +21038,7 @@ var deleteUserApi = function deleteUserApi(id) {
|
|
21231
21038
|
return api["delete"](USER_URL + "/delete/" + id);
|
21232
21039
|
};
|
21233
21040
|
|
21234
|
-
var _excluded$
|
21041
|
+
var _excluded$b = ["ref"],
|
21235
21042
|
_excluded2$1 = ["ref"],
|
21236
21043
|
_excluded3$1 = ["ref"],
|
21237
21044
|
_excluded4 = ["ref"],
|
@@ -21261,7 +21068,7 @@ var UserDialog = function UserDialog(_ref) {
|
|
21261
21068
|
t = _useTranslation.t;
|
21262
21069
|
var _register = register("fullName"),
|
21263
21070
|
fullNameRef = _register.ref,
|
21264
|
-
fullNameBio = _objectWithoutPropertiesLoose(_register, _excluded$
|
21071
|
+
fullNameBio = _objectWithoutPropertiesLoose(_register, _excluded$b);
|
21265
21072
|
var _register2 = register("email"),
|
21266
21073
|
emailRef = _register2.ref,
|
21267
21074
|
emailBio = _objectWithoutPropertiesLoose(_register2, _excluded2$1);
|
@@ -25044,12 +24851,12 @@ var ArticleDialog = function ArticleDialog(_ref) {
|
|
25044
24851
|
|
25045
24852
|
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"};
|
25046
24853
|
|
25047
|
-
var _excluded$
|
24854
|
+
var _excluded$c = ["isOpen", "onClose", "handleSaveExam"];
|
25048
24855
|
var CreateExamDrawer = function CreateExamDrawer(props) {
|
25049
24856
|
var isOpen = props.isOpen,
|
25050
24857
|
onClose = props.onClose,
|
25051
24858
|
handleSaveExam = props.handleSaveExam,
|
25052
|
-
examDetailViewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
24859
|
+
examDetailViewProps = _objectWithoutPropertiesLoose(props, _excluded$c);
|
25053
24860
|
var _useTranslation = reactI18next.useTranslation(),
|
25054
24861
|
t = _useTranslation.t;
|
25055
24862
|
var theme = material.useTheme();
|
@@ -26111,12 +25918,12 @@ var useNotificationDetail = function useNotificationDetail(_ref) {
|
|
26111
25918
|
|
26112
25919
|
var styles$8 = {"avatar":"_8niRT"};
|
26113
25920
|
|
26114
|
-
var _excluded$
|
25921
|
+
var _excluded$d = ["value", "disabled", "optionTypeNotification"];
|
26115
25922
|
var TypeSelector = function TypeSelector(_ref) {
|
26116
25923
|
var value = _ref.value,
|
26117
25924
|
disabled = _ref.disabled,
|
26118
25925
|
optionTypeNotification = _ref.optionTypeNotification,
|
26119
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
25926
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
26120
25927
|
return React__default.createElement(CustomAsyncSelect, Object.assign({
|
26121
25928
|
options: optionTypeNotification,
|
26122
25929
|
value: value
|
@@ -26508,11 +26315,11 @@ var useNotificationList = function useNotificationList(_ref) {
|
|
26508
26315
|
};
|
26509
26316
|
};
|
26510
26317
|
|
26511
|
-
var _excluded$
|
26318
|
+
var _excluded$e = ["value", "optionTypeNotification"];
|
26512
26319
|
var SelectFilterType = function SelectFilterType(_ref) {
|
26513
26320
|
var value = _ref.value,
|
26514
26321
|
optionTypeNotification = _ref.optionTypeNotification,
|
26515
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
26322
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
26516
26323
|
return React__default.createElement(CustomAsyncSelect, Object.assign({
|
26517
26324
|
options: optionTypeNotification,
|
26518
26325
|
value: value
|
@@ -28088,7 +27895,7 @@ var useTextbookManagement = function useTextbookManagement(_ref) {
|
|
28088
27895
|
};
|
28089
27896
|
};
|
28090
27897
|
|
28091
|
-
var _excluded$
|
27898
|
+
var _excluded$f = ["value"],
|
28092
27899
|
_excluded2$2 = ["onChange"],
|
28093
27900
|
_excluded3$2 = ["onChange"];
|
28094
27901
|
var VisuallyHiddenInput = material.styled("input")({
|
@@ -28349,7 +28156,7 @@ var PreparedTextbook = function PreparedTextbook(_ref) {
|
|
28349
28156
|
render: function render(_ref4) {
|
28350
28157
|
var _ref4$field = _ref4.field,
|
28351
28158
|
value = _ref4$field.value,
|
28352
|
-
action = _objectWithoutPropertiesLoose(_ref4$field, _excluded$
|
28159
|
+
action = _objectWithoutPropertiesLoose(_ref4$field, _excluded$f);
|
28353
28160
|
return React__default.createElement(xDatePickers.LocalizationProvider, {
|
28354
28161
|
dateAdapter: AdapterMoment.AdapterMoment
|
28355
28162
|
}, React__default.createElement(xDatePickers.DatePicker, Object.assign({}, action, {
|
@@ -29822,7 +29629,7 @@ var ChapterProblemSolvingResultsDialog = function ChapterProblemSolvingResultsDi
|
|
29822
29629
|
}, t("cancel"))))));
|
29823
29630
|
};
|
29824
29631
|
|
29825
|
-
var _excluded$
|
29632
|
+
var _excluded$g = ["onChange"];
|
29826
29633
|
var StartPageDialog = function StartPageDialog(_ref) {
|
29827
29634
|
var t = _ref.t,
|
29828
29635
|
onClose = _ref.onClose,
|
@@ -29883,7 +29690,7 @@ var StartPageDialog = function StartPageDialog(_ref) {
|
|
29883
29690
|
}, t("page_to_start_with")), React__default.createElement(formik.Field, {
|
29884
29691
|
name: "startPage",
|
29885
29692
|
render: function render(_ref3) {
|
29886
|
-
var field = _objectWithoutPropertiesLoose(_ref3, _excluded$
|
29693
|
+
var field = _objectWithoutPropertiesLoose(_ref3, _excluded$g);
|
29887
29694
|
return React__default.createElement(CustomSelectOption, Object.assign({
|
29888
29695
|
menuPosition: "fixed",
|
29889
29696
|
onChange: function onChange(option) {
|