import{R as l,k as b,o as v,S as T,b as S,a4 as _,j as t,ar as M,h as e,i,dn as E,dp as g,D as f}from"./app-BgLa5dit.js";import{u as x}from"./ekVIVtrT.chunk.js";import{D as p}from"./BE59vaMU.chunk.js";import{D as V}from"./BYqcacqE.chunk.js";import"./KIVqng-q.chunk.js";import"./0GREfvNX.chunk.js";import"./JAv_fVmZ.chunk.js";import"./B5-QmNlz.chunk.js";import"./CTg_3F42.chunk.js";import"./DEF_vJGe.chunk.js";import"./CGQPfl0D.chunk.js";function F(n){const[o,c]=l.useState(!0),r=b();function d(s){return p.dashboards({targetType:f.MoviesAndTv,presentationId:n.presentationId},o,s)}function A(s){r(d(s))}const D=x(d,A),a=v(T.presentation(n.presentationId)),{hasPermissions:h}=S();function m(s){return r(p.updateDashboard(s.id,s))}const u=h(_.MoviesAndTvDashboardStatusUpdate);return a.data?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"mt-3",children:[t.jsx("h6",{children:`Presentation: ${a.data.name}`}),t.jsx("p",{children:a.data.description})]}),t.jsx(V,{presentation:a.data,dashboards:D.items,onStatusChange:m,canPublish:u,columns:E.getColumnSet(g.MoviesAndTvDashboard),filterArchivedDashboards:o,setFilterArchivedDashboards:c,getEditDetailsAppLink:s=>({application:i.MOVIES_AND_TV,action:e.MoviesAndTv.EDIT_MOVIES_AND_TV_DASHBOARD_DETAILS,args:[s]}),getDeleteAppLink:s=>({application:i.MOVIES_AND_TV,action:e.MoviesAndTv.DELETE_DASHBOARD,args:[s]}),getNewDashboardAppLink:()=>({application:i.MOVIES_AND_TV,action:e.MoviesAndTv.NEW_MOVIES_AND_TV_DASHBOARD,args:[n.presentationId]}),getCopyDashboardAppLink:s=>({application:i.MOVIES_AND_TV,action:e.MoviesAndTv.COPY_DASHBOARD,args:[s]})})]}):t.jsx("div",{className:"text-center py-3",children:t.jsx(M,{as:"div",animation:"border",role:"status"})})}export{F as EditMoviesAndTvDashboardListView};
//# sourceMappingURL=ByoRo8SA.chunk.js.map
