@webitel/ui-sdk 26.8.128 → 26.8.130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/clients-CK-bThbs.js +42428 -0
  2. package/dist/{components-ClBeAarp.js → components-BF21ppoM.js} +119 -119
  3. package/dist/{convertDuration-B5bq1uxb.js → convertDuration-B7EyPh1B.js} +1 -1
  4. package/dist/{enums-Xag5PrU-.js → enums-Qt_FgVQw.js} +44 -37
  5. package/dist/ui-sdk.css +1 -1
  6. package/dist/ui-sdk.js +208 -94
  7. package/dist/ui-sdk.umd.cjs +660 -651
  8. package/dist/{useValidation-D3Tu7osU.js → useValidation-Doxk7u8O.js} +1 -1
  9. package/dist/{utils-B4S9Yz-y.js → utils-g-eGs-rV.js} +1 -1
  10. package/dist/{wt-action-bar-BAkn5Om9.js → wt-action-bar-CY9H27Ec.js} +2 -2
  11. package/dist/{wt-badge-DoYHG05A.js → wt-badge-Dyvw8SJe.js} +1 -1
  12. package/dist/{wt-button-BfNbgYHy.js → wt-button-qmvx3hrn.js} +17 -17
  13. package/dist/{wt-chat-emoji-DScnZq3L.js → wt-chat-emoji-Cx8k9m9H.js} +195 -191
  14. package/dist/{wt-datepicker-D5qEc5xY.js → wt-datepicker-Da7l0Gm1.js} +8 -8
  15. package/dist/{wt-display-chip-items-T7QK4gFh.js → wt-display-chip-items-AZ9DiSV4.js} +2 -2
  16. package/dist/{wt-dual-panel-ruU3Urks.js → wt-dual-panel-DliLMQ_m.js} +1 -1
  17. package/dist/{wt-expansion-card-DLGj2407.js → wt-expansion-card-CcziJa7V.js} +1 -1
  18. package/dist/{wt-expansion-panel-DfhgRSs4.js → wt-expansion-panel-Y3eYALow.js} +1 -1
  19. package/dist/{wt-icon-action-B6KmDhfn.js → wt-icon-action-BIO8dR4s.js} +1 -1
  20. package/dist/{wt-icon-btn-B7BR2BJW.js → wt-icon-btn-D0co3nt5.js} +1 -1
  21. package/dist/{wt-icon-CCEttp-t.js → wt-icon-oMc-wpjH.js} +3 -2
  22. package/dist/{wt-notifications-bar-B20L-XMV.js → wt-notifications-bar-CC48Ce7a.js} +2 -2
  23. package/dist/{wt-player-68WtJY5v.js → wt-player-CjAl-XrU.js} +3 -3
  24. package/dist/{wt-screen-recordings-action-Yx0duVey.js → wt-screen-recordings-action-Dwj649Zu.js} +1 -1
  25. package/dist/{wt-search-bar-CxMHtUb-.js → wt-search-bar-B9iP5zrT.js} +1 -1
  26. package/dist/{wt-send-message-popup-DXWOn8eg.js → wt-send-message-popup-BjI9PKzi.js} +3 -3
  27. package/dist/{wt-status-select-3qvqcdaM.js → wt-status-select-C5YdvKpM.js} +2 -2
  28. package/dist/{wt-table-BDJXh1rJ.js → wt-table-CsGUHe1D.js} +3 -3
  29. package/dist/{wt-tabs-DuOgj-lZ.js → wt-tabs-BJ-sFhv7.js} +1 -1
  30. package/dist/{wt-timepicker-BtjKfsPX.js → wt-timepicker-DcoIUiO-.js} +2 -2
  31. package/dist/{wt-toast-BScwyGca.js → wt-toast-DGtljpcq.js} +2 -2
  32. package/dist/{wt-tree-table-B4N6HMgm.js → wt-tree-table-DnvAUSXr.js} +1 -1
  33. package/dist/{wt-type-extension-value-input-BsIDJ-6K.js → wt-type-extension-value-input-C6Mq2QeU.js} +4 -4
  34. package/dist/{wt-vidstack-player-C_miJ8JF.js → wt-vidstack-player-D_N5CdUm.js} +5 -5
  35. package/package.json +3 -1
  36. package/src/assets/icons/sprite/contacts--filled.svg +5 -0
  37. package/src/assets/icons/sprite/contacts.svg +2 -2
  38. package/src/assets/icons/sprite/index.ts +2 -0
  39. package/src/components/on-demand/wt-chat-emoji/__tests__/WtChatEmoji.spec.js +48 -0
  40. package/src/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue +11 -2
  41. package/src/components/wt-tabs/_variables.css +2 -1
  42. package/src/components/wt-tabs/wt-tabs.vue +21 -5
  43. package/src/enums/ButtonColor/ButtonColor.ts +2 -0
  44. package/src/plugins/primevue/theme/components/button/button.js +10 -0
  45. package/types/.tsbuildinfo +1 -1
  46. package/types/components/on-demand/wt-chat-emoji/__tests__/WtChatEmoji.spec.d.ts +1 -0
  47. package/types/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue.d.ts +1 -54
  48. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +11 -11
  49. package/types/enums/ButtonColor/ButtonColor.d.ts +2 -0
  50. package/types/plugins/primevue/theme/components/button/button.d.ts +104 -0
  51. package/dist/clients-BIYo95Lm.js +0 -42313
@@ -1,9 +1,9 @@
1
- import "./components-ClBeAarp.js";
1
+ import "./components-BF21ppoM.js";
2
2
  import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
3
- import { m as t } from "./enums-Xag5PrU-.js";
4
- import { t as n } from "./wt-button-BfNbgYHy.js";
5
- import { n as r } from "./wt-toast-BScwyGca.js";
6
- import { Teleport as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, nextTick as u, onBeforeUnmount as d, openBlock as f, ref as p, resolveDirective as m, unref as h, withDirectives as g } from "vue";
3
+ import { T as t, m as n } from "./enums-Qt_FgVQw.js";
4
+ import { t as r } from "./wt-button-qmvx3hrn.js";
5
+ import { n as i } from "./wt-toast-DGtljpcq.js";
6
+ import { Teleport as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createVNode as u, nextTick as d, onBeforeUnmount as f, openBlock as p, ref as m, resolveDirective as h, unref as g, withDirectives as ee } from "vue";
7
7
  //#region node_modules/emoji-picker-element/database.js
8
8
  function _(e) {
9
9
  if (typeof e != "string" || !e) throw Error("expected a non-empty string, got: " + e);
@@ -11,8 +11,8 @@ function _(e) {
11
11
  function v(e) {
12
12
  if (typeof e != "number") throw Error("expected a number, got: " + e);
13
13
  }
14
- var y = 1, b = 1, x = "emoji", S = "keyvalue", C = "favorites", w = "tokens", T = "tokens", E = "unicode", D = "count", O = "group", ee = "order", k = "group-order", A = "eTag", j = "url", te = "skinTone", M = "readonly", N = "readwrite", ne = "skinUnicodes", P = "skinUnicodes", re = "https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json", ie = "en";
15
- function ae(e, t) {
14
+ var y = 1, b = 1, x = "emoji", S = "keyvalue", C = "favorites", te = "tokens", w = "tokens", T = "unicode", E = "count", D = "group", O = "order", k = "group-order", A = "eTag", j = "url", ne = "skinTone", M = "readonly", N = "readwrite", P = "skinUnicodes", re = "skinUnicodes", ie = "https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json", ae = "en";
15
+ function oe(e, t) {
16
16
  let n = /* @__PURE__ */ new Set(), r = [];
17
17
  for (let i of e) {
18
18
  let e = t(i);
@@ -21,36 +21,36 @@ function ae(e, t) {
21
21
  return r;
22
22
  }
23
23
  function F(e) {
24
- return ae(e, (e) => e.unicode);
24
+ return oe(e, (e) => e.unicode);
25
25
  }
26
- function oe(e) {
26
+ function se(e) {
27
27
  function t(t, n, r) {
28
28
  let i = n ? e.createObjectStore(t, { keyPath: n }) : e.createObjectStore(t);
29
29
  if (r) for (let [e, [t, n]] of Object.entries(r)) i.createIndex(e, t, { multiEntry: n });
30
30
  return i;
31
31
  }
32
- t(S), t(x, E, {
33
- [T]: [w, !0],
34
- [k]: [[O, ee]],
35
- [ne]: [P, !0]
36
- }), t(C, void 0, { [D]: [""] });
32
+ t(S), t(x, T, {
33
+ [w]: [te, !0],
34
+ [k]: [[D, O]],
35
+ [P]: [re, !0]
36
+ }), t(C, void 0, { [E]: [""] });
37
37
  }
38
38
  var I = {}, L = {}, R = {};
39
- function se(e, t, n) {
39
+ function ce(e, t, n) {
40
40
  n.onerror = () => t(n.error), n.onblocked = () => t(/* @__PURE__ */ Error("IDB blocked")), n.onsuccess = () => e(n.result);
41
41
  }
42
- async function ce(e) {
42
+ async function le(e) {
43
43
  let t = await new Promise((t, n) => {
44
44
  let r = indexedDB.open(e, y);
45
45
  I[e] = r, r.onupgradeneeded = (e) => {
46
46
  /* istanbul ignore else */
47
- e.oldVersion < b && oe(r.result);
48
- }, se(t, n, r);
47
+ e.oldVersion < b && se(r.result);
48
+ }, ce(t, n, r);
49
49
  });
50
- return t.onclose = () => ue(e), t;
50
+ return t.onclose = () => B(e), t;
51
51
  }
52
- function le(e) {
53
- return L[e] || (L[e] = ce(e)), L[e];
52
+ function ue(e) {
53
+ return L[e] || (L[e] = le(e)), L[e];
54
54
  }
55
55
  function z(e, t, n, r) {
56
56
  return new Promise((i, a) => {
@@ -61,7 +61,7 @@ function z(e, t, n, r) {
61
61
  }), o.oncomplete = () => i(c), o.onerror = () => a(o.error);
62
62
  });
63
63
  }
64
- function ue(e) {
64
+ function B(e) {
65
65
  let t = I[e], n = t && t.result;
66
66
  if (n) {
67
67
  n.close();
@@ -73,7 +73,7 @@ function ue(e) {
73
73
  }
74
74
  function de(e) {
75
75
  return new Promise((t, n) => {
76
- ue(e), se(t, n, indexedDB.deleteDatabase(e));
76
+ B(e), ce(t, n, indexedDB.deleteDatabase(e));
77
77
  });
78
78
  }
79
79
  function fe(e, t) {
@@ -81,7 +81,7 @@ function fe(e, t) {
81
81
  n ||= R[e] = [], n.push(t);
82
82
  }
83
83
  var pe = /* @__PURE__ */ new Set(/* @__PURE__ */ ":D.XD.:'D.O:).:X.:P.;P.XP.:L.:Z.:j.8D.XO.8).:B.:O.:S.:'o.Dx.X(.D:.:C.>0).:3.</3.<3.\\M/.:E.8#".split("."));
84
- function B(e) {
84
+ function V(e) {
85
85
  return e.split(/[\s_]+/).map((e) => !e.match(/\w/) || pe.has(e) ? e.toLowerCase() : e.replace(/[)(:,]/g, "").replace(/’/g, "'").toLowerCase()).filter(Boolean);
86
86
  }
87
87
  var me = 2;
@@ -96,9 +96,9 @@ function ge(e) {
96
96
  order: r,
97
97
  tags: o,
98
98
  tokens: [...new Set(he([
99
- ...(i || []).map(B).flat(),
100
- ...(o || []).map(B).flat(),
101
- ...B(e),
99
+ ...(i || []).map(V).flat(),
100
+ ...(o || []).map(V).flat(),
101
+ ...V(e),
102
102
  t
103
103
  ]))].sort(),
104
104
  unicode: s,
@@ -114,13 +114,13 @@ function ge(e) {
114
114
  function _e(e, t, n, r) {
115
115
  e[t](n).onsuccess = (e) => r && r(e.target.result);
116
116
  }
117
- function V(e, t, n) {
117
+ function H(e, t, n) {
118
118
  _e(e, "get", t, n);
119
119
  }
120
120
  function ve(e, t, n) {
121
121
  _e(e, "getAll", t, n);
122
122
  }
123
- function H(e) {
123
+ function U(e) {
124
124
  /* istanbul ignore else */
125
125
  e.commit && e.commit();
126
126
  }
@@ -138,10 +138,10 @@ function be(e, t) {
138
138
  return r;
139
139
  }
140
140
  async function xe(e) {
141
- return !await U(e, S, j);
141
+ return !await W(e, S, j);
142
142
  }
143
143
  async function Se(e, t, n) {
144
- let [r, i] = await Promise.all([A, j].map((t) => U(e, S, t)));
144
+ let [r, i] = await Promise.all([A, j].map((t) => W(e, S, t)));
145
145
  return r === n && i === t;
146
146
  }
147
147
  async function Ce(e, t) {
@@ -169,12 +169,12 @@ async function we(e, t, n, r) {
169
169
  if (!(o === r && s === n)) {
170
170
  e.clear();
171
171
  for (let t of i) e.put(t);
172
- t.put(r, A), t.put(n, j), H(a);
172
+ t.put(r, A), t.put(n, j), U(a);
173
173
  }
174
174
  }
175
- V(t, A, (e) => {
175
+ H(t, A, (e) => {
176
176
  o = e, l();
177
- }), V(t, j, (e) => {
177
+ }), H(t, j, (e) => {
178
178
  s = e, l();
179
179
  });
180
180
  });
@@ -187,7 +187,7 @@ async function Te(e, t) {
187
187
  });
188
188
  }
189
189
  async function Ee(e, t) {
190
- let n = he(B(t));
190
+ let n = he(V(t));
191
191
  return n.length ? z(e, x, M, (e, t, r) => {
192
192
  let i = [], a = () => {
193
193
  i.length === n.length && o();
@@ -196,7 +196,7 @@ async function Ee(e, t) {
196
196
  };
197
197
  for (let t = 0; t < n.length; t++) {
198
198
  let r = n[t], o = t === n.length - 1 ? IDBKeyRange.bound(r, r + "￿", !1, !0) : IDBKeyRange.only(r);
199
- ve(e.index(T), o, (e) => {
199
+ ve(e.index(w), o, (e) => {
200
200
  i.push(e), a();
201
201
  });
202
202
  }
@@ -207,28 +207,28 @@ async function De(e, t) {
207
207
  return n.length ? n.filter((e) => (e.shortcodes || []).map((e) => e.toLowerCase()).includes(t.toLowerCase()))[0] || null : await Ce(e, (e) => (e.shortcodes || []).includes(t.toLowerCase())) || null;
208
208
  }
209
209
  async function Oe(e, t) {
210
- return z(e, x, M, (e, n, r) => V(e, t, (n) => {
210
+ return z(e, x, M, (e, n, r) => H(e, t, (n) => {
211
211
  if (n) return r(n);
212
- V(e.index(ne), t, (e) => r(e || null));
212
+ H(e.index(P), t, (e) => r(e || null));
213
213
  }));
214
214
  }
215
- function U(e, t, n) {
216
- return z(e, t, M, (e, t, r) => V(e, n, r));
215
+ function W(e, t, n) {
216
+ return z(e, t, M, (e, t, r) => H(e, n, r));
217
217
  }
218
218
  function ke(e, t, n, r) {
219
219
  return z(e, t, N, (e, t) => {
220
- e.put(r, n), H(t);
220
+ e.put(r, n), U(t);
221
221
  });
222
222
  }
223
223
  function Ae(e, t) {
224
- return z(e, C, N, (e, n) => V(e, t, (r) => {
225
- e.put((r || 0) + 1, t), H(n);
224
+ return z(e, C, N, (e, n) => H(e, t, (r) => {
225
+ e.put((r || 0) + 1, t), U(n);
226
226
  }));
227
227
  }
228
228
  function je(e, t, n) {
229
229
  return n === 0 ? [] : z(e, [C, x], M, ([e, r], i, a) => {
230
230
  let o = [];
231
- e.index(D).openCursor(void 0, "prev").onsuccess = (e) => {
231
+ e.index(E).openCursor(void 0, "prev").onsuccess = (e) => {
232
232
  let i = e.target.result;
233
233
  if (!i) return a(o);
234
234
  function s(e) {
@@ -237,14 +237,14 @@ function je(e, t, n) {
237
237
  }
238
238
  let c = i.primaryKey, l = t.byName(c);
239
239
  if (l) return s(l);
240
- V(r, c, (e) => {
240
+ H(r, c, (e) => {
241
241
  if (e) return s(e);
242
242
  i.continue();
243
243
  });
244
244
  };
245
245
  });
246
246
  }
247
- var W = "";
247
+ var G = "";
248
248
  function Me(e, t) {
249
249
  let n = /* @__PURE__ */ new Map();
250
250
  for (let r of e) {
@@ -255,8 +255,8 @@ function Me(e, t) {
255
255
  let r = t.charAt(n), i = e.get(r);
256
256
  i || (i = /* @__PURE__ */ new Map(), e.set(r, i)), e = i;
257
257
  }
258
- let i = e.get(W);
259
- i || (i = [], e.set(W, i)), i.push(r);
258
+ let i = e.get(G);
259
+ i || (i = [], e.set(G, i)), i.push(r);
260
260
  }
261
261
  }
262
262
  return (e, t) => {
@@ -266,11 +266,11 @@ function Me(e, t) {
266
266
  if (i) r = i;
267
267
  else return [];
268
268
  }
269
- if (t) return r.get(W) || [];
269
+ if (t) return r.get(G) || [];
270
270
  let i = [], a = [r];
271
271
  for (; a.length;) {
272
272
  let e = [...a.shift().entries()].sort((e, t) => e[0] < t[0] ? -1 : 1);
273
- for (let [t, n] of e) t === W ? i.push(...n) : a.push(n);
273
+ for (let [t, n] of e) t === G ? i.push(...n) : a.push(n);
274
274
  }
275
275
  return i;
276
276
  };
@@ -284,10 +284,10 @@ function Fe(e) {
284
284
  Pe(e);
285
285
  let t = (e, t) => e.name.toLowerCase() < t.name.toLowerCase() ? -1 : 1, n = e.sort(t), r = Me(e, (e) => {
286
286
  let t = /* @__PURE__ */ new Set();
287
- if (e.shortcodes) for (let n of e.shortcodes) for (let e of B(n)) t.add(e);
287
+ if (e.shortcodes) for (let n of e.shortcodes) for (let e of V(n)) t.add(e);
288
288
  return t;
289
289
  }), i = (e) => r(e, !0), a = (e) => r(e, !1), o = (e) => {
290
- let n = B(e);
290
+ let n = V(e);
291
291
  return be(n.map((e, t) => (t < n.length - 1 ? i : a)(e)), (e) => e.name).sort(t);
292
292
  }, s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
293
293
  for (let t of e) {
@@ -302,7 +302,7 @@ function Fe(e) {
302
302
  };
303
303
  }
304
304
  var Ie = typeof wrappedJSObject < "u";
305
- function G(e) {
305
+ function K(e) {
306
306
  if (!e) return e;
307
307
  if (Ie && (e = structuredClone(e)), delete e.tokens, e.skinTones) {
308
308
  let t = e.skinTones.length;
@@ -378,11 +378,11 @@ async function Je(e, t) {
378
378
  }
379
379
  }
380
380
  var Ye = class {
381
- constructor({ dataSource: e = re, locale: t = ie, customEmoji: n = [] } = {}) {
381
+ constructor({ dataSource: e = ie, locale: t = ae, customEmoji: n = [] } = {}) {
382
382
  this.dataSource = e, this.locale = t, this._dbName = `emoji-picker-element-${this.locale}`, this._db = void 0, this._lazyUpdate = void 0, this._custom = Fe(n), this._clear = this._clear.bind(this), this._ready = this._init();
383
383
  }
384
384
  async _init() {
385
- let e = this._db = await le(this._dbName);
385
+ let e = this._db = await ue(this._dbName);
386
386
  fe(this._dbName, this._clear);
387
387
  let t = this.dataSource;
388
388
  await xe(e) ? await qe(e, t) : this._lazyUpdate = Je(e, t);
@@ -392,30 +392,30 @@ var Ye = class {
392
392
  await e(), this._db || await e();
393
393
  }
394
394
  async getEmojiByGroup(e) {
395
- return v(e), await this.ready(), F(await Te(this._db, e)).map(G);
395
+ return v(e), await this.ready(), F(await Te(this._db, e)).map(K);
396
396
  }
397
397
  async getEmojiBySearchQuery(e) {
398
398
  _(e), await this.ready();
399
- let t = this._custom.search(e), n = F(await Ee(this._db, e)).map(G);
399
+ let t = this._custom.search(e), n = F(await Ee(this._db, e)).map(K);
400
400
  return [...t, ...n];
401
401
  }
402
402
  async getEmojiByShortcode(e) {
403
- return _(e), await this.ready(), this._custom.byShortcode(e) || G(await De(this._db, e));
403
+ return _(e), await this.ready(), this._custom.byShortcode(e) || K(await De(this._db, e));
404
404
  }
405
405
  async getEmojiByUnicodeOrName(e) {
406
- return _(e), await this.ready(), this._custom.byName(e) || G(await Oe(this._db, e));
406
+ return _(e), await this.ready(), this._custom.byName(e) || K(await Oe(this._db, e));
407
407
  }
408
408
  async getPreferredSkinTone() {
409
- return await this.ready(), await U(this._db, S, te) || 0;
409
+ return await this.ready(), await W(this._db, S, ne) || 0;
410
410
  }
411
411
  async setPreferredSkinTone(e) {
412
- return v(e), await this.ready(), ke(this._db, S, te, e);
412
+ return v(e), await this.ready(), ke(this._db, S, ne, e);
413
413
  }
414
414
  async incrementFavoriteEmojiCount(e) {
415
415
  return _(e), await this.ready(), Ae(this._db, e);
416
416
  }
417
417
  async getTopFavoriteEmoji(e) {
418
- return v(e), await this.ready(), (await je(this._db, this._custom, e)).map(G);
418
+ return v(e), await this.ready(), (await je(this._db, this._custom, e)).map(K);
419
419
  }
420
420
  set customEmoji(e) {
421
421
  this._custom = Fe(e);
@@ -433,7 +433,7 @@ var Ye = class {
433
433
  this._db = this._ready = this._lazyUpdate = void 0;
434
434
  }
435
435
  async close() {
436
- await this._shutdown(), await ue(this._dbName);
436
+ await this._shutdown(), await B(this._dbName);
437
437
  }
438
438
  async delete() {
439
439
  await this._shutdown(), await de(this._dbName);
@@ -553,7 +553,7 @@ function xt(e, t) {
553
553
  let n = e.indexOf(vt);
554
554
  return n === -1 ? (e.endsWith(gt) && (e = e.substring(0, e.length - 1)), e + _t + String.fromCodePoint(bt + t - 1)) : e.substring(0, n) + String.fromCodePoint(yt + t - 1) + e.substring(n);
555
555
  }
556
- function K(e) {
556
+ function q(e) {
557
557
  e.preventDefault(), e.stopPropagation();
558
558
  }
559
559
  function St(e, t, n) {
@@ -584,10 +584,10 @@ function wt(e, t) {
584
584
  skins: t && n(t)
585
585
  }));
586
586
  }
587
- var q = requestAnimationFrame, Tt = typeof ResizeObserver == "function";
587
+ var J = requestAnimationFrame, Tt = typeof ResizeObserver == "function";
588
588
  function Et(e, t, n) {
589
589
  let r;
590
- Tt ? (r = new ResizeObserver(n), r.observe(e)) : q(n), t.addEventListener("abort", () => {
590
+ Tt ? (r = new ResizeObserver(n), r.observe(e)) : J(n), t.addEventListener("abort", () => {
591
591
  r && r.disconnect();
592
592
  });
593
593
  }
@@ -598,13 +598,13 @@ function Dt(e) {
598
598
  return t.selectNode(e.firstChild), t.getBoundingClientRect().width;
599
599
  }
600
600
  }
601
- var Ot = "😀", kt, J;
601
+ var Ot = "😀", kt, Y;
602
602
  function At(e, t, n) {
603
603
  let r = Dt(t);
604
604
  /* istanbul ignore if */
605
605
  if (!r) {
606
- if (!J) {
607
- J = n.cloneNode(!0);
606
+ if (!Y) {
607
+ Y = n.cloneNode(!0);
608
608
  let e = getComputedStyle(n);
609
609
  for (let t of [
610
610
  "font-family",
@@ -615,12 +615,12 @@ function At(e, t, n) {
615
615
  "display",
616
616
  "align-items",
617
617
  "justify-content"
618
- ]) J.style.setProperty(t, e.getPropertyValue(t), "important");
618
+ ]) Y.style.setProperty(t, e.getPropertyValue(t), "important");
619
619
  }
620
620
  try {
621
- return document.body.appendChild(J), J.firstChild.nodeValue = e, Dt(J);
621
+ return document.body.appendChild(Y), Y.firstChild.nodeValue = e, Dt(Y);
622
622
  } finally {
623
- J.remove();
623
+ Y.remove();
624
624
  }
625
625
  }
626
626
  return r;
@@ -644,7 +644,7 @@ function Nt(e) {
644
644
  /* istanbul ignore else */
645
645
  e && (e.scrollTop = 0);
646
646
  }
647
- function Y(e, t, n) {
647
+ function X(e, t, n) {
648
648
  let r = e.get(t);
649
649
  return r || (r = n(), e.set(t, r)), r;
650
650
  }
@@ -702,7 +702,7 @@ function Wt(e) {
702
702
  r = !0;
703
703
  break;
704
704
  }
705
- let d = o[o.length - 1], f = Y(a, d, () => []), p, m, h;
705
+ let d = o[o.length - 1], f = X(a, d, () => []), p, m, h;
706
706
  if (r) {
707
707
  let n = /(\S+)="?([^"=]*)$/.exec(u);
708
708
  p = n[1], m = n[2];
@@ -746,15 +746,15 @@ function Kt(e, t) {
746
746
  return n;
747
747
  }
748
748
  function qt(e) {
749
- let { template: t, elementsToBindings: n } = Y(It, e, () => Wt(e)), r = t.cloneNode(!0).content.firstElementChild, i = Kt(r, n);
749
+ let { template: t, elementsToBindings: n } = X(It, e, () => Wt(e)), r = t.cloneNode(!0).content.firstElementChild, i = Kt(r, n);
750
750
  return function(e) {
751
751
  return Ut(e, i), r;
752
752
  };
753
753
  }
754
754
  function Jt(e) {
755
- let t = Y(Lt, e, () => /* @__PURE__ */ new Map()), n = Rt;
755
+ let t = X(Lt, e, () => /* @__PURE__ */ new Map()), n = Rt;
756
756
  function r(e, ...r) {
757
- return Y(Y(t, e, () => /* @__PURE__ */ new Map()), n, () => qt(e))(r);
757
+ return X(X(t, e, () => /* @__PURE__ */ new Map()), n, () => qt(e))(r);
758
758
  }
759
759
  function i(e, t, r) {
760
760
  return e.map((e, i) => {
@@ -803,7 +803,7 @@ function Yt(e, t, n, r, i, a, o, s, c) {
803
803
  });
804
804
  }
805
805
  /* istanbul ignore next */
806
- var X = typeof queueMicrotask == "function" ? queueMicrotask : (e) => Promise.resolve().then(e);
806
+ var Z = typeof queueMicrotask == "function" ? queueMicrotask : (e) => Promise.resolve().then(e);
807
807
  function Xt(e) {
808
808
  let t = !1, n, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), a, o = () => {
809
809
  if (t) return;
@@ -812,7 +812,7 @@ function Xt(e) {
812
812
  try {
813
813
  for (let t of e) t();
814
814
  } finally {
815
- a = !1, i.size && (a = !0, X(o));
815
+ a = !1, i.size && (a = !0, Z(o));
816
816
  }
817
817
  }, s = new Proxy({}, {
818
818
  get(e, t) {
@@ -828,7 +828,7 @@ function Xt(e) {
828
828
  let s = r.get(t);
829
829
  if (s) {
830
830
  for (let e of s) i.add(e);
831
- a || (a = !0, X(o));
831
+ a || (a = !0, Z(o));
832
832
  }
833
833
  }
834
834
  return !0;
@@ -852,27 +852,27 @@ function Xt(e) {
852
852
  }
853
853
  };
854
854
  }
855
- function Z(e, t, n) {
855
+ function Zt(e, t, n) {
856
856
  if (e.length !== t.length) return !1;
857
857
  for (let r = 0; r < e.length; r++) if (!n(e[r], t[r])) return !1;
858
858
  return !0;
859
859
  }
860
- var Zt = /* @__PURE__ */ new WeakMap();
861
- function Qt(e, t, n) {
860
+ var Qt = /* @__PURE__ */ new WeakMap();
861
+ function $t(e, t, n) {
862
862
  /* istanbul ignore else */
863
863
  {
864
- let r = e.closest(".tabpanel"), i = Zt.get(r);
864
+ let r = e.closest(".tabpanel"), i = Qt.get(r);
865
865
  i || (i = new IntersectionObserver(n, {
866
866
  root: r,
867
867
  rootMargin: "50% 0px 50% 0px",
868
868
  threshold: 0
869
- }), Zt.set(r, i), t.addEventListener("abort", () => {
869
+ }), Qt.set(r, i), t.addEventListener("abort", () => {
870
870
  i.disconnect();
871
871
  })), i.observe(e);
872
872
  }
873
873
  }
874
- var $t = [], { assign: Q } = Object;
875
- function en(e, t) {
874
+ var en = [], { assign: Q } = Object;
875
+ function tn(e, t) {
876
876
  let n = {}, r = new AbortController(), i = r.signal, { state: a, createEffect: o } = Xt(i), s = /* @__PURE__ */ new Map();
877
877
  Q(a, {
878
878
  skinToneEmoji: void 0,
@@ -919,38 +919,38 @@ function en(e, t) {
919
919
  }));
920
920
  }, d = (e, t) => e.id === t.id, f = (e, t) => {
921
921
  let { category: n, emojis: r } = e, { category: i, emojis: a } = t;
922
- return n === i ? Z(r, a, d) : !1;
922
+ return n === i ? Zt(r, a, d) : !1;
923
923
  }, p = (e) => {
924
- Z(a.currentEmojis, e, d) || (a.currentEmojis = e);
924
+ Zt(a.currentEmojis, e, d) || (a.currentEmojis = e);
925
925
  }, m = (e) => {
926
926
  a.searchMode !== e && (a.searchMode = e);
927
927
  }, h = (e) => {
928
- Z(a.currentEmojisWithCategories, e, f) || (a.currentEmojisWithCategories = e);
929
- }, g = (e, t) => t && e.skins && e.skins[t] || e.unicode, _ = {
928
+ Zt(a.currentEmojisWithCategories, e, f) || (a.currentEmojisWithCategories = e);
929
+ }, g = (e, t) => t && e.skins && e.skins[t] || e.unicode, ee = {
930
930
  labelWithSkin: (e, t) => Mt([
931
931
  e.name || g(e, t),
932
932
  e.annotation,
933
- ...e.shortcodes || $t
933
+ ...e.shortcodes || en
934
934
  ].filter(Boolean)).join(", "),
935
- titleForEmoji: (e) => e.annotation || (e.shortcodes || $t).join(", "),
935
+ titleForEmoji: (e) => e.annotation || (e.shortcodes || en).join(", "),
936
936
  unicodeWithSkin: g
937
- }, v = {
937
+ }, _ = {
938
938
  onClickSkinToneButton: ie,
939
- onEmojiClick: ne,
940
- onNavClick: j,
941
- onNavKeydown: te,
942
- onSearchKeydown: A,
939
+ onEmojiClick: N,
940
+ onNavClick: A,
941
+ onNavKeydown: j,
942
+ onSearchKeydown: k,
943
943
  onSkinToneOptionsClick: re,
944
- onSkinToneOptionsFocusOut: oe,
944
+ onSkinToneOptionsFocusOut: F,
945
945
  onSkinToneOptionsKeydown: ae,
946
- onSkinToneOptionsKeyup: F,
947
- onSearchInput: I
948
- }, y = {
949
- calculateEmojiGridStyle: S,
950
- updateOnIntersection: C
951
- }, b = !0;
946
+ onSkinToneOptionsKeyup: oe,
947
+ onSearchInput: se
948
+ }, v = {
949
+ calculateEmojiGridStyle: x,
950
+ updateOnIntersection: S
951
+ }, y = !0;
952
952
  o(() => {
953
- Yt(e, a, _, v, y, n, i, s, b), b = !1;
953
+ Yt(e, a, ee, _, v, n, i, s, y), y = !1;
954
954
  }), a.emojiVersion || mt().then((e) => {
955
955
  /* istanbul ignore next */
956
956
  e || (a.message = a.i18n.emojiUnsupportedMessage);
@@ -974,7 +974,7 @@ function en(e, t) {
974
974
  --indicator-opacity: ${+!a.searchMode};
975
975
  --num-skintones: ${$e};`;
976
976
  }), o(() => {
977
- a.customEmoji && a.database && x();
977
+ a.customEmoji && a.database && b();
978
978
  }), o(() => {
979
979
  a.customEmoji && a.customEmoji.length ? a.groups !== Xe && (a.groups = Xe) : a.groups !== Ze && (a.currentGroupIndex && a.currentGroupIndex--, a.groups = Ze);
980
980
  }), o(() => {
@@ -995,19 +995,19 @@ function en(e, t) {
995
995
  }
996
996
  a.databaseLoaded && e();
997
997
  });
998
- function x() {
999
- let { customEmoji: e, database: t } = a, n = e || $t;
998
+ function b() {
999
+ let { customEmoji: e, database: t } = a, n = e || en;
1000
1000
  t.customEmoji !== n && (t.customEmoji = n);
1001
1001
  }
1002
1002
  o(() => {
1003
1003
  async function e() {
1004
- x();
1005
- let { database: e, defaultFavoriteEmojis: t, numColumns: n } = a, r = await O(Ct([...await e.getTopFavoriteEmoji(n), ...t], (e) => e.unicode || e.name).slice(0, n));
1004
+ b();
1005
+ let { database: e, defaultFavoriteEmojis: t, numColumns: n } = a, r = await E(Ct([...await e.getTopFavoriteEmoji(n), ...t], (e) => e.unicode || e.name).slice(0, n));
1006
1006
  a.currentFavorites = r;
1007
1007
  }
1008
1008
  a.databaseLoaded && a.defaultFavoriteEmojis && e();
1009
1009
  });
1010
- function S(e) {
1010
+ function x(e) {
1011
1011
  Et(e, i, () => {
1012
1012
  /* istanbul ignore next */
1013
1013
  {
@@ -1016,8 +1016,8 @@ function en(e, t) {
1016
1016
  }
1017
1017
  });
1018
1018
  }
1019
- function C(e) {
1020
- Qt(e, i, (e) => {
1019
+ function S(e) {
1020
+ $t(e, i, (e) => {
1021
1021
  for (let { target: t, isIntersecting: n } of e) t.classList.toggle("onscreen", n);
1022
1022
  });
1023
1023
  }
@@ -1026,47 +1026,47 @@ function en(e, t) {
1026
1026
  let { searchText: e, currentGroup: t, databaseLoaded: n, customEmoji: r } = a;
1027
1027
  if (!n) a.currentEmojis = [], a.searchMode = !1;
1028
1028
  else if (e.length >= Qe) {
1029
- let t = await k(e);
1029
+ let t = await O(e);
1030
1030
  a.searchText === e && (p(t), m(!0));
1031
1031
  } else {
1032
1032
  let { id: e } = t;
1033
1033
  if (e !== -1 || r && r.length) {
1034
- let t = await ee(e);
1034
+ let t = await D(e);
1035
1035
  a.currentGroup.id === e && (p(t), m(!1));
1036
1036
  }
1037
1037
  }
1038
1038
  }
1039
1039
  e();
1040
1040
  });
1041
- let w = () => {
1042
- q(() => Nt(n.tabpanelElement));
1041
+ let C = () => {
1042
+ J(() => Nt(n.tabpanelElement));
1043
1043
  };
1044
1044
  o(() => {
1045
1045
  let { currentEmojis: e, emojiVersion: t } = a, n = e.filter((e) => e.unicode).filter((e) => tt(e) && !ht.has(e.unicode));
1046
- if (!t && n.length) p(e), q(() => T(n));
1046
+ if (!t && n.length) p(e), J(() => te(n));
1047
1047
  else {
1048
- let n = t ? e : e.filter(E);
1049
- p(n), w();
1048
+ let n = t ? e : e.filter(w);
1049
+ p(n), C();
1050
1050
  }
1051
1051
  });
1052
- function T(e) {
1053
- jt(e, n.baselineEmoji, l) ? w() : a.currentEmojis = [...a.currentEmojis];
1052
+ function te(e) {
1053
+ jt(e, n.baselineEmoji, l) ? C() : a.currentEmojis = [...a.currentEmojis];
1054
1054
  }
1055
- function E(e) {
1055
+ function w(e) {
1056
1056
  return !e.unicode || !tt(e) || ht.get(e.unicode);
1057
1057
  }
1058
- async function D(e) {
1058
+ async function T(e) {
1059
1059
  let t = a.emojiVersion || await mt();
1060
1060
  return e.filter(({ version: e }) => !e || e <= t);
1061
1061
  }
1062
- async function O(e) {
1062
+ async function E(e) {
1063
1063
  return wt(e, a.emojiVersion || await mt());
1064
1064
  }
1065
- async function ee(e) {
1066
- return O(await D(e === -1 ? a.customEmoji : await a.database.getEmojiByGroup(e)));
1065
+ async function D(e) {
1066
+ return E(await T(e === -1 ? a.customEmoji : await a.database.getEmojiByGroup(e)));
1067
1067
  }
1068
- async function k(e) {
1069
- return O(await D(await a.database.getEmojiBySearchQuery(e)));
1068
+ async function O(e) {
1069
+ return E(await T(await a.database.getEmojiBySearchQuery(e)));
1070
1070
  }
1071
1071
  o(() => {}), o(() => {
1072
1072
  function e() {
@@ -1095,28 +1095,28 @@ function en(e, t) {
1095
1095
  a.searchText = (e || "").trim(), a.activeSearchItem = -1;
1096
1096
  });
1097
1097
  });
1098
- function A(e) {
1098
+ function k(e) {
1099
1099
  if (!a.searchMode || !a.currentEmojis.length) return;
1100
1100
  let t = (t) => {
1101
- K(e), a.activeSearchItem = St(t, a.activeSearchItem, a.currentEmojis);
1101
+ q(e), a.activeSearchItem = St(t, a.activeSearchItem, a.currentEmojis);
1102
1102
  };
1103
1103
  switch (e.key) {
1104
1104
  case "ArrowDown": return t(!1);
1105
1105
  case "ArrowUp": return t(!0);
1106
1106
  case "Enter": if (a.activeSearchItem === -1) a.activeSearchItem = 0;
1107
- else return K(e), N(a.currentEmojis[a.activeSearchItem].id);
1107
+ else return q(e), M(a.currentEmojis[a.activeSearchItem].id);
1108
1108
  }
1109
1109
  }
1110
- function j(e) {
1110
+ function A(e) {
1111
1111
  let { target: t } = e, r = t.closest(".nav-button");
1112
1112
  /* istanbul ignore if */
1113
1113
  if (!r) return;
1114
1114
  let i = parseInt(r.dataset.groupId, 10);
1115
1115
  n.searchElement.value = "", a.rawSearchText = "", a.searchText = "", a.activeSearchItem = -1, a.currentGroupIndex = a.groups.findIndex((e) => e.id === i);
1116
1116
  }
1117
- function te(e) {
1117
+ function j(e) {
1118
1118
  let { target: t, key: n } = e, r = (t) => {
1119
- t && (K(e), t.focus());
1119
+ t && (q(e), t.focus());
1120
1120
  };
1121
1121
  switch (n) {
1122
1122
  case "ArrowLeft": return r(t.previousElementSibling);
@@ -1125,7 +1125,7 @@ function en(e, t) {
1125
1125
  case "End": return r(t.parentElement.lastElementChild);
1126
1126
  }
1127
1127
  }
1128
- async function M(e) {
1128
+ async function ne(e) {
1129
1129
  let t = await a.database.getEmojiByUnicodeOrName(e), n = [...a.currentEmojis, ...a.currentFavorites].find((t) => t.id === e), r = n.unicode && g(n, a.currentSkinTone);
1130
1130
  return await a.database.incrementFavoriteEmojiCount(e), {
1131
1131
  emoji: t,
@@ -1134,23 +1134,23 @@ function en(e, t) {
1134
1134
  ...n.name && { name: n.name }
1135
1135
  };
1136
1136
  }
1137
- async function N(e) {
1138
- let t = M(e);
1137
+ async function M(e) {
1138
+ let t = ne(e);
1139
1139
  u("emoji-click-sync", t), u("emoji-click", await t);
1140
1140
  }
1141
- function ne(e) {
1141
+ function N(e) {
1142
1142
  let { target: t } = e;
1143
- t.classList.contains("emoji") && (K(e), N(t.id.substring(4)));
1143
+ t.classList.contains("emoji") && (q(e), M(t.id.substring(4)));
1144
1144
  }
1145
1145
  function P(e) {
1146
1146
  a.currentSkinTone = e, a.skinTonePickerExpanded = !1, c("skintone-button"), u("skin-tone-change", { skinTone: e }), a.database.setPreferredSkinTone(e);
1147
1147
  }
1148
1148
  function re(e) {
1149
1149
  let { target: { id: t } } = e, n = t && t.match(/^skintone-(\d)/);
1150
- n && (K(e), P(parseInt(n[1], 10)));
1150
+ n && (q(e), P(parseInt(n[1], 10)));
1151
1151
  }
1152
1152
  function ie(e) {
1153
- a.skinTonePickerExpanded = !a.skinTonePickerExpanded, a.activeSkinTone = a.currentSkinTone, a.skinTonePickerExpanded && (K(e), q(() => c("skintone-list")));
1153
+ a.skinTonePickerExpanded = !a.skinTonePickerExpanded, a.activeSkinTone = a.currentSkinTone, a.skinTonePickerExpanded && (q(e), J(() => c("skintone-list")));
1154
1154
  }
1155
1155
  o(() => {
1156
1156
  a.skinTonePickerExpanded ? n.skinToneDropdown.addEventListener("transitionend", () => {
@@ -1161,28 +1161,28 @@ function en(e, t) {
1161
1161
  /* istanbul ignore if */
1162
1162
  if (!a.skinTonePickerExpanded) return;
1163
1163
  let t = async (t) => {
1164
- K(e), a.activeSkinTone = t;
1164
+ q(e), a.activeSkinTone = t;
1165
1165
  };
1166
1166
  switch (e.key) {
1167
1167
  case "ArrowUp": return t(St(!0, a.activeSkinTone, a.skinTones));
1168
1168
  case "ArrowDown": return t(St(!1, a.activeSkinTone, a.skinTones));
1169
1169
  case "Home": return t(0);
1170
1170
  case "End": return t(a.skinTones.length - 1);
1171
- case "Enter": return K(e), P(a.activeSkinTone);
1172
- case "Escape": return K(e), a.skinTonePickerExpanded = !1, c("skintone-button");
1171
+ case "Enter": return q(e), P(a.activeSkinTone);
1172
+ case "Escape": return q(e), a.skinTonePickerExpanded = !1, c("skintone-button");
1173
1173
  }
1174
1174
  }
1175
- function F(e) {
1175
+ function oe(e) {
1176
1176
  if (a.skinTonePickerExpanded) switch (e.key) {
1177
- case " ": return K(e), P(a.activeSkinTone);
1177
+ case " ": return q(e), P(a.activeSkinTone);
1178
1178
  }
1179
1179
  }
1180
- async function oe(e) {
1180
+ async function F(e) {
1181
1181
  let { relatedTarget: t } = e;
1182
1182
  /* istanbul ignore else */
1183
1183
  (!t || t.id !== "skintone-list") && (a.skinTonePickerExpanded = !1);
1184
1184
  }
1185
- function I(e) {
1185
+ function se(e) {
1186
1186
  a.rawSearchText = e.target.value;
1187
1187
  }
1188
1188
  return {
@@ -1194,7 +1194,7 @@ function en(e, t) {
1194
1194
  }
1195
1195
  };
1196
1196
  }
1197
- var tn = "https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json", nn = "en", rn = {
1197
+ var nn = "https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase/data.json", rn = "en", an = {
1198
1198
  categoriesLabel: "Categories",
1199
1199
  emojiUnsupportedMessage: "Your browser does not support color emoji.",
1200
1200
  favoritesLabel: "Favorites",
@@ -1227,7 +1227,7 @@ var tn = "https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase
1227
1227
  symbols: "Symbols",
1228
1228
  flags: "Flags"
1229
1229
  }
1230
- }, an = ":host{--emoji-size:1.375rem;--emoji-padding:0.5rem;--category-emoji-size:var(--emoji-size);--category-emoji-padding:var(--emoji-padding);--indicator-height:3px;--input-border-radius:0.5rem;--input-border-size:1px;--input-font-size:1rem;--input-line-height:1.5;--input-padding:0.25rem;--num-columns:8;--outline-size:2px;--border-size:1px;--border-radius:0;--skintone-border-radius:1rem;--category-font-size:1rem;display:flex;width:min-content;height:400px}:host,:host(.light){color-scheme:light;--background:#fff;--border-color:#e0e0e0;--indicator-color:#385ac1;--input-border-color:#999;--input-font-color:#111;--input-placeholder-color:#999;--outline-color:#999;--category-font-color:#111;--button-active-background:#e6e6e6;--button-hover-background:#d9d9d9}:host(.dark){color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}@media (prefers-color-scheme:dark){:host{color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}}:host([hidden]){display:none}button{margin:0;padding:0;border:0;background:0 0;box-shadow:none;-webkit-tap-highlight-color:transparent}button::-moz-focus-inner{border:0}input{padding:0;margin:0;line-height:1.15;font-family:inherit}input[type=search]{-webkit-appearance:none}:focus{outline:var(--outline-color) solid var(--outline-size);outline-offset:calc(-1*var(--outline-size))}:host([data-js-focus-visible]) :focus:not([data-focus-visible-added]){outline:0}:focus:not(:focus-visible){outline:0}.hide-focus{outline:0}*{box-sizing:border-box}.picker{contain:content;display:flex;flex-direction:column;background:var(--background);border:var(--border-size) solid var(--border-color);border-radius:var(--border-radius);width:100%;height:100%;overflow:hidden;--total-emoji-size:calc(var(--emoji-size) + (2 * var(--emoji-padding)));--total-category-emoji-size:calc(var(--category-emoji-size) + (2 * var(--category-emoji-padding)))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.hidden{opacity:0;pointer-events:none}.abs-pos{position:absolute;left:0;top:0}.gone{display:none!important}.skintone-button-wrapper,.skintone-list{background:var(--background);z-index:3}.skintone-button-wrapper.expanded{z-index:1}.skintone-list{position:absolute;inset-inline-end:0;top:0;z-index:2;overflow:visible;border-bottom:var(--border-size) solid var(--border-color);border-radius:0 0 var(--skintone-border-radius) var(--skintone-border-radius);will-change:transform;transition:transform .2s ease-in-out;transform-origin:center 0}@media (prefers-reduced-motion:reduce){.skintone-list{transition-duration:.001s}}@supports not (inset-inline-end:0){.skintone-list{right:0}}.skintone-list.no-animate{transition:none}.tabpanel{overflow-y:auto;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;will-change:transform;min-height:0;flex:1;contain:content}.emoji-menu{display:grid;grid-template-columns:repeat(var(--num-columns),var(--total-emoji-size));justify-content:space-around;align-items:flex-start;width:100%}.emoji-menu.visibility-auto{content-visibility:auto;contain-intrinsic-size:calc(var(--num-columns)*var(--total-emoji-size)) calc(var(--num-rows)*var(--total-emoji-size))}.category{padding:var(--emoji-padding);font-size:var(--category-font-size);color:var(--category-font-color)}.emoji,button.emoji{font-size:var(--emoji-size);display:flex;align-items:center;justify-content:center;border-radius:100%;height:var(--total-emoji-size);width:var(--total-emoji-size);line-height:1;overflow:hidden;font-family:var(--emoji-font-family);cursor:pointer}@media (hover:hover) and (pointer:fine){.emoji:hover,button.emoji:hover{background:var(--button-hover-background)}}.emoji.active,.emoji:active,button.emoji.active,button.emoji:active{background:var(--button-active-background)}.onscreen .custom-emoji::after{content:\"\";width:var(--emoji-size);height:var(--emoji-size);background-repeat:no-repeat;background-position:center center;background-size:contain;background-image:var(--custom-emoji-background)}.nav,.nav-button{align-items:center}.nav{display:grid;justify-content:space-between;contain:content}.nav-button{display:flex;justify-content:center}.nav-emoji{font-size:var(--category-emoji-size);width:var(--total-category-emoji-size);height:var(--total-category-emoji-size)}.indicator-wrapper{display:flex;border-bottom:1px solid var(--border-color)}.indicator{width:calc(100%/var(--num-groups));height:var(--indicator-height);opacity:var(--indicator-opacity);background-color:var(--indicator-color);will-change:transform,opacity;transition:opacity .1s linear,transform .25s ease-in-out}@media (prefers-reduced-motion:reduce){.indicator{will-change:opacity;transition:opacity .1s linear}}.pad-top,input.search{background:var(--background);width:100%}.pad-top{height:var(--emoji-padding);z-index:3}.search-row{display:flex;align-items:center;position:relative;padding-inline-start:var(--emoji-padding);padding-bottom:var(--emoji-padding)}.search-wrapper{flex:1;min-width:0}input.search{padding:var(--input-padding);border-radius:var(--input-border-radius);border:var(--input-border-size) solid var(--input-border-color);color:var(--input-font-color);font-size:var(--input-font-size);line-height:var(--input-line-height)}input.search::placeholder{color:var(--input-placeholder-color)}.favorites{overflow-y:auto;scrollbar-gutter:stable;display:flex;flex-direction:row;border-top:var(--border-size) solid var(--border-color);contain:content}.message{padding:var(--emoji-padding)}", on = [
1230
+ }, on = ":host{--emoji-size:1.375rem;--emoji-padding:0.5rem;--category-emoji-size:var(--emoji-size);--category-emoji-padding:var(--emoji-padding);--indicator-height:3px;--input-border-radius:0.5rem;--input-border-size:1px;--input-font-size:1rem;--input-line-height:1.5;--input-padding:0.25rem;--num-columns:8;--outline-size:2px;--border-size:1px;--border-radius:0;--skintone-border-radius:1rem;--category-font-size:1rem;display:flex;width:min-content;height:400px}:host,:host(.light){color-scheme:light;--background:#fff;--border-color:#e0e0e0;--indicator-color:#385ac1;--input-border-color:#999;--input-font-color:#111;--input-placeholder-color:#999;--outline-color:#999;--category-font-color:#111;--button-active-background:#e6e6e6;--button-hover-background:#d9d9d9}:host(.dark){color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}@media (prefers-color-scheme:dark){:host{color-scheme:dark;--background:#222;--border-color:#444;--indicator-color:#5373ec;--input-border-color:#ccc;--input-font-color:#efefef;--input-placeholder-color:#ccc;--outline-color:#fff;--category-font-color:#efefef;--button-active-background:#555555;--button-hover-background:#484848}}:host([hidden]){display:none}button{margin:0;padding:0;border:0;background:0 0;box-shadow:none;-webkit-tap-highlight-color:transparent}button::-moz-focus-inner{border:0}input{padding:0;margin:0;line-height:1.15;font-family:inherit}input[type=search]{-webkit-appearance:none}:focus{outline:var(--outline-color) solid var(--outline-size);outline-offset:calc(-1*var(--outline-size))}:host([data-js-focus-visible]) :focus:not([data-focus-visible-added]){outline:0}:focus:not(:focus-visible){outline:0}.hide-focus{outline:0}*{box-sizing:border-box}.picker{contain:content;display:flex;flex-direction:column;background:var(--background);border:var(--border-size) solid var(--border-color);border-radius:var(--border-radius);width:100%;height:100%;overflow:hidden;--total-emoji-size:calc(var(--emoji-size) + (2 * var(--emoji-padding)));--total-category-emoji-size:calc(var(--category-emoji-size) + (2 * var(--category-emoji-padding)))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.hidden{opacity:0;pointer-events:none}.abs-pos{position:absolute;left:0;top:0}.gone{display:none!important}.skintone-button-wrapper,.skintone-list{background:var(--background);z-index:3}.skintone-button-wrapper.expanded{z-index:1}.skintone-list{position:absolute;inset-inline-end:0;top:0;z-index:2;overflow:visible;border-bottom:var(--border-size) solid var(--border-color);border-radius:0 0 var(--skintone-border-radius) var(--skintone-border-radius);will-change:transform;transition:transform .2s ease-in-out;transform-origin:center 0}@media (prefers-reduced-motion:reduce){.skintone-list{transition-duration:.001s}}@supports not (inset-inline-end:0){.skintone-list{right:0}}.skintone-list.no-animate{transition:none}.tabpanel{overflow-y:auto;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;will-change:transform;min-height:0;flex:1;contain:content}.emoji-menu{display:grid;grid-template-columns:repeat(var(--num-columns),var(--total-emoji-size));justify-content:space-around;align-items:flex-start;width:100%}.emoji-menu.visibility-auto{content-visibility:auto;contain-intrinsic-size:calc(var(--num-columns)*var(--total-emoji-size)) calc(var(--num-rows)*var(--total-emoji-size))}.category{padding:var(--emoji-padding);font-size:var(--category-font-size);color:var(--category-font-color)}.emoji,button.emoji{font-size:var(--emoji-size);display:flex;align-items:center;justify-content:center;border-radius:100%;height:var(--total-emoji-size);width:var(--total-emoji-size);line-height:1;overflow:hidden;font-family:var(--emoji-font-family);cursor:pointer}@media (hover:hover) and (pointer:fine){.emoji:hover,button.emoji:hover{background:var(--button-hover-background)}}.emoji.active,.emoji:active,button.emoji.active,button.emoji:active{background:var(--button-active-background)}.onscreen .custom-emoji::after{content:\"\";width:var(--emoji-size);height:var(--emoji-size);background-repeat:no-repeat;background-position:center center;background-size:contain;background-image:var(--custom-emoji-background)}.nav,.nav-button{align-items:center}.nav{display:grid;justify-content:space-between;contain:content}.nav-button{display:flex;justify-content:center}.nav-emoji{font-size:var(--category-emoji-size);width:var(--total-category-emoji-size);height:var(--total-category-emoji-size)}.indicator-wrapper{display:flex;border-bottom:1px solid var(--border-color)}.indicator{width:calc(100%/var(--num-groups));height:var(--indicator-height);opacity:var(--indicator-opacity);background-color:var(--indicator-color);will-change:transform,opacity;transition:opacity .1s linear,transform .25s ease-in-out}@media (prefers-reduced-motion:reduce){.indicator{will-change:opacity;transition:opacity .1s linear}}.pad-top,input.search{background:var(--background);width:100%}.pad-top{height:var(--emoji-padding);z-index:3}.search-row{display:flex;align-items:center;position:relative;padding-inline-start:var(--emoji-padding);padding-bottom:var(--emoji-padding)}.search-wrapper{flex:1;min-width:0}input.search{padding:var(--input-padding);border-radius:var(--input-border-radius);border:var(--input-border-size) solid var(--input-border-color);color:var(--input-font-color);font-size:var(--input-font-size);line-height:var(--input-line-height)}input.search::placeholder{color:var(--input-placeholder-color)}.favorites{overflow-y:auto;scrollbar-gutter:stable;display:flex;flex-direction:row;border-top:var(--border-size) solid var(--border-color);contain:content}.message{padding:var(--emoji-padding)}", sn = [
1231
1231
  "customEmoji",
1232
1232
  "customCategorySorting",
1233
1233
  "database",
@@ -1236,28 +1236,28 @@ var tn = "https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase
1236
1236
  "locale",
1237
1237
  "skinToneEmoji",
1238
1238
  "emojiVersion"
1239
- ], sn = `:host{--emoji-font-family:${st}}`, $ = class extends HTMLElement {
1239
+ ], cn = `:host{--emoji-font-family:${st}}`, $ = class extends HTMLElement {
1240
1240
  constructor(e) {
1241
1241
  super(), this.attachShadow({ mode: "open" });
1242
1242
  let t = document.createElement("style");
1243
- t.textContent = an + sn, this.shadowRoot.appendChild(t), this._ctx = {
1244
- locale: nn,
1245
- dataSource: tn,
1243
+ t.textContent = on + cn, this.shadowRoot.appendChild(t), this._ctx = {
1244
+ locale: rn,
1245
+ dataSource: nn,
1246
1246
  skinToneEmoji: it,
1247
1247
  customCategorySorting: ct,
1248
1248
  customEmoji: null,
1249
- i18n: rn,
1249
+ i18n: an,
1250
1250
  emojiVersion: null,
1251
1251
  ...e
1252
1252
  };
1253
- for (let e of on) e !== "database" && Object.prototype.hasOwnProperty.call(this, e) && (this._ctx[e] = this[e], delete this[e]);
1253
+ for (let e of sn) e !== "database" && Object.prototype.hasOwnProperty.call(this, e) && (this._ctx[e] = this[e], delete this[e]);
1254
1254
  this._dbFlush();
1255
1255
  }
1256
1256
  connectedCallback() {
1257
- ln(this), this._cmp ||= en(this.shadowRoot, this._ctx);
1257
+ un(this), this._cmp ||= tn(this.shadowRoot, this._ctx);
1258
1258
  }
1259
1259
  disconnectedCallback() {
1260
- ln(this), X(() => {
1260
+ un(this), Z(() => {
1261
1261
  if (!this.isConnected && this._cmp) {
1262
1262
  this._cmp.$destroy(), this._cmp = void 0;
1263
1263
  let { database: e } = this._ctx;
@@ -1287,10 +1287,10 @@ var tn = "https://cdn.jsdelivr.net/npm/emoji-picker-element-data@^1/en/emojibase
1287
1287
  }));
1288
1288
  }
1289
1289
  _dbFlush() {
1290
- X(() => this._dbCreate());
1290
+ Z(() => this._dbCreate());
1291
1291
  }
1292
- }, cn = {};
1293
- for (let e of on) cn[e] = {
1292
+ }, ln = {};
1293
+ for (let e of sn) ln[e] = {
1294
1294
  get() {
1295
1295
  return e === "database" && this._dbCreate(), this._ctx[e];
1296
1296
  },
@@ -1299,8 +1299,8 @@ for (let e of on) cn[e] = {
1299
1299
  this._set(e, t);
1300
1300
  }
1301
1301
  };
1302
- Object.defineProperties($.prototype, cn);
1303
- function ln(e) {
1302
+ Object.defineProperties($.prototype, ln);
1303
+ function un(e) {
1304
1304
  /* istanbul ignore if */
1305
1305
  e instanceof $ || Object.setPrototypeOf(e, customElements.get(e.tagName.toLowerCase()).prototype);
1306
1306
  }
@@ -1308,12 +1308,12 @@ function ln(e) {
1308
1308
  customElements.get("emoji-picker") || customElements.define("emoji-picker", $);
1309
1309
  //#endregion
1310
1310
  //#region src/components/on-demand/wt-chat-emoji/wt-chat-emoji.vue
1311
- var un = { class: "wt-chat-emoji" }, dn = /*#__PURE__*/ e({
1311
+ var dn = { class: "wt-chat-emoji" }, fn = /*#__PURE__*/ e({
1312
1312
  __name: "wt-chat-emoji",
1313
1313
  props: {
1314
1314
  size: {
1315
1315
  type: String,
1316
- default: t.MD
1316
+ default: n.MD
1317
1317
  },
1318
1318
  popupTeleportTo: {
1319
1319
  type: String,
@@ -1323,55 +1323,59 @@ var un = { class: "wt-chat-emoji" }, dn = /*#__PURE__*/ e({
1323
1323
  type: Boolean,
1324
1324
  default: !1
1325
1325
  },
1326
+ variant: {
1327
+ type: String,
1328
+ default: t.OUTLINED
1329
+ },
1326
1330
  rounded: {
1327
1331
  type: Boolean,
1328
1332
  default: !0
1329
1333
  }
1330
1334
  },
1331
1335
  emits: ["insert-emoji"],
1332
- setup(e, { emit: t }) {
1333
- let _ = e, v = t, y = p(null), b = p(!1), x = p(null), S = a(() => _.popupTeleportTo || "body"), C = a(() => _.filled || b.value ? "active" : "outlined"), w = async () => {
1334
- x.value || (x.value = document.createElement("emoji-picker"), T(), x.value.addEventListener("emoji-click", E));
1335
- }, T = () => {
1336
+ setup(e, { emit: n }) {
1337
+ let _ = e, v = n, y = m(null), b = m(!1), x = m(null), S = o(() => _.popupTeleportTo || "body"), C = o(() => _.filled || b.value ? t.ACTIVE : _.variant), te = async () => {
1338
+ x.value || (x.value = document.createElement("emoji-picker"), w(), x.value.addEventListener("emoji-click", T));
1339
+ }, w = () => {
1336
1340
  y.value && x.value && y.value.appendChild(x.value);
1337
- }, E = (e) => {
1341
+ }, T = (e) => {
1338
1342
  let { unicode: t } = e.detail;
1339
- v("insert-emoji", t), D();
1340
- }, D = () => {
1341
- b.value = !1, x.value && y.value && (x.value.removeEventListener("emoji-click", E), y.value.removeChild(x.value), x.value = null);
1342
- }, O = (e) => {
1343
- y.value?.contains(e.target) || D();
1344
- }, ee = async () => {
1345
- k(), b.value = !b.value, b.value ? (await u(), await w()) : D();
1346
- }, k = () => r.$emit("chat-input-focus");
1347
- return d(() => {
1348
- D();
1349
- }), (t, r) => {
1350
- let a = m("clickaway");
1351
- return g((f(), c("div", un, [l(h(n), {
1343
+ v("insert-emoji", t), E();
1344
+ }, E = () => {
1345
+ b.value = !1, x.value && y.value && (x.value.removeEventListener("emoji-click", T), y.value.removeChild(x.value), x.value = null);
1346
+ }, D = (e) => {
1347
+ y.value?.contains(e.target) || E();
1348
+ }, O = async () => {
1349
+ k(), b.value = !b.value, b.value ? (await d(), await te()) : E();
1350
+ }, k = () => i.$emit("chat-input-focus");
1351
+ return f(() => {
1352
+ E();
1353
+ }), (t, n) => {
1354
+ let i = h("clickaway");
1355
+ return ee((p(), l("div", dn, [u(g(r), {
1352
1356
  size: e.size,
1353
1357
  variant: C.value,
1354
1358
  color: "secondary",
1355
1359
  icon: "chat-emoji",
1356
1360
  rounded: e.rounded,
1357
1361
  wide: "",
1358
- onClick: ee
1362
+ onClick: O
1359
1363
  }, null, 8, [
1360
1364
  "size",
1361
1365
  "variant",
1362
1366
  "rounded"
1363
- ]), (f(), o(i, {
1367
+ ]), (p(), s(a, {
1364
1368
  defer: "",
1365
1369
  disabled: !e.popupTeleportTo,
1366
1370
  to: S.value
1367
- }, [b.value ? (f(), c("div", {
1371
+ }, [b.value ? (p(), l("div", {
1368
1372
  key: 0,
1369
1373
  ref_key: "emojiPickerWrapper",
1370
1374
  ref: y,
1371
1375
  class: "wt-chat-emoji__wrapper"
1372
- }, null, 512)) : s("", !0)], 8, ["disabled", "to"]))])), [[a, O]]);
1376
+ }, null, 512)) : c("", !0)], 8, ["disabled", "to"]))])), [[i, D]]);
1373
1377
  };
1374
1378
  }
1375
- }, [["__scopeId", "data-v-d6ce560a"]]);
1379
+ }, [["__scopeId", "data-v-1d5eaef1"]]);
1376
1380
  //#endregion
1377
- export { dn as default };
1381
+ export { fn as default };