analytica-frontend-lib 1.5.21 → 1.5.22

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.
Files changed (58) hide show
  1. package/dist/ActivitiesHistory/index.js +2 -2
  2. package/dist/ActivitiesHistory/index.mjs +1 -1
  3. package/dist/ActivityCardQuestionBanks/index.js +2 -2
  4. package/dist/ActivityCardQuestionBanks/index.mjs +1 -1
  5. package/dist/ActivityCardQuestionPreview/index.js +2 -2
  6. package/dist/ActivityCardQuestionPreview/index.mjs +1 -1
  7. package/dist/ActivityCreate/index.js +2 -2
  8. package/dist/ActivityCreate/index.mjs +1 -1
  9. package/dist/ActivityDetails/index.js +2 -2
  10. package/dist/ActivityDetails/index.mjs +1 -1
  11. package/dist/ActivityFilters/index.js +2 -2
  12. package/dist/ActivityFilters/index.mjs +1 -1
  13. package/dist/ActivityPageLayout/index.js +2 -2
  14. package/dist/ActivityPageLayout/index.mjs +1 -1
  15. package/dist/ActivityPreview/index.js +2 -2
  16. package/dist/ActivityPreview/index.mjs +1 -1
  17. package/dist/AlertManager/index.js +2 -2
  18. package/dist/AlertManager/index.mjs +1 -1
  19. package/dist/CheckBoxGroup/index.js +2 -2
  20. package/dist/CheckBoxGroup/index.mjs +1 -1
  21. package/dist/ExamDetailsLayout/ExamDetailsPage/index.js +2 -2
  22. package/dist/ExamDetailsLayout/ExamDetailsPage/index.mjs +1 -1
  23. package/dist/ExamPageLayout/index.js +2 -2
  24. package/dist/ExamPageLayout/index.mjs +1 -1
  25. package/dist/PrintableUsersTable/index.js +2 -2
  26. package/dist/PrintableUsersTable/index.mjs +1 -1
  27. package/dist/RecommendedLessonCreate/index.js +2 -2
  28. package/dist/RecommendedLessonCreate/index.mjs +1 -1
  29. package/dist/RecommendedLessonsHistory/index.js +2 -2
  30. package/dist/RecommendedLessonsHistory/index.mjs +1 -1
  31. package/dist/SendActivityModal/SendActivityModal.js +2 -2
  32. package/dist/SendActivityModal/SendActivityModal.mjs +1 -1
  33. package/dist/SendActivityModal/index.js +2 -2
  34. package/dist/SendActivityModal/index.mjs +1 -1
  35. package/dist/SendLessonModal/index.js +2 -2
  36. package/dist/SendLessonModal/index.mjs +1 -1
  37. package/dist/SimulatedPerformance/SimulatedPerformanceView/index.js +2 -2
  38. package/dist/SimulatedPerformance/SimulatedPerformanceView/index.mjs +1 -1
  39. package/dist/SimulationsPage/index.js +2 -2
  40. package/dist/SimulationsPage/index.mjs +1 -1
  41. package/dist/TableProvider/index.d.ts.map +1 -1
  42. package/dist/TableProvider/index.js +2 -2
  43. package/dist/TableProvider/index.mjs +1 -1
  44. package/dist/UnifiedDraftModelPage/index.js +2 -2
  45. package/dist/UnifiedDraftModelPage/index.mjs +1 -1
  46. package/dist/UnifiedHistoryPage/index.js +2 -2
  47. package/dist/UnifiedHistoryPage/index.mjs +1 -1
  48. package/dist/{chunk-WUMJ2OIE.mjs → chunk-LY4SQWGB.mjs} +19 -2
  49. package/dist/chunk-LY4SQWGB.mjs.map +1 -0
  50. package/dist/{chunk-4TROUHWW.js → chunk-Y2YUQPF7.js} +180 -163
  51. package/dist/chunk-Y2YUQPF7.js.map +1 -0
  52. package/dist/hooks/useAppContent/index.js +2 -2
  53. package/dist/hooks/useAppContent/index.mjs +1 -1
  54. package/dist/index.js +2 -2
  55. package/dist/index.mjs +1 -1
  56. package/package.json +1 -1
  57. package/dist/chunk-4TROUHWW.js.map +0 -1
  58. package/dist/chunk-WUMJ2OIE.mjs.map +0 -1
@@ -9311,6 +9311,23 @@ function TableProvider({
9311
9311
  const showLoading = loading;
9312
9312
  const showNoSearchResult = !loading && data.length === 0 && searchQuery.trim() !== "";
9313
9313
  const showEmpty = !loading && data.length === 0 && searchQuery.trim() === "";
9314
+ const hasActiveColumnFilters = Object.keys(columnFilterParams).length > 0;
9315
+ const clearAllColumnFilters = _react.useCallback.call(void 0, () => {
9316
+ for (const paramKey of Object.keys(columnFilters)) {
9317
+ setColumnFilter(paramKey, []);
9318
+ }
9319
+ }, [columnFilters, setColumnFilter]);
9320
+ const effectiveEmptyState = _react.useMemo.call(void 0, () => {
9321
+ if (!hasActiveColumnFilters) return emptyState;
9322
+ if (_optionalChain([emptyState, 'optionalAccess', _312 => _312.component]) || _optionalChain([emptyState, 'optionalAccess', _313 => _313.buttonText])) return emptyState;
9323
+ return {
9324
+ ...emptyState,
9325
+ buttonText: "Limpar filtros",
9326
+ buttonVariant: "outline",
9327
+ buttonAction: "primary",
9328
+ onButtonClick: clearAllColumnFilters
9329
+ };
9330
+ }, [emptyState, hasActiveColumnFilters, clearAllColumnFilters]);
9314
9331
  const controls = (enableSearch || enableFilters) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-4", children: [
9315
9332
  enableFilters && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
9316
9333
  _chunkW6CNLVYFjs.Button_default,
@@ -9360,7 +9377,7 @@ function TableProvider({
9360
9377
  showNoSearchResult,
9361
9378
  noSearchResultState,
9362
9379
  showEmpty,
9363
- emptyState,
9380
+ emptyState: effectiveEmptyState,
9364
9381
  children: [
9365
9382
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "thead", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9366
9383
  _chunkNHDKNZN7js.TableRow,
@@ -9373,7 +9390,7 @@ function TableProvider({
9373
9390
  sortableColumns
9374
9391
  );
9375
9392
  const sortKey = sortKeyOf(header);
9376
- const filterParamKey = _nullishCoalesce(_optionalChain([header, 'access', _312 => _312.filter, 'optionalAccess', _313 => _313.paramKey]), () => ( header.key));
9393
+ const filterParamKey = _nullishCoalesce(_optionalChain([header, 'access', _314 => _314.filter, 'optionalAccess', _315 => _315.paramKey]), () => ( header.key));
9377
9394
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
9378
9395
  _chunkNHDKNZN7js.TableHead,
9379
9396
  {
@@ -9510,9 +9527,9 @@ var _ArrowLeft = require('@phosphor-icons/react/dist/csr/ArrowLeft');
9510
9527
 
9511
9528
  function buildEndpoint2(activityFilters) {
9512
9529
  const params = new URLSearchParams();
9513
- _optionalChain([activityFilters, 'access', _314 => _314.types, 'optionalAccess', _315 => _315.forEach, 'call', _316 => _316((t) => params.append("types", t))]);
9514
- _optionalChain([activityFilters, 'access', _317 => _317.subtypes, 'optionalAccess', _318 => _318.forEach, 'call', _319 => _319((s) => params.append("subtypes", s))]);
9515
- _optionalChain([activityFilters, 'access', _320 => _320.statuses, 'optionalAccess', _321 => _321.forEach, 'call', _322 => _322((s) => params.append("statuses", s))]);
9530
+ _optionalChain([activityFilters, 'access', _316 => _316.types, 'optionalAccess', _317 => _317.forEach, 'call', _318 => _318((t) => params.append("types", t))]);
9531
+ _optionalChain([activityFilters, 'access', _319 => _319.subtypes, 'optionalAccess', _320 => _320.forEach, 'call', _321 => _321((s) => params.append("subtypes", s))]);
9532
+ _optionalChain([activityFilters, 'access', _322 => _322.statuses, 'optionalAccess', _323 => _323.forEach, 'call', _324 => _324((s) => params.append("statuses", s))]);
9516
9533
  const queryString = params.toString();
9517
9534
  const endpoint = "/performance/simulated/activities/content-details";
9518
9535
  if (!queryString) {
@@ -9649,9 +9666,9 @@ function SimulatedContentDetailsModal({
9649
9666
  activityFilters,
9650
9667
  contentId,
9651
9668
  period,
9652
- schoolIds: _optionalChain([filters, 'optionalAccess', _323 => _323.schoolIds]),
9653
- schoolYearIds: _optionalChain([filters, 'optionalAccess', _324 => _324.schoolYearIds]),
9654
- classIds: _optionalChain([filters, 'optionalAccess', _325 => _325.classIds]),
9669
+ schoolIds: _optionalChain([filters, 'optionalAccess', _325 => _325.schoolIds]),
9670
+ schoolYearIds: _optionalChain([filters, 'optionalAccess', _326 => _326.schoolYearIds]),
9671
+ classIds: _optionalChain([filters, 'optionalAccess', _327 => _327.classIds]),
9655
9672
  page: 1,
9656
9673
  limit: 10
9657
9674
  });
@@ -9669,9 +9686,9 @@ function SimulatedContentDetailsModal({
9669
9686
  activityFilters,
9670
9687
  contentId,
9671
9688
  period,
9672
- schoolIds: _optionalChain([filters, 'optionalAccess', _326 => _326.schoolIds]),
9673
- schoolYearIds: _optionalChain([filters, 'optionalAccess', _327 => _327.schoolYearIds]),
9674
- classIds: _optionalChain([filters, 'optionalAccess', _328 => _328.classIds]),
9689
+ schoolIds: _optionalChain([filters, 'optionalAccess', _328 => _328.schoolIds]),
9690
+ schoolYearIds: _optionalChain([filters, 'optionalAccess', _329 => _329.schoolYearIds]),
9691
+ classIds: _optionalChain([filters, 'optionalAccess', _330 => _330.classIds]),
9675
9692
  page: params.page,
9676
9693
  limit: params.limit
9677
9694
  });
@@ -9945,7 +9962,7 @@ var TABLE_COLUMNS2 = [
9945
9962
  const student = row;
9946
9963
  const badgeAction = _nullishCoalesce(_chunkCABP6AHSjs.PERFORMANCE_TAG_TO_BADGE_ACTION[student.performance], () => ( "info")) /* INFO */;
9947
9964
  const tagConfig = _chunkCABP6AHSjs.SIMULATED_PERFORMANCE_TAG_CONFIG[student.performance];
9948
- const label = _nullishCoalesce(_optionalChain([tagConfig, 'optionalAccess', _329 => _329.label]), () => ( "Desconhecido"));
9965
+ const label = _nullishCoalesce(_optionalChain([tagConfig, 'optionalAccess', _331 => _331.label]), () => ( "Desconhecido"));
9949
9966
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkOROKHOMWjs.Badge_default, { variant: "solid", action: badgeAction, size: "small", children: label });
9950
9967
  }
9951
9968
  }
@@ -10214,7 +10231,7 @@ function EssayCompetenciesTable({
10214
10231
  setIsModalOpen(false);
10215
10232
  setSelectedCompetence(null);
10216
10233
  }, []);
10217
- const competencies = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _330 => _330.competencies]), () => ( [])), [data]);
10234
+ const competencies = _react.useMemo.call(void 0, () => _nullishCoalesce(_optionalChain([data, 'optionalAccess', _332 => _332.competencies]), () => ( [])), [data]);
10218
10235
  if (error) {
10219
10236
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-background border border-border-50 rounded-xl p-5", children: [
10220
10237
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { as: "h3", size: "lg", weight: "bold", className: "text-text-950 mb-4", children: "Profici\xEAncia por compet\xEAncia" }),
@@ -10251,8 +10268,8 @@ function EssayCompetenciesTable({
10251
10268
  api,
10252
10269
  isOpen: isModalOpen,
10253
10270
  onClose: handleCloseModal,
10254
- competenceNumber: _nullishCoalesce(_optionalChain([selectedCompetence, 'optionalAccess', _331 => _331.number]), () => ( null)),
10255
- competenceName: _optionalChain([selectedCompetence, 'optionalAccess', _332 => _332.name]),
10271
+ competenceNumber: _nullishCoalesce(_optionalChain([selectedCompetence, 'optionalAccess', _333 => _333.number]), () => ( null)),
10272
+ competenceName: _optionalChain([selectedCompetence, 'optionalAccess', _334 => _334.name]),
10256
10273
  period,
10257
10274
  schoolIds,
10258
10275
  schoolYearIds,
@@ -10718,7 +10735,7 @@ var ActivityFilters = ({
10718
10735
  id: bank.id,
10719
10736
  name: bank.name || bank.examInstitution
10720
10737
  })),
10721
- selectedIds: _optionalChain([prevCategories, 'access', _333 => _333.find, 'call', _334 => _334((c) => c.key === "banca"), 'optionalAccess', _335 => _335.selectedIds]) || []
10738
+ selectedIds: _optionalChain([prevCategories, 'access', _335 => _335.find, 'call', _336 => _336((c) => c.key === "banca"), 'optionalAccess', _337 => _337.selectedIds]) || []
10722
10739
  };
10723
10740
  const yearCategory = {
10724
10741
  key: "ano",
@@ -10730,7 +10747,7 @@ var ActivityFilters = ({
10730
10747
  bankId: year.bankId
10731
10748
  })),
10732
10749
  filteredBy: [{ key: "banca", internalField: "bankId" }],
10733
- selectedIds: _optionalChain([prevCategories, 'access', _336 => _336.find, 'call', _337 => _337((c) => c.key === "ano"), 'optionalAccess', _338 => _338.selectedIds]) || []
10750
+ selectedIds: _optionalChain([prevCategories, 'access', _338 => _338.find, 'call', _339 => _339((c) => c.key === "ano"), 'optionalAccess', _340 => _340.selectedIds]) || []
10734
10751
  };
10735
10752
  return [bankCategory, yearCategory];
10736
10753
  });
@@ -10765,7 +10782,7 @@ var ActivityFilters = ({
10765
10782
  const yearCategory = currentBankCategories.find(
10766
10783
  (category) => category.key === "ano"
10767
10784
  );
10768
- const yearItens = Array.isArray(_optionalChain([yearCategory, 'optionalAccess', _339 => _339.itens])) ? yearCategory.itens : [];
10785
+ const yearItens = Array.isArray(_optionalChain([yearCategory, 'optionalAccess', _341 => _341.itens])) ? yearCategory.itens : [];
10769
10786
  const derivedYearIds = deriveYearIdsFromBankIds(
10770
10787
  yearItens,
10771
10788
  bankIds,
@@ -11039,7 +11056,7 @@ var FillInBlanks = ({
11039
11056
  _chunkJHCDPG7Njs.Select_default,
11040
11057
  {
11041
11058
  value: selectedOptionId || void 0,
11042
- onValueChange: (value) => _optionalChain([onAnswerChange, 'optionalCall', _340 => _340(placeholderId, value)]),
11059
+ onValueChange: (value) => _optionalChain([onAnswerChange, 'optionalCall', _342 => _342(placeholderId, value)]),
11043
11060
  children: [
11044
11061
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHCDPG7Njs.SelectTrigger, { className: "w-auto min-w-[120px] h-7 px-2 bg-background border-gray-300", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHCDPG7Njs.SelectValue, { placeholder: "Selecione" }) }),
11045
11062
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHCDPG7Njs.SelectContent, { children: options.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJHCDPG7Njs.SelectItem, { value: option.id, children: option.option }, option.id)) })
@@ -11177,7 +11194,7 @@ var ConnectDots = ({
11177
11194
  value: selectedValue || void 0,
11178
11195
  onValueChange: (value) => {
11179
11196
  if (disabled) return;
11180
- _optionalChain([onAnswerChange, 'optionalCall', _341 => _341(option.id, value)]);
11197
+ _optionalChain([onAnswerChange, 'optionalCall', _343 => _343(option.id, value)]);
11181
11198
  },
11182
11199
  children: [
11183
11200
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11380,10 +11397,10 @@ function useAppContent(config) {
11380
11397
  _chunkB4EFRRXHjs.useUrlAuthentication.call(void 0, urlAuthConfig);
11381
11398
  const { sessionInfo } = _chunkVDLACBCFjs.useAuth.call(void 0, );
11382
11399
  const institutionIdToUse = _react.useMemo.call(void 0, () => {
11383
- return _optionalChain([sessionInfo, 'optionalAccess', _342 => _342.institutionId]) || getInstitutionId;
11384
- }, [_optionalChain([sessionInfo, 'optionalAccess', _343 => _343.institutionId]), getInstitutionId]);
11400
+ return _optionalChain([sessionInfo, 'optionalAccess', _344 => _344.institutionId]) || getInstitutionId;
11401
+ }, [_optionalChain([sessionInfo, 'optionalAccess', _345 => _345.institutionId]), getInstitutionId]);
11385
11402
  const profileType = _react.useMemo.call(void 0, () => {
11386
- return _nullishCoalesce(_optionalChain([sessionInfo, 'optionalAccess', _344 => _344.profileName]), () => ( void 0));
11403
+ return _nullishCoalesce(_optionalChain([sessionInfo, 'optionalAccess', _346 => _346.profileName]), () => ( void 0));
11387
11404
  }, [sessionInfo]);
11388
11405
  _react.useEffect.call(void 0, () => {
11389
11406
  if (institutionIdToUse && !initialized) {
@@ -11425,7 +11442,7 @@ var ActivityCardQuestionBanks = ({
11425
11442
  enableExamMode = false
11426
11443
  } = {}) => {
11427
11444
  const alternatives = _react.useMemo.call(void 0, () => {
11428
- if (!_optionalChain([question, 'optionalAccess', _345 => _345.options]) || questionType !== "ALTERNATIVA" /* ALTERNATIVA */)
11445
+ if (!_optionalChain([question, 'optionalAccess', _347 => _347.options]) || questionType !== "ALTERNATIVA" /* ALTERNATIVA */)
11429
11446
  return [];
11430
11447
  const correctOptionIds2 = question.correctOptionIds || [];
11431
11448
  return question.options.map((option) => {
@@ -11439,13 +11456,13 @@ var ActivityCardQuestionBanks = ({
11439
11456
  });
11440
11457
  }, [question, questionType]);
11441
11458
  const correctOptionId = _react.useMemo.call(void 0, () => {
11442
- if (!_optionalChain([question, 'optionalAccess', _346 => _346.correctOptionIds]) || question.correctOptionIds.length === 0) {
11459
+ if (!_optionalChain([question, 'optionalAccess', _348 => _348.correctOptionIds]) || question.correctOptionIds.length === 0) {
11443
11460
  return void 0;
11444
11461
  }
11445
11462
  return question.correctOptionIds[0];
11446
11463
  }, [question]);
11447
11464
  const multipleChoices = _react.useMemo.call(void 0, () => {
11448
- if (!_optionalChain([question, 'optionalAccess', _347 => _347.options]) || questionType !== "MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */)
11465
+ if (!_optionalChain([question, 'optionalAccess', _349 => _349.options]) || questionType !== "MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */)
11449
11466
  return [];
11450
11467
  const correctOptionIds2 = question.correctOptionIds || [];
11451
11468
  return question.options.map((option) => {
@@ -11459,7 +11476,7 @@ var ActivityCardQuestionBanks = ({
11459
11476
  });
11460
11477
  }, [question, questionType]);
11461
11478
  const correctOptionIds = _react.useMemo.call(void 0, () => {
11462
- return _optionalChain([question, 'optionalAccess', _348 => _348.correctOptionIds]) || [];
11479
+ return _optionalChain([question, 'optionalAccess', _350 => _350.correctOptionIds]) || [];
11463
11480
  }, [question]);
11464
11481
  const getLetterByIndex = (index) => String.fromCodePoint(97 + index);
11465
11482
  const renderAlternative = () => {
@@ -11523,14 +11540,14 @@ var ActivityCardQuestionBanks = ({
11523
11540
  }) }) });
11524
11541
  };
11525
11542
  const connectDotsOptions = _react.useMemo.call(void 0, () => {
11526
- if (!_optionalChain([question, 'optionalAccess', _349 => _349.options]) || questionType !== "RELACIONAR" /* RELACIONAR */)
11543
+ if (!_optionalChain([question, 'optionalAccess', _351 => _351.options]) || questionType !== "RELACIONAR" /* RELACIONAR */)
11527
11544
  return [];
11528
11545
  return question.options.filter((opt) => opt.correctValue).map((opt) => ({
11529
11546
  id: opt.id,
11530
11547
  option: opt.option,
11531
11548
  correctValue: opt.correctValue
11532
11549
  }));
11533
- }, [_optionalChain([question, 'optionalAccess', _350 => _350.options]), questionType]);
11550
+ }, [_optionalChain([question, 'optionalAccess', _352 => _352.options]), questionType]);
11534
11551
  const renderConnectDots = () => {
11535
11552
  if (connectDotsOptions.length === 0) return null;
11536
11553
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11543,12 +11560,12 @@ var ActivityCardQuestionBanks = ({
11543
11560
  );
11544
11561
  };
11545
11562
  const fillInBlanksOptions = _react.useMemo.call(void 0, () => {
11546
- if (!_optionalChain([question, 'optionalAccess', _351 => _351.options])) return [];
11563
+ if (!_optionalChain([question, 'optionalAccess', _353 => _353.options])) return [];
11547
11564
  return question.options.map((opt) => ({
11548
11565
  id: opt.id,
11549
11566
  option: opt.option
11550
11567
  }));
11551
- }, [_optionalChain([question, 'optionalAccess', _352 => _352.options])]);
11568
+ }, [_optionalChain([question, 'optionalAccess', _354 => _354.options])]);
11552
11569
  const renderFill = () => {
11553
11570
  if (!additionalContent || fillInBlanksOptions.length === 0) return null;
11554
11571
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11562,7 +11579,7 @@ var ActivityCardQuestionBanks = ({
11562
11579
  );
11563
11580
  };
11564
11581
  const imageCoordinates = _react.useMemo.call(void 0, () => {
11565
- if (questionType !== "IMAGEM" /* IMAGEM */ || !_optionalChain([question, 'optionalAccess', _353 => _353.options, 'optionalAccess', _354 => _354[0], 'optionalAccess', _355 => _355.option]))
11582
+ if (questionType !== "IMAGEM" /* IMAGEM */ || !_optionalChain([question, 'optionalAccess', _355 => _355.options, 'optionalAccess', _356 => _356[0], 'optionalAccess', _357 => _357.option]))
11566
11583
  return null;
11567
11584
  try {
11568
11585
  const coords = JSON.parse(question.options[0].option);
@@ -11572,7 +11589,7 @@ var ActivityCardQuestionBanks = ({
11572
11589
  } catch (e4) {
11573
11590
  }
11574
11591
  return null;
11575
- }, [_optionalChain([question, 'optionalAccess', _356 => _356.options]), questionType]);
11592
+ }, [_optionalChain([question, 'optionalAccess', _358 => _358.options]), questionType]);
11576
11593
  const renderImage = () => {
11577
11594
  if (!additionalContent) return null;
11578
11595
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-4 relative inline-block", children: [
@@ -11665,7 +11682,7 @@ var QuestionsPdfContent = _react.forwardRef.call(void 0, ({ questions }, ref) =>
11665
11682
  return String.fromCodePoint(97 + index);
11666
11683
  };
11667
11684
  const renderAlternative = (question) => {
11668
- if (!_optionalChain([question, 'access', _357 => _357.question, 'optionalAccess', _358 => _358.options]) || question.question.options.length === 0) {
11685
+ if (!_optionalChain([question, 'access', _359 => _359.question, 'optionalAccess', _360 => _360.options]) || question.question.options.length === 0) {
11669
11686
  return null;
11670
11687
  }
11671
11688
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11692,7 +11709,7 @@ var QuestionsPdfContent = _react.forwardRef.call(void 0, ({ questions }, ref) =>
11692
11709
  );
11693
11710
  };
11694
11711
  const renderMultipleChoice = (question) => {
11695
- if (!_optionalChain([question, 'access', _359 => _359.question, 'optionalAccess', _360 => _360.options]) || question.question.options.length === 0) {
11712
+ if (!_optionalChain([question, 'access', _361 => _361.question, 'optionalAccess', _362 => _362.options]) || question.question.options.length === 0) {
11696
11713
  return null;
11697
11714
  }
11698
11715
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -11791,7 +11808,7 @@ var QuestionsPdfContent = _react.forwardRef.call(void 0, ({ questions }, ref) =>
11791
11808
  );
11792
11809
  };
11793
11810
  const renderTrueOrFalse = (question) => {
11794
- if (!_optionalChain([question, 'access', _361 => _361.question, 'optionalAccess', _362 => _362.options]) || question.question.options.length === 0) {
11811
+ if (!_optionalChain([question, 'access', _363 => _363.question, 'optionalAccess', _364 => _364.options]) || question.question.options.length === 0) {
11795
11812
  return null;
11796
11813
  }
11797
11814
  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,
@@ -12088,7 +12105,7 @@ var useQuestionsPdfPrint = (questions, onPrint, onPrintError) => {
12088
12105
  const contentRef = _react.useRef.call(void 0, null);
12089
12106
  const handlePrint = _react.useCallback.call(void 0, () => {
12090
12107
  try {
12091
- _optionalChain([onPrint, 'optionalCall', _363 => _363()]);
12108
+ _optionalChain([onPrint, 'optionalCall', _365 => _365()]);
12092
12109
  if (!contentRef.current) {
12093
12110
  throw new Error("Elemento de PDF n\xE3o encontrado no DOM");
12094
12111
  }
@@ -12109,7 +12126,7 @@ var useQuestionsPdfPrint = (questions, onPrint, onPrintError) => {
12109
12126
  setupPrintWindowHandler(printWindow);
12110
12127
  } catch (error) {
12111
12128
  const errorObj = error instanceof Error ? error : new Error(String(error));
12112
- _optionalChain([onPrintError, 'optionalCall', _364 => _364(errorObj)]);
12129
+ _optionalChain([onPrintError, 'optionalCall', _366 => _366(errorObj)]);
12113
12130
  console.error("Erro ao gerar PDF:", errorObj);
12114
12131
  }
12115
12132
  }, [onPrint, onPrintError]);
@@ -12130,7 +12147,7 @@ var QuestionsPdfGenerator = ({
12130
12147
  onPrintError
12131
12148
  );
12132
12149
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
12133
- _optionalChain([children, 'optionalCall', _365 => _365(handlePrint)]),
12150
+ _optionalChain([children, 'optionalCall', _367 => _367(handlePrint)]),
12134
12151
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { display: "none" }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, QuestionsPdfContent, { ref: contentRef, questions }) })
12135
12152
  ] });
12136
12153
  };
@@ -12163,7 +12180,7 @@ var ActivityPreview = ({
12163
12180
  _react.useEffect.call(void 0, () => {
12164
12181
  const normalized = normalizeWithPositions2(questions);
12165
12182
  setOrderedQuestions(normalized);
12166
- _optionalChain([onPositionsChangeRef, 'access', _366 => _366.current, 'optionalCall', _367 => _367(normalized)]);
12183
+ _optionalChain([onPositionsChangeRef, 'access', _368 => _368.current, 'optionalCall', _369 => _369(normalized)]);
12167
12184
  }, [questions, normalizeWithPositions2]);
12168
12185
  const total = orderedQuestions.length;
12169
12186
  const totalLabel = total === 1 ? "1 quest\xE3o adicionada" : `${total} quest\xF5es adicionadas`;
@@ -12172,7 +12189,7 @@ var ActivityPreview = ({
12172
12189
  onDownloadPdf
12173
12190
  );
12174
12191
  const handleDownloadPdf = () => {
12175
- _optionalChain([onDownloadPdf, 'optionalCall', _368 => _368()]);
12192
+ _optionalChain([onDownloadPdf, 'optionalCall', _370 => _370()]);
12176
12193
  setTimeout(() => {
12177
12194
  if (!contentRef.current) {
12178
12195
  console.error("Elemento de PDF n\xE3o encontrado no DOM");
@@ -12195,8 +12212,8 @@ var ActivityPreview = ({
12195
12212
  current.splice(toIndex, 0, moved);
12196
12213
  const normalized = normalizeWithPositions2(current);
12197
12214
  setOrderedQuestions(normalized);
12198
- _optionalChain([onReorder, 'optionalCall', _369 => _369(normalized)]);
12199
- _optionalChain([onPositionsChange, 'optionalCall', _370 => _370(normalized)]);
12215
+ _optionalChain([onReorder, 'optionalCall', _371 => _371(normalized)]);
12216
+ _optionalChain([onPositionsChange, 'optionalCall', _372 => _372(normalized)]);
12200
12217
  };
12201
12218
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
12202
12219
  "div",
@@ -12426,11 +12443,11 @@ var _Star = require('@phosphor-icons/react/dist/csr/Star');
12426
12443
 
12427
12444
  var buildQueryParams = (params) => {
12428
12445
  const paramsObj = {};
12429
- if (_optionalChain([params, 'optionalAccess', _371 => _371.page])) paramsObj.page = params.page;
12430
- if (_optionalChain([params, 'optionalAccess', _372 => _372.limit])) paramsObj.limit = params.limit;
12431
- if (_optionalChain([params, 'optionalAccess', _373 => _373.sortBy])) paramsObj.sortBy = params.sortBy;
12432
- if (_optionalChain([params, 'optionalAccess', _374 => _374.sortOrder])) paramsObj.sortOrder = params.sortOrder;
12433
- if (_optionalChain([params, 'optionalAccess', _375 => _375.status])) paramsObj.status = params.status;
12446
+ if (_optionalChain([params, 'optionalAccess', _373 => _373.page])) paramsObj.page = params.page;
12447
+ if (_optionalChain([params, 'optionalAccess', _374 => _374.limit])) paramsObj.limit = params.limit;
12448
+ if (_optionalChain([params, 'optionalAccess', _375 => _375.sortBy])) paramsObj.sortBy = params.sortBy;
12449
+ if (_optionalChain([params, 'optionalAccess', _376 => _376.sortOrder])) paramsObj.sortOrder = params.sortOrder;
12450
+ if (_optionalChain([params, 'optionalAccess', _377 => _377.status])) paramsObj.status = params.status;
12434
12451
  return paramsObj;
12435
12452
  };
12436
12453
  var useActivityDetails = (apiClient) => {
@@ -12445,7 +12462,7 @@ var useActivityDetails = (apiClient) => {
12445
12462
  ]);
12446
12463
  return {
12447
12464
  ...detailsResponse.data.data,
12448
- activity: _optionalChain([quizResponse, 'optionalAccess', _376 => _376.data, 'optionalAccess', _377 => _377.data])
12465
+ activity: _optionalChain([quizResponse, 'optionalAccess', _378 => _378.data, 'optionalAccess', _379 => _379.data])
12449
12466
  };
12450
12467
  },
12451
12468
  [apiClient]
@@ -12600,7 +12617,7 @@ var createTableColumns = (onCorrectActivity, isPresencial, onDownloadAnswerSheet
12600
12617
  {
12601
12618
  variant: "outline",
12602
12619
  size: "small",
12603
- onClick: () => _optionalChain([onDownloadAnswerSheet, 'optionalCall', _378 => _378(row.studentId)]),
12620
+ onClick: () => _optionalChain([onDownloadAnswerSheet, 'optionalCall', _380 => _380(row.studentId)]),
12604
12621
  disabled: !onDownloadAnswerSheet,
12605
12622
  className: "text-xs",
12606
12623
  children: "Baixar gabarito"
@@ -12660,7 +12677,7 @@ var normalizeWithPositions = (items) => items.map((item, index) => ({
12660
12677
  ...item,
12661
12678
  position: index + 1
12662
12679
  }));
12663
- var extractQuestionIds = (response) => _nullishCoalesce(_nullishCoalesce(_optionalChain([response, 'optionalAccess', _379 => _379.data, 'optionalAccess', _380 => _380.data, 'optionalAccess', _381 => _381.questions, 'optionalAccess', _382 => _382.map, 'call', _383 => _383((q) => q.id)]), () => ( _optionalChain([response, 'optionalAccess', _384 => _384.data, 'optionalAccess', _385 => _385.data, 'optionalAccess', _386 => _386.questionIds]))), () => ( []));
12680
+ var extractQuestionIds = (response) => _nullishCoalesce(_nullishCoalesce(_optionalChain([response, 'optionalAccess', _381 => _381.data, 'optionalAccess', _382 => _382.data, 'optionalAccess', _383 => _383.questions, 'optionalAccess', _384 => _384.map, 'call', _385 => _385((q) => q.id)]), () => ( _optionalChain([response, 'optionalAccess', _386 => _386.data, 'optionalAccess', _387 => _387.data, 'optionalAccess', _388 => _388.questionIds]))), () => ( []));
12664
12681
  var toErrorMessage = (err, fallback) => err instanceof Error ? err.message : fallback;
12665
12682
  var ViewQuestionsModalBody = ({
12666
12683
  questions
@@ -12781,7 +12798,7 @@ var ActivityDetails = ({
12781
12798
  }, [activityId, page, limit, sortBy, sortOrder, fetchActivityDetails]);
12782
12799
  const handleCorrectActivity = _react.useCallback.call(void 0,
12783
12800
  async (studentId) => {
12784
- const student = _optionalChain([data, 'optionalAccess', _387 => _387.students, 'access', _388 => _388.find, 'call', _389 => _389((s) => s.studentId === studentId)]);
12801
+ const student = _optionalChain([data, 'optionalAccess', _389 => _389.students, 'access', _390 => _390.find, 'call', _391 => _391((s) => s.studentId === studentId)]);
12785
12802
  if (!student || !activityId) return;
12786
12803
  const isViewOnly = student.status !== _chunkYFHORWTNjs.STUDENT_ACTIVITY_STATUS.AGUARDANDO_CORRECAO;
12787
12804
  setIsViewOnlyModal(isViewOnly);
@@ -12795,8 +12812,8 @@ var ActivityDetails = ({
12795
12812
  apiResponse,
12796
12813
  studentId,
12797
12814
  student.studentName || "Aluno",
12798
- _nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess', _390 => _390.teacherFeedback]), () => ( void 0)),
12799
- _nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess', _391 => _391.attachment]), () => ( void 0))
12815
+ _nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess', _392 => _392.teacherFeedback]), () => ( void 0)),
12816
+ _nullishCoalesce(_optionalChain([feedbackResponse, 'optionalAccess', _393 => _393.attachment]), () => ( void 0))
12800
12817
  );
12801
12818
  setCorrectionData(correction);
12802
12819
  setIsModalOpen(true);
@@ -12808,7 +12825,7 @@ var ActivityDetails = ({
12808
12825
  }
12809
12826
  },
12810
12827
  [
12811
- _optionalChain([data, 'optionalAccess', _392 => _392.students]),
12828
+ _optionalChain([data, 'optionalAccess', _394 => _394.students]),
12812
12829
  activityId,
12813
12830
  fetchStudentCorrection,
12814
12831
  safeFetchStudentFeedback
@@ -12858,9 +12875,9 @@ var ActivityDetails = ({
12858
12875
  },
12859
12876
  [activityId, submitQuestionCorrection]
12860
12877
  );
12861
- const isPresencial = _optionalChain([data, 'optionalAccess', _393 => _393.activity, 'optionalAccess', _394 => _394.isDigital]) === false && _optionalChain([data, 'optionalAccess', _395 => _395.activity, 'optionalAccess', _396 => _396.subtype]) === "PROVA" /* PROVA */;
12878
+ const isPresencial = _optionalChain([data, 'optionalAccess', _395 => _395.activity, 'optionalAccess', _396 => _396.isDigital]) === false && _optionalChain([data, 'optionalAccess', _397 => _397.activity, 'optionalAccess', _398 => _398.subtype]) === "PROVA" /* PROVA */;
12862
12879
  const tableData = _react.useMemo.call(void 0, () => {
12863
- if (!_optionalChain([data, 'optionalAccess', _397 => _397.students])) return [];
12880
+ if (!_optionalChain([data, 'optionalAccess', _399 => _399.students])) return [];
12864
12881
  return data.students.map((student) => {
12865
12882
  let status = student.status;
12866
12883
  if (isPresencial) {
@@ -12880,7 +12897,7 @@ var ActivityDetails = ({
12880
12897
  score: student.score
12881
12898
  };
12882
12899
  });
12883
- }, [_optionalChain([data, 'optionalAccess', _398 => _398.students]), isPresencial]);
12900
+ }, [_optionalChain([data, 'optionalAccess', _400 => _400.students]), isPresencial]);
12884
12901
  const columns = _react.useMemo.call(void 0,
12885
12902
  () => createTableColumns(
12886
12903
  handleCorrectActivity,
@@ -12911,7 +12928,7 @@ var ActivityDetails = ({
12911
12928
  const { contentRef, handlePrint } = useQuestionsPdfPrint(orderedQuestions);
12912
12929
  const extractQuestionsFromResponse = _react.useCallback.call(void 0,
12913
12930
  async (response) => {
12914
- if (!_optionalChain([response, 'optionalAccess', _399 => _399.data, 'optionalAccess', _400 => _400.data])) {
12931
+ if (!_optionalChain([response, 'optionalAccess', _401 => _401.data, 'optionalAccess', _402 => _402.data])) {
12915
12932
  return [];
12916
12933
  }
12917
12934
  if (response.data.data.questions) {
@@ -12948,7 +12965,7 @@ var ActivityDetails = ({
12948
12965
  if (questions.length === 0) {
12949
12966
  const { response: activityResponse, error: activityError } = await tryFetchActivityResponse();
12950
12967
  if (!quizResponse && !activityResponse) {
12951
- const errorMessage = _optionalChain([quizError, 'optionalAccess', _401 => _401.message]) || _optionalChain([activityError, 'optionalAccess', _402 => _402.message]) || "Erro ao buscar quest\xF5es da atividade. Tente novamente.";
12968
+ const errorMessage = _optionalChain([quizError, 'optionalAccess', _403 => _403.message]) || _optionalChain([activityError, 'optionalAccess', _404 => _404.message]) || "Erro ao buscar quest\xF5es da atividade. Tente novamente.";
12952
12969
  throw new Error(errorMessage);
12953
12970
  }
12954
12971
  questions = await extractQuestionsFromResponse(activityResponse);
@@ -13072,7 +13089,7 @@ var ActivityDetails = ({
13072
13089
  onBack();
13073
13090
  }
13074
13091
  };
13075
- const subjectEnum = _optionalChain([data, 'optionalAccess', _403 => _403.activity, 'optionalAccess', _404 => _404.subjectName]) && mapSubjectNameToEnum2 ? mapSubjectNameToEnum2(data.activity.subjectName) : null;
13092
+ const subjectEnum = _optionalChain([data, 'optionalAccess', _405 => _405.activity, 'optionalAccess', _406 => _406.subjectName]) && mapSubjectNameToEnum2 ? mapSubjectNameToEnum2(data.activity.subjectName) : null;
13076
13093
  const subjectInfo = subjectEnum ? _chunk7A33ZIFEjs.getSubjectInfo.call(void 0, subjectEnum) : null;
13077
13094
  if (loading && !data) {
13078
13095
  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: [
@@ -13110,7 +13127,7 @@ var ActivityDetails = ({
13110
13127
  }
13111
13128
  ),
13112
13129
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _CaretRight.CaretRightIcon, { size: 16, className: "text-text-500" }),
13113
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { className: "text-text-950 text-sm font-bold", children: _optionalChain([data, 'access', _405 => _405.activity, 'optionalAccess', _406 => _406.title]) || "Atividade" })
13130
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { className: "text-text-950 text-sm font-bold", children: _optionalChain([data, 'access', _407 => _407.activity, 'optionalAccess', _408 => _408.title]) || "Atividade" })
13114
13131
  ] }),
13115
13132
  data.activity && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "bg-background rounded-xl p-4 flex flex-col gap-2", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-between items-start", children: [
13116
13133
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
@@ -13434,7 +13451,7 @@ var SendActivityModal = ({
13434
13451
  const handleCategoriesChange = _react.useCallback.call(void 0,
13435
13452
  (updatedCategories) => {
13436
13453
  setCategories(updatedCategories);
13437
- _optionalChain([onCategoriesChange, 'optionalCall', _407 => _407(updatedCategories)]);
13454
+ _optionalChain([onCategoriesChange, 'optionalCall', _409 => _409(updatedCategories)]);
13438
13455
  },
13439
13456
  [setCategories, onCategoriesChange]
13440
13457
  );
@@ -13993,7 +14010,7 @@ var SendLessonModal = ({
13993
14010
  const handleCategoriesChange = _react.useCallback.call(void 0,
13994
14011
  (updatedCategories) => {
13995
14012
  setCategories(updatedCategories);
13996
- _optionalChain([onCategoriesChange, 'optionalCall', _408 => _408(updatedCategories)]);
14013
+ _optionalChain([onCategoriesChange, 'optionalCall', _410 => _410(updatedCategories)]);
13997
14014
  },
13998
14015
  [setCategories, onCategoriesChange]
13999
14016
  );
@@ -14313,7 +14330,7 @@ var EditRecommendedLessonModal = ({ isOpen, recommendedClassId, fetchById, onUpd
14313
14330
  setSaving(true);
14314
14331
  try {
14315
14332
  await onUpdate(recommendedClassId, {
14316
- title: _optionalChain([formData, 'access', _409 => _409.title, 'optionalAccess', _410 => _410.trim, 'call', _411 => _411()]),
14333
+ title: _optionalChain([formData, 'access', _411 => _411.title, 'optionalAccess', _412 => _412.trim, 'call', _413 => _413()]),
14317
14334
  startDate: buildISODateTime(
14318
14335
  _nullishCoalesce(formData.startDate, () => ( "")),
14319
14336
  formData.startTime || "00:00"
@@ -14448,7 +14465,7 @@ var ModelsTabBase = ({
14448
14465
  () => ({
14449
14466
  get: async (_url, options) => {
14450
14467
  const result = await fetchModelsRef.current(
14451
- _optionalChain([options, 'optionalAccess', _412 => _412.params])
14468
+ _optionalChain([options, 'optionalAccess', _414 => _414.params])
14452
14469
  );
14453
14470
  return { data: result };
14454
14471
  },
@@ -14611,7 +14628,7 @@ var ModelsTabBase = ({
14611
14628
  isOpen: deleteDialogOpen,
14612
14629
  onChangeOpen: setDeleteDialogOpen,
14613
14630
  title: "Deletar modelo",
14614
- description: `Tem certeza que deseja deletar o modelo "${_optionalChain([modelToDelete, 'optionalAccess', _413 => _413.title])}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
14631
+ description: `Tem certeza que deseja deletar o modelo "${_optionalChain([modelToDelete, 'optionalAccess', _415 => _415.title])}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
14615
14632
  submitButtonLabel: "Deletar",
14616
14633
  cancelButtonLabel: "Cancelar",
14617
14634
  onSubmit: handleConfirmDelete,
@@ -14623,7 +14640,7 @@ var ModelsTabBase = ({
14623
14640
 
14624
14641
  // src/components/RecommendedLessonsHistory/config/modelsFiltersConfig.ts
14625
14642
  var getSubjectOptions = (data) => {
14626
- if (!_optionalChain([data, 'optionalAccess', _414 => _414.subjects])) return [];
14643
+ if (!_optionalChain([data, 'optionalAccess', _416 => _416.subjects])) return [];
14627
14644
  return data.subjects.map((subject) => ({
14628
14645
  id: subject.id,
14629
14646
  name: subject.name
@@ -14715,7 +14732,7 @@ var RecommendedClassModelsTab = ({
14715
14732
 
14716
14733
  // src/components/RecommendedLessonsHistory/config/draftsFiltersConfig.ts
14717
14734
  var getSubjectOptions2 = (data) => {
14718
- if (!_optionalChain([data, 'optionalAccess', _415 => _415.subjects])) return [];
14735
+ if (!_optionalChain([data, 'optionalAccess', _417 => _417.subjects])) return [];
14719
14736
  return data.subjects.map((subject) => ({
14720
14737
  id: subject.id,
14721
14738
  name: subject.name
@@ -14835,28 +14852,28 @@ var buildFiltersFromParams = (params) => {
14835
14852
  return filters;
14836
14853
  };
14837
14854
  var getSchoolOptions = (data) => {
14838
- if (!_optionalChain([data, 'optionalAccess', _416 => _416.schools])) return [];
14855
+ if (!_optionalChain([data, 'optionalAccess', _418 => _418.schools])) return [];
14839
14856
  return data.schools.map((school) => ({
14840
14857
  id: school.id,
14841
14858
  name: school.name
14842
14859
  }));
14843
14860
  };
14844
14861
  var getSchoolYearOptions = (data) => {
14845
- if (!_optionalChain([data, 'optionalAccess', _417 => _417.schoolYears])) return [];
14862
+ if (!_optionalChain([data, 'optionalAccess', _419 => _419.schoolYears])) return [];
14846
14863
  return data.schoolYears.map((year) => ({
14847
14864
  id: year.id,
14848
14865
  name: year.name
14849
14866
  }));
14850
14867
  };
14851
14868
  var getClassOptions = (data) => {
14852
- if (!_optionalChain([data, 'optionalAccess', _418 => _418.classes])) return [];
14869
+ if (!_optionalChain([data, 'optionalAccess', _420 => _420.classes])) return [];
14853
14870
  return data.classes.map((cls) => ({
14854
14871
  id: cls.id,
14855
14872
  name: cls.name
14856
14873
  }));
14857
14874
  };
14858
14875
  var getSubjectOptions3 = (data) => {
14859
- if (!_optionalChain([data, 'optionalAccess', _419 => _419.subjects])) return [];
14876
+ if (!_optionalChain([data, 'optionalAccess', _421 => _421.subjects])) return [];
14860
14877
  return data.subjects.map((subject) => ({
14861
14878
  id: subject.id,
14862
14879
  name: subject.name
@@ -14950,7 +14967,7 @@ var createTableColumns2 = (mapSubjectNameToEnum2, onDelete, onEdit, currentUserI
14950
14967
  className: "max-w-[140px]",
14951
14968
  render: (value) => {
14952
14969
  const subjectName = typeof value === "string" ? value : "";
14953
- const subjectEnum = _optionalChain([mapSubjectNameToEnum2, 'optionalCall', _420 => _420(subjectName)]);
14970
+ const subjectEnum = _optionalChain([mapSubjectNameToEnum2, 'optionalCall', _422 => _422(subjectName)]);
14954
14971
  if (!subjectEnum) {
14955
14972
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDDLKYZKGjs.TruncatedText, { size: "sm", children: subjectName });
14956
14973
  }
@@ -15032,11 +15049,11 @@ var createTableColumns2 = (mapSubjectNameToEnum2, onDelete, onEdit, currentUserI
15032
15049
  }
15033
15050
  const handleDelete = (e) => {
15034
15051
  e.stopPropagation();
15035
- _optionalChain([onDelete, 'optionalCall', _421 => _421(row)]);
15052
+ _optionalChain([onDelete, 'optionalCall', _423 => _423(row)]);
15036
15053
  };
15037
15054
  const handleEdit = (e) => {
15038
15055
  e.stopPropagation();
15039
- _optionalChain([onEdit, 'optionalCall', _422 => _422(row)]);
15056
+ _optionalChain([onEdit, 'optionalCall', _424 => _424(row)]);
15040
15057
  };
15041
15058
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex justify-center gap-2", children: [
15042
15059
  onDelete && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -15111,7 +15128,7 @@ var RecommendedLessonsHistory = ({
15111
15128
  (value) => {
15112
15129
  const newTab = value;
15113
15130
  setActiveTab(newTab);
15114
- _optionalChain([onTabChange, 'optionalCall', _423 => _423(newTab)]);
15131
+ _optionalChain([onTabChange, 'optionalCall', _425 => _425(newTab)]);
15115
15132
  },
15116
15133
  [onTabChange]
15117
15134
  );
@@ -15227,7 +15244,7 @@ var RecommendedLessonsHistory = ({
15227
15244
  }
15228
15245
  },
15229
15246
  title: "Excluir aula recomendada",
15230
- description: `Tem certeza que deseja excluir a aula "${_nullishCoalesce(_optionalChain([recommendedClassToDelete, 'optionalAccess', _424 => _424.title]), () => ( ""))}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
15247
+ description: `Tem certeza que deseja excluir a aula "${_nullishCoalesce(_optionalChain([recommendedClassToDelete, 'optionalAccess', _426 => _426.title]), () => ( ""))}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
15231
15248
  submitButtonLabel: "Excluir",
15232
15249
  cancelButtonLabel: "Cancelar",
15233
15250
  submitAction: "negative",
@@ -15555,7 +15572,7 @@ var createUseRecommendedLessonDetails = (apiClient) => {
15555
15572
  const historyItem = validatedHistory.data.recommendedClass.find(
15556
15573
  (g) => g.recommendedClass.id === lessonId
15557
15574
  );
15558
- breakdown = _optionalChain([historyItem, 'optionalAccess', _425 => _425.breakdown, 'access', _426 => _426[0]]);
15575
+ breakdown = _optionalChain([historyItem, 'optionalAccess', _427 => _427.breakdown, 'access', _428 => _428[0]]);
15559
15576
  }
15560
15577
  const lessonData = {
15561
15578
  recommendedClass: validatedRecommendedClass.data,
@@ -15641,14 +15658,14 @@ var buildModelsFiltersFromParams = (params) => {
15641
15658
 
15642
15659
  // src/components/ActivitiesHistory/utils/filterOptions.ts
15643
15660
  var getSchoolOptions2 = (data) => {
15644
- if (!_optionalChain([data, 'optionalAccess', _427 => _427.schools])) return [];
15661
+ if (!_optionalChain([data, 'optionalAccess', _429 => _429.schools])) return [];
15645
15662
  return data.schools.map((school) => ({
15646
15663
  id: school.id,
15647
15664
  name: school.name
15648
15665
  }));
15649
15666
  };
15650
15667
  var getSubjectOptions4 = (data) => {
15651
- if (!_optionalChain([data, 'optionalAccess', _428 => _428.subjects])) return [];
15668
+ if (!_optionalChain([data, 'optionalAccess', _430 => _430.subjects])) return [];
15652
15669
  return data.subjects.map((subject) => ({
15653
15670
  id: subject.id,
15654
15671
  name: subject.name
@@ -15810,7 +15827,7 @@ var HistoryTab = ({
15810
15827
  const apiClientAdapter = _react.useMemo.call(void 0,
15811
15828
  () => ({
15812
15829
  get: async (_url, options) => {
15813
- const result = await fetchActivitiesHistoryRef.current(_optionalChain([options, 'optionalAccess', _429 => _429.params]));
15830
+ const result = await fetchActivitiesHistoryRef.current(_optionalChain([options, 'optionalAccess', _431 => _431.params]));
15814
15831
  return { data: result };
15815
15832
  },
15816
15833
  // Methods not used by this component but required by BaseApiClient
@@ -16160,13 +16177,13 @@ function BasePageLayout({
16160
16177
  const { isMobile } = _chunkZHWRUIVEjs.useMobile.call(void 0, );
16161
16178
  const tableKey = _react.useMemo.call(void 0, () => {
16162
16179
  const totalOptions = Array.isArray(initialFilters) ? initialFilters.flatMap((group) => group.categories).reduce(
16163
- (sum, cat) => sum + (_nullishCoalesce(_optionalChain([cat, 'access', _430 => _430.itens, 'optionalAccess', _431 => _431.length]), () => ( 0))),
16180
+ (sum, cat) => sum + (_nullishCoalesce(_optionalChain([cat, 'access', _432 => _432.itens, 'optionalAccess', _433 => _433.length]), () => ( 0))),
16164
16181
  0
16165
16182
  ) : 0;
16166
16183
  return `filters-${totalOptions}`;
16167
16184
  }, [initialFilters]);
16168
16185
  const enableFilters = _react.useMemo.call(void 0,
16169
- () => Array.isArray(initialFilters) && initialFilters.flatMap((g) => g.categories).some((c) => (_nullishCoalesce(_optionalChain([c, 'access', _432 => _432.itens, 'optionalAccess', _433 => _433.length]), () => ( 0))) > 0),
16186
+ () => Array.isArray(initialFilters) && initialFilters.flatMap((g) => g.categories).some((c) => (_nullishCoalesce(_optionalChain([c, 'access', _434 => _434.itens, 'optionalAccess', _435 => _435.length]), () => ( 0))) > 0),
16170
16187
  [initialFilters]
16171
16188
  );
16172
16189
  const handleTabChange = _react.useCallback.call(void 0,
@@ -17156,7 +17173,7 @@ var UnifiedHistoryPage = ({
17156
17173
  }
17157
17174
  },
17158
17175
  title: "Excluir atividade",
17159
- description: `Tem certeza que deseja excluir a atividade "${_nullishCoalesce(_optionalChain([activityToDelete, 'optionalAccess', _434 => _434.title]), () => ( ""))}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
17176
+ description: `Tem certeza que deseja excluir a atividade "${_nullishCoalesce(_optionalChain([activityToDelete, 'optionalAccess', _436 => _436.title]), () => ( ""))}"? Esta a\xE7\xE3o n\xE3o pode ser desfeita.`,
17160
17177
  submitButtonLabel: "Excluir",
17161
17178
  cancelButtonLabel: "Cancelar",
17162
17179
  submitAction: "negative",
@@ -17168,7 +17185,7 @@ var UnifiedHistoryPage = ({
17168
17185
  EditActivityModal,
17169
17186
  {
17170
17187
  isOpen: !!activityToEdit,
17171
- activityId: _optionalChain([activityToEdit, 'optionalAccess', _435 => _435.id]),
17188
+ activityId: _optionalChain([activityToEdit, 'optionalAccess', _437 => _437.id]),
17172
17189
  apiClient,
17173
17190
  onClose: () => setActivityToEdit(null),
17174
17191
  onSaved: () => {
@@ -17415,7 +17432,7 @@ var useActivityDraftModelPage = ({
17415
17432
  const handleEdit = _react.useCallback.call(void 0,
17416
17433
  (row) => {
17417
17434
  navigate(
17418
- _optionalChain([routes, 'access', _436 => _436.editDraft, 'optionalCall', _437 => _437(row.id)]) || _optionalChain([routes, 'access', _438 => _438.editModel, 'optionalCall', _439 => _439(row.id)]) || `${routes.create}?type=${editUrlType}&id=${row.id}`
17435
+ _optionalChain([routes, 'access', _438 => _438.editDraft, 'optionalCall', _439 => _439(row.id)]) || _optionalChain([routes, 'access', _440 => _440.editModel, 'optionalCall', _441 => _441(row.id)]) || `${routes.create}?type=${editUrlType}&id=${row.id}`
17419
17436
  );
17420
17437
  },
17421
17438
  [navigate, routes, editUrlType]
@@ -17465,7 +17482,7 @@ var useActivityDraftModelPage = ({
17465
17482
  const handleRowClick = _react.useCallback.call(void 0,
17466
17483
  (row) => {
17467
17484
  navigate(
17468
- _optionalChain([routes, 'access', _440 => _440.editDraft, 'optionalCall', _441 => _441(row.id)]) || _optionalChain([routes, 'access', _442 => _442.editModel, 'optionalCall', _443 => _443(row.id)]) || `${routes.create}?type=${editUrlType}&id=${row.id}`
17485
+ _optionalChain([routes, 'access', _442 => _442.editDraft, 'optionalCall', _443 => _443(row.id)]) || _optionalChain([routes, 'access', _444 => _444.editModel, 'optionalCall', _445 => _445(row.id)]) || `${routes.create}?type=${editUrlType}&id=${row.id}`
17469
17486
  );
17470
17487
  },
17471
17488
  [navigate, routes, editUrlType]
@@ -17512,7 +17529,7 @@ var UnifiedDraftModelPage = ({
17512
17529
  );
17513
17530
  const apiSubjectOptions = _react.useMemo.call(void 0,
17514
17531
  () => data.filter(
17515
- (item) => item.subjectId && _optionalChain([item, 'access', _444 => _444.subject, 'optionalAccess', _445 => _445.name]) && item.subject.name !== "-"
17532
+ (item) => item.subjectId && _optionalChain([item, 'access', _446 => _446.subject, 'optionalAccess', _447 => _447.name]) && item.subject.name !== "-"
17516
17533
  ).map((item) => ({
17517
17534
  id: item.subjectId,
17518
17535
  name: item.subject.name
@@ -17638,9 +17655,9 @@ function ChatLoading() {
17638
17655
  var replaceTopicById = (topicId, body) => (prev) => prev.map((t) => t.id === topicId ? { ...t, ...body } : t);
17639
17656
  var removeTopicById = (topicId) => (prev) => prev.filter((t) => t.id !== topicId);
17640
17657
  var replaceReplyById = (replyId, body) => (prev) => prev.map((r) => r.id === replyId ? { ...r, ...body } : r);
17641
- var updateSelectedTopic = (topicId, body) => (prev) => _optionalChain([prev, 'optionalAccess', _446 => _446.id]) === topicId ? { ...prev, ...body } : prev;
17658
+ var updateSelectedTopic = (topicId, body) => (prev) => _optionalChain([prev, 'optionalAccess', _448 => _448.id]) === topicId ? { ...prev, ...body } : prev;
17642
17659
  var clearSelectedTopicIfMatch = (topicId, clearReplies) => (prev) => {
17643
- if (_optionalChain([prev, 'optionalAccess', _447 => _447.id]) === topicId) {
17660
+ if (_optionalChain([prev, 'optionalAccess', _449 => _449.id]) === topicId) {
17644
17661
  clearReplies();
17645
17662
  return null;
17646
17663
  }
@@ -17794,7 +17811,7 @@ function formatDateDisplay(isoDate) {
17794
17811
  function getPeriodSelectionLabel(selection) {
17795
17812
  if (selection.type === "fixed") {
17796
17813
  const tab = _chunkVZMCTNX7js.PERIOD_TABS.find((t) => t.value === selection.period);
17797
- return _nullishCoalesce(_optionalChain([tab, 'optionalAccess', _448 => _448.label]), () => ( "1 ano"));
17814
+ return _nullishCoalesce(_optionalChain([tab, 'optionalAccess', _450 => _450.label]), () => ( "1 ano"));
17798
17815
  }
17799
17816
  if (selection.startDate && selection.endDate) {
17800
17817
  return `${formatDateDisplay(selection.startDate)} - ${formatDateDisplay(selection.endDate)}`;
@@ -18085,13 +18102,13 @@ function SimulatedPerformanceView({
18085
18102
  const data = aggregatedOverview.data;
18086
18103
  if (_chunkCABP6AHSjs.isStudentsData.call(void 0, data, aggregationType)) {
18087
18104
  return {
18088
- highlightItems: _optionalChain([data, 'access', _449 => _449.topHighlights, 'optionalAccess', _450 => _450.map, 'call', _451 => _451((s, index) => ({
18105
+ highlightItems: _optionalChain([data, 'access', _451 => _451.topHighlights, 'optionalAccess', _452 => _452.map, 'call', _453 => _453((s, index) => ({
18089
18106
  position: index + 1,
18090
18107
  name: s.name,
18091
18108
  average: s.average,
18092
18109
  userInstitutionId: s.userInstitutionId
18093
18110
  }))]) || [],
18094
- attentionItems: _optionalChain([data, 'access', _452 => _452.topDifficulties, 'optionalAccess', _453 => _453.map, 'call', _454 => _454((s, index) => ({
18111
+ attentionItems: _optionalChain([data, 'access', _454 => _454.topDifficulties, 'optionalAccess', _455 => _455.map, 'call', _456 => _456((s, index) => ({
18095
18112
  position: index + 1,
18096
18113
  name: s.name,
18097
18114
  average: s.average,
@@ -18103,14 +18120,14 @@ function SimulatedPerformanceView({
18103
18120
  }
18104
18121
  if (_chunkCABP6AHSjs.isClassesData.call(void 0, data, aggregationType)) {
18105
18122
  return {
18106
- highlightItems: _optionalChain([data, 'access', _455 => _455.topHighlights, 'optionalAccess', _456 => _456.map, 'call', _457 => _457((c, index) => ({
18123
+ highlightItems: _optionalChain([data, 'access', _457 => _457.topHighlights, 'optionalAccess', _458 => _458.map, 'call', _459 => _459((c, index) => ({
18107
18124
  position: index + 1,
18108
18125
  name: `${c.className} - ${c.schoolName}`,
18109
18126
  average: c.average,
18110
18127
  subtitle: `${c.studentCount} estudantes`,
18111
18128
  userInstitutionId: c.classId
18112
18129
  }))]) || [],
18113
- attentionItems: _optionalChain([data, 'access', _458 => _458.topDifficulties, 'optionalAccess', _459 => _459.map, 'call', _460 => _460((c, index) => ({
18130
+ attentionItems: _optionalChain([data, 'access', _460 => _460.topDifficulties, 'optionalAccess', _461 => _461.map, 'call', _462 => _462((c, index) => ({
18114
18131
  position: index + 1,
18115
18132
  name: `${c.className} - ${c.schoolName}`,
18116
18133
  average: c.average,
@@ -18123,13 +18140,13 @@ function SimulatedPerformanceView({
18123
18140
  }
18124
18141
  if (_chunkCABP6AHSjs.isMunicipalitiesData.call(void 0, data, aggregationType)) {
18125
18142
  return {
18126
- highlightItems: _optionalChain([data, 'access', _461 => _461.topHighlights, 'optionalAccess', _462 => _462.map, 'call', _463 => _463((m, index) => ({
18143
+ highlightItems: _optionalChain([data, 'access', _463 => _463.topHighlights, 'optionalAccess', _464 => _464.map, 'call', _465 => _465((m, index) => ({
18127
18144
  position: index + 1,
18128
18145
  name: `${m.municipality} - ${m.state}`,
18129
18146
  average: m.average,
18130
18147
  subtitle: `${m.schoolCount} escolas, ${m.studentCount} estudantes`
18131
18148
  }))]) || [],
18132
- attentionItems: _optionalChain([data, 'access', _464 => _464.topDifficulties, 'optionalAccess', _465 => _465.map, 'call', _466 => _466((m, index) => ({
18149
+ attentionItems: _optionalChain([data, 'access', _466 => _466.topDifficulties, 'optionalAccess', _467 => _467.map, 'call', _468 => _468((m, index) => ({
18133
18150
  position: index + 1,
18134
18151
  name: `${m.municipality} - ${m.state}`,
18135
18152
  average: m.average,
@@ -18168,11 +18185,11 @@ function SimulatedPerformanceView({
18168
18185
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18169
18186
  _chunkCABP6AHSjs.AreaKnowledgeSelector,
18170
18187
  {
18171
- areas: _optionalChain([generalOverview, 'access', _467 => _467.data, 'optionalAccess', _468 => _468.areas]) || [],
18188
+ areas: _optionalChain([generalOverview, 'access', _469 => _469.data, 'optionalAccess', _470 => _470.areas]) || [],
18172
18189
  selectedAreaId: selectedAreaKnowledgeId,
18173
18190
  onAreaChange: handleAreaKnowledgeChange,
18174
18191
  loading: generalOverview.loading,
18175
- includeEssay: !!_optionalChain([generalOverview, 'access', _469 => _469.data, 'optionalAccess', _470 => _470.essay])
18192
+ includeEssay: !!_optionalChain([generalOverview, 'access', _471 => _471.data, 'optionalAccess', _472 => _472.essay])
18176
18193
  }
18177
18194
  ),
18178
18195
  selectedAreaKnowledgeId !== _chunkCABP6AHSjs.ESSAY_AREA_ID && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -18223,8 +18240,8 @@ function SimulatedPerformanceView({
18223
18240
  !studentsOverview.error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18224
18241
  PerformanceDistributionChart,
18225
18242
  {
18226
- counters: _optionalChain([studentsOverview, 'access', _471 => _471.data, 'optionalAccess', _472 => _472.counters]),
18227
- totalStudents: _optionalChain([studentsOverview, 'access', _473 => _473.data, 'optionalAccess', _474 => _474.totalStudents]),
18243
+ counters: _optionalChain([studentsOverview, 'access', _473 => _473.data, 'optionalAccess', _474 => _474.counters]),
18244
+ totalStudents: _optionalChain([studentsOverview, 'access', _475 => _475.data, 'optionalAccess', _476 => _476.totalStudents]),
18228
18245
  loading: studentsOverview.loading
18229
18246
  }
18230
18247
  ),
@@ -18247,7 +18264,7 @@ function SimulatedPerformanceView({
18247
18264
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18248
18265
  TableProvider_default,
18249
18266
  {
18250
- data: _optionalChain([studentsOverview, 'access', _475 => _475.data, 'optionalAccess', _476 => _476.students, 'optionalAccess', _477 => _477.data]) || [],
18267
+ data: _optionalChain([studentsOverview, 'access', _477 => _477.data, 'optionalAccess', _478 => _478.students, 'optionalAccess', _479 => _479.data]) || [],
18251
18268
  headers: studentsTableColumns,
18252
18269
  variant: "borderless",
18253
18270
  loading: studentsOverview.loading,
@@ -18261,8 +18278,8 @@ function SimulatedPerformanceView({
18261
18278
  paginationConfig: {
18262
18279
  itemLabel: "estudantes",
18263
18280
  itemsPerPageOptions: [10, 20, 50, 100],
18264
- defaultItemsPerPage: _optionalChain([studentsOverview, 'access', _478 => _478.data, 'optionalAccess', _479 => _479.students, 'optionalAccess', _480 => _480.limit]) || 10,
18265
- totalItems: _optionalChain([studentsOverview, 'access', _481 => _481.data, 'optionalAccess', _482 => _482.students, 'optionalAccess', _483 => _483.total]) || 0
18281
+ defaultItemsPerPage: _optionalChain([studentsOverview, 'access', _480 => _480.data, 'optionalAccess', _481 => _481.students, 'optionalAccess', _482 => _482.limit]) || 10,
18282
+ totalItems: _optionalChain([studentsOverview, 'access', _483 => _483.data, 'optionalAccess', _484 => _484.students, 'optionalAccess', _485 => _485.total]) || 0
18266
18283
  },
18267
18284
  searchPlaceholder: "Buscar estudante",
18268
18285
  noSearchResultState: noSearchImage ? { image: noSearchImage } : void 0,
@@ -18300,7 +18317,7 @@ function SimulatedPerformanceView({
18300
18317
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18301
18318
  TableProvider_default,
18302
18319
  {
18303
- data: _optionalChain([contentsPerformance, 'access', _484 => _484.data, 'optionalAccess', _485 => _485.data]) || [],
18320
+ data: _optionalChain([contentsPerformance, 'access', _486 => _486.data, 'optionalAccess', _487 => _487.data]) || [],
18304
18321
  headers: contentsTableColumns,
18305
18322
  variant: "borderless",
18306
18323
  loading: contentsPerformance.loading,
@@ -18314,8 +18331,8 @@ function SimulatedPerformanceView({
18314
18331
  paginationConfig: {
18315
18332
  itemLabel: "habilidades",
18316
18333
  itemsPerPageOptions: [10, 20, 50, 100],
18317
- defaultItemsPerPage: _optionalChain([contentsPerformance, 'access', _486 => _486.data, 'optionalAccess', _487 => _487.limit]) || 10,
18318
- totalItems: _optionalChain([contentsPerformance, 'access', _488 => _488.data, 'optionalAccess', _489 => _489.total]) || 0
18334
+ defaultItemsPerPage: _optionalChain([contentsPerformance, 'access', _488 => _488.data, 'optionalAccess', _489 => _489.limit]) || 10,
18335
+ totalItems: _optionalChain([contentsPerformance, 'access', _490 => _490.data, 'optionalAccess', _491 => _491.total]) || 0
18319
18336
  },
18320
18337
  searchPlaceholder: "Buscar habilidade",
18321
18338
  noSearchResultState: noSearchImage ? { image: noSearchImage } : void 0,
@@ -18340,8 +18357,8 @@ function SimulatedPerformanceView({
18340
18357
  api,
18341
18358
  isOpen: studentModal.isOpen,
18342
18359
  onClose: studentModal.close,
18343
- userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access', _490 => _490.student, 'optionalAccess', _491 => _491.userInstitutionId]), () => ( null)),
18344
- studentName: _optionalChain([studentModal, 'access', _492 => _492.student, 'optionalAccess', _493 => _493.name]),
18360
+ userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access', _492 => _492.student, 'optionalAccess', _493 => _493.userInstitutionId]), () => ( null)),
18361
+ studentName: _optionalChain([studentModal, 'access', _494 => _494.student, 'optionalAccess', _495 => _495.name]),
18345
18362
  period,
18346
18363
  schoolIds: filters.schoolIds,
18347
18364
  schoolYearIds: filters.schoolYearIds,
@@ -18354,8 +18371,8 @@ function SimulatedPerformanceView({
18354
18371
  isOpen: studentModal.isOpen,
18355
18372
  onClose: studentModal.close,
18356
18373
  simulationType: "enem-1",
18357
- userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access', _494 => _494.student, 'optionalAccess', _495 => _495.userInstitutionId]), () => ( null)),
18358
- studentName: _optionalChain([studentModal, 'access', _496 => _496.student, 'optionalAccess', _497 => _497.name]),
18374
+ userInstitutionId: _nullishCoalesce(_optionalChain([studentModal, 'access', _496 => _496.student, 'optionalAccess', _497 => _497.userInstitutionId]), () => ( null)),
18375
+ studentName: _optionalChain([studentModal, 'access', _498 => _498.student, 'optionalAccess', _499 => _499.name]),
18359
18376
  period
18360
18377
  }
18361
18378
  ),
@@ -18370,8 +18387,8 @@ function SimulatedPerformanceView({
18370
18387
  subtypes: [],
18371
18388
  statuses: ["CONCLUIDA"]
18372
18389
  },
18373
- contentId: _nullishCoalesce(_optionalChain([contentModal, 'access', _498 => _498.content, 'optionalAccess', _499 => _499.contentId]), () => ( null)),
18374
- contentName: _optionalChain([contentModal, 'access', _500 => _500.content, 'optionalAccess', _501 => _501.contentName]),
18390
+ contentId: _nullishCoalesce(_optionalChain([contentModal, 'access', _500 => _500.content, 'optionalAccess', _501 => _501.contentId]), () => ( null)),
18391
+ contentName: _optionalChain([contentModal, 'access', _502 => _502.content, 'optionalAccess', _503 => _503.contentName]),
18375
18392
  period,
18376
18393
  filters
18377
18394
  }
@@ -18482,7 +18499,7 @@ function NoteRow({
18482
18499
  const [saving, setSaving] = _react.useState.call(void 0, false);
18483
18500
  const [error, setError] = _react.useState.call(void 0, null);
18484
18501
  const startEditing = () => {
18485
- setDraft(_nullishCoalesce(_optionalChain([note, 'optionalAccess', _502 => _502.note]), () => ( "")));
18502
+ setDraft(_nullishCoalesce(_optionalChain([note, 'optionalAccess', _504 => _504.note]), () => ( "")));
18486
18503
  setError(null);
18487
18504
  setEditing(true);
18488
18505
  };
@@ -18540,9 +18557,9 @@ function NoteRow({
18540
18557
  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: [
18541
18558
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
18542
18559
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Observa\xE7\xE3o" }),
18543
- _optionalChain([note, 'optionalAccess', _503 => _503.note]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "truncate text-text-700", children: note.note })
18560
+ _optionalChain([note, 'optionalAccess', _505 => _505.note]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "truncate text-text-700", children: note.note })
18544
18561
  ] }),
18545
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW6CNLVYFjs.Button_default, { variant: "solid", size: "small", onClick: startEditing, children: _optionalChain([note, 'optionalAccess', _504 => _504.note]) ? "Editar" : "Incluir" })
18562
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkW6CNLVYFjs.Button_default, { variant: "solid", size: "small", onClick: startEditing, children: _optionalChain([note, 'optionalAccess', _506 => _506.note]) ? "Editar" : "Incluir" })
18546
18563
  ] });
18547
18564
  }
18548
18565
  function SimulationItem({
@@ -18560,12 +18577,12 @@ function SimulationItem({
18560
18577
  value: simulation.id,
18561
18578
  expanded,
18562
18579
  onToggleExpanded: onToggle,
18563
- trigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { weight: "bold", className: "text-text-950", children: _optionalChain([simulation, 'access', _505 => _505.title, 'optionalAccess', _506 => _506.trim, 'call', _507 => _507()]) ? simulation.title.trim() : `Simulado ${index + 1}` }) }),
18580
+ trigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 py-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { weight: "bold", className: "text-text-950", children: _optionalChain([simulation, 'access', _507 => _507.title, 'optionalAccess', _508 => _508.trim, 'call', _509 => _509()]) ? simulation.title.trim() : `Simulado ${index + 1}` }) }),
18564
18581
  contentClassName: "px-3 pb-4",
18565
18582
  children: [
18566
- _optionalChain([detail, 'optionalAccess', _508 => _508.loading]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH5LPF5Wjs.SkeletonCard, { className: "h-40" }),
18567
- _optionalChain([detail, 'optionalAccess', _509 => _509.error]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "text-error-600", children: detail.error }),
18568
- _optionalChain([detail, 'optionalAccess', _510 => _510.data]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
18583
+ _optionalChain([detail, 'optionalAccess', _510 => _510.loading]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH5LPF5Wjs.SkeletonCard, { className: "h-40" }),
18584
+ _optionalChain([detail, 'optionalAccess', _511 => _511.error]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "text-error-600", children: detail.error }),
18585
+ _optionalChain([detail, 'optionalAccess', _512 => _512.data]) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4", children: [
18569
18586
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex gap-3", children: [
18570
18587
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18571
18588
  _chunkLBYHZXIDjs.StatCard,
@@ -18598,8 +18615,8 @@ function SimulationItem({
18598
18615
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
18599
18616
  NoteRow,
18600
18617
  {
18601
- note: _nullishCoalesce(_optionalChain([note, 'optionalAccess', _511 => _511.data]), () => ( null)),
18602
- loading: _nullishCoalesce(_optionalChain([note, 'optionalAccess', _512 => _512.loading]), () => ( false)),
18618
+ note: _nullishCoalesce(_optionalChain([note, 'optionalAccess', _513 => _513.data]), () => ( null)),
18619
+ loading: _nullishCoalesce(_optionalChain([note, 'optionalAccess', _514 => _514.loading]), () => ( false)),
18603
18620
  onSave: onSaveNote
18604
18621
  }
18605
18622
  ),
@@ -18648,7 +18665,7 @@ function SimulationsDetailModal({
18648
18665
  const requestEpochRef = _react.useRef.call(void 0, 0);
18649
18666
  _react.useEffect.call(void 0, () => {
18650
18667
  requestEpochRef.current += 1;
18651
- }, [isOpen, _optionalChain([student, 'optionalAccess', _513 => _513.userInstitutionId])]);
18668
+ }, [isOpen, _optionalChain([student, 'optionalAccess', _515 => _515.userInstitutionId])]);
18652
18669
  const isStaleResponse = _react.useCallback.call(void 0,
18653
18670
  (epoch) => !mountedRef.current || requestEpochRef.current !== epoch,
18654
18671
  []
@@ -18760,13 +18777,13 @@ function SimulationsDetailModal({
18760
18777
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { weight: "bold", className: "text-text-950", children: student.name })
18761
18778
  ] }),
18762
18779
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "text-info-700", children: [
18763
- _nullishCoalesce(_optionalChain([list, 'optionalAccess', _514 => _514.student, 'access', _515 => _515.simulationsAnswered]), () => ( 0)),
18780
+ _nullishCoalesce(_optionalChain([list, 'optionalAccess', _516 => _516.student, 'access', _517 => _517.simulationsAnswered]), () => ( 0)),
18764
18781
  " simulados respondidos"
18765
18782
  ] })
18766
18783
  ] }),
18767
18784
  listLoading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLH5LPF5Wjs.SkeletonCard, { className: "h-20" }),
18768
18785
  listError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "text-error-600", children: listError }),
18769
- _optionalChain([list, 'optionalAccess', _516 => _516.simulations, 'access', _517 => _517.data, 'access', _518 => _518.length]) === 0 && !listLoading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "text-text-600", children: "Este estudante ainda n\xE3o respondeu nenhum simulado." }),
18786
+ _optionalChain([list, 'optionalAccess', _518 => _518.simulations, 'access', _519 => _519.data, 'access', _520 => _520.length]) === 0 && !listLoading && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "text-text-600", children: "Este estudante ainda n\xE3o respondeu nenhum simulado." }),
18770
18787
  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,
18771
18788
  SimulationItem,
18772
18789
  {
@@ -18818,8 +18835,8 @@ function SimulationsPage({ api, noSearchImage }) {
18818
18835
  fetchStudents({
18819
18836
  page: params.page,
18820
18837
  limit: params.limit,
18821
- search: _optionalChain([params, 'access', _519 => _519.search, 'optionalAccess', _520 => _520.trim, 'call', _521 => _521()]) || void 0,
18822
- classIds: _optionalChain([classIds, 'optionalAccess', _522 => _522.length]) ? classIds : void 0
18838
+ search: _optionalChain([params, 'access', _521 => _521.search, 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) || void 0,
18839
+ classIds: _optionalChain([classIds, 'optionalAccess', _524 => _524.length]) ? classIds : void 0
18823
18840
  }).then((result) => {
18824
18841
  setStudents(result.data);
18825
18842
  setTotal(result.total);
@@ -19447,10 +19464,10 @@ var ExamDetailsPage = ({
19447
19464
  }
19448
19465
  }, []);
19449
19466
  const studentsTableData = _react.useMemo.call(void 0,
19450
- () => _nullishCoalesce(_optionalChain([examData, 'optionalAccess', _523 => _523.students, 'access', _524 => _524.map, 'call', _525 => _525((student) => ({
19467
+ () => _nullishCoalesce(_optionalChain([examData, 'optionalAccess', _525 => _525.students, 'access', _526 => _526.map, 'call', _527 => _527((student) => ({
19451
19468
  ...student
19452
19469
  }))]), () => ( [])),
19453
- [_optionalChain([examData, 'optionalAccess', _526 => _526.students])]
19470
+ [_optionalChain([examData, 'optionalAccess', _528 => _528.students])]
19454
19471
  );
19455
19472
  const handleDownloadExam = _react.useCallback.call(void 0, async () => {
19456
19473
  if (!examId || isLoadingExamPdf) return;
@@ -19506,12 +19523,12 @@ var ExamDetailsPage = ({
19506
19523
  { params: { studentFrontendUrl, institutionId } }
19507
19524
  );
19508
19525
  const { student, activity, qrCodeUrl, schoolClass } = response.data.data;
19509
- const [school, className] = _optionalChain([schoolClass, 'optionalAccess', _527 => _527.split, 'call', _528 => _528(" - ")]) || ["", ""];
19526
+ const [school, className] = _optionalChain([schoolClass, 'optionalAccess', _529 => _529.split, 'call', _530 => _530(" - ")]) || ["", ""];
19510
19527
  setAnswerSheetPreviewData({
19511
19528
  studentName: student.name,
19512
19529
  qrCodeUrl,
19513
19530
  totalQuestions: activity.totalQuestions,
19514
- examTitle: _optionalChain([examData, 'optionalAccess', _529 => _529.title]),
19531
+ examTitle: _optionalChain([examData, 'optionalAccess', _531 => _531.title]),
19515
19532
  schoolName: school || void 0,
19516
19533
  className: className || void 0
19517
19534
  });
@@ -19522,7 +19539,7 @@ var ExamDetailsPage = ({
19522
19539
  setLoadingStudentId(null);
19523
19540
  }
19524
19541
  },
19525
- [examId, institutionId, apiClient, _optionalChain([examData, 'optionalAccess', _530 => _530.title])]
19542
+ [examId, institutionId, apiClient, _optionalChain([examData, 'optionalAccess', _532 => _532.title])]
19526
19543
  );
19527
19544
  const handleViewAnswers = _react.useCallback.call(void 0,
19528
19545
  async (studentId) => {
@@ -19569,7 +19586,7 @@ var ExamDetailsPage = ({
19569
19586
  );
19570
19587
  const { exam, students } = response.data.data;
19571
19588
  const answerSheets = students.map((s) => {
19572
- const [school, className] = _optionalChain([s, 'access', _531 => _531.schoolClass, 'optionalAccess', _532 => _532.split, 'call', _533 => _533(" - ")]) || ["", ""];
19589
+ const [school, className] = _optionalChain([s, 'access', _533 => _533.schoolClass, 'optionalAccess', _534 => _534.split, 'call', _535 => _535(" - ")]) || ["", ""];
19573
19590
  return {
19574
19591
  studentName: s.student.name,
19575
19592
  qrCodeUrl: s.qrCodeUrl,
@@ -19695,7 +19712,7 @@ var CheckboxGroup = ({
19695
19712
  setSearchQueries((prev) => ({ ...prev, [categoryKey]: value }));
19696
19713
  };
19697
19714
  const filterGroupsBySearch = (categoryKey, groups) => {
19698
- const query = _optionalChain([searchQueries, 'access', _534 => _534[categoryKey], 'optionalAccess', _535 => _535.trim, 'call', _536 => _536(), 'access', _537 => _537.toLowerCase, 'call', _538 => _538()]);
19715
+ const query = _optionalChain([searchQueries, 'access', _536 => _536[categoryKey], 'optionalAccess', _537 => _537.trim, 'call', _538 => _538(), 'access', _539 => _539.toLowerCase, 'call', _540 => _540()]);
19699
19716
  if (!query) return groups;
19700
19717
  return groups.map((group) => ({
19701
19718
  ...group,
@@ -19754,7 +19771,7 @@ var CheckboxGroup = ({
19754
19771
  const isCheckBoxIsSelected = (categoryKey, itemId) => {
19755
19772
  const category = categories.find((c) => c.key === categoryKey);
19756
19773
  if (!category) return false;
19757
- return _optionalChain([category, 'access', _539 => _539.selectedIds, 'optionalAccess', _540 => _540.includes, 'call', _541 => _541(itemId)]) || false;
19774
+ return _optionalChain([category, 'access', _541 => _541.selectedIds, 'optionalAccess', _542 => _542.includes, 'call', _543 => _543(itemId)]) || false;
19758
19775
  };
19759
19776
  const isMinimalOneCheckBoxIsSelected = (categoryKey) => {
19760
19777
  const category = categories.find((c) => c.key === categoryKey);
@@ -19763,7 +19780,7 @@ var CheckboxGroup = ({
19763
19780
  const filteredItems = formattedItems.flatMap((group) => group.itens || []);
19764
19781
  const filteredItemIds = filteredItems.map((item) => item.id);
19765
19782
  return filteredItemIds.some(
19766
- (itemId) => _optionalChain([category, 'access', _542 => _542.selectedIds, 'optionalAccess', _543 => _543.includes, 'call', _544 => _544(itemId)])
19783
+ (itemId) => _optionalChain([category, 'access', _544 => _544.selectedIds, 'optionalAccess', _545 => _545.includes, 'call', _546 => _546(itemId)])
19767
19784
  );
19768
19785
  };
19769
19786
  const areAllFilteredItemsSelected = (categoryKey) => {
@@ -19774,7 +19791,7 @@ var CheckboxGroup = ({
19774
19791
  if (filteredItems.length === 0) return false;
19775
19792
  const filteredItemIds = filteredItems.map((item) => item.id);
19776
19793
  return filteredItemIds.every(
19777
- (itemId) => _optionalChain([category, 'access', _545 => _545.selectedIds, 'optionalAccess', _546 => _546.includes, 'call', _547 => _547(itemId)])
19794
+ (itemId) => _optionalChain([category, 'access', _547 => _547.selectedIds, 'optionalAccess', _548 => _548.includes, 'call', _549 => _549(itemId)])
19778
19795
  );
19779
19796
  };
19780
19797
  const createCombinations = (acc, currentArray) => {
@@ -19792,7 +19809,7 @@ var CheckboxGroup = ({
19792
19809
  const getSelectedIdsForFilters = (filters) => {
19793
19810
  return filters.map((f) => {
19794
19811
  const parentCat = categories.find((c) => c.key === f.key);
19795
- if (!_optionalChain([parentCat, 'optionalAccess', _548 => _548.selectedIds, 'optionalAccess', _549 => _549.length])) {
19812
+ if (!_optionalChain([parentCat, 'optionalAccess', _550 => _550.selectedIds, 'optionalAccess', _551 => _551.length])) {
19796
19813
  return [];
19797
19814
  }
19798
19815
  return parentCat.selectedIds;
@@ -19800,22 +19817,22 @@ var CheckboxGroup = ({
19800
19817
  };
19801
19818
  const generateSingleFilterLabel = (filter, comboId) => {
19802
19819
  const cat = categories.find((c) => c.key === filter.key);
19803
- return _optionalChain([cat, 'optionalAccess', _550 => _550.itens, 'optionalAccess', _551 => _551.find, 'call', _552 => _552((i) => i.id === comboId), 'optionalAccess', _553 => _553.name]) || comboId;
19820
+ return _optionalChain([cat, 'optionalAccess', _552 => _552.itens, 'optionalAccess', _553 => _553.find, 'call', _554 => _554((i) => i.id === comboId), 'optionalAccess', _555 => _555.name]) || comboId;
19804
19821
  };
19805
19822
  const generateMultipleFiltersLabel = (filters, comboIds) => {
19806
19823
  const firstCat = categories.find((c) => c.key === filters[0].key);
19807
- const firstVal = _optionalChain([firstCat, 'optionalAccess', _554 => _554.itens, 'optionalAccess', _555 => _555.find, 'call', _556 => _556((i) => i.id === comboIds[0]), 'optionalAccess', _557 => _557.name]) || comboIds[0];
19824
+ const firstVal = _optionalChain([firstCat, 'optionalAccess', _556 => _556.itens, 'optionalAccess', _557 => _557.find, 'call', _558 => _558((i) => i.id === comboIds[0]), 'optionalAccess', _559 => _559.name]) || comboIds[0];
19808
19825
  const labelParts = [firstVal];
19809
19826
  for (let idx = 1; idx < filters.length; idx++) {
19810
19827
  const f = filters[idx];
19811
19828
  const cat = categories.find((c) => c.key === f.key);
19812
- const val = _optionalChain([cat, 'optionalAccess', _558 => _558.itens, 'optionalAccess', _559 => _559.find, 'call', _560 => _560((i) => i.id === comboIds[idx]), 'optionalAccess', _561 => _561.name]) || comboIds[idx];
19829
+ const val = _optionalChain([cat, 'optionalAccess', _560 => _560.itens, 'optionalAccess', _561 => _561.find, 'call', _562 => _562((i) => i.id === comboIds[idx]), 'optionalAccess', _563 => _563.name]) || comboIds[idx];
19813
19830
  labelParts.push(`(${val})`);
19814
19831
  }
19815
19832
  return labelParts.join(" ");
19816
19833
  };
19817
19834
  const processCombination = (comboIds, filters, category, groupedMap) => {
19818
- const filteredItems = (_optionalChain([category, 'optionalAccess', _562 => _562.itens]) || []).filter(
19835
+ const filteredItems = (_optionalChain([category, 'optionalAccess', _564 => _564.itens]) || []).filter(
19819
19836
  (item) => filters.every((f, idx) => item[f.internalField] === comboIds[idx])
19820
19837
  );
19821
19838
  if (filteredItems.length === 0) return;
@@ -19833,19 +19850,19 @@ var CheckboxGroup = ({
19833
19850
  };
19834
19851
  const calculateFormattedItems = (categoryKey) => {
19835
19852
  const category = categories.find((c) => c.key === categoryKey);
19836
- if (!_optionalChain([category, 'optionalAccess', _563 => _563.dependsOn]) || category.dependsOn.length === 0) {
19837
- return [{ itens: _optionalChain([category, 'optionalAccess', _564 => _564.itens]) || [] }];
19853
+ if (!_optionalChain([category, 'optionalAccess', _565 => _565.dependsOn]) || category.dependsOn.length === 0) {
19854
+ return [{ itens: _optionalChain([category, 'optionalAccess', _566 => _566.itens]) || [] }];
19838
19855
  }
19839
19856
  const isEnabled = category.dependsOn.every((depKey) => {
19840
19857
  const depCat = categories.find((c) => c.key === depKey);
19841
- return _optionalChain([depCat, 'optionalAccess', _565 => _565.selectedIds]) && depCat.selectedIds.length > 0;
19858
+ return _optionalChain([depCat, 'optionalAccess', _567 => _567.selectedIds]) && depCat.selectedIds.length > 0;
19842
19859
  });
19843
19860
  if (!isEnabled) {
19844
19861
  return [{ itens: [] }];
19845
19862
  }
19846
19863
  const filters = category.filteredBy || [];
19847
19864
  if (filters.length === 0) {
19848
- return [{ itens: _optionalChain([category, 'optionalAccess', _566 => _566.itens]) || [] }];
19865
+ return [{ itens: _optionalChain([category, 'optionalAccess', _568 => _568.itens]) || [] }];
19849
19866
  }
19850
19867
  const selectedIdsArr = getSelectedIdsForFilters(filters);
19851
19868
  if (selectedIdsArr.some((arr) => arr.length === 0)) {
@@ -19875,7 +19892,7 @@ var CheckboxGroup = ({
19875
19892
  const getDisplayItems = (categoryKey) => {
19876
19893
  const formattedItems = getFormattedItems(categoryKey);
19877
19894
  const category = categories.find((c) => c.key === categoryKey);
19878
- return _optionalChain([category, 'optionalAccess', _567 => _567.searchable]) ? filterGroupsBySearch(categoryKey, formattedItems) : formattedItems;
19895
+ return _optionalChain([category, 'optionalAccess', _569 => _569.searchable]) ? filterGroupsBySearch(categoryKey, formattedItems) : formattedItems;
19879
19896
  };
19880
19897
  const getBadgeText2 = (category) => {
19881
19898
  const formattedItems = getDisplayItems(category.key);
@@ -19895,16 +19912,16 @@ var CheckboxGroup = ({
19895
19912
  }
19896
19913
  };
19897
19914
  const getDependentCategories = (categoryKey) => {
19898
- return categories.filter((cat) => _optionalChain([cat, 'access', _568 => _568.dependsOn, 'optionalAccess', _569 => _569.includes, 'call', _570 => _570(categoryKey)])).map((cat) => cat.key);
19915
+ return categories.filter((cat) => _optionalChain([cat, 'access', _570 => _570.dependsOn, 'optionalAccess', _571 => _571.includes, 'call', _572 => _572(categoryKey)])).map((cat) => cat.key);
19899
19916
  };
19900
19917
  const findItemsToRemove = (depCategory, relevantFilter, deselectedItemId) => {
19901
- return _optionalChain([depCategory, 'access', _571 => _571.itens, 'optionalAccess', _572 => _572.filter, 'call', _573 => _573(
19918
+ return _optionalChain([depCategory, 'access', _573 => _573.itens, 'optionalAccess', _574 => _574.filter, 'call', _575 => _575(
19902
19919
  (item) => item[relevantFilter.internalField] === deselectedItemId
19903
- ), 'access', _574 => _574.map, 'call', _575 => _575((item) => item.id)]) || [];
19920
+ ), 'access', _576 => _576.map, 'call', _577 => _577((item) => item.id)]) || [];
19904
19921
  };
19905
19922
  const processDependentCategory = (depCategoryKey, categoryKey, deselectedItemId, itemsToDeselect) => {
19906
19923
  const depCategory = categories.find((c) => c.key === depCategoryKey);
19907
- if (!_optionalChain([depCategory, 'optionalAccess', _576 => _576.filteredBy])) return;
19924
+ if (!_optionalChain([depCategory, 'optionalAccess', _578 => _578.filteredBy])) return;
19908
19925
  const relevantFilter = depCategory.filteredBy.find(
19909
19926
  (f) => f.key === categoryKey
19910
19927
  );
@@ -19919,7 +19936,7 @@ var CheckboxGroup = ({
19919
19936
  }
19920
19937
  };
19921
19938
  const getItemsToDeselect = (categoryKey, deselectedItemId) => {
19922
- const deselectedItem = _optionalChain([categories, 'access', _577 => _577.find, 'call', _578 => _578((c) => c.key === categoryKey), 'optionalAccess', _579 => _579.itens, 'optionalAccess', _580 => _580.find, 'call', _581 => _581((item) => item.id === deselectedItemId)]);
19939
+ const deselectedItem = _optionalChain([categories, 'access', _579 => _579.find, 'call', _580 => _580((c) => c.key === categoryKey), 'optionalAccess', _581 => _581.itens, 'optionalAccess', _582 => _582.find, 'call', _583 => _583((item) => item.id === deselectedItemId)]);
19923
19940
  if (!deselectedItem) return {};
19924
19941
  const itemsToDeselect = {};
19925
19942
  const dependentCategories = getDependentCategories(categoryKey);
@@ -19934,7 +19951,7 @@ var CheckboxGroup = ({
19934
19951
  return itemsToDeselect;
19935
19952
  };
19936
19953
  const updateCategorySelectedIds = (updatedCategories, depCategoryIndex, depCategory, itemIds) => {
19937
- const newSelectedIds = _optionalChain([depCategory, 'access', _582 => _582.selectedIds, 'optionalAccess', _583 => _583.filter, 'call', _584 => _584((id) => !itemIds.includes(id))]) || [];
19954
+ const newSelectedIds = _optionalChain([depCategory, 'access', _584 => _584.selectedIds, 'optionalAccess', _585 => _585.filter, 'call', _586 => _586((id) => !itemIds.includes(id))]) || [];
19938
19955
  updatedCategories[depCategoryIndex] = {
19939
19956
  ...depCategory,
19940
19957
  selectedIds: newSelectedIds
@@ -19979,13 +19996,13 @@ var CheckboxGroup = ({
19979
19996
  const filteredItems = formattedItems.flatMap((group) => group.itens || []);
19980
19997
  const filteredItemIds = filteredItems.map((item) => item.id);
19981
19998
  const selectedFilteredCount = filteredItemIds.filter(
19982
- (itemId) => _optionalChain([category, 'access', _585 => _585.selectedIds, 'optionalAccess', _586 => _586.includes, 'call', _587 => _587(itemId)])
19999
+ (itemId) => _optionalChain([category, 'access', _587 => _587.selectedIds, 'optionalAccess', _588 => _588.includes, 'call', _589 => _589(itemId)])
19983
20000
  ).length;
19984
20001
  const allFilteredSelected = selectedFilteredCount === filteredItemIds.length;
19985
- const newSelection = allFilteredSelected ? _optionalChain([category, 'access', _588 => _588.selectedIds, 'optionalAccess', _589 => _589.filter, 'call', _590 => _590((id) => !filteredItemIds.includes(id))]) || [] : [
20002
+ const newSelection = allFilteredSelected ? _optionalChain([category, 'access', _590 => _590.selectedIds, 'optionalAccess', _591 => _591.filter, 'call', _592 => _592((id) => !filteredItemIds.includes(id))]) || [] : [
19986
20003
  ...category.selectedIds || [],
19987
20004
  ...filteredItemIds.filter(
19988
- (id) => !_optionalChain([category, 'access', _591 => _591.selectedIds, 'optionalAccess', _592 => _592.includes, 'call', _593 => _593(id)])
20005
+ (id) => !_optionalChain([category, 'access', _593 => _593.selectedIds, 'optionalAccess', _594 => _594.includes, 'call', _595 => _595(id)])
19989
20006
  )
19990
20007
  ];
19991
20008
  let updatedCategories = categories.map(
@@ -20005,8 +20022,8 @@ var CheckboxGroup = ({
20005
20022
  const toggleItem = (categoryKey, itemId) => {
20006
20023
  const category = categories.find((c) => c.key === categoryKey);
20007
20024
  if (!category) return;
20008
- const isCurrentlySelected = _optionalChain([category, 'access', _594 => _594.selectedIds, 'optionalAccess', _595 => _595.includes, 'call', _596 => _596(itemId)]);
20009
- const newSelection = isCurrentlySelected ? _optionalChain([category, 'access', _597 => _597.selectedIds, 'optionalAccess', _598 => _598.filter, 'call', _599 => _599((id) => id !== itemId)]) : [...category.selectedIds || [], itemId];
20025
+ const isCurrentlySelected = _optionalChain([category, 'access', _596 => _596.selectedIds, 'optionalAccess', _597 => _597.includes, 'call', _598 => _598(itemId)]);
20026
+ const newSelection = isCurrentlySelected ? _optionalChain([category, 'access', _599 => _599.selectedIds, 'optionalAccess', _600 => _600.filter, 'call', _601 => _601((id) => id !== itemId)]) : [...category.selectedIds || [], itemId];
20010
20027
  let updatedCategories = categories.map(
20011
20028
  (c) => c.key === categoryKey ? { ...c, selectedIds: newSelection } : c
20012
20029
  );
@@ -20046,7 +20063,7 @@ var CheckboxGroup = ({
20046
20063
  className: "flex flex-col gap-3",
20047
20064
  children: [
20048
20065
  "groupLabel" in formattedGroup && formattedGroup.groupLabel && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2LG54JYKjs.Text_default, { size: "sm", className: "mt-2", weight: "semibold", children: formattedGroup.groupLabel }),
20049
- _optionalChain([formattedGroup, 'access', _600 => _600.itens, 'optionalAccess', _601 => _601.map, 'call', _602 => _602(
20066
+ _optionalChain([formattedGroup, 'access', _602 => _602.itens, 'optionalAccess', _603 => _603.map, 'call', _604 => _604(
20050
20067
  (item) => renderCheckboxItem(item, categoryKey)
20051
20068
  )])
20052
20069
  ]
@@ -20101,7 +20118,7 @@ var CheckboxGroup = ({
20101
20118
  };
20102
20119
  const renderCategoryAccordion = (category) => {
20103
20120
  const isEnabled = isCategoryEnabled2(category);
20104
- const hasOnlyOneItem = _optionalChain([category, 'access', _603 => _603.itens, 'optionalAccess', _604 => _604.length]) === 1;
20121
+ const hasOnlyOneItem = _optionalChain([category, 'access', _605 => _605.itens, 'optionalAccess', _606 => _606.length]) === 1;
20105
20122
  if (hasOnlyOneItem && !compactSingleItem && !showSingleItem) {
20106
20123
  return null;
20107
20124
  }
@@ -20118,7 +20135,7 @@ var CheckboxGroup = ({
20118
20135
  (group) => !group.itens || group.itens.length === 0
20119
20136
  );
20120
20137
  const displayGroups = getDisplayItems(category.key);
20121
- const hasActiveSearch = !!category.searchable && !!_optionalChain([searchQueries, 'access', _605 => _605[category.key], 'optionalAccess', _606 => _606.trim, 'call', _607 => _607()]);
20138
+ const hasActiveSearch = !!category.searchable && !!_optionalChain([searchQueries, 'access', _607 => _607[category.key], 'optionalAccess', _608 => _608.trim, 'call', _609 => _609()]);
20122
20139
  const hasNoSearchResults = hasActiveSearch && !hasNoItems && displayGroups.every((group) => !group.itens || group.itens.length === 0);
20123
20140
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
20124
20141
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -20291,4 +20308,4 @@ var CheckboxGroup = ({
20291
20308
 
20292
20309
 
20293
20310
  exports.CheckboxGroup = CheckboxGroup; exports.DateTimeInput_default = DateTimeInput_default; exports.AlertsManager = AlertsManager; 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.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.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;
20294
- //# sourceMappingURL=chunk-4TROUHWW.js.map
20311
+ //# sourceMappingURL=chunk-Y2YUQPF7.js.map