// Loads the card's visual editor only when the dashboard opens it (it defines ). /** Content hash of the card editor bundle, set by the build (see build.mjs). */ declare const __NF_CARD_EDITOR_HASH__: string; let loading: Promise | undefined; export function loadCardEditor(): Promise { const url = new URL(`./nextfloor-card-editor.js?v=${__NF_CARD_EDITOR_HASH__}`, new URL(import.meta.url)).href; loading ??= import(/* @vite-ignore */ url); return loading; }