analytica-frontend-lib 1.2.10 → 1.2.11
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/NoSearchResult/index.d.mts +37 -0
- package/dist/NoSearchResult/index.d.ts +37 -0
- package/dist/NoSearchResult/index.js +113 -0
- package/dist/NoSearchResult/index.js.map +1 -0
- package/dist/NoSearchResult/index.mjs +90 -0
- package/dist/NoSearchResult/index.mjs.map +1 -0
- package/dist/index.css +17 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +353 -322
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +352 -322
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +17 -0
- package/dist/styles.css.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -78,6 +78,7 @@ __export(src_exports, {
|
|
|
78
78
|
Modal: () => Modal_default,
|
|
79
79
|
MultipleChoiceList: () => MultipleChoiceList,
|
|
80
80
|
NavButton: () => NavButton_default,
|
|
81
|
+
NoSearchResult: () => NoSearchResult_default,
|
|
81
82
|
NotFound: () => NotFound_default,
|
|
82
83
|
NotificationCard: () => NotificationCard_default,
|
|
83
84
|
NotificationEntityType: () => NotificationEntityType,
|
|
@@ -9113,6 +9114,35 @@ var NotFound = ({
|
|
|
9113
9114
|
};
|
|
9114
9115
|
var NotFound_default = NotFound;
|
|
9115
9116
|
|
|
9117
|
+
// src/components/NoSearchResult/NoSearchResult.tsx
|
|
9118
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
9119
|
+
var NoSearchResult = ({ image, title, description }) => {
|
|
9120
|
+
const displayTitle = title || "Nenhum resultado encontrado";
|
|
9121
|
+
const displayDescription = description || "N\xE3o encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave.";
|
|
9122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-row justify-center items-center gap-8 w-full max-w-4xl min-h-96", children: [
|
|
9123
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "w-72 h-72 flex-shrink-0 relative", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
9124
|
+
"img",
|
|
9125
|
+
{
|
|
9126
|
+
src: image,
|
|
9127
|
+
alt: "No search results",
|
|
9128
|
+
className: "w-full h-full object-contain"
|
|
9129
|
+
}
|
|
9130
|
+
) }),
|
|
9131
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-col items-start w-full max-w-md", children: [
|
|
9132
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-row justify-between items-end px-6 pt-6 pb-4 w-full rounded-t-xl", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
9133
|
+
Text_default,
|
|
9134
|
+
{
|
|
9135
|
+
as: "h2",
|
|
9136
|
+
className: "text-text-950 font-semibold text-3xl leading-tight w-full flex items-center",
|
|
9137
|
+
children: displayTitle
|
|
9138
|
+
}
|
|
9139
|
+
) }),
|
|
9140
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex flex-row justify-center items-center px-6 gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Text_default, { className: "text-text-600 font-normal text-lg leading-relaxed w-full text-justify", children: displayDescription }) })
|
|
9141
|
+
] })
|
|
9142
|
+
] });
|
|
9143
|
+
};
|
|
9144
|
+
var NoSearchResult_default = NoSearchResult;
|
|
9145
|
+
|
|
9116
9146
|
// src/components/VideoPlayer/VideoPlayer.tsx
|
|
9117
9147
|
var import_react29 = require("react");
|
|
9118
9148
|
var import_react_dom = require("react-dom");
|
|
@@ -9121,7 +9151,7 @@ var import_phosphor_react22 = require("phosphor-react");
|
|
|
9121
9151
|
// src/components/DownloadButton/DownloadButton.tsx
|
|
9122
9152
|
var import_react28 = require("react");
|
|
9123
9153
|
var import_phosphor_react21 = require("phosphor-react");
|
|
9124
|
-
var
|
|
9154
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
9125
9155
|
var getMimeType = (url) => {
|
|
9126
9156
|
const extension = getFileExtension(url);
|
|
9127
9157
|
const mimeTypes = {
|
|
@@ -9278,10 +9308,10 @@ var DownloadButton = ({
|
|
|
9278
9308
|
if (!hasContent) {
|
|
9279
9309
|
return null;
|
|
9280
9310
|
}
|
|
9281
|
-
return /* @__PURE__ */ (0,
|
|
9311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: cn("flex items-center", className), children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
9282
9312
|
IconButton_default,
|
|
9283
9313
|
{
|
|
9284
|
-
icon: /* @__PURE__ */ (0,
|
|
9314
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_phosphor_react21.DownloadSimple, { size: 24 }),
|
|
9285
9315
|
onClick: handleDownload,
|
|
9286
9316
|
disabled: disabled || isDownloading,
|
|
9287
9317
|
"aria-label": (() => {
|
|
@@ -9302,7 +9332,7 @@ var DownloadButton = ({
|
|
|
9302
9332
|
var DownloadButton_default = DownloadButton;
|
|
9303
9333
|
|
|
9304
9334
|
// src/components/VideoPlayer/VideoPlayer.tsx
|
|
9305
|
-
var
|
|
9335
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
9306
9336
|
var CONTROLS_HIDE_TIMEOUT = 3e3;
|
|
9307
9337
|
var LEAVE_HIDE_TIMEOUT = 1e3;
|
|
9308
9338
|
var INIT_DELAY = 100;
|
|
@@ -9318,7 +9348,7 @@ var ProgressBar2 = ({
|
|
|
9318
9348
|
progressPercentage,
|
|
9319
9349
|
onSeek,
|
|
9320
9350
|
className = "px-4 pb-2"
|
|
9321
|
-
}) => /* @__PURE__ */ (0,
|
|
9351
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9322
9352
|
"input",
|
|
9323
9353
|
{
|
|
9324
9354
|
type: "range",
|
|
@@ -9340,17 +9370,17 @@ var VolumeControls = ({
|
|
|
9340
9370
|
onToggleMute,
|
|
9341
9371
|
iconSize = 24,
|
|
9342
9372
|
showSlider = true
|
|
9343
|
-
}) => /* @__PURE__ */ (0,
|
|
9344
|
-
/* @__PURE__ */ (0,
|
|
9373
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
9374
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9345
9375
|
IconButton_default,
|
|
9346
9376
|
{
|
|
9347
|
-
icon: isMuted ? /* @__PURE__ */ (0,
|
|
9377
|
+
icon: isMuted ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.SpeakerSlash, { size: iconSize }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.SpeakerHigh, { size: iconSize }),
|
|
9348
9378
|
onClick: onToggleMute,
|
|
9349
9379
|
"aria-label": isMuted ? "Unmute" : "Mute",
|
|
9350
9380
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
9351
9381
|
}
|
|
9352
9382
|
),
|
|
9353
|
-
showSlider && /* @__PURE__ */ (0,
|
|
9383
|
+
showSlider && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9354
9384
|
"input",
|
|
9355
9385
|
{
|
|
9356
9386
|
type: "range",
|
|
@@ -9407,7 +9437,7 @@ var SpeedMenu = ({
|
|
|
9407
9437
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
9408
9438
|
};
|
|
9409
9439
|
}, [showSpeedMenu, onToggleMenu]);
|
|
9410
|
-
const menuContent = /* @__PURE__ */ (0,
|
|
9440
|
+
const menuContent = /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9411
9441
|
"div",
|
|
9412
9442
|
{
|
|
9413
9443
|
ref: speedMenuRef,
|
|
@@ -9418,7 +9448,7 @@ var SpeedMenu = ({
|
|
|
9418
9448
|
top: `${position.top}px`,
|
|
9419
9449
|
left: `${position.left}px`
|
|
9420
9450
|
},
|
|
9421
|
-
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((speed) => /* @__PURE__ */ (0,
|
|
9451
|
+
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((speed) => /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
9422
9452
|
"button",
|
|
9423
9453
|
{
|
|
9424
9454
|
role: "menuitemradio",
|
|
@@ -9435,12 +9465,12 @@ var SpeedMenu = ({
|
|
|
9435
9465
|
}
|
|
9436
9466
|
);
|
|
9437
9467
|
const portalContent = showSpeedMenu && globalThis.window !== void 0 && globalThis.document !== void 0 && !!globalThis.document?.body ? (0, import_react_dom.createPortal)(menuContent, globalThis.document.body) : null;
|
|
9438
|
-
return /* @__PURE__ */ (0,
|
|
9439
|
-
/* @__PURE__ */ (0,
|
|
9468
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "relative", ref: speedMenuContainerRef, children: [
|
|
9469
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9440
9470
|
IconButton_default,
|
|
9441
9471
|
{
|
|
9442
9472
|
ref: buttonRef,
|
|
9443
|
-
icon: /* @__PURE__ */ (0,
|
|
9473
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.DotsThreeVertical, { size: iconSize }),
|
|
9444
9474
|
onClick: onToggleMenu,
|
|
9445
9475
|
"aria-label": "Playback speed",
|
|
9446
9476
|
"aria-haspopup": "menu",
|
|
@@ -9956,10 +9986,10 @@ var VideoPlayer = ({
|
|
|
9956
9986
|
]
|
|
9957
9987
|
);
|
|
9958
9988
|
const groupedSubTitleValid = subtitles && subtitlesValidation === "valid";
|
|
9959
|
-
return /* @__PURE__ */ (0,
|
|
9960
|
-
(title || subtitleText) && /* @__PURE__ */ (0,
|
|
9961
|
-
/* @__PURE__ */ (0,
|
|
9962
|
-
title && /* @__PURE__ */ (0,
|
|
9989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-col", className), children: [
|
|
9990
|
+
(title || subtitleText) && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "bg-subject-1 px-8 py-4 flex items-end justify-between min-h-20", children: [
|
|
9991
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-col gap-1", children: [
|
|
9992
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9963
9993
|
Text_default,
|
|
9964
9994
|
{
|
|
9965
9995
|
as: "h2",
|
|
@@ -9970,7 +10000,7 @@ var VideoPlayer = ({
|
|
|
9970
10000
|
children: title
|
|
9971
10001
|
}
|
|
9972
10002
|
),
|
|
9973
|
-
subtitleText && /* @__PURE__ */ (0,
|
|
10003
|
+
subtitleText && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9974
10004
|
Text_default,
|
|
9975
10005
|
{
|
|
9976
10006
|
as: "p",
|
|
@@ -9982,7 +10012,7 @@ var VideoPlayer = ({
|
|
|
9982
10012
|
}
|
|
9983
10013
|
)
|
|
9984
10014
|
] }),
|
|
9985
|
-
showDownloadButton && downloadContent && /* @__PURE__ */ (0,
|
|
10015
|
+
showDownloadButton && downloadContent && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
9986
10016
|
DownloadButton_default,
|
|
9987
10017
|
{
|
|
9988
10018
|
content: downloadContent,
|
|
@@ -9994,7 +10024,7 @@ var VideoPlayer = ({
|
|
|
9994
10024
|
}
|
|
9995
10025
|
)
|
|
9996
10026
|
] }),
|
|
9997
|
-
/* @__PURE__ */ (0,
|
|
10027
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
9998
10028
|
"section",
|
|
9999
10029
|
{
|
|
10000
10030
|
className: cn(
|
|
@@ -10009,7 +10039,7 @@ var VideoPlayer = ({
|
|
|
10009
10039
|
onTouchStart: handleMouseEnter,
|
|
10010
10040
|
onMouseLeave: handleMouseLeave,
|
|
10011
10041
|
children: [
|
|
10012
|
-
/* @__PURE__ */ (0,
|
|
10042
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10013
10043
|
"video",
|
|
10014
10044
|
{
|
|
10015
10045
|
ref: videoRef,
|
|
@@ -10024,7 +10054,7 @@ var VideoPlayer = ({
|
|
|
10024
10054
|
onKeyDown: handleVideoKeyDown,
|
|
10025
10055
|
tabIndex: 0,
|
|
10026
10056
|
"aria-label": title ? `Video: ${title}` : "Video player",
|
|
10027
|
-
children: /* @__PURE__ */ (0,
|
|
10057
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10028
10058
|
"track",
|
|
10029
10059
|
{
|
|
10030
10060
|
ref: trackRef,
|
|
@@ -10037,17 +10067,17 @@ var VideoPlayer = ({
|
|
|
10037
10067
|
)
|
|
10038
10068
|
}
|
|
10039
10069
|
),
|
|
10040
|
-
!isPlaying && /* @__PURE__ */ (0,
|
|
10070
|
+
!isPlaying && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10041
10071
|
"div",
|
|
10042
10072
|
{
|
|
10043
10073
|
className: cn(
|
|
10044
10074
|
"absolute inset-0 flex bg-black/30 transition-opacity",
|
|
10045
10075
|
getCenterPlayButtonPosition()
|
|
10046
10076
|
),
|
|
10047
|
-
children: /* @__PURE__ */ (0,
|
|
10077
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10048
10078
|
IconButton_default,
|
|
10049
10079
|
{
|
|
10050
|
-
icon: /* @__PURE__ */ (0,
|
|
10080
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.Play, { size: 32, weight: "regular", className: "ml-1" }),
|
|
10051
10081
|
onClick: togglePlayPause,
|
|
10052
10082
|
"aria-label": "Play video",
|
|
10053
10083
|
className: "!bg-transparent !text-white !w-auto !h-auto hover:!bg-transparent hover:!text-gray-200"
|
|
@@ -10055,17 +10085,17 @@ var VideoPlayer = ({
|
|
|
10055
10085
|
)
|
|
10056
10086
|
}
|
|
10057
10087
|
),
|
|
10058
|
-
/* @__PURE__ */ (0,
|
|
10088
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10059
10089
|
"div",
|
|
10060
10090
|
{
|
|
10061
10091
|
className: cn(
|
|
10062
10092
|
"absolute top-0 left-0 right-0 p-4 bg-gradient-to-b from-black/70 to-transparent transition-opacity",
|
|
10063
10093
|
getTopControlsOpacity()
|
|
10064
10094
|
),
|
|
10065
|
-
children: /* @__PURE__ */ (0,
|
|
10095
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex justify-start", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10066
10096
|
IconButton_default,
|
|
10067
10097
|
{
|
|
10068
|
-
icon: isFullscreen ? /* @__PURE__ */ (0,
|
|
10098
|
+
icon: isFullscreen ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.ArrowsInSimple, { size: 24 }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.ArrowsOutSimple, { size: 24 }),
|
|
10069
10099
|
onClick: toggleFullscreen,
|
|
10070
10100
|
"aria-label": isFullscreen ? "Exit fullscreen" : "Enter fullscreen",
|
|
10071
10101
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
@@ -10073,7 +10103,7 @@ var VideoPlayer = ({
|
|
|
10073
10103
|
) })
|
|
10074
10104
|
}
|
|
10075
10105
|
),
|
|
10076
|
-
/* @__PURE__ */ (0,
|
|
10106
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
10077
10107
|
"div",
|
|
10078
10108
|
{
|
|
10079
10109
|
className: cn(
|
|
@@ -10081,7 +10111,7 @@ var VideoPlayer = ({
|
|
|
10081
10111
|
getBottomControlsOpacity()
|
|
10082
10112
|
),
|
|
10083
10113
|
children: [
|
|
10084
|
-
/* @__PURE__ */ (0,
|
|
10114
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10085
10115
|
ProgressBar2,
|
|
10086
10116
|
{
|
|
10087
10117
|
currentTime,
|
|
@@ -10091,7 +10121,7 @@ var VideoPlayer = ({
|
|
|
10091
10121
|
className: getProgressBarPadding()
|
|
10092
10122
|
}
|
|
10093
10123
|
),
|
|
10094
|
-
/* @__PURE__ */ (0,
|
|
10124
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
10095
10125
|
"div",
|
|
10096
10126
|
{
|
|
10097
10127
|
className: cn(
|
|
@@ -10099,17 +10129,17 @@ var VideoPlayer = ({
|
|
|
10099
10129
|
getControlsPadding()
|
|
10100
10130
|
),
|
|
10101
10131
|
children: [
|
|
10102
|
-
/* @__PURE__ */ (0,
|
|
10103
|
-
/* @__PURE__ */ (0,
|
|
10132
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex items-center", getControlsGap()), children: [
|
|
10133
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10104
10134
|
IconButton_default,
|
|
10105
10135
|
{
|
|
10106
|
-
icon: isPlaying ? /* @__PURE__ */ (0,
|
|
10136
|
+
icon: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.Pause, { size: getIconSize2() }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.Play, { size: getIconSize2() }),
|
|
10107
10137
|
onClick: togglePlayPause,
|
|
10108
10138
|
"aria-label": isPlaying ? "Pause" : "Play",
|
|
10109
10139
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
10110
10140
|
}
|
|
10111
10141
|
),
|
|
10112
|
-
/* @__PURE__ */ (0,
|
|
10142
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10113
10143
|
VolumeControls,
|
|
10114
10144
|
{
|
|
10115
10145
|
volume,
|
|
@@ -10120,10 +10150,10 @@ var VideoPlayer = ({
|
|
|
10120
10150
|
showSlider: !isUltraSmallMobile
|
|
10121
10151
|
}
|
|
10122
10152
|
),
|
|
10123
|
-
groupedSubTitleValid && /* @__PURE__ */ (0,
|
|
10153
|
+
groupedSubTitleValid && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10124
10154
|
IconButton_default,
|
|
10125
10155
|
{
|
|
10126
|
-
icon: /* @__PURE__ */ (0,
|
|
10156
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_phosphor_react22.ClosedCaptioning, { size: getIconSize2() }),
|
|
10127
10157
|
onClick: toggleCaptions,
|
|
10128
10158
|
"aria-label": showCaptions ? "Hide captions" : "Show captions",
|
|
10129
10159
|
className: cn(
|
|
@@ -10132,13 +10162,13 @@ var VideoPlayer = ({
|
|
|
10132
10162
|
)
|
|
10133
10163
|
}
|
|
10134
10164
|
),
|
|
10135
|
-
/* @__PURE__ */ (0,
|
|
10165
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Text_default, { size: "sm", weight: "medium", color: "text-white", children: [
|
|
10136
10166
|
formatTime(currentTime),
|
|
10137
10167
|
" / ",
|
|
10138
10168
|
formatTime(duration)
|
|
10139
10169
|
] })
|
|
10140
10170
|
] }),
|
|
10141
|
-
/* @__PURE__ */ (0,
|
|
10171
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
10142
10172
|
SpeedMenu,
|
|
10143
10173
|
{
|
|
10144
10174
|
showSpeedMenu,
|
|
@@ -10166,7 +10196,7 @@ var VideoPlayer_default = VideoPlayer;
|
|
|
10166
10196
|
// src/components/Whiteboard/Whiteboard.tsx
|
|
10167
10197
|
var import_react30 = require("react");
|
|
10168
10198
|
var import_phosphor_react23 = require("phosphor-react");
|
|
10169
|
-
var
|
|
10199
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
10170
10200
|
var IMAGE_WIDTH = 225;
|
|
10171
10201
|
var IMAGE_HEIGHT = 90;
|
|
10172
10202
|
var Whiteboard = ({
|
|
@@ -10204,7 +10234,7 @@ var Whiteboard = ({
|
|
|
10204
10234
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
10205
10235
|
}[imagesPerRow];
|
|
10206
10236
|
if (!images || images.length === 0) {
|
|
10207
|
-
return /* @__PURE__ */ (0,
|
|
10237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10208
10238
|
"div",
|
|
10209
10239
|
{
|
|
10210
10240
|
className: cn(
|
|
@@ -10212,11 +10242,11 @@ var Whiteboard = ({
|
|
|
10212
10242
|
className
|
|
10213
10243
|
),
|
|
10214
10244
|
...rest,
|
|
10215
|
-
children: /* @__PURE__ */ (0,
|
|
10245
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-gray-400 text-sm", children: "Nenhuma imagem dispon\xEDvel" })
|
|
10216
10246
|
}
|
|
10217
10247
|
);
|
|
10218
10248
|
}
|
|
10219
|
-
return /* @__PURE__ */ (0,
|
|
10249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10220
10250
|
"div",
|
|
10221
10251
|
{
|
|
10222
10252
|
className: cn(
|
|
@@ -10224,7 +10254,7 @@ var Whiteboard = ({
|
|
|
10224
10254
|
className
|
|
10225
10255
|
),
|
|
10226
10256
|
...rest,
|
|
10227
|
-
children: /* @__PURE__ */ (0,
|
|
10257
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: cn("grid gap-4", gridColsClass), children: images.map((image) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
10228
10258
|
"div",
|
|
10229
10259
|
{
|
|
10230
10260
|
className: "relative group overflow-hidden bg-gray-100 rounded-lg",
|
|
@@ -10232,7 +10262,7 @@ var Whiteboard = ({
|
|
|
10232
10262
|
width: `${IMAGE_WIDTH}px`
|
|
10233
10263
|
},
|
|
10234
10264
|
children: [
|
|
10235
|
-
/* @__PURE__ */ (0,
|
|
10265
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10236
10266
|
"div",
|
|
10237
10267
|
{
|
|
10238
10268
|
className: "relative",
|
|
@@ -10240,8 +10270,8 @@ var Whiteboard = ({
|
|
|
10240
10270
|
width: `${IMAGE_WIDTH}px`,
|
|
10241
10271
|
height: `${IMAGE_HEIGHT}px`
|
|
10242
10272
|
},
|
|
10243
|
-
children: imageErrors.has(image.id) ? /* @__PURE__ */ (0,
|
|
10244
|
-
/* @__PURE__ */ (0,
|
|
10273
|
+
children: imageErrors.has(image.id) ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "text-gray-500 text-sm text-center px-2", children: "Imagem indispon\xEDvel" }) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
10274
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10245
10275
|
"img",
|
|
10246
10276
|
{
|
|
10247
10277
|
src: image.imageUrl,
|
|
@@ -10251,18 +10281,18 @@ var Whiteboard = ({
|
|
|
10251
10281
|
onError: () => handleImageError(image.id)
|
|
10252
10282
|
}
|
|
10253
10283
|
),
|
|
10254
|
-
/* @__PURE__ */ (0,
|
|
10284
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "absolute inset-0 bg-gradient-to-t from-black/20 to-transparent" })
|
|
10255
10285
|
] })
|
|
10256
10286
|
}
|
|
10257
10287
|
),
|
|
10258
|
-
showDownload && /* @__PURE__ */ (0,
|
|
10288
|
+
showDownload && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10259
10289
|
"button",
|
|
10260
10290
|
{
|
|
10261
10291
|
type: "button",
|
|
10262
10292
|
onClick: () => handleDownload(image),
|
|
10263
10293
|
className: "cursor-pointer absolute bottom-3 right-3 flex items-center justify-center bg-black/20 backdrop-blur-sm rounded hover:bg-black/30 transition-colors duration-200 group/button w-6 h-6",
|
|
10264
10294
|
"aria-label": `Download ${image.title || "imagem"}`,
|
|
10265
|
-
children: /* @__PURE__ */ (0,
|
|
10295
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
10266
10296
|
import_phosphor_react23.ArrowsOut,
|
|
10267
10297
|
{
|
|
10268
10298
|
size: 24,
|
|
@@ -10284,7 +10314,7 @@ var Whiteboard_default = Whiteboard;
|
|
|
10284
10314
|
// src/components/Auth/Auth.tsx
|
|
10285
10315
|
var import_react31 = require("react");
|
|
10286
10316
|
var import_react_router_dom = require("react-router-dom");
|
|
10287
|
-
var
|
|
10317
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
10288
10318
|
var AuthContext = (0, import_react31.createContext)(void 0);
|
|
10289
10319
|
var AuthProvider = ({
|
|
10290
10320
|
children,
|
|
@@ -10354,7 +10384,7 @@ var AuthProvider = ({
|
|
|
10354
10384
|
}),
|
|
10355
10385
|
[authState, checkAuth, signOut]
|
|
10356
10386
|
);
|
|
10357
|
-
return /* @__PURE__ */ (0,
|
|
10387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(AuthContext.Provider, { value: contextValue, children });
|
|
10358
10388
|
};
|
|
10359
10389
|
var useAuth = () => {
|
|
10360
10390
|
const context = (0, import_react31.useContext)(AuthContext);
|
|
@@ -10370,9 +10400,9 @@ var ProtectedRoute = ({
|
|
|
10370
10400
|
additionalCheck
|
|
10371
10401
|
}) => {
|
|
10372
10402
|
const { isAuthenticated, isLoading, ...authState } = useAuth();
|
|
10373
|
-
const defaultLoadingComponent = /* @__PURE__ */ (0,
|
|
10403
|
+
const defaultLoadingComponent = /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center justify-center min-h-screen", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "text-text-950 text-lg", children: "Carregando..." }) });
|
|
10374
10404
|
if (isLoading) {
|
|
10375
|
-
return /* @__PURE__ */ (0,
|
|
10405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children: loadingComponent || defaultLoadingComponent });
|
|
10376
10406
|
}
|
|
10377
10407
|
if (!isAuthenticated) {
|
|
10378
10408
|
if (typeof window !== "undefined") {
|
|
@@ -10383,12 +10413,12 @@ var ProtectedRoute = ({
|
|
|
10383
10413
|
return null;
|
|
10384
10414
|
}
|
|
10385
10415
|
}
|
|
10386
|
-
return /* @__PURE__ */ (0,
|
|
10416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_router_dom.Navigate, { to: redirectTo, replace: true });
|
|
10387
10417
|
}
|
|
10388
10418
|
if (additionalCheck && !additionalCheck({ isAuthenticated, isLoading, ...authState })) {
|
|
10389
|
-
return /* @__PURE__ */ (0,
|
|
10419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_router_dom.Navigate, { to: redirectTo, replace: true });
|
|
10390
10420
|
}
|
|
10391
|
-
return /* @__PURE__ */ (0,
|
|
10421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children });
|
|
10392
10422
|
};
|
|
10393
10423
|
var PublicRoute = ({
|
|
10394
10424
|
children,
|
|
@@ -10398,15 +10428,15 @@ var PublicRoute = ({
|
|
|
10398
10428
|
}) => {
|
|
10399
10429
|
const { isAuthenticated, isLoading } = useAuth();
|
|
10400
10430
|
if (checkAuthBeforeRender && isLoading) {
|
|
10401
|
-
return /* @__PURE__ */ (0,
|
|
10431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "flex items-center justify-center min-h-screen", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "text-text-950 text-lg", children: "Carregando..." }) });
|
|
10402
10432
|
}
|
|
10403
10433
|
if (isAuthenticated && redirectIfAuthenticated) {
|
|
10404
|
-
return /* @__PURE__ */ (0,
|
|
10434
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_router_dom.Navigate, { to: redirectTo, replace: true });
|
|
10405
10435
|
}
|
|
10406
|
-
return /* @__PURE__ */ (0,
|
|
10436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_jsx_runtime50.Fragment, { children });
|
|
10407
10437
|
};
|
|
10408
10438
|
var withAuth = (Component, options = {}) => {
|
|
10409
|
-
return (props) => /* @__PURE__ */ (0,
|
|
10439
|
+
return (props) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ProtectedRoute, { ...options, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Component, { ...props }) });
|
|
10410
10440
|
};
|
|
10411
10441
|
var useAuthGuard = (options = {}) => {
|
|
10412
10442
|
const authState = useAuth();
|
|
@@ -10421,7 +10451,7 @@ var useAuthGuard = (options = {}) => {
|
|
|
10421
10451
|
var useRouteAuth = (fallbackPath = "/") => {
|
|
10422
10452
|
const { isAuthenticated, isLoading } = useAuth();
|
|
10423
10453
|
const location = (0, import_react_router_dom.useLocation)();
|
|
10424
|
-
const redirectToLogin = () => /* @__PURE__ */ (0,
|
|
10454
|
+
const redirectToLogin = () => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_router_dom.Navigate, { to: fallbackPath, state: { from: location }, replace: true });
|
|
10425
10455
|
return {
|
|
10426
10456
|
isAuthenticated,
|
|
10427
10457
|
isLoading,
|
|
@@ -10457,7 +10487,7 @@ var getRootDomain = () => {
|
|
|
10457
10487
|
// src/components/Accordation/Accordation.tsx
|
|
10458
10488
|
var import_react32 = require("react");
|
|
10459
10489
|
var import_phosphor_react24 = require("phosphor-react");
|
|
10460
|
-
var
|
|
10490
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
10461
10491
|
var CardAccordation = (0, import_react32.forwardRef)(
|
|
10462
10492
|
({
|
|
10463
10493
|
trigger,
|
|
@@ -10496,7 +10526,7 @@ var CardAccordation = (0, import_react32.forwardRef)(
|
|
|
10496
10526
|
handleToggle();
|
|
10497
10527
|
}
|
|
10498
10528
|
};
|
|
10499
|
-
return /* @__PURE__ */ (0,
|
|
10529
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
10500
10530
|
CardBase,
|
|
10501
10531
|
{
|
|
10502
10532
|
ref,
|
|
@@ -10506,7 +10536,7 @@ var CardAccordation = (0, import_react32.forwardRef)(
|
|
|
10506
10536
|
className: cn("overflow-hidden", className),
|
|
10507
10537
|
...props,
|
|
10508
10538
|
children: [
|
|
10509
|
-
/* @__PURE__ */ (0,
|
|
10539
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
10510
10540
|
"button",
|
|
10511
10541
|
{
|
|
10512
10542
|
id: headerId,
|
|
@@ -10524,7 +10554,7 @@ var CardAccordation = (0, import_react32.forwardRef)(
|
|
|
10524
10554
|
"data-value": value,
|
|
10525
10555
|
children: [
|
|
10526
10556
|
trigger,
|
|
10527
|
-
/* @__PURE__ */ (0,
|
|
10557
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
10528
10558
|
import_phosphor_react24.CaretRight,
|
|
10529
10559
|
{
|
|
10530
10560
|
size: 20,
|
|
@@ -10539,7 +10569,7 @@ var CardAccordation = (0, import_react32.forwardRef)(
|
|
|
10539
10569
|
]
|
|
10540
10570
|
}
|
|
10541
10571
|
),
|
|
10542
|
-
/* @__PURE__ */ (0,
|
|
10572
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
10543
10573
|
"section",
|
|
10544
10574
|
{
|
|
10545
10575
|
id: contentId,
|
|
@@ -10551,7 +10581,7 @@ var CardAccordation = (0, import_react32.forwardRef)(
|
|
|
10551
10581
|
),
|
|
10552
10582
|
"data-testid": "accordion-content",
|
|
10553
10583
|
"data-value": value,
|
|
10554
|
-
children: /* @__PURE__ */ (0,
|
|
10584
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "p-4 pt-0", children })
|
|
10555
10585
|
}
|
|
10556
10586
|
)
|
|
10557
10587
|
]
|
|
@@ -10564,7 +10594,7 @@ CardAccordation.displayName = "CardAccordation";
|
|
|
10564
10594
|
// src/components/Accordation/AccordionGroup.tsx
|
|
10565
10595
|
var import_react33 = require("react");
|
|
10566
10596
|
var import_zustand9 = require("zustand");
|
|
10567
|
-
var
|
|
10597
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
10568
10598
|
function createAccordionGroupStore(type, initialValue, collapsible) {
|
|
10569
10599
|
return (0, import_zustand9.create)((set, get) => ({
|
|
10570
10600
|
type,
|
|
@@ -10704,7 +10734,7 @@ var AccordionGroup = (0, import_react33.forwardRef)(
|
|
|
10704
10734
|
indexRef,
|
|
10705
10735
|
handleItemToggle
|
|
10706
10736
|
);
|
|
10707
|
-
return /* @__PURE__ */ (0,
|
|
10737
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { ref, className, ...props, children: enhancedChildren });
|
|
10708
10738
|
}
|
|
10709
10739
|
);
|
|
10710
10740
|
AccordionGroup.displayName = "AccordionGroup";
|
|
@@ -10712,7 +10742,7 @@ AccordionGroup.displayName = "AccordionGroup";
|
|
|
10712
10742
|
// src/components/Alternative/Alternative.tsx
|
|
10713
10743
|
var import_phosphor_react25 = require("phosphor-react");
|
|
10714
10744
|
var import_react34 = require("react");
|
|
10715
|
-
var
|
|
10745
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
10716
10746
|
var AlternativesList = ({
|
|
10717
10747
|
alternatives,
|
|
10718
10748
|
name,
|
|
@@ -10743,9 +10773,9 @@ var AlternativesList = ({
|
|
|
10743
10773
|
const getStatusBadge2 = (status) => {
|
|
10744
10774
|
switch (status) {
|
|
10745
10775
|
case "correct":
|
|
10746
|
-
return /* @__PURE__ */ (0,
|
|
10776
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_phosphor_react25.CheckCircle, {}), children: "Resposta correta" });
|
|
10747
10777
|
case "incorrect":
|
|
10748
|
-
return /* @__PURE__ */ (0,
|
|
10778
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_phosphor_react25.XCircle, {}), children: "Resposta incorreta" });
|
|
10749
10779
|
default:
|
|
10750
10780
|
return null;
|
|
10751
10781
|
}
|
|
@@ -10775,10 +10805,10 @@ var AlternativesList = ({
|
|
|
10775
10805
|
const renderRadio = () => {
|
|
10776
10806
|
const radioClasses = `w-6 h-6 rounded-full border-2 cursor-default transition-all duration-200 flex items-center justify-center ${isUserSelected ? "border-primary-950 bg-background" : "border-border-400 bg-background"}`;
|
|
10777
10807
|
const dotClasses = "w-3 h-3 rounded-full bg-primary-950 transition-all duration-200";
|
|
10778
|
-
return /* @__PURE__ */ (0,
|
|
10808
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: radioClasses, children: isUserSelected && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: dotClasses }) });
|
|
10779
10809
|
};
|
|
10780
10810
|
if (layout === "detailed") {
|
|
10781
|
-
return /* @__PURE__ */ (0,
|
|
10811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10782
10812
|
"div",
|
|
10783
10813
|
{
|
|
10784
10814
|
className: cn(
|
|
@@ -10786,11 +10816,11 @@ var AlternativesList = ({
|
|
|
10786
10816
|
statusStyles,
|
|
10787
10817
|
alternative.disabled ? "opacity-50" : ""
|
|
10788
10818
|
),
|
|
10789
|
-
children: /* @__PURE__ */ (0,
|
|
10790
|
-
/* @__PURE__ */ (0,
|
|
10791
|
-
/* @__PURE__ */ (0,
|
|
10792
|
-
/* @__PURE__ */ (0,
|
|
10793
|
-
/* @__PURE__ */ (0,
|
|
10819
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
10820
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-start gap-3 flex-1", children: [
|
|
10821
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "mt-1", children: renderRadio() }),
|
|
10822
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex-1", children: [
|
|
10823
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10794
10824
|
"p",
|
|
10795
10825
|
{
|
|
10796
10826
|
className: cn(
|
|
@@ -10800,16 +10830,16 @@ var AlternativesList = ({
|
|
|
10800
10830
|
children: alternative.label
|
|
10801
10831
|
}
|
|
10802
10832
|
),
|
|
10803
|
-
alternative.description && /* @__PURE__ */ (0,
|
|
10833
|
+
alternative.description && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-sm text-text-600 mt-1", children: alternative.description })
|
|
10804
10834
|
] })
|
|
10805
10835
|
] }),
|
|
10806
|
-
statusBadge && /* @__PURE__ */ (0,
|
|
10836
|
+
statusBadge && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-shrink-0", children: statusBadge })
|
|
10807
10837
|
] })
|
|
10808
10838
|
},
|
|
10809
10839
|
alternativeId
|
|
10810
10840
|
);
|
|
10811
10841
|
}
|
|
10812
|
-
return /* @__PURE__ */ (0,
|
|
10842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
10813
10843
|
"div",
|
|
10814
10844
|
{
|
|
10815
10845
|
className: cn(
|
|
@@ -10818,9 +10848,9 @@ var AlternativesList = ({
|
|
|
10818
10848
|
alternative.disabled ? "opacity-50" : ""
|
|
10819
10849
|
),
|
|
10820
10850
|
children: [
|
|
10821
|
-
/* @__PURE__ */ (0,
|
|
10851
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
10822
10852
|
renderRadio(),
|
|
10823
|
-
/* @__PURE__ */ (0,
|
|
10853
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10824
10854
|
"span",
|
|
10825
10855
|
{
|
|
10826
10856
|
className: cn(
|
|
@@ -10831,14 +10861,14 @@ var AlternativesList = ({
|
|
|
10831
10861
|
}
|
|
10832
10862
|
)
|
|
10833
10863
|
] }),
|
|
10834
|
-
statusBadge && /* @__PURE__ */ (0,
|
|
10864
|
+
statusBadge && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-shrink-0", children: statusBadge })
|
|
10835
10865
|
]
|
|
10836
10866
|
},
|
|
10837
10867
|
alternativeId
|
|
10838
10868
|
);
|
|
10839
10869
|
};
|
|
10840
10870
|
if (isReadonly) {
|
|
10841
|
-
return /* @__PURE__ */ (0,
|
|
10871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10842
10872
|
"div",
|
|
10843
10873
|
{
|
|
10844
10874
|
className: cn("flex flex-col", getLayoutClasses(), "w-full", className),
|
|
@@ -10848,7 +10878,7 @@ var AlternativesList = ({
|
|
|
10848
10878
|
}
|
|
10849
10879
|
);
|
|
10850
10880
|
}
|
|
10851
|
-
return /* @__PURE__ */ (0,
|
|
10881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10852
10882
|
RadioGroup,
|
|
10853
10883
|
{
|
|
10854
10884
|
name: groupName,
|
|
@@ -10865,7 +10895,7 @@ var AlternativesList = ({
|
|
|
10865
10895
|
const statusStyles = getStatusStyles2(alternative.status, false);
|
|
10866
10896
|
const statusBadge = getStatusBadge2(alternative.status);
|
|
10867
10897
|
if (layout === "detailed") {
|
|
10868
|
-
return /* @__PURE__ */ (0,
|
|
10898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10869
10899
|
"div",
|
|
10870
10900
|
{
|
|
10871
10901
|
className: cn(
|
|
@@ -10873,9 +10903,9 @@ var AlternativesList = ({
|
|
|
10873
10903
|
statusStyles,
|
|
10874
10904
|
alternative.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
10875
10905
|
),
|
|
10876
|
-
children: /* @__PURE__ */ (0,
|
|
10877
|
-
/* @__PURE__ */ (0,
|
|
10878
|
-
/* @__PURE__ */ (0,
|
|
10906
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-start justify-between gap-3", children: [
|
|
10907
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-start gap-3 flex-1", children: [
|
|
10908
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10879
10909
|
RadioGroupItem,
|
|
10880
10910
|
{
|
|
10881
10911
|
value: alternative.value,
|
|
@@ -10884,8 +10914,8 @@ var AlternativesList = ({
|
|
|
10884
10914
|
className: "mt-1"
|
|
10885
10915
|
}
|
|
10886
10916
|
),
|
|
10887
|
-
/* @__PURE__ */ (0,
|
|
10888
|
-
/* @__PURE__ */ (0,
|
|
10917
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex-1", children: [
|
|
10918
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10889
10919
|
"label",
|
|
10890
10920
|
{
|
|
10891
10921
|
htmlFor: alternativeId,
|
|
@@ -10897,16 +10927,16 @@ var AlternativesList = ({
|
|
|
10897
10927
|
children: alternative.label
|
|
10898
10928
|
}
|
|
10899
10929
|
),
|
|
10900
|
-
alternative.description && /* @__PURE__ */ (0,
|
|
10930
|
+
alternative.description && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-sm text-text-600 mt-1", children: alternative.description })
|
|
10901
10931
|
] })
|
|
10902
10932
|
] }),
|
|
10903
|
-
statusBadge && /* @__PURE__ */ (0,
|
|
10933
|
+
statusBadge && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-shrink-0", children: statusBadge })
|
|
10904
10934
|
] })
|
|
10905
10935
|
},
|
|
10906
10936
|
alternativeId
|
|
10907
10937
|
);
|
|
10908
10938
|
}
|
|
10909
|
-
return /* @__PURE__ */ (0,
|
|
10939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
10910
10940
|
"div",
|
|
10911
10941
|
{
|
|
10912
10942
|
className: cn(
|
|
@@ -10915,8 +10945,8 @@ var AlternativesList = ({
|
|
|
10915
10945
|
alternative.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
10916
10946
|
),
|
|
10917
10947
|
children: [
|
|
10918
|
-
/* @__PURE__ */ (0,
|
|
10919
|
-
/* @__PURE__ */ (0,
|
|
10948
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
10949
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10920
10950
|
RadioGroupItem,
|
|
10921
10951
|
{
|
|
10922
10952
|
value: alternative.value,
|
|
@@ -10924,7 +10954,7 @@ var AlternativesList = ({
|
|
|
10924
10954
|
disabled: alternative.disabled
|
|
10925
10955
|
}
|
|
10926
10956
|
),
|
|
10927
|
-
/* @__PURE__ */ (0,
|
|
10957
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
10928
10958
|
"label",
|
|
10929
10959
|
{
|
|
10930
10960
|
htmlFor: alternativeId,
|
|
@@ -10937,7 +10967,7 @@ var AlternativesList = ({
|
|
|
10937
10967
|
}
|
|
10938
10968
|
)
|
|
10939
10969
|
] }),
|
|
10940
|
-
statusBadge && /* @__PURE__ */ (0,
|
|
10970
|
+
statusBadge && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-shrink-0", children: statusBadge })
|
|
10941
10971
|
]
|
|
10942
10972
|
},
|
|
10943
10973
|
alternativeId
|
|
@@ -10948,7 +10978,7 @@ var AlternativesList = ({
|
|
|
10948
10978
|
};
|
|
10949
10979
|
var HeaderAlternative = (0, import_react34.forwardRef)(
|
|
10950
10980
|
({ className, title, subTitle, content, ...props }, ref) => {
|
|
10951
|
-
return /* @__PURE__ */ (0,
|
|
10981
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
10952
10982
|
"div",
|
|
10953
10983
|
{
|
|
10954
10984
|
ref,
|
|
@@ -10958,11 +10988,11 @@ var HeaderAlternative = (0, import_react34.forwardRef)(
|
|
|
10958
10988
|
),
|
|
10959
10989
|
...props,
|
|
10960
10990
|
children: [
|
|
10961
|
-
/* @__PURE__ */ (0,
|
|
10962
|
-
/* @__PURE__ */ (0,
|
|
10963
|
-
/* @__PURE__ */ (0,
|
|
10991
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("span", { className: "flex flex-col", children: [
|
|
10992
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-text-950 font-bold text-lg", children: title }),
|
|
10993
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-text-700 text-sm ", children: subTitle })
|
|
10964
10994
|
] }),
|
|
10965
|
-
/* @__PURE__ */ (0,
|
|
10995
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "text-text-950 text-md", children: content })
|
|
10966
10996
|
]
|
|
10967
10997
|
}
|
|
10968
10998
|
);
|
|
@@ -11759,7 +11789,7 @@ var import_react38 = require("react");
|
|
|
11759
11789
|
// src/components/MultipleChoice/MultipleChoice.tsx
|
|
11760
11790
|
var import_react37 = require("react");
|
|
11761
11791
|
var import_phosphor_react26 = require("phosphor-react");
|
|
11762
|
-
var
|
|
11792
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
11763
11793
|
var MultipleChoiceList = ({
|
|
11764
11794
|
disabled = false,
|
|
11765
11795
|
className = "",
|
|
@@ -11776,9 +11806,9 @@ var MultipleChoiceList = ({
|
|
|
11776
11806
|
const getStatusBadge2 = (status) => {
|
|
11777
11807
|
switch (status) {
|
|
11778
11808
|
case "correct":
|
|
11779
|
-
return /* @__PURE__ */ (0,
|
|
11809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_phosphor_react26.CheckCircle, {}), children: "Resposta correta" });
|
|
11780
11810
|
case "incorrect":
|
|
11781
|
-
return /* @__PURE__ */ (0,
|
|
11811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_phosphor_react26.XCircle, {}), children: "Resposta incorreta" });
|
|
11782
11812
|
default:
|
|
11783
11813
|
return null;
|
|
11784
11814
|
}
|
|
@@ -11799,14 +11829,14 @@ var MultipleChoiceList = ({
|
|
|
11799
11829
|
isSelected ? "border-primary-950 bg-primary-950 text-text" : "border-border-400 bg-background",
|
|
11800
11830
|
isDisabled && "opacity-40 cursor-not-allowed"
|
|
11801
11831
|
);
|
|
11802
|
-
return /* @__PURE__ */ (0,
|
|
11832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: checkboxClasses, children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_phosphor_react26.Check, { size: 16, weight: "bold" }) });
|
|
11803
11833
|
};
|
|
11804
11834
|
if (mode === "readonly") {
|
|
11805
|
-
return /* @__PURE__ */ (0,
|
|
11835
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: cn("flex flex-col gap-2", className), children: choices.map((choice, i) => {
|
|
11806
11836
|
const isSelected = actualValue?.includes(choice.value) || false;
|
|
11807
11837
|
const statusStyles = getStatusStyles2(choice.status);
|
|
11808
11838
|
const statusBadge = getStatusBadge2(choice.status);
|
|
11809
|
-
return /* @__PURE__ */ (0,
|
|
11839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
11810
11840
|
"div",
|
|
11811
11841
|
{
|
|
11812
11842
|
className: cn(
|
|
@@ -11815,9 +11845,9 @@ var MultipleChoiceList = ({
|
|
|
11815
11845
|
choice.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
11816
11846
|
),
|
|
11817
11847
|
children: [
|
|
11818
|
-
/* @__PURE__ */ (0,
|
|
11848
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
11819
11849
|
renderVisualCheckbox(isSelected, choice.disabled || disabled),
|
|
11820
|
-
/* @__PURE__ */ (0,
|
|
11850
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
11821
11851
|
"span",
|
|
11822
11852
|
{
|
|
11823
11853
|
className: cn(
|
|
@@ -11829,14 +11859,14 @@ var MultipleChoiceList = ({
|
|
|
11829
11859
|
}
|
|
11830
11860
|
)
|
|
11831
11861
|
] }),
|
|
11832
|
-
statusBadge && /* @__PURE__ */ (0,
|
|
11862
|
+
statusBadge && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "flex-shrink-0", children: statusBadge })
|
|
11833
11863
|
]
|
|
11834
11864
|
},
|
|
11835
11865
|
`readonly-${choice.value}-${i}`
|
|
11836
11866
|
);
|
|
11837
11867
|
}) });
|
|
11838
11868
|
}
|
|
11839
|
-
return /* @__PURE__ */ (0,
|
|
11869
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
11840
11870
|
"div",
|
|
11841
11871
|
{
|
|
11842
11872
|
className: cn(
|
|
@@ -11844,7 +11874,7 @@ var MultipleChoiceList = ({
|
|
|
11844
11874
|
disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
11845
11875
|
className
|
|
11846
11876
|
),
|
|
11847
|
-
children: /* @__PURE__ */ (0,
|
|
11877
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
11848
11878
|
CheckboxList_default,
|
|
11849
11879
|
{
|
|
11850
11880
|
name,
|
|
@@ -11854,12 +11884,12 @@ var MultipleChoiceList = ({
|
|
|
11854
11884
|
onHandleSelectedValues?.(v);
|
|
11855
11885
|
},
|
|
11856
11886
|
disabled,
|
|
11857
|
-
children: choices.map((choice, i) => /* @__PURE__ */ (0,
|
|
11887
|
+
children: choices.map((choice, i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
11858
11888
|
"div",
|
|
11859
11889
|
{
|
|
11860
11890
|
className: "flex flex-row gap-2 items-center",
|
|
11861
11891
|
children: [
|
|
11862
|
-
/* @__PURE__ */ (0,
|
|
11892
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
11863
11893
|
CheckboxListItem,
|
|
11864
11894
|
{
|
|
11865
11895
|
value: choice.value,
|
|
@@ -11867,7 +11897,7 @@ var MultipleChoiceList = ({
|
|
|
11867
11897
|
disabled: choice.disabled || disabled
|
|
11868
11898
|
}
|
|
11869
11899
|
),
|
|
11870
|
-
/* @__PURE__ */ (0,
|
|
11900
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
11871
11901
|
"label",
|
|
11872
11902
|
{
|
|
11873
11903
|
htmlFor: `interactive-${choice.value}-${i}`,
|
|
@@ -11896,13 +11926,13 @@ var import_phosphor_react27 = require("phosphor-react");
|
|
|
11896
11926
|
var mock_image_question_default = "./mock-image-question-HEZCLFDL.png";
|
|
11897
11927
|
|
|
11898
11928
|
// src/components/Quiz/QuizContent.tsx
|
|
11899
|
-
var
|
|
11929
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
11900
11930
|
var getStatusBadge = (status) => {
|
|
11901
11931
|
switch (status) {
|
|
11902
11932
|
case "correct":
|
|
11903
|
-
return /* @__PURE__ */ (0,
|
|
11933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react27.CheckCircle, {}), children: "Resposta correta" });
|
|
11904
11934
|
case "incorrect":
|
|
11905
|
-
return /* @__PURE__ */ (0,
|
|
11935
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react27.XCircle, {}), children: "Resposta incorreta" });
|
|
11906
11936
|
default:
|
|
11907
11937
|
return null;
|
|
11908
11938
|
}
|
|
@@ -11917,11 +11947,11 @@ var getStatusStyles = (variantCorrect) => {
|
|
|
11917
11947
|
};
|
|
11918
11948
|
var QuizSubTitle = (0, import_react38.forwardRef)(
|
|
11919
11949
|
({ subTitle, ...props }, ref) => {
|
|
11920
|
-
return /* @__PURE__ */ (0,
|
|
11950
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "px-4 pb-2 pt-6", ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "font-bold text-lg text-text-950", children: subTitle }) });
|
|
11921
11951
|
}
|
|
11922
11952
|
);
|
|
11923
11953
|
var QuizContainer = (0, import_react38.forwardRef)(({ children, className, ...props }, ref) => {
|
|
11924
|
-
return /* @__PURE__ */ (0,
|
|
11954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
11925
11955
|
"div",
|
|
11926
11956
|
{
|
|
11927
11957
|
ref,
|
|
@@ -11974,10 +12004,10 @@ var QuizAlternative = ({ paddingBottom }) => {
|
|
|
11974
12004
|
};
|
|
11975
12005
|
});
|
|
11976
12006
|
if (!alternatives)
|
|
11977
|
-
return /* @__PURE__ */ (0,
|
|
11978
|
-
return /* @__PURE__ */ (0,
|
|
11979
|
-
/* @__PURE__ */ (0,
|
|
11980
|
-
/* @__PURE__ */ (0,
|
|
12007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { children: "N\xE3o h\xE1 Alternativas" }) });
|
|
12008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12009
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
12010
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
11981
12011
|
AlternativesList,
|
|
11982
12012
|
{
|
|
11983
12013
|
mode: variant === "default" ? "interactive" : "readonly",
|
|
@@ -12080,10 +12110,10 @@ var QuizMultipleChoice = ({ paddingBottom }) => {
|
|
|
12080
12110
|
};
|
|
12081
12111
|
});
|
|
12082
12112
|
if (!choices)
|
|
12083
|
-
return /* @__PURE__ */ (0,
|
|
12084
|
-
return /* @__PURE__ */ (0,
|
|
12085
|
-
/* @__PURE__ */ (0,
|
|
12086
|
-
/* @__PURE__ */ (0,
|
|
12113
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { children: "N\xE3o h\xE1 Escolhas Multiplas" }) });
|
|
12114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12115
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
12116
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12087
12117
|
MultipleChoiceList,
|
|
12088
12118
|
{
|
|
12089
12119
|
choices,
|
|
@@ -12131,12 +12161,12 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
12131
12161
|
adjustTextareaHeight();
|
|
12132
12162
|
}, [currentAnswer, adjustTextareaHeight]);
|
|
12133
12163
|
if (!currentQuestion) {
|
|
12134
|
-
return /* @__PURE__ */ (0,
|
|
12164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-600 text-md", children: "Nenhuma quest\xE3o dispon\xEDvel" }) });
|
|
12135
12165
|
}
|
|
12136
12166
|
const localAnswer = (variant == "result" ? currentQuestionResult?.answer : currentAnswer?.answer) || "";
|
|
12137
|
-
return /* @__PURE__ */ (0,
|
|
12138
|
-
/* @__PURE__ */ (0,
|
|
12139
|
-
/* @__PURE__ */ (0,
|
|
12167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12168
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Resposta" }),
|
|
12169
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: cn(variant != "result" && paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-4 max-h-[600px] overflow-y-auto", children: variant === "default" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12140
12170
|
TextArea_default,
|
|
12141
12171
|
{
|
|
12142
12172
|
ref: textareaRef,
|
|
@@ -12148,10 +12178,10 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
12148
12178
|
maxLength: charLimit,
|
|
12149
12179
|
showCharacterCount: !!charLimit
|
|
12150
12180
|
}
|
|
12151
|
-
) }) : /* @__PURE__ */ (0,
|
|
12152
|
-
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */ (0,
|
|
12153
|
-
/* @__PURE__ */ (0,
|
|
12154
|
-
/* @__PURE__ */ (0,
|
|
12181
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-600 text-md whitespace-pre-wrap", children: localAnswer || "Nenhuma resposta fornecida" }) }) }) }),
|
|
12182
|
+
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12183
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Observa\xE7\xE3o do professor" }),
|
|
12184
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-600 text-md whitespace-pre-wrap", children: currentQuestionResult?.teacherFeedback }) })
|
|
12155
12185
|
] })
|
|
12156
12186
|
] });
|
|
12157
12187
|
};
|
|
@@ -12177,16 +12207,16 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
12177
12207
|
];
|
|
12178
12208
|
const getLetterByIndex = (index) => String.fromCodePoint(97 + index);
|
|
12179
12209
|
const isDefaultVariant = variant === "default";
|
|
12180
|
-
return /* @__PURE__ */ (0,
|
|
12181
|
-
/* @__PURE__ */ (0,
|
|
12182
|
-
/* @__PURE__ */ (0,
|
|
12210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12211
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
12212
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
12183
12213
|
const variantCorrect = option.isCorrect ? "correct" : "incorrect";
|
|
12184
|
-
return /* @__PURE__ */ (0,
|
|
12214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12185
12215
|
"section",
|
|
12186
12216
|
{
|
|
12187
12217
|
className: "flex flex-col gap-2",
|
|
12188
12218
|
children: [
|
|
12189
|
-
/* @__PURE__ */ (0,
|
|
12219
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12190
12220
|
"div",
|
|
12191
12221
|
{
|
|
12192
12222
|
className: cn(
|
|
@@ -12194,20 +12224,20 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
12194
12224
|
isDefaultVariant ? "" : getStatusStyles(variantCorrect)
|
|
12195
12225
|
),
|
|
12196
12226
|
children: [
|
|
12197
|
-
/* @__PURE__ */ (0,
|
|
12198
|
-
isDefaultVariant ? /* @__PURE__ */ (0,
|
|
12199
|
-
/* @__PURE__ */ (0,
|
|
12200
|
-
/* @__PURE__ */ (0,
|
|
12201
|
-
/* @__PURE__ */ (0,
|
|
12202
|
-
/* @__PURE__ */ (0,
|
|
12227
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index).concat(") ").concat(option.label) }),
|
|
12228
|
+
isDefaultVariant ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(Select_default, { size: "medium", children: [
|
|
12229
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectValue, { placeholder: "Selecione opc\xE3o" }) }),
|
|
12230
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(SelectContent, { children: [
|
|
12231
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectItem, { value: "V", children: "Verdadeiro" }),
|
|
12232
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectItem, { value: "F", children: "Falso" })
|
|
12203
12233
|
] })
|
|
12204
|
-
] }) : /* @__PURE__ */ (0,
|
|
12234
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex-shrink-0", children: getStatusBadge(variantCorrect) })
|
|
12205
12235
|
]
|
|
12206
12236
|
}
|
|
12207
12237
|
),
|
|
12208
|
-
!isDefaultVariant && /* @__PURE__ */ (0,
|
|
12209
|
-
/* @__PURE__ */ (0,
|
|
12210
|
-
!option.isCorrect && /* @__PURE__ */ (0,
|
|
12238
|
+
!isDefaultVariant && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
12239
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-800 text-2xs", children: "Resposta selecionada: V" }),
|
|
12240
|
+
!option.isCorrect && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-800 text-2xs", children: "Resposta correta: F" })
|
|
12211
12241
|
] })
|
|
12212
12242
|
]
|
|
12213
12243
|
},
|
|
@@ -12297,13 +12327,13 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
12297
12327
|
const assignedDots = new Set(
|
|
12298
12328
|
userAnswers.map((a) => a.dotOption).filter(Boolean)
|
|
12299
12329
|
);
|
|
12300
|
-
return /* @__PURE__ */ (0,
|
|
12301
|
-
/* @__PURE__ */ (0,
|
|
12302
|
-
/* @__PURE__ */ (0,
|
|
12330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12331
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
12332
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
12303
12333
|
const answer = userAnswers[index];
|
|
12304
12334
|
const variantCorrect = answer.isCorrect ? "correct" : "incorrect";
|
|
12305
|
-
return /* @__PURE__ */ (0,
|
|
12306
|
-
/* @__PURE__ */ (0,
|
|
12335
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("section", { className: "flex flex-col gap-2", children: [
|
|
12336
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12307
12337
|
"div",
|
|
12308
12338
|
{
|
|
12309
12339
|
className: cn(
|
|
@@ -12311,30 +12341,30 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
12311
12341
|
isDefaultVariant ? "" : getStatusStyles(variantCorrect)
|
|
12312
12342
|
),
|
|
12313
12343
|
children: [
|
|
12314
|
-
/* @__PURE__ */ (0,
|
|
12315
|
-
isDefaultVariant ? /* @__PURE__ */ (0,
|
|
12344
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index) + ") " + option.label }),
|
|
12345
|
+
isDefaultVariant ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12316
12346
|
Select_default,
|
|
12317
12347
|
{
|
|
12318
12348
|
size: "medium",
|
|
12319
12349
|
value: answer.dotOption || void 0,
|
|
12320
12350
|
onValueChange: (value) => handleSelectDot(index, value),
|
|
12321
12351
|
children: [
|
|
12322
|
-
/* @__PURE__ */ (0,
|
|
12323
|
-
/* @__PURE__ */ (0,
|
|
12352
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
|
|
12353
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectContent, { children: dotsOptions.filter(
|
|
12324
12354
|
(dot) => !assignedDots.has(dot.label) || answer.dotOption === dot.label
|
|
12325
|
-
).map((dot) => /* @__PURE__ */ (0,
|
|
12355
|
+
).map((dot) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectItem, { value: dot.label, children: dot.label }, dot.label)) })
|
|
12326
12356
|
]
|
|
12327
12357
|
}
|
|
12328
|
-
) : /* @__PURE__ */ (0,
|
|
12358
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex-shrink-0", children: answer.isCorrect === null ? null : getStatusBadge(variantCorrect) })
|
|
12329
12359
|
]
|
|
12330
12360
|
}
|
|
12331
12361
|
),
|
|
12332
|
-
!isDefaultVariant && /* @__PURE__ */ (0,
|
|
12333
|
-
/* @__PURE__ */ (0,
|
|
12362
|
+
!isDefaultVariant && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
12363
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("p", { className: "text-text-800 text-2xs", children: [
|
|
12334
12364
|
"Resposta selecionada: ",
|
|
12335
12365
|
answer.dotOption || "Nenhuma"
|
|
12336
12366
|
] }),
|
|
12337
|
-
!answer.isCorrect && /* @__PURE__ */ (0,
|
|
12367
|
+
!answer.isCorrect && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("p", { className: "text-text-800 text-2xs", children: [
|
|
12338
12368
|
"Resposta correta: ",
|
|
12339
12369
|
answer.correctOption
|
|
12340
12370
|
] })
|
|
@@ -12403,18 +12433,18 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
12403
12433
|
const mockAnswer = mockUserAnswers.find(
|
|
12404
12434
|
(answer) => answer.selectId === selectId
|
|
12405
12435
|
);
|
|
12406
|
-
return /* @__PURE__ */ (0,
|
|
12436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { className: "inline-flex mb-2.5 text-success-600 font-semibold text-md border-b-2 border-success-600", children: mockAnswer?.correctAnswer });
|
|
12407
12437
|
};
|
|
12408
12438
|
const renderDefaultElement = (selectId, startIndex, selectedValue, availableOptionsForThisSelect) => {
|
|
12409
|
-
return /* @__PURE__ */ (0,
|
|
12439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12410
12440
|
Select_default,
|
|
12411
12441
|
{
|
|
12412
12442
|
value: selectedValue,
|
|
12413
12443
|
onValueChange: (value) => handleSelectChange(selectId, value),
|
|
12414
12444
|
className: "inline-flex mb-2.5",
|
|
12415
12445
|
children: [
|
|
12416
|
-
/* @__PURE__ */ (0,
|
|
12417
|
-
/* @__PURE__ */ (0,
|
|
12446
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectTrigger, { className: "inline-flex w-auto min-w-[140px] h-8 mx-1 bg-background border-gray-300", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
|
|
12447
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectContent, { children: availableOptionsForThisSelect.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SelectItem, { value: option, children: option }, `${option}-${index}`)) })
|
|
12418
12448
|
]
|
|
12419
12449
|
},
|
|
12420
12450
|
`${selectId}-${startIndex}`
|
|
@@ -12426,8 +12456,8 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
12426
12456
|
);
|
|
12427
12457
|
if (!mockAnswer) return null;
|
|
12428
12458
|
const action = mockAnswer.isCorrect ? "success" : "error";
|
|
12429
|
-
const icon = mockAnswer.isCorrect ? /* @__PURE__ */ (0,
|
|
12430
|
-
return /* @__PURE__ */ (0,
|
|
12459
|
+
const icon = mockAnswer.isCorrect ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react27.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_phosphor_react27.XCircle, {});
|
|
12460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12431
12461
|
Badge_default,
|
|
12432
12462
|
{
|
|
12433
12463
|
variant: "solid",
|
|
@@ -12435,7 +12465,7 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
12435
12465
|
iconRight: icon,
|
|
12436
12466
|
size: "large",
|
|
12437
12467
|
className: "py-3 w-[180px] justify-between mb-2.5",
|
|
12438
|
-
children: /* @__PURE__ */ (0,
|
|
12468
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-text-900", children: mockAnswer.userAnswer })
|
|
12439
12469
|
},
|
|
12440
12470
|
selectId
|
|
12441
12471
|
);
|
|
@@ -12491,25 +12521,25 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
12491
12521
|
}
|
|
12492
12522
|
return elements;
|
|
12493
12523
|
};
|
|
12494
|
-
return /* @__PURE__ */ (0,
|
|
12495
|
-
/* @__PURE__ */ (0,
|
|
12496
|
-
/* @__PURE__ */ (0,
|
|
12524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12525
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
12526
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-6 px-4 h-auto", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12497
12527
|
"div",
|
|
12498
12528
|
{
|
|
12499
12529
|
className: cn(
|
|
12500
12530
|
"text-lg text-text-900 leading-8 h-auto",
|
|
12501
12531
|
variant != "result" && paddingBottom
|
|
12502
12532
|
),
|
|
12503
|
-
children: renderTextWithSelects(exampleText).map((element) => /* @__PURE__ */ (0,
|
|
12533
|
+
children: renderTextWithSelects(exampleText).map((element) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: element.element }, element.id))
|
|
12504
12534
|
}
|
|
12505
12535
|
) }) }),
|
|
12506
|
-
variant === "result" && /* @__PURE__ */ (0,
|
|
12507
|
-
/* @__PURE__ */ (0,
|
|
12508
|
-
/* @__PURE__ */ (0,
|
|
12536
|
+
variant === "result" && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12537
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Resultado" }),
|
|
12538
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "space-y-6 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12509
12539
|
"div",
|
|
12510
12540
|
{
|
|
12511
12541
|
className: cn("text-lg text-text-900 leading-8", paddingBottom),
|
|
12512
|
-
children: renderTextWithSelects(exampleText, true).map((element) => /* @__PURE__ */ (0,
|
|
12542
|
+
children: renderTextWithSelects(exampleText, true).map((element) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: element.element }, element.id))
|
|
12513
12543
|
}
|
|
12514
12544
|
) }) })
|
|
12515
12545
|
] })
|
|
@@ -12563,36 +12593,36 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
12563
12593
|
}
|
|
12564
12594
|
return "bg-success-600/70 border-white";
|
|
12565
12595
|
};
|
|
12566
|
-
return /* @__PURE__ */ (0,
|
|
12567
|
-
/* @__PURE__ */ (0,
|
|
12568
|
-
/* @__PURE__ */ (0,
|
|
12596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
|
|
12597
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizSubTitle, { subTitle: "Clique na \xE1rea correta" }),
|
|
12598
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12569
12599
|
"div",
|
|
12570
12600
|
{
|
|
12571
12601
|
"data-testid": "quiz-image-container",
|
|
12572
12602
|
className: "space-y-6 p-3 relative inline-block",
|
|
12573
12603
|
children: [
|
|
12574
|
-
variant == "result" && /* @__PURE__ */ (0,
|
|
12604
|
+
variant == "result" && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12575
12605
|
"div",
|
|
12576
12606
|
{
|
|
12577
12607
|
"data-testid": "quiz-legend",
|
|
12578
12608
|
className: "flex items-center gap-4 text-xs",
|
|
12579
12609
|
children: [
|
|
12580
|
-
/* @__PURE__ */ (0,
|
|
12581
|
-
/* @__PURE__ */ (0,
|
|
12582
|
-
/* @__PURE__ */ (0,
|
|
12610
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
12611
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "w-3 h-3 rounded-full bg-indicator-primary/70 border border-[#F8CC2E]" }),
|
|
12612
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-text-600 font-medium text-sm", children: "\xC1rea correta" })
|
|
12583
12613
|
] }),
|
|
12584
|
-
/* @__PURE__ */ (0,
|
|
12585
|
-
/* @__PURE__ */ (0,
|
|
12586
|
-
/* @__PURE__ */ (0,
|
|
12614
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
12615
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "w-3 h-3 rounded-full bg-success-600/70 border border-white" }),
|
|
12616
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-text-600 font-medium text-sm", children: "Resposta correta" })
|
|
12587
12617
|
] }),
|
|
12588
|
-
/* @__PURE__ */ (0,
|
|
12589
|
-
/* @__PURE__ */ (0,
|
|
12590
|
-
/* @__PURE__ */ (0,
|
|
12618
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
12619
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "w-3 h-3 rounded-full bg-indicator-error/70 border border-white" }),
|
|
12620
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "text-text-600 font-medium text-sm", children: "Resposta incorreta" })
|
|
12591
12621
|
] })
|
|
12592
12622
|
]
|
|
12593
12623
|
}
|
|
12594
12624
|
),
|
|
12595
|
-
/* @__PURE__ */ (0,
|
|
12625
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
12596
12626
|
"button",
|
|
12597
12627
|
{
|
|
12598
12628
|
"data-testid": "quiz-image-button",
|
|
@@ -12607,7 +12637,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
12607
12637
|
},
|
|
12608
12638
|
"aria-label": "\xC1rea da imagem interativa",
|
|
12609
12639
|
children: [
|
|
12610
|
-
/* @__PURE__ */ (0,
|
|
12640
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12611
12641
|
"img",
|
|
12612
12642
|
{
|
|
12613
12643
|
"data-testid": "quiz-image",
|
|
@@ -12616,7 +12646,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
12616
12646
|
className: "w-full h-auto rounded-md"
|
|
12617
12647
|
}
|
|
12618
12648
|
),
|
|
12619
|
-
variant === "result" && /* @__PURE__ */ (0,
|
|
12649
|
+
variant === "result" && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12620
12650
|
"div",
|
|
12621
12651
|
{
|
|
12622
12652
|
"data-testid": "quiz-correct-circle",
|
|
@@ -12631,7 +12661,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
12631
12661
|
}
|
|
12632
12662
|
}
|
|
12633
12663
|
),
|
|
12634
|
-
clickPositionRelative && /* @__PURE__ */ (0,
|
|
12664
|
+
clickPositionRelative && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12635
12665
|
"div",
|
|
12636
12666
|
{
|
|
12637
12667
|
"data-testid": "quiz-user-circle",
|
|
@@ -12656,7 +12686,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
12656
12686
|
};
|
|
12657
12687
|
|
|
12658
12688
|
// src/components/Quiz/Quiz.tsx
|
|
12659
|
-
var
|
|
12689
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
12660
12690
|
var getQuizTypeConfig = (type) => {
|
|
12661
12691
|
const QUIZ_TYPE_CONFIG = {
|
|
12662
12692
|
["SIMULADO" /* SIMULADO */]: {
|
|
@@ -12698,7 +12728,7 @@ var Quiz = (0, import_react39.forwardRef)(({ children, className, variant = "def
|
|
|
12698
12728
|
(0, import_react39.useEffect)(() => {
|
|
12699
12729
|
setVariant(variant);
|
|
12700
12730
|
}, [variant, setVariant]);
|
|
12701
|
-
return /* @__PURE__ */ (0,
|
|
12731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children });
|
|
12702
12732
|
});
|
|
12703
12733
|
var QuizTitle = (0, import_react39.forwardRef)(({ className, onBack, ...props }, ref) => {
|
|
12704
12734
|
const {
|
|
@@ -12734,8 +12764,8 @@ var QuizTitle = (0, import_react39.forwardRef)(({ className, onBack, ...props },
|
|
|
12734
12764
|
const handleCancelExit = () => {
|
|
12735
12765
|
setShowExitConfirmation(false);
|
|
12736
12766
|
};
|
|
12737
|
-
return /* @__PURE__ */ (0,
|
|
12738
|
-
/* @__PURE__ */ (0,
|
|
12767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
12768
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
12739
12769
|
"div",
|
|
12740
12770
|
{
|
|
12741
12771
|
ref,
|
|
@@ -12745,24 +12775,24 @@ var QuizTitle = (0, import_react39.forwardRef)(({ className, onBack, ...props },
|
|
|
12745
12775
|
),
|
|
12746
12776
|
...props,
|
|
12747
12777
|
children: [
|
|
12748
|
-
/* @__PURE__ */ (0,
|
|
12778
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12749
12779
|
IconButton_default,
|
|
12750
12780
|
{
|
|
12751
|
-
icon: /* @__PURE__ */ (0,
|
|
12781
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_phosphor_react28.CaretLeft, { size: 24 }),
|
|
12752
12782
|
size: "md",
|
|
12753
12783
|
"aria-label": "Voltar",
|
|
12754
12784
|
onClick: handleBackClick
|
|
12755
12785
|
}
|
|
12756
12786
|
),
|
|
12757
|
-
/* @__PURE__ */ (0,
|
|
12758
|
-
/* @__PURE__ */ (0,
|
|
12759
|
-
/* @__PURE__ */ (0,
|
|
12787
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: "flex flex-col gap-2 text-center", children: [
|
|
12788
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-text-950 font-bold text-md", children: quizTitle }),
|
|
12789
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-text-600 text-xs", children: totalQuestions > 0 ? `${currentQuestionIndex + 1} de ${totalQuestions}` : "0 de 0" })
|
|
12760
12790
|
] }),
|
|
12761
|
-
/* @__PURE__ */ (0,
|
|
12791
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "flex flex-row items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Badge_default, { variant: "outlined", action: "info", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_phosphor_react28.Clock, {}), children: isStarted ? formatTime2(timeElapsed) : "00:00" }) })
|
|
12762
12792
|
]
|
|
12763
12793
|
}
|
|
12764
12794
|
),
|
|
12765
|
-
/* @__PURE__ */ (0,
|
|
12795
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12766
12796
|
AlertDialog,
|
|
12767
12797
|
{
|
|
12768
12798
|
isOpen: showExitConfirmation,
|
|
@@ -12782,7 +12812,7 @@ var QuizHeader = () => {
|
|
|
12782
12812
|
const currentQuestion = getCurrentQuestion();
|
|
12783
12813
|
let currentId = currentQuestion && "questionId" in currentQuestion ? currentQuestion.questionId : currentQuestion?.id;
|
|
12784
12814
|
const questionIndex = getQuestionIndex(currentId);
|
|
12785
|
-
return /* @__PURE__ */ (0,
|
|
12815
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12786
12816
|
HeaderAlternative,
|
|
12787
12817
|
{
|
|
12788
12818
|
title: currentQuestion ? `Quest\xE3o ${questionIndex.toString().padStart(2, "0")}` : "Quest\xE3o",
|
|
@@ -12804,7 +12834,7 @@ var QuizContent = ({ paddingBottom }) => {
|
|
|
12804
12834
|
["IMAGEM" /* IMAGEM */]: QuizImageQuestion
|
|
12805
12835
|
};
|
|
12806
12836
|
const QuestionComponent = currentQuestion ? questionComponents[currentQuestion.questionType] : null;
|
|
12807
|
-
return QuestionComponent ? /* @__PURE__ */ (0,
|
|
12837
|
+
return QuestionComponent ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(QuestionComponent, { paddingBottom }) : null;
|
|
12808
12838
|
};
|
|
12809
12839
|
var QuizQuestionList = ({
|
|
12810
12840
|
filterType = "all",
|
|
@@ -12851,18 +12881,18 @@ var QuizQuestionList = ({
|
|
|
12851
12881
|
return "Em branco";
|
|
12852
12882
|
}
|
|
12853
12883
|
};
|
|
12854
|
-
return /* @__PURE__ */ (0,
|
|
12855
|
-
Object.entries(filteredGroupedQuestions).length == 0 && /* @__PURE__ */ (0,
|
|
12884
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "space-y-6 px-4 h-full", children: [
|
|
12885
|
+
Object.entries(filteredGroupedQuestions).length == 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex items-center justify-center text-gray-500 py-8 h-full", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-lg", children: "Nenhum resultado" }) }),
|
|
12856
12886
|
Object.entries(filteredGroupedQuestions).map(
|
|
12857
|
-
([subjectId, questions]) => /* @__PURE__ */ (0,
|
|
12858
|
-
/* @__PURE__ */ (0,
|
|
12859
|
-
/* @__PURE__ */ (0,
|
|
12860
|
-
/* @__PURE__ */ (0,
|
|
12887
|
+
([subjectId, questions]) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("section", { className: "flex flex-col gap-2", children: [
|
|
12888
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: "pt-6 pb-4 flex flex-row gap-2", children: [
|
|
12889
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "bg-primary-500 p-1 rounded-sm flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_phosphor_react28.BookOpen, { size: 17, className: "text-white" }) }),
|
|
12890
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-text-800 font-bold text-lg", children: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" })
|
|
12861
12891
|
] }),
|
|
12862
|
-
/* @__PURE__ */ (0,
|
|
12892
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("ul", { className: "flex flex-col gap-2", children: questions.map((question) => {
|
|
12863
12893
|
const status = getQuestionStatus(question.id);
|
|
12864
12894
|
const questionNumber = getQuestionIndex(question.id);
|
|
12865
|
-
return /* @__PURE__ */ (0,
|
|
12895
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12866
12896
|
CardStatus,
|
|
12867
12897
|
{
|
|
12868
12898
|
header: `Quest\xE3o ${questionNumber.toString().padStart(2, "0")}`,
|
|
@@ -12969,8 +12999,8 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
12969
12999
|
return;
|
|
12970
13000
|
}
|
|
12971
13001
|
};
|
|
12972
|
-
return /* @__PURE__ */ (0,
|
|
12973
|
-
/* @__PURE__ */ (0,
|
|
13002
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
13003
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12974
13004
|
"footer",
|
|
12975
13005
|
{
|
|
12976
13006
|
ref,
|
|
@@ -12979,17 +13009,17 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
12979
13009
|
className
|
|
12980
13010
|
),
|
|
12981
13011
|
...props,
|
|
12982
|
-
children: variant === "default" ? /* @__PURE__ */ (0,
|
|
12983
|
-
/* @__PURE__ */ (0,
|
|
12984
|
-
/* @__PURE__ */ (0,
|
|
13012
|
+
children: variant === "default" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
|
|
13013
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-1", children: [
|
|
13014
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12985
13015
|
IconButton_default,
|
|
12986
13016
|
{
|
|
12987
|
-
icon: /* @__PURE__ */ (0,
|
|
13017
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_phosphor_react28.SquaresFour, { size: 24, className: "text-text-950" }),
|
|
12988
13018
|
size: "md",
|
|
12989
13019
|
onClick: () => openModal("modalNavigate")
|
|
12990
13020
|
}
|
|
12991
13021
|
),
|
|
12992
|
-
isFirstQuestion ? /* @__PURE__ */ (0,
|
|
13022
|
+
isFirstQuestion ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
12993
13023
|
Button_default,
|
|
12994
13024
|
{
|
|
12995
13025
|
variant: "outline",
|
|
@@ -13000,13 +13030,13 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13000
13030
|
},
|
|
13001
13031
|
children: "Pular"
|
|
13002
13032
|
}
|
|
13003
|
-
) : /* @__PURE__ */ (0,
|
|
13033
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13004
13034
|
Button_default,
|
|
13005
13035
|
{
|
|
13006
13036
|
size: "medium",
|
|
13007
13037
|
variant: "link",
|
|
13008
13038
|
action: "primary",
|
|
13009
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
13039
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_phosphor_react28.CaretLeft, { size: 18 }),
|
|
13010
13040
|
onClick: () => {
|
|
13011
13041
|
goToPreviousQuestion();
|
|
13012
13042
|
},
|
|
@@ -13014,7 +13044,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13014
13044
|
}
|
|
13015
13045
|
)
|
|
13016
13046
|
] }),
|
|
13017
|
-
!isFirstQuestion && !isLastQuestion && /* @__PURE__ */ (0,
|
|
13047
|
+
!isFirstQuestion && !isLastQuestion && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13018
13048
|
Button_default,
|
|
13019
13049
|
{
|
|
13020
13050
|
size: "small",
|
|
@@ -13027,7 +13057,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13027
13057
|
children: "Pular"
|
|
13028
13058
|
}
|
|
13029
13059
|
),
|
|
13030
|
-
isLastQuestion ? /* @__PURE__ */ (0,
|
|
13060
|
+
isLastQuestion ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13031
13061
|
Button_default,
|
|
13032
13062
|
{
|
|
13033
13063
|
size: "medium",
|
|
@@ -13036,13 +13066,13 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13036
13066
|
onClick: handleFinishQuiz,
|
|
13037
13067
|
children: "Finalizar"
|
|
13038
13068
|
}
|
|
13039
|
-
) : /* @__PURE__ */ (0,
|
|
13069
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13040
13070
|
Button_default,
|
|
13041
13071
|
{
|
|
13042
13072
|
size: "medium",
|
|
13043
13073
|
variant: "link",
|
|
13044
13074
|
action: "primary",
|
|
13045
|
-
iconRight: /* @__PURE__ */ (0,
|
|
13075
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_phosphor_react28.CaretRight, { size: 18 }),
|
|
13046
13076
|
disabled: !currentAnswer && !isCurrentQuestionSkipped,
|
|
13047
13077
|
onClick: () => {
|
|
13048
13078
|
goToNextQuestion();
|
|
@@ -13050,7 +13080,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13050
13080
|
children: "Avan\xE7ar"
|
|
13051
13081
|
}
|
|
13052
13082
|
)
|
|
13053
|
-
] }) : /* @__PURE__ */ (0,
|
|
13083
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-row items-center justify-center w-full", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13054
13084
|
Button_default,
|
|
13055
13085
|
{
|
|
13056
13086
|
variant: "link",
|
|
@@ -13062,7 +13092,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13062
13092
|
) })
|
|
13063
13093
|
}
|
|
13064
13094
|
),
|
|
13065
|
-
/* @__PURE__ */ (0,
|
|
13095
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13066
13096
|
AlertDialog,
|
|
13067
13097
|
{
|
|
13068
13098
|
isOpen: isModalOpen("alertDialog"),
|
|
@@ -13074,7 +13104,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13074
13104
|
onSubmit: handleAlertSubmit
|
|
13075
13105
|
}
|
|
13076
13106
|
),
|
|
13077
|
-
/* @__PURE__ */ (0,
|
|
13107
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13078
13108
|
Modal_default,
|
|
13079
13109
|
{
|
|
13080
13110
|
isOpen: isModalOpen("modalResult"),
|
|
@@ -13083,11 +13113,11 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13083
13113
|
closeOnEscape: false,
|
|
13084
13114
|
hideCloseButton: true,
|
|
13085
13115
|
size: "md",
|
|
13086
|
-
children: /* @__PURE__ */ (0,
|
|
13087
|
-
resultImageComponent ? /* @__PURE__ */ (0,
|
|
13088
|
-
/* @__PURE__ */ (0,
|
|
13089
|
-
/* @__PURE__ */ (0,
|
|
13090
|
-
/* @__PURE__ */ (0,
|
|
13116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
|
|
13117
|
+
resultImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
|
|
13118
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
13119
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: getCompletionTitle(quizType) }),
|
|
13120
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("p", { className: "text-text-500 font-sm", children: [
|
|
13091
13121
|
"Voc\xEA acertou ",
|
|
13092
13122
|
correctAnswers ?? "--",
|
|
13093
13123
|
" de ",
|
|
@@ -13096,8 +13126,8 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13096
13126
|
"quest\xF5es."
|
|
13097
13127
|
] })
|
|
13098
13128
|
] }),
|
|
13099
|
-
/* @__PURE__ */ (0,
|
|
13100
|
-
/* @__PURE__ */ (0,
|
|
13129
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: [
|
|
13130
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13101
13131
|
Button_default,
|
|
13102
13132
|
{
|
|
13103
13133
|
variant: "outline",
|
|
@@ -13107,38 +13137,38 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13107
13137
|
children: quizTypeLabel === "Question\xE1rio" ? "Ir para aulas" : `Ir para ${quizTypeLabel.toLocaleLowerCase()}s`
|
|
13108
13138
|
}
|
|
13109
13139
|
),
|
|
13110
|
-
/* @__PURE__ */ (0,
|
|
13140
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button_default, { className: "w-full", onClick: onDetailResult, children: "Detalhar resultado" })
|
|
13111
13141
|
] })
|
|
13112
13142
|
] })
|
|
13113
13143
|
}
|
|
13114
13144
|
),
|
|
13115
|
-
/* @__PURE__ */ (0,
|
|
13145
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13116
13146
|
Modal_default,
|
|
13117
13147
|
{
|
|
13118
13148
|
isOpen: isModalOpen("modalNavigate"),
|
|
13119
13149
|
onClose: closeModal,
|
|
13120
13150
|
title: "Quest\xF5es",
|
|
13121
13151
|
size: "lg",
|
|
13122
|
-
children: /* @__PURE__ */ (0,
|
|
13123
|
-
/* @__PURE__ */ (0,
|
|
13124
|
-
/* @__PURE__ */ (0,
|
|
13125
|
-
/* @__PURE__ */ (0,
|
|
13126
|
-
/* @__PURE__ */ (0,
|
|
13152
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col w-full not-lg:h-[calc(100vh-200px)] lg:max-h-[687px] lg:h-[687px]", children: [
|
|
13153
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row justify-between items-center py-6 pt-6 pb-4 border-b border-border-200 flex-shrink-0", children: [
|
|
13154
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-text-950 font-bold text-lg", children: "Filtrar por" }),
|
|
13155
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "max-w-[266px]", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Select_default, { value: filterType, onValueChange: setFilterType, children: [
|
|
13156
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13127
13157
|
SelectTrigger,
|
|
13128
13158
|
{
|
|
13129
13159
|
variant: "rounded",
|
|
13130
13160
|
className: "max-w-[266px] min-w-[160px]",
|
|
13131
|
-
children: /* @__PURE__ */ (0,
|
|
13161
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectValue, { placeholder: "Selecione uma op\xE7\xE3o" })
|
|
13132
13162
|
}
|
|
13133
13163
|
),
|
|
13134
|
-
/* @__PURE__ */ (0,
|
|
13135
|
-
/* @__PURE__ */ (0,
|
|
13136
|
-
/* @__PURE__ */ (0,
|
|
13137
|
-
/* @__PURE__ */ (0,
|
|
13164
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(SelectContent, { children: [
|
|
13165
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItem, { value: "all", children: "Todas" }),
|
|
13166
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItem, { value: "unanswered", children: "Em branco" }),
|
|
13167
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SelectItem, { value: "answered", children: "Respondidas" })
|
|
13138
13168
|
] })
|
|
13139
13169
|
] }) })
|
|
13140
13170
|
] }),
|
|
13141
|
-
/* @__PURE__ */ (0,
|
|
13171
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-col gap-2 flex-1 min-h-0 overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13142
13172
|
QuizQuestionList,
|
|
13143
13173
|
{
|
|
13144
13174
|
filterType,
|
|
@@ -13148,7 +13178,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13148
13178
|
] })
|
|
13149
13179
|
}
|
|
13150
13180
|
),
|
|
13151
|
-
/* @__PURE__ */ (0,
|
|
13181
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13152
13182
|
Modal_default,
|
|
13153
13183
|
{
|
|
13154
13184
|
isOpen: isModalOpen("modalResolution"),
|
|
@@ -13158,7 +13188,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13158
13188
|
children: currentQuestion?.solutionExplanation
|
|
13159
13189
|
}
|
|
13160
13190
|
),
|
|
13161
|
-
/* @__PURE__ */ (0,
|
|
13191
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13162
13192
|
Modal_default,
|
|
13163
13193
|
{
|
|
13164
13194
|
isOpen: isModalOpen("modalQuestionnaireAllCorrect"),
|
|
@@ -13167,17 +13197,17 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13167
13197
|
closeOnEscape: false,
|
|
13168
13198
|
hideCloseButton: true,
|
|
13169
13199
|
size: "md",
|
|
13170
|
-
children: /* @__PURE__ */ (0,
|
|
13171
|
-
resultImageComponent ? /* @__PURE__ */ (0,
|
|
13172
|
-
/* @__PURE__ */ (0,
|
|
13173
|
-
/* @__PURE__ */ (0,
|
|
13174
|
-
/* @__PURE__ */ (0,
|
|
13200
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
|
|
13201
|
+
resultImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
|
|
13202
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
13203
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: "\u{1F389} Parab\xE9ns!" }),
|
|
13204
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-text-500 font-sm", children: "Voc\xEA concluiu o m\xF3dulo Movimento Uniforme." })
|
|
13175
13205
|
] }),
|
|
13176
|
-
/* @__PURE__ */ (0,
|
|
13206
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button_default, { className: "w-full", onClick: onGoToNextModule, children: "Pr\xF3ximo m\xF3dulo" }) })
|
|
13177
13207
|
] })
|
|
13178
13208
|
}
|
|
13179
13209
|
),
|
|
13180
|
-
/* @__PURE__ */ (0,
|
|
13210
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13181
13211
|
Modal_default,
|
|
13182
13212
|
{
|
|
13183
13213
|
isOpen: isModalOpen("modalQuestionnaireAllIncorrect"),
|
|
@@ -13186,16 +13216,16 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13186
13216
|
closeOnEscape: false,
|
|
13187
13217
|
hideCloseButton: true,
|
|
13188
13218
|
size: "md",
|
|
13189
|
-
children: /* @__PURE__ */ (0,
|
|
13190
|
-
resultIncorrectImageComponent ? /* @__PURE__ */ (0,
|
|
13191
|
-
/* @__PURE__ */ (0,
|
|
13192
|
-
/* @__PURE__ */ (0,
|
|
13193
|
-
/* @__PURE__ */ (0,
|
|
13194
|
-
/* @__PURE__ */ (0,
|
|
13195
|
-
/* @__PURE__ */ (0,
|
|
13219
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
|
|
13220
|
+
resultIncorrectImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-[282px] h-auto", children: resultIncorrectImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
|
|
13221
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
13222
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: "\u{1F615} N\xE3o foi dessa vez..." }),
|
|
13223
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.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." }),
|
|
13224
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.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." }),
|
|
13225
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-text-500 font-sm", children: "Clique em Repetir Question\xE1rio e mostre do que voc\xEA \xE9 capaz! \u{1F4AA}" })
|
|
13196
13226
|
] }),
|
|
13197
|
-
/* @__PURE__ */ (0,
|
|
13198
|
-
/* @__PURE__ */ (0,
|
|
13227
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row justify-center items-center gap-2 w-full", children: [
|
|
13228
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13199
13229
|
Button_default,
|
|
13200
13230
|
{
|
|
13201
13231
|
type: "button",
|
|
@@ -13209,7 +13239,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13209
13239
|
children: "Tentar depois"
|
|
13210
13240
|
}
|
|
13211
13241
|
),
|
|
13212
|
-
/* @__PURE__ */ (0,
|
|
13242
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13213
13243
|
Button_default,
|
|
13214
13244
|
{
|
|
13215
13245
|
variant: "outline",
|
|
@@ -13219,7 +13249,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13219
13249
|
children: "Detalhar resultado"
|
|
13220
13250
|
}
|
|
13221
13251
|
),
|
|
13222
|
-
/* @__PURE__ */ (0,
|
|
13252
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13223
13253
|
Button_default,
|
|
13224
13254
|
{
|
|
13225
13255
|
className: "w-auto",
|
|
@@ -13232,7 +13262,7 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13232
13262
|
] })
|
|
13233
13263
|
}
|
|
13234
13264
|
),
|
|
13235
|
-
/* @__PURE__ */ (0,
|
|
13265
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
13236
13266
|
AlertDialog,
|
|
13237
13267
|
{
|
|
13238
13268
|
isOpen: isModalOpen("alertDialogTryLater"),
|
|
@@ -13258,24 +13288,24 @@ var QuizFooter = (0, import_react39.forwardRef)(
|
|
|
13258
13288
|
// src/components/Quiz/QuizResult.tsx
|
|
13259
13289
|
var import_react40 = require("react");
|
|
13260
13290
|
var import_phosphor_react29 = require("phosphor-react");
|
|
13261
|
-
var
|
|
13291
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
13262
13292
|
var QuizBadge = ({
|
|
13263
13293
|
subtype
|
|
13264
13294
|
}) => {
|
|
13265
13295
|
switch (subtype) {
|
|
13266
13296
|
case "PROVA" /* PROVA */:
|
|
13267
|
-
return /* @__PURE__ */ (0,
|
|
13297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Badge_default, { variant: "examsOutlined", action: "exam2", "data-testid": "quiz-badge", children: "Prova" });
|
|
13268
13298
|
case "ENEM_PROVA_1" /* ENEM_PROVA_1 */:
|
|
13269
13299
|
case "ENEM_PROVA_2" /* ENEM_PROVA_2 */:
|
|
13270
|
-
return /* @__PURE__ */ (0,
|
|
13300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Badge_default, { variant: "examsOutlined", action: "exam1", "data-testid": "quiz-badge", children: "Enem" });
|
|
13271
13301
|
case "VESTIBULAR" /* VESTIBULAR */:
|
|
13272
|
-
return /* @__PURE__ */ (0,
|
|
13302
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Badge_default, { variant: "examsOutlined", action: "exam4", "data-testid": "quiz-badge", children: "Vestibular" });
|
|
13273
13303
|
case "SIMULADO" /* SIMULADO */:
|
|
13274
13304
|
case "SIMULADAO" /* SIMULADAO */:
|
|
13275
13305
|
case void 0:
|
|
13276
|
-
return /* @__PURE__ */ (0,
|
|
13306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Badge_default, { variant: "examsOutlined", action: "exam3", "data-testid": "quiz-badge", children: "Simulad\xE3o" });
|
|
13277
13307
|
default:
|
|
13278
|
-
return /* @__PURE__ */ (0,
|
|
13308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: subtype });
|
|
13279
13309
|
}
|
|
13280
13310
|
};
|
|
13281
13311
|
var QuizHeaderResult = (0, import_react40.forwardRef)(
|
|
@@ -13332,7 +13362,7 @@ var QuizHeaderResult = (0, import_react40.forwardRef)(
|
|
|
13332
13362
|
return "N\xE3o foi dessa vez...voc\xEA deixou a resposta em branco";
|
|
13333
13363
|
}
|
|
13334
13364
|
};
|
|
13335
|
-
return /* @__PURE__ */ (0,
|
|
13365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
13336
13366
|
"div",
|
|
13337
13367
|
{
|
|
13338
13368
|
ref,
|
|
@@ -13343,8 +13373,8 @@ var QuizHeaderResult = (0, import_react40.forwardRef)(
|
|
|
13343
13373
|
),
|
|
13344
13374
|
...props,
|
|
13345
13375
|
children: [
|
|
13346
|
-
/* @__PURE__ */ (0,
|
|
13347
|
-
/* @__PURE__ */ (0,
|
|
13376
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-text-950 font-bold text-lg", children: "Resultado" }),
|
|
13377
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-text-700 text-md", children: getLabelByAnswersStatus() })
|
|
13348
13378
|
]
|
|
13349
13379
|
}
|
|
13350
13380
|
);
|
|
@@ -13352,7 +13382,7 @@ var QuizHeaderResult = (0, import_react40.forwardRef)(
|
|
|
13352
13382
|
);
|
|
13353
13383
|
var QuizResultHeaderTitle = (0, import_react40.forwardRef)(({ className, showBadge = true, onRepeat, canRetry, ...props }, ref) => {
|
|
13354
13384
|
const { quiz } = useQuizStore();
|
|
13355
|
-
return /* @__PURE__ */ (0,
|
|
13385
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
13356
13386
|
"div",
|
|
13357
13387
|
{
|
|
13358
13388
|
ref,
|
|
@@ -13362,9 +13392,9 @@ var QuizResultHeaderTitle = (0, import_react40.forwardRef)(({ className, showBad
|
|
|
13362
13392
|
),
|
|
13363
13393
|
...props,
|
|
13364
13394
|
children: [
|
|
13365
|
-
/* @__PURE__ */ (0,
|
|
13366
|
-
/* @__PURE__ */ (0,
|
|
13367
|
-
canRetry && onRepeat && /* @__PURE__ */ (0,
|
|
13395
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-text-950 font-bold text-2xl", children: "Resultado" }),
|
|
13396
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row gap-3 items-center", children: [
|
|
13397
|
+
canRetry && onRepeat && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13368
13398
|
Button_default,
|
|
13369
13399
|
{
|
|
13370
13400
|
variant: "solid",
|
|
@@ -13374,7 +13404,7 @@ var QuizResultHeaderTitle = (0, import_react40.forwardRef)(({ className, showBad
|
|
|
13374
13404
|
children: "Repetir question\xE1rio"
|
|
13375
13405
|
}
|
|
13376
13406
|
),
|
|
13377
|
-
showBadge && /* @__PURE__ */ (0,
|
|
13407
|
+
showBadge && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(QuizBadge, { subtype: quiz?.subtype || void 0 })
|
|
13378
13408
|
] })
|
|
13379
13409
|
]
|
|
13380
13410
|
}
|
|
@@ -13383,7 +13413,7 @@ var QuizResultHeaderTitle = (0, import_react40.forwardRef)(({ className, showBad
|
|
|
13383
13413
|
var QuizResultTitle = (0, import_react40.forwardRef)(({ className, ...props }, ref) => {
|
|
13384
13414
|
const { getQuizTitle } = useQuizStore();
|
|
13385
13415
|
const quizTitle = getQuizTitle();
|
|
13386
|
-
return /* @__PURE__ */ (0,
|
|
13416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13387
13417
|
"p",
|
|
13388
13418
|
{
|
|
13389
13419
|
className: cn("pt-6 pb-4 text-text-950 font-bold text-lg", className),
|
|
@@ -13444,7 +13474,7 @@ var QuizResultPerformance = (0, import_react40.forwardRef)(({ showDetails = true
|
|
|
13444
13474
|
};
|
|
13445
13475
|
const percentage = totalQuestions > 0 ? Math.round(stats.correctAnswers / totalQuestions * 100) : 0;
|
|
13446
13476
|
const classesJustifyBetween = showDetails ? "justify-between" : "justify-center";
|
|
13447
|
-
return /* @__PURE__ */ (0,
|
|
13477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
13448
13478
|
"div",
|
|
13449
13479
|
{
|
|
13450
13480
|
className: cn(
|
|
@@ -13454,8 +13484,8 @@ var QuizResultPerformance = (0, import_react40.forwardRef)(({ showDetails = true
|
|
|
13454
13484
|
ref,
|
|
13455
13485
|
...props,
|
|
13456
13486
|
children: [
|
|
13457
|
-
/* @__PURE__ */ (0,
|
|
13458
|
-
/* @__PURE__ */ (0,
|
|
13487
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "relative", children: [
|
|
13488
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13459
13489
|
ProgressCircle_default,
|
|
13460
13490
|
{
|
|
13461
13491
|
size: "medium",
|
|
@@ -13465,24 +13495,24 @@ var QuizResultPerformance = (0, import_react40.forwardRef)(({ showDetails = true
|
|
|
13465
13495
|
label: ""
|
|
13466
13496
|
}
|
|
13467
13497
|
),
|
|
13468
|
-
/* @__PURE__ */ (0,
|
|
13469
|
-
showDetails && /* @__PURE__ */ (0,
|
|
13470
|
-
/* @__PURE__ */ (0,
|
|
13471
|
-
/* @__PURE__ */ (0,
|
|
13498
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
13499
|
+
showDetails && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
|
|
13500
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_phosphor_react29.Clock, { size: 12, weight: "regular", className: "text-text-800" }),
|
|
13501
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(
|
|
13472
13502
|
(getQuestionResultStatistics()?.timeSpent ?? 0) * 60
|
|
13473
13503
|
) })
|
|
13474
13504
|
] }),
|
|
13475
|
-
/* @__PURE__ */ (0,
|
|
13505
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
|
|
13476
13506
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|
|
13477
13507
|
" de",
|
|
13478
13508
|
" ",
|
|
13479
13509
|
totalQuestions
|
|
13480
13510
|
] }),
|
|
13481
|
-
/* @__PURE__ */ (0,
|
|
13511
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "text-2xs font-medium text-text-600 mt-1", children: "Corretas" })
|
|
13482
13512
|
] })
|
|
13483
13513
|
] }),
|
|
13484
|
-
showDetails && /* @__PURE__ */ (0,
|
|
13485
|
-
/* @__PURE__ */ (0,
|
|
13514
|
+
showDetails && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
|
|
13515
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13486
13516
|
ProgressBar_default,
|
|
13487
13517
|
{
|
|
13488
13518
|
className: "w-full",
|
|
@@ -13496,7 +13526,7 @@ var QuizResultPerformance = (0, import_react40.forwardRef)(({ showDetails = true
|
|
|
13496
13526
|
percentageClassName: "text-xs font-medium leading-[14px] text-right"
|
|
13497
13527
|
}
|
|
13498
13528
|
),
|
|
13499
|
-
/* @__PURE__ */ (0,
|
|
13529
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13500
13530
|
ProgressBar_default,
|
|
13501
13531
|
{
|
|
13502
13532
|
className: "w-full",
|
|
@@ -13510,7 +13540,7 @@ var QuizResultPerformance = (0, import_react40.forwardRef)(({ showDetails = true
|
|
|
13510
13540
|
percentageClassName: "text-xs font-medium leading-[14px] text-right"
|
|
13511
13541
|
}
|
|
13512
13542
|
),
|
|
13513
|
-
/* @__PURE__ */ (0,
|
|
13543
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13514
13544
|
ProgressBar_default,
|
|
13515
13545
|
{
|
|
13516
13546
|
className: "w-full",
|
|
@@ -13557,9 +13587,9 @@ var QuizListResult = (0, import_react40.forwardRef)(({ className, onSubjectClick
|
|
|
13557
13587
|
};
|
|
13558
13588
|
}
|
|
13559
13589
|
);
|
|
13560
|
-
return /* @__PURE__ */ (0,
|
|
13561
|
-
/* @__PURE__ */ (0,
|
|
13562
|
-
/* @__PURE__ */ (0,
|
|
13590
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("section", { ref, className, ...props, children: [
|
|
13591
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Mat\xE9rias" }),
|
|
13592
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: "flex flex-col gap-2", children: subjectsStats.map((subject) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13563
13593
|
CardResults,
|
|
13564
13594
|
{
|
|
13565
13595
|
onClick: () => onSubjectClick?.(subject.subject.id),
|
|
@@ -13583,16 +13613,16 @@ var QuizListResultByMateria = ({
|
|
|
13583
13613
|
const groupedQuestions = getQuestionsGroupedBySubject();
|
|
13584
13614
|
const answeredQuestions = groupedQuestions[subject] || [];
|
|
13585
13615
|
const formattedQuestions = subject == "all" ? Object.values(groupedQuestions).flat() : answeredQuestions;
|
|
13586
|
-
return /* @__PURE__ */ (0,
|
|
13587
|
-
/* @__PURE__ */ (0,
|
|
13588
|
-
/* @__PURE__ */ (0,
|
|
13589
|
-
/* @__PURE__ */ (0,
|
|
13590
|
-
/* @__PURE__ */ (0,
|
|
13616
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col", children: [
|
|
13617
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "flex flex-row pt-4 justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "text-text-950 font-bold text-2xl", children: subjectName || formattedQuestions?.[0]?.knowledgeMatrix?.[0]?.subject?.name || "Sem mat\xE9ria" }) }),
|
|
13618
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("section", { className: "flex flex-col ", children: [
|
|
13619
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Resultado das quest\xF5es" }),
|
|
13620
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("ul", { className: "flex flex-col gap-2 pt-4", children: formattedQuestions.map((question) => {
|
|
13591
13621
|
const questionIndex = getQuestionIndex(
|
|
13592
13622
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13593
13623
|
question.questionId ?? question.id
|
|
13594
13624
|
);
|
|
13595
|
-
return /* @__PURE__ */ (0,
|
|
13625
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
13596
13626
|
CardStatus,
|
|
13597
13627
|
{
|
|
13598
13628
|
className: "max-w-full",
|
|
@@ -13618,7 +13648,7 @@ var QuizListResultByMateria = ({
|
|
|
13618
13648
|
|
|
13619
13649
|
// src/components/BreadcrumbMenu/BreadcrumbMenu.tsx
|
|
13620
13650
|
var import_react_router_dom3 = require("react-router-dom");
|
|
13621
|
-
var
|
|
13651
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
13622
13652
|
var BreadcrumbMenu = ({
|
|
13623
13653
|
breadcrumbs,
|
|
13624
13654
|
onBreadcrumbClick,
|
|
@@ -13631,17 +13661,17 @@ var BreadcrumbMenu = ({
|
|
|
13631
13661
|
}
|
|
13632
13662
|
navigate(breadcrumb.url);
|
|
13633
13663
|
};
|
|
13634
|
-
return /* @__PURE__ */ (0,
|
|
13664
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13635
13665
|
Menu,
|
|
13636
13666
|
{
|
|
13637
13667
|
value: `breadcrumb-${breadcrumbs.length - 1}`,
|
|
13638
13668
|
defaultValue: "breadcrumb-0",
|
|
13639
13669
|
variant: "breadcrumb",
|
|
13640
13670
|
className,
|
|
13641
|
-
children: /* @__PURE__ */ (0,
|
|
13671
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(MenuContent, { className: "w-full flex flex-row flex-wrap gap-2 !px-0", children: breadcrumbs.map((breadcrumb, index) => {
|
|
13642
13672
|
const isLast = index === breadcrumbs.length - 1;
|
|
13643
13673
|
const hasSeparator = !isLast;
|
|
13644
|
-
return /* @__PURE__ */ (0,
|
|
13674
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
13645
13675
|
MenuItem,
|
|
13646
13676
|
{
|
|
13647
13677
|
variant: "breadcrumb",
|
|
@@ -14187,6 +14217,7 @@ function useAppContent(config) {
|
|
|
14187
14217
|
Modal,
|
|
14188
14218
|
MultipleChoiceList,
|
|
14189
14219
|
NavButton,
|
|
14220
|
+
NoSearchResult,
|
|
14190
14221
|
NotFound,
|
|
14191
14222
|
NotificationCard,
|
|
14192
14223
|
NotificationEntityType,
|