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