(window.webpackJsonp=window.webpackJsonp||[]).push([[393],{1300:function(t,e,r){var content=r(1650);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,r(122).default)("79c0354c",content,!0,{sourceMap:!1})},1649:function(t,e,r){"use strict";r(1300)},1650:function(t,e,r){var o=r(121)(!1);o.push([t.i,".table td[data-v-6ab53371]{text-align:left;padding:1%!important}.border[data-v-6ab53371]{border:1px solid #e5e7eb!important;border-radius:5px;padding:5%!important}",""]),t.exports=o},2217:function(t,e,r){"use strict";r.r(e);r(23);var o={name:"CardHistoricoAtividades",props:{historicoAtividades:{type:Array,default:function(){},required:!0}},data:function(){return{currentPage:1,perPage:10}},computed:{rows:function(){return this.historicoAtividadesAux.length},historicoAtividadesAux:{get:function(){return this.historicoAtividades},set:function(t){this.$emit("update:historicoAtividades",t)}}},methods:{itemsForList:function(){return this.historicoAtividadesAux.slice((this.currentPage-1)*this.perPage,this.currentPage*this.perPage)}}},n=(r(1649),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",{staticClass:"mt-3"},[r("div",{staticClass:"mt-3",attrs:{slot:"header"},slot:"header"},[r("h3",{staticClass:"ml-1"},[t._v("Histórico de Atividades")])]),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.historicoAtividadesAux.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.descricaoHistorico+" - "+e.usuario.nome)+"\n                    ")])])],1)})),1):t._e(),t._v(" "),0===t.historicoAtividadesAux.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(" "),0!==t.historicoAtividadesAux.length?r("b-pagination",{attrs:{"total-rows":t.rows,"per-page":t.perPage,"aria-controls":"itemList",align:"center"},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):t._e()],1)],1)],1)],1)],1)],1)}),[],!1,null,"6ab53371",null);e.default=component.exports}}]);
//# sourceMappingURL=02bc35c-1.2.11.js.map