import{c4 as l,bc as p,az as m,ao as o,L as f,aq as h,aV as x,m as P,o as R,W as g,E as y,r as C,p as I}from"./app-k0jcl5PQ.js";import{C as j}from"./CXr58ipf.chunk.js";import{R as a}from"./DDerB2uY.chunk.js";const c="shared.deleteResourceView",s=f.encloseNamespace(c);function E(e){const n=l(),t=p(),r=m(a.resource(e.resourceId));function i(){const u=()=>{t.success(s("success")),R.logUserAction({id:e.resourceId,parentId:e.videoId},{location:I.Popup,actionType:C.Delete,entity:y.Resource,workflowPhase:g.Complete})},d=()=>t.error(s("error"));P(n,a.deleteResource(e.resourceId,e.videoId,u,d,e.closePopup))}return o.jsx(j,{title:s("heading"),confirmButtonText:s("remove"),confirmButtonVariant:"danger",onClickConfirm:i,closePopup:e.closePopup,children:r.data?o.jsx("p",{children:o.jsx(h,{namespace:c,phrase:"body",options:{name:r.data.name}})}):o.jsx(x,{})})}export{E as DeleteResourceView};
//# sourceMappingURL=CwRbFM9I.chunk.js.map
