{"version":3,"file":"workspace.element-DZKsKM3E.js","sources":["../../../src/packages/core/workspace/workspace.element.ts"],"sourcesContent":["import { html, nothing, customElement, property } from '@umbraco-cms/backoffice/external/lit';\nimport { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';\nimport type { ManifestWorkspace } from '@umbraco-cms/backoffice/extension-registry';\nimport type { UmbApiConstructorArgumentsMethodType } from '@umbraco-cms/backoffice/extension-api';\n\nconst apiArgsCreator: UmbApiConstructorArgumentsMethodType = (manifest: unknown) => {\n\treturn [{ manifest }];\n};\n\n@customElement('umb-workspace')\nexport class UmbWorkspaceElement extends UmbLitElement {\n\t@property({ type: String, attribute: 'entity-type' })\n\tentityType = '';\n\n\toverride render() {\n\t\tif (!this.entityType) return nothing;\n\t\treturn html` import('./contexts/default-workspace.context.js')}\n\t\t\t.apiArgs=${apiArgsCreator}\n\t\t\t.filter=${(manifest: ManifestWorkspace) =>\n\t\t\t\tmanifest.meta.entityType === this.entityType}>`;\n\t}\n}\n\nexport { UmbWorkspaceElement as element };\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'umb-workspace': UmbWorkspaceElement;\n\t}\n}\n"],"names":["apiArgsCreator","manifest","UmbWorkspaceElement","UmbLitElement","html","nothing","__decorateClass","property","customElement"],"mappings":";;;;;;;AAKA,MAAMA,IAAgE,CAACC,MAC/D,CAAC,EAAE,UAAAA,EAAA,CAAU;AAIR,IAAAC,IAAN,cAAkCC,EAAc;AAAA,EAAhD,cAAA;AAAA,UAAA,GAAA,SAAA,GAEO,KAAA,aAAA;AAAA,EAAA;AAAA,EAEJ,SAAS;AACb,WAAC,KAAK,aACHC;AAAA;AAAA,iBAEQ,MAAM,OAAO,yCAAyC,CAAC;AAAA,cAC1DJ,CAAc;AAAA,aACf,CAACC,MACVA,EAAS,KAAK,eAAe,KAAK,UAAU,oCANjBI;AAAA,EAO9B;AACD;AAXCC,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,WAAW,eAAe;AAAA,GADxCL,EAEZ,WAAA,cAAA,CAAA;AAFYA,IAANI,EAAA;AAAA,EADNE,EAAc,eAAe;AAAA,GACjBN,CAAA;"}