{"version":3,"file":"variant-workspace.context-token-D6bAj5ka.js","sources":["../../../src/packages/core/workspace/contexts/tokens/workspace.context-token.ts","../../../src/packages/core/workspace/contexts/tokens/collection-workspace.context-token.ts","../../../src/packages/core/workspace/contexts/tokens/entity-workspace.context-token.ts","../../../src/packages/core/workspace/contexts/tokens/property-structure-workspace.context-token.ts","../../../src/packages/core/workspace/contexts/tokens/publishable-workspace.context-token.ts","../../../src/packages/core/workspace/contexts/tokens/routable-workspace.context-token.ts","../../../src/packages/core/workspace/contexts/tokens/submittable-workspace.context-token.ts","../../../src/packages/core/workspace/contexts/tokens/variant-workspace.context-token.ts"],"sourcesContent":["import type { UmbWorkspaceContext } from './workspace-context.interface.js';\nimport { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\n\nexport const UMB_WORKSPACE_CONTEXT = new UmbContextToken('UmbWorkspaceContext');\n","import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\nimport type { UmbContentTypeModel } from '@umbraco-cms/backoffice/content-type';\nimport type { UmbWorkspaceContext, UmbCollectionWorkspaceContext } from '@umbraco-cms/backoffice/workspace';\n\nexport const UMB_COLLECTION_WORKSPACE_CONTEXT = new UmbContextToken<\n\tUmbWorkspaceContext,\n\tUmbCollectionWorkspaceContext\n>(\n\t'UmbWorkspaceContext',\n\tundefined,\n\t(context): context is UmbCollectionWorkspaceContext =>\n\t\t(context as UmbCollectionWorkspaceContext).contentTypeHasCollection !== undefined,\n);\n\n/**\n * @deprecated Use `UMB_COLLECTION_WORKSPACE_CONTEXT` instead. This token will be removed in the RC version.\n * TODO: Remove in RC\n */\nexport const UMB_WORKSPACE_COLLECTION_CONTEXT = UMB_COLLECTION_WORKSPACE_CONTEXT;\n","import type { UmbWorkspaceContext } from './workspace-context.interface.js';\nimport type { UmbEntityWorkspaceContext } from './entity-workspace-context.interface.js';\nimport { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\n\nexport const UMB_ENTITY_WORKSPACE_CONTEXT = new UmbContextToken(\n\t'UmbWorkspaceContext',\n\tundefined,\n\t(context): context is UmbEntityWorkspaceContext => (context as any).getUnique !== undefined,\n);\n","import type { UmbWorkspaceContext } from './workspace-context.interface.js';\nimport type { UmbPropertyStructureWorkspaceContext } from './property-structure-workspace-context.interface.js';\nimport { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\n\nexport const UMB_PROPERTY_STRUCTURE_WORKSPACE_CONTEXT = new UmbContextToken<\n\tUmbWorkspaceContext,\n\tUmbPropertyStructureWorkspaceContext\n>(\n\t'UmbWorkspaceContext',\n\tundefined,\n\t(context): context is UmbPropertyStructureWorkspaceContext => 'propertyStructureById' in context,\n);\n","import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\nimport type { UmbPublishableWorkspaceContext, UmbWorkspaceContext } from '@umbraco-cms/backoffice/workspace';\n\nexport const UMB_PUBLISHABLE_WORKSPACE_CONTEXT = new UmbContextToken<\n\tUmbWorkspaceContext,\n\tUmbPublishableWorkspaceContext\n>('UmbWorkspaceContext', undefined, (context): context is UmbPublishableWorkspaceContext => 'publish' in context);\n","import type { UmbRoutableWorkspaceContext } from './routable-workspace-context.interface.js';\nimport type { UmbWorkspaceContext } from './workspace-context.interface.js';\nimport { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\n\nexport const UMB_ROUTABLE_WORKSPACE_CONTEXT = new UmbContextToken(\n\t'UmbWorkspaceContext',\n\tundefined,\n\t(context): context is UmbRoutableWorkspaceContext => 'routes' in context,\n);\n","import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\nimport type { UmbWorkspaceContext, UmbSubmittableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';\n\nexport const UMB_SUBMITTABLE_WORKSPACE_CONTEXT = new UmbContextToken<\n\tUmbWorkspaceContext,\n\tUmbSubmittableWorkspaceContext\n>('UmbWorkspaceContext', undefined, (context): context is UmbSubmittableWorkspaceContext => 'requestSubmit' in context);\n","import type { UmbWorkspaceContext } from './workspace-context.interface.js';\nimport type { UmbVariantDatasetWorkspaceContext } from './variant-dataset-workspace-context.interface.js';\nimport { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\n\nexport const UMB_VARIANT_WORKSPACE_CONTEXT = new UmbContextToken<\n\tUmbWorkspaceContext,\n\tUmbVariantDatasetWorkspaceContext\n>('UmbWorkspaceContext', undefined, (context): context is UmbVariantDatasetWorkspaceContext => 'variants' in context);\n"],"names":["UMB_WORKSPACE_CONTEXT","UmbContextToken","UMB_COLLECTION_WORKSPACE_CONTEXT","context","UMB_WORKSPACE_COLLECTION_CONTEXT","UMB_ENTITY_WORKSPACE_CONTEXT","UMB_PROPERTY_STRUCTURE_WORKSPACE_CONTEXT","UMB_PUBLISHABLE_WORKSPACE_CONTEXT","UMB_ROUTABLE_WORKSPACE_CONTEXT","UMB_SUBMITTABLE_WORKSPACE_CONTEXT","UMB_VARIANT_WORKSPACE_CONTEXT"],"mappings":";AAGa,MAAAA,IAAwB,IAAIC,EAAqC,qBAAqB,GCCtFC,IAAmC,IAAID;AAAA,EAInD;AAAA,EACA;AAAA,EACA,CAACE,MACCA,EAA+D,6BAA6B;AAC/F,GAMaC,IAAmCF,GCdnCG,IAA+B,IAAIJ;AAAA,EAC/C;AAAA,EACA;AAAA,EACA,CAACE,MAAmDA,EAAgB,cAAc;AACnF,GCJaG,IAA2C,IAAIL;AAAA,EAI3D;AAAA,EACA;AAAA,EACA,CAACE,MAA6D,2BAA2BA;AAC1F,GCRaI,IAAoC,IAAIN,EAGnD,uBAAuB,QAAW,CAACE,MAAuD,aAAaA,CAAO,GCFnGK,IAAiC,IAAIP;AAAA,EACjD;AAAA,EACA;AAAA,EACA,CAACE,MAAoD,YAAYA;AAClE,GCLaM,IAAoC,IAAIR,EAGnD,uBAAuB,QAAW,CAACE,MAAuD,mBAAmBA,CAAO,GCFzGO,IAAgC,IAAIT,EAG/C,uBAAuB,QAAW,CAACE,MAA0D,cAAcA,CAAO;"}