easy-email-pro-plugins 1.11.1 → 1.12.0
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 +285 -284
- 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 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
|
-
}, Q = (i, e) =>
|
|
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,12 +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
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
|
|
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 = [
|
|
35
36
|
{
|
|
36
37
|
id: "people",
|
|
37
38
|
emojis: [
|
|
@@ -1921,7 +1922,7 @@ const _i = [
|
|
|
1921
1922
|
"waving_white_flag"
|
|
1922
1923
|
]
|
|
1923
1924
|
}
|
|
1924
|
-
],
|
|
1925
|
+
], yi = {
|
|
1925
1926
|
100: {
|
|
1926
1927
|
id: "100",
|
|
1927
1928
|
name: "Hundred Points",
|
|
@@ -39535,7 +39536,7 @@ const _i = [
|
|
|
39535
39536
|
],
|
|
39536
39537
|
version: 5
|
|
39537
39538
|
}
|
|
39538
|
-
},
|
|
39539
|
+
}, pi = {
|
|
39539
39540
|
satisfied: "laughing",
|
|
39540
39541
|
grinning_face_with_star_eyes: "star-struck",
|
|
39541
39542
|
grinning_face_with_one_large_and_one_small_eye: "zany_face",
|
|
@@ -39597,16 +39598,16 @@ const _i = [
|
|
|
39597
39598
|
"flag-kr": "kr",
|
|
39598
39599
|
"flag-ru": "ru",
|
|
39599
39600
|
"flag-us": "us"
|
|
39600
|
-
},
|
|
39601
|
+
}, xi = {
|
|
39601
39602
|
cols: 61,
|
|
39602
39603
|
rows: 61
|
|
39603
|
-
},
|
|
39604
|
-
categories:
|
|
39605
|
-
emojis:
|
|
39606
|
-
aliases:
|
|
39607
|
-
sheet:
|
|
39604
|
+
}, Ci = {
|
|
39605
|
+
categories: bi,
|
|
39606
|
+
emojis: yi,
|
|
39607
|
+
aliases: pi,
|
|
39608
|
+
sheet: xi
|
|
39608
39609
|
};
|
|
39609
|
-
function
|
|
39610
|
+
function Re(i) {
|
|
39610
39611
|
return i && i.__esModule ? i.default : i;
|
|
39611
39612
|
}
|
|
39612
39613
|
function C(i, e, n) {
|
|
@@ -39617,17 +39618,17 @@ function C(i, e, n) {
|
|
|
39617
39618
|
writable: !0
|
|
39618
39619
|
}) : i[e] = n, i;
|
|
39619
39620
|
}
|
|
39620
|
-
var Y, k,
|
|
39621
|
-
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) {
|
|
39622
39623
|
for (var n in e)
|
|
39623
39624
|
i[n] = e[n];
|
|
39624
39625
|
return i;
|
|
39625
39626
|
}
|
|
39626
|
-
function
|
|
39627
|
+
function Ie(i) {
|
|
39627
39628
|
var e = i.parentNode;
|
|
39628
39629
|
e && e.removeChild(i);
|
|
39629
39630
|
}
|
|
39630
|
-
function
|
|
39631
|
+
function se(i, e, n) {
|
|
39631
39632
|
var a, s, f, o = {};
|
|
39632
39633
|
for (f in e)
|
|
39633
39634
|
f == "key" ? a = e[f] : f == "ref" ? s = e[f] : o[f] = e[f];
|
|
@@ -39650,7 +39651,7 @@ function I(i, e, n, a, s) {
|
|
|
39650
39651
|
__c: null,
|
|
39651
39652
|
__h: null,
|
|
39652
39653
|
constructor: void 0,
|
|
39653
|
-
__v: s == null ? ++
|
|
39654
|
+
__v: s == null ? ++Ee : s
|
|
39654
39655
|
};
|
|
39655
39656
|
return s == null && k.vnode != null && k.vnode(f), f;
|
|
39656
39657
|
}
|
|
@@ -39659,21 +39660,21 @@ function $() {
|
|
|
39659
39660
|
current: null
|
|
39660
39661
|
};
|
|
39661
39662
|
}
|
|
39662
|
-
function
|
|
39663
|
+
function W(i) {
|
|
39663
39664
|
return i.children;
|
|
39664
39665
|
}
|
|
39665
39666
|
function M(i, e) {
|
|
39666
39667
|
this.props = i, this.context = e;
|
|
39667
39668
|
}
|
|
39668
|
-
function
|
|
39669
|
+
function T(i, e) {
|
|
39669
39670
|
if (e == null)
|
|
39670
|
-
return i.__ ?
|
|
39671
|
+
return i.__ ? T(i.__, i.__.__k.indexOf(i) + 1) : null;
|
|
39671
39672
|
for (var n; e < i.__k.length; e++)
|
|
39672
39673
|
if ((n = i.__k[e]) != null && n.__e != null)
|
|
39673
39674
|
return n.__e;
|
|
39674
|
-
return typeof i.type == "function" ?
|
|
39675
|
+
return typeof i.type == "function" ? T(i) : null;
|
|
39675
39676
|
}
|
|
39676
|
-
function
|
|
39677
|
+
function Oe(i) {
|
|
39677
39678
|
var e, n;
|
|
39678
39679
|
if ((i = i.__) != null && i.__c != null) {
|
|
39679
39680
|
for (i.__e = i.__c.base = null, e = 0; e < i.__k.length; e++)
|
|
@@ -39681,27 +39682,27 @@ function Ie(i) {
|
|
|
39681
39682
|
i.__e = i.__c.base = n.__e;
|
|
39682
39683
|
break;
|
|
39683
39684
|
}
|
|
39684
|
-
return
|
|
39685
|
+
return Oe(i);
|
|
39685
39686
|
}
|
|
39686
39687
|
}
|
|
39687
|
-
function
|
|
39688
|
-
(!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);
|
|
39689
39690
|
}
|
|
39690
39691
|
function N() {
|
|
39691
|
-
for (var i; N.__r =
|
|
39692
|
-
i =
|
|
39692
|
+
for (var i; N.__r = L.length; )
|
|
39693
|
+
i = L.sort(function(e, n) {
|
|
39693
39694
|
return e.__v.__b - n.__v.__b;
|
|
39694
|
-
}),
|
|
39695
|
+
}), L = [], i.some(function(e) {
|
|
39695
39696
|
var n, a, s, f, o, d;
|
|
39696
|
-
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 ? [
|
|
39697
39698
|
o
|
|
39698
|
-
] : null, a, o == null ?
|
|
39699
|
+
] : null, a, o == null ? T(f) : o, f.__h), Ue(a, f), f.__e != o && Oe(f)));
|
|
39699
39700
|
});
|
|
39700
39701
|
}
|
|
39701
|
-
function
|
|
39702
|
-
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;
|
|
39703
39704
|
for (n.__k = [], r = 0; r < e.length; r++)
|
|
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(
|
|
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, {
|
|
39705
39706
|
children: m
|
|
39706
39707
|
}, null, null, null) : m.__b > 0 ? I(m.type, m.props, m.key, null, m.__v) : m) != null) {
|
|
39707
39708
|
if (m.__ = n, m.__b = n.__b + 1, (c = b[r]) === null || c && m.key == c.key && m.type === c.type)
|
|
@@ -39714,17 +39715,17 @@ function Oe(i, e, n, a, s, f, o, d, t, u) {
|
|
|
39714
39715
|
}
|
|
39715
39716
|
c = null;
|
|
39716
39717
|
}
|
|
39717
|
-
|
|
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));
|
|
39718
39719
|
}
|
|
39719
39720
|
for (n.__e = _, r = x; r--; )
|
|
39720
|
-
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]));
|
|
39721
39722
|
if (w)
|
|
39722
39723
|
for (r = 0; r < w.length; r++)
|
|
39723
|
-
|
|
39724
|
+
Ke(w[r], w[++r], w[++r]);
|
|
39724
39725
|
}
|
|
39725
|
-
function
|
|
39726
|
+
function Ne(i, e, n) {
|
|
39726
39727
|
for (var a, s = i.__k, f = 0; s && f < s.length; f++)
|
|
39727
|
-
(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));
|
|
39728
39729
|
return e;
|
|
39729
39730
|
}
|
|
39730
39731
|
function V(i, e) {
|
|
@@ -39732,7 +39733,7 @@ function V(i, e) {
|
|
|
39732
39733
|
V(n, e);
|
|
39733
39734
|
}) : e.push(i)), e;
|
|
39734
39735
|
}
|
|
39735
|
-
function
|
|
39736
|
+
function Ve(i, e, n, a, s, f) {
|
|
39736
39737
|
var o, d, t;
|
|
39737
39738
|
if (e.__d !== void 0)
|
|
39738
39739
|
o = e.__d, e.__d = void 0;
|
|
@@ -39748,15 +39749,15 @@ function Ne(i, e, n, a, s, f) {
|
|
|
39748
39749
|
}
|
|
39749
39750
|
return o !== void 0 ? o : s.nextSibling;
|
|
39750
39751
|
}
|
|
39751
|
-
function
|
|
39752
|
+
function Si(i, e, n, a, s) {
|
|
39752
39753
|
var f;
|
|
39753
39754
|
for (f in n)
|
|
39754
39755
|
f === "children" || f === "key" || f in e || U(i, f, null, n[f], a);
|
|
39755
39756
|
for (f in e)
|
|
39756
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);
|
|
39757
39758
|
}
|
|
39758
|
-
function
|
|
39759
|
-
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";
|
|
39760
39761
|
}
|
|
39761
39762
|
function U(i, e, n, a, s) {
|
|
39762
39763
|
var f;
|
|
@@ -39767,13 +39768,13 @@ function U(i, e, n, a, s) {
|
|
|
39767
39768
|
else {
|
|
39768
39769
|
if (typeof a == "string" && (i.style.cssText = a = ""), a)
|
|
39769
39770
|
for (e in a)
|
|
39770
|
-
n && e in n ||
|
|
39771
|
+
n && e in n || we(i.style, e, "");
|
|
39771
39772
|
if (n)
|
|
39772
39773
|
for (e in n)
|
|
39773
|
-
a && n[e] === a[e] ||
|
|
39774
|
+
a && n[e] === a[e] || we(i.style, e, n[e]);
|
|
39774
39775
|
}
|
|
39775
39776
|
else if (e[0] === "o" && e[1] === "n")
|
|
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 ?
|
|
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);
|
|
39777
39778
|
else if (e !== "dangerouslySetInnerHTML") {
|
|
39778
39779
|
if (s)
|
|
39779
39780
|
e = e.replace(/xlink[H:h]/, "h").replace(/sName$/, "s");
|
|
@@ -39786,14 +39787,14 @@ function U(i, e, n, a, s) {
|
|
|
39786
39787
|
typeof n == "function" || (n != null && (n !== !1 || e[0] === "a" && e[1] === "r") ? i.setAttribute(e, n) : i.removeAttribute(e));
|
|
39787
39788
|
}
|
|
39788
39789
|
}
|
|
39789
|
-
function
|
|
39790
|
+
function _e(i) {
|
|
39790
39791
|
this.l[i.type + !1](k.event ? k.event(i) : i);
|
|
39791
39792
|
}
|
|
39792
|
-
function
|
|
39793
|
+
function be(i) {
|
|
39793
39794
|
this.l[i.type + !0](k.event ? k.event(i) : i);
|
|
39794
39795
|
}
|
|
39795
|
-
function
|
|
39796
|
-
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;
|
|
39797
39798
|
if (e.constructor !== void 0)
|
|
39798
39799
|
return null;
|
|
39799
39800
|
n.__h != null && (t = n.__h, d = e.__e = n.__e, e.__h = null, f = [
|
|
@@ -39802,12 +39803,12 @@ function le(i, e, n, a, s, f, o, d, t) {
|
|
|
39802
39803
|
try {
|
|
39803
39804
|
e:
|
|
39804
39805
|
if (typeof F == "function") {
|
|
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 =
|
|
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)
|
|
39806
39807
|
F.getDerivedStateFromProps == null && r.componentWillMount != null && r.componentWillMount(), r.componentDidMount != null && r.__h.push(r.componentDidMount);
|
|
39807
39808
|
else {
|
|
39808
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) {
|
|
39809
|
-
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(
|
|
39810
|
-
|
|
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);
|
|
39811
39812
|
}), r.__h.length && o.push(r);
|
|
39812
39813
|
break e;
|
|
39813
39814
|
}
|
|
@@ -39815,17 +39816,17 @@ function le(i, e, n, a, s, f, o, d, t) {
|
|
|
39815
39816
|
r.componentDidUpdate(c, m, g);
|
|
39816
39817
|
});
|
|
39817
39818
|
}
|
|
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 =
|
|
39819
|
-
|
|
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
|
|
39820
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;
|
|
39821
39822
|
} else
|
|
39822
|
-
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);
|
|
39823
39824
|
(u = k.diffed) && u(e);
|
|
39824
|
-
} catch (
|
|
39825
|
-
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);
|
|
39826
39827
|
}
|
|
39827
39828
|
}
|
|
39828
|
-
function
|
|
39829
|
+
function Ue(i, e) {
|
|
39829
39830
|
k.__c && k.__c(e, i), i.some(function(n) {
|
|
39830
39831
|
try {
|
|
39831
39832
|
i = n.__h, n.__h = [], i.some(function(a) {
|
|
@@ -39836,7 +39837,7 @@ function Ve(i, e) {
|
|
|
39836
39837
|
}
|
|
39837
39838
|
});
|
|
39838
39839
|
}
|
|
39839
|
-
function
|
|
39840
|
+
function Mi(i, e, n, a, s, f, o, d) {
|
|
39840
39841
|
var t, u, r, v = n.props, c = e.props, m = e.type, g = 0;
|
|
39841
39842
|
if (m === "svg" && (s = !0), f != null) {
|
|
39842
39843
|
for (; g < f.length; g++)
|
|
@@ -39859,27 +39860,27 @@ function Si(i, e, n, a, s, f, o, d) {
|
|
|
39859
39860
|
v[i.attributes[g].name] = i.attributes[g].value;
|
|
39860
39861
|
(r || u) && (r && (u && r.__html == u.__html || r.__html === i.innerHTML) || (i.innerHTML = r && r.__html || ""));
|
|
39861
39862
|
}
|
|
39862
|
-
if (
|
|
39863
|
+
if (Si(i, c, v, s, d), r)
|
|
39863
39864
|
e.__k = [];
|
|
39864
|
-
else if (g = e.props.children,
|
|
39865
|
+
else if (g = e.props.children, Ge(i, Array.isArray(g) ? g : [
|
|
39865
39866
|
g
|
|
39866
|
-
], 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)
|
|
39867
39868
|
for (g = f.length; g--; )
|
|
39868
|
-
f[g] != null &&
|
|
39869
|
+
f[g] != null && Ie(f[g]);
|
|
39869
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));
|
|
39870
39871
|
}
|
|
39871
39872
|
return i;
|
|
39872
39873
|
}
|
|
39873
|
-
function
|
|
39874
|
+
function Ke(i, e, n) {
|
|
39874
39875
|
try {
|
|
39875
39876
|
typeof i == "function" ? i(e) : i.current = e;
|
|
39876
39877
|
} catch (a) {
|
|
39877
39878
|
k.__e(a, n);
|
|
39878
39879
|
}
|
|
39879
39880
|
}
|
|
39880
|
-
function
|
|
39881
|
+
function Je(i, e, n) {
|
|
39881
39882
|
var a, s;
|
|
39882
|
-
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) {
|
|
39883
39884
|
if (a.componentWillUnmount)
|
|
39884
39885
|
try {
|
|
39885
39886
|
a.componentWillUnmount();
|
|
@@ -39890,21 +39891,21 @@ function Ke(i, e, n) {
|
|
|
39890
39891
|
}
|
|
39891
39892
|
if (a = i.__k)
|
|
39892
39893
|
for (s = 0; s < a.length; s++)
|
|
39893
|
-
a[s] &&
|
|
39894
|
-
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;
|
|
39895
39896
|
}
|
|
39896
|
-
function
|
|
39897
|
+
function $i(i, e, n) {
|
|
39897
39898
|
return this.constructor(i, n);
|
|
39898
39899
|
}
|
|
39899
|
-
function
|
|
39900
|
+
function Ye(i, e, n) {
|
|
39900
39901
|
var a, s, f;
|
|
39901
|
-
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, [
|
|
39902
39903
|
i
|
|
39903
39904
|
]), s || G, G, e.ownerSVGElement !== void 0, !a && n ? [
|
|
39904
39905
|
n
|
|
39905
|
-
] : s ? null : e.firstChild ? Y.call(e.childNodes) : null, f, !a && n ? n : s ? s.__e : e.firstChild, a),
|
|
39906
|
+
] : s ? null : e.firstChild ? Y.call(e.childNodes) : null, f, !a && n ? n : s ? s.__e : e.firstChild, a), Ue(f, i);
|
|
39906
39907
|
}
|
|
39907
|
-
Y =
|
|
39908
|
+
Y = Ae.slice, k = {
|
|
39908
39909
|
__e: function(i, e) {
|
|
39909
39910
|
for (var n, a, s; e = e.__; )
|
|
39910
39911
|
if ((n = e.__c) && !n.__)
|
|
@@ -39916,13 +39917,13 @@ Y = Ee.slice, k = {
|
|
|
39916
39917
|
}
|
|
39917
39918
|
throw i;
|
|
39918
39919
|
}
|
|
39919
|
-
},
|
|
39920
|
+
}, Ee = 0, M.prototype.setState = function(i, e) {
|
|
39920
39921
|
var n;
|
|
39921
|
-
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));
|
|
39922
39923
|
}, M.prototype.forceUpdate = function(i) {
|
|
39923
|
-
this.__v && (this.__e = !0, i && this.__h.push(i),
|
|
39924
|
-
}, M.prototype.render =
|
|
39925
|
-
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;
|
|
39926
39927
|
function l(i, e, n, a, s) {
|
|
39927
39928
|
var f, o, d = {};
|
|
39928
39929
|
for (o in e)
|
|
@@ -39940,7 +39941,7 @@ function l(i, e, n, a, s) {
|
|
|
39940
39941
|
__c: null,
|
|
39941
39942
|
__h: null,
|
|
39942
39943
|
constructor: void 0,
|
|
39943
|
-
__v:
|
|
39944
|
+
__v: --Bi,
|
|
39944
39945
|
__source: a,
|
|
39945
39946
|
__self: s
|
|
39946
39947
|
};
|
|
@@ -39949,13 +39950,13 @@ function l(i, e, n, a, s) {
|
|
|
39949
39950
|
d[o] === void 0 && (d[o] = f[o]);
|
|
39950
39951
|
return k.vnode && k.vnode(t), t;
|
|
39951
39952
|
}
|
|
39952
|
-
function
|
|
39953
|
+
function ji(i, e) {
|
|
39953
39954
|
try {
|
|
39954
39955
|
window.localStorage[`emoji-mart.${i}`] = JSON.stringify(e);
|
|
39955
39956
|
} catch (n) {
|
|
39956
39957
|
}
|
|
39957
39958
|
}
|
|
39958
|
-
function
|
|
39959
|
+
function zi(i) {
|
|
39959
39960
|
try {
|
|
39960
39961
|
const e = window.localStorage[`emoji-mart.${i}`];
|
|
39961
39962
|
if (e)
|
|
@@ -39963,11 +39964,11 @@ function ji(i) {
|
|
|
39963
39964
|
} catch (e) {
|
|
39964
39965
|
}
|
|
39965
39966
|
}
|
|
39966
|
-
var
|
|
39967
|
-
set:
|
|
39968
|
-
get:
|
|
39967
|
+
var q = {
|
|
39968
|
+
set: ji,
|
|
39969
|
+
get: zi
|
|
39969
39970
|
};
|
|
39970
|
-
const
|
|
39971
|
+
const ee = /* @__PURE__ */ new Map(), Pi = [
|
|
39971
39972
|
{
|
|
39972
39973
|
v: 14,
|
|
39973
39974
|
emoji: "🫠"
|
|
@@ -40013,21 +40014,21 @@ const X = /* @__PURE__ */ new Map(), zi = [
|
|
|
40013
40014
|
emoji: "🙃"
|
|
40014
40015
|
}
|
|
40015
40016
|
];
|
|
40016
|
-
function
|
|
40017
|
-
for (const { v: i, emoji: e } of
|
|
40018
|
-
if (
|
|
40017
|
+
function qi() {
|
|
40018
|
+
for (const { v: i, emoji: e } of Pi)
|
|
40019
|
+
if (Ze(e))
|
|
40019
40020
|
return i;
|
|
40020
40021
|
}
|
|
40021
|
-
function
|
|
40022
|
-
return !
|
|
40022
|
+
function Hi() {
|
|
40023
|
+
return !Ze("🇨🇦");
|
|
40023
40024
|
}
|
|
40024
|
-
function
|
|
40025
|
-
if (
|
|
40026
|
-
return
|
|
40027
|
-
const e =
|
|
40028
|
-
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;
|
|
40029
40030
|
}
|
|
40030
|
-
const
|
|
40031
|
+
const Wi = (() => {
|
|
40031
40032
|
let i = null;
|
|
40032
40033
|
try {
|
|
40033
40034
|
navigator.userAgent.includes("jsdom") || (i = document.createElement("canvas").getContext("2d", {
|
|
@@ -40050,11 +40051,11 @@ const Ti = (() => {
|
|
|
40050
40051
|
return !(f[d] !== r[0] || f[d + 2] !== r[2] || i.measureText(s).width >= n);
|
|
40051
40052
|
};
|
|
40052
40053
|
})();
|
|
40053
|
-
var
|
|
40054
|
-
latestVersion:
|
|
40055
|
-
noCountryFlags:
|
|
40054
|
+
var ye = {
|
|
40055
|
+
latestVersion: qi,
|
|
40056
|
+
noCountryFlags: Hi
|
|
40056
40057
|
};
|
|
40057
|
-
const
|
|
40058
|
+
const oe = [
|
|
40058
40059
|
"+1",
|
|
40059
40060
|
"grinning",
|
|
40060
40061
|
"kissing_heart",
|
|
@@ -40072,25 +40073,25 @@ const se = [
|
|
|
40072
40073
|
"heart"
|
|
40073
40074
|
];
|
|
40074
40075
|
let y = null;
|
|
40075
|
-
function
|
|
40076
|
-
y || (y =
|
|
40076
|
+
function Ti(i) {
|
|
40077
|
+
y || (y = q.get("frequently") || {});
|
|
40077
40078
|
const e = i.id || i;
|
|
40078
|
-
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));
|
|
40079
40080
|
}
|
|
40080
|
-
function
|
|
40081
|
+
function Li({ maxFrequentRows: i, perLine: e }) {
|
|
40081
40082
|
if (!i)
|
|
40082
40083
|
return [];
|
|
40083
|
-
y || (y =
|
|
40084
|
+
y || (y = q.get("frequently"));
|
|
40084
40085
|
let n = [];
|
|
40085
40086
|
if (!y) {
|
|
40086
40087
|
y = {};
|
|
40087
|
-
for (let f in
|
|
40088
|
-
const o =
|
|
40088
|
+
for (let f in oe.slice(0, e)) {
|
|
40089
|
+
const o = oe[f];
|
|
40089
40090
|
y[o] = e - f, n.push(o);
|
|
40090
40091
|
}
|
|
40091
40092
|
return n;
|
|
40092
40093
|
}
|
|
40093
|
-
const a = i * e, s =
|
|
40094
|
+
const a = i * e, s = q.get("last");
|
|
40094
40095
|
for (let f in y)
|
|
40095
40096
|
n.push(f);
|
|
40096
40097
|
if (n.sort((f, o) => {
|
|
@@ -40101,16 +40102,16 @@ function Di({ maxFrequentRows: i, perLine: e }) {
|
|
|
40101
40102
|
n = n.slice(0, a);
|
|
40102
40103
|
for (let o of f)
|
|
40103
40104
|
o != s && delete y[o];
|
|
40104
|
-
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);
|
|
40105
40106
|
}
|
|
40106
40107
|
return n;
|
|
40107
40108
|
}
|
|
40108
|
-
var
|
|
40109
|
-
add:
|
|
40110
|
-
get:
|
|
40111
|
-
DEFAULTS:
|
|
40112
|
-
},
|
|
40113
|
-
|
|
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"}}');
|
|
40114
40115
|
var B = {
|
|
40115
40116
|
autoFocus: {
|
|
40116
40117
|
value: !1
|
|
@@ -40279,29 +40280,29 @@ var B = {
|
|
|
40279
40280
|
}
|
|
40280
40281
|
};
|
|
40281
40282
|
let p = null, h = null;
|
|
40282
|
-
const
|
|
40283
|
-
function
|
|
40283
|
+
const ie = {};
|
|
40284
|
+
function pe(i) {
|
|
40284
40285
|
return S(this, null, function* () {
|
|
40285
|
-
if (
|
|
40286
|
-
return
|
|
40286
|
+
if (ie[i])
|
|
40287
|
+
return ie[i];
|
|
40287
40288
|
const n = yield (yield fetch(i)).json();
|
|
40288
|
-
return
|
|
40289
|
+
return ie[i] = n, n;
|
|
40289
40290
|
});
|
|
40290
40291
|
}
|
|
40291
|
-
let
|
|
40292
|
+
let ne = null, ei = null, ii = !1;
|
|
40292
40293
|
function Z(i, { caller: e } = {}) {
|
|
40293
|
-
return
|
|
40294
|
-
|
|
40295
|
-
})), i ?
|
|
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;
|
|
40296
40297
|
}
|
|
40297
|
-
function
|
|
40298
|
+
function Ri(i) {
|
|
40298
40299
|
return S(this, null, function* () {
|
|
40299
|
-
|
|
40300
|
+
ii = !0;
|
|
40300
40301
|
let { emojiVersion: e, set: n, locale: a } = i;
|
|
40301
40302
|
if (e || (e = B.emojiVersion.value), n || (n = B.set.value), a || (a = B.locale.value), h)
|
|
40302
40303
|
h.categories = h.categories.filter((t) => !t.name);
|
|
40303
40304
|
else {
|
|
40304
|
-
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({
|
|
40305
40306
|
id: "frequent",
|
|
40306
40307
|
emojis: []
|
|
40307
40308
|
});
|
|
@@ -40311,7 +40312,7 @@ function Wi(i) {
|
|
|
40311
40312
|
}
|
|
40312
40313
|
h.originalCategories = h.categories;
|
|
40313
40314
|
}
|
|
40314
|
-
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)
|
|
40315
40316
|
for (let t in i.custom) {
|
|
40316
40317
|
t = parseInt(t);
|
|
40317
40318
|
const u = i.custom[t], r = i.custom[t - 1];
|
|
@@ -40326,13 +40327,13 @@ function Wi(i) {
|
|
|
40326
40327
|
return r - v;
|
|
40327
40328
|
}));
|
|
40328
40329
|
let s = null, f = null;
|
|
40329
|
-
n == "native" && (s =
|
|
40330
|
+
n == "native" && (s = ye.latestVersion(), f = i.noCountryFlags || ye.noCountryFlags());
|
|
40330
40331
|
let o = h.categories.length, d = !1;
|
|
40331
40332
|
for (; o--; ) {
|
|
40332
40333
|
const t = h.categories[o];
|
|
40333
40334
|
if (t.id == "frequent") {
|
|
40334
40335
|
let { maxFrequentRows: v, perLine: c } = i;
|
|
40335
|
-
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({
|
|
40336
40337
|
maxFrequentRows: v,
|
|
40337
40338
|
perLine: c
|
|
40338
40339
|
});
|
|
@@ -40359,7 +40360,7 @@ function Wi(i) {
|
|
|
40359
40360
|
m();
|
|
40360
40361
|
continue;
|
|
40361
40362
|
}
|
|
40362
|
-
if (f && t.id == "flags" && !
|
|
40363
|
+
if (f && t.id == "flags" && !Oi.includes(c.id)) {
|
|
40363
40364
|
m();
|
|
40364
40365
|
continue;
|
|
40365
40366
|
}
|
|
@@ -40404,30 +40405,30 @@ function Wi(i) {
|
|
|
40404
40405
|
}
|
|
40405
40406
|
}
|
|
40406
40407
|
}
|
|
40407
|
-
d &&
|
|
40408
|
+
d && H.reset(), ei();
|
|
40408
40409
|
});
|
|
40409
40410
|
}
|
|
40410
|
-
function
|
|
40411
|
+
function ni(i, e, n) {
|
|
40411
40412
|
i || (i = {});
|
|
40412
40413
|
const a = {};
|
|
40413
40414
|
for (let s in e)
|
|
40414
|
-
a[s] =
|
|
40415
|
+
a[s] = ai(s, i, e, n);
|
|
40415
40416
|
return a;
|
|
40416
40417
|
}
|
|
40417
|
-
function
|
|
40418
|
+
function ai(i, e, n, a) {
|
|
40418
40419
|
const s = n[i];
|
|
40419
40420
|
let f = a && a.getAttribute(i) || (e[i] != null && e[i] != null ? e[i] : null);
|
|
40420
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;
|
|
40421
40422
|
}
|
|
40422
|
-
const
|
|
40423
|
-
let
|
|
40424
|
-
function
|
|
40423
|
+
const Ei = /^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/;
|
|
40424
|
+
let re = null;
|
|
40425
|
+
function Di(i) {
|
|
40425
40426
|
return i.id ? i : h.emojis[i] || h.emojis[h.aliases[i]] || h.emojis[h.natives[i]];
|
|
40426
40427
|
}
|
|
40427
|
-
function
|
|
40428
|
-
|
|
40428
|
+
function Ai() {
|
|
40429
|
+
re = null;
|
|
40429
40430
|
}
|
|
40430
|
-
function
|
|
40431
|
+
function Ii(a) {
|
|
40431
40432
|
return S(this, arguments, function* (i, { maxResults: e, caller: n } = {}) {
|
|
40432
40433
|
if (!i || !i.trim().length)
|
|
40433
40434
|
return null;
|
|
@@ -40437,7 +40438,7 @@ function Ai(a) {
|
|
|
40437
40438
|
const s = i.toLowerCase().replace(/(\w)-/, "$1 ").split(/[\s|,]+/).filter((t, u, r) => t.trim() && r.indexOf(t) == u);
|
|
40438
40439
|
if (!s.length)
|
|
40439
40440
|
return;
|
|
40440
|
-
let f =
|
|
40441
|
+
let f = re || (re = Object.values(h.emojis)), o, d;
|
|
40441
40442
|
for (const t of s) {
|
|
40442
40443
|
if (!f.length)
|
|
40443
40444
|
break;
|
|
@@ -40456,13 +40457,13 @@ function Ai(a) {
|
|
|
40456
40457
|
}), o.length > e && (o = o.slice(0, e))), o;
|
|
40457
40458
|
});
|
|
40458
40459
|
}
|
|
40459
|
-
var
|
|
40460
|
-
search:
|
|
40461
|
-
get:
|
|
40462
|
-
reset:
|
|
40463
|
-
SHORTCODES_REGEX:
|
|
40460
|
+
var H = {
|
|
40461
|
+
search: Ii,
|
|
40462
|
+
get: Di,
|
|
40463
|
+
reset: Ai,
|
|
40464
|
+
SHORTCODES_REGEX: Ei
|
|
40464
40465
|
};
|
|
40465
|
-
const
|
|
40466
|
+
const Oi = [
|
|
40466
40467
|
"checkered_flag",
|
|
40467
40468
|
"crossed_flags",
|
|
40468
40469
|
"pirate_flag",
|
|
@@ -40472,10 +40473,10 @@ const Ii = [
|
|
|
40472
40473
|
"waving_black_flag",
|
|
40473
40474
|
"waving_white_flag"
|
|
40474
40475
|
];
|
|
40475
|
-
function
|
|
40476
|
+
function Gi(i, e) {
|
|
40476
40477
|
return Array.isArray(i) && Array.isArray(e) && i.length === e.length && i.every((n, a) => n == e[a]);
|
|
40477
40478
|
}
|
|
40478
|
-
function
|
|
40479
|
+
function Ni(i = 1) {
|
|
40479
40480
|
return S(this, null, function* () {
|
|
40480
40481
|
for (let e in [
|
|
40481
40482
|
...Array(i).keys()
|
|
@@ -40483,7 +40484,7 @@ function Gi(i = 1) {
|
|
|
40483
40484
|
yield new Promise(requestAnimationFrame);
|
|
40484
40485
|
});
|
|
40485
40486
|
}
|
|
40486
|
-
function
|
|
40487
|
+
function Vi(i, { skinIndex: e = 0 } = {}) {
|
|
40487
40488
|
const n = i.skins[e] || (() => (e = 0, i.skins[e]))(), a = {
|
|
40488
40489
|
id: i.id,
|
|
40489
40490
|
name: i.name,
|
|
@@ -40494,7 +40495,7 @@ function Ni(i, { skinIndex: e = 0 } = {}) {
|
|
|
40494
40495
|
};
|
|
40495
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;
|
|
40496
40497
|
}
|
|
40497
|
-
const
|
|
40498
|
+
const Ui = {
|
|
40498
40499
|
activity: {
|
|
40499
40500
|
outline: /* @__PURE__ */ l("svg", {
|
|
40500
40501
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -40671,7 +40672,7 @@ const Vi = {
|
|
|
40671
40672
|
})
|
|
40672
40673
|
})
|
|
40673
40674
|
}
|
|
40674
|
-
},
|
|
40675
|
+
}, Ki = {
|
|
40675
40676
|
loupe: /* @__PURE__ */ l("svg", {
|
|
40676
40677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
40677
40678
|
viewBox: "0 0 20 20",
|
|
@@ -40688,16 +40689,16 @@ const Vi = {
|
|
|
40688
40689
|
})
|
|
40689
40690
|
};
|
|
40690
40691
|
var K = {
|
|
40691
|
-
categories:
|
|
40692
|
-
search:
|
|
40692
|
+
categories: Ui,
|
|
40693
|
+
search: Ki
|
|
40693
40694
|
};
|
|
40694
|
-
function
|
|
40695
|
+
function te(i) {
|
|
40695
40696
|
let { id: e, skin: n, emoji: a } = i;
|
|
40696
40697
|
if (i.shortcodes) {
|
|
40697
|
-
const d = i.shortcodes.match(
|
|
40698
|
+
const d = i.shortcodes.match(H.SHORTCODES_REGEX);
|
|
40698
40699
|
d && (e = d[1], d[2] && (n = d[2]));
|
|
40699
40700
|
}
|
|
40700
|
-
if (a || (a =
|
|
40701
|
+
if (a || (a = H.get(e || i.native)), !a)
|
|
40701
40702
|
return i.fallback;
|
|
40702
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`;
|
|
40703
40704
|
return /* @__PURE__ */ l("span", {
|
|
@@ -40729,8 +40730,8 @@ function re(i) {
|
|
|
40729
40730
|
})
|
|
40730
40731
|
});
|
|
40731
40732
|
}
|
|
40732
|
-
const
|
|
40733
|
-
class
|
|
40733
|
+
const Ji = typeof window != "undefined" && window.HTMLElement ? window.HTMLElement : Object;
|
|
40734
|
+
class fi extends Ji {
|
|
40734
40735
|
static get observedAttributes() {
|
|
40735
40736
|
return Object.keys(this.Props);
|
|
40736
40737
|
}
|
|
@@ -40741,7 +40742,7 @@ class ai extends Ki {
|
|
|
40741
40742
|
attributeChangedCallback(e, n, a) {
|
|
40742
40743
|
if (!this.component)
|
|
40743
40744
|
return;
|
|
40744
|
-
const s =
|
|
40745
|
+
const s = ai(e, {
|
|
40745
40746
|
[e]: a
|
|
40746
40747
|
}, this.constructor.Props, this);
|
|
40747
40748
|
this.component.componentWillReceiveProps ? this.component.componentWillReceiveProps({
|
|
@@ -40759,7 +40760,7 @@ class ai extends Ki {
|
|
|
40759
40760
|
}
|
|
40760
40761
|
}
|
|
40761
40762
|
}
|
|
40762
|
-
class
|
|
40763
|
+
class Yi extends fi {
|
|
40763
40764
|
setShadow() {
|
|
40764
40765
|
this.attachShadow({
|
|
40765
40766
|
mode: "open"
|
|
@@ -40775,7 +40776,7 @@ class Ji extends ai {
|
|
|
40775
40776
|
super(e), this.setShadow(), this.injectStyles(n);
|
|
40776
40777
|
}
|
|
40777
40778
|
}
|
|
40778
|
-
var
|
|
40779
|
+
var si = {
|
|
40779
40780
|
fallback: "",
|
|
40780
40781
|
id: "",
|
|
40781
40782
|
native: "",
|
|
@@ -40788,63 +40789,63 @@ var fi = {
|
|
|
40788
40789
|
set: B.set,
|
|
40789
40790
|
skin: B.skin
|
|
40790
40791
|
};
|
|
40791
|
-
class
|
|
40792
|
+
class oi extends fi {
|
|
40792
40793
|
connectedCallback() {
|
|
40793
40794
|
return S(this, null, function* () {
|
|
40794
|
-
const e =
|
|
40795
|
+
const e = ni(this.props, si, this);
|
|
40795
40796
|
e.element = this, e.ref = (n) => {
|
|
40796
40797
|
this.component = n;
|
|
40797
|
-
}, yield Z(), !this.disconnected &&
|
|
40798
|
+
}, yield Z(), !this.disconnected && Ye(/* @__PURE__ */ l(te, j({}, e)), this);
|
|
40798
40799
|
});
|
|
40799
40800
|
}
|
|
40800
40801
|
constructor(e) {
|
|
40801
40802
|
super(e);
|
|
40802
40803
|
}
|
|
40803
40804
|
}
|
|
40804
|
-
C(
|
|
40805
|
-
typeof customElements != "undefined" && !customElements.get("em-emoji") && customElements.define("em-emoji",
|
|
40806
|
-
var
|
|
40807
|
-
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() {
|
|
40808
40809
|
var i;
|
|
40809
|
-
for (
|
|
40810
|
+
for (de.sort(function(e, n) {
|
|
40810
40811
|
return e.__v.__b - n.__v.__b;
|
|
40811
|
-
}); i =
|
|
40812
|
+
}); i = de.pop(); )
|
|
40812
40813
|
if (i.__P)
|
|
40813
40814
|
try {
|
|
40814
|
-
i.__H.__h.forEach(O), i.__H.__h.forEach(
|
|
40815
|
+
i.__H.__h.forEach(O), i.__H.__h.forEach(le), i.__H.__h = [];
|
|
40815
40816
|
} catch (e) {
|
|
40816
40817
|
i.__H.__h = [], k.__e(e, i.__v);
|
|
40817
40818
|
}
|
|
40818
40819
|
}
|
|
40819
40820
|
k.__b = function(i) {
|
|
40820
|
-
xe && xe(i);
|
|
40821
|
-
}, k.__r = function(i) {
|
|
40822
40821
|
Ce && Ce(i);
|
|
40822
|
+
}, k.__r = function(i) {
|
|
40823
|
+
Fe && Fe(i);
|
|
40823
40824
|
var e = i.__c.__H;
|
|
40824
|
-
e && (e.__h.forEach(O), e.__h.forEach(
|
|
40825
|
+
e && (e.__h.forEach(O), e.__h.forEach(le), e.__h = []);
|
|
40825
40826
|
}, k.diffed = function(i) {
|
|
40826
|
-
|
|
40827
|
+
Se && Se(i);
|
|
40827
40828
|
var e = i.__c;
|
|
40828
|
-
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) {
|
|
40829
40830
|
var a, s = function() {
|
|
40830
|
-
clearTimeout(f),
|
|
40831
|
+
clearTimeout(f), Be && cancelAnimationFrame(a), setTimeout(n);
|
|
40831
40832
|
}, f = setTimeout(s, 100);
|
|
40832
|
-
|
|
40833
|
-
})(
|
|
40833
|
+
Be && (a = requestAnimationFrame(s));
|
|
40834
|
+
})(Zi));
|
|
40834
40835
|
}, k.__c = function(i, e) {
|
|
40835
40836
|
e.some(function(n) {
|
|
40836
40837
|
try {
|
|
40837
40838
|
n.__h.forEach(O), n.__h = n.__h.filter(function(a) {
|
|
40838
|
-
return !a.__ ||
|
|
40839
|
+
return !a.__ || le(a);
|
|
40839
40840
|
});
|
|
40840
40841
|
} catch (a) {
|
|
40841
40842
|
e.some(function(s) {
|
|
40842
40843
|
s.__h && (s.__h = []);
|
|
40843
40844
|
}), e = [], k.__e(a, n.__v);
|
|
40844
40845
|
}
|
|
40845
|
-
}),
|
|
40846
|
+
}), Me && Me(i, e);
|
|
40846
40847
|
}, k.unmount = function(i) {
|
|
40847
|
-
|
|
40848
|
+
$e && $e(i);
|
|
40848
40849
|
var e, n = i.__c;
|
|
40849
40850
|
n && n.__H && (n.__H.__.forEach(function(a) {
|
|
40850
40851
|
try {
|
|
@@ -40854,20 +40855,20 @@ k.__b = function(i) {
|
|
|
40854
40855
|
}
|
|
40855
40856
|
}), e && k.__e(e, n.__v));
|
|
40856
40857
|
};
|
|
40857
|
-
var
|
|
40858
|
+
var Be = typeof requestAnimationFrame == "function";
|
|
40858
40859
|
function O(i) {
|
|
40859
40860
|
var e = i.__c;
|
|
40860
40861
|
typeof e == "function" && (i.__c = void 0, e());
|
|
40861
40862
|
}
|
|
40862
|
-
function
|
|
40863
|
+
function le(i) {
|
|
40863
40864
|
i.__c = i.__();
|
|
40864
40865
|
}
|
|
40865
|
-
function
|
|
40866
|
+
function Qi(i, e) {
|
|
40866
40867
|
for (var n in e)
|
|
40867
40868
|
i[n] = e[n];
|
|
40868
40869
|
return i;
|
|
40869
40870
|
}
|
|
40870
|
-
function
|
|
40871
|
+
function je(i, e) {
|
|
40871
40872
|
for (var n in i)
|
|
40872
40873
|
if (n !== "__source" && !(n in e))
|
|
40873
40874
|
return !0;
|
|
@@ -40880,39 +40881,39 @@ function J(i) {
|
|
|
40880
40881
|
this.props = i;
|
|
40881
40882
|
}
|
|
40882
40883
|
(J.prototype = new M()).isPureReactComponent = !0, J.prototype.shouldComponentUpdate = function(i, e) {
|
|
40883
|
-
return
|
|
40884
|
+
return je(this.props, i) || je(this.state, e);
|
|
40884
40885
|
};
|
|
40885
|
-
var
|
|
40886
|
+
var ze = k.__b;
|
|
40886
40887
|
k.__b = function(i) {
|
|
40887
|
-
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);
|
|
40888
40889
|
};
|
|
40889
|
-
var
|
|
40890
|
+
var Xi = k.__e;
|
|
40890
40891
|
k.__e = function(i, e, n) {
|
|
40891
40892
|
if (i.then) {
|
|
40892
40893
|
for (var a, s = e; s = s.__; )
|
|
40893
40894
|
if ((a = s.__c) && a.__c)
|
|
40894
40895
|
return e.__e == null && (e.__e = n.__e, e.__k = n.__k), a.__c(i, e);
|
|
40895
40896
|
}
|
|
40896
|
-
|
|
40897
|
+
Xi(i, e, n);
|
|
40897
40898
|
};
|
|
40898
|
-
var
|
|
40899
|
-
function
|
|
40899
|
+
var Pe = k.unmount;
|
|
40900
|
+
function ae() {
|
|
40900
40901
|
this.__u = 0, this.t = null, this.__b = null;
|
|
40901
40902
|
}
|
|
40902
|
-
function
|
|
40903
|
+
function ri(i) {
|
|
40903
40904
|
var e = i.__.__c;
|
|
40904
40905
|
return e && e.__e && e.__e(i);
|
|
40905
40906
|
}
|
|
40906
|
-
function
|
|
40907
|
+
function D() {
|
|
40907
40908
|
this.u = null, this.o = null;
|
|
40908
40909
|
}
|
|
40909
40910
|
k.unmount = function(i) {
|
|
40910
40911
|
var e = i.__c;
|
|
40911
|
-
e && e.__R && e.__R(), e && i.__h === !0 && (i.type = null),
|
|
40912
|
-
}, (
|
|
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) {
|
|
40913
40914
|
var n = e.__c, a = this;
|
|
40914
40915
|
a.t == null && (a.t = []), a.t.push(n);
|
|
40915
|
-
var s =
|
|
40916
|
+
var s = ri(a.__v), f = !1, o = function() {
|
|
40916
40917
|
f || (f = !0, n.__R = null, s ? s(d) : d());
|
|
40917
40918
|
};
|
|
40918
40919
|
n.__R = o;
|
|
@@ -40936,29 +40937,29 @@ k.unmount = function(i) {
|
|
|
40936
40937
|
a.__u++ || t || a.setState({
|
|
40937
40938
|
__e: a.__b = a.__v.__k[0]
|
|
40938
40939
|
}), i.then(o, o);
|
|
40939
|
-
},
|
|
40940
|
+
}, ae.prototype.componentWillUnmount = function() {
|
|
40940
40941
|
this.t = [];
|
|
40941
|
-
},
|
|
40942
|
+
}, ae.prototype.render = function(i, e) {
|
|
40942
40943
|
if (this.__b) {
|
|
40943
40944
|
if (this.__v.__k) {
|
|
40944
40945
|
var n = document.createElement("div"), a = this.__v.__k[0].__c;
|
|
40945
40946
|
this.__v.__k[0] = function f(o, d, t) {
|
|
40946
40947
|
return o && (o.__c && o.__c.__H && (o.__c.__H.__.forEach(function(u) {
|
|
40947
40948
|
typeof u.__c == "function" && u.__c();
|
|
40948
|
-
}), 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) {
|
|
40949
40950
|
return f(u, d, t);
|
|
40950
40951
|
})), o;
|
|
40951
40952
|
}(this.__b, n, a.__O = a.__P);
|
|
40952
40953
|
}
|
|
40953
40954
|
this.__b = null;
|
|
40954
40955
|
}
|
|
40955
|
-
var s = e.__e &&
|
|
40956
|
+
var s = e.__e && se(W, null, i.fallback);
|
|
40956
40957
|
return s && (s.__h = null), [
|
|
40957
|
-
|
|
40958
|
+
se(W, null, e.__e ? null : i.children),
|
|
40958
40959
|
s
|
|
40959
40960
|
];
|
|
40960
40961
|
};
|
|
40961
|
-
var
|
|
40962
|
+
var qe = function(i, e, n) {
|
|
40962
40963
|
if (++n[1] === n[0] && i.o.delete(e), i.props.revealOrder && (i.props.revealOrder[0] !== "t" || !i.o.size))
|
|
40963
40964
|
for (n = i.u; n; ) {
|
|
40964
40965
|
for (; n.length > 3; )
|
|
@@ -40968,15 +40969,15 @@ var Pe = function(i, e, n) {
|
|
|
40968
40969
|
i.u = n = n[2];
|
|
40969
40970
|
}
|
|
40970
40971
|
};
|
|
40971
|
-
(
|
|
40972
|
-
var e = this, n =
|
|
40972
|
+
(D.prototype = new M()).__e = function(i) {
|
|
40973
|
+
var e = this, n = ri(e.__v), a = e.o.get(i);
|
|
40973
40974
|
return a[0]++, function(s) {
|
|
40974
40975
|
var f = function() {
|
|
40975
|
-
e.props.revealOrder ? (a.push(s),
|
|
40976
|
+
e.props.revealOrder ? (a.push(s), qe(e, i, a)) : s();
|
|
40976
40977
|
};
|
|
40977
40978
|
n ? n(f) : f();
|
|
40978
40979
|
};
|
|
40979
|
-
},
|
|
40980
|
+
}, D.prototype.render = function(i) {
|
|
40980
40981
|
this.u = null, this.o = /* @__PURE__ */ new Map();
|
|
40981
40982
|
var e = V(i.children);
|
|
40982
40983
|
i.revealOrder && i.revealOrder[0] === "b" && e.reverse();
|
|
@@ -40987,13 +40988,13 @@ var Pe = function(i, e, n) {
|
|
|
40987
40988
|
this.u
|
|
40988
40989
|
]);
|
|
40989
40990
|
return i.children;
|
|
40990
|
-
},
|
|
40991
|
+
}, D.prototype.componentDidUpdate = D.prototype.componentDidMount = function() {
|
|
40991
40992
|
var i = this;
|
|
40992
40993
|
this.o.forEach(function(e, n) {
|
|
40993
|
-
|
|
40994
|
+
qe(i, n, e);
|
|
40994
40995
|
});
|
|
40995
40996
|
};
|
|
40996
|
-
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) {
|
|
40997
40998
|
return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(i);
|
|
40998
40999
|
};
|
|
40999
41000
|
M.prototype.isReactComponent = {}, [
|
|
@@ -41015,49 +41016,49 @@ M.prototype.isReactComponent = {}, [
|
|
|
41015
41016
|
}
|
|
41016
41017
|
});
|
|
41017
41018
|
});
|
|
41018
|
-
var
|
|
41019
|
-
function fn() {
|
|
41020
|
-
}
|
|
41019
|
+
var He = k.event;
|
|
41021
41020
|
function sn() {
|
|
41022
|
-
return this.cancelBubble;
|
|
41023
41021
|
}
|
|
41024
41022
|
function on() {
|
|
41023
|
+
return this.cancelBubble;
|
|
41024
|
+
}
|
|
41025
|
+
function rn() {
|
|
41025
41026
|
return this.defaultPrevented;
|
|
41026
41027
|
}
|
|
41027
41028
|
k.event = function(i) {
|
|
41028
|
-
return
|
|
41029
|
+
return He && (i = He(i)), i.persist = sn, i.isPropagationStopped = on, i.isDefaultPrevented = rn, i.nativeEvent = i;
|
|
41029
41030
|
};
|
|
41030
|
-
var
|
|
41031
|
+
var We = {
|
|
41031
41032
|
configurable: !0,
|
|
41032
41033
|
get: function() {
|
|
41033
41034
|
return this.class;
|
|
41034
41035
|
}
|
|
41035
|
-
},
|
|
41036
|
+
}, Te = k.vnode;
|
|
41036
41037
|
k.vnode = function(i) {
|
|
41037
41038
|
var e = i.type, n = i.props, a = n;
|
|
41038
41039
|
if (typeof e == "string") {
|
|
41039
41040
|
var s = e.indexOf("-") === -1;
|
|
41040
41041
|
for (var f in a = {}, n) {
|
|
41041
41042
|
var o = n[f];
|
|
41042
|
-
|
|
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);
|
|
41043
41044
|
}
|
|
41044
41045
|
e == "select" && a.multiple && Array.isArray(a.value) && (a.value = V(n.children).forEach(function(d) {
|
|
41045
41046
|
d.props.selected = a.value.indexOf(d.props.value) != -1;
|
|
41046
41047
|
})), e == "select" && a.defaultValue != null && (a.value = V(n.children).forEach(function(d) {
|
|
41047
41048
|
d.props.selected = a.multiple ? a.defaultValue.indexOf(d.props.value) != -1 : a.defaultValue == d.props.value;
|
|
41048
|
-
})), 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));
|
|
41049
41050
|
}
|
|
41050
|
-
i.$$typeof =
|
|
41051
|
+
i.$$typeof = en, Te && Te(i);
|
|
41051
41052
|
};
|
|
41052
|
-
var
|
|
41053
|
+
var Le = k.__r;
|
|
41053
41054
|
k.__r = function(i) {
|
|
41054
|
-
|
|
41055
|
+
Le && Le(i), i.__c;
|
|
41055
41056
|
};
|
|
41056
|
-
const
|
|
41057
|
+
const tn = {
|
|
41057
41058
|
light: "outline",
|
|
41058
41059
|
dark: "solid"
|
|
41059
41060
|
};
|
|
41060
|
-
class
|
|
41061
|
+
class dn extends J {
|
|
41061
41062
|
renderIcon(e) {
|
|
41062
41063
|
const { icon: n } = e;
|
|
41063
41064
|
if (n) {
|
|
@@ -41073,7 +41074,7 @@ class tn extends J {
|
|
|
41073
41074
|
src: n.src
|
|
41074
41075
|
});
|
|
41075
41076
|
}
|
|
41076
|
-
const a = K.categories[e.id] || K.categories.custom, s = this.props.icons == "auto" ?
|
|
41077
|
+
const a = K.categories[e.id] || K.categories.custom, s = this.props.icons == "auto" ? tn[this.props.theme] : this.props.icons;
|
|
41077
41078
|
return a[s] || a;
|
|
41078
41079
|
}
|
|
41079
41080
|
render() {
|
|
@@ -41122,7 +41123,7 @@ class tn extends J {
|
|
|
41122
41123
|
};
|
|
41123
41124
|
}
|
|
41124
41125
|
}
|
|
41125
|
-
class
|
|
41126
|
+
class ln extends J {
|
|
41126
41127
|
shouldComponentUpdate(e) {
|
|
41127
41128
|
for (let n in e)
|
|
41128
41129
|
if (n != "children" && e[n] != this.props[n])
|
|
@@ -41136,10 +41137,10 @@ class dn extends J {
|
|
|
41136
41137
|
const A = {
|
|
41137
41138
|
rowsPerRender: 10
|
|
41138
41139
|
};
|
|
41139
|
-
class
|
|
41140
|
+
class un extends M {
|
|
41140
41141
|
getInitialState(e = this.props) {
|
|
41141
41142
|
return {
|
|
41142
|
-
skin:
|
|
41143
|
+
skin: q.get("skin") || e.skin,
|
|
41143
41144
|
theme: this.initTheme(e.theme)
|
|
41144
41145
|
};
|
|
41145
41146
|
}
|
|
@@ -41263,7 +41264,7 @@ class ln extends M {
|
|
|
41263
41264
|
getEmojiByPos([e, n]) {
|
|
41264
41265
|
const a = this.state.searchResults || this.grid, s = a[e] && a[e][n];
|
|
41265
41266
|
if (s)
|
|
41266
|
-
return
|
|
41267
|
+
return H.get(s);
|
|
41267
41268
|
}
|
|
41268
41269
|
observeCategories() {
|
|
41269
41270
|
const e = this.refs.navigation.current;
|
|
@@ -41298,7 +41299,7 @@ class ln extends M {
|
|
|
41298
41299
|
this.observers.push(f);
|
|
41299
41300
|
}
|
|
41300
41301
|
observeRows() {
|
|
41301
|
-
const e =
|
|
41302
|
+
const e = j({}, this.state.visibleRows), n = new IntersectionObserver((a) => {
|
|
41302
41303
|
for (const s of a) {
|
|
41303
41304
|
const f = parseInt(s.target.dataset.index);
|
|
41304
41305
|
s.isIntersecting ? e[f] = !0 : delete e[f];
|
|
@@ -41419,10 +41420,10 @@ class ln extends M {
|
|
|
41419
41420
|
}
|
|
41420
41421
|
handleEmojiClick({ e, emoji: n, pos: a }) {
|
|
41421
41422
|
if (this.props.onEmojiSelect && (!n && a && (n = this.getEmojiByPos(a)), n)) {
|
|
41422
|
-
const s =
|
|
41423
|
+
const s = Vi(n, {
|
|
41423
41424
|
skinIndex: this.state.skin - 1
|
|
41424
41425
|
});
|
|
41425
|
-
this.props.maxFrequentRows &&
|
|
41426
|
+
this.props.maxFrequentRows && Qe.add(s, this.props), this.props.onEmojiSelect(s, e);
|
|
41426
41427
|
}
|
|
41427
41428
|
}
|
|
41428
41429
|
closeSkins() {
|
|
@@ -41440,10 +41441,10 @@ class ln extends M {
|
|
|
41440
41441
|
this.ignoreMouse(), this.closeSkins(), this.setState({
|
|
41441
41442
|
skin: e,
|
|
41442
41443
|
tempSkin: null
|
|
41443
|
-
}),
|
|
41444
|
+
}), q.set("skin", e);
|
|
41444
41445
|
}
|
|
41445
41446
|
renderNav() {
|
|
41446
|
-
return /* @__PURE__ */ l(
|
|
41447
|
+
return /* @__PURE__ */ l(dn, {
|
|
41447
41448
|
ref: this.refs.navigation,
|
|
41448
41449
|
icons: this.props.icons,
|
|
41449
41450
|
theme: this.state.theme,
|
|
@@ -41470,7 +41471,7 @@ class ln extends M {
|
|
|
41470
41471
|
height: this.props.emojiButtonSize,
|
|
41471
41472
|
fontSize: this.props.emojiButtonSize
|
|
41472
41473
|
},
|
|
41473
|
-
children: /* @__PURE__ */ l(
|
|
41474
|
+
children: /* @__PURE__ */ l(te, {
|
|
41474
41475
|
emoji: e,
|
|
41475
41476
|
id: n ? this.props.noResultsEmoji || "cry" : this.props.previewEmoji || (this.props.previewPosition == "top" ? "point_down" : "point_up"),
|
|
41476
41477
|
set: this.props.set,
|
|
@@ -41506,8 +41507,8 @@ class ln extends M {
|
|
|
41506
41507
|
});
|
|
41507
41508
|
}
|
|
41508
41509
|
renderEmojiButton(e, { pos: n, posinset: a, grid: s }) {
|
|
41509
|
-
const f = this.props.emojiButtonSize, o = this.state.tempSkin || this.state.skin, t = (e.skins[o - 1] || e.skins[0]).native, u =
|
|
41510
|
-
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, {
|
|
41511
41512
|
selected: u,
|
|
41512
41513
|
skin: o,
|
|
41513
41514
|
size: f,
|
|
@@ -41542,7 +41543,7 @@ class ln extends M {
|
|
|
41542
41543
|
backgroundColor: this.props.emojiButtonColors ? this.props.emojiButtonColors[(a - 1) % this.props.emojiButtonColors.length] : void 0
|
|
41543
41544
|
}
|
|
41544
41545
|
}),
|
|
41545
|
-
/* @__PURE__ */ l(
|
|
41546
|
+
/* @__PURE__ */ l(te, {
|
|
41546
41547
|
emoji: e,
|
|
41547
41548
|
set: this.props.set,
|
|
41548
41549
|
size: this.props.emojiSize,
|
|
@@ -41673,7 +41674,7 @@ class ln extends M {
|
|
|
41673
41674
|
height: this.props.emojiButtonSize
|
|
41674
41675
|
}
|
|
41675
41676
|
});
|
|
41676
|
-
const b =
|
|
41677
|
+
const b = H.get(_);
|
|
41677
41678
|
return this.renderEmojiButton(b, {
|
|
41678
41679
|
pos: [
|
|
41679
41680
|
d.index,
|
|
@@ -41835,7 +41836,7 @@ class ln extends M {
|
|
|
41835
41836
|
const n = this.refs.searchInput.current;
|
|
41836
41837
|
if (!n)
|
|
41837
41838
|
return;
|
|
41838
|
-
const { value: a } = n, s = yield
|
|
41839
|
+
const { value: a } = n, s = yield H.search(a), f = () => {
|
|
41839
41840
|
this.refs.scroll.current && (this.refs.scroll.current.scrollTop = 0);
|
|
41840
41841
|
};
|
|
41841
41842
|
if (!s)
|
|
@@ -41916,11 +41917,11 @@ class ln extends M {
|
|
|
41916
41917
|
this.setState({
|
|
41917
41918
|
showSkins: s
|
|
41918
41919
|
}, () => S(this, null, function* () {
|
|
41919
|
-
yield
|
|
41920
|
+
yield Ni(2);
|
|
41920
41921
|
const f = this.refs.menu.current;
|
|
41921
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));
|
|
41922
41923
|
}));
|
|
41923
|
-
}), this.observers = [], this.state =
|
|
41924
|
+
}), this.observers = [], this.state = j({
|
|
41924
41925
|
pos: [
|
|
41925
41926
|
-1,
|
|
41926
41927
|
-1
|
|
@@ -41932,25 +41933,25 @@ class ln extends M {
|
|
|
41932
41933
|
}, this.getInitialState(e));
|
|
41933
41934
|
}
|
|
41934
41935
|
}
|
|
41935
|
-
class
|
|
41936
|
+
class ce extends Yi {
|
|
41936
41937
|
connectedCallback() {
|
|
41937
41938
|
return S(this, null, function* () {
|
|
41938
|
-
const e =
|
|
41939
|
+
const e = ni(this.props, B, this);
|
|
41939
41940
|
e.element = this, e.ref = (n) => {
|
|
41940
41941
|
this.component = n;
|
|
41941
|
-
}, yield Z(e), !this.disconnected &&
|
|
41942
|
+
}, yield Z(e), !this.disconnected && Ye(/* @__PURE__ */ l(un, j({}, e)), this.shadowRoot);
|
|
41942
41943
|
});
|
|
41943
41944
|
}
|
|
41944
41945
|
constructor(e) {
|
|
41945
41946
|
super(e, {
|
|
41946
|
-
styles: /* @__PURE__ */
|
|
41947
|
+
styles: /* @__PURE__ */ Re(ti)
|
|
41947
41948
|
});
|
|
41948
41949
|
}
|
|
41949
41950
|
}
|
|
41950
|
-
C(
|
|
41951
|
-
typeof customElements != "undefined" && !customElements.get("em-emoji-picker") && customElements.define("em-emoji-picker",
|
|
41952
|
-
var
|
|
41953
|
-
|
|
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 {
|
|
41954
41955
|
width: min-content;
|
|
41955
41956
|
height: 435px;
|
|
41956
41957
|
min-height: 230px;
|
|
@@ -42666,23 +42667,23 @@ button {
|
|
|
42666
42667
|
}
|
|
42667
42668
|
|
|
42668
42669
|
`;
|
|
42669
|
-
function
|
|
42670
|
-
const e =
|
|
42671
|
-
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), {
|
|
42672
42673
|
ref: e
|
|
42673
42674
|
})), () => {
|
|
42674
42675
|
n.current = null;
|
|
42675
|
-
}), []), /* @__PURE__ */
|
|
42676
|
+
}), []), /* @__PURE__ */ z.createElement("div", {
|
|
42676
42677
|
ref: e
|
|
42677
42678
|
});
|
|
42678
42679
|
}
|
|
42679
|
-
const
|
|
42680
|
-
function
|
|
42681
|
-
const e =
|
|
42682
|
-
|
|
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);
|
|
42683
42684
|
};
|
|
42684
|
-
return /* @__PURE__ */
|
|
42685
|
-
|
|
42685
|
+
return /* @__PURE__ */ z.createElement(
|
|
42686
|
+
ki,
|
|
42686
42687
|
{
|
|
42687
42688
|
trigger: "click",
|
|
42688
42689
|
triggerProps: {
|
|
@@ -42694,20 +42695,20 @@ function _n(i) {
|
|
|
42694
42695
|
getPopupContainer: (s) => Array.from(document.querySelectorAll(".RichTextBar")).find(
|
|
42695
42696
|
(f) => f.contains(s)
|
|
42696
42697
|
),
|
|
42697
|
-
content: /* @__PURE__ */
|
|
42698
|
-
|
|
42699
|
-
Q(
|
|
42698
|
+
content: /* @__PURE__ */ z.createElement("div", { style: { height: 300 } }, /* @__PURE__ */ z.createElement(
|
|
42699
|
+
cn,
|
|
42700
|
+
Q(j({
|
|
42700
42701
|
previewPosition: "none",
|
|
42701
|
-
data:
|
|
42702
|
+
data: Ci
|
|
42702
42703
|
}, i), {
|
|
42703
42704
|
onEmojiSelect: a
|
|
42704
42705
|
})
|
|
42705
42706
|
))
|
|
42706
42707
|
},
|
|
42707
|
-
/* @__PURE__ */
|
|
42708
|
+
/* @__PURE__ */ z.createElement(gi, { content: _i("Emoji") }, /* @__PURE__ */ z.createElement("span", { ref: n, className: ke("formatButton") }, /* @__PURE__ */ z.createElement(
|
|
42708
42709
|
"span",
|
|
42709
42710
|
{
|
|
42710
|
-
className:
|
|
42711
|
+
className: ke("iconfont"),
|
|
42711
42712
|
style: {
|
|
42712
42713
|
display: "flex",
|
|
42713
42714
|
alignItems: "center",
|
|
@@ -42724,10 +42725,10 @@ function _n(i) {
|
|
|
42724
42725
|
overflow: "hidden"
|
|
42725
42726
|
}
|
|
42726
42727
|
},
|
|
42727
|
-
/* @__PURE__ */
|
|
42728
|
+
/* @__PURE__ */ z.createElement(vn, null)
|
|
42728
42729
|
)))
|
|
42729
42730
|
);
|
|
42730
42731
|
}
|
|
42731
42732
|
export {
|
|
42732
|
-
|
|
42733
|
+
bn as EmojiPlugin
|
|
42733
42734
|
};
|