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