import{j as t,b7 as n,ag as i,o as m}from"./app-BgLa5dit.js";import{W as h,a as b,g as j,b as u,c as W}from"./BwfkiyJS.chunk.js";import{W as v}from"./D8ca7W7r.chunk.js";import{W as w}from"./CnYYY4AA.chunk.js";import{u as x}from"./CKjyFQLY.chunk.js";import"./B3eOBVf8.chunk.js";import"./3nM7jLnE.chunk.js";import"./CPXlV0fg.chunk.js";import"./MEkA24R1.chunk.js";import"./DJ0pq8J_.chunk.js";import"./C53kfXmd.chunk.js";import"./CG7zbly5.chunk.js";const r="workbench.bulkActionsReview",g={[i.Video]:"reviewSelectedVideo",[i.Playlist]:"reviewSelectedPlaylist"},k={[i.Video]:"selectedVideo",[i.Playlist]:"selectedPlaylist"};function y(e){return t.jsxs("div",{className:"pb-3",children:[!(e!=null&&e.hideHeading)&&t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"h4",children:t.jsx(n,{namespace:r,phrase:g[e.type],options:{smartCount:e.objects.length}})}),typeof e.objects.length=="number"&&t.jsx("p",{className:"fw-semibold",children:t.jsx(n,{namespace:r,phrase:k[e.type],options:{smartCount:e.objects.length}})})]}),t.jsx(v,{items:e.objects,rowHeight:b,getComponent:o=>h.getItemComponent(o,e.type,e.removeObject)})]})}function O(e){const o=j(e.listId),{workingList:a,removeFromWorkingList:c}=x(e.listId),s=m(w.videosById(a));function d(l){c(l.id,e.listId,null,{noAlert:!0})}return t.jsx(u,{listId:e.listId,loaded:!!s.data,viewModelKey:W.VIDEO_VIEW_MODEL_KEY,currentStep:"review",appLinks:o,type:i.Video,children:!!s.data&&t.jsx(y,{type:i.Video,objects:s.data,removeObject:d})})}export{O as WorkbenchVideoReviewView};
//# sourceMappingURL=CAkvz1Pi.chunk.js.map
