"use strict";(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1297],{61297:function(v,o,l){l.r(o),l.d(o,{CatalogSearchResultListItem:function(){return g}});var t=l(31085),T=l(14041),c=l(10394),a=l(67720),r=l(46423),m=l(5951),x=l(72501),h=l(58837),y=l(72072),d=l(70734);const f=(0,h.A)({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.A,{children:typeof s.icon=="function"?s.icon(e):s.icon}),(0,t.jsxs)("div",{className:n.flexContainer,children:[(0,t.jsx)(m.A,{className:n.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,t.jsx)(y.N_,{noTrack:!0,to:e.location,children:i!=null&&i.fields.title?(0,t.jsx)(d.e,{text:i.fields.title,preTag:i.preTag,postTag:i.postTag}):e.title}),secondary:(0,t.jsx)(x.A,{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)(d.e,{text:i.fields.text,preTag:i.preTag,postTag:i.postTag}):e.text})}),(0,t.jsxs)(c.A,{children:[e.kind&&(0,t.jsx)(a.A,{label:`Kind: ${e.kind}`,size:"small"}),e.type&&(0,t.jsx)(a.A,{label:`Type: ${e.type}`,size:"small"}),e.lifecycle&&(0,t.jsx)(a.A,{label:`Lifecycle: ${e.lifecycle}`,size:"small"}),e.owner&&(0,t.jsx)(a.A,{label:`Owner: ${e.owner}`,size:"small"})]})]})]}):null}}}]);})();

//# sourceMappingURL=1297.cdfd490e.chunk.js.map