"use strict";(self["webpackChunkaw_webui"]=self["webpackChunkaw_webui"]||[]).push([[2935],{2935:(t,e,a)=>{a.r(e),a.d(e,{default:()=>d});var o=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("b-form-group",{attrs:{label:"Hostname","label-cols":"2"}},[e("b-form-select",{model:{value:t.queryOptionsData.hostname,callback:function(e){t.$set(t.queryOptionsData,"hostname",e)},expression:"queryOptionsData.hostname"}},t._l(t.hostnameChoices,(function(a){return e("option",[t._v(t._s(a))])})),0)],1),e("b-form-group",{attrs:{label:"Start","label-cols":"2"}},[e("b-form-datepicker",{model:{value:t.queryOptionsData.start,callback:function(e){t.$set(t.queryOptionsData,"start",e)},expression:"queryOptionsData.start"}})],1),e("b-form-group",{attrs:{label:"Stop","label-cols":"2"}},[e("b-form-datepicker",{model:{value:t.queryOptionsData.stop,callback:function(e){t.$set(t.queryOptionsData,"stop",e)},expression:"queryOptionsData.stop"}})],1),e("b-form-group",{attrs:{label:"Toggles","label-cols":"2"}},[e("b-form-checkbox",{attrs:{type:"checkbox",label:"Filter AFK",description:""},model:{value:t.queryOptionsData.filter_afk,callback:function(e){t.$set(t.queryOptionsData,"filter_afk",e)},expression:"queryOptionsData.filter_afk"}},[e("label",[t._v("Exclude time away from computer")])])],1)],1)},s=[],r=a(51055),n=a(97911),u=a(27981),i=a(20144),l=a(30381),c=a.n(l),p=a(85711);const f=i["default"].extend({name:"QueryOptions",props:{queryOptions:{type:Object}},data:function(){return{bucketsStore:(0,p.U)(),queryOptionsData:{hostname:"",start:c()().subtract(1,"day").format("YYYY-MM-DD"),stop:c()().add(1,"day").format("YYYY-MM-DD"),filter_afk:!0}}},computed:{hostnameChoices:function(){return this.bucketsStore.hosts}},watch:{queryOptionsData:{handler:function(t){this.$emit("input",t)},deep:!0}},mounted:function(){var t=this;return(0,u.Z)((0,r.Z)().mark((function e(){return(0,r.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.bucketsStore.ensureLoaded();case 2:t.queryOptionsData=(0,n.Z)((0,n.Z)({},t.queryOptionsData),{},{hostname:t.hostnameChoices[0]},t.queryOptions),t.$emit("input",t.queryOptionsData);case 4:case"end":return e.stop()}}),e)})))()}}),b=f;var m=a(1001),y=(0,m.Z)(b,o,s,!1,null,null,null);const d=y.exports}}]);
//# sourceMappingURL=2935.26b44e62.js.map