"use strict";(self["webpackChunkaw_webui"]=self["webpackChunkaw_webui"]||[]).push([[9795],{29795:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});n(21249),n(57327),n(41539),n(73210);var a=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"form-group"},[t("select",{directives:[{name:"model",rawName:"v-model",value:e.vis_method,expression:"vis_method"}],staticClass:"form-control",on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.vis_method=t.target.multiple?n:n[0]}}},[t("option",{attrs:{value:"eventlist"}},[e._v("Event List")]),t("option",{attrs:{value:"timeline"}},[e._v("Timeline")]),t("option",{attrs:{value:"summary"}},[e._v("Summary")]),t("option",{attrs:{value:"raw"}},[e._v("Raw JSON")])])]),"timeline"==e.vis_method?t("div",[t("vis-timeline",{attrs:{buckets:[{id:"search",type:"search",events:e.events}]}})],1):e._e(),"eventlist"==e.vis_method?t("div",[t("aw-eventlist",{attrs:{events:e.events}})],1):e._e(),"summary"==e.vis_method?t("div",[t("input",{directives:[{name:"model",rawName:"v-model.lazy.trim",value:e.summaryKey,expression:"summaryKey",modifiers:{lazy:!0,trim:!0}}],staticClass:"form-control",staticStyle:{"margin-bottom":"1em"},attrs:{type:"text",placeholder:"data key"},domProps:{value:e.summaryKey},on:{change:function(t){e.summaryKey=t.target.value.trim()},blur:function(t){return e.$forceUpdate()}}}),t("aw-summary",{attrs:{fields:e.events,colorfunc:e.colorfunc,namefunc:e.namefunc}})],1):e._e(),"raw"==e.vis_method?t("div",[t("pre",[e._v(e._s(e.events))])]):e._e()])},r=[],s=n(51055),i=n(27981);const u={name:"aw-selectable-eventview",props:{events:Array,event_type:{type:String,default:"currentwindow"}},data:function(){return{vis_method:"eventlist",summaryKey:"title",colorfunc:null,namefunc:null}},mounted:function(){var e=(0,i.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.colorfunc=this.summaryKeyFunc,this.namefunc=this.summaryKeyFunc;case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{summaryKeyFunc:function(e){return e.data[this.summaryKey]}}},o=u;var m=n(1001),l=(0,m.Z)(o,a,r,!1,null,null,null);const c=l.exports}}]);
//# sourceMappingURL=9795.620ed108.js.map