UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 654 B
import { i as isBackgroundAssetId } from "./background-preferences-r6LTVrBR.mjs"; import { t as normalizeControlUiBasePath } from "./control-ui-shared-_tUmz6W8.mjs"; //#region src/gateway/control-ui-user-background-route.ts const PREFIX = "/__openclaw__/users/background/"; function parseControlUiUserBackgroundPath(e, t) { const n = normalizeControlUiBasePath(t); const r = n && e.startsWith(n + PREFIX) ? e.slice(n.length) : e; if (!r.startsWith(PREFIX)) return { matched: false }; const i = r.slice(31); return { matched: true, assetId: isBackgroundAssetId(i) ? i : void 0 }; } //#endregion export { parseControlUiUserBackgroundPath as t };