'use strict';
import { workspaceNames, workspaceConstants } from '../../../../../fd-toolbox/server/constants/workspace-constants.js';
import { createWorkspace } from '../../../../fd-app-toolbox/server/infra/workspaces/workspace-db.js';
import { createBaseResourceProperties } from '../../../utils/base-resource-properties.js';
import { workspaceSettings } from '../../../constants/workspace-settings.js';
import { createResourceDirectlyInDb } from '../../../../meta/server/db/db.js';
import { resourceNames } from '../../../../../fd-toolbox/resources/resource-names.js';

var __defProp=Object['defineProperty'],__name=(_0x338df5,_0x43cc1d)=>__defProp(_0x338df5,'name',{'value':_0x43cc1d,'configurable':!![]});async function seedWorkspaces(){await seedTestWorkspace(),await quantumTechWorkspace(),await blueOceanWorkspace();}__name(seedWorkspaces,'seedWorkspaces');async function seedDefaultWorkspaceDirectlyInDb(){const _0x1b7022=await createResourceDirectlyInDb({'id':workspaceConstants['defaultWorkspaceId'],'name':workspaceNames['default']},resourceNames['workspace']);await seedDefaultWorkspaceSetting(_0x1b7022);}__name(seedDefaultWorkspaceDirectlyInDb,'seedDefaultWorkspaceDirectlyInDb');function quantumTechWorkspace(){return seedWorkspaceWithParent(workspaceConstants['quantumTechWorkspaceId'],workspaceNames['quantumTech']);}__name(quantumTechWorkspace,'quantumTechWorkspace');function blueOceanWorkspace(){return seedWorkspaceWithParent(workspaceConstants['blueOceanWorkspaceId'],workspaceNames['blueOcean']);}__name(blueOceanWorkspace,'blueOceanWorkspace');function seedTestWorkspace(){return seedWorkspaceWithParent(workspaceConstants['westMountainWorkspaceId'],workspaceNames['westMountain']);}__name(seedTestWorkspace,'seedTestWorkspace');function seedDefaultWorkspaceSetting(_0x455bc8){const _0x32b864={...createBaseResourceProperties(workspaceSettings['id']),'name':workspaceSettings['name'],'id':workspaceSettings['id'],'workspaceId':workspaceConstants['defaultWorkspaceId'],'workspace':_0x455bc8,'location':workspaceSettings['location'],'website':workspaceSettings['website'],'address':workspaceSettings['address'],'workspaceCategory':workspaceSettings['workspaceCategory'],'status':workspaceSettings['status']};return createResourceDirectlyInDb(_0x32b864,resourceNames['workspaceSetting']);}__name(seedDefaultWorkspaceSetting,'seedDefaultWorkspaceSetting');function seedWorkspaceWithParent(_0x25f375,_0x21016b,_0x121d7f=workspaceConstants['defaultWorkspaceId']){return seedWorkspace(_0x25f375,_0x21016b,_0x121d7f);}__name(seedWorkspaceWithParent,'seedWorkspaceWithParent');function seedWorkspace(_0x17a79c,_0x2db323,_0x54a2d7){return createWorkspace({'id':_0x17a79c,'name':_0x2db323,'parentWorkspaceId':_0x54a2d7});}__name(seedWorkspace,'seedWorkspace');

export { blueOceanWorkspace, quantumTechWorkspace, seedDefaultWorkspaceDirectlyInDb, seedWorkspaces };
