import{r as m}from"./vendor-react-DX7tU9aY.js";import{W as n}from"./vendor-ux-bFYdDLNG.js";import{V as l,X as p,a6 as c,n as u}from"./index-DGZk149v.js";import{a as x,b as d}from"./domain-action-card-wQgjy9eZ.js";import{j as t,al as k,b3 as f,b4 as h}from"./vendor-mui-core-CDEc-eG6.js";import"./vendor-utils-_C9URqjS.js";import"./vendor-hooks-BrgYeCrj.js";import"./vendor-arcblock-DY2miJjh.js";import"./useSetState-CUbypYGT.js";import"./permission-CHcv6SG1.js";import"./session-Dxo7LCKC.js";import"./useAsyncRetry-kBH3fTKD.js";import"./useAsync-BX-TBPoq.js";import"./confirm-o5NpDvNJ.js";import"./index-DBs9Ljax.js";import"./actions-C6EeERSU.js";import"./delete-confirm-DS9-TjyF.js";import"./click-to-copy-CH2KjgKM.js";import"./use-mobile-DKWj9MJD.js";import"./useAsync-yWNVe4yE.js";import"./index-DqSGl7ap.js";import"./util-BVpHGu1Y.js";import"./engine-B4Mxizj3.js";function G(){const{blocklet:o,actions:{updateBlockletDomainAliases:i}}=l(),{inService:r}=p(),{t:e}=n(),a=m.useMemo(()=>{let s=!0;return c(o)&&(s=s&&r),s},[r,o]);return t.jsxs(k,{component:f,sx:{gap:3,maxWidth:820},children:[t.jsxs(t.Fragment,{children:[u.isAccessible(o.status)===!1&&t.jsx(h,{severity:"warning",children:e("blocklet.router.noRunning")}),a&&t.jsx(x,{blocklet:o,updateBlockletDomainAliases:i,connectDomainProps:{shouldCheckDomain:!0}})]}),t.jsx(d,{showAllDomains:!0,updateBlockletDomainAliases:i})]})}export{G as default};
