{"version":3,"file":"menu.context-DgF1nM0C.js","sources":["../../../src/packages/core/menu/components/menu/menu.context.ts"],"sourcesContent":["import type { ManifestMenu } from '@umbraco-cms/backoffice/extension-registry';\nimport { UmbContextToken } from '@umbraco-cms/backoffice/context-api';\nimport { UmbDeepState } from '@umbraco-cms/backoffice/observable-api';\n\nexport class UmbMenuContext {\n\t#manifest = new UmbDeepState(undefined);\n\tpublic readonly manifest = this.#manifest.asObservable();\n\tpublic readonly alias = this.#manifest.asObservablePart((x) => x?.alias);\n\n\tpublic setManifest(manifest: ManifestMenu | undefined) {\n\t\tthis.#manifest.setValue(manifest);\n\t}\n}\n\nexport const UMB_MENU_CONTEXT = new UmbContextToken('UMB_MENU_CONTEXT');\n"],"names":["UmbMenuContext","#manifest","UmbDeepState","x","manifest","UMB_MENU_CONTEXT","UmbContextToken"],"mappings":";;AAIO,MAAMA,EAAe;AAAA,EAArB,cAAA;AACM,SAAAC,KAAA,IAAIC,EAAuC,MAAS,GAChD,KAAA,WAAW,KAAKD,GAAU,aAAa,GACvD,KAAgB,QAAQ,KAAKA,GAAU,iBAAiB,CAACE,MAAMA,GAAG,KAAK;AAAA,EAAA;AAAA,EAFvEF;AAAA,EAIO,YAAYG,GAAoC;AACjD,SAAAH,GAAU,SAASG,CAAQ;AAAA,EACjC;AACD;AAEa,MAAAC,IAAmB,IAAIC,EAAgC,kBAAkB;"}