{"version":3,"file":"workspace-section-route.route-entry-C_EGyl0j.js","sources":["../../../src/packages/core/workspace/section-routes/workspace-section-route.route-entry.ts"],"sourcesContent":["import { UMB_WORKSPACE_PATH_PATTERN } from '../paths.js';\nimport type { UmbWorkspaceElement } from '../workspace.element.js';\nimport type { IRoutingInfo, PageComponent, UmbRouteEntry } from '@umbraco-cms/backoffice/router';\nimport type { UmbApi } from '@umbraco-cms/backoffice/extension-api';\n\nexport class UmbWorkspaceSectionRouteEntry implements UmbApi, UmbRouteEntry {\n\tgetPath(): string {\n\t\treturn UMB_WORKSPACE_PATH_PATTERN.toString();\n\t}\n\n\tsetup(element: PageComponent, info: IRoutingInfo) {\n\t\t(element as UmbWorkspaceElement).entityType = info.match.params.entityType;\n\t}\n\n\tdestroy(): void {}\n}\n\nexport { UmbWorkspaceSectionRouteEntry as api };\n"],"names":["UmbWorkspaceSectionRouteEntry","UMB_WORKSPACE_PATH_PATTERN","element","info"],"mappings":";AAKO,MAAMA,EAA+D;AAAA,EAC3E,UAAkB;AACjB,WAAOC,EAA2B;EACnC;AAAA,EAEA,MAAMC,GAAwBC,GAAoB;AAChD,IAAAD,EAAgC,aAAaC,EAAK,MAAM,OAAO;AAAA,EACjE;AAAA,EAEA,UAAgB;AAAA,EAAC;AAClB;"}