@data-c/ui 0.2.86 → 0.2.89
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/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +136 -130
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -2572,7 +2572,7 @@ function PageTitle(props) {
|
|
|
2572
2572
|
}
|
|
2573
2573
|
|
|
2574
2574
|
// src/MioAuth/index.tsx
|
|
2575
|
-
import { Stack as
|
|
2575
|
+
import { Stack as Stack44, Typography as Typography26, useMediaQuery as useMediaQuery6, useTheme as useTheme11 } from "@mui/material";
|
|
2576
2576
|
|
|
2577
2577
|
// src/MioAuth/components/BannerSection/index.tsx
|
|
2578
2578
|
import { Stack as Stack7, useMediaQuery as useMediaQuery2, useTheme } from "@mui/material";
|
|
@@ -2602,7 +2602,7 @@ function BannerSection(props) {
|
|
|
2602
2602
|
}
|
|
2603
2603
|
|
|
2604
2604
|
// src/MioAuth/components/LoginSection/index.tsx
|
|
2605
|
-
import { Box as Box21, Stack as
|
|
2605
|
+
import { Box as Box21, Stack as Stack42, useMediaQuery as useMediaQuery4, useTheme as useTheme9 } from "@mui/material";
|
|
2606
2606
|
|
|
2607
2607
|
// src/MioAuth/components/Header/index.tsx
|
|
2608
2608
|
import { Stack as Stack8, Typography as Typography6 } from "@mui/material";
|
|
@@ -2642,7 +2642,7 @@ import {
|
|
|
2642
2642
|
useCredentials as useCredentials2,
|
|
2643
2643
|
useValidations as useValidations2
|
|
2644
2644
|
} from "@data-c/hooks";
|
|
2645
|
-
import { Alert as Alert4, Divider as Divider4, Stack as
|
|
2645
|
+
import { Alert as Alert4, Divider as Divider4, Stack as Stack39, TextField as TextField6, Typography as Typography21 } from "@mui/material";
|
|
2646
2646
|
import { isAxiosError as isAxiosError2 } from "axios";
|
|
2647
2647
|
import Mail from "@mui/icons-material/Mail";
|
|
2648
2648
|
import WhatsApp from "@mui/icons-material/WhatsApp";
|
|
@@ -5069,7 +5069,7 @@ import isStrongPassword from "validator/lib/isStrongPassword";
|
|
|
5069
5069
|
// src/PasswordTextField/index.tsx
|
|
5070
5070
|
import Visibility from "@mui/icons-material/Visibility";
|
|
5071
5071
|
import VisibilityOff from "@mui/icons-material/VisibilityOff";
|
|
5072
|
-
import { IconButton as
|
|
5072
|
+
import { IconButton as IconButton13, InputAdornment as InputAdornment4 } from "@mui/material";
|
|
5073
5073
|
import { useState as useState16 } from "react";
|
|
5074
5074
|
|
|
5075
5075
|
// src/v2/Header/HeaderContent.tsx
|
|
@@ -9313,11 +9313,16 @@ function TransporterRoot(props) {
|
|
|
9313
9313
|
}
|
|
9314
9314
|
|
|
9315
9315
|
// src/v2/Transporter/TransporterTextField.tsx
|
|
9316
|
-
import {
|
|
9316
|
+
import { IconButton as IconButton11, Stack as Stack36 } from "@mui/material";
|
|
9317
|
+
import { jsx as jsx141, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
9317
9318
|
function TransporterTextField(props) {
|
|
9318
|
-
const { disableLocalFiltering, renderOption, ...rest } = props;
|
|
9319
|
+
const { disableLocalFiltering, renderOption, endAdornment, ...rest } = props;
|
|
9319
9320
|
const scope = useTransporterScope();
|
|
9320
9321
|
const { openTransporter, triggerOnChange, value } = useTransporter(scope);
|
|
9322
|
+
const defaultEndAdornment = endAdornment ? /* @__PURE__ */ jsxs63(Stack36, { direction: "row", spacing: 0, alignItems: "center", children: [
|
|
9323
|
+
/* @__PURE__ */ jsx141(IconButton11, { onClick: () => openTransporter(), edge: "end", children: /* @__PURE__ */ jsx141(LucidIcon_default, { name: "ArrowUpRight", size: 18 }) }),
|
|
9324
|
+
endAdornment
|
|
9325
|
+
] }) : /* @__PURE__ */ jsx141(IconButton11, { onClick: () => openTransporter(), edge: "end", children: /* @__PURE__ */ jsx141(LucidIcon_default, { name: "ArrowUpRight", size: 18 }) });
|
|
9321
9326
|
return /* @__PURE__ */ jsx141(
|
|
9322
9327
|
Autocomplete,
|
|
9323
9328
|
{
|
|
@@ -9332,6 +9337,7 @@ function TransporterTextField(props) {
|
|
|
9332
9337
|
}
|
|
9333
9338
|
},
|
|
9334
9339
|
renderOption,
|
|
9340
|
+
endAdornment: defaultEndAdornment,
|
|
9335
9341
|
...rest
|
|
9336
9342
|
}
|
|
9337
9343
|
);
|
|
@@ -9629,15 +9635,15 @@ import axios from "axios";
|
|
|
9629
9635
|
import { useEffect as useEffect13, useState as useState14 } from "react";
|
|
9630
9636
|
|
|
9631
9637
|
// src/v2/NotaVersao/NotaVersaoItem.tsx
|
|
9632
|
-
import { Collapse as Collapse2, Stack as
|
|
9638
|
+
import { Collapse as Collapse2, Stack as Stack37, Typography as Typography18 } from "@mui/material";
|
|
9633
9639
|
import { useState as useState13 } from "react";
|
|
9634
|
-
import { Fragment as Fragment8, jsx as jsx146, jsxs as
|
|
9640
|
+
import { Fragment as Fragment8, jsx as jsx146, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
9635
9641
|
function NotaVersaoItem(props) {
|
|
9636
9642
|
const { article, isOpen: _isOpen } = props;
|
|
9637
9643
|
const [isOpen, setOpen] = useState13(Boolean(_isOpen));
|
|
9638
|
-
return /* @__PURE__ */
|
|
9644
|
+
return /* @__PURE__ */ jsxs64(Fragment8, { children: [
|
|
9639
9645
|
/* @__PURE__ */ jsx146(
|
|
9640
|
-
|
|
9646
|
+
Stack37,
|
|
9641
9647
|
{
|
|
9642
9648
|
onClick: () => setOpen(!isOpen),
|
|
9643
9649
|
sx: {
|
|
@@ -9663,7 +9669,7 @@ function NotaVersaoItem(props) {
|
|
|
9663
9669
|
}
|
|
9664
9670
|
|
|
9665
9671
|
// src/v2/NotaVersao/index.tsx
|
|
9666
|
-
import { Fragment as Fragment9, jsx as jsx147, jsxs as
|
|
9672
|
+
import { Fragment as Fragment9, jsx as jsx147, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
9667
9673
|
function NotaVersao(props) {
|
|
9668
9674
|
const {
|
|
9669
9675
|
sectionId,
|
|
@@ -9730,7 +9736,7 @@ function NotaVersao(props) {
|
|
|
9730
9736
|
loadSection();
|
|
9731
9737
|
}
|
|
9732
9738
|
}, [sectionId, isOpen]);
|
|
9733
|
-
return /* @__PURE__ */
|
|
9739
|
+
return /* @__PURE__ */ jsxs65(Fragment9, { children: [
|
|
9734
9740
|
/* @__PURE__ */ jsx147(
|
|
9735
9741
|
Button_default,
|
|
9736
9742
|
{
|
|
@@ -9751,7 +9757,7 @@ function NotaVersao(props) {
|
|
|
9751
9757
|
children: versao
|
|
9752
9758
|
}
|
|
9753
9759
|
),
|
|
9754
|
-
/* @__PURE__ */
|
|
9760
|
+
/* @__PURE__ */ jsxs65(
|
|
9755
9761
|
Dialog3,
|
|
9756
9762
|
{
|
|
9757
9763
|
fullWidth: true,
|
|
@@ -9760,13 +9766,13 @@ function NotaVersao(props) {
|
|
|
9760
9766
|
open: isOpen,
|
|
9761
9767
|
onClose: () => setOpen(false),
|
|
9762
9768
|
children: [
|
|
9763
|
-
/* @__PURE__ */
|
|
9769
|
+
/* @__PURE__ */ jsxs65(DialogTitle, { children: [
|
|
9764
9770
|
"Notas de Vers\xE3o",
|
|
9765
9771
|
" ",
|
|
9766
9772
|
loading && /* @__PURE__ */ jsx147(CircularProgress5, { sx: { ml: 1 }, size: 14 })
|
|
9767
9773
|
] }),
|
|
9768
|
-
/* @__PURE__ */
|
|
9769
|
-
novaVersaoDisponivel && /* @__PURE__ */
|
|
9774
|
+
/* @__PURE__ */ jsxs65(DialogContent2, { children: [
|
|
9775
|
+
novaVersaoDisponivel && /* @__PURE__ */ jsxs65(Alert2, { severity: "info", sx: { mb: 2 }, children: [
|
|
9770
9776
|
"Uma nova vers\xE3o (",
|
|
9771
9777
|
versao,
|
|
9772
9778
|
") est\xE1 dispon\xEDvel!"
|
|
@@ -9826,10 +9832,10 @@ function DatePickerProvider({
|
|
|
9826
9832
|
|
|
9827
9833
|
// src/v2/DateRangePicker/index.tsx
|
|
9828
9834
|
import {
|
|
9829
|
-
IconButton as
|
|
9835
|
+
IconButton as IconButton12,
|
|
9830
9836
|
InputAdornment as InputAdornment3,
|
|
9831
9837
|
MenuItem as MenuItem5,
|
|
9832
|
-
Stack as
|
|
9838
|
+
Stack as Stack38,
|
|
9833
9839
|
styled as styled7
|
|
9834
9840
|
} from "@mui/material";
|
|
9835
9841
|
import {
|
|
@@ -9839,7 +9845,7 @@ import {
|
|
|
9839
9845
|
} from "@mui/x-date-pickers";
|
|
9840
9846
|
import { DateTime as DateTime2 } from "luxon";
|
|
9841
9847
|
import { useEffect as useEffect14, useMemo as useMemo9, useState as useState15 } from "react";
|
|
9842
|
-
import { jsx as jsx150, jsxs as
|
|
9848
|
+
import { jsx as jsx150, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
9843
9849
|
var CustomPickersDay = styled7(PickersDay, {
|
|
9844
9850
|
shouldForwardProp: (prop) => prop !== "isSelected" && prop !== "isHovered"
|
|
9845
9851
|
})(
|
|
@@ -10011,7 +10017,7 @@ function DateRangePicker(props) {
|
|
|
10011
10017
|
return void 0;
|
|
10012
10018
|
}, [dates.tipo]);
|
|
10013
10019
|
if (renderFieldSet) {
|
|
10014
|
-
return /* @__PURE__ */
|
|
10020
|
+
return /* @__PURE__ */ jsxs66(
|
|
10015
10021
|
"fieldset",
|
|
10016
10022
|
{
|
|
10017
10023
|
style: {
|
|
@@ -10031,8 +10037,8 @@ function DateRangePicker(props) {
|
|
|
10031
10037
|
children: "Per\xEDodo"
|
|
10032
10038
|
}
|
|
10033
10039
|
),
|
|
10034
|
-
/* @__PURE__ */
|
|
10035
|
-
/* @__PURE__ */
|
|
10040
|
+
/* @__PURE__ */ jsxs66(Stack38, { spacing: 2, children: [
|
|
10041
|
+
/* @__PURE__ */ jsxs66(
|
|
10036
10042
|
TextField5,
|
|
10037
10043
|
{
|
|
10038
10044
|
value: dates.tipo,
|
|
@@ -10045,9 +10051,9 @@ function DateRangePicker(props) {
|
|
|
10045
10051
|
size: "small",
|
|
10046
10052
|
variant: "outlined",
|
|
10047
10053
|
InputProps: {
|
|
10048
|
-
startAdornment: dates?.tipo !== "livre" && /* @__PURE__ */
|
|
10049
|
-
/* @__PURE__ */ jsx150(
|
|
10050
|
-
/* @__PURE__ */ jsx150(
|
|
10054
|
+
startAdornment: dates?.tipo !== "livre" && /* @__PURE__ */ jsxs66(InputAdornment3, { position: "start", children: [
|
|
10055
|
+
/* @__PURE__ */ jsx150(IconButton12, { size: "small", onClick: handleBackToPrevious, children: /* @__PURE__ */ jsx150(ArrowLeftIcon, { fontSize: "small" }) }),
|
|
10056
|
+
/* @__PURE__ */ jsx150(IconButton12, { size: "small", onClick: handleGoToNext, children: /* @__PURE__ */ jsx150(ArrowRightIcon, { fontSize: "small" }) })
|
|
10051
10057
|
] })
|
|
10052
10058
|
},
|
|
10053
10059
|
children: [
|
|
@@ -10060,7 +10066,7 @@ function DateRangePicker(props) {
|
|
|
10060
10066
|
]
|
|
10061
10067
|
}
|
|
10062
10068
|
),
|
|
10063
|
-
/* @__PURE__ */
|
|
10069
|
+
/* @__PURE__ */ jsxs66(Stack38, { direction: "row", spacing: 1, children: [
|
|
10064
10070
|
/* @__PURE__ */ jsx150(
|
|
10065
10071
|
DatePicker,
|
|
10066
10072
|
{
|
|
@@ -10100,8 +10106,8 @@ function DateRangePicker(props) {
|
|
|
10100
10106
|
}
|
|
10101
10107
|
);
|
|
10102
10108
|
}
|
|
10103
|
-
return /* @__PURE__ */
|
|
10104
|
-
/* @__PURE__ */
|
|
10109
|
+
return /* @__PURE__ */ jsxs66(Stack38, { spacing: 2, children: [
|
|
10110
|
+
/* @__PURE__ */ jsxs66(
|
|
10105
10111
|
TextField5,
|
|
10106
10112
|
{
|
|
10107
10113
|
value: dates.tipo,
|
|
@@ -10114,9 +10120,9 @@ function DateRangePicker(props) {
|
|
|
10114
10120
|
size: "small",
|
|
10115
10121
|
variant: "outlined",
|
|
10116
10122
|
InputProps: {
|
|
10117
|
-
startAdornment: dates?.tipo !== "livre" && /* @__PURE__ */
|
|
10118
|
-
/* @__PURE__ */ jsx150(
|
|
10119
|
-
/* @__PURE__ */ jsx150(
|
|
10123
|
+
startAdornment: dates?.tipo !== "livre" && /* @__PURE__ */ jsxs66(InputAdornment3, { position: "start", children: [
|
|
10124
|
+
/* @__PURE__ */ jsx150(IconButton12, { size: "small", onClick: handleBackToPrevious, children: /* @__PURE__ */ jsx150(ArrowLeftIcon, { fontSize: "small" }) }),
|
|
10125
|
+
/* @__PURE__ */ jsx150(IconButton12, { size: "small", onClick: handleGoToNext, children: /* @__PURE__ */ jsx150(ArrowRightIcon, { fontSize: "small" }) })
|
|
10120
10126
|
] })
|
|
10121
10127
|
},
|
|
10122
10128
|
children: [
|
|
@@ -10129,7 +10135,7 @@ function DateRangePicker(props) {
|
|
|
10129
10135
|
]
|
|
10130
10136
|
}
|
|
10131
10137
|
),
|
|
10132
|
-
/* @__PURE__ */
|
|
10138
|
+
/* @__PURE__ */ jsxs66(Stack38, { direction: "row", spacing: 1, children: [
|
|
10133
10139
|
/* @__PURE__ */ jsx150(
|
|
10134
10140
|
DatePicker,
|
|
10135
10141
|
{
|
|
@@ -10271,7 +10277,7 @@ function PasswordTextField(props) {
|
|
|
10271
10277
|
slotProps: {
|
|
10272
10278
|
input: {
|
|
10273
10279
|
endAdornment: /* @__PURE__ */ jsx152(InputAdornment4, { position: "end", children: /* @__PURE__ */ jsx152(
|
|
10274
|
-
|
|
10280
|
+
IconButton13,
|
|
10275
10281
|
{
|
|
10276
10282
|
tabIndex: -1,
|
|
10277
10283
|
onClick: handleClickShowPassword,
|
|
@@ -10289,11 +10295,11 @@ function PasswordTextField(props) {
|
|
|
10289
10295
|
// src/AlterarSenha/components/ValidatorMessage/index.tsx
|
|
10290
10296
|
import Circle3 from "@mui/icons-material/Circle";
|
|
10291
10297
|
import { Box as Box16, Typography as Typography19, useTheme as useTheme8 } from "@mui/material";
|
|
10292
|
-
import { jsx as jsx153, jsxs as
|
|
10298
|
+
import { jsx as jsx153, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
10293
10299
|
function ValidatorMessage(props) {
|
|
10294
10300
|
const { isValid, message } = props;
|
|
10295
10301
|
const theme2 = useTheme8();
|
|
10296
|
-
return /* @__PURE__ */
|
|
10302
|
+
return /* @__PURE__ */ jsxs67(
|
|
10297
10303
|
Box16,
|
|
10298
10304
|
{
|
|
10299
10305
|
sx: {
|
|
@@ -10328,7 +10334,7 @@ function ValidatorMessage(props) {
|
|
|
10328
10334
|
}
|
|
10329
10335
|
|
|
10330
10336
|
// src/AlterarSenha/index.tsx
|
|
10331
|
-
import { jsx as jsx154, jsxs as
|
|
10337
|
+
import { jsx as jsx154, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
10332
10338
|
var defaultData = {
|
|
10333
10339
|
senhaAtual: "",
|
|
10334
10340
|
senhaNova: "",
|
|
@@ -10436,18 +10442,18 @@ function AlterarSenha(props) {
|
|
|
10436
10442
|
return false;
|
|
10437
10443
|
return data?.senhaNova === data?.senhaNovaConfirmar;
|
|
10438
10444
|
}
|
|
10439
|
-
return /* @__PURE__ */
|
|
10440
|
-
/* @__PURE__ */
|
|
10445
|
+
return /* @__PURE__ */ jsxs68(Dialog_default.Root, { open: isOpen, onClose: (_) => onClose(), maxWidth: "md", children: [
|
|
10446
|
+
/* @__PURE__ */ jsxs68(Dialog_default.Header, { children: [
|
|
10441
10447
|
/* @__PURE__ */ jsx154(Dialog_default.Title, { children: "Alterar Senha" }),
|
|
10442
10448
|
/* @__PURE__ */ jsx154(Dialog_default.ActionClose, { onClose })
|
|
10443
10449
|
] }),
|
|
10444
|
-
/* @__PURE__ */ jsx154(Dialog_default.Content, { children: /* @__PURE__ */
|
|
10445
|
-
primeiroAcesso && /* @__PURE__ */ jsx154(Grid, { size: 12, children: /* @__PURE__ */
|
|
10450
|
+
/* @__PURE__ */ jsx154(Dialog_default.Content, { children: /* @__PURE__ */ jsxs68(Grid, { container: true, spacing: 2, children: [
|
|
10451
|
+
primeiroAcesso && /* @__PURE__ */ jsx154(Grid, { size: 12, children: /* @__PURE__ */ jsxs68(Alert3, { severity: "info", children: [
|
|
10446
10452
|
"Voc\xEA est\xE1 acessando o sistema com uma senha tempor\xE1ria.",
|
|
10447
10453
|
/* @__PURE__ */ jsx154("br", {}),
|
|
10448
10454
|
"Cadastre uma senha segura para deixar sua conta mais protegida."
|
|
10449
10455
|
] }) }),
|
|
10450
|
-
/* @__PURE__ */
|
|
10456
|
+
/* @__PURE__ */ jsxs68(Grid, { size: 12, children: [
|
|
10451
10457
|
/* @__PURE__ */ jsx154(
|
|
10452
10458
|
PasswordTextField,
|
|
10453
10459
|
{
|
|
@@ -10458,7 +10464,7 @@ function AlterarSenha(props) {
|
|
|
10458
10464
|
...validationProps("senhaAtual")
|
|
10459
10465
|
}
|
|
10460
10466
|
),
|
|
10461
|
-
/* @__PURE__ */
|
|
10467
|
+
/* @__PURE__ */ jsxs68(
|
|
10462
10468
|
Box17,
|
|
10463
10469
|
{
|
|
10464
10470
|
sx: { display: "flex", alignItems: "center", gap: 0.5, mt: 0.5 },
|
|
@@ -10480,7 +10486,7 @@ function AlterarSenha(props) {
|
|
|
10480
10486
|
...validationProps("senhaNova")
|
|
10481
10487
|
}
|
|
10482
10488
|
) }),
|
|
10483
|
-
/* @__PURE__ */
|
|
10489
|
+
/* @__PURE__ */ jsxs68(Grid, { size: 12, children: [
|
|
10484
10490
|
/* @__PURE__ */ jsx154(
|
|
10485
10491
|
PasswordTextField,
|
|
10486
10492
|
{
|
|
@@ -10491,7 +10497,7 @@ function AlterarSenha(props) {
|
|
|
10491
10497
|
...validationProps("senhaNovaConfirmar")
|
|
10492
10498
|
}
|
|
10493
10499
|
),
|
|
10494
|
-
/* @__PURE__ */
|
|
10500
|
+
/* @__PURE__ */ jsxs68(
|
|
10495
10501
|
Box17,
|
|
10496
10502
|
{
|
|
10497
10503
|
sx: { display: "flex", alignItems: "center", gap: 0.5, mt: 0.5 },
|
|
@@ -10502,7 +10508,7 @@ function AlterarSenha(props) {
|
|
|
10502
10508
|
}
|
|
10503
10509
|
)
|
|
10504
10510
|
] }),
|
|
10505
|
-
/* @__PURE__ */
|
|
10511
|
+
/* @__PURE__ */ jsxs68(Grid, { size: 12, children: [
|
|
10506
10512
|
/* @__PURE__ */ jsx154(
|
|
10507
10513
|
ValidatorMessage,
|
|
10508
10514
|
{
|
|
@@ -10548,7 +10554,7 @@ function AlterarSenha(props) {
|
|
|
10548
10554
|
] }),
|
|
10549
10555
|
error && /* @__PURE__ */ jsx154(Grid, { size: 12, children: /* @__PURE__ */ jsx154(Alert3, { severity: "error", children: error }) })
|
|
10550
10556
|
] }) }),
|
|
10551
|
-
/* @__PURE__ */ jsx154(Dialog_default.Footer, { children: /* @__PURE__ */
|
|
10557
|
+
/* @__PURE__ */ jsx154(Dialog_default.Footer, { children: /* @__PURE__ */ jsxs68(Dialog_default.Actions, { children: [
|
|
10552
10558
|
/* @__PURE__ */ jsx154(Dialog_default.ActionCancelar, { onClick: () => onClose() }),
|
|
10553
10559
|
/* @__PURE__ */ jsx154(
|
|
10554
10560
|
Dialog_default.ActionSalvar,
|
|
@@ -10564,7 +10570,7 @@ function AlterarSenha(props) {
|
|
|
10564
10570
|
}
|
|
10565
10571
|
|
|
10566
10572
|
// src/MioAuth/components/LoginForm/index.tsx
|
|
10567
|
-
import { jsx as jsx155, jsxs as
|
|
10573
|
+
import { jsx as jsx155, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
10568
10574
|
var schema2 = create$3().shape({
|
|
10569
10575
|
email: create$6().required("Informe o e-mail"),
|
|
10570
10576
|
password: create$6().required("Informe a senha")
|
|
@@ -10606,9 +10612,9 @@ function LoginForm(props) {
|
|
|
10606
10612
|
setLoading(false);
|
|
10607
10613
|
});
|
|
10608
10614
|
}
|
|
10609
|
-
return /* @__PURE__ */
|
|
10610
|
-
/* @__PURE__ */
|
|
10611
|
-
|
|
10615
|
+
return /* @__PURE__ */ jsxs69(Stack39, { component: "form", onSubmit: handleLogin, children: [
|
|
10616
|
+
/* @__PURE__ */ jsxs69(
|
|
10617
|
+
Stack39,
|
|
10612
10618
|
{
|
|
10613
10619
|
spacing: 2,
|
|
10614
10620
|
children: [
|
|
@@ -10675,13 +10681,13 @@ function LoginForm(props) {
|
|
|
10675
10681
|
}
|
|
10676
10682
|
),
|
|
10677
10683
|
error && /* @__PURE__ */ jsx155(Alert4, { severity: "error", children: error }),
|
|
10678
|
-
sucessoAlterarSenha && /* @__PURE__ */
|
|
10684
|
+
sucessoAlterarSenha && /* @__PURE__ */ jsxs69(Alert4, { severity: "success", children: [
|
|
10679
10685
|
"Senha cadastrada com sucesso",
|
|
10680
10686
|
/* @__PURE__ */ jsx155("br", {}),
|
|
10681
10687
|
"Tudo pronto para voc\xEA fazer o login"
|
|
10682
10688
|
] }),
|
|
10683
|
-
/* @__PURE__ */
|
|
10684
|
-
|
|
10689
|
+
/* @__PURE__ */ jsxs69(
|
|
10690
|
+
Stack39,
|
|
10685
10691
|
{
|
|
10686
10692
|
direction: "row",
|
|
10687
10693
|
justifyContent: "center",
|
|
@@ -10695,7 +10701,7 @@ function LoginForm(props) {
|
|
|
10695
10701
|
]
|
|
10696
10702
|
}
|
|
10697
10703
|
),
|
|
10698
|
-
/* @__PURE__ */
|
|
10704
|
+
/* @__PURE__ */ jsxs69(Stack39, { spacing: 1, children: [
|
|
10699
10705
|
/* @__PURE__ */ jsx155(
|
|
10700
10706
|
Button_default,
|
|
10701
10707
|
{
|
|
@@ -10736,7 +10742,7 @@ function LoginForm(props) {
|
|
|
10736
10742
|
import { useState as useState19 } from "react";
|
|
10737
10743
|
import { Alert as Alert5, Box as Box18, TextField as TextField7 } from "@mui/material";
|
|
10738
10744
|
import { useCredentials as useCredentials3, useValidations as useValidations3 } from "@data-c/hooks";
|
|
10739
|
-
import { jsx as jsx156, jsxs as
|
|
10745
|
+
import { jsx as jsx156, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
10740
10746
|
var schema3 = create$3().shape({
|
|
10741
10747
|
email: create$6().required("Informe o e-mail")
|
|
10742
10748
|
});
|
|
@@ -10764,7 +10770,7 @@ function EsqueciSenhaForm(props) {
|
|
|
10764
10770
|
setValidationErrors(error2);
|
|
10765
10771
|
});
|
|
10766
10772
|
}
|
|
10767
|
-
return /* @__PURE__ */
|
|
10773
|
+
return /* @__PURE__ */ jsxs70(Box18, { component: "form", children: [
|
|
10768
10774
|
/* @__PURE__ */ jsx156(
|
|
10769
10775
|
TextField7,
|
|
10770
10776
|
{
|
|
@@ -10842,7 +10848,7 @@ function EsqueciSenhaForm(props) {
|
|
|
10842
10848
|
import { useEffect as useEffect16, useState as useState20 } from "react";
|
|
10843
10849
|
import { Box as Box19, MenuItem as MenuItem6, TextField as TextField8 } from "@mui/material";
|
|
10844
10850
|
import { useCredentials as useCredentials4 } from "@data-c/hooks";
|
|
10845
|
-
import { jsx as jsx157, jsxs as
|
|
10851
|
+
import { jsx as jsx157, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
10846
10852
|
function LicencaForm(props) {
|
|
10847
10853
|
const { loginData, credentialsConfig, onLoginFailed, onLoginSuccess } = props;
|
|
10848
10854
|
const [empresaId, setEmpresaId] = useState20("");
|
|
@@ -10865,7 +10871,7 @@ function LicencaForm(props) {
|
|
|
10865
10871
|
onLoginFailed(err);
|
|
10866
10872
|
}
|
|
10867
10873
|
}
|
|
10868
|
-
return /* @__PURE__ */
|
|
10874
|
+
return /* @__PURE__ */ jsxs71(Box19, { component: "form", sx: { minWidth: "290px" }, children: [
|
|
10869
10875
|
/* @__PURE__ */ jsx157(
|
|
10870
10876
|
TextField8,
|
|
10871
10877
|
{
|
|
@@ -10906,7 +10912,7 @@ import {
|
|
|
10906
10912
|
useForm as useForm2
|
|
10907
10913
|
} from "@data-c/hooks";
|
|
10908
10914
|
import HelpOutline from "@mui/icons-material/HelpOutline";
|
|
10909
|
-
import { Alert as Alert7, IconButton as
|
|
10915
|
+
import { Alert as Alert7, IconButton as IconButton14, Stack as Stack41, TextField as TextField11, Typography as Typography23 } from "@mui/material";
|
|
10910
10916
|
import { useState as useState23 } from "react";
|
|
10911
10917
|
|
|
10912
10918
|
// src/WhastappTextField/index.tsx
|
|
@@ -10964,7 +10970,7 @@ function WhatsAppTextField(props) {
|
|
|
10964
10970
|
import {
|
|
10965
10971
|
useCredentials as useCredentials5
|
|
10966
10972
|
} from "@data-c/hooks";
|
|
10967
|
-
import { Alert as Alert6, Stack as
|
|
10973
|
+
import { Alert as Alert6, Stack as Stack40, Typography as Typography22 } from "@mui/material";
|
|
10968
10974
|
import { useEffect as useEffect17, useState as useState22 } from "react";
|
|
10969
10975
|
|
|
10970
10976
|
// src/VerificationCodeInput/index.tsx
|
|
@@ -11018,7 +11024,7 @@ function VerificationCodeInput({
|
|
|
11018
11024
|
}
|
|
11019
11025
|
|
|
11020
11026
|
// src/MioAuth/components/OtpForm/DialogVerificarOtp.tsx
|
|
11021
|
-
import { jsx as jsx160, jsxs as
|
|
11027
|
+
import { jsx as jsx160, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
11022
11028
|
function DialogVerificarOtp(props) {
|
|
11023
11029
|
const { open, onClose, payload, onLoginSuccess, credentialsConfig } = props;
|
|
11024
11030
|
const [code, setCode] = useState22("");
|
|
@@ -11050,13 +11056,13 @@ function DialogVerificarOtp(props) {
|
|
|
11050
11056
|
setLoading(false);
|
|
11051
11057
|
}
|
|
11052
11058
|
}
|
|
11053
|
-
return /* @__PURE__ */
|
|
11054
|
-
/* @__PURE__ */
|
|
11059
|
+
return /* @__PURE__ */ jsxs72(Dialog_default.Root, { open, onClose: (_) => onClose(), maxWidth: "xs", children: [
|
|
11060
|
+
/* @__PURE__ */ jsxs72(Dialog_default.Header, { children: [
|
|
11055
11061
|
/* @__PURE__ */ jsx160(Dialog_default.Title, { children: "Entrar com senha tempor\xE1ria" }),
|
|
11056
11062
|
/* @__PURE__ */ jsx160(Dialog_default.ActionClose, { onClose })
|
|
11057
11063
|
] }),
|
|
11058
|
-
/* @__PURE__ */ jsx160(Dialog_default.Content, { children: /* @__PURE__ */
|
|
11059
|
-
|
|
11064
|
+
/* @__PURE__ */ jsx160(Dialog_default.Content, { children: /* @__PURE__ */ jsxs72(
|
|
11065
|
+
Stack40,
|
|
11060
11066
|
{
|
|
11061
11067
|
spacing: 2,
|
|
11062
11068
|
justifyContent: "center",
|
|
@@ -11071,7 +11077,7 @@ function DialogVerificarOtp(props) {
|
|
|
11071
11077
|
children: "\u{1F510} Digite a senha tempor\xE1ria para acessar sua conta"
|
|
11072
11078
|
}
|
|
11073
11079
|
),
|
|
11074
|
-
/* @__PURE__ */
|
|
11080
|
+
/* @__PURE__ */ jsxs72(Typography22, { variant: "body1", sx: { fontSize: "10pt" }, children: [
|
|
11075
11081
|
"Enviamos uma senha tempor\xE1ria para ",
|
|
11076
11082
|
/* @__PURE__ */ jsx160("b", { children: payload.target }),
|
|
11077
11083
|
". ",
|
|
@@ -11091,7 +11097,7 @@ function DialogVerificarOtp(props) {
|
|
|
11091
11097
|
]
|
|
11092
11098
|
}
|
|
11093
11099
|
) }),
|
|
11094
|
-
/* @__PURE__ */ jsx160(Dialog_default.Footer, { children: /* @__PURE__ */
|
|
11100
|
+
/* @__PURE__ */ jsx160(Dialog_default.Footer, { children: /* @__PURE__ */ jsxs72(Dialog_default.Actions, { children: [
|
|
11095
11101
|
/* @__PURE__ */ jsx160(Dialog_default.ActionCancelar, { onClick: () => onClose() }),
|
|
11096
11102
|
/* @__PURE__ */ jsx160(
|
|
11097
11103
|
Dialog_default.ActionSalvar,
|
|
@@ -11107,7 +11113,7 @@ function DialogVerificarOtp(props) {
|
|
|
11107
11113
|
}
|
|
11108
11114
|
|
|
11109
11115
|
// src/MioAuth/components/OtpForm/index.tsx
|
|
11110
|
-
import { Fragment as Fragment10, jsx as jsx161, jsxs as
|
|
11116
|
+
import { Fragment as Fragment10, jsx as jsx161, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
11111
11117
|
var contatoSchema = create$3().shape({
|
|
11112
11118
|
contato: create$6().when("$tipo", ([tipo], schema6) => {
|
|
11113
11119
|
return tipo === "otp-email" ? schema6.email("E-mail inv\xE1lido").required("Informe o e-mail") : schema6.matches(/^\+?[1-9]\d{7,14}$/, "N\xFAmero de WhatsApp inv\xE1lido").required("Informe o WhatsApp");
|
|
@@ -11141,8 +11147,8 @@ function OtpForm(props) {
|
|
|
11141
11147
|
{ context: { tipo } }
|
|
11142
11148
|
);
|
|
11143
11149
|
};
|
|
11144
|
-
return /* @__PURE__ */
|
|
11145
|
-
/* @__PURE__ */ jsx161("form", { onSubmit: handleSubmit, children: /* @__PURE__ */
|
|
11150
|
+
return /* @__PURE__ */ jsxs73(Fragment10, { children: [
|
|
11151
|
+
/* @__PURE__ */ jsx161("form", { onSubmit: handleSubmit, children: /* @__PURE__ */ jsxs73(Stack41, { spacing: 2, children: [
|
|
11146
11152
|
/* @__PURE__ */ jsx161(Typography23, { variant: "subtitle2", children: tipo === "otp-email" ? " Informe seu e-mail para receber um c\xF3digo de acesso" : "Informe seu n\xFAmero de WhatsApp para receber um c\xF3digo de acesso" }),
|
|
11147
11153
|
tipo === "otp-email" && /* @__PURE__ */ jsx161(
|
|
11148
11154
|
TextField11,
|
|
@@ -11170,7 +11176,7 @@ function OtpForm(props) {
|
|
|
11170
11176
|
...validationErrors("contato")
|
|
11171
11177
|
}
|
|
11172
11178
|
),
|
|
11173
|
-
/* @__PURE__ */
|
|
11179
|
+
/* @__PURE__ */ jsxs73(Stack41, { children: [
|
|
11174
11180
|
/* @__PURE__ */ jsx161(
|
|
11175
11181
|
Button_default,
|
|
11176
11182
|
{
|
|
@@ -11181,7 +11187,7 @@ function OtpForm(props) {
|
|
|
11181
11187
|
children: "Enviar c\xF3digo"
|
|
11182
11188
|
}
|
|
11183
11189
|
),
|
|
11184
|
-
/* @__PURE__ */
|
|
11190
|
+
/* @__PURE__ */ jsxs73(
|
|
11185
11191
|
ButtonContainer,
|
|
11186
11192
|
{
|
|
11187
11193
|
sx: {
|
|
@@ -11211,7 +11217,7 @@ function OtpForm(props) {
|
|
|
11211
11217
|
href: "https://datacsistemashelp.zendesk.com/hc/pt-br/articles/36489079108756-Login-OTP-via-WhatsApp",
|
|
11212
11218
|
target: "_blank",
|
|
11213
11219
|
rel: "noopener noreferrer",
|
|
11214
|
-
children: /* @__PURE__ */ jsx161(
|
|
11220
|
+
children: /* @__PURE__ */ jsx161(IconButton14, { children: /* @__PURE__ */ jsx161(HelpOutline, { color: "primary" }) })
|
|
11215
11221
|
}
|
|
11216
11222
|
)
|
|
11217
11223
|
]
|
|
@@ -11239,7 +11245,7 @@ function OtpForm(props) {
|
|
|
11239
11245
|
}
|
|
11240
11246
|
|
|
11241
11247
|
// src/MioAuth/components/LoginSection/index.tsx
|
|
11242
|
-
import { jsx as jsx162, jsxs as
|
|
11248
|
+
import { jsx as jsx162, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
11243
11249
|
var pageLabelMap = {
|
|
11244
11250
|
login: "Acesse sua conta",
|
|
11245
11251
|
licensa: "Selecione a licen\xE7a",
|
|
@@ -11297,9 +11303,9 @@ function LoginSection(props) {
|
|
|
11297
11303
|
setView("login");
|
|
11298
11304
|
}
|
|
11299
11305
|
const pageLabel = pageLabelMap[view];
|
|
11300
|
-
return /* @__PURE__ */
|
|
11306
|
+
return /* @__PURE__ */ jsxs74(Stack42, { children: [
|
|
11301
11307
|
/* @__PURE__ */ jsx162(Header, { label: appName, subTitle: pageLabel }),
|
|
11302
|
-
/* @__PURE__ */
|
|
11308
|
+
/* @__PURE__ */ jsxs74(Box21, { sx: { marginTop: 2 }, children: [
|
|
11303
11309
|
view === "login" && /* @__PURE__ */ jsx162(
|
|
11304
11310
|
LoginForm,
|
|
11305
11311
|
{
|
|
@@ -11349,13 +11355,13 @@ function LoginSection(props) {
|
|
|
11349
11355
|
|
|
11350
11356
|
// src/MioAuth/components/DefaultBanner/index.tsx
|
|
11351
11357
|
import ArrowRight from "@mui/icons-material/ArrowRight";
|
|
11352
|
-
import { Link, Stack as
|
|
11353
|
-
import { jsx as jsx163, jsxs as
|
|
11358
|
+
import { Link, Stack as Stack43, Typography as Typography25, useMediaQuery as useMediaQuery5, useTheme as useTheme10 } from "@mui/material";
|
|
11359
|
+
import { jsx as jsx163, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
11354
11360
|
function DefaultBanner() {
|
|
11355
11361
|
const theme2 = useTheme10();
|
|
11356
11362
|
const fullScreen = useMediaQuery5(theme2.breakpoints.up("md"));
|
|
11357
11363
|
return /* @__PURE__ */ jsx163(
|
|
11358
|
-
|
|
11364
|
+
Stack43,
|
|
11359
11365
|
{
|
|
11360
11366
|
component: "section",
|
|
11361
11367
|
display: fullScreen ? "flex" : "none",
|
|
@@ -11369,7 +11375,7 @@ function DefaultBanner() {
|
|
|
11369
11375
|
backgroundPosition: "right",
|
|
11370
11376
|
backgroundRepeat: "no-repeat"
|
|
11371
11377
|
},
|
|
11372
|
-
children: /* @__PURE__ */
|
|
11378
|
+
children: /* @__PURE__ */ jsxs75(Stack43, { padding: "2rem", children: [
|
|
11373
11379
|
/* @__PURE__ */ jsx163(
|
|
11374
11380
|
Typography25,
|
|
11375
11381
|
{
|
|
@@ -11411,7 +11417,7 @@ function DefaultBanner() {
|
|
|
11411
11417
|
children: "Mais de 30 anos de exist\xEAncia e muitas hist\xF3rias de sucesso."
|
|
11412
11418
|
}
|
|
11413
11419
|
),
|
|
11414
|
-
/* @__PURE__ */ jsx163(Link, { href: "https://site.datac.com.br/services/", target: "_blank", children: /* @__PURE__ */
|
|
11420
|
+
/* @__PURE__ */ jsx163(Link, { href: "https://site.datac.com.br/services/", target: "_blank", children: /* @__PURE__ */ jsxs75(
|
|
11415
11421
|
Button_default,
|
|
11416
11422
|
{
|
|
11417
11423
|
component: "a",
|
|
@@ -11450,12 +11456,12 @@ function DefaultBanner() {
|
|
|
11450
11456
|
}
|
|
11451
11457
|
|
|
11452
11458
|
// src/MioAuth/index.tsx
|
|
11453
|
-
import { jsx as jsx164, jsxs as
|
|
11459
|
+
import { jsx as jsx164, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
11454
11460
|
function LoginContainer({ children }) {
|
|
11455
11461
|
const theme2 = useTheme11();
|
|
11456
11462
|
const fullScreen = useMediaQuery6(theme2.breakpoints.up("md"));
|
|
11457
|
-
return /* @__PURE__ */
|
|
11458
|
-
|
|
11463
|
+
return /* @__PURE__ */ jsxs76(
|
|
11464
|
+
Stack44,
|
|
11459
11465
|
{
|
|
11460
11466
|
component: "section",
|
|
11461
11467
|
width: fullScreen ? "46%" : "100%",
|
|
@@ -11465,8 +11471,8 @@ function LoginContainer({ children }) {
|
|
|
11465
11471
|
alignItems: "center",
|
|
11466
11472
|
padding: "2rem",
|
|
11467
11473
|
children: [
|
|
11468
|
-
/* @__PURE__ */ jsx164(
|
|
11469
|
-
/* @__PURE__ */
|
|
11474
|
+
/* @__PURE__ */ jsx164(Stack44, { width: "100%", maxWidth: "28rem", margin: "auto 0", children }),
|
|
11475
|
+
/* @__PURE__ */ jsxs76(Stack44, { direction: "row", alignItems: "center", marginBottom: -3, children: [
|
|
11470
11476
|
/* @__PURE__ */ jsx164(
|
|
11471
11477
|
"img",
|
|
11472
11478
|
{
|
|
@@ -11491,7 +11497,7 @@ function LoginContainer({ children }) {
|
|
|
11491
11497
|
}
|
|
11492
11498
|
function MioAuth(props) {
|
|
11493
11499
|
const { banner, loginSection } = props;
|
|
11494
|
-
return /* @__PURE__ */
|
|
11500
|
+
return /* @__PURE__ */ jsxs76(Stack44, { component: "main", direction: "row", height: "100vh", children: [
|
|
11495
11501
|
banner ? /* @__PURE__ */ jsx164(BannerSection, { children: banner }) : /* @__PURE__ */ jsx164(DefaultBanner, {}),
|
|
11496
11502
|
/* @__PURE__ */ jsx164(LoginContainer, { children: loginSection ? loginSection : /* @__PURE__ */ jsx164(LoginSection, { ...props }) })
|
|
11497
11503
|
] });
|
|
@@ -11500,14 +11506,14 @@ function MioAuth(props) {
|
|
|
11500
11506
|
// src/AlterarLicenca/index.tsx
|
|
11501
11507
|
import { formatDocumento as formatDocumento2, normalizeText } from "@data-c/hooks";
|
|
11502
11508
|
import ArrowDropDown from "@mui/icons-material/ArrowDropDown";
|
|
11503
|
-
import { Button as Button12, Stack as
|
|
11509
|
+
import { Button as Button12, Stack as Stack45, Typography as Typography27 } from "@mui/material";
|
|
11504
11510
|
import { useState as useState25 } from "react";
|
|
11505
|
-
import { jsx as jsx165, jsxs as
|
|
11511
|
+
import { jsx as jsx165, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
11506
11512
|
function AlterarLicenca(props) {
|
|
11507
11513
|
const { licencas, licencaSelecionada, onAlterarLicenca } = props;
|
|
11508
11514
|
const [query, setQuery] = useState25("");
|
|
11509
11515
|
if (licencas.length === 0)
|
|
11510
|
-
return /* @__PURE__ */
|
|
11516
|
+
return /* @__PURE__ */ jsxs77(Stack45, { overflow: "hidden", children: [
|
|
11511
11517
|
/* @__PURE__ */ jsx165(Typography27, { overflow: "hidden", textOverflow: "ellipsis", variant: "body1", children: licencaSelecionada.nome }),
|
|
11512
11518
|
/* @__PURE__ */ jsx165(Typography27, { overflow: "hidden", textOverflow: "ellipsis", variant: "body2", children: formatDocumento2(licencaSelecionada.documento) })
|
|
11513
11519
|
] });
|
|
@@ -11519,8 +11525,8 @@ function AlterarLicenca(props) {
|
|
|
11519
11525
|
(field) => normalizeText(String(item[field])).includes(normalizeText(query))
|
|
11520
11526
|
)
|
|
11521
11527
|
) : licencas;
|
|
11522
|
-
return /* @__PURE__ */
|
|
11523
|
-
/* @__PURE__ */ jsx165(Popover_default.Trigger, { asChild: true, children: /* @__PURE__ */
|
|
11528
|
+
return /* @__PURE__ */ jsxs77(Popover_default.Root, { children: [
|
|
11529
|
+
/* @__PURE__ */ jsx165(Popover_default.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs77(
|
|
11524
11530
|
Button12,
|
|
11525
11531
|
{
|
|
11526
11532
|
sx: {
|
|
@@ -11544,7 +11550,7 @@ function AlterarLicenca(props) {
|
|
|
11544
11550
|
p: 0.5
|
|
11545
11551
|
}
|
|
11546
11552
|
},
|
|
11547
|
-
children: /* @__PURE__ */
|
|
11553
|
+
children: /* @__PURE__ */ jsxs77(
|
|
11548
11554
|
List_default.Root,
|
|
11549
11555
|
{
|
|
11550
11556
|
sx: {
|
|
@@ -11561,7 +11567,7 @@ function AlterarLicenca(props) {
|
|
|
11561
11567
|
{
|
|
11562
11568
|
selected: licencaSelecionada.uuid === e.uuid,
|
|
11563
11569
|
onClick: () => onAlterarLicenca(e),
|
|
11564
|
-
children: /* @__PURE__ */
|
|
11570
|
+
children: /* @__PURE__ */ jsxs77(Stack45, { children: [
|
|
11565
11571
|
/* @__PURE__ */ jsx165(Typography27, { variant: "body1", textOverflow: "ellipsis", children: e.nome }),
|
|
11566
11572
|
/* @__PURE__ */ jsx165(Typography27, { variant: "body2", textOverflow: "ellipsis", children: formatDocumento2(e.documento) })
|
|
11567
11573
|
] })
|
|
@@ -11632,7 +11638,7 @@ var MenuItem7 = (props) => /* @__PURE__ */ jsx166(StyledMuiMenuItem, { ...props
|
|
|
11632
11638
|
var MenuItem_default = MenuItem7;
|
|
11633
11639
|
|
|
11634
11640
|
// src/DrawerMenu/components/FullMenu/components/FullMenuItem/index.tsx
|
|
11635
|
-
import { jsx as jsx167, jsxs as
|
|
11641
|
+
import { jsx as jsx167, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
11636
11642
|
function FullMenuItem2(props) {
|
|
11637
11643
|
const { menuItem, activeMenu, onMenuClick } = props;
|
|
11638
11644
|
const [expanded, setExpanded] = useState26(false);
|
|
@@ -11644,8 +11650,8 @@ function FullMenuItem2(props) {
|
|
|
11644
11650
|
function toggleExpand() {
|
|
11645
11651
|
setExpanded(!expanded);
|
|
11646
11652
|
}
|
|
11647
|
-
return /* @__PURE__ */
|
|
11648
|
-
/* @__PURE__ */
|
|
11653
|
+
return /* @__PURE__ */ jsxs78(Box22, { children: [
|
|
11654
|
+
/* @__PURE__ */ jsxs78(
|
|
11649
11655
|
MenuItem_default,
|
|
11650
11656
|
{
|
|
11651
11657
|
onClick: () => {
|
|
@@ -11698,7 +11704,7 @@ function FullMenu(props) {
|
|
|
11698
11704
|
// src/DrawerMenu/components/MinMenu/index.tsx
|
|
11699
11705
|
import { useState as useState27 } from "react";
|
|
11700
11706
|
import { List as List6, Icon as Icon5, ListItemIcon as ListItemIcon3, Popper as Popper3 } from "@mui/material";
|
|
11701
|
-
import { jsx as jsx169, jsxs as
|
|
11707
|
+
import { jsx as jsx169, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
11702
11708
|
function MinMenu(props) {
|
|
11703
11709
|
const { menus, activeMenu, onMenuClick } = props;
|
|
11704
11710
|
const [opened, setOpened] = useState27(null);
|
|
@@ -11715,7 +11721,7 @@ function MinMenu(props) {
|
|
|
11715
11721
|
return /* @__PURE__ */ jsx169(List6, { component: "nav", disablePadding: true, children: menus.map((menuItem) => {
|
|
11716
11722
|
if (!menuItem.visible)
|
|
11717
11723
|
return null;
|
|
11718
|
-
return /* @__PURE__ */
|
|
11724
|
+
return /* @__PURE__ */ jsxs79(
|
|
11719
11725
|
MenuItem_default,
|
|
11720
11726
|
{
|
|
11721
11727
|
onMouseEnter: (e) => {
|
|
@@ -11770,7 +11776,7 @@ function MinMenu(props) {
|
|
|
11770
11776
|
}
|
|
11771
11777
|
|
|
11772
11778
|
// src/DrawerMenu/index.tsx
|
|
11773
|
-
import { jsx as jsx170, jsxs as
|
|
11779
|
+
import { jsx as jsx170, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
11774
11780
|
var openedMixin2 = (width, theme2) => ({
|
|
11775
11781
|
width,
|
|
11776
11782
|
transition: theme2.transitions.create("width", {
|
|
@@ -11810,7 +11816,7 @@ var Drawer2 = styled9(MuiDrawer3, {
|
|
|
11810
11816
|
}));
|
|
11811
11817
|
function DrawerMenu(props) {
|
|
11812
11818
|
const { open, items, width, activeMenu, onMenuClick, toggleMenu, ...rest } = props;
|
|
11813
|
-
return /* @__PURE__ */
|
|
11819
|
+
return /* @__PURE__ */ jsxs80(
|
|
11814
11820
|
Drawer2,
|
|
11815
11821
|
{
|
|
11816
11822
|
width,
|
|
@@ -11875,7 +11881,7 @@ function Avatar(props) {
|
|
|
11875
11881
|
}
|
|
11876
11882
|
|
|
11877
11883
|
// src/Profile/index.tsx
|
|
11878
|
-
import { Stack as
|
|
11884
|
+
import { Stack as Stack50, Tab, Tabs } from "@mui/material";
|
|
11879
11885
|
import { useState as useState32 } from "react";
|
|
11880
11886
|
|
|
11881
11887
|
// src/Profile/TabPanel.tsx
|
|
@@ -11912,7 +11918,7 @@ import {
|
|
|
11912
11918
|
Alert as Alert8,
|
|
11913
11919
|
Divider as Divider5,
|
|
11914
11920
|
Grid as Grid2,
|
|
11915
|
-
Stack as
|
|
11921
|
+
Stack as Stack47,
|
|
11916
11922
|
TextField as TextField12,
|
|
11917
11923
|
Typography as Typography28
|
|
11918
11924
|
} from "@mui/material";
|
|
@@ -11955,8 +11961,8 @@ function getCroppedImg(imageSrc, crop) {
|
|
|
11955
11961
|
}
|
|
11956
11962
|
|
|
11957
11963
|
// src/Profile/AvatarUploader.tsx
|
|
11958
|
-
import { Stack as
|
|
11959
|
-
import { jsx as jsx174, jsxs as
|
|
11964
|
+
import { Stack as Stack46 } from "@mui/material";
|
|
11965
|
+
import { jsx as jsx174, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
11960
11966
|
var AvatarUploader = ({ onSave, src }) => {
|
|
11961
11967
|
const [image, setImage] = useState28(null);
|
|
11962
11968
|
const [croppedImage, setCroppedImage] = useState28(null);
|
|
@@ -11988,7 +11994,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
11988
11994
|
};
|
|
11989
11995
|
reader.readAsDataURL(file);
|
|
11990
11996
|
};
|
|
11991
|
-
return /* @__PURE__ */
|
|
11997
|
+
return /* @__PURE__ */ jsxs81(Stack46, { direction: "row", spacing: 2, alignItems: "center", children: [
|
|
11992
11998
|
croppedImage ? /* @__PURE__ */ jsx174(
|
|
11993
11999
|
Avatar2,
|
|
11994
12000
|
{
|
|
@@ -12003,7 +12009,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
12003
12009
|
sx: { width: 64, height: 64, margin: "auto", mb: 2 }
|
|
12004
12010
|
}
|
|
12005
12011
|
),
|
|
12006
|
-
/* @__PURE__ */
|
|
12012
|
+
/* @__PURE__ */ jsxs81("label", { children: [
|
|
12007
12013
|
/* @__PURE__ */ jsx174(
|
|
12008
12014
|
"input",
|
|
12009
12015
|
{
|
|
@@ -12015,7 +12021,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
12015
12021
|
),
|
|
12016
12022
|
/* @__PURE__ */ jsx174(Button13, { variant: "contained", component: "span", children: "Alterar foto" })
|
|
12017
12023
|
] }),
|
|
12018
|
-
/* @__PURE__ */
|
|
12024
|
+
/* @__PURE__ */ jsxs81(
|
|
12019
12025
|
Dialog4,
|
|
12020
12026
|
{
|
|
12021
12027
|
open,
|
|
@@ -12037,7 +12043,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
12037
12043
|
onCropComplete
|
|
12038
12044
|
}
|
|
12039
12045
|
) }),
|
|
12040
|
-
/* @__PURE__ */
|
|
12046
|
+
/* @__PURE__ */ jsxs81("div", { style: { padding: 20 }, children: [
|
|
12041
12047
|
/* @__PURE__ */ jsx174(
|
|
12042
12048
|
Slider,
|
|
12043
12049
|
{
|
|
@@ -12058,7 +12064,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
12058
12064
|
var AvatarUploader_default = AvatarUploader;
|
|
12059
12065
|
|
|
12060
12066
|
// src/Profile/MinhaConta.tsx
|
|
12061
|
-
import { jsx as jsx175, jsxs as
|
|
12067
|
+
import { jsx as jsx175, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
12062
12068
|
var schema4 = create$3().shape({
|
|
12063
12069
|
name: create$6().required("Informe o nome")
|
|
12064
12070
|
});
|
|
@@ -12102,7 +12108,7 @@ function MinhaConta(props) {
|
|
|
12102
12108
|
}
|
|
12103
12109
|
});
|
|
12104
12110
|
}
|
|
12105
|
-
return /* @__PURE__ */
|
|
12111
|
+
return /* @__PURE__ */ jsxs82(Stack47, { spacing: 2, children: [
|
|
12106
12112
|
/* @__PURE__ */ jsx175(Typography28, { variant: "h6", children: "Avatar" }),
|
|
12107
12113
|
/* @__PURE__ */ jsx175(
|
|
12108
12114
|
AvatarUploader_default,
|
|
@@ -12126,7 +12132,7 @@ function MinhaConta(props) {
|
|
|
12126
12132
|
),
|
|
12127
12133
|
/* @__PURE__ */ jsx175(Divider5, {}),
|
|
12128
12134
|
/* @__PURE__ */ jsx175(Typography28, { variant: "h6", children: "Informa\xE7\xF5es da Conta" }),
|
|
12129
|
-
/* @__PURE__ */
|
|
12135
|
+
/* @__PURE__ */ jsxs82(Grid2, { container: true, spacing: 1.5, children: [
|
|
12130
12136
|
/* @__PURE__ */ jsx175(Grid2, { size: { xl: 4, lg: 4, md: 4, sm: 12, xs: 12 }, children: /* @__PURE__ */ jsx175(
|
|
12131
12137
|
TextField12,
|
|
12132
12138
|
{
|
|
@@ -12178,16 +12184,16 @@ import {
|
|
|
12178
12184
|
useForm as useForm4
|
|
12179
12185
|
} from "@data-c/hooks";
|
|
12180
12186
|
import Verified from "@mui/icons-material/Verified";
|
|
12181
|
-
import { Alert as Alert10, Divider as Divider6, Stack as
|
|
12187
|
+
import { Alert as Alert10, Divider as Divider6, Stack as Stack49, Typography as Typography30 } from "@mui/material";
|
|
12182
12188
|
import { useEffect as useEffect21, useState as useState31 } from "react";
|
|
12183
12189
|
|
|
12184
12190
|
// src/Profile/DialogVerificarWhastapp.tsx
|
|
12185
12191
|
import {
|
|
12186
12192
|
useCredentials as useCredentials9
|
|
12187
12193
|
} from "@data-c/hooks";
|
|
12188
|
-
import { Alert as Alert9, Stack as
|
|
12194
|
+
import { Alert as Alert9, Stack as Stack48, Typography as Typography29 } from "@mui/material";
|
|
12189
12195
|
import { useEffect as useEffect20, useState as useState30 } from "react";
|
|
12190
|
-
import { jsx as jsx176, jsxs as
|
|
12196
|
+
import { jsx as jsx176, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
12191
12197
|
function DialogVerificarWhastapp(props) {
|
|
12192
12198
|
const { open, onClose, payload, onCodigoVerificado, credentialsConfig } = props;
|
|
12193
12199
|
const [code, setCode] = useState30("");
|
|
@@ -12212,13 +12218,13 @@ function DialogVerificarWhastapp(props) {
|
|
|
12212
12218
|
setLoading(false);
|
|
12213
12219
|
}
|
|
12214
12220
|
}
|
|
12215
|
-
return /* @__PURE__ */
|
|
12216
|
-
/* @__PURE__ */
|
|
12221
|
+
return /* @__PURE__ */ jsxs83(Dialog_default.Root, { open, onClose: (_) => onClose(), maxWidth: "xs", children: [
|
|
12222
|
+
/* @__PURE__ */ jsxs83(Dialog_default.Header, { children: [
|
|
12217
12223
|
/* @__PURE__ */ jsx176(Dialog_default.Title, { children: "Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp" }),
|
|
12218
12224
|
/* @__PURE__ */ jsx176(Dialog_default.ActionClose, { onClose })
|
|
12219
12225
|
] }),
|
|
12220
|
-
/* @__PURE__ */ jsx176(Dialog_default.Content, { children: /* @__PURE__ */
|
|
12221
|
-
|
|
12226
|
+
/* @__PURE__ */ jsx176(Dialog_default.Content, { children: /* @__PURE__ */ jsxs83(
|
|
12227
|
+
Stack48,
|
|
12222
12228
|
{
|
|
12223
12229
|
spacing: 2,
|
|
12224
12230
|
justifyContent: "center",
|
|
@@ -12233,7 +12239,7 @@ function DialogVerificarWhastapp(props) {
|
|
|
12233
12239
|
children: "\u{1F510} Verifique seu n\xFAmero"
|
|
12234
12240
|
}
|
|
12235
12241
|
),
|
|
12236
|
-
/* @__PURE__ */
|
|
12242
|
+
/* @__PURE__ */ jsxs83(Typography29, { variant: "body1", sx: { fontSize: "10pt" }, children: [
|
|
12237
12243
|
"Enviamos um c\xF3digo via WhatsApp para +55",
|
|
12238
12244
|
" ",
|
|
12239
12245
|
/* @__PURE__ */ jsx176("b", { children: `(${payload?.whatsappNumber?.slice(0, 2)}) ${payload?.whatsappNumber?.slice(2, 7)}-${payload?.whatsappNumber?.slice(7)}` }),
|
|
@@ -12254,7 +12260,7 @@ function DialogVerificarWhastapp(props) {
|
|
|
12254
12260
|
]
|
|
12255
12261
|
}
|
|
12256
12262
|
) }),
|
|
12257
|
-
/* @__PURE__ */ jsx176(Dialog_default.Footer, { children: /* @__PURE__ */
|
|
12263
|
+
/* @__PURE__ */ jsx176(Dialog_default.Footer, { children: /* @__PURE__ */ jsxs83(Dialog_default.Actions, { children: [
|
|
12258
12264
|
/* @__PURE__ */ jsx176(Dialog_default.ActionCancelar, { onClick: () => onClose() }),
|
|
12259
12265
|
/* @__PURE__ */ jsx176(
|
|
12260
12266
|
Dialog_default.ActionSalvar,
|
|
@@ -12270,7 +12276,7 @@ function DialogVerificarWhastapp(props) {
|
|
|
12270
12276
|
}
|
|
12271
12277
|
|
|
12272
12278
|
// src/Profile/LoginSeguranca.tsx
|
|
12273
|
-
import { jsx as jsx177, jsxs as
|
|
12279
|
+
import { jsx as jsx177, jsxs as jsxs84 } from "react/jsx-runtime";
|
|
12274
12280
|
var schema5 = create$3().shape({
|
|
12275
12281
|
whatsappNumber: create$6().required("Informe o n\xFAmero do whastapp").length(15)
|
|
12276
12282
|
});
|
|
@@ -12308,7 +12314,7 @@ function LoginSeguranca(props) {
|
|
|
12308
12314
|
setGerandoNumero(false);
|
|
12309
12315
|
}
|
|
12310
12316
|
}
|
|
12311
|
-
return /* @__PURE__ */
|
|
12317
|
+
return /* @__PURE__ */ jsxs84(Stack49, { spacing: 2, children: [
|
|
12312
12318
|
/* @__PURE__ */ jsx177(Typography30, { variant: "h6", children: "Senha" }),
|
|
12313
12319
|
/* @__PURE__ */ jsx177(
|
|
12314
12320
|
Button_default,
|
|
@@ -12332,7 +12338,7 @@ function LoginSeguranca(props) {
|
|
|
12332
12338
|
),
|
|
12333
12339
|
/* @__PURE__ */ jsx177(Divider6, {}),
|
|
12334
12340
|
/* @__PURE__ */ jsx177(Typography30, { variant: "h6", children: "Login com Whastapp" }),
|
|
12335
|
-
/* @__PURE__ */
|
|
12341
|
+
/* @__PURE__ */ jsxs84(Stack49, { direction: "row", spacing: 2, children: [
|
|
12336
12342
|
/* @__PURE__ */ jsx177(
|
|
12337
12343
|
WhatsAppTextField,
|
|
12338
12344
|
{
|
|
@@ -12346,8 +12352,8 @@ function LoginSeguranca(props) {
|
|
|
12346
12352
|
}
|
|
12347
12353
|
}
|
|
12348
12354
|
),
|
|
12349
|
-
data.whatsappVerifiedAt && /* @__PURE__ */
|
|
12350
|
-
|
|
12355
|
+
data.whatsappVerifiedAt && /* @__PURE__ */ jsxs84(
|
|
12356
|
+
Stack49,
|
|
12351
12357
|
{
|
|
12352
12358
|
direction: "row",
|
|
12353
12359
|
spacing: 1,
|
|
@@ -12396,7 +12402,7 @@ function LoginSeguranca(props) {
|
|
|
12396
12402
|
|
|
12397
12403
|
// src/Profile/index.tsx
|
|
12398
12404
|
import { useUserContext as useUserContext2 } from "@data-c/providers";
|
|
12399
|
-
import { Fragment as Fragment11, jsx as jsx178, jsxs as
|
|
12405
|
+
import { Fragment as Fragment11, jsx as jsx178, jsxs as jsxs85 } from "react/jsx-runtime";
|
|
12400
12406
|
function Profile(props) {
|
|
12401
12407
|
const [tabValue, setTabValue] = useState32(0);
|
|
12402
12408
|
const {
|
|
@@ -12404,8 +12410,8 @@ function Profile(props) {
|
|
|
12404
12410
|
setUser: setUsuarioLogado,
|
|
12405
12411
|
credentialsConfig
|
|
12406
12412
|
} = useUserContext2();
|
|
12407
|
-
return /* @__PURE__ */ jsx178(Fragment11, { children: /* @__PURE__ */
|
|
12408
|
-
/* @__PURE__ */ jsx178(
|
|
12413
|
+
return /* @__PURE__ */ jsx178(Fragment11, { children: /* @__PURE__ */ jsxs85(Stack50, { spacing: 2, direction: "row", children: [
|
|
12414
|
+
/* @__PURE__ */ jsx178(Stack50, { sx: { width: "200px" }, children: /* @__PURE__ */ jsxs85(
|
|
12409
12415
|
Tabs,
|
|
12410
12416
|
{
|
|
12411
12417
|
orientation: "vertical",
|
|
@@ -12424,7 +12430,7 @@ function Profile(props) {
|
|
|
12424
12430
|
]
|
|
12425
12431
|
}
|
|
12426
12432
|
) }),
|
|
12427
|
-
/* @__PURE__ */
|
|
12433
|
+
/* @__PURE__ */ jsxs85(Stack50, { sx: { flexGrow: 1 }, children: [
|
|
12428
12434
|
/* @__PURE__ */ jsx178(TabPanel, { value: tabValue, index: 0, children: /* @__PURE__ */ jsx178(
|
|
12429
12435
|
MinhaConta,
|
|
12430
12436
|
{
|