(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{472:function(t,e,n){var content=n(475);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(14).default)("40e94157",content,!0,{sourceMap:!1})},474:function(t,e,n){"use strict";n(472)},475:function(t,e,n){var r=n(13)(!1);r.push([t.i,".project-list__tab{padding-top:1rem;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-gap:1.25rem;gap:1.25rem}.project-list__tabs{border:none}.project-list__tabs .w-tabs__bar{display:none}.project-list__tabs .w-tabs__content{padding:0}.project-list__pagination{margin-top:1rem}.project-list .project-tile{grid-column:span 12/span 12}@media(min-width:901px){.project-list .project-tile{grid-column:span 6/span 6}}@media(min-width:1201px){.project-list .project-tile{grid-column:span 3/span 3}}",""]),t.exports=r},476:function(t,e,n){"use strict";n.r(e);n(101),n(40);var r=n(18),o=n(0).a.extend({name:"ProjectList",props:{projects:{type:Array,required:!0},rows:{type:Number,required:!0}},data:function(){return{currentPage:0}},computed:{projectsPerPage:function(){return 4*this.rows},pageCount:function(){return Math.ceil(this.projects.length/this.projectsPerPage)},pageContents:function(){return Object(r.chunk)(this.projects,this.projectsPerPage).map((function(t){return{title:"Bruh",content:t}}))}},methods:{openPage:function(t){this.$refs.tabs.openTab({_index:t})}}}),c=(n(474),n(2)),component=Object(c.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"project-list"},[t.projects.length?n("w-tabs",{ref:"tabs",staticClass:"project-list__tabs",attrs:{items:t.pageContents},scopedSlots:t._u([{key:"item-content",fn:function(e){var r=e.item;return[n("div",{staticClass:"project-list__tab"},t._l(r.content,(function(t){return n("ProjectTile",{key:t.id,attrs:{project:t}})})),1)]}}]),model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}):n("div",{staticClass:"project-list__empty"},[t._t("empty")],2),t._v(" "),t.projects.length>t.projectsPerPage?n("VindiPagination",{staticClass:"project-list__pagination",attrs:{value:t.currentPage,total:t.pageCount,visible:5},on:{input:t.openPage}}):t._e()],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{ProjectTile:n(274).default,VindiPagination:n(273).default})}}]);