import{c4 as b,bc as h,az as l,ao as t,L as S,aq as f,aV as g,m as x,o as P,W as v,E as I,r as y,p as C}from"./app-k0jcl5PQ.js";import{C as j}from"./CXr58ipf.chunk.js";import{a as o,S as w}from"./6pQ09KdH.chunk.js";import"./80MCcucU.chunk.js";const r="shared.deleteSubtitleView",s=S.encloseNamespace(r);function V(e){var c;const u=b(),a=h(),i=l(o.subtitle(e.subtitleId)),n=l(o.videoSubtitles(e.videoId));function d(){const p=()=>{a.success(s("success")),P.logUserAction({id:e.subtitleId,parentId:e.videoId},{location:C.Popup,actionType:y.Delete,entity:I.Subtitle,workflowPhase:v.Complete})},m=()=>a.error(s("error"));x(u,o.deleteSubtitle(e.subtitleId,e.videoId,p,m,e.closePopup))}return t.jsx(j,{title:s("heading"),confirmButtonText:s("remove"),confirmButtonVariant:"danger",onClickConfirm:d,closePopup:e.closePopup,children:i.data&&n.data?t.jsx("p",{children:t.jsx(f,{namespace:r,phrase:"body",options:{language:w.getEnglishName(i.data,(c=n.data)==null?void 0:c.data)}})}):t.jsx(g,{})})}export{V as DeleteSubtitleView};
//# sourceMappingURL=DXKaOwvI.chunk.js.map
