uikit/dist/utils.js
Mohamadzadeh 97407cffc0
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Successful in 52s
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Successful in 7s
update utils
2026-10-19 13:30:55 +03:30

34 lines
965 B
JavaScript

import { a as u, t as g, b as h } from "./chunks/numbers-CnO9mrbW.js";
const b = (r, { w: t, h: a, q: e = 70, webp: i = !0, g: o = "sm" } = {}) => r ? `https://img.d.aiengines.ir/preset:sharp${t || a ? `/rs:auto:${t || 0}:${a || 0}:0` : ""}/q:${e}/g:${o}/plain/${r}${i ? "@webp" : ""}` : "";
function s(r, t) {
return (r == null ? void 0 : r.length) < t ? r : (r == null ? void 0 : r.slice(0, t)) + "...";
}
const l = {
scrollbarWidth: "thin",
scrollbarColor: "rgba(0,0,0,0.22) transparent",
"&::-webkit-scrollbar": {
width: "4px",
height: "4px"
},
"&::-webkit-scrollbar-track": {
background: "transparent"
},
"&::-webkit-scrollbar-thumb": {
backgroundColor: "rgba(0,0,0,0.22)",
borderRadius: "999px"
},
"&::-webkit-scrollbar-button": {
display: "none",
width: 0,
height: 0
}
};
export {
b as processImage,
l as thinScrollbar,
u as toEnDigits,
g as toFaDigits,
h as toFaNumber,
s as truncateText
};