import{aI as f,b0 as m,bc as R,ao as e,aF as x,L as h,aq as d,bU as t,du as v}from"./app-k0jcl5PQ.js";import{R as C}from"./BpIVHcUT.chunk.js";import{C as P}from"./Cw9cwr2f.chunk.js";const c="settings.turnOffContentReview",s=h.encloseNamespace(c);function b(n){const[i,o]=f.useState(!1),a=m(),r=R();async function u(){o(!0);try{const l=a(P.deleteLibraryReviewPeriod()),p=a(C.approveAll());await Promise.all([l,p]),r.success(s("success")),v.Reload()}catch{r.error(s("error")),o(!1)}}return e.jsxs(x,{title:s("title"),closePopup:n.closePopup,children:[e.jsx("p",{children:e.jsx(d,{namespace:c,phrase:"message"})}),e.jsxs(t,{children:[e.jsx(t.Cancel,{onClick:n.closePopup}),e.jsx(t.Submit,{variant:"dark",text:s("submit"),onClick:u,showSpinner:i})]})]})}export{b as TurnOffContentReviewView};
//# sourceMappingURL=DwvAzXq9.chunk.js.map
