analytica-frontend-lib 1.1.61 → 1.1.63
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 +230 -211
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +199 -180
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.js +220 -201
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +193 -174
- package/dist/Card/index.mjs.map +1 -1
- package/dist/CheckBox/index.d.mts +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/IconRender/index.d.mts +2 -2
- package/dist/IconRender/index.d.ts +2 -2
- package/dist/IconRender/index.js +37 -18
- package/dist/IconRender/index.js.map +1 -1
- package/dist/IconRender/index.mjs +37 -18
- package/dist/IconRender/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/Quiz/index.js +495 -476
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +412 -393
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Radio/index.d.mts +2 -2
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Search/index.d.mts +1 -1
- package/dist/Search/index.d.ts +1 -1
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs.map +1 -1
- package/dist/SubjectInfo/index.d.mts +1 -1
- package/dist/SubjectInfo/index.d.ts +1 -1
- package/dist/SubjectInfo/index.js +8 -4
- package/dist/SubjectInfo/index.js.map +1 -1
- package/dist/SubjectInfo/index.mjs +8 -3
- package/dist/SubjectInfo/index.mjs.map +1 -1
- package/dist/{SubjectInfo-DZvZ5alE.d.mts → SubjectInfo-Dvt0OodP.d.mts} +2 -2
- package/dist/{SubjectInfo-DZvZ5alE.d.ts → SubjectInfo-Dvt0OodP.d.ts} +2 -2
- package/dist/ThemeToggle/index.js.map +1 -1
- package/dist/ThemeToggle/index.mjs.map +1 -1
- package/dist/index.css +15 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +475 -558
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +392 -475
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +15 -0
- package/dist/styles.css.map +1 -1
- package/dist/utils/index.d.mts +5 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.js +35 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.mjs +10 -0
- package/dist/utils/index.mjs.map +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4342,7 +4342,10 @@ import {
|
|
|
4342
4342
|
} from "phosphor-react";
|
|
4343
4343
|
|
|
4344
4344
|
// src/components/IconRender/IconRender.tsx
|
|
4345
|
+
import { cloneElement as cloneElement4 } from "react";
|
|
4345
4346
|
import * as PhosphorIcons from "phosphor-react";
|
|
4347
|
+
|
|
4348
|
+
// src/assets/icons/subjects/ChatPT.tsx
|
|
4346
4349
|
import { jsx as jsx27, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4347
4350
|
var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
4348
4351
|
"svg",
|
|
@@ -4377,7 +4380,10 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
|
4377
4380
|
]
|
|
4378
4381
|
}
|
|
4379
4382
|
);
|
|
4380
|
-
|
|
4383
|
+
|
|
4384
|
+
// src/assets/icons/subjects/ChatEN.tsx
|
|
4385
|
+
import { jsx as jsx28, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4386
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs21(
|
|
4381
4387
|
"svg",
|
|
4382
4388
|
{
|
|
4383
4389
|
width: size,
|
|
@@ -4386,21 +4392,21 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
|
4386
4392
|
fill: "none",
|
|
4387
4393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4388
4394
|
children: [
|
|
4389
|
-
/* @__PURE__ */
|
|
4395
|
+
/* @__PURE__ */ jsx28(
|
|
4390
4396
|
"path",
|
|
4391
4397
|
{
|
|
4392
4398
|
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",
|
|
4393
4399
|
fill: color
|
|
4394
4400
|
}
|
|
4395
4401
|
),
|
|
4396
|
-
/* @__PURE__ */
|
|
4402
|
+
/* @__PURE__ */ jsx28(
|
|
4397
4403
|
"path",
|
|
4398
4404
|
{
|
|
4399
4405
|
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
4400
4406
|
fill: color
|
|
4401
4407
|
}
|
|
4402
4408
|
),
|
|
4403
|
-
/* @__PURE__ */
|
|
4409
|
+
/* @__PURE__ */ jsx28(
|
|
4404
4410
|
"path",
|
|
4405
4411
|
{
|
|
4406
4412
|
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",
|
|
@@ -4410,7 +4416,10 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
|
4410
4416
|
]
|
|
4411
4417
|
}
|
|
4412
4418
|
);
|
|
4413
|
-
|
|
4419
|
+
|
|
4420
|
+
// src/assets/icons/subjects/ChatES.tsx
|
|
4421
|
+
import { jsx as jsx29, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
4422
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs22(
|
|
4414
4423
|
"svg",
|
|
4415
4424
|
{
|
|
4416
4425
|
width: size,
|
|
@@ -4419,21 +4428,21 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
|
4419
4428
|
fill: "none",
|
|
4420
4429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4421
4430
|
children: [
|
|
4422
|
-
/* @__PURE__ */
|
|
4431
|
+
/* @__PURE__ */ jsx29(
|
|
4423
4432
|
"path",
|
|
4424
4433
|
{
|
|
4425
4434
|
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",
|
|
4426
4435
|
fill: color
|
|
4427
4436
|
}
|
|
4428
4437
|
),
|
|
4429
|
-
/* @__PURE__ */
|
|
4438
|
+
/* @__PURE__ */ jsx29(
|
|
4430
4439
|
"path",
|
|
4431
4440
|
{
|
|
4432
4441
|
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",
|
|
4433
4442
|
fill: color
|
|
4434
4443
|
}
|
|
4435
4444
|
),
|
|
4436
|
-
/* @__PURE__ */
|
|
4445
|
+
/* @__PURE__ */ jsx29(
|
|
4437
4446
|
"path",
|
|
4438
4447
|
{
|
|
4439
4448
|
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",
|
|
@@ -4443,29 +4452,39 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ jsxs20(
|
|
|
4443
4452
|
]
|
|
4444
4453
|
}
|
|
4445
4454
|
);
|
|
4455
|
+
|
|
4456
|
+
// src/components/IconRender/IconRender.tsx
|
|
4457
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
4446
4458
|
var IconRender = ({
|
|
4447
4459
|
iconName,
|
|
4448
4460
|
color = "#000000",
|
|
4449
4461
|
size = 24,
|
|
4450
4462
|
weight = "regular"
|
|
4451
4463
|
}) => {
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4464
|
+
if (typeof iconName === "string") {
|
|
4465
|
+
switch (iconName) {
|
|
4466
|
+
case "Chat_PT":
|
|
4467
|
+
return /* @__PURE__ */ jsx30(ChatPT, { size, color });
|
|
4468
|
+
case "Chat_EN":
|
|
4469
|
+
return /* @__PURE__ */ jsx30(ChatEN, { size, color });
|
|
4470
|
+
case "Chat_ES":
|
|
4471
|
+
return /* @__PURE__ */ jsx30(ChatES, { size, color });
|
|
4472
|
+
default: {
|
|
4473
|
+
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
4474
|
+
return /* @__PURE__ */ jsx30(IconComponent, { size, color, weight });
|
|
4475
|
+
}
|
|
4462
4476
|
}
|
|
4477
|
+
} else {
|
|
4478
|
+
return cloneElement4(iconName, {
|
|
4479
|
+
size,
|
|
4480
|
+
color: "currentColor"
|
|
4481
|
+
});
|
|
4463
4482
|
}
|
|
4464
4483
|
};
|
|
4465
4484
|
var IconRender_default = IconRender;
|
|
4466
4485
|
|
|
4467
4486
|
// src/components/Card/Card.tsx
|
|
4468
|
-
import { Fragment as Fragment5, jsx as
|
|
4487
|
+
import { Fragment as Fragment5, jsx as jsx31, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
4469
4488
|
var CARD_BASE_CLASSES = {
|
|
4470
4489
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
4471
4490
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -4507,7 +4526,7 @@ var CardBase = forwardRef12(
|
|
|
4507
4526
|
const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
|
|
4508
4527
|
const layoutClasses = CARD_LAYOUT_CLASSES[layout];
|
|
4509
4528
|
const cursorClasses = CARD_CURSOR_CLASSES[cursor];
|
|
4510
|
-
return /* @__PURE__ */
|
|
4529
|
+
return /* @__PURE__ */ jsx31(
|
|
4511
4530
|
"div",
|
|
4512
4531
|
{
|
|
4513
4532
|
ref,
|
|
@@ -4565,7 +4584,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4565
4584
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
4566
4585
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
4567
4586
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
4568
|
-
return /* @__PURE__ */
|
|
4587
|
+
return /* @__PURE__ */ jsxs23(
|
|
4569
4588
|
"div",
|
|
4570
4589
|
{
|
|
4571
4590
|
ref,
|
|
@@ -4575,7 +4594,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4575
4594
|
),
|
|
4576
4595
|
...props,
|
|
4577
4596
|
children: [
|
|
4578
|
-
/* @__PURE__ */
|
|
4597
|
+
/* @__PURE__ */ jsxs23(
|
|
4579
4598
|
"div",
|
|
4580
4599
|
{
|
|
4581
4600
|
className: cn(
|
|
@@ -4584,7 +4603,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4584
4603
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
4585
4604
|
),
|
|
4586
4605
|
children: [
|
|
4587
|
-
/* @__PURE__ */
|
|
4606
|
+
/* @__PURE__ */ jsx31(
|
|
4588
4607
|
"span",
|
|
4589
4608
|
{
|
|
4590
4609
|
className: cn(
|
|
@@ -4594,7 +4613,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4594
4613
|
children: icon
|
|
4595
4614
|
}
|
|
4596
4615
|
),
|
|
4597
|
-
/* @__PURE__ */
|
|
4616
|
+
/* @__PURE__ */ jsx31(
|
|
4598
4617
|
Text_default,
|
|
4599
4618
|
{
|
|
4600
4619
|
size: "2xs",
|
|
@@ -4603,7 +4622,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4603
4622
|
children: title
|
|
4604
4623
|
}
|
|
4605
4624
|
),
|
|
4606
|
-
/* @__PURE__ */
|
|
4625
|
+
/* @__PURE__ */ jsx31(
|
|
4607
4626
|
"p",
|
|
4608
4627
|
{
|
|
4609
4628
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -4613,8 +4632,8 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4613
4632
|
]
|
|
4614
4633
|
}
|
|
4615
4634
|
),
|
|
4616
|
-
extended && /* @__PURE__ */
|
|
4617
|
-
/* @__PURE__ */
|
|
4635
|
+
extended && /* @__PURE__ */ jsxs23("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
4636
|
+
/* @__PURE__ */ jsx31(
|
|
4618
4637
|
"p",
|
|
4619
4638
|
{
|
|
4620
4639
|
className: cn(
|
|
@@ -4624,7 +4643,7 @@ var CardActivitiesResults = forwardRef12(
|
|
|
4624
4643
|
children: header
|
|
4625
4644
|
}
|
|
4626
4645
|
),
|
|
4627
|
-
/* @__PURE__ */
|
|
4646
|
+
/* @__PURE__ */ jsx31(Badge_default, { size: "large", action: "info", children: description })
|
|
4628
4647
|
] })
|
|
4629
4648
|
]
|
|
4630
4649
|
}
|
|
@@ -4643,7 +4662,7 @@ var CardQuestions = forwardRef12(
|
|
|
4643
4662
|
const isDone = state === "done";
|
|
4644
4663
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
4645
4664
|
const buttonLabel = isDone ? "Ver Quest\xE3o" : "Responder";
|
|
4646
|
-
return /* @__PURE__ */
|
|
4665
|
+
return /* @__PURE__ */ jsxs23(
|
|
4647
4666
|
CardBase,
|
|
4648
4667
|
{
|
|
4649
4668
|
ref,
|
|
@@ -4653,10 +4672,10 @@ var CardQuestions = forwardRef12(
|
|
|
4653
4672
|
className: cn("justify-between gap-4", className),
|
|
4654
4673
|
...props,
|
|
4655
4674
|
children: [
|
|
4656
|
-
/* @__PURE__ */
|
|
4657
|
-
/* @__PURE__ */
|
|
4658
|
-
/* @__PURE__ */
|
|
4659
|
-
/* @__PURE__ */
|
|
4675
|
+
/* @__PURE__ */ jsxs23("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
4676
|
+
/* @__PURE__ */ jsx31("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
4677
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4678
|
+
/* @__PURE__ */ jsx31(
|
|
4660
4679
|
Badge_default,
|
|
4661
4680
|
{
|
|
4662
4681
|
size: "medium",
|
|
@@ -4665,13 +4684,13 @@ var CardQuestions = forwardRef12(
|
|
|
4665
4684
|
children: stateLabel
|
|
4666
4685
|
}
|
|
4667
4686
|
),
|
|
4668
|
-
/* @__PURE__ */
|
|
4687
|
+
/* @__PURE__ */ jsxs23("span", { className: "flex flex-row items-center gap-1 text-text-700 text-xs", children: [
|
|
4669
4688
|
isDone ? "Nota" : "Sem nota",
|
|
4670
|
-
isDone && /* @__PURE__ */
|
|
4689
|
+
isDone && /* @__PURE__ */ jsx31(Badge_default, { size: "medium", action: "success", children: "00" })
|
|
4671
4690
|
] })
|
|
4672
4691
|
] })
|
|
4673
4692
|
] }),
|
|
4674
|
-
/* @__PURE__ */
|
|
4693
|
+
/* @__PURE__ */ jsx31("span", { className: "flex-shrink-0", children: /* @__PURE__ */ jsx31(
|
|
4675
4694
|
Button_default,
|
|
4676
4695
|
{
|
|
4677
4696
|
size: "extra-small",
|
|
@@ -4702,19 +4721,19 @@ var CardProgress = forwardRef12(
|
|
|
4702
4721
|
}, ref) => {
|
|
4703
4722
|
const isHorizontal = direction === "horizontal";
|
|
4704
4723
|
const contentComponent = {
|
|
4705
|
-
horizontal: /* @__PURE__ */
|
|
4706
|
-
showDates && /* @__PURE__ */
|
|
4707
|
-
initialDate && /* @__PURE__ */
|
|
4708
|
-
/* @__PURE__ */
|
|
4709
|
-
/* @__PURE__ */
|
|
4724
|
+
horizontal: /* @__PURE__ */ jsxs23(Fragment5, { children: [
|
|
4725
|
+
showDates && /* @__PURE__ */ jsxs23("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4726
|
+
initialDate && /* @__PURE__ */ jsxs23("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
4727
|
+
/* @__PURE__ */ jsx31("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
4728
|
+
/* @__PURE__ */ jsx31("p", { className: "text-text-600", children: initialDate })
|
|
4710
4729
|
] }),
|
|
4711
|
-
endDate && /* @__PURE__ */
|
|
4712
|
-
/* @__PURE__ */
|
|
4713
|
-
/* @__PURE__ */
|
|
4730
|
+
endDate && /* @__PURE__ */ jsxs23("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
4731
|
+
/* @__PURE__ */ jsx31("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
4732
|
+
/* @__PURE__ */ jsx31("p", { className: "text-text-600", children: endDate })
|
|
4714
4733
|
] })
|
|
4715
4734
|
] }),
|
|
4716
|
-
/* @__PURE__ */
|
|
4717
|
-
/* @__PURE__ */
|
|
4735
|
+
/* @__PURE__ */ jsxs23("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
4736
|
+
/* @__PURE__ */ jsx31(
|
|
4718
4737
|
ProgressBar_default,
|
|
4719
4738
|
{
|
|
4720
4739
|
size: "small",
|
|
@@ -4723,7 +4742,7 @@ var CardProgress = forwardRef12(
|
|
|
4723
4742
|
"data-testid": "progress-bar"
|
|
4724
4743
|
}
|
|
4725
4744
|
),
|
|
4726
|
-
/* @__PURE__ */
|
|
4745
|
+
/* @__PURE__ */ jsxs23(
|
|
4727
4746
|
Text_default,
|
|
4728
4747
|
{
|
|
4729
4748
|
size: "xs",
|
|
@@ -4739,9 +4758,9 @@ var CardProgress = forwardRef12(
|
|
|
4739
4758
|
)
|
|
4740
4759
|
] })
|
|
4741
4760
|
] }),
|
|
4742
|
-
vertical: /* @__PURE__ */
|
|
4761
|
+
vertical: /* @__PURE__ */ jsx31("p", { className: "text-sm text-text-800", children: subhead })
|
|
4743
4762
|
};
|
|
4744
|
-
return /* @__PURE__ */
|
|
4763
|
+
return /* @__PURE__ */ jsxs23(
|
|
4745
4764
|
CardBase,
|
|
4746
4765
|
{
|
|
4747
4766
|
ref,
|
|
@@ -4752,20 +4771,20 @@ var CardProgress = forwardRef12(
|
|
|
4752
4771
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
4753
4772
|
...props,
|
|
4754
4773
|
children: [
|
|
4755
|
-
/* @__PURE__ */
|
|
4774
|
+
/* @__PURE__ */ jsx31(
|
|
4756
4775
|
"div",
|
|
4757
4776
|
{
|
|
4758
4777
|
className: cn(
|
|
4759
4778
|
"flex justify-center items-center [&>svg]:size-6 text-text-950",
|
|
4760
4779
|
isHorizontal ? "min-w-[80px] min-h-[80px] rounded-l-xl" : "min-h-[50px] w-full rounded-t-xl",
|
|
4761
|
-
!color.startsWith("#") ?
|
|
4780
|
+
!color.startsWith("#") ? `${color}` : ""
|
|
4762
4781
|
),
|
|
4763
4782
|
style: color.startsWith("#") ? { backgroundColor: color } : void 0,
|
|
4764
4783
|
"data-testid": "icon-container",
|
|
4765
4784
|
children: icon
|
|
4766
4785
|
}
|
|
4767
4786
|
),
|
|
4768
|
-
/* @__PURE__ */
|
|
4787
|
+
/* @__PURE__ */ jsxs23(
|
|
4769
4788
|
"div",
|
|
4770
4789
|
{
|
|
4771
4790
|
className: cn(
|
|
@@ -4773,7 +4792,7 @@ var CardProgress = forwardRef12(
|
|
|
4773
4792
|
!isHorizontal && "gap-4"
|
|
4774
4793
|
),
|
|
4775
4794
|
children: [
|
|
4776
|
-
/* @__PURE__ */
|
|
4795
|
+
/* @__PURE__ */ jsx31(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
4777
4796
|
contentComponent[direction]
|
|
4778
4797
|
]
|
|
4779
4798
|
}
|
|
@@ -4793,7 +4812,7 @@ var CardTopic = forwardRef12(
|
|
|
4793
4812
|
className = "",
|
|
4794
4813
|
...props
|
|
4795
4814
|
}, ref) => {
|
|
4796
|
-
return /* @__PURE__ */
|
|
4815
|
+
return /* @__PURE__ */ jsxs23(
|
|
4797
4816
|
CardBase,
|
|
4798
4817
|
{
|
|
4799
4818
|
ref,
|
|
@@ -4804,13 +4823,13 @@ var CardTopic = forwardRef12(
|
|
|
4804
4823
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
4805
4824
|
...props,
|
|
4806
4825
|
children: [
|
|
4807
|
-
subHead && /* @__PURE__ */
|
|
4808
|
-
/* @__PURE__ */
|
|
4809
|
-
index < subHead.length - 1 && /* @__PURE__ */
|
|
4826
|
+
subHead && /* @__PURE__ */ jsx31("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ jsxs23(Fragment4, { children: [
|
|
4827
|
+
/* @__PURE__ */ jsx31("p", { children: text }),
|
|
4828
|
+
index < subHead.length - 1 && /* @__PURE__ */ jsx31("p", { children: "\u2022" })
|
|
4810
4829
|
] }, `${text} - ${index}`)) }),
|
|
4811
|
-
/* @__PURE__ */
|
|
4812
|
-
/* @__PURE__ */
|
|
4813
|
-
/* @__PURE__ */
|
|
4830
|
+
/* @__PURE__ */ jsx31("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
4831
|
+
/* @__PURE__ */ jsxs23("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
4832
|
+
/* @__PURE__ */ jsx31(
|
|
4814
4833
|
ProgressBar_default,
|
|
4815
4834
|
{
|
|
4816
4835
|
size: "small",
|
|
@@ -4819,7 +4838,7 @@ var CardTopic = forwardRef12(
|
|
|
4819
4838
|
"data-testid": "progress-bar"
|
|
4820
4839
|
}
|
|
4821
4840
|
),
|
|
4822
|
-
showPercentage && /* @__PURE__ */
|
|
4841
|
+
showPercentage && /* @__PURE__ */ jsxs23(
|
|
4823
4842
|
Text_default,
|
|
4824
4843
|
{
|
|
4825
4844
|
size: "xs",
|
|
@@ -4853,7 +4872,7 @@ var CardPerformance = forwardRef12(
|
|
|
4853
4872
|
...props
|
|
4854
4873
|
}, ref) => {
|
|
4855
4874
|
const hasProgress = progress !== void 0;
|
|
4856
|
-
return /* @__PURE__ */
|
|
4875
|
+
return /* @__PURE__ */ jsxs23(
|
|
4857
4876
|
CardBase,
|
|
4858
4877
|
{
|
|
4859
4878
|
ref,
|
|
@@ -4867,10 +4886,10 @@ var CardPerformance = forwardRef12(
|
|
|
4867
4886
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
4868
4887
|
...props,
|
|
4869
4888
|
children: [
|
|
4870
|
-
/* @__PURE__ */
|
|
4871
|
-
/* @__PURE__ */
|
|
4872
|
-
/* @__PURE__ */
|
|
4873
|
-
actionVariant === "button" && /* @__PURE__ */
|
|
4889
|
+
/* @__PURE__ */ jsxs23("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
4890
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
4891
|
+
/* @__PURE__ */ jsx31("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4892
|
+
actionVariant === "button" && /* @__PURE__ */ jsx31(
|
|
4874
4893
|
Button_default,
|
|
4875
4894
|
{
|
|
4876
4895
|
variant: "outline",
|
|
@@ -4881,16 +4900,16 @@ var CardPerformance = forwardRef12(
|
|
|
4881
4900
|
}
|
|
4882
4901
|
)
|
|
4883
4902
|
] }),
|
|
4884
|
-
/* @__PURE__ */
|
|
4903
|
+
/* @__PURE__ */ jsx31("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ jsx31(
|
|
4885
4904
|
ProgressBar_default,
|
|
4886
4905
|
{
|
|
4887
4906
|
value: progress,
|
|
4888
4907
|
label: `${progress}% ${labelProgress}`,
|
|
4889
4908
|
variant: progressVariant
|
|
4890
4909
|
}
|
|
4891
|
-
) : /* @__PURE__ */
|
|
4910
|
+
) : /* @__PURE__ */ jsx31("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
4892
4911
|
] }),
|
|
4893
|
-
actionVariant == "caret" && /* @__PURE__ */
|
|
4912
|
+
actionVariant == "caret" && /* @__PURE__ */ jsx31(
|
|
4894
4913
|
CaretRight2,
|
|
4895
4914
|
{
|
|
4896
4915
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -4914,7 +4933,7 @@ var CardResults = forwardRef12(
|
|
|
4914
4933
|
...props
|
|
4915
4934
|
}, ref) => {
|
|
4916
4935
|
const isRow = direction == "row";
|
|
4917
|
-
return /* @__PURE__ */
|
|
4936
|
+
return /* @__PURE__ */ jsxs23(
|
|
4918
4937
|
CardBase,
|
|
4919
4938
|
{
|
|
4920
4939
|
ref,
|
|
@@ -4924,7 +4943,7 @@ var CardResults = forwardRef12(
|
|
|
4924
4943
|
className: cn("items-stretch cursor-pointer pr-4", className),
|
|
4925
4944
|
...props,
|
|
4926
4945
|
children: [
|
|
4927
|
-
/* @__PURE__ */
|
|
4946
|
+
/* @__PURE__ */ jsx31(
|
|
4928
4947
|
"div",
|
|
4929
4948
|
{
|
|
4930
4949
|
className: cn(
|
|
@@ -4933,11 +4952,11 @@ var CardResults = forwardRef12(
|
|
|
4933
4952
|
style: {
|
|
4934
4953
|
backgroundColor: color
|
|
4935
4954
|
},
|
|
4936
|
-
children: /* @__PURE__ */
|
|
4955
|
+
children: /* @__PURE__ */ jsx31(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
4937
4956
|
}
|
|
4938
4957
|
),
|
|
4939
|
-
/* @__PURE__ */
|
|
4940
|
-
/* @__PURE__ */
|
|
4958
|
+
/* @__PURE__ */ jsxs23("div", { className: "w-full flex flex-row justify-between items-center", children: [
|
|
4959
|
+
/* @__PURE__ */ jsxs23(
|
|
4941
4960
|
"div",
|
|
4942
4961
|
{
|
|
4943
4962
|
className: cn(
|
|
@@ -4945,28 +4964,28 @@ var CardResults = forwardRef12(
|
|
|
4945
4964
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
4946
4965
|
),
|
|
4947
4966
|
children: [
|
|
4948
|
-
/* @__PURE__ */
|
|
4949
|
-
/* @__PURE__ */
|
|
4950
|
-
/* @__PURE__ */
|
|
4967
|
+
/* @__PURE__ */ jsx31("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
|
|
4968
|
+
/* @__PURE__ */ jsxs23("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
|
|
4969
|
+
/* @__PURE__ */ jsxs23(
|
|
4951
4970
|
Badge_default,
|
|
4952
4971
|
{
|
|
4953
4972
|
action: "success",
|
|
4954
4973
|
variant: "solid",
|
|
4955
4974
|
size: "large",
|
|
4956
|
-
iconLeft: /* @__PURE__ */
|
|
4975
|
+
iconLeft: /* @__PURE__ */ jsx31(CheckCircle3, {}),
|
|
4957
4976
|
children: [
|
|
4958
4977
|
correct_answers,
|
|
4959
4978
|
" Corretas"
|
|
4960
4979
|
]
|
|
4961
4980
|
}
|
|
4962
4981
|
),
|
|
4963
|
-
/* @__PURE__ */
|
|
4982
|
+
/* @__PURE__ */ jsxs23(
|
|
4964
4983
|
Badge_default,
|
|
4965
4984
|
{
|
|
4966
4985
|
action: "error",
|
|
4967
4986
|
variant: "solid",
|
|
4968
4987
|
size: "large",
|
|
4969
|
-
iconLeft: /* @__PURE__ */
|
|
4988
|
+
iconLeft: /* @__PURE__ */ jsx31(XCircle2, {}),
|
|
4970
4989
|
children: [
|
|
4971
4990
|
incorrect_answers,
|
|
4972
4991
|
" Incorretas"
|
|
@@ -4977,7 +4996,7 @@ var CardResults = forwardRef12(
|
|
|
4977
4996
|
]
|
|
4978
4997
|
}
|
|
4979
4998
|
),
|
|
4980
|
-
/* @__PURE__ */
|
|
4999
|
+
/* @__PURE__ */ jsx31(CaretRight2, { className: "min-w-6 min-h-6 text-text-800" })
|
|
4981
5000
|
] })
|
|
4982
5001
|
]
|
|
4983
5002
|
}
|
|
@@ -4998,7 +5017,7 @@ var CardStatus = forwardRef12(
|
|
|
4998
5017
|
return "Em branco";
|
|
4999
5018
|
}
|
|
5000
5019
|
};
|
|
5001
|
-
return /* @__PURE__ */
|
|
5020
|
+
return /* @__PURE__ */ jsx31(
|
|
5002
5021
|
CardBase,
|
|
5003
5022
|
{
|
|
5004
5023
|
ref,
|
|
@@ -5007,22 +5026,22 @@ var CardStatus = forwardRef12(
|
|
|
5007
5026
|
minHeight: "medium",
|
|
5008
5027
|
className: cn("items-center cursor-pointer", className),
|
|
5009
5028
|
...props,
|
|
5010
|
-
children: /* @__PURE__ */
|
|
5011
|
-
/* @__PURE__ */
|
|
5012
|
-
/* @__PURE__ */
|
|
5013
|
-
status && /* @__PURE__ */
|
|
5029
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
5030
|
+
/* @__PURE__ */ jsx31("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
5031
|
+
/* @__PURE__ */ jsxs23("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
5032
|
+
status && /* @__PURE__ */ jsx31(
|
|
5014
5033
|
Badge_default,
|
|
5015
5034
|
{
|
|
5016
5035
|
action: status == "correct" ? "success" : "error",
|
|
5017
5036
|
variant: "solid",
|
|
5018
5037
|
size: "medium",
|
|
5019
|
-
iconLeft: status == "correct" ? /* @__PURE__ */
|
|
5038
|
+
iconLeft: status == "correct" ? /* @__PURE__ */ jsx31(CheckCircle3, {}) : /* @__PURE__ */ jsx31(XCircle2, {}),
|
|
5020
5039
|
children: getLabelBadge(status)
|
|
5021
5040
|
}
|
|
5022
5041
|
),
|
|
5023
|
-
label && /* @__PURE__ */
|
|
5042
|
+
label && /* @__PURE__ */ jsx31("p", { className: "text-sm text-text-800", children: label })
|
|
5024
5043
|
] }),
|
|
5025
|
-
/* @__PURE__ */
|
|
5044
|
+
/* @__PURE__ */ jsx31(CaretRight2, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
5026
5045
|
] })
|
|
5027
5046
|
}
|
|
5028
5047
|
);
|
|
@@ -5030,7 +5049,7 @@ var CardStatus = forwardRef12(
|
|
|
5030
5049
|
);
|
|
5031
5050
|
var CardSettings = forwardRef12(
|
|
5032
5051
|
({ header, className, icon, ...props }, ref) => {
|
|
5033
|
-
return /* @__PURE__ */
|
|
5052
|
+
return /* @__PURE__ */ jsxs23(
|
|
5034
5053
|
CardBase,
|
|
5035
5054
|
{
|
|
5036
5055
|
ref,
|
|
@@ -5043,9 +5062,9 @@ var CardSettings = forwardRef12(
|
|
|
5043
5062
|
),
|
|
5044
5063
|
...props,
|
|
5045
5064
|
children: [
|
|
5046
|
-
/* @__PURE__ */
|
|
5047
|
-
/* @__PURE__ */
|
|
5048
|
-
/* @__PURE__ */
|
|
5065
|
+
/* @__PURE__ */ jsx31("span", { className: "[&>svg]:size-6", children: icon }),
|
|
5066
|
+
/* @__PURE__ */ jsx31("p", { className: "w-full text-sm truncate", children: header }),
|
|
5067
|
+
/* @__PURE__ */ jsx31(CaretRight2, { size: 24, className: "cursor-pointer" })
|
|
5049
5068
|
]
|
|
5050
5069
|
}
|
|
5051
5070
|
);
|
|
@@ -5053,7 +5072,7 @@ var CardSettings = forwardRef12(
|
|
|
5053
5072
|
);
|
|
5054
5073
|
var CardSupport = forwardRef12(
|
|
5055
5074
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
5056
|
-
return /* @__PURE__ */
|
|
5075
|
+
return /* @__PURE__ */ jsxs23(
|
|
5057
5076
|
CardBase,
|
|
5058
5077
|
{
|
|
5059
5078
|
ref,
|
|
@@ -5066,7 +5085,7 @@ var CardSupport = forwardRef12(
|
|
|
5066
5085
|
),
|
|
5067
5086
|
...props,
|
|
5068
5087
|
children: [
|
|
5069
|
-
/* @__PURE__ */
|
|
5088
|
+
/* @__PURE__ */ jsxs23(
|
|
5070
5089
|
"div",
|
|
5071
5090
|
{
|
|
5072
5091
|
className: cn(
|
|
@@ -5074,12 +5093,12 @@ var CardSupport = forwardRef12(
|
|
|
5074
5093
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
5075
5094
|
),
|
|
5076
5095
|
children: [
|
|
5077
|
-
/* @__PURE__ */
|
|
5078
|
-
/* @__PURE__ */
|
|
5096
|
+
/* @__PURE__ */ jsx31("span", { className: "w-full min-w-0", children: /* @__PURE__ */ jsx31("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
5097
|
+
/* @__PURE__ */ jsx31("span", { className: "flex flex-row gap-1", children })
|
|
5079
5098
|
]
|
|
5080
5099
|
}
|
|
5081
5100
|
),
|
|
5082
|
-
/* @__PURE__ */
|
|
5101
|
+
/* @__PURE__ */ jsx31(CaretRight2, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
5083
5102
|
]
|
|
5084
5103
|
}
|
|
5085
5104
|
);
|
|
@@ -5099,7 +5118,7 @@ var CardForum = forwardRef12(
|
|
|
5099
5118
|
hour,
|
|
5100
5119
|
...props
|
|
5101
5120
|
}, ref) => {
|
|
5102
|
-
return /* @__PURE__ */
|
|
5121
|
+
return /* @__PURE__ */ jsxs23(
|
|
5103
5122
|
CardBase,
|
|
5104
5123
|
{
|
|
5105
5124
|
ref,
|
|
@@ -5110,7 +5129,7 @@ var CardForum = forwardRef12(
|
|
|
5110
5129
|
className: cn("w-auto h-auto gap-3", className),
|
|
5111
5130
|
...props,
|
|
5112
5131
|
children: [
|
|
5113
|
-
/* @__PURE__ */
|
|
5132
|
+
/* @__PURE__ */ jsx31(
|
|
5114
5133
|
"button",
|
|
5115
5134
|
{
|
|
5116
5135
|
type: "button",
|
|
@@ -5119,18 +5138,18 @@ var CardForum = forwardRef12(
|
|
|
5119
5138
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
5120
5139
|
}
|
|
5121
5140
|
),
|
|
5122
|
-
/* @__PURE__ */
|
|
5123
|
-
/* @__PURE__ */
|
|
5124
|
-
/* @__PURE__ */
|
|
5125
|
-
/* @__PURE__ */
|
|
5141
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
5142
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
5143
|
+
/* @__PURE__ */ jsx31("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
5144
|
+
/* @__PURE__ */ jsxs23("p", { className: "text-xs text-text-600", children: [
|
|
5126
5145
|
"\u2022 ",
|
|
5127
5146
|
date,
|
|
5128
5147
|
" \u2022 ",
|
|
5129
5148
|
hour
|
|
5130
5149
|
] })
|
|
5131
5150
|
] }),
|
|
5132
|
-
/* @__PURE__ */
|
|
5133
|
-
/* @__PURE__ */
|
|
5151
|
+
/* @__PURE__ */ jsx31("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
5152
|
+
/* @__PURE__ */ jsxs23(
|
|
5134
5153
|
"button",
|
|
5135
5154
|
{
|
|
5136
5155
|
type: "button",
|
|
@@ -5138,8 +5157,8 @@ var CardForum = forwardRef12(
|
|
|
5138
5157
|
onClick: () => onClickComments?.(valueComments),
|
|
5139
5158
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
5140
5159
|
children: [
|
|
5141
|
-
/* @__PURE__ */
|
|
5142
|
-
/* @__PURE__ */
|
|
5160
|
+
/* @__PURE__ */ jsx31(ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
5161
|
+
/* @__PURE__ */ jsxs23("p", { className: "text-xs", children: [
|
|
5143
5162
|
comments,
|
|
5144
5163
|
" respostas"
|
|
5145
5164
|
] })
|
|
@@ -5242,12 +5261,12 @@ var CardAudio = forwardRef12(
|
|
|
5242
5261
|
};
|
|
5243
5262
|
const getVolumeIcon = () => {
|
|
5244
5263
|
if (volume === 0) {
|
|
5245
|
-
return /* @__PURE__ */
|
|
5264
|
+
return /* @__PURE__ */ jsx31(SpeakerSimpleX, { size: 24 });
|
|
5246
5265
|
}
|
|
5247
5266
|
if (volume < 0.5) {
|
|
5248
|
-
return /* @__PURE__ */
|
|
5267
|
+
return /* @__PURE__ */ jsx31(SpeakerLow, { size: 24 });
|
|
5249
5268
|
}
|
|
5250
|
-
return /* @__PURE__ */
|
|
5269
|
+
return /* @__PURE__ */ jsx31(SpeakerHigh, { size: 24 });
|
|
5251
5270
|
};
|
|
5252
5271
|
useEffect9(() => {
|
|
5253
5272
|
const handleClickOutside = (event) => {
|
|
@@ -5263,7 +5282,7 @@ var CardAudio = forwardRef12(
|
|
|
5263
5282
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
5264
5283
|
};
|
|
5265
5284
|
}, []);
|
|
5266
|
-
return /* @__PURE__ */
|
|
5285
|
+
return /* @__PURE__ */ jsxs23(
|
|
5267
5286
|
CardBase,
|
|
5268
5287
|
{
|
|
5269
5288
|
ref,
|
|
@@ -5276,7 +5295,7 @@ var CardAudio = forwardRef12(
|
|
|
5276
5295
|
),
|
|
5277
5296
|
...props,
|
|
5278
5297
|
children: [
|
|
5279
|
-
/* @__PURE__ */
|
|
5298
|
+
/* @__PURE__ */ jsx31(
|
|
5280
5299
|
"audio",
|
|
5281
5300
|
{
|
|
5282
5301
|
ref: audioRef,
|
|
@@ -5288,7 +5307,7 @@ var CardAudio = forwardRef12(
|
|
|
5288
5307
|
onEnded: handleEnded,
|
|
5289
5308
|
"data-testid": "audio-element",
|
|
5290
5309
|
"aria-label": title,
|
|
5291
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */
|
|
5310
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ jsx31(
|
|
5292
5311
|
"track",
|
|
5293
5312
|
{
|
|
5294
5313
|
kind: track.kind,
|
|
@@ -5298,7 +5317,7 @@ var CardAudio = forwardRef12(
|
|
|
5298
5317
|
default: track.default
|
|
5299
5318
|
},
|
|
5300
5319
|
track.src
|
|
5301
|
-
)) : /* @__PURE__ */
|
|
5320
|
+
)) : /* @__PURE__ */ jsx31(
|
|
5302
5321
|
"track",
|
|
5303
5322
|
{
|
|
5304
5323
|
kind: "captions",
|
|
@@ -5309,7 +5328,7 @@ var CardAudio = forwardRef12(
|
|
|
5309
5328
|
)
|
|
5310
5329
|
}
|
|
5311
5330
|
),
|
|
5312
|
-
/* @__PURE__ */
|
|
5331
|
+
/* @__PURE__ */ jsx31(
|
|
5313
5332
|
"button",
|
|
5314
5333
|
{
|
|
5315
5334
|
type: "button",
|
|
@@ -5317,14 +5336,14 @@ var CardAudio = forwardRef12(
|
|
|
5317
5336
|
disabled: !src,
|
|
5318
5337
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
5319
5338
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
5320
|
-
children: isPlaying ? /* @__PURE__ */
|
|
5321
|
-
/* @__PURE__ */
|
|
5322
|
-
/* @__PURE__ */
|
|
5323
|
-
] }) }) : /* @__PURE__ */
|
|
5339
|
+
children: isPlaying ? /* @__PURE__ */ jsx31("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ jsxs23("div", { className: "flex gap-0.5", children: [
|
|
5340
|
+
/* @__PURE__ */ jsx31("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
5341
|
+
/* @__PURE__ */ jsx31("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
5342
|
+
] }) }) : /* @__PURE__ */ jsx31(Play, { size: 24 })
|
|
5324
5343
|
}
|
|
5325
5344
|
),
|
|
5326
|
-
/* @__PURE__ */
|
|
5327
|
-
/* @__PURE__ */
|
|
5345
|
+
/* @__PURE__ */ jsx31("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(currentTime) }),
|
|
5346
|
+
/* @__PURE__ */ jsx31("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ jsx31(
|
|
5328
5347
|
"button",
|
|
5329
5348
|
{
|
|
5330
5349
|
type: "button",
|
|
@@ -5339,7 +5358,7 @@ var CardAudio = forwardRef12(
|
|
|
5339
5358
|
}
|
|
5340
5359
|
},
|
|
5341
5360
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
5342
|
-
children: /* @__PURE__ */
|
|
5361
|
+
children: /* @__PURE__ */ jsx31(
|
|
5343
5362
|
"div",
|
|
5344
5363
|
{
|
|
5345
5364
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -5350,19 +5369,19 @@ var CardAudio = forwardRef12(
|
|
|
5350
5369
|
)
|
|
5351
5370
|
}
|
|
5352
5371
|
) }),
|
|
5353
|
-
/* @__PURE__ */
|
|
5354
|
-
/* @__PURE__ */
|
|
5355
|
-
/* @__PURE__ */
|
|
5372
|
+
/* @__PURE__ */ jsx31("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime2(duration) }),
|
|
5373
|
+
/* @__PURE__ */ jsxs23("div", { className: "relative h-6", ref: volumeControlRef, children: [
|
|
5374
|
+
/* @__PURE__ */ jsx31(
|
|
5356
5375
|
"button",
|
|
5357
5376
|
{
|
|
5358
5377
|
type: "button",
|
|
5359
5378
|
onClick: toggleVolumeControl,
|
|
5360
5379
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
5361
5380
|
"aria-label": "Controle de volume",
|
|
5362
|
-
children: /* @__PURE__ */
|
|
5381
|
+
children: /* @__PURE__ */ jsx31("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
5363
5382
|
}
|
|
5364
5383
|
),
|
|
5365
|
-
showVolumeControl && /* @__PURE__ */
|
|
5384
|
+
showVolumeControl && /* @__PURE__ */ jsx31(
|
|
5366
5385
|
"button",
|
|
5367
5386
|
{
|
|
5368
5387
|
type: "button",
|
|
@@ -5372,7 +5391,7 @@ var CardAudio = forwardRef12(
|
|
|
5372
5391
|
setShowVolumeControl(false);
|
|
5373
5392
|
}
|
|
5374
5393
|
},
|
|
5375
|
-
children: /* @__PURE__ */
|
|
5394
|
+
children: /* @__PURE__ */ jsx31(
|
|
5376
5395
|
"input",
|
|
5377
5396
|
{
|
|
5378
5397
|
type: "range",
|
|
@@ -5413,22 +5432,22 @@ var CardAudio = forwardRef12(
|
|
|
5413
5432
|
}
|
|
5414
5433
|
)
|
|
5415
5434
|
] }),
|
|
5416
|
-
/* @__PURE__ */
|
|
5417
|
-
/* @__PURE__ */
|
|
5435
|
+
/* @__PURE__ */ jsxs23("div", { className: "relative h-6", ref: speedMenuRef, children: [
|
|
5436
|
+
/* @__PURE__ */ jsx31(
|
|
5418
5437
|
"button",
|
|
5419
5438
|
{
|
|
5420
5439
|
type: "button",
|
|
5421
5440
|
onClick: toggleSpeedMenu,
|
|
5422
5441
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
5423
5442
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
5424
|
-
children: /* @__PURE__ */
|
|
5443
|
+
children: /* @__PURE__ */ jsx31(DotsThreeVertical, { size: 24 })
|
|
5425
5444
|
}
|
|
5426
5445
|
),
|
|
5427
|
-
showSpeedMenu && /* @__PURE__ */
|
|
5446
|
+
showSpeedMenu && /* @__PURE__ */ jsx31("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__ */ jsx31("div", { className: "flex flex-col gap-1", children: [
|
|
5428
5447
|
{ speed: 1, label: "1x" },
|
|
5429
5448
|
{ speed: 1.5, label: "1.5x" },
|
|
5430
5449
|
{ speed: 2, label: "2x" }
|
|
5431
|
-
].map(({ speed, label }) => /* @__PURE__ */
|
|
5450
|
+
].map(({ speed, label }) => /* @__PURE__ */ jsx31(
|
|
5432
5451
|
"button",
|
|
5433
5452
|
{
|
|
5434
5453
|
type: "button",
|
|
@@ -5456,7 +5475,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
5456
5475
|
var CardSimulado = forwardRef12(
|
|
5457
5476
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
5458
5477
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
5459
|
-
return /* @__PURE__ */
|
|
5478
|
+
return /* @__PURE__ */ jsx31(
|
|
5460
5479
|
CardBase,
|
|
5461
5480
|
{
|
|
5462
5481
|
ref,
|
|
@@ -5469,18 +5488,18 @@ var CardSimulado = forwardRef12(
|
|
|
5469
5488
|
className
|
|
5470
5489
|
),
|
|
5471
5490
|
...props,
|
|
5472
|
-
children: /* @__PURE__ */
|
|
5473
|
-
/* @__PURE__ */
|
|
5474
|
-
/* @__PURE__ */
|
|
5475
|
-
/* @__PURE__ */
|
|
5476
|
-
duration && /* @__PURE__ */
|
|
5477
|
-
/* @__PURE__ */
|
|
5478
|
-
/* @__PURE__ */
|
|
5491
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
5492
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
5493
|
+
/* @__PURE__ */ jsx31(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
5494
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
5495
|
+
duration && /* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-1", children: [
|
|
5496
|
+
/* @__PURE__ */ jsx31(Clock, { size: 16, className: "flex-shrink-0" }),
|
|
5497
|
+
/* @__PURE__ */ jsx31(Text_default, { size: "sm", children: duration })
|
|
5479
5498
|
] }),
|
|
5480
|
-
/* @__PURE__ */
|
|
5499
|
+
/* @__PURE__ */ jsx31(Text_default, { size: "sm", className: "truncate", children: info })
|
|
5481
5500
|
] })
|
|
5482
5501
|
] }),
|
|
5483
|
-
/* @__PURE__ */
|
|
5502
|
+
/* @__PURE__ */ jsx31(
|
|
5484
5503
|
CaretRight2,
|
|
5485
5504
|
{
|
|
5486
5505
|
size: 24,
|
|
@@ -5525,7 +5544,7 @@ var CardTest = forwardRef12(
|
|
|
5525
5544
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
5526
5545
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
5527
5546
|
if (isSelectable) {
|
|
5528
|
-
return /* @__PURE__ */
|
|
5547
|
+
return /* @__PURE__ */ jsx31(
|
|
5529
5548
|
"button",
|
|
5530
5549
|
{
|
|
5531
5550
|
ref,
|
|
@@ -5537,8 +5556,8 @@ var CardTest = forwardRef12(
|
|
|
5537
5556
|
onKeyDown: handleKeyDown,
|
|
5538
5557
|
"aria-pressed": selected,
|
|
5539
5558
|
...props,
|
|
5540
|
-
children: /* @__PURE__ */
|
|
5541
|
-
/* @__PURE__ */
|
|
5559
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
5560
|
+
/* @__PURE__ */ jsx31(
|
|
5542
5561
|
Text_default,
|
|
5543
5562
|
{
|
|
5544
5563
|
size: "md",
|
|
@@ -5547,10 +5566,10 @@ var CardTest = forwardRef12(
|
|
|
5547
5566
|
children: title
|
|
5548
5567
|
}
|
|
5549
5568
|
),
|
|
5550
|
-
/* @__PURE__ */
|
|
5551
|
-
duration && /* @__PURE__ */
|
|
5552
|
-
/* @__PURE__ */
|
|
5553
|
-
/* @__PURE__ */
|
|
5569
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
5570
|
+
duration && /* @__PURE__ */ jsxs23("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
5571
|
+
/* @__PURE__ */ jsx31(Clock, { size: 16, className: "text-text-700" }),
|
|
5572
|
+
/* @__PURE__ */ jsx31(
|
|
5554
5573
|
Text_default,
|
|
5555
5574
|
{
|
|
5556
5575
|
size: "sm",
|
|
@@ -5559,7 +5578,7 @@ var CardTest = forwardRef12(
|
|
|
5559
5578
|
}
|
|
5560
5579
|
)
|
|
5561
5580
|
] }),
|
|
5562
|
-
/* @__PURE__ */
|
|
5581
|
+
/* @__PURE__ */ jsx31(
|
|
5563
5582
|
Text_default,
|
|
5564
5583
|
{
|
|
5565
5584
|
size: "sm",
|
|
@@ -5572,14 +5591,14 @@ var CardTest = forwardRef12(
|
|
|
5572
5591
|
}
|
|
5573
5592
|
);
|
|
5574
5593
|
}
|
|
5575
|
-
return /* @__PURE__ */
|
|
5594
|
+
return /* @__PURE__ */ jsx31(
|
|
5576
5595
|
"div",
|
|
5577
5596
|
{
|
|
5578
5597
|
ref,
|
|
5579
5598
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
5580
5599
|
...props,
|
|
5581
|
-
children: /* @__PURE__ */
|
|
5582
|
-
/* @__PURE__ */
|
|
5600
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
5601
|
+
/* @__PURE__ */ jsx31(
|
|
5583
5602
|
Text_default,
|
|
5584
5603
|
{
|
|
5585
5604
|
size: "md",
|
|
@@ -5588,10 +5607,10 @@ var CardTest = forwardRef12(
|
|
|
5588
5607
|
children: title
|
|
5589
5608
|
}
|
|
5590
5609
|
),
|
|
5591
|
-
/* @__PURE__ */
|
|
5592
|
-
duration && /* @__PURE__ */
|
|
5593
|
-
/* @__PURE__ */
|
|
5594
|
-
/* @__PURE__ */
|
|
5610
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
5611
|
+
duration && /* @__PURE__ */ jsxs23("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
5612
|
+
/* @__PURE__ */ jsx31(Clock, { size: 16, className: "text-text-700" }),
|
|
5613
|
+
/* @__PURE__ */ jsx31(
|
|
5595
5614
|
Text_default,
|
|
5596
5615
|
{
|
|
5597
5616
|
size: "sm",
|
|
@@ -5600,7 +5619,7 @@ var CardTest = forwardRef12(
|
|
|
5600
5619
|
}
|
|
5601
5620
|
)
|
|
5602
5621
|
] }),
|
|
5603
|
-
/* @__PURE__ */
|
|
5622
|
+
/* @__PURE__ */ jsx31(
|
|
5604
5623
|
Text_default,
|
|
5605
5624
|
{
|
|
5606
5625
|
size: "sm",
|
|
@@ -5637,14 +5656,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
5637
5656
|
}
|
|
5638
5657
|
};
|
|
5639
5658
|
var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
5640
|
-
return /* @__PURE__ */
|
|
5659
|
+
return /* @__PURE__ */ jsx31(
|
|
5641
5660
|
"div",
|
|
5642
5661
|
{
|
|
5643
5662
|
ref,
|
|
5644
5663
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
5645
5664
|
...props,
|
|
5646
|
-
children: /* @__PURE__ */
|
|
5647
|
-
data.map((section, sectionIndex) => /* @__PURE__ */
|
|
5665
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex flex-col gap-0", children: [
|
|
5666
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ jsx31("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxs23(
|
|
5648
5667
|
"div",
|
|
5649
5668
|
{
|
|
5650
5669
|
className: cn(
|
|
@@ -5652,7 +5671,7 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5652
5671
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
5653
5672
|
),
|
|
5654
5673
|
children: [
|
|
5655
|
-
/* @__PURE__ */
|
|
5674
|
+
/* @__PURE__ */ jsx31(
|
|
5656
5675
|
Text_default,
|
|
5657
5676
|
{
|
|
5658
5677
|
size: "xs",
|
|
@@ -5661,9 +5680,9 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5661
5680
|
children: section.date
|
|
5662
5681
|
}
|
|
5663
5682
|
),
|
|
5664
|
-
/* @__PURE__ */
|
|
5683
|
+
/* @__PURE__ */ jsx31("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
5665
5684
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
5666
|
-
return /* @__PURE__ */
|
|
5685
|
+
return /* @__PURE__ */ jsx31(
|
|
5667
5686
|
CardBase,
|
|
5668
5687
|
{
|
|
5669
5688
|
layout: "horizontal",
|
|
@@ -5675,9 +5694,9 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5675
5694
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
5676
5695
|
),
|
|
5677
5696
|
onClick: () => onSimulationClick?.(simulation),
|
|
5678
|
-
children: /* @__PURE__ */
|
|
5679
|
-
/* @__PURE__ */
|
|
5680
|
-
/* @__PURE__ */
|
|
5697
|
+
children: /* @__PURE__ */ jsxs23("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
5698
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
5699
|
+
/* @__PURE__ */ jsx31(
|
|
5681
5700
|
Text_default,
|
|
5682
5701
|
{
|
|
5683
5702
|
size: "lg",
|
|
@@ -5686,8 +5705,8 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5686
5705
|
children: simulation.title
|
|
5687
5706
|
}
|
|
5688
5707
|
),
|
|
5689
|
-
/* @__PURE__ */
|
|
5690
|
-
/* @__PURE__ */
|
|
5708
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
|
|
5709
|
+
/* @__PURE__ */ jsx31(
|
|
5691
5710
|
Badge_default,
|
|
5692
5711
|
{
|
|
5693
5712
|
variant: "examsOutlined",
|
|
@@ -5696,10 +5715,10 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5696
5715
|
children: typeStyles.text
|
|
5697
5716
|
}
|
|
5698
5717
|
),
|
|
5699
|
-
/* @__PURE__ */
|
|
5718
|
+
/* @__PURE__ */ jsx31(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
5700
5719
|
] })
|
|
5701
5720
|
] }),
|
|
5702
|
-
/* @__PURE__ */
|
|
5721
|
+
/* @__PURE__ */ jsx31(
|
|
5703
5722
|
CaretRight2,
|
|
5704
5723
|
{
|
|
5705
5724
|
size: 24,
|
|
@@ -5715,7 +5734,7 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5715
5734
|
]
|
|
5716
5735
|
}
|
|
5717
5736
|
) }, section.date)),
|
|
5718
|
-
data.length > 0 && /* @__PURE__ */
|
|
5737
|
+
data.length > 0 && /* @__PURE__ */ jsx31("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
5719
5738
|
] })
|
|
5720
5739
|
}
|
|
5721
5740
|
);
|
|
@@ -5723,7 +5742,7 @@ var CardSimulationHistory = forwardRef12(({ data, onSimulationClick, className,
|
|
|
5723
5742
|
|
|
5724
5743
|
// src/components/Accordation/Accordation.tsx
|
|
5725
5744
|
import { CaretRight as CaretRight3 } from "phosphor-react";
|
|
5726
|
-
import { jsx as
|
|
5745
|
+
import { jsx as jsx32, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
5727
5746
|
var CardAccordation = forwardRef13(
|
|
5728
5747
|
({
|
|
5729
5748
|
trigger,
|
|
@@ -5746,7 +5765,7 @@ var CardAccordation = forwardRef13(
|
|
|
5746
5765
|
handleToggle();
|
|
5747
5766
|
}
|
|
5748
5767
|
};
|
|
5749
|
-
return /* @__PURE__ */
|
|
5768
|
+
return /* @__PURE__ */ jsxs24(
|
|
5750
5769
|
CardBase,
|
|
5751
5770
|
{
|
|
5752
5771
|
ref,
|
|
@@ -5756,7 +5775,7 @@ var CardAccordation = forwardRef13(
|
|
|
5756
5775
|
className: cn("overflow-hidden", className),
|
|
5757
5776
|
...props,
|
|
5758
5777
|
children: [
|
|
5759
|
-
/* @__PURE__ */
|
|
5778
|
+
/* @__PURE__ */ jsxs24(
|
|
5760
5779
|
"button",
|
|
5761
5780
|
{
|
|
5762
5781
|
onClick: handleToggle,
|
|
@@ -5766,7 +5785,7 @@ var CardAccordation = forwardRef13(
|
|
|
5766
5785
|
"aria-controls": "accordion-content",
|
|
5767
5786
|
children: [
|
|
5768
5787
|
trigger,
|
|
5769
|
-
/* @__PURE__ */
|
|
5788
|
+
/* @__PURE__ */ jsx32(
|
|
5770
5789
|
CaretRight3,
|
|
5771
5790
|
{
|
|
5772
5791
|
size: 20,
|
|
@@ -5780,7 +5799,7 @@ var CardAccordation = forwardRef13(
|
|
|
5780
5799
|
]
|
|
5781
5800
|
}
|
|
5782
5801
|
),
|
|
5783
|
-
/* @__PURE__ */
|
|
5802
|
+
/* @__PURE__ */ jsx32(
|
|
5784
5803
|
"div",
|
|
5785
5804
|
{
|
|
5786
5805
|
id: contentId,
|
|
@@ -5789,7 +5808,7 @@ var CardAccordation = forwardRef13(
|
|
|
5789
5808
|
isExpanded ? "max-h-screen opacity-100" : "max-h-0 opacity-0"
|
|
5790
5809
|
),
|
|
5791
5810
|
"data-testid": "accordion-content",
|
|
5792
|
-
children: /* @__PURE__ */
|
|
5811
|
+
children: /* @__PURE__ */ jsx32("div", { className: "p-4 pt-0 border-border-50", children })
|
|
5793
5812
|
}
|
|
5794
5813
|
)
|
|
5795
5814
|
]
|
|
@@ -5801,7 +5820,7 @@ var CardAccordation = forwardRef13(
|
|
|
5801
5820
|
// src/components/Alternative/Alternative.tsx
|
|
5802
5821
|
import { CheckCircle as CheckCircle4, XCircle as XCircle3 } from "phosphor-react";
|
|
5803
5822
|
import { forwardRef as forwardRef14, useId as useId9, useState as useState12 } from "react";
|
|
5804
|
-
import { jsx as
|
|
5823
|
+
import { jsx as jsx33, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
5805
5824
|
var AlternativesList = ({
|
|
5806
5825
|
alternatives,
|
|
5807
5826
|
name,
|
|
@@ -5832,9 +5851,9 @@ var AlternativesList = ({
|
|
|
5832
5851
|
const getStatusBadge2 = (status) => {
|
|
5833
5852
|
switch (status) {
|
|
5834
5853
|
case "correct":
|
|
5835
|
-
return /* @__PURE__ */
|
|
5854
|
+
return /* @__PURE__ */ jsx33(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ jsx33(CheckCircle4, {}), children: "Resposta correta" });
|
|
5836
5855
|
case "incorrect":
|
|
5837
|
-
return /* @__PURE__ */
|
|
5856
|
+
return /* @__PURE__ */ jsx33(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ jsx33(XCircle3, {}), children: "Resposta incorreta" });
|
|
5838
5857
|
default:
|
|
5839
5858
|
return null;
|
|
5840
5859
|
}
|
|
@@ -5864,10 +5883,10 @@ var AlternativesList = ({
|
|
|
5864
5883
|
const renderRadio = () => {
|
|
5865
5884
|
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"}`;
|
|
5866
5885
|
const dotClasses = "w-3 h-3 rounded-full bg-primary-950 transition-all duration-200";
|
|
5867
|
-
return /* @__PURE__ */
|
|
5886
|
+
return /* @__PURE__ */ jsx33("div", { className: radioClasses, children: isUserSelected && /* @__PURE__ */ jsx33("div", { className: dotClasses }) });
|
|
5868
5887
|
};
|
|
5869
5888
|
if (layout === "detailed") {
|
|
5870
|
-
return /* @__PURE__ */
|
|
5889
|
+
return /* @__PURE__ */ jsx33(
|
|
5871
5890
|
"div",
|
|
5872
5891
|
{
|
|
5873
5892
|
className: cn(
|
|
@@ -5875,11 +5894,11 @@ var AlternativesList = ({
|
|
|
5875
5894
|
statusStyles,
|
|
5876
5895
|
alternative.disabled ? "opacity-50" : ""
|
|
5877
5896
|
),
|
|
5878
|
-
children: /* @__PURE__ */
|
|
5879
|
-
/* @__PURE__ */
|
|
5880
|
-
/* @__PURE__ */
|
|
5881
|
-
/* @__PURE__ */
|
|
5882
|
-
/* @__PURE__ */
|
|
5897
|
+
children: /* @__PURE__ */ jsxs25("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5898
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex items-start gap-3 flex-1", children: [
|
|
5899
|
+
/* @__PURE__ */ jsx33("div", { className: "mt-1", children: renderRadio() }),
|
|
5900
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex-1", children: [
|
|
5901
|
+
/* @__PURE__ */ jsx33(
|
|
5883
5902
|
"p",
|
|
5884
5903
|
{
|
|
5885
5904
|
className: cn(
|
|
@@ -5889,16 +5908,16 @@ var AlternativesList = ({
|
|
|
5889
5908
|
children: alternative.label
|
|
5890
5909
|
}
|
|
5891
5910
|
),
|
|
5892
|
-
alternative.description && /* @__PURE__ */
|
|
5911
|
+
alternative.description && /* @__PURE__ */ jsx33("p", { className: "text-sm text-text-600 mt-1", children: alternative.description })
|
|
5893
5912
|
] })
|
|
5894
5913
|
] }),
|
|
5895
|
-
statusBadge && /* @__PURE__ */
|
|
5914
|
+
statusBadge && /* @__PURE__ */ jsx33("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5896
5915
|
] })
|
|
5897
5916
|
},
|
|
5898
5917
|
alternativeId
|
|
5899
5918
|
);
|
|
5900
5919
|
}
|
|
5901
|
-
return /* @__PURE__ */
|
|
5920
|
+
return /* @__PURE__ */ jsxs25(
|
|
5902
5921
|
"div",
|
|
5903
5922
|
{
|
|
5904
5923
|
className: cn(
|
|
@@ -5907,9 +5926,9 @@ var AlternativesList = ({
|
|
|
5907
5926
|
alternative.disabled ? "opacity-50" : ""
|
|
5908
5927
|
),
|
|
5909
5928
|
children: [
|
|
5910
|
-
/* @__PURE__ */
|
|
5929
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
5911
5930
|
renderRadio(),
|
|
5912
|
-
/* @__PURE__ */
|
|
5931
|
+
/* @__PURE__ */ jsx33(
|
|
5913
5932
|
"span",
|
|
5914
5933
|
{
|
|
5915
5934
|
className: cn(
|
|
@@ -5920,14 +5939,14 @@ var AlternativesList = ({
|
|
|
5920
5939
|
}
|
|
5921
5940
|
)
|
|
5922
5941
|
] }),
|
|
5923
|
-
statusBadge && /* @__PURE__ */
|
|
5942
|
+
statusBadge && /* @__PURE__ */ jsx33("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5924
5943
|
]
|
|
5925
5944
|
},
|
|
5926
5945
|
alternativeId
|
|
5927
5946
|
);
|
|
5928
5947
|
};
|
|
5929
5948
|
if (isReadonly) {
|
|
5930
|
-
return /* @__PURE__ */
|
|
5949
|
+
return /* @__PURE__ */ jsx33(
|
|
5931
5950
|
"div",
|
|
5932
5951
|
{
|
|
5933
5952
|
className: cn("flex flex-col", getLayoutClasses(), "w-full", className),
|
|
@@ -5937,7 +5956,7 @@ var AlternativesList = ({
|
|
|
5937
5956
|
}
|
|
5938
5957
|
);
|
|
5939
5958
|
}
|
|
5940
|
-
return /* @__PURE__ */
|
|
5959
|
+
return /* @__PURE__ */ jsx33(
|
|
5941
5960
|
RadioGroup,
|
|
5942
5961
|
{
|
|
5943
5962
|
name: groupName,
|
|
@@ -5954,7 +5973,7 @@ var AlternativesList = ({
|
|
|
5954
5973
|
const statusStyles = getStatusStyles2(alternative.status, false);
|
|
5955
5974
|
const statusBadge = getStatusBadge2(alternative.status);
|
|
5956
5975
|
if (layout === "detailed") {
|
|
5957
|
-
return /* @__PURE__ */
|
|
5976
|
+
return /* @__PURE__ */ jsx33(
|
|
5958
5977
|
"div",
|
|
5959
5978
|
{
|
|
5960
5979
|
className: cn(
|
|
@@ -5962,9 +5981,9 @@ var AlternativesList = ({
|
|
|
5962
5981
|
statusStyles,
|
|
5963
5982
|
alternative.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer"
|
|
5964
5983
|
),
|
|
5965
|
-
children: /* @__PURE__ */
|
|
5966
|
-
/* @__PURE__ */
|
|
5967
|
-
/* @__PURE__ */
|
|
5984
|
+
children: /* @__PURE__ */ jsxs25("div", { className: "flex items-start justify-between gap-3", children: [
|
|
5985
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex items-start gap-3 flex-1", children: [
|
|
5986
|
+
/* @__PURE__ */ jsx33(
|
|
5968
5987
|
RadioGroupItem,
|
|
5969
5988
|
{
|
|
5970
5989
|
value: alternative.value,
|
|
@@ -5973,8 +5992,8 @@ var AlternativesList = ({
|
|
|
5973
5992
|
className: "mt-1"
|
|
5974
5993
|
}
|
|
5975
5994
|
),
|
|
5976
|
-
/* @__PURE__ */
|
|
5977
|
-
/* @__PURE__ */
|
|
5995
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex-1", children: [
|
|
5996
|
+
/* @__PURE__ */ jsx33(
|
|
5978
5997
|
"label",
|
|
5979
5998
|
{
|
|
5980
5999
|
htmlFor: alternativeId,
|
|
@@ -5986,16 +6005,16 @@ var AlternativesList = ({
|
|
|
5986
6005
|
children: alternative.label
|
|
5987
6006
|
}
|
|
5988
6007
|
),
|
|
5989
|
-
alternative.description && /* @__PURE__ */
|
|
6008
|
+
alternative.description && /* @__PURE__ */ jsx33("p", { className: "text-sm text-text-600 mt-1", children: alternative.description })
|
|
5990
6009
|
] })
|
|
5991
6010
|
] }),
|
|
5992
|
-
statusBadge && /* @__PURE__ */
|
|
6011
|
+
statusBadge && /* @__PURE__ */ jsx33("div", { className: "flex-shrink-0", children: statusBadge })
|
|
5993
6012
|
] })
|
|
5994
6013
|
},
|
|
5995
6014
|
alternativeId
|
|
5996
6015
|
);
|
|
5997
6016
|
}
|
|
5998
|
-
return /* @__PURE__ */
|
|
6017
|
+
return /* @__PURE__ */ jsxs25(
|
|
5999
6018
|
"div",
|
|
6000
6019
|
{
|
|
6001
6020
|
className: cn(
|
|
@@ -6004,8 +6023,8 @@ var AlternativesList = ({
|
|
|
6004
6023
|
alternative.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
6005
6024
|
),
|
|
6006
6025
|
children: [
|
|
6007
|
-
/* @__PURE__ */
|
|
6008
|
-
/* @__PURE__ */
|
|
6026
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
6027
|
+
/* @__PURE__ */ jsx33(
|
|
6009
6028
|
RadioGroupItem,
|
|
6010
6029
|
{
|
|
6011
6030
|
value: alternative.value,
|
|
@@ -6013,7 +6032,7 @@ var AlternativesList = ({
|
|
|
6013
6032
|
disabled: alternative.disabled
|
|
6014
6033
|
}
|
|
6015
6034
|
),
|
|
6016
|
-
/* @__PURE__ */
|
|
6035
|
+
/* @__PURE__ */ jsx33(
|
|
6017
6036
|
"label",
|
|
6018
6037
|
{
|
|
6019
6038
|
htmlFor: alternativeId,
|
|
@@ -6026,7 +6045,7 @@ var AlternativesList = ({
|
|
|
6026
6045
|
}
|
|
6027
6046
|
)
|
|
6028
6047
|
] }),
|
|
6029
|
-
statusBadge && /* @__PURE__ */
|
|
6048
|
+
statusBadge && /* @__PURE__ */ jsx33("div", { className: "flex-shrink-0", children: statusBadge })
|
|
6030
6049
|
]
|
|
6031
6050
|
},
|
|
6032
6051
|
alternativeId
|
|
@@ -6037,7 +6056,7 @@ var AlternativesList = ({
|
|
|
6037
6056
|
};
|
|
6038
6057
|
var HeaderAlternative = forwardRef14(
|
|
6039
6058
|
({ className, title, subTitle, content, ...props }, ref) => {
|
|
6040
|
-
return /* @__PURE__ */
|
|
6059
|
+
return /* @__PURE__ */ jsxs25(
|
|
6041
6060
|
"div",
|
|
6042
6061
|
{
|
|
6043
6062
|
ref,
|
|
@@ -6047,11 +6066,11 @@ var HeaderAlternative = forwardRef14(
|
|
|
6047
6066
|
),
|
|
6048
6067
|
...props,
|
|
6049
6068
|
children: [
|
|
6050
|
-
/* @__PURE__ */
|
|
6051
|
-
/* @__PURE__ */
|
|
6052
|
-
/* @__PURE__ */
|
|
6069
|
+
/* @__PURE__ */ jsxs25("span", { className: "flex flex-col", children: [
|
|
6070
|
+
/* @__PURE__ */ jsx33("p", { className: "text-text-950 font-bold text-lg", children: title }),
|
|
6071
|
+
/* @__PURE__ */ jsx33("p", { className: "text-text-700 text-sm ", children: subTitle })
|
|
6053
6072
|
] }),
|
|
6054
|
-
/* @__PURE__ */
|
|
6073
|
+
/* @__PURE__ */ jsx33("p", { className: "text-text-950 text-md", children: content })
|
|
6055
6074
|
]
|
|
6056
6075
|
}
|
|
6057
6076
|
);
|
|
@@ -6063,7 +6082,7 @@ import {
|
|
|
6063
6082
|
forwardRef as forwardRef15,
|
|
6064
6083
|
useEffect as useEffect10
|
|
6065
6084
|
} from "react";
|
|
6066
|
-
import { Fragment as Fragment6, jsx as
|
|
6085
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6067
6086
|
var SIZE_CLASSES11 = {
|
|
6068
6087
|
"extra-small": "w-screen max-w-[324px]",
|
|
6069
6088
|
small: "w-screen max-w-[378px]",
|
|
@@ -6128,14 +6147,14 @@ var AlertDialog = forwardRef15(
|
|
|
6128
6147
|
onCancel?.(cancelValue);
|
|
6129
6148
|
};
|
|
6130
6149
|
const sizeClasses = SIZE_CLASSES11[size];
|
|
6131
|
-
return /* @__PURE__ */
|
|
6150
|
+
return /* @__PURE__ */ jsx34(Fragment6, { children: isOpen && /* @__PURE__ */ jsx34(
|
|
6132
6151
|
"div",
|
|
6133
6152
|
{
|
|
6134
6153
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",
|
|
6135
6154
|
onClick: handleBackdropClick,
|
|
6136
6155
|
onKeyDown: handleBackdropKeyDown,
|
|
6137
6156
|
"data-testid": "alert-dialog-overlay",
|
|
6138
|
-
children: /* @__PURE__ */
|
|
6157
|
+
children: /* @__PURE__ */ jsxs26(
|
|
6139
6158
|
"div",
|
|
6140
6159
|
{
|
|
6141
6160
|
ref,
|
|
@@ -6146,7 +6165,7 @@ var AlertDialog = forwardRef15(
|
|
|
6146
6165
|
),
|
|
6147
6166
|
...props,
|
|
6148
6167
|
children: [
|
|
6149
|
-
/* @__PURE__ */
|
|
6168
|
+
/* @__PURE__ */ jsx34(
|
|
6150
6169
|
"h2",
|
|
6151
6170
|
{
|
|
6152
6171
|
id: "alert-dialog-title",
|
|
@@ -6154,7 +6173,7 @@ var AlertDialog = forwardRef15(
|
|
|
6154
6173
|
children: title
|
|
6155
6174
|
}
|
|
6156
6175
|
),
|
|
6157
|
-
/* @__PURE__ */
|
|
6176
|
+
/* @__PURE__ */ jsx34(
|
|
6158
6177
|
"p",
|
|
6159
6178
|
{
|
|
6160
6179
|
id: "alert-dialog-description",
|
|
@@ -6162,9 +6181,9 @@ var AlertDialog = forwardRef15(
|
|
|
6162
6181
|
children: description
|
|
6163
6182
|
}
|
|
6164
6183
|
),
|
|
6165
|
-
/* @__PURE__ */
|
|
6166
|
-
/* @__PURE__ */
|
|
6167
|
-
/* @__PURE__ */
|
|
6184
|
+
/* @__PURE__ */ jsxs26("div", { className: "flex flex-row items-center justify-end pt-4 gap-3", children: [
|
|
6185
|
+
/* @__PURE__ */ jsx34(Button_default, { variant: "outline", size: "small", onClick: handleCancel, children: cancelButtonLabel }),
|
|
6186
|
+
/* @__PURE__ */ jsx34(
|
|
6168
6187
|
Button_default,
|
|
6169
6188
|
{
|
|
6170
6189
|
variant: "solid",
|
|
@@ -6187,7 +6206,7 @@ AlertDialog.displayName = "AlertDialog";
|
|
|
6187
6206
|
// src/components/MultipleChoice/MultipleChoice.tsx
|
|
6188
6207
|
import { useEffect as useEffect11, useState as useState13 } from "react";
|
|
6189
6208
|
import { CheckCircle as CheckCircle5, XCircle as XCircle4, Check as Check4 } from "phosphor-react";
|
|
6190
|
-
import { jsx as
|
|
6209
|
+
import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6191
6210
|
var MultipleChoiceList = ({
|
|
6192
6211
|
disabled = false,
|
|
6193
6212
|
className = "",
|
|
@@ -6204,9 +6223,9 @@ var MultipleChoiceList = ({
|
|
|
6204
6223
|
const getStatusBadge2 = (status) => {
|
|
6205
6224
|
switch (status) {
|
|
6206
6225
|
case "correct":
|
|
6207
|
-
return /* @__PURE__ */
|
|
6226
|
+
return /* @__PURE__ */ jsx35(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ jsx35(CheckCircle5, {}), children: "Resposta correta" });
|
|
6208
6227
|
case "incorrect":
|
|
6209
|
-
return /* @__PURE__ */
|
|
6228
|
+
return /* @__PURE__ */ jsx35(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ jsx35(XCircle4, {}), children: "Resposta incorreta" });
|
|
6210
6229
|
default:
|
|
6211
6230
|
return null;
|
|
6212
6231
|
}
|
|
@@ -6227,14 +6246,14 @@ var MultipleChoiceList = ({
|
|
|
6227
6246
|
isSelected ? "border-primary-950 bg-primary-950 text-text" : "border-border-400 bg-background",
|
|
6228
6247
|
isDisabled && "opacity-40 cursor-not-allowed"
|
|
6229
6248
|
);
|
|
6230
|
-
return /* @__PURE__ */
|
|
6249
|
+
return /* @__PURE__ */ jsx35("div", { className: checkboxClasses, children: isSelected && /* @__PURE__ */ jsx35(Check4, { size: 16, weight: "bold" }) });
|
|
6231
6250
|
};
|
|
6232
6251
|
if (mode === "readonly") {
|
|
6233
|
-
return /* @__PURE__ */
|
|
6252
|
+
return /* @__PURE__ */ jsx35("div", { className: cn("flex flex-col gap-2", className), children: choices.map((choice, i) => {
|
|
6234
6253
|
const isSelected = actualValue?.includes(choice.value) || false;
|
|
6235
6254
|
const statusStyles = getStatusStyles2(choice.status);
|
|
6236
6255
|
const statusBadge = getStatusBadge2(choice.status);
|
|
6237
|
-
return /* @__PURE__ */
|
|
6256
|
+
return /* @__PURE__ */ jsxs27(
|
|
6238
6257
|
"div",
|
|
6239
6258
|
{
|
|
6240
6259
|
className: cn(
|
|
@@ -6243,9 +6262,9 @@ var MultipleChoiceList = ({
|
|
|
6243
6262
|
choice.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
6244
6263
|
),
|
|
6245
6264
|
children: [
|
|
6246
|
-
/* @__PURE__ */
|
|
6265
|
+
/* @__PURE__ */ jsxs27("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
6247
6266
|
renderVisualCheckbox(isSelected, choice.disabled || disabled),
|
|
6248
|
-
/* @__PURE__ */
|
|
6267
|
+
/* @__PURE__ */ jsx35(
|
|
6249
6268
|
"span",
|
|
6250
6269
|
{
|
|
6251
6270
|
className: cn(
|
|
@@ -6257,14 +6276,14 @@ var MultipleChoiceList = ({
|
|
|
6257
6276
|
}
|
|
6258
6277
|
)
|
|
6259
6278
|
] }),
|
|
6260
|
-
statusBadge && /* @__PURE__ */
|
|
6279
|
+
statusBadge && /* @__PURE__ */ jsx35("div", { className: "flex-shrink-0", children: statusBadge })
|
|
6261
6280
|
]
|
|
6262
6281
|
},
|
|
6263
6282
|
`readonly-${choice.value}-${i}`
|
|
6264
6283
|
);
|
|
6265
6284
|
}) });
|
|
6266
6285
|
}
|
|
6267
|
-
return /* @__PURE__ */
|
|
6286
|
+
return /* @__PURE__ */ jsx35(
|
|
6268
6287
|
"div",
|
|
6269
6288
|
{
|
|
6270
6289
|
className: cn(
|
|
@@ -6272,7 +6291,7 @@ var MultipleChoiceList = ({
|
|
|
6272
6291
|
disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
6273
6292
|
className
|
|
6274
6293
|
),
|
|
6275
|
-
children: /* @__PURE__ */
|
|
6294
|
+
children: /* @__PURE__ */ jsx35(
|
|
6276
6295
|
CheckboxList_default,
|
|
6277
6296
|
{
|
|
6278
6297
|
name,
|
|
@@ -6282,12 +6301,12 @@ var MultipleChoiceList = ({
|
|
|
6282
6301
|
onHandleSelectedValues?.(v);
|
|
6283
6302
|
},
|
|
6284
6303
|
disabled,
|
|
6285
|
-
children: choices.map((choice, i) => /* @__PURE__ */
|
|
6304
|
+
children: choices.map((choice, i) => /* @__PURE__ */ jsxs27(
|
|
6286
6305
|
"div",
|
|
6287
6306
|
{
|
|
6288
6307
|
className: "flex flex-row gap-2 items-center",
|
|
6289
6308
|
children: [
|
|
6290
|
-
/* @__PURE__ */
|
|
6309
|
+
/* @__PURE__ */ jsx35(
|
|
6291
6310
|
CheckboxListItem,
|
|
6292
6311
|
{
|
|
6293
6312
|
value: choice.value,
|
|
@@ -6295,7 +6314,7 @@ var MultipleChoiceList = ({
|
|
|
6295
6314
|
disabled: choice.disabled || disabled
|
|
6296
6315
|
}
|
|
6297
6316
|
),
|
|
6298
|
-
/* @__PURE__ */
|
|
6317
|
+
/* @__PURE__ */ jsx35(
|
|
6299
6318
|
"label",
|
|
6300
6319
|
{
|
|
6301
6320
|
htmlFor: `interactive-${choice.value}-${i}`,
|
|
@@ -6318,11 +6337,11 @@ var MultipleChoiceList = ({
|
|
|
6318
6337
|
};
|
|
6319
6338
|
|
|
6320
6339
|
// src/assets/icons/subjects/BookOpenText.tsx
|
|
6321
|
-
import { jsx as
|
|
6340
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
6322
6341
|
var BookOpenText = ({
|
|
6323
6342
|
size,
|
|
6324
6343
|
color
|
|
6325
|
-
}) => /* @__PURE__ */
|
|
6344
|
+
}) => /* @__PURE__ */ jsx36(
|
|
6326
6345
|
"svg",
|
|
6327
6346
|
{
|
|
6328
6347
|
width: size,
|
|
@@ -6330,7 +6349,7 @@ var BookOpenText = ({
|
|
|
6330
6349
|
viewBox: "0 0 32 32",
|
|
6331
6350
|
fill: "none",
|
|
6332
6351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6333
|
-
children: /* @__PURE__ */
|
|
6352
|
+
children: /* @__PURE__ */ jsx36(
|
|
6334
6353
|
"path",
|
|
6335
6354
|
{
|
|
6336
6355
|
d: "M29 6H20C19.2238 6 18.4582 6.18073 17.7639 6.52786C17.0697 6.875 16.4657 7.37902 16 8C15.5343 7.37902 14.9303 6.875 14.2361 6.52786C13.5418 6.18073 12.7762 6 12 6H3C2.73478 6 2.48043 6.10536 2.29289 6.29289C2.10536 6.48043 2 6.73478 2 7V25C2 25.2652 2.10536 25.5196 2.29289 25.7071C2.48043 25.8946 2.73478 26 3 26H12C12.7956 26 13.5587 26.3161 14.1213 26.8787C14.6839 27.4413 15 28.2044 15 29C15 29.2652 15.1054 29.5196 15.2929 29.7071C15.4804 29.8946 15.7348 30 16 30C16.2652 30 16.5196 29.8946 16.7071 29.7071C16.8946 29.5196 17 29.2652 17 29C17 28.2044 17.3161 27.4413 17.8787 26.8787C18.4413 26.3161 19.2044 26 20 26H29C29.2652 26 29.5196 25.8946 29.7071 25.7071C29.8946 25.5196 30 25.2652 30 25V7C30 6.73478 29.8946 6.48043 29.7071 6.29289C29.5196 6.10536 29.2652 6 29 6ZM12 24H4V8H12C12.7956 8 13.5587 8.31607 14.1213 8.87868C14.6839 9.44129 15 10.2044 15 11V25C14.1353 24.3493 13.0821 23.9983 12 24ZM28 24H20C18.9179 23.9983 17.8647 24.3493 17 25V11C17 10.2044 17.3161 9.44129 17.8787 8.87868C18.4413 8.31607 19.2044 8 20 8H28V24ZM20 11H25C25.2652 11 25.5196 11.1054 25.7071 11.2929C25.8946 11.4804 26 11.7348 26 12C26 12.2652 25.8946 12.5196 25.7071 12.7071C25.5196 12.8946 25.2652 13 25 13H20C19.7348 13 19.4804 12.8946 19.2929 12.7071C19.1054 12.5196 19 12.2652 19 12C19 11.7348 19.1054 11.4804 19.2929 11.2929C19.4804 11.1054 19.7348 11 20 11ZM26 16C26 16.2652 25.8946 16.5196 25.7071 16.7071C25.5196 16.8946 25.2652 17 25 17H20C19.7348 17 19.4804 16.8946 19.2929 16.7071C19.1054 16.5196 19 16.2652 19 16C19 15.7348 19.1054 15.4804 19.2929 15.2929C19.4804 15.1054 19.7348 15 20 15H25C25.2652 15 25.5196 15.1054 25.7071 15.2929C25.8946 15.4804 26 15.7348 26 16ZM26 20C26 20.2652 25.8946 20.5196 25.7071 20.7071C25.5196 20.8946 25.2652 21 25 21H20C19.7348 21 19.4804 20.8946 19.2929 20.7071C19.1054 20.5196 19 20.2652 19 20C19 19.7348 19.1054 19.4804 19.2929 19.2929C19.4804 19.1054 19.7348 19 20 19H25C25.2652 19 25.5196 19.1054 25.7071 19.2929C25.8946 19.4804 26 19.7348 26 20Z",
|
|
@@ -6340,114 +6359,6 @@ var BookOpenText = ({
|
|
|
6340
6359
|
}
|
|
6341
6360
|
);
|
|
6342
6361
|
|
|
6343
|
-
// src/assets/icons/subjects/ChatEN.tsx
|
|
6344
|
-
import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6345
|
-
var ChatEN2 = ({ size, color }) => /* @__PURE__ */ jsxs26(
|
|
6346
|
-
"svg",
|
|
6347
|
-
{
|
|
6348
|
-
width: size,
|
|
6349
|
-
height: size,
|
|
6350
|
-
viewBox: "0 0 32 32",
|
|
6351
|
-
fill: "none",
|
|
6352
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6353
|
-
children: [
|
|
6354
|
-
/* @__PURE__ */ jsx34(
|
|
6355
|
-
"path",
|
|
6356
|
-
{
|
|
6357
|
-
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",
|
|
6358
|
-
fill: color
|
|
6359
|
-
}
|
|
6360
|
-
),
|
|
6361
|
-
/* @__PURE__ */ jsx34(
|
|
6362
|
-
"path",
|
|
6363
|
-
{
|
|
6364
|
-
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
6365
|
-
fill: color
|
|
6366
|
-
}
|
|
6367
|
-
),
|
|
6368
|
-
/* @__PURE__ */ jsx34(
|
|
6369
|
-
"path",
|
|
6370
|
-
{
|
|
6371
|
-
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",
|
|
6372
|
-
fill: color
|
|
6373
|
-
}
|
|
6374
|
-
)
|
|
6375
|
-
]
|
|
6376
|
-
}
|
|
6377
|
-
);
|
|
6378
|
-
|
|
6379
|
-
// src/assets/icons/subjects/ChatES.tsx
|
|
6380
|
-
import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6381
|
-
var ChatES2 = ({ size, color }) => /* @__PURE__ */ jsxs27(
|
|
6382
|
-
"svg",
|
|
6383
|
-
{
|
|
6384
|
-
width: size,
|
|
6385
|
-
height: size,
|
|
6386
|
-
viewBox: "0 0 32 32",
|
|
6387
|
-
fill: "none",
|
|
6388
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6389
|
-
children: [
|
|
6390
|
-
/* @__PURE__ */ jsx35(
|
|
6391
|
-
"path",
|
|
6392
|
-
{
|
|
6393
|
-
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",
|
|
6394
|
-
fill: color
|
|
6395
|
-
}
|
|
6396
|
-
),
|
|
6397
|
-
/* @__PURE__ */ jsx35(
|
|
6398
|
-
"path",
|
|
6399
|
-
{
|
|
6400
|
-
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",
|
|
6401
|
-
fill: color
|
|
6402
|
-
}
|
|
6403
|
-
),
|
|
6404
|
-
/* @__PURE__ */ jsx35(
|
|
6405
|
-
"path",
|
|
6406
|
-
{
|
|
6407
|
-
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",
|
|
6408
|
-
fill: color
|
|
6409
|
-
}
|
|
6410
|
-
)
|
|
6411
|
-
]
|
|
6412
|
-
}
|
|
6413
|
-
);
|
|
6414
|
-
|
|
6415
|
-
// src/assets/icons/subjects/ChatPT.tsx
|
|
6416
|
-
import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6417
|
-
var ChatPT2 = ({ size, color }) => /* @__PURE__ */ jsxs28(
|
|
6418
|
-
"svg",
|
|
6419
|
-
{
|
|
6420
|
-
width: size,
|
|
6421
|
-
height: size,
|
|
6422
|
-
viewBox: "0 0 32 32",
|
|
6423
|
-
fill: "none",
|
|
6424
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6425
|
-
children: [
|
|
6426
|
-
/* @__PURE__ */ jsx36(
|
|
6427
|
-
"path",
|
|
6428
|
-
{
|
|
6429
|
-
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",
|
|
6430
|
-
fill: color
|
|
6431
|
-
}
|
|
6432
|
-
),
|
|
6433
|
-
/* @__PURE__ */ jsx36(
|
|
6434
|
-
"path",
|
|
6435
|
-
{
|
|
6436
|
-
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
6437
|
-
fill: color
|
|
6438
|
-
}
|
|
6439
|
-
),
|
|
6440
|
-
/* @__PURE__ */ jsx36(
|
|
6441
|
-
"path",
|
|
6442
|
-
{
|
|
6443
|
-
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",
|
|
6444
|
-
fill: color
|
|
6445
|
-
}
|
|
6446
|
-
)
|
|
6447
|
-
]
|
|
6448
|
-
}
|
|
6449
|
-
);
|
|
6450
|
-
|
|
6451
6362
|
// src/assets/icons/subjects/HeadCircuit.tsx
|
|
6452
6363
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
6453
6364
|
var HeadCircuit = ({
|
|
@@ -6519,6 +6430,7 @@ var SubjectEnum = /* @__PURE__ */ ((SubjectEnum2) => {
|
|
|
6519
6430
|
import {
|
|
6520
6431
|
ArticleNyTimes,
|
|
6521
6432
|
Atom,
|
|
6433
|
+
Book,
|
|
6522
6434
|
BookBookmark,
|
|
6523
6435
|
DribbbleLogo,
|
|
6524
6436
|
Flask,
|
|
@@ -6556,7 +6468,7 @@ var SubjectInfo = {
|
|
|
6556
6468
|
name: "Biologia" /* BIOLOGIA */
|
|
6557
6469
|
},
|
|
6558
6470
|
["Portugu\xEAs" /* PORTUGUES */]: {
|
|
6559
|
-
icon: /* @__PURE__ */ jsx39(
|
|
6471
|
+
icon: /* @__PURE__ */ jsx39(ChatPT, { size: 17, color: "currentColor" }),
|
|
6560
6472
|
colorClass: "bg-subject-6",
|
|
6561
6473
|
name: "Portugu\xEAs" /* PORTUGUES */
|
|
6562
6474
|
},
|
|
@@ -6581,7 +6493,7 @@ var SubjectInfo = {
|
|
|
6581
6493
|
name: "Filosofia" /* FILOSOFIA */
|
|
6582
6494
|
},
|
|
6583
6495
|
["Espanhol" /* ESPANHOL */]: {
|
|
6584
|
-
icon: /* @__PURE__ */ jsx39(
|
|
6496
|
+
icon: /* @__PURE__ */ jsx39(ChatES, { size: 17, color: "currentColor" }),
|
|
6585
6497
|
colorClass: "bg-subject-11",
|
|
6586
6498
|
name: "Espanhol" /* ESPANHOL */
|
|
6587
6499
|
},
|
|
@@ -6596,7 +6508,7 @@ var SubjectInfo = {
|
|
|
6596
6508
|
name: "Sociologia" /* SOCIOLOGIA */
|
|
6597
6509
|
},
|
|
6598
6510
|
["Ingl\xEAs" /* INGLES */]: {
|
|
6599
|
-
icon: /* @__PURE__ */ jsx39(
|
|
6511
|
+
icon: /* @__PURE__ */ jsx39(ChatEN, { size: 17, color: "currentColor" }),
|
|
6600
6512
|
colorClass: "bg-subject-14",
|
|
6601
6513
|
name: "Ingl\xEAs" /* INGLES */
|
|
6602
6514
|
},
|
|
@@ -6611,8 +6523,12 @@ var SubjectInfo = {
|
|
|
6611
6523
|
name: "Trilhas" /* TRILHAS */
|
|
6612
6524
|
}
|
|
6613
6525
|
};
|
|
6614
|
-
var
|
|
6615
|
-
return SubjectInfo[subject]
|
|
6526
|
+
var getSubjectInfo = (subject) => {
|
|
6527
|
+
return SubjectInfo[subject] || {
|
|
6528
|
+
icon: /* @__PURE__ */ jsx39(Book, { size: 17, color: "currentColor" }),
|
|
6529
|
+
colorClass: "bg-subject-16",
|
|
6530
|
+
name: subject
|
|
6531
|
+
};
|
|
6616
6532
|
};
|
|
6617
6533
|
var getSubjectIcon = (subject) => {
|
|
6618
6534
|
return SubjectInfo[subject].icon;
|
|
@@ -6689,11 +6605,11 @@ import {
|
|
|
6689
6605
|
forwardRef as forwardRef16,
|
|
6690
6606
|
isValidElement as isValidElement4,
|
|
6691
6607
|
Children as Children4,
|
|
6692
|
-
cloneElement as
|
|
6608
|
+
cloneElement as cloneElement5,
|
|
6693
6609
|
useId as useId10
|
|
6694
6610
|
} from "react";
|
|
6695
6611
|
import { CaretDown, Check as Check5, WarningCircle as WarningCircle5 } from "phosphor-react";
|
|
6696
|
-
import { Fragment as Fragment7, jsx as jsx40, jsxs as
|
|
6612
|
+
import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6697
6613
|
var VARIANT_CLASSES4 = {
|
|
6698
6614
|
outlined: "border-2 rounded-lg focus:border-primary-950",
|
|
6699
6615
|
underlined: "border-b-2 focus:border-primary-950",
|
|
@@ -6774,7 +6690,7 @@ var injectStore4 = (children, store, size, selectId) => {
|
|
|
6774
6690
|
selectId
|
|
6775
6691
|
);
|
|
6776
6692
|
}
|
|
6777
|
-
return
|
|
6693
|
+
return cloneElement5(typedChild, newProps);
|
|
6778
6694
|
}
|
|
6779
6695
|
return child;
|
|
6780
6696
|
});
|
|
@@ -6864,7 +6780,7 @@ var Select = ({
|
|
|
6864
6780
|
}
|
|
6865
6781
|
}, [propValue]);
|
|
6866
6782
|
const sizeClasses = SIZE_CLASSES12[size];
|
|
6867
|
-
return /* @__PURE__ */
|
|
6783
|
+
return /* @__PURE__ */ jsxs28("div", { className: cn("w-full", className), children: [
|
|
6868
6784
|
label && /* @__PURE__ */ jsx40(
|
|
6869
6785
|
"label",
|
|
6870
6786
|
{
|
|
@@ -6874,9 +6790,9 @@ var Select = ({
|
|
|
6874
6790
|
}
|
|
6875
6791
|
),
|
|
6876
6792
|
/* @__PURE__ */ jsx40("div", { className: cn("relative w-full"), ref: selectRef, children: injectStore4(children, store, size, selectId) }),
|
|
6877
|
-
(helperText || errorMessage) && /* @__PURE__ */
|
|
6793
|
+
(helperText || errorMessage) && /* @__PURE__ */ jsxs28("div", { className: "mt-1.5 gap-1.5", children: [
|
|
6878
6794
|
helperText && /* @__PURE__ */ jsx40("p", { className: "text-sm text-text-500", children: helperText }),
|
|
6879
|
-
errorMessage && /* @__PURE__ */
|
|
6795
|
+
errorMessage && /* @__PURE__ */ jsxs28("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
|
|
6880
6796
|
/* @__PURE__ */ jsx40(WarningCircle5, { size: 16 }),
|
|
6881
6797
|
" ",
|
|
6882
6798
|
errorMessage
|
|
@@ -6910,7 +6826,7 @@ var SelectTrigger = forwardRef16(
|
|
|
6910
6826
|
const variantClasses = VARIANT_CLASSES4[variant];
|
|
6911
6827
|
const heightClasses = HEIGHT_CLASSES[size];
|
|
6912
6828
|
const paddingClasses = PADDING_CLASSES[size];
|
|
6913
|
-
return /* @__PURE__ */
|
|
6829
|
+
return /* @__PURE__ */ jsxs28(
|
|
6914
6830
|
"button",
|
|
6915
6831
|
{
|
|
6916
6832
|
ref,
|
|
@@ -7004,7 +6920,7 @@ var SelectItem = forwardRef16(
|
|
|
7004
6920
|
}
|
|
7005
6921
|
props.onClick?.(e);
|
|
7006
6922
|
};
|
|
7007
|
-
return /* @__PURE__ */
|
|
6923
|
+
return /* @__PURE__ */ jsxs28(
|
|
7008
6924
|
"div",
|
|
7009
6925
|
{
|
|
7010
6926
|
role: "menuitem",
|
|
@@ -7042,11 +6958,11 @@ import {
|
|
|
7042
6958
|
forwardRef as forwardRef17,
|
|
7043
6959
|
isValidElement as isValidElement5,
|
|
7044
6960
|
Children as Children5,
|
|
7045
|
-
cloneElement as
|
|
6961
|
+
cloneElement as cloneElement6,
|
|
7046
6962
|
useState as useState15
|
|
7047
6963
|
} from "react";
|
|
7048
6964
|
import { CaretLeft as CaretLeft2, CaretRight as CaretRight4 } from "phosphor-react";
|
|
7049
|
-
import { jsx as jsx41, jsxs as
|
|
6965
|
+
import { jsx as jsx41, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
7050
6966
|
var createMenuStore = (onValueChange) => create6((set) => ({
|
|
7051
6967
|
value: "",
|
|
7052
6968
|
setValue: (value) => {
|
|
@@ -7171,7 +7087,7 @@ var MenuItem = forwardRef17(
|
|
|
7171
7087
|
children
|
|
7172
7088
|
}
|
|
7173
7089
|
),
|
|
7174
|
-
menu2: /* @__PURE__ */
|
|
7090
|
+
menu2: /* @__PURE__ */ jsxs29(
|
|
7175
7091
|
"li",
|
|
7176
7092
|
{
|
|
7177
7093
|
"data-variant": "menu2",
|
|
@@ -7196,7 +7112,7 @@ var MenuItem = forwardRef17(
|
|
|
7196
7112
|
]
|
|
7197
7113
|
}
|
|
7198
7114
|
),
|
|
7199
|
-
"menu-overflow": /* @__PURE__ */
|
|
7115
|
+
"menu-overflow": /* @__PURE__ */ jsxs29(
|
|
7200
7116
|
"li",
|
|
7201
7117
|
{
|
|
7202
7118
|
"data-variant": "menu-overflow",
|
|
@@ -7221,7 +7137,7 @@ var MenuItem = forwardRef17(
|
|
|
7221
7137
|
]
|
|
7222
7138
|
}
|
|
7223
7139
|
),
|
|
7224
|
-
breadcrumb: /* @__PURE__ */
|
|
7140
|
+
breadcrumb: /* @__PURE__ */ jsxs29(
|
|
7225
7141
|
"li",
|
|
7226
7142
|
{
|
|
7227
7143
|
"data-variant": "breadcrumb",
|
|
@@ -7298,13 +7214,13 @@ var MenuOverflow = ({
|
|
|
7298
7214
|
window.removeEventListener("resize", checkScroll);
|
|
7299
7215
|
};
|
|
7300
7216
|
}, []);
|
|
7301
|
-
return /* @__PURE__ */
|
|
7217
|
+
return /* @__PURE__ */ jsxs29(
|
|
7302
7218
|
"div",
|
|
7303
7219
|
{
|
|
7304
7220
|
"data-testid": "menu-overflow-wrapper",
|
|
7305
7221
|
className: cn("relative w-full overflow-hidden", className),
|
|
7306
7222
|
children: [
|
|
7307
|
-
showLeftArrow && /* @__PURE__ */
|
|
7223
|
+
showLeftArrow && /* @__PURE__ */ jsxs29(
|
|
7308
7224
|
"button",
|
|
7309
7225
|
{
|
|
7310
7226
|
onClick: () => internalScroll(containerRef.current, "left"),
|
|
@@ -7327,7 +7243,7 @@ var MenuOverflow = ({
|
|
|
7327
7243
|
children: /* @__PURE__ */ jsx41(MenuContent, { ref: containerRef, variant: "menu2", children })
|
|
7328
7244
|
}
|
|
7329
7245
|
),
|
|
7330
|
-
showRightArrow && /* @__PURE__ */
|
|
7246
|
+
showRightArrow && /* @__PURE__ */ jsxs29(
|
|
7331
7247
|
"button",
|
|
7332
7248
|
{
|
|
7333
7249
|
onClick: () => internalScroll(containerRef.current, "right"),
|
|
@@ -7347,7 +7263,7 @@ var injectStore5 = (children, store) => Children5.map(children, (child) => {
|
|
|
7347
7263
|
if (!isValidElement5(child)) return child;
|
|
7348
7264
|
const typedChild = child;
|
|
7349
7265
|
const shouldInject = typedChild.type === MenuItem;
|
|
7350
|
-
return
|
|
7266
|
+
return cloneElement6(typedChild, {
|
|
7351
7267
|
...shouldInject ? { store } : {},
|
|
7352
7268
|
...typedChild.props.children ? { children: injectStore5(typedChild.props.children, store) } : {}
|
|
7353
7269
|
});
|
|
@@ -7356,7 +7272,7 @@ var Menu_default = Menu;
|
|
|
7356
7272
|
|
|
7357
7273
|
// src/components/Skeleton/Skeleton.tsx
|
|
7358
7274
|
import { forwardRef as forwardRef18 } from "react";
|
|
7359
|
-
import { jsx as jsx42, jsxs as
|
|
7275
|
+
import { jsx as jsx42, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
7360
7276
|
var SKELETON_ANIMATION_CLASSES = {
|
|
7361
7277
|
pulse: "animate-pulse",
|
|
7362
7278
|
none: ""
|
|
@@ -7438,7 +7354,7 @@ var SkeletonCard = forwardRef18(
|
|
|
7438
7354
|
className = "",
|
|
7439
7355
|
...props
|
|
7440
7356
|
}, ref) => {
|
|
7441
|
-
return /* @__PURE__ */
|
|
7357
|
+
return /* @__PURE__ */ jsxs30(
|
|
7442
7358
|
"div",
|
|
7443
7359
|
{
|
|
7444
7360
|
ref,
|
|
@@ -7448,14 +7364,14 @@ var SkeletonCard = forwardRef18(
|
|
|
7448
7364
|
),
|
|
7449
7365
|
...props,
|
|
7450
7366
|
children: [
|
|
7451
|
-
/* @__PURE__ */
|
|
7367
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex items-start space-x-3", children: [
|
|
7452
7368
|
showAvatar && /* @__PURE__ */ jsx42(SkeletonCircle, { width: 40, height: 40 }),
|
|
7453
|
-
/* @__PURE__ */
|
|
7369
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex-1 space-y-2", children: [
|
|
7454
7370
|
showTitle && /* @__PURE__ */ jsx42(SkeletonText, { width: "60%", height: 20 }),
|
|
7455
7371
|
showDescription && /* @__PURE__ */ jsx42(SkeletonText, { lines, spacing: "small" })
|
|
7456
7372
|
] })
|
|
7457
7373
|
] }),
|
|
7458
|
-
showActions && /* @__PURE__ */
|
|
7374
|
+
showActions && /* @__PURE__ */ jsxs30("div", { className: "flex justify-end space-x-2 mt-4", children: [
|
|
7459
7375
|
/* @__PURE__ */ jsx42(SkeletonRectangle, { width: 80, height: 32 }),
|
|
7460
7376
|
/* @__PURE__ */ jsx42(SkeletonRectangle, { width: 80, height: 32 })
|
|
7461
7377
|
] })
|
|
@@ -7474,9 +7390,9 @@ var SkeletonList = forwardRef18(
|
|
|
7474
7390
|
className = "",
|
|
7475
7391
|
...props
|
|
7476
7392
|
}, ref) => {
|
|
7477
|
-
return /* @__PURE__ */ jsx42("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */
|
|
7393
|
+
return /* @__PURE__ */ jsx42("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ jsxs30("div", { className: "flex items-start space-x-3 p-3", children: [
|
|
7478
7394
|
showAvatar && /* @__PURE__ */ jsx42(SkeletonCircle, { width: 32, height: 32 }),
|
|
7479
|
-
/* @__PURE__ */
|
|
7395
|
+
/* @__PURE__ */ jsxs30("div", { className: "flex-1 space-y-2", children: [
|
|
7480
7396
|
showTitle && /* @__PURE__ */ jsx42(SkeletonText, { width: "40%", height: 16 }),
|
|
7481
7397
|
showDescription && /* @__PURE__ */ jsx42(SkeletonText, { lines, spacing: "small" })
|
|
7482
7398
|
] })
|
|
@@ -7485,7 +7401,7 @@ var SkeletonList = forwardRef18(
|
|
|
7485
7401
|
);
|
|
7486
7402
|
var SkeletonTable = forwardRef18(
|
|
7487
7403
|
({ rows = 5, columns = 4, showHeader = true, className = "", ...props }, ref) => {
|
|
7488
|
-
return /* @__PURE__ */
|
|
7404
|
+
return /* @__PURE__ */ jsxs30("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7489
7405
|
showHeader && /* @__PURE__ */ jsx42("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ jsx42(
|
|
7490
7406
|
SkeletonText,
|
|
7491
7407
|
{
|
|
@@ -7507,7 +7423,7 @@ var SkeletonTable = forwardRef18(
|
|
|
7507
7423
|
);
|
|
7508
7424
|
|
|
7509
7425
|
// src/components/NotFound/NotFound.tsx
|
|
7510
|
-
import { jsx as jsx43, jsxs as
|
|
7426
|
+
import { jsx as jsx43, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7511
7427
|
var NotFound = ({
|
|
7512
7428
|
title,
|
|
7513
7429
|
description,
|
|
@@ -7564,7 +7480,7 @@ var NotFound = ({
|
|
|
7564
7480
|
"aria-labelledby": "error-title",
|
|
7565
7481
|
"aria-describedby": "error-description",
|
|
7566
7482
|
className: "flex flex-col items-center text-center max-w-md space-y-6",
|
|
7567
|
-
children: /* @__PURE__ */
|
|
7483
|
+
children: /* @__PURE__ */ jsxs31("section", { "aria-label": `Erro ${errorCode}`, children: [
|
|
7568
7484
|
/* @__PURE__ */ jsx43(
|
|
7569
7485
|
"div",
|
|
7570
7486
|
{
|
|
@@ -7573,7 +7489,7 @@ var NotFound = ({
|
|
|
7573
7489
|
children: errorCode
|
|
7574
7490
|
}
|
|
7575
7491
|
),
|
|
7576
|
-
/* @__PURE__ */
|
|
7492
|
+
/* @__PURE__ */ jsxs31("header", { className: "space-y-2", children: [
|
|
7577
7493
|
/* @__PURE__ */ jsx43(
|
|
7578
7494
|
Text_default,
|
|
7579
7495
|
{
|
|
@@ -7625,7 +7541,7 @@ import {
|
|
|
7625
7541
|
ClosedCaptioning,
|
|
7626
7542
|
DotsThreeVertical as DotsThreeVertical2
|
|
7627
7543
|
} from "phosphor-react";
|
|
7628
|
-
import { jsx as jsx44, jsxs as
|
|
7544
|
+
import { jsx as jsx44, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7629
7545
|
var CONTROLS_HIDE_TIMEOUT = 3e3;
|
|
7630
7546
|
var LEAVE_HIDE_TIMEOUT = 1e3;
|
|
7631
7547
|
var INIT_DELAY = 100;
|
|
@@ -7660,7 +7576,7 @@ var VolumeControls = ({
|
|
|
7660
7576
|
isMuted,
|
|
7661
7577
|
onVolumeChange,
|
|
7662
7578
|
onToggleMute
|
|
7663
|
-
}) => /* @__PURE__ */
|
|
7579
|
+
}) => /* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-2", children: [
|
|
7664
7580
|
/* @__PURE__ */ jsx44(
|
|
7665
7581
|
IconButton_default,
|
|
7666
7582
|
{
|
|
@@ -7733,7 +7649,7 @@ var SpeedMenu = ({
|
|
|
7733
7649
|
top: `${position.top}px`,
|
|
7734
7650
|
left: `${position.left}px`
|
|
7735
7651
|
} : void 0,
|
|
7736
|
-
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((speed) => /* @__PURE__ */
|
|
7652
|
+
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((speed) => /* @__PURE__ */ jsxs32(
|
|
7737
7653
|
"button",
|
|
7738
7654
|
{
|
|
7739
7655
|
role: "menuitemradio",
|
|
@@ -7750,7 +7666,7 @@ var SpeedMenu = ({
|
|
|
7750
7666
|
}
|
|
7751
7667
|
);
|
|
7752
7668
|
const portalContent = typeof window !== "undefined" && typeof document !== "undefined" ? createPortal(menuContent, document.body) : null;
|
|
7753
|
-
return /* @__PURE__ */
|
|
7669
|
+
return /* @__PURE__ */ jsxs32("div", { className: "relative", ref: speedMenuContainerRef, children: [
|
|
7754
7670
|
/* @__PURE__ */ jsx44(
|
|
7755
7671
|
IconButton_default,
|
|
7756
7672
|
{
|
|
@@ -8150,8 +8066,8 @@ var VideoPlayer = ({
|
|
|
8150
8066
|
toggleFullscreen
|
|
8151
8067
|
]
|
|
8152
8068
|
);
|
|
8153
|
-
return /* @__PURE__ */
|
|
8154
|
-
(title || subtitleText) && /* @__PURE__ */ jsx44("div", { className: "bg-subject-1 px-8 py-4 flex items-end justify-between min-h-20", children: /* @__PURE__ */
|
|
8069
|
+
return /* @__PURE__ */ jsxs32("div", { className: cn("flex flex-col", className), children: [
|
|
8070
|
+
(title || subtitleText) && /* @__PURE__ */ jsx44("div", { className: "bg-subject-1 px-8 py-4 flex items-end justify-between min-h-20", children: /* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-1", children: [
|
|
8155
8071
|
title && /* @__PURE__ */ jsx44(
|
|
8156
8072
|
Text_default,
|
|
8157
8073
|
{
|
|
@@ -8175,7 +8091,7 @@ var VideoPlayer = ({
|
|
|
8175
8091
|
}
|
|
8176
8092
|
)
|
|
8177
8093
|
] }) }),
|
|
8178
|
-
/* @__PURE__ */
|
|
8094
|
+
/* @__PURE__ */ jsxs32(
|
|
8179
8095
|
"section",
|
|
8180
8096
|
{
|
|
8181
8097
|
className: cn(
|
|
@@ -8244,7 +8160,7 @@ var VideoPlayer = ({
|
|
|
8244
8160
|
) })
|
|
8245
8161
|
}
|
|
8246
8162
|
),
|
|
8247
|
-
/* @__PURE__ */
|
|
8163
|
+
/* @__PURE__ */ jsxs32(
|
|
8248
8164
|
"div",
|
|
8249
8165
|
{
|
|
8250
8166
|
className: cn(
|
|
@@ -8261,8 +8177,8 @@ var VideoPlayer = ({
|
|
|
8261
8177
|
onSeek: handleSeek
|
|
8262
8178
|
}
|
|
8263
8179
|
),
|
|
8264
|
-
/* @__PURE__ */
|
|
8265
|
-
/* @__PURE__ */
|
|
8180
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex items-center justify-between px-4 pb-4", children: [
|
|
8181
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex items-center gap-4", children: [
|
|
8266
8182
|
/* @__PURE__ */ jsx44(
|
|
8267
8183
|
IconButton_default,
|
|
8268
8184
|
{
|
|
@@ -8293,7 +8209,7 @@ var VideoPlayer = ({
|
|
|
8293
8209
|
)
|
|
8294
8210
|
}
|
|
8295
8211
|
),
|
|
8296
|
-
/* @__PURE__ */
|
|
8212
|
+
/* @__PURE__ */ jsxs32(Text_default, { size: "sm", weight: "medium", color: "text-white", children: [
|
|
8297
8213
|
formatTime(currentTime),
|
|
8298
8214
|
" / ",
|
|
8299
8215
|
formatTime(duration)
|
|
@@ -8323,7 +8239,7 @@ var VideoPlayer_default = VideoPlayer;
|
|
|
8323
8239
|
// src/components/Whiteboard/Whiteboard.tsx
|
|
8324
8240
|
import { useCallback as useCallback3, useState as useState17 } from "react";
|
|
8325
8241
|
import { ArrowsOut } from "phosphor-react";
|
|
8326
|
-
import { Fragment as Fragment8, jsx as jsx45, jsxs as
|
|
8242
|
+
import { Fragment as Fragment8, jsx as jsx45, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
8327
8243
|
var IMAGE_WIDTH = 225;
|
|
8328
8244
|
var IMAGE_HEIGHT = 90;
|
|
8329
8245
|
var Whiteboard = ({
|
|
@@ -8381,7 +8297,7 @@ var Whiteboard = ({
|
|
|
8381
8297
|
className
|
|
8382
8298
|
),
|
|
8383
8299
|
...rest,
|
|
8384
|
-
children: /* @__PURE__ */ jsx45("div", { className: cn("grid gap-4", gridColsClass), children: images.map((image) => /* @__PURE__ */
|
|
8300
|
+
children: /* @__PURE__ */ jsx45("div", { className: cn("grid gap-4", gridColsClass), children: images.map((image) => /* @__PURE__ */ jsxs33(
|
|
8385
8301
|
"div",
|
|
8386
8302
|
{
|
|
8387
8303
|
className: "relative group overflow-hidden bg-gray-100 rounded-lg",
|
|
@@ -8397,7 +8313,7 @@ var Whiteboard = ({
|
|
|
8397
8313
|
width: `${IMAGE_WIDTH}px`,
|
|
8398
8314
|
height: `${IMAGE_HEIGHT}px`
|
|
8399
8315
|
},
|
|
8400
|
-
children: imageErrors.has(image.id) ? /* @__PURE__ */ jsx45("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200", children: /* @__PURE__ */ jsx45("p", { className: "text-gray-500 text-sm text-center px-2", children: "Imagem indispon\xEDvel" }) }) : /* @__PURE__ */
|
|
8316
|
+
children: imageErrors.has(image.id) ? /* @__PURE__ */ jsx45("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200", children: /* @__PURE__ */ jsx45("p", { className: "text-gray-500 text-sm text-center px-2", children: "Imagem indispon\xEDvel" }) }) : /* @__PURE__ */ jsxs33(Fragment8, { children: [
|
|
8401
8317
|
/* @__PURE__ */ jsx45(
|
|
8402
8318
|
"img",
|
|
8403
8319
|
{
|
|
@@ -9445,7 +9361,7 @@ var useQuizStore = create7()(
|
|
|
9445
9361
|
var mock_image_question_default = "./mock-image-question-HEZCLFDL.png";
|
|
9446
9362
|
|
|
9447
9363
|
// src/components/Quiz/Quiz.tsx
|
|
9448
|
-
import { Fragment as Fragment10, jsx as jsx47, jsxs as
|
|
9364
|
+
import { Fragment as Fragment10, jsx as jsx47, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
9449
9365
|
var getStatusBadge = (status) => {
|
|
9450
9366
|
switch (status) {
|
|
9451
9367
|
case "correct":
|
|
@@ -9510,7 +9426,7 @@ var QuizHeaderResult = forwardRef19(
|
|
|
9510
9426
|
return "N\xE3o foi dessa vez...voc\xEA deixou a resposta em branco";
|
|
9511
9427
|
}
|
|
9512
9428
|
};
|
|
9513
|
-
return /* @__PURE__ */
|
|
9429
|
+
return /* @__PURE__ */ jsxs34(
|
|
9514
9430
|
"div",
|
|
9515
9431
|
{
|
|
9516
9432
|
ref,
|
|
@@ -9555,8 +9471,8 @@ var QuizTitle = forwardRef19(
|
|
|
9555
9471
|
const handleCancelExit = () => {
|
|
9556
9472
|
setShowExitConfirmation(false);
|
|
9557
9473
|
};
|
|
9558
|
-
return /* @__PURE__ */
|
|
9559
|
-
/* @__PURE__ */
|
|
9474
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9475
|
+
/* @__PURE__ */ jsxs34(
|
|
9560
9476
|
"div",
|
|
9561
9477
|
{
|
|
9562
9478
|
ref,
|
|
@@ -9575,7 +9491,7 @@ var QuizTitle = forwardRef19(
|
|
|
9575
9491
|
onClick: handleBackClick
|
|
9576
9492
|
}
|
|
9577
9493
|
),
|
|
9578
|
-
/* @__PURE__ */
|
|
9494
|
+
/* @__PURE__ */ jsxs34("span", { className: "flex flex-col gap-2 text-center", children: [
|
|
9579
9495
|
/* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-md", children: quizTitle }),
|
|
9580
9496
|
/* @__PURE__ */ jsx47("p", { className: "text-text-600 text-xs", children: totalQuestions > 0 ? `${currentQuestionIndex + 1} de ${totalQuestions}` : "0 de 0" })
|
|
9581
9497
|
] }),
|
|
@@ -9681,7 +9597,7 @@ var QuizAlternative = ({ paddingBottom }) => {
|
|
|
9681
9597
|
});
|
|
9682
9598
|
if (!alternatives)
|
|
9683
9599
|
return /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47("p", { children: "N\xE3o h\xE1 Alternativas" }) });
|
|
9684
|
-
return /* @__PURE__ */
|
|
9600
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9685
9601
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9686
9602
|
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47(
|
|
9687
9603
|
AlternativesList,
|
|
@@ -9782,7 +9698,7 @@ var QuizMultipleChoice = ({ paddingBottom }) => {
|
|
|
9782
9698
|
});
|
|
9783
9699
|
if (!choices)
|
|
9784
9700
|
return /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47("p", { children: "N\xE3o h\xE1 Escolhas Multiplas" }) });
|
|
9785
|
-
return /* @__PURE__ */
|
|
9701
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9786
9702
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9787
9703
|
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47(
|
|
9788
9704
|
MultipleChoiceList,
|
|
@@ -9833,7 +9749,7 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
9833
9749
|
return /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47("p", { className: "text-text-600 text-md", children: "Nenhuma quest\xE3o dispon\xEDvel" }) });
|
|
9834
9750
|
}
|
|
9835
9751
|
const localAnswer = (variant == "result" ? currentQuestionResult?.answer : currentAnswer?.answer) || "";
|
|
9836
|
-
return /* @__PURE__ */
|
|
9752
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9837
9753
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Resposta" }),
|
|
9838
9754
|
/* @__PURE__ */ jsx47(QuizContainer, { className: cn(variant != "result" && paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "space-y-4 max-h-[600px] overflow-y-auto", children: variant === "default" ? /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47(
|
|
9839
9755
|
TextArea_default,
|
|
@@ -9846,7 +9762,7 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
9846
9762
|
className: "min-h-[120px] max-h-[400px] resize-none overflow-y-auto"
|
|
9847
9763
|
}
|
|
9848
9764
|
) }) : /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47("p", { className: "text-text-600 text-md whitespace-pre-wrap", children: localAnswer || "Nenhuma resposta fornecida" }) }) }) }),
|
|
9849
|
-
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */
|
|
9765
|
+
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9850
9766
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Observa\xE7\xE3o do professor" }),
|
|
9851
9767
|
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("p", { className: "text-text-600 text-md whitespace-pre-wrap", children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Integer euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse potenti. Nullam ac urna eu felis dapibus condimentum sit amet a augue. Sed non neque elit. Sed ut imperdiet nisi. Proin condimentum fermentum nunc. Etiam pharetra, erat sed fermentum feugiat, velit mauris egestas quam, ut aliquam massa nisl quis neque. Suspendisse in orci enim. Mauris euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Integer euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse potenti. Nullam ac urna eu felis dapibus condimentum sit amet a augue. Sed non neque elit. Sed ut imperdiet nisi. Proin condimentum fermentum nunc. Etiam pharetra, erat sed fermentum feugiat, velit mauris egestas quam, ut aliquam massa nisl quis neque. Suspendisse in orci enim. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Integer euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse potenti. Nullam ac urna eu felis dapibus condimentum sit amet a augue. Sed non neque elit. Sed ut imperdiet nisi. Proin condimentum fermentum nunc. Etiam pharetra, erat sed fermentum feugiat, velit mauris egestas quam, ut aliquam massa nisl quis neque. Suspendisse in orci enim." }) })
|
|
9852
9768
|
] })
|
|
@@ -9874,16 +9790,16 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
9874
9790
|
];
|
|
9875
9791
|
const getLetterByIndex = (index) => String.fromCharCode(97 + index);
|
|
9876
9792
|
const isDefaultVariant = variant == "default";
|
|
9877
|
-
return /* @__PURE__ */
|
|
9793
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9878
9794
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9879
9795
|
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
9880
9796
|
const variantCorrect = option.isCorrect ? "correct" : "incorrect";
|
|
9881
|
-
return /* @__PURE__ */
|
|
9797
|
+
return /* @__PURE__ */ jsxs34(
|
|
9882
9798
|
"section",
|
|
9883
9799
|
{
|
|
9884
9800
|
className: "flex flex-col gap-2",
|
|
9885
9801
|
children: [
|
|
9886
|
-
/* @__PURE__ */
|
|
9802
|
+
/* @__PURE__ */ jsxs34(
|
|
9887
9803
|
"div",
|
|
9888
9804
|
{
|
|
9889
9805
|
className: cn(
|
|
@@ -9892,9 +9808,9 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
9892
9808
|
),
|
|
9893
9809
|
children: [
|
|
9894
9810
|
/* @__PURE__ */ jsx47("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index).concat(") ").concat(option.label) }),
|
|
9895
|
-
isDefaultVariant ? /* @__PURE__ */
|
|
9811
|
+
isDefaultVariant ? /* @__PURE__ */ jsxs34(Select_default, { size: "medium", children: [
|
|
9896
9812
|
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione opc\xE3o" }) }),
|
|
9897
|
-
/* @__PURE__ */
|
|
9813
|
+
/* @__PURE__ */ jsxs34(SelectContent, { children: [
|
|
9898
9814
|
/* @__PURE__ */ jsx47(SelectItem, { value: "V", children: "Verdadeiro" }),
|
|
9899
9815
|
/* @__PURE__ */ jsx47(SelectItem, { value: "F", children: "Falso" })
|
|
9900
9816
|
] })
|
|
@@ -9902,7 +9818,7 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
9902
9818
|
]
|
|
9903
9819
|
}
|
|
9904
9820
|
),
|
|
9905
|
-
!isDefaultVariant && /* @__PURE__ */
|
|
9821
|
+
!isDefaultVariant && /* @__PURE__ */ jsxs34("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
9906
9822
|
/* @__PURE__ */ jsx47("p", { className: "text-text-800 text-2xs", children: "Resposta selecionada: V" }),
|
|
9907
9823
|
!option.isCorrect && /* @__PURE__ */ jsx47("p", { className: "text-text-800 text-2xs", children: "Resposta correta: F" })
|
|
9908
9824
|
] })
|
|
@@ -9994,13 +9910,13 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
9994
9910
|
const assignedDots = new Set(
|
|
9995
9911
|
userAnswers.map((a) => a.dotOption).filter(Boolean)
|
|
9996
9912
|
);
|
|
9997
|
-
return /* @__PURE__ */
|
|
9913
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
9998
9914
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9999
9915
|
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
10000
9916
|
const answer = userAnswers[index];
|
|
10001
9917
|
const variantCorrect = answer.isCorrect ? "correct" : "incorrect";
|
|
10002
|
-
return /* @__PURE__ */
|
|
10003
|
-
/* @__PURE__ */
|
|
9918
|
+
return /* @__PURE__ */ jsxs34("section", { className: "flex flex-col gap-2", children: [
|
|
9919
|
+
/* @__PURE__ */ jsxs34(
|
|
10004
9920
|
"div",
|
|
10005
9921
|
{
|
|
10006
9922
|
className: cn(
|
|
@@ -10009,7 +9925,7 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
10009
9925
|
),
|
|
10010
9926
|
children: [
|
|
10011
9927
|
/* @__PURE__ */ jsx47("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index) + ") " + option.label }),
|
|
10012
|
-
isDefaultVariant ? /* @__PURE__ */
|
|
9928
|
+
isDefaultVariant ? /* @__PURE__ */ jsxs34(
|
|
10013
9929
|
Select_default,
|
|
10014
9930
|
{
|
|
10015
9931
|
size: "medium",
|
|
@@ -10026,12 +9942,12 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
10026
9942
|
]
|
|
10027
9943
|
}
|
|
10028
9944
|
),
|
|
10029
|
-
!isDefaultVariant && /* @__PURE__ */
|
|
10030
|
-
/* @__PURE__ */
|
|
9945
|
+
!isDefaultVariant && /* @__PURE__ */ jsxs34("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
9946
|
+
/* @__PURE__ */ jsxs34("p", { className: "text-text-800 text-2xs", children: [
|
|
10031
9947
|
"Resposta selecionada: ",
|
|
10032
9948
|
answer.dotOption || "Nenhuma"
|
|
10033
9949
|
] }),
|
|
10034
|
-
!answer.isCorrect && /* @__PURE__ */
|
|
9950
|
+
!answer.isCorrect && /* @__PURE__ */ jsxs34("p", { className: "text-text-800 text-2xs", children: [
|
|
10035
9951
|
"Resposta correta: ",
|
|
10036
9952
|
answer.correctOption
|
|
10037
9953
|
] })
|
|
@@ -10101,7 +10017,7 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
10101
10017
|
return /* @__PURE__ */ jsx47("p", { className: "inline-flex mb-2.5 text-success-600 font-semibold text-md border-b-2 border-success-600", children: mockAnswer?.correctAnswer });
|
|
10102
10018
|
};
|
|
10103
10019
|
const renderDefaultElement = (selectId, startIndex, selectedValue, availableOptionsForThisSelect) => {
|
|
10104
|
-
return /* @__PURE__ */
|
|
10020
|
+
return /* @__PURE__ */ jsxs34(
|
|
10105
10021
|
Select_default,
|
|
10106
10022
|
{
|
|
10107
10023
|
value: selectedValue,
|
|
@@ -10186,7 +10102,7 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
10186
10102
|
}
|
|
10187
10103
|
return elements;
|
|
10188
10104
|
};
|
|
10189
|
-
return /* @__PURE__ */
|
|
10105
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
10190
10106
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
10191
10107
|
/* @__PURE__ */ jsx47(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ jsx47("div", { className: "space-y-6 px-4 h-auto", children: /* @__PURE__ */ jsx47(
|
|
10192
10108
|
"div",
|
|
@@ -10198,7 +10114,7 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
10198
10114
|
children: renderTextWithSelects(exampleText).map((element) => /* @__PURE__ */ jsx47("span", { children: element.element }, element.id))
|
|
10199
10115
|
}
|
|
10200
10116
|
) }) }),
|
|
10201
|
-
variant === "result" && /* @__PURE__ */
|
|
10117
|
+
variant === "result" && /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
10202
10118
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Resultado" }),
|
|
10203
10119
|
/* @__PURE__ */ jsx47(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ jsx47("div", { className: "space-y-6 px-4", children: /* @__PURE__ */ jsx47(
|
|
10204
10120
|
"div",
|
|
@@ -10258,36 +10174,36 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
10258
10174
|
}
|
|
10259
10175
|
return "bg-success-600/70 border-white";
|
|
10260
10176
|
};
|
|
10261
|
-
return /* @__PURE__ */
|
|
10177
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
10262
10178
|
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Clique na \xE1rea correta" }),
|
|
10263
|
-
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */
|
|
10179
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsxs34(
|
|
10264
10180
|
"div",
|
|
10265
10181
|
{
|
|
10266
10182
|
"data-testid": "quiz-image-container",
|
|
10267
10183
|
className: "space-y-6 p-3 relative inline-block",
|
|
10268
10184
|
children: [
|
|
10269
|
-
variant == "result" && /* @__PURE__ */
|
|
10185
|
+
variant == "result" && /* @__PURE__ */ jsxs34(
|
|
10270
10186
|
"div",
|
|
10271
10187
|
{
|
|
10272
10188
|
"data-testid": "quiz-legend",
|
|
10273
10189
|
className: "flex items-center gap-4 text-xs",
|
|
10274
10190
|
children: [
|
|
10275
|
-
/* @__PURE__ */
|
|
10191
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
10276
10192
|
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-indicator-primary/70 border border-[#F8CC2E]" }),
|
|
10277
10193
|
/* @__PURE__ */ jsx47("span", { className: "text-text-600 font-medium text-sm", children: "\xC1rea correta" })
|
|
10278
10194
|
] }),
|
|
10279
|
-
/* @__PURE__ */
|
|
10195
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
10280
10196
|
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-success-600/70 border border-white" }),
|
|
10281
10197
|
/* @__PURE__ */ jsx47("span", { className: "text-text-600 font-medium text-sm", children: "Resposta correta" })
|
|
10282
10198
|
] }),
|
|
10283
|
-
/* @__PURE__ */
|
|
10199
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-2", children: [
|
|
10284
10200
|
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-indicator-error/70 border border-white" }),
|
|
10285
10201
|
/* @__PURE__ */ jsx47("span", { className: "text-text-600 font-medium text-sm", children: "Resposta incorreta" })
|
|
10286
10202
|
] })
|
|
10287
10203
|
]
|
|
10288
10204
|
}
|
|
10289
10205
|
),
|
|
10290
|
-
/* @__PURE__ */
|
|
10206
|
+
/* @__PURE__ */ jsxs34(
|
|
10291
10207
|
"button",
|
|
10292
10208
|
{
|
|
10293
10209
|
"data-testid": "quiz-image-button",
|
|
@@ -10394,11 +10310,11 @@ var QuizQuestionList = ({
|
|
|
10394
10310
|
return "Em branco";
|
|
10395
10311
|
}
|
|
10396
10312
|
};
|
|
10397
|
-
return /* @__PURE__ */
|
|
10313
|
+
return /* @__PURE__ */ jsxs34("div", { className: "space-y-6 px-4 h-full", children: [
|
|
10398
10314
|
Object.entries(filteredGroupedQuestions).length == 0 && /* @__PURE__ */ jsx47("div", { className: "flex items-center justify-center text-gray-500 py-8 h-full", children: /* @__PURE__ */ jsx47("p", { className: "text-lg", children: "Nenhum resultado" }) }),
|
|
10399
10315
|
Object.entries(filteredGroupedQuestions).map(
|
|
10400
|
-
([subjectId, questions]) => /* @__PURE__ */
|
|
10401
|
-
/* @__PURE__ */
|
|
10316
|
+
([subjectId, questions]) => /* @__PURE__ */ jsxs34("section", { className: "flex flex-col gap-2", children: [
|
|
10317
|
+
/* @__PURE__ */ jsxs34("span", { className: "pt-6 pb-4 flex flex-row gap-2", children: [
|
|
10402
10318
|
/* @__PURE__ */ jsx47("div", { className: "bg-primary-500 p-1 rounded-sm flex items-center justify-center", children: /* @__PURE__ */ jsx47(BookOpen, { size: 17, className: "text-white" }) }),
|
|
10403
10319
|
/* @__PURE__ */ jsx47("p", { className: "text-text-800 font-bold text-lg", children: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" })
|
|
10404
10320
|
] }),
|
|
@@ -10485,7 +10401,7 @@ var QuizFooter = forwardRef19(
|
|
|
10485
10401
|
return;
|
|
10486
10402
|
}
|
|
10487
10403
|
};
|
|
10488
|
-
return /* @__PURE__ */
|
|
10404
|
+
return /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
10489
10405
|
/* @__PURE__ */ jsx47(
|
|
10490
10406
|
"footer",
|
|
10491
10407
|
{
|
|
@@ -10495,8 +10411,8 @@ var QuizFooter = forwardRef19(
|
|
|
10495
10411
|
className
|
|
10496
10412
|
),
|
|
10497
10413
|
...props,
|
|
10498
|
-
children: variant === "default" ? /* @__PURE__ */
|
|
10499
|
-
/* @__PURE__ */
|
|
10414
|
+
children: variant === "default" ? /* @__PURE__ */ jsxs34(Fragment10, { children: [
|
|
10415
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex flex-row items-center gap-1", children: [
|
|
10500
10416
|
/* @__PURE__ */ jsx47(
|
|
10501
10417
|
IconButton_default,
|
|
10502
10418
|
{
|
|
@@ -10600,11 +10516,11 @@ var QuizFooter = forwardRef19(
|
|
|
10600
10516
|
closeOnEscape: false,
|
|
10601
10517
|
hideCloseButton: true,
|
|
10602
10518
|
size: "md",
|
|
10603
|
-
children: /* @__PURE__ */
|
|
10519
|
+
children: /* @__PURE__ */ jsxs34("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
|
|
10604
10520
|
resultImageComponent ? /* @__PURE__ */ jsx47("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ jsx47("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ jsx47("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
|
|
10605
|
-
/* @__PURE__ */
|
|
10521
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
10606
10522
|
/* @__PURE__ */ jsx47("h2", { className: "text-text-950 font-bold text-lg", children: "Voc\xEA concluiu o simulado!" }),
|
|
10607
|
-
/* @__PURE__ */
|
|
10523
|
+
/* @__PURE__ */ jsxs34("p", { className: "text-text-500 font-sm", children: [
|
|
10608
10524
|
"Voc\xEA acertou",
|
|
10609
10525
|
" ",
|
|
10610
10526
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|
|
@@ -10614,7 +10530,7 @@ var QuizFooter = forwardRef19(
|
|
|
10614
10530
|
" quest\xF5es."
|
|
10615
10531
|
] })
|
|
10616
10532
|
] }),
|
|
10617
|
-
/* @__PURE__ */
|
|
10533
|
+
/* @__PURE__ */ jsxs34("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: [
|
|
10618
10534
|
/* @__PURE__ */ jsx47(
|
|
10619
10535
|
Button_default,
|
|
10620
10536
|
{
|
|
@@ -10637,10 +10553,10 @@ var QuizFooter = forwardRef19(
|
|
|
10637
10553
|
onClose: () => setModalNavigateOpen(false),
|
|
10638
10554
|
title: "Quest\xF5es",
|
|
10639
10555
|
size: "lg",
|
|
10640
|
-
children: /* @__PURE__ */
|
|
10641
|
-
/* @__PURE__ */
|
|
10556
|
+
children: /* @__PURE__ */ jsxs34("div", { className: "flex flex-col w-full not-lg:h-[calc(100vh-200px)] lg:max-h-[687px] lg:h-[687px]", children: [
|
|
10557
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex flex-row justify-between items-center py-6 pt-6 pb-4 border-b border-border-200 flex-shrink-0", children: [
|
|
10642
10558
|
/* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-lg", children: "Filtrar por" }),
|
|
10643
|
-
/* @__PURE__ */ jsx47("span", { className: "max-w-[266px]", children: /* @__PURE__ */
|
|
10559
|
+
/* @__PURE__ */ jsx47("span", { className: "max-w-[266px]", children: /* @__PURE__ */ jsxs34(Select_default, { value: filterType, onValueChange: setFilterType, children: [
|
|
10644
10560
|
/* @__PURE__ */ jsx47(
|
|
10645
10561
|
SelectTrigger,
|
|
10646
10562
|
{
|
|
@@ -10649,7 +10565,7 @@ var QuizFooter = forwardRef19(
|
|
|
10649
10565
|
children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione uma op\xE7\xE3o" })
|
|
10650
10566
|
}
|
|
10651
10567
|
),
|
|
10652
|
-
/* @__PURE__ */
|
|
10568
|
+
/* @__PURE__ */ jsxs34(SelectContent, { children: [
|
|
10653
10569
|
/* @__PURE__ */ jsx47(SelectItem, { value: "all", children: "Todas" }),
|
|
10654
10570
|
/* @__PURE__ */ jsx47(SelectItem, { value: "unanswered", children: "Em branco" }),
|
|
10655
10571
|
/* @__PURE__ */ jsx47(SelectItem, { value: "answered", children: "Respondidas" })
|
|
@@ -10701,7 +10617,7 @@ var QuizBadge = ({
|
|
|
10701
10617
|
var QuizResultHeaderTitle = forwardRef19(({ className, ...props }, ref) => {
|
|
10702
10618
|
const { getActiveQuiz } = useQuizStore();
|
|
10703
10619
|
const activeQuiz = getActiveQuiz();
|
|
10704
|
-
return /* @__PURE__ */
|
|
10620
|
+
return /* @__PURE__ */ jsxs34(
|
|
10705
10621
|
"div",
|
|
10706
10622
|
{
|
|
10707
10623
|
ref,
|
|
@@ -10769,14 +10685,14 @@ var QuizResultPerformance = forwardRef19(
|
|
|
10769
10685
|
});
|
|
10770
10686
|
}
|
|
10771
10687
|
const percentage = totalQuestions > 0 ? Math.round(correctAnswers / totalQuestions * 100) : 0;
|
|
10772
|
-
return /* @__PURE__ */
|
|
10688
|
+
return /* @__PURE__ */ jsxs34(
|
|
10773
10689
|
"div",
|
|
10774
10690
|
{
|
|
10775
10691
|
className: "flex flex-row gap-6 p-6 rounded-xl bg-background justify-between",
|
|
10776
10692
|
ref,
|
|
10777
10693
|
...props,
|
|
10778
10694
|
children: [
|
|
10779
|
-
/* @__PURE__ */
|
|
10695
|
+
/* @__PURE__ */ jsxs34("div", { className: "relative", children: [
|
|
10780
10696
|
/* @__PURE__ */ jsx47(
|
|
10781
10697
|
ProgressCircle_default,
|
|
10782
10698
|
{
|
|
@@ -10787,14 +10703,14 @@ var QuizResultPerformance = forwardRef19(
|
|
|
10787
10703
|
label: ""
|
|
10788
10704
|
}
|
|
10789
10705
|
),
|
|
10790
|
-
/* @__PURE__ */
|
|
10791
|
-
/* @__PURE__ */
|
|
10706
|
+
/* @__PURE__ */ jsxs34("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
10707
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-1 mb-1", children: [
|
|
10792
10708
|
/* @__PURE__ */ jsx47(Clock2, { size: 12, weight: "regular", className: "text-text-800" }),
|
|
10793
10709
|
/* @__PURE__ */ jsx47("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(
|
|
10794
10710
|
(getQuestionResultStatistics()?.timeSpent ?? 0) * 60
|
|
10795
10711
|
) })
|
|
10796
10712
|
] }),
|
|
10797
|
-
/* @__PURE__ */
|
|
10713
|
+
/* @__PURE__ */ jsxs34("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
|
|
10798
10714
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|
|
10799
10715
|
" de",
|
|
10800
10716
|
" ",
|
|
@@ -10803,7 +10719,7 @@ var QuizResultPerformance = forwardRef19(
|
|
|
10803
10719
|
/* @__PURE__ */ jsx47("div", { className: "text-2xs font-medium text-text-600 mt-1", children: "Corretas" })
|
|
10804
10720
|
] })
|
|
10805
10721
|
] }),
|
|
10806
|
-
/* @__PURE__ */
|
|
10722
|
+
/* @__PURE__ */ jsxs34("div", { className: "flex flex-col gap-4 w-full", children: [
|
|
10807
10723
|
/* @__PURE__ */ jsx47(
|
|
10808
10724
|
ProgressBar_default,
|
|
10809
10725
|
{
|
|
@@ -10879,7 +10795,7 @@ var QuizListResult = forwardRef19(({ className, onSubjectClick, ...props }, ref)
|
|
|
10879
10795
|
};
|
|
10880
10796
|
}
|
|
10881
10797
|
);
|
|
10882
|
-
return /* @__PURE__ */
|
|
10798
|
+
return /* @__PURE__ */ jsxs34("section", { ref, className, ...props, children: [
|
|
10883
10799
|
/* @__PURE__ */ jsx47("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Mat\xE9rias" }),
|
|
10884
10800
|
/* @__PURE__ */ jsx47("ul", { className: "flex flex-col gap-2", children: subjectsStats.map((subject) => /* @__PURE__ */ jsx47("li", { children: /* @__PURE__ */ jsx47(
|
|
10885
10801
|
CardResults,
|
|
@@ -10903,9 +10819,9 @@ var QuizListResultByMateria = ({
|
|
|
10903
10819
|
const { getQuestionsGroupedBySubject, getQuestionIndex } = useQuizStore();
|
|
10904
10820
|
const groupedQuestions = getQuestionsGroupedBySubject();
|
|
10905
10821
|
const answeredQuestions = groupedQuestions[subject] || [];
|
|
10906
|
-
return /* @__PURE__ */
|
|
10822
|
+
return /* @__PURE__ */ jsxs34("div", { className: "flex flex-col", children: [
|
|
10907
10823
|
/* @__PURE__ */ jsx47("div", { className: "flex flex-row pt-4 justify-between", children: /* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-2xl", children: answeredQuestions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" }) }),
|
|
10908
|
-
/* @__PURE__ */
|
|
10824
|
+
/* @__PURE__ */ jsxs34("section", { className: "flex flex-col ", children: [
|
|
10909
10825
|
/* @__PURE__ */ jsx47("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Resultado das quest\xF5es" }),
|
|
10910
10826
|
/* @__PURE__ */ jsx47("ul", { className: "flex flex-col gap-2 pt-4", children: answeredQuestions.map((question) => {
|
|
10911
10827
|
const questionIndex = getQuestionIndex(
|
|
@@ -10936,7 +10852,7 @@ var QuizListResultByMateria = ({
|
|
|
10936
10852
|
|
|
10937
10853
|
// src/components/LoadingModal/loadingModal.tsx
|
|
10938
10854
|
import { forwardRef as forwardRef20 } from "react";
|
|
10939
|
-
import { jsx as jsx48, jsxs as
|
|
10855
|
+
import { jsx as jsx48, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
10940
10856
|
var LoadingModal = forwardRef20(
|
|
10941
10857
|
({ open, title = "Titulo...", subtitle = "Subtitulo...", ...props }, ref) => {
|
|
10942
10858
|
if (!open) return null;
|
|
@@ -10949,8 +10865,8 @@ var LoadingModal = forwardRef20(
|
|
|
10949
10865
|
"aria-describedby": "loading-modal-subtitle",
|
|
10950
10866
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-background/90 backdrop-blur-xs",
|
|
10951
10867
|
...props,
|
|
10952
|
-
children: /* @__PURE__ */
|
|
10953
|
-
/* @__PURE__ */ jsx48("span", { className: "animate-spin", "aria-hidden": "true", children: /* @__PURE__ */
|
|
10868
|
+
children: /* @__PURE__ */ jsxs35("div", { className: "w-full max-w-[364px] flex flex-col items-center justify-center gap-14", children: [
|
|
10869
|
+
/* @__PURE__ */ jsx48("span", { className: "animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ jsxs35(
|
|
10954
10870
|
"svg",
|
|
10955
10871
|
{
|
|
10956
10872
|
width: "102",
|
|
@@ -10978,7 +10894,7 @@ var LoadingModal = forwardRef20(
|
|
|
10978
10894
|
]
|
|
10979
10895
|
}
|
|
10980
10896
|
) }),
|
|
10981
|
-
/* @__PURE__ */
|
|
10897
|
+
/* @__PURE__ */ jsxs35("span", { className: "flex flex-col gap-4 text-center", children: [
|
|
10982
10898
|
/* @__PURE__ */ jsx48("p", { id: "loading-modal-title", className: "text-text-950 text-lg", children: title }),
|
|
10983
10899
|
/* @__PURE__ */ jsx48("p", { id: "loading-modal-subtitle", className: "text-text-600 text-lg", children: subtitle })
|
|
10984
10900
|
] })
|
|
@@ -11238,13 +11154,13 @@ var createNotificationStore = (apiClient) => {
|
|
|
11238
11154
|
var mock_content_default = "./mock-content-K2CDVG6P.png";
|
|
11239
11155
|
|
|
11240
11156
|
// src/components/NotificationCard/NotificationCard.tsx
|
|
11241
|
-
import { Fragment as Fragment11, jsx as jsx49, jsxs as
|
|
11157
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
11242
11158
|
var NotificationEmpty = ({
|
|
11243
11159
|
emptyStateImage,
|
|
11244
11160
|
emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
|
|
11245
11161
|
emptyStateDescription = "Voc\xEA est\xE1 em dia com todas as novidades. Volte depois para conferir atualiza\xE7\xF5es!"
|
|
11246
11162
|
}) => {
|
|
11247
|
-
return /* @__PURE__ */
|
|
11163
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col items-center justify-center gap-4 p-6 w-full", children: [
|
|
11248
11164
|
emptyStateImage && /* @__PURE__ */ jsx49("div", { className: "w-20 h-20 flex items-center justify-center", children: /* @__PURE__ */ jsx49(
|
|
11249
11165
|
"img",
|
|
11250
11166
|
{
|
|
@@ -11263,7 +11179,7 @@ var NotificationHeader = ({
|
|
|
11263
11179
|
unreadCount,
|
|
11264
11180
|
variant = "modal"
|
|
11265
11181
|
}) => {
|
|
11266
|
-
return /* @__PURE__ */
|
|
11182
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between gap-2", children: [
|
|
11267
11183
|
variant === "modal" ? /* @__PURE__ */ jsx49(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Notifica\xE7\xF5es" }) : /* @__PURE__ */ jsx49("h3", { className: "text-sm font-semibold text-text-950", children: "Notifica\xE7\xF5es" }),
|
|
11268
11184
|
unreadCount > 0 && /* @__PURE__ */ jsx49(
|
|
11269
11185
|
Badge_default,
|
|
@@ -11307,7 +11223,7 @@ var SingleNotificationCard = ({
|
|
|
11307
11223
|
onNavigate();
|
|
11308
11224
|
}
|
|
11309
11225
|
};
|
|
11310
|
-
return /* @__PURE__ */
|
|
11226
|
+
return /* @__PURE__ */ jsxs36(
|
|
11311
11227
|
"div",
|
|
11312
11228
|
{
|
|
11313
11229
|
className: cn(
|
|
@@ -11316,10 +11232,10 @@ var SingleNotificationCard = ({
|
|
|
11316
11232
|
className
|
|
11317
11233
|
),
|
|
11318
11234
|
children: [
|
|
11319
|
-
/* @__PURE__ */
|
|
11235
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center gap-2 w-full", children: [
|
|
11320
11236
|
!isRead && /* @__PURE__ */ jsx49("div", { className: "w-[7px] h-[7px] bg-info-300 rounded-full flex-shrink-0" }),
|
|
11321
11237
|
/* @__PURE__ */ jsx49("h3", { className: "font-bold text-sm leading-4 text-text-950 flex-grow", children: title }),
|
|
11322
|
-
/* @__PURE__ */
|
|
11238
|
+
/* @__PURE__ */ jsxs36(DropdownMenu_default, { children: [
|
|
11323
11239
|
/* @__PURE__ */ jsx49(
|
|
11324
11240
|
DropdownMenuTrigger,
|
|
11325
11241
|
{
|
|
@@ -11328,7 +11244,7 @@ var SingleNotificationCard = ({
|
|
|
11328
11244
|
children: /* @__PURE__ */ jsx49(DotsThreeVertical3, { size: 24 })
|
|
11329
11245
|
}
|
|
11330
11246
|
),
|
|
11331
|
-
/* @__PURE__ */
|
|
11247
|
+
/* @__PURE__ */ jsxs36(DropdownMenuContent, { align: "end", className: "min-w-[160px]", children: [
|
|
11332
11248
|
!isRead && /* @__PURE__ */ jsx49(
|
|
11333
11249
|
DropdownMenuItem,
|
|
11334
11250
|
{
|
|
@@ -11342,7 +11258,7 @@ var SingleNotificationCard = ({
|
|
|
11342
11258
|
] })
|
|
11343
11259
|
] }),
|
|
11344
11260
|
/* @__PURE__ */ jsx49("p", { className: "text-sm leading-[21px] text-text-800 w-full", children: message }),
|
|
11345
|
-
/* @__PURE__ */
|
|
11261
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex items-center justify-between w-full", children: [
|
|
11346
11262
|
/* @__PURE__ */ jsx49("span", { className: "text-sm font-medium text-text-400", children: time }),
|
|
11347
11263
|
onNavigate && actionLabel && /* @__PURE__ */ jsx49(
|
|
11348
11264
|
"button",
|
|
@@ -11384,7 +11300,7 @@ var NotificationList = ({
|
|
|
11384
11300
|
}
|
|
11385
11301
|
};
|
|
11386
11302
|
if (error) {
|
|
11387
|
-
return /* @__PURE__ */
|
|
11303
|
+
return /* @__PURE__ */ jsxs36("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: [
|
|
11388
11304
|
/* @__PURE__ */ jsx49("p", { className: "text-sm text-error-600", children: error }),
|
|
11389
11305
|
onRetry && /* @__PURE__ */ jsx49(
|
|
11390
11306
|
"button",
|
|
@@ -11411,8 +11327,8 @@ var NotificationList = ({
|
|
|
11411
11327
|
if (!groupedNotifications || groupedNotifications.length === 0) {
|
|
11412
11328
|
return renderEmpty ? /* @__PURE__ */ jsx49("div", { className: "w-full", children: renderEmpty() }) : /* @__PURE__ */ jsx49(NotificationEmpty, {});
|
|
11413
11329
|
}
|
|
11414
|
-
return /* @__PURE__ */
|
|
11415
|
-
groupedNotifications.map((group, idx) => /* @__PURE__ */
|
|
11330
|
+
return /* @__PURE__ */ jsxs36("div", { className: cn("flex flex-col gap-0 w-full", className), children: [
|
|
11331
|
+
groupedNotifications.map((group, idx) => /* @__PURE__ */ jsxs36("div", { className: "flex flex-col", children: [
|
|
11416
11332
|
/* @__PURE__ */ jsx49("div", { className: "flex items-end px-4 py-6 pb-4", children: /* @__PURE__ */ jsx49("h4", { className: "text-lg font-bold text-text-500 flex-grow", children: group.label }) }),
|
|
11417
11333
|
group.notifications.map((notification) => {
|
|
11418
11334
|
const isGlobalNotification = !notification.entityType && !notification.entityId && !notification.activity && !notification.goal;
|
|
@@ -11516,7 +11432,7 @@ var NotificationCenter = ({
|
|
|
11516
11432
|
}
|
|
11517
11433
|
);
|
|
11518
11434
|
if (isMobile) {
|
|
11519
|
-
return /* @__PURE__ */
|
|
11435
|
+
return /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
11520
11436
|
/* @__PURE__ */ jsx49(
|
|
11521
11437
|
IconButton_default,
|
|
11522
11438
|
{
|
|
@@ -11535,8 +11451,8 @@ var NotificationCenter = ({
|
|
|
11535
11451
|
size: "md",
|
|
11536
11452
|
hideCloseButton: false,
|
|
11537
11453
|
closeOnEscape: true,
|
|
11538
|
-
children: /* @__PURE__ */
|
|
11539
|
-
/* @__PURE__ */
|
|
11454
|
+
children: /* @__PURE__ */ jsxs36("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
|
|
11455
|
+
/* @__PURE__ */ jsxs36("div", { className: "px-0 pb-3 border-b border-border-200", children: [
|
|
11540
11456
|
/* @__PURE__ */ jsx49(NotificationHeader, { unreadCount, variant: "modal" }),
|
|
11541
11457
|
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx49(
|
|
11542
11458
|
"button",
|
|
@@ -11578,8 +11494,8 @@ var NotificationCenter = ({
|
|
|
11578
11494
|
)
|
|
11579
11495
|
] });
|
|
11580
11496
|
}
|
|
11581
|
-
return /* @__PURE__ */
|
|
11582
|
-
/* @__PURE__ */
|
|
11497
|
+
return /* @__PURE__ */ jsxs36(Fragment11, { children: [
|
|
11498
|
+
/* @__PURE__ */ jsxs36(
|
|
11583
11499
|
DropdownMenu_default,
|
|
11584
11500
|
{
|
|
11585
11501
|
...typeof isActive === "boolean" ? { open: isActive, onOpenChange: handleOpenChange } : { onOpenChange: handleOpenChange },
|
|
@@ -11605,8 +11521,8 @@ var NotificationCenter = ({
|
|
|
11605
11521
|
className: "min-w-[320px] max-w-[400px] max-h-[500px] overflow-hidden",
|
|
11606
11522
|
side: "bottom",
|
|
11607
11523
|
align: "end",
|
|
11608
|
-
children: /* @__PURE__ */
|
|
11609
|
-
/* @__PURE__ */
|
|
11524
|
+
children: /* @__PURE__ */ jsxs36("div", { className: "flex flex-col", children: [
|
|
11525
|
+
/* @__PURE__ */ jsxs36("div", { className: "px-4 py-3 border-b border-border-200", children: [
|
|
11610
11526
|
/* @__PURE__ */ jsx49(
|
|
11611
11527
|
NotificationHeader,
|
|
11612
11528
|
{
|
|
@@ -11937,6 +11853,7 @@ export {
|
|
|
11937
11853
|
Toaster_default as Toaster,
|
|
11938
11854
|
VideoPlayer_default as VideoPlayer,
|
|
11939
11855
|
Whiteboard_default as Whiteboard,
|
|
11856
|
+
cn,
|
|
11940
11857
|
createNotificationStore,
|
|
11941
11858
|
createNotificationsHook,
|
|
11942
11859
|
createUseNotificationStore,
|
|
@@ -11947,8 +11864,8 @@ export {
|
|
|
11947
11864
|
getRootDomain,
|
|
11948
11865
|
getStatusBadge,
|
|
11949
11866
|
getSubjectColorClass,
|
|
11950
|
-
getSubjectData,
|
|
11951
11867
|
getSubjectIcon,
|
|
11868
|
+
getSubjectInfo,
|
|
11952
11869
|
getSubjectName,
|
|
11953
11870
|
useApiConfig,
|
|
11954
11871
|
useAuth,
|