@notificationapi/react 0.0.23 → 0.0.25
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/assets/AntdIcon.js +200 -0
- package/dist/assets/Notification.js +127 -120
- package/dist/assets/PurePanel.js +69 -0
- package/dist/assets/RightOutlined.js +13 -0
- package/dist/assets/button.js +19 -18
- package/dist/assets/channelUtils.js +77 -0
- package/dist/assets/colors.js +8534 -9304
- package/dist/assets/index.js +16 -15
- package/dist/assets/index2.js +33 -32
- package/dist/assets/index3.js +722 -8531
- package/dist/assets/index4.js +8408 -0
- package/dist/assets/pickAttrs.js +42 -0
- package/dist/components/Notifications/Inbox.d.ts +3 -7
- package/dist/components/Notifications/Inbox.js +6250 -8
- package/dist/components/Notifications/InboxHeader.d.ts +1 -1
- package/dist/components/Notifications/InboxHeader.js +8 -7
- package/dist/components/Notifications/Notification.d.ts +2 -5
- package/dist/components/Notifications/Notification.js +3 -4
- package/dist/components/Notifications/NotificationCounter.d.ts +2 -2
- package/dist/components/Notifications/NotificationFeed.d.ts +4 -5
- package/dist/components/Notifications/NotificationFeed.js +28 -26
- package/dist/components/Notifications/NotificationLauncher.d.ts +1 -6
- package/dist/components/Notifications/NotificationLauncher.js +16 -18
- package/dist/components/Notifications/NotificationPopup.d.ts +5 -9
- package/dist/components/Notifications/NotificationPopup.js +119 -12
- package/dist/components/Notifications/UnreadBadge.d.ts +4 -7
- package/dist/components/Notifications/UnreadBadge.js +8 -10
- package/dist/components/Notifications/index.js +5 -5
- package/dist/components/Notifications/interface.d.ts +46 -0
- package/dist/components/Notifications/interface.js +19 -0
- package/dist/components/Preferences/NotificationPreferencesInline.d.ts +1 -1
- package/dist/components/Preferences/NotificationPreferencesInline.js +1 -1
- package/dist/components/Preferences/NotificationPreferencesPopup.js +1503 -4
- package/dist/components/Preferences/PreferenceInput.d.ts +5 -4
- package/dist/components/Preferences/PreferenceInput.js +1435 -4
- package/dist/components/Preferences/Preferences.d.ts +1 -4
- package/dist/components/Preferences/Preferences.js +581 -8
- package/dist/components/Preferences/channelUtils.d.ts +4 -0
- package/dist/components/Preferences/channelUtils.js +8 -0
- package/dist/components/Preferences/index.js +1 -1
- package/dist/components/Provider/index.d.ts +2 -2
- package/dist/components/Provider/index.js +150 -126
- package/dist/main.d.ts +2 -2
- package/dist/main.js +9 -9
- package/package.json +5 -2
- package/dist/assets/Inbox.js +0 -6363
- package/dist/assets/NotificationPreferencesPopup.js +0 -1562
- package/dist/assets/Preferences.js +0 -2120
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { a as R } from "./index3.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import { I as w } from "./AntdIcon.js";
|
|
4
|
+
import { u as E } from "./index4.js";
|
|
5
|
+
import { C as y, a as I } from "./colors.js";
|
|
6
|
+
var j = { icon: { tag: "svg", attrs: { "fill-rule": "evenodd", viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, name: "close", theme: "outlined" }, z = function(s, l) {
|
|
7
|
+
return /* @__PURE__ */ e.createElement(w, R({}, s, {
|
|
8
|
+
ref: l,
|
|
9
|
+
icon: j
|
|
10
|
+
}));
|
|
11
|
+
}, S = /* @__PURE__ */ e.forwardRef(z);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (S.displayName = "CloseOutlined");
|
|
13
|
+
function L(n) {
|
|
14
|
+
return (s) => /* @__PURE__ */ e.createElement(y, {
|
|
15
|
+
theme: {
|
|
16
|
+
token: {
|
|
17
|
+
motion: !1,
|
|
18
|
+
zIndexPopupBase: 0
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}, /* @__PURE__ */ e.createElement(n, Object.assign({}, s)));
|
|
22
|
+
}
|
|
23
|
+
const M = (n, s, l, W) => L((r) => {
|
|
24
|
+
const {
|
|
25
|
+
prefixCls: f,
|
|
26
|
+
style: p
|
|
27
|
+
} = r, a = e.useRef(null), [m, g] = e.useState(0), [v, C] = e.useState(0), [c, P] = E(!1, {
|
|
28
|
+
value: r.open
|
|
29
|
+
}), {
|
|
30
|
+
getPrefixCls: O
|
|
31
|
+
} = e.useContext(I), h = O("select", f);
|
|
32
|
+
e.useEffect(() => {
|
|
33
|
+
if (P(!0), typeof ResizeObserver < "u") {
|
|
34
|
+
const i = new ResizeObserver((t) => {
|
|
35
|
+
const o = t[0].target;
|
|
36
|
+
g(o.offsetHeight + 8), C(o.offsetWidth);
|
|
37
|
+
}), u = setInterval(() => {
|
|
38
|
+
var t;
|
|
39
|
+
const o = `.${h}-dropdown`, d = (t = a.current) === null || t === void 0 ? void 0 : t.querySelector(o);
|
|
40
|
+
d && (clearInterval(u), i.observe(d));
|
|
41
|
+
}, 10);
|
|
42
|
+
return () => {
|
|
43
|
+
clearInterval(u), i.disconnect();
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}, []);
|
|
47
|
+
let b = Object.assign(Object.assign({}, r), {
|
|
48
|
+
style: Object.assign(Object.assign({}, p), {
|
|
49
|
+
margin: 0
|
|
50
|
+
}),
|
|
51
|
+
open: c,
|
|
52
|
+
visible: c,
|
|
53
|
+
getPopupContainer: () => a.current
|
|
54
|
+
});
|
|
55
|
+
const x = {
|
|
56
|
+
paddingBottom: m,
|
|
57
|
+
position: "relative",
|
|
58
|
+
minWidth: v
|
|
59
|
+
};
|
|
60
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
61
|
+
ref: a,
|
|
62
|
+
style: x
|
|
63
|
+
}, /* @__PURE__ */ e.createElement(n, Object.assign({}, b)));
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
S as R,
|
|
67
|
+
M as g,
|
|
68
|
+
L as w
|
|
69
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { a as r } from "./index3.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { I as i } from "./AntdIcon.js";
|
|
4
|
+
var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, n = function(e, a) {
|
|
5
|
+
return /* @__PURE__ */ t.createElement(i, r({}, e, {
|
|
6
|
+
ref: a,
|
|
7
|
+
icon: o
|
|
8
|
+
}));
|
|
9
|
+
}, c = /* @__PURE__ */ t.forwardRef(n);
|
|
10
|
+
process.env.NODE_ENV !== "production" && (c.displayName = "RightOutlined");
|
|
11
|
+
export {
|
|
12
|
+
c as R
|
|
13
|
+
};
|
package/dist/assets/button.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
2
|
import a, { forwardRef as Co, useContext as _, useMemo as Fo, useState as mo, Children as Vo, useEffect as po, createRef as qo } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { c as O } from "./index3.js";
|
|
4
|
+
import { h as Xo, j as Uo, k as Jo, e as Ko, o as Qo, W as Yo } from "./index4.js";
|
|
5
|
+
import { a as yo, h as Zo, e as vo, c as ko, j as oe, d as ee, m as L, k as M, g as te, u as I, l as ne, n as re, D as ie, o as le } from "./colors.js";
|
|
5
6
|
var ae = function(o, e) {
|
|
6
7
|
var t = {};
|
|
7
8
|
for (var n in o)
|
|
@@ -19,7 +20,7 @@ const $o = /* @__PURE__ */ j.createContext(void 0), ce = (o) => {
|
|
|
19
20
|
prefixCls: n,
|
|
20
21
|
size: r,
|
|
21
22
|
className: i
|
|
22
|
-
} = o, l = ae(o, ["prefixCls", "size", "className"]), c = e("btn-group", n), [, , m] =
|
|
23
|
+
} = o, l = ae(o, ["prefixCls", "size", "className"]), c = e("btn-group", n), [, , m] = Zo();
|
|
23
24
|
let u = "";
|
|
24
25
|
switch (r) {
|
|
25
26
|
case "large":
|
|
@@ -43,7 +44,7 @@ const $o = /* @__PURE__ */ j.createContext(void 0), ce = (o) => {
|
|
|
43
44
|
className: p
|
|
44
45
|
})));
|
|
45
46
|
}, bo = /^[\u4e00-\u9fa5]{2}$/, q = bo.test.bind(bo);
|
|
46
|
-
function
|
|
47
|
+
function Ge(o) {
|
|
47
48
|
return o === "danger" ? {
|
|
48
49
|
danger: !0
|
|
49
50
|
} : {
|
|
@@ -60,9 +61,9 @@ function se(o, e) {
|
|
|
60
61
|
if (o == null)
|
|
61
62
|
return;
|
|
62
63
|
const t = e ? " " : "";
|
|
63
|
-
return typeof o != "string" && typeof o != "number" && fo(o.type) && q(o.props.children) ?
|
|
64
|
+
return typeof o != "string" && typeof o != "number" && fo(o.type) && q(o.props.children) ? ko(o, {
|
|
64
65
|
children: o.props.children.split("").join(t)
|
|
65
|
-
}) : fo(o) ? q(o) ? /* @__PURE__ */ a.createElement("span", null, o.split("").join(t)) : /* @__PURE__ */ a.createElement("span", null, o) :
|
|
66
|
+
}) : fo(o) ? q(o) ? /* @__PURE__ */ a.createElement("span", null, o.split("").join(t)) : /* @__PURE__ */ a.createElement("span", null, o) : oe(o) ? /* @__PURE__ */ a.createElement("span", null, o) : o;
|
|
66
67
|
}
|
|
67
68
|
function de(o, e) {
|
|
68
69
|
let t = !1;
|
|
@@ -105,7 +106,7 @@ const Bo = /* @__PURE__ */ Co((o, e) => {
|
|
|
105
106
|
className: c,
|
|
106
107
|
style: r,
|
|
107
108
|
ref: e
|
|
108
|
-
}, /* @__PURE__ */ a.createElement(
|
|
109
|
+
}, /* @__PURE__ */ a.createElement(Xo, {
|
|
109
110
|
className: i
|
|
110
111
|
}));
|
|
111
112
|
}), F = () => ({
|
|
@@ -130,7 +131,7 @@ const Bo = /* @__PURE__ */ Co((o, e) => {
|
|
|
130
131
|
className: r,
|
|
131
132
|
style: i,
|
|
132
133
|
iconPosition: l
|
|
133
|
-
}) : /* @__PURE__ */ a.createElement(
|
|
134
|
+
}) : /* @__PURE__ */ a.createElement(ee, {
|
|
134
135
|
visible: c,
|
|
135
136
|
// We do not really use this motionName
|
|
136
137
|
motionName: `${e}-loading-icon-motion`,
|
|
@@ -326,7 +327,7 @@ const Bo = /* @__PURE__ */ Co((o, e) => {
|
|
|
326
327
|
"> a": {
|
|
327
328
|
color: "currentColor"
|
|
328
329
|
},
|
|
329
|
-
"&:not(:disabled)": Object.assign({},
|
|
330
|
+
"&:not(:disabled)": Object.assign({}, ne(o)),
|
|
330
331
|
[`&${e}-two-chinese-chars::first-letter`]: {
|
|
331
332
|
letterSpacing: "0.34em"
|
|
332
333
|
},
|
|
@@ -577,7 +578,7 @@ const Bo = /* @__PURE__ */ Co((o, e) => {
|
|
|
577
578
|
}
|
|
578
579
|
}
|
|
579
580
|
};
|
|
580
|
-
}, xe =
|
|
581
|
+
}, xe = te("Button", (o) => {
|
|
581
582
|
const e = Oo(o);
|
|
582
583
|
return [
|
|
583
584
|
// Shared
|
|
@@ -685,11 +686,11 @@ const je = (o) => {
|
|
|
685
686
|
}
|
|
686
687
|
}
|
|
687
688
|
};
|
|
688
|
-
}, Ne =
|
|
689
|
+
}, Ne = re(["Button", "compact"], (o) => {
|
|
689
690
|
const e = Oo(o);
|
|
690
691
|
return [
|
|
691
692
|
// Space Compact
|
|
692
|
-
|
|
693
|
+
Uo(e),
|
|
693
694
|
ze(e),
|
|
694
695
|
je(e)
|
|
695
696
|
];
|
|
@@ -743,7 +744,7 @@ const Te = /* @__PURE__ */ a.forwardRef((o, e) => {
|
|
|
743
744
|
getPrefixCls: Po,
|
|
744
745
|
direction: Y,
|
|
745
746
|
button: g
|
|
746
|
-
} = _(yo), W = (t = w ?? (g == null ? void 0 : g.autoInsertSpace)) !== null && t !== void 0 ? t : !0, s = Po("btn", l), [Z, To, wo] = xe(s), Wo = _(
|
|
747
|
+
} = _(yo), W = (t = w ?? (g == null ? void 0 : g.autoInsertSpace)) !== null && t !== void 0 ? t : !0, s = Po("btn", l), [Z, To, wo] = xe(s), Wo = _(ie), E = v ?? Wo, Do = _($o), x = Fo(() => Pe(i), [i]), [y, k] = mo(x.loading), [D, oo] = mo(!1), B = le(e, /* @__PURE__ */ qo()), eo = Vo.count(S) === 1 && !C && !z($);
|
|
747
748
|
po(() => {
|
|
748
749
|
let d = null;
|
|
749
750
|
x.delay > 0 ? d = setTimeout(() => {
|
|
@@ -776,14 +777,14 @@ const Te = /* @__PURE__ */ a.forwardRef((o, e) => {
|
|
|
776
777
|
const {
|
|
777
778
|
compactSize: Ro,
|
|
778
779
|
compactItemClassnames: no
|
|
779
|
-
} =
|
|
780
|
+
} = Jo(s, Y), Ao = {
|
|
780
781
|
large: "lg",
|
|
781
782
|
small: "sm",
|
|
782
783
|
middle: void 0
|
|
783
|
-
}, ro =
|
|
784
|
+
}, ro = Ko((d) => {
|
|
784
785
|
var b, G;
|
|
785
786
|
return (G = (b = p ?? Ro) !== null && b !== void 0 ? b : Do) !== null && G !== void 0 ? G : d;
|
|
786
|
-
}), io = ro && Ao[ro] || "", lo = y ? "loading" : C, R =
|
|
787
|
+
}), io = ro && Ao[ro] || "", lo = y ? "loading" : C, R = Qo(Q, ["navigate"]), ao = O(s, To, wo, {
|
|
787
788
|
[`${s}-${u}`]: u !== "default" && u,
|
|
788
789
|
[`${s}-${$}`]: $,
|
|
789
790
|
[`${s}-${io}`]: io,
|
|
@@ -828,7 +829,7 @@ const Te = /* @__PURE__ */ a.forwardRef((o, e) => {
|
|
|
828
829
|
key: "compact",
|
|
829
830
|
prefixCls: s
|
|
830
831
|
}));
|
|
831
|
-
return z($) || (A = /* @__PURE__ */ a.createElement(
|
|
832
|
+
return z($) || (A = /* @__PURE__ */ a.createElement(Yo, {
|
|
832
833
|
component: "Button",
|
|
833
834
|
disabled: !!y
|
|
834
835
|
}, A)), Z(A);
|
|
@@ -838,5 +839,5 @@ J.__ANT_BUTTON = !0;
|
|
|
838
839
|
process.env.NODE_ENV !== "production" && (J.displayName = "Button");
|
|
839
840
|
export {
|
|
840
841
|
J as B,
|
|
841
|
-
|
|
842
|
+
Ge as c
|
|
842
843
|
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { a as o, f as c } from "./index3.js";
|
|
3
|
+
import { Channels as n } from "../components/Notifications/interface.js";
|
|
4
|
+
import * as a from "react";
|
|
5
|
+
import { I as i } from "./AntdIcon.js";
|
|
6
|
+
var h = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z" } }] }, name: "bell", theme: "outlined" }, p = function(e, t) {
|
|
7
|
+
return /* @__PURE__ */ a.createElement(i, o({}, e, {
|
|
8
|
+
ref: t,
|
|
9
|
+
icon: h
|
|
10
|
+
}));
|
|
11
|
+
}, u = /* @__PURE__ */ a.forwardRef(p);
|
|
12
|
+
process.env.NODE_ENV !== "production" && (u.displayName = "BellOutlined");
|
|
13
|
+
var M = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z" } }] }, name: "chrome", theme: "outlined" }, O = function(e, t) {
|
|
14
|
+
return /* @__PURE__ */ a.createElement(i, o({}, e, {
|
|
15
|
+
ref: t,
|
|
16
|
+
icon: M
|
|
17
|
+
}));
|
|
18
|
+
}, d = /* @__PURE__ */ a.forwardRef(O);
|
|
19
|
+
process.env.NODE_ENV !== "production" && (d.displayName = "ChromeOutlined");
|
|
20
|
+
var g = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z" } }] }, name: "mail", theme: "outlined" }, z = function(e, t) {
|
|
21
|
+
return /* @__PURE__ */ a.createElement(i, o({}, e, {
|
|
22
|
+
ref: t,
|
|
23
|
+
icon: g
|
|
24
|
+
}));
|
|
25
|
+
}, s = /* @__PURE__ */ a.forwardRef(z);
|
|
26
|
+
process.env.NODE_ENV !== "production" && (s.displayName = "MailOutlined");
|
|
27
|
+
var E = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" } }] }, name: "message", theme: "outlined" }, y = function(e, t) {
|
|
28
|
+
return /* @__PURE__ */ a.createElement(i, o({}, e, {
|
|
29
|
+
ref: t,
|
|
30
|
+
icon: E
|
|
31
|
+
}));
|
|
32
|
+
}, m = /* @__PURE__ */ a.forwardRef(y);
|
|
33
|
+
process.env.NODE_ENV !== "production" && (m.displayName = "MessageOutlined");
|
|
34
|
+
var N = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "mobile", theme: "outlined" }, b = function(e, t) {
|
|
35
|
+
return /* @__PURE__ */ a.createElement(i, o({}, e, {
|
|
36
|
+
ref: t,
|
|
37
|
+
icon: N
|
|
38
|
+
}));
|
|
39
|
+
}, f = /* @__PURE__ */ a.forwardRef(b);
|
|
40
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "MobileOutlined");
|
|
41
|
+
var C = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z" } }] }, name: "phone", theme: "outlined" }, B = function(e, t) {
|
|
42
|
+
return /* @__PURE__ */ a.createElement(i, o({}, e, {
|
|
43
|
+
ref: t,
|
|
44
|
+
icon: C
|
|
45
|
+
}));
|
|
46
|
+
}, v = /* @__PURE__ */ a.forwardRef(B);
|
|
47
|
+
process.env.NODE_ENV !== "production" && (v.displayName = "PhoneOutlined");
|
|
48
|
+
const R = (r) => ({
|
|
49
|
+
EMAIL: "Email",
|
|
50
|
+
INAPP_WEB: "In-App",
|
|
51
|
+
SMS: "Text",
|
|
52
|
+
CALL: "Automated Calling",
|
|
53
|
+
PUSH: "Mobile",
|
|
54
|
+
WEB_PUSH: "Browser"
|
|
55
|
+
})[r], P = (r) => {
|
|
56
|
+
switch (r) {
|
|
57
|
+
case n.EMAIL:
|
|
58
|
+
return /* @__PURE__ */ l(s, { style: { color: c.primary } });
|
|
59
|
+
case n.SMS:
|
|
60
|
+
return /* @__PURE__ */ l(m, { style: { color: c.primary } });
|
|
61
|
+
case n.PUSH:
|
|
62
|
+
return /* @__PURE__ */ l(f, { style: { color: c.primary } });
|
|
63
|
+
case n.CALL:
|
|
64
|
+
return /* @__PURE__ */ l(v, { style: { color: c.primary } });
|
|
65
|
+
case n.INAPP_WEB:
|
|
66
|
+
return /* @__PURE__ */ l(u, { style: { color: c.primary } });
|
|
67
|
+
case n.WEB_PUSH:
|
|
68
|
+
return /* @__PURE__ */ l(d, { style: { color: c.primary } });
|
|
69
|
+
default:
|
|
70
|
+
return /* @__PURE__ */ l(s, { style: { color: c.primary } });
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
u as R,
|
|
75
|
+
P as a,
|
|
76
|
+
R as g
|
|
77
|
+
};
|