@ukpc-lib/react 0.13.1-dev.11 → 0.13.1-dev.13
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/components/FavoriteMenu/components/MenuItem.d.ts +1 -0
- package/dist/components/index.cjs +19 -19
- package/dist/components/index.js +1647 -1617
- package/dist/{index.esm2017-XCT5rERk.cjs → index.esm2017-C48DXvhF.cjs} +28 -28
- package/dist/{index.esm2017-DK0KgGge.js → index.esm2017-D7ekKkN2.js} +331 -353
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +5 -0
- package/web-components-bundle/clsx-DB4S2d7J.js +22 -0
- package/web-components-bundle/favorite-menu/index.js +6 -5
- package/web-components-bundle/global-menu/index.js +5 -4
- package/web-components-bundle/global-topbar/index.js +8 -7
- package/web-components-bundle/has-permission/index.js +5 -4
- package/web-components-bundle/{index-B2F-s5_G.js → index-B0EbOgi6.js} +16319 -21649
- package/web-components-bundle/{index-DyX6L9q-.js → index-B2-j-GrO.js} +215 -226
- package/web-components-bundle/index-B8-7QZsi.js +5410 -0
- package/web-components-bundle/{index-B1bJ4sn5.js → index-Cx0zTfOC.js} +1 -1
- package/web-components-bundle/page-not-found/index.js +2 -2
- package/web-components-bundle/{react-to-web-component-C4-Jmrxs.js → react-to-web-component-D7SoYMky.js} +1535 -1527
- package/web-components-bundle/{react-toastify.esm-C4-Xv2fh.js → react-toastify.esm-Y1WvK90L.js} +156 -175
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +14 -0
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
package/web-components-bundle/{react-toastify.esm-C4-Xv2fh.js → react-toastify.esm-Y1WvK90L.js}
RENAMED
|
@@ -1,46 +1,28 @@
|
|
|
1
|
-
import { r as b,
|
|
2
|
-
|
|
3
|
-
var t, n, s = "";
|
|
4
|
-
if (typeof e == "string" || typeof e == "number")
|
|
5
|
-
s += e;
|
|
6
|
-
else if (typeof e == "object")
|
|
7
|
-
if (Array.isArray(e)) {
|
|
8
|
-
var a = e.length;
|
|
9
|
-
for (t = 0; t < a; t++)
|
|
10
|
-
e[t] && (n = de(e[t])) && (s && (s += " "), s += n);
|
|
11
|
-
} else
|
|
12
|
-
for (n in e)
|
|
13
|
-
e[n] && (s && (s += " "), s += n);
|
|
14
|
-
return s;
|
|
15
|
-
}
|
|
16
|
-
function F() {
|
|
17
|
-
for (var e, t, n = 0, s = "", a = arguments.length; n < a; n++)
|
|
18
|
-
(e = arguments[n]) && (t = de(e)) && (s && (s += " "), s += t);
|
|
19
|
-
return s;
|
|
20
|
-
}
|
|
1
|
+
import { r as b, a as y } from "./react-to-web-component-D7SoYMky.js";
|
|
2
|
+
import { c as F } from "./clsx-DB4S2d7J.js";
|
|
21
3
|
const J = (e) => typeof e == "number" && !isNaN(e), q = (e) => typeof e == "string", k = (e) => typeof e == "function", ne = (e) => q(e) || k(e) ? e : null, ie = (e) => b.isValidElement(e) || q(e) || k(e) || J(e);
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
const { scrollHeight:
|
|
4
|
+
function ye(e, t, o) {
|
|
5
|
+
o === void 0 && (o = 300);
|
|
6
|
+
const { scrollHeight: r, style: a } = e;
|
|
25
7
|
requestAnimationFrame(() => {
|
|
26
|
-
a.minHeight = "initial", a.height =
|
|
27
|
-
a.height = "0", a.padding = "0", a.margin = "0", setTimeout(t,
|
|
8
|
+
a.minHeight = "initial", a.height = r + "px", a.transition = `all ${o}ms`, requestAnimationFrame(() => {
|
|
9
|
+
a.height = "0", a.padding = "0", a.margin = "0", setTimeout(t, o);
|
|
28
10
|
});
|
|
29
11
|
});
|
|
30
12
|
}
|
|
31
13
|
function se(e) {
|
|
32
|
-
let { enter: t, exit:
|
|
33
|
-
return function(
|
|
34
|
-
let { children: E, position: p, preventExitTransition: _, done:
|
|
35
|
-
const m =
|
|
14
|
+
let { enter: t, exit: o, appendPosition: r = !1, collapse: a = !0, collapseDuration: d = 300 } = e;
|
|
15
|
+
return function(n) {
|
|
16
|
+
let { children: E, position: p, preventExitTransition: _, done: u, nodeRef: C, isIn: I, playToast: N } = n;
|
|
17
|
+
const m = r ? `${t}--${p}` : t, c = r ? `${o}--${p}` : o, T = b.useRef(0);
|
|
36
18
|
return b.useLayoutEffect(() => {
|
|
37
|
-
const f = C.current, l = m.split(" "),
|
|
38
|
-
g.target === C.current && (N(), f.removeEventListener("animationend",
|
|
19
|
+
const f = C.current, l = m.split(" "), s = (g) => {
|
|
20
|
+
g.target === C.current && (N(), f.removeEventListener("animationend", s), f.removeEventListener("animationcancel", s), T.current === 0 && g.type !== "animationcancel" && f.classList.remove(...l));
|
|
39
21
|
};
|
|
40
|
-
f.classList.add(...l), f.addEventListener("animationend",
|
|
22
|
+
f.classList.add(...l), f.addEventListener("animationend", s), f.addEventListener("animationcancel", s);
|
|
41
23
|
}, []), b.useEffect(() => {
|
|
42
24
|
const f = C.current, l = () => {
|
|
43
|
-
f.removeEventListener("animationend", l), a ?
|
|
25
|
+
f.removeEventListener("animationend", l), a ? ye(f, u, d) : u();
|
|
44
26
|
};
|
|
45
27
|
I || (_ ? l() : (T.current = 1, f.className += ` ${c}`, f.addEventListener("animationend", l)));
|
|
46
28
|
}, [I]), y.createElement(y.Fragment, null, E);
|
|
@@ -51,50 +33,50 @@ function ce(e, t) {
|
|
|
51
33
|
}
|
|
52
34
|
const $ = /* @__PURE__ */ new Map();
|
|
53
35
|
let K = [];
|
|
54
|
-
const le = /* @__PURE__ */ new Set(),
|
|
55
|
-
function
|
|
56
|
-
var
|
|
36
|
+
const le = /* @__PURE__ */ new Set(), ve = (e) => le.forEach((t) => t(e)), ue = () => $.size > 0;
|
|
37
|
+
function pe(e, t) {
|
|
38
|
+
var o;
|
|
57
39
|
if (t)
|
|
58
|
-
return !((
|
|
59
|
-
let
|
|
40
|
+
return !((o = $.get(t)) == null || !o.isToastActive(e));
|
|
41
|
+
let r = !1;
|
|
60
42
|
return $.forEach((a) => {
|
|
61
|
-
a.isToastActive(e) && (
|
|
62
|
-
}),
|
|
43
|
+
a.isToastActive(e) && (r = !0);
|
|
44
|
+
}), r;
|
|
63
45
|
}
|
|
64
|
-
function
|
|
65
|
-
ie(e) && (
|
|
66
|
-
|
|
46
|
+
function fe(e, t) {
|
|
47
|
+
ie(e) && (ue() || K.push({ content: e, options: t }), $.forEach((o) => {
|
|
48
|
+
o.buildToast(e, t);
|
|
67
49
|
}));
|
|
68
50
|
}
|
|
69
|
-
function
|
|
70
|
-
$.forEach((
|
|
71
|
-
t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) ===
|
|
51
|
+
function de(e, t) {
|
|
52
|
+
$.forEach((o) => {
|
|
53
|
+
t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) === o.id && o.toggle(e, t == null ? void 0 : t.id) : o.toggle(e, t == null ? void 0 : t.id);
|
|
72
54
|
});
|
|
73
55
|
}
|
|
74
|
-
function
|
|
75
|
-
const { subscribe: t, getSnapshot:
|
|
76
|
-
const
|
|
56
|
+
function he(e) {
|
|
57
|
+
const { subscribe: t, getSnapshot: o, setProps: r } = b.useRef(function(d) {
|
|
58
|
+
const n = d.containerId || 1;
|
|
77
59
|
return { subscribe(E) {
|
|
78
|
-
const p = /* @__PURE__ */ function(
|
|
60
|
+
const p = /* @__PURE__ */ function(u, C, I) {
|
|
79
61
|
let N = 1, m = 0, c = [], T = [], f = [], l = C;
|
|
80
|
-
const
|
|
81
|
-
f = Array.from(
|
|
62
|
+
const s = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Set(), M = () => {
|
|
63
|
+
f = Array.from(s.values()), g.forEach((i) => i());
|
|
82
64
|
}, O = (i) => {
|
|
83
|
-
T = i == null ? [] : T.filter((v) => v !== i),
|
|
65
|
+
T = i == null ? [] : T.filter((v) => v !== i), M();
|
|
84
66
|
}, L = (i) => {
|
|
85
67
|
const { toastId: v, onOpen: w, updateId: R, children: S } = i.props, Y = R == null;
|
|
86
|
-
i.staleId &&
|
|
68
|
+
i.staleId && s.delete(i.staleId), s.set(v, i), T = [...T, i.props.toastId].filter((z) => z !== i.staleId), M(), I(ce(i, Y ? "added" : "updated")), Y && k(w) && w(b.isValidElement(S) && S.props);
|
|
87
69
|
};
|
|
88
|
-
return { id:
|
|
89
|
-
|
|
70
|
+
return { id: u, props: l, observe: (i) => (g.add(i), () => g.delete(i)), toggle: (i, v) => {
|
|
71
|
+
s.forEach((w) => {
|
|
90
72
|
v != null && v !== w.props.toastId || k(w.toggle) && w.toggle(i);
|
|
91
73
|
});
|
|
92
|
-
}, removeToast: O, toasts:
|
|
74
|
+
}, removeToast: O, toasts: s, clearQueue: () => {
|
|
93
75
|
m -= c.length, c = [];
|
|
94
76
|
}, buildToast: (i, v) => {
|
|
95
|
-
if (((
|
|
96
|
-
let { containerId: P, toastId: x, updateId: B } =
|
|
97
|
-
const V = P ? P !==
|
|
77
|
+
if (((A) => {
|
|
78
|
+
let { containerId: P, toastId: x, updateId: B } = A;
|
|
79
|
+
const V = P ? P !== u : u !== 1, U = s.has(x) && B == null;
|
|
98
80
|
return V || U;
|
|
99
81
|
})(v))
|
|
100
82
|
return;
|
|
@@ -102,12 +84,12 @@ function Ee(e) {
|
|
|
102
84
|
O(w);
|
|
103
85
|
}, Z = R == null;
|
|
104
86
|
Z && m++;
|
|
105
|
-
const D = { ...l, style: l.toastStyle, key: N++, ...Object.fromEntries(Object.entries(v).filter((
|
|
106
|
-
let [P, x] =
|
|
87
|
+
const D = { ...l, style: l.toastStyle, key: N++, ...Object.fromEntries(Object.entries(v).filter((A) => {
|
|
88
|
+
let [P, x] = A;
|
|
107
89
|
return x != null;
|
|
108
90
|
})), toastId: w, updateId: R, data: S, closeToast: Q, isIn: !1, className: ne(v.className || l.toastClassName), bodyClassName: ne(v.bodyClassName || l.bodyClassName), progressClassName: ne(v.progressClassName || l.progressClassName), autoClose: !v.isLoading && (H = v.autoClose, j = l.autoClose, H === !1 || J(H) && H > 0 ? H : j), deleteToast() {
|
|
109
|
-
const
|
|
110
|
-
k(P) && P(b.isValidElement(x) && x.props), I(ce(
|
|
91
|
+
const A = s.get(w), { onClose: P, children: x } = A.props;
|
|
92
|
+
k(P) && P(b.isValidElement(x) && x.props), I(ce(A, "removed")), s.delete(w), m--, m < 0 && (m = 0), c.length > 0 ? L(c.shift()) : M();
|
|
111
93
|
} };
|
|
112
94
|
var H, j;
|
|
113
95
|
D.closeButton = l.closeButton, v.closeButton === !1 || ie(v.closeButton) ? D.closeButton = v.closeButton : v.closeButton === !0 && (D.closeButton = !ie(l.closeButton) || l.closeButton);
|
|
@@ -120,145 +102,145 @@ function Ee(e) {
|
|
|
120
102
|
}, setProps(i) {
|
|
121
103
|
l = i;
|
|
122
104
|
}, setToggle: (i, v) => {
|
|
123
|
-
|
|
105
|
+
s.get(i).toggle = v;
|
|
124
106
|
}, isToastActive: (i) => T.some((v) => v === i), getSnapshot: () => f };
|
|
125
|
-
}(
|
|
126
|
-
$.set(
|
|
107
|
+
}(n, d, ve);
|
|
108
|
+
$.set(n, p);
|
|
127
109
|
const _ = p.observe(E);
|
|
128
|
-
return K.forEach((
|
|
129
|
-
_(), $.delete(
|
|
110
|
+
return K.forEach((u) => fe(u.content, u.options)), K = [], () => {
|
|
111
|
+
_(), $.delete(n);
|
|
130
112
|
};
|
|
131
113
|
}, setProps(E) {
|
|
132
114
|
var p;
|
|
133
|
-
(p = $.get(
|
|
115
|
+
(p = $.get(n)) == null || p.setProps(E);
|
|
134
116
|
}, getSnapshot() {
|
|
135
117
|
var E;
|
|
136
|
-
return (E = $.get(
|
|
118
|
+
return (E = $.get(n)) == null ? void 0 : E.getSnapshot();
|
|
137
119
|
} };
|
|
138
120
|
}(e)).current;
|
|
139
|
-
|
|
140
|
-
const a = b.useSyncExternalStore(t,
|
|
141
|
-
return { getToastToRender: function(
|
|
121
|
+
r(e);
|
|
122
|
+
const a = b.useSyncExternalStore(t, o, o);
|
|
123
|
+
return { getToastToRender: function(d) {
|
|
142
124
|
if (!a)
|
|
143
125
|
return [];
|
|
144
|
-
const
|
|
126
|
+
const n = /* @__PURE__ */ new Map();
|
|
145
127
|
return e.newestOnTop && a.reverse(), a.forEach((E) => {
|
|
146
128
|
const { position: p } = E.props;
|
|
147
|
-
|
|
148
|
-
}), Array.from(
|
|
149
|
-
}, isToastActive:
|
|
129
|
+
n.has(p) || n.set(p, []), n.get(p).push(E);
|
|
130
|
+
}), Array.from(n, (E) => d(E[0], E[1]));
|
|
131
|
+
}, isToastActive: pe, count: a == null ? void 0 : a.length };
|
|
150
132
|
}
|
|
151
|
-
function
|
|
152
|
-
const [t,
|
|
133
|
+
function Ee(e) {
|
|
134
|
+
const [t, o] = b.useState(!1), [r, a] = b.useState(!1), d = b.useRef(null), n = b.useRef({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: E, pauseOnHover: p, closeToast: _, onClick: u, closeOnClick: C } = e;
|
|
153
135
|
var I, N;
|
|
154
136
|
function m() {
|
|
155
|
-
|
|
137
|
+
o(!0);
|
|
156
138
|
}
|
|
157
139
|
function c() {
|
|
158
|
-
|
|
140
|
+
o(!1);
|
|
159
141
|
}
|
|
160
|
-
function T(
|
|
161
|
-
const g =
|
|
162
|
-
|
|
142
|
+
function T(s) {
|
|
143
|
+
const g = d.current;
|
|
144
|
+
n.canDrag && g && (n.didMove = !0, t && c(), n.delta = e.draggableDirection === "x" ? s.clientX - n.start : s.clientY - n.start, n.start !== s.clientX && (n.canCloseOnClick = !1), g.style.transform = `translate3d(${e.draggableDirection === "x" ? `${n.delta}px, var(--y)` : `0, calc(${n.delta}px + var(--y))`},0)`, g.style.opacity = "" + (1 - Math.abs(n.delta / n.removalDistance)));
|
|
163
145
|
}
|
|
164
146
|
function f() {
|
|
165
147
|
document.removeEventListener("pointermove", T), document.removeEventListener("pointerup", f);
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
168
|
-
if (
|
|
148
|
+
const s = d.current;
|
|
149
|
+
if (n.canDrag && n.didMove && s) {
|
|
150
|
+
if (n.canDrag = !1, Math.abs(n.delta) > n.removalDistance)
|
|
169
151
|
return a(!0), e.closeToast(), void e.collapseAll();
|
|
170
|
-
|
|
152
|
+
s.style.transition = "transform 0.2s, opacity 0.2s", s.style.removeProperty("transform"), s.style.removeProperty("opacity");
|
|
171
153
|
}
|
|
172
154
|
}
|
|
173
|
-
(N = $.get((I = { id: e.toastId, containerId: e.containerId, fn:
|
|
155
|
+
(N = $.get((I = { id: e.toastId, containerId: e.containerId, fn: o }).containerId || 1)) == null || N.setToggle(I.id, I.fn), b.useEffect(() => {
|
|
174
156
|
if (e.pauseOnFocusLoss)
|
|
175
157
|
return document.hasFocus() || c(), window.addEventListener("focus", m), window.addEventListener("blur", c), () => {
|
|
176
158
|
window.removeEventListener("focus", m), window.removeEventListener("blur", c);
|
|
177
159
|
};
|
|
178
160
|
}, [e.pauseOnFocusLoss]);
|
|
179
|
-
const l = { onPointerDown: function(
|
|
180
|
-
if (e.draggable === !0 || e.draggable ===
|
|
181
|
-
|
|
182
|
-
const g =
|
|
183
|
-
|
|
161
|
+
const l = { onPointerDown: function(s) {
|
|
162
|
+
if (e.draggable === !0 || e.draggable === s.pointerType) {
|
|
163
|
+
n.didMove = !1, document.addEventListener("pointermove", T), document.addEventListener("pointerup", f);
|
|
164
|
+
const g = d.current;
|
|
165
|
+
n.canCloseOnClick = !0, n.canDrag = !0, g.style.transition = "none", e.draggableDirection === "x" ? (n.start = s.clientX, n.removalDistance = g.offsetWidth * (e.draggablePercent / 100)) : (n.start = s.clientY, n.removalDistance = g.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent) / 100);
|
|
184
166
|
}
|
|
185
|
-
}, onPointerUp: function(
|
|
186
|
-
const { top: g, bottom:
|
|
187
|
-
|
|
167
|
+
}, onPointerUp: function(s) {
|
|
168
|
+
const { top: g, bottom: M, left: O, right: L } = d.current.getBoundingClientRect();
|
|
169
|
+
s.nativeEvent.type !== "touchend" && e.pauseOnHover && s.clientX >= O && s.clientX <= L && s.clientY >= g && s.clientY <= M ? c() : m();
|
|
188
170
|
} };
|
|
189
|
-
return E && p && (l.onMouseEnter = c, e.stacked || (l.onMouseLeave = m)), C && (l.onClick = (
|
|
190
|
-
|
|
191
|
-
}), { playToast: m, pauseToast: c, isRunning: t, preventExitTransition:
|
|
171
|
+
return E && p && (l.onMouseEnter = c, e.stacked || (l.onMouseLeave = m)), C && (l.onClick = (s) => {
|
|
172
|
+
u && u(s), n.canCloseOnClick && _();
|
|
173
|
+
}), { playToast: m, pauseToast: c, isRunning: t, preventExitTransition: r, toastRef: d, eventHandlers: l };
|
|
192
174
|
}
|
|
193
|
-
function
|
|
194
|
-
let { delay: t, isRunning:
|
|
195
|
-
const N =
|
|
175
|
+
function Te(e) {
|
|
176
|
+
let { delay: t, isRunning: o, closeToast: r, type: a = "default", hide: d, className: n, style: E, controlledProgress: p, progress: _, rtl: u, isIn: C, theme: I } = e;
|
|
177
|
+
const N = d || p && _ === 0, m = { ...E, animationDuration: `${t}ms`, animationPlayState: o ? "running" : "paused" };
|
|
196
178
|
p && (m.transform = `scaleX(${_})`);
|
|
197
|
-
const c = F("Toastify__progress-bar", p ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${I}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl":
|
|
198
|
-
C &&
|
|
179
|
+
const c = F("Toastify__progress-bar", p ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${I}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": u }), T = k(n) ? n({ rtl: u, type: a, defaultClassName: c }) : F(c, n), f = { [p && _ >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: p && _ < 1 ? null : () => {
|
|
180
|
+
C && r();
|
|
199
181
|
} };
|
|
200
182
|
return y.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": N }, y.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${I} Toastify__progress-bar--${a}` }), y.createElement("div", { role: "progressbar", "aria-hidden": N ? "true" : "false", "aria-label": "notification timer", className: T, style: m, ...f }));
|
|
201
183
|
}
|
|
202
|
-
let
|
|
203
|
-
const
|
|
204
|
-
function
|
|
205
|
-
return e && (q(e.toastId) || J(e.toastId)) ? e.toastId :
|
|
184
|
+
let be = 1;
|
|
185
|
+
const me = () => "" + be++;
|
|
186
|
+
function Ie(e) {
|
|
187
|
+
return e && (q(e.toastId) || J(e.toastId)) ? e.toastId : me();
|
|
206
188
|
}
|
|
207
189
|
function G(e, t) {
|
|
208
|
-
return
|
|
190
|
+
return fe(e, t), t.toastId;
|
|
209
191
|
}
|
|
210
192
|
function oe(e, t) {
|
|
211
|
-
return { ...t, type: t && t.type || e, toastId:
|
|
193
|
+
return { ...t, type: t && t.type || e, toastId: Ie(t) };
|
|
212
194
|
}
|
|
213
195
|
function ee(e) {
|
|
214
|
-
return (t,
|
|
196
|
+
return (t, o) => G(t, oe(e, o));
|
|
215
197
|
}
|
|
216
198
|
function h(e, t) {
|
|
217
199
|
return G(e, oe("default", t));
|
|
218
200
|
}
|
|
219
|
-
h.loading = (e, t) => G(e, oe("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), h.promise = function(e, t,
|
|
220
|
-
let
|
|
221
|
-
a && (
|
|
222
|
-
const E = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, p = (
|
|
201
|
+
h.loading = (e, t) => G(e, oe("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), h.promise = function(e, t, o) {
|
|
202
|
+
let r, { pending: a, error: d, success: n } = t;
|
|
203
|
+
a && (r = q(a) ? h.loading(a, o) : h.loading(a.render, { ...o, ...a }));
|
|
204
|
+
const E = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, p = (u, C, I) => {
|
|
223
205
|
if (C == null)
|
|
224
|
-
return void h.dismiss(
|
|
225
|
-
const N = { type:
|
|
226
|
-
return
|
|
206
|
+
return void h.dismiss(r);
|
|
207
|
+
const N = { type: u, ...E, ...o, data: I }, m = q(C) ? { render: C } : C;
|
|
208
|
+
return r ? h.update(r, { ...N, ...m }) : h(m.render, { ...N, ...m }), I;
|
|
227
209
|
}, _ = k(e) ? e() : e;
|
|
228
|
-
return _.then((
|
|
210
|
+
return _.then((u) => p("success", n, u)).catch((u) => p("error", d, u)), _;
|
|
229
211
|
}, h.success = ee("success"), h.info = ee("info"), h.error = ee("error"), h.warning = ee("warning"), h.warn = h.warning, h.dark = (e, t) => G(e, oe("default", { theme: "dark", ...t })), h.dismiss = function(e) {
|
|
230
212
|
(function(t) {
|
|
231
|
-
var
|
|
232
|
-
if (
|
|
233
|
-
if (t == null || q(
|
|
234
|
-
$.forEach((
|
|
235
|
-
|
|
213
|
+
var o;
|
|
214
|
+
if (ue()) {
|
|
215
|
+
if (t == null || q(o = t) || J(o))
|
|
216
|
+
$.forEach((r) => {
|
|
217
|
+
r.removeToast(t);
|
|
236
218
|
});
|
|
237
219
|
else if (t && ("containerId" in t || "id" in t)) {
|
|
238
|
-
const
|
|
239
|
-
|
|
220
|
+
const r = $.get(t.containerId);
|
|
221
|
+
r ? r.removeToast(t.id) : $.forEach((a) => {
|
|
240
222
|
a.removeToast(t.id);
|
|
241
223
|
});
|
|
242
224
|
}
|
|
243
225
|
} else
|
|
244
|
-
K = K.filter((
|
|
226
|
+
K = K.filter((r) => t != null && r.options.toastId !== t);
|
|
245
227
|
})(e);
|
|
246
228
|
}, h.clearWaitingQueue = function(e) {
|
|
247
229
|
e === void 0 && (e = {}), $.forEach((t) => {
|
|
248
230
|
!t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
|
|
249
231
|
});
|
|
250
|
-
}, h.isActive =
|
|
232
|
+
}, h.isActive = pe, h.update = function(e, t) {
|
|
251
233
|
t === void 0 && (t = {});
|
|
252
|
-
const
|
|
253
|
-
var
|
|
254
|
-
let { containerId:
|
|
255
|
-
return (
|
|
234
|
+
const o = ((r, a) => {
|
|
235
|
+
var d;
|
|
236
|
+
let { containerId: n } = a;
|
|
237
|
+
return (d = $.get(n || 1)) == null ? void 0 : d.toasts.get(r);
|
|
256
238
|
})(e, t);
|
|
257
|
-
if (
|
|
258
|
-
const { props:
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
delete
|
|
239
|
+
if (o) {
|
|
240
|
+
const { props: r, content: a } = o, d = { delay: 100, ...r, ...t, toastId: t.toastId || e, updateId: me() };
|
|
241
|
+
d.toastId !== e && (d.staleId = e);
|
|
242
|
+
const n = d.render || a;
|
|
243
|
+
delete d.render, G(n, d);
|
|
262
244
|
}
|
|
263
245
|
}, h.done = (e) => {
|
|
264
246
|
h.update(e, { progress: 1 });
|
|
@@ -266,10 +248,10 @@ h.loading = (e, t) => G(e, oe("default", { isLoading: !0, autoClose: !1, closeOn
|
|
|
266
248
|
return le.add(e), () => {
|
|
267
249
|
le.delete(e);
|
|
268
250
|
};
|
|
269
|
-
}, h.play = (e) =>
|
|
270
|
-
const
|
|
271
|
-
let { theme: t, type:
|
|
272
|
-
return y.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${
|
|
251
|
+
}, h.play = (e) => de(!0, e), h.pause = (e) => de(!1, e);
|
|
252
|
+
const _e = typeof window < "u" ? b.useLayoutEffect : b.useEffect, te = (e) => {
|
|
253
|
+
let { theme: t, type: o, isLoading: r, ...a } = e;
|
|
254
|
+
return y.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${o})`, ...a });
|
|
273
255
|
}, re = { info: function(e) {
|
|
274
256
|
return y.createElement(te, { ...e }, y.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
275
257
|
}, warning: function(e) {
|
|
@@ -280,60 +262,59 @@ const Ce = typeof window < "u" ? b.useLayoutEffect : b.useEffect, te = (e) => {
|
|
|
280
262
|
return y.createElement(te, { ...e }, y.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
281
263
|
}, spinner: function() {
|
|
282
264
|
return y.createElement("div", { className: "Toastify__spinner" });
|
|
283
|
-
} },
|
|
284
|
-
const { isRunning: t, preventExitTransition:
|
|
285
|
-
let { theme:
|
|
286
|
-
const U = { theme:
|
|
287
|
-
return B === !1 || (k(B) ? V = B({ ...U, isLoading: x }) : b.isValidElement(B) ? V = b.cloneElement(B, U) : x ? V = re.spinner() : ((
|
|
288
|
-
}(e), H = !!L || !p, j = { closeToast: I, type:
|
|
265
|
+
} }, Ce = (e) => {
|
|
266
|
+
const { isRunning: t, preventExitTransition: o, toastRef: r, eventHandlers: a, playToast: d } = Ee(e), { closeButton: n, children: E, autoClose: p, onClick: _, type: u, hideProgressBar: C, closeToast: I, transition: N, position: m, className: c, style: T, bodyClassName: f, bodyStyle: l, progressClassName: s, progressStyle: g, updateId: M, role: O, progress: L, rtl: i, toastId: v, deleteToast: w, isIn: R, isLoading: S, closeOnClick: Y, theme: z } = e, Q = F("Toastify__toast", `Toastify__toast-theme--${z}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": i }, { "Toastify__toast--close-on-click": Y }), Z = k(c) ? c({ rtl: i, position: m, type: u, defaultClassName: Q }) : F(Q, c), D = function(X) {
|
|
267
|
+
let { theme: A, type: P, isLoading: x, icon: B } = X, V = null;
|
|
268
|
+
const U = { theme: A, type: P };
|
|
269
|
+
return B === !1 || (k(B) ? V = B({ ...U, isLoading: x }) : b.isValidElement(B) ? V = b.cloneElement(B, U) : x ? V = re.spinner() : ((ge) => ge in re)(P) && (V = re[P](U))), V;
|
|
270
|
+
}(e), H = !!L || !p, j = { closeToast: I, type: u, theme: z };
|
|
289
271
|
let W = null;
|
|
290
|
-
return
|
|
291
|
-
let { closeToast:
|
|
272
|
+
return n === !1 || (W = k(n) ? n(j) : b.isValidElement(n) ? b.cloneElement(n, j) : function(X) {
|
|
273
|
+
let { closeToast: A, theme: P, ariaLabel: x = "close" } = X;
|
|
292
274
|
return y.createElement("button", { className: `Toastify__close-button Toastify__close-button--${P}`, type: "button", onClick: (B) => {
|
|
293
|
-
B.stopPropagation(),
|
|
275
|
+
B.stopPropagation(), A(B);
|
|
294
276
|
}, "aria-label": x }, y.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, y.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
295
|
-
}(j)), y.createElement(N, { isIn: R, done: w, position: m, preventExitTransition:
|
|
277
|
+
}(j)), y.createElement(N, { isIn: R, done: w, position: m, preventExitTransition: o, nodeRef: r, playToast: d }, y.createElement("div", { id: v, onClick: _, "data-in": R, className: Z, ...a, style: T, ref: r }, y.createElement("div", { ...R && { role: O }, className: k(f) ? f({ type: u }) : F("Toastify__toast-body", f), style: l }, D != null && y.createElement("div", { className: F("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !S }) }, D), y.createElement("div", null, E)), W, y.createElement(Te, { ...M && !H ? { key: `pb-${M}` } : {}, rtl: i, theme: z, delay: p, isRunning: t, isIn: R, closeToast: I, hide: C, type: u, style: g, className: s, controlledProgress: H, progress: L || 0 })));
|
|
296
278
|
}, ae = function(e, t) {
|
|
297
279
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
298
|
-
},
|
|
280
|
+
}, Le = se(ae("bounce", !0));
|
|
299
281
|
se(ae("slide", !0));
|
|
300
282
|
se(ae("zoom"));
|
|
301
283
|
se(ae("flip"));
|
|
302
|
-
const
|
|
284
|
+
const Ne = { position: "top-right", transition: Le, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
303
285
|
function ke(e) {
|
|
304
|
-
let t = {
|
|
305
|
-
const
|
|
286
|
+
let t = { ...Ne, ...e };
|
|
287
|
+
const o = e.stacked, [r, a] = b.useState(!0), d = b.useRef(null), { getToastToRender: n, isToastActive: E, count: p } = he(t), { className: _, style: u, rtl: C, containerId: I } = t;
|
|
306
288
|
function N(c) {
|
|
307
289
|
const T = F("Toastify__toast-container", `Toastify__toast-container--${c}`, { "Toastify__toast-container--rtl": C });
|
|
308
290
|
return k(_) ? _({ position: c, rtl: C, defaultClassName: T }) : F(T, ne(_));
|
|
309
291
|
}
|
|
310
292
|
function m() {
|
|
311
|
-
|
|
293
|
+
o && (a(!0), h.play());
|
|
312
294
|
}
|
|
313
|
-
return
|
|
314
|
-
if (
|
|
295
|
+
return _e(() => {
|
|
296
|
+
if (o) {
|
|
315
297
|
var c;
|
|
316
|
-
const T =
|
|
317
|
-
let
|
|
318
|
-
Array.from(T).reverse().forEach((
|
|
319
|
-
const L =
|
|
320
|
-
L.classList.add("Toastify__toast--stacked"), O > 0 && (L.dataset.collapsed = `${
|
|
321
|
-
const i =
|
|
322
|
-
L.style.setProperty("--y", `${l ? i : -1 * i}px`), L.style.setProperty("--g", `${f}`), L.style.setProperty("--s", "" + (1 - (
|
|
298
|
+
const T = d.current.querySelectorAll('[data-in="true"]'), f = 12, l = (c = t.position) == null ? void 0 : c.includes("top");
|
|
299
|
+
let s = 0, g = 0;
|
|
300
|
+
Array.from(T).reverse().forEach((M, O) => {
|
|
301
|
+
const L = M;
|
|
302
|
+
L.classList.add("Toastify__toast--stacked"), O > 0 && (L.dataset.collapsed = `${r}`), L.dataset.pos || (L.dataset.pos = l ? "top" : "bot");
|
|
303
|
+
const i = s * (r ? 0.2 : 1) + (r ? 0 : f * O);
|
|
304
|
+
L.style.setProperty("--y", `${l ? i : -1 * i}px`), L.style.setProperty("--g", `${f}`), L.style.setProperty("--s", "" + (1 - (r ? g : 0))), s += L.offsetHeight, g += 0.025;
|
|
323
305
|
});
|
|
324
306
|
}
|
|
325
|
-
}, [
|
|
326
|
-
|
|
327
|
-
}, onMouseLeave: m },
|
|
328
|
-
const f = T.length ? { ...
|
|
307
|
+
}, [r, p, o]), y.createElement("div", { ref: d, className: "Toastify", id: I, onMouseEnter: () => {
|
|
308
|
+
o && (a(!1), h.pause());
|
|
309
|
+
}, onMouseLeave: m }, n((c, T) => {
|
|
310
|
+
const f = T.length ? { ...u } : { ...u, pointerEvents: "none" };
|
|
329
311
|
return y.createElement("div", { className: N(c), style: f, key: `container-${c}` }, T.map((l) => {
|
|
330
|
-
let { content:
|
|
331
|
-
return y.createElement(
|
|
312
|
+
let { content: s, props: g } = l;
|
|
313
|
+
return y.createElement(Ce, { ...g, stacked: o, collapseAll: m, isIn: E(g.toastId, g.containerId), style: g.style, key: `toast-${g.key}` }, s);
|
|
332
314
|
}));
|
|
333
315
|
}));
|
|
334
316
|
}
|
|
335
317
|
export {
|
|
336
318
|
h as B,
|
|
337
|
-
ke as Q
|
|
338
|
-
F as c
|
|
319
|
+
ke as Q
|
|
339
320
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function o(e) {
|
|
2
|
+
if (e === void 0)
|
|
3
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
function n(e, r) {
|
|
7
|
+
return n = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, i) {
|
|
8
|
+
return t.__proto__ = i, t;
|
|
9
|
+
}, n(e, r);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
n as _,
|
|
13
|
+
o as a
|
|
14
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as t, j as s } from "../react-to-web-component-
|
|
2
|
-
import { Q as e } from "../react-toastify.esm-
|
|
1
|
+
import { s as t, j as s } from "../react-to-web-component-D7SoYMky.js";
|
|
2
|
+
import { Q as e } from "../react-toastify.esm-Y1WvK90L.js";
|
|
3
3
|
const n = (o) => /* @__PURE__ */ s.jsx(
|
|
4
4
|
e,
|
|
5
5
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as a, j as t } from "../react-to-web-component-
|
|
2
|
-
import { Q as s } from "../react-toastify.esm-
|
|
1
|
+
import { s as a, j as t } from "../react-to-web-component-D7SoYMky.js";
|
|
2
|
+
import { Q as s } from "../react-toastify.esm-Y1WvK90L.js";
|
|
3
3
|
const i = ':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}', r = (o) => /* @__PURE__ */ t.jsx(
|
|
4
4
|
s,
|
|
5
5
|
{
|