import{j as o,b1 as i,L as n,ap as p,p as c,B as j,z as b,A as l,f4 as y,f5 as g,f6 as u,P,Q as t}from"./index-46ma1THH.js";const K={height:"16px",overflow:"hidden",display:"inline-block",svg:{mr:"9px",height:"inherit !important",width:"inherit !important",path:{fill:"primary"}}},h=({icon:s,iconSize:e,children:r,...a})=>o.jsxs(i,{type:"button",intent:"secondary",...a,children:[o.jsx(n,{sx:K,children:o.jsx(p,{icon:s,size:e,height:"inherit"})}),r]});y(g,[u("name"),u("defaultValue")]);const d=(s,e)=>c(b(l("key",e)),j("No such option","text"))(s),m=s=>e=>e?parseInt(e,10):s,q=s=>e=>{if(!e)return s;const r=parseFloat(e);return Number.isNaN(r)?s:r},T=P.injectEndpoints({endpoints:s=>({getProjectKubeLabels:s.query({query:({id:e})=>({url:`project/${e}/kube/label`}),providesTags:[t.ProjectTags.KubernetesLabels]}),getProjectKubePriorityClasses:s.query({query:({id:e})=>({url:`project/${e}/kube/priorityclass`}),providesTags:[t.ProjectTags.KubernetesPriorityClasses]}),getProjectKubeQueues:s.query({query:({id:e})=>({url:`project/${e}/kube/queue`}),providesTags:[t.ProjectTags.KubernetesQueues]}),getProjectKubeClusterInfo:s.query({query:({id:e})=>({url:`project/${e}/kube/clusterinfo`}),providesTags:[t.ProjectTags.KubernetesClusterInfo]}),getProjectKubeNamespaceInfo:s.query({query:({id:e})=>({url:`project/${e}/kube/namespaceinfo`}),providesTags:[t.ProjectTags.KubernetesNamespaceInfo]}),setProjectKubeBase:s.mutation({query:({id:e,baseLabels:r,basePriorityClass:a})=>({url:`project/${e}/kube/base`,method:"post",data:{value:{priorityClass:a,labels:r}}}),invalidatesTags:[t.ProjectTags.KubernetesPriorityClasses,t.ProjectTags.KubernetesLabels]}),getProjectQueueUtilization:s.query({query:({id:e})=>({url:`project/${e}/kube/queueutilization`}),providesTags:[t.ProjectTags.QueueUtilization]})}),overrideExisting:!0}),{useGetProjectKubeLabelsQuery:Q,useGetProjectKubePriorityClassesQuery:x,useGetProjectKubeQueuesQuery:k,useSetProjectKubeBaseMutation:v,useGetProjectKubeClusterInfoQuery:I,useGetProjectKubeNamespaceInfoQuery:C,useGetProjectQueueUtilizationQuery:z}=T;export{h as P,q as a,Q as b,v as c,k as d,I as e,C as f,z as g,d as h,m as p,x as u};
