{"version":3,"file":"reload-tree-item-children.action-ykywcgYI.js","sources":["../../../src/packages/core/tree/entity-actions/reload-tree-item-children/reload-tree-item-children.action.ts"],"sourcesContent":["import type { UmbEntityActionArgs } from '@umbraco-cms/backoffice/entity-action';\nimport { UmbEntityActionBase, UmbRequestReloadChildrenOfEntityEvent } from '@umbraco-cms/backoffice/entity-action';\nimport type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';\nimport { UMB_ACTION_EVENT_CONTEXT } from '@umbraco-cms/backoffice/action';\nimport type { MetaEntityActionReloadTreeItemChildrenKind } from '@umbraco-cms/backoffice/extension-registry';\n\nexport class UmbReloadTreeItemChildrenEntityAction extends UmbEntityActionBase {\n\tconstructor(host: UmbControllerHost, args: UmbEntityActionArgs) {\n\t\tsuper(host, args);\n\t}\n\n\toverride async execute() {\n\t\tconst eventContext = await this.getContext(UMB_ACTION_EVENT_CONTEXT);\n\n\t\teventContext.dispatchEvent(\n\t\t\tnew UmbRequestReloadChildrenOfEntityEvent({\n\t\t\t\tunique: this.args.unique,\n\t\t\t\tentityType: this.args.entityType,\n\t\t\t}),\n\t\t);\n\t}\n}\n\nexport { UmbReloadTreeItemChildrenEntityAction as api };\n"],"names":["UmbReloadTreeItemChildrenEntityAction","UmbEntityActionBase","host","args","UMB_ACTION_EVENT_CONTEXT","UmbRequestReloadChildrenOfEntityEvent"],"mappings":";;AAMO,MAAMA,UAA8CC,EAAgE;AAAA,EAC1H,YAAYC,GAAyBC,GAAuE;AAC3G,UAAMD,GAAMC,CAAI;AAAA,EACjB;AAAA,EAEA,MAAe,UAAU;AAGX,KAFQ,MAAM,KAAK,WAAWC,CAAwB,GAEtD;AAAA,MACZ,IAAIC,EAAsC;AAAA,QACzC,QAAQ,KAAK,KAAK;AAAA,QAClB,YAAY,KAAK,KAAK;AAAA,MAAA,CACtB;AAAA,IAAA;AAAA,EAEH;AACD;"}