@3sc/common-component 0.0.64 → 0.0.65
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 +5 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -19211,8 +19211,11 @@ const RI = {
|
|
|
19211
19211
|
const t = localStorage.getItem(e);
|
|
19212
19212
|
return t ? JSON.parse(t) : "";
|
|
19213
19213
|
}, OI = (e) => {
|
|
19214
|
-
const t = /* @__PURE__ */ new Date(), n = new Date(e)
|
|
19215
|
-
|
|
19214
|
+
const t = /* @__PURE__ */ new Date(), n = new Date(e);
|
|
19215
|
+
let o = t - n;
|
|
19216
|
+
o < 0 && (o = 0);
|
|
19217
|
+
const r = Math.floor(o / 1e3), s = Math.floor(r / 60);
|
|
19218
|
+
return r < 60 ? `${r} sec ago` : s < 60 ? `${s} min ago` : n.toLocaleTimeString("en-US", {
|
|
19216
19219
|
hour: "2-digit",
|
|
19217
19220
|
minute: "2-digit",
|
|
19218
19221
|
hour12: !0
|