(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{514:function(t,e,s){"use strict";s.r(e);var r=s(3),a=s(0),i=r.a.extend({props:{rows:{type:Array,default:()=>[]},structure:{type:Array,default:()=>[]},zeroState:{type:Number,default:2},rowNumber:{type:Number,default:0},path:{type:String,default:""}},data:()=>({selected:!1}),computed:{rowSet(){if(this.rows.length>0)return this.rows;{const t=this.rowNumber>0?this.rowNumber:this.zeroState;return new Array(t).fill({})}},columns(){return this.structure.map(t=>t.width).join(" ")}},methods:{toLabel:a.F,selectAll(){this.selected?this.selected=!1:this.selected=!0,this.$emit("select-all",this.selected)},navigate(t){if(this.path){const e=this.interpolate(this.path,t);this.$router.push({path:e})}},interpolate:(t,e)=>(t.match(/{.+?}/g).forEach(s=>{const r=s.replace(/{(.*?)}/,"$1"),a=new RegExp(s,"g");t=t.replace(a,e[r])}),t)}}),n=(s(676),s(531)),o=Object(n.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"dashboard-grid-wrap"},[s("style",{tag:"component",staticClass:"dynamic-var"},[t._v("\n    .dashboard-grid-wrap{ --column-structure: "+t._s(t.columns)+"\n    }\n  ")]),t._v(" "),s("div",{staticClass:"dashboard-grid"},[s("div",{staticClass:"dashboard-grid-head dashboard-grid-row"},t._l(t.structure,(function(e){return s("div",{key:e._id,staticClass:"cell"},["select"==e._id?[s("input",{staticClass:"checkbox",attrs:{type:"checkbox"},domProps:{value:t.selected},on:{click:function(e){return t.selectAll()}}})]:s("span",{staticClass:"head-text"},[t._v(t._s(e.name||t.toLabel(e._id)))])],2)})),0),t._v(" "),t._l(t.rowSet,(function(e,r){return s("div",{key:r,staticClass:"dashboard-grid-body-row dashboard-grid-row",class:t.path?"clickable":"",on:{click:function(s){return t.navigate(e)}}},t._l(t.structure,(function(a){return s("div",{key:a._id,staticClass:"cell"},[t.zeroState>0&&0==t.rowNumber&&0==t.rows.length?s("div",{staticClass:"zero-content"},["media"==a.type?s("div",{staticClass:"zero-media"},[s("div",{staticClass:"box"})]):t._e(),t._v(" "),s("div",{staticClass:"zero-lines",class:a.type},[s("div",{staticClass:"line"}),t._v(" "),"double"==a.type||"media"==a.type?s("div",{staticClass:"line short"}):t._e()])]):[t._t(a._id,null,{value:e[a._id],row:e,index:r})]],2)})),0)}))],2)],1)}),[],!1,null,null,null);e.default=o.exports},531:function(t,e,s){"use strict";function r(t,e,s,r,a,i,n,o){var c,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=s,l._compiled=!0),r&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),n?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(n)},l._ssrRegister=c):a&&(c=o?function(){a.call(this,this.$root.$options.shadowRoot)}:a),c)if(l.functional){l._injectStyles=c;var d=l.render;l.render=function(t,e){return c.call(e),d(t,e)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:l}}s.d(e,"a",(function(){return r}))},554:function(t,e,s){},676:function(t,e,s){"use strict";var r=s(554);s.n(r).a}}]);