@zydon/common 1.3.39 → 1.3.40
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwapList/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAQ,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,QAAQ,sKAaX,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SwapList/index.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAQ,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,QAAQ,sKAaX,aAAa,4CA2Qf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as rt, f as C, n as B, r as mn, c as gn, i as tt, d as Ts, a as yn, v as Vs, w as ie, b as yt, e as K, g as R, t as Pt, h as et, j as Ss, k as bs, l as k, m as nt, o as vn, q as xt, s as vt, u as As, x as Ds, y as Cs, z as at, A as Ms, B as Pn, C as Kt, D as xn, E as Tn, F as w, G as zt, H as dt, P as ws, I as Ls, L as Rs, S as Bs, J as Vn, K as Sn, M as bn, N as Et, O as jt, Q as ye, R as Ht, T as Fs, U as An, V as Dn, W as Es, X as js, Y as Cn, Z as Mn, _ as ks, $ as Is, a0 as Os, a1 as Us, a2 as Ns, a3 as Gs, a4 as $s, a5 as Ks, a6 as zs, a7 as Hs } from "./index-
|
|
1
|
+
import { p as rt, f as C, n as B, r as mn, c as gn, i as tt, d as Ts, a as yn, v as Vs, w as ie, b as yt, e as K, g as R, t as Pt, h as et, j as Ss, k as bs, l as k, m as nt, o as vn, q as xt, s as vt, u as As, x as Ds, y as Cs, z as at, A as Ms, B as Pn, C as Kt, D as xn, E as Tn, F as w, G as zt, H as dt, P as ws, I as Ls, L as Rs, S as Bs, J as Vn, K as Sn, M as bn, N as Et, O as jt, Q as ye, R as Ht, T as Fs, U as An, V as Dn, W as Es, X as js, Y as Cn, Z as Mn, _ as ks, $ as Is, a0 as Os, a1 as Us, a2 as Ns, a3 as Gs, a4 as $s, a5 as Ks, a6 as zs, a7 as Hs } from "./index-c6b6d6b2.js";
|
|
2
2
|
import wn, { useContext as _t, useId as _s, useEffect as Ws } from "react";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "@emotion/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as O from "react";
|
|
2
2
|
import o, { memo as D_t, createContext as eT, useLayoutEffect as oht, useEffect as vt, useContext as Hn, useRef as Fe, useInsertionEffect as vzn, useCallback as qe, useMemo as Qt, forwardRef as Vt, createElement as L8, useState as Qe, useId as Cpt, cloneElement as Jue, Children as mzn, isValidElement as HN, Component as Mce, PureComponent as Lce, Suspense as ZKr, useReducer as UKr, useImperativeHandle as qKr, Fragment as GKr } from "react";
|
|
3
|
-
import { Box as et, Dialog as W_t, Paper as hzn, Fab as YKr, IconButton as sn, SvgIcon as dn, Stack as
|
|
3
|
+
import { Box as et, Dialog as W_t, Paper as hzn, Fab as YKr, IconButton as sn, SvgIcon as dn, Stack as X, Typography as We, TableRow as uht, TableCell as sce, Skeleton as Czn, TableHead as KKr, Checkbox as IO, TableSortLabel as XKr, TablePagination as QKr, FormControlLabel as B_t, Switch as bzn, useTheme as yzn, useMediaQuery as JKr, ListSubheader as eXr, styled as De, Popper as tXr, autocompleteClasses as nXr, Autocomplete as pzn, TextField as NO, CircularProgress as __t, Button as Lr, alpha as Rn, InputAdornment as FN, Popover as Ozn, GlobalStyles as rXr, CssBaseline as jzn, DialogTitle as wzn, DialogContent as Mzn, DialogActions as Lzn, Avatar as YSn, Badge as Pzn, AvatarGroup as aXr, LinearProgress as Ezn, Drawer as iXr, StepConnector as oXr, Stepper as uXr, Step as cXr, StepLabel as lXr, Tab as fXr, Tabs as sXr, Tooltip as dXr, FormHelperText as TO, Slider as gXr, MenuItem as _Xr, Divider as Zue, FormControl as $zn, FormLabel as kzn, FormGroup as vXr, RadioGroup as mXr, Radio as hXr, debounce as CXr } from "@mui/material";
|
|
4
4
|
import { CacheProvider as bXr, Global as yXr, ThemeContext as Szn, keyframes as bpt } from "@emotion/react";
|
|
5
5
|
import { createPortal as gmt } from "react-dom";
|
|
6
6
|
import pXr from "@emotion/styled";
|
|
@@ -322,7 +322,7 @@ function VXr() {
|
|
|
322
322
|
var T = B.prototype;
|
|
323
323
|
return !!(T && T.isReactComponent);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Q(B, T, ie) {
|
|
326
326
|
if (B == null)
|
|
327
327
|
return "";
|
|
328
328
|
if (typeof B == "function")
|
|
@@ -340,11 +340,11 @@ function VXr() {
|
|
|
340
340
|
case f:
|
|
341
341
|
return ct(B.render);
|
|
342
342
|
case _:
|
|
343
|
-
return
|
|
343
|
+
return Q(B.type, T, ie);
|
|
344
344
|
case v: {
|
|
345
345
|
var Ee = B, Je = Ee._payload, gt = Ee._init;
|
|
346
346
|
try {
|
|
347
|
-
return
|
|
347
|
+
return Q(gt(Je), T, ie);
|
|
348
348
|
} catch {
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -354,7 +354,7 @@ function VXr() {
|
|
|
354
354
|
var fe = Object.prototype.hasOwnProperty, pe = {}, U = p.ReactDebugCurrentFrame;
|
|
355
355
|
function ye(B) {
|
|
356
356
|
if (B) {
|
|
357
|
-
var T = B._owner, ie =
|
|
357
|
+
var T = B._owner, ie = Q(B.type, B._source, T ? T.type : null);
|
|
358
358
|
U.setExtraStackFrame(ie);
|
|
359
359
|
} else
|
|
360
360
|
U.setExtraStackFrame(null);
|
|
@@ -503,7 +503,7 @@ function VXr() {
|
|
|
503
503
|
var XO = p.ReactCurrentOwner, svt = p.ReactDebugCurrentFrame;
|
|
504
504
|
function B8(B) {
|
|
505
505
|
if (B) {
|
|
506
|
-
var T = B._owner, ie =
|
|
506
|
+
var T = B._owner, ie = Q(B.type, B._source, T ? T.type : null);
|
|
507
507
|
svt.setExtraStackFrame(ie);
|
|
508
508
|
} else
|
|
509
509
|
svt.setExtraStackFrame(null);
|
|
@@ -793,14 +793,14 @@ function NXr() {
|
|
|
793
793
|
case _:
|
|
794
794
|
return ue;
|
|
795
795
|
default:
|
|
796
|
-
var
|
|
797
|
-
switch (
|
|
796
|
+
var Q = ue && ue.$$typeof;
|
|
797
|
+
switch (Q) {
|
|
798
798
|
case l:
|
|
799
799
|
case d:
|
|
800
800
|
case C:
|
|
801
801
|
case m:
|
|
802
802
|
case c:
|
|
803
|
-
return
|
|
803
|
+
return Q;
|
|
804
804
|
default:
|
|
805
805
|
return ct;
|
|
806
806
|
}
|
|
@@ -2184,8 +2184,8 @@ function zQr() {
|
|
|
2184
2184
|
}
|
|
2185
2185
|
function w(ue) {
|
|
2186
2186
|
if (typeof ue == "object" && ue !== null) {
|
|
2187
|
-
var
|
|
2188
|
-
switch (
|
|
2187
|
+
var Q = ue.$$typeof;
|
|
2188
|
+
switch (Q) {
|
|
2189
2189
|
case e:
|
|
2190
2190
|
var fe = ue.type;
|
|
2191
2191
|
switch (fe) {
|
|
@@ -2206,11 +2206,11 @@ function zQr() {
|
|
|
2206
2206
|
case u:
|
|
2207
2207
|
return pe;
|
|
2208
2208
|
default:
|
|
2209
|
-
return
|
|
2209
|
+
return Q;
|
|
2210
2210
|
}
|
|
2211
2211
|
}
|
|
2212
2212
|
case t:
|
|
2213
|
-
return
|
|
2213
|
+
return Q;
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
}
|
|
@@ -7751,7 +7751,7 @@ const ulu = ({
|
|
|
7751
7751
|
...a,
|
|
7752
7752
|
children: n
|
|
7753
7753
|
}
|
|
7754
|
-
), xr1 = () => import("./features-
|
|
7754
|
+
), xr1 = () => import("./features-c808a88a.js").then((e) => e.default), KHn = ({ children: e }) => /* @__PURE__ */ g.jsx(Kn1, { strict: !0, features: xr1, children: /* @__PURE__ */ g.jsxs(An.div, { style: { height: "100%" }, children: [
|
|
7755
7755
|
" ",
|
|
7756
7756
|
e,
|
|
7757
7757
|
" "
|
|
@@ -9423,7 +9423,7 @@ const I11 = Ece("MuiButtonBase", ["root", "disabled", "focusVisible"]), x11 = I1
|
|
|
9423
9423
|
}
|
|
9424
9424
|
const ve = te("start", j), Ne = te("stop", b), Z = te("stop", p), ct = te("stop", D), ue = te("stop", (Oe) => {
|
|
9425
9425
|
J && Oe.preventDefault(), E && E(Oe);
|
|
9426
|
-
}),
|
|
9426
|
+
}), Q = te("start", z), fe = te("stop", $), pe = te("stop", k), U = te("stop", (Oe) => {
|
|
9427
9427
|
G(Oe), A.current === !1 && se(!1), C && C(Oe);
|
|
9428
9428
|
}, !1), ye = pvt((Oe) => {
|
|
9429
9429
|
V.current || (V.current = Oe.currentTarget), F(Oe), A.current === !0 && (se(!0), L && L(Oe)), y && y(Oe);
|
|
@@ -9474,7 +9474,7 @@ const I11 = Ece("MuiButtonBase", ["root", "disabled", "focusVisible"]), x11 = I1
|
|
|
9474
9474
|
onDragLeave: Z,
|
|
9475
9475
|
onTouchEnd: fe,
|
|
9476
9476
|
onTouchMove: pe,
|
|
9477
|
-
onTouchStart:
|
|
9477
|
+
onTouchStart: Q,
|
|
9478
9478
|
ref: at,
|
|
9479
9479
|
tabIndex: s ? -1 : R,
|
|
9480
9480
|
type: N
|
|
@@ -230442,9 +230442,9 @@ dkn.default = hE2;
|
|
|
230442
230442
|
Object.defineProperty(e, "AiChat01Icon", { enumerable: !0, get: function() {
|
|
230443
230443
|
return t(ue).default;
|
|
230444
230444
|
} });
|
|
230445
|
-
var
|
|
230445
|
+
var Q = NOt;
|
|
230446
230446
|
Object.defineProperty(e, "AiChat02Icon", { enumerable: !0, get: function() {
|
|
230447
|
-
return t(
|
|
230447
|
+
return t(Q).default;
|
|
230448
230448
|
} });
|
|
230449
230449
|
var fe = TOt;
|
|
230450
230450
|
Object.defineProperty(e, "AiCloud01Icon", { enumerable: !0, get: function() {
|
|
@@ -249708,7 +249708,7 @@ const Zk2 = () => /* @__PURE__ */ g.jsxs(
|
|
|
249708
249708
|
sx: a,
|
|
249709
249709
|
...r
|
|
249710
249710
|
}) => /* @__PURE__ */ g.jsxs(
|
|
249711
|
-
|
|
249711
|
+
X,
|
|
249712
249712
|
{
|
|
249713
249713
|
alignItems: "center",
|
|
249714
249714
|
justifyContent: "center",
|
|
@@ -249811,7 +249811,7 @@ const Zk2 = () => /* @__PURE__ */ g.jsxs(
|
|
|
249811
249811
|
sx: u,
|
|
249812
249812
|
...c
|
|
249813
249813
|
}) => a ? /* @__PURE__ */ g.jsxs(
|
|
249814
|
-
|
|
249814
|
+
X,
|
|
249815
249815
|
{
|
|
249816
249816
|
direction: "row",
|
|
249817
249817
|
alignItems: "center",
|
|
@@ -250565,10 +250565,10 @@ function jS2({ children: e, ...t }) {
|
|
|
250565
250565
|
(U) => te(U, !0)
|
|
250566
250566
|
];
|
|
250567
250567
|
yS2(...ct, se, de, ...ue), OS2(m, ...ct);
|
|
250568
|
-
const
|
|
250568
|
+
const Q = Ue(() => {
|
|
250569
250569
|
u.focus && document.querySelector(`.${je(hkn)} .${je(NWn())}`) && V();
|
|
250570
250570
|
});
|
|
250571
|
-
O.useEffect(
|
|
250571
|
+
O.useEffect(Q, [Q]);
|
|
250572
250572
|
const fe = Ue(() => {
|
|
250573
250573
|
var U;
|
|
250574
250574
|
(U = c.view) === null || U === void 0 || U.call(c, { index: _.currentIndex });
|
|
@@ -252193,7 +252193,7 @@ const qRn = 8, eW2 = (e) => {
|
|
|
252193
252193
|
paddingTop: 8
|
|
252194
252194
|
};
|
|
252195
252195
|
return Object.prototype.hasOwnProperty.call(r, "group") ? /* @__PURE__ */ g.jsx(eXr, { component: "div", style: l, children: r.group }, r.key) : /* @__PURE__ */ g.jsx(We, { component: "li", ...c, noWrap: !0, style: l, children: /* @__PURE__ */ g.jsxs(
|
|
252196
|
-
|
|
252196
|
+
X,
|
|
252197
252197
|
{
|
|
252198
252198
|
component: "div",
|
|
252199
252199
|
direction: "row",
|
|
@@ -252355,7 +252355,7 @@ const XRn = ({ link: e, ...t }) => {
|
|
|
252355
252355
|
children: "Ajuda"
|
|
252356
252356
|
}
|
|
252357
252357
|
);
|
|
252358
|
-
}, aW2 = 60, iW2 = De(
|
|
252358
|
+
}, aW2 = 60, iW2 = De(X)(({ theme: e }) => ({
|
|
252359
252359
|
position: "sticky",
|
|
252360
252360
|
width: "100%",
|
|
252361
252361
|
minHeight: aW2,
|
|
@@ -252373,7 +252373,7 @@ const XRn = ({ link: e, ...t }) => {
|
|
|
252373
252373
|
height: 24,
|
|
252374
252374
|
color: e.palette.primary.main
|
|
252375
252375
|
}
|
|
252376
|
-
})), QRn = De(
|
|
252376
|
+
})), QRn = De(X)({
|
|
252377
252377
|
flex: 1,
|
|
252378
252378
|
background: `linear-gradient(90deg, var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
|
|
252379
252379
|
linear-gradient(var(--dot-bg) calc(var(--dot-space) - var(--dot-size)), transparent 1%) center / var(--dot-space) var(--dot-space),
|
|
@@ -252395,7 +252395,7 @@ const Llu = ({
|
|
|
252395
252395
|
}) => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
252396
252396
|
/* @__PURE__ */ g.jsxs(iW2, { children: [
|
|
252397
252397
|
t,
|
|
252398
|
-
/* @__PURE__ */ g.jsxs(
|
|
252398
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", alignItems: "center", gap: 2, children: [
|
|
252399
252399
|
/* @__PURE__ */ g.jsx(XRn, { link: n, children: "Ajuda" }),
|
|
252400
252400
|
a
|
|
252401
252401
|
] })
|
|
@@ -253132,7 +253132,7 @@ const Ilu = (e, t, n = "mousedown") => {
|
|
|
253132
253132
|
} catch {
|
|
253133
253133
|
return t;
|
|
253134
253134
|
}
|
|
253135
|
-
}, bA2 = De(
|
|
253135
|
+
}, bA2 = De(X, {
|
|
253136
253136
|
shouldForwardProp: (e) => e !== "open"
|
|
253137
253137
|
})(({ theme: e, open: t }) => ({
|
|
253138
253138
|
position: "relative",
|
|
@@ -253156,7 +253156,7 @@ const Ilu = (e, t, n = "mousedown") => {
|
|
|
253156
253156
|
}
|
|
253157
253157
|
}
|
|
253158
253158
|
}
|
|
253159
|
-
})), yA2 = De(
|
|
253159
|
+
})), yA2 = De(X)({
|
|
253160
253160
|
position: "sticky",
|
|
253161
253161
|
zIndex: 1,
|
|
253162
253162
|
flex: 1
|
|
@@ -263146,8 +263146,8 @@ function DFn(e, t, n, a) {
|
|
|
263146
263146
|
if (Ne) {
|
|
263147
263147
|
var Z = Ne.incompatibleTokens;
|
|
263148
263148
|
if (Array.isArray(Z)) {
|
|
263149
|
-
var ct = N.find(function(
|
|
263150
|
-
return Z.includes(
|
|
263149
|
+
var ct = N.find(function(Q) {
|
|
263150
|
+
return Z.includes(Q.token) || Q.token === ve;
|
|
263151
263151
|
});
|
|
263152
263152
|
if (ct)
|
|
263153
263153
|
throw new RangeError("The format string mustn't contain `".concat(ct.fullToken, "` and `").concat(te, "` at the same time"));
|
|
@@ -267301,7 +267301,7 @@ const kSn = ({ sx: e }) => /* @__PURE__ */ g.jsx(
|
|
|
267301
267301
|
padding: "16px 0"
|
|
267302
267302
|
},
|
|
267303
267303
|
children: /* @__PURE__ */ g.jsxs(
|
|
267304
|
-
|
|
267304
|
+
X,
|
|
267305
267305
|
{
|
|
267306
267306
|
direction: { xs: "column", md: "row" },
|
|
267307
267307
|
justifyContent: "space-between",
|
|
@@ -267309,13 +267309,13 @@ const kSn = ({ sx: e }) => /* @__PURE__ */ g.jsx(
|
|
|
267309
267309
|
width: 1,
|
|
267310
267310
|
gap: 2,
|
|
267311
267311
|
children: [
|
|
267312
|
-
/* @__PURE__ */ g.jsxs(
|
|
267312
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", flexWrap: "wrap", alignItems: "center", children: [
|
|
267313
267313
|
/* @__PURE__ */ g.jsx(wXr, {}),
|
|
267314
267314
|
/* @__PURE__ */ g.jsx(MXr, {}),
|
|
267315
267315
|
/* @__PURE__ */ g.jsx(LXr, {}),
|
|
267316
267316
|
!t && /* @__PURE__ */ g.jsx(PXr, {})
|
|
267317
267317
|
] }),
|
|
267318
|
-
/* @__PURE__ */ g.jsx(
|
|
267318
|
+
/* @__PURE__ */ g.jsx(X, { direction: "row", flexWrap: "wrap", children: e })
|
|
267319
267319
|
]
|
|
267320
267320
|
}
|
|
267321
267321
|
)
|
|
@@ -267351,7 +267351,7 @@ const kSn = ({ sx: e }) => /* @__PURE__ */ g.jsx(
|
|
|
267351
267351
|
return v;
|
|
267352
267352
|
}, [r, f]);
|
|
267353
267353
|
return /* @__PURE__ */ g.jsx(
|
|
267354
|
-
|
|
267354
|
+
X,
|
|
267355
267355
|
{
|
|
267356
267356
|
display: "grid",
|
|
267357
267357
|
sx: {
|
|
@@ -267366,7 +267366,7 @@ const kSn = ({ sx: e }) => /* @__PURE__ */ g.jsx(
|
|
|
267366
267366
|
}
|
|
267367
267367
|
);
|
|
267368
267368
|
}, Uyt = ({ text: e, sx: t }) => /* @__PURE__ */ g.jsxs(
|
|
267369
|
-
|
|
267369
|
+
X,
|
|
267370
267370
|
{
|
|
267371
267371
|
alignItems: "center",
|
|
267372
267372
|
justifyContent: "center",
|
|
@@ -267426,7 +267426,7 @@ const kSn = ({ sx: e }) => /* @__PURE__ */ g.jsx(
|
|
|
267426
267426
|
], C = qe((h) => ({
|
|
267427
267427
|
bottom: h.isLastVisible ? 0 : 8
|
|
267428
267428
|
}), []);
|
|
267429
|
-
return /* @__PURE__ */ g.jsxs(
|
|
267429
|
+
return /* @__PURE__ */ g.jsxs(X, { position: "relative", borderRadius: 2, overflow: "hidden", children: [
|
|
267430
267430
|
a && /* @__PURE__ */ g.jsx(kSn, { sx: { zIndex: 1 } }),
|
|
267431
267431
|
/* @__PURE__ */ g.jsx(
|
|
267432
267432
|
DXr,
|
|
@@ -267959,12 +267959,12 @@ const K1u = Ht("div")(() => ({
|
|
|
267959
267959
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
267960
267960
|
a
|
|
267961
267961
|
) ? /* @__PURE__ */ g.jsx(et, { sx: { overflowX: "auto", ...t }, ...n, children: e }) : /* @__PURE__ */ g.jsx(K1u, { children: /* @__PURE__ */ g.jsx(X1u, { clickOnTrack: !1, sx: t, ...n, children: e }) });
|
|
267962
|
-
}, Kmt = D_t(Q1u), J1u = De(
|
|
267962
|
+
}, Kmt = D_t(Q1u), J1u = De(X)(({ theme: e }) => ({
|
|
267963
267963
|
flexDirection: "row",
|
|
267964
267964
|
justifyContent: "space-between",
|
|
267965
267965
|
borderBottom: `1px solid ${e.palette.grey[300]}`,
|
|
267966
267966
|
padding: "22px 20px"
|
|
267967
|
-
})), eau = De(
|
|
267967
|
+
})), eau = De(X)({
|
|
267968
267968
|
padding: 32
|
|
267969
267969
|
}), Zlu = ({
|
|
267970
267970
|
headerTitle: e,
|
|
@@ -267985,7 +267985,7 @@ const K1u = Ht("div")(() => ({
|
|
|
267985
267985
|
...c,
|
|
267986
267986
|
children: [
|
|
267987
267987
|
/* @__PURE__ */ g.jsxs(J1u, { children: [
|
|
267988
|
-
/* @__PURE__ */ g.jsxs(
|
|
267988
|
+
/* @__PURE__ */ g.jsxs(X, { flexDirection: "row", alignItems: "center", children: [
|
|
267989
267989
|
/* @__PURE__ */ g.jsx(sn, { onClick: t, children: /* @__PURE__ */ g.jsx(Le, { icon: "CLOSE_MARK_BUTTON" }) }),
|
|
267990
267990
|
/* @__PURE__ */ g.jsx(We, { variant: "subtitle1", children: e })
|
|
267991
267991
|
] }),
|
|
@@ -268123,7 +268123,7 @@ const K1u = Ht("div")(() => ({
|
|
|
268123
268123
|
onClickButton: n,
|
|
268124
268124
|
textButton: a = "Atualizar"
|
|
268125
268125
|
}) => /* @__PURE__ */ g.jsxs(
|
|
268126
|
-
|
|
268126
|
+
X,
|
|
268127
268127
|
{
|
|
268128
268128
|
height: 1,
|
|
268129
268129
|
width: 1,
|
|
@@ -268133,7 +268133,7 @@ const K1u = Ht("div")(() => ({
|
|
|
268133
268133
|
gap: 3,
|
|
268134
268134
|
children: [
|
|
268135
268135
|
/* @__PURE__ */ g.jsx(tau, {}),
|
|
268136
|
-
/* @__PURE__ */ g.jsxs(
|
|
268136
|
+
/* @__PURE__ */ g.jsxs(X, { children: [
|
|
268137
268137
|
/* @__PURE__ */ g.jsx(We, { variant: "h5", color: "grey.600", children: e }),
|
|
268138
268138
|
/* @__PURE__ */ g.jsx(We, { variant: "body1", color: "grey.600", children: t })
|
|
268139
268139
|
] }),
|
|
@@ -270833,7 +270833,7 @@ var Yiu = ["aspectRatio", "autoCrop", "autoCropArea", "background", "center", "c
|
|
|
270833
270833
|
}(DN(DN({}, y), { crossOrigin: f, src: u, alt: h }));
|
|
270834
270834
|
return o.createElement("div", { style: c, className: l }, o.createElement("img", DN({}, w, { style: Kiu, ref: P })));
|
|
270835
270835
|
});
|
|
270836
|
-
const Qiu = De(
|
|
270836
|
+
const Qiu = De(X)(({ theme: e }) => ({
|
|
270837
270837
|
"& .cropper-view-box": {
|
|
270838
270838
|
outline: `1px solid ${e.palette.primary.main}`,
|
|
270839
270839
|
outlineColor: Rn(e.palette.primary.main, 0.75)
|
|
@@ -271601,8 +271601,8 @@ function pou(e) {
|
|
|
271601
271601
|
y === void 0 && (y = Cou);
|
|
271602
271602
|
var L = e.isValidInputCharacter;
|
|
271603
271603
|
L === void 0 && (L = k_t);
|
|
271604
|
-
var P = e.isCharacterSame, w = FNn(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), j = GNn(p, f, !!s, c, l, d), E = j[0], D = E.formattedValue, $ = E.numAsString, k = j[1], z = Fe({ formattedValue: D, numAsString: $ }), R = function(
|
|
271605
|
-
z.current = { formattedValue:
|
|
271604
|
+
var P = e.isCharacterSame, w = FNn(e, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), j = GNn(p, f, !!s, c, l, d), E = j[0], D = E.formattedValue, $ = E.numAsString, k = j[1], z = Fe({ formattedValue: D, numAsString: $ }), R = function(Q, fe) {
|
|
271605
|
+
z.current = { formattedValue: Q.formattedValue, numAsString: Q.value }, k(Q, fe);
|
|
271606
271606
|
}, S = Qe(!1), H = S[0], N = S[1], x = Fe(null), V = Fe({
|
|
271607
271607
|
setCaretTimeout: null,
|
|
271608
271608
|
focusTimeout: null
|
|
@@ -271612,31 +271612,31 @@ function pou(e) {
|
|
|
271612
271612
|
clearTimeout(V.current.setCaretTimeout), clearTimeout(V.current.focusTimeout);
|
|
271613
271613
|
};
|
|
271614
271614
|
}, []);
|
|
271615
|
-
var K = c, ee = function(
|
|
271615
|
+
var K = c, ee = function(Q, fe) {
|
|
271616
271616
|
var pe = parseFloat(fe);
|
|
271617
271617
|
return {
|
|
271618
|
-
formattedValue:
|
|
271618
|
+
formattedValue: Q,
|
|
271619
271619
|
value: fe,
|
|
271620
271620
|
floatValue: isNaN(pe) ? void 0 : pe
|
|
271621
271621
|
};
|
|
271622
|
-
}, A = function(
|
|
271623
|
-
|
|
271624
|
-
|
|
271622
|
+
}, A = function(Q, fe, pe) {
|
|
271623
|
+
Q.selectionStart === 0 && Q.selectionEnd === Q.value.length || (WN(Q, fe), V.current.setCaretTimeout = setTimeout(function() {
|
|
271624
|
+
Q.value === pe && Q.selectionStart !== Q.selectionEnd && WN(Q, fe);
|
|
271625
271625
|
}, 0));
|
|
271626
|
-
}, F = function(
|
|
271627
|
-
return Uxn(
|
|
271628
|
-
}, G = function(
|
|
271629
|
-
var U = y(fe), ye = hou(fe, D,
|
|
271626
|
+
}, F = function(Q, fe, pe) {
|
|
271627
|
+
return Uxn(Q, fe, y(Q), pe);
|
|
271628
|
+
}, G = function(Q, fe, pe) {
|
|
271629
|
+
var U = y(fe), ye = hou(fe, D, Q, pe, U, L, P);
|
|
271630
271630
|
return ye = Uxn(fe, ye, U), ye;
|
|
271631
|
-
}, oe = function(
|
|
271632
|
-
var fe =
|
|
271631
|
+
}, oe = function(Q) {
|
|
271632
|
+
var fe = Q.formattedValue;
|
|
271633
271633
|
fe === void 0 && (fe = "");
|
|
271634
|
-
var pe =
|
|
271634
|
+
var pe = Q.input, U = Q.setCaretPosition;
|
|
271635
271635
|
U === void 0 && (U = !0);
|
|
271636
|
-
var ye =
|
|
271636
|
+
var ye = Q.source, Me = Q.event, Ie = Q.numAsString, xe = Q.caretPos;
|
|
271637
271637
|
if (pe) {
|
|
271638
271638
|
if (xe === void 0 && U) {
|
|
271639
|
-
var Ut =
|
|
271639
|
+
var Ut = Q.inputValue || pe.value, Y = Bbt(pe);
|
|
271640
271640
|
pe.value = fe, xe = G(Ut, fe, Y);
|
|
271641
271641
|
}
|
|
271642
271642
|
pe.value = fe, U && xe !== void 0 && A(pe, xe, fe);
|
|
@@ -271644,7 +271644,7 @@ function pou(e) {
|
|
|
271644
271644
|
fe !== D && R(ee(fe, Ie), { event: Me, source: ye });
|
|
271645
271645
|
};
|
|
271646
271646
|
vt(function() {
|
|
271647
|
-
var
|
|
271647
|
+
var Q = z.current, fe = Q.formattedValue, pe = Q.numAsString;
|
|
271648
271648
|
D !== fe && (D !== $ || fe !== pe) && R(ee(D, $), {
|
|
271649
271649
|
event: void 0,
|
|
271650
271650
|
source: $_t.props
|
|
@@ -271652,63 +271652,63 @@ function pou(e) {
|
|
|
271652
271652
|
}, [D, $]);
|
|
271653
271653
|
var J = x.current ? Bbt(x.current) : void 0, se = typeof window < "u" ? oht : vt;
|
|
271654
271654
|
se(function() {
|
|
271655
|
-
var
|
|
271656
|
-
if (D !== z.current.formattedValue &&
|
|
271655
|
+
var Q = x.current;
|
|
271656
|
+
if (D !== z.current.formattedValue && Q) {
|
|
271657
271657
|
var fe = G(z.current.formattedValue, D, J);
|
|
271658
|
-
|
|
271658
|
+
Q.value = D, A(Q, fe, D);
|
|
271659
271659
|
}
|
|
271660
271660
|
}, [D]);
|
|
271661
|
-
var de = function(
|
|
271662
|
-
var U = qNn(D,
|
|
271661
|
+
var de = function(Q, fe, pe) {
|
|
271662
|
+
var U = qNn(D, Q), ye = Object.assign(Object.assign({}, U), { lastValue: D }), Me = l(Q, ye), Ie = K(Me);
|
|
271663
271663
|
if (Me = l(Ie, void 0), _ && !_(ee(Ie, Me))) {
|
|
271664
|
-
var xe = fe.target, Ut = Bbt(xe), Y = G(
|
|
271664
|
+
var xe = fe.target, Ut = Bbt(xe), Y = G(Q, D, Ut);
|
|
271665
271665
|
return xe.value = D, A(xe, Y, D), !1;
|
|
271666
271666
|
}
|
|
271667
271667
|
return oe({
|
|
271668
271668
|
formattedValue: Ie,
|
|
271669
271669
|
numAsString: Me,
|
|
271670
|
-
inputValue:
|
|
271670
|
+
inputValue: Q,
|
|
271671
271671
|
event: fe,
|
|
271672
271672
|
source: pe,
|
|
271673
271673
|
setCaretPosition: !0,
|
|
271674
271674
|
input: fe.target
|
|
271675
271675
|
}), !0;
|
|
271676
|
-
}, Ce = function(
|
|
271677
|
-
var fe =
|
|
271678
|
-
U && v(
|
|
271679
|
-
}, ce = function(
|
|
271680
|
-
var fe =
|
|
271676
|
+
}, Ce = function(Q) {
|
|
271677
|
+
var fe = Q.target, pe = fe.value, U = de(pe, Q, $_t.event);
|
|
271678
|
+
U && v(Q);
|
|
271679
|
+
}, ce = function(Q) {
|
|
271680
|
+
var fe = Q.target, pe = Q.key, U = fe.selectionStart, ye = fe.selectionEnd, Me = fe.value;
|
|
271681
271681
|
Me === void 0 && (Me = "");
|
|
271682
271682
|
var Ie;
|
|
271683
271683
|
if (pe === "ArrowLeft" || pe === "Backspace" ? Ie = Math.max(U - 1, 0) : pe === "ArrowRight" ? Ie = Math.min(U + 1, Me.length) : pe === "Delete" && (Ie = U), Ie === void 0 || U !== ye) {
|
|
271684
|
-
m(
|
|
271684
|
+
m(Q);
|
|
271685
271685
|
return;
|
|
271686
271686
|
}
|
|
271687
271687
|
var xe = Ie;
|
|
271688
271688
|
if (pe === "ArrowLeft" || pe === "ArrowRight") {
|
|
271689
271689
|
var Ut = pe === "ArrowLeft" ? "left" : "right";
|
|
271690
|
-
xe = F(Me, Ie, Ut), xe !== Ie &&
|
|
271690
|
+
xe = F(Me, Ie, Ut), xe !== Ie && Q.preventDefault();
|
|
271691
271691
|
} else
|
|
271692
271692
|
pe === "Delete" && !L(Me[Ie]) ? xe = F(Me, Ie, "right") : pe === "Backspace" && !L(Me[Ie]) && (xe = F(Me, Ie, "left"));
|
|
271693
|
-
xe !== Ie && A(fe, xe, Me),
|
|
271694
|
-
}, te = function(
|
|
271695
|
-
var fe =
|
|
271693
|
+
xe !== Ie && A(fe, xe, Me), Q.isUnitTestRun && A(fe, xe, Me), m(Q);
|
|
271694
|
+
}, te = function(Q) {
|
|
271695
|
+
var fe = Q.target, pe = fe.selectionStart, U = fe.selectionEnd, ye = fe.value;
|
|
271696
271696
|
if (ye === void 0 && (ye = ""), pe === U) {
|
|
271697
271697
|
var Me = F(ye, pe);
|
|
271698
271698
|
Me !== pe && A(fe, Me, ye);
|
|
271699
271699
|
}
|
|
271700
|
-
C(
|
|
271701
|
-
}, ve = function(
|
|
271702
|
-
|
|
271703
|
-
var fe =
|
|
271700
|
+
C(Q);
|
|
271701
|
+
}, ve = function(Q) {
|
|
271702
|
+
Q.persist && Q.persist();
|
|
271703
|
+
var fe = Q.target;
|
|
271704
271704
|
x.current = fe, V.current.focusTimeout = setTimeout(function() {
|
|
271705
271705
|
var pe = fe.selectionStart, U = fe.selectionEnd, ye = fe.value;
|
|
271706
271706
|
ye === void 0 && (ye = "");
|
|
271707
271707
|
var Me = F(ye, pe);
|
|
271708
|
-
Me !== pe && !(pe === 0 && U === ye.length) && A(fe, Me, ye), h(
|
|
271708
|
+
Me !== pe && !(pe === 0 && U === ye.length) && A(fe, Me, ye), h(Q);
|
|
271709
271709
|
}, 0);
|
|
271710
|
-
}, Ne = function(
|
|
271711
|
-
x.current = null, clearTimeout(V.current.focusTimeout), clearTimeout(V.current.setCaretTimeout), b(
|
|
271710
|
+
}, Ne = function(Q) {
|
|
271711
|
+
x.current = null, clearTimeout(V.current.focusTimeout), clearTimeout(V.current.setCaretTimeout), b(Q);
|
|
271712
271712
|
}, Z = H && _ou() ? "numeric" : void 0, ct = Object.assign({ inputMode: Z }, w, {
|
|
271713
271713
|
type: t,
|
|
271714
271714
|
value: D,
|
|
@@ -274733,7 +274733,7 @@ const Gou = Ht("span")(({
|
|
|
274733
274733
|
]
|
|
274734
274734
|
}
|
|
274735
274735
|
);
|
|
274736
|
-
}, Kou = De(
|
|
274736
|
+
}, Kou = De(X)(({ theme: e }) => ({
|
|
274737
274737
|
flexDirection: "row",
|
|
274738
274738
|
alignItems: "center",
|
|
274739
274739
|
justifyContent: "space-between",
|
|
@@ -274840,15 +274840,15 @@ const Gou = Ht("span")(({
|
|
|
274840
274840
|
cnpjIsValid: r2u,
|
|
274841
274841
|
cpfIsValid: n2u,
|
|
274842
274842
|
validatePassword: nht
|
|
274843
|
-
}, Symbol.toStringTag, { value: "Module" })), a2u = De(
|
|
274843
|
+
}, Symbol.toStringTag, { value: "Module" })), a2u = De(X)(({ theme: e }) => ({
|
|
274844
274844
|
width: "100%",
|
|
274845
274845
|
border: `solid 1px ${Rn(e.palette.grey[500], 0.32)}`,
|
|
274846
274846
|
padding: 16,
|
|
274847
274847
|
borderRadius: 8,
|
|
274848
274848
|
gap: 8
|
|
274849
|
-
})), i2u = De(
|
|
274849
|
+
})), i2u = De(X)(() => ({
|
|
274850
274850
|
gap: 4
|
|
274851
|
-
})), Pse = De(
|
|
274851
|
+
})), Pse = De(X)(({ theme: e }) => ({
|
|
274852
274852
|
flexDirection: "row",
|
|
274853
274853
|
alignItems: "center",
|
|
274854
274854
|
gap: 8,
|
|
@@ -275240,7 +275240,7 @@ const o5u = (e) => (
|
|
|
275240
275240
|
}
|
|
275241
275241
|
}
|
|
275242
275242
|
})), L2u = ({ active: e, completed: t }) => /* @__PURE__ */ g.jsx(
|
|
275243
|
-
|
|
275243
|
+
X,
|
|
275244
275244
|
{
|
|
275245
275245
|
alignItems: "center",
|
|
275246
275246
|
justifyContent: "center",
|
|
@@ -275298,7 +275298,7 @@ const o5u = (e) => (
|
|
|
275298
275298
|
disableRipple: !0,
|
|
275299
275299
|
...r,
|
|
275300
275300
|
label: /* @__PURE__ */ g.jsxs(
|
|
275301
|
-
|
|
275301
|
+
X,
|
|
275302
275302
|
{
|
|
275303
275303
|
position: "relative",
|
|
275304
275304
|
direction: "row",
|
|
@@ -275813,7 +275813,7 @@ const Qxn = ({ onDownload: e }) => {
|
|
|
275813
275813
|
}
|
|
275814
275814
|
);
|
|
275815
275815
|
return t ? /* @__PURE__ */ g.jsx(dXr, { title: c, children: /* @__PURE__ */ g.jsxs(
|
|
275816
|
-
|
|
275816
|
+
X,
|
|
275817
275817
|
{
|
|
275818
275818
|
flexShrink: 0,
|
|
275819
275819
|
component: "span",
|
|
@@ -275862,7 +275862,7 @@ const Qxn = ({ onDownload: e }) => {
|
|
|
275862
275862
|
}
|
|
275863
275863
|
),
|
|
275864
275864
|
children: /* @__PURE__ */ g.jsxs(
|
|
275865
|
-
|
|
275865
|
+
X,
|
|
275866
275866
|
{
|
|
275867
275867
|
component: An.div,
|
|
275868
275868
|
...Cmt().inUp,
|
|
@@ -275916,7 +275916,7 @@ const Qxn = ({ onDownload: e }) => {
|
|
|
275916
275916
|
},
|
|
275917
275917
|
l
|
|
275918
275918
|
) : /* @__PURE__ */ g.jsxs(
|
|
275919
|
-
|
|
275919
|
+
X,
|
|
275920
275920
|
{
|
|
275921
275921
|
component: An.div,
|
|
275922
275922
|
...Cmt().inUp,
|
|
@@ -275933,7 +275933,7 @@ const Qxn = ({ onDownload: e }) => {
|
|
|
275933
275933
|
},
|
|
275934
275934
|
children: [
|
|
275935
275935
|
/* @__PURE__ */ g.jsx(Jxn, { file: c }),
|
|
275936
|
-
/* @__PURE__ */ g.jsxs(
|
|
275936
|
+
/* @__PURE__ */ g.jsxs(X, { flexGrow: 1, sx: { minWidth: 0 }, children: [
|
|
275937
275937
|
/* @__PURE__ */ g.jsx(We, { variant: "subtitle2", noWrap: !0, children: _ ? c : s }),
|
|
275938
275938
|
/* @__PURE__ */ g.jsx(We, { variant: "caption", sx: { color: "text.secondary" }, children: _ ? "" : NSn(d) })
|
|
275939
275939
|
] }),
|
|
@@ -277012,7 +277012,7 @@ function hCt() {
|
|
|
277012
277012
|
ee({
|
|
277013
277013
|
type: "focus"
|
|
277014
277014
|
});
|
|
277015
|
-
}, []),
|
|
277015
|
+
}, []), Q = qe(function() {
|
|
277016
277016
|
ee({
|
|
277017
277017
|
type: "blur"
|
|
277018
277018
|
});
|
|
@@ -277032,7 +277032,7 @@ function hCt() {
|
|
|
277032
277032
|
return kt(kt(mpt({
|
|
277033
277033
|
onKeyDown: U(yc(Pt, ct)),
|
|
277034
277034
|
onFocus: U(yc(Oe, ue)),
|
|
277035
|
-
onBlur: U(yc(nn,
|
|
277035
|
+
onBlur: U(yc(nn, Q)),
|
|
277036
277036
|
onClick: pe(yc(gn, fe)),
|
|
277037
277037
|
onDragEnter: ye(yc(ji, Ce)),
|
|
277038
277038
|
onDragOver: ye(yc(D8, ce)),
|
|
@@ -277043,7 +277043,7 @@ function hCt() {
|
|
|
277043
277043
|
tabIndex: 0
|
|
277044
277044
|
} : {}), GO);
|
|
277045
277045
|
};
|
|
277046
|
-
}, [H, ct, ue,
|
|
277046
|
+
}, [H, ct, ue, Q, fe, Ce, ce, te, Ne, w, j, a]), xe = qe(function(Y) {
|
|
277047
277047
|
Y.stopPropagation();
|
|
277048
277048
|
}, []), Ut = Qt(function() {
|
|
277049
277049
|
return function() {
|
|
@@ -277146,7 +277146,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277146
277146
|
return null;
|
|
277147
277147
|
const t = typeof e == "string" ? e : e.preview;
|
|
277148
277148
|
return /* @__PURE__ */ g.jsx(
|
|
277149
|
-
|
|
277149
|
+
X,
|
|
277150
277150
|
{
|
|
277151
277151
|
position: "absolute",
|
|
277152
277152
|
width: 1,
|
|
@@ -277195,7 +277195,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277195
277195
|
sx: n,
|
|
277196
277196
|
...a
|
|
277197
277197
|
}) => /* @__PURE__ */ g.jsxs(
|
|
277198
|
-
|
|
277198
|
+
X,
|
|
277199
277199
|
{
|
|
277200
277200
|
spacing: 5,
|
|
277201
277201
|
alignItems: "center",
|
|
@@ -277292,7 +277292,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277292
277292
|
children: [
|
|
277293
277293
|
/* @__PURE__ */ g.jsx("input", { ...P(), id: e, tabIndex: p }),
|
|
277294
277294
|
h ? /* @__PURE__ */ g.jsx(
|
|
277295
|
-
|
|
277295
|
+
X,
|
|
277296
277296
|
{
|
|
277297
277297
|
sx: {
|
|
277298
277298
|
...D && {
|
|
@@ -277614,7 +277614,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277614
277614
|
fullWidth: !0,
|
|
277615
277615
|
maxWidth: "sm",
|
|
277616
277616
|
keepMounted: !0,
|
|
277617
|
-
children: /* @__PURE__ */ g.jsxs(
|
|
277617
|
+
children: /* @__PURE__ */ g.jsxs(X, { gap: 2, children: [
|
|
277618
277618
|
/* @__PURE__ */ g.jsx(
|
|
277619
277619
|
Jiu,
|
|
277620
277620
|
{
|
|
@@ -277625,8 +277625,8 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277625
277625
|
onZoomChange: _
|
|
277626
277626
|
}
|
|
277627
277627
|
),
|
|
277628
|
-
/* @__PURE__ */ g.jsxs(
|
|
277629
|
-
/* @__PURE__ */ g.jsxs(
|
|
277628
|
+
/* @__PURE__ */ g.jsxs(X, { gap: 1.5, children: [
|
|
277629
|
+
/* @__PURE__ */ g.jsxs(X, { width: 1, direction: "row", gap: 3, flex: 1, alignItems: "center", children: [
|
|
277630
277630
|
/* @__PURE__ */ g.jsx(We, { variant: "body1", children: "Zoom" }),
|
|
277631
277631
|
/* @__PURE__ */ g.jsx(
|
|
277632
277632
|
gXr,
|
|
@@ -277640,7 +277640,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277640
277640
|
}
|
|
277641
277641
|
)
|
|
277642
277642
|
] }),
|
|
277643
|
-
/* @__PURE__ */ g.jsxs(
|
|
277643
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 2, children: [
|
|
277644
277644
|
/* @__PURE__ */ g.jsx(
|
|
277645
277645
|
Lr,
|
|
277646
277646
|
{
|
|
@@ -277683,7 +277683,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277683
277683
|
] })
|
|
277684
277684
|
}
|
|
277685
277685
|
);
|
|
277686
|
-
}, ncu = De(
|
|
277686
|
+
}, ncu = De(X)({
|
|
277687
277687
|
position: "relative",
|
|
277688
277688
|
width: "100%",
|
|
277689
277689
|
borderRadius: 8,
|
|
@@ -277691,7 +277691,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277691
277691
|
"&:hover .actions": {
|
|
277692
277692
|
display: "flex"
|
|
277693
277693
|
}
|
|
277694
|
-
}), rcu = De(
|
|
277694
|
+
}), rcu = De(X)(({ theme: e }) => ({
|
|
277695
277695
|
display: "none",
|
|
277696
277696
|
position: "absolute",
|
|
277697
277697
|
alignItems: "center",
|
|
@@ -277814,7 +277814,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277814
277814
|
}
|
|
277815
277815
|
)
|
|
277816
277816
|
] });
|
|
277817
|
-
}, ocu = De(
|
|
277817
|
+
}, ocu = De(X)(({ theme: e }) => ({
|
|
277818
277818
|
backgroundColor: "#fff",
|
|
277819
277819
|
border: `1px solid ${e.palette.grey[300]}`
|
|
277820
277820
|
})), ucu = ({ children: e, ...t }) => /* @__PURE__ */ g.jsx(ocu, { borderRadius: 1, gap: 3, padding: 3, ...t, children: e }), ccu = De(et)(() => ({
|
|
@@ -277858,7 +277858,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277858
277858
|
r.value
|
|
277859
277859
|
)) })
|
|
277860
277860
|
] });
|
|
277861
|
-
}, scu = De(
|
|
277861
|
+
}, scu = De(X)({
|
|
277862
277862
|
display: "grid",
|
|
277863
277863
|
gridTemplateColumns: "auto auto"
|
|
277864
277864
|
}), dcu = De(We)(({ theme: e }) => ({
|
|
@@ -277869,13 +277869,13 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277869
277869
|
})), v5u = ({ data: e, ...t }) => e.length === 0 ? null : /* @__PURE__ */ g.jsx(scu, { gap: 1, ...t, children: e.map((n) => [
|
|
277870
277870
|
/* @__PURE__ */ g.jsx(dcu, { variant: "body2", children: n.label }, `label:${n.id}`),
|
|
277871
277871
|
/* @__PURE__ */ g.jsx(gcu, { variant: "body2", children: n.value }, `value:${n.id}`)
|
|
277872
|
-
]) }), _cu = De(
|
|
277872
|
+
]) }), _cu = De(X)(({ theme: e }) => ({
|
|
277873
277873
|
backgroundColor: "#fff",
|
|
277874
277874
|
minWidth: "250px",
|
|
277875
277875
|
padding: 24,
|
|
277876
277876
|
minHeight: "100vh",
|
|
277877
277877
|
borderRight: `1px solid ${e.palette.grey[300]}`
|
|
277878
|
-
})), vcu = De(
|
|
277878
|
+
})), vcu = De(X)(({ theme: e }) => ({
|
|
277879
277879
|
backgroundColor: "#fff",
|
|
277880
277880
|
position: "sticky",
|
|
277881
277881
|
top: 0,
|
|
@@ -277884,12 +277884,12 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277884
277884
|
padding: 24,
|
|
277885
277885
|
gap: 24,
|
|
277886
277886
|
borderBottom: `1px solid ${e.palette.grey[300]}`
|
|
277887
|
-
})), mcu = De(
|
|
277887
|
+
})), mcu = De(X)({
|
|
277888
277888
|
flexDirection: "row",
|
|
277889
277889
|
alignItems: "center",
|
|
277890
277890
|
justifyContent: "space-between",
|
|
277891
277891
|
gap: 24
|
|
277892
|
-
}), hcu = De(
|
|
277892
|
+
}), hcu = De(X)(({ theme: e }) => ({
|
|
277893
277893
|
height: "100%",
|
|
277894
277894
|
width: "50%",
|
|
277895
277895
|
flex: 1,
|
|
@@ -277927,7 +277927,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277927
277927
|
"& .simplebar-content": {
|
|
277928
277928
|
height: 1
|
|
277929
277929
|
}
|
|
277930
|
-
})), Ocu = De(
|
|
277930
|
+
})), Ocu = De(X)(() => ({
|
|
277931
277931
|
position: "fixed",
|
|
277932
277932
|
width: "202px"
|
|
277933
277933
|
})), m5u = ({
|
|
@@ -277936,7 +277936,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277936
277936
|
headerLeftContent: n,
|
|
277937
277937
|
headerRightContent: a,
|
|
277938
277938
|
onClickBack: r
|
|
277939
|
-
}) => /* @__PURE__ */ g.jsx(
|
|
277939
|
+
}) => /* @__PURE__ */ g.jsx(X, { children: /* @__PURE__ */ g.jsxs(X, { direction: "row", children: [
|
|
277940
277940
|
/* @__PURE__ */ g.jsx(_cu, { children: /* @__PURE__ */ g.jsx(pcu, { children: /* @__PURE__ */ g.jsxs(Ocu, { children: [
|
|
277941
277941
|
/* @__PURE__ */ g.jsx(
|
|
277942
277942
|
We,
|
|
@@ -277947,7 +277947,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277947
277947
|
children: "ACESSO RÁPIDO"
|
|
277948
277948
|
}
|
|
277949
277949
|
),
|
|
277950
|
-
t.map((u, c) => /* @__PURE__ */ g.jsxs(
|
|
277950
|
+
t.map((u, c) => /* @__PURE__ */ g.jsxs(X, { children: [
|
|
277951
277951
|
/* @__PURE__ */ g.jsxs(
|
|
277952
277952
|
ycu,
|
|
277953
277953
|
{
|
|
@@ -277966,15 +277966,15 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277966
277966
|
c < t.length - 1 && /* @__PURE__ */ g.jsx(Zue, {})
|
|
277967
277967
|
] }, c))
|
|
277968
277968
|
] }) }) }),
|
|
277969
|
-
/* @__PURE__ */ g.jsxs(
|
|
277969
|
+
/* @__PURE__ */ g.jsxs(X, { width: "100%", alignItems: "center", mb: 8, children: [
|
|
277970
277970
|
/* @__PURE__ */ g.jsx(vcu, { children: /* @__PURE__ */ g.jsxs(mcu, { children: [
|
|
277971
|
-
/* @__PURE__ */ g.jsxs(
|
|
277971
|
+
/* @__PURE__ */ g.jsxs(X, { flexDirection: "row", gap: 2, children: [
|
|
277972
277972
|
/* @__PURE__ */ g.jsx(sn, { color: "primary", onClick: () => r(), children: /* @__PURE__ */ g.jsx(Le, { icon: "CHEVRON_LEFT" }) }),
|
|
277973
277973
|
/* @__PURE__ */ g.jsx(We, { variant: "h4", children: e }),
|
|
277974
277974
|
n
|
|
277975
277975
|
] }),
|
|
277976
277976
|
/* @__PURE__ */ g.jsxs(
|
|
277977
|
-
|
|
277977
|
+
X,
|
|
277978
277978
|
{
|
|
277979
277979
|
direction: "row",
|
|
277980
277980
|
gap: 2,
|
|
@@ -277988,7 +277988,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
277988
277988
|
)
|
|
277989
277989
|
] }) }),
|
|
277990
277990
|
/* @__PURE__ */ g.jsx(hcu, { children: t.map((u) => /* @__PURE__ */ g.jsxs(
|
|
277991
|
-
|
|
277991
|
+
X,
|
|
277992
277992
|
{
|
|
277993
277993
|
ref: u.ref,
|
|
277994
277994
|
paddingTop: 3,
|
|
@@ -278121,7 +278121,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278121
278121
|
value: "DELETE"
|
|
278122
278122
|
/* DELETE */
|
|
278123
278123
|
}
|
|
278124
|
-
], Lcu = De(
|
|
278124
|
+
], Lcu = De(X)(({ theme: e }) => ({
|
|
278125
278125
|
border: `1px solid ${Rn(e.palette.primary.main, 0.3)}`,
|
|
278126
278126
|
backgroundColor: Rn(e.palette.primary.main, 0.05),
|
|
278127
278127
|
flexDirection: "row",
|
|
@@ -278160,7 +278160,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278160
278160
|
/* @__PURE__ */ g.jsx(We, { variant: "caption", color: "text.secondary", children: "Webhooks permitem que serviços externos sejam notificados quando determinados eventos acontecem. Saiba mais acessando a documentação do Webhook" })
|
|
278161
278161
|
] }),
|
|
278162
278162
|
t && /* @__PURE__ */ g.jsx(Cn, { name: "name", label: "Nome do webhook" }),
|
|
278163
|
-
/* @__PURE__ */ g.jsxs(
|
|
278163
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 2, children: [
|
|
278164
278164
|
/* @__PURE__ */ g.jsx(
|
|
278165
278165
|
Cn,
|
|
278166
278166
|
{
|
|
@@ -278173,7 +278173,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278173
278173
|
] }),
|
|
278174
278174
|
t && e && /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
278175
278175
|
/* @__PURE__ */ g.jsx(Cn, { variant: "filled", name: "solution", label: "Solução", disabled: !0 }),
|
|
278176
|
-
/* @__PURE__ */ g.jsxs(
|
|
278176
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 2, children: [
|
|
278177
278177
|
/* @__PURE__ */ g.jsx(Cn, { variant: "filled", name: "resource", label: "Origem", disabled: !0 }),
|
|
278178
278178
|
/* @__PURE__ */ g.jsx(
|
|
278179
278179
|
Cn,
|
|
@@ -278202,8 +278202,8 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278202
278202
|
/* @__PURE__ */ g.jsx(Cn, { variant: "filled", name: "event", label: "Evento", disabled: !0 })
|
|
278203
278203
|
] })
|
|
278204
278204
|
] }),
|
|
278205
|
-
/* @__PURE__ */ g.jsxs(
|
|
278206
|
-
/* @__PURE__ */ g.jsxs(
|
|
278205
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 2, children: [
|
|
278206
|
+
/* @__PURE__ */ g.jsxs(X, { width: "35%", gap: 2, children: [
|
|
278207
278207
|
/* @__PURE__ */ g.jsx(We, { color: "text.secondary", variant: "overline", children: "Tipo de conteúdo:" }),
|
|
278208
278208
|
/* @__PURE__ */ g.jsx(
|
|
278209
278209
|
dzn,
|
|
@@ -278215,7 +278215,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278215
278215
|
}
|
|
278216
278216
|
)
|
|
278217
278217
|
] }),
|
|
278218
|
-
/* @__PURE__ */ g.jsxs(
|
|
278218
|
+
/* @__PURE__ */ g.jsxs(X, { gap: 2, children: [
|
|
278219
278219
|
/* @__PURE__ */ g.jsx(We, { color: "text.secondary", variant: "overline", children: "Métodos Http:" }),
|
|
278220
278220
|
/* @__PURE__ */ g.jsx(
|
|
278221
278221
|
dzn,
|
|
@@ -278231,7 +278231,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278231
278231
|
/* @__PURE__ */ g.jsx(We, { color: "text.secondary", variant: "overline", children: "Status:" }),
|
|
278232
278232
|
/* @__PURE__ */ g.jsx(jcu, { name: "active", label: "Ativo" }),
|
|
278233
278233
|
/* @__PURE__ */ g.jsx(We, { color: "text.secondary", variant: "overline", children: "Cabeçalho:" }),
|
|
278234
|
-
r == null ? void 0 : r.map((f, s) => /* @__PURE__ */ g.jsxs(
|
|
278234
|
+
r == null ? void 0 : r.map((f, s) => /* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 2, children: [
|
|
278235
278235
|
/* @__PURE__ */ g.jsx(
|
|
278236
278236
|
Cn,
|
|
278237
278237
|
{
|
|
@@ -278336,9 +278336,9 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278336
278336
|
const u = `${e}.zipCode`, c = `${e}.publicPlace`, l = `${e}.number`, f = `${e}.district`, s = `${e}.complement`, d = `${e}.state`, _ = `${e}.city`, v = (m) => {
|
|
278337
278337
|
m.key === "Enter" && m.preventDefault();
|
|
278338
278338
|
};
|
|
278339
|
-
return /* @__PURE__ */ g.jsxs(
|
|
278339
|
+
return /* @__PURE__ */ g.jsxs(X, { gap: 1.5, ...t, children: [
|
|
278340
278340
|
/* @__PURE__ */ g.jsxs(
|
|
278341
|
-
|
|
278341
|
+
X,
|
|
278342
278342
|
{
|
|
278343
278343
|
direction: {
|
|
278344
278344
|
xs: "column",
|
|
@@ -278372,7 +278372,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278372
278372
|
}
|
|
278373
278373
|
),
|
|
278374
278374
|
/* @__PURE__ */ g.jsxs(
|
|
278375
|
-
|
|
278375
|
+
X,
|
|
278376
278376
|
{
|
|
278377
278377
|
direction: {
|
|
278378
278378
|
xs: "column",
|
|
@@ -278420,7 +278420,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278420
278420
|
}
|
|
278421
278421
|
),
|
|
278422
278422
|
/* @__PURE__ */ g.jsxs(
|
|
278423
|
-
|
|
278423
|
+
X,
|
|
278424
278424
|
{
|
|
278425
278425
|
direction: {
|
|
278426
278426
|
xs: "column",
|
|
@@ -278468,7 +278468,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278468
278468
|
}
|
|
278469
278469
|
),
|
|
278470
278470
|
/* @__PURE__ */ g.jsxs(
|
|
278471
|
-
|
|
278471
|
+
X,
|
|
278472
278472
|
{
|
|
278473
278473
|
gap: 1.5,
|
|
278474
278474
|
flexWrap: "wrap",
|
|
@@ -278636,8 +278636,8 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278636
278636
|
};
|
|
278637
278637
|
CVn("paste", s, u);
|
|
278638
278638
|
const _ = t.some((v) => f[v]);
|
|
278639
|
-
return /* @__PURE__ */ g.jsxs(
|
|
278640
|
-
/* @__PURE__ */ g.jsx(
|
|
278639
|
+
return /* @__PURE__ */ g.jsxs(X, { children: [
|
|
278640
|
+
/* @__PURE__ */ g.jsx(X, { direction: "row", spacing: 2, justifyContent: "center", ref: u, children: t.map((v, m) => /* @__PURE__ */ g.jsx(
|
|
278641
278641
|
tn,
|
|
278642
278642
|
{
|
|
278643
278643
|
name: `${e}${m + 1}`,
|
|
@@ -278892,7 +278892,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
278892
278892
|
methods: a,
|
|
278893
278893
|
...r
|
|
278894
278894
|
}) => /* @__PURE__ */ g.jsx(HXr, { ...a, children: /* @__PURE__ */ g.jsx(
|
|
278895
|
-
|
|
278895
|
+
X,
|
|
278896
278896
|
{
|
|
278897
278897
|
component: "form",
|
|
278898
278898
|
id: e,
|
|
@@ -279245,7 +279245,7 @@ const CTn = ({ fileRejections: e }) => e.length ? /* @__PURE__ */ g.jsx(
|
|
|
279245
279245
|
closePreviewImage: L
|
|
279246
279246
|
} = bTn({ onFileCropped: e, onImageUploaded: t, onCancel: n });
|
|
279247
279247
|
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
279248
|
-
/* @__PURE__ */ g.jsxs(
|
|
279248
|
+
/* @__PURE__ */ g.jsxs(X, { position: "relative", alignItems: "center", justifyContent: "center", children: [
|
|
279249
279249
|
c && /* @__PURE__ */ g.jsx(acu, {}),
|
|
279250
279250
|
/* @__PURE__ */ g.jsx(
|
|
279251
279251
|
ecu,
|
|
@@ -279467,9 +279467,9 @@ const D5u = ({
|
|
|
279467
279467
|
}, R = (S) => {
|
|
279468
279468
|
S.key === "Enter" && S.preventDefault();
|
|
279469
279469
|
};
|
|
279470
|
-
return /* @__PURE__ */ g.jsx(
|
|
279471
|
-
/* @__PURE__ */ g.jsx(_zn, { display: "flex", flex: 1, children: /* @__PURE__ */ g.jsxs(
|
|
279472
|
-
/* @__PURE__ */ g.jsxs(
|
|
279470
|
+
return /* @__PURE__ */ g.jsx(X, { children: /* @__PURE__ */ g.jsxs(X, { direction: "row", alignItems: "center", gap: 3, children: [
|
|
279471
|
+
/* @__PURE__ */ g.jsx(_zn, { display: "flex", flex: 1, children: /* @__PURE__ */ g.jsxs(X, { flex: 1, children: [
|
|
279472
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 1, padding: 2, children: [
|
|
279473
279473
|
/* @__PURE__ */ g.jsx(
|
|
279474
279474
|
IO,
|
|
279475
279475
|
{
|
|
@@ -279479,14 +279479,14 @@ const D5u = ({
|
|
|
279479
279479
|
onChange: (S) => $(S.target.checked)
|
|
279480
279480
|
}
|
|
279481
279481
|
),
|
|
279482
|
-
/* @__PURE__ */ g.jsxs(
|
|
279482
|
+
/* @__PURE__ */ g.jsxs(X, { children: [
|
|
279483
279483
|
/* @__PURE__ */ g.jsx(We, { variant: "subtitle2", color: "text.primary", children: `${l} cadastrados` }),
|
|
279484
279484
|
/* @__PURE__ */ g.jsx(We, { variant: "caption", color: "text.disabled", children: `${y.length}/${h.length} selecionados` })
|
|
279485
279485
|
] })
|
|
279486
279486
|
] }),
|
|
279487
279487
|
/* @__PURE__ */ g.jsx(Zue, {}),
|
|
279488
|
-
/* @__PURE__ */ g.jsxs(
|
|
279489
|
-
/* @__PURE__ */ g.jsxs(
|
|
279488
|
+
/* @__PURE__ */ g.jsxs(X, { p: 2, flex: 1, children: [
|
|
279489
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 1, children: [
|
|
279490
279490
|
/* @__PURE__ */ g.jsx(
|
|
279491
279491
|
Xxn,
|
|
279492
279492
|
{
|
|
@@ -279505,7 +279505,7 @@ const D5u = ({
|
|
|
279505
279505
|
Yxn,
|
|
279506
279506
|
{
|
|
279507
279507
|
isLoading: n,
|
|
279508
|
-
loading: /* @__PURE__ */ g.jsx(
|
|
279508
|
+
loading: /* @__PURE__ */ g.jsx(X, { alignItems: "center", justifyContent: "center", flex: 1, children: /* @__PURE__ */ g.jsx(__t, {}) }),
|
|
279509
279509
|
isEmpty: h.length === 0,
|
|
279510
279510
|
empty: /* @__PURE__ */ g.jsx(
|
|
279511
279511
|
Uyt,
|
|
@@ -279514,9 +279514,9 @@ const D5u = ({
|
|
|
279514
279514
|
sx: { svg: { height: 140 } }
|
|
279515
279515
|
}
|
|
279516
279516
|
),
|
|
279517
|
-
children: /* @__PURE__ */ g.jsx(Kmt, { sx: { maxHeight: 280 }, children: h.map((S) => /* @__PURE__ */ g.jsxs(
|
|
279517
|
+
children: /* @__PURE__ */ g.jsx(Kmt, { sx: { maxHeight: 280 }, children: h.map((S) => /* @__PURE__ */ g.jsxs(X, { gap: 1, marginTop: "8px", children: [
|
|
279518
279518
|
/* @__PURE__ */ g.jsxs(
|
|
279519
|
-
|
|
279519
|
+
X,
|
|
279520
279520
|
{
|
|
279521
279521
|
direction: "row",
|
|
279522
279522
|
gap: 0.5,
|
|
@@ -279541,12 +279541,12 @@ const D5u = ({
|
|
|
279541
279541
|
)
|
|
279542
279542
|
] })
|
|
279543
279543
|
] }) }),
|
|
279544
|
-
/* @__PURE__ */ g.jsxs(
|
|
279544
|
+
/* @__PURE__ */ g.jsxs(X, { gap: 3, children: [
|
|
279545
279545
|
/* @__PURE__ */ g.jsx(gzn, { variant: "outlined", onClick: j, children: /* @__PURE__ */ g.jsx(Le, { icon: "ARROW_RIGHT_SIMPLE" }) }),
|
|
279546
279546
|
/* @__PURE__ */ g.jsx(gzn, { variant: "outlined", onClick: E, children: /* @__PURE__ */ g.jsx(Le, { icon: "ARROW_LEFT_SIMPLE" }) })
|
|
279547
279547
|
] }),
|
|
279548
|
-
/* @__PURE__ */ g.jsx(_zn, { display: "flex", flex: 1, children: /* @__PURE__ */ g.jsxs(
|
|
279549
|
-
/* @__PURE__ */ g.jsxs(
|
|
279548
|
+
/* @__PURE__ */ g.jsx(_zn, { display: "flex", flex: 1, children: /* @__PURE__ */ g.jsxs(X, { flex: 1, children: [
|
|
279549
|
+
/* @__PURE__ */ g.jsxs(X, { direction: "row", gap: 1, padding: 2, children: [
|
|
279550
279550
|
/* @__PURE__ */ g.jsx(
|
|
279551
279551
|
IO,
|
|
279552
279552
|
{
|
|
@@ -279556,13 +279556,13 @@ const D5u = ({
|
|
|
279556
279556
|
onChange: (S) => D(S.target.checked)
|
|
279557
279557
|
}
|
|
279558
279558
|
),
|
|
279559
|
-
/* @__PURE__ */ g.jsxs(
|
|
279559
|
+
/* @__PURE__ */ g.jsxs(X, { children: [
|
|
279560
279560
|
/* @__PURE__ */ g.jsx(We, { variant: "subtitle2", color: "text.primary", children: `${f} selecionados` }),
|
|
279561
279561
|
/* @__PURE__ */ g.jsx(We, { variant: "caption", color: "text.disabled", children: `${P.length}/${p.length} selecionados` })
|
|
279562
279562
|
] })
|
|
279563
279563
|
] }),
|
|
279564
279564
|
/* @__PURE__ */ g.jsx(Zue, {}),
|
|
279565
|
-
/* @__PURE__ */ g.jsxs(
|
|
279565
|
+
/* @__PURE__ */ g.jsxs(X, { p: 2, gap: 1, children: [
|
|
279566
279566
|
d && /* @__PURE__ */ g.jsx(
|
|
279567
279567
|
Xxn,
|
|
279568
279568
|
{
|
|
@@ -279579,7 +279579,7 @@ const D5u = ({
|
|
|
279579
279579
|
Yxn,
|
|
279580
279580
|
{
|
|
279581
279581
|
isLoading: n,
|
|
279582
|
-
loading: /* @__PURE__ */ g.jsx(__t, {}),
|
|
279582
|
+
loading: /* @__PURE__ */ g.jsx(X, { alignItems: "center", justifyContent: "center", flex: 1, children: /* @__PURE__ */ g.jsx(__t, {}) }),
|
|
279583
279583
|
isEmpty: p.length === 0,
|
|
279584
279584
|
empty: /* @__PURE__ */ g.jsx(
|
|
279585
279585
|
Uyt,
|
|
@@ -279592,9 +279592,9 @@ const D5u = ({
|
|
|
279592
279592
|
}
|
|
279593
279593
|
}
|
|
279594
279594
|
),
|
|
279595
|
-
children: /* @__PURE__ */ g.jsx(Kmt, { sx: { maxHeight: 280 }, children: p.map((S) => /* @__PURE__ */ g.jsxs(
|
|
279595
|
+
children: /* @__PURE__ */ g.jsx(Kmt, { sx: { maxHeight: 280 }, children: p.map((S) => /* @__PURE__ */ g.jsxs(X, { gap: 1, children: [
|
|
279596
279596
|
/* @__PURE__ */ g.jsxs(
|
|
279597
|
-
|
|
279597
|
+
X,
|
|
279598
279598
|
{
|
|
279599
279599
|
direction: "row",
|
|
279600
279600
|
gap: 0.5,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as u, b0 as p, ae as m, b1 as d, af as C, ag as v, bR as S, bV as T, bU as g, bT as k, b2 as P, b4 as A, b5 as I, ah as h, ai as F, aj as y, ak as B, al as M, am as x, an as D, b6 as f, b7 as w, b8 as E, ao as R, bm as L, ap as N, aq as U, ar as W, as as H, bo as O, b9 as G, at as q, ba as V, a_ as j, au as z, av as K, bp as Z, aw as J, a9 as Q, ax as X, ay as Y, bb as _, az as $, ab as aa, aA as sa, aB as ea, bc as oa, bK as ra, aC as ta, aD as ba, aE as ia, br as na, bs as la, bq as ca, b3 as ua, bd as pa, aa as ma, aF as da, be as Ca, bf as va, aG as Sa, aY as Ta, aH as ga, bg as ka, aI as Pa, aJ as Aa, aK as Ia, aL as ha, bL as Fa, bM as ya, aM as Ba, aN as Ma, aO as xa, aP as Da, aZ as fa, bl as wa, bh as Ea, bt as Ra, aQ as La, bZ as Na, b_ as Ua, bX as Wa, c0 as Ha, b$ as Oa, bY as Ga, bn as qa, aR as Va, aS as ja, bi as za, bN as Ka, aT as Za, aU as Ja, bj as Qa, aV as Xa, a8 as Ya, aW as _a, bk as $a, a$ as as, aX as ss, bO as es, cq as os, cr as rs, ck as ts, c1 as bs, bP as is, ch as ns, ci as ls, cj as cs, c2 as us, ct as ps, cp as ms, co as ds, cl as Cs, cm as vs, c3 as Ss, cg as Ts, bS as gs, c4 as ks, c5 as Ps, c6 as As, c7 as Is, c8 as hs, ac as Fs, ce as ys, cd as Bs, cc as Ms, cf as xs, c9 as Ds, bQ as fs, bW as ws, ca as Es, cb as Rs, cs as Ls, cn as Ns, bH as Us, bI as Ws, bJ as Hs, bA as Os, bD as Gs, bv as qs, bx as Vs, bC as js, bu as zs, bB as Ks, bz as Zs, by as Js, bF as Qs, bG as Xs, bE as Ys, bw as _s } from "./index-
|
|
1
|
+
import { ad as u, b0 as p, ae as m, b1 as d, af as C, ag as v, bR as S, bV as T, bU as g, bT as k, b2 as P, b4 as A, b5 as I, ah as h, ai as F, aj as y, ak as B, al as M, am as x, an as D, b6 as f, b7 as w, b8 as E, ao as R, bm as L, ap as N, aq as U, ar as W, as as H, bo as O, b9 as G, at as q, ba as V, a_ as j, au as z, av as K, bp as Z, aw as J, a9 as Q, ax as X, ay as Y, bb as _, az as $, ab as aa, aA as sa, aB as ea, bc as oa, bK as ra, aC as ta, aD as ba, aE as ia, br as na, bs as la, bq as ca, b3 as ua, bd as pa, aa as ma, aF as da, be as Ca, bf as va, aG as Sa, aY as Ta, aH as ga, bg as ka, aI as Pa, aJ as Aa, aK as Ia, aL as ha, bL as Fa, bM as ya, aM as Ba, aN as Ma, aO as xa, aP as Da, aZ as fa, bl as wa, bh as Ea, bt as Ra, aQ as La, bZ as Na, b_ as Ua, bX as Wa, c0 as Ha, b$ as Oa, bY as Ga, bn as qa, aR as Va, aS as ja, bi as za, bN as Ka, aT as Za, aU as Ja, bj as Qa, aV as Xa, a8 as Ya, aW as _a, bk as $a, a$ as as, aX as ss, bO as es, cq as os, cr as rs, ck as ts, c1 as bs, bP as is, ch as ns, ci as ls, cj as cs, c2 as us, ct as ps, cp as ms, co as ds, cl as Cs, cm as vs, c3 as Ss, cg as Ts, bS as gs, c4 as ks, c5 as Ps, c6 as As, c7 as Is, c8 as hs, ac as Fs, ce as ys, cd as Bs, cc as Ms, cf as xs, c9 as Ds, bQ as fs, bW as ws, ca as Es, cb as Rs, cs as Ls, cn as Ns, bH as Us, bI as Ws, bJ as Hs, bA as Os, bD as Gs, bv as qs, bx as Vs, bC as js, bu as zs, bB as Ks, bz as Zs, by as Js, bF as Qs, bG as Xs, bE as Ys, bw as _s } from "./index-c6b6d6b2.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "@emotion/react";
|
package/dist/index.umd.cjs
CHANGED
|
@@ -35406,4 +35406,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
35406
35406
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function So2(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Do2(e){if(Array.isArray(e))return ZBn(e)}function $Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function xUn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$Un(Object(n),!0).forEach(function(a){zUn(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$Un(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function zUn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ymt(e,t){return Io2(e)||Wo2(e,t)||HUn(e,t)||Bo2()}function Bo2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
35407
35407
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HUn(e,t){if(e){if(typeof e=="string")return ZBn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZBn(e,t)}}function ZBn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Wo2(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,u=!1,c,l;try{for(n=n.call(e);!(r=(c=n.next()).done)&&(a.push(c.value),!(t&&a.length===t));r=!0);}catch(f){u=!0,l=f}finally{try{!r&&n.return!=null&&n.return()}finally{if(u)throw l}}return a}}function Io2(e){if(Array.isArray(e))return e}var $o2="file-invalid-type",xo2="file-too-large",zo2="file-too-small",Ho2="too-many-files",Ao2=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:$o2,message:"File type must be ".concat(n)}},AUn=function(t){return{code:xo2,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},RUn=function(t){return{code:zo2,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Ro2={code:Ho2,message:"Too many files"};function VUn(e,t){var n=e.type==="application/x-moz-file"||Eo2(e,t);return[n,n?null:Ao2(t)]}function FUn(e,t,n){if(hT(e.size))if(hT(t)&&hT(n)){if(e.size>n)return[!1,AUn(n)];if(e.size<t)return[!1,RUn(t)]}else{if(hT(t)&&e.size<t)return[!1,RUn(t)];if(hT(n)&&e.size>n)return[!1,AUn(n)]}return[!0,null]}function hT(e){return e!=null}function Vo2(e){var t=e.files,n=e.accept,a=e.minSize,r=e.maxSize,u=e.multiple,c=e.maxFiles,l=e.validator;return!u&&t.length>1||u&&c>=1&&t.length>c?!1:t.every(function(f){var s=VUn(f,n),d=ymt(s,1),g=d[0],m=FUn(f,a,r),v=ymt(m,1),C=v[0],h=l?l(f):null;return g&&C&&!h})}function WCt(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function ICt(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function NUn(e){e.preventDefault()}function Fo2(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function No2(e){return e.indexOf("Edge/")!==-1}function To2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Fo2(e)||No2(e)}function Sc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(a){for(var r=arguments.length,u=new Array(r>1?r-1:0),c=1;c<r;c++)u[c-1]=arguments[c];return t.some(function(l){return!WCt(a)&&l&&l.apply(void 0,[a].concat(u)),WCt(a)})}}function Zo2(){return"showOpenFilePicker"in window}function Uo2(e){if(hT(e)){var t=Object.entries(e).filter(function(n){var a=ymt(n,2),r=a[0],u=a[1],c=!0;return TUn(r)||(console.warn('Skipped "'.concat(r,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),c=!1),(!Array.isArray(u)||!u.every(ZUn))&&(console.warn('Skipped "'.concat(r,'" because an invalid file extension was provided.')),c=!1),c}).reduce(function(n,a){var r=ymt(a,2),u=r[0],c=r[1];return xUn(xUn({},n),{},zUn({},u,c))},{});return[{description:"Files",accept:t}]}return e}function Go2(e){if(hT(e))return Object.entries(e).reduce(function(t,n){var a=ymt(n,2),r=a[0],u=a[1];return[].concat(IUn(t),[r],IUn(u))},[]).filter(function(t){return TUn(t)||ZUn(t)}).join(",")}function Yo2(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Ko2(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function TUn(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function ZUn(e){return/^.*\.[\w]+$/.test(e)}var Xo2=["children"],Qo2=["open"],Jo2=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],qo2=["refKey","onChange","onClick"];function e22(e){return r22(e)||n22(e)||UUn(e)||t22()}function t22(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
35408
35408
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n22(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function r22(e){if(Array.isArray(e))return GBn(e)}function UBn(e,t){return o22(e)||i22(e,t)||UUn(e,t)||a22()}function a22(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
35409
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UUn(e,t){if(e){if(typeof e=="string")return GBn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GBn(e,t)}}function GBn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i22(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,u=!1,c,l;try{for(n=n.call(e);!(r=(c=n.next()).done)&&(a.push(c.value),!(t&&a.length===t));r=!0);}catch(f){u=!0,l=f}finally{try{!r&&n.return!=null&&n.return()}finally{if(u)throw l}}return a}}function o22(e){if(Array.isArray(e))return e}function GUn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GUn(Object(n),!0).forEach(function(a){YBn(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GUn(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function YBn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Ct(e,t){if(e==null)return{};var n=u22(e,t),a,r;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)a=u[r],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function u22(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,u;for(u=0;u<a.length;u++)r=a[u],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var KBn=o.forwardRef(function(e,t){var n=e.children,a=$Ct(e,Xo2),r=xCt(a),u=r.open,c=$Ct(r,Qo2);return o.useImperativeHandle(t,function(){return{open:u}},[u]),o.createElement(o.Fragment,null,n(Pt(Pt({},c),{},{open:u})))});KBn.displayName="Dropzone";var YUn={disabled:!1,getFilesFromEvent:bo2,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};KBn.defaultProps=YUn,KBn.propTypes={children:L.func,accept:L.objectOf(L.arrayOf(L.string)),multiple:L.bool,preventDropOnDocument:L.bool,noClick:L.bool,noKeyboard:L.bool,noDrag:L.bool,noDragEventsBubbling:L.bool,minSize:L.number,maxSize:L.number,maxFiles:L.number,disabled:L.bool,getFilesFromEvent:L.func,onFileDialogCancel:L.func,onFileDialogOpen:L.func,useFsAccessApi:L.bool,autoFocus:L.bool,onDragEnter:L.func,onDragLeave:L.func,onDragOver:L.func,onDrop:L.func,onDropAccepted:L.func,onDropRejected:L.func,onError:L.func,validator:L.func};var XBn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xCt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Pt(Pt({},YUn),e),n=t.accept,a=t.disabled,r=t.getFilesFromEvent,u=t.maxSize,c=t.minSize,l=t.multiple,f=t.maxFiles,s=t.onDragEnter,d=t.onDragLeave,g=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,C=t.onDropRejected,h=t.onFileDialogCancel,b=t.onFileDialogOpen,p=t.useFsAccessApi,y=t.autoFocus,j=t.preventDropOnDocument,E=t.noClick,O=t.noKeyboard,M=t.noDrag,k=t.noDragEventsBubbling,D=t.onError,S=t.validator,B=o.useMemo(function(){return Go2(n)},[n]),H=o.useMemo(function(){return Uo2(n)},[n]),N=o.useMemo(function(){return typeof b=="function"?b:KUn},[b]),W=o.useMemo(function(){return typeof h=="function"?h:KUn},[h]),x=o.useRef(null),T=o.useRef(null),A=o.useReducer(c22,XBn),Z=UBn(A,2),Q=Z[0],ne=Z[1],V=Q.isFocused,F=Q.isFileDialogActive,Y=o.useRef(typeof window<"u"&&window.isSecureContext&&p&&Zo2()),ie=function(){!Y.current&&F&&setTimeout(function(){if(T.current){var he=T.current.files;he.length||(ne({type:"closeDialog"}),W())}},300)};o.useEffect(function(){return window.addEventListener("focus",ie,!1),function(){window.removeEventListener("focus",ie,!1)}},[T,F,W,Y]);var q=o.useRef([]),fe=function(he){x.current&&x.current.contains(he.target)||(he.preventDefault(),q.current=[])};o.useEffect(function(){return j&&(document.addEventListener("dragover",NUn,!1),document.addEventListener("drop",fe,!1)),function(){j&&(document.removeEventListener("dragover",NUn),document.removeEventListener("drop",fe))}},[x,j]),o.useEffect(function(){return!a&&y&&x.current&&x.current.focus(),function(){}},[x,y,a]);var ce=o.useCallback(function(J){D?D(J):console.error(J)},[D]),Ce=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J),q.current=[].concat(e22(q.current),[J.target]),ICt(J)&&Promise.resolve(r(J)).then(function(he){if(!(WCt(J)&&!k)){var at=he.length,He=at>0&&Vo2({files:he,accept:B,minSize:c,maxSize:u,multiple:l,maxFiles:f,validator:S}),Et=at>0&&!He;ne({isDragAccept:He,isDragReject:Et,isDragActive:!0,type:"setDraggedFiles"}),s&&s(J)}}).catch(function(he){return ce(he)})},[r,s,ce,k,B,c,u,l,f,S]),le=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J);var he=ICt(J);if(he&&J.dataTransfer)try{J.dataTransfer.dropEffect="copy"}catch{}return he&&g&&g(J),!1},[g,k]),ee=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J);var he=q.current.filter(function(He){return x.current&&x.current.contains(He)}),at=he.indexOf(J.target);at!==-1&&he.splice(at,1),q.current=he,!(he.length>0)&&(ne({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ICt(J)&&d&&d(J))},[x,d,k]),ge=o.useCallback(function(J,he){var at=[],He=[];J.forEach(function(Et){var je=VUn(Et,B),qt=UBn(je,2),_n=qt[0],Dc=qt[1],KO=FUn(Et,c,u),XO=UBn(KO,2),CT=XO[0],bT=XO[1],yT=S?S(Et):null;if(_n&&CT&&!yT)at.push(Et);else{var pT=[Dc,bT];yT&&(pT=pT.concat(yT)),He.push({file:Et,errors:pT.filter(function(OT){return OT})})}}),(!l&&at.length>1||l&&f>=1&&at.length>f)&&(at.forEach(function(Et){He.push({file:Et,errors:[Ro2]})}),at.splice(0)),ne({acceptedFiles:at,fileRejections:He,type:"setFiles"}),m&&m(at,He,he),He.length>0&&C&&C(He,he),at.length>0&&v&&v(at,he)},[ne,l,B,c,u,f,m,v,C,S]),We=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J),q.current=[],ICt(J)&&Promise.resolve(r(J)).then(function(he){WCt(J)&&!k||ge(he,J)}).catch(function(he){return ce(he)}),ne({type:"reset"})},[r,ge,ce,k]),U=o.useCallback(function(){if(Y.current){ne({type:"openDialog"}),N();var J={multiple:l,types:H};window.showOpenFilePicker(J).then(function(he){return r(he)}).then(function(he){ge(he,null),ne({type:"closeDialog"})}).catch(function(he){Yo2(he)?(W(he),ne({type:"closeDialog"})):Ko2(he)?(Y.current=!1,T.current?(T.current.value=null,T.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ce(he)});return}T.current&&(ne({type:"openDialog"}),N(),T.current.value=null,T.current.click())},[ne,N,W,p,ge,ce,H,l]),qe=o.useCallback(function(J){!x.current||!x.current.isEqualNode(J.target)||(J.key===" "||J.key==="Enter"||J.keyCode===32||J.keyCode===13)&&(J.preventDefault(),U())},[x,U]),se=o.useCallback(function(){ne({type:"focus"})},[]),te=o.useCallback(function(){ne({type:"blur"})},[]),_e=o.useCallback(function(){E||(To2()?setTimeout(U,0):U())},[E,U]),Oe=function(he){return a?null:he},K=function(he){return O?null:Oe(he)},pe=function(he){return M?null:Oe(he)},Pe=function(he){k&&he.stopPropagation()},xe=o.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=J.refKey,at=he===void 0?"ref":he,He=J.role,Et=J.onKeyDown,je=J.onFocus,qt=J.onBlur,_n=J.onClick,Dc=J.onDragEnter,KO=J.onDragOver,XO=J.onDragLeave,CT=J.onDrop,bT=$Ct(J,Jo2);return Pt(Pt(YBn({onKeyDown:K(Sc(Et,qe)),onFocus:K(Sc(je,se)),onBlur:K(Sc(qt,te)),onClick:Oe(Sc(_n,_e)),onDragEnter:pe(Sc(Dc,Ce)),onDragOver:pe(Sc(KO,le)),onDragLeave:pe(Sc(XO,ee)),onDrop:pe(Sc(CT,We)),role:typeof He=="string"&&He!==""?He:"presentation"},at,x),!a&&!O?{tabIndex:0}:{}),bT)}},[x,qe,se,te,_e,Ce,le,ee,We,O,M,a]),ze=o.useCallback(function(J){J.stopPropagation()},[]),Zt=o.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=J.refKey,at=he===void 0?"ref":he,He=J.onChange,Et=J.onClick,je=$Ct(J,qo2),qt=YBn({accept:B,multiple:l,type:"file",style:{display:"none"},onChange:Oe(Sc(He,We)),onClick:Oe(Sc(Et,ze)),tabIndex:-1},at,T);return Pt(Pt({},qt),je)}},[T,n,l,We,a]);return Pt(Pt({},Q),{},{isFocused:V&&!a,getRootProps:xe,getInputProps:Zt,rootRef:x,inputRef:T,open:Oe(U)})}function c22(e,t){switch(t.type){case"focus":return Pt(Pt({},e),{},{isFocused:!0});case"blur":return Pt(Pt({},e),{},{isFocused:!1});case"openDialog":return Pt(Pt({},XBn),{},{isFileDialogActive:!0});case"closeDialog":return Pt(Pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Pt(Pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Pt(Pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Pt({},XBn);default:return e}}function KUn(){}const XUn=({fileRejections:e})=>e.length?_.jsx(P.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>X(t.palette.error.main,.08),borderColor:t=>X(t.palette.error.main,.24)},children:e.map(({file:t,errors:n})=>{const{path:a,size:r}=NBn(t);return _.jsxs(P.Box,{sx:{my:1},children:[_.jsxs(P.Typography,{variant:"subtitle2",noWrap:!0,children:[a," - ",r?SBn(r):""]}),n.map(u=>_.jsxs(P.Box,{component:"span",sx:{typography:"caption"},children:["- ",u.message]},u.code))]},a)})}):null,l22=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return _.jsx(P.Stack,{position:"absolute",width:1,height:1,maxHeight:"100%",alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:_.jsx("img",{alt:"file preview",src:t,style:{borderRadius:8,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},f22=Bt("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${X(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),s22=({header:e,description:t,sx:n,...a})=>_.jsxs(P.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...n},...a,children:[_.jsx(yIn,{sx:{width:220}}),_.jsxs("div",{children:[_.jsx(P.Typography,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),_.jsx(P.Typography,{variant:"body2",sx:{color:"text.secondary"},children:t||_.jsxs(_.Fragment,{children:["Solte os arquivos aqui ou clique",_.jsx(P.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})})]})]}),QUn=({id:e,disabled:t,multiple:n=!1,error:a,helperText:r,file:u,onDelete:c,files:l,thumbnail:f,onRemove:s,onHandleMainImage:d,mainUrl:g,sx:m,dropZoneProps:v,placeholderProps:C,placeholderAlt:h,image:b,tabIndex:p,...y})=>{const{getRootProps:j,getInputProps:E,isDragActive:O,isDragReject:M,fileRejections:k}=xCt({multiple:n,disabled:t,...y}),D=!!u&&!n||b,S=l&&n&&l.length>0,B=M||!!a;return _.jsxs(P.Box,{sx:{width:1,position:"relative",...m},children:[_.jsxs(f22,{...j(),sx:{...O&&{opacity:.72},...B&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...t&&{opacity:.48,pointerEvents:"none"},...v},children:[_.jsx("input",{...E(),id:e,tabIndex:p}),h?_.jsx(P.Stack,{sx:{...D&&{opacity:0}},children:h}):_.jsx(s22,{sx:{...D&&{opacity:0}},header:C==null?void 0:C.title,description:C==null?void 0:C.description}),D&&_.jsx(l22,{file:u||b||""})]}),r&&_.jsx(P.FormHelperText,{error:!!a,sx:H=>({mx:"14px",color:t?H.palette.grey[500]:void 0}),children:r}),_.jsx(XUn,{fileRejections:k}),D&&c&&_.jsx(P.IconButton,{size:"small",onClick:c,sx:{top:16,right:16,zIndex:9,position:"absolute",color:H=>X(H.palette.common.white,.8),bgcolor:H=>X(H.palette.grey[900],.72),"&:hover":{bgcolor:H=>X(H.palette.grey[900],.48)}},children:_.jsx(Le,{icon:"CLOSE_MARK_BUTTON",width:18})}),S&&_.jsx(_.Fragment,{children:_.jsx(P.Box,{sx:{my:3},children:_.jsx(mo2,{files:l,thumbnail:f,onRemove:s,onHandleMainImage:d,mainUrl:g})})})]})},d22=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return _.jsx("img",{alt:"avatar",src:t,style:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},g22=Bt("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${X(e.palette.grey[500],.32)}`})),_22=Bt("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),JUn=({error:e,file:t,image:n,disabled:a,helperText:r,sx:u,tabIndex:c,...l})=>{const{getRootProps:f,getInputProps:s,isDragActive:d,isDragReject:g,fileRejections:m}=xCt({multiple:!1,disabled:a,...l}),v=!!t||n,C=g||!!e;return _.jsxs(_.Fragment,{children:[_.jsxs(g22,{...f(),sx:{...d&&{opacity:.72},...C&&{borderColor:"error.light",...v&&{bgcolor:"error.lighter"}},...a&&{opacity:.48,pointerEvents:"none"},...v&&{"&:hover":{"& .placeholder":{opacity:1}}},...u},children:[_.jsx("input",{...s(),tabIndex:c}),v&&_.jsx(d22,{file:t||n||""}),_.jsxs(_22,{className:"placeholder",sx:{"&:hover":{opacity:.72},...v&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>X(h.palette.grey[900],.64)},...C&&{color:"error.main",bgcolor:"error.lighter"}},children:[_.jsx(Le,{icon:"ADD_IMAGE",width:24,sx:{mb:1}}),_.jsx(P.Typography,{variant:"caption",children:t?"Atualizar foto":"Carregar foto"})]})]}),r&&r,_.jsx(XUn,{fileRejections:m})]})},m22=Bt("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:X(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),v22=({placeholderAlt:e,error:t,disabled:n,sx:a,tabIndex:r,...u})=>{const{getRootProps:c,getInputProps:l,isDragActive:f,isDragReject:s}=xCt({disabled:n,...u}),d=s||t;return _.jsxs(m22,{...c(),sx:{...f&&{opacity:.72},...d&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...n&&{opacity:.48,pointerEvents:"none"},...a},children:[_.jsx("input",{...l(),tabIndex:r}),e||_.jsx(Le,{icon:"CLOUD_UPLOAD",width:28})]})},qUn=({onFileCropped:e,onImageUploaded:t,onCancel:n})=>{const a=o.useId(),[r,u]=o.useState(),[c,l,f]=BSn(),[s,d]=o.useState();return{id:a,setCropModalOpen:f,handleRemove:()=>{e(void 0),t(void 0),f(!1)},toggleCropModalOpen:l,cropModalOpen:c,cancelChanges:()=>{n&&n(),f(!1)},saveChanges:()=>{r!==void 0&&r.getCroppedCanvas().toBlob(b=>{if(!b)return;const p=new File([b],"imagem");e(p),l()},"image/png",1)},previewImage:()=>{r!==void 0&&d(r.getCroppedCanvas().toDataURL())},setCropper:u,preview:s,closePreviewImage:()=>d(void 0)}},eGn=({id:e,open:t,onClose:n,label:a,onSave:r,onRemove:u,onPreview:c,imageSrc:l,aspectRatio:f,onInitialized:s})=>{const[d,g]=o.useState(.5);return _.jsx(bUn,{open:t,onClose:n,dialogTitle:a,actions:_.jsxs(_.Fragment,{children:[_.jsx(P.Button,{variant:"outlined",size:"medium",onClick:n,color:"inherit",children:"Cancelar"}),_.jsx(P.Button,{variant:"contained",size:"medium",onClick:r,children:"Salvar"})]}),fullWidth:!0,maxWidth:"sm",keepMounted:!0,children:_.jsxs(P.Stack,{gap:2,children:[_.jsx(YZn,{imageSrc:l,aspectRatio:f,onInitialized:s,zoom:d,onZoomChange:g}),_.jsxs(P.Stack,{gap:1.5,children:[_.jsxs(P.Stack,{width:1,direction:"row",gap:3,flex:1,alignItems:"center",children:[_.jsx(P.Typography,{variant:"body1",children:"Zoom"}),_.jsx(P.Slider,{value:d,onChange:(m,v)=>g(Array.isArray(v)?v[0]:v),min:.1,max:2,size:"medium",step:.0125})]}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(P.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:_.jsx(Le,{icon:"DELETE_MARK_BUTTON_02"}),onClick:u,children:"Remover"}),_.jsx(P.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:_.jsx(Le,{icon:"PLAY_SIMPLE"}),onClick:c,children:"Pré-visualizar"}),_.jsx(P.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:_.jsx(Le,{icon:"SEARCH_IMAGE"}),component:"label",htmlFor:e,children:"Alterar"})]})]})]})})},h22=P.styled(P.Stack)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),C22=P.styled(P.Stack)(({theme:e})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:P.alpha(e.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}})),b22=P.styled(P.CircularProgress)({position:"absolute",width:"100%",height:"100%",zIndex:99,backgroundColor:"#fff",borderRadius:"50%"}),tGn=({onFileCropped:e,onImageUploaded:t,onCancel:n,aspect:a,label:r,image:u="",uploading:c,file:l,tabIndex:f,...s})=>{const{id:d,setCropModalOpen:g,handleRemove:m,toggleCropModalOpen:v,cropModalOpen:C,cancelChanges:h,saveChanges:b,previewImage:p,setCropper:y,preview:j,closePreviewImage:E}=qUn({onFileCropped:e,onImageUploaded:t,onCancel:n});return _.jsxs(_.Fragment,{children:[_.jsxs(h22,{children:[c&&_.jsx(fCt,{}),_.jsx(QUn,{...s,id:d,file:l,onDrop:O=>{if(O.length>0){g(!0);const M=new FileReader;M.addEventListener("load",()=>{var D;const k=((D=M.result)==null?void 0:D.toString())||"";t(k),e(void 0)}),M.readAsDataURL(O[0])}},image:u,tabIndex:f}),(l||u)&&_.jsxs(C22,{className:"actions",children:[_.jsx(P.Button,{color:"inherit",startIcon:_.jsx(Le,{icon:"DELETE_MARK_BUTTON_02",color:"error.main"}),onClick:m,children:"Remover"}),_.jsx(P.Button,{color:"inherit",startIcon:_.jsx(Le,{icon:"SEARCH_IMAGE",color:"primary.maon"}),onClick:v,children:"Editar"})]})]}),_.jsx(eGn,{id:d,open:C,onClose:h,label:r,aspectRatio:a,imageSrc:u,onRemove:m,onSave:b,onPreview:p,onInitialized:y}),_.jsx(P.Dialog,{open:!!j,onClose:E,scroll:"body",PaperProps:{sx:{p:2}},children:j&&_.jsx("img",{src:j,alt:"Preview"})})]})},y22=P.styled(P.Stack)(({theme:e})=>({backgroundColor:"#fff",border:`1px solid ${e.palette.grey[300]}`})),nGn=({children:e,...t})=>_.jsx(y22,{borderRadius:1,gap:3,padding:3,...t,children:e}),p22=P.styled(P.Box)(()=>({marginLeft:"4px",fontWeight:"fontWeightBold"})),O22=P.styled(P.Button)(()=>({fontWeight:"fontWeightSemiBold"})),j22=P.styled(Le)(({theme:e})=>({color:e.palette.primary.main})),w22=({selectedTitle:e,onSelect:t,options:n})=>{const a=WSn();return _.jsxs(_.Fragment,{children:[_.jsx(O22,{disableRipple:!0,color:"inherit",onClick:a.onOpen,endIcon:_.jsx(j22,{icon:a.open?"CHEVRON_UP":"ARROW_DOWN_SIMPLE"}),children:_.jsx(p22,{component:"span",children:e.label})}),_.jsx(CUn,{open:a.open,onClose:a.onClose,children:n.map(r=>_.jsx(P.MenuItem,{selected:r.value===e.value,onClick:()=>{a.onClose(),t(r.value)},children:r.label},r.value))})]})},M22=P.styled(P.Stack)({display:"grid",gridTemplateColumns:"auto auto"}),L22=P.styled(P.Typography)(({theme:e})=>({color:e.palette.grey[600]})),P22=P.styled(P.Typography)(({theme:e})=>({textAlign:"right",color:e.palette.grey[800]})),E22=({data:e,...t})=>e.length===0?null:_.jsx(M22,{gap:1,...t,children:e.map(n=>[_.jsx(L22,{variant:"body2",children:n.label},`label:${n.id}`),_.jsx(P22,{variant:"body2",children:n.value},`value:${n.id}`)])}),k22=P.styled(P.Stack)(({theme:e})=>({backgroundColor:"#fff",minWidth:"250px",padding:24,minHeight:"100vh",borderRight:`1px solid ${e.palette.grey[300]}`})),S22=P.styled(P.Stack)(({theme:e})=>({backgroundColor:"#fff",position:"sticky",top:0,zIndex:999,width:"100%",padding:24,gap:24,borderBottom:`1px solid ${e.palette.grey[300]}`})),D22=P.styled(P.Stack)({flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:24}),B22=P.styled(P.Stack)(({theme:e})=>({height:"100%",width:"50%",flex:1,[e.breakpoints.down(1680)]:{width:"70%"}})),W22=P.styled(P.Typography)(({theme:e})=>({color:e.palette.grey[800],fontSize:18,fontWeight:700})),I22=P.styled(P.Typography)(({theme:e})=>({color:e.palette.grey[500],fontSize:14,fontWeight:400,paddingBottom:24})),$22=P.styled(P.Button)(({theme:e})=>({paddingTop:6,paddingBottom:6,paddingLeft:0,margin:0,marginBottom:4,marginTop:4,width:"100%",display:"block",cursor:"pointer",color:e.palette.grey[600],textAlign:"left",fontWeight:400,fontSize:14,"> span":{color:e.palette.error.main}})),x22=P.styled(q_t)(()=>({height:1,"& .simplebar-content":{height:1}})),z22=P.styled(P.Stack)(()=>({position:"fixed",width:"202px"})),H22=({title:e,sections:t,headerLeftContent:n,headerRightContent:a,onClickBack:r})=>_.jsx(P.Stack,{children:_.jsxs(P.Stack,{direction:"row",children:[_.jsx(k22,{children:_.jsx(x22,{children:_.jsxs(z22,{children:[_.jsx(P.Typography,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO RÁPIDO"}),t.map((u,c)=>_.jsxs(P.Stack,{children:[_.jsxs($22,{onClick:()=>{u.ref.current&&u.ref.current.scrollIntoView({block:"end",behavior:"smooth"})},children:[u.title,u.isRequired&&_.jsx("span",{children:"*"})]}),c<t.length-1&&_.jsx(P.Divider,{})]},c))]})})}),_.jsxs(P.Stack,{width:"100%",alignItems:"center",mb:8,children:[_.jsx(S22,{children:_.jsxs(D22,{children:[_.jsxs(P.Stack,{flexDirection:"row",gap:2,children:[_.jsx(P.IconButton,{color:"primary",onClick:()=>r(),children:_.jsx(Le,{icon:"CHEVRON_LEFT"})}),_.jsx(P.Typography,{variant:"h4",children:e}),n]}),_.jsxs(P.Stack,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[_.jsx(sSn,{disabled:!0}),a]})]})}),_.jsx(B22,{children:t.map(u=>_.jsxs(P.Stack,{ref:u.ref,paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",children:[_.jsx(W22,{children:u.title}),_.jsx(I22,{children:u.subTitle}),_.jsx(nGn,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:u.child})]},u.title))})]})]})}),un=({name:e,helperText:t,rules:n,onChange:a,tabIndex:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:n,render:({field:{ref:l,...f},fieldState:{error:s}})=>_.jsx(P.TextField,{...f,onChange:d=>{f.onChange(d),a&&a(d)},inputRef:l,fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...u,inputProps:{...u.inputProps,tabIndex:r}})})},rGn=({name:e,helperText:t,onChange:n,tabIndex:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,render:({field:c,fieldState:{error:l}})=>_.jsxs("div",{children:[_.jsx(P.FormControlLabel,{control:_.jsx(P.Switch,{...c,checked:c.value,onChange:(f,s)=>{c.onChange(f),n&&n(f,s)},inputProps:{tabIndex:a}}),...r}),(!!l||t)&&_.jsx(P.FormHelperText,{error:!!l,sx:f=>({mx:"14px",color:r.disabled?f.palette.grey[500]:void 0}),children:l?l==null?void 0:l.message:t})]})})},A22=[{label:"JSON",value:"JSON"},{label:"XML",value:"XML"},{label:"BINÁRIO",value:"BYTEA"}],R22=[{label:"PUT",value:"PUT"},{label:"POST",value:"POST"},{label:"GET",value:"GET"},{label:"DELETE",value:"DELETE"}],V22=P.styled(P.Stack)(({theme:e})=>({border:`1px solid ${P.alpha(e.palette.primary.main,.3)}`,backgroundColor:P.alpha(e.palette.primary.main,.05),flexDirection:"row",alignItems:"center",padding:10,gap:10,borderRadius:8,marginBottom:8,svg:{color:e.palette.primary.main}})),F22=P.styled(P.IconButton)(({theme:e})=>({svg:{color:`${e.palette.primary.main} !important`}})),N22=P.styled(P.IconButton)(()=>({height:"38px",alignSelf:"center"})),T22=({webhookData:e,isEditing:t=!1,haveTip:n=!1})=>{const{control:a}=Ie.useFormContext(),{fields:r,append:u,remove:c}=Ie.useFieldArray({name:"headers",control:a}),l=()=>{u({value:"",name:""})};return _.jsxs(_.Fragment,{children:[n&&_.jsxs(V22,{children:[_.jsx(Le,{icon:"INFO_CIRCLE"}),_.jsx(P.Typography,{variant:"caption",color:"text.secondary",children:"Webhooks permitem que serviços externos sejam notificados quando determinados eventos acontecem. Saiba mais acessando a documentação do Webhook"})]}),t&&_.jsx(un,{name:"name",label:"Nome do webhook"}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(un,{name:"url",label:"URL de endpoint",rules:{required:{value:!0,message:"Url é obrigatório"}}}),_.jsx(un,{name:"filter",label:"Filtro"})]}),t&&e&&_.jsxs(_.Fragment,{children:[_.jsx(un,{variant:"filled",name:"solution",label:"Solução",disabled:!0}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(un,{variant:"filled",name:"resource",label:"Origem",disabled:!0}),_.jsx(un,{variant:"filled",name:"resourceID",label:"ID origem",disabled:!0,InputProps:{endAdornment:_.jsx(P.InputAdornment,{position:"end",children:_.jsx(F22,{onClick:()=>navigator.clipboard.writeText(e.resourceID),children:_.jsx(Le,{className:"copyIcon",icon:"COPY_CONTENT"})})})}}),_.jsx(un,{variant:"filled",name:"event",label:"Evento",disabled:!0})]})]}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsxs(P.Stack,{width:"35%",gap:2,children:[_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Tipo de conteúdo:"}),_.jsx(QBn,{name:"content_type",options:A22,row:!0,decorated:!0})]}),_.jsxs(P.Stack,{gap:2,children:[_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Métodos Http:"}),_.jsx(QBn,{name:"http_method",options:R22,row:!0,decorated:!0})]})]}),_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Status:"}),_.jsx(rGn,{name:"active",label:"Ativo"}),_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Cabeçalho:"}),r==null?void 0:r.map((f,s)=>_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(un,{name:`headers.${s}.name`,label:"Chave",rules:{required:{value:!0,message:"Chave é obrigatório"}}}),_.jsx(un,{name:`headers.${s}.value`,label:"Valor",rules:{required:{value:!0,message:"Valor é obrigatório"}}}),_.jsx(N22,{onClick:()=>c(s),color:"error",children:_.jsx(Le,{icon:"DELETE_MARK_BUTTON_02"})})]},f.id)),_.jsx(CRn,{actionType:"NEW",size:"large",variant:"outlined",color:"inherit",fullWidth:!0,onClick:()=>l(),children:"Adicionar novo cabeçalho"}),_.jsx(P.Divider,{})]})},aGn=({name:e,helperText:t,rules:n,onSelectOption:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:l}})=>_.jsx(fSn,{...c,...r,onChange:f=>{a&&a(f),c.onChange(f)},error:!!l,helperText:(l==null?void 0:l.message)||t})})},iGn=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:r,rules:n,render:({field:{name:u,onChange:c,value:l,ref:f},fieldState:{error:s}})=>_.jsx(HBn,{ref:f,...a,name:u,value:l,error:!!s,helperText:(s==null?void 0:s.message)||t,onChange:({target:{value:d}})=>c(d)})})},Z22=({name:e,containerProps:t,required:n,rules:a,tabIndex:r})=>{const u=`${e}.zipCode`,c=`${e}.publicPlace`,l=`${e}.number`,f=`${e}.district`,s=`${e}.complement`,d=`${e}.state`,g=`${e}.city`,m=v=>{v.key==="Enter"&&v.preventDefault()};return _.jsxs(P.Stack,{gap:1.5,...t,children:[_.jsxs(P.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[_.jsx(iGn,{name:u,label:"CEP",mask:[{mask:"00000-000"}],InputProps:{endAdornment:_.jsx(P.InputAdornment,{position:"end",children:_.jsx(P.CircularProgress,{size:24})})},rules:a,onKeyDown:m,required:n,sx:{width:"auto",flex:1,minWidth:160},tabIndex:r}),_.jsxs(P.Stack,{direction:{xs:"column",sm:"row"},gap:1.5,flex:{xs:1,md:"1 1 50%"},children:[_.jsx(un,{name:c,label:"Logradouro",onKeyDown:m,inputProps:{maxLength:70},sx:{width:"auto",minWidth:250,flex:1},tabIndex:r}),_.jsx(un,{name:l,label:"Número",onKeyDown:m,inputProps:{maxLength:6},sx:{width:"auto",minWidth:100},tabIndex:r})]})]}),_.jsxs(P.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[_.jsx(un,{name:f,label:"Bairro",onKeyDown:m,inputProps:{maxLength:20},sx:{width:"auto",flex:{xs:1,md:"1 1 100px"}},tabIndex:r}),_.jsx(un,{name:s,label:"Complemento",onKeyDown:m,inputProps:{maxLength:30},sx:{minWidth:200,width:"auto",flex:{xs:1,md:"1 1 500px"}},tabIndex:r})]}),_.jsxs(P.Stack,{gap:1.5,flexWrap:"wrap",direction:{xs:"column",sm:"row"},children:[_.jsx(aGn,{name:d,label:"Estado",options:[],disabled:!0,required:n,sx:{flex:1},tabIndex:r}),_.jsx(un,{name:g,label:"Cidade",disabled:!0,required:n,sx:{flex:1},tabIndex:r})]})]})},U22=({name:e,rules:t,helperText:n,tabIndex:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,rules:t,render:({field:c,fieldState:{error:l}})=>_.jsxs("div",{children:[_.jsx(P.FormControlLabel,{control:_.jsx(P.Checkbox,{...c,checked:c.value,tabIndex:a}),...r}),(!!l||n)&&_.jsx(P.FormHelperText,{error:!!l,children:l?l==null?void 0:l.message:n})]})})},G22=({row:e,name:t,rules:n,label:a,options:r,spacing:u,helperText:c,required:l,...f})=>{const{control:s}=Ie.useFormContext(),d=(g,m)=>g.includes(m)?g.filter(v=>v!==m):[...g,m];return _.jsx(Ie.Controller,{name:t,control:s,rules:n,render:({field:{value:g=[],...m},fieldState:{error:v}})=>_.jsxs(P.FormControl,{component:"fieldset",children:[a&&_.jsx(P.FormLabel,{component:"legend",sx:{typography:"body2"},required:l,children:a}),_.jsx(P.FormGroup,{sx:{...e&&{flexDirection:"row"},"& .MuiFormControlLabel-root":{"&:not(:last-of-type)":{mb:u||0},...e&&{mr:0,"&:not(:last-of-type)":{mr:u||2}}}},children:r.map(C=>_.jsx(P.FormControlLabel,{control:_.jsx(P.Checkbox,{checked:g.includes(C.value),onChange:()=>m.onChange(d(g,C.value))}),label:C.label,...f},C.value))}),(!!v||c)&&_.jsx(P.FormHelperText,{error:!!v,sx:C=>({color:f.disabled?C.palette.grey[500]:void 0}),children:v?v==null?void 0:v.message:c})]})})},Y22=({keyName:e,inputs:t=[],rules:n,tabIndex:a,...r})=>{const u=o.useRef(null),{control:c,setValue:l,formState:{errors:f}}=Ie.useFormContext(),s=m=>{const v=m.clipboardData.getData("text").split("");t.map((C,h)=>l(C,v[h])),m.preventDefault()},d=(m,v)=>{const{maxLength:C,value:h,name:b}=m.target,p=b.replace(e,""),y=Number(p),j=document.querySelector(`input[name=${e}${y+1}]`);h.length>C&&(m.target.value=h[0]),h.length>=C&&y<6&&j!==null&&j.focus(),v(m)};DSn("paste",s,u);const g=t.some(m=>f[m]);return _.jsxs(P.Stack,{children:[_.jsx(P.Stack,{direction:"row",spacing:2,justifyContent:"center",ref:u,children:t.map((m,v)=>_.jsx(Ie.Controller,{name:`${e}${v+1}`,control:c,rules:n,render:({field:C,fieldState:{error:h}})=>_.jsx(P.TextField,{...r,...C,autoComplete:"none",error:!!h,autoFocus:v===0,placeholder:"-",onChange:b=>{d(b,C.onChange)},onFocus:b=>b.currentTarget.select(),InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number",tabIndex:a}})},m))}),g&&_.jsx(P.FormHelperText,{error:!0,sx:{px:2},children:"Código é obrigatório"})]})},K22=({name:e,rules:t,helperText:n,...a})=>{const{control:r}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:r,rules:{...t,validate:{...t==null?void 0:t.validate,validation:u=>{const c="#"+u.replaceAll("#","");return/^#([0-9A-Fa-f]{3}){1,2}$/.test(c)?!0:"Cor inválida"}}},render:({field:{ref:u,onChange:c,...l},fieldState:{error:f}})=>_.jsx(LNn,{...l,onChangeColor:c,inputRef:u,fullWidth:!0,error:!!f,helperText:(f==null?void 0:f.message)||n,...a})})},X22=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:t,render:({field:{ref:l,...f},fieldState:{error:s}})=>{var d;return _.jsx(jT.DatePicker,{inputRef:l,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...u.localeText},...f,...u,value:f.value?new Date(f.value):null,slotProps:{textField:{...(d=u.slotProps)==null?void 0:d.textField,required:r,error:!!s,helperText:(s==null?void 0:s.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},Q22=({name:e,label:t,rules:n,tabIndex:a,helperText:r,required:u,...c})=>{const{control:l,setError:f}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:l,rules:n,render:({field:{value:s,onChange:d},fieldState:{error:g}})=>_.jsx(jT.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...c.localeText},value:[(s==null?void 0:s.startDate)||null,(s==null?void 0:s.endDate)||null],onChange:m=>d({startDate:m[0],endDate:m[1]}),onError:m=>{f(e,{message:m[0]||m[1]||void 0})},...c,slotProps:{textField:({position:m})=>{var v;return{...(v=c.slotProps)==null?void 0:v.textField,required:u,error:!!g,helperText:(g==null?void 0:g.message)||r,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:m==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`,inputProps:{tabIndex:a}}}},sx:{width:1}})})},J22=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:t,render:({field:{ref:l,...f},fieldState:{error:s}})=>{var d;return _.jsx(jT.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:l,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...f,...u,value:f.value?new Date(f.value):null,slotProps:{textField:{...(d=u.slotProps)==null?void 0:d.textField,required:r,error:!!s,helperText:(s==null?void 0:s.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},q22=({id:e,children:t,onSubmit:n,methods:a,...r})=>_.jsx(Ie.FormProvider,{...a,children:_.jsx(P.Stack,{component:"form",id:e,onSubmit:n,flex:1,width:1,noValidate:!0,...r,children:t})}),eu2=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:r,rules:n,render:({field:{ref:u,value:c,...l},fieldState:{error:f}})=>_.jsx(IBn,{value:c,inputRef:u,fullWidth:!0,error:!!f,helperText:(f==null?void 0:f.message)||t,...a,...l,name:e})})},tu2=({name:e,label:t="",rules:n,helperText:a,changed:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:n,render:({field:l,fieldState:{error:f}})=>_.jsx(P.Autocomplete,{...l,onChange:(s,d)=>{r&&r(d),l.onChange(d)},renderInput:s=>_.jsx(P.TextField,{label:t,error:!!f,helperText:f?f==null?void 0:f.message:a,...s}),...u})})},nu2=({name:e,helperText:t,rules:n,onChange:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:l}})=>_.jsx(MCt,{...c,onChange:f=>{c.onChange(f),a&&a(f)},fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||t,...r})})},ru2=({name:e,sx:t,rules:n,passwordSize:a,specialCharacter:r,upperCaseChar:u,numberChar:c,showErrorMessage:l,match:f,...s})=>{const{watch:d}=Ie.useFormContext(),g=d(e),[m,v]=o.useState(!1),{hasNumberChar:C,hasSpecialCharacter:h,hasUpperCaseChar:b,isLengthValid:p}=SCt(g,a,c,r,u);return _.jsx(un,{...s,name:e,type:m?"text":"password",InputProps:{endAdornment:_.jsx(P.InputAdornment,{position:"end",children:_.jsx(P.IconButton,{onClick:()=>v(!m),edge:"end","aria-label":"Mostrar/Ocultar senha",children:_.jsx(Le,{icon:m?"VIEW_ON":"VIEW_OFF"})})})},rules:{...n,validate:{...n==null?void 0:n.validate,validationPassword:y=>{const j=SCt(y,a,c,r,u);return!j.hasNumberChar||!j.hasSpecialCharacter||!j.hasUpperCaseChar||!j.isLengthValid?"Senha inválida":f&&f.fieldPassword&&d(f.fieldPassword)!==y?"As senhas devem ser iguais":!0}}},sx:{...t,"& .MuiFormHelperText-root":{display:(!h||!b||!p||!C)&&!l?"none":void 0}}})},QBn=({name:e,rules:t,row:n,label:a,options:r,spacing:u,helperText:c,decorated:l,onChange:f,tabIndex:s,required:d,disabled:g,...m})=>{const{control:v}=Ie.useFormContext(),C=a?`${e}-${a}`:"";return _.jsx(Ie.Controller,{name:e,control:v,rules:t,render:({field:h,fieldState:{error:b}})=>_.jsxs(P.FormControl,{component:"fieldset",sx:{...l&&{paddingLeft:1.5}},children:[a&&_.jsx(P.FormLabel,{component:"legend",id:C,sx:{typography:"body2"},required:d,children:a}),_.jsx(P.RadioGroup,{...m,...h,onChange:(p,y)=>{h.onChange(p),f&&f(p,y)},"aria-labelledby":C,row:n,children:r.map(p=>_.jsx(P.FormControlLabel,{value:p.value,control:_.jsx(P.Radio,{inputProps:{tabIndex:s},disabled:g,checked:p.value===h.value}),label:p.label,sx:({palette:y})=>({"&:not(:last-of-type)":{mb:u||0},...n&&{mr:0,"&:not(:last-of-type)":{mr:u||2}},...l&&{border:`1px solid ${P.alpha(y.grey[500],.32)}`,borderRadius:1,padding:.25,paddingRight:(u||0)/2||1,...h.value===p.value&&{borderColor:"primary.main",backgroundColor:P.alpha(y.primary.main,.05)}}})},p.value))}),(!!b||c)&&_.jsx(P.FormHelperText,{error:!!b,sx:p=>({color:g?p.palette.grey[500]:void 0}),children:b?b==null?void 0:b.message:c})]})})},au2=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:t,render:({field:{ref:l,...f},fieldState:{error:s}})=>{var d;return _.jsx(jT.TimePicker,{ampm:!1,format:"HH:mm",inputRef:l,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...f,...u,value:f.value?new Date(f.value):null,slotProps:{textField:{...(d=u.slotProps)==null?void 0:d.textField,error:!!s,required:r,helperText:(s==null?void 0:s.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},iu2=({onFileCropped:e,onImageUploaded:t,onCancel:n,aspect:a,label:r,image:u="",uploading:c,file:l,tabIndex:f,...s})=>{const{id:d,setCropModalOpen:g,handleRemove:m,cropModalOpen:v,cancelChanges:C,saveChanges:h,previewImage:b,setCropper:p,preview:y,closePreviewImage:j}=qUn({onFileCropped:e,onImageUploaded:t,onCancel:n});return _.jsxs(_.Fragment,{children:[_.jsxs(P.Stack,{position:"relative",alignItems:"center",justifyContent:"center",children:[c&&_.jsx(b22,{}),_.jsx(JUn,{...s,id:d,file:l,onDrop:E=>{if(E.length>0){g(!0);const O=new FileReader;O.addEventListener("load",()=>{var k;const M=((k=O.result)==null?void 0:k.toString())||"";t(M),e(void 0)}),O.readAsDataURL(E[0])}},image:u,tabIndex:f})]}),_.jsx(eGn,{id:d,open:v,onClose:C,label:r,aspectRatio:a,imageSrc:u,onRemove:m,onSave:h,onPreview:b,onInitialized:p}),_.jsx(P.Dialog,{open:!!y,onClose:j,scroll:"body",PaperProps:{sx:{p:2}},children:y&&_.jsx("img",{src:y,alt:"Preview"})})]})};function oGn(e,t){const{watch:n,setValue:a}=Ie.useFormContext(),[r,u]=o.useState(t),c=n(e)||[];return{uploadFile:async m=>{if(!m){a(e,void 0),u(void 0);return}a(e,m),u(Object.assign(m,{preview:URL.createObjectURL(m)}))},uploadFiles:async m=>{a(e,[...c,...m.map(v=>Object.assign(v,{preview:URL.createObjectURL(v)}))])},handleDeleteFile:()=>{a(e,void 0),u(void 0)},handleRemoveAll:()=>{a(e,void 0)},handleRemove:m=>{const v=c.filter(C=>C!==m);a(e,v)},file:r,setFileValue:u}}const ou2=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:l,onCancel:f,...s})=>{const{control:d}=Ie.useFormContext(),{uploadFile:g,file:m,setFileValue:v}=oGn(e);return _.jsx(Ie.Controller,{name:e,control:d,rules:t,render:({field:{value:C},fieldState:{error:h}})=>_.jsx(iu2,{accept:{"image/*":[]},file:C?m:void 0,onFileCropped:b=>{g(b),c&&c(b)},onImageUploaded:l,onCancel:()=>{v(void 0),f&&f()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&_.jsx(P.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...s})})},uu2=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:l,onCancel:f,...s})=>{const{control:d}=Ie.useFormContext(),{uploadFile:g,file:m,setFileValue:v}=oGn(e);return _.jsx(Ie.Controller,{name:e,control:d,rules:t,render:({field:{value:C},fieldState:{error:h}})=>_.jsx(tGn,{accept:{"image/*":[]},file:C?m:void 0,onFileCropped:b=>{g(b),c&&c(b)},onImageUploaded:l,onCancel:()=>{v(void 0),f&&f()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&_.jsx(P.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...s})})},uGn=P.styled(P.Button)(({theme:e})=>({borderColor:e.palette.grey[300]})),cGn=P.styled(P.Box)(({theme:e})=>({border:"1.5px solid",borderColor:e.palette.grey[300],height:450,width:"40%",borderRadius:8})),cu2=({selectedItems:e,items:t,loading:n,searchText:a,onAdd:r,onRemove:u,search:c,itemsTitle:l,selectedItemsTitle:f,additionalContent:s,enableSearchInSelectedItems:d,onSearch:g})=>{const[m,v]=o.useState(""),C=P.debounce(g,400),h=t.filter(W=>!e.some(x=>x.id===W.id)),b=e.filter(W=>W.name.toLowerCase().includes(m.toLowerCase())),p=d?b:t.filter(W=>e.some(x=>x.id===W.id)),[y,j]=o.useState([]),[E,O]=o.useState([]),M=()=>{r(y),j([])},k=()=>{u(E),O([])},D=W=>{O(W?p:[])},S=W=>{j(W?h:[])},B=(W,x)=>{O(x?T=>[...T,W]:T=>T.filter(A=>A.id!==W.id))},H=(W,x)=>{j(x?T=>[...T,W]:T=>T.filter(A=>A.id!==W.id))},N=W=>{W.key==="Enter"&&W.preventDefault()};return _.jsx(P.Stack,{children:_.jsxs(P.Stack,{direction:"row",alignItems:"center",gap:3,children:[_.jsx(cGn,{display:"flex",flex:1,children:_.jsxs(P.Stack,{flex:1,children:[_.jsxs(P.Stack,{direction:"row",gap:1,padding:2,children:[_.jsx(P.Checkbox,{size:"small",indeterminate:y.length>0&&y.length!==h.length,checked:y.length>0&&y.length===h.length,onChange:W=>S(W.target.checked)}),_.jsxs(P.Stack,{children:[_.jsx(P.Typography,{variant:"subtitle2",color:"text.primary",children:`${l} cadastrados`}),_.jsx(P.Typography,{variant:"caption",color:"text.disabled",children:`${y.length}/${h.length} selecionados`})]})]}),_.jsx(P.Divider,{}),_.jsxs(P.Stack,{p:2,flex:1,children:[_.jsxs(P.Stack,{direction:"row",gap:1,children:[_.jsx(FBn,{iconPosition:"start",placeholder:"Buscar",onKeyDown:N,size:"small",fullWidth:!0,trigger:"change",onSearch:W=>C(W)}),s]}),_.jsx(ABn,{isLoading:n,loading:_.jsx(P.Stack,{alignItems:"center",justifyContent:"center",flex:1,children:_.jsx(P.CircularProgress,{})}),isEmpty:h.length===0,empty:_.jsx(sCt,{text:c?`Nenhum ${a} encontrado`:`Nenhum ${a} disponível`,sx:{svg:{height:140}}}),children:_.jsx(q_t,{sx:{maxHeight:280},children:h.map(W=>_.jsxs(P.Stack,{gap:1,marginTop:"8px",children:[_.jsxs(P.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[_.jsx(P.Checkbox,{size:"small",checked:y.includes(W),onChange:x=>H(W,x.target.checked)}),W.label]}),_.jsx(P.Divider,{})]},W.id))})})]})]})}),_.jsxs(P.Stack,{gap:3,children:[_.jsx(uGn,{variant:"outlined",onClick:M,children:_.jsx(Le,{icon:"ARROW_RIGHT_SIMPLE"})}),_.jsx(uGn,{variant:"outlined",onClick:k,children:_.jsx(Le,{icon:"ARROW_LEFT_SIMPLE"})})]}),_.jsx(cGn,{display:"flex",flex:1,children:_.jsxs(P.Stack,{flex:1,children:[_.jsxs(P.Stack,{direction:"row",gap:1,padding:2,children:[_.jsx(P.Checkbox,{size:"small",indeterminate:E.length>0&&E.length!==p.length,checked:E.length>0&&E.length===p.length,onChange:W=>D(W.target.checked)}),_.jsxs(P.Stack,{children:[_.jsx(P.Typography,{variant:"subtitle2",color:"text.primary",children:`${f} selecionados`}),_.jsx(P.Typography,{variant:"caption",color:"text.disabled",children:`${E.length}/${p.length} selecionados`})]})]}),_.jsx(P.Divider,{}),_.jsxs(P.Stack,{p:2,gap:1,children:[d&&_.jsx(FBn,{iconPosition:"start",placeholder:"Buscar",size:"small",fullWidth:!0,trigger:"change",onSearch:W=>v(W??""),onKeyDown:N}),_.jsx(ABn,{isLoading:n,loading:_.jsx(P.CircularProgress,{}),isEmpty:p.length===0,empty:_.jsx(sCt,{text:m?`Nenhum ${a} encontrado`:`Nenhum ${a} selecionado`,sx:{svg:{height:140},marginTop:"56px",backgroundColor:"transparent"}}),children:_.jsx(q_t,{sx:{maxHeight:280},children:p.map(W=>_.jsxs(P.Stack,{gap:1,children:[_.jsxs(P.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[_.jsx(P.Checkbox,{size:"small",checked:E.includes(W),onChange:x=>B(W,x.target.checked)}),W.label]}),_.jsx(P.Divider,{})]},W.id))})})]})]})})]})})},lu2=Object.freeze(Object.defineProperty({__proto__:null,default:Ner},Symbol.toStringTag,{value:"Module"}));R.ActionButton=CRn,R.Address=Z22,R.Autocomplete=fSn,R.AutocompleteField=aGn,R.BuilderLayout=uDo,R.BuilderSidebar=$zo,R.Carousel=bEo,R.CarouselArrowIndex=xEo,R.CarouselArrows=wEo,R.CarouselDots=jEo,R.Checkbox=U22,R.Codes=Y22,R.ColorPickerField=K22,R.ColorPickerInput=LNn,R.Common=Yn2,R.CommonSSR=Xn2,R.Confirm=Qn2,R.CustomAvatar=LTn,R.CustomAvatarGroup=PTn,R.DataGrid=tr2,R.DatePicker=X22,R.DateRangePicker=Q22,R.DateTimePicker=J22,R.Delayed=nr2,R.DialogAnimate=mtr,R.Drawer=gr2,R.EmptyContent=QHn,R.EmptyView=sCt,R.Error=mr2,R.FabButtonAnimate=ezn,R.Field=un,R.FixedProgressBar=fCt,R.Form=q22,R.FrameSkeleton=H22,R.HelpButton=sSn,R.Icon=Le,R.IconButtonAnimate=tzn,R.Iconify=mZn,R.IllustrationEmptyContent=pIn,R.ImageCrop=YZn,R.Incrementer=IBn,R.IncrementerField=eu2,R.Label=cUn,R.Lightbox=HSo,R.LoadingScreen=Na2,R.MaskedInput=HBn,R.MaskedInputField=iGn,R.MaterialDesignContent=Dyt,R.MenuPopover=CUn,R.Modal=bUn,R.ModalActions=fi2,R.MotionContainer=ktr,R.MotionLazyContainer=Oyt,R.MotionViewport=Etr,R.MultiCheckbox=G22,R.MultipleChipField=tu2,R.NoData=OIn,R.NumberInput=MCt,R.NumberInputField=nu2,R.PasswordField=ru2,R.PasswordRules=vi2,R.PopoverSelect=w22,R.Portal=yUn,R.RadioGroupField=QBn,R.Result=ABn,R.SavedChanges=Hi2,R.Scrollbar=q_t,R.SearchInput=FBn,R.SnackbarContent=Syt,R.SnackbarProvider=kzn,R.SplashScreen=Ai2,R.Steps=Fi2,R.StyledTab=Ni2,R.StyledTabs=Ti2,R.Summary=E22,R.SwapList=cu2,R.Switch=rGn,R.TRANSITION=jIn,R.TabPanel=Zi2,R.TableEmptyRows=NEo,R.TableHeadCustom=ZEo,R.TableNoData=VEo,R.TablePaginationCustom=GEo,R.TableSelectedAction=UEo,R.TableSkeleton=FEo,R.TextAnimate=vtr,R.TextMaxLine=wUn,R.ThemeProvider=MTn,R.TimePicker=au2,R.Transition=Dvt,R.Upload=QUn,R.UploadAvatar=JUn,R.UploadAvatarWithCropField=ou2,R.UploadBox=v22,R.UploadIllustration=yIn,R.UploadWithCrop=tGn,R.UploadWithCropField=uu2,R.Webhook=T22,R.WhiteBox=nGn,R.color=Pt2,R.compare=pzo,R.cssStyles=IEo,R.emptyRows=zEo,R.file=hi2,R.formatNumber=ha2,R.formatTime=ki2,R.getComparator=HEo,R.loadable=zi2,R.mask=$i2,R.number=sa2,R.routes=Di2,R.sort=Ii2,R.useActiveElement=cDo,R.useApiMessage=Szo,R.useCarousel=yEo,R.useCopyToClipboard=lDo,R.useDatagrid=fDo,R.useDeepCompareEffect=jzo,R.useEventListener=DSn,R.useIsMounting=Mzo,R.useLightBox=VSo,R.useOffSetTop=kzo,R.useOnClickOutside=Ezo,R.usePagination=Pzo,R.usePopover=WSn,R.useResponsive=rzn,R.useSnackbar=Szn,R.useTable=AEo,R.useTabs=Lzo,R.useToggle=BSn,R.uuidv4=xi2,R.validators=gi2,R.varBgColor=BXn,R.varBgKenburns=WXn,R.varBgPan=IXn,R.varBounce=kXn,R.varContainer=nvt,R.varFade=lle,R.varFlip=LXn,R.varHover=DXn,R.varPath=jXn,R.varRotate=SXn,R.varScale=EXn,R.varSlide=PXn,R.varTranEnter=$e,R.varTranExit=Ne,R.varTranHover=wXn,R.varZoom=MXn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
35409
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UUn(e,t){if(e){if(typeof e=="string")return GBn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GBn(e,t)}}function GBn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function i22(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],r=!0,u=!1,c,l;try{for(n=n.call(e);!(r=(c=n.next()).done)&&(a.push(c.value),!(t&&a.length===t));r=!0);}catch(f){u=!0,l=f}finally{try{!r&&n.return!=null&&n.return()}finally{if(u)throw l}}return a}}function o22(e){if(Array.isArray(e))return e}function GUn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,a)}return n}function Pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GUn(Object(n),!0).forEach(function(a){YBn(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GUn(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function YBn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Ct(e,t){if(e==null)return{};var n=u22(e,t),a,r;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(r=0;r<u.length;r++)a=u[r],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function u22(e,t){if(e==null)return{};var n={},a=Object.keys(e),r,u;for(u=0;u<a.length;u++)r=a[u],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}var KBn=o.forwardRef(function(e,t){var n=e.children,a=$Ct(e,Xo2),r=xCt(a),u=r.open,c=$Ct(r,Qo2);return o.useImperativeHandle(t,function(){return{open:u}},[u]),o.createElement(o.Fragment,null,n(Pt(Pt({},c),{},{open:u})))});KBn.displayName="Dropzone";var YUn={disabled:!1,getFilesFromEvent:bo2,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};KBn.defaultProps=YUn,KBn.propTypes={children:L.func,accept:L.objectOf(L.arrayOf(L.string)),multiple:L.bool,preventDropOnDocument:L.bool,noClick:L.bool,noKeyboard:L.bool,noDrag:L.bool,noDragEventsBubbling:L.bool,minSize:L.number,maxSize:L.number,maxFiles:L.number,disabled:L.bool,getFilesFromEvent:L.func,onFileDialogCancel:L.func,onFileDialogOpen:L.func,useFsAccessApi:L.bool,autoFocus:L.bool,onDragEnter:L.func,onDragLeave:L.func,onDragOver:L.func,onDrop:L.func,onDropAccepted:L.func,onDropRejected:L.func,onError:L.func,validator:L.func};var XBn={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xCt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Pt(Pt({},YUn),e),n=t.accept,a=t.disabled,r=t.getFilesFromEvent,u=t.maxSize,c=t.minSize,l=t.multiple,f=t.maxFiles,s=t.onDragEnter,d=t.onDragLeave,g=t.onDragOver,m=t.onDrop,v=t.onDropAccepted,C=t.onDropRejected,h=t.onFileDialogCancel,b=t.onFileDialogOpen,p=t.useFsAccessApi,y=t.autoFocus,j=t.preventDropOnDocument,E=t.noClick,O=t.noKeyboard,M=t.noDrag,k=t.noDragEventsBubbling,D=t.onError,S=t.validator,B=o.useMemo(function(){return Go2(n)},[n]),H=o.useMemo(function(){return Uo2(n)},[n]),N=o.useMemo(function(){return typeof b=="function"?b:KUn},[b]),W=o.useMemo(function(){return typeof h=="function"?h:KUn},[h]),x=o.useRef(null),T=o.useRef(null),A=o.useReducer(c22,XBn),Z=UBn(A,2),Q=Z[0],ne=Z[1],V=Q.isFocused,F=Q.isFileDialogActive,Y=o.useRef(typeof window<"u"&&window.isSecureContext&&p&&Zo2()),ie=function(){!Y.current&&F&&setTimeout(function(){if(T.current){var he=T.current.files;he.length||(ne({type:"closeDialog"}),W())}},300)};o.useEffect(function(){return window.addEventListener("focus",ie,!1),function(){window.removeEventListener("focus",ie,!1)}},[T,F,W,Y]);var q=o.useRef([]),fe=function(he){x.current&&x.current.contains(he.target)||(he.preventDefault(),q.current=[])};o.useEffect(function(){return j&&(document.addEventListener("dragover",NUn,!1),document.addEventListener("drop",fe,!1)),function(){j&&(document.removeEventListener("dragover",NUn),document.removeEventListener("drop",fe))}},[x,j]),o.useEffect(function(){return!a&&y&&x.current&&x.current.focus(),function(){}},[x,y,a]);var ce=o.useCallback(function(J){D?D(J):console.error(J)},[D]),Ce=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J),q.current=[].concat(e22(q.current),[J.target]),ICt(J)&&Promise.resolve(r(J)).then(function(he){if(!(WCt(J)&&!k)){var at=he.length,He=at>0&&Vo2({files:he,accept:B,minSize:c,maxSize:u,multiple:l,maxFiles:f,validator:S}),Et=at>0&&!He;ne({isDragAccept:He,isDragReject:Et,isDragActive:!0,type:"setDraggedFiles"}),s&&s(J)}}).catch(function(he){return ce(he)})},[r,s,ce,k,B,c,u,l,f,S]),le=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J);var he=ICt(J);if(he&&J.dataTransfer)try{J.dataTransfer.dropEffect="copy"}catch{}return he&&g&&g(J),!1},[g,k]),ee=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J);var he=q.current.filter(function(He){return x.current&&x.current.contains(He)}),at=he.indexOf(J.target);at!==-1&&he.splice(at,1),q.current=he,!(he.length>0)&&(ne({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),ICt(J)&&d&&d(J))},[x,d,k]),ge=o.useCallback(function(J,he){var at=[],He=[];J.forEach(function(Et){var je=VUn(Et,B),qt=UBn(je,2),_n=qt[0],Dc=qt[1],KO=FUn(Et,c,u),XO=UBn(KO,2),CT=XO[0],bT=XO[1],yT=S?S(Et):null;if(_n&&CT&&!yT)at.push(Et);else{var pT=[Dc,bT];yT&&(pT=pT.concat(yT)),He.push({file:Et,errors:pT.filter(function(OT){return OT})})}}),(!l&&at.length>1||l&&f>=1&&at.length>f)&&(at.forEach(function(Et){He.push({file:Et,errors:[Ro2]})}),at.splice(0)),ne({acceptedFiles:at,fileRejections:He,type:"setFiles"}),m&&m(at,He,he),He.length>0&&C&&C(He,he),at.length>0&&v&&v(at,he)},[ne,l,B,c,u,f,m,v,C,S]),We=o.useCallback(function(J){J.preventDefault(),J.persist(),Pe(J),q.current=[],ICt(J)&&Promise.resolve(r(J)).then(function(he){WCt(J)&&!k||ge(he,J)}).catch(function(he){return ce(he)}),ne({type:"reset"})},[r,ge,ce,k]),U=o.useCallback(function(){if(Y.current){ne({type:"openDialog"}),N();var J={multiple:l,types:H};window.showOpenFilePicker(J).then(function(he){return r(he)}).then(function(he){ge(he,null),ne({type:"closeDialog"})}).catch(function(he){Yo2(he)?(W(he),ne({type:"closeDialog"})):Ko2(he)?(Y.current=!1,T.current?(T.current.value=null,T.current.click()):ce(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):ce(he)});return}T.current&&(ne({type:"openDialog"}),N(),T.current.value=null,T.current.click())},[ne,N,W,p,ge,ce,H,l]),qe=o.useCallback(function(J){!x.current||!x.current.isEqualNode(J.target)||(J.key===" "||J.key==="Enter"||J.keyCode===32||J.keyCode===13)&&(J.preventDefault(),U())},[x,U]),se=o.useCallback(function(){ne({type:"focus"})},[]),te=o.useCallback(function(){ne({type:"blur"})},[]),_e=o.useCallback(function(){E||(To2()?setTimeout(U,0):U())},[E,U]),Oe=function(he){return a?null:he},K=function(he){return O?null:Oe(he)},pe=function(he){return M?null:Oe(he)},Pe=function(he){k&&he.stopPropagation()},xe=o.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=J.refKey,at=he===void 0?"ref":he,He=J.role,Et=J.onKeyDown,je=J.onFocus,qt=J.onBlur,_n=J.onClick,Dc=J.onDragEnter,KO=J.onDragOver,XO=J.onDragLeave,CT=J.onDrop,bT=$Ct(J,Jo2);return Pt(Pt(YBn({onKeyDown:K(Sc(Et,qe)),onFocus:K(Sc(je,se)),onBlur:K(Sc(qt,te)),onClick:Oe(Sc(_n,_e)),onDragEnter:pe(Sc(Dc,Ce)),onDragOver:pe(Sc(KO,le)),onDragLeave:pe(Sc(XO,ee)),onDrop:pe(Sc(CT,We)),role:typeof He=="string"&&He!==""?He:"presentation"},at,x),!a&&!O?{tabIndex:0}:{}),bT)}},[x,qe,se,te,_e,Ce,le,ee,We,O,M,a]),ze=o.useCallback(function(J){J.stopPropagation()},[]),Zt=o.useMemo(function(){return function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he=J.refKey,at=he===void 0?"ref":he,He=J.onChange,Et=J.onClick,je=$Ct(J,qo2),qt=YBn({accept:B,multiple:l,type:"file",style:{display:"none"},onChange:Oe(Sc(He,We)),onClick:Oe(Sc(Et,ze)),tabIndex:-1},at,T);return Pt(Pt({},qt),je)}},[T,n,l,We,a]);return Pt(Pt({},Q),{},{isFocused:V&&!a,getRootProps:xe,getInputProps:Zt,rootRef:x,inputRef:T,open:Oe(U)})}function c22(e,t){switch(t.type){case"focus":return Pt(Pt({},e),{},{isFocused:!0});case"blur":return Pt(Pt({},e),{},{isFocused:!1});case"openDialog":return Pt(Pt({},XBn),{},{isFileDialogActive:!0});case"closeDialog":return Pt(Pt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Pt(Pt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Pt(Pt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Pt({},XBn);default:return e}}function KUn(){}const XUn=({fileRejections:e})=>e.length?_.jsx(P.Paper,{variant:"outlined",sx:{py:1,px:2,mt:3,bgcolor:t=>X(t.palette.error.main,.08),borderColor:t=>X(t.palette.error.main,.24)},children:e.map(({file:t,errors:n})=>{const{path:a,size:r}=NBn(t);return _.jsxs(P.Box,{sx:{my:1},children:[_.jsxs(P.Typography,{variant:"subtitle2",noWrap:!0,children:[a," - ",r?SBn(r):""]}),n.map(u=>_.jsxs(P.Box,{component:"span",sx:{typography:"caption"},children:["- ",u.message]},u.code))]},a)})}):null,l22=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return _.jsx(P.Stack,{position:"absolute",width:1,height:1,maxHeight:"100%",alignItems:"center",justifyContent:"center",top:0,right:0,bottom:0,left:0,padding:2,margin:"auto",children:_.jsx("img",{alt:"file preview",src:t,style:{borderRadius:8,width:"auto",maxWidth:"100%",maxHeight:"100%",height:"auto"}})})},f22=Bt("div")(({theme:e})=>({outline:"none",cursor:"pointer",overflow:"hidden",position:"relative",padding:e.spacing(5),borderRadius:e.shape.borderRadius,transition:e.transitions.create("padding"),backgroundColor:e.palette.background.neutral,border:`1px dashed ${X(e.palette.grey[500],.32)}`,"&:hover":{opacity:.72}})),s22=({header:e,description:t,sx:n,...a})=>_.jsxs(P.Stack,{spacing:5,alignItems:"center",justifyContent:"center",direction:{xs:"column",md:"row"},sx:{width:1,textAlign:{xs:"center",md:"left"},...n},...a,children:[_.jsx(yIn,{sx:{width:220}}),_.jsxs("div",{children:[_.jsx(P.Typography,{gutterBottom:!0,variant:"h5",children:e||"Soltar ou selecionar arquivos"}),_.jsx(P.Typography,{variant:"body2",sx:{color:"text.secondary"},children:t||_.jsxs(_.Fragment,{children:["Solte os arquivos aqui ou clique",_.jsx(P.Typography,{variant:"body2",component:"span",sx:{mx:.5,color:"primary.main",textDecoration:"underline"},children:"procurar"}),"na sua máquina"]})})]})]}),QUn=({id:e,disabled:t,multiple:n=!1,error:a,helperText:r,file:u,onDelete:c,files:l,thumbnail:f,onRemove:s,onHandleMainImage:d,mainUrl:g,sx:m,dropZoneProps:v,placeholderProps:C,placeholderAlt:h,image:b,tabIndex:p,...y})=>{const{getRootProps:j,getInputProps:E,isDragActive:O,isDragReject:M,fileRejections:k}=xCt({multiple:n,disabled:t,...y}),D=!!u&&!n||b,S=l&&n&&l.length>0,B=M||!!a;return _.jsxs(P.Box,{sx:{width:1,position:"relative",...m},children:[_.jsxs(f22,{...j(),sx:{...O&&{opacity:.72},...B&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...t&&{opacity:.48,pointerEvents:"none"},...v},children:[_.jsx("input",{...E(),id:e,tabIndex:p}),h?_.jsx(P.Stack,{sx:{...D&&{opacity:0}},children:h}):_.jsx(s22,{sx:{...D&&{opacity:0}},header:C==null?void 0:C.title,description:C==null?void 0:C.description}),D&&_.jsx(l22,{file:u||b||""})]}),r&&_.jsx(P.FormHelperText,{error:!!a,sx:H=>({mx:"14px",color:t?H.palette.grey[500]:void 0}),children:r}),_.jsx(XUn,{fileRejections:k}),D&&c&&_.jsx(P.IconButton,{size:"small",onClick:c,sx:{top:16,right:16,zIndex:9,position:"absolute",color:H=>X(H.palette.common.white,.8),bgcolor:H=>X(H.palette.grey[900],.72),"&:hover":{bgcolor:H=>X(H.palette.grey[900],.48)}},children:_.jsx(Le,{icon:"CLOSE_MARK_BUTTON",width:18})}),S&&_.jsx(_.Fragment,{children:_.jsx(P.Box,{sx:{my:3},children:_.jsx(mo2,{files:l,thumbnail:f,onRemove:s,onHandleMainImage:d,mainUrl:g})})})]})},d22=({file:e})=>{if(!e)return null;const t=typeof e=="string"?e:e.preview;return _.jsx("img",{alt:"avatar",src:t,style:{zIndex:8,overflow:"hidden",borderRadius:"50%",position:"absolute",width:"calc(100% - 16px)",height:"calc(100% - 16px)"}})},g22=Bt("div")(({theme:e})=>({width:144,height:144,margin:"auto",display:"flex",cursor:"pointer",overflow:"hidden",borderRadius:"50%",alignItems:"center",position:"relative",justifyContent:"center",border:`1px dashed ${X(e.palette.grey[500],.32)}`})),_22=Bt("div")(({theme:e})=>({zIndex:7,display:"flex",borderRadius:"50%",position:"absolute",alignItems:"center",flexDirection:"column",justifyContent:"center",width:"calc(100% - 16px)",height:"calc(100% - 16px)",color:e.palette.text.disabled,backgroundColor:e.palette.background.neutral,transition:e.transitions.create("opacity",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.shorter})})),JUn=({error:e,file:t,image:n,disabled:a,helperText:r,sx:u,tabIndex:c,...l})=>{const{getRootProps:f,getInputProps:s,isDragActive:d,isDragReject:g,fileRejections:m}=xCt({multiple:!1,disabled:a,...l}),v=!!t||n,C=g||!!e;return _.jsxs(_.Fragment,{children:[_.jsxs(g22,{...f(),sx:{...d&&{opacity:.72},...C&&{borderColor:"error.light",...v&&{bgcolor:"error.lighter"}},...a&&{opacity:.48,pointerEvents:"none"},...v&&{"&:hover":{"& .placeholder":{opacity:1}}},...u},children:[_.jsx("input",{...s(),tabIndex:c}),v&&_.jsx(d22,{file:t||n||""}),_.jsxs(_22,{className:"placeholder",sx:{"&:hover":{opacity:.72},...v&&{zIndex:9,opacity:0,color:"common.white",bgcolor:h=>X(h.palette.grey[900],.64)},...C&&{color:"error.main",bgcolor:"error.lighter"}},children:[_.jsx(Le,{icon:"ADD_IMAGE",width:24,sx:{mb:1}}),_.jsx(P.Typography,{variant:"caption",children:t?"Atualizar foto":"Carregar foto"})]})]}),r&&r,_.jsx(XUn,{fileRejections:m})]})},m22=Bt("div")(({theme:e})=>({width:64,height:64,fontSize:24,display:"flex",flexShrink:0,cursor:"pointer",alignItems:"center",justifyContent:"center",margin:e.spacing(.5),color:e.palette.text.disabled,borderRadius:e.shape.borderRadius,border:`dashed 1px ${e.palette.divider}`,backgroundColor:X(e.palette.grey[500],.08),"&:hover":{opacity:.72}})),v22=({placeholderAlt:e,error:t,disabled:n,sx:a,tabIndex:r,...u})=>{const{getRootProps:c,getInputProps:l,isDragActive:f,isDragReject:s}=xCt({disabled:n,...u}),d=s||t;return _.jsxs(m22,{...c(),sx:{...f&&{opacity:.72},...d&&{color:"error.main",bgcolor:"error.lighter",borderColor:"error.light"},...n&&{opacity:.48,pointerEvents:"none"},...a},children:[_.jsx("input",{...l(),tabIndex:r}),e||_.jsx(Le,{icon:"CLOUD_UPLOAD",width:28})]})},qUn=({onFileCropped:e,onImageUploaded:t,onCancel:n})=>{const a=o.useId(),[r,u]=o.useState(),[c,l,f]=BSn(),[s,d]=o.useState();return{id:a,setCropModalOpen:f,handleRemove:()=>{e(void 0),t(void 0),f(!1)},toggleCropModalOpen:l,cropModalOpen:c,cancelChanges:()=>{n&&n(),f(!1)},saveChanges:()=>{r!==void 0&&r.getCroppedCanvas().toBlob(b=>{if(!b)return;const p=new File([b],"imagem");e(p),l()},"image/png",1)},previewImage:()=>{r!==void 0&&d(r.getCroppedCanvas().toDataURL())},setCropper:u,preview:s,closePreviewImage:()=>d(void 0)}},eGn=({id:e,open:t,onClose:n,label:a,onSave:r,onRemove:u,onPreview:c,imageSrc:l,aspectRatio:f,onInitialized:s})=>{const[d,g]=o.useState(.5);return _.jsx(bUn,{open:t,onClose:n,dialogTitle:a,actions:_.jsxs(_.Fragment,{children:[_.jsx(P.Button,{variant:"outlined",size:"medium",onClick:n,color:"inherit",children:"Cancelar"}),_.jsx(P.Button,{variant:"contained",size:"medium",onClick:r,children:"Salvar"})]}),fullWidth:!0,maxWidth:"sm",keepMounted:!0,children:_.jsxs(P.Stack,{gap:2,children:[_.jsx(YZn,{imageSrc:l,aspectRatio:f,onInitialized:s,zoom:d,onZoomChange:g}),_.jsxs(P.Stack,{gap:1.5,children:[_.jsxs(P.Stack,{width:1,direction:"row",gap:3,flex:1,alignItems:"center",children:[_.jsx(P.Typography,{variant:"body1",children:"Zoom"}),_.jsx(P.Slider,{value:d,onChange:(m,v)=>g(Array.isArray(v)?v[0]:v),min:.1,max:2,size:"medium",step:.0125})]}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(P.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:_.jsx(Le,{icon:"DELETE_MARK_BUTTON_02"}),onClick:u,children:"Remover"}),_.jsx(P.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:_.jsx(Le,{icon:"PLAY_SIMPLE"}),onClick:c,children:"Pré-visualizar"}),_.jsx(P.Button,{variant:"outlined",color:"inherit",size:"large",fullWidth:!0,startIcon:_.jsx(Le,{icon:"SEARCH_IMAGE"}),component:"label",htmlFor:e,children:"Alterar"})]})]})]})})},h22=P.styled(P.Stack)({position:"relative",width:"100%",borderRadius:8,overflow:"hidden","&:hover .actions":{display:"flex"}}),C22=P.styled(P.Stack)(({theme:e})=>({display:"none",position:"absolute",alignItems:"center",justifyContent:"center",flexDirection:"row",gap:12,width:"100%",height:"100%",backgroundColor:P.alpha(e.palette.primary.main,.9),zIndex:999,button:{"&, &:hover, &:focus":{backgroundColor:"#fff"}}})),b22=P.styled(P.CircularProgress)({position:"absolute",width:"100%",height:"100%",zIndex:99,backgroundColor:"#fff",borderRadius:"50%"}),tGn=({onFileCropped:e,onImageUploaded:t,onCancel:n,aspect:a,label:r,image:u="",uploading:c,file:l,tabIndex:f,...s})=>{const{id:d,setCropModalOpen:g,handleRemove:m,toggleCropModalOpen:v,cropModalOpen:C,cancelChanges:h,saveChanges:b,previewImage:p,setCropper:y,preview:j,closePreviewImage:E}=qUn({onFileCropped:e,onImageUploaded:t,onCancel:n});return _.jsxs(_.Fragment,{children:[_.jsxs(h22,{children:[c&&_.jsx(fCt,{}),_.jsx(QUn,{...s,id:d,file:l,onDrop:O=>{if(O.length>0){g(!0);const M=new FileReader;M.addEventListener("load",()=>{var D;const k=((D=M.result)==null?void 0:D.toString())||"";t(k),e(void 0)}),M.readAsDataURL(O[0])}},image:u,tabIndex:f}),(l||u)&&_.jsxs(C22,{className:"actions",children:[_.jsx(P.Button,{color:"inherit",startIcon:_.jsx(Le,{icon:"DELETE_MARK_BUTTON_02",color:"error.main"}),onClick:m,children:"Remover"}),_.jsx(P.Button,{color:"inherit",startIcon:_.jsx(Le,{icon:"SEARCH_IMAGE",color:"primary.maon"}),onClick:v,children:"Editar"})]})]}),_.jsx(eGn,{id:d,open:C,onClose:h,label:r,aspectRatio:a,imageSrc:u,onRemove:m,onSave:b,onPreview:p,onInitialized:y}),_.jsx(P.Dialog,{open:!!j,onClose:E,scroll:"body",PaperProps:{sx:{p:2}},children:j&&_.jsx("img",{src:j,alt:"Preview"})})]})},y22=P.styled(P.Stack)(({theme:e})=>({backgroundColor:"#fff",border:`1px solid ${e.palette.grey[300]}`})),nGn=({children:e,...t})=>_.jsx(y22,{borderRadius:1,gap:3,padding:3,...t,children:e}),p22=P.styled(P.Box)(()=>({marginLeft:"4px",fontWeight:"fontWeightBold"})),O22=P.styled(P.Button)(()=>({fontWeight:"fontWeightSemiBold"})),j22=P.styled(Le)(({theme:e})=>({color:e.palette.primary.main})),w22=({selectedTitle:e,onSelect:t,options:n})=>{const a=WSn();return _.jsxs(_.Fragment,{children:[_.jsx(O22,{disableRipple:!0,color:"inherit",onClick:a.onOpen,endIcon:_.jsx(j22,{icon:a.open?"CHEVRON_UP":"ARROW_DOWN_SIMPLE"}),children:_.jsx(p22,{component:"span",children:e.label})}),_.jsx(CUn,{open:a.open,onClose:a.onClose,children:n.map(r=>_.jsx(P.MenuItem,{selected:r.value===e.value,onClick:()=>{a.onClose(),t(r.value)},children:r.label},r.value))})]})},M22=P.styled(P.Stack)({display:"grid",gridTemplateColumns:"auto auto"}),L22=P.styled(P.Typography)(({theme:e})=>({color:e.palette.grey[600]})),P22=P.styled(P.Typography)(({theme:e})=>({textAlign:"right",color:e.palette.grey[800]})),E22=({data:e,...t})=>e.length===0?null:_.jsx(M22,{gap:1,...t,children:e.map(n=>[_.jsx(L22,{variant:"body2",children:n.label},`label:${n.id}`),_.jsx(P22,{variant:"body2",children:n.value},`value:${n.id}`)])}),k22=P.styled(P.Stack)(({theme:e})=>({backgroundColor:"#fff",minWidth:"250px",padding:24,minHeight:"100vh",borderRight:`1px solid ${e.palette.grey[300]}`})),S22=P.styled(P.Stack)(({theme:e})=>({backgroundColor:"#fff",position:"sticky",top:0,zIndex:999,width:"100%",padding:24,gap:24,borderBottom:`1px solid ${e.palette.grey[300]}`})),D22=P.styled(P.Stack)({flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:24}),B22=P.styled(P.Stack)(({theme:e})=>({height:"100%",width:"50%",flex:1,[e.breakpoints.down(1680)]:{width:"70%"}})),W22=P.styled(P.Typography)(({theme:e})=>({color:e.palette.grey[800],fontSize:18,fontWeight:700})),I22=P.styled(P.Typography)(({theme:e})=>({color:e.palette.grey[500],fontSize:14,fontWeight:400,paddingBottom:24})),$22=P.styled(P.Button)(({theme:e})=>({paddingTop:6,paddingBottom:6,paddingLeft:0,margin:0,marginBottom:4,marginTop:4,width:"100%",display:"block",cursor:"pointer",color:e.palette.grey[600],textAlign:"left",fontWeight:400,fontSize:14,"> span":{color:e.palette.error.main}})),x22=P.styled(q_t)(()=>({height:1,"& .simplebar-content":{height:1}})),z22=P.styled(P.Stack)(()=>({position:"fixed",width:"202px"})),H22=({title:e,sections:t,headerLeftContent:n,headerRightContent:a,onClickBack:r})=>_.jsx(P.Stack,{children:_.jsxs(P.Stack,{direction:"row",children:[_.jsx(k22,{children:_.jsx(x22,{children:_.jsxs(z22,{children:[_.jsx(P.Typography,{variant:"overline",color:"text.disabled",fontWeight:700,children:"ACESSO RÁPIDO"}),t.map((u,c)=>_.jsxs(P.Stack,{children:[_.jsxs($22,{onClick:()=>{u.ref.current&&u.ref.current.scrollIntoView({block:"end",behavior:"smooth"})},children:[u.title,u.isRequired&&_.jsx("span",{children:"*"})]}),c<t.length-1&&_.jsx(P.Divider,{})]},c))]})})}),_.jsxs(P.Stack,{width:"100%",alignItems:"center",mb:8,children:[_.jsx(S22,{children:_.jsxs(D22,{children:[_.jsxs(P.Stack,{flexDirection:"row",gap:2,children:[_.jsx(P.IconButton,{color:"primary",onClick:()=>r(),children:_.jsx(Le,{icon:"CHEVRON_LEFT"})}),_.jsx(P.Typography,{variant:"h4",children:e}),n]}),_.jsxs(P.Stack,{direction:"row",gap:2,alignItems:"center",minWidth:"max-content",children:[_.jsx(sSn,{disabled:!0}),a]})]})}),_.jsx(B22,{children:t.map(u=>_.jsxs(P.Stack,{ref:u.ref,paddingTop:3,paddingBottom:2,alignItems:"start",width:"100%",children:[_.jsx(W22,{children:u.title}),_.jsx(I22,{children:u.subTitle}),_.jsx(nGn,{width:"100%",borderRadius:1,gap:1.5,padding:3,children:u.child})]},u.title))})]})]})}),un=({name:e,helperText:t,rules:n,onChange:a,tabIndex:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:n,render:({field:{ref:l,...f},fieldState:{error:s}})=>_.jsx(P.TextField,{...f,onChange:d=>{f.onChange(d),a&&a(d)},inputRef:l,fullWidth:!0,error:!!s,helperText:(s==null?void 0:s.message)||t,...u,inputProps:{...u.inputProps,tabIndex:r}})})},rGn=({name:e,helperText:t,onChange:n,tabIndex:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,render:({field:c,fieldState:{error:l}})=>_.jsxs("div",{children:[_.jsx(P.FormControlLabel,{control:_.jsx(P.Switch,{...c,checked:c.value,onChange:(f,s)=>{c.onChange(f),n&&n(f,s)},inputProps:{tabIndex:a}}),...r}),(!!l||t)&&_.jsx(P.FormHelperText,{error:!!l,sx:f=>({mx:"14px",color:r.disabled?f.palette.grey[500]:void 0}),children:l?l==null?void 0:l.message:t})]})})},A22=[{label:"JSON",value:"JSON"},{label:"XML",value:"XML"},{label:"BINÁRIO",value:"BYTEA"}],R22=[{label:"PUT",value:"PUT"},{label:"POST",value:"POST"},{label:"GET",value:"GET"},{label:"DELETE",value:"DELETE"}],V22=P.styled(P.Stack)(({theme:e})=>({border:`1px solid ${P.alpha(e.palette.primary.main,.3)}`,backgroundColor:P.alpha(e.palette.primary.main,.05),flexDirection:"row",alignItems:"center",padding:10,gap:10,borderRadius:8,marginBottom:8,svg:{color:e.palette.primary.main}})),F22=P.styled(P.IconButton)(({theme:e})=>({svg:{color:`${e.palette.primary.main} !important`}})),N22=P.styled(P.IconButton)(()=>({height:"38px",alignSelf:"center"})),T22=({webhookData:e,isEditing:t=!1,haveTip:n=!1})=>{const{control:a}=Ie.useFormContext(),{fields:r,append:u,remove:c}=Ie.useFieldArray({name:"headers",control:a}),l=()=>{u({value:"",name:""})};return _.jsxs(_.Fragment,{children:[n&&_.jsxs(V22,{children:[_.jsx(Le,{icon:"INFO_CIRCLE"}),_.jsx(P.Typography,{variant:"caption",color:"text.secondary",children:"Webhooks permitem que serviços externos sejam notificados quando determinados eventos acontecem. Saiba mais acessando a documentação do Webhook"})]}),t&&_.jsx(un,{name:"name",label:"Nome do webhook"}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(un,{name:"url",label:"URL de endpoint",rules:{required:{value:!0,message:"Url é obrigatório"}}}),_.jsx(un,{name:"filter",label:"Filtro"})]}),t&&e&&_.jsxs(_.Fragment,{children:[_.jsx(un,{variant:"filled",name:"solution",label:"Solução",disabled:!0}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(un,{variant:"filled",name:"resource",label:"Origem",disabled:!0}),_.jsx(un,{variant:"filled",name:"resourceID",label:"ID origem",disabled:!0,InputProps:{endAdornment:_.jsx(P.InputAdornment,{position:"end",children:_.jsx(F22,{onClick:()=>navigator.clipboard.writeText(e.resourceID),children:_.jsx(Le,{className:"copyIcon",icon:"COPY_CONTENT"})})})}}),_.jsx(un,{variant:"filled",name:"event",label:"Evento",disabled:!0})]})]}),_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsxs(P.Stack,{width:"35%",gap:2,children:[_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Tipo de conteúdo:"}),_.jsx(QBn,{name:"content_type",options:A22,row:!0,decorated:!0})]}),_.jsxs(P.Stack,{gap:2,children:[_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Métodos Http:"}),_.jsx(QBn,{name:"http_method",options:R22,row:!0,decorated:!0})]})]}),_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Status:"}),_.jsx(rGn,{name:"active",label:"Ativo"}),_.jsx(P.Typography,{color:"text.secondary",variant:"overline",children:"Cabeçalho:"}),r==null?void 0:r.map((f,s)=>_.jsxs(P.Stack,{direction:"row",gap:2,children:[_.jsx(un,{name:`headers.${s}.name`,label:"Chave",rules:{required:{value:!0,message:"Chave é obrigatório"}}}),_.jsx(un,{name:`headers.${s}.value`,label:"Valor",rules:{required:{value:!0,message:"Valor é obrigatório"}}}),_.jsx(N22,{onClick:()=>c(s),color:"error",children:_.jsx(Le,{icon:"DELETE_MARK_BUTTON_02"})})]},f.id)),_.jsx(CRn,{actionType:"NEW",size:"large",variant:"outlined",color:"inherit",fullWidth:!0,onClick:()=>l(),children:"Adicionar novo cabeçalho"}),_.jsx(P.Divider,{})]})},aGn=({name:e,helperText:t,rules:n,onSelectOption:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:l}})=>_.jsx(fSn,{...c,...r,onChange:f=>{a&&a(f),c.onChange(f)},error:!!l,helperText:(l==null?void 0:l.message)||t})})},iGn=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:r,rules:n,render:({field:{name:u,onChange:c,value:l,ref:f},fieldState:{error:s}})=>_.jsx(HBn,{ref:f,...a,name:u,value:l,error:!!s,helperText:(s==null?void 0:s.message)||t,onChange:({target:{value:d}})=>c(d)})})},Z22=({name:e,containerProps:t,required:n,rules:a,tabIndex:r})=>{const u=`${e}.zipCode`,c=`${e}.publicPlace`,l=`${e}.number`,f=`${e}.district`,s=`${e}.complement`,d=`${e}.state`,g=`${e}.city`,m=v=>{v.key==="Enter"&&v.preventDefault()};return _.jsxs(P.Stack,{gap:1.5,...t,children:[_.jsxs(P.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[_.jsx(iGn,{name:u,label:"CEP",mask:[{mask:"00000-000"}],InputProps:{endAdornment:_.jsx(P.InputAdornment,{position:"end",children:_.jsx(P.CircularProgress,{size:24})})},rules:a,onKeyDown:m,required:n,sx:{width:"auto",flex:1,minWidth:160},tabIndex:r}),_.jsxs(P.Stack,{direction:{xs:"column",sm:"row"},gap:1.5,flex:{xs:1,md:"1 1 50%"},children:[_.jsx(un,{name:c,label:"Logradouro",onKeyDown:m,inputProps:{maxLength:70},sx:{width:"auto",minWidth:250,flex:1},tabIndex:r}),_.jsx(un,{name:l,label:"Número",onKeyDown:m,inputProps:{maxLength:6},sx:{width:"auto",minWidth:100},tabIndex:r})]})]}),_.jsxs(P.Stack,{direction:{xs:"column",md:"row"},gap:1.5,flexWrap:"wrap",children:[_.jsx(un,{name:f,label:"Bairro",onKeyDown:m,inputProps:{maxLength:20},sx:{width:"auto",flex:{xs:1,md:"1 1 100px"}},tabIndex:r}),_.jsx(un,{name:s,label:"Complemento",onKeyDown:m,inputProps:{maxLength:30},sx:{minWidth:200,width:"auto",flex:{xs:1,md:"1 1 500px"}},tabIndex:r})]}),_.jsxs(P.Stack,{gap:1.5,flexWrap:"wrap",direction:{xs:"column",sm:"row"},children:[_.jsx(aGn,{name:d,label:"Estado",options:[],disabled:!0,required:n,sx:{flex:1},tabIndex:r}),_.jsx(un,{name:g,label:"Cidade",disabled:!0,required:n,sx:{flex:1},tabIndex:r})]})]})},U22=({name:e,rules:t,helperText:n,tabIndex:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,rules:t,render:({field:c,fieldState:{error:l}})=>_.jsxs("div",{children:[_.jsx(P.FormControlLabel,{control:_.jsx(P.Checkbox,{...c,checked:c.value,tabIndex:a}),...r}),(!!l||n)&&_.jsx(P.FormHelperText,{error:!!l,children:l?l==null?void 0:l.message:n})]})})},G22=({row:e,name:t,rules:n,label:a,options:r,spacing:u,helperText:c,required:l,...f})=>{const{control:s}=Ie.useFormContext(),d=(g,m)=>g.includes(m)?g.filter(v=>v!==m):[...g,m];return _.jsx(Ie.Controller,{name:t,control:s,rules:n,render:({field:{value:g=[],...m},fieldState:{error:v}})=>_.jsxs(P.FormControl,{component:"fieldset",children:[a&&_.jsx(P.FormLabel,{component:"legend",sx:{typography:"body2"},required:l,children:a}),_.jsx(P.FormGroup,{sx:{...e&&{flexDirection:"row"},"& .MuiFormControlLabel-root":{"&:not(:last-of-type)":{mb:u||0},...e&&{mr:0,"&:not(:last-of-type)":{mr:u||2}}}},children:r.map(C=>_.jsx(P.FormControlLabel,{control:_.jsx(P.Checkbox,{checked:g.includes(C.value),onChange:()=>m.onChange(d(g,C.value))}),label:C.label,...f},C.value))}),(!!v||c)&&_.jsx(P.FormHelperText,{error:!!v,sx:C=>({color:f.disabled?C.palette.grey[500]:void 0}),children:v?v==null?void 0:v.message:c})]})})},Y22=({keyName:e,inputs:t=[],rules:n,tabIndex:a,...r})=>{const u=o.useRef(null),{control:c,setValue:l,formState:{errors:f}}=Ie.useFormContext(),s=m=>{const v=m.clipboardData.getData("text").split("");t.map((C,h)=>l(C,v[h])),m.preventDefault()},d=(m,v)=>{const{maxLength:C,value:h,name:b}=m.target,p=b.replace(e,""),y=Number(p),j=document.querySelector(`input[name=${e}${y+1}]`);h.length>C&&(m.target.value=h[0]),h.length>=C&&y<6&&j!==null&&j.focus(),v(m)};DSn("paste",s,u);const g=t.some(m=>f[m]);return _.jsxs(P.Stack,{children:[_.jsx(P.Stack,{direction:"row",spacing:2,justifyContent:"center",ref:u,children:t.map((m,v)=>_.jsx(Ie.Controller,{name:`${e}${v+1}`,control:c,rules:n,render:({field:C,fieldState:{error:h}})=>_.jsx(P.TextField,{...r,...C,autoComplete:"none",error:!!h,autoFocus:v===0,placeholder:"-",onChange:b=>{d(b,C.onChange)},onFocus:b=>b.currentTarget.select(),InputProps:{sx:{width:{xs:36,sm:56},height:{xs:36,sm:56},"& input":{p:0,textAlign:"center"}}},inputProps:{maxLength:1,type:"number",tabIndex:a}})},m))}),g&&_.jsx(P.FormHelperText,{error:!0,sx:{px:2},children:"Código é obrigatório"})]})},K22=({name:e,rules:t,helperText:n,...a})=>{const{control:r}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:r,rules:{...t,validate:{...t==null?void 0:t.validate,validation:u=>{const c="#"+u.replaceAll("#","");return/^#([0-9A-Fa-f]{3}){1,2}$/.test(c)?!0:"Cor inválida"}}},render:({field:{ref:u,onChange:c,...l},fieldState:{error:f}})=>_.jsx(LNn,{...l,onChangeColor:c,inputRef:u,fullWidth:!0,error:!!f,helperText:(f==null?void 0:f.message)||n,...a})})},X22=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:t,render:({field:{ref:l,...f},fieldState:{error:s}})=>{var d;return _.jsx(jT.DatePicker,{inputRef:l,format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...u.localeText},...f,...u,value:f.value?new Date(f.value):null,slotProps:{textField:{...(d=u.slotProps)==null?void 0:d.textField,required:r,error:!!s,helperText:(s==null?void 0:s.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},Q22=({name:e,label:t,rules:n,tabIndex:a,helperText:r,required:u,...c})=>{const{control:l,setError:f}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:l,rules:n,render:({field:{value:s,onChange:d},fieldState:{error:g}})=>_.jsx(jT.DateRangePicker,{format:"dd/MM/yyyy",localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",...c.localeText},value:[(s==null?void 0:s.startDate)||null,(s==null?void 0:s.endDate)||null],onChange:m=>d({startDate:m[0],endDate:m[1]}),onError:m=>{f(e,{message:m[0]||m[1]||void 0})},...c,slotProps:{textField:({position:m})=>{var v;return{...(v=c.slotProps)==null?void 0:v.textField,required:u,error:!!g,helperText:(g==null?void 0:g.message)||r,autoComplete:"off",spellCheck:"false",fullWidth:!0,label:m==="start"?`${t} (Dt. Início)`:`${t} (Dt. Fim)`,inputProps:{tabIndex:a}}}},sx:{width:1}})})},J22=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:t,render:({field:{ref:l,...f},fieldState:{error:s}})=>{var d;return _.jsx(jT.DateTimePicker,{format:"dd/MM/yyyy HH:mm",inputRef:l,localeText:{previousMonth:"Mês anterior",nextMonth:"Próximo mês",fieldDayPlaceholder:()=>"dd",fieldMonthPlaceholder:()=>"mm",fieldYearPlaceholder:()=>"aaaa",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...f,...u,value:f.value?new Date(f.value):null,slotProps:{textField:{...(d=u.slotProps)==null?void 0:d.textField,required:r,error:!!s,helperText:(s==null?void 0:s.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},q22=({id:e,children:t,onSubmit:n,methods:a,...r})=>_.jsx(Ie.FormProvider,{...a,children:_.jsx(P.Stack,{component:"form",id:e,onSubmit:n,flex:1,width:1,noValidate:!0,...r,children:t})}),eu2=({name:e,helperText:t,rules:n,...a})=>{const{control:r}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:r,rules:n,render:({field:{ref:u,value:c,...l},fieldState:{error:f}})=>_.jsx(IBn,{value:c,inputRef:u,fullWidth:!0,error:!!f,helperText:(f==null?void 0:f.message)||t,...a,...l,name:e})})},tu2=({name:e,label:t="",rules:n,helperText:a,changed:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:n,render:({field:l,fieldState:{error:f}})=>_.jsx(P.Autocomplete,{...l,onChange:(s,d)=>{r&&r(d),l.onChange(d)},renderInput:s=>_.jsx(P.TextField,{label:t,error:!!f,helperText:f?f==null?void 0:f.message:a,...s}),...u})})},nu2=({name:e,helperText:t,rules:n,onChange:a,...r})=>{const{control:u}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:u,rules:n,render:({field:c,fieldState:{error:l}})=>_.jsx(MCt,{...c,onChange:f=>{c.onChange(f),a&&a(f)},fullWidth:!0,error:!!l,helperText:(l==null?void 0:l.message)||t,...r})})},ru2=({name:e,sx:t,rules:n,passwordSize:a,specialCharacter:r,upperCaseChar:u,numberChar:c,showErrorMessage:l,match:f,...s})=>{const{watch:d}=Ie.useFormContext(),g=d(e),[m,v]=o.useState(!1),{hasNumberChar:C,hasSpecialCharacter:h,hasUpperCaseChar:b,isLengthValid:p}=SCt(g,a,c,r,u);return _.jsx(un,{...s,name:e,type:m?"text":"password",InputProps:{endAdornment:_.jsx(P.InputAdornment,{position:"end",children:_.jsx(P.IconButton,{onClick:()=>v(!m),edge:"end","aria-label":"Mostrar/Ocultar senha",children:_.jsx(Le,{icon:m?"VIEW_ON":"VIEW_OFF"})})})},rules:{...n,validate:{...n==null?void 0:n.validate,validationPassword:y=>{const j=SCt(y,a,c,r,u);return!j.hasNumberChar||!j.hasSpecialCharacter||!j.hasUpperCaseChar||!j.isLengthValid?"Senha inválida":f&&f.fieldPassword&&d(f.fieldPassword)!==y?"As senhas devem ser iguais":!0}}},sx:{...t,"& .MuiFormHelperText-root":{display:(!h||!b||!p||!C)&&!l?"none":void 0}}})},QBn=({name:e,rules:t,row:n,label:a,options:r,spacing:u,helperText:c,decorated:l,onChange:f,tabIndex:s,required:d,disabled:g,...m})=>{const{control:v}=Ie.useFormContext(),C=a?`${e}-${a}`:"";return _.jsx(Ie.Controller,{name:e,control:v,rules:t,render:({field:h,fieldState:{error:b}})=>_.jsxs(P.FormControl,{component:"fieldset",sx:{...l&&{paddingLeft:1.5}},children:[a&&_.jsx(P.FormLabel,{component:"legend",id:C,sx:{typography:"body2"},required:d,children:a}),_.jsx(P.RadioGroup,{...m,...h,onChange:(p,y)=>{h.onChange(p),f&&f(p,y)},"aria-labelledby":C,row:n,children:r.map(p=>_.jsx(P.FormControlLabel,{value:p.value,control:_.jsx(P.Radio,{inputProps:{tabIndex:s},disabled:g,checked:p.value===h.value}),label:p.label,sx:({palette:y})=>({"&:not(:last-of-type)":{mb:u||0},...n&&{mr:0,"&:not(:last-of-type)":{mr:u||2}},...l&&{border:`1px solid ${P.alpha(y.grey[500],.32)}`,borderRadius:1,padding:.25,paddingRight:(u||0)/2||1,...h.value===p.value&&{borderColor:"primary.main",backgroundColor:P.alpha(y.primary.main,.05)}}})},p.value))}),(!!b||c)&&_.jsx(P.FormHelperText,{error:!!b,sx:p=>({color:g?p.palette.grey[500]:void 0}),children:b?b==null?void 0:b.message:c})]})})},au2=({name:e,rules:t,tabIndex:n,helperText:a,required:r,...u})=>{const{control:c}=Ie.useFormContext();return _.jsx(Ie.Controller,{name:e,control:c,rules:t,render:({field:{ref:l,...f},fieldState:{error:s}})=>{var d;return _.jsx(jT.TimePicker,{ampm:!1,format:"HH:mm",inputRef:l,localeText:{fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",...u.localeText},...f,...u,value:f.value?new Date(f.value):null,slotProps:{textField:{...(d=u.slotProps)==null?void 0:d.textField,error:!!s,required:r,helperText:(s==null?void 0:s.message)||a,autoComplete:"off",spellCheck:"false",fullWidth:!0,inputProps:{tabIndex:n}},openPickerButton:{tabIndex:n}}})}})},iu2=({onFileCropped:e,onImageUploaded:t,onCancel:n,aspect:a,label:r,image:u="",uploading:c,file:l,tabIndex:f,...s})=>{const{id:d,setCropModalOpen:g,handleRemove:m,cropModalOpen:v,cancelChanges:C,saveChanges:h,previewImage:b,setCropper:p,preview:y,closePreviewImage:j}=qUn({onFileCropped:e,onImageUploaded:t,onCancel:n});return _.jsxs(_.Fragment,{children:[_.jsxs(P.Stack,{position:"relative",alignItems:"center",justifyContent:"center",children:[c&&_.jsx(b22,{}),_.jsx(JUn,{...s,id:d,file:l,onDrop:E=>{if(E.length>0){g(!0);const O=new FileReader;O.addEventListener("load",()=>{var k;const M=((k=O.result)==null?void 0:k.toString())||"";t(M),e(void 0)}),O.readAsDataURL(E[0])}},image:u,tabIndex:f})]}),_.jsx(eGn,{id:d,open:v,onClose:C,label:r,aspectRatio:a,imageSrc:u,onRemove:m,onSave:h,onPreview:b,onInitialized:p}),_.jsx(P.Dialog,{open:!!y,onClose:j,scroll:"body",PaperProps:{sx:{p:2}},children:y&&_.jsx("img",{src:y,alt:"Preview"})})]})};function oGn(e,t){const{watch:n,setValue:a}=Ie.useFormContext(),[r,u]=o.useState(t),c=n(e)||[];return{uploadFile:async m=>{if(!m){a(e,void 0),u(void 0);return}a(e,m),u(Object.assign(m,{preview:URL.createObjectURL(m)}))},uploadFiles:async m=>{a(e,[...c,...m.map(v=>Object.assign(v,{preview:URL.createObjectURL(v)}))])},handleDeleteFile:()=>{a(e,void 0),u(void 0)},handleRemoveAll:()=>{a(e,void 0)},handleRemove:m=>{const v=c.filter(C=>C!==m);a(e,v)},file:r,setFileValue:u}}const ou2=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:l,onCancel:f,...s})=>{const{control:d}=Ie.useFormContext(),{uploadFile:g,file:m,setFileValue:v}=oGn(e);return _.jsx(Ie.Controller,{name:e,control:d,rules:t,render:({field:{value:C},fieldState:{error:h}})=>_.jsx(iu2,{accept:{"image/*":[]},file:C?m:void 0,onFileCropped:b=>{g(b),c&&c(b)},onImageUploaded:l,onCancel:()=>{v(void 0),f&&f()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&_.jsx(P.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...s})})},uu2=({name:e,rules:t,helperText:n,aspect:a,label:r,image:u,onFileCropped:c,onImageUploaded:l,onCancel:f,...s})=>{const{control:d}=Ie.useFormContext(),{uploadFile:g,file:m,setFileValue:v}=oGn(e);return _.jsx(Ie.Controller,{name:e,control:d,rules:t,render:({field:{value:C},fieldState:{error:h}})=>_.jsx(tGn,{accept:{"image/*":[]},file:C?m:void 0,onFileCropped:b=>{g(b),c&&c(b)},onImageUploaded:l,onCancel:()=>{v(void 0),f&&f()},error:!!h,disableMultiple:!0,helperText:(!!h||n)&&_.jsx(P.FormHelperText,{error:!!h,sx:{px:2},children:h?h==null?void 0:h.message:n}),aspect:a,label:r,image:u,...s})})},uGn=P.styled(P.Button)(({theme:e})=>({borderColor:e.palette.grey[300]})),cGn=P.styled(P.Box)(({theme:e})=>({border:"1.5px solid",borderColor:e.palette.grey[300],height:450,width:"40%",borderRadius:8})),cu2=({selectedItems:e,items:t,loading:n,searchText:a,onAdd:r,onRemove:u,search:c,itemsTitle:l,selectedItemsTitle:f,additionalContent:s,enableSearchInSelectedItems:d,onSearch:g})=>{const[m,v]=o.useState(""),C=P.debounce(g,400),h=t.filter(W=>!e.some(x=>x.id===W.id)),b=e.filter(W=>W.name.toLowerCase().includes(m.toLowerCase())),p=d?b:t.filter(W=>e.some(x=>x.id===W.id)),[y,j]=o.useState([]),[E,O]=o.useState([]),M=()=>{r(y),j([])},k=()=>{u(E),O([])},D=W=>{O(W?p:[])},S=W=>{j(W?h:[])},B=(W,x)=>{O(x?T=>[...T,W]:T=>T.filter(A=>A.id!==W.id))},H=(W,x)=>{j(x?T=>[...T,W]:T=>T.filter(A=>A.id!==W.id))},N=W=>{W.key==="Enter"&&W.preventDefault()};return _.jsx(P.Stack,{children:_.jsxs(P.Stack,{direction:"row",alignItems:"center",gap:3,children:[_.jsx(cGn,{display:"flex",flex:1,children:_.jsxs(P.Stack,{flex:1,children:[_.jsxs(P.Stack,{direction:"row",gap:1,padding:2,children:[_.jsx(P.Checkbox,{size:"small",indeterminate:y.length>0&&y.length!==h.length,checked:y.length>0&&y.length===h.length,onChange:W=>S(W.target.checked)}),_.jsxs(P.Stack,{children:[_.jsx(P.Typography,{variant:"subtitle2",color:"text.primary",children:`${l} cadastrados`}),_.jsx(P.Typography,{variant:"caption",color:"text.disabled",children:`${y.length}/${h.length} selecionados`})]})]}),_.jsx(P.Divider,{}),_.jsxs(P.Stack,{p:2,flex:1,children:[_.jsxs(P.Stack,{direction:"row",gap:1,children:[_.jsx(FBn,{iconPosition:"start",placeholder:"Buscar",onKeyDown:N,size:"small",fullWidth:!0,trigger:"change",onSearch:W=>C(W)}),s]}),_.jsx(ABn,{isLoading:n,loading:_.jsx(P.Stack,{alignItems:"center",justifyContent:"center",flex:1,children:_.jsx(P.CircularProgress,{})}),isEmpty:h.length===0,empty:_.jsx(sCt,{text:c?`Nenhum ${a} encontrado`:`Nenhum ${a} disponível`,sx:{svg:{height:140}}}),children:_.jsx(q_t,{sx:{maxHeight:280},children:h.map(W=>_.jsxs(P.Stack,{gap:1,marginTop:"8px",children:[_.jsxs(P.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[_.jsx(P.Checkbox,{size:"small",checked:y.includes(W),onChange:x=>H(W,x.target.checked)}),W.label]}),_.jsx(P.Divider,{})]},W.id))})})]})]})}),_.jsxs(P.Stack,{gap:3,children:[_.jsx(uGn,{variant:"outlined",onClick:M,children:_.jsx(Le,{icon:"ARROW_RIGHT_SIMPLE"})}),_.jsx(uGn,{variant:"outlined",onClick:k,children:_.jsx(Le,{icon:"ARROW_LEFT_SIMPLE"})})]}),_.jsx(cGn,{display:"flex",flex:1,children:_.jsxs(P.Stack,{flex:1,children:[_.jsxs(P.Stack,{direction:"row",gap:1,padding:2,children:[_.jsx(P.Checkbox,{size:"small",indeterminate:E.length>0&&E.length!==p.length,checked:E.length>0&&E.length===p.length,onChange:W=>D(W.target.checked)}),_.jsxs(P.Stack,{children:[_.jsx(P.Typography,{variant:"subtitle2",color:"text.primary",children:`${f} selecionados`}),_.jsx(P.Typography,{variant:"caption",color:"text.disabled",children:`${E.length}/${p.length} selecionados`})]})]}),_.jsx(P.Divider,{}),_.jsxs(P.Stack,{p:2,gap:1,children:[d&&_.jsx(FBn,{iconPosition:"start",placeholder:"Buscar",size:"small",fullWidth:!0,trigger:"change",onSearch:W=>v(W??""),onKeyDown:N}),_.jsx(ABn,{isLoading:n,loading:_.jsx(P.Stack,{alignItems:"center",justifyContent:"center",flex:1,children:_.jsx(P.CircularProgress,{})}),isEmpty:p.length===0,empty:_.jsx(sCt,{text:m?`Nenhum ${a} encontrado`:`Nenhum ${a} selecionado`,sx:{svg:{height:140},marginTop:"56px",backgroundColor:"transparent"}}),children:_.jsx(q_t,{sx:{maxHeight:280},children:p.map(W=>_.jsxs(P.Stack,{gap:1,children:[_.jsxs(P.Stack,{direction:"row",gap:.5,alignItems:"center",marginTop:"8px",children:[_.jsx(P.Checkbox,{size:"small",checked:E.includes(W),onChange:x=>B(W,x.target.checked)}),W.label]}),_.jsx(P.Divider,{})]},W.id))})})]})]})})]})})},lu2=Object.freeze(Object.defineProperty({__proto__:null,default:Ner},Symbol.toStringTag,{value:"Module"}));R.ActionButton=CRn,R.Address=Z22,R.Autocomplete=fSn,R.AutocompleteField=aGn,R.BuilderLayout=uDo,R.BuilderSidebar=$zo,R.Carousel=bEo,R.CarouselArrowIndex=xEo,R.CarouselArrows=wEo,R.CarouselDots=jEo,R.Checkbox=U22,R.Codes=Y22,R.ColorPickerField=K22,R.ColorPickerInput=LNn,R.Common=Yn2,R.CommonSSR=Xn2,R.Confirm=Qn2,R.CustomAvatar=LTn,R.CustomAvatarGroup=PTn,R.DataGrid=tr2,R.DatePicker=X22,R.DateRangePicker=Q22,R.DateTimePicker=J22,R.Delayed=nr2,R.DialogAnimate=mtr,R.Drawer=gr2,R.EmptyContent=QHn,R.EmptyView=sCt,R.Error=mr2,R.FabButtonAnimate=ezn,R.Field=un,R.FixedProgressBar=fCt,R.Form=q22,R.FrameSkeleton=H22,R.HelpButton=sSn,R.Icon=Le,R.IconButtonAnimate=tzn,R.Iconify=mZn,R.IllustrationEmptyContent=pIn,R.ImageCrop=YZn,R.Incrementer=IBn,R.IncrementerField=eu2,R.Label=cUn,R.Lightbox=HSo,R.LoadingScreen=Na2,R.MaskedInput=HBn,R.MaskedInputField=iGn,R.MaterialDesignContent=Dyt,R.MenuPopover=CUn,R.Modal=bUn,R.ModalActions=fi2,R.MotionContainer=ktr,R.MotionLazyContainer=Oyt,R.MotionViewport=Etr,R.MultiCheckbox=G22,R.MultipleChipField=tu2,R.NoData=OIn,R.NumberInput=MCt,R.NumberInputField=nu2,R.PasswordField=ru2,R.PasswordRules=vi2,R.PopoverSelect=w22,R.Portal=yUn,R.RadioGroupField=QBn,R.Result=ABn,R.SavedChanges=Hi2,R.Scrollbar=q_t,R.SearchInput=FBn,R.SnackbarContent=Syt,R.SnackbarProvider=kzn,R.SplashScreen=Ai2,R.Steps=Fi2,R.StyledTab=Ni2,R.StyledTabs=Ti2,R.Summary=E22,R.SwapList=cu2,R.Switch=rGn,R.TRANSITION=jIn,R.TabPanel=Zi2,R.TableEmptyRows=NEo,R.TableHeadCustom=ZEo,R.TableNoData=VEo,R.TablePaginationCustom=GEo,R.TableSelectedAction=UEo,R.TableSkeleton=FEo,R.TextAnimate=vtr,R.TextMaxLine=wUn,R.ThemeProvider=MTn,R.TimePicker=au2,R.Transition=Dvt,R.Upload=QUn,R.UploadAvatar=JUn,R.UploadAvatarWithCropField=ou2,R.UploadBox=v22,R.UploadIllustration=yIn,R.UploadWithCrop=tGn,R.UploadWithCropField=uu2,R.Webhook=T22,R.WhiteBox=nGn,R.color=Pt2,R.compare=pzo,R.cssStyles=IEo,R.emptyRows=zEo,R.file=hi2,R.formatNumber=ha2,R.formatTime=ki2,R.getComparator=HEo,R.loadable=zi2,R.mask=$i2,R.number=sa2,R.routes=Di2,R.sort=Ii2,R.useActiveElement=cDo,R.useApiMessage=Szo,R.useCarousel=yEo,R.useCopyToClipboard=lDo,R.useDatagrid=fDo,R.useDeepCompareEffect=jzo,R.useEventListener=DSn,R.useIsMounting=Mzo,R.useLightBox=VSo,R.useOffSetTop=kzo,R.useOnClickOutside=Ezo,R.usePagination=Pzo,R.usePopover=WSn,R.useResponsive=rzn,R.useSnackbar=Szn,R.useTable=AEo,R.useTabs=Lzo,R.useToggle=BSn,R.uuidv4=xi2,R.validators=gi2,R.varBgColor=BXn,R.varBgKenburns=WXn,R.varBgPan=IXn,R.varBounce=kXn,R.varContainer=nvt,R.varFade=lle,R.varFlip=LXn,R.varHover=DXn,R.varPath=jXn,R.varRotate=SXn,R.varScale=EXn,R.varSlide=PXn,R.varTranEnter=$e,R.varTranExit=Ne,R.varTranHover=wXn,R.varZoom=MXn,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|