import{a as e}from"./rolldown-runtime-BYbx6iT9.js";import{f as t,n,r}from"./button-V4IQ8FFq.js";import{Ca as i,Fa as a,Pa as o}from"./vendor-react-Dj1rnUQ4.js";var s=e(a(),1),c=o();function l({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`card`,className:n(`bg-card text-card-foreground flex flex-col gap-6 rounded-xl  py-4 shadow-deep`,e),...t})}function u({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`card-header`,className:n(`flex flex-col gap-1.5 px-6`,e),...t})}function d({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`card-title`,className:n(`leading-none text-lg`,e),...t})}function f({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`card-description`,className:n(`text-muted-foreground text-xs`,e),...t})}function p({className:e,...t}){return(0,c.jsx)(`div`,{"data-slot":`card-content`,className:n(`px-6`,e),...t})}function m(e){return!!e}function h(e={}){let{instanceId:n,clusterId:a}=i({strict:!1});return t({id:r,...e})}function g(e={}){let{instanceId:n,clusterId:a}=i({strict:!1});return{instanceClient:t({id:r,...e}),entityType:`instance`}}function _(e={}){let{instanceId:t,clusterId:n}=i({strict:!1});return(0,s.useMemo)(()=>v({instanceId:t,clusterId:n,...e}),[e.instanceId??t,e.clusterId??n,e.operationsUrl,e.port,e.secure,e.disableFabricConnect,e.forceFabricConnect])}function v({instanceId:e,clusterId:n,...i}){let a=r;if(!a)throw Error(`id could not be automatically calculated in useInstanceClientIdParams`);return{instanceClient:t({id:a,...i}),entityId:a,entityType:`instance`}}export{m as a,f as c,g as i,u as l,h as n,l as o,_ as r,p as s,v as t,d as u};
//# sourceMappingURL=useInstanceClient-CdXj_Str.js.map