@ethora/chat-component 25.3.15 → 25.3.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +5 -9
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -63603,13 +63603,10 @@ const Wc = N.div`
|
|
|
63603
63603
|
f(w.target.value);
|
|
63604
63604
|
},
|
|
63605
63605
|
[]
|
|
63606
|
-
), b = te(
|
|
63607
|
-
|
|
63608
|
-
|
|
63609
|
-
|
|
63610
|
-
},
|
|
63611
|
-
[]
|
|
63612
|
-
), y = Ce(() => {
|
|
63606
|
+
), b = te((w) => {
|
|
63607
|
+
var B, E;
|
|
63608
|
+
return (((E = (B = w == null ? void 0 : w.messages) == null ? void 0 : B[(w == null ? void 0 : w.messages.length) - 1]) == null ? void 0 : E.id) ?? "").replace(/\D+/g, "").padEnd(16, "0");
|
|
63609
|
+
}, []), y = Ce(() => {
|
|
63613
63610
|
const w = o.toLowerCase(), x = /* @__PURE__ */ new Map();
|
|
63614
63611
|
if (!x.has(w)) {
|
|
63615
63612
|
const S = n.filter(
|
|
@@ -63618,8 +63615,7 @@ const Wc = N.div`
|
|
|
63618
63615
|
return (B = P.name) == null ? void 0 : B.toLowerCase().includes(w);
|
|
63619
63616
|
}
|
|
63620
63617
|
).sort((P, B) => {
|
|
63621
|
-
|
|
63622
|
-
const E = (J = b(P)) != null && J.id ? Number(b(P).id) : null, T = ($ = b(B)) != null && $.id ? Number(b(B).id) : null, D = P.createdAt ? new Date(P.createdAt).getTime() * 1e3 : null, F = B.createdAt ? new Date(B.createdAt).getTime() * 1e3 : null, H = E !== null ? E : D, G = T !== null ? T : F;
|
|
63618
|
+
const E = b(P) ? Number(b(P)) : null, T = b(B) ? Number(b(B)) : null, D = P.createdAt ? new Date(P.createdAt).getTime() * 1e3 : null, F = B.createdAt ? new Date(B.createdAt).getTime() * 1e3 : null, H = E !== null ? E : D, G = T !== null ? T : F;
|
|
63623
63619
|
return H === null && G === null ? 0 : H === null ? 1 : G === null ? -1 : G - H;
|
|
63624
63620
|
});
|
|
63625
63621
|
x.set(w, S);
|