{"version":3,"file":"routable-workspace.element-D-sdgpiI.js","sources":["../../../src/packages/core/workspace/kinds/routable/routable-workspace.element.ts"],"sourcesContent":["import type { UmbRoutableWorkspaceContext } from '../../contexts/tokens/routable-workspace-context.interface.js';\nimport { umbExtensionsRegistry } from '@umbraco-cms/backoffice/extension-registry';\nimport { html, customElement, state } from '@umbraco-cms/backoffice/external/lit';\nimport { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';\nimport type { UmbRoute } from '@umbraco-cms/backoffice/router';\nimport { UmbExtensionsApiInitializer } from '@umbraco-cms/backoffice/extension-api';\n\n@customElement('umb-routable-workspace')\nexport class UmbRoutableWorkspaceElement extends UmbLitElement {\n\t@state()\n\t_routes: UmbRoute[] = [];\n\n\tpublic set api(api: UmbRoutableWorkspaceContext) {\n\t\tthis.observe(api.routes.routes, (routes) => (this._routes = routes));\n\n\t\tnew UmbExtensionsApiInitializer(this, umbExtensionsRegistry, 'workspaceContext', [api]);\n\t}\n\n\toverride render() {\n\t\treturn html``;\n\t}\n}\n\nexport default UmbRoutableWorkspaceElement;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'umb-routable-workspace': UmbRoutableWorkspaceElement;\n\t}\n}\n"],"names":["UmbRoutableWorkspaceElement","UmbLitElement","api","routes","UmbExtensionsApiInitializer","umbExtensionsRegistry","html","__decorateClass","state","customElement","UmbRoutableWorkspaceElement$1"],"mappings":";;;;;;;;;AAQa,IAAAA,IAAN,cAA0CC,EAAc;AAAA,EAAxD,cAAA;AAAA,UAAA,GAAA,SAAA,GAEN,KAAA,UAAsB;EAAC;AAAA,EAEvB,IAAW,IAAIC,GAAkC;AAC3C,SAAA,QAAQA,EAAI,OAAO,QAAQ,CAACC,MAAY,KAAK,UAAUA,CAAO,GAEnE,IAAIC,EAA4B,MAAMC,GAAuB,oBAAoB,CAACH,CAAG,CAAC;AAAA,EACvF;AAAA,EAES,SAAS;AACV,WAAAI,8BAAiC,KAAK,OAAO;AAAA,EACrD;AACD;AAXCC,EAAA;AAAA,EADCC,EAAM;AAAA,GADKR,EAEZ,WAAA,WAAA,CAAA;AAFYA,IAANO,EAAA;AAAA,EADNE,EAAc,wBAAwB;AAAA,GAC1BT,CAAA;AAeb,MAAAU,IAAeV;"}