'use strict';
import { createWorkspace } from '../../../level2/fd-app-toolbox/server/infra/workspaces/workspace-db.js';
import { getNewUuid } from '../../../fd-toolbox/uuids.js';
import { workspaceConstants } from '../../../fd-toolbox/server/constants/workspace-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x408d17,_0x2e55f7)=>__defProp(_0x408d17,'name',{'value':_0x2e55f7,'configurable':!![]});async function setupNewWorkspace(_0x1a98a9){const _0x34d33f=getNewUuid();return await createWorkspace({'id':_0x34d33f,'name':_0x1a98a9,'parentWorkspaceId':workspaceConstants['defaultWorkspaceId']}),_0x34d33f;}__name(setupNewWorkspace,'setupNewWorkspace');

export { setupNewWorkspace };
