@lanaco/lnc-react-ui 4.0.2 → 4.0.3
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/bundle-visualization.html +4842 -0
- package/dist/Accordion.cjs +1 -1
- package/dist/Accordion.js +55 -50
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +15 -15
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +11 -11
- package/dist/ActionsToolbar.cjs +2 -2
- package/dist/ActionsToolbar.js +16 -16
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +23 -23
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +23 -25
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +21 -14
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +28 -28
- package/dist/Button.cjs +1 -1
- package/dist/Button.js +21 -21
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +4 -4
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +5 -5
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +59 -59
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +8 -8
- package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
- package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +2 -2
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +5 -5
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +4 -4
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +6 -6
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +4 -4
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +15 -15
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +6 -6
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +4 -4
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +6 -6
- package/dist/DropdownMenu.cjs +7 -1
- package/dist/DropdownMenu.js +192 -10
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +4 -4
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +14 -14
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +30 -30
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +3 -3
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +5 -5
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +8 -9
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +31 -31
- package/dist/Grid.cjs +1 -1
- package/dist/Grid.js +2 -2
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +2 -2
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +1 -1
- package/dist/Icon.js +33 -10
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +33 -33
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +948 -936
- package/dist/KanbanActionsToolbar.cjs +2 -2
- package/dist/KanbanActionsToolbar.js +28 -28
- package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
- package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +5 -5
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +40 -40
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +46 -46
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +27 -27
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +9 -9
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +11 -11
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +7 -7
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +4 -4
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +4 -4
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +18 -18
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +9 -9
- package/dist/Notification.cjs +1 -83
- package/dist/Notification.js +3 -1077
- package/dist/NotificationContainer.cjs +37 -0
- package/dist/NotificationContainer.js +162 -0
- package/dist/NotificationMessage.cjs +47 -0
- package/dist/NotificationMessage.js +133 -0
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +5 -5
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +27 -27
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +14 -14
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.js +36 -0
- package/dist/PopoverClose.cjs +1 -0
- package/dist/PopoverClose.js +15 -0
- package/dist/PopoverContent.cjs +10 -0
- package/dist/PopoverContent.js +68 -0
- package/dist/PopoverContext.cjs +1 -0
- package/dist/PopoverContext.js +5 -0
- package/dist/PopoverDescription.cjs +1 -0
- package/dist/PopoverDescription.js +16 -0
- package/dist/PopoverHeading.cjs +1 -0
- package/dist/PopoverHeading.js +16 -0
- package/dist/PopoverTrigger.cjs +1 -0
- package/dist/PopoverTrigger.js +38 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +35 -24
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +3 -3
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +4 -4
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +4 -4
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +6 -6
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +4 -4
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +25 -20
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +14 -15
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +4 -4
- package/dist/TabItem.cjs +26 -0
- package/dist/TabItem.js +210 -0
- package/dist/Table.cjs +20 -20
- package/dist/Table.js +13 -12
- package/dist/TableView.cjs +8 -1
- package/dist/TableView.js +238 -9
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +3 -3
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +5 -5
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +5 -5
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +5 -5
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +9 -9
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -4
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +2 -2
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +11 -11
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +29 -29
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
- package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
- package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
- package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
- package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
- package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
- package/dist/index-BIlhCoy2.cjs +20 -0
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
- package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
- package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
- package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
- package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
- package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
- package/dist/index-DAOBjHnD.cjs +1 -0
- package/dist/index-DBXXH_TD.cjs +1 -0
- package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
- package/dist/index-DaiUAQVF.cjs +1 -0
- package/dist/index.cjs +1 -26
- package/dist/index.js +180 -376
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
- package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/usePopover.cjs +1 -0
- package/dist/usePopover.js +44 -0
- package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
- package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
- package/package.json +17 -5
- package/vite.config.js +16 -0
- package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
- package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
- package/dist/KanbanCard-ConTmu3w.cjs +0 -30
- package/dist/TableView-Cj5_fbSR.js +0 -481
- package/dist/TableView-D8ex512p.cjs +0 -19
- package/dist/index-BjdOz5Ok.cjs +0 -1
- package/dist/index-DXnSjbfJ.cjs +0 -20
- package/dist/index-Dzkd2i4n.cjs +0 -1
- package/dist/index-P-naJISQ.cjs +0 -1
package/dist/Notification.js
CHANGED
|
@@ -1,1079 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { P as E } from "./index-Ds9PUTwb.js";
|
|
4
|
-
import { n as xe } from "./emotion-styled.browser.esm-BZSYYThs.js";
|
|
5
|
-
import { r as Fe } from "./index-CZJEA84h.js";
|
|
6
|
-
import { a as Me, b as A, d as $e, c as je } from "./utils-DEke8iwo.js";
|
|
7
|
-
import { useTheme as ze } from "./ThemeProvider.js";
|
|
8
|
-
import He from "./Icon.js";
|
|
9
|
-
import Ue from "./Avatar.js";
|
|
10
|
-
import { u as We } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
|
|
11
|
-
function Pe(e) {
|
|
12
|
-
var t, n, o = "";
|
|
13
|
-
if (typeof e == "string" || typeof e == "number") o += e;
|
|
14
|
-
else if (typeof e == "object") if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (n = Pe(e[t])) && (o && (o += " "), o += n);
|
|
15
|
-
else for (t in e) e[t] && (o && (o += " "), o += t);
|
|
16
|
-
return o;
|
|
17
|
-
}
|
|
18
|
-
function H() {
|
|
19
|
-
for (var e, t, n = 0, o = ""; n < arguments.length; ) (e = arguments[n++]) && (t = Pe(e)) && (o && (o += " "), o += t);
|
|
20
|
-
return o;
|
|
21
|
-
}
|
|
22
|
-
function k() {
|
|
23
|
-
return k = Object.assign || function(e) {
|
|
24
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
25
|
-
var n = arguments[t];
|
|
26
|
-
for (var o in n)
|
|
27
|
-
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
28
|
-
}
|
|
29
|
-
return e;
|
|
30
|
-
}, k.apply(this, arguments);
|
|
31
|
-
}
|
|
32
|
-
function Le(e, t) {
|
|
33
|
-
if (e == null) return {};
|
|
34
|
-
var n = {}, o = Object.keys(e), s, c;
|
|
35
|
-
for (c = 0; c < o.length; c++)
|
|
36
|
-
s = o[c], !(t.indexOf(s) >= 0) && (n[s] = e[s]);
|
|
37
|
-
return n;
|
|
38
|
-
}
|
|
39
|
-
function ne(e) {
|
|
40
|
-
return typeof e == "number" && !isNaN(e);
|
|
41
|
-
}
|
|
42
|
-
function Z(e) {
|
|
43
|
-
return typeof e == "boolean";
|
|
44
|
-
}
|
|
45
|
-
function W(e) {
|
|
46
|
-
return typeof e == "string";
|
|
47
|
-
}
|
|
48
|
-
function B(e) {
|
|
49
|
-
return typeof e == "function";
|
|
50
|
-
}
|
|
51
|
-
function oe(e) {
|
|
52
|
-
return W(e) || B(e) ? e : null;
|
|
53
|
-
}
|
|
54
|
-
function ge(e) {
|
|
55
|
-
return e === 0 || e;
|
|
56
|
-
}
|
|
57
|
-
function Qe(e, t) {
|
|
58
|
-
return e === !1 || ne(e) && e > 0 ? e : t;
|
|
59
|
-
}
|
|
60
|
-
var Re = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
61
|
-
function fe(e) {
|
|
62
|
-
return K(e) || W(e) || B(e) || ne(e);
|
|
63
|
-
}
|
|
64
|
-
var Be = {
|
|
65
|
-
TOP_LEFT: "top-left",
|
|
66
|
-
TOP_RIGHT: "top-right",
|
|
67
|
-
TOP_CENTER: "top-center",
|
|
68
|
-
BOTTOM_LEFT: "bottom-left",
|
|
69
|
-
BOTTOM_RIGHT: "bottom-right",
|
|
70
|
-
BOTTOM_CENTER: "bottom-center"
|
|
71
|
-
}, M = {
|
|
72
|
-
INFO: "info",
|
|
73
|
-
SUCCESS: "success",
|
|
74
|
-
WARNING: "warning",
|
|
75
|
-
ERROR: "error",
|
|
76
|
-
DEFAULT: "default"
|
|
77
|
-
};
|
|
78
|
-
function qe(e, t, n) {
|
|
79
|
-
n === void 0 && (n = 300);
|
|
80
|
-
var o = e.scrollHeight, s = e.style;
|
|
81
|
-
requestAnimationFrame(function() {
|
|
82
|
-
s.minHeight = "initial", s.height = o + "px", s.transition = "all " + n + "ms", requestAnimationFrame(function() {
|
|
83
|
-
s.height = "0", s.padding = "0", s.margin = "0", setTimeout(t, n);
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
function Ve(e) {
|
|
88
|
-
var t = e.enter, n = e.exit, o = e.appendPosition, s = o === void 0 ? !1 : o, c = e.collapse, f = c === void 0 ? !0 : c, u = e.collapseDuration, i = u === void 0 ? 300 : u;
|
|
89
|
-
return function(r) {
|
|
90
|
-
var h = r.children, T = r.position, y = r.preventExitTransition, I = r.done, C = r.nodeRef, O = r.isIn, R = s ? t + "--" + T : t, P = s ? n + "--" + T : n, $ = te(), l = te(
|
|
91
|
-
0
|
|
92
|
-
/* Enter */
|
|
93
|
-
);
|
|
94
|
-
Ae(function() {
|
|
95
|
-
d();
|
|
96
|
-
}, []), U(function() {
|
|
97
|
-
O || (y ? x() : b());
|
|
98
|
-
}, [O]);
|
|
99
|
-
function d() {
|
|
100
|
-
var a = C.current;
|
|
101
|
-
$.current = a.className, a.className += " " + R, a.addEventListener("animationend", p);
|
|
102
|
-
}
|
|
103
|
-
function p(a) {
|
|
104
|
-
if (a.target === C.current) {
|
|
105
|
-
var v = C.current;
|
|
106
|
-
v.removeEventListener("animationend", p), l.current === 0 && (v.className = $.current);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function b() {
|
|
110
|
-
l.current = 1;
|
|
111
|
-
var a = C.current;
|
|
112
|
-
a.className += " " + P, a.addEventListener("animationend", x);
|
|
113
|
-
}
|
|
114
|
-
function x() {
|
|
115
|
-
var a = C.current;
|
|
116
|
-
a.removeEventListener("animationend", x), f ? qe(a, I, i) : I();
|
|
117
|
-
}
|
|
118
|
-
return D.createElement(D.Fragment, null, h);
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
var S = {
|
|
122
|
-
list: /* @__PURE__ */ new Map(),
|
|
123
|
-
emitQueue: /* @__PURE__ */ new Map(),
|
|
124
|
-
on: function(t, n) {
|
|
125
|
-
return this.list.has(t) || this.list.set(t, []), this.list.get(t).push(n), this;
|
|
126
|
-
},
|
|
127
|
-
off: function(t, n) {
|
|
128
|
-
if (n) {
|
|
129
|
-
var o = this.list.get(t).filter(function(s) {
|
|
130
|
-
return s !== n;
|
|
131
|
-
});
|
|
132
|
-
return this.list.set(t, o), this;
|
|
133
|
-
}
|
|
134
|
-
return this.list.delete(t), this;
|
|
135
|
-
},
|
|
136
|
-
cancelEmit: function(t) {
|
|
137
|
-
var n = this.emitQueue.get(t);
|
|
138
|
-
return n && (n.forEach(clearTimeout), this.emitQueue.delete(t)), this;
|
|
139
|
-
},
|
|
140
|
-
/**
|
|
141
|
-
* Enqueue the event at the end of the call stack
|
|
142
|
-
* Doing so let the user call toast as follow:
|
|
143
|
-
* toast('1')
|
|
144
|
-
* toast('2')
|
|
145
|
-
* toast('3')
|
|
146
|
-
* Without setTimemout the code above will not work
|
|
147
|
-
*/
|
|
148
|
-
emit: function(t) {
|
|
149
|
-
for (var n = this, o = arguments.length, s = new Array(o > 1 ? o - 1 : 0), c = 1; c < o; c++)
|
|
150
|
-
s[c - 1] = arguments[c];
|
|
151
|
-
this.list.has(t) && this.list.get(t).forEach(function(f) {
|
|
152
|
-
var u = setTimeout(function() {
|
|
153
|
-
f.apply(void 0, s);
|
|
154
|
-
}, 0);
|
|
155
|
-
n.emitQueue.has(t) || n.emitQueue.set(t, []), n.emitQueue.get(t).push(u);
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
function G(e, t) {
|
|
160
|
-
t === void 0 && (t = !1);
|
|
161
|
-
var n = te(e);
|
|
162
|
-
return U(function() {
|
|
163
|
-
t && (n.current = e);
|
|
164
|
-
}), n.current;
|
|
165
|
-
}
|
|
166
|
-
function Ge(e, t) {
|
|
167
|
-
switch (t.type) {
|
|
168
|
-
case 0:
|
|
169
|
-
return [].concat(e, [t.toastId]).filter(function(n) {
|
|
170
|
-
return n !== t.staleId;
|
|
171
|
-
});
|
|
172
|
-
case 1:
|
|
173
|
-
return ge(t.toastId) ? e.filter(function(n) {
|
|
174
|
-
return n !== t.toastId;
|
|
175
|
-
}) : [];
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
var Ye = ["delay", "staleId"];
|
|
179
|
-
function Ke(e) {
|
|
180
|
-
var t = Ce(function(l) {
|
|
181
|
-
return l + 1;
|
|
182
|
-
}, 0), n = t[1], o = Ce(Ge, []), s = o[0], c = o[1], f = te(null), u = G(0), i = G([]), g = G({}), r = G({
|
|
183
|
-
toastKey: 1,
|
|
184
|
-
displayedToast: 0,
|
|
185
|
-
props: e,
|
|
186
|
-
containerId: null,
|
|
187
|
-
isToastActive: h,
|
|
188
|
-
getToast: function(d) {
|
|
189
|
-
return g[d] || null;
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
U(function() {
|
|
193
|
-
return r.containerId = e.containerId, S.cancelEmit(
|
|
194
|
-
3
|
|
195
|
-
/* WillUnmount */
|
|
196
|
-
).on(
|
|
197
|
-
0,
|
|
198
|
-
O
|
|
199
|
-
).on(
|
|
200
|
-
1,
|
|
201
|
-
function(l) {
|
|
202
|
-
return f.current && y(l);
|
|
203
|
-
}
|
|
204
|
-
).on(
|
|
205
|
-
5,
|
|
206
|
-
T
|
|
207
|
-
).emit(
|
|
208
|
-
2,
|
|
209
|
-
r
|
|
210
|
-
), function() {
|
|
211
|
-
return S.emit(
|
|
212
|
-
3,
|
|
213
|
-
r
|
|
214
|
-
);
|
|
215
|
-
};
|
|
216
|
-
}, []), U(function() {
|
|
217
|
-
r.isToastActive = h, r.displayedToast = s.length, S.emit(
|
|
218
|
-
4,
|
|
219
|
-
s.length,
|
|
220
|
-
e.containerId
|
|
221
|
-
);
|
|
222
|
-
}, [s]), U(function() {
|
|
223
|
-
r.props = e;
|
|
224
|
-
});
|
|
225
|
-
function h(l) {
|
|
226
|
-
return s.indexOf(l) !== -1;
|
|
227
|
-
}
|
|
228
|
-
function T(l) {
|
|
229
|
-
var d = l.containerId, p = r.props.limit;
|
|
230
|
-
p && (!d || r.containerId === d) && (u -= i.length, i = []);
|
|
231
|
-
}
|
|
232
|
-
function y(l) {
|
|
233
|
-
c({
|
|
234
|
-
type: 1,
|
|
235
|
-
toastId: l
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
function I() {
|
|
239
|
-
var l = i.shift(), d = l.toastContent, p = l.toastProps, b = l.staleId;
|
|
240
|
-
R(d, p, b);
|
|
241
|
-
}
|
|
242
|
-
function C(l) {
|
|
243
|
-
var d = l.containerId, p = l.toastId, b = l.updateId;
|
|
244
|
-
return !!(!f.current || r.props.enableMultiContainer && d !== r.props.containerId || g[p] && b == null);
|
|
245
|
-
}
|
|
246
|
-
function O(l, d) {
|
|
247
|
-
var p, b = d.delay, x = d.staleId, a = Le(d, Ye);
|
|
248
|
-
if (!(!fe(l) || C(a))) {
|
|
249
|
-
var v = a.toastId, w = a.updateId, V = a.data, m = r.props, F = function() {
|
|
250
|
-
return y(v);
|
|
251
|
-
}, X = a.updateId == null;
|
|
252
|
-
X && u++;
|
|
253
|
-
var L = {
|
|
254
|
-
toastId: v,
|
|
255
|
-
updateId: w,
|
|
256
|
-
isLoading: a.isLoading,
|
|
257
|
-
theme: a.theme || m.theme,
|
|
258
|
-
icon: (p = a.icon) != null ? p : m.icon,
|
|
259
|
-
isIn: !1,
|
|
260
|
-
key: a.key || r.toastKey++,
|
|
261
|
-
type: a.type,
|
|
262
|
-
closeToast: F,
|
|
263
|
-
closeButton: a.closeButton,
|
|
264
|
-
rtl: m.rtl,
|
|
265
|
-
position: a.position || m.position,
|
|
266
|
-
transition: a.transition || m.transition,
|
|
267
|
-
className: oe(a.className || m.toastClassName),
|
|
268
|
-
bodyClassName: oe(a.bodyClassName || m.bodyClassName),
|
|
269
|
-
style: a.style || m.toastStyle,
|
|
270
|
-
bodyStyle: a.bodyStyle || m.bodyStyle,
|
|
271
|
-
onClick: a.onClick || m.onClick,
|
|
272
|
-
pauseOnHover: Z(a.pauseOnHover) ? a.pauseOnHover : m.pauseOnHover,
|
|
273
|
-
pauseOnFocusLoss: Z(a.pauseOnFocusLoss) ? a.pauseOnFocusLoss : m.pauseOnFocusLoss,
|
|
274
|
-
draggable: Z(a.draggable) ? a.draggable : m.draggable,
|
|
275
|
-
draggablePercent: ne(a.draggablePercent) ? a.draggablePercent : m.draggablePercent,
|
|
276
|
-
draggableDirection: a.draggableDirection || m.draggableDirection,
|
|
277
|
-
closeOnClick: Z(a.closeOnClick) ? a.closeOnClick : m.closeOnClick,
|
|
278
|
-
progressClassName: oe(a.progressClassName || m.progressClassName),
|
|
279
|
-
progressStyle: a.progressStyle || m.progressStyle,
|
|
280
|
-
autoClose: a.isLoading ? !1 : Qe(a.autoClose, m.autoClose),
|
|
281
|
-
hideProgressBar: Z(a.hideProgressBar) ? a.hideProgressBar : m.hideProgressBar,
|
|
282
|
-
progress: a.progress,
|
|
283
|
-
role: W(a.role) ? a.role : m.role,
|
|
284
|
-
deleteToast: function() {
|
|
285
|
-
P(v);
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
B(a.onOpen) && (L.onOpen = a.onOpen), B(a.onClose) && (L.onClose = a.onClose), L.draggableDirection === "y" && L.draggablePercent === 80 && (L.draggablePercent *= 1.5);
|
|
289
|
-
var j = m.closeButton;
|
|
290
|
-
a.closeButton === !1 || fe(a.closeButton) ? j = a.closeButton : a.closeButton === !0 && (j = fe(m.closeButton) ? m.closeButton : !0), L.closeButton = j;
|
|
291
|
-
var z = l;
|
|
292
|
-
K(l) && !W(l.type) ? z = me(l, {
|
|
293
|
-
closeToast: F,
|
|
294
|
-
toastProps: L,
|
|
295
|
-
data: V
|
|
296
|
-
}) : B(l) && (z = l({
|
|
297
|
-
closeToast: F,
|
|
298
|
-
toastProps: L,
|
|
299
|
-
data: V
|
|
300
|
-
})), m.limit && m.limit > 0 && u > m.limit && X ? i.push({
|
|
301
|
-
toastContent: z,
|
|
302
|
-
toastProps: L,
|
|
303
|
-
staleId: x
|
|
304
|
-
}) : ne(b) && b > 0 ? setTimeout(function() {
|
|
305
|
-
R(z, L, x);
|
|
306
|
-
}, b) : R(z, L, x);
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
function R(l, d, p) {
|
|
310
|
-
var b = d.toastId;
|
|
311
|
-
p && delete g[p], g[b] = {
|
|
312
|
-
content: l,
|
|
313
|
-
props: d
|
|
314
|
-
}, c({
|
|
315
|
-
type: 0,
|
|
316
|
-
toastId: b,
|
|
317
|
-
staleId: p
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
function P(l) {
|
|
321
|
-
delete g[l];
|
|
322
|
-
var d = i.length;
|
|
323
|
-
if (u = ge(l) ? u - 1 : u - r.displayedToast, u < 0 && (u = 0), d > 0) {
|
|
324
|
-
var p = ge(l) ? 1 : r.props.limit;
|
|
325
|
-
if (d === 1 || p === 1)
|
|
326
|
-
r.displayedToast++, I();
|
|
327
|
-
else {
|
|
328
|
-
var b = p > d ? d : p;
|
|
329
|
-
r.displayedToast = b;
|
|
330
|
-
for (var x = 0; x < b; x++)
|
|
331
|
-
I();
|
|
332
|
-
}
|
|
333
|
-
} else
|
|
334
|
-
n();
|
|
335
|
-
}
|
|
336
|
-
function $(l) {
|
|
337
|
-
for (var d = {}, p = e.newestOnTop ? Object.keys(g).reverse() : Object.keys(g), b = 0; b < p.length; b++) {
|
|
338
|
-
var x = g[p[b]], a = x.props.position;
|
|
339
|
-
d[a] || (d[a] = []), d[a].push(x);
|
|
340
|
-
}
|
|
341
|
-
return Object.keys(d).map(function(v) {
|
|
342
|
-
return l(v, d[v]);
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
return {
|
|
346
|
-
getToastToRender: $,
|
|
347
|
-
collection: g,
|
|
348
|
-
containerRef: f,
|
|
349
|
-
isToastActive: h
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
function Ne(e) {
|
|
353
|
-
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientX : e.clientX;
|
|
354
|
-
}
|
|
355
|
-
function Oe(e) {
|
|
356
|
-
return e.targetTouches && e.targetTouches.length >= 1 ? e.targetTouches[0].clientY : e.clientY;
|
|
357
|
-
}
|
|
358
|
-
function Xe(e) {
|
|
359
|
-
var t = Ee(!0), n = t[0], o = t[1], s = Ee(!1), c = s[0], f = s[1], u = te(null), i = G({
|
|
360
|
-
start: 0,
|
|
361
|
-
x: 0,
|
|
362
|
-
y: 0,
|
|
363
|
-
delta: 0,
|
|
364
|
-
removalDistance: 0,
|
|
365
|
-
canCloseOnClick: !0,
|
|
366
|
-
canDrag: !1,
|
|
367
|
-
boundingRect: null
|
|
368
|
-
}), g = G(e, !0), r = e.autoClose, h = e.pauseOnHover, T = e.closeToast, y = e.onClick, I = e.closeOnClick;
|
|
369
|
-
U(function() {
|
|
370
|
-
return B(e.onOpen) && e.onOpen(K(e.children) && e.children.props), function() {
|
|
371
|
-
B(g.onClose) && g.onClose(K(g.children) && g.children.props);
|
|
372
|
-
};
|
|
373
|
-
}, []), U(function() {
|
|
374
|
-
return e.draggable && d(), function() {
|
|
375
|
-
e.draggable && p();
|
|
376
|
-
};
|
|
377
|
-
}, [e.draggable]), U(function() {
|
|
378
|
-
return e.pauseOnFocusLoss && $(), function() {
|
|
379
|
-
e.pauseOnFocusLoss && l();
|
|
380
|
-
};
|
|
381
|
-
}, [e.pauseOnFocusLoss]);
|
|
382
|
-
function C(v) {
|
|
383
|
-
if (e.draggable) {
|
|
384
|
-
var w = u.current;
|
|
385
|
-
i.canCloseOnClick = !0, i.canDrag = !0, i.boundingRect = w.getBoundingClientRect(), w.style.transition = "", i.x = Ne(v.nativeEvent), i.y = Oe(v.nativeEvent), e.draggableDirection === "x" ? (i.start = i.x, i.removalDistance = w.offsetWidth * (e.draggablePercent / 100)) : (i.start = i.y, i.removalDistance = w.offsetHeight * (e.draggablePercent / 100));
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
function O() {
|
|
389
|
-
if (i.boundingRect) {
|
|
390
|
-
var v = i.boundingRect, w = v.top, V = v.bottom, m = v.left, F = v.right;
|
|
391
|
-
e.pauseOnHover && i.x >= m && i.x <= F && i.y >= w && i.y <= V ? P() : R();
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
function R() {
|
|
395
|
-
o(!0);
|
|
396
|
-
}
|
|
397
|
-
function P() {
|
|
398
|
-
o(!1);
|
|
399
|
-
}
|
|
400
|
-
function $() {
|
|
401
|
-
document.hasFocus() || P(), window.addEventListener("focus", R), window.addEventListener("blur", P);
|
|
402
|
-
}
|
|
403
|
-
function l() {
|
|
404
|
-
window.removeEventListener("focus", R), window.removeEventListener("blur", P);
|
|
405
|
-
}
|
|
406
|
-
function d() {
|
|
407
|
-
document.addEventListener("mousemove", b), document.addEventListener("mouseup", x), document.addEventListener("touchmove", b), document.addEventListener("touchend", x);
|
|
408
|
-
}
|
|
409
|
-
function p() {
|
|
410
|
-
document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", x), document.removeEventListener("touchmove", b), document.removeEventListener("touchend", x);
|
|
411
|
-
}
|
|
412
|
-
function b(v) {
|
|
413
|
-
if (i.canDrag) {
|
|
414
|
-
v.preventDefault();
|
|
415
|
-
var w = u.current;
|
|
416
|
-
n && P(), i.x = Ne(v), i.y = Oe(v), e.draggableDirection === "x" ? i.delta = i.x - i.start : i.delta = i.y - i.start, i.start !== i.x && (i.canCloseOnClick = !1), w.style.transform = "translate" + e.draggableDirection + "(" + i.delta + "px)", w.style.opacity = "" + (1 - Math.abs(i.delta / i.removalDistance));
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
function x() {
|
|
420
|
-
var v = u.current;
|
|
421
|
-
if (i.canDrag) {
|
|
422
|
-
if (i.canDrag = !1, Math.abs(i.delta) > i.removalDistance) {
|
|
423
|
-
f(!0), e.closeToast();
|
|
424
|
-
return;
|
|
425
|
-
}
|
|
426
|
-
v.style.transition = "transform 0.2s, opacity 0.2s", v.style.transform = "translate" + e.draggableDirection + "(0)", v.style.opacity = "1";
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
var a = {
|
|
430
|
-
onMouseDown: C,
|
|
431
|
-
onTouchStart: C,
|
|
432
|
-
onMouseUp: O,
|
|
433
|
-
onTouchEnd: O
|
|
434
|
-
};
|
|
435
|
-
return r && h && (a.onMouseEnter = P, a.onMouseLeave = R), I && (a.onClick = function(v) {
|
|
436
|
-
y && y(v), i.canCloseOnClick && T();
|
|
437
|
-
}), {
|
|
438
|
-
playToast: R,
|
|
439
|
-
pauseToast: P,
|
|
440
|
-
isRunning: n,
|
|
441
|
-
preventExitTransition: c,
|
|
442
|
-
toastRef: u,
|
|
443
|
-
eventHandlers: a
|
|
444
|
-
};
|
|
445
|
-
}
|
|
446
|
-
function we(e) {
|
|
447
|
-
var t = e.closeToast, n = e.theme, o = e.ariaLabel, s = o === void 0 ? "close" : o;
|
|
448
|
-
return _("button", {
|
|
449
|
-
className: "Toastify__close-button Toastify__close-button--" + n,
|
|
450
|
-
type: "button",
|
|
451
|
-
onClick: function(f) {
|
|
452
|
-
f.stopPropagation(), t(f);
|
|
453
|
-
},
|
|
454
|
-
"aria-label": s
|
|
455
|
-
}, _("svg", {
|
|
456
|
-
"aria-hidden": "true",
|
|
457
|
-
viewBox: "0 0 14 16"
|
|
458
|
-
}, _("path", {
|
|
459
|
-
fillRule: "evenodd",
|
|
460
|
-
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"
|
|
461
|
-
})));
|
|
462
|
-
}
|
|
463
|
-
function _e(e) {
|
|
464
|
-
var t, n, o = e.delay, s = e.isRunning, c = e.closeToast, f = e.type, u = e.hide, i = e.className, g = e.style, r = e.controlledProgress, h = e.progress, T = e.rtl, y = e.isIn, I = e.theme, C = k({}, g, {
|
|
465
|
-
animationDuration: o + "ms",
|
|
466
|
-
animationPlayState: s ? "running" : "paused",
|
|
467
|
-
opacity: u ? 0 : 1
|
|
468
|
-
});
|
|
469
|
-
r && (C.transform = "scaleX(" + h + ")");
|
|
470
|
-
var O = H("Toastify__progress-bar", r ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", "Toastify__progress-bar-theme--" + I, "Toastify__progress-bar--" + f, (t = {}, t["Toastify__progress-bar--rtl"] = T, t)), R = B(i) ? i({
|
|
471
|
-
rtl: T,
|
|
472
|
-
type: f,
|
|
473
|
-
defaultClassName: O
|
|
474
|
-
}) : H(O, i), P = (n = {}, n[r && h >= 1 ? "onTransitionEnd" : "onAnimationEnd"] = r && h < 1 ? null : function() {
|
|
475
|
-
y && c();
|
|
476
|
-
}, n);
|
|
477
|
-
return _("div", Object.assign({
|
|
478
|
-
role: "progressbar",
|
|
479
|
-
"aria-hidden": u ? "true" : "false",
|
|
480
|
-
"aria-label": "notification timer",
|
|
481
|
-
className: R,
|
|
482
|
-
style: C
|
|
483
|
-
}, P));
|
|
484
|
-
}
|
|
485
|
-
_e.defaultProps = {
|
|
486
|
-
type: M.DEFAULT,
|
|
487
|
-
hide: !1
|
|
488
|
-
};
|
|
489
|
-
var Je = ["theme", "type"], ie = function(t) {
|
|
490
|
-
var n = t.theme, o = t.type, s = Le(t, Je);
|
|
491
|
-
return D.createElement("svg", Object.assign({
|
|
492
|
-
viewBox: "0 0 24 24",
|
|
493
|
-
width: "100%",
|
|
494
|
-
height: "100%",
|
|
495
|
-
fill: n === "colored" ? "currentColor" : "var(--toastify-icon-color-" + o + ")"
|
|
496
|
-
}, s));
|
|
497
|
-
};
|
|
498
|
-
function Ze(e) {
|
|
499
|
-
return D.createElement(ie, Object.assign({}, e), D.createElement("path", {
|
|
500
|
-
d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"
|
|
501
|
-
}));
|
|
502
|
-
}
|
|
503
|
-
function et(e) {
|
|
504
|
-
return D.createElement(ie, Object.assign({}, e), D.createElement("path", {
|
|
505
|
-
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"
|
|
506
|
-
}));
|
|
507
|
-
}
|
|
508
|
-
function tt(e) {
|
|
509
|
-
return D.createElement(ie, Object.assign({}, e), D.createElement("path", {
|
|
510
|
-
d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"
|
|
511
|
-
}));
|
|
512
|
-
}
|
|
513
|
-
function nt(e) {
|
|
514
|
-
return D.createElement(ie, Object.assign({}, e), D.createElement("path", {
|
|
515
|
-
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"
|
|
516
|
-
}));
|
|
517
|
-
}
|
|
518
|
-
function at() {
|
|
519
|
-
return D.createElement("div", {
|
|
520
|
-
className: "Toastify__spinner"
|
|
521
|
-
});
|
|
522
|
-
}
|
|
523
|
-
var Ie = {
|
|
524
|
-
info: et,
|
|
525
|
-
warning: Ze,
|
|
526
|
-
success: tt,
|
|
527
|
-
error: nt,
|
|
528
|
-
spinner: at
|
|
529
|
-
}, ot = function(t) {
|
|
530
|
-
var n, o, s = Xe(t), c = s.isRunning, f = s.preventExitTransition, u = s.toastRef, i = s.eventHandlers, g = t.closeButton, r = t.children, h = t.autoClose, T = t.onClick, y = t.type, I = t.hideProgressBar, C = t.closeToast, O = t.transition, R = t.position, P = t.className, $ = t.style, l = t.bodyClassName, d = t.bodyStyle, p = t.progressClassName, b = t.progressStyle, x = t.updateId, a = t.role, v = t.progress, w = t.rtl, V = t.toastId, m = t.deleteToast, F = t.isIn, X = t.isLoading, L = t.icon, j = t.theme, z = H("Toastify__toast", "Toastify__toast-theme--" + j, "Toastify__toast--" + y, (n = {}, n["Toastify__toast--rtl"] = w, n)), le = B(P) ? P({
|
|
531
|
-
rtl: w,
|
|
532
|
-
position: R,
|
|
533
|
-
type: y,
|
|
534
|
-
defaultClassName: z
|
|
535
|
-
}) : H(z, P), ce = !!v, pe = Ie[y], ue = {
|
|
536
|
-
theme: j,
|
|
537
|
-
type: y
|
|
538
|
-
}, Q = pe && pe(ue);
|
|
539
|
-
L === !1 ? Q = void 0 : B(L) ? Q = L(ue) : K(L) ? Q = me(L, ue) : W(L) ? Q = L : X && (Q = Ie.spinner());
|
|
540
|
-
function Se(J) {
|
|
541
|
-
if (J) {
|
|
542
|
-
var be = {
|
|
543
|
-
closeToast: C,
|
|
544
|
-
type: y,
|
|
545
|
-
theme: j
|
|
546
|
-
};
|
|
547
|
-
if (B(J)) return J(be);
|
|
548
|
-
if (K(J)) return me(J, be);
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
return _(O, {
|
|
552
|
-
isIn: F,
|
|
553
|
-
done: m,
|
|
554
|
-
position: R,
|
|
555
|
-
preventExitTransition: f,
|
|
556
|
-
nodeRef: u
|
|
557
|
-
}, _("div", Object.assign({
|
|
558
|
-
id: V,
|
|
559
|
-
onClick: T,
|
|
560
|
-
className: le
|
|
561
|
-
}, i, {
|
|
562
|
-
style: $,
|
|
563
|
-
ref: u
|
|
564
|
-
}), _("div", Object.assign({}, F && {
|
|
565
|
-
role: a
|
|
566
|
-
}, {
|
|
567
|
-
className: B(l) ? l({
|
|
568
|
-
type: y
|
|
569
|
-
}) : H("Toastify__toast-body", l),
|
|
570
|
-
style: d
|
|
571
|
-
}), Q && _("div", {
|
|
572
|
-
className: H("Toastify__toast-icon", (o = {}, o["Toastify--animate-icon Toastify__zoom-enter"] = !X, o))
|
|
573
|
-
}, Q), _("div", null, r)), Se(g), (h || ce) && _(_e, Object.assign({}, x && !ce ? {
|
|
574
|
-
key: "pb-" + x
|
|
575
|
-
} : {}, {
|
|
576
|
-
rtl: w,
|
|
577
|
-
theme: j,
|
|
578
|
-
delay: h,
|
|
579
|
-
isRunning: c,
|
|
580
|
-
isIn: F,
|
|
581
|
-
closeToast: C,
|
|
582
|
-
hide: I,
|
|
583
|
-
type: y,
|
|
584
|
-
style: b,
|
|
585
|
-
className: p,
|
|
586
|
-
controlledProgress: ce,
|
|
587
|
-
progress: v
|
|
588
|
-
}))));
|
|
589
|
-
}, it = /* @__PURE__ */ Ve({
|
|
590
|
-
enter: "Toastify--animate Toastify__bounce-enter",
|
|
591
|
-
exit: "Toastify--animate Toastify__bounce-exit",
|
|
592
|
-
appendPosition: !0
|
|
593
|
-
}), Te = function(t) {
|
|
594
|
-
var n = Ke(t), o = n.getToastToRender, s = n.containerRef, c = n.isToastActive, f = t.className, u = t.style, i = t.rtl, g = t.containerId;
|
|
595
|
-
function r(h) {
|
|
596
|
-
var T, y = H("Toastify__toast-container", "Toastify__toast-container--" + h, (T = {}, T["Toastify__toast-container--rtl"] = i, T));
|
|
597
|
-
return B(f) ? f({
|
|
598
|
-
position: h,
|
|
599
|
-
rtl: i,
|
|
600
|
-
defaultClassName: y
|
|
601
|
-
}) : H(y, oe(f));
|
|
602
|
-
}
|
|
603
|
-
return _("div", {
|
|
604
|
-
ref: s,
|
|
605
|
-
className: "Toastify",
|
|
606
|
-
id: g
|
|
607
|
-
}, o(function(h, T) {
|
|
608
|
-
var y = T.length === 0 ? k({}, u, {
|
|
609
|
-
pointerEvents: "none"
|
|
610
|
-
}) : k({}, u);
|
|
611
|
-
return _("div", {
|
|
612
|
-
className: r(h),
|
|
613
|
-
style: y,
|
|
614
|
-
key: "container-" + h
|
|
615
|
-
}, T.map(function(I) {
|
|
616
|
-
var C = I.content, O = I.props;
|
|
617
|
-
return _(ot, Object.assign({}, O, {
|
|
618
|
-
isIn: c(O.toastId),
|
|
619
|
-
key: "toast-" + O.key,
|
|
620
|
-
closeButton: O.closeButton === !0 ? we : O.closeButton
|
|
621
|
-
}), C);
|
|
622
|
-
}));
|
|
623
|
-
}));
|
|
624
|
-
};
|
|
625
|
-
Te.defaultProps = {
|
|
626
|
-
position: Be.TOP_RIGHT,
|
|
627
|
-
transition: it,
|
|
628
|
-
rtl: !1,
|
|
629
|
-
autoClose: 5e3,
|
|
630
|
-
hideProgressBar: !1,
|
|
631
|
-
closeButton: we,
|
|
632
|
-
pauseOnHover: !0,
|
|
633
|
-
pauseOnFocusLoss: !0,
|
|
634
|
-
closeOnClick: !0,
|
|
635
|
-
newestOnTop: !1,
|
|
636
|
-
draggable: !0,
|
|
637
|
-
draggablePercent: 80,
|
|
638
|
-
draggableDirection: "x",
|
|
639
|
-
role: "alert",
|
|
640
|
-
theme: "light"
|
|
641
|
-
};
|
|
642
|
-
var Y = /* @__PURE__ */ new Map(), ve, ee, De, ye = [], he = !1;
|
|
643
|
-
function st() {
|
|
644
|
-
return Y.size > 0;
|
|
645
|
-
}
|
|
646
|
-
function rt(e, t) {
|
|
647
|
-
var n = t.containerId, o = Y.get(n || ve);
|
|
648
|
-
return o ? o.getToast(e) : null;
|
|
649
|
-
}
|
|
650
|
-
function ke() {
|
|
651
|
-
return Math.random().toString(36).substr(2, 9);
|
|
652
|
-
}
|
|
653
|
-
function lt(e) {
|
|
654
|
-
return e && (W(e.toastId) || ne(e.toastId)) ? e.toastId : ke();
|
|
655
|
-
}
|
|
656
|
-
function ae(e, t) {
|
|
657
|
-
return st() ? S.emit(
|
|
658
|
-
0,
|
|
659
|
-
e,
|
|
660
|
-
t
|
|
661
|
-
) : (ye.push({
|
|
662
|
-
content: e,
|
|
663
|
-
options: t
|
|
664
|
-
}), he && Re && (he = !1, ee = document.createElement("div"), document.body.appendChild(ee), Fe.render(_(Te, Object.assign({}, De)), ee))), t.toastId;
|
|
665
|
-
}
|
|
666
|
-
function se(e, t) {
|
|
667
|
-
return k({}, t, {
|
|
668
|
-
type: t && t.type || e,
|
|
669
|
-
toastId: lt(t)
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
var re = function(t) {
|
|
673
|
-
return function(n, o) {
|
|
674
|
-
return ae(n, se(t, o));
|
|
675
|
-
};
|
|
676
|
-
}, N = function(t, n) {
|
|
677
|
-
return ae(t, se(M.DEFAULT, n));
|
|
678
|
-
};
|
|
679
|
-
N.loading = function(e, t) {
|
|
680
|
-
return ae(e, se(M.DEFAULT, k({
|
|
681
|
-
isLoading: !0,
|
|
682
|
-
autoClose: !1,
|
|
683
|
-
closeOnClick: !1,
|
|
684
|
-
closeButton: !1,
|
|
685
|
-
draggable: !1
|
|
686
|
-
}, t)));
|
|
687
|
-
};
|
|
688
|
-
function ct(e, t, n) {
|
|
689
|
-
var o = t.pending, s = t.error, c = t.success, f;
|
|
690
|
-
o && (f = W(o) ? N.loading(o, n) : N.loading(o.render, k({}, n, o)));
|
|
691
|
-
var u = {
|
|
692
|
-
isLoading: null,
|
|
693
|
-
autoClose: null,
|
|
694
|
-
closeOnClick: null,
|
|
695
|
-
closeButton: null,
|
|
696
|
-
draggable: null
|
|
697
|
-
}, i = function(h, T, y) {
|
|
698
|
-
var I = k({
|
|
699
|
-
type: h
|
|
700
|
-
}, u, n, {
|
|
701
|
-
data: y
|
|
702
|
-
}), C = W(T) ? {
|
|
703
|
-
render: T
|
|
704
|
-
} : T;
|
|
705
|
-
return f ? N.update(f, k({}, I, C)) : N(C.render, k({}, I, C)), y;
|
|
706
|
-
}, g = B(e) ? e() : e;
|
|
707
|
-
return g.then(function(r) {
|
|
708
|
-
return c && i("success", c, r);
|
|
709
|
-
}).catch(function(r) {
|
|
710
|
-
return s && i("error", s, r);
|
|
711
|
-
}), g;
|
|
712
|
-
}
|
|
713
|
-
N.promise = ct;
|
|
714
|
-
N.success = /* @__PURE__ */ re(M.SUCCESS);
|
|
715
|
-
N.info = /* @__PURE__ */ re(M.INFO);
|
|
716
|
-
N.error = /* @__PURE__ */ re(M.ERROR);
|
|
717
|
-
N.warning = /* @__PURE__ */ re(M.WARNING);
|
|
718
|
-
N.warn = N.warning;
|
|
719
|
-
N.dark = function(e, t) {
|
|
720
|
-
return ae(e, se(M.DEFAULT, k({
|
|
721
|
-
theme: "dark"
|
|
722
|
-
}, t)));
|
|
723
|
-
};
|
|
724
|
-
N.dismiss = function(e) {
|
|
725
|
-
return S.emit(
|
|
726
|
-
1,
|
|
727
|
-
e
|
|
728
|
-
);
|
|
729
|
-
};
|
|
730
|
-
N.clearWaitingQueue = function(e) {
|
|
731
|
-
return e === void 0 && (e = {}), S.emit(
|
|
732
|
-
5,
|
|
733
|
-
e
|
|
734
|
-
);
|
|
735
|
-
};
|
|
736
|
-
N.isActive = function(e) {
|
|
737
|
-
var t = !1;
|
|
738
|
-
return Y.forEach(function(n) {
|
|
739
|
-
n.isToastActive && n.isToastActive(e) && (t = !0);
|
|
740
|
-
}), t;
|
|
741
|
-
};
|
|
742
|
-
N.update = function(e, t) {
|
|
743
|
-
t === void 0 && (t = {}), setTimeout(function() {
|
|
744
|
-
var n = rt(e, t);
|
|
745
|
-
if (n) {
|
|
746
|
-
var o = n.props, s = n.content, c = k({}, o, t, {
|
|
747
|
-
toastId: t.toastId || e,
|
|
748
|
-
updateId: ke()
|
|
749
|
-
});
|
|
750
|
-
c.toastId !== e && (c.staleId = e);
|
|
751
|
-
var f = c.render || s;
|
|
752
|
-
delete c.render, ae(f, c);
|
|
753
|
-
}
|
|
754
|
-
}, 0);
|
|
755
|
-
};
|
|
756
|
-
N.done = function(e) {
|
|
757
|
-
N.update(e, {
|
|
758
|
-
progress: 1
|
|
759
|
-
});
|
|
760
|
-
};
|
|
761
|
-
N.onChange = function(e) {
|
|
762
|
-
return B(e) && S.on(
|
|
763
|
-
4,
|
|
764
|
-
e
|
|
765
|
-
), function() {
|
|
766
|
-
B(e) && S.off(
|
|
767
|
-
4,
|
|
768
|
-
e
|
|
769
|
-
);
|
|
770
|
-
};
|
|
771
|
-
};
|
|
772
|
-
N.configure = function(e) {
|
|
773
|
-
e === void 0 && (e = {}), he = !0, De = e;
|
|
774
|
-
};
|
|
775
|
-
N.POSITION = Be;
|
|
776
|
-
N.TYPE = M;
|
|
777
|
-
S.on(
|
|
778
|
-
2,
|
|
779
|
-
function(e) {
|
|
780
|
-
ve = e.containerId || e, Y.set(ve, e), ye.forEach(function(t) {
|
|
781
|
-
S.emit(
|
|
782
|
-
0,
|
|
783
|
-
t.content,
|
|
784
|
-
t.options
|
|
785
|
-
);
|
|
786
|
-
}), ye = [];
|
|
787
|
-
}
|
|
788
|
-
).on(
|
|
789
|
-
3,
|
|
790
|
-
function(e) {
|
|
791
|
-
Y.delete(e.containerId || e), Y.size === 0 && S.off(
|
|
792
|
-
0
|
|
793
|
-
/* Show */
|
|
794
|
-
).off(
|
|
795
|
-
1
|
|
796
|
-
/* Clear */
|
|
797
|
-
).off(
|
|
798
|
-
5
|
|
799
|
-
/* ClearWaitingQueue */
|
|
800
|
-
), Re && ee && document.body.removeChild(ee);
|
|
801
|
-
}
|
|
802
|
-
);
|
|
803
|
-
const ut = xe.div`
|
|
804
|
-
${(e) => Me(e.theme, "Notification", "small", "enabled")};
|
|
805
|
-
|
|
806
|
-
word-wrap: break-word;
|
|
807
|
-
box-sizing: border-box;
|
|
808
|
-
display: flex;
|
|
809
|
-
gap: 1rem;
|
|
810
|
-
justify-content: space-between;
|
|
811
|
-
|
|
812
|
-
& .notification-actions {
|
|
813
|
-
align-items: center;
|
|
814
|
-
${(e) => e.sideButtons && "margin: -14px"};
|
|
815
|
-
flex-direction: ${(e) => e.sideButtons ? "column" : "row"};
|
|
816
|
-
${(e) => e.sideButtons && "margin-left: auto"};
|
|
817
|
-
${(e) => e.inlineActions == !1 && e.sideButtons == !1 && "padding-top: 4px"};
|
|
818
|
-
gap: ${(e) => e.sideButtons ? "0" : "1rem"};
|
|
819
|
-
display: flex;
|
|
820
|
-
|
|
821
|
-
color: ${(e) => A(
|
|
822
|
-
e.theme,
|
|
823
|
-
"Notification",
|
|
824
|
-
e.color,
|
|
825
|
-
"enabled",
|
|
826
|
-
"action"
|
|
827
|
-
)};
|
|
828
|
-
|
|
829
|
-
& > button {
|
|
830
|
-
${(e) => e.sideButtons && "flex: 1; width: 100%;"}
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
& .notification-main {
|
|
834
|
-
word-wrap: break-word;
|
|
835
|
-
box-sizing: border-box;
|
|
836
|
-
display: flex;
|
|
837
|
-
gap: 1rem;
|
|
838
|
-
}
|
|
839
|
-
& .notification-content {
|
|
840
|
-
display: flex;
|
|
841
|
-
flex-direction: column;
|
|
842
|
-
gap: 0.25rem;
|
|
843
|
-
color: ${(e) => A(
|
|
844
|
-
e.theme,
|
|
845
|
-
"Notification",
|
|
846
|
-
e.color,
|
|
847
|
-
"enabled",
|
|
848
|
-
"text"
|
|
849
|
-
)};
|
|
850
|
-
}
|
|
851
|
-
& .notification-icon {
|
|
852
|
-
align-items: flex-start;
|
|
853
|
-
& i {
|
|
854
|
-
font-size: 1.25rem;
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
& .notification-title {
|
|
858
|
-
font-weight: ${(e) => $e(
|
|
859
|
-
e.theme,
|
|
860
|
-
"Notification",
|
|
861
|
-
e.color,
|
|
862
|
-
"enabled",
|
|
863
|
-
"fontWeightTitle"
|
|
864
|
-
)};
|
|
865
|
-
color: ${(e) => A(
|
|
866
|
-
e.theme,
|
|
867
|
-
"Notification",
|
|
868
|
-
e.color,
|
|
869
|
-
"enabled",
|
|
870
|
-
"title"
|
|
871
|
-
)};
|
|
872
|
-
}
|
|
873
|
-
`, dt = D.forwardRef((e, t) => {
|
|
874
|
-
const {
|
|
875
|
-
title: n,
|
|
876
|
-
icon: o,
|
|
877
|
-
className: s,
|
|
878
|
-
style: c = {},
|
|
879
|
-
size: f = "small",
|
|
880
|
-
avatar: u = !1,
|
|
881
|
-
actions: i,
|
|
882
|
-
inlineActions: g = !1,
|
|
883
|
-
sideButtons: r = !1,
|
|
884
|
-
iconProps: h,
|
|
885
|
-
avatarProps: T,
|
|
886
|
-
children: y,
|
|
887
|
-
...I
|
|
888
|
-
} = e, O = {
|
|
889
|
-
theme: We(),
|
|
890
|
-
className: s,
|
|
891
|
-
style: c,
|
|
892
|
-
size: f,
|
|
893
|
-
inlineActions: g,
|
|
894
|
-
sideButtons: r
|
|
895
|
-
};
|
|
896
|
-
return /* @__PURE__ */ de(ut, { ref: t, ...O, ...I, children: [
|
|
897
|
-
/* @__PURE__ */ de("div", { className: "notification-main", children: [
|
|
898
|
-
u ? /* @__PURE__ */ q(Ue, { sizeInUnits: "2.75rem", ...T }) : o && /* @__PURE__ */ q(He, { className: "notification-icon", icon: o, ...h }),
|
|
899
|
-
/* @__PURE__ */ de("div", { className: "notification-content", children: [
|
|
900
|
-
/* @__PURE__ */ q("div", { className: "notification-title", children: n }),
|
|
901
|
-
y,
|
|
902
|
-
!g && !r && /* @__PURE__ */ q("div", { className: "notification-actions", children: i })
|
|
903
|
-
] })
|
|
904
|
-
] }),
|
|
905
|
-
(g || r) && /* @__PURE__ */ q("div", { className: "notification-actions", children: i })
|
|
906
|
-
] });
|
|
907
|
-
});
|
|
908
|
-
dt.propTypes = {
|
|
909
|
-
avatar: E.bool,
|
|
910
|
-
title: E.string,
|
|
911
|
-
/**
|
|
912
|
-
* If `avatar={true}` icon won't be displayed
|
|
913
|
-
*/
|
|
914
|
-
icon: E.string,
|
|
915
|
-
actions: E.element,
|
|
916
|
-
inlineActions: E.bool,
|
|
917
|
-
sideButtons: E.bool,
|
|
918
|
-
//-----------------------
|
|
919
|
-
className: E.string,
|
|
920
|
-
style: E.object,
|
|
921
|
-
iconProps: E.any,
|
|
922
|
-
avatarProps: E.any
|
|
923
|
-
};
|
|
924
|
-
const ft = xe.div`
|
|
925
|
-
& .lnc-notification {
|
|
926
|
-
& > div {
|
|
927
|
-
background-color: ${(e) => A(
|
|
928
|
-
e.theme,
|
|
929
|
-
"Notification",
|
|
930
|
-
e.color,
|
|
931
|
-
"enabled",
|
|
932
|
-
"background",
|
|
933
|
-
"backgroundOpacity"
|
|
934
|
-
)};
|
|
935
|
-
|
|
936
|
-
box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
937
|
-
0px 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
938
|
-
border: ${(e) => `1px solid ${A(
|
|
939
|
-
e.theme,
|
|
940
|
-
"Notification",
|
|
941
|
-
"default",
|
|
942
|
-
"enabled",
|
|
943
|
-
"border"
|
|
944
|
-
)}`};
|
|
945
|
-
border-radius: ${(e) => je(e.theme, "regular")};
|
|
946
|
-
}
|
|
947
|
-
& .Toastify__close-button {
|
|
948
|
-
& svg {
|
|
949
|
-
fill: ${(e) => A(
|
|
950
|
-
e.theme,
|
|
951
|
-
"Notification",
|
|
952
|
-
"default",
|
|
953
|
-
"enabled",
|
|
954
|
-
"icon"
|
|
955
|
-
)};
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
& .Toastify__toast--success {
|
|
959
|
-
& svg {
|
|
960
|
-
fill: ${(e) => A(
|
|
961
|
-
e.theme,
|
|
962
|
-
"Notification",
|
|
963
|
-
"success",
|
|
964
|
-
"enabled",
|
|
965
|
-
"icon"
|
|
966
|
-
)};
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
& .Toastify__toast--information {
|
|
970
|
-
& svg {
|
|
971
|
-
fill: ${(e) => A(
|
|
972
|
-
e.theme,
|
|
973
|
-
"Notification",
|
|
974
|
-
"information",
|
|
975
|
-
"enabled",
|
|
976
|
-
"icon"
|
|
977
|
-
)};
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
& .Toastify__toast--danger {
|
|
981
|
-
& svg {
|
|
982
|
-
fill: ${(e) => A(
|
|
983
|
-
e.theme,
|
|
984
|
-
"Notification",
|
|
985
|
-
"warning",
|
|
986
|
-
"enabled",
|
|
987
|
-
"icon"
|
|
988
|
-
)};
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
& .Toastify__toast--error {
|
|
992
|
-
& svg {
|
|
993
|
-
fill: ${(e) => A(
|
|
994
|
-
e.theme,
|
|
995
|
-
"Notification",
|
|
996
|
-
"danger",
|
|
997
|
-
"enabled",
|
|
998
|
-
"icon"
|
|
999
|
-
)};
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
`, mt = D.forwardRef((e, t) => {
|
|
1004
|
-
const {
|
|
1005
|
-
position: n = "top-right",
|
|
1006
|
-
autoClose: o = 5e5,
|
|
1007
|
-
hideProgressBar: s = !0,
|
|
1008
|
-
newestOnTop: c = !0,
|
|
1009
|
-
closeOnClick: f = !0,
|
|
1010
|
-
rtl: u = !1,
|
|
1011
|
-
pauseOnFocusLoss: i = !1,
|
|
1012
|
-
draggable: g = !1,
|
|
1013
|
-
pauseOnHover: r = !1,
|
|
1014
|
-
closeButton: h = !0,
|
|
1015
|
-
className: T = "",
|
|
1016
|
-
style: y = {},
|
|
1017
|
-
toastContainerProps: I,
|
|
1018
|
-
children: C,
|
|
1019
|
-
...O
|
|
1020
|
-
} = e, { theme: R } = ze(), P = {
|
|
1021
|
-
theme: R,
|
|
1022
|
-
className: "lnc-ui-notification " + T,
|
|
1023
|
-
style: y
|
|
1024
|
-
};
|
|
1025
|
-
return /* @__PURE__ */ q(ft, { ref: t, ...P, ...O, children: /* @__PURE__ */ q(
|
|
1026
|
-
Te,
|
|
1027
|
-
{
|
|
1028
|
-
position: n,
|
|
1029
|
-
autoClose: o,
|
|
1030
|
-
hideProgressBar: s,
|
|
1031
|
-
newestOnTop: c,
|
|
1032
|
-
closeOnClick: f,
|
|
1033
|
-
rtl: u,
|
|
1034
|
-
pauseOnFocusLoss: i,
|
|
1035
|
-
draggable: g,
|
|
1036
|
-
pauseOnHover: r,
|
|
1037
|
-
closeButton: h,
|
|
1038
|
-
className: "lnc-notification",
|
|
1039
|
-
...I
|
|
1040
|
-
}
|
|
1041
|
-
) });
|
|
1042
|
-
});
|
|
1043
|
-
mt.propTypes = {
|
|
1044
|
-
position: E.oneOf([
|
|
1045
|
-
"top-right",
|
|
1046
|
-
"top-center",
|
|
1047
|
-
"top-left",
|
|
1048
|
-
"bottom-right",
|
|
1049
|
-
"bottom-center",
|
|
1050
|
-
"bottom-left"
|
|
1051
|
-
]),
|
|
1052
|
-
/**
|
|
1053
|
-
* Value in ms
|
|
1054
|
-
*/
|
|
1055
|
-
autoClose: E.number,
|
|
1056
|
-
hideProgressBar: E.bool,
|
|
1057
|
-
newestOnTop: E.bool,
|
|
1058
|
-
closeOnClick: E.bool,
|
|
1059
|
-
/**
|
|
1060
|
-
* Right to Left
|
|
1061
|
-
*/
|
|
1062
|
-
rtl: E.bool,
|
|
1063
|
-
pauseOnFocusLoss: E.bool,
|
|
1064
|
-
draggable: E.bool,
|
|
1065
|
-
pauseOnHover: E.bool,
|
|
1066
|
-
closeButton: E.bool,
|
|
1067
|
-
//----------------------------
|
|
1068
|
-
className: E.string,
|
|
1069
|
-
style: E.object,
|
|
1070
|
-
/**
|
|
1071
|
-
* Other react-toastify ToastContainer props.
|
|
1072
|
-
*/
|
|
1073
|
-
toastContainerProps: E.any
|
|
1074
|
-
};
|
|
1
|
+
import { t } from "./react-toastify.esm-CkXGwKXL.js";
|
|
2
|
+
const a = t;
|
|
1075
3
|
export {
|
|
1076
|
-
|
|
1077
|
-
dt as NotificationMessage,
|
|
1078
|
-
N as notification
|
|
4
|
+
a as default
|
|
1079
5
|
};
|