analytica-frontend-lib 1.1.90 → 1.1.92

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.
@@ -1040,7 +1040,6 @@ var useQuizStore = create2()(
1040
1040
  const activityId = quiz.id;
1041
1041
  const userId = get().getUserId();
1042
1042
  if (!userId || userId === "") {
1043
- console.warn("selectAnswer called before userId is set");
1044
1043
  return;
1045
1044
  }
1046
1045
  const question = quiz.questions.find((q) => q.id === questionId);
@@ -1074,7 +1073,6 @@ var useQuizStore = create2()(
1074
1073
  const activityId = quiz.id;
1075
1074
  const userId = get().getUserId();
1076
1075
  if (!userId || userId === "") {
1077
- console.warn("selectMultipleAnswer called before userId is set");
1078
1076
  return;
1079
1077
  }
1080
1078
  const question = quiz.questions.find((q) => q.id === questionId);
@@ -1109,16 +1107,10 @@ var useQuizStore = create2()(
1109
1107
  const activityId = quiz.id;
1110
1108
  const userId = get().getUserId();
1111
1109
  if (!userId || userId === "") {
1112
- console.warn(
1113
- "selectDissertativeAnswer called before userId is set"
1114
- );
1115
1110
  return;
1116
1111
  }
1117
1112
  const question = quiz.questions.find((q) => q.id === questionId);
1118
1113
  if (!question || question.questionType !== "DISSERTATIVA" /* DISSERTATIVA */) {
1119
- console.warn(
1120
- "selectDissertativeAnswer called for non-dissertative question"
1121
- );
1122
1114
  return;
1123
1115
  }
1124
1116
  const existingAnswerIndex = userAnswers.findIndex(
@@ -1152,7 +1144,6 @@ var useQuizStore = create2()(
1152
1144
  const activityId = quiz.id;
1153
1145
  const userId = get().getUserId();
1154
1146
  if (!userId || userId === "") {
1155
- console.warn("skipQuestion called before userId is set");
1156
1147
  return;
1157
1148
  }
1158
1149
  const existingAnswerIndex = userAnswers.findIndex(
@@ -1185,7 +1176,6 @@ var useQuizStore = create2()(
1185
1176
  const activityId = quiz.id;
1186
1177
  const userId = get().getUserId();
1187
1178
  if (!userId || userId === "") {
1188
- console.warn("addUserAnswer called before userId is set");
1189
1179
  return;
1190
1180
  }
1191
1181
  const question = quiz.questions.find((q) => q.id === questionId);
@@ -1413,9 +1403,6 @@ var useQuizStore = create2()(
1413
1403
  );
1414
1404
  }
1415
1405
  if (questionIndex === -1) {
1416
- console.warn(
1417
- `Question with id "${question.id}" not found in active quiz`
1418
- );
1419
1406
  return;
1420
1407
  }
1421
1408
  set({ currentQuestionIndex: questionIndex });
@@ -5926,34 +5913,16 @@ var QuizFooter = forwardRef11(
5926
5913
  children: "Avan\xE7ar"
5927
5914
  }
5928
5915
  )
5929
- ] }) : /* @__PURE__ */ jsxs17("div", { className: "flex flex-row items-center justify-between w-full", children: [
5930
- /* @__PURE__ */ jsx21("span", { children: quiz?.canRetry && /* @__PURE__ */ jsx21(
5931
- Button_default,
5932
- {
5933
- variant: "link",
5934
- action: "primary",
5935
- size: "medium",
5936
- onClick: () => openModal("modalResolution"),
5937
- children: "Ver Resolu\xE7\xE3o"
5938
- }
5939
- ) }),
5940
- /* @__PURE__ */ jsx21(
5941
- Button_default,
5942
- {
5943
- variant: "solid",
5944
- action: "primary",
5945
- size: "medium",
5946
- onClick: () => {
5947
- if (quiz?.canRetry) {
5948
- onRepeat?.();
5949
- } else {
5950
- openModal("modalResolution");
5951
- }
5952
- },
5953
- children: quiz?.canRetry ? `Repetir ${getTypeLabel(quiz.type)}` : "Ver Resolu\xE7\xE3o"
5954
- }
5955
- )
5956
- ] })
5916
+ ] }) : /* @__PURE__ */ jsx21("div", { className: "flex flex-row items-center justify-center w-full", children: /* @__PURE__ */ jsx21(
5917
+ Button_default,
5918
+ {
5919
+ variant: "link",
5920
+ action: "primary",
5921
+ size: "medium",
5922
+ onClick: () => openModal("modalResolution"),
5923
+ children: "Ver resolu\xE7\xE3o"
5924
+ }
5925
+ ) })
5957
5926
  }
5958
5927
  ),
5959
5928
  /* @__PURE__ */ jsx21(