analytica-frontend-lib 1.4.34 → 1.4.35

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Quiz.d.ts","sourceRoot":"","sources":["../../../src/components/Quiz/Quiz.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA0BxE,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS;;;;;;;;;;;;;;;;CA2BhD,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,MAAM,SAAS,mEAE3C,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,MAAM,SAAS,cAE7C,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,gBAEjD,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,WAGjD,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAAI,MAAM,SAAS,KAAG,MAMtD,CAAC;AAGF,eAAO,MAAM,uBAAuB,GAAI,MAAM,SAAS,WAGtD,CAAC;AAGF,eAAO,MAAM,yBAAyB,GAAI,MAAM,SAAS,WAGxD,CAAC;AAEF,QAAA,MAAM,IAAI;cAEI,SAAS;gBAAc,MAAM;cAAY,QAAQ,GAAG,SAAS;kDAazE,CAAC;AAEH,QAAA,MAAM,SAAS;gBAEC,MAAM;aAAW,MAAM,IAAI;kDAsGzC,CAAC;AAEH,QAAA,MAAM,UAAU,+CAmBf,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,mBAAmB;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,4CA2BjE,CAAC;AAMF,QAAA,MAAM,gBAAgB,GAAI,mCAGvB;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,4CAwFL,CAAC;AAEF,QAAA,MAAM,UAAU;gBAGA,MAAM;sBACA,MAAM,IAAI;qBACX,MAAM,IAAI;4BACH,MAAM,IAAI;uBACf,MAAM,IAAI;eAClB,MAAM,IAAI;iBACR,MAAM,IAAI;2BACA,SAAS;oCACA,SAAS;kDAkd5C,CAAC;AAEF,OAAO,EACL,SAAS,EACT,IAAI,EACJ,UAAU,EACV,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
1
+ {"version":3,"file":"Quiz.d.ts","sourceRoot":"","sources":["../../../src/components/Quiz/Quiz.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAA+B,SAAS,EAAE,MAAM,gBAAgB,CAAC;AA0BxE,eAAO,MAAM,iBAAiB,GAAI,MAAM,SAAS;;;;;;;;;;;;;;;;CA2BhD,CAAC;AAGF,eAAO,MAAM,YAAY,GAAI,MAAM,SAAS,mEAE3C,CAAC;AAGF,eAAO,MAAM,cAAc,GAAI,MAAM,SAAS,cAE7C,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,gBAEjD,CAAC;AAGF,eAAO,MAAM,kBAAkB,GAAI,MAAM,SAAS,WAGjD,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAAI,MAAM,SAAS,KAAG,MAMtD,CAAC;AAGF,eAAO,MAAM,uBAAuB,GAAI,MAAM,SAAS,WAGtD,CAAC;AAGF,eAAO,MAAM,yBAAyB,GAAI,MAAM,SAAS,WAGxD,CAAC;AAEF,QAAA,MAAM,IAAI;cAEI,SAAS;gBAAc,MAAM;cAAY,QAAQ,GAAG,SAAS;kDAazE,CAAC;AAEH,QAAA,MAAM,SAAS;gBAEC,MAAM;aAAW,MAAM,IAAI;kDAsGzC,CAAC;AAEH,QAAA,MAAM,UAAU,+CAmBf,CAAC;AAEF,QAAA,MAAM,WAAW,GAAI,mBAAmB;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,4CA2BjE,CAAC;AAMF,QAAA,MAAM,gBAAgB,GAAI,mCAGvB;IACD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB,4CAwFL,CAAC;AAuDF,QAAA,MAAM,UAAU;gBAGA,MAAM;sBACA,MAAM,IAAI;qBACX,MAAM,IAAI;4BACH,MAAM,IAAI;uBACf,MAAM,IAAI;eAClB,MAAM,IAAI;iBACR,MAAM,IAAI;2BACA,SAAS;oCACA,SAAS;kDAwa5C,CAAC;AAEF,OAAO,EACL,SAAS,EACT,IAAI,EACJ,UAAU,EACV,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
@@ -6969,7 +6969,7 @@ var QuizTitle = (0, import_react16.forwardRef)(({ className, onBack, ...props },
6969
6969
  if (onBack) {
6970
6970
  onBack();
6971
6971
  } else {
6972
- window.history.back();
6972
+ globalThis.history.back();
6973
6973
  }
6974
6974
  };
6975
6975
  const handleCancelExit = () => {
@@ -7128,6 +7128,33 @@ var QuizQuestionList = ({
7128
7128
  )
7129
7129
  ] });
7130
7130
  };
7131
+ var QuizResultModal = ({
7132
+ isOpen,
7133
+ onClose,
7134
+ image,
7135
+ showImagePlaceholder = true,
7136
+ title,
7137
+ description,
7138
+ footer
7139
+ }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7140
+ Modal_default,
7141
+ {
7142
+ isOpen,
7143
+ onClose,
7144
+ title: "",
7145
+ closeOnEscape: false,
7146
+ hideCloseButton: true,
7147
+ size: "md",
7148
+ children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
7149
+ image ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-auto", children: image }) : showImagePlaceholder && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { as: "span", size: "sm", color: "text-gray-500", children: "Imagem de resultado" }) }),
7150
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
7151
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { as: "h2", size: "lg", weight: "bold", children: title }),
7152
+ description
7153
+ ] }),
7154
+ footer
7155
+ ] })
7156
+ }
7157
+ );
7131
7158
  var QuizFooter = (0, import_react16.forwardRef)(
7132
7159
  ({
7133
7160
  className,
@@ -7171,9 +7198,26 @@ var QuizFooter = (0, import_react16.forwardRef)(
7171
7198
  const allQuestions = getTotalQuestions();
7172
7199
  const stats = getQuestionResultStatistics();
7173
7200
  const correctAnswers = stats?.correctAnswers;
7174
- const totalAnswers = stats?.totalAnswered;
7175
7201
  const quizType = quiz?.type || "SIMULADO" /* SIMULADO */;
7176
7202
  const quizTypeLabel = getTypeLabel(quizType);
7203
+ const moduleName = quiz?.questions?.[0]?.knowledgeMatrix?.[0]?.subtopic?.name;
7204
+ const submitAndOpenResultModal = async () => {
7205
+ if (handleFinishSimulated) {
7206
+ await Promise.resolve(handleFinishSimulated());
7207
+ }
7208
+ const latestStats = getQuestionResultStatistics();
7209
+ const latestCorrect = latestStats?.correctAnswers;
7210
+ const latestTotal = latestStats?.totalAnswered;
7211
+ if (quizType === "QUESTIONARIO" /* QUESTIONARIO */ && typeof latestCorrect === "number" && typeof latestTotal === "number" && latestCorrect === latestTotal) {
7212
+ openModal("modalQuestionnaireAllCorrect");
7213
+ return;
7214
+ }
7215
+ if (quizType === "QUESTIONARIO" /* QUESTIONARIO */ && typeof latestCorrect === "number" && latestCorrect === 0) {
7216
+ openModal("modalQuestionnaireAllIncorrect");
7217
+ return;
7218
+ }
7219
+ openModal("modalResult");
7220
+ };
7177
7221
  const handleFinishQuiz = async () => {
7178
7222
  skipCurrentQuestionIfUnanswered();
7179
7223
  if (unansweredQuestions.length > 0) {
@@ -7181,41 +7225,17 @@ var QuizFooter = (0, import_react16.forwardRef)(
7181
7225
  return;
7182
7226
  }
7183
7227
  try {
7184
- if (handleFinishSimulated) {
7185
- await Promise.resolve(handleFinishSimulated());
7186
- }
7187
- if (quizType === "QUESTIONARIO" /* QUESTIONARIO */ && typeof correctAnswers === "number" && typeof totalAnswers === "number" && correctAnswers === totalAnswers) {
7188
- openModal("modalQuestionnaireAllCorrect");
7189
- return;
7190
- }
7191
- if (quizType === "QUESTIONARIO" /* QUESTIONARIO */ && typeof correctAnswers === "number" && correctAnswers === 0) {
7192
- openModal("modalQuestionnaireAllIncorrect");
7193
- return;
7194
- }
7195
- openModal("modalResult");
7228
+ await submitAndOpenResultModal();
7196
7229
  } catch (err) {
7197
7230
  console.error("handleFinishSimulated failed:", err);
7198
- return;
7199
7231
  }
7200
7232
  };
7201
7233
  const handleAlertSubmit = async () => {
7202
7234
  try {
7203
- if (handleFinishSimulated) {
7204
- await Promise.resolve(handleFinishSimulated());
7205
- }
7206
- if (quizType === "QUESTIONARIO" /* QUESTIONARIO */ && typeof correctAnswers === "number" && typeof totalAnswers === "number" && correctAnswers === totalAnswers) {
7207
- openModal("modalQuestionnaireAllCorrect");
7208
- return;
7209
- }
7210
- if (quizType === "QUESTIONARIO" /* QUESTIONARIO */ && typeof correctAnswers === "number" && correctAnswers === 0) {
7211
- openModal("modalQuestionnaireAllIncorrect");
7212
- return;
7213
- }
7214
- openModal("modalResult");
7235
+ await submitAndOpenResultModal();
7215
7236
  } catch (err) {
7216
7237
  console.error("handleFinishSimulated failed:", err);
7217
7238
  closeModal();
7218
- return;
7219
7239
  }
7220
7240
  };
7221
7241
  return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
@@ -7324,40 +7344,31 @@ var QuizFooter = (0, import_react16.forwardRef)(
7324
7344
  }
7325
7345
  ),
7326
7346
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7327
- Modal_default,
7347
+ QuizResultModal,
7328
7348
  {
7329
7349
  isOpen: isModalOpen("modalResult"),
7330
7350
  onClose: closeModal,
7331
- title: "",
7332
- closeOnEscape: false,
7333
- hideCloseButton: true,
7334
- size: "md",
7335
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
7336
- resultImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
7337
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
7338
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: getCompletionTitle(quizType) }),
7339
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("p", { className: "text-text-500 font-sm", children: [
7340
- "Voc\xEA acertou ",
7341
- correctAnswers ?? "--",
7342
- " de ",
7343
- allQuestions,
7344
- " ",
7345
- "quest\xF5es."
7346
- ] })
7347
- ] }),
7348
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: [
7349
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7350
- Button_default,
7351
- {
7352
- variant: "outline",
7353
- className: "w-full",
7354
- size: "small",
7355
- onClick: onGoToSimulated,
7356
- children: getGoBackButtonLabel(quizType)
7357
- }
7358
- ),
7359
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button_default, { className: "w-full", onClick: onDetailResult, children: "Detalhar resultado" })
7360
- ] })
7351
+ image: resultImageComponent,
7352
+ title: getCompletionTitle(quizType),
7353
+ description: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(Text_default, { as: "p", size: "sm", color: "text-text-500", children: [
7354
+ "Voc\xEA acertou ",
7355
+ correctAnswers ?? "--",
7356
+ " de ",
7357
+ allQuestions,
7358
+ " quest\xF5es."
7359
+ ] }),
7360
+ footer: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: [
7361
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7362
+ Button_default,
7363
+ {
7364
+ variant: "outline",
7365
+ className: "w-full",
7366
+ size: "small",
7367
+ onClick: onGoToSimulated,
7368
+ children: getGoBackButtonLabel(quizType)
7369
+ }
7370
+ ),
7371
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button_default, { className: "w-full", onClick: onDetailResult, children: "Detalhar resultado" })
7361
7372
  ] })
7362
7373
  }
7363
7374
  ),
@@ -7414,76 +7425,63 @@ var QuizFooter = (0, import_react16.forwardRef)(
7414
7425
  }
7415
7426
  ),
7416
7427
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7417
- Modal_default,
7428
+ QuizResultModal,
7418
7429
  {
7419
7430
  isOpen: isModalOpen("modalQuestionnaireAllCorrect"),
7420
7431
  onClose: closeModal,
7421
- title: "",
7422
- closeOnEscape: false,
7423
- hideCloseButton: true,
7424
- size: "md",
7425
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
7426
- resultImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
7427
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
7428
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: "\u{1F389} Parab\xE9ns!" }),
7429
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-500 font-sm", children: "Voc\xEA concluiu o m\xF3dulo Movimento Uniforme." })
7430
- ] }),
7431
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button_default, { className: "w-full", onClick: onGoToNextModule, children: "Pr\xF3ximo m\xF3dulo" }) })
7432
- ] })
7432
+ image: resultImageComponent,
7433
+ title: "\u{1F389} Parab\xE9ns!",
7434
+ description: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { as: "p", size: "sm", color: "text-text-500", children: moduleName ? `Voc\xEA concluiu o m\xF3dulo ${moduleName}.` : "Voc\xEA concluiu o question\xE1rio!" }),
7435
+ footer: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button_default, { className: "w-full", onClick: onGoToNextModule, children: getGoBackButtonLabel(quizType) }) })
7433
7436
  }
7434
7437
  ),
7435
7438
  /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7436
- Modal_default,
7439
+ QuizResultModal,
7437
7440
  {
7438
7441
  isOpen: isModalOpen("modalQuestionnaireAllIncorrect"),
7439
7442
  onClose: closeModal,
7440
- title: "",
7441
- closeOnEscape: false,
7442
- hideCloseButton: true,
7443
- size: "md",
7444
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
7445
- resultIncorrectImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-auto", children: resultIncorrectImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
7446
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
7447
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: "\u{1F615} N\xE3o foi dessa vez..." }),
7448
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-500 font-sm", children: "Voc\xEA tirou 0 no question\xE1rio, mas n\xE3o se preocupe! Isso \xE9 apenas uma oportunidade de aprendizado." }),
7449
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-500 font-sm", children: "Que tal tentar novamente para melhorar sua nota? Estamos aqui para te ajudar a entender o conte\xFAdo e evoluir." }),
7450
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-500 font-sm", children: "Clique em Repetir Question\xE1rio e mostre do que voc\xEA \xE9 capaz! \u{1F4AA}" })
7451
- ] }),
7452
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row justify-center items-center gap-2 w-full", children: [
7453
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7454
- Button_default,
7455
- {
7456
- type: "button",
7457
- variant: "link",
7458
- size: "small",
7459
- className: "w-auto",
7460
- onClick: () => {
7461
- closeModal();
7462
- openModal("alertDialogTryLater");
7463
- },
7464
- children: "Tentar depois"
7465
- }
7466
- ),
7467
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7468
- Button_default,
7469
- {
7470
- variant: "outline",
7471
- size: "small",
7472
- className: "w-auto",
7473
- onClick: onDetailResult,
7474
- children: "Detalhar resultado"
7475
- }
7476
- ),
7477
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7478
- Button_default,
7479
- {
7480
- className: "w-auto",
7481
- size: "small",
7482
- onClick: onGoToNextModule,
7483
- children: "Pr\xF3ximo m\xF3dulo"
7484
- }
7485
- )
7486
- ] })
7443
+ image: resultIncorrectImageComponent,
7444
+ showImagePlaceholder: false,
7445
+ title: "\u{1F615} N\xE3o foi dessa vez...",
7446
+ description: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
7447
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { as: "p", size: "sm", color: "text-text-500", children: "Voc\xEA tirou 0 no question\xE1rio, mas n\xE3o se preocupe! Isso \xE9 apenas uma oportunidade de aprendizado." }),
7448
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { as: "p", size: "sm", color: "text-text-500", children: "Que tal tentar novamente para melhorar sua nota? Estamos aqui para te ajudar a entender o conte\xFAdo e evoluir." }),
7449
+ quiz?.canRetry && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { as: "p", size: "sm", color: "text-text-500", children: "Clique em Repetir Question\xE1rio e mostre do que voc\xEA \xE9 capaz! \u{1F4AA}" })
7450
+ ] }),
7451
+ footer: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row justify-center items-center gap-2 w-full", children: [
7452
+ quiz?.canRetry && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7453
+ Button_default,
7454
+ {
7455
+ type: "button",
7456
+ variant: "link",
7457
+ size: "small",
7458
+ className: "w-auto",
7459
+ onClick: () => {
7460
+ closeModal();
7461
+ openModal("alertDialogTryLater");
7462
+ },
7463
+ children: "Tentar depois"
7464
+ }
7465
+ ),
7466
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7467
+ Button_default,
7468
+ {
7469
+ variant: "outline",
7470
+ size: "small",
7471
+ className: "w-auto",
7472
+ onClick: onDetailResult,
7473
+ children: "Detalhar resultado"
7474
+ }
7475
+ ),
7476
+ quiz?.canRetry ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button_default, { className: "w-auto", size: "small", onClick: onRepeat, children: "Repetir question\xE1rio" }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7477
+ Button_default,
7478
+ {
7479
+ className: "w-auto",
7480
+ size: "small",
7481
+ onClick: onGoToSimulated,
7482
+ children: getGoBackButtonLabel(quizType)
7483
+ }
7484
+ )
7487
7485
  ] })
7488
7486
  }
7489
7487
  ),