text: (window.webpackJsonp=window.webpackJsonp||[]).push([[28],{Aqzt:function(t,e,r){"use strict";var n=r("L2JU");function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(r,!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e.a={methods:a({},Object(n.mapActions)("topics",["clearForm"])),computed:a({},Object(n.mapState)({topics:function(t){return t.topics}}))}},f56Z:function(t,e,r){"use strict";r.r(e);var n=r("jx1L"),i=r("Aqzt"),a=r("CtO9"),s={name:"topics",uri:"topics"},o={mixins:[n.a,i.a,a.a],data:function(){return{service:s}}},c=r("KHd+"),l=Object(c.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[t._m(0),t._v(" "),r("div",{staticClass:"row"},[r("div",{staticClass:"col-12 col-lg-4"},[t.can("topics:read")||t.can("topics:modify")?r("app-table-panel",{attrs:{title:"Interesses ("+t.pagination.total+")","add-button":{uri:"/topics/create",disabled:t.cannot("topics:modify")},"per-page":t.perPage,"filter-text":t.filterText},on:{"input-filter-text":function(e){t.filterText=e.target.value},"set-per-page":function(e){t.perPage=e}}},[r("app-table",{attrs:{pagination:t.pagination,columns:["#","Nome",""]},on:{"goto-page":function(e){return t.gotoPage(e)}}},t._l(t.topics.data.rows,(function(e){return r("tr",{class:{"cursor-pointer":!0,"bg-primary-lighter text-white":t.isCurrent(e,t.selected)},on:{click:function(r){return t.select(e)}}},[r("td",{staticClass:"align-middle"},[t._v(t._s(e.id))]),t._v(" "),r("td",{staticClass:"align-middle"},[t._v(t._s(e.name))]),t._v(" "),r("td",{staticClass:"align-middle text-right"},[r("router-link",{staticClass:"btn btn-danger btn-sm ml-1 pull-right",attrs:{to:"/topics/"+e.id+"/update",tag:"button",disabled:t.cannot("topics:modify"),title:"Editar Interesse"}},[r("i",{staticClass:"fa fa-edit"})])],1)])})),0)],1):t._e()],1)])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"py-2 text-center"},[e("h2",[this._v("Interesses")])])}],!1,null,null,null);e.default=l.exports}}]);