analytica-frontend-lib 1.1.29 → 1.1.31
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 +295 -160
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +286 -161
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +289 -154
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +280 -155
- package/dist/Card/index.mjs.map +1 -1
- package/dist/Quiz/index.js +522 -370
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +513 -372
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +6 -0
- package/dist/Quiz/useQuizStore/index.d.ts +6 -0
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/Select/index.js +3 -5
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/index.mjs +3 -5
- package/dist/Select/index.mjs.map +1 -1
- package/dist/index.js +369 -350
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +370 -352
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/Quiz/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// src/components/Quiz/Quiz.tsx
|
|
@@ -2039,12 +2049,10 @@ var SelectItem = (0, import_react6.forwardRef)(
|
|
|
2039
2049
|
const handleClick = (e) => {
|
|
2040
2050
|
const labelNode = getLabelAsNode(children);
|
|
2041
2051
|
if (!disabled) {
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
setValue(newValue);
|
|
2045
|
-
setSelectedLabel(newLabel);
|
|
2052
|
+
setValue(value);
|
|
2053
|
+
setSelectedLabel(labelNode);
|
|
2046
2054
|
setOpen(false);
|
|
2047
|
-
onValueChange?.(
|
|
2055
|
+
onValueChange?.(value);
|
|
2048
2056
|
}
|
|
2049
2057
|
props.onClick?.(e);
|
|
2050
2058
|
};
|
|
@@ -2559,7 +2567,132 @@ var ProgressBar_default = ProgressBar;
|
|
|
2559
2567
|
|
|
2560
2568
|
// src/components/Card/Card.tsx
|
|
2561
2569
|
var import_phosphor_react5 = require("phosphor-react");
|
|
2570
|
+
|
|
2571
|
+
// src/components/IconRender/IconRender.tsx
|
|
2572
|
+
var PhosphorIcons = __toESM(require("phosphor-react"));
|
|
2562
2573
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
2574
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
2575
|
+
"svg",
|
|
2576
|
+
{
|
|
2577
|
+
width: size,
|
|
2578
|
+
height: size,
|
|
2579
|
+
viewBox: "0 0 32 32",
|
|
2580
|
+
fill: "none",
|
|
2581
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2582
|
+
children: [
|
|
2583
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2584
|
+
"path",
|
|
2585
|
+
{
|
|
2586
|
+
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",
|
|
2587
|
+
fill: color
|
|
2588
|
+
}
|
|
2589
|
+
),
|
|
2590
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2591
|
+
"path",
|
|
2592
|
+
{
|
|
2593
|
+
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
2594
|
+
fill: color
|
|
2595
|
+
}
|
|
2596
|
+
),
|
|
2597
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2598
|
+
"path",
|
|
2599
|
+
{
|
|
2600
|
+
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",
|
|
2601
|
+
fill: color
|
|
2602
|
+
}
|
|
2603
|
+
)
|
|
2604
|
+
]
|
|
2605
|
+
}
|
|
2606
|
+
);
|
|
2607
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
2608
|
+
"svg",
|
|
2609
|
+
{
|
|
2610
|
+
width: size,
|
|
2611
|
+
height: size,
|
|
2612
|
+
viewBox: "0 0 32 32",
|
|
2613
|
+
fill: "none",
|
|
2614
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2615
|
+
children: [
|
|
2616
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2617
|
+
"path",
|
|
2618
|
+
{
|
|
2619
|
+
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",
|
|
2620
|
+
fill: color
|
|
2621
|
+
}
|
|
2622
|
+
),
|
|
2623
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2624
|
+
"path",
|
|
2625
|
+
{
|
|
2626
|
+
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
2627
|
+
fill: color
|
|
2628
|
+
}
|
|
2629
|
+
),
|
|
2630
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2631
|
+
"path",
|
|
2632
|
+
{
|
|
2633
|
+
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",
|
|
2634
|
+
fill: color
|
|
2635
|
+
}
|
|
2636
|
+
)
|
|
2637
|
+
]
|
|
2638
|
+
}
|
|
2639
|
+
);
|
|
2640
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
|
|
2641
|
+
"svg",
|
|
2642
|
+
{
|
|
2643
|
+
width: size,
|
|
2644
|
+
height: size,
|
|
2645
|
+
viewBox: "0 0 32 32",
|
|
2646
|
+
fill: "none",
|
|
2647
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2648
|
+
children: [
|
|
2649
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2650
|
+
"path",
|
|
2651
|
+
{
|
|
2652
|
+
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",
|
|
2653
|
+
fill: color
|
|
2654
|
+
}
|
|
2655
|
+
),
|
|
2656
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2657
|
+
"path",
|
|
2658
|
+
{
|
|
2659
|
+
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",
|
|
2660
|
+
fill: color
|
|
2661
|
+
}
|
|
2662
|
+
),
|
|
2663
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
2664
|
+
"path",
|
|
2665
|
+
{
|
|
2666
|
+
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",
|
|
2667
|
+
fill: color
|
|
2668
|
+
}
|
|
2669
|
+
)
|
|
2670
|
+
]
|
|
2671
|
+
}
|
|
2672
|
+
);
|
|
2673
|
+
var IconRender = ({
|
|
2674
|
+
iconName,
|
|
2675
|
+
color = "#000000",
|
|
2676
|
+
size = 24,
|
|
2677
|
+
weight = "regular"
|
|
2678
|
+
}) => {
|
|
2679
|
+
switch (iconName) {
|
|
2680
|
+
case "Chat_PT":
|
|
2681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChatPT, { size, color });
|
|
2682
|
+
case "Chat_EN":
|
|
2683
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChatEN, { size, color });
|
|
2684
|
+
case "Chat_ES":
|
|
2685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChatES, { size, color });
|
|
2686
|
+
default: {
|
|
2687
|
+
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
2688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(IconComponent, { size, color, weight });
|
|
2689
|
+
}
|
|
2690
|
+
}
|
|
2691
|
+
};
|
|
2692
|
+
var IconRender_default = IconRender;
|
|
2693
|
+
|
|
2694
|
+
// src/components/Card/Card.tsx
|
|
2695
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
2563
2696
|
var CARD_BASE_CLASSES = {
|
|
2564
2697
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
2565
2698
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -2609,12 +2742,12 @@ var CardBase = (0, import_react7.forwardRef)(
|
|
|
2609
2742
|
cursorClasses,
|
|
2610
2743
|
className
|
|
2611
2744
|
].filter(Boolean).join(" ");
|
|
2612
|
-
return /* @__PURE__ */ (0,
|
|
2745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { ref, className: combinedClasses, ...props, children });
|
|
2613
2746
|
}
|
|
2614
2747
|
);
|
|
2615
2748
|
var ACTION_CARD_CLASSES = {
|
|
2616
2749
|
warning: "bg-warning-background",
|
|
2617
|
-
success: "bg-success-
|
|
2750
|
+
success: "bg-success-200",
|
|
2618
2751
|
error: "bg-error-100",
|
|
2619
2752
|
info: "bg-info-background"
|
|
2620
2753
|
};
|
|
@@ -2652,7 +2785,7 @@ var CardActivitiesResults = (0, import_react7.forwardRef)(
|
|
|
2652
2785
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
2653
2786
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
2654
2787
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
2655
|
-
return /* @__PURE__ */ (0,
|
|
2788
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2656
2789
|
"div",
|
|
2657
2790
|
{
|
|
2658
2791
|
ref,
|
|
@@ -2662,7 +2795,7 @@ var CardActivitiesResults = (0, import_react7.forwardRef)(
|
|
|
2662
2795
|
),
|
|
2663
2796
|
...props,
|
|
2664
2797
|
children: [
|
|
2665
|
-
/* @__PURE__ */ (0,
|
|
2798
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2666
2799
|
"div",
|
|
2667
2800
|
{
|
|
2668
2801
|
className: cn(
|
|
@@ -2671,7 +2804,7 @@ var CardActivitiesResults = (0, import_react7.forwardRef)(
|
|
|
2671
2804
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
2672
2805
|
),
|
|
2673
2806
|
children: [
|
|
2674
|
-
/* @__PURE__ */ (0,
|
|
2807
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2675
2808
|
"span",
|
|
2676
2809
|
{
|
|
2677
2810
|
className: cn(
|
|
@@ -2681,7 +2814,7 @@ var CardActivitiesResults = (0, import_react7.forwardRef)(
|
|
|
2681
2814
|
children: icon
|
|
2682
2815
|
}
|
|
2683
2816
|
),
|
|
2684
|
-
/* @__PURE__ */ (0,
|
|
2817
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2685
2818
|
Text_default,
|
|
2686
2819
|
{
|
|
2687
2820
|
size: "2xs",
|
|
@@ -2690,7 +2823,7 @@ var CardActivitiesResults = (0, import_react7.forwardRef)(
|
|
|
2690
2823
|
children: title
|
|
2691
2824
|
}
|
|
2692
2825
|
),
|
|
2693
|
-
/* @__PURE__ */ (0,
|
|
2826
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2694
2827
|
"p",
|
|
2695
2828
|
{
|
|
2696
2829
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -2700,8 +2833,8 @@ var CardActivitiesResults = (0, import_react7.forwardRef)(
|
|
|
2700
2833
|
]
|
|
2701
2834
|
}
|
|
2702
2835
|
),
|
|
2703
|
-
extended && /* @__PURE__ */ (0,
|
|
2704
|
-
/* @__PURE__ */ (0,
|
|
2836
|
+
extended && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
2837
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2705
2838
|
"p",
|
|
2706
2839
|
{
|
|
2707
2840
|
className: cn(
|
|
@@ -2711,7 +2844,7 @@ var CardActivitiesResults = (0, import_react7.forwardRef)(
|
|
|
2711
2844
|
children: header
|
|
2712
2845
|
}
|
|
2713
2846
|
),
|
|
2714
|
-
/* @__PURE__ */ (0,
|
|
2847
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Badge_default, { size: "large", action: "info", children: description })
|
|
2715
2848
|
] })
|
|
2716
2849
|
]
|
|
2717
2850
|
}
|
|
@@ -2730,7 +2863,7 @@ var CardQuestions = (0, import_react7.forwardRef)(
|
|
|
2730
2863
|
const isDone = state === "done";
|
|
2731
2864
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
2732
2865
|
const buttonLabel = isDone ? "Ver Quest\xE3o" : "Responder";
|
|
2733
|
-
return /* @__PURE__ */ (0,
|
|
2866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2734
2867
|
CardBase,
|
|
2735
2868
|
{
|
|
2736
2869
|
ref,
|
|
@@ -2740,10 +2873,10 @@ var CardQuestions = (0, import_react7.forwardRef)(
|
|
|
2740
2873
|
className: cn("justify-between gap-4", className),
|
|
2741
2874
|
...props,
|
|
2742
2875
|
children: [
|
|
2743
|
-
/* @__PURE__ */ (0,
|
|
2744
|
-
/* @__PURE__ */ (0,
|
|
2745
|
-
/* @__PURE__ */ (0,
|
|
2746
|
-
/* @__PURE__ */ (0,
|
|
2876
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
2877
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
2878
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
2879
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2747
2880
|
Badge_default,
|
|
2748
2881
|
{
|
|
2749
2882
|
size: "medium",
|
|
@@ -2752,13 +2885,13 @@ var CardQuestions = (0, import_react7.forwardRef)(
|
|
|
2752
2885
|
children: stateLabel
|
|
2753
2886
|
}
|
|
2754
2887
|
),
|
|
2755
|
-
/* @__PURE__ */ (0,
|
|
2888
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row items-center gap-1 text-text-700 text-xs", children: [
|
|
2756
2889
|
isDone ? "Nota" : "Sem nota",
|
|
2757
|
-
isDone && /* @__PURE__ */ (0,
|
|
2890
|
+
isDone && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Badge_default, { size: "medium", action: "success", children: "00" })
|
|
2758
2891
|
] })
|
|
2759
2892
|
] })
|
|
2760
2893
|
] }),
|
|
2761
|
-
/* @__PURE__ */ (0,
|
|
2894
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2762
2895
|
Button_default,
|
|
2763
2896
|
{
|
|
2764
2897
|
size: "extra-small",
|
|
@@ -2789,19 +2922,19 @@ var CardProgress = (0, import_react7.forwardRef)(
|
|
|
2789
2922
|
}, ref) => {
|
|
2790
2923
|
const isHorizontal = direction === "horizontal";
|
|
2791
2924
|
const contentComponent = {
|
|
2792
|
-
horizontal: /* @__PURE__ */ (0,
|
|
2793
|
-
showDates && /* @__PURE__ */ (0,
|
|
2794
|
-
initialDate && /* @__PURE__ */ (0,
|
|
2795
|
-
/* @__PURE__ */ (0,
|
|
2796
|
-
/* @__PURE__ */ (0,
|
|
2925
|
+
horizontal: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
2926
|
+
showDates && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
2927
|
+
initialDate && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
2928
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
2929
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-text-600", children: initialDate })
|
|
2797
2930
|
] }),
|
|
2798
|
-
endDate && /* @__PURE__ */ (0,
|
|
2799
|
-
/* @__PURE__ */ (0,
|
|
2800
|
-
/* @__PURE__ */ (0,
|
|
2931
|
+
endDate && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
2932
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
2933
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-text-600", children: endDate })
|
|
2801
2934
|
] })
|
|
2802
2935
|
] }),
|
|
2803
|
-
/* @__PURE__ */ (0,
|
|
2804
|
-
/* @__PURE__ */ (0,
|
|
2936
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
2937
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2805
2938
|
ProgressBar_default,
|
|
2806
2939
|
{
|
|
2807
2940
|
size: "small",
|
|
@@ -2810,7 +2943,7 @@ var CardProgress = (0, import_react7.forwardRef)(
|
|
|
2810
2943
|
"data-testid": "progress-bar"
|
|
2811
2944
|
}
|
|
2812
2945
|
),
|
|
2813
|
-
/* @__PURE__ */ (0,
|
|
2946
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2814
2947
|
Text_default,
|
|
2815
2948
|
{
|
|
2816
2949
|
size: "xs",
|
|
@@ -2826,9 +2959,9 @@ var CardProgress = (0, import_react7.forwardRef)(
|
|
|
2826
2959
|
)
|
|
2827
2960
|
] })
|
|
2828
2961
|
] }),
|
|
2829
|
-
vertical: /* @__PURE__ */ (0,
|
|
2962
|
+
vertical: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm text-text-800", children: subhead })
|
|
2830
2963
|
};
|
|
2831
|
-
return /* @__PURE__ */ (0,
|
|
2964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2832
2965
|
CardBase,
|
|
2833
2966
|
{
|
|
2834
2967
|
ref,
|
|
@@ -2839,7 +2972,7 @@ var CardProgress = (0, import_react7.forwardRef)(
|
|
|
2839
2972
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
2840
2973
|
...props,
|
|
2841
2974
|
children: [
|
|
2842
|
-
/* @__PURE__ */ (0,
|
|
2975
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2843
2976
|
"div",
|
|
2844
2977
|
{
|
|
2845
2978
|
className: cn(
|
|
@@ -2852,7 +2985,7 @@ var CardProgress = (0, import_react7.forwardRef)(
|
|
|
2852
2985
|
children: icon
|
|
2853
2986
|
}
|
|
2854
2987
|
),
|
|
2855
|
-
/* @__PURE__ */ (0,
|
|
2988
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2856
2989
|
"div",
|
|
2857
2990
|
{
|
|
2858
2991
|
className: cn(
|
|
@@ -2860,7 +2993,7 @@ var CardProgress = (0, import_react7.forwardRef)(
|
|
|
2860
2993
|
!isHorizontal && "gap-4"
|
|
2861
2994
|
),
|
|
2862
2995
|
children: [
|
|
2863
|
-
/* @__PURE__ */ (0,
|
|
2996
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
2864
2997
|
contentComponent[direction]
|
|
2865
2998
|
]
|
|
2866
2999
|
}
|
|
@@ -2880,7 +3013,7 @@ var CardTopic = (0, import_react7.forwardRef)(
|
|
|
2880
3013
|
className = "",
|
|
2881
3014
|
...props
|
|
2882
3015
|
}, ref) => {
|
|
2883
|
-
return /* @__PURE__ */ (0,
|
|
3016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2884
3017
|
CardBase,
|
|
2885
3018
|
{
|
|
2886
3019
|
ref,
|
|
@@ -2891,13 +3024,13 @@ var CardTopic = (0, import_react7.forwardRef)(
|
|
|
2891
3024
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
2892
3025
|
...props,
|
|
2893
3026
|
children: [
|
|
2894
|
-
subHead && /* @__PURE__ */ (0,
|
|
2895
|
-
/* @__PURE__ */ (0,
|
|
2896
|
-
index < subHead.length - 1 && /* @__PURE__ */ (0,
|
|
3027
|
+
subHead && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react7.Fragment, { children: [
|
|
3028
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: text }),
|
|
3029
|
+
index < subHead.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "\u2022" })
|
|
2897
3030
|
] }, `${text} - ${index}`)) }),
|
|
2898
|
-
/* @__PURE__ */ (0,
|
|
2899
|
-
/* @__PURE__ */ (0,
|
|
2900
|
-
/* @__PURE__ */ (0,
|
|
3031
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
3032
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
3033
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2901
3034
|
ProgressBar_default,
|
|
2902
3035
|
{
|
|
2903
3036
|
size: "small",
|
|
@@ -2906,7 +3039,7 @@ var CardTopic = (0, import_react7.forwardRef)(
|
|
|
2906
3039
|
"data-testid": "progress-bar"
|
|
2907
3040
|
}
|
|
2908
3041
|
),
|
|
2909
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
3042
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2910
3043
|
Text_default,
|
|
2911
3044
|
{
|
|
2912
3045
|
size: "xs",
|
|
@@ -2940,7 +3073,7 @@ var CardPerformance = (0, import_react7.forwardRef)(
|
|
|
2940
3073
|
...props
|
|
2941
3074
|
}, ref) => {
|
|
2942
3075
|
const hasProgress = progress !== void 0;
|
|
2943
|
-
return /* @__PURE__ */ (0,
|
|
3076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
2944
3077
|
CardBase,
|
|
2945
3078
|
{
|
|
2946
3079
|
ref,
|
|
@@ -2954,10 +3087,10 @@ var CardPerformance = (0, import_react7.forwardRef)(
|
|
|
2954
3087
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
2955
3088
|
...props,
|
|
2956
3089
|
children: [
|
|
2957
|
-
/* @__PURE__ */ (0,
|
|
2958
|
-
/* @__PURE__ */ (0,
|
|
2959
|
-
/* @__PURE__ */ (0,
|
|
2960
|
-
actionVariant === "button" && /* @__PURE__ */ (0,
|
|
3090
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
3091
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
3092
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
3093
|
+
actionVariant === "button" && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2961
3094
|
Button_default,
|
|
2962
3095
|
{
|
|
2963
3096
|
variant: "outline",
|
|
@@ -2968,16 +3101,16 @@ var CardPerformance = (0, import_react7.forwardRef)(
|
|
|
2968
3101
|
}
|
|
2969
3102
|
)
|
|
2970
3103
|
] }),
|
|
2971
|
-
/* @__PURE__ */ (0,
|
|
3104
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2972
3105
|
ProgressBar_default,
|
|
2973
3106
|
{
|
|
2974
3107
|
value: progress,
|
|
2975
3108
|
label: `${progress}% ${labelProgress}`,
|
|
2976
3109
|
variant: progressVariant
|
|
2977
3110
|
}
|
|
2978
|
-
) : /* @__PURE__ */ (0,
|
|
3111
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
2979
3112
|
] }),
|
|
2980
|
-
actionVariant == "caret" && /* @__PURE__ */ (0,
|
|
3113
|
+
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
2981
3114
|
import_phosphor_react5.CaretRight,
|
|
2982
3115
|
{
|
|
2983
3116
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
@@ -3001,7 +3134,7 @@ var CardResults = (0, import_react7.forwardRef)(
|
|
|
3001
3134
|
...props
|
|
3002
3135
|
}, ref) => {
|
|
3003
3136
|
const isRow = direction == "row";
|
|
3004
|
-
return /* @__PURE__ */ (0,
|
|
3137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3005
3138
|
CardBase,
|
|
3006
3139
|
{
|
|
3007
3140
|
ref,
|
|
@@ -3011,7 +3144,7 @@ var CardResults = (0, import_react7.forwardRef)(
|
|
|
3011
3144
|
className: cn("items-center cursor-pointer pr-4", className),
|
|
3012
3145
|
...props,
|
|
3013
3146
|
children: [
|
|
3014
|
-
/* @__PURE__ */ (0,
|
|
3147
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3015
3148
|
"div",
|
|
3016
3149
|
{
|
|
3017
3150
|
className: cn(
|
|
@@ -3020,10 +3153,10 @@ var CardResults = (0, import_react7.forwardRef)(
|
|
|
3020
3153
|
style: {
|
|
3021
3154
|
backgroundColor: color
|
|
3022
3155
|
},
|
|
3023
|
-
children: icon
|
|
3156
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
3024
3157
|
}
|
|
3025
3158
|
),
|
|
3026
|
-
/* @__PURE__ */ (0,
|
|
3159
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3027
3160
|
"div",
|
|
3028
3161
|
{
|
|
3029
3162
|
className: cn(
|
|
@@ -3031,28 +3164,28 @@ var CardResults = (0, import_react7.forwardRef)(
|
|
|
3031
3164
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
3032
3165
|
),
|
|
3033
3166
|
children: [
|
|
3034
|
-
/* @__PURE__ */ (0,
|
|
3035
|
-
/* @__PURE__ */ (0,
|
|
3036
|
-
/* @__PURE__ */ (0,
|
|
3167
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
3168
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row gap-1 items-center", children: [
|
|
3169
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3037
3170
|
Badge_default,
|
|
3038
3171
|
{
|
|
3039
3172
|
action: "success",
|
|
3040
3173
|
variant: "solid",
|
|
3041
3174
|
size: "large",
|
|
3042
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
3175
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CheckCircle, {}),
|
|
3043
3176
|
children: [
|
|
3044
3177
|
correct_answers,
|
|
3045
3178
|
" Corretas"
|
|
3046
3179
|
]
|
|
3047
3180
|
}
|
|
3048
3181
|
),
|
|
3049
|
-
/* @__PURE__ */ (0,
|
|
3182
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3050
3183
|
Badge_default,
|
|
3051
3184
|
{
|
|
3052
3185
|
action: "error",
|
|
3053
3186
|
variant: "solid",
|
|
3054
3187
|
size: "large",
|
|
3055
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
3188
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.XCircle, {}),
|
|
3056
3189
|
children: [
|
|
3057
3190
|
incorrect_answers,
|
|
3058
3191
|
" Incorretas"
|
|
@@ -3063,7 +3196,7 @@ var CardResults = (0, import_react7.forwardRef)(
|
|
|
3063
3196
|
]
|
|
3064
3197
|
}
|
|
3065
3198
|
),
|
|
3066
|
-
/* @__PURE__ */ (0,
|
|
3199
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
3067
3200
|
]
|
|
3068
3201
|
}
|
|
3069
3202
|
);
|
|
@@ -3083,7 +3216,7 @@ var CardStatus = (0, import_react7.forwardRef)(
|
|
|
3083
3216
|
return "Em branco";
|
|
3084
3217
|
}
|
|
3085
3218
|
};
|
|
3086
|
-
return /* @__PURE__ */ (0,
|
|
3219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3087
3220
|
CardBase,
|
|
3088
3221
|
{
|
|
3089
3222
|
ref,
|
|
@@ -3092,22 +3225,22 @@ var CardStatus = (0, import_react7.forwardRef)(
|
|
|
3092
3225
|
minHeight: "medium",
|
|
3093
3226
|
className: cn("items-center cursor-pointer", className),
|
|
3094
3227
|
...props,
|
|
3095
|
-
children: /* @__PURE__ */ (0,
|
|
3096
|
-
/* @__PURE__ */ (0,
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3098
|
-
status && /* @__PURE__ */ (0,
|
|
3228
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
3229
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
3230
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
3231
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3099
3232
|
Badge_default,
|
|
3100
3233
|
{
|
|
3101
3234
|
action: status == "correct" ? "success" : "error",
|
|
3102
3235
|
variant: "solid",
|
|
3103
3236
|
size: "medium",
|
|
3104
|
-
iconLeft: status == "correct" ? /* @__PURE__ */ (0,
|
|
3237
|
+
iconLeft: status == "correct" ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.XCircle, {}),
|
|
3105
3238
|
children: getLabelBadge(status)
|
|
3106
3239
|
}
|
|
3107
3240
|
),
|
|
3108
|
-
label && /* @__PURE__ */ (0,
|
|
3241
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm text-text-800", children: label })
|
|
3109
3242
|
] }),
|
|
3110
|
-
/* @__PURE__ */ (0,
|
|
3243
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
3111
3244
|
] })
|
|
3112
3245
|
}
|
|
3113
3246
|
);
|
|
@@ -3115,7 +3248,7 @@ var CardStatus = (0, import_react7.forwardRef)(
|
|
|
3115
3248
|
);
|
|
3116
3249
|
var CardSettings = (0, import_react7.forwardRef)(
|
|
3117
3250
|
({ header, className, icon, ...props }, ref) => {
|
|
3118
|
-
return /* @__PURE__ */ (0,
|
|
3251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3119
3252
|
CardBase,
|
|
3120
3253
|
{
|
|
3121
3254
|
ref,
|
|
@@ -3128,9 +3261,9 @@ var CardSettings = (0, import_react7.forwardRef)(
|
|
|
3128
3261
|
),
|
|
3129
3262
|
...props,
|
|
3130
3263
|
children: [
|
|
3131
|
-
/* @__PURE__ */ (0,
|
|
3132
|
-
/* @__PURE__ */ (0,
|
|
3133
|
-
/* @__PURE__ */ (0,
|
|
3264
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "[&>svg]:size-6", children: icon }),
|
|
3265
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
3266
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
3134
3267
|
]
|
|
3135
3268
|
}
|
|
3136
3269
|
);
|
|
@@ -3138,7 +3271,7 @@ var CardSettings = (0, import_react7.forwardRef)(
|
|
|
3138
3271
|
);
|
|
3139
3272
|
var CardSupport = (0, import_react7.forwardRef)(
|
|
3140
3273
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
3141
|
-
return /* @__PURE__ */ (0,
|
|
3274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3142
3275
|
CardBase,
|
|
3143
3276
|
{
|
|
3144
3277
|
ref,
|
|
@@ -3151,7 +3284,7 @@ var CardSupport = (0, import_react7.forwardRef)(
|
|
|
3151
3284
|
),
|
|
3152
3285
|
...props,
|
|
3153
3286
|
children: [
|
|
3154
|
-
/* @__PURE__ */ (0,
|
|
3287
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3155
3288
|
"div",
|
|
3156
3289
|
{
|
|
3157
3290
|
className: cn(
|
|
@@ -3159,12 +3292,12 @@ var CardSupport = (0, import_react7.forwardRef)(
|
|
|
3159
3292
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
3160
3293
|
),
|
|
3161
3294
|
children: [
|
|
3162
|
-
/* @__PURE__ */ (0,
|
|
3163
|
-
/* @__PURE__ */ (0,
|
|
3295
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "w-full min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
3296
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
3164
3297
|
]
|
|
3165
3298
|
}
|
|
3166
3299
|
),
|
|
3167
|
-
/* @__PURE__ */ (0,
|
|
3300
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.CaretRight, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
3168
3301
|
]
|
|
3169
3302
|
}
|
|
3170
3303
|
);
|
|
@@ -3184,7 +3317,7 @@ var CardForum = (0, import_react7.forwardRef)(
|
|
|
3184
3317
|
hour,
|
|
3185
3318
|
...props
|
|
3186
3319
|
}, ref) => {
|
|
3187
|
-
return /* @__PURE__ */ (0,
|
|
3320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3188
3321
|
CardBase,
|
|
3189
3322
|
{
|
|
3190
3323
|
ref,
|
|
@@ -3195,7 +3328,7 @@ var CardForum = (0, import_react7.forwardRef)(
|
|
|
3195
3328
|
className: cn("w-auto h-auto gap-3", className),
|
|
3196
3329
|
...props,
|
|
3197
3330
|
children: [
|
|
3198
|
-
/* @__PURE__ */ (0,
|
|
3331
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3199
3332
|
"button",
|
|
3200
3333
|
{
|
|
3201
3334
|
type: "button",
|
|
@@ -3204,18 +3337,18 @@ var CardForum = (0, import_react7.forwardRef)(
|
|
|
3204
3337
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
3205
3338
|
}
|
|
3206
3339
|
),
|
|
3207
|
-
/* @__PURE__ */ (0,
|
|
3208
|
-
/* @__PURE__ */ (0,
|
|
3209
|
-
/* @__PURE__ */ (0,
|
|
3210
|
-
/* @__PURE__ */ (0,
|
|
3340
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
3341
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
3342
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
3343
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
3211
3344
|
"\u2022 ",
|
|
3212
3345
|
date,
|
|
3213
3346
|
" \u2022 ",
|
|
3214
3347
|
hour
|
|
3215
3348
|
] })
|
|
3216
3349
|
] }),
|
|
3217
|
-
/* @__PURE__ */ (0,
|
|
3218
|
-
/* @__PURE__ */ (0,
|
|
3350
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
3351
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3219
3352
|
"button",
|
|
3220
3353
|
{
|
|
3221
3354
|
type: "button",
|
|
@@ -3223,8 +3356,8 @@ var CardForum = (0, import_react7.forwardRef)(
|
|
|
3223
3356
|
onClick: () => onClickComments?.(valueComments),
|
|
3224
3357
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
3225
3358
|
children: [
|
|
3226
|
-
/* @__PURE__ */ (0,
|
|
3227
|
-
/* @__PURE__ */ (0,
|
|
3359
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
3360
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("p", { className: "text-xs", children: [
|
|
3228
3361
|
comments,
|
|
3229
3362
|
" respostas"
|
|
3230
3363
|
] })
|
|
@@ -3323,14 +3456,14 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3323
3456
|
};
|
|
3324
3457
|
const getVolumeIcon = () => {
|
|
3325
3458
|
if (volume === 0) {
|
|
3326
|
-
return /* @__PURE__ */ (0,
|
|
3459
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.SpeakerSimpleX, {});
|
|
3327
3460
|
}
|
|
3328
3461
|
if (volume < 0.5) {
|
|
3329
|
-
return /* @__PURE__ */ (0,
|
|
3462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.SpeakerLow, {});
|
|
3330
3463
|
}
|
|
3331
|
-
return /* @__PURE__ */ (0,
|
|
3464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.SpeakerHigh, {});
|
|
3332
3465
|
};
|
|
3333
|
-
return /* @__PURE__ */ (0,
|
|
3466
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3334
3467
|
CardBase,
|
|
3335
3468
|
{
|
|
3336
3469
|
ref,
|
|
@@ -3340,7 +3473,7 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3340
3473
|
className: cn("w-auto h-14 items-center gap-2", className),
|
|
3341
3474
|
...props,
|
|
3342
3475
|
children: [
|
|
3343
|
-
/* @__PURE__ */ (0,
|
|
3476
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3344
3477
|
"audio",
|
|
3345
3478
|
{
|
|
3346
3479
|
ref: audioRef,
|
|
@@ -3352,7 +3485,7 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3352
3485
|
onEnded: handleEnded,
|
|
3353
3486
|
"data-testid": "audio-element",
|
|
3354
3487
|
"aria-label": title,
|
|
3355
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0,
|
|
3488
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3356
3489
|
"track",
|
|
3357
3490
|
{
|
|
3358
3491
|
kind: track.kind,
|
|
@@ -3362,7 +3495,7 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3362
3495
|
default: track.default
|
|
3363
3496
|
},
|
|
3364
3497
|
track.src
|
|
3365
|
-
)) : /* @__PURE__ */ (0,
|
|
3498
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3366
3499
|
"track",
|
|
3367
3500
|
{
|
|
3368
3501
|
kind: "captions",
|
|
@@ -3373,7 +3506,7 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3373
3506
|
)
|
|
3374
3507
|
}
|
|
3375
3508
|
),
|
|
3376
|
-
/* @__PURE__ */ (0,
|
|
3509
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3377
3510
|
"button",
|
|
3378
3511
|
{
|
|
3379
3512
|
type: "button",
|
|
@@ -3381,14 +3514,14 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3381
3514
|
disabled: !src,
|
|
3382
3515
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
3383
3516
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
3384
|
-
children: isPlaying ? /* @__PURE__ */ (0,
|
|
3385
|
-
/* @__PURE__ */ (0,
|
|
3386
|
-
/* @__PURE__ */ (0,
|
|
3387
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
3517
|
+
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex gap-0.5", children: [
|
|
3518
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
3519
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
3520
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.Play, { size: 24 })
|
|
3388
3521
|
}
|
|
3389
3522
|
),
|
|
3390
|
-
/* @__PURE__ */ (0,
|
|
3391
|
-
/* @__PURE__ */ (0,
|
|
3523
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime(currentTime) }),
|
|
3524
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3392
3525
|
"button",
|
|
3393
3526
|
{
|
|
3394
3527
|
type: "button",
|
|
@@ -3403,7 +3536,7 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3403
3536
|
}
|
|
3404
3537
|
},
|
|
3405
3538
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
3406
|
-
children: /* @__PURE__ */ (0,
|
|
3539
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3407
3540
|
"div",
|
|
3408
3541
|
{
|
|
3409
3542
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -3414,19 +3547,19 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3414
3547
|
)
|
|
3415
3548
|
}
|
|
3416
3549
|
) }),
|
|
3417
|
-
/* @__PURE__ */ (0,
|
|
3418
|
-
/* @__PURE__ */ (0,
|
|
3419
|
-
/* @__PURE__ */ (0,
|
|
3550
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-text-800 text-sm font-medium min-w-[2.5rem]", children: formatTime(duration) }),
|
|
3551
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "relative", children: [
|
|
3552
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3420
3553
|
"button",
|
|
3421
3554
|
{
|
|
3422
3555
|
type: "button",
|
|
3423
3556
|
onClick: toggleVolumeControl,
|
|
3424
3557
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
3425
3558
|
"aria-label": "Controle de volume",
|
|
3426
|
-
children: /* @__PURE__ */ (0,
|
|
3559
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
3427
3560
|
}
|
|
3428
3561
|
),
|
|
3429
|
-
showVolumeControl && /* @__PURE__ */ (0,
|
|
3562
|
+
showVolumeControl && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3430
3563
|
"button",
|
|
3431
3564
|
{
|
|
3432
3565
|
type: "button",
|
|
@@ -3436,7 +3569,7 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3436
3569
|
setShowVolumeControl(false);
|
|
3437
3570
|
}
|
|
3438
3571
|
},
|
|
3439
|
-
children: /* @__PURE__ */ (0,
|
|
3572
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3440
3573
|
"input",
|
|
3441
3574
|
{
|
|
3442
3575
|
type: "range",
|
|
@@ -3477,22 +3610,22 @@ var CardAudio = (0, import_react7.forwardRef)(
|
|
|
3477
3610
|
}
|
|
3478
3611
|
)
|
|
3479
3612
|
] }),
|
|
3480
|
-
/* @__PURE__ */ (0,
|
|
3481
|
-
/* @__PURE__ */ (0,
|
|
3613
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "relative", children: [
|
|
3614
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3482
3615
|
"button",
|
|
3483
3616
|
{
|
|
3484
3617
|
type: "button",
|
|
3485
3618
|
onClick: toggleSpeedMenu,
|
|
3486
3619
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
3487
3620
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
3488
|
-
children: /* @__PURE__ */ (0,
|
|
3621
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.DotsThreeVertical, { size: 24 })
|
|
3489
3622
|
}
|
|
3490
3623
|
),
|
|
3491
|
-
showSpeedMenu && /* @__PURE__ */ (0,
|
|
3624
|
+
showSpeedMenu && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("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__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col gap-1", children: [
|
|
3492
3625
|
{ speed: 1, label: "1x" },
|
|
3493
3626
|
{ speed: 1.5, label: "1.5x" },
|
|
3494
3627
|
{ speed: 2, label: "2x" }
|
|
3495
|
-
].map(({ speed, label }) => /* @__PURE__ */ (0,
|
|
3628
|
+
].map(({ speed, label }) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3496
3629
|
"button",
|
|
3497
3630
|
{
|
|
3498
3631
|
type: "button",
|
|
@@ -3520,7 +3653,7 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
3520
3653
|
var CardSimulado = (0, import_react7.forwardRef)(
|
|
3521
3654
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
3522
3655
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
3523
|
-
return /* @__PURE__ */ (0,
|
|
3656
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3524
3657
|
CardBase,
|
|
3525
3658
|
{
|
|
3526
3659
|
ref,
|
|
@@ -3533,18 +3666,18 @@ var CardSimulado = (0, import_react7.forwardRef)(
|
|
|
3533
3666
|
className
|
|
3534
3667
|
),
|
|
3535
3668
|
...props,
|
|
3536
|
-
children: /* @__PURE__ */ (0,
|
|
3537
|
-
/* @__PURE__ */ (0,
|
|
3538
|
-
/* @__PURE__ */ (0,
|
|
3539
|
-
/* @__PURE__ */ (0,
|
|
3540
|
-
duration && /* @__PURE__ */ (0,
|
|
3541
|
-
/* @__PURE__ */ (0,
|
|
3542
|
-
/* @__PURE__ */ (0,
|
|
3669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
3670
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
3671
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
3672
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
3673
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
3674
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.Clock, { size: 16, className: "flex-shrink-0" }),
|
|
3675
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "sm", children: duration })
|
|
3543
3676
|
] }),
|
|
3544
|
-
/* @__PURE__ */ (0,
|
|
3677
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "sm", className: "truncate", children: info })
|
|
3545
3678
|
] })
|
|
3546
3679
|
] }),
|
|
3547
|
-
/* @__PURE__ */ (0,
|
|
3680
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3548
3681
|
import_phosphor_react5.CaretRight,
|
|
3549
3682
|
{
|
|
3550
3683
|
size: 24,
|
|
@@ -3589,7 +3722,7 @@ var CardTest = (0, import_react7.forwardRef)(
|
|
|
3589
3722
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
3590
3723
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
3591
3724
|
if (isSelectable) {
|
|
3592
|
-
return /* @__PURE__ */ (0,
|
|
3725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3593
3726
|
"button",
|
|
3594
3727
|
{
|
|
3595
3728
|
ref,
|
|
@@ -3601,8 +3734,8 @@ var CardTest = (0, import_react7.forwardRef)(
|
|
|
3601
3734
|
onKeyDown: handleKeyDown,
|
|
3602
3735
|
"aria-pressed": selected,
|
|
3603
3736
|
...props,
|
|
3604
|
-
children: /* @__PURE__ */ (0,
|
|
3605
|
-
/* @__PURE__ */ (0,
|
|
3737
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
3738
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3606
3739
|
Text_default,
|
|
3607
3740
|
{
|
|
3608
3741
|
size: "md",
|
|
@@ -3611,10 +3744,10 @@ var CardTest = (0, import_react7.forwardRef)(
|
|
|
3611
3744
|
children: title
|
|
3612
3745
|
}
|
|
3613
3746
|
),
|
|
3614
|
-
/* @__PURE__ */ (0,
|
|
3615
|
-
duration && /* @__PURE__ */ (0,
|
|
3616
|
-
/* @__PURE__ */ (0,
|
|
3617
|
-
/* @__PURE__ */ (0,
|
|
3747
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
3748
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
3749
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.Clock, { size: 16, className: "text-text-700" }),
|
|
3750
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3618
3751
|
Text_default,
|
|
3619
3752
|
{
|
|
3620
3753
|
size: "sm",
|
|
@@ -3623,7 +3756,7 @@ var CardTest = (0, import_react7.forwardRef)(
|
|
|
3623
3756
|
}
|
|
3624
3757
|
)
|
|
3625
3758
|
] }),
|
|
3626
|
-
/* @__PURE__ */ (0,
|
|
3759
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3627
3760
|
Text_default,
|
|
3628
3761
|
{
|
|
3629
3762
|
size: "sm",
|
|
@@ -3636,14 +3769,14 @@ var CardTest = (0, import_react7.forwardRef)(
|
|
|
3636
3769
|
}
|
|
3637
3770
|
);
|
|
3638
3771
|
}
|
|
3639
|
-
return /* @__PURE__ */ (0,
|
|
3772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3640
3773
|
"div",
|
|
3641
3774
|
{
|
|
3642
3775
|
ref,
|
|
3643
3776
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
3644
3777
|
...props,
|
|
3645
|
-
children: /* @__PURE__ */ (0,
|
|
3646
|
-
/* @__PURE__ */ (0,
|
|
3778
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
3779
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3647
3780
|
Text_default,
|
|
3648
3781
|
{
|
|
3649
3782
|
size: "md",
|
|
@@ -3652,10 +3785,10 @@ var CardTest = (0, import_react7.forwardRef)(
|
|
|
3652
3785
|
children: title
|
|
3653
3786
|
}
|
|
3654
3787
|
),
|
|
3655
|
-
/* @__PURE__ */ (0,
|
|
3656
|
-
duration && /* @__PURE__ */ (0,
|
|
3657
|
-
/* @__PURE__ */ (0,
|
|
3658
|
-
/* @__PURE__ */ (0,
|
|
3788
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
3789
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
3790
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_phosphor_react5.Clock, { size: 16, className: "text-text-700" }),
|
|
3791
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3659
3792
|
Text_default,
|
|
3660
3793
|
{
|
|
3661
3794
|
size: "sm",
|
|
@@ -3664,7 +3797,7 @@ var CardTest = (0, import_react7.forwardRef)(
|
|
|
3664
3797
|
}
|
|
3665
3798
|
)
|
|
3666
3799
|
] }),
|
|
3667
|
-
/* @__PURE__ */ (0,
|
|
3800
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3668
3801
|
Text_default,
|
|
3669
3802
|
{
|
|
3670
3803
|
size: "sm",
|
|
@@ -3701,14 +3834,14 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
3701
3834
|
}
|
|
3702
3835
|
};
|
|
3703
3836
|
var CardSimulationHistory = (0, import_react7.forwardRef)(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
3704
|
-
return /* @__PURE__ */ (0,
|
|
3837
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3705
3838
|
"div",
|
|
3706
3839
|
{
|
|
3707
3840
|
ref,
|
|
3708
3841
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
3709
3842
|
...props,
|
|
3710
|
-
children: /* @__PURE__ */ (0,
|
|
3711
|
-
data.map((section, sectionIndex) => /* @__PURE__ */ (0,
|
|
3843
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
3844
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
3712
3845
|
"div",
|
|
3713
3846
|
{
|
|
3714
3847
|
className: cn(
|
|
@@ -3716,7 +3849,7 @@ var CardSimulationHistory = (0, import_react7.forwardRef)(({ data, onSimulationC
|
|
|
3716
3849
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
3717
3850
|
),
|
|
3718
3851
|
children: [
|
|
3719
|
-
/* @__PURE__ */ (0,
|
|
3852
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3720
3853
|
Text_default,
|
|
3721
3854
|
{
|
|
3722
3855
|
size: "xs",
|
|
@@ -3725,9 +3858,9 @@ var CardSimulationHistory = (0, import_react7.forwardRef)(({ data, onSimulationC
|
|
|
3725
3858
|
children: section.date
|
|
3726
3859
|
}
|
|
3727
3860
|
),
|
|
3728
|
-
/* @__PURE__ */ (0,
|
|
3861
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
3729
3862
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
3730
|
-
return /* @__PURE__ */ (0,
|
|
3863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3731
3864
|
CardBase,
|
|
3732
3865
|
{
|
|
3733
3866
|
layout: "horizontal",
|
|
@@ -3739,9 +3872,9 @@ var CardSimulationHistory = (0, import_react7.forwardRef)(({ data, onSimulationC
|
|
|
3739
3872
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
3740
3873
|
),
|
|
3741
3874
|
onClick: () => onSimulationClick?.(simulation),
|
|
3742
|
-
children: /* @__PURE__ */ (0,
|
|
3743
|
-
/* @__PURE__ */ (0,
|
|
3744
|
-
/* @__PURE__ */ (0,
|
|
3875
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
3876
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
3877
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3745
3878
|
Text_default,
|
|
3746
3879
|
{
|
|
3747
3880
|
size: "lg",
|
|
@@ -3750,8 +3883,8 @@ var CardSimulationHistory = (0, import_react7.forwardRef)(({ data, onSimulationC
|
|
|
3750
3883
|
children: simulation.title
|
|
3751
3884
|
}
|
|
3752
3885
|
),
|
|
3753
|
-
/* @__PURE__ */ (0,
|
|
3754
|
-
/* @__PURE__ */ (0,
|
|
3886
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
3887
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3755
3888
|
Badge_default,
|
|
3756
3889
|
{
|
|
3757
3890
|
variant: "examsOutlined",
|
|
@@ -3760,10 +3893,10 @@ var CardSimulationHistory = (0, import_react7.forwardRef)(({ data, onSimulationC
|
|
|
3760
3893
|
children: typeStyles.text
|
|
3761
3894
|
}
|
|
3762
3895
|
),
|
|
3763
|
-
/* @__PURE__ */ (0,
|
|
3896
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
3764
3897
|
] })
|
|
3765
3898
|
] }),
|
|
3766
|
-
/* @__PURE__ */ (0,
|
|
3899
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3767
3900
|
import_phosphor_react5.CaretRight,
|
|
3768
3901
|
{
|
|
3769
3902
|
size: 24,
|
|
@@ -3779,14 +3912,14 @@ var CardSimulationHistory = (0, import_react7.forwardRef)(({ data, onSimulationC
|
|
|
3779
3912
|
]
|
|
3780
3913
|
}
|
|
3781
3914
|
) }, section.date)),
|
|
3782
|
-
data.length > 0 && /* @__PURE__ */ (0,
|
|
3915
|
+
data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "w-full h-6 bg-white rounded-b-3xl" })
|
|
3783
3916
|
] })
|
|
3784
3917
|
}
|
|
3785
3918
|
);
|
|
3786
3919
|
});
|
|
3787
3920
|
|
|
3788
3921
|
// src/components/ProgressCircle/ProgressCircle.tsx
|
|
3789
|
-
var
|
|
3922
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
3790
3923
|
var SIZE_CLASSES8 = {
|
|
3791
3924
|
small: {
|
|
3792
3925
|
container: "w-[90px] h-[90px]",
|
|
@@ -3868,7 +4001,7 @@ var ProgressCircle = ({
|
|
|
3868
4001
|
const strokeDashoffset = circumference - percentage / 100 * circumference;
|
|
3869
4002
|
const center = size === "small" ? 45 : 76;
|
|
3870
4003
|
const svgSize = size === "small" ? 90 : 152;
|
|
3871
|
-
return /* @__PURE__ */ (0,
|
|
4004
|
+
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
3872
4005
|
"div",
|
|
3873
4006
|
{
|
|
3874
4007
|
className: cn(
|
|
@@ -3878,7 +4011,7 @@ var ProgressCircle = ({
|
|
|
3878
4011
|
className
|
|
3879
4012
|
),
|
|
3880
4013
|
children: [
|
|
3881
|
-
/* @__PURE__ */ (0,
|
|
4014
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
3882
4015
|
"svg",
|
|
3883
4016
|
{
|
|
3884
4017
|
className: "absolute inset-0 transform -rotate-90",
|
|
@@ -3887,7 +4020,7 @@ var ProgressCircle = ({
|
|
|
3887
4020
|
viewBox: `0 0 ${svgSize} ${svgSize}`,
|
|
3888
4021
|
"aria-hidden": "true",
|
|
3889
4022
|
children: [
|
|
3890
|
-
/* @__PURE__ */ (0,
|
|
4023
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3891
4024
|
"circle",
|
|
3892
4025
|
{
|
|
3893
4026
|
cx: center,
|
|
@@ -3898,7 +4031,7 @@ var ProgressCircle = ({
|
|
|
3898
4031
|
className: cn(variantClasses.background, "rounded-lg")
|
|
3899
4032
|
}
|
|
3900
4033
|
),
|
|
3901
|
-
/* @__PURE__ */ (0,
|
|
4034
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3902
4035
|
"circle",
|
|
3903
4036
|
{
|
|
3904
4037
|
cx: center,
|
|
@@ -3918,7 +4051,7 @@ var ProgressCircle = ({
|
|
|
3918
4051
|
]
|
|
3919
4052
|
}
|
|
3920
4053
|
),
|
|
3921
|
-
/* @__PURE__ */ (0,
|
|
4054
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3922
4055
|
"progress",
|
|
3923
4056
|
{
|
|
3924
4057
|
value: clampedValue,
|
|
@@ -3927,7 +4060,7 @@ var ProgressCircle = ({
|
|
|
3927
4060
|
className: "absolute opacity-0 w-0 h-0"
|
|
3928
4061
|
}
|
|
3929
4062
|
),
|
|
3930
|
-
/* @__PURE__ */ (0,
|
|
4063
|
+
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
3931
4064
|
"div",
|
|
3932
4065
|
{
|
|
3933
4066
|
className: cn(
|
|
@@ -3936,7 +4069,7 @@ var ProgressCircle = ({
|
|
|
3936
4069
|
sizeClasses.contentWidth
|
|
3937
4070
|
),
|
|
3938
4071
|
children: [
|
|
3939
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
4072
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
3940
4073
|
Text_default,
|
|
3941
4074
|
{
|
|
3942
4075
|
size: sizeClasses.textSize,
|
|
@@ -3952,7 +4085,7 @@ var ProgressCircle = ({
|
|
|
3952
4085
|
]
|
|
3953
4086
|
}
|
|
3954
4087
|
),
|
|
3955
|
-
label && /* @__PURE__ */ (0,
|
|
4088
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
3956
4089
|
Text_default,
|
|
3957
4090
|
{
|
|
3958
4091
|
as: "span",
|
|
@@ -3985,7 +4118,7 @@ var import_zustand4 = require("zustand");
|
|
|
3985
4118
|
// src/components/CheckBox/CheckBox.tsx
|
|
3986
4119
|
var import_react8 = require("react");
|
|
3987
4120
|
var import_phosphor_react6 = require("phosphor-react");
|
|
3988
|
-
var
|
|
4121
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
3989
4122
|
var SIZE_CLASSES9 = {
|
|
3990
4123
|
small: {
|
|
3991
4124
|
checkbox: "w-4 h-4",
|
|
@@ -4086,7 +4219,7 @@ var CheckBox = (0, import_react8.forwardRef)(
|
|
|
4086
4219
|
);
|
|
4087
4220
|
const renderIcon = () => {
|
|
4088
4221
|
if (indeterminate) {
|
|
4089
|
-
return /* @__PURE__ */ (0,
|
|
4222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4090
4223
|
import_phosphor_react6.Minus,
|
|
4091
4224
|
{
|
|
4092
4225
|
size: sizeClasses.iconSize,
|
|
@@ -4096,7 +4229,7 @@ var CheckBox = (0, import_react8.forwardRef)(
|
|
|
4096
4229
|
);
|
|
4097
4230
|
}
|
|
4098
4231
|
if (checked) {
|
|
4099
|
-
return /* @__PURE__ */ (0,
|
|
4232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4100
4233
|
import_phosphor_react6.Check,
|
|
4101
4234
|
{
|
|
4102
4235
|
size: sizeClasses.iconSize,
|
|
@@ -4107,8 +4240,8 @@ var CheckBox = (0, import_react8.forwardRef)(
|
|
|
4107
4240
|
}
|
|
4108
4241
|
return null;
|
|
4109
4242
|
};
|
|
4110
|
-
return /* @__PURE__ */ (0,
|
|
4111
|
-
/* @__PURE__ */ (0,
|
|
4243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-col", children: [
|
|
4244
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
4112
4245
|
"div",
|
|
4113
4246
|
{
|
|
4114
4247
|
className: cn(
|
|
@@ -4117,7 +4250,7 @@ var CheckBox = (0, import_react8.forwardRef)(
|
|
|
4117
4250
|
disabled ? "opacity-40" : ""
|
|
4118
4251
|
),
|
|
4119
4252
|
children: [
|
|
4120
|
-
/* @__PURE__ */ (0,
|
|
4253
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4121
4254
|
"input",
|
|
4122
4255
|
{
|
|
4123
4256
|
ref,
|
|
@@ -4130,15 +4263,15 @@ var CheckBox = (0, import_react8.forwardRef)(
|
|
|
4130
4263
|
...props
|
|
4131
4264
|
}
|
|
4132
4265
|
),
|
|
4133
|
-
/* @__PURE__ */ (0,
|
|
4134
|
-
label && /* @__PURE__ */ (0,
|
|
4266
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)("label", { htmlFor: inputId, className: checkboxClasses, children: renderIcon() }),
|
|
4267
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4135
4268
|
"div",
|
|
4136
4269
|
{
|
|
4137
4270
|
className: cn(
|
|
4138
4271
|
"flex flex-row items-center",
|
|
4139
4272
|
sizeClasses.labelHeight
|
|
4140
4273
|
),
|
|
4141
|
-
children: /* @__PURE__ */ (0,
|
|
4274
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4142
4275
|
Text_default,
|
|
4143
4276
|
{
|
|
4144
4277
|
as: "label",
|
|
@@ -4157,7 +4290,7 @@ var CheckBox = (0, import_react8.forwardRef)(
|
|
|
4157
4290
|
]
|
|
4158
4291
|
}
|
|
4159
4292
|
),
|
|
4160
|
-
errorMessage && /* @__PURE__ */ (0,
|
|
4293
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4161
4294
|
Text_default,
|
|
4162
4295
|
{
|
|
4163
4296
|
size: "sm",
|
|
@@ -4167,7 +4300,7 @@ var CheckBox = (0, import_react8.forwardRef)(
|
|
|
4167
4300
|
children: errorMessage
|
|
4168
4301
|
}
|
|
4169
4302
|
),
|
|
4170
|
-
helperText && !errorMessage && /* @__PURE__ */ (0,
|
|
4303
|
+
helperText && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
4171
4304
|
Text_default,
|
|
4172
4305
|
{
|
|
4173
4306
|
size: "sm",
|
|
@@ -4184,7 +4317,7 @@ CheckBox.displayName = "CheckBox";
|
|
|
4184
4317
|
var CheckBox_default = CheckBox;
|
|
4185
4318
|
|
|
4186
4319
|
// src/components/CheckBox/CheckboxList.tsx
|
|
4187
|
-
var
|
|
4320
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
4188
4321
|
var createCheckboxListStore = (name, defaultValues, disabled, onValuesChange) => (0, import_zustand4.create)((set, get) => ({
|
|
4189
4322
|
values: defaultValues,
|
|
4190
4323
|
setValues: (values) => {
|
|
@@ -4256,7 +4389,7 @@ var CheckboxList = (0, import_react9.forwardRef)(
|
|
|
4256
4389
|
(0, import_react9.useEffect)(() => {
|
|
4257
4390
|
store.setState({ disabled });
|
|
4258
4391
|
}, [disabled, store]);
|
|
4259
|
-
return /* @__PURE__ */ (0,
|
|
4392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
4260
4393
|
"div",
|
|
4261
4394
|
{
|
|
4262
4395
|
ref,
|
|
@@ -4292,7 +4425,7 @@ var CheckboxListItem = (0, import_react9.forwardRef)(
|
|
|
4292
4425
|
const isChecked = groupValues.includes(value);
|
|
4293
4426
|
const isDisabled = groupDisabled || itemDisabled;
|
|
4294
4427
|
const currentState = isDisabled ? "disabled" : state;
|
|
4295
|
-
return /* @__PURE__ */ (0,
|
|
4428
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
4296
4429
|
CheckBox_default,
|
|
4297
4430
|
{
|
|
4298
4431
|
ref,
|
|
@@ -4319,7 +4452,7 @@ var CheckboxList_default = CheckboxList;
|
|
|
4319
4452
|
|
|
4320
4453
|
// src/components/MultipleChoice/MultipleChoice.tsx
|
|
4321
4454
|
var import_phosphor_react7 = require("phosphor-react");
|
|
4322
|
-
var
|
|
4455
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
4323
4456
|
var MultipleChoiceList = ({
|
|
4324
4457
|
disabled = false,
|
|
4325
4458
|
className = "",
|
|
@@ -4336,9 +4469,9 @@ var MultipleChoiceList = ({
|
|
|
4336
4469
|
const getStatusBadge2 = (status) => {
|
|
4337
4470
|
switch (status) {
|
|
4338
4471
|
case "correct":
|
|
4339
|
-
return /* @__PURE__ */ (0,
|
|
4472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_phosphor_react7.CheckCircle, {}), children: "Resposta correta" });
|
|
4340
4473
|
case "incorrect":
|
|
4341
|
-
return /* @__PURE__ */ (0,
|
|
4474
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_phosphor_react7.XCircle, {}), children: "Resposta incorreta" });
|
|
4342
4475
|
default:
|
|
4343
4476
|
return null;
|
|
4344
4477
|
}
|
|
@@ -4359,14 +4492,14 @@ var MultipleChoiceList = ({
|
|
|
4359
4492
|
isSelected ? "border-primary-950 bg-primary-950 text-text" : "border-border-400 bg-background",
|
|
4360
4493
|
isDisabled && "opacity-40 cursor-not-allowed"
|
|
4361
4494
|
);
|
|
4362
|
-
return /* @__PURE__ */ (0,
|
|
4495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: checkboxClasses, children: isSelected && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_phosphor_react7.Check, { size: 16, weight: "bold" }) });
|
|
4363
4496
|
};
|
|
4364
4497
|
if (mode === "readonly") {
|
|
4365
|
-
return /* @__PURE__ */ (0,
|
|
4498
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: cn("flex flex-col gap-2", className), children: choices.map((choice, i) => {
|
|
4366
4499
|
const isSelected = actualValue?.includes(choice.value) || false;
|
|
4367
4500
|
const statusStyles = getStatusStyles2(choice.status);
|
|
4368
4501
|
const statusBadge = getStatusBadge2(choice.status);
|
|
4369
|
-
return /* @__PURE__ */ (0,
|
|
4502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
4370
4503
|
"div",
|
|
4371
4504
|
{
|
|
4372
4505
|
className: cn(
|
|
@@ -4375,9 +4508,9 @@ var MultipleChoiceList = ({
|
|
|
4375
4508
|
choice.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
4376
4509
|
),
|
|
4377
4510
|
children: [
|
|
4378
|
-
/* @__PURE__ */ (0,
|
|
4511
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { className: "flex items-center gap-2 flex-1", children: [
|
|
4379
4512
|
renderVisualCheckbox(isSelected, choice.disabled || disabled),
|
|
4380
|
-
/* @__PURE__ */ (0,
|
|
4513
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
4381
4514
|
"span",
|
|
4382
4515
|
{
|
|
4383
4516
|
className: cn(
|
|
@@ -4389,14 +4522,14 @@ var MultipleChoiceList = ({
|
|
|
4389
4522
|
}
|
|
4390
4523
|
)
|
|
4391
4524
|
] }),
|
|
4392
|
-
statusBadge && /* @__PURE__ */ (0,
|
|
4525
|
+
statusBadge && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "flex-shrink-0", children: statusBadge })
|
|
4393
4526
|
]
|
|
4394
4527
|
},
|
|
4395
4528
|
`readonly-${choice.value}-${i}`
|
|
4396
4529
|
);
|
|
4397
4530
|
}) });
|
|
4398
4531
|
}
|
|
4399
|
-
return /* @__PURE__ */ (0,
|
|
4532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
4400
4533
|
"div",
|
|
4401
4534
|
{
|
|
4402
4535
|
className: cn(
|
|
@@ -4404,7 +4537,7 @@ var MultipleChoiceList = ({
|
|
|
4404
4537
|
disabled ? "opacity-50 cursor-not-allowed" : "",
|
|
4405
4538
|
className
|
|
4406
4539
|
),
|
|
4407
|
-
children: /* @__PURE__ */ (0,
|
|
4540
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
4408
4541
|
CheckboxList_default,
|
|
4409
4542
|
{
|
|
4410
4543
|
name,
|
|
@@ -4414,12 +4547,12 @@ var MultipleChoiceList = ({
|
|
|
4414
4547
|
onHandleSelectedValues?.(v);
|
|
4415
4548
|
},
|
|
4416
4549
|
disabled,
|
|
4417
|
-
children: choices.map((choice, i) => /* @__PURE__ */ (0,
|
|
4550
|
+
children: choices.map((choice, i) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
|
|
4418
4551
|
"div",
|
|
4419
4552
|
{
|
|
4420
4553
|
className: "flex flex-row gap-2 items-center",
|
|
4421
4554
|
children: [
|
|
4422
|
-
/* @__PURE__ */ (0,
|
|
4555
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
4423
4556
|
CheckboxListItem,
|
|
4424
4557
|
{
|
|
4425
4558
|
value: choice.value,
|
|
@@ -4427,7 +4560,7 @@ var MultipleChoiceList = ({
|
|
|
4427
4560
|
disabled: choice.disabled || disabled
|
|
4428
4561
|
}
|
|
4429
4562
|
),
|
|
4430
|
-
/* @__PURE__ */ (0,
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
4431
4564
|
"label",
|
|
4432
4565
|
{
|
|
4433
4566
|
htmlFor: `interactive-${choice.value}-${i}`,
|
|
@@ -4452,7 +4585,7 @@ var MultipleChoiceList = ({
|
|
|
4452
4585
|
// src/components/TextArea/TextArea.tsx
|
|
4453
4586
|
var import_react11 = require("react");
|
|
4454
4587
|
var import_phosphor_react8 = require("phosphor-react");
|
|
4455
|
-
var
|
|
4588
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
4456
4589
|
var SIZE_CLASSES10 = {
|
|
4457
4590
|
small: {
|
|
4458
4591
|
textarea: "h-24 text-sm",
|
|
@@ -4546,8 +4679,8 @@ var TextArea = (0, import_react11.forwardRef)(
|
|
|
4546
4679
|
stateClasses.focus,
|
|
4547
4680
|
className
|
|
4548
4681
|
);
|
|
4549
|
-
return /* @__PURE__ */ (0,
|
|
4550
|
-
label && /* @__PURE__ */ (0,
|
|
4682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: `flex flex-col`, children: [
|
|
4683
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
4551
4684
|
Text_default,
|
|
4552
4685
|
{
|
|
4553
4686
|
as: "label",
|
|
@@ -4559,7 +4692,7 @@ var TextArea = (0, import_react11.forwardRef)(
|
|
|
4559
4692
|
children: label
|
|
4560
4693
|
}
|
|
4561
4694
|
),
|
|
4562
|
-
/* @__PURE__ */ (0,
|
|
4695
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
4563
4696
|
"textarea",
|
|
4564
4697
|
{
|
|
4565
4698
|
ref,
|
|
@@ -4573,12 +4706,12 @@ var TextArea = (0, import_react11.forwardRef)(
|
|
|
4573
4706
|
...props
|
|
4574
4707
|
}
|
|
4575
4708
|
),
|
|
4576
|
-
errorMessage && /* @__PURE__ */ (0,
|
|
4577
|
-
/* @__PURE__ */ (0,
|
|
4709
|
+
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("p", { className: "flex gap-1 items-center text-sm text-indicator-error mt-1.5", children: [
|
|
4710
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_phosphor_react8.WarningCircle, { size: 16 }),
|
|
4578
4711
|
" ",
|
|
4579
4712
|
errorMessage
|
|
4580
4713
|
] }),
|
|
4581
|
-
helperMessage && !errorMessage && /* @__PURE__ */ (0,
|
|
4714
|
+
helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text_default, { size: "sm", weight: "normal", className: "mt-1.5 text-text-500", children: helperMessage })
|
|
4582
4715
|
] });
|
|
4583
4716
|
}
|
|
4584
4717
|
);
|
|
@@ -4589,13 +4722,13 @@ var TextArea_default = TextArea;
|
|
|
4589
4722
|
var mock_image_question_default = "../mock-image-question-HEZCLFDL.png";
|
|
4590
4723
|
|
|
4591
4724
|
// src/components/Quiz/Quiz.tsx
|
|
4592
|
-
var
|
|
4725
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4593
4726
|
var getStatusBadge = (status) => {
|
|
4594
4727
|
switch (status) {
|
|
4595
4728
|
case "correct":
|
|
4596
|
-
return /* @__PURE__ */ (0,
|
|
4729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.CheckCircle, {}), children: "Resposta correta" });
|
|
4597
4730
|
case "incorrect":
|
|
4598
|
-
return /* @__PURE__ */ (0,
|
|
4731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.XCircle, {}), children: "Resposta incorreta" });
|
|
4599
4732
|
default:
|
|
4600
4733
|
return null;
|
|
4601
4734
|
}
|
|
@@ -4613,7 +4746,7 @@ var Quiz = (0, import_react12.forwardRef)(({ children, className, variant = "def
|
|
|
4613
4746
|
(0, import_react12.useEffect)(() => {
|
|
4614
4747
|
setVariant(variant);
|
|
4615
4748
|
}, [variant, setVariant]);
|
|
4616
|
-
return /* @__PURE__ */ (0,
|
|
4749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { ref, className: cn("flex flex-col", className), ...props, children });
|
|
4617
4750
|
});
|
|
4618
4751
|
var QuizHeaderResult = (0, import_react12.forwardRef)(
|
|
4619
4752
|
({ className, ...props }, ref) => {
|
|
@@ -4654,7 +4787,7 @@ var QuizHeaderResult = (0, import_react12.forwardRef)(
|
|
|
4654
4787
|
return "N\xE3o foi dessa vez...voc\xEA deixou a resposta em branco";
|
|
4655
4788
|
}
|
|
4656
4789
|
};
|
|
4657
|
-
return /* @__PURE__ */ (0,
|
|
4790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
4658
4791
|
"div",
|
|
4659
4792
|
{
|
|
4660
4793
|
ref,
|
|
@@ -4665,8 +4798,8 @@ var QuizHeaderResult = (0, import_react12.forwardRef)(
|
|
|
4665
4798
|
),
|
|
4666
4799
|
...props,
|
|
4667
4800
|
children: [
|
|
4668
|
-
/* @__PURE__ */ (0,
|
|
4669
|
-
/* @__PURE__ */ (0,
|
|
4801
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-950 font-bold text-lg", children: "Resultado" }),
|
|
4802
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-700 text-md", children: getLabelByAnswersStatus() })
|
|
4670
4803
|
]
|
|
4671
4804
|
}
|
|
4672
4805
|
);
|
|
@@ -4684,7 +4817,7 @@ var QuizTitle = (0, import_react12.forwardRef)(
|
|
|
4684
4817
|
} = useQuizStore();
|
|
4685
4818
|
const totalQuestions = getTotalQuestions();
|
|
4686
4819
|
const quizTitle = getQuizTitle();
|
|
4687
|
-
return /* @__PURE__ */ (0,
|
|
4820
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
4688
4821
|
"div",
|
|
4689
4822
|
{
|
|
4690
4823
|
ref,
|
|
@@ -4694,11 +4827,11 @@ var QuizTitle = (0, import_react12.forwardRef)(
|
|
|
4694
4827
|
),
|
|
4695
4828
|
...props,
|
|
4696
4829
|
children: [
|
|
4697
|
-
/* @__PURE__ */ (0,
|
|
4698
|
-
/* @__PURE__ */ (0,
|
|
4699
|
-
/* @__PURE__ */ (0,
|
|
4830
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "flex flex-col gap-2 text-center", children: [
|
|
4831
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-950 font-bold text-md", children: quizTitle }),
|
|
4832
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-600 text-xs", children: totalQuestions > 0 ? `${currentQuestionIndex + 1} de ${totalQuestions}` : "0 de 0" })
|
|
4700
4833
|
] }),
|
|
4701
|
-
/* @__PURE__ */ (0,
|
|
4834
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "absolute right-2", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "outlined", action: "info", iconLeft: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.Clock, {}), children: isStarted ? formatTime(timeElapsed) : "00:00" }) })
|
|
4702
4835
|
]
|
|
4703
4836
|
}
|
|
4704
4837
|
);
|
|
@@ -4706,13 +4839,13 @@ var QuizTitle = (0, import_react12.forwardRef)(
|
|
|
4706
4839
|
);
|
|
4707
4840
|
var QuizSubTitle = (0, import_react12.forwardRef)(
|
|
4708
4841
|
({ subTitle, ...props }, ref) => {
|
|
4709
|
-
return /* @__PURE__ */ (0,
|
|
4842
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "px-4 pb-2 pt-6", ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "font-bold text-lg text-text-950", children: subTitle }) });
|
|
4710
4843
|
}
|
|
4711
4844
|
);
|
|
4712
4845
|
var QuizHeader = () => {
|
|
4713
4846
|
const { getCurrentQuestion, currentQuestionIndex } = useQuizStore();
|
|
4714
4847
|
const currentQuestion = getCurrentQuestion();
|
|
4715
|
-
return /* @__PURE__ */ (0,
|
|
4848
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4716
4849
|
HeaderAlternative,
|
|
4717
4850
|
{
|
|
4718
4851
|
title: currentQuestion ? `Quest\xE3o ${currentQuestionIndex + 1}` : "Quest\xE3o",
|
|
@@ -4722,7 +4855,7 @@ var QuizHeader = () => {
|
|
|
4722
4855
|
);
|
|
4723
4856
|
};
|
|
4724
4857
|
var QuizContainer = (0, import_react12.forwardRef)(({ children, className, ...props }, ref) => {
|
|
4725
|
-
return /* @__PURE__ */ (0,
|
|
4858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4726
4859
|
"div",
|
|
4727
4860
|
{
|
|
4728
4861
|
ref,
|
|
@@ -4748,7 +4881,7 @@ var QuizContent = (0, import_react12.forwardRef)(({ paddingBottom }) => {
|
|
|
4748
4881
|
["IMAGEM" /* IMAGEM */]: QuizImageQuestion
|
|
4749
4882
|
};
|
|
4750
4883
|
const QuestionComponent = currentQuestion ? questionComponents[currentQuestion.questionType] : null;
|
|
4751
|
-
return QuestionComponent ? /* @__PURE__ */ (0,
|
|
4884
|
+
return QuestionComponent ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuestionComponent, { paddingBottom }) : null;
|
|
4752
4885
|
});
|
|
4753
4886
|
var QuizAlternative = ({ paddingBottom }) => {
|
|
4754
4887
|
const {
|
|
@@ -4785,10 +4918,10 @@ var QuizAlternative = ({ paddingBottom }) => {
|
|
|
4785
4918
|
};
|
|
4786
4919
|
});
|
|
4787
4920
|
if (!alternatives)
|
|
4788
|
-
return /* @__PURE__ */ (0,
|
|
4789
|
-
return /* @__PURE__ */ (0,
|
|
4790
|
-
/* @__PURE__ */ (0,
|
|
4791
|
-
/* @__PURE__ */ (0,
|
|
4921
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { children: "N\xE3o h\xE1 Alternativas" }) });
|
|
4922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
4923
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
4924
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4792
4925
|
AlternativesList,
|
|
4793
4926
|
{
|
|
4794
4927
|
mode: variant === "default" ? "interactive" : "readonly",
|
|
@@ -4886,10 +5019,10 @@ var QuizMultipleChoice = ({ paddingBottom }) => {
|
|
|
4886
5019
|
};
|
|
4887
5020
|
});
|
|
4888
5021
|
if (!choices)
|
|
4889
|
-
return /* @__PURE__ */ (0,
|
|
4890
|
-
return /* @__PURE__ */ (0,
|
|
4891
|
-
/* @__PURE__ */ (0,
|
|
4892
|
-
/* @__PURE__ */ (0,
|
|
5022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { children: "N\xE3o h\xE1 Escolhas Multiplas" }) });
|
|
5023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5024
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
5025
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4893
5026
|
MultipleChoiceList,
|
|
4894
5027
|
{
|
|
4895
5028
|
choices,
|
|
@@ -4935,12 +5068,12 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
4935
5068
|
adjustTextareaHeight();
|
|
4936
5069
|
}, [currentAnswer, adjustTextareaHeight]);
|
|
4937
5070
|
if (!currentQuestion) {
|
|
4938
|
-
return /* @__PURE__ */ (0,
|
|
5071
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-600 text-md", children: "Nenhuma quest\xE3o dispon\xEDvel" }) });
|
|
4939
5072
|
}
|
|
4940
5073
|
const localAnswer = (variant == "result" ? currentQuestionResult?.answer : currentAnswer?.answer) || "";
|
|
4941
|
-
return /* @__PURE__ */ (0,
|
|
4942
|
-
/* @__PURE__ */ (0,
|
|
4943
|
-
/* @__PURE__ */ (0,
|
|
5074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5075
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Resposta" }),
|
|
5076
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: cn(variant != "result" && paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4 max-h-[600px] overflow-y-auto", children: variant === "default" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
4944
5077
|
TextArea_default,
|
|
4945
5078
|
{
|
|
4946
5079
|
ref: textareaRef,
|
|
@@ -4950,10 +5083,10 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
4950
5083
|
rows: 4,
|
|
4951
5084
|
className: "min-h-[120px] max-h-[400px] resize-none overflow-y-auto"
|
|
4952
5085
|
}
|
|
4953
|
-
) }) : /* @__PURE__ */ (0,
|
|
4954
|
-
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */ (0,
|
|
4955
|
-
/* @__PURE__ */ (0,
|
|
4956
|
-
/* @__PURE__ */ (0,
|
|
5086
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-600 text-md whitespace-pre-wrap", children: localAnswer || "Nenhuma resposta fornecida" }) }) }) }),
|
|
5087
|
+
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5088
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Observa\xE7\xE3o do professor" }),
|
|
5089
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("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." }) })
|
|
4957
5090
|
] })
|
|
4958
5091
|
] });
|
|
4959
5092
|
};
|
|
@@ -4979,16 +5112,16 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
4979
5112
|
];
|
|
4980
5113
|
const getLetterByIndex = (index) => String.fromCharCode(97 + index);
|
|
4981
5114
|
const isDefaultVariant = variant == "default";
|
|
4982
|
-
return /* @__PURE__ */ (0,
|
|
4983
|
-
/* @__PURE__ */ (0,
|
|
4984
|
-
/* @__PURE__ */ (0,
|
|
5115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5116
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
5117
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
4985
5118
|
const variantCorrect = option.isCorrect ? "correct" : "incorrect";
|
|
4986
|
-
return /* @__PURE__ */ (0,
|
|
5119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
4987
5120
|
"section",
|
|
4988
5121
|
{
|
|
4989
5122
|
className: "flex flex-col gap-2",
|
|
4990
5123
|
children: [
|
|
4991
|
-
/* @__PURE__ */ (0,
|
|
5124
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
4992
5125
|
"div",
|
|
4993
5126
|
{
|
|
4994
5127
|
className: cn(
|
|
@@ -4996,20 +5129,20 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
4996
5129
|
!isDefaultVariant ? getStatusStyles(variantCorrect) : ""
|
|
4997
5130
|
),
|
|
4998
5131
|
children: [
|
|
4999
|
-
/* @__PURE__ */ (0,
|
|
5000
|
-
isDefaultVariant ? /* @__PURE__ */ (0,
|
|
5001
|
-
/* @__PURE__ */ (0,
|
|
5002
|
-
/* @__PURE__ */ (0,
|
|
5003
|
-
/* @__PURE__ */ (0,
|
|
5004
|
-
/* @__PURE__ */ (0,
|
|
5132
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index).concat(") ").concat(option.label) }),
|
|
5133
|
+
isDefaultVariant ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Select_default, { size: "medium", children: [
|
|
5134
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectValue, { placeholder: "Selecione opc\xE3o" }) }),
|
|
5135
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(SelectContent, { children: [
|
|
5136
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: "V", children: "Verdadeiro" }),
|
|
5137
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: "F", children: "Falso" })
|
|
5005
5138
|
] })
|
|
5006
|
-
] }) : /* @__PURE__ */ (0,
|
|
5139
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex-shrink-0", children: getStatusBadge(variantCorrect) })
|
|
5007
5140
|
]
|
|
5008
5141
|
}
|
|
5009
5142
|
),
|
|
5010
|
-
!isDefaultVariant && /* @__PURE__ */ (0,
|
|
5011
|
-
/* @__PURE__ */ (0,
|
|
5012
|
-
!option.isCorrect && /* @__PURE__ */ (0,
|
|
5143
|
+
!isDefaultVariant && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
5144
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-800 text-2xs", children: "Resposta selecionada: V" }),
|
|
5145
|
+
!option.isCorrect && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-800 text-2xs", children: "Resposta correta: F" })
|
|
5013
5146
|
] })
|
|
5014
5147
|
]
|
|
5015
5148
|
},
|
|
@@ -5099,13 +5232,13 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
5099
5232
|
const assignedDots = new Set(
|
|
5100
5233
|
userAnswers.map((a) => a.dotOption).filter(Boolean)
|
|
5101
5234
|
);
|
|
5102
|
-
return /* @__PURE__ */ (0,
|
|
5103
|
-
/* @__PURE__ */ (0,
|
|
5104
|
-
/* @__PURE__ */ (0,
|
|
5235
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5236
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
5237
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
5105
5238
|
const answer = userAnswers[index];
|
|
5106
5239
|
const variantCorrect = answer.isCorrect ? "correct" : "incorrect";
|
|
5107
|
-
return /* @__PURE__ */ (0,
|
|
5108
|
-
/* @__PURE__ */ (0,
|
|
5240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { className: "flex flex-col gap-2", children: [
|
|
5241
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5109
5242
|
"div",
|
|
5110
5243
|
{
|
|
5111
5244
|
className: cn(
|
|
@@ -5113,30 +5246,30 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
5113
5246
|
!isDefaultVariant ? getStatusStyles(variantCorrect) : ""
|
|
5114
5247
|
),
|
|
5115
5248
|
children: [
|
|
5116
|
-
/* @__PURE__ */ (0,
|
|
5117
|
-
isDefaultVariant ? /* @__PURE__ */ (0,
|
|
5249
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index) + ") " + option.label }),
|
|
5250
|
+
isDefaultVariant ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5118
5251
|
Select_default,
|
|
5119
5252
|
{
|
|
5120
5253
|
size: "medium",
|
|
5121
5254
|
value: answer.dotOption || void 0,
|
|
5122
5255
|
onValueChange: (value) => handleSelectDot(index, value),
|
|
5123
5256
|
children: [
|
|
5124
|
-
/* @__PURE__ */ (0,
|
|
5125
|
-
/* @__PURE__ */ (0,
|
|
5257
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
|
|
5258
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectContent, { children: dotsOptions.filter(
|
|
5126
5259
|
(dot) => !assignedDots.has(dot.label) || answer.dotOption === dot.label
|
|
5127
|
-
).map((dot) => /* @__PURE__ */ (0,
|
|
5260
|
+
).map((dot) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: dot.label, children: dot.label }, dot.label)) })
|
|
5128
5261
|
]
|
|
5129
5262
|
}
|
|
5130
|
-
) : /* @__PURE__ */ (0,
|
|
5263
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex-shrink-0", children: answer.isCorrect === null ? null : getStatusBadge(variantCorrect) })
|
|
5131
5264
|
]
|
|
5132
5265
|
}
|
|
5133
5266
|
),
|
|
5134
|
-
!isDefaultVariant && /* @__PURE__ */ (0,
|
|
5135
|
-
/* @__PURE__ */ (0,
|
|
5267
|
+
!isDefaultVariant && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
5268
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("p", { className: "text-text-800 text-2xs", children: [
|
|
5136
5269
|
"Resposta selecionada: ",
|
|
5137
5270
|
answer.dotOption || "Nenhuma"
|
|
5138
5271
|
] }),
|
|
5139
|
-
!answer.isCorrect && /* @__PURE__ */ (0,
|
|
5272
|
+
!answer.isCorrect && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("p", { className: "text-text-800 text-2xs", children: [
|
|
5140
5273
|
"Resposta correta: ",
|
|
5141
5274
|
answer.correctOption
|
|
5142
5275
|
] })
|
|
@@ -5203,18 +5336,18 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
5203
5336
|
const mockAnswer = mockUserAnswers.find(
|
|
5204
5337
|
(answer) => answer.selectId === selectId
|
|
5205
5338
|
);
|
|
5206
|
-
return /* @__PURE__ */ (0,
|
|
5339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "inline-flex mb-2.5 text-success-600 font-semibold text-md border-b-2 border-success-600", children: mockAnswer?.correctAnswer });
|
|
5207
5340
|
};
|
|
5208
5341
|
const renderDefaultElement = (selectId, startIndex, selectedValue, availableOptionsForThisSelect) => {
|
|
5209
|
-
return /* @__PURE__ */ (0,
|
|
5342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5210
5343
|
Select_default,
|
|
5211
5344
|
{
|
|
5212
5345
|
value: selectedValue,
|
|
5213
5346
|
onValueChange: (value) => handleSelectChange(selectId, value),
|
|
5214
5347
|
className: "inline-flex mb-2.5",
|
|
5215
5348
|
children: [
|
|
5216
|
-
/* @__PURE__ */ (0,
|
|
5217
|
-
/* @__PURE__ */ (0,
|
|
5349
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectTrigger, { className: "inline-flex w-auto min-w-[140px] h-8 mx-1 bg-white border-gray-300", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
|
|
5350
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectContent, { children: availableOptionsForThisSelect.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: option, children: option }, `${option}-${index}`)) })
|
|
5218
5351
|
]
|
|
5219
5352
|
},
|
|
5220
5353
|
`${selectId}-${startIndex}`
|
|
@@ -5226,8 +5359,8 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
5226
5359
|
);
|
|
5227
5360
|
if (!mockAnswer) return null;
|
|
5228
5361
|
const action = mockAnswer.isCorrect ? "success" : "error";
|
|
5229
|
-
const icon = mockAnswer.isCorrect ? /* @__PURE__ */ (0,
|
|
5230
|
-
return /* @__PURE__ */ (0,
|
|
5362
|
+
const icon = mockAnswer.isCorrect ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.CheckCircle, {}) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.XCircle, {});
|
|
5363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5231
5364
|
Badge_default,
|
|
5232
5365
|
{
|
|
5233
5366
|
variant: "solid",
|
|
@@ -5235,7 +5368,7 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
5235
5368
|
iconRight: icon,
|
|
5236
5369
|
size: "large",
|
|
5237
5370
|
className: "py-3 w-[180px] justify-between mb-2.5",
|
|
5238
|
-
children: /* @__PURE__ */ (0,
|
|
5371
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-900", children: mockAnswer.userAnswer })
|
|
5239
5372
|
},
|
|
5240
5373
|
selectId
|
|
5241
5374
|
);
|
|
@@ -5291,25 +5424,25 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
5291
5424
|
}
|
|
5292
5425
|
return elements;
|
|
5293
5426
|
};
|
|
5294
|
-
return /* @__PURE__ */ (0,
|
|
5295
|
-
/* @__PURE__ */ (0,
|
|
5296
|
-
/* @__PURE__ */ (0,
|
|
5427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5428
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
5429
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-6 px-4 h-auto", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5297
5430
|
"div",
|
|
5298
5431
|
{
|
|
5299
5432
|
className: cn(
|
|
5300
5433
|
"text-lg text-text-900 leading-8 h-auto",
|
|
5301
5434
|
variant != "result" && paddingBottom
|
|
5302
5435
|
),
|
|
5303
|
-
children: renderTextWithSelects(exampleText).map((element) => /* @__PURE__ */ (0,
|
|
5436
|
+
children: renderTextWithSelects(exampleText).map((element) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: element.element }, element.id))
|
|
5304
5437
|
}
|
|
5305
5438
|
) }) }),
|
|
5306
|
-
variant === "result" && /* @__PURE__ */ (0,
|
|
5307
|
-
/* @__PURE__ */ (0,
|
|
5308
|
-
/* @__PURE__ */ (0,
|
|
5439
|
+
variant === "result" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5440
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Resultado" }),
|
|
5441
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "space-y-6 px-4", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5309
5442
|
"div",
|
|
5310
5443
|
{
|
|
5311
5444
|
className: cn("text-lg text-text-900 leading-8", paddingBottom),
|
|
5312
|
-
children: renderTextWithSelects(exampleText, true).map((element) => /* @__PURE__ */ (0,
|
|
5445
|
+
children: renderTextWithSelects(exampleText, true).map((element) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { children: element.element }, element.id))
|
|
5313
5446
|
}
|
|
5314
5447
|
) }) })
|
|
5315
5448
|
] })
|
|
@@ -5363,36 +5496,36 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
5363
5496
|
}
|
|
5364
5497
|
return "bg-success-600/70 border-white";
|
|
5365
5498
|
};
|
|
5366
|
-
return /* @__PURE__ */ (0,
|
|
5367
|
-
/* @__PURE__ */ (0,
|
|
5368
|
-
/* @__PURE__ */ (0,
|
|
5499
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5500
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizSubTitle, { subTitle: "Clique na \xE1rea correta" }),
|
|
5501
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5369
5502
|
"div",
|
|
5370
5503
|
{
|
|
5371
5504
|
"data-testid": "quiz-image-container",
|
|
5372
5505
|
className: "space-y-6 p-3 relative inline-block",
|
|
5373
5506
|
children: [
|
|
5374
|
-
variant == "result" && /* @__PURE__ */ (0,
|
|
5507
|
+
variant == "result" && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5375
5508
|
"div",
|
|
5376
5509
|
{
|
|
5377
5510
|
"data-testid": "quiz-legend",
|
|
5378
5511
|
className: "flex items-center gap-4 text-xs",
|
|
5379
5512
|
children: [
|
|
5380
|
-
/* @__PURE__ */ (0,
|
|
5381
|
-
/* @__PURE__ */ (0,
|
|
5382
|
-
/* @__PURE__ */ (0,
|
|
5513
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
5514
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-3 h-3 rounded-full bg-indicator-primary/70 border border-[#F8CC2E]" }),
|
|
5515
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-600 font-medium text-sm", children: "\xC1rea correta" })
|
|
5383
5516
|
] }),
|
|
5384
|
-
/* @__PURE__ */ (0,
|
|
5385
|
-
/* @__PURE__ */ (0,
|
|
5386
|
-
/* @__PURE__ */ (0,
|
|
5517
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
5518
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-3 h-3 rounded-full bg-success-600/70 border border-white" }),
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-600 font-medium text-sm", children: "Resposta correta" })
|
|
5387
5520
|
] }),
|
|
5388
|
-
/* @__PURE__ */ (0,
|
|
5389
|
-
/* @__PURE__ */ (0,
|
|
5390
|
-
/* @__PURE__ */ (0,
|
|
5521
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
5522
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-3 h-3 rounded-full bg-indicator-error/70 border border-white" }),
|
|
5523
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-text-600 font-medium text-sm", children: "Resposta incorreta" })
|
|
5391
5524
|
] })
|
|
5392
5525
|
]
|
|
5393
5526
|
}
|
|
5394
5527
|
),
|
|
5395
|
-
/* @__PURE__ */ (0,
|
|
5528
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5396
5529
|
"button",
|
|
5397
5530
|
{
|
|
5398
5531
|
"data-testid": "quiz-image-button",
|
|
@@ -5407,7 +5540,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
5407
5540
|
},
|
|
5408
5541
|
"aria-label": "\xC1rea da imagem interativa",
|
|
5409
5542
|
children: [
|
|
5410
|
-
/* @__PURE__ */ (0,
|
|
5543
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5411
5544
|
"img",
|
|
5412
5545
|
{
|
|
5413
5546
|
"data-testid": "quiz-image",
|
|
@@ -5416,7 +5549,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
5416
5549
|
className: "w-full h-auto rounded-md"
|
|
5417
5550
|
}
|
|
5418
5551
|
),
|
|
5419
|
-
variant === "result" && /* @__PURE__ */ (0,
|
|
5552
|
+
variant === "result" && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5420
5553
|
"div",
|
|
5421
5554
|
{
|
|
5422
5555
|
"data-testid": "quiz-correct-circle",
|
|
@@ -5431,7 +5564,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
5431
5564
|
}
|
|
5432
5565
|
}
|
|
5433
5566
|
),
|
|
5434
|
-
clickPositionRelative && /* @__PURE__ */ (0,
|
|
5567
|
+
clickPositionRelative && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5435
5568
|
"div",
|
|
5436
5569
|
{
|
|
5437
5570
|
"data-testid": "quiz-user-circle",
|
|
@@ -5499,18 +5632,18 @@ var QuizQuestionList = ({
|
|
|
5499
5632
|
return "Em branco";
|
|
5500
5633
|
}
|
|
5501
5634
|
};
|
|
5502
|
-
return /* @__PURE__ */ (0,
|
|
5503
|
-
Object.entries(filteredGroupedQuestions).length == 0 && /* @__PURE__ */ (0,
|
|
5635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "space-y-6 px-4 h-full", children: [
|
|
5636
|
+
Object.entries(filteredGroupedQuestions).length == 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex items-center justify-center text-gray-500 py-8 h-full", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-lg", children: "Nenhum resultado" }) }),
|
|
5504
5637
|
Object.entries(filteredGroupedQuestions).map(
|
|
5505
|
-
([subjectId, questions]) => /* @__PURE__ */ (0,
|
|
5506
|
-
/* @__PURE__ */ (0,
|
|
5507
|
-
/* @__PURE__ */ (0,
|
|
5508
|
-
/* @__PURE__ */ (0,
|
|
5638
|
+
([subjectId, questions]) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { className: "flex flex-col gap-2", children: [
|
|
5639
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "pt-6 pb-4 flex flex-row gap-2", children: [
|
|
5640
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "bg-primary-500 p-1 rounded-sm flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.BookOpen, { size: 17, className: "text-white" }) }),
|
|
5641
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-800 font-bold text-lg", children: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" })
|
|
5509
5642
|
] }),
|
|
5510
|
-
/* @__PURE__ */ (0,
|
|
5643
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("ul", { className: "flex flex-col gap-2", children: questions.map((question) => {
|
|
5511
5644
|
const status = getQuestionStatus(question.id);
|
|
5512
5645
|
const questionNumber = getQuestionIndex(question.id);
|
|
5513
|
-
return /* @__PURE__ */ (0,
|
|
5646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5514
5647
|
CardStatus,
|
|
5515
5648
|
{
|
|
5516
5649
|
header: `Quest\xE3o ${questionNumber.toString().padStart(2, "0")}`,
|
|
@@ -5590,8 +5723,8 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5590
5723
|
return;
|
|
5591
5724
|
}
|
|
5592
5725
|
};
|
|
5593
|
-
return /* @__PURE__ */ (0,
|
|
5594
|
-
/* @__PURE__ */ (0,
|
|
5726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5727
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5595
5728
|
"footer",
|
|
5596
5729
|
{
|
|
5597
5730
|
ref,
|
|
@@ -5600,17 +5733,17 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5600
5733
|
className
|
|
5601
5734
|
),
|
|
5602
5735
|
...props,
|
|
5603
|
-
children: variant === "default" ? /* @__PURE__ */ (0,
|
|
5604
|
-
/* @__PURE__ */ (0,
|
|
5605
|
-
/* @__PURE__ */ (0,
|
|
5736
|
+
children: variant === "default" ? /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
5737
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-row items-center gap-1", children: [
|
|
5738
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5606
5739
|
IconButton_default,
|
|
5607
5740
|
{
|
|
5608
|
-
icon: /* @__PURE__ */ (0,
|
|
5741
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.SquaresFour, { size: 24, className: "text-text-950" }),
|
|
5609
5742
|
size: "md",
|
|
5610
5743
|
onClick: () => setModalNavigateOpen(true)
|
|
5611
5744
|
}
|
|
5612
5745
|
),
|
|
5613
|
-
isFirstQuestion ? /* @__PURE__ */ (0,
|
|
5746
|
+
isFirstQuestion ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5614
5747
|
Button_default,
|
|
5615
5748
|
{
|
|
5616
5749
|
variant: "outline",
|
|
@@ -5621,13 +5754,13 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5621
5754
|
},
|
|
5622
5755
|
children: "Pular"
|
|
5623
5756
|
}
|
|
5624
|
-
) : /* @__PURE__ */ (0,
|
|
5757
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5625
5758
|
Button_default,
|
|
5626
5759
|
{
|
|
5627
5760
|
size: "medium",
|
|
5628
5761
|
variant: "link",
|
|
5629
5762
|
action: "primary",
|
|
5630
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
5763
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.CaretLeft, { size: 18 }),
|
|
5631
5764
|
onClick: () => {
|
|
5632
5765
|
goToPreviousQuestion();
|
|
5633
5766
|
},
|
|
@@ -5635,7 +5768,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5635
5768
|
}
|
|
5636
5769
|
)
|
|
5637
5770
|
] }),
|
|
5638
|
-
!isFirstQuestion && !isLastQuestion && /* @__PURE__ */ (0,
|
|
5771
|
+
!isFirstQuestion && !isLastQuestion && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5639
5772
|
Button_default,
|
|
5640
5773
|
{
|
|
5641
5774
|
size: "small",
|
|
@@ -5648,7 +5781,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5648
5781
|
children: "Pular"
|
|
5649
5782
|
}
|
|
5650
5783
|
),
|
|
5651
|
-
isLastQuestion ? /* @__PURE__ */ (0,
|
|
5784
|
+
isLastQuestion ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5652
5785
|
Button_default,
|
|
5653
5786
|
{
|
|
5654
5787
|
size: "medium",
|
|
@@ -5658,13 +5791,13 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5658
5791
|
onClick: handleFinishQuiz,
|
|
5659
5792
|
children: "Finalizar"
|
|
5660
5793
|
}
|
|
5661
|
-
) : /* @__PURE__ */ (0,
|
|
5794
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5662
5795
|
Button_default,
|
|
5663
5796
|
{
|
|
5664
5797
|
size: "medium",
|
|
5665
5798
|
variant: "link",
|
|
5666
5799
|
action: "primary",
|
|
5667
|
-
iconRight: /* @__PURE__ */ (0,
|
|
5800
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.CaretRight, { size: 18 }),
|
|
5668
5801
|
disabled: !currentAnswer && !isCurrentQuestionSkipped,
|
|
5669
5802
|
onClick: () => {
|
|
5670
5803
|
goToNextQuestion();
|
|
@@ -5672,7 +5805,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5672
5805
|
children: "Avan\xE7ar"
|
|
5673
5806
|
}
|
|
5674
5807
|
)
|
|
5675
|
-
] }) : /* @__PURE__ */ (0,
|
|
5808
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-row items-center justify-end w-full", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5676
5809
|
Button_default,
|
|
5677
5810
|
{
|
|
5678
5811
|
variant: "solid",
|
|
@@ -5684,7 +5817,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5684
5817
|
) })
|
|
5685
5818
|
}
|
|
5686
5819
|
),
|
|
5687
|
-
/* @__PURE__ */ (0,
|
|
5820
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5688
5821
|
AlertDialog,
|
|
5689
5822
|
{
|
|
5690
5823
|
isOpen: alertDialogOpen,
|
|
@@ -5696,7 +5829,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5696
5829
|
onSubmit: handleAlertSubmit
|
|
5697
5830
|
}
|
|
5698
5831
|
),
|
|
5699
|
-
/* @__PURE__ */ (0,
|
|
5832
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5700
5833
|
Modal_default,
|
|
5701
5834
|
{
|
|
5702
5835
|
isOpen: modalResultOpen,
|
|
@@ -5706,11 +5839,11 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5706
5839
|
closeOnEscape: false,
|
|
5707
5840
|
hideCloseButton: true,
|
|
5708
5841
|
size: "md",
|
|
5709
|
-
children: /* @__PURE__ */ (0,
|
|
5710
|
-
resultImageComponent ? /* @__PURE__ */ (0,
|
|
5711
|
-
/* @__PURE__ */ (0,
|
|
5712
|
-
/* @__PURE__ */ (0,
|
|
5713
|
-
/* @__PURE__ */ (0,
|
|
5842
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
|
|
5843
|
+
resultImageComponent ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
|
|
5844
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
5845
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h2", { className: "text-text-950 font-bold text-lg", children: "Voc\xEA concluiu o simulado!" }),
|
|
5846
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("p", { className: "text-text-500 font-sm", children: [
|
|
5714
5847
|
"Voc\xEA acertou",
|
|
5715
5848
|
" ",
|
|
5716
5849
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|
|
@@ -5720,8 +5853,8 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5720
5853
|
" quest\xF5es."
|
|
5721
5854
|
] })
|
|
5722
5855
|
] }),
|
|
5723
|
-
/* @__PURE__ */ (0,
|
|
5724
|
-
/* @__PURE__ */ (0,
|
|
5856
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: [
|
|
5857
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5725
5858
|
Button_default,
|
|
5726
5859
|
{
|
|
5727
5860
|
variant: "outline",
|
|
@@ -5731,38 +5864,38 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5731
5864
|
children: "Ir para simulados"
|
|
5732
5865
|
}
|
|
5733
5866
|
),
|
|
5734
|
-
/* @__PURE__ */ (0,
|
|
5867
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Button_default, { className: "w-full", onClick: onDetailResult, children: "Detalhar resultado" })
|
|
5735
5868
|
] })
|
|
5736
5869
|
] })
|
|
5737
5870
|
}
|
|
5738
5871
|
),
|
|
5739
|
-
/* @__PURE__ */ (0,
|
|
5872
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5740
5873
|
Modal_default,
|
|
5741
5874
|
{
|
|
5742
5875
|
isOpen: modalNavigateOpen,
|
|
5743
5876
|
onClose: () => setModalNavigateOpen(false),
|
|
5744
5877
|
title: "Quest\xF5es",
|
|
5745
5878
|
size: "lg",
|
|
5746
|
-
children: /* @__PURE__ */ (0,
|
|
5747
|
-
/* @__PURE__ */ (0,
|
|
5748
|
-
/* @__PURE__ */ (0,
|
|
5749
|
-
/* @__PURE__ */ (0,
|
|
5750
|
-
/* @__PURE__ */ (0,
|
|
5879
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col w-full h-full", children: [
|
|
5880
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-row justify-between items-center py-6 pt-6 pb-4 border-b border-border-200", children: [
|
|
5881
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-950 font-bold text-lg", children: "Filtrar por" }),
|
|
5882
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "max-w-[266px]", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(Select_default, { value: filterType, onValueChange: setFilterType, children: [
|
|
5883
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5751
5884
|
SelectTrigger,
|
|
5752
5885
|
{
|
|
5753
5886
|
variant: "rounded",
|
|
5754
5887
|
className: "max-w-[266px] min-w-[160px]",
|
|
5755
|
-
children: /* @__PURE__ */ (0,
|
|
5888
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectValue, { placeholder: "Selecione uma op\xE7\xE3o" })
|
|
5756
5889
|
}
|
|
5757
5890
|
),
|
|
5758
|
-
/* @__PURE__ */ (0,
|
|
5759
|
-
/* @__PURE__ */ (0,
|
|
5760
|
-
/* @__PURE__ */ (0,
|
|
5761
|
-
/* @__PURE__ */ (0,
|
|
5891
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(SelectContent, { children: [
|
|
5892
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: "all", children: "Todas" }),
|
|
5893
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: "unanswered", children: "Em branco" }),
|
|
5894
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(SelectItem, { value: "answered", children: "Respondidas" })
|
|
5762
5895
|
] })
|
|
5763
5896
|
] }) })
|
|
5764
5897
|
] }),
|
|
5765
|
-
/* @__PURE__ */ (0,
|
|
5898
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-col gap-2 not-lg:h-[calc(100vh-200px)] lg:max-h-[687px] lg:h-[687px] overflow-y-auto", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5766
5899
|
QuizQuestionList,
|
|
5767
5900
|
{
|
|
5768
5901
|
filterType,
|
|
@@ -5772,7 +5905,7 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5772
5905
|
] })
|
|
5773
5906
|
}
|
|
5774
5907
|
),
|
|
5775
|
-
/* @__PURE__ */ (0,
|
|
5908
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5776
5909
|
Modal_default,
|
|
5777
5910
|
{
|
|
5778
5911
|
isOpen: modalResolutionOpen,
|
|
@@ -5785,17 +5918,33 @@ var QuizFooter = (0, import_react12.forwardRef)(
|
|
|
5785
5918
|
] });
|
|
5786
5919
|
}
|
|
5787
5920
|
);
|
|
5921
|
+
var QuizBadge = ({ subtype }) => {
|
|
5922
|
+
switch (subtype) {
|
|
5923
|
+
case "PROVA":
|
|
5924
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Prova" });
|
|
5925
|
+
case "ENEM":
|
|
5926
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Enem" });
|
|
5927
|
+
case "VESTIBULAR":
|
|
5928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Vestibular" });
|
|
5929
|
+
case "SIMULADO":
|
|
5930
|
+
case null:
|
|
5931
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: "Simulado" });
|
|
5932
|
+
default:
|
|
5933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: subtype });
|
|
5934
|
+
}
|
|
5935
|
+
};
|
|
5788
5936
|
var QuizResultHeaderTitle = (0, import_react12.forwardRef)(({ className, ...props }, ref) => {
|
|
5789
|
-
const {
|
|
5790
|
-
|
|
5937
|
+
const { getActiveQuiz } = useQuizStore();
|
|
5938
|
+
const activeQuiz = getActiveQuiz();
|
|
5939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5791
5940
|
"div",
|
|
5792
5941
|
{
|
|
5793
5942
|
ref,
|
|
5794
5943
|
className: cn("flex flex-row pt-4 justify-between", className),
|
|
5795
5944
|
...props,
|
|
5796
5945
|
children: [
|
|
5797
|
-
/* @__PURE__ */ (0,
|
|
5798
|
-
|
|
5946
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-950 font-bold text-2xl", children: "Resultado" }),
|
|
5947
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(QuizBadge, { subtype: activeQuiz?.quiz.subtype || null })
|
|
5799
5948
|
]
|
|
5800
5949
|
}
|
|
5801
5950
|
);
|
|
@@ -5803,7 +5952,7 @@ var QuizResultHeaderTitle = (0, import_react12.forwardRef)(({ className, ...prop
|
|
|
5803
5952
|
var QuizResultTitle = (0, import_react12.forwardRef)(({ className, ...props }, ref) => {
|
|
5804
5953
|
const { getQuizTitle } = useQuizStore();
|
|
5805
5954
|
const quizTitle = getQuizTitle();
|
|
5806
|
-
return /* @__PURE__ */ (0,
|
|
5955
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5807
5956
|
"p",
|
|
5808
5957
|
{
|
|
5809
5958
|
className: cn("pt-6 pb-4 text-text-950 font-bold text-lg", className),
|
|
@@ -5856,15 +6005,15 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
|
|
|
5856
6005
|
});
|
|
5857
6006
|
}
|
|
5858
6007
|
const percentage = totalQuestions > 0 ? Math.round(correctAnswers / totalQuestions * 100) : 0;
|
|
5859
|
-
return /* @__PURE__ */ (0,
|
|
6008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
5860
6009
|
"div",
|
|
5861
6010
|
{
|
|
5862
6011
|
className: "flex flex-row gap-6 p-6 rounded-xl bg-background justify-between",
|
|
5863
6012
|
ref,
|
|
5864
6013
|
...props,
|
|
5865
6014
|
children: [
|
|
5866
|
-
/* @__PURE__ */ (0,
|
|
5867
|
-
/* @__PURE__ */ (0,
|
|
6015
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "relative", children: [
|
|
6016
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5868
6017
|
ProgressCircle_default,
|
|
5869
6018
|
{
|
|
5870
6019
|
size: "medium",
|
|
@@ -5874,22 +6023,22 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
|
|
|
5874
6023
|
label: ""
|
|
5875
6024
|
}
|
|
5876
6025
|
),
|
|
5877
|
-
/* @__PURE__ */ (0,
|
|
5878
|
-
/* @__PURE__ */ (0,
|
|
5879
|
-
/* @__PURE__ */ (0,
|
|
5880
|
-
/* @__PURE__ */ (0,
|
|
6026
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
6027
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex items-center gap-1 mb-1", children: [
|
|
6028
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_phosphor_react9.Clock, { size: 12, weight: "regular", className: "text-text-800" }),
|
|
6029
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "text-2xs font-medium text-text-800", children: formatTime(timeElapsed) })
|
|
5881
6030
|
] }),
|
|
5882
|
-
/* @__PURE__ */ (0,
|
|
6031
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
|
|
5883
6032
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|
|
5884
6033
|
" de",
|
|
5885
6034
|
" ",
|
|
5886
6035
|
totalQuestions
|
|
5887
6036
|
] }),
|
|
5888
|
-
/* @__PURE__ */ (0,
|
|
6037
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "text-2xs font-medium text-text-600 mt-1", children: "Corretas" })
|
|
5889
6038
|
] })
|
|
5890
6039
|
] }),
|
|
5891
|
-
/* @__PURE__ */ (0,
|
|
5892
|
-
/* @__PURE__ */ (0,
|
|
6040
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col gap-4 w-full", children: [
|
|
6041
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5893
6042
|
ProgressBar_default,
|
|
5894
6043
|
{
|
|
5895
6044
|
className: "w-full",
|
|
@@ -5903,7 +6052,7 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
|
|
|
5903
6052
|
percentageClassName: "text-xs font-medium leading-[14px] text-right"
|
|
5904
6053
|
}
|
|
5905
6054
|
),
|
|
5906
|
-
/* @__PURE__ */ (0,
|
|
6055
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5907
6056
|
ProgressBar_default,
|
|
5908
6057
|
{
|
|
5909
6058
|
className: "w-full",
|
|
@@ -5917,7 +6066,7 @@ var QuizResultPerformance = (0, import_react12.forwardRef)(
|
|
|
5917
6066
|
percentageClassName: "text-xs font-medium leading-[14px] text-right"
|
|
5918
6067
|
}
|
|
5919
6068
|
),
|
|
5920
|
-
/* @__PURE__ */ (0,
|
|
6069
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5921
6070
|
ProgressBar_default,
|
|
5922
6071
|
{
|
|
5923
6072
|
className: "w-full",
|
|
@@ -5954,7 +6103,9 @@ var QuizListResult = (0, import_react12.forwardRef)(({ className, onSubjectClick
|
|
|
5954
6103
|
return {
|
|
5955
6104
|
subject: {
|
|
5956
6105
|
name: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria",
|
|
5957
|
-
id: subjectId
|
|
6106
|
+
id: subjectId,
|
|
6107
|
+
color: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.color ?? "",
|
|
6108
|
+
icon: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.icon ?? ""
|
|
5958
6109
|
},
|
|
5959
6110
|
correct,
|
|
5960
6111
|
incorrect,
|
|
@@ -5962,9 +6113,9 @@ var QuizListResult = (0, import_react12.forwardRef)(({ className, onSubjectClick
|
|
|
5962
6113
|
};
|
|
5963
6114
|
}
|
|
5964
6115
|
);
|
|
5965
|
-
return /* @__PURE__ */ (0,
|
|
5966
|
-
/* @__PURE__ */ (0,
|
|
5967
|
-
/* @__PURE__ */ (0,
|
|
6116
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { ref, className, ...props, children: [
|
|
6117
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Mat\xE9rias" }),
|
|
6118
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("ul", { className: "flex flex-col gap-2", children: subjectsStats.map((subject) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5968
6119
|
CardResults,
|
|
5969
6120
|
{
|
|
5970
6121
|
onClick: () => onSubjectClick?.(subject.subject.id),
|
|
@@ -5972,7 +6123,8 @@ var QuizListResult = (0, import_react12.forwardRef)(({ className, onSubjectClick
|
|
|
5972
6123
|
header: subject.subject.name,
|
|
5973
6124
|
correct_answers: subject.correct,
|
|
5974
6125
|
incorrect_answers: subject.incorrect,
|
|
5975
|
-
icon:
|
|
6126
|
+
icon: subject.subject.icon || "Book",
|
|
6127
|
+
color: subject.subject.color || void 0,
|
|
5976
6128
|
direction: "row"
|
|
5977
6129
|
}
|
|
5978
6130
|
) }, subject.subject.id)) })
|
|
@@ -5985,16 +6137,16 @@ var QuizListResultByMateria = ({
|
|
|
5985
6137
|
const { getQuestionsGroupedBySubject, getQuestionIndex } = useQuizStore();
|
|
5986
6138
|
const groupedQuestions = getQuestionsGroupedBySubject();
|
|
5987
6139
|
const answeredQuestions = groupedQuestions[subject] || [];
|
|
5988
|
-
return /* @__PURE__ */ (0,
|
|
5989
|
-
/* @__PURE__ */ (0,
|
|
5990
|
-
/* @__PURE__ */ (0,
|
|
5991
|
-
/* @__PURE__ */ (0,
|
|
5992
|
-
/* @__PURE__ */ (0,
|
|
6140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "flex flex-col", children: [
|
|
6141
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex flex-row pt-4 justify-between", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "text-text-950 font-bold text-2xl", children: answeredQuestions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" }) }),
|
|
6142
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("section", { className: "flex flex-col ", children: [
|
|
6143
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Resultado das quest\xF5es" }),
|
|
6144
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)("ul", { className: "flex flex-col gap-2 pt-4", children: answeredQuestions.map((question) => {
|
|
5993
6145
|
const questionIndex = getQuestionIndex(
|
|
5994
6146
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5995
6147
|
question.questionId ?? question.id
|
|
5996
6148
|
);
|
|
5997
|
-
return /* @__PURE__ */ (0,
|
|
6149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
5998
6150
|
CardStatus,
|
|
5999
6151
|
{
|
|
6000
6152
|
className: "max-w-full",
|