(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4073fcf0"],{"0307":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"horizontal-bullet__container d-flex"},[a("div",{staticClass:"horizontal-bullet__progress",class:[t.activeColorClass],style:{width:t.percentageDone+"%"}}),t.percentageDone<100?a("div",{staticClass:"horizontal-bullet__available",style:{width:t.percentageAvailable+"%"}}):t._e(),a("div",{staticClass:"horizontal-bullet__average",style:{left:t.percentageAverage+"%"}})])},s=[],r={props:{goal:{default:0},current:{default:0},average:{default:0}},computed:{percentageDone:function(){return 0!==this.biggestValue&&this.currentAbs/this.biggestValue*100||0},percentageAvailable:function(){var t=(this.goalAbs-this.currentAbs)/this.biggestValue*100;return!t||t<0?0:t>100?100:100-this.percentageDone},percentageAverage:function(){return 0!==this.biggestValue&&this.averageAbs/this.biggestValue*100||0},biggestValue:function(){return Math.max(this.goalAbs,this.currentAbs,this.averageAbs)},currentAbs:function(){return Math.abs(this.current)},averageAbs:function(){return Math.abs(this.average)},goalAbs:function(){return Math.abs(this.goal)},activeColorClass:function(){return this.current>0?"hb__progress-bar--positive":"hb__progress-bar--negative"}}},o=r,n=(a("2f54"),a("2877")),l=Object(n["a"])(o,i,s,!1,null,"2e6b80c0",null);e["a"]=l.exports},"0770":function(t,e,a){var i=a("c4c2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("e7e176ee",i,!0,{sourceMap:!1,shadowMode:!1})},2770:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".savings-potential-dashboard-card__container[data-v-0dcec4c4]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}.savings-potential-dashboard-card__content[data-v-0dcec4c4]{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto}",""]),t.exports=e},"2f54":function(t,e,a){"use strict";a("0770")},a113:function(t,e,a){var i=a("2770");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("37295ff5",i,!0,{sourceMap:!1,shadowMode:!1})},c295:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"savings-potential-dashboard-card__container"},[a("div",{staticClass:"savings-potential-dashboard-card__content"},[a("div",{staticClass:"row py-2"},[a("div",{staticClass:"col-12 d-flex justify-content-center"},[a("div",{staticClass:"mr-1"},[t._v("Sie können monatlich")]),a("CurrencyLabel",{staticClass:"mr-1",attrs:{value:t.avgTotal,colored:""}}),a("div",{staticClass:"mr-1"},[t._v("sparen.")])],1)]),t.isMobileNativeContext?t._e():a("div",{staticClass:"row py-2 mx-4"},[a("div",{staticClass:"col-12"},[a("ChartHorizontalBullet",{staticClass:"mb-2",attrs:{current:t.maxTotal,average:t.avgTotal}})],1)]),t.isMobileNativeContext?t._e():a("div",{staticClass:"row mx-4"},[a("div",{staticClass:"col"},[a("CurrencyLabel",{staticClass:"mr-1",attrs:{value:t.minTotal,colored:""}})],1),a("div",{staticClass:"col text-right"},[a("CurrencyLabel",{staticClass:"mr-1",attrs:{value:t.maxTotal,colored:""}})],1)]),t.isMobileNativeContext?t._e():a("div",{staticClass:"row mx-4"},[a("div",{staticClass:"col"},[a("BaseButton",{on:{click:t.newTicket}},[t._v("Sparplan anlegen")])],1)])]),t.isMobileNativeContext?t._e():a("div",{staticClass:"savings-potential-dashboard-card__view-more text-right"},[a("router-link",{attrs:{to:"/home/multibanking-account/monatliches-sparpotential"}},[t._v("weitere...")])],1)])},s=[],r=a("5530"),o=a("2f62"),n=a("4a8d"),l=a("7cc5"),c=a("0307"),u=a("04bc"),b=a("2684"),d={computed:Object(r["a"])(Object(r["a"])({},Object(o["b"])({savingsPotential:n["default"].GETTERS.SAVINGS_POTENTIAL,isMobileNativeContext:b["default"].GETTERS.IS_MOBILE_NATIVE_CONTEXT})),{},{avgTotal:function(){var t;return this.onlyGreaterThanZero((null===(t=this.savingsPotential)||void 0===t?void 0:t.avgTotal)||0)},maxTotal:function(){var t;return this.onlyGreaterThanZero((null===(t=this.savingsPotential)||void 0===t?void 0:t.maxTotal)||0)},minTotal:function(){var t;return this.onlyGreaterThanZero((null===(t=this.savingsPotential)||void 0===t?void 0:t.minTotal)||0)}}),methods:{onlyGreaterThanZero:function(t){return t>0&&t||0},newTicket:function(){var t="Ich habe Interesse an regelmäßigem Sparen. Bitte kontaktieren Sie mich.";this.$router.push({name:"new-ticket",params:{textInput:t}})}},components:{CurrencyLabel:l["a"],ChartHorizontalBullet:c["a"],BaseButton:u["default"]}},v=d,h=(a("e6a9"),a("2877")),g=Object(h["a"])(v,i,s,!1,null,"0dcec4c4",null);e["default"]=g.exports},c4c2:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".horizontal-bullet__container[data-v-2e6b80c0]{width:100%;position:relative}.horizontal-bullet__progress[data-v-2e6b80c0]{height:18px}.horizontal-bullet__available[data-v-2e6b80c0]{background-color:#bdbdbd;height:18px}.horizontal-bullet__average[data-v-2e6b80c0]{border:2px solid;height:18px;-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;border-color:var(--color-primary)}.hb__progress-bar--positive[data-v-2e6b80c0]{background-color:var(--color-success)}.hb__progress-bar--negative[data-v-2e6b80c0]{background-color:var(--color-danger)}",""]),t.exports=e},e6a9:function(t,e,a){"use strict";a("a113")}}]);