react-input-emoji 5.9.0-beta.3 → 5.9.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +356 -354
- package/dist/index.js +361 -359
- package/package.json +1 -3
package/dist/index.es.js
CHANGED
@@ -4,12 +4,12 @@ import ReactDOM from 'react-dom';
|
|
4
4
|
|
5
5
|
function styleInject(css, ref) {
|
6
6
|
if (ref === void 0) ref = {};
|
7
|
-
|
7
|
+
const insertAt = ref.insertAt;
|
8
8
|
if (!css || typeof document === 'undefined') {
|
9
9
|
return;
|
10
10
|
}
|
11
|
-
|
12
|
-
|
11
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
12
|
+
const style = document.createElement('style');
|
13
13
|
style.type = 'text/css';
|
14
14
|
if (insertAt === 'top') {
|
15
15
|
if (head.firstChild) {
|
@@ -27,7 +27,7 @@ function styleInject(css, ref) {
|
|
27
27
|
}
|
28
28
|
}
|
29
29
|
|
30
|
-
|
30
|
+
const css_248z = ".react-input-emoji--container {\n color: #4b4b4b;\n text-rendering: optimizeLegibility;\n background-color: #fff;\n border: 1px solid #fff;\n border-radius: 21px;\n margin: 5px 10px;\n box-sizing: border-box;\n flex: 1 1 auto;\n font-size: 15px;\n font-family: sans-serif;\n font-weight: 400;\n line-height: 20px;\n min-height: 20px;\n min-width: 0;\n outline: none;\n width: inherit;\n will-change: width;\n vertical-align: baseline;\n border: 1px solid #eaeaea;\n margin-right: 0;\n}\n\n.react-input-emoji--wrapper {\n display: flex;\n overflow: hidden;\n flex: 1;\n position: relative;\n padding-right: 0;\n vertical-align: baseline;\n outline: none;\n margin: 0;\n padding: 0;\n border: 0;\n}\n\n.react-input-emoji--input {\n font-weight: 400;\n max-height: 100px;\n min-height: 20px;\n outline: none;\n overflow-x: hidden;\n overflow-y: auto;\n position: relative;\n white-space: pre-wrap;\n word-wrap: break-word;\n z-index: 1;\n width: 100%;\n user-select: text;\n padding: 9px 12px 11px;\n text-align: left;\n}\n\n.react-input-emoji--input img {\n vertical-align: middle;\n width: 18px !important;\n height: 18px !important;\n display: inline !important;\n margin-left: 1px;\n margin-right: 1px;\n}\n\n.react-input-emoji--overlay {\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 9;\n}\n\n.react-input-emoji--placeholder {\n color: #a0a0a0;\n pointer-events: none;\n position: absolute;\n user-select: none;\n z-index: 2;\n left: 16px;\n top: 0;\n bottom: 0;\n display: flex;\n align-items: center;\n width: calc(100% - 22px);\n}\n\n.react-input-emoji--button {\n position: relative;\n display: block;\n text-align: center;\n padding: 0 10px;\n overflow: hidden;\n transition: color 0.1s ease-out;\n margin: 0;\n box-shadow: none;\n background: none;\n border: none;\n outline: none;\n cursor: pointer;\n flex-shrink: 0;\n}\n\n.react-input-emoji--button svg {\n fill: #858585;\n}\n\n.react-input-emoji--button__show svg {\n fill: #128b7e;\n}\n\n.react-emoji {\n display: flex;\n align-items: center;\n position: relative;\n width: 100%;\n}\n\n.react-emoji-picker--container {\n position: absolute;\n top: 0;\n width: 100%;\n}\n\n.react-emoji-picker--wrapper {\n position: absolute;\n bottom: 0;\n right: 0;\n height: 435px;\n width: 352px;\n overflow: hidden;\n z-index: 10;\n}\n\n.react-emoji-picker {\n position: absolute;\n top: 0;\n left: 0;\n animation: slidein 0.1s ease-in-out;\n}\n\n.react-emoji-picker__show {\n top: 0;\n}\n\n.react-input-emoji--mention--container {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n z-index: 10;\n}\n\n.react-input-emoji--mention--list {\n background-color: #fafafa;\n border: 1px solid #eaeaea;\n border-radius: 4px;\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n gap: 5px;\n flex-direction: column;\n position: absolute;\n bottom: 0;\n width: 100%;\n left: 0;\n}\n\n.react-input-emoji--mention--item {\n display: flex;\n align-items: center;\n gap: 10px;\n padding: 5px 10px;\n background-color: transparent;\n width: 100%;\n margin: 0;\n border: 0;\n}\n\n.react-input-emoji--mention--item__selected {\n background-color: #eeeeee;\n}\n\n.react-input-emoji--mention--item--img {\n width: 34px;\n height: 34px;\n border-radius: 50%;\n}\n\n.react-input-emoji--mention--item--name {\n font-size: 16px;\n color: #333;\n}\n\n.react-input-emoji--mention--item--name__selected {\n color: green;\n}\n\n.react-input-emoji--mention--text {\n color: #039be5;\n}\n\n.react-input-emoji--mention--loading {\n background-color: #fafafa;\n border: 1px solid #eaeaea;\n border-radius: 4px;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px 0;\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n}\n\n.react-input-emoji--mention--loading--spinner,\n.react-input-emoji--mention--loading--spinner::after {\n border-radius: 50%;\n width: 10em;\n height: 10em;\n}\n\n.react-input-emoji--mention--loading--spinner {\n margin: 1px auto;\n font-size: 2px;\n position: relative;\n text-indent: -9999em;\n border-top: 1.1em solid rgba(0, 0, 0, 0.1);\n border-right: 1.1em solid rgba(0, 0, 0, 0.1);\n border-bottom: 1.1em solid rgba(0, 0, 0, 0.1);\n border-left: 1.1em solid rgba(0, 0, 0, 0.4);\n transform: translateZ(0);\n animation: load8 1.1s infinite linear;\n}\n\n@keyframes load8 {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n@keyframes slidein {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n";
|
31
31
|
styleInject(css_248z);
|
32
32
|
|
33
33
|
/* eslint-disable valid-jsdoc */
|
@@ -79,7 +79,7 @@ function getAllEmojisFromText(text) {
|
|
79
79
|
* @return {string}
|
80
80
|
*/
|
81
81
|
function getImageEmoji(emoji) {
|
82
|
-
|
82
|
+
let _emojiPickerEl$shadow;
|
83
83
|
/** @type {HTMLElement | null} */
|
84
84
|
const emojiPickerEl = document.querySelector('em-emoji-picker');
|
85
85
|
if (!emojiPickerEl) {
|
@@ -175,7 +175,7 @@ function handlePasteHtmlAtCaret(html) {
|
|
175
175
|
sel = window.getSelection();
|
176
176
|
if (sel === null) return;
|
177
177
|
if (sel.getRangeAt && sel.rangeCount) {
|
178
|
-
|
178
|
+
let _currentRangeCached;
|
179
179
|
range = (_currentRangeCached = currentRangeCached) !== null && _currentRangeCached !== void 0 ? _currentRangeCached : sel.getRangeAt(0);
|
180
180
|
range.deleteContents();
|
181
181
|
|
@@ -223,7 +223,7 @@ function replaceEmojiToString(container) {
|
|
223
223
|
* @return {number}
|
224
224
|
*/
|
225
225
|
function totalCharacters(_ref2) {
|
226
|
-
|
226
|
+
const {
|
227
227
|
text,
|
228
228
|
html
|
229
229
|
} = _ref2;
|
@@ -335,14 +335,14 @@ function addLineBreak() {
|
|
335
335
|
function replace(string, regexpOrSubstr, newValueOrFn, globalOffset) {
|
336
336
|
if (typeof string !== 'string') throw new Error('First param must be a string');
|
337
337
|
if (typeof regexpOrSubstr !== 'string' && !(regexpOrSubstr instanceof RegExp)) throw new Error('Second param must be a string pattern or a regular expression');
|
338
|
-
|
338
|
+
const fn = typeof regexpOrSubstr === 'string' ? replaceUsingString : replaceUsingRegexp;
|
339
339
|
return fn(string, regexpOrSubstr, newValueOrFn, globalOffset);
|
340
340
|
}
|
341
341
|
function replaceUsingString(string, patternString, newValueOrFn, globalOffset) {
|
342
|
-
|
342
|
+
const index = string.indexOf(patternString);
|
343
343
|
if (index >= 0) {
|
344
|
-
|
345
|
-
|
344
|
+
const arr = [];
|
345
|
+
const endIndex = index + patternString.length;
|
346
346
|
if (index > 0) {
|
347
347
|
arr.push(string.substring(0, index));
|
348
348
|
}
|
@@ -356,14 +356,14 @@ function replaceUsingString(string, patternString, newValueOrFn, globalOffset) {
|
|
356
356
|
}
|
357
357
|
}
|
358
358
|
function replaceUsingRegexp(string, regexp, newValueOrFn, globalOffset) {
|
359
|
-
|
360
|
-
|
361
|
-
|
359
|
+
const output = [];
|
360
|
+
const replacerIsFn = typeof newValueOrFn === 'function';
|
361
|
+
const storedLastIndex = regexp.lastIndex;
|
362
362
|
regexp.lastIndex = 0;
|
363
|
-
|
364
|
-
|
363
|
+
let result;
|
364
|
+
let lastIndex = 0;
|
365
365
|
while (result = regexp.exec(string)) {
|
366
|
-
|
366
|
+
const index = result.index;
|
367
367
|
if (result[0] === '') {
|
368
368
|
// When the regexp is an empty string
|
369
369
|
// we still want to advance our cursor to the next item.
|
@@ -373,9 +373,9 @@ function replaceUsingRegexp(string, regexp, newValueOrFn, globalOffset) {
|
|
373
373
|
if (index !== lastIndex) {
|
374
374
|
output.push(string.substring(lastIndex, index));
|
375
375
|
}
|
376
|
-
|
376
|
+
const match = result[0];
|
377
377
|
lastIndex = index + match.length;
|
378
|
-
|
378
|
+
const out = replacerIsFn ? newValueOrFn.apply(this, result.concat(index + globalOffset, result.input)) : newValueOrFn;
|
379
379
|
output.push(out);
|
380
380
|
if (!regexp.global) {
|
381
381
|
break;
|
@@ -387,17 +387,17 @@ function replaceUsingRegexp(string, regexp, newValueOrFn, globalOffset) {
|
|
387
387
|
regexp.lastIndex = storedLastIndex;
|
388
388
|
return output;
|
389
389
|
}
|
390
|
-
|
390
|
+
const stringReplaceToArray = function stringReplaceToArray(stringOrArray, regexpOrSubstr, newSubStrOrFn) {
|
391
391
|
if (typeof stringOrArray === 'string') {
|
392
392
|
return replace(stringOrArray, regexpOrSubstr, newSubStrOrFn, 0);
|
393
393
|
} else if (!Array.isArray(stringOrArray) || !stringOrArray[0]) {
|
394
394
|
throw new TypeError('First argument must be an array or non-empty string');
|
395
395
|
} else {
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
for (
|
400
|
-
|
396
|
+
const len = stringOrArray.length;
|
397
|
+
const output = [];
|
398
|
+
let globalOffset = 0;
|
399
|
+
for (let i = 0; i < len; ++i) {
|
400
|
+
const arrayItem = stringOrArray[i];
|
401
401
|
if (typeof arrayItem === 'string') {
|
402
402
|
output.push.apply(output, replace(arrayItem, regexpOrSubstr, newSubStrOrFn, globalOffset));
|
403
403
|
globalOffset += arrayItem.length;
|
@@ -424,12 +424,12 @@ var stringReplaceToArray = function stringReplaceToArray(stringOrArray, regexpOr
|
|
424
424
|
|
425
425
|
// RegExp based on emoji's official Unicode standards
|
426
426
|
// http://www.unicode.org/Public/UNIDATA/EmojiSources.txt
|
427
|
-
var re = /(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c[\udffc-\udfff]|\ud83e\udef1\ud83c\udffc\u200d\ud83e\udef2\ud83c[\udffb\udffd-\udfff]|\ud83e\udef1\ud83c\udffd\u200d\ud83e\udef2\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\udef1\ud83c\udffe\u200d\ud83e\udef2\ud83c[\udffb-\udffd\udfff]|\ud83e\udef1\ud83c\udfff\u200d\ud83e\udef2\ud83c[\udffb-\udffe]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83e\udd1d\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91]|\ud83e\udd1d)|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\udd77\uddb5\uddb6\uddb8\uddb9\uddbb\uddcd-\uddcf\uddd1-\udddd\udec3-\udec5\udef0-\udef6]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udedd-\udedf\udeeb\udeec\udef4-\udefc\udfe0-\udfeb\udff0]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd3f-\udd45\udd47-\udd76\udd78-\uddb4\uddb7\uddba\uddbc-\uddcc\uddd0\uddde-\uddff\ude70-\ude74\ude78-\ude7c\ude80-\ude86\ude90-\udeac\udeb0-\udeba\udec0-\udec2\uded0-\uded9\udee0-\udee7]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g;
|
427
|
+
const re = /(?:\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83d\udc68\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc68\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc68\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc68\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffc-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffd-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb\udffc\udffe\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffd\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc68\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83d\udc69\ud83c[\udffb-\udfff]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc68\ud83c[\udffb-\udffe]|\ud83d\udc69\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83d\udc69\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udffb\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffc-\udfff]|\ud83e\uddd1\ud83c\udffb\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffd-\udfff]|\ud83e\uddd1\ud83c\udffc\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\uddd1\ud83c\udffd\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffd\udfff]|\ud83e\uddd1\ud83c\udffe\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83e\uddd1\ud83c\udfff\u200d\u2764\ufe0f\u200d\ud83e\uddd1\ud83c[\udffb-\udffe]|\ud83e\uddd1\ud83c\udfff\u200d\ud83e\udd1d\u200d\ud83e\uddd1\ud83c[\udffb-\udfff]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d\udc8b\u200d\ud83d[\udc68\udc69]|\ud83e\udef1\ud83c\udffb\u200d\ud83e\udef2\ud83c[\udffc-\udfff]|\ud83e\udef1\ud83c\udffc\u200d\ud83e\udef2\ud83c[\udffb\udffd-\udfff]|\ud83e\udef1\ud83c\udffd\u200d\ud83e\udef2\ud83c[\udffb\udffc\udffe\udfff]|\ud83e\udef1\ud83c\udffe\u200d\ud83e\udef2\ud83c[\udffb-\udffd\udfff]|\ud83e\udef1\ud83c\udfff\u200d\ud83e\udef2\ud83c[\udffb-\udffe]|\ud83d\udc68\u200d\u2764\ufe0f\u200d\ud83d\udc68|\ud83d\udc69\u200d\u2764\ufe0f\u200d\ud83d[\udc68\udc69]|\ud83e\uddd1\u200d\ud83e\udd1d\u200d\ud83e\uddd1|\ud83d\udc6b\ud83c[\udffb-\udfff]|\ud83d\udc6c\ud83c[\udffb-\udfff]|\ud83d\udc6d\ud83c[\udffb-\udfff]|\ud83d\udc8f\ud83c[\udffb-\udfff]|\ud83d\udc91\ud83c[\udffb-\udfff]|\ud83e\udd1d\ud83c[\udffb-\udfff]|\ud83d[\udc6b-\udc6d\udc8f\udc91]|\ud83e\udd1d)|(?:\ud83d[\udc68\udc69]|\ud83e\uddd1)(?:\ud83c[\udffb-\udfff])?\u200d(?:\u2695\ufe0f|\u2696\ufe0f|\u2708\ufe0f|\ud83c[\udf3e\udf73\udf7c\udf84\udf93\udfa4\udfa8\udfeb\udfed]|\ud83d[\udcbb\udcbc\udd27\udd2c\ude80\ude92]|\ud83e[\uddaf-\uddb3\uddbc\uddbd])|(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75]|\u26f9)((?:\ud83c[\udffb-\udfff]|\ufe0f)\u200d[\u2640\u2642]\ufe0f)|(?:\ud83c[\udfc3\udfc4\udfca]|\ud83d[\udc6e\udc70\udc71\udc73\udc77\udc81\udc82\udc86\udc87\ude45-\ude47\ude4b\ude4d\ude4e\udea3\udeb4-\udeb6]|\ud83e[\udd26\udd35\udd37-\udd39\udd3d\udd3e\uddb8\uddb9\uddcd-\uddcf\uddd4\uddd6-\udddd])(?:\ud83c[\udffb-\udfff])?\u200d[\u2640\u2642]\ufe0f|(?:\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc68\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc68\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc66\u200d\ud83d\udc66|\ud83d\udc69\u200d\ud83d\udc67\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f|\ud83c\udff3\ufe0f\u200d\ud83c\udf08|\ud83d\ude36\u200d\ud83c\udf2b\ufe0f|\u2764\ufe0f\u200d\ud83d\udd25|\u2764\ufe0f\u200d\ud83e\ude79|\ud83c\udff4\u200d\u2620\ufe0f|\ud83d\udc15\u200d\ud83e\uddba|\ud83d\udc3b\u200d\u2744\ufe0f|\ud83d\udc41\u200d\ud83d\udde8|\ud83d\udc68\u200d\ud83d[\udc66\udc67]|\ud83d\udc69\u200d\ud83d[\udc66\udc67]|\ud83d\udc6f\u200d\u2640\ufe0f|\ud83d\udc6f\u200d\u2642\ufe0f|\ud83d\ude2e\u200d\ud83d\udca8|\ud83d\ude35\u200d\ud83d\udcab|\ud83e\udd3c\u200d\u2640\ufe0f|\ud83e\udd3c\u200d\u2642\ufe0f|\ud83e\uddde\u200d\u2640\ufe0f|\ud83e\uddde\u200d\u2642\ufe0f|\ud83e\udddf\u200d\u2640\ufe0f|\ud83e\udddf\u200d\u2642\ufe0f|\ud83d\udc08\u200d\u2b1b)|[#*0-9]\ufe0f?\u20e3|(?:[©®\u2122\u265f]\ufe0f)|(?:\ud83c[\udc04\udd70\udd71\udd7e\udd7f\ude02\ude1a\ude2f\ude37\udf21\udf24-\udf2c\udf36\udf7d\udf96\udf97\udf99-\udf9b\udf9e\udf9f\udfcd\udfce\udfd4-\udfdf\udff3\udff5\udff7]|\ud83d[\udc3f\udc41\udcfd\udd49\udd4a\udd6f\udd70\udd73\udd76-\udd79\udd87\udd8a-\udd8d\udda5\udda8\uddb1\uddb2\uddbc\uddc2-\uddc4\uddd1-\uddd3\udddc-\uddde\udde1\udde3\udde8\uddef\uddf3\uddfa\udecb\udecd-\udecf\udee0-\udee5\udee9\udef0\udef3]|[\u203c\u2049\u2139\u2194-\u2199\u21a9\u21aa\u231a\u231b\u2328\u23cf\u23ed-\u23ef\u23f1\u23f2\u23f8-\u23fa\u24c2\u25aa\u25ab\u25b6\u25c0\u25fb-\u25fe\u2600-\u2604\u260e\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262a\u262e\u262f\u2638-\u263a\u2640\u2642\u2648-\u2653\u2660\u2663\u2665\u2666\u2668\u267b\u267f\u2692-\u2697\u2699\u269b\u269c\u26a0\u26a1\u26a7\u26aa\u26ab\u26b0\u26b1\u26bd\u26be\u26c4\u26c5\u26c8\u26cf\u26d1\u26d3\u26d4\u26e9\u26ea\u26f0-\u26f5\u26f8\u26fa\u26fd\u2702\u2708\u2709\u270f\u2712\u2714\u2716\u271d\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u2764\u27a1\u2934\u2935\u2b05-\u2b07\u2b1b\u2b1c\u2b50\u2b55\u3030\u303d\u3297\u3299])(?:\ufe0f|(?!\ufe0e))|(?:(?:\ud83c[\udfcb\udfcc]|\ud83d[\udd74\udd75\udd90]|[\u261d\u26f7\u26f9\u270c\u270d])(?:\ufe0f|(?!\ufe0e))|(?:\ud83c[\udf85\udfc2-\udfc4\udfc7\udfca]|\ud83d[\udc42\udc43\udc46-\udc50\udc66-\udc69\udc6e\udc70-\udc78\udc7c\udc81-\udc83\udc85-\udc87\udcaa\udd7a\udd95\udd96\ude45-\ude47\ude4b-\ude4f\udea3\udeb4-\udeb6\udec0\udecc]|\ud83e[\udd0c\udd0f\udd18-\udd1c\udd1e\udd1f\udd26\udd30-\udd39\udd3d\udd3e\udd77\uddb5\uddb6\uddb8\uddb9\uddbb\uddcd-\uddcf\uddd1-\udddd\udec3-\udec5\udef0-\udef6]|[\u270a\u270b]))(?:\ud83c[\udffb-\udfff])?|(?:\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc65\udb40\udc6e\udb40\udc67\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc73\udb40\udc63\udb40\udc74\udb40\udc7f|\ud83c\udff4\udb40\udc67\udb40\udc62\udb40\udc77\udb40\udc6c\udb40\udc73\udb40\udc7f|\ud83c\udde6\ud83c[\udde8-\uddec\uddee\uddf1\uddf2\uddf4\uddf6-\uddfa\uddfc\uddfd\uddff]|\ud83c\udde7\ud83c[\udde6\udde7\udde9-\uddef\uddf1-\uddf4\uddf6-\uddf9\uddfb\uddfc\uddfe\uddff]|\ud83c\udde8\ud83c[\udde6\udde8\udde9\uddeb-\uddee\uddf0-\uddf5\uddf7\uddfa-\uddff]|\ud83c\udde9\ud83c[\uddea\uddec\uddef\uddf0\uddf2\uddf4\uddff]|\ud83c\uddea\ud83c[\udde6\udde8\uddea\uddec\udded\uddf7-\uddfa]|\ud83c\uddeb\ud83c[\uddee-\uddf0\uddf2\uddf4\uddf7]|\ud83c\uddec\ud83c[\udde6\udde7\udde9-\uddee\uddf1-\uddf3\uddf5-\uddfa\uddfc\uddfe]|\ud83c\udded\ud83c[\uddf0\uddf2\uddf3\uddf7\uddf9\uddfa]|\ud83c\uddee\ud83c[\udde8-\uddea\uddf1-\uddf4\uddf6-\uddf9]|\ud83c\uddef\ud83c[\uddea\uddf2\uddf4\uddf5]|\ud83c\uddf0\ud83c[\uddea\uddec-\uddee\uddf2\uddf3\uddf5\uddf7\uddfc\uddfe\uddff]|\ud83c\uddf1\ud83c[\udde6-\udde8\uddee\uddf0\uddf7-\uddfb\uddfe]|\ud83c\uddf2\ud83c[\udde6\udde8-\udded\uddf0-\uddff]|\ud83c\uddf3\ud83c[\udde6\udde8\uddea-\uddec\uddee\uddf1\uddf4\uddf5\uddf7\uddfa\uddff]|\ud83c\uddf4\ud83c\uddf2|\ud83c\uddf5\ud83c[\udde6\uddea-\udded\uddf0-\uddf3\uddf7-\uddf9\uddfc\uddfe]|\ud83c\uddf6\ud83c\udde6|\ud83c\uddf7\ud83c[\uddea\uddf4\uddf8\uddfa\uddfc]|\ud83c\uddf8\ud83c[\udde6-\uddea\uddec-\uddf4\uddf7-\uddf9\uddfb\uddfd-\uddff]|\ud83c\uddf9\ud83c[\udde6\udde8\udde9\uddeb-\udded\uddef-\uddf4\uddf7\uddf9\uddfb\uddfc\uddff]|\ud83c\uddfa\ud83c[\udde6\uddec\uddf2\uddf3\uddf8\uddfe\uddff]|\ud83c\uddfb\ud83c[\udde6\udde8\uddea\uddec\uddee\uddf3\uddfa]|\ud83c\uddfc\ud83c[\uddeb\uddf8]|\ud83c\uddfd\ud83c\uddf0|\ud83c\uddfe\ud83c[\uddea\uddf9]|\ud83c\uddff\ud83c[\udde6\uddf2\uddfc]|\ud83c[\udccf\udd8e\udd91-\udd9a\udde6-\uddff\ude01\ude32-\ude36\ude38-\ude3a\ude50\ude51\udf00-\udf20\udf2d-\udf35\udf37-\udf7c\udf7e-\udf84\udf86-\udf93\udfa0-\udfc1\udfc5\udfc6\udfc8\udfc9\udfcf-\udfd3\udfe0-\udff0\udff4\udff8-\udfff]|\ud83d[\udc00-\udc3e\udc40\udc44\udc45\udc51-\udc65\udc6a\udc6f\udc79-\udc7b\udc7d-\udc80\udc84\udc88-\udc8e\udc90\udc92-\udca9\udcab-\udcfc\udcff-\udd3d\udd4b-\udd4e\udd50-\udd67\udda4\uddfb-\ude44\ude48-\ude4a\ude80-\udea2\udea4-\udeb3\udeb7-\udebf\udec1-\udec5\uded0-\uded2\uded5-\uded7\udedd-\udedf\udeeb\udeec\udef4-\udefc\udfe0-\udfeb\udff0]|\ud83e[\udd0d\udd0e\udd10-\udd17\udd20-\udd25\udd27-\udd2f\udd3a\udd3c\udd3f-\udd45\udd47-\udd76\udd78-\uddb4\uddb7\uddba\uddbc-\uddcc\uddd0\uddde-\uddff\ude70-\ude74\ude78-\ude7c\ude80-\ude86\ude90-\udeac\udeb0-\udeba\udec0-\udec2\uded0-\uded9\udee0-\udee7]|[\u23e9-\u23ec\u23f0\u23f3\u267e\u26ce\u2705\u2728\u274c\u274e\u2753-\u2755\u2795-\u2797\u27b0\u27bf\ue50a])|\ufe0f/g;
|
428
428
|
function toCodePoint(unicodeSurrogates, sep) {
|
429
|
-
|
430
|
-
c = 0
|
431
|
-
p = 0
|
432
|
-
i = 0;
|
429
|
+
const r = [];
|
430
|
+
let c = 0;
|
431
|
+
let p = 0;
|
432
|
+
let i = 0;
|
433
433
|
while (i < unicodeSurrogates.length) {
|
434
434
|
c = unicodeSurrogates.charCodeAt(i++);
|
435
435
|
if (p) {
|
@@ -446,10 +446,10 @@ function toCodePoint(unicodeSurrogates, sep) {
|
|
446
446
|
|
447
447
|
// avoid runtime RegExp creation for not so smart,
|
448
448
|
// not JIT based, and old browsers / engines
|
449
|
-
|
449
|
+
const UFE0Fg = /\uFE0F/g;
|
450
450
|
|
451
451
|
// avoid using a string literal like '\u200D' here because minifiers expand it inline
|
452
|
-
|
452
|
+
const U200D = String.fromCharCode(0x200D);
|
453
453
|
|
454
454
|
/**
|
455
455
|
* Used to both remove the possible variant
|
@@ -461,17 +461,17 @@ function grabTheRightIcon(rawText) {
|
|
461
461
|
// if variant is present as \uFE0F
|
462
462
|
return toCodePoint(rawText.indexOf(U200D) < 0 ? rawText.replace(UFE0Fg, '') : rawText);
|
463
463
|
}
|
464
|
-
|
464
|
+
const replaceEmoji$1 = function replaceEmoji(string, render) {
|
465
465
|
// Note: the latest regex added an empty matching group, so we ignore it.
|
466
466
|
return stringReplaceToArray(string, re, function emojiReplacer(match, _, offset) {
|
467
|
-
|
467
|
+
const icon = grabTheRightIcon(match);
|
468
468
|
return render(icon, match, offset);
|
469
469
|
});
|
470
470
|
};
|
471
471
|
|
472
|
-
|
473
|
-
|
474
|
-
|
472
|
+
const createElement = React.createElement;
|
473
|
+
const pageProtocol = typeof location === 'undefined' ? '' : location.protocol === 'https:' ? 'https:' : 'http:';
|
474
|
+
const emojiStyle = {
|
475
475
|
height: '1em',
|
476
476
|
width: '1em',
|
477
477
|
margin: '0 .05em 0 .1em',
|
@@ -485,7 +485,7 @@ function normalizeProtocol(protocol) {
|
|
485
485
|
}
|
486
486
|
return protocol;
|
487
487
|
}
|
488
|
-
|
488
|
+
const makeTwemojiRenderer$1 = function makeTwemojiRenderer(options) {
|
489
489
|
options = merge({
|
490
490
|
protocol: pageProtocol,
|
491
491
|
baseUrl: '//cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/',
|
@@ -494,7 +494,7 @@ var makeTwemojiRenderer$1 = function makeTwemojiRenderer(options) {
|
|
494
494
|
props: null
|
495
495
|
}, options);
|
496
496
|
return function renderTwemoji(icon, match, offset) {
|
497
|
-
|
497
|
+
let src = '';
|
498
498
|
if (options.baseUrl.indexOf('http') !== 0) {
|
499
499
|
src += normalizeProtocol(options.protocol);
|
500
500
|
}
|
@@ -509,12 +509,12 @@ var makeTwemojiRenderer$1 = function makeTwemojiRenderer(options) {
|
|
509
509
|
};
|
510
510
|
};
|
511
511
|
function merge() {
|
512
|
-
|
513
|
-
len = arguments.length;
|
514
|
-
for (
|
515
|
-
|
512
|
+
const out = {};
|
513
|
+
const len = arguments.length;
|
514
|
+
for (let i = 0; i < len; ++i) {
|
515
|
+
const source = arguments[i];
|
516
516
|
if (source) {
|
517
|
-
for (
|
517
|
+
for (const key in source) {
|
518
518
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
519
519
|
out[key] = source[key];
|
520
520
|
}
|
@@ -524,16 +524,16 @@ function merge() {
|
|
524
524
|
return out;
|
525
525
|
}
|
526
526
|
|
527
|
-
|
527
|
+
const replaceEmoji = replaceEmoji$1;
|
528
528
|
|
529
|
-
|
529
|
+
const makeTwemojiRenderer = makeTwemojiRenderer$1;
|
530
530
|
|
531
|
-
|
532
|
-
|
531
|
+
const reactEasyEmoji = function reactEasyEmoji(element, optionsOrFn) {
|
532
|
+
const render = typeof optionsOrFn === 'function' ? optionsOrFn : makeTwemojiRenderer(optionsOrFn);
|
533
533
|
return replaceEmoji(element, render);
|
534
534
|
};
|
535
535
|
|
536
|
-
|
536
|
+
const emoji = reactEasyEmoji;
|
537
537
|
|
538
538
|
// @ts-check
|
539
539
|
const EMOJI_REGEX = new RegExp(/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0]|\ud83c[\udffb-\udfff])?)*/g);
|
@@ -635,7 +635,7 @@ function handleEmoji(text) {
|
|
635
635
|
* @param {Props} props
|
636
636
|
*/
|
637
637
|
function useExpose(_ref) {
|
638
|
-
|
638
|
+
const {
|
639
639
|
ref,
|
640
640
|
textInputRef,
|
641
641
|
setValue,
|
@@ -706,9 +706,9 @@ function useEmit(textInputRef, onResize, onChange) {
|
|
706
706
|
}
|
707
707
|
|
708
708
|
function ownKeys(e, r) {
|
709
|
-
|
709
|
+
const t = Object.keys(e);
|
710
710
|
if (Object.getOwnPropertySymbols) {
|
711
|
-
|
711
|
+
let o = Object.getOwnPropertySymbols(e);
|
712
712
|
r && (o = o.filter(function (r) {
|
713
713
|
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
714
714
|
})), t.push.apply(t, o);
|
@@ -716,7 +716,7 @@ function ownKeys(e, r) {
|
|
716
716
|
return t;
|
717
717
|
}
|
718
718
|
function _objectSpread2(e) {
|
719
|
-
for (
|
719
|
+
for (let r = 1; r < arguments.length; r++) {
|
720
720
|
var t = null != arguments[r] ? arguments[r] : {};
|
721
721
|
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
722
722
|
_defineProperty(e, r, t[r]);
|
@@ -742,9 +742,9 @@ function _defineProperty(obj, key, value) {
|
|
742
742
|
}
|
743
743
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
744
744
|
if (source == null) return {};
|
745
|
-
|
746
|
-
|
747
|
-
|
745
|
+
const target = {};
|
746
|
+
const sourceKeys = Object.keys(source);
|
747
|
+
let key; let i;
|
748
748
|
for (i = 0; i < sourceKeys.length; i++) {
|
749
749
|
key = sourceKeys[i];
|
750
750
|
if (excluded.indexOf(key) >= 0) continue;
|
@@ -754,10 +754,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
754
754
|
}
|
755
755
|
function _objectWithoutProperties(source, excluded) {
|
756
756
|
if (source == null) return {};
|
757
|
-
|
758
|
-
|
757
|
+
const target = _objectWithoutPropertiesLoose(source, excluded);
|
758
|
+
let key; let i;
|
759
759
|
if (Object.getOwnPropertySymbols) {
|
760
|
-
|
760
|
+
const sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
761
761
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
762
762
|
key = sourceSymbolKeys[i];
|
763
763
|
if (excluded.indexOf(key) >= 0) continue;
|
@@ -769,16 +769,16 @@ function _objectWithoutProperties(source, excluded) {
|
|
769
769
|
}
|
770
770
|
function _toPrimitive(input, hint) {
|
771
771
|
if (typeof input !== "object" || input === null) return input;
|
772
|
-
|
772
|
+
const prim = input[Symbol.toPrimitive];
|
773
773
|
if (prim !== undefined) {
|
774
|
-
|
774
|
+
const res = prim.call(input, hint || "default");
|
775
775
|
if (typeof res !== "object") return res;
|
776
776
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
777
777
|
}
|
778
778
|
return (hint === "string" ? String : Number)(input);
|
779
779
|
}
|
780
780
|
function _toPropertyKey(arg) {
|
781
|
-
|
781
|
+
const key = _toPrimitive(arg, "string");
|
782
782
|
return typeof key === "symbol" ? key : String(key);
|
783
783
|
}
|
784
784
|
|
@@ -817,14 +817,14 @@ const _excluded = ["placeholder", "style", "tabIndex", "className", "onChange"];
|
|
817
817
|
// eslint-disable-next-line valid-jsdoc
|
818
818
|
/** @type {React.ForwardRefRenderFunction<Ref, Props>} */
|
819
819
|
const TextInput = (_ref, ref) => {
|
820
|
-
|
820
|
+
const {
|
821
821
|
placeholder,
|
822
822
|
style,
|
823
823
|
tabIndex,
|
824
824
|
className,
|
825
825
|
onChange
|
826
|
-
} = _ref
|
827
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
826
|
+
} = _ref;
|
827
|
+
const props = _objectWithoutProperties(_ref, _excluded);
|
828
828
|
useImperativeHandle(ref, () => ({
|
829
829
|
appendContent: html => {
|
830
830
|
if (textInputRef.current) {
|
@@ -958,17 +958,17 @@ const TextInput = (_ref, ref) => {
|
|
958
958
|
onChange(textInputRef.current.innerHTML);
|
959
959
|
}
|
960
960
|
}
|
961
|
-
return
|
961
|
+
return /* #__PURE__*/React.createElement("div", {
|
962
962
|
className: "react-input-emoji--container",
|
963
963
|
style: style
|
964
|
-
},
|
964
|
+
}, /* #__PURE__*/React.createElement("div", {
|
965
965
|
className: "react-input-emoji--wrapper",
|
966
966
|
onClick: handleClick
|
967
|
-
},
|
967
|
+
}, /* #__PURE__*/React.createElement("div", {
|
968
968
|
ref: placeholderRef,
|
969
969
|
className: "react-input-emoji--placeholder",
|
970
970
|
style: placeholderStyle
|
971
|
-
}, placeholder),
|
971
|
+
}, placeholder), /* #__PURE__*/React.createElement("div", {
|
972
972
|
ref: textInputRef,
|
973
973
|
onKeyDown: handleKeyDown,
|
974
974
|
onKeyUp: handleKeyUp,
|
@@ -982,7 +982,7 @@ const TextInput = (_ref, ref) => {
|
|
982
982
|
style: inputStyle
|
983
983
|
})));
|
984
984
|
};
|
985
|
-
const TextInputWithRef =
|
985
|
+
const TextInputWithRef = /* #__PURE__*/forwardRef(TextInput);
|
986
986
|
|
987
987
|
// vendors
|
988
988
|
|
@@ -1000,7 +1000,7 @@ const TextInputWithRef = /*#__PURE__*/forwardRef(TextInput);
|
|
1000
1000
|
* @return {JSX.Element}
|
1001
1001
|
*/
|
1002
1002
|
function EmojiPickerButton(_ref) {
|
1003
|
-
|
1003
|
+
const {
|
1004
1004
|
showPicker,
|
1005
1005
|
toggleShowPicker,
|
1006
1006
|
buttonElement,
|
@@ -1009,7 +1009,7 @@ function EmojiPickerButton(_ref) {
|
|
1009
1009
|
const localButtonRef = useRef(null);
|
1010
1010
|
const [showCustomButtonContent, setShowCustomButtonContent] = useState(false);
|
1011
1011
|
useEffect(() => {
|
1012
|
-
|
1012
|
+
let _buttonRef$current$ch; let _buttonRef$current; let _buttonElement$childN; let _buttonElement$childN2;
|
1013
1013
|
if (((_buttonRef$current$ch = buttonRef === null || buttonRef === void 0 || (_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 || (_buttonRef$current = _buttonRef$current.childNodes) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.length) !== null && _buttonRef$current$ch !== void 0 ? _buttonRef$current$ch : 0) > 2) {
|
1014
1014
|
localButtonRef.current.appendChild(buttonRef.current.childNodes[0]);
|
1015
1015
|
setShowCustomButtonContent(true);
|
@@ -1018,20 +1018,20 @@ function EmojiPickerButton(_ref) {
|
|
1018
1018
|
setShowCustomButtonContent(true);
|
1019
1019
|
}
|
1020
1020
|
}, [buttonElement === null || buttonElement === void 0 ? void 0 : buttonElement.childNodes]);
|
1021
|
-
return
|
1021
|
+
return /* #__PURE__*/React.createElement("button", {
|
1022
1022
|
ref: localButtonRef,
|
1023
1023
|
type: "button",
|
1024
1024
|
className: "react-input-emoji--button".concat(showPicker ? " react-input-emoji--button__show" : ""),
|
1025
1025
|
onClick: toggleShowPicker
|
1026
|
-
}, !showCustomButtonContent &&
|
1026
|
+
}, !showCustomButtonContent && /* #__PURE__*/React.createElement("svg", {
|
1027
1027
|
xmlns: "http://www.w3.org/2000/svg",
|
1028
1028
|
viewBox: "0 0 24 24",
|
1029
1029
|
width: "24",
|
1030
1030
|
height: "24",
|
1031
1031
|
className: "react-input-emoji--button--icon"
|
1032
|
-
},
|
1032
|
+
}, /* #__PURE__*/React.createElement("path", {
|
1033
1033
|
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"
|
1034
|
-
}),
|
1034
|
+
}), /* #__PURE__*/React.createElement("path", {
|
1035
1035
|
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"
|
1036
1036
|
})));
|
1037
1037
|
}
|
@@ -1048,34 +1048,34 @@ function $c770c458706daa72$export$2e2bcd8739ae039(obj, key, value) {
|
|
1048
1048
|
});else obj[key] = value;
|
1049
1049
|
return obj;
|
1050
1050
|
}
|
1051
|
-
|
1052
|
-
$fb96b826c0c5f37a$export$41c562ebe57d11e2
|
1053
|
-
$fb96b826c0c5f37a$var$u
|
1054
|
-
$fb96b826c0c5f37a$var$t
|
1055
|
-
$fb96b826c0c5f37a$var$r
|
1056
|
-
$fb96b826c0c5f37a$var$o
|
1057
|
-
$fb96b826c0c5f37a$var$e = {}
|
1058
|
-
$fb96b826c0c5f37a$var$c = []
|
1059
|
-
$fb96b826c0c5f37a$var$s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
1051
|
+
let $fb96b826c0c5f37a$var$n;
|
1052
|
+
let $fb96b826c0c5f37a$export$41c562ebe57d11e2;
|
1053
|
+
let $fb96b826c0c5f37a$var$u;
|
1054
|
+
let $fb96b826c0c5f37a$var$t;
|
1055
|
+
let $fb96b826c0c5f37a$var$r;
|
1056
|
+
let $fb96b826c0c5f37a$var$o;
|
1057
|
+
const $fb96b826c0c5f37a$var$e = {};
|
1058
|
+
const $fb96b826c0c5f37a$var$c = [];
|
1059
|
+
const $fb96b826c0c5f37a$var$s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
1060
1060
|
function $fb96b826c0c5f37a$var$a(n1, l1) {
|
1061
|
-
for (
|
1061
|
+
for (const u1 in l1) n1[u1] = l1[u1];
|
1062
1062
|
return n1;
|
1063
1063
|
}
|
1064
1064
|
function $fb96b826c0c5f37a$var$h(n2) {
|
1065
|
-
|
1065
|
+
const l2 = n2.parentNode;
|
1066
1066
|
l2 && l2.removeChild(n2);
|
1067
1067
|
}
|
1068
1068
|
function $fb96b826c0c5f37a$export$c8a8987d4410bf2d(l3, u2, i1) {
|
1069
|
-
|
1070
|
-
r1
|
1071
|
-
o1
|
1072
|
-
f1 = {};
|
1069
|
+
let t1;
|
1070
|
+
let r1;
|
1071
|
+
let o1;
|
1072
|
+
const f1 = {};
|
1073
1073
|
for (o1 in u2) "key" == o1 ? t1 = u2[o1] : "ref" == o1 ? r1 = u2[o1] : f1[o1] = u2[o1];
|
1074
1074
|
if (arguments.length > 2 && (f1.children = arguments.length > 3 ? $fb96b826c0c5f37a$var$n.call(arguments, 2) : i1), "function" == typeof l3 && null != l3.defaultProps) for (o1 in l3.defaultProps) void 0 === f1[o1] && (f1[o1] = l3.defaultProps[o1]);
|
1075
1075
|
return $fb96b826c0c5f37a$var$y(l3, f1, t1, r1, null);
|
1076
1076
|
}
|
1077
1077
|
function $fb96b826c0c5f37a$var$y(n3, i2, t2, r2, o2) {
|
1078
|
-
|
1078
|
+
const f2 = {
|
1079
1079
|
type: n3,
|
1080
1080
|
props: i2,
|
1081
1081
|
key: t2,
|
@@ -1109,7 +1109,7 @@ function $fb96b826c0c5f37a$var$k(n6, l5) {
|
|
1109
1109
|
return "function" == typeof n6.type ? $fb96b826c0c5f37a$var$k(n6) : null;
|
1110
1110
|
}
|
1111
1111
|
function $fb96b826c0c5f37a$var$b(n7) {
|
1112
|
-
|
1112
|
+
let l6; let u4;
|
1113
1113
|
if (null != (n7 = n7.__) && null != n7.__c) {
|
1114
1114
|
for (n7.__e = n7.__c.base = null, l6 = 0; l6 < n7.__k.length; l6++) if (null != (u4 = n7.__k[l6]) && null != u4.__e) {
|
1115
1115
|
n7.__e = n7.__c.base = u4.__e;
|
@@ -1125,20 +1125,20 @@ function $fb96b826c0c5f37a$var$g() {
|
|
1125
1125
|
for (var n9; $fb96b826c0c5f37a$var$g.__r = $fb96b826c0c5f37a$var$t.length;) n9 = $fb96b826c0c5f37a$var$t.sort(function (n10, l7) {
|
1126
1126
|
return n10.__v.__b - l7.__v.__b;
|
1127
1127
|
}), $fb96b826c0c5f37a$var$t = [], n9.some(function (n11) {
|
1128
|
-
|
1128
|
+
let l8; let u5; let i3; let t3; let r3; let o3;
|
1129
1129
|
n11.__d && (r3 = (t3 = (l8 = n11).__v).__e, (o3 = l8.__P) && (u5 = [], (i3 = $fb96b826c0c5f37a$var$a({}, t3)).__v = t3.__v + 1, $fb96b826c0c5f37a$var$j(o3, t3, i3, l8.__n, void 0 !== o3.ownerSVGElement, null != t3.__h ? [r3] : null, u5, null == r3 ? $fb96b826c0c5f37a$var$k(t3) : r3, t3.__h), $fb96b826c0c5f37a$var$z(u5, t3), t3.__e != r3 && $fb96b826c0c5f37a$var$b(t3)));
|
1130
1130
|
});
|
1131
1131
|
}
|
1132
1132
|
function $fb96b826c0c5f37a$var$w(n12, l9, u6, i4, t4, r4, o4, f3, s1, a1) {
|
1133
|
-
|
1134
|
-
v1
|
1135
|
-
p1
|
1136
|
-
_1
|
1137
|
-
b1
|
1138
|
-
m1
|
1139
|
-
g1
|
1140
|
-
w1 = i4 && i4.__k || $fb96b826c0c5f37a$var$c
|
1141
|
-
A1 = w1.length;
|
1133
|
+
let h1;
|
1134
|
+
let v1;
|
1135
|
+
let p1;
|
1136
|
+
let _1;
|
1137
|
+
let b1;
|
1138
|
+
let m1;
|
1139
|
+
let g1;
|
1140
|
+
const w1 = i4 && i4.__k || $fb96b826c0c5f37a$var$c;
|
1141
|
+
const A1 = w1.length;
|
1142
1142
|
for (u6.__k = [], h1 = 0; h1 < l9.length; h1++) if (null != (_1 = u6.__k[h1] = null == (_1 = l9[h1]) || "boolean" == typeof _1 ? null : "string" == typeof _1 || "number" == typeof _1 || "bigint" == typeof _1 ? $fb96b826c0c5f37a$var$y(null, _1, null, null, _1) : Array.isArray(_1) ? $fb96b826c0c5f37a$var$y($fb96b826c0c5f37a$export$ffb0004e005737fa, {
|
1143
1143
|
children: _1
|
1144
1144
|
}, null, null, null) : _1.__b > 0 ? $fb96b826c0c5f37a$var$y(_1.type, _1.props, _1.key, null, _1.__v) : _1)) {
|
@@ -1164,7 +1164,7 @@ function $fb96b826c0c5f37a$export$47e4c5b300681277(n14, l11) {
|
|
1164
1164
|
}) : l11.push(n14)), l11;
|
1165
1165
|
}
|
1166
1166
|
function $fb96b826c0c5f37a$var$P(n16, l12, u8, i6, t6, r6) {
|
1167
|
-
|
1167
|
+
let o5; let f4; let e1;
|
1168
1168
|
if (void 0 !== l12.__d) o5 = l12.__d, l12.__d = void 0;else if (null == u8 || t6 != r6 || null == t6.parentNode) n: if (null == r6 || r6.parentNode !== n16) n16.appendChild(t6), o5 = null;else {
|
1169
1169
|
for (f4 = r6, e1 = 0; (f4 = f4.nextSibling) && e1 < i6.length; e1 += 2) if (f4 == t6) break n;
|
1170
1170
|
n16.insertBefore(t6, r6), o5 = r6;
|
@@ -1172,7 +1172,7 @@ function $fb96b826c0c5f37a$var$P(n16, l12, u8, i6, t6, r6) {
|
|
1172
1172
|
return void 0 !== o5 ? o5 : t6.nextSibling;
|
1173
1173
|
}
|
1174
1174
|
function $fb96b826c0c5f37a$var$C(n17, l13, u9, i7, t7) {
|
1175
|
-
|
1175
|
+
let r7;
|
1176
1176
|
for (r7 in u9) "children" === r7 || "key" === r7 || r7 in l13 || $fb96b826c0c5f37a$var$H(n17, r7, null, u9[r7], i7);
|
1177
1177
|
for (r7 in l13) t7 && "function" != typeof l13[r7] || "children" === r7 || "key" === r7 || "value" === r7 || "checked" === r7 || u9[r7] === l13[r7] || $fb96b826c0c5f37a$var$H(n17, r7, l13[r7], u9[r7], i7);
|
1178
1178
|
}
|
@@ -1180,7 +1180,7 @@ function $fb96b826c0c5f37a$var$$(n18, l14, u10) {
|
|
1180
1180
|
"-" === l14[0] ? n18.setProperty(l14, u10) : n18[l14] = null == u10 ? "" : "number" != typeof u10 || $fb96b826c0c5f37a$var$s.test(l14) ? u10 : u10 + "px";
|
1181
1181
|
}
|
1182
1182
|
function $fb96b826c0c5f37a$var$H(n19, l15, u11, i8, t8) {
|
1183
|
-
|
1183
|
+
let r8;
|
1184
1184
|
n: if ("style" === l15) {
|
1185
1185
|
if ("string" == typeof u11) n19.style.cssText = u11;else {
|
1186
1186
|
if ("string" == typeof i8 && (n19.style.cssText = i8 = ""), i8) for (l15 in i8) u11 && l15 in u11 || $fb96b826c0c5f37a$var$$(n19.style, l15, "");
|
@@ -1201,18 +1201,18 @@ function $fb96b826c0c5f37a$var$T(n21) {
|
|
1201
1201
|
this.l[n21.type + !0]($fb96b826c0c5f37a$export$41c562ebe57d11e2.event ? $fb96b826c0c5f37a$export$41c562ebe57d11e2.event(n21) : n21);
|
1202
1202
|
}
|
1203
1203
|
function $fb96b826c0c5f37a$var$j(n22, u12, i9, t9, r9, o6, f5, e2, c1) {
|
1204
|
-
|
1205
|
-
h2
|
1206
|
-
v2
|
1207
|
-
y1
|
1208
|
-
p2
|
1209
|
-
k1
|
1210
|
-
b2
|
1211
|
-
m2
|
1212
|
-
g2
|
1213
|
-
x1
|
1214
|
-
A2
|
1215
|
-
P1 = u12.type;
|
1204
|
+
let s2;
|
1205
|
+
let h2;
|
1206
|
+
let v2;
|
1207
|
+
let y1;
|
1208
|
+
let p2;
|
1209
|
+
let k1;
|
1210
|
+
let b2;
|
1211
|
+
let m2;
|
1212
|
+
let g2;
|
1213
|
+
let x1;
|
1214
|
+
let A2;
|
1215
|
+
const P1 = u12.type;
|
1216
1216
|
if (void 0 !== u12.constructor) return null;
|
1217
1217
|
null != i9.__h && (c1 = i9.__h, e2 = u12.__e = i9.__e, u12.__h = null, o6 = [e2]), (s2 = $fb96b826c0c5f37a$export$41c562ebe57d11e2.__b) && s2(u12);
|
1218
1218
|
try {
|
@@ -1247,13 +1247,13 @@ function $fb96b826c0c5f37a$var$z(n25, u13) {
|
|
1247
1247
|
});
|
1248
1248
|
}
|
1249
1249
|
function $fb96b826c0c5f37a$var$L(l16, u15, i10, t10, r10, o7, f6, c2) {
|
1250
|
-
|
1251
|
-
a2
|
1252
|
-
v3
|
1253
|
-
y2 = i10.props
|
1254
|
-
p3 = u15.props
|
1255
|
-
d1 = u15.type
|
1256
|
-
_2 = 0;
|
1250
|
+
let s3;
|
1251
|
+
let a2;
|
1252
|
+
let v3;
|
1253
|
+
let y2 = i10.props;
|
1254
|
+
const p3 = u15.props;
|
1255
|
+
const d1 = u15.type;
|
1256
|
+
let _2 = 0;
|
1257
1257
|
if ("svg" === d1 && (r10 = !0), null != o7) {
|
1258
1258
|
for (; _2 < o7.length; _2++) if ((s3 = o7[_2]) && "setAttribute" in s3 == !!d1 && (d1 ? s3.localName === d1 : 3 === s3.nodeType)) {
|
1259
1259
|
l16 = s3, o7[_2] = null;
|
@@ -1282,7 +1282,7 @@ function $fb96b826c0c5f37a$var$M(n28, u16, i11) {
|
|
1282
1282
|
}
|
1283
1283
|
}
|
1284
1284
|
function $fb96b826c0c5f37a$var$N(n30, u17, i12) {
|
1285
|
-
|
1285
|
+
let t11; let r11;
|
1286
1286
|
if ($fb96b826c0c5f37a$export$41c562ebe57d11e2.unmount && $fb96b826c0c5f37a$export$41c562ebe57d11e2.unmount(n30), (t11 = n30.ref) && (t11.current && t11.current !== n30.__e || $fb96b826c0c5f37a$var$M(t11, null, u17)), null != (t11 = n30.__c)) {
|
1287
1287
|
if (t11.componentWillUnmount) try {
|
1288
1288
|
t11.componentWillUnmount();
|
@@ -1298,7 +1298,7 @@ function $fb96b826c0c5f37a$var$O(n32, l, u18) {
|
|
1298
1298
|
return this.constructor(n32, u18);
|
1299
1299
|
}
|
1300
1300
|
function $fb96b826c0c5f37a$export$b3890eb0ae9dca99(u19, i13, t12) {
|
1301
|
-
|
1301
|
+
let r12; let o8; let f7;
|
1302
1302
|
$fb96b826c0c5f37a$export$41c562ebe57d11e2.__ && $fb96b826c0c5f37a$export$41c562ebe57d11e2.__(u19, i13), o8 = (r12 = "function" == typeof t12) ? null : t12 && t12.__k || i13.__k, f7 = [], $fb96b826c0c5f37a$var$j(i13, u19 = (!r12 && t12 || i13).__k = $fb96b826c0c5f37a$export$c8a8987d4410bf2d($fb96b826c0c5f37a$export$ffb0004e005737fa, null, [u19]), o8 || $fb96b826c0c5f37a$var$e, $fb96b826c0c5f37a$var$e, void 0 !== i13.ownerSVGElement, !r12 && t12 ? [t12] : o8 ? null : i13.firstChild ? $fb96b826c0c5f37a$var$n.call(i13.childNodes) : null, f7, !r12 && t12 ? t12 : o8 ? o8.__e : i13.firstChild, r12), $fb96b826c0c5f37a$var$z(f7, u19);
|
1303
1303
|
}
|
1304
1304
|
$fb96b826c0c5f37a$var$n = $fb96b826c0c5f37a$var$c.slice, $fb96b826c0c5f37a$export$41c562ebe57d11e2 = {
|
@@ -1311,18 +1311,18 @@ $fb96b826c0c5f37a$var$n = $fb96b826c0c5f37a$var$c.slice, $fb96b826c0c5f37a$expor
|
|
1311
1311
|
throw n39;
|
1312
1312
|
}
|
1313
1313
|
}, $fb96b826c0c5f37a$var$u = 0, $fb96b826c0c5f37a$export$16fa2f45be04daa8.prototype.setState = function (n41, l24) {
|
1314
|
-
|
1314
|
+
let u24;
|
1315
1315
|
u24 = null != this.__s && this.__s !== this.state ? this.__s : this.__s = $fb96b826c0c5f37a$var$a({}, this.state), "function" == typeof n41 && (n41 = n41($fb96b826c0c5f37a$var$a({}, u24), this.props)), n41 && $fb96b826c0c5f37a$var$a(u24, n41), null != n41 && this.__v && (l24 && this.__h.push(l24), $fb96b826c0c5f37a$var$m(this));
|
1316
1316
|
}, $fb96b826c0c5f37a$export$16fa2f45be04daa8.prototype.forceUpdate = function (n42) {
|
1317
1317
|
this.__v && (this.__e = !0, n42 && this.__h.push(n42), $fb96b826c0c5f37a$var$m(this));
|
1318
1318
|
}, $fb96b826c0c5f37a$export$16fa2f45be04daa8.prototype.render = $fb96b826c0c5f37a$export$ffb0004e005737fa, $fb96b826c0c5f37a$var$t = [], $fb96b826c0c5f37a$var$r = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, $fb96b826c0c5f37a$var$g.__r = 0;
|
1319
|
-
|
1319
|
+
let $bd9dd35321b03dd4$var$o = 0;
|
1320
1320
|
function $bd9dd35321b03dd4$export$34b9dba7ce09269b(_1, e1, n, t, f) {
|
1321
|
-
|
1322
|
-
s
|
1323
|
-
u = {};
|
1321
|
+
let l;
|
1322
|
+
let s;
|
1323
|
+
const u = {};
|
1324
1324
|
for (s in e1) "ref" == s ? l = e1[s] : u[s] = e1[s];
|
1325
|
-
|
1325
|
+
const a = {
|
1326
1326
|
type: _1,
|
1327
1327
|
props: u,
|
1328
1328
|
key: n,
|
@@ -1353,7 +1353,7 @@ function $f72b75cf796873c7$var$get(key) {
|
|
1353
1353
|
if (value) return JSON.parse(value);
|
1354
1354
|
} catch (error) {}
|
1355
1355
|
}
|
1356
|
-
|
1356
|
+
const $f72b75cf796873c7$export$2e2bcd8739ae039 = {
|
1357
1357
|
set: $f72b75cf796873c7$var$set,
|
1358
1358
|
get: $f72b75cf796873c7$var$get
|
1359
1359
|
};
|
@@ -1459,7 +1459,7 @@ const $c84d045dcc34faf5$var$isEmojiSupported = (() => {
|
|
1459
1459
|
return true;
|
1460
1460
|
};
|
1461
1461
|
})();
|
1462
|
-
|
1462
|
+
const $c84d045dcc34faf5$export$2e2bcd8739ae039 = {
|
1463
1463
|
latestVersion: $c84d045dcc34faf5$var$latestVersion,
|
1464
1464
|
noCountryFlags: $c84d045dcc34faf5$var$noCountryFlags
|
1465
1465
|
};
|
@@ -1483,7 +1483,7 @@ function $b22cfd0a55410b4f$var$get({
|
|
1483
1483
|
let emojiIds = [];
|
1484
1484
|
if (!$b22cfd0a55410b4f$var$Index) {
|
1485
1485
|
$b22cfd0a55410b4f$var$Index = {};
|
1486
|
-
for (
|
1486
|
+
for (const i in $b22cfd0a55410b4f$var$DEFAULTS.slice(0, perLine)) {
|
1487
1487
|
const emojiId = $b22cfd0a55410b4f$var$DEFAULTS[i];
|
1488
1488
|
$b22cfd0a55410b4f$var$Index[emojiId] = perLine - i;
|
1489
1489
|
emojiIds.push(emojiId);
|
@@ -1492,7 +1492,7 @@ function $b22cfd0a55410b4f$var$get({
|
|
1492
1492
|
}
|
1493
1493
|
const max = maxFrequentRows * perLine;
|
1494
1494
|
const last = ($f72b75cf796873c7$export$2e2bcd8739ae039).get("last");
|
1495
|
-
for (
|
1495
|
+
for (const emojiId in $b22cfd0a55410b4f$var$Index) emojiIds.push(emojiId);
|
1496
1496
|
emojiIds.sort((a, b) => {
|
1497
1497
|
const aScore = $b22cfd0a55410b4f$var$Index[b];
|
1498
1498
|
const bScore = $b22cfd0a55410b4f$var$Index[a];
|
@@ -1502,7 +1502,7 @@ function $b22cfd0a55410b4f$var$get({
|
|
1502
1502
|
if (emojiIds.length > max) {
|
1503
1503
|
const removedIds = emojiIds.slice(max);
|
1504
1504
|
emojiIds = emojiIds.slice(0, max);
|
1505
|
-
for (
|
1505
|
+
for (const removedId of removedIds) {
|
1506
1506
|
if (removedId == last) continue;
|
1507
1507
|
delete $b22cfd0a55410b4f$var$Index[removedId];
|
1508
1508
|
}
|
@@ -1514,14 +1514,14 @@ function $b22cfd0a55410b4f$var$get({
|
|
1514
1514
|
}
|
1515
1515
|
return emojiIds;
|
1516
1516
|
}
|
1517
|
-
|
1517
|
+
const $b22cfd0a55410b4f$export$2e2bcd8739ae039 = {
|
1518
1518
|
add: $b22cfd0a55410b4f$var$add,
|
1519
1519
|
get: $b22cfd0a55410b4f$var$get,
|
1520
1520
|
DEFAULTS: $b22cfd0a55410b4f$var$DEFAULTS
|
1521
1521
|
};
|
1522
|
-
|
1522
|
+
let $8d50d93417ef682a$exports = {};
|
1523
1523
|
$8d50d93417ef682a$exports = JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn\u2019t be found","pick":"Pick an emoji\u2026","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"}}');
|
1524
|
-
|
1524
|
+
const $b247ea80b67298d5$export$2e2bcd8739ae039 = {
|
1525
1525
|
autoFocus: {
|
1526
1526
|
value: false
|
1527
1527
|
},
|
@@ -1669,7 +1669,7 @@ async function $7adb23b0109cc36a$var$_init(props) {
|
|
1669
1669
|
if (!isCustom) return true;
|
1670
1670
|
return false;
|
1671
1671
|
});
|
1672
|
-
$7adb23b0109cc36a$export$dbe3113d60765c1a = (typeof props.i18n === "function" ? await props.i18n() : props.i18n) || (locale == "en" ? (
|
1672
|
+
$7adb23b0109cc36a$export$dbe3113d60765c1a = (typeof props.i18n === "function" ? await props.i18n() : props.i18n) || (locale == "en" ? (/* @__PURE__*/$parcel$interopDefault($8d50d93417ef682a$exports)) : await $7adb23b0109cc36a$var$fetchJSON(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${locale}.json`));
|
1673
1673
|
if (props.custom) for (let i in props.custom) {
|
1674
1674
|
i = parseInt(i);
|
1675
1675
|
const category = props.custom[i];
|
@@ -1777,7 +1777,7 @@ async function $7adb23b0109cc36a$var$_init(props) {
|
|
1777
1777
|
function $7adb23b0109cc36a$export$75fe5f91d452f94b(props, defaultProps, element) {
|
1778
1778
|
props || (props = {});
|
1779
1779
|
const _props = {};
|
1780
|
-
for (
|
1780
|
+
for (const k in defaultProps) _props[k] = $7adb23b0109cc36a$export$88c9ddb45cea7241(k, props, defaultProps, element);
|
1781
1781
|
return _props;
|
1782
1782
|
}
|
1783
1783
|
function $7adb23b0109cc36a$export$88c9ddb45cea7241(propName, props, defaultProps, element) {
|
@@ -1814,7 +1814,7 @@ async function $c4d155af13ad4d4b$var$search(value, {
|
|
1814
1814
|
});
|
1815
1815
|
if (!values.length) return;
|
1816
1816
|
let pool = $c4d155af13ad4d4b$var$Pool || ($c4d155af13ad4d4b$var$Pool = Object.values(($7adb23b0109cc36a$export$2d0294657ab35f1b).emojis));
|
1817
|
-
let results
|
1817
|
+
let results; let scores;
|
1818
1818
|
for (const value1 of values) {
|
1819
1819
|
if (!pool.length) break;
|
1820
1820
|
results = [];
|
@@ -1850,7 +1850,7 @@ function $693b183b0a78708f$export$9cb4719e2e525b7a(a, b) {
|
|
1850
1850
|
return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((val, index) => val == b[index]);
|
1851
1851
|
}
|
1852
1852
|
async function $693b183b0a78708f$export$e772c8ff12451969(frames = 1) {
|
1853
|
-
for (
|
1853
|
+
for (const _ in [...Array(frames).keys()]) await new Promise(requestAnimationFrame);
|
1854
1854
|
}
|
1855
1855
|
function $693b183b0a78708f$export$d10ac59fbe52a745(emoji, {
|
1856
1856
|
skinIndex = 0
|
@@ -1875,184 +1875,184 @@ function $693b183b0a78708f$export$d10ac59fbe52a745(emoji, {
|
|
1875
1875
|
}
|
1876
1876
|
const $fcccfb36ed0cde68$var$categories = {
|
1877
1877
|
activity: {
|
1878
|
-
outline:
|
1878
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1879
1879
|
xmlns: "http://www.w3.org/2000/svg",
|
1880
1880
|
viewBox: "0 0 24 24",
|
1881
|
-
children:
|
1881
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1882
1882
|
d: "M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"
|
1883
1883
|
})
|
1884
1884
|
}),
|
1885
|
-
solid:
|
1885
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1886
1886
|
xmlns: "http://www.w3.org/2000/svg",
|
1887
1887
|
viewBox: "0 0 512 512",
|
1888
|
-
children:
|
1888
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1889
1889
|
d: "M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"
|
1890
1890
|
})
|
1891
1891
|
})
|
1892
1892
|
},
|
1893
|
-
custom:
|
1893
|
+
custom: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1894
1894
|
xmlns: "http://www.w3.org/2000/svg",
|
1895
1895
|
viewBox: "0 0 448 512",
|
1896
|
-
children:
|
1896
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1897
1897
|
d: "M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"
|
1898
1898
|
})
|
1899
1899
|
}),
|
1900
1900
|
flags: {
|
1901
|
-
outline:
|
1901
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1902
1902
|
xmlns: "http://www.w3.org/2000/svg",
|
1903
1903
|
viewBox: "0 0 24 24",
|
1904
|
-
children:
|
1904
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1905
1905
|
d: "M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"
|
1906
1906
|
})
|
1907
1907
|
}),
|
1908
|
-
solid:
|
1908
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1909
1909
|
xmlns: "http://www.w3.org/2000/svg",
|
1910
1910
|
viewBox: "0 0 512 512",
|
1911
|
-
children:
|
1911
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1912
1912
|
d: "M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"
|
1913
1913
|
})
|
1914
1914
|
})
|
1915
1915
|
},
|
1916
1916
|
foods: {
|
1917
|
-
outline:
|
1917
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1918
1918
|
xmlns: "http://www.w3.org/2000/svg",
|
1919
1919
|
viewBox: "0 0 24 24",
|
1920
|
-
children:
|
1920
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1921
1921
|
d: "M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"
|
1922
1922
|
})
|
1923
1923
|
}),
|
1924
|
-
solid:
|
1924
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1925
1925
|
xmlns: "http://www.w3.org/2000/svg",
|
1926
1926
|
viewBox: "0 0 512 512",
|
1927
|
-
children:
|
1927
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1928
1928
|
d: "M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"
|
1929
1929
|
})
|
1930
1930
|
})
|
1931
1931
|
},
|
1932
1932
|
frequent: {
|
1933
|
-
outline:
|
1933
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1934
1934
|
xmlns: "http://www.w3.org/2000/svg",
|
1935
1935
|
viewBox: "0 0 24 24",
|
1936
|
-
children: [
|
1936
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1937
1937
|
d: "M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"
|
1938
|
-
}),
|
1938
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1939
1939
|
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"
|
1940
1940
|
})]
|
1941
1941
|
}),
|
1942
|
-
solid:
|
1942
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1943
1943
|
xmlns: "http://www.w3.org/2000/svg",
|
1944
1944
|
viewBox: "0 0 512 512",
|
1945
|
-
children:
|
1945
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1946
1946
|
d: "M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"
|
1947
1947
|
})
|
1948
1948
|
})
|
1949
1949
|
},
|
1950
1950
|
nature: {
|
1951
|
-
outline:
|
1951
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1952
1952
|
xmlns: "http://www.w3.org/2000/svg",
|
1953
1953
|
viewBox: "0 0 24 24",
|
1954
|
-
children: [
|
1954
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1955
1955
|
d: "M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"
|
1956
|
-
}),
|
1956
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1957
1957
|
d: "M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"
|
1958
1958
|
})]
|
1959
1959
|
}),
|
1960
|
-
solid:
|
1960
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1961
1961
|
xmlns: "http://www.w3.org/2000/svg",
|
1962
1962
|
viewBox: "0 0 576 512",
|
1963
|
-
children:
|
1963
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1964
1964
|
d: "M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"
|
1965
1965
|
})
|
1966
1966
|
})
|
1967
1967
|
},
|
1968
1968
|
objects: {
|
1969
|
-
outline:
|
1969
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1970
1970
|
xmlns: "http://www.w3.org/2000/svg",
|
1971
1971
|
viewBox: "0 0 24 24",
|
1972
|
-
children: [
|
1972
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1973
1973
|
d: "M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"
|
1974
|
-
}),
|
1974
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1975
1975
|
d: "M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"
|
1976
1976
|
})]
|
1977
1977
|
}),
|
1978
|
-
solid:
|
1978
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1979
1979
|
xmlns: "http://www.w3.org/2000/svg",
|
1980
1980
|
viewBox: "0 0 384 512",
|
1981
|
-
children:
|
1981
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1982
1982
|
d: "M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"
|
1983
1983
|
})
|
1984
1984
|
})
|
1985
1985
|
},
|
1986
1986
|
people: {
|
1987
|
-
outline:
|
1987
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1988
1988
|
xmlns: "http://www.w3.org/2000/svg",
|
1989
1989
|
viewBox: "0 0 24 24",
|
1990
|
-
children: [
|
1990
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1991
1991
|
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"
|
1992
|
-
}),
|
1992
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1993
1993
|
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"
|
1994
1994
|
})]
|
1995
1995
|
}),
|
1996
|
-
solid:
|
1996
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1997
1997
|
xmlns: "http://www.w3.org/2000/svg",
|
1998
1998
|
viewBox: "0 0 512 512",
|
1999
|
-
children:
|
1999
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2000
2000
|
d: "M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"
|
2001
2001
|
})
|
2002
2002
|
})
|
2003
2003
|
},
|
2004
2004
|
places: {
|
2005
|
-
outline:
|
2005
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2006
2006
|
xmlns: "http://www.w3.org/2000/svg",
|
2007
2007
|
viewBox: "0 0 24 24",
|
2008
|
-
children: [
|
2008
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2009
2009
|
d: "M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"
|
2010
|
-
}),
|
2010
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2011
2011
|
d: "M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"
|
2012
2012
|
})]
|
2013
2013
|
}),
|
2014
|
-
solid:
|
2014
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2015
2015
|
xmlns: "http://www.w3.org/2000/svg",
|
2016
2016
|
viewBox: "0 0 512 512",
|
2017
|
-
children:
|
2017
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2018
2018
|
d: "M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"
|
2019
2019
|
})
|
2020
2020
|
})
|
2021
2021
|
},
|
2022
2022
|
symbols: {
|
2023
|
-
outline:
|
2023
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2024
2024
|
xmlns: "http://www.w3.org/2000/svg",
|
2025
2025
|
viewBox: "0 0 24 24",
|
2026
|
-
children:
|
2026
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2027
2027
|
d: "M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"
|
2028
2028
|
})
|
2029
2029
|
}),
|
2030
|
-
solid:
|
2030
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2031
2031
|
xmlns: "http://www.w3.org/2000/svg",
|
2032
2032
|
viewBox: "0 0 512 512",
|
2033
|
-
children:
|
2033
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2034
2034
|
d: "M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"
|
2035
2035
|
})
|
2036
2036
|
})
|
2037
2037
|
}
|
2038
2038
|
};
|
2039
2039
|
const $fcccfb36ed0cde68$var$search = {
|
2040
|
-
loupe:
|
2040
|
+
loupe: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2041
2041
|
xmlns: "http://www.w3.org/2000/svg",
|
2042
2042
|
viewBox: "0 0 20 20",
|
2043
|
-
children:
|
2043
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2044
2044
|
d: "M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"
|
2045
2045
|
})
|
2046
2046
|
}),
|
2047
|
-
delete:
|
2047
|
+
delete: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2048
2048
|
xmlns: "http://www.w3.org/2000/svg",
|
2049
2049
|
viewBox: "0 0 20 20",
|
2050
|
-
children:
|
2050
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2051
2051
|
d: "M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"
|
2052
2052
|
})
|
2053
2053
|
})
|
2054
2054
|
};
|
2055
|
-
|
2055
|
+
const $fcccfb36ed0cde68$export$2e2bcd8739ae039 = {
|
2056
2056
|
categories: $fcccfb36ed0cde68$var$categories,
|
2057
2057
|
search: $fcccfb36ed0cde68$var$search
|
2058
2058
|
};
|
@@ -2074,10 +2074,10 @@ function $254755d3f438722f$export$2e2bcd8739ae039(props) {
|
|
2074
2074
|
const emojiSkin = emoji.skins[skin - 1] || emoji.skins[0];
|
2075
2075
|
const imageSrc = emojiSkin.src || (props.set != "native" && !props.spritesheet ? typeof props.getImageURL === "function" ? props.getImageURL(props.set, emojiSkin.unified) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${props.set}@15.0.1/img/${props.set}/64/${emojiSkin.unified}.png` : undefined);
|
2076
2076
|
const spritesheetSrc = typeof props.getSpritesheetURL === "function" ? props.getSpritesheetURL(props.set) : `https://cdn.jsdelivr.net/npm/emoji-datasource-${props.set}@15.0.1/img/${props.set}/sheets-256/64.png`;
|
2077
|
-
return
|
2077
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2078
2078
|
class: "emoji-mart-emoji",
|
2079
2079
|
"data-emoji-set": props.set,
|
2080
|
-
children: imageSrc ?
|
2080
|
+
children: imageSrc ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("img", {
|
2081
2081
|
style: {
|
2082
2082
|
maxWidth: props.size || "1em",
|
2083
2083
|
maxHeight: props.size || "1em",
|
@@ -2085,13 +2085,13 @@ function $254755d3f438722f$export$2e2bcd8739ae039(props) {
|
|
2085
2085
|
},
|
2086
2086
|
alt: emojiSkin.native || emojiSkin.shortcodes,
|
2087
2087
|
src: imageSrc
|
2088
|
-
}) : props.set == "native" ?
|
2088
|
+
}) : props.set == "native" ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2089
2089
|
style: {
|
2090
2090
|
fontSize: props.size,
|
2091
2091
|
fontFamily: '"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'
|
2092
2092
|
},
|
2093
2093
|
children: emojiSkin.native
|
2094
|
-
}) :
|
2094
|
+
}) : /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2095
2095
|
style: {
|
2096
2096
|
display: "block",
|
2097
2097
|
width: props.size,
|
@@ -2109,7 +2109,7 @@ class $6f57cc9cd54c5aaa$export$2e2bcd8739ae039 extends $6f57cc9cd54c5aaa$var$Win
|
|
2109
2109
|
return Object.keys(this.Props);
|
2110
2110
|
}
|
2111
2111
|
update(props = {}) {
|
2112
|
-
for (
|
2112
|
+
for (const k in props) this.attributeChangedCallback(k, null, props[k]);
|
2113
2113
|
}
|
2114
2114
|
attributeChangedCallback(attr, _, newValue) {
|
2115
2115
|
if (!this.component) return;
|
@@ -2158,7 +2158,7 @@ class $26f27c338a96b1a6$export$2e2bcd8739ae039 extends ($6f57cc9cd54c5aaa$export
|
|
2158
2158
|
this.injectStyles(styles);
|
2159
2159
|
}
|
2160
2160
|
}
|
2161
|
-
|
2161
|
+
const $3d90f6e46fb2dd47$export$2e2bcd8739ae039 = {
|
2162
2162
|
fallback: "",
|
2163
2163
|
id: "",
|
2164
2164
|
native: "",
|
@@ -2184,7 +2184,7 @@ class $331b4160623139bf$export$2e2bcd8739ae039 extends ($6f57cc9cd54c5aaa$export
|
|
2184
2184
|
};
|
2185
2185
|
await ($7adb23b0109cc36a$export$2cd8252107eb640b)();
|
2186
2186
|
if (this.disconnected) return;
|
2187
|
-
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)(
|
2187
|
+
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)( /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($254755d3f438722f$export$2e2bcd8739ae039), {
|
2188
2188
|
...props
|
2189
2189
|
}), this);
|
2190
2190
|
}
|
@@ -2194,15 +2194,15 @@ class $331b4160623139bf$export$2e2bcd8739ae039 extends ($6f57cc9cd54c5aaa$export
|
|
2194
2194
|
}
|
2195
2195
|
($c770c458706daa72$export$2e2bcd8739ae039)($331b4160623139bf$export$2e2bcd8739ae039, "Props", ($3d90f6e46fb2dd47$export$2e2bcd8739ae039));
|
2196
2196
|
if (typeof customElements !== "undefined" && !customElements.get("em-emoji")) customElements.define("em-emoji", $331b4160623139bf$export$2e2bcd8739ae039);
|
2197
|
-
|
2198
|
-
$1a9a8ef576b7773d$var$i = []
|
2199
|
-
$1a9a8ef576b7773d$var$c = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b
|
2200
|
-
$1a9a8ef576b7773d$var$f = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r
|
2201
|
-
$1a9a8ef576b7773d$var$e = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).diffed
|
2202
|
-
$1a9a8ef576b7773d$var$a = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__c
|
2203
|
-
$1a9a8ef576b7773d$var$v = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount;
|
2197
|
+
let $1a9a8ef576b7773d$var$r;
|
2198
|
+
const $1a9a8ef576b7773d$var$i = [];
|
2199
|
+
const $1a9a8ef576b7773d$var$c = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b;
|
2200
|
+
const $1a9a8ef576b7773d$var$f = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r;
|
2201
|
+
const $1a9a8ef576b7773d$var$e = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).diffed;
|
2202
|
+
const $1a9a8ef576b7773d$var$a = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__c;
|
2203
|
+
const $1a9a8ef576b7773d$var$v = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount;
|
2204
2204
|
function $1a9a8ef576b7773d$var$x() {
|
2205
|
-
|
2205
|
+
let t6;
|
2206
2206
|
for ($1a9a8ef576b7773d$var$i.sort(function (n11, t7) {
|
2207
2207
|
return n11.__v.__b - t7.__v.__b;
|
2208
2208
|
}); t6 = $1a9a8ef576b7773d$var$i.pop();) if (t6.__P) try {
|
@@ -2215,17 +2215,17 @@ function $1a9a8ef576b7773d$var$x() {
|
|
2215
2215
|
$1a9a8ef576b7773d$var$c && $1a9a8ef576b7773d$var$c(n12);
|
2216
2216
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r = function (n13) {
|
2217
2217
|
$1a9a8ef576b7773d$var$f && $1a9a8ef576b7773d$var$f(n13);
|
2218
|
-
|
2218
|
+
const r8 = (n13.__c).__H;
|
2219
2219
|
r8 && (r8.__h.forEach($1a9a8ef576b7773d$var$g), r8.__h.forEach($1a9a8ef576b7773d$var$j), r8.__h = []);
|
2220
2220
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).diffed = function (t8) {
|
2221
2221
|
$1a9a8ef576b7773d$var$e && $1a9a8ef576b7773d$var$e(t8);
|
2222
|
-
|
2222
|
+
const o6 = t8.__c;
|
2223
2223
|
o6 && o6.__H && o6.__H.__h.length && (1 !== $1a9a8ef576b7773d$var$i.push(o6) && $1a9a8ef576b7773d$var$r === ($fb96b826c0c5f37a$export$41c562ebe57d11e2).requestAnimationFrame || (($1a9a8ef576b7773d$var$r = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).requestAnimationFrame) || function (n14) {
|
2224
|
-
|
2225
|
-
u5 = function () {
|
2224
|
+
let t9;
|
2225
|
+
const u5 = function () {
|
2226
2226
|
clearTimeout(r9), $1a9a8ef576b7773d$var$b && cancelAnimationFrame(t9), setTimeout(n14);
|
2227
|
-
}
|
2228
|
-
r9 = setTimeout(u5, 100);
|
2227
|
+
};
|
2228
|
+
var r9 = setTimeout(u5, 100);
|
2229
2229
|
$1a9a8ef576b7773d$var$b && (t9 = requestAnimationFrame(u5));
|
2230
2230
|
})($1a9a8ef576b7773d$var$x));
|
2231
2231
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__c = function (t10, u6) {
|
@@ -2242,8 +2242,8 @@ function $1a9a8ef576b7773d$var$x() {
|
|
2242
2242
|
}), $1a9a8ef576b7773d$var$a && $1a9a8ef576b7773d$var$a(t10, u6);
|
2243
2243
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount = function (t12) {
|
2244
2244
|
$1a9a8ef576b7773d$var$v && $1a9a8ef576b7773d$var$v(t12);
|
2245
|
-
|
2246
|
-
r11 = t12.__c;
|
2245
|
+
let u7;
|
2246
|
+
const r11 = t12.__c;
|
2247
2247
|
r11 && r11.__H && (r11.__H.__.forEach(function (n17) {
|
2248
2248
|
try {
|
2249
2249
|
$1a9a8ef576b7773d$var$g(n17);
|
@@ -2254,19 +2254,19 @@ function $1a9a8ef576b7773d$var$x() {
|
|
2254
2254
|
};
|
2255
2255
|
var $1a9a8ef576b7773d$var$b = "function" == typeof requestAnimationFrame;
|
2256
2256
|
function $1a9a8ef576b7773d$var$g(n19) {
|
2257
|
-
|
2257
|
+
const r12 = n19.__c;
|
2258
2258
|
"function" == typeof r12 && (n19.__c = void 0, r12());
|
2259
2259
|
}
|
2260
2260
|
function $1a9a8ef576b7773d$var$j(n20) {
|
2261
2261
|
n20.__c = n20.__();
|
2262
2262
|
}
|
2263
2263
|
function $dc040a17866866fa$var$S(n1, t1) {
|
2264
|
-
for (
|
2264
|
+
for (const e1 in t1) n1[e1] = t1[e1];
|
2265
2265
|
return n1;
|
2266
2266
|
}
|
2267
2267
|
function $dc040a17866866fa$var$C(n2, t2) {
|
2268
|
-
for (
|
2269
|
-
for (
|
2268
|
+
for (const e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return !0;
|
2269
|
+
for (const r1 in t2) if ("__source" !== r1 && n2[r1] !== t2[r1]) return !0;
|
2270
2270
|
return !1;
|
2271
2271
|
}
|
2272
2272
|
function $dc040a17866866fa$export$221d75b3f55bb0bd(n3) {
|
@@ -2275,58 +2275,58 @@ function $dc040a17866866fa$export$221d75b3f55bb0bd(n3) {
|
|
2275
2275
|
($dc040a17866866fa$export$221d75b3f55bb0bd.prototype = new ($fb96b826c0c5f37a$export$16fa2f45be04daa8)()).isPureReactComponent = !0, $dc040a17866866fa$export$221d75b3f55bb0bd.prototype.shouldComponentUpdate = function (n6, t5) {
|
2276
2276
|
return $dc040a17866866fa$var$C(this.props, n6) || $dc040a17866866fa$var$C(this.state, t5);
|
2277
2277
|
};
|
2278
|
-
|
2278
|
+
const $dc040a17866866fa$var$w = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b;
|
2279
2279
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b = function (n7) {
|
2280
2280
|
n7.type && n7.type.__f && n7.ref && (n7.props.ref = n7.ref, n7.ref = null), $dc040a17866866fa$var$w && $dc040a17866866fa$var$w(n7);
|
2281
2281
|
};
|
2282
|
-
|
2282
|
+
const $dc040a17866866fa$var$A = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__e;
|
2283
2283
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).__e = function (n12, t10, e6) {
|
2284
2284
|
if (n12.then) {
|
2285
2285
|
for (var r5, u1 = t10; u1 = u1.__;) if ((r5 = u1.__c) && r5.__c) return null == t10.__e && (t10.__e = e6.__e, t10.__k = e6.__k), r5.__c(n12, t10);
|
2286
2286
|
}
|
2287
2287
|
$dc040a17866866fa$var$A(n12, t10, e6);
|
2288
2288
|
};
|
2289
|
-
|
2289
|
+
const $dc040a17866866fa$var$O = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount;
|
2290
2290
|
function $dc040a17866866fa$export$74bf444e3cd11ea5() {
|
2291
2291
|
this.__u = 0, this.t = null, this.__b = null;
|
2292
2292
|
}
|
2293
2293
|
function $dc040a17866866fa$var$U(n13) {
|
2294
|
-
|
2294
|
+
const t11 = n13.__.__c;
|
2295
2295
|
return t11 && t11.__e && t11.__e(n13);
|
2296
2296
|
}
|
2297
2297
|
function $dc040a17866866fa$export$998bcd577473dd93() {
|
2298
2298
|
this.u = null, this.o = null;
|
2299
2299
|
}
|
2300
2300
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount = function (n17) {
|
2301
|
-
|
2301
|
+
const t13 = n17.__c;
|
2302
2302
|
t13 && t13.__R && t13.__R(), t13 && !0 === n17.__h && (n17.type = null), $dc040a17866866fa$var$O && $dc040a17866866fa$var$O(n17);
|
2303
2303
|
}, ($dc040a17866866fa$export$74bf444e3cd11ea5.prototype = new ($fb96b826c0c5f37a$export$16fa2f45be04daa8)()).__c = function (n18, t14) {
|
2304
|
-
|
2305
|
-
r7 = this;
|
2304
|
+
const e8 = t14.__c;
|
2305
|
+
const r7 = this;
|
2306
2306
|
null == r7.t && (r7.t = []), r7.t.push(e8);
|
2307
|
-
|
2308
|
-
o1 = !1
|
2309
|
-
i1 = function () {
|
2307
|
+
const u4 = $dc040a17866866fa$var$U(r7.__v);
|
2308
|
+
let o1 = !1;
|
2309
|
+
const i1 = function () {
|
2310
2310
|
o1 || (o1 = !0, e8.__R = null, u4 ? u4(l1) : l1());
|
2311
2311
|
};
|
2312
2312
|
e8.__R = i1;
|
2313
2313
|
var l1 = function () {
|
2314
2314
|
if (! --r7.__u) {
|
2315
2315
|
if (r7.state.__e) {
|
2316
|
-
|
2316
|
+
const n19 = r7.state.__e;
|
2317
2317
|
r7.__v.__k[0] = function n22(t17, e9, r8) {
|
2318
2318
|
return t17 && (t17.__v = null, t17.__k = t17.__k && t17.__k.map(function (t18) {
|
2319
2319
|
return n22(t18, e9, r8);
|
2320
2320
|
}), t17.__c && t17.__c.__P === e9 && (t17.__e && r8.insertBefore(t17.__e, t17.__d), t17.__c.__e = !0, t17.__c.__P = r8)), t17;
|
2321
2321
|
}(n19, n19.__c.__P, n19.__c.__O);
|
2322
2322
|
}
|
2323
|
-
|
2323
|
+
let t15;
|
2324
2324
|
for (r7.setState({
|
2325
2325
|
__e: r7.__b = null
|
2326
2326
|
}); t15 = r7.t.pop();) t15.forceUpdate();
|
2327
2327
|
}
|
2328
|
-
}
|
2329
|
-
c1 = !0 === t14.__h;
|
2328
|
+
};
|
2329
|
+
const c1 = !0 === t14.__h;
|
2330
2330
|
r7.__u++ || c1 || r7.setState({
|
2331
2331
|
__e: r7.__b = r7.__v.__k[0]
|
2332
2332
|
}), n18.then(i1, i1);
|
@@ -2335,8 +2335,8 @@ function $dc040a17866866fa$export$998bcd577473dd93() {
|
|
2335
2335
|
}, $dc040a17866866fa$export$74bf444e3cd11ea5.prototype.render = function (n23, t19) {
|
2336
2336
|
if (this.__b) {
|
2337
2337
|
if (this.__v.__k) {
|
2338
|
-
|
2339
|
-
r9 = this.__v.__k[0].__c;
|
2338
|
+
const e10 = document.createElement("div");
|
2339
|
+
const r9 = this.__v.__k[0].__c;
|
2340
2340
|
this.__v.__k[0] = function n24(t20, e13, r12) {
|
2341
2341
|
return t20 && (t20.__c && t20.__c.__H && (t20.__c.__H.__.forEach(function (n25) {
|
2342
2342
|
"function" == typeof n25.__c && n25.__c();
|
@@ -2347,10 +2347,10 @@ function $dc040a17866866fa$export$998bcd577473dd93() {
|
|
2347
2347
|
}
|
2348
2348
|
this.__b = null;
|
2349
2349
|
}
|
2350
|
-
|
2350
|
+
const u5 = t19.__e && ($fb96b826c0c5f37a$export$c8a8987d4410bf2d)(($fb96b826c0c5f37a$export$ffb0004e005737fa), null, n23.fallback);
|
2351
2351
|
return u5 && (u5.__h = null), [($fb96b826c0c5f37a$export$c8a8987d4410bf2d)(($fb96b826c0c5f37a$export$ffb0004e005737fa), null, t19.__e ? null : n23.children), u5];
|
2352
2352
|
};
|
2353
|
-
|
2353
|
+
const $dc040a17866866fa$var$T = function (n26, t22, e14) {
|
2354
2354
|
if (++e14[1] === e14[0] && n26.o.delete(t22), n26.props.revealOrder && ("t" !== n26.props.revealOrder[0] || !n26.o.size)) for (e14 = n26.u; e14;) {
|
2355
2355
|
for (; e14.length > 3;) e14.pop()();
|
2356
2356
|
if (e14[1] < e14[0]) break;
|
@@ -2358,31 +2358,31 @@ var $dc040a17866866fa$var$T = function (n26, t22, e14) {
|
|
2358
2358
|
}
|
2359
2359
|
};
|
2360
2360
|
($dc040a17866866fa$export$998bcd577473dd93.prototype = new ($fb96b826c0c5f37a$export$16fa2f45be04daa8)()).__e = function (n33) {
|
2361
|
-
|
2362
|
-
e16 = $dc040a17866866fa$var$U(t25.__v)
|
2363
|
-
r13 = t25.o.get(n33);
|
2361
|
+
const t25 = this;
|
2362
|
+
const e16 = $dc040a17866866fa$var$U(t25.__v);
|
2363
|
+
const r13 = t25.o.get(n33);
|
2364
2364
|
return r13[0]++, function (u6) {
|
2365
|
-
|
2365
|
+
const o2 = function () {
|
2366
2366
|
t25.props.revealOrder ? (r13.push(u6), $dc040a17866866fa$var$T(t25, n33, r13)) : u6();
|
2367
2367
|
};
|
2368
2368
|
e16 ? e16(o2) : o2();
|
2369
2369
|
};
|
2370
2370
|
}, $dc040a17866866fa$export$998bcd577473dd93.prototype.render = function (n34) {
|
2371
2371
|
this.u = null, this.o = new Map();
|
2372
|
-
|
2372
|
+
const t26 = ($fb96b826c0c5f37a$export$47e4c5b300681277)(n34.children);
|
2373
2373
|
n34.revealOrder && "b" === n34.revealOrder[0] && t26.reverse();
|
2374
|
-
for (
|
2374
|
+
for (let e17 = t26.length; e17--;) this.o.set(t26[e17], this.u = [1, 0, this.u]);
|
2375
2375
|
return n34.children;
|
2376
2376
|
}, $dc040a17866866fa$export$998bcd577473dd93.prototype.componentDidUpdate = $dc040a17866866fa$export$998bcd577473dd93.prototype.componentDidMount = function () {
|
2377
|
-
|
2377
|
+
const n35 = this;
|
2378
2378
|
this.o.forEach(function (t27, e18) {
|
2379
2379
|
$dc040a17866866fa$var$T(n35, e18, t27);
|
2380
2380
|
});
|
2381
2381
|
};
|
2382
|
-
|
2383
|
-
$dc040a17866866fa$var$P = /^(?: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]
|
2384
|
-
$dc040a17866866fa$var$V = "undefined" != typeof document
|
2385
|
-
$dc040a17866866fa$var$z = function (n36) {
|
2382
|
+
const $dc040a17866866fa$var$j = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
|
2383
|
+
const $dc040a17866866fa$var$P = /^(?: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]/;
|
2384
|
+
const $dc040a17866866fa$var$V = "undefined" != typeof document;
|
2385
|
+
const $dc040a17866866fa$var$z = function (n36) {
|
2386
2386
|
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/i : /fil|che|ra/i).test(n36);
|
2387
2387
|
};
|
2388
2388
|
($fb96b826c0c5f37a$export$16fa2f45be04daa8).prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function (n39) {
|
@@ -2400,7 +2400,7 @@ var $dc040a17866866fa$var$j = "undefined" != typeof Symbol && Symbol.for && Symb
|
|
2400
2400
|
}
|
2401
2401
|
});
|
2402
2402
|
});
|
2403
|
-
|
2403
|
+
const $dc040a17866866fa$var$H = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).event;
|
2404
2404
|
function $dc040a17866866fa$var$Z() {}
|
2405
2405
|
function $dc040a17866866fa$var$Y() {
|
2406
2406
|
return this.cancelBubble;
|
@@ -2411,21 +2411,21 @@ function $dc040a17866866fa$var$q() {
|
|
2411
2411
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).event = function (n40) {
|
2412
2412
|
return $dc040a17866866fa$var$H && (n40 = $dc040a17866866fa$var$H(n40)), n40.persist = $dc040a17866866fa$var$Z, n40.isPropagationStopped = $dc040a17866866fa$var$Y, n40.isDefaultPrevented = $dc040a17866866fa$var$q, n40.nativeEvent = n40;
|
2413
2413
|
};
|
2414
|
-
|
2414
|
+
const $dc040a17866866fa$var$J = {
|
2415
2415
|
configurable: !0,
|
2416
2416
|
get: function () {
|
2417
2417
|
return this.class;
|
2418
2418
|
}
|
2419
|
-
}
|
2420
|
-
$dc040a17866866fa$var$K = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).vnode;
|
2419
|
+
};
|
2420
|
+
const $dc040a17866866fa$var$K = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).vnode;
|
2421
2421
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).vnode = function (n41) {
|
2422
|
-
|
2423
|
-
e21 = n41.props
|
2424
|
-
r14 = e21;
|
2422
|
+
const t31 = n41.type;
|
2423
|
+
const e21 = n41.props;
|
2424
|
+
let r14 = e21;
|
2425
2425
|
if ("string" == typeof t31) {
|
2426
|
-
|
2427
|
-
for (
|
2428
|
-
|
2426
|
+
const u7 = -1 === t31.indexOf("-");
|
2427
|
+
for (let o3 in r14 = {}, e21) {
|
2428
|
+
let i2 = e21[o3];
|
2429
2429
|
$dc040a17866866fa$var$V && "children" === o3 && "noscript" === t31 || "value" === o3 && "defaultValue" in e21 && null == i2 || ("defaultValue" === o3 && "value" in e21 && null == e21.value ? o3 = "value" : "download" === o3 && !0 === i2 ? i2 = "" : /ondoubleclick/i.test(o3) ? o3 = "ondblclick" : /^onchange(textarea|input)/i.test(o3 + t31) && !$dc040a17866866fa$var$z(e21.type) ? o3 = "oninput" : /^onfocus$/i.test(o3) ? o3 = "onfocusin" : /^onblur$/i.test(o3) ? o3 = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp)/.test(o3) ? o3 = o3.toLowerCase() : u7 && $dc040a17866866fa$var$P.test(o3) ? o3 = o3.replace(/[A-Z0-9]/, "-$&").toLowerCase() : null === i2 && (i2 = void 0), r14[o3] = i2);
|
2430
2430
|
}
|
2431
2431
|
"select" == t31 && r14.multiple && Array.isArray(r14.value) && (r14.value = ($fb96b826c0c5f37a$export$47e4c5b300681277)(e21.children).forEach(function (n42) {
|
@@ -2436,7 +2436,7 @@ var $dc040a17866866fa$var$J = {
|
|
2436
2436
|
}
|
2437
2437
|
n41.$$typeof = $dc040a17866866fa$var$j, $dc040a17866866fa$var$K && $dc040a17866866fa$var$K(n41);
|
2438
2438
|
};
|
2439
|
-
|
2439
|
+
const $dc040a17866866fa$var$Q = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r;
|
2440
2440
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r = function (n44) {
|
2441
2441
|
$dc040a17866866fa$var$Q && $dc040a17866866fa$var$Q(n44), n44.__c;
|
2442
2442
|
};
|
@@ -2450,13 +2450,13 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2450
2450
|
icon: icon
|
2451
2451
|
} = category;
|
2452
2452
|
if (icon) {
|
2453
|
-
if (icon.svg) return
|
2453
|
+
if (icon.svg) return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2454
2454
|
class: "flex",
|
2455
2455
|
dangerouslySetInnerHTML: {
|
2456
2456
|
__html: icon.svg
|
2457
2457
|
}
|
2458
2458
|
});
|
2459
|
-
if (icon.src) return
|
2459
|
+
if (icon.src) return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("img", {
|
2460
2460
|
src: icon.src
|
2461
2461
|
});
|
2462
2462
|
}
|
@@ -2466,18 +2466,18 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2466
2466
|
}
|
2467
2467
|
render() {
|
2468
2468
|
let selectedCategoryIndex = null;
|
2469
|
-
return
|
2469
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("nav", {
|
2470
2470
|
id: "nav",
|
2471
2471
|
class: "padding",
|
2472
2472
|
"data-position": this.props.position,
|
2473
2473
|
dir: this.props.dir,
|
2474
|
-
children:
|
2474
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2475
2475
|
class: "flex relative",
|
2476
2476
|
children: [this.categories.map((category, i) => {
|
2477
2477
|
const title = category.name || ($7adb23b0109cc36a$export$dbe3113d60765c1a).categories[category.id];
|
2478
2478
|
const selected = !this.props.unfocused && category.id == this.state.categoryId;
|
2479
2479
|
if (selected) selectedCategoryIndex = i;
|
2480
|
-
return
|
2480
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
2481
2481
|
"aria-label": title,
|
2482
2482
|
"aria-selected": selected || undefined,
|
2483
2483
|
title: title,
|
@@ -2492,7 +2492,7 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2492
2492
|
},
|
2493
2493
|
children: this.renderIcon(category)
|
2494
2494
|
});
|
2495
|
-
}),
|
2495
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2496
2496
|
class: "bar",
|
2497
2497
|
style: {
|
2498
2498
|
width: `${100 / this.categories.length}%`,
|
@@ -2515,7 +2515,7 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2515
2515
|
}
|
2516
2516
|
class $e0d4dda61265ff1e$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export$221d75b3f55bb0bd) {
|
2517
2517
|
shouldComponentUpdate(nextProps) {
|
2518
|
-
for (
|
2518
|
+
for (const k in nextProps) {
|
2519
2519
|
if (k == "children") continue;
|
2520
2520
|
if (nextProps[k] != this.props[k]) return true;
|
2521
2521
|
}
|
@@ -2596,7 +2596,9 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2596
2596
|
}
|
2597
2597
|
unregister() {
|
2598
2598
|
document.removeEventListener("click", this.handleClickOutside);
|
2599
|
-
this.darkMedia
|
2599
|
+
if (this.darkMedia) {
|
2600
|
+
this.darkMedia.removeEventListener("change", this.darkMediaCallback);
|
2601
|
+
}
|
2600
2602
|
this.unobserve();
|
2601
2603
|
}
|
2602
2604
|
observe() {
|
@@ -2635,10 +2637,10 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2635
2637
|
rows.push(rowRef);
|
2636
2638
|
return row;
|
2637
2639
|
};
|
2638
|
-
for (
|
2640
|
+
for (const category1 of categories) {
|
2639
2641
|
const rows = [];
|
2640
2642
|
let row = addRow(rows, category1);
|
2641
|
-
for (
|
2643
|
+
for (const emoji of category1.emojis) {
|
2642
2644
|
if (row.length == this.getPerLine()) row = addRow(rows, category1);
|
2643
2645
|
this.grid.setsize += 1;
|
2644
2646
|
row.push(emoji);
|
@@ -2898,7 +2900,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2898
2900
|
($f72b75cf796873c7$export$2e2bcd8739ae039).set("skin", skin);
|
2899
2901
|
}
|
2900
2902
|
renderNav() {
|
2901
|
-
return
|
2903
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($ec8c39fdad15601a$export$2e2bcd8739ae039), {
|
2902
2904
|
ref: this.refs.navigation,
|
2903
2905
|
icons: this.props.icons,
|
2904
2906
|
theme: this.state.theme,
|
@@ -2911,20 +2913,20 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2911
2913
|
renderPreview() {
|
2912
2914
|
const emoji = this.getEmojiByPos(this.state.pos);
|
2913
2915
|
const noSearchResults = this.state.searchResults && !this.state.searchResults.length;
|
2914
|
-
return
|
2916
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2915
2917
|
id: "preview",
|
2916
2918
|
class: "flex flex-middle",
|
2917
2919
|
dir: this.dir,
|
2918
2920
|
"data-position": this.props.previewPosition,
|
2919
|
-
children: [
|
2921
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2920
2922
|
class: "flex flex-middle flex-grow",
|
2921
|
-
children: [
|
2923
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2922
2924
|
class: "flex flex-auto flex-middle flex-center",
|
2923
2925
|
style: {
|
2924
2926
|
height: this.props.emojiButtonSize,
|
2925
2927
|
fontSize: this.props.emojiButtonSize
|
2926
2928
|
},
|
2927
|
-
children:
|
2929
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($254755d3f438722f$export$2e2bcd8739ae039), {
|
2928
2930
|
emoji: emoji,
|
2929
2931
|
id: noSearchResults ? this.props.noResultsEmoji || "cry" : this.props.previewEmoji || (this.props.previewPosition == "top" ? "point_down" : "point_up"),
|
2930
2932
|
set: this.props.set,
|
@@ -2933,18 +2935,18 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2933
2935
|
spritesheet: true,
|
2934
2936
|
getSpritesheetURL: this.props.getSpritesheetURL
|
2935
2937
|
})
|
2936
|
-
}),
|
2938
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2937
2939
|
class: `margin-${this.dir[0]}`,
|
2938
|
-
children: emoji || noSearchResults ?
|
2940
|
+
children: emoji || noSearchResults ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2939
2941
|
class: `padding-${this.dir[2]} align-${this.dir[0]}`,
|
2940
|
-
children: [
|
2942
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2941
2943
|
class: "preview-title ellipsis",
|
2942
2944
|
children: emoji ? emoji.name : ($7adb23b0109cc36a$export$dbe3113d60765c1a).search_no_results_1
|
2943
|
-
}),
|
2945
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2944
2946
|
class: "preview-subtitle ellipsis color-c",
|
2945
2947
|
children: emoji ? emoji.skins[0].shortcodes : ($7adb23b0109cc36a$export$dbe3113d60765c1a).search_no_results_2
|
2946
2948
|
})]
|
2947
|
-
}) :
|
2949
|
+
}) : /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2948
2950
|
class: "preview-placeholder color-c",
|
2949
2951
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).pick
|
2950
2952
|
})
|
@@ -2963,11 +2965,11 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2963
2965
|
const native = emojiSkin.native;
|
2964
2966
|
const selected = ($693b183b0a78708f$export$9cb4719e2e525b7a)(this.state.pos, pos);
|
2965
2967
|
const key = pos.concat(emoji.id).join("");
|
2966
|
-
return
|
2968
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($e0d4dda61265ff1e$export$2e2bcd8739ae039), {
|
2967
2969
|
selected: selected,
|
2968
2970
|
skin: skin,
|
2969
2971
|
size: size,
|
2970
|
-
children:
|
2972
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
2971
2973
|
"aria-label": native,
|
2972
2974
|
"aria-selected": selected || undefined,
|
2973
2975
|
"aria-posinset": posinset,
|
@@ -2989,14 +2991,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2989
2991
|
fontSize: this.props.emojiSize,
|
2990
2992
|
lineHeight: 0
|
2991
2993
|
},
|
2992
|
-
children: [
|
2994
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2993
2995
|
"aria-hidden": "true",
|
2994
2996
|
class: "background",
|
2995
2997
|
style: {
|
2996
2998
|
borderRadius: this.props.emojiButtonRadius,
|
2997
2999
|
backgroundColor: this.props.emojiButtonColors ? this.props.emojiButtonColors[(posinset - 1) % this.props.emojiButtonColors.length] : undefined
|
2998
3000
|
}
|
2999
|
-
}),
|
3001
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($254755d3f438722f$export$2e2bcd8739ae039), {
|
3000
3002
|
emoji: emoji,
|
3001
3003
|
set: this.props.set,
|
3002
3004
|
size: this.props.emojiSize,
|
@@ -3009,14 +3011,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3009
3011
|
}
|
3010
3012
|
renderSearch() {
|
3011
3013
|
const renderSkinTone = this.props.previewPosition == "none" || this.props.skinTonePosition == "search";
|
3012
|
-
return
|
3013
|
-
children: [
|
3014
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3015
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3014
3016
|
class: "spacer"
|
3015
|
-
}),
|
3017
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3016
3018
|
class: "flex flex-middle",
|
3017
|
-
children: [
|
3019
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3018
3020
|
class: "search relative flex-grow",
|
3019
|
-
children: [
|
3021
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("input", {
|
3020
3022
|
type: "search",
|
3021
3023
|
ref: this.refs.searchInput,
|
3022
3024
|
placeholder: ($7adb23b0109cc36a$export$dbe3113d60765c1a).search,
|
@@ -3024,10 +3026,10 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3024
3026
|
onInput: this.handleSearchInput,
|
3025
3027
|
onKeyDown: this.handleSearchKeyDown,
|
3026
3028
|
autoComplete: "off"
|
3027
|
-
}),
|
3029
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3028
3030
|
class: "icon loupe flex",
|
3029
3031
|
children: ($fcccfb36ed0cde68$export$2e2bcd8739ae039).search.loupe
|
3030
|
-
}), this.state.searchResults &&
|
3032
|
+
}), this.state.searchResults && /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
3031
3033
|
title: "Clear",
|
3032
3034
|
"aria-label": "Clear",
|
3033
3035
|
type: "button",
|
@@ -3045,21 +3047,21 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3045
3047
|
searchResults: searchResults
|
3046
3048
|
} = this.state;
|
3047
3049
|
if (!searchResults) return null;
|
3048
|
-
return
|
3050
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3049
3051
|
class: "category",
|
3050
3052
|
ref: this.refs.search,
|
3051
|
-
children: [
|
3053
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3052
3054
|
class: `sticky padding-small align-${this.dir[0]}`,
|
3053
3055
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).categories.search
|
3054
|
-
}),
|
3055
|
-
children: !searchResults.length ?
|
3056
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3057
|
+
children: !searchResults.length ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3056
3058
|
class: `padding-small align-${this.dir[0]}`,
|
3057
|
-
children: this.props.onAddCustomEmoji &&
|
3059
|
+
children: this.props.onAddCustomEmoji && /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("a", {
|
3058
3060
|
onClick: this.props.onAddCustomEmoji,
|
3059
3061
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).add_custom
|
3060
3062
|
})
|
3061
3063
|
}) : searchResults.map((row, i) => {
|
3062
|
-
return
|
3064
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3063
3065
|
class: "flex",
|
3064
3066
|
children: row.map((emoji, ii) => {
|
3065
3067
|
return this.renderEmojiButton(emoji, {
|
@@ -3079,7 +3081,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3079
3081
|
} = ($7adb23b0109cc36a$export$2d0294657ab35f1b);
|
3080
3082
|
const hidden = !!this.state.searchResults;
|
3081
3083
|
const perLine = this.getPerLine();
|
3082
|
-
return
|
3084
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3083
3085
|
style: {
|
3084
3086
|
visibility: hidden ? "hidden" : undefined,
|
3085
3087
|
display: hidden ? "none" : undefined,
|
@@ -3090,14 +3092,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3090
3092
|
root: root,
|
3091
3093
|
rows: rows
|
3092
3094
|
} = this.refs.categories.get(category.id);
|
3093
|
-
return
|
3095
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3094
3096
|
"data-id": category.target ? category.target.id : category.id,
|
3095
3097
|
class: "category",
|
3096
3098
|
ref: root,
|
3097
|
-
children: [
|
3099
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3098
3100
|
class: `sticky padding-small align-${this.dir[0]}`,
|
3099
3101
|
children: category.name || ($7adb23b0109cc36a$export$dbe3113d60765c1a).categories[category.id]
|
3100
|
-
}),
|
3102
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3101
3103
|
class: "relative",
|
3102
3104
|
style: {
|
3103
3105
|
height: rows.length * this.props.emojiButtonSize
|
@@ -3111,7 +3113,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3111
3113
|
const end = start + perLine;
|
3112
3114
|
const emojiIds = category.emojis.slice(start, end);
|
3113
3115
|
if (emojiIds.length < perLine) emojiIds.push(...new Array(perLine - emojiIds.length));
|
3114
|
-
return
|
3116
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3115
3117
|
"data-index": row.index,
|
3116
3118
|
ref: ref,
|
3117
3119
|
class: "flex row",
|
@@ -3119,7 +3121,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3119
3121
|
top: i * this.props.emojiButtonSize
|
3120
3122
|
},
|
3121
3123
|
children: visible && emojiIds.map((emojiId, ii) => {
|
3122
|
-
if (!emojiId) return
|
3124
|
+
if (!emojiId) return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3123
3125
|
style: {
|
3124
3126
|
width: this.props.emojiButtonSize,
|
3125
3127
|
height: this.props.emojiButtonSize
|
@@ -3141,14 +3143,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3141
3143
|
}
|
3142
3144
|
renderSkinToneButton() {
|
3143
3145
|
if (this.props.skinTonePosition == "none") return null;
|
3144
|
-
return
|
3146
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3145
3147
|
class: "flex flex-auto flex-center flex-middle",
|
3146
3148
|
style: {
|
3147
3149
|
position: "relative",
|
3148
3150
|
width: this.props.emojiButtonSize,
|
3149
3151
|
height: this.props.emojiButtonSize
|
3150
3152
|
},
|
3151
|
-
children:
|
3153
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
3152
3154
|
type: "button",
|
3153
3155
|
ref: this.refs.skinToneButton,
|
3154
3156
|
class: "skin-tone-button flex flex-auto flex-center flex-middle",
|
@@ -3160,7 +3162,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3160
3162
|
width: this.props.emojiSize,
|
3161
3163
|
height: this.props.emojiSize
|
3162
3164
|
},
|
3163
|
-
children:
|
3165
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3164
3166
|
class: `skin-tone skin-tone-${this.state.skin}`
|
3165
3167
|
})
|
3166
3168
|
})
|
@@ -3169,7 +3171,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3169
3171
|
renderLiveRegion() {
|
3170
3172
|
const emoji = this.getEmojiByPos(this.state.pos);
|
3171
3173
|
const contents = emoji ? emoji.name : "";
|
3172
|
-
return
|
3174
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3173
3175
|
"aria-live": "polite",
|
3174
3176
|
class: "sr-only",
|
3175
3177
|
children: contents
|
@@ -3185,7 +3187,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3185
3187
|
position.top = skinToneButtonRect.bottom - baseRect.top + 3;
|
3186
3188
|
position.bottom = "auto";
|
3187
3189
|
}
|
3188
|
-
return
|
3190
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3189
3191
|
ref: this.refs.menu,
|
3190
3192
|
role: "radiogroup",
|
3191
3193
|
dir: this.dir,
|
@@ -3196,8 +3198,8 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3196
3198
|
children: [...Array(6).keys()].map(i => {
|
3197
3199
|
const skin = i + 1;
|
3198
3200
|
const checked = this.state.skin == skin;
|
3199
|
-
return
|
3200
|
-
children: [
|
3201
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3202
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("input", {
|
3201
3203
|
type: "radio",
|
3202
3204
|
name: "skin-tone",
|
3203
3205
|
value: skin,
|
@@ -3211,16 +3213,16 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3211
3213
|
this.handleSkinClick(skin);
|
3212
3214
|
}
|
3213
3215
|
}
|
3214
|
-
}),
|
3216
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
3215
3217
|
"aria-hidden": "true",
|
3216
3218
|
tabindex: "-1",
|
3217
3219
|
onClick: () => this.handleSkinClick(skin),
|
3218
3220
|
onMouseEnter: () => this.handleSkinMouseOver(skin),
|
3219
3221
|
onMouseLeave: () => this.handleSkinMouseOver(),
|
3220
3222
|
class: "option flex flex-grow flex-middle",
|
3221
|
-
children: [
|
3223
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3222
3224
|
class: `skin-tone skin-tone-${skin}`
|
3223
|
-
}),
|
3225
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3224
3226
|
class: "margin-small-lr",
|
3225
3227
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).skins[skin]
|
3226
3228
|
})]
|
@@ -3231,7 +3233,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3231
3233
|
}
|
3232
3234
|
render() {
|
3233
3235
|
const lineWidth = this.props.perLine * this.props.emojiButtonSize;
|
3234
|
-
return
|
3236
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("section", {
|
3235
3237
|
id: "root",
|
3236
3238
|
class: "flex flex-column",
|
3237
3239
|
dir: this.dir,
|
@@ -3241,13 +3243,13 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3241
3243
|
"data-emoji-set": this.props.set,
|
3242
3244
|
"data-theme": this.state.theme,
|
3243
3245
|
"data-menu": this.state.showSkins ? "" : undefined,
|
3244
|
-
children: [this.props.previewPosition == "top" && this.renderPreview(), this.props.navPosition == "top" && this.renderNav(), this.props.searchPosition == "sticky" &&
|
3246
|
+
children: [this.props.previewPosition == "top" && this.renderPreview(), this.props.navPosition == "top" && this.renderNav(), this.props.searchPosition == "sticky" && /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3245
3247
|
class: "padding-lr",
|
3246
3248
|
children: this.renderSearch()
|
3247
|
-
}),
|
3249
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3248
3250
|
ref: this.refs.scroll,
|
3249
3251
|
class: "scroll flex-grow padding-lr",
|
3250
|
-
children:
|
3252
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3251
3253
|
style: {
|
3252
3254
|
width: this.props.dynamicWidth ? "100%" : lineWidth,
|
3253
3255
|
height: "100%"
|
@@ -3316,7 +3318,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3316
3318
|
const grid = [];
|
3317
3319
|
grid.setsize = searchResults.length;
|
3318
3320
|
let row = null;
|
3319
|
-
for (
|
3321
|
+
for (const emoji of searchResults) {
|
3320
3322
|
if (!grid.length || row.length == this.getPerLine()) {
|
3321
3323
|
row = [];
|
3322
3324
|
row.__categoryId = "search";
|
@@ -3440,13 +3442,13 @@ class $efa000751917694d$export$2e2bcd8739ae039 extends ($26f27c338a96b1a6$export
|
|
3440
3442
|
};
|
3441
3443
|
await ($7adb23b0109cc36a$export$2cd8252107eb640b)(props);
|
3442
3444
|
if (this.disconnected) return;
|
3443
|
-
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)(
|
3445
|
+
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)( /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($89bd6bb200cc8fef$export$2e2bcd8739ae039), {
|
3444
3446
|
...props
|
3445
3447
|
}), this.shadowRoot);
|
3446
3448
|
}
|
3447
3449
|
constructor(props) {
|
3448
3450
|
super(props, {
|
3449
|
-
styles: (
|
3451
|
+
styles: (/* @__PURE__*/$parcel$interopDefault($329d53ba9fd7125f$exports))
|
3450
3452
|
});
|
3451
3453
|
}
|
3452
3454
|
}
|
@@ -3468,7 +3470,7 @@ function $e5534fc185f7111e$export$2e2bcd8739ae039(props) {
|
|
3468
3470
|
instance.current = null;
|
3469
3471
|
};
|
3470
3472
|
}, []);
|
3471
|
-
return
|
3473
|
+
return /* #__PURE__*/(React).createElement("div", {
|
3472
3474
|
ref: ref
|
3473
3475
|
});
|
3474
3476
|
}
|
@@ -3544,7 +3546,7 @@ function EmojiPicker(props) {
|
|
3544
3546
|
if (!i18n) {
|
3545
3547
|
return null;
|
3546
3548
|
}
|
3547
|
-
return
|
3549
|
+
return /* #__PURE__*/React.createElement($e5534fc185f7111e$export$2e2bcd8739ae039, {
|
3548
3550
|
data: undefined,
|
3549
3551
|
theme: theme,
|
3550
3552
|
previewPosition: "none",
|
@@ -3555,7 +3557,7 @@ function EmojiPicker(props) {
|
|
3555
3557
|
i18n: i18n
|
3556
3558
|
});
|
3557
3559
|
}
|
3558
|
-
|
3560
|
+
const EmojiPicker$1 = /* #__PURE__*/memo(EmojiPicker);
|
3559
3561
|
|
3560
3562
|
/**
|
3561
3563
|
* @typedef {object} Props
|
@@ -3574,7 +3576,7 @@ var EmojiPicker$1 = /*#__PURE__*/memo(EmojiPicker);
|
|
3574
3576
|
* @return {JSX.Element}
|
3575
3577
|
*/
|
3576
3578
|
function EmojiPickerContainer(_ref) {
|
3577
|
-
|
3579
|
+
const {
|
3578
3580
|
showPicker,
|
3579
3581
|
theme,
|
3580
3582
|
handleSelectEmoji,
|
@@ -3583,17 +3585,17 @@ function EmojiPickerContainer(_ref) {
|
|
3583
3585
|
position,
|
3584
3586
|
language
|
3585
3587
|
} = _ref;
|
3586
|
-
return
|
3588
|
+
return /* #__PURE__*/React.createElement("div", {
|
3587
3589
|
className: "react-emoji-picker--container"
|
3588
|
-
}, showPicker &&
|
3590
|
+
}, showPicker && /* #__PURE__*/React.createElement("div", {
|
3589
3591
|
className: "react-emoji-picker--wrapper",
|
3590
3592
|
onClick: evt => evt.stopPropagation(),
|
3591
3593
|
style: position === 'below' ? {
|
3592
3594
|
top: '40px'
|
3593
3595
|
} : {}
|
3594
|
-
},
|
3596
|
+
}, /* #__PURE__*/React.createElement("div", {
|
3595
3597
|
className: "react-emoji-picker"
|
3596
|
-
},
|
3598
|
+
}, /* #__PURE__*/React.createElement(EmojiPicker$1, {
|
3597
3599
|
theme: theme,
|
3598
3600
|
onSelectEmoji: handleSelectEmoji,
|
3599
3601
|
disableRecent: disableRecent,
|
@@ -3721,7 +3723,7 @@ const EmojiPickerWrapper = props => {
|
|
3721
3723
|
}
|
3722
3724
|
}
|
3723
3725
|
useEffect(() => {
|
3724
|
-
|
3726
|
+
let _buttonRef$current;
|
3725
3727
|
if (buttonRef !== null && buttonRef !== void 0 && (_buttonRef$current = buttonRef.current) !== null && _buttonRef$current !== void 0 && _buttonRef$current.style) {
|
3726
3728
|
buttonRef.current.style.position = "relative";
|
3727
3729
|
setCustomButton(buttonRef.current);
|
@@ -3730,7 +3732,7 @@ const EmojiPickerWrapper = props => {
|
|
3730
3732
|
setCustomButton(buttonElement);
|
3731
3733
|
}
|
3732
3734
|
}, [buttonRef, buttonElement]);
|
3733
|
-
return customButton ?
|
3735
|
+
return customButton ? /* #__PURE__*/ReactDOM.createPortal( /* #__PURE__*/React.createElement(React.Fragment, null, /* #__PURE__*/React.createElement(EmojiPickerContainer, {
|
3734
3736
|
showPicker: showPicker,
|
3735
3737
|
theme: theme,
|
3736
3738
|
handleSelectEmoji: handleSelectEmoji,
|
@@ -3738,12 +3740,12 @@ const EmojiPickerWrapper = props => {
|
|
3738
3740
|
customEmojis: customEmojis,
|
3739
3741
|
position: emojiPickerPosition,
|
3740
3742
|
language: language
|
3741
|
-
}),
|
3743
|
+
}), /* #__PURE__*/React.createElement(EmojiPickerButton, {
|
3742
3744
|
showPicker: showPicker,
|
3743
3745
|
toggleShowPicker: toggleShowPicker,
|
3744
3746
|
buttonElement: customButton,
|
3745
3747
|
buttonRef: buttonRef
|
3746
|
-
})), customButton) :
|
3748
|
+
})), customButton) : /* #__PURE__*/React.createElement(React.Fragment, null, /* #__PURE__*/React.createElement(EmojiPickerContainer, {
|
3747
3749
|
showPicker: showPicker,
|
3748
3750
|
theme: theme,
|
3749
3751
|
handleSelectEmoji: handleSelectEmoji,
|
@@ -3751,7 +3753,7 @@ const EmojiPickerWrapper = props => {
|
|
3751
3753
|
customEmojis: customEmojis,
|
3752
3754
|
position: emojiPickerPosition,
|
3753
3755
|
language: language
|
3754
|
-
}),
|
3756
|
+
}), /* #__PURE__*/React.createElement(EmojiPickerButton, {
|
3755
3757
|
showPicker: showPicker,
|
3756
3758
|
toggleShowPicker: toggleShowPicker
|
3757
3759
|
}));
|
@@ -3891,7 +3893,7 @@ function useMention(searchMention) {
|
|
3891
3893
|
|
3892
3894
|
/** @type {(event: React.KeyboardEvent) => void} */
|
3893
3895
|
const onKeyUp = useCallback(async event => {
|
3894
|
-
|
3896
|
+
let _getElementWithFocus;
|
3895
3897
|
if (typeof searchMention !== "function") return;
|
3896
3898
|
if (event.key === "Backspace" && (_getElementWithFocus = getElementWithFocus()) !== null && _getElementWithFocus !== void 0 && _getElementWithFocus.element.parentElement.hasAttribute("data-mention-id")) {
|
3897
3899
|
const elementWithFocus = getElementWithFocus();
|
@@ -3936,7 +3938,7 @@ function useMention(searchMention) {
|
|
3936
3938
|
// eslint-disable-next-line valid-jsdoc
|
3937
3939
|
/** @type {React.ForwardRefRenderFunction<Ref, Props>} */
|
3938
3940
|
const MentionUserList = (_ref, ref) => {
|
3939
|
-
|
3941
|
+
const {
|
3940
3942
|
users,
|
3941
3943
|
mentionSearchText,
|
3942
3944
|
onSelect,
|
@@ -4022,27 +4024,27 @@ const MentionUserList = (_ref, ref) => {
|
|
4022
4024
|
unsubscribe();
|
4023
4025
|
};
|
4024
4026
|
}, [addEventListener, onSelect, selectedUser, usersFiltered]);
|
4025
|
-
return
|
4027
|
+
return /* #__PURE__*/React.createElement("ul", {
|
4026
4028
|
className: "react-input-emoji--mention--list",
|
4027
4029
|
"data-testid": "mention-user-list"
|
4028
|
-
}, usersFiltered.map((user, index) =>
|
4030
|
+
}, usersFiltered.map((user, index) => /* #__PURE__*/React.createElement("li", {
|
4029
4031
|
key: user.id
|
4030
|
-
},
|
4032
|
+
}, /* #__PURE__*/React.createElement("button", {
|
4031
4033
|
type: "button",
|
4032
4034
|
onClick: handleClick(user),
|
4033
4035
|
className: "react-input-emoji--mention--item".concat(selectedUser === index ? " react-input-emoji--mention--item__selected" : ""),
|
4034
4036
|
onMouseOver: () => setSelectedUser(index)
|
4035
|
-
},
|
4037
|
+
}, /* #__PURE__*/React.createElement("img", {
|
4036
4038
|
className: "react-input-emoji--mention--item--img",
|
4037
4039
|
src: user.image
|
4038
|
-
}),
|
4040
|
+
}), /* #__PURE__*/React.createElement("div", {
|
4039
4041
|
className: "react-input-emoji--mention--item--name",
|
4040
4042
|
dangerouslySetInnerHTML: {
|
4041
4043
|
__html: user.nameHtml
|
4042
4044
|
}
|
4043
4045
|
})))));
|
4044
4046
|
};
|
4045
|
-
const MentionUserListWithRef =
|
4047
|
+
const MentionUserListWithRef = /* #__PURE__*/forwardRef(MentionUserList);
|
4046
4048
|
|
4047
4049
|
// @ts-check
|
4048
4050
|
|
@@ -4069,7 +4071,7 @@ const MentionUserListWithRef = /*#__PURE__*/forwardRef(MentionUserList);
|
|
4069
4071
|
// eslint-disable-next-line valid-jsdoc
|
4070
4072
|
/** @type {React.FC<Props>} */
|
4071
4073
|
const MentionWrapper = _ref => {
|
4072
|
-
|
4074
|
+
const {
|
4073
4075
|
searchMention,
|
4074
4076
|
addEventListener,
|
4075
4077
|
appendContent,
|
@@ -4167,16 +4169,16 @@ const MentionWrapper = _ref => {
|
|
4167
4169
|
onSelectUser();
|
4168
4170
|
appendContent("<span class=\"react-input-emoji--mention--text\" data-mention-id=\"".concat(user.id, "\" data-mention-name=\"").concat(user.name, "\">@").concat(user.name, "</span> "));
|
4169
4171
|
}
|
4170
|
-
return
|
4172
|
+
return /* #__PURE__*/React.createElement(React.Fragment, null, loading ? /* #__PURE__*/React.createElement("div", {
|
4171
4173
|
className: "react-input-emoji--mention--container"
|
4172
|
-
},
|
4174
|
+
}, /* #__PURE__*/React.createElement("div", {
|
4173
4175
|
className: "react-input-emoji--mention--loading"
|
4174
|
-
},
|
4176
|
+
}, /* #__PURE__*/React.createElement("div", {
|
4175
4177
|
className: "react-input-emoji--mention--loading--spinner"
|
4176
|
-
}, "Loading..."))) : showUserList &&
|
4178
|
+
}, "Loading..."))) : showUserList && /* #__PURE__*/React.createElement("div", {
|
4177
4179
|
className: "react-input-emoji--mention--container",
|
4178
4180
|
onClick: evt => evt.stopPropagation()
|
4179
|
-
},
|
4181
|
+
}, /* #__PURE__*/React.createElement(MentionUserListWithRef, {
|
4180
4182
|
ref: metionUserListRef,
|
4181
4183
|
mentionSearchText: mentionSearchText,
|
4182
4184
|
users: mentionUsers,
|
@@ -4376,7 +4378,7 @@ function InputEmoji(props, ref) {
|
|
4376
4378
|
pollute
|
4377
4379
|
} = usePollute();
|
4378
4380
|
const updateHTML = useCallback(function () {
|
4379
|
-
|
4381
|
+
const nextValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
4380
4382
|
if (textInputRef.current === null) return;
|
4381
4383
|
textInputRef.current.html = replaceAllTextEmojis(nextValue);
|
4382
4384
|
sanitizedTextRef.current = nextValue;
|
@@ -4507,14 +4509,14 @@ function InputEmoji(props, ref) {
|
|
4507
4509
|
document.execCommand("insertHTML", false, content);
|
4508
4510
|
}
|
4509
4511
|
}
|
4510
|
-
return
|
4512
|
+
return /* #__PURE__*/React.createElement("div", {
|
4511
4513
|
className: "react-emoji"
|
4512
|
-
},
|
4514
|
+
}, /* #__PURE__*/React.createElement(MentionWrapper, {
|
4513
4515
|
searchMention: searchMention,
|
4514
4516
|
addEventListener: addEventListener,
|
4515
4517
|
appendContent: appendContent,
|
4516
4518
|
addSanitizeFn: addSanitizeFn
|
4517
|
-
}),
|
4519
|
+
}), /* #__PURE__*/React.createElement(TextInputWithRef, {
|
4518
4520
|
ref: textInputRef,
|
4519
4521
|
onCopy: handleCopy,
|
4520
4522
|
onPaste: handlePaste,
|
@@ -4539,7 +4541,7 @@ function InputEmoji(props, ref) {
|
|
4539
4541
|
tabIndex: tabIndex,
|
4540
4542
|
className: inputClass,
|
4541
4543
|
onChange: handleTextInputChange
|
4542
|
-
}),
|
4544
|
+
}), /* #__PURE__*/React.createElement(EmojiPickerWrapper, {
|
4543
4545
|
theme: theme,
|
4544
4546
|
keepOpened: keepOpened,
|
4545
4547
|
disableRecent: disableRecent,
|
@@ -4552,7 +4554,7 @@ function InputEmoji(props, ref) {
|
|
4552
4554
|
language: language
|
4553
4555
|
}));
|
4554
4556
|
}
|
4555
|
-
const InputEmojiWithRef =
|
4557
|
+
const InputEmojiWithRef = /* #__PURE__*/forwardRef(InputEmoji);
|
4556
4558
|
InputEmojiWithRef.defaultProps = {
|
4557
4559
|
theme: /** @type {const} */"auto",
|
4558
4560
|
height: 30,
|
@@ -4571,4 +4573,4 @@ InputEmojiWithRef.defaultProps = {
|
|
4571
4573
|
};
|
4572
4574
|
|
4573
4575
|
export { InputEmojiWithRef as default };
|
4574
|
-
|
4576
|
+
// # sourceMappingURL=index.es.js.map
|