"use strict";(self.webpackChunkgrafana=self.webpackChunkgrafana||[]).push([[7884,9604],{2001(g,d,t){t.r(d),t.d(d,{plugin:()=>h});var u=t(16207),l=t(739),o=t(67770),e=t(92745),i=t(43173),f=t(78368),m=t(38919),r=t(73495);class c{getSuggestionsForData(a){const p=a.getListAppender({name:"",pluginId:"logs",options:{},fieldConfig:{defaults:{custom:{}},overrides:[]}}),{dataSummary:s}=a;!s.hasData||!s.hasTimeField||!s.hasStringField||(s.preferredVisualisationType==="logs"?p.append({name:r.m.Logs,score:m.nQ.Best}):p.append({name:r.m.Logs}))}}const h=new u.m(f.q).setPanelOptions(n=>{const a=[(0,e.t)("logs.category-logs","Logs")];n.addBooleanSwitch({path:"showTime",name:(0,e.t)("logs.name-time","Time"),category:a,description:"",defaultValue:!1}),i.$.featureToggles.newLogsPanel||n.addBooleanSwitch({path:"showLabels",name:(0,e.t)("logs.name-unique-labels","Unique labels"),category:a,description:"",defaultValue:!1}).addBooleanSwitch({path:"showCommonLabels",name:(0,e.t)("logs.name-common-labels","Common labels"),category:a,description:"",defaultValue:!1}),n.addBooleanSwitch({path:"wrapLogMessage",name:(0,e.t)("logs.name-wrap-lines","Wrap lines"),category:a,description:"",defaultValue:!1}),i.$.featureToggles.newLogsPanel?n.addBooleanSwitch({path:"syntaxHighlighting",name:(0,e.t)("logs.name-enable-syntax-highlighting","Enable syntax highlighting"),category:a,description:(0,e.t)("logs.description-enable-syntax-highlighting","Use a predefined syntax coloring grammar to highlight relevant parts of the log lines")}):n.addBooleanSwitch({path:"prettifyLogMessage",name:(0,e.t)("logs.name-prettify-json","Prettify JSON"),category:a,description:"",defaultValue:!1}),n.addBooleanSwitch({path:"enableLogDetails",name:(0,e.t)("logs.name-enable-log-details","Enable log details"),category:a,description:"",defaultValue:!0}).addBooleanSwitch({path:"enableInfiniteScrolling",name:(0,e.t)("logs.name-enable-infinite-scrolling","Enable infinite scrolling"),category:a,description:(0,e.t)("logs.description-enable-infinite-scrolling","Experimental. Request more results by scrolling to the bottom of the logs list."),defaultValue:!1}),i.$.featureToggles.newLogsPanel&&n.addBooleanSwitch({path:"showControls",name:(0,e.t)("logs.name-show-controls","Show controls"),category:a,description:(0,e.t)("logs.description-show-controls","Display controls to jump to the last or first log line, and filters by log level"),defaultValue:!1}).addRadio({path:"fontSize",name:(0,e.t)("logs.name-font-size","Font size"),category:a,description:"",settings:{options:[{value:"default",label:(0,e.t)("logs.font-size-options.label-default","Default")},{value:"small",label:(0,e.t)("logs.font-size-options.label-small","Small")}]}}).addRadio({path:"detailsMode",name:(0,e.t)("logs.name-details-mode","Log Details panel mode"),category:a,description:"",settings:{options:[{value:"inline",label:(0,e.t)("logs.name-details-options.label-inline","Inline")},{value:"sidebar",label:(0,e.t)("logs.name-details-options.label-sidebar","Sidebar")}]},defaultValue:"inline"}),n.addRadio({path:"dedupStrategy",name:(0,e.t)("logs.name-deduplication","Deduplication"),category:a,description:"",settings:{options:[{value:l.fY.none,label:(0,e.t)("logs.deduplication-options.label-none","None"),description:o._C[l.fY.none]},{value:l.fY.exact,label:(0,e.t)("logs.deduplication-options.label-exact","Exact"),description:o._C[l.fY.exact]},{value:l.fY.numbers,label:(0,e.t)("logs.deduplication-options.label-numbers","Numbers"),description:o._C[l.fY.numbers]},{value:l.fY.signature,label:(0,e.t)("logs.deduplication-options.label-signature","Signature"),description:o._C[l.fY.signature]}]},defaultValue:l.fY.none}).addRadio({path:"sortOrder",name:(0,e.t)("logs.name-order","Order"),category:a,description:"",settings:{options:[{value:l.uH.Descending,label:(0,e.t)("logs.order-options.label-newest-first","Newest first")},{value:l.uH.Ascending,label:(0,e.t)("logs.order-options.label-oldest-first","Oldest first")}]},defaultValue:l.uH.Descending})}).setSuggestionsSupplier(new c)},51814(g){g.exports={}}}]);

//# sourceMappingURL=logsPanel.b569ec6fcfa7730e12b7.js.map