import{j as o,aJ as a,F as i,ao as n,M as c,O as r}from"./index-C6OVXshM.js";const p={height:"16px",overflow:"hidden",display:"inline-block",svg:{mr:"9px",height:"inherit !important",width:"inherit !important",path:{fill:"primary"}}},y=({icon:t,iconSize:e,children:s,...u})=>o.jsxs(a,{type:"button",intent:"secondary",...u,children:[o.jsx(i,{sx:p,children:o.jsx(n,{icon:t,size:e,height:"inherit"})}),s]}),j=c.injectEndpoints({endpoints:t=>({getProjectKubeLabels:t.query({query:({id:e})=>({url:`project/${e}/kube/label`}),providesTags:[r.ProjectTags.KubernetesLabels]}),getProjectKubePriorityClasses:t.query({query:({id:e})=>({url:`project/${e}/kube/priorityclass`}),providesTags:[r.ProjectTags.KubernetesPriorityClasses]}),getProjectKubeQueues:t.query({query:({id:e})=>({url:`project/${e}/kube/queue`}),providesTags:[r.ProjectTags.KubernetesQueues]}),getProjectKubeClusterInfo:t.query({query:({id:e})=>({url:`project/${e}/kube/clusterinfo`}),providesTags:[r.ProjectTags.KubernetesClusterInfo]}),getProjectKubeNamespaceInfo:t.query({query:({id:e})=>({url:`project/${e}/kube/namespaceinfo`}),providesTags:[r.ProjectTags.KubernetesNamespaceInfo]}),setProjectKubeBase:t.mutation({query:({id:e,baseLabels:s,basePriorityClass:u})=>({url:`project/${e}/kube/base`,method:"post",data:{value:{priorityClass:u,labels:s}}}),invalidatesTags:[r.ProjectTags.KubernetesPriorityClasses,r.ProjectTags.KubernetesLabels]}),getProjectQueueUtilization:t.query({query:({id:e})=>({url:`project/${e}/kube/queueutilization`}),providesTags:[r.ProjectTags.QueueUtilization]})}),overrideExisting:!0}),{useGetProjectKubeLabelsQuery:b,useGetProjectKubePriorityClassesQuery:P,useGetProjectKubeQueuesQuery:g,useSetProjectKubeBaseMutation:K,useGetProjectKubeClusterInfoQuery:T,useGetProjectKubeNamespaceInfoQuery:h,useGetProjectQueueUtilizationQuery:q}=j;export{y as P,b as a,K as b,g as c,T as d,h as e,q as f,P as u};
