text: !function(t){function e(i){if(s[i])return s[i].exports;var n=s[i]={exports:{},id:i,loaded:!1};return t[i].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var s={};return e.m=t,e.c=s,e.p="",e(0)}([function(t,e,s){var i,n,o={};i=s(4),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default);var r="function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports;n&&(r.template=n),r.computed||(r.computed={}),Object.keys(o).forEach(function(t){var e=o[t];r.computed[t]=function(){return e}})},,,,function(t,e){"use strict";t.exports={el:"#events",data:function(){return _.merge({entries:[],config:{filter:this.$session.get("events.filter",{order:"start asc",limit:25})},selected:[],count:"",pages:0},window.$data)},ready:function(){this.resource=this.$resource("api/calendar/event{/id}"),this.$watch("config.page",this.load,{immediate:!0})},watch:{"config.filter":{handler:function(t){this.config.page?this.config.page=0:this.load(),this.$session.set("events.filter",t)},deep:!0}},computed:{statusOptions:function(){var t=_.map(this.$data.statuses,function(t,e){return{text:t,value:e}});return[{label:this.$trans("Filter by"),options:t}]},authors:function(){var t=_.map(this.$data.authors,function(t){return{text:t.username,value:t.user_id}});return[{label:this.$trans("Filter by"),options:t}]}},methods:{load:function(){this.resource.query({filter:this.config.filter,page:this.config.page}).then(function(t){var e=t.data;this.$set("$data.entries",e.events),this.$set("pages",e.pages),this.$set("count",e.count),this.$set("selected",[])})},remove:function(){this.selected.length&&this.resource.delete({id:"bulk"},{ids:this.selected}).then(function(){this.load(),this.$notify("Events deleted.")})},copy:function(){this.selected.length&&this.resource.save({id:"copy"},{ids:this.selected}).then(function(){this.load(),this.$notify("Events copied.")})}}},Vue.ready(t.exports)}]);