import{aA as n,dg as o,h as r,i as l,j as c,dd as p}from"./app-BgLa5dit.js";import{C as A}from"./BfMtaC_g.chunk.js";const u=n.object().shape({name:n.string().trim().max(255,"Name is too long").required("Name is required").default(""),description:n.string().trim().max(16e3,"Description is too long").default(""),cover:o,banner:o,metadata:n.object().shape({playlistId:n.string(),internalDescription:n.string().trim().max(255,"Description is too long").default("").nullable()}).default({}).noUnknown()}).noUnknown(),L={getEditPlaylistTabs(s,a){const i=l.PLAYLISTS,t=r.Playlists,e=[{label:"Edit Playlist Details",appLink:{application:i,action:t.EDIT_PLAYLIST,args:[a]}},{label:"Curation",appLink:{application:i,action:t.EDIT_PLAYLIST_CURATION,args:[a]}},{label:"Videos",appLink:{application:i,action:t.EDIT_PLAYLIST_VIDEOS,args:[a]}},{label:"Dashboards",appLink:{application:i,action:t.EDIT_PLAYLIST_DASHBOARDS,args:[a]}},{label:"Alias",appLink:{application:i,action:t.EDIT_PLAYLIST_ALIASES,args:[a]}}];return A.hasSubjectsAccess(s)&&e.push({label:"Topics",appLink:{application:i,action:t.EDIT_PLAYLIST_SUBJECTS,args:[a]}},{label:"Audiences",appLink:{application:i,action:t.EDIT_PLAYLIST_AUDIENCES,args:[a]}}),e}},m=s=>a=>a.appLink.action===s;function E(s){return c.jsx("div",{className:"py-2",children:c.jsx(p,{tabs:L.getEditPlaylistTabs(s.currentUser,s.playlistId),isItemActive:m(s.activeAction)})})}export{E,u as P};
//# sourceMappingURL=Btd5W0GW.chunk.js.map
