text: !function(t){function e(i){if(s[i])return s[i].exports;var o=s[i]={exports:{},id:i,loaded:!1};return t[i].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var s={};return e.m=t,e.c=s,e.p="",e(0)}([function(t,e,s){var i,o,r={};i=s(2),t.exports=i||{},t.exports.__esModule&&(t.exports=t.exports.default);var n="function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports;o&&(n.template=o),n.computed||(n.computed={}),Object.keys(r).forEach(function(t){var e=r[t];n.computed[t]=function(){return e}})},,function(t,e){"use strict";t.exports={el:"#categories",data:function(){return _.merge({entries:[],config:{filter:this.$session.get("categories.filter",{order:"name asc",limit:25})},selected:[],count:"",pages:0},window.$data)},ready:function(){this.resource=this.$resource("api/calendar/category{/id}"),this.$watch("config.filter",this.load,{immediate:!0})},watch:{"config.filter":{handler:function(t){this.config.page?this.config.page=0:this.load(),this.$session.set("categories.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.categories),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("Categories deleted.")},function(t){this.$notify(t.data,"danger")})},copy:function(){this.selected.length&&this.resource.save({id:"copy"},{ids:this.selected}).then(function(){this.load(),this.$notify("Categories copied.")})}}},Vue.ready(t.exports)}]);