import{r as p,p as s,i as a,j as o,o as m}from"./index-CCv_8omK.js";import{T as c,M as n,t as u}from"./table-icons-DHCKcouf.js";import"./FilterList-xUYmSJ-Y.js";import"./CSSTransition-Cf_KzaPo.js";import"./emotion-cache.browser.esm-CdT-VIlA.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-rR8pKw9W.js";import"./redux-DfszZyTl.js";import"./useThemeProps-CRd6upHX.js";import"./html-title-xzTyg8m0.js";import"./Add-l7OvfXrD.js";import"./url-evaluation-B5iexDQo.js";import"./Clear-Cz6Yzx0g.js";import"./Edit-HxzEBQ9h.js";import"./ChevronRight-CV3PmYHH.js";import"./ChevronLeft-OivB2aTv.js";import"./Search-3L2yy5pr.js";import"./ArrowDropDown-Br_oPfQI.js";function d({blocklet:i,...r}){const{t}=p.useContext(s),e=a.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const l=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:l,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:m.object.isRequired};export{d as default};
