"use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["4498"],{26761(e,t,s){s.d(t,{TechDocsSearchResultListItem:()=>c});var a=s(31085),i=s(46423),r=s(5951),l=s(58837),n=s(72501),d=s(60603),o=s(7613);let p=(0,l.A)({flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",marginBottom:"1rem"}}),c=e=>{let{result:t,highlight:s,lineClamp:l=5,asListItem:c=!0,asLink:x=!0,title:T,icon:g}=e,h=p(),m=({children:e})=>x?(0,a.jsx)(d.N_,{noTrack:!0,to:t.location,children:e}):(0,a.jsx)(a.Fragment,{children:e});return(0,a.jsx)(({children:e})=>c?(0,a.jsxs)(a.Fragment,{children:[g&&(0,a.jsx)(i.A,{children:"function"==typeof g?g(t):g}),(0,a.jsx)("div",{className:h.flexContainer,children:e})]}):(0,a.jsx)(a.Fragment,{children:e}),{children:(0,a.jsx)(()=>{let e=s?.fields.title?(0,a.jsx)(o.e,{text:s.fields.title,preTag:s.preTag,postTag:s.postTag}):t.title,i=s?.fields.entityTitle?(0,a.jsx)(o.e,{text:s.fields.entityTitle,preTag:s.preTag,postTag:s.postTag}):t.entityTitle,d=s?.fields.name?(0,a.jsx)(o.e,{text:s.fields.name,preTag:s.preTag,postTag:s.postTag}):t.name;return t?(0,a.jsx)(r.A,{className:h.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,a.jsx)(m,{children:T||(0,a.jsxs)(a.Fragment,{children:[e," | ",i??d," docs"]})}),secondary:(0,a.jsx)(n.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:l,overflow:"hidden"},color:"textSecondary",variant:"body2",children:s?.fields.text?(0,a.jsx)(o.e,{text:s.fields.text,preTag:s.preTag,postTag:s.postTag}):t.text})}):null},{})})}}}]);
//# sourceMappingURL=4498.cf9b7a68.chunk.js.map