analytica-frontend-lib 1.1.30 → 1.1.32
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/Accordation/index.js +294 -159
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +285 -160
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +288 -153
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +279 -154
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Quiz/index.js +561 -369
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +552 -371
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +12 -1
- package/dist/Quiz/useQuizStore/index.d.ts +12 -1
- package/dist/Quiz/useQuizStore/index.js +42 -0
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +41 -0
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/Select/index.js +3 -5
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/index.mjs +3 -5
- package/dist/Select/index.mjs.map +1 -1
- package/dist/index.js +408 -349
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +409 -351
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3970,7 +3970,132 @@ import {
|
|
|
3970
3970
|
SpeakerSimpleX,
|
|
3971
3971
|
XCircle as XCircle2
|
|
3972
3972
|
} from "phosphor-react";
|
|
3973
|
-
|
|
3973
|
+
|
|
3974
|
+
// src/components/IconRender/IconRender.tsx
|
|
3975
|
+
import * as PhosphorIcons from "phosphor-react";
|
|
3976
|
+
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3977
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
3978
|
+
"svg",
|
|
3979
|
+
{
|
|
3980
|
+
width: size,
|
|
3981
|
+
height: size,
|
|
3982
|
+
viewBox: "0 0 32 32",
|
|
3983
|
+
fill: "none",
|
|
3984
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3985
|
+
children: [
|
|
3986
|
+
/* @__PURE__ */ jsx26(
|
|
3987
|
+
"path",
|
|
3988
|
+
{
|
|
3989
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
3990
|
+
fill: color
|
|
3991
|
+
}
|
|
3992
|
+
),
|
|
3993
|
+
/* @__PURE__ */ jsx26(
|
|
3994
|
+
"path",
|
|
3995
|
+
{
|
|
3996
|
+
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
3997
|
+
fill: color
|
|
3998
|
+
}
|
|
3999
|
+
),
|
|
4000
|
+
/* @__PURE__ */ jsx26(
|
|
4001
|
+
"path",
|
|
4002
|
+
{
|
|
4003
|
+
d: "M13.2402 17.3496H11.0195V16.1836H13.2402C13.627 16.1836 13.9395 16.1211 14.1777 15.9961C14.416 15.8711 14.5898 15.6992 14.6992 15.4805C14.8125 15.2578 14.8691 15.0039 14.8691 14.7188C14.8691 14.4492 14.8125 14.1973 14.6992 13.9629C14.5898 13.7246 14.416 13.5332 14.1777 13.3887C13.9395 13.2441 13.627 13.1719 13.2402 13.1719H11.4707V20.5312H10V12H13.2402C13.9004 12 14.4609 12.1172 14.9219 12.3516C15.3867 12.582 15.7402 12.9023 15.9824 13.3125C16.2246 13.7188 16.3457 14.1836 16.3457 14.707C16.3457 15.2578 16.2246 15.7305 15.9824 16.125C15.7402 16.5195 15.3867 16.8223 14.9219 17.0332C14.4609 17.2441 13.9004 17.3496 13.2402 17.3496Z",
|
|
4004
|
+
fill: color
|
|
4005
|
+
}
|
|
4006
|
+
)
|
|
4007
|
+
]
|
|
4008
|
+
}
|
|
4009
|
+
);
|
|
4010
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
4011
|
+
"svg",
|
|
4012
|
+
{
|
|
4013
|
+
width: size,
|
|
4014
|
+
height: size,
|
|
4015
|
+
viewBox: "0 0 32 32",
|
|
4016
|
+
fill: "none",
|
|
4017
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4018
|
+
children: [
|
|
4019
|
+
/* @__PURE__ */ jsx26(
|
|
4020
|
+
"path",
|
|
4021
|
+
{
|
|
4022
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
4023
|
+
fill: color
|
|
4024
|
+
}
|
|
4025
|
+
),
|
|
4026
|
+
/* @__PURE__ */ jsx26(
|
|
4027
|
+
"path",
|
|
4028
|
+
{
|
|
4029
|
+
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
4030
|
+
fill: color
|
|
4031
|
+
}
|
|
4032
|
+
),
|
|
4033
|
+
/* @__PURE__ */ jsx26(
|
|
4034
|
+
"path",
|
|
4035
|
+
{
|
|
4036
|
+
d: "M14.584 19.3652V20.5312H10.0547V19.3652H14.584ZM10.4707 12V20.5312H9V12H10.4707ZM13.9922 15.5625V16.7109H10.0547V15.5625H13.9922ZM14.5547 12V13.1719H10.0547V12H14.5547Z",
|
|
4037
|
+
fill: color
|
|
4038
|
+
}
|
|
4039
|
+
)
|
|
4040
|
+
]
|
|
4041
|
+
}
|
|
4042
|
+
);
|
|
4043
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
4044
|
+
"svg",
|
|
4045
|
+
{
|
|
4046
|
+
width: size,
|
|
4047
|
+
height: size,
|
|
4048
|
+
viewBox: "0 0 32 32",
|
|
4049
|
+
fill: "none",
|
|
4050
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4051
|
+
children: [
|
|
4052
|
+
/* @__PURE__ */ jsx26(
|
|
4053
|
+
"path",
|
|
4054
|
+
{
|
|
4055
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
4056
|
+
fill: color
|
|
4057
|
+
}
|
|
4058
|
+
),
|
|
4059
|
+
/* @__PURE__ */ jsx26(
|
|
4060
|
+
"path",
|
|
4061
|
+
{
|
|
4062
|
+
d: "M21.1426 17.8027C21.1426 17.627 21.1152 17.4707 21.0605 17.334C21.0098 17.1973 20.918 17.0723 20.7852 16.959C20.6523 16.8457 20.4648 16.7363 20.2227 16.6309C19.9844 16.5215 19.6797 16.4102 19.3086 16.2969C18.9023 16.1719 18.5273 16.0332 18.1836 15.8809C17.8438 15.7246 17.5469 15.5449 17.293 15.3418C17.0391 15.1348 16.8418 14.8984 16.7012 14.6328C16.5605 14.3633 16.4902 14.0527 16.4902 13.7012C16.4902 13.3535 16.5625 13.0371 16.707 12.752C16.8555 12.4668 17.0645 12.2207 17.334 12.0137C17.6074 11.8027 17.9297 11.6406 18.3008 11.5273C18.6719 11.4102 19.082 11.3516 19.5312 11.3516C20.1641 11.3516 20.709 11.4688 21.166 11.7031C21.627 11.9375 21.9805 12.252 22.2266 12.6465C22.4766 13.041 22.6016 13.4766 22.6016 13.9531H21.1426C21.1426 13.6719 21.082 13.4238 20.9609 13.209C20.8438 12.9902 20.6641 12.8184 20.4219 12.6934C20.1836 12.5684 19.8809 12.5059 19.5137 12.5059C19.166 12.5059 18.877 12.5586 18.6465 12.6641C18.416 12.7695 18.2441 12.9121 18.1309 13.0918C18.0176 13.2715 17.9609 13.4746 17.9609 13.7012C17.9609 13.8613 17.998 14.0078 18.0723 14.1406C18.1465 14.2695 18.2598 14.3906 18.4121 14.5039C18.5645 14.6133 18.7559 14.7168 18.9863 14.8145C19.2168 14.9121 19.4883 15.0059 19.8008 15.0957C20.2734 15.2363 20.6855 15.3926 21.0371 15.5645C21.3887 15.7324 21.6816 15.9238 21.916 16.1387C22.1504 16.3535 22.3262 16.5977 22.4434 16.8711C22.5605 17.1406 22.6191 17.4473 22.6191 17.791C22.6191 18.1504 22.5469 18.4746 22.4023 18.7637C22.2578 19.0488 22.0508 19.293 21.7812 19.4961C21.5156 19.6953 21.1953 19.8496 20.8203 19.959C20.4492 20.0645 20.0352 20.1172 19.5781 20.1172C19.168 20.1172 18.7637 20.0625 18.3652 19.9531C17.9707 19.8438 17.6113 19.6777 17.2871 19.4551C16.9629 19.2285 16.7051 18.9473 16.5137 18.6113C16.3223 18.2715 16.2266 17.875 16.2266 17.4219H17.6973C17.6973 17.6992 17.7441 17.9355 17.8379 18.1309C17.9355 18.3262 18.0703 18.4863 18.2422 18.6113C18.4141 18.7324 18.6133 18.8223 18.8398 18.8809C19.0703 18.9395 19.3164 18.9688 19.5781 18.9688C19.9219 18.9688 20.209 18.9199 20.4395 18.8223C20.6738 18.7246 20.8496 18.5879 20.9668 18.4121C21.084 18.2363 21.1426 18.0332 21.1426 17.8027Z",
|
|
4063
|
+
fill: color
|
|
4064
|
+
}
|
|
4065
|
+
),
|
|
4066
|
+
/* @__PURE__ */ jsx26(
|
|
4067
|
+
"path",
|
|
4068
|
+
{
|
|
4069
|
+
d: "M15.4512 18.834V20H10.9219V18.834H15.4512ZM11.3379 11.4688V20H9.86719V11.4688H11.3379ZM14.8594 15.0312V16.1797H10.9219V15.0312H14.8594ZM15.4219 11.4688V12.6406H10.9219V11.4688H15.4219Z",
|
|
4070
|
+
fill: color
|
|
4071
|
+
}
|
|
4072
|
+
)
|
|
4073
|
+
]
|
|
4074
|
+
}
|
|
4075
|
+
);
|
|
4076
|
+
var IconRender = ({
|
|
4077
|
+
iconName,
|
|
4078
|
+
color = "#000000",
|
|
4079
|
+
size = 24,
|
|
4080
|
+
weight = "regular"
|
|
4081
|
+
}) => {
|
|
4082
|
+
switch (iconName) {
|
|
4083
|
+
case "Chat_PT":
|
|
4084
|
+
return /* @__PURE__ */ jsx26(ChatPT, { size, color });
|
|
4085
|
+
case "Chat_EN":
|
|
4086
|
+
return /* @__PURE__ */ jsx26(ChatEN, { size, color });
|
|
4087
|
+
case "Chat_ES":
|
|
4088
|
+
return /* @__PURE__ */ jsx26(ChatES, { size, color });
|
|
4089
|
+
default: {
|
|
4090
|
+
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
4091
|
+
return /* @__PURE__ */ jsx26(IconComponent, { size, color, weight });
|
|
4092
|
+
}
|
|
4093
|
+
}
|
|
4094
|
+
};
|
|
4095
|
+
var IconRender_default = IconRender;
|
|
4096
|
+
|
|
4097
|
+
// src/components/Card/Card.tsx
|
|
4098
|
+
import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3974
4099
|
var CARD_BASE_CLASSES = {
|
|
3975
4100
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
3976
4101
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -4020,7 +4145,7 @@ var CardBase = forwardRef12(
|
|
|
4020
4145
|
cursorClasses,
|
|
4021
4146
|
className
|
|
4022
4147
|
].filter(Boolean).join(" ");
|
|
4023
|
-
return /* @__PURE__ */
|
|
4148
|
+
return /* @__PURE__ */ jsx27("div", { ref, className: combinedClasses, ...props, children });
|
|
4024
4149
|
}
|
|
4025
4150
|
);
|
|
4026
4151
|
var ACTION_CARD_CLASSES = {
|
|
@@ -4063,7 +4188,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4063
4188
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
4064
4189
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
4065
4190
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
4066
|
-
return /* @__PURE__ */
|
|
4191
|
+
return /* @__PURE__ */ jsxs21(
|
|
4067
4192
|
"div",
|
|
4068
4193
|
{
|
|
4069
4194
|
ref,
|
|
@@ -4073,7 +4198,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4073
4198
|
),
|
|
4074
4199
|
...props,
|
|
4075
4200
|
children: [
|
|
4076
|
-
/* @__PURE__ */
|
|
4201
|
+
/* @__PURE__ */ jsxs21(
|
|
4077
4202
|
"div",
|
|
4078
4203
|
{
|
|
4079
4204
|
className: cn(
|
|
@@ -4082,7 +4207,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4082
4207
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
4083
4208
|
),
|
|
4084
4209
|
children: [
|
|
4085
|
-
/* @__PURE__ */
|
|
4210
|
+
/* @__PURE__ */ jsx27(
|
|
4086
4211
|
"span",
|
|
4087
4212
|
{
|
|
4088
4213
|
className: cn(
|
|
@@ -4092,7 +4217,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4092
4217
|
children: icon
|
|
4093
4218
|
}
|
|
4094
4219
|
),
|
|
4095
|
-
/* @__PURE__ */
|
|
4220
|
+
/* @__PURE__ */ jsx27(
|
|
4096
4221
|
Text_default,
|
|
4097
4222
|
{
|
|
4098
4223
|
size: "2xs",
|
|
@@ -4101,7 +4226,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4101
4226
|
children: title
|
|
4102
4227
|
}
|
|
4103
4228
|
),
|
|
4104
|
-
/* @__PURE__ */
|
|
4229
|
+
/* @__PURE__ */ jsx27(
|
|
4105
4230
|
"p",
|
|
4106
4231
|
{
|
|
4107
4232
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -4111,8 +4236,8 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4111
4236
|
]
|
|
4112
4237
|
}
|
|
4113
4238
|
),
|
|
4114
|
-
extended && /* @__PURE__ */
|
|
4115
|
-
/* @__PURE__ */
|
|
4239
|
+
extended && /* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
4240
|
+
/* @__PURE__ */ jsx27(
|
|
4116
4241
|
"p",
|
|
4117
4242
|
{
|
|
4118
4243
|
className: cn(
|
|
@@ -4122,7 +4247,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4122
4247
|
children: header
|
|
4123
4248
|
}
|
|
4124
4249
|
),
|
|
4125
|
-
/* @__PURE__ */
|
|
4250
|
+
/* @__PURE__ */ jsx27(Badge_default, { size: "large", action: "info", children: description })
|
|
4126
4251
|
] })
|
|
4127
4252
|
]
|
|
4128
4253
|
}
|
|
@@ -4141,7 +4266,7 @@ var CardQuestions = forwardRef12(
|
|
|
4141
4266
|
const isDone = state === "done";
|
|
4142
4267
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
4143
4268
|
const buttonLabel = isDone ? "Ver Quest\xE3o" : "Responder";
|
|
4144
|
-
return /* @__PURE__ */
|
|
4269
|
+
return /* @__PURE__ */ jsxs21(
|
|
4145
4270
|
CardBase,
|
|
4146
4271
|
{
|
|
4147
4272
|
ref,
|
|
@@ -4151,10 +4276,10 @@ var CardQuestions = forwardRef12(
|
|
|
4151
4276
|
className: cn("justify-between gap-4", className),
|
|
4152
4277
|
...props,
|
|
4153
4278
|
children: [
|
|
4154
|
-
/* @__PURE__ */
|
|
4155
|
-
/* @__PURE__ */
|
|
4156
|
-
/* @__PURE__ */
|
|
4157
|
-
/* @__PURE__ */
|
|
4279
|
+
/* @__PURE__ */ jsxs21("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
4280
|
+
/* @__PURE__ */ jsx27("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
4281
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4282
|
+
/* @__PURE__ */ jsx27(
|
|
4158
4283
|
Badge_default,
|
|
4159
4284
|
{
|
|
4160
4285
|
size: "medium",
|
|
@@ -4163,13 +4288,13 @@ var CardQuestions = forwardRef12(
|
|
|
4163
4288
|
children: stateLabel
|
|
4164
4289
|
}
|
|
4165
4290
|
),
|
|
4166
|
-
/* @__PURE__ */
|
|
4291
|
+
/* @__PURE__ */ jsxs21("span", { className: "flex flex-row items-center gap-1 text-text-700 text-xs", children: [
|
|
4167
4292
|
isDone ? "Nota" : "Sem nota",
|
|
4168
|
-
isDone && /* @__PURE__ */
|
|
4293
|
+
isDone && /* @__PURE__ */ jsx27(Badge_default, { size: "medium", action: "success", children: "00" })
|
|
4169
4294
|
] })
|
|
4170
4295
|
] })
|
|
4171
4296
|
] }),
|
|
4172
|
-
/* @__PURE__ */
|
|
4297
|
+
/* @__PURE__ */ jsx27("span", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx27(
|
|
4173
4298
|
Button_default,
|
|
4174
4299
|
{
|
|
4175
4300
|
size: "extra-small",
|
|
@@ -4200,19 +4325,19 @@ var CardProgress = forwardRef12(
|
|
|
4200
4325
|
}, ref) => {
|
|
4201
4326
|
const isHorizontal = direction === "horizontal";
|
|
4202
4327
|
const contentComponent = {
|
|
4203
|
-
horizontal: /* @__PURE__ */
|
|
4204
|
-
showDates && /* @__PURE__ */
|
|
4205
|
-
initialDate && /* @__PURE__ */
|
|
4206
|
-
/* @__PURE__ */
|
|
4207
|
-
/* @__PURE__ */
|
|
4328
|
+
horizontal: /* @__PURE__ */ jsxs21(Fragment4, { children: [
|
|
4329
|
+
showDates && /* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4330
|
+
initialDate && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
4331
|
+
/* @__PURE__ */ jsx27("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
4332
|
+
/* @__PURE__ */ jsx27("p", { className: "text-text-600", children: initialDate })
|
|
4208
4333
|
] }),
|
|
4209
|
-
endDate && /* @__PURE__ */
|
|
4210
|
-
/* @__PURE__ */
|
|
4211
|
-
/* @__PURE__ */
|
|
4334
|
+
endDate && /* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
4335
|
+
/* @__PURE__ */ jsx27("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
4336
|
+
/* @__PURE__ */ jsx27("p", { className: "text-text-600", children: endDate })
|
|
4212
4337
|
] })
|
|
4213
4338
|
] }),
|
|
4214
|
-
/* @__PURE__ */
|
|
4215
|
-
/* @__PURE__ */
|
|
4339
|
+
/* @__PURE__ */ jsxs21("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
4340
|
+
/* @__PURE__ */ jsx27(
|
|
4216
4341
|
ProgressBar_default,
|
|
4217
4342
|
{
|
|
4218
4343
|
size: "small",
|
|
@@ -4221,7 +4346,7 @@ var CardProgress = forwardRef12(
|
|
|
4221
4346
|
"data-testid": "progress-bar"
|
|
4222
4347
|
}
|
|
4223
4348
|
),
|
|
4224
|
-
/* @__PURE__ */
|
|
4349
|
+
/* @__PURE__ */ jsxs21(
|
|
4225
4350
|
Text_default,
|
|
4226
4351
|
{
|
|
4227
4352
|
size: "xs",
|
|
@@ -4237,9 +4362,9 @@ var CardProgress = forwardRef12(
|
|
|
4237
4362
|
)
|
|
4238
4363
|
] })
|
|
4239
4364
|
] }),
|
|
4240
|
-
vertical: /* @__PURE__ */
|
|
4365
|
+
vertical: /* @__PURE__ */ jsx27("p", { className: "text-sm text-text-800", children: subhead })
|
|
4241
4366
|
};
|
|
4242
|
-
return /* @__PURE__ */
|
|
4367
|
+
return /* @__PURE__ */ jsxs21(
|
|
4243
4368
|
CardBase,
|
|
4244
4369
|
{
|
|
4245
4370
|
ref,
|
|
@@ -4250,7 +4375,7 @@ var CardProgress = forwardRef12(
|
|
|
4250
4375
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
4251
4376
|
...props,
|
|
4252
4377
|
children: [
|
|
4253
|
-
/* @__PURE__ */
|
|
4378
|
+
/* @__PURE__ */ jsx27(
|
|
4254
4379
|
"div",
|
|
4255
4380
|
{
|
|
4256
4381
|
className: cn(
|
|
@@ -4263,7 +4388,7 @@ var CardProgress = forwardRef12(
|
|
|
4263
4388
|
children: icon
|
|
4264
4389
|
}
|
|
4265
4390
|
),
|
|
4266
|
-
/* @__PURE__ */
|
|
4391
|
+
/* @__PURE__ */ jsxs21(
|
|
4267
4392
|
"div",
|
|
4268
4393
|
{
|
|
4269
4394
|
className: cn(
|
|
@@ -4271,7 +4396,7 @@ var CardProgress = forwardRef12(
|
|
|
4271
4396
|
!isHorizontal && "gap-4"
|
|
4272
4397
|
),
|
|
4273
4398
|
children: [
|
|
4274
|
-
/* @__PURE__ */
|
|
4399
|
+
/* @__PURE__ */ jsx27(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
4275
4400
|
contentComponent[direction]
|
|
4276
4401
|
]
|
|
4277
4402
|
}
|
|
@@ -4291,7 +4416,7 @@ var CardTopic = forwardRef12(
|
|
|
4291
4416
|
className = "",
|
|
4292
4417
|
...props
|
|
4293
4418
|
}, ref) => {
|
|
4294
|
-
return /* @__PURE__ */
|
|
4419
|
+
return /* @__PURE__ */ jsxs21(
|
|
4295
4420
|
CardBase,
|
|
4296
4421
|
{
|
|
4297
4422
|
ref,
|
|
@@ -4302,13 +4427,13 @@ var CardTopic = forwardRef12(
|
|
|
4302
4427
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
4303
4428
|
...props,
|
|
4304
4429
|
children: [
|
|
4305
|
-
subHead && /* @__PURE__ */
|
|
4306
|
-
/* @__PURE__ */
|
|
4307
|
-
index < subHead.length - 1 && /* @__PURE__ */
|
|
4430
|
+
subHead && /* @__PURE__ */ jsx27("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ jsxs21(Fragment3, { children: [
|
|
4431
|
+
/* @__PURE__ */ jsx27("p", { children: text }),
|
|
4432
|
+
index < subHead.length - 1 && /* @__PURE__ */ jsx27("p", { children: "\u2022" })
|
|
4308
4433
|
] }, `${text} - ${index}`)) }),
|
|
4309
|
-
/* @__PURE__ */
|
|
4310
|
-
/* @__PURE__ */
|
|
4311
|
-
/* @__PURE__ */
|
|
4434
|
+
/* @__PURE__ */ jsx27("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
4435
|
+
/* @__PURE__ */ jsxs21("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
4436
|
+
/* @__PURE__ */ jsx27(
|
|
4312
4437
|
ProgressBar_default,
|
|
4313
4438
|
{
|
|
4314
4439
|
size: "small",
|
|
@@ -4317,7 +4442,7 @@ var CardTopic = forwardRef12(
|
|
|
4317
4442
|
"data-testid": "progress-bar"
|
|
4318
4443
|
}
|
|
4319
4444
|
),
|
|
4320
|
-
showPercentage && /* @__PURE__ */
|
|
4445
|
+
showPercentage && /* @__PURE__ */ jsxs21(
|
|
4321
4446
|
Text_default,
|
|
4322
4447
|
{
|
|
4323
4448
|
size: "xs",
|
|
@@ -4351,7 +4476,7 @@ var CardPerformance = forwardRef12(
|
|
|
4351
4476
|
...props
|
|
4352
4477
|
}, ref) => {
|
|
4353
4478
|
const hasProgress = progress !== void 0;
|
|
4354
|
-
return /* @__PURE__ */
|
|
4479
|
+
return /* @__PURE__ */ jsxs21(
|
|
4355
4480
|
CardBase,
|
|
4356
4481
|
{
|
|
4357
4482
|
ref,
|
|
@@ -4365,10 +4490,10 @@ var CardPerformance = forwardRef12(
|
|
|
4365
4490
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
4366
4491
|
...props,
|
|
4367
4492
|
children: [
|
|
4368
|
-
/* @__PURE__ */
|
|
4369
|
-
/* @__PURE__ */
|
|
4370
|
-
/* @__PURE__ */
|
|
4371
|
-
actionVariant === "button" && /* @__PURE__ */
|
|
4493
|
+
/* @__PURE__ */ jsxs21("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
4494
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
4495
|
+
/* @__PURE__ */ jsx27("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4496
|
+
actionVariant === "button" && /* @__PURE__ */ jsx27(
|
|
4372
4497
|
Button_default,
|
|
4373
4498
|
{
|
|
4374
4499
|
variant: "outline",
|
|
@@ -4379,16 +4504,16 @@ var CardPerformance = forwardRef12(
|
|
|
4379
4504
|
}
|
|
4380
4505
|
)
|
|
4381
4506
|
] }),
|
|
4382
|
-
/* @__PURE__ */
|
|
4507
|
+
/* @__PURE__ */ jsx27("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ jsx27(
|
|
4383
4508
|
ProgressBar_default,
|
|
4384
4509
|
{
|
|
4385
4510
|
value: progress,
|
|
4386
4511
|
label: `${progress}% ${labelProgress}`,
|
|
4387
4512
|
variant: progressVariant
|
|
4388
4513
|
}
|
|
4389
|
-
) : /* @__PURE__ */
|
|
4514
|
+
) : /* @__PURE__ */ jsx27("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
4390
4515
|
] }),
|
|
4391
|
-
actionVariant == "caret" && /* @__PURE__ */
|
|
4516
|
+
actionVariant == "caret" && /* @__PURE__ */ jsx27(
|
|
4392
4517
|
CaretRight,
|
|
4393
4518
|
{
|
|
4394
4519
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -4412,7 +4537,7 @@ var CardResults = forwardRef12(
|
|
|
4412
4537
|
...props
|
|
4413
4538
|
}, ref) => {
|
|
4414
4539
|
const isRow = direction == "row";
|
|
4415
|
-
return /* @__PURE__ */
|
|
4540
|
+
return /* @__PURE__ */ jsxs21(
|
|
4416
4541
|
CardBase,
|
|
4417
4542
|
{
|
|
4418
4543
|
ref,
|
|
@@ -4422,7 +4547,7 @@ var CardResults = forwardRef12(
|
|
|
4422
4547
|
className: cn("items-center cursor-pointer pr-4", className),
|
|
4423
4548
|
...props,
|
|
4424
4549
|
children: [
|
|
4425
|
-
/* @__PURE__ */
|
|
4550
|
+
/* @__PURE__ */ jsx27(
|
|
4426
4551
|
"div",
|
|
4427
4552
|
{
|
|
4428
4553
|
className: cn(
|
|
@@ -4431,10 +4556,10 @@ var CardResults = forwardRef12(
|
|
|
4431
4556
|
style: {
|
|
4432
4557
|
backgroundColor: color
|
|
4433
4558
|
},
|
|
4434
|
-
children: icon
|
|
4559
|
+
children: /* @__PURE__ */ jsx27(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
4435
4560
|
}
|
|
4436
4561
|
),
|
|
4437
|
-
/* @__PURE__ */
|
|
4562
|
+
/* @__PURE__ */ jsxs21(
|
|
4438
4563
|
"div",
|
|
4439
4564
|
{
|
|
4440
4565
|
className: cn(
|
|
@@ -4442,28 +4567,28 @@ var CardResults = forwardRef12(
|
|
|
4442
4567
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
4443
4568
|
),
|
|
4444
4569
|
children: [
|
|
4445
|
-
/* @__PURE__ */
|
|
4446
|
-
/* @__PURE__ */
|
|
4447
|
-
/* @__PURE__ */
|
|
4570
|
+
/* @__PURE__ */ jsx27("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4571
|
+
/* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
4572
|
+
/* @__PURE__ */ jsxs21(
|
|
4448
4573
|
Badge_default,
|
|
4449
4574
|
{
|
|
4450
4575
|
action: "success",
|
|
4451
4576
|
variant: "solid",
|
|
4452
4577
|
size: "large",
|
|
4453
|
-
iconLeft: /* @__PURE__ */
|
|
4578
|
+
iconLeft: /* @__PURE__ */ jsx27(CheckCircle3, {}),
|
|
4454
4579
|
children: [
|
|
4455
4580
|
correct_answers,
|
|
4456
4581
|
" Corretas"
|
|
4457
4582
|
]
|
|
4458
4583
|
}
|
|
4459
4584
|
),
|
|
4460
|
-
/* @__PURE__ */
|
|
4585
|
+
/* @__PURE__ */ jsxs21(
|
|
4461
4586
|
Badge_default,
|
|
4462
4587
|
{
|
|
4463
4588
|
action: "error",
|
|
4464
4589
|
variant: "solid",
|
|
4465
4590
|
size: "large",
|
|
4466
|
-
iconLeft: /* @__PURE__ */
|
|
4591
|
+
iconLeft: /* @__PURE__ */ jsx27(XCircle2, {}),
|
|
4467
4592
|
children: [
|
|
4468
4593
|
incorrect_answers,
|
|
4469
4594
|
" Incorretas"
|
|
@@ -4474,7 +4599,7 @@ var CardResults = forwardRef12(
|
|
|
4474
4599
|
]
|
|
4475
4600
|
}
|
|
4476
4601
|
),
|
|
4477
|
-
/* @__PURE__ */
|
|
4602
|
+
/* @__PURE__ */ jsx27(CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
4478
4603
|
]
|
|
4479
4604
|
}
|
|
4480
4605
|
);
|
|
@@ -4494,7 +4619,7 @@ var CardStatus = forwardRef12(
|
|
|
4494
4619
|
return "Em branco";
|
|
4495
4620
|
}
|
|
4496
4621
|
};
|
|
4497
|
-
return /* @__PURE__ */
|
|
4622
|
+
return /* @__PURE__ */ jsx27(
|
|
4498
4623
|
CardBase,
|
|
4499
4624
|
{
|
|
4500
4625
|
ref,
|
|
@@ -4503,22 +4628,22 @@ var CardStatus = forwardRef12(
|
|
|
4503
4628
|
minHeight: "medium",
|
|
4504
4629
|
className: cn("items-center cursor-pointer", className),
|
|
4505
4630
|
...props,
|
|
4506
|
-
children: /* @__PURE__ */
|
|
4507
|
-
/* @__PURE__ */
|
|
4508
|
-
/* @__PURE__ */
|
|
4509
|
-
status && /* @__PURE__ */
|
|
4631
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
4632
|
+
/* @__PURE__ */ jsx27("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4633
|
+
/* @__PURE__ */ jsxs21("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
4634
|
+
status && /* @__PURE__ */ jsx27(
|
|
4510
4635
|
Badge_default,
|
|
4511
4636
|
{
|
|
4512
4637
|
action: status == "correct" ? "success" : "error",
|
|
4513
4638
|
variant: "solid",
|
|
4514
4639
|
size: "medium",
|
|
4515
|
-
iconLeft: status == "correct" ? /* @__PURE__ */
|
|
4640
|
+
iconLeft: status == "correct" ? /* @__PURE__ */ jsx27(CheckCircle3, {}) : /* @__PURE__ */ jsx27(XCircle2, {}),
|
|
4516
4641
|
children: getLabelBadge(status)
|
|
4517
4642
|
}
|
|
4518
4643
|
),
|
|
4519
|
-
label && /* @__PURE__ */
|
|
4644
|
+
label && /* @__PURE__ */ jsx27("p", { className: "text-sm text-text-800", children: label })
|
|
4520
4645
|
] }),
|
|
4521
|
-
/* @__PURE__ */
|
|
4646
|
+
/* @__PURE__ */ jsx27(CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
4522
4647
|
] })
|
|
4523
4648
|
}
|
|
4524
4649
|
);
|
|
@@ -4526,7 +4651,7 @@ var CardStatus = forwardRef12(
|
|
|
4526
4651
|
);
|
|
4527
4652
|
var CardSettings = forwardRef12(
|
|
4528
4653
|
({ header, className, icon, ...props }, ref) => {
|
|
4529
|
-
return /* @__PURE__ */
|
|
4654
|
+
return /* @__PURE__ */ jsxs21(
|
|
4530
4655
|
CardBase,
|
|
4531
4656
|
{
|
|
4532
4657
|
ref,
|
|
@@ -4539,9 +4664,9 @@ var CardSettings = forwardRef12(
|
|
|
4539
4664
|
),
|
|
4540
4665
|
...props,
|
|
4541
4666
|
children: [
|
|
4542
|
-
/* @__PURE__ */
|
|
4543
|
-
/* @__PURE__ */
|
|
4544
|
-
/* @__PURE__ */
|
|
4667
|
+
/* @__PURE__ */ jsx27("span", { className: "[&>svg]:size-6", children: icon }),
|
|
4668
|
+
/* @__PURE__ */ jsx27("p", { className: "w-full text-sm truncate", children: header }),
|
|
4669
|
+
/* @__PURE__ */ jsx27(CaretRight, { size: 24, className: "cursor-pointer" })
|
|
4545
4670
|
]
|
|
4546
4671
|
}
|
|
4547
4672
|
);
|
|
@@ -4549,7 +4674,7 @@ var CardSettings = forwardRef12(
|
|
|
4549
4674
|
);
|
|
4550
4675
|
var CardSupport = forwardRef12(
|
|
4551
4676
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
4552
|
-
return /* @__PURE__ */
|
|
4677
|
+
return /* @__PURE__ */ jsxs21(
|
|
4553
4678
|
CardBase,
|
|
4554
4679
|
{
|
|
4555
4680
|
ref,
|
|
@@ -4562,7 +4687,7 @@ var CardSupport = forwardRef12(
|
|
|
4562
4687
|
),
|
|
4563
4688
|
...props,
|
|
4564
4689
|
children: [
|
|
4565
|
-
/* @__PURE__ */
|
|
4690
|
+
/* @__PURE__ */ jsxs21(
|
|
4566
4691
|
"div",
|
|
4567
4692
|
{
|
|
4568
4693
|
className: cn(
|
|
@@ -4570,12 +4695,12 @@ var CardSupport = forwardRef12(
|
|
|
4570
4695
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
4571
4696
|
),
|
|
4572
4697
|
children: [
|
|
4573
|
-
/* @__PURE__ */
|
|
4574
|
-
/* @__PURE__ */
|
|
4698
|
+
/* @__PURE__ */ jsx27("span", { className: "w-full min-w-0", children: /* @__PURE__ */ jsx27("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
4699
|
+
/* @__PURE__ */ jsx27("span", { className: "flex flex-row gap-1", children })
|
|
4575
4700
|
]
|
|
4576
4701
|
}
|
|
4577
4702
|
),
|
|
4578
|
-
/* @__PURE__ */
|
|
4703
|
+
/* @__PURE__ */ jsx27(CaretRight, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
4579
4704
|
]
|
|
4580
4705
|
}
|
|
4581
4706
|
);
|
|
@@ -4595,7 +4720,7 @@ var CardForum = forwardRef12(
|
|
|
4595
4720
|
hour,
|
|
4596
4721
|
...props
|
|
4597
4722
|
}, ref) => {
|
|
4598
|
-
return /* @__PURE__ */
|
|
4723
|
+
return /* @__PURE__ */ jsxs21(
|
|
4599
4724
|
CardBase,
|
|
4600
4725
|
{
|
|
4601
4726
|
ref,
|
|
@@ -4606,7 +4731,7 @@ var CardForum = forwardRef12(
|
|
|
4606
4731
|
className: cn("w-auto h-auto gap-3", className),
|
|
4607
4732
|
...props,
|
|
4608
4733
|
children: [
|
|
4609
|
-
/* @__PURE__ */
|
|
4734
|
+
/* @__PURE__ */ jsx27(
|
|
4610
4735
|
"button",
|
|
4611
4736
|
{
|
|
4612
4737
|
type: "button",
|
|
@@ -4615,18 +4740,18 @@ var CardForum = forwardRef12(
|
|
|
4615
4740
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
4616
4741
|
}
|
|
4617
4742
|
),
|
|
4618
|
-
/* @__PURE__ */
|
|
4619
|
-
/* @__PURE__ */
|
|
4620
|
-
/* @__PURE__ */
|
|
4621
|
-
/* @__PURE__ */
|
|
4743
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
4744
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
4745
|
+
/* @__PURE__ */ jsx27("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
4746
|
+
/* @__PURE__ */ jsxs21("p", { className: "text-xs text-text-600", children: [
|
|
4622
4747
|
"\u2022 ",
|
|
4623
4748
|
date,
|
|
4624
4749
|
" \u2022 ",
|
|
4625
4750
|
hour
|
|
4626
4751
|
] })
|
|
4627
4752
|
] }),
|
|
4628
|
-
/* @__PURE__ */
|
|
4629
|
-
/* @__PURE__ */
|
|
4753
|
+
/* @__PURE__ */ jsx27("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
4754
|
+
/* @__PURE__ */ jsxs21(
|
|
4630
4755
|
"button",
|
|
4631
4756
|
{
|
|
4632
4757
|
type: "button",
|
|
@@ -4634,8 +4759,8 @@ var CardForum = forwardRef12(
|
|
|
4634
4759
|
onClick: () => onClickComments?.(valueComments),
|
|
4635
4760
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
4636
4761
|
children: [
|
|
4637
|
-
/* @__PURE__ */
|
|
4638
|
-
/* @__PURE__ */
|
|
4762
|
+
/* @__PURE__ */ jsx27(ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
4763
|
+
/* @__PURE__ */ jsxs21("p", { className: "text-xs", children: [
|
|
4639
4764
|
comments,
|
|
4640
4765
|
" respostas"
|
|
4641
4766
|
] })
|
|
@@ -4734,14 +4859,14 @@ var CardAudio = forwardRef12(
|
|
|
4734
4859
|
};
|
|
4735
4860
|
const getVolumeIcon = () => {
|
|
4736
4861
|
if (volume === 0) {
|
|
4737
|
-
return /* @__PURE__ */
|
|
4862
|
+
return /* @__PURE__ */ jsx27(SpeakerSimpleX, {});
|
|
4738
4863
|
}
|
|
4739
4864
|
if (volume < 0.5) {
|
|
4740
|
-
return /* @__PURE__ */
|
|
4865
|
+
return /* @__PURE__ */ jsx27(SpeakerLow, {});
|
|
4741
4866
|
}
|
|
4742
|
-
return /* @__PURE__ */
|
|
4867
|
+
return /* @__PURE__ */ jsx27(SpeakerHigh, {});
|
|
4743
4868
|
};
|
|
4744
|
-
return /* @__PURE__ */
|
|
4869
|
+
return /* @__PURE__ */ jsxs21(
|
|
4745
4870
|
CardBase,
|
|
4746
4871
|
{
|
|
4747
4872
|
ref,
|
|
@@ -4751,7 +4876,7 @@ var CardAudio = forwardRef12(
|
|
|
4751
4876
|
className: cn("w-auto h-14 items-center gap-2", className),
|
|
4752
4877
|
...props,
|
|
4753
4878
|
children: [
|
|
4754
|
-
/* @__PURE__ */
|
|
4879
|
+
/* @__PURE__ */ jsx27(
|
|
4755
4880
|
"audio",
|
|
4756
4881
|
{
|
|
4757
4882
|
ref: audioRef,
|
|
@@ -4763,7 +4888,7 @@ var CardAudio = forwardRef12(
|
|
|
4763
4888
|
onEnded: handleEnded,
|
|
4764
4889
|
"data-testid": "audio-element",
|
|
4765
4890
|
"aria-label": title,
|
|
4766
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */
|
|
4891
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ jsx27(
|
|
4767
4892
|
"track",
|
|
4768
4893
|
{
|
|
4769
4894
|
kind: track.kind,
|
|
@@ -4773,7 +4898,7 @@ var CardAudio = forwardRef12(
|
|
|
4773
4898
|
default: track.default
|
|
4774
4899
|
},
|
|
4775
4900
|
track.src
|
|
4776
|
-
)) : /* @__PURE__ */
|
|
4901
|
+
)) : /* @__PURE__ */ jsx27(
|
|
4777
4902
|
"track",
|
|
4778
4903
|
{
|
|
4779
4904
|
kind: "captions",
|
|
@@ -4784,7 +4909,7 @@ var CardAudio = forwardRef12(
|
|
|
4784
4909
|
)
|
|
4785
4910
|
}
|
|
4786
4911
|
),
|
|
4787
|
-
/* @__PURE__ */
|
|
4912
|
+
/* @__PURE__ */ jsx27(
|
|
4788
4913
|
"button",
|
|
4789
4914
|
{
|
|
4790
4915
|
type: "button",
|
|
@@ -4792,14 +4917,14 @@ var CardAudio = forwardRef12(
|
|
|
4792
4917
|
disabled: !src,
|
|
4793
4918
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
4794
4919
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
4795
|
-
children: isPlaying ? /* @__PURE__ */
|
|
4796
|
-
/* @__PURE__ */
|
|
4797
|
-
/* @__PURE__ */
|
|
4798
|
-
] }) }) : /* @__PURE__ */
|
|
4920
|
+
children: isPlaying ? /* @__PURE__ */ jsx27("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ jsxs21("div", { className: "flex gap-0.5", children: [
|
|
4921
|
+
/* @__PURE__ */ jsx27("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
4922
|
+
/* @__PURE__ */ jsx27("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
4923
|
+
] }) }) : /* @__PURE__ */ jsx27(Play, { size: 24 })
|
|
4799
4924
|
}
|
|
4800
4925
|
),
|
|
4801
|
-
/* @__PURE__ */
|
|
4802
|
-
/* @__PURE__ */
|
|
4926
|
+
/* @__PURE__ */ jsx27("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime2(currentTime) }),
|
|
4927
|
+
/* @__PURE__ */ jsx27("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ jsx27(
|
|
4803
4928
|
"button",
|
|
4804
4929
|
{
|
|
4805
4930
|
type: "button",
|
|
@@ -4814,7 +4939,7 @@ var CardAudio = forwardRef12(
|
|
|
4814
4939
|
}
|
|
4815
4940
|
},
|
|
4816
4941
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
4817
|
-
children: /* @__PURE__ */
|
|
4942
|
+
children: /* @__PURE__ */ jsx27(
|
|
4818
4943
|
"div",
|
|
4819
4944
|
{
|
|
4820
4945
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -4825,19 +4950,19 @@ var CardAudio = forwardRef12(
|
|
|
4825
4950
|
)
|
|
4826
4951
|
}
|
|
4827
4952
|
) }),
|
|
4828
|
-
/* @__PURE__ */
|
|
4829
|
-
/* @__PURE__ */
|
|
4830
|
-
/* @__PURE__ */
|
|
4953
|
+
/* @__PURE__ */ jsx27("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime2(duration) }),
|
|
4954
|
+
/* @__PURE__ */ jsxs21("div", { className: "relative", children: [
|
|
4955
|
+
/* @__PURE__ */ jsx27(
|
|
4831
4956
|
"button",
|
|
4832
4957
|
{
|
|
4833
4958
|
type: "button",
|
|
4834
4959
|
onClick: toggleVolumeControl,
|
|
4835
4960
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
4836
4961
|
"aria-label": "Controle de volume",
|
|
4837
|
-
children: /* @__PURE__ */
|
|
4962
|
+
children: /* @__PURE__ */ jsx27("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
4838
4963
|
}
|
|
4839
4964
|
),
|
|
4840
|
-
showVolumeControl && /* @__PURE__ */
|
|
4965
|
+
showVolumeControl && /* @__PURE__ */ jsx27(
|
|
4841
4966
|
"button",
|
|
4842
4967
|
{
|
|
4843
4968
|
type: "button",
|
|
@@ -4847,7 +4972,7 @@ var CardAudio = forwardRef12(
|
|
|
4847
4972
|
setShowVolumeControl(false);
|
|
4848
4973
|
}
|
|
4849
4974
|
},
|
|
4850
|
-
children: /* @__PURE__ */
|
|
4975
|
+
children: /* @__PURE__ */ jsx27(
|
|
4851
4976
|
"input",
|
|
4852
4977
|
{
|
|
4853
4978
|
type: "range",
|
|
@@ -4888,22 +5013,22 @@ var CardAudio = forwardRef12(
|
|
|
4888
5013
|
}
|
|
4889
5014
|
)
|
|
4890
5015
|
] }),
|
|
4891
|
-
/* @__PURE__ */
|
|
4892
|
-
/* @__PURE__ */
|
|
5016
|
+
/* @__PURE__ */ jsxs21("div", { className: "relative", children: [
|
|
5017
|
+
/* @__PURE__ */ jsx27(
|
|
4893
5018
|
"button",
|
|
4894
5019
|
{
|
|
4895
5020
|
type: "button",
|
|
4896
5021
|
onClick: toggleSpeedMenu,
|
|
4897
5022
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
4898
5023
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
4899
|
-
children: /* @__PURE__ */
|
|
5024
|
+
children: /* @__PURE__ */ jsx27(DotsThreeVertical, { size: 24 })
|
|
4900
5025
|
}
|
|
4901
5026
|
),
|
|
4902
|
-
showSpeedMenu && /* @__PURE__ */
|
|
5027
|
+
showSpeedMenu && /* @__PURE__ */ jsx27("div", { className: "absolute bottom-full right-0 mb-2 p-2 bg-background border border-border-100 rounded-lg shadow-lg min-w-24 z-10", children: /* @__PURE__ */ jsx27("div", { className: "flex flex-col gap-1", children: [
|
|
4903
5028
|
{ speed: 1, label: "1x" },
|
|
4904
5029
|
{ speed: 1.5, label: "1.5x" },
|
|
4905
5030
|
{ speed: 2, label: "2x" }
|
|
4906
|
-
].map(({ speed, label }) => /* @__PURE__ */
|
|
5031
|
+
].map(({ speed, label }) => /* @__PURE__ */ jsx27(
|
|
4907
5032
|
"button",
|
|
4908
5033
|
{
|
|
4909
5034
|
type: "button",
|
|
@@ -4931,7 +5056,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
4931
5056
|
var CardSimulado = forwardRef12(
|
|
4932
5057
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
4933
5058
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
4934
|
-
return /* @__PURE__ */
|
|
5059
|
+
return /* @__PURE__ */ jsx27(
|
|
4935
5060
|
CardBase,
|
|
4936
5061
|
{
|
|
4937
5062
|
ref,
|
|
@@ -4944,18 +5069,18 @@ var CardSimulado = forwardRef12(
|
|
|
4944
5069
|
className
|
|
4945
5070
|
),
|
|
4946
5071
|
...props,
|
|
4947
|
-
children: /* @__PURE__ */
|
|
4948
|
-
/* @__PURE__ */
|
|
4949
|
-
/* @__PURE__ */
|
|
4950
|
-
/* @__PURE__ */
|
|
4951
|
-
duration && /* @__PURE__ */
|
|
4952
|
-
/* @__PURE__ */
|
|
4953
|
-
/* @__PURE__ */
|
|
5072
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
5073
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
5074
|
+
/* @__PURE__ */ jsx27(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
5075
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
5076
|
+
duration && /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-1", children: [
|
|
5077
|
+
/* @__PURE__ */ jsx27(Clock, { size: 16, className: "flex-shrink-0" }),
|
|
5078
|
+
/* @__PURE__ */ jsx27(Text_default, { size: "sm", children: duration })
|
|
4954
5079
|
] }),
|
|
4955
|
-
/* @__PURE__ */
|
|
5080
|
+
/* @__PURE__ */ jsx27(Text_default, { size: "sm", className: "truncate", children: info })
|
|
4956
5081
|
] })
|
|
4957
5082
|
] }),
|
|
4958
|
-
/* @__PURE__ */
|
|
5083
|
+
/* @__PURE__ */ jsx27(
|
|
4959
5084
|
CaretRight,
|
|
4960
5085
|
{
|
|
4961
5086
|
size: 24,
|
|
@@ -5000,7 +5125,7 @@ var CardTest = forwardRef12(
|
|
|
5000
5125
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
5001
5126
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
5002
5127
|
if (isSelectable) {
|
|
5003
|
-
return /* @__PURE__ */
|
|
5128
|
+
return /* @__PURE__ */ jsx27(
|
|
5004
5129
|
"button",
|
|
5005
5130
|
{
|
|
5006
5131
|
ref,
|
|
@@ -5012,8 +5137,8 @@ var CardTest = forwardRef12(
|
|
|
5012
5137
|
onKeyDown: handleKeyDown,
|
|
5013
5138
|
"aria-pressed": selected,
|
|
5014
5139
|
...props,
|
|
5015
|
-
children: /* @__PURE__ */
|
|
5016
|
-
/* @__PURE__ */
|
|
5140
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
5141
|
+
/* @__PURE__ */ jsx27(
|
|
5017
5142
|
Text_default,
|
|
5018
5143
|
{
|
|
5019
5144
|
size: "md",
|
|
@@ -5022,10 +5147,10 @@ var CardTest = forwardRef12(
|
|
|
5022
5147
|
children: title
|
|
5023
5148
|
}
|
|
5024
5149
|
),
|
|
5025
|
-
/* @__PURE__ */
|
|
5026
|
-
duration && /* @__PURE__ */
|
|
5027
|
-
/* @__PURE__ */
|
|
5028
|
-
/* @__PURE__ */
|
|
5150
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
5151
|
+
duration && /* @__PURE__ */ jsxs21("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
5152
|
+
/* @__PURE__ */ jsx27(Clock, { size: 16, className: "text-text-700" }),
|
|
5153
|
+
/* @__PURE__ */ jsx27(
|
|
5029
5154
|
Text_default,
|
|
5030
5155
|
{
|
|
5031
5156
|
size: "sm",
|
|
@@ -5034,7 +5159,7 @@ var CardTest = forwardRef12(
|
|
|
5034
5159
|
}
|
|
5035
5160
|
)
|
|
5036
5161
|
] }),
|
|
5037
|
-
/* @__PURE__ */
|
|
5162
|
+
/* @__PURE__ */ jsx27(
|
|
5038
5163
|
Text_default,
|
|
5039
5164
|
{
|
|
5040
5165
|
size: "sm",
|
|
@@ -5047,14 +5172,14 @@ var CardTest = forwardRef12(
|
|
|
5047
5172
|
}
|
|
5048
5173
|
);
|
|
5049
5174
|
}
|
|
5050
|
-
return /* @__PURE__ */
|
|
5175
|
+
return /* @__PURE__ */ jsx27(
|
|
5051
5176
|
"div",
|
|
5052
5177
|
{
|
|
5053
5178
|
ref,
|
|
5054
5179
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
5055
5180
|
...props,
|
|
5056
|
-
children: /* @__PURE__ */
|
|
5057
|
-
/* @__PURE__ */
|
|
5181
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
5182
|
+
/* @__PURE__ */ jsx27(
|
|
5058
5183
|
Text_default,
|
|
5059
5184
|
{
|
|
5060
5185
|
size: "md",
|
|
@@ -5063,10 +5188,10 @@ var CardTest = forwardRef12(
|
|
|
5063
5188
|
children: title
|
|
5064
5189
|
}
|
|
5065
5190
|
),
|
|
5066
|
-
/* @__PURE__ */
|
|
5067
|
-
duration && /* @__PURE__ */
|
|
5068
|
-
/* @__PURE__ */
|
|
5069
|
-
/* @__PURE__ */
|
|
5191
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
5192
|
+
duration && /* @__PURE__ */ jsxs21("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
5193
|
+
/* @__PURE__ */ jsx27(Clock, { size: 16, className: "text-text-700" }),
|
|
5194
|
+
/* @__PURE__ */ jsx27(
|
|
5070
5195
|
Text_default,
|
|
5071
5196
|
{
|
|
5072
5197
|
size: "sm",
|
|
@@ -5075,7 +5200,7 @@ var CardTest = forwardRef12(
|
|
|
5075
5200
|
}
|
|
5076
5201
|
)
|
|
5077
5202
|
] }),
|
|
5078
|
-
/* @__PURE__ */
|
|
5203
|
+
/* @__PURE__ */ jsx27(
|
|
5079
5204
|
Text_default,
|
|
5080
5205
|
{
|
|
5081
5206
|
size: "sm",
|
|
@@ -5112,14 +5237,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
5112
5237
|
}
|
|
5113
5238
|
};
|
|
5114
5239
|
var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
5115
|
-
return /* @__PURE__ */
|
|
5240
|
+
return /* @__PURE__ */ jsx27(
|
|
5116
5241
|
"div",
|
|
5117
5242
|
{
|
|
5118
5243
|
ref,
|
|
5119
5244
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
5120
5245
|
...props,
|
|
5121
|
-
children: /* @__PURE__ */
|
|
5122
|
-
data.map((section, sectionIndex) => /* @__PURE__ */
|
|
5246
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex flex-col gap-0", children: [
|
|
5247
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx27("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs21(
|
|
5123
5248
|
"div",
|
|
5124
5249
|
{
|
|
5125
5250
|
className: cn(
|
|
@@ -5127,7 +5252,7 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5127
5252
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
5128
5253
|
),
|
|
5129
5254
|
children: [
|
|
5130
|
-
/* @__PURE__ */
|
|
5255
|
+
/* @__PURE__ */ jsx27(
|
|
5131
5256
|
Text_default,
|
|
5132
5257
|
{
|
|
5133
5258
|
size: "xs",
|
|
@@ -5136,9 +5261,9 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5136
5261
|
children: section.date
|
|
5137
5262
|
}
|
|
5138
5263
|
),
|
|
5139
|
-
/* @__PURE__ */
|
|
5264
|
+
/* @__PURE__ */ jsx27("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
5140
5265
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
5141
|
-
return /* @__PURE__ */
|
|
5266
|
+
return /* @__PURE__ */ jsx27(
|
|
5142
5267
|
CardBase,
|
|
5143
5268
|
{
|
|
5144
5269
|
layout: "horizontal",
|
|
@@ -5150,9 +5275,9 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5150
5275
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
5151
5276
|
),
|
|
5152
5277
|
onClick: () => onSimulationClick?.(simulation),
|
|
5153
|
-
children: /* @__PURE__ */
|
|
5154
|
-
/* @__PURE__ */
|
|
5155
|
-
/* @__PURE__ */
|
|
5278
|
+
children: /* @__PURE__ */ jsxs21("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
5279
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
5280
|
+
/* @__PURE__ */ jsx27(
|
|
5156
5281
|
Text_default,
|
|
5157
5282
|
{
|
|
5158
5283
|
size: "lg",
|
|
@@ -5161,8 +5286,8 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5161
5286
|
children: simulation.title
|
|
5162
5287
|
}
|
|
5163
5288
|
),
|
|
5164
|
-
/* @__PURE__ */
|
|
5165
|
-
/* @__PURE__ */
|
|
5289
|
+
/* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2", children: [
|
|
5290
|
+
/* @__PURE__ */ jsx27(
|
|
5166
5291
|
Badge_default,
|
|
5167
5292
|
{
|
|
5168
5293
|
variant: "examsOutlined",
|
|
@@ -5171,10 +5296,10 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5171
5296
|
children: typeStyles.text
|
|
5172
5297
|
}
|
|
5173
5298
|
),
|
|
5174
|
-
/* @__PURE__ */
|
|
5299
|
+
/* @__PURE__ */ jsx27(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
5175
5300
|
] })
|
|
5176
5301
|
] }),
|
|
5177
|
-
/* @__PURE__ */
|
|
5302
|
+
/* @__PURE__ */ jsx27(
|
|
5178
5303
|
CaretRight,
|
|
5179
5304
|
{
|
|
5180
5305
|
size: 24,
|
|
@@ -5190,7 +5315,7 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5190
5315
|
]
|
|
5191
5316
|
}
|
|
5192
5317
|
) }, section.date)),
|
|
5193
|
-
data.length > 0 && /* @__PURE__ */
|
|
5318
|
+
data.length > 0 && /* @__PURE__ */ jsx27("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
5194
5319
|
] })
|
|
5195
5320
|
}
|
|
5196
5321
|
);
|
|
@@ -5198,7 +5323,7 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5198
5323
|
|
|
5199
5324
|
// src/components/Accordation/Accordation.tsx
|
|
5200
5325
|
import { CaretRight as CaretRight2 } from "phosphor-react";
|
|
5201
|
-
import { jsx as
|
|
5326
|
+
import { jsx as jsx28, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5202
5327
|
var CardAccordation = forwardRef13(
|
|
5203
5328
|
({
|
|
5204
5329
|
trigger,
|
|
@@ -5221,7 +5346,7 @@ var CardAccordation = forwardRef13(
|
|
|
5221
5346
|
handleToggle();
|
|
5222
5347
|
}
|
|
5223
5348
|
};
|
|
5224
|
-
return /* @__PURE__ */
|
|
5349
|
+
return /* @__PURE__ */ jsxs22(
|
|
5225
5350
|
CardBase,
|
|
5226
5351
|
{
|
|
5227
5352
|
ref,
|
|
@@ -5231,7 +5356,7 @@ var CardAccordation = forwardRef13(
|
|
|
5231
5356
|
className: cn("overflow-hidden", className),
|
|
5232
5357
|
...props,
|
|
5233
5358
|
children: [
|
|
5234
|
-
/* @__PURE__ */
|
|
5359
|
+
/* @__PURE__ */ jsxs22(
|
|
5235
5360
|
"button",
|
|
5236
5361
|
{
|
|
5237
5362
|
onClick: handleToggle,
|
|
@@ -5241,7 +5366,7 @@ var CardAccordation = forwardRef13(
|
|
|
5241
5366
|
"aria-controls": "accordion-content",
|
|
5242
5367
|
children: [
|
|
5243
5368
|
trigger,
|
|
5244
|
-
/* @__PURE__ */
|
|
5369
|
+
/* @__PURE__ */ jsx28(
|
|
5245
5370
|
CaretRight2,
|
|
5246
5371
|
{
|
|
5247
5372
|
size: 20,
|
|
@@ -5255,7 +5380,7 @@ var CardAccordation = forwardRef13(
|
|
|
5255
5380
|
]
|
|
5256
5381
|
}
|
|
5257
5382
|
),
|
|
5258
|
-
/* @__PURE__ */
|
|
5383
|
+
/* @__PURE__ */ jsx28(
|
|
5259
5384
|
"div",
|
|
5260
5385
|
{
|
|
5261
5386
|
id: contentId,
|
|
@@ -5264,7 +5389,7 @@ var CardAccordation = forwardRef13(
|
|
|
5264
5389
|
isExpanded ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
|
|
5265
5390
|
),
|
|
5266
5391
|
"data-testid": "accordion-content",
|
|
5267
|
-
children: /* @__PURE__ */
|
|
5392
|
+
children: /* @__PURE__ */ jsx28("div", { className: "p-4 pt-0 border-border-50", children })
|
|
5268
5393
|
}
|
|
5269
5394
|
)
|
|
5270
5395
|
]
|
|
@@ -5276,7 +5401,7 @@ var CardAccordation = forwardRef13(
|
|
|
5276
5401
|
// src/components/Alternative/Alternative.tsx
|
|
5277
5402
|
import { CheckCircle as CheckCircle4, XCircle as XCircle3 } from "phosphor-react";
|
|
5278
5403
|
import { forwardRef as forwardRef14, useId as useId8, useState as useState10 } from "react";
|
|
5279
|
-
import { jsx as
|
|
5404
|
+
import { jsx as jsx29, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
5280
5405
|
var AlternativesList = ({
|
|
5281
5406
|
alternatives,
|
|
5282
5407
|
name,
|
|
@@ -5307,9 +5432,9 @@ var AlternativesList = ({
|
|
|
5307
5432
|
const getStatusBadge2 = (status) => {
|
|
5308
5433
|
switch (status) {
|
|
5309
5434
|
case "correct":
|
|
5310
|
-
return /* @__PURE__ */
|
|
5435
|
+
return /* @__PURE__ */ jsx29(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ jsx29(CheckCircle4, {}), children: "Resposta correta" });
|
|
5311
5436
|
case "incorrect":
|
|
5312
|
-
return /* @__PURE__ */
|
|
5437
|
+
return /* @__PURE__ */ jsx29(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ jsx29(XCircle3, {}), children: "Resposta incorreta" });
|
|
5313
5438
|
default:
|
|
5314
5439
|
return null;
|
|
5315
5440
|
}
|
|
@@ -5339,10 +5464,10 @@ var AlternativesList = ({
|
|
|
5339
5464
|
const renderRadio = () => {
|
|
5340
5465
|
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"}`;
|
|
5341
5466
|
const dotClasses = "w-3 h-3 rounded-full bg-primary-950 transition-all duration-200";
|
|
5342
|
-
return /* @__PURE__ */
|
|
5467
|
+
return /* @__PURE__ */ jsx29("div", { className: radioClasses, children: isUserSelected && /* @__PURE__ */ jsx29("div", { className: dotClasses }) });
|
|
5343
5468
|
};
|
|
5344
5469
|
if (layout === "detailed") {
|
|
5345
|
-
return /* @__PURE__ */
|
|
5470
|
+
return /* @__PURE__ */ jsx29(
|
|
5346
5471
|
"div",
|
|
5347
5472
|
{
|
|
5348
5473
|
className: cn(
|
|
@@ -5350,11 +5475,11 @@ var AlternativesList = ({
|
|
|
5350
5475
|
statusStyles,
|
|
5351
5476
|
alternative.disabled ? "opacity-50" : ""
|
|
5352
5477
|
),
|
|
5353
|
-
children: /* @__PURE__ */
|
|
5354
|
-
/* @__PURE__ */
|
|
5355
|
-
/* @__PURE__ */
|
|
5356
|
-
/* @__PURE__ */
|
|
5357
|
-
/* @__PURE__ */
|
|
5478
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5479
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-start gap-3 flex-1", children: [
|
|
5480
|
+
/* @__PURE__ */ jsx29("div", { className: "mt-1", children: renderRadio() }),
|
|
5481
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex-1", children: [
|
|
5482
|
+
/* @__PURE__ */ jsx29(
|
|
5358
5483
|
"p",
|
|
5359
5484
|
{
|
|
5360
5485
|
className: cn(
|
|
@@ -5364,16 +5489,16 @@ var AlternativesList = ({
|
|
|
5364
5489
|
children: alternative.label
|
|
5365
5490
|
}
|
|
5366
5491
|
),
|
|
5367
|
-
alternative.description && /* @__PURE__ */
|
|
5492
|
+
alternative.description && /* @__PURE__ */ jsx29("p", { className: "text-sm text-text-600 mt-1", children: alternative.description })
|
|
5368
5493
|
] })
|
|
5369
5494
|
] }),
|
|
5370
|
-
statusBadge && /* @__PURE__ */
|
|
5495
|
+
statusBadge && /* @__PURE__ */ jsx29("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5371
5496
|
] })
|
|
5372
5497
|
},
|
|
5373
5498
|
alternativeId
|
|
5374
5499
|
);
|
|
5375
5500
|
}
|
|
5376
|
-
return /* @__PURE__ */
|
|
5501
|
+
return /* @__PURE__ */ jsxs23(
|
|
5377
5502
|
"div",
|
|
5378
5503
|
{
|
|
5379
5504
|
className: cn(
|
|
@@ -5382,9 +5507,9 @@ var AlternativesList = ({
|
|
|
5382
5507
|
alternative.disabled ? "opacity-50" : ""
|
|
5383
5508
|
),
|
|
5384
5509
|
children: [
|
|
5385
|
-
/* @__PURE__ */
|
|
5510
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
5386
5511
|
renderRadio(),
|
|
5387
|
-
/* @__PURE__ */
|
|
5512
|
+
/* @__PURE__ */ jsx29(
|
|
5388
5513
|
"span",
|
|
5389
5514
|
{
|
|
5390
5515
|
className: cn(
|
|
@@ -5395,14 +5520,14 @@ var AlternativesList = ({
|
|
|
5395
5520
|
}
|
|
5396
5521
|
)
|
|
5397
5522
|
] }),
|
|
5398
|
-
statusBadge && /* @__PURE__ */
|
|
5523
|
+
statusBadge && /* @__PURE__ */ jsx29("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5399
5524
|
]
|
|
5400
5525
|
},
|
|
5401
5526
|
alternativeId
|
|
5402
5527
|
);
|
|
5403
5528
|
};
|
|
5404
5529
|
if (isReadonly) {
|
|
5405
|
-
return /* @__PURE__ */
|
|
5530
|
+
return /* @__PURE__ */ jsx29(
|
|
5406
5531
|
"div",
|
|
5407
5532
|
{
|
|
5408
5533
|
className: cn("flex flex-col", getLayoutClasses(), "w-full", className),
|
|
@@ -5412,7 +5537,7 @@ var AlternativesList = ({
|
|
|
5412
5537
|
}
|
|
5413
5538
|
);
|
|
5414
5539
|
}
|
|
5415
|
-
return /* @__PURE__ */
|
|
5540
|
+
return /* @__PURE__ */ jsx29(
|
|
5416
5541
|
RadioGroup,
|
|
5417
5542
|
{
|
|
5418
5543
|
name: groupName,
|
|
@@ -5429,7 +5554,7 @@ var AlternativesList = ({
|
|
|
5429
5554
|
const statusStyles = getStatusStyles2(alternative.status, false);
|
|
5430
5555
|
const statusBadge = getStatusBadge2(alternative.status);
|
|
5431
5556
|
if (layout === "detailed") {
|
|
5432
|
-
return /* @__PURE__ */
|
|
5557
|
+
return /* @__PURE__ */ jsx29(
|
|
5433
5558
|
"div",
|
|
5434
5559
|
{
|
|
5435
5560
|
className: cn(
|
|
@@ -5437,9 +5562,9 @@ var AlternativesList = ({
|
|
|
5437
5562
|
statusStyles,
|
|
5438
5563
|
alternative.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
5439
5564
|
),
|
|
5440
|
-
children: /* @__PURE__ */
|
|
5441
|
-
/* @__PURE__ */
|
|
5442
|
-
/* @__PURE__ */
|
|
5565
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5566
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-start gap-3 flex-1", children: [
|
|
5567
|
+
/* @__PURE__ */ jsx29(
|
|
5443
5568
|
RadioGroupItem,
|
|
5444
5569
|
{
|
|
5445
5570
|
value: alternative.value,
|
|
@@ -5448,8 +5573,8 @@ var AlternativesList = ({
|
|
|
5448
5573
|
className: "mt-1"
|
|
5449
5574
|
}
|
|
5450
5575
|
),
|
|
5451
|
-
/* @__PURE__ */
|
|
5452
|
-
/* @__PURE__ */
|
|
5576
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex-1", children: [
|
|
5577
|
+
/* @__PURE__ */ jsx29(
|
|
5453
5578
|
"label",
|
|
5454
5579
|
{
|
|
5455
5580
|
htmlFor: alternativeId,
|
|
@@ -5461,16 +5586,16 @@ var AlternativesList = ({
|
|
|
5461
5586
|
children: alternative.label
|
|
5462
5587
|
}
|
|
5463
5588
|
),
|
|
5464
|
-
alternative.description && /* @__PURE__ */
|
|
5589
|
+
alternative.description && /* @__PURE__ */ jsx29("p", { className: "text-sm text-text-600 mt-1", children: alternative.description })
|
|
5465
5590
|
] })
|
|
5466
5591
|
] }),
|
|
5467
|
-
statusBadge && /* @__PURE__ */
|
|
5592
|
+
statusBadge && /* @__PURE__ */ jsx29("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5468
5593
|
] })
|
|
5469
5594
|
},
|
|
5470
5595
|
alternativeId
|
|
5471
5596
|
);
|
|
5472
5597
|
}
|
|
5473
|
-
return /* @__PURE__ */
|
|
5598
|
+
return /* @__PURE__ */ jsxs23(
|
|
5474
5599
|
"div",
|
|
5475
5600
|
{
|
|
5476
5601
|
className: cn(
|
|
@@ -5479,8 +5604,8 @@ var AlternativesList = ({
|
|
|
5479
5604
|
alternative.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
5480
5605
|
),
|
|
5481
5606
|
children: [
|
|
5482
|
-
/* @__PURE__ */
|
|
5483
|
-
/* @__PURE__ */
|
|
5607
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
5608
|
+
/* @__PURE__ */ jsx29(
|
|
5484
5609
|
RadioGroupItem,
|
|
5485
5610
|
{
|
|
5486
5611
|
value: alternative.value,
|
|
@@ -5488,7 +5613,7 @@ var AlternativesList = ({
|
|
|
5488
5613
|
disabled: alternative.disabled
|
|
5489
5614
|
}
|
|
5490
5615
|
),
|
|
5491
|
-
/* @__PURE__ */
|
|
5616
|
+
/* @__PURE__ */ jsx29(
|
|
5492
5617
|
"label",
|
|
5493
5618
|
{
|
|
5494
5619
|
htmlFor: alternativeId,
|
|
@@ -5501,7 +5626,7 @@ var AlternativesList = ({
|
|
|
5501
5626
|
}
|
|
5502
5627
|
)
|
|
5503
5628
|
] }),
|
|
5504
|
-
statusBadge && /* @__PURE__ */
|
|
5629
|
+
statusBadge && /* @__PURE__ */ jsx29("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5505
5630
|
]
|
|
5506
5631
|
},
|
|
5507
5632
|
alternativeId
|
|
@@ -5512,7 +5637,7 @@ var AlternativesList = ({
|
|
|
5512
5637
|
};
|
|
5513
5638
|
var HeaderAlternative = forwardRef14(
|
|
5514
5639
|
({ className, title, subTitle, content, ...props }, ref) => {
|
|
5515
|
-
return /* @__PURE__ */
|
|
5640
|
+
return /* @__PURE__ */ jsxs23(
|
|
5516
5641
|
"div",
|
|
5517
5642
|
{
|
|
5518
5643
|
ref,
|
|
@@ -5522,11 +5647,11 @@ var HeaderAlternative = forwardRef14(
|
|
|
5522
5647
|
),
|
|
5523
5648
|
...props,
|
|
5524
5649
|
children: [
|
|
5525
|
-
/* @__PURE__ */
|
|
5526
|
-
/* @__PURE__ */
|
|
5527
|
-
/* @__PURE__ */
|
|
5650
|
+
/* @__PURE__ */ jsxs23("span", { className: "flex flex-col", children: [
|
|
5651
|
+
/* @__PURE__ */ jsx29("p", { className: "text-text-950 font-bold text-lg", children: title }),
|
|
5652
|
+
/* @__PURE__ */ jsx29("p", { className: "text-text-700 text-sm ", children: subTitle })
|
|
5528
5653
|
] }),
|
|
5529
|
-
/* @__PURE__ */
|
|
5654
|
+
/* @__PURE__ */ jsx29("p", { className: "text-text-950 text-md", children: content })
|
|
5530
5655
|
]
|
|
5531
5656
|
}
|
|
5532
5657
|
);
|
|
@@ -5538,7 +5663,7 @@ import {
|
|
|
5538
5663
|
forwardRef as forwardRef15,
|
|
5539
5664
|
useEffect as useEffect7
|
|
5540
5665
|
} from "react";
|
|
5541
|
-
import { Fragment as Fragment5, jsx as
|
|
5666
|
+
import { Fragment as Fragment5, jsx as jsx30, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5542
5667
|
var SIZE_CLASSES11 = {
|
|
5543
5668
|
"extra-small": "w-screen max-w-[324px]",
|
|
5544
5669
|
small: "w-screen max-w-[378px]",
|
|
@@ -5603,14 +5728,14 @@ var AlertDialog = forwardRef15(
|
|
|
5603
5728
|
onCancel?.(cancelValue);
|
|
5604
5729
|
};
|
|
5605
5730
|
const sizeClasses = SIZE_CLASSES11[size];
|
|
5606
|
-
return /* @__PURE__ */
|
|
5731
|
+
return /* @__PURE__ */ jsx30(Fragment5, { children: isOpen && /* @__PURE__ */ jsx30(
|
|
5607
5732
|
"div",
|
|
5608
5733
|
{
|
|
5609
5734
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",
|
|
5610
5735
|
onClick: handleBackdropClick,
|
|
5611
5736
|
onKeyDown: handleBackdropKeyDown,
|
|
5612
5737
|
"data-testid": "alert-dialog-overlay",
|
|
5613
|
-
children: /* @__PURE__ */
|
|
5738
|
+
children: /* @__PURE__ */ jsxs24(
|
|
5614
5739
|
"div",
|
|
5615
5740
|
{
|
|
5616
5741
|
ref,
|
|
@@ -5621,7 +5746,7 @@ var AlertDialog = forwardRef15(
|
|
|
5621
5746
|
),
|
|
5622
5747
|
...props,
|
|
5623
5748
|
children: [
|
|
5624
|
-
/* @__PURE__ */
|
|
5749
|
+
/* @__PURE__ */ jsx30(
|
|
5625
5750
|
"h2",
|
|
5626
5751
|
{
|
|
5627
5752
|
id: "alert-dialog-title",
|
|
@@ -5629,7 +5754,7 @@ var AlertDialog = forwardRef15(
|
|
|
5629
5754
|
children: title
|
|
5630
5755
|
}
|
|
5631
5756
|
),
|
|
5632
|
-
/* @__PURE__ */
|
|
5757
|
+
/* @__PURE__ */ jsx30(
|
|
5633
5758
|
"p",
|
|
5634
5759
|
{
|
|
5635
5760
|
id: "alert-dialog-description",
|
|
@@ -5637,9 +5762,9 @@ var AlertDialog = forwardRef15(
|
|
|
5637
5762
|
children: description
|
|
5638
5763
|
}
|
|
5639
5764
|
),
|
|
5640
|
-
/* @__PURE__ */
|
|
5641
|
-
/* @__PURE__ */
|
|
5642
|
-
/* @__PURE__ */
|
|
5765
|
+
/* @__PURE__ */ jsxs24("div", { className: "flex flex-row items-center justify-end pt-4 gap-3", children: [
|
|
5766
|
+
/* @__PURE__ */ jsx30(Button_default, { variant: "outline", size: "small", onClick: handleCancel, children: cancelButtonLabel }),
|
|
5767
|
+
/* @__PURE__ */ jsx30(
|
|
5643
5768
|
Button_default,
|
|
5644
5769
|
{
|
|
5645
5770
|
variant: "solid",
|
|
@@ -5662,7 +5787,7 @@ AlertDialog.displayName = "AlertDialog";
|
|
|
5662
5787
|
// src/components/MultipleChoice/MultipleChoice.tsx
|
|
5663
5788
|
import { useEffect as useEffect8, useState as useState11 } from "react";
|
|
5664
5789
|
import { CheckCircle as CheckCircle5, XCircle as XCircle4, Check as Check4 } from "phosphor-react";
|
|
5665
|
-
import { jsx as
|
|
5790
|
+
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5666
5791
|
var MultipleChoiceList = ({
|
|
5667
5792
|
disabled = false,
|
|
5668
5793
|
className = "",
|
|
@@ -5679,9 +5804,9 @@ var MultipleChoiceList = ({
|
|
|
5679
5804
|
const getStatusBadge2 = (status) => {
|
|
5680
5805
|
switch (status) {
|
|
5681
5806
|
case "correct":
|
|
5682
|
-
return /* @__PURE__ */
|
|
5807
|
+
return /* @__PURE__ */ jsx31(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ jsx31(CheckCircle5, {}), children: "Resposta correta" });
|
|
5683
5808
|
case "incorrect":
|
|
5684
|
-
return /* @__PURE__ */
|
|
5809
|
+
return /* @__PURE__ */ jsx31(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ jsx31(XCircle4, {}), children: "Resposta incorreta" });
|
|
5685
5810
|
default:
|
|
5686
5811
|
return null;
|
|
5687
5812
|
}
|
|
@@ -5702,14 +5827,14 @@ var MultipleChoiceList = ({
|
|
|
5702
5827
|
isSelected ? "border-primary-950 bg-primary-950 text-text" : "border-border-400 bg-background",
|
|
5703
5828
|
isDisabled && "opacity-40 cursor-not-allowed"
|
|
5704
5829
|
);
|
|
5705
|
-
return /* @__PURE__ */
|
|
5830
|
+
return /* @__PURE__ */ jsx31("div", { className: checkboxClasses, children: isSelected && /* @__PURE__ */ jsx31(Check4, { size: 16, weight: "bold" }) });
|
|
5706
5831
|
};
|
|
5707
5832
|
if (mode === "readonly") {
|
|
5708
|
-
return /* @__PURE__ */
|
|
5833
|
+
return /* @__PURE__ */ jsx31("div", { className: cn("flex flex-col gap-2", className), children: choices.map((choice, i) => {
|
|
5709
5834
|
const isSelected = actualValue?.includes(choice.value) || false;
|
|
5710
5835
|
const statusStyles = getStatusStyles2(choice.status);
|
|
5711
5836
|
const statusBadge = getStatusBadge2(choice.status);
|
|
5712
|
-
return /* @__PURE__ */
|
|
5837
|
+
return /* @__PURE__ */ jsxs25(
|
|
5713
5838
|
"div",
|
|
5714
5839
|
{
|
|
5715
5840
|
className: cn(
|
|
@@ -5718,9 +5843,9 @@ var MultipleChoiceList = ({
|
|
|
5718
5843
|
choice.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
5719
5844
|
),
|
|
5720
5845
|
children: [
|
|
5721
|
-
/* @__PURE__ */
|
|
5846
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
5722
5847
|
renderVisualCheckbox(isSelected, choice.disabled || disabled),
|
|
5723
|
-
/* @__PURE__ */
|
|
5848
|
+
/* @__PURE__ */ jsx31(
|
|
5724
5849
|
"span",
|
|
5725
5850
|
{
|
|
5726
5851
|
className: cn(
|
|
@@ -5732,14 +5857,14 @@ var MultipleChoiceList = ({
|
|
|
5732
5857
|
}
|
|
5733
5858
|
)
|
|
5734
5859
|
] }),
|
|
5735
|
-
statusBadge && /* @__PURE__ */
|
|
5860
|
+
statusBadge && /* @__PURE__ */ jsx31("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5736
5861
|
]
|
|
5737
5862
|
},
|
|
5738
5863
|
`readonly-${choice.value}-${i}`
|
|
5739
5864
|
);
|
|
5740
5865
|
}) });
|
|
5741
5866
|
}
|
|
5742
|
-
return /* @__PURE__ */
|
|
5867
|
+
return /* @__PURE__ */ jsx31(
|
|
5743
5868
|
"div",
|
|
5744
5869
|
{
|
|
5745
5870
|
className: cn(
|
|
@@ -5747,7 +5872,7 @@ var MultipleChoiceList = ({
|
|
|
5747
5872
|
disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
5748
5873
|
className
|
|
5749
5874
|
),
|
|
5750
|
-
children: /* @__PURE__ */
|
|
5875
|
+
children: /* @__PURE__ */ jsx31(
|
|
5751
5876
|
CheckboxList_default,
|
|
5752
5877
|
{
|
|
5753
5878
|
name,
|
|
@@ -5757,12 +5882,12 @@ var MultipleChoiceList = ({
|
|
|
5757
5882
|
onHandleSelectedValues?.(v);
|
|
5758
5883
|
},
|
|
5759
5884
|
disabled,
|
|
5760
|
-
children: choices.map((choice, i) => /* @__PURE__ */
|
|
5885
|
+
children: choices.map((choice, i) => /* @__PURE__ */ jsxs25(
|
|
5761
5886
|
"div",
|
|
5762
5887
|
{
|
|
5763
5888
|
className: "flex flex-row gap-2 items-center",
|
|
5764
5889
|
children: [
|
|
5765
|
-
/* @__PURE__ */
|
|
5890
|
+
/* @__PURE__ */ jsx31(
|
|
5766
5891
|
CheckboxListItem,
|
|
5767
5892
|
{
|
|
5768
5893
|
value: choice.value,
|
|
@@ -5770,7 +5895,7 @@ var MultipleChoiceList = ({
|
|
|
5770
5895
|
disabled: choice.disabled || disabled
|
|
5771
5896
|
}
|
|
5772
5897
|
),
|
|
5773
|
-
/* @__PURE__ */
|
|
5898
|
+
/* @__PURE__ */ jsx31(
|
|
5774
5899
|
"label",
|
|
5775
5900
|
{
|
|
5776
5901
|
htmlFor: `interactive-${choice.value}-${i}`,
|
|
@@ -5792,129 +5917,6 @@ var MultipleChoiceList = ({
|
|
|
5792
5917
|
);
|
|
5793
5918
|
};
|
|
5794
5919
|
|
|
5795
|
-
// src/components/IconRender/IconRender.tsx
|
|
5796
|
-
import * as PhosphorIcons from "phosphor-react";
|
|
5797
|
-
import { jsx as jsx31, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5798
|
-
var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs25(
|
|
5799
|
-
"svg",
|
|
5800
|
-
{
|
|
5801
|
-
width: size,
|
|
5802
|
-
height: size,
|
|
5803
|
-
viewBox: "0 0 32 32",
|
|
5804
|
-
fill: "none",
|
|
5805
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5806
|
-
children: [
|
|
5807
|
-
/* @__PURE__ */ jsx31(
|
|
5808
|
-
"path",
|
|
5809
|
-
{
|
|
5810
|
-
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
5811
|
-
fill: color
|
|
5812
|
-
}
|
|
5813
|
-
),
|
|
5814
|
-
/* @__PURE__ */ jsx31(
|
|
5815
|
-
"path",
|
|
5816
|
-
{
|
|
5817
|
-
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
5818
|
-
fill: color
|
|
5819
|
-
}
|
|
5820
|
-
),
|
|
5821
|
-
/* @__PURE__ */ jsx31(
|
|
5822
|
-
"path",
|
|
5823
|
-
{
|
|
5824
|
-
d: "M13.2402 17.3496H11.0195V16.1836H13.2402C13.627 16.1836 13.9395 16.1211 14.1777 15.9961C14.416 15.8711 14.5898 15.6992 14.6992 15.4805C14.8125 15.2578 14.8691 15.0039 14.8691 14.7188C14.8691 14.4492 14.8125 14.1973 14.6992 13.9629C14.5898 13.7246 14.416 13.5332 14.1777 13.3887C13.9395 13.2441 13.627 13.1719 13.2402 13.1719H11.4707V20.5312H10V12H13.2402C13.9004 12 14.4609 12.1172 14.9219 12.3516C15.3867 12.582 15.7402 12.9023 15.9824 13.3125C16.2246 13.7188 16.3457 14.1836 16.3457 14.707C16.3457 15.2578 16.2246 15.7305 15.9824 16.125C15.7402 16.5195 15.3867 16.8223 14.9219 17.0332C14.4609 17.2441 13.9004 17.3496 13.2402 17.3496Z",
|
|
5825
|
-
fill: color
|
|
5826
|
-
}
|
|
5827
|
-
)
|
|
5828
|
-
]
|
|
5829
|
-
}
|
|
5830
|
-
);
|
|
5831
|
-
var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs25(
|
|
5832
|
-
"svg",
|
|
5833
|
-
{
|
|
5834
|
-
width: size,
|
|
5835
|
-
height: size,
|
|
5836
|
-
viewBox: "0 0 32 32",
|
|
5837
|
-
fill: "none",
|
|
5838
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5839
|
-
children: [
|
|
5840
|
-
/* @__PURE__ */ jsx31(
|
|
5841
|
-
"path",
|
|
5842
|
-
{
|
|
5843
|
-
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
5844
|
-
fill: color
|
|
5845
|
-
}
|
|
5846
|
-
),
|
|
5847
|
-
/* @__PURE__ */ jsx31(
|
|
5848
|
-
"path",
|
|
5849
|
-
{
|
|
5850
|
-
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
5851
|
-
fill: color
|
|
5852
|
-
}
|
|
5853
|
-
),
|
|
5854
|
-
/* @__PURE__ */ jsx31(
|
|
5855
|
-
"path",
|
|
5856
|
-
{
|
|
5857
|
-
d: "M14.584 19.3652V20.5312H10.0547V19.3652H14.584ZM10.4707 12V20.5312H9V12H10.4707ZM13.9922 15.5625V16.7109H10.0547V15.5625H13.9922ZM14.5547 12V13.1719H10.0547V12H14.5547Z",
|
|
5858
|
-
fill: color
|
|
5859
|
-
}
|
|
5860
|
-
)
|
|
5861
|
-
]
|
|
5862
|
-
}
|
|
5863
|
-
);
|
|
5864
|
-
var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs25(
|
|
5865
|
-
"svg",
|
|
5866
|
-
{
|
|
5867
|
-
width: size,
|
|
5868
|
-
height: size,
|
|
5869
|
-
viewBox: "0 0 32 32",
|
|
5870
|
-
fill: "none",
|
|
5871
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5872
|
-
children: [
|
|
5873
|
-
/* @__PURE__ */ jsx31(
|
|
5874
|
-
"path",
|
|
5875
|
-
{
|
|
5876
|
-
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
5877
|
-
fill: color
|
|
5878
|
-
}
|
|
5879
|
-
),
|
|
5880
|
-
/* @__PURE__ */ jsx31(
|
|
5881
|
-
"path",
|
|
5882
|
-
{
|
|
5883
|
-
d: "M21.1426 17.8027C21.1426 17.627 21.1152 17.4707 21.0605 17.334C21.0098 17.1973 20.918 17.0723 20.7852 16.959C20.6523 16.8457 20.4648 16.7363 20.2227 16.6309C19.9844 16.5215 19.6797 16.4102 19.3086 16.2969C18.9023 16.1719 18.5273 16.0332 18.1836 15.8809C17.8438 15.7246 17.5469 15.5449 17.293 15.3418C17.0391 15.1348 16.8418 14.8984 16.7012 14.6328C16.5605 14.3633 16.4902 14.0527 16.4902 13.7012C16.4902 13.3535 16.5625 13.0371 16.707 12.752C16.8555 12.4668 17.0645 12.2207 17.334 12.0137C17.6074 11.8027 17.9297 11.6406 18.3008 11.5273C18.6719 11.4102 19.082 11.3516 19.5312 11.3516C20.1641 11.3516 20.709 11.4688 21.166 11.7031C21.627 11.9375 21.9805 12.252 22.2266 12.6465C22.4766 13.041 22.6016 13.4766 22.6016 13.9531H21.1426C21.1426 13.6719 21.082 13.4238 20.9609 13.209C20.8438 12.9902 20.6641 12.8184 20.4219 12.6934C20.1836 12.5684 19.8809 12.5059 19.5137 12.5059C19.166 12.5059 18.877 12.5586 18.6465 12.6641C18.416 12.7695 18.2441 12.9121 18.1309 13.0918C18.0176 13.2715 17.9609 13.4746 17.9609 13.7012C17.9609 13.8613 17.998 14.0078 18.0723 14.1406C18.1465 14.2695 18.2598 14.3906 18.4121 14.5039C18.5645 14.6133 18.7559 14.7168 18.9863 14.8145C19.2168 14.9121 19.4883 15.0059 19.8008 15.0957C20.2734 15.2363 20.6855 15.3926 21.0371 15.5645C21.3887 15.7324 21.6816 15.9238 21.916 16.1387C22.1504 16.3535 22.3262 16.5977 22.4434 16.8711C22.5605 17.1406 22.6191 17.4473 22.6191 17.791C22.6191 18.1504 22.5469 18.4746 22.4023 18.7637C22.2578 19.0488 22.0508 19.293 21.7812 19.4961C21.5156 19.6953 21.1953 19.8496 20.8203 19.959C20.4492 20.0645 20.0352 20.1172 19.5781 20.1172C19.168 20.1172 18.7637 20.0625 18.3652 19.9531C17.9707 19.8438 17.6113 19.6777 17.2871 19.4551C16.9629 19.2285 16.7051 18.9473 16.5137 18.6113C16.3223 18.2715 16.2266 17.875 16.2266 17.4219H17.6973C17.6973 17.6992 17.7441 17.9355 17.8379 18.1309C17.9355 18.3262 18.0703 18.4863 18.2422 18.6113C18.4141 18.7324 18.6133 18.8223 18.8398 18.8809C19.0703 18.9395 19.3164 18.9688 19.5781 18.9688C19.9219 18.9688 20.209 18.9199 20.4395 18.8223C20.6738 18.7246 20.8496 18.5879 20.9668 18.4121C21.084 18.2363 21.1426 18.0332 21.1426 17.8027Z",
|
|
5884
|
-
fill: color
|
|
5885
|
-
}
|
|
5886
|
-
),
|
|
5887
|
-
/* @__PURE__ */ jsx31(
|
|
5888
|
-
"path",
|
|
5889
|
-
{
|
|
5890
|
-
d: "M15.4512 18.834V20H10.9219V18.834H15.4512ZM11.3379 11.4688V20H9.86719V11.4688H11.3379ZM14.8594 15.0312V16.1797H10.9219V15.0312H14.8594ZM15.4219 11.4688V12.6406H10.9219V11.4688H15.4219Z",
|
|
5891
|
-
fill: color
|
|
5892
|
-
}
|
|
5893
|
-
)
|
|
5894
|
-
]
|
|
5895
|
-
}
|
|
5896
|
-
);
|
|
5897
|
-
var IconRender = ({
|
|
5898
|
-
iconName,
|
|
5899
|
-
color = "#000000",
|
|
5900
|
-
size = 24,
|
|
5901
|
-
weight = "regular"
|
|
5902
|
-
}) => {
|
|
5903
|
-
switch (iconName) {
|
|
5904
|
-
case "Chat_PT":
|
|
5905
|
-
return /* @__PURE__ */ jsx31(ChatPT, { size, color });
|
|
5906
|
-
case "Chat_EN":
|
|
5907
|
-
return /* @__PURE__ */ jsx31(ChatEN, { size, color });
|
|
5908
|
-
case "Chat_ES":
|
|
5909
|
-
return /* @__PURE__ */ jsx31(ChatES, { size, color });
|
|
5910
|
-
default: {
|
|
5911
|
-
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
5912
|
-
return /* @__PURE__ */ jsx31(IconComponent, { size, color, weight });
|
|
5913
|
-
}
|
|
5914
|
-
}
|
|
5915
|
-
};
|
|
5916
|
-
var IconRender_default = IconRender;
|
|
5917
|
-
|
|
5918
5920
|
// src/hooks/useMobile.ts
|
|
5919
5921
|
import { useState as useState12, useEffect as useEffect9 } from "react";
|
|
5920
5922
|
var MOBILE_WIDTH = 500;
|
|
@@ -6288,12 +6290,10 @@ var SelectItem = forwardRef16(
|
|
|
6288
6290
|
const handleClick = (e) => {
|
|
6289
6291
|
const labelNode = getLabelAsNode(children);
|
|
6290
6292
|
if (!disabled) {
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
setValue(newValue);
|
|
6294
|
-
setSelectedLabel(newLabel);
|
|
6293
|
+
setValue(value);
|
|
6294
|
+
setSelectedLabel(labelNode);
|
|
6295
6295
|
setOpen(false);
|
|
6296
|
-
onValueChange?.(
|
|
6296
|
+
onValueChange?.(value);
|
|
6297
6297
|
}
|
|
6298
6298
|
props.onClick?.(e);
|
|
6299
6299
|
};
|
|
@@ -8011,7 +8011,6 @@ import {
|
|
|
8011
8011
|
Clock as Clock2,
|
|
8012
8012
|
SquaresFour,
|
|
8013
8013
|
BookOpen,
|
|
8014
|
-
Book,
|
|
8015
8014
|
CheckCircle as CheckCircle6,
|
|
8016
8015
|
XCircle as XCircle5
|
|
8017
8016
|
} from "phosphor-react";
|
|
@@ -8058,10 +8057,12 @@ var ANSWER_STATUS = /* @__PURE__ */ ((ANSWER_STATUS2) => {
|
|
|
8058
8057
|
ANSWER_STATUS2["NAO_RESPONDIDO"] = "NAO_RESPONDIDO";
|
|
8059
8058
|
return ANSWER_STATUS2;
|
|
8060
8059
|
})(ANSWER_STATUS || {});
|
|
8060
|
+
var MINUTE_INTERVAL_MS = 6e4;
|
|
8061
8061
|
var useQuizStore = create7()(
|
|
8062
8062
|
devtools(
|
|
8063
8063
|
(set, get) => {
|
|
8064
8064
|
let timerInterval = null;
|
|
8065
|
+
let minuteCallbackInterval = null;
|
|
8065
8066
|
const startTimer = () => {
|
|
8066
8067
|
if (get().isFinished) {
|
|
8067
8068
|
return;
|
|
@@ -8080,6 +8081,35 @@ var useQuizStore = create7()(
|
|
|
8080
8081
|
timerInterval = null;
|
|
8081
8082
|
}
|
|
8082
8083
|
};
|
|
8084
|
+
const setMinuteCallback = (callback) => {
|
|
8085
|
+
set({ minuteCallback: callback });
|
|
8086
|
+
};
|
|
8087
|
+
const startMinuteCallback = () => {
|
|
8088
|
+
const { minuteCallback, isFinished } = get();
|
|
8089
|
+
if (isFinished || !minuteCallback) {
|
|
8090
|
+
return;
|
|
8091
|
+
}
|
|
8092
|
+
if (minuteCallbackInterval) {
|
|
8093
|
+
clearInterval(minuteCallbackInterval);
|
|
8094
|
+
}
|
|
8095
|
+
minuteCallbackInterval = setInterval(() => {
|
|
8096
|
+
const {
|
|
8097
|
+
minuteCallback: currentCallback,
|
|
8098
|
+
isFinished: currentIsFinished
|
|
8099
|
+
} = get();
|
|
8100
|
+
if (currentIsFinished || !currentCallback) {
|
|
8101
|
+
stopMinuteCallback();
|
|
8102
|
+
return;
|
|
8103
|
+
}
|
|
8104
|
+
currentCallback();
|
|
8105
|
+
}, MINUTE_INTERVAL_MS);
|
|
8106
|
+
};
|
|
8107
|
+
const stopMinuteCallback = () => {
|
|
8108
|
+
if (minuteCallbackInterval) {
|
|
8109
|
+
clearInterval(minuteCallbackInterval);
|
|
8110
|
+
minuteCallbackInterval = null;
|
|
8111
|
+
}
|
|
8112
|
+
};
|
|
8083
8113
|
return {
|
|
8084
8114
|
// Initial State
|
|
8085
8115
|
currentQuestionIndex: 0,
|
|
@@ -8090,6 +8120,7 @@ var useQuizStore = create7()(
|
|
|
8090
8120
|
isFinished: false,
|
|
8091
8121
|
userId: "",
|
|
8092
8122
|
variant: "default",
|
|
8123
|
+
minuteCallback: null,
|
|
8093
8124
|
questionsResult: null,
|
|
8094
8125
|
currentQuestionResult: null,
|
|
8095
8126
|
// Setters
|
|
@@ -8324,13 +8355,16 @@ var useQuizStore = create7()(
|
|
|
8324
8355
|
startQuiz: () => {
|
|
8325
8356
|
set({ isStarted: true, timeElapsed: 0 });
|
|
8326
8357
|
startTimer();
|
|
8358
|
+
startMinuteCallback();
|
|
8327
8359
|
},
|
|
8328
8360
|
finishQuiz: () => {
|
|
8329
8361
|
set({ isFinished: true });
|
|
8330
8362
|
stopTimer();
|
|
8363
|
+
stopMinuteCallback();
|
|
8331
8364
|
},
|
|
8332
8365
|
resetQuiz: () => {
|
|
8333
8366
|
stopTimer();
|
|
8367
|
+
stopMinuteCallback();
|
|
8334
8368
|
set({
|
|
8335
8369
|
currentQuestionIndex: 0,
|
|
8336
8370
|
selectedAnswers: {},
|
|
@@ -8340,6 +8374,7 @@ var useQuizStore = create7()(
|
|
|
8340
8374
|
isFinished: false,
|
|
8341
8375
|
userId: "",
|
|
8342
8376
|
variant: "default",
|
|
8377
|
+
minuteCallback: null,
|
|
8343
8378
|
questionsResult: null,
|
|
8344
8379
|
currentQuestionResult: null
|
|
8345
8380
|
});
|
|
@@ -8348,6 +8383,10 @@ var useQuizStore = create7()(
|
|
|
8348
8383
|
updateTime: (time) => set({ timeElapsed: time }),
|
|
8349
8384
|
startTimer,
|
|
8350
8385
|
stopTimer,
|
|
8386
|
+
// Minute Callback
|
|
8387
|
+
setMinuteCallback,
|
|
8388
|
+
startMinuteCallback,
|
|
8389
|
+
stopMinuteCallback,
|
|
8351
8390
|
// Getters
|
|
8352
8391
|
getCurrentQuestion: () => {
|
|
8353
8392
|
const { currentQuestionIndex, getActiveQuiz } = get();
|
|
@@ -9806,8 +9845,24 @@ var QuizFooter = forwardRef19(
|
|
|
9806
9845
|
] });
|
|
9807
9846
|
}
|
|
9808
9847
|
);
|
|
9848
|
+
var QuizBadge = ({ subtype }) => {
|
|
9849
|
+
switch (subtype) {
|
|
9850
|
+
case "PROVA":
|
|
9851
|
+
return /* @__PURE__ */ jsx39(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Prova" });
|
|
9852
|
+
case "ENEM":
|
|
9853
|
+
return /* @__PURE__ */ jsx39(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Enem" });
|
|
9854
|
+
case "VESTIBULAR":
|
|
9855
|
+
return /* @__PURE__ */ jsx39(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Vestibular" });
|
|
9856
|
+
case "SIMULADO":
|
|
9857
|
+
case null:
|
|
9858
|
+
return /* @__PURE__ */ jsx39(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Simulado" });
|
|
9859
|
+
default:
|
|
9860
|
+
return /* @__PURE__ */ jsx39(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: subtype });
|
|
9861
|
+
}
|
|
9862
|
+
};
|
|
9809
9863
|
var QuizResultHeaderTitle = forwardRef19(({ className, ...props }, ref) => {
|
|
9810
|
-
const {
|
|
9864
|
+
const { getActiveQuiz } = useQuizStore();
|
|
9865
|
+
const activeQuiz = getActiveQuiz();
|
|
9811
9866
|
return /* @__PURE__ */ jsxs32(
|
|
9812
9867
|
"div",
|
|
9813
9868
|
{
|
|
@@ -9816,7 +9871,7 @@ var QuizResultHeaderTitle = forwardRef19(({ className, ...props }, ref) => {
|
|
|
9816
9871
|
...props,
|
|
9817
9872
|
children: [
|
|
9818
9873
|
/* @__PURE__ */ jsx39("p", { className: "text-text-950 font-bold text-2xl", children: "Resultado" }),
|
|
9819
|
-
|
|
9874
|
+
/* @__PURE__ */ jsx39(QuizBadge, { subtype: activeQuiz?.quiz.subtype || null })
|
|
9820
9875
|
]
|
|
9821
9876
|
}
|
|
9822
9877
|
);
|
|
@@ -9975,7 +10030,9 @@ var QuizListResult = forwardRef19(({ className, onSubjectClick, ...props }, ref)
|
|
|
9975
10030
|
return {
|
|
9976
10031
|
subject: {
|
|
9977
10032
|
name: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria",
|
|
9978
|
-
id: subjectId
|
|
10033
|
+
id: subjectId,
|
|
10034
|
+
color: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.color ?? "",
|
|
10035
|
+
icon: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.icon ?? ""
|
|
9979
10036
|
},
|
|
9980
10037
|
correct,
|
|
9981
10038
|
incorrect,
|
|
@@ -9993,7 +10050,8 @@ var QuizListResult = forwardRef19(({ className, onSubjectClick, ...props }, ref)
|
|
|
9993
10050
|
header: subject.subject.name,
|
|
9994
10051
|
correct_answers: subject.correct,
|
|
9995
10052
|
incorrect_answers: subject.incorrect,
|
|
9996
|
-
icon:
|
|
10053
|
+
icon: subject.subject.icon || "Book",
|
|
10054
|
+
color: subject.subject.color || void 0,
|
|
9997
10055
|
direction: "row"
|
|
9998
10056
|
}
|
|
9999
10057
|
) }, subject.subject.id)) })
|