import{u as l,R as r,j as o,b7 as p,ag as s,b as m}from"./app-BgLa5dit.js";import{c,g as h,W as u,b as V}from"./BwfkiyJS.chunk.js";import{W}from"./S1bUYSnw.chunk.js";import{W as x}from"./MEkA24R1.chunk.js";import{u as b}from"./CKjyFQLY.chunk.js";import"./B3eOBVf8.chunk.js";import"./3nM7jLnE.chunk.js";import"./CPXlV0fg.chunk.js";import"./DJ0pq8J_.chunk.js";import"./C53kfXmd.chunk.js";import"./CG7zbly5.chunk.js";const y={[s.Video]:c.VIDEO_VIEW_MODEL_KEY,[s.Playlist]:c.PLAYLIST_VIEW_MODEL_KEY},E={[s.Video]:"infoVideo",[s.Playlist]:"infoPlaylist"},d="workbench.wizardSelectAction";function f(e){const[t,i]=l(y[e.type]),{setDisableNext:n}=r.useContext(x);return r.useEffect(()=>{n(!(t!=null&&t.action))},[t==null?void 0:t.action]),o.jsxs("div",{children:[o.jsx("h2",{className:"h4",children:o.jsx(p,{namespace:d,phrase:"heading"})}),o.jsx("p",{children:o.jsx(p,{namespace:d,phrase:E[e.type],options:{smartCount:e.objectCount}})}),o.jsx(W,{options:e.actions,setOption:a=>i("action",a),selectedAction:t==null?void 0:t.action})]})}function z(e){const{workingList:t}=b(e.listId),{hasPermissions:i}=m(),n=h(e.listId),a=u.getActionOptions(s.Video,i);return o.jsx(V,{listId:e.listId,viewModelKey:c.VIDEO_VIEW_MODEL_KEY,currentStep:"select-action",appLinks:n,type:s.Video,children:o.jsx(f,{objectCount:t==null?void 0:t.length,type:s.Video,actions:a})})}export{z as WorkbenchVideoSelectActionView};
//# sourceMappingURL=BNsQDomY.chunk.js.map
