rc-lib-ui 1.4.3 → 1.4.5
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/control-cards.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as N from "react";
|
|
2
|
+
import b, { createContext as $n, useContext as hn, useCallback as S, useState as de, useEffect as V, useRef as $, forwardRef as _, createElement as le, cloneElement as zn, useMemo as mn, Component as Wn, useLayoutEffect as jn, memo as gn, isValidElement as Vn } from "react";
|
|
3
3
|
import { u as vn } from "./browser-DJTk47DY.js";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as Fn } from "./react-CLnE01WS.js";
|
|
5
5
|
import { keyframes as fe } from "@mui/material/styles";
|
|
6
|
-
import { jsx as c, jsxs as w, Fragment as
|
|
7
|
-
import { Box as M, styled as P, Card as xn, Typography as j, Button as yn, LinearProgress as
|
|
6
|
+
import { jsx as c, jsxs as w, Fragment as F } from "react/jsx-runtime";
|
|
7
|
+
import { Box as M, styled as P, Card as xn, Typography as j, Button as yn, LinearProgress as Hn, Alert as ce, IconButton as me, keyframes as re, DialogTitle as Se, Divider as we, DialogContent as H, alpha as qn, DialogActions as je, Portal as Bn, Dialog as Xn } from "@mui/material";
|
|
8
8
|
import Ve from "classnames";
|
|
9
9
|
import { createPortal as Un } from "react-dom";
|
|
10
10
|
import { Save as Yn, Close as ge, Delete as Gn, InfoOutlined as Kn, VerifiedUser as Zn, CheckCircle as bn, TaskAlt as Qn } from "@mui/icons-material";
|
|
@@ -14,7 +14,7 @@ import './control-cards.css';const En = $n(void 0), et = () => {
|
|
|
14
14
|
if (!e)
|
|
15
15
|
throw new Error("useInteractiveMessage must be used within an InteractiveMessageProvider");
|
|
16
16
|
return e;
|
|
17
|
-
}, kn = {}, nt = JSON.parse(JSON.stringify(kn)), Z =
|
|
17
|
+
}, kn = {}, nt = JSON.parse(JSON.stringify(kn)), Z = Fn(() => kn), Xe = {
|
|
18
18
|
resetState: () => Z.setState(nt),
|
|
19
19
|
setItems: ({ sectionDel: e, items: n, delPackID: r }) => Z.setState((o) => {
|
|
20
20
|
Array.isArray(o[e]) || (o[e] = []);
|
|
@@ -74,36 +74,36 @@ function ot(e) {
|
|
|
74
74
|
r((p) => p.filter((m) => m !== d));
|
|
75
75
|
}, []), s = S(() => {
|
|
76
76
|
r([]), t(!1);
|
|
77
|
-
}, []),
|
|
77
|
+
}, []), u = S(() => {
|
|
78
78
|
const d = e.map((p) => p.id);
|
|
79
79
|
r(d);
|
|
80
80
|
}, [e]), f = S((d) => n.includes(d), [n]);
|
|
81
|
-
return { selectedIds: n, selectionMode: o, handleSelect: i, handleDeselect: a, clearSelection: s, selectAll:
|
|
81
|
+
return { selectedIds: n, selectionMode: o, handleSelect: i, handleDeselect: a, clearSelection: s, selectAll: u, checkSelected: f };
|
|
82
82
|
}
|
|
83
83
|
const Ur = ({ list: e, keyAction: n, setMessage: r, onExpire: o, durationDelete: t = 5e3, timeoutSuccess: i = 2e3 }) => {
|
|
84
|
-
const { showDeleteModal: a, showAlert: s, showAlertDeleteCountdown:
|
|
84
|
+
const { showDeleteModal: a, showAlert: s, showAlertDeleteCountdown: u } = et(), f = ot(e), d = it({ sectionDel: n });
|
|
85
85
|
return {
|
|
86
86
|
onDelete: S(() => {
|
|
87
87
|
a({
|
|
88
88
|
message: "Вы действительно хотите удалить ?",
|
|
89
89
|
title: "",
|
|
90
90
|
onConfirm: () => {
|
|
91
|
-
const m = f.selectedIds.map((
|
|
92
|
-
const { id:
|
|
93
|
-
return { id:
|
|
91
|
+
const m = f.selectedIds.map((g) => {
|
|
92
|
+
const { id: v, name: h } = e.find((y) => y.id === g);
|
|
93
|
+
return { id: v, name: h };
|
|
94
94
|
});
|
|
95
95
|
f.clearSelection();
|
|
96
96
|
const x = vn();
|
|
97
97
|
d.setItems({ delPackID: x, items: m });
|
|
98
|
-
const
|
|
98
|
+
const l = () => {
|
|
99
99
|
d.removeItems({ delPackID: x });
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
u({
|
|
102
102
|
duration: t,
|
|
103
103
|
message: r(m),
|
|
104
104
|
onExpire: () => {
|
|
105
|
-
o(m),
|
|
106
|
-
|
|
105
|
+
o(m), l(), s({
|
|
106
|
+
variant: "success",
|
|
107
107
|
message: "Успешное удаление",
|
|
108
108
|
timeout: i,
|
|
109
109
|
anchorOrigin: {
|
|
@@ -113,7 +113,7 @@ const Ur = ({ list: e, keyAction: n, setMessage: r, onExpire: o, durationDelete:
|
|
|
113
113
|
});
|
|
114
114
|
},
|
|
115
115
|
onUndo: () => {
|
|
116
|
-
|
|
116
|
+
l();
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
},
|
|
@@ -121,7 +121,7 @@ const Ur = ({ list: e, keyAction: n, setMessage: r, onExpire: o, durationDelete:
|
|
|
121
121
|
console.dir("No");
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
}, [d, t, e, o, f, r, s,
|
|
124
|
+
}, [d, t, e, o, f, r, s, u, a, i]),
|
|
125
125
|
checkIsReadyDelete: d.checkIsReadyDelete,
|
|
126
126
|
...f
|
|
127
127
|
};
|
|
@@ -253,14 +253,14 @@ const Ur = ({ list: e, keyAction: n, setMessage: r, onExpire: o, durationDelete:
|
|
|
253
253
|
scrollThreshold: t = 8
|
|
254
254
|
//чувствительность отрабатывания
|
|
255
255
|
}) => {
|
|
256
|
-
const i = $(), a = $(!1), s = $(!1),
|
|
256
|
+
const i = $(), a = $(!1), s = $(!1), u = $({ x: 0, y: 0 }), f = S((x) => {
|
|
257
257
|
x && o && x.cancelable && x.preventDefault();
|
|
258
258
|
}, []), d = S(
|
|
259
259
|
(x) => {
|
|
260
|
-
f(x), a.current = !1, s.current = !1, "touches" in x ?
|
|
260
|
+
f(x), a.current = !1, s.current = !1, "touches" in x ? u.current = {
|
|
261
261
|
x: x.touches[0].clientX,
|
|
262
262
|
y: x.touches[0].clientY
|
|
263
|
-
} :
|
|
263
|
+
} : u.current = {
|
|
264
264
|
x: x.clientX,
|
|
265
265
|
y: x.clientY
|
|
266
266
|
}, i.current = setTimeout(() => {
|
|
@@ -271,10 +271,10 @@ const Ur = ({ list: e, keyAction: n, setMessage: r, onExpire: o, durationDelete:
|
|
|
271
271
|
), p = S(
|
|
272
272
|
(x) => {
|
|
273
273
|
if (s.current || !i.current) return;
|
|
274
|
-
let
|
|
275
|
-
"touches" in x ? (
|
|
276
|
-
const
|
|
277
|
-
(
|
|
274
|
+
let l, g;
|
|
275
|
+
"touches" in x ? (l = x.touches[0].clientX, g = x.touches[0].clientY) : (l = x.clientX, g = x.clientY);
|
|
276
|
+
const v = Math.abs(l - u.current.x), h = Math.abs(g - u.current.y);
|
|
277
|
+
(v > t || h > t) && (s.current = !0, clearTimeout(i.current));
|
|
278
278
|
},
|
|
279
279
|
[t]
|
|
280
280
|
), m = S(
|
|
@@ -324,7 +324,7 @@ const Ur = ({ list: e, keyAction: n, setMessage: r, onExpire: o, durationDelete:
|
|
|
324
324
|
children: o
|
|
325
325
|
}
|
|
326
326
|
);
|
|
327
|
-
}, Gr =
|
|
327
|
+
}, Gr = b.memo(ft);
|
|
328
328
|
function Cn(e) {
|
|
329
329
|
var n, r, o = "";
|
|
330
330
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
@@ -346,7 +346,7 @@ let pt = { data: "" }, ht = (e) => {
|
|
|
346
346
|
let r = "", o = "", t = "";
|
|
347
347
|
for (let i in e) {
|
|
348
348
|
let a = e[i];
|
|
349
|
-
i[0] == "@" ? i[1] == "i" ? r = i + " " + a + ";" : o += i[1] == "f" ? B(a, i) : i + "{" + B(a, i[1] == "k" ? "" : n) + "}" : typeof a == "object" ? o += B(a, n ? n.replace(/([^,])+/g, (s) => i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (
|
|
349
|
+
i[0] == "@" ? i[1] == "i" ? r = i + " " + a + ";" : o += i[1] == "f" ? B(a, i) : i + "{" + B(a, i[1] == "k" ? "" : n) + "}" : typeof a == "object" ? o += B(a, n ? n.replace(/([^,])+/g, (s) => i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g, (u) => /&/.test(u) ? u.replace(/&/g, s) : s ? s + " " + u : u)) : i) : a != null && (i = /^--/.test(i) ? i : i.replace(/[A-Z]/g, "-$&").toLowerCase(), t += B.p ? B.p(i, a) : i + ":" + a + ";");
|
|
350
350
|
}
|
|
351
351
|
return r + (n && t ? n + "{" + t + "}" : t) + o;
|
|
352
352
|
}, z = {}, Sn = (e) => {
|
|
@@ -357,37 +357,37 @@ let pt = { data: "" }, ht = (e) => {
|
|
|
357
357
|
}
|
|
358
358
|
return e;
|
|
359
359
|
}, vt = (e, n, r, o, t) => {
|
|
360
|
-
let i = Sn(e), a = z[i] || (z[i] = ((
|
|
360
|
+
let i = Sn(e), a = z[i] || (z[i] = ((u) => {
|
|
361
361
|
let f = 0, d = 11;
|
|
362
|
-
for (; f <
|
|
362
|
+
for (; f < u.length; ) d = 101 * d + u.charCodeAt(f++) >>> 0;
|
|
363
363
|
return "go" + d;
|
|
364
364
|
})(i));
|
|
365
365
|
if (!z[a]) {
|
|
366
|
-
let
|
|
366
|
+
let u = i !== e ? e : ((f) => {
|
|
367
367
|
let d, p, m = [{}];
|
|
368
368
|
for (; d = mt.exec(f.replace(gt, "")); ) d[4] ? m.shift() : d[3] ? (p = d[3].replace(Ue, " ").trim(), m.unshift(m[0][p] = m[0][p] || {})) : m[0][d[1]] = d[2].replace(Ue, " ").trim();
|
|
369
369
|
return m[0];
|
|
370
370
|
})(e);
|
|
371
|
-
z[a] = B(t ? { ["@keyframes " + a]:
|
|
371
|
+
z[a] = B(t ? { ["@keyframes " + a]: u } : u, r ? "" : "." + a);
|
|
372
372
|
}
|
|
373
373
|
let s = r && z.g ? z.g : null;
|
|
374
|
-
return r && (z.g = z[a]), ((
|
|
375
|
-
p ? f.data = f.data.replace(p,
|
|
374
|
+
return r && (z.g = z[a]), ((u, f, d, p) => {
|
|
375
|
+
p ? f.data = f.data.replace(p, u) : f.data.indexOf(u) === -1 && (f.data = d ? u + f.data : f.data + u);
|
|
376
376
|
})(z[a], n, o, s), a;
|
|
377
377
|
}, xt = (e, n, r) => e.reduce((o, t, i) => {
|
|
378
378
|
let a = n[i];
|
|
379
379
|
if (a && a.call) {
|
|
380
|
-
let s = a(r),
|
|
381
|
-
a =
|
|
380
|
+
let s = a(r), u = s && s.props && s.props.className || /^go/.test(s) && s;
|
|
381
|
+
a = u ? "." + u : s && typeof s == "object" ? s.props ? "" : B(s, "") : s === !1 ? "" : s;
|
|
382
382
|
}
|
|
383
383
|
return o + t + (a ?? "");
|
|
384
384
|
}, "");
|
|
385
|
-
function
|
|
385
|
+
function Fe(e) {
|
|
386
386
|
let n = this || {}, r = e.call ? e(n.p) : e;
|
|
387
387
|
return vt(r.unshift ? r.raw ? xt(r, [].slice.call(arguments, 1), n.p) : r.reduce((o, t) => Object.assign(o, t && t.call ? t(n.p) : t), {}) : r, ht(n.target), n.g, n.o, n.k);
|
|
388
388
|
}
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
Fe.bind({ g: 1 });
|
|
390
|
+
Fe.bind({ k: 1 });
|
|
391
391
|
function yt(e, n) {
|
|
392
392
|
for (var r = 0; r < n.length; r++) {
|
|
393
393
|
var o = n[r];
|
|
@@ -424,7 +424,7 @@ function Ye(e) {
|
|
|
424
424
|
}
|
|
425
425
|
var Ge = function() {
|
|
426
426
|
return "";
|
|
427
|
-
}, Dn = /* @__PURE__ */
|
|
427
|
+
}, Dn = /* @__PURE__ */ b.createContext({
|
|
428
428
|
enqueueSnackbar: Ge,
|
|
429
429
|
closeSnackbar: Ge
|
|
430
430
|
}), q = {
|
|
@@ -432,7 +432,7 @@ var Ge = function() {
|
|
|
432
432
|
upSm: "@media (min-width:600px)"
|
|
433
433
|
}, Ke = function(n) {
|
|
434
434
|
return n.charAt(0).toUpperCase() + n.slice(1);
|
|
435
|
-
},
|
|
435
|
+
}, He = function(n) {
|
|
436
436
|
return "" + Ke(n.vertical) + Ke(n.horizontal);
|
|
437
437
|
}, ve = function(n) {
|
|
438
438
|
return !!n || n === 0;
|
|
@@ -475,7 +475,7 @@ var Ge = function() {
|
|
|
475
475
|
status: xe
|
|
476
476
|
});
|
|
477
477
|
}, r.performEnter = function(t) {
|
|
478
|
-
var i = this, a = this.props.enter, s = t,
|
|
478
|
+
var i = this, a = this.props.enter, s = t, u = this.getTimeouts();
|
|
479
479
|
if (!t && !a) {
|
|
480
480
|
this.safeSetState({
|
|
481
481
|
status: oe
|
|
@@ -487,7 +487,7 @@ var Ge = function() {
|
|
|
487
487
|
this.props.onEnter && this.props.onEnter(this.node, s), this.safeSetState({
|
|
488
488
|
status: G
|
|
489
489
|
}, function() {
|
|
490
|
-
i.props.onEntering && i.props.onEntering(i.node, s), i.onTransitionEnd(
|
|
490
|
+
i.props.onEntering && i.props.onEntering(i.node, s), i.onTransitionEnd(u.enter, function() {
|
|
491
491
|
i.safeSetState({
|
|
492
492
|
status: oe
|
|
493
493
|
}, function() {
|
|
@@ -550,7 +550,7 @@ var Ge = function() {
|
|
|
550
550
|
return i;
|
|
551
551
|
}
|
|
552
552
|
}]), n;
|
|
553
|
-
}(
|
|
553
|
+
}(b.Component);
|
|
554
554
|
function K() {
|
|
555
555
|
}
|
|
556
556
|
ie.defaultProps = {
|
|
@@ -602,9 +602,9 @@ var ze = {
|
|
|
602
602
|
};
|
|
603
603
|
function J(e, n) {
|
|
604
604
|
e === void 0 && (e = ["all"]);
|
|
605
|
-
var r = n || {}, o = r.duration, t = o === void 0 ? 300 : o, i = r.easing, a = i === void 0 ? ze.easeInOut : i, s = r.delay,
|
|
605
|
+
var r = n || {}, o = r.duration, t = o === void 0 ? 300 : o, i = r.easing, a = i === void 0 ? ze.easeInOut : i, s = r.delay, u = s === void 0 ? 0 : s, f = Array.isArray(e) ? e : [e];
|
|
606
606
|
return f.map(function(d) {
|
|
607
|
-
var p = typeof t == "string" ? t : Je(t), m = typeof
|
|
607
|
+
var p = typeof t == "string" ? t : Je(t), m = typeof u == "string" ? u : Je(u);
|
|
608
608
|
return d + " " + p + " " + a + " " + m;
|
|
609
609
|
}).join(",");
|
|
610
610
|
}
|
|
@@ -621,10 +621,10 @@ function Et(e, n) {
|
|
|
621
621
|
function o() {
|
|
622
622
|
for (var t = this, i = arguments.length, a = new Array(i), s = 0; s < i; s++)
|
|
623
623
|
a[s] = arguments[s];
|
|
624
|
-
var
|
|
624
|
+
var u = function() {
|
|
625
625
|
e.apply(t, a);
|
|
626
626
|
};
|
|
627
|
-
clearTimeout(r), r = setTimeout(
|
|
627
|
+
clearTimeout(r), r = setTimeout(u, n);
|
|
628
628
|
}
|
|
629
629
|
return o.clear = function() {
|
|
630
630
|
clearTimeout(r);
|
|
@@ -640,8 +640,8 @@ function kt(e, n) {
|
|
|
640
640
|
}
|
|
641
641
|
var a = 0, s = 0;
|
|
642
642
|
if (t && t !== "none" && typeof t == "string") {
|
|
643
|
-
var
|
|
644
|
-
a = parseInt(
|
|
643
|
+
var u = t.split("(")[1].split(")")[0].split(",");
|
|
644
|
+
a = parseInt(u[4], 10), s = parseInt(u[5], 10);
|
|
645
645
|
}
|
|
646
646
|
switch (e) {
|
|
647
647
|
case "left":
|
|
@@ -661,36 +661,36 @@ function ye(e, n) {
|
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
var Pn = /* @__PURE__ */ _(function(e, n) {
|
|
664
|
-
var r = e.children, o = e.direction, t = o === void 0 ? "down" : o, i = e.in, a = e.style, s = e.timeout,
|
|
665
|
-
ye(t, C), In(C), f && f(C,
|
|
666
|
-
},
|
|
667
|
-
var
|
|
668
|
-
timeout:
|
|
664
|
+
var r = e.children, o = e.direction, t = o === void 0 ? "down" : o, i = e.in, a = e.style, s = e.timeout, u = s === void 0 ? 0 : s, f = e.onEnter, d = e.onEntered, p = e.onExit, m = e.onExited, x = pe(e, ["children", "direction", "in", "style", "timeout", "onEnter", "onEntered", "onExit", "onExited"]), l = $(null), g = $e(r.ref, l), v = $e(g, n), h = function(C, A) {
|
|
665
|
+
ye(t, C), In(C), f && f(C, A);
|
|
666
|
+
}, y = function(C) {
|
|
667
|
+
var A = (a == null ? void 0 : a.transitionTimingFunction) || ze.easeOut, L = Ce({
|
|
668
|
+
timeout: u,
|
|
669
669
|
mode: "enter",
|
|
670
670
|
style: k({}, a, {
|
|
671
|
-
transitionTimingFunction:
|
|
671
|
+
transitionTimingFunction: A
|
|
672
672
|
})
|
|
673
673
|
});
|
|
674
674
|
C.style.webkitTransition = J("-webkit-transform", L), C.style.transition = J("transform", L), C.style.webkitTransform = "none", C.style.transform = "none";
|
|
675
675
|
}, E = function(C) {
|
|
676
|
-
var
|
|
677
|
-
timeout:
|
|
676
|
+
var A = (a == null ? void 0 : a.transitionTimingFunction) || ze.sharp, L = Ce({
|
|
677
|
+
timeout: u,
|
|
678
678
|
mode: "exit",
|
|
679
679
|
style: k({}, a, {
|
|
680
|
-
transitionTimingFunction:
|
|
680
|
+
transitionTimingFunction: A
|
|
681
681
|
})
|
|
682
682
|
});
|
|
683
683
|
C.style.webkitTransition = J("-webkit-transform", L), C.style.transition = J("transform", L), ye(t, C), p && p(C);
|
|
684
684
|
}, I = function(C) {
|
|
685
685
|
C.style.webkitTransition = "", C.style.transition = "", m && m(C);
|
|
686
686
|
}, D = S(function() {
|
|
687
|
-
|
|
687
|
+
l.current && ye(t, l.current);
|
|
688
688
|
}, [t]);
|
|
689
689
|
return V(function() {
|
|
690
690
|
if (!(i || t === "down" || t === "right")) {
|
|
691
691
|
var O = Et(function() {
|
|
692
|
-
|
|
693
|
-
}), C = Tn(
|
|
692
|
+
l.current && ye(t, l.current);
|
|
693
|
+
}), C = Tn(l.current);
|
|
694
694
|
return C.addEventListener("resize", O), function() {
|
|
695
695
|
O.clear(), C.removeEventListener("resize", O);
|
|
696
696
|
};
|
|
@@ -699,17 +699,17 @@ var Pn = /* @__PURE__ */ _(function(e, n) {
|
|
|
699
699
|
i || D();
|
|
700
700
|
}, [i, D]), le(ie, Object.assign({
|
|
701
701
|
appear: !0,
|
|
702
|
-
nodeRef:
|
|
702
|
+
nodeRef: l,
|
|
703
703
|
onEnter: h,
|
|
704
704
|
onEntered: d,
|
|
705
|
-
onEntering:
|
|
705
|
+
onEntering: y,
|
|
706
706
|
onExit: E,
|
|
707
707
|
onExited: I,
|
|
708
708
|
in: i,
|
|
709
|
-
timeout:
|
|
709
|
+
timeout: u
|
|
710
710
|
}, x), function(O, C) {
|
|
711
711
|
return zn(r, k({
|
|
712
|
-
ref:
|
|
712
|
+
ref: v,
|
|
713
713
|
style: k({
|
|
714
714
|
visibility: O === "exited" && !i ? "hidden" : void 0
|
|
715
715
|
}, a, {}, r.props.style)
|
|
@@ -718,7 +718,7 @@ var Pn = /* @__PURE__ */ _(function(e, n) {
|
|
|
718
718
|
});
|
|
719
719
|
Pn.displayName = "Slide";
|
|
720
720
|
var Me = function(n) {
|
|
721
|
-
return
|
|
721
|
+
return b.createElement("svg", Object.assign({
|
|
722
722
|
viewBox: "0 0 24 24",
|
|
723
723
|
focusable: "false",
|
|
724
724
|
style: {
|
|
@@ -733,31 +733,31 @@ var Me = function(n) {
|
|
|
733
733
|
}
|
|
734
734
|
}, n));
|
|
735
735
|
}, Ct = function() {
|
|
736
|
-
return
|
|
736
|
+
return b.createElement(Me, null, b.createElement("path", {
|
|
737
737
|
d: `M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
|
|
738
738
|
10.59L10 14.17L17.59 6.58L19 8L10 17Z`
|
|
739
739
|
}));
|
|
740
740
|
}, St = function() {
|
|
741
|
-
return
|
|
741
|
+
return b.createElement(Me, null, b.createElement("path", {
|
|
742
742
|
d: "M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"
|
|
743
743
|
}));
|
|
744
744
|
}, wt = function() {
|
|
745
|
-
return
|
|
745
|
+
return b.createElement(Me, null, b.createElement("path", {
|
|
746
746
|
d: `M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
|
|
747
747
|
6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
|
|
748
748
|
13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`
|
|
749
749
|
}));
|
|
750
750
|
}, Mt = function() {
|
|
751
|
-
return
|
|
751
|
+
return b.createElement(Me, null, b.createElement("path", {
|
|
752
752
|
d: `M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
|
|
753
753
|
0 22,12A10,10 0 0,0 12,2Z`
|
|
754
754
|
}));
|
|
755
755
|
}, Dt = {
|
|
756
756
|
default: void 0,
|
|
757
|
-
success: /* @__PURE__ */
|
|
758
|
-
warning: /* @__PURE__ */
|
|
759
|
-
error: /* @__PURE__ */
|
|
760
|
-
info: /* @__PURE__ */
|
|
757
|
+
success: /* @__PURE__ */ b.createElement(Ct, null),
|
|
758
|
+
warning: /* @__PURE__ */ b.createElement(St, null),
|
|
759
|
+
error: /* @__PURE__ */ b.createElement(wt, null),
|
|
760
|
+
info: /* @__PURE__ */ b.createElement(Mt, null)
|
|
761
761
|
}, X = {
|
|
762
762
|
maxSnack: 3,
|
|
763
763
|
persist: !1,
|
|
@@ -795,7 +795,7 @@ var Me = function(n) {
|
|
|
795
795
|
function he(e) {
|
|
796
796
|
return Object.entries(e).reduce(function(n, r) {
|
|
797
797
|
var o, t = r[0], i = r[1];
|
|
798
|
-
return k({}, n, (o = {}, o[t] =
|
|
798
|
+
return k({}, n, (o = {}, o[t] = Fe(i), o));
|
|
799
799
|
}, {});
|
|
800
800
|
}
|
|
801
801
|
var ee = {
|
|
@@ -813,28 +813,28 @@ var ee = {
|
|
|
813
813
|
entered: {
|
|
814
814
|
height: "auto"
|
|
815
815
|
}
|
|
816
|
-
}), Oe = "0px",
|
|
817
|
-
var r = e.children, o = e.in, t = e.onExited, i = $(null), a = $(null), s = $e(n, a),
|
|
816
|
+
}), Oe = "0px", Ne = 175, On = /* @__PURE__ */ _(function(e, n) {
|
|
817
|
+
var r = e.children, o = e.in, t = e.onExited, i = $(null), a = $(null), s = $e(n, a), u = function() {
|
|
818
818
|
return i.current ? i.current.clientHeight : 0;
|
|
819
|
-
}, f = function(
|
|
820
|
-
|
|
821
|
-
}, d = function(
|
|
822
|
-
var
|
|
823
|
-
timeout:
|
|
819
|
+
}, f = function(g) {
|
|
820
|
+
g.style.height = Oe;
|
|
821
|
+
}, d = function(g) {
|
|
822
|
+
var v = u(), h = Ce({
|
|
823
|
+
timeout: Ne,
|
|
824
824
|
mode: "enter"
|
|
825
|
-
}),
|
|
826
|
-
|
|
827
|
-
}, p = function(
|
|
828
|
-
|
|
829
|
-
}, m = function(
|
|
830
|
-
|
|
831
|
-
}, x = function(
|
|
832
|
-
In(
|
|
833
|
-
var
|
|
834
|
-
timeout:
|
|
825
|
+
}), y = h.duration, E = h.easing;
|
|
826
|
+
g.style.transitionDuration = typeof y == "string" ? y : y + "ms", g.style.height = v + "px", g.style.transitionTimingFunction = E || "";
|
|
827
|
+
}, p = function(g) {
|
|
828
|
+
g.style.height = "auto";
|
|
829
|
+
}, m = function(g) {
|
|
830
|
+
g.style.height = u() + "px";
|
|
831
|
+
}, x = function(g) {
|
|
832
|
+
In(g);
|
|
833
|
+
var v = Ce({
|
|
834
|
+
timeout: Ne,
|
|
835
835
|
mode: "exit"
|
|
836
|
-
}), h =
|
|
837
|
-
|
|
836
|
+
}), h = v.duration, y = v.easing;
|
|
837
|
+
g.style.transitionDuration = typeof h == "string" ? h : h + "ms", g.style.height = Oe, g.style.transitionTimingFunction = y || "";
|
|
838
838
|
};
|
|
839
839
|
return le(ie, {
|
|
840
840
|
in: o,
|
|
@@ -846,22 +846,22 @@ var ee = {
|
|
|
846
846
|
onExited: t,
|
|
847
847
|
onExiting: x,
|
|
848
848
|
nodeRef: a,
|
|
849
|
-
timeout:
|
|
850
|
-
}, function(
|
|
849
|
+
timeout: Ne
|
|
850
|
+
}, function(l, g) {
|
|
851
851
|
return le("div", Object.assign({
|
|
852
852
|
ref: s,
|
|
853
|
-
className: U(en.root,
|
|
853
|
+
className: U(en.root, l === "entered" && en.entered),
|
|
854
854
|
style: k({
|
|
855
855
|
pointerEvents: "all",
|
|
856
856
|
overflow: "hidden",
|
|
857
857
|
minHeight: Oe,
|
|
858
858
|
transition: J("height")
|
|
859
|
-
},
|
|
859
|
+
}, l === "entered" && {
|
|
860
860
|
overflow: "visible"
|
|
861
|
-
}, {},
|
|
861
|
+
}, {}, l === "exited" && !o && {
|
|
862
862
|
visibility: "hidden"
|
|
863
863
|
})
|
|
864
|
-
},
|
|
864
|
+
}, g), le("div", {
|
|
865
865
|
ref: i,
|
|
866
866
|
className: ee.CollapseWrapper,
|
|
867
867
|
// Hack to get children with a negative margin to not falsify the height computation.
|
|
@@ -880,9 +880,9 @@ var nn = {
|
|
|
880
880
|
top: "down"
|
|
881
881
|
}, Ot = function(n) {
|
|
882
882
|
return n.horizontal !== "center" ? nn[n.horizontal] : nn[n.vertical];
|
|
883
|
+
}, Nt = function(n) {
|
|
884
|
+
return "anchorOrigin" + He(n);
|
|
883
885
|
}, Rt = function(n) {
|
|
884
|
-
return "anchorOrigin" + Fe(n);
|
|
885
|
-
}, At = function(n) {
|
|
886
886
|
n === void 0 && (n = {});
|
|
887
887
|
var r = {
|
|
888
888
|
containerRoot: !0,
|
|
@@ -899,17 +899,17 @@ var nn = {
|
|
|
899
899
|
var i;
|
|
900
900
|
return k({}, o, (i = {}, i[t] = n[t], i));
|
|
901
901
|
}, {});
|
|
902
|
-
},
|
|
902
|
+
}, At = function() {
|
|
903
903
|
};
|
|
904
904
|
function ue(e, n) {
|
|
905
905
|
return e.reduce(function(r, o) {
|
|
906
906
|
return o == null ? r : function() {
|
|
907
907
|
for (var i = arguments.length, a = new Array(i), s = 0; s < i; s++)
|
|
908
908
|
a[s] = arguments[s];
|
|
909
|
-
var
|
|
910
|
-
n &&
|
|
909
|
+
var u = [].concat(a);
|
|
910
|
+
n && u.indexOf(n) === -1 && u.push(n), r.apply(this, u), o.apply(this, u);
|
|
911
911
|
};
|
|
912
|
-
},
|
|
912
|
+
}, At);
|
|
913
913
|
}
|
|
914
914
|
var Lt = typeof window < "u" ? jn : V;
|
|
915
915
|
function tn(e) {
|
|
@@ -923,54 +923,54 @@ function tn(e) {
|
|
|
923
923
|
);
|
|
924
924
|
}, []);
|
|
925
925
|
}
|
|
926
|
-
var
|
|
927
|
-
var r = e.children, o = e.className, t = e.autoHideDuration, i = e.disableWindowBlurListener, a = i === void 0 ? !1 : i, s = e.onClose,
|
|
926
|
+
var Nn = /* @__PURE__ */ _(function(e, n) {
|
|
927
|
+
var r = e.children, o = e.className, t = e.autoHideDuration, i = e.disableWindowBlurListener, a = i === void 0 ? !1 : i, s = e.onClose, u = e.id, f = e.open, d = e.SnackbarProps, p = d === void 0 ? {} : d, m = $(), x = tn(function() {
|
|
928
928
|
s && s.apply(void 0, arguments);
|
|
929
|
-
}),
|
|
929
|
+
}), l = tn(function(E) {
|
|
930
930
|
!s || E == null || (m.current && clearTimeout(m.current), m.current = setTimeout(function() {
|
|
931
|
-
x(null, "timeout",
|
|
931
|
+
x(null, "timeout", u);
|
|
932
932
|
}, E));
|
|
933
933
|
});
|
|
934
934
|
V(function() {
|
|
935
|
-
return f &&
|
|
935
|
+
return f && l(t), function() {
|
|
936
936
|
m.current && clearTimeout(m.current);
|
|
937
937
|
};
|
|
938
|
-
}, [f, t,
|
|
939
|
-
var
|
|
938
|
+
}, [f, t, l]);
|
|
939
|
+
var g = function() {
|
|
940
940
|
m.current && clearTimeout(m.current);
|
|
941
|
-
},
|
|
942
|
-
t != null &&
|
|
943
|
-
}, [t,
|
|
944
|
-
p.onMouseEnter && p.onMouseEnter(I),
|
|
945
|
-
},
|
|
946
|
-
p.onMouseLeave && p.onMouseLeave(I),
|
|
941
|
+
}, v = S(function() {
|
|
942
|
+
t != null && l(t * 0.5);
|
|
943
|
+
}, [t, l]), h = function(I) {
|
|
944
|
+
p.onMouseEnter && p.onMouseEnter(I), g();
|
|
945
|
+
}, y = function(I) {
|
|
946
|
+
p.onMouseLeave && p.onMouseLeave(I), v();
|
|
947
947
|
};
|
|
948
948
|
return V(function() {
|
|
949
949
|
if (!a && f)
|
|
950
|
-
return window.addEventListener("focus",
|
|
951
|
-
window.removeEventListener("focus",
|
|
950
|
+
return window.addEventListener("focus", v), window.addEventListener("blur", g), function() {
|
|
951
|
+
window.removeEventListener("focus", v), window.removeEventListener("blur", g);
|
|
952
952
|
};
|
|
953
|
-
}, [a,
|
|
953
|
+
}, [a, v, f]), le("div", Object.assign({
|
|
954
954
|
ref: n
|
|
955
955
|
}, p, {
|
|
956
956
|
className: U(ee.Snackbar, o),
|
|
957
957
|
onMouseEnter: h,
|
|
958
|
-
onMouseLeave:
|
|
958
|
+
onMouseLeave: y
|
|
959
959
|
}), r);
|
|
960
960
|
});
|
|
961
|
-
|
|
962
|
-
var
|
|
963
|
-
root: (
|
|
961
|
+
Nn.displayName = "Snackbar";
|
|
962
|
+
var Re, _t = /* @__PURE__ */ he({
|
|
963
|
+
root: (Re = {
|
|
964
964
|
display: "flex",
|
|
965
965
|
flexWrap: "wrap",
|
|
966
966
|
flexGrow: 1
|
|
967
|
-
},
|
|
967
|
+
}, Re[q.upSm] = {
|
|
968
968
|
flexGrow: "initial",
|
|
969
969
|
minWidth: "288px"
|
|
970
|
-
},
|
|
970
|
+
}, Re)
|
|
971
971
|
}), qe = /* @__PURE__ */ _(function(e, n) {
|
|
972
972
|
var r = e.className, o = pe(e, ["className"]);
|
|
973
|
-
return
|
|
973
|
+
return b.createElement("div", Object.assign({
|
|
974
974
|
ref: n,
|
|
975
975
|
className: U(_t.root, r)
|
|
976
976
|
}, o));
|
|
@@ -1018,23 +1018,23 @@ var ae = /* @__PURE__ */ he({
|
|
|
1018
1018
|
paddingLeft: "16px",
|
|
1019
1019
|
marginRight: "-8px"
|
|
1020
1020
|
}
|
|
1021
|
-
}), rn = "notistack-snackbar",
|
|
1022
|
-
var r = e.id, o = e.message, t = e.action, i = e.iconVariant, a = e.variant, s = e.hideIconVariant,
|
|
1023
|
-
return typeof p == "function" && (p = p(r)),
|
|
1021
|
+
}), rn = "notistack-snackbar", Rn = /* @__PURE__ */ _(function(e, n) {
|
|
1022
|
+
var r = e.id, o = e.message, t = e.action, i = e.iconVariant, a = e.variant, s = e.hideIconVariant, u = e.style, f = e.className, d = i[a], p = t;
|
|
1023
|
+
return typeof p == "function" && (p = p(r)), b.createElement(qe, {
|
|
1024
1024
|
ref: n,
|
|
1025
1025
|
role: "alert",
|
|
1026
1026
|
"aria-describedby": rn,
|
|
1027
|
-
style:
|
|
1027
|
+
style: u,
|
|
1028
1028
|
className: U(ee.MuiContent, ee.MuiContentVariant(a), ae.root, ae[a], f, !s && d && ae.lessPadding)
|
|
1029
|
-
},
|
|
1029
|
+
}, b.createElement("div", {
|
|
1030
1030
|
id: rn,
|
|
1031
1031
|
className: ae.message
|
|
1032
|
-
}, s ? null : d, o), p &&
|
|
1032
|
+
}, s ? null : d, o), p && b.createElement("div", {
|
|
1033
1033
|
className: ae.action
|
|
1034
1034
|
}, p));
|
|
1035
1035
|
});
|
|
1036
|
-
|
|
1037
|
-
var $t = /* @__PURE__ */ gn(
|
|
1036
|
+
Rn.displayName = "MaterialDesignContent";
|
|
1037
|
+
var $t = /* @__PURE__ */ gn(Rn), zt = /* @__PURE__ */ he({
|
|
1038
1038
|
wrappedRoot: {
|
|
1039
1039
|
width: "100%",
|
|
1040
1040
|
position: "relative",
|
|
@@ -1048,7 +1048,7 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1048
1048
|
}), Wt = function(n) {
|
|
1049
1049
|
var r = $(), o = de(!0), t = o[0], i = o[1], a = ue([n.snack.onClose, n.onClose]), s = function() {
|
|
1050
1050
|
n.snack.requestClose && a(null, "instructed", n.snack.id);
|
|
1051
|
-
},
|
|
1051
|
+
}, u = S(function() {
|
|
1052
1052
|
r.current = setTimeout(function() {
|
|
1053
1053
|
i(function(L) {
|
|
1054
1054
|
return !L;
|
|
@@ -1061,38 +1061,38 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1061
1061
|
};
|
|
1062
1062
|
}, []);
|
|
1063
1063
|
var f = n.snack, d = n.classes, p = n.Component, m = p === void 0 ? $t : p, x = mn(function() {
|
|
1064
|
-
return
|
|
1065
|
-
}, [d]),
|
|
1064
|
+
return Rt(d);
|
|
1065
|
+
}, [d]), l = f.open, g = f.SnackbarProps, v = f.TransitionComponent, h = f.TransitionProps, y = f.transitionDuration, E = f.disableWindowBlurListener, I = f.content, D = pe(f, ["open", "SnackbarProps", "TransitionComponent", "TransitionProps", "transitionDuration", "disableWindowBlurListener", "content", "entered", "requestClose", "onEnter", "onEntered", "onExit", "onExited"]), O = k({
|
|
1066
1066
|
direction: Ot(D.anchorOrigin),
|
|
1067
|
-
timeout:
|
|
1067
|
+
timeout: y
|
|
1068
1068
|
}, h), C = I;
|
|
1069
1069
|
typeof C == "function" && (C = C(D.id, D.message));
|
|
1070
|
-
var
|
|
1070
|
+
var A = ["onEnter", "onEntered", "onExit", "onExited"].reduce(function(L, Te) {
|
|
1071
1071
|
var Pe;
|
|
1072
1072
|
return k({}, L, (Pe = {}, Pe[Te] = ue([n.snack[Te], n[Te]], D.id), Pe));
|
|
1073
1073
|
}, {});
|
|
1074
|
-
return
|
|
1074
|
+
return b.createElement(On, {
|
|
1075
1075
|
in: t,
|
|
1076
|
-
onExited:
|
|
1077
|
-
},
|
|
1078
|
-
open:
|
|
1076
|
+
onExited: A.onExited
|
|
1077
|
+
}, b.createElement(Nn, {
|
|
1078
|
+
open: l,
|
|
1079
1079
|
id: D.id,
|
|
1080
1080
|
disableWindowBlurListener: E,
|
|
1081
1081
|
autoHideDuration: D.autoHideDuration,
|
|
1082
|
-
className: U(zt.wrappedRoot, x.root, x[
|
|
1083
|
-
SnackbarProps:
|
|
1082
|
+
className: U(zt.wrappedRoot, x.root, x[Nt(D.anchorOrigin)]),
|
|
1083
|
+
SnackbarProps: g,
|
|
1084
1084
|
onClose: a
|
|
1085
|
-
},
|
|
1085
|
+
}, b.createElement(v, Object.assign({}, O, {
|
|
1086
1086
|
appear: !0,
|
|
1087
|
-
in:
|
|
1088
|
-
onExit:
|
|
1089
|
-
onExited:
|
|
1090
|
-
onEnter:
|
|
1087
|
+
in: l,
|
|
1088
|
+
onExit: A.onExit,
|
|
1089
|
+
onExited: u,
|
|
1090
|
+
onEnter: A.onEnter,
|
|
1091
1091
|
// order matters. first callbacks.onEntered to set entered: true,
|
|
1092
1092
|
// then handleEntered to check if there's a request for closing
|
|
1093
|
-
onEntered: ue([
|
|
1094
|
-
}), C ||
|
|
1095
|
-
}, se,
|
|
1093
|
+
onEntered: ue([A.onEntered, s], D.id)
|
|
1094
|
+
}), C || b.createElement(m, Object.assign({}, D)))));
|
|
1095
|
+
}, se, Ae, be, Ee, Le, W = {
|
|
1096
1096
|
view: {
|
|
1097
1097
|
default: 20,
|
|
1098
1098
|
dense: 4
|
|
@@ -1124,9 +1124,9 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1124
1124
|
width: "100%",
|
|
1125
1125
|
maxWidth: "calc(100% - " + _e * 2 + "px)"
|
|
1126
1126
|
}, se),
|
|
1127
|
-
rootDense: (
|
|
1127
|
+
rootDense: (Ae = {}, Ae[on] = {
|
|
1128
1128
|
padding: W.snackbar.dense + "px 0px"
|
|
1129
|
-
},
|
|
1129
|
+
}, Ae),
|
|
1130
1130
|
top: {
|
|
1131
1131
|
top: W.view.default - W.snackbar.default + "px",
|
|
1132
1132
|
flexDirection: "column"
|
|
@@ -1163,17 +1163,17 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1163
1163
|
ke.root,
|
|
1164
1164
|
// root should come after others to override maxWidth
|
|
1165
1165
|
o.containerRoot,
|
|
1166
|
-
o["containerAnchorOrigin" +
|
|
1166
|
+
o["containerAnchorOrigin" + He(t)],
|
|
1167
1167
|
i && ke.rootDense
|
|
1168
1168
|
);
|
|
1169
|
-
return
|
|
1169
|
+
return b.createElement("div", {
|
|
1170
1170
|
className: s
|
|
1171
1171
|
}, a);
|
|
1172
|
-
}, Vt = /* @__PURE__ */ gn(jt),
|
|
1172
|
+
}, Vt = /* @__PURE__ */ gn(jt), Ft = process.env.NODE_ENV !== "production", Ht = {
|
|
1173
1173
|
NO_PERSIST_ALL: "Reached maxSnack while all enqueued snackbars have 'persist' flag. Notistack will dismiss the oldest snackbar anyway to allow other ones in the queue to be presented."
|
|
1174
1174
|
}, qt = function(e) {
|
|
1175
|
-
if (
|
|
1176
|
-
var n =
|
|
1175
|
+
if (Ft) {
|
|
1176
|
+
var n = Ht[e];
|
|
1177
1177
|
typeof console < "u" && console.error("WARNING - notistack: " + n);
|
|
1178
1178
|
try {
|
|
1179
1179
|
throw new Error(n);
|
|
@@ -1190,39 +1190,39 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1190
1190
|
return t = e.call(this, o) || this, t.enqueueSnackbar = function(i, a) {
|
|
1191
1191
|
if (a === void 0 && (a = {}), i == null)
|
|
1192
1192
|
throw new Error("enqueueSnackbar called with invalid argument");
|
|
1193
|
-
var s = an(i) ? i : a,
|
|
1193
|
+
var s = an(i) ? i : a, u = an(i) ? i.message : i, f = s.key, d = s.preventDuplicate, p = pe(s, ["key", "preventDuplicate"]), m = ve(f), x = m ? f : (/* @__PURE__ */ new Date()).getTime() + Math.random(), l = Pt(p, t.props), g = k({
|
|
1194
1194
|
id: x
|
|
1195
1195
|
}, p, {
|
|
1196
|
-
message:
|
|
1196
|
+
message: u,
|
|
1197
1197
|
open: !0,
|
|
1198
1198
|
entered: !1,
|
|
1199
1199
|
requestClose: !1,
|
|
1200
|
-
persist:
|
|
1201
|
-
action:
|
|
1202
|
-
content:
|
|
1203
|
-
variant:
|
|
1204
|
-
anchorOrigin:
|
|
1205
|
-
disableWindowBlurListener:
|
|
1206
|
-
autoHideDuration:
|
|
1207
|
-
hideIconVariant:
|
|
1208
|
-
TransitionComponent:
|
|
1209
|
-
transitionDuration:
|
|
1210
|
-
TransitionProps:
|
|
1211
|
-
iconVariant:
|
|
1212
|
-
style:
|
|
1213
|
-
SnackbarProps:
|
|
1200
|
+
persist: l("persist"),
|
|
1201
|
+
action: l("action"),
|
|
1202
|
+
content: l("content"),
|
|
1203
|
+
variant: l("variant"),
|
|
1204
|
+
anchorOrigin: l("anchorOrigin"),
|
|
1205
|
+
disableWindowBlurListener: l("disableWindowBlurListener"),
|
|
1206
|
+
autoHideDuration: l("autoHideDuration"),
|
|
1207
|
+
hideIconVariant: l("hideIconVariant"),
|
|
1208
|
+
TransitionComponent: l("TransitionComponent"),
|
|
1209
|
+
transitionDuration: l("transitionDuration"),
|
|
1210
|
+
TransitionProps: l("TransitionProps", !0),
|
|
1211
|
+
iconVariant: l("iconVariant", !0),
|
|
1212
|
+
style: l("style", !0),
|
|
1213
|
+
SnackbarProps: l("SnackbarProps", !0),
|
|
1214
1214
|
className: U(t.props.className, p.className)
|
|
1215
1215
|
});
|
|
1216
|
-
return
|
|
1216
|
+
return g.persist && (g.autoHideDuration = void 0), t.setState(function(v) {
|
|
1217
1217
|
if (d === void 0 && t.props.preventDuplicate || d) {
|
|
1218
1218
|
var h = function(D) {
|
|
1219
|
-
return m ? D.id === x : D.message ===
|
|
1220
|
-
},
|
|
1221
|
-
if (
|
|
1222
|
-
return
|
|
1219
|
+
return m ? D.id === x : D.message === u;
|
|
1220
|
+
}, y = v.queue.findIndex(h) > -1, E = v.snacks.findIndex(h) > -1;
|
|
1221
|
+
if (y || E)
|
|
1222
|
+
return v;
|
|
1223
1223
|
}
|
|
1224
|
-
return t.handleDisplaySnack(k({},
|
|
1225
|
-
queue: [].concat(
|
|
1224
|
+
return t.handleDisplaySnack(k({}, v, {
|
|
1225
|
+
queue: [].concat(v.queue, [g])
|
|
1226
1226
|
}));
|
|
1227
1227
|
}), x;
|
|
1228
1228
|
}, t.handleDisplaySnack = function(i) {
|
|
@@ -1239,10 +1239,10 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1239
1239
|
return !d.open || d.requestClose;
|
|
1240
1240
|
}))
|
|
1241
1241
|
return i;
|
|
1242
|
-
var a = !1, s = !1,
|
|
1242
|
+
var a = !1, s = !1, u = i.snacks.reduce(function(d, p) {
|
|
1243
1243
|
return d + (p.open && p.persist ? 1 : 0);
|
|
1244
1244
|
}, 0);
|
|
1245
|
-
|
|
1245
|
+
u === t.maxSnack && (process.env.NODE_ENV !== "production" && qt("NO_PERSIST_ALL"), s = !0);
|
|
1246
1246
|
var f = i.snacks.map(function(d) {
|
|
1247
1247
|
return !a && (!d.persist || s) ? (a = !0, d.entered ? (d.onClose && d.onClose(null, "maxsnack", d.id), t.props.onClose && t.props.onClose(null, "maxsnack", d.id), k({}, d, {
|
|
1248
1248
|
open: !1
|
|
@@ -1256,8 +1256,8 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1256
1256
|
}, t.handleEnteredSnack = function(i, a, s) {
|
|
1257
1257
|
if (!ve(s))
|
|
1258
1258
|
throw new Error("handleEnteredSnack Cannot be called with undefined key");
|
|
1259
|
-
t.setState(function(
|
|
1260
|
-
var f =
|
|
1259
|
+
t.setState(function(u) {
|
|
1260
|
+
var f = u.snacks;
|
|
1261
1261
|
return {
|
|
1262
1262
|
snacks: f.map(function(d) {
|
|
1263
1263
|
return d.id === s ? k({}, d, {
|
|
@@ -1268,12 +1268,12 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1268
1268
|
});
|
|
1269
1269
|
}, t.handleCloseSnack = function(i, a, s) {
|
|
1270
1270
|
t.props.onClose && t.props.onClose(i, a, s);
|
|
1271
|
-
var
|
|
1271
|
+
var u = s === void 0;
|
|
1272
1272
|
t.setState(function(f) {
|
|
1273
1273
|
var d = f.snacks, p = f.queue;
|
|
1274
1274
|
return {
|
|
1275
1275
|
snacks: d.map(function(m) {
|
|
1276
|
-
return !
|
|
1276
|
+
return !u && m.id !== s ? k({}, m) : m.entered ? k({}, m, {
|
|
1277
1277
|
open: !1
|
|
1278
1278
|
}) : k({}, m, {
|
|
1279
1279
|
requestClose: !0
|
|
@@ -1293,12 +1293,12 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1293
1293
|
if (!ve(a))
|
|
1294
1294
|
throw new Error("handleExitedSnack Cannot be called with undefined key");
|
|
1295
1295
|
t.setState(function(s) {
|
|
1296
|
-
var
|
|
1296
|
+
var u = t.processQueue(k({}, s, {
|
|
1297
1297
|
snacks: s.snacks.filter(function(f) {
|
|
1298
1298
|
return f.id !== a;
|
|
1299
1299
|
})
|
|
1300
1300
|
}));
|
|
1301
|
-
return
|
|
1301
|
+
return u.queue.length === 0 ? u : t.handleDismissOldest(u);
|
|
1302
1302
|
});
|
|
1303
1303
|
}, t.enqueueSnackbar, t.closeSnackbar, t.state = {
|
|
1304
1304
|
snacks: [],
|
|
@@ -1311,18 +1311,18 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1311
1311
|
}
|
|
1312
1312
|
var r = n.prototype;
|
|
1313
1313
|
return r.render = function() {
|
|
1314
|
-
var t = this, i = this.state.contextValue, a = this.props, s = a.domRoot,
|
|
1315
|
-
var
|
|
1316
|
-
return k({},
|
|
1317
|
-
}, {}),
|
|
1318
|
-
var h =
|
|
1319
|
-
return
|
|
1320
|
-
key:
|
|
1314
|
+
var t = this, i = this.state.contextValue, a = this.props, s = a.domRoot, u = a.children, f = a.dense, d = f === void 0 ? !1 : f, p = a.Components, m = p === void 0 ? {} : p, x = a.classes, l = this.state.snacks.reduce(function(v, h) {
|
|
1315
|
+
var y, E = He(h.anchorOrigin), I = v[E] || [];
|
|
1316
|
+
return k({}, v, (y = {}, y[E] = [].concat(I, [h]), y));
|
|
1317
|
+
}, {}), g = Object.keys(l).map(function(v) {
|
|
1318
|
+
var h = l[v], y = h[0];
|
|
1319
|
+
return b.createElement(Vt, {
|
|
1320
|
+
key: v,
|
|
1321
1321
|
dense: d,
|
|
1322
|
-
anchorOrigin:
|
|
1322
|
+
anchorOrigin: y.anchorOrigin,
|
|
1323
1323
|
classes: x
|
|
1324
1324
|
}, h.map(function(E) {
|
|
1325
|
-
return
|
|
1325
|
+
return b.createElement(Wt, {
|
|
1326
1326
|
key: E.id,
|
|
1327
1327
|
snack: E,
|
|
1328
1328
|
classes: x,
|
|
@@ -1335,9 +1335,9 @@ var $t = /* @__PURE__ */ gn(An), zt = /* @__PURE__ */ he({
|
|
|
1335
1335
|
});
|
|
1336
1336
|
}));
|
|
1337
1337
|
});
|
|
1338
|
-
return
|
|
1338
|
+
return b.createElement(Dn.Provider, {
|
|
1339
1339
|
value: i
|
|
1340
|
-
},
|
|
1340
|
+
}, u, s ? Un(g, s) : g);
|
|
1341
1341
|
}, wn(n, [{
|
|
1342
1342
|
key: "maxSnack",
|
|
1343
1343
|
get: function() {
|
|
@@ -1405,7 +1405,7 @@ const Xt = P(M, {
|
|
|
1405
1405
|
] })
|
|
1406
1406
|
] }),
|
|
1407
1407
|
/* @__PURE__ */ c(M, { children: /* @__PURE__ */ c(
|
|
1408
|
-
|
|
1408
|
+
Hn,
|
|
1409
1409
|
{
|
|
1410
1410
|
variant: "determinate",
|
|
1411
1411
|
value: r,
|
|
@@ -1424,97 +1424,105 @@ const Xt = P(M, {
|
|
|
1424
1424
|
) })
|
|
1425
1425
|
]
|
|
1426
1426
|
}
|
|
1427
|
-
), Yt =
|
|
1428
|
-
success: _(({ id: e, message: n,
|
|
1429
|
-
const { closeSnackbar:
|
|
1427
|
+
), Yt = b.memo(Ut), Gt = {
|
|
1428
|
+
success: _(({ id: e, message: n, style: r, className: o, ...t }, i) => {
|
|
1429
|
+
const { closeSnackbar: a } = Q();
|
|
1430
1430
|
return /* @__PURE__ */ c(
|
|
1431
1431
|
ce,
|
|
1432
1432
|
{
|
|
1433
1433
|
elevation: 2,
|
|
1434
|
-
ref:
|
|
1434
|
+
ref: i,
|
|
1435
1435
|
severity: "success",
|
|
1436
|
-
action: /* @__PURE__ */ c(me, { size: "small", onClick: () =>
|
|
1436
|
+
action: /* @__PURE__ */ c(me, { size: "small", onClick: () => a(e), children: /* @__PURE__ */ c(ge, { fontSize: "small" }) }),
|
|
1437
1437
|
sx: {
|
|
1438
1438
|
width: "100%",
|
|
1439
1439
|
alignItems: "center",
|
|
1440
1440
|
backgroundColor: "success.light"
|
|
1441
1441
|
},
|
|
1442
|
+
style: r,
|
|
1443
|
+
className: o,
|
|
1442
1444
|
children: /* @__PURE__ */ c(M, { display: "flex", alignItems: "center", gap: 1, children: n })
|
|
1443
1445
|
}
|
|
1444
1446
|
);
|
|
1445
1447
|
}),
|
|
1446
|
-
error: _(({ id: e, message: n,
|
|
1447
|
-
const { closeSnackbar:
|
|
1448
|
+
error: _(({ id: e, message: n, style: r, className: o, ...t }, i) => {
|
|
1449
|
+
const { closeSnackbar: a } = Q();
|
|
1448
1450
|
return /* @__PURE__ */ c(
|
|
1449
1451
|
ce,
|
|
1450
1452
|
{
|
|
1451
1453
|
elevation: 2,
|
|
1452
|
-
ref:
|
|
1454
|
+
ref: i,
|
|
1453
1455
|
severity: "error",
|
|
1454
|
-
action: /* @__PURE__ */ c(me, { size: "small", onClick: () =>
|
|
1456
|
+
action: /* @__PURE__ */ c(me, { size: "small", onClick: () => a(e), children: /* @__PURE__ */ c(ge, { fontSize: "small" }) }),
|
|
1455
1457
|
sx: { width: "100%", alignItems: "center", color: "common.white", backgroundColor: "error.light" },
|
|
1458
|
+
style: r,
|
|
1459
|
+
className: o,
|
|
1456
1460
|
children: /* @__PURE__ */ c(M, { display: "flex", alignItems: "center", gap: 1, children: n })
|
|
1457
1461
|
}
|
|
1458
1462
|
);
|
|
1459
1463
|
}),
|
|
1460
|
-
warning: _(({ id: e, message: n,
|
|
1461
|
-
const { closeSnackbar:
|
|
1464
|
+
warning: _(({ id: e, message: n, style: r, className: o, ...t }, i) => {
|
|
1465
|
+
const { closeSnackbar: a } = Q();
|
|
1462
1466
|
return /* @__PURE__ */ c(
|
|
1463
1467
|
ce,
|
|
1464
1468
|
{
|
|
1465
1469
|
elevation: 2,
|
|
1466
|
-
ref:
|
|
1470
|
+
ref: i,
|
|
1467
1471
|
severity: "warning",
|
|
1468
|
-
action: /* @__PURE__ */ c(me, { size: "small", onClick: () =>
|
|
1472
|
+
action: /* @__PURE__ */ c(me, { size: "small", onClick: () => a(e), children: /* @__PURE__ */ c(ge, { fontSize: "small" }) }),
|
|
1469
1473
|
sx: { width: "100%", alignItems: "center", backgroundColor: "warning.light" },
|
|
1474
|
+
style: r,
|
|
1475
|
+
className: o,
|
|
1470
1476
|
children: /* @__PURE__ */ c(M, { display: "flex", alignItems: "center", gap: 1, children: n })
|
|
1471
1477
|
}
|
|
1472
1478
|
);
|
|
1473
1479
|
}),
|
|
1474
|
-
info: _(({ id: e, message: n,
|
|
1475
|
-
const { closeSnackbar:
|
|
1480
|
+
info: _(({ id: e, message: n, style: r, className: o, ...t }, i) => {
|
|
1481
|
+
const { closeSnackbar: a } = Q();
|
|
1476
1482
|
return /* @__PURE__ */ c(
|
|
1477
1483
|
ce,
|
|
1478
1484
|
{
|
|
1479
1485
|
elevation: 2,
|
|
1480
|
-
ref:
|
|
1486
|
+
ref: i,
|
|
1481
1487
|
severity: "info",
|
|
1482
|
-
action: /* @__PURE__ */ c(me, { size: "small", onClick: () =>
|
|
1488
|
+
action: /* @__PURE__ */ c(me, { size: "small", onClick: () => a(e), children: /* @__PURE__ */ c(ge, { fontSize: "small" }) }),
|
|
1483
1489
|
sx: { width: "100%", alignItems: "center", backgroundColor: "info.light" },
|
|
1490
|
+
style: r,
|
|
1491
|
+
className: o,
|
|
1484
1492
|
children: /* @__PURE__ */ c(M, { display: "flex", alignItems: "center", gap: 1, children: n })
|
|
1485
1493
|
}
|
|
1486
1494
|
);
|
|
1487
1495
|
}),
|
|
1488
1496
|
deleteCountdown: _((e, n) => {
|
|
1489
|
-
const { message: r, duration: o = 1e4, onUndo: t, onExpire: i, id: a, anchorOrigin: s } = e, [
|
|
1490
|
-
i && i(),
|
|
1491
|
-
}, [i,
|
|
1497
|
+
const { message: r, duration: o = 1e4, onUndo: t, onExpire: i, id: a, anchorOrigin: s, className: u } = e, [f, d] = de(o / 1e3), { closeSnackbar: p } = Q(), m = S(() => {
|
|
1498
|
+
i && i(), p(a);
|
|
1499
|
+
}, [i, p, a]);
|
|
1492
1500
|
V(() => {
|
|
1493
|
-
if (
|
|
1494
|
-
|
|
1501
|
+
if (f <= 0) {
|
|
1502
|
+
m();
|
|
1495
1503
|
return;
|
|
1496
1504
|
}
|
|
1497
1505
|
const v = setInterval(() => {
|
|
1498
|
-
|
|
1499
|
-
const
|
|
1500
|
-
return
|
|
1506
|
+
d((h) => {
|
|
1507
|
+
const y = h - 1;
|
|
1508
|
+
return y <= 0 && clearInterval(v), y;
|
|
1501
1509
|
});
|
|
1502
1510
|
}, 1e3);
|
|
1503
1511
|
return () => clearInterval(v);
|
|
1504
|
-
}, [
|
|
1505
|
-
const
|
|
1506
|
-
t && t(),
|
|
1507
|
-
},
|
|
1512
|
+
}, [m, f]);
|
|
1513
|
+
const x = () => {
|
|
1514
|
+
t && t(), p(a);
|
|
1515
|
+
}, l = f / Math.ceil(o / 1e3) * 100, g = {
|
|
1508
1516
|
...(s == null ? void 0 : s.horizontal) === "center" && { justifyContent: "center" },
|
|
1509
1517
|
...e.style || {}
|
|
1510
1518
|
};
|
|
1511
|
-
return /* @__PURE__ */ c(qe, { ref: n, role: "alert", style: u, children: /* @__PURE__ */ c(
|
|
1519
|
+
return /* @__PURE__ */ c(qe, { ref: n, role: "alert", style: g, className: u, children: /* @__PURE__ */ c(
|
|
1512
1520
|
Yt,
|
|
1513
1521
|
{
|
|
1514
|
-
time:
|
|
1515
|
-
progress:
|
|
1522
|
+
time: f,
|
|
1523
|
+
progress: l,
|
|
1516
1524
|
text: r,
|
|
1517
|
-
onUndo:
|
|
1525
|
+
onUndo: x
|
|
1518
1526
|
}
|
|
1519
1527
|
) });
|
|
1520
1528
|
})
|
|
@@ -1654,17 +1662,17 @@ const Ie = P("div")({
|
|
|
1654
1662
|
justifyContent: "flex-end",
|
|
1655
1663
|
gap: "16px",
|
|
1656
1664
|
padding: "0 20px 20px 20px"
|
|
1657
|
-
}),
|
|
1665
|
+
}), R = P(
|
|
1658
1666
|
({ className: e, ...n }) => /* @__PURE__ */ c(yn, { variant: "contained", color: "primary", className: Ve("bg-gradient", e), ...n })
|
|
1659
1667
|
)(({ theme: e }) => ({
|
|
1660
1668
|
textTransform: "none",
|
|
1661
1669
|
padding: "10px 16px"
|
|
1662
|
-
})), tr = ({ modal: e, hideMessage: n }) => /* @__PURE__ */ w(
|
|
1670
|
+
})), tr = ({ modal: e, hideMessage: n }) => /* @__PURE__ */ w(F, { children: [
|
|
1663
1671
|
/* @__PURE__ */ c(De, { color: e.severity || "", children: e.title || "" }),
|
|
1664
1672
|
/* @__PURE__ */ c(we, {}),
|
|
1665
|
-
/* @__PURE__ */ c(
|
|
1673
|
+
/* @__PURE__ */ c(H, { sx: { paddingX: 1 }, children: e.message }),
|
|
1666
1674
|
/* @__PURE__ */ c(Ie, { sx: { justifyContent: "space-around" }, children: e.actions.map(({ text: r, onClick: o, ...t }) => /* @__PURE__ */ c(
|
|
1667
|
-
|
|
1675
|
+
R,
|
|
1668
1676
|
{
|
|
1669
1677
|
children: r,
|
|
1670
1678
|
onClick: (i) => {
|
|
@@ -1673,20 +1681,20 @@ const Ie = P("div")({
|
|
|
1673
1681
|
...t
|
|
1674
1682
|
}
|
|
1675
1683
|
)) })
|
|
1676
|
-
] }), sn =
|
|
1684
|
+
] }), sn = b.memo(tr), rr = ({ modal: e, hideMessage: n }) => {
|
|
1677
1685
|
switch (e.visual) {
|
|
1678
1686
|
case "variant1":
|
|
1679
1687
|
return /* @__PURE__ */ c(sn, { modal: e, hideMessage: n });
|
|
1680
1688
|
default:
|
|
1681
1689
|
return /* @__PURE__ */ c(sn, { modal: e, hideMessage: n });
|
|
1682
1690
|
}
|
|
1683
|
-
}, ir =
|
|
1691
|
+
}, ir = b.memo(rr), or = ({ modal: e }) => (e.view == "fullModal", /* @__PURE__ */ w(F, { children: [
|
|
1684
1692
|
/* @__PURE__ */ c(Se, { children: /* @__PURE__ */ c(M, { display: "flex", alignItems: "center", justifyContent: "space-between", children: e.title }) }),
|
|
1685
|
-
/* @__PURE__ */ c(
|
|
1693
|
+
/* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(j, { children: e.message }) }),
|
|
1686
1694
|
/* @__PURE__ */ w(Ie, { children: [
|
|
1687
|
-
/* @__PURE__ */ c(
|
|
1695
|
+
/* @__PURE__ */ c(R, { onClick: e.onCancel, variant: "outlined", children: "Отмена" }),
|
|
1688
1696
|
/* @__PURE__ */ c(
|
|
1689
|
-
|
|
1697
|
+
R,
|
|
1690
1698
|
{
|
|
1691
1699
|
onClick: e.onConfirm,
|
|
1692
1700
|
variant: "contained",
|
|
@@ -1696,22 +1704,22 @@ const Ie = P("div")({
|
|
|
1696
1704
|
}
|
|
1697
1705
|
)
|
|
1698
1706
|
] })
|
|
1699
|
-
] })), cn =
|
|
1707
|
+
] })), cn = b.memo(or), ar = ({ modal: e }) => {
|
|
1700
1708
|
switch (e.visual) {
|
|
1701
1709
|
case "variant1":
|
|
1702
1710
|
return /* @__PURE__ */ c(cn, { modal: e });
|
|
1703
1711
|
default:
|
|
1704
1712
|
return /* @__PURE__ */ c(cn, { modal: e });
|
|
1705
1713
|
}
|
|
1706
|
-
}, sr =
|
|
1714
|
+
}, sr = b.memo(ar), cr = ({ modal: e }) => /* @__PURE__ */ w(F, { children: [
|
|
1707
1715
|
/* @__PURE__ */ w(De, { color: e.severity || "info", children: [
|
|
1708
1716
|
/* @__PURE__ */ c(Kn, { color: e.severity, sx: { marginRight: 1 } }),
|
|
1709
1717
|
e.title || `Информация ${e.severity}`
|
|
1710
1718
|
] }),
|
|
1711
1719
|
/* @__PURE__ */ c(we, { sx: (n) => ({ borderColor: qn(n.palette[e.severity || "info"].main, 0.6) }) }),
|
|
1712
|
-
/* @__PURE__ */ c(
|
|
1720
|
+
/* @__PURE__ */ c(H, { sx: { paddingX: 1 }, children: e.message }),
|
|
1713
1721
|
/* @__PURE__ */ c(Ie, { sx: { justifyContent: "end", pt: 1 }, children: /* @__PURE__ */ c(
|
|
1714
|
-
|
|
1722
|
+
R,
|
|
1715
1723
|
{
|
|
1716
1724
|
sx: { width: "45%" },
|
|
1717
1725
|
color: e.severity || "info",
|
|
@@ -1719,22 +1727,22 @@ const Ie = P("div")({
|
|
|
1719
1727
|
children: e.confirmText || "Закрыть"
|
|
1720
1728
|
}
|
|
1721
1729
|
) })
|
|
1722
|
-
] }), ln =
|
|
1730
|
+
] }), ln = b.memo(cr), lr = ({ modal: e }) => {
|
|
1723
1731
|
switch (e.visual) {
|
|
1724
1732
|
case "variant1":
|
|
1725
1733
|
return /* @__PURE__ */ c(ln, { modal: e });
|
|
1726
1734
|
default:
|
|
1727
1735
|
return /* @__PURE__ */ c(ln, { modal: e });
|
|
1728
1736
|
}
|
|
1729
|
-
}, ur =
|
|
1737
|
+
}, ur = b.memo(lr), dr = ({ modal: e }) => /* @__PURE__ */ w(F, { children: [
|
|
1730
1738
|
/* @__PURE__ */ c(Se, { sx: { p: 2.5, fontWeight: 600 }, children: /* @__PURE__ */ w(M, { display: "flex", alignItems: "center", gap: 1, children: [
|
|
1731
1739
|
/* @__PURE__ */ c(Zn, { color: "success" }),
|
|
1732
1740
|
/* @__PURE__ */ c("span", { children: e.title })
|
|
1733
1741
|
] }) }),
|
|
1734
1742
|
/* @__PURE__ */ c(we, {}),
|
|
1735
|
-
/* @__PURE__ */ c(
|
|
1743
|
+
/* @__PURE__ */ c(H, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: typeof e.message == "string" ? /* @__PURE__ */ c(j, { variant: "h6", gutterBottom: !0, children: e.message }) : e.message }),
|
|
1736
1744
|
/* @__PURE__ */ c(je, { sx: { p: 2 }, children: /* @__PURE__ */ c(
|
|
1737
|
-
|
|
1745
|
+
R,
|
|
1738
1746
|
{
|
|
1739
1747
|
sx: { minWidth: "45%" },
|
|
1740
1748
|
onClick: e.onCancel,
|
|
@@ -1745,11 +1753,11 @@ const Ie = P("div")({
|
|
|
1745
1753
|
children: e.buttonText || "OK"
|
|
1746
1754
|
}
|
|
1747
1755
|
) })
|
|
1748
|
-
] }), fr =
|
|
1756
|
+
] }), fr = b.memo(dr), pr = ({ modal: e }) => /* @__PURE__ */ w(F, { children: [
|
|
1749
1757
|
/* @__PURE__ */ c(Se, { children: e.title }),
|
|
1750
|
-
/* @__PURE__ */ c(
|
|
1758
|
+
/* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(j, { children: e.message }) }),
|
|
1751
1759
|
/* @__PURE__ */ c(je, { children: /* @__PURE__ */ c(
|
|
1752
|
-
|
|
1760
|
+
R,
|
|
1753
1761
|
{
|
|
1754
1762
|
onClick: e.onCancel,
|
|
1755
1763
|
variant: "contained",
|
|
@@ -1757,19 +1765,19 @@ const Ie = P("div")({
|
|
|
1757
1765
|
children: e.buttonText || "OK"
|
|
1758
1766
|
}
|
|
1759
1767
|
) })
|
|
1760
|
-
] }), hr =
|
|
1768
|
+
] }), hr = b.memo(pr), mr = ({ modal: e }) => /* @__PURE__ */ w(F, { children: [
|
|
1761
1769
|
/* @__PURE__ */ c(De, { color: e.severity || "", children: e.title || "Успех" }),
|
|
1762
1770
|
/* @__PURE__ */ c(we, {}),
|
|
1763
|
-
/* @__PURE__ */ c(
|
|
1771
|
+
/* @__PURE__ */ c(H, { sx: { paddingX: 1 }, children: typeof e.message == "string" ? /* @__PURE__ */ c(j, { variant: "h6", gutterBottom: !0, children: e.message }) : e.message }),
|
|
1764
1772
|
/* @__PURE__ */ c(je, { sx: { display: "flex", flexDirection: "column", gap: 2 }, children: /* @__PURE__ */ c(
|
|
1765
|
-
|
|
1773
|
+
R,
|
|
1766
1774
|
{
|
|
1767
1775
|
color: e.severity || "success",
|
|
1768
1776
|
onClick: e.onCancel,
|
|
1769
1777
|
children: e.buttonText || "OK"
|
|
1770
1778
|
}
|
|
1771
1779
|
) })
|
|
1772
|
-
] }), gr =
|
|
1780
|
+
] }), gr = b.memo(mr), vr = ({ modal: e }) => /* @__PURE__ */ w(M, { sx: { textAlign: "center", p: 3 }, children: [
|
|
1773
1781
|
/* @__PURE__ */ c(
|
|
1774
1782
|
bn,
|
|
1775
1783
|
{
|
|
@@ -1783,7 +1791,7 @@ const Ie = P("div")({
|
|
|
1783
1791
|
/* @__PURE__ */ c(j, { variant: "h5", gutterBottom: !0, children: e.title }),
|
|
1784
1792
|
/* @__PURE__ */ c(j, { variant: "body2", color: "text.secondary", sx: { mb: 3 }, children: e.message }),
|
|
1785
1793
|
/* @__PURE__ */ c(
|
|
1786
|
-
|
|
1794
|
+
R,
|
|
1787
1795
|
{
|
|
1788
1796
|
fullWidth: !0,
|
|
1789
1797
|
onClick: e.onCancel,
|
|
@@ -1793,19 +1801,19 @@ const Ie = P("div")({
|
|
|
1793
1801
|
children: "Ок"
|
|
1794
1802
|
}
|
|
1795
1803
|
)
|
|
1796
|
-
] }), xr =
|
|
1804
|
+
] }), xr = b.memo(vr), yr = P(M)(({ theme: e }) => ({
|
|
1797
1805
|
background: `linear-gradient(135deg, ${e.palette.success.light} 0%, ${e.palette.success.main} 100%)`,
|
|
1798
1806
|
color: "white",
|
|
1799
1807
|
padding: e.spacing(3),
|
|
1800
1808
|
textAlign: "center"
|
|
1801
|
-
})), br = ({ modal: e }) => /* @__PURE__ */ w(
|
|
1809
|
+
})), br = ({ modal: e }) => /* @__PURE__ */ w(F, { children: [
|
|
1802
1810
|
/* @__PURE__ */ w(yr, { children: [
|
|
1803
1811
|
/* @__PURE__ */ c(Qn, { sx: { fontSize: 64, mb: 2 } }),
|
|
1804
1812
|
/* @__PURE__ */ c(j, { variant: "h4", gutterBottom: !0, children: e.title }),
|
|
1805
1813
|
/* @__PURE__ */ c(j, { variant: "body1", children: e.message })
|
|
1806
1814
|
] }),
|
|
1807
|
-
/* @__PURE__ */ c(
|
|
1808
|
-
|
|
1815
|
+
/* @__PURE__ */ c(H, { sx: { textAlign: "center", py: 3 }, children: /* @__PURE__ */ c(
|
|
1816
|
+
R,
|
|
1809
1817
|
{
|
|
1810
1818
|
onClick: e.onCancel,
|
|
1811
1819
|
variant: "contained",
|
|
@@ -1815,7 +1823,7 @@ const Ie = P("div")({
|
|
|
1815
1823
|
children: e.buttonText || "OK"
|
|
1816
1824
|
}
|
|
1817
1825
|
) })
|
|
1818
|
-
] }), Er =
|
|
1826
|
+
] }), Er = b.memo(br), kr = (e) => {
|
|
1819
1827
|
switch (e.modal.visual) {
|
|
1820
1828
|
case "variant2":
|
|
1821
1829
|
return /* @__PURE__ */ c(hr, { ...e });
|
|
@@ -1828,21 +1836,21 @@ const Ie = P("div")({
|
|
|
1828
1836
|
default:
|
|
1829
1837
|
return /* @__PURE__ */ c(fr, { ...e });
|
|
1830
1838
|
}
|
|
1831
|
-
}, Cr =
|
|
1839
|
+
}, Cr = b.memo(kr), Sr = ({ modal: e }) => /* @__PURE__ */ w(F, { children: [
|
|
1832
1840
|
/* @__PURE__ */ c(De, { children: "Обновление" }),
|
|
1833
|
-
/* @__PURE__ */ c(
|
|
1841
|
+
/* @__PURE__ */ c(H, { children: /* @__PURE__ */ c(M, { py: 2, children: e.message }) }),
|
|
1834
1842
|
/* @__PURE__ */ w(Ie, { children: [
|
|
1835
|
-
e.onCancel && /* @__PURE__ */ c(
|
|
1836
|
-
e.onConfirm && /* @__PURE__ */ c(
|
|
1843
|
+
e.onCancel && /* @__PURE__ */ c(R, { onClick: e.onCancel, children: "Отмена" }),
|
|
1844
|
+
e.onConfirm && /* @__PURE__ */ c(R, { color: "primary", onClick: e.onConfirm, children: "Обновить" })
|
|
1837
1845
|
] })
|
|
1838
|
-
] }), un =
|
|
1846
|
+
] }), un = b.memo(Sr), wr = ({ modal: e }) => {
|
|
1839
1847
|
switch (e.visual) {
|
|
1840
1848
|
case "variant1":
|
|
1841
1849
|
return /* @__PURE__ */ c(un, { modal: e });
|
|
1842
1850
|
default:
|
|
1843
1851
|
return /* @__PURE__ */ c(un, { modal: e });
|
|
1844
1852
|
}
|
|
1845
|
-
}, Mr =
|
|
1853
|
+
}, Mr = b.memo(wr), Dr = "_notistack-SnackbarContainer_11i0e_1", Ir = {
|
|
1846
1854
|
"notistack-SnackbarContainer": "_notistack-SnackbarContainer_11i0e_1",
|
|
1847
1855
|
notistackSnackbarContainer: Dr
|
|
1848
1856
|
};
|
|
@@ -1850,7 +1858,7 @@ function dn(e, n) {
|
|
|
1850
1858
|
typeof e == "function" ? e(n) : e && (e.current = n);
|
|
1851
1859
|
}
|
|
1852
1860
|
function ne(e, n) {
|
|
1853
|
-
return
|
|
1861
|
+
return b.useMemo(() => e == null && n == null ? null : (r) => {
|
|
1854
1862
|
dn(e, r), dn(n, r);
|
|
1855
1863
|
}, [e, n]);
|
|
1856
1864
|
}
|
|
@@ -1873,8 +1881,8 @@ const Be = (e) => {
|
|
|
1873
1881
|
function T(e = ["all"], n) {
|
|
1874
1882
|
const { duration: r = 300, easing: o = Tr.easeInOut, delay: t = 0 } = n || {};
|
|
1875
1883
|
return (Array.isArray(e) ? e : [e]).map((a) => {
|
|
1876
|
-
const s = typeof r == "string" ? r : fn(r),
|
|
1877
|
-
return `${a} ${s} ${o} ${
|
|
1884
|
+
const s = typeof r == "string" ? r : fn(r), u = typeof t == "string" ? t : fn(t);
|
|
1885
|
+
return `${a} ${s} ${o} ${u}`;
|
|
1878
1886
|
}).join(",");
|
|
1879
1887
|
}
|
|
1880
1888
|
const Pr = {
|
|
@@ -1884,7 +1892,7 @@ const Pr = {
|
|
|
1884
1892
|
entered: {
|
|
1885
1893
|
opacity: 1
|
|
1886
1894
|
}
|
|
1887
|
-
},
|
|
1895
|
+
}, An = N.forwardRef((e, n) => {
|
|
1888
1896
|
const {
|
|
1889
1897
|
children: r,
|
|
1890
1898
|
in: o,
|
|
@@ -1892,40 +1900,40 @@ const Pr = {
|
|
|
1892
1900
|
style: i,
|
|
1893
1901
|
onEnter: a,
|
|
1894
1902
|
onEntered: s,
|
|
1895
|
-
onExit:
|
|
1903
|
+
onExit: u,
|
|
1896
1904
|
onExited: f,
|
|
1897
1905
|
direction: d,
|
|
1898
1906
|
// Take this out since this is a Slide-only prop
|
|
1899
1907
|
...p
|
|
1900
|
-
} = e, m =
|
|
1908
|
+
} = e, m = N.useRef(null), x = ne(r.ref, n), l = ne(m, x);
|
|
1901
1909
|
return /* @__PURE__ */ c(
|
|
1902
1910
|
ie,
|
|
1903
1911
|
{
|
|
1904
1912
|
appear: !0,
|
|
1905
1913
|
in: o,
|
|
1906
1914
|
nodeRef: m,
|
|
1907
|
-
onEnter: (h,
|
|
1915
|
+
onEnter: (h, y) => {
|
|
1908
1916
|
Be(h);
|
|
1909
1917
|
const E = te({
|
|
1910
1918
|
style: i,
|
|
1911
1919
|
timeout: t,
|
|
1912
1920
|
mode: "enter"
|
|
1913
1921
|
});
|
|
1914
|
-
h.style.webkitTransition = T("opacity", E), h.style.transition = T("opacity", E), a && a(h,
|
|
1922
|
+
h.style.webkitTransition = T("opacity", E), h.style.transition = T("opacity", E), a && a(h, y);
|
|
1915
1923
|
},
|
|
1916
1924
|
onEntered: s,
|
|
1917
1925
|
onExit: (h) => {
|
|
1918
|
-
const
|
|
1926
|
+
const y = te({
|
|
1919
1927
|
style: i,
|
|
1920
1928
|
timeout: t,
|
|
1921
1929
|
mode: "exit"
|
|
1922
1930
|
});
|
|
1923
|
-
h.style.webkitTransition = T("opacity",
|
|
1931
|
+
h.style.webkitTransition = T("opacity", y), h.style.transition = T("opacity", y), u && u(h);
|
|
1924
1932
|
},
|
|
1925
1933
|
onExited: f,
|
|
1926
1934
|
timeout: t,
|
|
1927
1935
|
...p,
|
|
1928
|
-
children: (h,
|
|
1936
|
+
children: (h, y) => N.cloneElement(r, {
|
|
1929
1937
|
style: {
|
|
1930
1938
|
opacity: 0,
|
|
1931
1939
|
visibility: h === "exited" && !o ? "hidden" : void 0,
|
|
@@ -1933,18 +1941,18 @@ const Pr = {
|
|
|
1933
1941
|
...i,
|
|
1934
1942
|
...r.props.style
|
|
1935
1943
|
},
|
|
1936
|
-
ref:
|
|
1937
|
-
...
|
|
1944
|
+
ref: l,
|
|
1945
|
+
...y
|
|
1938
1946
|
})
|
|
1939
1947
|
}
|
|
1940
1948
|
);
|
|
1941
1949
|
});
|
|
1942
|
-
|
|
1943
|
-
const Or =
|
|
1950
|
+
An.displayName = "Fade";
|
|
1951
|
+
const Or = N.memo(An);
|
|
1944
1952
|
function We(e) {
|
|
1945
1953
|
return `scale(${e}, ${e ** 2})`;
|
|
1946
1954
|
}
|
|
1947
|
-
const
|
|
1955
|
+
const Nr = {
|
|
1948
1956
|
entering: {
|
|
1949
1957
|
opacity: 1,
|
|
1950
1958
|
transform: We(1)
|
|
@@ -1953,7 +1961,7 @@ const Rr = {
|
|
|
1953
1961
|
opacity: 1,
|
|
1954
1962
|
transform: "none"
|
|
1955
1963
|
}
|
|
1956
|
-
}, Ln =
|
|
1964
|
+
}, Ln = N.forwardRef((e, n) => {
|
|
1957
1965
|
const {
|
|
1958
1966
|
children: r,
|
|
1959
1967
|
in: o,
|
|
@@ -1961,57 +1969,57 @@ const Rr = {
|
|
|
1961
1969
|
timeout: i = 300,
|
|
1962
1970
|
onEnter: a,
|
|
1963
1971
|
onEntered: s,
|
|
1964
|
-
onExit:
|
|
1972
|
+
onExit: u,
|
|
1965
1973
|
onExited: f,
|
|
1966
1974
|
...d
|
|
1967
|
-
} = e, p =
|
|
1975
|
+
} = e, p = N.useRef(null), m = ne(r.ref, p), x = ne(m, n);
|
|
1968
1976
|
return /* @__PURE__ */ c(
|
|
1969
1977
|
ie,
|
|
1970
1978
|
{
|
|
1971
1979
|
appear: !0,
|
|
1972
1980
|
in: o,
|
|
1973
1981
|
nodeRef: p,
|
|
1974
|
-
onEnter: (
|
|
1975
|
-
Be(
|
|
1976
|
-
const { duration:
|
|
1982
|
+
onEnter: (v, h) => {
|
|
1983
|
+
Be(v);
|
|
1984
|
+
const { duration: y, delay: E, easing: I } = te({
|
|
1977
1985
|
style: t,
|
|
1978
1986
|
timeout: i,
|
|
1979
1987
|
mode: "enter"
|
|
1980
1988
|
});
|
|
1981
|
-
|
|
1982
|
-
T("opacity", { duration:
|
|
1989
|
+
v.style.transition = [
|
|
1990
|
+
T("opacity", { duration: y, delay: E }),
|
|
1983
1991
|
T("transform", {
|
|
1984
1992
|
delay: E,
|
|
1985
1993
|
easing: I,
|
|
1986
|
-
duration:
|
|
1994
|
+
duration: y * 0.666
|
|
1987
1995
|
})
|
|
1988
|
-
].join(","), a && a(
|
|
1996
|
+
].join(","), a && a(v, h);
|
|
1989
1997
|
},
|
|
1990
1998
|
onEntered: s,
|
|
1991
|
-
onExit: (
|
|
1992
|
-
const { duration: h, delay:
|
|
1999
|
+
onExit: (v) => {
|
|
2000
|
+
const { duration: h, delay: y, easing: E } = te({
|
|
1993
2001
|
style: t,
|
|
1994
2002
|
timeout: i,
|
|
1995
2003
|
mode: "exit"
|
|
1996
2004
|
});
|
|
1997
|
-
|
|
1998
|
-
T("opacity", { duration: h, delay:
|
|
2005
|
+
v.style.transition = [
|
|
2006
|
+
T("opacity", { duration: h, delay: y }),
|
|
1999
2007
|
T("transform", {
|
|
2000
2008
|
easing: E,
|
|
2001
2009
|
duration: h * 0.666,
|
|
2002
|
-
delay:
|
|
2010
|
+
delay: y || h * 0.333
|
|
2003
2011
|
})
|
|
2004
|
-
].join(","),
|
|
2012
|
+
].join(","), v.style.opacity = "0", v.style.transform = We(0.75), u && u(v);
|
|
2005
2013
|
},
|
|
2006
2014
|
onExited: f,
|
|
2007
2015
|
timeout: i,
|
|
2008
2016
|
...d,
|
|
2009
|
-
children: (
|
|
2017
|
+
children: (v, h) => N.cloneElement(r, {
|
|
2010
2018
|
style: {
|
|
2011
2019
|
opacity: 0,
|
|
2012
2020
|
transform: We(0.75),
|
|
2013
|
-
visibility:
|
|
2014
|
-
...
|
|
2021
|
+
visibility: v === "exited" && !o ? "hidden" : void 0,
|
|
2022
|
+
...Nr[v],
|
|
2015
2023
|
...t,
|
|
2016
2024
|
...r.props.style
|
|
2017
2025
|
},
|
|
@@ -2021,15 +2029,15 @@ const Rr = {
|
|
|
2021
2029
|
}
|
|
2022
2030
|
);
|
|
2023
2031
|
});
|
|
2024
|
-
Ln.displayName = "
|
|
2025
|
-
const
|
|
2032
|
+
Ln.displayName = "Grow";
|
|
2033
|
+
const Rr = {
|
|
2026
2034
|
entering: {
|
|
2027
2035
|
transform: "none"
|
|
2028
2036
|
},
|
|
2029
2037
|
entered: {
|
|
2030
2038
|
transform: "none"
|
|
2031
2039
|
}
|
|
2032
|
-
}, _n =
|
|
2040
|
+
}, _n = N.forwardRef((e, n) => {
|
|
2033
2041
|
const {
|
|
2034
2042
|
children: r,
|
|
2035
2043
|
in: o,
|
|
@@ -2037,19 +2045,19 @@ const Ar = {
|
|
|
2037
2045
|
timeout: i = 0,
|
|
2038
2046
|
onEnter: a,
|
|
2039
2047
|
onEntered: s,
|
|
2040
|
-
onExit:
|
|
2048
|
+
onExit: u,
|
|
2041
2049
|
onExited: f,
|
|
2042
2050
|
direction: d,
|
|
2043
2051
|
// Take this out since this is a Slide-only prop
|
|
2044
2052
|
...p
|
|
2045
|
-
} = e, m =
|
|
2053
|
+
} = e, m = N.useRef(null), x = ne(r.ref, n), l = ne(m, x);
|
|
2046
2054
|
return /* @__PURE__ */ c(
|
|
2047
2055
|
ie,
|
|
2048
2056
|
{
|
|
2049
2057
|
appear: !0,
|
|
2050
2058
|
in: o,
|
|
2051
2059
|
nodeRef: m,
|
|
2052
|
-
onEnter: (h,
|
|
2060
|
+
onEnter: (h, y) => {
|
|
2053
2061
|
Be(h);
|
|
2054
2062
|
const E = te({
|
|
2055
2063
|
style: t,
|
|
@@ -2059,69 +2067,70 @@ const Ar = {
|
|
|
2059
2067
|
h.style.webkitTransition = T(
|
|
2060
2068
|
"transform",
|
|
2061
2069
|
E
|
|
2062
|
-
), h.style.transition = T("transform", E), a && a(h,
|
|
2070
|
+
), h.style.transition = T("transform", E), a && a(h, y);
|
|
2063
2071
|
},
|
|
2064
2072
|
onEntered: s,
|
|
2065
2073
|
onExit: (h) => {
|
|
2066
|
-
const
|
|
2074
|
+
const y = te({
|
|
2067
2075
|
style: t,
|
|
2068
2076
|
timeout: i,
|
|
2069
2077
|
mode: "exit"
|
|
2070
2078
|
});
|
|
2071
2079
|
h.style.webkitTransition = T(
|
|
2072
2080
|
"transform",
|
|
2073
|
-
|
|
2074
|
-
), h.style.transition = T("transform",
|
|
2081
|
+
y
|
|
2082
|
+
), h.style.transition = T("transform", y), u && u(h);
|
|
2075
2083
|
},
|
|
2076
2084
|
onExited: f,
|
|
2077
2085
|
timeout: i,
|
|
2078
2086
|
...p,
|
|
2079
|
-
children: (h,
|
|
2087
|
+
children: (h, y) => N.cloneElement(r, {
|
|
2088
|
+
className: "zoom",
|
|
2080
2089
|
style: {
|
|
2081
2090
|
transform: "scale(0)",
|
|
2082
2091
|
visibility: h === "exited" && !o ? "hidden" : void 0,
|
|
2083
|
-
...
|
|
2092
|
+
...Rr[h],
|
|
2084
2093
|
...t,
|
|
2085
2094
|
...r.props.style
|
|
2086
2095
|
},
|
|
2087
|
-
ref:
|
|
2088
|
-
...
|
|
2096
|
+
ref: l,
|
|
2097
|
+
...y
|
|
2089
2098
|
})
|
|
2090
2099
|
}
|
|
2091
2100
|
);
|
|
2092
2101
|
});
|
|
2093
2102
|
_n.displayName = "Zoom";
|
|
2094
|
-
const
|
|
2103
|
+
const Ar = N.memo(_n), pn = {
|
|
2095
2104
|
Fade: Or,
|
|
2096
2105
|
Grow: Ln,
|
|
2097
|
-
Zoom:
|
|
2106
|
+
Zoom: Ar,
|
|
2098
2107
|
Slide: void 0
|
|
2099
2108
|
}, Lr = ({ children: e }) => {
|
|
2100
|
-
const [n, r] = de([]), { enqueueSnackbar: o, closeSnackbar: t } = Q(), a = _r((
|
|
2101
|
-
const
|
|
2102
|
-
["modal", "fullModal"].includes(
|
|
2103
|
-
}), s = S((
|
|
2104
|
-
|
|
2105
|
-
}, []),
|
|
2106
|
-
s(
|
|
2107
|
-
}, f = (
|
|
2108
|
-
r((
|
|
2109
|
+
const [n, r] = de([]), { enqueueSnackbar: o, closeSnackbar: t } = Q(), a = _r((l) => {
|
|
2110
|
+
const g = vn();
|
|
2111
|
+
["modal", "fullModal"].includes(l.view) && r((v) => [...v, { ...l, id: g, isExiting: !1 }]);
|
|
2112
|
+
}), s = S((l, g) => {
|
|
2113
|
+
g === "alert" && t(l), g === "modal" && r((v) => v.map((h) => h.id === l ? { ...h, isExiting: !0 } : h));
|
|
2114
|
+
}, []), u = (l) => {
|
|
2115
|
+
s(l, "modal");
|
|
2116
|
+
}, f = (l) => {
|
|
2117
|
+
r((g) => g.filter((v) => v.id !== l));
|
|
2109
2118
|
}, d = S(() => {
|
|
2110
|
-
r((
|
|
2111
|
-
}, []), p = S(({ variant:
|
|
2112
|
-
o(
|
|
2113
|
-
TransitionComponent: pn[
|
|
2114
|
-
variant:
|
|
2115
|
-
...
|
|
2116
|
-
anchorOrigin: {
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
},
|
|
2120
|
-
...
|
|
2119
|
+
r((l) => l.map((g) => ({ ...g, isExiting: !0 })));
|
|
2120
|
+
}, []), p = S(({ variant: l, message: g, ...v }) => {
|
|
2121
|
+
o(g, {
|
|
2122
|
+
TransitionComponent: pn[v.animation || "Slide"],
|
|
2123
|
+
variant: l || "info"
|
|
2124
|
+
// ...(config.timeout && { autoHideDuration: config.timeout }),
|
|
2125
|
+
// anchorOrigin: {
|
|
2126
|
+
// vertical: 'bottom',
|
|
2127
|
+
// horizontal: 'left'
|
|
2128
|
+
// },
|
|
2129
|
+
// ...config
|
|
2121
2130
|
});
|
|
2122
2131
|
}, []), m = S(
|
|
2123
|
-
({ message:
|
|
2124
|
-
o(
|
|
2132
|
+
({ message: l, ...g }) => {
|
|
2133
|
+
o(l, {
|
|
2125
2134
|
TransitionComponent: pn.Grow,
|
|
2126
2135
|
variant: "deleteCountdown",
|
|
2127
2136
|
// preventDuplicate: true,//Вырубает дублиирование сообщений
|
|
@@ -2132,7 +2141,7 @@ const Nr = R.memo(_n), pn = {
|
|
|
2132
2141
|
vertical: "bottom",
|
|
2133
2142
|
horizontal: "center"
|
|
2134
2143
|
},
|
|
2135
|
-
...
|
|
2144
|
+
...g
|
|
2136
2145
|
});
|
|
2137
2146
|
},
|
|
2138
2147
|
[o]
|
|
@@ -2145,30 +2154,30 @@ const Nr = R.memo(_n), pn = {
|
|
|
2145
2154
|
};
|
|
2146
2155
|
return /* @__PURE__ */ w(En.Provider, { value: x, children: [
|
|
2147
2156
|
e,
|
|
2148
|
-
n.filter((
|
|
2157
|
+
n.filter((l) => ["modal", "fullModal"].includes(l.view)).map((l, g) => /* @__PURE__ */ c(Bn, { children: /* @__PURE__ */ w(
|
|
2149
2158
|
Xn,
|
|
2150
2159
|
{
|
|
2151
|
-
open: !
|
|
2152
|
-
...
|
|
2153
|
-
onClick: (
|
|
2154
|
-
l
|
|
2160
|
+
open: !l.isExiting,
|
|
2161
|
+
...l.view == "fullModal" && { fullWidth: !0, fullScreen: !0 },
|
|
2162
|
+
onClick: (v) => {
|
|
2163
|
+
u(l.id);
|
|
2155
2164
|
},
|
|
2156
2165
|
maxWidth: "sm",
|
|
2157
2166
|
fullWidth: !0,
|
|
2158
2167
|
TransitionProps: {
|
|
2159
|
-
onExited: (
|
|
2160
|
-
|
|
2168
|
+
onExited: (v) => {
|
|
2169
|
+
l.isExiting && f(l.id);
|
|
2161
2170
|
}
|
|
2162
2171
|
},
|
|
2163
2172
|
children: [
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2173
|
+
l.mode == "success" && /* @__PURE__ */ c(Cr, { modal: l }),
|
|
2174
|
+
l.mode == "delete" && /* @__PURE__ */ c(sr, { modal: l }),
|
|
2175
|
+
l.mode == "update" && /* @__PURE__ */ c(Mr, { modal: l }),
|
|
2176
|
+
l.mode == "info" && /* @__PURE__ */ c(ur, { modal: l }),
|
|
2177
|
+
l.mode == "default" && /* @__PURE__ */ c(ir, { modal: l, hideMessage: u })
|
|
2169
2178
|
]
|
|
2170
2179
|
}
|
|
2171
|
-
) },
|
|
2180
|
+
) }, l.id))
|
|
2172
2181
|
] });
|
|
2173
2182
|
}, Kr = (e) => /* @__PURE__ */ c(
|
|
2174
2183
|
Bt,
|
|
@@ -2183,7 +2192,6 @@ const Nr = R.memo(_n), pn = {
|
|
|
2183
2192
|
), _r = (e) => {
|
|
2184
2193
|
const n = S(({ view: i, ...a }) => {
|
|
2185
2194
|
e({
|
|
2186
|
-
variant: "outlined",
|
|
2187
2195
|
view: i || "modal",
|
|
2188
2196
|
dismissible: a.mode !== "success",
|
|
2189
2197
|
...a
|