import{b0 as n,bc as d,cu as p,az as u,aI as m,ao as c,L as f}from"./app-k0jcl5PQ.js";import{R as l}from"./BpIVHcUT.chunk.js";const v="videoAccess.approveVideo",r=f.encloseNamespace(v);function V(s){const t=n(),a=d(),o=p.getVideoRequest(s.objectId,s.objectTypeId),e=u(o);async function i(){try{await t(l.deleteRestrictions(e.data.id)),await t(o),a.success(r("approved",{name:e.data.name}))}catch{a.error(r("error"))}s.closePopup()}return m.useEffect(()=>{e.hasCompleted&&i()},[e.hasCompleted]),c.jsx(c.Fragment,{})}export{V as ApproveVideoView};
//# sourceMappingURL=jKz9r9cW.chunk.js.map
