export function showSnackbar(message, duration = 3e3) {
    const snackbarId = `snackbar-${Date.now()}`;
    if (document.getElementById(snackbarId)) return;
    const snackbar = document.createElement("div");
    snackbar.id = snackbarId, snackbar.className = "vtable-sheet-snackbar-message", 
    snackbar.textContent = message, document.body.appendChild(snackbar), setTimeout((() => {
        snackbar.classList.add("show");
    }), 10), setTimeout((() => {
        snackbar.classList.remove("show"), snackbar.addEventListener("transitionend", (function handler() {
            snackbar.removeEventListener("transitionend", handler), document.body.contains(snackbar) && document.body.removeChild(snackbar);
        }));
    }), duration);
}
//# sourceMappingURL=snackbar.js.map