analytica-frontend-lib 1.2.38 → 1.2.44
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.d.ts +4 -0
- package/dist/Accordation/index.d.ts.map +1 -1
- package/dist/Accordation/index.js +5 -2
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +5 -2
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/ActivityCardQuestionBanks/index.css +24 -10
- package/dist/ActivityCardQuestionBanks/index.css.map +1 -1
- package/dist/ActivityCardQuestionBanks/index.d.ts.map +1 -1
- package/dist/ActivityCardQuestionBanks/index.js +8 -6
- package/dist/ActivityCardQuestionBanks/index.js.map +1 -1
- package/dist/ActivityCardQuestionBanks/index.mjs +8 -6
- package/dist/ActivityCardQuestionBanks/index.mjs.map +1 -1
- package/dist/ActivityCardQuestionPreview/index.css +19307 -0
- package/dist/ActivityCardQuestionPreview/index.css.map +1 -0
- package/dist/ActivityCardQuestionPreview/index.d.ts +29 -0
- package/dist/ActivityCardQuestionPreview/index.d.ts.map +1 -0
- package/dist/ActivityCardQuestionPreview/index.js +3684 -0
- package/dist/ActivityCardQuestionPreview/index.js.map +1 -0
- package/dist/ActivityCardQuestionPreview/index.mjs +3692 -0
- package/dist/ActivityCardQuestionPreview/index.mjs.map +1 -0
- package/dist/ActivityDetails/index.css +24 -10
- package/dist/ActivityDetails/index.css.map +1 -1
- package/dist/ActivityDetails/index.js +83 -31
- package/dist/ActivityDetails/index.js.map +1 -1
- package/dist/ActivityDetails/index.mjs +84 -31
- package/dist/ActivityDetails/index.mjs.map +1 -1
- package/dist/ActivityFilters/index.css +24 -10
- package/dist/ActivityFilters/index.css.map +1 -1
- package/dist/ActivityFilters/index.js +83 -31
- package/dist/ActivityFilters/index.js.map +1 -1
- package/dist/ActivityFilters/index.mjs +84 -31
- package/dist/ActivityFilters/index.mjs.map +1 -1
- package/dist/ActivityPreview/index.css +19307 -0
- package/dist/ActivityPreview/index.css.map +1 -0
- package/dist/ActivityPreview/index.d.ts +34 -0
- package/dist/ActivityPreview/index.d.ts.map +1 -0
- package/dist/ActivityPreview/index.js +4458 -0
- package/dist/ActivityPreview/index.js.map +1 -0
- package/dist/ActivityPreview/index.mjs +4468 -0
- package/dist/ActivityPreview/index.mjs.map +1 -0
- package/dist/AlertManager/index.css +24 -10
- package/dist/AlertManager/index.css.map +1 -1
- package/dist/AlertManager/index.js +500 -389
- package/dist/AlertManager/index.js.map +1 -1
- package/dist/AlertManager/index.mjs +466 -354
- package/dist/AlertManager/index.mjs.map +1 -1
- package/dist/CorrectActivityModal/index.js +5 -2
- package/dist/CorrectActivityModal/index.js.map +1 -1
- package/dist/CorrectActivityModal/index.mjs +5 -2
- package/dist/CorrectActivityModal/index.mjs.map +1 -1
- package/dist/DropdownMenu/index.d.ts +7 -8
- package/dist/DropdownMenu/index.d.ts.map +1 -1
- package/dist/DropdownMenu/index.js +78 -29
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs +79 -29
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js +78 -29
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +79 -29
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/Search/index.js +78 -29
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs +79 -29
- package/dist/Search/index.mjs.map +1 -1
- package/dist/SendActivityModal/index.css +19307 -0
- package/dist/SendActivityModal/index.css.map +1 -0
- package/dist/SendActivityModal/index.d.ts +5 -0
- package/dist/SendActivityModal/index.d.ts.map +1 -0
- package/dist/SendActivityModal/index.js +6471 -0
- package/dist/SendActivityModal/index.js.map +1 -0
- package/dist/SendActivityModal/index.mjs +6493 -0
- package/dist/SendActivityModal/index.mjs.map +1 -0
- package/dist/TableProvider/index.css +24 -10
- package/dist/TableProvider/index.css.map +1 -1
- package/dist/TableProvider/index.js +83 -31
- package/dist/TableProvider/index.js.map +1 -1
- package/dist/TableProvider/index.mjs +84 -31
- package/dist/TableProvider/index.mjs.map +1 -1
- package/dist/index.css +24 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +16 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3183 -1502
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2963 -1294
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +24 -10
- package/dist/styles.css.map +1 -1
- package/dist/types/activityDetails.d.ts +10 -0
- package/dist/types/activityDetails.d.ts.map +1 -1
- package/dist/types/questions.d.ts +100 -1
- package/dist/types/questions.d.ts.map +1 -1
- package/dist/utils/questionRenderer.d.ts +5 -0
- package/dist/utils/questionRenderer.d.ts.map +1 -0
- package/package.json +7 -1
|
@@ -1815,6 +1815,7 @@ var Input_default = Input;
|
|
|
1815
1815
|
// src/components/DropdownMenu/DropdownMenu.tsx
|
|
1816
1816
|
var import_phosphor_react8 = require("phosphor-react");
|
|
1817
1817
|
var import_react10 = require("react");
|
|
1818
|
+
var import_react_dom = require("react-dom");
|
|
1818
1819
|
var import_zustand3 = require("zustand");
|
|
1819
1820
|
|
|
1820
1821
|
// src/components/ThemeToggle/ThemeToggle.tsx
|
|
@@ -2079,7 +2080,7 @@ var DropdownMenu = ({
|
|
|
2079
2080
|
).filter((el) => el instanceof HTMLElement);
|
|
2080
2081
|
if (items.length === 0) return;
|
|
2081
2082
|
const focusedItem = document.activeElement;
|
|
2082
|
-
const currentIndex = items.
|
|
2083
|
+
const currentIndex = items.indexOf(focusedItem);
|
|
2083
2084
|
let nextIndex;
|
|
2084
2085
|
if (event.key === "ArrowDown") {
|
|
2085
2086
|
nextIndex = currentIndex === -1 ? 0 : (currentIndex + 1) % items.length;
|
|
@@ -2097,9 +2098,14 @@ var DropdownMenu = ({
|
|
|
2097
2098
|
}
|
|
2098
2099
|
};
|
|
2099
2100
|
const handleClickOutside = (event) => {
|
|
2100
|
-
|
|
2101
|
-
|
|
2101
|
+
const target = event.target;
|
|
2102
|
+
if (menuRef.current?.contains(target)) {
|
|
2103
|
+
return;
|
|
2104
|
+
}
|
|
2105
|
+
if (target instanceof Element && target.closest('[data-dropdown-content="true"]')) {
|
|
2106
|
+
return;
|
|
2102
2107
|
}
|
|
2108
|
+
setOpen(false);
|
|
2103
2109
|
};
|
|
2104
2110
|
(0, import_react10.useEffect)(() => {
|
|
2105
2111
|
if (open) {
|
|
@@ -2121,40 +2127,30 @@ var DropdownMenu = ({
|
|
|
2121
2127
|
}, [propOpen]);
|
|
2122
2128
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "relative", ref: menuRef, children: injectStore(children, store) });
|
|
2123
2129
|
};
|
|
2124
|
-
var DropdownMenuTrigger = ({
|
|
2125
|
-
className,
|
|
2126
|
-
children,
|
|
2127
|
-
onClick,
|
|
2128
|
-
store: externalStore,
|
|
2129
|
-
...props
|
|
2130
|
-
}) => {
|
|
2130
|
+
var DropdownMenuTrigger = (0, import_react10.forwardRef)(({ className, children, onClick, store: externalStore, ...props }, ref) => {
|
|
2131
2131
|
const store = useDropdownStore(externalStore);
|
|
2132
2132
|
const open = (0, import_zustand3.useStore)(store, (s) => s.open);
|
|
2133
2133
|
const toggleOpen = () => store.setState({ open: !open });
|
|
2134
2134
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2135
|
-
"
|
|
2135
|
+
"button",
|
|
2136
2136
|
{
|
|
2137
|
+
ref,
|
|
2138
|
+
type: "button",
|
|
2137
2139
|
onClick: (e) => {
|
|
2138
2140
|
e.stopPropagation();
|
|
2139
2141
|
toggleOpen();
|
|
2140
|
-
|
|
2141
|
-
},
|
|
2142
|
-
role: "button",
|
|
2143
|
-
onKeyDown: (e) => {
|
|
2144
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
2145
|
-
e.preventDefault();
|
|
2146
|
-
toggleOpen();
|
|
2147
|
-
if (onClick) onClick(e);
|
|
2148
|
-
}
|
|
2142
|
+
onClick?.(e);
|
|
2149
2143
|
},
|
|
2150
|
-
tabIndex: 0,
|
|
2151
2144
|
"aria-expanded": open,
|
|
2152
|
-
className: cn(
|
|
2145
|
+
className: cn(
|
|
2146
|
+
"appearance-none bg-transparent border-none p-0",
|
|
2147
|
+
className
|
|
2148
|
+
),
|
|
2153
2149
|
...props,
|
|
2154
2150
|
children
|
|
2155
2151
|
}
|
|
2156
2152
|
);
|
|
2157
|
-
};
|
|
2153
|
+
});
|
|
2158
2154
|
DropdownMenuTrigger.displayName = "DropdownMenuTrigger";
|
|
2159
2155
|
var ITEM_SIZE_CLASSES = {
|
|
2160
2156
|
small: "text-sm",
|
|
@@ -2195,11 +2191,15 @@ var DropdownMenuContent = (0, import_react10.forwardRef)(
|
|
|
2195
2191
|
sideOffset = 4,
|
|
2196
2192
|
children,
|
|
2197
2193
|
store: externalStore,
|
|
2194
|
+
portal = false,
|
|
2195
|
+
triggerRef,
|
|
2198
2196
|
...props
|
|
2199
2197
|
}, ref) => {
|
|
2200
2198
|
const store = useDropdownStore(externalStore);
|
|
2201
2199
|
const open = (0, import_zustand3.useStore)(store, (s) => s.open);
|
|
2202
2200
|
const [isVisible, setIsVisible] = (0, import_react10.useState)(open);
|
|
2201
|
+
const [portalPosition, setPortalPosition] = (0, import_react10.useState)({ top: 0, left: 0 });
|
|
2202
|
+
const contentRef = (0, import_react10.useRef)(null);
|
|
2203
2203
|
(0, import_react10.useEffect)(() => {
|
|
2204
2204
|
if (open) {
|
|
2205
2205
|
setIsVisible(true);
|
|
@@ -2208,18 +2208,61 @@ var DropdownMenuContent = (0, import_react10.forwardRef)(
|
|
|
2208
2208
|
return () => clearTimeout(timer);
|
|
2209
2209
|
}
|
|
2210
2210
|
}, [open]);
|
|
2211
|
+
(0, import_react10.useLayoutEffect)(() => {
|
|
2212
|
+
if (portal && open && triggerRef?.current) {
|
|
2213
|
+
const rect = triggerRef.current.getBoundingClientRect();
|
|
2214
|
+
let top = rect.bottom + sideOffset;
|
|
2215
|
+
let left = rect.left;
|
|
2216
|
+
if (side === "left") {
|
|
2217
|
+
left = rect.left - sideOffset;
|
|
2218
|
+
top = rect.top;
|
|
2219
|
+
} else if (side === "right") {
|
|
2220
|
+
left = rect.right + sideOffset;
|
|
2221
|
+
top = rect.top;
|
|
2222
|
+
} else {
|
|
2223
|
+
if (align === "end") {
|
|
2224
|
+
left = rect.right;
|
|
2225
|
+
} else if (align === "center") {
|
|
2226
|
+
left = rect.left + rect.width / 2;
|
|
2227
|
+
}
|
|
2228
|
+
if (side === "top") {
|
|
2229
|
+
top = rect.top - sideOffset;
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2232
|
+
setPortalPosition({ top, left });
|
|
2233
|
+
}
|
|
2234
|
+
}, [portal, open, triggerRef, align, side, sideOffset]);
|
|
2211
2235
|
if (!isVisible) return null;
|
|
2212
2236
|
const getPositionClasses = () => {
|
|
2237
|
+
if (portal) {
|
|
2238
|
+
return "fixed";
|
|
2239
|
+
}
|
|
2213
2240
|
const vertical = SIDE_CLASSES[side];
|
|
2214
2241
|
const horizontal = ALIGN_CLASSES[align];
|
|
2215
2242
|
return `absolute ${vertical} ${horizontal}`;
|
|
2216
2243
|
};
|
|
2244
|
+
const getPortalAlignStyle = () => {
|
|
2245
|
+
if (!portal) return {};
|
|
2246
|
+
const baseStyle = {
|
|
2247
|
+
top: portalPosition.top
|
|
2248
|
+
};
|
|
2249
|
+
if (align === "end") {
|
|
2250
|
+
baseStyle.right = window.innerWidth - portalPosition.left;
|
|
2251
|
+
} else if (align === "center") {
|
|
2252
|
+
baseStyle.left = portalPosition.left;
|
|
2253
|
+
baseStyle.transform = "translateX(-50%)";
|
|
2254
|
+
} else {
|
|
2255
|
+
baseStyle.left = portalPosition.left;
|
|
2256
|
+
}
|
|
2257
|
+
return baseStyle;
|
|
2258
|
+
};
|
|
2217
2259
|
const variantClasses = MENUCONTENT_VARIANT_CLASSES[variant];
|
|
2218
|
-
|
|
2260
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
2219
2261
|
"div",
|
|
2220
2262
|
{
|
|
2221
|
-
ref,
|
|
2263
|
+
ref: portal ? contentRef : ref,
|
|
2222
2264
|
role: "menu",
|
|
2265
|
+
"data-dropdown-content": "true",
|
|
2223
2266
|
className: `
|
|
2224
2267
|
bg-background z-50 min-w-[210px] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md border-border-100
|
|
2225
2268
|
${open ? "animate-in fade-in-0 zoom-in-95" : "animate-out fade-out-0 zoom-out-95"}
|
|
@@ -2228,15 +2271,21 @@ var DropdownMenuContent = (0, import_react10.forwardRef)(
|
|
|
2228
2271
|
${className}
|
|
2229
2272
|
`,
|
|
2230
2273
|
style: {
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2274
|
+
...portal ? getPortalAlignStyle() : {
|
|
2275
|
+
marginTop: side === "bottom" ? sideOffset : void 0,
|
|
2276
|
+
marginBottom: side === "top" ? sideOffset : void 0,
|
|
2277
|
+
marginLeft: side === "right" ? sideOffset : void 0,
|
|
2278
|
+
marginRight: side === "left" ? sideOffset : void 0
|
|
2279
|
+
}
|
|
2235
2280
|
},
|
|
2236
2281
|
...props,
|
|
2237
2282
|
children
|
|
2238
2283
|
}
|
|
2239
2284
|
);
|
|
2285
|
+
if (portal && typeof document !== "undefined") {
|
|
2286
|
+
return (0, import_react_dom.createPortal)(content, document.body);
|
|
2287
|
+
}
|
|
2288
|
+
return content;
|
|
2240
2289
|
}
|
|
2241
2290
|
);
|
|
2242
2291
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
@@ -3808,20 +3857,149 @@ var Calendar = ({
|
|
|
3808
3857
|
};
|
|
3809
3858
|
var Calendar_default = Calendar;
|
|
3810
3859
|
|
|
3860
|
+
// src/components/DateTimeInput/DateTimeInput.tsx
|
|
3861
|
+
var import_react12 = require("react");
|
|
3862
|
+
var import_phosphor_react10 = require("phosphor-react");
|
|
3863
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
3864
|
+
var formatDateToInput = (dateObj) => {
|
|
3865
|
+
const year = dateObj.getFullYear();
|
|
3866
|
+
const month = String(dateObj.getMonth() + 1).padStart(2, "0");
|
|
3867
|
+
const day = String(dateObj.getDate()).padStart(2, "0");
|
|
3868
|
+
return `${year}-${month}-${day}`;
|
|
3869
|
+
};
|
|
3870
|
+
var DateTimeInput = ({
|
|
3871
|
+
label,
|
|
3872
|
+
date,
|
|
3873
|
+
time,
|
|
3874
|
+
onDateChange,
|
|
3875
|
+
onTimeChange,
|
|
3876
|
+
errorMessage,
|
|
3877
|
+
disabled = false,
|
|
3878
|
+
defaultTime = "00:00",
|
|
3879
|
+
testId,
|
|
3880
|
+
timeLabel = "Hora",
|
|
3881
|
+
className
|
|
3882
|
+
}) => {
|
|
3883
|
+
const [isCalendarOpen, setIsCalendarOpen] = (0, import_react12.useState)(false);
|
|
3884
|
+
const [selectedDate, setSelectedDate] = (0, import_react12.useState)(
|
|
3885
|
+
date ? /* @__PURE__ */ new Date(`${date}T12:00:00`) : void 0
|
|
3886
|
+
);
|
|
3887
|
+
const triggerRef = (0, import_react12.useRef)(null);
|
|
3888
|
+
const handleDateSelect = (dateObj) => {
|
|
3889
|
+
setSelectedDate(dateObj);
|
|
3890
|
+
onDateChange(formatDateToInput(dateObj));
|
|
3891
|
+
if (!time) {
|
|
3892
|
+
onTimeChange(defaultTime);
|
|
3893
|
+
}
|
|
3894
|
+
};
|
|
3895
|
+
const handleDateInputChange = (e) => {
|
|
3896
|
+
const value = e.target.value;
|
|
3897
|
+
if (value.includes("T")) {
|
|
3898
|
+
const [datePart, timePart] = value.split("T");
|
|
3899
|
+
onDateChange(datePart);
|
|
3900
|
+
if (timePart) {
|
|
3901
|
+
onTimeChange(timePart);
|
|
3902
|
+
}
|
|
3903
|
+
} else {
|
|
3904
|
+
onDateChange(value);
|
|
3905
|
+
}
|
|
3906
|
+
if (value) {
|
|
3907
|
+
const dateValue = value.includes("T") ? value : `${value}T12:00:00`;
|
|
3908
|
+
const dateObj = new Date(dateValue);
|
|
3909
|
+
if (!Number.isNaN(dateObj.getTime())) {
|
|
3910
|
+
setSelectedDate(dateObj);
|
|
3911
|
+
}
|
|
3912
|
+
}
|
|
3913
|
+
};
|
|
3914
|
+
const handleTimeChange = (e) => {
|
|
3915
|
+
onTimeChange(e.target.value);
|
|
3916
|
+
};
|
|
3917
|
+
const inputValue = date ? `${date}T${time || defaultTime}` : "";
|
|
3918
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3919
|
+
DropdownMenu_default,
|
|
3920
|
+
{
|
|
3921
|
+
open: !disabled && isCalendarOpen,
|
|
3922
|
+
onOpenChange: (open) => {
|
|
3923
|
+
if (!disabled) {
|
|
3924
|
+
setIsCalendarOpen(open);
|
|
3925
|
+
}
|
|
3926
|
+
},
|
|
3927
|
+
children: [
|
|
3928
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3929
|
+
DropdownMenuTrigger,
|
|
3930
|
+
{
|
|
3931
|
+
className,
|
|
3932
|
+
ref: triggerRef,
|
|
3933
|
+
disabled,
|
|
3934
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3935
|
+
Input_default,
|
|
3936
|
+
{
|
|
3937
|
+
label,
|
|
3938
|
+
type: "datetime-local",
|
|
3939
|
+
placeholder: "00/00/0000",
|
|
3940
|
+
value: inputValue,
|
|
3941
|
+
onChange: handleDateInputChange,
|
|
3942
|
+
variant: "rounded",
|
|
3943
|
+
errorMessage,
|
|
3944
|
+
disabled,
|
|
3945
|
+
"data-testid": testId ? `${testId}-input` : void 0,
|
|
3946
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_phosphor_react10.CalendarBlank, { size: 14 }),
|
|
3947
|
+
className: "[&::-webkit-calendar-picker-indicator]:hidden"
|
|
3948
|
+
}
|
|
3949
|
+
)
|
|
3950
|
+
}
|
|
3951
|
+
),
|
|
3952
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
3953
|
+
DropdownMenuContent,
|
|
3954
|
+
{
|
|
3955
|
+
align: "start",
|
|
3956
|
+
className: "p-0 z-[100]",
|
|
3957
|
+
portal: true,
|
|
3958
|
+
triggerRef,
|
|
3959
|
+
children: [
|
|
3960
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3961
|
+
Calendar_default,
|
|
3962
|
+
{
|
|
3963
|
+
variant: "selection",
|
|
3964
|
+
selectedDate,
|
|
3965
|
+
onDateSelect: handleDateSelect,
|
|
3966
|
+
showActivities: false
|
|
3967
|
+
}
|
|
3968
|
+
),
|
|
3969
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { className: "p-3 border-t border-border-200", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
3970
|
+
Input_default,
|
|
3971
|
+
{
|
|
3972
|
+
label: timeLabel,
|
|
3973
|
+
type: "time",
|
|
3974
|
+
value: time || defaultTime,
|
|
3975
|
+
onChange: handleTimeChange,
|
|
3976
|
+
variant: "rounded",
|
|
3977
|
+
"data-testid": testId ? `${testId}-time` : void 0
|
|
3978
|
+
}
|
|
3979
|
+
) })
|
|
3980
|
+
]
|
|
3981
|
+
}
|
|
3982
|
+
)
|
|
3983
|
+
]
|
|
3984
|
+
}
|
|
3985
|
+
);
|
|
3986
|
+
};
|
|
3987
|
+
var DateTimeInput_default = DateTimeInput;
|
|
3988
|
+
|
|
3811
3989
|
// src/components/Accordation/Accordation.tsx
|
|
3812
|
-
var
|
|
3990
|
+
var import_react15 = require("react");
|
|
3813
3991
|
|
|
3814
3992
|
// src/components/Card/Card.tsx
|
|
3815
|
-
var
|
|
3816
|
-
var
|
|
3993
|
+
var import_react14 = require("react");
|
|
3994
|
+
var import_phosphor_react11 = require("phosphor-react");
|
|
3817
3995
|
|
|
3818
3996
|
// src/components/IconRender/IconRender.tsx
|
|
3819
|
-
var
|
|
3997
|
+
var import_react13 = require("react");
|
|
3820
3998
|
var PhosphorIcons = __toESM(require("phosphor-react"));
|
|
3821
3999
|
|
|
3822
4000
|
// src/assets/icons/subjects/ChatPT.tsx
|
|
3823
|
-
var
|
|
3824
|
-
var ChatPT = ({ size, color }) => /* @__PURE__ */ (0,
|
|
4001
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
4002
|
+
var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
3825
4003
|
"svg",
|
|
3826
4004
|
{
|
|
3827
4005
|
width: size,
|
|
@@ -3830,21 +4008,21 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)
|
|
|
3830
4008
|
fill: "none",
|
|
3831
4009
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3832
4010
|
children: [
|
|
3833
|
-
/* @__PURE__ */ (0,
|
|
4011
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3834
4012
|
"path",
|
|
3835
4013
|
{
|
|
3836
4014
|
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",
|
|
3837
4015
|
fill: color
|
|
3838
4016
|
}
|
|
3839
4017
|
),
|
|
3840
|
-
/* @__PURE__ */ (0,
|
|
4018
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3841
4019
|
"path",
|
|
3842
4020
|
{
|
|
3843
4021
|
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
3844
4022
|
fill: color
|
|
3845
4023
|
}
|
|
3846
4024
|
),
|
|
3847
|
-
/* @__PURE__ */ (0,
|
|
4025
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
3848
4026
|
"path",
|
|
3849
4027
|
{
|
|
3850
4028
|
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",
|
|
@@ -3856,8 +4034,8 @@ var ChatPT = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)
|
|
|
3856
4034
|
);
|
|
3857
4035
|
|
|
3858
4036
|
// src/assets/icons/subjects/ChatEN.tsx
|
|
3859
|
-
var
|
|
3860
|
-
var ChatEN = ({ size, color }) => /* @__PURE__ */ (0,
|
|
4037
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
4038
|
+
var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
|
|
3861
4039
|
"svg",
|
|
3862
4040
|
{
|
|
3863
4041
|
width: size,
|
|
@@ -3866,21 +4044,21 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)
|
|
|
3866
4044
|
fill: "none",
|
|
3867
4045
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3868
4046
|
children: [
|
|
3869
|
-
/* @__PURE__ */ (0,
|
|
4047
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3870
4048
|
"path",
|
|
3871
4049
|
{
|
|
3872
4050
|
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",
|
|
3873
4051
|
fill: color
|
|
3874
4052
|
}
|
|
3875
4053
|
),
|
|
3876
|
-
/* @__PURE__ */ (0,
|
|
4054
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3877
4055
|
"path",
|
|
3878
4056
|
{
|
|
3879
4057
|
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
3880
4058
|
fill: color
|
|
3881
4059
|
}
|
|
3882
4060
|
),
|
|
3883
|
-
/* @__PURE__ */ (0,
|
|
4061
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
3884
4062
|
"path",
|
|
3885
4063
|
{
|
|
3886
4064
|
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",
|
|
@@ -3892,8 +4070,8 @@ var ChatEN = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)
|
|
|
3892
4070
|
);
|
|
3893
4071
|
|
|
3894
4072
|
// src/assets/icons/subjects/ChatES.tsx
|
|
3895
|
-
var
|
|
3896
|
-
var ChatES = ({ size, color }) => /* @__PURE__ */ (0,
|
|
4073
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
4074
|
+
var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
3897
4075
|
"svg",
|
|
3898
4076
|
{
|
|
3899
4077
|
width: size,
|
|
@@ -3902,21 +4080,21 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)
|
|
|
3902
4080
|
fill: "none",
|
|
3903
4081
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3904
4082
|
children: [
|
|
3905
|
-
/* @__PURE__ */ (0,
|
|
4083
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3906
4084
|
"path",
|
|
3907
4085
|
{
|
|
3908
4086
|
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",
|
|
3909
4087
|
fill: color
|
|
3910
4088
|
}
|
|
3911
4089
|
),
|
|
3912
|
-
/* @__PURE__ */ (0,
|
|
4090
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3913
4091
|
"path",
|
|
3914
4092
|
{
|
|
3915
4093
|
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",
|
|
3916
4094
|
fill: color
|
|
3917
4095
|
}
|
|
3918
4096
|
),
|
|
3919
|
-
/* @__PURE__ */ (0,
|
|
4097
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
3920
4098
|
"path",
|
|
3921
4099
|
{
|
|
3922
4100
|
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",
|
|
@@ -3928,7 +4106,7 @@ var ChatES = ({ size, color }) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)
|
|
|
3928
4106
|
);
|
|
3929
4107
|
|
|
3930
4108
|
// src/components/IconRender/IconRender.tsx
|
|
3931
|
-
var
|
|
4109
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
3932
4110
|
var IconRender = ({
|
|
3933
4111
|
iconName,
|
|
3934
4112
|
color = "#000000",
|
|
@@ -3938,18 +4116,18 @@ var IconRender = ({
|
|
|
3938
4116
|
if (typeof iconName === "string") {
|
|
3939
4117
|
switch (iconName) {
|
|
3940
4118
|
case "Chat_PT":
|
|
3941
|
-
return /* @__PURE__ */ (0,
|
|
4119
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChatPT, { size, color });
|
|
3942
4120
|
case "Chat_EN":
|
|
3943
|
-
return /* @__PURE__ */ (0,
|
|
4121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChatEN, { size, color });
|
|
3944
4122
|
case "Chat_ES":
|
|
3945
|
-
return /* @__PURE__ */ (0,
|
|
4123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ChatES, { size, color });
|
|
3946
4124
|
default: {
|
|
3947
4125
|
const IconComponent = PhosphorIcons[iconName] || PhosphorIcons.Question;
|
|
3948
|
-
return /* @__PURE__ */ (0,
|
|
4126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(IconComponent, { size, color, weight });
|
|
3949
4127
|
}
|
|
3950
4128
|
}
|
|
3951
4129
|
} else {
|
|
3952
|
-
return (0,
|
|
4130
|
+
return (0, import_react13.cloneElement)(iconName, {
|
|
3953
4131
|
size,
|
|
3954
4132
|
color: "currentColor"
|
|
3955
4133
|
});
|
|
@@ -3958,7 +4136,7 @@ var IconRender = ({
|
|
|
3958
4136
|
var IconRender_default = IconRender;
|
|
3959
4137
|
|
|
3960
4138
|
// src/components/Card/Card.tsx
|
|
3961
|
-
var
|
|
4139
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
3962
4140
|
var CARD_BASE_CLASSES = {
|
|
3963
4141
|
default: "w-full bg-background border border-border-50 rounded-xl",
|
|
3964
4142
|
compact: "w-full bg-background border border-border-50 rounded-lg",
|
|
@@ -3984,7 +4162,7 @@ var CARD_CURSOR_CLASSES = {
|
|
|
3984
4162
|
default: "",
|
|
3985
4163
|
pointer: "cursor-pointer"
|
|
3986
4164
|
};
|
|
3987
|
-
var CardBase = (0,
|
|
4165
|
+
var CardBase = (0, import_react14.forwardRef)(
|
|
3988
4166
|
({
|
|
3989
4167
|
children,
|
|
3990
4168
|
variant = "default",
|
|
@@ -4000,7 +4178,7 @@ var CardBase = (0, import_react13.forwardRef)(
|
|
|
4000
4178
|
const minHeightClasses = CARD_MIN_HEIGHT_CLASSES[minHeight];
|
|
4001
4179
|
const layoutClasses = CARD_LAYOUT_CLASSES[layout];
|
|
4002
4180
|
const cursorClasses = CARD_CURSOR_CLASSES[cursor];
|
|
4003
|
-
return /* @__PURE__ */ (0,
|
|
4181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4004
4182
|
"div",
|
|
4005
4183
|
{
|
|
4006
4184
|
ref,
|
|
@@ -4042,7 +4220,7 @@ var ACTION_HEADER_CLASSES = {
|
|
|
4042
4220
|
error: "text-error-300",
|
|
4043
4221
|
info: "text-info-300"
|
|
4044
4222
|
};
|
|
4045
|
-
var CardActivitiesResults = (0,
|
|
4223
|
+
var CardActivitiesResults = (0, import_react14.forwardRef)(
|
|
4046
4224
|
({
|
|
4047
4225
|
icon,
|
|
4048
4226
|
title,
|
|
@@ -4058,7 +4236,7 @@ var CardActivitiesResults = (0, import_react13.forwardRef)(
|
|
|
4058
4236
|
const actionIconClasses = ACTION_ICON_CLASSES[action];
|
|
4059
4237
|
const actionSubTitleClasses = ACTION_SUBTITLE_CLASSES[action];
|
|
4060
4238
|
const actionHeaderClasses = ACTION_HEADER_CLASSES[action];
|
|
4061
|
-
return /* @__PURE__ */ (0,
|
|
4239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4062
4240
|
"div",
|
|
4063
4241
|
{
|
|
4064
4242
|
ref,
|
|
@@ -4068,7 +4246,7 @@ var CardActivitiesResults = (0, import_react13.forwardRef)(
|
|
|
4068
4246
|
),
|
|
4069
4247
|
...props,
|
|
4070
4248
|
children: [
|
|
4071
|
-
/* @__PURE__ */ (0,
|
|
4249
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4072
4250
|
"div",
|
|
4073
4251
|
{
|
|
4074
4252
|
className: cn(
|
|
@@ -4077,7 +4255,7 @@ var CardActivitiesResults = (0, import_react13.forwardRef)(
|
|
|
4077
4255
|
extended ? "rounded-t-xl" : "rounded-xl"
|
|
4078
4256
|
),
|
|
4079
4257
|
children: [
|
|
4080
|
-
/* @__PURE__ */ (0,
|
|
4258
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4081
4259
|
"span",
|
|
4082
4260
|
{
|
|
4083
4261
|
className: cn(
|
|
@@ -4087,7 +4265,7 @@ var CardActivitiesResults = (0, import_react13.forwardRef)(
|
|
|
4087
4265
|
children: icon
|
|
4088
4266
|
}
|
|
4089
4267
|
),
|
|
4090
|
-
/* @__PURE__ */ (0,
|
|
4268
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4091
4269
|
Text_default,
|
|
4092
4270
|
{
|
|
4093
4271
|
size: "2xs",
|
|
@@ -4096,7 +4274,7 @@ var CardActivitiesResults = (0, import_react13.forwardRef)(
|
|
|
4096
4274
|
children: title
|
|
4097
4275
|
}
|
|
4098
4276
|
),
|
|
4099
|
-
/* @__PURE__ */ (0,
|
|
4277
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4100
4278
|
"p",
|
|
4101
4279
|
{
|
|
4102
4280
|
className: cn("text-lg font-bold truncate", actionSubTitleClasses),
|
|
@@ -4106,8 +4284,8 @@ var CardActivitiesResults = (0, import_react13.forwardRef)(
|
|
|
4106
4284
|
]
|
|
4107
4285
|
}
|
|
4108
4286
|
),
|
|
4109
|
-
extended && /* @__PURE__ */ (0,
|
|
4110
|
-
/* @__PURE__ */ (0,
|
|
4287
|
+
extended && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col items-center gap-2.5 pb-9.5 pt-2.5", children: [
|
|
4288
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4111
4289
|
"p",
|
|
4112
4290
|
{
|
|
4113
4291
|
className: cn(
|
|
@@ -4117,14 +4295,14 @@ var CardActivitiesResults = (0, import_react13.forwardRef)(
|
|
|
4117
4295
|
children: header
|
|
4118
4296
|
}
|
|
4119
4297
|
),
|
|
4120
|
-
/* @__PURE__ */ (0,
|
|
4298
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Badge_default, { size: "large", action: "info", children: description })
|
|
4121
4299
|
] })
|
|
4122
4300
|
]
|
|
4123
4301
|
}
|
|
4124
4302
|
);
|
|
4125
4303
|
}
|
|
4126
4304
|
);
|
|
4127
|
-
var CardQuestions = (0,
|
|
4305
|
+
var CardQuestions = (0, import_react14.forwardRef)(
|
|
4128
4306
|
({
|
|
4129
4307
|
header,
|
|
4130
4308
|
state = "undone",
|
|
@@ -4136,7 +4314,7 @@ var CardQuestions = (0, import_react13.forwardRef)(
|
|
|
4136
4314
|
const isDone = state === "done";
|
|
4137
4315
|
const stateLabel = isDone ? "Realizado" : "N\xE3o Realizado";
|
|
4138
4316
|
const buttonLabel = isDone ? "Ver Resultado" : "Responder";
|
|
4139
|
-
return /* @__PURE__ */ (0,
|
|
4317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4140
4318
|
CardBase,
|
|
4141
4319
|
{
|
|
4142
4320
|
ref,
|
|
@@ -4146,9 +4324,9 @@ var CardQuestions = (0, import_react13.forwardRef)(
|
|
|
4146
4324
|
className: cn("justify-between gap-4", className),
|
|
4147
4325
|
...props,
|
|
4148
4326
|
children: [
|
|
4149
|
-
/* @__PURE__ */ (0,
|
|
4150
|
-
/* @__PURE__ */ (0,
|
|
4151
|
-
/* @__PURE__ */ (0,
|
|
4327
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("section", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
4328
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "font-bold text-xs text-text-950 truncate", children: header }),
|
|
4329
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex flex-row gap-6 items-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4152
4330
|
Badge_default,
|
|
4153
4331
|
{
|
|
4154
4332
|
size: "medium",
|
|
@@ -4158,7 +4336,7 @@ var CardQuestions = (0, import_react13.forwardRef)(
|
|
|
4158
4336
|
}
|
|
4159
4337
|
) })
|
|
4160
4338
|
] }),
|
|
4161
|
-
/* @__PURE__ */ (0,
|
|
4339
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "flex-shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4162
4340
|
Button_default,
|
|
4163
4341
|
{
|
|
4164
4342
|
size: "extra-small",
|
|
@@ -4172,7 +4350,7 @@ var CardQuestions = (0, import_react13.forwardRef)(
|
|
|
4172
4350
|
);
|
|
4173
4351
|
}
|
|
4174
4352
|
);
|
|
4175
|
-
var CardProgress = (0,
|
|
4353
|
+
var CardProgress = (0, import_react14.forwardRef)(
|
|
4176
4354
|
({
|
|
4177
4355
|
header,
|
|
4178
4356
|
subhead,
|
|
@@ -4189,19 +4367,19 @@ var CardProgress = (0, import_react13.forwardRef)(
|
|
|
4189
4367
|
}, ref) => {
|
|
4190
4368
|
const isHorizontal = direction === "horizontal";
|
|
4191
4369
|
const contentComponent = {
|
|
4192
|
-
horizontal: /* @__PURE__ */ (0,
|
|
4193
|
-
showDates && /* @__PURE__ */ (0,
|
|
4194
|
-
initialDate && /* @__PURE__ */ (0,
|
|
4195
|
-
/* @__PURE__ */ (0,
|
|
4196
|
-
/* @__PURE__ */ (0,
|
|
4370
|
+
horizontal: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
|
|
4371
|
+
showDates && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row gap-6 items-center", children: [
|
|
4372
|
+
initialDate && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
4373
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-800 font-semibold", children: "In\xEDcio" }),
|
|
4374
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-600", children: initialDate })
|
|
4197
4375
|
] }),
|
|
4198
|
-
endDate && /* @__PURE__ */ (0,
|
|
4199
|
-
/* @__PURE__ */ (0,
|
|
4200
|
-
/* @__PURE__ */ (0,
|
|
4376
|
+
endDate && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "flex flex-row gap-1 items-center text-2xs", children: [
|
|
4377
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-800 font-semibold", children: "Fim" }),
|
|
4378
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-600", children: endDate })
|
|
4201
4379
|
] })
|
|
4202
4380
|
] }),
|
|
4203
|
-
/* @__PURE__ */ (0,
|
|
4204
|
-
/* @__PURE__ */ (0,
|
|
4381
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
4382
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4205
4383
|
ProgressBar_default,
|
|
4206
4384
|
{
|
|
4207
4385
|
size: "small",
|
|
@@ -4210,7 +4388,7 @@ var CardProgress = (0, import_react13.forwardRef)(
|
|
|
4210
4388
|
"data-testid": "progress-bar"
|
|
4211
4389
|
}
|
|
4212
4390
|
),
|
|
4213
|
-
/* @__PURE__ */ (0,
|
|
4391
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4214
4392
|
Text_default,
|
|
4215
4393
|
{
|
|
4216
4394
|
size: "xs",
|
|
@@ -4226,9 +4404,9 @@ var CardProgress = (0, import_react13.forwardRef)(
|
|
|
4226
4404
|
)
|
|
4227
4405
|
] })
|
|
4228
4406
|
] }),
|
|
4229
|
-
vertical: /* @__PURE__ */ (0,
|
|
4407
|
+
vertical: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-sm text-text-800", children: subhead })
|
|
4230
4408
|
};
|
|
4231
|
-
return /* @__PURE__ */ (0,
|
|
4409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4232
4410
|
CardBase,
|
|
4233
4411
|
{
|
|
4234
4412
|
ref,
|
|
@@ -4239,7 +4417,7 @@ var CardProgress = (0, import_react13.forwardRef)(
|
|
|
4239
4417
|
className: cn(isHorizontal ? "h-20" : "", className),
|
|
4240
4418
|
...props,
|
|
4241
4419
|
children: [
|
|
4242
|
-
/* @__PURE__ */ (0,
|
|
4420
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4243
4421
|
"div",
|
|
4244
4422
|
{
|
|
4245
4423
|
className: cn(
|
|
@@ -4252,7 +4430,7 @@ var CardProgress = (0, import_react13.forwardRef)(
|
|
|
4252
4430
|
children: icon
|
|
4253
4431
|
}
|
|
4254
4432
|
),
|
|
4255
|
-
/* @__PURE__ */ (0,
|
|
4433
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4256
4434
|
"div",
|
|
4257
4435
|
{
|
|
4258
4436
|
className: cn(
|
|
@@ -4260,7 +4438,7 @@ var CardProgress = (0, import_react13.forwardRef)(
|
|
|
4260
4438
|
!isHorizontal && "gap-4"
|
|
4261
4439
|
),
|
|
4262
4440
|
children: [
|
|
4263
|
-
/* @__PURE__ */ (0,
|
|
4441
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { size: "sm", weight: "bold", className: "text-text-950 truncate", children: header }),
|
|
4264
4442
|
contentComponent[direction]
|
|
4265
4443
|
]
|
|
4266
4444
|
}
|
|
@@ -4270,7 +4448,7 @@ var CardProgress = (0, import_react13.forwardRef)(
|
|
|
4270
4448
|
);
|
|
4271
4449
|
}
|
|
4272
4450
|
);
|
|
4273
|
-
var CardTopic = (0,
|
|
4451
|
+
var CardTopic = (0, import_react14.forwardRef)(
|
|
4274
4452
|
({
|
|
4275
4453
|
header,
|
|
4276
4454
|
subHead,
|
|
@@ -4280,7 +4458,7 @@ var CardTopic = (0, import_react13.forwardRef)(
|
|
|
4280
4458
|
className = "",
|
|
4281
4459
|
...props
|
|
4282
4460
|
}, ref) => {
|
|
4283
|
-
return /* @__PURE__ */ (0,
|
|
4461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4284
4462
|
CardBase,
|
|
4285
4463
|
{
|
|
4286
4464
|
ref,
|
|
@@ -4291,13 +4469,13 @@ var CardTopic = (0, import_react13.forwardRef)(
|
|
|
4291
4469
|
className: cn("justify-center gap-2 py-2 px-4", className),
|
|
4292
4470
|
...props,
|
|
4293
4471
|
children: [
|
|
4294
|
-
subHead && /* @__PURE__ */ (0,
|
|
4295
|
-
/* @__PURE__ */ (0,
|
|
4296
|
-
index < subHead.length - 1 && /* @__PURE__ */ (0,
|
|
4472
|
+
subHead && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "text-text-600 text-2xs flex flex-row gap-1", children: subHead.map((text, index) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_react14.Fragment, { children: [
|
|
4473
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { children: text }),
|
|
4474
|
+
index < subHead.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { children: "\u2022" })
|
|
4297
4475
|
] }, `${text} - ${index}`)) }),
|
|
4298
|
-
/* @__PURE__ */ (0,
|
|
4299
|
-
/* @__PURE__ */ (0,
|
|
4300
|
-
/* @__PURE__ */ (0,
|
|
4476
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }),
|
|
4477
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "grid grid-cols-[1fr_auto] items-center gap-2", children: [
|
|
4478
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4301
4479
|
ProgressBar_default,
|
|
4302
4480
|
{
|
|
4303
4481
|
size: "small",
|
|
@@ -4306,7 +4484,7 @@ var CardTopic = (0, import_react13.forwardRef)(
|
|
|
4306
4484
|
"data-testid": "progress-bar"
|
|
4307
4485
|
}
|
|
4308
4486
|
),
|
|
4309
|
-
showPercentage && /* @__PURE__ */ (0,
|
|
4487
|
+
showPercentage && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4310
4488
|
Text_default,
|
|
4311
4489
|
{
|
|
4312
4490
|
size: "xs",
|
|
@@ -4326,7 +4504,7 @@ var CardTopic = (0, import_react13.forwardRef)(
|
|
|
4326
4504
|
);
|
|
4327
4505
|
}
|
|
4328
4506
|
);
|
|
4329
|
-
var CardPerformance = (0,
|
|
4507
|
+
var CardPerformance = (0, import_react14.forwardRef)(
|
|
4330
4508
|
({
|
|
4331
4509
|
header,
|
|
4332
4510
|
progress,
|
|
@@ -4340,7 +4518,7 @@ var CardPerformance = (0, import_react13.forwardRef)(
|
|
|
4340
4518
|
...props
|
|
4341
4519
|
}, ref) => {
|
|
4342
4520
|
const hasProgress = progress !== void 0;
|
|
4343
|
-
return /* @__PURE__ */ (0,
|
|
4521
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4344
4522
|
CardBase,
|
|
4345
4523
|
{
|
|
4346
4524
|
ref,
|
|
@@ -4354,10 +4532,10 @@ var CardPerformance = (0, import_react13.forwardRef)(
|
|
|
4354
4532
|
onClick: () => actionVariant == "caret" && onClickButton?.(valueButton),
|
|
4355
4533
|
...props,
|
|
4356
4534
|
children: [
|
|
4357
|
-
/* @__PURE__ */ (0,
|
|
4358
|
-
/* @__PURE__ */ (0,
|
|
4359
|
-
/* @__PURE__ */ (0,
|
|
4360
|
-
actionVariant === "button" && /* @__PURE__ */ (0,
|
|
4535
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "w-full flex flex-col justify-between gap-2", children: [
|
|
4536
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row justify-between items-center gap-2", children: [
|
|
4537
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-lg font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4538
|
+
actionVariant === "button" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4361
4539
|
Button_default,
|
|
4362
4540
|
{
|
|
4363
4541
|
variant: "outline",
|
|
@@ -4368,17 +4546,17 @@ var CardPerformance = (0, import_react13.forwardRef)(
|
|
|
4368
4546
|
}
|
|
4369
4547
|
)
|
|
4370
4548
|
] }),
|
|
4371
|
-
/* @__PURE__ */ (0,
|
|
4549
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-full", children: hasProgress ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4372
4550
|
ProgressBar_default,
|
|
4373
4551
|
{
|
|
4374
4552
|
value: progress,
|
|
4375
4553
|
label: `${progress}% ${labelProgress}`,
|
|
4376
4554
|
variant: progressVariant
|
|
4377
4555
|
}
|
|
4378
|
-
) : /* @__PURE__ */ (0,
|
|
4556
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-xs text-text-600 truncate", children: description }) })
|
|
4379
4557
|
] }),
|
|
4380
|
-
actionVariant == "caret" && /* @__PURE__ */ (0,
|
|
4381
|
-
|
|
4558
|
+
actionVariant == "caret" && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4559
|
+
import_phosphor_react11.CaretRight,
|
|
4382
4560
|
{
|
|
4383
4561
|
className: "size-4.5 text-text-800 cursor-pointer",
|
|
4384
4562
|
"data-testid": "caret-icon"
|
|
@@ -4389,7 +4567,7 @@ var CardPerformance = (0, import_react13.forwardRef)(
|
|
|
4389
4567
|
);
|
|
4390
4568
|
}
|
|
4391
4569
|
);
|
|
4392
|
-
var CardResults = (0,
|
|
4570
|
+
var CardResults = (0, import_react14.forwardRef)(
|
|
4393
4571
|
({
|
|
4394
4572
|
header,
|
|
4395
4573
|
correct_answers,
|
|
@@ -4401,7 +4579,7 @@ var CardResults = (0, import_react13.forwardRef)(
|
|
|
4401
4579
|
...props
|
|
4402
4580
|
}, ref) => {
|
|
4403
4581
|
const isRow = direction == "row";
|
|
4404
|
-
return /* @__PURE__ */ (0,
|
|
4582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4405
4583
|
CardBase,
|
|
4406
4584
|
{
|
|
4407
4585
|
ref,
|
|
@@ -4411,7 +4589,7 @@ var CardResults = (0, import_react13.forwardRef)(
|
|
|
4411
4589
|
className: cn("items-stretch cursor-pointer pr-4", className),
|
|
4412
4590
|
...props,
|
|
4413
4591
|
children: [
|
|
4414
|
-
/* @__PURE__ */ (0,
|
|
4592
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4415
4593
|
"div",
|
|
4416
4594
|
{
|
|
4417
4595
|
className: cn(
|
|
@@ -4420,11 +4598,11 @@ var CardResults = (0, import_react13.forwardRef)(
|
|
|
4420
4598
|
style: {
|
|
4421
4599
|
backgroundColor: color
|
|
4422
4600
|
},
|
|
4423
|
-
children: /* @__PURE__ */ (0,
|
|
4601
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(IconRender_default, { iconName: icon, color: "currentColor", size: 20 })
|
|
4424
4602
|
}
|
|
4425
4603
|
),
|
|
4426
|
-
/* @__PURE__ */ (0,
|
|
4427
|
-
/* @__PURE__ */ (0,
|
|
4604
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "w-full flex flex-row justify-between items-center", children: [
|
|
4605
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4428
4606
|
"div",
|
|
4429
4607
|
{
|
|
4430
4608
|
className: cn(
|
|
@@ -4432,28 +4610,28 @@ var CardResults = (0, import_react13.forwardRef)(
|
|
|
4432
4610
|
isRow ? "flex-row items-center gap-2" : "flex-col"
|
|
4433
4611
|
),
|
|
4434
4612
|
children: [
|
|
4435
|
-
/* @__PURE__ */ (0,
|
|
4436
|
-
/* @__PURE__ */ (0,
|
|
4437
|
-
/* @__PURE__ */ (0,
|
|
4613
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-sm font-bold text-text-950 flex-1", children: header }),
|
|
4614
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "flex flex-wrap flex-row gap-1 items-center", children: [
|
|
4615
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4438
4616
|
Badge_default,
|
|
4439
4617
|
{
|
|
4440
4618
|
action: "success",
|
|
4441
4619
|
variant: "solid",
|
|
4442
4620
|
size: "large",
|
|
4443
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
4621
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.CheckCircle, {}),
|
|
4444
4622
|
children: [
|
|
4445
4623
|
correct_answers,
|
|
4446
4624
|
" Corretas"
|
|
4447
4625
|
]
|
|
4448
4626
|
}
|
|
4449
4627
|
),
|
|
4450
|
-
/* @__PURE__ */ (0,
|
|
4628
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4451
4629
|
Badge_default,
|
|
4452
4630
|
{
|
|
4453
4631
|
action: "error",
|
|
4454
4632
|
variant: "solid",
|
|
4455
4633
|
size: "large",
|
|
4456
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
4634
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.XCircle, {}),
|
|
4457
4635
|
children: [
|
|
4458
4636
|
incorrect_answers,
|
|
4459
4637
|
" Incorretas"
|
|
@@ -4464,14 +4642,14 @@ var CardResults = (0, import_react13.forwardRef)(
|
|
|
4464
4642
|
]
|
|
4465
4643
|
}
|
|
4466
4644
|
),
|
|
4467
|
-
/* @__PURE__ */ (0,
|
|
4645
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.CaretRight, { className: "min-w-6 min-h-6 text-text-800" })
|
|
4468
4646
|
] })
|
|
4469
4647
|
]
|
|
4470
4648
|
}
|
|
4471
4649
|
);
|
|
4472
4650
|
}
|
|
4473
4651
|
);
|
|
4474
|
-
var CardStatus = (0,
|
|
4652
|
+
var CardStatus = (0, import_react14.forwardRef)(
|
|
4475
4653
|
({ header, className, status, label, ...props }, ref) => {
|
|
4476
4654
|
const getLabelBadge = (status2) => {
|
|
4477
4655
|
switch (status2) {
|
|
@@ -4490,13 +4668,13 @@ var CardStatus = (0, import_react13.forwardRef)(
|
|
|
4490
4668
|
const getIconBadge = (status2) => {
|
|
4491
4669
|
switch (status2) {
|
|
4492
4670
|
case "correct":
|
|
4493
|
-
return /* @__PURE__ */ (0,
|
|
4671
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.CheckCircle, {});
|
|
4494
4672
|
case "incorrect":
|
|
4495
|
-
return /* @__PURE__ */ (0,
|
|
4673
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.XCircle, {});
|
|
4496
4674
|
case "pending":
|
|
4497
|
-
return /* @__PURE__ */ (0,
|
|
4675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.Clock, {});
|
|
4498
4676
|
default:
|
|
4499
|
-
return /* @__PURE__ */ (0,
|
|
4677
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.XCircle, {});
|
|
4500
4678
|
}
|
|
4501
4679
|
};
|
|
4502
4680
|
const getActionBadge = (status2) => {
|
|
@@ -4511,7 +4689,7 @@ var CardStatus = (0, import_react13.forwardRef)(
|
|
|
4511
4689
|
return "info";
|
|
4512
4690
|
}
|
|
4513
4691
|
};
|
|
4514
|
-
return /* @__PURE__ */ (0,
|
|
4692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4515
4693
|
CardBase,
|
|
4516
4694
|
{
|
|
4517
4695
|
ref,
|
|
@@ -4520,10 +4698,10 @@ var CardStatus = (0, import_react13.forwardRef)(
|
|
|
4520
4698
|
minHeight: "medium",
|
|
4521
4699
|
className: cn("items-center cursor-pointer", className),
|
|
4522
4700
|
...props,
|
|
4523
|
-
children: /* @__PURE__ */ (0,
|
|
4524
|
-
/* @__PURE__ */ (0,
|
|
4525
|
-
/* @__PURE__ */ (0,
|
|
4526
|
-
status && /* @__PURE__ */ (0,
|
|
4701
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex justify-between w-full h-full flex-row items-center gap-2", children: [
|
|
4702
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-sm font-bold text-text-950 truncate flex-1 min-w-0", children: header }),
|
|
4703
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("span", { className: "flex flex-row gap-1 items-center flex-shrink-0", children: [
|
|
4704
|
+
status && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4527
4705
|
Badge_default,
|
|
4528
4706
|
{
|
|
4529
4707
|
action: getActionBadge(status),
|
|
@@ -4533,17 +4711,17 @@ var CardStatus = (0, import_react13.forwardRef)(
|
|
|
4533
4711
|
children: getLabelBadge(status)
|
|
4534
4712
|
}
|
|
4535
4713
|
),
|
|
4536
|
-
label && /* @__PURE__ */ (0,
|
|
4714
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-sm text-text-800", children: label })
|
|
4537
4715
|
] }),
|
|
4538
|
-
/* @__PURE__ */ (0,
|
|
4716
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.CaretRight, { className: "min-w-6 min-h-6 text-text-800 cursor-pointer flex-shrink-0 ml-2" })
|
|
4539
4717
|
] })
|
|
4540
4718
|
}
|
|
4541
4719
|
);
|
|
4542
4720
|
}
|
|
4543
4721
|
);
|
|
4544
|
-
var CardSettings = (0,
|
|
4722
|
+
var CardSettings = (0, import_react14.forwardRef)(
|
|
4545
4723
|
({ header, className, icon, ...props }, ref) => {
|
|
4546
|
-
return /* @__PURE__ */ (0,
|
|
4724
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4547
4725
|
CardBase,
|
|
4548
4726
|
{
|
|
4549
4727
|
ref,
|
|
@@ -4556,17 +4734,17 @@ var CardSettings = (0, import_react13.forwardRef)(
|
|
|
4556
4734
|
),
|
|
4557
4735
|
...props,
|
|
4558
4736
|
children: [
|
|
4559
|
-
/* @__PURE__ */ (0,
|
|
4560
|
-
/* @__PURE__ */ (0,
|
|
4561
|
-
/* @__PURE__ */ (0,
|
|
4737
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "[&>svg]:size-6", children: icon }),
|
|
4738
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "w-full text-sm truncate", children: header }),
|
|
4739
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.CaretRight, { size: 24, className: "cursor-pointer" })
|
|
4562
4740
|
]
|
|
4563
4741
|
}
|
|
4564
4742
|
);
|
|
4565
4743
|
}
|
|
4566
4744
|
);
|
|
4567
|
-
var CardSupport = (0,
|
|
4745
|
+
var CardSupport = (0, import_react14.forwardRef)(
|
|
4568
4746
|
({ header, className, direction = "col", children, ...props }, ref) => {
|
|
4569
|
-
return /* @__PURE__ */ (0,
|
|
4747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4570
4748
|
CardBase,
|
|
4571
4749
|
{
|
|
4572
4750
|
ref,
|
|
@@ -4579,7 +4757,7 @@ var CardSupport = (0, import_react13.forwardRef)(
|
|
|
4579
4757
|
),
|
|
4580
4758
|
...props,
|
|
4581
4759
|
children: [
|
|
4582
|
-
/* @__PURE__ */ (0,
|
|
4760
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4583
4761
|
"div",
|
|
4584
4762
|
{
|
|
4585
4763
|
className: cn(
|
|
@@ -4587,18 +4765,18 @@ var CardSupport = (0, import_react13.forwardRef)(
|
|
|
4587
4765
|
direction == "col" ? "flex-col" : "flex-row items-center"
|
|
4588
4766
|
),
|
|
4589
4767
|
children: [
|
|
4590
|
-
/* @__PURE__ */ (0,
|
|
4591
|
-
/* @__PURE__ */ (0,
|
|
4768
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "w-full min-w-0", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-sm text-text-950 font-bold truncate", children: header }) }),
|
|
4769
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: "flex flex-row gap-1", children })
|
|
4592
4770
|
]
|
|
4593
4771
|
}
|
|
4594
4772
|
),
|
|
4595
|
-
/* @__PURE__ */ (0,
|
|
4773
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.CaretRight, { className: "text-text-800 cursor-pointer", size: 24 })
|
|
4596
4774
|
]
|
|
4597
4775
|
}
|
|
4598
4776
|
);
|
|
4599
4777
|
}
|
|
4600
4778
|
);
|
|
4601
|
-
var CardForum = (0,
|
|
4779
|
+
var CardForum = (0, import_react14.forwardRef)(
|
|
4602
4780
|
({
|
|
4603
4781
|
title,
|
|
4604
4782
|
content,
|
|
@@ -4612,7 +4790,7 @@ var CardForum = (0, import_react13.forwardRef)(
|
|
|
4612
4790
|
hour,
|
|
4613
4791
|
...props
|
|
4614
4792
|
}, ref) => {
|
|
4615
|
-
return /* @__PURE__ */ (0,
|
|
4793
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4616
4794
|
CardBase,
|
|
4617
4795
|
{
|
|
4618
4796
|
ref,
|
|
@@ -4623,7 +4801,7 @@ var CardForum = (0, import_react13.forwardRef)(
|
|
|
4623
4801
|
className: cn("w-auto h-auto gap-3", className),
|
|
4624
4802
|
...props,
|
|
4625
4803
|
children: [
|
|
4626
|
-
/* @__PURE__ */ (0,
|
|
4804
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4627
4805
|
"button",
|
|
4628
4806
|
{
|
|
4629
4807
|
type: "button",
|
|
@@ -4632,18 +4810,18 @@ var CardForum = (0, import_react13.forwardRef)(
|
|
|
4632
4810
|
className: "min-w-8 h-8 rounded-full bg-background-950"
|
|
4633
4811
|
}
|
|
4634
4812
|
),
|
|
4635
|
-
/* @__PURE__ */ (0,
|
|
4636
|
-
/* @__PURE__ */ (0,
|
|
4637
|
-
/* @__PURE__ */ (0,
|
|
4638
|
-
/* @__PURE__ */ (0,
|
|
4813
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-2 flex-1 min-w-0", children: [
|
|
4814
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row gap-1 items-center flex-wrap", children: [
|
|
4815
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-xs font-semibold text-primary-700 truncate", children: title }),
|
|
4816
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("p", { className: "text-xs text-text-600", children: [
|
|
4639
4817
|
"\u2022 ",
|
|
4640
4818
|
date,
|
|
4641
4819
|
" \u2022 ",
|
|
4642
4820
|
hour
|
|
4643
4821
|
] })
|
|
4644
4822
|
] }),
|
|
4645
|
-
/* @__PURE__ */ (0,
|
|
4646
|
-
/* @__PURE__ */ (0,
|
|
4823
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-950 text-sm line-clamp-2 truncate", children: content }),
|
|
4824
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4647
4825
|
"button",
|
|
4648
4826
|
{
|
|
4649
4827
|
type: "button",
|
|
@@ -4651,8 +4829,8 @@ var CardForum = (0, import_react13.forwardRef)(
|
|
|
4651
4829
|
onClick: () => onClickComments?.(valueComments),
|
|
4652
4830
|
className: "text-text-600 flex flex-row gap-2 items-center",
|
|
4653
4831
|
children: [
|
|
4654
|
-
/* @__PURE__ */ (0,
|
|
4655
|
-
/* @__PURE__ */ (0,
|
|
4832
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.ChatCircleText, { "aria-hidden": "true", size: 16 }),
|
|
4833
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("p", { className: "text-xs", children: [
|
|
4656
4834
|
comments,
|
|
4657
4835
|
" respostas"
|
|
4658
4836
|
] })
|
|
@@ -4665,7 +4843,7 @@ var CardForum = (0, import_react13.forwardRef)(
|
|
|
4665
4843
|
);
|
|
4666
4844
|
}
|
|
4667
4845
|
);
|
|
4668
|
-
var CardAudio = (0,
|
|
4846
|
+
var CardAudio = (0, import_react14.forwardRef)(
|
|
4669
4847
|
({
|
|
4670
4848
|
src,
|
|
4671
4849
|
title,
|
|
@@ -4679,16 +4857,16 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4679
4857
|
className,
|
|
4680
4858
|
...props
|
|
4681
4859
|
}, ref) => {
|
|
4682
|
-
const [isPlaying, setIsPlaying] = (0,
|
|
4683
|
-
const [currentTime, setCurrentTime] = (0,
|
|
4684
|
-
const [duration, setDuration] = (0,
|
|
4685
|
-
const [volume, setVolume] = (0,
|
|
4686
|
-
const [showVolumeControl, setShowVolumeControl] = (0,
|
|
4687
|
-
const [showSpeedMenu, setShowSpeedMenu] = (0,
|
|
4688
|
-
const [playbackRate, setPlaybackRate] = (0,
|
|
4689
|
-
const audioRef = (0,
|
|
4690
|
-
const volumeControlRef = (0,
|
|
4691
|
-
const speedMenuRef = (0,
|
|
4860
|
+
const [isPlaying, setIsPlaying] = (0, import_react14.useState)(false);
|
|
4861
|
+
const [currentTime, setCurrentTime] = (0, import_react14.useState)(0);
|
|
4862
|
+
const [duration, setDuration] = (0, import_react14.useState)(0);
|
|
4863
|
+
const [volume, setVolume] = (0, import_react14.useState)(1);
|
|
4864
|
+
const [showVolumeControl, setShowVolumeControl] = (0, import_react14.useState)(false);
|
|
4865
|
+
const [showSpeedMenu, setShowSpeedMenu] = (0, import_react14.useState)(false);
|
|
4866
|
+
const [playbackRate, setPlaybackRate] = (0, import_react14.useState)(1);
|
|
4867
|
+
const audioRef = (0, import_react14.useRef)(null);
|
|
4868
|
+
const volumeControlRef = (0, import_react14.useRef)(null);
|
|
4869
|
+
const speedMenuRef = (0, import_react14.useRef)(null);
|
|
4692
4870
|
const formatTime = (time) => {
|
|
4693
4871
|
const minutes = Math.floor(time / 60);
|
|
4694
4872
|
const seconds = Math.floor(time % 60);
|
|
@@ -4755,14 +4933,14 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4755
4933
|
};
|
|
4756
4934
|
const getVolumeIcon = () => {
|
|
4757
4935
|
if (volume === 0) {
|
|
4758
|
-
return /* @__PURE__ */ (0,
|
|
4936
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.SpeakerSimpleX, { size: 24 });
|
|
4759
4937
|
}
|
|
4760
4938
|
if (volume < 0.5) {
|
|
4761
|
-
return /* @__PURE__ */ (0,
|
|
4939
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.SpeakerLow, { size: 24 });
|
|
4762
4940
|
}
|
|
4763
|
-
return /* @__PURE__ */ (0,
|
|
4941
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.SpeakerHigh, { size: 24 });
|
|
4764
4942
|
};
|
|
4765
|
-
(0,
|
|
4943
|
+
(0, import_react14.useEffect)(() => {
|
|
4766
4944
|
const handleClickOutside = (event) => {
|
|
4767
4945
|
if (volumeControlRef.current && !volumeControlRef.current.contains(event.target)) {
|
|
4768
4946
|
setShowVolumeControl(false);
|
|
@@ -4776,7 +4954,7 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4776
4954
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
4777
4955
|
};
|
|
4778
4956
|
}, []);
|
|
4779
|
-
return /* @__PURE__ */ (0,
|
|
4957
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
4780
4958
|
CardBase,
|
|
4781
4959
|
{
|
|
4782
4960
|
ref,
|
|
@@ -4789,7 +4967,7 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4789
4967
|
),
|
|
4790
4968
|
...props,
|
|
4791
4969
|
children: [
|
|
4792
|
-
/* @__PURE__ */ (0,
|
|
4970
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4793
4971
|
"audio",
|
|
4794
4972
|
{
|
|
4795
4973
|
ref: audioRef,
|
|
@@ -4801,7 +4979,7 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4801
4979
|
onEnded: handleEnded,
|
|
4802
4980
|
"data-testid": "audio-element",
|
|
4803
4981
|
"aria-label": title,
|
|
4804
|
-
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0,
|
|
4982
|
+
children: tracks ? tracks.map((track) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4805
4983
|
"track",
|
|
4806
4984
|
{
|
|
4807
4985
|
kind: track.kind,
|
|
@@ -4811,7 +4989,7 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4811
4989
|
default: track.default
|
|
4812
4990
|
},
|
|
4813
4991
|
track.src
|
|
4814
|
-
)) : /* @__PURE__ */ (0,
|
|
4992
|
+
)) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4815
4993
|
"track",
|
|
4816
4994
|
{
|
|
4817
4995
|
kind: "captions",
|
|
@@ -4822,7 +5000,7 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4822
5000
|
)
|
|
4823
5001
|
}
|
|
4824
5002
|
),
|
|
4825
|
-
/* @__PURE__ */ (0,
|
|
5003
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4826
5004
|
"button",
|
|
4827
5005
|
{
|
|
4828
5006
|
type: "button",
|
|
@@ -4830,14 +5008,14 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4830
5008
|
disabled: !src,
|
|
4831
5009
|
className: "cursor-pointer text-text-950 hover:text-primary-600 disabled:text-text-400 disabled:cursor-not-allowed",
|
|
4832
5010
|
"aria-label": isPlaying ? "Pausar" : "Reproduzir",
|
|
4833
|
-
children: isPlaying ? /* @__PURE__ */ (0,
|
|
4834
|
-
/* @__PURE__ */ (0,
|
|
4835
|
-
/* @__PURE__ */ (0,
|
|
4836
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
5011
|
+
children: isPlaying ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex gap-0.5", children: [
|
|
5012
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" }),
|
|
5013
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-1 h-4 bg-current rounded-sm" })
|
|
5014
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.Play, { size: 24 })
|
|
4837
5015
|
}
|
|
4838
5016
|
),
|
|
4839
|
-
/* @__PURE__ */ (0,
|
|
4840
|
-
/* @__PURE__ */ (0,
|
|
5017
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime(currentTime) }),
|
|
5018
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex-1 relative", "data-testid": "progress-bar", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4841
5019
|
"button",
|
|
4842
5020
|
{
|
|
4843
5021
|
type: "button",
|
|
@@ -4852,7 +5030,7 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4852
5030
|
}
|
|
4853
5031
|
},
|
|
4854
5032
|
"aria-label": "Barra de progresso do \xE1udio",
|
|
4855
|
-
children: /* @__PURE__ */ (0,
|
|
5033
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4856
5034
|
"div",
|
|
4857
5035
|
{
|
|
4858
5036
|
className: "h-full bg-primary-600 rounded-full transition-all duration-100",
|
|
@@ -4863,19 +5041,19 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4863
5041
|
)
|
|
4864
5042
|
}
|
|
4865
5043
|
) }),
|
|
4866
|
-
/* @__PURE__ */ (0,
|
|
4867
|
-
/* @__PURE__ */ (0,
|
|
4868
|
-
/* @__PURE__ */ (0,
|
|
5044
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: "text-text-800 text-md font-medium min-w-[2.5rem]", children: formatTime(duration) }),
|
|
5045
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative h-6", ref: volumeControlRef, children: [
|
|
5046
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4869
5047
|
"button",
|
|
4870
5048
|
{
|
|
4871
5049
|
type: "button",
|
|
4872
5050
|
onClick: toggleVolumeControl,
|
|
4873
5051
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
4874
5052
|
"aria-label": "Controle de volume",
|
|
4875
|
-
children: /* @__PURE__ */ (0,
|
|
5053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-6 h-6 flex items-center justify-center", children: getVolumeIcon() })
|
|
4876
5054
|
}
|
|
4877
5055
|
),
|
|
4878
|
-
showVolumeControl && /* @__PURE__ */ (0,
|
|
5056
|
+
showVolumeControl && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4879
5057
|
"button",
|
|
4880
5058
|
{
|
|
4881
5059
|
type: "button",
|
|
@@ -4885,7 +5063,7 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4885
5063
|
setShowVolumeControl(false);
|
|
4886
5064
|
}
|
|
4887
5065
|
},
|
|
4888
|
-
children: /* @__PURE__ */ (0,
|
|
5066
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4889
5067
|
"input",
|
|
4890
5068
|
{
|
|
4891
5069
|
type: "range",
|
|
@@ -4926,22 +5104,22 @@ var CardAudio = (0, import_react13.forwardRef)(
|
|
|
4926
5104
|
}
|
|
4927
5105
|
)
|
|
4928
5106
|
] }),
|
|
4929
|
-
/* @__PURE__ */ (0,
|
|
4930
|
-
/* @__PURE__ */ (0,
|
|
5107
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "relative h-6", ref: speedMenuRef, children: [
|
|
5108
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4931
5109
|
"button",
|
|
4932
5110
|
{
|
|
4933
5111
|
type: "button",
|
|
4934
5112
|
onClick: toggleSpeedMenu,
|
|
4935
5113
|
className: "cursor-pointer text-text-950 hover:text-primary-600",
|
|
4936
5114
|
"aria-label": "Op\xE7\xF5es de velocidade",
|
|
4937
|
-
children: /* @__PURE__ */ (0,
|
|
5115
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.DotsThreeVertical, { size: 24 })
|
|
4938
5116
|
}
|
|
4939
5117
|
),
|
|
4940
|
-
showSpeedMenu && /* @__PURE__ */ (0,
|
|
5118
|
+
showSpeedMenu && /* @__PURE__ */ (0, import_jsx_runtime22.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_runtime22.jsx)("div", { className: "flex flex-col gap-1", children: [
|
|
4941
5119
|
{ speed: 1, label: "1x" },
|
|
4942
5120
|
{ speed: 1.5, label: "1.5x" },
|
|
4943
5121
|
{ speed: 2, label: "2x" }
|
|
4944
|
-
].map(({ speed, label }) => /* @__PURE__ */ (0,
|
|
5122
|
+
].map(({ speed, label }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4945
5123
|
"button",
|
|
4946
5124
|
{
|
|
4947
5125
|
type: "button",
|
|
@@ -4966,10 +5144,10 @@ var SIMULADO_BACKGROUND_CLASSES = {
|
|
|
4966
5144
|
simuladao: "bg-exam-3",
|
|
4967
5145
|
vestibular: "bg-exam-4"
|
|
4968
5146
|
};
|
|
4969
|
-
var CardSimulado = (0,
|
|
5147
|
+
var CardSimulado = (0, import_react14.forwardRef)(
|
|
4970
5148
|
({ title, duration, info, backgroundColor, className, ...props }, ref) => {
|
|
4971
5149
|
const backgroundClass = SIMULADO_BACKGROUND_CLASSES[backgroundColor];
|
|
4972
|
-
return /* @__PURE__ */ (0,
|
|
5150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
4973
5151
|
CardBase,
|
|
4974
5152
|
{
|
|
4975
5153
|
ref,
|
|
@@ -4982,19 +5160,19 @@ var CardSimulado = (0, import_react13.forwardRef)(
|
|
|
4982
5160
|
className
|
|
4983
5161
|
),
|
|
4984
5162
|
...props,
|
|
4985
|
-
children: /* @__PURE__ */ (0,
|
|
4986
|
-
/* @__PURE__ */ (0,
|
|
4987
|
-
/* @__PURE__ */ (0,
|
|
4988
|
-
/* @__PURE__ */ (0,
|
|
4989
|
-
duration && /* @__PURE__ */ (0,
|
|
4990
|
-
/* @__PURE__ */ (0,
|
|
4991
|
-
/* @__PURE__ */ (0,
|
|
5163
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex justify-between items-center w-full gap-4", children: [
|
|
5164
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-1 flex-1 min-w-0", children: [
|
|
5165
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { size: "lg", weight: "bold", className: "text-text-950 truncate", children: title }),
|
|
5166
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-4 text-text-700", children: [
|
|
5167
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-1", children: [
|
|
5168
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.Clock, { size: 16, className: "flex-shrink-0" }),
|
|
5169
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { size: "sm", children: duration })
|
|
4992
5170
|
] }),
|
|
4993
|
-
/* @__PURE__ */ (0,
|
|
5171
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { size: "sm", className: "truncate", children: info })
|
|
4994
5172
|
] })
|
|
4995
5173
|
] }),
|
|
4996
|
-
/* @__PURE__ */ (0,
|
|
4997
|
-
|
|
5174
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5175
|
+
import_phosphor_react11.CaretRight,
|
|
4998
5176
|
{
|
|
4999
5177
|
size: 24,
|
|
5000
5178
|
className: "text-text-800 flex-shrink-0",
|
|
@@ -5006,7 +5184,7 @@ var CardSimulado = (0, import_react13.forwardRef)(
|
|
|
5006
5184
|
);
|
|
5007
5185
|
}
|
|
5008
5186
|
);
|
|
5009
|
-
var CardTest = (0,
|
|
5187
|
+
var CardTest = (0, import_react14.forwardRef)(
|
|
5010
5188
|
({
|
|
5011
5189
|
title,
|
|
5012
5190
|
duration,
|
|
@@ -5038,7 +5216,7 @@ var CardTest = (0, import_react13.forwardRef)(
|
|
|
5038
5216
|
const interactiveClasses = isSelectable ? "cursor-pointer focus:outline-none focus:ring-2 focus:ring-primary-950 focus:ring-offset-2" : "";
|
|
5039
5217
|
const selectedClasses = selected ? "ring-2 ring-primary-950 ring-offset-2" : "";
|
|
5040
5218
|
if (isSelectable) {
|
|
5041
|
-
return /* @__PURE__ */ (0,
|
|
5219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5042
5220
|
"button",
|
|
5043
5221
|
{
|
|
5044
5222
|
ref,
|
|
@@ -5050,8 +5228,8 @@ var CardTest = (0, import_react13.forwardRef)(
|
|
|
5050
5228
|
onKeyDown: handleKeyDown,
|
|
5051
5229
|
"aria-pressed": selected,
|
|
5052
5230
|
...props,
|
|
5053
|
-
children: /* @__PURE__ */ (0,
|
|
5054
|
-
/* @__PURE__ */ (0,
|
|
5231
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
5232
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5055
5233
|
Text_default,
|
|
5056
5234
|
{
|
|
5057
5235
|
size: "md",
|
|
@@ -5060,10 +5238,10 @@ var CardTest = (0, import_react13.forwardRef)(
|
|
|
5060
5238
|
children: title
|
|
5061
5239
|
}
|
|
5062
5240
|
),
|
|
5063
|
-
/* @__PURE__ */ (0,
|
|
5064
|
-
duration && /* @__PURE__ */ (0,
|
|
5065
|
-
/* @__PURE__ */ (0,
|
|
5066
|
-
/* @__PURE__ */ (0,
|
|
5241
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
5242
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
5243
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.Clock, { size: 16, className: "text-text-700" }),
|
|
5244
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5067
5245
|
Text_default,
|
|
5068
5246
|
{
|
|
5069
5247
|
size: "sm",
|
|
@@ -5072,7 +5250,7 @@ var CardTest = (0, import_react13.forwardRef)(
|
|
|
5072
5250
|
}
|
|
5073
5251
|
)
|
|
5074
5252
|
] }),
|
|
5075
|
-
/* @__PURE__ */ (0,
|
|
5253
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5076
5254
|
Text_default,
|
|
5077
5255
|
{
|
|
5078
5256
|
size: "sm",
|
|
@@ -5085,14 +5263,14 @@ var CardTest = (0, import_react13.forwardRef)(
|
|
|
5085
5263
|
}
|
|
5086
5264
|
);
|
|
5087
5265
|
}
|
|
5088
|
-
return /* @__PURE__ */ (0,
|
|
5266
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5089
5267
|
"div",
|
|
5090
5268
|
{
|
|
5091
5269
|
ref,
|
|
5092
5270
|
className: cn(`${baseClasses} ${className}`.trim()),
|
|
5093
5271
|
...props,
|
|
5094
|
-
children: /* @__PURE__ */ (0,
|
|
5095
|
-
/* @__PURE__ */ (0,
|
|
5272
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col justify-between gap-[27px] flex-grow min-h-[67px] w-full min-w-0", children: [
|
|
5273
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5096
5274
|
Text_default,
|
|
5097
5275
|
{
|
|
5098
5276
|
size: "md",
|
|
@@ -5101,10 +5279,10 @@ var CardTest = (0, import_react13.forwardRef)(
|
|
|
5101
5279
|
children: title
|
|
5102
5280
|
}
|
|
5103
5281
|
),
|
|
5104
|
-
/* @__PURE__ */ (0,
|
|
5105
|
-
duration && /* @__PURE__ */ (0,
|
|
5106
|
-
/* @__PURE__ */ (0,
|
|
5107
|
-
/* @__PURE__ */ (0,
|
|
5282
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row justify-start items-end gap-4 w-full", children: [
|
|
5283
|
+
duration && /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-row items-center gap-1 flex-shrink-0", children: [
|
|
5284
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_phosphor_react11.Clock, { size: 16, className: "text-text-700" }),
|
|
5285
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5108
5286
|
Text_default,
|
|
5109
5287
|
{
|
|
5110
5288
|
size: "sm",
|
|
@@ -5113,7 +5291,7 @@ var CardTest = (0, import_react13.forwardRef)(
|
|
|
5113
5291
|
}
|
|
5114
5292
|
)
|
|
5115
5293
|
] }),
|
|
5116
|
-
/* @__PURE__ */ (0,
|
|
5294
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5117
5295
|
Text_default,
|
|
5118
5296
|
{
|
|
5119
5297
|
size: "sm",
|
|
@@ -5149,15 +5327,15 @@ var SIMULATION_TYPE_STYLES = {
|
|
|
5149
5327
|
text: "Vestibular"
|
|
5150
5328
|
}
|
|
5151
5329
|
};
|
|
5152
|
-
var CardSimulationHistory = (0,
|
|
5153
|
-
return /* @__PURE__ */ (0,
|
|
5330
|
+
var CardSimulationHistory = (0, import_react14.forwardRef)(({ data, onSimulationClick, className, ...props }, ref) => {
|
|
5331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5154
5332
|
"div",
|
|
5155
5333
|
{
|
|
5156
5334
|
ref,
|
|
5157
5335
|
className: cn("w-full max-w-[992px] h-auto", className),
|
|
5158
5336
|
...props,
|
|
5159
|
-
children: /* @__PURE__ */ (0,
|
|
5160
|
-
data.map((section, sectionIndex) => /* @__PURE__ */ (0,
|
|
5337
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-col gap-0", children: [
|
|
5338
|
+
data.map((section, sectionIndex) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex flex-col", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
5161
5339
|
"div",
|
|
5162
5340
|
{
|
|
5163
5341
|
className: cn(
|
|
@@ -5165,7 +5343,7 @@ var CardSimulationHistory = (0, import_react13.forwardRef)(({ data, onSimulation
|
|
|
5165
5343
|
sectionIndex === 0 ? "rounded-t-3xl" : ""
|
|
5166
5344
|
),
|
|
5167
5345
|
children: [
|
|
5168
|
-
/* @__PURE__ */ (0,
|
|
5346
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5169
5347
|
Text_default,
|
|
5170
5348
|
{
|
|
5171
5349
|
size: "xs",
|
|
@@ -5174,9 +5352,9 @@ var CardSimulationHistory = (0, import_react13.forwardRef)(({ data, onSimulation
|
|
|
5174
5352
|
children: section.date
|
|
5175
5353
|
}
|
|
5176
5354
|
),
|
|
5177
|
-
/* @__PURE__ */ (0,
|
|
5355
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex flex-col gap-2 flex-1", children: section.simulations.map((simulation) => {
|
|
5178
5356
|
const typeStyles = SIMULATION_TYPE_STYLES[simulation.type];
|
|
5179
|
-
return /* @__PURE__ */ (0,
|
|
5357
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5180
5358
|
CardBase,
|
|
5181
5359
|
{
|
|
5182
5360
|
layout: "horizontal",
|
|
@@ -5188,9 +5366,9 @@ var CardSimulationHistory = (0, import_react13.forwardRef)(({ data, onSimulation
|
|
|
5188
5366
|
transition-shadow duration-200 h-auto min-h-[61px]`
|
|
5189
5367
|
),
|
|
5190
5368
|
onClick: () => onSimulationClick?.(simulation),
|
|
5191
|
-
children: /* @__PURE__ */ (0,
|
|
5192
|
-
/* @__PURE__ */ (0,
|
|
5193
|
-
/* @__PURE__ */ (0,
|
|
5369
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex justify-between items-center w-full gap-2", children: [
|
|
5370
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex flex-wrap flex-col justify-between sm:flex-row gap-2 flex-1 min-w-0", children: [
|
|
5371
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5194
5372
|
Text_default,
|
|
5195
5373
|
{
|
|
5196
5374
|
size: "lg",
|
|
@@ -5199,8 +5377,8 @@ var CardSimulationHistory = (0, import_react13.forwardRef)(({ data, onSimulation
|
|
|
5199
5377
|
children: simulation.title
|
|
5200
5378
|
}
|
|
5201
5379
|
),
|
|
5202
|
-
/* @__PURE__ */ (0,
|
|
5203
|
-
/* @__PURE__ */ (0,
|
|
5380
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
5381
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5204
5382
|
Badge_default,
|
|
5205
5383
|
{
|
|
5206
5384
|
variant: "examsOutlined",
|
|
@@ -5209,11 +5387,11 @@ var CardSimulationHistory = (0, import_react13.forwardRef)(({ data, onSimulation
|
|
|
5209
5387
|
children: typeStyles.text
|
|
5210
5388
|
}
|
|
5211
5389
|
),
|
|
5212
|
-
/* @__PURE__ */ (0,
|
|
5390
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Text_default, { size: "sm", className: "text-text-800 truncate", children: simulation.info })
|
|
5213
5391
|
] })
|
|
5214
5392
|
] }),
|
|
5215
|
-
/* @__PURE__ */ (0,
|
|
5216
|
-
|
|
5393
|
+
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
5394
|
+
import_phosphor_react11.CaretRight,
|
|
5217
5395
|
{
|
|
5218
5396
|
size: 24,
|
|
5219
5397
|
className: "text-text-800 flex-shrink-0",
|
|
@@ -5228,16 +5406,16 @@ var CardSimulationHistory = (0, import_react13.forwardRef)(({ data, onSimulation
|
|
|
5228
5406
|
]
|
|
5229
5407
|
}
|
|
5230
5408
|
) }, section.date)),
|
|
5231
|
-
data.length > 0 && /* @__PURE__ */ (0,
|
|
5409
|
+
data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "w-full h-6 bg-background rounded-b-3xl" })
|
|
5232
5410
|
] })
|
|
5233
5411
|
}
|
|
5234
5412
|
);
|
|
5235
5413
|
});
|
|
5236
5414
|
|
|
5237
5415
|
// src/components/Accordation/Accordation.tsx
|
|
5238
|
-
var
|
|
5239
|
-
var
|
|
5240
|
-
var CardAccordation = (0,
|
|
5416
|
+
var import_phosphor_react12 = require("phosphor-react");
|
|
5417
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
5418
|
+
var CardAccordation = (0, import_react15.forwardRef)(
|
|
5241
5419
|
({
|
|
5242
5420
|
trigger,
|
|
5243
5421
|
children,
|
|
@@ -5247,15 +5425,17 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5247
5425
|
onToggleExpanded,
|
|
5248
5426
|
value,
|
|
5249
5427
|
disabled = false,
|
|
5428
|
+
triggerClassName,
|
|
5429
|
+
contentClassName,
|
|
5250
5430
|
...props
|
|
5251
5431
|
}, ref) => {
|
|
5252
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
5253
|
-
const generatedId = (0,
|
|
5432
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react15.useState)(defaultExpanded);
|
|
5433
|
+
const generatedId = (0, import_react15.useId)();
|
|
5254
5434
|
const contentId = value ? `accordion-content-${value}` : generatedId;
|
|
5255
5435
|
const headerId = value ? `accordion-header-${value}` : `${generatedId}-header`;
|
|
5256
5436
|
const isControlled = controlledExpanded !== void 0;
|
|
5257
5437
|
const isExpanded = isControlled ? controlledExpanded : internalExpanded;
|
|
5258
|
-
(0,
|
|
5438
|
+
(0, import_react15.useEffect)(() => {
|
|
5259
5439
|
if (isControlled) {
|
|
5260
5440
|
setInternalExpanded(controlledExpanded);
|
|
5261
5441
|
}
|
|
@@ -5275,7 +5455,7 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5275
5455
|
handleToggle();
|
|
5276
5456
|
}
|
|
5277
5457
|
};
|
|
5278
|
-
return /* @__PURE__ */ (0,
|
|
5458
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
5279
5459
|
CardBase,
|
|
5280
5460
|
{
|
|
5281
5461
|
ref,
|
|
@@ -5285,7 +5465,7 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5285
5465
|
className: cn("overflow-hidden", className),
|
|
5286
5466
|
...props,
|
|
5287
5467
|
children: [
|
|
5288
|
-
/* @__PURE__ */ (0,
|
|
5468
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
5289
5469
|
"button",
|
|
5290
5470
|
{
|
|
5291
5471
|
id: headerId,
|
|
@@ -5295,7 +5475,8 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5295
5475
|
disabled,
|
|
5296
5476
|
className: cn(
|
|
5297
5477
|
"w-full cursor-pointer not-aria-expanded:rounded-xl aria-expanded:rounded-t-xl flex items-center justify-between gap-3 text-left transition-colors duration-200 focus:outline-none focus:border-2 focus:border-primary-950 focus:ring-inset px-2",
|
|
5298
|
-
disabled && "cursor-not-allowed text-text-400"
|
|
5478
|
+
disabled && "cursor-not-allowed text-text-400",
|
|
5479
|
+
triggerClassName
|
|
5299
5480
|
),
|
|
5300
5481
|
"aria-expanded": isExpanded,
|
|
5301
5482
|
"aria-controls": contentId,
|
|
@@ -5303,8 +5484,8 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5303
5484
|
"data-value": value,
|
|
5304
5485
|
children: [
|
|
5305
5486
|
trigger,
|
|
5306
|
-
/* @__PURE__ */ (0,
|
|
5307
|
-
|
|
5487
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
5488
|
+
import_phosphor_react12.CaretRight,
|
|
5308
5489
|
{
|
|
5309
5490
|
size: 20,
|
|
5310
5491
|
className: cn(
|
|
@@ -5318,7 +5499,7 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5318
5499
|
]
|
|
5319
5500
|
}
|
|
5320
5501
|
),
|
|
5321
|
-
/* @__PURE__ */ (0,
|
|
5502
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
5322
5503
|
"section",
|
|
5323
5504
|
{
|
|
5324
5505
|
id: contentId,
|
|
@@ -5330,7 +5511,7 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5330
5511
|
),
|
|
5331
5512
|
"data-testid": "accordion-content",
|
|
5332
5513
|
"data-value": value,
|
|
5333
|
-
children: /* @__PURE__ */ (0,
|
|
5514
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: cn("p-4 pt-0", contentClassName), children })
|
|
5334
5515
|
}
|
|
5335
5516
|
)
|
|
5336
5517
|
]
|
|
@@ -5341,9 +5522,9 @@ var CardAccordation = (0, import_react14.forwardRef)(
|
|
|
5341
5522
|
CardAccordation.displayName = "CardAccordation";
|
|
5342
5523
|
|
|
5343
5524
|
// src/components/Accordation/AccordionGroup.tsx
|
|
5344
|
-
var
|
|
5525
|
+
var import_react16 = require("react");
|
|
5345
5526
|
var import_zustand4 = require("zustand");
|
|
5346
|
-
var
|
|
5527
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
5347
5528
|
function createAccordionGroupStore(type, initialValue, collapsible) {
|
|
5348
5529
|
return (0, import_zustand4.create)((set, get) => ({
|
|
5349
5530
|
type,
|
|
@@ -5361,8 +5542,8 @@ function createAccordionGroupStore(type, initialValue, collapsible) {
|
|
|
5361
5542
|
}));
|
|
5362
5543
|
}
|
|
5363
5544
|
var injectStore2 = (children, store, indexRef, onItemToggle) => {
|
|
5364
|
-
return
|
|
5365
|
-
if (!(0,
|
|
5545
|
+
return import_react16.Children.map(children, (child) => {
|
|
5546
|
+
if (!(0, import_react16.isValidElement)(child)) {
|
|
5366
5547
|
return child;
|
|
5367
5548
|
}
|
|
5368
5549
|
const typedChild = child;
|
|
@@ -5389,16 +5570,16 @@ var injectStore2 = (children, store, indexRef, onItemToggle) => {
|
|
|
5389
5570
|
if (displayName === "CardAccordation") {
|
|
5390
5571
|
newProps.children = processedChildren;
|
|
5391
5572
|
} else if (processedChildren !== typedChild.props.children) {
|
|
5392
|
-
return (0,
|
|
5573
|
+
return (0, import_react16.cloneElement)(typedChild, { children: processedChildren });
|
|
5393
5574
|
}
|
|
5394
5575
|
}
|
|
5395
5576
|
if (Object.keys(newProps).length > 0) {
|
|
5396
|
-
return (0,
|
|
5577
|
+
return (0, import_react16.cloneElement)(typedChild, newProps);
|
|
5397
5578
|
}
|
|
5398
5579
|
return child;
|
|
5399
5580
|
});
|
|
5400
5581
|
};
|
|
5401
|
-
var AccordionGroup = (0,
|
|
5582
|
+
var AccordionGroup = (0, import_react16.forwardRef)(
|
|
5402
5583
|
({
|
|
5403
5584
|
type = "single",
|
|
5404
5585
|
defaultValue,
|
|
@@ -5409,12 +5590,12 @@ var AccordionGroup = (0, import_react15.forwardRef)(
|
|
|
5409
5590
|
className,
|
|
5410
5591
|
...props
|
|
5411
5592
|
}, ref) => {
|
|
5412
|
-
const [internalValue, setInternalValue] = (0,
|
|
5593
|
+
const [internalValue, setInternalValue] = (0, import_react16.useState)(
|
|
5413
5594
|
defaultValue || (type === "single" ? "" : [])
|
|
5414
5595
|
);
|
|
5415
5596
|
const isControlled = controlledValue !== void 0;
|
|
5416
5597
|
const currentValue = isControlled ? controlledValue : internalValue;
|
|
5417
|
-
const storeRef = (0,
|
|
5598
|
+
const storeRef = (0, import_react16.useRef)(null);
|
|
5418
5599
|
if (storeRef.current) {
|
|
5419
5600
|
storeRef.current.setState((prev) => {
|
|
5420
5601
|
const nextState = {};
|
|
@@ -5434,10 +5615,10 @@ var AccordionGroup = (0, import_react15.forwardRef)(
|
|
|
5434
5615
|
);
|
|
5435
5616
|
}
|
|
5436
5617
|
const store = storeRef.current;
|
|
5437
|
-
(0,
|
|
5618
|
+
(0, import_react16.useEffect)(() => {
|
|
5438
5619
|
store.setState({ value: currentValue });
|
|
5439
5620
|
}, [currentValue, store]);
|
|
5440
|
-
(0,
|
|
5621
|
+
(0, import_react16.useEffect)(() => {
|
|
5441
5622
|
if (!isControlled) {
|
|
5442
5623
|
setInternalValue((prev) => {
|
|
5443
5624
|
if (type === "single") {
|
|
@@ -5483,7 +5664,7 @@ var AccordionGroup = (0, import_react15.forwardRef)(
|
|
|
5483
5664
|
indexRef,
|
|
5484
5665
|
handleItemToggle
|
|
5485
5666
|
);
|
|
5486
|
-
return /* @__PURE__ */ (0,
|
|
5667
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { ref, className, ...props, children: enhancedChildren });
|
|
5487
5668
|
}
|
|
5488
5669
|
);
|
|
5489
5670
|
AccordionGroup.displayName = "AccordionGroup";
|
|
@@ -5493,7 +5674,7 @@ var import_phosphor_react13 = require("phosphor-react");
|
|
|
5493
5674
|
|
|
5494
5675
|
// src/components/AlertManager/AlertSteps/MessageStep.tsx
|
|
5495
5676
|
var import_shallow = require("zustand/react/shallow");
|
|
5496
|
-
var
|
|
5677
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
5497
5678
|
var MessageStep = ({
|
|
5498
5679
|
labels,
|
|
5499
5680
|
allowImageAttachment = true
|
|
@@ -5515,8 +5696,8 @@ var MessageStep = ({
|
|
|
5515
5696
|
setImage(null);
|
|
5516
5697
|
};
|
|
5517
5698
|
const isImageFile = image instanceof File;
|
|
5518
|
-
return /* @__PURE__ */ (0,
|
|
5519
|
-
/* @__PURE__ */ (0,
|
|
5699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("section", { className: "flex flex-col gap-4", children: [
|
|
5700
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5520
5701
|
Input_default,
|
|
5521
5702
|
{
|
|
5522
5703
|
required: true,
|
|
@@ -5527,7 +5708,7 @@ var MessageStep = ({
|
|
|
5527
5708
|
onChange: (e) => setTitle(e.target.value)
|
|
5528
5709
|
}
|
|
5529
5710
|
),
|
|
5530
|
-
/* @__PURE__ */ (0,
|
|
5711
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5531
5712
|
TextArea_default,
|
|
5532
5713
|
{
|
|
5533
5714
|
required: true,
|
|
@@ -5537,7 +5718,7 @@ var MessageStep = ({
|
|
|
5537
5718
|
onChange: (e) => setMessage(e.target.value)
|
|
5538
5719
|
}
|
|
5539
5720
|
),
|
|
5540
|
-
allowImageAttachment && /* @__PURE__ */ (0,
|
|
5721
|
+
allowImageAttachment && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
5541
5722
|
ImageUpload,
|
|
5542
5723
|
{
|
|
5543
5724
|
selectedFile: isImageFile ? image : null,
|
|
@@ -5549,15 +5730,15 @@ var MessageStep = ({
|
|
|
5549
5730
|
};
|
|
5550
5731
|
|
|
5551
5732
|
// src/components/AlertManager/AlertSteps/RecipientsStep.tsx
|
|
5552
|
-
var
|
|
5553
|
-
var
|
|
5733
|
+
var import_react17 = require("react");
|
|
5734
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5554
5735
|
var RecipientsStep = ({
|
|
5555
5736
|
categories,
|
|
5556
5737
|
labels,
|
|
5557
5738
|
onCategoriesChange
|
|
5558
5739
|
}) => {
|
|
5559
5740
|
const { recipientCategories, initializeCategory } = useAlertFormStore();
|
|
5560
|
-
(0,
|
|
5741
|
+
(0, import_react17.useEffect)(() => {
|
|
5561
5742
|
for (const category of categories) {
|
|
5562
5743
|
const existingCategory = recipientCategories[category.key];
|
|
5563
5744
|
if (!existingCategory) {
|
|
@@ -5587,7 +5768,7 @@ var RecipientsStep = ({
|
|
|
5587
5768
|
onCategoriesChange(updatedCategories);
|
|
5588
5769
|
}
|
|
5589
5770
|
};
|
|
5590
|
-
const syncedCategories = (0,
|
|
5771
|
+
const syncedCategories = (0, import_react17.useMemo)(() => {
|
|
5591
5772
|
return categories.map((category) => {
|
|
5592
5773
|
const storeCategory = recipientCategories[category.key];
|
|
5593
5774
|
if (storeCategory) {
|
|
@@ -5599,9 +5780,9 @@ var RecipientsStep = ({
|
|
|
5599
5780
|
return category;
|
|
5600
5781
|
});
|
|
5601
5782
|
}, [categories, recipientCategories]);
|
|
5602
|
-
return /* @__PURE__ */ (0,
|
|
5603
|
-
/* @__PURE__ */ (0,
|
|
5604
|
-
/* @__PURE__ */ (0,
|
|
5783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("section", { className: "flex flex-col gap-4", children: [
|
|
5784
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Text_default, { size: "lg", weight: "medium", className: "text-text-950", children: labels?.recipientsDescription || "Para quem voc\xEA vai enviar o aviso?" }),
|
|
5785
|
+
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5605
5786
|
CheckboxGroup,
|
|
5606
5787
|
{
|
|
5607
5788
|
categories: syncedCategories,
|
|
@@ -5612,16 +5793,12 @@ var RecipientsStep = ({
|
|
|
5612
5793
|
};
|
|
5613
5794
|
|
|
5614
5795
|
// src/components/AlertManager/AlertSteps/DateStep.tsx
|
|
5615
|
-
var
|
|
5616
|
-
var import_phosphor_react12 = require("phosphor-react");
|
|
5617
|
-
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5796
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
5618
5797
|
var DateStep = ({
|
|
5619
5798
|
labels,
|
|
5620
5799
|
allowScheduling = true,
|
|
5621
5800
|
allowEmailCopy = true
|
|
5622
5801
|
}) => {
|
|
5623
|
-
const [selectedDate, setSelectedDate] = (0, import_react17.useState)();
|
|
5624
|
-
const [isCalendarOpen, setIsCalendarOpen] = (0, import_react17.useState)(false);
|
|
5625
5802
|
const date = useAlertFormStore((state) => state.date);
|
|
5626
5803
|
const time = useAlertFormStore((state) => state.time);
|
|
5627
5804
|
const sendToday = useAlertFormStore((state) => state.sendToday);
|
|
@@ -5632,41 +5809,9 @@ var DateStep = ({
|
|
|
5632
5809
|
const setSendCopyToEmail = useAlertFormStore(
|
|
5633
5810
|
(state) => state.setSendCopyToEmail
|
|
5634
5811
|
);
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
const day = String(dateObj.getDate()).padStart(2, "0");
|
|
5639
|
-
return `${year}-${month}-${day}`;
|
|
5640
|
-
};
|
|
5641
|
-
const formatTimeToInput = (dateObj) => {
|
|
5642
|
-
const hours = String(dateObj.getHours()).padStart(2, "0");
|
|
5643
|
-
const minutes = String(dateObj.getMinutes()).padStart(2, "0");
|
|
5644
|
-
return `${hours}:${minutes}`;
|
|
5645
|
-
};
|
|
5646
|
-
const handleDateSelect = (dateObj) => {
|
|
5647
|
-
setSelectedDate(dateObj);
|
|
5648
|
-
setDate(formatDateToInput(dateObj));
|
|
5649
|
-
if (!time) {
|
|
5650
|
-
setTime(formatTimeToInput(dateObj));
|
|
5651
|
-
}
|
|
5652
|
-
setIsCalendarOpen(false);
|
|
5653
|
-
};
|
|
5654
|
-
const handleDateInputChange = (e) => {
|
|
5655
|
-
const value = e.target.value;
|
|
5656
|
-
setDate(value);
|
|
5657
|
-
if (value) {
|
|
5658
|
-
const dateObj = new Date(value);
|
|
5659
|
-
if (!Number.isNaN(dateObj.getTime())) {
|
|
5660
|
-
setSelectedDate(dateObj);
|
|
5661
|
-
}
|
|
5662
|
-
}
|
|
5663
|
-
};
|
|
5664
|
-
const handleTimeInputChange = (e) => {
|
|
5665
|
-
setTime(e.target.value);
|
|
5666
|
-
};
|
|
5667
|
-
return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("section", { className: "flex flex-col gap-4", children: [
|
|
5668
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { className: "flex flex-row items-center gap-6", children: [
|
|
5669
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5812
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("section", { className: "flex flex-col gap-4", children: [
|
|
5813
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { className: "flex flex-row items-center gap-6", children: [
|
|
5814
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5670
5815
|
Text_default,
|
|
5671
5816
|
{
|
|
5672
5817
|
weight: "normal",
|
|
@@ -5674,7 +5819,7 @@ var DateStep = ({
|
|
|
5674
5819
|
children: labels?.sendTodayLabel || "Enviar Hoje?"
|
|
5675
5820
|
}
|
|
5676
5821
|
),
|
|
5677
|
-
/* @__PURE__ */ (0,
|
|
5822
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5678
5823
|
CheckBox_default,
|
|
5679
5824
|
{
|
|
5680
5825
|
label: "Sim",
|
|
@@ -5683,54 +5828,20 @@ var DateStep = ({
|
|
|
5683
5828
|
}
|
|
5684
5829
|
)
|
|
5685
5830
|
] }),
|
|
5686
|
-
allowScheduling && /* @__PURE__ */ (0,
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
iconRight: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_phosphor_react12.CalendarBlank, {}),
|
|
5701
|
-
value: date,
|
|
5702
|
-
onChange: handleDateInputChange,
|
|
5703
|
-
disabled: sendToday,
|
|
5704
|
-
className: "text-text-950 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-inner-spin-button]:hidden [&::-webkit-clear-button]:hidden"
|
|
5705
|
-
}
|
|
5706
|
-
) }),
|
|
5707
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(DropdownMenuContent, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5708
|
-
Calendar_default,
|
|
5709
|
-
{
|
|
5710
|
-
variant: "selection",
|
|
5711
|
-
selectedDate,
|
|
5712
|
-
onDateSelect: handleDateSelect,
|
|
5713
|
-
showActivities: false
|
|
5714
|
-
}
|
|
5715
|
-
) })
|
|
5716
|
-
]
|
|
5717
|
-
}
|
|
5718
|
-
),
|
|
5719
|
-
/* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5720
|
-
Input_default,
|
|
5721
|
-
{
|
|
5722
|
-
label: labels?.timeLabel || "Hora de envio",
|
|
5723
|
-
placeholder: "Digite a hora de envio",
|
|
5724
|
-
variant: "rounded",
|
|
5725
|
-
type: "time",
|
|
5726
|
-
value: time,
|
|
5727
|
-
onChange: handleTimeInputChange,
|
|
5728
|
-
disabled: sendToday,
|
|
5729
|
-
className: "[&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-inner-spin-button]:hidden [&::-webkit-clear-button]:hidden"
|
|
5730
|
-
}
|
|
5731
|
-
)
|
|
5732
|
-
] }),
|
|
5733
|
-
allowEmailCopy && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5831
|
+
allowScheduling && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5832
|
+
DateTimeInput_default,
|
|
5833
|
+
{
|
|
5834
|
+
label: labels?.dateLabel || "Data de envio",
|
|
5835
|
+
date,
|
|
5836
|
+
time,
|
|
5837
|
+
onDateChange: setDate,
|
|
5838
|
+
onTimeChange: setTime,
|
|
5839
|
+
disabled: sendToday,
|
|
5840
|
+
timeLabel: labels?.timeLabel || "Hora de envio",
|
|
5841
|
+
testId: "alert-datetime"
|
|
5842
|
+
}
|
|
5843
|
+
),
|
|
5844
|
+
allowEmailCopy && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
5734
5845
|
CheckBox_default,
|
|
5735
5846
|
{
|
|
5736
5847
|
label: labels?.sendCopyToEmailLabel || "Enviar c\xF3pia para e-mail",
|
|
@@ -5743,7 +5854,7 @@ var DateStep = ({
|
|
|
5743
5854
|
|
|
5744
5855
|
// src/components/AlertManager/AlertSteps/PreviewStep.tsx
|
|
5745
5856
|
var import_react18 = require("react");
|
|
5746
|
-
var
|
|
5857
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
5747
5858
|
var PreviewStep = ({ imageLink, defaultImage }) => {
|
|
5748
5859
|
const title = useAlertFormStore((state) => state.title);
|
|
5749
5860
|
const message = useAlertFormStore((state) => state.message);
|
|
@@ -5768,11 +5879,11 @@ var PreviewStep = ({ imageLink, defaultImage }) => {
|
|
|
5768
5879
|
};
|
|
5769
5880
|
}, [imageUrl, image]);
|
|
5770
5881
|
const finalImageUrl = imageLink || imageUrl || defaultImage || void 0;
|
|
5771
|
-
return /* @__PURE__ */ (0,
|
|
5772
|
-
finalImageUrl && /* @__PURE__ */ (0,
|
|
5773
|
-
/* @__PURE__ */ (0,
|
|
5774
|
-
/* @__PURE__ */ (0,
|
|
5775
|
-
/* @__PURE__ */ (0,
|
|
5882
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("section", { className: "flex flex-col gap-4", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "bg-background-50 px-5 py-6 flex flex-col items-center gap-4 rounded-xl", children: [
|
|
5883
|
+
finalImageUrl && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("img", { src: finalImageUrl, alt: title || "Imagem do alerta" }),
|
|
5884
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "flex flex-col items-center text-center gap-3", children: [
|
|
5885
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Text_default, { size: "lg", weight: "semibold", children: title || "Nenhum T\xEDtulo de Alerta" }),
|
|
5886
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Text_default, { size: "sm", weight: "normal", className: "text-text-500", children: message || "Aqui aparecer\xE1 a mensagem do alerta definido pelo usu\xE1rio" })
|
|
5776
5887
|
] })
|
|
5777
5888
|
] }) });
|
|
5778
5889
|
};
|
|
@@ -5858,8 +5969,8 @@ var handleNext = ({
|
|
|
5858
5969
|
};
|
|
5859
5970
|
|
|
5860
5971
|
// src/components/AlertManager/AlertsManager.tsx
|
|
5861
|
-
var
|
|
5862
|
-
var StepWrapper = ({ children }) => /* @__PURE__ */ (0,
|
|
5972
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
5973
|
+
var StepWrapper = ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { children });
|
|
5863
5974
|
var AlertsManager = ({
|
|
5864
5975
|
config,
|
|
5865
5976
|
isOpen = false,
|
|
@@ -5994,11 +6105,11 @@ var AlertsManager = ({
|
|
|
5994
6105
|
const currentStepContent = (0, import_react19.useMemo)(() => {
|
|
5995
6106
|
if (customSteps?.[currentStep]?.component) {
|
|
5996
6107
|
const CustomComponent = customSteps[currentStep].component;
|
|
5997
|
-
return /* @__PURE__ */ (0,
|
|
6108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StepWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(CustomComponent, { onNext: handleNext2, onPrevious: handlePrevious }) });
|
|
5998
6109
|
}
|
|
5999
6110
|
switch (currentStep) {
|
|
6000
6111
|
case 0:
|
|
6001
|
-
return /* @__PURE__ */ (0,
|
|
6112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StepWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6002
6113
|
MessageStep,
|
|
6003
6114
|
{
|
|
6004
6115
|
labels,
|
|
@@ -6006,7 +6117,7 @@ var AlertsManager = ({
|
|
|
6006
6117
|
}
|
|
6007
6118
|
) });
|
|
6008
6119
|
case 1:
|
|
6009
|
-
return /* @__PURE__ */ (0,
|
|
6120
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StepWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6010
6121
|
RecipientsStep,
|
|
6011
6122
|
{
|
|
6012
6123
|
categories,
|
|
@@ -6015,7 +6126,7 @@ var AlertsManager = ({
|
|
|
6015
6126
|
}
|
|
6016
6127
|
) });
|
|
6017
6128
|
case 2:
|
|
6018
|
-
return /* @__PURE__ */ (0,
|
|
6129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StepWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6019
6130
|
DateStep,
|
|
6020
6131
|
{
|
|
6021
6132
|
labels,
|
|
@@ -6024,7 +6135,7 @@ var AlertsManager = ({
|
|
|
6024
6135
|
}
|
|
6025
6136
|
) });
|
|
6026
6137
|
case 3:
|
|
6027
|
-
return /* @__PURE__ */ (0,
|
|
6138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(StepWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(PreviewStep, { imageLink, defaultImage }) });
|
|
6028
6139
|
default:
|
|
6029
6140
|
return null;
|
|
6030
6141
|
}
|
|
@@ -6041,7 +6152,7 @@ var AlertsManager = ({
|
|
|
6041
6152
|
]);
|
|
6042
6153
|
const isFirstStep = currentStep === 0;
|
|
6043
6154
|
const isLastStep = currentStep === steps.length - 1;
|
|
6044
|
-
return /* @__PURE__ */ (0,
|
|
6155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6045
6156
|
Modal_default,
|
|
6046
6157
|
{
|
|
6047
6158
|
isOpen: isModalOpen,
|
|
@@ -6049,33 +6160,33 @@ var AlertsManager = ({
|
|
|
6049
6160
|
title: labels?.modalTitle || "Enviar aviso",
|
|
6050
6161
|
size: "md",
|
|
6051
6162
|
contentClassName: "p-0",
|
|
6052
|
-
footer: /* @__PURE__ */ (0,
|
|
6053
|
-
/* @__PURE__ */ (0,
|
|
6054
|
-
!isFirstStep && /* @__PURE__ */ (0,
|
|
6163
|
+
footer: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex gap-3 justify-end w-full", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex gap-3", children: [
|
|
6164
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Button_default, { variant: "link", size: "small", onClick: handleCloseModal, children: labels?.cancelButton || "Cancelar" }),
|
|
6165
|
+
!isFirstStep && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6055
6166
|
Button_default,
|
|
6056
6167
|
{
|
|
6057
6168
|
variant: "outline",
|
|
6058
6169
|
size: "small",
|
|
6059
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
6170
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_phosphor_react13.CaretLeft, {}),
|
|
6060
6171
|
onClick: handlePrevious,
|
|
6061
6172
|
children: labels?.previousButton || "Anterior"
|
|
6062
6173
|
}
|
|
6063
6174
|
),
|
|
6064
|
-
isLastStep ? /* @__PURE__ */ (0,
|
|
6175
|
+
isLastStep ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6065
6176
|
Button_default,
|
|
6066
6177
|
{
|
|
6067
6178
|
variant: "solid",
|
|
6068
|
-
iconLeft: /* @__PURE__ */ (0,
|
|
6179
|
+
iconLeft: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_phosphor_react13.PaperPlaneTilt, {}),
|
|
6069
6180
|
size: "small",
|
|
6070
6181
|
onClick: handleFinish,
|
|
6071
6182
|
disabled: !canFinish2(),
|
|
6072
6183
|
children: labels?.finishButton || "Enviar Aviso"
|
|
6073
6184
|
}
|
|
6074
|
-
) : /* @__PURE__ */ (0,
|
|
6185
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6075
6186
|
Button_default,
|
|
6076
6187
|
{
|
|
6077
6188
|
variant: "solid",
|
|
6078
|
-
iconRight: /* @__PURE__ */ (0,
|
|
6189
|
+
iconRight: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_phosphor_react13.CaretRight, {}),
|
|
6079
6190
|
size: "small",
|
|
6080
6191
|
onClick: handleNext2,
|
|
6081
6192
|
disabled: !isCurrentStepValid2(),
|
|
@@ -6083,8 +6194,8 @@ var AlertsManager = ({
|
|
|
6083
6194
|
}
|
|
6084
6195
|
)
|
|
6085
6196
|
] }) }),
|
|
6086
|
-
children: /* @__PURE__ */ (0,
|
|
6087
|
-
/* @__PURE__ */ (0,
|
|
6197
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "flex flex-col h-[calc(100vh-14rem)] max-h-[600px]", children: [
|
|
6198
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "shrink-0 px-6 pt-4", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
6088
6199
|
Stepper_default,
|
|
6089
6200
|
{
|
|
6090
6201
|
steps: dynamicSteps,
|
|
@@ -6094,7 +6205,7 @@ var AlertsManager = ({
|
|
|
6094
6205
|
progressText: `Etapa ${currentStep + 1} de ${steps.length}`
|
|
6095
6206
|
}
|
|
6096
6207
|
) }),
|
|
6097
|
-
/* @__PURE__ */ (0,
|
|
6208
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex-1 overflow-y-auto px-6 pb-4", children: currentStepContent })
|
|
6098
6209
|
] })
|
|
6099
6210
|
}
|
|
6100
6211
|
);
|