import{j as s}from"./index-6605a014.js";import{r as x}from"./react-e45097e1.js";import{D as I,y as S,w as v,z as P,x as w}from"./Author-826c76c5.js";import"./antd-6dbc138d.js";function u({children:p}){var o,c;const{assetUri:l,convertData:f}=I(),n=S(),r=v(),e=P(),t=w(),y={display:"flex",flexDirection:"row",alignItems:"center",...t.header},d={display:"flex",flexDirection:"column",...t.frame},a={...t.title},m={display:"flex",...t.prefix},h={height:30,...t.prefixImg},j={color:"rgba(0, 0, 0, .85)",...t.suffix};x.useEffect(()=>{n.children.forEach(i=>{i.setOverlayStyles({"default.width":"100%","default.flex":1})})},[n]);const g=x.useMemo(()=>{var i;if((i=e.prefix)!=null&&i.src)return l&&f&&l(f(e.prefix.src,!0))},[(o=e.prefix)==null?void 0:o.src]);return s.jsxs("div",{className:"fill-up",style:d,children:[s.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",...y},children:[e.prefix?s.jsxs("div",{style:m,children:[s.jsx("img",{style:h,src:g}),r?s.jsxs("div",{style:a,children:[r||""," "]}):null]}):r?s.jsxs("div",{style:a,children:[r||""," "]}):null,e.suffix?s.jsx("a",{style:j,href:e.suffix.uri,children:((c=e.suffix)==null?void 0:c.name)||"查看更多>"}):null]}),p]})}u.title="面板";u.isLayoutable=!0;export{u as default};
