import{dk as d,l,o as u,j as s,dO as m,F as p,b7 as g}from"./app-BgLa5dit.js";import{D as i}from"./BE59vaMU.chunk.js";import"./KIVqng-q.chunk.js";const n="dashboardEditor.deleteWidgetView",t=p.encloseNamespace(n);function w(e){const c=d(),o=l(),a=u(i.widget(e.widgetId));function r(){c(i.deleteWidget(e.widgetId,()=>o.success(t("deleteSuccess")),()=>o.error(t("deleteError")),e.closePopup))}return s.jsx(m,{title:t("title"),onClickConfirm:r,closePopup:e.closePopup,confirmButtonText:t("confirmButtonText"),confirmButtonVariant:"danger",children:a.data&&s.jsx("div",{className:"pb-3",children:s.jsx(g,{namespace:n,phrase:"body",options:{escapeText:!0,name:a.data.name}})})})}export{w as DeleteWidgetView};
//# sourceMappingURL=Cru6wUMA.chunk.js.map
