'use strict';
import { resourceNames } from '../../fd-toolbox/resources/resource-names.js';
import { getResourcesByName, deleteResource } from '../../level2/meta/server/db/db.js';
import { workspaceConstants } from '../../fd-toolbox/server/constants/workspace-constants.js';
import { isCi } from '../../fd-toolbox/lib/environments.js';

var __defProp=Object['defineProperty'],__name=(_0x506302,_0x324a9f)=>__defProp(_0x506302,'name',{'value':_0x324a9f,'configurable':!![]});async function playwrightGlobalTeardown(){if(isCi())return;const _0x5d8d75=await getResourcesByName(resourceNames['workspace']);for(const _0x2c1f08 of _0x5d8d75){!isWellKnownWorkspace(_0x2c1f08['id'])&&deleteResource(_0x2c1f08['id'],resourceNames['workspace']);}}__name(playwrightGlobalTeardown,'playwrightGlobalTeardown');function isWellKnownWorkspace(_0x18cd68){return _0x18cd68===workspaceConstants['defaultWorkspaceId']||_0x18cd68===workspaceConstants['westMountainWorkspaceId']||_0x18cd68===workspaceConstants['quantumTechWorkspaceId']||_0x18cd68===workspaceConstants['blueOceanWorkspaceId'];}__name(isWellKnownWorkspace,'isWellKnownWorkspace');

export { playwrightGlobalTeardown };
