import{j as o,aG as u,e as i,as as n,T as c,W as r}from"./index-dP1W1_bd.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:h}=l;export{j as P,y as a,g as b,K as c,h as d,P as u};
