"use strict";(self["webpackChunkModoboa"]=self["webpackChunkModoboa"]||[]).push([[218],{3269:function(e,t,a){a.r(t),a.d(t,{default:function(){return M}});var s=a(6313),l=a(7953),r=function(){var e=this,t=e._self._c;return t("div",[t(s.Z,{attrs:{flat:""}},[t(l.qW,[t("translate",[e._v("Opened alarms")])],1)],1),t("alarm-list")],1)},n=[],i=a(4562),c=a(4145),o=a(3863),d=a(4324),u=a(5808),h=a(4528),m=a(3687),f=a(7808),v=function(){var e=this,t=e._self._c;return t(c.Z,{staticClass:"mt-6"},[t(s.Z,{attrs:{flat:""}},[t(h.Z,{attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:a,attrs:s}){return[t(i.Z,e._g(e._b({attrs:{small:""}},"v-btn",s,!1),a),[e._v(" Actions "),t(d.Z,{attrs:{right:""}},[e._v("mdi-chevron-down")])],1)]}}])},[t(u.Z,{attrs:{dense:""}})],1),t(m.Z),t(f.Z,{attrs:{"prepend-inner-icon":"mdi-magnify",placeholder:"Search",filled:"",outlined:"",dense:"","hide-details":""},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}})],1),t(o.Z,{staticClass:"elevation-1",attrs:{headers:e.headers,items:e.alarms,search:e.search,"item-key":"pk","show-select":""},scopedSlots:e._u([{key:"item.created",fn:function({item:t}){return[e._v(" "+e._s(e._f("date")(t.created))+" ")]}}]),model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1)},p=[],x=a(2201);const Z="alarms";var _={getAll(){return x.Z.get(`${Z}/`)}},g={data(){return{alarms:[],headers:[{text:this.$gettext("Date"),value:"created"},{text:this.$gettext("Domain"),value:"domain.name"},{text:this.$gettext("Mailbox"),value:"mailbox.name"},{text:this.$gettext("Message"),value:"title"}],search:"",selected:[]}},mounted(){_.getAll().then((e=>{this.alarms=e.data}))}},b=g,k=a(1001),y=(0,k.Z)(b,v,p,!1,null,null,null),$=y.exports,w={components:{AlarmList:$}},A=w,C=(0,k.Z)(A,r,n,!1,null,"06761a60",null),M=C.exports},3687:function(e,t,a){a(9027);var s=a(5352);t["Z"]=(0,s.Ji)("spacer","div","v-spacer")}}]);
//# sourceMappingURL=218.7e7751cd.js.map