import{h as E,i as l,j as e,dd as r}from"./app-BgLa5dit.js";import{C as c}from"./BfMtaC_g.chunk.js";const p={getEditVideoTabs(t,a){const s=l.VIDEOS,i=E.Videos;let n=[{label:"Preview Video",appLink:{application:s,action:i.PREVIEW_VIDEO,args:[a]}},{label:"Edit Video Details",appLink:{application:s,action:i.EDIT_VIDEO,args:[a]}},{label:"Glance / POI",appLink:{application:s,action:i.MANAGE_POINTS_OF_INTEREST,args:[a]}},{label:"Resources",appLink:{application:s,action:i.EDIT_VIDEO_RESOURCES,args:[a]}}];return!c.hasSubjectsAccess(t)||(n=n.concat([{label:"Curation",appLink:{application:s,action:i.EDIT_VIDEO_CURATION,args:[a]}},{label:"Topics",appLink:{application:s,action:i.EDIT_VIDEO_SUBJECTS,args:[a]}},{label:"Curated Topics",appLink:{application:s,action:i.EDIT_VIDEO_CURATED_TOPICS,args:[a]}},{label:"Audiences",appLink:{application:s,action:i.EDIT_VIDEO_AUDIENCES,args:[a]}},{label:"Aliases",appLink:{application:s,action:i.EDIT_VIDEO_ALIASES,args:[a]}},{label:"Tags",appLink:{application:s,action:i.EDIT_VIDEO_TAGS,args:[a]}},{label:"Playlists",appLink:{application:s,action:i.EDIT_VIDEO_PLAYLISTS,args:[a]}},{label:"Clips",appLink:{application:s,action:i.EDIT_VIDEO_CLIPS,args:[a]}},{label:"Interactives",appLink:{application:s,action:i.EDIT_VIDEO_INTERACTIVES,args:[a]}}]),!c.isDev(t))||n.push({label:"Curriculums",appLink:{application:s,action:i.EDIT_VIDEO_CURRICULUMS,args:[a]}}),n}},o=t=>a=>a.appLink.action===t;function _(t){const a=p.getEditVideoTabs(t.currentUser,t.videoId);return a.length<2?e.jsx(e.Fragment,{}):e.jsx("div",{className:"py-2",children:e.jsx(r,{tabs:a,isItemActive:o(t.activeAction)})})}export{_ as E};
//# sourceMappingURL=RTbqjc8Y.chunk.js.map
