import{r as m}from"./vendor-react-DX7tU9aY.js";import{aa as n}from"./vendor-ux-PO0jFgJf.js";import{V as l,X as p,a6 as c,n as u}from"./index-DcM4ljaV.js";import{a as x,b as d}from"./domain-action-card-D9LF4Rpy.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-Ca2cSNuD.js";import"./vendor-arcblock-BVQTtbN-.js";import"./useSetState-CUbypYGT.js";import"./permission-CiRkLVwn.js";import"./session-D6Z4R7oi.js";import"./useAsyncRetry-DOQg_SXs.js";import"./useAsync-10WR8h3k.js";import"./confirm-BMWka5pp.js";import"./index-DBs9Ljax.js";import"./actions-C6EeERSU.js";import"./delete-confirm-CwOFci6r.js";import"./click-to-copy-BmatCVrP.js";import"./use-mobile-DKWj9MJD.js";import"./useAsync-DQXF8Gyy.js";import"./index-BEbBg3NW.js";import"./util-C7ejGMZd.js";import"./engine-CvxZhwAf.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};
