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.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
const React = require('react');
|
4
|
+
const server = require('react-dom/server');
|
5
|
+
const ReactDOM = require('react-dom');
|
6
6
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
8
8
|
|
9
|
-
|
10
|
-
|
9
|
+
const React__default = /* #__PURE__*/_interopDefaultLegacy(React);
|
10
|
+
const ReactDOM__default = /* #__PURE__*/_interopDefaultLegacy(ReactDOM);
|
11
11
|
|
12
12
|
function styleInject(css, ref) {
|
13
13
|
if (ref === void 0) ref = {};
|
14
|
-
|
14
|
+
const insertAt = ref.insertAt;
|
15
15
|
if (!css || typeof document === 'undefined') {
|
16
16
|
return;
|
17
17
|
}
|
18
|
-
|
19
|
-
|
18
|
+
const head = document.head || document.getElementsByTagName('head')[0];
|
19
|
+
const style = document.createElement('style');
|
20
20
|
style.type = 'text/css';
|
21
21
|
if (insertAt === 'top') {
|
22
22
|
if (head.firstChild) {
|
@@ -34,7 +34,7 @@ function styleInject(css, ref) {
|
|
34
34
|
}
|
35
35
|
}
|
36
36
|
|
37
|
-
|
37
|
+
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";
|
38
38
|
styleInject(css_248z);
|
39
39
|
|
40
40
|
/* eslint-disable valid-jsdoc */
|
@@ -86,7 +86,7 @@ function getAllEmojisFromText(text) {
|
|
86
86
|
* @return {string}
|
87
87
|
*/
|
88
88
|
function getImageEmoji(emoji) {
|
89
|
-
|
89
|
+
let _emojiPickerEl$shadow;
|
90
90
|
/** @type {HTMLElement | null} */
|
91
91
|
const emojiPickerEl = document.querySelector('em-emoji-picker');
|
92
92
|
if (!emojiPickerEl) {
|
@@ -182,7 +182,7 @@ function handlePasteHtmlAtCaret(html) {
|
|
182
182
|
sel = window.getSelection();
|
183
183
|
if (sel === null) return;
|
184
184
|
if (sel.getRangeAt && sel.rangeCount) {
|
185
|
-
|
185
|
+
let _currentRangeCached;
|
186
186
|
range = (_currentRangeCached = currentRangeCached) !== null && _currentRangeCached !== void 0 ? _currentRangeCached : sel.getRangeAt(0);
|
187
187
|
range.deleteContents();
|
188
188
|
|
@@ -230,7 +230,7 @@ function replaceEmojiToString(container) {
|
|
230
230
|
* @return {number}
|
231
231
|
*/
|
232
232
|
function totalCharacters(_ref2) {
|
233
|
-
|
233
|
+
const {
|
234
234
|
text,
|
235
235
|
html
|
236
236
|
} = _ref2;
|
@@ -342,14 +342,14 @@ function addLineBreak() {
|
|
342
342
|
function replace(string, regexpOrSubstr, newValueOrFn, globalOffset) {
|
343
343
|
if (typeof string !== 'string') throw new Error('First param must be a string');
|
344
344
|
if (typeof regexpOrSubstr !== 'string' && !(regexpOrSubstr instanceof RegExp)) throw new Error('Second param must be a string pattern or a regular expression');
|
345
|
-
|
345
|
+
const fn = typeof regexpOrSubstr === 'string' ? replaceUsingString : replaceUsingRegexp;
|
346
346
|
return fn(string, regexpOrSubstr, newValueOrFn, globalOffset);
|
347
347
|
}
|
348
348
|
function replaceUsingString(string, patternString, newValueOrFn, globalOffset) {
|
349
|
-
|
349
|
+
const index = string.indexOf(patternString);
|
350
350
|
if (index >= 0) {
|
351
|
-
|
352
|
-
|
351
|
+
const arr = [];
|
352
|
+
const endIndex = index + patternString.length;
|
353
353
|
if (index > 0) {
|
354
354
|
arr.push(string.substring(0, index));
|
355
355
|
}
|
@@ -363,14 +363,14 @@ function replaceUsingString(string, patternString, newValueOrFn, globalOffset) {
|
|
363
363
|
}
|
364
364
|
}
|
365
365
|
function replaceUsingRegexp(string, regexp, newValueOrFn, globalOffset) {
|
366
|
-
|
367
|
-
|
368
|
-
|
366
|
+
const output = [];
|
367
|
+
const replacerIsFn = typeof newValueOrFn === 'function';
|
368
|
+
const storedLastIndex = regexp.lastIndex;
|
369
369
|
regexp.lastIndex = 0;
|
370
|
-
|
371
|
-
|
370
|
+
let result;
|
371
|
+
let lastIndex = 0;
|
372
372
|
while (result = regexp.exec(string)) {
|
373
|
-
|
373
|
+
const index = result.index;
|
374
374
|
if (result[0] === '') {
|
375
375
|
// When the regexp is an empty string
|
376
376
|
// we still want to advance our cursor to the next item.
|
@@ -380,9 +380,9 @@ function replaceUsingRegexp(string, regexp, newValueOrFn, globalOffset) {
|
|
380
380
|
if (index !== lastIndex) {
|
381
381
|
output.push(string.substring(lastIndex, index));
|
382
382
|
}
|
383
|
-
|
383
|
+
const match = result[0];
|
384
384
|
lastIndex = index + match.length;
|
385
|
-
|
385
|
+
const out = replacerIsFn ? newValueOrFn.apply(this, result.concat(index + globalOffset, result.input)) : newValueOrFn;
|
386
386
|
output.push(out);
|
387
387
|
if (!regexp.global) {
|
388
388
|
break;
|
@@ -394,17 +394,17 @@ function replaceUsingRegexp(string, regexp, newValueOrFn, globalOffset) {
|
|
394
394
|
regexp.lastIndex = storedLastIndex;
|
395
395
|
return output;
|
396
396
|
}
|
397
|
-
|
397
|
+
const stringReplaceToArray = function stringReplaceToArray(stringOrArray, regexpOrSubstr, newSubStrOrFn) {
|
398
398
|
if (typeof stringOrArray === 'string') {
|
399
399
|
return replace(stringOrArray, regexpOrSubstr, newSubStrOrFn, 0);
|
400
400
|
} else if (!Array.isArray(stringOrArray) || !stringOrArray[0]) {
|
401
401
|
throw new TypeError('First argument must be an array or non-empty string');
|
402
402
|
} else {
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
for (
|
407
|
-
|
403
|
+
const len = stringOrArray.length;
|
404
|
+
const output = [];
|
405
|
+
let globalOffset = 0;
|
406
|
+
for (let i = 0; i < len; ++i) {
|
407
|
+
const arrayItem = stringOrArray[i];
|
408
408
|
if (typeof arrayItem === 'string') {
|
409
409
|
output.push.apply(output, replace(arrayItem, regexpOrSubstr, newSubStrOrFn, globalOffset));
|
410
410
|
globalOffset += arrayItem.length;
|
@@ -431,12 +431,12 @@ var stringReplaceToArray = function stringReplaceToArray(stringOrArray, regexpOr
|
|
431
431
|
|
432
432
|
// RegExp based on emoji's official Unicode standards
|
433
433
|
// http://www.unicode.org/Public/UNIDATA/EmojiSources.txt
|
434
|
-
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;
|
434
|
+
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;
|
435
435
|
function toCodePoint(unicodeSurrogates, sep) {
|
436
|
-
|
437
|
-
c = 0
|
438
|
-
p = 0
|
439
|
-
i = 0;
|
436
|
+
const r = [];
|
437
|
+
let c = 0;
|
438
|
+
let p = 0;
|
439
|
+
let i = 0;
|
440
440
|
while (i < unicodeSurrogates.length) {
|
441
441
|
c = unicodeSurrogates.charCodeAt(i++);
|
442
442
|
if (p) {
|
@@ -453,10 +453,10 @@ function toCodePoint(unicodeSurrogates, sep) {
|
|
453
453
|
|
454
454
|
// avoid runtime RegExp creation for not so smart,
|
455
455
|
// not JIT based, and old browsers / engines
|
456
|
-
|
456
|
+
const UFE0Fg = /\uFE0F/g;
|
457
457
|
|
458
458
|
// avoid using a string literal like '\u200D' here because minifiers expand it inline
|
459
|
-
|
459
|
+
const U200D = String.fromCharCode(0x200D);
|
460
460
|
|
461
461
|
/**
|
462
462
|
* Used to both remove the possible variant
|
@@ -468,17 +468,17 @@ function grabTheRightIcon(rawText) {
|
|
468
468
|
// if variant is present as \uFE0F
|
469
469
|
return toCodePoint(rawText.indexOf(U200D) < 0 ? rawText.replace(UFE0Fg, '') : rawText);
|
470
470
|
}
|
471
|
-
|
471
|
+
const replaceEmoji$1 = function replaceEmoji(string, render) {
|
472
472
|
// Note: the latest regex added an empty matching group, so we ignore it.
|
473
473
|
return stringReplaceToArray(string, re, function emojiReplacer(match, _, offset) {
|
474
|
-
|
474
|
+
const icon = grabTheRightIcon(match);
|
475
475
|
return render(icon, match, offset);
|
476
476
|
});
|
477
477
|
};
|
478
478
|
|
479
|
-
|
480
|
-
|
481
|
-
|
479
|
+
const createElement = React__default["default"].createElement;
|
480
|
+
const pageProtocol = typeof location === 'undefined' ? '' : location.protocol === 'https:' ? 'https:' : 'http:';
|
481
|
+
const emojiStyle = {
|
482
482
|
height: '1em',
|
483
483
|
width: '1em',
|
484
484
|
margin: '0 .05em 0 .1em',
|
@@ -492,7 +492,7 @@ function normalizeProtocol(protocol) {
|
|
492
492
|
}
|
493
493
|
return protocol;
|
494
494
|
}
|
495
|
-
|
495
|
+
const makeTwemojiRenderer$1 = function makeTwemojiRenderer(options) {
|
496
496
|
options = merge({
|
497
497
|
protocol: pageProtocol,
|
498
498
|
baseUrl: '//cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/',
|
@@ -501,7 +501,7 @@ var makeTwemojiRenderer$1 = function makeTwemojiRenderer(options) {
|
|
501
501
|
props: null
|
502
502
|
}, options);
|
503
503
|
return function renderTwemoji(icon, match, offset) {
|
504
|
-
|
504
|
+
let src = '';
|
505
505
|
if (options.baseUrl.indexOf('http') !== 0) {
|
506
506
|
src += normalizeProtocol(options.protocol);
|
507
507
|
}
|
@@ -516,12 +516,12 @@ var makeTwemojiRenderer$1 = function makeTwemojiRenderer(options) {
|
|
516
516
|
};
|
517
517
|
};
|
518
518
|
function merge() {
|
519
|
-
|
520
|
-
len = arguments.length;
|
521
|
-
for (
|
522
|
-
|
519
|
+
const out = {};
|
520
|
+
const len = arguments.length;
|
521
|
+
for (let i = 0; i < len; ++i) {
|
522
|
+
const source = arguments[i];
|
523
523
|
if (source) {
|
524
|
-
for (
|
524
|
+
for (const key in source) {
|
525
525
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
526
526
|
out[key] = source[key];
|
527
527
|
}
|
@@ -531,16 +531,16 @@ function merge() {
|
|
531
531
|
return out;
|
532
532
|
}
|
533
533
|
|
534
|
-
|
534
|
+
const replaceEmoji = replaceEmoji$1;
|
535
535
|
|
536
|
-
|
536
|
+
const makeTwemojiRenderer = makeTwemojiRenderer$1;
|
537
537
|
|
538
|
-
|
539
|
-
|
538
|
+
const reactEasyEmoji = function reactEasyEmoji(element, optionsOrFn) {
|
539
|
+
const render = typeof optionsOrFn === 'function' ? optionsOrFn : makeTwemojiRenderer(optionsOrFn);
|
540
540
|
return replaceEmoji(element, render);
|
541
541
|
};
|
542
542
|
|
543
|
-
|
543
|
+
const emoji = reactEasyEmoji;
|
544
544
|
|
545
545
|
// @ts-check
|
546
546
|
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);
|
@@ -642,7 +642,7 @@ function handleEmoji(text) {
|
|
642
642
|
* @param {Props} props
|
643
643
|
*/
|
644
644
|
function useExpose(_ref) {
|
645
|
-
|
645
|
+
const {
|
646
646
|
ref,
|
647
647
|
textInputRef,
|
648
648
|
setValue,
|
@@ -713,9 +713,9 @@ function useEmit(textInputRef, onResize, onChange) {
|
|
713
713
|
}
|
714
714
|
|
715
715
|
function ownKeys(e, r) {
|
716
|
-
|
716
|
+
const t = Object.keys(e);
|
717
717
|
if (Object.getOwnPropertySymbols) {
|
718
|
-
|
718
|
+
let o = Object.getOwnPropertySymbols(e);
|
719
719
|
r && (o = o.filter(function (r) {
|
720
720
|
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
721
721
|
})), t.push.apply(t, o);
|
@@ -723,7 +723,7 @@ function ownKeys(e, r) {
|
|
723
723
|
return t;
|
724
724
|
}
|
725
725
|
function _objectSpread2(e) {
|
726
|
-
for (
|
726
|
+
for (let r = 1; r < arguments.length; r++) {
|
727
727
|
var t = null != arguments[r] ? arguments[r] : {};
|
728
728
|
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
729
729
|
_defineProperty(e, r, t[r]);
|
@@ -749,9 +749,9 @@ function _defineProperty(obj, key, value) {
|
|
749
749
|
}
|
750
750
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
751
751
|
if (source == null) return {};
|
752
|
-
|
753
|
-
|
754
|
-
|
752
|
+
const target = {};
|
753
|
+
const sourceKeys = Object.keys(source);
|
754
|
+
let key; let i;
|
755
755
|
for (i = 0; i < sourceKeys.length; i++) {
|
756
756
|
key = sourceKeys[i];
|
757
757
|
if (excluded.indexOf(key) >= 0) continue;
|
@@ -761,10 +761,10 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
761
761
|
}
|
762
762
|
function _objectWithoutProperties(source, excluded) {
|
763
763
|
if (source == null) return {};
|
764
|
-
|
765
|
-
|
764
|
+
const target = _objectWithoutPropertiesLoose(source, excluded);
|
765
|
+
let key; let i;
|
766
766
|
if (Object.getOwnPropertySymbols) {
|
767
|
-
|
767
|
+
const sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
768
768
|
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
769
769
|
key = sourceSymbolKeys[i];
|
770
770
|
if (excluded.indexOf(key) >= 0) continue;
|
@@ -776,16 +776,16 @@ function _objectWithoutProperties(source, excluded) {
|
|
776
776
|
}
|
777
777
|
function _toPrimitive(input, hint) {
|
778
778
|
if (typeof input !== "object" || input === null) return input;
|
779
|
-
|
779
|
+
const prim = input[Symbol.toPrimitive];
|
780
780
|
if (prim !== undefined) {
|
781
|
-
|
781
|
+
const res = prim.call(input, hint || "default");
|
782
782
|
if (typeof res !== "object") return res;
|
783
783
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
784
784
|
}
|
785
785
|
return (hint === "string" ? String : Number)(input);
|
786
786
|
}
|
787
787
|
function _toPropertyKey(arg) {
|
788
|
-
|
788
|
+
const key = _toPrimitive(arg, "string");
|
789
789
|
return typeof key === "symbol" ? key : String(key);
|
790
790
|
}
|
791
791
|
|
@@ -824,14 +824,14 @@ const _excluded = ["placeholder", "style", "tabIndex", "className", "onChange"];
|
|
824
824
|
// eslint-disable-next-line valid-jsdoc
|
825
825
|
/** @type {React.ForwardRefRenderFunction<Ref, Props>} */
|
826
826
|
const TextInput = (_ref, ref) => {
|
827
|
-
|
827
|
+
const {
|
828
828
|
placeholder,
|
829
829
|
style,
|
830
830
|
tabIndex,
|
831
831
|
className,
|
832
832
|
onChange
|
833
|
-
} = _ref
|
834
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
833
|
+
} = _ref;
|
834
|
+
const props = _objectWithoutProperties(_ref, _excluded);
|
835
835
|
React.useImperativeHandle(ref, () => ({
|
836
836
|
appendContent: html => {
|
837
837
|
if (textInputRef.current) {
|
@@ -965,17 +965,17 @@ const TextInput = (_ref, ref) => {
|
|
965
965
|
onChange(textInputRef.current.innerHTML);
|
966
966
|
}
|
967
967
|
}
|
968
|
-
return
|
968
|
+
return /* #__PURE__*/React__default["default"].createElement("div", {
|
969
969
|
className: "react-input-emoji--container",
|
970
970
|
style: style
|
971
|
-
},
|
971
|
+
}, /* #__PURE__*/React__default["default"].createElement("div", {
|
972
972
|
className: "react-input-emoji--wrapper",
|
973
973
|
onClick: handleClick
|
974
|
-
},
|
974
|
+
}, /* #__PURE__*/React__default["default"].createElement("div", {
|
975
975
|
ref: placeholderRef,
|
976
976
|
className: "react-input-emoji--placeholder",
|
977
977
|
style: placeholderStyle
|
978
|
-
}, placeholder),
|
978
|
+
}, placeholder), /* #__PURE__*/React__default["default"].createElement("div", {
|
979
979
|
ref: textInputRef,
|
980
980
|
onKeyDown: handleKeyDown,
|
981
981
|
onKeyUp: handleKeyUp,
|
@@ -989,7 +989,7 @@ const TextInput = (_ref, ref) => {
|
|
989
989
|
style: inputStyle
|
990
990
|
})));
|
991
991
|
};
|
992
|
-
const TextInputWithRef =
|
992
|
+
const TextInputWithRef = /* #__PURE__*/React.forwardRef(TextInput);
|
993
993
|
|
994
994
|
// vendors
|
995
995
|
|
@@ -1007,7 +1007,7 @@ const TextInputWithRef = /*#__PURE__*/React.forwardRef(TextInput);
|
|
1007
1007
|
* @return {JSX.Element}
|
1008
1008
|
*/
|
1009
1009
|
function EmojiPickerButton(_ref) {
|
1010
|
-
|
1010
|
+
const {
|
1011
1011
|
showPicker,
|
1012
1012
|
toggleShowPicker,
|
1013
1013
|
buttonElement,
|
@@ -1016,7 +1016,7 @@ function EmojiPickerButton(_ref) {
|
|
1016
1016
|
const localButtonRef = React.useRef(null);
|
1017
1017
|
const [showCustomButtonContent, setShowCustomButtonContent] = React.useState(false);
|
1018
1018
|
React.useEffect(() => {
|
1019
|
-
|
1019
|
+
let _buttonRef$current$ch; let _buttonRef$current; let _buttonElement$childN; let _buttonElement$childN2;
|
1020
1020
|
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) {
|
1021
1021
|
localButtonRef.current.appendChild(buttonRef.current.childNodes[0]);
|
1022
1022
|
setShowCustomButtonContent(true);
|
@@ -1025,20 +1025,20 @@ function EmojiPickerButton(_ref) {
|
|
1025
1025
|
setShowCustomButtonContent(true);
|
1026
1026
|
}
|
1027
1027
|
}, [buttonElement === null || buttonElement === void 0 ? void 0 : buttonElement.childNodes]);
|
1028
|
-
return
|
1028
|
+
return /* #__PURE__*/React__default["default"].createElement("button", {
|
1029
1029
|
ref: localButtonRef,
|
1030
1030
|
type: "button",
|
1031
1031
|
className: "react-input-emoji--button".concat(showPicker ? " react-input-emoji--button__show" : ""),
|
1032
1032
|
onClick: toggleShowPicker
|
1033
|
-
}, !showCustomButtonContent &&
|
1033
|
+
}, !showCustomButtonContent && /* #__PURE__*/React__default["default"].createElement("svg", {
|
1034
1034
|
xmlns: "http://www.w3.org/2000/svg",
|
1035
1035
|
viewBox: "0 0 24 24",
|
1036
1036
|
width: "24",
|
1037
1037
|
height: "24",
|
1038
1038
|
className: "react-input-emoji--button--icon"
|
1039
|
-
},
|
1039
|
+
}, /* #__PURE__*/React__default["default"].createElement("path", {
|
1040
1040
|
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"
|
1041
|
-
}),
|
1041
|
+
}), /* #__PURE__*/React__default["default"].createElement("path", {
|
1042
1042
|
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"
|
1043
1043
|
})));
|
1044
1044
|
}
|
@@ -1055,34 +1055,34 @@ function $c770c458706daa72$export$2e2bcd8739ae039(obj, key, value) {
|
|
1055
1055
|
});else obj[key] = value;
|
1056
1056
|
return obj;
|
1057
1057
|
}
|
1058
|
-
|
1059
|
-
$fb96b826c0c5f37a$export$41c562ebe57d11e2
|
1060
|
-
$fb96b826c0c5f37a$var$u
|
1061
|
-
$fb96b826c0c5f37a$var$t
|
1062
|
-
$fb96b826c0c5f37a$var$r
|
1063
|
-
$fb96b826c0c5f37a$var$o
|
1064
|
-
$fb96b826c0c5f37a$var$e = {}
|
1065
|
-
$fb96b826c0c5f37a$var$c = []
|
1066
|
-
$fb96b826c0c5f37a$var$s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
1058
|
+
let $fb96b826c0c5f37a$var$n;
|
1059
|
+
let $fb96b826c0c5f37a$export$41c562ebe57d11e2;
|
1060
|
+
let $fb96b826c0c5f37a$var$u;
|
1061
|
+
let $fb96b826c0c5f37a$var$t;
|
1062
|
+
let $fb96b826c0c5f37a$var$r;
|
1063
|
+
let $fb96b826c0c5f37a$var$o;
|
1064
|
+
const $fb96b826c0c5f37a$var$e = {};
|
1065
|
+
const $fb96b826c0c5f37a$var$c = [];
|
1066
|
+
const $fb96b826c0c5f37a$var$s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
|
1067
1067
|
function $fb96b826c0c5f37a$var$a(n1, l1) {
|
1068
|
-
for (
|
1068
|
+
for (const u1 in l1) n1[u1] = l1[u1];
|
1069
1069
|
return n1;
|
1070
1070
|
}
|
1071
1071
|
function $fb96b826c0c5f37a$var$h(n2) {
|
1072
|
-
|
1072
|
+
const l2 = n2.parentNode;
|
1073
1073
|
l2 && l2.removeChild(n2);
|
1074
1074
|
}
|
1075
1075
|
function $fb96b826c0c5f37a$export$c8a8987d4410bf2d(l3, u2, i1) {
|
1076
|
-
|
1077
|
-
r1
|
1078
|
-
o1
|
1079
|
-
f1 = {};
|
1076
|
+
let t1;
|
1077
|
+
let r1;
|
1078
|
+
let o1;
|
1079
|
+
const f1 = {};
|
1080
1080
|
for (o1 in u2) "key" == o1 ? t1 = u2[o1] : "ref" == o1 ? r1 = u2[o1] : f1[o1] = u2[o1];
|
1081
1081
|
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]);
|
1082
1082
|
return $fb96b826c0c5f37a$var$y(l3, f1, t1, r1, null);
|
1083
1083
|
}
|
1084
1084
|
function $fb96b826c0c5f37a$var$y(n3, i2, t2, r2, o2) {
|
1085
|
-
|
1085
|
+
const f2 = {
|
1086
1086
|
type: n3,
|
1087
1087
|
props: i2,
|
1088
1088
|
key: t2,
|
@@ -1116,7 +1116,7 @@ function $fb96b826c0c5f37a$var$k(n6, l5) {
|
|
1116
1116
|
return "function" == typeof n6.type ? $fb96b826c0c5f37a$var$k(n6) : null;
|
1117
1117
|
}
|
1118
1118
|
function $fb96b826c0c5f37a$var$b(n7) {
|
1119
|
-
|
1119
|
+
let l6; let u4;
|
1120
1120
|
if (null != (n7 = n7.__) && null != n7.__c) {
|
1121
1121
|
for (n7.__e = n7.__c.base = null, l6 = 0; l6 < n7.__k.length; l6++) if (null != (u4 = n7.__k[l6]) && null != u4.__e) {
|
1122
1122
|
n7.__e = n7.__c.base = u4.__e;
|
@@ -1132,20 +1132,20 @@ function $fb96b826c0c5f37a$var$g() {
|
|
1132
1132
|
for (var n9; $fb96b826c0c5f37a$var$g.__r = $fb96b826c0c5f37a$var$t.length;) n9 = $fb96b826c0c5f37a$var$t.sort(function (n10, l7) {
|
1133
1133
|
return n10.__v.__b - l7.__v.__b;
|
1134
1134
|
}), $fb96b826c0c5f37a$var$t = [], n9.some(function (n11) {
|
1135
|
-
|
1135
|
+
let l8; let u5; let i3; let t3; let r3; let o3;
|
1136
1136
|
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)));
|
1137
1137
|
});
|
1138
1138
|
}
|
1139
1139
|
function $fb96b826c0c5f37a$var$w(n12, l9, u6, i4, t4, r4, o4, f3, s1, a1) {
|
1140
|
-
|
1141
|
-
v1
|
1142
|
-
p1
|
1143
|
-
_1
|
1144
|
-
b1
|
1145
|
-
m1
|
1146
|
-
g1
|
1147
|
-
w1 = i4 && i4.__k || $fb96b826c0c5f37a$var$c
|
1148
|
-
A1 = w1.length;
|
1140
|
+
let h1;
|
1141
|
+
let v1;
|
1142
|
+
let p1;
|
1143
|
+
let _1;
|
1144
|
+
let b1;
|
1145
|
+
let m1;
|
1146
|
+
let g1;
|
1147
|
+
const w1 = i4 && i4.__k || $fb96b826c0c5f37a$var$c;
|
1148
|
+
const A1 = w1.length;
|
1149
1149
|
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, {
|
1150
1150
|
children: _1
|
1151
1151
|
}, null, null, null) : _1.__b > 0 ? $fb96b826c0c5f37a$var$y(_1.type, _1.props, _1.key, null, _1.__v) : _1)) {
|
@@ -1171,7 +1171,7 @@ function $fb96b826c0c5f37a$export$47e4c5b300681277(n14, l11) {
|
|
1171
1171
|
}) : l11.push(n14)), l11;
|
1172
1172
|
}
|
1173
1173
|
function $fb96b826c0c5f37a$var$P(n16, l12, u8, i6, t6, r6) {
|
1174
|
-
|
1174
|
+
let o5; let f4; let e1;
|
1175
1175
|
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 {
|
1176
1176
|
for (f4 = r6, e1 = 0; (f4 = f4.nextSibling) && e1 < i6.length; e1 += 2) if (f4 == t6) break n;
|
1177
1177
|
n16.insertBefore(t6, r6), o5 = r6;
|
@@ -1179,7 +1179,7 @@ function $fb96b826c0c5f37a$var$P(n16, l12, u8, i6, t6, r6) {
|
|
1179
1179
|
return void 0 !== o5 ? o5 : t6.nextSibling;
|
1180
1180
|
}
|
1181
1181
|
function $fb96b826c0c5f37a$var$C(n17, l13, u9, i7, t7) {
|
1182
|
-
|
1182
|
+
let r7;
|
1183
1183
|
for (r7 in u9) "children" === r7 || "key" === r7 || r7 in l13 || $fb96b826c0c5f37a$var$H(n17, r7, null, u9[r7], i7);
|
1184
1184
|
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);
|
1185
1185
|
}
|
@@ -1187,7 +1187,7 @@ function $fb96b826c0c5f37a$var$$(n18, l14, u10) {
|
|
1187
1187
|
"-" === l14[0] ? n18.setProperty(l14, u10) : n18[l14] = null == u10 ? "" : "number" != typeof u10 || $fb96b826c0c5f37a$var$s.test(l14) ? u10 : u10 + "px";
|
1188
1188
|
}
|
1189
1189
|
function $fb96b826c0c5f37a$var$H(n19, l15, u11, i8, t8) {
|
1190
|
-
|
1190
|
+
let r8;
|
1191
1191
|
n: if ("style" === l15) {
|
1192
1192
|
if ("string" == typeof u11) n19.style.cssText = u11;else {
|
1193
1193
|
if ("string" == typeof i8 && (n19.style.cssText = i8 = ""), i8) for (l15 in i8) u11 && l15 in u11 || $fb96b826c0c5f37a$var$$(n19.style, l15, "");
|
@@ -1208,18 +1208,18 @@ function $fb96b826c0c5f37a$var$T(n21) {
|
|
1208
1208
|
this.l[n21.type + !0]($fb96b826c0c5f37a$export$41c562ebe57d11e2.event ? $fb96b826c0c5f37a$export$41c562ebe57d11e2.event(n21) : n21);
|
1209
1209
|
}
|
1210
1210
|
function $fb96b826c0c5f37a$var$j(n22, u12, i9, t9, r9, o6, f5, e2, c1) {
|
1211
|
-
|
1212
|
-
h2
|
1213
|
-
v2
|
1214
|
-
y1
|
1215
|
-
p2
|
1216
|
-
k1
|
1217
|
-
b2
|
1218
|
-
m2
|
1219
|
-
g2
|
1220
|
-
x1
|
1221
|
-
A2
|
1222
|
-
P1 = u12.type;
|
1211
|
+
let s2;
|
1212
|
+
let h2;
|
1213
|
+
let v2;
|
1214
|
+
let y1;
|
1215
|
+
let p2;
|
1216
|
+
let k1;
|
1217
|
+
let b2;
|
1218
|
+
let m2;
|
1219
|
+
let g2;
|
1220
|
+
let x1;
|
1221
|
+
let A2;
|
1222
|
+
const P1 = u12.type;
|
1223
1223
|
if (void 0 !== u12.constructor) return null;
|
1224
1224
|
null != i9.__h && (c1 = i9.__h, e2 = u12.__e = i9.__e, u12.__h = null, o6 = [e2]), (s2 = $fb96b826c0c5f37a$export$41c562ebe57d11e2.__b) && s2(u12);
|
1225
1225
|
try {
|
@@ -1254,13 +1254,13 @@ function $fb96b826c0c5f37a$var$z(n25, u13) {
|
|
1254
1254
|
});
|
1255
1255
|
}
|
1256
1256
|
function $fb96b826c0c5f37a$var$L(l16, u15, i10, t10, r10, o7, f6, c2) {
|
1257
|
-
|
1258
|
-
a2
|
1259
|
-
v3
|
1260
|
-
y2 = i10.props
|
1261
|
-
p3 = u15.props
|
1262
|
-
d1 = u15.type
|
1263
|
-
_2 = 0;
|
1257
|
+
let s3;
|
1258
|
+
let a2;
|
1259
|
+
let v3;
|
1260
|
+
let y2 = i10.props;
|
1261
|
+
const p3 = u15.props;
|
1262
|
+
const d1 = u15.type;
|
1263
|
+
let _2 = 0;
|
1264
1264
|
if ("svg" === d1 && (r10 = !0), null != o7) {
|
1265
1265
|
for (; _2 < o7.length; _2++) if ((s3 = o7[_2]) && "setAttribute" in s3 == !!d1 && (d1 ? s3.localName === d1 : 3 === s3.nodeType)) {
|
1266
1266
|
l16 = s3, o7[_2] = null;
|
@@ -1289,7 +1289,7 @@ function $fb96b826c0c5f37a$var$M(n28, u16, i11) {
|
|
1289
1289
|
}
|
1290
1290
|
}
|
1291
1291
|
function $fb96b826c0c5f37a$var$N(n30, u17, i12) {
|
1292
|
-
|
1292
|
+
let t11; let r11;
|
1293
1293
|
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)) {
|
1294
1294
|
if (t11.componentWillUnmount) try {
|
1295
1295
|
t11.componentWillUnmount();
|
@@ -1305,7 +1305,7 @@ function $fb96b826c0c5f37a$var$O(n32, l, u18) {
|
|
1305
1305
|
return this.constructor(n32, u18);
|
1306
1306
|
}
|
1307
1307
|
function $fb96b826c0c5f37a$export$b3890eb0ae9dca99(u19, i13, t12) {
|
1308
|
-
|
1308
|
+
let r12; let o8; let f7;
|
1309
1309
|
$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);
|
1310
1310
|
}
|
1311
1311
|
$fb96b826c0c5f37a$var$n = $fb96b826c0c5f37a$var$c.slice, $fb96b826c0c5f37a$export$41c562ebe57d11e2 = {
|
@@ -1318,18 +1318,18 @@ $fb96b826c0c5f37a$var$n = $fb96b826c0c5f37a$var$c.slice, $fb96b826c0c5f37a$expor
|
|
1318
1318
|
throw n39;
|
1319
1319
|
}
|
1320
1320
|
}, $fb96b826c0c5f37a$var$u = 0, $fb96b826c0c5f37a$export$16fa2f45be04daa8.prototype.setState = function (n41, l24) {
|
1321
|
-
|
1321
|
+
let u24;
|
1322
1322
|
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));
|
1323
1323
|
}, $fb96b826c0c5f37a$export$16fa2f45be04daa8.prototype.forceUpdate = function (n42) {
|
1324
1324
|
this.__v && (this.__e = !0, n42 && this.__h.push(n42), $fb96b826c0c5f37a$var$m(this));
|
1325
1325
|
}, $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;
|
1326
|
-
|
1326
|
+
let $bd9dd35321b03dd4$var$o = 0;
|
1327
1327
|
function $bd9dd35321b03dd4$export$34b9dba7ce09269b(_1, e1, n, t, f) {
|
1328
|
-
|
1329
|
-
s
|
1330
|
-
u = {};
|
1328
|
+
let l;
|
1329
|
+
let s;
|
1330
|
+
const u = {};
|
1331
1331
|
for (s in e1) "ref" == s ? l = e1[s] : u[s] = e1[s];
|
1332
|
-
|
1332
|
+
const a = {
|
1333
1333
|
type: _1,
|
1334
1334
|
props: u,
|
1335
1335
|
key: n,
|
@@ -1360,7 +1360,7 @@ function $f72b75cf796873c7$var$get(key) {
|
|
1360
1360
|
if (value) return JSON.parse(value);
|
1361
1361
|
} catch (error) {}
|
1362
1362
|
}
|
1363
|
-
|
1363
|
+
const $f72b75cf796873c7$export$2e2bcd8739ae039 = {
|
1364
1364
|
set: $f72b75cf796873c7$var$set,
|
1365
1365
|
get: $f72b75cf796873c7$var$get
|
1366
1366
|
};
|
@@ -1466,7 +1466,7 @@ const $c84d045dcc34faf5$var$isEmojiSupported = (() => {
|
|
1466
1466
|
return true;
|
1467
1467
|
};
|
1468
1468
|
})();
|
1469
|
-
|
1469
|
+
const $c84d045dcc34faf5$export$2e2bcd8739ae039 = {
|
1470
1470
|
latestVersion: $c84d045dcc34faf5$var$latestVersion,
|
1471
1471
|
noCountryFlags: $c84d045dcc34faf5$var$noCountryFlags
|
1472
1472
|
};
|
@@ -1490,7 +1490,7 @@ function $b22cfd0a55410b4f$var$get({
|
|
1490
1490
|
let emojiIds = [];
|
1491
1491
|
if (!$b22cfd0a55410b4f$var$Index) {
|
1492
1492
|
$b22cfd0a55410b4f$var$Index = {};
|
1493
|
-
for (
|
1493
|
+
for (const i in $b22cfd0a55410b4f$var$DEFAULTS.slice(0, perLine)) {
|
1494
1494
|
const emojiId = $b22cfd0a55410b4f$var$DEFAULTS[i];
|
1495
1495
|
$b22cfd0a55410b4f$var$Index[emojiId] = perLine - i;
|
1496
1496
|
emojiIds.push(emojiId);
|
@@ -1499,7 +1499,7 @@ function $b22cfd0a55410b4f$var$get({
|
|
1499
1499
|
}
|
1500
1500
|
const max = maxFrequentRows * perLine;
|
1501
1501
|
const last = ($f72b75cf796873c7$export$2e2bcd8739ae039).get("last");
|
1502
|
-
for (
|
1502
|
+
for (const emojiId in $b22cfd0a55410b4f$var$Index) emojiIds.push(emojiId);
|
1503
1503
|
emojiIds.sort((a, b) => {
|
1504
1504
|
const aScore = $b22cfd0a55410b4f$var$Index[b];
|
1505
1505
|
const bScore = $b22cfd0a55410b4f$var$Index[a];
|
@@ -1509,7 +1509,7 @@ function $b22cfd0a55410b4f$var$get({
|
|
1509
1509
|
if (emojiIds.length > max) {
|
1510
1510
|
const removedIds = emojiIds.slice(max);
|
1511
1511
|
emojiIds = emojiIds.slice(0, max);
|
1512
|
-
for (
|
1512
|
+
for (const removedId of removedIds) {
|
1513
1513
|
if (removedId == last) continue;
|
1514
1514
|
delete $b22cfd0a55410b4f$var$Index[removedId];
|
1515
1515
|
}
|
@@ -1521,14 +1521,14 @@ function $b22cfd0a55410b4f$var$get({
|
|
1521
1521
|
}
|
1522
1522
|
return emojiIds;
|
1523
1523
|
}
|
1524
|
-
|
1524
|
+
const $b22cfd0a55410b4f$export$2e2bcd8739ae039 = {
|
1525
1525
|
add: $b22cfd0a55410b4f$var$add,
|
1526
1526
|
get: $b22cfd0a55410b4f$var$get,
|
1527
1527
|
DEFAULTS: $b22cfd0a55410b4f$var$DEFAULTS
|
1528
1528
|
};
|
1529
|
-
|
1529
|
+
let $8d50d93417ef682a$exports = {};
|
1530
1530
|
$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"}}');
|
1531
|
-
|
1531
|
+
const $b247ea80b67298d5$export$2e2bcd8739ae039 = {
|
1532
1532
|
autoFocus: {
|
1533
1533
|
value: false
|
1534
1534
|
},
|
@@ -1676,7 +1676,7 @@ async function $7adb23b0109cc36a$var$_init(props) {
|
|
1676
1676
|
if (!isCustom) return true;
|
1677
1677
|
return false;
|
1678
1678
|
});
|
1679
|
-
$7adb23b0109cc36a$export$dbe3113d60765c1a = (typeof props.i18n === "function" ? await props.i18n() : props.i18n) || (locale == "en" ? (
|
1679
|
+
$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`));
|
1680
1680
|
if (props.custom) for (let i in props.custom) {
|
1681
1681
|
i = parseInt(i);
|
1682
1682
|
const category = props.custom[i];
|
@@ -1784,7 +1784,7 @@ async function $7adb23b0109cc36a$var$_init(props) {
|
|
1784
1784
|
function $7adb23b0109cc36a$export$75fe5f91d452f94b(props, defaultProps, element) {
|
1785
1785
|
props || (props = {});
|
1786
1786
|
const _props = {};
|
1787
|
-
for (
|
1787
|
+
for (const k in defaultProps) _props[k] = $7adb23b0109cc36a$export$88c9ddb45cea7241(k, props, defaultProps, element);
|
1788
1788
|
return _props;
|
1789
1789
|
}
|
1790
1790
|
function $7adb23b0109cc36a$export$88c9ddb45cea7241(propName, props, defaultProps, element) {
|
@@ -1821,7 +1821,7 @@ async function $c4d155af13ad4d4b$var$search(value, {
|
|
1821
1821
|
});
|
1822
1822
|
if (!values.length) return;
|
1823
1823
|
let pool = $c4d155af13ad4d4b$var$Pool || ($c4d155af13ad4d4b$var$Pool = Object.values(($7adb23b0109cc36a$export$2d0294657ab35f1b).emojis));
|
1824
|
-
let results
|
1824
|
+
let results; let scores;
|
1825
1825
|
for (const value1 of values) {
|
1826
1826
|
if (!pool.length) break;
|
1827
1827
|
results = [];
|
@@ -1857,7 +1857,7 @@ function $693b183b0a78708f$export$9cb4719e2e525b7a(a, b) {
|
|
1857
1857
|
return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((val, index) => val == b[index]);
|
1858
1858
|
}
|
1859
1859
|
async function $693b183b0a78708f$export$e772c8ff12451969(frames = 1) {
|
1860
|
-
for (
|
1860
|
+
for (const _ in [...Array(frames).keys()]) await new Promise(requestAnimationFrame);
|
1861
1861
|
}
|
1862
1862
|
function $693b183b0a78708f$export$d10ac59fbe52a745(emoji, {
|
1863
1863
|
skinIndex = 0
|
@@ -1882,184 +1882,184 @@ function $693b183b0a78708f$export$d10ac59fbe52a745(emoji, {
|
|
1882
1882
|
}
|
1883
1883
|
const $fcccfb36ed0cde68$var$categories = {
|
1884
1884
|
activity: {
|
1885
|
-
outline:
|
1885
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1886
1886
|
xmlns: "http://www.w3.org/2000/svg",
|
1887
1887
|
viewBox: "0 0 24 24",
|
1888
|
-
children:
|
1888
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1889
1889
|
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"
|
1890
1890
|
})
|
1891
1891
|
}),
|
1892
|
-
solid:
|
1892
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1893
1893
|
xmlns: "http://www.w3.org/2000/svg",
|
1894
1894
|
viewBox: "0 0 512 512",
|
1895
|
-
children:
|
1895
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1896
1896
|
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"
|
1897
1897
|
})
|
1898
1898
|
})
|
1899
1899
|
},
|
1900
|
-
custom:
|
1900
|
+
custom: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1901
1901
|
xmlns: "http://www.w3.org/2000/svg",
|
1902
1902
|
viewBox: "0 0 448 512",
|
1903
|
-
children:
|
1903
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1904
1904
|
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"
|
1905
1905
|
})
|
1906
1906
|
}),
|
1907
1907
|
flags: {
|
1908
|
-
outline:
|
1908
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1909
1909
|
xmlns: "http://www.w3.org/2000/svg",
|
1910
1910
|
viewBox: "0 0 24 24",
|
1911
|
-
children:
|
1911
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1912
1912
|
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"
|
1913
1913
|
})
|
1914
1914
|
}),
|
1915
|
-
solid:
|
1915
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1916
1916
|
xmlns: "http://www.w3.org/2000/svg",
|
1917
1917
|
viewBox: "0 0 512 512",
|
1918
|
-
children:
|
1918
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1919
1919
|
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"
|
1920
1920
|
})
|
1921
1921
|
})
|
1922
1922
|
},
|
1923
1923
|
foods: {
|
1924
|
-
outline:
|
1924
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1925
1925
|
xmlns: "http://www.w3.org/2000/svg",
|
1926
1926
|
viewBox: "0 0 24 24",
|
1927
|
-
children:
|
1927
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1928
1928
|
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"
|
1929
1929
|
})
|
1930
1930
|
}),
|
1931
|
-
solid:
|
1931
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1932
1932
|
xmlns: "http://www.w3.org/2000/svg",
|
1933
1933
|
viewBox: "0 0 512 512",
|
1934
|
-
children:
|
1934
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1935
1935
|
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"
|
1936
1936
|
})
|
1937
1937
|
})
|
1938
1938
|
},
|
1939
1939
|
frequent: {
|
1940
|
-
outline:
|
1940
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1941
1941
|
xmlns: "http://www.w3.org/2000/svg",
|
1942
1942
|
viewBox: "0 0 24 24",
|
1943
|
-
children: [
|
1943
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1944
1944
|
d: "M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"
|
1945
|
-
}),
|
1945
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1946
1946
|
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"
|
1947
1947
|
})]
|
1948
1948
|
}),
|
1949
|
-
solid:
|
1949
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1950
1950
|
xmlns: "http://www.w3.org/2000/svg",
|
1951
1951
|
viewBox: "0 0 512 512",
|
1952
|
-
children:
|
1952
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1953
1953
|
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"
|
1954
1954
|
})
|
1955
1955
|
})
|
1956
1956
|
},
|
1957
1957
|
nature: {
|
1958
|
-
outline:
|
1958
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1959
1959
|
xmlns: "http://www.w3.org/2000/svg",
|
1960
1960
|
viewBox: "0 0 24 24",
|
1961
|
-
children: [
|
1961
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1962
1962
|
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"
|
1963
|
-
}),
|
1963
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1964
1964
|
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"
|
1965
1965
|
})]
|
1966
1966
|
}),
|
1967
|
-
solid:
|
1967
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1968
1968
|
xmlns: "http://www.w3.org/2000/svg",
|
1969
1969
|
viewBox: "0 0 576 512",
|
1970
|
-
children:
|
1970
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1971
1971
|
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"
|
1972
1972
|
})
|
1973
1973
|
})
|
1974
1974
|
},
|
1975
1975
|
objects: {
|
1976
|
-
outline:
|
1976
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1977
1977
|
xmlns: "http://www.w3.org/2000/svg",
|
1978
1978
|
viewBox: "0 0 24 24",
|
1979
|
-
children: [
|
1979
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1980
1980
|
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"
|
1981
|
-
}),
|
1981
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1982
1982
|
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"
|
1983
1983
|
})]
|
1984
1984
|
}),
|
1985
|
-
solid:
|
1985
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1986
1986
|
xmlns: "http://www.w3.org/2000/svg",
|
1987
1987
|
viewBox: "0 0 384 512",
|
1988
|
-
children:
|
1988
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1989
1989
|
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"
|
1990
1990
|
})
|
1991
1991
|
})
|
1992
1992
|
},
|
1993
1993
|
people: {
|
1994
|
-
outline:
|
1994
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
1995
1995
|
xmlns: "http://www.w3.org/2000/svg",
|
1996
1996
|
viewBox: "0 0 24 24",
|
1997
|
-
children: [
|
1997
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
1998
1998
|
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"
|
1999
|
-
}),
|
1999
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2000
2000
|
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"
|
2001
2001
|
})]
|
2002
2002
|
}),
|
2003
|
-
solid:
|
2003
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2004
2004
|
xmlns: "http://www.w3.org/2000/svg",
|
2005
2005
|
viewBox: "0 0 512 512",
|
2006
|
-
children:
|
2006
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2007
2007
|
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"
|
2008
2008
|
})
|
2009
2009
|
})
|
2010
2010
|
},
|
2011
2011
|
places: {
|
2012
|
-
outline:
|
2012
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2013
2013
|
xmlns: "http://www.w3.org/2000/svg",
|
2014
2014
|
viewBox: "0 0 24 24",
|
2015
|
-
children: [
|
2015
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2016
2016
|
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"
|
2017
|
-
}),
|
2017
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2018
2018
|
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"
|
2019
2019
|
})]
|
2020
2020
|
}),
|
2021
|
-
solid:
|
2021
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2022
2022
|
xmlns: "http://www.w3.org/2000/svg",
|
2023
2023
|
viewBox: "0 0 512 512",
|
2024
|
-
children:
|
2024
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2025
2025
|
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"
|
2026
2026
|
})
|
2027
2027
|
})
|
2028
2028
|
},
|
2029
2029
|
symbols: {
|
2030
|
-
outline:
|
2030
|
+
outline: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2031
2031
|
xmlns: "http://www.w3.org/2000/svg",
|
2032
2032
|
viewBox: "0 0 24 24",
|
2033
|
-
children:
|
2033
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2034
2034
|
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"
|
2035
2035
|
})
|
2036
2036
|
}),
|
2037
|
-
solid:
|
2037
|
+
solid: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2038
2038
|
xmlns: "http://www.w3.org/2000/svg",
|
2039
2039
|
viewBox: "0 0 512 512",
|
2040
|
-
children:
|
2040
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2041
2041
|
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"
|
2042
2042
|
})
|
2043
2043
|
})
|
2044
2044
|
}
|
2045
2045
|
};
|
2046
2046
|
const $fcccfb36ed0cde68$var$search = {
|
2047
|
-
loupe:
|
2047
|
+
loupe: /* #__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: "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"
|
2052
2052
|
})
|
2053
2053
|
}),
|
2054
|
-
delete:
|
2054
|
+
delete: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("svg", {
|
2055
2055
|
xmlns: "http://www.w3.org/2000/svg",
|
2056
2056
|
viewBox: "0 0 20 20",
|
2057
|
-
children:
|
2057
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("path", {
|
2058
2058
|
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"
|
2059
2059
|
})
|
2060
2060
|
})
|
2061
2061
|
};
|
2062
|
-
|
2062
|
+
const $fcccfb36ed0cde68$export$2e2bcd8739ae039 = {
|
2063
2063
|
categories: $fcccfb36ed0cde68$var$categories,
|
2064
2064
|
search: $fcccfb36ed0cde68$var$search
|
2065
2065
|
};
|
@@ -2081,10 +2081,10 @@ function $254755d3f438722f$export$2e2bcd8739ae039(props) {
|
|
2081
2081
|
const emojiSkin = emoji.skins[skin - 1] || emoji.skins[0];
|
2082
2082
|
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);
|
2083
2083
|
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`;
|
2084
|
-
return
|
2084
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2085
2085
|
class: "emoji-mart-emoji",
|
2086
2086
|
"data-emoji-set": props.set,
|
2087
|
-
children: imageSrc ?
|
2087
|
+
children: imageSrc ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("img", {
|
2088
2088
|
style: {
|
2089
2089
|
maxWidth: props.size || "1em",
|
2090
2090
|
maxHeight: props.size || "1em",
|
@@ -2092,13 +2092,13 @@ function $254755d3f438722f$export$2e2bcd8739ae039(props) {
|
|
2092
2092
|
},
|
2093
2093
|
alt: emojiSkin.native || emojiSkin.shortcodes,
|
2094
2094
|
src: imageSrc
|
2095
|
-
}) : props.set == "native" ?
|
2095
|
+
}) : props.set == "native" ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2096
2096
|
style: {
|
2097
2097
|
fontSize: props.size,
|
2098
2098
|
fontFamily: '"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'
|
2099
2099
|
},
|
2100
2100
|
children: emojiSkin.native
|
2101
|
-
}) :
|
2101
|
+
}) : /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2102
2102
|
style: {
|
2103
2103
|
display: "block",
|
2104
2104
|
width: props.size,
|
@@ -2116,7 +2116,7 @@ class $6f57cc9cd54c5aaa$export$2e2bcd8739ae039 extends $6f57cc9cd54c5aaa$var$Win
|
|
2116
2116
|
return Object.keys(this.Props);
|
2117
2117
|
}
|
2118
2118
|
update(props = {}) {
|
2119
|
-
for (
|
2119
|
+
for (const k in props) this.attributeChangedCallback(k, null, props[k]);
|
2120
2120
|
}
|
2121
2121
|
attributeChangedCallback(attr, _, newValue) {
|
2122
2122
|
if (!this.component) return;
|
@@ -2165,7 +2165,7 @@ class $26f27c338a96b1a6$export$2e2bcd8739ae039 extends ($6f57cc9cd54c5aaa$export
|
|
2165
2165
|
this.injectStyles(styles);
|
2166
2166
|
}
|
2167
2167
|
}
|
2168
|
-
|
2168
|
+
const $3d90f6e46fb2dd47$export$2e2bcd8739ae039 = {
|
2169
2169
|
fallback: "",
|
2170
2170
|
id: "",
|
2171
2171
|
native: "",
|
@@ -2191,7 +2191,7 @@ class $331b4160623139bf$export$2e2bcd8739ae039 extends ($6f57cc9cd54c5aaa$export
|
|
2191
2191
|
};
|
2192
2192
|
await ($7adb23b0109cc36a$export$2cd8252107eb640b)();
|
2193
2193
|
if (this.disconnected) return;
|
2194
|
-
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)(
|
2194
|
+
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)( /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($254755d3f438722f$export$2e2bcd8739ae039), {
|
2195
2195
|
...props
|
2196
2196
|
}), this);
|
2197
2197
|
}
|
@@ -2201,15 +2201,15 @@ class $331b4160623139bf$export$2e2bcd8739ae039 extends ($6f57cc9cd54c5aaa$export
|
|
2201
2201
|
}
|
2202
2202
|
($c770c458706daa72$export$2e2bcd8739ae039)($331b4160623139bf$export$2e2bcd8739ae039, "Props", ($3d90f6e46fb2dd47$export$2e2bcd8739ae039));
|
2203
2203
|
if (typeof customElements !== "undefined" && !customElements.get("em-emoji")) customElements.define("em-emoji", $331b4160623139bf$export$2e2bcd8739ae039);
|
2204
|
-
|
2205
|
-
$1a9a8ef576b7773d$var$i = []
|
2206
|
-
$1a9a8ef576b7773d$var$c = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b
|
2207
|
-
$1a9a8ef576b7773d$var$f = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r
|
2208
|
-
$1a9a8ef576b7773d$var$e = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).diffed
|
2209
|
-
$1a9a8ef576b7773d$var$a = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__c
|
2210
|
-
$1a9a8ef576b7773d$var$v = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount;
|
2204
|
+
let $1a9a8ef576b7773d$var$r;
|
2205
|
+
const $1a9a8ef576b7773d$var$i = [];
|
2206
|
+
const $1a9a8ef576b7773d$var$c = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b;
|
2207
|
+
const $1a9a8ef576b7773d$var$f = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r;
|
2208
|
+
const $1a9a8ef576b7773d$var$e = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).diffed;
|
2209
|
+
const $1a9a8ef576b7773d$var$a = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__c;
|
2210
|
+
const $1a9a8ef576b7773d$var$v = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount;
|
2211
2211
|
function $1a9a8ef576b7773d$var$x() {
|
2212
|
-
|
2212
|
+
let t6;
|
2213
2213
|
for ($1a9a8ef576b7773d$var$i.sort(function (n11, t7) {
|
2214
2214
|
return n11.__v.__b - t7.__v.__b;
|
2215
2215
|
}); t6 = $1a9a8ef576b7773d$var$i.pop();) if (t6.__P) try {
|
@@ -2222,17 +2222,17 @@ function $1a9a8ef576b7773d$var$x() {
|
|
2222
2222
|
$1a9a8ef576b7773d$var$c && $1a9a8ef576b7773d$var$c(n12);
|
2223
2223
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r = function (n13) {
|
2224
2224
|
$1a9a8ef576b7773d$var$f && $1a9a8ef576b7773d$var$f(n13);
|
2225
|
-
|
2225
|
+
const r8 = (n13.__c).__H;
|
2226
2226
|
r8 && (r8.__h.forEach($1a9a8ef576b7773d$var$g), r8.__h.forEach($1a9a8ef576b7773d$var$j), r8.__h = []);
|
2227
2227
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).diffed = function (t8) {
|
2228
2228
|
$1a9a8ef576b7773d$var$e && $1a9a8ef576b7773d$var$e(t8);
|
2229
|
-
|
2229
|
+
const o6 = t8.__c;
|
2230
2230
|
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) {
|
2231
|
-
|
2232
|
-
u5 = function () {
|
2231
|
+
let t9;
|
2232
|
+
const u5 = function () {
|
2233
2233
|
clearTimeout(r9), $1a9a8ef576b7773d$var$b && cancelAnimationFrame(t9), setTimeout(n14);
|
2234
|
-
}
|
2235
|
-
r9 = setTimeout(u5, 100);
|
2234
|
+
};
|
2235
|
+
var r9 = setTimeout(u5, 100);
|
2236
2236
|
$1a9a8ef576b7773d$var$b && (t9 = requestAnimationFrame(u5));
|
2237
2237
|
})($1a9a8ef576b7773d$var$x));
|
2238
2238
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__c = function (t10, u6) {
|
@@ -2249,8 +2249,8 @@ function $1a9a8ef576b7773d$var$x() {
|
|
2249
2249
|
}), $1a9a8ef576b7773d$var$a && $1a9a8ef576b7773d$var$a(t10, u6);
|
2250
2250
|
}, ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount = function (t12) {
|
2251
2251
|
$1a9a8ef576b7773d$var$v && $1a9a8ef576b7773d$var$v(t12);
|
2252
|
-
|
2253
|
-
r11 = t12.__c;
|
2252
|
+
let u7;
|
2253
|
+
const r11 = t12.__c;
|
2254
2254
|
r11 && r11.__H && (r11.__H.__.forEach(function (n17) {
|
2255
2255
|
try {
|
2256
2256
|
$1a9a8ef576b7773d$var$g(n17);
|
@@ -2261,19 +2261,19 @@ function $1a9a8ef576b7773d$var$x() {
|
|
2261
2261
|
};
|
2262
2262
|
var $1a9a8ef576b7773d$var$b = "function" == typeof requestAnimationFrame;
|
2263
2263
|
function $1a9a8ef576b7773d$var$g(n19) {
|
2264
|
-
|
2264
|
+
const r12 = n19.__c;
|
2265
2265
|
"function" == typeof r12 && (n19.__c = void 0, r12());
|
2266
2266
|
}
|
2267
2267
|
function $1a9a8ef576b7773d$var$j(n20) {
|
2268
2268
|
n20.__c = n20.__();
|
2269
2269
|
}
|
2270
2270
|
function $dc040a17866866fa$var$S(n1, t1) {
|
2271
|
-
for (
|
2271
|
+
for (const e1 in t1) n1[e1] = t1[e1];
|
2272
2272
|
return n1;
|
2273
2273
|
}
|
2274
2274
|
function $dc040a17866866fa$var$C(n2, t2) {
|
2275
|
-
for (
|
2276
|
-
for (
|
2275
|
+
for (const e2 in n2) if ("__source" !== e2 && !(e2 in t2)) return !0;
|
2276
|
+
for (const r1 in t2) if ("__source" !== r1 && n2[r1] !== t2[r1]) return !0;
|
2277
2277
|
return !1;
|
2278
2278
|
}
|
2279
2279
|
function $dc040a17866866fa$export$221d75b3f55bb0bd(n3) {
|
@@ -2282,58 +2282,58 @@ function $dc040a17866866fa$export$221d75b3f55bb0bd(n3) {
|
|
2282
2282
|
($dc040a17866866fa$export$221d75b3f55bb0bd.prototype = new ($fb96b826c0c5f37a$export$16fa2f45be04daa8)()).isPureReactComponent = !0, $dc040a17866866fa$export$221d75b3f55bb0bd.prototype.shouldComponentUpdate = function (n6, t5) {
|
2283
2283
|
return $dc040a17866866fa$var$C(this.props, n6) || $dc040a17866866fa$var$C(this.state, t5);
|
2284
2284
|
};
|
2285
|
-
|
2285
|
+
const $dc040a17866866fa$var$w = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b;
|
2286
2286
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).__b = function (n7) {
|
2287
2287
|
n7.type && n7.type.__f && n7.ref && (n7.props.ref = n7.ref, n7.ref = null), $dc040a17866866fa$var$w && $dc040a17866866fa$var$w(n7);
|
2288
2288
|
};
|
2289
|
-
|
2289
|
+
const $dc040a17866866fa$var$A = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__e;
|
2290
2290
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).__e = function (n12, t10, e6) {
|
2291
2291
|
if (n12.then) {
|
2292
2292
|
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);
|
2293
2293
|
}
|
2294
2294
|
$dc040a17866866fa$var$A(n12, t10, e6);
|
2295
2295
|
};
|
2296
|
-
|
2296
|
+
const $dc040a17866866fa$var$O = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount;
|
2297
2297
|
function $dc040a17866866fa$export$74bf444e3cd11ea5() {
|
2298
2298
|
this.__u = 0, this.t = null, this.__b = null;
|
2299
2299
|
}
|
2300
2300
|
function $dc040a17866866fa$var$U(n13) {
|
2301
|
-
|
2301
|
+
const t11 = n13.__.__c;
|
2302
2302
|
return t11 && t11.__e && t11.__e(n13);
|
2303
2303
|
}
|
2304
2304
|
function $dc040a17866866fa$export$998bcd577473dd93() {
|
2305
2305
|
this.u = null, this.o = null;
|
2306
2306
|
}
|
2307
2307
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).unmount = function (n17) {
|
2308
|
-
|
2308
|
+
const t13 = n17.__c;
|
2309
2309
|
t13 && t13.__R && t13.__R(), t13 && !0 === n17.__h && (n17.type = null), $dc040a17866866fa$var$O && $dc040a17866866fa$var$O(n17);
|
2310
2310
|
}, ($dc040a17866866fa$export$74bf444e3cd11ea5.prototype = new ($fb96b826c0c5f37a$export$16fa2f45be04daa8)()).__c = function (n18, t14) {
|
2311
|
-
|
2312
|
-
r7 = this;
|
2311
|
+
const e8 = t14.__c;
|
2312
|
+
const r7 = this;
|
2313
2313
|
null == r7.t && (r7.t = []), r7.t.push(e8);
|
2314
|
-
|
2315
|
-
o1 = !1
|
2316
|
-
i1 = function () {
|
2314
|
+
const u4 = $dc040a17866866fa$var$U(r7.__v);
|
2315
|
+
let o1 = !1;
|
2316
|
+
const i1 = function () {
|
2317
2317
|
o1 || (o1 = !0, e8.__R = null, u4 ? u4(l1) : l1());
|
2318
2318
|
};
|
2319
2319
|
e8.__R = i1;
|
2320
2320
|
var l1 = function () {
|
2321
2321
|
if (! --r7.__u) {
|
2322
2322
|
if (r7.state.__e) {
|
2323
|
-
|
2323
|
+
const n19 = r7.state.__e;
|
2324
2324
|
r7.__v.__k[0] = function n22(t17, e9, r8) {
|
2325
2325
|
return t17 && (t17.__v = null, t17.__k = t17.__k && t17.__k.map(function (t18) {
|
2326
2326
|
return n22(t18, e9, r8);
|
2327
2327
|
}), t17.__c && t17.__c.__P === e9 && (t17.__e && r8.insertBefore(t17.__e, t17.__d), t17.__c.__e = !0, t17.__c.__P = r8)), t17;
|
2328
2328
|
}(n19, n19.__c.__P, n19.__c.__O);
|
2329
2329
|
}
|
2330
|
-
|
2330
|
+
let t15;
|
2331
2331
|
for (r7.setState({
|
2332
2332
|
__e: r7.__b = null
|
2333
2333
|
}); t15 = r7.t.pop();) t15.forceUpdate();
|
2334
2334
|
}
|
2335
|
-
}
|
2336
|
-
c1 = !0 === t14.__h;
|
2335
|
+
};
|
2336
|
+
const c1 = !0 === t14.__h;
|
2337
2337
|
r7.__u++ || c1 || r7.setState({
|
2338
2338
|
__e: r7.__b = r7.__v.__k[0]
|
2339
2339
|
}), n18.then(i1, i1);
|
@@ -2342,8 +2342,8 @@ function $dc040a17866866fa$export$998bcd577473dd93() {
|
|
2342
2342
|
}, $dc040a17866866fa$export$74bf444e3cd11ea5.prototype.render = function (n23, t19) {
|
2343
2343
|
if (this.__b) {
|
2344
2344
|
if (this.__v.__k) {
|
2345
|
-
|
2346
|
-
r9 = this.__v.__k[0].__c;
|
2345
|
+
const e10 = document.createElement("div");
|
2346
|
+
const r9 = this.__v.__k[0].__c;
|
2347
2347
|
this.__v.__k[0] = function n24(t20, e13, r12) {
|
2348
2348
|
return t20 && (t20.__c && t20.__c.__H && (t20.__c.__H.__.forEach(function (n25) {
|
2349
2349
|
"function" == typeof n25.__c && n25.__c();
|
@@ -2354,10 +2354,10 @@ function $dc040a17866866fa$export$998bcd577473dd93() {
|
|
2354
2354
|
}
|
2355
2355
|
this.__b = null;
|
2356
2356
|
}
|
2357
|
-
|
2357
|
+
const u5 = t19.__e && ($fb96b826c0c5f37a$export$c8a8987d4410bf2d)(($fb96b826c0c5f37a$export$ffb0004e005737fa), null, n23.fallback);
|
2358
2358
|
return u5 && (u5.__h = null), [($fb96b826c0c5f37a$export$c8a8987d4410bf2d)(($fb96b826c0c5f37a$export$ffb0004e005737fa), null, t19.__e ? null : n23.children), u5];
|
2359
2359
|
};
|
2360
|
-
|
2360
|
+
const $dc040a17866866fa$var$T = function (n26, t22, e14) {
|
2361
2361
|
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;) {
|
2362
2362
|
for (; e14.length > 3;) e14.pop()();
|
2363
2363
|
if (e14[1] < e14[0]) break;
|
@@ -2365,31 +2365,31 @@ var $dc040a17866866fa$var$T = function (n26, t22, e14) {
|
|
2365
2365
|
}
|
2366
2366
|
};
|
2367
2367
|
($dc040a17866866fa$export$998bcd577473dd93.prototype = new ($fb96b826c0c5f37a$export$16fa2f45be04daa8)()).__e = function (n33) {
|
2368
|
-
|
2369
|
-
e16 = $dc040a17866866fa$var$U(t25.__v)
|
2370
|
-
r13 = t25.o.get(n33);
|
2368
|
+
const t25 = this;
|
2369
|
+
const e16 = $dc040a17866866fa$var$U(t25.__v);
|
2370
|
+
const r13 = t25.o.get(n33);
|
2371
2371
|
return r13[0]++, function (u6) {
|
2372
|
-
|
2372
|
+
const o2 = function () {
|
2373
2373
|
t25.props.revealOrder ? (r13.push(u6), $dc040a17866866fa$var$T(t25, n33, r13)) : u6();
|
2374
2374
|
};
|
2375
2375
|
e16 ? e16(o2) : o2();
|
2376
2376
|
};
|
2377
2377
|
}, $dc040a17866866fa$export$998bcd577473dd93.prototype.render = function (n34) {
|
2378
2378
|
this.u = null, this.o = new Map();
|
2379
|
-
|
2379
|
+
const t26 = ($fb96b826c0c5f37a$export$47e4c5b300681277)(n34.children);
|
2380
2380
|
n34.revealOrder && "b" === n34.revealOrder[0] && t26.reverse();
|
2381
|
-
for (
|
2381
|
+
for (let e17 = t26.length; e17--;) this.o.set(t26[e17], this.u = [1, 0, this.u]);
|
2382
2382
|
return n34.children;
|
2383
2383
|
}, $dc040a17866866fa$export$998bcd577473dd93.prototype.componentDidUpdate = $dc040a17866866fa$export$998bcd577473dd93.prototype.componentDidMount = function () {
|
2384
|
-
|
2384
|
+
const n35 = this;
|
2385
2385
|
this.o.forEach(function (t27, e18) {
|
2386
2386
|
$dc040a17866866fa$var$T(n35, e18, t27);
|
2387
2387
|
});
|
2388
2388
|
};
|
2389
|
-
|
2390
|
-
$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]
|
2391
|
-
$dc040a17866866fa$var$V = "undefined" != typeof document
|
2392
|
-
$dc040a17866866fa$var$z = function (n36) {
|
2389
|
+
const $dc040a17866866fa$var$j = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103;
|
2390
|
+
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]/;
|
2391
|
+
const $dc040a17866866fa$var$V = "undefined" != typeof document;
|
2392
|
+
const $dc040a17866866fa$var$z = function (n36) {
|
2393
2393
|
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/i : /fil|che|ra/i).test(n36);
|
2394
2394
|
};
|
2395
2395
|
($fb96b826c0c5f37a$export$16fa2f45be04daa8).prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function (n39) {
|
@@ -2407,7 +2407,7 @@ var $dc040a17866866fa$var$j = "undefined" != typeof Symbol && Symbol.for && Symb
|
|
2407
2407
|
}
|
2408
2408
|
});
|
2409
2409
|
});
|
2410
|
-
|
2410
|
+
const $dc040a17866866fa$var$H = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).event;
|
2411
2411
|
function $dc040a17866866fa$var$Z() {}
|
2412
2412
|
function $dc040a17866866fa$var$Y() {
|
2413
2413
|
return this.cancelBubble;
|
@@ -2418,21 +2418,21 @@ function $dc040a17866866fa$var$q() {
|
|
2418
2418
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).event = function (n40) {
|
2419
2419
|
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;
|
2420
2420
|
};
|
2421
|
-
|
2421
|
+
const $dc040a17866866fa$var$J = {
|
2422
2422
|
configurable: !0,
|
2423
2423
|
get: function () {
|
2424
2424
|
return this.class;
|
2425
2425
|
}
|
2426
|
-
}
|
2427
|
-
$dc040a17866866fa$var$K = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).vnode;
|
2426
|
+
};
|
2427
|
+
const $dc040a17866866fa$var$K = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).vnode;
|
2428
2428
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).vnode = function (n41) {
|
2429
|
-
|
2430
|
-
e21 = n41.props
|
2431
|
-
r14 = e21;
|
2429
|
+
const t31 = n41.type;
|
2430
|
+
const e21 = n41.props;
|
2431
|
+
let r14 = e21;
|
2432
2432
|
if ("string" == typeof t31) {
|
2433
|
-
|
2434
|
-
for (
|
2435
|
-
|
2433
|
+
const u7 = -1 === t31.indexOf("-");
|
2434
|
+
for (let o3 in r14 = {}, e21) {
|
2435
|
+
let i2 = e21[o3];
|
2436
2436
|
$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);
|
2437
2437
|
}
|
2438
2438
|
"select" == t31 && r14.multiple && Array.isArray(r14.value) && (r14.value = ($fb96b826c0c5f37a$export$47e4c5b300681277)(e21.children).forEach(function (n42) {
|
@@ -2443,7 +2443,7 @@ var $dc040a17866866fa$var$J = {
|
|
2443
2443
|
}
|
2444
2444
|
n41.$$typeof = $dc040a17866866fa$var$j, $dc040a17866866fa$var$K && $dc040a17866866fa$var$K(n41);
|
2445
2445
|
};
|
2446
|
-
|
2446
|
+
const $dc040a17866866fa$var$Q = ($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r;
|
2447
2447
|
($fb96b826c0c5f37a$export$41c562ebe57d11e2).__r = function (n44) {
|
2448
2448
|
$dc040a17866866fa$var$Q && $dc040a17866866fa$var$Q(n44), n44.__c;
|
2449
2449
|
};
|
@@ -2457,13 +2457,13 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2457
2457
|
icon: icon
|
2458
2458
|
} = category;
|
2459
2459
|
if (icon) {
|
2460
|
-
if (icon.svg) return
|
2460
|
+
if (icon.svg) return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
2461
2461
|
class: "flex",
|
2462
2462
|
dangerouslySetInnerHTML: {
|
2463
2463
|
__html: icon.svg
|
2464
2464
|
}
|
2465
2465
|
});
|
2466
|
-
if (icon.src) return
|
2466
|
+
if (icon.src) return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("img", {
|
2467
2467
|
src: icon.src
|
2468
2468
|
});
|
2469
2469
|
}
|
@@ -2473,18 +2473,18 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2473
2473
|
}
|
2474
2474
|
render() {
|
2475
2475
|
let selectedCategoryIndex = null;
|
2476
|
-
return
|
2476
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("nav", {
|
2477
2477
|
id: "nav",
|
2478
2478
|
class: "padding",
|
2479
2479
|
"data-position": this.props.position,
|
2480
2480
|
dir: this.props.dir,
|
2481
|
-
children:
|
2481
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2482
2482
|
class: "flex relative",
|
2483
2483
|
children: [this.categories.map((category, i) => {
|
2484
2484
|
const title = category.name || ($7adb23b0109cc36a$export$dbe3113d60765c1a).categories[category.id];
|
2485
2485
|
const selected = !this.props.unfocused && category.id == this.state.categoryId;
|
2486
2486
|
if (selected) selectedCategoryIndex = i;
|
2487
|
-
return
|
2487
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
2488
2488
|
"aria-label": title,
|
2489
2489
|
"aria-selected": selected || undefined,
|
2490
2490
|
title: title,
|
@@ -2499,7 +2499,7 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2499
2499
|
},
|
2500
2500
|
children: this.renderIcon(category)
|
2501
2501
|
});
|
2502
|
-
}),
|
2502
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2503
2503
|
class: "bar",
|
2504
2504
|
style: {
|
2505
2505
|
width: `${100 / this.categories.length}%`,
|
@@ -2522,7 +2522,7 @@ class $ec8c39fdad15601a$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export
|
|
2522
2522
|
}
|
2523
2523
|
class $e0d4dda61265ff1e$export$2e2bcd8739ae039 extends ($dc040a17866866fa$export$221d75b3f55bb0bd) {
|
2524
2524
|
shouldComponentUpdate(nextProps) {
|
2525
|
-
for (
|
2525
|
+
for (const k in nextProps) {
|
2526
2526
|
if (k == "children") continue;
|
2527
2527
|
if (nextProps[k] != this.props[k]) return true;
|
2528
2528
|
}
|
@@ -2603,7 +2603,9 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2603
2603
|
}
|
2604
2604
|
unregister() {
|
2605
2605
|
document.removeEventListener("click", this.handleClickOutside);
|
2606
|
-
this.darkMedia
|
2606
|
+
if (this.darkMedia) {
|
2607
|
+
this.darkMedia.removeEventListener("change", this.darkMediaCallback);
|
2608
|
+
}
|
2607
2609
|
this.unobserve();
|
2608
2610
|
}
|
2609
2611
|
observe() {
|
@@ -2642,10 +2644,10 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2642
2644
|
rows.push(rowRef);
|
2643
2645
|
return row;
|
2644
2646
|
};
|
2645
|
-
for (
|
2647
|
+
for (const category1 of categories) {
|
2646
2648
|
const rows = [];
|
2647
2649
|
let row = addRow(rows, category1);
|
2648
|
-
for (
|
2650
|
+
for (const emoji of category1.emojis) {
|
2649
2651
|
if (row.length == this.getPerLine()) row = addRow(rows, category1);
|
2650
2652
|
this.grid.setsize += 1;
|
2651
2653
|
row.push(emoji);
|
@@ -2905,7 +2907,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2905
2907
|
($f72b75cf796873c7$export$2e2bcd8739ae039).set("skin", skin);
|
2906
2908
|
}
|
2907
2909
|
renderNav() {
|
2908
|
-
return
|
2910
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($ec8c39fdad15601a$export$2e2bcd8739ae039), {
|
2909
2911
|
ref: this.refs.navigation,
|
2910
2912
|
icons: this.props.icons,
|
2911
2913
|
theme: this.state.theme,
|
@@ -2918,20 +2920,20 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2918
2920
|
renderPreview() {
|
2919
2921
|
const emoji = this.getEmojiByPos(this.state.pos);
|
2920
2922
|
const noSearchResults = this.state.searchResults && !this.state.searchResults.length;
|
2921
|
-
return
|
2923
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2922
2924
|
id: "preview",
|
2923
2925
|
class: "flex flex-middle",
|
2924
2926
|
dir: this.dir,
|
2925
2927
|
"data-position": this.props.previewPosition,
|
2926
|
-
children: [
|
2928
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2927
2929
|
class: "flex flex-middle flex-grow",
|
2928
|
-
children: [
|
2930
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2929
2931
|
class: "flex flex-auto flex-middle flex-center",
|
2930
2932
|
style: {
|
2931
2933
|
height: this.props.emojiButtonSize,
|
2932
2934
|
fontSize: this.props.emojiButtonSize
|
2933
2935
|
},
|
2934
|
-
children:
|
2936
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($254755d3f438722f$export$2e2bcd8739ae039), {
|
2935
2937
|
emoji: emoji,
|
2936
2938
|
id: noSearchResults ? this.props.noResultsEmoji || "cry" : this.props.previewEmoji || (this.props.previewPosition == "top" ? "point_down" : "point_up"),
|
2937
2939
|
set: this.props.set,
|
@@ -2940,18 +2942,18 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2940
2942
|
spritesheet: true,
|
2941
2943
|
getSpritesheetURL: this.props.getSpritesheetURL
|
2942
2944
|
})
|
2943
|
-
}),
|
2945
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2944
2946
|
class: `margin-${this.dir[0]}`,
|
2945
|
-
children: emoji || noSearchResults ?
|
2947
|
+
children: emoji || noSearchResults ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2946
2948
|
class: `padding-${this.dir[2]} align-${this.dir[0]}`,
|
2947
|
-
children: [
|
2949
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2948
2950
|
class: "preview-title ellipsis",
|
2949
2951
|
children: emoji ? emoji.name : ($7adb23b0109cc36a$export$dbe3113d60765c1a).search_no_results_1
|
2950
|
-
}),
|
2952
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2951
2953
|
class: "preview-subtitle ellipsis color-c",
|
2952
2954
|
children: emoji ? emoji.skins[0].shortcodes : ($7adb23b0109cc36a$export$dbe3113d60765c1a).search_no_results_2
|
2953
2955
|
})]
|
2954
|
-
}) :
|
2956
|
+
}) : /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
2955
2957
|
class: "preview-placeholder color-c",
|
2956
2958
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).pick
|
2957
2959
|
})
|
@@ -2970,11 +2972,11 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2970
2972
|
const native = emojiSkin.native;
|
2971
2973
|
const selected = ($693b183b0a78708f$export$9cb4719e2e525b7a)(this.state.pos, pos);
|
2972
2974
|
const key = pos.concat(emoji.id).join("");
|
2973
|
-
return
|
2975
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($e0d4dda61265ff1e$export$2e2bcd8739ae039), {
|
2974
2976
|
selected: selected,
|
2975
2977
|
skin: skin,
|
2976
2978
|
size: size,
|
2977
|
-
children:
|
2979
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
2978
2980
|
"aria-label": native,
|
2979
2981
|
"aria-selected": selected || undefined,
|
2980
2982
|
"aria-posinset": posinset,
|
@@ -2996,14 +2998,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
2996
2998
|
fontSize: this.props.emojiSize,
|
2997
2999
|
lineHeight: 0
|
2998
3000
|
},
|
2999
|
-
children: [
|
3001
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3000
3002
|
"aria-hidden": "true",
|
3001
3003
|
class: "background",
|
3002
3004
|
style: {
|
3003
3005
|
borderRadius: this.props.emojiButtonRadius,
|
3004
3006
|
backgroundColor: this.props.emojiButtonColors ? this.props.emojiButtonColors[(posinset - 1) % this.props.emojiButtonColors.length] : undefined
|
3005
3007
|
}
|
3006
|
-
}),
|
3008
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($254755d3f438722f$export$2e2bcd8739ae039), {
|
3007
3009
|
emoji: emoji,
|
3008
3010
|
set: this.props.set,
|
3009
3011
|
size: this.props.emojiSize,
|
@@ -3016,14 +3018,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3016
3018
|
}
|
3017
3019
|
renderSearch() {
|
3018
3020
|
const renderSkinTone = this.props.previewPosition == "none" || this.props.skinTonePosition == "search";
|
3019
|
-
return
|
3020
|
-
children: [
|
3021
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3022
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3021
3023
|
class: "spacer"
|
3022
|
-
}),
|
3024
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3023
3025
|
class: "flex flex-middle",
|
3024
|
-
children: [
|
3026
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3025
3027
|
class: "search relative flex-grow",
|
3026
|
-
children: [
|
3028
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("input", {
|
3027
3029
|
type: "search",
|
3028
3030
|
ref: this.refs.searchInput,
|
3029
3031
|
placeholder: ($7adb23b0109cc36a$export$dbe3113d60765c1a).search,
|
@@ -3031,10 +3033,10 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3031
3033
|
onInput: this.handleSearchInput,
|
3032
3034
|
onKeyDown: this.handleSearchKeyDown,
|
3033
3035
|
autoComplete: "off"
|
3034
|
-
}),
|
3036
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3035
3037
|
class: "icon loupe flex",
|
3036
3038
|
children: ($fcccfb36ed0cde68$export$2e2bcd8739ae039).search.loupe
|
3037
|
-
}), this.state.searchResults &&
|
3039
|
+
}), this.state.searchResults && /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
3038
3040
|
title: "Clear",
|
3039
3041
|
"aria-label": "Clear",
|
3040
3042
|
type: "button",
|
@@ -3052,21 +3054,21 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3052
3054
|
searchResults: searchResults
|
3053
3055
|
} = this.state;
|
3054
3056
|
if (!searchResults) return null;
|
3055
|
-
return
|
3057
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3056
3058
|
class: "category",
|
3057
3059
|
ref: this.refs.search,
|
3058
|
-
children: [
|
3060
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3059
3061
|
class: `sticky padding-small align-${this.dir[0]}`,
|
3060
3062
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).categories.search
|
3061
|
-
}),
|
3062
|
-
children: !searchResults.length ?
|
3063
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3064
|
+
children: !searchResults.length ? /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3063
3065
|
class: `padding-small align-${this.dir[0]}`,
|
3064
|
-
children: this.props.onAddCustomEmoji &&
|
3066
|
+
children: this.props.onAddCustomEmoji && /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("a", {
|
3065
3067
|
onClick: this.props.onAddCustomEmoji,
|
3066
3068
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).add_custom
|
3067
3069
|
})
|
3068
3070
|
}) : searchResults.map((row, i) => {
|
3069
|
-
return
|
3071
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3070
3072
|
class: "flex",
|
3071
3073
|
children: row.map((emoji, ii) => {
|
3072
3074
|
return this.renderEmojiButton(emoji, {
|
@@ -3086,7 +3088,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3086
3088
|
} = ($7adb23b0109cc36a$export$2d0294657ab35f1b);
|
3087
3089
|
const hidden = !!this.state.searchResults;
|
3088
3090
|
const perLine = this.getPerLine();
|
3089
|
-
return
|
3091
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3090
3092
|
style: {
|
3091
3093
|
visibility: hidden ? "hidden" : undefined,
|
3092
3094
|
display: hidden ? "none" : undefined,
|
@@ -3097,14 +3099,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3097
3099
|
root: root,
|
3098
3100
|
rows: rows
|
3099
3101
|
} = this.refs.categories.get(category.id);
|
3100
|
-
return
|
3102
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3101
3103
|
"data-id": category.target ? category.target.id : category.id,
|
3102
3104
|
class: "category",
|
3103
3105
|
ref: root,
|
3104
|
-
children: [
|
3106
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3105
3107
|
class: `sticky padding-small align-${this.dir[0]}`,
|
3106
3108
|
children: category.name || ($7adb23b0109cc36a$export$dbe3113d60765c1a).categories[category.id]
|
3107
|
-
}),
|
3109
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3108
3110
|
class: "relative",
|
3109
3111
|
style: {
|
3110
3112
|
height: rows.length * this.props.emojiButtonSize
|
@@ -3118,7 +3120,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3118
3120
|
const end = start + perLine;
|
3119
3121
|
const emojiIds = category.emojis.slice(start, end);
|
3120
3122
|
if (emojiIds.length < perLine) emojiIds.push(...new Array(perLine - emojiIds.length));
|
3121
|
-
return
|
3123
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3122
3124
|
"data-index": row.index,
|
3123
3125
|
ref: ref,
|
3124
3126
|
class: "flex row",
|
@@ -3126,7 +3128,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3126
3128
|
top: i * this.props.emojiButtonSize
|
3127
3129
|
},
|
3128
3130
|
children: visible && emojiIds.map((emojiId, ii) => {
|
3129
|
-
if (!emojiId) return
|
3131
|
+
if (!emojiId) return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3130
3132
|
style: {
|
3131
3133
|
width: this.props.emojiButtonSize,
|
3132
3134
|
height: this.props.emojiButtonSize
|
@@ -3148,14 +3150,14 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3148
3150
|
}
|
3149
3151
|
renderSkinToneButton() {
|
3150
3152
|
if (this.props.skinTonePosition == "none") return null;
|
3151
|
-
return
|
3153
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3152
3154
|
class: "flex flex-auto flex-center flex-middle",
|
3153
3155
|
style: {
|
3154
3156
|
position: "relative",
|
3155
3157
|
width: this.props.emojiButtonSize,
|
3156
3158
|
height: this.props.emojiButtonSize
|
3157
3159
|
},
|
3158
|
-
children:
|
3160
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
3159
3161
|
type: "button",
|
3160
3162
|
ref: this.refs.skinToneButton,
|
3161
3163
|
class: "skin-tone-button flex flex-auto flex-center flex-middle",
|
@@ -3167,7 +3169,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3167
3169
|
width: this.props.emojiSize,
|
3168
3170
|
height: this.props.emojiSize
|
3169
3171
|
},
|
3170
|
-
children:
|
3172
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3171
3173
|
class: `skin-tone skin-tone-${this.state.skin}`
|
3172
3174
|
})
|
3173
3175
|
})
|
@@ -3176,7 +3178,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3176
3178
|
renderLiveRegion() {
|
3177
3179
|
const emoji = this.getEmojiByPos(this.state.pos);
|
3178
3180
|
const contents = emoji ? emoji.name : "";
|
3179
|
-
return
|
3181
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3180
3182
|
"aria-live": "polite",
|
3181
3183
|
class: "sr-only",
|
3182
3184
|
children: contents
|
@@ -3192,7 +3194,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3192
3194
|
position.top = skinToneButtonRect.bottom - baseRect.top + 3;
|
3193
3195
|
position.bottom = "auto";
|
3194
3196
|
}
|
3195
|
-
return
|
3197
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3196
3198
|
ref: this.refs.menu,
|
3197
3199
|
role: "radiogroup",
|
3198
3200
|
dir: this.dir,
|
@@ -3203,8 +3205,8 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3203
3205
|
children: [...Array(6).keys()].map(i => {
|
3204
3206
|
const skin = i + 1;
|
3205
3207
|
const checked = this.state.skin == skin;
|
3206
|
-
return
|
3207
|
-
children: [
|
3208
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3209
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("input", {
|
3208
3210
|
type: "radio",
|
3209
3211
|
name: "skin-tone",
|
3210
3212
|
value: skin,
|
@@ -3218,16 +3220,16 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3218
3220
|
this.handleSkinClick(skin);
|
3219
3221
|
}
|
3220
3222
|
}
|
3221
|
-
}),
|
3223
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("button", {
|
3222
3224
|
"aria-hidden": "true",
|
3223
3225
|
tabindex: "-1",
|
3224
3226
|
onClick: () => this.handleSkinClick(skin),
|
3225
3227
|
onMouseEnter: () => this.handleSkinMouseOver(skin),
|
3226
3228
|
onMouseLeave: () => this.handleSkinMouseOver(),
|
3227
3229
|
class: "option flex flex-grow flex-middle",
|
3228
|
-
children: [
|
3230
|
+
children: [/* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3229
3231
|
class: `skin-tone skin-tone-${skin}`
|
3230
|
-
}),
|
3232
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("span", {
|
3231
3233
|
class: "margin-small-lr",
|
3232
3234
|
children: ($7adb23b0109cc36a$export$dbe3113d60765c1a).skins[skin]
|
3233
3235
|
})]
|
@@ -3238,7 +3240,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3238
3240
|
}
|
3239
3241
|
render() {
|
3240
3242
|
const lineWidth = this.props.perLine * this.props.emojiButtonSize;
|
3241
|
-
return
|
3243
|
+
return /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("section", {
|
3242
3244
|
id: "root",
|
3243
3245
|
class: "flex flex-column",
|
3244
3246
|
dir: this.dir,
|
@@ -3248,13 +3250,13 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3248
3250
|
"data-emoji-set": this.props.set,
|
3249
3251
|
"data-theme": this.state.theme,
|
3250
3252
|
"data-menu": this.state.showSkins ? "" : undefined,
|
3251
|
-
children: [this.props.previewPosition == "top" && this.renderPreview(), this.props.navPosition == "top" && this.renderNav(), this.props.searchPosition == "sticky" &&
|
3253
|
+
children: [this.props.previewPosition == "top" && this.renderPreview(), this.props.navPosition == "top" && this.renderNav(), this.props.searchPosition == "sticky" && /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3252
3254
|
class: "padding-lr",
|
3253
3255
|
children: this.renderSearch()
|
3254
|
-
}),
|
3256
|
+
}), /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3255
3257
|
ref: this.refs.scroll,
|
3256
3258
|
class: "scroll flex-grow padding-lr",
|
3257
|
-
children:
|
3259
|
+
children: /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)("div", {
|
3258
3260
|
style: {
|
3259
3261
|
width: this.props.dynamicWidth ? "100%" : lineWidth,
|
3260
3262
|
height: "100%"
|
@@ -3323,7 +3325,7 @@ class $89bd6bb200cc8fef$export$2e2bcd8739ae039 extends ($fb96b826c0c5f37a$export
|
|
3323
3325
|
const grid = [];
|
3324
3326
|
grid.setsize = searchResults.length;
|
3325
3327
|
let row = null;
|
3326
|
-
for (
|
3328
|
+
for (const emoji of searchResults) {
|
3327
3329
|
if (!grid.length || row.length == this.getPerLine()) {
|
3328
3330
|
row = [];
|
3329
3331
|
row.__categoryId = "search";
|
@@ -3447,13 +3449,13 @@ class $efa000751917694d$export$2e2bcd8739ae039 extends ($26f27c338a96b1a6$export
|
|
3447
3449
|
};
|
3448
3450
|
await ($7adb23b0109cc36a$export$2cd8252107eb640b)(props);
|
3449
3451
|
if (this.disconnected) return;
|
3450
|
-
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)(
|
3452
|
+
($fb96b826c0c5f37a$export$b3890eb0ae9dca99)( /* #__PURE__*/($bd9dd35321b03dd4$export$34b9dba7ce09269b)(($89bd6bb200cc8fef$export$2e2bcd8739ae039), {
|
3451
3453
|
...props
|
3452
3454
|
}), this.shadowRoot);
|
3453
3455
|
}
|
3454
3456
|
constructor(props) {
|
3455
3457
|
super(props, {
|
3456
|
-
styles: (
|
3458
|
+
styles: (/* @__PURE__*/$parcel$interopDefault($329d53ba9fd7125f$exports))
|
3457
3459
|
});
|
3458
3460
|
}
|
3459
3461
|
}
|
@@ -3475,7 +3477,7 @@ function $e5534fc185f7111e$export$2e2bcd8739ae039(props) {
|
|
3475
3477
|
instance.current = null;
|
3476
3478
|
};
|
3477
3479
|
}, []);
|
3478
|
-
return
|
3480
|
+
return /* #__PURE__*/(React__default["default"]).createElement("div", {
|
3479
3481
|
ref: ref
|
3480
3482
|
});
|
3481
3483
|
}
|
@@ -3551,7 +3553,7 @@ function EmojiPicker(props) {
|
|
3551
3553
|
if (!i18n) {
|
3552
3554
|
return null;
|
3553
3555
|
}
|
3554
|
-
return
|
3556
|
+
return /* #__PURE__*/React__default["default"].createElement($e5534fc185f7111e$export$2e2bcd8739ae039, {
|
3555
3557
|
data: undefined,
|
3556
3558
|
theme: theme,
|
3557
3559
|
previewPosition: "none",
|
@@ -3562,7 +3564,7 @@ function EmojiPicker(props) {
|
|
3562
3564
|
i18n: i18n
|
3563
3565
|
});
|
3564
3566
|
}
|
3565
|
-
|
3567
|
+
const EmojiPicker$1 = /* #__PURE__*/React.memo(EmojiPicker);
|
3566
3568
|
|
3567
3569
|
/**
|
3568
3570
|
* @typedef {object} Props
|
@@ -3581,7 +3583,7 @@ var EmojiPicker$1 = /*#__PURE__*/React.memo(EmojiPicker);
|
|
3581
3583
|
* @return {JSX.Element}
|
3582
3584
|
*/
|
3583
3585
|
function EmojiPickerContainer(_ref) {
|
3584
|
-
|
3586
|
+
const {
|
3585
3587
|
showPicker,
|
3586
3588
|
theme,
|
3587
3589
|
handleSelectEmoji,
|
@@ -3590,17 +3592,17 @@ function EmojiPickerContainer(_ref) {
|
|
3590
3592
|
position,
|
3591
3593
|
language
|
3592
3594
|
} = _ref;
|
3593
|
-
return
|
3595
|
+
return /* #__PURE__*/React__default["default"].createElement("div", {
|
3594
3596
|
className: "react-emoji-picker--container"
|
3595
|
-
}, showPicker &&
|
3597
|
+
}, showPicker && /* #__PURE__*/React__default["default"].createElement("div", {
|
3596
3598
|
className: "react-emoji-picker--wrapper",
|
3597
3599
|
onClick: evt => evt.stopPropagation(),
|
3598
3600
|
style: position === 'below' ? {
|
3599
3601
|
top: '40px'
|
3600
3602
|
} : {}
|
3601
|
-
},
|
3603
|
+
}, /* #__PURE__*/React__default["default"].createElement("div", {
|
3602
3604
|
className: "react-emoji-picker"
|
3603
|
-
},
|
3605
|
+
}, /* #__PURE__*/React__default["default"].createElement(EmojiPicker$1, {
|
3604
3606
|
theme: theme,
|
3605
3607
|
onSelectEmoji: handleSelectEmoji,
|
3606
3608
|
disableRecent: disableRecent,
|
@@ -3728,7 +3730,7 @@ const EmojiPickerWrapper = props => {
|
|
3728
3730
|
}
|
3729
3731
|
}
|
3730
3732
|
React.useEffect(() => {
|
3731
|
-
|
3733
|
+
let _buttonRef$current;
|
3732
3734
|
if (buttonRef !== null && buttonRef !== void 0 && (_buttonRef$current = buttonRef.current) !== null && _buttonRef$current !== void 0 && _buttonRef$current.style) {
|
3733
3735
|
buttonRef.current.style.position = "relative";
|
3734
3736
|
setCustomButton(buttonRef.current);
|
@@ -3737,7 +3739,7 @@ const EmojiPickerWrapper = props => {
|
|
3737
3739
|
setCustomButton(buttonElement);
|
3738
3740
|
}
|
3739
3741
|
}, [buttonRef, buttonElement]);
|
3740
|
-
return customButton ?
|
3742
|
+
return customButton ? /* #__PURE__*/ReactDOM__default["default"].createPortal( /* #__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /* #__PURE__*/React__default["default"].createElement(EmojiPickerContainer, {
|
3741
3743
|
showPicker: showPicker,
|
3742
3744
|
theme: theme,
|
3743
3745
|
handleSelectEmoji: handleSelectEmoji,
|
@@ -3745,12 +3747,12 @@ const EmojiPickerWrapper = props => {
|
|
3745
3747
|
customEmojis: customEmojis,
|
3746
3748
|
position: emojiPickerPosition,
|
3747
3749
|
language: language
|
3748
|
-
}),
|
3750
|
+
}), /* #__PURE__*/React__default["default"].createElement(EmojiPickerButton, {
|
3749
3751
|
showPicker: showPicker,
|
3750
3752
|
toggleShowPicker: toggleShowPicker,
|
3751
3753
|
buttonElement: customButton,
|
3752
3754
|
buttonRef: buttonRef
|
3753
|
-
})), customButton) :
|
3755
|
+
})), customButton) : /* #__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /* #__PURE__*/React__default["default"].createElement(EmojiPickerContainer, {
|
3754
3756
|
showPicker: showPicker,
|
3755
3757
|
theme: theme,
|
3756
3758
|
handleSelectEmoji: handleSelectEmoji,
|
@@ -3758,7 +3760,7 @@ const EmojiPickerWrapper = props => {
|
|
3758
3760
|
customEmojis: customEmojis,
|
3759
3761
|
position: emojiPickerPosition,
|
3760
3762
|
language: language
|
3761
|
-
}),
|
3763
|
+
}), /* #__PURE__*/React__default["default"].createElement(EmojiPickerButton, {
|
3762
3764
|
showPicker: showPicker,
|
3763
3765
|
toggleShowPicker: toggleShowPicker
|
3764
3766
|
}));
|
@@ -3898,7 +3900,7 @@ function useMention(searchMention) {
|
|
3898
3900
|
|
3899
3901
|
/** @type {(event: React.KeyboardEvent) => void} */
|
3900
3902
|
const onKeyUp = React.useCallback(async event => {
|
3901
|
-
|
3903
|
+
let _getElementWithFocus;
|
3902
3904
|
if (typeof searchMention !== "function") return;
|
3903
3905
|
if (event.key === "Backspace" && (_getElementWithFocus = getElementWithFocus()) !== null && _getElementWithFocus !== void 0 && _getElementWithFocus.element.parentElement.hasAttribute("data-mention-id")) {
|
3904
3906
|
const elementWithFocus = getElementWithFocus();
|
@@ -3943,7 +3945,7 @@ function useMention(searchMention) {
|
|
3943
3945
|
// eslint-disable-next-line valid-jsdoc
|
3944
3946
|
/** @type {React.ForwardRefRenderFunction<Ref, Props>} */
|
3945
3947
|
const MentionUserList = (_ref, ref) => {
|
3946
|
-
|
3948
|
+
const {
|
3947
3949
|
users,
|
3948
3950
|
mentionSearchText,
|
3949
3951
|
onSelect,
|
@@ -4029,27 +4031,27 @@ const MentionUserList = (_ref, ref) => {
|
|
4029
4031
|
unsubscribe();
|
4030
4032
|
};
|
4031
4033
|
}, [addEventListener, onSelect, selectedUser, usersFiltered]);
|
4032
|
-
return
|
4034
|
+
return /* #__PURE__*/React__default["default"].createElement("ul", {
|
4033
4035
|
className: "react-input-emoji--mention--list",
|
4034
4036
|
"data-testid": "mention-user-list"
|
4035
|
-
}, usersFiltered.map((user, index) =>
|
4037
|
+
}, usersFiltered.map((user, index) => /* #__PURE__*/React__default["default"].createElement("li", {
|
4036
4038
|
key: user.id
|
4037
|
-
},
|
4039
|
+
}, /* #__PURE__*/React__default["default"].createElement("button", {
|
4038
4040
|
type: "button",
|
4039
4041
|
onClick: handleClick(user),
|
4040
4042
|
className: "react-input-emoji--mention--item".concat(selectedUser === index ? " react-input-emoji--mention--item__selected" : ""),
|
4041
4043
|
onMouseOver: () => setSelectedUser(index)
|
4042
|
-
},
|
4044
|
+
}, /* #__PURE__*/React__default["default"].createElement("img", {
|
4043
4045
|
className: "react-input-emoji--mention--item--img",
|
4044
4046
|
src: user.image
|
4045
|
-
}),
|
4047
|
+
}), /* #__PURE__*/React__default["default"].createElement("div", {
|
4046
4048
|
className: "react-input-emoji--mention--item--name",
|
4047
4049
|
dangerouslySetInnerHTML: {
|
4048
4050
|
__html: user.nameHtml
|
4049
4051
|
}
|
4050
4052
|
})))));
|
4051
4053
|
};
|
4052
|
-
const MentionUserListWithRef =
|
4054
|
+
const MentionUserListWithRef = /* #__PURE__*/React.forwardRef(MentionUserList);
|
4053
4055
|
|
4054
4056
|
// @ts-check
|
4055
4057
|
|
@@ -4076,7 +4078,7 @@ const MentionUserListWithRef = /*#__PURE__*/React.forwardRef(MentionUserList);
|
|
4076
4078
|
// eslint-disable-next-line valid-jsdoc
|
4077
4079
|
/** @type {React.FC<Props>} */
|
4078
4080
|
const MentionWrapper = _ref => {
|
4079
|
-
|
4081
|
+
const {
|
4080
4082
|
searchMention,
|
4081
4083
|
addEventListener,
|
4082
4084
|
appendContent,
|
@@ -4174,16 +4176,16 @@ const MentionWrapper = _ref => {
|
|
4174
4176
|
onSelectUser();
|
4175
4177
|
appendContent("<span class=\"react-input-emoji--mention--text\" data-mention-id=\"".concat(user.id, "\" data-mention-name=\"").concat(user.name, "\">@").concat(user.name, "</span> "));
|
4176
4178
|
}
|
4177
|
-
return
|
4179
|
+
return /* #__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, loading ? /* #__PURE__*/React__default["default"].createElement("div", {
|
4178
4180
|
className: "react-input-emoji--mention--container"
|
4179
|
-
},
|
4181
|
+
}, /* #__PURE__*/React__default["default"].createElement("div", {
|
4180
4182
|
className: "react-input-emoji--mention--loading"
|
4181
|
-
},
|
4183
|
+
}, /* #__PURE__*/React__default["default"].createElement("div", {
|
4182
4184
|
className: "react-input-emoji--mention--loading--spinner"
|
4183
|
-
}, "Loading..."))) : showUserList &&
|
4185
|
+
}, "Loading..."))) : showUserList && /* #__PURE__*/React__default["default"].createElement("div", {
|
4184
4186
|
className: "react-input-emoji--mention--container",
|
4185
4187
|
onClick: evt => evt.stopPropagation()
|
4186
|
-
},
|
4188
|
+
}, /* #__PURE__*/React__default["default"].createElement(MentionUserListWithRef, {
|
4187
4189
|
ref: metionUserListRef,
|
4188
4190
|
mentionSearchText: mentionSearchText,
|
4189
4191
|
users: mentionUsers,
|
@@ -4383,7 +4385,7 @@ function InputEmoji(props, ref) {
|
|
4383
4385
|
pollute
|
4384
4386
|
} = usePollute();
|
4385
4387
|
const updateHTML = React.useCallback(function () {
|
4386
|
-
|
4388
|
+
const nextValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
4387
4389
|
if (textInputRef.current === null) return;
|
4388
4390
|
textInputRef.current.html = replaceAllTextEmojis(nextValue);
|
4389
4391
|
sanitizedTextRef.current = nextValue;
|
@@ -4514,14 +4516,14 @@ function InputEmoji(props, ref) {
|
|
4514
4516
|
document.execCommand("insertHTML", false, content);
|
4515
4517
|
}
|
4516
4518
|
}
|
4517
|
-
return
|
4519
|
+
return /* #__PURE__*/React__default["default"].createElement("div", {
|
4518
4520
|
className: "react-emoji"
|
4519
|
-
},
|
4521
|
+
}, /* #__PURE__*/React__default["default"].createElement(MentionWrapper, {
|
4520
4522
|
searchMention: searchMention,
|
4521
4523
|
addEventListener: addEventListener,
|
4522
4524
|
appendContent: appendContent,
|
4523
4525
|
addSanitizeFn: addSanitizeFn
|
4524
|
-
}),
|
4526
|
+
}), /* #__PURE__*/React__default["default"].createElement(TextInputWithRef, {
|
4525
4527
|
ref: textInputRef,
|
4526
4528
|
onCopy: handleCopy,
|
4527
4529
|
onPaste: handlePaste,
|
@@ -4546,7 +4548,7 @@ function InputEmoji(props, ref) {
|
|
4546
4548
|
tabIndex: tabIndex,
|
4547
4549
|
className: inputClass,
|
4548
4550
|
onChange: handleTextInputChange
|
4549
|
-
}),
|
4551
|
+
}), /* #__PURE__*/React__default["default"].createElement(EmojiPickerWrapper, {
|
4550
4552
|
theme: theme,
|
4551
4553
|
keepOpened: keepOpened,
|
4552
4554
|
disableRecent: disableRecent,
|
@@ -4559,7 +4561,7 @@ function InputEmoji(props, ref) {
|
|
4559
4561
|
language: language
|
4560
4562
|
}));
|
4561
4563
|
}
|
4562
|
-
const InputEmojiWithRef =
|
4564
|
+
const InputEmojiWithRef = /* #__PURE__*/React.forwardRef(InputEmoji);
|
4563
4565
|
InputEmojiWithRef.defaultProps = {
|
4564
4566
|
theme: /** @type {const} */"auto",
|
4565
4567
|
height: 30,
|
@@ -4578,4 +4580,4 @@ InputEmojiWithRef.defaultProps = {
|
|
4578
4580
|
};
|
4579
4581
|
|
4580
4582
|
module.exports = InputEmojiWithRef;
|
4581
|
-
|
4583
|
+
// # sourceMappingURL=index.js.map
|