analytica-frontend-lib 1.1.58 → 1.1.60
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/DropdownMenu/index.js +1 -1
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs +1 -1
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js +1 -1
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +1 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/Search/index.js +1 -1
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs +1 -1
- package/dist/Search/index.mjs.map +1 -1
- package/dist/SubjectInfo/index.d.mts +2 -0
- package/dist/SubjectInfo/index.d.ts +2 -0
- package/dist/SubjectInfo/index.js +313 -0
- package/dist/SubjectInfo/index.js.map +1 -0
- package/dist/SubjectInfo/index.mjs +293 -0
- package/dist/SubjectInfo/index.mjs.map +1 -0
- package/dist/SubjectInfo-DZvZ5alE.d.mts +37 -0
- package/dist/SubjectInfo-DZvZ5alE.d.ts +37 -0
- package/dist/index.css +73 -12
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +689 -381
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +684 -371
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +73 -12
- package/dist/styles.css.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -2504,7 +2504,7 @@ var ProfileMenuHeader = forwardRef10(({ className, name, email, store: _store, .
|
|
|
2504
2504
|
className: cn("flex flex-row gap-4 items-center", className),
|
|
2505
2505
|
...props,
|
|
2506
2506
|
children: [
|
|
2507
|
-
/* @__PURE__ */ jsx20("span", { className: "size-16 bg-primary-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx20(User, { size: 34, className: "text-primary-
|
|
2507
|
+
/* @__PURE__ */ jsx20("span", { className: "size-16 bg-primary-100 rounded-full flex items-center justify-center", children: /* @__PURE__ */ jsx20(User, { size: 34, className: "text-primary-800" }) }),
|
|
2508
2508
|
/* @__PURE__ */ jsxs13("div", { className: "flex flex-col ", children: [
|
|
2509
2509
|
/* @__PURE__ */ jsx20(Text_default, { size: "xl", weight: "bold", color: "text-text-950", children: name }),
|
|
2510
2510
|
/* @__PURE__ */ jsx20(Text_default, { size: "md", color: "text-text-600", children: email })
|
|
@@ -6317,6 +6317,313 @@ var MultipleChoiceList = ({
|
|
|
6317
6317
|
);
|
|
6318
6318
|
};
|
|
6319
6319
|
|
|
6320
|
+
// src/assets/icons/subjects/BookOpenText.tsx
|
|
6321
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
6322
|
+
var BookOpenText = ({
|
|
6323
|
+
size,
|
|
6324
|
+
color
|
|
6325
|
+
}) => /* @__PURE__ */ jsx33(
|
|
6326
|
+
"svg",
|
|
6327
|
+
{
|
|
6328
|
+
width: size,
|
|
6329
|
+
height: size,
|
|
6330
|
+
viewBox: "0 0 32 32",
|
|
6331
|
+
fill: "none",
|
|
6332
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6333
|
+
children: /* @__PURE__ */ jsx33(
|
|
6334
|
+
"path",
|
|
6335
|
+
{
|
|
6336
|
+
d: "M29 6H20C19.2238 6 18.4582 6.18073 17.7639 6.52786C17.0697 6.875 16.4657 7.37902 16 8C15.5343 7.37902 14.9303 6.875 14.2361 6.52786C13.5418 6.18073 12.7762 6 12 6H3C2.73478 6 2.48043 6.10536 2.29289 6.29289C2.10536 6.48043 2 6.73478 2 7V25C2 25.2652 2.10536 25.5196 2.29289 25.7071C2.48043 25.8946 2.73478 26 3 26H12C12.7956 26 13.5587 26.3161 14.1213 26.8787C14.6839 27.4413 15 28.2044 15 29C15 29.2652 15.1054 29.5196 15.2929 29.7071C15.4804 29.8946 15.7348 30 16 30C16.2652 30 16.5196 29.8946 16.7071 29.7071C16.8946 29.5196 17 29.2652 17 29C17 28.2044 17.3161 27.4413 17.8787 26.8787C18.4413 26.3161 19.2044 26 20 26H29C29.2652 26 29.5196 25.8946 29.7071 25.7071C29.8946 25.5196 30 25.2652 30 25V7C30 6.73478 29.8946 6.48043 29.7071 6.29289C29.5196 6.10536 29.2652 6 29 6ZM12 24H4V8H12C12.7956 8 13.5587 8.31607 14.1213 8.87868C14.6839 9.44129 15 10.2044 15 11V25C14.1353 24.3493 13.0821 23.9983 12 24ZM28 24H20C18.9179 23.9983 17.8647 24.3493 17 25V11C17 10.2044 17.3161 9.44129 17.8787 8.87868C18.4413 8.31607 19.2044 8 20 8H28V24ZM20 11H25C25.2652 11 25.5196 11.1054 25.7071 11.2929C25.8946 11.4804 26 11.7348 26 12C26 12.2652 25.8946 12.5196 25.7071 12.7071C25.5196 12.8946 25.2652 13 25 13H20C19.7348 13 19.4804 12.8946 19.2929 12.7071C19.1054 12.5196 19 12.2652 19 12C19 11.7348 19.1054 11.4804 19.2929 11.2929C19.4804 11.1054 19.7348 11 20 11ZM26 16C26 16.2652 25.8946 16.5196 25.7071 16.7071C25.5196 16.8946 25.2652 17 25 17H20C19.7348 17 19.4804 16.8946 19.2929 16.7071C19.1054 16.5196 19 16.2652 19 16C19 15.7348 19.1054 15.4804 19.2929 15.2929C19.4804 15.1054 19.7348 15 20 15H25C25.2652 15 25.5196 15.1054 25.7071 15.2929C25.8946 15.4804 26 15.7348 26 16ZM26 20C26 20.2652 25.8946 20.5196 25.7071 20.7071C25.5196 20.8946 25.2652 21 25 21H20C19.7348 21 19.4804 20.8946 19.2929 20.7071C19.1054 20.5196 19 20.2652 19 20C19 19.7348 19.1054 19.4804 19.2929 19.2929C19.4804 19.1054 19.7348 19 20 19H25C25.2652 19 25.5196 19.1054 25.7071 19.2929C25.8946 19.4804 26 19.7348 26 20Z",
|
|
6337
|
+
fill: color
|
|
6338
|
+
}
|
|
6339
|
+
)
|
|
6340
|
+
}
|
|
6341
|
+
);
|
|
6342
|
+
|
|
6343
|
+
// src/assets/icons/subjects/ChatEN.tsx
|
|
6344
|
+
import { jsx as jsx34, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6345
|
+
var ChatEN2 = ({ size, color }) => /* @__PURE__ */ jsxs26(
|
|
6346
|
+
"svg",
|
|
6347
|
+
{
|
|
6348
|
+
width: size,
|
|
6349
|
+
height: size,
|
|
6350
|
+
viewBox: "0 0 32 32",
|
|
6351
|
+
fill: "none",
|
|
6352
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6353
|
+
children: [
|
|
6354
|
+
/* @__PURE__ */ jsx34(
|
|
6355
|
+
"path",
|
|
6356
|
+
{
|
|
6357
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
6358
|
+
fill: color
|
|
6359
|
+
}
|
|
6360
|
+
),
|
|
6361
|
+
/* @__PURE__ */ jsx34(
|
|
6362
|
+
"path",
|
|
6363
|
+
{
|
|
6364
|
+
d: "M22.5488 12V20.5312H21.0781L17.252 14.4199V20.5312H15.7812V12H17.252L21.0898 18.123V12H22.5488Z",
|
|
6365
|
+
fill: color
|
|
6366
|
+
}
|
|
6367
|
+
),
|
|
6368
|
+
/* @__PURE__ */ jsx34(
|
|
6369
|
+
"path",
|
|
6370
|
+
{
|
|
6371
|
+
d: "M14.584 19.3652V20.5312H10.0547V19.3652H14.584ZM10.4707 12V20.5312H9V12H10.4707ZM13.9922 15.5625V16.7109H10.0547V15.5625H13.9922ZM14.5547 12V13.1719H10.0547V12H14.5547Z",
|
|
6372
|
+
fill: color
|
|
6373
|
+
}
|
|
6374
|
+
)
|
|
6375
|
+
]
|
|
6376
|
+
}
|
|
6377
|
+
);
|
|
6378
|
+
|
|
6379
|
+
// src/assets/icons/subjects/ChatES.tsx
|
|
6380
|
+
import { jsx as jsx35, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
6381
|
+
var ChatES2 = ({ size, color }) => /* @__PURE__ */ jsxs27(
|
|
6382
|
+
"svg",
|
|
6383
|
+
{
|
|
6384
|
+
width: size,
|
|
6385
|
+
height: size,
|
|
6386
|
+
viewBox: "0 0 32 32",
|
|
6387
|
+
fill: "none",
|
|
6388
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6389
|
+
children: [
|
|
6390
|
+
/* @__PURE__ */ jsx35(
|
|
6391
|
+
"path",
|
|
6392
|
+
{
|
|
6393
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
6394
|
+
fill: color
|
|
6395
|
+
}
|
|
6396
|
+
),
|
|
6397
|
+
/* @__PURE__ */ jsx35(
|
|
6398
|
+
"path",
|
|
6399
|
+
{
|
|
6400
|
+
d: "M21.1426 17.8027C21.1426 17.627 21.1152 17.4707 21.0605 17.334C21.0098 17.1973 20.918 17.0723 20.7852 16.959C20.6523 16.8457 20.4648 16.7363 20.2227 16.6309C19.9844 16.5215 19.6797 16.4102 19.3086 16.2969C18.9023 16.1719 18.5273 16.0332 18.1836 15.8809C17.8438 15.7246 17.5469 15.5449 17.293 15.3418C17.0391 15.1348 16.8418 14.8984 16.7012 14.6328C16.5605 14.3633 16.4902 14.0527 16.4902 13.7012C16.4902 13.3535 16.5625 13.0371 16.707 12.752C16.8555 12.4668 17.0645 12.2207 17.334 12.0137C17.6074 11.8027 17.9297 11.6406 18.3008 11.5273C18.6719 11.4102 19.082 11.3516 19.5312 11.3516C20.1641 11.3516 20.709 11.4688 21.166 11.7031C21.627 11.9375 21.9805 12.252 22.2266 12.6465C22.4766 13.041 22.6016 13.4766 22.6016 13.9531H21.1426C21.1426 13.6719 21.082 13.4238 20.9609 13.209C20.8438 12.9902 20.6641 12.8184 20.4219 12.6934C20.1836 12.5684 19.8809 12.5059 19.5137 12.5059C19.166 12.5059 18.877 12.5586 18.6465 12.6641C18.416 12.7695 18.2441 12.9121 18.1309 13.0918C18.0176 13.2715 17.9609 13.4746 17.9609 13.7012C17.9609 13.8613 17.998 14.0078 18.0723 14.1406C18.1465 14.2695 18.2598 14.3906 18.4121 14.5039C18.5645 14.6133 18.7559 14.7168 18.9863 14.8145C19.2168 14.9121 19.4883 15.0059 19.8008 15.0957C20.2734 15.2363 20.6855 15.3926 21.0371 15.5645C21.3887 15.7324 21.6816 15.9238 21.916 16.1387C22.1504 16.3535 22.3262 16.5977 22.4434 16.8711C22.5605 17.1406 22.6191 17.4473 22.6191 17.791C22.6191 18.1504 22.5469 18.4746 22.4023 18.7637C22.2578 19.0488 22.0508 19.293 21.7812 19.4961C21.5156 19.6953 21.1953 19.8496 20.8203 19.959C20.4492 20.0645 20.0352 20.1172 19.5781 20.1172C19.168 20.1172 18.7637 20.0625 18.3652 19.9531C17.9707 19.8438 17.6113 19.6777 17.2871 19.4551C16.9629 19.2285 16.7051 18.9473 16.5137 18.6113C16.3223 18.2715 16.2266 17.875 16.2266 17.4219H17.6973C17.6973 17.6992 17.7441 17.9355 17.8379 18.1309C17.9355 18.3262 18.0703 18.4863 18.2422 18.6113C18.4141 18.7324 18.6133 18.8223 18.8398 18.8809C19.0703 18.9395 19.3164 18.9688 19.5781 18.9688C19.9219 18.9688 20.209 18.9199 20.4395 18.8223C20.6738 18.7246 20.8496 18.5879 20.9668 18.4121C21.084 18.2363 21.1426 18.0332 21.1426 17.8027Z",
|
|
6401
|
+
fill: color
|
|
6402
|
+
}
|
|
6403
|
+
),
|
|
6404
|
+
/* @__PURE__ */ jsx35(
|
|
6405
|
+
"path",
|
|
6406
|
+
{
|
|
6407
|
+
d: "M15.4512 18.834V20H10.9219V18.834H15.4512ZM11.3379 11.4688V20H9.86719V11.4688H11.3379ZM14.8594 15.0312V16.1797H10.9219V15.0312H14.8594ZM15.4219 11.4688V12.6406H10.9219V11.4688H15.4219Z",
|
|
6408
|
+
fill: color
|
|
6409
|
+
}
|
|
6410
|
+
)
|
|
6411
|
+
]
|
|
6412
|
+
}
|
|
6413
|
+
);
|
|
6414
|
+
|
|
6415
|
+
// src/assets/icons/subjects/ChatPT.tsx
|
|
6416
|
+
import { jsx as jsx36, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
6417
|
+
var ChatPT2 = ({ size, color }) => /* @__PURE__ */ jsxs28(
|
|
6418
|
+
"svg",
|
|
6419
|
+
{
|
|
6420
|
+
width: size,
|
|
6421
|
+
height: size,
|
|
6422
|
+
viewBox: "0 0 32 32",
|
|
6423
|
+
fill: "none",
|
|
6424
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6425
|
+
children: [
|
|
6426
|
+
/* @__PURE__ */ jsx36(
|
|
6427
|
+
"path",
|
|
6428
|
+
{
|
|
6429
|
+
d: "M27 6H5.00004C4.4696 6 3.9609 6.21071 3.58582 6.58579C3.21075 6.96086 3.00004 7.46957 3.00004 8V28C2.99773 28.3814 3.10562 28.7553 3.31074 29.0768C3.51585 29.3984 3.80947 29.6538 4.15629 29.8125C4.42057 29.9356 4.7085 29.9995 5.00004 30C5.46954 29.9989 5.92347 29.8315 6.28129 29.5275L6.29254 29.5187L10.375 26H27C27.5305 26 28.0392 25.7893 28.4142 25.4142C28.7893 25.0391 29 24.5304 29 24V8C29 7.46957 28.7893 6.96086 28.4142 6.58579C28.0392 6.21071 27.5305 6 27 6ZM27 24H10C9.75992 24.0001 9.52787 24.0866 9.34629 24.2437L5.00004 28V8H27V24Z",
|
|
6430
|
+
fill: color
|
|
6431
|
+
}
|
|
6432
|
+
),
|
|
6433
|
+
/* @__PURE__ */ jsx36(
|
|
6434
|
+
"path",
|
|
6435
|
+
{
|
|
6436
|
+
d: "M21.1758 12V20.5312H19.7168V12H21.1758ZM23.8535 12V13.1719H17.0625V12H23.8535Z",
|
|
6437
|
+
fill: color
|
|
6438
|
+
}
|
|
6439
|
+
),
|
|
6440
|
+
/* @__PURE__ */ jsx36(
|
|
6441
|
+
"path",
|
|
6442
|
+
{
|
|
6443
|
+
d: "M13.2402 17.3496H11.0195V16.1836H13.2402C13.627 16.1836 13.9395 16.1211 14.1777 15.9961C14.416 15.8711 14.5898 15.6992 14.6992 15.4805C14.8125 15.2578 14.8691 15.0039 14.8691 14.7188C14.8691 14.4492 14.8125 14.1973 14.6992 13.9629C14.5898 13.7246 14.416 13.5332 14.1777 13.3887C13.9395 13.2441 13.627 13.1719 13.2402 13.1719H11.4707V20.5312H10V12H13.2402C13.9004 12 14.4609 12.1172 14.9219 12.3516C15.3867 12.582 15.7402 12.9023 15.9824 13.3125C16.2246 13.7188 16.3457 14.1836 16.3457 14.707C16.3457 15.2578 16.2246 15.7305 15.9824 16.125C15.7402 16.5195 15.3867 16.8223 14.9219 17.0332C14.4609 17.2441 13.9004 17.3496 13.2402 17.3496Z",
|
|
6444
|
+
fill: color
|
|
6445
|
+
}
|
|
6446
|
+
)
|
|
6447
|
+
]
|
|
6448
|
+
}
|
|
6449
|
+
);
|
|
6450
|
+
|
|
6451
|
+
// src/assets/icons/subjects/HeadCircuit.tsx
|
|
6452
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
6453
|
+
var HeadCircuit = ({
|
|
6454
|
+
size,
|
|
6455
|
+
color
|
|
6456
|
+
}) => /* @__PURE__ */ jsx37(
|
|
6457
|
+
"svg",
|
|
6458
|
+
{
|
|
6459
|
+
width: size,
|
|
6460
|
+
height: size,
|
|
6461
|
+
viewBox: "0 0 32 32",
|
|
6462
|
+
fill: "none",
|
|
6463
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6464
|
+
children: /* @__PURE__ */ jsx37(
|
|
6465
|
+
"path",
|
|
6466
|
+
{
|
|
6467
|
+
d: "M24.0625 21.4338C25.327 20.3715 26.3372 19.0392 27.0187 17.5348C27.7001 16.0304 28.0354 14.3924 28 12.7413C27.875 7.02751 23.2987 2.31626 17.595 2.01626C16.1233 1.93616 14.6506 2.15261 13.2642 2.65277C11.8778 3.15293 10.6061 3.92659 9.52453 4.92781C8.44297 5.92903 7.57365 7.13739 6.96819 8.48112C6.36272 9.82485 6.03347 11.2766 5.99997 12.75L3.19372 18.1475C3.18247 18.17 3.17122 18.1925 3.16122 18.215C2.96003 18.6839 2.94569 19.212 3.12114 19.6912C3.29659 20.1704 3.64855 20.5644 4.10497 20.7925L4.13622 20.8063L6.99997 22.1175V26C6.99997 26.5304 7.21068 27.0392 7.58576 27.4142C7.96083 27.7893 8.46954 28 8.99997 28H15C15.2652 28 15.5195 27.8947 15.7071 27.7071C15.8946 27.5196 16 27.2652 16 27C16 26.7348 15.8946 26.4804 15.7071 26.2929C15.5195 26.1054 15.2652 26 15 26H8.99997V21.4763C9.00011 21.2846 8.94517 21.0969 8.84168 20.9356C8.73818 20.7742 8.5905 20.646 8.41622 20.5663L4.99997 19L7.88372 13.4575C7.95889 13.3166 7.99878 13.1597 7.99997 13C7.99968 10.9604 8.69216 8.98124 9.96395 7.38674C11.2357 5.79224 13.0114 4.677 15 4.22376V6.17251C14.3328 6.4084 13.7704 6.87258 13.4123 7.48299C13.0543 8.0934 12.9235 8.81075 13.0432 9.50824C13.1628 10.2057 13.5252 10.8385 14.0663 11.2946C14.6074 11.7508 15.2923 12.0009 16 12.0009C16.7077 12.0009 17.3926 11.7508 17.9336 11.2946C18.4747 10.8385 18.8371 10.2057 18.9568 9.50824C19.0764 8.81075 18.9457 8.0934 18.5876 7.48299C18.2295 6.87258 17.6672 6.4084 17 6.17251V4.00001C17.1625 4.00001 17.325 4.00001 17.4875 4.01251C19.2608 4.11409 20.9649 4.73627 22.3864 5.80124C23.808 6.86621 24.8841 8.32669 25.48 10H23C22.8533 9.99995 22.7084 10.0322 22.5755 10.0944C22.4426 10.1566 22.3251 10.2473 22.2312 10.36L19.0425 14.1875C18.3774 13.9397 17.6462 13.9351 16.9781 14.1744C16.3099 14.4138 15.748 14.8817 15.3916 15.4954C15.0352 16.1092 14.9073 16.8292 15.0306 17.5281C15.1538 18.227 15.5203 18.8598 16.0652 19.3146C16.61 19.7694 17.2981 20.0168 18.0078 20.0132C18.7175 20.0095 19.4031 19.755 19.9432 19.2947C20.4834 18.8343 20.8433 18.1977 20.9594 17.4976C21.0754 16.7974 20.9402 16.0788 20.5775 15.4688L23.4687 12H25.9425C25.9725 12.26 25.9908 12.5225 25.9975 12.7875C26.0286 14.2198 25.7187 15.639 25.0931 16.9278C24.4676 18.2167 23.5445 19.3383 22.4 20.2C22.2589 20.3057 22.1484 20.4469 22.0794 20.6091C22.0105 20.7713 21.9857 20.9489 22.0075 21.1238L23.0075 29.1238C23.0379 29.3653 23.1554 29.5874 23.3379 29.7485C23.5203 29.9095 23.7553 29.9985 23.9987 29.9988C24.0405 29.9988 24.0822 29.9962 24.1237 29.9913C24.2541 29.975 24.3799 29.9333 24.4942 29.8684C24.6084 29.8035 24.7087 29.7168 24.7893 29.6131C24.87 29.5094 24.9295 29.3909 24.9643 29.2643C24.9992 29.1376 25.0087 29.0054 24.9925 28.875L24.0625 21.4338ZM16 10C15.8022 10 15.6088 9.94136 15.4444 9.83148C15.28 9.7216 15.1518 9.56542 15.0761 9.38269C15.0004 9.19997 14.9806 8.9989 15.0192 8.80492C15.0578 8.61094 15.153 8.43275 15.2929 8.2929C15.4327 8.15305 15.6109 8.05781 15.8049 8.01922C15.9989 7.98064 16.1999 8.00044 16.3827 8.07613C16.5654 8.15182 16.7216 8.27999 16.8314 8.44444C16.9413 8.60889 17 8.80223 17 9.00001C17 9.26523 16.8946 9.51958 16.7071 9.70712C16.5195 9.89465 16.2652 10 16 10ZM18 18C17.8022 18 17.6088 17.9414 17.4444 17.8315C17.28 17.7216 17.1518 17.5654 17.0761 17.3827C17.0004 17.2 16.9806 16.9989 17.0192 16.8049C17.0578 16.6109 17.153 16.4328 17.2929 16.2929C17.4327 16.153 17.6109 16.0578 17.8049 16.0192C17.9989 15.9806 18.1999 16.0004 18.3827 16.0761C18.5654 16.1518 18.7216 16.28 18.8314 16.4444C18.9413 16.6089 19 16.8022 19 17C19 17.2652 18.8946 17.5196 18.7071 17.7071C18.5195 17.8947 18.2652 18 18 18Z",
|
|
6468
|
+
fill: color
|
|
6469
|
+
}
|
|
6470
|
+
)
|
|
6471
|
+
}
|
|
6472
|
+
);
|
|
6473
|
+
|
|
6474
|
+
// src/assets/icons/subjects/Microscope.tsx
|
|
6475
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
6476
|
+
var Microscope = ({
|
|
6477
|
+
size,
|
|
6478
|
+
color
|
|
6479
|
+
}) => /* @__PURE__ */ jsx38(
|
|
6480
|
+
"svg",
|
|
6481
|
+
{
|
|
6482
|
+
width: size,
|
|
6483
|
+
height: size,
|
|
6484
|
+
viewBox: "0 0 32 32",
|
|
6485
|
+
fill: "none",
|
|
6486
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6487
|
+
children: /* @__PURE__ */ jsx38(
|
|
6488
|
+
"path",
|
|
6489
|
+
{
|
|
6490
|
+
d: "M28 26H25.4925C26.7637 24.4552 27.5898 22.5932 27.882 20.6142C28.1743 18.6351 27.9216 16.6138 27.1511 14.7676C26.3806 12.9213 25.1215 11.32 23.5092 10.1358C21.8968 8.95153 19.9922 8.22913 18 8.04625V4C18 3.46957 17.7893 2.96086 17.4142 2.58579C17.0391 2.21071 16.5304 2 16 2H10C9.46957 2 8.96086 2.21071 8.58579 2.58579C8.21071 2.96086 8 3.46957 8 4V17C8 17.5304 8.21071 18.0391 8.58579 18.4142C8.96086 18.7893 9.46957 19 10 19H16C16.5304 19 17.0391 18.7893 17.4142 18.4142C17.7893 18.0391 18 17.5304 18 17V10.0575C19.7643 10.2552 21.4306 10.9703 22.7895 12.1128C24.1483 13.2553 25.1389 14.7742 25.6366 16.4783C26.1343 18.1824 26.1169 19.9957 25.5866 21.69C25.0563 23.3842 24.0368 24.8838 22.6562 26H4C3.73478 26 3.48043 26.1054 3.29289 26.2929C3.10536 26.4804 3 26.7348 3 27C3 27.2652 3.10536 27.5196 3.29289 27.7071C3.48043 27.8946 3.73478 28 4 28H28C28.2652 28 28.5196 27.8946 28.7071 27.7071C28.8946 27.5196 29 27.2652 29 27C29 26.7348 28.8946 26.4804 28.7071 26.2929C28.5196 26.1054 28.2652 26 28 26ZM16 17H10V4H16V17ZM9 23C8.73478 23 8.48043 22.8946 8.29289 22.7071C8.10536 22.5196 8 22.2652 8 22C8 21.7348 8.10536 21.4804 8.29289 21.2929C8.48043 21.1054 8.73478 21 9 21H17C17.2652 21 17.5196 21.1054 17.7071 21.2929C17.8946 21.4804 18 21.7348 18 22C18 22.2652 17.8946 22.5196 17.7071 22.7071C17.5196 22.8946 17.2652 23 17 23H9Z",
|
|
6491
|
+
fill: color
|
|
6492
|
+
}
|
|
6493
|
+
)
|
|
6494
|
+
}
|
|
6495
|
+
);
|
|
6496
|
+
|
|
6497
|
+
// src/enums/SubjectEnum.ts
|
|
6498
|
+
var SubjectEnum = /* @__PURE__ */ ((SubjectEnum2) => {
|
|
6499
|
+
SubjectEnum2["FISICA"] = "F\xEDsica";
|
|
6500
|
+
SubjectEnum2["HISTORIA"] = "Hist\xF3ria";
|
|
6501
|
+
SubjectEnum2["LITERATURA"] = "Literatura";
|
|
6502
|
+
SubjectEnum2["GEOGRAFIA"] = "Geografia";
|
|
6503
|
+
SubjectEnum2["BIOLOGIA"] = "Biologia";
|
|
6504
|
+
SubjectEnum2["PORTUGUES"] = "Portugu\xEAs";
|
|
6505
|
+
SubjectEnum2["QUIMICA"] = "Qu\xEDmica";
|
|
6506
|
+
SubjectEnum2["ARTES"] = "Artes";
|
|
6507
|
+
SubjectEnum2["MATEMATICA"] = "Matem\xE1tica";
|
|
6508
|
+
SubjectEnum2["FILOSOFIA"] = "Filosofia";
|
|
6509
|
+
SubjectEnum2["ESPANHOL"] = "Espanhol";
|
|
6510
|
+
SubjectEnum2["REDACAO"] = "Reda\xE7\xE3o";
|
|
6511
|
+
SubjectEnum2["SOCIOLOGIA"] = "Sociologia";
|
|
6512
|
+
SubjectEnum2["INGLES"] = "Ingl\xEAs";
|
|
6513
|
+
SubjectEnum2["EDUCACAO_FISICA"] = "Ed. F\xEDsica";
|
|
6514
|
+
SubjectEnum2["TRILHAS"] = "Trilhas";
|
|
6515
|
+
return SubjectEnum2;
|
|
6516
|
+
})(SubjectEnum || {});
|
|
6517
|
+
|
|
6518
|
+
// src/components/SubjectInfo/SubjectInfo.tsx
|
|
6519
|
+
import {
|
|
6520
|
+
ArticleNyTimes,
|
|
6521
|
+
Atom,
|
|
6522
|
+
BookBookmark,
|
|
6523
|
+
DribbbleLogo,
|
|
6524
|
+
Flask,
|
|
6525
|
+
GlobeHemisphereWest,
|
|
6526
|
+
MathOperations,
|
|
6527
|
+
Palette,
|
|
6528
|
+
Person,
|
|
6529
|
+
Scroll
|
|
6530
|
+
} from "phosphor-react";
|
|
6531
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
6532
|
+
var SubjectInfo = {
|
|
6533
|
+
["F\xEDsica" /* FISICA */]: {
|
|
6534
|
+
icon: /* @__PURE__ */ jsx39(Atom, { size: 17 }),
|
|
6535
|
+
colorClass: "bg-subject-1",
|
|
6536
|
+
name: "F\xEDsica" /* FISICA */
|
|
6537
|
+
},
|
|
6538
|
+
["Hist\xF3ria" /* HISTORIA */]: {
|
|
6539
|
+
icon: /* @__PURE__ */ jsx39(Scroll, { size: 17 }),
|
|
6540
|
+
colorClass: "bg-subject-2",
|
|
6541
|
+
name: "Hist\xF3ria" /* HISTORIA */
|
|
6542
|
+
},
|
|
6543
|
+
["Literatura" /* LITERATURA */]: {
|
|
6544
|
+
icon: /* @__PURE__ */ jsx39(BookOpenText, { size: 17, color: "#000000" }),
|
|
6545
|
+
colorClass: "bg-subject-3",
|
|
6546
|
+
name: "Literatura" /* LITERATURA */
|
|
6547
|
+
},
|
|
6548
|
+
["Geografia" /* GEOGRAFIA */]: {
|
|
6549
|
+
icon: /* @__PURE__ */ jsx39(GlobeHemisphereWest, { size: 17 }),
|
|
6550
|
+
colorClass: "bg-subject-4",
|
|
6551
|
+
name: "Geografia" /* GEOGRAFIA */
|
|
6552
|
+
},
|
|
6553
|
+
["Biologia" /* BIOLOGIA */]: {
|
|
6554
|
+
icon: /* @__PURE__ */ jsx39(Microscope, { size: 17, color: "#000000" }),
|
|
6555
|
+
colorClass: "bg-subject-5",
|
|
6556
|
+
name: "Biologia" /* BIOLOGIA */
|
|
6557
|
+
},
|
|
6558
|
+
["Portugu\xEAs" /* PORTUGUES */]: {
|
|
6559
|
+
icon: /* @__PURE__ */ jsx39(ChatPT2, { size: 17, color: "#000000" }),
|
|
6560
|
+
colorClass: "bg-subject-6",
|
|
6561
|
+
name: "Portugu\xEAs" /* PORTUGUES */
|
|
6562
|
+
},
|
|
6563
|
+
["Qu\xEDmica" /* QUIMICA */]: {
|
|
6564
|
+
icon: /* @__PURE__ */ jsx39(Flask, { size: 17 }),
|
|
6565
|
+
colorClass: "bg-subject-7",
|
|
6566
|
+
name: "Qu\xEDmica" /* QUIMICA */
|
|
6567
|
+
},
|
|
6568
|
+
["Artes" /* ARTES */]: {
|
|
6569
|
+
icon: /* @__PURE__ */ jsx39(Palette, { size: 17 }),
|
|
6570
|
+
colorClass: "bg-subject-8",
|
|
6571
|
+
name: "Artes" /* ARTES */
|
|
6572
|
+
},
|
|
6573
|
+
["Matem\xE1tica" /* MATEMATICA */]: {
|
|
6574
|
+
icon: /* @__PURE__ */ jsx39(MathOperations, { size: 17 }),
|
|
6575
|
+
colorClass: "bg-subject-9",
|
|
6576
|
+
name: "Matem\xE1tica" /* MATEMATICA */
|
|
6577
|
+
},
|
|
6578
|
+
["Filosofia" /* FILOSOFIA */]: {
|
|
6579
|
+
icon: /* @__PURE__ */ jsx39(HeadCircuit, { size: 17, color: "#000000" }),
|
|
6580
|
+
colorClass: "bg-subject-10",
|
|
6581
|
+
name: "Filosofia" /* FILOSOFIA */
|
|
6582
|
+
},
|
|
6583
|
+
["Espanhol" /* ESPANHOL */]: {
|
|
6584
|
+
icon: /* @__PURE__ */ jsx39(ChatES2, { size: 17, color: "#000000" }),
|
|
6585
|
+
colorClass: "bg-subject-11",
|
|
6586
|
+
name: "Espanhol" /* ESPANHOL */
|
|
6587
|
+
},
|
|
6588
|
+
["Reda\xE7\xE3o" /* REDACAO */]: {
|
|
6589
|
+
icon: /* @__PURE__ */ jsx39(ArticleNyTimes, { size: 17 }),
|
|
6590
|
+
colorClass: "bg-subject-12",
|
|
6591
|
+
name: "Reda\xE7\xE3o" /* REDACAO */
|
|
6592
|
+
},
|
|
6593
|
+
["Sociologia" /* SOCIOLOGIA */]: {
|
|
6594
|
+
icon: /* @__PURE__ */ jsx39(Person, { size: 17 }),
|
|
6595
|
+
colorClass: "bg-subject-13",
|
|
6596
|
+
name: "Sociologia" /* SOCIOLOGIA */
|
|
6597
|
+
},
|
|
6598
|
+
["Ingl\xEAs" /* INGLES */]: {
|
|
6599
|
+
icon: /* @__PURE__ */ jsx39(ChatEN2, { size: 17, color: "#000000" }),
|
|
6600
|
+
colorClass: "bg-subject-14",
|
|
6601
|
+
name: "Ingl\xEAs" /* INGLES */
|
|
6602
|
+
},
|
|
6603
|
+
["Ed. F\xEDsica" /* EDUCACAO_FISICA */]: {
|
|
6604
|
+
icon: /* @__PURE__ */ jsx39(DribbbleLogo, { size: 17 }),
|
|
6605
|
+
colorClass: "bg-subject-15",
|
|
6606
|
+
name: "Ed. F\xEDsica" /* EDUCACAO_FISICA */
|
|
6607
|
+
},
|
|
6608
|
+
["Trilhas" /* TRILHAS */]: {
|
|
6609
|
+
icon: /* @__PURE__ */ jsx39(BookBookmark, { size: 17 }),
|
|
6610
|
+
colorClass: "bg-subject-16",
|
|
6611
|
+
name: "Trilhas" /* TRILHAS */
|
|
6612
|
+
}
|
|
6613
|
+
};
|
|
6614
|
+
var getSubjectData = (subject) => {
|
|
6615
|
+
return SubjectInfo[subject];
|
|
6616
|
+
};
|
|
6617
|
+
var getSubjectIcon = (subject) => {
|
|
6618
|
+
return SubjectInfo[subject].icon;
|
|
6619
|
+
};
|
|
6620
|
+
var getSubjectColorClass = (subject) => {
|
|
6621
|
+
return SubjectInfo[subject].colorClass;
|
|
6622
|
+
};
|
|
6623
|
+
var getSubjectName = (subject) => {
|
|
6624
|
+
return SubjectInfo[subject].name;
|
|
6625
|
+
};
|
|
6626
|
+
|
|
6320
6627
|
// src/hooks/useMobile.ts
|
|
6321
6628
|
import { useState as useState14, useEffect as useEffect12 } from "react";
|
|
6322
6629
|
var MOBILE_WIDTH = 500;
|
|
@@ -6386,7 +6693,7 @@ import {
|
|
|
6386
6693
|
useId as useId10
|
|
6387
6694
|
} from "react";
|
|
6388
6695
|
import { CaretDown, Check as Check5, WarningCircle as WarningCircle5 } from "phosphor-react";
|
|
6389
|
-
import { Fragment as Fragment7, jsx as
|
|
6696
|
+
import { Fragment as Fragment7, jsx as jsx40, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
6390
6697
|
var VARIANT_CLASSES4 = {
|
|
6391
6698
|
outlined: "border-2 rounded-lg focus:border-primary-950",
|
|
6392
6699
|
underlined: "border-b-2 focus:border-primary-950",
|
|
@@ -6446,7 +6753,7 @@ function getLabelAsNode(children) {
|
|
|
6446
6753
|
}
|
|
6447
6754
|
const flattened = Children4.toArray(children);
|
|
6448
6755
|
if (flattened.length === 1) return flattened[0];
|
|
6449
|
-
return /* @__PURE__ */
|
|
6756
|
+
return /* @__PURE__ */ jsx40(Fragment7, { children: flattened });
|
|
6450
6757
|
}
|
|
6451
6758
|
var injectStore4 = (children, store, size, selectId) => {
|
|
6452
6759
|
return Children4.map(children, (child) => {
|
|
@@ -6557,8 +6864,8 @@ var Select = ({
|
|
|
6557
6864
|
}
|
|
6558
6865
|
}, [propValue]);
|
|
6559
6866
|
const sizeClasses = SIZE_CLASSES12[size];
|
|
6560
|
-
return /* @__PURE__ */
|
|
6561
|
-
label && /* @__PURE__ */
|
|
6867
|
+
return /* @__PURE__ */ jsxs29("div", { className: cn("w-full", className), children: [
|
|
6868
|
+
label && /* @__PURE__ */ jsx40(
|
|
6562
6869
|
"label",
|
|
6563
6870
|
{
|
|
6564
6871
|
htmlFor: selectId,
|
|
@@ -6566,11 +6873,11 @@ var Select = ({
|
|
|
6566
6873
|
children: label
|
|
6567
6874
|
}
|
|
6568
6875
|
),
|
|
6569
|
-
/* @__PURE__ */
|
|
6570
|
-
(helperText || errorMessage) && /* @__PURE__ */
|
|
6571
|
-
helperText && /* @__PURE__ */
|
|
6572
|
-
errorMessage && /* @__PURE__ */
|
|
6573
|
-
/* @__PURE__ */
|
|
6876
|
+
/* @__PURE__ */ jsx40("div", { className: cn("relative w-full"), ref: selectRef, children: injectStore4(children, store, size, selectId) }),
|
|
6877
|
+
(helperText || errorMessage) && /* @__PURE__ */ jsxs29("div", { className: "mt-1.5 gap-1.5", children: [
|
|
6878
|
+
helperText && /* @__PURE__ */ jsx40("p", { className: "text-sm text-text-500", children: helperText }),
|
|
6879
|
+
errorMessage && /* @__PURE__ */ jsxs29("p", { className: "flex gap-1 items-center text-sm text-indicator-error", children: [
|
|
6880
|
+
/* @__PURE__ */ jsx40(WarningCircle5, { size: 16 }),
|
|
6574
6881
|
" ",
|
|
6575
6882
|
errorMessage
|
|
6576
6883
|
] })
|
|
@@ -6584,7 +6891,7 @@ var SelectValue = ({
|
|
|
6584
6891
|
const store = useSelectStore(externalStore);
|
|
6585
6892
|
const selectedLabel = useStore4(store, (s) => s.selectedLabel);
|
|
6586
6893
|
const value = useStore4(store, (s) => s.value);
|
|
6587
|
-
return /* @__PURE__ */
|
|
6894
|
+
return /* @__PURE__ */ jsx40("span", { className: "text-inherit flex gap-2 items-center", children: selectedLabel || placeholder || value });
|
|
6588
6895
|
};
|
|
6589
6896
|
var SelectTrigger = forwardRef16(
|
|
6590
6897
|
({
|
|
@@ -6603,7 +6910,7 @@ var SelectTrigger = forwardRef16(
|
|
|
6603
6910
|
const variantClasses = VARIANT_CLASSES4[variant];
|
|
6604
6911
|
const heightClasses = HEIGHT_CLASSES[size];
|
|
6605
6912
|
const paddingClasses = PADDING_CLASSES[size];
|
|
6606
|
-
return /* @__PURE__ */
|
|
6913
|
+
return /* @__PURE__ */ jsxs29(
|
|
6607
6914
|
"button",
|
|
6608
6915
|
{
|
|
6609
6916
|
ref,
|
|
@@ -6625,7 +6932,7 @@ var SelectTrigger = forwardRef16(
|
|
|
6625
6932
|
...props,
|
|
6626
6933
|
children: [
|
|
6627
6934
|
props.children,
|
|
6628
|
-
/* @__PURE__ */
|
|
6935
|
+
/* @__PURE__ */ jsx40(
|
|
6629
6936
|
CaretDown,
|
|
6630
6937
|
{
|
|
6631
6938
|
className: cn(
|
|
@@ -6653,7 +6960,7 @@ var SelectContent = forwardRef16(
|
|
|
6653
6960
|
const open = useStore4(store, (s) => s.open);
|
|
6654
6961
|
if (!open) return null;
|
|
6655
6962
|
const getPositionClasses = () => `w-full min-w-full absolute ${SIDE_CLASSES2[side]} ${ALIGN_CLASSES2[align]}`;
|
|
6656
|
-
return /* @__PURE__ */
|
|
6963
|
+
return /* @__PURE__ */ jsx40(
|
|
6657
6964
|
"div",
|
|
6658
6965
|
{
|
|
6659
6966
|
role: "menu",
|
|
@@ -6697,7 +7004,7 @@ var SelectItem = forwardRef16(
|
|
|
6697
7004
|
}
|
|
6698
7005
|
props.onClick?.(e);
|
|
6699
7006
|
};
|
|
6700
|
-
return /* @__PURE__ */
|
|
7007
|
+
return /* @__PURE__ */ jsxs29(
|
|
6701
7008
|
"div",
|
|
6702
7009
|
{
|
|
6703
7010
|
role: "menuitem",
|
|
@@ -6717,7 +7024,7 @@ var SelectItem = forwardRef16(
|
|
|
6717
7024
|
tabIndex: disabled ? -1 : 0,
|
|
6718
7025
|
...props,
|
|
6719
7026
|
children: [
|
|
6720
|
-
/* @__PURE__ */
|
|
7027
|
+
/* @__PURE__ */ jsx40("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: selectedValue === value && /* @__PURE__ */ jsx40(Check5, { className: "" }) }),
|
|
6721
7028
|
children
|
|
6722
7029
|
]
|
|
6723
7030
|
}
|
|
@@ -6739,7 +7046,7 @@ import {
|
|
|
6739
7046
|
useState as useState15
|
|
6740
7047
|
} from "react";
|
|
6741
7048
|
import { CaretLeft as CaretLeft2, CaretRight as CaretRight4 } from "phosphor-react";
|
|
6742
|
-
import { jsx as
|
|
7049
|
+
import { jsx as jsx41, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
6743
7050
|
var createMenuStore = (onValueChange) => create6((set) => ({
|
|
6744
7051
|
value: "",
|
|
6745
7052
|
setValue: (value) => {
|
|
@@ -6777,7 +7084,7 @@ var Menu = forwardRef17(
|
|
|
6777
7084
|
}, [defaultValue, propValue, setValue]);
|
|
6778
7085
|
const baseClasses = variant === "menu-overflow" ? "w-fit py-2 flex flex-row items-center justify-center" : "w-full py-2 flex flex-row items-center justify-center";
|
|
6779
7086
|
const variantClasses = VARIANT_CLASSES5[variant];
|
|
6780
|
-
return /* @__PURE__ */
|
|
7087
|
+
return /* @__PURE__ */ jsx41(
|
|
6781
7088
|
"div",
|
|
6782
7089
|
{
|
|
6783
7090
|
ref,
|
|
@@ -6797,7 +7104,7 @@ var MenuContent = forwardRef17(
|
|
|
6797
7104
|
({ className, children, variant = "menu", ...props }, ref) => {
|
|
6798
7105
|
const baseClasses = "w-full flex flex-row items-center gap-2";
|
|
6799
7106
|
const variantClasses = variant === "menu2" || variant === "menu-overflow" ? "overflow-x-auto scroll-smooth" : "";
|
|
6800
|
-
return /* @__PURE__ */
|
|
7107
|
+
return /* @__PURE__ */ jsx41(
|
|
6801
7108
|
"ul",
|
|
6802
7109
|
{
|
|
6803
7110
|
ref,
|
|
@@ -6849,7 +7156,7 @@ var MenuItem = forwardRef17(
|
|
|
6849
7156
|
...props
|
|
6850
7157
|
};
|
|
6851
7158
|
const variants = {
|
|
6852
|
-
menu: /* @__PURE__ */
|
|
7159
|
+
menu: /* @__PURE__ */ jsx41(
|
|
6853
7160
|
"li",
|
|
6854
7161
|
{
|
|
6855
7162
|
"data-variant": "menu",
|
|
@@ -6864,7 +7171,7 @@ var MenuItem = forwardRef17(
|
|
|
6864
7171
|
children
|
|
6865
7172
|
}
|
|
6866
7173
|
),
|
|
6867
|
-
menu2: /* @__PURE__ */
|
|
7174
|
+
menu2: /* @__PURE__ */ jsxs30(
|
|
6868
7175
|
"li",
|
|
6869
7176
|
{
|
|
6870
7177
|
"data-variant": "menu2",
|
|
@@ -6875,7 +7182,7 @@ var MenuItem = forwardRef17(
|
|
|
6875
7182
|
`,
|
|
6876
7183
|
...commonProps,
|
|
6877
7184
|
children: [
|
|
6878
|
-
/* @__PURE__ */
|
|
7185
|
+
/* @__PURE__ */ jsx41(
|
|
6879
7186
|
"span",
|
|
6880
7187
|
{
|
|
6881
7188
|
className: cn(
|
|
@@ -6885,11 +7192,11 @@ var MenuItem = forwardRef17(
|
|
|
6885
7192
|
children
|
|
6886
7193
|
}
|
|
6887
7194
|
),
|
|
6888
|
-
selectedValue === value && /* @__PURE__ */
|
|
7195
|
+
selectedValue === value && /* @__PURE__ */ jsx41("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
6889
7196
|
]
|
|
6890
7197
|
}
|
|
6891
7198
|
),
|
|
6892
|
-
"menu-overflow": /* @__PURE__ */
|
|
7199
|
+
"menu-overflow": /* @__PURE__ */ jsxs30(
|
|
6893
7200
|
"li",
|
|
6894
7201
|
{
|
|
6895
7202
|
"data-variant": "menu-overflow",
|
|
@@ -6900,7 +7207,7 @@ var MenuItem = forwardRef17(
|
|
|
6900
7207
|
`,
|
|
6901
7208
|
...commonProps,
|
|
6902
7209
|
children: [
|
|
6903
|
-
/* @__PURE__ */
|
|
7210
|
+
/* @__PURE__ */ jsx41(
|
|
6904
7211
|
"span",
|
|
6905
7212
|
{
|
|
6906
7213
|
className: cn(
|
|
@@ -6910,11 +7217,11 @@ var MenuItem = forwardRef17(
|
|
|
6910
7217
|
children
|
|
6911
7218
|
}
|
|
6912
7219
|
),
|
|
6913
|
-
selectedValue === value && /* @__PURE__ */
|
|
7220
|
+
selectedValue === value && /* @__PURE__ */ jsx41("div", { className: "h-1 w-full bg-primary-950 rounded-lg" })
|
|
6914
7221
|
]
|
|
6915
7222
|
}
|
|
6916
7223
|
),
|
|
6917
|
-
breadcrumb: /* @__PURE__ */
|
|
7224
|
+
breadcrumb: /* @__PURE__ */ jsxs30(
|
|
6918
7225
|
"li",
|
|
6919
7226
|
{
|
|
6920
7227
|
"data-variant": "breadcrumb",
|
|
@@ -6926,7 +7233,7 @@ var MenuItem = forwardRef17(
|
|
|
6926
7233
|
`,
|
|
6927
7234
|
...commonProps,
|
|
6928
7235
|
children: [
|
|
6929
|
-
/* @__PURE__ */
|
|
7236
|
+
/* @__PURE__ */ jsx41(
|
|
6930
7237
|
"span",
|
|
6931
7238
|
{
|
|
6932
7239
|
className: cn(
|
|
@@ -6936,7 +7243,7 @@ var MenuItem = forwardRef17(
|
|
|
6936
7243
|
children
|
|
6937
7244
|
}
|
|
6938
7245
|
),
|
|
6939
|
-
separator && /* @__PURE__ */
|
|
7246
|
+
separator && /* @__PURE__ */ jsx41(
|
|
6940
7247
|
CaretRight4,
|
|
6941
7248
|
{
|
|
6942
7249
|
size: 16,
|
|
@@ -6991,25 +7298,25 @@ var MenuOverflow = ({
|
|
|
6991
7298
|
window.removeEventListener("resize", checkScroll);
|
|
6992
7299
|
};
|
|
6993
7300
|
}, []);
|
|
6994
|
-
return /* @__PURE__ */
|
|
7301
|
+
return /* @__PURE__ */ jsxs30(
|
|
6995
7302
|
"div",
|
|
6996
7303
|
{
|
|
6997
7304
|
"data-testid": "menu-overflow-wrapper",
|
|
6998
7305
|
className: cn("relative w-full overflow-hidden", className),
|
|
6999
7306
|
children: [
|
|
7000
|
-
showLeftArrow && /* @__PURE__ */
|
|
7307
|
+
showLeftArrow && /* @__PURE__ */ jsxs30(
|
|
7001
7308
|
"button",
|
|
7002
7309
|
{
|
|
7003
7310
|
onClick: () => internalScroll(containerRef.current, "left"),
|
|
7004
7311
|
className: "absolute left-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer",
|
|
7005
7312
|
"data-testid": "scroll-left-button",
|
|
7006
7313
|
children: [
|
|
7007
|
-
/* @__PURE__ */
|
|
7008
|
-
/* @__PURE__ */
|
|
7314
|
+
/* @__PURE__ */ jsx41(CaretLeft2, { size: 16 }),
|
|
7315
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "Scroll left" })
|
|
7009
7316
|
]
|
|
7010
7317
|
}
|
|
7011
7318
|
),
|
|
7012
|
-
/* @__PURE__ */
|
|
7319
|
+
/* @__PURE__ */ jsx41(
|
|
7013
7320
|
Menu,
|
|
7014
7321
|
{
|
|
7015
7322
|
defaultValue,
|
|
@@ -7017,18 +7324,18 @@ var MenuOverflow = ({
|
|
|
7017
7324
|
value,
|
|
7018
7325
|
variant: "menu2",
|
|
7019
7326
|
...props,
|
|
7020
|
-
children: /* @__PURE__ */
|
|
7327
|
+
children: /* @__PURE__ */ jsx41(MenuContent, { ref: containerRef, variant: "menu2", children })
|
|
7021
7328
|
}
|
|
7022
7329
|
),
|
|
7023
|
-
showRightArrow && /* @__PURE__ */
|
|
7330
|
+
showRightArrow && /* @__PURE__ */ jsxs30(
|
|
7024
7331
|
"button",
|
|
7025
7332
|
{
|
|
7026
7333
|
onClick: () => internalScroll(containerRef.current, "right"),
|
|
7027
7334
|
className: "absolute right-0 top-1/2 -translate-y-1/2 z-10 flex h-8 w-8 items-center justify-center rounded-full bg-white shadow-md cursor-pointer",
|
|
7028
7335
|
"data-testid": "scroll-right-button",
|
|
7029
7336
|
children: [
|
|
7030
|
-
/* @__PURE__ */
|
|
7031
|
-
/* @__PURE__ */
|
|
7337
|
+
/* @__PURE__ */ jsx41(CaretRight4, { size: 16 }),
|
|
7338
|
+
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "Scroll right" })
|
|
7032
7339
|
]
|
|
7033
7340
|
}
|
|
7034
7341
|
)
|
|
@@ -7049,7 +7356,7 @@ var Menu_default = Menu;
|
|
|
7049
7356
|
|
|
7050
7357
|
// src/components/Skeleton/Skeleton.tsx
|
|
7051
7358
|
import { forwardRef as forwardRef18 } from "react";
|
|
7052
|
-
import { jsx as
|
|
7359
|
+
import { jsx as jsx42, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
7053
7360
|
var SKELETON_ANIMATION_CLASSES = {
|
|
7054
7361
|
pulse: "animate-pulse",
|
|
7055
7362
|
none: ""
|
|
@@ -7086,13 +7393,13 @@ var Skeleton = forwardRef18(
|
|
|
7086
7393
|
height: typeof height === "number" ? `${height}px` : height
|
|
7087
7394
|
};
|
|
7088
7395
|
if (variant === "text" && lines > 1) {
|
|
7089
|
-
return /* @__PURE__ */
|
|
7396
|
+
return /* @__PURE__ */ jsx42(
|
|
7090
7397
|
"div",
|
|
7091
7398
|
{
|
|
7092
7399
|
ref,
|
|
7093
7400
|
className: cn("flex flex-col", spacingClass, className),
|
|
7094
7401
|
...props,
|
|
7095
|
-
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */
|
|
7402
|
+
children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ jsx42(
|
|
7096
7403
|
"div",
|
|
7097
7404
|
{
|
|
7098
7405
|
className: cn(variantClass, animationClass),
|
|
@@ -7103,7 +7410,7 @@ var Skeleton = forwardRef18(
|
|
|
7103
7410
|
}
|
|
7104
7411
|
);
|
|
7105
7412
|
}
|
|
7106
|
-
return /* @__PURE__ */
|
|
7413
|
+
return /* @__PURE__ */ jsx42(
|
|
7107
7414
|
"div",
|
|
7108
7415
|
{
|
|
7109
7416
|
ref,
|
|
@@ -7116,11 +7423,11 @@ var Skeleton = forwardRef18(
|
|
|
7116
7423
|
}
|
|
7117
7424
|
);
|
|
7118
7425
|
var SkeletonText = forwardRef18(
|
|
7119
|
-
(props, ref) => /* @__PURE__ */
|
|
7426
|
+
(props, ref) => /* @__PURE__ */ jsx42(Skeleton, { ref, variant: "text", ...props })
|
|
7120
7427
|
);
|
|
7121
|
-
var SkeletonCircle = forwardRef18((props, ref) => /* @__PURE__ */
|
|
7122
|
-
var SkeletonRectangle = forwardRef18((props, ref) => /* @__PURE__ */
|
|
7123
|
-
var SkeletonRounded = forwardRef18((props, ref) => /* @__PURE__ */
|
|
7428
|
+
var SkeletonCircle = forwardRef18((props, ref) => /* @__PURE__ */ jsx42(Skeleton, { ref, variant: "circular", ...props }));
|
|
7429
|
+
var SkeletonRectangle = forwardRef18((props, ref) => /* @__PURE__ */ jsx42(Skeleton, { ref, variant: "rectangular", ...props }));
|
|
7430
|
+
var SkeletonRounded = forwardRef18((props, ref) => /* @__PURE__ */ jsx42(Skeleton, { ref, variant: "rounded", ...props }));
|
|
7124
7431
|
var SkeletonCard = forwardRef18(
|
|
7125
7432
|
({
|
|
7126
7433
|
showAvatar = true,
|
|
@@ -7131,7 +7438,7 @@ var SkeletonCard = forwardRef18(
|
|
|
7131
7438
|
className = "",
|
|
7132
7439
|
...props
|
|
7133
7440
|
}, ref) => {
|
|
7134
|
-
return /* @__PURE__ */
|
|
7441
|
+
return /* @__PURE__ */ jsxs31(
|
|
7135
7442
|
"div",
|
|
7136
7443
|
{
|
|
7137
7444
|
ref,
|
|
@@ -7141,16 +7448,16 @@ var SkeletonCard = forwardRef18(
|
|
|
7141
7448
|
),
|
|
7142
7449
|
...props,
|
|
7143
7450
|
children: [
|
|
7144
|
-
/* @__PURE__ */
|
|
7145
|
-
showAvatar && /* @__PURE__ */
|
|
7146
|
-
/* @__PURE__ */
|
|
7147
|
-
showTitle && /* @__PURE__ */
|
|
7148
|
-
showDescription && /* @__PURE__ */
|
|
7451
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex items-start space-x-3", children: [
|
|
7452
|
+
showAvatar && /* @__PURE__ */ jsx42(SkeletonCircle, { width: 40, height: 40 }),
|
|
7453
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex-1 space-y-2", children: [
|
|
7454
|
+
showTitle && /* @__PURE__ */ jsx42(SkeletonText, { width: "60%", height: 20 }),
|
|
7455
|
+
showDescription && /* @__PURE__ */ jsx42(SkeletonText, { lines, spacing: "small" })
|
|
7149
7456
|
] })
|
|
7150
7457
|
] }),
|
|
7151
|
-
showActions && /* @__PURE__ */
|
|
7152
|
-
/* @__PURE__ */
|
|
7153
|
-
/* @__PURE__ */
|
|
7458
|
+
showActions && /* @__PURE__ */ jsxs31("div", { className: "flex justify-end space-x-2 mt-4", children: [
|
|
7459
|
+
/* @__PURE__ */ jsx42(SkeletonRectangle, { width: 80, height: 32 }),
|
|
7460
|
+
/* @__PURE__ */ jsx42(SkeletonRectangle, { width: 80, height: 32 })
|
|
7154
7461
|
] })
|
|
7155
7462
|
]
|
|
7156
7463
|
}
|
|
@@ -7167,19 +7474,19 @@ var SkeletonList = forwardRef18(
|
|
|
7167
7474
|
className = "",
|
|
7168
7475
|
...props
|
|
7169
7476
|
}, ref) => {
|
|
7170
|
-
return /* @__PURE__ */
|
|
7171
|
-
showAvatar && /* @__PURE__ */
|
|
7172
|
-
/* @__PURE__ */
|
|
7173
|
-
showTitle && /* @__PURE__ */
|
|
7174
|
-
showDescription && /* @__PURE__ */
|
|
7477
|
+
return /* @__PURE__ */ jsx42("div", { ref, className: cn("space-y-3", className), ...props, children: Array.from({ length: items }, (_, index) => /* @__PURE__ */ jsxs31("div", { className: "flex items-start space-x-3 p-3", children: [
|
|
7478
|
+
showAvatar && /* @__PURE__ */ jsx42(SkeletonCircle, { width: 32, height: 32 }),
|
|
7479
|
+
/* @__PURE__ */ jsxs31("div", { className: "flex-1 space-y-2", children: [
|
|
7480
|
+
showTitle && /* @__PURE__ */ jsx42(SkeletonText, { width: "40%", height: 16 }),
|
|
7481
|
+
showDescription && /* @__PURE__ */ jsx42(SkeletonText, { lines, spacing: "small" })
|
|
7175
7482
|
] })
|
|
7176
7483
|
] }, index)) });
|
|
7177
7484
|
}
|
|
7178
7485
|
);
|
|
7179
7486
|
var SkeletonTable = forwardRef18(
|
|
7180
7487
|
({ rows = 5, columns = 4, showHeader = true, className = "", ...props }, ref) => {
|
|
7181
|
-
return /* @__PURE__ */
|
|
7182
|
-
showHeader && /* @__PURE__ */
|
|
7488
|
+
return /* @__PURE__ */ jsxs31("div", { ref, className: cn("w-full", className), ...props, children: [
|
|
7489
|
+
showHeader && /* @__PURE__ */ jsx42("div", { className: "flex space-x-2 mb-3", children: Array.from({ length: columns }, (_, index) => /* @__PURE__ */ jsx42(
|
|
7183
7490
|
SkeletonText,
|
|
7184
7491
|
{
|
|
7185
7492
|
width: `${100 / columns}%`,
|
|
@@ -7187,7 +7494,7 @@ var SkeletonTable = forwardRef18(
|
|
|
7187
7494
|
},
|
|
7188
7495
|
index
|
|
7189
7496
|
)) }),
|
|
7190
|
-
/* @__PURE__ */
|
|
7497
|
+
/* @__PURE__ */ jsx42("div", { className: "space-y-2", children: Array.from({ length: rows }, (_, rowIndex) => /* @__PURE__ */ jsx42("div", { className: "flex space-x-2", children: Array.from({ length: columns }, (_2, colIndex) => /* @__PURE__ */ jsx42(
|
|
7191
7498
|
SkeletonText,
|
|
7192
7499
|
{
|
|
7193
7500
|
width: `${100 / columns}%`,
|
|
@@ -7200,7 +7507,7 @@ var SkeletonTable = forwardRef18(
|
|
|
7200
7507
|
);
|
|
7201
7508
|
|
|
7202
7509
|
// src/components/NotFound/NotFound.tsx
|
|
7203
|
-
import { jsx as
|
|
7510
|
+
import { jsx as jsx43, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7204
7511
|
var NotFound = ({
|
|
7205
7512
|
title,
|
|
7206
7513
|
description,
|
|
@@ -7243,22 +7550,22 @@ var NotFound = ({
|
|
|
7243
7550
|
const errorTitle = title || getDefaultTitle();
|
|
7244
7551
|
const errorDescription = description || getDefaultDescription();
|
|
7245
7552
|
const errorCode = getErrorCode();
|
|
7246
|
-
return /* @__PURE__ */
|
|
7553
|
+
return /* @__PURE__ */ jsx43(
|
|
7247
7554
|
"div",
|
|
7248
7555
|
{
|
|
7249
7556
|
className: cn(
|
|
7250
7557
|
"flex flex-col w-full h-screen items-center justify-center bg-background-50 px-4",
|
|
7251
7558
|
className
|
|
7252
7559
|
),
|
|
7253
|
-
children: /* @__PURE__ */
|
|
7560
|
+
children: /* @__PURE__ */ jsx43(
|
|
7254
7561
|
"main",
|
|
7255
7562
|
{
|
|
7256
7563
|
role: "main",
|
|
7257
7564
|
"aria-labelledby": "error-title",
|
|
7258
7565
|
"aria-describedby": "error-description",
|
|
7259
7566
|
className: "flex flex-col items-center text-center max-w-md space-y-6",
|
|
7260
|
-
children: /* @__PURE__ */
|
|
7261
|
-
/* @__PURE__ */
|
|
7567
|
+
children: /* @__PURE__ */ jsxs32("section", { "aria-label": `Erro ${errorCode}`, children: [
|
|
7568
|
+
/* @__PURE__ */ jsx43(
|
|
7262
7569
|
"div",
|
|
7263
7570
|
{
|
|
7264
7571
|
className: "text-8xl font-bold text-primary-300 select-none",
|
|
@@ -7266,8 +7573,8 @@ var NotFound = ({
|
|
|
7266
7573
|
children: errorCode
|
|
7267
7574
|
}
|
|
7268
7575
|
),
|
|
7269
|
-
/* @__PURE__ */
|
|
7270
|
-
/* @__PURE__ */
|
|
7576
|
+
/* @__PURE__ */ jsxs32("header", { className: "space-y-2", children: [
|
|
7577
|
+
/* @__PURE__ */ jsx43(
|
|
7271
7578
|
Text_default,
|
|
7272
7579
|
{
|
|
7273
7580
|
size: "xl",
|
|
@@ -7278,9 +7585,9 @@ var NotFound = ({
|
|
|
7278
7585
|
children: errorTitle
|
|
7279
7586
|
}
|
|
7280
7587
|
),
|
|
7281
|
-
/* @__PURE__ */
|
|
7588
|
+
/* @__PURE__ */ jsx43(Text_default, { size: "md", className: "text-text-600", id: "error-description", children: errorDescription })
|
|
7282
7589
|
] }),
|
|
7283
|
-
onButtonClick && /* @__PURE__ */
|
|
7590
|
+
onButtonClick && /* @__PURE__ */ jsx43("nav", { "aria-label": "Navega\xE7\xE3o de erro", children: /* @__PURE__ */ jsx43(
|
|
7284
7591
|
Button_default,
|
|
7285
7592
|
{
|
|
7286
7593
|
onClick: handleButtonClick,
|
|
@@ -7318,7 +7625,7 @@ import {
|
|
|
7318
7625
|
ClosedCaptioning,
|
|
7319
7626
|
DotsThreeVertical as DotsThreeVertical2
|
|
7320
7627
|
} from "phosphor-react";
|
|
7321
|
-
import { jsx as
|
|
7628
|
+
import { jsx as jsx44, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
7322
7629
|
var CONTROLS_HIDE_TIMEOUT = 3e3;
|
|
7323
7630
|
var LEAVE_HIDE_TIMEOUT = 1e3;
|
|
7324
7631
|
var INIT_DELAY = 100;
|
|
@@ -7333,7 +7640,7 @@ var ProgressBar2 = ({
|
|
|
7333
7640
|
duration,
|
|
7334
7641
|
progressPercentage,
|
|
7335
7642
|
onSeek
|
|
7336
|
-
}) => /* @__PURE__ */
|
|
7643
|
+
}) => /* @__PURE__ */ jsx44("div", { className: "px-4 pb-2", children: /* @__PURE__ */ jsx44(
|
|
7337
7644
|
"input",
|
|
7338
7645
|
{
|
|
7339
7646
|
type: "range",
|
|
@@ -7353,17 +7660,17 @@ var VolumeControls = ({
|
|
|
7353
7660
|
isMuted,
|
|
7354
7661
|
onVolumeChange,
|
|
7355
7662
|
onToggleMute
|
|
7356
|
-
}) => /* @__PURE__ */
|
|
7357
|
-
/* @__PURE__ */
|
|
7663
|
+
}) => /* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-2", children: [
|
|
7664
|
+
/* @__PURE__ */ jsx44(
|
|
7358
7665
|
IconButton_default,
|
|
7359
7666
|
{
|
|
7360
|
-
icon: isMuted ? /* @__PURE__ */
|
|
7667
|
+
icon: isMuted ? /* @__PURE__ */ jsx44(SpeakerSlash, { size: 24 }) : /* @__PURE__ */ jsx44(SpeakerHigh2, { size: 24 }),
|
|
7361
7668
|
onClick: onToggleMute,
|
|
7362
7669
|
"aria-label": isMuted ? "Unmute" : "Mute",
|
|
7363
7670
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
7364
7671
|
}
|
|
7365
7672
|
),
|
|
7366
|
-
/* @__PURE__ */
|
|
7673
|
+
/* @__PURE__ */ jsx44(
|
|
7367
7674
|
"input",
|
|
7368
7675
|
{
|
|
7369
7676
|
type: "range",
|
|
@@ -7415,7 +7722,7 @@ var SpeedMenu = ({
|
|
|
7415
7722
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
7416
7723
|
};
|
|
7417
7724
|
}, [showSpeedMenu, onToggleMenu]);
|
|
7418
|
-
const menuContent = /* @__PURE__ */
|
|
7725
|
+
const menuContent = /* @__PURE__ */ jsx44(
|
|
7419
7726
|
"div",
|
|
7420
7727
|
{
|
|
7421
7728
|
ref: speedMenuRef,
|
|
@@ -7426,7 +7733,7 @@ var SpeedMenu = ({
|
|
|
7426
7733
|
top: `${position.top}px`,
|
|
7427
7734
|
left: `${position.left}px`
|
|
7428
7735
|
} : void 0,
|
|
7429
|
-
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((speed) => /* @__PURE__ */
|
|
7736
|
+
children: [0.5, 0.75, 1, 1.25, 1.5, 2].map((speed) => /* @__PURE__ */ jsxs33(
|
|
7430
7737
|
"button",
|
|
7431
7738
|
{
|
|
7432
7739
|
role: "menuitemradio",
|
|
@@ -7443,12 +7750,12 @@ var SpeedMenu = ({
|
|
|
7443
7750
|
}
|
|
7444
7751
|
);
|
|
7445
7752
|
const portalContent = typeof window !== "undefined" && typeof document !== "undefined" ? createPortal(menuContent, document.body) : null;
|
|
7446
|
-
return /* @__PURE__ */
|
|
7447
|
-
/* @__PURE__ */
|
|
7753
|
+
return /* @__PURE__ */ jsxs33("div", { className: "relative", ref: speedMenuContainerRef, children: [
|
|
7754
|
+
/* @__PURE__ */ jsx44(
|
|
7448
7755
|
IconButton_default,
|
|
7449
7756
|
{
|
|
7450
7757
|
ref: buttonRef,
|
|
7451
|
-
icon: /* @__PURE__ */
|
|
7758
|
+
icon: /* @__PURE__ */ jsx44(DotsThreeVertical2, { size: 24 }),
|
|
7452
7759
|
onClick: onToggleMenu,
|
|
7453
7760
|
"aria-label": "Playback speed",
|
|
7454
7761
|
"aria-haspopup": "menu",
|
|
@@ -7843,9 +8150,9 @@ var VideoPlayer = ({
|
|
|
7843
8150
|
toggleFullscreen
|
|
7844
8151
|
]
|
|
7845
8152
|
);
|
|
7846
|
-
return /* @__PURE__ */
|
|
7847
|
-
(title || subtitleText) && /* @__PURE__ */
|
|
7848
|
-
title && /* @__PURE__ */
|
|
8153
|
+
return /* @__PURE__ */ jsxs33("div", { className: cn("flex flex-col", className), children: [
|
|
8154
|
+
(title || subtitleText) && /* @__PURE__ */ jsx44("div", { className: "bg-subject-1 px-8 py-4 flex items-end justify-between min-h-20", children: /* @__PURE__ */ jsxs33("div", { className: "flex flex-col gap-1", children: [
|
|
8155
|
+
title && /* @__PURE__ */ jsx44(
|
|
7849
8156
|
Text_default,
|
|
7850
8157
|
{
|
|
7851
8158
|
as: "h2",
|
|
@@ -7856,7 +8163,7 @@ var VideoPlayer = ({
|
|
|
7856
8163
|
children: title
|
|
7857
8164
|
}
|
|
7858
8165
|
),
|
|
7859
|
-
subtitleText && /* @__PURE__ */
|
|
8166
|
+
subtitleText && /* @__PURE__ */ jsx44(
|
|
7860
8167
|
Text_default,
|
|
7861
8168
|
{
|
|
7862
8169
|
as: "p",
|
|
@@ -7868,7 +8175,7 @@ var VideoPlayer = ({
|
|
|
7868
8175
|
}
|
|
7869
8176
|
)
|
|
7870
8177
|
] }) }),
|
|
7871
|
-
/* @__PURE__ */
|
|
8178
|
+
/* @__PURE__ */ jsxs33(
|
|
7872
8179
|
"section",
|
|
7873
8180
|
{
|
|
7874
8181
|
className: cn(
|
|
@@ -7883,7 +8190,7 @@ var VideoPlayer = ({
|
|
|
7883
8190
|
onTouchStart: handleMouseEnter,
|
|
7884
8191
|
onMouseLeave: handleMouseLeave,
|
|
7885
8192
|
children: [
|
|
7886
|
-
/* @__PURE__ */
|
|
8193
|
+
/* @__PURE__ */ jsx44(
|
|
7887
8194
|
"video",
|
|
7888
8195
|
{
|
|
7889
8196
|
ref: videoRef,
|
|
@@ -7897,7 +8204,7 @@ var VideoPlayer = ({
|
|
|
7897
8204
|
onKeyDown: handleVideoKeyDown,
|
|
7898
8205
|
tabIndex: 0,
|
|
7899
8206
|
"aria-label": title ? `Video: ${title}` : "Video player",
|
|
7900
|
-
children: /* @__PURE__ */
|
|
8207
|
+
children: /* @__PURE__ */ jsx44(
|
|
7901
8208
|
"track",
|
|
7902
8209
|
{
|
|
7903
8210
|
ref: trackRef,
|
|
@@ -7910,26 +8217,26 @@ var VideoPlayer = ({
|
|
|
7910
8217
|
)
|
|
7911
8218
|
}
|
|
7912
8219
|
),
|
|
7913
|
-
!isPlaying && /* @__PURE__ */
|
|
8220
|
+
!isPlaying && /* @__PURE__ */ jsx44("div", { className: "absolute inset-0 flex items-center justify-center bg-black/30 transition-opacity", children: /* @__PURE__ */ jsx44(
|
|
7914
8221
|
IconButton_default,
|
|
7915
8222
|
{
|
|
7916
|
-
icon: /* @__PURE__ */
|
|
8223
|
+
icon: /* @__PURE__ */ jsx44(Play2, { size: 32, weight: "regular", className: "ml-1" }),
|
|
7917
8224
|
onClick: togglePlayPause,
|
|
7918
8225
|
"aria-label": "Play video",
|
|
7919
8226
|
className: "!bg-transparent !text-white !w-auto !h-auto hover:!bg-transparent hover:!text-gray-200"
|
|
7920
8227
|
}
|
|
7921
8228
|
) }),
|
|
7922
|
-
/* @__PURE__ */
|
|
8229
|
+
/* @__PURE__ */ jsx44(
|
|
7923
8230
|
"div",
|
|
7924
8231
|
{
|
|
7925
8232
|
className: cn(
|
|
7926
8233
|
"absolute top-0 left-0 right-0 p-4 bg-gradient-to-b from-black/70 to-transparent transition-opacity",
|
|
7927
8234
|
getTopControlsOpacity()
|
|
7928
8235
|
),
|
|
7929
|
-
children: /* @__PURE__ */
|
|
8236
|
+
children: /* @__PURE__ */ jsx44("div", { className: "flex justify-start", children: /* @__PURE__ */ jsx44(
|
|
7930
8237
|
IconButton_default,
|
|
7931
8238
|
{
|
|
7932
|
-
icon: isFullscreen ? /* @__PURE__ */
|
|
8239
|
+
icon: isFullscreen ? /* @__PURE__ */ jsx44(ArrowsInSimple, { size: 24 }) : /* @__PURE__ */ jsx44(ArrowsOutSimple, { size: 24 }),
|
|
7933
8240
|
onClick: toggleFullscreen,
|
|
7934
8241
|
"aria-label": isFullscreen ? "Exit fullscreen" : "Enter fullscreen",
|
|
7935
8242
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
@@ -7937,7 +8244,7 @@ var VideoPlayer = ({
|
|
|
7937
8244
|
) })
|
|
7938
8245
|
}
|
|
7939
8246
|
),
|
|
7940
|
-
/* @__PURE__ */
|
|
8247
|
+
/* @__PURE__ */ jsxs33(
|
|
7941
8248
|
"div",
|
|
7942
8249
|
{
|
|
7943
8250
|
className: cn(
|
|
@@ -7945,7 +8252,7 @@ var VideoPlayer = ({
|
|
|
7945
8252
|
getBottomControlsOpacity()
|
|
7946
8253
|
),
|
|
7947
8254
|
children: [
|
|
7948
|
-
/* @__PURE__ */
|
|
8255
|
+
/* @__PURE__ */ jsx44(
|
|
7949
8256
|
ProgressBar2,
|
|
7950
8257
|
{
|
|
7951
8258
|
currentTime,
|
|
@@ -7954,18 +8261,18 @@ var VideoPlayer = ({
|
|
|
7954
8261
|
onSeek: handleSeek
|
|
7955
8262
|
}
|
|
7956
8263
|
),
|
|
7957
|
-
/* @__PURE__ */
|
|
7958
|
-
/* @__PURE__ */
|
|
7959
|
-
/* @__PURE__ */
|
|
8264
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center justify-between px-4 pb-4", children: [
|
|
8265
|
+
/* @__PURE__ */ jsxs33("div", { className: "flex items-center gap-4", children: [
|
|
8266
|
+
/* @__PURE__ */ jsx44(
|
|
7960
8267
|
IconButton_default,
|
|
7961
8268
|
{
|
|
7962
|
-
icon: isPlaying ? /* @__PURE__ */
|
|
8269
|
+
icon: isPlaying ? /* @__PURE__ */ jsx44(Pause, { size: 24 }) : /* @__PURE__ */ jsx44(Play2, { size: 24 }),
|
|
7963
8270
|
onClick: togglePlayPause,
|
|
7964
8271
|
"aria-label": isPlaying ? "Pause" : "Play",
|
|
7965
8272
|
className: "!bg-transparent !text-white hover:!bg-white/20"
|
|
7966
8273
|
}
|
|
7967
8274
|
),
|
|
7968
|
-
/* @__PURE__ */
|
|
8275
|
+
/* @__PURE__ */ jsx44(
|
|
7969
8276
|
VolumeControls,
|
|
7970
8277
|
{
|
|
7971
8278
|
volume,
|
|
@@ -7974,10 +8281,10 @@ var VideoPlayer = ({
|
|
|
7974
8281
|
onToggleMute: toggleMute
|
|
7975
8282
|
}
|
|
7976
8283
|
),
|
|
7977
|
-
subtitles && /* @__PURE__ */
|
|
8284
|
+
subtitles && /* @__PURE__ */ jsx44(
|
|
7978
8285
|
IconButton_default,
|
|
7979
8286
|
{
|
|
7980
|
-
icon: /* @__PURE__ */
|
|
8287
|
+
icon: /* @__PURE__ */ jsx44(ClosedCaptioning, { size: 24 }),
|
|
7981
8288
|
onClick: toggleCaptions,
|
|
7982
8289
|
"aria-label": showCaptions ? "Hide captions" : "Show captions",
|
|
7983
8290
|
className: cn(
|
|
@@ -7986,13 +8293,13 @@ var VideoPlayer = ({
|
|
|
7986
8293
|
)
|
|
7987
8294
|
}
|
|
7988
8295
|
),
|
|
7989
|
-
/* @__PURE__ */
|
|
8296
|
+
/* @__PURE__ */ jsxs33(Text_default, { size: "sm", weight: "medium", color: "text-white", children: [
|
|
7990
8297
|
formatTime(currentTime),
|
|
7991
8298
|
" / ",
|
|
7992
8299
|
formatTime(duration)
|
|
7993
8300
|
] })
|
|
7994
8301
|
] }),
|
|
7995
|
-
/* @__PURE__ */
|
|
8302
|
+
/* @__PURE__ */ jsx44("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ jsx44(
|
|
7996
8303
|
SpeedMenu,
|
|
7997
8304
|
{
|
|
7998
8305
|
showSpeedMenu,
|
|
@@ -8016,7 +8323,7 @@ var VideoPlayer_default = VideoPlayer;
|
|
|
8016
8323
|
// src/components/Whiteboard/Whiteboard.tsx
|
|
8017
8324
|
import { useCallback as useCallback3, useState as useState17 } from "react";
|
|
8018
8325
|
import { ArrowsOut } from "phosphor-react";
|
|
8019
|
-
import { Fragment as Fragment8, jsx as
|
|
8326
|
+
import { Fragment as Fragment8, jsx as jsx45, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
8020
8327
|
var IMAGE_WIDTH = 225;
|
|
8021
8328
|
var IMAGE_HEIGHT = 90;
|
|
8022
8329
|
var Whiteboard = ({
|
|
@@ -8054,7 +8361,7 @@ var Whiteboard = ({
|
|
|
8054
8361
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
8055
8362
|
}[imagesPerRow];
|
|
8056
8363
|
if (!images || images.length === 0) {
|
|
8057
|
-
return /* @__PURE__ */
|
|
8364
|
+
return /* @__PURE__ */ jsx45(
|
|
8058
8365
|
"div",
|
|
8059
8366
|
{
|
|
8060
8367
|
className: cn(
|
|
@@ -8062,11 +8369,11 @@ var Whiteboard = ({
|
|
|
8062
8369
|
className
|
|
8063
8370
|
),
|
|
8064
8371
|
...rest,
|
|
8065
|
-
children: /* @__PURE__ */
|
|
8372
|
+
children: /* @__PURE__ */ jsx45("p", { className: "text-gray-400 text-sm", children: "Nenhuma imagem dispon\xEDvel" })
|
|
8066
8373
|
}
|
|
8067
8374
|
);
|
|
8068
8375
|
}
|
|
8069
|
-
return /* @__PURE__ */
|
|
8376
|
+
return /* @__PURE__ */ jsx45(
|
|
8070
8377
|
"div",
|
|
8071
8378
|
{
|
|
8072
8379
|
className: cn(
|
|
@@ -8074,7 +8381,7 @@ var Whiteboard = ({
|
|
|
8074
8381
|
className
|
|
8075
8382
|
),
|
|
8076
8383
|
...rest,
|
|
8077
|
-
children: /* @__PURE__ */
|
|
8384
|
+
children: /* @__PURE__ */ jsx45("div", { className: cn("grid gap-4", gridColsClass), children: images.map((image) => /* @__PURE__ */ jsxs34(
|
|
8078
8385
|
"div",
|
|
8079
8386
|
{
|
|
8080
8387
|
className: "relative group overflow-hidden bg-gray-100 rounded-lg",
|
|
@@ -8082,7 +8389,7 @@ var Whiteboard = ({
|
|
|
8082
8389
|
width: `${IMAGE_WIDTH}px`
|
|
8083
8390
|
},
|
|
8084
8391
|
children: [
|
|
8085
|
-
/* @__PURE__ */
|
|
8392
|
+
/* @__PURE__ */ jsx45(
|
|
8086
8393
|
"div",
|
|
8087
8394
|
{
|
|
8088
8395
|
className: "relative",
|
|
@@ -8090,8 +8397,8 @@ var Whiteboard = ({
|
|
|
8090
8397
|
width: `${IMAGE_WIDTH}px`,
|
|
8091
8398
|
height: `${IMAGE_HEIGHT}px`
|
|
8092
8399
|
},
|
|
8093
|
-
children: imageErrors.has(image.id) ? /* @__PURE__ */
|
|
8094
|
-
/* @__PURE__ */
|
|
8400
|
+
children: imageErrors.has(image.id) ? /* @__PURE__ */ jsx45("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-200", children: /* @__PURE__ */ jsx45("p", { className: "text-gray-500 text-sm text-center px-2", children: "Imagem indispon\xEDvel" }) }) : /* @__PURE__ */ jsxs34(Fragment8, { children: [
|
|
8401
|
+
/* @__PURE__ */ jsx45(
|
|
8095
8402
|
"img",
|
|
8096
8403
|
{
|
|
8097
8404
|
src: image.imageUrl,
|
|
@@ -8101,18 +8408,18 @@ var Whiteboard = ({
|
|
|
8101
8408
|
onError: () => handleImageError(image.id)
|
|
8102
8409
|
}
|
|
8103
8410
|
),
|
|
8104
|
-
/* @__PURE__ */
|
|
8411
|
+
/* @__PURE__ */ jsx45("div", { className: "absolute inset-0 bg-gradient-to-t from-black/20 to-transparent" })
|
|
8105
8412
|
] })
|
|
8106
8413
|
}
|
|
8107
8414
|
),
|
|
8108
|
-
showDownload && /* @__PURE__ */
|
|
8415
|
+
showDownload && /* @__PURE__ */ jsx45(
|
|
8109
8416
|
"button",
|
|
8110
8417
|
{
|
|
8111
8418
|
type: "button",
|
|
8112
8419
|
onClick: () => handleDownload(image),
|
|
8113
8420
|
className: "cursor-pointer absolute bottom-3 right-3 flex items-center justify-center bg-black/20 backdrop-blur-sm rounded hover:bg-black/30 transition-colors duration-200 group/button w-6 h-6",
|
|
8114
8421
|
"aria-label": `Download ${image.title || "imagem"}`,
|
|
8115
|
-
children: /* @__PURE__ */
|
|
8422
|
+
children: /* @__PURE__ */ jsx45(
|
|
8116
8423
|
ArrowsOut,
|
|
8117
8424
|
{
|
|
8118
8425
|
size: 24,
|
|
@@ -8141,7 +8448,7 @@ import {
|
|
|
8141
8448
|
useMemo as useMemo4
|
|
8142
8449
|
} from "react";
|
|
8143
8450
|
import { useLocation, Navigate } from "react-router-dom";
|
|
8144
|
-
import { Fragment as Fragment9, jsx as
|
|
8451
|
+
import { Fragment as Fragment9, jsx as jsx46 } from "react/jsx-runtime";
|
|
8145
8452
|
var AuthContext = createContext(void 0);
|
|
8146
8453
|
var AuthProvider = ({
|
|
8147
8454
|
children,
|
|
@@ -8211,7 +8518,7 @@ var AuthProvider = ({
|
|
|
8211
8518
|
}),
|
|
8212
8519
|
[authState, checkAuth, signOut]
|
|
8213
8520
|
);
|
|
8214
|
-
return /* @__PURE__ */
|
|
8521
|
+
return /* @__PURE__ */ jsx46(AuthContext.Provider, { value: contextValue, children });
|
|
8215
8522
|
};
|
|
8216
8523
|
var useAuth = () => {
|
|
8217
8524
|
const context = useContext(AuthContext);
|
|
@@ -8227,9 +8534,9 @@ var ProtectedRoute = ({
|
|
|
8227
8534
|
additionalCheck
|
|
8228
8535
|
}) => {
|
|
8229
8536
|
const { isAuthenticated, isLoading, ...authState } = useAuth();
|
|
8230
|
-
const defaultLoadingComponent = /* @__PURE__ */
|
|
8537
|
+
const defaultLoadingComponent = /* @__PURE__ */ jsx46("div", { className: "flex items-center justify-center min-h-screen", children: /* @__PURE__ */ jsx46("div", { className: "text-text-950 text-lg", children: "Carregando..." }) });
|
|
8231
8538
|
if (isLoading) {
|
|
8232
|
-
return /* @__PURE__ */
|
|
8539
|
+
return /* @__PURE__ */ jsx46(Fragment9, { children: loadingComponent || defaultLoadingComponent });
|
|
8233
8540
|
}
|
|
8234
8541
|
if (!isAuthenticated) {
|
|
8235
8542
|
if (typeof window !== "undefined") {
|
|
@@ -8240,12 +8547,12 @@ var ProtectedRoute = ({
|
|
|
8240
8547
|
return null;
|
|
8241
8548
|
}
|
|
8242
8549
|
}
|
|
8243
|
-
return /* @__PURE__ */
|
|
8550
|
+
return /* @__PURE__ */ jsx46(Navigate, { to: redirectTo, replace: true });
|
|
8244
8551
|
}
|
|
8245
8552
|
if (additionalCheck && !additionalCheck({ isAuthenticated, isLoading, ...authState })) {
|
|
8246
|
-
return /* @__PURE__ */
|
|
8553
|
+
return /* @__PURE__ */ jsx46(Navigate, { to: redirectTo, replace: true });
|
|
8247
8554
|
}
|
|
8248
|
-
return /* @__PURE__ */
|
|
8555
|
+
return /* @__PURE__ */ jsx46(Fragment9, { children });
|
|
8249
8556
|
};
|
|
8250
8557
|
var PublicRoute = ({
|
|
8251
8558
|
children,
|
|
@@ -8255,15 +8562,15 @@ var PublicRoute = ({
|
|
|
8255
8562
|
}) => {
|
|
8256
8563
|
const { isAuthenticated, isLoading } = useAuth();
|
|
8257
8564
|
if (checkAuthBeforeRender && isLoading) {
|
|
8258
|
-
return /* @__PURE__ */
|
|
8565
|
+
return /* @__PURE__ */ jsx46("div", { className: "flex items-center justify-center min-h-screen", children: /* @__PURE__ */ jsx46("div", { className: "text-text-950 text-lg", children: "Carregando..." }) });
|
|
8259
8566
|
}
|
|
8260
8567
|
if (isAuthenticated && redirectIfAuthenticated) {
|
|
8261
|
-
return /* @__PURE__ */
|
|
8568
|
+
return /* @__PURE__ */ jsx46(Navigate, { to: redirectTo, replace: true });
|
|
8262
8569
|
}
|
|
8263
|
-
return /* @__PURE__ */
|
|
8570
|
+
return /* @__PURE__ */ jsx46(Fragment9, { children });
|
|
8264
8571
|
};
|
|
8265
8572
|
var withAuth = (Component, options = {}) => {
|
|
8266
|
-
return (props) => /* @__PURE__ */
|
|
8573
|
+
return (props) => /* @__PURE__ */ jsx46(ProtectedRoute, { ...options, children: /* @__PURE__ */ jsx46(Component, { ...props }) });
|
|
8267
8574
|
};
|
|
8268
8575
|
var useAuthGuard = (options = {}) => {
|
|
8269
8576
|
const authState = useAuth();
|
|
@@ -8278,7 +8585,7 @@ var useAuthGuard = (options = {}) => {
|
|
|
8278
8585
|
var useRouteAuth = (fallbackPath = "/") => {
|
|
8279
8586
|
const { isAuthenticated, isLoading } = useAuth();
|
|
8280
8587
|
const location = useLocation();
|
|
8281
|
-
const redirectToLogin = () => /* @__PURE__ */
|
|
8588
|
+
const redirectToLogin = () => /* @__PURE__ */ jsx46(Navigate, { to: fallbackPath, state: { from: location }, replace: true });
|
|
8282
8589
|
return {
|
|
8283
8590
|
isAuthenticated,
|
|
8284
8591
|
isLoading,
|
|
@@ -9138,13 +9445,13 @@ var useQuizStore = create7()(
|
|
|
9138
9445
|
var mock_image_question_default = "./mock-image-question-HEZCLFDL.png";
|
|
9139
9446
|
|
|
9140
9447
|
// src/components/Quiz/Quiz.tsx
|
|
9141
|
-
import { Fragment as Fragment10, jsx as
|
|
9448
|
+
import { Fragment as Fragment10, jsx as jsx47, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
9142
9449
|
var getStatusBadge = (status) => {
|
|
9143
9450
|
switch (status) {
|
|
9144
9451
|
case "correct":
|
|
9145
|
-
return /* @__PURE__ */
|
|
9452
|
+
return /* @__PURE__ */ jsx47(Badge_default, { variant: "solid", action: "success", iconLeft: /* @__PURE__ */ jsx47(CheckCircle6, {}), children: "Resposta correta" });
|
|
9146
9453
|
case "incorrect":
|
|
9147
|
-
return /* @__PURE__ */
|
|
9454
|
+
return /* @__PURE__ */ jsx47(Badge_default, { variant: "solid", action: "error", iconLeft: /* @__PURE__ */ jsx47(XCircle5, {}), children: "Resposta incorreta" });
|
|
9148
9455
|
default:
|
|
9149
9456
|
return null;
|
|
9150
9457
|
}
|
|
@@ -9162,7 +9469,7 @@ var Quiz = forwardRef19(({ children, className, variant = "default", ...props },
|
|
|
9162
9469
|
useEffect18(() => {
|
|
9163
9470
|
setVariant(variant);
|
|
9164
9471
|
}, [variant, setVariant]);
|
|
9165
|
-
return /* @__PURE__ */
|
|
9472
|
+
return /* @__PURE__ */ jsx47("div", { ref, className: cn("flex flex-col", className), ...props, children });
|
|
9166
9473
|
});
|
|
9167
9474
|
var QuizHeaderResult = forwardRef19(
|
|
9168
9475
|
({ className, ...props }, ref) => {
|
|
@@ -9203,7 +9510,7 @@ var QuizHeaderResult = forwardRef19(
|
|
|
9203
9510
|
return "N\xE3o foi dessa vez...voc\xEA deixou a resposta em branco";
|
|
9204
9511
|
}
|
|
9205
9512
|
};
|
|
9206
|
-
return /* @__PURE__ */
|
|
9513
|
+
return /* @__PURE__ */ jsxs35(
|
|
9207
9514
|
"div",
|
|
9208
9515
|
{
|
|
9209
9516
|
ref,
|
|
@@ -9214,8 +9521,8 @@ var QuizHeaderResult = forwardRef19(
|
|
|
9214
9521
|
),
|
|
9215
9522
|
...props,
|
|
9216
9523
|
children: [
|
|
9217
|
-
/* @__PURE__ */
|
|
9218
|
-
/* @__PURE__ */
|
|
9524
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-lg", children: "Resultado" }),
|
|
9525
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-700 text-md", children: getLabelByAnswersStatus() })
|
|
9219
9526
|
]
|
|
9220
9527
|
}
|
|
9221
9528
|
);
|
|
@@ -9248,8 +9555,8 @@ var QuizTitle = forwardRef19(
|
|
|
9248
9555
|
const handleCancelExit = () => {
|
|
9249
9556
|
setShowExitConfirmation(false);
|
|
9250
9557
|
};
|
|
9251
|
-
return /* @__PURE__ */
|
|
9252
|
-
/* @__PURE__ */
|
|
9558
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9559
|
+
/* @__PURE__ */ jsxs35(
|
|
9253
9560
|
"div",
|
|
9254
9561
|
{
|
|
9255
9562
|
ref,
|
|
@@ -9259,24 +9566,24 @@ var QuizTitle = forwardRef19(
|
|
|
9259
9566
|
),
|
|
9260
9567
|
...props,
|
|
9261
9568
|
children: [
|
|
9262
|
-
/* @__PURE__ */
|
|
9569
|
+
/* @__PURE__ */ jsx47(
|
|
9263
9570
|
IconButton_default,
|
|
9264
9571
|
{
|
|
9265
|
-
icon: /* @__PURE__ */
|
|
9572
|
+
icon: /* @__PURE__ */ jsx47(CaretLeft3, { size: 24 }),
|
|
9266
9573
|
size: "md",
|
|
9267
9574
|
"aria-label": "Voltar",
|
|
9268
9575
|
onClick: handleBackClick
|
|
9269
9576
|
}
|
|
9270
9577
|
),
|
|
9271
|
-
/* @__PURE__ */
|
|
9272
|
-
/* @__PURE__ */
|
|
9273
|
-
/* @__PURE__ */
|
|
9578
|
+
/* @__PURE__ */ jsxs35("span", { className: "flex flex-col gap-2 text-center", children: [
|
|
9579
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-md", children: quizTitle }),
|
|
9580
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-600 text-xs", children: totalQuestions > 0 ? `${currentQuestionIndex + 1} de ${totalQuestions}` : "0 de 0" })
|
|
9274
9581
|
] }),
|
|
9275
|
-
/* @__PURE__ */
|
|
9582
|
+
/* @__PURE__ */ jsx47("span", { className: "flex flex-row items-center justify-center", children: /* @__PURE__ */ jsx47(Badge_default, { variant: "outlined", action: "info", iconLeft: /* @__PURE__ */ jsx47(Clock2, {}), children: isStarted ? formatTime2(timeElapsed) : "00:00" }) })
|
|
9276
9583
|
]
|
|
9277
9584
|
}
|
|
9278
9585
|
),
|
|
9279
|
-
/* @__PURE__ */
|
|
9586
|
+
/* @__PURE__ */ jsx47(
|
|
9280
9587
|
AlertDialog,
|
|
9281
9588
|
{
|
|
9282
9589
|
isOpen: showExitConfirmation,
|
|
@@ -9294,13 +9601,13 @@ var QuizTitle = forwardRef19(
|
|
|
9294
9601
|
);
|
|
9295
9602
|
var QuizSubTitle = forwardRef19(
|
|
9296
9603
|
({ subTitle, ...props }, ref) => {
|
|
9297
|
-
return /* @__PURE__ */
|
|
9604
|
+
return /* @__PURE__ */ jsx47("div", { className: "px-4 pb-2 pt-6", ...props, ref, children: /* @__PURE__ */ jsx47("p", { className: "font-bold text-lg text-text-950", children: subTitle }) });
|
|
9298
9605
|
}
|
|
9299
9606
|
);
|
|
9300
9607
|
var QuizHeader = () => {
|
|
9301
9608
|
const { getCurrentQuestion, currentQuestionIndex } = useQuizStore();
|
|
9302
9609
|
const currentQuestion = getCurrentQuestion();
|
|
9303
|
-
return /* @__PURE__ */
|
|
9610
|
+
return /* @__PURE__ */ jsx47(
|
|
9304
9611
|
HeaderAlternative,
|
|
9305
9612
|
{
|
|
9306
9613
|
title: currentQuestion ? `Quest\xE3o ${currentQuestionIndex + 1}` : "Quest\xE3o",
|
|
@@ -9310,7 +9617,7 @@ var QuizHeader = () => {
|
|
|
9310
9617
|
);
|
|
9311
9618
|
};
|
|
9312
9619
|
var QuizContainer = forwardRef19(({ children, className, ...props }, ref) => {
|
|
9313
|
-
return /* @__PURE__ */
|
|
9620
|
+
return /* @__PURE__ */ jsx47(
|
|
9314
9621
|
"div",
|
|
9315
9622
|
{
|
|
9316
9623
|
ref,
|
|
@@ -9336,7 +9643,7 @@ var QuizContent = forwardRef19(({ paddingBottom }) => {
|
|
|
9336
9643
|
["IMAGEM" /* IMAGEM */]: QuizImageQuestion
|
|
9337
9644
|
};
|
|
9338
9645
|
const QuestionComponent = currentQuestion ? questionComponents[currentQuestion.questionType] : null;
|
|
9339
|
-
return QuestionComponent ? /* @__PURE__ */
|
|
9646
|
+
return QuestionComponent ? /* @__PURE__ */ jsx47(QuestionComponent, { paddingBottom }) : null;
|
|
9340
9647
|
});
|
|
9341
9648
|
var QuizAlternative = ({ paddingBottom }) => {
|
|
9342
9649
|
const {
|
|
@@ -9373,10 +9680,10 @@ var QuizAlternative = ({ paddingBottom }) => {
|
|
|
9373
9680
|
};
|
|
9374
9681
|
});
|
|
9375
9682
|
if (!alternatives)
|
|
9376
|
-
return /* @__PURE__ */
|
|
9377
|
-
return /* @__PURE__ */
|
|
9378
|
-
/* @__PURE__ */
|
|
9379
|
-
/* @__PURE__ */
|
|
9683
|
+
return /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47("p", { children: "N\xE3o h\xE1 Alternativas" }) });
|
|
9684
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9685
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9686
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47(
|
|
9380
9687
|
AlternativesList,
|
|
9381
9688
|
{
|
|
9382
9689
|
mode: variant === "default" ? "interactive" : "readonly",
|
|
@@ -9474,10 +9781,10 @@ var QuizMultipleChoice = ({ paddingBottom }) => {
|
|
|
9474
9781
|
};
|
|
9475
9782
|
});
|
|
9476
9783
|
if (!choices)
|
|
9477
|
-
return /* @__PURE__ */
|
|
9478
|
-
return /* @__PURE__ */
|
|
9479
|
-
/* @__PURE__ */
|
|
9480
|
-
/* @__PURE__ */
|
|
9784
|
+
return /* @__PURE__ */ jsx47("div", { children: /* @__PURE__ */ jsx47("p", { children: "N\xE3o h\xE1 Escolhas Multiplas" }) });
|
|
9785
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9786
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9787
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47(
|
|
9481
9788
|
MultipleChoiceList,
|
|
9482
9789
|
{
|
|
9483
9790
|
choices,
|
|
@@ -9523,12 +9830,12 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
9523
9830
|
adjustTextareaHeight();
|
|
9524
9831
|
}, [currentAnswer, adjustTextareaHeight]);
|
|
9525
9832
|
if (!currentQuestion) {
|
|
9526
|
-
return /* @__PURE__ */
|
|
9833
|
+
return /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47("p", { className: "text-text-600 text-md", children: "Nenhuma quest\xE3o dispon\xEDvel" }) });
|
|
9527
9834
|
}
|
|
9528
9835
|
const localAnswer = (variant == "result" ? currentQuestionResult?.answer : currentAnswer?.answer) || "";
|
|
9529
|
-
return /* @__PURE__ */
|
|
9530
|
-
/* @__PURE__ */
|
|
9531
|
-
/* @__PURE__ */
|
|
9836
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9837
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Resposta" }),
|
|
9838
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn(variant != "result" && paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "space-y-4 max-h-[600px] overflow-y-auto", children: variant === "default" ? /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47(
|
|
9532
9839
|
TextArea_default,
|
|
9533
9840
|
{
|
|
9534
9841
|
ref: textareaRef,
|
|
@@ -9538,10 +9845,10 @@ var QuizDissertative = ({ paddingBottom }) => {
|
|
|
9538
9845
|
rows: 4,
|
|
9539
9846
|
className: "min-h-[120px] max-h-[400px] resize-none overflow-y-auto"
|
|
9540
9847
|
}
|
|
9541
|
-
) }) : /* @__PURE__ */
|
|
9542
|
-
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */
|
|
9543
|
-
/* @__PURE__ */
|
|
9544
|
-
/* @__PURE__ */
|
|
9848
|
+
) }) : /* @__PURE__ */ jsx47("div", { className: "space-y-4", children: /* @__PURE__ */ jsx47("p", { className: "text-text-600 text-md whitespace-pre-wrap", children: localAnswer || "Nenhuma resposta fornecida" }) }) }) }),
|
|
9849
|
+
variant === "result" && currentQuestionResult?.answerStatus == "RESPOSTA_INCORRETA" /* RESPOSTA_INCORRETA */ && /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9850
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Observa\xE7\xE3o do professor" }),
|
|
9851
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("p", { className: "text-text-600 text-md whitespace-pre-wrap", children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Integer euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse potenti. Nullam ac urna eu felis dapibus condimentum sit amet a augue. Sed non neque elit. Sed ut imperdiet nisi. Proin condimentum fermentum nunc. Etiam pharetra, erat sed fermentum feugiat, velit mauris egestas quam, ut aliquam massa nisl quis neque. Suspendisse in orci enim. Mauris euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Integer euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse potenti. Nullam ac urna eu felis dapibus condimentum sit amet a augue. Sed non neque elit. Sed ut imperdiet nisi. Proin condimentum fermentum nunc. Etiam pharetra, erat sed fermentum feugiat, velit mauris egestas quam, ut aliquam massa nisl quis neque. Suspendisse in orci enim. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Integer euismod, urna eu tincidunt consectetur, nisi nisl aliquam nunc, eget aliquam massa nisl quis neque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Suspendisse potenti. Nullam ac urna eu felis dapibus condimentum sit amet a augue. Sed non neque elit. Sed ut imperdiet nisi. Proin condimentum fermentum nunc. Etiam pharetra, erat sed fermentum feugiat, velit mauris egestas quam, ut aliquam massa nisl quis neque. Suspendisse in orci enim." }) })
|
|
9545
9852
|
] })
|
|
9546
9853
|
] });
|
|
9547
9854
|
};
|
|
@@ -9567,16 +9874,16 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
9567
9874
|
];
|
|
9568
9875
|
const getLetterByIndex = (index) => String.fromCharCode(97 + index);
|
|
9569
9876
|
const isDefaultVariant = variant == "default";
|
|
9570
|
-
return /* @__PURE__ */
|
|
9571
|
-
/* @__PURE__ */
|
|
9572
|
-
/* @__PURE__ */
|
|
9877
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9878
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9879
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
9573
9880
|
const variantCorrect = option.isCorrect ? "correct" : "incorrect";
|
|
9574
|
-
return /* @__PURE__ */
|
|
9881
|
+
return /* @__PURE__ */ jsxs35(
|
|
9575
9882
|
"section",
|
|
9576
9883
|
{
|
|
9577
9884
|
className: "flex flex-col gap-2",
|
|
9578
9885
|
children: [
|
|
9579
|
-
/* @__PURE__ */
|
|
9886
|
+
/* @__PURE__ */ jsxs35(
|
|
9580
9887
|
"div",
|
|
9581
9888
|
{
|
|
9582
9889
|
className: cn(
|
|
@@ -9584,20 +9891,20 @@ var QuizTrueOrFalse = ({ paddingBottom }) => {
|
|
|
9584
9891
|
!isDefaultVariant ? getStatusStyles(variantCorrect) : ""
|
|
9585
9892
|
),
|
|
9586
9893
|
children: [
|
|
9587
|
-
/* @__PURE__ */
|
|
9588
|
-
isDefaultVariant ? /* @__PURE__ */
|
|
9589
|
-
/* @__PURE__ */
|
|
9590
|
-
/* @__PURE__ */
|
|
9591
|
-
/* @__PURE__ */
|
|
9592
|
-
/* @__PURE__ */
|
|
9894
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index).concat(") ").concat(option.label) }),
|
|
9895
|
+
isDefaultVariant ? /* @__PURE__ */ jsxs35(Select_default, { size: "medium", children: [
|
|
9896
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione opc\xE3o" }) }),
|
|
9897
|
+
/* @__PURE__ */ jsxs35(SelectContent, { children: [
|
|
9898
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "V", children: "Verdadeiro" }),
|
|
9899
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "F", children: "Falso" })
|
|
9593
9900
|
] })
|
|
9594
|
-
] }) : /* @__PURE__ */
|
|
9901
|
+
] }) : /* @__PURE__ */ jsx47("div", { className: "flex-shrink-0", children: getStatusBadge(variantCorrect) })
|
|
9595
9902
|
]
|
|
9596
9903
|
}
|
|
9597
9904
|
),
|
|
9598
|
-
!isDefaultVariant && /* @__PURE__ */
|
|
9599
|
-
/* @__PURE__ */
|
|
9600
|
-
!option.isCorrect && /* @__PURE__ */
|
|
9905
|
+
!isDefaultVariant && /* @__PURE__ */ jsxs35("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
9906
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-800 text-2xs", children: "Resposta selecionada: V" }),
|
|
9907
|
+
!option.isCorrect && /* @__PURE__ */ jsx47("p", { className: "text-text-800 text-2xs", children: "Resposta correta: F" })
|
|
9601
9908
|
] })
|
|
9602
9909
|
]
|
|
9603
9910
|
},
|
|
@@ -9687,13 +9994,13 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
9687
9994
|
const assignedDots = new Set(
|
|
9688
9995
|
userAnswers.map((a) => a.dotOption).filter(Boolean)
|
|
9689
9996
|
);
|
|
9690
|
-
return /* @__PURE__ */
|
|
9691
|
-
/* @__PURE__ */
|
|
9692
|
-
/* @__PURE__ */
|
|
9997
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
9998
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
9999
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-3.5", children: options.map((option, index) => {
|
|
9693
10000
|
const answer = userAnswers[index];
|
|
9694
10001
|
const variantCorrect = answer.isCorrect ? "correct" : "incorrect";
|
|
9695
|
-
return /* @__PURE__ */
|
|
9696
|
-
/* @__PURE__ */
|
|
10002
|
+
return /* @__PURE__ */ jsxs35("section", { className: "flex flex-col gap-2", children: [
|
|
10003
|
+
/* @__PURE__ */ jsxs35(
|
|
9697
10004
|
"div",
|
|
9698
10005
|
{
|
|
9699
10006
|
className: cn(
|
|
@@ -9701,30 +10008,30 @@ var QuizConnectDots = ({ paddingBottom }) => {
|
|
|
9701
10008
|
!isDefaultVariant ? getStatusStyles(variantCorrect) : ""
|
|
9702
10009
|
),
|
|
9703
10010
|
children: [
|
|
9704
|
-
/* @__PURE__ */
|
|
9705
|
-
isDefaultVariant ? /* @__PURE__ */
|
|
10011
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-900 text-sm", children: getLetterByIndex(index) + ") " + option.label }),
|
|
10012
|
+
isDefaultVariant ? /* @__PURE__ */ jsxs35(
|
|
9706
10013
|
Select_default,
|
|
9707
10014
|
{
|
|
9708
10015
|
size: "medium",
|
|
9709
10016
|
value: answer.dotOption || void 0,
|
|
9710
10017
|
onValueChange: (value) => handleSelectDot(index, value),
|
|
9711
10018
|
children: [
|
|
9712
|
-
/* @__PURE__ */
|
|
9713
|
-
/* @__PURE__ */
|
|
10019
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "w-[180px]", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
|
|
10020
|
+
/* @__PURE__ */ jsx47(SelectContent, { children: dotsOptions.filter(
|
|
9714
10021
|
(dot) => !assignedDots.has(dot.label) || answer.dotOption === dot.label
|
|
9715
|
-
).map((dot) => /* @__PURE__ */
|
|
10022
|
+
).map((dot) => /* @__PURE__ */ jsx47(SelectItem, { value: dot.label, children: dot.label }, dot.label)) })
|
|
9716
10023
|
]
|
|
9717
10024
|
}
|
|
9718
|
-
) : /* @__PURE__ */
|
|
10025
|
+
) : /* @__PURE__ */ jsx47("div", { className: "flex-shrink-0", children: answer.isCorrect === null ? null : getStatusBadge(variantCorrect) })
|
|
9719
10026
|
]
|
|
9720
10027
|
}
|
|
9721
10028
|
),
|
|
9722
|
-
!isDefaultVariant && /* @__PURE__ */
|
|
9723
|
-
/* @__PURE__ */
|
|
10029
|
+
!isDefaultVariant && /* @__PURE__ */ jsxs35("span", { className: "flex flex-row gap-2 items-center", children: [
|
|
10030
|
+
/* @__PURE__ */ jsxs35("p", { className: "text-text-800 text-2xs", children: [
|
|
9724
10031
|
"Resposta selecionada: ",
|
|
9725
10032
|
answer.dotOption || "Nenhuma"
|
|
9726
10033
|
] }),
|
|
9727
|
-
!answer.isCorrect && /* @__PURE__ */
|
|
10034
|
+
!answer.isCorrect && /* @__PURE__ */ jsxs35("p", { className: "text-text-800 text-2xs", children: [
|
|
9728
10035
|
"Resposta correta: ",
|
|
9729
10036
|
answer.correctOption
|
|
9730
10037
|
] })
|
|
@@ -9791,18 +10098,18 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
9791
10098
|
const mockAnswer = mockUserAnswers.find(
|
|
9792
10099
|
(answer) => answer.selectId === selectId
|
|
9793
10100
|
);
|
|
9794
|
-
return /* @__PURE__ */
|
|
10101
|
+
return /* @__PURE__ */ jsx47("p", { className: "inline-flex mb-2.5 text-success-600 font-semibold text-md border-b-2 border-success-600", children: mockAnswer?.correctAnswer });
|
|
9795
10102
|
};
|
|
9796
10103
|
const renderDefaultElement = (selectId, startIndex, selectedValue, availableOptionsForThisSelect) => {
|
|
9797
|
-
return /* @__PURE__ */
|
|
10104
|
+
return /* @__PURE__ */ jsxs35(
|
|
9798
10105
|
Select_default,
|
|
9799
10106
|
{
|
|
9800
10107
|
value: selectedValue,
|
|
9801
10108
|
onValueChange: (value) => handleSelectChange(selectId, value),
|
|
9802
10109
|
className: "inline-flex mb-2.5",
|
|
9803
10110
|
children: [
|
|
9804
|
-
/* @__PURE__ */
|
|
9805
|
-
/* @__PURE__ */
|
|
10111
|
+
/* @__PURE__ */ jsx47(SelectTrigger, { className: "inline-flex w-auto min-w-[140px] h-8 mx-1 bg-white border-gray-300", children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione op\xE7\xE3o" }) }),
|
|
10112
|
+
/* @__PURE__ */ jsx47(SelectContent, { children: availableOptionsForThisSelect.map((option, index) => /* @__PURE__ */ jsx47(SelectItem, { value: option, children: option }, `${option}-${index}`)) })
|
|
9806
10113
|
]
|
|
9807
10114
|
},
|
|
9808
10115
|
`${selectId}-${startIndex}`
|
|
@@ -9814,8 +10121,8 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
9814
10121
|
);
|
|
9815
10122
|
if (!mockAnswer) return null;
|
|
9816
10123
|
const action = mockAnswer.isCorrect ? "success" : "error";
|
|
9817
|
-
const icon = mockAnswer.isCorrect ? /* @__PURE__ */
|
|
9818
|
-
return /* @__PURE__ */
|
|
10124
|
+
const icon = mockAnswer.isCorrect ? /* @__PURE__ */ jsx47(CheckCircle6, {}) : /* @__PURE__ */ jsx47(XCircle5, {});
|
|
10125
|
+
return /* @__PURE__ */ jsx47(
|
|
9819
10126
|
Badge_default,
|
|
9820
10127
|
{
|
|
9821
10128
|
variant: "solid",
|
|
@@ -9823,7 +10130,7 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
9823
10130
|
iconRight: icon,
|
|
9824
10131
|
size: "large",
|
|
9825
10132
|
className: "py-3 w-[180px] justify-between mb-2.5",
|
|
9826
|
-
children: /* @__PURE__ */
|
|
10133
|
+
children: /* @__PURE__ */ jsx47("span", { className: "text-text-900", children: mockAnswer.userAnswer })
|
|
9827
10134
|
},
|
|
9828
10135
|
selectId
|
|
9829
10136
|
);
|
|
@@ -9879,25 +10186,25 @@ var QuizFill = ({ paddingBottom }) => {
|
|
|
9879
10186
|
}
|
|
9880
10187
|
return elements;
|
|
9881
10188
|
};
|
|
9882
|
-
return /* @__PURE__ */
|
|
9883
|
-
/* @__PURE__ */
|
|
9884
|
-
/* @__PURE__ */
|
|
10189
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
10190
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Alternativas" }),
|
|
10191
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ jsx47("div", { className: "space-y-6 px-4 h-auto", children: /* @__PURE__ */ jsx47(
|
|
9885
10192
|
"div",
|
|
9886
10193
|
{
|
|
9887
10194
|
className: cn(
|
|
9888
10195
|
"text-lg text-text-900 leading-8 h-auto",
|
|
9889
10196
|
variant != "result" && paddingBottom
|
|
9890
10197
|
),
|
|
9891
|
-
children: renderTextWithSelects(exampleText).map((element) => /* @__PURE__ */
|
|
10198
|
+
children: renderTextWithSelects(exampleText).map((element) => /* @__PURE__ */ jsx47("span", { children: element.element }, element.id))
|
|
9892
10199
|
}
|
|
9893
10200
|
) }) }),
|
|
9894
|
-
variant === "result" && /* @__PURE__ */
|
|
9895
|
-
/* @__PURE__ */
|
|
9896
|
-
/* @__PURE__ */
|
|
10201
|
+
variant === "result" && /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
10202
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Resultado" }),
|
|
10203
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: "h-auto pb-0", children: /* @__PURE__ */ jsx47("div", { className: "space-y-6 px-4", children: /* @__PURE__ */ jsx47(
|
|
9897
10204
|
"div",
|
|
9898
10205
|
{
|
|
9899
10206
|
className: cn("text-lg text-text-900 leading-8", paddingBottom),
|
|
9900
|
-
children: renderTextWithSelects(exampleText, true).map((element) => /* @__PURE__ */
|
|
10207
|
+
children: renderTextWithSelects(exampleText, true).map((element) => /* @__PURE__ */ jsx47("span", { children: element.element }, element.id))
|
|
9901
10208
|
}
|
|
9902
10209
|
) }) })
|
|
9903
10210
|
] })
|
|
@@ -9951,36 +10258,36 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
9951
10258
|
}
|
|
9952
10259
|
return "bg-success-600/70 border-white";
|
|
9953
10260
|
};
|
|
9954
|
-
return /* @__PURE__ */
|
|
9955
|
-
/* @__PURE__ */
|
|
9956
|
-
/* @__PURE__ */
|
|
10261
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
10262
|
+
/* @__PURE__ */ jsx47(QuizSubTitle, { subTitle: "Clique na \xE1rea correta" }),
|
|
10263
|
+
/* @__PURE__ */ jsx47(QuizContainer, { className: cn("", paddingBottom), children: /* @__PURE__ */ jsxs35(
|
|
9957
10264
|
"div",
|
|
9958
10265
|
{
|
|
9959
10266
|
"data-testid": "quiz-image-container",
|
|
9960
10267
|
className: "space-y-6 p-3 relative inline-block",
|
|
9961
10268
|
children: [
|
|
9962
|
-
variant == "result" && /* @__PURE__ */
|
|
10269
|
+
variant == "result" && /* @__PURE__ */ jsxs35(
|
|
9963
10270
|
"div",
|
|
9964
10271
|
{
|
|
9965
10272
|
"data-testid": "quiz-legend",
|
|
9966
10273
|
className: "flex items-center gap-4 text-xs",
|
|
9967
10274
|
children: [
|
|
9968
|
-
/* @__PURE__ */
|
|
9969
|
-
/* @__PURE__ */
|
|
9970
|
-
/* @__PURE__ */
|
|
10275
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-2", children: [
|
|
10276
|
+
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-indicator-primary/70 border border-[#F8CC2E]" }),
|
|
10277
|
+
/* @__PURE__ */ jsx47("span", { className: "text-text-600 font-medium text-sm", children: "\xC1rea correta" })
|
|
9971
10278
|
] }),
|
|
9972
|
-
/* @__PURE__ */
|
|
9973
|
-
/* @__PURE__ */
|
|
9974
|
-
/* @__PURE__ */
|
|
10279
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-2", children: [
|
|
10280
|
+
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-success-600/70 border border-white" }),
|
|
10281
|
+
/* @__PURE__ */ jsx47("span", { className: "text-text-600 font-medium text-sm", children: "Resposta correta" })
|
|
9975
10282
|
] }),
|
|
9976
|
-
/* @__PURE__ */
|
|
9977
|
-
/* @__PURE__ */
|
|
9978
|
-
/* @__PURE__ */
|
|
10283
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-2", children: [
|
|
10284
|
+
/* @__PURE__ */ jsx47("div", { className: "w-3 h-3 rounded-full bg-indicator-error/70 border border-white" }),
|
|
10285
|
+
/* @__PURE__ */ jsx47("span", { className: "text-text-600 font-medium text-sm", children: "Resposta incorreta" })
|
|
9979
10286
|
] })
|
|
9980
10287
|
]
|
|
9981
10288
|
}
|
|
9982
10289
|
),
|
|
9983
|
-
/* @__PURE__ */
|
|
10290
|
+
/* @__PURE__ */ jsxs35(
|
|
9984
10291
|
"button",
|
|
9985
10292
|
{
|
|
9986
10293
|
"data-testid": "quiz-image-button",
|
|
@@ -9995,7 +10302,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
9995
10302
|
},
|
|
9996
10303
|
"aria-label": "\xC1rea da imagem interativa",
|
|
9997
10304
|
children: [
|
|
9998
|
-
/* @__PURE__ */
|
|
10305
|
+
/* @__PURE__ */ jsx47(
|
|
9999
10306
|
"img",
|
|
10000
10307
|
{
|
|
10001
10308
|
"data-testid": "quiz-image",
|
|
@@ -10004,7 +10311,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
10004
10311
|
className: "w-full h-auto rounded-md"
|
|
10005
10312
|
}
|
|
10006
10313
|
),
|
|
10007
|
-
variant === "result" && /* @__PURE__ */
|
|
10314
|
+
variant === "result" && /* @__PURE__ */ jsx47(
|
|
10008
10315
|
"div",
|
|
10009
10316
|
{
|
|
10010
10317
|
"data-testid": "quiz-correct-circle",
|
|
@@ -10019,7 +10326,7 @@ var QuizImageQuestion = ({ paddingBottom }) => {
|
|
|
10019
10326
|
}
|
|
10020
10327
|
}
|
|
10021
10328
|
),
|
|
10022
|
-
clickPositionRelative && /* @__PURE__ */
|
|
10329
|
+
clickPositionRelative && /* @__PURE__ */ jsx47(
|
|
10023
10330
|
"div",
|
|
10024
10331
|
{
|
|
10025
10332
|
"data-testid": "quiz-user-circle",
|
|
@@ -10087,18 +10394,18 @@ var QuizQuestionList = ({
|
|
|
10087
10394
|
return "Em branco";
|
|
10088
10395
|
}
|
|
10089
10396
|
};
|
|
10090
|
-
return /* @__PURE__ */
|
|
10091
|
-
Object.entries(filteredGroupedQuestions).length == 0 && /* @__PURE__ */
|
|
10397
|
+
return /* @__PURE__ */ jsxs35("div", { className: "space-y-6 px-4 h-full", children: [
|
|
10398
|
+
Object.entries(filteredGroupedQuestions).length == 0 && /* @__PURE__ */ jsx47("div", { className: "flex items-center justify-center text-gray-500 py-8 h-full", children: /* @__PURE__ */ jsx47("p", { className: "text-lg", children: "Nenhum resultado" }) }),
|
|
10092
10399
|
Object.entries(filteredGroupedQuestions).map(
|
|
10093
|
-
([subjectId, questions]) => /* @__PURE__ */
|
|
10094
|
-
/* @__PURE__ */
|
|
10095
|
-
/* @__PURE__ */
|
|
10096
|
-
/* @__PURE__ */
|
|
10400
|
+
([subjectId, questions]) => /* @__PURE__ */ jsxs35("section", { className: "flex flex-col gap-2", children: [
|
|
10401
|
+
/* @__PURE__ */ jsxs35("span", { className: "pt-6 pb-4 flex flex-row gap-2", children: [
|
|
10402
|
+
/* @__PURE__ */ jsx47("div", { className: "bg-primary-500 p-1 rounded-sm flex items-center justify-center", children: /* @__PURE__ */ jsx47(BookOpen, { size: 17, className: "text-white" }) }),
|
|
10403
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-800 font-bold text-lg", children: questions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" })
|
|
10097
10404
|
] }),
|
|
10098
|
-
/* @__PURE__ */
|
|
10405
|
+
/* @__PURE__ */ jsx47("ul", { className: "flex flex-col gap-2", children: questions.map((question) => {
|
|
10099
10406
|
const status = getQuestionStatus(question.id);
|
|
10100
10407
|
const questionNumber = getQuestionIndex(question.id);
|
|
10101
|
-
return /* @__PURE__ */
|
|
10408
|
+
return /* @__PURE__ */ jsx47(
|
|
10102
10409
|
CardStatus,
|
|
10103
10410
|
{
|
|
10104
10411
|
header: `Quest\xE3o ${questionNumber.toString().padStart(2, "0")}`,
|
|
@@ -10178,8 +10485,8 @@ var QuizFooter = forwardRef19(
|
|
|
10178
10485
|
return;
|
|
10179
10486
|
}
|
|
10180
10487
|
};
|
|
10181
|
-
return /* @__PURE__ */
|
|
10182
|
-
/* @__PURE__ */
|
|
10488
|
+
return /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
10489
|
+
/* @__PURE__ */ jsx47(
|
|
10183
10490
|
"footer",
|
|
10184
10491
|
{
|
|
10185
10492
|
ref,
|
|
@@ -10188,17 +10495,17 @@ var QuizFooter = forwardRef19(
|
|
|
10188
10495
|
className
|
|
10189
10496
|
),
|
|
10190
10497
|
...props,
|
|
10191
|
-
children: variant === "default" ? /* @__PURE__ */
|
|
10192
|
-
/* @__PURE__ */
|
|
10193
|
-
/* @__PURE__ */
|
|
10498
|
+
children: variant === "default" ? /* @__PURE__ */ jsxs35(Fragment10, { children: [
|
|
10499
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex flex-row items-center gap-1", children: [
|
|
10500
|
+
/* @__PURE__ */ jsx47(
|
|
10194
10501
|
IconButton_default,
|
|
10195
10502
|
{
|
|
10196
|
-
icon: /* @__PURE__ */
|
|
10503
|
+
icon: /* @__PURE__ */ jsx47(SquaresFour, { size: 24, className: "text-text-950" }),
|
|
10197
10504
|
size: "md",
|
|
10198
10505
|
onClick: () => setModalNavigateOpen(true)
|
|
10199
10506
|
}
|
|
10200
10507
|
),
|
|
10201
|
-
isFirstQuestion ? /* @__PURE__ */
|
|
10508
|
+
isFirstQuestion ? /* @__PURE__ */ jsx47(
|
|
10202
10509
|
Button_default,
|
|
10203
10510
|
{
|
|
10204
10511
|
variant: "outline",
|
|
@@ -10209,13 +10516,13 @@ var QuizFooter = forwardRef19(
|
|
|
10209
10516
|
},
|
|
10210
10517
|
children: "Pular"
|
|
10211
10518
|
}
|
|
10212
|
-
) : /* @__PURE__ */
|
|
10519
|
+
) : /* @__PURE__ */ jsx47(
|
|
10213
10520
|
Button_default,
|
|
10214
10521
|
{
|
|
10215
10522
|
size: "medium",
|
|
10216
10523
|
variant: "link",
|
|
10217
10524
|
action: "primary",
|
|
10218
|
-
iconLeft: /* @__PURE__ */
|
|
10525
|
+
iconLeft: /* @__PURE__ */ jsx47(CaretLeft3, { size: 18 }),
|
|
10219
10526
|
onClick: () => {
|
|
10220
10527
|
goToPreviousQuestion();
|
|
10221
10528
|
},
|
|
@@ -10223,7 +10530,7 @@ var QuizFooter = forwardRef19(
|
|
|
10223
10530
|
}
|
|
10224
10531
|
)
|
|
10225
10532
|
] }),
|
|
10226
|
-
!isFirstQuestion && !isLastQuestion && /* @__PURE__ */
|
|
10533
|
+
!isFirstQuestion && !isLastQuestion && /* @__PURE__ */ jsx47(
|
|
10227
10534
|
Button_default,
|
|
10228
10535
|
{
|
|
10229
10536
|
size: "small",
|
|
@@ -10236,7 +10543,7 @@ var QuizFooter = forwardRef19(
|
|
|
10236
10543
|
children: "Pular"
|
|
10237
10544
|
}
|
|
10238
10545
|
),
|
|
10239
|
-
isLastQuestion ? /* @__PURE__ */
|
|
10546
|
+
isLastQuestion ? /* @__PURE__ */ jsx47(
|
|
10240
10547
|
Button_default,
|
|
10241
10548
|
{
|
|
10242
10549
|
size: "medium",
|
|
@@ -10246,13 +10553,13 @@ var QuizFooter = forwardRef19(
|
|
|
10246
10553
|
onClick: handleFinishQuiz,
|
|
10247
10554
|
children: "Finalizar"
|
|
10248
10555
|
}
|
|
10249
|
-
) : /* @__PURE__ */
|
|
10556
|
+
) : /* @__PURE__ */ jsx47(
|
|
10250
10557
|
Button_default,
|
|
10251
10558
|
{
|
|
10252
10559
|
size: "medium",
|
|
10253
10560
|
variant: "link",
|
|
10254
10561
|
action: "primary",
|
|
10255
|
-
iconRight: /* @__PURE__ */
|
|
10562
|
+
iconRight: /* @__PURE__ */ jsx47(CaretRight5, { size: 18 }),
|
|
10256
10563
|
disabled: !currentAnswer && !isCurrentQuestionSkipped,
|
|
10257
10564
|
onClick: () => {
|
|
10258
10565
|
goToNextQuestion();
|
|
@@ -10260,7 +10567,7 @@ var QuizFooter = forwardRef19(
|
|
|
10260
10567
|
children: "Avan\xE7ar"
|
|
10261
10568
|
}
|
|
10262
10569
|
)
|
|
10263
|
-
] }) : /* @__PURE__ */
|
|
10570
|
+
] }) : /* @__PURE__ */ jsx47("div", { className: "flex flex-row items-center justify-end w-full", children: /* @__PURE__ */ jsx47(
|
|
10264
10571
|
Button_default,
|
|
10265
10572
|
{
|
|
10266
10573
|
variant: "solid",
|
|
@@ -10272,7 +10579,7 @@ var QuizFooter = forwardRef19(
|
|
|
10272
10579
|
) })
|
|
10273
10580
|
}
|
|
10274
10581
|
),
|
|
10275
|
-
/* @__PURE__ */
|
|
10582
|
+
/* @__PURE__ */ jsx47(
|
|
10276
10583
|
AlertDialog,
|
|
10277
10584
|
{
|
|
10278
10585
|
isOpen: alertDialogOpen,
|
|
@@ -10284,7 +10591,7 @@ var QuizFooter = forwardRef19(
|
|
|
10284
10591
|
onSubmit: handleAlertSubmit
|
|
10285
10592
|
}
|
|
10286
10593
|
),
|
|
10287
|
-
/* @__PURE__ */
|
|
10594
|
+
/* @__PURE__ */ jsx47(
|
|
10288
10595
|
Modal_default,
|
|
10289
10596
|
{
|
|
10290
10597
|
isOpen: modalResultOpen,
|
|
@@ -10293,11 +10600,11 @@ var QuizFooter = forwardRef19(
|
|
|
10293
10600
|
closeOnEscape: false,
|
|
10294
10601
|
hideCloseButton: true,
|
|
10295
10602
|
size: "md",
|
|
10296
|
-
children: /* @__PURE__ */
|
|
10297
|
-
resultImageComponent ? /* @__PURE__ */
|
|
10298
|
-
/* @__PURE__ */
|
|
10299
|
-
/* @__PURE__ */
|
|
10300
|
-
/* @__PURE__ */
|
|
10603
|
+
children: /* @__PURE__ */ jsxs35("div", { className: "flex flex-col w-full h-full items-center justify-center gap-4", children: [
|
|
10604
|
+
resultImageComponent ? /* @__PURE__ */ jsx47("div", { className: "w-[282px] h-auto", children: resultImageComponent }) : /* @__PURE__ */ jsx47("div", { className: "w-[282px] h-[200px] bg-gray-100 rounded-md flex items-center justify-center", children: /* @__PURE__ */ jsx47("span", { className: "text-gray-500 text-sm", children: "Imagem de resultado" }) }),
|
|
10605
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-2 text-center", children: [
|
|
10606
|
+
/* @__PURE__ */ jsx47("h2", { className: "text-text-950 font-bold text-lg", children: "Voc\xEA concluiu o simulado!" }),
|
|
10607
|
+
/* @__PURE__ */ jsxs35("p", { className: "text-text-500 font-sm", children: [
|
|
10301
10608
|
"Voc\xEA acertou",
|
|
10302
10609
|
" ",
|
|
10303
10610
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|
|
@@ -10307,8 +10614,8 @@ var QuizFooter = forwardRef19(
|
|
|
10307
10614
|
" quest\xF5es."
|
|
10308
10615
|
] })
|
|
10309
10616
|
] }),
|
|
10310
|
-
/* @__PURE__ */
|
|
10311
|
-
/* @__PURE__ */
|
|
10617
|
+
/* @__PURE__ */ jsxs35("div", { className: "px-6 flex flex-row items-center gap-2 w-full", children: [
|
|
10618
|
+
/* @__PURE__ */ jsx47(
|
|
10312
10619
|
Button_default,
|
|
10313
10620
|
{
|
|
10314
10621
|
variant: "outline",
|
|
@@ -10318,38 +10625,38 @@ var QuizFooter = forwardRef19(
|
|
|
10318
10625
|
children: "Ir para simulados"
|
|
10319
10626
|
}
|
|
10320
10627
|
),
|
|
10321
|
-
/* @__PURE__ */
|
|
10628
|
+
/* @__PURE__ */ jsx47(Button_default, { className: "w-full", onClick: onDetailResult, children: "Detalhar resultado" })
|
|
10322
10629
|
] })
|
|
10323
10630
|
] })
|
|
10324
10631
|
}
|
|
10325
10632
|
),
|
|
10326
|
-
/* @__PURE__ */
|
|
10633
|
+
/* @__PURE__ */ jsx47(
|
|
10327
10634
|
Modal_default,
|
|
10328
10635
|
{
|
|
10329
10636
|
isOpen: modalNavigateOpen,
|
|
10330
10637
|
onClose: () => setModalNavigateOpen(false),
|
|
10331
10638
|
title: "Quest\xF5es",
|
|
10332
10639
|
size: "lg",
|
|
10333
|
-
children: /* @__PURE__ */
|
|
10334
|
-
/* @__PURE__ */
|
|
10335
|
-
/* @__PURE__ */
|
|
10336
|
-
/* @__PURE__ */
|
|
10337
|
-
/* @__PURE__ */
|
|
10640
|
+
children: /* @__PURE__ */ jsxs35("div", { className: "flex flex-col w-full not-lg:h-[calc(100vh-200px)] lg:max-h-[687px] lg:h-[687px]", children: [
|
|
10641
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex flex-row justify-between items-center py-6 pt-6 pb-4 border-b border-border-200 flex-shrink-0", children: [
|
|
10642
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-lg", children: "Filtrar por" }),
|
|
10643
|
+
/* @__PURE__ */ jsx47("span", { className: "max-w-[266px]", children: /* @__PURE__ */ jsxs35(Select_default, { value: filterType, onValueChange: setFilterType, children: [
|
|
10644
|
+
/* @__PURE__ */ jsx47(
|
|
10338
10645
|
SelectTrigger,
|
|
10339
10646
|
{
|
|
10340
10647
|
variant: "rounded",
|
|
10341
10648
|
className: "max-w-[266px] min-w-[160px]",
|
|
10342
|
-
children: /* @__PURE__ */
|
|
10649
|
+
children: /* @__PURE__ */ jsx47(SelectValue, { placeholder: "Selecione uma op\xE7\xE3o" })
|
|
10343
10650
|
}
|
|
10344
10651
|
),
|
|
10345
|
-
/* @__PURE__ */
|
|
10346
|
-
/* @__PURE__ */
|
|
10347
|
-
/* @__PURE__ */
|
|
10348
|
-
/* @__PURE__ */
|
|
10652
|
+
/* @__PURE__ */ jsxs35(SelectContent, { children: [
|
|
10653
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "all", children: "Todas" }),
|
|
10654
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "unanswered", children: "Em branco" }),
|
|
10655
|
+
/* @__PURE__ */ jsx47(SelectItem, { value: "answered", children: "Respondidas" })
|
|
10349
10656
|
] })
|
|
10350
10657
|
] }) })
|
|
10351
10658
|
] }),
|
|
10352
|
-
/* @__PURE__ */
|
|
10659
|
+
/* @__PURE__ */ jsx47("div", { className: "flex flex-col gap-2 flex-1 min-h-0 overflow-y-auto", children: /* @__PURE__ */ jsx47(
|
|
10353
10660
|
QuizQuestionList,
|
|
10354
10661
|
{
|
|
10355
10662
|
filterType,
|
|
@@ -10359,7 +10666,7 @@ var QuizFooter = forwardRef19(
|
|
|
10359
10666
|
] })
|
|
10360
10667
|
}
|
|
10361
10668
|
),
|
|
10362
|
-
/* @__PURE__ */
|
|
10669
|
+
/* @__PURE__ */ jsx47(
|
|
10363
10670
|
Modal_default,
|
|
10364
10671
|
{
|
|
10365
10672
|
isOpen: modalResolutionOpen,
|
|
@@ -10377,32 +10684,32 @@ var QuizBadge = ({
|
|
|
10377
10684
|
}) => {
|
|
10378
10685
|
switch (subtype) {
|
|
10379
10686
|
case "PROVA" /* PROVA */:
|
|
10380
|
-
return /* @__PURE__ */
|
|
10687
|
+
return /* @__PURE__ */ jsx47(Badge_default, { variant: "examsOutlined", action: "exam2", "data-testid": "quiz-badge", children: "Prova" });
|
|
10381
10688
|
case "ENEM_PROVA_1" /* ENEM_PROVA_1 */:
|
|
10382
10689
|
case "ENEM_PROVA_2" /* ENEM_PROVA_2 */:
|
|
10383
|
-
return /* @__PURE__ */
|
|
10690
|
+
return /* @__PURE__ */ jsx47(Badge_default, { variant: "examsOutlined", action: "exam1", "data-testid": "quiz-badge", children: "Enem" });
|
|
10384
10691
|
case "VESTIBULAR" /* VESTIBULAR */:
|
|
10385
|
-
return /* @__PURE__ */
|
|
10692
|
+
return /* @__PURE__ */ jsx47(Badge_default, { variant: "examsOutlined", action: "exam4", "data-testid": "quiz-badge", children: "Vestibular" });
|
|
10386
10693
|
case "SIMULADO" /* SIMULADO */:
|
|
10387
10694
|
case "SIMULADAO" /* SIMULADAO */:
|
|
10388
10695
|
case void 0:
|
|
10389
|
-
return /* @__PURE__ */
|
|
10696
|
+
return /* @__PURE__ */ jsx47(Badge_default, { variant: "examsOutlined", action: "exam3", "data-testid": "quiz-badge", children: "Simulad\xE3o" });
|
|
10390
10697
|
default:
|
|
10391
|
-
return /* @__PURE__ */
|
|
10698
|
+
return /* @__PURE__ */ jsx47(Badge_default, { variant: "solid", action: "info", "data-testid": "quiz-badge", children: subtype });
|
|
10392
10699
|
}
|
|
10393
10700
|
};
|
|
10394
10701
|
var QuizResultHeaderTitle = forwardRef19(({ className, ...props }, ref) => {
|
|
10395
10702
|
const { getActiveQuiz } = useQuizStore();
|
|
10396
10703
|
const activeQuiz = getActiveQuiz();
|
|
10397
|
-
return /* @__PURE__ */
|
|
10704
|
+
return /* @__PURE__ */ jsxs35(
|
|
10398
10705
|
"div",
|
|
10399
10706
|
{
|
|
10400
10707
|
ref,
|
|
10401
10708
|
className: cn("flex flex-row pt-4 justify-between", className),
|
|
10402
10709
|
...props,
|
|
10403
10710
|
children: [
|
|
10404
|
-
/* @__PURE__ */
|
|
10405
|
-
/* @__PURE__ */
|
|
10711
|
+
/* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-2xl", children: "Resultado" }),
|
|
10712
|
+
/* @__PURE__ */ jsx47(QuizBadge, { subtype: activeQuiz?.quiz.subtype || void 0 })
|
|
10406
10713
|
]
|
|
10407
10714
|
}
|
|
10408
10715
|
);
|
|
@@ -10410,7 +10717,7 @@ var QuizResultHeaderTitle = forwardRef19(({ className, ...props }, ref) => {
|
|
|
10410
10717
|
var QuizResultTitle = forwardRef19(({ className, ...props }, ref) => {
|
|
10411
10718
|
const { getQuizTitle } = useQuizStore();
|
|
10412
10719
|
const quizTitle = getQuizTitle();
|
|
10413
|
-
return /* @__PURE__ */
|
|
10720
|
+
return /* @__PURE__ */ jsx47(
|
|
10414
10721
|
"p",
|
|
10415
10722
|
{
|
|
10416
10723
|
className: cn("pt-6 pb-4 text-text-950 font-bold text-lg", className),
|
|
@@ -10462,15 +10769,15 @@ var QuizResultPerformance = forwardRef19(
|
|
|
10462
10769
|
});
|
|
10463
10770
|
}
|
|
10464
10771
|
const percentage = totalQuestions > 0 ? Math.round(correctAnswers / totalQuestions * 100) : 0;
|
|
10465
|
-
return /* @__PURE__ */
|
|
10772
|
+
return /* @__PURE__ */ jsxs35(
|
|
10466
10773
|
"div",
|
|
10467
10774
|
{
|
|
10468
10775
|
className: "flex flex-row gap-6 p-6 rounded-xl bg-background justify-between",
|
|
10469
10776
|
ref,
|
|
10470
10777
|
...props,
|
|
10471
10778
|
children: [
|
|
10472
|
-
/* @__PURE__ */
|
|
10473
|
-
/* @__PURE__ */
|
|
10779
|
+
/* @__PURE__ */ jsxs35("div", { className: "relative", children: [
|
|
10780
|
+
/* @__PURE__ */ jsx47(
|
|
10474
10781
|
ProgressCircle_default,
|
|
10475
10782
|
{
|
|
10476
10783
|
size: "medium",
|
|
@@ -10480,24 +10787,24 @@ var QuizResultPerformance = forwardRef19(
|
|
|
10480
10787
|
label: ""
|
|
10481
10788
|
}
|
|
10482
10789
|
),
|
|
10483
|
-
/* @__PURE__ */
|
|
10484
|
-
/* @__PURE__ */
|
|
10485
|
-
/* @__PURE__ */
|
|
10486
|
-
/* @__PURE__ */
|
|
10790
|
+
/* @__PURE__ */ jsxs35("div", { className: "absolute inset-0 flex flex-col items-center justify-center", children: [
|
|
10791
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-1 mb-1", children: [
|
|
10792
|
+
/* @__PURE__ */ jsx47(Clock2, { size: 12, weight: "regular", className: "text-text-800" }),
|
|
10793
|
+
/* @__PURE__ */ jsx47("span", { className: "text-2xs font-medium text-text-800", children: formatTime2(
|
|
10487
10794
|
(getQuestionResultStatistics()?.timeSpent ?? 0) * 60
|
|
10488
10795
|
) })
|
|
10489
10796
|
] }),
|
|
10490
|
-
/* @__PURE__ */
|
|
10797
|
+
/* @__PURE__ */ jsxs35("div", { className: "text-2xl font-medium text-text-800 leading-7", children: [
|
|
10491
10798
|
getQuestionResultStatistics()?.correctAnswers ?? "--",
|
|
10492
10799
|
" de",
|
|
10493
10800
|
" ",
|
|
10494
10801
|
totalQuestions
|
|
10495
10802
|
] }),
|
|
10496
|
-
/* @__PURE__ */
|
|
10803
|
+
/* @__PURE__ */ jsx47("div", { className: "text-2xs font-medium text-text-600 mt-1", children: "Corretas" })
|
|
10497
10804
|
] })
|
|
10498
10805
|
] }),
|
|
10499
|
-
/* @__PURE__ */
|
|
10500
|
-
/* @__PURE__ */
|
|
10806
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex flex-col gap-4 w-full", children: [
|
|
10807
|
+
/* @__PURE__ */ jsx47(
|
|
10501
10808
|
ProgressBar_default,
|
|
10502
10809
|
{
|
|
10503
10810
|
className: "w-full",
|
|
@@ -10511,7 +10818,7 @@ var QuizResultPerformance = forwardRef19(
|
|
|
10511
10818
|
percentageClassName: "text-xs font-medium leading-[14px] text-right"
|
|
10512
10819
|
}
|
|
10513
10820
|
),
|
|
10514
|
-
/* @__PURE__ */
|
|
10821
|
+
/* @__PURE__ */ jsx47(
|
|
10515
10822
|
ProgressBar_default,
|
|
10516
10823
|
{
|
|
10517
10824
|
className: "w-full",
|
|
@@ -10525,7 +10832,7 @@ var QuizResultPerformance = forwardRef19(
|
|
|
10525
10832
|
percentageClassName: "text-xs font-medium leading-[14px] text-right"
|
|
10526
10833
|
}
|
|
10527
10834
|
),
|
|
10528
|
-
/* @__PURE__ */
|
|
10835
|
+
/* @__PURE__ */ jsx47(
|
|
10529
10836
|
ProgressBar_default,
|
|
10530
10837
|
{
|
|
10531
10838
|
className: "w-full",
|
|
@@ -10572,9 +10879,9 @@ var QuizListResult = forwardRef19(({ className, onSubjectClick, ...props }, ref)
|
|
|
10572
10879
|
};
|
|
10573
10880
|
}
|
|
10574
10881
|
);
|
|
10575
|
-
return /* @__PURE__ */
|
|
10576
|
-
/* @__PURE__ */
|
|
10577
|
-
/* @__PURE__ */
|
|
10882
|
+
return /* @__PURE__ */ jsxs35("section", { ref, className, ...props, children: [
|
|
10883
|
+
/* @__PURE__ */ jsx47("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Mat\xE9rias" }),
|
|
10884
|
+
/* @__PURE__ */ jsx47("ul", { className: "flex flex-col gap-2", children: subjectsStats.map((subject) => /* @__PURE__ */ jsx47("li", { children: /* @__PURE__ */ jsx47(
|
|
10578
10885
|
CardResults,
|
|
10579
10886
|
{
|
|
10580
10887
|
onClick: () => onSubjectClick?.(subject.subject.id),
|
|
@@ -10596,16 +10903,16 @@ var QuizListResultByMateria = ({
|
|
|
10596
10903
|
const { getQuestionsGroupedBySubject, getQuestionIndex } = useQuizStore();
|
|
10597
10904
|
const groupedQuestions = getQuestionsGroupedBySubject();
|
|
10598
10905
|
const answeredQuestions = groupedQuestions[subject] || [];
|
|
10599
|
-
return /* @__PURE__ */
|
|
10600
|
-
/* @__PURE__ */
|
|
10601
|
-
/* @__PURE__ */
|
|
10602
|
-
/* @__PURE__ */
|
|
10603
|
-
/* @__PURE__ */
|
|
10906
|
+
return /* @__PURE__ */ jsxs35("div", { className: "flex flex-col", children: [
|
|
10907
|
+
/* @__PURE__ */ jsx47("div", { className: "flex flex-row pt-4 justify-between", children: /* @__PURE__ */ jsx47("p", { className: "text-text-950 font-bold text-2xl", children: answeredQuestions?.[0]?.knowledgeMatrix?.[0]?.subject?.name ?? "Sem mat\xE9ria" }) }),
|
|
10908
|
+
/* @__PURE__ */ jsxs35("section", { className: "flex flex-col ", children: [
|
|
10909
|
+
/* @__PURE__ */ jsx47("p", { className: "pt-6 pb-4 text-text-950 font-bold text-lg", children: "Resultado das quest\xF5es" }),
|
|
10910
|
+
/* @__PURE__ */ jsx47("ul", { className: "flex flex-col gap-2 pt-4", children: answeredQuestions.map((question) => {
|
|
10604
10911
|
const questionIndex = getQuestionIndex(
|
|
10605
10912
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10606
10913
|
question.questionId ?? question.id
|
|
10607
10914
|
);
|
|
10608
|
-
return /* @__PURE__ */
|
|
10915
|
+
return /* @__PURE__ */ jsx47("li", { children: /* @__PURE__ */ jsx47(
|
|
10609
10916
|
CardStatus,
|
|
10610
10917
|
{
|
|
10611
10918
|
className: "max-w-full",
|
|
@@ -10629,11 +10936,11 @@ var QuizListResultByMateria = ({
|
|
|
10629
10936
|
|
|
10630
10937
|
// src/components/LoadingModal/loadingModal.tsx
|
|
10631
10938
|
import { forwardRef as forwardRef20 } from "react";
|
|
10632
|
-
import { jsx as
|
|
10939
|
+
import { jsx as jsx48, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
10633
10940
|
var LoadingModal = forwardRef20(
|
|
10634
10941
|
({ open, title = "Titulo...", subtitle = "Subtitulo...", ...props }, ref) => {
|
|
10635
10942
|
if (!open) return null;
|
|
10636
|
-
return /* @__PURE__ */
|
|
10943
|
+
return /* @__PURE__ */ jsx48(
|
|
10637
10944
|
"div",
|
|
10638
10945
|
{
|
|
10639
10946
|
ref,
|
|
@@ -10642,8 +10949,8 @@ var LoadingModal = forwardRef20(
|
|
|
10642
10949
|
"aria-describedby": "loading-modal-subtitle",
|
|
10643
10950
|
className: "fixed inset-0 z-50 flex items-center justify-center bg-background/90 backdrop-blur-xs",
|
|
10644
10951
|
...props,
|
|
10645
|
-
children: /* @__PURE__ */
|
|
10646
|
-
/* @__PURE__ */
|
|
10952
|
+
children: /* @__PURE__ */ jsxs36("div", { className: "w-full max-w-[364px] flex flex-col items-center justify-center gap-14", children: [
|
|
10953
|
+
/* @__PURE__ */ jsx48("span", { className: "animate-spin", "aria-hidden": "true", children: /* @__PURE__ */ jsxs36(
|
|
10647
10954
|
"svg",
|
|
10648
10955
|
{
|
|
10649
10956
|
width: "102",
|
|
@@ -10654,14 +10961,14 @@ var LoadingModal = forwardRef20(
|
|
|
10654
10961
|
"aria-hidden": "true",
|
|
10655
10962
|
focusable: false,
|
|
10656
10963
|
children: [
|
|
10657
|
-
/* @__PURE__ */
|
|
10964
|
+
/* @__PURE__ */ jsx48(
|
|
10658
10965
|
"path",
|
|
10659
10966
|
{
|
|
10660
10967
|
d: "M101.5 51C101.5 78.8904 78.8904 101.5 51 101.5C23.1096 101.5 0.5 78.8904 0.5 51C0.5 23.1096 23.1096 0.5 51 0.5C78.8904 0.5 101.5 23.1096 101.5 51ZM8.62286 51C8.62286 74.4043 27.5957 93.3771 51 93.3771C74.4043 93.3771 93.3771 74.4043 93.3771 51C93.3771 27.5957 74.4043 8.62286 51 8.62286C27.5957 8.62286 8.62286 27.5957 8.62286 51Z",
|
|
10661
10968
|
className: "fill-primary-100"
|
|
10662
10969
|
}
|
|
10663
10970
|
),
|
|
10664
|
-
/* @__PURE__ */
|
|
10971
|
+
/* @__PURE__ */ jsx48(
|
|
10665
10972
|
"path",
|
|
10666
10973
|
{
|
|
10667
10974
|
d: "M97.4386 51C99.6816 51 101.517 52.8213 101.337 55.0571C100.754 62.2833 98.6212 69.3162 95.0643 75.6696C90.8444 83.207 84.7616 89.536 77.3975 94.0514C70.0333 98.5668 61.6339 101.118 53.0024 101.46C44.371 101.803 35.7959 99.9255 28.0971 96.0078C20.3982 92.0902 13.833 86.2631 9.02917 79.0838C4.22529 71.9045 1.34332 63.6129 0.658804 55.0017C-0.0257159 46.3906 1.51009 37.7479 5.1194 29.8997C8.16173 23.2845 12.5915 17.4202 18.0904 12.6959C19.7917 11.2341 22.3444 11.6457 23.6647 13.459C24.9851 15.2723 24.5702 17.7988 22.8916 19.2866C18.5048 23.1747 14.9608 27.9413 12.4992 33.2937C9.47048 39.8794 8.1817 47.132 8.75612 54.3581C9.33053 61.5841 11.7489 68.542 15.7801 74.5666C19.8113 80.5911 25.3205 85.4809 31.781 88.7684C38.2414 92.0559 45.4372 93.6312 52.6804 93.3438C59.9235 93.0564 66.9718 90.9158 73.1515 87.1267C79.3311 83.3375 84.4355 78.0266 87.9766 71.7015C90.8546 66.561 92.6217 60.8903 93.1827 55.0553C93.3973 52.8225 95.1955 51 97.4386 51Z",
|
|
@@ -10671,9 +10978,9 @@ var LoadingModal = forwardRef20(
|
|
|
10671
10978
|
]
|
|
10672
10979
|
}
|
|
10673
10980
|
) }),
|
|
10674
|
-
/* @__PURE__ */
|
|
10675
|
-
/* @__PURE__ */
|
|
10676
|
-
/* @__PURE__ */
|
|
10981
|
+
/* @__PURE__ */ jsxs36("span", { className: "flex flex-col gap-4 text-center", children: [
|
|
10982
|
+
/* @__PURE__ */ jsx48("p", { id: "loading-modal-title", className: "text-text-950 text-lg", children: title }),
|
|
10983
|
+
/* @__PURE__ */ jsx48("p", { id: "loading-modal-subtitle", className: "text-text-600 text-lg", children: subtitle })
|
|
10677
10984
|
] })
|
|
10678
10985
|
] })
|
|
10679
10986
|
}
|
|
@@ -10931,14 +11238,14 @@ var createNotificationStore = (apiClient) => {
|
|
|
10931
11238
|
var mock_content_default = "./mock-content-K2CDVG6P.png";
|
|
10932
11239
|
|
|
10933
11240
|
// src/components/NotificationCard/NotificationCard.tsx
|
|
10934
|
-
import { Fragment as Fragment11, jsx as
|
|
11241
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
10935
11242
|
var NotificationEmpty = ({
|
|
10936
11243
|
emptyStateImage,
|
|
10937
11244
|
emptyStateTitle = "Nenhuma notifica\xE7\xE3o no momento",
|
|
10938
11245
|
emptyStateDescription = "Voc\xEA est\xE1 em dia com todas as novidades. Volte depois para conferir atualiza\xE7\xF5es!"
|
|
10939
11246
|
}) => {
|
|
10940
|
-
return /* @__PURE__ */
|
|
10941
|
-
emptyStateImage && /* @__PURE__ */
|
|
11247
|
+
return /* @__PURE__ */ jsxs37("div", { className: "flex flex-col items-center justify-center gap-4 p-6 w-full", children: [
|
|
11248
|
+
emptyStateImage && /* @__PURE__ */ jsx49("div", { className: "w-20 h-20 flex items-center justify-center", children: /* @__PURE__ */ jsx49(
|
|
10942
11249
|
"img",
|
|
10943
11250
|
{
|
|
10944
11251
|
src: emptyStateImage,
|
|
@@ -10948,23 +11255,23 @@ var NotificationEmpty = ({
|
|
|
10948
11255
|
className: "object-contain"
|
|
10949
11256
|
}
|
|
10950
11257
|
) }),
|
|
10951
|
-
/* @__PURE__ */
|
|
10952
|
-
/* @__PURE__ */
|
|
11258
|
+
/* @__PURE__ */ jsx49("h3", { className: "text-xl font-semibold text-text-950 text-center leading-[23px]", children: emptyStateTitle }),
|
|
11259
|
+
/* @__PURE__ */ jsx49("p", { className: "text-sm font-normal text-text-400 text-center max-w-[316px] leading-[21px]", children: emptyStateDescription })
|
|
10953
11260
|
] });
|
|
10954
11261
|
};
|
|
10955
11262
|
var NotificationHeader = ({
|
|
10956
11263
|
unreadCount,
|
|
10957
11264
|
variant = "modal"
|
|
10958
11265
|
}) => {
|
|
10959
|
-
return /* @__PURE__ */
|
|
10960
|
-
variant === "modal" ? /* @__PURE__ */
|
|
10961
|
-
unreadCount > 0 && /* @__PURE__ */
|
|
11266
|
+
return /* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between gap-2", children: [
|
|
11267
|
+
variant === "modal" ? /* @__PURE__ */ jsx49(Text_default, { size: "sm", weight: "bold", className: "text-text-950", children: "Notifica\xE7\xF5es" }) : /* @__PURE__ */ jsx49("h3", { className: "text-sm font-semibold text-text-950", children: "Notifica\xE7\xF5es" }),
|
|
11268
|
+
unreadCount > 0 && /* @__PURE__ */ jsx49(
|
|
10962
11269
|
Badge_default,
|
|
10963
11270
|
{
|
|
10964
11271
|
variant: "solid",
|
|
10965
11272
|
action: "info",
|
|
10966
11273
|
size: "small",
|
|
10967
|
-
iconLeft: /* @__PURE__ */
|
|
11274
|
+
iconLeft: /* @__PURE__ */ jsx49(Bell2, { size: 12, "aria-hidden": "true", focusable: "false" }),
|
|
10968
11275
|
className: "border-0",
|
|
10969
11276
|
children: unreadCount === 1 ? "1 n\xE3o lida" : `${unreadCount} n\xE3o lidas`
|
|
10970
11277
|
}
|
|
@@ -11000,7 +11307,7 @@ var SingleNotificationCard = ({
|
|
|
11000
11307
|
onNavigate();
|
|
11001
11308
|
}
|
|
11002
11309
|
};
|
|
11003
|
-
return /* @__PURE__ */
|
|
11310
|
+
return /* @__PURE__ */ jsxs37(
|
|
11004
11311
|
"div",
|
|
11005
11312
|
{
|
|
11006
11313
|
className: cn(
|
|
@@ -11009,20 +11316,20 @@ var SingleNotificationCard = ({
|
|
|
11009
11316
|
className
|
|
11010
11317
|
),
|
|
11011
11318
|
children: [
|
|
11012
|
-
/* @__PURE__ */
|
|
11013
|
-
!isRead && /* @__PURE__ */
|
|
11014
|
-
/* @__PURE__ */
|
|
11015
|
-
/* @__PURE__ */
|
|
11016
|
-
/* @__PURE__ */
|
|
11319
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex items-center gap-2 w-full", children: [
|
|
11320
|
+
!isRead && /* @__PURE__ */ jsx49("div", { className: "w-[7px] h-[7px] bg-info-300 rounded-full flex-shrink-0" }),
|
|
11321
|
+
/* @__PURE__ */ jsx49("h3", { className: "font-bold text-sm leading-4 text-text-950 flex-grow", children: title }),
|
|
11322
|
+
/* @__PURE__ */ jsxs37(DropdownMenu_default, { children: [
|
|
11323
|
+
/* @__PURE__ */ jsx49(
|
|
11017
11324
|
DropdownMenuTrigger,
|
|
11018
11325
|
{
|
|
11019
11326
|
className: "flex-shrink-0 inline-flex items-center justify-center font-medium bg-transparent text-text-950 cursor-pointer hover:bg-info-50 w-6 h-6 rounded-lg",
|
|
11020
11327
|
"aria-label": "Menu de a\xE7\xF5es",
|
|
11021
|
-
children: /* @__PURE__ */
|
|
11328
|
+
children: /* @__PURE__ */ jsx49(DotsThreeVertical3, { size: 24 })
|
|
11022
11329
|
}
|
|
11023
11330
|
),
|
|
11024
|
-
/* @__PURE__ */
|
|
11025
|
-
!isRead && /* @__PURE__ */
|
|
11331
|
+
/* @__PURE__ */ jsxs37(DropdownMenuContent, { align: "end", className: "min-w-[160px]", children: [
|
|
11332
|
+
!isRead && /* @__PURE__ */ jsx49(
|
|
11026
11333
|
DropdownMenuItem,
|
|
11027
11334
|
{
|
|
11028
11335
|
onClick: handleMarkAsRead,
|
|
@@ -11030,14 +11337,14 @@ var SingleNotificationCard = ({
|
|
|
11030
11337
|
children: "Marcar como lida"
|
|
11031
11338
|
}
|
|
11032
11339
|
),
|
|
11033
|
-
/* @__PURE__ */
|
|
11340
|
+
/* @__PURE__ */ jsx49(DropdownMenuItem, { onClick: handleDelete, className: "text-error-600", children: "Deletar" })
|
|
11034
11341
|
] })
|
|
11035
11342
|
] })
|
|
11036
11343
|
] }),
|
|
11037
|
-
/* @__PURE__ */
|
|
11038
|
-
/* @__PURE__ */
|
|
11039
|
-
/* @__PURE__ */
|
|
11040
|
-
onNavigate && actionLabel && /* @__PURE__ */
|
|
11344
|
+
/* @__PURE__ */ jsx49("p", { className: "text-sm leading-[21px] text-text-800 w-full", children: message }),
|
|
11345
|
+
/* @__PURE__ */ jsxs37("div", { className: "flex items-center justify-between w-full", children: [
|
|
11346
|
+
/* @__PURE__ */ jsx49("span", { className: "text-sm font-medium text-text-400", children: time }),
|
|
11347
|
+
onNavigate && actionLabel && /* @__PURE__ */ jsx49(
|
|
11041
11348
|
"button",
|
|
11042
11349
|
{
|
|
11043
11350
|
type: "button",
|
|
@@ -11077,9 +11384,9 @@ var NotificationList = ({
|
|
|
11077
11384
|
}
|
|
11078
11385
|
};
|
|
11079
11386
|
if (error) {
|
|
11080
|
-
return /* @__PURE__ */
|
|
11081
|
-
/* @__PURE__ */
|
|
11082
|
-
onRetry && /* @__PURE__ */
|
|
11387
|
+
return /* @__PURE__ */ jsxs37("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: [
|
|
11388
|
+
/* @__PURE__ */ jsx49("p", { className: "text-sm text-error-600", children: error }),
|
|
11389
|
+
onRetry && /* @__PURE__ */ jsx49(
|
|
11083
11390
|
"button",
|
|
11084
11391
|
{
|
|
11085
11392
|
type: "button",
|
|
@@ -11091,8 +11398,8 @@ var NotificationList = ({
|
|
|
11091
11398
|
] });
|
|
11092
11399
|
}
|
|
11093
11400
|
if (loading) {
|
|
11094
|
-
return /* @__PURE__ */
|
|
11095
|
-
(skeletonId) => /* @__PURE__ */
|
|
11401
|
+
return /* @__PURE__ */ jsx49("div", { className: "flex flex-col gap-0 w-full", children: ["skeleton-first", "skeleton-second", "skeleton-third"].map(
|
|
11402
|
+
(skeletonId) => /* @__PURE__ */ jsx49(
|
|
11096
11403
|
SkeletonCard,
|
|
11097
11404
|
{
|
|
11098
11405
|
className: "p-4 border-b border-border-200"
|
|
@@ -11102,11 +11409,11 @@ var NotificationList = ({
|
|
|
11102
11409
|
) });
|
|
11103
11410
|
}
|
|
11104
11411
|
if (!groupedNotifications || groupedNotifications.length === 0) {
|
|
11105
|
-
return renderEmpty ? /* @__PURE__ */
|
|
11412
|
+
return renderEmpty ? /* @__PURE__ */ jsx49("div", { className: "w-full", children: renderEmpty() }) : /* @__PURE__ */ jsx49(NotificationEmpty, {});
|
|
11106
11413
|
}
|
|
11107
|
-
return /* @__PURE__ */
|
|
11108
|
-
groupedNotifications.map((group, idx) => /* @__PURE__ */
|
|
11109
|
-
/* @__PURE__ */
|
|
11414
|
+
return /* @__PURE__ */ jsxs37("div", { className: cn("flex flex-col gap-0 w-full", className), children: [
|
|
11415
|
+
groupedNotifications.map((group, idx) => /* @__PURE__ */ jsxs37("div", { className: "flex flex-col", children: [
|
|
11416
|
+
/* @__PURE__ */ jsx49("div", { className: "flex items-end px-4 py-6 pb-4", children: /* @__PURE__ */ jsx49("h4", { className: "text-lg font-bold text-text-500 flex-grow", children: group.label }) }),
|
|
11110
11417
|
group.notifications.map((notification) => {
|
|
11111
11418
|
const isGlobalNotification = !notification.entityType && !notification.entityId && !notification.activity && !notification.goal;
|
|
11112
11419
|
let navigationHandler;
|
|
@@ -11126,7 +11433,7 @@ var NotificationList = ({
|
|
|
11126
11433
|
notification.entityType ?? void 0
|
|
11127
11434
|
);
|
|
11128
11435
|
}
|
|
11129
|
-
return /* @__PURE__ */
|
|
11436
|
+
return /* @__PURE__ */ jsx49(
|
|
11130
11437
|
SingleNotificationCard,
|
|
11131
11438
|
{
|
|
11132
11439
|
title: notification.title,
|
|
@@ -11142,7 +11449,7 @@ var NotificationList = ({
|
|
|
11142
11449
|
);
|
|
11143
11450
|
})
|
|
11144
11451
|
] }, `${group.label}-${idx}`)),
|
|
11145
|
-
/* @__PURE__ */
|
|
11452
|
+
/* @__PURE__ */ jsx49(
|
|
11146
11453
|
Modal_default,
|
|
11147
11454
|
{
|
|
11148
11455
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -11192,7 +11499,7 @@ var NotificationCenter = ({
|
|
|
11192
11499
|
onFetchNotifications?.();
|
|
11193
11500
|
}
|
|
11194
11501
|
}, [isActive, onFetchNotifications]);
|
|
11195
|
-
const renderEmptyState = () => /* @__PURE__ */
|
|
11502
|
+
const renderEmptyState = () => /* @__PURE__ */ jsx49(
|
|
11196
11503
|
NotificationEmpty,
|
|
11197
11504
|
{
|
|
11198
11505
|
emptyStateImage,
|
|
@@ -11201,17 +11508,17 @@ var NotificationCenter = ({
|
|
|
11201
11508
|
}
|
|
11202
11509
|
);
|
|
11203
11510
|
if (isMobile) {
|
|
11204
|
-
return /* @__PURE__ */
|
|
11205
|
-
/* @__PURE__ */
|
|
11511
|
+
return /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
11512
|
+
/* @__PURE__ */ jsx49(
|
|
11206
11513
|
IconButton_default,
|
|
11207
11514
|
{
|
|
11208
11515
|
active: isModalOpen,
|
|
11209
11516
|
onClick: handleMobileClick,
|
|
11210
|
-
icon: /* @__PURE__ */
|
|
11517
|
+
icon: /* @__PURE__ */ jsx49(Bell2, { size: 24, className: "text-primary" }),
|
|
11211
11518
|
className
|
|
11212
11519
|
}
|
|
11213
11520
|
),
|
|
11214
|
-
/* @__PURE__ */
|
|
11521
|
+
/* @__PURE__ */ jsx49(
|
|
11215
11522
|
Modal_default,
|
|
11216
11523
|
{
|
|
11217
11524
|
isOpen: isModalOpen,
|
|
@@ -11220,10 +11527,10 @@ var NotificationCenter = ({
|
|
|
11220
11527
|
size: "md",
|
|
11221
11528
|
hideCloseButton: false,
|
|
11222
11529
|
closeOnEscape: true,
|
|
11223
|
-
children: /* @__PURE__ */
|
|
11224
|
-
/* @__PURE__ */
|
|
11225
|
-
/* @__PURE__ */
|
|
11226
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */
|
|
11530
|
+
children: /* @__PURE__ */ jsxs37("div", { className: "flex flex-col h-full max-h-[80vh]", children: [
|
|
11531
|
+
/* @__PURE__ */ jsxs37("div", { className: "px-0 pb-3 border-b border-border-200", children: [
|
|
11532
|
+
/* @__PURE__ */ jsx49(NotificationHeader, { unreadCount, variant: "modal" }),
|
|
11533
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx49(
|
|
11227
11534
|
"button",
|
|
11228
11535
|
{
|
|
11229
11536
|
type: "button",
|
|
@@ -11233,7 +11540,7 @@ var NotificationCenter = ({
|
|
|
11233
11540
|
}
|
|
11234
11541
|
)
|
|
11235
11542
|
] }),
|
|
11236
|
-
/* @__PURE__ */
|
|
11543
|
+
/* @__PURE__ */ jsx49("div", { className: "flex-1 overflow-y-auto", children: /* @__PURE__ */ jsx49(
|
|
11237
11544
|
NotificationList,
|
|
11238
11545
|
{
|
|
11239
11546
|
groupedNotifications,
|
|
@@ -11263,14 +11570,14 @@ var NotificationCenter = ({
|
|
|
11263
11570
|
)
|
|
11264
11571
|
] });
|
|
11265
11572
|
}
|
|
11266
|
-
return /* @__PURE__ */
|
|
11267
|
-
/* @__PURE__ */
|
|
11268
|
-
/* @__PURE__ */
|
|
11573
|
+
return /* @__PURE__ */ jsxs37(Fragment11, { children: [
|
|
11574
|
+
/* @__PURE__ */ jsxs37(DropdownMenu_default, { children: [
|
|
11575
|
+
/* @__PURE__ */ jsx49(DropdownMenuTrigger, { className: "text-primary cursor-pointer", children: /* @__PURE__ */ jsx49(
|
|
11269
11576
|
IconButton_default,
|
|
11270
11577
|
{
|
|
11271
11578
|
active: isActive,
|
|
11272
11579
|
onClick: handleDesktopClick,
|
|
11273
|
-
icon: /* @__PURE__ */
|
|
11580
|
+
icon: /* @__PURE__ */ jsx49(
|
|
11274
11581
|
Bell2,
|
|
11275
11582
|
{
|
|
11276
11583
|
size: 24,
|
|
@@ -11280,22 +11587,22 @@ var NotificationCenter = ({
|
|
|
11280
11587
|
className
|
|
11281
11588
|
}
|
|
11282
11589
|
) }),
|
|
11283
|
-
/* @__PURE__ */
|
|
11590
|
+
/* @__PURE__ */ jsx49(
|
|
11284
11591
|
DropdownMenuContent,
|
|
11285
11592
|
{
|
|
11286
11593
|
className: "min-w-[320px] max-w-[400px] max-h-[500px] overflow-hidden",
|
|
11287
11594
|
side: "bottom",
|
|
11288
11595
|
align: "end",
|
|
11289
|
-
children: /* @__PURE__ */
|
|
11290
|
-
/* @__PURE__ */
|
|
11291
|
-
/* @__PURE__ */
|
|
11596
|
+
children: /* @__PURE__ */ jsxs37("div", { className: "flex flex-col", children: [
|
|
11597
|
+
/* @__PURE__ */ jsxs37("div", { className: "px-4 py-3 border-b border-border-200", children: [
|
|
11598
|
+
/* @__PURE__ */ jsx49(
|
|
11292
11599
|
NotificationHeader,
|
|
11293
11600
|
{
|
|
11294
11601
|
unreadCount,
|
|
11295
11602
|
variant: "dropdown"
|
|
11296
11603
|
}
|
|
11297
11604
|
),
|
|
11298
|
-
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */
|
|
11605
|
+
unreadCount > 0 && onMarkAllAsRead && /* @__PURE__ */ jsx49(
|
|
11299
11606
|
"button",
|
|
11300
11607
|
{
|
|
11301
11608
|
type: "button",
|
|
@@ -11305,7 +11612,7 @@ var NotificationCenter = ({
|
|
|
11305
11612
|
}
|
|
11306
11613
|
)
|
|
11307
11614
|
] }),
|
|
11308
|
-
/* @__PURE__ */
|
|
11615
|
+
/* @__PURE__ */ jsx49("div", { className: "max-h-[350px] overflow-y-auto", children: /* @__PURE__ */ jsx49(
|
|
11309
11616
|
NotificationList,
|
|
11310
11617
|
{
|
|
11311
11618
|
groupedNotifications,
|
|
@@ -11330,7 +11637,7 @@ var NotificationCenter = ({
|
|
|
11330
11637
|
}
|
|
11331
11638
|
)
|
|
11332
11639
|
] }),
|
|
11333
|
-
/* @__PURE__ */
|
|
11640
|
+
/* @__PURE__ */ jsx49(
|
|
11334
11641
|
Modal_default,
|
|
11335
11642
|
{
|
|
11336
11643
|
isOpen: globalNotificationModal.isOpen,
|
|
@@ -11349,7 +11656,7 @@ var NotificationCenter = ({
|
|
|
11349
11656
|
var NotificationCard = (props) => {
|
|
11350
11657
|
switch (props.mode) {
|
|
11351
11658
|
case "single":
|
|
11352
|
-
return /* @__PURE__ */
|
|
11659
|
+
return /* @__PURE__ */ jsx49(
|
|
11353
11660
|
SingleNotificationCard,
|
|
11354
11661
|
{
|
|
11355
11662
|
title: props.title,
|
|
@@ -11364,7 +11671,7 @@ var NotificationCard = (props) => {
|
|
|
11364
11671
|
}
|
|
11365
11672
|
);
|
|
11366
11673
|
case "list":
|
|
11367
|
-
return /* @__PURE__ */
|
|
11674
|
+
return /* @__PURE__ */ jsx49(
|
|
11368
11675
|
NotificationList,
|
|
11369
11676
|
{
|
|
11370
11677
|
groupedNotifications: props.groupedNotifications ?? (props.notifications ? [
|
|
@@ -11387,9 +11694,9 @@ var NotificationCard = (props) => {
|
|
|
11387
11694
|
}
|
|
11388
11695
|
);
|
|
11389
11696
|
case "center":
|
|
11390
|
-
return /* @__PURE__ */
|
|
11697
|
+
return /* @__PURE__ */ jsx49(NotificationCenter, { ...props });
|
|
11391
11698
|
default:
|
|
11392
|
-
return /* @__PURE__ */
|
|
11699
|
+
return /* @__PURE__ */ jsx49("div", { className: "flex flex-col items-center gap-4 p-6 w-full", children: /* @__PURE__ */ jsx49("p", { className: "text-sm text-text-600", children: "Modo de notifica\xE7\xE3o n\xE3o reconhecido" }) });
|
|
11393
11700
|
}
|
|
11394
11701
|
};
|
|
11395
11702
|
var NotificationCard_default = NotificationCard;
|
|
@@ -11439,7 +11746,7 @@ var createUseNotifications = (apiClient) => {
|
|
|
11439
11746
|
);
|
|
11440
11747
|
const getActionLabel = useCallback6(
|
|
11441
11748
|
(entityType) => {
|
|
11442
|
-
if (!entityType) return
|
|
11749
|
+
if (!entityType) return "Ver mais";
|
|
11443
11750
|
switch (entityType.toUpperCase()) {
|
|
11444
11751
|
case "ACTIVITY" /* ACTIVITY */:
|
|
11445
11752
|
return "Ver atividade";
|
|
@@ -11606,6 +11913,8 @@ export {
|
|
|
11606
11913
|
SkeletonTable,
|
|
11607
11914
|
SkeletonText,
|
|
11608
11915
|
Stepper_default as Stepper,
|
|
11916
|
+
SubjectEnum,
|
|
11917
|
+
SubjectInfo,
|
|
11609
11918
|
Table_default as Table,
|
|
11610
11919
|
Text_default as Text,
|
|
11611
11920
|
TextArea_default as TextArea,
|
|
@@ -11623,6 +11932,10 @@ export {
|
|
|
11623
11932
|
getDeviceType,
|
|
11624
11933
|
getRootDomain,
|
|
11625
11934
|
getStatusBadge,
|
|
11935
|
+
getSubjectColorClass,
|
|
11936
|
+
getSubjectData,
|
|
11937
|
+
getSubjectIcon,
|
|
11938
|
+
getSubjectName,
|
|
11626
11939
|
useApiConfig,
|
|
11627
11940
|
useAuth,
|
|
11628
11941
|
useAuthGuard,
|