"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[452],{50452:function(v,c,l){l.r(c),l.d(c,{CatalogSearchResultListItem:function(){return g}});var t=l(77e3),T=l(85668),d=l(40476),r=l(62579),m=l(46444),x=l(94700),h=l(33584),a=l(84480),y=l(38280),o=l(45776);const f=(0,d.c)({item:{display:"flex"},flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}},{name:"CatalogSearchResultListItem"});function g(s){const e=s.result,i=s.highlight,n=f();return e?(0,t.jsxs)("div",{className:n.item,children:[s.icon&&(0,t.jsx)(r.c,{children:typeof s.icon=="function"?s.icon(e):s.icon}),(0,t.jsxs)("div",{className:n.flexContainer,children:[(0,t.jsx)(m.c,{className:n.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,t.jsx)(y.cH,{noTrack:!0,to:e.location,children:i!=null&&i.fields.title?(0,t.jsx)(o.e,{text:i.fields.title,preTag:i.preTag,postTag:i.postTag}):e.title}),secondary:(0,t.jsx)(x.c,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s.lineClamp,overflow:"hidden"},color:"textSecondary",variant:"body2",children:i!=null&&i.fields.text?(0,t.jsx)(o.e,{text:i.fields.text,preTag:i.preTag,postTag:i.postTag}):e.text})}),(0,t.jsxs)(h.c,{children:[e.kind&&(0,t.jsx)(a.c,{label:`Kind: ${e.kind}`,size:"small"}),e.type&&(0,t.jsx)(a.c,{label:`Type: ${e.type}`,size:"small"}),e.lifecycle&&(0,t.jsx)(a.c,{label:`Lifecycle: ${e.lifecycle}`,size:"small"}),e.owner&&(0,t.jsx)(a.c,{label:`Owner: ${e.owner}`,size:"small"})]})]})]}):null}}}]);})();

//# sourceMappingURL=452.b9390e9c.chunk.js.map