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