{"version":3,"file":"property-action-copy.controller-BgmuAReg.js","sources":["../../../src/packages/core/property-action/common/copy/property-action-copy.controller.ts"],"sourcesContent":["import { UmbPropertyActionBase } from '../../components/property-action/property-action-base.controller.js';\nimport { UMB_NOTIFICATION_CONTEXT, type UmbNotificationDefaultData } from '@umbraco-cms/backoffice/notification';\nimport { UMB_PROPERTY_CONTEXT } from '@umbraco-cms/backoffice/property';\n\nexport class UmbCopyPropertyAction extends UmbPropertyActionBase {\n\toverride async execute() {\n\t\tconst propertyContext = await this.getContext(UMB_PROPERTY_CONTEXT);\n\t\tconst value = propertyContext.getValue();\n\n\t\tconst notificationContext = await this.getContext(UMB_NOTIFICATION_CONTEXT);\n\t\t// TODO: Temporary solution to make something happen: [NL]\n\t\tconst data: UmbNotificationDefaultData = { headline: 'Copied to clipboard', message: value };\n\t\tnotificationContext?.peek('positive', { data });\n\t}\n}\nexport default UmbCopyPropertyAction;\n"],"names":["UmbCopyPropertyAction","UmbPropertyActionBase","value","UMB_PROPERTY_CONTEXT","notificationContext","UMB_NOTIFICATION_CONTEXT","data"],"mappings":";;;AAIO,MAAMA,UAA8BC,EAAsB;AAAA,EAChE,MAAe,UAAU;AAElB,UAAAC,KADkB,MAAM,KAAK,WAAWC,CAAoB,GACpC,YAExBC,IAAsB,MAAM,KAAK,WAAWC,CAAwB,GAEpEC,IAAmC,EAAE,UAAU,uBAAuB,SAASJ,EAAM;AAC3F,IAAAE,GAAqB,KAAK,YAAY,EAAE,MAAAE,EAAM,CAAA;AAAA,EAC/C;AACD;"}