import{aJ as i,e as o,i as s,de as p,h as n,af as r,a7 as l,a8 as u}from"./app-BgLa5dit.js";const d={getClipActions:(a,e)=>{const t=[];return a.status===i.Draft&&(t.push({label:"Open in Content Pipeline",svg:p,appLink:{application:s.ASSEMBLY_LINE,action:o.mapStageToAction(e==null?void 0:e.stage),params:{query:a.id}},button:!0,disabled:!e,tooltip:e?"":"Clip is not in the content pipeline",className:"btn btn-outline-dark me-2",openInNewTab:!0}),t.push({label:"Publish",appLink:null,button:!0,className:"btn btn-dark me-2",disabled:!0,tooltip:"Clips can only be published through the content pipeline"}),t.push({label:"Open parent video",appLink:{application:s.VIDEOS,action:n.Videos.EDIT_VIDEO,args:[a._parentVideo.id]},button:!1}),t.push({label:"Delete clip",appLink:{application:s.CLIPS,action:n.Clips.DELETE_CLIP,args:[a.id]},button:!1,className:"text-danger"})),a.status===i.Published&&(t.push({label:"Open in Content Pipeline",svg:p,appLink:{application:s.ASSEMBLY_LINE,action:o.mapStageToAction(e==null?void 0:e.stage),params:{query:a.id.toString()}},button:!0,disabled:!e,tooltip:e?"":"Clip is not in the content pipeline",className:"btn btn-outline-dark me-2",openInNewTab:!0}),t.push({label:"Open in ClickView",href:l.safeUrlConcat(ClickView.Config.Urls.LiteUrl,`clips/${a.id}/${u.slugify(a.name)}`),openInNewTab:!0,className:"btn btn-outline-dark me-2",svg:r,button:!0}),t.push({label:"Open parent video",appLink:{application:s.VIDEOS,action:n.Videos.EDIT_VIDEO,args:[a._parentVideo.id]},button:!1}),t.push({label:"Archive clip",appLink:{application:s.CLIPS,action:n.Clips.ARCHIVE_CLIP,args:[a.id]},className:"text-danger",button:!1})),a.status===i.Archived&&(t.push({appLink:{application:s.CLIPS,action:n.Clips.PUBLISH_CLIP,args:[a.id]},className:"btn btn-dark me-2",button:!0,label:"Republish clip"}),t.push({label:"Open parent video",appLink:{application:s.VIDEOS,action:n.Videos.EDIT_VIDEO,args:[a._parentVideo.id]},button:!1})),t}};export{d as C};
//# sourceMappingURL=BHQAWhAu.chunk.js.map
