@3sc/common-component 0.0.456 → 0.0.457
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/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -40272,19 +40272,19 @@ const g7 = ({ color: e }) => /* @__PURE__ */ m.jsx("svg", { width: "7", height:
|
|
|
40272
40272
|
return o === i ? 0 : o > i ? -1 : 1;
|
|
40273
40273
|
}).sort((n, r) => n.isRead === r.isRead ? 0 : r.isRead ? -1 : 1), cy = (e) => {
|
|
40274
40274
|
let t = 0;
|
|
40275
|
-
for (let n = 0; n < e.length; n++)
|
|
40275
|
+
for (let n = 0; n < (e == null ? void 0 : e.length); n++)
|
|
40276
40276
|
e[n].isRead || t++;
|
|
40277
40277
|
return t;
|
|
40278
40278
|
}, w7 = (e) => {
|
|
40279
40279
|
const t = [];
|
|
40280
|
-
return e.forEach((n) => {
|
|
40280
|
+
return e == null || e.forEach((n) => {
|
|
40281
40281
|
n.isRead || t.push(n.id);
|
|
40282
40282
|
}), t;
|
|
40283
40283
|
}, C7 = (e, t, n) => e == null ? void 0 : e.filter((o) => t.some((i) => {
|
|
40284
40284
|
var a, l, c;
|
|
40285
40285
|
return (c = (a = o[i]) == null ? void 0 : a.toLowerCase()) == null ? void 0 : c.includes((l = n == null ? void 0 : n.trim()) == null ? void 0 : l.toLowerCase());
|
|
40286
|
-
})), S7 = (e, t, n) => e.sort((o, i) => n === "asc" ? o[t].toLowerCase().localeCompare(i[t].toLowerCase()) : i[t].toLowerCase().localeCompare(o[t].toLowerCase())), $u = (e, t, n) => e.slice((t - 1) * n, t * n), T7 = (e) => {
|
|
40287
|
-
const t = e.reduce((r, o) => {
|
|
40286
|
+
})), S7 = (e, t, n) => e == null ? void 0 : e.sort((o, i) => n === "asc" ? o[t].toLowerCase().localeCompare(i[t].toLowerCase()) : i[t].toLowerCase().localeCompare(o[t].toLowerCase())), $u = (e, t, n) => e == null ? void 0 : e.slice((t - 1) * n, t * n), T7 = (e) => {
|
|
40287
|
+
const t = e == null ? void 0 : e.reduce((r, o) => {
|
|
40288
40288
|
const i = new Date(o == null ? void 0 : o.createdAt), a = new Intl.DateTimeFormat("en-US", {
|
|
40289
40289
|
day: "numeric",
|
|
40290
40290
|
month: "long",
|