import{r as p,p as s,aT as a,j as o,o as m}from"./index-DK1weAVh.js";import{T as c,M as n,t as u}from"./table-icons-D5LY3n1w.js";import"./FilterList-p6kDbEGW.js";import"./CSSTransition-4OA_b1hH.js";import"./emotion-cache.browser.esm-2SgdZYqN.js";import"./index-CVhk080O.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-DG5F9Ew6.js";import"./redux-Ab4buSXY.js";import"./useThemeProps-DTKqlZV6.js";import"./html-title-B20HrAqv.js";import"./Add-BJYo1IJ0.js";import"./Delete-CrX5iV9g.js";import"./Clear-4fzqk6Yq.js";import"./Edit-C7V3y1W5.js";import"./ChevronRight-C0WYG7p4.js";import"./ChevronLeft-bzUFUS6Y.js";import"./Search-R5yJ7X6L.js";import"./ArrowDropDown-CSHxqu54.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};
