import{aI as u,b0 as h,bc as x,ao as s,aF as A,L as d,aq as t,ba as j,f as m,e as S,bU as o,du as f}from"./app-k0jcl5PQ.js";import{R as g}from"./BpIVHcUT.chunk.js";const a="settings.approveAllVideos",e=d.encloseNamespace(a);function R(n){const[i,c]=u.useState(!1),r=h(),p=x();async function l(){c(!0);try{await r(g.approveAll()),p.success(e("success")),f.Reload()}catch{p.error(e("error")),c(!1)}}return s.jsxs(A,{title:e("heading"),closePopup:n.closePopup,children:[s.jsx("p",{children:s.jsx(t,{namespace:a,phrase:"message1"})}),s.jsxs("p",{children:[s.jsx(t,{namespace:a,phrase:"message2"})," ",s.jsxs(j,{className:"info-link",appLink:{application:S.SETTINGS,action:m.Settings.CONTENT_REVIEW_SETTINGS},onClick:n.closePopup,children:[s.jsx(t,{namespace:a,phrase:"contentReviewAppLink"})," "]})]}),s.jsxs(o,{children:[s.jsx(o.Cancel,{onClick:n.closePopup}),s.jsx(o.Submit,{variant:"dark",text:e("approveAll"),showSpinner:i,onClick:l})]})]})}export{R as ApproveAllVideosView};
//# sourceMappingURL=CZSi01_i.chunk.js.map
