@data-c/ui 0.2.69 → 0.2.82
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 +188 -185
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +116 -113
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -5
package/dist/index.js
CHANGED
|
@@ -1735,13 +1735,11 @@ function ColorsGrid() {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
|
|
1737
1737
|
// src/DataTableOptions/index.tsx
|
|
1738
|
+
var _Delete = require('@mui/icons-material/Delete'); var _Delete2 = _interopRequireDefault(_Delete);
|
|
1739
|
+
var _Edit = require('@mui/icons-material/Edit'); var _Edit2 = _interopRequireDefault(_Edit);
|
|
1740
|
+
var _GetApp = require('@mui/icons-material/GetApp'); var _GetApp2 = _interopRequireDefault(_GetApp);
|
|
1738
1741
|
|
|
1739
1742
|
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
var _iconsmaterial = require('@mui/icons-material');
|
|
1744
|
-
|
|
1745
1743
|
// src/Tooltip/index.tsx
|
|
1746
1744
|
|
|
1747
1745
|
|
|
@@ -1869,13 +1867,13 @@ function DataTableOptions(props) {
|
|
|
1869
1867
|
color: "primary",
|
|
1870
1868
|
disabled: disabled || disabledTransporterButton,
|
|
1871
1869
|
children: [
|
|
1872
|
-
disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1870
|
+
disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GetApp2.default, { fontSize: "small" }),
|
|
1873
1871
|
!disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1874
1872
|
Tooltip_default,
|
|
1875
1873
|
{
|
|
1876
1874
|
type: "warning",
|
|
1877
1875
|
title: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { children: "Clique para transportar este registro." }),
|
|
1878
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1876
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GetApp2.default, { fontSize: "small" })
|
|
1879
1877
|
}
|
|
1880
1878
|
)
|
|
1881
1879
|
]
|
|
@@ -1889,13 +1887,13 @@ function DataTableOptions(props) {
|
|
|
1889
1887
|
onClick: (e) => onClick("edit", value, e),
|
|
1890
1888
|
disabled: disabled || disabledUpdateButton,
|
|
1891
1889
|
children: [
|
|
1892
|
-
disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1890
|
+
disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Edit2.default, { fontSize: "small" }),
|
|
1893
1891
|
!disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1894
1892
|
Tooltip_default,
|
|
1895
1893
|
{
|
|
1896
1894
|
type: "info",
|
|
1897
1895
|
title: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { children: "Clique para editar este registro." }),
|
|
1898
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1896
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Edit2.default, { fontSize: "small" })
|
|
1899
1897
|
}
|
|
1900
1898
|
)
|
|
1901
1899
|
]
|
|
@@ -1909,13 +1907,13 @@ function DataTableOptions(props) {
|
|
|
1909
1907
|
color: "primary",
|
|
1910
1908
|
disabled: disabled || disabledDeleteButton,
|
|
1911
1909
|
children: [
|
|
1912
|
-
disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1910
|
+
disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Delete2.default, { fontSize: "small" }),
|
|
1913
1911
|
!disableTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1914
1912
|
Tooltip_default,
|
|
1915
1913
|
{
|
|
1916
1914
|
type: "warning",
|
|
1917
1915
|
title: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { children: "Clique para excluir este registro." }),
|
|
1918
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1916
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Delete2.default, { fontSize: "small" })
|
|
1919
1917
|
}
|
|
1920
1918
|
)
|
|
1921
1919
|
]
|
|
@@ -1931,7 +1929,7 @@ DataTableOptions.defaultProps = {
|
|
|
1931
1929
|
};
|
|
1932
1930
|
|
|
1933
1931
|
// src/FilterControl/index.tsx
|
|
1934
|
-
|
|
1932
|
+
var _RestartAlt = require('@mui/icons-material/RestartAlt'); var _RestartAlt2 = _interopRequireDefault(_RestartAlt);
|
|
1935
1933
|
|
|
1936
1934
|
var _providers = require('@data-c/providers');
|
|
1937
1935
|
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
@@ -2042,7 +2040,7 @@ function FilterControl(props) {
|
|
|
2042
2040
|
if (deleteAllFilterValues)
|
|
2043
2041
|
deleteAllFilterValues();
|
|
2044
2042
|
},
|
|
2045
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2043
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RestartAlt2.default, { fontSize: "small", color: "error" })
|
|
2046
2044
|
}
|
|
2047
2045
|
)
|
|
2048
2046
|
}
|
|
@@ -2056,10 +2054,11 @@ function FilterControl(props) {
|
|
|
2056
2054
|
|
|
2057
2055
|
|
|
2058
2056
|
|
|
2057
|
+
var _Search = require('@mui/icons-material/Search'); var _Search2 = _interopRequireDefault(_Search);
|
|
2059
2058
|
|
|
2060
2059
|
|
|
2061
2060
|
// src/DrawerContainer/index.tsx
|
|
2062
|
-
|
|
2061
|
+
var _Cancel = require('@mui/icons-material/Cancel'); var _Cancel2 = _interopRequireDefault(_Cancel);
|
|
2063
2062
|
|
|
2064
2063
|
|
|
2065
2064
|
|
|
@@ -2116,7 +2115,7 @@ function DrawerContainer(props) {
|
|
|
2116
2115
|
children: drawerTitle
|
|
2117
2116
|
}
|
|
2118
2117
|
),
|
|
2119
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { onClick: onClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2118
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { onClick: onClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Cancel2.default, { color: "error" }) })
|
|
2120
2119
|
]
|
|
2121
2120
|
}
|
|
2122
2121
|
),
|
|
@@ -2175,11 +2174,11 @@ var FilterDrawerActions = () => {
|
|
|
2175
2174
|
},
|
|
2176
2175
|
children: [
|
|
2177
2176
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Button, { fullWidth: true, onClick: handleResetAllFilters, color: "error", children: [
|
|
2178
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2177
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _RestartAlt2.default, {}),
|
|
2179
2178
|
" Redefinir Padr\xE3o"
|
|
2180
2179
|
] }),
|
|
2181
2180
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Button, { fullWidth: true, variant: "contained", onClick: handleApplyFilter, children: [
|
|
2182
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2181
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Search2.default, {}),
|
|
2183
2182
|
" Aplicar"
|
|
2184
2183
|
] })
|
|
2185
2184
|
]
|
|
@@ -2264,18 +2263,18 @@ FilterContainer.defaultProps = {
|
|
|
2264
2263
|
triggerButtonLabel: "Aplicar",
|
|
2265
2264
|
triggerButtonProps: {
|
|
2266
2265
|
variant: "contained",
|
|
2267
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2266
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Search2.default, {})
|
|
2268
2267
|
},
|
|
2269
2268
|
title: "Aplicar"
|
|
2270
2269
|
};
|
|
2271
2270
|
|
|
2272
2271
|
// src/Flag/index.tsx
|
|
2273
|
-
|
|
2272
|
+
var _Circle = require('@mui/icons-material/Circle'); var _Circle2 = _interopRequireDefault(_Circle);
|
|
2274
2273
|
|
|
2275
2274
|
function Flag(props) {
|
|
2276
2275
|
const { isFlagged, type } = props;
|
|
2277
2276
|
if (isFlagged)
|
|
2278
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2277
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Circle2.default, { color: type, sx: { fontSize: "10pt" } });
|
|
2279
2278
|
return null;
|
|
2280
2279
|
}
|
|
2281
2280
|
|
|
@@ -2310,7 +2309,8 @@ function LabelValue(props) {
|
|
|
2310
2309
|
}
|
|
2311
2310
|
|
|
2312
2311
|
// src/PageTitle/index.tsx
|
|
2313
|
-
|
|
2312
|
+
var _ArrowBack = require('@mui/icons-material/ArrowBack'); var _ArrowBack2 = _interopRequireDefault(_ArrowBack);
|
|
2313
|
+
var _Close = require('@mui/icons-material/Close'); var _Close2 = _interopRequireDefault(_Close);
|
|
2314
2314
|
|
|
2315
2315
|
|
|
2316
2316
|
|
|
@@ -2324,6 +2324,8 @@ function LabelValue(props) {
|
|
|
2324
2324
|
// src/Editable/index.tsx
|
|
2325
2325
|
|
|
2326
2326
|
|
|
2327
|
+
var _Save = require('@mui/icons-material/Save'); var _Save2 = _interopRequireDefault(_Save);
|
|
2328
|
+
|
|
2327
2329
|
|
|
2328
2330
|
|
|
2329
2331
|
|
|
@@ -2348,7 +2350,7 @@ function Editable(props) {
|
|
|
2348
2350
|
error
|
|
2349
2351
|
} = props;
|
|
2350
2352
|
const {
|
|
2351
|
-
InputProps:
|
|
2353
|
+
InputProps: _,
|
|
2352
2354
|
value: __,
|
|
2353
2355
|
onKeyDown: ___,
|
|
2354
2356
|
onChange: ____,
|
|
@@ -2393,7 +2395,7 @@ function Editable(props) {
|
|
|
2393
2395
|
onClick: () => {
|
|
2394
2396
|
setIsEditing(true);
|
|
2395
2397
|
},
|
|
2396
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2398
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Edit2.default, {})
|
|
2397
2399
|
}
|
|
2398
2400
|
)
|
|
2399
2401
|
]
|
|
@@ -2437,7 +2439,7 @@ function Editable(props) {
|
|
|
2437
2439
|
setIsEditing(false);
|
|
2438
2440
|
},
|
|
2439
2441
|
edge: "end",
|
|
2440
|
-
children: value != textValue ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2442
|
+
children: value != textValue ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Save2.default, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Cancel2.default, {})
|
|
2441
2443
|
}
|
|
2442
2444
|
)
|
|
2443
2445
|
] })
|
|
@@ -2451,11 +2453,11 @@ function Editable(props) {
|
|
|
2451
2453
|
// src/SearchTextField/index.tsx
|
|
2452
2454
|
|
|
2453
2455
|
|
|
2454
|
-
var
|
|
2456
|
+
var _debounce = require('lodash/debounce'); var _debounce2 = _interopRequireDefault(_debounce);
|
|
2455
2457
|
|
|
2456
2458
|
function SearchTextField(props) {
|
|
2457
2459
|
const { onSearch, ...rest } = props;
|
|
2458
|
-
const debouncedHandleChange =
|
|
2460
|
+
const debouncedHandleChange = _debounce2.default.call(void 0, (query) => onSearch(query), 500);
|
|
2459
2461
|
function handleChange(event) {
|
|
2460
2462
|
const value = event.target.value;
|
|
2461
2463
|
debouncedHandleChange(value);
|
|
@@ -2466,7 +2468,7 @@ function SearchTextField(props) {
|
|
|
2466
2468
|
onChange: handleChange,
|
|
2467
2469
|
autoFocus: true,
|
|
2468
2470
|
InputProps: {
|
|
2469
|
-
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.InputAdornment, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2471
|
+
startAdornment: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.InputAdornment, { position: "start", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Search2.default, {}) })
|
|
2470
2472
|
},
|
|
2471
2473
|
...rest
|
|
2472
2474
|
}
|
|
@@ -2536,7 +2538,7 @@ function PageTitle(props) {
|
|
|
2536
2538
|
flexDirection: "row"
|
|
2537
2539
|
},
|
|
2538
2540
|
children: [
|
|
2539
|
-
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { sx: { mr: 1 }, onClick: onBack, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2541
|
+
onBack && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { sx: { mr: 1 }, onClick: onBack, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowBack2.default, {}) }),
|
|
2540
2542
|
onUpdate && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2541
2543
|
Editable,
|
|
2542
2544
|
{
|
|
@@ -2552,7 +2554,7 @@ function PageTitle(props) {
|
|
|
2552
2554
|
]
|
|
2553
2555
|
}
|
|
2554
2556
|
),
|
|
2555
|
-
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { sx: { marginLeft: "auto" }, onClick: onClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2557
|
+
onClose && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { sx: { marginLeft: "auto" }, onClick: onClose, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, { fontSize: "medium" }) }),
|
|
2556
2558
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Stack, { spacing: 1, direction: "row", children: [
|
|
2557
2559
|
onSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2558
2560
|
SearchTextField,
|
|
@@ -2637,12 +2639,14 @@ function Header(props) {
|
|
|
2637
2639
|
// src/MioAuth/components/LoginForm/index.tsx
|
|
2638
2640
|
|
|
2639
2641
|
|
|
2640
|
-
var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
|
|
2641
|
-
|
|
2642
2642
|
|
|
2643
2643
|
|
|
2644
2644
|
var _hooks = require('@data-c/hooks');
|
|
2645
2645
|
|
|
2646
|
+
var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
|
|
2647
|
+
var _Mail = require('@mui/icons-material/Mail'); var _Mail2 = _interopRequireDefault(_Mail);
|
|
2648
|
+
var _WhatsApp = require('@mui/icons-material/WhatsApp'); var _WhatsApp2 = _interopRequireDefault(_WhatsApp);
|
|
2649
|
+
|
|
2646
2650
|
// ../../node_modules/yup/index.esm.js
|
|
2647
2651
|
var import_property_expr = __toESM(require_property_expr());
|
|
2648
2652
|
var import_tiny_case = __toESM(require_tiny_case());
|
|
@@ -2737,7 +2741,7 @@ var ValidationError = class extends Error {
|
|
|
2737
2741
|
originalPath: params.path
|
|
2738
2742
|
});
|
|
2739
2743
|
if (typeof message === "string")
|
|
2740
|
-
return message.replace(strReg, (
|
|
2744
|
+
return message.replace(strReg, (_, key2) => printValue(params[key2]));
|
|
2741
2745
|
if (typeof message === "function")
|
|
2742
2746
|
return message(params);
|
|
2743
2747
|
return message;
|
|
@@ -3501,7 +3505,7 @@ attempted value: ${formattedValue}
|
|
|
3501
3505
|
[isIndex ? "index" : "key"]: k,
|
|
3502
3506
|
path: isIndex || k.includes(".") ? `${parentPath || ""}[${isIndex ? k : `"${k}"`}]` : (parentPath ? `${parentPath}.` : "") + key2
|
|
3503
3507
|
});
|
|
3504
|
-
return (
|
|
3508
|
+
return (_, panic, next) => this.resolve(testOptions)._validate(value, testOptions, panic, next);
|
|
3505
3509
|
}
|
|
3506
3510
|
validate(value, options) {
|
|
3507
3511
|
var _options$disableStack2;
|
|
@@ -4430,7 +4434,7 @@ function sortByKeyOrder(keys) {
|
|
|
4430
4434
|
return findIndex(keys, a) - findIndex(keys, b);
|
|
4431
4435
|
};
|
|
4432
4436
|
}
|
|
4433
|
-
var parseJson = (value,
|
|
4437
|
+
var parseJson = (value, _, schema6) => {
|
|
4434
4438
|
if (typeof value !== "string") {
|
|
4435
4439
|
return value;
|
|
4436
4440
|
}
|
|
@@ -5059,7 +5063,8 @@ create$1.prototype = TupleSchema.prototype;
|
|
|
5059
5063
|
var _isStrongPassword = require('validator/lib/isStrongPassword'); var _isStrongPassword2 = _interopRequireDefault(_isStrongPassword);
|
|
5060
5064
|
|
|
5061
5065
|
// src/PasswordTextField/index.tsx
|
|
5062
|
-
|
|
5066
|
+
var _Visibility = require('@mui/icons-material/Visibility'); var _Visibility2 = _interopRequireDefault(_Visibility);
|
|
5067
|
+
var _VisibilityOff = require('@mui/icons-material/VisibilityOff'); var _VisibilityOff2 = _interopRequireDefault(_VisibilityOff);
|
|
5063
5068
|
|
|
5064
5069
|
|
|
5065
5070
|
|
|
@@ -5089,7 +5094,7 @@ function PasswordTextField(props) {
|
|
|
5089
5094
|
tabIndex: -1,
|
|
5090
5095
|
onClick: handleClickShowPassword,
|
|
5091
5096
|
edge: "end",
|
|
5092
|
-
children: showPassword ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5097
|
+
children: showPassword ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _VisibilityOff2.default, {}) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Visibility2.default, {})
|
|
5093
5098
|
}
|
|
5094
5099
|
) })
|
|
5095
5100
|
}
|
|
@@ -5119,7 +5124,7 @@ function DialogActionClose({ onClose }) {
|
|
|
5119
5124
|
{
|
|
5120
5125
|
onClick: () => onClose(),
|
|
5121
5126
|
sx: { position: "absolute", right: "11px" },
|
|
5122
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5127
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Close2.default, {})
|
|
5123
5128
|
}
|
|
5124
5129
|
);
|
|
5125
5130
|
}
|
|
@@ -5251,7 +5256,7 @@ function DialogRoot({
|
|
|
5251
5256
|
"& .MuiBackdrop-root": {
|
|
5252
5257
|
backgroundColor: "#6464648F"
|
|
5253
5258
|
},
|
|
5254
|
-
..._optionalChain([rest, 'optionalAccess',
|
|
5259
|
+
..._optionalChain([rest, 'optionalAccess', _2 => _2.sx])
|
|
5255
5260
|
},
|
|
5256
5261
|
PaperProps: {
|
|
5257
5262
|
style: {
|
|
@@ -5404,7 +5409,7 @@ function ValidatorMessage(props) {
|
|
|
5404
5409
|
},
|
|
5405
5410
|
children: [
|
|
5406
5411
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5407
|
-
|
|
5412
|
+
_Circle2.default,
|
|
5408
5413
|
{
|
|
5409
5414
|
color: isValid ? "success" : "inherit",
|
|
5410
5415
|
sx: { fontSize: "8pt" }
|
|
@@ -5488,7 +5493,7 @@ function AlterarSenha(props) {
|
|
|
5488
5493
|
if (onFailed)
|
|
5489
5494
|
onFailed(error2);
|
|
5490
5495
|
if (_axios.isAxiosError.call(void 0, error2)) {
|
|
5491
|
-
setError(_optionalChain([error2, 'access',
|
|
5496
|
+
setError(_optionalChain([error2, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.data, 'access', _5 => _5.message]));
|
|
5492
5497
|
return;
|
|
5493
5498
|
}
|
|
5494
5499
|
setError("Ocorreu um erro ao tentar alterar a senha");
|
|
@@ -5498,37 +5503,37 @@ function AlterarSenha(props) {
|
|
|
5498
5503
|
});
|
|
5499
5504
|
}
|
|
5500
5505
|
function tem8caracteres() {
|
|
5501
|
-
return _optionalChain([data, 'optionalAccess',
|
|
5506
|
+
return _optionalChain([data, 'optionalAccess', _6 => _6.senhaNova, 'access', _7 => _7.length]) >= 8;
|
|
5502
5507
|
}
|
|
5503
5508
|
function temLetraMinuscula() {
|
|
5504
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
5505
|
-
const result = _optionalChain([data, 'optionalAccess',
|
|
5509
|
+
if (_optionalChain([data, 'optionalAccess', _8 => _8.senhaNova])) {
|
|
5510
|
+
const result = _optionalChain([data, 'optionalAccess', _9 => _9.senhaNova, 'access', _10 => _10.match, 'call', _11 => _11(/[a-z]/g)]);
|
|
5506
5511
|
return Array.isArray(result) && result.length > 0;
|
|
5507
5512
|
}
|
|
5508
5513
|
return false;
|
|
5509
5514
|
}
|
|
5510
5515
|
function temLetraMaisucula() {
|
|
5511
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
5512
|
-
const result = _optionalChain([data, 'optionalAccess',
|
|
5516
|
+
if (_optionalChain([data, 'optionalAccess', _12 => _12.senhaNova])) {
|
|
5517
|
+
const result = _optionalChain([data, 'optionalAccess', _13 => _13.senhaNova, 'access', _14 => _14.match, 'call', _15 => _15(/[A-Z]/g)]);
|
|
5513
5518
|
return Array.isArray(result) && result.length > 0;
|
|
5514
5519
|
}
|
|
5515
5520
|
return false;
|
|
5516
5521
|
}
|
|
5517
5522
|
function temNumero() {
|
|
5518
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
5519
|
-
const result = _optionalChain([data, 'optionalAccess',
|
|
5523
|
+
if (_optionalChain([data, 'optionalAccess', _16 => _16.senhaNova])) {
|
|
5524
|
+
const result = _optionalChain([data, 'optionalAccess', _17 => _17.senhaNova, 'access', _18 => _18.match, 'call', _19 => _19(/\d/g)]);
|
|
5520
5525
|
return Array.isArray(result) && result.length > 0;
|
|
5521
5526
|
}
|
|
5522
5527
|
return false;
|
|
5523
5528
|
}
|
|
5524
5529
|
function temCaracterEspecial() {
|
|
5525
|
-
if (_optionalChain([data, 'optionalAccess',
|
|
5526
|
-
const result = _optionalChain([data, 'optionalAccess',
|
|
5530
|
+
if (_optionalChain([data, 'optionalAccess', _20 => _20.senhaNova])) {
|
|
5531
|
+
const result = _optionalChain([data, 'optionalAccess', _21 => _21.senhaNova, 'access', _22 => _22.match, 'call', _23 => _23(/\W/g)]);
|
|
5527
5532
|
return Array.isArray(result) && result.length > 0;
|
|
5528
5533
|
}
|
|
5529
5534
|
return false;
|
|
5530
5535
|
}
|
|
5531
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Root, { open: isOpen, onClose: (
|
|
5536
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Root, { open: isOpen, onClose: (_) => onClose(), maxWidth: "md", children: [
|
|
5532
5537
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Header, { children: [
|
|
5533
5538
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog_default.Title, { children: "Alterar Senha" }),
|
|
5534
5539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog_default.ActionClose, { onClose })
|
|
@@ -5544,7 +5549,7 @@ function AlterarSenha(props) {
|
|
|
5544
5549
|
{
|
|
5545
5550
|
name: "senhaAtual",
|
|
5546
5551
|
label: "Senha Atual",
|
|
5547
|
-
value: _optionalChain([data, 'optionalAccess',
|
|
5552
|
+
value: _optionalChain([data, 'optionalAccess', _24 => _24.senhaAtual]) || "",
|
|
5548
5553
|
onChange: handleChange,
|
|
5549
5554
|
...validationProps("senhaAtual")
|
|
5550
5555
|
}
|
|
@@ -5554,7 +5559,7 @@ function AlterarSenha(props) {
|
|
|
5554
5559
|
{
|
|
5555
5560
|
name: "senhaNova",
|
|
5556
5561
|
label: "Nova Senha",
|
|
5557
|
-
value: _optionalChain([data, 'optionalAccess',
|
|
5562
|
+
value: _optionalChain([data, 'optionalAccess', _25 => _25.senhaNova]) || "",
|
|
5558
5563
|
onChange: handleChange,
|
|
5559
5564
|
...validationProps("senhaNova")
|
|
5560
5565
|
}
|
|
@@ -5615,7 +5620,6 @@ function AlterarSenha(props) {
|
|
|
5615
5620
|
|
|
5616
5621
|
// src/MioAuth/components/LoginForm/index.tsx
|
|
5617
5622
|
|
|
5618
|
-
|
|
5619
5623
|
var schema2 = create$3().shape({
|
|
5620
5624
|
email: create$6().required("Informe o e-mail"),
|
|
5621
5625
|
password: create$6().required("Informe a senha")
|
|
@@ -5643,11 +5647,11 @@ function LoginForm(props) {
|
|
|
5643
5647
|
} catch (err) {
|
|
5644
5648
|
if (_axios.isAxiosError.call(void 0, err)) {
|
|
5645
5649
|
const axiosError = err;
|
|
5646
|
-
if (_optionalChain([axiosError, 'access',
|
|
5650
|
+
if (_optionalChain([axiosError, 'access', _26 => _26.response, 'optionalAccess', _27 => _27.data, 'access', _28 => _28.code]) === "E_FIRST_ACCESS") {
|
|
5647
5651
|
setExibirAlterarSenha(true);
|
|
5648
5652
|
return;
|
|
5649
5653
|
}
|
|
5650
|
-
setError(_optionalChain([err, 'access',
|
|
5654
|
+
setError(_optionalChain([err, 'access', _29 => _29.response, 'optionalAccess', _30 => _30.data, 'access', _31 => _31.message]));
|
|
5651
5655
|
}
|
|
5652
5656
|
onLoginFailed(err);
|
|
5653
5657
|
}
|
|
@@ -5753,7 +5757,7 @@ function LoginForm(props) {
|
|
|
5753
5757
|
Button_default,
|
|
5754
5758
|
{
|
|
5755
5759
|
onClick: () => onOptionsClick("otp-email"),
|
|
5756
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5760
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Mail2.default, {}),
|
|
5757
5761
|
children: "Entrar com senha tempor\xE1ria"
|
|
5758
5762
|
}
|
|
5759
5763
|
),
|
|
@@ -5761,7 +5765,7 @@ function LoginForm(props) {
|
|
|
5761
5765
|
Button_default,
|
|
5762
5766
|
{
|
|
5763
5767
|
onClick: () => onOptionsClick("otp-whatsapp"),
|
|
5764
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5768
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _WhatsApp2.default, {}),
|
|
5765
5769
|
children: "Entrar com senha tempor\xE1ria"
|
|
5766
5770
|
}
|
|
5767
5771
|
)
|
|
@@ -5809,7 +5813,7 @@ function EsqueciSenhaForm(props) {
|
|
|
5809
5813
|
await recuperarSenha(email);
|
|
5810
5814
|
setSucessoRecuperarSenha(true);
|
|
5811
5815
|
} catch (error2) {
|
|
5812
|
-
setError(_optionalChain([error2, 'access',
|
|
5816
|
+
setError(_optionalChain([error2, 'access', _32 => _32.response, 'optionalAccess', _33 => _33.data, 'access', _34 => _34.message]));
|
|
5813
5817
|
} finally {
|
|
5814
5818
|
setSubmitting(false);
|
|
5815
5819
|
}
|
|
@@ -5901,14 +5905,14 @@ function LicencaForm(props) {
|
|
|
5901
5905
|
const [empresaId, setEmpresaId] = _react.useState.call(void 0, "");
|
|
5902
5906
|
const { selecionarLicenca, isSubmitting } = _hooks.useCredentials.call(void 0, credentialsConfig);
|
|
5903
5907
|
_react.useEffect.call(void 0, () => {
|
|
5904
|
-
if (Array.isArray(_optionalChain([loginData, 'optionalAccess',
|
|
5905
|
-
const empresa = _optionalChain([loginData, 'optionalAccess',
|
|
5906
|
-
setEmpresaId(_optionalChain([empresa, 'optionalAccess',
|
|
5908
|
+
if (Array.isArray(_optionalChain([loginData, 'optionalAccess', _35 => _35.empresas]))) {
|
|
5909
|
+
const empresa = _optionalChain([loginData, 'optionalAccess', _36 => _36.empresas, 'access', _37 => _37[0]]);
|
|
5910
|
+
setEmpresaId(_optionalChain([empresa, 'optionalAccess', _38 => _38.uuid]));
|
|
5907
5911
|
}
|
|
5908
5912
|
}, [loginData]);
|
|
5909
5913
|
async function handleSelecionarLicenca() {
|
|
5910
5914
|
try {
|
|
5911
|
-
const tokens = await selecionarLicenca(_optionalChain([loginData, 'optionalAccess',
|
|
5915
|
+
const tokens = await selecionarLicenca(_optionalChain([loginData, 'optionalAccess', _39 => _39.token]), empresaId);
|
|
5912
5916
|
if (tokens) {
|
|
5913
5917
|
onLoginSuccess(tokens);
|
|
5914
5918
|
} else {
|
|
@@ -5930,7 +5934,7 @@ function LicencaForm(props) {
|
|
|
5930
5934
|
onChange: (e) => {
|
|
5931
5935
|
setEmpresaId(e.target.value);
|
|
5932
5936
|
},
|
|
5933
|
-
children: _optionalChain([loginData, 'optionalAccess',
|
|
5937
|
+
children: _optionalChain([loginData, 'optionalAccess', _40 => _40.empresas, 'optionalAccess', _41 => _41.map, 'call', _42 => _42((empresa) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.MenuItem, { value: empresa.uuid, children: empresa.nome }, empresa.uuid))])
|
|
5934
5938
|
}
|
|
5935
5939
|
),
|
|
5936
5940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -5958,6 +5962,9 @@ function LicencaForm(props) {
|
|
|
5958
5962
|
|
|
5959
5963
|
|
|
5960
5964
|
|
|
5965
|
+
var _HelpOutline = require('@mui/icons-material/HelpOutline'); var _HelpOutline2 = _interopRequireDefault(_HelpOutline);
|
|
5966
|
+
|
|
5967
|
+
|
|
5961
5968
|
|
|
5962
5969
|
// src/WhastappTextField/index.tsx
|
|
5963
5970
|
|
|
@@ -6010,10 +6017,6 @@ function WhatsAppTextField(props) {
|
|
|
6010
6017
|
);
|
|
6011
6018
|
}
|
|
6012
6019
|
|
|
6013
|
-
// src/MioAuth/components/OtpForm/index.tsx
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
6020
|
// src/MioAuth/components/OtpForm/DialogVerificarOtp.tsx
|
|
6018
6021
|
|
|
6019
6022
|
|
|
@@ -6039,15 +6042,15 @@ function VerificationCodeInput({
|
|
|
6039
6042
|
const updatedValue = nextValue.join("");
|
|
6040
6043
|
onChange(updatedValue);
|
|
6041
6044
|
if (cleanDigit && index < length - 1) {
|
|
6042
|
-
_optionalChain([inputsRef, 'access',
|
|
6045
|
+
_optionalChain([inputsRef, 'access', _43 => _43.current, 'access', _44 => _44[index + 1], 'optionalAccess', _45 => _45.focus, 'call', _46 => _46()]);
|
|
6043
6046
|
}
|
|
6044
6047
|
};
|
|
6045
6048
|
const handleKeyDown = (index, event) => {
|
|
6046
6049
|
if (event.key === "Backspace" && !value[index] && index > 0) {
|
|
6047
|
-
_optionalChain([inputsRef, 'access',
|
|
6050
|
+
_optionalChain([inputsRef, 'access', _47 => _47.current, 'access', _48 => _48[index - 1], 'optionalAccess', _49 => _49.focus, 'call', _50 => _50()]);
|
|
6048
6051
|
}
|
|
6049
6052
|
};
|
|
6050
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { display: "flex", gap: 1, children: Array.from({ length }).map((
|
|
6053
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { display: "flex", gap: 1, children: Array.from({ length }).map((_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6051
6054
|
_material.TextField,
|
|
6052
6055
|
{
|
|
6053
6056
|
autoFocus: i === 0,
|
|
@@ -6104,7 +6107,7 @@ function DialogVerificarOtp(props) {
|
|
|
6104
6107
|
setLoading(false);
|
|
6105
6108
|
}
|
|
6106
6109
|
}
|
|
6107
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Root, { open, onClose: (
|
|
6110
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Root, { open, onClose: (_) => onClose(), maxWidth: "xs", children: [
|
|
6108
6111
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Header, { children: [
|
|
6109
6112
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog_default.Title, { children: "Entrar com senha tempor\xE1ria" }),
|
|
6110
6113
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog_default.ActionClose, { onClose })
|
|
@@ -6162,7 +6165,6 @@ function DialogVerificarOtp(props) {
|
|
|
6162
6165
|
|
|
6163
6166
|
// src/MioAuth/components/OtpForm/index.tsx
|
|
6164
6167
|
|
|
6165
|
-
|
|
6166
6168
|
var contatoSchema = create$3().shape({
|
|
6167
6169
|
contato: create$6().when("$tipo", ([tipo], schema6) => {
|
|
6168
6170
|
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");
|
|
@@ -6266,7 +6268,7 @@ function OtpForm(props) {
|
|
|
6266
6268
|
href: "https://datacsistemashelp.zendesk.com/hc/pt-br/articles/36489079108756-Login-OTP-via-WhatsApp",
|
|
6267
6269
|
target: "_blank",
|
|
6268
6270
|
rel: "noopener noreferrer",
|
|
6269
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6271
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _HelpOutline2.default, { color: "primary" }) })
|
|
6270
6272
|
}
|
|
6271
6273
|
)
|
|
6272
6274
|
]
|
|
@@ -6280,7 +6282,7 @@ function OtpForm(props) {
|
|
|
6280
6282
|
{
|
|
6281
6283
|
onLoginSuccess,
|
|
6282
6284
|
open: isOpenVerificar,
|
|
6283
|
-
onClose: async (
|
|
6285
|
+
onClose: async (_) => {
|
|
6284
6286
|
setOpenVerificar(false);
|
|
6285
6287
|
},
|
|
6286
6288
|
payload: {
|
|
@@ -6322,10 +6324,10 @@ function LoginSection(props) {
|
|
|
6322
6324
|
}, [isAuthenticated]);
|
|
6323
6325
|
async function handleLoginSuccess(_loginData) {
|
|
6324
6326
|
try {
|
|
6325
|
-
if (Array.isArray(_optionalChain([_loginData, 'optionalAccess',
|
|
6326
|
-
if (_optionalChain([_loginData, 'optionalAccess',
|
|
6327
|
+
if (Array.isArray(_optionalChain([_loginData, 'optionalAccess', _51 => _51.empresas]))) {
|
|
6328
|
+
if (_optionalChain([_loginData, 'optionalAccess', _52 => _52.empresas, 'access', _53 => _53.length]) === 1) {
|
|
6327
6329
|
const tokens = await selecionarLicenca(
|
|
6328
|
-
_optionalChain([_loginData, 'optionalAccess',
|
|
6330
|
+
_optionalChain([_loginData, 'optionalAccess', _54 => _54.token]),
|
|
6329
6331
|
_loginData.empresas[0].uuid
|
|
6330
6332
|
);
|
|
6331
6333
|
if (tokens) {
|
|
@@ -6403,7 +6405,7 @@ function LoginSection(props) {
|
|
|
6403
6405
|
}
|
|
6404
6406
|
|
|
6405
6407
|
// src/MioAuth/components/DefaultBanner/index.tsx
|
|
6406
|
-
|
|
6408
|
+
var _ArrowRight = require('@mui/icons-material/ArrowRight'); var _ArrowRight2 = _interopRequireDefault(_ArrowRight);
|
|
6407
6409
|
|
|
6408
6410
|
|
|
6409
6411
|
function DefaultBanner() {
|
|
@@ -6490,7 +6492,7 @@ function DefaultBanner() {
|
|
|
6490
6492
|
children: [
|
|
6491
6493
|
"Conhe\xE7a nossos produtos",
|
|
6492
6494
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6493
|
-
|
|
6495
|
+
_ArrowRight2.default,
|
|
6494
6496
|
{
|
|
6495
6497
|
fontSize: "medium",
|
|
6496
6498
|
sx: { color: (theme3) => theme3.palette.success.light }
|
|
@@ -6554,6 +6556,9 @@ function MioAuth(props) {
|
|
|
6554
6556
|
|
|
6555
6557
|
// src/AlterarLicenca/index.tsx
|
|
6556
6558
|
|
|
6559
|
+
var _ArrowDropDown = require('@mui/icons-material/ArrowDropDown'); var _ArrowDropDown2 = _interopRequireDefault(_ArrowDropDown);
|
|
6560
|
+
|
|
6561
|
+
|
|
6557
6562
|
|
|
6558
6563
|
// src/v2/Header/HeaderContent.tsx
|
|
6559
6564
|
|
|
@@ -7826,7 +7831,7 @@ function FullMenuItem({
|
|
|
7826
7831
|
|
|
7827
7832
|
|
|
7828
7833
|
|
|
7829
|
-
|
|
7834
|
+
var _truncate = require('lodash/truncate'); var _truncate2 = _interopRequireDefault(_truncate);
|
|
7830
7835
|
|
|
7831
7836
|
|
|
7832
7837
|
// src/Surface/index.tsx
|
|
@@ -7888,7 +7893,7 @@ function cloneMenuItems(childrenProp, open) {
|
|
|
7888
7893
|
if (!_react2.default.isValidElement(child)) {
|
|
7889
7894
|
return child;
|
|
7890
7895
|
}
|
|
7891
|
-
const newChildren = _optionalChain([child, 'access',
|
|
7896
|
+
const newChildren = _optionalChain([child, 'access', _55 => _55.props, 'optionalAccess', _56 => _56.children]) ? cloneMenuItems(child.props.children, open) : null;
|
|
7892
7897
|
return _react2.default.cloneElement(child, {
|
|
7893
7898
|
open,
|
|
7894
7899
|
children: newChildren
|
|
@@ -7948,15 +7953,15 @@ function MinMenuItem(props) {
|
|
|
7948
7953
|
},
|
|
7949
7954
|
children: [
|
|
7950
7955
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.ListItemIcon, { children: renderIcon(icon) }),
|
|
7951
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.ListItemText, { primary:
|
|
7952
|
-
_optionalChain([opened, 'optionalAccess',
|
|
7956
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.ListItemText, { primary: _truncate2.default.call(void 0, label, { length: 12 }) }),
|
|
7957
|
+
_optionalChain([opened, 'optionalAccess', _57 => _57.id]) === id && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7953
7958
|
_material.Popper,
|
|
7954
7959
|
{
|
|
7955
7960
|
sx: {
|
|
7956
7961
|
zIndex: 999999
|
|
7957
7962
|
},
|
|
7958
|
-
anchorEl: _optionalChain([opened, 'optionalAccess',
|
|
7959
|
-
open: Boolean(_optionalChain([opened, 'optionalAccess',
|
|
7963
|
+
anchorEl: _optionalChain([opened, 'optionalAccess', _58 => _58.element]),
|
|
7964
|
+
open: Boolean(_optionalChain([opened, 'optionalAccess', _59 => _59.element])),
|
|
7960
7965
|
placement: "right-start",
|
|
7961
7966
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7962
7967
|
Surface,
|
|
@@ -7981,7 +7986,7 @@ function MinMenuItem(props) {
|
|
|
7981
7986
|
transition: "transform 0.2s ease-in-out"
|
|
7982
7987
|
},
|
|
7983
7988
|
p: 1,
|
|
7984
|
-
width: (theme2) => _optionalChain([theme2, 'access',
|
|
7989
|
+
width: (theme2) => _optionalChain([theme2, 'access', _60 => _60.mixins, 'access', _61 => _61.menu, 'optionalAccess', _62 => _62.width])
|
|
7985
7990
|
// borderTop: (theme) => `1px solid ${theme.palette.grey[400]}`,
|
|
7986
7991
|
// borderRight: (theme) => `1px solid ${theme.palette.grey[400]}`,
|
|
7987
7992
|
// borderBottom: (theme) => `1px solid ${theme.palette.grey[400]}`,
|
|
@@ -8049,7 +8054,7 @@ function useMenu() {
|
|
|
8049
8054
|
|
|
8050
8055
|
|
|
8051
8056
|
var openedMixin = (theme2) => ({
|
|
8052
|
-
width: _optionalChain([theme2, 'optionalAccess',
|
|
8057
|
+
width: _optionalChain([theme2, 'optionalAccess', _63 => _63.mixins, 'optionalAccess', _64 => _64.menu, 'optionalAccess', _65 => _65.width]) || 64,
|
|
8053
8058
|
background: "#FFFFFF",
|
|
8054
8059
|
transition: theme2.transitions.create("width", {
|
|
8055
8060
|
easing: theme2.transitions.easing.sharp,
|
|
@@ -8073,7 +8078,7 @@ var closedMixin = (theme2) => ({
|
|
|
8073
8078
|
var Drawer = _styles.styled.call(void 0, _material.Drawer, {
|
|
8074
8079
|
shouldForwardProp: (prop) => prop !== "open"
|
|
8075
8080
|
})(({ theme: theme2, open }) => ({
|
|
8076
|
-
width: _optionalChain([theme2, 'optionalAccess',
|
|
8081
|
+
width: _optionalChain([theme2, 'optionalAccess', _66 => _66.mixins, 'optionalAccess', _67 => _67.menu, 'optionalAccess', _68 => _68.width]) || 64,
|
|
8077
8082
|
// boxShadow: '2px 3px 20px -16px rgb(32 32 36 / 30%)',
|
|
8078
8083
|
borderRightStyle: "none",
|
|
8079
8084
|
whiteSpace: "nowrap",
|
|
@@ -8093,12 +8098,12 @@ function cloneMenuItems2(childrenProp, pathName, open, onClickItem) {
|
|
|
8093
8098
|
if (!_react2.default.isValidElement(child)) {
|
|
8094
8099
|
return child;
|
|
8095
8100
|
}
|
|
8096
|
-
const splittedLink = _optionalChain([child, 'access',
|
|
8101
|
+
const splittedLink = _optionalChain([child, 'access', _69 => _69.props, 'access', _70 => _70.link, 'optionalAccess', _71 => _71.split, 'call', _72 => _72("/"), 'access', _73 => _73.filter, 'call', _74 => _74(Boolean)]) || [];
|
|
8097
8102
|
const linkName = child.props.link || "";
|
|
8098
|
-
const splittedPath = _optionalChain([pathName, 'optionalAccess',
|
|
8103
|
+
const splittedPath = _optionalChain([pathName, 'optionalAccess', _75 => _75.split, 'call', _76 => _76("/"), 'access', _77 => _77.filter, 'call', _78 => _78(Boolean)]) || [];
|
|
8099
8104
|
const slicedPathName = splittedPath.slice(0, splittedLink.length);
|
|
8100
8105
|
const reconstructedPath = "/" + slicedPathName.join("/");
|
|
8101
|
-
const newChildren = _optionalChain([child, 'access',
|
|
8106
|
+
const newChildren = _optionalChain([child, 'access', _79 => _79.props, 'optionalAccess', _80 => _80.children]) ? cloneMenuItems2(child.props.children, pathName, open, onClickItem) : null;
|
|
8102
8107
|
return _react2.default.cloneElement(child, {
|
|
8103
8108
|
open,
|
|
8104
8109
|
selected: reconstructedPath === linkName,
|
|
@@ -8289,8 +8294,8 @@ function reducer(state, action) {
|
|
|
8289
8294
|
case "loadFiltersFromStorage":
|
|
8290
8295
|
return {
|
|
8291
8296
|
...state,
|
|
8292
|
-
filterValues: _optionalChain([action, 'optionalAccess',
|
|
8293
|
-
appliedValues: _optionalChain([action, 'optionalAccess',
|
|
8297
|
+
filterValues: _optionalChain([action, 'optionalAccess', _81 => _81.storageValues, 'optionalAccess', _82 => _82.filterValues]),
|
|
8298
|
+
appliedValues: _optionalChain([action, 'optionalAccess', _83 => _83.storageValues, 'optionalAccess', _84 => _84.appliedValues])
|
|
8294
8299
|
};
|
|
8295
8300
|
case "updateFilterValues":
|
|
8296
8301
|
return { ...state, filterValues: action.filterValues };
|
|
@@ -8309,7 +8314,7 @@ function reducer(state, action) {
|
|
|
8309
8314
|
const [key2] = Object.keys(filters);
|
|
8310
8315
|
asArray = [{ [key2]: filters[key2] }];
|
|
8311
8316
|
}
|
|
8312
|
-
if (_optionalChain([action, 'optionalAccess',
|
|
8317
|
+
if (_optionalChain([action, 'optionalAccess', _85 => _85.storagePath])) {
|
|
8313
8318
|
localStorage.setItem(
|
|
8314
8319
|
action.storagePath,
|
|
8315
8320
|
JSON.stringify({
|
|
@@ -8336,9 +8341,9 @@ function reducer(state, action) {
|
|
|
8336
8341
|
case "toggleIsOpen":
|
|
8337
8342
|
return { ...state, isOpen: !state.isOpen };
|
|
8338
8343
|
case "deleteAppliedValue":
|
|
8339
|
-
const { [action.filterName]:
|
|
8344
|
+
const { [action.filterName]: _, ...rest } = state.appliedValues || {};
|
|
8340
8345
|
const { [action.filterName]: __, ...restFilterValues } = state.filterValues || {};
|
|
8341
|
-
if (_optionalChain([action, 'optionalAccess',
|
|
8346
|
+
if (_optionalChain([action, 'optionalAccess', _86 => _86.storagePath])) {
|
|
8342
8347
|
const storage = JSON.parse(
|
|
8343
8348
|
localStorage.getItem(action.storagePath) || "{}"
|
|
8344
8349
|
);
|
|
@@ -8399,7 +8404,7 @@ function FilterProvider(props) {
|
|
|
8399
8404
|
dispatch({
|
|
8400
8405
|
type: "updateIsOpen",
|
|
8401
8406
|
isOpen: true,
|
|
8402
|
-
target: _optionalChain([event, 'optionalAccess',
|
|
8407
|
+
target: _optionalChain([event, 'optionalAccess', _87 => _87.target]) || void 0
|
|
8403
8408
|
});
|
|
8404
8409
|
}
|
|
8405
8410
|
function closeFilter() {
|
|
@@ -8593,7 +8598,7 @@ function FilterChips({
|
|
|
8593
8598
|
if (!containsInAppliedValues)
|
|
8594
8599
|
return null;
|
|
8595
8600
|
return _react2.default.cloneElement(child, {
|
|
8596
|
-
onDelete: !child.props.disabledDelete ? (
|
|
8601
|
+
onDelete: !child.props.disabledDelete ? (_) => {
|
|
8597
8602
|
if (deleteFilterValue)
|
|
8598
8603
|
deleteFilterValue(child.props.name || "");
|
|
8599
8604
|
close();
|
|
@@ -8634,7 +8639,7 @@ function FilterChips({
|
|
|
8634
8639
|
},
|
|
8635
8640
|
children: [
|
|
8636
8641
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Box, { pt: 2, pl: 1, pr: 1, pb: 2, children: _react2.default.Children.map(childrenProp, (child) => {
|
|
8637
|
-
if (_react2.default.isValidElement(child) && child.props.name === _optionalChain([popoverData, 'optionalAccess',
|
|
8642
|
+
if (_react2.default.isValidElement(child) && child.props.name === _optionalChain([popoverData, 'optionalAccess', _88 => _88.name])) {
|
|
8638
8643
|
return child.props.children;
|
|
8639
8644
|
}
|
|
8640
8645
|
return null;
|
|
@@ -8651,13 +8656,13 @@ function FilterChips({
|
|
|
8651
8656
|
justifyContent: "flex-end",
|
|
8652
8657
|
spacing: 1,
|
|
8653
8658
|
children: [
|
|
8654
|
-
!_optionalChain([popoverData, 'optionalAccess',
|
|
8659
|
+
!_optionalChain([popoverData, 'optionalAccess', _89 => _89.disabledDelete]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8655
8660
|
_material.Button,
|
|
8656
8661
|
{
|
|
8657
8662
|
color: "error",
|
|
8658
8663
|
onClick: () => {
|
|
8659
8664
|
if (deleteFilterValue)
|
|
8660
|
-
deleteFilterValue(_optionalChain([popoverData, 'optionalAccess',
|
|
8665
|
+
deleteFilterValue(_optionalChain([popoverData, 'optionalAccess', _90 => _90.name]) || "");
|
|
8661
8666
|
close();
|
|
8662
8667
|
},
|
|
8663
8668
|
children: "Apagar"
|
|
@@ -8773,7 +8778,7 @@ function FilterRoot(props) {
|
|
|
8773
8778
|
|
|
8774
8779
|
function FilterSearchTextField(props) {
|
|
8775
8780
|
const { onChange, ...rest } = props;
|
|
8776
|
-
const debouncedHandleChange =
|
|
8781
|
+
const debouncedHandleChange = _debounce2.default.call(void 0, (query) => onChange(query), 500);
|
|
8777
8782
|
function handleChange(event) {
|
|
8778
8783
|
const value = event.target.value;
|
|
8779
8784
|
debouncedHandleChange(value);
|
|
@@ -8992,8 +8997,8 @@ function Table(props) {
|
|
|
8992
8997
|
...col,
|
|
8993
8998
|
flex: col.flex || 1,
|
|
8994
8999
|
minWidth: col.minWidth || 100,
|
|
8995
|
-
headerClassName: _optionalChain([col, 'optionalAccess',
|
|
8996
|
-
cellClassName: _optionalChain([col, 'optionalAccess',
|
|
9000
|
+
headerClassName: _optionalChain([col, 'optionalAccess', _91 => _91.enableStickyColumns]) ? "sticky-header" : "",
|
|
9001
|
+
cellClassName: _optionalChain([col, 'optionalAccess', _92 => _92.enableStickyColumns]) ? "sticky-cell" : ""
|
|
8997
9002
|
};
|
|
8998
9003
|
});
|
|
8999
9004
|
};
|
|
@@ -9033,7 +9038,7 @@ function Table(props) {
|
|
|
9033
9038
|
case "ctrl+e":
|
|
9034
9039
|
event.preventDefault();
|
|
9035
9040
|
const handleExport = (options) => {
|
|
9036
|
-
if (_optionalChain([apiRef, 'optionalAccess',
|
|
9041
|
+
if (_optionalChain([apiRef, 'optionalAccess', _93 => _93.current])) {
|
|
9037
9042
|
apiRef.current.exportDataAsCsv(options);
|
|
9038
9043
|
}
|
|
9039
9044
|
};
|
|
@@ -9043,7 +9048,7 @@ function Table(props) {
|
|
|
9043
9048
|
break;
|
|
9044
9049
|
}
|
|
9045
9050
|
}
|
|
9046
|
-
function handleRowDoubleClick(params,
|
|
9051
|
+
function handleRowDoubleClick(params, _, details) {
|
|
9047
9052
|
if (onRowDoubleClick)
|
|
9048
9053
|
onRowDoubleClick("edit", params.id);
|
|
9049
9054
|
}
|
|
@@ -9087,8 +9092,8 @@ function Table(props) {
|
|
|
9087
9092
|
setRowsSelectedId(rowSelectionModel);
|
|
9088
9093
|
},
|
|
9089
9094
|
slots: {
|
|
9090
|
-
booleanCellFalseIcon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9091
|
-
booleanCellTrueIcon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9095
|
+
booleanCellFalseIcon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Circle2.default, { color: "error", sx: { fontSize: "10pt" } }),
|
|
9096
|
+
booleanCellTrueIcon: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Circle2.default, { color: "success", sx: { fontSize: "10pt" } }),
|
|
9092
9097
|
noRowsOverlay: () => !isLoading && !!error ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableError, { errorMessage: error }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTableEmptyData, {}),
|
|
9093
9098
|
...slots
|
|
9094
9099
|
},
|
|
@@ -9365,7 +9370,7 @@ function CellActionDelete({
|
|
|
9365
9370
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9366
9371
|
_xdatagrid.GridActionsCellItem,
|
|
9367
9372
|
{
|
|
9368
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9373
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Delete2.default, {}),
|
|
9369
9374
|
label: "Delete",
|
|
9370
9375
|
color: "primary",
|
|
9371
9376
|
onClick: () => {
|
|
@@ -9388,7 +9393,7 @@ function CellActionEdit({
|
|
|
9388
9393
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9389
9394
|
_xdatagrid.GridActionsCellItem,
|
|
9390
9395
|
{
|
|
9391
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9396
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Edit2.default, {}),
|
|
9392
9397
|
label: "Edit",
|
|
9393
9398
|
color: "primary",
|
|
9394
9399
|
onClick: () => onClick && onClick("edit"),
|
|
@@ -9422,7 +9427,7 @@ function CellActionTransport({
|
|
|
9422
9427
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9423
9428
|
_xdatagrid.GridActionsCellItem,
|
|
9424
9429
|
{
|
|
9425
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9430
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _GetApp2.default, {}),
|
|
9426
9431
|
label: "Transport",
|
|
9427
9432
|
color: "primary",
|
|
9428
9433
|
onClick: () => onClick && onClick("transport"),
|
|
@@ -9450,7 +9455,7 @@ function Content(props) {
|
|
|
9450
9455
|
}
|
|
9451
9456
|
|
|
9452
9457
|
// src/v2/DataTable/DataTableExportCsvButton.tsx
|
|
9453
|
-
|
|
9458
|
+
var _FileDownload = require('@mui/icons-material/FileDownload'); var _FileDownload2 = _interopRequireDefault(_FileDownload);
|
|
9454
9459
|
|
|
9455
9460
|
|
|
9456
9461
|
|
|
@@ -9459,14 +9464,14 @@ var getFilteredRows2 = ({ apiRef }) => _xdatagrid.gridFilteredSortedRowIdsSelect
|
|
|
9459
9464
|
function ExportCsvButton() {
|
|
9460
9465
|
const { apiRef } = useTableRootContext();
|
|
9461
9466
|
const handleExport = (options) => {
|
|
9462
|
-
if (_optionalChain([apiRef, 'optionalAccess',
|
|
9467
|
+
if (_optionalChain([apiRef, 'optionalAccess', _94 => _94.current])) {
|
|
9463
9468
|
apiRef.current.exportDataAsCsv(options);
|
|
9464
9469
|
}
|
|
9465
9470
|
};
|
|
9466
9471
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9467
9472
|
DataTableButton,
|
|
9468
9473
|
{
|
|
9469
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9474
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _FileDownload2.default, {}),
|
|
9470
9475
|
onClick: () => handleExport({ getRowsToExport: getFilteredRows2 }),
|
|
9471
9476
|
children: "Exportar CSV"
|
|
9472
9477
|
}
|
|
@@ -9518,7 +9523,7 @@ function Pagination(props) {
|
|
|
9518
9523
|
} = props;
|
|
9519
9524
|
const { page, pageSize = 15, totalRecords } = pagination || {};
|
|
9520
9525
|
const pages = _react.useMemo.call(void 0, () => {
|
|
9521
|
-
if (_optionalChain([pagination, 'optionalAccess',
|
|
9526
|
+
if (_optionalChain([pagination, 'optionalAccess', _95 => _95.lastPage]))
|
|
9522
9527
|
return pagination.lastPage;
|
|
9523
9528
|
if ((totalRecords || 0) < pageSize)
|
|
9524
9529
|
return 1;
|
|
@@ -9591,7 +9596,7 @@ function Pagination(props) {
|
|
|
9591
9596
|
count: pages || 0,
|
|
9592
9597
|
showFirstButton: true,
|
|
9593
9598
|
showLastButton: true,
|
|
9594
|
-
onChange: (
|
|
9599
|
+
onChange: (_, _page) => {
|
|
9595
9600
|
if (onChangePage)
|
|
9596
9601
|
onChangePage(_page);
|
|
9597
9602
|
},
|
|
@@ -9650,7 +9655,7 @@ function Root({ children, height, ...rest }) {
|
|
|
9650
9655
|
function SelectionCounter(props) {
|
|
9651
9656
|
const { countTitle, gender } = props;
|
|
9652
9657
|
const { rowsSelectedId } = useTableRootContext();
|
|
9653
|
-
const countQuantidade = _optionalChain([rowsSelectedId, 'optionalAccess',
|
|
9658
|
+
const countQuantidade = _optionalChain([rowsSelectedId, 'optionalAccess', _96 => _96.ids, 'access', _97 => _97.size]) || 0;
|
|
9654
9659
|
const flexSufixCountTitle = _react.useMemo.call(void 0, () => {
|
|
9655
9660
|
if (!countTitle)
|
|
9656
9661
|
return "";
|
|
@@ -9805,12 +9810,12 @@ var PopoverProvider = ({
|
|
|
9805
9810
|
const open = _react.useCallback.call(void 0, (anchor) => {
|
|
9806
9811
|
setAnchorEl(anchor);
|
|
9807
9812
|
setIsOpen(true);
|
|
9808
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
9813
|
+
_optionalChain([onOpenChange, 'optionalCall', _98 => _98(true)]);
|
|
9809
9814
|
}, []);
|
|
9810
9815
|
const close = _react.useCallback.call(void 0, () => {
|
|
9811
9816
|
setIsOpen(false);
|
|
9812
9817
|
setAnchorEl(null);
|
|
9813
|
-
_optionalChain([onOpenChange, 'optionalCall',
|
|
9818
|
+
_optionalChain([onOpenChange, 'optionalCall', _99 => _99(false)]);
|
|
9814
9819
|
}, []);
|
|
9815
9820
|
_react.useEffect.call(void 0, () => {
|
|
9816
9821
|
setIsOpen(Boolean(_open));
|
|
@@ -9952,12 +9957,12 @@ function ButtonGroupRoot(props) {
|
|
|
9952
9957
|
const children = _react.Children.map(childrenProp, (child, index) => {
|
|
9953
9958
|
options.push({
|
|
9954
9959
|
label: child.props.children,
|
|
9955
|
-
value: _optionalChain([child, 'access',
|
|
9960
|
+
value: _optionalChain([child, 'access', _100 => _100.props, 'optionalAccess', _101 => _101.value]) || index
|
|
9956
9961
|
});
|
|
9957
9962
|
const clonedChild = _react2.default.cloneElement(child, {
|
|
9958
9963
|
isLoading,
|
|
9959
9964
|
sx: { maxWidth: "300px", width: "120px" },
|
|
9960
|
-
value: _optionalChain([child, 'access',
|
|
9965
|
+
value: _optionalChain([child, 'access', _102 => _102.props, 'optionalAccess', _103 => _103.value]) || index
|
|
9961
9966
|
});
|
|
9962
9967
|
if (!Boolean(value) && index === 0)
|
|
9963
9968
|
return clonedChild;
|
|
@@ -10290,7 +10295,7 @@ function Autocomplete(props) {
|
|
|
10290
10295
|
function resetEndAdornment(endAdornment, isLoading2 = false, disabled2 = false) {
|
|
10291
10296
|
if (endAdornment) {
|
|
10292
10297
|
const children = _react2.default.Children.toArray(
|
|
10293
|
-
_optionalChain([endAdornment, 'access',
|
|
10298
|
+
_optionalChain([endAdornment, 'access', _104 => _104.props, 'optionalAccess', _105 => _105.children])
|
|
10294
10299
|
);
|
|
10295
10300
|
const pos = children.length === 1 ? 0 : 1;
|
|
10296
10301
|
children.splice(
|
|
@@ -10320,14 +10325,14 @@ function Autocomplete(props) {
|
|
|
10320
10325
|
}
|
|
10321
10326
|
return endAdornment;
|
|
10322
10327
|
}
|
|
10323
|
-
const debouncedHandleSearch =
|
|
10328
|
+
const debouncedHandleSearch = _debounce2.default.call(void 0, (query, reason) => {
|
|
10324
10329
|
if (reason === "selectOption")
|
|
10325
10330
|
return;
|
|
10326
10331
|
if (onSearchChange)
|
|
10327
10332
|
onSearchChange(query, reason);
|
|
10328
10333
|
}, 500);
|
|
10329
10334
|
const handleSearch = _react.useCallback.call(void 0,
|
|
10330
|
-
(
|
|
10335
|
+
(_, v, reason) => {
|
|
10331
10336
|
debouncedHandleSearch(v, reason);
|
|
10332
10337
|
},
|
|
10333
10338
|
[debouncedHandleSearch]
|
|
@@ -10348,7 +10353,7 @@ function Autocomplete(props) {
|
|
|
10348
10353
|
loading: isLoading,
|
|
10349
10354
|
loadingText: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Loading, {}),
|
|
10350
10355
|
value,
|
|
10351
|
-
onChange: (
|
|
10356
|
+
onChange: (_, v) => handleChange(v),
|
|
10352
10357
|
options,
|
|
10353
10358
|
onInputChange: handleSearch,
|
|
10354
10359
|
getOptionLabel: renderValue,
|
|
@@ -10422,7 +10427,7 @@ function createTransporterScope(id) {
|
|
|
10422
10427
|
}
|
|
10423
10428
|
const current = get().value;
|
|
10424
10429
|
const exists = current.find(
|
|
10425
|
-
(item) => _optionalChain([item, 'optionalAccess',
|
|
10430
|
+
(item) => _optionalChain([item, 'optionalAccess', _106 => _106.id]) === result.id
|
|
10426
10431
|
);
|
|
10427
10432
|
const updated = exists ? current.filter((item) => item !== result) : [...current, result];
|
|
10428
10433
|
get().triggerOnChange(updated);
|
|
@@ -10434,7 +10439,7 @@ function createTransporterScope(id) {
|
|
|
10434
10439
|
onChange: void 0,
|
|
10435
10440
|
setOnChange: (fn) => set({ onChange: fn }),
|
|
10436
10441
|
triggerOnChange: (item) => {
|
|
10437
|
-
_optionalChain([get, 'call',
|
|
10442
|
+
_optionalChain([get, 'call', _107 => _107(), 'access', _108 => _108.onChange, 'optionalCall', _109 => _109(item)]);
|
|
10438
10443
|
}
|
|
10439
10444
|
}));
|
|
10440
10445
|
transporterStores.set(id, store);
|
|
@@ -10538,13 +10543,13 @@ var Transporter_default = Transporter;
|
|
|
10538
10543
|
|
|
10539
10544
|
|
|
10540
10545
|
|
|
10541
|
-
function
|
|
10546
|
+
function TextField12(props) {
|
|
10542
10547
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10543
10548
|
_material.TextField,
|
|
10544
10549
|
{
|
|
10545
10550
|
...props,
|
|
10546
10551
|
slotProps: {
|
|
10547
|
-
input: { readOnly: props.readonly, ..._optionalChain([props, 'access',
|
|
10552
|
+
input: { readOnly: props.readonly, ..._optionalChain([props, 'access', _110 => _110.slotProps, 'optionalAccess', _111 => _111.input]) },
|
|
10548
10553
|
...props.slotProps
|
|
10549
10554
|
}
|
|
10550
10555
|
}
|
|
@@ -10621,14 +10626,14 @@ function DocumentoTextField(props) {
|
|
|
10621
10626
|
};
|
|
10622
10627
|
const maxLen = formattedMaxLength(tipoDocumento, propValue || internalValue);
|
|
10623
10628
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10624
|
-
|
|
10629
|
+
TextField12,
|
|
10625
10630
|
{
|
|
10626
10631
|
value: displayedValue,
|
|
10627
10632
|
onChange: handleChange,
|
|
10628
10633
|
slotProps: {
|
|
10629
10634
|
htmlInput: {
|
|
10630
10635
|
maxLength: maxLen,
|
|
10631
|
-
..._optionalChain([slotProps, 'optionalAccess',
|
|
10636
|
+
..._optionalChain([slotProps, 'optionalAccess', _112 => _112.htmlInput])
|
|
10632
10637
|
},
|
|
10633
10638
|
...slotProps
|
|
10634
10639
|
// Allow additional slotProps to be passed
|
|
@@ -10669,14 +10674,14 @@ function CEPTextField(props) {
|
|
|
10669
10674
|
}
|
|
10670
10675
|
};
|
|
10671
10676
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10672
|
-
|
|
10677
|
+
TextField12,
|
|
10673
10678
|
{
|
|
10674
10679
|
value: displayedValue,
|
|
10675
10680
|
onChange: handleChange,
|
|
10676
10681
|
slotProps: {
|
|
10677
10682
|
htmlInput: {
|
|
10678
10683
|
maxLength: 9,
|
|
10679
|
-
..._optionalChain([slotProps, 'optionalAccess',
|
|
10684
|
+
..._optionalChain([slotProps, 'optionalAccess', _113 => _113.htmlInput])
|
|
10680
10685
|
},
|
|
10681
10686
|
...slotProps
|
|
10682
10687
|
// Allow additional slotProps to be passed
|
|
@@ -10794,7 +10799,7 @@ function TelefoneTextField(props) {
|
|
|
10794
10799
|
};
|
|
10795
10800
|
const maxLen = formattedMaxLength2(tipoTelefone, allowDDI);
|
|
10796
10801
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10797
|
-
|
|
10802
|
+
TextField12,
|
|
10798
10803
|
{
|
|
10799
10804
|
value: displayedValue,
|
|
10800
10805
|
onChange: handleChange,
|
|
@@ -10843,7 +10848,7 @@ function NotaVersaoItem(props) {
|
|
|
10843
10848
|
"div",
|
|
10844
10849
|
{
|
|
10845
10850
|
dangerouslySetInnerHTML: {
|
|
10846
|
-
__html: _optionalChain([article, 'optionalAccess',
|
|
10851
|
+
__html: _optionalChain([article, 'optionalAccess', _114 => _114.body, 'optionalAccess', _115 => _115.replace, 'call', _116 => _116('width="560"', 'width="412px"'), 'access', _117 => _117.replace, 'call', _118 => _118('height="315"', 'height="240px"'), 'access', _119 => _119.replace, 'call', _120 => _120("h2", "h3")]) || ""
|
|
10847
10852
|
}
|
|
10848
10853
|
}
|
|
10849
10854
|
) })
|
|
@@ -10960,7 +10965,7 @@ function NotaVersao(props) {
|
|
|
10960
10965
|
") est\xE1 dispon\xEDvel!"
|
|
10961
10966
|
] }),
|
|
10962
10967
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Alert, { severity: "error", children: "N\xE3o foi poss\xEDvel carregar o conte\xFAdo" }),
|
|
10963
|
-
_optionalChain([articles, 'optionalAccess',
|
|
10968
|
+
_optionalChain([articles, 'optionalAccess', _121 => _121.map, 'call', _122 => _122((a, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NotaVersaoItem, { isOpen: index === 0, article: a }, a.id))])
|
|
10964
10969
|
] })
|
|
10965
10970
|
]
|
|
10966
10971
|
}
|
|
@@ -10977,8 +10982,8 @@ var _luxon = require('luxon');
|
|
|
10977
10982
|
function DatePicker(props) {
|
|
10978
10983
|
const { value, error, onChange, fromFormat, format: format2, ...rest } = props;
|
|
10979
10984
|
function handleChange(date2) {
|
|
10980
|
-
if (_optionalChain([date2, 'optionalAccess',
|
|
10981
|
-
onChange(_optionalChain([date2, 'optionalAccess',
|
|
10985
|
+
if (_optionalChain([date2, 'optionalAccess', _123 => _123.isValid])) {
|
|
10986
|
+
onChange(_optionalChain([date2, 'optionalAccess', _124 => _124.toFormat, 'call', _125 => _125("yyyy-MM-dd")]));
|
|
10982
10987
|
return;
|
|
10983
10988
|
}
|
|
10984
10989
|
if (date2 === null) {
|
|
@@ -11221,19 +11226,19 @@ function DateRangePicker(props) {
|
|
|
11221
11226
|
),
|
|
11222
11227
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Stack, { spacing: 2, children: [
|
|
11223
11228
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11224
|
-
|
|
11229
|
+
TextField12,
|
|
11225
11230
|
{
|
|
11226
11231
|
value: dates.tipo,
|
|
11227
11232
|
onChange: (e) => {
|
|
11228
11233
|
const _periodo = e.target.value;
|
|
11229
|
-
definirPeriodo(_periodo, _optionalChain([dates, 'optionalAccess',
|
|
11234
|
+
definirPeriodo(_periodo, _optionalChain([dates, 'optionalAccess', _126 => _126.firstDate]) || null);
|
|
11230
11235
|
},
|
|
11231
11236
|
select: true,
|
|
11232
11237
|
fullWidth: true,
|
|
11233
11238
|
size: "small",
|
|
11234
11239
|
variant: "outlined",
|
|
11235
11240
|
InputProps: {
|
|
11236
|
-
startAdornment: _optionalChain([dates, 'optionalAccess',
|
|
11241
|
+
startAdornment: _optionalChain([dates, 'optionalAccess', _127 => _127.tipo]) !== "livre" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.InputAdornment, { position: "start", children: [
|
|
11237
11242
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { size: "small", onClick: handleBackToPrevious, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _xdatepickers.ArrowLeftIcon, { fontSize: "small" }) }),
|
|
11238
11243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { size: "small", onClick: handleGoToNext, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _xdatepickers.ArrowRightIcon, { fontSize: "small" }) })
|
|
11239
11244
|
] })
|
|
@@ -11259,7 +11264,7 @@ function DateRangePicker(props) {
|
|
|
11259
11264
|
slots: dates.tipo === "week" ? { day: Day } : void 0,
|
|
11260
11265
|
slotProps: dates.tipo === "week" ? {
|
|
11261
11266
|
day: (ownerState) => ({
|
|
11262
|
-
selectedDay: _optionalChain([dates, 'optionalAccess',
|
|
11267
|
+
selectedDay: _optionalChain([dates, 'optionalAccess', _128 => _128.firstDate]) ? _luxon.DateTime.fromFormat(
|
|
11263
11268
|
dates.firstDate,
|
|
11264
11269
|
"yyyy-MM-dd"
|
|
11265
11270
|
).startOf("week") : _luxon.DateTime.now(),
|
|
@@ -11274,8 +11279,8 @@ function DateRangePicker(props) {
|
|
|
11274
11279
|
dates.tipo !== "day" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11275
11280
|
DatePicker,
|
|
11276
11281
|
{
|
|
11277
|
-
disabled: dates.tipo !== "livre" || !Boolean(_optionalChain([dates, 'optionalAccess',
|
|
11278
|
-
minDate: _optionalChain([dates, 'optionalAccess',
|
|
11282
|
+
disabled: dates.tipo !== "livre" || !Boolean(_optionalChain([dates, 'optionalAccess', _129 => _129.firstDate])),
|
|
11283
|
+
minDate: _optionalChain([dates, 'optionalAccess', _130 => _130.firstDate]) ? _luxon.DateTime.fromFormat(dates.firstDate, "yyyy-MM-dd") : void 0,
|
|
11279
11284
|
showDaysOutsideCurrentMonth: true,
|
|
11280
11285
|
label: "Fim",
|
|
11281
11286
|
onChange: handleChangeSecondDate,
|
|
@@ -11290,19 +11295,19 @@ function DateRangePicker(props) {
|
|
|
11290
11295
|
}
|
|
11291
11296
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Stack, { spacing: 2, children: [
|
|
11292
11297
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
11293
|
-
|
|
11298
|
+
TextField12,
|
|
11294
11299
|
{
|
|
11295
11300
|
value: dates.tipo,
|
|
11296
11301
|
onChange: (e) => {
|
|
11297
11302
|
const _periodo = e.target.value;
|
|
11298
|
-
definirPeriodo(_periodo, _optionalChain([dates, 'optionalAccess',
|
|
11303
|
+
definirPeriodo(_periodo, _optionalChain([dates, 'optionalAccess', _131 => _131.firstDate]) || null);
|
|
11299
11304
|
},
|
|
11300
11305
|
select: true,
|
|
11301
11306
|
fullWidth: true,
|
|
11302
11307
|
size: "small",
|
|
11303
11308
|
variant: "outlined",
|
|
11304
11309
|
InputProps: {
|
|
11305
|
-
startAdornment: _optionalChain([dates, 'optionalAccess',
|
|
11310
|
+
startAdornment: _optionalChain([dates, 'optionalAccess', _132 => _132.tipo]) !== "livre" && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.InputAdornment, { position: "start", children: [
|
|
11306
11311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { size: "small", onClick: handleBackToPrevious, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _xdatepickers.ArrowLeftIcon, { fontSize: "small" }) }),
|
|
11307
11312
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.IconButton, { size: "small", onClick: handleGoToNext, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _xdatepickers.ArrowRightIcon, { fontSize: "small" }) })
|
|
11308
11313
|
] })
|
|
@@ -11328,7 +11333,7 @@ function DateRangePicker(props) {
|
|
|
11328
11333
|
slots: dates.tipo === "week" ? { day: Day } : void 0,
|
|
11329
11334
|
slotProps: dates.tipo === "week" ? {
|
|
11330
11335
|
day: (ownerState) => ({
|
|
11331
|
-
selectedDay: _optionalChain([dates, 'optionalAccess',
|
|
11336
|
+
selectedDay: _optionalChain([dates, 'optionalAccess', _133 => _133.firstDate]) ? _luxon.DateTime.fromFormat(
|
|
11332
11337
|
dates.firstDate,
|
|
11333
11338
|
"yyyy-MM-dd"
|
|
11334
11339
|
).startOf("week") : _luxon.DateTime.now(),
|
|
@@ -11343,8 +11348,8 @@ function DateRangePicker(props) {
|
|
|
11343
11348
|
dates.tipo !== "day" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11344
11349
|
DatePicker,
|
|
11345
11350
|
{
|
|
11346
|
-
disabled: dates.tipo !== "livre" || !Boolean(_optionalChain([dates, 'optionalAccess',
|
|
11347
|
-
minDate: _optionalChain([dates, 'optionalAccess',
|
|
11351
|
+
disabled: dates.tipo !== "livre" || !Boolean(_optionalChain([dates, 'optionalAccess', _134 => _134.firstDate])),
|
|
11352
|
+
minDate: _optionalChain([dates, 'optionalAccess', _135 => _135.firstDate]) ? _luxon.DateTime.fromFormat(dates.firstDate, "yyyy-MM-dd") : void 0,
|
|
11348
11353
|
showDaysOutsideCurrentMonth: true,
|
|
11349
11354
|
label: "Fim",
|
|
11350
11355
|
onChange: (date2) => {
|
|
@@ -11408,7 +11413,7 @@ var CurrencyTextField = _react.forwardRef.call(void 0,
|
|
|
11408
11413
|
}
|
|
11409
11414
|
}, []);
|
|
11410
11415
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11411
|
-
|
|
11416
|
+
TextField12,
|
|
11412
11417
|
{
|
|
11413
11418
|
onKeyDown: (e) => {
|
|
11414
11419
|
key = e.key;
|
|
@@ -11441,9 +11446,6 @@ var CurrencyTextField_default = CurrencyTextField;
|
|
|
11441
11446
|
|
|
11442
11447
|
// src/AlterarLicenca/index.tsx
|
|
11443
11448
|
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
11449
|
function AlterarLicenca(props) {
|
|
11448
11450
|
const { licencas, licencaSelecionada, onAlterarLicenca } = props;
|
|
11449
11451
|
const [query, setQuery] = _react.useState.call(void 0, "");
|
|
@@ -11470,7 +11472,7 @@ function AlterarLicenca(props) {
|
|
|
11470
11472
|
variant: "text",
|
|
11471
11473
|
children: [
|
|
11472
11474
|
licencaSelecionada.nome,
|
|
11473
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11475
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ArrowDropDown2.default, {})
|
|
11474
11476
|
]
|
|
11475
11477
|
}
|
|
11476
11478
|
) }),
|
|
@@ -11526,7 +11528,8 @@ function AlterarLicenca(props) {
|
|
|
11526
11528
|
|
|
11527
11529
|
// src/DrawerMenu/components/FullMenu/components/FullMenuItem/index.tsx
|
|
11528
11530
|
|
|
11529
|
-
|
|
11531
|
+
var _ExpandLess = require('@mui/icons-material/ExpandLess'); var _ExpandLess2 = _interopRequireDefault(_ExpandLess);
|
|
11532
|
+
var _ExpandMore = require('@mui/icons-material/ExpandMore'); var _ExpandMore2 = _interopRequireDefault(_ExpandMore);
|
|
11530
11533
|
|
|
11531
11534
|
|
|
11532
11535
|
// src/DrawerMenu/components/MenuItem/index.tsx
|
|
@@ -11579,7 +11582,7 @@ function FullMenuItem2(props) {
|
|
|
11579
11582
|
if (!menuItem.visible)
|
|
11580
11583
|
return null;
|
|
11581
11584
|
const isExpandable = Boolean(
|
|
11582
|
-
_optionalChain([menuItem, 'optionalAccess',
|
|
11585
|
+
_optionalChain([menuItem, 'optionalAccess', _136 => _136.items]) && _optionalChain([menuItem, 'optionalAccess', _137 => _137.items, 'access', _138 => _138.length]) > 0
|
|
11583
11586
|
);
|
|
11584
11587
|
function toggleExpand() {
|
|
11585
11588
|
setExpanded(!expanded);
|
|
@@ -11589,7 +11592,7 @@ function FullMenuItem2(props) {
|
|
|
11589
11592
|
MenuItem_default,
|
|
11590
11593
|
{
|
|
11591
11594
|
onClick: () => {
|
|
11592
|
-
if (_optionalChain([menuItem, 'optionalAccess',
|
|
11595
|
+
if (_optionalChain([menuItem, 'optionalAccess', _139 => _139.link])) {
|
|
11593
11596
|
onMenuClick(menuItem.link);
|
|
11594
11597
|
return;
|
|
11595
11598
|
}
|
|
@@ -11599,19 +11602,19 @@ function FullMenuItem2(props) {
|
|
|
11599
11602
|
children: [
|
|
11600
11603
|
!!menuItem.icon && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Icon, { children: menuItem.icon }),
|
|
11601
11604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.ListItemText, { primary: menuItem.label }),
|
|
11602
|
-
isExpandable && !expanded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11603
|
-
isExpandable && expanded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11605
|
+
isExpandable && !expanded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ExpandMore2.default, {}),
|
|
11606
|
+
isExpandable && expanded && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _ExpandLess2.default, {})
|
|
11604
11607
|
]
|
|
11605
11608
|
}
|
|
11606
11609
|
),
|
|
11607
|
-
_optionalChain([menuItem, 'optionalAccess',
|
|
11610
|
+
_optionalChain([menuItem, 'optionalAccess', _140 => _140.items]) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Collapse, { in: expanded, timeout: "auto", unmountOnExit: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11608
11611
|
FullMenu,
|
|
11609
11612
|
{
|
|
11610
11613
|
activeMenu,
|
|
11611
11614
|
sx: {
|
|
11612
11615
|
pl: (theme2) => theme2.spacing(1.5)
|
|
11613
11616
|
},
|
|
11614
|
-
menus: _optionalChain([menuItem, 'optionalAccess',
|
|
11617
|
+
menus: _optionalChain([menuItem, 'optionalAccess', _141 => _141.items]) || [],
|
|
11615
11618
|
onMenuClick
|
|
11616
11619
|
}
|
|
11617
11620
|
) })
|
|
@@ -11659,38 +11662,38 @@ function MinMenu(props) {
|
|
|
11659
11662
|
MenuItem_default,
|
|
11660
11663
|
{
|
|
11661
11664
|
onMouseEnter: (e) => {
|
|
11662
|
-
if (!_optionalChain([menuItem, 'optionalAccess',
|
|
11665
|
+
if (!_optionalChain([menuItem, 'optionalAccess', _142 => _142.link])) {
|
|
11663
11666
|
handleOpen(e, menuItem.id, menuItem.items);
|
|
11664
11667
|
}
|
|
11665
11668
|
},
|
|
11666
11669
|
onMouseLeave: () => {
|
|
11667
|
-
if (!_optionalChain([menuItem, 'optionalAccess',
|
|
11670
|
+
if (!_optionalChain([menuItem, 'optionalAccess', _143 => _143.link])) {
|
|
11668
11671
|
handleClose();
|
|
11669
11672
|
}
|
|
11670
11673
|
},
|
|
11671
11674
|
onClick: () => {
|
|
11672
|
-
if (_optionalChain([menuItem, 'optionalAccess',
|
|
11675
|
+
if (_optionalChain([menuItem, 'optionalAccess', _144 => _144.link])) {
|
|
11673
11676
|
onMenuClick(menuItem.link);
|
|
11674
11677
|
}
|
|
11675
11678
|
},
|
|
11676
11679
|
selected: activeMenu === menuItem.link,
|
|
11677
11680
|
children: [
|
|
11678
11681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.ListItemIcon, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Icon, { children: menuItem.icon }) }),
|
|
11679
|
-
_optionalChain([opened, 'optionalAccess',
|
|
11682
|
+
_optionalChain([opened, 'optionalAccess', _145 => _145.id]) === menuItem.id && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11680
11683
|
_material.Popper,
|
|
11681
11684
|
{
|
|
11682
11685
|
sx: {
|
|
11683
11686
|
zIndex: 999999
|
|
11684
11687
|
},
|
|
11685
|
-
anchorEl: _optionalChain([opened, 'optionalAccess',
|
|
11686
|
-
open: Boolean(_optionalChain([opened, 'optionalAccess',
|
|
11688
|
+
anchorEl: _optionalChain([opened, 'optionalAccess', _146 => _146.element]),
|
|
11689
|
+
open: Boolean(_optionalChain([opened, 'optionalAccess', _147 => _147.element])),
|
|
11687
11690
|
placement: "right-start",
|
|
11688
11691
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11689
11692
|
FullMenu,
|
|
11690
11693
|
{
|
|
11691
11694
|
activeMenu,
|
|
11692
11695
|
onMenuClick,
|
|
11693
|
-
menus: _optionalChain([menuItem, 'optionalAccess',
|
|
11696
|
+
menus: _optionalChain([menuItem, 'optionalAccess', _148 => _148.items]) || [],
|
|
11694
11697
|
sx: {
|
|
11695
11698
|
minWidth: "240px",
|
|
11696
11699
|
backgroundColor: theme_default.palette.background.paper,
|
|
@@ -11807,7 +11810,7 @@ function Avatar(props) {
|
|
|
11807
11810
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11808
11811
|
_Avatar2.default,
|
|
11809
11812
|
{
|
|
11810
|
-
src: _optionalChain([user, 'optionalAccess',
|
|
11813
|
+
src: _optionalChain([user, 'optionalAccess', _149 => _149.avatarUrl]),
|
|
11811
11814
|
sx: { width: 64, height: 64, margin: "auto", mb: 2 },
|
|
11812
11815
|
...props
|
|
11813
11816
|
}
|
|
@@ -11904,7 +11907,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
11904
11907
|
const [zoom, setZoom] = _react.useState.call(void 0, 1);
|
|
11905
11908
|
const [croppedAreaPixels, setCroppedAreaPixels] = _react.useState.call(void 0, null);
|
|
11906
11909
|
const [open, setOpen] = _react.useState.call(void 0, false);
|
|
11907
|
-
const onCropComplete = _react.useCallback.call(void 0, (
|
|
11910
|
+
const onCropComplete = _react.useCallback.call(void 0, (_, croppedAreaPixels2) => {
|
|
11908
11911
|
setCroppedAreaPixels(croppedAreaPixels2);
|
|
11909
11912
|
}, []);
|
|
11910
11913
|
const handleSave = async () => {
|
|
@@ -11918,7 +11921,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
11918
11921
|
}
|
|
11919
11922
|
};
|
|
11920
11923
|
const handleFileChange = (event) => {
|
|
11921
|
-
const file = _optionalChain([event, 'access',
|
|
11924
|
+
const file = _optionalChain([event, 'access', _150 => _150.target, 'access', _151 => _151.files, 'optionalAccess', _152 => _152[0]]);
|
|
11922
11925
|
if (!file)
|
|
11923
11926
|
return;
|
|
11924
11927
|
const reader = new FileReader();
|
|
@@ -11985,7 +11988,7 @@ var AvatarUploader = ({ onSave, src }) => {
|
|
|
11985
11988
|
min: 1,
|
|
11986
11989
|
max: 3,
|
|
11987
11990
|
step: 0.1,
|
|
11988
|
-
onChange: (
|
|
11991
|
+
onChange: (_, value) => setZoom(value)
|
|
11989
11992
|
}
|
|
11990
11993
|
),
|
|
11991
11994
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ButtonContainer, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Button2.default, { variant: "contained", onClick: handleSave, children: "Salvar" }) })
|
|
@@ -12047,7 +12050,7 @@ function MinhaConta(props) {
|
|
|
12047
12050
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12048
12051
|
AvatarUploader_default,
|
|
12049
12052
|
{
|
|
12050
|
-
src: _optionalChain([data, 'optionalAccess',
|
|
12053
|
+
src: _optionalChain([data, 'optionalAccess', _153 => _153.avatarUrl]),
|
|
12051
12054
|
onSave: (croppedImage) => {
|
|
12052
12055
|
try {
|
|
12053
12056
|
uploadAvatar(croppedImage);
|
|
@@ -12073,7 +12076,7 @@ function MinhaConta(props) {
|
|
|
12073
12076
|
disabled: true,
|
|
12074
12077
|
fullWidth: true,
|
|
12075
12078
|
label: "E-mail",
|
|
12076
|
-
value: _optionalChain([data, 'optionalAccess',
|
|
12079
|
+
value: _optionalChain([data, 'optionalAccess', _154 => _154.email]) || ""
|
|
12077
12080
|
}
|
|
12078
12081
|
) }),
|
|
12079
12082
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Grid, { size: { xl: 4, lg: 4, md: 4, sm: 12, xs: 12 }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -12082,7 +12085,7 @@ function MinhaConta(props) {
|
|
|
12082
12085
|
name: "name",
|
|
12083
12086
|
fullWidth: true,
|
|
12084
12087
|
label: "Nome",
|
|
12085
|
-
value: _optionalChain([data, 'optionalAccess',
|
|
12088
|
+
value: _optionalChain([data, 'optionalAccess', _155 => _155.name]) || "",
|
|
12086
12089
|
onChange: handleChange,
|
|
12087
12090
|
...validationErrors("name")
|
|
12088
12091
|
}
|
|
@@ -12093,7 +12096,7 @@ function MinhaConta(props) {
|
|
|
12093
12096
|
name: "surname",
|
|
12094
12097
|
fullWidth: true,
|
|
12095
12098
|
label: "Sobrenome",
|
|
12096
|
-
value: _optionalChain([data, 'optionalAccess',
|
|
12099
|
+
value: _optionalChain([data, 'optionalAccess', _156 => _156.surname]) || "",
|
|
12097
12100
|
onChange: handleChange
|
|
12098
12101
|
}
|
|
12099
12102
|
) })
|
|
@@ -12117,6 +12120,7 @@ function MinhaConta(props) {
|
|
|
12117
12120
|
|
|
12118
12121
|
|
|
12119
12122
|
|
|
12123
|
+
var _Verified = require('@mui/icons-material/Verified'); var _Verified2 = _interopRequireDefault(_Verified);
|
|
12120
12124
|
|
|
12121
12125
|
|
|
12122
12126
|
|
|
@@ -12151,7 +12155,7 @@ function DialogVerificarWhastapp(props) {
|
|
|
12151
12155
|
setLoading(false);
|
|
12152
12156
|
}
|
|
12153
12157
|
}
|
|
12154
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Root, { open, onClose: (
|
|
12158
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Root, { open, onClose: (_) => onClose(), maxWidth: "xs", children: [
|
|
12155
12159
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Dialog_default.Header, { children: [
|
|
12156
12160
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog_default.Title, { children: "Verifica\xE7\xE3o do seu n\xFAmero de WhatsApp" }),
|
|
12157
12161
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Dialog_default.ActionClose, { onClose })
|
|
@@ -12175,7 +12179,7 @@ function DialogVerificarWhastapp(props) {
|
|
|
12175
12179
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _material.Typography, { variant: "body1", sx: { fontSize: "10pt" }, children: [
|
|
12176
12180
|
"Enviamos um c\xF3digo via WhatsApp para +55",
|
|
12177
12181
|
" ",
|
|
12178
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "b", { children: `(${_optionalChain([payload, 'optionalAccess',
|
|
12182
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "b", { children: `(${_optionalChain([payload, 'optionalAccess', _157 => _157.whatsappNumber, 'optionalAccess', _158 => _158.slice, 'call', _159 => _159(0, 2)])}) ${_optionalChain([payload, 'optionalAccess', _160 => _160.whatsappNumber, 'optionalAccess', _161 => _161.slice, 'call', _162 => _162(2, 7)])}-${_optionalChain([payload, 'optionalAccess', _163 => _163.whatsappNumber, 'optionalAccess', _164 => _164.slice, 'call', _165 => _165(7)])}` }),
|
|
12179
12183
|
". ",
|
|
12180
12184
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "br", {}),
|
|
12181
12185
|
"Digite o c\xF3digo abaixo para confirmar que este n\xFAmero \xE9 seu."
|
|
@@ -12210,7 +12214,6 @@ function DialogVerificarWhastapp(props) {
|
|
|
12210
12214
|
|
|
12211
12215
|
// src/Profile/LoginSeguranca.tsx
|
|
12212
12216
|
|
|
12213
|
-
|
|
12214
12217
|
var schema5 = create$3().shape({
|
|
12215
12218
|
whatsappNumber: create$6().required("Informe o n\xFAmero do whastapp").length(15)
|
|
12216
12219
|
});
|
|
@@ -12276,7 +12279,7 @@ function LoginSeguranca(props) {
|
|
|
12276
12279
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12277
12280
|
WhatsAppTextField,
|
|
12278
12281
|
{
|
|
12279
|
-
disabled: Boolean(_optionalChain([data, 'optionalAccess',
|
|
12282
|
+
disabled: Boolean(_optionalChain([data, 'optionalAccess', _166 => _166.whatsappVerifiedAt])),
|
|
12280
12283
|
fullWidth: false,
|
|
12281
12284
|
name: "whatsappNumber",
|
|
12282
12285
|
label: "Whastapp",
|
|
@@ -12294,7 +12297,7 @@ function LoginSeguranca(props) {
|
|
|
12294
12297
|
justifyContent: "center",
|
|
12295
12298
|
alignItems: "center",
|
|
12296
12299
|
children: [
|
|
12297
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12300
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _Verified2.default, { color: "success" }),
|
|
12298
12301
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _material.Typography, { variant: "body2", children: "N\xFAmero Verificado" })
|
|
12299
12302
|
]
|
|
12300
12303
|
}
|
|
@@ -12320,7 +12323,7 @@ function LoginSeguranca(props) {
|
|
|
12320
12323
|
DialogVerificarWhastapp,
|
|
12321
12324
|
{
|
|
12322
12325
|
open: isOpenVerificarWhastapp,
|
|
12323
|
-
onClose: async (
|
|
12326
|
+
onClose: async (_) => {
|
|
12324
12327
|
setOpenVerificarWhatsapp(false);
|
|
12325
12328
|
},
|
|
12326
12329
|
payload: usuario,
|
|
@@ -12350,7 +12353,7 @@ function Profile(props) {
|
|
|
12350
12353
|
{
|
|
12351
12354
|
orientation: "vertical",
|
|
12352
12355
|
value: tabValue,
|
|
12353
|
-
onChange: (
|
|
12356
|
+
onChange: (_, value) => {
|
|
12354
12357
|
setTabValue(value);
|
|
12355
12358
|
},
|
|
12356
12359
|
sx: {
|
|
@@ -12460,5 +12463,5 @@ var _CssBaseline = require('@mui/material/CssBaseline'); var _CssBaseline2 = _in
|
|
|
12460
12463
|
|
|
12461
12464
|
|
|
12462
12465
|
|
|
12463
|
-
exports.AlterarLicenca = AlterarLicenca; exports.AlterarSenha = AlterarSenha; exports.Autocomplete = Autocomplete; exports.Avatar = Avatar; exports.Breadcrumbs = Breadcrumbs; exports.Button = Button_default; exports.ButtonContainer = ButtonContainer; exports.ButtonGroup = ButtonGroup_default; exports.CEPTextField = CEPTextField; exports.Card = Card_default; exports.Checkbox = Checkbox; exports.ColorsGrid = ColorsGrid; exports.Content = Content2; exports.ContentTitle = ContentTitle_default; exports.CssBaseline = _CssBaseline2.default; exports.CurrencyCellStyle = CurrencyCellStyle; exports.CurrencyTextField = CurrencyTextField_default; exports.DataTable = DataTable_default; exports.DataTableOptions = DataTableOptions; exports.DatePicker = DatePicker; exports.DatePickerProvider = DatePickerProvider; exports.DateRangePicker = DateRangePicker; exports.Dialog = Dialog_default; exports.DocumentoTextField = DocumentoTextField; exports.DrawerMenu = DrawerMenu; exports.Editable = Editable; exports.Filter = Filter_default; exports.FilterApiContext = FilterApiContext; exports.FilterContainer = FilterContainer; exports.FilterControl = FilterControl; exports.FilterDataContext = FilterDataContext; exports.FilterProvider = FilterProvider; exports.Flag = Flag; exports.Header = Header_default; exports.Icon = Icon_default; exports.LabelValue = LabelValue; exports.List = List_default; exports.LucidIcon = LucidIcon_default; exports.Menu = Menu_default; exports.MioAuth = MioAuth; exports.NotaVersao = NotaVersao; exports.OptionStyles = OptionStyles; exports.Page = Page_default; exports.PageTitle = PageTitle; exports.PasswordTextField = PasswordTextField; exports.Popover = Popover_default; exports.Profile = Profile; exports.SearchTextField = SearchTextField; exports.Surface = Surface; exports.TelefoneTextField = TelefoneTextField; exports.TextField =
|
|
12466
|
+
exports.AlterarLicenca = AlterarLicenca; exports.AlterarSenha = AlterarSenha; exports.Autocomplete = Autocomplete; exports.Avatar = Avatar; exports.Breadcrumbs = Breadcrumbs; exports.Button = Button_default; exports.ButtonContainer = ButtonContainer; exports.ButtonGroup = ButtonGroup_default; exports.CEPTextField = CEPTextField; exports.Card = Card_default; exports.Checkbox = Checkbox; exports.ColorsGrid = ColorsGrid; exports.Content = Content2; exports.ContentTitle = ContentTitle_default; exports.CssBaseline = _CssBaseline2.default; exports.CurrencyCellStyle = CurrencyCellStyle; exports.CurrencyTextField = CurrencyTextField_default; exports.DataTable = DataTable_default; exports.DataTableOptions = DataTableOptions; exports.DatePicker = DatePicker; exports.DatePickerProvider = DatePickerProvider; exports.DateRangePicker = DateRangePicker; exports.Dialog = Dialog_default; exports.DocumentoTextField = DocumentoTextField; exports.DrawerMenu = DrawerMenu; exports.Editable = Editable; exports.Filter = Filter_default; exports.FilterApiContext = FilterApiContext; exports.FilterContainer = FilterContainer; exports.FilterControl = FilterControl; exports.FilterDataContext = FilterDataContext; exports.FilterProvider = FilterProvider; exports.Flag = Flag; exports.Header = Header_default; exports.Icon = Icon_default; exports.LabelValue = LabelValue; exports.List = List_default; exports.LucidIcon = LucidIcon_default; exports.Menu = Menu_default; exports.MioAuth = MioAuth; exports.NotaVersao = NotaVersao; exports.OptionStyles = OptionStyles; exports.Page = Page_default; exports.PageTitle = PageTitle; exports.PasswordTextField = PasswordTextField; exports.Popover = Popover_default; exports.Profile = Profile; exports.SearchTextField = SearchTextField; exports.Surface = Surface; exports.TelefoneTextField = TelefoneTextField; exports.TextField = TextField12; exports.ThemeProvider = _styles.ThemeProvider; exports.Title = Title4; exports.Tooltip = Tooltip_default; exports.Transporter = Transporter_default; exports.createTheme = _styles.createTheme; exports.renderMenuItems = renderMenuItems; exports.styled = _styles.styled; exports.theme = theme_default; exports.useDialogs = _core.useDialogs; exports.useFilter = useFilter; exports.useFilterApi = useFilterApi3; exports.useMenu = useMenu; exports.useTheme = _styles.useTheme; exports.useTransporter = useTransporter;
|
|
12464
12467
|
//# sourceMappingURL=index.js.map
|