/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements.
 * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */
(window.aiops_bundle_jsonpfunction=window.aiops_bundle_jsonpfunction||[]).push([[18],{173:function(e,t,n){"use strict";n.r(t),n.d(t,"registerAiopsUiActions",(function(){return r}));var i=n(4),a=n(11),o=n(30),s=n(5);const c="editChangePointChartsPanelAction";function r(e,t){const r=(d=t.getStartServices,{id:"edit-change-point-charts",type:c,getIconType:e=>"pencil",getDisplayName:()=>a.i18n.translate("xpack.aiops.actions.editChangePointChartsName",{defaultMessage:"Edit change point charts"}),async execute({embeddable:e}){if(!e)throw new Error("Not possible to execute an action without the embeddable context");const[t,i]=await d();try{const{resolveEmbeddableChangePointUserInput:a}=await Promise.all([n.e(0),n.e(4),n.e(10)]).then(n.bind(null,172)),o=await a(t,i,e.getInput());e.updateInput(o)}catch(e){return Promise.reject()}},isCompatible:async({embeddable:e})=>e.type===s.c&&e.getInput().viewMode===o.ViewMode.EDIT});var d;e.registerAction(r),e.attachAction(i.CONTEXT_MENU_TRIGGER,r.id)}}}]);