import{bH as b,bF as y,j as t,m as p,B as n,bK as u,ar as c,bt as x,as as w,Z as j,aZ as d}from"./index-dP1W1_bd.js";const l=({data:e,title:a,tooltip:r,isFetching:o})=>{let i,s;return Array.isArray(e)?(s=!0,i=(e??[]).join("")):(s=!1,i=[e??""].join("")),t.jsxs(n,{gap:"20px",flexDirection:"column",flex:"1",width:"100%",children:[t.jsxs(n,{flexDirecton:"row",children:[t.jsx(u,{children:a}),t.jsx(c,{position:x.right,mainText:r,children:t.jsx(w,{ml:"5px",size:"xs",icon:j.info_block})})]}),t.jsx(d,{disabled:!0,isMulti:s,value:e,options:[],placeholder:"",onChange:function(f){},preventAdding:!0,isLoading:o},i)]})},m=({schedulingConfig:e})=>{const a=e!=null&&e.kubeNodeSelectorLabels?b([],e.kubeNodeSelectorLabels):[],r=e!=null&&e.kubeNodeAntiAffinityLabels?b([],e.kubeNodeAntiAffinityLabels):[],o=e!=null&&e.kubePriorityClass?y([],[e.kubePriorityClass]):[];return t.jsx(p,{title:"Scheduler",width:"100%",children:t.jsxs(n,{width:"100%",gap:"20px",flexDirection:"column",children:[t.jsx(l,{data:a,title:"Node affinity",tooltip:"Job will run on a node with any of the following labels. Available Labels are configured by a Hopsworks Admin. If you require the use of a particular Label, not currently available in your project, contact a Hopsworks Admin."}),t.jsx(l,{data:r,title:"Node anti affinity",tooltip:"Job will run on a node that does not have any of the following labels. Available Labels are configured by a Hopsworks Admin. If you require the use of a particular Label, not currently available in your project, contact a Hopsworks Admin."}),t.jsx(l,{data:o,title:"Priority class",tooltip:"Job will run with this priority class. Available Priority Classes are configured by a Hopsworks Admin. If you require the use of a particular Priority Class, not currently available in your project, contact a Hopsworks Admin."})]})})};export{m as K};
