easy-email-pro-plugins 1.11.0 → 1.11.2
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/lib/index.es.js +350 -296
- package/lib/typings/components/EmojiPlugin/index.d.ts +2 -1
- package/package.json +7 -7
package/lib/index.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var di = Object.defineProperty, li = Object.defineProperties;
|
|
2
|
+
var ui = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var ve = Object.getOwnPropertySymbols;
|
|
4
|
+
var ci = Object.prototype.hasOwnProperty, vi = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var me = (i, e, n) => e in i ? di(i, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : i[e] = n, j = (i, e) => {
|
|
6
6
|
for (var n in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
ci.call(e, n) && me(i, n, e[n]);
|
|
8
|
+
if (ve)
|
|
9
|
+
for (var n of ve(e))
|
|
10
|
+
vi.call(e, n) && me(i, n, e[n]);
|
|
11
11
|
return i;
|
|
12
|
-
},
|
|
12
|
+
}, Q = (i, e) => li(i, ui(e));
|
|
13
13
|
var S = (i, e, n) => new Promise((a, s) => {
|
|
14
14
|
var f = (t) => {
|
|
15
15
|
try {
|
|
@@ -26,8 +26,13 @@ var S = (i, e, n) => new Promise((a, s) => {
|
|
|
26
26
|
}, d = (t) => t.done ? a(t.value) : Promise.resolve(t.value).then(f, o);
|
|
27
27
|
d((n = n.apply(i, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import
|
|
30
|
-
|
|
29
|
+
import * as X from "react";
|
|
30
|
+
import z, { useRef as fe, useEffect as mi } from "react";
|
|
31
|
+
import { Popover as ki, Tooltip as gi } from "@arco-design/web-react";
|
|
32
|
+
import { Transforms as hi } from "slate";
|
|
33
|
+
import { useSlate as wi } from "slate-react";
|
|
34
|
+
import { t as _i, classnames as ke } from "easy-email-pro-core";
|
|
35
|
+
const bi = [
|
|
31
36
|
{
|
|
32
37
|
id: "people",
|
|
33
38
|
emojis: [
|
|
@@ -1917,7 +1922,7 @@ const vi = [
|
|
|
1917
1922
|
"waving_white_flag"
|
|
1918
1923
|
]
|
|
1919
1924
|
}
|
|
1920
|
-
],
|
|
1925
|
+
], yi = {
|
|
1921
1926
|
100: {
|
|
1922
1927
|
id: "100",
|
|
1923
1928
|
name: "Hundred Points",
|
|
@@ -39531,7 +39536,7 @@ const vi = [
|
|
|
39531
39536
|
],
|
|
39532
39537
|
version: 5
|
|
39533
39538
|
}
|
|
39534
|
-
},
|
|
39539
|
+
}, pi = {
|
|
39535
39540
|
satisfied: "laughing",
|
|
39536
39541
|
grinning_face_with_star_eyes: "star-struck",
|
|
39537
39542
|
grinning_face_with_one_large_and_one_small_eye: "zany_face",
|
|
@@ -39593,16 +39598,16 @@ const vi = [
|
|
|
39593
39598
|
"flag-kr": "kr",
|
|
39594
39599
|
"flag-ru": "ru",
|
|
39595
39600
|
"flag-us": "us"
|
|
39596
|
-
},
|
|
39601
|
+
}, xi = {
|
|
39597
39602
|
cols: 61,
|
|
39598
39603
|
rows: 61
|
|
39599
|
-
},
|
|
39600
|
-
categories:
|
|
39601
|
-
emojis:
|
|
39602
|
-
aliases:
|
|
39603
|
-
sheet:
|
|
39604
|
+
}, Ci = {
|
|
39605
|
+
categories: bi,
|
|
39606
|
+
emojis: yi,
|
|
39607
|
+
aliases: pi,
|
|
39608
|
+
sheet: xi
|
|
39604
39609
|
};
|
|
39605
|
-
function
|
|
39610
|
+
function Re(i) {
|
|
39606
39611
|
return i && i.__esModule ? i.default : i;
|
|
39607
39612
|
}
|
|
39608
39613
|
function C(i, e, n) {
|
|
@@ -39613,26 +39618,26 @@ function C(i, e, n) {
|
|
|
39613
39618
|
writable: !0
|
|
39614
39619
|
}) : i[e] = n, i;
|
|
39615
39620
|
}
|
|
39616
|
-
var
|
|
39617
|
-
function
|
|
39621
|
+
var Y, k, Ee, L, De, ge, G = {}, Ae = [], Fi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
|
39622
|
+
function P(i, e) {
|
|
39618
39623
|
for (var n in e)
|
|
39619
39624
|
i[n] = e[n];
|
|
39620
39625
|
return i;
|
|
39621
39626
|
}
|
|
39622
|
-
function
|
|
39627
|
+
function Ie(i) {
|
|
39623
39628
|
var e = i.parentNode;
|
|
39624
39629
|
e && e.removeChild(i);
|
|
39625
39630
|
}
|
|
39626
|
-
function
|
|
39631
|
+
function se(i, e, n) {
|
|
39627
39632
|
var a, s, f, o = {};
|
|
39628
39633
|
for (f in e)
|
|
39629
39634
|
f == "key" ? a = e[f] : f == "ref" ? s = e[f] : o[f] = e[f];
|
|
39630
|
-
if (arguments.length > 2 && (o.children = arguments.length > 3 ?
|
|
39635
|
+
if (arguments.length > 2 && (o.children = arguments.length > 3 ? Y.call(arguments, 2) : n), typeof i == "function" && i.defaultProps != null)
|
|
39631
39636
|
for (f in i.defaultProps)
|
|
39632
39637
|
o[f] === void 0 && (o[f] = i.defaultProps[f]);
|
|
39633
|
-
return
|
|
39638
|
+
return I(i, o, a, s, null);
|
|
39634
39639
|
}
|
|
39635
|
-
function
|
|
39640
|
+
function I(i, e, n, a, s) {
|
|
39636
39641
|
var f = {
|
|
39637
39642
|
type: i,
|
|
39638
39643
|
props: e,
|
|
@@ -39646,7 +39651,7 @@ function A(i, e, n, a, s) {
|
|
|
39646
39651
|
__c: null,
|
|
39647
39652
|
__h: null,
|
|
39648
39653
|
constructor: void 0,
|
|
39649
|
-
__v: s == null ? ++
|
|
39654
|
+
__v: s == null ? ++Ee : s
|
|
39650
39655
|
};
|
|
39651
39656
|
return s == null && k.vnode != null && k.vnode(f), f;
|
|
39652
39657
|
}
|
|
@@ -39655,21 +39660,21 @@ function $() {
|
|
|
39655
39660
|
current: null
|
|
39656
39661
|
};
|
|
39657
39662
|
}
|
|
39658
|
-
function
|
|
39663
|
+
function W(i) {
|
|
39659
39664
|
return i.children;
|
|
39660
39665
|
}
|
|
39661
39666
|
function M(i, e) {
|
|
39662
39667
|
this.props = i, this.context = e;
|
|
39663
39668
|
}
|
|
39664
|
-
function
|
|
39669
|
+
function T(i, e) {
|
|
39665
39670
|
if (e == null)
|
|
39666
|
-
return i.__ ?
|
|
39671
|
+
return i.__ ? T(i.__, i.__.__k.indexOf(i) + 1) : null;
|
|
39667
39672
|
for (var n; e < i.__k.length; e++)
|
|
39668
39673
|
if ((n = i.__k[e]) != null && n.__e != null)
|
|
39669
39674
|
return n.__e;
|
|
39670
|
-
return typeof i.type == "function" ?
|
|
39675
|
+
return typeof i.type == "function" ? T(i) : null;
|
|
39671
39676
|
}
|
|
39672
|
-
function
|
|
39677
|
+
function Oe(i) {
|
|
39673
39678
|
var e, n;
|
|
39674
39679
|
if ((i = i.__) != null && i.__c != null) {
|
|
39675
39680
|
for (i.__e = i.__c.base = null, e = 0; e < i.__k.length; e++)
|
|
@@ -39677,29 +39682,29 @@ function Ae(i) {
|
|
|
39677
39682
|
i.__e = i.__c.base = n.__e;
|
|
39678
39683
|
break;
|
|
39679
39684
|
}
|
|
39680
|
-
return
|
|
39685
|
+
return Oe(i);
|
|
39681
39686
|
}
|
|
39682
39687
|
}
|
|
39683
|
-
function
|
|
39684
|
-
(!i.__d && (i.__d = !0) &&
|
|
39688
|
+
function he(i) {
|
|
39689
|
+
(!i.__d && (i.__d = !0) && L.push(i) && !N.__r++ || ge !== k.debounceRendering) && ((ge = k.debounceRendering) || De)(N);
|
|
39685
39690
|
}
|
|
39686
|
-
function
|
|
39687
|
-
for (var i;
|
|
39688
|
-
i =
|
|
39691
|
+
function N() {
|
|
39692
|
+
for (var i; N.__r = L.length; )
|
|
39693
|
+
i = L.sort(function(e, n) {
|
|
39689
39694
|
return e.__v.__b - n.__v.__b;
|
|
39690
|
-
}),
|
|
39695
|
+
}), L = [], i.some(function(e) {
|
|
39691
39696
|
var n, a, s, f, o, d;
|
|
39692
|
-
e.__d && (o = (f = (n = e).__v).__e, (d = n.__P) && (a = [], (s =
|
|
39697
|
+
e.__d && (o = (f = (n = e).__v).__e, (d = n.__P) && (a = [], (s = P({}, f)).__v = f.__v + 1, ue(d, f, s, n.__n, d.ownerSVGElement !== void 0, f.__h != null ? [
|
|
39693
39698
|
o
|
|
39694
|
-
] : null, a, o == null ?
|
|
39699
|
+
] : null, a, o == null ? T(f) : o, f.__h), Ue(a, f), f.__e != o && Oe(f)));
|
|
39695
39700
|
});
|
|
39696
39701
|
}
|
|
39697
|
-
function
|
|
39698
|
-
var r, v, c, m, g, _, w, b = a && a.__k ||
|
|
39702
|
+
function Ge(i, e, n, a, s, f, o, d, t, u) {
|
|
39703
|
+
var r, v, c, m, g, _, w, b = a && a.__k || Ae, x = b.length;
|
|
39699
39704
|
for (n.__k = [], r = 0; r < e.length; r++)
|
|
39700
|
-
if ((m = n.__k[r] = (m = e[r]) == null || typeof m == "boolean" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" ?
|
|
39705
|
+
if ((m = n.__k[r] = (m = e[r]) == null || typeof m == "boolean" ? null : typeof m == "string" || typeof m == "number" || typeof m == "bigint" ? I(null, m, null, null, m) : Array.isArray(m) ? I(W, {
|
|
39701
39706
|
children: m
|
|
39702
|
-
}, null, null, null) : m.__b > 0 ?
|
|
39707
|
+
}, null, null, null) : m.__b > 0 ? I(m.type, m.props, m.key, null, m.__v) : m) != null) {
|
|
39703
39708
|
if (m.__ = n, m.__b = n.__b + 1, (c = b[r]) === null || c && m.key == c.key && m.type === c.type)
|
|
39704
39709
|
b[r] = void 0;
|
|
39705
39710
|
else
|
|
@@ -39710,25 +39715,25 @@ function Ie(i, e, n, a, s, f, o, d, t, u) {
|
|
|
39710
39715
|
}
|
|
39711
39716
|
c = null;
|
|
39712
39717
|
}
|
|
39713
|
-
|
|
39718
|
+
ue(i, m, c = c || G, s, f, o, d, t, u), g = m.__e, (v = m.ref) && c.ref != v && (w || (w = []), c.ref && w.push(c.ref, null, m), w.push(v, m.__c || g, m)), g != null ? (_ == null && (_ = g), typeof m.type == "function" && m.__k === c.__k ? m.__d = t = Ne(m, t, i) : t = Ve(i, m, c, b, g, t), typeof n.type == "function" && (n.__d = t)) : t && c.__e == t && t.parentNode != i && (t = T(c));
|
|
39714
39719
|
}
|
|
39715
39720
|
for (n.__e = _, r = x; r--; )
|
|
39716
|
-
b[r] != null && (typeof n.type == "function" && b[r].__e != null && b[r].__e == n.__d && (n.__d =
|
|
39721
|
+
b[r] != null && (typeof n.type == "function" && b[r].__e != null && b[r].__e == n.__d && (n.__d = T(a, r + 1)), Je(b[r], b[r]));
|
|
39717
39722
|
if (w)
|
|
39718
39723
|
for (r = 0; r < w.length; r++)
|
|
39719
|
-
|
|
39724
|
+
Ke(w[r], w[++r], w[++r]);
|
|
39720
39725
|
}
|
|
39721
|
-
function
|
|
39726
|
+
function Ne(i, e, n) {
|
|
39722
39727
|
for (var a, s = i.__k, f = 0; s && f < s.length; f++)
|
|
39723
|
-
(a = s[f]) && (a.__ = i, e = typeof a.type == "function" ?
|
|
39728
|
+
(a = s[f]) && (a.__ = i, e = typeof a.type == "function" ? Ne(a, e, n) : Ve(n, a, a, s, a.__e, e));
|
|
39724
39729
|
return e;
|
|
39725
39730
|
}
|
|
39726
|
-
function
|
|
39731
|
+
function V(i, e) {
|
|
39727
39732
|
return e = e || [], i == null || typeof i == "boolean" || (Array.isArray(i) ? i.some(function(n) {
|
|
39728
|
-
|
|
39733
|
+
V(n, e);
|
|
39729
39734
|
}) : e.push(i)), e;
|
|
39730
39735
|
}
|
|
39731
|
-
function
|
|
39736
|
+
function Ve(i, e, n, a, s, f) {
|
|
39732
39737
|
var o, d, t;
|
|
39733
39738
|
if (e.__d !== void 0)
|
|
39734
39739
|
o = e.__d, e.__d = void 0;
|
|
@@ -39744,17 +39749,17 @@ function Ge(i, e, n, a, s, f) {
|
|
|
39744
39749
|
}
|
|
39745
39750
|
return o !== void 0 ? o : s.nextSibling;
|
|
39746
39751
|
}
|
|
39747
|
-
function
|
|
39752
|
+
function Si(i, e, n, a, s) {
|
|
39748
39753
|
var f;
|
|
39749
39754
|
for (f in n)
|
|
39750
|
-
f === "children" || f === "key" || f in e ||
|
|
39755
|
+
f === "children" || f === "key" || f in e || U(i, f, null, n[f], a);
|
|
39751
39756
|
for (f in e)
|
|
39752
|
-
s && typeof e[f] != "function" || f === "children" || f === "key" || f === "value" || f === "checked" || n[f] === e[f] ||
|
|
39757
|
+
s && typeof e[f] != "function" || f === "children" || f === "key" || f === "value" || f === "checked" || n[f] === e[f] || U(i, f, e[f], n[f], a);
|
|
39753
39758
|
}
|
|
39754
|
-
function
|
|
39755
|
-
e[0] === "-" ? i.setProperty(e, n) : i[e] = n == null ? "" : typeof n != "number" ||
|
|
39759
|
+
function we(i, e, n) {
|
|
39760
|
+
e[0] === "-" ? i.setProperty(e, n) : i[e] = n == null ? "" : typeof n != "number" || Fi.test(e) ? n : n + "px";
|
|
39756
39761
|
}
|
|
39757
|
-
function
|
|
39762
|
+
function U(i, e, n, a, s) {
|
|
39758
39763
|
var f;
|
|
39759
39764
|
e:
|
|
39760
39765
|
if (e === "style")
|
|
@@ -39763,13 +39768,13 @@ function V(i, e, n, a, s) {
|
|
|
39763
39768
|
else {
|
|
39764
39769
|
if (typeof a == "string" && (i.style.cssText = a = ""), a)
|
|
39765
39770
|
for (e in a)
|
|
39766
|
-
n && e in n ||
|
|
39771
|
+
n && e in n || we(i.style, e, "");
|
|
39767
39772
|
if (n)
|
|
39768
39773
|
for (e in n)
|
|
39769
|
-
a && n[e] === a[e] ||
|
|
39774
|
+
a && n[e] === a[e] || we(i.style, e, n[e]);
|
|
39770
39775
|
}
|
|
39771
39776
|
else if (e[0] === "o" && e[1] === "n")
|
|
39772
|
-
f = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in i ? e.toLowerCase().slice(2) : e.slice(2), i.l || (i.l = {}), i.l[e + f] = n, n ? a || i.addEventListener(e, f ?
|
|
39777
|
+
f = e !== (e = e.replace(/Capture$/, "")), e = e.toLowerCase() in i ? e.toLowerCase().slice(2) : e.slice(2), i.l || (i.l = {}), i.l[e + f] = n, n ? a || i.addEventListener(e, f ? be : _e, f) : i.removeEventListener(e, f ? be : _e, f);
|
|
39773
39778
|
else if (e !== "dangerouslySetInnerHTML") {
|
|
39774
39779
|
if (s)
|
|
39775
39780
|
e = e.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");
|
|
@@ -39782,14 +39787,14 @@ function V(i, e, n, a, s) {
|
|
|
39782
39787
|
typeof n == "function" || (n != null && (n !== !1 || e[0] === "a" && e[1] === "r") ? i.setAttribute(e, n) : i.removeAttribute(e));
|
|
39783
39788
|
}
|
|
39784
39789
|
}
|
|
39785
|
-
function
|
|
39790
|
+
function _e(i) {
|
|
39786
39791
|
this.l[i.type + !1](k.event ? k.event(i) : i);
|
|
39787
39792
|
}
|
|
39788
|
-
function
|
|
39793
|
+
function be(i) {
|
|
39789
39794
|
this.l[i.type + !0](k.event ? k.event(i) : i);
|
|
39790
39795
|
}
|
|
39791
|
-
function
|
|
39792
|
-
var u, r, v, c, m, g, _, w, b, x,
|
|
39796
|
+
function ue(i, e, n, a, s, f, o, d, t) {
|
|
39797
|
+
var u, r, v, c, m, g, _, w, b, x, R, F = e.type;
|
|
39793
39798
|
if (e.constructor !== void 0)
|
|
39794
39799
|
return null;
|
|
39795
39800
|
n.__h != null && (t = n.__h, d = e.__e = n.__e, e.__h = null, f = [
|
|
@@ -39798,12 +39803,12 @@ function re(i, e, n, a, s, f, o, d, t) {
|
|
|
39798
39803
|
try {
|
|
39799
39804
|
e:
|
|
39800
39805
|
if (typeof F == "function") {
|
|
39801
|
-
if (w = e.props, b = (u = F.contextType) && a[u.__c], x = u ? b ? b.props.value : u.__ : a, n.__c ? _ = (r = e.__c = n.__c).__ = r.__E : ("prototype" in F && F.prototype.render ? e.__c = r = new F(w, x) : (e.__c = r = new M(w, x), r.constructor = F, r.render =
|
|
39806
|
+
if (w = e.props, b = (u = F.contextType) && a[u.__c], x = u ? b ? b.props.value : u.__ : a, n.__c ? _ = (r = e.__c = n.__c).__ = r.__E : ("prototype" in F && F.prototype.render ? e.__c = r = new F(w, x) : (e.__c = r = new M(w, x), r.constructor = F, r.render = $i), b && b.sub(r), r.props = w, r.state || (r.state = {}), r.context = x, r.__n = a, v = r.__d = !0, r.__h = []), r.__s == null && (r.__s = r.state), F.getDerivedStateFromProps != null && (r.__s == r.state && (r.__s = P({}, r.__s)), P(r.__s, F.getDerivedStateFromProps(w, r.__s))), c = r.props, m = r.state, v)
|
|
39802
39807
|
F.getDerivedStateFromProps == null && r.componentWillMount != null && r.componentWillMount(), r.componentDidMount != null && r.__h.push(r.componentDidMount);
|
|
39803
39808
|
else {
|
|
39804
39809
|
if (F.getDerivedStateFromProps == null && w !== c && r.componentWillReceiveProps != null && r.componentWillReceiveProps(w, x), !r.__e && r.shouldComponentUpdate != null && r.shouldComponentUpdate(w, r.__s, x) === !1 || e.__v === n.__v) {
|
|
39805
|
-
r.props = w, r.state = r.__s, e.__v !== n.__v && (r.__d = !1), r.__v = e, e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(
|
|
39806
|
-
|
|
39810
|
+
r.props = w, r.state = r.__s, e.__v !== n.__v && (r.__d = !1), r.__v = e, e.__e = n.__e, e.__k = n.__k, e.__k.forEach(function(E) {
|
|
39811
|
+
E && (E.__ = e);
|
|
39807
39812
|
}), r.__h.length && o.push(r);
|
|
39808
39813
|
break e;
|
|
39809
39814
|
}
|
|
@@ -39811,17 +39816,17 @@ function re(i, e, n, a, s, f, o, d, t) {
|
|
|
39811
39816
|
r.componentDidUpdate(c, m, g);
|
|
39812
39817
|
});
|
|
39813
39818
|
}
|
|
39814
|
-
r.context = x, r.props = w, r.state = r.__s, (u = k.__r) && u(e), r.__d = !1, r.__v = e, r.__P = i, u = r.render(r.props, r.state, r.context), r.state = r.__s, r.getChildContext != null && (a =
|
|
39815
|
-
|
|
39819
|
+
r.context = x, r.props = w, r.state = r.__s, (u = k.__r) && u(e), r.__d = !1, r.__v = e, r.__P = i, u = r.render(r.props, r.state, r.context), r.state = r.__s, r.getChildContext != null && (a = P(P({}, a), r.getChildContext())), v || r.getSnapshotBeforeUpdate == null || (g = r.getSnapshotBeforeUpdate(c, m)), R = u != null && u.type === W && u.key == null ? u.props.children : u, Ge(i, Array.isArray(R) ? R : [
|
|
39820
|
+
R
|
|
39816
39821
|
], e, n, a, s, f, o, d, t), r.base = e.__e, e.__h = null, r.__h.length && o.push(r), _ && (r.__E = r.__ = null), r.__e = !1;
|
|
39817
39822
|
} else
|
|
39818
|
-
f == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e =
|
|
39823
|
+
f == null && e.__v === n.__v ? (e.__k = n.__k, e.__e = n.__e) : e.__e = Mi(n.__e, e, n, a, s, f, o, t);
|
|
39819
39824
|
(u = k.diffed) && u(e);
|
|
39820
|
-
} catch (
|
|
39821
|
-
e.__v = null, (t || f != null) && (e.__e = d, e.__h = !!t, f[f.indexOf(d)] = null), k.__e(
|
|
39825
|
+
} catch (E) {
|
|
39826
|
+
e.__v = null, (t || f != null) && (e.__e = d, e.__h = !!t, f[f.indexOf(d)] = null), k.__e(E, e, n);
|
|
39822
39827
|
}
|
|
39823
39828
|
}
|
|
39824
|
-
function
|
|
39829
|
+
function Ue(i, e) {
|
|
39825
39830
|
k.__c && k.__c(e, i), i.some(function(n) {
|
|
39826
39831
|
try {
|
|
39827
39832
|
i = n.__h, n.__h = [], i.some(function(a) {
|
|
@@ -39832,7 +39837,7 @@ function Ne(i, e) {
|
|
|
39832
39837
|
}
|
|
39833
39838
|
});
|
|
39834
39839
|
}
|
|
39835
|
-
function
|
|
39840
|
+
function Mi(i, e, n, a, s, f, o, d) {
|
|
39836
39841
|
var t, u, r, v = n.props, c = e.props, m = e.type, g = 0;
|
|
39837
39842
|
if (m === "svg" && (s = !0), f != null) {
|
|
39838
39843
|
for (; g < f.length; g++)
|
|
@@ -39849,33 +39854,33 @@ function bi(i, e, n, a, s, f, o, d) {
|
|
|
39849
39854
|
if (m === null)
|
|
39850
39855
|
v === c || d && i.data === c || (i.data = c);
|
|
39851
39856
|
else {
|
|
39852
|
-
if (f = f &&
|
|
39857
|
+
if (f = f && Y.call(i.childNodes), u = (v = n.props || G).dangerouslySetInnerHTML, r = c.dangerouslySetInnerHTML, !d) {
|
|
39853
39858
|
if (f != null)
|
|
39854
39859
|
for (v = {}, g = 0; g < i.attributes.length; g++)
|
|
39855
39860
|
v[i.attributes[g].name] = i.attributes[g].value;
|
|
39856
39861
|
(r || u) && (r && (u && r.__html == u.__html || r.__html === i.innerHTML) || (i.innerHTML = r && r.__html || ""));
|
|
39857
39862
|
}
|
|
39858
|
-
if (
|
|
39863
|
+
if (Si(i, c, v, s, d), r)
|
|
39859
39864
|
e.__k = [];
|
|
39860
|
-
else if (g = e.props.children,
|
|
39865
|
+
else if (g = e.props.children, Ge(i, Array.isArray(g) ? g : [
|
|
39861
39866
|
g
|
|
39862
|
-
], e, n, a, s && m !== "foreignObject", f, o, f ? f[0] : n.__k &&
|
|
39867
|
+
], e, n, a, s && m !== "foreignObject", f, o, f ? f[0] : n.__k && T(n, 0), d), f != null)
|
|
39863
39868
|
for (g = f.length; g--; )
|
|
39864
|
-
f[g] != null &&
|
|
39865
|
-
d || ("value" in c && (g = c.value) !== void 0 && (g !== v.value || g !== i.value || m === "progress" && !g) &&
|
|
39869
|
+
f[g] != null && Ie(f[g]);
|
|
39870
|
+
d || ("value" in c && (g = c.value) !== void 0 && (g !== v.value || g !== i.value || m === "progress" && !g) && U(i, "value", g, v.value, !1), "checked" in c && (g = c.checked) !== void 0 && g !== i.checked && U(i, "checked", g, v.checked, !1));
|
|
39866
39871
|
}
|
|
39867
39872
|
return i;
|
|
39868
39873
|
}
|
|
39869
|
-
function
|
|
39874
|
+
function Ke(i, e, n) {
|
|
39870
39875
|
try {
|
|
39871
39876
|
typeof i == "function" ? i(e) : i.current = e;
|
|
39872
39877
|
} catch (a) {
|
|
39873
39878
|
k.__e(a, n);
|
|
39874
39879
|
}
|
|
39875
39880
|
}
|
|
39876
|
-
function
|
|
39881
|
+
function Je(i, e, n) {
|
|
39877
39882
|
var a, s;
|
|
39878
|
-
if (k.unmount && k.unmount(i), (a = i.ref) && (a.current && a.current !== i.__e ||
|
|
39883
|
+
if (k.unmount && k.unmount(i), (a = i.ref) && (a.current && a.current !== i.__e || Ke(a, null, e)), (a = i.__c) != null) {
|
|
39879
39884
|
if (a.componentWillUnmount)
|
|
39880
39885
|
try {
|
|
39881
39886
|
a.componentWillUnmount();
|
|
@@ -39886,21 +39891,21 @@ function Ue(i, e, n) {
|
|
|
39886
39891
|
}
|
|
39887
39892
|
if (a = i.__k)
|
|
39888
39893
|
for (s = 0; s < a.length; s++)
|
|
39889
|
-
a[s] &&
|
|
39890
|
-
n || i.__e == null ||
|
|
39894
|
+
a[s] && Je(a[s], e, typeof i.type != "function");
|
|
39895
|
+
n || i.__e == null || Ie(i.__e), i.__e = i.__d = void 0;
|
|
39891
39896
|
}
|
|
39892
|
-
function
|
|
39897
|
+
function $i(i, e, n) {
|
|
39893
39898
|
return this.constructor(i, n);
|
|
39894
39899
|
}
|
|
39895
|
-
function
|
|
39900
|
+
function Ye(i, e, n) {
|
|
39896
39901
|
var a, s, f;
|
|
39897
|
-
k.__ && k.__(i, e), s = (a = typeof n == "function") ? null : n && n.__k || e.__k, f = [],
|
|
39902
|
+
k.__ && k.__(i, e), s = (a = typeof n == "function") ? null : n && n.__k || e.__k, f = [], ue(e, i = (!a && n || e).__k = se(W, null, [
|
|
39898
39903
|
i
|
|
39899
|
-
]), s ||
|
|
39904
|
+
]), s || G, G, e.ownerSVGElement !== void 0, !a && n ? [
|
|
39900
39905
|
n
|
|
39901
|
-
] : s ? null : e.firstChild ?
|
|
39906
|
+
] : s ? null : e.firstChild ? Y.call(e.childNodes) : null, f, !a && n ? n : s ? s.__e : e.firstChild, a), Ue(f, i);
|
|
39902
39907
|
}
|
|
39903
|
-
|
|
39908
|
+
Y = Ae.slice, k = {
|
|
39904
39909
|
__e: function(i, e) {
|
|
39905
39910
|
for (var n, a, s; e = e.__; )
|
|
39906
39911
|
if ((n = e.__c) && !n.__)
|
|
@@ -39912,13 +39917,13 @@ J = De.slice, k = {
|
|
|
39912
39917
|
}
|
|
39913
39918
|
throw i;
|
|
39914
39919
|
}
|
|
39915
|
-
},
|
|
39920
|
+
}, Ee = 0, M.prototype.setState = function(i, e) {
|
|
39916
39921
|
var n;
|
|
39917
|
-
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s =
|
|
39922
|
+
n = this.__s != null && this.__s !== this.state ? this.__s : this.__s = P({}, this.state), typeof i == "function" && (i = i(P({}, n), this.props)), i && P(n, i), i != null && this.__v && (e && this.__h.push(e), he(this));
|
|
39918
39923
|
}, M.prototype.forceUpdate = function(i) {
|
|
39919
|
-
this.__v && (this.__e = !0, i && this.__h.push(i),
|
|
39920
|
-
}, M.prototype.render =
|
|
39921
|
-
var
|
|
39924
|
+
this.__v && (this.__e = !0, i && this.__h.push(i), he(this));
|
|
39925
|
+
}, M.prototype.render = W, L = [], De = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, N.__r = 0;
|
|
39926
|
+
var Bi = 0;
|
|
39922
39927
|
function l(i, e, n, a, s) {
|
|
39923
39928
|
var f, o, d = {};
|
|
39924
39929
|
for (o in e)
|
|
@@ -39936,7 +39941,7 @@ function l(i, e, n, a, s) {
|
|
|
39936
39941
|
__c: null,
|
|
39937
39942
|
__h: null,
|
|
39938
39943
|
constructor: void 0,
|
|
39939
|
-
__v: --
|
|
39944
|
+
__v: --Bi,
|
|
39940
39945
|
__source: a,
|
|
39941
39946
|
__self: s
|
|
39942
39947
|
};
|
|
@@ -39945,13 +39950,13 @@ function l(i, e, n, a, s) {
|
|
|
39945
39950
|
d[o] === void 0 && (d[o] = f[o]);
|
|
39946
39951
|
return k.vnode && k.vnode(t), t;
|
|
39947
39952
|
}
|
|
39948
|
-
function
|
|
39953
|
+
function ji(i, e) {
|
|
39949
39954
|
try {
|
|
39950
39955
|
window.localStorage[`emoji-mart.${i}`] = JSON.stringify(e);
|
|
39951
39956
|
} catch (n) {
|
|
39952
39957
|
}
|
|
39953
39958
|
}
|
|
39954
|
-
function
|
|
39959
|
+
function zi(i) {
|
|
39955
39960
|
try {
|
|
39956
39961
|
const e = window.localStorage[`emoji-mart.${i}`];
|
|
39957
39962
|
if (e)
|
|
@@ -39959,11 +39964,11 @@ function Ci(i) {
|
|
|
39959
39964
|
} catch (e) {
|
|
39960
39965
|
}
|
|
39961
39966
|
}
|
|
39962
|
-
var
|
|
39963
|
-
set:
|
|
39964
|
-
get:
|
|
39967
|
+
var q = {
|
|
39968
|
+
set: ji,
|
|
39969
|
+
get: zi
|
|
39965
39970
|
};
|
|
39966
|
-
const
|
|
39971
|
+
const ee = /* @__PURE__ */ new Map(), Pi = [
|
|
39967
39972
|
{
|
|
39968
39973
|
v: 14,
|
|
39969
39974
|
emoji: "🫠"
|
|
@@ -40009,21 +40014,21 @@ const Z = /* @__PURE__ */ new Map(), Fi = [
|
|
|
40009
40014
|
emoji: "🙃"
|
|
40010
40015
|
}
|
|
40011
40016
|
];
|
|
40012
|
-
function
|
|
40013
|
-
for (const { v: i, emoji: e } of
|
|
40014
|
-
if (
|
|
40017
|
+
function qi() {
|
|
40018
|
+
for (const { v: i, emoji: e } of Pi)
|
|
40019
|
+
if (Ze(e))
|
|
40015
40020
|
return i;
|
|
40016
40021
|
}
|
|
40017
|
-
function
|
|
40018
|
-
return !
|
|
40022
|
+
function Hi() {
|
|
40023
|
+
return !Ze("🇨🇦");
|
|
40019
40024
|
}
|
|
40020
|
-
function
|
|
40021
|
-
if (
|
|
40022
|
-
return
|
|
40023
|
-
const e =
|
|
40024
|
-
return
|
|
40025
|
+
function Ze(i) {
|
|
40026
|
+
if (ee.has(i))
|
|
40027
|
+
return ee.get(i);
|
|
40028
|
+
const e = Wi(i);
|
|
40029
|
+
return ee.set(i, e), e;
|
|
40025
40030
|
}
|
|
40026
|
-
const
|
|
40031
|
+
const Wi = (() => {
|
|
40027
40032
|
let i = null;
|
|
40028
40033
|
try {
|
|
40029
40034
|
navigator.userAgent.includes("jsdom") || (i = document.createElement("canvas").getContext("2d", {
|
|
@@ -40046,11 +40051,11 @@ const $i = (() => {
|
|
|
40046
40051
|
return !(f[d] !== r[0] || f[d + 2] !== r[2] || i.measureText(s).width >= n);
|
|
40047
40052
|
};
|
|
40048
40053
|
})();
|
|
40049
|
-
var
|
|
40050
|
-
latestVersion:
|
|
40051
|
-
noCountryFlags:
|
|
40054
|
+
var ye = {
|
|
40055
|
+
latestVersion: qi,
|
|
40056
|
+
noCountryFlags: Hi
|
|
40052
40057
|
};
|
|
40053
|
-
const
|
|
40058
|
+
const oe = [
|
|
40054
40059
|
"+1",
|
|
40055
40060
|
"grinning",
|
|
40056
40061
|
"kissing_heart",
|
|
@@ -40068,25 +40073,25 @@ const ne = [
|
|
|
40068
40073
|
"heart"
|
|
40069
40074
|
];
|
|
40070
40075
|
let y = null;
|
|
40071
|
-
function
|
|
40072
|
-
y || (y =
|
|
40076
|
+
function Ti(i) {
|
|
40077
|
+
y || (y = q.get("frequently") || {});
|
|
40073
40078
|
const e = i.id || i;
|
|
40074
|
-
e && (y[e] || (y[e] = 0), y[e] += 1,
|
|
40079
|
+
e && (y[e] || (y[e] = 0), y[e] += 1, q.set("last", e), q.set("frequently", y));
|
|
40075
40080
|
}
|
|
40076
|
-
function
|
|
40081
|
+
function Li({ maxFrequentRows: i, perLine: e }) {
|
|
40077
40082
|
if (!i)
|
|
40078
40083
|
return [];
|
|
40079
|
-
y || (y =
|
|
40084
|
+
y || (y = q.get("frequently"));
|
|
40080
40085
|
let n = [];
|
|
40081
40086
|
if (!y) {
|
|
40082
40087
|
y = {};
|
|
40083
|
-
for (let f in
|
|
40084
|
-
const o =
|
|
40088
|
+
for (let f in oe.slice(0, e)) {
|
|
40089
|
+
const o = oe[f];
|
|
40085
40090
|
y[o] = e - f, n.push(o);
|
|
40086
40091
|
}
|
|
40087
40092
|
return n;
|
|
40088
40093
|
}
|
|
40089
|
-
const a = i * e, s =
|
|
40094
|
+
const a = i * e, s = q.get("last");
|
|
40090
40095
|
for (let f in y)
|
|
40091
40096
|
n.push(f);
|
|
40092
40097
|
if (n.sort((f, o) => {
|
|
@@ -40097,16 +40102,16 @@ function ji({ maxFrequentRows: i, perLine: e }) {
|
|
|
40097
40102
|
n = n.slice(0, a);
|
|
40098
40103
|
for (let o of f)
|
|
40099
40104
|
o != s && delete y[o];
|
|
40100
|
-
s && n.indexOf(s) == -1 && (delete y[n[n.length - 1]], n.splice(-1, 1, s)),
|
|
40105
|
+
s && n.indexOf(s) == -1 && (delete y[n[n.length - 1]], n.splice(-1, 1, s)), q.set("frequently", y);
|
|
40101
40106
|
}
|
|
40102
40107
|
return n;
|
|
40103
40108
|
}
|
|
40104
|
-
var
|
|
40105
|
-
add:
|
|
40106
|
-
get:
|
|
40107
|
-
DEFAULTS:
|
|
40108
|
-
},
|
|
40109
|
-
|
|
40109
|
+
var Qe = {
|
|
40110
|
+
add: Ti,
|
|
40111
|
+
get: Li,
|
|
40112
|
+
DEFAULTS: oe
|
|
40113
|
+
}, Xe = {};
|
|
40114
|
+
Xe = JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');
|
|
40110
40115
|
var B = {
|
|
40111
40116
|
autoFocus: {
|
|
40112
40117
|
value: !1
|
|
@@ -40275,29 +40280,29 @@ var B = {
|
|
|
40275
40280
|
}
|
|
40276
40281
|
};
|
|
40277
40282
|
let p = null, h = null;
|
|
40278
|
-
const
|
|
40279
|
-
function
|
|
40283
|
+
const ie = {};
|
|
40284
|
+
function pe(i) {
|
|
40280
40285
|
return S(this, null, function* () {
|
|
40281
|
-
if (
|
|
40282
|
-
return
|
|
40286
|
+
if (ie[i])
|
|
40287
|
+
return ie[i];
|
|
40283
40288
|
const n = yield (yield fetch(i)).json();
|
|
40284
|
-
return
|
|
40289
|
+
return ie[i] = n, n;
|
|
40285
40290
|
});
|
|
40286
40291
|
}
|
|
40287
|
-
let
|
|
40288
|
-
function
|
|
40289
|
-
return
|
|
40290
|
-
|
|
40291
|
-
})), i ?
|
|
40292
|
+
let ne = null, ei = null, ii = !1;
|
|
40293
|
+
function Z(i, { caller: e } = {}) {
|
|
40294
|
+
return ne || (ne = new Promise((n) => {
|
|
40295
|
+
ei = n;
|
|
40296
|
+
})), i ? Ri(i) : e && !ii && console.warn(`\`${e}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`), ne;
|
|
40292
40297
|
}
|
|
40293
|
-
function
|
|
40298
|
+
function Ri(i) {
|
|
40294
40299
|
return S(this, null, function* () {
|
|
40295
|
-
|
|
40300
|
+
ii = !0;
|
|
40296
40301
|
let { emojiVersion: e, set: n, locale: a } = i;
|
|
40297
40302
|
if (e || (e = B.emojiVersion.value), n || (n = B.set.value), a || (a = B.locale.value), h)
|
|
40298
40303
|
h.categories = h.categories.filter((t) => !t.name);
|
|
40299
40304
|
else {
|
|
40300
|
-
h = (typeof i.data == "function" ? yield i.data() : i.data) || (yield
|
|
40305
|
+
h = (typeof i.data == "function" ? yield i.data() : i.data) || (yield pe(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${e}/${n}.json`)), h.emoticons = {}, h.natives = {}, h.categories.unshift({
|
|
40301
40306
|
id: "frequent",
|
|
40302
40307
|
emojis: []
|
|
40303
40308
|
});
|
|
@@ -40307,7 +40312,7 @@ function zi(i) {
|
|
|
40307
40312
|
}
|
|
40308
40313
|
h.originalCategories = h.categories;
|
|
40309
40314
|
}
|
|
40310
|
-
if (p = (typeof i.i18n == "function" ? yield i.i18n() : i.i18n) || (a == "en" ? /* @__PURE__ */
|
|
40315
|
+
if (p = (typeof i.i18n == "function" ? yield i.i18n() : i.i18n) || (a == "en" ? /* @__PURE__ */ Re(Xe) : yield pe(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${a}.json`)), i.custom)
|
|
40311
40316
|
for (let t in i.custom) {
|
|
40312
40317
|
t = parseInt(t);
|
|
40313
40318
|
const u = i.custom[t], r = i.custom[t - 1];
|
|
@@ -40322,13 +40327,13 @@ function zi(i) {
|
|
|
40322
40327
|
return r - v;
|
|
40323
40328
|
}));
|
|
40324
40329
|
let s = null, f = null;
|
|
40325
|
-
n == "native" && (s =
|
|
40330
|
+
n == "native" && (s = ye.latestVersion(), f = i.noCountryFlags || ye.noCountryFlags());
|
|
40326
40331
|
let o = h.categories.length, d = !1;
|
|
40327
40332
|
for (; o--; ) {
|
|
40328
40333
|
const t = h.categories[o];
|
|
40329
40334
|
if (t.id == "frequent") {
|
|
40330
40335
|
let { maxFrequentRows: v, perLine: c } = i;
|
|
40331
|
-
v = v >= 0 ? v : B.maxFrequentRows.value, c || (c = B.perLine.value), t.emojis =
|
|
40336
|
+
v = v >= 0 ? v : B.maxFrequentRows.value, c || (c = B.perLine.value), t.emojis = Qe.get({
|
|
40332
40337
|
maxFrequentRows: v,
|
|
40333
40338
|
perLine: c
|
|
40334
40339
|
});
|
|
@@ -40355,7 +40360,7 @@ function zi(i) {
|
|
|
40355
40360
|
m();
|
|
40356
40361
|
continue;
|
|
40357
40362
|
}
|
|
40358
|
-
if (f && t.id == "flags" && !
|
|
40363
|
+
if (f && t.id == "flags" && !Oi.includes(c.id)) {
|
|
40359
40364
|
m();
|
|
40360
40365
|
continue;
|
|
40361
40366
|
}
|
|
@@ -40400,40 +40405,40 @@ function zi(i) {
|
|
|
40400
40405
|
}
|
|
40401
40406
|
}
|
|
40402
40407
|
}
|
|
40403
|
-
d &&
|
|
40408
|
+
d && H.reset(), ei();
|
|
40404
40409
|
});
|
|
40405
40410
|
}
|
|
40406
|
-
function
|
|
40411
|
+
function ni(i, e, n) {
|
|
40407
40412
|
i || (i = {});
|
|
40408
40413
|
const a = {};
|
|
40409
40414
|
for (let s in e)
|
|
40410
|
-
a[s] =
|
|
40415
|
+
a[s] = ai(s, i, e, n);
|
|
40411
40416
|
return a;
|
|
40412
40417
|
}
|
|
40413
|
-
function
|
|
40418
|
+
function ai(i, e, n, a) {
|
|
40414
40419
|
const s = n[i];
|
|
40415
40420
|
let f = a && a.getAttribute(i) || (e[i] != null && e[i] != null ? e[i] : null);
|
|
40416
40421
|
return s && (f != null && s.value && typeof s.value != typeof f && (typeof s.value == "boolean" ? f = f != "false" : f = s.value.constructor(f)), s.transform && f && (f = s.transform(f)), (f == null || s.choices && s.choices.indexOf(f) == -1) && (f = s.value)), f;
|
|
40417
40422
|
}
|
|
40418
|
-
const
|
|
40419
|
-
let
|
|
40420
|
-
function
|
|
40423
|
+
const Ei = /^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;
|
|
40424
|
+
let re = null;
|
|
40425
|
+
function Di(i) {
|
|
40421
40426
|
return i.id ? i : h.emojis[i] || h.emojis[h.aliases[i]] || h.emojis[h.natives[i]];
|
|
40422
40427
|
}
|
|
40423
|
-
function
|
|
40424
|
-
|
|
40428
|
+
function Ai() {
|
|
40429
|
+
re = null;
|
|
40425
40430
|
}
|
|
40426
|
-
function
|
|
40431
|
+
function Ii(a) {
|
|
40427
40432
|
return S(this, arguments, function* (i, { maxResults: e, caller: n } = {}) {
|
|
40428
40433
|
if (!i || !i.trim().length)
|
|
40429
40434
|
return null;
|
|
40430
|
-
e || (e = 90), yield
|
|
40435
|
+
e || (e = 90), yield Z(null, {
|
|
40431
40436
|
caller: n || "SearchIndex.search"
|
|
40432
40437
|
});
|
|
40433
40438
|
const s = i.toLowerCase().replace(/(\w)-/, "$1 ").split(/[\s|,]+/).filter((t, u, r) => t.trim() && r.indexOf(t) == u);
|
|
40434
40439
|
if (!s.length)
|
|
40435
40440
|
return;
|
|
40436
|
-
let f =
|
|
40441
|
+
let f = re || (re = Object.values(h.emojis)), o, d;
|
|
40437
40442
|
for (const t of s) {
|
|
40438
40443
|
if (!f.length)
|
|
40439
40444
|
break;
|
|
@@ -40452,13 +40457,13 @@ function Wi(a) {
|
|
|
40452
40457
|
}), o.length > e && (o = o.slice(0, e))), o;
|
|
40453
40458
|
});
|
|
40454
40459
|
}
|
|
40455
|
-
var
|
|
40456
|
-
search:
|
|
40457
|
-
get:
|
|
40458
|
-
reset:
|
|
40459
|
-
SHORTCODES_REGEX:
|
|
40460
|
+
var H = {
|
|
40461
|
+
search: Ii,
|
|
40462
|
+
get: Di,
|
|
40463
|
+
reset: Ai,
|
|
40464
|
+
SHORTCODES_REGEX: Ei
|
|
40460
40465
|
};
|
|
40461
|
-
const
|
|
40466
|
+
const Oi = [
|
|
40462
40467
|
"checkered_flag",
|
|
40463
40468
|
"crossed_flags",
|
|
40464
40469
|
"pirate_flag",
|
|
@@ -40468,10 +40473,10 @@ const Ti = [
|
|
|
40468
40473
|
"waving_black_flag",
|
|
40469
40474
|
"waving_white_flag"
|
|
40470
40475
|
];
|
|
40471
|
-
function
|
|
40476
|
+
function Gi(i, e) {
|
|
40472
40477
|
return Array.isArray(i) && Array.isArray(e) && i.length === e.length && i.every((n, a) => n == e[a]);
|
|
40473
40478
|
}
|
|
40474
|
-
function
|
|
40479
|
+
function Ni(i = 1) {
|
|
40475
40480
|
return S(this, null, function* () {
|
|
40476
40481
|
for (let e in [
|
|
40477
40482
|
...Array(i).keys()
|
|
@@ -40479,7 +40484,7 @@ function Ri(i = 1) {
|
|
|
40479
40484
|
yield new Promise(requestAnimationFrame);
|
|
40480
40485
|
});
|
|
40481
40486
|
}
|
|
40482
|
-
function
|
|
40487
|
+
function Vi(i, { skinIndex: e = 0 } = {}) {
|
|
40483
40488
|
const n = i.skins[e] || (() => (e = 0, i.skins[e]))(), a = {
|
|
40484
40489
|
id: i.id,
|
|
40485
40490
|
name: i.name,
|
|
@@ -40490,7 +40495,7 @@ function Di(i, { skinIndex: e = 0 } = {}) {
|
|
|
40490
40495
|
};
|
|
40491
40496
|
return i.skins.length > 1 && (a.skin = e + 1), n.src && (a.src = n.src), i.aliases && i.aliases.length && (a.aliases = i.aliases), i.emoticons && i.emoticons.length && (a.emoticons = i.emoticons), a;
|
|
40492
40497
|
}
|
|
40493
|
-
const
|
|
40498
|
+
const Ui = {
|
|
40494
40499
|
activity: {
|
|
40495
40500
|
outline: /* @__PURE__ */ l("svg", {
|
|
40496
40501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -40667,7 +40672,7 @@ const Ei = {
|
|
|
40667
40672
|
})
|
|
40668
40673
|
})
|
|
40669
40674
|
}
|
|
40670
|
-
},
|
|
40675
|
+
}, Ki = {
|
|
40671
40676
|
loupe: /* @__PURE__ */ l("svg", {
|
|
40672
40677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40673
40678
|
viewBox: "0 0 20 20",
|
|
@@ -40683,17 +40688,17 @@ const Ei = {
|
|
|
40683
40688
|
})
|
|
40684
40689
|
})
|
|
40685
40690
|
};
|
|
40686
|
-
var
|
|
40687
|
-
categories:
|
|
40688
|
-
search:
|
|
40691
|
+
var K = {
|
|
40692
|
+
categories: Ui,
|
|
40693
|
+
search: Ki
|
|
40689
40694
|
};
|
|
40690
|
-
function
|
|
40695
|
+
function te(i) {
|
|
40691
40696
|
let { id: e, skin: n, emoji: a } = i;
|
|
40692
40697
|
if (i.shortcodes) {
|
|
40693
|
-
const d = i.shortcodes.match(
|
|
40698
|
+
const d = i.shortcodes.match(H.SHORTCODES_REGEX);
|
|
40694
40699
|
d && (e = d[1], d[2] && (n = d[2]));
|
|
40695
40700
|
}
|
|
40696
|
-
if (a || (a =
|
|
40701
|
+
if (a || (a = H.get(e || i.native)), !a)
|
|
40697
40702
|
return i.fallback;
|
|
40698
40703
|
const s = a.skins[n - 1] || a.skins[0], f = s.src || (i.set != "native" && !i.spritesheet ? typeof i.getImageURL == "function" ? i.getImageURL(i.set, s.unified) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${i.set}@14.0.0/img/${i.set}/64/${s.unified}.png` : void 0), o = typeof i.getSpritesheetURL == "function" ? i.getSpritesheetURL(i.set) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${i.set}@14.0.0/img/${i.set}/sheets-256/64.png`;
|
|
40699
40704
|
return /* @__PURE__ */ l("span", {
|
|
@@ -40725,8 +40730,8 @@ function fe(i) {
|
|
|
40725
40730
|
})
|
|
40726
40731
|
});
|
|
40727
40732
|
}
|
|
40728
|
-
const
|
|
40729
|
-
class
|
|
40733
|
+
const Ji = typeof window != "undefined" && window.HTMLElement ? window.HTMLElement : Object;
|
|
40734
|
+
class fi extends Ji {
|
|
40730
40735
|
static get observedAttributes() {
|
|
40731
40736
|
return Object.keys(this.Props);
|
|
40732
40737
|
}
|
|
@@ -40737,7 +40742,7 @@ class ni extends Ii {
|
|
|
40737
40742
|
attributeChangedCallback(e, n, a) {
|
|
40738
40743
|
if (!this.component)
|
|
40739
40744
|
return;
|
|
40740
|
-
const s =
|
|
40745
|
+
const s = ai(e, {
|
|
40741
40746
|
[e]: a
|
|
40742
40747
|
}, this.constructor.Props, this);
|
|
40743
40748
|
this.component.componentWillReceiveProps ? this.component.componentWillReceiveProps({
|
|
@@ -40755,7 +40760,7 @@ class ni extends Ii {
|
|
|
40755
40760
|
}
|
|
40756
40761
|
}
|
|
40757
40762
|
}
|
|
40758
|
-
class
|
|
40763
|
+
class Yi extends fi {
|
|
40759
40764
|
setShadow() {
|
|
40760
40765
|
this.attachShadow({
|
|
40761
40766
|
mode: "open"
|
|
@@ -40771,7 +40776,7 @@ class Oi extends ni {
|
|
|
40771
40776
|
super(e), this.setShadow(), this.injectStyles(n);
|
|
40772
40777
|
}
|
|
40773
40778
|
}
|
|
40774
|
-
var
|
|
40779
|
+
var si = {
|
|
40775
40780
|
fallback: "",
|
|
40776
40781
|
id: "",
|
|
40777
40782
|
native: "",
|
|
@@ -40784,86 +40789,86 @@ var ai = {
|
|
|
40784
40789
|
set: B.set,
|
|
40785
40790
|
skin: B.skin
|
|
40786
40791
|
};
|
|
40787
|
-
class
|
|
40792
|
+
class oi extends fi {
|
|
40788
40793
|
connectedCallback() {
|
|
40789
40794
|
return S(this, null, function* () {
|
|
40790
|
-
const e =
|
|
40795
|
+
const e = ni(this.props, si, this);
|
|
40791
40796
|
e.element = this, e.ref = (n) => {
|
|
40792
40797
|
this.component = n;
|
|
40793
|
-
}, yield
|
|
40798
|
+
}, yield Z(), !this.disconnected && Ye(/* @__PURE__ */ l(te, j({}, e)), this);
|
|
40794
40799
|
});
|
|
40795
40800
|
}
|
|
40796
40801
|
constructor(e) {
|
|
40797
40802
|
super(e);
|
|
40798
40803
|
}
|
|
40799
40804
|
}
|
|
40800
|
-
C(
|
|
40801
|
-
typeof customElements != "undefined" && !customElements.get("em-emoji") && customElements.define("em-emoji",
|
|
40802
|
-
var
|
|
40803
|
-
function
|
|
40805
|
+
C(oi, "Props", si);
|
|
40806
|
+
typeof customElements != "undefined" && !customElements.get("em-emoji") && customElements.define("em-emoji", oi);
|
|
40807
|
+
var xe, de = [], Ce = k.__b, Fe = k.__r, Se = k.diffed, Me = k.__c, $e = k.unmount;
|
|
40808
|
+
function Zi() {
|
|
40804
40809
|
var i;
|
|
40805
|
-
for (
|
|
40810
|
+
for (de.sort(function(e, n) {
|
|
40806
40811
|
return e.__v.__b - n.__v.__b;
|
|
40807
|
-
}); i =
|
|
40812
|
+
}); i = de.pop(); )
|
|
40808
40813
|
if (i.__P)
|
|
40809
40814
|
try {
|
|
40810
|
-
i.__H.__h.forEach(
|
|
40815
|
+
i.__H.__h.forEach(O), i.__H.__h.forEach(le), i.__H.__h = [];
|
|
40811
40816
|
} catch (e) {
|
|
40812
40817
|
i.__H.__h = [], k.__e(e, i.__v);
|
|
40813
40818
|
}
|
|
40814
40819
|
}
|
|
40815
40820
|
k.__b = function(i) {
|
|
40816
|
-
|
|
40821
|
+
Ce && Ce(i);
|
|
40817
40822
|
}, k.__r = function(i) {
|
|
40818
|
-
|
|
40823
|
+
Fe && Fe(i);
|
|
40819
40824
|
var e = i.__c.__H;
|
|
40820
|
-
e && (e.__h.forEach(
|
|
40825
|
+
e && (e.__h.forEach(O), e.__h.forEach(le), e.__h = []);
|
|
40821
40826
|
}, k.diffed = function(i) {
|
|
40822
|
-
|
|
40827
|
+
Se && Se(i);
|
|
40823
40828
|
var e = i.__c;
|
|
40824
|
-
e && e.__H && e.__H.__h.length && (
|
|
40829
|
+
e && e.__H && e.__H.__h.length && (de.push(e) !== 1 && xe === k.requestAnimationFrame || ((xe = k.requestAnimationFrame) || function(n) {
|
|
40825
40830
|
var a, s = function() {
|
|
40826
|
-
clearTimeout(f),
|
|
40831
|
+
clearTimeout(f), Be && cancelAnimationFrame(a), setTimeout(n);
|
|
40827
40832
|
}, f = setTimeout(s, 100);
|
|
40828
|
-
|
|
40829
|
-
})(
|
|
40833
|
+
Be && (a = requestAnimationFrame(s));
|
|
40834
|
+
})(Zi));
|
|
40830
40835
|
}, k.__c = function(i, e) {
|
|
40831
40836
|
e.some(function(n) {
|
|
40832
40837
|
try {
|
|
40833
|
-
n.__h.forEach(
|
|
40834
|
-
return !a.__ ||
|
|
40838
|
+
n.__h.forEach(O), n.__h = n.__h.filter(function(a) {
|
|
40839
|
+
return !a.__ || le(a);
|
|
40835
40840
|
});
|
|
40836
40841
|
} catch (a) {
|
|
40837
40842
|
e.some(function(s) {
|
|
40838
40843
|
s.__h && (s.__h = []);
|
|
40839
40844
|
}), e = [], k.__e(a, n.__v);
|
|
40840
40845
|
}
|
|
40841
|
-
}),
|
|
40846
|
+
}), Me && Me(i, e);
|
|
40842
40847
|
}, k.unmount = function(i) {
|
|
40843
|
-
|
|
40848
|
+
$e && $e(i);
|
|
40844
40849
|
var e, n = i.__c;
|
|
40845
40850
|
n && n.__H && (n.__H.__.forEach(function(a) {
|
|
40846
40851
|
try {
|
|
40847
|
-
|
|
40852
|
+
O(a);
|
|
40848
40853
|
} catch (s) {
|
|
40849
40854
|
e = s;
|
|
40850
40855
|
}
|
|
40851
40856
|
}), e && k.__e(e, n.__v));
|
|
40852
40857
|
};
|
|
40853
|
-
var
|
|
40854
|
-
function
|
|
40858
|
+
var Be = typeof requestAnimationFrame == "function";
|
|
40859
|
+
function O(i) {
|
|
40855
40860
|
var e = i.__c;
|
|
40856
40861
|
typeof e == "function" && (i.__c = void 0, e());
|
|
40857
40862
|
}
|
|
40858
|
-
function
|
|
40863
|
+
function le(i) {
|
|
40859
40864
|
i.__c = i.__();
|
|
40860
40865
|
}
|
|
40861
|
-
function
|
|
40866
|
+
function Qi(i, e) {
|
|
40862
40867
|
for (var n in e)
|
|
40863
40868
|
i[n] = e[n];
|
|
40864
40869
|
return i;
|
|
40865
40870
|
}
|
|
40866
|
-
function
|
|
40871
|
+
function je(i, e) {
|
|
40867
40872
|
for (var n in i)
|
|
40868
40873
|
if (n !== "__source" && !(n in e))
|
|
40869
40874
|
return !0;
|
|
@@ -40872,30 +40877,30 @@ function Me(i, e) {
|
|
|
40872
40877
|
return !0;
|
|
40873
40878
|
return !1;
|
|
40874
40879
|
}
|
|
40875
|
-
function
|
|
40880
|
+
function J(i) {
|
|
40876
40881
|
this.props = i;
|
|
40877
40882
|
}
|
|
40878
|
-
(
|
|
40879
|
-
return
|
|
40883
|
+
(J.prototype = new M()).isPureReactComponent = !0, J.prototype.shouldComponentUpdate = function(i, e) {
|
|
40884
|
+
return je(this.props, i) || je(this.state, e);
|
|
40880
40885
|
};
|
|
40881
|
-
var
|
|
40886
|
+
var ze = k.__b;
|
|
40882
40887
|
k.__b = function(i) {
|
|
40883
|
-
i.type && i.type.__f && i.ref && (i.props.ref = i.ref, i.ref = null),
|
|
40888
|
+
i.type && i.type.__f && i.ref && (i.props.ref = i.ref, i.ref = null), ze && ze(i);
|
|
40884
40889
|
};
|
|
40885
|
-
var
|
|
40890
|
+
var Xi = k.__e;
|
|
40886
40891
|
k.__e = function(i, e, n) {
|
|
40887
40892
|
if (i.then) {
|
|
40888
40893
|
for (var a, s = e; s = s.__; )
|
|
40889
40894
|
if ((a = s.__c) && a.__c)
|
|
40890
40895
|
return e.__e == null && (e.__e = n.__e, e.__k = n.__k), a.__c(i, e);
|
|
40891
40896
|
}
|
|
40892
|
-
|
|
40897
|
+
Xi(i, e, n);
|
|
40893
40898
|
};
|
|
40894
|
-
var
|
|
40895
|
-
function
|
|
40899
|
+
var Pe = k.unmount;
|
|
40900
|
+
function ae() {
|
|
40896
40901
|
this.__u = 0, this.t = null, this.__b = null;
|
|
40897
40902
|
}
|
|
40898
|
-
function
|
|
40903
|
+
function ri(i) {
|
|
40899
40904
|
var e = i.__.__c;
|
|
40900
40905
|
return e && e.__e && e.__e(i);
|
|
40901
40906
|
}
|
|
@@ -40904,11 +40909,11 @@ function D() {
|
|
|
40904
40909
|
}
|
|
40905
40910
|
k.unmount = function(i) {
|
|
40906
40911
|
var e = i.__c;
|
|
40907
|
-
e && e.__R && e.__R(), e && i.__h === !0 && (i.type = null),
|
|
40908
|
-
}, (
|
|
40912
|
+
e && e.__R && e.__R(), e && i.__h === !0 && (i.type = null), Pe && Pe(i);
|
|
40913
|
+
}, (ae.prototype = new M()).__c = function(i, e) {
|
|
40909
40914
|
var n = e.__c, a = this;
|
|
40910
40915
|
a.t == null && (a.t = []), a.t.push(n);
|
|
40911
|
-
var s =
|
|
40916
|
+
var s = ri(a.__v), f = !1, o = function() {
|
|
40912
40917
|
f || (f = !0, n.__R = null, s ? s(d) : d());
|
|
40913
40918
|
};
|
|
40914
40919
|
n.__R = o;
|
|
@@ -40932,29 +40937,29 @@ k.unmount = function(i) {
|
|
|
40932
40937
|
a.__u++ || t || a.setState({
|
|
40933
40938
|
__e: a.__b = a.__v.__k[0]
|
|
40934
40939
|
}), i.then(o, o);
|
|
40935
|
-
},
|
|
40940
|
+
}, ae.prototype.componentWillUnmount = function() {
|
|
40936
40941
|
this.t = [];
|
|
40937
|
-
},
|
|
40942
|
+
}, ae.prototype.render = function(i, e) {
|
|
40938
40943
|
if (this.__b) {
|
|
40939
40944
|
if (this.__v.__k) {
|
|
40940
40945
|
var n = document.createElement("div"), a = this.__v.__k[0].__c;
|
|
40941
40946
|
this.__v.__k[0] = function f(o, d, t) {
|
|
40942
40947
|
return o && (o.__c && o.__c.__H && (o.__c.__H.__.forEach(function(u) {
|
|
40943
40948
|
typeof u.__c == "function" && u.__c();
|
|
40944
|
-
}), o.__c.__H = null), (o =
|
|
40949
|
+
}), o.__c.__H = null), (o = Qi({}, o)).__c != null && (o.__c.__P === t && (o.__c.__P = d), o.__c = null), o.__k = o.__k && o.__k.map(function(u) {
|
|
40945
40950
|
return f(u, d, t);
|
|
40946
40951
|
})), o;
|
|
40947
40952
|
}(this.__b, n, a.__O = a.__P);
|
|
40948
40953
|
}
|
|
40949
40954
|
this.__b = null;
|
|
40950
40955
|
}
|
|
40951
|
-
var s = e.__e &&
|
|
40956
|
+
var s = e.__e && se(W, null, i.fallback);
|
|
40952
40957
|
return s && (s.__h = null), [
|
|
40953
|
-
|
|
40958
|
+
se(W, null, e.__e ? null : i.children),
|
|
40954
40959
|
s
|
|
40955
40960
|
];
|
|
40956
40961
|
};
|
|
40957
|
-
var
|
|
40962
|
+
var qe = function(i, e, n) {
|
|
40958
40963
|
if (++n[1] === n[0] && i.o.delete(e), i.props.revealOrder && (i.props.revealOrder[0] !== "t" || !i.o.size))
|
|
40959
40964
|
for (n = i.u; n; ) {
|
|
40960
40965
|
for (; n.length > 3; )
|
|
@@ -40965,16 +40970,16 @@ var je = function(i, e, n) {
|
|
|
40965
40970
|
}
|
|
40966
40971
|
};
|
|
40967
40972
|
(D.prototype = new M()).__e = function(i) {
|
|
40968
|
-
var e = this, n =
|
|
40973
|
+
var e = this, n = ri(e.__v), a = e.o.get(i);
|
|
40969
40974
|
return a[0]++, function(s) {
|
|
40970
40975
|
var f = function() {
|
|
40971
|
-
e.props.revealOrder ? (a.push(s),
|
|
40976
|
+
e.props.revealOrder ? (a.push(s), qe(e, i, a)) : s();
|
|
40972
40977
|
};
|
|
40973
40978
|
n ? n(f) : f();
|
|
40974
40979
|
};
|
|
40975
40980
|
}, D.prototype.render = function(i) {
|
|
40976
40981
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
40977
|
-
var e =
|
|
40982
|
+
var e = V(i.children);
|
|
40978
40983
|
i.revealOrder && i.revealOrder[0] === "b" && e.reverse();
|
|
40979
40984
|
for (var n = e.length; n--; )
|
|
40980
40985
|
this.o.set(e[n], this.u = [
|
|
@@ -40986,10 +40991,10 @@ var je = function(i, e, n) {
|
|
|
40986
40991
|
}, D.prototype.componentDidUpdate = D.prototype.componentDidMount = function() {
|
|
40987
40992
|
var i = this;
|
|
40988
40993
|
this.o.forEach(function(e, n) {
|
|
40989
|
-
|
|
40994
|
+
qe(i, n, e);
|
|
40990
40995
|
});
|
|
40991
40996
|
};
|
|
40992
|
-
var
|
|
40997
|
+
var en = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103, nn = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, an = typeof document != "undefined", fn = function(i) {
|
|
40993
40998
|
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(i);
|
|
40994
40999
|
};
|
|
40995
41000
|
M.prototype.isReactComponent = {}, [
|
|
@@ -41011,49 +41016,49 @@ M.prototype.isReactComponent = {}, [
|
|
|
41011
41016
|
}
|
|
41012
41017
|
});
|
|
41013
41018
|
});
|
|
41014
|
-
var
|
|
41015
|
-
function
|
|
41019
|
+
var He = k.event;
|
|
41020
|
+
function sn() {
|
|
41016
41021
|
}
|
|
41017
|
-
function
|
|
41022
|
+
function on() {
|
|
41018
41023
|
return this.cancelBubble;
|
|
41019
41024
|
}
|
|
41020
|
-
function
|
|
41025
|
+
function rn() {
|
|
41021
41026
|
return this.defaultPrevented;
|
|
41022
41027
|
}
|
|
41023
41028
|
k.event = function(i) {
|
|
41024
|
-
return
|
|
41029
|
+
return He && (i = He(i)), i.persist = sn, i.isPropagationStopped = on, i.isDefaultPrevented = rn, i.nativeEvent = i;
|
|
41025
41030
|
};
|
|
41026
|
-
var
|
|
41031
|
+
var We = {
|
|
41027
41032
|
configurable: !0,
|
|
41028
41033
|
get: function() {
|
|
41029
41034
|
return this.class;
|
|
41030
41035
|
}
|
|
41031
|
-
},
|
|
41036
|
+
}, Te = k.vnode;
|
|
41032
41037
|
k.vnode = function(i) {
|
|
41033
41038
|
var e = i.type, n = i.props, a = n;
|
|
41034
41039
|
if (typeof e == "string") {
|
|
41035
41040
|
var s = e.indexOf("-") === -1;
|
|
41036
41041
|
for (var f in a = {}, n) {
|
|
41037
41042
|
var o = n[f];
|
|
41038
|
-
|
|
41043
|
+
an && f === "children" && e === "noscript" || f === "value" && "defaultValue" in n && o == null || (f === "defaultValue" && "value" in n && n.value == null ? f = "value" : f === "download" && o === !0 ? o = "" : /ondoubleclick/i.test(f) ? f = "ondblclick" : /^onchange(textarea|input)/i.test(f + e) && !fn(n.type) ? f = "oninput" : /^onfocus$/i.test(f) ? f = "onfocusin" : /^onblur$/i.test(f) ? f = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp)/.test(f) ? f = f.toLowerCase() : s && nn.test(f) ? f = f.replace(/[A-Z0-9]/, "-$&").toLowerCase() : o === null && (o = void 0), a[f] = o);
|
|
41039
41044
|
}
|
|
41040
|
-
e == "select" && a.multiple && Array.isArray(a.value) && (a.value =
|
|
41045
|
+
e == "select" && a.multiple && Array.isArray(a.value) && (a.value = V(n.children).forEach(function(d) {
|
|
41041
41046
|
d.props.selected = a.value.indexOf(d.props.value) != -1;
|
|
41042
|
-
})), e == "select" && a.defaultValue != null && (a.value =
|
|
41047
|
+
})), e == "select" && a.defaultValue != null && (a.value = V(n.children).forEach(function(d) {
|
|
41043
41048
|
d.props.selected = a.multiple ? a.defaultValue.indexOf(d.props.value) != -1 : a.defaultValue == d.props.value;
|
|
41044
|
-
})), i.props = a, n.class != n.className && (
|
|
41049
|
+
})), i.props = a, n.class != n.className && (We.enumerable = "className" in n, n.className != null && (a.class = n.className), Object.defineProperty(a, "className", We));
|
|
41045
41050
|
}
|
|
41046
|
-
i.$$typeof =
|
|
41051
|
+
i.$$typeof = en, Te && Te(i);
|
|
41047
41052
|
};
|
|
41048
|
-
var
|
|
41053
|
+
var Le = k.__r;
|
|
41049
41054
|
k.__r = function(i) {
|
|
41050
|
-
|
|
41055
|
+
Le && Le(i), i.__c;
|
|
41051
41056
|
};
|
|
41052
|
-
const
|
|
41057
|
+
const tn = {
|
|
41053
41058
|
light: "outline",
|
|
41054
41059
|
dark: "solid"
|
|
41055
41060
|
};
|
|
41056
|
-
class
|
|
41061
|
+
class dn extends J {
|
|
41057
41062
|
renderIcon(e) {
|
|
41058
41063
|
const { icon: n } = e;
|
|
41059
41064
|
if (n) {
|
|
@@ -41069,7 +41074,7 @@ class nn extends K {
|
|
|
41069
41074
|
src: n.src
|
|
41070
41075
|
});
|
|
41071
41076
|
}
|
|
41072
|
-
const a =
|
|
41077
|
+
const a = K.categories[e.id] || K.categories.custom, s = this.props.icons == "auto" ? tn[this.props.theme] : this.props.icons;
|
|
41073
41078
|
return a[s] || a;
|
|
41074
41079
|
}
|
|
41075
41080
|
render() {
|
|
@@ -41118,7 +41123,7 @@ class nn extends K {
|
|
|
41118
41123
|
};
|
|
41119
41124
|
}
|
|
41120
41125
|
}
|
|
41121
|
-
class
|
|
41126
|
+
class ln extends J {
|
|
41122
41127
|
shouldComponentUpdate(e) {
|
|
41123
41128
|
for (let n in e)
|
|
41124
41129
|
if (n != "children" && e[n] != this.props[n])
|
|
@@ -41129,13 +41134,13 @@ class an extends K {
|
|
|
41129
41134
|
return this.props.children;
|
|
41130
41135
|
}
|
|
41131
41136
|
}
|
|
41132
|
-
const
|
|
41137
|
+
const A = {
|
|
41133
41138
|
rowsPerRender: 10
|
|
41134
41139
|
};
|
|
41135
|
-
class
|
|
41140
|
+
class un extends M {
|
|
41136
41141
|
getInitialState(e = this.props) {
|
|
41137
41142
|
return {
|
|
41138
|
-
skin:
|
|
41143
|
+
skin: q.get("skin") || e.skin,
|
|
41139
41144
|
theme: this.initTheme(e.theme)
|
|
41140
41145
|
};
|
|
41141
41146
|
}
|
|
@@ -41176,7 +41181,7 @@ class fn extends M {
|
|
|
41176
41181
|
}
|
|
41177
41182
|
reset() {
|
|
41178
41183
|
return S(this, arguments, function* (e = {}) {
|
|
41179
|
-
yield
|
|
41184
|
+
yield Z(this.props), this.initGrid(), this.unobserve(), this.setState(e, () => {
|
|
41180
41185
|
this.observeCategories(), this.observeRows();
|
|
41181
41186
|
});
|
|
41182
41187
|
});
|
|
@@ -41206,7 +41211,7 @@ class fn extends M {
|
|
|
41206
41211
|
const a = (s, f) => {
|
|
41207
41212
|
const o = [];
|
|
41208
41213
|
o.__categoryId = f.id, o.__index = s.length, this.grid.push(o);
|
|
41209
|
-
const d = this.grid.length - 1, t = d %
|
|
41214
|
+
const d = this.grid.length - 1, t = d % A.rowsPerRender ? {} : $();
|
|
41210
41215
|
return t.index = d, t.posinset = this.grid.setsize + 1, s.push(t), o;
|
|
41211
41216
|
};
|
|
41212
41217
|
for (let s of e) {
|
|
@@ -41259,7 +41264,7 @@ class fn extends M {
|
|
|
41259
41264
|
getEmojiByPos([e, n]) {
|
|
41260
41265
|
const a = this.state.searchResults || this.grid, s = a[e] && a[e][n];
|
|
41261
41266
|
if (s)
|
|
41262
|
-
return
|
|
41267
|
+
return H.get(s);
|
|
41263
41268
|
}
|
|
41264
41269
|
observeCategories() {
|
|
41265
41270
|
const e = this.refs.navigation.current;
|
|
@@ -41294,7 +41299,7 @@ class fn extends M {
|
|
|
41294
41299
|
this.observers.push(f);
|
|
41295
41300
|
}
|
|
41296
41301
|
observeRows() {
|
|
41297
|
-
const e =
|
|
41302
|
+
const e = j({}, this.state.visibleRows), n = new IntersectionObserver((a) => {
|
|
41298
41303
|
for (const s of a) {
|
|
41299
41304
|
const f = parseInt(s.target.dataset.index);
|
|
41300
41305
|
s.isIntersecting ? e[f] = !0 : delete e[f];
|
|
@@ -41304,7 +41309,7 @@ class fn extends M {
|
|
|
41304
41309
|
});
|
|
41305
41310
|
}, {
|
|
41306
41311
|
root: this.refs.scroll.current,
|
|
41307
|
-
rootMargin: `${this.props.emojiButtonSize * (
|
|
41312
|
+
rootMargin: `${this.props.emojiButtonSize * (A.rowsPerRender + 5)}px 0px ${this.props.emojiButtonSize * A.rowsPerRender}px`
|
|
41308
41313
|
});
|
|
41309
41314
|
for (const { rows: a } of this.refs.categories.values())
|
|
41310
41315
|
for (const s of a)
|
|
@@ -41415,10 +41420,10 @@ class fn extends M {
|
|
|
41415
41420
|
}
|
|
41416
41421
|
handleEmojiClick({ e, emoji: n, pos: a }) {
|
|
41417
41422
|
if (this.props.onEmojiSelect && (!n && a && (n = this.getEmojiByPos(a)), n)) {
|
|
41418
|
-
const s =
|
|
41423
|
+
const s = Vi(n, {
|
|
41419
41424
|
skinIndex: this.state.skin - 1
|
|
41420
41425
|
});
|
|
41421
|
-
this.props.maxFrequentRows &&
|
|
41426
|
+
this.props.maxFrequentRows && Qe.add(s, this.props), this.props.onEmojiSelect(s, e);
|
|
41422
41427
|
}
|
|
41423
41428
|
}
|
|
41424
41429
|
closeSkins() {
|
|
@@ -41436,10 +41441,10 @@ class fn extends M {
|
|
|
41436
41441
|
this.ignoreMouse(), this.closeSkins(), this.setState({
|
|
41437
41442
|
skin: e,
|
|
41438
41443
|
tempSkin: null
|
|
41439
|
-
}),
|
|
41444
|
+
}), q.set("skin", e);
|
|
41440
41445
|
}
|
|
41441
41446
|
renderNav() {
|
|
41442
|
-
return /* @__PURE__ */ l(
|
|
41447
|
+
return /* @__PURE__ */ l(dn, {
|
|
41443
41448
|
ref: this.refs.navigation,
|
|
41444
41449
|
icons: this.props.icons,
|
|
41445
41450
|
theme: this.state.theme,
|
|
@@ -41466,7 +41471,7 @@ class fn extends M {
|
|
|
41466
41471
|
height: this.props.emojiButtonSize,
|
|
41467
41472
|
fontSize: this.props.emojiButtonSize
|
|
41468
41473
|
},
|
|
41469
|
-
children: /* @__PURE__ */ l(
|
|
41474
|
+
children: /* @__PURE__ */ l(te, {
|
|
41470
41475
|
emoji: e,
|
|
41471
41476
|
id: n ? this.props.noResultsEmoji || "cry" : this.props.previewEmoji || (this.props.previewPosition == "top" ? "point_down" : "point_up"),
|
|
41472
41477
|
set: this.props.set,
|
|
@@ -41502,8 +41507,8 @@ class fn extends M {
|
|
|
41502
41507
|
});
|
|
41503
41508
|
}
|
|
41504
41509
|
renderEmojiButton(e, { pos: n, posinset: a, grid: s }) {
|
|
41505
|
-
const f = this.props.emojiButtonSize, o = this.state.tempSkin || this.state.skin, t = (e.skins[o - 1] || e.skins[0]).native, u =
|
|
41506
|
-
return /* @__PURE__ */ l(
|
|
41510
|
+
const f = this.props.emojiButtonSize, o = this.state.tempSkin || this.state.skin, t = (e.skins[o - 1] || e.skins[0]).native, u = Gi(this.state.pos, n), r = n.concat(e.id).join("");
|
|
41511
|
+
return /* @__PURE__ */ l(ln, {
|
|
41507
41512
|
selected: u,
|
|
41508
41513
|
skin: o,
|
|
41509
41514
|
size: f,
|
|
@@ -41538,7 +41543,7 @@ class fn extends M {
|
|
|
41538
41543
|
backgroundColor: this.props.emojiButtonColors ? this.props.emojiButtonColors[(a - 1) % this.props.emojiButtonColors.length] : void 0
|
|
41539
41544
|
}
|
|
41540
41545
|
}),
|
|
41541
|
-
/* @__PURE__ */ l(
|
|
41546
|
+
/* @__PURE__ */ l(te, {
|
|
41542
41547
|
emoji: e,
|
|
41543
41548
|
set: this.props.set,
|
|
41544
41549
|
size: this.props.emojiSize,
|
|
@@ -41574,7 +41579,7 @@ class fn extends M {
|
|
|
41574
41579
|
}),
|
|
41575
41580
|
/* @__PURE__ */ l("span", {
|
|
41576
41581
|
class: "icon loupe flex",
|
|
41577
|
-
children:
|
|
41582
|
+
children: K.search.loupe
|
|
41578
41583
|
}),
|
|
41579
41584
|
this.state.searchResults && /* @__PURE__ */ l("button", {
|
|
41580
41585
|
title: "Clear",
|
|
@@ -41583,7 +41588,7 @@ class fn extends M {
|
|
|
41583
41588
|
class: "icon delete flex",
|
|
41584
41589
|
onClick: this.clearSearch,
|
|
41585
41590
|
onMouseDown: this.preventDefault,
|
|
41586
|
-
children:
|
|
41591
|
+
children: K.search.delete
|
|
41587
41592
|
})
|
|
41588
41593
|
]
|
|
41589
41594
|
}),
|
|
@@ -41650,7 +41655,7 @@ class fn extends M {
|
|
|
41650
41655
|
height: o.length * this.props.emojiButtonSize
|
|
41651
41656
|
},
|
|
41652
41657
|
children: o.map((d, t) => {
|
|
41653
|
-
const u = d.index - d.index %
|
|
41658
|
+
const u = d.index - d.index % A.rowsPerRender, r = this.state.visibleRows[u], v = "current" in d ? d : void 0;
|
|
41654
41659
|
if (!r && !v)
|
|
41655
41660
|
return null;
|
|
41656
41661
|
const c = t * a, m = c + a, g = s.emojis.slice(c, m);
|
|
@@ -41669,7 +41674,7 @@ class fn extends M {
|
|
|
41669
41674
|
height: this.props.emojiButtonSize
|
|
41670
41675
|
}
|
|
41671
41676
|
});
|
|
41672
|
-
const b =
|
|
41677
|
+
const b = H.get(_);
|
|
41673
41678
|
return this.renderEmojiButton(b, {
|
|
41674
41679
|
pos: [
|
|
41675
41680
|
d.index,
|
|
@@ -41831,7 +41836,7 @@ class fn extends M {
|
|
|
41831
41836
|
const n = this.refs.searchInput.current;
|
|
41832
41837
|
if (!n)
|
|
41833
41838
|
return;
|
|
41834
|
-
const { value: a } = n, s = yield
|
|
41839
|
+
const { value: a } = n, s = yield H.search(a), f = () => {
|
|
41835
41840
|
this.refs.scroll.current && (this.refs.scroll.current.scrollTop = 0);
|
|
41836
41841
|
};
|
|
41837
41842
|
if (!s)
|
|
@@ -41912,11 +41917,11 @@ class fn extends M {
|
|
|
41912
41917
|
this.setState({
|
|
41913
41918
|
showSkins: s
|
|
41914
41919
|
}, () => S(this, null, function* () {
|
|
41915
|
-
yield
|
|
41920
|
+
yield Ni(2);
|
|
41916
41921
|
const f = this.refs.menu.current;
|
|
41917
41922
|
f && (f.classList.remove("hidden"), this.refs.skinToneRadio.current.focus(), this.base.addEventListener("click", this.handleBaseClick, !0), this.base.addEventListener("keydown", this.handleBaseKeydown, !0));
|
|
41918
41923
|
}));
|
|
41919
|
-
}), this.observers = [], this.state =
|
|
41924
|
+
}), this.observers = [], this.state = j({
|
|
41920
41925
|
pos: [
|
|
41921
41926
|
-1,
|
|
41922
41927
|
-1
|
|
@@ -41928,25 +41933,25 @@ class fn extends M {
|
|
|
41928
41933
|
}, this.getInitialState(e));
|
|
41929
41934
|
}
|
|
41930
41935
|
}
|
|
41931
|
-
class
|
|
41936
|
+
class ce extends Yi {
|
|
41932
41937
|
connectedCallback() {
|
|
41933
41938
|
return S(this, null, function* () {
|
|
41934
|
-
const e =
|
|
41939
|
+
const e = ni(this.props, B, this);
|
|
41935
41940
|
e.element = this, e.ref = (n) => {
|
|
41936
41941
|
this.component = n;
|
|
41937
|
-
}, yield
|
|
41942
|
+
}, yield Z(e), !this.disconnected && Ye(/* @__PURE__ */ l(un, j({}, e)), this.shadowRoot);
|
|
41938
41943
|
});
|
|
41939
41944
|
}
|
|
41940
41945
|
constructor(e) {
|
|
41941
41946
|
super(e, {
|
|
41942
|
-
styles: /* @__PURE__ */
|
|
41947
|
+
styles: /* @__PURE__ */ Re(ti)
|
|
41943
41948
|
});
|
|
41944
41949
|
}
|
|
41945
41950
|
}
|
|
41946
|
-
C(
|
|
41947
|
-
typeof customElements != "undefined" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker",
|
|
41948
|
-
var
|
|
41949
|
-
|
|
41951
|
+
C(ce, "Props", B);
|
|
41952
|
+
typeof customElements != "undefined" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker", ce);
|
|
41953
|
+
var ti = {};
|
|
41954
|
+
ti = `:host {
|
|
41950
41955
|
width: min-content;
|
|
41951
41956
|
height: 435px;
|
|
41952
41957
|
min-height: 230px;
|
|
@@ -42662,19 +42667,68 @@ button {
|
|
|
42662
42667
|
}
|
|
42663
42668
|
|
|
42664
42669
|
`;
|
|
42665
|
-
function
|
|
42666
|
-
const e =
|
|
42667
|
-
return n.current && n.current.update(i),
|
|
42670
|
+
function cn(i) {
|
|
42671
|
+
const e = fe(null), n = fe(null);
|
|
42672
|
+
return n.current && n.current.update(i), mi(() => (n.current = new ce(Q(j({}, i), {
|
|
42668
42673
|
ref: e
|
|
42669
42674
|
})), () => {
|
|
42670
42675
|
n.current = null;
|
|
42671
|
-
}), []), /* @__PURE__ */
|
|
42676
|
+
}), []), /* @__PURE__ */ z.createElement("div", {
|
|
42672
42677
|
ref: e
|
|
42673
42678
|
});
|
|
42674
42679
|
}
|
|
42675
|
-
|
|
42676
|
-
|
|
42680
|
+
const vn = (i) => /* @__PURE__ */ X.createElement("svg", j({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, i), /* @__PURE__ */ X.createElement("path", { d: "M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10" }), /* @__PURE__ */ X.createElement("path", { d: "M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0" }));
|
|
42681
|
+
function bn(i) {
|
|
42682
|
+
const e = wi(), n = fe(null), a = (s) => {
|
|
42683
|
+
hi.insertText(e, s.native);
|
|
42684
|
+
};
|
|
42685
|
+
return /* @__PURE__ */ z.createElement(
|
|
42686
|
+
ki,
|
|
42687
|
+
{
|
|
42688
|
+
trigger: "click",
|
|
42689
|
+
triggerProps: {
|
|
42690
|
+
style: {
|
|
42691
|
+
maxWidth: 500
|
|
42692
|
+
},
|
|
42693
|
+
popupStyle: { padding: "0px" }
|
|
42694
|
+
},
|
|
42695
|
+
getPopupContainer: (s) => Array.from(document.querySelectorAll(".RichTextBar")).find(
|
|
42696
|
+
(f) => f.contains(s)
|
|
42697
|
+
),
|
|
42698
|
+
content: /* @__PURE__ */ z.createElement("div", { style: { height: 300 } }, /* @__PURE__ */ z.createElement(
|
|
42699
|
+
cn,
|
|
42700
|
+
Q(j({
|
|
42701
|
+
previewPosition: "none",
|
|
42702
|
+
data: Ci
|
|
42703
|
+
}, i), {
|
|
42704
|
+
onEmojiSelect: a
|
|
42705
|
+
})
|
|
42706
|
+
))
|
|
42707
|
+
},
|
|
42708
|
+
/* @__PURE__ */ z.createElement(gi, { content: _i("Emoji") }, /* @__PURE__ */ z.createElement("span", { ref: n, className: ke("formatButton") }, /* @__PURE__ */ z.createElement(
|
|
42709
|
+
"span",
|
|
42710
|
+
{
|
|
42711
|
+
className: ke("iconfont"),
|
|
42712
|
+
style: {
|
|
42713
|
+
display: "flex",
|
|
42714
|
+
alignItems: "center",
|
|
42715
|
+
justifyContent: "center",
|
|
42716
|
+
height: "16px",
|
|
42717
|
+
textAlign: "center",
|
|
42718
|
+
fontSize: "16px",
|
|
42719
|
+
borderRadius: "2px",
|
|
42720
|
+
width: "16px",
|
|
42721
|
+
boxSizing: "border-box",
|
|
42722
|
+
fontWeight: "500",
|
|
42723
|
+
borderWidth: "1px",
|
|
42724
|
+
borderStyle: "solid",
|
|
42725
|
+
overflow: "hidden"
|
|
42726
|
+
}
|
|
42727
|
+
},
|
|
42728
|
+
/* @__PURE__ */ z.createElement(vn, null)
|
|
42729
|
+
)))
|
|
42730
|
+
);
|
|
42677
42731
|
}
|
|
42678
42732
|
export {
|
|
42679
|
-
|
|
42733
|
+
bn as EmojiPlugin
|
|
42680
42734
|
};
|