(window.webpackJsonp=window.webpackJsonp||[]).push([[192],{873:function(t,e,r){var content=r(905);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(122).default)("6a57bbb5",content,!0,{sourceMap:!1})},904:function(t,e,r){"use strict";r(873)},905:function(t,e,r){var o=r(121)(!1);o.push([t.i,".table td[data-v-dcb38fc6]{text-align:left;padding:1%!important}.border[data-v-dcb38fc6]{border:1px solid #e5e7eb!important;border-radius:5px;padding:5%!important}",""]),t.exports=o},910:function(t,e,r){"use strict";r.r(e);r(23);var o={name:"CardHistorico",props:{historico:{type:Array,default:function(){},required:!0}},data:function(){return{currentPage:1,perPage:5}},computed:{rows:function(){return this.historicoAux.length},historicoAux:{get:function(){return this.historico},set:function(t){this.$emit("update:historico",t)}}},methods:{itemsForList:function(){return this.historicoAux.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)}}},n=(r(904),r(42)),component=Object(n.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("b-row",[r("b-col",{attrs:{cols:"12"}},[r("b-card",[r("div",{staticClass:"mt-4",attrs:{slot:"header"},slot:"header"},[r("b-row",[r("b-col",{staticClass:"d-flex justify-content-start"},[r("fa-icon",{staticStyle:{"font-size":"1.3rem"},attrs:{icon:"clock-rotate-left"}}),t._v(" "),r("h3",{staticClass:"ml-3"},[t._v("Histórico")])],1)],1)],1),t._v(" "),r("b-row",[r("b-col",{attrs:{md:"12",xl:"12",sm:"12"}},[r("b-table-simple",{staticClass:"border",attrs:{"show-empty":"",borderless:"",small:""},scopedSlots:t._u([{key:"empty",fn:function(){return[r("span",[t._v("Não há histórico de atividades.")])]},proxy:!0}])},[t._v(" "),t.historicoAux.length>0?r("b-tbody",t._l(t.itemsForList(),(function(e,o){return r("b-tr",{key:o,attrs:{value:e.id}},[r("b-td",[r("span",[t._v("\n                      "+t._s(t._f("formatDateTime")(e.datHorHistorico))+"\n                      "+t._s(" - "+e.descricao+" - "+e.usuario.nome)+"\n                    ")])])],1)})),1):t._e(),t._v(" "),0===t.historicoAux.length?r("b-tbody",[r("b-tr",[r("b-td",{staticClass:"text-center",attrs:{colspan:"17"}},[t._v("\n                    Não há histórico de atividades.\n                  ")])],1)],1):t._e()],1),t._v(" "),t.historicoAux.length>t.perPage?r("b-pagination",{attrs:{"total-rows":t.rows,"per-page":t.perPage,align:"center",pills:""},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1)],1)],1)],1)],1)],1)}),[],!1,null,"dcb38fc6",null);e.default=component.exports}}]);
//# sourceMappingURL=ccd9356-1.2.11.js.map