"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[2437],{4690:function(t,i,s){s.r(i),s.d(i,{default:function(){return l}});var a=function(){var t=this,i=t._self._c;return t.widgets?i("div",{ref:"dashboardGrid",staticClass:"uk-grid car-info-point-dashboard",class:t.dashboardGridGutterClass,attrs:{"uk-grid":""}},t._l(t.widgets,(function(s){return i("div",{class:t.dashboardGridClass},[i("div",{staticClass:"car-info-point-dashboard-item"},[i("div",{staticClass:"car-info-point-dashboard-item__content",class:s.total.color},[s.total?i("div",{staticClass:"car-info-point-dashboard-item-content-item label"},[i("div",{staticClass:"car-info-point-dashboard-item-content-item__title",domProps:{textContent:t._s(s.total.title)}}),s.total.summarize?i("div",{staticClass:"car-info-point-dashboard-item-content-item__value"},[t._v(" "+t._s(t._f("numberWithSpaces")(t.summ(s.items)))+" ")]):t._e()]):t._e(),t._l(s.items,(function(s){return i("div",{staticClass:"car-info-point-dashboard-item-content-item"},[i("div",{staticClass:"car-info-point-dashboard-item-content-item__title",domProps:{textContent:t._s(s.title)}}),i("div",{staticClass:"car-info-point-dashboard-item-content-item__value"},[t._v(" "+t._s(t._f("numberWithSpaces")(s.count))+" ")])])}))],2)])])})),0):t._e()},d=[],e=s(2779),r={name:"OutpostDashboard",props:{width:{type:Number,default:()=>{}},widgets:{type:Array,default:()=>{}},money:{type:Object,default:()=>{}}},data(){return{}},watch:{width(){this.initGrid()}},computed:{dashboardGridGutterClass(){if(this.width&&this.widgets)return this.width>768?"uk-grid-small":"uk-grid-collapse"},dashboardGridClass(){return this.width&&this.widgets?this.width>1200&&this.widgets.length<=4?"uk-width-1-"+this.widgets.length:this.width>960&&this.width<=1200?"border-small uk-width-1-4":this.width>768&&this.width<=960?"border-small uk-width-1-3":768===this.width?"no-border uk-width-1-3":this.width>480&&this.width<768?"no-border uk-width-1-2":this.width<=480?"no-border uk-width-1-1":void 0:"uk-width-1-1 uk-width-1-2@m uk-width-1-3@l"}},filters:{numberWithSpaces(t){return t?(t=parseFloat(t).toString(),t.replace(/\B(?=(\d{3})+(?!\d))/g," ")):""}},methods:{initGrid(){e.grid(this.$refs.dashboardGrid)},summ(t){if(t){let i=null;return t.forEach((t=>{i+=t.count})),i}}}},o=r,n=s(1656),h=(0,n.A)(o,a,d,!1,null,null,null),l=h.exports}}]);
//# sourceMappingURL=OutpostDashboard.a6a667d6.js.map