/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.logsShared_bundle_jsonpfunction=window.logsShared_bundle_jsonpfunction||[]).push([[7],{113:function(e,t,n){"use strict";n.r(t),n.d(t,"LogEntryMessageColumn",(function(){return l}));var o=n(1),s=n(13),i=n(35),r=n(62),c=n(51),a=n(61),u=n(2);const l=Object(o.memo)((({columnValue:e,highlights:t,isActiveHighlight:n,wrapMode:s,render:r})=>{const c=Object(o.useMemo)((()=>Object(i.j)(e)?j(e.message,t,n):null),[e,t,n]),a=Object(o.useMemo)((()=>Object(i.j)(e)?d(e.message):""),[e]);return Object(u.jsx)(g,{wrapMode:s},r?r(a):c)})),g=Object(s.euiStyled)(c.LogEntryColumnContent)` text-overflow: ellipsis; ${e=>"long"===e.wrapMode?a.c:"pre-wrapped"===e.wrapMode?a.e:a.f}; `,j=(e,t,n)=>e.map(((e,o)=>{if(Object(i.f)(e)){const[s=[]]=t.map((e=>{if(Object(i.i)(e)){const t=e.message[o];if(Object(i.h)(t))return t.highlights}return[]}));return Object(u.jsx)(r.a,{highlightTerms:s,isActiveHighlight:n,key:`MessageSegment-${o}`,value:e.value})}return Object(i.d)(e)?e.constant:"failed to format message"})),d=e=>e.map((e=>Object(i.d)(e)?e.constant:Object(i.f)(e)?e.value.toString():void 0)).join(" ");t.default=l}}]);