(window.webpackJsonp=window.webpackJsonp||[]).push([[573],{856:function(t,e,r){"use strict";r.r(e);r(6),r(5),r(7),r(4),r(12),r(8),r(13);var o=r(2),n=(r(23),r(78));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function l(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var h={props:{historicos:{type:Array,default:function(){return[]}}},data:function(){return{currentPage:1,perPage:8}},computed:l(l({},Object(n.c)({empresa:"empresa/empresaAtual"})),{},{historicosAux:{get:function(){return this.historicos},set:function(t){this.$emit("update:historicos",t)}}}),mounted:function(){},methods:{historicosPage:function(){return void 0===this.historicosAux||null===this.historicosAux?[]:this.historicosAux.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)}}},f=r(42),component=Object(f.a)(h,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"animated fadeIn"},[t._m(0),t._v(" "),r("b-row",[r("b-col",{attrs:{md:"12"}},[r("b-list-group",{attrs:{id:"historicoList"}},[0==t.historicosAux.length?r("b-list-group-item",[t._v("\n          Não há histórico de atividades.\n        ")]):t._e(),t._v(" "),t._l(t.historicosPage(),(function(e,o){return r("b-list-group-item",{key:o},[t._v("\n          "+t._s(t._f("formatDateTime")(e.datHorHistorico))+"\n          "+t._s(": "+e.usuario.nome+" - "+e.descricaoHistorico)+"\n        ")])}))],2),t._v(" "),t.historicosAux.length>t.perPage?r("b-pagination",{staticClass:"mt-1",attrs:{"aria-controls":"historicoList","total-rows":t.historicosAux.length,"per-page":t.perPage,align:"center"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1)],1)],1)}),[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mt-3"},[r("h4",{staticClass:"card-title my-4"},[t._v("Histórico de Atividades")])])}],!1,null,null,null);e.default=component.exports}}]);
//# sourceMappingURL=c092112-1.2.11.js.map