@ukpc-lib/react 0.1.10 → 0.1.11
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/index.cjs +6 -6
- package/dist/components/index.js +1077 -976
- package/dist/{interceptor.const-3d8c3adc.js → react-svg.esm-8385cab5.js} +639 -638
- package/dist/{interceptor.const-abe41a95.cjs → react-svg.esm-a6f3a530.cjs} +3 -3
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/dist/src/components/GlobalMenu/helpers/index.d.ts +0 -0
- package/package.json +1 -1
- package/web-components-bundle/global-menu/index.cjs +11 -11
- package/web-components-bundle/global-menu/index.js +7136 -7034
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/{index-6ba7e1d4.js → index-4b7988de.js} +3 -3
- package/web-components-bundle/{index-447756c6.cjs → index-9fa798a7.cjs} +1 -1
- package/dist/components/GlobalMenu/helpers/index.d.ts +0 -3
- /package/dist/{interceptor.css → react-svg.css} +0 -0
- /package/dist/{components → src/components}/GlobalMenu/components/Dropdown.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/components/MenuItem.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/icons/IconCollapsed.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/icons/IconDown.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/icons/IconExpand.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/icons/IconLogout.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/index.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/models/MenuItemDto.d.ts +0 -0
- /package/dist/{components → src/components}/GlobalMenu/models/index.d.ts +0 -0
- /package/dist/{components → src/components}/LanguageSwitcher/index.d.ts +0 -0
- /package/dist/{components → src/components}/LogoutConfirmModal/index.d.ts +0 -0
- /package/dist/{components → src/components}/ShadownDom/index.d.ts +0 -0
- /package/dist/{components → src/components}/Toast/ToastConfig.d.ts +0 -0
- /package/dist/{components → src/components}/Toast/icons/ErrorIcon.d.ts +0 -0
- /package/dist/{components → src/components}/Toast/icons/SuccessIcon.d.ts +0 -0
- /package/dist/{components → src/components}/Toast/icons/WarningIcon.d.ts +0 -0
- /package/dist/{components → src/components}/Toast/index.d.ts +0 -0
- /package/dist/{components → src/components}/Topbar/icons/MessageIcon.d.ts +0 -0
- /package/dist/{components → src/components}/Topbar/icons/NotificationIcon.d.ts +0 -0
- /package/dist/{components → src/components}/Topbar/index.d.ts +0 -0
- /package/dist/{components → src/components}/index.d.ts +0 -0
- /package/dist/{share → src/share}/AuthProvider/index.d.ts +0 -0
- /package/dist/{share → src/share}/hooks/index.d.ts +0 -0
- /package/dist/{share → src/share}/hooks/useGetPermission.d.ts +0 -0
- /package/dist/{share → src/share}/index.d.ts +0 -0
- /package/dist/{share → src/share}/interceptor/index.d.ts +0 -0
- /package/dist/{share → src/share}/interceptor/interceptor.const.d.ts +0 -0
- /package/dist/{share → src/share}/permissions/HasPermission.d.ts +0 -0
- /package/dist/{share → src/share}/permissions/PermissionRoute.d.ts +0 -0
- /package/dist/{share → src/share}/permissions/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./react-svg.css";
|
|
2
2
|
import * as El from "react";
|
|
3
3
|
import Ae, { createContext as Lu, forwardRef as Bu, useRef as Ma, useEffect as Ml, useState as Fl, useLayoutEffect as Zs, useSyncExternalStore as ju, isValidElement as Oa, cloneElement as Hs } from "react";
|
|
4
4
|
import { createPortal as Uu } from "react-dom";
|
|
@@ -10681,559 +10681,183 @@ function cc() {
|
|
|
10681
10681
|
} });
|
|
10682
10682
|
}
|
|
10683
10683
|
var Gc = cc();
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10684
|
+
const Xc = {
|
|
10685
|
+
TOKEN_MALFORMED: "token_malformed",
|
|
10686
|
+
TOKEN_EXPIRED: "token_expired"
|
|
10687
|
+
}, Zc = (m) => {
|
|
10688
|
+
window.location.href = `${m}/authentication/login?callbackUrl=${window.location.href}`;
|
|
10689
|
+
}, Jc = (m) => {
|
|
10690
|
+
window.location.href = `${m}/authentication/logout?callbackUrl=${window.location.href}`;
|
|
10691
|
+
};
|
|
10692
|
+
function Cu(m) {
|
|
10693
|
+
var v, k, R = "";
|
|
10694
|
+
if (typeof m == "string" || typeof m == "number")
|
|
10695
|
+
R += m;
|
|
10696
|
+
else if (typeof m == "object")
|
|
10697
|
+
if (Array.isArray(m)) {
|
|
10698
|
+
var u = m.length;
|
|
10699
|
+
for (v = 0; v < u; v++)
|
|
10700
|
+
m[v] && (k = Cu(m[v])) && (R && (R += " "), R += k);
|
|
10701
|
+
} else
|
|
10702
|
+
for (k in m)
|
|
10703
|
+
m[k] && (R && (R += " "), R += k);
|
|
10704
|
+
return R;
|
|
10691
10705
|
}
|
|
10692
|
-
function
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
for (var R in k)
|
|
10697
|
-
Object.prototype.hasOwnProperty.call(k, R) && (m[R] = k[R]);
|
|
10698
|
-
}
|
|
10699
|
-
return m;
|
|
10700
|
-
}, Ol.apply(this, arguments);
|
|
10706
|
+
function Vn() {
|
|
10707
|
+
for (var m, v, k = 0, R = "", u = arguments.length; k < u; k++)
|
|
10708
|
+
(m = arguments[k]) && (v = Cu(m)) && (R && (R += " "), R += v);
|
|
10709
|
+
return R;
|
|
10701
10710
|
}
|
|
10702
|
-
function
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10711
|
+
const Di = (m) => typeof m == "number" && !isNaN(m), Oo = (m) => typeof m == "string", Xt = (m) => typeof m == "function", _l = (m) => Oo(m) || Xt(m) ? m : null, Ys = (m) => Oa(m) || Oo(m) || Xt(m) || Di(m);
|
|
10712
|
+
function fc(m, v, k) {
|
|
10713
|
+
k === void 0 && (k = 300);
|
|
10714
|
+
const { scrollHeight: R, style: u } = m;
|
|
10715
|
+
requestAnimationFrame(() => {
|
|
10716
|
+
u.minHeight = "initial", u.height = R + "px", u.transition = `all ${k}ms`, requestAnimationFrame(() => {
|
|
10717
|
+
u.height = "0", u.padding = "0", u.margin = "0", setTimeout(v, k);
|
|
10718
|
+
});
|
|
10719
|
+
});
|
|
10706
10720
|
}
|
|
10707
|
-
function
|
|
10708
|
-
|
|
10721
|
+
function Ll(m) {
|
|
10722
|
+
let { enter: v, exit: k, appendPosition: R = !1, collapse: u = !0, collapseDuration: _ = 300 } = m;
|
|
10723
|
+
return function(U) {
|
|
10724
|
+
let { children: H, position: T, preventExitTransition: P, done: K, nodeRef: F, isIn: J, playToast: me } = U;
|
|
10725
|
+
const te = R ? `${v}--${T}` : v, q = R ? `${k}--${T}` : k, L = Ma(0);
|
|
10726
|
+
return Zs(() => {
|
|
10727
|
+
const I = F.current, Q = te.split(" "), Y = (ee) => {
|
|
10728
|
+
ee.target === F.current && (me(), I.removeEventListener("animationend", Y), I.removeEventListener("animationcancel", Y), L.current === 0 && ee.type !== "animationcancel" && I.classList.remove(...Q));
|
|
10729
|
+
};
|
|
10730
|
+
I.classList.add(...Q), I.addEventListener("animationend", Y), I.addEventListener("animationcancel", Y);
|
|
10731
|
+
}, []), Ml(() => {
|
|
10732
|
+
const I = F.current, Q = () => {
|
|
10733
|
+
I.removeEventListener("animationend", Q), u ? fc(I, K, _) : K();
|
|
10734
|
+
};
|
|
10735
|
+
J || (P ? Q() : (L.current = 1, I.className += ` ${q}`, I.addEventListener("animationend", Q)));
|
|
10736
|
+
}, [J]), Ae.createElement(Ae.Fragment, null, H);
|
|
10737
|
+
};
|
|
10709
10738
|
}
|
|
10710
|
-
function
|
|
10711
|
-
|
|
10712
|
-
for (var R = 0, u = v.length, _; R < u; R++)
|
|
10713
|
-
(_ || !(R in v)) && (_ || (_ = Array.prototype.slice.call(v, 0, R)), _[R] = v[R]);
|
|
10714
|
-
return m.concat(_ || Array.prototype.slice.call(v));
|
|
10739
|
+
function pu(m, v) {
|
|
10740
|
+
return m != null ? { content: m.content, containerId: m.props.containerId, id: m.props.toastId, theme: m.props.theme, type: m.props.type, data: m.props.data || {}, isLoading: m.props.isLoading, icon: m.props.icon, status: v } : {};
|
|
10715
10741
|
}
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
throw new TypeError("argument string is required to be a string");
|
|
10728
|
-
var k = v.indexOf(";"), R = k !== -1 ? v.slice(0, k).trim() : v.trim();
|
|
10729
|
-
if (!hc.test(R))
|
|
10730
|
-
throw new TypeError("invalid media type");
|
|
10731
|
-
var u = new yc(R.toLowerCase());
|
|
10732
|
-
if (k !== -1) {
|
|
10733
|
-
var _, U, H;
|
|
10734
|
-
for (pu.lastIndex = k; U = pu.exec(v); ) {
|
|
10735
|
-
if (U.index !== k)
|
|
10736
|
-
throw new TypeError("invalid parameter format");
|
|
10737
|
-
k += U[0].length, _ = U[1].toLowerCase(), H = U[2], H.charCodeAt(0) === 34 && (H = H.slice(1, -1), H.indexOf("\\") !== -1 && (H = H.replace(pc, "$1"))), u.parameters[_] = H;
|
|
10738
|
-
}
|
|
10739
|
-
if (k !== v.length)
|
|
10740
|
-
throw new TypeError("invalid parameter format");
|
|
10741
|
-
}
|
|
10742
|
-
return u;
|
|
10742
|
+
const It = /* @__PURE__ */ new Map();
|
|
10743
|
+
let Mi = [];
|
|
10744
|
+
const Gs = /* @__PURE__ */ new Set(), dc = (m) => Gs.forEach((v) => v(m)), Ru = () => It.size > 0;
|
|
10745
|
+
function Iu(m, v) {
|
|
10746
|
+
var k;
|
|
10747
|
+
if (v)
|
|
10748
|
+
return !((k = It.get(v)) == null || !k.isToastActive(m));
|
|
10749
|
+
let R = !1;
|
|
10750
|
+
return It.forEach((u) => {
|
|
10751
|
+
u.isToastActive(m) && (R = !0);
|
|
10752
|
+
}), R;
|
|
10743
10753
|
}
|
|
10744
|
-
function
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
return v;
|
|
10754
|
+
function Pu(m, v) {
|
|
10755
|
+
Ys(m) && (Ru() || Mi.push({ content: m, options: v }), It.forEach((k) => {
|
|
10756
|
+
k.buildToast(m, v);
|
|
10757
|
+
}));
|
|
10749
10758
|
}
|
|
10750
|
-
function
|
|
10751
|
-
|
|
10759
|
+
function hu(m, v) {
|
|
10760
|
+
It.forEach((k) => {
|
|
10761
|
+
v != null && v != null && v.containerId ? (v == null ? void 0 : v.containerId) === k.id && k.toggle(m, v == null ? void 0 : v.id) : k.toggle(m, v == null ? void 0 : v.id);
|
|
10762
|
+
});
|
|
10752
10763
|
}
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10776
|
-
|
|
10777
|
-
|
|
10778
|
-
|
|
10779
|
-
|
|
10780
|
-
|
|
10781
|
-
|
|
10782
|
-
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10764
|
+
function pc(m) {
|
|
10765
|
+
const { subscribe: v, getSnapshot: k, setProps: R } = Ma(function(_) {
|
|
10766
|
+
const U = _.containerId || 1;
|
|
10767
|
+
return { subscribe(H) {
|
|
10768
|
+
const T = function(K, F, J) {
|
|
10769
|
+
let me = 1, te = 0, q = [], L = [], I = [], Q = F;
|
|
10770
|
+
const Y = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Set(), z = () => {
|
|
10771
|
+
I = Array.from(Y.values()), ee.forEach((ue) => ue());
|
|
10772
|
+
}, he = (ue) => {
|
|
10773
|
+
L = ue == null ? [] : L.filter((se) => se !== ue), z();
|
|
10774
|
+
}, ne = (ue) => {
|
|
10775
|
+
const { toastId: se, onOpen: Ie, updateId: _e, children: Ce } = ue.props, je = _e == null;
|
|
10776
|
+
ue.staleId && Y.delete(ue.staleId), Y.set(se, ue), L = [...L, ue.props.toastId].filter((Le) => Le !== ue.staleId), z(), J(pu(ue, je ? "added" : "updated")), je && Xt(Ie) && Ie(Oa(Ce) && Ce.props);
|
|
10777
|
+
};
|
|
10778
|
+
return { id: K, props: Q, observe: (ue) => (ee.add(ue), () => ee.delete(ue)), toggle: (ue, se) => {
|
|
10779
|
+
Y.forEach((Ie) => {
|
|
10780
|
+
se != null && se !== Ie.props.toastId || Xt(Ie.toggle) && Ie.toggle(ue);
|
|
10781
|
+
});
|
|
10782
|
+
}, removeToast: he, toasts: Y, clearQueue: () => {
|
|
10783
|
+
te -= q.length, q = [];
|
|
10784
|
+
}, buildToast: (ue, se) => {
|
|
10785
|
+
if (((ae) => {
|
|
10786
|
+
let { containerId: fe, toastId: ce, updateId: ie } = ae;
|
|
10787
|
+
const oe = fe ? fe !== K : K !== 1, ge = Y.has(ce) && ie == null;
|
|
10788
|
+
return oe || ge;
|
|
10789
|
+
})(se))
|
|
10790
|
+
return;
|
|
10791
|
+
const { toastId: Ie, updateId: _e, data: Ce, staleId: je, delay: Le } = se, qe = () => {
|
|
10792
|
+
he(Ie);
|
|
10793
|
+
}, Ge = _e == null;
|
|
10794
|
+
Ge && te++;
|
|
10795
|
+
const $e = { ...Q, style: Q.toastStyle, key: me++, ...Object.fromEntries(Object.entries(se).filter((ae) => {
|
|
10796
|
+
let [fe, ce] = ae;
|
|
10797
|
+
return ce != null;
|
|
10798
|
+
})), toastId: Ie, updateId: _e, data: Ce, closeToast: qe, isIn: !1, className: _l(se.className || Q.toastClassName), bodyClassName: _l(se.bodyClassName || Q.bodyClassName), progressClassName: _l(se.progressClassName || Q.progressClassName), autoClose: !se.isLoading && (Re = se.autoClose, Ue = Q.autoClose, Re === !1 || Di(Re) && Re > 0 ? Re : Ue), deleteToast() {
|
|
10799
|
+
const ae = Y.get(Ie), { onClose: fe, children: ce } = ae.props;
|
|
10800
|
+
Xt(fe) && fe(Oa(ce) && ce.props), J(pu(ae, "removed")), Y.delete(Ie), te--, te < 0 && (te = 0), q.length > 0 ? ne(q.shift()) : z();
|
|
10801
|
+
} };
|
|
10802
|
+
var Re, Ue;
|
|
10803
|
+
$e.closeButton = Q.closeButton, se.closeButton === !1 || Ys(se.closeButton) ? $e.closeButton = se.closeButton : se.closeButton === !0 && ($e.closeButton = !Ys(Q.closeButton) || Q.closeButton);
|
|
10804
|
+
let V = ue;
|
|
10805
|
+
Oa(ue) && !Oo(ue.type) ? V = Hs(ue, { closeToast: qe, toastProps: $e, data: Ce }) : Xt(ue) && (V = ue({ closeToast: qe, toastProps: $e, data: Ce }));
|
|
10806
|
+
const G = { content: V, props: $e, staleId: je };
|
|
10807
|
+
Q.limit && Q.limit > 0 && te > Q.limit && Ge ? q.push(G) : Di(Le) ? setTimeout(() => {
|
|
10808
|
+
ne(G);
|
|
10809
|
+
}, Le) : ne(G);
|
|
10810
|
+
}, setProps(ue) {
|
|
10811
|
+
Q = ue;
|
|
10812
|
+
}, setToggle: (ue, se) => {
|
|
10813
|
+
Y.get(ue).toggle = se;
|
|
10814
|
+
}, isToastActive: (ue) => L.some((se) => se === ue), getSnapshot: () => Q.newestOnTop ? I.reverse() : I };
|
|
10815
|
+
}(U, _, dc);
|
|
10816
|
+
It.set(U, T);
|
|
10817
|
+
const P = T.observe(H);
|
|
10818
|
+
return Mi.forEach((K) => Pu(K.content, K.options)), Mi = [], () => {
|
|
10819
|
+
P(), It.delete(U);
|
|
10820
|
+
};
|
|
10821
|
+
}, setProps(H) {
|
|
10822
|
+
var T;
|
|
10823
|
+
(T = It.get(U)) == null || T.setProps(H);
|
|
10824
|
+
}, getSnapshot() {
|
|
10825
|
+
var H;
|
|
10826
|
+
return (H = It.get(U)) == null ? void 0 : H.getSnapshot();
|
|
10827
|
+
} };
|
|
10828
|
+
}(m)).current;
|
|
10829
|
+
R(m);
|
|
10830
|
+
const u = ju(v, k, k);
|
|
10831
|
+
return { getToastToRender: function(_) {
|
|
10832
|
+
if (!u)
|
|
10833
|
+
return [];
|
|
10834
|
+
const U = /* @__PURE__ */ new Map();
|
|
10835
|
+
return u.forEach((H) => {
|
|
10836
|
+
const { position: T } = H.props;
|
|
10837
|
+
U.has(T) || U.set(T, []), U.get(T).push(H);
|
|
10838
|
+
}), Array.from(U, (H) => _(H[0], H[1]));
|
|
10839
|
+
}, isToastActive: Iu, count: u == null ? void 0 : u.length };
|
|
10840
|
+
}
|
|
10841
|
+
function hc(m) {
|
|
10842
|
+
const [v, k] = Fl(!1), [R, u] = Fl(!1), _ = Ma(null), U = Ma({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: H, pauseOnHover: T, closeToast: P, onClick: K, closeOnClick: F } = m;
|
|
10843
|
+
var J, me;
|
|
10844
|
+
function te() {
|
|
10845
|
+
k(!0);
|
|
10807
10846
|
}
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
_ ? Fa.set(v, _) : ((H = U.responseXML) === null || H === void 0 ? void 0 : H.documentElement) instanceof SVGSVGElement && Fa.set(v, U.responseXML.documentElement), Sc(v);
|
|
10811
|
-
});
|
|
10812
|
-
}, wc = function(v, k, R) {
|
|
10813
|
-
Ru(v, k, function(u, _) {
|
|
10814
|
-
var U;
|
|
10815
|
-
u ? R(u) : ((U = _.responseXML) === null || U === void 0 ? void 0 : U.documentElement) instanceof SVGSVGElement && R(null, _.responseXML.documentElement);
|
|
10816
|
-
});
|
|
10817
|
-
}, xc = 0, kc = function() {
|
|
10818
|
-
return ++xc;
|
|
10819
|
-
}, Wr = [], gu = {}, Ec = "http://www.w3.org/2000/svg", Us = "http://www.w3.org/1999/xlink", mu = function(v, k, R, u, _, U, H) {
|
|
10820
|
-
var T = v.getAttribute("data-src") || v.getAttribute("src");
|
|
10821
|
-
if (!T) {
|
|
10822
|
-
H(new Error("Invalid data-src or src attribute"));
|
|
10823
|
-
return;
|
|
10847
|
+
function q() {
|
|
10848
|
+
k(!1);
|
|
10824
10849
|
}
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10850
|
+
function L(Y) {
|
|
10851
|
+
const ee = _.current;
|
|
10852
|
+
U.canDrag && ee && (U.didMove = !0, v && q(), U.delta = m.draggableDirection === "x" ? Y.clientX - U.start : Y.clientY - U.start, U.start !== Y.clientX && (U.canCloseOnClick = !1), ee.style.transform = `translate3d(${m.draggableDirection === "x" ? `${U.delta}px, var(--y)` : `0, calc(${U.delta}px + var(--y))`},0)`, ee.style.opacity = "" + (1 - Math.abs(U.delta / U.removalDistance)));
|
|
10828
10853
|
}
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
if (
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
var J = v.getAttribute("id");
|
|
10837
|
-
J && F.setAttribute("id", J);
|
|
10838
|
-
var me = v.getAttribute("title");
|
|
10839
|
-
me && F.setAttribute("title", me);
|
|
10840
|
-
var te = v.getAttribute("width");
|
|
10841
|
-
te && F.setAttribute("width", te);
|
|
10842
|
-
var q = v.getAttribute("height");
|
|
10843
|
-
q && F.setAttribute("height", q);
|
|
10844
|
-
var L = Array.from(new Set(js(js(js([], (F.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (v.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
10845
|
-
F.setAttribute("class", L);
|
|
10846
|
-
var I = v.getAttribute("style");
|
|
10847
|
-
I && F.setAttribute("style", I), F.setAttribute("data-src", T);
|
|
10848
|
-
var Q = [].filter.call(v.attributes, function(Re) {
|
|
10849
|
-
return /^data-\w[\w-]*$/.test(Re.name);
|
|
10850
|
-
});
|
|
10851
|
-
if (Array.prototype.forEach.call(Q, function(Re) {
|
|
10852
|
-
Re.name && Re.value && F.setAttribute(Re.name, Re.value);
|
|
10853
|
-
}), R) {
|
|
10854
|
-
var Y = {
|
|
10855
|
-
clipPath: ["clip-path"],
|
|
10856
|
-
"color-profile": ["color-profile"],
|
|
10857
|
-
cursor: ["cursor"],
|
|
10858
|
-
filter: ["filter"],
|
|
10859
|
-
linearGradient: ["fill", "stroke"],
|
|
10860
|
-
marker: ["marker", "marker-start", "marker-mid", "marker-end"],
|
|
10861
|
-
mask: ["mask"],
|
|
10862
|
-
path: [],
|
|
10863
|
-
pattern: ["fill", "stroke"],
|
|
10864
|
-
radialGradient: ["fill", "stroke"]
|
|
10865
|
-
}, ee, z, he, ne, ue;
|
|
10866
|
-
Object.keys(Y).forEach(function(Re) {
|
|
10867
|
-
ee = Re, he = Y[Re], z = F.querySelectorAll(ee + "[id]");
|
|
10868
|
-
for (var Ue = function(fe, ce) {
|
|
10869
|
-
ne = z[fe].id, ue = ne + "-" + kc();
|
|
10870
|
-
var ie;
|
|
10871
|
-
Array.prototype.forEach.call(he, function(Fe) {
|
|
10872
|
-
ie = F.querySelectorAll("[" + Fe + '*="' + ne + '"]');
|
|
10873
|
-
for (var Ne = 0, mt = ie.length; Ne < mt; Ne++) {
|
|
10874
|
-
var Pt = ie[Ne].getAttribute(Fe);
|
|
10875
|
-
Pt && !Pt.match(new RegExp('url\\("?#' + ne + '"?\\)')) || ie[Ne].setAttribute(Fe, "url(#" + ue + ")");
|
|
10876
|
-
}
|
|
10877
|
-
});
|
|
10878
|
-
for (var oe = F.querySelectorAll("[*|href]"), ge = [], be = 0, we = oe.length; be < we; be++) {
|
|
10879
|
-
var xe = oe[be].getAttributeNS(Us, "href");
|
|
10880
|
-
xe && xe.toString() === "#" + z[fe].id && ge.push(oe[be]);
|
|
10881
|
-
}
|
|
10882
|
-
for (var Pe = 0, re = ge.length; Pe < re; Pe++)
|
|
10883
|
-
ge[Pe].setAttributeNS(Us, "href", "#" + ue);
|
|
10884
|
-
z[fe].id = ue;
|
|
10885
|
-
}, V = 0, G = z.length; V < G; V++)
|
|
10886
|
-
Ue(V);
|
|
10887
|
-
});
|
|
10888
|
-
}
|
|
10889
|
-
F.removeAttribute("xmlns:a");
|
|
10890
|
-
for (var se = F.querySelectorAll("script"), Ie = [], _e, Ce, je = 0, Le = se.length; je < Le; je++)
|
|
10891
|
-
Ce = se[je].getAttribute("type"), (!Ce || Ce === "application/ecmascript" || Ce === "application/javascript" || Ce === "text/javascript") && (_e = se[je].innerText || se[je].textContent, _e && Ie.push(_e), F.removeChild(se[je]));
|
|
10892
|
-
if (Ie.length > 0 && (k === "always" || k === "once" && !gu[T])) {
|
|
10893
|
-
for (var qe = 0, Ge = Ie.length; qe < Ge; qe++)
|
|
10894
|
-
new Function(Ie[qe])(window);
|
|
10895
|
-
gu[T] = !0;
|
|
10896
|
-
}
|
|
10897
|
-
var $e = F.querySelectorAll("style");
|
|
10898
|
-
if (Array.prototype.forEach.call($e, function(Re) {
|
|
10899
|
-
Re.textContent += "";
|
|
10900
|
-
}), F.setAttribute("xmlns", Ec), F.setAttribute("xmlns:xlink", Us), U(F), !v.parentNode) {
|
|
10901
|
-
Wr.splice(Wr.indexOf(v), 1), v = null, H(new Error("Parent node is null"));
|
|
10902
|
-
return;
|
|
10903
|
-
}
|
|
10904
|
-
v.parentNode.replaceChild(F, v), Wr.splice(Wr.indexOf(v), 1), v = null, H(null, F);
|
|
10905
|
-
});
|
|
10906
|
-
}, Tc = function(v, k) {
|
|
10907
|
-
var R = k === void 0 ? {} : k, u = R.afterAll, _ = u === void 0 ? function() {
|
|
10908
|
-
} : u, U = R.afterEach, H = U === void 0 ? function() {
|
|
10909
|
-
} : U, T = R.beforeEach, P = T === void 0 ? function() {
|
|
10910
|
-
} : T, K = R.cacheRequests, F = K === void 0 ? !0 : K, J = R.evalScripts, me = J === void 0 ? "never" : J, te = R.httpRequestWithCredentials, q = te === void 0 ? !1 : te, L = R.renumerateIRIElements, I = L === void 0 ? !0 : L;
|
|
10911
|
-
if (v && "length" in v)
|
|
10912
|
-
for (var Q = 0, Y = 0, ee = v.length; Y < ee; Y++)
|
|
10913
|
-
mu(v[Y], me, I, F, q, P, function(z, he) {
|
|
10914
|
-
H(z, he), v && "length" in v && v.length === ++Q && _(Q);
|
|
10915
|
-
});
|
|
10916
|
-
else
|
|
10917
|
-
v ? mu(v, me, I, F, q, P, function(z, he) {
|
|
10918
|
-
H(z, he), _(1), v = null;
|
|
10919
|
-
}) : _(0);
|
|
10920
|
-
}, Cc = function(v) {
|
|
10921
|
-
var k = (v == null ? void 0 : v.ownerDocument) || document;
|
|
10922
|
-
return k.defaultView || window;
|
|
10923
|
-
}, Rc = function(v, k) {
|
|
10924
|
-
for (var R in v)
|
|
10925
|
-
if (!(R in k))
|
|
10926
|
-
return !0;
|
|
10927
|
-
for (var u in k)
|
|
10928
|
-
if (v[u] !== k[u])
|
|
10929
|
-
return !0;
|
|
10930
|
-
return !1;
|
|
10931
|
-
}, Ic = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Il = "http://www.w3.org/2000/svg", yu = "http://www.w3.org/1999/xlink", Iu = /* @__PURE__ */ function(m) {
|
|
10932
|
-
dc(v, m);
|
|
10933
|
-
function v() {
|
|
10934
|
-
for (var R, u = arguments.length, _ = new Array(u), U = 0; U < u; U++)
|
|
10935
|
-
_[U] = arguments[U];
|
|
10936
|
-
return R = m.call.apply(m, [this].concat(_)) || this, R.initialState = {
|
|
10937
|
-
hasError: !1,
|
|
10938
|
-
isLoading: !0
|
|
10939
|
-
}, R.state = R.initialState, R._isMounted = !1, R.reactWrapper = void 0, R.nonReactWrapper = void 0, R.refCallback = function(H) {
|
|
10940
|
-
R.reactWrapper = H;
|
|
10941
|
-
}, R;
|
|
10942
|
-
}
|
|
10943
|
-
var k = v.prototype;
|
|
10944
|
-
return k.renderSVG = function() {
|
|
10945
|
-
var u = this;
|
|
10946
|
-
if (this.reactWrapper instanceof Cc(this.reactWrapper).Node) {
|
|
10947
|
-
var _ = this.props, U = _.desc, H = _.evalScripts, T = _.httpRequestWithCredentials, P = _.renumerateIRIElements, K = _.src, F = _.title, J = _.useRequestCache, me = this.props.onError, te = this.props.beforeInjection, q = this.props.afterInjection, L = this.props.wrapper, I, Q;
|
|
10948
|
-
L === "svg" ? (I = document.createElementNS(Il, L), I.setAttribute("xmlns", Il), I.setAttribute("xmlns:xlink", yu), Q = document.createElementNS(Il, L)) : (I = document.createElement(L), Q = document.createElement(L)), I.appendChild(Q), Q.dataset.src = K, this.nonReactWrapper = this.reactWrapper.appendChild(I);
|
|
10949
|
-
var Y = function(ne) {
|
|
10950
|
-
if (u.removeSVG(), !u._isMounted) {
|
|
10951
|
-
me(ne);
|
|
10952
|
-
return;
|
|
10953
|
-
}
|
|
10954
|
-
u.setState(function() {
|
|
10955
|
-
return {
|
|
10956
|
-
hasError: !0,
|
|
10957
|
-
isLoading: !1
|
|
10958
|
-
};
|
|
10959
|
-
}, function() {
|
|
10960
|
-
me(ne);
|
|
10961
|
-
});
|
|
10962
|
-
}, ee = function(ne, ue) {
|
|
10963
|
-
if (ne) {
|
|
10964
|
-
Y(ne);
|
|
10965
|
-
return;
|
|
10966
|
-
}
|
|
10967
|
-
u._isMounted && u.setState(function() {
|
|
10968
|
-
return {
|
|
10969
|
-
isLoading: !1
|
|
10970
|
-
};
|
|
10971
|
-
}, function() {
|
|
10972
|
-
try {
|
|
10973
|
-
q(ue);
|
|
10974
|
-
} catch (se) {
|
|
10975
|
-
Y(se);
|
|
10976
|
-
}
|
|
10977
|
-
});
|
|
10978
|
-
}, z = function(ne) {
|
|
10979
|
-
if (ne.setAttribute("role", "img"), U) {
|
|
10980
|
-
var ue = ne.querySelector(":scope > desc");
|
|
10981
|
-
ue && ne.removeChild(ue);
|
|
10982
|
-
var se = document.createElement("desc");
|
|
10983
|
-
se.innerHTML = U, ne.prepend(se);
|
|
10984
|
-
}
|
|
10985
|
-
if (F) {
|
|
10986
|
-
var Ie = ne.querySelector(":scope > title");
|
|
10987
|
-
Ie && ne.removeChild(Ie);
|
|
10988
|
-
var _e = document.createElement("title");
|
|
10989
|
-
_e.innerHTML = F, ne.prepend(_e);
|
|
10990
|
-
}
|
|
10991
|
-
try {
|
|
10992
|
-
te(ne);
|
|
10993
|
-
} catch (Ce) {
|
|
10994
|
-
Y(Ce);
|
|
10995
|
-
}
|
|
10996
|
-
};
|
|
10997
|
-
Tc(Q, {
|
|
10998
|
-
afterEach: ee,
|
|
10999
|
-
beforeEach: z,
|
|
11000
|
-
cacheRequests: J,
|
|
11001
|
-
evalScripts: H,
|
|
11002
|
-
httpRequestWithCredentials: T,
|
|
11003
|
-
renumerateIRIElements: P
|
|
11004
|
-
});
|
|
11005
|
-
}
|
|
11006
|
-
}, k.removeSVG = function() {
|
|
11007
|
-
var u;
|
|
11008
|
-
(u = this.nonReactWrapper) != null && u.parentNode && (this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper), this.nonReactWrapper = null);
|
|
11009
|
-
}, k.componentDidMount = function() {
|
|
11010
|
-
this._isMounted = !0, this.renderSVG();
|
|
11011
|
-
}, k.componentDidUpdate = function(u) {
|
|
11012
|
-
var _ = this;
|
|
11013
|
-
Rc(Ol({}, u), this.props) && this.setState(function() {
|
|
11014
|
-
return _.initialState;
|
|
11015
|
-
}, function() {
|
|
11016
|
-
_.removeSVG(), _.renderSVG();
|
|
11017
|
-
});
|
|
11018
|
-
}, k.componentWillUnmount = function() {
|
|
11019
|
-
this._isMounted = !1, this.removeSVG();
|
|
11020
|
-
}, k.render = function() {
|
|
11021
|
-
var u = this.props;
|
|
11022
|
-
u.afterInjection, u.beforeInjection, u.desc, u.evalScripts;
|
|
11023
|
-
var _ = u.fallback;
|
|
11024
|
-
u.httpRequestWithCredentials;
|
|
11025
|
-
var U = u.loading;
|
|
11026
|
-
u.renumerateIRIElements, u.src, u.title, u.useRequestCache;
|
|
11027
|
-
var H = u.wrapper, T = fc(u, Ic), P = H;
|
|
11028
|
-
return /* @__PURE__ */ El.createElement(P, Ol({}, T, {
|
|
11029
|
-
ref: this.refCallback
|
|
11030
|
-
}, H === "svg" ? {
|
|
11031
|
-
xmlns: Il,
|
|
11032
|
-
xmlnsXlink: yu
|
|
11033
|
-
} : {}), this.state.isLoading && U && /* @__PURE__ */ El.createElement(U, null), this.state.hasError && _ && /* @__PURE__ */ El.createElement(_, null));
|
|
11034
|
-
}, v;
|
|
11035
|
-
}(El.Component);
|
|
11036
|
-
Iu.defaultProps = {
|
|
11037
|
-
afterInjection: function() {
|
|
11038
|
-
},
|
|
11039
|
-
beforeInjection: function() {
|
|
11040
|
-
},
|
|
11041
|
-
desc: "",
|
|
11042
|
-
evalScripts: "never",
|
|
11043
|
-
fallback: null,
|
|
11044
|
-
httpRequestWithCredentials: !1,
|
|
11045
|
-
loading: null,
|
|
11046
|
-
onError: function() {
|
|
11047
|
-
},
|
|
11048
|
-
renumerateIRIElements: !0,
|
|
11049
|
-
title: "",
|
|
11050
|
-
useRequestCache: !0,
|
|
11051
|
-
wrapper: "div"
|
|
11052
|
-
};
|
|
11053
|
-
Iu.propTypes = {
|
|
11054
|
-
afterInjection: at.func,
|
|
11055
|
-
beforeInjection: at.func,
|
|
11056
|
-
desc: at.string,
|
|
11057
|
-
evalScripts: at.oneOf(["always", "once", "never"]),
|
|
11058
|
-
fallback: at.oneOfType([at.func, at.object, at.string]),
|
|
11059
|
-
httpRequestWithCredentials: at.bool,
|
|
11060
|
-
loading: at.oneOfType([at.func, at.object, at.string]),
|
|
11061
|
-
onError: at.func,
|
|
11062
|
-
renumerateIRIElements: at.bool,
|
|
11063
|
-
src: at.string.isRequired,
|
|
11064
|
-
title: at.string,
|
|
11065
|
-
useRequestCache: at.bool,
|
|
11066
|
-
wrapper: at.oneOf(["div", "span", "svg"])
|
|
11067
|
-
};
|
|
11068
|
-
function Pu(m) {
|
|
11069
|
-
var v, k, R = "";
|
|
11070
|
-
if (typeof m == "string" || typeof m == "number")
|
|
11071
|
-
R += m;
|
|
11072
|
-
else if (typeof m == "object")
|
|
11073
|
-
if (Array.isArray(m)) {
|
|
11074
|
-
var u = m.length;
|
|
11075
|
-
for (v = 0; v < u; v++)
|
|
11076
|
-
m[v] && (k = Pu(m[v])) && (R && (R += " "), R += k);
|
|
11077
|
-
} else
|
|
11078
|
-
for (k in m)
|
|
11079
|
-
m[k] && (R && (R += " "), R += k);
|
|
11080
|
-
return R;
|
|
11081
|
-
}
|
|
11082
|
-
function Vn() {
|
|
11083
|
-
for (var m, v, k = 0, R = "", u = arguments.length; k < u; k++)
|
|
11084
|
-
(m = arguments[k]) && (v = Pu(m)) && (R && (R += " "), R += v);
|
|
11085
|
-
return R;
|
|
11086
|
-
}
|
|
11087
|
-
const Di = (m) => typeof m == "number" && !isNaN(m), Oo = (m) => typeof m == "string", Xt = (m) => typeof m == "function", _l = (m) => Oo(m) || Xt(m) ? m : null, Gs = (m) => Oa(m) || Oo(m) || Xt(m) || Di(m);
|
|
11088
|
-
function Pc(m, v, k) {
|
|
11089
|
-
k === void 0 && (k = 300);
|
|
11090
|
-
const { scrollHeight: R, style: u } = m;
|
|
11091
|
-
requestAnimationFrame(() => {
|
|
11092
|
-
u.minHeight = "initial", u.height = R + "px", u.transition = `all ${k}ms`, requestAnimationFrame(() => {
|
|
11093
|
-
u.height = "0", u.padding = "0", u.margin = "0", setTimeout(v, k);
|
|
11094
|
-
});
|
|
11095
|
-
});
|
|
11096
|
-
}
|
|
11097
|
-
function Ll(m) {
|
|
11098
|
-
let { enter: v, exit: k, appendPosition: R = !1, collapse: u = !0, collapseDuration: _ = 300 } = m;
|
|
11099
|
-
return function(U) {
|
|
11100
|
-
let { children: H, position: T, preventExitTransition: P, done: K, nodeRef: F, isIn: J, playToast: me } = U;
|
|
11101
|
-
const te = R ? `${v}--${T}` : v, q = R ? `${k}--${T}` : k, L = Ma(0);
|
|
11102
|
-
return Zs(() => {
|
|
11103
|
-
const I = F.current, Q = te.split(" "), Y = (ee) => {
|
|
11104
|
-
ee.target === F.current && (me(), I.removeEventListener("animationend", Y), I.removeEventListener("animationcancel", Y), L.current === 0 && ee.type !== "animationcancel" && I.classList.remove(...Q));
|
|
11105
|
-
};
|
|
11106
|
-
I.classList.add(...Q), I.addEventListener("animationend", Y), I.addEventListener("animationcancel", Y);
|
|
11107
|
-
}, []), Ml(() => {
|
|
11108
|
-
const I = F.current, Q = () => {
|
|
11109
|
-
I.removeEventListener("animationend", Q), u ? Pc(I, K, _) : K();
|
|
11110
|
-
};
|
|
11111
|
-
J || (P ? Q() : (L.current = 1, I.className += ` ${q}`, I.addEventListener("animationend", Q)));
|
|
11112
|
-
}, [J]), Ae.createElement(Ae.Fragment, null, H);
|
|
11113
|
-
};
|
|
11114
|
-
}
|
|
11115
|
-
function Su(m, v) {
|
|
11116
|
-
return m != null ? { content: m.content, containerId: m.props.containerId, id: m.props.toastId, theme: m.props.theme, type: m.props.type, data: m.props.data || {}, isLoading: m.props.isLoading, icon: m.props.icon, status: v } : {};
|
|
11117
|
-
}
|
|
11118
|
-
const It = /* @__PURE__ */ new Map();
|
|
11119
|
-
let Mi = [];
|
|
11120
|
-
const Xs = /* @__PURE__ */ new Set(), Ac = (m) => Xs.forEach((v) => v(m)), Au = () => It.size > 0;
|
|
11121
|
-
function _u(m, v) {
|
|
11122
|
-
var k;
|
|
11123
|
-
if (v)
|
|
11124
|
-
return !((k = It.get(v)) == null || !k.isToastActive(m));
|
|
11125
|
-
let R = !1;
|
|
11126
|
-
return It.forEach((u) => {
|
|
11127
|
-
u.isToastActive(m) && (R = !0);
|
|
11128
|
-
}), R;
|
|
11129
|
-
}
|
|
11130
|
-
function Fu(m, v) {
|
|
11131
|
-
Gs(m) && (Au() || Mi.push({ content: m, options: v }), It.forEach((k) => {
|
|
11132
|
-
k.buildToast(m, v);
|
|
11133
|
-
}));
|
|
11134
|
-
}
|
|
11135
|
-
function bu(m, v) {
|
|
11136
|
-
It.forEach((k) => {
|
|
11137
|
-
v != null && v != null && v.containerId ? (v == null ? void 0 : v.containerId) === k.id && k.toggle(m, v == null ? void 0 : v.id) : k.toggle(m, v == null ? void 0 : v.id);
|
|
11138
|
-
});
|
|
11139
|
-
}
|
|
11140
|
-
function _c(m) {
|
|
11141
|
-
const { subscribe: v, getSnapshot: k, setProps: R } = Ma(function(_) {
|
|
11142
|
-
const U = _.containerId || 1;
|
|
11143
|
-
return { subscribe(H) {
|
|
11144
|
-
const T = function(K, F, J) {
|
|
11145
|
-
let me = 1, te = 0, q = [], L = [], I = [], Q = F;
|
|
11146
|
-
const Y = /* @__PURE__ */ new Map(), ee = /* @__PURE__ */ new Set(), z = () => {
|
|
11147
|
-
I = Array.from(Y.values()), ee.forEach((ue) => ue());
|
|
11148
|
-
}, he = (ue) => {
|
|
11149
|
-
L = ue == null ? [] : L.filter((se) => se !== ue), z();
|
|
11150
|
-
}, ne = (ue) => {
|
|
11151
|
-
const { toastId: se, onOpen: Ie, updateId: _e, children: Ce } = ue.props, je = _e == null;
|
|
11152
|
-
ue.staleId && Y.delete(ue.staleId), Y.set(se, ue), L = [...L, ue.props.toastId].filter((Le) => Le !== ue.staleId), z(), J(Su(ue, je ? "added" : "updated")), je && Xt(Ie) && Ie(Oa(Ce) && Ce.props);
|
|
11153
|
-
};
|
|
11154
|
-
return { id: K, props: Q, observe: (ue) => (ee.add(ue), () => ee.delete(ue)), toggle: (ue, se) => {
|
|
11155
|
-
Y.forEach((Ie) => {
|
|
11156
|
-
se != null && se !== Ie.props.toastId || Xt(Ie.toggle) && Ie.toggle(ue);
|
|
11157
|
-
});
|
|
11158
|
-
}, removeToast: he, toasts: Y, clearQueue: () => {
|
|
11159
|
-
te -= q.length, q = [];
|
|
11160
|
-
}, buildToast: (ue, se) => {
|
|
11161
|
-
if (((ae) => {
|
|
11162
|
-
let { containerId: fe, toastId: ce, updateId: ie } = ae;
|
|
11163
|
-
const oe = fe ? fe !== K : K !== 1, ge = Y.has(ce) && ie == null;
|
|
11164
|
-
return oe || ge;
|
|
11165
|
-
})(se))
|
|
11166
|
-
return;
|
|
11167
|
-
const { toastId: Ie, updateId: _e, data: Ce, staleId: je, delay: Le } = se, qe = () => {
|
|
11168
|
-
he(Ie);
|
|
11169
|
-
}, Ge = _e == null;
|
|
11170
|
-
Ge && te++;
|
|
11171
|
-
const $e = { ...Q, style: Q.toastStyle, key: me++, ...Object.fromEntries(Object.entries(se).filter((ae) => {
|
|
11172
|
-
let [fe, ce] = ae;
|
|
11173
|
-
return ce != null;
|
|
11174
|
-
})), toastId: Ie, updateId: _e, data: Ce, closeToast: qe, isIn: !1, className: _l(se.className || Q.toastClassName), bodyClassName: _l(se.bodyClassName || Q.bodyClassName), progressClassName: _l(se.progressClassName || Q.progressClassName), autoClose: !se.isLoading && (Re = se.autoClose, Ue = Q.autoClose, Re === !1 || Di(Re) && Re > 0 ? Re : Ue), deleteToast() {
|
|
11175
|
-
const ae = Y.get(Ie), { onClose: fe, children: ce } = ae.props;
|
|
11176
|
-
Xt(fe) && fe(Oa(ce) && ce.props), J(Su(ae, "removed")), Y.delete(Ie), te--, te < 0 && (te = 0), q.length > 0 ? ne(q.shift()) : z();
|
|
11177
|
-
} };
|
|
11178
|
-
var Re, Ue;
|
|
11179
|
-
$e.closeButton = Q.closeButton, se.closeButton === !1 || Gs(se.closeButton) ? $e.closeButton = se.closeButton : se.closeButton === !0 && ($e.closeButton = !Gs(Q.closeButton) || Q.closeButton);
|
|
11180
|
-
let V = ue;
|
|
11181
|
-
Oa(ue) && !Oo(ue.type) ? V = Hs(ue, { closeToast: qe, toastProps: $e, data: Ce }) : Xt(ue) && (V = ue({ closeToast: qe, toastProps: $e, data: Ce }));
|
|
11182
|
-
const G = { content: V, props: $e, staleId: je };
|
|
11183
|
-
Q.limit && Q.limit > 0 && te > Q.limit && Ge ? q.push(G) : Di(Le) ? setTimeout(() => {
|
|
11184
|
-
ne(G);
|
|
11185
|
-
}, Le) : ne(G);
|
|
11186
|
-
}, setProps(ue) {
|
|
11187
|
-
Q = ue;
|
|
11188
|
-
}, setToggle: (ue, se) => {
|
|
11189
|
-
Y.get(ue).toggle = se;
|
|
11190
|
-
}, isToastActive: (ue) => L.some((se) => se === ue), getSnapshot: () => Q.newestOnTop ? I.reverse() : I };
|
|
11191
|
-
}(U, _, Ac);
|
|
11192
|
-
It.set(U, T);
|
|
11193
|
-
const P = T.observe(H);
|
|
11194
|
-
return Mi.forEach((K) => Fu(K.content, K.options)), Mi = [], () => {
|
|
11195
|
-
P(), It.delete(U);
|
|
11196
|
-
};
|
|
11197
|
-
}, setProps(H) {
|
|
11198
|
-
var T;
|
|
11199
|
-
(T = It.get(U)) == null || T.setProps(H);
|
|
11200
|
-
}, getSnapshot() {
|
|
11201
|
-
var H;
|
|
11202
|
-
return (H = It.get(U)) == null ? void 0 : H.getSnapshot();
|
|
11203
|
-
} };
|
|
11204
|
-
}(m)).current;
|
|
11205
|
-
R(m);
|
|
11206
|
-
const u = ju(v, k, k);
|
|
11207
|
-
return { getToastToRender: function(_) {
|
|
11208
|
-
if (!u)
|
|
11209
|
-
return [];
|
|
11210
|
-
const U = /* @__PURE__ */ new Map();
|
|
11211
|
-
return u.forEach((H) => {
|
|
11212
|
-
const { position: T } = H.props;
|
|
11213
|
-
U.has(T) || U.set(T, []), U.get(T).push(H);
|
|
11214
|
-
}), Array.from(U, (H) => _(H[0], H[1]));
|
|
11215
|
-
}, isToastActive: _u, count: u == null ? void 0 : u.length };
|
|
11216
|
-
}
|
|
11217
|
-
function Fc(m) {
|
|
11218
|
-
const [v, k] = Fl(!1), [R, u] = Fl(!1), _ = Ma(null), U = Ma({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: H, pauseOnHover: T, closeToast: P, onClick: K, closeOnClick: F } = m;
|
|
11219
|
-
var J, me;
|
|
11220
|
-
function te() {
|
|
11221
|
-
k(!0);
|
|
11222
|
-
}
|
|
11223
|
-
function q() {
|
|
11224
|
-
k(!1);
|
|
11225
|
-
}
|
|
11226
|
-
function L(Y) {
|
|
11227
|
-
const ee = _.current;
|
|
11228
|
-
U.canDrag && ee && (U.didMove = !0, v && q(), U.delta = m.draggableDirection === "x" ? Y.clientX - U.start : Y.clientY - U.start, U.start !== Y.clientX && (U.canCloseOnClick = !1), ee.style.transform = `translate3d(${m.draggableDirection === "x" ? `${U.delta}px, var(--y)` : `0, calc(${U.delta}px + var(--y))`},0)`, ee.style.opacity = "" + (1 - Math.abs(U.delta / U.removalDistance)));
|
|
11229
|
-
}
|
|
11230
|
-
function I() {
|
|
11231
|
-
document.removeEventListener("pointermove", L), document.removeEventListener("pointerup", I);
|
|
11232
|
-
const Y = _.current;
|
|
11233
|
-
if (U.canDrag && U.didMove && Y) {
|
|
11234
|
-
if (U.canDrag = !1, Math.abs(U.delta) > U.removalDistance)
|
|
11235
|
-
return u(!0), m.closeToast(), void m.collapseAll();
|
|
11236
|
-
Y.style.transition = "transform 0.2s, opacity 0.2s", Y.style.removeProperty("transform"), Y.style.removeProperty("opacity");
|
|
10854
|
+
function I() {
|
|
10855
|
+
document.removeEventListener("pointermove", L), document.removeEventListener("pointerup", I);
|
|
10856
|
+
const Y = _.current;
|
|
10857
|
+
if (U.canDrag && U.didMove && Y) {
|
|
10858
|
+
if (U.canDrag = !1, Math.abs(U.delta) > U.removalDistance)
|
|
10859
|
+
return u(!0), m.closeToast(), void m.collapseAll();
|
|
10860
|
+
Y.style.transition = "transform 0.2s, opacity 0.2s", Y.style.removeProperty("transform"), Y.style.removeProperty("opacity");
|
|
11237
10861
|
}
|
|
11238
10862
|
}
|
|
11239
10863
|
(me = It.get((J = { id: m.toastId, containerId: m.containerId, fn: k }).containerId || 1)) == null || me.setToggle(J.id, J.fn), Ml(() => {
|
|
@@ -11256,7 +10880,7 @@ function Fc(m) {
|
|
|
11256
10880
|
K && K(Y), U.canCloseOnClick && P();
|
|
11257
10881
|
}), { playToast: te, pauseToast: q, isRunning: v, preventExitTransition: R, toastRef: _, eventHandlers: Q };
|
|
11258
10882
|
}
|
|
11259
|
-
function
|
|
10883
|
+
function vc(m) {
|
|
11260
10884
|
let { delay: v, isRunning: k, closeToast: R, type: u = "default", hide: _, className: U, style: H, controlledProgress: T, progress: P, rtl: K, isIn: F, theme: J } = m;
|
|
11261
10885
|
const me = _ || T && P === 0, te = { ...H, animationDuration: `${v}ms`, animationPlayState: k ? "running" : "paused" };
|
|
11262
10886
|
T && (te.transform = `scaleX(${P})`);
|
|
@@ -11265,24 +10889,24 @@ function Oc(m) {
|
|
|
11265
10889
|
} };
|
|
11266
10890
|
return Ae.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": me }, Ae.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${J} Toastify__progress-bar--${u}` }), Ae.createElement("div", { role: "progressbar", "aria-hidden": me ? "true" : "false", "aria-label": "notification timer", className: L, style: te, ...I }));
|
|
11267
10891
|
}
|
|
11268
|
-
let
|
|
11269
|
-
const
|
|
11270
|
-
function
|
|
11271
|
-
return m && (Oo(m.toastId) || Di(m.toastId)) ? m.toastId :
|
|
10892
|
+
let gc = 1;
|
|
10893
|
+
const Au = () => "" + gc++;
|
|
10894
|
+
function mc(m) {
|
|
10895
|
+
return m && (Oo(m.toastId) || Di(m.toastId)) ? m.toastId : Au();
|
|
11272
10896
|
}
|
|
11273
10897
|
function Oi(m, v) {
|
|
11274
|
-
return
|
|
10898
|
+
return Pu(m, v), v.toastId;
|
|
11275
10899
|
}
|
|
11276
|
-
function
|
|
11277
|
-
return { ...v, type: v && v.type || m, toastId:
|
|
10900
|
+
function Ol(m, v) {
|
|
10901
|
+
return { ...v, type: v && v.type || m, toastId: mc(v) };
|
|
11278
10902
|
}
|
|
11279
|
-
function
|
|
11280
|
-
return (v, k) => Oi(v,
|
|
10903
|
+
function Il(m) {
|
|
10904
|
+
return (v, k) => Oi(v, Ol(m, k));
|
|
11281
10905
|
}
|
|
11282
10906
|
function Ye(m, v) {
|
|
11283
|
-
return Oi(m,
|
|
10907
|
+
return Oi(m, Ol("default", v));
|
|
11284
10908
|
}
|
|
11285
|
-
Ye.loading = (m, v) => Oi(m,
|
|
10909
|
+
Ye.loading = (m, v) => Oi(m, Ol("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...v })), Ye.promise = function(m, v, k) {
|
|
11286
10910
|
let R, { pending: u, error: _, success: U } = v;
|
|
11287
10911
|
u && (R = Oo(u) ? Ye.loading(u, k) : Ye.loading(u.render, { ...k, ...u }));
|
|
11288
10912
|
const H = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, T = (K, F, J) => {
|
|
@@ -11292,10 +10916,10 @@ Ye.loading = (m, v) => Oi(m, Dl("default", { isLoading: !0, autoClose: !1, close
|
|
|
11292
10916
|
return R ? Ye.update(R, { ...me, ...te }) : Ye(te.render, { ...me, ...te }), J;
|
|
11293
10917
|
}, P = Xt(m) ? m() : m;
|
|
11294
10918
|
return P.then((K) => T("success", U, K)).catch((K) => T("error", _, K)), P;
|
|
11295
|
-
}, Ye.success =
|
|
10919
|
+
}, Ye.success = Il("success"), Ye.info = Il("info"), Ye.error = Il("error"), Ye.warning = Il("warning"), Ye.warn = Ye.warning, Ye.dark = (m, v) => Oi(m, Ol("default", { theme: "dark", ...v })), Ye.dismiss = function(m) {
|
|
11296
10920
|
(function(v) {
|
|
11297
10921
|
var k;
|
|
11298
|
-
if (
|
|
10922
|
+
if (Ru()) {
|
|
11299
10923
|
if (v == null || Oo(k = v) || Di(k))
|
|
11300
10924
|
It.forEach((u) => {
|
|
11301
10925
|
u.removeToast(v);
|
|
@@ -11313,7 +10937,7 @@ Ye.loading = (m, v) => Oi(m, Dl("default", { isLoading: !0, autoClose: !1, close
|
|
|
11313
10937
|
m === void 0 && (m = {}), It.forEach((v) => {
|
|
11314
10938
|
!v.props.limit || m.containerId && v.id !== m.containerId || v.clearQueue();
|
|
11315
10939
|
});
|
|
11316
|
-
}, Ye.isActive =
|
|
10940
|
+
}, Ye.isActive = Iu, Ye.update = function(m, v) {
|
|
11317
10941
|
v === void 0 && (v = {});
|
|
11318
10942
|
const k = ((R, u) => {
|
|
11319
10943
|
var _;
|
|
@@ -11321,7 +10945,7 @@ Ye.loading = (m, v) => Oi(m, Dl("default", { isLoading: !0, autoClose: !1, close
|
|
|
11321
10945
|
return (_ = It.get(U || 1)) == null ? void 0 : _.toasts.get(R);
|
|
11322
10946
|
})(m, v);
|
|
11323
10947
|
if (k) {
|
|
11324
|
-
const { props: R, content: u } = k, _ = { delay: 100, ...R, ...v, toastId: v.toastId || m, updateId:
|
|
10948
|
+
const { props: R, content: u } = k, _ = { delay: 100, ...R, ...v, toastId: v.toastId || m, updateId: Au() };
|
|
11325
10949
|
_.toastId !== m && (_.staleId = m);
|
|
11326
10950
|
const U = _.render || u;
|
|
11327
10951
|
delete _.render, Oi(U, _);
|
|
@@ -11329,28 +10953,28 @@ Ye.loading = (m, v) => Oi(m, Dl("default", { isLoading: !0, autoClose: !1, close
|
|
|
11329
10953
|
}, Ye.done = (m) => {
|
|
11330
10954
|
Ye.update(m, { progress: 1 });
|
|
11331
10955
|
}, Ye.onChange = function(m) {
|
|
11332
|
-
return
|
|
11333
|
-
|
|
10956
|
+
return Gs.add(m), () => {
|
|
10957
|
+
Gs.delete(m);
|
|
11334
10958
|
};
|
|
11335
|
-
}, Ye.play = (m) =>
|
|
11336
|
-
const
|
|
10959
|
+
}, Ye.play = (m) => hu(!0, m), Ye.pause = (m) => hu(!1, m);
|
|
10960
|
+
const yc = typeof window < "u" ? Zs : Ml, Pl = (m) => {
|
|
11337
10961
|
let { theme: v, type: k, isLoading: R, ...u } = m;
|
|
11338
10962
|
return Ae.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: v === "colored" ? "currentColor" : `var(--toastify-icon-color-${k})`, ...u });
|
|
11339
|
-
},
|
|
11340
|
-
return Ae.createElement(
|
|
10963
|
+
}, js = { info: function(m) {
|
|
10964
|
+
return Ae.createElement(Pl, { ...m }, Ae.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" }));
|
|
11341
10965
|
}, warning: function(m) {
|
|
11342
|
-
return Ae.createElement(
|
|
10966
|
+
return Ae.createElement(Pl, { ...m }, Ae.createElement("path", { 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" }));
|
|
11343
10967
|
}, success: function(m) {
|
|
11344
|
-
return Ae.createElement(
|
|
10968
|
+
return Ae.createElement(Pl, { ...m }, Ae.createElement("path", { 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" }));
|
|
11345
10969
|
}, error: function(m) {
|
|
11346
|
-
return Ae.createElement(
|
|
10970
|
+
return Ae.createElement(Pl, { ...m }, Ae.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" }));
|
|
11347
10971
|
}, spinner: function() {
|
|
11348
10972
|
return Ae.createElement("div", { className: "Toastify__spinner" });
|
|
11349
|
-
} },
|
|
11350
|
-
const { isRunning: v, preventExitTransition: k, toastRef: R, eventHandlers: u, playToast: _ } =
|
|
10973
|
+
} }, Sc = (m) => {
|
|
10974
|
+
const { isRunning: v, preventExitTransition: k, toastRef: R, eventHandlers: u, playToast: _ } = hc(m), { closeButton: U, children: H, autoClose: T, onClick: P, type: K, hideProgressBar: F, closeToast: J, transition: me, position: te, className: q, style: L, bodyClassName: I, bodyStyle: Q, progressClassName: Y, progressStyle: ee, updateId: z, role: he, progress: ne, rtl: ue, toastId: se, deleteToast: Ie, isIn: _e, isLoading: Ce, closeOnClick: je, theme: Le } = m, qe = Vn("Toastify__toast", `Toastify__toast-theme--${Le}`, `Toastify__toast--${K}`, { "Toastify__toast--rtl": ue }, { "Toastify__toast--close-on-click": je }), Ge = Xt(q) ? q({ rtl: ue, position: te, type: K, defaultClassName: qe }) : Vn(qe, q), $e = function(G) {
|
|
11351
10975
|
let { theme: ae, type: fe, isLoading: ce, icon: ie } = G, oe = null;
|
|
11352
10976
|
const ge = { theme: ae, type: fe };
|
|
11353
|
-
return ie === !1 || (Xt(ie) ? oe = ie({ ...ge, isLoading: ce }) : Oa(ie) ? oe = Hs(ie, ge) : ce ? oe =
|
|
10977
|
+
return ie === !1 || (Xt(ie) ? oe = ie({ ...ge, isLoading: ce }) : Oa(ie) ? oe = Hs(ie, ge) : ce ? oe = js.spinner() : ((be) => be in js)(fe) && (oe = js[fe](ge))), oe;
|
|
11354
10978
|
}(m), Re = !!ne || !T, Ue = { closeToast: J, type: K, theme: Le };
|
|
11355
10979
|
let V = null;
|
|
11356
10980
|
return U === !1 || (V = Xt(U) ? U(Ue) : Oa(U) ? Hs(U, Ue) : function(G) {
|
|
@@ -11358,17 +10982,17 @@ const Lc = typeof window < "u" ? Zs : Ml, Al = (m) => {
|
|
|
11358
10982
|
return Ae.createElement("button", { className: `Toastify__close-button Toastify__close-button--${fe}`, type: "button", onClick: (ie) => {
|
|
11359
10983
|
ie.stopPropagation(), ae(ie);
|
|
11360
10984
|
}, "aria-label": ce }, Ae.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, Ae.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" })));
|
|
11361
|
-
}(Ue)), Ae.createElement(me, { isIn: _e, done: Ie, position: te, preventExitTransition: k, nodeRef: R, playToast: _ }, Ae.createElement("div", { id: se, onClick: P, "data-in": _e, className: Ge, ...u, style: L, ref: R }, Ae.createElement("div", { ..._e && { role: he }, className: Xt(I) ? I({ type: K }) : Vn("Toastify__toast-body", I), style: Q }, $e != null && Ae.createElement("div", { className: Vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !Ce }) }, $e), Ae.createElement("div", null, H)), V, Ae.createElement(
|
|
10985
|
+
}(Ue)), Ae.createElement(me, { isIn: _e, done: Ie, position: te, preventExitTransition: k, nodeRef: R, playToast: _ }, Ae.createElement("div", { id: se, onClick: P, "data-in": _e, className: Ge, ...u, style: L, ref: R }, Ae.createElement("div", { ..._e && { role: he }, className: Xt(I) ? I({ type: K }) : Vn("Toastify__toast-body", I), style: Q }, $e != null && Ae.createElement("div", { className: Vn("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !Ce }) }, $e), Ae.createElement("div", null, H)), V, Ae.createElement(vc, { ...z && !Re ? { key: `pb-${z}` } : {}, rtl: ue, theme: Le, delay: T, isRunning: v, isIn: _e, closeToast: J, hide: F, type: K, style: ee, className: Y, controlledProgress: Re, progress: ne || 0 })));
|
|
11362
10986
|
}, Bl = function(m, v) {
|
|
11363
10987
|
return v === void 0 && (v = !1), { enter: `Toastify--animate Toastify__${m}-enter`, exit: `Toastify--animate Toastify__${m}-exit`, appendPosition: v };
|
|
11364
|
-
},
|
|
10988
|
+
}, bc = Ll(Bl("bounce", !0));
|
|
11365
10989
|
Ll(Bl("slide", !0));
|
|
11366
10990
|
Ll(Bl("zoom"));
|
|
11367
10991
|
Ll(Bl("flip"));
|
|
11368
|
-
const
|
|
11369
|
-
function
|
|
11370
|
-
let v = { ...
|
|
11371
|
-
const k = m.stacked, [R, u] = Fl(!0), _ = Ma(null), { getToastToRender: U, isToastActive: H, count: T } =
|
|
10992
|
+
const wc = { position: "top-right", transition: bc, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
10993
|
+
function Qc(m) {
|
|
10994
|
+
let v = { ...wc, ...m };
|
|
10995
|
+
const k = m.stacked, [R, u] = Fl(!0), _ = Ma(null), { getToastToRender: U, isToastActive: H, count: T } = pc(v), { className: P, style: K, rtl: F, containerId: J } = v;
|
|
11372
10996
|
function me(q) {
|
|
11373
10997
|
const L = Vn("Toastify__toast-container", `Toastify__toast-container--${q}`, { "Toastify__toast-container--rtl": F });
|
|
11374
10998
|
return Xt(P) ? P({ position: q, rtl: F, defaultClassName: L }) : Vn(L, _l(P));
|
|
@@ -11376,7 +11000,7 @@ function Xc(m) {
|
|
|
11376
11000
|
function te() {
|
|
11377
11001
|
k && (u(!0), Ye.play());
|
|
11378
11002
|
}
|
|
11379
|
-
return
|
|
11003
|
+
return yc(() => {
|
|
11380
11004
|
if (k) {
|
|
11381
11005
|
var q;
|
|
11382
11006
|
const L = _.current.querySelectorAll('[data-in="true"]'), I = 12, Q = (q = v.position) == null ? void 0 : q.includes("top");
|
|
@@ -11394,7 +11018,7 @@ function Xc(m) {
|
|
|
11394
11018
|
const I = L.length ? { ...K } : { ...K, pointerEvents: "none" };
|
|
11395
11019
|
return Ae.createElement("div", { className: me(q), style: I, key: `container-${q}` }, L.map((Q) => {
|
|
11396
11020
|
let { content: Y, props: ee } = Q;
|
|
11397
|
-
return Ae.createElement(
|
|
11021
|
+
return Ae.createElement(Sc, { ...ee, stacked: k, collapseAll: te, isIn: H(ee.toastId, ee.containerId), style: ee.style, key: `toast-${ee.key}` }, Y);
|
|
11398
11022
|
}));
|
|
11399
11023
|
}));
|
|
11400
11024
|
}
|
|
@@ -11434,7 +11058,7 @@ const Da = {
|
|
|
11434
11058
|
containedButtonString: "#000000",
|
|
11435
11059
|
pink: "#E81F76"
|
|
11436
11060
|
};
|
|
11437
|
-
function
|
|
11061
|
+
function xc() {
|
|
11438
11062
|
return /* @__PURE__ */ Js(
|
|
11439
11063
|
"svg",
|
|
11440
11064
|
{
|
|
@@ -11480,7 +11104,7 @@ function Wc() {
|
|
|
11480
11104
|
}
|
|
11481
11105
|
);
|
|
11482
11106
|
}
|
|
11483
|
-
function
|
|
11107
|
+
function kc() {
|
|
11484
11108
|
return /* @__PURE__ */ Js(
|
|
11485
11109
|
"svg",
|
|
11486
11110
|
{
|
|
@@ -11505,7 +11129,7 @@ function Hc() {
|
|
|
11505
11129
|
}
|
|
11506
11130
|
);
|
|
11507
11131
|
}
|
|
11508
|
-
function
|
|
11132
|
+
function Ec() {
|
|
11509
11133
|
return /* @__PURE__ */ Js(
|
|
11510
11134
|
"svg",
|
|
11511
11135
|
{
|
|
@@ -11546,71 +11170,448 @@ function zc() {
|
|
|
11546
11170
|
strokeLinecap: "round",
|
|
11547
11171
|
strokeLinejoin: "round"
|
|
11548
11172
|
}
|
|
11549
|
-
)
|
|
11550
|
-
]
|
|
11173
|
+
)
|
|
11174
|
+
]
|
|
11175
|
+
}
|
|
11176
|
+
);
|
|
11177
|
+
}
|
|
11178
|
+
const Ks = {
|
|
11179
|
+
paddingLeft: "16px",
|
|
11180
|
+
borderLeft: "2px solid",
|
|
11181
|
+
boxShadow: "none",
|
|
11182
|
+
fontFamily: "inherit"
|
|
11183
|
+
}, Kc = (m) => {
|
|
11184
|
+
Ye.success(m, {
|
|
11185
|
+
icon: /* @__PURE__ */ kr(kc, {}),
|
|
11186
|
+
bodyStyle: {},
|
|
11187
|
+
position: "bottom-right",
|
|
11188
|
+
style: {
|
|
11189
|
+
...Ks,
|
|
11190
|
+
background: Da.lightPrimary,
|
|
11191
|
+
borderColor: Da.success,
|
|
11192
|
+
color: Da.success
|
|
11193
|
+
}
|
|
11194
|
+
});
|
|
11195
|
+
}, qc = (m) => {
|
|
11196
|
+
Ye.error(m, {
|
|
11197
|
+
icon: /* @__PURE__ */ kr(xc, {}),
|
|
11198
|
+
position: "bottom-right",
|
|
11199
|
+
style: {
|
|
11200
|
+
...Ks,
|
|
11201
|
+
background: "#F7E4E1",
|
|
11202
|
+
borderColor: Da.danger,
|
|
11203
|
+
color: Da.danger
|
|
11204
|
+
}
|
|
11205
|
+
});
|
|
11206
|
+
}, ef = (m) => {
|
|
11207
|
+
Ye.error(m, {
|
|
11208
|
+
icon: /* @__PURE__ */ kr(Ec, {}),
|
|
11209
|
+
position: "bottom-right",
|
|
11210
|
+
style: {
|
|
11211
|
+
...Ks,
|
|
11212
|
+
background: "#FFF1B8",
|
|
11213
|
+
borderColor: "#faad14",
|
|
11214
|
+
color: Da.textPrimary
|
|
11215
|
+
}
|
|
11216
|
+
});
|
|
11217
|
+
};
|
|
11218
|
+
function Tc(m, v) {
|
|
11219
|
+
if (m == null)
|
|
11220
|
+
return {};
|
|
11221
|
+
var k = {}, R = Object.keys(m), u, _;
|
|
11222
|
+
for (_ = 0; _ < R.length; _++)
|
|
11223
|
+
u = R[_], !(v.indexOf(u) >= 0) && (k[u] = m[u]);
|
|
11224
|
+
return k;
|
|
11225
|
+
}
|
|
11226
|
+
function Dl() {
|
|
11227
|
+
return Dl = Object.assign ? Object.assign.bind() : function(m) {
|
|
11228
|
+
for (var v = 1; v < arguments.length; v++) {
|
|
11229
|
+
var k = arguments[v];
|
|
11230
|
+
for (var R in k)
|
|
11231
|
+
Object.prototype.hasOwnProperty.call(k, R) && (m[R] = k[R]);
|
|
11232
|
+
}
|
|
11233
|
+
return m;
|
|
11234
|
+
}, Dl.apply(this, arguments);
|
|
11235
|
+
}
|
|
11236
|
+
function Xs(m, v) {
|
|
11237
|
+
return Xs = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, u) {
|
|
11238
|
+
return R.__proto__ = u, R;
|
|
11239
|
+
}, Xs(m, v);
|
|
11240
|
+
}
|
|
11241
|
+
function Cc(m, v) {
|
|
11242
|
+
m.prototype = Object.create(v.prototype), m.prototype.constructor = m, Xs(m, v);
|
|
11243
|
+
}
|
|
11244
|
+
function Us(m, v, k) {
|
|
11245
|
+
if (k || arguments.length === 2)
|
|
11246
|
+
for (var R = 0, u = v.length, _; R < u; R++)
|
|
11247
|
+
(_ || !(R in v)) && (_ || (_ = Array.prototype.slice.call(v, 0, R)), _[R] = v[R]);
|
|
11248
|
+
return m.concat(_ || Array.prototype.slice.call(v));
|
|
11249
|
+
}
|
|
11250
|
+
/*!
|
|
11251
|
+
* content-type
|
|
11252
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
11253
|
+
* MIT Licensed
|
|
11254
|
+
*/
|
|
11255
|
+
var vu = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g, Rc = /\\([\u000b\u0020-\u00ff])/g, Ic = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/, Pc = Ac;
|
|
11256
|
+
function Ac(m) {
|
|
11257
|
+
if (!m)
|
|
11258
|
+
throw new TypeError("argument string is required");
|
|
11259
|
+
var v = typeof m == "object" ? _c(m) : m;
|
|
11260
|
+
if (typeof v != "string")
|
|
11261
|
+
throw new TypeError("argument string is required to be a string");
|
|
11262
|
+
var k = v.indexOf(";"), R = k !== -1 ? v.slice(0, k).trim() : v.trim();
|
|
11263
|
+
if (!Ic.test(R))
|
|
11264
|
+
throw new TypeError("invalid media type");
|
|
11265
|
+
var u = new Fc(R.toLowerCase());
|
|
11266
|
+
if (k !== -1) {
|
|
11267
|
+
var _, U, H;
|
|
11268
|
+
for (vu.lastIndex = k; U = vu.exec(v); ) {
|
|
11269
|
+
if (U.index !== k)
|
|
11270
|
+
throw new TypeError("invalid parameter format");
|
|
11271
|
+
k += U[0].length, _ = U[1].toLowerCase(), H = U[2], H.charCodeAt(0) === 34 && (H = H.slice(1, -1), H.indexOf("\\") !== -1 && (H = H.replace(Rc, "$1"))), u.parameters[_] = H;
|
|
11272
|
+
}
|
|
11273
|
+
if (k !== v.length)
|
|
11274
|
+
throw new TypeError("invalid parameter format");
|
|
11275
|
+
}
|
|
11276
|
+
return u;
|
|
11277
|
+
}
|
|
11278
|
+
function _c(m) {
|
|
11279
|
+
var v;
|
|
11280
|
+
if (typeof m.getHeader == "function" ? v = m.getHeader("content-type") : typeof m.headers == "object" && (v = m.headers && m.headers["content-type"]), typeof v != "string")
|
|
11281
|
+
throw new TypeError("content-type header is missing from object");
|
|
11282
|
+
return v;
|
|
11283
|
+
}
|
|
11284
|
+
function Fc(m) {
|
|
11285
|
+
this.parameters = /* @__PURE__ */ Object.create(null), this.type = m;
|
|
11286
|
+
}
|
|
11287
|
+
var Fa = /* @__PURE__ */ new Map(), _u = function(v) {
|
|
11288
|
+
return v.cloneNode(!0);
|
|
11289
|
+
}, gu = function() {
|
|
11290
|
+
return window.location.protocol === "file:";
|
|
11291
|
+
}, Fu = function(v, k, R) {
|
|
11292
|
+
var u = new XMLHttpRequest();
|
|
11293
|
+
u.onreadystatechange = function() {
|
|
11294
|
+
try {
|
|
11295
|
+
if (!/\.svg/i.test(v) && u.readyState === 2) {
|
|
11296
|
+
var _ = u.getResponseHeader("Content-Type");
|
|
11297
|
+
if (!_)
|
|
11298
|
+
throw new Error("Content type not found");
|
|
11299
|
+
var U = Pc(_).type;
|
|
11300
|
+
if (!(U === "image/svg+xml" || U === "text/plain"))
|
|
11301
|
+
throw new Error("Invalid content type: ".concat(U));
|
|
11302
|
+
}
|
|
11303
|
+
if (u.readyState === 4) {
|
|
11304
|
+
if (u.status === 404 || u.responseXML === null)
|
|
11305
|
+
throw new Error(gu() ? "Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver." : "Unable to load SVG file: " + v);
|
|
11306
|
+
if (u.status === 200 || gu() && u.status === 0)
|
|
11307
|
+
R(null, u);
|
|
11308
|
+
else
|
|
11309
|
+
throw new Error("There was a problem injecting the SVG: " + u.status + " " + u.statusText);
|
|
11310
|
+
}
|
|
11311
|
+
} catch (H) {
|
|
11312
|
+
if (u.abort(), H instanceof Error)
|
|
11313
|
+
R(H, u);
|
|
11314
|
+
else
|
|
11315
|
+
throw H;
|
|
11316
|
+
}
|
|
11317
|
+
}, u.open("GET", v), u.withCredentials = k, u.overrideMimeType && u.overrideMimeType("text/xml"), u.send();
|
|
11318
|
+
}, Nn = {}, mu = function(v, k) {
|
|
11319
|
+
Nn[v] = Nn[v] || [], Nn[v].push(k);
|
|
11320
|
+
}, Oc = function(v) {
|
|
11321
|
+
for (var k = function(U, H) {
|
|
11322
|
+
setTimeout(function() {
|
|
11323
|
+
if (Array.isArray(Nn[v])) {
|
|
11324
|
+
var T = Fa.get(v), P = Nn[v][U];
|
|
11325
|
+
T instanceof SVGSVGElement && P(null, _u(T)), T instanceof Error && P(T), U === Nn[v].length - 1 && delete Nn[v];
|
|
11326
|
+
}
|
|
11327
|
+
}, 0);
|
|
11328
|
+
}, R = 0, u = Nn[v].length; R < u; R++)
|
|
11329
|
+
k(R);
|
|
11330
|
+
}, Dc = function(v, k, R) {
|
|
11331
|
+
if (Fa.has(v)) {
|
|
11332
|
+
var u = Fa.get(v);
|
|
11333
|
+
if (u === void 0) {
|
|
11334
|
+
mu(v, R);
|
|
11335
|
+
return;
|
|
11336
|
+
}
|
|
11337
|
+
if (u instanceof SVGSVGElement) {
|
|
11338
|
+
R(null, _u(u));
|
|
11339
|
+
return;
|
|
11340
|
+
}
|
|
11341
|
+
}
|
|
11342
|
+
Fa.set(v, void 0), mu(v, R), Fu(v, k, function(_, U) {
|
|
11343
|
+
var H;
|
|
11344
|
+
_ ? Fa.set(v, _) : ((H = U.responseXML) === null || H === void 0 ? void 0 : H.documentElement) instanceof SVGSVGElement && Fa.set(v, U.responseXML.documentElement), Oc(v);
|
|
11345
|
+
});
|
|
11346
|
+
}, Mc = function(v, k, R) {
|
|
11347
|
+
Fu(v, k, function(u, _) {
|
|
11348
|
+
var U;
|
|
11349
|
+
u ? R(u) : ((U = _.responseXML) === null || U === void 0 ? void 0 : U.documentElement) instanceof SVGSVGElement && R(null, _.responseXML.documentElement);
|
|
11350
|
+
});
|
|
11351
|
+
}, Lc = 0, Bc = function() {
|
|
11352
|
+
return ++Lc;
|
|
11353
|
+
}, Wr = [], yu = {}, jc = "http://www.w3.org/2000/svg", Ws = "http://www.w3.org/1999/xlink", Su = function(v, k, R, u, _, U, H) {
|
|
11354
|
+
var T = v.getAttribute("data-src") || v.getAttribute("src");
|
|
11355
|
+
if (!T) {
|
|
11356
|
+
H(new Error("Invalid data-src or src attribute"));
|
|
11357
|
+
return;
|
|
11358
|
+
}
|
|
11359
|
+
if (Wr.indexOf(v) !== -1) {
|
|
11360
|
+
Wr.splice(Wr.indexOf(v), 1), v = null;
|
|
11361
|
+
return;
|
|
11362
|
+
}
|
|
11363
|
+
Wr.push(v), v.setAttribute("src", "");
|
|
11364
|
+
var P = u ? Dc : Mc;
|
|
11365
|
+
P(T, _, function(K, F) {
|
|
11366
|
+
if (!F) {
|
|
11367
|
+
Wr.splice(Wr.indexOf(v), 1), v = null, H(K);
|
|
11368
|
+
return;
|
|
11369
|
+
}
|
|
11370
|
+
var J = v.getAttribute("id");
|
|
11371
|
+
J && F.setAttribute("id", J);
|
|
11372
|
+
var me = v.getAttribute("title");
|
|
11373
|
+
me && F.setAttribute("title", me);
|
|
11374
|
+
var te = v.getAttribute("width");
|
|
11375
|
+
te && F.setAttribute("width", te);
|
|
11376
|
+
var q = v.getAttribute("height");
|
|
11377
|
+
q && F.setAttribute("height", q);
|
|
11378
|
+
var L = Array.from(new Set(Us(Us(Us([], (F.getAttribute("class") || "").split(" "), !0), ["injected-svg"], !1), (v.getAttribute("class") || "").split(" "), !0))).join(" ").trim();
|
|
11379
|
+
F.setAttribute("class", L);
|
|
11380
|
+
var I = v.getAttribute("style");
|
|
11381
|
+
I && F.setAttribute("style", I), F.setAttribute("data-src", T);
|
|
11382
|
+
var Q = [].filter.call(v.attributes, function(Re) {
|
|
11383
|
+
return /^data-\w[\w-]*$/.test(Re.name);
|
|
11384
|
+
});
|
|
11385
|
+
if (Array.prototype.forEach.call(Q, function(Re) {
|
|
11386
|
+
Re.name && Re.value && F.setAttribute(Re.name, Re.value);
|
|
11387
|
+
}), R) {
|
|
11388
|
+
var Y = {
|
|
11389
|
+
clipPath: ["clip-path"],
|
|
11390
|
+
"color-profile": ["color-profile"],
|
|
11391
|
+
cursor: ["cursor"],
|
|
11392
|
+
filter: ["filter"],
|
|
11393
|
+
linearGradient: ["fill", "stroke"],
|
|
11394
|
+
marker: ["marker", "marker-start", "marker-mid", "marker-end"],
|
|
11395
|
+
mask: ["mask"],
|
|
11396
|
+
path: [],
|
|
11397
|
+
pattern: ["fill", "stroke"],
|
|
11398
|
+
radialGradient: ["fill", "stroke"]
|
|
11399
|
+
}, ee, z, he, ne, ue;
|
|
11400
|
+
Object.keys(Y).forEach(function(Re) {
|
|
11401
|
+
ee = Re, he = Y[Re], z = F.querySelectorAll(ee + "[id]");
|
|
11402
|
+
for (var Ue = function(fe, ce) {
|
|
11403
|
+
ne = z[fe].id, ue = ne + "-" + Bc();
|
|
11404
|
+
var ie;
|
|
11405
|
+
Array.prototype.forEach.call(he, function(Fe) {
|
|
11406
|
+
ie = F.querySelectorAll("[" + Fe + '*="' + ne + '"]');
|
|
11407
|
+
for (var Ne = 0, mt = ie.length; Ne < mt; Ne++) {
|
|
11408
|
+
var Pt = ie[Ne].getAttribute(Fe);
|
|
11409
|
+
Pt && !Pt.match(new RegExp('url\\("?#' + ne + '"?\\)')) || ie[Ne].setAttribute(Fe, "url(#" + ue + ")");
|
|
11410
|
+
}
|
|
11411
|
+
});
|
|
11412
|
+
for (var oe = F.querySelectorAll("[*|href]"), ge = [], be = 0, we = oe.length; be < we; be++) {
|
|
11413
|
+
var xe = oe[be].getAttributeNS(Ws, "href");
|
|
11414
|
+
xe && xe.toString() === "#" + z[fe].id && ge.push(oe[be]);
|
|
11415
|
+
}
|
|
11416
|
+
for (var Pe = 0, re = ge.length; Pe < re; Pe++)
|
|
11417
|
+
ge[Pe].setAttributeNS(Ws, "href", "#" + ue);
|
|
11418
|
+
z[fe].id = ue;
|
|
11419
|
+
}, V = 0, G = z.length; V < G; V++)
|
|
11420
|
+
Ue(V);
|
|
11421
|
+
});
|
|
11551
11422
|
}
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
}, Zc = (m) => {
|
|
11560
|
-
Ye.success(m, {
|
|
11561
|
-
icon: /* @__PURE__ */ kr(Hc, {}),
|
|
11562
|
-
bodyStyle: {},
|
|
11563
|
-
position: "bottom-right",
|
|
11564
|
-
style: {
|
|
11565
|
-
...Ks,
|
|
11566
|
-
background: Da.lightPrimary,
|
|
11567
|
-
borderColor: Da.success,
|
|
11568
|
-
color: Da.success
|
|
11423
|
+
F.removeAttribute("xmlns:a");
|
|
11424
|
+
for (var se = F.querySelectorAll("script"), Ie = [], _e, Ce, je = 0, Le = se.length; je < Le; je++)
|
|
11425
|
+
Ce = se[je].getAttribute("type"), (!Ce || Ce === "application/ecmascript" || Ce === "application/javascript" || Ce === "text/javascript") && (_e = se[je].innerText || se[je].textContent, _e && Ie.push(_e), F.removeChild(se[je]));
|
|
11426
|
+
if (Ie.length > 0 && (k === "always" || k === "once" && !yu[T])) {
|
|
11427
|
+
for (var qe = 0, Ge = Ie.length; qe < Ge; qe++)
|
|
11428
|
+
new Function(Ie[qe])(window);
|
|
11429
|
+
yu[T] = !0;
|
|
11569
11430
|
}
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
...Ks,
|
|
11577
|
-
background: "#F7E4E1",
|
|
11578
|
-
borderColor: Da.danger,
|
|
11579
|
-
color: Da.danger
|
|
11431
|
+
var $e = F.querySelectorAll("style");
|
|
11432
|
+
if (Array.prototype.forEach.call($e, function(Re) {
|
|
11433
|
+
Re.textContent += "";
|
|
11434
|
+
}), F.setAttribute("xmlns", jc), F.setAttribute("xmlns:xlink", Ws), U(F), !v.parentNode) {
|
|
11435
|
+
Wr.splice(Wr.indexOf(v), 1), v = null, H(new Error("Parent node is null"));
|
|
11436
|
+
return;
|
|
11580
11437
|
}
|
|
11438
|
+
v.parentNode.replaceChild(F, v), Wr.splice(Wr.indexOf(v), 1), v = null, H(null, F);
|
|
11581
11439
|
});
|
|
11582
|
-
},
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11440
|
+
}, Uc = function(v, k) {
|
|
11441
|
+
var R = k === void 0 ? {} : k, u = R.afterAll, _ = u === void 0 ? function() {
|
|
11442
|
+
} : u, U = R.afterEach, H = U === void 0 ? function() {
|
|
11443
|
+
} : U, T = R.beforeEach, P = T === void 0 ? function() {
|
|
11444
|
+
} : T, K = R.cacheRequests, F = K === void 0 ? !0 : K, J = R.evalScripts, me = J === void 0 ? "never" : J, te = R.httpRequestWithCredentials, q = te === void 0 ? !1 : te, L = R.renumerateIRIElements, I = L === void 0 ? !0 : L;
|
|
11445
|
+
if (v && "length" in v)
|
|
11446
|
+
for (var Q = 0, Y = 0, ee = v.length; Y < ee; Y++)
|
|
11447
|
+
Su(v[Y], me, I, F, q, P, function(z, he) {
|
|
11448
|
+
H(z, he), v && "length" in v && v.length === ++Q && _(Q);
|
|
11449
|
+
});
|
|
11450
|
+
else
|
|
11451
|
+
v ? Su(v, me, I, F, q, P, function(z, he) {
|
|
11452
|
+
H(z, he), _(1), v = null;
|
|
11453
|
+
}) : _(0);
|
|
11454
|
+
}, Wc = function(v) {
|
|
11455
|
+
var k = (v == null ? void 0 : v.ownerDocument) || document;
|
|
11456
|
+
return k.defaultView || window;
|
|
11457
|
+
}, Hc = function(v, k) {
|
|
11458
|
+
for (var R in v)
|
|
11459
|
+
if (!(R in k))
|
|
11460
|
+
return !0;
|
|
11461
|
+
for (var u in k)
|
|
11462
|
+
if (v[u] !== k[u])
|
|
11463
|
+
return !0;
|
|
11464
|
+
return !1;
|
|
11465
|
+
}, zc = ["afterInjection", "beforeInjection", "desc", "evalScripts", "fallback", "httpRequestWithCredentials", "loading", "renumerateIRIElements", "src", "title", "useRequestCache", "wrapper"], Al = "http://www.w3.org/2000/svg", bu = "http://www.w3.org/1999/xlink", Ou = /* @__PURE__ */ function(m) {
|
|
11466
|
+
Cc(v, m);
|
|
11467
|
+
function v() {
|
|
11468
|
+
for (var R, u = arguments.length, _ = new Array(u), U = 0; U < u; U++)
|
|
11469
|
+
_[U] = arguments[U];
|
|
11470
|
+
return R = m.call.apply(m, [this].concat(_)) || this, R.initialState = {
|
|
11471
|
+
hasError: !1,
|
|
11472
|
+
isLoading: !0
|
|
11473
|
+
}, R.state = R.initialState, R._isMounted = !1, R.reactWrapper = void 0, R.nonReactWrapper = void 0, R.refCallback = function(H) {
|
|
11474
|
+
R.reactWrapper = H;
|
|
11475
|
+
}, R;
|
|
11476
|
+
}
|
|
11477
|
+
var k = v.prototype;
|
|
11478
|
+
return k.renderSVG = function() {
|
|
11479
|
+
var u = this;
|
|
11480
|
+
if (this.reactWrapper instanceof Wc(this.reactWrapper).Node) {
|
|
11481
|
+
var _ = this.props, U = _.desc, H = _.evalScripts, T = _.httpRequestWithCredentials, P = _.renumerateIRIElements, K = _.src, F = _.title, J = _.useRequestCache, me = this.props.onError, te = this.props.beforeInjection, q = this.props.afterInjection, L = this.props.wrapper, I, Q;
|
|
11482
|
+
L === "svg" ? (I = document.createElementNS(Al, L), I.setAttribute("xmlns", Al), I.setAttribute("xmlns:xlink", bu), Q = document.createElementNS(Al, L)) : (I = document.createElement(L), Q = document.createElement(L)), I.appendChild(Q), Q.dataset.src = K, this.nonReactWrapper = this.reactWrapper.appendChild(I);
|
|
11483
|
+
var Y = function(ne) {
|
|
11484
|
+
if (u.removeSVG(), !u._isMounted) {
|
|
11485
|
+
me(ne);
|
|
11486
|
+
return;
|
|
11487
|
+
}
|
|
11488
|
+
u.setState(function() {
|
|
11489
|
+
return {
|
|
11490
|
+
hasError: !0,
|
|
11491
|
+
isLoading: !1
|
|
11492
|
+
};
|
|
11493
|
+
}, function() {
|
|
11494
|
+
me(ne);
|
|
11495
|
+
});
|
|
11496
|
+
}, ee = function(ne, ue) {
|
|
11497
|
+
if (ne) {
|
|
11498
|
+
Y(ne);
|
|
11499
|
+
return;
|
|
11500
|
+
}
|
|
11501
|
+
u._isMounted && u.setState(function() {
|
|
11502
|
+
return {
|
|
11503
|
+
isLoading: !1
|
|
11504
|
+
};
|
|
11505
|
+
}, function() {
|
|
11506
|
+
try {
|
|
11507
|
+
q(ue);
|
|
11508
|
+
} catch (se) {
|
|
11509
|
+
Y(se);
|
|
11510
|
+
}
|
|
11511
|
+
});
|
|
11512
|
+
}, z = function(ne) {
|
|
11513
|
+
if (ne.setAttribute("role", "img"), U) {
|
|
11514
|
+
var ue = ne.querySelector(":scope > desc");
|
|
11515
|
+
ue && ne.removeChild(ue);
|
|
11516
|
+
var se = document.createElement("desc");
|
|
11517
|
+
se.innerHTML = U, ne.prepend(se);
|
|
11518
|
+
}
|
|
11519
|
+
if (F) {
|
|
11520
|
+
var Ie = ne.querySelector(":scope > title");
|
|
11521
|
+
Ie && ne.removeChild(Ie);
|
|
11522
|
+
var _e = document.createElement("title");
|
|
11523
|
+
_e.innerHTML = F, ne.prepend(_e);
|
|
11524
|
+
}
|
|
11525
|
+
try {
|
|
11526
|
+
te(ne);
|
|
11527
|
+
} catch (Ce) {
|
|
11528
|
+
Y(Ce);
|
|
11529
|
+
}
|
|
11530
|
+
};
|
|
11531
|
+
Uc(Q, {
|
|
11532
|
+
afterEach: ee,
|
|
11533
|
+
beforeEach: z,
|
|
11534
|
+
cacheRequests: J,
|
|
11535
|
+
evalScripts: H,
|
|
11536
|
+
httpRequestWithCredentials: T,
|
|
11537
|
+
renumerateIRIElements: P
|
|
11538
|
+
});
|
|
11591
11539
|
}
|
|
11592
|
-
})
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11599
|
-
|
|
11540
|
+
}, k.removeSVG = function() {
|
|
11541
|
+
var u;
|
|
11542
|
+
(u = this.nonReactWrapper) != null && u.parentNode && (this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper), this.nonReactWrapper = null);
|
|
11543
|
+
}, k.componentDidMount = function() {
|
|
11544
|
+
this._isMounted = !0, this.renderSVG();
|
|
11545
|
+
}, k.componentDidUpdate = function(u) {
|
|
11546
|
+
var _ = this;
|
|
11547
|
+
Hc(Dl({}, u), this.props) && this.setState(function() {
|
|
11548
|
+
return _.initialState;
|
|
11549
|
+
}, function() {
|
|
11550
|
+
_.removeSVG(), _.renderSVG();
|
|
11551
|
+
});
|
|
11552
|
+
}, k.componentWillUnmount = function() {
|
|
11553
|
+
this._isMounted = !1, this.removeSVG();
|
|
11554
|
+
}, k.render = function() {
|
|
11555
|
+
var u = this.props;
|
|
11556
|
+
u.afterInjection, u.beforeInjection, u.desc, u.evalScripts;
|
|
11557
|
+
var _ = u.fallback;
|
|
11558
|
+
u.httpRequestWithCredentials;
|
|
11559
|
+
var U = u.loading;
|
|
11560
|
+
u.renumerateIRIElements, u.src, u.title, u.useRequestCache;
|
|
11561
|
+
var H = u.wrapper, T = Tc(u, zc), P = H;
|
|
11562
|
+
return /* @__PURE__ */ El.createElement(P, Dl({}, T, {
|
|
11563
|
+
ref: this.refCallback
|
|
11564
|
+
}, H === "svg" ? {
|
|
11565
|
+
xmlns: Al,
|
|
11566
|
+
xmlnsXlink: bu
|
|
11567
|
+
} : {}), this.state.isLoading && U && /* @__PURE__ */ El.createElement(U, null), this.state.hasError && _ && /* @__PURE__ */ El.createElement(_, null));
|
|
11568
|
+
}, v;
|
|
11569
|
+
}(El.Component);
|
|
11570
|
+
Ou.defaultProps = {
|
|
11571
|
+
afterInjection: function() {
|
|
11572
|
+
},
|
|
11573
|
+
beforeInjection: function() {
|
|
11574
|
+
},
|
|
11575
|
+
desc: "",
|
|
11576
|
+
evalScripts: "never",
|
|
11577
|
+
fallback: null,
|
|
11578
|
+
httpRequestWithCredentials: !1,
|
|
11579
|
+
loading: null,
|
|
11580
|
+
onError: function() {
|
|
11581
|
+
},
|
|
11582
|
+
renumerateIRIElements: !0,
|
|
11583
|
+
title: "",
|
|
11584
|
+
useRequestCache: !0,
|
|
11585
|
+
wrapper: "div"
|
|
11586
|
+
};
|
|
11587
|
+
Ou.propTypes = {
|
|
11588
|
+
afterInjection: at.func,
|
|
11589
|
+
beforeInjection: at.func,
|
|
11590
|
+
desc: at.string,
|
|
11591
|
+
evalScripts: at.oneOf(["always", "once", "never"]),
|
|
11592
|
+
fallback: at.oneOfType([at.func, at.object, at.string]),
|
|
11593
|
+
httpRequestWithCredentials: at.bool,
|
|
11594
|
+
loading: at.oneOfType([at.func, at.object, at.string]),
|
|
11595
|
+
onError: at.func,
|
|
11596
|
+
renumerateIRIElements: at.bool,
|
|
11597
|
+
src: at.string.isRequired,
|
|
11598
|
+
title: at.string,
|
|
11599
|
+
useRequestCache: at.bool,
|
|
11600
|
+
wrapper: at.oneOf(["div", "span", "svg"])
|
|
11600
11601
|
};
|
|
11601
11602
|
export {
|
|
11602
11603
|
Gc as C,
|
|
11603
|
-
|
|
11604
|
+
Xc as E,
|
|
11604
11605
|
xr as P,
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11606
|
+
Qc as Q,
|
|
11607
|
+
Ou as R,
|
|
11608
|
+
Dl as _,
|
|
11609
|
+
Kc as a,
|
|
11610
|
+
ef as b,
|
|
11611
|
+
Tc as c,
|
|
11611
11612
|
Vn as d,
|
|
11612
|
-
|
|
11613
|
+
Zc as e,
|
|
11613
11614
|
Wu as g,
|
|
11614
|
-
|
|
11615
|
-
|
|
11615
|
+
Jc as l,
|
|
11616
|
+
qc as p
|
|
11616
11617
|
};
|