analytica-frontend-lib 1.5.76 → 1.5.78
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/ActivitiesHistory/index.js +6 -6
- package/dist/ActivitiesHistory/index.mjs +5 -5
- package/dist/ActivityCardQuestionBanks/index.js +6 -6
- package/dist/ActivityCardQuestionBanks/index.mjs +5 -5
- package/dist/ActivityCardQuestionPreview/index.js +6 -6
- package/dist/ActivityCardQuestionPreview/index.mjs +5 -5
- package/dist/ActivityCreate/index.js +6 -6
- package/dist/ActivityCreate/index.mjs +5 -5
- package/dist/ActivityDetails/index.js +6 -6
- package/dist/ActivityDetails/index.mjs +5 -5
- package/dist/ActivityFilters/index.js +6 -6
- package/dist/ActivityFilters/index.mjs +5 -5
- package/dist/ActivityPageLayout/index.js +6 -6
- package/dist/ActivityPageLayout/index.mjs +5 -5
- package/dist/ActivityPreview/index.js +6 -6
- package/dist/ActivityPreview/index.mjs +5 -5
- package/dist/AlertManager/index.js +6 -6
- package/dist/AlertManager/index.mjs +5 -5
- package/dist/CheckBoxGroup/index.js +6 -6
- package/dist/CheckBoxGroup/index.mjs +5 -5
- package/dist/ExamDetailsLayout/ExamDetailsPage/index.js +6 -6
- package/dist/ExamDetailsLayout/ExamDetailsPage/index.mjs +5 -5
- package/dist/ExamPageLayout/index.js +6 -6
- package/dist/ExamPageLayout/index.mjs +5 -5
- package/dist/ModuleProtectedRoute/index.js +3 -3
- package/dist/ModuleProtectedRoute/index.mjs +2 -2
- package/dist/PrintableUsersTable/index.js +6 -6
- package/dist/PrintableUsersTable/index.mjs +5 -5
- package/dist/RecommendedLessonCreate/index.js +6 -6
- package/dist/RecommendedLessonCreate/index.mjs +5 -5
- package/dist/RecommendedLessonsHistory/index.js +6 -6
- package/dist/RecommendedLessonsHistory/index.mjs +5 -5
- package/dist/SendActivityModal/SendActivityModal.d.ts +1 -1
- package/dist/SendActivityModal/SendActivityModal.d.ts.map +1 -1
- package/dist/SendActivityModal/SendActivityModal.js +6 -6
- package/dist/SendActivityModal/SendActivityModal.mjs +5 -5
- package/dist/SendActivityModal/hooks/useSendActivityModal.js +1 -1
- package/dist/SendActivityModal/hooks/useSendActivityModal.mjs +1 -1
- package/dist/SendActivityModal/index.js +6 -6
- package/dist/SendActivityModal/index.mjs +5 -5
- package/dist/SendActivityModal/types.d.ts +6 -0
- package/dist/SendActivityModal/types.d.ts.map +1 -1
- package/dist/SendActivityModal/types.js +2 -2
- package/dist/SendActivityModal/types.mjs +1 -1
- package/dist/SendActivityModal/validation.js +1 -1
- package/dist/SendActivityModal/validation.mjs +1 -1
- package/dist/SendLessonModal/index.d.ts +1 -1
- package/dist/SendLessonModal/index.d.ts.map +1 -1
- package/dist/SendLessonModal/index.js +6 -6
- package/dist/SendLessonModal/index.mjs +5 -5
- package/dist/SimulatedPerformance/SimulatedPerformanceView/index.js +6 -6
- package/dist/SimulatedPerformance/SimulatedPerformanceView/index.mjs +5 -5
- package/dist/SimulationsPage/index.js +6 -6
- package/dist/SimulationsPage/index.mjs +5 -5
- package/dist/TableProvider/index.js +6 -6
- package/dist/TableProvider/index.mjs +5 -5
- package/dist/TypeSelector/index.js +3 -3
- package/dist/TypeSelector/index.mjs +2 -2
- package/dist/UnifiedDraftModelPage/index.js +6 -6
- package/dist/UnifiedDraftModelPage/index.mjs +5 -5
- package/dist/UnifiedHistoryPage/index.js +6 -6
- package/dist/UnifiedHistoryPage/index.mjs +5 -5
- package/dist/{chunk-BRTWWTU3.js → chunk-3BKXXQXP.js} +3 -3
- package/dist/{chunk-BRTWWTU3.js.map → chunk-3BKXXQXP.js.map} +1 -1
- package/dist/{chunk-NCVAMXYV.mjs → chunk-6PH3QFMW.mjs} +8 -2
- package/dist/chunk-6PH3QFMW.mjs.map +1 -0
- package/dist/{chunk-5JF47R7V.mjs → chunk-BYHXD3DU.mjs} +2 -2
- package/dist/{chunk-T4UIREXS.js → chunk-IT5VCURL.js} +396 -381
- package/dist/chunk-IT5VCURL.js.map +1 -0
- package/dist/{chunk-VUGO7VUR.js → chunk-KFF223EV.js} +1 -1
- package/dist/{chunk-VUGO7VUR.js.map → chunk-KFF223EV.js.map} +1 -1
- package/dist/{chunk-Y457NXR3.js → chunk-PJIV7QPK.js} +8 -2
- package/dist/chunk-PJIV7QPK.js.map +1 -0
- package/dist/{chunk-6EWQZUPA.mjs → chunk-PKH5SHBS.mjs} +2 -2
- package/dist/{chunk-LJDMRQIG.js → chunk-QFIPNJ46.js} +3 -3
- package/dist/{chunk-LJDMRQIG.js.map → chunk-QFIPNJ46.js.map} +1 -1
- package/dist/{chunk-42I5KRYG.mjs → chunk-TCTKQUSW.mjs} +21 -6
- package/dist/chunk-TCTKQUSW.mjs.map +1 -0
- package/dist/{chunk-GMYYB6A2.mjs → chunk-UI6YZ56K.mjs} +1 -1
- package/dist/{chunk-GMYYB6A2.mjs.map → chunk-UI6YZ56K.mjs.map} +1 -1
- package/dist/components/SendLessonModal/types.d.ts +6 -0
- package/dist/components/SendLessonModal/types.d.ts.map +1 -1
- package/dist/components/shared/SendModalBase/components/RecipientStep.d.ts +7 -0
- package/dist/components/shared/SendModalBase/components/RecipientStep.d.ts.map +1 -1
- package/dist/hooks/useAppContent/index.js +6 -6
- package/dist/hooks/useAppContent/index.mjs +5 -5
- package/dist/hooks/useModules/index.d.ts +3 -0
- package/dist/hooks/useModules/index.d.ts.map +1 -1
- package/dist/hooks/useModules/index.js +2 -2
- package/dist/hooks/useModules/index.mjs +1 -1
- package/dist/hooks/useModules.d.ts +3 -0
- package/dist/hooks/useModules.d.ts.map +1 -1
- package/dist/hooks/useSendActivity/index.js +1 -1
- package/dist/hooks/useSendActivity/index.mjs +1 -1
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/types/modulesConfig.d.ts +6 -0
- package/dist/types/modulesConfig.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-42I5KRYG.mjs.map +0 -1
- package/dist/chunk-NCVAMXYV.mjs.map +0 -1
- package/dist/chunk-T4UIREXS.js.map +0 -1
- package/dist/chunk-Y457NXR3.js.map +0 -1
- /package/dist/{chunk-5JF47R7V.mjs.map → chunk-BYHXD3DU.mjs.map} +0 -0
- /package/dist/{chunk-6EWQZUPA.mjs.map → chunk-PKH5SHBS.mjs.map} +0 -0
|
@@ -20,7 +20,7 @@ var _chunkVZMCTNX7js = require('./chunk-VZMCTNX7.js');
|
|
|
20
20
|
var _chunkVG6CKFHNjs = require('./chunk-VG6CKFHN.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk3BKXXQXPjs = require('./chunk-3BKXXQXP.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunk5YPVOXOZjs = require('./chunk-5YPVOXOZ.js');
|
|
@@ -40,7 +40,7 @@ var _chunkM4Z5LDHLjs = require('./chunk-M4Z5LDHL.js');
|
|
|
40
40
|
var _chunkAAP4D5O3js = require('./chunk-AAP4D5O3.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkPJIV7QPKjs = require('./chunk-PJIV7QPK.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -114,7 +114,7 @@ var _chunkY7W7MHPXjs = require('./chunk-Y7W7MHPX.js');
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
var
|
|
117
|
+
var _chunkKFF223EVjs = require('./chunk-KFF223EV.js');
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
@@ -837,6 +837,7 @@ var RecipientStep = ({
|
|
|
837
837
|
categories,
|
|
838
838
|
onCategoriesChange,
|
|
839
839
|
entityNameWithArticle,
|
|
840
|
+
warningMessage,
|
|
840
841
|
studentsError,
|
|
841
842
|
testIdPrefix
|
|
842
843
|
}) => {
|
|
@@ -866,6 +867,16 @@ var RecipientStep = ({
|
|
|
866
867
|
]
|
|
867
868
|
}
|
|
868
869
|
),
|
|
870
|
+
_optionalChain([warningMessage, 'optionalAccess', _24 => _24.trim, 'call', _25 => _25()]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
871
|
+
_chunkCFD6NHL7js.Alert_default,
|
|
872
|
+
{
|
|
873
|
+
variant: "solid",
|
|
874
|
+
action: "warning",
|
|
875
|
+
description: warningMessage,
|
|
876
|
+
className: "w-full flex-shrink-0",
|
|
877
|
+
"data-testid": testIdPrefix ? `${testIdPrefix}-recipient-warning` : void 0
|
|
878
|
+
}
|
|
879
|
+
),
|
|
869
880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
870
881
|
"div",
|
|
871
882
|
{
|
|
@@ -1187,7 +1198,7 @@ var AlertsManager = ({
|
|
|
1187
1198
|
const categoriesInitializedRef = _react.useRef.call(void 0, false);
|
|
1188
1199
|
const { labels, behavior, steps: customSteps } = config;
|
|
1189
1200
|
const { handleCategoriesChange: baseHandleCategoriesChange } = _chunk3KNRWJCCjs.useDynamicStudentFetching.call(void 0, setCategories, {
|
|
1190
|
-
fetchStudentsByFilters: _optionalChain([behavior, 'optionalAccess',
|
|
1201
|
+
fetchStudentsByFilters: _optionalChain([behavior, 'optionalAccess', _26 => _26.fetchStudentsByFilters])
|
|
1191
1202
|
});
|
|
1192
1203
|
const handleCategoriesChange = _react.useCallback.call(void 0,
|
|
1193
1204
|
async (updatedCategories) => {
|
|
@@ -1223,24 +1234,24 @@ var AlertsManager = ({
|
|
|
1223
1234
|
},
|
|
1224
1235
|
{
|
|
1225
1236
|
id: "2",
|
|
1226
|
-
label: _optionalChain([labels, 'optionalAccess',
|
|
1237
|
+
label: _optionalChain([labels, 'optionalAccess', _27 => _27.recipientsTitle]) || "Destinat\xE1rios",
|
|
1227
1238
|
state: "current"
|
|
1228
1239
|
},
|
|
1229
1240
|
{
|
|
1230
1241
|
id: "3",
|
|
1231
|
-
label: _optionalChain([labels, 'optionalAccess',
|
|
1242
|
+
label: _optionalChain([labels, 'optionalAccess', _28 => _28.dateLabel]) || "Data de envio",
|
|
1232
1243
|
state: "pending"
|
|
1233
1244
|
},
|
|
1234
1245
|
{
|
|
1235
1246
|
id: "4",
|
|
1236
|
-
label: _optionalChain([labels, 'optionalAccess',
|
|
1247
|
+
label: _optionalChain([labels, 'optionalAccess', _29 => _29.previewTitle]) || "Pr\xE9via",
|
|
1237
1248
|
state: "pending"
|
|
1238
1249
|
}
|
|
1239
1250
|
];
|
|
1240
1251
|
const steps = customSteps || defaultSteps;
|
|
1241
1252
|
const handleCloseModal = () => {
|
|
1242
1253
|
setIsModalOpen(false);
|
|
1243
|
-
_optionalChain([onClose, 'optionalCall',
|
|
1254
|
+
_optionalChain([onClose, 'optionalCall', _30 => _30()]);
|
|
1244
1255
|
};
|
|
1245
1256
|
const isCurrentStepValid2 = _react.useCallback.call(void 0, () => {
|
|
1246
1257
|
return isCurrentStepValid(
|
|
@@ -1305,7 +1316,7 @@ var AlertsManager = ({
|
|
|
1305
1316
|
)
|
|
1306
1317
|
};
|
|
1307
1318
|
try {
|
|
1308
|
-
if (_optionalChain([behavior, 'optionalAccess',
|
|
1319
|
+
if (_optionalChain([behavior, 'optionalAccess', _31 => _31.onSendAlert])) {
|
|
1309
1320
|
await behavior.onSendAlert(alertData);
|
|
1310
1321
|
} else {
|
|
1311
1322
|
console.log("Dados do formul\xE1rio:", alertData);
|
|
@@ -1328,7 +1339,7 @@ var AlertsManager = ({
|
|
|
1328
1339
|
}
|
|
1329
1340
|
);
|
|
1330
1341
|
const currentStepContent = _react.useMemo.call(void 0, () => {
|
|
1331
|
-
if (_optionalChain([customSteps, 'optionalAccess',
|
|
1342
|
+
if (_optionalChain([customSteps, 'optionalAccess', _32 => _32[currentStep], 'optionalAccess', _33 => _33.component])) {
|
|
1332
1343
|
const CustomComponent = customSteps[currentStep].component;
|
|
1333
1344
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, StepWrapper, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CustomComponent, { onNext: handleNext2, onPrevious: handlePrevious }) });
|
|
1334
1345
|
}
|
|
@@ -1338,7 +1349,7 @@ var AlertsManager = ({
|
|
|
1338
1349
|
MessageStep,
|
|
1339
1350
|
{
|
|
1340
1351
|
labels,
|
|
1341
|
-
allowImageAttachment: _optionalChain([behavior, 'optionalAccess',
|
|
1352
|
+
allowImageAttachment: _optionalChain([behavior, 'optionalAccess', _34 => _34.allowImageAttachment])
|
|
1342
1353
|
}
|
|
1343
1354
|
) });
|
|
1344
1355
|
case 1:
|
|
@@ -1355,8 +1366,8 @@ var AlertsManager = ({
|
|
|
1355
1366
|
DateStep,
|
|
1356
1367
|
{
|
|
1357
1368
|
labels,
|
|
1358
|
-
allowScheduling: _optionalChain([behavior, 'optionalAccess',
|
|
1359
|
-
allowEmailCopy: _optionalChain([behavior, 'optionalAccess',
|
|
1369
|
+
allowScheduling: _optionalChain([behavior, 'optionalAccess', _35 => _35.allowScheduling]),
|
|
1370
|
+
allowEmailCopy: _optionalChain([behavior, 'optionalAccess', _36 => _36.allowEmailCopy])
|
|
1360
1371
|
}
|
|
1361
1372
|
) });
|
|
1362
1373
|
case 3:
|
|
@@ -1382,11 +1393,11 @@ var AlertsManager = ({
|
|
|
1382
1393
|
{
|
|
1383
1394
|
isOpen: isModalOpen,
|
|
1384
1395
|
onClose: handleCloseModal,
|
|
1385
|
-
title: _optionalChain([labels, 'optionalAccess',
|
|
1396
|
+
title: _optionalChain([labels, 'optionalAccess', _37 => _37.modalTitle]) || "Enviar aviso",
|
|
1386
1397
|
size: "md",
|
|
1387
1398
|
contentClassName: "p-0",
|
|
1388
1399
|
footer: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-3 justify-end w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-3", children: [
|
|
1389
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN2HPVVHjs.Button_default, { variant: "link", size: "small", onClick: handleCloseModal, children: _optionalChain([labels, 'optionalAccess',
|
|
1400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN2HPVVHjs.Button_default, { variant: "link", size: "small", onClick: handleCloseModal, children: _optionalChain([labels, 'optionalAccess', _38 => _38.cancelButton]) || "Cancelar" }),
|
|
1390
1401
|
!isFirstStep && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1391
1402
|
_chunkXN2HPVVHjs.Button_default,
|
|
1392
1403
|
{
|
|
@@ -1394,7 +1405,7 @@ var AlertsManager = ({
|
|
|
1394
1405
|
size: "small",
|
|
1395
1406
|
iconLeft: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CaretLeft.CaretLeftIcon, {}),
|
|
1396
1407
|
onClick: handlePrevious,
|
|
1397
|
-
children: _optionalChain([labels, 'optionalAccess',
|
|
1408
|
+
children: _optionalChain([labels, 'optionalAccess', _39 => _39.previousButton]) || "Anterior"
|
|
1398
1409
|
}
|
|
1399
1410
|
),
|
|
1400
1411
|
isLastStep ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1405,7 +1416,7 @@ var AlertsManager = ({
|
|
|
1405
1416
|
size: "small",
|
|
1406
1417
|
onClick: handleFinish,
|
|
1407
1418
|
disabled: !canFinish2(),
|
|
1408
|
-
children: _optionalChain([labels, 'optionalAccess',
|
|
1419
|
+
children: _optionalChain([labels, 'optionalAccess', _40 => _40.finishButton]) || "Enviar Aviso"
|
|
1409
1420
|
}
|
|
1410
1421
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1411
1422
|
_chunkXN2HPVVHjs.Button_default,
|
|
@@ -1415,7 +1426,7 @@ var AlertsManager = ({
|
|
|
1415
1426
|
size: "small",
|
|
1416
1427
|
onClick: handleNext2,
|
|
1417
1428
|
disabled: !isCurrentStepValid2(),
|
|
1418
|
-
children: _optionalChain([labels, 'optionalAccess',
|
|
1429
|
+
children: _optionalChain([labels, 'optionalAccess', _41 => _41.nextButton]) || "Pr\xF3ximo"
|
|
1419
1430
|
}
|
|
1420
1431
|
)
|
|
1421
1432
|
] }) }),
|
|
@@ -1468,7 +1479,7 @@ function useAudioSpectrum(audioRef, isActive, {
|
|
|
1468
1479
|
if (!AudioCtor) return;
|
|
1469
1480
|
if (!contextRef.current || builtForRef.current !== audio) {
|
|
1470
1481
|
try {
|
|
1471
|
-
_optionalChain([contextRef, 'access',
|
|
1482
|
+
_optionalChain([contextRef, 'access', _42 => _42.current, 'optionalAccess', _43 => _43.close, 'call', _44 => _44()]);
|
|
1472
1483
|
const context2 = new AudioCtor();
|
|
1473
1484
|
const source = context2.createMediaElementSource(audio);
|
|
1474
1485
|
const analyser2 = context2.createAnalyser();
|
|
@@ -1487,7 +1498,7 @@ function useAudioSpectrum(audioRef, isActive, {
|
|
|
1487
1498
|
const context = contextRef.current;
|
|
1488
1499
|
const analyser = analyserRef.current;
|
|
1489
1500
|
if (!context || !analyser) return;
|
|
1490
|
-
_optionalChain([context, 'access',
|
|
1501
|
+
_optionalChain([context, 'access', _45 => _45.resume, 'optionalCall', _46 => _46(), 'access', _47 => _47.catch, 'call', _48 => _48(() => {
|
|
1491
1502
|
})]);
|
|
1492
1503
|
const bins = new Uint8Array(analyser.frequencyBinCount);
|
|
1493
1504
|
const binCount = bins.length;
|
|
@@ -1524,7 +1535,7 @@ function useAudioSpectrum(audioRef, isActive, {
|
|
|
1524
1535
|
_react.useEffect.call(void 0, () => {
|
|
1525
1536
|
return () => {
|
|
1526
1537
|
if (frameRef.current != null) cancelAnimationFrame(frameRef.current);
|
|
1527
|
-
_optionalChain([contextRef, 'access',
|
|
1538
|
+
_optionalChain([contextRef, 'access', _49 => _49.current, 'optionalAccess', _50 => _50.close, 'call', _51 => _51()]);
|
|
1528
1539
|
contextRef.current = null;
|
|
1529
1540
|
analyserRef.current = null;
|
|
1530
1541
|
sourceRef.current = null;
|
|
@@ -1557,7 +1568,7 @@ var mergeCategoriesWithSelection = (prev, current) => {
|
|
|
1557
1568
|
return category;
|
|
1558
1569
|
}
|
|
1559
1570
|
const validSelectedIds = (prevCategory.selectedIds || []).filter(
|
|
1560
|
-
(id) => _optionalChain([category, 'access',
|
|
1571
|
+
(id) => _optionalChain([category, 'access', _52 => _52.itens, 'optionalAccess', _53 => _53.some, 'call', _54 => _54((item) => item.id === id)])
|
|
1561
1572
|
);
|
|
1562
1573
|
return {
|
|
1563
1574
|
...category,
|
|
@@ -1874,14 +1885,14 @@ var useActivityFiltersDataImpl = (apiClient, options) => {
|
|
|
1874
1885
|
const currentSubtemaCategory = knowledgeCategories.find(
|
|
1875
1886
|
(c) => c.key === "subtema"
|
|
1876
1887
|
);
|
|
1877
|
-
const currentSelectedTopicIds = _optionalChain([currentTemaCategory, 'optionalAccess',
|
|
1878
|
-
const currentSelectedSubtopicIds = _optionalChain([currentSubtemaCategory, 'optionalAccess',
|
|
1888
|
+
const currentSelectedTopicIds = _optionalChain([currentTemaCategory, 'optionalAccess', _55 => _55.selectedIds]) || [];
|
|
1889
|
+
const currentSelectedSubtopicIds = _optionalChain([currentSubtemaCategory, 'optionalAccess', _56 => _56.selectedIds]) || [];
|
|
1879
1890
|
const temaCategory = updatedCategories.find((c) => c.key === "tema");
|
|
1880
|
-
const selectedTopicIds = _optionalChain([temaCategory, 'optionalAccess',
|
|
1891
|
+
const selectedTopicIds = _optionalChain([temaCategory, 'optionalAccess', _57 => _57.selectedIds]) || [];
|
|
1881
1892
|
const subtemaCategory = updatedCategories.find(
|
|
1882
1893
|
(c) => c.key === "subtema"
|
|
1883
1894
|
);
|
|
1884
|
-
const selectedSubtopicIds = _optionalChain([subtemaCategory, 'optionalAccess',
|
|
1895
|
+
const selectedSubtopicIds = _optionalChain([subtemaCategory, 'optionalAccess', _58 => _58.selectedIds]) || [];
|
|
1885
1896
|
setKnowledgeCategories(updatedCategories);
|
|
1886
1897
|
const topicIdsChanged = isFirstChange || currentSelectedTopicIds.length !== selectedTopicIds.length || currentSelectedTopicIds.some(
|
|
1887
1898
|
(id) => !selectedTopicIds.includes(id)
|
|
@@ -1959,15 +1970,15 @@ var useActivityFiltersDataImpl = (apiClient, options) => {
|
|
|
1959
1970
|
(c) => c.key === "assunto"
|
|
1960
1971
|
);
|
|
1961
1972
|
const selectedTopics = mapSelectedNames(
|
|
1962
|
-
_optionalChain([temaCategory, 'optionalAccess',
|
|
1973
|
+
_optionalChain([temaCategory, 'optionalAccess', _59 => _59.selectedIds]) || [],
|
|
1963
1974
|
knowledgeStructure.topics
|
|
1964
1975
|
);
|
|
1965
1976
|
const selectedSubtopics = mapSelectedNames(
|
|
1966
|
-
_optionalChain([subtemaCategory, 'optionalAccess',
|
|
1977
|
+
_optionalChain([subtemaCategory, 'optionalAccess', _60 => _60.selectedIds]) || [],
|
|
1967
1978
|
knowledgeStructure.subtopics
|
|
1968
1979
|
);
|
|
1969
1980
|
const selectedContents = mapSelectedNames(
|
|
1970
|
-
_optionalChain([assuntoCategory, 'optionalAccess',
|
|
1981
|
+
_optionalChain([assuntoCategory, 'optionalAccess', _61 => _61.selectedIds]) || [],
|
|
1971
1982
|
knowledgeStructure.contents
|
|
1972
1983
|
);
|
|
1973
1984
|
return {
|
|
@@ -2042,13 +2053,13 @@ var _TextAlignLeft = require('@phosphor-icons/react/dist/csr/TextAlignLeft');
|
|
|
2042
2053
|
// src/components/ActivityCreate/ActivityCreate.utils.ts
|
|
2043
2054
|
function extractLessonsFromResponse(responseData) {
|
|
2044
2055
|
const draft = responseData.draft;
|
|
2045
|
-
if (_optionalChain([draft, 'optionalAccess',
|
|
2056
|
+
if (_optionalChain([draft, 'optionalAccess', _62 => _62.selectedLessons]) && draft.selectedLessons.length > 0) {
|
|
2046
2057
|
return draft.selectedLessons;
|
|
2047
2058
|
}
|
|
2048
2059
|
if (responseData.selectedLessons && responseData.selectedLessons.length > 0) {
|
|
2049
2060
|
return responseData.selectedLessons;
|
|
2050
2061
|
}
|
|
2051
|
-
if (_optionalChain([draft, 'optionalAccess',
|
|
2062
|
+
if (_optionalChain([draft, 'optionalAccess', _63 => _63.lessons]) && draft.lessons.length > 0) {
|
|
2052
2063
|
return draft.lessons.map((item) => {
|
|
2053
2064
|
if (item && typeof item === "object" && "lesson" in item && item.lesson) {
|
|
2054
2065
|
return item.lesson;
|
|
@@ -2109,7 +2120,7 @@ function getSubjectName(subjectId, knowledgeAreas) {
|
|
|
2109
2120
|
return null;
|
|
2110
2121
|
}
|
|
2111
2122
|
const subject = knowledgeAreas.find((area) => area.id === subjectId);
|
|
2112
|
-
return _optionalChain([subject, 'optionalAccess',
|
|
2123
|
+
return _optionalChain([subject, 'optionalAccess', _64 => _64.name]) || null;
|
|
2113
2124
|
}
|
|
2114
2125
|
function getActivityTypeLabel(type) {
|
|
2115
2126
|
const activityTypeLabels = {
|
|
@@ -2149,16 +2160,16 @@ function getTypeFromUrlString(type) {
|
|
|
2149
2160
|
}
|
|
2150
2161
|
function convertQuestionToPreview(question) {
|
|
2151
2162
|
const subjectInfo = question.knowledgeMatrix && question.knowledgeMatrix.length > 0 ? {
|
|
2152
|
-
subjectName: _optionalChain([question, 'access',
|
|
2153
|
-
subjectColor: _optionalChain([question, 'access',
|
|
2154
|
-
iconName: _optionalChain([question, 'access',
|
|
2163
|
+
subjectName: _optionalChain([question, 'access', _65 => _65.knowledgeMatrix, 'access', _66 => _66[0], 'access', _67 => _67.subject, 'optionalAccess', _68 => _68.name]) || void 0,
|
|
2164
|
+
subjectColor: _optionalChain([question, 'access', _69 => _69.knowledgeMatrix, 'access', _70 => _70[0], 'access', _71 => _71.subject, 'optionalAccess', _72 => _72.color]) || void 0,
|
|
2165
|
+
iconName: _optionalChain([question, 'access', _73 => _73.knowledgeMatrix, 'access', _74 => _74[0], 'access', _75 => _75.subject, 'optionalAccess', _76 => _76.icon]) || void 0
|
|
2155
2166
|
} : {};
|
|
2156
2167
|
return {
|
|
2157
2168
|
id: question.id,
|
|
2158
2169
|
statement: question.statement,
|
|
2159
2170
|
solutionExplanation: _nullishCoalesce(question.solutionExplanation, () => ( null)),
|
|
2160
|
-
bank: _optionalChain([question, 'access',
|
|
2161
|
-
year: _optionalChain([question, 'access',
|
|
2171
|
+
bank: _optionalChain([question, 'access', _77 => _77.questionBankYear, 'optionalAccess', _78 => _78.questionBank, 'optionalAccess', _79 => _79.name]) || void 0,
|
|
2172
|
+
year: _optionalChain([question, 'access', _80 => _80.questionBankYear, 'optionalAccess', _81 => _81.year]) || void 0,
|
|
2162
2173
|
questionType: question.questionType,
|
|
2163
2174
|
question: question.options ? {
|
|
2164
2175
|
options: question.options.map(
|
|
@@ -2251,30 +2262,30 @@ function shouldSkipAutoSave(params) {
|
|
|
2251
2262
|
return false;
|
|
2252
2263
|
}
|
|
2253
2264
|
function tryExtractDraftFromStandardFormat(responseData) {
|
|
2254
|
-
if (_optionalChain([responseData, 'access',
|
|
2265
|
+
if (_optionalChain([responseData, 'access', _82 => _82.data, 'optionalAccess', _83 => _83.draft])) {
|
|
2255
2266
|
return responseData.data.draft;
|
|
2256
2267
|
}
|
|
2257
2268
|
if ("draft" in responseData && typeof responseData === "object") {
|
|
2258
|
-
return _optionalChain([responseData, 'optionalAccess',
|
|
2269
|
+
return _optionalChain([responseData, 'optionalAccess', _84 => _84.draft]);
|
|
2259
2270
|
}
|
|
2260
2271
|
return void 0;
|
|
2261
2272
|
}
|
|
2262
2273
|
function logDraftExtractionError(response) {
|
|
2263
2274
|
console.error("\u274C Resposta inv\xE1lida da API ao criar rascunho:", {
|
|
2264
2275
|
response,
|
|
2265
|
-
responseData: _optionalChain([response, 'optionalAccess',
|
|
2266
|
-
responseDataData: _optionalChain([response, 'optionalAccess',
|
|
2267
|
-
responseKeys: _optionalChain([response, 'optionalAccess',
|
|
2268
|
-
responseDataKeys: _optionalChain([response, 'optionalAccess',
|
|
2276
|
+
responseData: _optionalChain([response, 'optionalAccess', _85 => _85.data]),
|
|
2277
|
+
responseDataData: _optionalChain([response, 'optionalAccess', _86 => _86.data, 'optionalAccess', _87 => _87.data]),
|
|
2278
|
+
responseKeys: _optionalChain([response, 'optionalAccess', _88 => _88.data]) ? Object.keys(response.data) : [],
|
|
2279
|
+
responseDataKeys: _optionalChain([response, 'optionalAccess', _89 => _89.data, 'optionalAccess', _90 => _90.data]) ? Object.keys(response.data.data) : []
|
|
2269
2280
|
});
|
|
2270
2281
|
}
|
|
2271
2282
|
function extractDraftFromResponse(response) {
|
|
2272
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
2283
|
+
if (!_optionalChain([response, 'optionalAccess', _91 => _91.data])) {
|
|
2273
2284
|
console.error("\u274C Resposta vazia da API ao criar rascunho:", response);
|
|
2274
2285
|
throw new Error("Invalid response: empty response from API");
|
|
2275
2286
|
}
|
|
2276
2287
|
const savedDraft = tryExtractDraftFromStandardFormat(response.data);
|
|
2277
|
-
if (!_optionalChain([savedDraft, 'optionalAccess',
|
|
2288
|
+
if (!_optionalChain([savedDraft, 'optionalAccess', _92 => _92.id])) {
|
|
2278
2289
|
logDraftExtractionError(response);
|
|
2279
2290
|
throw new Error(
|
|
2280
2291
|
"Invalid response: draft data is missing. Expected structure: response.data.data.draft"
|
|
@@ -2300,7 +2311,7 @@ function buildActivityDraftIds(existingActivities, newActivityDraftId) {
|
|
|
2300
2311
|
];
|
|
2301
2312
|
}
|
|
2302
2313
|
function buildLessonIds(lessons) {
|
|
2303
|
-
return _optionalChain([lessons, 'optionalAccess',
|
|
2314
|
+
return _optionalChain([lessons, 'optionalAccess', _93 => _93.map, 'call', _94 => _94((l) => ({
|
|
2304
2315
|
lessonId: l.lessonId,
|
|
2305
2316
|
sequence: l.sequence
|
|
2306
2317
|
}))]) || [];
|
|
@@ -2322,24 +2333,24 @@ function formatNavigatePath(path) {
|
|
|
2322
2333
|
return path.startsWith("/") ? path : `/${path}`;
|
|
2323
2334
|
}
|
|
2324
2335
|
function getSubjectIdOrThrow(activitySubjectId, appliedFiltersSubjectIds) {
|
|
2325
|
-
const subjectId = activitySubjectId || _optionalChain([appliedFiltersSubjectIds, 'optionalAccess',
|
|
2336
|
+
const subjectId = activitySubjectId || _optionalChain([appliedFiltersSubjectIds, 'optionalAccess', _95 => _95[0]]);
|
|
2326
2337
|
if (!subjectId) {
|
|
2327
2338
|
throw new Error("Subject ID n\xE3o encontrado");
|
|
2328
2339
|
}
|
|
2329
2340
|
return subjectId;
|
|
2330
2341
|
}
|
|
2331
2342
|
function extractActivityIdFromResponse(response) {
|
|
2332
|
-
const activityId = _optionalChain([response, 'optionalAccess',
|
|
2343
|
+
const activityId = _optionalChain([response, 'optionalAccess', _96 => _96.data, 'optionalAccess', _97 => _97.data, 'optionalAccess', _98 => _98.id]);
|
|
2333
2344
|
if (!activityId) {
|
|
2334
2345
|
throw new Error("ID da atividade n\xE3o retornado pela API");
|
|
2335
2346
|
}
|
|
2336
2347
|
return activityId;
|
|
2337
2348
|
}
|
|
2338
2349
|
function validateSendActivityResponses(createResponse, sendResponse) {
|
|
2339
|
-
if (!_optionalChain([createResponse, 'optionalAccess',
|
|
2350
|
+
if (!_optionalChain([createResponse, 'optionalAccess', _99 => _99.data])) {
|
|
2340
2351
|
throw new Error("Resposta inv\xE1lida ao criar atividade");
|
|
2341
2352
|
}
|
|
2342
|
-
if (!_optionalChain([sendResponse, 'optionalAccess',
|
|
2353
|
+
if (!_optionalChain([sendResponse, 'optionalAccess', _100 => _100.data])) {
|
|
2343
2354
|
throw new Error("Resposta inv\xE1lida ao enviar atividade para estudantes");
|
|
2344
2355
|
}
|
|
2345
2356
|
}
|
|
@@ -2369,7 +2380,7 @@ function buildPartialActivityUpdate(prevActivity, draft, questionIds) {
|
|
|
2369
2380
|
};
|
|
2370
2381
|
}
|
|
2371
2382
|
function buildPayloadWithTypeOverride(basePayload, typeOverride, customTitle, subjectId, knowledgeAreas) {
|
|
2372
|
-
const trimmedCustomTitle = _optionalChain([customTitle, 'optionalAccess',
|
|
2383
|
+
const trimmedCustomTitle = _optionalChain([customTitle, 'optionalAccess', _101 => _101.trim, 'call', _102 => _102()]);
|
|
2373
2384
|
const title = trimmedCustomTitle && trimmedCustomTitle.length > 0 ? trimmedCustomTitle : generateTitle(typeOverride, subjectId, knowledgeAreas);
|
|
2374
2385
|
return {
|
|
2375
2386
|
...basePayload,
|
|
@@ -2840,8 +2851,8 @@ var ActivityListQuestions = ({
|
|
|
2840
2851
|
return { content: "Sem assunto", color: "#6B7280", icon: "BookOpen" };
|
|
2841
2852
|
}
|
|
2842
2853
|
const parts = [subject.name];
|
|
2843
|
-
if (_optionalChain([topic, 'optionalAccess',
|
|
2844
|
-
if (_optionalChain([subtopic, 'optionalAccess',
|
|
2854
|
+
if (_optionalChain([topic, 'optionalAccess', _103 => _103.name])) parts.push(topic.name);
|
|
2855
|
+
if (_optionalChain([subtopic, 'optionalAccess', _104 => _104.name])) parts.push(subtopic.name);
|
|
2845
2856
|
return {
|
|
2846
2857
|
content: parts.join(" - "),
|
|
2847
2858
|
color: subject.color || "#6B7280",
|
|
@@ -2853,8 +2864,8 @@ var ActivityListQuestions = ({
|
|
|
2853
2864
|
const term = _chunk2ZNHHWWXjs.normalizeText.call(void 0, searchTerm);
|
|
2854
2865
|
return questions.filter((q) => {
|
|
2855
2866
|
const subjectText = getSubjectInfo2(q).content;
|
|
2856
|
-
const bankName = _nullishCoalesce(_optionalChain([q, 'access',
|
|
2857
|
-
const year = String(_nullishCoalesce(_optionalChain([q, 'access',
|
|
2867
|
+
const bankName = _nullishCoalesce(_optionalChain([q, 'access', _105 => _105.questionBankYear, 'optionalAccess', _106 => _106.questionBank, 'optionalAccess', _107 => _107.name]), () => ( ""));
|
|
2868
|
+
const year = String(_nullishCoalesce(_optionalChain([q, 'access', _108 => _108.questionBankYear, 'optionalAccess', _109 => _109.year]), () => ( "")));
|
|
2858
2869
|
return _chunk2ZNHHWWXjs.normalizeText.call(void 0, subjectText).includes(term) || _chunk2ZNHHWWXjs.normalizeText.call(void 0, _nullishCoalesce(q.statement, () => ( ""))).includes(term) || _chunk2ZNHHWWXjs.normalizeText.call(void 0, bankName).includes(term) || _chunk2ZNHHWWXjs.normalizeText.call(void 0, year).includes(term);
|
|
2859
2870
|
});
|
|
2860
2871
|
}, [questions, searchTerm]);
|
|
@@ -2864,7 +2875,7 @@ var ActivityListQuestions = ({
|
|
|
2864
2875
|
prefetchDoneRef.current = false;
|
|
2865
2876
|
if (appliedFilters) {
|
|
2866
2877
|
if (hasValidCacheResult) {
|
|
2867
|
-
if (_optionalChain([cachedPagination, 'optionalAccess',
|
|
2878
|
+
if (_optionalChain([cachedPagination, 'optionalAccess', _110 => _110.page])) {
|
|
2868
2879
|
lastLoadedPageRef.current = cachedPagination.page;
|
|
2869
2880
|
}
|
|
2870
2881
|
return;
|
|
@@ -2894,16 +2905,16 @@ var ActivityListQuestions = ({
|
|
|
2894
2905
|
}
|
|
2895
2906
|
}, [allQuestions, pagination, appliedFilters, setCachedQuestions]);
|
|
2896
2907
|
_react.useEffect.call(void 0, () => {
|
|
2897
|
-
if (_optionalChain([effectivePagination, 'optionalAccess',
|
|
2908
|
+
if (_optionalChain([effectivePagination, 'optionalAccess', _111 => _111.page])) {
|
|
2898
2909
|
lastLoadedPageRef.current = effectivePagination.page;
|
|
2899
2910
|
}
|
|
2900
|
-
}, [_optionalChain([effectivePagination, 'optionalAccess',
|
|
2911
|
+
}, [_optionalChain([effectivePagination, 'optionalAccess', _112 => _112.page])]);
|
|
2901
2912
|
_react.useEffect.call(void 0, () => {
|
|
2902
2913
|
if (!searchTerm || !appliedFilters || prefetchDoneRef.current) return;
|
|
2903
2914
|
const pag = effectivePaginationRef.current;
|
|
2904
|
-
const total = _nullishCoalesce(_optionalChain([pag, 'optionalAccess',
|
|
2905
|
-
const pageSize = _nullishCoalesce(_optionalChain([pag, 'optionalAccess',
|
|
2906
|
-
if (total <= pageSize || !_optionalChain([pag, 'optionalAccess',
|
|
2915
|
+
const total = _nullishCoalesce(_optionalChain([pag, 'optionalAccess', _113 => _113.total]), () => ( 0));
|
|
2916
|
+
const pageSize = _nullishCoalesce(_optionalChain([pag, 'optionalAccess', _114 => _114.pageSize]), () => ( 10));
|
|
2917
|
+
if (total <= pageSize || !_optionalChain([pag, 'optionalAccess', _115 => _115.hasNext])) {
|
|
2907
2918
|
prefetchDoneRef.current = true;
|
|
2908
2919
|
return;
|
|
2909
2920
|
}
|
|
@@ -2913,8 +2924,8 @@ var ActivityListQuestions = ({
|
|
|
2913
2924
|
prefetchDoneRef.current = true;
|
|
2914
2925
|
try {
|
|
2915
2926
|
const apiFilters = appliedFilters ? convertActivityFiltersToQuestionsFilter(appliedFilters) : void 0;
|
|
2916
|
-
const totalPages = _nullishCoalesce(_optionalChain([pag, 'optionalAccess',
|
|
2917
|
-
const currentPage = _nullishCoalesce(_optionalChain([pag, 'optionalAccess',
|
|
2927
|
+
const totalPages = _nullishCoalesce(_optionalChain([pag, 'optionalAccess', _116 => _116.totalPages]), () => ( 1));
|
|
2928
|
+
const currentPage = _nullishCoalesce(_optionalChain([pag, 'optionalAccess', _117 => _117.page]), () => ( 1));
|
|
2918
2929
|
for (let page = currentPage + 1; page <= totalPages; page++) {
|
|
2919
2930
|
if (cancelled) break;
|
|
2920
2931
|
await fetchQuestions({ ...apiFilters, page }, true);
|
|
@@ -2945,10 +2956,10 @@ var ActivityListQuestions = ({
|
|
|
2945
2956
|
const handleScroll = () => {
|
|
2946
2957
|
const { scrollTop, scrollHeight, clientHeight } = container;
|
|
2947
2958
|
const scrollPercentage = (scrollTop + clientHeight) / scrollHeight;
|
|
2948
|
-
const currentPage = _nullishCoalesce(_optionalChain([effectivePagination, 'optionalAccess',
|
|
2959
|
+
const currentPage = _nullishCoalesce(_optionalChain([effectivePagination, 'optionalAccess', _118 => _118.page]), () => ( 1));
|
|
2949
2960
|
const nextPage = currentPage + 1;
|
|
2950
2961
|
const scrollThreshold = calculateScrollThreshold(currentPage);
|
|
2951
|
-
if (scrollPercentage >= scrollThreshold && !loading && !loadingMore && _optionalChain([effectivePagination, 'optionalAccess',
|
|
2962
|
+
if (scrollPercentage >= scrollThreshold && !loading && !loadingMore && _optionalChain([effectivePagination, 'optionalAccess', _119 => _119.hasNext]) && lastLoadedPageRef.current < nextPage) {
|
|
2952
2963
|
const apiFilters = appliedFilters ? convertActivityFiltersToQuestionsFilter(appliedFilters) : void 0;
|
|
2953
2964
|
loadMore(apiFilters, _nullishCoalesce(effectivePagination, () => ( void 0)));
|
|
2954
2965
|
}
|
|
@@ -2958,7 +2969,7 @@ var ActivityListQuestions = ({
|
|
|
2958
2969
|
container.removeEventListener("scroll", handleScroll);
|
|
2959
2970
|
};
|
|
2960
2971
|
}, [loading, loadingMore, effectivePagination, loadMore, appliedFilters]);
|
|
2961
|
-
const totalQuestions = _optionalChain([effectivePagination, 'optionalAccess',
|
|
2972
|
+
const totalQuestions = _optionalChain([effectivePagination, 'optionalAccess', _120 => _120.total]) || 0;
|
|
2962
2973
|
const displayedCount = searchTerm ? displayedQuestions.length : totalQuestions;
|
|
2963
2974
|
const uniqueQuestion = (count = displayedCount) => count === 1 ? "quest\xE3o" : "quest\xF5es";
|
|
2964
2975
|
const getStatusText2 = () => {
|
|
@@ -3047,8 +3058,8 @@ var ActivityListQuestions = ({
|
|
|
3047
3058
|
subjectColor: subjectInfo.color,
|
|
3048
3059
|
isDark,
|
|
3049
3060
|
content: subjectInfo.content,
|
|
3050
|
-
bank: _optionalChain([question, 'access',
|
|
3051
|
-
year: _optionalChain([question, 'access',
|
|
3061
|
+
bank: _optionalChain([question, 'access', _121 => _121.questionBankYear, 'optionalAccess', _122 => _122.questionBank, 'optionalAccess', _123 => _123.name]),
|
|
3062
|
+
year: _optionalChain([question, 'access', _124 => _124.questionBankYear, 'optionalAccess', _125 => _125.year]),
|
|
3052
3063
|
statement: searchTerm ? _chunk2ZNHHWWXjs.highlightSearchTerm.call(void 0, _nullishCoalesce(question.statement, () => ( "")), searchTerm) : question.statement,
|
|
3053
3064
|
additionalContent: question.additionalContent,
|
|
3054
3065
|
onAddToActivity: () => {
|
|
@@ -3421,7 +3432,7 @@ var CreateActivity = ({
|
|
|
3421
3432
|
[setDraftFilters]
|
|
3422
3433
|
);
|
|
3423
3434
|
const handleApplyFilters = _react.useCallback.call(void 0, () => {
|
|
3424
|
-
if (!hasRequiredSubjectIds(_optionalChain([draftFilters, 'optionalAccess',
|
|
3435
|
+
if (!hasRequiredSubjectIds(_optionalChain([draftFilters, 'optionalAccess', _126 => _126.subjectIds]))) {
|
|
3425
3436
|
addToast({
|
|
3426
3437
|
title: "Selecione ao menos uma mat\xE9ria para pesquisar",
|
|
3427
3438
|
action: "warning",
|
|
@@ -3471,8 +3482,8 @@ var CreateActivity = ({
|
|
|
3471
3482
|
[preFilters]
|
|
3472
3483
|
);
|
|
3473
3484
|
const initialFiltersData = _react.useMemo.call(void 0,
|
|
3474
|
-
() => getInitialFiltersData(_optionalChain([activity, 'optionalAccess',
|
|
3475
|
-
[_optionalChain([activity, 'optionalAccess',
|
|
3485
|
+
() => getInitialFiltersData(_optionalChain([activity, 'optionalAccess', _127 => _127.filters]), resolvedPreFilters),
|
|
3486
|
+
[_optionalChain([activity, 'optionalAccess', _128 => _128.filters]), resolvedPreFilters]
|
|
3476
3487
|
);
|
|
3477
3488
|
const handleClearFilters = _react.useCallback.call(void 0, () => {
|
|
3478
3489
|
clearFilters();
|
|
@@ -3480,7 +3491,7 @@ var CreateActivity = ({
|
|
|
3480
3491
|
}, [clearFilters]);
|
|
3481
3492
|
_react.useEffect.call(void 0, () => {
|
|
3482
3493
|
hasAppliedInitialFiltersRef.current = false;
|
|
3483
|
-
}, [_optionalChain([activity, 'optionalAccess',
|
|
3494
|
+
}, [_optionalChain([activity, 'optionalAccess', _129 => _129.id]), _optionalChain([activity, 'optionalAccess', _130 => _130.filters]), resolvedPreFilters]);
|
|
3484
3495
|
const draftEndpoint = "/activity-drafts";
|
|
3485
3496
|
const activityEndpoint = "/activities";
|
|
3486
3497
|
_react.useEffect.call(void 0, () => {
|
|
@@ -3518,22 +3529,22 @@ var CreateActivity = ({
|
|
|
3518
3529
|
fetchActivityDraft();
|
|
3519
3530
|
}, [idParam, apiClient, addToast, draftEndpoint]);
|
|
3520
3531
|
_react.useEffect.call(void 0, () => {
|
|
3521
|
-
if (shouldUpdateUrl(_optionalChain([activity, 'optionalAccess',
|
|
3532
|
+
if (shouldUpdateUrl(_optionalChain([activity, 'optionalAccess', _131 => _131.id]), _optionalChain([activity, 'optionalAccess', _132 => _132.type]), typeParam, idParam)) {
|
|
3522
3533
|
const urlType = getTypeFromUrl(activity.type);
|
|
3523
3534
|
navigate(buildActivityUrl(urlType, activity.id), {
|
|
3524
3535
|
replace: true
|
|
3525
3536
|
});
|
|
3526
3537
|
}
|
|
3527
3538
|
}, [
|
|
3528
|
-
_optionalChain([activity, 'optionalAccess',
|
|
3529
|
-
_optionalChain([activity, 'optionalAccess',
|
|
3539
|
+
_optionalChain([activity, 'optionalAccess', _133 => _133.id]),
|
|
3540
|
+
_optionalChain([activity, 'optionalAccess', _134 => _134.type]),
|
|
3530
3541
|
typeParam,
|
|
3531
3542
|
idParam,
|
|
3532
3543
|
navigate,
|
|
3533
3544
|
buildActivityUrl
|
|
3534
3545
|
]);
|
|
3535
3546
|
const validateSaveConditions = _react.useCallback.call(void 0, () => {
|
|
3536
|
-
if (isSaving || !hasRequiredSubjectIds(_optionalChain([appliedFilters, 'optionalAccess',
|
|
3547
|
+
if (isSaving || !hasRequiredSubjectIds(_optionalChain([appliedFilters, 'optionalAccess', _135 => _135.subjectIds]))) {
|
|
3537
3548
|
return false;
|
|
3538
3549
|
}
|
|
3539
3550
|
return !shouldSkipAutoSave({
|
|
@@ -3544,7 +3555,7 @@ var CreateActivity = ({
|
|
|
3544
3555
|
});
|
|
3545
3556
|
}, [questions.length, appliedFilters, loadingInitialQuestions, isSaving]);
|
|
3546
3557
|
const createDraftPayload = _react.useCallback.call(void 0, () => {
|
|
3547
|
-
const subjectIds = _nullishCoalesce(_optionalChain([appliedFilters, 'optionalAccess',
|
|
3558
|
+
const subjectIds = _nullishCoalesce(_optionalChain([appliedFilters, 'optionalAccess', _136 => _136.subjectIds]), () => ( []));
|
|
3548
3559
|
const firstSubjectId = subjectIds[0];
|
|
3549
3560
|
if (!firstSubjectId) {
|
|
3550
3561
|
throw new Error("Subject ID n\xE3o encontrado");
|
|
@@ -3578,14 +3589,14 @@ var CreateActivity = ({
|
|
|
3578
3589
|
);
|
|
3579
3590
|
lastSavedQuestionsRef.current = questions;
|
|
3580
3591
|
lastSavedFiltersRef.current = appliedFilters;
|
|
3581
|
-
const savedDraft = _optionalChain([response, 'optionalAccess',
|
|
3592
|
+
const savedDraft = _optionalChain([response, 'optionalAccess', _137 => _137.data, 'optionalAccess', _138 => _138.data, 'optionalAccess', _139 => _139.draft]);
|
|
3582
3593
|
setLastSavedAt(
|
|
3583
|
-
_optionalChain([savedDraft, 'optionalAccess',
|
|
3594
|
+
_optionalChain([savedDraft, 'optionalAccess', _140 => _140.updatedAt]) ? new Date(savedDraft.updatedAt) : /* @__PURE__ */ new Date()
|
|
3584
3595
|
);
|
|
3585
3596
|
if (savedDraft) {
|
|
3586
3597
|
const questionIds = questions.map((q) => q.id);
|
|
3587
3598
|
setActivity((prevActivity) => {
|
|
3588
|
-
if (_optionalChain([prevActivity, 'optionalAccess',
|
|
3599
|
+
if (_optionalChain([prevActivity, 'optionalAccess', _141 => _141.id]) !== savedDraft.id) {
|
|
3589
3600
|
return buildActivityDataFromDraft(savedDraft, questionIds);
|
|
3590
3601
|
}
|
|
3591
3602
|
return buildPartialActivityUpdate(
|
|
@@ -3599,7 +3610,7 @@ var CreateActivity = ({
|
|
|
3599
3610
|
lastFetchedActivityIdRef.current = savedDraft.id;
|
|
3600
3611
|
}
|
|
3601
3612
|
}
|
|
3602
|
-
if (payload.type === "MODELO" /* MODELO */ && onSaveModel && _optionalChain([response, 'optionalAccess',
|
|
3613
|
+
if (payload.type === "MODELO" /* MODELO */ && onSaveModel && _optionalChain([response, 'optionalAccess', _142 => _142.data])) {
|
|
3603
3614
|
onSaveModel(response.data);
|
|
3604
3615
|
}
|
|
3605
3616
|
},
|
|
@@ -3648,7 +3659,7 @@ var CreateActivity = ({
|
|
|
3648
3659
|
if (typeOverride) {
|
|
3649
3660
|
const subjectId = getSubjectIdOrThrow(
|
|
3650
3661
|
void 0,
|
|
3651
|
-
_optionalChain([appliedFilters, 'optionalAccess',
|
|
3662
|
+
_optionalChain([appliedFilters, 'optionalAccess', _143 => _143.subjectIds])
|
|
3652
3663
|
);
|
|
3653
3664
|
payload = buildPayloadWithTypeOverride(
|
|
3654
3665
|
payload,
|
|
@@ -3668,7 +3679,7 @@ var CreateActivity = ({
|
|
|
3668
3679
|
);
|
|
3669
3680
|
hasFirstSaveBeenDone.current = true;
|
|
3670
3681
|
const savedDraft = extractDraftFromResponse(response);
|
|
3671
|
-
updateStateAfterSave(savedDraft, _optionalChain([response, 'optionalAccess',
|
|
3682
|
+
updateStateAfterSave(savedDraft, _optionalChain([response, 'optionalAccess', _144 => _144.data]), true);
|
|
3672
3683
|
return savedDraft.id;
|
|
3673
3684
|
} catch (error) {
|
|
3674
3685
|
console.error("\u274C Erro ao salvar rascunho:", error);
|
|
@@ -3793,7 +3804,7 @@ var CreateActivity = ({
|
|
|
3793
3804
|
loadKnowledgeAreas();
|
|
3794
3805
|
}, [loadKnowledgeAreas]);
|
|
3795
3806
|
_react.useEffect.call(void 0, () => {
|
|
3796
|
-
if (_optionalChain([activity, 'optionalAccess',
|
|
3807
|
+
if (_optionalChain([activity, 'optionalAccess', _145 => _145.selectedQuestions]) && activity.selectedQuestions.length > 0) {
|
|
3797
3808
|
setLoadingInitialQuestions(true);
|
|
3798
3809
|
try {
|
|
3799
3810
|
const previewQuestions = activity.selectedQuestions.map(
|
|
@@ -3815,7 +3826,7 @@ var CreateActivity = ({
|
|
|
3815
3826
|
setLoadingInitialQuestions(false);
|
|
3816
3827
|
}
|
|
3817
3828
|
}
|
|
3818
|
-
}, [_optionalChain([activity, 'optionalAccess',
|
|
3829
|
+
}, [_optionalChain([activity, 'optionalAccess', _146 => _146.selectedQuestions]), addToast]);
|
|
3819
3830
|
_react.useEffect.call(void 0, () => {
|
|
3820
3831
|
if (hasAppliedInitialFiltersRef.current) {
|
|
3821
3832
|
return;
|
|
@@ -3832,12 +3843,12 @@ var CreateActivity = ({
|
|
|
3832
3843
|
if (isInPersonExam) {
|
|
3833
3844
|
setDraftFilters({
|
|
3834
3845
|
types: ["ALTERNATIVA" /* ALTERNATIVA */],
|
|
3835
|
-
bankIds: _optionalChain([draftFilters, 'optionalAccess',
|
|
3836
|
-
yearIds: _optionalChain([draftFilters, 'optionalAccess',
|
|
3837
|
-
subjectIds: _optionalChain([draftFilters, 'optionalAccess',
|
|
3838
|
-
topicIds: _optionalChain([draftFilters, 'optionalAccess',
|
|
3839
|
-
subtopicIds: _optionalChain([draftFilters, 'optionalAccess',
|
|
3840
|
-
contentIds: _optionalChain([draftFilters, 'optionalAccess',
|
|
3846
|
+
bankIds: _optionalChain([draftFilters, 'optionalAccess', _147 => _147.bankIds]) || [],
|
|
3847
|
+
yearIds: _optionalChain([draftFilters, 'optionalAccess', _148 => _148.yearIds]) || [],
|
|
3848
|
+
subjectIds: _optionalChain([draftFilters, 'optionalAccess', _149 => _149.subjectIds]) || [],
|
|
3849
|
+
topicIds: _optionalChain([draftFilters, 'optionalAccess', _150 => _150.topicIds]) || [],
|
|
3850
|
+
subtopicIds: _optionalChain([draftFilters, 'optionalAccess', _151 => _151.subtopicIds]) || [],
|
|
3851
|
+
contentIds: _optionalChain([draftFilters, 'optionalAccess', _152 => _152.contentIds]) || []
|
|
3841
3852
|
});
|
|
3842
3853
|
applyFilters();
|
|
3843
3854
|
}
|
|
@@ -3909,7 +3920,7 @@ var CreateActivity = ({
|
|
|
3909
3920
|
setQuestions(orderedQuestions);
|
|
3910
3921
|
const shouldSave = shouldTriggerSaveOnReorder({
|
|
3911
3922
|
hasFirstSaveBeenDone: hasFirstSaveBeenDone.current,
|
|
3912
|
-
subjectIds: _optionalChain([appliedFilters, 'optionalAccess',
|
|
3923
|
+
subjectIds: _optionalChain([appliedFilters, 'optionalAccess', _153 => _153.subjectIds]),
|
|
3913
3924
|
loadingInitialQuestions,
|
|
3914
3925
|
isSaving
|
|
3915
3926
|
});
|
|
@@ -3943,7 +3954,7 @@ var CreateActivity = ({
|
|
|
3943
3954
|
apiClient
|
|
3944
3955
|
});
|
|
3945
3956
|
const handleOpenSendModal = _react.useCallback.call(void 0, async () => {
|
|
3946
|
-
if (!hasRequiredSubjectIds(_optionalChain([draftFilters, 'optionalAccess',
|
|
3957
|
+
if (!hasRequiredSubjectIds(_optionalChain([draftFilters, 'optionalAccess', _154 => _154.subjectIds]))) {
|
|
3947
3958
|
addToast({
|
|
3948
3959
|
title: "Selecione ao menos uma mat\xE9ria para pesquisar",
|
|
3949
3960
|
action: "warning",
|
|
@@ -3973,8 +3984,8 @@ var CreateActivity = ({
|
|
|
3973
3984
|
setIsSendingActivity(true);
|
|
3974
3985
|
try {
|
|
3975
3986
|
const subjectId = getSubjectIdOrThrow(
|
|
3976
|
-
_optionalChain([activity, 'optionalAccess',
|
|
3977
|
-
_optionalChain([appliedFilters, 'optionalAccess',
|
|
3987
|
+
_optionalChain([activity, 'optionalAccess', _155 => _155.subjectId]),
|
|
3988
|
+
_optionalChain([appliedFilters, 'optionalAccess', _156 => _156.subjectIds])
|
|
3978
3989
|
);
|
|
3979
3990
|
const startDateTime = buildISODateTime(
|
|
3980
3991
|
formData.startDate,
|
|
@@ -3993,7 +4004,7 @@ var CreateActivity = ({
|
|
|
3993
4004
|
startDateTime,
|
|
3994
4005
|
finalDateTime,
|
|
3995
4006
|
activityCategory,
|
|
3996
|
-
_nullishCoalesce(_optionalChain([essayTheme, 'optionalAccess',
|
|
4007
|
+
_nullishCoalesce(_optionalChain([essayTheme, 'optionalAccess', _157 => _157.id]), () => ( null))
|
|
3997
4008
|
);
|
|
3998
4009
|
const createActivityResponse = await apiClient.post(
|
|
3999
4010
|
activityEndpoint,
|
|
@@ -4047,7 +4058,7 @@ var CreateActivity = ({
|
|
|
4047
4058
|
addToast,
|
|
4048
4059
|
activityEndpoint,
|
|
4049
4060
|
activityCategory,
|
|
4050
|
-
_optionalChain([essayTheme, 'optionalAccess',
|
|
4061
|
+
_optionalChain([essayTheme, 'optionalAccess', _158 => _158.id])
|
|
4051
4062
|
]
|
|
4052
4063
|
);
|
|
4053
4064
|
const addedQuestionIds = _react.useMemo.call(void 0,
|
|
@@ -4321,7 +4332,7 @@ var SubjectsFilter = ({
|
|
|
4321
4332
|
id: "subject-all",
|
|
4322
4333
|
checked: allSubjectsSelected,
|
|
4323
4334
|
indeterminate: !allSubjectsSelected && someSelected,
|
|
4324
|
-
onChange: () => _optionalChain([onToggleAllSubjects, 'optionalCall',
|
|
4335
|
+
onChange: () => _optionalChain([onToggleAllSubjects, 'optionalCall', _159 => _159()])
|
|
4325
4336
|
}
|
|
4326
4337
|
),
|
|
4327
4338
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -4351,7 +4362,7 @@ var SubjectsFilter = ({
|
|
|
4351
4362
|
{
|
|
4352
4363
|
id: `subject-${area.id}`,
|
|
4353
4364
|
checked: selectedSubjectIds.includes(area.id),
|
|
4354
|
-
onChange: () => _optionalChain([onToggleSubject, 'optionalCall',
|
|
4365
|
+
onChange: () => _optionalChain([onToggleSubject, 'optionalCall', _160 => _160(area.id)])
|
|
4355
4366
|
}
|
|
4356
4367
|
),
|
|
4357
4368
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4371,7 +4382,7 @@ var SubjectsFilter = ({
|
|
|
4371
4382
|
{
|
|
4372
4383
|
value: noSubjectValue,
|
|
4373
4384
|
checked: selectedSubject === noSubjectValue,
|
|
4374
|
-
onChange: () => _optionalChain([onSubjectChange, 'optionalCall',
|
|
4385
|
+
onChange: () => _optionalChain([onSubjectChange, 'optionalCall', _161 => _161(noSubjectValue)]),
|
|
4375
4386
|
label: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 w-full min-w-0", children: [
|
|
4376
4387
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "size-4 rounded-sm flex items-center justify-center shrink-0 text-text-600 bg-background-100", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Prohibit.ProhibitIcon, { size: 14, weight: "bold" }) }),
|
|
4377
4388
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4393,7 +4404,7 @@ var SubjectsFilter = ({
|
|
|
4393
4404
|
{
|
|
4394
4405
|
value: area.id,
|
|
4395
4406
|
checked: selectedSubject === area.id,
|
|
4396
|
-
onChange: () => _optionalChain([onSubjectChange, 'optionalCall',
|
|
4407
|
+
onChange: () => _optionalChain([onSubjectChange, 'optionalCall', _162 => _162(area.id)]),
|
|
4397
4408
|
label: renderSubjectLabel(area)
|
|
4398
4409
|
},
|
|
4399
4410
|
area.id
|
|
@@ -4739,16 +4750,16 @@ var useLessonBank = (config) => {
|
|
|
4739
4750
|
const buildFiltersBody = _react.useCallback.call(void 0,
|
|
4740
4751
|
(currentFilters) => {
|
|
4741
4752
|
const filtersBody = {};
|
|
4742
|
-
if (_optionalChain([currentFilters, 'optionalAccess',
|
|
4753
|
+
if (_optionalChain([currentFilters, 'optionalAccess', _163 => _163.subjectId]) && currentFilters.subjectId.length > 0) {
|
|
4743
4754
|
filtersBody.subjectId = currentFilters.subjectId;
|
|
4744
4755
|
}
|
|
4745
|
-
if (_optionalChain([currentFilters, 'optionalAccess',
|
|
4756
|
+
if (_optionalChain([currentFilters, 'optionalAccess', _164 => _164.topicIds]) && currentFilters.topicIds.length > 0) {
|
|
4746
4757
|
filtersBody.topicId = currentFilters.topicIds;
|
|
4747
4758
|
}
|
|
4748
|
-
if (_optionalChain([currentFilters, 'optionalAccess',
|
|
4759
|
+
if (_optionalChain([currentFilters, 'optionalAccess', _165 => _165.subtopicIds]) && currentFilters.subtopicIds.length > 0) {
|
|
4749
4760
|
filtersBody.subtopicId = currentFilters.subtopicIds;
|
|
4750
4761
|
}
|
|
4751
|
-
if (_optionalChain([currentFilters, 'optionalAccess',
|
|
4762
|
+
if (_optionalChain([currentFilters, 'optionalAccess', _166 => _166.contentIds]) && currentFilters.contentIds.length > 0) {
|
|
4752
4763
|
filtersBody.contentId = currentFilters.contentIds;
|
|
4753
4764
|
}
|
|
4754
4765
|
return filtersBody;
|
|
@@ -4805,7 +4816,7 @@ var useLessonBank = (config) => {
|
|
|
4805
4816
|
[pagination, buildLessonRequestBody]
|
|
4806
4817
|
);
|
|
4807
4818
|
const loadMore = _react.useCallback.call(void 0, async () => {
|
|
4808
|
-
if (_optionalChain([pagination, 'optionalAccess',
|
|
4819
|
+
if (_optionalChain([pagination, 'optionalAccess', _167 => _167.hasNext]) && !loading && !loadingMore) {
|
|
4809
4820
|
await fetchLessons(true);
|
|
4810
4821
|
}
|
|
4811
4822
|
}, [pagination, loading, loadingMore, fetchLessons]);
|
|
@@ -4819,7 +4830,7 @@ var useLessonBank = (config) => {
|
|
|
4819
4830
|
});
|
|
4820
4831
|
}, [filters]);
|
|
4821
4832
|
_react.useEffect.call(void 0, () => {
|
|
4822
|
-
const hasValidFilters = _optionalChain([filters, 'optionalAccess',
|
|
4833
|
+
const hasValidFilters = _optionalChain([filters, 'optionalAccess', _168 => _168.subjectId]) && filters.subjectId.length > 0;
|
|
4823
4834
|
if (!hasValidFilters) {
|
|
4824
4835
|
setPagination(null);
|
|
4825
4836
|
setLessons([]);
|
|
@@ -4853,7 +4864,7 @@ var useLessonBank = (config) => {
|
|
|
4853
4864
|
_react.useEffect.call(void 0, () => {
|
|
4854
4865
|
const observer = new IntersectionObserver(
|
|
4855
4866
|
(entries) => {
|
|
4856
|
-
if (entries[0].isIntersecting && !loading && !loadingMore && _optionalChain([pagination, 'optionalAccess',
|
|
4867
|
+
if (entries[0].isIntersecting && !loading && !loadingMore && _optionalChain([pagination, 'optionalAccess', _169 => _169.hasNext])) {
|
|
4857
4868
|
loadMore();
|
|
4858
4869
|
}
|
|
4859
4870
|
},
|
|
@@ -4985,7 +4996,7 @@ var useLessonBank = (config) => {
|
|
|
4985
4996
|
}, [selectedLesson, isFromTrailRoute, lessonId, onPodcastEnded]);
|
|
4986
4997
|
_react.useEffect.call(void 0, () => {
|
|
4987
4998
|
hasMarkedPodcast.current = false;
|
|
4988
|
-
}, [_optionalChain([selectedLesson, 'optionalAccess',
|
|
4999
|
+
}, [_optionalChain([selectedLesson, 'optionalAccess', _170 => _170.id])]);
|
|
4989
5000
|
const filteredLessons = _react.useMemo.call(void 0, () => {
|
|
4990
5001
|
return lessons.filter((lesson) => !addedLessonIds.includes(lesson.id));
|
|
4991
5002
|
}, [lessons, addedLessonIds]);
|
|
@@ -5187,7 +5198,7 @@ var LessonWatchModal = ({
|
|
|
5187
5198
|
{
|
|
5188
5199
|
isOpen,
|
|
5189
5200
|
onClose,
|
|
5190
|
-
title: title || _optionalChain([selectedLesson, 'optionalAccess',
|
|
5201
|
+
title: title || _optionalChain([selectedLesson, 'optionalAccess', _171 => _171.title]) || "Assistir Aula",
|
|
5191
5202
|
size: "lg",
|
|
5192
5203
|
hideCloseButton: true,
|
|
5193
5204
|
footer: _nullishCoalesce(footer, () => ( defaultFooter)),
|
|
@@ -5392,7 +5403,7 @@ var LessonBank = ({
|
|
|
5392
5403
|
{
|
|
5393
5404
|
className: "flex flex-col gap-3 p-4 border border-border-200 rounded-lg bg-background",
|
|
5394
5405
|
children: [
|
|
5395
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "md", weight: "medium", className: "text-text-950", children: _optionalChain([lesson, 'access',
|
|
5406
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "md", weight: "medium", className: "text-text-950", children: _optionalChain([lesson, 'access', _172 => _172.content, 'optionalAccess', _173 => _173.name]) || lesson.videoTitle || lesson.title || "Aula sem t\xEDtulo" }),
|
|
5396
5407
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-2", children: [
|
|
5397
5408
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5398
5409
|
_chunkXN2HPVVHjs.Button_default,
|
|
@@ -5423,7 +5434,7 @@ var LessonBank = ({
|
|
|
5423
5434
|
},
|
|
5424
5435
|
lesson.id
|
|
5425
5436
|
)),
|
|
5426
|
-
_optionalChain([pagination, 'optionalAccess',
|
|
5437
|
+
_optionalChain([pagination, 'optionalAccess', _174 => _174.hasNext]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: observerTarget, className: "h-4 w-full", children: loadingMore && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-2 py-4", children: [1, 2].map((i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-4 border rounded", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNEDUOGWUjs.SkeletonText, { lines: 2 }) }, i)) }) })
|
|
5427
5438
|
] });
|
|
5428
5439
|
};
|
|
5429
5440
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -5445,7 +5456,7 @@ var LessonBank = ({
|
|
|
5445
5456
|
isOpen: isWatchModalOpen,
|
|
5446
5457
|
onClose: handleCloseModal,
|
|
5447
5458
|
selectedLesson,
|
|
5448
|
-
title: _optionalChain([selectedLesson, 'optionalAccess',
|
|
5459
|
+
title: _optionalChain([selectedLesson, 'optionalAccess', _175 => _175.content, 'optionalAccess', _176 => _176.name]) || _optionalChain([selectedLesson, 'optionalAccess', _177 => _177.videoTitle]) || _optionalChain([selectedLesson, 'optionalAccess', _178 => _178.content, 'optionalAccess', _179 => _179.bnccCode]) || _optionalChain([selectedLesson, 'optionalAccess', _180 => _180.title]) || "Assistir Aula",
|
|
5449
5460
|
userId,
|
|
5450
5461
|
getVideoData,
|
|
5451
5462
|
getInitialTimestampValue,
|
|
@@ -5574,11 +5585,11 @@ var createModelsTableColumnsBase = (mapSubjectNameToEnum2, onSend, onEdit, onDel
|
|
|
5574
5585
|
render: (_value, row) => {
|
|
5575
5586
|
const handleSend = (e) => {
|
|
5576
5587
|
e.stopPropagation();
|
|
5577
|
-
_optionalChain([onSend, 'optionalCall',
|
|
5588
|
+
_optionalChain([onSend, 'optionalCall', _181 => _181(row)]);
|
|
5578
5589
|
};
|
|
5579
5590
|
const handleEdit = (e) => {
|
|
5580
5591
|
e.stopPropagation();
|
|
5581
|
-
_optionalChain([onEdit, 'optionalCall',
|
|
5592
|
+
_optionalChain([onEdit, 'optionalCall', _182 => _182(row)]);
|
|
5582
5593
|
};
|
|
5583
5594
|
const handleDelete = (e) => {
|
|
5584
5595
|
e.stopPropagation();
|
|
@@ -5763,13 +5774,13 @@ var ActivityCardQuestionPreview = ({
|
|
|
5763
5774
|
}) => {
|
|
5764
5775
|
const badgeColor = _nullishCoalesce(_chunkTN3AYOMVjs.getSubjectColorWithOpacity.call(void 0, subjectColor, isDark), () => ( subjectColor));
|
|
5765
5776
|
const [isExpanded, setIsExpanded] = _react.useState.call(void 0, defaultExpanded);
|
|
5766
|
-
const correctOptionIds = _optionalChain([question, 'optionalAccess',
|
|
5777
|
+
const correctOptionIds = _optionalChain([question, 'optionalAccess', _183 => _183.correctOptionIds]) || [];
|
|
5767
5778
|
const resolvedQuestionTypeLabel = questionType && _chunkERYPJBIPjs.questionTypeLabels[questionType] ? _chunkERYPJBIPjs.questionTypeLabels[questionType] : questionTypeLabel || "Tipo de quest\xE3o";
|
|
5768
5779
|
const safeSubjectName = _nullishCoalesce(subjectName, () => ( "Assunto n\xE3o informado"));
|
|
5769
5780
|
const safeIconName = _nullishCoalesce(iconName, () => ( "Book"));
|
|
5770
5781
|
const safeResolvedLabel = _nullishCoalesce(resolvedQuestionTypeLabel, () => ( "Tipo de quest\xE3o"));
|
|
5771
5782
|
const alternatives = _react.useMemo.call(void 0, () => {
|
|
5772
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
5783
|
+
if (!_optionalChain([question, 'optionalAccess', _184 => _184.options]) || questionType !== "ALTERNATIVA" /* ALTERNATIVA */)
|
|
5773
5784
|
return [];
|
|
5774
5785
|
return question.options.map((option) => {
|
|
5775
5786
|
const isCorrect = correctOptionIds.includes(option.id);
|
|
@@ -5782,7 +5793,7 @@ var ActivityCardQuestionPreview = ({
|
|
|
5782
5793
|
});
|
|
5783
5794
|
}, [question, questionType, correctOptionIds]);
|
|
5784
5795
|
const multipleChoices = _react.useMemo.call(void 0, () => {
|
|
5785
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
5796
|
+
if (!_optionalChain([question, 'optionalAccess', _185 => _185.options]) || questionType !== "MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */)
|
|
5786
5797
|
return [];
|
|
5787
5798
|
return question.options.map((option) => {
|
|
5788
5799
|
const isCorrect = correctOptionIds.includes(option.id);
|
|
@@ -5820,7 +5831,7 @@ var ActivityCardQuestionPreview = ({
|
|
|
5820
5831
|
) });
|
|
5821
5832
|
};
|
|
5822
5833
|
const renderTrueOrFalse = () => {
|
|
5823
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
5834
|
+
if (!_optionalChain([question, 'optionalAccess', _186 => _186.options]) || question.options.length === 0) return null;
|
|
5824
5835
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-3.5", children: question.options.map((option, index) => {
|
|
5825
5836
|
const isCorrect = _nullishCoalesce(option.isCorrect, () => ( correctOptionIds.includes(option.id)));
|
|
5826
5837
|
const correctAnswer = isCorrect ? "Verdadeiro" : "Falso";
|
|
@@ -6010,7 +6021,7 @@ var ActivityCardQuestionPreview = ({
|
|
|
6010
6021
|
}
|
|
6011
6022
|
),
|
|
6012
6023
|
_chunkRI6FA7TZjs.renderFromMap.call(void 0, questionRenderers, questionType),
|
|
6013
|
-
_optionalChain([solutionExplanation, 'optionalAccess',
|
|
6024
|
+
_optionalChain([solutionExplanation, 'optionalAccess', _187 => _187.replaceAll, 'call', _188 => _188(/<[^<>]*>/g, ""), 'access', _189 => _189.trim, 'call', _190 => _190()]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-4 rounded-lg border border-info-300 bg-info-background p-3", children: [
|
|
6014
6025
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", weight: "bold", className: "text-info-700 mb-1", children: "Resolu\xE7\xE3o" }),
|
|
6015
6026
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6016
6027
|
_chunk5W7C4GZVjs.HtmlMathRenderer_default,
|
|
@@ -6035,7 +6046,7 @@ var ActivityModelDetails = ({
|
|
|
6035
6046
|
activityDetails,
|
|
6036
6047
|
loading
|
|
6037
6048
|
}) => {
|
|
6038
|
-
const totalQuestions = _nullishCoalesce(_optionalChain([activityDetails, 'optionalAccess',
|
|
6049
|
+
const totalQuestions = _nullishCoalesce(_optionalChain([activityDetails, 'optionalAccess', _191 => _191.selectedQuestions, 'optionalAccess', _192 => _192.length]), () => ( 0));
|
|
6039
6050
|
const totalQuestionsLabel = totalQuestions === 1 ? "1 quest\xE3o adicionada" : `${totalQuestions} quest\xF5es adicionadas`;
|
|
6040
6051
|
if (loading) {
|
|
6041
6052
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center p-8", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "text-text-600", children: "Carregando detalhes..." }) });
|
|
@@ -6045,26 +6056,26 @@ var ActivityModelDetails = ({
|
|
|
6045
6056
|
}
|
|
6046
6057
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
|
|
6047
6058
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "text-text-800", children: totalQuestionsLabel }) }),
|
|
6048
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-3 max-h-[500px] overflow-y-auto", children: _optionalChain([activityDetails, 'access',
|
|
6059
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-3 max-h-[500px] overflow-y-auto", children: _optionalChain([activityDetails, 'access', _193 => _193.selectedQuestions, 'optionalAccess', _194 => _194.map, 'call', _195 => _195((question, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6049
6060
|
"div",
|
|
6050
6061
|
{
|
|
6051
6062
|
className: "rounded-lg border border-border-200 bg-background",
|
|
6052
6063
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6053
6064
|
ActivityCardQuestionPreview,
|
|
6054
6065
|
{
|
|
6055
|
-
subjectName: _nullishCoalesce(_optionalChain([question, 'access',
|
|
6056
|
-
subjectColor: _nullishCoalesce(_optionalChain([question, 'access',
|
|
6057
|
-
iconName: _nullishCoalesce(_optionalChain([question, 'access',
|
|
6066
|
+
subjectName: _nullishCoalesce(_optionalChain([question, 'access', _196 => _196.knowledgeMatrix, 'optionalAccess', _197 => _197[0], 'optionalAccess', _198 => _198.subject, 'optionalAccess', _199 => _199.name]), () => ( "Assunto n\xE3o informado")),
|
|
6067
|
+
subjectColor: _nullishCoalesce(_optionalChain([question, 'access', _200 => _200.knowledgeMatrix, 'optionalAccess', _201 => _201[0], 'optionalAccess', _202 => _202.subject, 'optionalAccess', _203 => _203.color]), () => ( "#000000")),
|
|
6068
|
+
iconName: _nullishCoalesce(_optionalChain([question, 'access', _204 => _204.knowledgeMatrix, 'optionalAccess', _205 => _205[0], 'optionalAccess', _206 => _206.subject, 'optionalAccess', _207 => _207.icon]), () => ( "BookOpen")),
|
|
6058
6069
|
questionType: question.questionType,
|
|
6059
6070
|
statement: question.statement,
|
|
6060
6071
|
defaultExpanded: false,
|
|
6061
6072
|
question: {
|
|
6062
|
-
options: _nullishCoalesce(_optionalChain([question, 'access',
|
|
6073
|
+
options: _nullishCoalesce(_optionalChain([question, 'access', _208 => _208.options, 'optionalAccess', _209 => _209.map, 'call', _210 => _210((opt) => ({
|
|
6063
6074
|
id: opt.id,
|
|
6064
6075
|
option: opt.option,
|
|
6065
6076
|
isCorrect: opt.isCorrect
|
|
6066
6077
|
}))]), () => ( [])),
|
|
6067
|
-
correctOptionIds: _nullishCoalesce(_optionalChain([question, 'access',
|
|
6078
|
+
correctOptionIds: _nullishCoalesce(_optionalChain([question, 'access', _211 => _211.options, 'optionalAccess', _212 => _212.filter, 'call', _213 => _213((opt) => opt.isCorrect), 'access', _214 => _214.map, 'call', _215 => _215((opt) => opt.id)]), () => ( []))
|
|
6068
6079
|
},
|
|
6069
6080
|
value: question.id,
|
|
6070
6081
|
position: index + 1
|
|
@@ -6095,7 +6106,7 @@ var transformActivityModelToTableItem = (model) => {
|
|
|
6095
6106
|
title: model.title || "Sem t\xEDtulo",
|
|
6096
6107
|
savedAt: _dayjs2.default.call(void 0, model.createdAt).format("DD/MM/YYYY"),
|
|
6097
6108
|
subject: model.subject || null,
|
|
6098
|
-
subjectId: _nullishCoalesce(_optionalChain([model, 'access',
|
|
6109
|
+
subjectId: _nullishCoalesce(_optionalChain([model, 'access', _216 => _216.subject, 'optionalAccess', _217 => _217.id]), () => ( model.subjectId))
|
|
6099
6110
|
};
|
|
6100
6111
|
};
|
|
6101
6112
|
var ChooseActivityModelModal = ({
|
|
@@ -6192,7 +6203,7 @@ var ChooseActivityModelModal = ({
|
|
|
6192
6203
|
{
|
|
6193
6204
|
isOpen,
|
|
6194
6205
|
onClose,
|
|
6195
|
-
title: currentView === "list" ? "Adicionar atividade" : _optionalChain([activityDetails, 'optionalAccess',
|
|
6206
|
+
title: currentView === "list" ? "Adicionar atividade" : _optionalChain([activityDetails, 'optionalAccess', _218 => _218.title]) || "Detalhes da atividade",
|
|
6196
6207
|
size: "xl",
|
|
6197
6208
|
footer: currentView === "list" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex gap-3 justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN2HPVVHjs.Button_default, { variant: "outline", onClick: onClose, children: "Cancelar" }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-3 justify-end", children: [
|
|
6198
6209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN2HPVVHjs.Button_default, { variant: "outline", onClick: handleCancelDetails, children: "Cancelar" }),
|
|
@@ -6263,7 +6274,7 @@ var LessonPreview = ({
|
|
|
6263
6274
|
_react.useEffect.call(void 0, () => {
|
|
6264
6275
|
const normalized = normalizeWithPositions2(lessons);
|
|
6265
6276
|
setOrderedLessons(normalized);
|
|
6266
|
-
_optionalChain([onPositionsChangeRef, 'access',
|
|
6277
|
+
_optionalChain([onPositionsChangeRef, 'access', _219 => _219.current, 'optionalCall', _220 => _220(normalized)]);
|
|
6267
6278
|
}, [lessons, normalizeWithPositions2]);
|
|
6268
6279
|
_react.useEffect.call(void 0, () => {
|
|
6269
6280
|
setSelectedActivity(initialSelectedActivity);
|
|
@@ -6347,8 +6358,8 @@ var LessonPreview = ({
|
|
|
6347
6358
|
current.splice(toIndex, 0, moved);
|
|
6348
6359
|
const normalized = normalizeWithPositions2(current);
|
|
6349
6360
|
setOrderedLessons(normalized);
|
|
6350
|
-
_optionalChain([onReorder, 'optionalCall',
|
|
6351
|
-
_optionalChain([onPositionsChange, 'optionalCall',
|
|
6361
|
+
_optionalChain([onReorder, 'optionalCall', _221 => _221(normalized)]);
|
|
6362
|
+
_optionalChain([onPositionsChange, 'optionalCall', _222 => _222(normalized)]);
|
|
6352
6363
|
};
|
|
6353
6364
|
const handleSelectActivityOption = (option) => {
|
|
6354
6365
|
setIsActivityOptionModalOpen(false);
|
|
@@ -6570,7 +6581,7 @@ var LessonPreview = ({
|
|
|
6570
6581
|
isOpen: isWatchModalOpen,
|
|
6571
6582
|
onClose: handleCloseModal,
|
|
6572
6583
|
selectedLesson,
|
|
6573
|
-
title: _optionalChain([selectedLesson, 'optionalAccess',
|
|
6584
|
+
title: _optionalChain([selectedLesson, 'optionalAccess', _223 => _223.content, 'optionalAccess', _224 => _224.name]) || _optionalChain([selectedLesson, 'optionalAccess', _225 => _225.videoTitle]) || _optionalChain([selectedLesson, 'optionalAccess', _226 => _226.content, 'optionalAccess', _227 => _227.bnccCode]) || _optionalChain([selectedLesson, 'optionalAccess', _228 => _228.title]) || "Assistir Aula",
|
|
6574
6585
|
userId,
|
|
6575
6586
|
getVideoData,
|
|
6576
6587
|
getInitialTimestampValue,
|
|
@@ -6689,7 +6700,7 @@ function getSubjectName2(subjectId, knowledgeAreas) {
|
|
|
6689
6700
|
return null;
|
|
6690
6701
|
}
|
|
6691
6702
|
const subject = knowledgeAreas.find((area) => area.id === subjectId);
|
|
6692
|
-
return _optionalChain([subject, 'optionalAccess',
|
|
6703
|
+
return _optionalChain([subject, 'optionalAccess', _229 => _229.name]) || null;
|
|
6693
6704
|
}
|
|
6694
6705
|
function getGoalDraftTypeLabel(type) {
|
|
6695
6706
|
const typeLabels = {
|
|
@@ -6701,7 +6712,7 @@ function getGoalDraftTypeLabel(type) {
|
|
|
6701
6712
|
function generateTitle2(type, subjectId, knowledgeAreas, lessons) {
|
|
6702
6713
|
const typeLabel = getGoalDraftTypeLabel(type);
|
|
6703
6714
|
const subjectName = getSubjectName2(subjectId, knowledgeAreas);
|
|
6704
|
-
const firstLessonName = lessons && lessons.length > 0 ? _optionalChain([lessons, 'access',
|
|
6715
|
+
const firstLessonName = lessons && lessons.length > 0 ? _optionalChain([lessons, 'access', _230 => _230[0], 'access', _231 => _231.content, 'optionalAccess', _232 => _232.name]) || lessons[0].videoTitle || _optionalChain([lessons, 'access', _233 => _233[0], 'access', _234 => _234.content, 'optionalAccess', _235 => _235.bnccCode]) || lessons[0].title || null : null;
|
|
6705
6716
|
const currentDate = /* @__PURE__ */ new Date();
|
|
6706
6717
|
const formattedDate = currentDate.toLocaleDateString("pt-BR", {
|
|
6707
6718
|
day: "2-digit",
|
|
@@ -6742,7 +6753,7 @@ function getTypeFromUrlString2(type) {
|
|
|
6742
6753
|
function convertLessonToPreview(lesson) {
|
|
6743
6754
|
return {
|
|
6744
6755
|
...lesson,
|
|
6745
|
-
title: _optionalChain([lesson, 'access',
|
|
6756
|
+
title: _optionalChain([lesson, 'access', _236 => _236.content, 'optionalAccess', _237 => _237.name]) || lesson.videoTitle || _optionalChain([lesson, 'access', _238 => _238.content, 'optionalAccess', _239 => _239.bnccCode]) || lesson.title,
|
|
6746
6757
|
position: void 0,
|
|
6747
6758
|
// Map API fields to component-expected fields for LessonPreview
|
|
6748
6759
|
videoSrc: lesson.urlVideo,
|
|
@@ -7016,7 +7027,7 @@ var RecommendedLessonCreate = ({
|
|
|
7016
7027
|
}, [clearFilters, onBack]);
|
|
7017
7028
|
const handleRedirectToActivity = (activity) => {
|
|
7018
7029
|
if (onRedirectToActivity) {
|
|
7019
|
-
if (!_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7030
|
+
if (!_optionalChain([recommendedLesson, 'optionalAccess', _240 => _240.id]) || !_optionalChain([recommendedLesson, 'optionalAccess', _241 => _241.type])) {
|
|
7020
7031
|
addToast({
|
|
7021
7032
|
title: "Erro ao redirecionar para a atividade",
|
|
7022
7033
|
description: "A aula recomendada n\xE3o foi encontrada",
|
|
@@ -7039,14 +7050,14 @@ var RecommendedLessonCreate = ({
|
|
|
7039
7050
|
onRedirectToActivity({
|
|
7040
7051
|
activityId: activity.id,
|
|
7041
7052
|
activityType: activity.type,
|
|
7042
|
-
lessonId: _optionalChain([recommendedLesson, 'optionalAccess',
|
|
7043
|
-
lessonType: _optionalChain([recommendedLesson, 'optionalAccess',
|
|
7053
|
+
lessonId: _optionalChain([recommendedLesson, 'optionalAccess', _242 => _242.id]),
|
|
7054
|
+
lessonType: _optionalChain([recommendedLesson, 'optionalAccess', _243 => _243.type])
|
|
7044
7055
|
});
|
|
7045
7056
|
}
|
|
7046
7057
|
};
|
|
7047
7058
|
const handleActivitySelected = _react.useCallback.call(void 0,
|
|
7048
7059
|
async (activity) => {
|
|
7049
|
-
if (!_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7060
|
+
if (!_optionalChain([recommendedLesson, 'optionalAccess', _244 => _244.id]) || !activity.id) {
|
|
7050
7061
|
addToast({
|
|
7051
7062
|
title: "Erro ao adicionar atividade",
|
|
7052
7063
|
description: "A aula recomendada ou atividade n\xE3o foi encontrada",
|
|
@@ -7118,7 +7129,7 @@ var RecommendedLessonCreate = ({
|
|
|
7118
7129
|
[recommendedLesson, lessons, draftType, apiClient, addToast]
|
|
7119
7130
|
);
|
|
7120
7131
|
const handleRemoveActivity = _react.useCallback.call(void 0, async () => {
|
|
7121
|
-
if (!_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7132
|
+
if (!_optionalChain([recommendedLesson, 'optionalAccess', _245 => _245.id])) {
|
|
7122
7133
|
addToast({
|
|
7123
7134
|
title: "Erro ao remover atividade",
|
|
7124
7135
|
description: "A aula recomendada n\xE3o foi encontrada",
|
|
@@ -7178,7 +7189,7 @@ var RecommendedLessonCreate = ({
|
|
|
7178
7189
|
}, [recommendedLesson, lessons, draftType, apiClient, addToast]);
|
|
7179
7190
|
const handleCreateNewActivity = () => {
|
|
7180
7191
|
if (onCreateNewActivity) {
|
|
7181
|
-
if (!_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7192
|
+
if (!_optionalChain([recommendedLesson, 'optionalAccess', _246 => _246.id]) || !_optionalChain([recommendedLesson, 'optionalAccess', _247 => _247.type])) {
|
|
7182
7193
|
addToast({
|
|
7183
7194
|
title: "Erro ao criar nova atividade",
|
|
7184
7195
|
description: "A aula recomendada n\xE3o foi encontrada",
|
|
@@ -7204,7 +7215,7 @@ var RecommendedLessonCreate = ({
|
|
|
7204
7215
|
return preFilters;
|
|
7205
7216
|
}, [preFilters]);
|
|
7206
7217
|
const initialFiltersData = _react.useMemo.call(void 0, () => {
|
|
7207
|
-
if (_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7218
|
+
if (_optionalChain([recommendedLesson, 'optionalAccess', _248 => _248.filters])) {
|
|
7208
7219
|
return convertBackendFiltersToLessonFiltersData(
|
|
7209
7220
|
recommendedLesson.filters
|
|
7210
7221
|
);
|
|
@@ -7213,10 +7224,10 @@ var RecommendedLessonCreate = ({
|
|
|
7213
7224
|
return convertBackendFiltersToLessonFiltersData(resolvedPreFilters);
|
|
7214
7225
|
}
|
|
7215
7226
|
return null;
|
|
7216
|
-
}, [_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7227
|
+
}, [_optionalChain([recommendedLesson, 'optionalAccess', _249 => _249.filters]), resolvedPreFilters]);
|
|
7217
7228
|
_react.useEffect.call(void 0, () => {
|
|
7218
7229
|
hasAppliedInitialFiltersRef.current = false;
|
|
7219
|
-
}, [_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7230
|
+
}, [_optionalChain([recommendedLesson, 'optionalAccess', _250 => _250.id]), _optionalChain([recommendedLesson, 'optionalAccess', _251 => _251.filters]), resolvedPreFilters]);
|
|
7220
7231
|
_react.useEffect.call(void 0, () => {
|
|
7221
7232
|
if (preFiltersProp) {
|
|
7222
7233
|
setPreFilters(preFiltersProp);
|
|
@@ -7242,12 +7253,12 @@ var RecommendedLessonCreate = ({
|
|
|
7242
7253
|
`/recommended-class/drafts/${idParam}`
|
|
7243
7254
|
);
|
|
7244
7255
|
const draftData = response.data.data;
|
|
7245
|
-
const selectedLessons = _optionalChain([draftData, 'access',
|
|
7256
|
+
const selectedLessons = _optionalChain([draftData, 'access', _252 => _252.lessons, 'optionalAccess', _253 => _253.map, 'call', _254 => _254((item) => {
|
|
7246
7257
|
if ("lesson" in item) {
|
|
7247
7258
|
return item.lesson;
|
|
7248
7259
|
}
|
|
7249
7260
|
return null;
|
|
7250
|
-
}), 'access',
|
|
7261
|
+
}), 'access', _255 => _255.filter, 'call', _256 => _256((lesson) => lesson !== null)]) || [];
|
|
7251
7262
|
const lessonData = {
|
|
7252
7263
|
id: draftData.id,
|
|
7253
7264
|
type: draftData.type,
|
|
@@ -7255,9 +7266,9 @@ var RecommendedLessonCreate = ({
|
|
|
7255
7266
|
description: draftData.description,
|
|
7256
7267
|
subjectId: draftData.subjectId,
|
|
7257
7268
|
filters: draftData.filters,
|
|
7258
|
-
lessonIds: _optionalChain([draftData, 'access',
|
|
7269
|
+
lessonIds: _optionalChain([draftData, 'access', _257 => _257.lessons, 'optionalAccess', _258 => _258.map, 'call', _259 => _259((l) => l.lessonId)]) || [],
|
|
7259
7270
|
selectedLessons,
|
|
7260
|
-
activityDraftIds: _optionalChain([draftData, 'access',
|
|
7271
|
+
activityDraftIds: _optionalChain([draftData, 'access', _260 => _260.activityDrafts, 'optionalAccess', _261 => _261.map, 'call', _262 => _262((a) => a.activityDraftId)]) || [],
|
|
7261
7272
|
activityDrafts: draftData.activityDrafts || [],
|
|
7262
7273
|
updatedAt: draftData.updatedAt,
|
|
7263
7274
|
startDate: draftData.startDate,
|
|
@@ -7288,7 +7299,7 @@ var RecommendedLessonCreate = ({
|
|
|
7288
7299
|
fetchRecommendedLessonDraft();
|
|
7289
7300
|
}, [idParam, apiClient, addToast]);
|
|
7290
7301
|
_react.useEffect.call(void 0, () => {
|
|
7291
|
-
if (_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7302
|
+
if (_optionalChain([recommendedLesson, 'optionalAccess', _263 => _263.id]) && _optionalChain([recommendedLesson, 'optionalAccess', _264 => _264.type])) {
|
|
7292
7303
|
const urlType = getTypeFromUrl2(recommendedLesson.type);
|
|
7293
7304
|
const currentUrlType = typeParam;
|
|
7294
7305
|
const currentUrlId = idParam;
|
|
@@ -7303,8 +7314,8 @@ var RecommendedLessonCreate = ({
|
|
|
7303
7314
|
}
|
|
7304
7315
|
}
|
|
7305
7316
|
}, [
|
|
7306
|
-
_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7307
|
-
_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7317
|
+
_optionalChain([recommendedLesson, 'optionalAccess', _265 => _265.id]),
|
|
7318
|
+
_optionalChain([recommendedLesson, 'optionalAccess', _266 => _266.type]),
|
|
7308
7319
|
typeParam,
|
|
7309
7320
|
idParam,
|
|
7310
7321
|
setSearchParams
|
|
@@ -7313,7 +7324,7 @@ var RecommendedLessonCreate = ({
|
|
|
7313
7324
|
if (lessons.length === 0 && !hasFirstSaveBeenDone.current) {
|
|
7314
7325
|
return false;
|
|
7315
7326
|
}
|
|
7316
|
-
if (!_optionalChain([appliedFilters, 'optionalAccess',
|
|
7327
|
+
if (!_optionalChain([appliedFilters, 'optionalAccess', _267 => _267.subjectIds, 'optionalAccess', _268 => _268.length])) {
|
|
7317
7328
|
return false;
|
|
7318
7329
|
}
|
|
7319
7330
|
if (loadingInitialLessons || isSaving) {
|
|
@@ -7322,7 +7333,7 @@ var RecommendedLessonCreate = ({
|
|
|
7322
7333
|
return true;
|
|
7323
7334
|
}, [lessons.length, appliedFilters, loadingInitialLessons, isSaving]);
|
|
7324
7335
|
const createDraftPayload = _react.useCallback.call(void 0, () => {
|
|
7325
|
-
const subjectId = _optionalChain([appliedFilters, 'optionalAccess',
|
|
7336
|
+
const subjectId = _optionalChain([appliedFilters, 'optionalAccess', _269 => _269.subjectIds, 'optionalAccess', _270 => _270[0]]);
|
|
7326
7337
|
if (!subjectId) {
|
|
7327
7338
|
throw new Error("Subject ID n\xE3o encontrado");
|
|
7328
7339
|
}
|
|
@@ -7332,7 +7343,7 @@ var RecommendedLessonCreate = ({
|
|
|
7332
7343
|
lessonId: l.id,
|
|
7333
7344
|
sequence: index + 1
|
|
7334
7345
|
}));
|
|
7335
|
-
const activityDraftIds = _optionalChain([recommendedLesson, 'optionalAccess',
|
|
7346
|
+
const activityDraftIds = _optionalChain([recommendedLesson, 'optionalAccess', _271 => _271.activityDraftIds]) ? recommendedLesson.activityDraftIds.map((id, index) => ({
|
|
7336
7347
|
activityDraftId: id,
|
|
7337
7348
|
sequence: index + 1
|
|
7338
7349
|
})) : void 0;
|
|
@@ -7355,13 +7366,13 @@ var RecommendedLessonCreate = ({
|
|
|
7355
7366
|
if (appliedFilters) {
|
|
7356
7367
|
lastSavedFiltersRef.current = appliedFilters;
|
|
7357
7368
|
}
|
|
7358
|
-
const savedDraft = _optionalChain([response, 'optionalAccess',
|
|
7369
|
+
const savedDraft = _optionalChain([response, 'optionalAccess', _272 => _272.data, 'optionalAccess', _273 => _273.data]);
|
|
7359
7370
|
setLastSavedAt(
|
|
7360
|
-
_optionalChain([savedDraft, 'optionalAccess',
|
|
7371
|
+
_optionalChain([savedDraft, 'optionalAccess', _274 => _274.updatedAt]) ? new Date(savedDraft.updatedAt) : /* @__PURE__ */ new Date()
|
|
7361
7372
|
);
|
|
7362
7373
|
if (savedDraft) {
|
|
7363
7374
|
setRecommendedLesson((prevLesson) => {
|
|
7364
|
-
if (_optionalChain([prevLesson, 'optionalAccess',
|
|
7375
|
+
if (_optionalChain([prevLesson, 'optionalAccess', _275 => _275.id]) !== savedDraft.id) {
|
|
7365
7376
|
return {
|
|
7366
7377
|
id: savedDraft.id,
|
|
7367
7378
|
type: savedDraft.type,
|
|
@@ -7386,7 +7397,7 @@ var RecommendedLessonCreate = ({
|
|
|
7386
7397
|
lastFetchedLessonIdRef.current = savedDraft.id;
|
|
7387
7398
|
}
|
|
7388
7399
|
}
|
|
7389
|
-
if (payload.type === "MODELO" /* MODELO */ && onSaveModel && _optionalChain([response, 'optionalAccess',
|
|
7400
|
+
if (payload.type === "MODELO" /* MODELO */ && onSaveModel && _optionalChain([response, 'optionalAccess', _276 => _276.data])) {
|
|
7390
7401
|
onSaveModel(response.data);
|
|
7391
7402
|
}
|
|
7392
7403
|
},
|
|
@@ -7394,7 +7405,7 @@ var RecommendedLessonCreate = ({
|
|
|
7394
7405
|
);
|
|
7395
7406
|
const extractDraftFromResponse2 = _react.useCallback.call(void 0,
|
|
7396
7407
|
(response) => {
|
|
7397
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
7408
|
+
if (!_optionalChain([response, 'optionalAccess', _277 => _277.data])) {
|
|
7398
7409
|
console.error("Empty response from API when creating draft:", response);
|
|
7399
7410
|
throw new Error("Invalid response: empty response from API");
|
|
7400
7411
|
}
|
|
@@ -7404,11 +7415,11 @@ var RecommendedLessonCreate = ({
|
|
|
7404
7415
|
} else if (response.data && "id" in response.data && typeof response.data === "object") {
|
|
7405
7416
|
savedDraft = response.data;
|
|
7406
7417
|
}
|
|
7407
|
-
if (!_optionalChain([savedDraft, 'optionalAccess',
|
|
7418
|
+
if (!_optionalChain([savedDraft, 'optionalAccess', _278 => _278.id])) {
|
|
7408
7419
|
console.error("Invalid API response when creating draft:", {
|
|
7409
7420
|
response,
|
|
7410
|
-
responseData: _optionalChain([response, 'optionalAccess',
|
|
7411
|
-
responseDataKeys: _optionalChain([response, 'optionalAccess',
|
|
7421
|
+
responseData: _optionalChain([response, 'optionalAccess', _279 => _279.data]),
|
|
7422
|
+
responseDataKeys: _optionalChain([response, 'optionalAccess', _280 => _280.data]) ? Object.keys(response.data) : []
|
|
7412
7423
|
});
|
|
7413
7424
|
throw new Error(
|
|
7414
7425
|
"Invalid response: draft data is missing. Expected structure: response.data.data or response.data"
|
|
@@ -7465,11 +7476,11 @@ var RecommendedLessonCreate = ({
|
|
|
7465
7476
|
try {
|
|
7466
7477
|
let payload = createDraftPayload();
|
|
7467
7478
|
if (typeOverride) {
|
|
7468
|
-
const subjectId = _optionalChain([appliedFilters, 'optionalAccess',
|
|
7479
|
+
const subjectId = _optionalChain([appliedFilters, 'optionalAccess', _281 => _281.subjectIds, 'optionalAccess', _282 => _282[0]]);
|
|
7469
7480
|
if (!subjectId) {
|
|
7470
7481
|
throw new Error("Subject ID n\xE3o encontrado");
|
|
7471
7482
|
}
|
|
7472
|
-
const trimmedCustomTitle = _optionalChain([customTitle, 'optionalAccess',
|
|
7483
|
+
const trimmedCustomTitle = _optionalChain([customTitle, 'optionalAccess', _283 => _283.trim, 'call', _284 => _284()]);
|
|
7473
7484
|
const title = trimmedCustomTitle && trimmedCustomTitle.length > 0 ? trimmedCustomTitle : generateTitle2(typeOverride, subjectId, knowledgeAreas, lessons);
|
|
7474
7485
|
payload = {
|
|
7475
7486
|
...payload,
|
|
@@ -7487,7 +7498,7 @@ var RecommendedLessonCreate = ({
|
|
|
7487
7498
|
);
|
|
7488
7499
|
hasFirstSaveBeenDone.current = true;
|
|
7489
7500
|
const savedDraft = extractDraftFromResponse2(response);
|
|
7490
|
-
updateStateAfterSave(savedDraft, _optionalChain([response, 'optionalAccess',
|
|
7501
|
+
updateStateAfterSave(savedDraft, _optionalChain([response, 'optionalAccess', _285 => _285.data]), true);
|
|
7491
7502
|
return savedDraft.id;
|
|
7492
7503
|
} catch (error) {
|
|
7493
7504
|
console.error("Error saving draft:", error);
|
|
@@ -7546,7 +7557,7 @@ var RecommendedLessonCreate = ({
|
|
|
7546
7557
|
[saveDraft, addToast]
|
|
7547
7558
|
);
|
|
7548
7559
|
_react.useEffect.call(void 0, () => {
|
|
7549
|
-
if (_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7560
|
+
if (_optionalChain([recommendedLesson, 'optionalAccess', _286 => _286.selectedLessons]) && recommendedLesson.selectedLessons.length > 0) {
|
|
7550
7561
|
setLoadingInitialLessons(true);
|
|
7551
7562
|
try {
|
|
7552
7563
|
const previewLessons = recommendedLesson.selectedLessons.map(
|
|
@@ -7569,7 +7580,7 @@ var RecommendedLessonCreate = ({
|
|
|
7569
7580
|
setLoadingInitialLessons(false);
|
|
7570
7581
|
}
|
|
7571
7582
|
}
|
|
7572
|
-
}, [_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7583
|
+
}, [_optionalChain([recommendedLesson, 'optionalAccess', _287 => _287.selectedLessons]), addToast]);
|
|
7573
7584
|
_react.useEffect.call(void 0, () => {
|
|
7574
7585
|
if (hasAppliedInitialFiltersRef.current) {
|
|
7575
7586
|
return;
|
|
@@ -7644,7 +7655,7 @@ var RecommendedLessonCreate = ({
|
|
|
7644
7655
|
const handleReorder = _react.useCallback.call(void 0,
|
|
7645
7656
|
(orderedLessons) => {
|
|
7646
7657
|
setLessons(orderedLessons);
|
|
7647
|
-
const hasSubjectIds = Array.isArray(_optionalChain([appliedFilters, 'optionalAccess',
|
|
7658
|
+
const hasSubjectIds = Array.isArray(_optionalChain([appliedFilters, 'optionalAccess', _288 => _288.subjectIds])) && appliedFilters.subjectIds.length > 0;
|
|
7648
7659
|
if (hasFirstSaveBeenDone.current && hasSubjectIds && !loadingInitialLessons && !isSaving) {
|
|
7649
7660
|
if (saveTimeoutRef.current) {
|
|
7650
7661
|
clearTimeout(saveTimeoutRef.current);
|
|
@@ -7694,20 +7705,20 @@ var RecommendedLessonCreate = ({
|
|
|
7694
7705
|
async (formData) => {
|
|
7695
7706
|
setIsSendingLesson(true);
|
|
7696
7707
|
try {
|
|
7697
|
-
const subjectId = _optionalChain([recommendedLesson, 'optionalAccess',
|
|
7708
|
+
const subjectId = _optionalChain([recommendedLesson, 'optionalAccess', _289 => _289.subjectId]) || _optionalChain([appliedFilters, 'optionalAccess', _290 => _290.subjectIds, 'optionalAccess', _291 => _291[0]]);
|
|
7698
7709
|
const startDateTime = (/* @__PURE__ */ new Date(
|
|
7699
7710
|
`${formData.startDate}T${formData.startTime}`
|
|
7700
7711
|
)).toISOString();
|
|
7701
7712
|
const finalDateTime = (/* @__PURE__ */ new Date(
|
|
7702
7713
|
`${formData.finalDate}T${formData.finalTime}`
|
|
7703
7714
|
)).toISOString();
|
|
7704
|
-
const activityDraftIds = _optionalChain([recommendedLesson, 'optionalAccess',
|
|
7715
|
+
const activityDraftIds = _optionalChain([recommendedLesson, 'optionalAccess', _292 => _292.activityDraftIds]) ? recommendedLesson.activityDraftIds.map((id, index) => ({
|
|
7705
7716
|
activityDraftId: id,
|
|
7706
7717
|
sequence: index + 1
|
|
7707
7718
|
})) : void 0;
|
|
7708
7719
|
const hasAttachedActivities = !!activityDraftIds && activityDraftIds.length > 0;
|
|
7709
7720
|
const lessonPayload = {
|
|
7710
|
-
title: formData.title || _optionalChain([recommendedLesson, 'optionalAccess',
|
|
7721
|
+
title: formData.title || _optionalChain([recommendedLesson, 'optionalAccess', _293 => _293.title]) || "Aula Recomendada",
|
|
7711
7722
|
subjectId: subjectId || null,
|
|
7712
7723
|
lessonIds: lessons.map((l, index) => ({
|
|
7713
7724
|
lessonId: l.id,
|
|
@@ -7729,7 +7740,7 @@ var RecommendedLessonCreate = ({
|
|
|
7729
7740
|
"/recommended-class",
|
|
7730
7741
|
lessonPayload
|
|
7731
7742
|
);
|
|
7732
|
-
const lessonId = _optionalChain([createResponse, 'optionalAccess',
|
|
7743
|
+
const lessonId = _optionalChain([createResponse, 'optionalAccess', _294 => _294.data, 'optionalAccess', _295 => _295.data, 'optionalAccess', _296 => _296.id]) || _optionalChain([createResponse, 'optionalAccess', _297 => _297.data, 'optionalAccess', _298 => _298.data, 'optionalAccess', _299 => _299.recommendedClass, 'optionalAccess', _300 => _300.id]);
|
|
7733
7744
|
if (!lessonId) {
|
|
7734
7745
|
throw new Error("ID da aula recomendada n\xE3o retornado pela API");
|
|
7735
7746
|
}
|
|
@@ -7771,7 +7782,7 @@ var RecommendedLessonCreate = ({
|
|
|
7771
7782
|
);
|
|
7772
7783
|
const addedLessonIds = _react.useMemo.call(void 0, () => lessons.map((l) => l.id), [lessons]);
|
|
7773
7784
|
const selectedActivityForPreview = _react.useMemo.call(void 0, () => {
|
|
7774
|
-
const activityDraft = _optionalChain([recommendedLesson, 'optionalAccess',
|
|
7785
|
+
const activityDraft = _optionalChain([recommendedLesson, 'optionalAccess', _301 => _301.activityDrafts, 'optionalAccess', _302 => _302[0]]);
|
|
7775
7786
|
if (!activityDraft) return null;
|
|
7776
7787
|
return {
|
|
7777
7788
|
id: activityDraft.activityDraftId,
|
|
@@ -7781,7 +7792,7 @@ var RecommendedLessonCreate = ({
|
|
|
7781
7792
|
subject: null,
|
|
7782
7793
|
subjectId: null
|
|
7783
7794
|
};
|
|
7784
|
-
}, [_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7795
|
+
}, [_optionalChain([recommendedLesson, 'optionalAccess', _303 => _303.activityDrafts])]);
|
|
7785
7796
|
const lessonBankFilters = _react.useMemo.call(void 0, () => {
|
|
7786
7797
|
if (!appliedFilters) return void 0;
|
|
7787
7798
|
return {
|
|
@@ -7984,7 +7995,7 @@ var RecommendedLessonCreate = ({
|
|
|
7984
7995
|
categories,
|
|
7985
7996
|
onCategoriesChange: handleCategoriesChange,
|
|
7986
7997
|
isLoading: isSendingLesson,
|
|
7987
|
-
hasAttachedActivities: (_nullishCoalesce(_optionalChain([recommendedLesson, 'optionalAccess',
|
|
7998
|
+
hasAttachedActivities: (_nullishCoalesce(_optionalChain([recommendedLesson, 'optionalAccess', _304 => _304.activityDraftIds, 'optionalAccess', _305 => _305.length]), () => ( 0))) > 0,
|
|
7988
7999
|
onError: (error) => {
|
|
7989
8000
|
console.error("Error sending lesson:", error);
|
|
7990
8001
|
const errorMessage = error instanceof Error ? error.message : "Erro ao enviar aula. Por favor, tente novamente.";
|
|
@@ -8081,7 +8092,7 @@ var ColumnFilterMenu = ({
|
|
|
8081
8092
|
onSearch,
|
|
8082
8093
|
onClear: () => {
|
|
8083
8094
|
setQuery("");
|
|
8084
|
-
_optionalChain([onSearch, 'optionalCall',
|
|
8095
|
+
_optionalChain([onSearch, 'optionalCall', _306 => _306("")]);
|
|
8085
8096
|
},
|
|
8086
8097
|
"aria-label": `Buscar ${columnLabel}`
|
|
8087
8098
|
}
|
|
@@ -8132,7 +8143,7 @@ function useColumnFilters(columns, options = {}) {
|
|
|
8132
8143
|
const onFiltersChangeRef = _react.useRef.call(void 0, onFiltersChange);
|
|
8133
8144
|
onFiltersChangeRef.current = onFiltersChange;
|
|
8134
8145
|
const signature = columns.filter((column) => column.filter).map(
|
|
8135
|
-
(column) => `${_nullishCoalesce(_optionalChain([column, 'access',
|
|
8146
|
+
(column) => `${_nullishCoalesce(_optionalChain([column, 'access', _307 => _307.filter, 'optionalAccess', _308 => _308.paramKey]), () => ( column.key))}:${_optionalChain([column, 'access', _309 => _309.filter, 'optionalAccess', _310 => _310.multiple]) ? "m" : "s"}`
|
|
8136
8147
|
).join("|");
|
|
8137
8148
|
const filterSpecs = _react.useMemo.call(void 0,
|
|
8138
8149
|
() => signature ? signature.split("|").map((entry) => {
|
|
@@ -8147,7 +8158,7 @@ function useColumnFilters(columns, options = {}) {
|
|
|
8147
8158
|
const result = {};
|
|
8148
8159
|
for (const { paramKey, multiple } of filterSpecs) {
|
|
8149
8160
|
const raw = params.get(urlKeyOf(paramKey, urlKeyPrefix));
|
|
8150
|
-
const values = _nullishCoalesce(_optionalChain([raw, 'optionalAccess',
|
|
8161
|
+
const values = _nullishCoalesce(_optionalChain([raw, 'optionalAccess', _311 => _311.split, 'call', _312 => _312(","), 'access', _313 => _313.filter, 'call', _314 => _314(Boolean)]), () => ( []));
|
|
8151
8162
|
if (values.length === 0) continue;
|
|
8152
8163
|
result[paramKey] = multiple ? values : [values[0]];
|
|
8153
8164
|
}
|
|
@@ -8162,7 +8173,7 @@ function useColumnFilters(columns, options = {}) {
|
|
|
8162
8173
|
for (const { paramKey } of filterSpecs) {
|
|
8163
8174
|
const urlKey = urlKeyOf(paramKey, urlKeyPrefix);
|
|
8164
8175
|
const values = columnFilters[paramKey];
|
|
8165
|
-
if (_optionalChain([values, 'optionalAccess',
|
|
8176
|
+
if (_optionalChain([values, 'optionalAccess', _315 => _315.length])) {
|
|
8166
8177
|
url.searchParams.set(urlKey, values.join(","));
|
|
8167
8178
|
} else {
|
|
8168
8179
|
url.searchParams.delete(urlKey);
|
|
@@ -8189,13 +8200,13 @@ function useColumnFilters(columns, options = {}) {
|
|
|
8189
8200
|
}
|
|
8190
8201
|
return next;
|
|
8191
8202
|
});
|
|
8192
|
-
_optionalChain([onFiltersChangeRef, 'access',
|
|
8203
|
+
_optionalChain([onFiltersChangeRef, 'access', _316 => _316.current, 'optionalCall', _317 => _317()]);
|
|
8193
8204
|
}, []);
|
|
8194
8205
|
const columnFilterParams = _react.useMemo.call(void 0, () => {
|
|
8195
8206
|
const params = {};
|
|
8196
8207
|
for (const { paramKey, multiple } of filterSpecs) {
|
|
8197
8208
|
const values = columnFilters[paramKey];
|
|
8198
|
-
if (!_optionalChain([values, 'optionalAccess',
|
|
8209
|
+
if (!_optionalChain([values, 'optionalAccess', _318 => _318.length])) continue;
|
|
8199
8210
|
params[paramKey] = multiple ? values : values[0];
|
|
8200
8211
|
}
|
|
8201
8212
|
return params;
|
|
@@ -8738,7 +8749,7 @@ function SimulatedFiltersModal({
|
|
|
8738
8749
|
} = useStudentsFilter(api);
|
|
8739
8750
|
const [categories, setCategories] = _react.useState.call(void 0, []);
|
|
8740
8751
|
const [selectedStudentIds, setSelectedStudentIds] = _react.useState.call(void 0,
|
|
8741
|
-
_optionalChain([initialFilters, 'optionalAccess',
|
|
8752
|
+
_optionalChain([initialFilters, 'optionalAccess', _319 => _319.studentsIds]) || []
|
|
8742
8753
|
);
|
|
8743
8754
|
const [studentSearchQuery, setStudentSearchQuery] = _react.useState.call(void 0, "");
|
|
8744
8755
|
const hasInitialized = _react.useRef.call(void 0, false);
|
|
@@ -8753,9 +8764,9 @@ function SimulatedFiltersModal({
|
|
|
8753
8764
|
if (isOpen && !hasInitialized.current && (schools.length > 0 || schoolYears.length > 0 || classes.length > 0)) {
|
|
8754
8765
|
hasInitialized.current = true;
|
|
8755
8766
|
const getAutoSelectedSchoolIds = () => {
|
|
8756
|
-
const hasInitialSchools = _optionalChain([initialFilters, 'optionalAccess',
|
|
8767
|
+
const hasInitialSchools = _optionalChain([initialFilters, 'optionalAccess', _320 => _320.schoolIds]) && initialFilters.schoolIds.length > 0;
|
|
8757
8768
|
if (hasInitialSchools) {
|
|
8758
|
-
return _optionalChain([initialFilters, 'optionalAccess',
|
|
8769
|
+
return _optionalChain([initialFilters, 'optionalAccess', _321 => _321.schoolIds]) || [];
|
|
8759
8770
|
}
|
|
8760
8771
|
if (schools.length === 1) {
|
|
8761
8772
|
return [schools[0].id];
|
|
@@ -8781,7 +8792,7 @@ function SimulatedFiltersModal({
|
|
|
8781
8792
|
label: "S\xE9rie",
|
|
8782
8793
|
filteredBy: [{ key: "school", internalField: "schoolId" }],
|
|
8783
8794
|
itens: schoolYears,
|
|
8784
|
-
selectedIds: _optionalChain([initialFilters, 'optionalAccess',
|
|
8795
|
+
selectedIds: _optionalChain([initialFilters, 'optionalAccess', _322 => _322.schoolYearIds]) || []
|
|
8785
8796
|
},
|
|
8786
8797
|
{
|
|
8787
8798
|
key: "class",
|
|
@@ -8791,10 +8802,10 @@ function SimulatedFiltersModal({
|
|
|
8791
8802
|
{ key: "schoolYear", internalField: "schoolYearId" }
|
|
8792
8803
|
],
|
|
8793
8804
|
itens: classes,
|
|
8794
|
-
selectedIds: _optionalChain([initialFilters, 'optionalAccess',
|
|
8805
|
+
selectedIds: _optionalChain([initialFilters, 'optionalAccess', _323 => _323.classIds]) || []
|
|
8795
8806
|
}
|
|
8796
8807
|
]);
|
|
8797
|
-
setSelectedStudentIds(_optionalChain([initialFilters, 'optionalAccess',
|
|
8808
|
+
setSelectedStudentIds(_optionalChain([initialFilters, 'optionalAccess', _324 => _324.studentsIds]) || []);
|
|
8798
8809
|
setStudentSearchQuery("");
|
|
8799
8810
|
}
|
|
8800
8811
|
}, [isOpen, schools, schoolYears, classes, initialFilters]);
|
|
@@ -9012,7 +9023,7 @@ function SimulatedSubjectMenu({
|
|
|
9012
9023
|
),
|
|
9013
9024
|
style: subject.id === "all" ? void 0 : {
|
|
9014
9025
|
backgroundColor: _chunkTN3AYOMVjs.getSubjectColorWithOpacity.call(void 0,
|
|
9015
|
-
_nullishCoalesce(_optionalChain([subject, 'optionalAccess',
|
|
9026
|
+
_nullishCoalesce(_optionalChain([subject, 'optionalAccess', _325 => _325.color]), () => ( void 0)),
|
|
9016
9027
|
isDark
|
|
9017
9028
|
)
|
|
9018
9029
|
},
|
|
@@ -9442,7 +9453,7 @@ function TableProvider({
|
|
|
9442
9453
|
columnFilterParams
|
|
9443
9454
|
]);
|
|
9444
9455
|
_react.useEffect.call(void 0, () => {
|
|
9445
|
-
_optionalChain([onParamsChange, 'optionalCall',
|
|
9456
|
+
_optionalChain([onParamsChange, 'optionalCall', _326 => _326(combinedParams)]);
|
|
9446
9457
|
}, [combinedParams]);
|
|
9447
9458
|
const handleSearchChange = _react.useCallback.call(void 0, (value) => {
|
|
9448
9459
|
setSearchQuery(value);
|
|
@@ -9498,7 +9509,7 @@ function TableProvider({
|
|
|
9498
9509
|
}, [columnFilters, setColumnFilter]);
|
|
9499
9510
|
const effectiveEmptyState = _react.useMemo.call(void 0, () => {
|
|
9500
9511
|
if (!hasActiveColumnFilters) return emptyState;
|
|
9501
|
-
if (_optionalChain([emptyState, 'optionalAccess',
|
|
9512
|
+
if (_optionalChain([emptyState, 'optionalAccess', _327 => _327.component]) || _optionalChain([emptyState, 'optionalAccess', _328 => _328.buttonText])) return emptyState;
|
|
9502
9513
|
return {
|
|
9503
9514
|
...emptyState,
|
|
9504
9515
|
buttonText: "Limpar filtros",
|
|
@@ -9569,7 +9580,7 @@ function TableProvider({
|
|
|
9569
9580
|
sortableColumns
|
|
9570
9581
|
);
|
|
9571
9582
|
const sortKey = sortKeyOf(header);
|
|
9572
|
-
const filterParamKey = _nullishCoalesce(_optionalChain([header, 'access',
|
|
9583
|
+
const filterParamKey = _nullishCoalesce(_optionalChain([header, 'access', _329 => _329.filter, 'optionalAccess', _330 => _330.paramKey]), () => ( header.key));
|
|
9573
9584
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9574
9585
|
_chunkW6KERWUFjs.TableHead,
|
|
9575
9586
|
{
|
|
@@ -9706,9 +9717,9 @@ var _ArrowLeft = require('@phosphor-icons/react/dist/csr/ArrowLeft');
|
|
|
9706
9717
|
|
|
9707
9718
|
function buildEndpoint2(activityFilters) {
|
|
9708
9719
|
const params = new URLSearchParams();
|
|
9709
|
-
_optionalChain([activityFilters, 'access',
|
|
9710
|
-
_optionalChain([activityFilters, 'access',
|
|
9711
|
-
_optionalChain([activityFilters, 'access',
|
|
9720
|
+
_optionalChain([activityFilters, 'access', _331 => _331.types, 'optionalAccess', _332 => _332.forEach, 'call', _333 => _333((t) => params.append("types", t))]);
|
|
9721
|
+
_optionalChain([activityFilters, 'access', _334 => _334.subtypes, 'optionalAccess', _335 => _335.forEach, 'call', _336 => _336((s) => params.append("subtypes", s))]);
|
|
9722
|
+
_optionalChain([activityFilters, 'access', _337 => _337.statuses, 'optionalAccess', _338 => _338.forEach, 'call', _339 => _339((s) => params.append("statuses", s))]);
|
|
9712
9723
|
const queryString = params.toString();
|
|
9713
9724
|
const endpoint = "/performance/simulated/activities/content-details";
|
|
9714
9725
|
if (!queryString) {
|
|
@@ -9845,9 +9856,9 @@ function SimulatedContentDetailsModal({
|
|
|
9845
9856
|
activityFilters,
|
|
9846
9857
|
contentId,
|
|
9847
9858
|
period,
|
|
9848
|
-
schoolIds: _optionalChain([filters, 'optionalAccess',
|
|
9849
|
-
schoolYearIds: _optionalChain([filters, 'optionalAccess',
|
|
9850
|
-
classIds: _optionalChain([filters, 'optionalAccess',
|
|
9859
|
+
schoolIds: _optionalChain([filters, 'optionalAccess', _340 => _340.schoolIds]),
|
|
9860
|
+
schoolYearIds: _optionalChain([filters, 'optionalAccess', _341 => _341.schoolYearIds]),
|
|
9861
|
+
classIds: _optionalChain([filters, 'optionalAccess', _342 => _342.classIds]),
|
|
9851
9862
|
page: 1,
|
|
9852
9863
|
limit: 10
|
|
9853
9864
|
});
|
|
@@ -9865,9 +9876,9 @@ function SimulatedContentDetailsModal({
|
|
|
9865
9876
|
activityFilters,
|
|
9866
9877
|
contentId,
|
|
9867
9878
|
period,
|
|
9868
|
-
schoolIds: _optionalChain([filters, 'optionalAccess',
|
|
9869
|
-
schoolYearIds: _optionalChain([filters, 'optionalAccess',
|
|
9870
|
-
classIds: _optionalChain([filters, 'optionalAccess',
|
|
9879
|
+
schoolIds: _optionalChain([filters, 'optionalAccess', _343 => _343.schoolIds]),
|
|
9880
|
+
schoolYearIds: _optionalChain([filters, 'optionalAccess', _344 => _344.schoolYearIds]),
|
|
9881
|
+
classIds: _optionalChain([filters, 'optionalAccess', _345 => _345.classIds]),
|
|
9871
9882
|
page: params.page,
|
|
9872
9883
|
limit: params.limit
|
|
9873
9884
|
});
|
|
@@ -10141,7 +10152,7 @@ var TABLE_COLUMNS2 = [
|
|
|
10141
10152
|
const student = row;
|
|
10142
10153
|
const badgeAction = _nullishCoalesce(_chunkVG6CKFHNjs.PERFORMANCE_TAG_TO_BADGE_ACTION[student.performance], () => ( "info")) /* INFO */;
|
|
10143
10154
|
const tagConfig = _chunkVG6CKFHNjs.SIMULATED_PERFORMANCE_TAG_CONFIG[student.performance];
|
|
10144
|
-
const label = _nullishCoalesce(_optionalChain([tagConfig, 'optionalAccess',
|
|
10155
|
+
const label = _nullishCoalesce(_optionalChain([tagConfig, 'optionalAccess', _346 => _346.label]), () => ( "Desconhecido"));
|
|
10145
10156
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBJMKBBN3js.Badge_default, { variant: "solid", action: badgeAction, size: "small", children: label });
|
|
10146
10157
|
}
|
|
10147
10158
|
}
|
|
@@ -10410,7 +10421,7 @@ function EssayCompetenciesTable({
|
|
|
10410
10421
|
setIsModalOpen(false);
|
|
10411
10422
|
setSelectedCompetence(null);
|
|
10412
10423
|
}, []);
|
|
10413
|
-
const competencies = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
10424
|
+
const competencies = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _347 => _347.competencies]), () => ( [])), [data]);
|
|
10414
10425
|
if (error) {
|
|
10415
10426
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-background border border-border-50 rounded-xl p-5", children: [
|
|
10416
10427
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { as: "h3", size: "lg", weight: "bold", className: "text-text-950 mb-4", children: "Profici\xEAncia por compet\xEAncia" }),
|
|
@@ -10447,8 +10458,8 @@ function EssayCompetenciesTable({
|
|
|
10447
10458
|
api,
|
|
10448
10459
|
isOpen: isModalOpen,
|
|
10449
10460
|
onClose: handleCloseModal,
|
|
10450
|
-
competenceNumber: _nullishCoalesce(_optionalChain([selectedCompetence, 'optionalAccess',
|
|
10451
|
-
competenceName: _optionalChain([selectedCompetence, 'optionalAccess',
|
|
10461
|
+
competenceNumber: _nullishCoalesce(_optionalChain([selectedCompetence, 'optionalAccess', _348 => _348.number]), () => ( null)),
|
|
10462
|
+
competenceName: _optionalChain([selectedCompetence, 'optionalAccess', _349 => _349.name]),
|
|
10452
10463
|
period,
|
|
10453
10464
|
schoolIds,
|
|
10454
10465
|
schoolYearIds,
|
|
@@ -10905,7 +10916,7 @@ var ActivityFilters = ({
|
|
|
10905
10916
|
id: bank.id,
|
|
10906
10917
|
name: bank.name || bank.examInstitution
|
|
10907
10918
|
})),
|
|
10908
|
-
selectedIds: _optionalChain([prevCategories, 'access',
|
|
10919
|
+
selectedIds: _optionalChain([prevCategories, 'access', _350 => _350.find, 'call', _351 => _351((c) => c.key === "banca"), 'optionalAccess', _352 => _352.selectedIds]) || []
|
|
10909
10920
|
};
|
|
10910
10921
|
const yearCategory = {
|
|
10911
10922
|
key: "ano",
|
|
@@ -10917,7 +10928,7 @@ var ActivityFilters = ({
|
|
|
10917
10928
|
bankId: year.bankId
|
|
10918
10929
|
})),
|
|
10919
10930
|
filteredBy: [{ key: "banca", internalField: "bankId" }],
|
|
10920
|
-
selectedIds: _optionalChain([prevCategories, 'access',
|
|
10931
|
+
selectedIds: _optionalChain([prevCategories, 'access', _353 => _353.find, 'call', _354 => _354((c) => c.key === "ano"), 'optionalAccess', _355 => _355.selectedIds]) || []
|
|
10921
10932
|
};
|
|
10922
10933
|
return [bankCategory, yearCategory];
|
|
10923
10934
|
});
|
|
@@ -10952,7 +10963,7 @@ var ActivityFilters = ({
|
|
|
10952
10963
|
const yearCategory = currentBankCategories.find(
|
|
10953
10964
|
(category) => category.key === "ano"
|
|
10954
10965
|
);
|
|
10955
|
-
const yearItens = Array.isArray(_optionalChain([yearCategory, 'optionalAccess',
|
|
10966
|
+
const yearItens = Array.isArray(_optionalChain([yearCategory, 'optionalAccess', _356 => _356.itens])) ? yearCategory.itens : [];
|
|
10956
10967
|
const derivedYearIds = _chunkTN3AYOMVjs.deriveYearIdsFromBankIds.call(void 0,
|
|
10957
10968
|
yearItens,
|
|
10958
10969
|
bankIds,
|
|
@@ -11237,7 +11248,7 @@ var FillInBlanks = ({
|
|
|
11237
11248
|
_chunkHGWU3GUNjs.Select_default,
|
|
11238
11249
|
{
|
|
11239
11250
|
value: selectedOptionId || void 0,
|
|
11240
|
-
onValueChange: (value) => _optionalChain([onAnswerChange, 'optionalCall',
|
|
11251
|
+
onValueChange: (value) => _optionalChain([onAnswerChange, 'optionalCall', _357 => _357(placeholderId, value)]),
|
|
11241
11252
|
children: [
|
|
11242
11253
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHGWU3GUNjs.SelectTrigger, { className: "w-auto min-w-[120px] h-7 px-2 bg-background border-gray-300", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHGWU3GUNjs.SelectValue, { placeholder: "Selecione" }) }),
|
|
11243
11254
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHGWU3GUNjs.SelectContent, { children: options.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHGWU3GUNjs.SelectItem, { value: option.id, children: option.option }, option.id)) })
|
|
@@ -11375,7 +11386,7 @@ var ConnectDots = ({
|
|
|
11375
11386
|
value: selectedValue || void 0,
|
|
11376
11387
|
onValueChange: (value) => {
|
|
11377
11388
|
if (disabled) return;
|
|
11378
|
-
_optionalChain([onAnswerChange, 'optionalCall',
|
|
11389
|
+
_optionalChain([onAnswerChange, 'optionalCall', _358 => _358(option.id, value)]);
|
|
11379
11390
|
},
|
|
11380
11391
|
children: [
|
|
11381
11392
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11530,11 +11541,11 @@ var AudioMixerReadingFluency = _react.forwardRef.call(void 0,
|
|
|
11530
11541
|
const restBars = _react.useMemo.call(void 0, () => buildRestBars(barCount), [barCount]);
|
|
11531
11542
|
const resolvedSrc = _nullishCoalesce(objectUrl, () => ( src));
|
|
11532
11543
|
const play = _react.useCallback.call(void 0, () => {
|
|
11533
|
-
_optionalChain([audioRef, 'access',
|
|
11544
|
+
_optionalChain([audioRef, 'access', _359 => _359.current, 'optionalAccess', _360 => _360.play, 'call', _361 => _361(), 'access', _362 => _362.catch, 'call', _363 => _363(() => {
|
|
11534
11545
|
})]);
|
|
11535
11546
|
}, []);
|
|
11536
11547
|
const pause = _react.useCallback.call(void 0, () => {
|
|
11537
|
-
_optionalChain([audioRef, 'access',
|
|
11548
|
+
_optionalChain([audioRef, 'access', _364 => _364.current, 'optionalAccess', _365 => _365.pause, 'call', _366 => _366()]);
|
|
11538
11549
|
}, []);
|
|
11539
11550
|
const stop = _react.useCallback.call(void 0, () => {
|
|
11540
11551
|
const audio = audioRef.current;
|
|
@@ -11597,17 +11608,17 @@ var AudioMixerReadingFluency = _react.forwardRef.call(void 0,
|
|
|
11597
11608
|
}, [autoPlay, status, resolvedSrc]);
|
|
11598
11609
|
const handlePlay = () => {
|
|
11599
11610
|
setPlaying(true);
|
|
11600
|
-
_optionalChain([onPlayingChange, 'optionalCall',
|
|
11611
|
+
_optionalChain([onPlayingChange, 'optionalCall', _367 => _367(true)]);
|
|
11601
11612
|
};
|
|
11602
11613
|
const handlePause = () => {
|
|
11603
11614
|
setPlaying(false);
|
|
11604
|
-
_optionalChain([onPlayingChange, 'optionalCall',
|
|
11615
|
+
_optionalChain([onPlayingChange, 'optionalCall', _368 => _368(false)]);
|
|
11605
11616
|
};
|
|
11606
11617
|
const handleEnded = () => {
|
|
11607
11618
|
setPlaying(false);
|
|
11608
|
-
_optionalChain([onPlayingChange, 'optionalCall',
|
|
11619
|
+
_optionalChain([onPlayingChange, 'optionalCall', _369 => _369(false)]);
|
|
11609
11620
|
setCurrentTime(0);
|
|
11610
|
-
_optionalChain([onEnded, 'optionalCall',
|
|
11621
|
+
_optionalChain([onEnded, 'optionalCall', _370 => _370()]);
|
|
11611
11622
|
};
|
|
11612
11623
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11613
11624
|
"div",
|
|
@@ -11627,7 +11638,7 @@ var AudioMixerReadingFluency = _react.forwardRef.call(void 0,
|
|
|
11627
11638
|
preload: "metadata",
|
|
11628
11639
|
onPlay: handlePlay,
|
|
11629
11640
|
onPause: handlePause,
|
|
11630
|
-
onTimeUpdate: showTime ? () => setCurrentTime(_nullishCoalesce(_optionalChain([audioRef, 'access',
|
|
11641
|
+
onTimeUpdate: showTime ? () => setCurrentTime(_nullishCoalesce(_optionalChain([audioRef, 'access', _371 => _371.current, 'optionalAccess', _372 => _372.currentTime]), () => ( 0))) : void 0,
|
|
11631
11642
|
onEnded: handleEnded,
|
|
11632
11643
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "track", { kind: "captions" })
|
|
11633
11644
|
}
|
|
@@ -11686,7 +11697,7 @@ function useStreamSpectrum(stream, active, {
|
|
|
11686
11697
|
analyser.fftSize = fftSize;
|
|
11687
11698
|
analyser.smoothingTimeConstant = smoothing;
|
|
11688
11699
|
source.connect(analyser);
|
|
11689
|
-
_optionalChain([context, 'access',
|
|
11700
|
+
_optionalChain([context, 'access', _373 => _373.resume, 'optionalCall', _374 => _374(), 'access', _375 => _375.catch, 'call', _376 => _376(() => {
|
|
11690
11701
|
})]);
|
|
11691
11702
|
const bins = new Uint8Array(analyser.frequencyBinCount);
|
|
11692
11703
|
const binCount = bins.length;
|
|
@@ -11798,17 +11809,17 @@ var AudioRecorderReadingFluency = _react.forwardRef.call(void 0,
|
|
|
11798
11809
|
}
|
|
11799
11810
|
mediaRecorderRef.current = null;
|
|
11800
11811
|
setStream((current) => {
|
|
11801
|
-
_optionalChain([current, 'optionalAccess',
|
|
11812
|
+
_optionalChain([current, 'optionalAccess', _377 => _377.getTracks, 'call', _378 => _378(), 'access', _379 => _379.forEach, 'call', _380 => _380((track) => track.stop())]);
|
|
11802
11813
|
return null;
|
|
11803
11814
|
});
|
|
11804
11815
|
setRecording(false);
|
|
11805
|
-
_optionalChain([onRecordingChange, 'optionalCall',
|
|
11816
|
+
_optionalChain([onRecordingChange, 'optionalCall', _381 => _381(false)]);
|
|
11806
11817
|
}, [onRecordingChange]);
|
|
11807
11818
|
const start = _react.useCallback.call(void 0, async () => {
|
|
11808
11819
|
if (mediaRecorderRef.current) return;
|
|
11809
11820
|
const nav = typeof navigator !== "undefined" ? navigator : void 0;
|
|
11810
|
-
if (!_optionalChain([nav, 'optionalAccess',
|
|
11811
|
-
_optionalChain([onError, 'optionalCall',
|
|
11821
|
+
if (!_optionalChain([nav, 'optionalAccess', _382 => _382.mediaDevices, 'optionalAccess', _383 => _383.getUserMedia])) {
|
|
11822
|
+
_optionalChain([onError, 'optionalCall', _384 => _384(new Error("getUserMedia indispon\xEDvel neste ambiente"))]);
|
|
11812
11823
|
return;
|
|
11813
11824
|
}
|
|
11814
11825
|
let micStream = null;
|
|
@@ -11827,7 +11838,7 @@ var AudioRecorderReadingFluency = _react.forwardRef.call(void 0,
|
|
|
11827
11838
|
type: recorder.mimeType || "audio/webm"
|
|
11828
11839
|
});
|
|
11829
11840
|
chunksRef.current = [];
|
|
11830
|
-
_optionalChain([onRecordingComplete, 'optionalCall',
|
|
11841
|
+
_optionalChain([onRecordingComplete, 'optionalCall', _385 => _385(blob, URL.createObjectURL(blob))]);
|
|
11831
11842
|
};
|
|
11832
11843
|
recorder.start();
|
|
11833
11844
|
mediaRecorderRef.current = recorder;
|
|
@@ -11835,10 +11846,10 @@ var AudioRecorderReadingFluency = _react.forwardRef.call(void 0,
|
|
|
11835
11846
|
setElapsed(0);
|
|
11836
11847
|
setStream(micStream);
|
|
11837
11848
|
setRecording(true);
|
|
11838
|
-
_optionalChain([onRecordingChange, 'optionalCall',
|
|
11849
|
+
_optionalChain([onRecordingChange, 'optionalCall', _386 => _386(true)]);
|
|
11839
11850
|
} catch (error) {
|
|
11840
|
-
_optionalChain([micStream, 'optionalAccess',
|
|
11841
|
-
_optionalChain([onError, 'optionalCall',
|
|
11851
|
+
_optionalChain([micStream, 'optionalAccess', _387 => _387.getTracks, 'call', _388 => _388(), 'access', _389 => _389.forEach, 'call', _390 => _390((track) => track.stop())]);
|
|
11852
|
+
_optionalChain([onError, 'optionalCall', _391 => _391(error)]);
|
|
11842
11853
|
}
|
|
11843
11854
|
}, [mimeType, onError, onRecordingChange, onRecordingComplete]);
|
|
11844
11855
|
_react.useImperativeHandle.call(void 0, ref, () => ({ start, stop }), [start, stop]);
|
|
@@ -11849,7 +11860,7 @@ var AudioRecorderReadingFluency = _react.forwardRef.call(void 0,
|
|
|
11849
11860
|
recorder.onstop = null;
|
|
11850
11861
|
recorder.stop();
|
|
11851
11862
|
}
|
|
11852
|
-
_optionalChain([streamRef, 'access',
|
|
11863
|
+
_optionalChain([streamRef, 'access', _392 => _392.current, 'optionalAccess', _393 => _393.getTracks, 'call', _394 => _394(), 'access', _395 => _395.forEach, 'call', _396 => _396((track) => track.stop())]);
|
|
11853
11864
|
};
|
|
11854
11865
|
}, []);
|
|
11855
11866
|
const toggle = () => {
|
|
@@ -12046,10 +12057,10 @@ function useAppContent(config) {
|
|
|
12046
12057
|
_chunkB4EFRRXHjs.useUrlAuthentication.call(void 0, urlAuthConfig);
|
|
12047
12058
|
const { sessionInfo } = _chunkVDLACBCFjs.useAuth.call(void 0, );
|
|
12048
12059
|
const institutionIdToUse = _react.useMemo.call(void 0, () => {
|
|
12049
|
-
return _optionalChain([sessionInfo, 'optionalAccess',
|
|
12050
|
-
}, [_optionalChain([sessionInfo, 'optionalAccess',
|
|
12060
|
+
return _optionalChain([sessionInfo, 'optionalAccess', _397 => _397.institutionId]) || getInstitutionId;
|
|
12061
|
+
}, [_optionalChain([sessionInfo, 'optionalAccess', _398 => _398.institutionId]), getInstitutionId]);
|
|
12051
12062
|
const profileType = _react.useMemo.call(void 0, () => {
|
|
12052
|
-
return _nullishCoalesce(_optionalChain([sessionInfo, 'optionalAccess',
|
|
12063
|
+
return _nullishCoalesce(_optionalChain([sessionInfo, 'optionalAccess', _399 => _399.profileName]), () => ( void 0));
|
|
12053
12064
|
}, [sessionInfo]);
|
|
12054
12065
|
_react.useEffect.call(void 0, () => {
|
|
12055
12066
|
if (institutionIdToUse && !initialized) {
|
|
@@ -12058,7 +12069,7 @@ function useAppContent(config) {
|
|
|
12058
12069
|
}, [institutionIdToUse, initialize, initialized]);
|
|
12059
12070
|
_react.useEffect.call(void 0, () => {
|
|
12060
12071
|
if (institutionIdToUse) {
|
|
12061
|
-
|
|
12072
|
+
_chunkPJIV7QPKjs.useModulesStore.getState().fetchModules(
|
|
12062
12073
|
institutionIdToUse,
|
|
12063
12074
|
apiConfig,
|
|
12064
12075
|
profileType
|
|
@@ -12091,7 +12102,7 @@ var ActivityCardQuestionBanks = ({
|
|
|
12091
12102
|
enableExamMode = false
|
|
12092
12103
|
} = {}) => {
|
|
12093
12104
|
const alternatives = _react.useMemo.call(void 0, () => {
|
|
12094
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
12105
|
+
if (!_optionalChain([question, 'optionalAccess', _400 => _400.options]) || questionType !== "ALTERNATIVA" /* ALTERNATIVA */)
|
|
12095
12106
|
return [];
|
|
12096
12107
|
const correctOptionIds2 = question.correctOptionIds || [];
|
|
12097
12108
|
return question.options.map((option) => {
|
|
@@ -12105,13 +12116,13 @@ var ActivityCardQuestionBanks = ({
|
|
|
12105
12116
|
});
|
|
12106
12117
|
}, [question, questionType]);
|
|
12107
12118
|
const correctOptionId = _react.useMemo.call(void 0, () => {
|
|
12108
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
12119
|
+
if (!_optionalChain([question, 'optionalAccess', _401 => _401.correctOptionIds]) || question.correctOptionIds.length === 0) {
|
|
12109
12120
|
return void 0;
|
|
12110
12121
|
}
|
|
12111
12122
|
return question.correctOptionIds[0];
|
|
12112
12123
|
}, [question]);
|
|
12113
12124
|
const multipleChoices = _react.useMemo.call(void 0, () => {
|
|
12114
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
12125
|
+
if (!_optionalChain([question, 'optionalAccess', _402 => _402.options]) || questionType !== "MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */)
|
|
12115
12126
|
return [];
|
|
12116
12127
|
const correctOptionIds2 = question.correctOptionIds || [];
|
|
12117
12128
|
return question.options.map((option) => {
|
|
@@ -12125,7 +12136,7 @@ var ActivityCardQuestionBanks = ({
|
|
|
12125
12136
|
});
|
|
12126
12137
|
}, [question, questionType]);
|
|
12127
12138
|
const correctOptionIds = _react.useMemo.call(void 0, () => {
|
|
12128
|
-
return _optionalChain([question, 'optionalAccess',
|
|
12139
|
+
return _optionalChain([question, 'optionalAccess', _403 => _403.correctOptionIds]) || [];
|
|
12129
12140
|
}, [question]);
|
|
12130
12141
|
const getLetterByIndex = (index) => String.fromCodePoint(97 + index);
|
|
12131
12142
|
const renderAlternative = () => {
|
|
@@ -12189,14 +12200,14 @@ var ActivityCardQuestionBanks = ({
|
|
|
12189
12200
|
}) }) });
|
|
12190
12201
|
};
|
|
12191
12202
|
const connectDotsOptions = _react.useMemo.call(void 0, () => {
|
|
12192
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
12203
|
+
if (!_optionalChain([question, 'optionalAccess', _404 => _404.options]) || questionType !== "RELACIONAR" /* RELACIONAR */)
|
|
12193
12204
|
return [];
|
|
12194
12205
|
return question.options.filter((opt) => opt.correctValue).map((opt) => ({
|
|
12195
12206
|
id: opt.id,
|
|
12196
12207
|
option: opt.option,
|
|
12197
12208
|
correctValue: opt.correctValue
|
|
12198
12209
|
}));
|
|
12199
|
-
}, [_optionalChain([question, 'optionalAccess',
|
|
12210
|
+
}, [_optionalChain([question, 'optionalAccess', _405 => _405.options]), questionType]);
|
|
12200
12211
|
const renderConnectDots = () => {
|
|
12201
12212
|
if (connectDotsOptions.length === 0) return null;
|
|
12202
12213
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12209,12 +12220,12 @@ var ActivityCardQuestionBanks = ({
|
|
|
12209
12220
|
);
|
|
12210
12221
|
};
|
|
12211
12222
|
const fillInBlanksOptions = _react.useMemo.call(void 0, () => {
|
|
12212
|
-
if (!_optionalChain([question, 'optionalAccess',
|
|
12223
|
+
if (!_optionalChain([question, 'optionalAccess', _406 => _406.options])) return [];
|
|
12213
12224
|
return question.options.map((opt) => ({
|
|
12214
12225
|
id: opt.id,
|
|
12215
12226
|
option: opt.option
|
|
12216
12227
|
}));
|
|
12217
|
-
}, [_optionalChain([question, 'optionalAccess',
|
|
12228
|
+
}, [_optionalChain([question, 'optionalAccess', _407 => _407.options])]);
|
|
12218
12229
|
const renderFill = () => {
|
|
12219
12230
|
if (!additionalContent || fillInBlanksOptions.length === 0) return null;
|
|
12220
12231
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12228,7 +12239,7 @@ var ActivityCardQuestionBanks = ({
|
|
|
12228
12239
|
);
|
|
12229
12240
|
};
|
|
12230
12241
|
const imageCoordinates = _react.useMemo.call(void 0, () => {
|
|
12231
|
-
if (questionType !== "IMAGEM" /* IMAGEM */ || !_optionalChain([question, 'optionalAccess',
|
|
12242
|
+
if (questionType !== "IMAGEM" /* IMAGEM */ || !_optionalChain([question, 'optionalAccess', _408 => _408.options, 'optionalAccess', _409 => _409[0], 'optionalAccess', _410 => _410.option]))
|
|
12232
12243
|
return null;
|
|
12233
12244
|
try {
|
|
12234
12245
|
const coords = JSON.parse(question.options[0].option);
|
|
@@ -12238,7 +12249,7 @@ var ActivityCardQuestionBanks = ({
|
|
|
12238
12249
|
} catch (e6) {
|
|
12239
12250
|
}
|
|
12240
12251
|
return null;
|
|
12241
|
-
}, [_optionalChain([question, 'optionalAccess',
|
|
12252
|
+
}, [_optionalChain([question, 'optionalAccess', _411 => _411.options]), questionType]);
|
|
12242
12253
|
const renderImage = () => {
|
|
12243
12254
|
if (!additionalContent) return null;
|
|
12244
12255
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-4 relative inline-block", children: [
|
|
@@ -12331,7 +12342,7 @@ var QuestionsPdfContent = _react.forwardRef.call(void 0, ({ questions }, ref) =>
|
|
|
12331
12342
|
return String.fromCodePoint(97 + index);
|
|
12332
12343
|
};
|
|
12333
12344
|
const renderAlternative = (question) => {
|
|
12334
|
-
if (!_optionalChain([question, 'access',
|
|
12345
|
+
if (!_optionalChain([question, 'access', _412 => _412.question, 'optionalAccess', _413 => _413.options]) || question.question.options.length === 0) {
|
|
12335
12346
|
return null;
|
|
12336
12347
|
}
|
|
12337
12348
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12358,7 +12369,7 @@ var QuestionsPdfContent = _react.forwardRef.call(void 0, ({ questions }, ref) =>
|
|
|
12358
12369
|
);
|
|
12359
12370
|
};
|
|
12360
12371
|
const renderMultipleChoice = (question) => {
|
|
12361
|
-
if (!_optionalChain([question, 'access',
|
|
12372
|
+
if (!_optionalChain([question, 'access', _414 => _414.question, 'optionalAccess', _415 => _415.options]) || question.question.options.length === 0) {
|
|
12362
12373
|
return null;
|
|
12363
12374
|
}
|
|
12364
12375
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12457,7 +12468,7 @@ var QuestionsPdfContent = _react.forwardRef.call(void 0, ({ questions }, ref) =>
|
|
|
12457
12468
|
);
|
|
12458
12469
|
};
|
|
12459
12470
|
const renderTrueOrFalse = (question) => {
|
|
12460
|
-
if (!_optionalChain([question, 'access',
|
|
12471
|
+
if (!_optionalChain([question, 'access', _416 => _416.question, 'optionalAccess', _417 => _417.options]) || question.question.options.length === 0) {
|
|
12461
12472
|
return null;
|
|
12462
12473
|
}
|
|
12463
12474
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { marginTop: "12px", marginBottom: "12px" }, children: question.question.options.map((option, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -12754,7 +12765,7 @@ var useQuestionsPdfPrint = (questions, onPrint, onPrintError, getExtraPagesHtml)
|
|
|
12754
12765
|
const contentRef = _react.useRef.call(void 0, null);
|
|
12755
12766
|
const handlePrint = _react.useCallback.call(void 0, async () => {
|
|
12756
12767
|
try {
|
|
12757
|
-
_optionalChain([onPrint, 'optionalCall',
|
|
12768
|
+
_optionalChain([onPrint, 'optionalCall', _418 => _418()]);
|
|
12758
12769
|
if (!contentRef.current) {
|
|
12759
12770
|
throw new Error("Elemento de PDF n\xE3o encontrado no DOM");
|
|
12760
12771
|
}
|
|
@@ -12784,7 +12795,7 @@ var useQuestionsPdfPrint = (questions, onPrint, onPrintError, getExtraPagesHtml)
|
|
|
12784
12795
|
setupPrintWindowHandler(printWindow);
|
|
12785
12796
|
} catch (error) {
|
|
12786
12797
|
const errorObj = error instanceof Error ? error : new Error(String(error));
|
|
12787
|
-
_optionalChain([onPrintError, 'optionalCall',
|
|
12798
|
+
_optionalChain([onPrintError, 'optionalCall', _419 => _419(errorObj)]);
|
|
12788
12799
|
console.error("Erro ao gerar PDF:", errorObj);
|
|
12789
12800
|
}
|
|
12790
12801
|
}, [onPrint, onPrintError, getExtraPagesHtml]);
|
|
@@ -12805,7 +12816,7 @@ var QuestionsPdfGenerator = ({
|
|
|
12805
12816
|
onPrintError
|
|
12806
12817
|
);
|
|
12807
12818
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
12808
|
-
_optionalChain([children, 'optionalCall',
|
|
12819
|
+
_optionalChain([children, 'optionalCall', _420 => _420(handlePrint)]),
|
|
12809
12820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { display: "none" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuestionsPdfContent, { ref: contentRef, questions }) })
|
|
12810
12821
|
] });
|
|
12811
12822
|
};
|
|
@@ -12838,7 +12849,7 @@ var ActivityPreview = ({
|
|
|
12838
12849
|
_react.useEffect.call(void 0, () => {
|
|
12839
12850
|
const normalized = normalizeWithPositions2(questions);
|
|
12840
12851
|
setOrderedQuestions(normalized);
|
|
12841
|
-
_optionalChain([onPositionsChangeRef, 'access',
|
|
12852
|
+
_optionalChain([onPositionsChangeRef, 'access', _421 => _421.current, 'optionalCall', _422 => _422(normalized)]);
|
|
12842
12853
|
}, [questions, normalizeWithPositions2]);
|
|
12843
12854
|
const total = orderedQuestions.length;
|
|
12844
12855
|
const totalLabel = total === 1 ? "1 quest\xE3o adicionada" : `${total} quest\xF5es adicionadas`;
|
|
@@ -12847,7 +12858,7 @@ var ActivityPreview = ({
|
|
|
12847
12858
|
onDownloadPdf
|
|
12848
12859
|
);
|
|
12849
12860
|
const handleDownloadPdf = () => {
|
|
12850
|
-
_optionalChain([onDownloadPdf, 'optionalCall',
|
|
12861
|
+
_optionalChain([onDownloadPdf, 'optionalCall', _423 => _423()]);
|
|
12851
12862
|
setTimeout(() => {
|
|
12852
12863
|
if (!contentRef.current) {
|
|
12853
12864
|
console.error("Elemento de PDF n\xE3o encontrado no DOM");
|
|
@@ -12870,8 +12881,8 @@ var ActivityPreview = ({
|
|
|
12870
12881
|
current.splice(toIndex, 0, moved);
|
|
12871
12882
|
const normalized = normalizeWithPositions2(current);
|
|
12872
12883
|
setOrderedQuestions(normalized);
|
|
12873
|
-
_optionalChain([onReorder, 'optionalCall',
|
|
12874
|
-
_optionalChain([onPositionsChange, 'optionalCall',
|
|
12884
|
+
_optionalChain([onReorder, 'optionalCall', _424 => _424(normalized)]);
|
|
12885
|
+
_optionalChain([onPositionsChange, 'optionalCall', _425 => _425(normalized)]);
|
|
12875
12886
|
};
|
|
12876
12887
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12877
12888
|
"div",
|
|
@@ -13130,11 +13141,11 @@ var fetchExamResults = async (apiClient, activityId, queryParams) => {
|
|
|
13130
13141
|
};
|
|
13131
13142
|
var buildQueryParams = (params) => {
|
|
13132
13143
|
const paramsObj = {};
|
|
13133
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
13134
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
13135
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
13136
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
13137
|
-
if (_optionalChain([params, 'optionalAccess',
|
|
13144
|
+
if (_optionalChain([params, 'optionalAccess', _426 => _426.page])) paramsObj.page = params.page;
|
|
13145
|
+
if (_optionalChain([params, 'optionalAccess', _427 => _427.limit])) paramsObj.limit = params.limit;
|
|
13146
|
+
if (_optionalChain([params, 'optionalAccess', _428 => _428.sortBy])) paramsObj.sortBy = params.sortBy;
|
|
13147
|
+
if (_optionalChain([params, 'optionalAccess', _429 => _429.sortOrder])) paramsObj.sortOrder = params.sortOrder;
|
|
13148
|
+
if (_optionalChain([params, 'optionalAccess', _430 => _430.status])) paramsObj.status = params.status;
|
|
13138
13149
|
return paramsObj;
|
|
13139
13150
|
};
|
|
13140
13151
|
var useActivityDetails = (apiClient) => {
|
|
@@ -13147,9 +13158,9 @@ var useActivityDetails = (apiClient) => {
|
|
|
13147
13158
|
}),
|
|
13148
13159
|
apiClient.get(`/activities/${id}/quiz`).catch(() => null)
|
|
13149
13160
|
]);
|
|
13150
|
-
const activity = _optionalChain([quizResponse, 'optionalAccess',
|
|
13161
|
+
const activity = _optionalChain([quizResponse, 'optionalAccess', _431 => _431.data, 'optionalAccess', _432 => _432.data]);
|
|
13151
13162
|
const details = detailsResponse.data.data;
|
|
13152
|
-
const isPresencialExam = _optionalChain([activity, 'optionalAccess',
|
|
13163
|
+
const isPresencialExam = _optionalChain([activity, 'optionalAccess', _433 => _433.isDigital]) === false && _optionalChain([activity, 'optionalAccess', _434 => _434.subtype]) === "PROVA" /* PROVA */;
|
|
13153
13164
|
if (!isPresencialExam) {
|
|
13154
13165
|
return { ...details, activity };
|
|
13155
13166
|
}
|
|
@@ -13397,7 +13408,7 @@ var normalizeWithPositions = (items) => items.map((item, index) => ({
|
|
|
13397
13408
|
...item,
|
|
13398
13409
|
position: index + 1
|
|
13399
13410
|
}));
|
|
13400
|
-
var extractQuestionIds = (response) => _nullishCoalesce(_nullishCoalesce(_optionalChain([response, 'optionalAccess',
|
|
13411
|
+
var extractQuestionIds = (response) => _nullishCoalesce(_nullishCoalesce(_optionalChain([response, 'optionalAccess', _435 => _435.data, 'optionalAccess', _436 => _436.data, 'optionalAccess', _437 => _437.questions, 'optionalAccess', _438 => _438.map, 'call', _439 => _439((q) => q.id)]), () => ( _optionalChain([response, 'optionalAccess', _440 => _440.data, 'optionalAccess', _441 => _441.data, 'optionalAccess', _442 => _442.questionIds]))), () => ( []));
|
|
13401
13412
|
var toErrorMessage = (err, fallback) => err instanceof Error ? err.message : fallback;
|
|
13402
13413
|
var ViewQuestionsModalBody = ({
|
|
13403
13414
|
questions
|
|
@@ -13517,7 +13528,7 @@ var ActivityDetails = ({
|
|
|
13517
13528
|
}, [activityId, page, limit, sortBy, sortOrder, fetchActivityDetails]);
|
|
13518
13529
|
const handleCorrectActivity = _react.useCallback.call(void 0,
|
|
13519
13530
|
async (studentId) => {
|
|
13520
|
-
const student = _optionalChain([data, 'optionalAccess',
|
|
13531
|
+
const student = _optionalChain([data, 'optionalAccess', _443 => _443.students, 'access', _444 => _444.find, 'call', _445 => _445((s) => s.studentId === studentId)]);
|
|
13521
13532
|
if (!student || !activityId) return;
|
|
13522
13533
|
const isViewOnly = student.status !== _chunk5LIGAN3Cjs.STUDENT_ACTIVITY_STATUS.AGUARDANDO_CORRECAO;
|
|
13523
13534
|
setIsViewOnlyModal(isViewOnly);
|
|
@@ -13531,8 +13542,8 @@ var ActivityDetails = ({
|
|
|
13531
13542
|
apiResponse,
|
|
13532
13543
|
studentId,
|
|
13533
13544
|
student.studentName || "Aluno",
|
|
13534
|
-
_nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess',
|
|
13535
|
-
_nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess',
|
|
13545
|
+
_nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess', _446 => _446.teacherFeedback]), () => ( void 0)),
|
|
13546
|
+
_nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess', _447 => _447.attachment]), () => ( void 0))
|
|
13536
13547
|
);
|
|
13537
13548
|
setCorrectionData(correction);
|
|
13538
13549
|
setIsModalOpen(true);
|
|
@@ -13544,7 +13555,7 @@ var ActivityDetails = ({
|
|
|
13544
13555
|
}
|
|
13545
13556
|
},
|
|
13546
13557
|
[
|
|
13547
|
-
_optionalChain([data, 'optionalAccess',
|
|
13558
|
+
_optionalChain([data, 'optionalAccess', _448 => _448.students]),
|
|
13548
13559
|
activityId,
|
|
13549
13560
|
fetchStudentCorrection,
|
|
13550
13561
|
safeFetchStudentFeedback
|
|
@@ -13594,10 +13605,10 @@ var ActivityDetails = ({
|
|
|
13594
13605
|
},
|
|
13595
13606
|
[activityId, submitQuestionCorrection]
|
|
13596
13607
|
);
|
|
13597
|
-
const isPresencial = _optionalChain([data, 'optionalAccess',
|
|
13608
|
+
const isPresencial = _optionalChain([data, 'optionalAccess', _449 => _449.activity, 'optionalAccess', _450 => _450.isDigital]) === false && _optionalChain([data, 'optionalAccess', _451 => _451.activity, 'optionalAccess', _452 => _452.subtype]) === "PROVA" /* PROVA */;
|
|
13598
13609
|
const statsGridColsClass = getStatsGridColsClass(isMobile, isPresencial);
|
|
13599
13610
|
const tableData = _react.useMemo.call(void 0, () => {
|
|
13600
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
13611
|
+
if (!_optionalChain([data, 'optionalAccess', _453 => _453.students])) return [];
|
|
13601
13612
|
return data.students.map((student) => ({
|
|
13602
13613
|
id: student.studentId,
|
|
13603
13614
|
studentId: student.studentId,
|
|
@@ -13610,14 +13621,14 @@ var ActivityDetails = ({
|
|
|
13610
13621
|
essayReceivedAt: student.essayReceivedAt,
|
|
13611
13622
|
answerSheetStatus: student.answerSheetStatus
|
|
13612
13623
|
}));
|
|
13613
|
-
}, [_optionalChain([data, 'optionalAccess',
|
|
13624
|
+
}, [_optionalChain([data, 'optionalAccess', _454 => _454.students])]);
|
|
13614
13625
|
const columns = _react.useMemo.call(void 0,
|
|
13615
13626
|
() => createTableColumns(
|
|
13616
13627
|
handleCorrectActivity,
|
|
13617
13628
|
isPresencial,
|
|
13618
|
-
_nullishCoalesce(_optionalChain([data, 'optionalAccess',
|
|
13629
|
+
_nullishCoalesce(_optionalChain([data, 'optionalAccess', _455 => _455.requiresEssay]), () => ( false))
|
|
13619
13630
|
),
|
|
13620
|
-
[handleCorrectActivity, isPresencial, _optionalChain([data, 'optionalAccess',
|
|
13631
|
+
[handleCorrectActivity, isPresencial, _optionalChain([data, 'optionalAccess', _456 => _456.requiresEssay])]
|
|
13621
13632
|
);
|
|
13622
13633
|
const handleTableParamsChange = (params) => {
|
|
13623
13634
|
if (params.page) setPage(params.page);
|
|
@@ -13646,7 +13657,7 @@ var ActivityDetails = ({
|
|
|
13646
13657
|
);
|
|
13647
13658
|
const extractQuestionsFromResponse = _react.useCallback.call(void 0,
|
|
13648
13659
|
async (response) => {
|
|
13649
|
-
if (!_optionalChain([response, 'optionalAccess',
|
|
13660
|
+
if (!_optionalChain([response, 'optionalAccess', _457 => _457.data, 'optionalAccess', _458 => _458.data])) {
|
|
13650
13661
|
return [];
|
|
13651
13662
|
}
|
|
13652
13663
|
if (response.data.data.questions) {
|
|
@@ -13683,7 +13694,7 @@ var ActivityDetails = ({
|
|
|
13683
13694
|
if (questions.length === 0) {
|
|
13684
13695
|
const { response: activityResponse, error: activityError } = await tryFetchActivityResponse();
|
|
13685
13696
|
if (!quizResponse && !activityResponse) {
|
|
13686
|
-
const errorMessage = _optionalChain([quizError, 'optionalAccess',
|
|
13697
|
+
const errorMessage = _optionalChain([quizError, 'optionalAccess', _459 => _459.message]) || _optionalChain([activityError, 'optionalAccess', _460 => _460.message]) || "Erro ao buscar quest\xF5es da atividade. Tente novamente.";
|
|
13687
13698
|
throw new Error(errorMessage);
|
|
13688
13699
|
}
|
|
13689
13700
|
questions = await extractQuestionsFromResponse(activityResponse);
|
|
@@ -13807,7 +13818,7 @@ var ActivityDetails = ({
|
|
|
13807
13818
|
onBack();
|
|
13808
13819
|
}
|
|
13809
13820
|
};
|
|
13810
|
-
const subjectEnum = _optionalChain([data, 'optionalAccess',
|
|
13821
|
+
const subjectEnum = _optionalChain([data, 'optionalAccess', _461 => _461.activity, 'optionalAccess', _462 => _462.subjectName]) && mapSubjectNameToEnum2 ? mapSubjectNameToEnum2(data.activity.subjectName) : null;
|
|
13811
13822
|
const subjectInfo = subjectEnum ? _chunk7A33ZIFEjs.getSubjectInfo.call(void 0, subjectEnum) : null;
|
|
13812
13823
|
if (loading && !data) {
|
|
13813
13824
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5 overflow-hidden", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col w-full h-full max-w-[1150px] mx-auto z-10 lg:px-0 px-4 pt-4 gap-4", children: [
|
|
@@ -13852,7 +13863,7 @@ var ActivityDetails = ({
|
|
|
13852
13863
|
}
|
|
13853
13864
|
),
|
|
13854
13865
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CaretRight.CaretRightIcon, { size: 16, className: "text-text-500" }),
|
|
13855
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { className: "text-text-950 text-sm font-bold", children: _optionalChain([data, 'access',
|
|
13866
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { className: "text-text-950 text-sm font-bold", children: _optionalChain([data, 'access', _463 => _463.activity, 'optionalAccess', _464 => _464.title]) || "Atividade" })
|
|
13856
13867
|
] }),
|
|
13857
13868
|
data.activity && isPresencial && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-background rounded-xl p-4 flex justify-between items-center gap-4", children: [
|
|
13858
13869
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-1", children: [
|
|
@@ -14124,7 +14135,8 @@ var SendActivityModal = ({
|
|
|
14124
14135
|
onError,
|
|
14125
14136
|
initialData,
|
|
14126
14137
|
enableExamMode = false,
|
|
14127
|
-
isInPersonExam = false
|
|
14138
|
+
isInPersonExam = false,
|
|
14139
|
+
recipientWarning
|
|
14128
14140
|
}) => {
|
|
14129
14141
|
const store = _chunkLFBSDEQEjs.useSendActivityModalStore.call(void 0, );
|
|
14130
14142
|
const reset = _chunkLFBSDEQEjs.useSendActivityModalStore.call(void 0, (state) => state.reset);
|
|
@@ -14203,7 +14215,7 @@ var SendActivityModal = ({
|
|
|
14203
14215
|
const handleCategoriesChange = _react.useCallback.call(void 0,
|
|
14204
14216
|
(updatedCategories) => {
|
|
14205
14217
|
setCategories(updatedCategories);
|
|
14206
|
-
_optionalChain([onCategoriesChange, 'optionalCall',
|
|
14218
|
+
_optionalChain([onCategoriesChange, 'optionalCall', _465 => _465(updatedCategories)]);
|
|
14207
14219
|
},
|
|
14208
14220
|
[setCategories, onCategoriesChange]
|
|
14209
14221
|
);
|
|
@@ -14286,7 +14298,7 @@ var SendActivityModal = ({
|
|
|
14286
14298
|
children: "Tipo de atividade*"
|
|
14287
14299
|
}
|
|
14288
14300
|
),
|
|
14289
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children:
|
|
14301
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: _chunkKFF223EVjs.ACTIVITY_TYPE_OPTIONS.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14290
14302
|
_chunkXVBSGC7Vjs.Chips_default,
|
|
14291
14303
|
{
|
|
14292
14304
|
selected: store.formData.subtype === type.value,
|
|
@@ -14321,7 +14333,7 @@ var SendActivityModal = ({
|
|
|
14321
14333
|
children: "Modo de prova*"
|
|
14322
14334
|
}
|
|
14323
14335
|
),
|
|
14324
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children:
|
|
14336
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: _chunkKFF223EVjs.ACTIVITY_MODE_OPTIONS.map((modeOption) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14325
14337
|
_chunkXVBSGC7Vjs.Chips_default,
|
|
14326
14338
|
{
|
|
14327
14339
|
selected: store.formData.mode === modeOption.value,
|
|
@@ -14427,6 +14439,7 @@ var SendActivityModal = ({
|
|
|
14427
14439
|
categories: categoriesToRender,
|
|
14428
14440
|
onCategoriesChange: handleCategoriesChange,
|
|
14429
14441
|
entityNameWithArticle,
|
|
14442
|
+
warningMessage: recipientWarning,
|
|
14430
14443
|
studentsError: store.errors.students
|
|
14431
14444
|
}
|
|
14432
14445
|
);
|
|
@@ -14732,7 +14745,8 @@ var SendLessonModal = ({
|
|
|
14732
14745
|
isLoading = false,
|
|
14733
14746
|
onError,
|
|
14734
14747
|
modalTitle: modalTitleProp,
|
|
14735
|
-
hasAttachedActivities = false
|
|
14748
|
+
hasAttachedActivities = false,
|
|
14749
|
+
recipientWarning
|
|
14736
14750
|
}) => {
|
|
14737
14751
|
const store = useSendLessonModalStore();
|
|
14738
14752
|
const reset = useSendLessonModalStore((state) => state.reset);
|
|
@@ -14765,7 +14779,7 @@ var SendLessonModal = ({
|
|
|
14765
14779
|
const handleCategoriesChange = _react.useCallback.call(void 0,
|
|
14766
14780
|
(updatedCategories) => {
|
|
14767
14781
|
setCategories(updatedCategories);
|
|
14768
|
-
_optionalChain([onCategoriesChange, 'optionalCall',
|
|
14782
|
+
_optionalChain([onCategoriesChange, 'optionalCall', _466 => _466(updatedCategories)]);
|
|
14769
14783
|
},
|
|
14770
14784
|
[setCategories, onCategoriesChange]
|
|
14771
14785
|
);
|
|
@@ -14883,6 +14897,7 @@ var SendLessonModal = ({
|
|
|
14883
14897
|
categories: categoriesToRender,
|
|
14884
14898
|
onCategoriesChange: handleCategoriesChange,
|
|
14885
14899
|
entityNameWithArticle: ENTITY_NAME_WITH_ARTICLE,
|
|
14900
|
+
warningMessage: recipientWarning,
|
|
14886
14901
|
studentsError: store.errors.students
|
|
14887
14902
|
}
|
|
14888
14903
|
);
|
|
@@ -15085,7 +15100,7 @@ var EditRecommendedLessonModal = ({ isOpen, recommendedClassId, fetchById, onUpd
|
|
|
15085
15100
|
setSaving(true);
|
|
15086
15101
|
try {
|
|
15087
15102
|
await onUpdate(recommendedClassId, {
|
|
15088
|
-
title: _optionalChain([formData, 'access',
|
|
15103
|
+
title: _optionalChain([formData, 'access', _467 => _467.title, 'optionalAccess', _468 => _468.trim, 'call', _469 => _469()]),
|
|
15089
15104
|
startDate: buildISODateTime(
|
|
15090
15105
|
_nullishCoalesce(formData.startDate, () => ( "")),
|
|
15091
15106
|
formData.startTime || "00:00"
|
|
@@ -15220,7 +15235,7 @@ var ModelsTabBase = ({
|
|
|
15220
15235
|
() => ({
|
|
15221
15236
|
get: async (_url, options) => {
|
|
15222
15237
|
const result = await fetchModelsRef.current(
|
|
15223
|
-
_optionalChain([options, 'optionalAccess',
|
|
15238
|
+
_optionalChain([options, 'optionalAccess', _470 => _470.params])
|
|
15224
15239
|
);
|
|
15225
15240
|
return { data: result };
|
|
15226
15241
|
},
|
|
@@ -15383,7 +15398,7 @@ var ModelsTabBase = ({
|
|
|
15383
15398
|
isOpen: deleteDialogOpen,
|
|
15384
15399
|
onChangeOpen: setDeleteDialogOpen,
|
|
15385
15400
|
title: "Deletar modelo",
|
|
15386
|
-
description: `Tem certeza que deseja deletar o modelo "${_optionalChain([modelToDelete, 'optionalAccess',
|
|
15401
|
+
description: `Tem certeza que deseja deletar o modelo "${_optionalChain([modelToDelete, 'optionalAccess', _471 => _471.title])}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
|
|
15387
15402
|
submitButtonLabel: "Deletar",
|
|
15388
15403
|
cancelButtonLabel: "Cancelar",
|
|
15389
15404
|
onSubmit: handleConfirmDelete,
|
|
@@ -15395,7 +15410,7 @@ var ModelsTabBase = ({
|
|
|
15395
15410
|
|
|
15396
15411
|
// src/components/RecommendedLessonsHistory/config/modelsFiltersConfig.ts
|
|
15397
15412
|
var getSubjectOptions = (data) => {
|
|
15398
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
15413
|
+
if (!_optionalChain([data, 'optionalAccess', _472 => _472.subjects])) return [];
|
|
15399
15414
|
return data.subjects.map((subject) => ({
|
|
15400
15415
|
id: subject.id,
|
|
15401
15416
|
name: subject.name
|
|
@@ -15487,7 +15502,7 @@ var RecommendedClassModelsTab = ({
|
|
|
15487
15502
|
|
|
15488
15503
|
// src/components/RecommendedLessonsHistory/config/draftsFiltersConfig.ts
|
|
15489
15504
|
var getSubjectOptions2 = (data) => {
|
|
15490
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
15505
|
+
if (!_optionalChain([data, 'optionalAccess', _473 => _473.subjects])) return [];
|
|
15491
15506
|
return data.subjects.map((subject) => ({
|
|
15492
15507
|
id: subject.id,
|
|
15493
15508
|
name: subject.name
|
|
@@ -15607,28 +15622,28 @@ var buildFiltersFromParams = (params) => {
|
|
|
15607
15622
|
return filters;
|
|
15608
15623
|
};
|
|
15609
15624
|
var getSchoolOptions = (data) => {
|
|
15610
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
15625
|
+
if (!_optionalChain([data, 'optionalAccess', _474 => _474.schools])) return [];
|
|
15611
15626
|
return data.schools.map((school) => ({
|
|
15612
15627
|
id: school.id,
|
|
15613
15628
|
name: school.name
|
|
15614
15629
|
}));
|
|
15615
15630
|
};
|
|
15616
15631
|
var getSchoolYearOptions = (data) => {
|
|
15617
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
15632
|
+
if (!_optionalChain([data, 'optionalAccess', _475 => _475.schoolYears])) return [];
|
|
15618
15633
|
return data.schoolYears.map((year) => ({
|
|
15619
15634
|
id: year.id,
|
|
15620
15635
|
name: year.name
|
|
15621
15636
|
}));
|
|
15622
15637
|
};
|
|
15623
15638
|
var getClassOptions = (data) => {
|
|
15624
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
15639
|
+
if (!_optionalChain([data, 'optionalAccess', _476 => _476.classes])) return [];
|
|
15625
15640
|
return data.classes.map((cls) => ({
|
|
15626
15641
|
id: cls.id,
|
|
15627
15642
|
name: cls.name
|
|
15628
15643
|
}));
|
|
15629
15644
|
};
|
|
15630
15645
|
var getSubjectOptions3 = (data) => {
|
|
15631
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
15646
|
+
if (!_optionalChain([data, 'optionalAccess', _477 => _477.subjects])) return [];
|
|
15632
15647
|
return data.subjects.map((subject) => ({
|
|
15633
15648
|
id: subject.id,
|
|
15634
15649
|
name: subject.name
|
|
@@ -15722,7 +15737,7 @@ var createTableColumns2 = (mapSubjectNameToEnum2, onDelete, onEdit, currentUserI
|
|
|
15722
15737
|
className: "max-w-[140px]",
|
|
15723
15738
|
render: (value) => {
|
|
15724
15739
|
const subjectName = typeof value === "string" ? value : "";
|
|
15725
|
-
const subjectEnum = _optionalChain([mapSubjectNameToEnum2, 'optionalCall',
|
|
15740
|
+
const subjectEnum = _optionalChain([mapSubjectNameToEnum2, 'optionalCall', _478 => _478(subjectName)]);
|
|
15726
15741
|
if (!subjectEnum) {
|
|
15727
15742
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZK5QTM5Cjs.TruncatedText, { size: "sm", children: subjectName });
|
|
15728
15743
|
}
|
|
@@ -15804,11 +15819,11 @@ var createTableColumns2 = (mapSubjectNameToEnum2, onDelete, onEdit, currentUserI
|
|
|
15804
15819
|
}
|
|
15805
15820
|
const handleDelete = (e) => {
|
|
15806
15821
|
e.stopPropagation();
|
|
15807
|
-
_optionalChain([onDelete, 'optionalCall',
|
|
15822
|
+
_optionalChain([onDelete, 'optionalCall', _479 => _479(row)]);
|
|
15808
15823
|
};
|
|
15809
15824
|
const handleEdit = (e) => {
|
|
15810
15825
|
e.stopPropagation();
|
|
15811
|
-
_optionalChain([onEdit, 'optionalCall',
|
|
15826
|
+
_optionalChain([onEdit, 'optionalCall', _480 => _480(row)]);
|
|
15812
15827
|
};
|
|
15813
15828
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-center gap-2", children: [
|
|
15814
15829
|
onDelete && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15883,7 +15898,7 @@ var RecommendedLessonsHistory = ({
|
|
|
15883
15898
|
(value) => {
|
|
15884
15899
|
const newTab = value;
|
|
15885
15900
|
setActiveTab(newTab);
|
|
15886
|
-
_optionalChain([onTabChange, 'optionalCall',
|
|
15901
|
+
_optionalChain([onTabChange, 'optionalCall', _481 => _481(newTab)]);
|
|
15887
15902
|
},
|
|
15888
15903
|
[onTabChange]
|
|
15889
15904
|
);
|
|
@@ -15999,7 +16014,7 @@ var RecommendedLessonsHistory = ({
|
|
|
15999
16014
|
}
|
|
16000
16015
|
},
|
|
16001
16016
|
title: "Excluir aula recomendada",
|
|
16002
|
-
description: `Tem certeza que deseja excluir a aula "${_nullishCoalesce(_optionalChain([recommendedClassToDelete, 'optionalAccess',
|
|
16017
|
+
description: `Tem certeza que deseja excluir a aula "${_nullishCoalesce(_optionalChain([recommendedClassToDelete, 'optionalAccess', _482 => _482.title]), () => ( ""))}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
|
|
16003
16018
|
submitButtonLabel: "Excluir",
|
|
16004
16019
|
cancelButtonLabel: "Cancelar",
|
|
16005
16020
|
submitAction: "negative",
|
|
@@ -16327,7 +16342,7 @@ var createUseRecommendedLessonDetails = (apiClient) => {
|
|
|
16327
16342
|
const historyItem = validatedHistory.data.recommendedClass.find(
|
|
16328
16343
|
(g) => g.recommendedClass.id === lessonId
|
|
16329
16344
|
);
|
|
16330
|
-
breakdown = _optionalChain([historyItem, 'optionalAccess',
|
|
16345
|
+
breakdown = _optionalChain([historyItem, 'optionalAccess', _483 => _483.breakdown, 'access', _484 => _484[0]]);
|
|
16331
16346
|
}
|
|
16332
16347
|
const lessonData = {
|
|
16333
16348
|
recommendedClass: validatedRecommendedClass.data,
|
|
@@ -16413,14 +16428,14 @@ var buildModelsFiltersFromParams = (params) => {
|
|
|
16413
16428
|
|
|
16414
16429
|
// src/components/ActivitiesHistory/utils/filterOptions.ts
|
|
16415
16430
|
var getSchoolOptions2 = (data) => {
|
|
16416
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
16431
|
+
if (!_optionalChain([data, 'optionalAccess', _485 => _485.schools])) return [];
|
|
16417
16432
|
return data.schools.map((school) => ({
|
|
16418
16433
|
id: school.id,
|
|
16419
16434
|
name: school.name
|
|
16420
16435
|
}));
|
|
16421
16436
|
};
|
|
16422
16437
|
var getSubjectOptions4 = (data) => {
|
|
16423
|
-
if (!_optionalChain([data, 'optionalAccess',
|
|
16438
|
+
if (!_optionalChain([data, 'optionalAccess', _486 => _486.subjects])) return [];
|
|
16424
16439
|
return data.subjects.map((subject) => ({
|
|
16425
16440
|
id: subject.id,
|
|
16426
16441
|
name: subject.name
|
|
@@ -16582,7 +16597,7 @@ var HistoryTab = ({
|
|
|
16582
16597
|
const apiClientAdapter = _react.useMemo.call(void 0,
|
|
16583
16598
|
() => ({
|
|
16584
16599
|
get: async (_url, options) => {
|
|
16585
|
-
const result = await fetchActivitiesHistoryRef.current(_optionalChain([options, 'optionalAccess',
|
|
16600
|
+
const result = await fetchActivitiesHistoryRef.current(_optionalChain([options, 'optionalAccess', _487 => _487.params]));
|
|
16586
16601
|
return { data: result };
|
|
16587
16602
|
},
|
|
16588
16603
|
// Methods not used by this component but required by BaseApiClient
|
|
@@ -16932,13 +16947,13 @@ function BasePageLayout({
|
|
|
16932
16947
|
const { isMobile } = _chunkZHWRUIVEjs.useMobile.call(void 0, );
|
|
16933
16948
|
const tableKey = _react.useMemo.call(void 0, () => {
|
|
16934
16949
|
const totalOptions = Array.isArray(initialFilters) ? initialFilters.flatMap((group) => group.categories).reduce(
|
|
16935
|
-
(sum, cat) => sum + (_nullishCoalesce(_optionalChain([cat, 'access',
|
|
16950
|
+
(sum, cat) => sum + (_nullishCoalesce(_optionalChain([cat, 'access', _488 => _488.itens, 'optionalAccess', _489 => _489.length]), () => ( 0))),
|
|
16936
16951
|
0
|
|
16937
16952
|
) : 0;
|
|
16938
16953
|
return `filters-${totalOptions}`;
|
|
16939
16954
|
}, [initialFilters]);
|
|
16940
16955
|
const enableFilters = _react.useMemo.call(void 0,
|
|
16941
|
-
() => Array.isArray(initialFilters) && initialFilters.flatMap((g) => g.categories).some((c) => (_nullishCoalesce(_optionalChain([c, 'access',
|
|
16956
|
+
() => Array.isArray(initialFilters) && initialFilters.flatMap((g) => g.categories).some((c) => (_nullishCoalesce(_optionalChain([c, 'access', _490 => _490.itens, 'optionalAccess', _491 => _491.length]), () => ( 0))) > 0),
|
|
16942
16957
|
[initialFilters]
|
|
16943
16958
|
);
|
|
16944
16959
|
const handleTabChange = _react.useCallback.call(void 0,
|
|
@@ -17392,7 +17407,7 @@ var STEPPER_STEPS2 = [
|
|
|
17392
17407
|
{ id: "activity", label: "Atividade", state: "pending" },
|
|
17393
17408
|
{ id: "deadline", label: "Prazo", state: "pending" }
|
|
17394
17409
|
];
|
|
17395
|
-
var toSubtype = (value) => Object.values(
|
|
17410
|
+
var toSubtype = (value) => Object.values(_chunkKFF223EVjs.ActivitySubtype).includes(_nullishCoalesce(value, () => ( ""))) ? value : void 0;
|
|
17396
17411
|
var buildEditPayload = (formData) => ({
|
|
17397
17412
|
subtype: formData.subtype,
|
|
17398
17413
|
title: (_nullishCoalesce(formData.title, () => ( ""))).trim(),
|
|
@@ -17415,7 +17430,7 @@ var ActivityStep = ({
|
|
|
17415
17430
|
}) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-6", children: [
|
|
17416
17431
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
17417
17432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", weight: "medium", color: "text-text-700", className: "mb-3", children: "Tipo de atividade*" }),
|
|
17418
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children:
|
|
17433
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-2", children: _chunkKFF223EVjs.ACTIVITY_TYPE_OPTIONS.map((type) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17419
17434
|
_chunkXVBSGC7Vjs.Chips_default,
|
|
17420
17435
|
{
|
|
17421
17436
|
selected: formData.subtype === type.value,
|
|
@@ -17926,7 +17941,7 @@ var UnifiedHistoryPage = ({
|
|
|
17926
17941
|
activeTab: config.activeTab,
|
|
17927
17942
|
pageTitle: config.pageTitle,
|
|
17928
17943
|
headerRightContent: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17929
|
-
|
|
17944
|
+
_chunk3BKXXQXPjs.TypeSelector_default,
|
|
17930
17945
|
{
|
|
17931
17946
|
value: activityCategory,
|
|
17932
17947
|
currentTab: "history",
|
|
@@ -17973,7 +17988,7 @@ var UnifiedHistoryPage = ({
|
|
|
17973
17988
|
}
|
|
17974
17989
|
},
|
|
17975
17990
|
title: "Excluir atividade",
|
|
17976
|
-
description: `Tem certeza que deseja excluir a atividade "${_nullishCoalesce(_optionalChain([activityToDelete, 'optionalAccess',
|
|
17991
|
+
description: `Tem certeza que deseja excluir a atividade "${_nullishCoalesce(_optionalChain([activityToDelete, 'optionalAccess', _492 => _492.title]), () => ( ""))}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
|
|
17977
17992
|
submitButtonLabel: "Excluir",
|
|
17978
17993
|
cancelButtonLabel: "Cancelar",
|
|
17979
17994
|
submitAction: "negative",
|
|
@@ -17985,7 +18000,7 @@ var UnifiedHistoryPage = ({
|
|
|
17985
18000
|
EditActivityModal,
|
|
17986
18001
|
{
|
|
17987
18002
|
isOpen: !!activityToEdit,
|
|
17988
|
-
activityId: _optionalChain([activityToEdit, 'optionalAccess',
|
|
18003
|
+
activityId: _optionalChain([activityToEdit, 'optionalAccess', _493 => _493.id]),
|
|
17989
18004
|
apiClient,
|
|
17990
18005
|
onClose: () => setActivityToEdit(null),
|
|
17991
18006
|
onSaved: () => {
|
|
@@ -18229,7 +18244,7 @@ var useActivityDraftModelPage = ({
|
|
|
18229
18244
|
const handleEdit = _react.useCallback.call(void 0,
|
|
18230
18245
|
(row) => {
|
|
18231
18246
|
navigate(
|
|
18232
|
-
_optionalChain([routes, 'access',
|
|
18247
|
+
_optionalChain([routes, 'access', _494 => _494.editDraft, 'optionalCall', _495 => _495(row.id)]) || _optionalChain([routes, 'access', _496 => _496.editModel, 'optionalCall', _497 => _497(row.id)]) || `${routes.create}?type=${editUrlType}&id=${row.id}`
|
|
18233
18248
|
);
|
|
18234
18249
|
},
|
|
18235
18250
|
[navigate, routes, editUrlType]
|
|
@@ -18279,7 +18294,7 @@ var useActivityDraftModelPage = ({
|
|
|
18279
18294
|
const handleRowClick = _react.useCallback.call(void 0,
|
|
18280
18295
|
(row) => {
|
|
18281
18296
|
navigate(
|
|
18282
|
-
_optionalChain([routes, 'access',
|
|
18297
|
+
_optionalChain([routes, 'access', _498 => _498.editDraft, 'optionalCall', _499 => _499(row.id)]) || _optionalChain([routes, 'access', _500 => _500.editModel, 'optionalCall', _501 => _501(row.id)]) || `${routes.create}?type=${editUrlType}&id=${row.id}`
|
|
18283
18298
|
);
|
|
18284
18299
|
},
|
|
18285
18300
|
[navigate, routes, editUrlType]
|
|
@@ -18327,7 +18342,7 @@ var UnifiedDraftModelPage = ({
|
|
|
18327
18342
|
);
|
|
18328
18343
|
const apiSubjectOptions = _react.useMemo.call(void 0,
|
|
18329
18344
|
() => data.filter(
|
|
18330
|
-
(item) => item.subjectId && _optionalChain([item, 'access',
|
|
18345
|
+
(item) => item.subjectId && _optionalChain([item, 'access', _502 => _502.subject, 'optionalAccess', _503 => _503.name]) && item.subject.name !== "-"
|
|
18331
18346
|
).map((item) => ({
|
|
18332
18347
|
id: item.subjectId,
|
|
18333
18348
|
name: item.subject.name
|
|
@@ -18389,7 +18404,7 @@ var UnifiedDraftModelPage = ({
|
|
|
18389
18404
|
activeTab: config.activeTab,
|
|
18390
18405
|
pageTitle: config.pageTitle,
|
|
18391
18406
|
headerRightContent: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18392
|
-
|
|
18407
|
+
_chunk3BKXXQXPjs.TypeSelector_default,
|
|
18393
18408
|
{
|
|
18394
18409
|
value: activityCategory,
|
|
18395
18410
|
currentTab: config.currentTab,
|
|
@@ -18452,9 +18467,9 @@ function ChatLoading() {
|
|
|
18452
18467
|
var replaceTopicById = (topicId, body) => (prev) => prev.map((t) => t.id === topicId ? { ...t, ...body } : t);
|
|
18453
18468
|
var removeTopicById = (topicId) => (prev) => prev.filter((t) => t.id !== topicId);
|
|
18454
18469
|
var replaceReplyById = (replyId, body) => (prev) => prev.map((r) => r.id === replyId ? { ...r, ...body } : r);
|
|
18455
|
-
var updateSelectedTopic = (topicId, body) => (prev) => _optionalChain([prev, 'optionalAccess',
|
|
18470
|
+
var updateSelectedTopic = (topicId, body) => (prev) => _optionalChain([prev, 'optionalAccess', _504 => _504.id]) === topicId ? { ...prev, ...body } : prev;
|
|
18456
18471
|
var clearSelectedTopicIfMatch = (topicId, clearReplies) => (prev) => {
|
|
18457
|
-
if (_optionalChain([prev, 'optionalAccess',
|
|
18472
|
+
if (_optionalChain([prev, 'optionalAccess', _505 => _505.id]) === topicId) {
|
|
18458
18473
|
clearReplies();
|
|
18459
18474
|
return null;
|
|
18460
18475
|
}
|
|
@@ -18608,7 +18623,7 @@ function formatDateDisplay(isoDate) {
|
|
|
18608
18623
|
function getPeriodSelectionLabel(selection) {
|
|
18609
18624
|
if (selection.type === "fixed") {
|
|
18610
18625
|
const tab = _chunkVZMCTNX7js.PERIOD_TABS.find((t) => t.value === selection.period);
|
|
18611
|
-
return _nullishCoalesce(_optionalChain([tab, 'optionalAccess',
|
|
18626
|
+
return _nullishCoalesce(_optionalChain([tab, 'optionalAccess', _506 => _506.label]), () => ( "1 ano"));
|
|
18612
18627
|
}
|
|
18613
18628
|
if (selection.startDate && selection.endDate) {
|
|
18614
18629
|
return `${formatDateDisplay(selection.startDate)} - ${formatDateDisplay(selection.endDate)}`;
|
|
@@ -18899,13 +18914,13 @@ function SimulatedPerformanceView({
|
|
|
18899
18914
|
const data = aggregatedOverview.data;
|
|
18900
18915
|
if (_chunkVG6CKFHNjs.isStudentsData.call(void 0, data, aggregationType)) {
|
|
18901
18916
|
return {
|
|
18902
|
-
highlightItems: _optionalChain([data, 'access',
|
|
18917
|
+
highlightItems: _optionalChain([data, 'access', _507 => _507.topHighlights, 'optionalAccess', _508 => _508.map, 'call', _509 => _509((s, index) => ({
|
|
18903
18918
|
position: index + 1,
|
|
18904
18919
|
name: s.name,
|
|
18905
18920
|
average: s.average,
|
|
18906
18921
|
userInstitutionId: s.userInstitutionId
|
|
18907
18922
|
}))]) || [],
|
|
18908
|
-
attentionItems: _optionalChain([data, 'access',
|
|
18923
|
+
attentionItems: _optionalChain([data, 'access', _510 => _510.topDifficulties, 'optionalAccess', _511 => _511.map, 'call', _512 => _512((s, index) => ({
|
|
18909
18924
|
position: index + 1,
|
|
18910
18925
|
name: s.name,
|
|
18911
18926
|
average: s.average,
|
|
@@ -18917,14 +18932,14 @@ function SimulatedPerformanceView({
|
|
|
18917
18932
|
}
|
|
18918
18933
|
if (_chunkVG6CKFHNjs.isClassesData.call(void 0, data, aggregationType)) {
|
|
18919
18934
|
return {
|
|
18920
|
-
highlightItems: _optionalChain([data, 'access',
|
|
18935
|
+
highlightItems: _optionalChain([data, 'access', _513 => _513.topHighlights, 'optionalAccess', _514 => _514.map, 'call', _515 => _515((c, index) => ({
|
|
18921
18936
|
position: index + 1,
|
|
18922
18937
|
name: `${c.className} - ${c.schoolName}`,
|
|
18923
18938
|
average: c.average,
|
|
18924
18939
|
subtitle: `${c.studentCount} estudantes`,
|
|
18925
18940
|
userInstitutionId: c.classId
|
|
18926
18941
|
}))]) || [],
|
|
18927
|
-
attentionItems: _optionalChain([data, 'access',
|
|
18942
|
+
attentionItems: _optionalChain([data, 'access', _516 => _516.topDifficulties, 'optionalAccess', _517 => _517.map, 'call', _518 => _518((c, index) => ({
|
|
18928
18943
|
position: index + 1,
|
|
18929
18944
|
name: `${c.className} - ${c.schoolName}`,
|
|
18930
18945
|
average: c.average,
|
|
@@ -18937,13 +18952,13 @@ function SimulatedPerformanceView({
|
|
|
18937
18952
|
}
|
|
18938
18953
|
if (_chunkVG6CKFHNjs.isMunicipalitiesData.call(void 0, data, aggregationType)) {
|
|
18939
18954
|
return {
|
|
18940
|
-
highlightItems: _optionalChain([data, 'access',
|
|
18955
|
+
highlightItems: _optionalChain([data, 'access', _519 => _519.topHighlights, 'optionalAccess', _520 => _520.map, 'call', _521 => _521((m, index) => ({
|
|
18941
18956
|
position: index + 1,
|
|
18942
18957
|
name: `${m.municipality} - ${m.state}`,
|
|
18943
18958
|
average: m.average,
|
|
18944
18959
|
subtitle: `${m.schoolCount} escolas, ${m.studentCount} estudantes`
|
|
18945
18960
|
}))]) || [],
|
|
18946
|
-
attentionItems: _optionalChain([data, 'access',
|
|
18961
|
+
attentionItems: _optionalChain([data, 'access', _522 => _522.topDifficulties, 'optionalAccess', _523 => _523.map, 'call', _524 => _524((m, index) => ({
|
|
18947
18962
|
position: index + 1,
|
|
18948
18963
|
name: `${m.municipality} - ${m.state}`,
|
|
18949
18964
|
average: m.average,
|
|
@@ -18982,11 +18997,11 @@ function SimulatedPerformanceView({
|
|
|
18982
18997
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18983
18998
|
_chunkVG6CKFHNjs.AreaKnowledgeSelector,
|
|
18984
18999
|
{
|
|
18985
|
-
areas: _optionalChain([generalOverview, 'access',
|
|
19000
|
+
areas: _optionalChain([generalOverview, 'access', _525 => _525.data, 'optionalAccess', _526 => _526.areas]) || [],
|
|
18986
19001
|
selectedAreaId: selectedAreaKnowledgeId,
|
|
18987
19002
|
onAreaChange: handleAreaKnowledgeChange,
|
|
18988
19003
|
loading: generalOverview.loading,
|
|
18989
|
-
includeEssay: !!_optionalChain([generalOverview, 'access',
|
|
19004
|
+
includeEssay: !!_optionalChain([generalOverview, 'access', _527 => _527.data, 'optionalAccess', _528 => _528.essay])
|
|
18990
19005
|
}
|
|
18991
19006
|
),
|
|
18992
19007
|
selectedAreaKnowledgeId !== _chunkVG6CKFHNjs.ESSAY_AREA_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19037,8 +19052,8 @@ function SimulatedPerformanceView({
|
|
|
19037
19052
|
!studentsOverview.error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19038
19053
|
PerformanceDistributionChart,
|
|
19039
19054
|
{
|
|
19040
|
-
counters: _optionalChain([studentsOverview, 'access',
|
|
19041
|
-
totalStudents: _optionalChain([studentsOverview, 'access',
|
|
19055
|
+
counters: _optionalChain([studentsOverview, 'access', _529 => _529.data, 'optionalAccess', _530 => _530.counters]),
|
|
19056
|
+
totalStudents: _optionalChain([studentsOverview, 'access', _531 => _531.data, 'optionalAccess', _532 => _532.totalStudents]),
|
|
19042
19057
|
loading: studentsOverview.loading
|
|
19043
19058
|
}
|
|
19044
19059
|
),
|
|
@@ -19061,7 +19076,7 @@ function SimulatedPerformanceView({
|
|
|
19061
19076
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19062
19077
|
TableProvider_default,
|
|
19063
19078
|
{
|
|
19064
|
-
data: _optionalChain([studentsOverview, 'access',
|
|
19079
|
+
data: _optionalChain([studentsOverview, 'access', _533 => _533.data, 'optionalAccess', _534 => _534.students, 'optionalAccess', _535 => _535.data]) || [],
|
|
19065
19080
|
headers: studentsTableColumns,
|
|
19066
19081
|
variant: "borderless",
|
|
19067
19082
|
loading: studentsOverview.loading,
|
|
@@ -19075,8 +19090,8 @@ function SimulatedPerformanceView({
|
|
|
19075
19090
|
paginationConfig: {
|
|
19076
19091
|
itemLabel: "estudantes",
|
|
19077
19092
|
itemsPerPageOptions: [10, 20, 50, 100],
|
|
19078
|
-
defaultItemsPerPage: _optionalChain([studentsOverview, 'access',
|
|
19079
|
-
totalItems: _optionalChain([studentsOverview, 'access',
|
|
19093
|
+
defaultItemsPerPage: _optionalChain([studentsOverview, 'access', _536 => _536.data, 'optionalAccess', _537 => _537.students, 'optionalAccess', _538 => _538.limit]) || 10,
|
|
19094
|
+
totalItems: _optionalChain([studentsOverview, 'access', _539 => _539.data, 'optionalAccess', _540 => _540.students, 'optionalAccess', _541 => _541.total]) || 0
|
|
19080
19095
|
},
|
|
19081
19096
|
searchPlaceholder: "Buscar estudante",
|
|
19082
19097
|
noSearchResultState: noSearchImage ? { image: noSearchImage } : void 0,
|
|
@@ -19114,7 +19129,7 @@ function SimulatedPerformanceView({
|
|
|
19114
19129
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19115
19130
|
TableProvider_default,
|
|
19116
19131
|
{
|
|
19117
|
-
data: _optionalChain([contentsPerformance, 'access',
|
|
19132
|
+
data: _optionalChain([contentsPerformance, 'access', _542 => _542.data, 'optionalAccess', _543 => _543.data]) || [],
|
|
19118
19133
|
headers: contentsTableColumns,
|
|
19119
19134
|
variant: "borderless",
|
|
19120
19135
|
loading: contentsPerformance.loading,
|
|
@@ -19128,8 +19143,8 @@ function SimulatedPerformanceView({
|
|
|
19128
19143
|
paginationConfig: {
|
|
19129
19144
|
itemLabel: "habilidades",
|
|
19130
19145
|
itemsPerPageOptions: [10, 20, 50, 100],
|
|
19131
|
-
defaultItemsPerPage: _optionalChain([contentsPerformance, 'access',
|
|
19132
|
-
totalItems: _optionalChain([contentsPerformance, 'access',
|
|
19146
|
+
defaultItemsPerPage: _optionalChain([contentsPerformance, 'access', _544 => _544.data, 'optionalAccess', _545 => _545.limit]) || 10,
|
|
19147
|
+
totalItems: _optionalChain([contentsPerformance, 'access', _546 => _546.data, 'optionalAccess', _547 => _547.total]) || 0
|
|
19133
19148
|
},
|
|
19134
19149
|
searchPlaceholder: "Buscar habilidade",
|
|
19135
19150
|
noSearchResultState: noSearchImage ? { image: noSearchImage } : void 0,
|
|
@@ -19154,8 +19169,8 @@ function SimulatedPerformanceView({
|
|
|
19154
19169
|
api,
|
|
19155
19170
|
isOpen: studentModal.isOpen,
|
|
19156
19171
|
onClose: studentModal.close,
|
|
19157
|
-
userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access',
|
|
19158
|
-
studentName: _optionalChain([studentModal, 'access',
|
|
19172
|
+
userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access', _548 => _548.student, 'optionalAccess', _549 => _549.userInstitutionId]), () => ( null)),
|
|
19173
|
+
studentName: _optionalChain([studentModal, 'access', _550 => _550.student, 'optionalAccess', _551 => _551.name]),
|
|
19159
19174
|
period,
|
|
19160
19175
|
schoolIds: filters.schoolIds,
|
|
19161
19176
|
schoolYearIds: filters.schoolYearIds,
|
|
@@ -19168,8 +19183,8 @@ function SimulatedPerformanceView({
|
|
|
19168
19183
|
isOpen: studentModal.isOpen,
|
|
19169
19184
|
onClose: studentModal.close,
|
|
19170
19185
|
simulationType: "enem-1",
|
|
19171
|
-
userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access',
|
|
19172
|
-
studentName: _optionalChain([studentModal, 'access',
|
|
19186
|
+
userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access', _552 => _552.student, 'optionalAccess', _553 => _553.userInstitutionId]), () => ( null)),
|
|
19187
|
+
studentName: _optionalChain([studentModal, 'access', _554 => _554.student, 'optionalAccess', _555 => _555.name]),
|
|
19173
19188
|
period
|
|
19174
19189
|
}
|
|
19175
19190
|
),
|
|
@@ -19184,8 +19199,8 @@ function SimulatedPerformanceView({
|
|
|
19184
19199
|
subtypes: [],
|
|
19185
19200
|
statuses: ["CONCLUIDA"]
|
|
19186
19201
|
},
|
|
19187
|
-
contentId: _nullishCoalesce(_optionalChain([contentModal, 'access',
|
|
19188
|
-
contentName: _optionalChain([contentModal, 'access',
|
|
19202
|
+
contentId: _nullishCoalesce(_optionalChain([contentModal, 'access', _556 => _556.content, 'optionalAccess', _557 => _557.contentId]), () => ( null)),
|
|
19203
|
+
contentName: _optionalChain([contentModal, 'access', _558 => _558.content, 'optionalAccess', _559 => _559.contentName]),
|
|
19189
19204
|
period,
|
|
19190
19205
|
filters
|
|
19191
19206
|
}
|
|
@@ -19296,7 +19311,7 @@ function NoteRow({
|
|
|
19296
19311
|
const [saving, setSaving] = _react.useState.call(void 0, false);
|
|
19297
19312
|
const [error, setError] = _react.useState.call(void 0, null);
|
|
19298
19313
|
const startEditing = () => {
|
|
19299
|
-
setDraft(_nullishCoalesce(_optionalChain([note, 'optionalAccess',
|
|
19314
|
+
setDraft(_nullishCoalesce(_optionalChain([note, 'optionalAccess', _560 => _560.note]), () => ( "")));
|
|
19300
19315
|
setError(null);
|
|
19301
19316
|
setEditing(true);
|
|
19302
19317
|
};
|
|
@@ -19354,9 +19369,9 @@ function NoteRow({
|
|
|
19354
19369
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3 rounded-xl border border-border-200 p-3", children: [
|
|
19355
19370
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
19356
19371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Observa\xE7\xE3o" }),
|
|
19357
|
-
_optionalChain([note, 'optionalAccess',
|
|
19372
|
+
_optionalChain([note, 'optionalAccess', _561 => _561.note]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "truncate text-text-700", children: note.note })
|
|
19358
19373
|
] }),
|
|
19359
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN2HPVVHjs.Button_default, { variant: "solid", size: "small", onClick: startEditing, children: _optionalChain([note, 'optionalAccess',
|
|
19374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXN2HPVVHjs.Button_default, { variant: "solid", size: "small", onClick: startEditing, children: _optionalChain([note, 'optionalAccess', _562 => _562.note]) ? "Editar" : "Incluir" })
|
|
19360
19375
|
] });
|
|
19361
19376
|
}
|
|
19362
19377
|
function SimulationItem({
|
|
@@ -19374,12 +19389,12 @@ function SimulationItem({
|
|
|
19374
19389
|
value: simulation.id,
|
|
19375
19390
|
expanded,
|
|
19376
19391
|
onToggleExpanded: onToggle,
|
|
19377
|
-
trigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { weight: "bold", className: "text-text-950", children: _optionalChain([simulation, 'access',
|
|
19392
|
+
trigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { weight: "bold", className: "text-text-950", children: _optionalChain([simulation, 'access', _563 => _563.title, 'optionalAccess', _564 => _564.trim, 'call', _565 => _565()]) ? simulation.title.trim() : `Simulado ${index + 1}` }) }),
|
|
19378
19393
|
contentClassName: "px-3 pb-4",
|
|
19379
19394
|
children: [
|
|
19380
|
-
_optionalChain([detail, 'optionalAccess',
|
|
19381
|
-
_optionalChain([detail, 'optionalAccess',
|
|
19382
|
-
_optionalChain([detail, 'optionalAccess',
|
|
19395
|
+
_optionalChain([detail, 'optionalAccess', _566 => _566.loading]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNEDUOGWUjs.SkeletonCard, { className: "h-40" }),
|
|
19396
|
+
_optionalChain([detail, 'optionalAccess', _567 => _567.error]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "text-error-600", children: detail.error }),
|
|
19397
|
+
_optionalChain([detail, 'optionalAccess', _568 => _568.data]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
|
|
19383
19398
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-3", children: [
|
|
19384
19399
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19385
19400
|
_chunkXOJ3ERALjs.StatCard,
|
|
@@ -19412,8 +19427,8 @@ function SimulationItem({
|
|
|
19412
19427
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19413
19428
|
NoteRow,
|
|
19414
19429
|
{
|
|
19415
|
-
note: _nullishCoalesce(_optionalChain([note, 'optionalAccess',
|
|
19416
|
-
loading: _nullishCoalesce(_optionalChain([note, 'optionalAccess',
|
|
19430
|
+
note: _nullishCoalesce(_optionalChain([note, 'optionalAccess', _569 => _569.data]), () => ( null)),
|
|
19431
|
+
loading: _nullishCoalesce(_optionalChain([note, 'optionalAccess', _570 => _570.loading]), () => ( false)),
|
|
19417
19432
|
onSave: onSaveNote
|
|
19418
19433
|
}
|
|
19419
19434
|
),
|
|
@@ -19462,7 +19477,7 @@ function SimulationsDetailModal({
|
|
|
19462
19477
|
const requestEpochRef = _react.useRef.call(void 0, 0);
|
|
19463
19478
|
_react.useEffect.call(void 0, () => {
|
|
19464
19479
|
requestEpochRef.current += 1;
|
|
19465
|
-
}, [isOpen, _optionalChain([student, 'optionalAccess',
|
|
19480
|
+
}, [isOpen, _optionalChain([student, 'optionalAccess', _571 => _571.userInstitutionId])]);
|
|
19466
19481
|
const isStaleResponse = _react.useCallback.call(void 0,
|
|
19467
19482
|
(epoch) => !mountedRef.current || requestEpochRef.current !== epoch,
|
|
19468
19483
|
[]
|
|
@@ -19574,13 +19589,13 @@ function SimulationsDetailModal({
|
|
|
19574
19589
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { weight: "bold", className: "text-text-950", children: student.name })
|
|
19575
19590
|
] }),
|
|
19576
19591
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "text-info-700", children: [
|
|
19577
|
-
_nullishCoalesce(_optionalChain([list, 'optionalAccess',
|
|
19592
|
+
_nullishCoalesce(_optionalChain([list, 'optionalAccess', _572 => _572.student, 'access', _573 => _573.simulationsAnswered]), () => ( 0)),
|
|
19578
19593
|
" simulados respondidos"
|
|
19579
19594
|
] })
|
|
19580
19595
|
] }),
|
|
19581
19596
|
listLoading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNEDUOGWUjs.SkeletonCard, { className: "h-20" }),
|
|
19582
19597
|
listError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "text-error-600", children: listError }),
|
|
19583
|
-
_optionalChain([list, 'optionalAccess',
|
|
19598
|
+
_optionalChain([list, 'optionalAccess', _574 => _574.simulations, 'access', _575 => _575.data, 'access', _576 => _576.length]) === 0 && !listLoading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "text-text-600", children: "Este estudante ainda n\xE3o respondeu nenhum simulado." }),
|
|
19584
19599
|
list && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col gap-3", children: list.simulations.data.map((simulation, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19585
19600
|
SimulationItem,
|
|
19586
19601
|
{
|
|
@@ -19632,8 +19647,8 @@ function SimulationsPage({ api, noSearchImage }) {
|
|
|
19632
19647
|
fetchStudents({
|
|
19633
19648
|
page: params.page,
|
|
19634
19649
|
limit: params.limit,
|
|
19635
|
-
search: _optionalChain([params, 'access',
|
|
19636
|
-
classIds: _optionalChain([classIds, 'optionalAccess',
|
|
19650
|
+
search: _optionalChain([params, 'access', _577 => _577.search, 'optionalAccess', _578 => _578.trim, 'call', _579 => _579()]) || void 0,
|
|
19651
|
+
classIds: _optionalChain([classIds, 'optionalAccess', _580 => _580.length]) ? classIds : void 0
|
|
19637
19652
|
}).then((result) => {
|
|
19638
19653
|
setStudents(result.data);
|
|
19639
19654
|
setTotal(result.total);
|
|
@@ -20261,10 +20276,10 @@ var ExamDetailsPage = ({
|
|
|
20261
20276
|
}
|
|
20262
20277
|
}, []);
|
|
20263
20278
|
const studentsTableData = _react.useMemo.call(void 0,
|
|
20264
|
-
() => _nullishCoalesce(_optionalChain([examData, 'optionalAccess',
|
|
20279
|
+
() => _nullishCoalesce(_optionalChain([examData, 'optionalAccess', _581 => _581.students, 'access', _582 => _582.map, 'call', _583 => _583((student) => ({
|
|
20265
20280
|
...student
|
|
20266
20281
|
}))]), () => ( [])),
|
|
20267
|
-
[_optionalChain([examData, 'optionalAccess',
|
|
20282
|
+
[_optionalChain([examData, 'optionalAccess', _584 => _584.students])]
|
|
20268
20283
|
);
|
|
20269
20284
|
const handleDownloadExam = _react.useCallback.call(void 0, async () => {
|
|
20270
20285
|
if (!examId || isLoadingExamPdf) return;
|
|
@@ -20320,12 +20335,12 @@ var ExamDetailsPage = ({
|
|
|
20320
20335
|
{ params: { studentFrontendUrl, institutionId } }
|
|
20321
20336
|
);
|
|
20322
20337
|
const { student, activity, qrCodeUrl, schoolClass } = response.data.data;
|
|
20323
|
-
const [school, className] = _optionalChain([schoolClass, 'optionalAccess',
|
|
20338
|
+
const [school, className] = _optionalChain([schoolClass, 'optionalAccess', _585 => _585.split, 'call', _586 => _586(" - ")]) || ["", ""];
|
|
20324
20339
|
setAnswerSheetPreviewData({
|
|
20325
20340
|
studentName: student.name,
|
|
20326
20341
|
qrCodeUrl,
|
|
20327
20342
|
totalQuestions: activity.totalQuestions,
|
|
20328
|
-
examTitle: _optionalChain([examData, 'optionalAccess',
|
|
20343
|
+
examTitle: _optionalChain([examData, 'optionalAccess', _587 => _587.title]),
|
|
20329
20344
|
schoolName: school || void 0,
|
|
20330
20345
|
className: className || void 0
|
|
20331
20346
|
});
|
|
@@ -20336,7 +20351,7 @@ var ExamDetailsPage = ({
|
|
|
20336
20351
|
setLoadingStudentId(null);
|
|
20337
20352
|
}
|
|
20338
20353
|
},
|
|
20339
|
-
[examId, institutionId, apiClient, _optionalChain([examData, 'optionalAccess',
|
|
20354
|
+
[examId, institutionId, apiClient, _optionalChain([examData, 'optionalAccess', _588 => _588.title])]
|
|
20340
20355
|
);
|
|
20341
20356
|
const handleViewAnswers = _react.useCallback.call(void 0,
|
|
20342
20357
|
async (studentId) => {
|
|
@@ -20383,7 +20398,7 @@ var ExamDetailsPage = ({
|
|
|
20383
20398
|
);
|
|
20384
20399
|
const { exam, students } = response.data.data;
|
|
20385
20400
|
const answerSheets = students.map((s) => {
|
|
20386
|
-
const [school, className] = _optionalChain([s, 'access',
|
|
20401
|
+
const [school, className] = _optionalChain([s, 'access', _589 => _589.schoolClass, 'optionalAccess', _590 => _590.split, 'call', _591 => _591(" - ")]) || ["", ""];
|
|
20387
20402
|
return {
|
|
20388
20403
|
studentName: s.student.name,
|
|
20389
20404
|
qrCodeUrl: s.qrCodeUrl,
|
|
@@ -20509,7 +20524,7 @@ var CheckboxGroup = ({
|
|
|
20509
20524
|
setSearchQueries((prev) => ({ ...prev, [categoryKey]: value }));
|
|
20510
20525
|
};
|
|
20511
20526
|
const filterGroupsBySearch = (categoryKey, groups) => {
|
|
20512
|
-
const query = _optionalChain([searchQueries, 'access',
|
|
20527
|
+
const query = _optionalChain([searchQueries, 'access', _592 => _592[categoryKey], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594(), 'access', _595 => _595.toLowerCase, 'call', _596 => _596()]);
|
|
20513
20528
|
if (!query) return groups;
|
|
20514
20529
|
return groups.map((group) => ({
|
|
20515
20530
|
...group,
|
|
@@ -20568,7 +20583,7 @@ var CheckboxGroup = ({
|
|
|
20568
20583
|
const isCheckBoxIsSelected = (categoryKey, itemId) => {
|
|
20569
20584
|
const category = categories.find((c) => c.key === categoryKey);
|
|
20570
20585
|
if (!category) return false;
|
|
20571
|
-
return _optionalChain([category, 'access',
|
|
20586
|
+
return _optionalChain([category, 'access', _597 => _597.selectedIds, 'optionalAccess', _598 => _598.includes, 'call', _599 => _599(itemId)]) || false;
|
|
20572
20587
|
};
|
|
20573
20588
|
const isMinimalOneCheckBoxIsSelected = (categoryKey) => {
|
|
20574
20589
|
const category = categories.find((c) => c.key === categoryKey);
|
|
@@ -20577,7 +20592,7 @@ var CheckboxGroup = ({
|
|
|
20577
20592
|
const filteredItems = formattedItems.flatMap((group) => group.itens || []);
|
|
20578
20593
|
const filteredItemIds = filteredItems.map((item) => item.id);
|
|
20579
20594
|
return filteredItemIds.some(
|
|
20580
|
-
(itemId) => _optionalChain([category, 'access',
|
|
20595
|
+
(itemId) => _optionalChain([category, 'access', _600 => _600.selectedIds, 'optionalAccess', _601 => _601.includes, 'call', _602 => _602(itemId)])
|
|
20581
20596
|
);
|
|
20582
20597
|
};
|
|
20583
20598
|
const areAllFilteredItemsSelected = (categoryKey) => {
|
|
@@ -20588,7 +20603,7 @@ var CheckboxGroup = ({
|
|
|
20588
20603
|
if (filteredItems.length === 0) return false;
|
|
20589
20604
|
const filteredItemIds = filteredItems.map((item) => item.id);
|
|
20590
20605
|
return filteredItemIds.every(
|
|
20591
|
-
(itemId) => _optionalChain([category, 'access',
|
|
20606
|
+
(itemId) => _optionalChain([category, 'access', _603 => _603.selectedIds, 'optionalAccess', _604 => _604.includes, 'call', _605 => _605(itemId)])
|
|
20592
20607
|
);
|
|
20593
20608
|
};
|
|
20594
20609
|
const createCombinations = (acc, currentArray) => {
|
|
@@ -20606,7 +20621,7 @@ var CheckboxGroup = ({
|
|
|
20606
20621
|
const getSelectedIdsForFilters = (filters) => {
|
|
20607
20622
|
return filters.map((f) => {
|
|
20608
20623
|
const parentCat = categories.find((c) => c.key === f.key);
|
|
20609
|
-
if (!_optionalChain([parentCat, 'optionalAccess',
|
|
20624
|
+
if (!_optionalChain([parentCat, 'optionalAccess', _606 => _606.selectedIds, 'optionalAccess', _607 => _607.length])) {
|
|
20610
20625
|
return [];
|
|
20611
20626
|
}
|
|
20612
20627
|
return parentCat.selectedIds;
|
|
@@ -20614,22 +20629,22 @@ var CheckboxGroup = ({
|
|
|
20614
20629
|
};
|
|
20615
20630
|
const generateSingleFilterLabel = (filter, comboId) => {
|
|
20616
20631
|
const cat = categories.find((c) => c.key === filter.key);
|
|
20617
|
-
return _optionalChain([cat, 'optionalAccess',
|
|
20632
|
+
return _optionalChain([cat, 'optionalAccess', _608 => _608.itens, 'optionalAccess', _609 => _609.find, 'call', _610 => _610((i) => i.id === comboId), 'optionalAccess', _611 => _611.name]) || comboId;
|
|
20618
20633
|
};
|
|
20619
20634
|
const generateMultipleFiltersLabel = (filters, comboIds) => {
|
|
20620
20635
|
const firstCat = categories.find((c) => c.key === filters[0].key);
|
|
20621
|
-
const firstVal = _optionalChain([firstCat, 'optionalAccess',
|
|
20636
|
+
const firstVal = _optionalChain([firstCat, 'optionalAccess', _612 => _612.itens, 'optionalAccess', _613 => _613.find, 'call', _614 => _614((i) => i.id === comboIds[0]), 'optionalAccess', _615 => _615.name]) || comboIds[0];
|
|
20622
20637
|
const labelParts = [firstVal];
|
|
20623
20638
|
for (let idx = 1; idx < filters.length; idx++) {
|
|
20624
20639
|
const f = filters[idx];
|
|
20625
20640
|
const cat = categories.find((c) => c.key === f.key);
|
|
20626
|
-
const val = _optionalChain([cat, 'optionalAccess',
|
|
20641
|
+
const val = _optionalChain([cat, 'optionalAccess', _616 => _616.itens, 'optionalAccess', _617 => _617.find, 'call', _618 => _618((i) => i.id === comboIds[idx]), 'optionalAccess', _619 => _619.name]) || comboIds[idx];
|
|
20627
20642
|
labelParts.push(`(${val})`);
|
|
20628
20643
|
}
|
|
20629
20644
|
return labelParts.join(" ");
|
|
20630
20645
|
};
|
|
20631
20646
|
const processCombination = (comboIds, filters, category, groupedMap) => {
|
|
20632
|
-
const filteredItems = (_optionalChain([category, 'optionalAccess',
|
|
20647
|
+
const filteredItems = (_optionalChain([category, 'optionalAccess', _620 => _620.itens]) || []).filter(
|
|
20633
20648
|
(item) => filters.every((f, idx) => item[f.internalField] === comboIds[idx])
|
|
20634
20649
|
);
|
|
20635
20650
|
if (filteredItems.length === 0) return;
|
|
@@ -20647,19 +20662,19 @@ var CheckboxGroup = ({
|
|
|
20647
20662
|
};
|
|
20648
20663
|
const calculateFormattedItems = (categoryKey) => {
|
|
20649
20664
|
const category = categories.find((c) => c.key === categoryKey);
|
|
20650
|
-
if (!_optionalChain([category, 'optionalAccess',
|
|
20651
|
-
return [{ itens: _optionalChain([category, 'optionalAccess',
|
|
20665
|
+
if (!_optionalChain([category, 'optionalAccess', _621 => _621.dependsOn]) || category.dependsOn.length === 0) {
|
|
20666
|
+
return [{ itens: _optionalChain([category, 'optionalAccess', _622 => _622.itens]) || [] }];
|
|
20652
20667
|
}
|
|
20653
20668
|
const isEnabled = category.dependsOn.every((depKey) => {
|
|
20654
20669
|
const depCat = categories.find((c) => c.key === depKey);
|
|
20655
|
-
return _optionalChain([depCat, 'optionalAccess',
|
|
20670
|
+
return _optionalChain([depCat, 'optionalAccess', _623 => _623.selectedIds]) && depCat.selectedIds.length > 0;
|
|
20656
20671
|
});
|
|
20657
20672
|
if (!isEnabled) {
|
|
20658
20673
|
return [{ itens: [] }];
|
|
20659
20674
|
}
|
|
20660
20675
|
const filters = category.filteredBy || [];
|
|
20661
20676
|
if (filters.length === 0) {
|
|
20662
|
-
return [{ itens: _optionalChain([category, 'optionalAccess',
|
|
20677
|
+
return [{ itens: _optionalChain([category, 'optionalAccess', _624 => _624.itens]) || [] }];
|
|
20663
20678
|
}
|
|
20664
20679
|
const selectedIdsArr = getSelectedIdsForFilters(filters);
|
|
20665
20680
|
if (selectedIdsArr.some((arr) => arr.length === 0)) {
|
|
@@ -20689,7 +20704,7 @@ var CheckboxGroup = ({
|
|
|
20689
20704
|
const getDisplayItems = (categoryKey) => {
|
|
20690
20705
|
const formattedItems = getFormattedItems(categoryKey);
|
|
20691
20706
|
const category = categories.find((c) => c.key === categoryKey);
|
|
20692
|
-
return _optionalChain([category, 'optionalAccess',
|
|
20707
|
+
return _optionalChain([category, 'optionalAccess', _625 => _625.searchable]) ? filterGroupsBySearch(categoryKey, formattedItems) : formattedItems;
|
|
20693
20708
|
};
|
|
20694
20709
|
const getBadgeText2 = (category) => {
|
|
20695
20710
|
const formattedItems = getDisplayItems(category.key);
|
|
@@ -20709,16 +20724,16 @@ var CheckboxGroup = ({
|
|
|
20709
20724
|
}
|
|
20710
20725
|
};
|
|
20711
20726
|
const getDependentCategories = (categoryKey) => {
|
|
20712
|
-
return categories.filter((cat) => _optionalChain([cat, 'access',
|
|
20727
|
+
return categories.filter((cat) => _optionalChain([cat, 'access', _626 => _626.dependsOn, 'optionalAccess', _627 => _627.includes, 'call', _628 => _628(categoryKey)])).map((cat) => cat.key);
|
|
20713
20728
|
};
|
|
20714
20729
|
const findItemsToRemove = (depCategory, relevantFilter, deselectedItemId) => {
|
|
20715
|
-
return _optionalChain([depCategory, 'access',
|
|
20730
|
+
return _optionalChain([depCategory, 'access', _629 => _629.itens, 'optionalAccess', _630 => _630.filter, 'call', _631 => _631(
|
|
20716
20731
|
(item) => item[relevantFilter.internalField] === deselectedItemId
|
|
20717
|
-
), 'access',
|
|
20732
|
+
), 'access', _632 => _632.map, 'call', _633 => _633((item) => item.id)]) || [];
|
|
20718
20733
|
};
|
|
20719
20734
|
const processDependentCategory = (depCategoryKey, categoryKey, deselectedItemId, itemsToDeselect) => {
|
|
20720
20735
|
const depCategory = categories.find((c) => c.key === depCategoryKey);
|
|
20721
|
-
if (!_optionalChain([depCategory, 'optionalAccess',
|
|
20736
|
+
if (!_optionalChain([depCategory, 'optionalAccess', _634 => _634.filteredBy])) return;
|
|
20722
20737
|
const relevantFilter = depCategory.filteredBy.find(
|
|
20723
20738
|
(f) => f.key === categoryKey
|
|
20724
20739
|
);
|
|
@@ -20733,7 +20748,7 @@ var CheckboxGroup = ({
|
|
|
20733
20748
|
}
|
|
20734
20749
|
};
|
|
20735
20750
|
const getItemsToDeselect = (categoryKey, deselectedItemId) => {
|
|
20736
|
-
const deselectedItem = _optionalChain([categories, 'access',
|
|
20751
|
+
const deselectedItem = _optionalChain([categories, 'access', _635 => _635.find, 'call', _636 => _636((c) => c.key === categoryKey), 'optionalAccess', _637 => _637.itens, 'optionalAccess', _638 => _638.find, 'call', _639 => _639((item) => item.id === deselectedItemId)]);
|
|
20737
20752
|
if (!deselectedItem) return {};
|
|
20738
20753
|
const itemsToDeselect = {};
|
|
20739
20754
|
const dependentCategories = getDependentCategories(categoryKey);
|
|
@@ -20748,7 +20763,7 @@ var CheckboxGroup = ({
|
|
|
20748
20763
|
return itemsToDeselect;
|
|
20749
20764
|
};
|
|
20750
20765
|
const updateCategorySelectedIds = (updatedCategories, depCategoryIndex, depCategory, itemIds) => {
|
|
20751
|
-
const newSelectedIds = _optionalChain([depCategory, 'access',
|
|
20766
|
+
const newSelectedIds = _optionalChain([depCategory, 'access', _640 => _640.selectedIds, 'optionalAccess', _641 => _641.filter, 'call', _642 => _642((id) => !itemIds.includes(id))]) || [];
|
|
20752
20767
|
updatedCategories[depCategoryIndex] = {
|
|
20753
20768
|
...depCategory,
|
|
20754
20769
|
selectedIds: newSelectedIds
|
|
@@ -20793,13 +20808,13 @@ var CheckboxGroup = ({
|
|
|
20793
20808
|
const filteredItems = formattedItems.flatMap((group) => group.itens || []);
|
|
20794
20809
|
const filteredItemIds = filteredItems.map((item) => item.id);
|
|
20795
20810
|
const selectedFilteredCount = filteredItemIds.filter(
|
|
20796
|
-
(itemId) => _optionalChain([category, 'access',
|
|
20811
|
+
(itemId) => _optionalChain([category, 'access', _643 => _643.selectedIds, 'optionalAccess', _644 => _644.includes, 'call', _645 => _645(itemId)])
|
|
20797
20812
|
).length;
|
|
20798
20813
|
const allFilteredSelected = selectedFilteredCount === filteredItemIds.length;
|
|
20799
|
-
const newSelection = allFilteredSelected ? _optionalChain([category, 'access',
|
|
20814
|
+
const newSelection = allFilteredSelected ? _optionalChain([category, 'access', _646 => _646.selectedIds, 'optionalAccess', _647 => _647.filter, 'call', _648 => _648((id) => !filteredItemIds.includes(id))]) || [] : [
|
|
20800
20815
|
...category.selectedIds || [],
|
|
20801
20816
|
...filteredItemIds.filter(
|
|
20802
|
-
(id) => !_optionalChain([category, 'access',
|
|
20817
|
+
(id) => !_optionalChain([category, 'access', _649 => _649.selectedIds, 'optionalAccess', _650 => _650.includes, 'call', _651 => _651(id)])
|
|
20803
20818
|
)
|
|
20804
20819
|
];
|
|
20805
20820
|
let updatedCategories = categories.map(
|
|
@@ -20819,8 +20834,8 @@ var CheckboxGroup = ({
|
|
|
20819
20834
|
const toggleItem = (categoryKey, itemId) => {
|
|
20820
20835
|
const category = categories.find((c) => c.key === categoryKey);
|
|
20821
20836
|
if (!category) return;
|
|
20822
|
-
const isCurrentlySelected = _optionalChain([category, 'access',
|
|
20823
|
-
const newSelection = isCurrentlySelected ? _optionalChain([category, 'access',
|
|
20837
|
+
const isCurrentlySelected = _optionalChain([category, 'access', _652 => _652.selectedIds, 'optionalAccess', _653 => _653.includes, 'call', _654 => _654(itemId)]);
|
|
20838
|
+
const newSelection = isCurrentlySelected ? _optionalChain([category, 'access', _655 => _655.selectedIds, 'optionalAccess', _656 => _656.filter, 'call', _657 => _657((id) => id !== itemId)]) : [...category.selectedIds || [], itemId];
|
|
20824
20839
|
let updatedCategories = categories.map(
|
|
20825
20840
|
(c) => c.key === categoryKey ? { ...c, selectedIds: newSelection } : c
|
|
20826
20841
|
);
|
|
@@ -20860,7 +20875,7 @@ var CheckboxGroup = ({
|
|
|
20860
20875
|
className: "flex flex-col gap-3",
|
|
20861
20876
|
children: [
|
|
20862
20877
|
"groupLabel" in formattedGroup && formattedGroup.groupLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANT66KVKjs.Text_default, { size: "sm", className: "mt-2", weight: "semibold", children: formattedGroup.groupLabel }),
|
|
20863
|
-
_optionalChain([formattedGroup, 'access',
|
|
20878
|
+
_optionalChain([formattedGroup, 'access', _658 => _658.itens, 'optionalAccess', _659 => _659.map, 'call', _660 => _660(
|
|
20864
20879
|
(item) => renderCheckboxItem(item, categoryKey)
|
|
20865
20880
|
)])
|
|
20866
20881
|
]
|
|
@@ -20915,7 +20930,7 @@ var CheckboxGroup = ({
|
|
|
20915
20930
|
};
|
|
20916
20931
|
const renderCategoryAccordion = (category) => {
|
|
20917
20932
|
const isEnabled = isCategoryEnabled2(category);
|
|
20918
|
-
const hasOnlyOneItem = _optionalChain([category, 'access',
|
|
20933
|
+
const hasOnlyOneItem = _optionalChain([category, 'access', _661 => _661.itens, 'optionalAccess', _662 => _662.length]) === 1;
|
|
20919
20934
|
if (hasOnlyOneItem && !compactSingleItem && !showSingleItem) {
|
|
20920
20935
|
return null;
|
|
20921
20936
|
}
|
|
@@ -20932,7 +20947,7 @@ var CheckboxGroup = ({
|
|
|
20932
20947
|
(group) => !group.itens || group.itens.length === 0
|
|
20933
20948
|
);
|
|
20934
20949
|
const displayGroups = getDisplayItems(category.key);
|
|
20935
|
-
const hasActiveSearch = !!category.searchable && !!_optionalChain([searchQueries, 'access',
|
|
20950
|
+
const hasActiveSearch = !!category.searchable && !!_optionalChain([searchQueries, 'access', _663 => _663[category.key], 'optionalAccess', _664 => _664.trim, 'call', _665 => _665()]);
|
|
20936
20951
|
const hasNoSearchResults = hasActiveSearch && !hasNoItems && displayGroups.every((group) => !group.itens || group.itens.length === 0);
|
|
20937
20952
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
|
|
20938
20953
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -21111,4 +21126,4 @@ var CheckboxGroup = ({
|
|
|
21111
21126
|
|
|
21112
21127
|
|
|
21113
21128
|
exports.CheckboxGroup = CheckboxGroup; exports.DateTimeInput_default = DateTimeInput_default; exports.AlertsManager = AlertsManager; exports.useAudioSpectrum = useAudioSpectrum; exports.createUseActivityFiltersData = createUseActivityFiltersData; exports.createActivityFiltersDataHook = createActivityFiltersDataHook; exports.convertActivityFiltersToQuestionsFilter = convertActivityFiltersToQuestionsFilter; exports.ActivityListQuestions = ActivityListQuestions; exports.CreateActivity = CreateActivity; exports.ActivityCardQuestionPreview = ActivityCardQuestionPreview; exports.ChooseActivityModelModal = ChooseActivityModelModal; exports.LessonPreview = LessonPreview; exports.useLessonFiltersStore = useLessonFiltersStore; exports.RecommendedLessonCreate = RecommendedLessonCreate; exports.ColumnFilterMenu_default = ColumnFilterMenu_default; exports.useColumnFilters = useColumnFilters; exports.FILTER_CATEGORY = FILTER_CATEGORY; exports.FILTER_GROUP = FILTER_GROUP; exports.FilterModal = FilterModal; exports.useUserAccessData = useUserAccessData; exports.useStudentsFilter = useStudentsFilter; exports.StudentsFilterSection = StudentsFilterSection; exports.SimulatedFiltersModal = SimulatedFiltersModal; exports.useSimulatedSubjects = useSimulatedSubjects; exports.SimulatedSubjectMenu = SimulatedSubjectMenu; exports.SimulatedRankingCard = SimulatedRankingCard; exports.SimulatedStudentRanking = SimulatedStudentRanking; exports.PerformanceDistributionChart = PerformanceDistributionChart; exports.isColumnSortable = isColumnSortable; exports.TableProvider = TableProvider; exports.TableProvider_default = TableProvider_default; exports.useSimulatedContentDetails = useSimulatedContentDetails; exports.SimulatedContentDetailsModal = SimulatedContentDetailsModal; exports.useEssayCompetenciesOverview = useEssayCompetenciesOverview; exports.useEssayCompetenceDetails = useEssayCompetenceDetails; exports.EssayCompetenceDetailsModal = EssayCompetenceDetailsModal; exports.EssayCompetenciesTable = EssayCompetenciesTable; exports.useEssayStudentDetails = useEssayStudentDetails; exports.EssayStudentDetailsModal = EssayStudentDetailsModal; exports.useQuestionFiltersStore = useQuestionFiltersStore; exports.ActivityFilters = ActivityFilters; exports.ActivityFiltersPopover = ActivityFiltersPopover; exports.FillInBlanks = FillInBlanks; exports.ConnectDots = ConnectDots; exports.AudioMixerReadingFluency = AudioMixerReadingFluency; exports.AudioRecorderReadingFluency = AudioRecorderReadingFluency; exports.IconButtonReadingFluency = IconButtonReadingFluency; exports.ReadAloudPromptReadingFluency = ReadAloudPromptReadingFluency; exports.useAppContent = useAppContent; exports.ActivityCardQuestionBanks = ActivityCardQuestionBanks; exports.QuestionsPdfContent = QuestionsPdfContent; exports.useQuestionsPdfPrint = useQuestionsPdfPrint; exports.QuestionsPdfGenerator = QuestionsPdfGenerator; exports.ActivityPreview = ActivityPreview; exports.HierarchicalCheckboxGroup_default = HierarchicalCheckboxGroup_default; exports.useActivityDetails = useActivityDetails; exports.getStatsGridColsClass = getStatsGridColsClass; exports.ActivityDetails = ActivityDetails; exports.ActivityDetails_default = ActivityDetails_default; exports.SendActivityModal_default = SendActivityModal_default; exports.SaveActivityModelModal = SaveActivityModelModal; exports.useSendLessonModal = useSendLessonModal; exports.SendLessonModal_default = SendLessonModal_default; exports.RecommendedClassDraftsTab = RecommendedClassDraftsTab; exports.RecommendedClassPageTab = RecommendedClassPageTab; exports.RecommendedLessonsHistory = RecommendedLessonsHistory; exports.RecommendedLessonsHistory_default = RecommendedLessonsHistory_default; exports.recommendedClassApiResponseSchema = recommendedClassApiResponseSchema; exports.recommendedClassDetailsApiResponseSchema = recommendedClassDetailsApiResponseSchema; exports.historyApiResponseSchema = historyApiResponseSchema; exports.handleLessonDetailsFetchError = handleLessonDetailsFetchError; exports.createUseRecommendedLessonDetails = createUseRecommendedLessonDetails; exports.createRecommendedLessonDetailsHook = createRecommendedLessonDetailsHook; exports.ActivitiesHistory = ActivitiesHistory; exports.ActivitiesHistory_default = ActivitiesHistory_default; exports.ActivityTab = ActivityTab; exports.ActivityPageLayout = ActivityPageLayout; exports.ExamTab = ExamTab; exports.ExamPageLayout = ExamPageLayout; exports.UnifiedHistoryPage = UnifiedHistoryPage; exports.createExamDraftsModelsTableColumns = createExamDraftsModelsTableColumns; exports.createDraftsModelsFiltersConfig = createDraftsModelsFiltersConfig; exports.useActivityDraftModelPage = useActivityDraftModelPage; exports.UnifiedDraftModelPage = UnifiedDraftModelPage; exports.ChatLoading = ChatLoading; exports.createUseForum = createUseForum; exports.DEFAULT_PERIOD_SELECTION = DEFAULT_PERIOD_SELECTION; exports.getPeriodSelectionLabel = getPeriodSelectionLabel; exports.PeriodSelectorModal = PeriodSelectorModal; exports.PrintableUsersTable_default = PrintableUsersTable_default; exports.SimulatedPerformanceView = SimulatedPerformanceView; exports.SimulationsDetailModal = SimulationsDetailModal; exports.SimulationsPage = SimulationsPage; exports.AnswerSheetPreview = AnswerSheetPreview; exports.AnswerSheetsBatchPreview = AnswerSheetsBatchPreview; exports.ExamDetailsHeader = ExamDetailsHeader; exports.formatQuestions = formatQuestions; exports.ExamStatsCards = ExamStatsCards; exports.getExamStudentStatusBadgeAction = getExamStudentStatusBadgeAction; exports.getExamStudentStatusDisplayText = getExamStudentStatusDisplayText; exports.createExamStudentsTableColumns = createExamStudentsTableColumns; exports.ExamStudentsTable = ExamStudentsTable; exports.ExamDetailsPage = ExamDetailsPage; exports.ExamDetailsPage_default = ExamDetailsPage_default;
|
|
21114
|
-
//# sourceMappingURL=chunk-
|
|
21129
|
+
//# sourceMappingURL=chunk-IT5VCURL.js.map
|