@stanfordspezi/spezi-web-design-system
Version:
Stanford Biodesign Digital Health Spezi Web Design System
29 lines (28 loc) • 852 B
JavaScript
import { t as r } from "./index-D1kF7Ir3.mjs";
import "react/jsx-runtime";
import { i as n } from "./isNil-CjWwlQS3.mjs";
function o(t) {
return typeof t == "string";
}
const g = (t) => !t, y = async (t) => {
try {
await navigator.clipboard.writeText(t), r("Copied to clipboard");
} catch {
console.info("Copying failed");
}
}, b = (t) => `${t.slice(0, 1).toUpperCase()}${t.slice(1)}`, m = (t, i) => new Array(t).fill(void 0).map((c, s) => i(s)), d = (t, i) => t[i], l = (t) => o(t) ? t : void 0, e = (t) => t !== null && typeof t == "object", u = (t) => {
if (t === "" || n(t)) return !0;
const i = e(t);
return i && "length" in t ? t.length === 0 : i && "size" in t ? t.size === 0 : i ? Object.entries(t).length === 0 : !1;
};
export {
u as a,
o as b,
y as c,
l as e,
e as i,
g as n,
d as s,
m as t,
b as u
};