@fluid-app/fluid-cli-theme-dev 0.1.172 → 0.1.173

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 (92) hide show
  1. package/dist/dist-cli-preview/.vite/manifest.json +583 -181
  2. package/dist/dist-cli-preview/account-screens.css +1 -0
  3. package/dist/dist-cli-preview/account-screens.js +1 -1
  4. package/dist/dist-cli-preview/chunks/{Breadcrumb-BQKo8hPc.js → Breadcrumb-8-7shsB6.js} +1 -1
  5. package/dist/dist-cli-preview/chunks/Combobox-m3vSk0_A.js +521 -0
  6. package/dist/dist-cli-preview/chunks/{ContactsScreen-IsIZ_lQ0.js → ContactsScreen-CBjQOWmH.js} +1523 -1854
  7. package/dist/dist-cli-preview/chunks/MediaScreen-1akMnH12.js +17379 -0
  8. package/dist/dist-cli-preview/chunks/{MemberManagementProviders-DiQkiWzc.js → MemberManagementProviders-WSjb3a8B.js} +189 -199
  9. package/dist/dist-cli-preview/chunks/{MessagingScreen-B8ZxAE0L.js → MessagingScreen-By-jZq6v.js} +27645 -30195
  10. package/dist/dist-cli-preview/chunks/{MobileActionSheet-DMeTsLlK.js → MobileActionSheet-ERpw3qUF.js} +644 -589
  11. package/dist/dist-cli-preview/chunks/MySiteScreen-JAGvVMx-.js +1706 -0
  12. package/dist/dist-cli-preview/chunks/OrdersScreen-B1HQVMZC.js +9 -0
  13. package/dist/dist-cli-preview/chunks/{OrdersScreen-DrZ3SwEu.js → OrdersScreen-Cb32bBjd.js} +35 -35
  14. package/dist/dist-cli-preview/chunks/PortalTenantClientProvider-CguU_uRG.js +15 -0
  15. package/dist/dist-cli-preview/chunks/{ProfileScreen-Dxspc-6p.js → ProfileScreen-CCWM6TBs.js} +454 -463
  16. package/dist/dist-cli-preview/chunks/Select-5fzq5MB-.js +940 -0
  17. package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-Be0C29uw.js → SubscriptionsScreen-DLdsaVJK.js} +3 -3
  18. package/dist/dist-cli-preview/chunks/Textarea-xoKqLVgY.js +330 -0
  19. package/dist/dist-cli-preview/chunks/{account-screen-runtime-DYMunv0A.js → account-screen-runtime-CCBl8DXt.js} +866 -860
  20. package/dist/dist-cli-preview/chunks/ar-D6LJV1_E.js +679 -0
  21. package/dist/dist-cli-preview/chunks/{arrow-left-Bd7dJtIV.js → arrow-left-CTYaRdTX.js} +1 -1
  22. package/dist/dist-cli-preview/chunks/bg-C5Ldmily.js +679 -0
  23. package/dist/dist-cli-preview/chunks/bn-kfMPWNR6.js +679 -0
  24. package/dist/dist-cli-preview/chunks/{cli-preview-C7Db08Ij.js → cli-preview-HAt0Lt-9.js} +20 -13
  25. package/dist/dist-cli-preview/chunks/{client.gen-Ck6Pm2jV.js → client.gen-B7RMYGYu.js} +1 -1
  26. package/dist/dist-cli-preview/chunks/copy-DHN1DxE_.js +14 -0
  27. package/dist/dist-cli-preview/chunks/{countries-api-adapter-InKUzF1q.js → countries-api-adapter-B4TefdRP.js} +2 -2
  28. package/dist/dist-cli-preview/chunks/{create-card-entry-container-C9z7JILL.js → create-card-entry-container-5NqOQ4D_.js} +3612 -3932
  29. package/dist/dist-cli-preview/chunks/cs-DqEgtV8D.js +679 -0
  30. package/dist/dist-cli-preview/chunks/da-BbuvL7Gx.js +679 -0
  31. package/dist/dist-cli-preview/chunks/de-BfJ7rQig.js +679 -0
  32. package/dist/dist-cli-preview/chunks/el-BO0rLq6D.js +679 -0
  33. package/dist/dist-cli-preview/chunks/es-BEVtEUXk.js +679 -0
  34. package/dist/dist-cli-preview/chunks/eye-qMoMW7-Z.js +20 -0
  35. package/dist/dist-cli-preview/chunks/fi-DjISV3UN.js +679 -0
  36. package/dist/dist-cli-preview/chunks/fr-1fFd-aKy.js +679 -0
  37. package/dist/dist-cli-preview/chunks/he-CaT9bwVp.js +679 -0
  38. package/dist/dist-cli-preview/chunks/{hey-api-client-DGRBsZ7Y.js → hey-api-client-JMNyZwcF.js} +79 -39
  39. package/dist/dist-cli-preview/chunks/hi-DkzEm57l.js +679 -0
  40. package/dist/dist-cli-preview/chunks/hr-DqM5N_bj.js +679 -0
  41. package/dist/dist-cli-preview/chunks/hu-DiLqjo5c.js +679 -0
  42. package/dist/dist-cli-preview/chunks/id-DA1KmwgX.js +679 -0
  43. package/dist/dist-cli-preview/chunks/index-BS4PnEcu.js +353 -0
  44. package/dist/dist-cli-preview/chunks/index-BhMjUmAr.js +2572 -0
  45. package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-BDjSpDoe.js → index-Dor8vM2o.js} +2417 -3035
  46. package/dist/dist-cli-preview/chunks/it-CTEVWCRz.js +679 -0
  47. package/dist/dist-cli-preview/chunks/ja-fxqg1hhg.js +679 -0
  48. package/dist/dist-cli-preview/chunks/ko-Btp1_5YS.js +679 -0
  49. package/dist/dist-cli-preview/chunks/lock-DQTMeEw0.js +14 -0
  50. package/dist/dist-cli-preview/chunks/{log-out-CSPZjXTK.js → log-out-DUdRJX4l.js} +1 -1
  51. package/dist/dist-cli-preview/chunks/{map-pin-B2ScoijR.js → map-pin-DyIkpqP0.js} +1 -1
  52. package/dist/dist-cli-preview/chunks/media-vkLeBb90.js +4 -0
  53. package/dist/dist-cli-preview/chunks/member-permissions-ndhNmlOk.js +19 -0
  54. package/dist/dist-cli-preview/chunks/{mount-account-screen-5thBUz3X.js → mount-account-screen--gdc5WO_.js} +1869 -1884
  55. package/dist/dist-cli-preview/chunks/ms-DqRbmHx8.js +679 -0
  56. package/dist/dist-cli-preview/chunks/navigate-account-screen-AVNopuIP.js +38 -0
  57. package/dist/dist-cli-preview/chunks/nl-CkPNddxO.js +679 -0
  58. package/dist/dist-cli-preview/chunks/no-ftcy0RcQ.js +679 -0
  59. package/dist/dist-cli-preview/chunks/pl-wyJLqfip.js +679 -0
  60. package/dist/dist-cli-preview/chunks/{plus-CocoE5gC.js → plus-DZjrp536.js} +1 -1
  61. package/dist/dist-cli-preview/chunks/pt-7uHLacuI.js +679 -0
  62. package/dist/dist-cli-preview/chunks/ro-Dh12ghww.js +679 -0
  63. package/dist/dist-cli-preview/chunks/ru-DFM7xWFz.js +679 -0
  64. package/dist/dist-cli-preview/chunks/{schemas-D94nZk5x.js → schemas-BTblatUV.js} +1107 -1062
  65. package/dist/dist-cli-preview/chunks/screen-route-slug-utils-DozJp-uc.js +620 -0
  66. package/dist/dist-cli-preview/chunks/{sheet-haptics-context-iOjKcNDj.js → sheet-haptics-context-CYrEaGtf.js} +3 -3
  67. package/dist/dist-cli-preview/chunks/sidebar-9qopXeR1.js +598 -0
  68. package/dist/dist-cli-preview/chunks/sk-CsuNYa1k.js +679 -0
  69. package/dist/dist-cli-preview/chunks/sortable.esm-Dlen88Fc.js +3283 -0
  70. package/dist/dist-cli-preview/chunks/{store-api-context-B96Ip2FB.js → store-api-context-B9pW_xao.js} +1 -1
  71. package/dist/dist-cli-preview/chunks/sv-DVrPaJbh.js +679 -0
  72. package/dist/dist-cli-preview/chunks/th-BEkMpcVW.js +679 -0
  73. package/dist/dist-cli-preview/chunks/tl-CqwwplQC.js +679 -0
  74. package/dist/dist-cli-preview/chunks/tr-XEp4ekrM.js +679 -0
  75. package/dist/dist-cli-preview/chunks/{trash-2-wVweQZMw.js → trash-2-ClRyi9iY.js} +12 -12
  76. package/dist/dist-cli-preview/chunks/uk-DWdZFWBl.js +679 -0
  77. package/dist/dist-cli-preview/chunks/use-mobile-srOt50VV.js +254 -0
  78. package/dist/dist-cli-preview/chunks/{use-optional-store-lZUz976C.js → use-optional-store-BgrOjfZJ.js} +2 -2
  79. package/dist/dist-cli-preview/chunks/{use-store-DVmgsDXy.js → use-store-CUSQx1E-.js} +25 -36
  80. package/dist/dist-cli-preview/chunks/{useInfiniteQuery-Dtzov9uh.js → useInfiniteQuery-DGc8fotv.js} +1 -1
  81. package/dist/dist-cli-preview/chunks/user-Ca2sKJ-h.js +14 -0
  82. package/dist/dist-cli-preview/chunks/users-Dh7zTrKY.js +16 -0
  83. package/dist/dist-cli-preview/chunks/vi-H__PaPsC.js +679 -0
  84. package/dist/dist-cli-preview/chunks/zh_CN-B62j_w_1.js +679 -0
  85. package/dist/dist-cli-preview/chunks/zh_TW-CYUIGBvP.js +679 -0
  86. package/package.json +1 -1
  87. package/dist/dist-cli-preview/chunks/Combobox-cf11L_T-.js +0 -1455
  88. package/dist/dist-cli-preview/chunks/MySiteScreen-Dtw1rsF9.js +0 -4950
  89. package/dist/dist-cli-preview/chunks/OrdersScreen-DkltVCtr.js +0 -9
  90. package/dist/dist-cli-preview/chunks/sidebar-Ckzom4Xc.js +0 -848
  91. package/dist/dist-cli-preview/chunks/user-B81IrSgp.js +0 -31
  92. package/dist/dist-cli-preview/chunks/users-BXTjoCUz.js +0 -27
@@ -0,0 +1,620 @@
1
+ import { c as ce, j as h, K as Fe, M as Me, l } from "./account-screen-runtime-CCBl8DXt.js";
2
+ /**
3
+ * @license lucide-react v0.575.0 - ISC
4
+ *
5
+ * This source code is licensed under the ISC license.
6
+ * See the LICENSE file in the root directory of this source tree.
7
+ */
8
+ const Ve = [
9
+ [
10
+ "path",
11
+ {
12
+ d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",
13
+ key: "1i5ecw"
14
+ }
15
+ ],
16
+ ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
17
+ ], It = ce("settings", Ve);
18
+ /**
19
+ * @license lucide-react v0.575.0 - ISC
20
+ *
21
+ * This source code is licensed under the ISC license.
22
+ * See the LICENSE file in the root directory of this source tree.
23
+ */
24
+ const ze = [
25
+ [
26
+ "path",
27
+ {
28
+ d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z",
29
+ key: "1dfntj"
30
+ }
31
+ ],
32
+ ["path", { d: "M15 3v5a1 1 0 0 0 1 1h5", key: "6s6qgf" }]
33
+ ], Tt = ce("sticky-note", ze);
34
+ function At({
35
+ icon: e,
36
+ className: t,
37
+ variant: r = "ghost",
38
+ size: o = "icon",
39
+ isActive: n,
40
+ ...a
41
+ }) {
42
+ return /* @__PURE__ */ h.jsx(
43
+ Fe,
44
+ {
45
+ variant: r,
46
+ size: o,
47
+ "data-active": n,
48
+ className: Me(n && "bg-accent text-accent-foreground", t),
49
+ ...a,
50
+ children: /* @__PURE__ */ h.jsx(e, {})
51
+ }
52
+ );
53
+ }
54
+ var De = Object.defineProperty, Ne = (e, t) => {
55
+ for (var r in t) De(e, r, { get: t[r], enumerable: !0 });
56
+ }, Le = {};
57
+ Ne(Le, { ActiveEmoji: () => Pe, Empty: () => Ae, List: () => He, Loading: () => Te, Root: () => be, Search: () => xe, SkinTone: () => $e, SkinToneSelector: () => Ie, Viewport: () => ke });
58
+ var de = "'Apple Color Emoji', 'Noto Color Emoji', 'Twemoji Mozilla', 'Android Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', EmojiSymbols, sans-serif", q = ["none", "light", "medium-light", "medium", "medium-dark", "dark"];
59
+ function B(e) {
60
+ return e.charAt(0).toUpperCase() + e.slice(1);
61
+ }
62
+ var $ = 2, H = null;
63
+ function G(e) {
64
+ try {
65
+ H ?? (H = document.createElement("canvas").getContext("2d", { willReadFrequently: !0 }));
66
+ } catch {
67
+ }
68
+ if (!H || (queueMicrotask(() => {
69
+ H && (H = null);
70
+ }), H.canvas.width = $, H.canvas.height = $, H.font = `2px ${de}`, H.textBaseline = "middle", H.measureText(e).width >= $ * 2)) return !1;
71
+ H.fillStyle = "#00f", H.fillText(e, 0, 0);
72
+ let t = H.getImageData(0, 0, $, $).data;
73
+ H.clearRect(0, 0, $, $), H.fillStyle = "#f00", H.fillText(e, 0, 0);
74
+ let r = H.getImageData(0, 0, $, $).data;
75
+ for (let o = 0; o < $ * $ * 4; o += 4) if (t[o] !== r[o] || t[o + 1] !== r[o + 1] || t[o + 2] !== r[o + 2]) return !1;
76
+ return !0;
77
+ }
78
+ function Y(e, t, r) {
79
+ try {
80
+ let o = e.getItem(t);
81
+ if (!o) throw new Error(`No value found for "${t}".`);
82
+ let n = JSON.parse(o);
83
+ return r(n);
84
+ } catch {
85
+ return null;
86
+ }
87
+ }
88
+ function ge(e, t, r) {
89
+ e.setItem(t, JSON.stringify(r));
90
+ }
91
+ function Q(e) {
92
+ return (t) => t === void 0 ? void 0 : e(t);
93
+ }
94
+ function X(e) {
95
+ return (t) => t === null ? null : e(t);
96
+ }
97
+ function S(e) {
98
+ if (typeof e != "string") throw new Error();
99
+ return e;
100
+ }
101
+ function W(e) {
102
+ if (typeof e != "number") throw new Error();
103
+ return e;
104
+ }
105
+ function fe(e) {
106
+ if (typeof e != "boolean") throw new Error();
107
+ return e;
108
+ }
109
+ function z(e) {
110
+ return (t) => {
111
+ if (typeof t != "object" || t === null) throw new Error();
112
+ let r = {};
113
+ for (let o in e) {
114
+ let n = t[o];
115
+ n === void 0 && e[o](void 0), r[o] = e[o](n);
116
+ }
117
+ return r;
118
+ };
119
+ }
120
+ function O(e) {
121
+ return (t) => {
122
+ if (!Array.isArray(t)) throw new Error();
123
+ return t.length > 0 && e(t[0]), t;
124
+ };
125
+ }
126
+ var me = (e, t) => `${e}/${t}/data.json`, he = (e, t) => `${e}/${t}/messages.json`, Ue = ["bn", "da", "de", "en-gb", "en", "es-mx", "es", "et", "fi", "fr", "hi", "hu", "it", "ja", "ko", "lt", "ms", "nb", "nl", "pl", "pt", "ru", "sv", "th", "uk", "vi", "zh-hant", "zh"], Z = "en", we = (e) => `frimousse/data/${e}`, ee = "frimousse/metadata";
127
+ async function te(e, t) {
128
+ try {
129
+ return (await fetch(e, { method: "HEAD", signal: t })).headers.get("etag");
130
+ } catch {
131
+ return null;
132
+ }
133
+ }
134
+ async function We(e, t, r) {
135
+ let [{ emojis: o, emojisEtag: n }, { messages: a, messagesEtag: s }] = await Promise.all([fetch(me(e, t), { signal: r }).then(async (i) => ({ emojis: await i.json(), emojisEtag: i.headers.get("etag") })), fetch(he(e, t), { signal: r }).then(async (i) => ({ messages: await i.json(), messagesEtag: i.headers.get("etag") }))]);
136
+ return { emojis: o, messages: a, emojisEtag: n, messagesEtag: s };
137
+ }
138
+ async function Be(e, t, r) {
139
+ let [o, n] = await Promise.all([te(me(e, t), r), te(he(e, t), r)]);
140
+ return { emojisEtag: o, messagesEtag: n };
141
+ }
142
+ function Oe(e) {
143
+ return e.skins ? e.skins.filter((t) => typeof t.tone == "number").reduce((t, r) => {
144
+ let o = q[r.tone];
145
+ return t[o] = r.emoji, t;
146
+ }, {}) : void 0;
147
+ }
148
+ async function re(e, t, r) {
149
+ let { emojis: o, emojisEtag: n, messages: a, messagesEtag: s } = await We(e, t, r), i = a.subgroups.find((d) => d.key === "country-flag" || d.key === "subdivision-flag"), g = a.groups.filter((d) => d.key !== "component"), u = o.filter((d) => "group" in d), m = g.map((d) => ({ index: d.order, label: B(d.message) })), c = a.skinTones.reduce((d, j) => (d[j.key] = B(j.message), d), {}), p = u.map((d) => ({ emoji: d.emoji, category: d.group, version: d.version, label: B(d.label), tags: d.tags ?? [], countryFlag: i && d.subgroup === i.order || void 0, skins: Oe(d) })), f = { locale: t, emojis: p, categories: m, skinTones: c };
150
+ return ge(localStorage, we(t), { data: f, metadata: { emojisEtag: n, messagesEtag: s } }), f;
151
+ }
152
+ function qe(e, t) {
153
+ let r = /* @__PURE__ */ new Map();
154
+ for (let s of e) r.has(s.version) || r.set(s.version, s.emoji);
155
+ let o = [...r.keys()].sort((s, i) => i - s), n = o[0] ?? 0, a = G("🇪🇺");
156
+ if (typeof t == "number") return { emojiVersion: t, countryFlags: a };
157
+ for (let s of o) {
158
+ let i = r.get(s);
159
+ if (G(i)) return { emojiVersion: s, countryFlags: a };
160
+ }
161
+ return { emojiVersion: n, countryFlags: a };
162
+ }
163
+ var _e = z({ emojiVersion: W, countryFlags: fe }), Je = z({ data: z({ locale: S, emojis: O(z({ emoji: S, category: W, label: S, version: W, tags: O(S), countryFlag: Q(fe), skins: Q(z({ light: S, "medium-light": S, medium: S, "medium-dark": S, dark: S })) })), categories: O(z({ index: W, label: S })), skinTones: z({ light: S, "medium-light": S, medium: S, "medium-dark": S, dark: S }) }), metadata: z({ emojisEtag: X(S), messagesEtag: X(S) }) });
164
+ async function Ke({ locale: e, emojiVersion: t, emojibaseUrl: r, signal: o }) {
165
+ let n = typeof r == "string" ? r : `https://cdn.jsdelivr.net/npm/emojibase-data@${typeof t == "number" ? Math.floor(t) : "latest"}`, a = Y(sessionStorage, ee, _e), s = Y(localStorage, we(e), Je), i;
166
+ if (!s) i = await re(n, e, o);
167
+ else if (a) i = s.data;
168
+ else try {
169
+ let { emojisEtag: u, messagesEtag: m } = await Be(n, e, o);
170
+ i = !u || !m || u !== s.metadata.emojisEtag || m !== s.metadata.messagesEtag ? await re(n, e, o) : s.data;
171
+ } catch {
172
+ i = s.data;
173
+ }
174
+ a ?? (a = qe(i.emojis, t)), ge(sessionStorage, ee, a);
175
+ let g = i.emojis.filter((u) => {
176
+ let m = u.version <= a.emojiVersion;
177
+ return u.countryFlag ? m && a.countryFlags : m;
178
+ });
179
+ return { locale: e, emojis: g, categories: i.categories, skinTones: i.skinTones };
180
+ }
181
+ function oe(e) {
182
+ return Ue.includes(e) ? e : (console.warn(`Locale "${e}" is not supported, using "${Z}" instead.`), Z);
183
+ }
184
+ function ne(e) {
185
+ return q.includes(e) ? e : (console.warn(`Skin tone "${e}" is not valid, using "none" instead.`), "none");
186
+ }
187
+ function Ge(e, t) {
188
+ let r = [];
189
+ if (t <= 0) return r;
190
+ for (let o = 0, n = e.length; o < n; o += t) r.push(e.slice(o, o + t));
191
+ return r;
192
+ }
193
+ function Ye(e, t) {
194
+ if (!t) return e;
195
+ let r = t.toLowerCase().trim(), o = /* @__PURE__ */ new WeakMap();
196
+ return e.filter((n) => {
197
+ let a = 0;
198
+ n.label.toLowerCase().includes(r) && (a += 10);
199
+ for (let s of n.tags) s.toLowerCase().includes(r) && (a += 1);
200
+ return a > 0 ? (o.set(n, a), !0) : !1;
201
+ }).sort((n, a) => (o.get(a) ?? 0) - (o.get(n) ?? 0));
202
+ }
203
+ function Qe(e, t, r, o) {
204
+ let n = Ye(e.emojis, o), a = [], s = [], i = [], g = {}, u = 0, m = 0;
205
+ for (let c of n) g[c.category] || (g[c.category] = []), g[c.category].push({ emoji: r && r !== "none" && c.skins ? c.skins[r] : c.emoji, label: c.label });
206
+ for (let c of e.categories) {
207
+ let p = g[c.index];
208
+ if (!p || p.length === 0) continue;
209
+ let f = Ge(Array.from(p), t).map((d) => ({ categoryIndex: u, emojis: d }));
210
+ a.push(...f), s.push({ label: c.label, rowsCount: f.length, startRowIndex: m }), i.push(m), u++, m += f.length;
211
+ }
212
+ return { count: n.length, categories: s, categoriesStartRowIndices: i, rows: a, skinTones: e.skinTones };
213
+ }
214
+ function Xe(e) {
215
+ let t = {}, r = null, o = null, n = /* @__PURE__ */ new Set(), a = () => {
216
+ if (r) {
217
+ t = r, r = null;
218
+ for (let u of n) u(t);
219
+ }
220
+ o = null;
221
+ }, s = () => r ?? t, i = (u) => {
222
+ r ?? (r = t), Object.assign(r, typeof u == "function" ? u(s()) : u), o || (o = requestAnimationFrame(a));
223
+ }, g = (u) => (n.add(u), () => n.delete(u));
224
+ return t = e(i, s), { get: s, set: i, subscribe: g };
225
+ }
226
+ function Ze(e) {
227
+ let [t] = l.useState(e);
228
+ return t;
229
+ }
230
+ function et(e) {
231
+ let t = l.createContext(null);
232
+ return { useStore: () => {
233
+ let r = l.useContext(t);
234
+ if (!r) throw new Error(e);
235
+ return r;
236
+ }, Provider: ({ store: r, children: o }) => h.jsx(t.Provider, { value: r, children: o }) };
237
+ }
238
+ function P(e, t, r = Object.is) {
239
+ let [o, n] = l.useState(() => t(e.get()));
240
+ return l.useEffect(() => e.subscribe(() => {
241
+ let a = t(e.get());
242
+ n((s) => r(s, a) ? s : a);
243
+ }), [e, t, r]), l.useDebugValue(o), o;
244
+ }
245
+ function V(e, t, r) {
246
+ let o = l.useCallback((n) => n[t], [t]);
247
+ return P(e, o, r);
248
+ }
249
+ var ie = 2;
250
+ function tt(e, t, r, o) {
251
+ let n = 0;
252
+ return Xe((a, s) => ({ locale: t, columns: r, skinTone: o, onEmojiSelect: e, data: null, search: "", interaction: "none", activeColumnIndex: 0, activeRowIndex: 0, rowHeight: null, categoryHeaderHeight: null, viewportWidth: null, viewportHeight: null, viewportCurrentCategoryIndex: null, viewportStartCategoryIndex: 0, viewportStartRowIndex: 0, viewportEndRowIndex: 0, rootRef: null, searchRef: null, viewportRef: null, listRef: null, updateViewportState: (i) => {
253
+ let g = s(), u = i?.data ?? g.data, m = i?.categoryHeaderHeight ?? g.categoryHeaderHeight, c = i?.rowHeight ?? g.rowHeight, p = i?.viewportHeight ?? g.viewportHeight;
254
+ if (!u || u.rows.length === 0 || !m || !c || !p) return a({ ...i, viewportStartCategoryIndex: 0, viewportStartRowIndex: 0, viewportEndRowIndex: 0 });
255
+ let f = 0, d = 0;
256
+ for (let I of u.categories) if (d++ * m + I.startRowIndex * c < n) f += m;
257
+ else break;
258
+ let j = u.categories.length * m + u.rows.length * c, w = Math.floor(ie * c / 2), k = Math.ceil(ie * c / 2), E = Math.min(n - f - w, j - p), R = E + p + k, v = Math.max(0, Math.floor(E / c)), b = Math.min(u.rows.length - 1, Math.ceil(R / c)), x = u.rows[v]?.categoryIndex;
259
+ return a(x === void 0 && i ? i : { ...i, viewportStartCategoryIndex: x, viewportStartRowIndex: v, viewportEndRowIndex: b });
260
+ }, onDataChange: (i) => {
261
+ s().updateViewportState({ data: i, activeColumnIndex: 0, activeRowIndex: 0 });
262
+ }, onSearchChange: (i) => {
263
+ a({ search: i, interaction: i ? "keyboard" : "none" });
264
+ }, onActiveEmojiChange: (i, g, u) => {
265
+ if (a({ interaction: i, activeColumnIndex: g, activeRowIndex: u }), i !== "keyboard") return;
266
+ let { listRef: m, viewportRef: c, rowHeight: p, viewportHeight: f, categoryHeaderHeight: d } = s(), j = m?.current, w = c?.current;
267
+ if (!j || !w || !p || !d || !f) return;
268
+ let k = u;
269
+ k === 0 && w.scrollTo({ top: 0, behavior: "instant" });
270
+ let E = j.querySelector(`[aria-rowindex="${k}"]`);
271
+ if (!(E instanceof HTMLElement)) return;
272
+ let R = E.offsetTop, v = getComputedStyle(E), b = Number.parseFloat(v.scrollMarginTop), x = Number.parseFloat(v.scrollMarginBottom), I = n + b;
273
+ R < n + f / 2 && (I += d);
274
+ let F = I + f - x;
275
+ (R < I || R + p > F) && w.scrollTo({ top: Math.max(R < I + d ? R - Math.max(d, b) : R - f + p + x, 0), behavior: "instant" });
276
+ }, onActiveEmojiReset: () => {
277
+ a({ interaction: "none", activeColumnIndex: 0, activeRowIndex: 0 });
278
+ }, onRowHeightChange: (i) => {
279
+ s().updateViewportState({ rowHeight: i });
280
+ }, onCategoryHeaderHeightChange: (i) => {
281
+ s().updateViewportState({ categoryHeaderHeight: i });
282
+ }, onViewportSizeChange: (i, g) => {
283
+ s().updateViewportState({ viewportWidth: i, viewportHeight: g });
284
+ }, onViewportScroll: (i) => {
285
+ n = i, s().updateViewportState();
286
+ } }));
287
+ }
288
+ var { useStore: T, Provider: rt } = et("EmojiPicker.Root is missing.");
289
+ function ot(e) {
290
+ return e.search;
291
+ }
292
+ function _(e) {
293
+ return e.interaction === "none" ? void 0 : e.data?.rows[e.activeRowIndex]?.emojis[e.activeColumnIndex];
294
+ }
295
+ function nt(e) {
296
+ return e.data === void 0 || typeof e.data?.count == "number" && e.data.count === 0;
297
+ }
298
+ function it(e) {
299
+ return e.data === null || e.viewportHeight === null || e.rowHeight === null || e.categoryHeaderHeight === null;
300
+ }
301
+ function pe(e) {
302
+ return e.data?.rows.length;
303
+ }
304
+ function at(e) {
305
+ return e.data?.categories.length;
306
+ }
307
+ function st(e) {
308
+ return e.data?.categoriesStartRowIndices;
309
+ }
310
+ function lt(e) {
311
+ return e.data?.skinTones;
312
+ }
313
+ function ve(e, t) {
314
+ return e?.emoji === t?.emoji;
315
+ }
316
+ function ut(e, t) {
317
+ return e?.categoryIndex !== t?.categoryIndex || e?.emojis.length !== t?.emojis.length ? !1 : !!e?.emojis.every((r, o) => ve(r, t?.emojis[o]));
318
+ }
319
+ var D = "‍", ae = /\p{Emoji_Modifier_Base}/u, ct = /\uFE0F$/, dt = /\u{1F3FB}|\u{1F3FC}|\u{1F3FD}|\u{1F3FE}|\u{1F3FF}/gu, gt = { light: "🏻", "medium-light": "🏼", medium: "🏽", "medium-dark": "🏾", dark: "🏿" };
320
+ function ft(e, t) {
321
+ if (!e.split(D).some((o) => ae.test(o))) return e;
322
+ let r = e.split(D).map((o) => o.replace(dt, "")).join(D);
323
+ return t === "none" ? r : r.split(D).map((o, n, a) => {
324
+ let s = a.length > 1;
325
+ return !ae.test(o) || s && o === "🤝" ? o : o.replace(ct, "") + gt[t];
326
+ }).join(D);
327
+ }
328
+ function mt(e) {
329
+ return q.map((t) => ({ skinTone: t, emoji: ft(e, t) }));
330
+ }
331
+ function ye() {
332
+ let e = T(), t = P(e, _, ve);
333
+ return l.useDeferredValue(t);
334
+ }
335
+ function je(e = "✋") {
336
+ let t = T(), r = V(t, "skinTone"), o = l.useMemo(() => mt(e), [e]), n = l.useCallback((a) => {
337
+ t.set({ skinTone: a });
338
+ }, []);
339
+ return [r, n, o];
340
+ }
341
+ function J(e, t) {
342
+ if (Object.is(e, t)) return !0;
343
+ if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
344
+ let r = Object.keys(e), o = Object.keys(t);
345
+ return r.length !== o.length ? !1 : r.every((n) => n in t && e[n] === t[n]);
346
+ }
347
+ function ht(...e) {
348
+ }
349
+ function wt(e, t) {
350
+ let r = null;
351
+ if (typeof window.requestIdleCallback == "function") r = window.requestIdleCallback(e, t);
352
+ else {
353
+ let o = Date.now();
354
+ r = window.setTimeout(() => {
355
+ e({ didTimeout: !1, timeRemaining: () => Math.max(0, t?.timeout - (Date.now() - o)) });
356
+ }, 10);
357
+ }
358
+ return () => {
359
+ typeof window.cancelIdleCallback == "function" ? window.cancelIdleCallback(r) : window.clearTimeout(r);
360
+ };
361
+ }
362
+ var M = typeof window < "u" ? l.useLayoutEffect : l.useEffect;
363
+ function pt(e) {
364
+ let t = l.useRef(e);
365
+ return M(() => {
366
+ t.current = e;
367
+ }), l.useCallback((...r) => t.current(...r), []);
368
+ }
369
+ function vt({ emojiVersion: e, emojibaseUrl: t }) {
370
+ let [r, o] = l.useState(void 0), n = T(), a = V(n, "locale"), s = V(n, "columns"), i = V(n, "skinTone"), g = V(n, "search");
371
+ return l.useEffect(() => {
372
+ let u = new AbortController(), m = u.signal;
373
+ return Ke({ locale: a, emojiVersion: e, emojibaseUrl: t, signal: m }).then((c) => {
374
+ o(c);
375
+ }).catch((c) => {
376
+ m.aborted || console.error(c);
377
+ }), () => {
378
+ u.abort();
379
+ };
380
+ }, [e, t, a]), l.useEffect(() => {
381
+ if (r) return wt(() => {
382
+ n.get().onDataChange(Qe(r, s, i, g));
383
+ }, { timeout: 100 });
384
+ }, [r, s, i, g]), null;
385
+ }
386
+ var be = l.forwardRef(({ locale: e = "en", columns: t = 9, skinTone: r = "none", onEmojiSelect: o = ht, emojiVersion: n, emojibaseUrl: a, onFocusCapture: s, onBlurCapture: i, children: g, style: u, ...m }, c) => {
387
+ let p = pt(o), f = Ze(() => tt(p, oe(e), t, ne(r))), [d, j] = l.useState(!1), w = l.useRef(null), k = l.useCallback((v) => {
388
+ v && (w.current = v, f.set({ rootRef: w }));
389
+ }, []);
390
+ M(() => {
391
+ f.set({ locale: oe(e) });
392
+ }, [e]), M(() => {
393
+ f.set({ columns: t });
394
+ }, [t]), M(() => {
395
+ f.set({ skinTone: ne(r) });
396
+ }, [r]);
397
+ let E = l.useCallback((v) => {
398
+ s?.(v);
399
+ let { searchRef: b, viewportRef: x } = f.get(), I = v.target === b?.current || v.target.hasAttribute("frimousse-search"), F = v.target === x?.current || v.target.hasAttribute("frimousse-viewport");
400
+ v.isDefaultPrevented() || (j(I || F), v.isDefaultPrevented() || (j(I || F), F ? f.get().onActiveEmojiChange("keyboard", 0, 0) : I && f.get().search === "" && f.set({ interaction: "none" })));
401
+ }, [s]), R = l.useCallback((v) => {
402
+ i?.(v), !v.isDefaultPrevented() && !v.currentTarget.contains(v.relatedTarget) && j(!1);
403
+ }, [i]);
404
+ return M(() => {
405
+ d || f.get().onActiveEmojiReset();
406
+ }, [d]), l.useImperativeHandle(c, () => w.current), l.useEffect(() => {
407
+ if (!d) return;
408
+ function v(b) {
409
+ if (b.defaultPrevented || !b.key.startsWith("Arrow") && b.key !== "Enter") return;
410
+ let { data: x, onEmojiSelect: I, onActiveEmojiChange: F, interaction: N, activeColumnIndex: L, activeRowIndex: U } = f.get();
411
+ if (b.key === "Enter") {
412
+ let C = _(f.get());
413
+ C && (b.preventDefault(), I(C));
414
+ }
415
+ if (b.key.startsWith("Arrow")) {
416
+ let C = L, y = U;
417
+ if (b.preventDefault(), N !== "none") {
418
+ if (x?.rows && x.rows.length > 0) switch (b.key) {
419
+ case "ArrowLeft": {
420
+ if (C === 0) {
421
+ let A = y - 1, K = x.rows[A];
422
+ K && (y = A, C = K.emojis.length - 1);
423
+ } else C -= 1;
424
+ break;
425
+ }
426
+ case "ArrowRight": {
427
+ if (C === x.rows[y].emojis.length - 1) {
428
+ let A = y + 1;
429
+ x.rows[A] && (y = A, C = 0);
430
+ } else C += 1;
431
+ break;
432
+ }
433
+ case "ArrowUp": {
434
+ let A = x.rows[y - 1];
435
+ A && (y -= 1, A.emojis[C] || (C = A.emojis.length - 1));
436
+ break;
437
+ }
438
+ case "ArrowDown": {
439
+ let A = x.rows[y + 1];
440
+ A && (y += 1, A.emojis[C] || (C = A.emojis.length - 1));
441
+ break;
442
+ }
443
+ }
444
+ F("keyboard", C, y);
445
+ } else F("keyboard", 0, 0);
446
+ }
447
+ }
448
+ return document.addEventListener("keydown", v), () => {
449
+ document.removeEventListener("keydown", v);
450
+ };
451
+ }, [d]), M(() => {
452
+ let v = null, b = null, x = null, I = null, F = f.subscribe((y) => {
453
+ w.current && (v !== y.viewportWidth && (v = y.viewportWidth, w.current.style.setProperty("--frimousse-viewport-width", `${y.viewportWidth}px`)), b !== y.viewportHeight && (b = y.viewportHeight, w.current.style.setProperty("--frimousse-viewport-height", `${y.viewportHeight}px`)), x !== y.rowHeight && (x = y.rowHeight, w.current.style.setProperty("--frimousse-row-height", `${y.rowHeight}px`)), I !== y.categoryHeaderHeight && (I = y.categoryHeaderHeight, w.current.style.setProperty("--frimousse-category-header-height", `${y.categoryHeaderHeight}px`)));
454
+ }), { viewportWidth: N, viewportHeight: L, rowHeight: U, categoryHeaderHeight: C } = f.get();
455
+ return N && w.current.style.setProperty("--frimousse-viewport-width", `${N}px`), L && w.current.style.setProperty("--frimousse-viewport-height", `${L}px`), U && w.current.style.setProperty("--frimousse-row-height", `${U}px`), C && w.current.style.setProperty("--frimousse-category-header-height", `${C}px`), F;
456
+ }, []), h.jsx("div", { "data-focused": d ? "" : void 0, "frimousse-root": "", onBlurCapture: R, onFocusCapture: E, ...m, ref: k, style: { "--frimousse-emoji-font": de, ...u }, children: h.jsxs(rt, { store: f, children: [h.jsx(vt, { emojiVersion: n, emojibaseUrl: a }), g] }) });
457
+ }), xe = l.forwardRef(({ value: e, defaultValue: t, onChange: r, ...o }, n) => {
458
+ let a = T(), s = l.useRef(null), i = l.useCallback((c) => {
459
+ c && (s.current = c, a.set({ searchRef: s }));
460
+ }, []), g = typeof e == "string", u = l.useRef(g);
461
+ l.useEffect(() => {
462
+ u.current = g;
463
+ }, [g]), M(() => {
464
+ a.set({ search: typeof e == "string" ? e : typeof t == "string" ? t : "" });
465
+ }, []), M(() => {
466
+ typeof e == "string" && a.get().onSearchChange(e);
467
+ }, [e]);
468
+ let m = l.useCallback((c) => {
469
+ r?.(c), c.isDefaultPrevented() || a.get().onSearchChange(c.target.value);
470
+ }, [r]);
471
+ return l.useImperativeHandle(n, () => s.current), h.jsx("input", { autoCapitalize: "off", autoComplete: "off", autoCorrect: "off", enterKeyHint: "done", "frimousse-search": "", placeholder: "Search…", spellCheck: !1, type: "search", ...o, defaultValue: t, onChange: m, ref: i, value: e });
472
+ }), yt = l.memo(() => {
473
+ let e = ye();
474
+ return e ? h.jsx("div", { "aria-live": "polite", style: { border: 0, clip: "rect(0, 0, 0, 0)", height: 1, margin: -1, overflow: "hidden", padding: 0, position: "absolute", whiteSpace: "nowrap", width: 1, wordWrap: "normal" }, children: e.label }) : null;
475
+ }), ke = l.forwardRef(({ children: e, onScroll: t, onKeyDown: r, style: o, ...n }, a) => {
476
+ let s = T(), i = l.useRef(null), g = l.useCallback((p) => {
477
+ p && (i.current = p, s.set({ viewportRef: i }));
478
+ }, []), u = P(s, pe), m = P(s, at), c = l.useCallback((p) => {
479
+ t?.(p), s.get().onViewportScroll(p.currentTarget.scrollTop);
480
+ }, [t]);
481
+ return M(() => {
482
+ if (!i.current) return;
483
+ let p = new ResizeObserver(([f]) => {
484
+ let d = f?.borderBoxSize[0]?.inlineSize ?? 0, j = f?.borderBoxSize[0]?.blockSize ?? 0, { onViewportSizeChange: w, viewportHeight: k, viewportWidth: E } = s.get();
485
+ (k !== j || E !== d) && w(d, j);
486
+ });
487
+ return p.observe(i.current), s.get().onViewportSizeChange(i.current.offsetWidth, i.current.clientHeight), () => {
488
+ p.disconnect();
489
+ };
490
+ }, []), l.useImperativeHandle(a, () => i.current), h.jsxs("div", { "frimousse-viewport": "", ...n, onScroll: c, ref: g, style: { position: "relative", boxSizing: "border-box", contain: "layout paint", containIntrinsicSize: typeof u == "number" && typeof m == "number" ? `var(--frimousse-viewport-width, auto) calc(${u} * var(--frimousse-row-height) + ${m} * var(--frimousse-category-header-height))` : void 0, overflowY: "auto", overscrollBehavior: "contain", scrollbarGutter: "stable", willChange: "scroll-position", ...o }, children: [h.jsx(yt, {}), e] });
491
+ });
492
+ function Ee(e, t, r) {
493
+ return { emoji: { ...e, isActive: r }, role: "gridcell", "aria-colindex": t, "aria-selected": r || void 0, "aria-label": e.label, "data-active": r ? "" : void 0, "frimousse-emoji": "", style: { fontFamily: "var(--frimousse-emoji-font)" }, tabIndex: -1 };
494
+ }
495
+ function Ce(e, t = !1) {
496
+ return { role: t ? void 0 : "row", "aria-rowindex": t ? void 0 : e, "frimousse-row": "", style: { contain: t ? void 0 : "content", height: t ? void 0 : "var(--frimousse-row-height)", display: "flex" } };
497
+ }
498
+ function Se(e, t) {
499
+ return { "frimousse-category": "", style: { contain: "content", top: t ? `calc(${e} * var(--frimousse-category-header-height) + ${t.startRowIndex} * var(--frimousse-row-height))` : void 0, height: t ? `calc(var(--frimousse-category-header-height) + ${t.rowsCount} * var(--frimousse-row-height))` : void 0, width: "100%", pointerEvents: "none", position: "absolute" } };
500
+ }
501
+ function Re(e, t = !1) {
502
+ return { category: e, "frimousse-category-header": "", style: { contain: t ? void 0 : "layout paint", height: t ? void 0 : "var(--frimousse-category-header-height)", pointerEvents: "auto", position: "sticky", top: 0 } };
503
+ }
504
+ function se(e, t, r, o) {
505
+ return { "frimousse-list-sizer": "", style: { position: "relative", boxSizing: "border-box", height: `calc(${e} * var(--frimousse-row-height) + ${t} * var(--frimousse-category-header-height))`, paddingTop: `calc(${r} * var(--frimousse-row-height) + ${o} * var(--frimousse-category-header-height))` } };
506
+ }
507
+ function le(e, t, r) {
508
+ return { "aria-colcount": e, "aria-rowcount": t, "frimousse-list": "", style: { "--frimousse-list-columns": e, ...r }, role: "grid" };
509
+ }
510
+ function jt(e) {
511
+ e.preventDefault();
512
+ }
513
+ var bt = l.memo(({ Emoji: e, emoji: t, columnIndex: r, rowIndex: o }) => {
514
+ let n = T(), a = P(n, (u) => _(u)?.emoji === t.emoji), s = l.useCallback(() => {
515
+ n.get().onEmojiSelect(t);
516
+ }, [t]), i = l.useCallback(() => {
517
+ n.get().onActiveEmojiChange("pointer", r, o);
518
+ }, [r, o]), g = l.useCallback(() => {
519
+ n.get().onActiveEmojiReset();
520
+ }, []);
521
+ return h.jsx(e, { ...Ee(t, r, a), onClick: s, onPointerDown: jt, onPointerEnter: i, onPointerLeave: g });
522
+ }), xt = l.memo(({ Row: e, Emoji: t, rowIndex: r }) => {
523
+ let o = T(), n = P(o, (a) => a.data?.rows[r], ut);
524
+ return n ? h.jsx(e, { ...Ce(r), children: n.emojis.map((a, s) => h.jsx(bt, { Emoji: t, columnIndex: s, emoji: a, rowIndex: r }, a.label)) }) : null;
525
+ }), kt = l.memo(({ CategoryHeader: e, categoryIndex: t }) => {
526
+ let r = T(), o = P(r, (n) => n.data?.categories[t], J);
527
+ return o ? h.jsx("div", { ...Se(t, o), children: h.jsx(e, { ...Re({ label: o.label }) }) }) : null;
528
+ }), ue = l.memo(({ CategoryHeader: e, Row: t, Emoji: r }) => {
529
+ let o = l.useRef(null), n = T(), a = V(n, "columns"), s = l.useMemo(() => Array(a).fill({ emoji: "🙂", label: "" }), [a]), i = l.useMemo(() => ({ label: "Category" }), []), g = l.useRef(null), u = l.useRef(null);
530
+ return M(() => {
531
+ let m = o.current?.parentElement?.parentElement;
532
+ if (!m || !g.current || !u.current) return;
533
+ let c = new ResizeObserver((d) => {
534
+ for (let j of d) {
535
+ let w = j.contentRect.height, { onRowHeightChange: k, onCategoryHeaderHeightChange: E, rowHeight: R, categoryHeaderHeight: v } = n.get();
536
+ j.target === g.current && R !== w && k(w), j.target === u.current && v !== w && E(w);
537
+ }
538
+ });
539
+ c.observe(m), c.observe(g.current), c.observe(u.current);
540
+ let { onRowHeightChange: p, onCategoryHeaderHeightChange: f } = n.get();
541
+ return p(g.current.clientHeight), f(u.current.clientHeight), () => {
542
+ c.disconnect();
543
+ };
544
+ }, []), h.jsxs("div", { "aria-hidden": !0, ref: o, style: { height: 0, visibility: "hidden" }, children: [h.jsx("div", { "frimousse-row-sizer": "", ref: g, children: h.jsx(t, { ...Ce(-1, !0), children: s.map((m, c) => h.jsx(r, { ...Ee(m, c, !1) }, c)) }) }), h.jsx("div", { ...Se(-1), children: h.jsx("div", { "frimousse-category-header-sizer": "", ref: u, children: h.jsx(e, { ...Re(i, !0) }) }) })] });
545
+ });
546
+ function Et({ category: e, ...t }) {
547
+ return h.jsx("div", { ...t, children: e.label });
548
+ }
549
+ function Ct({ emoji: e, ...t }) {
550
+ return h.jsx("button", { type: "button", ...t, children: e.emoji });
551
+ }
552
+ function St({ ...e }) {
553
+ return h.jsx("div", { ...e });
554
+ }
555
+ var He = l.forwardRef(({ style: e, components: t, ...r }, o) => {
556
+ let n = T(), a = l.useRef(null), s = l.useCallback((k) => {
557
+ k && (a.current = k, n.set({ listRef: a }));
558
+ }, []), i = t?.CategoryHeader ?? Et, g = t?.Emoji ?? Ct, u = t?.Row ?? St, m = V(n, "columns"), c = V(n, "viewportStartRowIndex"), p = V(n, "viewportEndRowIndex"), f = P(n, pe), d = P(n, st, J), j = l.useMemo(() => d?.filter((k) => k < c).length ?? 0, [d, c]), w = d?.length ?? 0;
559
+ return l.useImperativeHandle(o, () => a.current), !f || !d || w === 0 ? h.jsx("div", { ...le(m, 0, e), ...r, children: h.jsx("div", { ...se(0, 0, 0, 0), children: h.jsx(ue, { CategoryHeader: i, Emoji: g, Row: u }) }) }) : h.jsx("div", { ...le(m, f, e), ...r, ref: s, children: h.jsxs("div", { ...se(f, w, c, j), children: [h.jsx(ue, { CategoryHeader: i, Emoji: g, Row: u }), Array.from({ length: p - c + 1 }, (k, E) => {
560
+ let R = c + E, v = d.indexOf(R);
561
+ return h.jsxs(l.Fragment, { children: [v >= 0 && h.jsx("div", { style: { height: "var(--frimousse-category-header-height)" } }), h.jsx(xt, { Emoji: g, Row: u, rowIndex: R })] }, R);
562
+ }), Array.from({ length: w }, (k, E) => h.jsx(kt, { CategoryHeader: i, categoryIndex: E }, E))] }) });
563
+ }), Ie = l.forwardRef(({ emoji: e, onClick: t, "aria-label": r = "Change skin tone", ...o }, n) => {
564
+ let a = T(), s = P(a, lt, J), [i, g, u] = je(e), m = l.useMemo(() => Math.max(0, u.findIndex((w) => w.skinTone === i)), [i, u]), c = u[m], p = u[(m + 1) % u.length].skinTone, f = i === "none" ? void 0 : s?.[i], d = p === "none" ? void 0 : s?.[p], j = l.useCallback((w) => {
565
+ t?.(w), w.isDefaultPrevented() || g(p);
566
+ }, [t, g, p]);
567
+ return h.jsx("button", { type: "button", ...o, "aria-label": r + (d ? ` (${d})` : ""), "aria-live": "polite", "aria-valuetext": f, "frimousse-skin-tone-selector": "", onClick: j, ref: n, children: c.emoji });
568
+ });
569
+ function Te({ children: e, ...t }) {
570
+ let r = T();
571
+ return P(r, it) ? h.jsx("span", { "frimousse-loading": "", ...t, children: e }) : null;
572
+ }
573
+ function Rt({ children: e }) {
574
+ let t = T(), r = P(t, ot);
575
+ return e({ search: r });
576
+ }
577
+ function Ae({ children: e, ...t }) {
578
+ let r = T();
579
+ return P(r, nt) ? h.jsx("span", { "frimousse-empty": "", ...t, children: typeof e == "function" ? h.jsx(Rt, { children: e }) : e }) : null;
580
+ }
581
+ function Pe({ children: e }) {
582
+ let t = ye();
583
+ return e({ emoji: t });
584
+ }
585
+ function $e({ children: e, emoji: t }) {
586
+ let [r, o, n] = je(t);
587
+ return e({ skinTone: r, setSkinTone: o, skinToneVariations: n });
588
+ }
589
+ be.displayName = "EmojiPicker.Root";
590
+ xe.displayName = "EmojiPicker.Search";
591
+ ke.displayName = "EmojiPicker.Viewport";
592
+ He.displayName = "EmojiPicker.List";
593
+ Te.displayName = "EmojiPicker.Loading";
594
+ Ae.displayName = "EmojiPicker.Empty";
595
+ Ie.displayName = "EmojiPicker.SkinToneSelector";
596
+ Pe.displayName = "EmojiPicker.ActiveEmoji";
597
+ $e.displayName = "EmojiPicker.SkinTone";
598
+ function Pt(e) {
599
+ return e.split("/").map((t) => t.trim()).filter(Boolean);
600
+ }
601
+ function $t(e) {
602
+ try {
603
+ return decodeURIComponent(e);
604
+ } catch {
605
+ return e;
606
+ }
607
+ }
608
+ function Ft(e) {
609
+ return encodeURIComponent(String(e));
610
+ }
611
+ export {
612
+ At as I,
613
+ je as Q,
614
+ It as S,
615
+ Le as a,
616
+ Tt as b,
617
+ $t as d,
618
+ Ft as e,
619
+ Pt as s
620
+ };
@@ -1,4 +1,4 @@
1
- import { j as o, M as u, l as i } from "./account-screen-runtime-DYMunv0A.js";
1
+ import { j as o, M as u, l as i } from "./account-screen-runtime-CCBl8DXt.js";
2
2
  function b({
3
3
  className: t,
4
4
  type: e,
@@ -108,9 +108,9 @@ function v() {
108
108
  export {
109
109
  b as I,
110
110
  p as S,
111
- h as a,
111
+ g as a,
112
112
  m as b,
113
- g as c,
113
+ h as c,
114
114
  v as d,
115
115
  x as u
116
116
  };