'use strict';
import { isNonEmptyUuid } from '../../../../fd-toolbox/uuids.js';
import { isString } from '../../../../fd-toolbox/types/ensure-type.js';
import { getCurrentWorkspaceId } from '../providers/current-workspace-id-provider.js';
import { withWorkspaceIdProps } from '../../../../fd-toolbox-core/server/base-resources/props/with-workspace-id-props.js';

var __defProp=Object['defineProperty'],__name=(_0x113b2f,_0x10c9e0)=>__defProp(_0x113b2f,'name',{'value':_0x10c9e0,'configurable':!![]});async function setWorkspaceId(_0x515328){withWorkspaceIdProps['workspaceId']in _0x515328&&isString(_0x515328[withWorkspaceIdProps['workspaceId']])&&!isNonEmptyUuid(_0x515328[withWorkspaceIdProps['workspaceId']])&&(_0x515328[withWorkspaceIdProps['workspaceId']]=await getCurrentWorkspaceId());}__name(setWorkspaceId,'setWorkspaceId');

export { setWorkspaceId };
