@scmlatam/web-ui 0.1.94 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web-ui.css +2 -1
- package/dist/web-ui.js +3300 -11
- package/dist/web-ui.umd.cjs +1 -431
- package/package.json +25 -25
- package/dist/fp.esm-Dkdh137l.js +0 -1668
- package/dist/get-context-DyJ62CYN.js +0 -77
- package/dist/main-BN90DIxd.js +0 -80125
package/dist/web-ui.js
CHANGED
|
@@ -1,12 +1,3301 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { Alert as e, AlertTitle as t, Autocomplete as n, Avatar as r, Box as i, Button as a, Card as o, CardContent as s, CardHeader as c, Checkbox as l, Chip as u, CircularProgress as d, CssBaseline as f, Dialog as p, DialogActions as m, DialogContent as h, DialogTitle as g, Divider as _, Fade as v, FormControl as y, FormControlLabel as b, FormGroup as x, FormLabel as S, Grid as C, Icon as w, IconButton as T, InputAdornment as E, InputLabel as D, List as O, ListItem as ee, ListItemAvatar as k, ListItemButton as A, ListItemIcon as j, ListItemText as M, ListSubheader as N, Menu as te, MenuItem as P, Paper as ne, Radio as re, RadioGroup as ie, Select as F, TextField as I, ThemeProvider as ae, Tooltip as L, Typography as R, createTheme as z } from "@mui/material";
|
|
2
|
+
import B from "dayjs";
|
|
3
|
+
import "dayjs/locale/es";
|
|
4
|
+
import "dayjs/locale/en";
|
|
5
|
+
import "dayjs/locale/pt";
|
|
6
|
+
import { cloneElement as oe, createContext as se, useContext as V, useEffect as H, useRef as U, useState as W } from "react";
|
|
7
|
+
import { Grid as G } from "@mui/system";
|
|
8
|
+
import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
9
|
+
import { BrowserRouter as ce, Link as le, Navigate as ue, Route as Y, Routes as de, useLocation as X, useNavigate as Z } from "react-router";
|
|
10
|
+
import fe from "@mui/icons-material/ExpandMore";
|
|
11
|
+
import pe from "@mui/icons-material/ExpandLess";
|
|
12
|
+
import me from "@mui/icons-material/Visibility";
|
|
13
|
+
import he from "@mui/icons-material/VisibilityOff";
|
|
14
|
+
import { MdOutlineKeyboardArrowDown as ge, MdOutlineKeyboardArrowUp as _e } from "react-icons/md";
|
|
15
|
+
import { SnackbarProvider as ve, closeSnackbar as ye, useSnackbar as be } from "notistack";
|
|
16
|
+
import { DatePicker as xe, LocalizationProvider as Se, TimeField as Ce } from "@mui/x-date-pickers";
|
|
17
|
+
import { AdapterDayjs as we } from "@mui/x-date-pickers/AdapterDayjs";
|
|
18
|
+
import { DataGridPro as Te, useGridApiRef as Ee } from "@mui/x-data-grid-pro";
|
|
19
|
+
import De from "@mui/icons-material/KeyboardArrowDown";
|
|
20
|
+
import { SingleInputDateRangeField as Oe } from "@mui/x-date-pickers-pro/SingleInputDateRangeField";
|
|
21
|
+
import { LocalizationProvider as ke } from "@mui/x-date-pickers/LocalizationProvider";
|
|
22
|
+
import { DateRangePicker as Ae } from "@mui/x-date-pickers-pro/DateRangePicker";
|
|
23
|
+
import { ThemeProvider as je, createTheme as Me, useTheme as Ne } from "@mui/material/styles";
|
|
24
|
+
import Pe from "@mui/icons-material/FilterAltRounded";
|
|
25
|
+
import Fe from "@mui/icons-material/Cancel";
|
|
26
|
+
import Ie from "@mui/icons-material/CheckCircle";
|
|
27
|
+
import Le from "@mui/icons-material/Error";
|
|
28
|
+
import Re from "@mui/icons-material/Info";
|
|
29
|
+
import ze from "react-draggable";
|
|
30
|
+
import Be from "@mui/icons-material/Warning";
|
|
31
|
+
import { DateTimeField as Ve } from "@mui/x-date-pickers/DateTimeField";
|
|
32
|
+
import He from "@mui/icons-material/ArrowDropDown";
|
|
33
|
+
import { SimpleTreeView as Ue } from "@mui/x-tree-view/SimpleTreeView";
|
|
34
|
+
import { TreeItem as We } from "@mui/x-tree-view/TreeItem";
|
|
35
|
+
import Ge from "@mui/icons-material/Schedule";
|
|
36
|
+
import { StaticDateRangePicker as Ke } from "@mui/x-date-pickers-pro/StaticDateRangePicker";
|
|
37
|
+
import qe from "react-spreadsheet";
|
|
38
|
+
//#region src/themes/GoodRabbitColors.tsx
|
|
39
|
+
var Q = {
|
|
40
|
+
"gr-purple": {
|
|
41
|
+
main: "#9D11F2",
|
|
42
|
+
50: "#F5E7FE",
|
|
43
|
+
100: "#EBCFFC",
|
|
44
|
+
200: "#D79EFA",
|
|
45
|
+
300: "#C26EF7",
|
|
46
|
+
400: "#AE3EF4",
|
|
47
|
+
500: "#9D11F2",
|
|
48
|
+
600: "#7B0BC1",
|
|
49
|
+
700: "#5C0891",
|
|
50
|
+
800: "#3E0561",
|
|
51
|
+
900: "#1F0330",
|
|
52
|
+
950: "#0F0118"
|
|
53
|
+
},
|
|
54
|
+
"gr-lilac": {
|
|
55
|
+
main: "#C85DF0",
|
|
56
|
+
50: "#F7E8FD",
|
|
57
|
+
100: "#EFD0FB",
|
|
58
|
+
200: "#E0A2F6",
|
|
59
|
+
300: "#D073F2",
|
|
60
|
+
400: "#C144EE",
|
|
61
|
+
500: "#C85DF0",
|
|
62
|
+
600: "#8E11BB",
|
|
63
|
+
700: "#6A0D8C",
|
|
64
|
+
800: "#47095D",
|
|
65
|
+
900: "#23042F",
|
|
66
|
+
950: "#120217"
|
|
67
|
+
},
|
|
68
|
+
"gr-pink": {
|
|
69
|
+
main: "#FE22F0",
|
|
70
|
+
50: "#FFE6FD",
|
|
71
|
+
100: "#FFCCFB",
|
|
72
|
+
200: "#FF99F8",
|
|
73
|
+
300: "#FE67F4",
|
|
74
|
+
400: "#FE34F1",
|
|
75
|
+
500: "#FE22F0",
|
|
76
|
+
600: "#CB01BE",
|
|
77
|
+
700: "#98018E",
|
|
78
|
+
800: "#66005F",
|
|
79
|
+
900: "#33002F",
|
|
80
|
+
950: "#190018"
|
|
81
|
+
},
|
|
82
|
+
"gr-red": {
|
|
83
|
+
main: "#FE0037",
|
|
84
|
+
50: "#FFE5EB",
|
|
85
|
+
100: "#FFCCD7",
|
|
86
|
+
200: "#FF99AF",
|
|
87
|
+
300: "#FF6687",
|
|
88
|
+
400: "#FF335F",
|
|
89
|
+
500: "#FE0037",
|
|
90
|
+
600: "#CC002C",
|
|
91
|
+
700: "#990021",
|
|
92
|
+
800: "#660016",
|
|
93
|
+
900: "#33000B",
|
|
94
|
+
950: "#1A0006"
|
|
95
|
+
},
|
|
96
|
+
"gr-orange": {
|
|
97
|
+
main: "#FB6000",
|
|
98
|
+
50: "#FFEFE5",
|
|
99
|
+
100: "#FFE0CC",
|
|
100
|
+
200: "#FFC099",
|
|
101
|
+
300: "#FFA166",
|
|
102
|
+
400: "#FF8133",
|
|
103
|
+
500: "#FB6000",
|
|
104
|
+
600: "#CC4E00",
|
|
105
|
+
700: "#993B00",
|
|
106
|
+
800: "#662700",
|
|
107
|
+
900: "#331400",
|
|
108
|
+
950: "#1A0A00"
|
|
109
|
+
},
|
|
110
|
+
"gr-yellow": {
|
|
111
|
+
main: "#F0C300",
|
|
112
|
+
50: "#FFFAE5",
|
|
113
|
+
100: "#FFF6CC",
|
|
114
|
+
200: "#FFEC99",
|
|
115
|
+
300: "#FFE366",
|
|
116
|
+
400: "#FFDA33",
|
|
117
|
+
500: "#F0C300",
|
|
118
|
+
600: "#CCA700",
|
|
119
|
+
700: "#997D00",
|
|
120
|
+
800: "#665300",
|
|
121
|
+
900: "#332A00",
|
|
122
|
+
950: "#1A1500"
|
|
123
|
+
},
|
|
124
|
+
"gr-moss-green": {
|
|
125
|
+
main: "#CAD900",
|
|
126
|
+
50: "#FDFFE5",
|
|
127
|
+
100: "#FCFFCC",
|
|
128
|
+
200: "#F8FF99",
|
|
129
|
+
300: "#F5FF66",
|
|
130
|
+
400: "#F1FF33",
|
|
131
|
+
500: "#CAD900",
|
|
132
|
+
600: "#BECC00",
|
|
133
|
+
700: "#8F9900",
|
|
134
|
+
800: "#5F6600",
|
|
135
|
+
900: "#303300",
|
|
136
|
+
950: "#181A00"
|
|
137
|
+
},
|
|
138
|
+
"gr-green": {
|
|
139
|
+
main: "#64E700",
|
|
140
|
+
50: "#F1FFE5",
|
|
141
|
+
100: "#E2FFCC",
|
|
142
|
+
200: "#C5FF99",
|
|
143
|
+
300: "#A8FF66",
|
|
144
|
+
400: "#8BFF33",
|
|
145
|
+
500: "#64E700",
|
|
146
|
+
600: "#58CC00",
|
|
147
|
+
700: "#429900",
|
|
148
|
+
800: "#2C6600",
|
|
149
|
+
900: "#163300",
|
|
150
|
+
950: "#0B1A00"
|
|
151
|
+
},
|
|
152
|
+
"gr-neon-green": {
|
|
153
|
+
main: "#00EA85",
|
|
154
|
+
50: "#E5FFF4",
|
|
155
|
+
100: "#CCFFE9",
|
|
156
|
+
200: "#99FFD3",
|
|
157
|
+
300: "#66FFBD",
|
|
158
|
+
400: "#33FFA7",
|
|
159
|
+
500: "#00EA85",
|
|
160
|
+
600: "#00CC74",
|
|
161
|
+
700: "#009957",
|
|
162
|
+
800: "#00663A",
|
|
163
|
+
900: "#00331D",
|
|
164
|
+
950: "#001A0E"
|
|
165
|
+
},
|
|
166
|
+
"gr-sky-blue": {
|
|
167
|
+
main: "#00DBE7",
|
|
168
|
+
50: "#E5FEFF",
|
|
169
|
+
100: "#CCFCFF",
|
|
170
|
+
200: "#99FAFF",
|
|
171
|
+
300: "#66F7FF",
|
|
172
|
+
400: "#33F5FF",
|
|
173
|
+
500: "#00DBE7",
|
|
174
|
+
600: "#00C2CC",
|
|
175
|
+
700: "#009199",
|
|
176
|
+
800: "#006166",
|
|
177
|
+
900: "#003033",
|
|
178
|
+
950: "#00181A"
|
|
179
|
+
},
|
|
180
|
+
"gr-midium-blue": {
|
|
181
|
+
main: "#008CF0",
|
|
182
|
+
50: "#E5F4FF",
|
|
183
|
+
100: "#CCEAFF",
|
|
184
|
+
200: "#99D5FF",
|
|
185
|
+
300: "#66BFFF",
|
|
186
|
+
400: "#3AF",
|
|
187
|
+
500: "#008CF0",
|
|
188
|
+
600: "#07C",
|
|
189
|
+
700: "#005999",
|
|
190
|
+
800: "#003C66",
|
|
191
|
+
900: "#001E33",
|
|
192
|
+
950: "#000F1A"
|
|
193
|
+
},
|
|
194
|
+
"gr-blue": {
|
|
195
|
+
main: "#2F43FF",
|
|
196
|
+
50: "#E5E8FF",
|
|
197
|
+
100: "#CCD1FF",
|
|
198
|
+
200: "#99A3FF",
|
|
199
|
+
300: "#6675FF",
|
|
200
|
+
400: "#3347FF",
|
|
201
|
+
500: "#2F43FF",
|
|
202
|
+
600: "#0014CC",
|
|
203
|
+
700: "#000F99",
|
|
204
|
+
800: "#000A66",
|
|
205
|
+
900: "#000533",
|
|
206
|
+
950: "#00031A"
|
|
207
|
+
},
|
|
208
|
+
"gr-grey": {
|
|
209
|
+
main: "#474541",
|
|
210
|
+
dark: "#9D9A95",
|
|
211
|
+
light: "#F3F2F2",
|
|
212
|
+
50: "#F3F2F2",
|
|
213
|
+
100: "#E7E6E4",
|
|
214
|
+
200: "#CECDCA",
|
|
215
|
+
300: "#B6B4AF",
|
|
216
|
+
400: "#9D9A95",
|
|
217
|
+
500: "#474541",
|
|
218
|
+
600: "#6A6762",
|
|
219
|
+
700: "#504E49",
|
|
220
|
+
800: "#353431",
|
|
221
|
+
900: "#1B1A18",
|
|
222
|
+
950: "#0D0D0C"
|
|
223
|
+
},
|
|
224
|
+
"gr-base-dark": { main: "#190007" },
|
|
225
|
+
"gr-base-light": { main: "#EBEAE0" }
|
|
226
|
+
}, Je = { styleOverrides: { root: ({ ownerState: e }) => {
|
|
227
|
+
let t = !e.color || e.color === "primary", { multiline: n, rows: r } = e, i = 44;
|
|
228
|
+
return n && (i = 44 + ((typeof r == "number" ? r : 1) - 1) * 30), e.className?.includes("MuiDataGrid-columnHeaderFilterInput") && e.color === "error" ? {
|
|
229
|
+
"& .MuiInputLabel-root": {
|
|
230
|
+
color: Q["gr-grey"].light,
|
|
231
|
+
"&.Mui-focused": { color: Q["gr-grey"][200] }
|
|
232
|
+
},
|
|
233
|
+
"& .MuiOutlinedInput-root": {
|
|
234
|
+
borderRadius: "16px",
|
|
235
|
+
height: `${i}px`,
|
|
236
|
+
color: Q["gr-grey"].light,
|
|
237
|
+
"& .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"].light },
|
|
238
|
+
"&:hover .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"][100] },
|
|
239
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"][200] },
|
|
240
|
+
"& input": { color: Q["gr-grey"].light },
|
|
241
|
+
"& input::placeholder": {
|
|
242
|
+
color: Q["gr-grey"][400],
|
|
243
|
+
opacity: 1
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
} : t ? {
|
|
247
|
+
"& .MuiInputLabel-root": {
|
|
248
|
+
color: Q["gr-grey"].main,
|
|
249
|
+
"&.Mui-focused": { color: Q["gr-grey"][700] }
|
|
250
|
+
},
|
|
251
|
+
"& .MuiOutlinedInput-root": {
|
|
252
|
+
borderRadius: "16px",
|
|
253
|
+
height: `${i}px`,
|
|
254
|
+
color: Q["gr-grey"].main,
|
|
255
|
+
"& .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"].main },
|
|
256
|
+
"&:hover .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"][600] },
|
|
257
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"][700] },
|
|
258
|
+
"& input": { color: Q["gr-grey"].main },
|
|
259
|
+
"& input::placeholder": {
|
|
260
|
+
color: Q["gr-grey"][400],
|
|
261
|
+
opacity: 1
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
} : {
|
|
265
|
+
"& .MuiInputLabel-root": {
|
|
266
|
+
color: Q["gr-grey"].main,
|
|
267
|
+
"&.Mui-focused": { color: Q["gr-grey"][700] }
|
|
268
|
+
},
|
|
269
|
+
"& .MuiOutlinedInput-root": {
|
|
270
|
+
borderRadius: "16px",
|
|
271
|
+
height: `${i}px`,
|
|
272
|
+
color: Q["gr-grey"].main,
|
|
273
|
+
"& input": { color: Q["gr-grey"].main },
|
|
274
|
+
"& input::placeholder": {
|
|
275
|
+
color: Q["gr-grey"][400],
|
|
276
|
+
opacity: 1
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
} } }, Ye = { styleOverrides: { root: ({ ownerState: e }) => {
|
|
281
|
+
let t = !e.color || e.color === "primary", { multiline: n, rows: r } = e, i = 44;
|
|
282
|
+
return n && (i = 44 + ((typeof r == "number" ? r : 1) - 1) * 40), t ? {
|
|
283
|
+
borderRadius: "16px",
|
|
284
|
+
height: `${i}px`,
|
|
285
|
+
color: Q["gr-grey"].main,
|
|
286
|
+
"& .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"].main },
|
|
287
|
+
"&:hover .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"][600] },
|
|
288
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: Q["gr-grey"][700] },
|
|
289
|
+
"& input": { color: Q["gr-grey"].main },
|
|
290
|
+
"& input::placeholder": {
|
|
291
|
+
color: Q["gr-grey"][400],
|
|
292
|
+
opacity: 1
|
|
293
|
+
}
|
|
294
|
+
} : {
|
|
295
|
+
borderRadius: "16px",
|
|
296
|
+
height: `${i}px`,
|
|
297
|
+
color: Q["gr-grey"].main,
|
|
298
|
+
"& input": { color: Q["gr-grey"].main },
|
|
299
|
+
"& input::placeholder": {
|
|
300
|
+
color: Q["gr-grey"][400],
|
|
301
|
+
opacity: 1
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
} } }, Xe = { styleOverrides: { root: () => ({
|
|
305
|
+
color: Q["gr-grey"].main,
|
|
306
|
+
"&.Mui-focused": { color: Q["gr-grey"][700] }
|
|
307
|
+
}) } }, Ze = {
|
|
308
|
+
fontFamily: ["Articulat CF"].join(","),
|
|
309
|
+
h1: {
|
|
310
|
+
fontFamily: "Articulat CF",
|
|
311
|
+
fontWeight: "bold",
|
|
312
|
+
fontSize: "36px",
|
|
313
|
+
color: Q["gr-base-dark"].main
|
|
314
|
+
},
|
|
315
|
+
h2: {
|
|
316
|
+
fontFamily: "Articulat CF",
|
|
317
|
+
fontWeight: "bold",
|
|
318
|
+
fontSize: "32px",
|
|
319
|
+
color: Q["gr-grey"].main
|
|
320
|
+
},
|
|
321
|
+
h3: {
|
|
322
|
+
fontFamily: "Articulat CF",
|
|
323
|
+
fontWeight: "bold",
|
|
324
|
+
fontSize: "24px",
|
|
325
|
+
color: Q["gr-grey"].main
|
|
326
|
+
},
|
|
327
|
+
h4: {
|
|
328
|
+
fontFamily: "Articulat CF",
|
|
329
|
+
fontWeight: "bold",
|
|
330
|
+
fontSize: "22px",
|
|
331
|
+
color: Q["gr-grey"].main
|
|
332
|
+
},
|
|
333
|
+
body1: {
|
|
334
|
+
fontFamily: "Articulat CF",
|
|
335
|
+
fontWeight: "medium",
|
|
336
|
+
fontSize: "18px",
|
|
337
|
+
color: Q["gr-base-dark"].main
|
|
338
|
+
},
|
|
339
|
+
body2: {
|
|
340
|
+
fontFamily: "Articulat CF",
|
|
341
|
+
fontWeight: "medium",
|
|
342
|
+
fontSize: "16px",
|
|
343
|
+
color: Q["gr-base-dark"].main
|
|
344
|
+
},
|
|
345
|
+
button: {
|
|
346
|
+
fontFamily: "Articulat CF",
|
|
347
|
+
fontWeight: "demi bold",
|
|
348
|
+
fontSize: "18px",
|
|
349
|
+
color: Q["gr-base-dark"].main
|
|
350
|
+
}
|
|
351
|
+
}, Qe = {
|
|
352
|
+
palette: {
|
|
353
|
+
mode: "dark",
|
|
354
|
+
background: {
|
|
355
|
+
default: "#EBEAE0",
|
|
356
|
+
paper: Q["gr-base-dark"].main
|
|
357
|
+
},
|
|
358
|
+
primary: { main: "#474541" },
|
|
359
|
+
secondary: { main: "#C85DF0" },
|
|
360
|
+
success: { main: "#00EA84" },
|
|
361
|
+
warning: { main: "#F0C300" },
|
|
362
|
+
error: { main: "#FE0037" },
|
|
363
|
+
info: { main: "#2F43FF" },
|
|
364
|
+
...Q
|
|
365
|
+
},
|
|
366
|
+
typography: Ze,
|
|
367
|
+
components: {
|
|
368
|
+
MuiTextField: Je,
|
|
369
|
+
MuiOutlinedInput: Ye,
|
|
370
|
+
MuiInputLabel: Xe
|
|
371
|
+
}
|
|
372
|
+
}, $e = z(Qe), et = z({
|
|
373
|
+
palette: {
|
|
374
|
+
mode: "light",
|
|
375
|
+
background: {
|
|
376
|
+
default: "#EBEAE0",
|
|
377
|
+
paper: "#EBEAE0"
|
|
378
|
+
},
|
|
379
|
+
primary: { main: "#9D11F2" },
|
|
380
|
+
secondary: { main: "#C85DF0" },
|
|
381
|
+
success: { main: "#00EA84" },
|
|
382
|
+
warning: { main: "#F0C300" },
|
|
383
|
+
error: { main: "#FE0037" },
|
|
384
|
+
info: { main: "#2F43FF" }
|
|
385
|
+
},
|
|
386
|
+
typography: {
|
|
387
|
+
fontFamily: [
|
|
388
|
+
"Articulat CF",
|
|
389
|
+
"-apple-system",
|
|
390
|
+
"BlinkMacSystemFont",
|
|
391
|
+
"\"Segoe UI\"",
|
|
392
|
+
"Roboto",
|
|
393
|
+
"\"Helvetica Neue\"",
|
|
394
|
+
"Arial",
|
|
395
|
+
"sans-serif",
|
|
396
|
+
"\"Apple Color Emoji\"",
|
|
397
|
+
"\"Segoe UI Emoji\"",
|
|
398
|
+
"\"Segoe UI Symbol\""
|
|
399
|
+
].join(","),
|
|
400
|
+
h1: {
|
|
401
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
402
|
+
fontWeight: 700
|
|
403
|
+
},
|
|
404
|
+
h2: {
|
|
405
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
406
|
+
fontWeight: 700
|
|
407
|
+
},
|
|
408
|
+
h3: {
|
|
409
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
410
|
+
fontWeight: 600
|
|
411
|
+
},
|
|
412
|
+
h4: {
|
|
413
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
414
|
+
fontWeight: 600
|
|
415
|
+
},
|
|
416
|
+
h5: {
|
|
417
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
418
|
+
fontWeight: 500
|
|
419
|
+
},
|
|
420
|
+
h6: {
|
|
421
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
422
|
+
fontWeight: 500
|
|
423
|
+
},
|
|
424
|
+
body1: {
|
|
425
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
426
|
+
fontWeight: 400
|
|
427
|
+
},
|
|
428
|
+
body2: {
|
|
429
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
430
|
+
fontWeight: 400
|
|
431
|
+
},
|
|
432
|
+
button: {
|
|
433
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
434
|
+
fontWeight: 500,
|
|
435
|
+
textTransform: "none"
|
|
436
|
+
},
|
|
437
|
+
caption: {
|
|
438
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
439
|
+
fontWeight: 400
|
|
440
|
+
},
|
|
441
|
+
overline: {
|
|
442
|
+
fontFamily: "Articulat CF, sans-serif",
|
|
443
|
+
fontWeight: 400
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}), $ = se({}), tt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%203000%20551.6'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23190007;}.cls-1,.cls-2,.cls-3{stroke-width:0px;}.cls-2{fill:%23f0c300;}.cls-3{fill:%23ebeae0;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-3'%20d='m871.49,259.5v9.04c-9.81,0-17.5.94-23.05,2.83-5.55,1.88-9.6,5.43-12.16,10.65-2.56,5.23-4.16,12.65-4.8,22.26-.64,9.61-.96,21.94-.96,36.97v119.73c-6.82,11.28-14.9,21.11-24.26,29.46-8.09,7.53-18.21,14.42-30.34,20.68-12.13,6.26-26.51,9.4-43.1,9.4-17.88,0-34.7-5.85-50.45-17.55-15.75-11.7-29.38-28.41-40.87-50.14s-20.54-47.75-27.14-78.04c-6.6-30.29-9.9-64.25-9.9-101.86,0-44.29,4.03-81.79,12.11-112.5,8.07-30.71,18.27-55.57,30.6-74.59,12.32-19.01,26.14-32.8,41.45-41.37,15.3-8.56,29.96-12.85,44-12.85,8.93,0,16.58,1.05,22.95,3.12,6.37,2.07,12,4.25,16.89,6.53,4.89,2.28,9.14,4.46,12.75,6.54,3.62,2.07,6.91,3.11,9.89,3.11,3.82,0,6.58-2.2,8.29-6.63.87-1.6,1.52-3.62,1.95-6.03h14.33v149.21h-12.06c-2.98-26.31-7.43-49.7-13.37-70.16-2.54-8.76-5.41-17.32-8.59-25.68-3.18-8.35-7-15.86-11.45-22.55-4.46-6.68-9.54-12-15.27-15.98-5.73-3.97-11.99-5.95-18.77-5.95-12.73,0-23.55,5.44-32.46,16.31-8.91,10.87-16.12,26.14-21.63,45.79-5.52,19.65-9.55,43.39-12.09,71.19-2.54,27.81-3.81,58.64-3.81,92.52,0,41.82,1.59,77.15,4.79,106.01,3.19,28.86,7.77,52.28,13.73,70.26,5.96,17.98,13.41,30.94,22.36,38.88,8.94,7.95,19.16,11.92,30.66,11.92,10.64,0,17.46-3.14,20.44-9.41s4.47-15.89,4.47-28.86v-128.6c0-13.38-.54-24.36-1.6-32.93-1.07-8.57-3.64-15.17-7.69-19.76-4.06-4.6-10.14-7.73-18.25-9.41-8.11-1.68-19.21-2.51-33.29-2.51v-9.04h165.7Z'/%3e%3cpath%20class='cls-3'%20d='m1103.45,333.04c0,31.29-3.32,58.31-9.95,81.04s-15.51,41.52-26.64,56.33c-11.13,14.81-23.86,25.76-38.2,32.85-14.34,7.08-29.2,10.63-44.6,10.63s-30.17-3.55-44.29-10.63c-14.12-7.09-26.74-18.05-37.87-32.85-11.13-14.81-20.01-33.59-26.64-56.33s-9.95-49.75-9.95-81.04,3.32-58.31,9.95-81.04,15.5-41.41,26.64-56.01c11.12-14.6,23.75-25.45,37.87-32.54,14.12-7.09,28.88-10.64,44.29-10.64s30.26,3.55,44.6,10.64c14.34,7.09,27.06,17.94,38.2,32.54,11.12,14.6,20.01,33.27,26.64,56.01s9.95,49.75,9.95,81.04Zm-59.68,0c0-22.94-1.07-44.41-3.21-64.44-2.15-20.02-5.68-37.54-10.6-52.55-4.92-15.01-11.12-26.89-18.61-35.65-7.49-8.76-16.58-13.14-27.28-13.14s-19.8,4.38-27.29,13.14c-7.49,8.76-13.58,20.64-18.29,35.65-4.71,15.01-8.13,32.53-10.27,52.55-2.15,20.03-3.21,41.5-3.21,64.44s1.06,44.53,3.21,64.75c2.14,20.23,5.56,37.85,10.27,52.86,4.71,15.01,10.8,26.8,18.29,35.35,7.49,8.55,16.59,12.82,27.29,12.82s19.79-4.27,27.28-12.82c7.49-8.55,13.7-20.34,18.61-35.35,4.92-15.01,8.45-32.63,10.6-52.86,2.14-20.22,3.21-41.8,3.21-64.75Z'/%3e%3cpath%20class='cls-3'%20d='m1360.25,333.04c0,31.29-3.32,58.31-9.95,81.04-6.63,22.74-15.51,41.52-26.64,56.33-11.13,14.81-23.86,25.76-38.2,32.85-14.34,7.08-29.2,10.63-44.6,10.63s-30.17-3.55-44.29-10.63c-14.12-7.09-26.74-18.05-37.87-32.85-11.13-14.81-20.01-33.59-26.64-56.33s-9.95-49.75-9.95-81.04,3.32-58.31,9.95-81.04,15.5-41.41,26.64-56.01c11.12-14.6,23.75-25.45,37.87-32.54,14.12-7.09,28.88-10.64,44.29-10.64s30.26,3.55,44.6,10.64c14.34,7.09,27.06,17.94,38.2,32.54,11.12,14.6,20.01,33.27,26.64,56.01,6.63,22.74,9.95,49.75,9.95,81.04Zm-59.68,0c0-22.94-1.07-44.41-3.21-64.44-2.15-20.02-5.68-37.54-10.6-52.55-4.92-15.01-11.12-26.89-18.61-35.65-7.49-8.76-16.58-13.14-27.28-13.14s-19.8,4.38-27.29,13.14c-7.49,8.76-13.58,20.64-18.29,35.65-4.71,15.01-8.13,32.53-10.27,52.55-2.15,20.03-3.21,41.5-3.21,64.44s1.06,44.53,3.21,64.75c2.14,20.23,5.56,37.85,10.27,52.86,4.71,15.01,10.8,26.8,18.29,35.35s16.59,12.82,27.29,12.82,19.79-4.27,27.28-12.82c7.49-8.55,13.7-20.34,18.61-35.35,4.92-15.01,8.45-32.63,10.6-52.86,2.14-20.22,3.21-41.8,3.21-64.75Z'/%3e%3cpath%20class='cls-3'%20d='m1617.66,426.25c0,16.28.42,29.21,1.28,38.8.85,9.6,2.67,16.9,5.43,21.9,2.77,5.01,6.83,8.24,12.17,9.7,5.33,1.46,12.48,2.19,21.45,2.19v9.04h-100.01v-44.67c-8.56,16.28-19.79,28.79-33.69,37.55-13.9,8.75-29.2,13.14-45.88,13.14-12.84,0-25.14-4.17-36.9-12.52-11.76-8.35-22.35-20.23-31.76-35.67-9.42-15.43-16.91-34.42-22.47-56.95-5.56-22.53-8.34-47.77-8.34-75.72s2.78-53.61,8.34-75.72c5.56-22.12,13.05-40.99,22.47-56.64,9.41-15.65,20-27.53,31.76-35.67,11.76-8.14,24.07-12.21,36.9-12.21,16.68,0,31.98,4.28,45.88,12.83,13.9,8.55,25.13,21.17,33.69,37.86v-58.12c0-12.5-.75-22.81-2.24-30.93-1.5-8.12-3.84-14.58-7.05-19.38-3.2-4.79-7.47-8.02-12.8-9.68-5.34-1.67-11.63-2.51-18.89-2.51v-9.04c20.48-.41,38.74-3.43,54.78-9.04,16.03-5.61,28.33-14.46,36.89-26.52h8.99v387.98Zm-59.68-141.35c0-33.76-5.36-59.39-16.06-76.9-10.71-17.5-23.98-26.26-39.82-26.26-7.71,0-15.21,2.3-22.48,6.88-7.28,4.59-13.81,12.61-19.59,24.08-5.78,11.46-10.5,26.88-14.14,46.27-3.64,19.38-5.45,44.07-5.45,74.08s1.82,54.71,5.45,74.09c3.64,19.38,8.35,34.91,14.14,46.58,5.78,11.67,12.31,19.8,19.59,24.38,7.27,4.59,14.77,6.88,22.48,6.88,15.84,0,29.12-8.85,39.82-26.57,10.7-17.71,16.06-43.24,16.06-76.59v-96.91Z'/%3e%3cpath%20class='cls-3'%20d='m1899.3,426.35c5.12,15,9.71,27.18,13.76,36.56,4.05,9.37,8.53,16.56,13.44,21.55,4.91,5,10.35,8.44,16.33,10.31,5.97,1.87,13.44,3.23,22.41,4.06v9.04h-56.98c-19.64,0-34.04-2.39-43.22-7.2-9.17-4.79-16.12-14.7-20.81-29.72l-47.56-145.78c-3.43-11.27-9-19.39-16.72-24.41-7.71-5-15.43-7.51-23.13-7.51h-3.62v133.09c0,15,.32,27.29.96,36.87.64,9.59,2.24,16.98,4.8,22.18,2.56,5.21,6.61,8.75,12.16,10.63s13.44,2.81,23.69,2.81v9.04h-146.49v-9.04c9.81,0,17.49-.93,23.04-2.82,5.55-1.87,9.61-5.42,12.17-10.63,2.56-5.21,4.16-12.61,4.8-22.2s.96-21.89.96-36.9V111.09c0-13.34-.32-24.17-.96-32.52-.64-8.34-2.35-14.8-5.12-19.38-2.78-4.59-6.94-7.71-12.49-9.38-5.55-1.67-13.02-2.51-22.4-2.51v-9.04h124.66c25.12,0,46.52,3.24,64.19,9.71,17.67,6.48,32.26,15.35,43.76,26.63,11.5,11.28,19.91,24.65,25.23,40.1,5.32,15.46,7.99,32.37,7.99,50.75,0,30.08-7.03,55.97-21.08,77.69-14.05,21.72-37.06,36.55-68.99,44.48,10.39,2.51,19.01,7.39,25.87,14.68,6.85,7.29,13.05,19.06,18.6,35.3l30.73,88.74Zm-126.27-148.76c12.78,0,23.97-1.87,33.56-5.63,9.59-3.76,17.47-10.02,23.65-18.8,6.18-8.77,10.76-20.36,13.74-34.77,2.98-14.41,4.47-32.05,4.47-52.94s-1.92-38.42-5.76-52.63c-3.84-14.19-8.84-25.68-15.02-34.46-6.18-8.77-13.32-15.03-21.42-18.79-8.1-3.76-16.62-5.64-25.56-5.64s-16.3,3.24-20.78,9.71c-4.47,6.48-6.71,15.35-6.71,26.63v187.31h19.82Z'/%3e%3cpath%20class='cls-3'%20d='m2149.7,426.25c0,16.28.42,29.21,1.28,38.8.85,9.6,2.67,16.9,5.44,21.9,2.77,5.01,6.93,8.24,12.48,9.7,5.55,1.46,12.8,2.19,21.77,2.19v9.04h-100.65l.03-49.67c-7.27,17.94-17.11,31.71-29.51,41.3-12.4,9.59-26.3,14.39-41.69,14.39-10.69,0-20.96-1.36-30.79-4.06-9.83-2.71-18.28-7.3-25.34-13.76-7.06-6.46-12.72-14.9-16.99-25.32-4.28-10.42-6.41-23.34-6.41-38.77,0-18.33,3.74-33.97,11.22-46.89,7.48-12.92,16.79-24.07,27.9-33.45,11.11-9.38,23.19-17.41,36.24-24.08,13.04-6.67,25.12-12.91,36.24-18.75s20.41-11.67,27.89-17.51c7.48-5.83,11.23-12.5,11.23-20.01v-6.25c0-28.34-5.56-50.02-16.67-65.02-11.11-15-25.65-22.51-43.6-22.51-13.25,0-24.58,3.92-33.98,11.76-9.4,7.84-16.24,20.42-20.52,37.74,3.41-1.24,7.05-1.87,10.89-1.87,9.4,0,17.41,3.23,24.03,9.69,6.61,6.46,9.93,14.49,9.93,24.08s-3.33,16.99-9.96,23.45c-6.64,6.46-14.67,9.69-24.09,9.69s-18.09-3.22-24.73-9.67c-6.64-6.45-9.96-14.26-9.96-23.43,0-15.4,2.46-29.56,7.38-42.46,4.92-12.9,11.88-24.04,20.86-33.4s19.68-16.76,32.09-22.17c12.41-5.41,26.1-8.12,41.08-8.12,13.7,0,26.53,2.51,38.52,7.51,11.98,5.01,22.25,12.83,30.81,23.46,8.55,10.64,15.3,24.2,20.21,40.67,4.92,16.48,7.38,36.4,7.38,59.76v142.04Zm-59.68-125.75c-6.84,7.09-15.49,13.66-25.97,19.71-10.47,6.05-20.52,13.23-30.12,21.57-9.62,8.35-17.84,18.66-24.68,30.96-6.84,12.3-10.26,28.25-10.26,47.84,0,24.19,2.99,40.86,8.98,50.04,5.98,9.17,14.32,13.75,25,13.75,13.24,0,25.22-6.25,35.9-18.76,10.68-12.51,17.74-30.85,21.16-55.04v-110.06Z'/%3e%3cpath%20class='cls-3'%20d='m2353.01,152.8c12.79,0,25.17,4.07,37.12,12.21,11.94,8.14,22.51,20.03,31.69,35.67,9.17,15.65,16.63,34.52,22.4,56.64,5.76,22.12,8.65,47.35,8.65,75.72s-2.88,53.19-8.64,75.72c-5.76,22.53-13.22,41.52-22.38,56.95-9.17,15.44-19.72,27.33-31.66,35.67-11.94,8.35-24.3,12.52-37.09,12.52-16.63,0-31.77-4.35-45.41-13.04-13.65-8.68-24.74-21.17-33.26-37.46v44.47h-100.01v-9.04c8.96,0,16.11-.73,21.44-2.19s9.39-4.69,12.17-9.7c2.77-5,4.59-12.3,5.44-21.89.85-9.59,1.28-22.51,1.28-38.78V145.43c0-12.51-.75-22.83-2.24-30.96-1.5-8.13-3.84-14.59-7.05-19.39-3.2-4.79-7.36-8.03-12.48-9.69-5.12-1.67-11.31-2.51-18.57-2.51v-9.04c20.48-.41,38.64-3.43,54.46-9.04,15.82-5.61,28.01-14.46,36.57-26.52h8.99l-.15,165.22c8.53-16.68,19.62-29.3,33.28-37.86s28.8-12.83,45.46-12.83Zm38.36,180.24c0-30.01-1.82-54.7-5.43-74.08-3.62-19.38-8.31-34.8-14.05-46.27-5.76-11.46-12.36-19.49-19.82-24.08-7.46-4.58-15.01-6.88-22.68-6.88-15.34,0-28.34,8.76-38.99,26.26-10.65,17.51-15.98,43.14-15.98,76.9v96.91c0,33.34,5.32,58.88,15.98,76.59,10.64,17.72,23.64,26.57,38.99,26.57,7.67,0,15.22-2.29,22.68-6.88,7.46-4.58,14.06-12.71,19.82-24.38,5.75-11.67,10.44-27.19,14.05-46.58,3.62-19.38,5.43-44.08,5.43-74.09Z'/%3e%3cpath%20class='cls-3'%20d='m2618.79,152.8c12.79,0,25.17,4.07,37.12,12.21,11.94,8.14,22.51,20.03,31.69,35.67,9.17,15.65,16.63,34.52,22.4,56.64,5.76,22.12,8.65,47.35,8.65,75.72s-2.88,53.19-8.64,75.72c-5.76,22.53-13.22,41.52-22.38,56.95-9.17,15.44-19.72,27.33-31.66,35.67-11.94,8.35-24.3,12.52-37.09,12.52-16.63,0-31.77-4.35-45.41-13.04-13.65-8.68-24.74-21.17-33.26-37.46v44.47h-100.01v-9.04c8.96,0,16.11-.73,21.44-2.19s9.39-4.69,12.17-9.7c2.77-5,4.59-12.3,5.44-21.89.85-9.59,1.28-22.51,1.28-38.78V145.43c0-12.51-.75-22.83-2.24-30.96-1.5-8.13-3.84-14.59-7.05-19.39-3.2-4.79-7.36-8.03-12.48-9.69-5.12-1.67-11.31-2.51-18.57-2.51v-9.04c20.48-.41,38.64-3.43,54.46-9.04,15.82-5.61,28.01-14.46,36.57-26.52h8.99l-.15,165.22c8.53-16.68,19.62-29.3,33.28-37.86s28.8-12.83,45.46-12.83Zm38.36,180.24c0-30.01-1.82-54.7-5.43-74.08-3.62-19.38-8.31-34.8-14.05-46.27-5.76-11.46-12.36-19.49-19.82-24.08-7.46-4.58-15.01-6.88-22.68-6.88-15.34,0-28.34,8.76-38.99,26.26-10.65,17.51-15.98,43.14-15.98,76.9v96.91c0,33.34,5.32,58.88,15.98,76.59,10.64,17.72,23.64,26.57,38.99,26.57,7.67,0,15.22-2.29,22.68-6.88,7.46-4.58,14.06-12.71,19.82-24.38,5.75-11.67,10.44-27.19,14.05-46.58,3.62-19.38,5.43-44.08,5.43-74.09Z'/%3e%3cpath%20class='cls-3'%20d='m2806.58,426.17c0,16.29.42,29.23,1.28,38.84.85,9.61,2.67,16.91,5.43,21.92,2.77,5.01,6.93,8.25,12.48,9.71,5.55,1.47,12.81,2.19,21.78,2.19v9.04h-140.99v-9.04c8.96,0,16.11-.73,21.44-2.19s9.39-4.69,12.17-9.7c2.77-5.01,4.59-12.31,5.44-21.91.85-9.59,1.28-22.52,1.28-38.8v-160.84c0-12.52-.75-22.84-2.24-30.98-1.5-8.14-3.84-14.5-7.05-19.08-3.2-4.59-7.36-7.71-12.48-9.39-5.12-1.67-11.31-2.51-18.57-2.51v-9.04c20.48-.83,38.74-4.07,54.78-9.7,16.03-5.63,28.33-14.3,36.89-26h8.35v267.47Zm-34.95-306.52c-11.92,0-22.14-4.06-30.65-12.19-8.52-8.12-12.77-18.02-12.77-29.7s4.26-22.19,12.77-30.32c8.52-8.12,18.73-12.19,30.65-12.19s22.02,4.07,30.33,12.19c8.3,8.13,12.45,18.24,12.45,30.32s-4.15,21.58-12.45,29.7c-8.31,8.13-18.41,12.19-30.33,12.19Z'/%3e%3cpath%20class='cls-3'%20d='m2927.66,158.83h72.34v15.67h-72.34v265.37c0,30.46,8.53,45.69,25.61,45.69,5.97,0,11.19-1.25,15.67-3.76,4.48-2.51,8.43-5.43,11.85-8.77,3.84-3.76,7.25-7.93,10.25-12.53l8.96,6.89c-4.27,8.78-9.81,16.51-16.64,23.21-5.56,5.88-12.59,11.24-21.13,16.06-8.53,4.81-18.78,7.23-30.73,7.23-8.99,0-17.32-1.36-25.03-4.07-7.71-2.71-14.44-7.4-20.21-14.09-5.77-6.68-10.27-15.65-13.47-26.92-3.21-11.27-4.81-25.25-4.81-41.96v-252.35h-40.33v-15.67c27.74-2.51,47.28-10.02,58.62-22.55,11.34-12.53,18.29-30.48,20.86-53.87h20.53v76.42Z'/%3e%3crect%20class='cls-2'%20x='0'%20y='0'%20width='514.22'%20height='551.6'%20rx='237.65'%20ry='237.65'/%3e%3cpath%20class='cls-1'%20d='m403.42,360.77c-4.51-3.91-34.29-24.06-34.29-24.06,0,0-9.02,12.63-10.23,11.43-.9-.9,6.62-9.93,8.42-17.44.6-2.5,2.41-9.02,3.01-13.23.6-4.21-1.2-15.34.3-15.34s4.51,7.82,4.51,7.82c0,0-.6-9.93-1.5-17.74-.9-7.82-4.51-16.24-7.52-19.25-3.01-3.01-15.34-1.49-15.34-3.91,0-1.5,12.93-1.2,25.26-.9,12.33.3,19.25-4.21,19.55-5.11.3-.9-.6-1.5,0-2.41.6-.9,1.8-1.5,2.71-3.01.9-1.5,1.8-4.51,3.61-3.91,1.8.6-1.2,4.51.6,5.41,1.8.9,3.61-2.41,5.41-5.71,1.8-3.31.9-9.62.9-9.62,0,0,0-.3-.3.3-.3.6-1.5,1.2-2.71,2.41-1.2,1.2-1.8,3.61-3.31,3.31s-.3-2.71-1.5-3.61c-1.2-.9-8.72-4.51-7.82-6.02.9-1.5,7.22,1.5,9.62,2.11,2.41.6,5.41-.3,5.41-.3,0,0,2.11-5.41,1.8-9.62-.3-4.21-6.32-11.13-10.23-16.84-3.91-5.71-4.21-14.14-14.74-27.07-10.53-12.93-30.68-14.14-33.68-16.54-3.01-2.41-5.41-11.43-7.52-24.06-2.11-12.63,1.5-12.63-3.01-33.08-4.51-20.45-25.26-45.41-31.88-43.91-6.62,1.5-6.62,36.09-6.02,46.92.6,10.83,21.96,47.52,24.06,50.83,2.11,3.31,6.62,4.81,4.81,7.52-1.8,2.71-15.64-18.35-22.26-31.28-6.62-12.93-18.65-30.68-28.27-39.7-9.62-9.02-47.22-30.98-53.53-25.56s2.71,36.99,6.62,46.62c3.91,9.62,11.28,23.31,20.9,32.63,9.62,9.32,37.9,23.46,40.9,25.26,3.01,1.8,5.41,4.81,5.41,4.81,0,0-1.2,5.71-1.2,9.32s1.2,12.63,1.5,17.44c.3,4.81-.3,7.22-.9,11.43-.6,4.21-3.01,6.92-3.31,9.62-.3,2.71.9,1.8.9,1.8,0,0-2.71,6.32-7.22,8.72-4.51,2.41-13.83-1.5-22.26-3.91-8.42-2.41-19.25-2.41-19.25-2.41l6.47,4.36s0,1.2-1.5.3-35.19,0-40.9.3c-5.71.3-12.8,1.81-12.8,1.81,0,0,4.68,1.49,4.68,2.7s-23.46,5.41-48.12,30.08c-24.66,24.66-28.27,64.66-28.87,64.66s-2.11-13.53-2.71-14.44c-.6-.9-3.01-2.41-9.93-2.11-6.92.3-9.62,3.61-9.62,3.91s1.2,1.5,1.2,2.11-6.02,3.61-6.02,4.21,2.41,1.8,2.41,2.41-.9,1.2-2.71,2.71c-1.8,1.5-3.91,4.51-3.61,5.11.3.6,2.11.9,2.41,2.11.3,1.2-.9,4.21-1.2,7.52-.3,3.31,1.8,5.41,2.11,5.41s1.2-3.31,1.8-3.31,1.2,5.11,1.5,6.32c.3,1.2.3,1.8.3,4.21s1.5,4.21,1.8,4.21-.3-3.61.6-1.5c.9,2.11,10.23,9.32,15.34,9.62,5.11.3,6.92-2.11,8.12-2.11s2.71,3.01,3.31,2.41c.6-.6,0-12.63,1.2-12.63s1.2,2.41,1.5,3.31c.3.9,4.81,8.72,7.82,12.93,3.01,4.21,9.92,9.93,12.03,15.34,2.11,5.41-11.73,22.26-13.23,26.77-1.5,4.51.3,13.23,18.95,33.68,18.65,20.45,44.51,18.05,46.62,16.54s0-6.32-6.62-16.54c-6.62-10.23-19.25-22.26-19.25-22.86s3.31-1.2,6.32-1.8c3.01-.6,21.35-6.32,21.65-5.71s-8.72,4.21-11.13,4.81-3.61,5.41-1.5,8.72c2.11,3.31,13.53,9.32,34.29,14.14,20.75,4.81,46.62.9,47.22-3.61.6-4.51-6.02-9.02-12.93-12.93-6.92-3.91-30.68-9.32-30.68-11.13s7.52-3.31,19.25-12.63c11.73-9.32,14.14-19.25,14.74-21.96.6-2.71.3-4.51,0-4.51s-.6.9-1.5,3.01c-.9,2.11-6.02,9.62-7.22,8.72-1.2-.9.9-5.41,2.11-7.52,1.2-2.11,5.41-15.64,5.71-17.14.3-1.5.6-5.71,2.41-5.71s.9,3.91,3.01,4.81c2.11.9,25.87-7.52,25.87-7.52,0,0-2.41-9.32-4.51-15.94-2.11-6.62-2.41-14.14-1.2-14.44.92-.23,1.2,3.31,3.61,11.73,2.4,8.39,6.62,17.14,16.24,25.56,9.62,8.42,27.37,16.54,36.99,31.58,9.62,15.04,23.76,19.55,27.37,17.14,3.61-2.41-8.12-25.26-9.62-29.47-1.5-4.21-13.53-24.66-15.94-30.38-2.41-5.71-2.11-6.32-3.91-12.33-1.8-6.02.9-11.73,2.71-11.73s1.5,10.53,2.41,15.94c.9,5.41,2.71,7.82,5.41,9.62,2.71,1.8,16.54,2.11,19.25,2.71,2.71.6,21.05,7.22,24.06,8.12,3.01.9,10.23,2.41,12.63-2.11,2.41-4.51-8.12-13.83-12.63-17.74Zm-57.19-134.7c-1.68-1.68-2.52-5.7-3.42-9.96-.48-2.29-1.17-5.59-1.83-6.81-.72.39-1.39.64-2.05.64-2.48,0-4.05-2.28-4.59-3.62l2.56-1.03c.2.49,1.01,1.9,2.03,1.9.46-.01,1.81-.98,2.8-1.68,2.39-1.71,5.36-3.83,8.78-3.83,5.65,0,10.41,4.83,12.77,8.96,1.64,2.87,5.39,11.18,4.52,13.8-.27.82-1.07,1.51-4.05,2.21-2.04.48-6.32,1.15-10.23,1.15-3.12,0-6-.43-7.29-1.72Z'/%3e%3cpath%20class='cls-1'%20d='m356.83,224.89c4.31-.34,7.44-1.13,8.37-1.58-.03-1.64-2.13-7.48-4.32-11.31-2.15-3.77-6.2-7.57-10.38-7.57-2.53,0-5.11,1.84-7.18,3.31-.02.02-.04.03-.06.04.88,1.5,1.46,4.05,2.24,7.76.7,3.33,1.57,7.48,2.67,8.58.47.46,2.87,1.22,8.65.77Z'/%3e%3c/svg%3e", nt = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Capa_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20514.22%20551.6'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23190007;}.cls-1,.cls-2{stroke-width:0px;}.cls-2{fill:%23f0c300;}%3c/style%3e%3c/defs%3e%3crect%20class='cls-2'%20x='0'%20y='0'%20width='514.22'%20height='551.6'%20rx='237.65'%20ry='237.65'/%3e%3cpath%20class='cls-1'%20d='m403.42,360.77c-4.51-3.91-34.29-24.06-34.29-24.06,0,0-9.02,12.63-10.23,11.43-.9-.9,6.62-9.93,8.42-17.44.6-2.5,2.41-9.02,3.01-13.23.6-4.21-1.2-15.34.3-15.34s4.51,7.82,4.51,7.82c0,0-.6-9.93-1.5-17.74-.9-7.82-4.51-16.24-7.52-19.25-3.01-3.01-15.34-1.49-15.34-3.91,0-1.5,12.93-1.2,25.26-.9,12.33.3,19.25-4.21,19.55-5.11.3-.9-.6-1.5,0-2.41.6-.9,1.8-1.5,2.71-3.01.9-1.5,1.8-4.51,3.61-3.91,1.8.6-1.2,4.51.6,5.41,1.8.9,3.61-2.41,5.41-5.71,1.8-3.31.9-9.62.9-9.62,0,0,0-.3-.3.3-.3.6-1.5,1.2-2.71,2.41-1.2,1.2-1.8,3.61-3.31,3.31s-.3-2.71-1.5-3.61c-1.2-.9-8.72-4.51-7.82-6.02.9-1.5,7.22,1.5,9.62,2.11,2.41.6,5.41-.3,5.41-.3,0,0,2.11-5.41,1.8-9.62-.3-4.21-6.32-11.13-10.23-16.84-3.91-5.71-4.21-14.14-14.74-27.07-10.53-12.93-30.68-14.14-33.68-16.54-3.01-2.41-5.41-11.43-7.52-24.06-2.11-12.63,1.5-12.63-3.01-33.08-4.51-20.45-25.26-45.41-31.88-43.91-6.62,1.5-6.62,36.09-6.02,46.92.6,10.83,21.96,47.52,24.06,50.83,2.11,3.31,6.62,4.81,4.81,7.52-1.8,2.71-15.64-18.35-22.26-31.28-6.62-12.93-18.65-30.68-28.27-39.7-9.62-9.02-47.22-30.98-53.53-25.56-6.32,5.41,2.71,36.99,6.62,46.62,3.91,9.62,11.28,23.31,20.9,32.63,9.62,9.32,37.9,23.46,40.9,25.26,3.01,1.8,5.41,4.81,5.41,4.81,0,0-1.2,5.71-1.2,9.32s1.2,12.63,1.5,17.44c.3,4.81-.3,7.22-.9,11.43-.6,4.21-3.01,6.92-3.31,9.62-.3,2.71.9,1.8.9,1.8,0,0-2.71,6.32-7.22,8.72-4.51,2.41-13.83-1.5-22.26-3.91-8.42-2.41-19.25-2.41-19.25-2.41l6.47,4.36s0,1.2-1.5.3-35.19,0-40.9.3c-5.71.3-12.8,1.81-12.8,1.81,0,0,4.68,1.49,4.68,2.7s-23.46,5.41-48.12,30.08c-24.66,24.66-28.27,64.66-28.87,64.66s-2.11-13.53-2.71-14.44c-.6-.9-3.01-2.41-9.93-2.11-6.92.3-9.62,3.61-9.62,3.91s1.2,1.5,1.2,2.11-6.02,3.61-6.02,4.21,2.41,1.8,2.41,2.41-.9,1.2-2.71,2.71c-1.8,1.5-3.91,4.51-3.61,5.11.3.6,2.11.9,2.41,2.11.3,1.2-.9,4.21-1.2,7.52-.3,3.31,1.8,5.41,2.11,5.41s1.2-3.31,1.8-3.31,1.2,5.11,1.5,6.32c.3,1.2.3,1.8.3,4.21s1.5,4.21,1.8,4.21-.3-3.61.6-1.5c.9,2.11,10.23,9.32,15.34,9.62,5.11.3,6.92-2.11,8.12-2.11s2.71,3.01,3.31,2.41c.6-.6,0-12.63,1.2-12.63s1.2,2.41,1.5,3.31c.3.9,4.81,8.72,7.82,12.93,3.01,4.21,9.92,9.93,12.03,15.34,2.11,5.41-11.73,22.26-13.23,26.77-1.5,4.51.3,13.23,18.95,33.68,18.65,20.45,44.51,18.05,46.62,16.54s0-6.32-6.62-16.54c-6.62-10.23-19.25-22.26-19.25-22.86s3.31-1.2,6.32-1.8c3.01-.6,21.35-6.32,21.65-5.71s-8.72,4.21-11.13,4.81-3.61,5.41-1.5,8.72c2.11,3.31,13.53,9.32,34.29,14.14,20.75,4.81,46.62.9,47.22-3.61.6-4.51-6.02-9.02-12.93-12.93-6.92-3.91-30.68-9.32-30.68-11.13s7.52-3.31,19.25-12.63c11.73-9.32,14.14-19.25,14.74-21.96.6-2.71.3-4.51,0-4.51s-.6.9-1.5,3.01-6.02,9.62-7.22,8.72c-1.2-.9.9-5.41,2.11-7.52,1.2-2.11,5.41-15.64,5.71-17.14.3-1.5.6-5.71,2.41-5.71s.9,3.91,3.01,4.81c2.11.9,25.87-7.52,25.87-7.52,0,0-2.41-9.32-4.51-15.94-2.11-6.62-2.41-14.14-1.2-14.44.92-.23,1.2,3.31,3.61,11.73,2.4,8.39,6.62,17.14,16.24,25.56,9.62,8.42,27.37,16.54,36.99,31.58,9.62,15.04,23.76,19.55,27.37,17.14,3.61-2.41-8.12-25.26-9.62-29.47-1.5-4.21-13.53-24.66-15.94-30.38-2.41-5.71-2.11-6.32-3.91-12.33-1.8-6.02.9-11.73,2.71-11.73s1.5,10.53,2.41,15.94c.9,5.41,2.71,7.82,5.41,9.62,2.71,1.8,16.54,2.11,19.25,2.71,2.71.6,21.05,7.22,24.06,8.12,3.01.9,10.23,2.41,12.63-2.11,2.41-4.51-8.12-13.83-12.63-17.74Zm-57.19-134.7c-1.68-1.68-2.52-5.7-3.42-9.96-.48-2.29-1.17-5.59-1.83-6.81-.72.39-1.39.64-2.05.64-2.48,0-4.05-2.28-4.59-3.62l2.56-1.03c.2.49,1.01,1.9,2.03,1.9.46-.01,1.81-.98,2.8-1.68,2.39-1.71,5.36-3.83,8.78-3.83,5.65,0,10.41,4.83,12.77,8.96,1.64,2.87,5.39,11.18,4.52,13.8-.27.82-1.07,1.51-4.05,2.21-2.04.48-6.32,1.15-10.23,1.15-3.12,0-6-.43-7.29-1.72Z'/%3e%3cpath%20class='cls-1'%20d='m356.83,224.89c4.31-.34,7.44-1.13,8.37-1.58-.03-1.64-2.13-7.48-4.32-11.31-2.15-3.77-6.2-7.57-10.38-7.57-2.53,0-5.11,1.84-7.18,3.31-.02.02-.04.03-.06.04.88,1.5,1.46,4.05,2.24,7.76.7,3.33,1.57,7.48,2.67,8.58.47.46,2.87,1.22,8.65.77Z'/%3e%3c/svg%3e", rt = ({ tooltips: e, state: t, setState: n }) => {
|
|
447
|
+
switch (t) {
|
|
448
|
+
case "close": return /* @__PURE__ */ J(G, {
|
|
449
|
+
container: !0,
|
|
450
|
+
spacing: 2,
|
|
451
|
+
children: [/* @__PURE__ */ q(G, {
|
|
452
|
+
sx: {
|
|
453
|
+
display: "flex",
|
|
454
|
+
justifyContent: "center",
|
|
455
|
+
alignItems: "center"
|
|
456
|
+
},
|
|
457
|
+
size: 6,
|
|
458
|
+
children: /* @__PURE__ */ q("img", {
|
|
459
|
+
src: nt,
|
|
460
|
+
alt: "Good Rabbit Logo",
|
|
461
|
+
style: {
|
|
462
|
+
height: "30px",
|
|
463
|
+
width: "30px",
|
|
464
|
+
objectFit: "contain"
|
|
465
|
+
}
|
|
466
|
+
})
|
|
467
|
+
}), /* @__PURE__ */ q(G, {
|
|
468
|
+
sx: {
|
|
469
|
+
display: "flex",
|
|
470
|
+
justifyContent: "center"
|
|
471
|
+
},
|
|
472
|
+
size: 6,
|
|
473
|
+
children: /* @__PURE__ */ q(T, {
|
|
474
|
+
sx: {
|
|
475
|
+
"&:focus": { outline: "none" },
|
|
476
|
+
"&:focus-visible": { outline: "none" }
|
|
477
|
+
},
|
|
478
|
+
onClick: () => n("open"),
|
|
479
|
+
children: /* @__PURE__ */ q(L, {
|
|
480
|
+
title: e.expandMenu,
|
|
481
|
+
placement: "right",
|
|
482
|
+
children: /* @__PURE__ */ q(w, {
|
|
483
|
+
baseClassName: "material-symbols-rounded",
|
|
484
|
+
sx: {
|
|
485
|
+
color: "#FFFFFF",
|
|
486
|
+
fontSize: "24px",
|
|
487
|
+
mr: "-3.5px"
|
|
488
|
+
},
|
|
489
|
+
children: "menu"
|
|
490
|
+
})
|
|
491
|
+
})
|
|
492
|
+
})
|
|
493
|
+
})]
|
|
494
|
+
});
|
|
495
|
+
case "open": return /* @__PURE__ */ J(G, {
|
|
496
|
+
container: !0,
|
|
497
|
+
spacing: 2,
|
|
498
|
+
children: [/* @__PURE__ */ q(G, {
|
|
499
|
+
size: 10,
|
|
500
|
+
sx: {
|
|
501
|
+
display: "flex",
|
|
502
|
+
justifyContent: "center",
|
|
503
|
+
alignItems: "center"
|
|
504
|
+
},
|
|
505
|
+
children: /* @__PURE__ */ q("img", {
|
|
506
|
+
src: tt,
|
|
507
|
+
alt: "Good Rabbit Logo",
|
|
508
|
+
style: {
|
|
509
|
+
height: "40px",
|
|
510
|
+
width: "100%",
|
|
511
|
+
objectFit: "contain"
|
|
512
|
+
}
|
|
513
|
+
})
|
|
514
|
+
}), /* @__PURE__ */ q(G, {
|
|
515
|
+
size: 2,
|
|
516
|
+
sx: {
|
|
517
|
+
display: "flex",
|
|
518
|
+
justifyContent: "center"
|
|
519
|
+
},
|
|
520
|
+
children: /* @__PURE__ */ q(T, {
|
|
521
|
+
sx: {
|
|
522
|
+
"&:focus": { outline: "none" },
|
|
523
|
+
"&:focus-visible": { outline: "none" }
|
|
524
|
+
},
|
|
525
|
+
onClick: () => n("close"),
|
|
526
|
+
children: /* @__PURE__ */ q(L, {
|
|
527
|
+
title: e.collapseMenu,
|
|
528
|
+
placement: "right",
|
|
529
|
+
children: /* @__PURE__ */ q(w, {
|
|
530
|
+
baseClassName: "material-symbols-rounded",
|
|
531
|
+
sx: {
|
|
532
|
+
color: "#FFFFFF",
|
|
533
|
+
fontSize: "24px",
|
|
534
|
+
mr: "-3.5px"
|
|
535
|
+
},
|
|
536
|
+
children: "left_panel_close"
|
|
537
|
+
})
|
|
538
|
+
})
|
|
539
|
+
})
|
|
540
|
+
})]
|
|
541
|
+
});
|
|
542
|
+
case "expanded": return /* @__PURE__ */ J(G, {
|
|
543
|
+
container: !0,
|
|
544
|
+
spacing: 2,
|
|
545
|
+
children: [
|
|
546
|
+
/* @__PURE__ */ q(G, {
|
|
547
|
+
size: 5,
|
|
548
|
+
sx: {
|
|
549
|
+
display: "flex",
|
|
550
|
+
justifyContent: "center",
|
|
551
|
+
alignItems: "center"
|
|
552
|
+
},
|
|
553
|
+
children: /* @__PURE__ */ q("img", {
|
|
554
|
+
src: tt,
|
|
555
|
+
alt: "Good Rabbit Logo",
|
|
556
|
+
style: {
|
|
557
|
+
height: "40px",
|
|
558
|
+
width: "100%",
|
|
559
|
+
objectFit: "contain"
|
|
560
|
+
}
|
|
561
|
+
})
|
|
562
|
+
}),
|
|
563
|
+
/* @__PURE__ */ q(G, {
|
|
564
|
+
size: 1,
|
|
565
|
+
sx: {
|
|
566
|
+
display: "flex",
|
|
567
|
+
justifyContent: "center"
|
|
568
|
+
},
|
|
569
|
+
children: /* @__PURE__ */ q(T, {
|
|
570
|
+
sx: {
|
|
571
|
+
"&:focus": { outline: "none" },
|
|
572
|
+
"&:focus-visible": { outline: "none" }
|
|
573
|
+
},
|
|
574
|
+
onClick: () => n("close"),
|
|
575
|
+
children: /* @__PURE__ */ q(L, {
|
|
576
|
+
title: e.collapseMenu,
|
|
577
|
+
placement: "right",
|
|
578
|
+
children: /* @__PURE__ */ q(w, {
|
|
579
|
+
baseClassName: "material-symbols-rounded",
|
|
580
|
+
sx: {
|
|
581
|
+
color: "#FFFFFF",
|
|
582
|
+
fontSize: "24px",
|
|
583
|
+
mr: "-3.5px"
|
|
584
|
+
},
|
|
585
|
+
children: "left_panel_close"
|
|
586
|
+
})
|
|
587
|
+
})
|
|
588
|
+
})
|
|
589
|
+
}),
|
|
590
|
+
/* @__PURE__ */ q(G, { size: 5 }),
|
|
591
|
+
/* @__PURE__ */ q(G, {
|
|
592
|
+
size: 1,
|
|
593
|
+
sx: {
|
|
594
|
+
display: "flex",
|
|
595
|
+
justifyContent: "center"
|
|
596
|
+
},
|
|
597
|
+
children: /* @__PURE__ */ q(T, {
|
|
598
|
+
sx: {
|
|
599
|
+
pl: 1.75,
|
|
600
|
+
"&:focus": { outline: "none" },
|
|
601
|
+
"&:focus-visible": { outline: "none" }
|
|
602
|
+
},
|
|
603
|
+
onClick: () => n("open"),
|
|
604
|
+
children: /* @__PURE__ */ q(L, {
|
|
605
|
+
title: e.collapseModule,
|
|
606
|
+
placement: "right",
|
|
607
|
+
children: /* @__PURE__ */ q(w, {
|
|
608
|
+
baseClassName: "material-symbols-rounded",
|
|
609
|
+
sx: {
|
|
610
|
+
color: "#FFFFFF",
|
|
611
|
+
fontSize: "24px",
|
|
612
|
+
mr: "-3.5px"
|
|
613
|
+
},
|
|
614
|
+
children: "chevron_backward"
|
|
615
|
+
})
|
|
616
|
+
})
|
|
617
|
+
})
|
|
618
|
+
})
|
|
619
|
+
]
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
}, it = ({ tooltips: e, name: t, items: n, setState: r }) => {
|
|
623
|
+
let i = Z(), a = X(), o = new URLSearchParams(a.search), { setOpenUnsaved: s, setRedirect: c } = V($);
|
|
624
|
+
return /* @__PURE__ */ q(C, {
|
|
625
|
+
size: 12,
|
|
626
|
+
children: /* @__PURE__ */ q(O, {
|
|
627
|
+
dense: !0,
|
|
628
|
+
sx: {
|
|
629
|
+
width: "100%",
|
|
630
|
+
"& .Mui-selected": { bgcolor: "#5B5157 !important" },
|
|
631
|
+
"& .hover": { bgcolor: "#513D42 !important" }
|
|
632
|
+
},
|
|
633
|
+
component: "nav",
|
|
634
|
+
subheader: t && /* @__PURE__ */ q(N, {
|
|
635
|
+
sx: { bgcolor: "transparent" },
|
|
636
|
+
component: "div",
|
|
637
|
+
id: "nested-list-subheader",
|
|
638
|
+
children: t.toUpperCase()
|
|
639
|
+
}),
|
|
640
|
+
children: n.map((t, n) => /* @__PURE__ */ q(ee, {
|
|
641
|
+
secondaryAction: t.subgroups.length > 0 ? /* @__PURE__ */ q(L, {
|
|
642
|
+
title: e.expandModule,
|
|
643
|
+
placement: "right",
|
|
644
|
+
children: /* @__PURE__ */ q(le, {
|
|
645
|
+
to: t.path,
|
|
646
|
+
style: { textDecoration: "none" },
|
|
647
|
+
onClick: () => {
|
|
648
|
+
r("expanded"), localStorage.setItem("sidebar_state", "expanded");
|
|
649
|
+
},
|
|
650
|
+
children: /* @__PURE__ */ q(w, {
|
|
651
|
+
baseClassName: "material-symbols-rounded",
|
|
652
|
+
sx: {
|
|
653
|
+
color: "#FFFFFF",
|
|
654
|
+
fontSize: "24px",
|
|
655
|
+
mr: "-3.5px"
|
|
656
|
+
},
|
|
657
|
+
children: "keyboard_arrow_right"
|
|
658
|
+
})
|
|
659
|
+
})
|
|
660
|
+
}) : /* @__PURE__ */ q(L, {
|
|
661
|
+
title: e.openNewTab,
|
|
662
|
+
placement: "right",
|
|
663
|
+
children: /* @__PURE__ */ q(le, {
|
|
664
|
+
to: `${t.path}&view=${t.view}`,
|
|
665
|
+
target: "_blank",
|
|
666
|
+
style: { textDecoration: "none" },
|
|
667
|
+
onClick: () => {
|
|
668
|
+
r("open"), localStorage.setItem("sidebar_state", "open");
|
|
669
|
+
},
|
|
670
|
+
children: /* @__PURE__ */ q(w, {
|
|
671
|
+
baseClassName: "material-symbols-rounded",
|
|
672
|
+
sx: {
|
|
673
|
+
color: "#FFFFFF",
|
|
674
|
+
fontSize: "16px"
|
|
675
|
+
},
|
|
676
|
+
children: "new_window"
|
|
677
|
+
})
|
|
678
|
+
})
|
|
679
|
+
}),
|
|
680
|
+
children: /* @__PURE__ */ J(A, {
|
|
681
|
+
sx: {
|
|
682
|
+
borderRadius: "20px",
|
|
683
|
+
minHeight: "56px",
|
|
684
|
+
color: "#FFFFFF",
|
|
685
|
+
"& .MuiListItemText-primary": { color: "#FFFFFF" }
|
|
686
|
+
},
|
|
687
|
+
onClick: (e) => {
|
|
688
|
+
if (e.preventDefault(), e.stopPropagation(), localStorage.getItem("save_redirect") === "true") {
|
|
689
|
+
s(!0), t.subgroups.length > 0 ? c(t.path) : c(`${t.path}&view=${t.view}`);
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
t.subgroups.length > 0 ? (r("expanded"), i(t.path), localStorage.setItem("sidebar_state", "expanded"), localStorage.setItem("history_path", JSON.stringify([...JSON.parse(localStorage.getItem("history_path") || "[]"), t.path]))) : (r("open"), i(`${t.path}&view=${t.view}`), localStorage.setItem("sidebar_state", "open"), localStorage.setItem("history_path", JSON.stringify([...JSON.parse(localStorage.getItem("history_path") || "[]"), `${t.path}&view=${t.view}`])));
|
|
693
|
+
},
|
|
694
|
+
selected: `${a.pathname}?module=${o.get("module")}` === t.path,
|
|
695
|
+
children: [/* @__PURE__ */ q(j, { children: t.icon }), /* @__PURE__ */ q(M, {
|
|
696
|
+
primary: t.title,
|
|
697
|
+
slotProps: { primary: { sx: { color: "#FFFFFF" } } }
|
|
698
|
+
})]
|
|
699
|
+
})
|
|
700
|
+
}, n))
|
|
701
|
+
})
|
|
702
|
+
});
|
|
703
|
+
}, at = ({ items: e, setState: t }) => {
|
|
704
|
+
let { setOpenUnsaved: n, setRedirect: r } = V($), i = Z(), a = X(), o = new URLSearchParams(a.search);
|
|
705
|
+
return /* @__PURE__ */ q(C, {
|
|
706
|
+
size: 12,
|
|
707
|
+
children: /* @__PURE__ */ q(O, {
|
|
708
|
+
dense: !0,
|
|
709
|
+
sx: {
|
|
710
|
+
width: "100%",
|
|
711
|
+
"& .Mui-selected": { bgcolor: "#5B5157 !important" },
|
|
712
|
+
"& .hover": { bgcolor: "#513D42 !important" }
|
|
713
|
+
},
|
|
714
|
+
component: "nav",
|
|
715
|
+
children: e.map((e, s) => /* @__PURE__ */ q(L, {
|
|
716
|
+
title: e.title,
|
|
717
|
+
placement: "right",
|
|
718
|
+
children: /* @__PURE__ */ q(A, {
|
|
719
|
+
sx: {
|
|
720
|
+
borderRadius: "20px",
|
|
721
|
+
minHeight: "56px"
|
|
722
|
+
},
|
|
723
|
+
onClick: () => {
|
|
724
|
+
if (localStorage.getItem("save_redirect") === "true") {
|
|
725
|
+
n(!0), e.subgroups.length > 0 ? r(e.path) : r(`${e.path}&view=${e.view}`);
|
|
726
|
+
return;
|
|
727
|
+
}
|
|
728
|
+
e.subgroups.length > 0 ? (t("expanded"), i(e.path), localStorage.setItem("sidebar_state", "expanded")) : (i(`${e.path}&view=${e.view}`), localStorage.setItem("sidebar_state", "close"), localStorage.setItem("history_path", JSON.stringify([...JSON.parse(localStorage.getItem("history_path") || "[]"), `${e.path}&view=${e.view}`])));
|
|
729
|
+
},
|
|
730
|
+
selected: `${a.pathname}?module=${o.get("module")}` === e.path,
|
|
731
|
+
children: /* @__PURE__ */ q(j, { children: e.icon })
|
|
732
|
+
})
|
|
733
|
+
}, s))
|
|
734
|
+
})
|
|
735
|
+
});
|
|
736
|
+
}, ot = ({ tooltips: e, items: t }) => {
|
|
737
|
+
let n = X(), r = Z(), i = new URLSearchParams(n.search), { setOpenUnsaved: a, setRedirect: o } = V($);
|
|
738
|
+
return /* @__PURE__ */ q(C, {
|
|
739
|
+
size: 12,
|
|
740
|
+
children: /* @__PURE__ */ q(O, {
|
|
741
|
+
dense: !0,
|
|
742
|
+
sx: {
|
|
743
|
+
width: "100%",
|
|
744
|
+
"& .Mui-selected": { bgcolor: "#5B5157 !important" },
|
|
745
|
+
"& .hover": { bgcolor: "#513D42 !important" }
|
|
746
|
+
},
|
|
747
|
+
component: "nav",
|
|
748
|
+
children: t.map((t, s) => /* @__PURE__ */ q(ee, {
|
|
749
|
+
secondaryAction: /* @__PURE__ */ q(L, {
|
|
750
|
+
title: e.openNewTab,
|
|
751
|
+
placement: "right",
|
|
752
|
+
children: /* @__PURE__ */ q(le, {
|
|
753
|
+
to: `${n.pathname}?module=${i.get("module")}${t.path}`,
|
|
754
|
+
style: { textDecoration: "none" },
|
|
755
|
+
target: "_blank",
|
|
756
|
+
children: /* @__PURE__ */ q(w, {
|
|
757
|
+
baseClassName: "material-symbols-rounded",
|
|
758
|
+
sx: {
|
|
759
|
+
color: "#FFFFFF",
|
|
760
|
+
fontSize: "18px"
|
|
761
|
+
},
|
|
762
|
+
children: "new_window"
|
|
763
|
+
})
|
|
764
|
+
})
|
|
765
|
+
}),
|
|
766
|
+
children: /* @__PURE__ */ q(A, {
|
|
767
|
+
sx: { borderRadius: "20px" },
|
|
768
|
+
onClick: (e) => {
|
|
769
|
+
if (e.preventDefault(), e.stopPropagation(), localStorage.getItem("save_redirect") === "true") {
|
|
770
|
+
a(!0), o(`${n.pathname}?module=${i.get("module")}${t.path}`);
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
r(`${n.pathname}?module=${i.get("module")}${t.path}`), localStorage.setItem("history_path", JSON.stringify([...JSON.parse(localStorage.getItem("history_path") || "[]"), `${n.pathname}?module=${i.get("module")}${t.path}`]));
|
|
774
|
+
},
|
|
775
|
+
selected: `&view=${i.get("view")}` === t.path,
|
|
776
|
+
children: /* @__PURE__ */ q(M, {
|
|
777
|
+
slotProps: { primary: { sx: {
|
|
778
|
+
color: "#FFFFFF",
|
|
779
|
+
textOverflow: "ellipsis",
|
|
780
|
+
overflow: "hidden",
|
|
781
|
+
whiteSpace: "nowrap"
|
|
782
|
+
} } },
|
|
783
|
+
primary: t.title
|
|
784
|
+
})
|
|
785
|
+
})
|
|
786
|
+
}, s))
|
|
787
|
+
})
|
|
788
|
+
});
|
|
789
|
+
}, st = ({ state: e, setState: t, groups: n, tooltips: r }) => {
|
|
790
|
+
let i = n.map((e) => e.items.map((e) => ({
|
|
791
|
+
title: e.title,
|
|
792
|
+
color: e.color,
|
|
793
|
+
icon: e.icon,
|
|
794
|
+
path: e.path,
|
|
795
|
+
view: e.view,
|
|
796
|
+
subgroups: e.subgroups
|
|
797
|
+
}))).flat(), a = X(), o = new URLSearchParams(a.search);
|
|
798
|
+
switch (H(() => {
|
|
799
|
+
let e = localStorage.getItem("sidebar_state");
|
|
800
|
+
t(e === "expanded" ? "expanded" : e === "close" ? "close" : "open");
|
|
801
|
+
}, [a]), e) {
|
|
802
|
+
case "close": return /* @__PURE__ */ q(C, {
|
|
803
|
+
sx: { height: "calc(100vh - 160px)" },
|
|
804
|
+
container: !0,
|
|
805
|
+
spacing: 2,
|
|
806
|
+
children: /* @__PURE__ */ q(at, {
|
|
807
|
+
items: i,
|
|
808
|
+
setState: t
|
|
809
|
+
})
|
|
810
|
+
});
|
|
811
|
+
case "open": return /* @__PURE__ */ q(C, {
|
|
812
|
+
sx: { height: "calc(100vh - 160px)" },
|
|
813
|
+
container: !0,
|
|
814
|
+
spacing: 2,
|
|
815
|
+
children: /* @__PURE__ */ q(C, {
|
|
816
|
+
size: 12,
|
|
817
|
+
children: n.map((e, n) => /* @__PURE__ */ q(it, {
|
|
818
|
+
name: e.name,
|
|
819
|
+
items: e.items,
|
|
820
|
+
setState: t,
|
|
821
|
+
tooltips: r
|
|
822
|
+
}, n))
|
|
823
|
+
})
|
|
824
|
+
});
|
|
825
|
+
case "expanded": return /* @__PURE__ */ J(C, {
|
|
826
|
+
sx: { height: "calc(100vh - 160px)" },
|
|
827
|
+
container: !0,
|
|
828
|
+
spacing: 2,
|
|
829
|
+
children: [/* @__PURE__ */ q(C, {
|
|
830
|
+
size: 6,
|
|
831
|
+
children: n.map((e, n) => /* @__PURE__ */ q(it, {
|
|
832
|
+
name: e.name,
|
|
833
|
+
items: e.items,
|
|
834
|
+
setState: t,
|
|
835
|
+
tooltips: r
|
|
836
|
+
}, n))
|
|
837
|
+
}), /* @__PURE__ */ q(C, {
|
|
838
|
+
size: 6,
|
|
839
|
+
children: /* @__PURE__ */ q(ot, {
|
|
840
|
+
items: i.find((e) => e.path === `${a.pathname}?module=${o.get("module")}`)?.subgroups || [],
|
|
841
|
+
tooltips: r
|
|
842
|
+
})
|
|
843
|
+
})]
|
|
844
|
+
});
|
|
845
|
+
}
|
|
846
|
+
}, ct = ({ state: e, signOut: t }) => {
|
|
847
|
+
let n = Z();
|
|
848
|
+
switch (e) {
|
|
849
|
+
case "close": return /* @__PURE__ */ q(C, {
|
|
850
|
+
container: !0,
|
|
851
|
+
spacing: 2,
|
|
852
|
+
children: /* @__PURE__ */ q(C, {
|
|
853
|
+
sx: {
|
|
854
|
+
display: "flex",
|
|
855
|
+
justifyContent: "center",
|
|
856
|
+
alignItems: "center"
|
|
857
|
+
},
|
|
858
|
+
size: 12,
|
|
859
|
+
children: /* @__PURE__ */ q(T, {
|
|
860
|
+
sx: {
|
|
861
|
+
height: "56px",
|
|
862
|
+
borderRadius: "20px",
|
|
863
|
+
bottom: "20px",
|
|
864
|
+
"&:focus": { outline: "none" },
|
|
865
|
+
"&:focus-visible": { outline: "none" }
|
|
866
|
+
},
|
|
867
|
+
onClick: () => t.onClick(n),
|
|
868
|
+
children: t.icon
|
|
869
|
+
})
|
|
870
|
+
})
|
|
871
|
+
});
|
|
872
|
+
case "open": return /* @__PURE__ */ q(C, {
|
|
873
|
+
container: !0,
|
|
874
|
+
spacing: 2,
|
|
875
|
+
children: /* @__PURE__ */ q(C, {
|
|
876
|
+
sx: {
|
|
877
|
+
display: "flex",
|
|
878
|
+
justifyContent: "center",
|
|
879
|
+
alignItems: "center"
|
|
880
|
+
},
|
|
881
|
+
size: 12,
|
|
882
|
+
children: /* @__PURE__ */ q(a, {
|
|
883
|
+
sx: {
|
|
884
|
+
width: "100%",
|
|
885
|
+
height: "56px",
|
|
886
|
+
borderRadius: "20px",
|
|
887
|
+
bottom: "20px",
|
|
888
|
+
color: "#FFFFFF",
|
|
889
|
+
"&:focus": { outline: "none" },
|
|
890
|
+
"&:focus-visible": { outline: "none" },
|
|
891
|
+
"& .MuiButton-startIcon": { marginLeft: "16px" }
|
|
892
|
+
},
|
|
893
|
+
size: "small",
|
|
894
|
+
startIcon: t.icon,
|
|
895
|
+
onClick: () => t.onClick(n),
|
|
896
|
+
children: /* @__PURE__ */ q("span", {
|
|
897
|
+
style: {
|
|
898
|
+
textTransform: "math-auto",
|
|
899
|
+
width: "100%"
|
|
900
|
+
},
|
|
901
|
+
children: t.text
|
|
902
|
+
})
|
|
903
|
+
})
|
|
904
|
+
})
|
|
905
|
+
});
|
|
906
|
+
case "expanded": return /* @__PURE__ */ J(C, {
|
|
907
|
+
container: !0,
|
|
908
|
+
spacing: 2,
|
|
909
|
+
children: [/* @__PURE__ */ q(C, {
|
|
910
|
+
sx: {
|
|
911
|
+
display: "flex",
|
|
912
|
+
justifyContent: "center",
|
|
913
|
+
alignItems: "center"
|
|
914
|
+
},
|
|
915
|
+
size: 6,
|
|
916
|
+
children: /* @__PURE__ */ q(a, {
|
|
917
|
+
sx: {
|
|
918
|
+
width: "100%",
|
|
919
|
+
height: "56px",
|
|
920
|
+
borderRadius: "20px",
|
|
921
|
+
bottom: "20px",
|
|
922
|
+
color: "#FFFFFF",
|
|
923
|
+
"&:focus": { outline: "none" },
|
|
924
|
+
"&:focus-visible": { outline: "none" },
|
|
925
|
+
"& .MuiButton-startIcon": { marginLeft: "16px" }
|
|
926
|
+
},
|
|
927
|
+
color: "inherit",
|
|
928
|
+
size: "small",
|
|
929
|
+
startIcon: t.icon,
|
|
930
|
+
onClick: () => t.onClick(n),
|
|
931
|
+
children: /* @__PURE__ */ q("span", {
|
|
932
|
+
style: {
|
|
933
|
+
textTransform: "math-auto",
|
|
934
|
+
width: "100%"
|
|
935
|
+
},
|
|
936
|
+
children: t.text
|
|
937
|
+
})
|
|
938
|
+
})
|
|
939
|
+
}), /* @__PURE__ */ q(C, { size: 6 })]
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
}, lt = ({ items: e, signOut: t, tooltips: n, state: r, setState: a, getWidth: o }) => /* @__PURE__ */ J(i, {
|
|
943
|
+
sx: {
|
|
944
|
+
padding: "20px",
|
|
945
|
+
height: "calc(100vh - 40px)",
|
|
946
|
+
width: o(r),
|
|
947
|
+
bgcolor: (e) => e.palette.background.paper,
|
|
948
|
+
borderRadius: 5,
|
|
949
|
+
border: (e) => `1px solid ${e.palette.background.default}`,
|
|
950
|
+
overflow: "hidden"
|
|
951
|
+
},
|
|
952
|
+
children: [
|
|
953
|
+
/* @__PURE__ */ q(rt, {
|
|
954
|
+
tooltips: n,
|
|
955
|
+
state: r,
|
|
956
|
+
setState: a
|
|
957
|
+
}),
|
|
958
|
+
/* @__PURE__ */ q(st, {
|
|
959
|
+
tooltips: n,
|
|
960
|
+
state: r,
|
|
961
|
+
setState: a,
|
|
962
|
+
groups: e
|
|
963
|
+
}),
|
|
964
|
+
/* @__PURE__ */ q(ct, {
|
|
965
|
+
state: r,
|
|
966
|
+
signOut: t
|
|
967
|
+
})
|
|
968
|
+
]
|
|
969
|
+
}), ut = () => {
|
|
970
|
+
let [e, t] = W("open");
|
|
971
|
+
return {
|
|
972
|
+
state: e,
|
|
973
|
+
setState: t,
|
|
974
|
+
getWidth: (e) => {
|
|
975
|
+
switch (e) {
|
|
976
|
+
case "close": return "105px";
|
|
977
|
+
case "open": return "250px";
|
|
978
|
+
case "expanded": return "455px";
|
|
979
|
+
default: return "250px";
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
}, dt = "data:image/svg+xml,%3csvg%20width='578'%20height='119'%20viewBox='0%200%20578%20119'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M64.4296%2055.0518V57.2357C62.0626%2057.2357%2060.2072%2057.4628%2058.868%2057.9194C57.5289%2058.3736%2056.5517%2059.2312%2055.9341%2060.4923C55.3164%2061.7557%2054.9303%2063.5483%2054.7759%2065.8699C54.6215%2068.1915%2054.5443%2071.1702%2054.5443%2074.8012V103.726C52.8987%20106.451%2050.9492%20108.826%2048.6908%20110.843C46.7388%20112.662%2044.297%20114.327%2041.3702%20115.839C38.4435%20117.351%2034.9739%20118.11%2030.971%20118.11C26.6569%20118.11%2022.5985%20116.696%2018.7983%20113.87C14.9981%20111.043%2011.7094%20107.007%208.93709%20101.757C6.16476%2096.5074%203.98115%2090.2214%202.38869%2082.9039C0.796223%2075.5863%200%2067.3822%200%2058.2963C0%2047.5966%200.972364%2038.5372%202.92192%2031.1182C4.86907%2023.6992%207.33015%2017.6935%2010.3052%2013.0986C13.2778%208.50612%2016.6123%205.1747%2020.3063%203.10434C23.9979%201.03639%2027.5351%200%2030.9227%200C33.0774%200%2034.9232%200.253662%2036.4602%200.753738C37.9971%201.25381%2039.3556%201.78046%2040.5354%202.33127C41.7153%202.88208%2042.7407%203.40873%2043.6118%203.91122C44.4852%204.4113%2045.279%204.66254%2045.998%204.66254C46.9197%204.66254%2047.5857%204.13106%2047.9983%203.06085C48.2082%202.67432%2048.365%202.18632%2048.4688%201.60411H51.9263V37.6506H49.0165C48.2975%2031.2946%2047.2238%2025.644%2045.7905%2020.7012C45.1777%2018.5849%2044.4852%2016.517%2043.7179%2014.4974C42.9507%2012.4802%2042.029%2010.6659%2040.9553%209.04968C39.8791%207.43591%2038.6534%206.15069%2037.2709%205.18919C35.8883%204.23011%2034.3779%203.75178%2032.742%203.75178C29.6705%203.75178%2027.0598%205.06598%2024.91%207.69199C22.7602%2010.318%2021.0205%2014.007%2019.691%2018.754C18.3592%2023.5011%2017.3868%2029.2363%2016.7739%2035.9523C16.1611%2042.6707%2015.8546%2050.1187%2015.8546%2058.3035C15.8546%2068.4065%2016.2383%2076.9416%2017.0104%2083.9137C17.7801%2090.8858%2018.8852%2096.5436%2020.3232%20100.887C21.7612%20105.231%2023.5588%20108.362%2025.7183%20110.28C27.8753%20112.201%2030.3412%20113.16%2033.116%20113.16C35.6832%20113.16%2037.3288%20112.401%2038.0478%20110.886C38.7668%20109.372%2039.1263%20107.048%2039.1263%20103.914V72.8468C39.1263%2069.6144%2038.996%2066.9618%2038.7403%2064.8915C38.4821%2062.8211%2037.862%2061.2267%2036.8848%2060.1178C35.9052%2059.0065%2034.4382%2058.2504%2032.4814%2057.8445C30.5246%2057.4387%2027.8464%2057.2381%2024.4491%2057.2381V55.0542H64.4296V55.0518Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M120.402%2072.8195C120.402%2080.3786%20119.601%2086.9061%20118.002%2092.3973C116.402%2097.8885%20114.259%20102.428%20111.574%20106.006C108.888%20109.583%20105.817%20112.229%20102.357%20113.942C98.8968%20115.652%2095.3114%20116.51%2091.5956%20116.51C87.8799%20116.51%2084.3161%20115.652%2080.9092%20113.942C77.5023%20112.229%2074.4574%20109.581%2071.7719%20106.006C69.0864%20102.428%2066.9438%2097.8909%2065.3441%2092.3973C63.7444%2086.9037%2062.9434%2080.3786%2062.9434%2072.8195C62.9434%2065.2604%2063.7444%2058.7328%2065.3441%2053.2416C66.9438%2047.7505%2069.084%2043.2377%2071.7719%2039.7106C74.4549%2036.1835%2077.5023%2033.5623%2080.9092%2031.8495C84.3161%2030.1367%2087.8775%2029.2791%2091.5956%2029.2791C95.3138%2029.2791%2098.8968%2030.1367%20102.357%2031.8495C105.817%2033.5623%20108.886%2036.1835%20111.574%2039.7106C114.257%2043.2377%20116.402%2047.748%20118.002%2053.2416C119.601%2058.7352%20120.402%2065.2604%20120.402%2072.8195ZM106.003%2072.8195C106.003%2067.2776%20105.744%2062.0908%20105.228%2057.2519C104.709%2052.4154%20103.858%2048.1829%20102.67%2044.5567C101.483%2040.9306%2099.9874%2038.0606%2098.1802%2035.9443C96.373%2033.828%2094.1798%2032.7699%2091.598%2032.7699C89.0163%2032.7699%2086.8207%2033.828%2085.0135%2035.9443C83.2062%2038.0606%2081.7368%2040.9306%2080.6004%2044.5567C79.464%2048.1829%2078.6388%2052.4154%2078.1224%2057.2519C77.6037%2062.0908%2077.3479%2067.2776%2077.3479%2072.8195C77.3479%2078.3614%2077.6037%2083.5771%2078.1224%2088.4619C78.6388%2093.3491%2079.464%2097.6058%2080.6004%20101.232C81.7368%20104.858%2083.2062%20107.706%2085.0135%20109.772C86.8207%20111.837%2089.0163%20112.869%2091.598%20112.869C94.1798%20112.869%2096.373%20111.837%2098.1802%20109.772C99.9874%20107.706%20101.486%20104.858%20102.67%20101.232C103.858%2097.6058%20104.709%2093.3491%20105.228%2088.4619C105.744%2083.5771%20106.003%2078.3638%20106.003%2072.8195Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M182.355%2072.8195C182.355%2080.3786%20181.554%2086.9061%20179.955%2092.3973C178.355%2097.8909%20176.212%20102.428%20173.527%20106.006C170.841%20109.583%20167.77%20112.229%20164.31%20113.942C160.85%20115.652%20157.264%20116.51%20153.549%20116.51C149.833%20116.51%20146.269%20115.652%20142.862%20113.942C139.455%20112.229%20136.41%20109.581%20133.725%20106.006C131.04%20102.428%20128.897%2097.8909%20127.297%2092.3973C125.698%2086.9037%20124.896%2080.3786%20124.896%2072.8195C124.896%2065.2604%20125.698%2058.7328%20127.297%2053.2416C128.897%2047.7505%20131.037%2043.2377%20133.725%2039.7106C136.408%2036.1835%20139.455%2033.5623%20142.862%2031.8495C146.269%2030.1367%20149.831%2029.2791%20153.549%2029.2791C157.267%2029.2791%20160.85%2030.1367%20164.31%2031.8495C167.77%2033.5623%20170.839%2036.1835%20173.527%2039.7106C176.21%2043.2377%20178.355%2047.748%20179.955%2053.2416C181.554%2058.7352%20182.355%2065.2604%20182.355%2072.8195ZM167.956%2072.8195C167.956%2067.2776%20167.698%2062.0908%20167.181%2057.2519C166.662%2052.4154%20165.811%2048.1829%20164.624%2044.5567C163.436%2040.9306%20161.941%2038.0606%20160.133%2035.9443C158.326%2033.828%20156.133%2032.7699%20153.551%2032.7699C150.969%2032.7699%20148.774%2033.828%20146.967%2035.9443C145.159%2038.0606%20143.69%2040.9306%20142.554%2044.5567C141.417%2048.1829%20140.592%2052.4154%20140.076%2057.2519C139.557%2062.0908%20139.301%2067.2776%20139.301%2072.8195C139.301%2078.3614%20139.557%2083.5771%20140.076%2088.4619C140.592%2093.3491%20141.417%2097.6058%20142.554%20101.232C143.69%20104.858%20145.159%20107.706%20146.967%20109.772C148.774%20111.837%20150.969%20112.869%20153.551%20112.869C156.133%20112.869%20158.326%20111.837%20160.133%20109.772C161.941%20107.706%20163.439%20104.858%20164.624%20101.232C165.811%2097.6058%20166.662%2093.3491%20167.181%2088.4619C167.698%2083.5771%20167.956%2078.3638%20167.956%2072.8195Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M244.47%2095.3261C244.47%2099.2591%20244.571%20102.383%20244.779%20104.7C244.984%20107.019%20245.423%20108.782%20246.089%20109.99C246.757%20111.201%20247.737%20111.981%20249.025%20112.334C250.311%20112.686%20252.037%20112.863%20254.201%20112.863V115.047H230.07V104.255C228.005%20108.188%20225.295%20111.21%20221.941%20113.326C218.588%20115.44%20214.896%20116.501%20210.871%20116.501C207.773%20116.501%20204.806%20115.493%20201.968%20113.476C199.131%20111.459%20196.575%20108.589%20194.305%20104.859C192.032%20101.131%20190.225%2096.5437%20188.883%2091.1008C187.542%2085.658%20186.871%2079.5604%20186.871%2072.8082C186.871%2066.056%20187.542%2059.857%20188.883%2054.5156C190.225%2049.1718%20192.032%2044.6131%20194.305%2040.8323C196.575%2037.0516%20199.131%2034.1816%20201.968%2032.2151C204.806%2030.2486%20207.776%2029.2654%20210.871%2029.2654C214.896%2029.2654%20218.588%2030.2993%20221.941%2032.3649C225.295%2034.4304%20228.005%2037.4792%20230.07%2041.5112V27.4704C230.07%2024.4506%20229.889%2021.9599%20229.53%2019.9983C229.168%2018.0366%20228.603%2016.476%20227.829%2015.3164C227.057%2014.1592%20226.026%2013.3789%20224.74%2012.9779C223.452%2012.5744%20221.934%2012.3715%20220.183%2012.3715V10.1876C225.124%2010.0886%20229.53%209.35897%20233.4%208.00369C237.268%206.64841%20240.236%204.51041%20242.301%201.59692H244.47V95.3261ZM230.07%2061.1784C230.07%2053.0226%20228.777%2046.8308%20226.195%2042.6007C223.611%2038.373%20220.409%2036.2568%20216.587%2036.2568C214.727%2036.2568%20212.918%2036.8124%20211.163%2037.9189C209.407%2039.0277%20207.831%2040.9652%20206.437%2043.7362C205.042%2046.5047%20203.903%2050.2299%20203.025%2054.9142C202.147%2059.5961%20201.71%2065.5607%20201.71%2072.8106C201.71%2080.0605%20202.149%2086.0276%20203.025%2090.7095C203.903%2095.3914%20205.04%2099.1431%20206.437%20101.962C207.831%20104.782%20209.407%20106.746%20211.163%20107.852C212.918%20108.961%20214.727%20109.514%20216.587%20109.514C220.409%20109.514%20223.614%20107.376%20226.195%20103.095C228.777%2098.817%20230.07%2092.6494%20230.07%2084.5926V61.1808V61.1784Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M312.422%2095.3527C313.658%2098.9764%20314.765%20101.919%20315.742%20104.185C316.72%20106.449%20317.8%20108.186%20318.985%20109.391C320.17%20110.599%20321.482%20111.43%20322.925%20111.882C324.366%20112.334%20326.168%20112.662%20328.332%20112.863V115.046H314.584C309.845%20115.046%20306.371%20114.469%20304.156%20113.307C301.943%20112.15%20300.266%20109.756%20299.135%20106.127L287.659%2070.9094C286.832%2068.1867%20285.488%2066.2251%20283.625%2065.0123C281.765%2063.8044%20279.902%2063.1981%20278.044%2063.1981H277.171V95.3503C277.171%2098.974%20277.248%20101.943%20277.403%20104.257C277.557%20106.574%20277.943%20108.359%20278.561%20109.616C279.178%20110.874%20280.156%20111.73%20281.495%20112.184C282.834%20112.638%20284.738%20112.863%20287.211%20112.863V115.046H251.865V112.863C254.232%20112.863%20256.085%20112.638%20257.424%20112.181C258.764%20111.73%20259.743%20110.872%20260.361%20109.613C260.978%20108.355%20261.365%20106.567%20261.519%20104.25C261.673%20101.933%20261.751%2098.9619%20261.751%2095.3358V19.1914C261.751%2015.9687%20261.673%2013.3523%20261.519%2011.3351C261.365%209.32032%20260.952%207.75969%20260.284%206.65325C259.613%205.54438%20258.609%204.79065%20257.27%204.3872C255.931%203.98376%20254.128%203.78083%20251.865%203.78083V1.59692H281.943C288.004%201.59692%20293.168%202.37965%20297.431%203.94269C301.695%205.50815%20305.215%207.65098%20307.99%2010.376C310.765%2013.1011%20312.794%2016.331%20314.077%2020.0635C315.361%2023.7984%20316.005%2027.8835%20316.005%2032.3238C316.005%2039.5906%20314.309%2045.8452%20310.919%2051.0924C307.529%2056.3395%20301.977%2059.9222%20294.273%2061.8379C296.78%2062.4443%20298.86%2063.6232%20300.515%2065.3844C302.168%2067.1455%20303.664%2069.9889%20305.003%2073.9122L312.417%2095.3503L312.422%2095.3527ZM281.956%2059.4149C285.039%2059.4149%20287.739%2058.9631%20290.053%2058.0548C292.367%2057.1464%20294.268%2055.6341%20295.759%2053.513C297.25%2051.3943%20298.356%2048.5944%20299.075%2045.1132C299.794%2041.632%20300.153%2037.3705%20300.153%2032.3238C300.153%2027.2771%20299.69%2023.0422%20298.763%2019.6093C297.837%2016.1813%20296.63%2013.4055%20295.139%2011.2844C293.648%209.1657%20291.925%207.6534%20289.971%206.74505C288.017%205.8367%20285.961%205.38252%20283.804%205.38252C281.647%205.38252%20279.871%206.16525%20278.79%207.72829C277.711%209.29374%20277.171%2011.4366%20277.171%2014.1616V59.4124H281.953L281.956%2059.4149Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M372.837%2095.3374C372.837%2099.2703%20372.938%20102.394%20373.146%20104.711C373.351%20107.03%20373.79%20108.794%20374.459%20110.001C375.127%20111.212%20376.131%20111.992%20377.47%20112.345C378.809%20112.698%20380.558%20112.874%20382.722%20112.874V115.058H358.437L358.445%20103.058C356.691%20107.392%20354.316%20110.719%20351.324%20113.036C348.333%20115.352%20344.979%20116.512%20341.265%20116.512C338.686%20116.512%20336.208%20116.184%20333.836%20115.531C331.464%20114.877%20329.426%20113.768%20327.722%20112.207C326.019%20110.646%20324.653%20108.608%20323.623%20106.09C322.59%20103.573%20322.076%20100.452%20322.076%2096.7241C322.076%2092.2959%20322.979%2088.5175%20324.783%2085.3963C326.588%2082.275%20328.834%2079.5814%20331.515%2077.3153C334.196%2075.0493%20337.11%2073.1094%20340.259%2071.498C343.406%2069.8867%20346.32%2068.3792%20349.003%2066.9683C351.686%2065.5575%20353.928%2064.1491%20355.733%2062.7382C357.537%2061.3298%20358.442%2059.7185%20358.442%2057.9042V56.3943C358.442%2049.5478%20357.101%2044.3103%20354.42%2040.6866C351.739%2037.0628%20348.231%2035.2486%20343.9%2035.2486C340.703%2035.2486%20337.969%2036.1956%20335.701%2038.0896C333.433%2039.9836%20331.783%2043.0227%20330.75%2047.2069C331.573%2046.9073%20332.451%2046.7551%20333.378%2046.7551C335.646%2046.7551%20337.579%2047.5354%20339.176%2049.0961C340.771%2050.6567%20341.572%2052.5966%20341.572%2054.9134C341.572%2057.2302%20340.768%2059.0179%20339.169%2060.5785C337.567%2062.1391%20335.629%2062.9194%20333.356%2062.9194C331.083%2062.9194%20328.991%2062.1415%20327.389%2060.5833C325.787%2059.0251%20324.986%2057.1384%20324.986%2054.923C324.986%2051.2027%20325.58%2047.7819%20326.767%2044.6654C327.954%2041.549%20329.633%2038.8578%20331.8%2036.5966C333.967%2034.3354%20336.548%2032.5477%20339.543%2031.2407C342.537%2029.9337%20345.84%2029.2791%20349.454%2029.2791C352.76%2029.2791%20355.856%2029.8854%20358.749%2031.0933C361.639%2032.3037%20364.117%2034.1928%20366.183%2036.7609C368.246%2039.3313%20369.874%2042.6072%20371.059%2046.586C372.246%2050.5673%20372.84%2055.3796%20372.84%2061.023V95.3374H372.837ZM358.437%2064.9584C356.787%2066.6712%20354.7%2068.2584%20352.171%2069.72C349.645%2071.1815%20347.22%2072.9161%20344.904%2074.9309C342.583%2076.9481%20340.599%2079.4388%20338.949%2082.4103C337.299%2085.3818%20336.473%2089.235%20336.473%2093.9676C336.473%2099.8115%20337.195%20103.839%20338.64%20106.056C340.083%20108.272%20342.095%20109.378%20344.672%20109.378C347.867%20109.378%20350.757%20107.868%20353.334%20104.846C355.911%20101.824%20357.615%2097.3933%20358.44%2091.5494V64.9608L358.437%2064.9584Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M421.892%2029.2791C424.978%2029.2791%20427.965%2030.2623%20430.848%2032.2288C433.729%2034.1953%20436.28%2037.0677%20438.495%2040.846C440.707%2044.6268%20442.507%2049.1855%20443.899%2054.5293C445.289%2059.8731%20445.986%2065.9682%20445.986%2072.8219C445.986%2079.6756%20445.291%2085.6717%20443.902%2091.1145C442.512%2096.5574%20440.712%20101.145%20438.502%20104.873C436.289%20108.603%20433.744%20111.475%20430.863%20113.49C427.982%20115.507%20425%20116.515%20421.914%20116.515C417.901%20116.515%20414.248%20115.464%20410.957%20113.364C407.663%20111.267%20404.988%20108.25%20402.932%20104.315V115.058H378.801V112.874C380.963%20112.874%20382.688%20112.698%20383.974%20112.345C385.26%20111.992%20386.24%20111.212%20386.911%20110.001C387.579%20108.794%20388.018%20107.03%20388.223%20104.713C388.428%20102.396%20388.532%2099.2752%20388.532%2095.3446V27.4986C388.532%2024.4764%20388.351%2021.9833%20387.992%2020.0192C387.63%2018.0551%20387.065%2016.4945%20386.291%2015.3349C385.519%2014.1777%20384.515%2013.395%20383.279%2012.994C382.044%2012.5905%20380.551%2012.3876%20378.799%2012.3876V10.2037C383.74%2010.1047%20388.122%209.37508%20391.939%208.01981C395.756%206.66453%20398.697%204.52652%20400.763%201.61304H402.932L402.896%2041.5273C404.954%2037.4977%20407.63%2034.4489%20410.926%2032.381C414.222%2030.313%20417.875%2029.2815%20421.894%2029.2815L421.892%2029.2791ZM431.147%2072.8219C431.147%2065.572%20430.708%2059.6073%20429.837%2054.9255C428.964%2050.2436%20427.832%2046.5184%20426.447%2043.7474C425.057%2040.9789%20423.465%2039.039%20421.665%2037.9301C419.865%2036.8237%20418.043%2036.268%20416.193%2036.268C412.491%2036.268%20409.355%2038.3843%20406.785%2042.612C404.215%2046.8421%20402.929%2053.0339%20402.929%2061.1897V84.6015C402.929%2092.6558%20404.213%2098.8258%20406.785%20103.104C409.352%20107.385%20412.489%20109.523%20416.193%20109.523C418.043%20109.523%20419.865%20108.97%20421.665%20107.861C423.465%20106.755%20425.057%20104.791%20426.447%20101.971C427.835%2099.152%20428.966%2095.4026%20429.837%2090.7183C430.711%2086.0365%20431.147%2080.0694%20431.147%2072.8195V72.8219Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M486.017%2029.2791C489.103%2029.2791%20492.09%2030.2623%20494.973%2032.2288C497.854%2034.1953%20500.405%2037.0677%20502.62%2040.846C504.832%2044.6268%20506.632%2049.1855%20508.024%2054.5293C509.414%2059.8731%20510.111%2065.9682%20510.111%2072.8219C510.111%2079.6756%20509.416%2085.6717%20508.027%2091.1145C506.637%2096.5574%20504.837%20101.145%20502.627%20104.873C500.414%20108.603%20497.869%20111.475%20494.988%20113.49C492.107%20115.507%20489.125%20116.515%20486.039%20116.515C482.026%20116.515%20478.373%20115.464%20475.082%20113.364C471.788%20111.267%20469.113%20108.25%20467.057%20104.315V115.058H442.926V112.874C445.088%20112.874%20446.813%20112.698%20448.099%20112.345C449.385%20111.992%20450.365%20111.212%20451.036%20110.001C451.704%20108.794%20452.143%20107.03%20452.348%20104.713C452.553%20102.396%20452.657%2099.2752%20452.657%2095.3446V27.4986C452.657%2024.4764%20452.476%2021.9833%20452.117%2020.0192C451.755%2018.0551%20451.19%2016.4945%20450.416%2015.3349C449.644%2014.1777%20448.64%2013.395%20447.404%2012.994C446.169%2012.5905%20444.676%2012.3876%20442.924%2012.3876V10.2037C447.865%2010.1047%20452.247%209.37508%20456.064%208.01981C459.881%206.66453%20462.822%204.52652%20464.888%201.61304H467.057L467.021%2041.5273C469.079%2037.4977%20471.755%2034.4489%20475.051%2032.381C478.347%2030.313%20482%2029.2815%20486.019%2029.2815L486.017%2029.2791ZM495.272%2072.8219C495.272%2065.572%20494.833%2059.6073%20493.962%2054.9255C493.089%2050.2436%20491.957%2046.5184%20490.572%2043.7474C489.182%2040.9789%20487.59%2039.039%20485.79%2037.9301C483.99%2036.8237%20482.168%2036.268%20480.318%2036.268C476.616%2036.268%20473.48%2038.3843%20470.91%2042.612C468.341%2046.8421%20467.054%2053.0339%20467.054%2061.1897V84.6015C467.054%2092.6558%20468.338%2098.8258%20470.91%20103.104C473.477%20107.385%20476.614%20109.523%20480.318%20109.523C482.168%20109.523%20483.99%20108.97%20485.79%20107.861C487.59%20106.755%20489.182%20104.791%20490.572%20101.971C491.96%2099.152%20493.091%2095.4026%20493.962%2090.7183C494.836%2086.0365%20495.272%2080.0694%20495.272%2072.8195V72.8219Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M531.337%2095.3164C531.337%2099.2518%20531.438%20102.378%20531.645%20104.699C531.851%20107.021%20532.29%20108.785%20532.956%20109.995C533.624%20111.205%20534.628%20111.988%20535.967%20112.341C537.306%20112.696%20539.058%20112.87%20541.222%20112.87V115.054H507.204V112.87C509.365%20112.87%20511.091%20112.693%20512.377%20112.341C513.663%20111.988%20514.642%20111.208%20515.313%20109.997C515.981%20108.787%20516.421%20107.023%20516.626%20104.704C516.831%20102.388%20516.934%2099.2639%20516.934%2095.3309V56.4748C516.934%2053.4501%20516.754%2050.957%20516.394%2048.9905C516.032%2047.024%20515.468%2045.4876%20514.693%2044.3811C513.921%2043.2723%20512.917%2042.5185%20511.682%2042.1127C510.446%2041.7092%20508.953%2041.5063%20507.201%2041.5063V39.3224C512.143%2039.1219%20516.548%2038.3392%20520.419%2036.979C524.286%2035.6189%20527.254%2033.5244%20529.319%2030.6979H531.334V95.314L531.337%2095.3164ZM522.904%2021.2665C520.028%2021.2665%20517.562%2020.2857%20515.509%2018.3216C513.453%2016.36%20512.427%2013.9683%20512.427%2011.1466C512.427%208.32494%20513.455%205.78591%20515.509%203.82184C517.564%201.86019%20520.028%200.876953%20522.904%200.876953C525.78%200.876953%20528.217%201.86019%20530.222%203.82184C532.225%205.78591%20533.226%208.22831%20533.226%2011.1466C533.226%2014.0649%20532.225%2016.36%20530.222%2018.3216C528.217%2020.2857%20525.78%2021.2665%20522.904%2021.2665Z'%20fill='%23EBEAE0'/%3e%3cpath%20d='M560.545%2030.7318H577.999V34.5173H560.545V98.6261C560.545%20105.985%20562.603%20109.664%20566.724%20109.664C568.164%20109.664%20569.424%20109.362%20570.505%20108.756C571.586%20108.149%20572.539%20107.444%20573.364%20106.637C574.291%20105.729%20575.113%20104.721%20575.837%20103.61L577.999%20105.274C576.969%20107.396%20575.632%20109.263%20573.984%20110.882C572.643%20112.302%20570.946%20113.597%20568.886%20114.761C566.828%20115.923%20564.355%20116.508%20561.471%20116.508C559.302%20116.508%20557.292%20116.179%20555.432%20115.525C553.572%20114.87%20551.948%20113.737%20550.556%20112.121C549.163%20110.507%20548.078%20108.34%20547.306%20105.617C546.531%20102.895%20546.145%2099.5175%20546.145%2095.4807V34.5173H536.414V30.7318C543.107%2030.1254%20547.822%2028.3111%20550.558%2025.2841C553.294%2022.257%20554.971%2017.9206%20555.591%2012.27H560.545V30.7318Z'%20fill='%23EBEAE0'/%3e%3c/svg%3e", ft = "data:image/svg+xml,%3csvg%20width='586'%20height='175'%20viewBox='0%200%20586%20175'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M712.209%20677.514C701.694%20668.379%20632.305%20621.302%20632.305%20621.302C632.305%20621.302%20611.279%20650.812%20608.474%20648.004C606.37%20645.895%20623.894%20624.817%20628.101%20607.25C629.5%20601.412%20633.707%20586.173%20635.11%20576.335C636.512%20566.497%20632.305%20540.498%20635.811%20540.498C639.318%20540.498%20646.326%20558.768%20646.326%20558.768C646.326%20558.768%20644.924%20535.581%20642.82%20517.311C640.716%20499.041%20632.305%20479.369%20625.296%20472.339C618.288%20465.314%20589.548%20468.868%20589.548%20463.205C589.548%20459.69%20619.686%20460.393%20648.426%20461.096C677.166%20461.799%20693.287%20451.258%20693.988%20449.149C694.69%20447.04%20692.586%20445.634%20693.988%20443.529C695.391%20441.42%20698.192%20440.014%20700.296%20436.503C702.399%20432.988%20704.499%20425.962%20708.707%20427.368C712.914%20428.774%20705.902%20437.909%20710.109%20440.014C714.313%20442.123%20718.521%20434.394%20722.724%20426.665C726.928%20418.936%20724.828%20404.181%20724.828%20404.181C724.828%20404.181%20724.828%20403.478%20724.127%20404.884C723.425%20406.29%20720.62%20407.696%20717.819%20410.504C715.014%20413.316%20713.616%20418.936%20710.109%20418.233C706.603%20417.53%20709.408%20411.91%20706.603%20409.801C703.798%20407.692%20686.278%20399.26%20688.378%20395.749C690.482%20392.234%20705.2%20399.264%20710.807%20400.666C716.413%20402.072%20723.425%20399.963%20723.425%20399.963C723.425%20399.963%20728.33%20387.317%20727.629%20377.479C726.928%20367.641%20712.91%20351.48%20703.798%20338.131C694.686%20324.783%20693.984%20305.107%20669.452%20274.894C644.92%20244.681%20597.959%20241.869%20590.946%20236.249C583.938%20230.629%20578.331%20209.547%20573.423%20180.038C568.518%20150.528%20576.929%20150.528%20566.414%20102.744C555.903%2054.9566%20507.54%20-3.36%20492.12%200.150988C476.7%203.66198%20476.7%2084.4704%20478.102%20109.766C479.505%20135.062%20529.271%20220.787%20534.176%20228.516C539.081%20236.245%20549.596%20239.76%20545.388%20246.083C541.184%20252.406%20508.938%20203.22%20493.518%20173.008C478.098%20142.795%20450.06%20101.338%20427.631%2080.2564C405.203%2059.1746%20317.585%207.8839%20302.866%2020.5298C288.148%2033.1757%20309.174%20106.958%20318.286%20129.442C327.398%20151.926%20344.569%20183.898%20367.002%20205.679C389.43%20227.46%20455.317%20260.485%20462.326%20264.703C469.335%20268.92%20474.945%20275.946%20474.945%20275.946C474.945%20275.946%20472.14%20289.295%20472.14%20297.727C472.14%20306.159%20474.945%20327.237%20475.646%20338.481C476.347%20349.725%20474.945%20355.345%20473.542%20365.183C472.14%20375.021%20466.534%20381.344%20465.832%20387.667C465.131%20393.99%20467.936%20391.881%20467.936%20391.881C467.936%20391.881%20461.629%20406.635%20451.114%20412.255C440.599%20417.875%20418.872%20408.744%20399.244%20403.121C379.617%20397.501%20354.383%20397.501%20354.383%20397.501L369.454%20407.688C369.454%20407.688%20369.454%20410.5%20365.948%20408.391C362.442%20406.282%20283.94%20408.391%20270.624%20409.094C257.308%20409.797%20240.802%20413.332%20240.802%20413.332C240.802%20413.332%20251.698%20416.823%20251.698%20419.631C251.698%20422.439%20197.023%20432.281%20139.547%20489.898C82.0715%20547.516%2073.6603%20640.97%2072.2578%20640.97C70.8553%20640.97%2067.3529%20609.352%2065.9504%20607.243C64.5479%20605.134%2058.9417%20601.623%2042.8206%20602.326C26.6995%20603.029%2020.3921%20610.758%2020.3921%20611.461C20.3921%20612.163%2023.1971%20614.975%2023.1971%20616.377C23.1971%20617.779%209.17982%20624.809%209.17982%20626.215C9.17982%20627.621%2014.786%20630.433%2014.786%20631.835C14.786%20633.237%2012.6822%20634.647%208.47856%20638.158C4.27495%20641.673%20-0.63389%20648.699%200.0673728%20650.105C0.768635%20651.511%204.97225%20652.214%205.67351%20655.022C6.37477%20657.834%203.56972%20664.86%202.86846%20672.589C2.1672%20680.318%207.07207%20685.235%207.77333%20685.235C8.4746%20685.235%2010.5784%20677.506%2011.9769%20677.506C13.3755%20677.506%2014.782%20689.453%2015.4833%20692.261C16.1845%20695.073%2016.1845%20696.475%2016.1845%20702.099C16.1845%20707.723%2019.6908%20711.937%2020.3921%20711.937C21.0934%20711.937%2019.6908%20703.505%2021.7946%20708.422C23.8984%20713.339%2045.6257%20730.203%2057.5432%20730.906C69.4606%20731.609%2073.6643%20725.989%2076.4693%20725.989C79.2744%20725.989%2082.7767%20733.015%2084.1792%20731.609C85.5818%20730.203%2084.1792%20702.099%2086.9843%20702.099C89.7893%20702.099%2089.7893%20707.719%2090.4866%20709.828C91.1879%20711.937%20101.703%20730.203%20108.712%20740.041C115.72%20749.879%20131.841%20763.227%20136.75%20775.877C141.655%20788.523%20109.413%20827.875%20105.91%20838.416C102.408%20848.957%20106.612%20869.332%20150.07%20917.115C193.529%20964.895%20253.809%20959.275%20258.714%20955.76C263.619%20952.245%20258.714%20941.005%20243.294%20917.115C227.875%20893.225%20198.433%20865.118%20198.433%20863.712C198.433%20862.306%20206.143%20860.9%20213.152%20859.498C220.161%20858.092%20262.918%20844.743%20263.619%20846.149C264.32%20847.555%20243.291%20855.987%20237.684%20857.393C232.078%20858.799%20229.273%20870.039%20234.178%20877.772C239.083%20885.5%20265.719%20899.552%20314.082%20910.796C362.446%20922.036%20422.726%20912.905%20424.129%20902.364C425.532%20891.823%20410.112%20881.286%20393.991%20872.152C377.869%20863.017%20322.497%20850.371%20322.497%20846.153C322.497%20841.935%20340.021%20838.424%20367.358%20816.643C394.696%20794.862%20400.302%20771.671%20401.704%20765.348C403.107%20759.025%20402.406%20754.807%20401.704%20754.807C401.003%20754.807%20400.302%20756.916%20398.198%20761.833C396.094%20766.75%20384.181%20784.317%20381.376%20782.208C378.571%20780.099%20383.48%20769.562%20386.281%20764.641C389.086%20759.724%20398.899%20728.102%20399.597%20724.591C400.298%20721.076%20400.999%20711.242%20405.203%20711.242C409.406%20711.242%20407.307%20720.377%20412.212%20722.486C417.12%20724.595%20472.492%20704.919%20472.492%20704.919C472.492%20704.919%20466.886%20683.138%20461.977%20667.676C457.073%20652.218%20456.371%20634.651%20459.172%20633.948C461.324%20633.408%20461.977%20641.677%20467.583%20661.353C473.17%20680.946%20483.003%20701.404%20505.432%20721.08C527.86%20740.756%20569.215%20759.724%20591.647%20794.858C614.076%20829.992%20647.019%20840.533%20655.431%20834.909C663.842%20829.289%20636.505%20775.885%20633.002%20766.047C629.496%20756.209%20601.461%20708.43%20595.855%20695.081C590.249%20681.732%20590.946%20680.326%20586.743%20666.274C582.539%20652.222%20588.846%20638.869%20593.05%20638.869C597.254%20638.869%20596.556%20663.462%20598.656%20676.112C600.76%20688.758%20604.964%20694.382%20611.271%20698.596C617.578%20702.81%20649.821%20703.513%20656.132%20704.919C662.439%20706.325%20705.197%20721.783%20712.205%20723.892C719.214%20726.001%20736.036%20729.512%20741.642%20718.975C747.249%20708.434%20722.716%20686.653%20712.205%20677.518L712.209%20677.514ZM578.922%20362.82C575.007%20358.896%20573.038%20349.502%20570.958%20339.557C569.837%20334.211%20568.221%20326.494%20566.695%20323.651C565.023%20324.572%20563.462%20325.136%20561.925%20325.136C556.153%20325.136%20552.492%20319.818%20551.236%20316.676L557.195%20314.269C557.666%20315.417%20559.548%20318.698%20561.925%20318.698C562.987%20318.67%20566.141%20316.414%20568.442%20314.766C574.005%20310.782%20580.93%20305.822%20588.898%20305.822C602.056%20305.822%20613.157%20317.101%20618.66%20326.76C622.479%20333.461%20631.223%20352.89%20629.195%20358.991C628.561%20360.901%20626.711%20362.51%20619.761%20364.154C615.019%20365.278%20605.023%20366.835%20595.918%20366.835C588.636%20366.835%20581.929%20365.838%20578.918%20362.824L578.922%20362.82Z'%20fill='%23F0C300'/%3e%3c/svg%3e", pt = ({ product: e, languages: t, form: n }) => {
|
|
984
|
+
let o = Z(), { user: s, setUser: c, pass: l, setPass: u, loadingAuth: d, isAuthenticated: f } = V($), [p, m] = W(!1), [h, g] = W(null), [_, v] = W(t.find((e) => e.active)?.code || "en"), [y, b] = W(!1);
|
|
985
|
+
return f ? (console.log("Usuario ya autenticado"), null) : /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(C, {
|
|
986
|
+
container: !0,
|
|
987
|
+
children: [/* @__PURE__ */ q(C, {
|
|
988
|
+
size: {
|
|
989
|
+
xs: 0,
|
|
990
|
+
sm: 5.5,
|
|
991
|
+
lg: 6,
|
|
992
|
+
xl: 6
|
|
993
|
+
},
|
|
994
|
+
sx: { bgcolor: (e) => e.palette.background.paper },
|
|
995
|
+
children: /* @__PURE__ */ J(i, {
|
|
996
|
+
sx: {
|
|
997
|
+
height: "100vh",
|
|
998
|
+
width: "50vw",
|
|
999
|
+
display: "flex",
|
|
1000
|
+
justifyContent: "center",
|
|
1001
|
+
alignItems: "flex-start",
|
|
1002
|
+
padding: "15%",
|
|
1003
|
+
gap: "16px",
|
|
1004
|
+
flexDirection: "column"
|
|
1005
|
+
},
|
|
1006
|
+
children: [
|
|
1007
|
+
/* @__PURE__ */ q("img", {
|
|
1008
|
+
src: dt,
|
|
1009
|
+
alt: "Good Rabbit Logo",
|
|
1010
|
+
style: {
|
|
1011
|
+
height: "auto",
|
|
1012
|
+
width: "100%",
|
|
1013
|
+
objectFit: "contain"
|
|
1014
|
+
}
|
|
1015
|
+
}),
|
|
1016
|
+
/* @__PURE__ */ q(R, {
|
|
1017
|
+
variant: "h4",
|
|
1018
|
+
sx: {
|
|
1019
|
+
color: (e) => e.palette["gr-base-light"].main,
|
|
1020
|
+
fontSize: "44px",
|
|
1021
|
+
fontStyle: "normal",
|
|
1022
|
+
fontWeight: "300",
|
|
1023
|
+
lineHeight: "100%",
|
|
1024
|
+
letterSpacing: "-3%"
|
|
1025
|
+
},
|
|
1026
|
+
children: e.name
|
|
1027
|
+
}),
|
|
1028
|
+
/* @__PURE__ */ q("img", {
|
|
1029
|
+
src: ft,
|
|
1030
|
+
alt: "Good Rabbit Logo",
|
|
1031
|
+
style: {
|
|
1032
|
+
position: "absolute",
|
|
1033
|
+
bottom: 0,
|
|
1034
|
+
right: "50vw",
|
|
1035
|
+
height: "15vh",
|
|
1036
|
+
objectFit: "contain"
|
|
1037
|
+
}
|
|
1038
|
+
})
|
|
1039
|
+
]
|
|
1040
|
+
})
|
|
1041
|
+
}), /* @__PURE__ */ q(C, {
|
|
1042
|
+
size: {
|
|
1043
|
+
xs: 12,
|
|
1044
|
+
sm: 6.5,
|
|
1045
|
+
lg: 6,
|
|
1046
|
+
xl: 6
|
|
1047
|
+
},
|
|
1048
|
+
sx: {
|
|
1049
|
+
backgroundImage: `url(${e.backgroundImage})`,
|
|
1050
|
+
backgroundSize: "cover",
|
|
1051
|
+
backgroundRepeat: "no-repeat",
|
|
1052
|
+
backgroundPosition: "center",
|
|
1053
|
+
height: "100vh",
|
|
1054
|
+
py: "15vh",
|
|
1055
|
+
px: "12vw",
|
|
1056
|
+
display: "flex",
|
|
1057
|
+
justifyContent: "center",
|
|
1058
|
+
alignContent: "center"
|
|
1059
|
+
},
|
|
1060
|
+
children: /* @__PURE__ */ J(i, {
|
|
1061
|
+
sx: {
|
|
1062
|
+
bgcolor: (e) => `${e.palette["gr-base-light"].main}BF`,
|
|
1063
|
+
height: "auto",
|
|
1064
|
+
width: {
|
|
1065
|
+
xs: "100%",
|
|
1066
|
+
sm: "50vw"
|
|
1067
|
+
},
|
|
1068
|
+
display: "flex",
|
|
1069
|
+
justifyContent: "center",
|
|
1070
|
+
alignItems: "flex-start",
|
|
1071
|
+
flexDirection: "column",
|
|
1072
|
+
borderRadius: "20px",
|
|
1073
|
+
px: "20px",
|
|
1074
|
+
py: "40px"
|
|
1075
|
+
},
|
|
1076
|
+
children: [
|
|
1077
|
+
/* @__PURE__ */ q(i, { children: /* @__PURE__ */ q(R, {
|
|
1078
|
+
variant: "h4",
|
|
1079
|
+
sx: {
|
|
1080
|
+
color: (e) => e.palette["gr-grey"].main,
|
|
1081
|
+
textAlign: "start",
|
|
1082
|
+
fontSize: "22px",
|
|
1083
|
+
fontStyle: "normal",
|
|
1084
|
+
fontWeight: "700",
|
|
1085
|
+
lineHeight: "normal",
|
|
1086
|
+
mb: "44px"
|
|
1087
|
+
},
|
|
1088
|
+
children: n.title
|
|
1089
|
+
}) }),
|
|
1090
|
+
/* @__PURE__ */ J(i, {
|
|
1091
|
+
sx: { width: "100%" },
|
|
1092
|
+
children: [/* @__PURE__ */ q(I, {
|
|
1093
|
+
fullWidth: !0,
|
|
1094
|
+
variant: "outlined",
|
|
1095
|
+
autoComplete: "off",
|
|
1096
|
+
label: n.labels.username,
|
|
1097
|
+
type: "text",
|
|
1098
|
+
placeholder: n.placeholder.username,
|
|
1099
|
+
focused: !0,
|
|
1100
|
+
sx: { marginBottom: "44px" },
|
|
1101
|
+
value: s,
|
|
1102
|
+
onChange: (e) => c(e.target.value)
|
|
1103
|
+
}), /* @__PURE__ */ q(I, {
|
|
1104
|
+
fullWidth: !0,
|
|
1105
|
+
variant: "outlined",
|
|
1106
|
+
autoComplete: "off",
|
|
1107
|
+
label: n.labels.password,
|
|
1108
|
+
type: y ? "text" : "password",
|
|
1109
|
+
placeholder: n.placeholder.password,
|
|
1110
|
+
focused: !0,
|
|
1111
|
+
size: "medium",
|
|
1112
|
+
value: l,
|
|
1113
|
+
onChange: (e) => u(e.target.value),
|
|
1114
|
+
slotProps: { input: { endAdornment: /* @__PURE__ */ q(E, {
|
|
1115
|
+
position: "end",
|
|
1116
|
+
children: /* @__PURE__ */ q(T, {
|
|
1117
|
+
"aria-label": y ? "Ocultar contraseña" : "Mostrar contraseña",
|
|
1118
|
+
onClick: () => b((e) => !e),
|
|
1119
|
+
edge: "end",
|
|
1120
|
+
sx: { color: (e) => e.palette["gr-grey"].main },
|
|
1121
|
+
children: q(y ? he : me, {})
|
|
1122
|
+
})
|
|
1123
|
+
}) } }
|
|
1124
|
+
})]
|
|
1125
|
+
}),
|
|
1126
|
+
/* @__PURE__ */ J(i, {
|
|
1127
|
+
sx: {
|
|
1128
|
+
width: "100%",
|
|
1129
|
+
display: "flex",
|
|
1130
|
+
justifyContent: "center",
|
|
1131
|
+
alignItems: "center",
|
|
1132
|
+
flexDirection: "column",
|
|
1133
|
+
pt: "44px"
|
|
1134
|
+
},
|
|
1135
|
+
children: [
|
|
1136
|
+
/* @__PURE__ */ q(a, {
|
|
1137
|
+
variant: "contained",
|
|
1138
|
+
disableElevation: !0,
|
|
1139
|
+
sx: {
|
|
1140
|
+
height: "52px",
|
|
1141
|
+
width: "10vw",
|
|
1142
|
+
minWidth: "140px",
|
|
1143
|
+
borderRadius: "20px",
|
|
1144
|
+
padding: "10px 16px",
|
|
1145
|
+
fontWeight: "600",
|
|
1146
|
+
color: "#ffffff",
|
|
1147
|
+
"&:focus": { outline: "none" },
|
|
1148
|
+
"&:focus-visible": { outline: "none" },
|
|
1149
|
+
"&.Mui-disabled, &[data-loading='true']": {
|
|
1150
|
+
backgroundColor: "#CECDCA",
|
|
1151
|
+
color: "#9D9A95",
|
|
1152
|
+
boxShadow: "none"
|
|
1153
|
+
},
|
|
1154
|
+
"& .MuiLoadingButton-loadingIndicator": { color: (e) => e.palette["gr-grey"].main },
|
|
1155
|
+
"& .MuiCircularProgress-root": { color: (e) => e.palette["gr-grey"].main }
|
|
1156
|
+
},
|
|
1157
|
+
color: "gr-base-dark",
|
|
1158
|
+
loading: d,
|
|
1159
|
+
onClick: () => n.buttons.signIn.onClick(o),
|
|
1160
|
+
children: /* @__PURE__ */ q("span", {
|
|
1161
|
+
style: { textTransform: "none" },
|
|
1162
|
+
children: d ? "" : n.buttons.signIn.text
|
|
1163
|
+
})
|
|
1164
|
+
}),
|
|
1165
|
+
/* @__PURE__ */ q(R, {
|
|
1166
|
+
variant: "body2",
|
|
1167
|
+
sx: {
|
|
1168
|
+
color: (e) => e.palette["gr-grey"].main,
|
|
1169
|
+
textAlign: "center",
|
|
1170
|
+
fontWeight: "bold",
|
|
1171
|
+
marginTop: "32px",
|
|
1172
|
+
marginBottom: "32px"
|
|
1173
|
+
},
|
|
1174
|
+
children: n.divider
|
|
1175
|
+
}),
|
|
1176
|
+
/* @__PURE__ */ J(i, {
|
|
1177
|
+
sx: {
|
|
1178
|
+
display: "flex",
|
|
1179
|
+
flexDirection: "row",
|
|
1180
|
+
gap: 3.5
|
|
1181
|
+
},
|
|
1182
|
+
children: [/* @__PURE__ */ q(a, {
|
|
1183
|
+
variant: "outlined",
|
|
1184
|
+
disableElevation: !0,
|
|
1185
|
+
sx: {
|
|
1186
|
+
borderRadius: "20px",
|
|
1187
|
+
padding: "10px 16px",
|
|
1188
|
+
fontWeight: "600",
|
|
1189
|
+
color: (e) => e.palette["gr-grey"].main,
|
|
1190
|
+
"&:focus": { outline: "none" },
|
|
1191
|
+
"&:focus-visible": { outline: "none" },
|
|
1192
|
+
"&.Mui-disabled, &[data-loading='true']": {
|
|
1193
|
+
border: "1px solid #9D9A95",
|
|
1194
|
+
color: "#9D9A95",
|
|
1195
|
+
boxShadow: "none"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
color: "gr-base-dark",
|
|
1199
|
+
disabled: n.buttons.google.disabled,
|
|
1200
|
+
onClick: () => n.buttons.google.onClick(o),
|
|
1201
|
+
children: n.buttons.google.icon
|
|
1202
|
+
}), /* @__PURE__ */ q(a, {
|
|
1203
|
+
variant: "outlined",
|
|
1204
|
+
disableElevation: !0,
|
|
1205
|
+
sx: {
|
|
1206
|
+
borderRadius: "20px",
|
|
1207
|
+
padding: "10px 16px",
|
|
1208
|
+
fontWeight: "600",
|
|
1209
|
+
color: (e) => e.palette["gr-grey"].main,
|
|
1210
|
+
"&:focus": { outline: "none" },
|
|
1211
|
+
"&:focus-visible": { outline: "none" },
|
|
1212
|
+
"&.Mui-disabled, &[data-loading='true']": {
|
|
1213
|
+
border: "1px solid #9D9A95",
|
|
1214
|
+
color: "#9D9A95",
|
|
1215
|
+
boxShadow: "none"
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
color: "gr-base-dark",
|
|
1219
|
+
disabled: n.buttons.microsoft.disabled,
|
|
1220
|
+
onClick: () => n.buttons.microsoft.onClick(o),
|
|
1221
|
+
children: n.buttons.microsoft.icon
|
|
1222
|
+
})]
|
|
1223
|
+
}),
|
|
1224
|
+
/* @__PURE__ */ J(i, {
|
|
1225
|
+
sx: {
|
|
1226
|
+
display: "flex",
|
|
1227
|
+
flexDirection: "row",
|
|
1228
|
+
gap: 8,
|
|
1229
|
+
mt: "50px"
|
|
1230
|
+
},
|
|
1231
|
+
children: [
|
|
1232
|
+
/* @__PURE__ */ J(R, {
|
|
1233
|
+
variant: "body1",
|
|
1234
|
+
sx: {
|
|
1235
|
+
paddingTop: "17px",
|
|
1236
|
+
color: (e) => e.palette["gr-grey"].main,
|
|
1237
|
+
textAlign: "center",
|
|
1238
|
+
fontWeight: "400",
|
|
1239
|
+
width: "150px"
|
|
1240
|
+
},
|
|
1241
|
+
children: [
|
|
1242
|
+
n.version,
|
|
1243
|
+
": ",
|
|
1244
|
+
e.version
|
|
1245
|
+
]
|
|
1246
|
+
}),
|
|
1247
|
+
/* @__PURE__ */ J(A, {
|
|
1248
|
+
sx: {
|
|
1249
|
+
borderRadius: "20px",
|
|
1250
|
+
cursor: "default",
|
|
1251
|
+
width: "200px"
|
|
1252
|
+
},
|
|
1253
|
+
onClick: (e) => {
|
|
1254
|
+
g(e.currentTarget);
|
|
1255
|
+
},
|
|
1256
|
+
disableRipple: !0,
|
|
1257
|
+
children: [
|
|
1258
|
+
/* @__PURE__ */ q(k, { children: /* @__PURE__ */ q(r, {
|
|
1259
|
+
sx: {
|
|
1260
|
+
width: 30,
|
|
1261
|
+
height: 20
|
|
1262
|
+
},
|
|
1263
|
+
variant: "rounded",
|
|
1264
|
+
src: t.find((e) => e.code === _)?.flagUrl,
|
|
1265
|
+
alt: "Selected Language"
|
|
1266
|
+
}) }),
|
|
1267
|
+
/* @__PURE__ */ q(M, { primary: /* @__PURE__ */ q(R, {
|
|
1268
|
+
variant: "body1",
|
|
1269
|
+
sx: {
|
|
1270
|
+
color: (e) => e.palette["gr-grey"].main,
|
|
1271
|
+
fontWeight: "400"
|
|
1272
|
+
},
|
|
1273
|
+
children: t.find((e) => e.code === _)?.name
|
|
1274
|
+
}) }),
|
|
1275
|
+
/* @__PURE__ */ q(T, {
|
|
1276
|
+
onClick: () => {
|
|
1277
|
+
m(!p);
|
|
1278
|
+
},
|
|
1279
|
+
sx: { color: (e) => e.palette["gr-grey"].main },
|
|
1280
|
+
children: q(p ? pe : fe, {})
|
|
1281
|
+
})
|
|
1282
|
+
]
|
|
1283
|
+
}),
|
|
1284
|
+
/* @__PURE__ */ q(te, {
|
|
1285
|
+
anchorEl: h,
|
|
1286
|
+
open: p,
|
|
1287
|
+
onClose: () => m(!1),
|
|
1288
|
+
anchorOrigin: {
|
|
1289
|
+
vertical: "top",
|
|
1290
|
+
horizontal: "center"
|
|
1291
|
+
},
|
|
1292
|
+
transformOrigin: {
|
|
1293
|
+
vertical: "top",
|
|
1294
|
+
horizontal: "center"
|
|
1295
|
+
},
|
|
1296
|
+
sx: { "& .MuiPaper-root": {
|
|
1297
|
+
bgcolor: "white",
|
|
1298
|
+
borderRadius: "20px"
|
|
1299
|
+
} },
|
|
1300
|
+
children: /* @__PURE__ */ q(P, {
|
|
1301
|
+
onClick: () => g(null),
|
|
1302
|
+
children: /* @__PURE__ */ q(O, {
|
|
1303
|
+
sx: { padding: 0 },
|
|
1304
|
+
children: t.map((e) => /* @__PURE__ */ J(A, {
|
|
1305
|
+
onClick: () => {
|
|
1306
|
+
e.onClick(), m(!1), v(e.code);
|
|
1307
|
+
},
|
|
1308
|
+
children: [/* @__PURE__ */ q(k, { children: /* @__PURE__ */ q(r, {
|
|
1309
|
+
sx: {
|
|
1310
|
+
width: 30,
|
|
1311
|
+
height: 20
|
|
1312
|
+
},
|
|
1313
|
+
variant: "rounded",
|
|
1314
|
+
src: e.flagUrl,
|
|
1315
|
+
alt: e.name
|
|
1316
|
+
}) }), /* @__PURE__ */ q(M, { primary: /* @__PURE__ */ q(R, {
|
|
1317
|
+
variant: "body1",
|
|
1318
|
+
sx: {
|
|
1319
|
+
color: (e) => e.palette["gr-grey"].main,
|
|
1320
|
+
fontWeight: "400"
|
|
1321
|
+
},
|
|
1322
|
+
children: e.name
|
|
1323
|
+
}) })]
|
|
1324
|
+
}, e.code))
|
|
1325
|
+
})
|
|
1326
|
+
})
|
|
1327
|
+
})
|
|
1328
|
+
]
|
|
1329
|
+
})
|
|
1330
|
+
]
|
|
1331
|
+
})
|
|
1332
|
+
]
|
|
1333
|
+
})
|
|
1334
|
+
})]
|
|
1335
|
+
}) });
|
|
1336
|
+
}, mt = ({ product: e, languages: t, form: n }) => /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(de, { children: [/* @__PURE__ */ q(Y, {
|
|
1337
|
+
path: "/signin",
|
|
1338
|
+
element: /* @__PURE__ */ q(pt, {
|
|
1339
|
+
product: e,
|
|
1340
|
+
languages: t,
|
|
1341
|
+
form: n
|
|
1342
|
+
})
|
|
1343
|
+
}), /* @__PURE__ */ q(Y, {
|
|
1344
|
+
path: "*",
|
|
1345
|
+
element: /* @__PURE__ */ q(ue, { to: "/signin" })
|
|
1346
|
+
})] }) }), ht = ({ routes: e }) => {
|
|
1347
|
+
let t = X(), n = Z();
|
|
1348
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(de, { children: [e.map((e, r) => /* @__PURE__ */ q(Y, {
|
|
1349
|
+
index: e.path === "/",
|
|
1350
|
+
path: e.path,
|
|
1351
|
+
element: oe(e.element, {
|
|
1352
|
+
location: t,
|
|
1353
|
+
navigate: n
|
|
1354
|
+
})
|
|
1355
|
+
}, r)), /* @__PURE__ */ q(Y, {
|
|
1356
|
+
path: "*",
|
|
1357
|
+
element: /* @__PURE__ */ q(ue, { to: "/" })
|
|
1358
|
+
})] }) });
|
|
1359
|
+
}, gt = ({ username: e, options: t }) => {
|
|
1360
|
+
let [n, i] = W(!1);
|
|
1361
|
+
return /* @__PURE__ */ J(o, {
|
|
1362
|
+
sx: {
|
|
1363
|
+
width: "260px",
|
|
1364
|
+
height: n ? "auto" : "56px",
|
|
1365
|
+
position: "absolute",
|
|
1366
|
+
top: 20,
|
|
1367
|
+
right: 20,
|
|
1368
|
+
zIndex: 1e3,
|
|
1369
|
+
bgcolor: "white",
|
|
1370
|
+
padding: 0,
|
|
1371
|
+
boxShadow: "none",
|
|
1372
|
+
borderRadius: "20px"
|
|
1373
|
+
},
|
|
1374
|
+
children: [/* @__PURE__ */ q(c, {
|
|
1375
|
+
sx: { padding: "8px 20px" },
|
|
1376
|
+
avatar: /* @__PURE__ */ q(r, {
|
|
1377
|
+
sx: {
|
|
1378
|
+
width: 40,
|
|
1379
|
+
height: 40,
|
|
1380
|
+
bgcolor: "#9D11F2"
|
|
1381
|
+
},
|
|
1382
|
+
children: e.charAt(0)
|
|
1383
|
+
}),
|
|
1384
|
+
title: e,
|
|
1385
|
+
slotProps: { title: {
|
|
1386
|
+
fontSize: "18px",
|
|
1387
|
+
fontStyle: "normal",
|
|
1388
|
+
fontWeight: "500",
|
|
1389
|
+
lineHeight: "22px",
|
|
1390
|
+
overflow: "hidden",
|
|
1391
|
+
textOverflow: "ellipsis",
|
|
1392
|
+
whiteSpace: "nowrap",
|
|
1393
|
+
width: "100%",
|
|
1394
|
+
maxWidth: "150px"
|
|
1395
|
+
} },
|
|
1396
|
+
action: t.length > 0 && /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(T, {
|
|
1397
|
+
sx: { color: "black" },
|
|
1398
|
+
children: n ? /* @__PURE__ */ q(_e, {
|
|
1399
|
+
color: "black",
|
|
1400
|
+
size: 30,
|
|
1401
|
+
onClick: () => i(!1)
|
|
1402
|
+
}) : /* @__PURE__ */ q(ge, {
|
|
1403
|
+
color: "black",
|
|
1404
|
+
size: 30,
|
|
1405
|
+
onClick: () => i(!0)
|
|
1406
|
+
})
|
|
1407
|
+
}) })
|
|
1408
|
+
}), n && /* @__PURE__ */ q(s, {
|
|
1409
|
+
sx: { paddingY: "0px" },
|
|
1410
|
+
children: /* @__PURE__ */ q(O, { children: t.map((e, t) => /* @__PURE__ */ J(A, {
|
|
1411
|
+
sx: { borderRadius: "20px" },
|
|
1412
|
+
onClick: e.onClick,
|
|
1413
|
+
children: [/* @__PURE__ */ q(j, { children: e.icon }), /* @__PURE__ */ q(M, {
|
|
1414
|
+
primary: e.label,
|
|
1415
|
+
slotProps: { primary: { sx: {
|
|
1416
|
+
fontSize: "18px",
|
|
1417
|
+
fontStyle: "normal",
|
|
1418
|
+
fontWeight: "400",
|
|
1419
|
+
lineHeight: "normal",
|
|
1420
|
+
overflow: "hidden",
|
|
1421
|
+
textOverflow: "ellipsis",
|
|
1422
|
+
whiteSpace: "nowrap",
|
|
1423
|
+
width: "170px"
|
|
1424
|
+
} } }
|
|
1425
|
+
})]
|
|
1426
|
+
}, t)) })
|
|
1427
|
+
})]
|
|
1428
|
+
});
|
|
1429
|
+
}, _t = ({ getWidth: e, state: t, routes: n, account: r }) => /* @__PURE__ */ J(i, {
|
|
1430
|
+
sx: {
|
|
1431
|
+
width: `calc(100vw - ${e(t)} - 60px)`,
|
|
1432
|
+
height: "calc(100vh - 40px)"
|
|
1433
|
+
},
|
|
1434
|
+
children: [/* @__PURE__ */ q(i, {
|
|
1435
|
+
sx: { height: "10%" },
|
|
1436
|
+
children: /* @__PURE__ */ q(gt, {
|
|
1437
|
+
username: r.username,
|
|
1438
|
+
avatarUrl: r.avatarUrl,
|
|
1439
|
+
options: r.options
|
|
1440
|
+
})
|
|
1441
|
+
}), /* @__PURE__ */ q(i, {
|
|
1442
|
+
sx: { height: "90%" },
|
|
1443
|
+
children: /* @__PURE__ */ q(ht, { routes: n })
|
|
1444
|
+
})]
|
|
1445
|
+
}), vt = ({ sidebar: e, routes: t, account: n }) => {
|
|
1446
|
+
let { state: r, setState: a, getWidth: o } = ut();
|
|
1447
|
+
return /* @__PURE__ */ J(i, {
|
|
1448
|
+
sx: {
|
|
1449
|
+
p: "20px",
|
|
1450
|
+
display: "grid",
|
|
1451
|
+
gridTemplateColumns: "auto 1fr",
|
|
1452
|
+
gap: "20px"
|
|
1453
|
+
},
|
|
1454
|
+
children: [/* @__PURE__ */ q(lt, {
|
|
1455
|
+
items: e.items,
|
|
1456
|
+
signOut: e.signOut,
|
|
1457
|
+
tooltips: e.tooltips,
|
|
1458
|
+
state: r,
|
|
1459
|
+
setState: a,
|
|
1460
|
+
getWidth: o
|
|
1461
|
+
}), /* @__PURE__ */ q(_t, {
|
|
1462
|
+
state: r,
|
|
1463
|
+
getWidth: o,
|
|
1464
|
+
routes: t,
|
|
1465
|
+
account: n
|
|
1466
|
+
})]
|
|
1467
|
+
});
|
|
1468
|
+
}, yt = ({ sidebar: e, routes: t, product: n, account: r, languages: i, loginForm: a, unsavedChangesAlert: o }) => {
|
|
1469
|
+
let { isAuthenticated: s, openUnsaved: c, setOpenUnsaved: l } = V($), u = [{
|
|
1470
|
+
text: o.message,
|
|
1471
|
+
ncolumn: 12,
|
|
1472
|
+
element: "TypographyField"
|
|
1473
|
+
}];
|
|
1474
|
+
return /* @__PURE__ */ J(K, { children: [s ? /* @__PURE__ */ q(vt, {
|
|
1475
|
+
routes: t,
|
|
1476
|
+
sidebar: e,
|
|
1477
|
+
account: r
|
|
1478
|
+
}) : /* @__PURE__ */ q(mt, {
|
|
1479
|
+
product: n,
|
|
1480
|
+
languages: i,
|
|
1481
|
+
form: a
|
|
1482
|
+
}), /* @__PURE__ */ q(Ut, {
|
|
1483
|
+
title: o.title,
|
|
1484
|
+
open: c,
|
|
1485
|
+
setOpen: l,
|
|
1486
|
+
fields: u,
|
|
1487
|
+
loading: !1,
|
|
1488
|
+
onClickSave: o.actionButton.onClick,
|
|
1489
|
+
action: {
|
|
1490
|
+
actionButton: o.actionButton,
|
|
1491
|
+
cancelButton: o.cancelButton
|
|
1492
|
+
}
|
|
1493
|
+
})] });
|
|
1494
|
+
}, bt = ({ sidebar: e, routes: t, product: n, account: r, languages: a, loginForm: o, unsavedChangesAlert: s }) => {
|
|
1495
|
+
let c = a.find((e) => e.active) || a[0];
|
|
1496
|
+
return H(() => {
|
|
1497
|
+
switch (c.code) {
|
|
1498
|
+
case "es":
|
|
1499
|
+
B.locale("es");
|
|
1500
|
+
break;
|
|
1501
|
+
case "en":
|
|
1502
|
+
B.locale("en");
|
|
1503
|
+
break;
|
|
1504
|
+
case "pt":
|
|
1505
|
+
B.locale("pt");
|
|
1506
|
+
break;
|
|
1507
|
+
default: B.locale("en");
|
|
1508
|
+
}
|
|
1509
|
+
}, [c]), /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(i, {
|
|
1510
|
+
sx: {
|
|
1511
|
+
overflow: "hidden",
|
|
1512
|
+
height: "100vh"
|
|
1513
|
+
},
|
|
1514
|
+
children: /* @__PURE__ */ q(ce, { children: /* @__PURE__ */ q(ae, {
|
|
1515
|
+
theme: {
|
|
1516
|
+
rabbitLight: et,
|
|
1517
|
+
rabbitDark: z(Qe, c.theme.dg, c.theme.core, c.theme.pickers)
|
|
1518
|
+
}.rabbitDark,
|
|
1519
|
+
children: /* @__PURE__ */ q(Se, {
|
|
1520
|
+
dateAdapter: we,
|
|
1521
|
+
adapterLocale: c.code,
|
|
1522
|
+
children: /* @__PURE__ */ J(ve, {
|
|
1523
|
+
maxSnack: 15,
|
|
1524
|
+
autoHideDuration: 1e4,
|
|
1525
|
+
anchorOrigin: {
|
|
1526
|
+
vertical: "top",
|
|
1527
|
+
horizontal: "center"
|
|
1528
|
+
},
|
|
1529
|
+
children: [/* @__PURE__ */ q(f, {}), /* @__PURE__ */ q(yt, {
|
|
1530
|
+
sidebar: e,
|
|
1531
|
+
routes: t,
|
|
1532
|
+
product: n,
|
|
1533
|
+
account: r,
|
|
1534
|
+
languages: a,
|
|
1535
|
+
loginForm: o,
|
|
1536
|
+
unsavedChangesAlert: s
|
|
1537
|
+
})]
|
|
1538
|
+
})
|
|
1539
|
+
})
|
|
1540
|
+
}) })
|
|
1541
|
+
}) });
|
|
1542
|
+
}, xt = ({ children: e }) => {
|
|
1543
|
+
let [t, n] = W(localStorage.getItem("authenticated") === "true"), [r, i] = W(""), [a, o] = W(""), [s, c] = W(""), [l, u] = W("DD/MM/YYYY"), [d, f] = W([]), [p, m] = W([]), [h, g] = W(!1), [_, v] = W(""), [y, b] = W(!1);
|
|
1544
|
+
return /* @__PURE__ */ q($.Provider, {
|
|
1545
|
+
value: {
|
|
1546
|
+
isAuthenticated: t,
|
|
1547
|
+
setIsAuthenticated: n,
|
|
1548
|
+
user: r,
|
|
1549
|
+
setUser: i,
|
|
1550
|
+
pass: a,
|
|
1551
|
+
setPass: o,
|
|
1552
|
+
avatar: s,
|
|
1553
|
+
setAvatar: c,
|
|
1554
|
+
loadingAuth: y,
|
|
1555
|
+
setLoadingAuth: b,
|
|
1556
|
+
format: l,
|
|
1557
|
+
setFormat: u,
|
|
1558
|
+
singleShortcut: d,
|
|
1559
|
+
setSingleShortcut: f,
|
|
1560
|
+
rangeShortcut: p,
|
|
1561
|
+
setRangeShortcut: m,
|
|
1562
|
+
encrypter: (e, t, n) => {
|
|
1563
|
+
e === "session" ? sessionStorage.setItem(t, n) : e === "local" && localStorage.setItem(t, n);
|
|
1564
|
+
},
|
|
1565
|
+
decrypter: (e, t) => e === "session" ? sessionStorage.getItem(t) || "" : e === "local" && localStorage.getItem(t) || "",
|
|
1566
|
+
openUnsaved: h,
|
|
1567
|
+
setOpenUnsaved: g,
|
|
1568
|
+
redirect: _,
|
|
1569
|
+
setRedirect: v
|
|
1570
|
+
},
|
|
1571
|
+
children: e
|
|
1572
|
+
});
|
|
1573
|
+
}, St = ({ contextMenu: e, setContextMenu: t, options: n, checked: r, optionGroup: a }) => /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(te, {
|
|
1574
|
+
open: e !== null,
|
|
1575
|
+
onClose: () => t(null),
|
|
1576
|
+
anchorReference: "anchorPosition",
|
|
1577
|
+
anchorPosition: e === null ? void 0 : {
|
|
1578
|
+
top: e.mouseY,
|
|
1579
|
+
left: e.mouseX
|
|
1580
|
+
},
|
|
1581
|
+
slots: { transition: v },
|
|
1582
|
+
slotProps: { paper: {
|
|
1583
|
+
sx: {
|
|
1584
|
+
bgcolor: (e) => a === "toolbar" ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main,
|
|
1585
|
+
borderRadius: "12px"
|
|
1586
|
+
},
|
|
1587
|
+
elevation: 1
|
|
1588
|
+
} },
|
|
1589
|
+
sx: { cursor: "pointer" },
|
|
1590
|
+
children: n.filter((e) => !e.hide).map((e, t) => /* @__PURE__ */ J(i, { children: [t !== 0 && n[t - 1].group !== e.group ? /* @__PURE__ */ q(_, {}) : null, /* @__PURE__ */ J(P, {
|
|
1591
|
+
onClick: e.click,
|
|
1592
|
+
disabled: e.disabled,
|
|
1593
|
+
children: [
|
|
1594
|
+
/* @__PURE__ */ q(j, {
|
|
1595
|
+
sx: { color: (e) => a === "toolbar" ? e.palette["gr-base-light"].main : e.palette["gr-base-dark"].main },
|
|
1596
|
+
children: e.icon
|
|
1597
|
+
}),
|
|
1598
|
+
/* @__PURE__ */ q(M, { children: /* @__PURE__ */ q(R, {
|
|
1599
|
+
sx: { color: (e) => a === "toolbar" ? e.palette["gr-base-light"].main : e.palette["gr-base-dark"].main },
|
|
1600
|
+
children: e.name
|
|
1601
|
+
}) }),
|
|
1602
|
+
e.selected ? /* @__PURE__ */ J(R, {
|
|
1603
|
+
sx: {
|
|
1604
|
+
pl: 3,
|
|
1605
|
+
color: (e) => a === "toolbar" ? e.palette["gr-base-light"].main : e.palette["gr-base-dark"].main
|
|
1606
|
+
},
|
|
1607
|
+
variant: "body2",
|
|
1608
|
+
children: [
|
|
1609
|
+
"selecionados",
|
|
1610
|
+
":",
|
|
1611
|
+
r.length
|
|
1612
|
+
]
|
|
1613
|
+
}) : null,
|
|
1614
|
+
e.onlyOne ? /* @__PURE__ */ q(R, {
|
|
1615
|
+
sx: {
|
|
1616
|
+
pl: 3,
|
|
1617
|
+
color: (e) => a === "toolbar" ? e.palette["gr-base-light"].main : e.palette["gr-base-dark"].main
|
|
1618
|
+
},
|
|
1619
|
+
variant: "body2",
|
|
1620
|
+
children: "solo uno"
|
|
1621
|
+
}) : null
|
|
1622
|
+
]
|
|
1623
|
+
}, t)] }, t))
|
|
1624
|
+
}), n.filter((e) => !e.hide).map((e, t) => /* @__PURE__ */ q(i, { children: e.dialog }, t))] }), Ct = ({ label: e, values: t, placeholder: n, value: r, setValue: i, disabled: a, fullWidth: o, white: s, search: c }) => {
|
|
1625
|
+
let l = U(null), u = U(null), [d, f] = W({
|
|
1626
|
+
width: 0,
|
|
1627
|
+
height: 0
|
|
1628
|
+
}), [p, m] = W(!1), h = (e) => /* @__PURE__ */ q(De, {
|
|
1629
|
+
...e,
|
|
1630
|
+
sx: {
|
|
1631
|
+
color: s ? "black !important" : "white !important",
|
|
1632
|
+
...e.sx
|
|
1633
|
+
},
|
|
1634
|
+
onClick: () => {
|
|
1635
|
+
console.log("icon click"), m(!p);
|
|
1636
|
+
}
|
|
1637
|
+
});
|
|
1638
|
+
H(() => {
|
|
1639
|
+
if (!l.current) return;
|
|
1640
|
+
let e = new ResizeObserver((e) => {
|
|
1641
|
+
let { width: t, height: n } = e[0].contentRect;
|
|
1642
|
+
f({
|
|
1643
|
+
width: t,
|
|
1644
|
+
height: n
|
|
1645
|
+
});
|
|
1646
|
+
});
|
|
1647
|
+
return e.observe(l.current), () => e.disconnect();
|
|
1648
|
+
}, [d]);
|
|
1649
|
+
let g = {
|
|
1650
|
+
marginTop: "-55px",
|
|
1651
|
+
maxHeight: "500px",
|
|
1652
|
+
borderRadius: "24px",
|
|
1653
|
+
borderTopLeftRadius: "24px",
|
|
1654
|
+
borderTopRightRadius: "24px",
|
|
1655
|
+
width: d.width + 20,
|
|
1656
|
+
backgroundColor: "transparent",
|
|
1657
|
+
"--Paper-overlay": "none",
|
|
1658
|
+
border: "1px solid rgba(255, 255, 255, 0.2)"
|
|
1659
|
+
};
|
|
1660
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(y, {
|
|
1661
|
+
fullWidth: o,
|
|
1662
|
+
focused: !0,
|
|
1663
|
+
children: [/* @__PURE__ */ q(D, {
|
|
1664
|
+
id: `filter-table-label-${e}`,
|
|
1665
|
+
sx: {
|
|
1666
|
+
color: s ? "black" : "white",
|
|
1667
|
+
position: "absolute",
|
|
1668
|
+
"&.Mui-focused": { color: s ? "black" : "white" },
|
|
1669
|
+
"&[data-shrink=\"false\"]": { transform: "translateY(12px) translateX(12px)" }
|
|
1670
|
+
},
|
|
1671
|
+
children: e
|
|
1672
|
+
}), /* @__PURE__ */ J(F, {
|
|
1673
|
+
ref: l,
|
|
1674
|
+
labelId: `filter-table-label-${e}`,
|
|
1675
|
+
id: `filter-${e}`,
|
|
1676
|
+
open: p,
|
|
1677
|
+
onOpen: () => {
|
|
1678
|
+
m(!0);
|
|
1679
|
+
},
|
|
1680
|
+
onClose: (e) => {
|
|
1681
|
+
let t = e?.target;
|
|
1682
|
+
t && u.current?.contains(t) || m(!1);
|
|
1683
|
+
},
|
|
1684
|
+
value: r,
|
|
1685
|
+
label: e,
|
|
1686
|
+
onChange: (e) => i(e.target.value),
|
|
1687
|
+
multiple: !1,
|
|
1688
|
+
renderValue: (e) => {
|
|
1689
|
+
let r = Array.isArray(e) ? e[0] : e;
|
|
1690
|
+
return r == null || r === "" ? n : t.find((e) => e.value === r)?.label || n;
|
|
1691
|
+
},
|
|
1692
|
+
color: "gr-yellow",
|
|
1693
|
+
sx: { color: s ? "black" : "white" },
|
|
1694
|
+
IconComponent: h,
|
|
1695
|
+
MenuProps: { slotProps: {
|
|
1696
|
+
paper: { style: g },
|
|
1697
|
+
list: { sx: {
|
|
1698
|
+
marginTop: "60px",
|
|
1699
|
+
backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main,
|
|
1700
|
+
"& .MuiMenuItem-root": {
|
|
1701
|
+
backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main,
|
|
1702
|
+
color: s ? "black" : "white",
|
|
1703
|
+
"&:hover": { backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main },
|
|
1704
|
+
"&.Mui-selected": { backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main },
|
|
1705
|
+
"&.Mui-focusVisible": { backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main }
|
|
1706
|
+
}
|
|
1707
|
+
} }
|
|
1708
|
+
} },
|
|
1709
|
+
displayEmpty: !0,
|
|
1710
|
+
disabled: a,
|
|
1711
|
+
children: [/* @__PURE__ */ q(N, {
|
|
1712
|
+
disableSticky: !0,
|
|
1713
|
+
sx: {
|
|
1714
|
+
backgroundColor: "transparent",
|
|
1715
|
+
px: 1.5,
|
|
1716
|
+
py: 1
|
|
1717
|
+
},
|
|
1718
|
+
onMouseDown: (e) => {
|
|
1719
|
+
e.stopPropagation();
|
|
1720
|
+
},
|
|
1721
|
+
onClick: (e) => {
|
|
1722
|
+
e.stopPropagation();
|
|
1723
|
+
},
|
|
1724
|
+
children: /* @__PURE__ */ q(I, {
|
|
1725
|
+
ref: u,
|
|
1726
|
+
variant: "standard",
|
|
1727
|
+
fullWidth: !0,
|
|
1728
|
+
size: "small",
|
|
1729
|
+
placeholder: c?.placeholder || "Buscar...",
|
|
1730
|
+
value: c?.value || "",
|
|
1731
|
+
onMouseDown: (e) => {
|
|
1732
|
+
e.stopPropagation(), m(!0);
|
|
1733
|
+
},
|
|
1734
|
+
onClick: (e) => {
|
|
1735
|
+
e.stopPropagation(), m(!0);
|
|
1736
|
+
},
|
|
1737
|
+
onKeyDown: (e) => {
|
|
1738
|
+
e.stopPropagation();
|
|
1739
|
+
},
|
|
1740
|
+
onChange: (e) => {
|
|
1741
|
+
c?.setValue(e.target.value);
|
|
1742
|
+
},
|
|
1743
|
+
focused: !1,
|
|
1744
|
+
color: "gr-yellow"
|
|
1745
|
+
})
|
|
1746
|
+
}), t.map((e) => /* @__PURE__ */ q(P, {
|
|
1747
|
+
value: e.value,
|
|
1748
|
+
sx: { display: `${e.label} ${e.sublabel ?? ""}`.toLowerCase().includes(c?.value?.toLowerCase() ?? "") ? "block" : "none" },
|
|
1749
|
+
onClick: () => {
|
|
1750
|
+
m(!1);
|
|
1751
|
+
},
|
|
1752
|
+
children: /* @__PURE__ */ J(R, {
|
|
1753
|
+
variant: "caption",
|
|
1754
|
+
color: "textSecondary",
|
|
1755
|
+
children: [e.label, e.sublabel && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("br", {}), e.sublabel] })]
|
|
1756
|
+
})
|
|
1757
|
+
}, e.value))]
|
|
1758
|
+
})]
|
|
1759
|
+
}) });
|
|
1760
|
+
}, wt = ({ label: e, value: t, setValue: n, values: r, placeholder: a, disabled: o, fullWidth: s, white: c, search: u }) => {
|
|
1761
|
+
let d = U(null), f = U(null), [p, m] = W({
|
|
1762
|
+
width: 0,
|
|
1763
|
+
height: 0
|
|
1764
|
+
}), [h, g] = W(!1), [_, v] = W(""), b = u?.value ?? _, x = r.filter((e) => `${e.label} ${e.sublabel ?? ""}`.toLowerCase().includes(b.toLowerCase())).map((e) => e.value), S = x.filter((e) => t.includes(e)).length, C = x.length > 0 && S === x.length, w = S > 0 && !C, T = (e) => /* @__PURE__ */ q(De, {
|
|
1765
|
+
...e,
|
|
1766
|
+
sx: {
|
|
1767
|
+
color: c ? "black !important" : "white !important",
|
|
1768
|
+
...e.sx
|
|
1769
|
+
},
|
|
1770
|
+
onClick: () => {
|
|
1771
|
+
g(!h);
|
|
1772
|
+
}
|
|
1773
|
+
});
|
|
1774
|
+
H(() => {
|
|
1775
|
+
if (!d.current) return;
|
|
1776
|
+
let e = new ResizeObserver((e) => {
|
|
1777
|
+
let { width: t, height: n } = e[0].contentRect;
|
|
1778
|
+
m({
|
|
1779
|
+
width: t,
|
|
1780
|
+
height: n
|
|
1781
|
+
});
|
|
1782
|
+
});
|
|
1783
|
+
return e.observe(d.current), () => e.disconnect();
|
|
1784
|
+
}, [p]);
|
|
1785
|
+
let E = {
|
|
1786
|
+
marginTop: "-55px",
|
|
1787
|
+
maxHeight: "500px",
|
|
1788
|
+
borderRadius: "24px",
|
|
1789
|
+
borderTopLeftRadius: "24px",
|
|
1790
|
+
borderTopRightRadius: "24px",
|
|
1791
|
+
width: p.width + 20,
|
|
1792
|
+
backgroundColor: "transparent",
|
|
1793
|
+
"--Paper-overlay": "none",
|
|
1794
|
+
border: "1px solid rgba(255, 255, 255, 0.2)"
|
|
1795
|
+
};
|
|
1796
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(y, {
|
|
1797
|
+
fullWidth: s,
|
|
1798
|
+
focused: !0,
|
|
1799
|
+
children: [/* @__PURE__ */ q(D, {
|
|
1800
|
+
id: `filter-table-label-${e}`,
|
|
1801
|
+
sx: {
|
|
1802
|
+
color: c ? "black" : "white",
|
|
1803
|
+
position: "absolute",
|
|
1804
|
+
"&.Mui-focused": { color: c ? "black" : "white" },
|
|
1805
|
+
"&[data-shrink=\"false\"]": { transform: "translateY(12px) translateX(12px)" }
|
|
1806
|
+
},
|
|
1807
|
+
children: e
|
|
1808
|
+
}), /* @__PURE__ */ J(F, {
|
|
1809
|
+
ref: d,
|
|
1810
|
+
labelId: `filter-table-label-${e}`,
|
|
1811
|
+
id: `filter-${e}`,
|
|
1812
|
+
open: h,
|
|
1813
|
+
onOpen: () => {
|
|
1814
|
+
g(!0);
|
|
1815
|
+
},
|
|
1816
|
+
onClose: (e) => {
|
|
1817
|
+
let t = e?.target;
|
|
1818
|
+
t && f.current?.contains(t) || g(!1);
|
|
1819
|
+
},
|
|
1820
|
+
value: t,
|
|
1821
|
+
label: e,
|
|
1822
|
+
onChange: (e) => {
|
|
1823
|
+
let { target: { value: r } } = e, i = typeof r == "string" ? r.split(",") : r;
|
|
1824
|
+
if (i.includes("select-all")) {
|
|
1825
|
+
if (C) {
|
|
1826
|
+
n(t.filter((e) => !x.includes(e)));
|
|
1827
|
+
return;
|
|
1828
|
+
}
|
|
1829
|
+
n(Array.from(new Set([...t, ...x])));
|
|
1830
|
+
return;
|
|
1831
|
+
}
|
|
1832
|
+
n(i.filter((e) => e !== "select-all"));
|
|
1833
|
+
},
|
|
1834
|
+
color: "gr-yellow",
|
|
1835
|
+
sx: { color: c ? "black" : "white" },
|
|
1836
|
+
IconComponent: T,
|
|
1837
|
+
MenuProps: { slotProps: {
|
|
1838
|
+
paper: { style: E },
|
|
1839
|
+
list: { sx: {
|
|
1840
|
+
marginTop: "60px",
|
|
1841
|
+
backgroundColor: (e) => c ? "white" : e.palette["gr-base-dark"].main,
|
|
1842
|
+
"& .MuiMenuItem-root": {
|
|
1843
|
+
backgroundColor: (e) => c ? "white" : e.palette["gr-base-dark"].main,
|
|
1844
|
+
color: c ? "black" : "white",
|
|
1845
|
+
"&:hover": { backgroundColor: (e) => c ? "white" : e.palette["gr-base-dark"].main },
|
|
1846
|
+
"&.Mui-selected": { backgroundColor: (e) => c ? "white" : e.palette["gr-base-dark"].main },
|
|
1847
|
+
"&.Mui-focusVisible": { backgroundColor: (e) => c ? "white" : e.palette["gr-base-dark"].main }
|
|
1848
|
+
}
|
|
1849
|
+
} }
|
|
1850
|
+
} },
|
|
1851
|
+
renderValue: (e) => !e || e.length === 0 ? a : r.filter((t) => e.includes(t.value)).map((e) => e.label).join(", "),
|
|
1852
|
+
displayEmpty: !0,
|
|
1853
|
+
disabled: o,
|
|
1854
|
+
multiple: !0,
|
|
1855
|
+
children: [
|
|
1856
|
+
/* @__PURE__ */ q(N, {
|
|
1857
|
+
disableSticky: !0,
|
|
1858
|
+
sx: {
|
|
1859
|
+
backgroundColor: "transparent",
|
|
1860
|
+
px: 1.5,
|
|
1861
|
+
py: 1
|
|
1862
|
+
},
|
|
1863
|
+
onMouseDown: (e) => {
|
|
1864
|
+
e.stopPropagation();
|
|
1865
|
+
},
|
|
1866
|
+
onClick: (e) => {
|
|
1867
|
+
e.stopPropagation();
|
|
1868
|
+
},
|
|
1869
|
+
children: /* @__PURE__ */ q(I, {
|
|
1870
|
+
ref: f,
|
|
1871
|
+
variant: "standard",
|
|
1872
|
+
fullWidth: !0,
|
|
1873
|
+
size: "small",
|
|
1874
|
+
placeholder: u?.placeholder || "Buscar...",
|
|
1875
|
+
value: b,
|
|
1876
|
+
onMouseDown: (e) => {
|
|
1877
|
+
e.stopPropagation(), g(!0);
|
|
1878
|
+
},
|
|
1879
|
+
onClick: (e) => {
|
|
1880
|
+
e.stopPropagation(), g(!0);
|
|
1881
|
+
},
|
|
1882
|
+
onKeyDown: (e) => {
|
|
1883
|
+
e.stopPropagation();
|
|
1884
|
+
},
|
|
1885
|
+
onChange: (e) => {
|
|
1886
|
+
let t = e.target.value;
|
|
1887
|
+
if (u?.setValue) {
|
|
1888
|
+
u.setValue(t);
|
|
1889
|
+
return;
|
|
1890
|
+
}
|
|
1891
|
+
v(t);
|
|
1892
|
+
},
|
|
1893
|
+
focused: !1,
|
|
1894
|
+
color: "gr-yellow"
|
|
1895
|
+
})
|
|
1896
|
+
}),
|
|
1897
|
+
/* @__PURE__ */ J(P, {
|
|
1898
|
+
value: "select-all",
|
|
1899
|
+
disabled: x.length === 0,
|
|
1900
|
+
children: [/* @__PURE__ */ q(l, {
|
|
1901
|
+
checked: C,
|
|
1902
|
+
indeterminate: w
|
|
1903
|
+
}), /* @__PURE__ */ q(M, {
|
|
1904
|
+
slotProps: { primary: { sx: { color: "#FFFFFF" } } },
|
|
1905
|
+
primary: "Seleccionar todo"
|
|
1906
|
+
})]
|
|
1907
|
+
}),
|
|
1908
|
+
r.map((e) => /* @__PURE__ */ q(P, {
|
|
1909
|
+
value: e.value,
|
|
1910
|
+
sx: { display: x.includes(e.value) ? "block" : "none" },
|
|
1911
|
+
children: /* @__PURE__ */ J(i, {
|
|
1912
|
+
sx: {
|
|
1913
|
+
display: "flex",
|
|
1914
|
+
alignItems: "center",
|
|
1915
|
+
gap: 1
|
|
1916
|
+
},
|
|
1917
|
+
children: [/* @__PURE__ */ q(l, { checked: t.includes(e.value) }), /* @__PURE__ */ J(R, {
|
|
1918
|
+
variant: "caption",
|
|
1919
|
+
color: "textSecondary",
|
|
1920
|
+
children: [e.label, e.sublabel && /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("br", {}), e.sublabel] })]
|
|
1921
|
+
})]
|
|
1922
|
+
})
|
|
1923
|
+
}, e.value))
|
|
1924
|
+
]
|
|
1925
|
+
})]
|
|
1926
|
+
}) });
|
|
1927
|
+
}, Tt = ({ label: e, value: t, setValue: n, disabled: r, fullWidth: i }) => {
|
|
1928
|
+
let { format: a } = V($);
|
|
1929
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(ke, {
|
|
1930
|
+
dateAdapter: we,
|
|
1931
|
+
children: /* @__PURE__ */ q(Oe, {
|
|
1932
|
+
label: e,
|
|
1933
|
+
value: t,
|
|
1934
|
+
onChange: (e) => {
|
|
1935
|
+
n(e);
|
|
1936
|
+
},
|
|
1937
|
+
sx: { "& .MuiInputBase-root": { borderRadius: "16px" } },
|
|
1938
|
+
size: "small",
|
|
1939
|
+
color: "gr-yellow",
|
|
1940
|
+
slotProps: { textField: { sx: { "& .MuiInputLabel-root": { color: "white !important" } } } },
|
|
1941
|
+
focused: !0,
|
|
1942
|
+
format: a,
|
|
1943
|
+
disabled: r,
|
|
1944
|
+
fullWidth: i
|
|
1945
|
+
})
|
|
1946
|
+
}) });
|
|
1947
|
+
}, Et = ({ label: e, initialValue: t, value: n, setValue: r, calendars: i, disabled: a, white: o, fullWidth: s, maxDate: c, minDate: l }) => {
|
|
1948
|
+
let { format: u, rangeShortcut: d } = V($), f = Ne();
|
|
1949
|
+
return /* @__PURE__ */ q(je, {
|
|
1950
|
+
theme: Me({
|
|
1951
|
+
...f,
|
|
1952
|
+
palette: {
|
|
1953
|
+
...f.palette,
|
|
1954
|
+
primary: { main: "#9D9A95" }
|
|
1955
|
+
}
|
|
1956
|
+
}),
|
|
1957
|
+
children: /* @__PURE__ */ q(Ae, {
|
|
1958
|
+
label: e,
|
|
1959
|
+
defaultValue: t,
|
|
1960
|
+
value: n,
|
|
1961
|
+
onChange: (e) => r(e),
|
|
1962
|
+
disabled: a,
|
|
1963
|
+
format: u,
|
|
1964
|
+
calendars: i,
|
|
1965
|
+
slotProps: {
|
|
1966
|
+
shortcuts: { items: d },
|
|
1967
|
+
textField: {
|
|
1968
|
+
variant: "outlined",
|
|
1969
|
+
size: "small",
|
|
1970
|
+
fullWidth: s,
|
|
1971
|
+
color: "gr-yellow",
|
|
1972
|
+
focused: !0,
|
|
1973
|
+
sx: {
|
|
1974
|
+
"& .MuiInputLabel-root": { color: o ? "black !important" : "white !important" },
|
|
1975
|
+
"& .MuiInputLabel-root.Mui-focused": { color: o ? "black !important" : "white !important" },
|
|
1976
|
+
"& .MuiGrid-root": { marginBottom: "0px !important" }
|
|
1977
|
+
},
|
|
1978
|
+
slotProps: { input: { sx: {
|
|
1979
|
+
borderRadius: "16px",
|
|
1980
|
+
color: o ? "black !important" : "white !important",
|
|
1981
|
+
"& .MuiIconButton-root .MuiSvgIcon-root": { color: o ? "black !important" : "white !important" }
|
|
1982
|
+
} } }
|
|
1983
|
+
},
|
|
1984
|
+
popper: { sx: {
|
|
1985
|
+
"& .MuiChip-root": { bgcolor: (e) => o ? e.palette["gr-grey"].light : e.palette["gr-grey"].main },
|
|
1986
|
+
"& .MuiChip-label": { color: o ? "black !important" : "white !important" },
|
|
1987
|
+
"& .MuiChip-root:hover": { bgcolor: (e) => e.palette["gr-grey"].dark },
|
|
1988
|
+
"& .MuiDayCalendar-weekDayLabel": { color: (e) => o ? e.palette["gr-base-dark"].main : "white !important" },
|
|
1989
|
+
"& .MuiPickersCalendarHeader-label": { color: o ? "black !important" : "white !important" },
|
|
1990
|
+
"& .MuiYearCalendar-button": { color: (e) => e.palette["gr-base-dark"].main },
|
|
1991
|
+
"& .MuiButtonBase-root": { color: (e) => o ? e.palette["gr-base-dark"].main : "white !important" },
|
|
1992
|
+
"& .Mui-disabled": { color: (e) => `${e.palette["gr-grey"].main} !important` },
|
|
1993
|
+
"& .MuiPickersArrowSwitcher-root": { color: "(theme) => theme.palette[\"gr-base-dark\"].main" },
|
|
1994
|
+
"& .Mui-selected, & .MuiPickersDay-root.Mui-selected": {
|
|
1995
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
1996
|
+
color: o ? "black !important" : "white !important"
|
|
1997
|
+
},
|
|
1998
|
+
"& .MuiYearCalendar-yearButton.Mui-selected": {
|
|
1999
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2000
|
+
color: "black !important"
|
|
2001
|
+
},
|
|
2002
|
+
"& .MuiPaper-root": {
|
|
2003
|
+
bgcolor: (e) => o ? e.palette["gr-grey"].light : "black !important",
|
|
2004
|
+
borderRadius: "20px"
|
|
2005
|
+
},
|
|
2006
|
+
"& .MuiPickersDay-root": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2007
|
+
} }
|
|
2008
|
+
},
|
|
2009
|
+
maxDate: c,
|
|
2010
|
+
minDate: l
|
|
2011
|
+
})
|
|
2012
|
+
});
|
|
2013
|
+
}, Dt = ({ label: e, initialValue: t, value: n, setValue: r, disabled: i, white: a, fullWidth: o }) => {
|
|
2014
|
+
let { format: s, singleShortcut: c } = V($);
|
|
2015
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(xe, {
|
|
2016
|
+
label: e,
|
|
2017
|
+
defaultValue: t,
|
|
2018
|
+
value: n,
|
|
2019
|
+
onChange: (e) => r(e),
|
|
2020
|
+
disabled: i,
|
|
2021
|
+
format: s,
|
|
2022
|
+
slotProps: {
|
|
2023
|
+
shortcuts: { items: c },
|
|
2024
|
+
textField: {
|
|
2025
|
+
variant: "outlined",
|
|
2026
|
+
size: "small",
|
|
2027
|
+
fullWidth: o,
|
|
2028
|
+
color: "gr-yellow",
|
|
2029
|
+
focused: !0,
|
|
2030
|
+
slotProps: { input: { sx: {
|
|
2031
|
+
borderRadius: "16px",
|
|
2032
|
+
color: a ? "black !important" : "white !important",
|
|
2033
|
+
"& .MuiIconButton-root .MuiSvgIcon-root": { color: a ? "black !important" : "white !important" }
|
|
2034
|
+
} } }
|
|
2035
|
+
},
|
|
2036
|
+
popper: { sx: {
|
|
2037
|
+
"& .MuiChip-root": { bgcolor: (e) => e.palette["gr-grey"].light },
|
|
2038
|
+
"& .MuiChip-root:hover": { bgcolor: (e) => e.palette["gr-grey"].dark },
|
|
2039
|
+
"& .MuiDayCalendar-weekDayLabel": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2040
|
+
"& .MuiYearCalendar-button": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2041
|
+
"& .MuiButtonBase-root": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2042
|
+
"& .Mui-selected, & .MuiPickersDay-root.Mui-selected": {
|
|
2043
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2044
|
+
color: "black !important"
|
|
2045
|
+
},
|
|
2046
|
+
"& .MuiYearCalendar-yearButton.Mui-selected": {
|
|
2047
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2048
|
+
color: "black !important"
|
|
2049
|
+
},
|
|
2050
|
+
"& .MuiPaper-root": {
|
|
2051
|
+
bgcolor: a ? "white" : "black",
|
|
2052
|
+
borderRadius: "20px"
|
|
2053
|
+
},
|
|
2054
|
+
"& .MuiPickersDay-root": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2055
|
+
} }
|
|
2056
|
+
}
|
|
2057
|
+
}) });
|
|
2058
|
+
}, Ot = (e) => {
|
|
2059
|
+
let { name: t = {
|
|
2060
|
+
title: "",
|
|
2061
|
+
ncolumn: 0
|
|
2062
|
+
}, fields: n = [], actions: r = {
|
|
2063
|
+
ncolumn: 1,
|
|
2064
|
+
buttons: []
|
|
2065
|
+
} } = e, o = (e, t) => {
|
|
2066
|
+
switch (e.element) {
|
|
2067
|
+
case "SelectField": return /* @__PURE__ */ q(C, {
|
|
2068
|
+
size: e.ncolumn,
|
|
2069
|
+
children: /* @__PURE__ */ q(Ct, {
|
|
2070
|
+
label: e.label,
|
|
2071
|
+
placeholder: e.placeholder,
|
|
2072
|
+
value: e.value,
|
|
2073
|
+
setValue: e.setValue,
|
|
2074
|
+
values: e.values,
|
|
2075
|
+
disabled: e.disable,
|
|
2076
|
+
search: e.search,
|
|
2077
|
+
multiple: e.multiple,
|
|
2078
|
+
fullWidth: !0,
|
|
2079
|
+
white: !1
|
|
2080
|
+
})
|
|
2081
|
+
}, t);
|
|
2082
|
+
case "MultiSelectField": return /* @__PURE__ */ q(C, {
|
|
2083
|
+
size: e.ncolumn,
|
|
2084
|
+
children: /* @__PURE__ */ q(wt, {
|
|
2085
|
+
label: e.label,
|
|
2086
|
+
placeholder: e.placeholder,
|
|
2087
|
+
value: e.value,
|
|
2088
|
+
setValue: e.setValue,
|
|
2089
|
+
values: e.values,
|
|
2090
|
+
disabled: e.disable,
|
|
2091
|
+
search: e.search,
|
|
2092
|
+
fullWidth: !0,
|
|
2093
|
+
white: !1
|
|
2094
|
+
})
|
|
2095
|
+
}, t);
|
|
2096
|
+
case "DateRangeField": return /* @__PURE__ */ q(C, {
|
|
2097
|
+
size: e.ncolumn,
|
|
2098
|
+
children: /* @__PURE__ */ q(Tt, {
|
|
2099
|
+
label: e.label,
|
|
2100
|
+
value: e.value,
|
|
2101
|
+
setValue: e.setValue,
|
|
2102
|
+
disabled: e.disable,
|
|
2103
|
+
fullWidth: !0
|
|
2104
|
+
})
|
|
2105
|
+
}, t);
|
|
2106
|
+
case "DatePickerField": return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(C, {
|
|
2107
|
+
size: e.ncolumn,
|
|
2108
|
+
children: /* @__PURE__ */ q(Dt, {
|
|
2109
|
+
label: e.label,
|
|
2110
|
+
initialValue: e.initialValue,
|
|
2111
|
+
value: e.value,
|
|
2112
|
+
setValue: e.setValue,
|
|
2113
|
+
disabled: e.disable,
|
|
2114
|
+
fullWidth: !0,
|
|
2115
|
+
white: !1
|
|
2116
|
+
})
|
|
2117
|
+
}, t) });
|
|
2118
|
+
case "DateRangePickerField": return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(C, {
|
|
2119
|
+
size: e.ncolumn,
|
|
2120
|
+
children: /* @__PURE__ */ q(Et, {
|
|
2121
|
+
label: e.label,
|
|
2122
|
+
initialValue: e.initialValue,
|
|
2123
|
+
value: e.value,
|
|
2124
|
+
setValue: e.setValue,
|
|
2125
|
+
calendars: e.calendars,
|
|
2126
|
+
disabled: e.disable,
|
|
2127
|
+
fullWidth: !0,
|
|
2128
|
+
white: !1,
|
|
2129
|
+
maxDate: e.maxDate,
|
|
2130
|
+
minDate: e.minDate
|
|
2131
|
+
})
|
|
2132
|
+
}, t) });
|
|
2133
|
+
default: return /* @__PURE__ */ q(K, {});
|
|
2134
|
+
}
|
|
2135
|
+
};
|
|
2136
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(i, {
|
|
2137
|
+
sx: {
|
|
2138
|
+
bgcolor: (e) => e.palette.background.paper,
|
|
2139
|
+
height: "70px",
|
|
2140
|
+
borderTopLeftRadius: "20px",
|
|
2141
|
+
borderTopRightRadius: "20px",
|
|
2142
|
+
display: "flex",
|
|
2143
|
+
flexDirection: "row",
|
|
2144
|
+
alignItems: "center",
|
|
2145
|
+
justifyContent: "flex-end",
|
|
2146
|
+
padding: "20px",
|
|
2147
|
+
gap: "20px"
|
|
2148
|
+
},
|
|
2149
|
+
children: /* @__PURE__ */ J(C, {
|
|
2150
|
+
container: !0,
|
|
2151
|
+
spacing: 2,
|
|
2152
|
+
sx: { flexGrow: 1 },
|
|
2153
|
+
children: [
|
|
2154
|
+
t.title && /* @__PURE__ */ q(C, {
|
|
2155
|
+
size: t.ncolumn,
|
|
2156
|
+
sx: {
|
|
2157
|
+
display: "flex",
|
|
2158
|
+
alignItems: "center"
|
|
2159
|
+
},
|
|
2160
|
+
children: t.title
|
|
2161
|
+
}),
|
|
2162
|
+
n.map((e, t) => o(e, t)),
|
|
2163
|
+
r && r.buttons.length > 0 && /* @__PURE__ */ q(C, {
|
|
2164
|
+
size: r.ncolumn,
|
|
2165
|
+
children: /* @__PURE__ */ q(i, {
|
|
2166
|
+
sx: {
|
|
2167
|
+
display: "flex",
|
|
2168
|
+
justifyContent: "flex-end",
|
|
2169
|
+
alignItems: "center",
|
|
2170
|
+
gap: "10px"
|
|
2171
|
+
},
|
|
2172
|
+
children: r.buttons.map((e, t) => /* @__PURE__ */ q(a, {
|
|
2173
|
+
variant: e.variant,
|
|
2174
|
+
color: "gr-yellow",
|
|
2175
|
+
sx: { ...e.sx },
|
|
2176
|
+
onClick: e.onClick,
|
|
2177
|
+
disabled: e.disabled,
|
|
2178
|
+
disableElevation: !0,
|
|
2179
|
+
children: e.icon ? e.icon : /* @__PURE__ */ q("span", {
|
|
2180
|
+
style: {
|
|
2181
|
+
marginTop: "2px",
|
|
2182
|
+
textTransform: "none",
|
|
2183
|
+
padding: "0px 5px"
|
|
2184
|
+
},
|
|
2185
|
+
children: e.text
|
|
2186
|
+
})
|
|
2187
|
+
}, t))
|
|
2188
|
+
})
|
|
2189
|
+
})
|
|
2190
|
+
]
|
|
2191
|
+
})
|
|
2192
|
+
}) });
|
|
2193
|
+
}, kt = (e) => /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(Te, {
|
|
2194
|
+
...e,
|
|
2195
|
+
apiRef: e.apiRef,
|
|
2196
|
+
showToolbar: e.toolbar !== void 0,
|
|
2197
|
+
headerFilters: e.headerFilters,
|
|
2198
|
+
slots: {
|
|
2199
|
+
toolbar: Ot,
|
|
2200
|
+
headerFilterMenu: null
|
|
2201
|
+
},
|
|
2202
|
+
slotProps: {
|
|
2203
|
+
...e.slotProps,
|
|
2204
|
+
toolbar: { ...e.toolbar },
|
|
2205
|
+
baseTextField: {
|
|
2206
|
+
color: e.toolbar === void 0 ? "error" : "primary",
|
|
2207
|
+
slotProps: { input: { endAdornment: /* @__PURE__ */ q(E, {
|
|
2208
|
+
sx: { color: (t) => e.toolbar === void 0 ? t.palette["gr-grey"].light : t.palette["gr-grey"].main },
|
|
2209
|
+
position: "end",
|
|
2210
|
+
children: /* @__PURE__ */ q(Pe, {})
|
|
2211
|
+
}) } }
|
|
2212
|
+
},
|
|
2213
|
+
loadingOverlay: {
|
|
2214
|
+
variant: "circular-progress",
|
|
2215
|
+
noRowsVariant: "circular-progress"
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
sx: {
|
|
2219
|
+
border: "none",
|
|
2220
|
+
color: "black",
|
|
2221
|
+
borderTopLeftRadius: e.toolbar ? "0px" : "20px !important",
|
|
2222
|
+
borderTopRightRadius: e.toolbar ? "0px" : "20px !important",
|
|
2223
|
+
"--DataGrid-t-color-background-base": "transparent !important",
|
|
2224
|
+
"& .MuiDataGrid-columnHeaderCheckbox": { backgroundColor: "white" },
|
|
2225
|
+
"& .MuiDataGrid-filterForm .MuiInputBase-root": { backgroundColor: "#F3F2F2" },
|
|
2226
|
+
"& .MuiDataGrid-columnHeader": {
|
|
2227
|
+
backgroundColor: e.toolbar ? "white" : "transparent",
|
|
2228
|
+
color: e.toolbar ? "black" : "white",
|
|
2229
|
+
borderBottom: e.headerFilters ? "none !important" : (e) => `${e.palette.primary.main} 1px solid !important`
|
|
2230
|
+
},
|
|
2231
|
+
"& .MuiDataGrid-headerFilterRow": {
|
|
2232
|
+
bgcolor: e.toolbar ? "white !important" : "transparent !important",
|
|
2233
|
+
borderBottom: (e) => `${e.palette.primary.main} 1px solid !important`
|
|
2234
|
+
},
|
|
2235
|
+
"& .MuiDataGrid-virtualScroller": {
|
|
2236
|
+
bgcolor: "white",
|
|
2237
|
+
borderBottomLeftRadius: "20px",
|
|
2238
|
+
borderBottomRightRadius: "20px"
|
|
2239
|
+
},
|
|
2240
|
+
"& .MuiDataGrid-columnHeaderTitleContainer": { "& .MuiCheckbox-root": { color: (t) => e.toolbar === void 0 ? t.palette["gr-grey"].light : t.palette.background.paper } },
|
|
2241
|
+
"& .MuiDataGrid-iconButtonContainer": { "& .MuiIconButton-root": { color: (t) => e.toolbar === void 0 ? t.palette["gr-grey"].light : t.palette["gr-grey"].main } },
|
|
2242
|
+
"& .MuiDataGrid-footerContainer": {
|
|
2243
|
+
borderTop: "none",
|
|
2244
|
+
fontWeight: "500",
|
|
2245
|
+
display: "flex",
|
|
2246
|
+
justifyContent: "center",
|
|
2247
|
+
alignItems: "center"
|
|
2248
|
+
},
|
|
2249
|
+
"& .MuiIconButton-root": {
|
|
2250
|
+
color: (e) => e.palette.background.paper,
|
|
2251
|
+
"&.Mui-disabled": {
|
|
2252
|
+
color: "#888",
|
|
2253
|
+
backgroundColor: "#eee",
|
|
2254
|
+
opacity: .7
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
"& .MuiDataGrid-row": {
|
|
2258
|
+
minHeight: 45,
|
|
2259
|
+
maxHeight: "none"
|
|
2260
|
+
},
|
|
2261
|
+
"& .MuiDataGrid-cell": {
|
|
2262
|
+
minHeight: 45,
|
|
2263
|
+
height: "auto",
|
|
2264
|
+
maxHeight: "none",
|
|
2265
|
+
display: "flex",
|
|
2266
|
+
flexDirection: "column",
|
|
2267
|
+
alignItems: "center",
|
|
2268
|
+
justifyContent: "flex-start",
|
|
2269
|
+
gap: 1.5,
|
|
2270
|
+
p: 1
|
|
2271
|
+
},
|
|
2272
|
+
"& .MuiDataGrid-cell--editing": {
|
|
2273
|
+
minHeight: 45,
|
|
2274
|
+
height: "auto",
|
|
2275
|
+
maxHeight: "none",
|
|
2276
|
+
display: "flex",
|
|
2277
|
+
flexDirection: "column",
|
|
2278
|
+
alignItems: "center",
|
|
2279
|
+
justifyContent: "flex-start",
|
|
2280
|
+
gap: 1.5,
|
|
2281
|
+
p: 1
|
|
2282
|
+
},
|
|
2283
|
+
"& .MuiDataGrid-cell--editing input": {
|
|
2284
|
+
color: "black !important",
|
|
2285
|
+
backgroundColor: "white !important"
|
|
2286
|
+
},
|
|
2287
|
+
"& .MuiDataGrid-row:hover, & .MuiDataGrid-row.Mui-selected": { bgcolor: "#B6B4AF" },
|
|
2288
|
+
"& .MuiDataGrid-cell.enable-cell": {
|
|
2289
|
+
backgroundColor: "white !important",
|
|
2290
|
+
"& .MuiCheckbox-root": { color: (e) => e.palette.background.paper }
|
|
2291
|
+
},
|
|
2292
|
+
"& .MuiDataGrid-cell.parcial-cell": {
|
|
2293
|
+
backgroundColor: "#E7E6E4 !important",
|
|
2294
|
+
"& .MuiCheckbox-root": { color: (e) => e.palette.background.paper }
|
|
2295
|
+
},
|
|
2296
|
+
"& .MuiDataGrid-cell.disable-cell": {
|
|
2297
|
+
backgroundColor: "#E7E6E4 !important",
|
|
2298
|
+
"& .MuiCheckbox-root": { color: "#CECDCA" }
|
|
2299
|
+
},
|
|
2300
|
+
"& .MuiDataGrid-row:hover .MuiDataGrid-cell.enable-cell": { backgroundColor: "#B6B4AF !important" },
|
|
2301
|
+
"& .MuiDataGrid-row:hover .MuiDataGrid-cell.parcial-cell": { backgroundColor: "#B6B4AF !important" },
|
|
2302
|
+
"& .MuiDataGrid-row:hover .MuiDataGrid-cell.disable-cell": { backgroundColor: "#B6B4AF !important" }
|
|
2303
|
+
},
|
|
2304
|
+
loading: e.loading,
|
|
2305
|
+
checkboxSelection: e.checkboxSelection,
|
|
2306
|
+
paginationModel: e.paginationModel,
|
|
2307
|
+
onPaginationModelChange: e.setPaginationModel,
|
|
2308
|
+
onRowSelectionModelChange: e.setRowSelectionModel,
|
|
2309
|
+
rowSelectionModel: e.rowSelectionModel,
|
|
2310
|
+
disableRowSelectionOnClick: e.disableRowSelectionOnClick,
|
|
2311
|
+
getRowHeight: () => "auto",
|
|
2312
|
+
onCellEditStop: e.onCellEditStop,
|
|
2313
|
+
disableVirtualization: !0,
|
|
2314
|
+
initialState: e.initialState
|
|
2315
|
+
}), /* @__PURE__ */ q(St, {
|
|
2316
|
+
contextMenu: e.contextMenu,
|
|
2317
|
+
setContextMenu: e.setContextMenu,
|
|
2318
|
+
options: e.options,
|
|
2319
|
+
checked: e.rowSelectionModel,
|
|
2320
|
+
optionGroup: e.optionGroup
|
|
2321
|
+
})] }), At = () => {
|
|
2322
|
+
let e = Ee(), [t, n] = W(!1), [r, i] = W([]), [a, o] = W({
|
|
2323
|
+
pageSize: 25,
|
|
2324
|
+
page: 0
|
|
2325
|
+
}), [s, c] = W({
|
|
2326
|
+
type: "include",
|
|
2327
|
+
ids: /* @__PURE__ */ new Set()
|
|
2328
|
+
}), [l, u] = W(null), [d, f] = W("table");
|
|
2329
|
+
return {
|
|
2330
|
+
apiRef: e,
|
|
2331
|
+
rows: r,
|
|
2332
|
+
setRows: i,
|
|
2333
|
+
loading: t,
|
|
2334
|
+
setLoading: n,
|
|
2335
|
+
paginationModel: a,
|
|
2336
|
+
setPaginationModel: o,
|
|
2337
|
+
rowSelectionModel: s,
|
|
2338
|
+
setRowSelectionModel: c,
|
|
2339
|
+
contextMenu: l,
|
|
2340
|
+
setContextMenu: u,
|
|
2341
|
+
optionGroup: d,
|
|
2342
|
+
setOptionGroup: f
|
|
2343
|
+
};
|
|
2344
|
+
}, jt = () => {
|
|
2345
|
+
let { enqueueSnackbar: t } = be(), n = (e) => {
|
|
2346
|
+
ye(e);
|
|
2347
|
+
};
|
|
2348
|
+
return {
|
|
2349
|
+
showAlert: (r, i) => t(i, {
|
|
2350
|
+
variant: r,
|
|
2351
|
+
content: (t, i) => /* @__PURE__ */ q(e, {
|
|
2352
|
+
sx: {
|
|
2353
|
+
borderRadius: "24px",
|
|
2354
|
+
bgcolor: "#fff",
|
|
2355
|
+
boxShadow: 3,
|
|
2356
|
+
color: (e) => e.palette["gr-base-dark"].main
|
|
2357
|
+
},
|
|
2358
|
+
severity: r,
|
|
2359
|
+
iconMapping: {
|
|
2360
|
+
error: /* @__PURE__ */ q(Fe, {}),
|
|
2361
|
+
info: /* @__PURE__ */ q(Re, {}),
|
|
2362
|
+
success: /* @__PURE__ */ q(Ie, {}),
|
|
2363
|
+
warning: /* @__PURE__ */ q(Le, {}),
|
|
2364
|
+
default: /* @__PURE__ */ q(d, {
|
|
2365
|
+
color: "gr-blue",
|
|
2366
|
+
size: 20
|
|
2367
|
+
})
|
|
2368
|
+
},
|
|
2369
|
+
onClose: () => n(t),
|
|
2370
|
+
children: i
|
|
2371
|
+
}, t)
|
|
2372
|
+
}),
|
|
2373
|
+
closeAlert: n
|
|
2374
|
+
};
|
|
2375
|
+
}, Mt = ({ label: e, initialValue: t, value: n, setValue: r, disabled: i, fullWidth: a, white: o }) => {
|
|
2376
|
+
let { format: s } = V($);
|
|
2377
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(Ve, {
|
|
2378
|
+
label: e,
|
|
2379
|
+
defaultValue: t,
|
|
2380
|
+
value: n,
|
|
2381
|
+
onChange: (e) => {
|
|
2382
|
+
r(e);
|
|
2383
|
+
},
|
|
2384
|
+
sx: { "& .MuiInputBase-root": {
|
|
2385
|
+
borderRadius: "16px",
|
|
2386
|
+
color: o ? "black !important" : "white !important"
|
|
2387
|
+
} },
|
|
2388
|
+
size: "small",
|
|
2389
|
+
color: "gr-yellow",
|
|
2390
|
+
slotProps: { textField: {
|
|
2391
|
+
sx: { "& .MuiInputLabel-root": { color: o ? "black !important" : "white !important" } },
|
|
2392
|
+
slotProps: { input: { sx: {
|
|
2393
|
+
borderRadius: "16px",
|
|
2394
|
+
color: o ? "black !important" : "white !important",
|
|
2395
|
+
"& .MuiIconButton-root .MuiSvgIcon-root": { color: o ? "black !important" : "white !important" }
|
|
2396
|
+
} } }
|
|
2397
|
+
} },
|
|
2398
|
+
focused: !0,
|
|
2399
|
+
format: s,
|
|
2400
|
+
disabled: i,
|
|
2401
|
+
fullWidth: a
|
|
2402
|
+
}) });
|
|
2403
|
+
}, Nt = ({ label: e, placeholder: t, values: r, value: i, setValue: a, white: o }) => {
|
|
2404
|
+
let [s, c] = W(!1);
|
|
2405
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(n, {
|
|
2406
|
+
multiple: !0,
|
|
2407
|
+
options: r,
|
|
2408
|
+
getOptionLabel: (e) => e.label,
|
|
2409
|
+
value: r.filter((e) => i.includes(e.value)),
|
|
2410
|
+
onChange: (e, t) => {
|
|
2411
|
+
a(t.map((e) => e.value));
|
|
2412
|
+
},
|
|
2413
|
+
onOpen: () => c(!0),
|
|
2414
|
+
onClose: () => c(!1),
|
|
2415
|
+
renderInput: (n) => /* @__PURE__ */ q(I, {
|
|
2416
|
+
...n,
|
|
2417
|
+
variant: "outlined",
|
|
2418
|
+
label: e,
|
|
2419
|
+
placeholder: t,
|
|
2420
|
+
sx: {
|
|
2421
|
+
backgroundColor: (e) => o ? "white" : e.palette["gr-base-dark"].main,
|
|
2422
|
+
borderTopLeftRadius: "18px",
|
|
2423
|
+
borderTopRightRadius: "18px",
|
|
2424
|
+
borderBottomLeftRadius: s ? "0px" : "18px",
|
|
2425
|
+
borderBottomRightRadius: s ? "0px" : "18px",
|
|
2426
|
+
color: o ? "black !important" : "white !important",
|
|
2427
|
+
"& .MuiChip-root": {
|
|
2428
|
+
maxWidth: "100px",
|
|
2429
|
+
overflow: "hidden",
|
|
2430
|
+
textOverflow: "ellipsis",
|
|
2431
|
+
whiteSpace: "nowrap"
|
|
2432
|
+
},
|
|
2433
|
+
"& .MuiAutocomplete-tag": {
|
|
2434
|
+
maxHeight: "32px",
|
|
2435
|
+
overflow: "hidden",
|
|
2436
|
+
display: "inline-flex",
|
|
2437
|
+
flexWrap: "nowrap"
|
|
2438
|
+
},
|
|
2439
|
+
"& .MuiAutocomplete-inputRoot": { flexWrap: "nowrap" }
|
|
2440
|
+
},
|
|
2441
|
+
slotProps: { inputLabel: { sx: { color: o ? "black !important" : "white !important" } } },
|
|
2442
|
+
color: "gr-yellow",
|
|
2443
|
+
focused: !0
|
|
2444
|
+
}),
|
|
2445
|
+
renderValue: (e, t) => e.map((e, n) => {
|
|
2446
|
+
let { key: r, ...i } = t({ index: n });
|
|
2447
|
+
return /* @__PURE__ */ q(L, {
|
|
2448
|
+
title: e.highlight?.tooltip,
|
|
2449
|
+
sx: { borderRadius: "24px" },
|
|
2450
|
+
children: /* @__PURE__ */ q(u, {
|
|
2451
|
+
variant: "filled",
|
|
2452
|
+
label: e.label,
|
|
2453
|
+
size: "small",
|
|
2454
|
+
...i,
|
|
2455
|
+
sx: {
|
|
2456
|
+
bgcolor: (t) => e.highlight?.active ? `${t.palette["gr-orange"].main}20` : `${t.palette["gr-grey"].main}20`,
|
|
2457
|
+
color: (e) => e.palette["gr-base-dark"].main,
|
|
2458
|
+
"& .MuiChip-deleteIcon": {
|
|
2459
|
+
color: (e) => e.palette["gr-base-dark"].main,
|
|
2460
|
+
"&:hover": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2461
|
+
},
|
|
2462
|
+
border: e.highlight?.active ? "1px solid" : "none",
|
|
2463
|
+
borderColor: (t) => e.highlight?.active ? t.palette["gr-orange"].main : "none"
|
|
2464
|
+
}
|
|
2465
|
+
}, r)
|
|
2466
|
+
});
|
|
2467
|
+
}),
|
|
2468
|
+
popupIcon: /* @__PURE__ */ q(He, { sx: { color: o ? "black" : "white" } }),
|
|
2469
|
+
slotProps: {
|
|
2470
|
+
paper: { sx: {
|
|
2471
|
+
maxHeight: "500px",
|
|
2472
|
+
borderBottomLeftRadius: "32px",
|
|
2473
|
+
borderBottomRightRadius: "32px",
|
|
2474
|
+
borderTopLeftRadius: "0px",
|
|
2475
|
+
borderTopRightRadius: "0px",
|
|
2476
|
+
backgroundColor: (e) => o ? "white" : e.palette["gr-base-dark"].main,
|
|
2477
|
+
color: o ? "black" : "white"
|
|
2478
|
+
} },
|
|
2479
|
+
chip: {
|
|
2480
|
+
sx: {
|
|
2481
|
+
bgcolor: (e) => o ? `${e.palette["gr-grey"].light} !important` : `${e.palette["gr-grey"].main} !important`,
|
|
2482
|
+
color: o ? "black" : "white"
|
|
2483
|
+
},
|
|
2484
|
+
size: "small",
|
|
2485
|
+
deleteIcon: /* @__PURE__ */ q(Fe, { sx: { color: o ? "black !important" : "white !important" } })
|
|
2486
|
+
}
|
|
2487
|
+
},
|
|
2488
|
+
limitTags: 2,
|
|
2489
|
+
size: "small"
|
|
2490
|
+
}) });
|
|
2491
|
+
}, Pt = ({ label: e, value: t, setValue: n, values: r, placeholder: i, disabled: a, fullWidth: o, white: s }) => /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(y, {
|
|
2492
|
+
fullWidth: o,
|
|
2493
|
+
focused: !0,
|
|
2494
|
+
children: [/* @__PURE__ */ q(D, {
|
|
2495
|
+
id: `filter-table-label-${e}`,
|
|
2496
|
+
sx: {
|
|
2497
|
+
color: s ? "black" : "white",
|
|
2498
|
+
position: "absolute",
|
|
2499
|
+
"&.Mui-focused": { color: s ? "black" : "white" },
|
|
2500
|
+
"&[data-shrink=\"false\"]": { transform: "translateY(12px) translateX(12px)" }
|
|
2501
|
+
},
|
|
2502
|
+
children: e
|
|
2503
|
+
}), /* @__PURE__ */ J(F, {
|
|
2504
|
+
labelId: `filter-table-label-${e}`,
|
|
2505
|
+
id: `filter-${e}`,
|
|
2506
|
+
value: t,
|
|
2507
|
+
label: e,
|
|
2508
|
+
onChange: (e) => n(e.target.value),
|
|
2509
|
+
color: "gr-yellow",
|
|
2510
|
+
sx: { color: s ? "black" : "white" },
|
|
2511
|
+
IconComponent: (e) => /* @__PURE__ */ q(De, {
|
|
2512
|
+
...e,
|
|
2513
|
+
sx: {
|
|
2514
|
+
color: s ? "black !important" : "white !important",
|
|
2515
|
+
...e.sx
|
|
2516
|
+
}
|
|
2517
|
+
}),
|
|
2518
|
+
MenuProps: { slotProps: {
|
|
2519
|
+
paper: { style: {
|
|
2520
|
+
maxHeight: "500px",
|
|
2521
|
+
borderBottomLeftRadius: "32px",
|
|
2522
|
+
borderBottomRightRadius: "32px",
|
|
2523
|
+
borderTopLeftRadius: "0px",
|
|
2524
|
+
borderTopRightRadius: "0px"
|
|
2525
|
+
} },
|
|
2526
|
+
list: { sx: {
|
|
2527
|
+
backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main,
|
|
2528
|
+
"& .MuiMenuItem-root": {
|
|
2529
|
+
backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main,
|
|
2530
|
+
color: s ? "black" : "white",
|
|
2531
|
+
"&:hover": { backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main },
|
|
2532
|
+
"&.Mui-selected": { backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main },
|
|
2533
|
+
"&.Mui-focusVisible": { backgroundColor: (e) => s ? "white" : e.palette["gr-base-dark"].main }
|
|
2534
|
+
}
|
|
2535
|
+
} }
|
|
2536
|
+
} },
|
|
2537
|
+
displayEmpty: !0,
|
|
2538
|
+
disabled: a,
|
|
2539
|
+
children: [/* @__PURE__ */ q(P, {
|
|
2540
|
+
sx: { mt: 2 },
|
|
2541
|
+
disabled: !0,
|
|
2542
|
+
value: "",
|
|
2543
|
+
children: /* @__PURE__ */ q("em", { children: i })
|
|
2544
|
+
}), r.map((e) => /* @__PURE__ */ q(P, {
|
|
2545
|
+
value: e.value,
|
|
2546
|
+
children: e.label
|
|
2547
|
+
}, e.value))]
|
|
2548
|
+
})]
|
|
2549
|
+
}) }), Ft = ({ item: e, path: t }) => e.children.length === 0 ? /* @__PURE__ */ q(We, {
|
|
2550
|
+
itemId: `${t}/${e.id}`,
|
|
2551
|
+
label: e.name,
|
|
2552
|
+
disabled: e.disabled,
|
|
2553
|
+
onClick: () => {
|
|
2554
|
+
e.onClick && e.onClick(`${t}/${e.id}`);
|
|
2555
|
+
}
|
|
2556
|
+
}) : /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(We, {
|
|
2557
|
+
itemId: `${t}/${e.id}`,
|
|
2558
|
+
label: e.name,
|
|
2559
|
+
disabled: e.disabled,
|
|
2560
|
+
children: e.children.map((n) => /* @__PURE__ */ q(Ft, {
|
|
2561
|
+
item: n,
|
|
2562
|
+
path: `${t}/${e.id}`
|
|
2563
|
+
}, n.id))
|
|
2564
|
+
}) }), It = ({ items: e }) => /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(Ue, {
|
|
2565
|
+
sx: {
|
|
2566
|
+
borderRadius: "16px",
|
|
2567
|
+
border: (e) => `1px solid ${e.palette["gr-base-dark"].main}`,
|
|
2568
|
+
p: 1.5
|
|
2569
|
+
},
|
|
2570
|
+
children: e.map((e) => /* @__PURE__ */ q(Ft, {
|
|
2571
|
+
item: e,
|
|
2572
|
+
path: "origin"
|
|
2573
|
+
}, e.id))
|
|
2574
|
+
}) }), Lt = ({ label: e, initialValue: t, value: n, setValue: r, disabled: i, fullWidth: a, white: o }) => /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(Ce, {
|
|
2575
|
+
label: e,
|
|
2576
|
+
disabled: i,
|
|
2577
|
+
format: "HH:mm",
|
|
2578
|
+
ampm: !1,
|
|
2579
|
+
defaultValue: t,
|
|
2580
|
+
value: n,
|
|
2581
|
+
autoFocus: !0,
|
|
2582
|
+
onChange: (e) => {
|
|
2583
|
+
r(e);
|
|
2584
|
+
},
|
|
2585
|
+
slotProps: { textField: {
|
|
2586
|
+
variant: "outlined",
|
|
2587
|
+
size: "small",
|
|
2588
|
+
fullWidth: a,
|
|
2589
|
+
color: "gr-yellow",
|
|
2590
|
+
focused: !0,
|
|
2591
|
+
sx: { borderRadius: "16px" },
|
|
2592
|
+
slotProps: { input: {
|
|
2593
|
+
sx: {
|
|
2594
|
+
borderRadius: "16px",
|
|
2595
|
+
color: o ? "black !important" : "white !important"
|
|
2596
|
+
},
|
|
2597
|
+
endAdornment: /* @__PURE__ */ q(Ge, { style: { color: o ? "black" : "white" } })
|
|
2598
|
+
} }
|
|
2599
|
+
} }
|
|
2600
|
+
}) }), Rt = ({ label: e, initialValue: t, value: n, setValue: r, disabled: i, white: a, fullWidth: o }) => {
|
|
2601
|
+
let { format: s, singleShortcut: c } = V($);
|
|
2602
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(xe, {
|
|
2603
|
+
label: e,
|
|
2604
|
+
defaultValue: t,
|
|
2605
|
+
value: n,
|
|
2606
|
+
onChange: (e) => r(e),
|
|
2607
|
+
disabled: i,
|
|
2608
|
+
format: s,
|
|
2609
|
+
slotProps: {
|
|
2610
|
+
shortcuts: { items: c },
|
|
2611
|
+
textField: {
|
|
2612
|
+
variant: "outlined",
|
|
2613
|
+
size: "small",
|
|
2614
|
+
fullWidth: o,
|
|
2615
|
+
color: "gr-yellow",
|
|
2616
|
+
focused: !0,
|
|
2617
|
+
slotProps: { input: { sx: {
|
|
2618
|
+
borderRadius: "16px",
|
|
2619
|
+
color: a ? "black !important" : "white !important",
|
|
2620
|
+
"& .MuiIconButton-root .MuiSvgIcon-root": { color: a ? "black !important" : "white !important" }
|
|
2621
|
+
} } }
|
|
2622
|
+
},
|
|
2623
|
+
popper: { sx: {
|
|
2624
|
+
"& .MuiChip-root": { bgcolor: (e) => e.palette["gr-grey"].light },
|
|
2625
|
+
"& .MuiChip-root:hover": { bgcolor: (e) => e.palette["gr-grey"].dark },
|
|
2626
|
+
"& .MuiDayCalendar-weekDayLabel": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2627
|
+
"& .MuiYearCalendar-button": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2628
|
+
"& .MuiButtonBase-root": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2629
|
+
"& .Mui-selected, & .MuiPickersDay-root.Mui-selected": {
|
|
2630
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2631
|
+
color: "black !important"
|
|
2632
|
+
},
|
|
2633
|
+
"& .MuiYearCalendar-yearButton.Mui-selected": {
|
|
2634
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2635
|
+
color: "black !important"
|
|
2636
|
+
},
|
|
2637
|
+
"& .MuiPaper-root": {
|
|
2638
|
+
bgcolor: a ? "white" : "black",
|
|
2639
|
+
borderRadius: "20px"
|
|
2640
|
+
},
|
|
2641
|
+
"& .MuiPickersDay-root": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2642
|
+
} }
|
|
2643
|
+
}
|
|
2644
|
+
}) });
|
|
2645
|
+
}, zt = ({ label: e, initialValue: t, value: n, setValue: r, calendars: i, disabled: a, white: o, fullWidth: s }) => {
|
|
2646
|
+
let { format: c, rangeShortcut: l } = V($);
|
|
2647
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(Ae, {
|
|
2648
|
+
label: e,
|
|
2649
|
+
defaultValue: t,
|
|
2650
|
+
value: n,
|
|
2651
|
+
onChange: (e) => r(e),
|
|
2652
|
+
disabled: a,
|
|
2653
|
+
format: c,
|
|
2654
|
+
calendars: i,
|
|
2655
|
+
slotProps: {
|
|
2656
|
+
shortcuts: { items: l },
|
|
2657
|
+
textField: {
|
|
2658
|
+
variant: "outlined",
|
|
2659
|
+
size: "small",
|
|
2660
|
+
fullWidth: s,
|
|
2661
|
+
color: "gr-yellow",
|
|
2662
|
+
focused: !0,
|
|
2663
|
+
slotProps: { input: { sx: {
|
|
2664
|
+
borderRadius: "16px",
|
|
2665
|
+
color: o ? "black !important" : "white !important",
|
|
2666
|
+
"& .MuiIconButton-root .MuiSvgIcon-root": { color: o ? "black !important" : "white !important" }
|
|
2667
|
+
} } }
|
|
2668
|
+
},
|
|
2669
|
+
popper: { sx: {
|
|
2670
|
+
"& .MuiChip-root": { bgcolor: (e) => e.palette["gr-grey"].light },
|
|
2671
|
+
"& .MuiChip-root:hover": { bgcolor: (e) => e.palette["gr-grey"].dark },
|
|
2672
|
+
"& .MuiDayCalendar-weekDayLabel": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2673
|
+
"& .MuiYearCalendar-button": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2674
|
+
"& .MuiButtonBase-root": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2675
|
+
"& .MuiPickersArrowSwitcher-root": { color: (e) => e.palette["gr-base-dark"].main },
|
|
2676
|
+
"& .Mui-selected, & .MuiPickersDay-root.Mui-selected": {
|
|
2677
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2678
|
+
color: "black !important"
|
|
2679
|
+
},
|
|
2680
|
+
"& .MuiYearCalendar-yearButton.Mui-selected": {
|
|
2681
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2682
|
+
color: "black !important"
|
|
2683
|
+
},
|
|
2684
|
+
"& .MuiPaper-root": {
|
|
2685
|
+
bgcolor: o ? "white" : "black",
|
|
2686
|
+
borderRadius: "20px"
|
|
2687
|
+
},
|
|
2688
|
+
"& .MuiPickersDay-root": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2689
|
+
} }
|
|
2690
|
+
}
|
|
2691
|
+
}) });
|
|
2692
|
+
}, Bt = ({ initialValue: e, value: t, setValue: n, calendars: r, disabled: i, white: a }) => {
|
|
2693
|
+
let { rangeShortcut: o } = V($);
|
|
2694
|
+
return /* @__PURE__ */ q(Ke, {
|
|
2695
|
+
defaultValue: e,
|
|
2696
|
+
value: t,
|
|
2697
|
+
onChange: (e) => {
|
|
2698
|
+
n(e), console.log("Selected Range:", e);
|
|
2699
|
+
},
|
|
2700
|
+
calendars: r,
|
|
2701
|
+
disabled: i,
|
|
2702
|
+
sx: {
|
|
2703
|
+
width: "560px",
|
|
2704
|
+
overflowX: "auto",
|
|
2705
|
+
border: (e) => a ? `2px groove ${e.palette["gr-base-dark"].main}` : `1px solid ${e.palette["gr-base-light"].main}`,
|
|
2706
|
+
borderRadius: "20px",
|
|
2707
|
+
"& .MuiChip-root": { bgcolor: (e) => e.palette["gr-grey"].light },
|
|
2708
|
+
"& .MuiChip-root:hover": { bgcolor: (e) => e.palette["gr-grey"].dark },
|
|
2709
|
+
"& .MuiDayCalendar-weekDayLabel": { color: (e) => a ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main },
|
|
2710
|
+
"& .MuiYearCalendar-button": { color: (e) => a ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main },
|
|
2711
|
+
"& .MuiButtonBase-root": { color: (e) => a ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main },
|
|
2712
|
+
"& .MuiPickersArrowSwitcher-root": { color: (e) => a ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main },
|
|
2713
|
+
"& .Mui-selected, & .MuiPickersDay-root.Mui-selected": {
|
|
2714
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2715
|
+
color: a ? "black !important" : "white !important"
|
|
2716
|
+
},
|
|
2717
|
+
"& .MuiYearCalendar-yearButton.Mui-selected": {
|
|
2718
|
+
bgcolor: (e) => `${e.palette["gr-yellow"].main} !important`,
|
|
2719
|
+
color: a ? "black !important" : "white !important"
|
|
2720
|
+
},
|
|
2721
|
+
"& .MuiPickersDay-root": { color: (e) => a ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main },
|
|
2722
|
+
"& .MuiChip-label": { color: (e) => `${e.palette["gr-base-dark"].main} !important` },
|
|
2723
|
+
"& .MuiTypography-root": { color: (e) => a ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main },
|
|
2724
|
+
"& .MuiPickersCalendarHeader-label": { color: (e) => a ? e.palette["gr-base-dark"].main : e.palette["gr-base-light"].main }
|
|
2725
|
+
},
|
|
2726
|
+
slotProps: {
|
|
2727
|
+
shortcuts: { items: o },
|
|
2728
|
+
actionBar: { actions: [] },
|
|
2729
|
+
layout: { sx: {
|
|
2730
|
+
borderRadius: "20px !important",
|
|
2731
|
+
bgcolor: a ? "white !important" : "black !important"
|
|
2732
|
+
} }
|
|
2733
|
+
}
|
|
2734
|
+
});
|
|
2735
|
+
}, Vt = ({ data: e, setData: t, columnLabels: n, buttons: r }) => /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(C, {
|
|
2736
|
+
sx: { overflow: "hidden" },
|
|
2737
|
+
container: !0,
|
|
2738
|
+
spacing: 2,
|
|
2739
|
+
children: [/* @__PURE__ */ J(C, {
|
|
2740
|
+
size: 1,
|
|
2741
|
+
children: [/* @__PURE__ */ q(a, {
|
|
2742
|
+
variant: "contained",
|
|
2743
|
+
size: "small",
|
|
2744
|
+
color: "gr-base-dark",
|
|
2745
|
+
sx: {
|
|
2746
|
+
borderRadius: "20px",
|
|
2747
|
+
height: "40px",
|
|
2748
|
+
maxWidth: "40px",
|
|
2749
|
+
minWidth: "40px",
|
|
2750
|
+
width: "40px",
|
|
2751
|
+
p: 1,
|
|
2752
|
+
mt: 7,
|
|
2753
|
+
mb: 2
|
|
2754
|
+
},
|
|
2755
|
+
onClick: () => t(e.slice(0, -1)),
|
|
2756
|
+
children: /* @__PURE__ */ q(w, {
|
|
2757
|
+
baseClassName: "material-symbols-rounded",
|
|
2758
|
+
sx: {
|
|
2759
|
+
color: "#FFFFFF",
|
|
2760
|
+
fontSize: "18px"
|
|
2761
|
+
},
|
|
2762
|
+
children: "remove"
|
|
2763
|
+
})
|
|
2764
|
+
}), /* @__PURE__ */ q(a, {
|
|
2765
|
+
variant: "contained",
|
|
2766
|
+
size: "small",
|
|
2767
|
+
color: "gr-base-dark",
|
|
2768
|
+
sx: {
|
|
2769
|
+
borderRadius: "20px",
|
|
2770
|
+
height: "40px",
|
|
2771
|
+
maxWidth: "40px",
|
|
2772
|
+
minWidth: "40px",
|
|
2773
|
+
width: "40px",
|
|
2774
|
+
p: 1
|
|
2775
|
+
},
|
|
2776
|
+
onClick: () => t([...e, n.map(() => ({ value: "" }))]),
|
|
2777
|
+
children: /* @__PURE__ */ q(w, {
|
|
2778
|
+
baseClassName: "material-symbols-rounded",
|
|
2779
|
+
sx: {
|
|
2780
|
+
color: "#FFFFFF",
|
|
2781
|
+
fontSize: "18px"
|
|
2782
|
+
},
|
|
2783
|
+
children: "add"
|
|
2784
|
+
})
|
|
2785
|
+
})]
|
|
2786
|
+
}), /* @__PURE__ */ q(C, {
|
|
2787
|
+
size: 11,
|
|
2788
|
+
children: /* @__PURE__ */ J(C, {
|
|
2789
|
+
container: !0,
|
|
2790
|
+
children: [
|
|
2791
|
+
/* @__PURE__ */ q(C, {
|
|
2792
|
+
size: 8,
|
|
2793
|
+
sx: {
|
|
2794
|
+
bgcolor: (e) => e.palette["gr-base-dark"].main,
|
|
2795
|
+
borderTopLeftRadius: "20px",
|
|
2796
|
+
p: 1.5,
|
|
2797
|
+
display: "flex",
|
|
2798
|
+
alignItems: "center",
|
|
2799
|
+
justifyContent: "center",
|
|
2800
|
+
gap: 1
|
|
2801
|
+
},
|
|
2802
|
+
children: r.map((e, t) => /* @__PURE__ */ J(a, {
|
|
2803
|
+
sx: {
|
|
2804
|
+
borderRadius: "20px",
|
|
2805
|
+
textTransform: "none"
|
|
2806
|
+
},
|
|
2807
|
+
variant: "outlined",
|
|
2808
|
+
size: "small",
|
|
2809
|
+
color: "gr-base-light",
|
|
2810
|
+
onClick: e.onClick,
|
|
2811
|
+
children: [e.label, /* @__PURE__ */ q(w, {
|
|
2812
|
+
baseClassName: "material-symbols-rounded",
|
|
2813
|
+
sx: {
|
|
2814
|
+
ml: 1,
|
|
2815
|
+
mt: -.5,
|
|
2816
|
+
color: "#FFFFFF",
|
|
2817
|
+
fontSize: "18px"
|
|
2818
|
+
},
|
|
2819
|
+
children: e.icon
|
|
2820
|
+
})]
|
|
2821
|
+
}, t))
|
|
2822
|
+
}),
|
|
2823
|
+
/* @__PURE__ */ q(C, {
|
|
2824
|
+
size: 4,
|
|
2825
|
+
sx: {
|
|
2826
|
+
bgcolor: (e) => e.palette["gr-base-dark"].main,
|
|
2827
|
+
borderTopRightRadius: "20px",
|
|
2828
|
+
p: 1.5,
|
|
2829
|
+
display: "flex",
|
|
2830
|
+
alignItems: "center",
|
|
2831
|
+
justifyContent: "center",
|
|
2832
|
+
gap: 1
|
|
2833
|
+
}
|
|
2834
|
+
}),
|
|
2835
|
+
/* @__PURE__ */ q(C, {
|
|
2836
|
+
size: 12,
|
|
2837
|
+
sx: {
|
|
2838
|
+
overflowX: "auto",
|
|
2839
|
+
width: "55vh",
|
|
2840
|
+
borderBottomLeftRadius: "20px",
|
|
2841
|
+
borderBottomRightRadius: "20px"
|
|
2842
|
+
},
|
|
2843
|
+
children: /* @__PURE__ */ q(qe, {
|
|
2844
|
+
data: e,
|
|
2845
|
+
columnLabels: n,
|
|
2846
|
+
onChange: (e) => t(e),
|
|
2847
|
+
className: ""
|
|
2848
|
+
})
|
|
2849
|
+
})
|
|
2850
|
+
]
|
|
2851
|
+
})
|
|
2852
|
+
})]
|
|
2853
|
+
}) }), Ht = (e) => {
|
|
2854
|
+
let t = U(null);
|
|
2855
|
+
return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(ze, {
|
|
2856
|
+
nodeRef: t,
|
|
2857
|
+
handle: "#draggable-dialog-title",
|
|
2858
|
+
cancel: "[class*=\"MuiDialogContent-root\"]",
|
|
2859
|
+
children: /* @__PURE__ */ q(ne, {
|
|
2860
|
+
...e,
|
|
2861
|
+
ref: t,
|
|
2862
|
+
sx: {
|
|
2863
|
+
bgcolor: "white",
|
|
2864
|
+
color: (e) => e.palette.background.paper,
|
|
2865
|
+
padding: "20px",
|
|
2866
|
+
display: "flex",
|
|
2867
|
+
flexDirection: "column",
|
|
2868
|
+
justifyContent: "center",
|
|
2869
|
+
alignItems: "center",
|
|
2870
|
+
gap: "50px",
|
|
2871
|
+
borderRadius: "20px"
|
|
2872
|
+
}
|
|
2873
|
+
})
|
|
2874
|
+
}) });
|
|
2875
|
+
}, Ut = ({ title: n, alert: r, action: o, fields: s, open: c, setOpen: u, loading: f, onClickSave: _ }) => {
|
|
2876
|
+
let [v, E] = W(!1), D = (e, t) => {
|
|
2877
|
+
switch (e.element) {
|
|
2878
|
+
case "TextField": return /* @__PURE__ */ q(C, {
|
|
2879
|
+
size: e.ncolumn,
|
|
2880
|
+
sx: { mb: "20px" },
|
|
2881
|
+
children: /* @__PURE__ */ q(I, {
|
|
2882
|
+
fullWidth: !0,
|
|
2883
|
+
variant: "outlined",
|
|
2884
|
+
label: e.label,
|
|
2885
|
+
type: e.type,
|
|
2886
|
+
placeholder: e.placeholder,
|
|
2887
|
+
focused: !0,
|
|
2888
|
+
value: e.value,
|
|
2889
|
+
multiline: e.multiline,
|
|
2890
|
+
rows: e.rows,
|
|
2891
|
+
onChange: (t) => {
|
|
2892
|
+
e.setValue(t.target.value);
|
|
2893
|
+
},
|
|
2894
|
+
disabled: e.disable || o?.actionButton?.loading,
|
|
2895
|
+
size: "small"
|
|
2896
|
+
})
|
|
2897
|
+
}, t);
|
|
2898
|
+
case "SelectField": return /* @__PURE__ */ q(C, {
|
|
2899
|
+
size: e.ncolumn,
|
|
2900
|
+
sx: { mb: "20px" },
|
|
2901
|
+
children: /* @__PURE__ */ q(Pt, {
|
|
2902
|
+
label: e.label,
|
|
2903
|
+
placeholder: e.placeholder,
|
|
2904
|
+
value: e.value,
|
|
2905
|
+
setValue: e.setValue,
|
|
2906
|
+
values: e.values,
|
|
2907
|
+
disabled: !!(e.disable || o?.actionButton?.loading),
|
|
2908
|
+
fullWidth: !0,
|
|
2909
|
+
white: !0
|
|
2910
|
+
})
|
|
2911
|
+
}, t);
|
|
2912
|
+
case "DateField": return /* @__PURE__ */ q(C, {
|
|
2913
|
+
size: e.ncolumn,
|
|
2914
|
+
sx: { mb: "20px" },
|
|
2915
|
+
children: /* @__PURE__ */ q(Mt, {
|
|
2916
|
+
label: e.label,
|
|
2917
|
+
initialValue: e.initialValue,
|
|
2918
|
+
value: e.value,
|
|
2919
|
+
setValue: e.setValue,
|
|
2920
|
+
disabled: !!(e.disable || o?.actionButton?.loading),
|
|
2921
|
+
fullWidth: !0,
|
|
2922
|
+
white: !0
|
|
2923
|
+
})
|
|
2924
|
+
}, t);
|
|
2925
|
+
case "CheckboxField": return /* @__PURE__ */ q(C, {
|
|
2926
|
+
size: e.ncolumn,
|
|
2927
|
+
sx: { mb: "20px" },
|
|
2928
|
+
children: /* @__PURE__ */ q(x, { children: /* @__PURE__ */ q(b, {
|
|
2929
|
+
control: /* @__PURE__ */ q(l, {
|
|
2930
|
+
sx: {
|
|
2931
|
+
ml: 1.5,
|
|
2932
|
+
color: (e) => e.palette["gr-base-dark"].main,
|
|
2933
|
+
"&.Mui-checked": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2934
|
+
},
|
|
2935
|
+
checked: e.value,
|
|
2936
|
+
onChange: (t) => e.setValue(t.target.checked),
|
|
2937
|
+
disabled: !!(e.disable || o?.actionButton?.loading)
|
|
2938
|
+
}),
|
|
2939
|
+
label: e.label
|
|
2940
|
+
}) })
|
|
2941
|
+
}, t);
|
|
2942
|
+
case "CheckboxGroup": return /* @__PURE__ */ q(C, {
|
|
2943
|
+
size: e.ncolumn,
|
|
2944
|
+
sx: { mb: "20px" },
|
|
2945
|
+
children: /* @__PURE__ */ q(x, { children: e.checkboxs.map((e, t) => /* @__PURE__ */ q(b, {
|
|
2946
|
+
control: /* @__PURE__ */ q(l, {
|
|
2947
|
+
sx: {
|
|
2948
|
+
ml: 1.5,
|
|
2949
|
+
color: (e) => e.palette["gr-base-dark"].main,
|
|
2950
|
+
"&.Mui-checked": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2951
|
+
},
|
|
2952
|
+
checked: e.value,
|
|
2953
|
+
onChange: (t) => e.setValue(t.target.checked)
|
|
2954
|
+
}),
|
|
2955
|
+
label: e.label
|
|
2956
|
+
}, t)) })
|
|
2957
|
+
}, t);
|
|
2958
|
+
case "RadioGroupField": return /* @__PURE__ */ q(C, {
|
|
2959
|
+
size: e.ncolumn,
|
|
2960
|
+
sx: { mb: "20px" },
|
|
2961
|
+
children: /* @__PURE__ */ J(y, {
|
|
2962
|
+
sx: { mt: e.label.text ? "none" : "-7px" },
|
|
2963
|
+
children: [/* @__PURE__ */ q(S, { children: e.label.text }), /* @__PURE__ */ q(ie, {
|
|
2964
|
+
value: e.value,
|
|
2965
|
+
onChange: (t) => e.setValue(t.target.value),
|
|
2966
|
+
row: e.row,
|
|
2967
|
+
children: e.radios.map((e, t) => /* @__PURE__ */ q(b, {
|
|
2968
|
+
value: e.value,
|
|
2969
|
+
control: /* @__PURE__ */ q(re, { sx: {
|
|
2970
|
+
color: (e) => e.palette["gr-base-dark"].main,
|
|
2971
|
+
"&.Mui-checked": { color: (e) => e.palette["gr-base-dark"].main }
|
|
2972
|
+
} }),
|
|
2973
|
+
label: e.label.text,
|
|
2974
|
+
labelPlacement: e.label.position,
|
|
2975
|
+
disabled: e.disable
|
|
2976
|
+
}, t))
|
|
2977
|
+
})]
|
|
2978
|
+
})
|
|
2979
|
+
}, t);
|
|
2980
|
+
case "AutoCompleteField": return /* @__PURE__ */ q(C, {
|
|
2981
|
+
size: e.ncolumn,
|
|
2982
|
+
sx: { mb: "20px" },
|
|
2983
|
+
children: /* @__PURE__ */ q(Nt, {
|
|
2984
|
+
label: e.label,
|
|
2985
|
+
placeholder: "Seleccionar",
|
|
2986
|
+
values: e.values,
|
|
2987
|
+
value: e.value,
|
|
2988
|
+
setValue: e.setValue,
|
|
2989
|
+
white: !0
|
|
2990
|
+
})
|
|
2991
|
+
}, t);
|
|
2992
|
+
case "ListField": return /* @__PURE__ */ q(C, {
|
|
2993
|
+
size: e.ncolumn,
|
|
2994
|
+
sx: { mb: "20px" },
|
|
2995
|
+
children: /* @__PURE__ */ q(O, {
|
|
2996
|
+
dense: !0,
|
|
2997
|
+
sx: {
|
|
2998
|
+
borderRadius: "16px",
|
|
2999
|
+
border: (t) => e.border ? `1px solid ${t.palette["gr-grey"].dark}` : "none"
|
|
3000
|
+
},
|
|
3001
|
+
children: e.items.map((t, n) => /* @__PURE__ */ J(ee, {
|
|
3002
|
+
secondaryAction: e.action,
|
|
3003
|
+
children: [t.icon && /* @__PURE__ */ q(j, { children: /* @__PURE__ */ q(w, {
|
|
3004
|
+
baseClassName: "material-symbols-rounded",
|
|
3005
|
+
sx: { color: t.icon?.color },
|
|
3006
|
+
children: t.icon?.name
|
|
3007
|
+
}) }), /* @__PURE__ */ q(M, {
|
|
3008
|
+
primary: t.primaryText,
|
|
3009
|
+
secondary: t.secondaryText
|
|
3010
|
+
})]
|
|
3011
|
+
}, n))
|
|
3012
|
+
})
|
|
3013
|
+
}, t);
|
|
3014
|
+
case "TreeviewField": return /* @__PURE__ */ J(C, {
|
|
3015
|
+
size: e.ncolumn,
|
|
3016
|
+
sx: { mb: "20px" },
|
|
3017
|
+
children: [/* @__PURE__ */ q(R, {
|
|
3018
|
+
variant: "body1",
|
|
3019
|
+
children: e.label
|
|
3020
|
+
}), /* @__PURE__ */ q(It, { items: e.items })]
|
|
3021
|
+
}, t);
|
|
3022
|
+
case "TimeField": return /* @__PURE__ */ q(C, {
|
|
3023
|
+
size: e.ncolumn,
|
|
3024
|
+
sx: { mb: "20px" },
|
|
3025
|
+
children: /* @__PURE__ */ q(Lt, {
|
|
3026
|
+
label: e.label,
|
|
3027
|
+
initialValue: e.initialValue,
|
|
3028
|
+
value: e.value,
|
|
3029
|
+
setValue: e.setValue,
|
|
3030
|
+
disabled: !!(e.disable || o?.actionButton?.loading),
|
|
3031
|
+
fullWidth: !0,
|
|
3032
|
+
white: !0
|
|
3033
|
+
})
|
|
3034
|
+
}, t);
|
|
3035
|
+
case "TypographyField": return /* @__PURE__ */ q(C, {
|
|
3036
|
+
size: e.ncolumn,
|
|
3037
|
+
sx: { mb: "20px" },
|
|
3038
|
+
children: /* @__PURE__ */ q(R, {
|
|
3039
|
+
variant: "body1",
|
|
3040
|
+
children: e.text
|
|
3041
|
+
})
|
|
3042
|
+
}, t);
|
|
3043
|
+
case "DatePickerField": return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(C, {
|
|
3044
|
+
size: e.ncolumn,
|
|
3045
|
+
sx: { mb: "20px" },
|
|
3046
|
+
children: /* @__PURE__ */ q(Rt, {
|
|
3047
|
+
label: e.label,
|
|
3048
|
+
initialValue: e.initialValue,
|
|
3049
|
+
value: e.value,
|
|
3050
|
+
setValue: e.setValue,
|
|
3051
|
+
disabled: !!(e.disable || o?.actionButton?.loading),
|
|
3052
|
+
fullWidth: !0,
|
|
3053
|
+
white: !0
|
|
3054
|
+
})
|
|
3055
|
+
}, t) });
|
|
3056
|
+
case "DateRangePickerField": return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(C, {
|
|
3057
|
+
size: e.ncolumn,
|
|
3058
|
+
sx: { mb: "20px" },
|
|
3059
|
+
children: /* @__PURE__ */ q(zt, {
|
|
3060
|
+
label: e.label,
|
|
3061
|
+
initialValue: e.initialValue,
|
|
3062
|
+
value: e.value,
|
|
3063
|
+
setValue: e.setValue,
|
|
3064
|
+
calendars: e.calendars,
|
|
3065
|
+
disabled: !!(e.disable || o?.actionButton?.loading),
|
|
3066
|
+
fullWidth: !0,
|
|
3067
|
+
white: !0
|
|
3068
|
+
})
|
|
3069
|
+
}, t) });
|
|
3070
|
+
case "DateRangeCalendarField": return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(C, {
|
|
3071
|
+
size: e.ncolumn,
|
|
3072
|
+
sx: { mb: "20px" },
|
|
3073
|
+
children: /* @__PURE__ */ q(Bt, {
|
|
3074
|
+
initialValue: e.initialValue,
|
|
3075
|
+
value: e.value,
|
|
3076
|
+
setValue: e.setValue,
|
|
3077
|
+
calendars: e.calendars,
|
|
3078
|
+
disabled: !!(e.disable || o?.actionButton?.loading),
|
|
3079
|
+
white: e.white
|
|
3080
|
+
})
|
|
3081
|
+
}, t) });
|
|
3082
|
+
case "SheetField": return /* @__PURE__ */ q(K, { children: /* @__PURE__ */ q(C, {
|
|
3083
|
+
size: e.ncolumn,
|
|
3084
|
+
sx: { mb: "20px" },
|
|
3085
|
+
children: /* @__PURE__ */ q(Vt, {
|
|
3086
|
+
data: e.data,
|
|
3087
|
+
setData: e.setData,
|
|
3088
|
+
columnLabels: e.columnLabels,
|
|
3089
|
+
buttons: e.buttons
|
|
3090
|
+
})
|
|
3091
|
+
}, t) });
|
|
3092
|
+
case "DividerField": return /* @__PURE__ */ q(C, {
|
|
3093
|
+
size: 12,
|
|
3094
|
+
sx: { mb: "20px" },
|
|
3095
|
+
children: /* @__PURE__ */ q(i, { sx: {
|
|
3096
|
+
width: "100%",
|
|
3097
|
+
height: "1px",
|
|
3098
|
+
bgcolor: (e) => e.palette["gr-grey"].dark
|
|
3099
|
+
} })
|
|
3100
|
+
}, t);
|
|
3101
|
+
default: return /* @__PURE__ */ q(K, {});
|
|
3102
|
+
}
|
|
3103
|
+
}, k = () => {
|
|
3104
|
+
s.forEach((e) => {
|
|
3105
|
+
switch (e.element) {
|
|
3106
|
+
case "TextField":
|
|
3107
|
+
e.setValue(e.initialValue);
|
|
3108
|
+
break;
|
|
3109
|
+
case "SelectField":
|
|
3110
|
+
e.setValue(e.initialValue);
|
|
3111
|
+
break;
|
|
3112
|
+
case "DateField":
|
|
3113
|
+
e.setValue(e.initialValue);
|
|
3114
|
+
break;
|
|
3115
|
+
case "CheckboxField":
|
|
3116
|
+
e.setValue(e.initialValue);
|
|
3117
|
+
break;
|
|
3118
|
+
case "CheckboxGroup":
|
|
3119
|
+
e.checkboxs.forEach((e) => {
|
|
3120
|
+
e.setValue(e.initialValue);
|
|
3121
|
+
});
|
|
3122
|
+
break;
|
|
3123
|
+
case "AutoCompleteField":
|
|
3124
|
+
e.setValue(e.initialValue);
|
|
3125
|
+
break;
|
|
3126
|
+
case "ListField": break;
|
|
3127
|
+
case "TreeviewField": break;
|
|
3128
|
+
case "TimeField":
|
|
3129
|
+
e.setValue(e.initialValue);
|
|
3130
|
+
break;
|
|
3131
|
+
case "DatePickerField":
|
|
3132
|
+
e.setValue(e.initialValue);
|
|
3133
|
+
break;
|
|
3134
|
+
case "DateRangePickerField":
|
|
3135
|
+
e.setValue(e.initialValue);
|
|
3136
|
+
break;
|
|
3137
|
+
case "TypographyField": break;
|
|
3138
|
+
case "DateRangeCalendarField":
|
|
3139
|
+
e.setValue(e.initialValue);
|
|
3140
|
+
break;
|
|
3141
|
+
case "RadioGroup":
|
|
3142
|
+
e.setValue(e.initialValue);
|
|
3143
|
+
break;
|
|
3144
|
+
default: break;
|
|
3145
|
+
}
|
|
3146
|
+
}), E(!1);
|
|
3147
|
+
}, A = (e) => {
|
|
3148
|
+
e.some((e) => {
|
|
3149
|
+
if (e.element === "CheckboxGroup") return e.checkboxs.some((e) => e.value !== e.initialValue);
|
|
3150
|
+
if (e.element === "CheckboxField" || e.element === "TextField" || e.element === "SelectField" || e.element === "DateField") return e.value !== e.initialValue;
|
|
3151
|
+
if (e.element === "AutoCompleteField") return JSON.stringify(e.value.sort()) !== JSON.stringify(e.initialValue.sort());
|
|
3152
|
+
if (e.element === "TimeField" || e.element === "DatePickerField") return e.value !== e.initialValue;
|
|
3153
|
+
if (e.element === "DateRangePickerField" || e.element === "DateRangeCalendarField") return JSON.stringify(e.value) !== JSON.stringify(e.initialValue);
|
|
3154
|
+
if (e.element === "RadioGroup") return e.value !== e.initialValue;
|
|
3155
|
+
}) ? E(!0) : u(!1);
|
|
3156
|
+
};
|
|
3157
|
+
return H(() => {
|
|
3158
|
+
c || k();
|
|
3159
|
+
}, [c]), /* @__PURE__ */ q(K, { children: /* @__PURE__ */ J(p, {
|
|
3160
|
+
open: c,
|
|
3161
|
+
onClose: () => A(s),
|
|
3162
|
+
PaperComponent: Ht,
|
|
3163
|
+
"aria-labelledby": "draggable-dialog-title",
|
|
3164
|
+
children: [
|
|
3165
|
+
/* @__PURE__ */ J(g, {
|
|
3166
|
+
style: {
|
|
3167
|
+
cursor: "move",
|
|
3168
|
+
textAlign: "left",
|
|
3169
|
+
margin: 0,
|
|
3170
|
+
padding: 0,
|
|
3171
|
+
width: "100%"
|
|
3172
|
+
},
|
|
3173
|
+
id: "draggable-dialog-title",
|
|
3174
|
+
children: [n, /* @__PURE__ */ q(T, {
|
|
3175
|
+
sx: {
|
|
3176
|
+
position: "absolute",
|
|
3177
|
+
right: 10,
|
|
3178
|
+
top: 10
|
|
3179
|
+
},
|
|
3180
|
+
onClick: () => A(s),
|
|
3181
|
+
children: /* @__PURE__ */ q(w, {
|
|
3182
|
+
baseClassName: "material-symbols-rounded",
|
|
3183
|
+
sx: {
|
|
3184
|
+
color: (e) => e.palette["gr-base-dark"].main,
|
|
3185
|
+
fontSize: "24px"
|
|
3186
|
+
},
|
|
3187
|
+
children: "close"
|
|
3188
|
+
})
|
|
3189
|
+
})]
|
|
3190
|
+
}),
|
|
3191
|
+
v && r && /* @__PURE__ */ q(h, {
|
|
3192
|
+
sx: {
|
|
3193
|
+
padding: 0,
|
|
3194
|
+
margin: 0,
|
|
3195
|
+
width: "100%",
|
|
3196
|
+
overflow: "hidden",
|
|
3197
|
+
minHeight: "85px"
|
|
3198
|
+
},
|
|
3199
|
+
children: /* @__PURE__ */ J(e, {
|
|
3200
|
+
icon: /* @__PURE__ */ q(Be, {}),
|
|
3201
|
+
sx: {
|
|
3202
|
+
borderRadius: "24px",
|
|
3203
|
+
bgcolor: "#FFEFE5",
|
|
3204
|
+
border: (e) => `1px solid ${e.palette["gr-orange"].main}`,
|
|
3205
|
+
"& .MuiAlert-icon": { color: (e) => e.palette["gr-orange"].main }
|
|
3206
|
+
},
|
|
3207
|
+
action: /* @__PURE__ */ J(i, {
|
|
3208
|
+
sx: { mt: 3.75 },
|
|
3209
|
+
children: [/* @__PURE__ */ q(a, {
|
|
3210
|
+
color: "gr-grey",
|
|
3211
|
+
size: "small",
|
|
3212
|
+
onClick: () => E(!1),
|
|
3213
|
+
children: /* @__PURE__ */ q("b", { children: r.actionButton.buttonText })
|
|
3214
|
+
}), /* @__PURE__ */ q(a, {
|
|
3215
|
+
color: "gr-grey",
|
|
3216
|
+
size: "small",
|
|
3217
|
+
onClick: () => {
|
|
3218
|
+
k(), u(!1);
|
|
3219
|
+
},
|
|
3220
|
+
children: /* @__PURE__ */ q("b", { children: r.cancelButton.buttonText })
|
|
3221
|
+
})]
|
|
3222
|
+
}),
|
|
3223
|
+
children: [/* @__PURE__ */ q(t, { children: r.title }), /* @__PURE__ */ q(R, {
|
|
3224
|
+
variant: "body2",
|
|
3225
|
+
children: r.message
|
|
3226
|
+
})]
|
|
3227
|
+
})
|
|
3228
|
+
}),
|
|
3229
|
+
/* @__PURE__ */ J(h, {
|
|
3230
|
+
sx: {
|
|
3231
|
+
padding: 0,
|
|
3232
|
+
margin: 0,
|
|
3233
|
+
position: "relative",
|
|
3234
|
+
overflow: f ? "hidden" : "auto"
|
|
3235
|
+
},
|
|
3236
|
+
children: [/* @__PURE__ */ q(C, {
|
|
3237
|
+
container: !0,
|
|
3238
|
+
spacing: 2,
|
|
3239
|
+
sx: {
|
|
3240
|
+
mt: 1,
|
|
3241
|
+
visibility: f ? "hidden" : "visible"
|
|
3242
|
+
},
|
|
3243
|
+
children: s.map((e, t) => D(e, t))
|
|
3244
|
+
}), f && /* @__PURE__ */ q(i, {
|
|
3245
|
+
sx: {
|
|
3246
|
+
position: "absolute",
|
|
3247
|
+
top: 0,
|
|
3248
|
+
left: 0,
|
|
3249
|
+
width: "100%",
|
|
3250
|
+
height: "100%",
|
|
3251
|
+
display: "flex",
|
|
3252
|
+
justifyContent: "center",
|
|
3253
|
+
alignItems: "center"
|
|
3254
|
+
},
|
|
3255
|
+
children: /* @__PURE__ */ q(d, { size: 60 })
|
|
3256
|
+
})]
|
|
3257
|
+
}),
|
|
3258
|
+
/* @__PURE__ */ J(m, {
|
|
3259
|
+
sx: {
|
|
3260
|
+
display: "flex",
|
|
3261
|
+
flexDirection: "row",
|
|
3262
|
+
justifyContent: "flex-end",
|
|
3263
|
+
alignItems: "center",
|
|
3264
|
+
width: "100%"
|
|
3265
|
+
},
|
|
3266
|
+
children: [o?.cancelButton && /* @__PURE__ */ q(a, {
|
|
3267
|
+
variant: "outlined",
|
|
3268
|
+
autoFocus: !0,
|
|
3269
|
+
onClick: () => A(s),
|
|
3270
|
+
sx: {
|
|
3271
|
+
minWidth: "130px",
|
|
3272
|
+
borderRadius: "44px",
|
|
3273
|
+
fontWeight: "500",
|
|
3274
|
+
textTransform: "none"
|
|
3275
|
+
},
|
|
3276
|
+
color: "gr-base-dark",
|
|
3277
|
+
children: o.cancelButton?.buttonText
|
|
3278
|
+
}), o?.actionButton && /* @__PURE__ */ q(a, {
|
|
3279
|
+
variant: "contained",
|
|
3280
|
+
onClick: () => {
|
|
3281
|
+
_();
|
|
3282
|
+
},
|
|
3283
|
+
sx: {
|
|
3284
|
+
minWidth: "130px",
|
|
3285
|
+
borderRadius: "44px",
|
|
3286
|
+
color: "white",
|
|
3287
|
+
fontWeight: "500",
|
|
3288
|
+
textTransform: "none"
|
|
3289
|
+
},
|
|
3290
|
+
color: "gr-base-dark",
|
|
3291
|
+
disableElevation: !0,
|
|
3292
|
+
disabled: o.actionButton.disabled,
|
|
3293
|
+
loading: o.actionButton.loading,
|
|
3294
|
+
children: o.actionButton.buttonText
|
|
3295
|
+
})]
|
|
3296
|
+
})
|
|
3297
|
+
]
|
|
3298
|
+
}) });
|
|
12
3299
|
};
|
|
3300
|
+
//#endregion
|
|
3301
|
+
export { bt as Core, $ as CoreContext, xt as CoreProvider, Ut as Form, $e as GoodRabbitDarkTheme, et as GoodRabbitLightTheme, kt as Table, jt as useSystemAlert, At as useTable };
|