analytica-frontend-lib 1.2.29 → 1.2.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -32,6 +32,7 @@ var src_exports = {};
32
32
  __export(src_exports, {
33
33
  ANSWER_STATUS: () => ANSWER_STATUS,
34
34
  AccordionGroup: () => AccordionGroup,
35
+ ActivityCardQuestionBanks: () => ActivityCardQuestionBanks,
35
36
  ActivityDetails: () => ActivityDetails,
36
37
  ActivityFilters: () => ActivityFilters,
37
38
  ActivityFiltersPopover: () => ActivityFiltersPopover,
@@ -11572,11 +11573,13 @@ var questionTypes = [
11572
11573
  ];
11573
11574
  var QuestionTypeFilter = ({
11574
11575
  selectedTypes,
11575
- onToggleType
11576
+ onToggleType,
11577
+ allowedQuestionTypes
11576
11578
  }) => {
11579
+ const availableQuestionTypes = allowedQuestionTypes || questionTypes;
11577
11580
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
11578
11581
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", weight: "bold", className: "mb-3 block", children: "Tipo de quest\xE3o" }),
11579
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "grid grid-cols-2 gap-2", children: questionTypes.map((questionType) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
11582
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "grid grid-cols-2 gap-2", children: availableQuestionTypes.map((questionType) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
11580
11583
  Chips_default,
11581
11584
  {
11582
11585
  selected: selectedTypes.includes(questionType),
@@ -11587,10 +11590,11 @@ var QuestionTypeFilter = ({
11587
11590
  )) })
11588
11591
  ] });
11589
11592
  };
11590
- var BanksFilter = ({
11593
+ var BanksAndYearsFilter = ({
11591
11594
  banks,
11592
- selectedBanks,
11593
- onToggleBank,
11595
+ bankYears,
11596
+ bankCategories,
11597
+ onBankCategoriesChange,
11594
11598
  loading = false,
11595
11599
  error = null
11596
11600
  }) => {
@@ -11600,18 +11604,21 @@ var BanksFilter = ({
11600
11604
  if (error) {
11601
11605
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", className: "text-text-600", children: error });
11602
11606
  }
11603
- if (banks.length === 0) {
11607
+ if (banks.length === 0 && bankYears.length === 0) {
11604
11608
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", className: "text-text-600", children: "Nenhuma banca encontrada" });
11605
11609
  }
11606
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "grid grid-cols-2 gap-2", children: banks.map((bank) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
11607
- Chips_default,
11608
- {
11609
- selected: selectedBanks.includes(bank.examInstitution),
11610
- onClick: () => onToggleBank(bank.examInstitution),
11611
- children: bank.examInstitution
11612
- },
11613
- bank.examInstitution
11614
- )) });
11610
+ if (bankCategories.length > 0) {
11611
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
11612
+ CheckboxGroup,
11613
+ {
11614
+ categories: bankCategories,
11615
+ onCategoriesChange: onBankCategoriesChange,
11616
+ compactSingleItem: true,
11617
+ showSingleItem: true
11618
+ }
11619
+ );
11620
+ }
11621
+ return null;
11615
11622
  };
11616
11623
  var SubjectsFilter = ({
11617
11624
  knowledgeAreas,
@@ -11660,38 +11667,10 @@ var SubjectsFilter = ({
11660
11667
  area.id
11661
11668
  )) });
11662
11669
  };
11663
- var KnowledgeSummary = ({
11664
- knowledgeStructure,
11665
- selectedKnowledgeSummary
11666
- }) => {
11667
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "mt-4 p-3 bg-background-50 rounded-lg border border-border-200", children: [
11668
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", weight: "bold", className: "mb-2 block", children: "Resumo da sele\xE7\xE3o" }),
11669
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-col gap-2", children: [
11670
- knowledgeStructure.topics.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
11671
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "xs", weight: "medium", className: "text-text-600", children: "Tema:" }),
11672
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex flex-wrap gap-1 mt-1", children: selectedKnowledgeSummary.topics.map((topic) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Chips_default, { selected: true, children: topic }, topic)) })
11673
- ] }),
11674
- knowledgeStructure.subtopics.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
11675
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "xs", weight: "medium", className: "text-text-600", children: "Subtema:" }),
11676
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex flex-wrap gap-1 mt-1", children: selectedKnowledgeSummary.subtopics.map((subtopic) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Chips_default, { selected: true, children: subtopic }, subtopic)) })
11677
- ] }),
11678
- knowledgeStructure.contents.length === 1 && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
11679
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "xs", weight: "medium", className: "text-text-600", children: "Assunto:" }),
11680
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex flex-wrap gap-1 mt-1", children: selectedKnowledgeSummary.contents.map((content) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Chips_default, { selected: true, children: content }, content)) })
11681
- ] })
11682
- ] })
11683
- ] });
11684
- };
11685
11670
  var KnowledgeStructureFilter = ({
11686
11671
  knowledgeStructure,
11687
11672
  knowledgeCategories,
11688
- handleCategoriesChange,
11689
- selectedKnowledgeSummary = {
11690
- topics: [],
11691
- subtopics: [],
11692
- contents: []
11693
- },
11694
- enableSummary = false
11673
+ handleCategoriesChange
11695
11674
  }) => {
11696
11675
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "mt-4", children: [
11697
11676
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", weight: "bold", className: "mb-3 block", children: "Tema, Subtema e Assunto" }),
@@ -11701,17 +11680,12 @@ var KnowledgeStructureFilter = ({
11701
11680
  CheckboxGroup,
11702
11681
  {
11703
11682
  categories: knowledgeCategories,
11704
- onCategoriesChange: handleCategoriesChange
11683
+ onCategoriesChange: handleCategoriesChange,
11684
+ compactSingleItem: false,
11685
+ showSingleItem: true
11705
11686
  }
11706
11687
  ),
11707
- !knowledgeStructure.loading && knowledgeCategories.length === 0 && knowledgeStructure.topics.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", className: "text-text-600", children: "Nenhum tema dispon\xEDvel para as mat\xE9rias selecionadas" }),
11708
- enableSummary && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
11709
- KnowledgeSummary,
11710
- {
11711
- knowledgeStructure,
11712
- selectedKnowledgeSummary
11713
- }
11714
- )
11688
+ !knowledgeStructure.loading && knowledgeCategories.length === 0 && knowledgeStructure.topics.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", className: "text-text-600", children: "Nenhum tema dispon\xEDvel para as mat\xE9rias selecionadas" })
11715
11689
  ] });
11716
11690
  };
11717
11691
  var FilterActions = ({
@@ -11731,6 +11705,7 @@ var ActivityFilters = ({
11731
11705
  variant = "default",
11732
11706
  // Data
11733
11707
  banks = [],
11708
+ bankYears = [],
11734
11709
  knowledgeAreas = [],
11735
11710
  knowledgeStructure = {
11736
11711
  topics: [],
@@ -11740,6 +11715,8 @@ var ActivityFilters = ({
11740
11715
  error: null
11741
11716
  },
11742
11717
  knowledgeCategories = [],
11718
+ // Question types
11719
+ allowedQuestionTypes,
11743
11720
  // Loading states
11744
11721
  loadingBanks = false,
11745
11722
  loadingKnowledge: _loadingKnowledge = false,
@@ -11755,19 +11732,47 @@ var ActivityFilters = ({
11755
11732
  loadContents: _loadContents,
11756
11733
  // Handlers
11757
11734
  handleCategoriesChange,
11758
- selectedKnowledgeSummary = {
11759
- topics: [],
11760
- subtopics: [],
11761
- contents: []
11762
- },
11763
- enableSummary = false,
11764
11735
  // Action buttons
11765
11736
  onClearFilters,
11766
11737
  onApplyFilters
11767
11738
  }) => {
11768
11739
  const [selectedQuestionTypes, setSelectedQuestionTypes] = (0, import_react36.useState)([]);
11769
- const [selectedBanks, setSelectedBanks] = (0, import_react36.useState)([]);
11770
11740
  const [selectedSubject, setSelectedSubject] = (0, import_react36.useState)(null);
11741
+ const prevAllowedQuestionTypesRef = (0, import_react36.useRef)(null);
11742
+ (0, import_react36.useEffect)(() => {
11743
+ if (!allowedQuestionTypes || allowedQuestionTypes.length === 0) {
11744
+ prevAllowedQuestionTypesRef.current = null;
11745
+ return;
11746
+ }
11747
+ const currentKey = allowedQuestionTypes.slice().sort((a, b) => {
11748
+ return a === b ? 0 : allowedQuestionTypes.indexOf(a) - allowedQuestionTypes.indexOf(b);
11749
+ }).join(",");
11750
+ const prevKey = prevAllowedQuestionTypesRef.current;
11751
+ if (currentKey === prevKey) {
11752
+ return;
11753
+ }
11754
+ prevAllowedQuestionTypesRef.current = currentKey;
11755
+ setSelectedQuestionTypes((prev) => {
11756
+ const filtered = prev.filter(
11757
+ (type) => allowedQuestionTypes.includes(type)
11758
+ );
11759
+ if (filtered.length !== prev.length) {
11760
+ return filtered;
11761
+ }
11762
+ const prevSet = new Set(prev);
11763
+ const filteredSet = new Set(filtered);
11764
+ if (prevSet.size !== filteredSet.size) {
11765
+ return filtered;
11766
+ }
11767
+ for (const item of prevSet) {
11768
+ if (!filteredSet.has(item)) {
11769
+ return filtered;
11770
+ }
11771
+ }
11772
+ return prev;
11773
+ });
11774
+ }, [allowedQuestionTypes]);
11775
+ const [bankCategories, setBankCategories] = (0, import_react36.useState)([]);
11771
11776
  const selectedSubjects = (0, import_react36.useMemo)(
11772
11777
  () => selectedSubject ? [selectedSubject] : [],
11773
11778
  [selectedSubject]
@@ -11775,12 +11780,38 @@ var ActivityFilters = ({
11775
11780
  const toggleQuestionType = (questionType) => {
11776
11781
  setSelectedQuestionTypes((prev) => toggleArrayItem(prev, questionType));
11777
11782
  };
11778
- const toggleBank = (bankName) => {
11779
- setSelectedBanks((prev) => toggleArrayItem(prev, bankName));
11780
- };
11781
11783
  const handleSubjectChange = (subjectId) => {
11782
11784
  setSelectedSubject(toggleSingleValue(selectedSubject, subjectId));
11783
11785
  };
11786
+ const handleBankCategoriesChange = (updatedCategories) => {
11787
+ setBankCategories(updatedCategories);
11788
+ };
11789
+ (0, import_react36.useEffect)(() => {
11790
+ setBankCategories((prevCategories) => {
11791
+ const bankCategory = {
11792
+ key: "banca",
11793
+ label: "Banca",
11794
+ itens: banks.map((bank) => ({
11795
+ id: bank.id,
11796
+ name: bank.name || bank.examInstitution
11797
+ })),
11798
+ selectedIds: prevCategories.find((c) => c.key === "banca")?.selectedIds || []
11799
+ };
11800
+ const yearCategory = {
11801
+ key: "ano",
11802
+ label: "Ano",
11803
+ dependsOn: ["banca"],
11804
+ itens: bankYears.map((year) => ({
11805
+ id: year.id,
11806
+ name: year.name,
11807
+ bankId: year.bankId
11808
+ })),
11809
+ filteredBy: [{ key: "banca", internalField: "bankId" }],
11810
+ selectedIds: prevCategories.find((c) => c.key === "ano")?.selectedIds || []
11811
+ };
11812
+ return [bankCategory, yearCategory];
11813
+ });
11814
+ }, [banks, bankYears]);
11784
11815
  (0, import_react36.useEffect)(() => {
11785
11816
  if (loadBanks) {
11786
11817
  loadBanks();
@@ -11801,24 +11832,36 @@ var ActivityFilters = ({
11801
11832
  contentIds: "assunto"
11802
11833
  });
11803
11834
  }, [knowledgeCategories]);
11835
+ const getSelectedBankIds = (0, import_react36.useCallback)(() => {
11836
+ return getSelectedIdsFromCategories(bankCategories, {
11837
+ bankIds: "banca",
11838
+ yearIds: "ano"
11839
+ });
11840
+ }, [bankCategories]);
11841
+ const onFiltersChangeRef = (0, import_react36.useRef)(onFiltersChange);
11842
+ (0, import_react36.useEffect)(() => {
11843
+ onFiltersChangeRef.current = onFiltersChange;
11844
+ }, [onFiltersChange]);
11804
11845
  (0, import_react36.useEffect)(() => {
11805
11846
  const knowledgeIds = getSelectedKnowledgeIds();
11847
+ const bankIds = getSelectedBankIds();
11806
11848
  const filters = {
11807
11849
  types: selectedQuestionTypes,
11808
- bankIds: selectedBanks,
11850
+ bankIds: bankIds.bankIds || [],
11851
+ yearIds: bankIds.yearIds || [],
11809
11852
  knowledgeIds: selectedSubjects,
11810
11853
  topicIds: knowledgeIds.topicIds,
11811
11854
  subtopicIds: knowledgeIds.subtopicIds,
11812
11855
  contentIds: knowledgeIds.contentIds
11813
11856
  };
11814
- onFiltersChange(filters);
11857
+ onFiltersChangeRef.current(filters);
11815
11858
  }, [
11816
11859
  selectedQuestionTypes,
11817
- selectedBanks,
11818
11860
  selectedSubjects,
11819
11861
  knowledgeCategories,
11862
+ bankCategories,
11820
11863
  getSelectedKnowledgeIds,
11821
- onFiltersChange
11864
+ getSelectedBankIds
11822
11865
  ]);
11823
11866
  const containerClassName = variant === "popover" ? "w-full bg-background" : "w-[400px] flex-shrink-0 p-4 bg-background";
11824
11867
  const contentClassName = variant === "popover" ? "p-4" : "";
@@ -11829,17 +11872,19 @@ var ActivityFilters = ({
11829
11872
  QuestionTypeFilter,
11830
11873
  {
11831
11874
  selectedTypes: selectedQuestionTypes,
11832
- onToggleType: toggleQuestionType
11875
+ onToggleType: toggleQuestionType,
11876
+ allowedQuestionTypes
11833
11877
  }
11834
11878
  ),
11835
11879
  /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
11836
11880
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Text_default, { size: "sm", weight: "bold", className: "mb-3 block", children: "Banca de vestibular" }),
11837
11881
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
11838
- BanksFilter,
11882
+ BanksAndYearsFilter,
11839
11883
  {
11840
11884
  banks,
11841
- selectedBanks,
11842
- onToggleBank: toggleBank,
11885
+ bankYears,
11886
+ bankCategories,
11887
+ onBankCategoriesChange: handleBankCategoriesChange,
11843
11888
  loading: loadingBanks,
11844
11889
  error: banksError
11845
11890
  }
@@ -11863,9 +11908,7 @@ var ActivityFilters = ({
11863
11908
  {
11864
11909
  knowledgeStructure,
11865
11910
  knowledgeCategories,
11866
- handleCategoriesChange,
11867
- selectedKnowledgeSummary,
11868
- enableSummary
11911
+ handleCategoriesChange
11869
11912
  }
11870
11913
  ),
11871
11914
  /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
@@ -17011,6 +17054,186 @@ function useAppContent(config) {
17011
17054
  };
17012
17055
  }
17013
17056
 
17057
+ // src/components/ActivityCardQuestionBanks/ActivityCardQuestionBanks.tsx
17058
+ var import_phosphor_react37 = require("phosphor-react");
17059
+ var import_react55 = require("react");
17060
+ var import_jsx_runtime73 = require("react/jsx-runtime");
17061
+ var ActivityCardQuestionBanks = ({
17062
+ question,
17063
+ questionType,
17064
+ iconName = "BookOpen",
17065
+ subjectColor = "#000000",
17066
+ isDark = false,
17067
+ onAddToActivity,
17068
+ assunto,
17069
+ enunciado
17070
+ } = {}) => {
17071
+ const alternatives = (0, import_react55.useMemo)(() => {
17072
+ if (!question?.options || questionType !== "ALTERNATIVA" /* ALTERNATIVA */)
17073
+ return [];
17074
+ const correctOptionIds2 = question.correctOptionIds || [];
17075
+ return question.options.map((option) => {
17076
+ const isCorrect = correctOptionIds2.includes(option.id);
17077
+ return {
17078
+ value: option.id,
17079
+ label: option.option,
17080
+ status: isCorrect ? "correct" : void 0,
17081
+ disabled: !isCorrect
17082
+ };
17083
+ });
17084
+ }, [question, questionType]);
17085
+ const correctOptionId = (0, import_react55.useMemo)(() => {
17086
+ if (!question?.correctOptionIds || question.correctOptionIds.length === 0) {
17087
+ return void 0;
17088
+ }
17089
+ return question.correctOptionIds[0];
17090
+ }, [question]);
17091
+ const multipleChoices = (0, import_react55.useMemo)(() => {
17092
+ if (!question?.options || questionType !== "MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */)
17093
+ return [];
17094
+ const correctOptionIds2 = question.correctOptionIds || [];
17095
+ return question.options.map((option) => {
17096
+ const isCorrect = correctOptionIds2.includes(option.id);
17097
+ return {
17098
+ value: option.id,
17099
+ label: option.option,
17100
+ status: isCorrect ? "correct" : void 0,
17101
+ disabled: !isCorrect
17102
+ };
17103
+ });
17104
+ }, [question, questionType]);
17105
+ const correctOptionIds = (0, import_react55.useMemo)(() => {
17106
+ return question?.correctOptionIds || [];
17107
+ }, [question]);
17108
+ const getStatusBadge2 = (status) => {
17109
+ switch (status) {
17110
+ case "correct":
17111
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.CheckCircle, {}), children: "Resposta correta" });
17112
+ case "incorrect":
17113
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.XCircle, {}), children: "Resposta incorreta" });
17114
+ }
17115
+ };
17116
+ const getStatusStyles2 = (status) => {
17117
+ switch (status) {
17118
+ case "correct":
17119
+ return "bg-success-background border-success-300";
17120
+ case "incorrect":
17121
+ return "bg-error-background border-error-300";
17122
+ }
17123
+ };
17124
+ const getLetterByIndex = (index) => String.fromCodePoint(97 + index);
17125
+ const renderAlternative = () => {
17126
+ if (!question || alternatives.length === 0) return null;
17127
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17128
+ AlternativesList,
17129
+ {
17130
+ alternatives,
17131
+ mode: "readonly",
17132
+ layout: "compact",
17133
+ selectedValue: correctOptionId,
17134
+ name: "teacher-question-view"
17135
+ }
17136
+ ) });
17137
+ };
17138
+ const renderMultipleChoice = () => {
17139
+ if (!question || multipleChoices.length === 0) return null;
17140
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17141
+ MultipleChoiceList,
17142
+ {
17143
+ choices: multipleChoices,
17144
+ mode: "readonly",
17145
+ selectedValues: correctOptionIds,
17146
+ name: "teacher-question-view-multiple"
17147
+ }
17148
+ ) });
17149
+ };
17150
+ const renderDissertative = () => {
17151
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "mt-4 px-2 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { size: "sm", className: "text-text-600 italic", children: "Resposta do aluno" }) });
17152
+ };
17153
+ const renderTrueOrFalse = () => {
17154
+ if (!question || question.options.length === 0) return null;
17155
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "mt-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-col gap-3.5", children: question.options.map((option, index) => {
17156
+ const isCorrect = correctOptionIds.includes(option.id);
17157
+ const correctAnswer = isCorrect ? "Verdadeiro" : "Falso";
17158
+ const variantCorrect = "correct";
17159
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("section", { className: "flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
17160
+ "div",
17161
+ {
17162
+ className: cn(
17163
+ "flex flex-row justify-between items-center gap-2 p-2 rounded-md border",
17164
+ getStatusStyles2(variantCorrect)
17165
+ ),
17166
+ children: [
17167
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { size: "sm", className: "text-text-900", children: getLetterByIndex(index).concat(") ").concat(option.option) }),
17168
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-row items-center gap-2 flex-shrink-0", children: [
17169
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Text_default, { size: "sm", className: "text-text-700", children: [
17170
+ "Resposta correta: ",
17171
+ correctAnswer
17172
+ ] }),
17173
+ getStatusBadge2(variantCorrect)
17174
+ ] })
17175
+ ]
17176
+ }
17177
+ ) }, option.id);
17178
+ }) }) });
17179
+ };
17180
+ const renderConnectDots = () => {
17181
+ return null;
17182
+ };
17183
+ const renderFill = () => {
17184
+ return null;
17185
+ };
17186
+ const renderImage = () => {
17187
+ return null;
17188
+ };
17189
+ const questionRenderers = {
17190
+ ["ALTERNATIVA" /* ALTERNATIVA */]: renderAlternative,
17191
+ ["MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */]: renderMultipleChoice,
17192
+ ["DISSERTATIVA" /* DISSERTATIVA */]: renderDissertative,
17193
+ ["VERDADEIRO_FALSO" /* VERDADEIRO_FALSO */]: renderTrueOrFalse,
17194
+ ["LIGAR_PONTOS" /* LIGAR_PONTOS */]: renderConnectDots,
17195
+ ["PREENCHER" /* PREENCHER */]: renderFill,
17196
+ ["IMAGEM" /* IMAGEM */]: renderImage
17197
+ };
17198
+ const renderQuestionContent = () => {
17199
+ if (!questionType) return null;
17200
+ const renderer = questionRenderers[questionType];
17201
+ return renderer ? renderer() : null;
17202
+ };
17203
+ return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "w-full flex flex-col gap-2 px-4 py-6", children: [
17204
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("section", { className: "flex flex-row gap-2 text-text-650", children: [
17205
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "py-1 px-2 flex flex-row items-center gap-1", children: [
17206
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17207
+ "span",
17208
+ {
17209
+ className: "size-4 rounded-sm flex items-center justify-center shrink-0 text-text-950",
17210
+ style: {
17211
+ backgroundColor: getSubjectColorWithOpacity(subjectColor, isDark)
17212
+ },
17213
+ children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(IconRender_default, { iconName, size: 14, color: "currentColor" })
17214
+ }
17215
+ ),
17216
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { size: "sm", children: assunto || "Assunto n\xE3o informado" })
17217
+ ] }),
17218
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "py-1 px-2 flex flex-row items-center gap-1", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { size: "sm", className: "", children: questionType ? questionTypeLabels[questionType] : "Tipo de quest\xE3o" }) })
17219
+ ] }),
17220
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("section", { className: "flex flex-col gap-1", children: [
17221
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { size: "md", weight: "medium", className: "text-text-950 text-md", children: enunciado || "Enunciado n\xE3o informado" }),
17222
+ renderQuestionContent()
17223
+ ] }),
17224
+ /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("section", { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17225
+ Button_default,
17226
+ {
17227
+ size: "small",
17228
+ iconLeft: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.Plus, {}),
17229
+ className: "w-full",
17230
+ onClick: onAddToActivity,
17231
+ children: "Adicionar \xE0 atividade"
17232
+ }
17233
+ ) })
17234
+ ] });
17235
+ };
17236
+
17014
17237
  // src/types/activityDetails.ts
17015
17238
  var STUDENT_ACTIVITY_STATUS = {
17016
17239
  CONCLUIDO: "CONCLUIDO",
@@ -17062,9 +17285,9 @@ var formatDateToBrazilian = (dateString) => {
17062
17285
  };
17063
17286
 
17064
17287
  // src/components/ActivityDetails/ActivityDetails.tsx
17065
- var import_react55 = require("react");
17066
- var import_phosphor_react37 = require("phosphor-react");
17067
- var import_jsx_runtime73 = require("react/jsx-runtime");
17288
+ var import_react56 = require("react");
17289
+ var import_phosphor_react38 = require("phosphor-react");
17290
+ var import_jsx_runtime74 = require("react/jsx-runtime");
17068
17291
  var createTableColumns = (onCorrectActivity) => [
17069
17292
  {
17070
17293
  key: "studentName",
@@ -17072,9 +17295,9 @@ var createTableColumns = (onCorrectActivity) => [
17072
17295
  sortable: true,
17073
17296
  render: (value) => {
17074
17297
  const name = typeof value === "string" ? value : "";
17075
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-3", children: [
17076
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-xs font-semibold text-primary-700", children: name.charAt(0).toUpperCase() }) }),
17077
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm font-normal text-text-950", children: name })
17298
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-3", children: [
17299
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-xs font-semibold text-primary-700", children: name.charAt(0).toUpperCase() }) }),
17300
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm font-normal text-text-950", children: name })
17078
17301
  ] });
17079
17302
  }
17080
17303
  },
@@ -17084,7 +17307,7 @@ var createTableColumns = (onCorrectActivity) => [
17084
17307
  sortable: false,
17085
17308
  render: (value) => {
17086
17309
  const config = getStatusBadgeConfig(value);
17087
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17310
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17088
17311
  Badge_default,
17089
17312
  {
17090
17313
  className: `${config.bgColor} ${config.textColor} text-xs px-2 py-1`,
@@ -17099,22 +17322,22 @@ var createTableColumns = (onCorrectActivity) => [
17099
17322
  sortable: true,
17100
17323
  render: (value) => {
17101
17324
  if (!value || typeof value !== "string") {
17102
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-400", children: "-" });
17325
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-400", children: "-" });
17103
17326
  }
17104
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-700", children: formatDateToBrazilian(value) });
17327
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-700", children: formatDateToBrazilian(value) });
17105
17328
  }
17106
17329
  },
17107
17330
  {
17108
17331
  key: "timeSpent",
17109
17332
  label: "Dura\xE7\xE3o",
17110
17333
  sortable: false,
17111
- render: (value) => Number(value) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-700", children: formatTimeSpent(Number(value)) }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-400", children: "-" })
17334
+ render: (value) => Number(value) > 0 ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-700", children: formatTimeSpent(Number(value)) }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-400", children: "-" })
17112
17335
  },
17113
17336
  {
17114
17337
  key: "score",
17115
17338
  label: "Nota",
17116
17339
  sortable: true,
17117
- render: (value) => value === null ? /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-400", children: "-" }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm font-semibold text-text-950", children: Number(value).toFixed(1) })
17340
+ render: (value) => value === null ? /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-400", children: "-" }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm font-semibold text-text-950", children: Number(value).toFixed(1) })
17118
17341
  },
17119
17342
  {
17120
17343
  key: "actions",
@@ -17122,7 +17345,7 @@ var createTableColumns = (onCorrectActivity) => [
17122
17345
  sortable: false,
17123
17346
  render: (_value, row) => {
17124
17347
  if (row.status === STUDENT_ACTIVITY_STATUS.AGUARDANDO_CORRECAO) {
17125
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17348
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17126
17349
  Button_default,
17127
17350
  {
17128
17351
  variant: "outline",
@@ -17134,7 +17357,7 @@ var createTableColumns = (onCorrectActivity) => [
17134
17357
  );
17135
17358
  }
17136
17359
  if (row.status === STUDENT_ACTIVITY_STATUS.CONCLUIDO || row.status === STUDENT_ACTIVITY_STATUS.NAO_ENTREGUE) {
17137
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17360
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17138
17361
  Button_default,
17139
17362
  {
17140
17363
  variant: "link",
@@ -17160,20 +17383,20 @@ var ActivityDetails = ({
17160
17383
  mapSubjectNameToEnum
17161
17384
  }) => {
17162
17385
  const { isMobile } = useMobile();
17163
- const [page, setPage] = (0, import_react55.useState)(1);
17164
- const [limit, setLimit] = (0, import_react55.useState)(10);
17165
- const [sortBy, setSortBy] = (0, import_react55.useState)(void 0);
17166
- const [sortOrder, setSortOrder] = (0, import_react55.useState)(
17386
+ const [page, setPage] = (0, import_react56.useState)(1);
17387
+ const [limit, setLimit] = (0, import_react56.useState)(10);
17388
+ const [sortBy, setSortBy] = (0, import_react56.useState)(void 0);
17389
+ const [sortOrder, setSortOrder] = (0, import_react56.useState)(
17167
17390
  void 0
17168
17391
  );
17169
- const [data, setData] = (0, import_react55.useState)(null);
17170
- const [correctionData, setCorrectionData] = (0, import_react55.useState)(null);
17171
- const [loading, setLoading] = (0, import_react55.useState)(true);
17172
- const [error, setError] = (0, import_react55.useState)(null);
17173
- const [isModalOpen, setIsModalOpen] = (0, import_react55.useState)(false);
17174
- const [isViewOnlyModal, setIsViewOnlyModal] = (0, import_react55.useState)(false);
17175
- const [correctionError, setCorrectionError] = (0, import_react55.useState)(null);
17176
- (0, import_react55.useEffect)(() => {
17392
+ const [data, setData] = (0, import_react56.useState)(null);
17393
+ const [correctionData, setCorrectionData] = (0, import_react56.useState)(null);
17394
+ const [loading, setLoading] = (0, import_react56.useState)(true);
17395
+ const [error, setError] = (0, import_react56.useState)(null);
17396
+ const [isModalOpen, setIsModalOpen] = (0, import_react56.useState)(false);
17397
+ const [isViewOnlyModal, setIsViewOnlyModal] = (0, import_react56.useState)(false);
17398
+ const [correctionError, setCorrectionError] = (0, import_react56.useState)(null);
17399
+ (0, import_react56.useEffect)(() => {
17177
17400
  const loadData = async () => {
17178
17401
  if (!activityId) return;
17179
17402
  setLoading(true);
@@ -17196,7 +17419,7 @@ var ActivityDetails = ({
17196
17419
  };
17197
17420
  loadData();
17198
17421
  }, [activityId, page, limit, sortBy, sortOrder, fetchActivityDetails]);
17199
- const handleCorrectActivity = (0, import_react55.useCallback)(
17422
+ const handleCorrectActivity = (0, import_react56.useCallback)(
17200
17423
  async (studentId) => {
17201
17424
  const student = data?.students.find((s) => s.studentId === studentId);
17202
17425
  if (!student || !activityId) return;
@@ -17216,10 +17439,10 @@ var ActivityDetails = ({
17216
17439
  },
17217
17440
  [data?.students, activityId, fetchStudentCorrection]
17218
17441
  );
17219
- const handleCloseModal = (0, import_react55.useCallback)(() => {
17442
+ const handleCloseModal = (0, import_react56.useCallback)(() => {
17220
17443
  setIsModalOpen(false);
17221
17444
  }, []);
17222
- const handleObservationSubmit = (0, import_react55.useCallback)(
17445
+ const handleObservationSubmit = (0, import_react56.useCallback)(
17223
17446
  async (observation, files) => {
17224
17447
  if (!activityId || !correctionData?.studentId) return;
17225
17448
  try {
@@ -17236,7 +17459,7 @@ var ActivityDetails = ({
17236
17459
  },
17237
17460
  [activityId, correctionData?.studentId, submitObservation]
17238
17461
  );
17239
- const tableData = (0, import_react55.useMemo)(() => {
17462
+ const tableData = (0, import_react56.useMemo)(() => {
17240
17463
  if (!data?.students) return [];
17241
17464
  return data.students.map((student) => ({
17242
17465
  id: student.studentId,
@@ -17248,7 +17471,7 @@ var ActivityDetails = ({
17248
17471
  score: student.score
17249
17472
  }));
17250
17473
  }, [data?.students]);
17251
- const columns = (0, import_react55.useMemo)(
17474
+ const columns = (0, import_react56.useMemo)(
17252
17475
  () => createTableColumns(handleCorrectActivity),
17253
17476
  [handleCorrectActivity]
17254
17477
  );
@@ -17280,10 +17503,10 @@ var ActivityDetails = ({
17280
17503
  const subjectEnum = data?.activity.subjectName && mapSubjectNameToEnum ? mapSubjectNameToEnum(data.activity.subjectName) : null;
17281
17504
  const subjectInfo = subjectEnum ? getSubjectInfo(subjectEnum) : null;
17282
17505
  if (loading && !data) {
17283
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("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: [
17284
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex items-center gap-2 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SkeletonText, { width: 100, height: 14 }) }),
17285
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SkeletonRounded, { className: "w-full h-[120px]" }),
17286
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17506
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5 overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("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: [
17507
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex items-center gap-2 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(SkeletonText, { width: 100, height: 14 }) }),
17508
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(SkeletonRounded, { className: "w-full h-[120px]" }),
17509
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17287
17510
  "div",
17288
17511
  {
17289
17512
  className: cn(
@@ -17296,14 +17519,14 @@ var ActivityDetails = ({
17296
17519
  "pending",
17297
17520
  "avg-score",
17298
17521
  "avg-time"
17299
- ].map((id) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SkeletonRounded, { className: "w-full h-[150px]" }, id))
17522
+ ].map((id) => /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(SkeletonRounded, { className: "w-full h-[150px]" }, id))
17300
17523
  }
17301
17524
  ),
17302
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "w-full bg-background rounded-xl p-6", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(SkeletonTable, { rows: 5, columns: 6, showHeader: true }) })
17525
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-full bg-background rounded-xl p-6", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(SkeletonTable, { rows: 5, columns: 6, showHeader: true }) })
17303
17526
  ] }) });
17304
17527
  }
17305
17528
  if (error || !data) {
17306
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "flex flex-col w-full h-full max-w-[1150px] mx-auto z-10 lg:px-0 px-4 pt-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17529
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "flex flex-col w-full h-full max-w-[1150px] mx-auto z-10 lg:px-0 px-4 pt-4", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17307
17530
  EmptyState_default,
17308
17531
  {
17309
17532
  image: emptyStateImage,
@@ -17312,10 +17535,10 @@ var ActivityDetails = ({
17312
17535
  }
17313
17536
  ) }) });
17314
17537
  }
17315
- return /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5 overflow-hidden", children: [
17316
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("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: [
17317
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-2 py-4", children: [
17318
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17538
+ return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col w-full h-auto relative justify-center items-center mb-5 overflow-hidden", children: [
17539
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("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: [
17540
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-2 py-4", children: [
17541
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17319
17542
  "button",
17320
17543
  {
17321
17544
  onClick: handleBack,
@@ -17323,31 +17546,31 @@ var ActivityDetails = ({
17323
17546
  children: "Atividades"
17324
17547
  }
17325
17548
  ),
17326
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.CaretRight, { size: 16, className: "text-text-500" }),
17327
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-text-950 text-sm font-bold", children: data.activity.title })
17549
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_phosphor_react38.CaretRight, { size: 16, className: "text-text-500" }),
17550
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-text-950 text-sm font-bold", children: data.activity.title })
17328
17551
  ] }),
17329
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "bg-background rounded-xl p-4 flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex justify-between items-start", children: [
17330
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex flex-col gap-2", children: [
17331
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-2xl font-bold text-text-950", children: data.activity.title }),
17332
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-2 flex-wrap", children: [
17333
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Text_default, { className: "text-sm text-text-500", children: [
17552
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "bg-background rounded-xl p-4 flex flex-col gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex justify-between items-start", children: [
17553
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex flex-col gap-2", children: [
17554
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-2xl font-bold text-text-950", children: data.activity.title }),
17555
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-2 flex-wrap", children: [
17556
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Text_default, { className: "text-sm text-text-500", children: [
17334
17557
  "In\xEDcio",
17335
17558
  " ",
17336
17559
  data.activity.startDate ? formatDateToBrazilian(data.activity.startDate) : "00/00/0000"
17337
17560
  ] }),
17338
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17339
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Text_default, { className: "text-sm text-text-500", children: [
17561
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17562
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Text_default, { className: "text-sm text-text-500", children: [
17340
17563
  "Prazo final",
17341
17564
  " ",
17342
17565
  data.activity.finalDate ? formatDateToBrazilian(data.activity.finalDate) : "00/00/0000"
17343
17566
  ] }),
17344
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17345
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.schoolName }),
17346
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17347
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.year }),
17348
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17349
- subjectInfo ? /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "flex items-center gap-1", children: [
17350
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17567
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17568
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.schoolName }),
17569
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17570
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.year }),
17571
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17572
+ subjectInfo ? /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "flex items-center gap-1", children: [
17573
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17351
17574
  "span",
17352
17575
  {
17353
17576
  className: cn(
@@ -17357,33 +17580,33 @@ var ActivityDetails = ({
17357
17580
  children: subjectInfo.icon
17358
17581
  }
17359
17582
  ),
17360
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.subjectName })
17361
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.subjectName }),
17362
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17363
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.className })
17583
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.subjectName })
17584
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.subjectName }),
17585
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("span", { className: "w-1 h-1 rounded-full bg-text-500" }),
17586
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-sm text-text-500", children: data.activity.className })
17364
17587
  ] })
17365
17588
  ] }),
17366
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
17589
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
17367
17590
  Button_default,
17368
17591
  {
17369
17592
  size: "small",
17370
17593
  onClick: handleViewActivity,
17371
17594
  className: "bg-primary-950 text-text gap-2",
17372
17595
  children: [
17373
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.File, { size: 16 }),
17596
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_phosphor_react38.File, { size: 16 }),
17374
17597
  "Ver atividade"
17375
17598
  ]
17376
17599
  }
17377
17600
  )
17378
17601
  ] }) }),
17379
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
17602
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
17380
17603
  "div",
17381
17604
  {
17382
17605
  className: cn("grid gap-5", isMobile ? "grid-cols-2" : "grid-cols-5"),
17383
17606
  children: [
17384
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "border border-border-50 rounded-xl py-4 px-0 flex flex-col items-center justify-center gap-2 bg-primary-50", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "relative w-[90px] h-[90px]", children: [
17385
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("svg", { className: "w-full h-full transform -rotate-90", children: [
17386
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17607
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "border border-border-50 rounded-xl py-4 px-0 flex flex-col items-center justify-center gap-2 bg-primary-50", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "relative w-[90px] h-[90px]", children: [
17608
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("svg", { className: "w-full h-full transform -rotate-90", children: [
17609
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17387
17610
  "circle",
17388
17611
  {
17389
17612
  cx: "45",
@@ -17394,7 +17617,7 @@ var ActivityDetails = ({
17394
17617
  fill: "none"
17395
17618
  }
17396
17619
  ),
17397
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17620
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17398
17621
  "circle",
17399
17622
  {
17400
17623
  cx: "45",
@@ -17408,56 +17631,56 @@ var ActivityDetails = ({
17408
17631
  }
17409
17632
  )
17410
17633
  ] }),
17411
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
17412
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(Text_default, { className: "text-xl font-medium text-primary-600", children: [
17634
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
17635
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(Text_default, { className: "text-xl font-medium text-primary-600", children: [
17413
17636
  Math.round(data.generalStats.completionPercentage),
17414
17637
  "%"
17415
17638
  ] }),
17416
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-2xs font-bold text-text-600 uppercase", children: "Conclu\xEDdo" })
17639
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-2xs font-bold text-text-600 uppercase", children: "Conclu\xEDdo" })
17417
17640
  ] })
17418
17641
  ] }) }),
17419
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "border border-border-50 rounded-xl py-4 px-3 flex flex-col items-center justify-center gap-1 bg-warning-background", children: [
17420
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-warning-300", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.Star, { size: 16, className: "text-white", weight: "regular" }) }),
17421
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-warning-600", children: "M\xE9dia da Turma" }),
17422
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-xl font-bold text-warning-600", children: data.generalStats.averageScore.toFixed(1) })
17642
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "border border-border-50 rounded-xl py-4 px-3 flex flex-col items-center justify-center gap-1 bg-warning-background", children: [
17643
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-warning-300", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_phosphor_react38.Star, { size: 16, className: "text-white", weight: "regular" }) }),
17644
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-warning-600", children: "M\xE9dia da Turma" }),
17645
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-xl font-bold text-warning-600", children: data.generalStats.averageScore.toFixed(1) })
17423
17646
  ] }),
17424
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "border border-border-50 rounded-xl py-2 px-3 flex flex-col items-center justify-center gap-1 bg-success-200", children: [
17425
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-indicator-positive", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.Medal, { size: 16, className: "text-text-950", weight: "regular" }) }),
17426
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-success-700", children: "Quest\xF5es com mais acertos" }),
17427
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-xl font-bold text-success-700", children: formatQuestionNumbers(data.questionStats.mostCorrect) })
17647
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "border border-border-50 rounded-xl py-2 px-3 flex flex-col items-center justify-center gap-1 bg-success-200", children: [
17648
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-indicator-positive", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_phosphor_react38.Medal, { size: 16, className: "text-text-950", weight: "regular" }) }),
17649
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-success-700", children: "Quest\xF5es com mais acertos" }),
17650
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-xl font-bold text-success-700", children: formatQuestionNumbers(data.questionStats.mostCorrect) })
17428
17651
  ] }),
17429
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "border border-border-50 rounded-xl py-2 px-3 flex flex-col items-center justify-center gap-1 bg-error-100", children: [
17430
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-indicator-negative", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17431
- import_phosphor_react37.WarningCircle,
17652
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "border border-border-50 rounded-xl py-2 px-3 flex flex-col items-center justify-center gap-1 bg-error-100", children: [
17653
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-indicator-negative", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17654
+ import_phosphor_react38.WarningCircle,
17432
17655
  {
17433
17656
  size: 16,
17434
17657
  className: "text-white",
17435
17658
  weight: "regular"
17436
17659
  }
17437
17660
  ) }),
17438
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-error-700", children: "Quest\xF5es com mais erros" }),
17439
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-xl font-bold text-error-700", children: formatQuestionNumbers(data.questionStats.mostIncorrect) })
17661
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-error-700", children: "Quest\xF5es com mais erros" }),
17662
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-xl font-bold text-error-700", children: formatQuestionNumbers(data.questionStats.mostIncorrect) })
17440
17663
  ] }),
17441
- /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "border border-border-50 rounded-xl py-2 px-3 flex flex-col items-center justify-center gap-1 bg-info-background", children: [
17442
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-info-500", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17443
- import_phosphor_react37.WarningCircle,
17664
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "border border-border-50 rounded-xl py-2 px-3 flex flex-col items-center justify-center gap-1 bg-info-background", children: [
17665
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-[30px] h-[30px] rounded-2xl flex items-center justify-center bg-info-500", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17666
+ import_phosphor_react38.WarningCircle,
17444
17667
  {
17445
17668
  size: 16,
17446
17669
  className: "text-white",
17447
17670
  weight: "regular"
17448
17671
  }
17449
17672
  ) }),
17450
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-info-700", children: "Quest\xF5es n\xE3o respondidas" }),
17451
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-xl font-bold text-info-700", children: formatQuestionNumbers(data.questionStats.notAnswered) })
17673
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-2xs font-bold uppercase text-center text-info-700", children: "Quest\xF5es n\xE3o respondidas" }),
17674
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-xl font-bold text-info-700", children: formatQuestionNumbers(data.questionStats.notAnswered) })
17452
17675
  ] })
17453
17676
  ]
17454
17677
  }
17455
17678
  ),
17456
- correctionError && /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)("div", { className: "w-full bg-error-50 border border-error-200 rounded-xl p-4 flex items-center gap-3", children: [
17457
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_phosphor_react37.WarningCircle, { size: 20, className: "text-error-600", weight: "fill" }),
17458
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Text_default, { className: "text-error-700 text-sm", children: correctionError })
17679
+ correctionError && /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)("div", { className: "w-full bg-error-50 border border-error-200 rounded-xl p-4 flex items-center gap-3", children: [
17680
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_phosphor_react38.WarningCircle, { size: 20, className: "text-error-600", weight: "fill" }),
17681
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(Text_default, { className: "text-error-700 text-sm", children: correctionError })
17459
17682
  ] }),
17460
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("div", { className: "w-full bg-background rounded-xl p-6 space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17683
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)("div", { className: "w-full bg-background rounded-xl p-6 space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17461
17684
  TableProvider,
17462
17685
  {
17463
17686
  data: tableData,
@@ -17474,7 +17697,7 @@ var ActivityDetails = ({
17474
17697
  totalPages: data.pagination.totalPages
17475
17698
  },
17476
17699
  emptyState: {
17477
- component: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17700
+ component: /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17478
17701
  EmptyState_default,
17479
17702
  {
17480
17703
  image: emptyStateImage,
@@ -17484,14 +17707,14 @@ var ActivityDetails = ({
17484
17707
  )
17485
17708
  },
17486
17709
  onParamsChange: handleTableParamsChange,
17487
- children: ({ table, pagination }) => /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_jsx_runtime73.Fragment, { children: [
17710
+ children: ({ table, pagination }) => /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_jsx_runtime74.Fragment, { children: [
17488
17711
  table,
17489
17712
  pagination
17490
17713
  ] })
17491
17714
  }
17492
17715
  ) })
17493
17716
  ] }),
17494
- /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
17717
+ /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
17495
17718
  CorrectActivityModal_default,
17496
17719
  {
17497
17720
  isOpen: isModalOpen,
@@ -17505,10 +17728,10 @@ var ActivityDetails = ({
17505
17728
  };
17506
17729
 
17507
17730
  // src/components/Support/Support.tsx
17508
- var import_react58 = require("react");
17731
+ var import_react59 = require("react");
17509
17732
  var import_react_hook_form = require("react-hook-form");
17510
17733
  var import_zod2 = require("@hookform/resolvers/zod");
17511
- var import_react59 = require("@phosphor-icons/react");
17734
+ var import_react60 = require("@phosphor-icons/react");
17512
17735
  var import_dayjs2 = __toESM(require("dayjs"));
17513
17736
 
17514
17737
  // src/components/Support/schema/index.ts
@@ -17531,7 +17754,7 @@ var supportSchema = import_zod.z.object({
17531
17754
  });
17532
17755
 
17533
17756
  // src/components/Support/components/TicketModal.tsx
17534
- var import_react57 = require("react");
17757
+ var import_react58 = require("react");
17535
17758
  var import_dayjs = __toESM(require("dayjs"));
17536
17759
  var import_pt_br = require("dayjs/locale/pt-br");
17537
17760
 
@@ -17611,37 +17834,37 @@ var mapInternalStatusToApi = (internalStatus) => {
17611
17834
  };
17612
17835
 
17613
17836
  // src/components/Support/utils/supportUtils.tsx
17614
- var import_react56 = require("@phosphor-icons/react");
17615
- var import_jsx_runtime74 = require("react/jsx-runtime");
17837
+ var import_react57 = require("@phosphor-icons/react");
17838
+ var import_jsx_runtime75 = require("react/jsx-runtime");
17616
17839
  var getCategoryIcon = (category, size = 16) => {
17617
17840
  if (!category) return null;
17618
17841
  switch (category) {
17619
17842
  case "acesso" /* ACESSO */:
17620
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react56.KeyIcon, { size });
17843
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react57.KeyIcon, { size });
17621
17844
  case "tecnico" /* TECNICO */:
17622
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react56.BugIcon, { size });
17845
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react57.BugIcon, { size });
17623
17846
  case "outros" /* OUTROS */:
17624
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react56.InfoIcon, { size });
17847
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react57.InfoIcon, { size });
17625
17848
  default:
17626
- return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_react56.InfoIcon, { size });
17849
+ return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_react57.InfoIcon, { size });
17627
17850
  }
17628
17851
  };
17629
17852
 
17630
17853
  // src/components/Support/components/TicketModal.tsx
17631
- var import_jsx_runtime75 = require("react/jsx-runtime");
17854
+ var import_jsx_runtime76 = require("react/jsx-runtime");
17632
17855
  import_dayjs.default.locale("pt-br");
17633
- var AnswerSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "bg-background p-4 space-y-6 rounded-xl", children: [
17634
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center space-x-6", children: [
17635
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SkeletonText, { width: "80px", height: 16 }),
17636
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SkeletonText, { width: "200px", height: 16 })
17856
+ var AnswerSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "bg-background p-4 space-y-6 rounded-xl", children: [
17857
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center space-x-6", children: [
17858
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SkeletonText, { width: "80px", height: 16 }),
17859
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SkeletonText, { width: "200px", height: 16 })
17637
17860
  ] }),
17638
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Divider_default, {}),
17639
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-start space-x-6", children: [
17640
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SkeletonText, { width: "80px", height: 16 }),
17641
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex-1 space-y-2", children: [
17642
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SkeletonText, { width: "100%", height: 16 }),
17643
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SkeletonText, { width: "80%", height: 16 }),
17644
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(SkeletonText, { width: "60%", height: 16 })
17861
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Divider_default, {}),
17862
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-start space-x-6", children: [
17863
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SkeletonText, { width: "80px", height: 16 }),
17864
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex-1 space-y-2", children: [
17865
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SkeletonText, { width: "100%", height: 16 }),
17866
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SkeletonText, { width: "80%", height: 16 }),
17867
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SkeletonText, { width: "60%", height: 16 })
17645
17868
  ] })
17646
17869
  ] })
17647
17870
  ] });
@@ -17653,17 +17876,17 @@ var TicketModal = ({
17653
17876
  apiClient,
17654
17877
  userId
17655
17878
  }) => {
17656
- const [showCloseConfirmation, setShowCloseConfirmation] = (0, import_react57.useState)(false);
17657
- const [responseText, setResponseText] = (0, import_react57.useState)("");
17658
- const [answers, setAnswers] = (0, import_react57.useState)([]);
17659
- const [isSubmittingAnswer, setIsSubmittingAnswer] = (0, import_react57.useState)(false);
17660
- const [isLoadingAnswers, setIsLoadingAnswers] = (0, import_react57.useState)(false);
17879
+ const [showCloseConfirmation, setShowCloseConfirmation] = (0, import_react58.useState)(false);
17880
+ const [responseText, setResponseText] = (0, import_react58.useState)("");
17881
+ const [answers, setAnswers] = (0, import_react58.useState)([]);
17882
+ const [isSubmittingAnswer, setIsSubmittingAnswer] = (0, import_react58.useState)(false);
17883
+ const [isLoadingAnswers, setIsLoadingAnswers] = (0, import_react58.useState)(false);
17661
17884
  const handleCloseTicket = () => {
17662
17885
  onTicketClose?.(ticket.id);
17663
17886
  setShowCloseConfirmation(false);
17664
17887
  onClose();
17665
17888
  };
17666
- const fetchAnswers = (0, import_react57.useCallback)(async () => {
17889
+ const fetchAnswers = (0, import_react58.useCallback)(async () => {
17667
17890
  if (!ticket.id || ticket.status !== "respondido" /* RESPONDIDO */) return;
17668
17891
  setIsLoadingAnswers(true);
17669
17892
  try {
@@ -17702,7 +17925,7 @@ var TicketModal = ({
17702
17925
  }
17703
17926
  };
17704
17927
  const canCloseTicket = ticket.status !== "encerrado" /* ENCERRADO */;
17705
- (0, import_react57.useEffect)(() => {
17928
+ (0, import_react58.useEffect)(() => {
17706
17929
  if (isOpen) {
17707
17930
  setResponseText("");
17708
17931
  (async () => {
@@ -17714,8 +17937,8 @@ var TicketModal = ({
17714
17937
  setAnswers([]);
17715
17938
  }
17716
17939
  }, [isOpen, fetchAnswers]);
17717
- return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
17718
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17940
+ return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
17941
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17719
17942
  Modal_default,
17720
17943
  {
17721
17944
  isOpen,
@@ -17725,10 +17948,10 @@ var TicketModal = ({
17725
17948
  hideCloseButton: false,
17726
17949
  closeOnEscape: true,
17727
17950
  "data-testid": "ticket-modal",
17728
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
17729
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex justify-between items-center mb-3", children: [
17730
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950", children: "Detalhes" }),
17731
- canCloseTicket && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17951
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
17952
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex justify-between items-center mb-3", children: [
17953
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950", children: "Detalhes" }),
17954
+ canCloseTicket && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17732
17955
  Button_default,
17733
17956
  {
17734
17957
  variant: "outline",
@@ -17739,10 +17962,10 @@ var TicketModal = ({
17739
17962
  }
17740
17963
  )
17741
17964
  ] }),
17742
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex-1 overflow-y-auto pr-2 space-y-6", children: [
17743
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "bg-background p-4 space-y-6 rounded-xl", children: [
17744
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center space-x-6", children: [
17745
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17965
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex-1 overflow-y-auto pr-2 space-y-6", children: [
17966
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "bg-background p-4 space-y-6 rounded-xl", children: [
17967
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center space-x-6", children: [
17968
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17746
17969
  Text_default,
17747
17970
  {
17748
17971
  size: "md",
@@ -17751,10 +17974,10 @@ var TicketModal = ({
17751
17974
  children: "ID"
17752
17975
  }
17753
17976
  ),
17754
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "md", weight: "normal", className: "text-text-600", children: ticket.id })
17977
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "normal", className: "text-text-600", children: ticket.id })
17755
17978
  ] }),
17756
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center space-x-6", children: [
17757
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17979
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center space-x-6", children: [
17980
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17758
17981
  Text_default,
17759
17982
  {
17760
17983
  size: "md",
@@ -17763,10 +17986,10 @@ var TicketModal = ({
17763
17986
  children: "Aberto em"
17764
17987
  }
17765
17988
  ),
17766
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "md", weight: "normal", className: "text-text-600", children: (0, import_dayjs.default)(ticket.createdAt).format("DD MMMM YYYY, [\xE0s] HH[h]") })
17989
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "normal", className: "text-text-600", children: (0, import_dayjs.default)(ticket.createdAt).format("DD MMMM YYYY, [\xE0s] HH[h]") })
17767
17990
  ] }),
17768
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center space-x-6", children: [
17769
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
17991
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center space-x-6", children: [
17992
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17770
17993
  Text_default,
17771
17994
  {
17772
17995
  size: "md",
@@ -17775,7 +17998,7 @@ var TicketModal = ({
17775
17998
  children: "Status"
17776
17999
  }
17777
18000
  ),
17778
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18001
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17779
18002
  Badge_default,
17780
18003
  {
17781
18004
  variant: "solid",
@@ -17786,8 +18009,8 @@ var TicketModal = ({
17786
18009
  }
17787
18010
  )
17788
18011
  ] }),
17789
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center space-x-6", children: [
17790
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18012
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center space-x-6", children: [
18013
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17791
18014
  Text_default,
17792
18015
  {
17793
18016
  size: "md",
@@ -17796,7 +18019,7 @@ var TicketModal = ({
17796
18019
  children: "Tipo"
17797
18020
  }
17798
18021
  ),
17799
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
18022
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
17800
18023
  Badge_default,
17801
18024
  {
17802
18025
  variant: "solid",
@@ -17810,9 +18033,9 @@ var TicketModal = ({
17810
18033
  }
17811
18034
  )
17812
18035
  ] }),
17813
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Divider_default, {}),
17814
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-start space-x-6", children: [
17815
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18036
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Divider_default, {}),
18037
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-start space-x-6", children: [
18038
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17816
18039
  Text_default,
17817
18040
  {
17818
18041
  size: "md",
@@ -17821,24 +18044,24 @@ var TicketModal = ({
17821
18044
  children: "Descri\xE7\xE3o"
17822
18045
  }
17823
18046
  ),
17824
- ticket.description && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "md", weight: "normal", className: "text-text-600", children: ticket.description })
18047
+ ticket.description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "normal", className: "text-text-600", children: ticket.description })
17825
18048
  ] })
17826
18049
  ] }),
17827
- ticket.status === "respondido" /* RESPONDIDO */ && isLoadingAnswers && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
17828
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950 my-6", children: "Resposta de Suporte T\xE9cnico" }),
17829
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(AnswerSkeleton, {})
18050
+ ticket.status === "respondido" /* RESPONDIDO */ && isLoadingAnswers && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
18051
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950 my-6", children: "Resposta de Suporte T\xE9cnico" }),
18052
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(AnswerSkeleton, {})
17830
18053
  ] }),
17831
- !isLoadingAnswers && answers.some((answer) => answer.userId !== userId) && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
17832
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950 my-6", children: "Resposta de Suporte T\xE9cnico" }),
18054
+ !isLoadingAnswers && answers.some((answer) => answer.userId !== userId) && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
18055
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950 my-6", children: "Resposta de Suporte T\xE9cnico" }),
17833
18056
  answers.filter((answer) => answer.userId !== userId).sort(
17834
18057
  (a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
17835
- ).slice(0, 1).map((answer) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
18058
+ ).slice(0, 1).map((answer) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
17836
18059
  "div",
17837
18060
  {
17838
18061
  className: "bg-background p-4 space-y-6 rounded-xl",
17839
18062
  children: [
17840
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center space-x-6", children: [
17841
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18063
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center space-x-6", children: [
18064
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17842
18065
  Text_default,
17843
18066
  {
17844
18067
  size: "md",
@@ -17847,7 +18070,7 @@ var TicketModal = ({
17847
18070
  children: "Recebido"
17848
18071
  }
17849
18072
  ),
17850
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18073
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17851
18074
  Text_default,
17852
18075
  {
17853
18076
  size: "md",
@@ -17859,9 +18082,9 @@ var TicketModal = ({
17859
18082
  }
17860
18083
  )
17861
18084
  ] }),
17862
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Divider_default, {}),
17863
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-start space-x-6", children: [
17864
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18085
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Divider_default, {}),
18086
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-start space-x-6", children: [
18087
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17865
18088
  Text_default,
17866
18089
  {
17867
18090
  size: "md",
@@ -17870,7 +18093,7 @@ var TicketModal = ({
17870
18093
  children: "Resposta"
17871
18094
  }
17872
18095
  ),
17873
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18096
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17874
18097
  Text_default,
17875
18098
  {
17876
18099
  size: "md",
@@ -17885,17 +18108,17 @@ var TicketModal = ({
17885
18108
  answer.id
17886
18109
  ))
17887
18110
  ] }),
17888
- !isLoadingAnswers && answers.some((answer) => answer.userId === userId) && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
17889
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950 my-6", children: "Resposta enviada" }),
18111
+ !isLoadingAnswers && answers.some((answer) => answer.userId === userId) && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
18112
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-950 my-6", children: "Resposta enviada" }),
17890
18113
  answers.filter((answer) => answer.userId === userId).sort(
17891
18114
  (a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
17892
- ).slice(0, 1).map((answer) => /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
18115
+ ).slice(0, 1).map((answer) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
17893
18116
  "div",
17894
18117
  {
17895
18118
  className: "bg-background p-4 space-y-6 rounded-xl",
17896
18119
  children: [
17897
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-center space-x-6", children: [
17898
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18120
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center space-x-6", children: [
18121
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17899
18122
  Text_default,
17900
18123
  {
17901
18124
  size: "md",
@@ -17904,7 +18127,7 @@ var TicketModal = ({
17904
18127
  children: "Enviada"
17905
18128
  }
17906
18129
  ),
17907
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18130
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17908
18131
  Text_default,
17909
18132
  {
17910
18133
  size: "md",
@@ -17916,9 +18139,9 @@ var TicketModal = ({
17916
18139
  }
17917
18140
  )
17918
18141
  ] }),
17919
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Divider_default, {}),
17920
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex items-start space-x-6", children: [
17921
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18142
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Divider_default, {}),
18143
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-start space-x-6", children: [
18144
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17922
18145
  Text_default,
17923
18146
  {
17924
18147
  size: "md",
@@ -17927,7 +18150,7 @@ var TicketModal = ({
17927
18150
  children: "Resposta"
17928
18151
  }
17929
18152
  ),
17930
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18153
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17931
18154
  Text_default,
17932
18155
  {
17933
18156
  size: "md",
@@ -17942,10 +18165,10 @@ var TicketModal = ({
17942
18165
  answer.id
17943
18166
  ))
17944
18167
  ] }),
17945
- !isLoadingAnswers && answers.some((answer) => answer.userId !== userId) && /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(import_jsx_runtime75.Fragment, { children: [
17946
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 my-6", children: "Responder" }),
17947
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "space-y-4", children: [
17948
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18168
+ !isLoadingAnswers && answers.some((answer) => answer.userId !== userId) && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(import_jsx_runtime76.Fragment, { children: [
18169
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 my-6", children: "Responder" }),
18170
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-4", children: [
18171
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17949
18172
  TextArea_default,
17950
18173
  {
17951
18174
  placeholder: "Detalhe o problema aqui.",
@@ -17955,7 +18178,7 @@ var TicketModal = ({
17955
18178
  onChange: (e) => setResponseText(e.target.value)
17956
18179
  }
17957
18180
  ),
17958
- responseText.trim().length > 0 && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18181
+ responseText.trim().length > 0 && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17959
18182
  Button_default,
17960
18183
  {
17961
18184
  variant: "solid",
@@ -17971,7 +18194,7 @@ var TicketModal = ({
17971
18194
  ] })
17972
18195
  }
17973
18196
  ),
17974
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18197
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17975
18198
  Modal_default,
17976
18199
  {
17977
18200
  isOpen: showCloseConfirmation,
@@ -17981,10 +18204,10 @@ var TicketModal = ({
17981
18204
  hideCloseButton: false,
17982
18205
  closeOnEscape: true,
17983
18206
  "data-testid": "close-ticket-modal",
17984
- children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "space-y-6", children: [
17985
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-700", children: "Ao encerrar este pedido, ele ser\xE1 fechado e n\xE3o poder\xE1 mais ser atualizado." }),
17986
- /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: "flex gap-3 justify-end", children: [
17987
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18207
+ children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-6", children: [
18208
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-700", children: "Ao encerrar este pedido, ele ser\xE1 fechado e n\xE3o poder\xE1 mais ser atualizado." }),
18209
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex gap-3 justify-end", children: [
18210
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17988
18211
  Button_default,
17989
18212
  {
17990
18213
  variant: "outline",
@@ -17993,7 +18216,7 @@ var TicketModal = ({
17993
18216
  children: "Cancelar"
17994
18217
  }
17995
18218
  ),
17996
- /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
18219
+ /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
17997
18220
  Button_default,
17998
18221
  {
17999
18222
  variant: "solid",
@@ -18014,20 +18237,20 @@ var TicketModal = ({
18014
18237
  var suporthistory_default = "./suporthistory-W5LBGAUP.png";
18015
18238
 
18016
18239
  // src/components/Support/Support.tsx
18017
- var import_jsx_runtime76 = require("react/jsx-runtime");
18240
+ var import_jsx_runtime77 = require("react/jsx-runtime");
18018
18241
  var TicketCard = ({
18019
18242
  ticket,
18020
18243
  onTicketClick
18021
- }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
18244
+ }) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
18022
18245
  "button",
18023
18246
  {
18024
18247
  type: "button",
18025
18248
  className: "flex items-center justify-between p-4 bg-background rounded-xl cursor-pointer w-full text-left hover:bg-background-50 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2",
18026
18249
  onClick: () => onTicketClick(ticket),
18027
18250
  children: [
18028
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "xs", weight: "bold", className: "text-text-900", children: ticket.title }) }),
18029
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex items-center gap-3", children: [
18030
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18251
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text_default, { size: "xs", weight: "bold", className: "text-text-900", children: ticket.title }) }),
18252
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex items-center gap-3", children: [
18253
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18031
18254
  Badge_default,
18032
18255
  {
18033
18256
  variant: "solid",
@@ -18036,11 +18259,11 @@ var TicketCard = ({
18036
18259
  children: getStatusText(ticket.status)
18037
18260
  }
18038
18261
  ),
18039
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Badge_default, { variant: "solid", className: "flex items-center gap-1", action: "muted", children: [
18262
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Badge_default, { variant: "solid", className: "flex items-center gap-1", action: "muted", children: [
18040
18263
  getCategoryIcon(ticket.category, 18),
18041
18264
  getCategoryText(ticket.category)
18042
18265
  ] }),
18043
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react59.CaretRightIcon, { size: 24, className: "text-text-800" })
18266
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react60.CaretRightIcon, { size: 24, className: "text-text-800" })
18044
18267
  ] })
18045
18268
  ]
18046
18269
  },
@@ -18050,9 +18273,9 @@ var TicketGroup = ({
18050
18273
  date,
18051
18274
  tickets,
18052
18275
  onTicketClick
18053
- }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-4", children: [
18054
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-900", children: (0, import_dayjs2.default)(date).format("DD MMM YYYY") }),
18055
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "space-y-3", children: tickets.map((ticket) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18276
+ }) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "space-y-4", children: [
18277
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text_default, { size: "md", weight: "bold", className: "text-text-900", children: (0, import_dayjs2.default)(date).format("DD MMM YYYY") }),
18278
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "space-y-3", children: tickets.map((ticket) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18056
18279
  TicketCard,
18057
18280
  {
18058
18281
  ticket,
@@ -18061,13 +18284,13 @@ var TicketGroup = ({
18061
18284
  ticket.id
18062
18285
  )) })
18063
18286
  ] }, date);
18064
- var EmptyState2 = ({ imageSrc }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-row justify-center items-center mt-48", children: [
18065
- imageSrc && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("img", { src: imageSrc, alt: "Imagem de suporte" }),
18066
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "3xl", weight: "semibold", children: "Nenhum pedido encontrado." })
18287
+ var EmptyState2 = ({ imageSrc }) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-row justify-center items-center mt-48", children: [
18288
+ imageSrc && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("img", { src: imageSrc, alt: "Imagem de suporte" }),
18289
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text_default, { size: "3xl", weight: "semibold", children: "Nenhum pedido encontrado." })
18067
18290
  ] });
18068
- var TicketSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "space-y-6", children: [0, 1].map((groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-4", children: [
18069
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SkeletonText, { width: "150px", height: 20 }),
18070
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "space-y-3", children: [0, 1].map((ticketIndex) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18291
+ var TicketSkeleton = () => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "space-y-6", children: [0, 1].map((groupIndex) => /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "space-y-4", children: [
18292
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SkeletonText, { width: "150px", height: 20 }),
18293
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "space-y-3", children: [0, 1].map((ticketIndex) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18071
18294
  SkeletonRounded,
18072
18295
  {
18073
18296
  width: "100%",
@@ -18085,21 +18308,21 @@ var Support = ({
18085
18308
  onTicketCreated,
18086
18309
  onTicketClosed
18087
18310
  }) => {
18088
- const [activeTab, setActiveTab] = (0, import_react58.useState)("criar-pedido");
18089
- const [selectedProblem, setSelectedProblem] = (0, import_react58.useState)(null);
18090
- const [statusFilter, setStatusFilter] = (0, import_react58.useState)("todos");
18091
- const [categoryFilter, setCategoryFilter] = (0, import_react58.useState)("todos");
18092
- const [selectedTicket, setSelectedTicket] = (0, import_react58.useState)(
18311
+ const [activeTab, setActiveTab] = (0, import_react59.useState)("criar-pedido");
18312
+ const [selectedProblem, setSelectedProblem] = (0, import_react59.useState)(null);
18313
+ const [statusFilter, setStatusFilter] = (0, import_react59.useState)("todos");
18314
+ const [categoryFilter, setCategoryFilter] = (0, import_react59.useState)("todos");
18315
+ const [selectedTicket, setSelectedTicket] = (0, import_react59.useState)(
18093
18316
  null
18094
18317
  );
18095
- const [isModalOpen, setIsModalOpen] = (0, import_react58.useState)(false);
18096
- const [submitError, setSubmitError] = (0, import_react58.useState)(null);
18097
- const [showSuccessToast, setShowSuccessToast] = (0, import_react58.useState)(false);
18098
- const [showCloseSuccessToast, setShowCloseSuccessToast] = (0, import_react58.useState)(false);
18099
- const [showCloseErrorToast, setShowCloseErrorToast] = (0, import_react58.useState)(false);
18100
- const [allTickets, setAllTickets] = (0, import_react58.useState)([]);
18101
- const [loadingTickets, setLoadingTickets] = (0, import_react58.useState)(false);
18102
- const [currentPage, setCurrentPage] = (0, import_react58.useState)(1);
18318
+ const [isModalOpen, setIsModalOpen] = (0, import_react59.useState)(false);
18319
+ const [submitError, setSubmitError] = (0, import_react59.useState)(null);
18320
+ const [showSuccessToast, setShowSuccessToast] = (0, import_react59.useState)(false);
18321
+ const [showCloseSuccessToast, setShowCloseSuccessToast] = (0, import_react59.useState)(false);
18322
+ const [showCloseErrorToast, setShowCloseErrorToast] = (0, import_react59.useState)(false);
18323
+ const [allTickets, setAllTickets] = (0, import_react59.useState)([]);
18324
+ const [loadingTickets, setLoadingTickets] = (0, import_react59.useState)(false);
18325
+ const [currentPage, setCurrentPage] = (0, import_react59.useState)(1);
18103
18326
  const ITEMS_PER_PAGE = 10;
18104
18327
  const handlePrevPage = () => {
18105
18328
  if (currentPage > 1) {
@@ -18112,13 +18335,13 @@ var Support = ({
18112
18335
  setCurrentPage(currentPage + 1);
18113
18336
  }
18114
18337
  };
18115
- (0, import_react58.useEffect)(() => {
18338
+ (0, import_react59.useEffect)(() => {
18116
18339
  if (activeTab === "historico") {
18117
18340
  fetchTickets(statusFilter);
18118
18341
  setCurrentPage(1);
18119
18342
  }
18120
18343
  }, [activeTab, statusFilter]);
18121
- (0, import_react58.useEffect)(() => {
18344
+ (0, import_react59.useEffect)(() => {
18122
18345
  setCurrentPage(1);
18123
18346
  }, [categoryFilter]);
18124
18347
  const convertApiTicketToComponent = (apiTicket) => {
@@ -18248,25 +18471,25 @@ var Support = ({
18248
18471
  {
18249
18472
  id: "tecnico" /* TECNICO */,
18250
18473
  title: "T\xE9cnico",
18251
- icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react59.BugIcon, { size: 24 })
18474
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react60.BugIcon, { size: 24 })
18252
18475
  },
18253
18476
  {
18254
18477
  id: "acesso" /* ACESSO */,
18255
18478
  title: "Acesso",
18256
- icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react59.KeyIcon, { size: 24 })
18479
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react60.KeyIcon, { size: 24 })
18257
18480
  },
18258
18481
  {
18259
18482
  id: "outros" /* OUTROS */,
18260
18483
  title: "Outros",
18261
- icon: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react59.InfoIcon, { size: 24 })
18484
+ icon: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react60.InfoIcon, { size: 24 })
18262
18485
  }
18263
18486
  ];
18264
18487
  const emptyImage = emptyStateImage || suporthistory_default;
18265
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex flex-col w-full h-full relative justify-start items-center mb-5 overflow-y-auto", children: [
18266
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col w-full h-full max-w-[992px] z-10 lg:px-0 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-4", children: [
18267
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex w-full mb-4 flex-row items-center justify-between not-lg:gap-4 lg:gap-6", children: [
18268
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("h1", { className: "font-bold leading-[28px] tracking-[0.2px] text-text-950 text-xl mt-4 sm:text-2xl sm:flex-1 sm:self-end sm:mt-0", children: title }),
18269
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "sm:flex-shrink-0 sm:self-end", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18488
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex flex-col w-full h-full relative justify-start items-center mb-5 overflow-y-auto", children: [
18489
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col w-full h-full max-w-[992px] z-10 lg:px-0 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "space-y-4", children: [
18490
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex w-full mb-4 flex-row items-center justify-between not-lg:gap-4 lg:gap-6", children: [
18491
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("h1", { className: "font-bold leading-[28px] tracking-[0.2px] text-text-950 text-xl mt-4 sm:text-2xl sm:flex-1 sm:self-end sm:mt-0", children: title }),
18492
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "sm:flex-shrink-0 sm:self-end", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18270
18493
  Menu_default,
18271
18494
  {
18272
18495
  value: activeTab,
@@ -18274,8 +18497,8 @@ var Support = ({
18274
18497
  variant: "menu2",
18275
18498
  onValueChange: (value) => setActiveTab(value),
18276
18499
  className: "bg-transparent shadow-none px-0",
18277
- children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(MenuContent, { variant: "menu2", children: [
18278
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18500
+ children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(MenuContent, { variant: "menu2", children: [
18501
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18279
18502
  MenuItem,
18280
18503
  {
18281
18504
  variant: "menu2",
@@ -18284,7 +18507,7 @@ var Support = ({
18284
18507
  children: "Criar Pedido"
18285
18508
  }
18286
18509
  ),
18287
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18510
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18288
18511
  MenuItem,
18289
18512
  {
18290
18513
  variant: "menu2",
@@ -18297,9 +18520,9 @@ var Support = ({
18297
18520
  }
18298
18521
  ) })
18299
18522
  ] }),
18300
- activeTab === "criar-pedido" && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-2", children: [
18301
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { as: "h2", size: "md", weight: "bold", className: "text-text-900", children: "Selecione o tipo de problema" }),
18302
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col sm:flex-row gap-2 sm:gap-4", children: problemTypes.map((type) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18523
+ activeTab === "criar-pedido" && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "space-y-2", children: [
18524
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text_default, { as: "h2", size: "md", weight: "bold", className: "text-text-900", children: "Selecione o tipo de problema" }),
18525
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col sm:flex-row gap-2 sm:gap-4", children: problemTypes.map((type) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18303
18526
  SelectionButton_default,
18304
18527
  {
18305
18528
  icon: type.icon,
@@ -18310,10 +18533,10 @@ var Support = ({
18310
18533
  },
18311
18534
  type.id
18312
18535
  )) }),
18313
- errors.problemType && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "sm", className: "text-red-500 mt-1", children: errors.problemType.message })
18536
+ errors.problemType && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text_default, { size: "sm", className: "text-red-500 mt-1", children: errors.problemType.message })
18314
18537
  ] }),
18315
- selectedProblem && activeTab === "criar-pedido" && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("form", { onSubmit: handleSubmit(onSubmit), className: "space-y-4", children: [
18316
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18538
+ selectedProblem && activeTab === "criar-pedido" && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("form", { onSubmit: handleSubmit(onSubmit), className: "space-y-4", children: [
18539
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18317
18540
  Input_default,
18318
18541
  {
18319
18542
  size: "large",
@@ -18324,7 +18547,7 @@ var Support = ({
18324
18547
  errorMessage: errors.title?.message
18325
18548
  }
18326
18549
  ) }),
18327
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18550
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18328
18551
  TextArea_default,
18329
18552
  {
18330
18553
  size: "large",
@@ -18334,7 +18557,7 @@ var Support = ({
18334
18557
  errorMessage: errors.description?.message
18335
18558
  }
18336
18559
  ) }),
18337
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18560
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18338
18561
  Button_default,
18339
18562
  {
18340
18563
  size: "large",
@@ -18344,11 +18567,11 @@ var Support = ({
18344
18567
  children: isSubmitting ? "Enviando..." : "Enviar Pedido"
18345
18568
  }
18346
18569
  ),
18347
- submitError && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "mt-4 p-4 bg-red-100 border border-red-400 text-red-700 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Text_default, { size: "sm", className: "text-red-700", children: submitError }) })
18570
+ submitError && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "mt-4 p-4 bg-red-100 border border-red-400 text-red-700 rounded", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(Text_default, { size: "sm", className: "text-red-700", children: submitError }) })
18348
18571
  ] }),
18349
- activeTab === "historico" && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "space-y-6", children: [
18350
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex gap-4", children: [
18351
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col flex-1/2 space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
18572
+ activeTab === "historico" && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "space-y-6", children: [
18573
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex gap-4", children: [
18574
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col flex-1/2 space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
18352
18575
  Select_default,
18353
18576
  {
18354
18577
  label: "Status",
@@ -18356,17 +18579,17 @@ var Support = ({
18356
18579
  value: statusFilter,
18357
18580
  onValueChange: setStatusFilter,
18358
18581
  children: [
18359
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectTrigger, { variant: "rounded", className: "", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectValue, { placeholder: "Todos" }) }),
18360
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(SelectContent, { children: [
18361
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectItem, { value: "todos", children: "Todos" }),
18362
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectItem, { value: "aberto" /* ABERTO */, children: "Aberto" }),
18363
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectItem, { value: "respondido" /* RESPONDIDO */, children: "Respondido" }),
18364
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectItem, { value: "encerrado" /* ENCERRADO */, children: "Encerrado" })
18582
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectTrigger, { variant: "rounded", className: "", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectValue, { placeholder: "Todos" }) }),
18583
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(SelectContent, { children: [
18584
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectItem, { value: "todos", children: "Todos" }),
18585
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectItem, { value: "aberto" /* ABERTO */, children: "Aberto" }),
18586
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectItem, { value: "respondido" /* RESPONDIDO */, children: "Respondido" }),
18587
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectItem, { value: "encerrado" /* ENCERRADO */, children: "Encerrado" })
18365
18588
  ] })
18366
18589
  ]
18367
18590
  }
18368
18591
  ) }),
18369
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "flex flex-col flex-1/2 space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(
18592
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "flex flex-col flex-1/2 space-y-1", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(
18370
18593
  Select_default,
18371
18594
  {
18372
18595
  label: "Tipo",
@@ -18374,19 +18597,19 @@ var Support = ({
18374
18597
  value: categoryFilter,
18375
18598
  onValueChange: setCategoryFilter,
18376
18599
  children: [
18377
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectTrigger, { variant: "rounded", className: "", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectValue, { placeholder: "Todos" }) }),
18378
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(SelectContent, { children: [
18379
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(SelectItem, { value: "todos", children: "Todos" }),
18380
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(SelectItem, { value: "tecnico" /* TECNICO */, children: [
18381
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react59.BugIcon, { size: 16 }),
18600
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectTrigger, { variant: "rounded", className: "", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectValue, { placeholder: "Todos" }) }),
18601
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(SelectContent, { children: [
18602
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(SelectItem, { value: "todos", children: "Todos" }),
18603
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(SelectItem, { value: "tecnico" /* TECNICO */, children: [
18604
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react60.BugIcon, { size: 16 }),
18382
18605
  " T\xE9cnico"
18383
18606
  ] }),
18384
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(SelectItem, { value: "acesso" /* ACESSO */, children: [
18385
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react59.KeyIcon, { size: 16 }),
18607
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(SelectItem, { value: "acesso" /* ACESSO */, children: [
18608
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react60.KeyIcon, { size: 16 }),
18386
18609
  " Acesso"
18387
18610
  ] }),
18388
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(SelectItem, { value: "outros" /* OUTROS */, children: [
18389
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_react59.InfoIcon, { size: 16 }),
18611
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(SelectItem, { value: "outros" /* OUTROS */, children: [
18612
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_react60.InfoIcon, { size: 16 }),
18390
18613
  " Outros"
18391
18614
  ] })
18392
18615
  ] })
@@ -18396,14 +18619,14 @@ var Support = ({
18396
18619
  ] }),
18397
18620
  (() => {
18398
18621
  if (loadingTickets) {
18399
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(TicketSkeleton, {});
18622
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(TicketSkeleton, {});
18400
18623
  }
18401
18624
  if (Object.keys(groupedTickets).length === 0) {
18402
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(EmptyState2, { imageSrc: emptyImage });
18625
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(EmptyState2, { imageSrc: emptyImage });
18403
18626
  }
18404
- return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "space-y-6", children: Object.entries(groupedTickets).sort(
18627
+ return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "space-y-6", children: Object.entries(groupedTickets).sort(
18405
18628
  ([a], [b]) => new Date(b).getTime() - new Date(a).getTime()
18406
- ).map(([date, tickets]) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18629
+ ).map(([date, tickets]) => /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18407
18630
  TicketGroup,
18408
18631
  {
18409
18632
  date,
@@ -18413,8 +18636,8 @@ var Support = ({
18413
18636
  date
18414
18637
  )) });
18415
18638
  })(),
18416
- !loadingTickets && totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { className: "flex justify-center items-center gap-4 mt-6", children: [
18417
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18639
+ !loadingTickets && totalPages > 1 && /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)("div", { className: "flex justify-center items-center gap-4 mt-6", children: [
18640
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18418
18641
  Button_default,
18419
18642
  {
18420
18643
  variant: "outline",
@@ -18424,13 +18647,13 @@ var Support = ({
18424
18647
  children: "Anterior"
18425
18648
  }
18426
18649
  ),
18427
- /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(Text_default, { size: "sm", className: "text-text-600", children: [
18650
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsxs)(Text_default, { size: "sm", className: "text-text-600", children: [
18428
18651
  "P\xE1gina ",
18429
18652
  currentPage,
18430
18653
  " de ",
18431
18654
  totalPages
18432
18655
  ] }),
18433
- /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18656
+ /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18434
18657
  Button_default,
18435
18658
  {
18436
18659
  variant: "outline",
@@ -18443,7 +18666,7 @@ var Support = ({
18443
18666
  ] })
18444
18667
  ] })
18445
18668
  ] }) }),
18446
- selectedTicket && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18669
+ selectedTicket && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18447
18670
  TicketModal,
18448
18671
  {
18449
18672
  ticket: selectedTicket,
@@ -18454,7 +18677,7 @@ var Support = ({
18454
18677
  userId
18455
18678
  }
18456
18679
  ),
18457
- showSuccessToast && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "fixed top-4 left-1/2 transform -translate-x-1/2 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18680
+ showSuccessToast && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "fixed top-4 left-1/2 transform -translate-x-1/2 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18458
18681
  Toast_default,
18459
18682
  {
18460
18683
  title: "Pedido enviado!",
@@ -18463,7 +18686,7 @@ var Support = ({
18463
18686
  onClose: () => setShowSuccessToast(false)
18464
18687
  }
18465
18688
  ) }),
18466
- showCloseSuccessToast && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "fixed top-4 left-1/2 transform -translate-x-1/2 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18689
+ showCloseSuccessToast && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "fixed top-4 left-1/2 transform -translate-x-1/2 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18467
18690
  Toast_default,
18468
18691
  {
18469
18692
  title: "Pedido encerrado!",
@@ -18472,7 +18695,7 @@ var Support = ({
18472
18695
  onClose: () => setShowCloseSuccessToast(false)
18473
18696
  }
18474
18697
  ) }),
18475
- showCloseErrorToast && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { className: "fixed top-4 left-1/2 transform -translate-x-1/2 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
18698
+ showCloseErrorToast && /* @__PURE__ */ (0, import_jsx_runtime77.jsx)("div", { className: "fixed top-4 left-1/2 transform -translate-x-1/2 z-50", children: /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
18476
18699
  Toast_default,
18477
18700
  {
18478
18701
  title: "Erro ao encerrar pedido",
@@ -18489,6 +18712,7 @@ var Support_default = Support;
18489
18712
  0 && (module.exports = {
18490
18713
  ANSWER_STATUS,
18491
18714
  AccordionGroup,
18715
+ ActivityCardQuestionBanks,
18492
18716
  ActivityDetails,
18493
18717
  ActivityFilters,
18494
18718
  ActivityFiltersPopover,