(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["FondsVergleich","chunk-4fdea298","chunk-86999660","chunk-2d208ac2"],{"066f":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.renderComponent?n("div",{staticClass:"container"},[e._l(e.stepsComputed,(function(t,a){return n("div",{key:"nav"+a+e.lastUpdated,staticClass:"stepper-row"},[n("div",{staticClass:"box__container"},[n("div",{staticClass:"stepper-section",on:{click:function(n){return e.onClickStep(t.stepKey)}}},[e.getSubsteps(t).length<=1?n("div",{staticClass:"stepper-section__arrow"},[n("PhCaretRight",{attrs:{size:20}})],1):e._e(),n("div",{staticClass:"stepper-section__label"},["default"===e.stepperStatus(t)?n("ph-circle",{staticClass:"color-primary status__icon",attrs:{size:16}}):"success"===e.stepperStatus(t)?n("ph-check-circle",{staticClass:"color-success status__icon",attrs:{size:16}}):"warning"===e.stepperStatus(t)?n("ph-warning-circle",{staticClass:"color-danger status__icon",attrs:{size:16}}):e._e(),n("div",{class:["clickable",{"font-bold":e.selectedStepKey==t.stepKey},{"substep-sm":e.isMobileNativeContext}],domProps:{innerHTML:e._s(e.sanitize(t.label))}})],1)]),e.getSubsteps(t).length>1?e._l(e.getSubsteps(t),(function(i,r){return n("span",{key:"sub"+r+e.lastUpdated,staticClass:"stepper-substep",on:{click:function(n){return e.onClickSubstep(t.stepKey,i.substepKey)}}},[n("div",{staticClass:"line-separator-substeps",class:["clickable",{"font-bold":e.selectedSubstepKey==i.stepKey},{"substep-sm":e.isMobileNativeContext}]},[e.showLastSubstep(a,t)&&!i.hidden?n("div",{staticClass:"substep-label",class:{"substep-label__warning":e.hasSubstepWarning(i)}},[e.hasSubstepWarning(i)?n("ph-warning-circle",{staticClass:"color-danger substep-warning__icon",attrs:{size:12}}):e._e(),n("span",{domProps:{innerHTML:e._s(e.sanitize(i.title))}})],1):e._e(),n("span",{staticClass:"substep-arrow",class:["btn-clear","d-block","d-lg-none"],attrs:{type:"button"}},[n("PhCaretRight",{attrs:{size:20}})],1)])])})):e._e()],2)])}))],2):e._e()])},i=[],r=n("5530"),s=(n("7db0"),n("c740"),n("99af"),n("9911"),n("bb48")),o=n("c0a4"),l=n("c1a1"),c=n("5c70"),u=n("b20b"),d=n("e029"),h=n("e008"),f=n("2f62"),p=n("2684"),m={mixins:[d["a"]],props:{steps:{type:Array,default:function(){return[]}},currentStep:{type:Object,default:function(){return{}}},stepperName:{type:String,default:""},stepType:{type:String,default:"step"},selectedStepKey:{type:String,default:""},visible:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},disabledUpdate:{type:Boolean,default:!1},stepperService:{default:function(){return null}},antragData:{},selectedSubstepKey:{type:String,default:""},collapsed:{type:Boolean,default:!1},isCurrent:{type:Boolean,default:!1}},data:function(){return{subs:[],stepsComputed:[],renderComponent:!0,lastUpdated:Date.now()}},watch:{steps:function(){this.updateSteps()},currentStep:function(e){e.step&&this.progress(e.step.stepKey),this.updateSteps()},selectedStepKey:{handler:function(e){this.progress(e),this.updateSteps()},immediate:!0},"stepperService.stepListSource":{handler:function(){this.updateSteps()}},stepperService:function(){this.updateSteps()},antragData:function(){this.updateSteps()}},mounted:function(){this.updateSteps(),this.currentStep.step&&this.progress(this.currentStep.step.stepKey)},computed:Object(r["a"])(Object(r["a"])({},Object(f["b"])({isMobileNativeContext:p["default"].GETTERS.IS_MOBILE_NATIVE_CONTEXT})),{},{getSelectedStepLabel:function(){var e=this;if(!this.stepperService)return"";if(this.selectedStepKey){var t,n,a=this.stepperService.getCurrentStep(this.selectedStepKey);return this.selectedSubstepKey?(null===a||void 0===a||null===(t=a.substeps)||void 0===t||null===(n=t.find((function(t){return t.substepKey===e.selectedSubstepKey})))||void 0===n?void 0:n.title)||"":(null===a||void 0===a?void 0:a.label)||""}return this.stepperService.currentStep&&this.stepperService.currentStep.label?this.stepperService.currentStep.label:this.stepperService.getFirstStep().label},percentage:function(){var e=this.stepsComputed.findIndex((function(e){return e.current}));return(e+1)/this.stepsComputed.length*100},labelProgress:function(){var e=this.stepsComputed.findIndex((function(e){return e.current}));return"".concat(e+1," / ").concat(this.stepsComputed.length)}}),methods:{sanitize:function(e){return Object(u["b"])(e)},updateSteps:function(){var e=this.stepperService.getCurrentStepList(),t=Object(l["e"])(e,this.antragData);this.stepsComputed=t,this.lastUpdated=Date.now(),this.forceRerender()},forceRerender:function(){var e=this;this.renderComponent=!1,this.$nextTick().then((function(){e.renderComponent=!0}))},isActive:function(e){return this.currentStep&&this.currentStep.step.stepKey===e},isLastStep:function(e){return this.steps.length-1===e},subscribeToCurrentStepperList:function(){if(!this.stepperService)return"";this.stepsComputed=this.stepperService.getCurrentStepList()},progress:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.stepperService){if(this.stepperService.progress(e,t,this.disabledUpdate),this.stepperService.currentStep){this.stepperService.currentStep.actionFunc&&this.stepperService.currentStep.actionFunc();var n=this.stepperService.currentStep.link;n&&n!==this.$route.path&&this.$router.push({path:n})}this.updateSteps()}},onClickSubstep:function(e,t){t&&!this.disabled&&(this.$emit("setSubstep",{stepKey:e,substepKey:t}),this.progress(e,t),this.stepClicked=e)},showLastSubstep:function(e,t){var n,a=e===(null===(n=this.stepsComputed)||void 0===n?void 0:n.length)-1;if(!a)return!0;var i=this.getSubsteps(t);return i.length>0&&i[0].title},onClickStep:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.disabled||(this.$emit("setStep",e,t),this.progress(e,n))},getSubsteps:function(e){var t;return(null===e||void 0===e||null===(t=e.substeps)||void 0===t?void 0:t.length)>0?e.substeps:[{}]},stepperStatus:function(e){var t=this.stepType;return"tab"===t?e.warning?"warning":"default":e.warning?"warning":e.success?"success":"default"},hasSubstepWarning:function(e){return!(null===e||void 0===e||!e.warning)}},components:{BaseDropdownMenu:s["a"],PhCaretDown:o["PhCaretDown"],DoughnutProgress:c["a"],BaseCollapsable:h["a"],PhCaretRight:o["PhCaretRight"],PhCircle:o["PhCircle"],PhCheckCircle:o["PhCheckCircle"],PhWarningCircle:o["PhWarningCircle"]}},v=m,g=(n("5850"),n("2877")),b=Object(g["a"])(v,a,i,!1,null,"d90a9422",null);t["a"]=b.exports},"084e":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".ampel-gelb[data-v-04fefc4c],.ampel-gruen[data-v-04fefc4c],.ampel-none[data-v-04fefc4c],.ampel-rot[data-v-04fefc4c]{height:16px;width:16px;border-radius:50%}.ampel-rot[data-v-04fefc4c]{background-color:var(--color-danger)}.ampel-gelb[data-v-04fefc4c]{background-color:var(--color-warning)}.ampel-gruen[data-v-04fefc4c]{background-color:var(--color-success)}.ampel-none[data-v-04fefc4c]{background-color:transparent}",""]),e.exports=t},"11b2":function(e,t,n){var a=n("1762");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("4e6b2f48",a,!0,{sourceMap:!1,shadowMode:!1})},1762:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".chart-series[data-v-32c89f60]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:12px 0 0;padding:0}.chart-series li[data-v-32c89f60]{margin:0 8px 8px;text-align:left;width:calc(50% - 32px)}.chart-series li .btn-clear[data-v-32c89f60]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-transition:color .5s ease;transition:color .5s ease}.chart-series li .btn-clear .chart-serie-circle[data-v-32c89f60]{-ms-flex-item-align:center;align-self:center;border-radius:10px;margin:0 6px 0 0;width:12px;height:12px;-webkit-transition:opacity .5s ease;transition:opacity .5s ease;-webkit-box-flex:0;-ms-flex:0 0 12px;flex:0 0 12px}.chart-series li.hidden .btn-clear[data-v-32c89f60]{color:#ccc}.chart-series li.hidden .btn-clear .chart-serie-circle[data-v-32c89f60]{opacity:.5}",""]),e.exports=t},"276c":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{style:e.style},[n("v-chart",{ref:"chart",staticClass:"chart",attrs:{option:e.option,theme:e.themeKey,autoresize:""},on:{legendselectchanged:function(t){return e.legendSelectChanged(t)}}})],1),e.isLegend&&e.hasChartSeries?n("ul",{staticClass:"chart-series"},e._l(e.chartLegend,(function(t,a){return n("li",{key:a,class:{hidden:e.mapHiddenSeries[t.name]}},[n("button",{staticClass:"btn-clear clickable",attrs:{type:"button"},on:{mouseover:function(n){return e.highlightSerie(t,a)},mouseleave:function(n){return e.downplaySerie(t,a)},click:function(n){return e.handleLegendClick(t,a)}}},[n("span",{staticClass:"chart-serie-circle",style:{backgroundColor:e.getColorBySeriesIndex(a)}}),n("span",{staticClass:"chart-serie-label"},[1===e.toggleSerieState[t.name]?n("strong",[e._v(" "+e._s(t.name)+" ")]):n("span",[e._v(" "+e._s(t.name)+" ")])])])])})),0):e._e()])},i=[],r=n("2909"),s=n("5530"),o=n("ade3"),l=(n("a9e3"),n("d81d"),n("13d5"),n("b64b"),n("b0c0"),n("22b4")),c=n("f95e"),u=n("3620"),d=n("2da7"),h=n("ff32"),f=n("104d"),p=n("3094"),m=n("4b2a"),v=n("5c7f"),g=n("a6ea"),b=n("5a0c"),S=n.n(b);Object(l["a"])([c["a"],u["a"],d["a"],h["a"],f["a"],p["a"],m["a"]]);var w={name:"LineChart",mixins:[g["a"]],components:{VChart:v["b"]},provide:Object(o["a"])({},v["a"],{locale:"DE"}),props:{chartData:{type:Array,default:function(){return[]}},chartSeries:{type:Array,default:function(){return[]}},xLabels:{type:Array,default:function(){return[]}},isArea:{type:Boolean,default:!0},gridHeight:{type:Number,default:null},gridLeft:{type:Number,default:null},showDataZoom:{type:Boolean,default:!1},xAxisType:{type:String,default:"time"},isSmallChart:{type:Boolean,default:!1},customTooltipFormatter:{type:Function},hiddenSeries:{type:Object},markAreaData:{type:Array,default:function(){return[]}},markPointData:{type:Array,default:function(){return[]}},chartOptions:{type:Object,default:function(){}},changeOption:{type:Function,default:null}},data:function(){return{mapHiddenSeries:{},externLegend:null,toggleSerieState:{}}},computed:{colors:function(){return this.customColors||this.themeColors},chartLegend:function(){return this.externLegend?this.externLegend:this.chartSeries},option:function(){var e,t,n,a=this,i=Object(s["a"])(Object(s["a"])({type:"line",smooth:!1,animation:!1,symbol:"none"},this.isArea?{areaStyle:{}}:{}),{},{lineStyle:{width:1},emphasis:{lineStyle:{width:3}},markArea:{itemStyle:{borderWidth:1},label:{rotate:90,padding:[4,8,2],borderRadius:4},data:(null===(e=this.markAreaData)||void 0===e?void 0:e.length)>0?Object(r["a"])(this.markAreaData):[]},markPoint:{symbol:"circle",symbolSize:12,data:(null===(t=this.markPointData)||void 0===t?void 0:t.length)>0?Object(r["a"])(this.markPointData):[]}}),o=null!==(n=this.chartSeries)&&void 0!==n&&n.length?this.chartSeries.map((function(e){return Object(s["a"])(Object(s["a"])({},e),i)})):[Object(s["a"])({data:this.chartData},i)],l=this.chartOptions||{},c=Object(s["a"])(Object(s["a"])(Object(s["a"])({color:this.colors,backgroundColor:"transparent",grid:l.grid?l.grid:Object(s["a"])(Object(s["a"])(Object(s["a"])({},this.isSmallChart?{top:0}:{}),{},{height:this.gridHeight||"auto"},this.showDataZoom?{bottom:"100px"}:{bottom:"30px"}),{},{right:"16px"},this.gridLeft&&{left:this.gridLeft}),animation:{duration:0},xAxis:l.xAxis?l.xAxis:{show:this.showXaxis,type:this.xAxisType,boundaryGap:!1,data:this.xLabels,max:"time"===this.xAxisType?void 0:Math.max.apply(null,o.map((function(e){return e.data.length-1}))),axisLabel:{fontSize:10}},yAxis:l.yAxis?l.yAxis:{show:this.showYaxis,type:"value",boundaryGap:!1,axisLabel:{formatter:this.axisLabelFormatter(this.axisLabelFormatterShowOption),fontSize:10},min:function(e){return e.min<0?null:e.min<10?.9*e.min:Math.floor(e.min-.1*e.min)}}},{legend:Object(s["a"])({show:!1,bottom:this.showDataZoom?"10%":0},this.hiddenSeries&&{selected:this.hiddenSeries})}),{},{tooltip:l.tooltip?l.tooltip:{show:this.isTooltip,trigger:"axis",formatter:this.customTooltipFormatter||this.tooltipFormatter,position:{left:"center",top:"auto"}}},this.showDataZoom&&{dataZoom:l.dataZoom?l.dataZoom:[{type:"inside",start:0,end:100},{start:0,end:100,labelFormatter:function(e,t){return"time"===a.xAxisType&&"number"===typeof e?S()(new Date(e)).format("DD.MM.YYYY"):t}}]}),{},{series:l.series?l.series:o}),u=this.changeOption?this.changeOption(c):c;return Object(s["a"])(Object(s["a"])({},u||{}),{},{backgroundColor:"transparent"})},hasChartSeries:function(){var e;return(null===(e=this.chartSeries)||void 0===e?void 0:e.length)>0}},watch:{chartSeries:function(){this.$refs.chart.clear(),this.$refs.chart.setOption(this.option,!0)},hiddenSeries:function(){var e=this,t=Object.keys(this.hiddenSeries).reduce((function(t,n){return Object(s["a"])(Object(s["a"])({},t),{},Object(o["a"])({},n,!e.hiddenSeries[n]))}),{});this.mapHiddenSeries=Object(s["a"])(Object(s["a"])({},this.mapHiddenSeries),t)}},methods:{getColorBySeriesIndex:function(e){var t=this.colors.length;if(e>=t){var n=Math.floor(e/t),a=e-t*n;return this.colors[a]}return this.colors[e]},handleToggle:function(e){this.$refs.chart.dispatchAction({type:"legendToggleSelect",name:e.name})},highlightSerie:function(e,t){this.$refs.chart.dispatchAction({type:"highlight",name:e.name,seriesIndex:t})},handleLegendClick:function(e,t){this.toggleSerie(e,t),this.highlightSerie(e,t)},downplaySerie:function(e,t){1!==this.toggleSerieState[e.name]&&this.$refs.chart.dispatchAction({type:"downplay",name:e.name,seriesIndex:t})},toggleSerie:function(e,t){switch(this.toggleSerieState[e.name]){case 1:this.toggleSerieState[e.name]=2;break;case 2:this.toggleSerieState[e.name]=void 0;break;default:this.toggleSerieState[e.name]=1;break}1===this.toggleSerieState[e.name]&&this.highlightSerie(e,t),2===this.toggleSerieState[e.name]&&this.handleToggle(e),this.toggleSerieState[e.name]||this.handleToggle(e),this.toggleSerieState=Object(s["a"])({},this.toggleSerieState)},legendSelectChanged:function(e){var t=e.name,n=e.selected;this.$set(this.mapHiddenSeries,t,!n[t])}}},y=w,_=(n("9a2a"),n("2877")),k=Object(_["a"])(y,a,i,!1,null,"32c89f60",null);t["a"]=k.exports},"27b5":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("BaseModal",{ref:"vorganglisteModal",attrs:{modalTitle:e.activity,labelButtonConfirm:"Hinzufügen",confirmDisabled:!e.selectedValidRows.length||!e.fondHasIsin,showCancelButton:!e.$isSmallScreen,closeButtonLabel:""},on:{onConfirmButton:e.addFondsToListe}},[e.loading?n("GhostLoading",{attrs:{type:"table"}}):n("Table",{attrs:{headers:e.headers,rows:e.rows,mobileConfig:{title:"label",headers:["fondIncludedPill"],disableClickRow:!0},rowId:"id",rowsPerPage:15,tableRowsPerPage:[]},scopedSlots:e._u([{key:"label",fn:function(t){return[-1==t.id?n("div",[n("InputField",{attrs:{placeholder:e.placeholder,disabled:!e.neuSelected,validateUntouched:e.neuSelected},model:{value:e.newName,callback:function(t){e.newName=t},expression:"newName"}})],1):n("span",[e._v(e._s(t.label))])]}},{key:"isSparplan",fn:function(t){return[-1==t.id?n("div",[n("InputToggleSwitch",{attrs:{label:"",inLineLabel:"",disabled:!e.neuSelected},model:{value:e.isSparplan,callback:function(t){e.isSparplan=t},expression:"isSparplan"}})],1):n("span",[e._v(e._s(t.isSparplan))])]}}]),model:{value:e.selectedRows,callback:function(t){e.selectedRows=t},expression:"selectedRows"}})],1)},i=[],r=n("5530"),s=n("1da1"),o=(n("96cf"),n("99af"),n("a15b"),n("d81d"),n("4de4"),n("7db0"),n("ac1f"),n("1276"),n("c740"),n("a4d3"),n("e01a"),n("c991")),l=n("689f"),c=n("d53f"),u=n("6eb5"),d=n("a871"),h=n("c704"),f=n("9aaa"),p=n("d3ac"),m=n("6ce5"),v=n("cee4"),g=n("c17d"),b={mixins:[p["a"]],validators:{newName:Object(m["s"])("Bitte eine Bezeichnung eingeben.")},components:{Table:l["a"],GhostLoading:u["a"],BaseModal:d["a"],InputField:h["default"],InputToggleSwitch:f["default"]},props:{},data:function(){return{loading:!1,selectedRows:[],fonds:[],activity:"",openIdPath:"",openListPath:"",rows:[],newName:"",placeholder:"",isSparplan:!1}},computed:{headers:function(){return{lockedLeft:[Object(c["SlotColumn"])("label","Bezeichnung",200,1)].concat("MyDepot"==this.activity?[Object(c["SlotColumn"])("isSparplan","Sparplan",200,1)]:[]),center:[Object(c["PillColumn"])("fondIncludedPill","")],lockedRight:[]}},isins:function(){return this.fonds.map((function(e){return e.isin})).join(",")},fondHasIsin:function(){return!!this.isins},selectedValidRows:function(){return this.selectedRows.filter((function(e){return!e.fondIncluded}))},neuSelected:function(){return!!this.selectedRows.find((function(e){return-1==e.id}))}},methods:{loadAuswahlLists:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!0,n=null,"Favoritenlisten"!=e.activity){t.next=8;break}return t.next=5,v["a"].get("/MSC3/restful/favoritenlisteService/favoritenlist?isin="+e.isins,{defaultSpinner:!0});case 5:n=t.sent,t.next=18;break;case 8:if("MyDepot"!=e.activity){t.next=14;break}return t.next=11,v["a"].get("/MSC3/restful/musterdepotService/mydepotlist?isin="+e.isins,{defaultSpinner:!0});case 11:n=t.sent,t.next=18;break;case 14:if("Fondsvergleich"!=e.activity){t.next=18;break}return t.next=17,v["a"].post("/MSC3/restful/consultation/fondsvergleich",{ask:"get_fonds_add",params:{isin:e.isins}},{defaultSpinner:!0});case 17:n=t.sent;case 18:"2"==n.statusText.charAt(0)&&(a=n.data.favoritenList||n.data.liste,a&&(e.rows=a.map((function(t){var n;return Object(r["a"])(Object(r["a"])({},t),{},{selectedDisabled:t.fondIncluded,fondIncludedPill:t.fondIncluded?{label:"bereits enthalten",type:"success"}:(null===(n=t.canInsIsin)||void 0===n?void 0:n.length)<e.fonds.length?{label:"teils enthalten",type:"info"}:null})})),e.rows.unshift({id:-1,label:"",canInsIsin:e.isins.split(","),fondIncluded:!1,fondIncludedPill:{label:e.placeholder,type:"info"}}),e.selectedRows=e.rows.filter((function(e){return e.fondIncluded})))),e.loading=!1;case 20:case"end":return t.stop()}}),t)})))()},addFondsToListe:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n,a,i,r,s,l,c,u,d,h,f,p,m,b,S;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.fondHasIsin&&(!e.neuSelected||e.newName)){t.next=2;break}return t.abrupt("return");case 2:if(n=JSON.parse(JSON.stringify(e.selectedValidRows)),a="/MSC3/restful",i=n.findIndex((function(e){return-1==e.id})),-1===i){t.next=28;break}if(r=null,"Favoritenlisten"!=e.activity){t.next=13;break}return t.next=10,v["a"].post("".concat(a,"/favoritenlisteService/create?labelNew=").concat(e.newName),null,{defaultSpinner:!0});case 10:r=t.sent,t.next=23;break;case 13:if("MyDepot"!=e.activity){t.next=19;break}return t.next=16,v["a"].post("".concat(a,"/favoritenlisteService/create?labelNew=").concat(e.newName,"&isSparplan=").concat(e.isSparplan),null,{defaultSpinner:!0});case 16:r=t.sent,t.next=23;break;case 19:if("Fondsvergleich"!=e.activity){t.next=23;break}return t.next=22,v["a"].post("".concat(a,"/consultation/fondsvergleich"),{ask:"create",params:{labelNew:e.newName}},{defaultSpinner:!0});case 22:r=t.sent;case 23:if("2"==r.statusText.charAt(0)&&r.data.id){t.next=25;break}return t.abrupt("return");case 25:n[i].id=r.data.id,n[i].label=r.data.label,n[i].labelShort=r.data.labelShort||"";case 28:if(s=n.map((function(e){return e.id})),"Favoritenlisten"!=e.activity){t.next=35;break}return l=Object(g["q"])({favoritenlistIds:s,isins:e.isins.split(",")}),t.next=33,v["a"].post("".concat(a,"/favoritenlisteService/addFonds?").concat(l),null,{defaultSpinner:!0});case 33:t.next=44;break;case 35:if("MyDepot"!=e.activity){t.next=41;break}return c=Object(g["q"])({listIds:s,isins:e.isins.split(",")}),t.next=39,v["a"].post("".concat(a,"/musterdepotService/addFonds?").concat(c),null,{defaultSpinner:!0});case 39:t.next=44;break;case 41:if("Fondsvergleich"!=e.activity){t.next=44;break}return t.next=44,v["a"].post("".concat(a,"/consultation/fondsvergleich"),{ask:"add_fonds",params:{listIds:s.join(","),isins:e.isins}},{defaultSpinner:!0});case 44:if(u=!0,1!=e.fonds.length){t.next=58;break}return d=n.map((function(e){return"<li>"+(e.labelShort||e.label)+"</li>"})).join(""),t.prev=47,h=(1==n.length?n[0].labelShort||n[0].label:e.activity)+" öffnen",t.next=51,e.$confirmModal({title:"Erfolg",message:'Der Fond "'.concat(e.fonds[0].fondsname,'" wurde erfolgreich den folgenden ').concat(e.activity," hinzugefügt:<br>\n            <ul>\n              ").concat(d,"\n            </ul>"),labelButtonConfirm:h,labelButtonCancel:"Schlißen"});case 51:t.next=56;break;case 53:t.prev=53,t.t0=t["catch"](47),u=!1;case 56:t.next=68;break;case 58:return f=n.map((function(e){return"<li>in "+(e.labelShort||e.label)+" wurden "+e.canInsIsin.length+" Fonds eingefügt</li>"})).join(""),t.prev=59,p=(1==n.length?n[0].labelShort||n[0].label:e.activity)+" öffnen",t.next=63,e.$confirmModal({title:"Erfolg",message:"Fonds wurden erfolgreich den folgenden ".concat(e.activity," hinzugefügt:<br>\n            <ul>\n              ").concat(f,"\n            </ul>"),labelButtonConfirm:p,labelButtonCancel:"Schlißen"});case 63:t.next=68;break;case 65:t.prev=65,t.t1=t["catch"](59),u=!1;case 68:if(!u){t.next=82;break}if(e.$addBreadcrumb({label:"zurück"}),1!=n.length){t.next=81;break}if("Fondsvergleich"!=e.activity){t.next=78;break}return t.next=74,e.$store.dispatch(o["default"].ACTIONS.SETTINGS,{updateMonth:"1"});case 74:m=t.sent,b=m.fv_params.find((function(e){return e.id==n[0].id})),S=b?{id:b.id,description:b.description,create:b.dateCreated,params:b.params}:{id:n[0].id,description:n[0].label,create:""},e.$store.commit(o["default"].MUTATIONS.SET_ACT,{fvp:S});case 78:e.$router.push(e.openIdPath+n[0].id),t.next=82;break;case 81:e.$router.push(e.openListPath);case 82:case"end":return t.stop()}}),t,null,[[47,53],[59,65]])})))()},open:function(e,t){var n=this;this.fonds=e,this.activity=t;var a=!0;switch(this.newName="",this.selectedRows=[],this.rows=[],t){case"Favoritenlisten":this.openIdPath="/intern/fondsfavoritenliste/wertpapiere/",this.openListPath="/intern/fondsfavoritenliste/list",this.placeholder="neue Favoritenliste";break;case"MyDepot":this.openIdPath="/intern/mydepot/wertpapiere/",this.openListPath="/intern/mydepot/list",this.placeholder="neues Musterdepot";break;case"Fondsvergleich":this.openIdPath="/beratung/fondsvergleich/",this.openListPath="/beratung/fondsvergleich",this.placeholder="neuer Fondsvergleich";break;default:a=!1;break}a&&this.$nextTick((function(){n.loadAuswahlLists(),n.$refs.vorganglisteModal.open()}))}}},S=b,w=n("2877"),y=Object(w["a"])(S,a,i,!1,null,null,null);t["a"]=y.exports},"319e":function(e,t,n){"use strict";n("b0b8")},3999:function(e,t,n){"use strict";n("e606")},"3eed":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".like-link[data-v-2a065c6d]{cursor:pointer}.legend-marker[data-v-2a065c6d]{display:inline-block;vertical-align:top;margin-top:4px}.legend-name[data-v-2a065c6d]{display:inline-block;max-width:180px;margin-left:3px;font-weight:600;font-size:10pt}.label-small[data-v-2a065c6d]{font-size:9pt;margin-left:15px}.raster[data-v-2a065c6d]{cursor:pointer;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(200px,auto));font-size:13px}.font-bold[data-v-2a065c6d]{font-weight:600}.table-pagination[data-v-2a065c6d]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:16px 0 12px}.table-pagination[data-v-2a065c6d],.table-pagination--left[data-v-2a065c6d],.table-pagination--right[data-v-2a065c6d]{display:-webkit-box;display:-ms-flexbox;display:flex}",""]),e.exports=t},4645:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".ampel-gelb[data-v-10256bfe],.ampel-gruen[data-v-10256bfe],.ampel-none[data-v-10256bfe],.ampel-rot[data-v-10256bfe]{height:16px;width:16px;border-radius:50%}.ampel-rot[data-v-10256bfe]{background-color:var(--color-danger)}.ampel-gelb[data-v-10256bfe]{background-color:var(--color-warning)}.ampel-gruen[data-v-10256bfe]{background-color:var(--color-success)}.ampel-none[data-v-10256bfe]{background-color:transparent}",""]),e.exports=t},5850:function(e,t,n){"use strict";n("bf86")},"60e0":function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BaseFilter",{ref:"baseFilter",attrs:{showSaveButton:"",hasSmartSearch:e.hasSmartSearch,filterId:e.saveKey,title:e.title,metadata:e.metadata,configFilter:e.configFilter,extraButton:e.extraButton,predefinedFilter:e.predefinedFilter,showButtons:e.showButtons,immidiateSearch:e.immidiateSearch,isCustomerSearch:e.isCustomerSearch,defaultOptions:e.defaultOptions,searchFromParam:e.searchFromParam,showSearchButton:e.showSearchButton,isCache:e.isCache},on:{onFilter:function(t){return e.filterForm(t)},extraButtonClick:function(t){return e.$emit("extraButtonClick")},changeCombobox:e.onComboboxChange,onFilterZurucksetzen:function(t){return e.onFilterZurucksetzen()}}})],1)},i=[],r=n("5530"),s=(n("d3b7"),n("3ca3"),n("ddb0"),n("2b3d"),n("159b"),n("7db0"),n("4de4"),n("d81d"),n("e260"),n("e6cf"),n("2f62"));function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text/csv;charset=utf-8;",a={type:n},i=new File([t],e,a),r=document.createElement("a"),s=URL.createObjectURL(i);r.setAttribute("href",s),void 0!==r.download?r.setAttribute("download",e):r.target="_blank",r.style.visibility="hidden",document.body.appendChild(r),r.click(),setTimeout((function(){return document.body.removeChild(r)}),0)}var l={props:{title:{type:String},saveKey:{type:String},metadata:{type:Array,default:function(){return[]}},predefinedFilter:{type:Object,default:function(){}},configFilter:{type:Object,default:function(){}},showButtons:{type:Boolean,default:!0},extraButton:{type:Object,default:function(){return null}},isCustomerSearch:{type:Boolean,default:!0},filterId:{type:String},defaultOptions:{type:Object,default:function(){return{}}},searchFromParam:{type:String},immidiateSearch:{type:Boolean,default:!1},hasSmartSearch:{type:Boolean,default:!0},showSearchButton:{type:Boolean,default:!0},isCache:{type:Boolean,default:!1}},emits:["search"],data:function(){return{}},computed:Object(r["a"])({},Object(s["b"])({})),methods:{filterForm:function(e){var t={},n=[],a=[];e.forEach((function(i){if("boolean"===typeof i.value)"fremdGesellschaft"==i.group?(n.push(i.key),t[i.group]=n):"vertragGesellschaft"==i.group?(a.push(i.key),t[i.group]=a):t[i.key]=i.value;else{var r=e.find((function(e){return"pers_daten"==e.group})),s=e.find((function(e){return"Adresse_Geburtsdatum"==e.group})),o=e.find((function(e){return"adresse"==e.group})),l=e.find((function(e){return"courtage"==e.group})),c=e.find((function(e){return"vertragFK"==e.group})),u=e.find((function(e){return"vertragAK"==e.group})),d=e.find((function(e){return"diverses1"==e.group})),h=e.find((function(e){return"diverses2"==e.group})),f=e.find((function(e){return"Versicherungen"==e.group})),p=e.find((function(e){return"Depot"==e.group})),m=e.find((function(e){return"allgemein"==e.group})),v=e.filter((function(e){return"Zusätzliche_Kriterien"==e.group}));if(m&&"dateCreated"==i.key)t["dateCreatedMin"]=i.value.find((function(e){return"min"==e.key})).value,t["dateCreatedMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(r&&"alter"==i.key)t["alterMin"]=i.value.find((function(e){return"min"==e.key})).value,t["alterMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(r&&"gehalt"==i.key)t["gehaltMin"]=i.value.find((function(e){return"min"==e.key})).value,t["gehaltMax"]=i.value.find((function(e){return"max"==e.key})).value;else if((o||s)&&"plzVonBis"==i.key)t["plzBis"]=i.value.find((function(e){return"max"==e.key})).value,t["plzVon"]=i.value.find((function(e){return"min"==e.key})).value;else if(s&&"dayOfBirth"===i.key){var g;t["dayOfBirth"]=null===(g=i.value)||void 0===g?void 0:g.replaceAll(/t|m|j|%/g,"_")}else if(s&&"dayOfBirthVonBis"===i.key)t["dayOfBirthBis"]=i.value.find((function(e){return"max"==e.key})).value,t["dayOfBirthVon"]=i.value.find((function(e){return"min"==e.key})).value;else if(l&&"courtageAbschlussWpVonBis"==i.key)t["courtageAbschlussWp"]=i.value.find((function(e){return"min"==e.key})).value,t["courtageAbschlussWpBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(l&&"courtageBestandVonBis"==i.key)t["courtageBestand"]=i.value.find((function(e){return"min"==e.key})).value,t["courtageBestandBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(l&&"courtageVWLVonBis"==i.key)t["courtageVWL"]=i.value.find((function(e){return"min"==e.key})).value,t["courtageVWLBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(l&&"courtageAbschlussVersVonBis"==i.key)t["courtageAbschlussVers"]=i.value.find((function(e){return"min"==e.key})).value,t["courtageAbschlussVersBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(l&&"courtageBestandVersVonBis"==i.key)t["courtageBestandVers"]=i.value.find((function(e){return"min"==e.key})).value,t["courtageBestandVersBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(c&&"vertragVonBis"==i.key)t["vertragVon"]=i.value.find((function(e){return"min"==e.key})).value,t["vertragBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(c&&"vertragZuruekVonBis"==i.key)t["vertragZuruekVon"]=i.value.find((function(e){return"min"==e.key})).value,t["vertragZuruekBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(u&&"vertragVonBisAK"==i.key)t["vertragVonAK"]=i.value.find((function(e){return"min"==e.key})).value,t["vertragBisAK"]=i.value.find((function(e){return"max"==e.key})).value;else if(c&&"vertragZuruekVonBisAK"==i.key)t["vertragZuruekVonAK"]=i.value.find((function(e){return"min"==e.key})).value,t["vertragZuruekBisAK"]=i.value.find((function(e){return"max"==e.key})).value;else if(d&&"uebertragskontoVonBis"==i.key)t["uebertragskontoVon"]=i.value.find((function(e){return"min"==e.key})).value,t["uebertragskontoBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(h&&"besuchtsberichtVonBis"==i.key)t["besuchtsberichtVon"]=i.value.find((function(e){return"min"==e.key})).value,t["besuchtsberichtBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"Vertragsbegin"==i.key)t["vertragsbeginMin"]=i.value.find((function(e){return"min"==e.key})).value,t["vertragsbeginMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"Vertragsende"==i.key)t["vertragsendeMin"]=i.value.find((function(e){return"min"==e.key})).value,t["vertragsendeMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"Gesamt"==i.key)t["gesamtMin"]=i.value.find((function(e){return"min"==e.key})).value,t["gesamtMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(p&&"Depotwert"==i.key)t["depotMin0"]=i.value.find((function(e){return"min"==e.key})).value,t["depotMax0"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"Beteiligungen"==i.key)t["beteiligungenMin"]=i.value.find((function(e){return"min"==e.key})).value,t["beteiligungenMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"Bankkonto"==i.key)t["bankkontoMin"]=i.value.find((function(e){return"min"==e.key})).value,t["bankkontoMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"Jahresbeitrag"==i.key)t["jahresBetragMin"]=i.value.find((function(e){return"min"==e.key})).value,t["jahresBetragMax"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"Kundbarzum"==i.key)t["vFaeligkeitAb"]=i.value.find((function(e){return"min"==e.key})).value,t["vFaeligkeitBis"]=i.value.find((function(e){return"max"==e.key})).value;else if(f&&"vertragGesellschaft"==i.key)a.push(i.value),t[i.key]=a;else if(f&&"fremdGesellschaft"==i.key)a.push(i.value),t[i.key]=a;else if(!d||"kategorie"!=i.key&&"potential"!=i.key){if("zustimmung"==i.key){var b,S,w,y;t["zustimmGrund"]=(null===(b=i.value)||void 0===b||null===(S=b[0])||void 0===S?void 0:S.value)||"",t["zustimmStatus"]=(null===(w=i.value)||void 0===w||null===(y=w[1])||void 0===y?void 0:y.value)||""}else if("versSparten"===i.group&&i.value)t[i.group]?t[i.group].push(i):t[i.group]=[i];else if("Versicherungen"===i.group&&"vertragStatus"===i.key)t[i.key]?t[i.key].push(i.value):t[i.key]=[i.value];else if("Depot"===i.group&&"vvWK"===i.key)t[i.key]?t[i.key].push(i.value):t[i.key]=[i.value];else if(v&&"zusInformationenFreitext"==i.key)t["zusInformationenFreitext"]=v.filter((function(e){return"zusInformationenFreitext"===e.key})).map((function(e){return e.value}));else if(i.key)if(t[i.key])if(Array.isArray(t[i.key]))t[i.key].push(i.value);else{var _=t[i.key];t[i.key]=[_,i.value]}else t[i.key]=i.value}else t[i.key]?t[i.key]+=","+i.value:t[i.key]=i.value}null!==i&&void 0!==i&&i.filterNot&&(t["filterNot"]||(t["filterNot"]=[]),t["filterNot"].push(i.key))})),this.$emit("search",t)},createItem:function(){return{menuGroupKey:"",menuItemKey:"",menuItemValue:"",type:"",invertedWithParameter:"",menuItemsComboOptions:[],comboOptions:[],footnotes:[],emptyDenied:!1}},onFilterZurucksetzen:function(){this.$emit("onFilterZurucksetzen")},onComboboxChange:function(e,t,n){this.$emit("comboboxChange",e,t,n)}},components:{BaseFilter:function(){return Promise.all([n.e("chunk-5d0f2870"),n.e("chunk-58979324"),n.e("chunk-716c0882")]).then(n.bind(null,"0f82"))}}},c=l,u=n("2877"),d=Object(u["a"])(c,a,i,!1,null,null,null);t["a"]=d.exports},"66a6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.wpRows.length?n("Table",{attrs:{title:e.TABLE_TITLE,tableId:e.tableId,headers:e.wpHeaders,rows:e.wpRows,headerActions:e.headerActions,mobileConfig:{title:"fondsname",headers:["gesellschaft","isin","old_wkn"],singleSelection:e.singleSelection,selectionActive:e.showMobileSelectionAlways},rowId:"rowId",rowsPerPage:15,selected:e.selectedRows,exportConfig:e.exportConfig},on:{selected:e.onSelect,"click-fondsname":e.gotoFondsinfo,action:e.handleAction,"action-ADD_FAVORITENLISTE":function(t){return e.openAddFondsToListModal(t,"Favoritenlisten")},"action-ADD_MYDEPOT":function(t){return e.openAddFondsToListModal(t,"MyDepot")},"action-ADD_FONDSVERGLEICH":function(t){return e.openAddFondsToListModal(t,"Fondsvergleich")},headerAction:e.handleHeaderAction},scopedSlots:e._u([{key:"selected",fn:function(t){return[n("InputRadioBoxItem",{attrs:{name:"selectFonds"},on:{change:function(n){return e.onSingleSelect(t)}}})]}},{key:"fonds_ampel",fn:function(e){var t=e.fonds_ampel;return[n("div",{class:t})]}}],null,!1,2749756181)}):e.loading?n("GhostLoading",{attrs:{type:"table",title:e.TABLE_TITLE}}):n("NoData",{attrs:{title:e.TABLE_TITLE,content:"Es wurden keine Einträge gefunden"}}),n("AddFondsToListModal",{ref:"addFondsToListModal"})],1)},i=[],r=n("5530"),s=(n("d81d"),n("159b"),n("4de4"),n("caad"),n("2532"),n("99af"),n("1f4d")),o=n("689f"),l=n("d53f"),c=n("b1a7"),u=n("6eb5"),d=n("b924"),h=n("27b5"),f="Wertpapierliste",p={components:{InputRadioBoxItem:s["a"],Table:o["a"],NoData:c["a"],GhostLoading:u["a"],NumberCell:d["a"],AddFondsToListModal:h["a"]},model:{prop:"selected",event:"selected"},props:{selected:{type:Array,default:function(){return null}},tableId:{type:String,default:"edbcf7d7-6b85-4128-b8bb-22ef17c18c50"},rows:{type:Array,default:function(){return[]}},headers:{type:Array,default:function(){return[]}},headerActions:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:!1},singleSelection:{type:Boolean,default:!1},canAddToFavoritenliste:{type:Boolean,default:!1},canAddToMyDepot:{type:Boolean,default:!1},canAddToFondsvergleich:{type:Boolean,default:!1},exportConfig:{type:Object,default:function(){return{roottext:"Wertpapierliste"}}},type:{type:String,default:"I"},showMobileSelectionAlways:{type:Boolean,default:!1}},data:function(){return{TABLE_TITLE:f,useSelected:!1,selectedRow:null}},watch:{selected:{handler:function(e){this.useSelected=!!e},immediate:!0}},computed:{selectedRows:function(){return(!this.singleSelection||this.$isSmallScreen)&&this.selected||null},wpRows:function(){var e=this;return this.rows.map((function(t){var n;return Object(r["a"])(Object(r["a"])({},t),{},{rowId:t.isin||(null===(n=t._fondsData)||void 0===n?void 0:n.isin),actions:e.makeActions(t)})}))},wpHeaders:function(){var e={lockedLeft:[],center:[],lockedRight:[]};return this.useSelected&&this.singleSelection&&e.lockedLeft.push(Object(l["SlotColumn"])("selected"," ",50)),this.headers.filter((function(e){return e.visible})).forEach((function(t){switch(t.lockedColumn){case"left":e.lockedLeft.push(Object(l["oldToNewColumn"])(t.key,t.label,t.dataType,t.cellProps,t.minWidth,t.clickable,t.sortable||!0));break;case"right":e.lockedRight.push(Object(l["oldToNewColumn"])(t.key,t.label,t.dataType,t.cellProps,t.minWidth,t.clickable,t.sortable||!0));break;default:var n=Object(l["oldToNewColumn"])(t.key,t.label,t.dataType,t.cellProps,t.minWidth,t.clickable,t.sortable||!0);n.addCellProps({lineClamp:4}),n&&n.rowElement==d["a"]&&n.setColorFn((function(e){return e[n.key]<0?"color-danger":null})),n&&"fonds_ampel"===n.key&&n.makeSortable((function(e){return"ampel-gruen"===e?4:"ampel-gelb"===e?3:"ampel-rot"===e?2:1})),e.center.push(n);break}})),e}},methods:{makeActions:function(e){var t,n=[];return null===(t=e.actions)||void 0===t||t.forEach((function(e){var t=e.key||e.actionKey;e.href?e.href.includes(".pdf")?n.push(Object(l["DownloadLinkHrefAction"])(t,e.icon,e.label,"".concat(e.label,".pdf"),e.href)):n.push(Object(l["LinkAction"])(t,e.icon,e.label,e.href)):n.push(Object(l["SimpleAction"])(t,e.icon,e.label))})),this.canAddToFavoritenliste&&n.push(Object(l["SimpleAction"])("ADD_FAVORITENLISTE","PhPlusCircle","Zur Favoritenliste hinzufügen")),this.canAddToMyDepot&&n.push(Object(l["SimpleAction"])("ADD_MYDEPOT","PhPlusCircle","Zum Musterdepot hinzufügen")),this.canAddToFondsvergleich&&n.push(Object(l["SimpleAction"])("ADD_FONDSVERGLEICH","PhPlusCircle","Zum Fondsvergleich hinzufügen")),n},handleAction:function(e){var t=e.key,n=e.row;this.$emit("action",{key:t,row:n}),this.$emit("action-".concat(t),n)},handleHeaderAction:function(e){var t=e.key,n=e.value;this.$emit("headerAction",{key:t,value:n}),this.$emit("headerAction-".concat(t),n)},onSelect:function(e){this.$emit("selected",e)},onSingleSelect:function(e){this.$emit("selected",[e])},emitSelected:function(){this.$emit("selected-funds",this.selected)},gotoFondsinfo:function(e){var t;this.$addBreadcrumb({fullPath:this.$route.fullPath});var n=e.isin||(null===(t=e._fondsData)||void 0===t?void 0:t.isin),a="B"===this.type?"beteiligungen":"vermogensubersicht";this.$router.push("/shared/".concat(a,"/fondsinfo/").concat(n))},openAddFondsToListModal:function(e,t){this.selectedRow=e,this.$refs.addFondsToListModal.open([e],t)}}},m=p,v=(n("9708"),n("2877")),g=Object(v["a"])(m,a,i,!1,null,"04fefc4c",null);t["a"]=g.exports},6991:function(e,t,n){"use strict";n("ab48")},"70bb":function(e,t,n){var a=n("4645");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("26ab9e21",a,!0,{sourceMap:!1,shadowMode:!1})},"79ef":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.showAsTable?n("div",[n("SortableTable",{ref:"sortableTable",attrs:{headers:e.legendHeaders,rows:e.rowsWithId,scrollHorizontally:!1,pageSize:e.pageSize,page:e.pageIndex,maxHeaderLines:1,sortedManually:e.sortedManually,sortableRows:e.sortRows},on:{sort:e.onSort,orderChanged:e.onOrderChanged},scopedSlots:e._u([{key:"header_marker",fn:function(){return[n("InputCheckBoxItem",{staticStyle:{"margin-left":"3px"},attrs:{value:e.areAllSelected,indeterminate:e.areOnlySomeSelected,tid:"legendTable"},on:{input:e.changeStatus}})]},proxy:!0},{key:"marker",fn:function(t){var a=t.row;return[n("div",{staticClass:"like-link",style:a.marker,on:{click:function(t){return e.onClickLegend(a.name)}}})]}},{key:"name",fn:function(t){var a=t.row;return[n("div",{staticClass:"like-link",style:a.styName,on:{click:function(t){return e.onClickLegend(a.name)},mouseover:function(t){return e.changeHighlight(a.name,!0)},mouseleave:function(t){return e.changeHighlight(a.name,!1)}}},[e._v(e._s(a.name))])]}}],null,!1,3060069712)}),e.legendRows.length>e.pageSize?n("div",{staticClass:"table-pagination"},[n("div",{staticClass:"table-pagination--left"},[n("PageRowCount",{attrs:{displayedItems:e.displayedRowCount,totalRows:e.legendRows.length}})],1),n("div",{staticClass:"table-pagination--right"},[e.displayedRowCount<e.legendRows.length?n("Pagination",{attrs:{totalPages:e.pageCount,currentPage:e.pageIndex},on:{pagechanged:e.onPageChange}}):e._e()],1)]):e._e()],1):n("div",{staticClass:"raster"},e._l(e.legendRows,(function(t){return n("div",{key:t.name,on:{click:function(n){return e.onClickLegend(t.name)},mouseover:function(n){return e.changeHighlight(t.name,!0)},mouseleave:function(n){return e.changeHighlight(t.name,!1)}}},[n("div",[n("div",{staticClass:"legend-marker"},[n("div",{style:t.marker})]),n("div",{staticClass:"legend-name",style:t.styName},[e._v(e._s(t.name))])]),e.addOnHeaders&&e.addOnHeaders.length?e._l(e.addOnHeaders,(function(a,i){return n("div",{key:i},[t[a.key]?n("div",[n("span",{staticClass:"label-small"},[e._v(e._s(a.label)+" ")]),n("span",{staticClass:"font-bold"},[e._v(e._s(e.displayValue(t,a)))]),a.props&&a.props.symbol?n("span",[e._v(" "+e._s(a.props.symbol))]):e._e()]):e._e()])})):e._e()],2)})),0)])},i=[],r=n("5530"),s=n("2909"),o=(n("d81d"),n("b0c0"),n("159b"),n("99af"),n("7db0"),n("4e82"),n("fb6a"),n("1e55")),l=n("d53f"),c=n("5818"),u=n("a2c9"),d=n("3a1a"),h=n("5cb0"),f={components:{SortableTable:o["a"],InputCheckBoxItem:c["a"],PageRowCount:d["a"],Pagination:h["a"]},mixins:[],props:{showAsTable:{type:Boolean,default:!0},chartSeries:{type:Array,required:!0},lineChart:{type:Object,required:!0},addOnHeaders:{type:Array,required:!1},addOnRows:{type:Object,required:!1},sortRows:{type:Boolean,default:!1}},data:function(){return{legendRows:[],sortedManually:null,unsorted:"",pageIndex:0,pageSize:20}},computed:{legendHeaders:function(){var e=[Object(l["SlotColumn"])("marker",null,50,0).makeAlwaysVisible()];return e.push(Object(l["SlotColumn"])("name","Name",150).makeAlwaysVisible().makeSortable()),{lockedLeft:e,center:this.addOnHeaders||[],lockedRight:[]}},rowsWithId:function(){return this.legendRows.map((function(e){return{id:e.name,row:e,acceptsFile:!1}}))},pageCount:function(){return Math.ceil(this.legendRows.length/this.pageSize)},displayedRowCount:function(){return this.pageIndex<this.pageCount-1?this.pageSize:this.legendRows.length-this.pageSize*this.pageIndex},hiddenSeries:function(){var e={};return this.legendRows.forEach((function(t){e[t.name]=!!t.status})),e},areAllSelected:function(){return this.legendRows.every((function(e){return e.status}))},areOnlySomeSelected:function(){return this.legendRows.some((function(e){return e.status}))&&this.legendRows.some((function(e){return!e.status}))}},watch:{chartSeries:"setLegendRows",addOnRows:"setLegendRows"},mounted:function(){this.sortRows&&(this.sortedManually={ascending:!0,key:null}),this.setLegendRows()},beforeDestroy:function(){this.sortRows&&this.$emit("newOrder",this.legendRows)},methods:{onOrderChanged:function(e){var t=Object(s["a"])(e);this.unsorted=JSON.stringify(t),this.setLegendRowsValue(t)},setLegendRows:function(){var e,t=this,n={};null!==(e=this.chartSeries)&&void 0!==e&&e.length&&!this.chartSeries[0].newSeries&&this.legendRows.forEach((function(e){return n[e.name]=e}));var a=this.chartSeries.map((function(e,a){var i,s,o,l,c=null!=(null===n||void 0===n||null===(i=n[e.name])||void 0===i?void 0:i.status)?n[e.name].status:e.hidden?0:e.highlight?3:1,u=t.legendStyle({name:e.name,color:e.color,status:c});return null!==(s=t.addOnRows)&&void 0!==s&&s[e.name]&&(u=Object(r["a"])(Object(r["a"])({},u),t.addOnRows[e.name])),!c&&null!==(o=t.lineChart)&&void 0!==o&&null!==(l=o.$refs)&&void 0!==l&&l.chart&&t.lineChart.$refs.chart.dispatchAction({type:"legendUnSelect",name:u.name}),t.sortRows&&(u.oben=[],u.unten=[]),u}));this.unsorted=JSON.stringify(a),this.pageIndex=0,this.setLegendRowsValue(a)},legendStyle:function(e){var t=e.status?1==e.status?10:12:8,n=6-t/2,a=e.status?1:.5;e.marker="background-color:".concat(e.color,";width:").concat(t,"px;height:").concat(t,"px;border-radius:50%;opacity:").concat(a,";margin:").concat(n,"px;");var i=3==e.status?600:400;return e.styName="opacity:".concat(a,";font-weight:").concat(i,";"),e},onClickLegend:function(e){var t,n,a=this.legendRows.find((function(t){return t.name===e}));if(a&&(null!==(t=this.lineChart)&&void 0!==t&&null!==(n=t.$refs)&&void 0!==n&&n.chart)){var i,r;if(0===a.status)a.status=1;else{var s,o;if(3!==a.status)return a.status=3,null!==(s=this.lineChart)&&void 0!==s&&null!==(o=s.$refs)&&void 0!==o&&o.chart&&this.lineChart.$refs.chart.dispatchAction({type:"highlight",seriesName:e}),void this.legendStyle(a);a.status=0}this.legendStyle(a),this.lineChart.handleToggle&&this.lineChart.handleToggle(e),null!==(i=this.lineChart)&&void 0!==i&&null!==(r=i.$refs)&&void 0!==r&&r.chart&&this.lineChart.$refs.chart.dispatchAction({type:a.status?"legendSelect":"legendUnSelect",name:e}),this.$emit("changeVisible",e,a.status,this.legendRows)}},changeHighlight:function(e,t){var n=this.legendRows.find((function(t){return t.name===e}));if(1===n.status||2===n.status){var a,i;if(1===n.status&&!t||2===n.status&&t)return;n.status=t?2:1,this.legendStyle(n),null!==(a=this.lineChart)&&void 0!==a&&null!==(i=a.$refs)&&void 0!==i&&i.chart&&this.lineChart.$refs.chart.dispatchAction({type:2===n.status?"highlight":"downplay",seriesName:e}),this.$emit("changeHighlight",e,t)}},changeStatus:function(e){var t=this;this.legendRows.forEach((function(n){var a,i;if(n.status&&!e)n.status=0,null!==(a=t.lineChart)&&void 0!==a&&null!==(i=a.$refs)&&void 0!==i&&i.chart&&t.lineChart.$refs.chart.dispatchAction({type:"legendUnSelect",name:n.name}),t.legendStyle(n);else if(!n.status&&e){var r,s;n.status=1,null!==(r=t.lineChart)&&void 0!==r&&null!==(s=r.$refs)&&void 0!==s&&s.chart&&t.lineChart.$refs.chart.dispatchAction({type:"legendSelect",name:n.name}),t.legendStyle(n)}}))},displayValue:function(e,t){var n=e[t.key];return"number"==typeof n&&(n=Object(u["a"])(n,2)),n},setLegendRowsValue:function(e){this.legendRows=e},onPageChange:function(e){this.pageIndex=Math.max(0,Math.min(this.pageCount-1,e))},onSort:function(e){if(e.key){var t=function(e){return e};"number"===typeof this.legendRows[0][e.key]?t=l["numberToSortable"]:"string"===typeof this.legendRows[0][e.key]&&(t=l["textToSortable"]);var n=this.legendRows.slice().sort((function(n,a){var i=t(n[e.key]),r=t(a[e.key]);return i==r?0:i<r?e.ascending?-1:1:e.ascending?1:-1}));this.setLegendRowsValue(n)}else this.setLegendRowsValue(JSON.parse(this.unsorted));this.sortedManually=e}}},p=f,m=(n("6991"),n("2877")),v=Object(m["a"])(p,a,i,!1,null,"2a065c6d",null);t["a"]=v.exports},"963c":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("OptionMenu",{attrs:{id:e.$appNavigation.currentOptionMenuId,defaultMenu:e.$appNavigation.currentOptionMenu}}),n("PageHeaderTitleNavigation",{attrs:{title:e.$appNavigation.currentMenu.label,subtitle:e.fvp.description+" "+e.fvp.create,id:e.$appNavigation.currentOptionMenuId,actions:e.actions},on:{"action-PDF":function(t){return e.fvpAction("pdf")},"action-XLS":function(t){return e.fvpAction("xls")},"action-PDF_MAIL":function(t){return e.fvpAction("mail")},"action-AN_EMP":function(t){return e.fvpAction("an_emp")},"action-ORDER":function(t){return e.fvpAction("order")},"action-EDIT_DESCRIPTION":e.editFVDesc}}),e.steps&&e.isSmallOrMediumScreen?n("BoxContainer",[n("Stepper3",{attrs:{stepperName:"fondsvergleich",selectedStepKey:e.selectedStepKey,selectedSubstepKey:e.selectedSubstepKey,stepperService:e.steps},on:{setStep:function(t){return e.setStepByKeyOrObject(t)},setSubstep:function(t){return e.setStepByKeyOrObject(t)}}})],1):e._e(),e.selected&&!e.isSmallOrMediumScreen?n("BoxContainer",[n("Table",{attrs:{title:"Ausgewählte Investmentfonds",headers:e.selectedFundsHeaders,mobileConfig:{title:"Ausgewählte Investmentfonds",headers:["fondsname","isin","actions"],disableClickRow:!0},rows:e.fundsRows,headerActions:e.tableActions,rowId:"isin",hidePagination:""},on:{"action-DELETE":function(t){return e.delFunds(t)},headerAction:e.handleHeaderAction},scopedSlots:e._u([{key:"fondsname",fn:function(t){var a=t.fondsname,i=t.isin;return[n("a",{on:{click:function(t){return e.gotoFondsinfo(i)}}},[e._v(e._s(a))])]}}],null,!1,739024575),model:{value:e.delSelection,callback:function(t){e.delSelection=t},expression:"delSelection"}})],1):e._e(),e.isSmallOrMediumScreen?e._e():n("ContentWithStepper",{attrs:{stepperCollapsed:e.stepperCollapsed},scopedSlots:e._u([{key:"stepper",fn:function(){return[n("BoxContainer",[n("VerticalStepper",{attrs:{stepType:"tab",visible:!0,stepperName:"fondsvergleich",selectedStepKey:e.selectedStepKey,selectedSubstepKey:e.selectedSubstepKey,stepperService:e.steps,showCollapse:!0},on:{setStep:function(t){return e.setStep(t)},setSubstep:function(t){return e.setStep(t)},collapsed:function(t){e.stepperCollapsed=t}}})],1)]},proxy:!0},{key:"content",fn:function(){return[n("CompareFunds",{ref:"cmpFunds",attrs:{colorsOrder:e.colorsOrder,setColorsOrder:e.setColorsOrder,stepKey:e.selected,settings:e.config},on:{setStep:function(t){return e.setStep(t)},done:function(t){return e.doneStep(t)}}})]},proxy:!0}],null,!1,3559020881)}),n("BaseModal",{ref:"editBezeichnung",attrs:{modalTitle:"Fondsvergleich Bezeichnung",labelButtonConfirm:"Übernehmen",labelButtonCancel:"Abbrechen",size:"sm"},on:{onConfirmButton:function(t){return e.onChangeDesc()}}},[n("InputField",{attrs:{label:""},model:{value:e.fvp.description,callback:function(t){e.$set(e.fvp,"description",t)},expression:"fvp.description"}})],1),n("BaseModal",{ref:"modalRef",attrs:{modalTitle:"Bitte einen Fondsvergleich starten",showConfirmButton:!1,labelButtonCancel:"Schließen",isModalAsFullPage:!1}},[n("div")]),n("BaseModal",{ref:"editModal",attrs:{modalTitle:e.editModalTitle,size:"lg",showCancelButton:!1,actions:e.baseModalActions,showConfirmButton:!1,autoCloseOnRouteNavigation:!1},on:{onCloseButton:function(t){return e.onCloseEditModal()},action:e.handleModalActions}},[n("CompareFunds",{ref:"cmpFunds",attrs:{colorsOrder:e.colorsOrder,setColorsOrder:e.setColorsOrder,stepKey:e.selected,settings:e.config},on:{setStep:function(t){return e.setStep(t)},done:function(t){return e.doneStep(t)}}})],1)],1)},i=[],r=n("1da1"),s=n("2909"),o=n("5530"),l=(n("96cf"),n("07ac"),n("d81d"),n("99af"),n("7db0"),n("a4d3"),n("e01a"),n("a15b"),n("b64b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.contentReady?n("div",["AUSGEWAEHLTE_INVESTMENTFONDS"===e.stepKey&&e.isSmallOrMediumScreen?[n("Table",{attrs:{title:"Ausgewählte Investmentfonds",headers:e.selectedFundsHeaders,mobileConfig:{title:"Ausgewählte Investmentfonds",headers:["fondsname","isin","actions"],disableClickRow:!0},rows:e.fundsRows,headerActions:e.tableActions,rowId:"isin",hidePagination:""},on:{"action-DELETE":e.delFunds,headerAction:e.handleHeaderAction},scopedSlots:e._u([{key:"fondsname",fn:function(t){var a=t.fondsname,i=t.isin;return[n("a",{on:{click:function(t){return e.gotoFondsinfo(i)}}},[e._v(e._s(a))])]}}],null,!1,739024575),model:{value:e.delSelection,callback:function(t){e.delSelection=t},expression:"delSelection"}})]:e._e(),"FILTER"===e.stepKey?[n("WertpapierSearch",{ref:"wp_filter",staticClass:"search-filter",attrs:{name:"CompareFunds",type:"I",respond:3,initSelected:e.selFunds,isSelectable:""},on:{selected:e.selectedRow},scopedSlots:e._u([{key:"beforeTable",fn:function(){return[n("p",[e._v("Bitte wählen Sie die Wertpapiere für den Vergleich. (wiederholt suchen ist möglich)")]),n("BaseButton",{attrs:{isPrimary:"",disabled:!e.selectedWertpapier||!e.selectedWertpapier.length},on:{click:function(t){return e.addSelectedFonds()}}},[e._v("Hinzufügen")])]},proxy:!0}],null,!1,2248933709)}),e.isSmallOrMediumScreen?e._e():n("div",{staticClass:"box__container"},[n("BaseButton",{attrs:{disabled:!e.selFunds.length},on:{click:e.setAuswahl}},[e._v("Weiter")])],1)]:e._e(),"EINSTELLUNG"===e.stepKey?[n("div",[e.isSmallOrMediumScreen?n("div",{staticClass:"box__container"},[n("span",{staticClass:"text-bold"},[e._v(e._s(e.selFunds.length)+" Fonds, "+e._s(e.indices.length)+" Börsenindizes")])]):e._e(),e.settings&&e.settings.showWertEntw?n("div",{staticClass:"box__container"},[n("div",{staticClass:"box__title"},[e._v("Wertentwicklung Chart")]),n("InputRadioBoxGroup",{attrs:{values:e.wentwOption},model:{value:e.wentwVal,callback:function(t){e.wentwVal=t},expression:"wentwVal"}}),e.wentwVal&&e.wentwVal===e.wentwOption[0].value?[n("ComboBox",{attrs:{label:"Anzahl Jahre",values:e.wentwJahrOpt,isComponentHalfSize:"",sortComboboxValues:!1},model:{value:e.wentwJahr,callback:function(t){e.wentwJahr=t},expression:"wentwJahr"}}),n("InputCheckBoxItem",{attrs:{label:"&nbsp;Startdatum anpassen"},model:{value:e.cbAnpassen,callback:function(t){e.cbAnpassen=t},expression:"cbAnpassen"}}),e._v(" Hat eines der Wertpapiere zum gewählten Startdatum keine Kurse, so wird der betrachtete Zeitraum automatisch so verkürzt, dass für alle Wertpapiere über den gesamten Zeitraum Kurse vorhanden sind. "),n("div",{staticClass:"mt-2"},[e._v("Beginn der Wertentwicklung: "+e._s(e.startDate))])]:e._e(),e.wentwVal&&e.wentwVal===e.wentwOption[1].value?[n("div",[e._v("Zeitraum")]),n("DatePickerField",{attrs:{label:"von",isComponentHalfSize:""},on:{input:e.setSettings},model:{value:e.zeitraum_von,callback:function(t){e.zeitraum_von=t},expression:"zeitraum_von"}}),n("DatePickerField",{attrs:{label:"bis",isComponentHalfSize:""},on:{input:e.setSettings},model:{value:e.zeitraum_bis,callback:function(t){e.zeitraum_bis=t},expression:"zeitraum_bis"}})]:e._e()],2):e._e(),e.settings&&e.settings.showRisiko?n("div",{staticClass:"box__container"},[n("div",{staticClass:"box__title"},[e._v("Rendite-Risiko Chart")]),n("InputRadioBoxGroup",{attrs:{values:e.risikoOption},on:{change:function(){}},model:{value:e.risikoJahr,callback:function(t){e.risikoJahr=t},expression:"risikoJahr"}})],1):e._e()]),n("div",[n("div",{staticClass:"box__container"},[n("Table",{attrs:{title:"Investmentfonds",headers:e.investmentFundsHeaders,rows:e.allFunds,rowId:"isin",rowsPerPage:25,selected:e.selFunds},on:{selected:function(t){return e.selectedFunds(t)},"action-DELETE":e.delFunds,"action-FACTSHEET":function(t){return e.viewDocument(t.FACTSHEET)},"action-FACTSHEET_KAG":function(t){return e.viewDocument(t.FACTSHEET_KAG)},"action-KID":function(t){return e.viewDocument(t.KID)}},scopedSlots:e._u([{key:"fondsAmpel",fn:function(e){var t=e.fondsAmpel;return[n("div",{class:t})]}},{key:"aa_manuell",fn:function(t){var a=t.isin,i=t.aa_manuell;return[n("InputField",{attrs:{value:i},on:{change:function(t){return e.setAaManuell(a,t)}}})]}}],null,!1,3864811172)}),n("BaseButton",{attrs:{isSecondary:""},on:{click:function(t){return e.$emit("setStep","FILTER")}}},[e._v("Zurück zur Fondsauswahl")])],1),n("div",{staticClass:"box__container"},[n("div",{staticClass:"box__title"},[e._v("Vergleichoptionen auswählen")]),n("InputChips",{staticClass:"p-0 indices",attrs:{label:"Indizes",isComponentHalfSize:"",availableOptions:e.indicesOption,showToggle:!0},model:{value:e.indicesSelected,callback:function(t){e.indicesSelected=t},expression:"indicesSelected"}})],1),n("div",{staticClass:"fc-form-danger"},[e._v(e._s(e.errStr))]),e.isSmallOrMediumScreen?e._e():n("div",{staticClass:"box__container"},[n("div",[n("div",{staticClass:"layout__negative-margin--8"},[n("BaseButton",{attrs:{isSecondary:""},on:{click:e.resetVergleich}},[e._v("Vergleich zurückstellen")]),n("BaseButton",{attrs:{disabled:!e.selFunds.length&&!e.indices.length||e.ergebnisLoadingActive,animated:e.ergebnisLoadingActive},on:{click:e.getVergleich}},[e._v("Vergleich starten mit "+e._s(e.selFunds.length)+" Fonds, "+e._s(e.indices.length)+" Börsenindizes")])],1)])])])]:e._e(),"STAMMDATEN"===e.stepKey?[n("div",[e.hasStammdatenData||e.ergebnisLoading.fondsDaten?n("div",{staticClass:"box__container"},[n("InputRadioBoxGroup",{attrs:{values:[{label:"Anzeige als Zeilen",value:!0},{label:"Anzeige als Spalten",value:!1}],disabled:e.ergebnisLoading.fondsDaten},model:{value:e.showDatenAsCols,callback:function(t){e.showDatenAsCols=t},expression:"showDatenAsCols"}})],1):e._e(),e.ergebnisLoading.fondsDaten?n("GhostLoading",{attrs:{type:"table",useBoxContainer:""}}):e.stammdaten.rowsCount&&e.showDatenAsCols?n("div",{staticClass:"box__container"},[n("Table",{ref:"tblStamm",staticClass:"table-container",attrs:{headers:e.stammdaten.headers,rows:e.stammdaten.rows,scrollHorizontally:!e.scrollFirstColunm,rowId:"ISIN",hidePagination:""},on:{"action-FACTSHEET":function(t){return e.viewDocument(t.FACTSHEET)},"action-FACTSHEET_KAG":function(t){return e.viewDocument(t.FACTSHEET_KAG)},"action-KID":function(t){return e.viewDocument(t.KID)}},scopedSlots:e._u([{key:"AUFLAGEDATUM",fn:function(t){var n=t.AUFLAGEDATUM;return[e._v(" "+e._s(e.timeToStr(n))+" ")]}},{key:"KURS1",fn:function(t){var n=t.KURS1;return[e._v(" "+e._s(e.timeToStr(n))+" ")]}},{key:"header_wertpapier",fn:function(t){return[n("span",{},[e._v("Wertpapier ")])]}},{key:"wertpapier",fn:function(t){var a=t.wertpapier;return[n("div",{staticStyle:{"min-width":"150px"}},[e._v(e._s(a))])]}}],null,!1,1605706902)})],1):e.stammdaten.rowsCount&&!e.showDatenAsCols?n("div",[e._l(e.stammdaten.records,(function(t,a){return[n("div",{key:"T"+a,staticClass:"box__title ml-2"},[e._v(e._s(t.label))]),n("div",{key:"R"+a,staticClass:"box__container row p-2"},e._l(e.isinRow,(function(a){return n("div",{key:a,staticClass:"col-6 col-lg-4 col-xl-3"},[e._v(e._s(e.showValue(t[a])))])})),0)]}))],2):n("FondsVergleichNoData",{on:{click:e.emitEinstellungStep}})],1)]:e._e(),"WERTENTICK"===e.stepKey?[e.ergebnisLoading.wertentwicklung?n("GhostLoading",{attrs:{useBoxContainer:""}},[n("Block",{attrs:{height:"300"}})],1):e.hasWertentwicklungData?n("div",{staticClass:"box__container"},[n("div",{staticClass:"flex-c-c"},[n("ComboBox",{staticClass:"mt-1 child-w2",attrs:{values:e.wentwChartOpt,sortComboboxValues:!1},model:{value:e.wentwChartVal,callback:function(t){e.wentwChartVal=t},expression:"wentwChartVal"}}),n("InputCheckBoxItem",{staticClass:"child-w3",attrs:{label:"&nbsp;nach Agio"},model:{value:e.cbAgio,callback:function(t){e.cbAgio=t},expression:"cbAgio"}}),n("InputCheckBoxItem",{staticClass:"child-w3",attrs:{label:"&nbsp;nach Steuern"},model:{value:e.cbSteuern,callback:function(t){e.cbSteuern=t},expression:"cbSteuern"}}),n("InputCheckBoxItem",{staticClass:"child-w3",attrs:{label:"&nbsp;Rendite p.a."},model:{value:e.cbRenditePA,callback:function(t){e.cbRenditePA=t},expression:"cbRenditePA"}})],1),n("div",[n("ChartFunds",{attrs:{type:"Fondsvergleich",chartData:e.chartWertentwicklung,sortLegend:!0},on:{newOrder:e.changeLegendSort,newZeitIntervall:e.changeZeitIntervall},scopedSlots:e._u([{key:"beforLegend",fn:function(){return[n("InputChips",{staticClass:"mb-2 indices",attrs:{label:"zusätzliche Benchmark verwalten *",availableOptions:e.indicesWEOption,showToggle:!0},on:{addItem:e.addWEIntex,removeItem:e.removeWEIntex},model:{value:e.indicesWESelected,callback:function(t){e.indicesWESelected=t},expression:"indicesWESelected"}})]},proxy:!0}],null,!1,2322185558)}),[n("div",{staticClass:"mt-3",staticStyle:{"font-size":"13px"}},[e._v("* Zur Gewährleisung eines korrekten Vergleichs ist die Wertentwicklung des Vergleichsindex immer in Bezug auf die erfolgten Kapitalein- bzw. auszahlungen (zeit- und kapitalgewichtete Performancemessung) im jeweilig ausgewählten Zeitraum zu sehen, weshalb die nur auf die Zeitspanne bezogene Index-Performance erheblich abweichen kann.")])]],2)]):n("FondsVergleichNoData",{on:{click:e.emitEinstellungStep}})]:e._e(),"RENDITERISIKO"===e.stepKey?[e.ergebnisLoading.rendRisiko?n("GhostLoading",{attrs:{useBoxContainer:""}},[n("Block",{attrs:{height:"300"}})],1):e.hasRendRisikoDaten?n("div",{staticClass:"box__container"},[n("div",{staticClass:"flex-c-c"},[n("InputCheckBoxItem",{staticClass:"child-w3",attrs:{label:"&nbsp;nach Agio"},model:{value:e.cbAgio,callback:function(t){e.cbAgio=t},expression:"cbAgio"}}),n("InputCheckBoxItem",{staticClass:"child-w3",attrs:{label:"&nbsp;nach Steuern"},model:{value:e.cbSteuern,callback:function(t){e.cbSteuern=t},expression:"cbSteuern"}}),n("InputCheckBoxItem",{staticClass:"child-w3",attrs:{label:"&nbsp;Rendite p.a."},model:{value:e.cbRenditePA,callback:function(t){e.cbRenditePA=t},expression:"cbRenditePA"}}),n("InputCheckBoxItem",{staticClass:"child-w3",attrs:{label:"&nbsp;Tendenz"},model:{value:e.cbTendenz,callback:function(t){e.cbTendenz=t},expression:"cbTendenz"}})],1),n("div",[n("ChartYieldRisk",{ref:"riskChart",attrs:{chartParam:{hasYears:!1,hasPerAnno:!1,years:[],hasLegend:!1},chartSeries:e.rendRisikoDaten,customColors:e.getColorsOrder()}}),e.renditeRiskChart&&e.rendRisikoDaten.length?n("ChartLegend",{attrs:{showAsTable:!1,chartSeries:e.rendRisikoDaten,lineChart:e.renditeRiskChart}}):e._e()],1)]):n("FondsVergleichNoData",{on:{click:e.emitEinstellungStep}})]:e._e()],2):n("div",[n("GhostLoading",{attrs:{useBoxContainer:""}},[n("Block",{attrs:{type:"title"}}),n("Block",{attrs:{height:"150"}})],1),n("GhostLoading",{attrs:{useBoxContainer:""}},[n("Block",{attrs:{type:"title"}}),n("Block",{attrs:{height:"75"}})],1),n("GhostLoading",{attrs:{useBoxContainer:""}},[n("Block",{attrs:{type:"title"}}),n("Block",{attrs:{type:"table-row"}}),n("Block",{attrs:{type:"table-row"}}),n("Block",{attrs:{type:"table-row"}})],1)],1)}),c=[],u=(n("4de4"),n("c740"),n("ac1f"),n("5319"),n("159b"),n("b0c0"),n("a434"),n("1276"),n("13d5"),n("cca6"),n("2f62")),d=n("c991"),h=n("b4d5"),f=n("de6c"),p=n("04bc"),m=n("9131"),v=n("abe3"),g=n("79ef"),b=n("a690"),S=n("ed99"),w=n("0054"),y=n("5818"),_=n("a026"),k=n("4567"),O=n("689f"),x=n("d53f"),A=n("ec37"),C=n("626a"),E=n("5a0c"),T=n.n(E),D=n("a2c9"),R=n("85ed"),P=n("d7f4"),I=n("c704"),F=n("c0a4"),N=n("5a29"),M=n("6eb5"),L=n("2ab8"),V=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("NoData",{attrs:{noIcon:"",useBoxContainer:""},scopedSlots:e._u([{key:"content",fn:function(){return[n("div",{staticClass:"mb-3"},[e._v("Bitte einen Fondsvergleich starten")]),n("div",[n("BaseButton",{on:{click:function(t){return e.$emit("click")}}},[e._v("zu den Einstellungen")])],1)]},proxy:!0}])})},B=[],j=n("b1a7"),$={components:{NoData:j["a"],BaseButton:p["default"]}},U=$,z=n("2877"),W=Object(z["a"])(U,V,B,!1,null,null,null),K=W.exports,G=n("64c5"),H=n("4e5f"),Y=n("a9e4"),J=n("81f6"),Z={name:"CompareFunds",components:{BaseButton:p["default"],ComboBox:m["default"],ChartFunds:v["a"],ChartYieldRisk:S["a"],ChartLegend:g["a"],DatePickerField:w["default"],InputCheckBoxItem:y["a"],InputRadioBoxGroup:k["default"],Table:O["a"],WertpapierSearch:A["a"],InputChips:R["default"],InputField:I["default"],GhostLoading:M["a"],Block:L["a"],FondsVergleichNoData:K},props:{stepKey:{type:String,default:"FILTER"},settings:{type:Object},colorsOrder:{type:Object,default:function(){return{}}},setColorsOrder:{default:function(){return{}}}},data:function(){return{busy:0,indices:[],ixIndex:-1,risikoJahr:"3",risikoOption:[],wentwVal:"",wentwOption:[],wentwJahr:"",wentwJahrOpt:[],wentwChartVal:1,indicesWE:[],steuersatz:null,cbAnpassen:!1,zeitraum_von:null,zeitraum_bis:null,legendWESort:null,errStr:"",cbAgio:!1,cbSteuern:!1,cbRenditePA:!1,cbTendenz:!0,minStartDate:null,maxStartDate:null,startDate:"",showAuswahl:!0,showSettings:!0,showDatenAsCols:!0,rrChart:null,deleteId:null,configMess:{text:"",showConfirmButton:!1,labelButtonCancel:""},contentReady:!1,investmentFundsHeaders:{lockedLeft:[Object(x["SlotColumn"])("fondsAmpel","",80,0).makeAlwaysVisible(),Object(x["TextColumn"])("isin","ISIN",150).makeAlwaysVisible(),Object(x["TextColumn"])("fondsname","Wertpapier",200)],center:[Object(x["TextColumn"])("aa_netto","Agio",150),Object(x["SlotColumn"])("aa_manuell","manuelles Agio",150)],lockedRight:[Object(x["ActionColumn"])("actions","")]},keysTHStammdaten:[],scrollFirstColunm:!1,scrolling:!1,scrollTo:"",stammdaten:{rowsCount:0,headers:[],rows:[]},colorIndex:{},renditeRiskChart:null,selectedWertpapier:[],delSelection:[],selectedFundsHeaders:{lockedLeft:[Object(x["SlotColumn"])("fondsname","Wertpapier",200).makeAlwaysVisible()],center:[Object(x["TextColumn"])("isin","ISIN",150)],lockedRight:[Object(x["ActionColumn"])("actions")]}}},computed:Object(o["a"])(Object(o["a"])({},Object(u["b"])({session:d["default"].GETTERS.ACT,funds:d["default"].GETTERS.GET_FUNDS,unsel:d["default"].GETTERS.GET_UNSEL_FUNDS,zoom:d["default"].GETTERS.GET_START_END_ZOOM,isSmallScreen:G["default"].GETTERS.IS_SMALL_SCREEN,screenSize:G["default"].GETTERS.SCREEN_WIDTH,hasRoles:G["default"].GETTERS.HAS_ROLES,getWPIAct:h["default"].GETTERS.ACT})),{},{wentwChartOpt:function(){return[{label:"Performance",value:1}].concat("FW"==this.session.settings.berechnungsbasis?[]:[{label:"Einmalanlage",value:2},{label:"Sparplan monatlich",value:3},{label:"Sparplan vierteljährlich",value:4},{label:"Sparplan jährlich",value:5}])},filterdata:function(){return this.getWPIAct("CompareFunds..")},isSmallOrMediumScreen:function(){return this.isSmallScreen||this.isMediumScreen},isMediumScreen:function(){return"md"===this.screenSize},ergebnisLoading:function(){var e;return(null===(e=this.session)||void 0===e?void 0:e.ergebnisLoading)||{}},ergebnisLoadingActive:function(){return Object.values(this.ergebnisLoading).some((function(e){return!0===e}))},fundsRows:function(){return(this.funds||[]).map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{actions:[Object(x["SimpleAction"])("DELETE","PhTrash","entfernen")]})}))},tableActions:function(){var e=this;return[Object(H["h"])("DEPOT","Depotbestand übernehmen").withVisible((function(){return e.isCusmomer})),Object(H["h"])("DEL_SELECTION","Auswahl entfernen")]},isCusmomer:function(){return this.hasRoles([Y["f"].VIEW_CUSTOMER_AS_BROKER,Y["f"].VIEW_CUSTOMER_AS_BYPASS,Y["f"].VIEW_CUSTOMER_AS_BYPASS])},allFunds:function(){return this.selFunds.concat(this.unselFunds)},fvp:function(){var e;return"hannes"===Object({NODE_ENV:"production",VUE_APP_API:"/MSC3/restful",VUE_APP_LOG_FORMATTED_PRINT_CONSOLE:"true",VUE_APP_LOG_LEVEL_PRINT_CONSOLE:"",VUE_APP_LOG_LEVEL_PUT_EXCEPTION:"error",VUE_APP_MESSAGE_CLOSEABLE_TIME_SECONDS:"5",VUE_APP_NAME:"FinanceCloud",VUE_APP_PRODUCTION:"true",VUE_APP_PUBLIC_PATH:"/",VUE_APP_SERVICE_WORKER_UPDATE_INTERVAL:"0",VUE_APP_SHOW_RENDERING_LOGS:"false",VUE_APP_WEBPACK_SOURCE_MAP_DEVTOOL:"source-map",BASE_URL:"/"}).VUE_APP_USER&&this.session&&console.log("session",JSON.parse(JSON.stringify(this.session))),null===(e=this.session)||void 0===e?void 0:e.fvp},selFunds:function(){return this.funds||[]},unselFunds:function(){return this.unsel||[]},indicesOption:function(){var e,t;return null===(e=this.settings)||void 0===e||null===(t=e.Indizes)||void 0===t?void 0:t.map((function(e){return{label:e[1],value:e[0]}}))},indicesWEOption:function(){var e,t,n=this;return null===(e=this.settings)||void 0===e||null===(t=e.Indizes)||void 0===t?void 0:t.filter((function(e){return-1===n.indices.findIndex((function(t){return t[0]===e[0]}))})).map((function(e){return{label:e[1],value:e[0]}}))},indicesSelected:{get:function(){return this.indices.map((function(e){return{label:e[1],value:e[0]}}))},set:function(e){this.indices=e.map((function(e){return[e.value,e.label]}))}},indicesWESelected:{get:function(){return this.indicesWE.map((function(e){return{label:e[1],value:e[0]}}))},set:function(e){this.indicesWE=e.map((function(e){return[e.value,e.label]}))}},isinRow:function(){var e,t;if(null!==(e=this.session)&&void 0!==e&&null!==(t=e.fundsdata)&&void 0!==t&&t.showAsRows){var n=Object.keys(this.session.fundsdata.showAsRows.headers);return n.filter((function(e){return"label"!==e}))}return[]},hasStammdatenData:function(){var e;return!(null===(e=this.stammdaten)||void 0===e||!e.rowsCount)},chartWertentwicklung:function(){var e,t,n,a=this;if(null!==(e=this.session)&&void 0!==e&&null!==(t=e.wertentw)&&void 0!==t&&null!==(n=t.chartSerie)&&void 0!==n&&n.length&&null!==this.cbRenditePA){var i=[2===this.wentwChartVal?1e3:this.wentwChartVal>2?0:100,3===this.wentwChartVal?100:0,4===this.wentwChartVal?100:0,5===this.wentwChartVal?100:0],r=this.session.wertentw.chartSerie.map((function(e){var t=null;if(a.cbAgio){var n=a.selFunds.find((function(t){return t.fondsname===e.title}));n&&(t=n.aa_manuell?Object(D["c"])(n.aa_manuell,2):n.aa_netto)}return{data:e.data,name:e.title.replace(/\n/g,""),agio:t,isin:e.isin}})),s="perf";switch(this.settings.WertEntwSort){case"FONDSNAME":s="name";break;case"VOLA":s="vola";break}var o=this.cbSteuern&&this.steuersatz?this.steuersatz:null,l=1===this.wentwChartVal?"percent":"currency";return{series:r,invest:i,steuersatz:o,sort:s,format:l,legendWESort:this.legendWESort}}return{}},hasWertentwicklungData:function(){var e,t,n;return!(null===(e=this.session)||void 0===e||null===(t=e.wertentw)||void 0===t||null===(n=t.chartSerie)||void 0===n||!n.length)},rendRisikoDaten:function(){var e,t=this;if(null!==(e=this.session.renditeRisiko)&&void 0!==e&&e.length){var n=JSON.parse(JSON.stringify(this.session.renditeRisiko)),a=this.cbSteuern&&this.steuersatz?this.steuersatz:null,i=parseInt(this.risikoJahr,10),r=0,s=0,o=0,l=0,c=0,u=0,d=0;return n.forEach((function(e){var n=null;if(t.cbAgio){var h=t.selFunds.find((function(t){return t.fondsname===e.name}));h&&(n=h.aa_manuell?Object(D["c"])(h.aa_manuell,2):h.aa_netto)}t.cbTendenz||e.data.splice(1),e.color=t.getColor(t.colorIndex[e.name]),e.data.forEach((function(e){null!==n&&(e[1]=(100+e[1])/(1+n/100)-100),null!==a&&(e[1]=e[1]*(1-a/100)),t.cbRenditePA&&(e[1]=Object(C["i"])(i,e[1])),e[1]=Math.round(100*e[1])/100,0===c?(r=e[0],s=e[0],o=e[1],l=e[1],c++):(r=Math.min(r,e[0]),s=Math.max(s,e[0]),o=Math.min(o,e[1]),l=Math.max(l,e[1]))})),u+=e.data[0][0],d+=e.data[0][1]})),u=Math.round(u/n.length*100)/100,d=Math.round(d/n.length*100)/100,n[0].minmax=[r,s,o,l],n.push({name:"Durchschnittswert",data:[[u,d,["Durchschnittswert",n[0].data[0][2][1]]]],markLine:{symbol:["none","none"],lineStyle:{type:"solid",color:"#ccc"},data:[{yAxis:d},{xAxis:u}]},color:"#ccc"}),n}return[]},hasRendRisikoDaten:function(){var e;return!(null===(e=this.session.renditeRisiko)||void 0===e||!e.length)}}),watch:{selFunds:"getMinMaxStartDatum",showDatenAsCols:"setStammdaten",session:"setStammdaten",rendRisikoDaten:"setRenditeRiskChart",stepKey:"prepareErgebnisData",ergebnisLoading:"prepareErgebnisData",cbAnpassen:"changeStartDatum",wentwJahr:"changeStartDatum",filterdata:function(){this.filterdata&&!this.filterdata.maxCountRows&&(this.filterdata.maxCountRows=1e3)}},methods:{registerEventBus:function(){var e=this;J["u"].$on(J["m"],(function(){e.resetVergleich()})),J["u"].$on(J["l"],(function(){e.getVergleich()})),J["u"].$on(J["n"],(function(){e.setAuswahl()})),J["u"].$on(J["k"],(function(t){e.doAktion(t.fvp,t.action)}))},unregisterEventBus:function(){J["u"].$off(J["m"]),J["u"].$off(J["l"]),J["u"].$off(J["n"]),J["u"].$off(J["k"])},gotoFondsinfo:function(e){this.$addBreadcrumb({breadcrumb:"Fondsinfo",fullPath:this.$route.fullPath});var t="/shared/vermogensubersicht/fondsinfo/".concat(e);this.$router.push({path:t})},setRenditeRiskChart:function(){var e=this;this.$nextTick((function(){var t,n,a,i;null!==(t=e.rendRisikoDaten)&&void 0!==t&&t.length&&"RENDITERISIKO"===e.stepKey?e.renditeRiskChart=null===(n=e.$refs)||void 0===n||null===(a=n.riskChart)||void 0===a||null===(i=a.$refs)||void 0===i?void 0:i.scatterChart:e.renditeRiskChart=null}))},setStammdaten:function(){var e,t;if(null!==(e=this.session)&&void 0!==e&&null!==(t=e.fundsdata)&&void 0!==t&&t.showAsCols)if(this.showDatenAsCols){this.scrolling=!1;var n=null,a=null;this.scrollFirstColunm?(a=[].concat(this.session.fundsdata.showAsCols.headers.lockedLeft).concat(this.session.fundsdata.showAsCols.headers.center),a[0].neverHide=!1,n=[]):(n=[].concat(this.session.fundsdata.showAsCols.headers.lockedLeft),n[0].neverHide=!0,a=[].concat(this.session.fundsdata.showAsCols.headers.center));var i=[].concat(this.session.fundsdata.showAsCols.headers.lockedRight);this.stammdaten={rowsCount:this.session.fundsdata.showAsCols.records.length,headers:{lockedLeft:n,center:a,lockedRight:i},rows:this.session.fundsdata.showAsCols.records}}else this.stammdaten={rowsCount:this.session.fundsdata.showAsRows.records.length,headers:this.session.fundsdata.showAsRows.headers,records:this.session.fundsdata.showAsRows.records};else this.stammdaten={rowsCount:0,headers:[],rows:[]}},viewDocument:function(e){Object(N["viewDocument"])({href:e})},setAaManuell:function(e,t){var n=this.selFunds.find((function(t){return t.isin==e}));n?(n.aa_manuell=t,this.$store.commit(d["default"].MUTATIONS.SET_FUNDS,this.selFunds),this.setSettings(!1)):(n=this.unselFunds.find((function(t){return t.isin==e})),n&&(n.aa_manuell=t,this.$store.commit(d["default"].MUTATIONS.SET_UNSEL_FUNDS,this.unselFunds),this.setSettings(!1)))},putConfig:function(e){e&&e.WertEntwZeitArt&&(this.risikoJahr=e.RisikoJahreValue,this.risikoOption=e.RisikoJahreOptions,this.wentwVal=e.WertEntwZeitArt,this.wentwOption=e.WertEntwOptions,this.wentwJahr=e.WertEntwJahreValue,this.wentwJahrOpt=e.WertEntwJahreOptions,this.steuersatz=e.steuersatz,this.zeitraum_bis=e.zeitraum_bis?this.strToDate(e.zeitraum_bis):new Date,this.zeitraum_von=e.zeitraum_von?this.strToDate(e.zeitraum_von):new Date(this.zeitraum_bis.getFullYear()-1,this.zeitraum_bis.getMonth(),this.zeitraum_bis.getDate()),this.indices=e.indices||[])},addSelectedFonds:function(){var e,t=this;if(null!==(e=this.selectedWertpapier)&&void 0!==e&&e.length){var n,a=Object.assign([],this.selFunds);null===(n=this.selectedWertpapier)||void 0===n||n.forEach((function(e){var n,i,r;null!==(n=t.selFunds)&&void 0!==n&&n.some((function(t){return(null===t||void 0===t?void 0:t.isin)===e.isin}))||(10==(null===(i=e._fondsData)||void 0===i||null===(r=i.startDatum)||void 0===r?void 0:r.length)&&(e.startDatum=e._fondsData.startDatum),a.push(e))})),this.$store.commit(d["default"].MUTATIONS.SET_FUNDS,a),this.saveFVP()}},selectedRow:function(e){"FILTER"===this.stepKey&&(this.selectedWertpapier=e||[])},selectedFunds:function(e){var t=e,n=this.allFunds;e.length&&(n=n.filter((function(e){return!t.some((function(t){return t.isin==e.isin}))}))),this.$store.commit(d["default"].MUTATIONS.SET_FUNDS,t),this.$store.commit(d["default"].MUTATIONS.SET_UNSEL_FUNDS,n),this.setSettings(!1)},setAuswahl:function(){this.emitEinstellungStep(),this.$refs.wp_filter.setFilter([])},emitEinstellungStep:function(){this.$emit("setStep","EINSTELLUNG")},resetVergleich:function(){this.busy=0,this.$store.commit(d["default"].MUTATIONS.RESET_ACT),this.$emit("setStep","FILTER")},delFunds:function(e){var t=this.selFunds.findIndex((function(t){return t.isin===e.isin}));if(-1!=t){var n=this.selFunds;n.splice(t,1),this.$store.commit(d["default"].MUTATIONS.SET_FUNDS,n),this.setSettings(!1),this.saveFVP()}else{var a=this.unselFunds.findIndex((function(t){return t.isin===e.isin}));if(-1!=a){var i=this.selFunds;i.splice(a,1),this.$store.commit(d["default"].MUTATIONS.SET_UNSEL_FUNDS,i),this.setSettings(!1),this.saveFVP()}}},handleHeaderAction:function(e){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var a,i,r,s,o,l,c,u,h,f,p;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=e.key,i=e.selection,"DEL_SELECTION"!=a){n.next=11;break}if(null===i||void 0===i||!i.length){n.next=9;break}return r=[],o=t.selFunds,i.forEach((function(e){s=t.selFunds.findIndex((function(t){return t.isin===e.isin})),-1!=s&&(r.push(e.isin),o.splice(s,1))})),t.$store.commit(d["default"].MUTATIONS.SET_FUNDS,o),t.setSettings(!1),n.abrupt("return",!0);case 9:n.next=25;break;case 11:if("DEPOT"!=a){n.next=25;break}return n.next=14,t.$store.dispatch(d["default"].ACTIONS.GET_DEPOT);case 14:if(u=n.sent,null===(l=u.data)||void 0===l||null===(c=l.fonds)||void 0===c||!c.length){n.next=24;break}return h=0,f=t.selFunds,p=t.unselFunds,u.data.fonds.forEach((function(e){h=f.findIndex((function(t){return t.isin===e.isin})),-1==h&&f.push(e),p.length&&(h=t.unselFunds.findIndex((function(t){return t.isin===e.isin})),-1!=h&&p.splice(h,1))})),t.$store.commit(d["default"].MUTATIONS.SET_FUNDS,f),p.length!=t.unselFunds&&t.$store.commit(d["default"].MUTATIONS.SET_UNSEL_FUNDS,p),t.setSettings(!1),n.abrupt("return",!0);case 24:return n.abrupt("return",!1);case 25:case"end":return n.stop()}}),n)})))()},timeToStr:function(e){if(!e)return"";var t=T()(new Date(e)).format("DD.MM.YYYY");return"01.01.1970"===t?"":t},dateToStr:function(e){if(!e)return"";var t=T()(e).format("DD.MM.YYYY");return"01.01.1970"===t?"":t},strToDate:function(e){if("string"===typeof e){var t=e.split(".").map((function(e){return parseInt(e,10)}));return new Date(t[2],t[1]-1,t[0])}return e},showValue:function(e){return e||"k.A."},setSettings:function(e){if("string"===typeof this.zeitraum_von||"string"===typeof this.zeitraum_bis)return null;var t=Object.assign({},this.settings,{RisikoJahreValue:this.risikoJahr,WertEntwZeitArt:this.wentwVal,WertEntwJahreValue:this.wentwJahr,zeitraum_bis:this.dateToStr(this.zeitraum_bis),zeitraum_von:this.dateToStr(this.zeitraum_von),cbAnpassen:this.cbAnpassen,funds:this.selFunds,unsel:this.unselFunds,indices:this.indices}),n=this.fvp;if(n.params=this.getFVParams(),this.$store.commit(d["default"].MUTATIONS.SET_ACT,{settings:t,fvp:n}),e&&"boolean"===typeof e||this.errStr){this.errStr="";var a=function(e){if("string"===typeof e){var t=e.split(".").map((function(e){return parseInt(e,10)}));return new Date(t[2],t[1]-1,t[0]).getTime()}return e.getTime()};return this.wentwVal===this.wentwOption[1].value&&a(this.zeitraum_bis)<=a(this.zeitraum_von)&&(this.errStr="Falsche Eingaben für Zeitraum."),this.errStr}return null},setFVP:function(e){var t=this,n=e.params,a=n.zeitraum_bis?this.strToDate(n.zeitraum_bis):new Date,i=n.zeitraum_von?this.strToDate(n.zeitraum_von):new Date(a.getFullYear()-1,a.getMonth(),a.getDate());this.risikoJahr=n.RisikoJahreValue,this.wentwVal=n.WertEntwZeitArt,this.wentwJahr=n.WertEntwJahreValue,this.zeitraum_bis=a,this.zeitraum_von=i,this.cbSteuern=n.cbSteuern,this.cbAgio=n.cbAgio,this.cbRenditePA=n.cbRenditePA,this.cbAnpassen=n.cbAnpassen,this.wentwChartVal="FW"==this.session.settings.berechnungsbasis?1:n.wentwChartVal,this.legendWESort=n.legendWESort,this.indices=[],n.indices&&n.indices.forEach((function(e){var n,a=null===(n=t.settings.Indizes)||void 0===n?void 0:n.find((function(t){return t[0]===e}));a&&t.indices.push(a)})),this.contentReady=!0},getRows:function(e,t){var n=[];return t.forEach((function(t){var a=e.records.find((function(e){return e.isin===t[0]}));if(a){var i,r;if(2===t.length&&null!==t[1]&&void 0!==t[1]&&("number"===typeof t[1]?a.aa_manuell=Object(D["a"])(t[1],2):a.aa_manuell=t[1]),10==(null===(i=a._fondsData)||void 0===i||null===(r=i.startDatum)||void 0===r?void 0:r.length)){var s=a._fondsData.startDatum.split(".").map((function(e){return parseInt(e,10)}));a.timeStartDatum=new Date(s[2],s[1]-1,s[0]).getTime()}if(a.actions&&Array.isArray(a.actions)&&a.actions.length)try{var o=JSON.parse(a.actions[0].replace(/'/g,'"'));if(a.actions=[Object(x["SimpleAction"])("DELETE",F["PhTrash"],"Löschen")],o.length){var l={Factsheet:"FACTSHEET","Factsheet KAG":"FACTSHEET_KAG",KID:"KID"};o.forEach((function(e){l[e.text]&&(a[l[e.text]]=e.href,a.actions.push(Object(x["SimpleAction"])(l[e.text],F["PhFileArrowDown"],e.text)))}))}}catch(c){console.error(c)}n.push(a)}})),n},doAktion:function(e,t){var n=this;return Object(r["a"])(regeneratorRuntime.mark((function a(){var i,r,s,o,l,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(i=JSON.stringify(n.chartWertentwicklung),r=b["b"].initFondsvergleich(i),s={RisikoJahreValue:n.risikoJahr,WertEntwZeitArt:n.wentwVal,WertEntwJahreValue:n.wentwJahr,zeitraum_bis:n.dateToStr(n.zeitraum_bis),zeitraum_von:n.dateToStr(n.zeitraum_von),cbSteuern:n.cbSteuern,cbAgio:n.cbAgio,cbRenditePA:n.cbRenditePA,cbAnpassen:n.cbAnpassen,wentwChartVal:n.wentwChartVal,indices:[],funds:[],unsel:[],fv_id:e.id?""+e.id:"",fv_description:e.description,chartWE:{selection:[],perf:{},vola:{},dateMin:r.dTime[null==n.zoom.ixVon?0:n.zoom.ixVon],dateMax:r.dTime[null==n.zoom.ixBis?r.dTime.length-1:n.zoom.ixBis]},action:t},r.series.forEach((function(e){if("Anlagesumme"!==e.name){var t,a=e.name.replace(/ Index$/,"\n Index");if(s.chartWE.selection.push(e.isin),null!==(t=n.zoom)&&void 0!==t&&t.addOnRows&&n.zoom.addOnRows[e.name]){var i=n.zoom.addOnRows[e.name];s.chartWE.perf[a]=(n.cbRenditePA?i.wepa:i.we)+1e-5,s.chartWE.vola[a]=i.vola+1e-5,s.chartWE.perf["0"+a]=i.we+1e-5,s.chartWE.perf["1"+a]=i.wepa+1e-5}else s.chartWE.perf[a]=e.wes[n.cbRenditePA?1:0]+1e-5,s.chartWE.vola[a]=e.vola+1e-5,s.chartWE.perf["0"+a]=e.wes[0]+1e-5,s.chartWE.perf["1"+a]=e.wes[1]+1e-5}})),"pdf"!==t){a.next=11;break}return a.next=7,n.$store.dispatch(d["default"].ACTIONS.PDF,s);case 7:o=a.sent,Object(N["viewDocument"])({data:o.pdf,filename:"Fondsvergleich.pdf",contentType:"application/pdf"},!0),a.next=26;break;case 11:if("xls"!==t){a.next=18;break}return a.next=14,n.$store.dispatch(d["default"].ACTIONS.XLS,s);case 14:l=a.sent,Object(N["viewDocument"])({data:l.xls,filename:"Fondsvergleich.xls",contentType:"application/xls"},!0),a.next=26;break;case 18:if("mail"!==t){a.next=26;break}return a.next=21,n.$store.dispatch(d["default"].ACTIONS.PDF,s);case 21:c=a.sent,c.node=!1,n.$store.commit(P["default"].MUTATIONS.SET_ATTACHMENTS,[c]),n.$router.push({path:"/communication/mailcomposer-single"}),setTimeout((function(){n.$store.commit(P["default"].MUTATIONS.GET_INIT,{subject:c.subject,html:c.html,participants:[c.receiver]})}),100);case 26:case"end":return a.stop()}}),a)})))()},getFVParams:function(){var e={RisikoJahreValue:this.risikoJahr,WertEntwZeitArt:this.wentwVal,WertEntwJahreValue:this.wentwJahr,zeitraum_bis:this.dateToStr(this.zeitraum_bis),zeitraum_von:this.dateToStr(this.zeitraum_von),cbSteuern:this.cbSteuern,cbAgio:this.cbAgio,cbRenditePA:this.cbRenditePA,cbAnpassen:this.cbAnpassen,wentwChartVal:this.wentwChartVal,legendWESort:this.legendWESort,indices:[],funds:[],unsel:[]};return this.indices&&this.indices.forEach((function(t){e.indices.push(t[0])})),this.selFunds.length&&this.selFunds.forEach((function(t){e.funds.push([t.isin,"string"===typeof t.aa_manuell?Object(D["c"])(t.aa_manuell,2):t.aa_manuell])})),this.unselFunds.length&&this.unselFunds.forEach((function(t){e.unsel.push([t.isin,"string"===typeof t.aa_manuell?Object(D["c"])(t.aa_manuell,2):t.aa_manuell])})),e},saveFVP:function(){var e=this.getFVParams();e.fv_id=this.fvp.id?""+this.fvp.id:"",e.fv_description=this.fvp.description||"Unbennant",this.saveFVParams(e)},getColor:function(e){return b["a"][e%(b["a"].length-1)]},addWEIntex:function(e){var t,n=this.session;if(null!==(t=n.wertentw)&&void 0!==t&&t.chartSerie){var a=[].concat(n.wertentw.chartSerie),i=n.wertentw.indicesSeries[e.value];if(!i)return;i.title=i.title.replace(/[\n]/g,"");for(var r,s,o,l,c=0;c<a[0].data.length;c++)if(i.data.length<=c)i.data.push([a[0].data[c][0],null]);else if(a[0].data[c][0]!==i.data[c][0])if(r=a[0].data[c][0],s=i.data[c][0],"string"===typeof r?o=parseInt(r.substr(6)+r.substr(3,2)+r.substr(0,2),10):(r=new Date(r),o=1e4*r.getFullYear()+100*(r.getMonth()+1)+r.getDate()),l=parseInt(s.substr(6)+s.substr(3,2)+s.substr(0,2),10),o<l)i.data.splice(c,0,[a[0].data[c][0],null]);else while(o>l)i.data.splice(c,1),s=i.data[c][0],l=parseInt(s.substr(6)+s.substr(3,2)+s.substr(0,2),10);i.data.length>a[0].data.length&&i.data.splice(a[0].data.length),this.colorIndex[i.title]||(this.colorIndex[i.title]=Object.values(this.colorIndex).reduce((function(e,t){return Math.max(e,t)}),0)+1),i.color=this.getColor(this.colorIndex[i.title]),a.push(i),_["default"].set(n.wertentw,"chartSerie",a)}},removeWEIntex:function(e){var t,n=this.session;if(null!==(t=n.wertentw)&&void 0!==t&&t.chartSerie){var a=[].concat(n.wertentw.chartSerie),i=a.findIndex((function(t){return t.isin===e.value}));if(-1!==i){while(-1!==i)a.splice(i,1),i=a.findIndex((function(t){return t.isin===e.value}));_["default"].set(n.wertentw,"chartSerie",a)}}},changeLegendSort:function(e){this.legendWESort=e.map((function(e){return e.key})).join(","),this.saveFVP()},changeZeitIntervall:function(e){var t=e.ixVon,n=e.ixBis,a=e.addOnRows,i=e.start,r=e.end;this.$store.commit(d["default"].MUTATIONS.SET_START_END_ZOOM,{start:i,end:r,ixVon:t,ixBis:n,addOnRows:a})},getVergleich:function(){var e=this.setSettings(!0);if(e)return!1;this.busy=0,this.$store.commit(d["default"].MUTATIONS.SET_ACT,{hasVergleich:!1}),this.saveFVP(),this.setColorIndex(),this.settings.showDaten&&(this.busy|=1,this.getFondsDaten()),this.settings.showRisiko&&(this.busy|=2,this.getRendRisiko()),this.settings.showWertEntw&&(this.busy|=4,this.getWertentw()),this.selectErgebnisStep()},setColorIndex:function(){var e={},t=0;this.selFunds.forEach((function(n){e[n.fondsname]=t++})),this.indices.forEach((function(n){e[n[1]]=t++})),this.colorIndex=e},selectErgebnisStep:function(){this.$emit("done",{stepKey:"ERGEBNIS"})},prepareErgebnisData:function(){var e=this,t=this.stepKey;this.$nextTick((function(){switch(t){case"STAMMDATEN":e.setStammdaten();break;case"RENDITERISIKO":e.setRenditeRiskChart();break}}))},vergleichCompleted:function(e){this.busy&=e,0===this.busy&&this.$store.commit(d["default"].MUTATIONS.SET_ACT,{hasVergleich:!0})},getFondsDaten:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$store.dispatch(d["default"].ACTIONS.FUNDSDATA);case 3:null!==(n=e.session)&&void 0!==n&&null!==(a=n.fundsdata)&&void 0!==a&&a.showAsCols&&e.setStammdaten(),e.vergleichCompleted(65534),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$store.dispatch(f["default"].ACTIONS.ERROR,{message:"getFondsDaten",error:t.t0});case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getWertentw:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$store.dispatch(d["default"].ACTIONS.WERTENTW);case 3:e.chartWertentwicklung.series&&(n=0,a="",e.chartWertentwicklung.series.forEach((function(t){a=t.name.replace(/ Index$/,""),n=e.colorIndex[a],t.color=e.getColor(n)}))),e.vergleichCompleted(65531),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$store.dispatch(f["default"].ACTIONS.ERROR,{message:"getWertentw",error:t.t0});case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},getRendRisiko:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$store.dispatch(d["default"].ACTIONS.RENDRISIKO);case 3:e.rendRisikoDaten.length&&(n=0,e.rendRisikoDaten.forEach((function(t,a){n=e.colorIndex[t.name],t.color=null==n?"rgb(96, 96, 96)":e.getColor(n)}))),e.vergleichCompleted(65533),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$store.dispatch(f["default"].ACTIONS.ERROR,{message:"getRendRisiko",error:t.t0});case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()},saveFVParams:function(e){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.$store.dispatch(d["default"].ACTIONS.FVPSAVE,e);case 3:a=n.sent,!e.fv_id&&a.fv_id&&t.$store.commit(d["default"].MUTATIONS.SET_ACT,{fvp:{id:a.fv_id,description:a.fv_description||"Unbenannt",create:a.fv_create,params:t.getFVParams()}}),n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](0),t.$store.dispatch(f["default"].ACTIONS.ERROR,{message:"getFondsDaten",error:n.t0});case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))()},getColorsOrder:function(){return this.rendRisikoDaten.map((function(e){return e.color}))||null},getMinMaxStartDatum:function(e){var t=this;this.minStartDate=null,this.maxStartDate=null,e.forEach((function(e){var n;if(!e.timeStartDatum&&10==(null===(n=e.startDatum)||void 0===n?void 0:n.length)){var a=e.startDatum.split(".").map((function(e){return parseInt(e,10)}));e.timeStartDatum=new Date(a[2],a[1]-1,a[0]).getTime()}e.timeStartDatum&&(null===t.minStartDate?(t.minStartDate=e.timeStartDatum,t.maxStartDate=e.timeStartDatum):(t.minStartDate=Math.min(t.minStartDate,e.timeStartDatum),t.maxStartDate=Math.max(t.maxStartDate,e.timeStartDatum)))})),this.changeStartDatum()},changeStartDatum:function(){var e=new Date;e="max"!=this.wentwJahr&&this.wentwJahr?new Date(e.getFullYear()-parseInt(this.wentwJahr,10),e.getMonth(),e.getDate()+1):new Date(this.minStartDate),this.cbAnpassen&&e.getTime()<this.maxStartDate&&(e=new Date(this.maxStartDate)),this.startDate=T()(e).format("DD.MM.YYYY")}},destroyed:function(){this.unregisterEventBus()},mounted:function(){this.registerEventBus(),this.filterdata&&!this.filterdata.maxCountRows&&(this.filterdata.maxCountRows=1e3)},created:function(){var e;null!==(e=this.session)&&void 0!==e&&e.settings&&(this.putConfig(this.session.settings),this.setFVP(this.fvp)),this.setColorIndex(),this.prepareErgebnisData()},beforeDestroy:function(){this.setSettings(!1)}},q=Z,X=(n("319e"),Object(z["a"])(q,l,c,!1,null,"7c5c66b3",null)),Q=X.exports,ee=n("4e17"),te=n("d856"),ne=n("50ca"),ae=n("7044"),ie=n("a871"),re=n("066f"),se=n("8103"),oe=n("3931"),le=n("2810"),ce="pdf",ue="xls",de="mail",he={components:{CompareFunds:Q,ContentWithStepper:ee["a"],BoxContainer:te["a"],VerticalStepper:ne["a"],InputField:I["default"],BaseModal:ie["a"],Stepper3:re["a"],Table:O["a"],OptionMenu:oe["a"],PageHeaderTitleNavigation:se["a"]},data:function(){return{currentSelectedTab:null,selectedSubstepKey:"",currentSubstep:null,stepperCollapsed:!1,selectedFundsHeaders:{lockedLeft:[Object(x["SlotColumn"])("fondsname","Wertpapier",200).makeAlwaysVisible()],center:[Object(x["TextColumn"])("isin","ISIN",150)],lockedRight:[Object(x["ActionColumn"])("actions")]},colorsOrder:{},init:!0,delSelection:[],loadingStep:!1}},computed:Object(o["a"])(Object(o["a"])({},Object(u["b"])({session:d["default"].GETTERS.ACT,hasRoles:G["default"].GETTERS.HAS_ROLES,funds:d["default"].GETTERS.GET_FUNDS,isSmallScreen:G["default"].GETTERS.IS_SMALL_SCREEN,screenSize:G["default"].GETTERS.SCREEN_WIDTH})),{},{indices:function(){var e,t;return(null===(e=this.session)||void 0===e||null===(t=e.settings)||void 0===t?void 0:t.indices)||[]},ergebnisLoading:function(){var e;return(null===(e=this.session)||void 0===e?void 0:e.ergebnisLoading)||{}},ergebnisLoadingActive:function(){return Object.values(this.ergebnisLoading).some((function(e){return!0===e}))},editModalTitle:function(){var e,t;return(null===(e=this.currentSubstep)||void 0===e?void 0:e.title)||(null===(t=this.currentSelectedTab)||void 0===t?void 0:t.label)||""},baseModalActions:function(){var e,t,n,a=this,i=[];return"FILTER"==(null===(e=this.currentSelectedTab)||void 0===e?void 0:e.stepKey)&&i.push(Object(le["c"])(J["n"],"Weiter").withPrimary((function(){return!0}))),"EINSTELLUNG"==(null===(t=this.currentSelectedTab)||void 0===t?void 0:t.stepKey)&&i.push(Object(le["c"])(J["l"],"Vergleich starten").withLoading((function(){return a.ergebnisLoadingActive})).withDisabled((function(){return a.ergebnisLoadingActive})).withPrimary((function(){return!0}))),"EINSTELLUNG"==(null===(n=this.currentSelectedTab)||void 0===n?void 0:n.stepKey)&&i.push(Object(le["c"])(J["m"],"Vergleich zurückstellen").withPrimary((function(){return!1}))),i.push(Object(le["c"])(ce,"PDF erzeugen")),i.push(Object(le["c"])(ue,"XLS erzeugen")),i.push(Object(le["c"])(de,"PDF-Mail")),i},isSmallOrMediumScreen:function(){return this.isSmallScreen||this.isMediumScreen},isMediumScreen:function(){return"md"===this.screenSize},fundsRows:function(){return(this.funds||[]).map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{actions:[Object(x["SimpleAction"])("DELETE","PhTrash","entfernen")]})}))},config:function(){var e;return null===(e=this.session)||void 0===e?void 0:e.settings},hasVergleich:function(){var e;return null===(e=this.session)||void 0===e?void 0:e.hasVergleich},fvp:function(){var e;return null===(e=this.session)||void 0===e?void 0:e.fvp},steps:function(){var e,t,n,a=[];null!==(e=this.config)&&void 0!==e&&e.showDaten&&a.push({substepKey:"STAMMDATEN",title:"Stammdaten"}),null!==(t=this.config)&&void 0!==t&&t.showWertEntw&&a.push({substepKey:"WERTENTICK",title:"Wertentwicklung"}),null!==(n=this.config)&&void 0!==n&&n.showRisiko&&a.push({substepKey:"RENDITERISIKO",title:"Rendite-Risiko"});var i=[];return this.isSmallOrMediumScreen&&(i=[{stepKey:"AUSGEWAEHLTE_INVESTMENTFONDS",label:"Ausgewählte Investmentfonds",current:!1,totalProgress:1}]),i=[].concat(Object(s["a"])(i),[{stepKey:"FILTER",label:"Fondsauswahl",current:!0,totalProgress:1},{stepKey:"EINSTELLUNG",label:"Einstellungen",current:!1,totalProgress:2},{stepKey:"ERGEBNIS",label:"Ergebnis",current:!1,totalProgress:3,substeps:a}]),new ae["a"](i)},selectedStepKey:function(){var e;return null===(e=this.currentSelectedTab)||void 0===e?void 0:e.stepKey},selected:function(){var e;return this.selectedSubstepKey||(null===(e=this.currentSelectedTab)||void 0===e?void 0:e.stepKey)},colors:function(){return this.config&&this.config.WertEntwColors||[]},actions:function(){var e=this,t=[];return this.isSmallOrMediumScreen||t.push(new H["h"]("PDF","PDF erzeugen"),new H["h"]("XLS","XLS erzeugen"),new H["h"]("PDF_MAIL","PDF-Mail")),t.push(new H["h"]("AN_EMP","Anlageempfehlung").withVisible((function(){return!e.isCusmomerOnly})),new H["h"]("ORDER","Wertpapierorder").withVisible((function(){return!e.isBrokerView&&!e.isCusmomerOnly})),new H["h"]("EDIT_DESCRIPTION","Beschreibung bearbeiten")),t},tableActions:function(){var e=this;return[Object(H["h"])("DEPOT","Depotbestand übernehmen").withVisible((function(){return e.isCusmomer})),Object(H["h"])("DEL_SELECTION","Auswahl entfernen")]},isBrokerView:function(){return this.hasRoles([Y["f"].VIEW_BROKER])},isCusmomerOnly:function(){return this.hasRoles([Y["f"].VIEW_CUSTOMER_ONLY])},isCusmomer:function(){return this.hasRoles([Y["f"].VIEW_CUSTOMER_AS_BROKER,Y["f"].VIEW_CUSTOMER_AS_BYPASS,Y["f"].VIEW_CUSTOMER_AS_BYPASS])}}),created:function(){var e="FILTER";this.session&&this.session.stepKey&&(e=this.session.stepKey,this.selectedSubstepKey=this.session.substepKey),this.currentSelectedTab=this.steps.getCurrentStep(e)},mounted:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch(d["default"].ACTIONS.GET_FONDS,{id:e.fvp.id});case 2:n=t.sent,n>0&&e.setStep("EINSTELLUNG");case 4:case"end":return t.stop()}}),t)})))()},methods:{onCloseEditModal:function(){this.showingEditModal=!1},handleModalActions:function(e){switch(e.key){case J["n"]:J["u"].$emit(J["n"]);break;case J["m"]:J["u"].$emit(J["m"]);break;case J["l"]:J["u"].$emit(J["l"]);break;case ce:case ue:case de:!this.hasVergleich&&{pdf:!0,mail:!0,xls:!0}[e.key]?this.$refs.modalRef.open():J["u"].$emit(J["k"],{fvp:this.fvp,action:e.key});break}},setStepByKeyOrObject:function(e){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.setStep(e);case 2:t.isSmallOrMediumScreen&&t.$refs.editModal.open();case 3:case"end":return n.stop()}}),n)})))()},setStep:function(e){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){var a,i,r,s,o,l;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:s="",o="","string"===typeof e?(s=e,t.currentSelectedTab=t.steps.getCurrentStep(s)):(s=e.stepKey,o=e.substepKey,t.currentSelectedTab=t.steps.getCurrentStep(s)),!o&&t.currentSelectedTab.substeps&&(o=t.currentSelectedTab.substeps[0].substepKey),t.selectedSubstepKey=o,t.currentSubstep=(null===(a=t.currentSelectedTab)||void 0===a||null===(i=a.substeps)||void 0===i||null===(r=i.find)||void 0===r?void 0:r.call(i,(function(e){return e.substepKey===o})))||null,t.$store.commit(d["default"].MUTATIONS.SET_ACT,{stepKey:s,substepKey:o}),l=t.$route.path.substr(0,t.$route.path.indexOf("fondsvergleich")),t.$updateCurrentBreadcrumb({breadcrumb:t.currentSelectedTab.label,fullPath:l+"fondsvergleich"});case 8:case"end":return n.stop()}}),n)})))()},delFunds:function(e){var t;null===(t=this.$refs.cmpFunds)||void 0===t||t.delFunds(e)},handleHeaderAction:function(e){var t,n=e.key;e.value;null!==(t=this.$refs.cmpFunds)&&void 0!==t&&t.handleHeaderAction({key:n,selection:this.delSelection})&&(this.delSelection=[])},doneStep:function(e){"EINSTELLUNG"===this.selected&&this.setStep(e)},editFVDesc:function(){this.$refs.editBezeichnung.open()},onChangeDesc:function(){this.fvp.description||(this.fvp.description="Unbennant"),this.$store.commit(d["default"].MUTATIONS.SET_ACT,{fvp:this.fvp}),this.fvp.id&&this.$store.dispatch(d["default"].ACTIONS.FVPSAVEDESC,this.fvp)},fvpAction:function(e){if(this.hasVergleich||!{pdf:!0,mail:!0,xls:!0}[e])switch(e){case"pdf":case"xls":case"mail":J["u"].$emit(J["k"],{fvp:this.fvp,action:e});break;case"an_emp":var t;if(null===(t=this.funds)||void 0===t||!t.length)return;var n="?adviceId=-1&addwp="+this.funds.map((function(e){return e.isin})).join(",");this.$addBreadcrumb({label:"zurück zur Fondsvergleich",breadcrumb:"Fondsauswahl | "+this.fvp.description,fullPath:this.$route.fullPath}),this.$router.push({path:"/beratung/anlageempfehlung/details"+n});break;case"order":var a,i="/beratung/formulare/antrag/WP/wertpapierorder/main?initData=true";null!==(a=this.funds)&&void 0!==a&&a.length&&(i+="&kauf="+this.funds.map((function(e){return e.isin})).join(",")),this.$addBreadcrumb({label:"zurück zum Fondsvergleich",breadcrumb:"Fondsauswahl | "+this.fvp.description,fullPath:this.$route.fullPath}),this.$router.push({path:"/beratung/antrag-beratungsmappe-selector?formPath="+encodeURIComponent(i)});break}else this.$refs.modalRef.open()},gotoFondsinfo:function(e){this.$addBreadcrumb({breadcrumb:"Fondsinfo",fullPath:this.$route.fullPath});var t="/shared/vermogensubersicht/fondsinfo/".concat(e);this.$router.push({path:t})},setColorsOrder:function(e){if(this.config&&this.config.WertEntwColors){var t=JSON.parse(JSON.stringify(this.config.WertEntwColors));this.colorsOrder[e]=t[Object.keys(this.colorsOrder).length]}}}},fe=he,pe=(n("add9"),Object(z["a"])(fe,a,i,!1,null,"10256bfe",null));t["default"]=pe.exports},9708:function(e,t,n){"use strict";n("ef5a")},"9a2a":function(e,t,n){"use strict";n("11b2")},"9d1a":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,"[data-v-7c5c66b3] .indices .input-chips__input-container .input-chips__chips-container>.input-chips__chips>.color-danger{color:var(--color-text)}.collaps-area[data-v-7c5c66b3],.vergleich-filter[data-v-7c5c66b3]{-webkit-box-shadow:-1px 1px 0 1px rgba(0,0,0,.16);box-shadow:-1px 1px 0 1px rgba(0,0,0,.16);padding:.5em 0 1em 1em}.vergleich-filter[data-v-7c5c66b3]{display:-webkit-box;display:-ms-flexbox;display:flex;gap:3em}.child-w[data-v-7c5c66b3]{width:100%;max-width:30em}.child-w2[data-v-7c5c66b3]{width:24em}.child-w3[data-v-7c5c66b3]{width:8em}.vergleich-fonds[data-v-7c5c66b3],.vergleich-optionen[data-v-7c5c66b3]{line-height:32px;display:-webkit-box;display:-ms-flexbox;display:flex;gap:1.5em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px}.vergleich-fonds>span[data-v-7c5c66b3],.vergleich-optionen>span[data-v-7c5c66b3]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.vergleich-fonds .ampel[data-v-7c5c66b3]{width:16px}.vergleich-fonds .isin[data-v-7c5c66b3]{width:100px}.vergleich-fonds .agio[data-v-7c5c66b3]{width:50px;text-align:right}.vergleich-fonds .agiom[data-v-7c5c66b3]{width:100px;text-align:right}.vergleich-fonds .action[data-v-7c5c66b3],.vergleich-optionen .uk-icon-button[data-v-7c5c66b3]{width:32px;height:32px}.flex-c-c[data-v-7c5c66b3]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:1rem}.do-wait[data-v-7c5c66b3]{display:inline-block;-webkit-transform:translate(8px,3px);transform:translate(8px,3px)}.minus[data-v-7c5c66b3]{width:16px;height:16px;padding:8px;background-position:8px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' width='16' height='16' fill='currentColor'%3E%3Cpath fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M5 16h22'/%3E%3C/svg%3E\");background-repeat:no-repeat}.ampel-gelb[data-v-7c5c66b3],.ampel-gruen[data-v-7c5c66b3],.ampel-none[data-v-7c5c66b3],.ampel-rot[data-v-7c5c66b3]{height:16px;width:16px;border-radius:50%}.ampel-rot[data-v-7c5c66b3]{background-color:var(--color-danger)}.ampel-gelb[data-v-7c5c66b3]{background-color:var(--color-warning)}.ampel-gruen[data-v-7c5c66b3]{background-color:var(--color-success)}.ampel-none[data-v-7c5c66b3]{background-color:transparent}.btn-clean[data-v-7c5c66b3]{color:var(--color-text)}.scrollColumns[data-v-7c5c66b3]{background-color:var(--color-primary);color:var(--color-primary-text);text-align:center;font-size:1em;text-decoration:none;display:inline-block;border:none;cursor:pointer;border-radius:4px;width:20px}",""]),e.exports=t},a690:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var a=n("5530"),i=(n("159b"),n("4de4"),n("c740"),n("fb6a"),n("d81d"),n("ac1f"),n("1276"),n("5319"),n("b0c0"),n("13d5"),n("4e82"),n("7db0"),n("5a0c")),r=n.n(i),s=n("626a"),o=n("a2c9");r.a.locale("de");var l=function(e){return null==(null===e||void 0===e?void 0:e.value)||isNaN(null===e||void 0===e?void 0:e.value)?"":Object(o["a"])(e.value,2)+"%"},c=function(e,t,n,a){var i=d[n%(d.length-1)],r=n%2?"bottom":"top";return{name:e,type:"bar",barGap:a?"50%":"30%",color:i,label:{show:!0,position:r,formatter:l,distance:10,fontSize:10},labelLayout:{hideOverlap:!0},data:t,showBackground:!1,itemStyle:{shadowColor:"rgba(0, 0, 0, 0.3)",shadowBlur:6,shadowOffsetX:2,shadowOffsetY:0}}},u=function(e,t){return{legend:{show:!0,bottom:0},yAxis:{show:!1,type:"value"},xAxis:{type:"category",data:e,axisTick:{show:!1},axisLabel:{interval:"auto",align:"center",fontSize:12,rotate:0}},series:t}},d=["rgba(7, 137, 7, 1)","rgba(0, 0, 255, 1)","rgba(218, 4, 4, 1)","rgba(255, 185, 0, 1)","rgba(0, 153, 153, 1)","rgba(176, 4, 200, 1)","rgba(1, 80, 251, 1)","rgba(217, 138, 102, 1)","rgba(115, 115, 255, 1)","rgba(122, 196, 159, 1)","rgba(172, 74, 35, 1)","rgba(255, 84, 102, 1)","rgba(7, 97, 7, 1)","rgba(0, 0, 180, 1)","rgba(179, 28, 21, 1)","rgba(255, 120, 0, 1)","rgba(238, 155, 105, 1)","rgba(50, 128, 197, 1)","rgba(255, 97, 168, 1)","rgba(176, 4, 249, 1)","rgba(7, 167, 7, 1)","rgba(0, 0, 255, 0.7)","rgba(190, 0, 0, 1)","rgba(255, 150, 105, 1)","rgba(108, 190, 251, 1)","rgba(184, 104, 105, 1)","rgba(176, 97, 255, 1)","rgba(70, 185, 77, 1)","rgba(53, 117, 208, 1)","rgba(194, 78, 5, 1)","rgba(255, 140, 0, 1)","rgba(0, 93, 0, 1)"],h={getNextDeadline:function(e,t){if(t<29)return new Date(e.getFullYear(),1+e.getMonth(),t);var n=new Date(new Date(e.getFullYear(),2+e.getMonth(),1).getTime()-864e5);return t<=n.getDate()?new Date(e.getFullYear(),1+e.getMonth(),t):n},getAnlage:function(e,t,n,a,i,r,s){var o=this;r=null==r?0:r,s=null==s?e.length:s;var l=[],c=new Date(e[r]),u=c.getDate();c=this.getNextDeadline(c,u);var d=1,h=t+n+a+i;return e.forEach((function(e,t){t<r||t>=s?l.push(null):(e>=c.getTime()&&(h+=n,d&&d%3===0&&(h+=a),d&&d%12===0&&(h+=i),c=o.getNextDeadline(c,u),d++),l.push(h))})),l},calcIRR:function(e,t,n,a){var i=0,r=0,s=0,o=0,l=0,c=0,u=!0;do{for(var d=0,h=0,f=0,p=0;p<n.length;p++)h+=a[p]*Math.pow(1+s,n[p]),d+=a[p],f+=a[p]*n[p];if(l=e*(1+s)+h,u=Math.abs(t-l)/t*100>.001&&c<50,0===r)r=(t-e-d)/(e+f),r<-1&&(r=-1),s=r,o=l;else if(u){if(t-l-(t-o)==0)break;s=i-(t-o)/(t-l-(t-o))*(r-i),i=r,r=s,o=l}c++}while(u);return 100*s},getWeIntervall:function(e,t,n,a){t=void 0==t?0:t,n=void 0==n?e.length:n;var i=null,r=null,s=null,o=0;for(o=t;o<n;o++)if(null!==e[o][1]&&e[o][1]>=0){i=o;break}for(o=n-1;o>=0;o--)if(null!==e[o][1]&&e[o][1]>=0&&(null==s&&(s=o),e[o][1]>0)){r=o;break}return null===i||null===r?null:(a||(a=null!==e&&void 0!==e&&e.length?(e[s][0]-e[i][0]-864e5)/31536e6:1),{von:i,bis:r,years:a})},getKapitalgewichteteWertentwicklung:function(e,t,n,a,i,r,o){var l=this.getWeIntervall(e,i,r,o);if(null==l)return null;var c=l.von,u=l.bis;if(o=l.years,!t){var d=e[c][1],h=e[u][1],f=100*(h-d)/d;return[f,Object(s["i"])(o,f),h-d,o]}for(var p=[],m=[],v=null,g=0,b=0,S=0,w=0,y=c;y<=u;y++){var _=t[y];null!==v&&v==_||(null!=v&&(b=_-(v||0),g=(e[u][0]-e[y][0])/(e[u][0]-e[c][0]),m.push(b),p.push(g),S+=b*g,w+=b),v=_)}n=null!=t[c]&&n;var k=n?t[c]:e[c][1],O=e[u][1];if(a){var x=this.calcIRR(k,O,p,m);return[x,Object(s["i"])(o,x),O-k-w,o]}var A=k+S==0?0:100*(O-k-w)/(k+S);return[A,Object(s["i"])(o,A),O-k,o]},getZeitgewichteteWertentwicklung:function(e,t,n,a,i){var o=this.getWeIntervall(e,n,a,i);if(null==o)return null;var l=o.von,c=o.bis;i=o.years;var u=[],d=[],h=0,f=[];e.forEach((function(e,n){d.push(e[0]),u.push(e[1]),f.length?h!=t[n]&&(f.push({wert:t[n]-h,time:e[0],datum:r()(e[0]).format("DD.MM.YYYY")}),h=t[n]):(f.push({wert:e[1],time:e[0],datum:r()(e[0]).format("DD.MM.YYYY")}),h=t[n])}));for(var p=0,m=u.length,v=u.length-1;v>=0;v--)if(u[v]){m=v;break}var g=1;if(f=f.filter((function(e){return e.time-p>=d[l]&&e.time-p<=d[c]})),!f.length)return g=100*(u[c]-u[l])/u[l],[g,Object(s["i"])(i,g),u[l]-u[c]-t[c],i];f[0].time-p!=d[l]&&f.unshift({datum:r()(d[l]).format("DD.MM.YYYY"),wert:0,time:d[l]+p});var b,S,w=f.length-1;f[w].time-p!=d[c]&&f.push({datum:r()(d[c]).format("DD.MM.YYYY"),wert:0,time:d[c]+p}),g=1;for(var y=function(e){S=d.findIndex((function(t){return t===f[e-1].time-p})),w=d.findIndex((function(t){return t===f[e].time-p})),w>m?(b=0,w=m):b=f[e].wert,-1!=S&&-1!=w&&u[S]?g*=(u[w]-b)/u[S]:"hannes"===Object({NODE_ENV:"production",VUE_APP_API:"/MSC3/restful",VUE_APP_LOG_FORMATTED_PRINT_CONSOLE:"true",VUE_APP_LOG_LEVEL_PRINT_CONSOLE:"",VUE_APP_LOG_LEVEL_PUT_EXCEPTION:"error",VUE_APP_MESSAGE_CLOSEABLE_TIME_SECONDS:"5",VUE_APP_NAME:"FinanceCloud",VUE_APP_PRODUCTION:"true",VUE_APP_PUBLIC_PATH:"/",VUE_APP_SERVICE_WORKER_UPDATE_INTERVAL:"0",VUE_APP_SHOW_RENDERING_LOGS:"false",VUE_APP_WEBPACK_SOURCE_MAP_DEVTOOL:"source-map",BASE_URL:"/"}).VUE_APP_USER&&console.log(e,f[e].datum,"ix0",S,w,-1!=S&&u[S],-1!=S&&r()(d[S]).format("DD.MM.YYYY"),-1!=w&&r()(d[w]).format("DD.MM.YYYY"))},_=1;_<f.length;_++)y(_);return g=100*(g-1),[g,Object(s["i"])(i,g),u[l]-u[c]-t[c],i]},calcVola:function(e,t,n,a,i){var r=[];if(e.length){a=null==a?0:a,i=null==i?e.length:i;var s=null,o=0,l=t?t[0]:0,c=0,u=0;n=n||e.length;for(var d=0;d<n;d++)(d>=a||d<i)&&(o=e[d][1],null!=o&&0!=o&&(null===s?(s=o,l=t?t[d]:0):(t&&l!==t[d]?(u=100*Math.log((o-(t[d]-l))/s),l=t[d]):u=100*Math.log(o/s),isNaN(u)&&(u=0),r.push(u),s=o,c+=u)));var h=c/r.length;if(c=0,r.forEach((function(e){c+=(e-h)*(e-h)})),r.length>1){c/=r.length-1;var f=Math.sqrt(257*c/r.length)*Math.sqrt(r.length);return f}}return 0},sliceArray:function(e,t,n){return t=t<0?0:t,n=n>e.length?e.length:n,0===t&&n===e.length?e:n===e.length?e.slice(t):e.slice(t,n)},setColor:function(e){e.forEach((function(e,t){e.color=d[t%(d.length-1)]}))},convertSerie:function(e,t){var n,a,i,r=[];return e.forEach((function(e){e.x&&void 0!==e.y?(a=e.x,i=e.y):Array.isArray(e)&&(a=e[0],i=e[1]),"string"===typeof a?(n=a.split(/[./]/).map((function(e){return parseInt(e,10)})),n[2]>100?a=new Date(n[2],n[1]-1,n[0]).getTime():n[0]>0&&(a=new Date(n[0],n[1]-1,n[2]).getTime())):a.getTime&&(a=a.getTime()),null!=i&&"string"===typeof i&&(i=i.replace(/[ ,]/g,""),i=isNaN(i)?null:parseFloat(i)),t?(t.push(a),r.push([a,i])):r.push(i)})),r},convSerieData:function(e){var t,n=this;return e.forEach((function(e,a){if(!e.isConvertedData){if(e.color=e.color||d[a%(d.length-1)],t=[],e.origName=e.name,e.origData=e.data,e.data=n.convertSerie(e.data,t),e.anlage){e.origAnlage=e.anlage;var i=n.convertSerie(e.anlage,null);e.anlage=i.length===e.data.length?i:null}e.dTime=t,e.isConvertedData=!0}})),e},getFaktor:function(e,t){var n,a=[],i=null,r=0;return e.data.forEach((function(e,s){null==e[1]?a.push(null===i?null:1):(null==i?(i=e[1],r=null!=t?t[s]:i,n=i/r):(null!=t&&t[s]!==r?(n=(e[1]-(t[s]-r))/i,r=t[s]):n=e[1]/i,i=e[1]),a.push(n))})),a},addKurs:function(e){var t=this;e.forEach((function(e){e.factor=t.getFaktor(e,e.anlageData)}))},setDataFromFactor:function(e,t,n){var a,i=null;e.data.forEach((function(r,s){0===s||null===i?(a=t[s]*n[s],i=a):(a=n[s]!==n[s-1]?t[s]*(i+(n[s]-n[s-1])):t[s]*i,a=Math.round(100*a)/100,i=a),e.data[s][1]=a}))},recalcFromFactor:function(e,t,n,a){if(e.dTime&&e.invest){var i=e.anlageData?e.anlageData:this.getAnlage(e.dTime,e.invest[0],e.invest[1],e.invest[2],e.invest[3],t,n);if(null!=e.anlageData){if(e.factor){e.data=[],e.relativ&&(e.relativ=[]),e.zAnlageData=i;for(var r,s=null,o=0;o<e.dTime.length;o++)o<t||o>=n||null==e.factor[o]?(e.data.push([e.dTime[o],null]),e.relativ&&e.relativ.push([e.dTime[o],null])):(o===t||null===s?(r=100===e.invest[0]&&0===e.invest[1]&&0===e.invest[2]&&0===e.invest[3]?i[o]:e.factor[o]*i[o],s=r,r):(r=i[o]!==i[o-1]?e.factor[o]*(s+(i[o]-i[o-1])):e.factor[o]*s,s=r,e.agio&&(r/=1+e.agio/100),null!=a&&r>i[o]&&(r-=(r-i[o])*(a/100))),e.data.push([e.dTime[o],r]),e.relativ&&e.relativ.push([e.dTime[o],r/i[o]]))}}else e.data=i.map((function(t,n){return[e.dTime[n],t]}))}},addGD200Series:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,a=[],i=1+t/100,r=1-n/100,s=[],o=[],l=[],c=0,u=0,h=0;return e.data.forEach((function(t,n){(null!=t[1]||h)&&(c+=t[1]||0,h>=200?(c-=e.data[n-200][1]||0,u=c/200,s.push([t[0],u]),o.push([t[0],u*i]),l.push([t[0],u*r])):(s.push([t[0],null]),o.push([t[0],null]),l.push([t[0],null])),h++)})),a.push(JSON.parse(JSON.stringify(e))),a.push({name:"200-Tage-Linie",data:s,color:d[1]}),a.push({name:"Obere Schranke",data:o,color:d[2]}),a.push({name:"Untere Schranke",data:l,color:d[3]}),a},jaehrlichePerformance:function(e,t){if(e.data){for(var n,a=e.data.length,i=new Date(e.data[a-1][0]).getFullYear(),r=new Date(i,0,1).getTime(),s=0,o=null!==t&&void 0!==t&&t.series?t.series.length:0,l=[],d=[],h=[],f=a-1;f>=0&&s<10;f--)e.data[f][0]<r&&(n=this.getKapitalgewichteteWertentwicklung(e.data,null,!1,!0,f,a),h.unshift(i),l.unshift(Math.round(100*n[0])/100),d.unshift(Math.round(100*n[1])/100),s++,a=f+1,i--,r=new Date(i,0,1).getTime());return null!==t&&void 0!==t&&t.series&&t.series.push(c(e.name,l,o)),u(h,[c(e.name,l,o)])}},jaehrlicheTendite:function(e,t){if(null===e||void 0===e||!e.jahren||null===e||void 0===e||!e.wertFond)return{};var n=e.wertFond.reduce((function(e,t){return Math.min(e,t)}),0);n=Math.min(n,e.wertKategorie.reduce((function(e,t){return Math.min(e,t)}),0));var a=e.wertFond.reduce((function(e,t){return Math.max(e,t)}),0);a=Math.max(a,e.wertKategorie.reduce((function(e,t){return Math.max(e,t)}),0)),n<0&&(a-=n),a=Math.round(a/10);var i=u(e.jahren,[c("Wertentwicklung",e.wertFond,0,t),c(e.kategorie,e.wertKategorie,1,t)]);return i.yAxis.min=n>=0?-a:n-a,i},initFondsvergleich:function(e){var t=this,n=JSON.parse(e),a=this.convSerieData(n.series),i=a[0].dTime,r=this.getAnlage(i,n.invest[0],n.invest[1],n.invest[2],n.invest[3]);this.addKurs(a);var s={};return a.forEach((function(e){if(e.hidden=!1,e.highlight=!1,e.anlageData=r,e.invest=n.invest,t.recalcFromFactor(e,0,e.data.length,n.steuersatz),e.key=e.isin,e.irr=!1,e.wes=t.getKapitalgewichteteWertentwicklung(e.data,e.anlageData,!1,e.irr),e.vola=t.calcVola(e.data,e.anlageData),e.wes){e.perf=e.wes[0];var a={key:e.key,we:Math.round(100*e.wes[0])/100,wepa:Math.round(100*e.wes[1])/100,vola:Math.round(100*e.vola)/100};"currency"===n.format&&(a.saldo=Math.round(100*e.wes[2])/100),s[e.name]=a}})),{series:a,addOnRows:s,anlageData:r,dTime:i}},initAnlageempfehlung:function(e,t,n,i){var r,s,o=this,l=0,c=0,u=0,h=0,f=null;"Anlageempf-advice"===e?(l=t.einmal||0,c=t.monat||0,u=t.quartal||0,h=t.jahr||0):f=t.fonds,"hannes"===Object({NODE_ENV:"production",VUE_APP_API:"/MSC3/restful",VUE_APP_LOG_FORMATTED_PRINT_CONSOLE:"true",VUE_APP_LOG_LEVEL_PRINT_CONSOLE:"",VUE_APP_LOG_LEVEL_PUT_EXCEPTION:"error",VUE_APP_MESSAGE_CLOSEABLE_TIME_SECONDS:"5",VUE_APP_NAME:"FinanceCloud",VUE_APP_PRODUCTION:"true",VUE_APP_PUBLIC_PATH:"/",VUE_APP_SERVICE_WORKER_UPDATE_INTERVAL:"0",VUE_APP_SHOW_RENDERING_LOGS:"false",VUE_APP_WEBPACK_SOURCE_MAP_DEVTOOL:"source-map",BASE_URL:"/"}).VUE_APP_USER&&console.log("chartAnlage",JSON.parse(JSON.stringify(t)),"series",JSON.parse(JSON.stringify(n))),n.map((function(e,t){return e.sort="Depotvorschlag"==e.name?1e3:"Aktuelles Depot"==e.name?1001:"Marker"==e.name?9999:1002+t,e})).sort((function(e,t){return e.sort-t.sort}));var p=null;n=n.map((function(e){return Object(a["a"])(Object(a["a"])({},e),{},{color:""})})),this.convSerieData(n);var m=(null===(r=n[0])||void 0===r?void 0:r.dTime)||[],v="Anlageempf-advice"===e?2:0;if(n.forEach((function(e){var t;m.length<((null===(t=e.dTime)||void 0===t?void 0:t.length)||0)&&(m=e.dTime),"Aktuelles Depot"==e.name?e.color=d[1]:"Depotvorschlag"==e.name?e.color=d[0]:(e.color=d[v%(d.length-1)],v++)})),"Anlageempf-advice"===e){p=this.getAnlage(m,l,c,u,h);var g=n.find((function(e){return"Marker"==e.name}));g&&l+c+u+h==0&&(p=g.data.map((function(e){return e[1]})),"hannes"===Object({NODE_ENV:"production",VUE_APP_API:"/MSC3/restful",VUE_APP_LOG_FORMATTED_PRINT_CONSOLE:"true",VUE_APP_LOG_LEVEL_PRINT_CONSOLE:"",VUE_APP_LOG_LEVEL_PUT_EXCEPTION:"error",VUE_APP_MESSAGE_CLOSEABLE_TIME_SECONDS:"5",VUE_APP_NAME:"FinanceCloud",VUE_APP_PRODUCTION:"true",VUE_APP_PUBLIC_PATH:"/",VUE_APP_SERVICE_WORKER_UPDATE_INTERVAL:"0",VUE_APP_SHOW_RENDERING_LOGS:"false",VUE_APP_WEBPACK_SOURCE_MAP_DEVTOOL:"source-map",BASE_URL:"/"}).VUE_APP_USER&&console.log("marker",JSON.parse(JSON.stringify(g)),JSON.parse(JSON.stringify(p))))}else if(f){var b=n.find((function(e){return"Marker"==e.name}));if(b){i="currency",n=n.filter((function(e){return"Marker"!==e.name}));n.forEach((function(e){var t,n,a,i;(e.name=e.name.substring(0,(e.name+"\n").indexOf("\n")),f&&f[e.name])&&(e.invest=[(null===(t=f[e.name])||void 0===t?void 0:t.einmal)||0,(null===(n=f[e.name])||void 0===n?void 0:n.monat)||0,(null===(a=f[e.name])||void 0===a?void 0:a.quartal)||0,(null===(i=f[e.name])||void 0===i?void 0:i.jahr)||0],e.anlageData=e.anlage?e.anlage:o.getAnlage(m,e.invest[0],e.invest[1],e.invest[2],e.invest[3]))}))}}var S="Anlageempf-advice"!==e?null:null!==(s=m)&&void 0!==s&&s.length?(m[m.length-1]-m[0]-864e5)/31536e6:1,w={};return n.forEach((function(n){if("Marker"===n.name){n.name="Anlagesumme",n.color="#aaa",n.hidden=!0,n.highlight=!1,n.relativ=n.data.map((function(e,t){return[m[t],1]})),n.anlageData=null,n.invest=[l,c,u,h];var a={we:null,wepa:null,vola:null};"currency"===i&&(a.saldo=null),w[n.name]=a}else{var r,s,d,v;if(-1!==n.name.indexOf("\n")&&(n.name=n.name.substring(0,n.name.indexOf("\n"))),n.hidden=!1,n.highlight=!1,"Anlageempf-advice"===e)n.anlageData=n.anlage?n.anlage:p,n.relativ=n.data.map((function(e,t){return[e[0],e[1]/n.anlageData[t]]}));else if(f&&f[n.name]&&"currency"===i)l=(null===(r=f[n.name])||void 0===r?void 0:r.einmal)||0,c=(null===(s=f[n.name])||void 0===s?void 0:s.monat)||0,u=(null===(d=f[n.name])||void 0===d?void 0:d.quartal)||0,h=(null===(v=f[n.name])||void 0===v?void 0:v.jahr)||0,n.anlageData=n.anlage?n.anlage:o.getAnlage(m,l,c,u,h),n.invest=[l,c,u,h],n.relativ=n.data.map((function(e,t){return[e[0],e[1]/n.anlageData[t]]}));else n.anlageData=n.anlage?n.anlage:o.getAnlage(m,100,0,0,0),n.invest=[100,0,0,0];n.irr=!0,t.useMoneyweightedMethod?n.wes=o.getKapitalgewichteteWertentwicklung(n.data,n.anlageData,!1,n.irr,0,n.data.length,S):n.wes=o.getZeitgewichteteWertentwicklung(n.data,n.anlageData,0,n.data.length,S),n.vola=o.calcVola(n.data,n.anlageData),"Anlageempf-advice"===e&&(n.invest=[l,c,u,h]);var g={we:Math.round(100*n.wes[0])/100,wepa:Math.round(100*n.wes[1])/100,vola:Math.round(100*n.vola)/100};"currency"===i&&(g.saldo=Math.round(100*n.wes[2])/100),w[n.name]=g}})),{series:n,addOnRows:w,format:i}}}},a845:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".stepper-section[data-v-d90a9422]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;padding:4px 4px;border-bottom:1px solid #c4c4c4;font-size:1em;line-height:24px}.stepper-section .stepper-section__arrow[data-v-d90a9422]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.stepper-section>.stepper-section__label[data-v-d90a9422]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;-webkit-box-align:center;-ms-flex-align:center;align-items:center;max-width:100%}.stepper-section .stepper-section__arrow+.stepper-section__label[data-v-d90a9422]{max-width:calc(100% - 20px)}.stepper-section>.stepper-section__label>div[data-v-d90a9422]:nth-child(2){font-weight:500;word-break:keep-all;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}div.stepper-section[data-v-d90a9422]:last-child{border-bottom:none}.status-icon[data-v-d90a9422]{padding:4px 4px}.stepper-row>div>div[data-v-d90a9422]{word-break:keep-all;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}div.line-separator-substeps[data-v-d90a9422]{display:-webkit-box;display:-ms-flexbox;display:flex}div.line-separator-substeps[data-v-d90a9422]:not(:empty){border-bottom:1px solid #c4c4c4;padding:4px 4px;line-height:24px}.box__container>span:last-child>div[data-v-d90a9422]{border-bottom:none}.substep-label[data-v-d90a9422]{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;text-align:left;font-weight:500;word-break:keep-all;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-left:16px}.substep-label__warning[data-v-d90a9422]{padding-left:0}.substep-arrow[data-v-d90a9422]{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;text-align:right;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.status__icon[data-v-d90a9422]{margin:4px 4px}.status__icon[data-v-d90a9422],.substep-warning__icon[data-v-d90a9422]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.substep-warning__icon[data-v-d90a9422]{margin:0 2px 5px 0}.modal__container[data-v-d90a9422]{padding:0 24px}@media only screen and (max-width:720px){.stepper-section>.stepper-section__label>div[data-v-d90a9422]:nth-child(2){font-size:1.2rem}}",""]),e.exports=t},ab48:function(e,t,n){var a=n("3eed");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("1eca8096",a,!0,{sourceMap:!1,shadowMode:!1})},abe3:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("LineChart",{ref:"lineChart",attrs:{chartSeries:e.chartSeries,isArea:!1,customTooltipFormatter:e.customTooltipFormatter,height:e.height,format:e.relativ?"":e.format,isLegend:!1,showDataZoom:e.showDataZoom,chartOptions:e.chartOptions,gridLeft:50}}),e.hasShowAsTable&&e.lineChart&&e.chartSeries.length?n("InputToggleSwitch",{attrs:{label:"Tabellarische Anzeige",inLineLabel:""},model:{value:e.showAsTable,callback:function(t){e.showAsTable=t},expression:"showAsTable"}}):e._e(),"Fondsinfo"==e.type?n("div",{staticClass:"row"},[n("div",[e._v("Obere Schranke")]),n("ComboBox",{attrs:{value:e.obereSchranke,values:e.obereSchrankeOptions},on:{change:e.onChangeObereSchranke}}),n("div",[e._v("Untere Schranke")]),n("ComboBox",{attrs:{value:e.untereSchranke,values:e.untereSchrankeOptions},on:{change:e.onChangeUntereSchranke}})],1):e._e(),e._t("beforLegend"),e.lineChart&&e.chartSeries.length?n("ChartLegend",{attrs:{showAsTable:e.showAsTable,chartSeries:e.chartSeries,lineChart:e.lineChart,addOnHeaders:e.addOnHeaders,addOnRows:e.addOnRows,sortRows:e.sortLegend},on:{newOrder:function(t){return e.$emit("newOrder",t)}}}):e._e()],2)},i=[],r=n("5530"),s=(n("d81d"),n("159b"),n("99af"),n("4e82"),n("b0c0"),n("ac1f"),n("1276"),n("4de4"),n("7db0"),n("c740"),n("a15b"),n("2f62")),o=n("c991"),l=n("9131"),c=n("5a0c"),u=n.n(c),d=n("a2c9"),h=n("a690"),f=n("276c"),p=n("79ef"),m=n("d53f"),v=n("9aaa"),g={components:{LineChart:f["a"],ComboBox:l["default"],ChartLegend:p["a"],InputToggleSwitch:v["default"]},props:{type:{type:String,required:!0},chartData:{type:Object,required:!0},sortLegend:{type:Boolean,default:!1},relativ:{type:Boolean,default:!1}},data:function(){return{chartSeries:[],height:"450px",format:"percent",showDataZoom:!1,obereSchranke:5,untereSchranke:5,obereSchrankeOptions:[],untereSchrankeOptions:[],hasShowAsTable:!0,showAsTable:!0,customColors:null,steuersatz:null,addOnHeaders:[],addOnRows:{},strData:"",lineChart:null,eChart:null,recalcOnZoom:!1,chartOptions:{dataZoom:[{type:"inside"},{left:70,right:80,labelFormatter:function(e){return u()(new Date(e)).format("DD.MM.YYYY")}}]}}},mounted:function(){var e,t,n;null!==(e=this.$refs)&&void 0!==e&&null!==(t=e.lineChart)&&void 0!==t&&null!==(n=t.$refs)&&void 0!==n&&n.chart&&(this.lineChart=this.$refs.lineChart,this.initChart(this.$refs.lineChart.$refs.chart))},updated:function(){var e,t,n;!this.eChart&&null!==(e=this.$refs)&&void 0!==e&&null!==(t=e.lineChart)&&void 0!==t&&null!==(n=t.$refs)&&void 0!==n&&n.chart&&(this.lineChart=this.$refs.lineChart,this.initChart(this.$refs.lineChart.$refs.chart))},computed:Object(r["a"])({},Object(s["b"])({zoom:o["default"].GETTERS.GET_START_END_ZOOM})),watch:{chartData:{handler:"init",immediate:!0},relativ:function(){"Anlageempf-advice"!=this.type&&"Anlageempf-details"!=this.type||this.initAnlageempfaelung()}},methods:{initFondsinfo:function(e){var t;e?(this.format="percent",this.showDataZoom=!0,this.recalcOnZoom=!0,this.hasShowAsTable=!1,this.showAsTable=!1,this.obereSchrankeOptions=[1,2,3,4,5,6,7,8,9,10].map((function(e){return{label:"+"+e,value:e}})),this.untereSchrankeOptions=[1,2,3,4,5,6,7,8,9,10].map((function(e){return{label:"-"+e,value:e}})),t=JSON.parse(this.strData),t.anlageData=h["b"].getAnlage(t.dTime,100,0,0,0),t.invest=[100,0,0,0],h["b"].addKurs([t])):t=this.chartSeries[0],t=h["b"].addGD200Series(t,this.obereSchranke,this.untereSchranke),t.forEach((function(e){e.hidden=!1,e.highlight=!1})),this.chartOptions={dataZoom:[{type:"inside",start:0,end:100},{left:70,right:80,start:0,end:100,labelFormatter:function(e){return u()(new Date(e)).format("DD.MM.YYYY")}}]},this.chartSeries=t},initFondsvergleich:function(){var e,t;this.showDataZoom=!0,this.recalcOnZoom=!0,this.hasShowAsTable=!1,this.showAsTable=!0;var n=JSON.parse(this.strData);this.format=n.format,this.steuersatz=n.steuersatz;var a=h["b"].initFondsvergleich(this.strData),i=a.series;if(this.addOnRows=a.addOnRows,this.addOnHeaders=("currency"===this.format?[Object(m["CurrencyColumn"])("saldo","G&V Saldo")]:[]).concat([Object(m["PercentageColumn"])("we","Wertentwicklung"),Object(m["PercentageColumn"])("wepa","Wertentw. pro Jahr"),Object(m["PercentageColumn"])("vola","Volatilität")]),i="vola"===n.sort?i.sort((function(e,t){return e[n.sort]-t[n.sort]})):i.sort((function(e,t){return t[n.sort]-e[n.sort]})),"currency"===this.format){var r={name:"Anlagesumme",color:"#aaa",hidden:!1,highlight:!1,data:a.anlageData.map((function(e,t){return[a.dTime[t],e]})),dTime:a.dTime,anlageData:null,invest:n.invest,key:"ANLAGE"},s={we:null,wepa:null,vola:null,key:"ANLAGE"};"currency"===this.format&&(s.saldo=null),this.addOnRows[r.name]=s,i.push(r)}if(this.chartOptions={dataZoom:[{type:"inside",start:(null===(e=this.zoom)||void 0===e?void 0:e.start)||0,end:(null===(t=this.zoom)||void 0===t?void 0:t.end)||100},{left:70,right:80,start:0,end:100,labelFormatter:function(e){return u()(new Date(e)).format("DD.MM.YYYY")}}]},n.legendWESort){var o=n.legendWESort.split(","),l=o.map((function(e){return i.find((function(t){return t.key===e}))})).filter((function(e){return e}));l.length===i.length&&(i=l)}this.chartSeries=i},initAnlageempfaelung:function(){var e;this.format=this.chartData.format,this.showDataZoom=!0,this.recalcOnZoom=!0,this.chartOptions={dataZoom:[{type:"inside",start:0,end:100},{left:70,right:80,start:0,end:100,labelFormatter:function(e){return u()(new Date(e)).format("DD.MM.YYYY")}}]};var t=JSON.parse(this.strData),n=h["b"].initAnlageempfehlung(this.type,null===(e=this.chartData)||void 0===e?void 0:e.anlage,t,this.format);t=n.series,this.format=n.format,h["b"].addKurs(t),this.chartSeries=this.relativ?t.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{data:e.relativ||e.data})})):t.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{relativ:null})})),"hannes"===Object({NODE_ENV:"production",VUE_APP_API:"/MSC3/restful",VUE_APP_LOG_FORMATTED_PRINT_CONSOLE:"true",VUE_APP_LOG_LEVEL_PRINT_CONSOLE:"",VUE_APP_LOG_LEVEL_PUT_EXCEPTION:"error",VUE_APP_MESSAGE_CLOSEABLE_TIME_SECONDS:"5",VUE_APP_NAME:"FinanceCloud",VUE_APP_PRODUCTION:"true",VUE_APP_PUBLIC_PATH:"/",VUE_APP_SERVICE_WORKER_UPDATE_INTERVAL:"0",VUE_APP_SHOW_RENDERING_LOGS:"false",VUE_APP_WEBPACK_SOURCE_MAP_DEVTOOL:"source-map",BASE_URL:"/"}).VUE_APP_USER&&console.log({series:JSON.parse(JSON.stringify(t))},{chartSeries:JSON.parse(JSON.stringify(this.chartSeries))}),this.addOnRows=n.addOnRows,this.addOnHeaders=("currency"===this.format?[Object(m["CurrencyColumn"])("saldo","G&V Saldo")]:[]).concat([Object(m["PercentageColumn"])("we","Wertentwicklung"),Object(m["PercentageColumn"])("wepa","Wertentw. pro Jahr"),Object(m["PercentageColumn"])("vola","Volatilität")])},init:function(){if(this.type&&this.chartData)switch(this.type){case"Anlageempf-advice":case"Anlageempf-details":case"Anlageempf-actual":var e,t,n;if(null===(e=this.chartData)||void 0===e||null===(t=e.chartData)||void 0===t||null===(n=t.series)||void 0===n||!n.length)return this.chartSeries=[],void(this.strData="");var a=JSON.stringify(this.chartData.chartData.series);if(this.strData===a)return;this.strData=a,this.initAnlageempfaelung();break;case"Fondsinfo":var i;if(null===(i=this.chartData)||void 0===i||!i.data)return this.chartSeries=[],void(this.strData="");var r=JSON.stringify(this.chartData);if(this.strData===r)return;this.strData=r,this.initFondsinfo(!0);break;case"Fondsvergleich":var s;if(null===(s=this.chartData)||void 0===s||!s.series)return this.chartSeries=[],void(this.strData="");var o=JSON.stringify(this.chartData);if(this.strData===o)return;this.strData=o,this.initFondsvergleich();break}},onChangeObereSchranke:function(e){this.obereSchranke=e,this.initFondsinfo(!1)},onChangeUntereSchranke:function(e){this.untereSchranke=e,this.initFondsinfo(!1)},initChart:function(e){e.chart&&!this.eChart&&(this.eChart=e.chart,this.eChart.on("datazoom",this.onDataZoom))},onDataZoom:function(){var e=this;if(this.showDataZoom){var t=this.eChart.getOption();setTimeout((function(){e.calcAfterZoom(t.dataZoom[0].startValue,t.dataZoom[0].endValue)}),100)}},calcAfterZoom:function(e,t){var n,a=this,i=this.eChart.getOption();if(null!==(n=i.dataZoom)&&void 0!==n&&n.length&&e===i.dataZoom[0].startValue&&t===i.dataZoom[0].endValue){var s,o=JSON.parse(JSON.stringify(this.chartSeries));if(null===(s=o[0].dTime)||void 0===s||!s.length)return;var l=o[0].dTime.findIndex((function(t){return t>=e})),c=o[0].dTime.findIndex((function(e){return e>=t}))+1;if("Fondsinfo"===this.type)h["b"].recalcFromFactor(o[0],l,c,this.steuersatz),o=h["b"].addGD200Series(o[0],this.obereSchranke,this.untereSchranke);else{var u,d,f,p=JSON.parse(JSON.stringify(this.addOnRows));o.forEach((function(e){if(a.recalcOnZoom?(h["b"].recalcFromFactor(e,l,c,a.steuersatz),f=e.zAnlageData):f=e.anlageData,f){u=h["b"].getKapitalgewichteteWertentwicklung(e.data,f,!1,e.irr,l,c),d=h["b"].calcVola(e.data,f);var t=p[e.name];t&&(void 0!=t.we&&u&&(t.we=Math.round(100*u[0])/100),void 0!=t.wepa&&u&&(t.wepa=Math.round(100*u[1])/100),void 0!=t.saldo&&u&&(t.saldo=Math.round(100*u[2])/100),void 0!=t.vola&&null!=t.vola&&(t.vola=Math.round(100*d)/100),p[e.name]=t)}})),this.addOnRows=p}this.recalcOnZoom?("Anlageempf-advice"!=this.type&&"Anlageempf-details"!=this.type||!this.relativ||(o=o.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{data:e.relativ})}))),this.chartOptions={dataZoom:[{type:"inside"},{type:"slider"}],series:o}):this.chartOptions={dataZoom:[{type:"inside"},{type:"slider"}]},this.$emit("newZeitIntervall",{ixVon:l,ixBis:c-1,addOnRows:this.addOnRows,start:i.dataZoom[0].start,end:i.dataZoom[0].end})}},customTooltipFormatter:function(e){var t=this,n=this.relativ?"":this.format;if(Array.isArray(e)){var a=u()(e[0].value[0]).format("DD MMM YYYY")||"",i=e.map((function(e){var a=e.marker,i=e.seriesName,r=e.value,s=i;t.toolTipTruncName&&-1!==s.indexOf(t.toolTipTruncName)&&(s=s.substr(0,s.indexOf(t.toolTipTruncName)));var o=r;if(Array.isArray(r)&&(o=r[1]),!o)return"";var l=Object(d["a"])(o||0,2)+("percent"===n?" %":"currency"===n?" €":"");return"\n            <div>\n              <span>".concat(a,'</span>\n              <span style="white-space: normal;">').concat(s,":</span> \n              <b>").concat(l,"</b>\n            </div>")}));return'\n          <div class="tooltip-series">\n            <div><b>'.concat(a,'</b></div>\n            <div class="tooltip-series-table">').concat(i.join(""),"</div>\n          </div>\n        ")}var r=e.marker,s=e.seriesName,o=e.name,l=e.value,c=s;this.toolTipTruncName&&-1!==c.indexOf(this.toolTipTruncName)&&(c=c.substr(0,c.indexOf(this.toolTipTruncName)));var h=Object(d["a"])(l,0)+("percent"===n?" %":"currency"===n?" €":"");return"\n          <div>\n            <div><b>".concat(c," test</b></div>\n            <div><span>").concat(r,"</span> <span>").concat(o,":</span> <b>").concat(h,"</b></div>\n          </div>")}}},b=g,S=n("2877"),w=Object(S["a"])(b,a,i,!1,null,"5aad9388",null);t["a"]=w.exports},add9:function(e,t,n){"use strict";n("70bb")},b0b8:function(e,t,n){var a=n("9d1a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("6d772b2f",a,!0,{sourceMap:!1,shadowMode:!1})},bf86:function(e,t,n){var a=n("a845");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("5c4f6d4a",a,!0,{sourceMap:!1,shadowMode:!1})},c0b63:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var a=n("ade3"),i=n("1da1"),r=n("5530"),s=(n("96cf"),n("159b"),n("b0c0"),n("4de4"),n("d81d"),n("c740"),n("7db0"),n("a434"),n("13d5"),n("ac1f"),n("1276"),n("b64b"),n("99af"),n("5319"),n("fb6a"),n("b4d5")),o=n("de6c"),l=n("2f62"),c=n("a2c9"),u=n("64c5"),d={props:{ignoreOptionValues:{type:Object,default:function(){return{}}}},data:function(){return{act:"",options:{init:!1},ready:!1,defValue:"",predefinedFilter:{},defaultFilters:{},callAddFilter:!1,watchBase:!1,wpRows:[]}},computed:Object(r["a"])(Object(r["a"])({},Object(l["b"])({isFA:u["default"].GETTERS.IS_FA,isTest:u["default"].GETTERS.IS_TEST})),{},{phase:function(){return this.doRender?this.instData&&this.instData.phase:null},saveKeyFilter:function(){var e;if(null!==(e=this.phase)&&void 0!==e&&e.wp_type){var t=parseInt(this.phase.wp_type)-1;return["searchInvestmentfonds","searchZertifikate","searchBeteiligungen"][t]}return"searchInvestmentfonds"},searchFilter:function(){return this.instData&&this.instData.filters||[]},f_state:function(){return this.doRender?this.phase&&this.phase.f_state||{item:"1.1.01"}:null},apTerms:function(){var e,t,n,a=this,i=[];return"1"===(null===(e=this.phase)||void 0===e?void 0:e.wp_type)&&null!==(t=this.config)&&void 0!==t&&null!==(n=t.apTerms)&&void 0!==n&&n.length&&this.config.apTerms.forEach((function(e,t){e.searchLabel="AP "+e.name,e.title=e.tipp,e.onClick=function(){a.addAPFilter(t)},i.push(e)})),this.doRender?i:null},filterLoading:function(){var e;return!(null!==(e=this.filter[0])&&void 0!==e&&e.menuItems)},filter:function(){var e=this,t=[],n=[];this.config&&this.phase&&this.phase.wp_type&&this.options&&this.config[this.phase.wp_type+".0"].forEach((function(a){var i=[],r=[];e.config[a+".0"]&&(e.config[a+".0"].forEach((function(t){if(e.gesellschaft&&0===e.config[t][2].indexOf("ff_filter_gesellsch_"));else if(e.lagerstelle&&0===e.config[t][2].indexOf("ff_filter_lagerst_"));else{i.push({id:t,field:e.config[t],value:[""]});var n=e.config[t],a=e.convFilter(n,t,e.options);null!==a&&r.push(a)}})),t.push({value:a,label:e.config[a],childs:i}),n.push({type:"group",key:a,label:e.config[a],menuItems:r}))}));var a=this.ignoreOptionValues,i=void 0===a?{}:a,s=n.map((function(e){var t;return Object(r["a"])(Object(r["a"])({},e),{},{menuItems:null===e||void 0===e||null===(t=e.menuItems)||void 0===t?void 0:t.map((function(e){if(e.key in i){var t,n=i[e.key],a=null===e||void 0===e||null===(t=e.comboOptions)||void 0===t?void 0:t.filter((function(e){return n.findIndex((function(t){return e.label===t.label&&e.value===t.value}))<0}));return Object(r["a"])(Object(r["a"])({},e),{},{comboOptions:a})}return e}))})}));return s},configFilter:function(){var e=this,t={default:{isin:"1.1.02",wkn:"1.1.03",fondsname:"1.1.04"},zertificate:{isin:"2.1.02",wkn:"2.1.03",fondsname:"2.1.04"},beteiligungen:{isin:"3.1.02",wkn:"3.1.03",fondsname:"3.1.04"}},n=[t.default.isin,t.default.wkn,t.default.fondsname];return"searchZertifikate"===this.saveKeyFilter?n=[t.zertificate.isin,t.zertificate.wkn,t.zertificate.fondsname]:"searchBeteiligungen"===this.saveKeyFilter&&(n=[t.beteiligungen.isin,t.beteiligungen.wkn,t.beteiligungen.fondsname]),{placeholderForDefSearchInput:"ISIN, WKN, Fondsname",defaultSearchInputKeys:n,cbDefSearchInput:this.defaultValue,hideFirstColumn:!0,filterZurucksetzen:function(){e.setFilter([])},programmaticSearchParameter:this.apTerms||[],filterType:"wertpapierinfo",noResetOnDefaultSearchInputExit:!0}}}),watch:{type:"getFilter"},beforeUpdate:function(){var e,t,n=this;if(null!==(e=this.$refs.filter)&&void 0!==e&&null!==(t=e.$children)&&void 0!==t&&t.length&&!this.watchBase){var a=this.$refs.filter.$children[0];a.$watch&&(a.$watch("filterRows",(function(e){return n.onChangeFilterRows(e)}),{immediate:!0,deep:!0}),this.watchBase=null)}},methods:{onChangeFilterRows:function(e){var t=this;if(e.length){var n=!1;if(e.forEach((function(e){var a,i,r=null===(a=t.filter[0])||void 0===a||null===(i=a.menuItems)||void 0===i?void 0:i.find((function(t){return t.key===e.secondaryKey}));e.componentType!==(null===r||void 0===r?void 0:r.type)&&(e.componentType=null===r||void 0===r?void 0:r.type,e.comboOptions=null===r||void 0===r?void 0:r.comboOptions),-1===(null===r||void 0===r?void 0:r.label.indexOf("Favoritenliste"))||"combobox"!==(null===r||void 0===r?void 0:r.type)||e[null===r||void 0===r?void 0:r.key]||(e[null===r||void 0===r?void 0:r.key]=null===r||void 0===r?void 0:r.comboOptions[0].value,n=!0)})),n){var a=this.$refs.filter.$children[0];a.$data.filterRows&&(a.$data.filterRows=JSON.parse(JSON.stringify(e)))}}},initFilter:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=function(){e.getFilter();var t=e.getWPIAct(e.act);null!==t&&void 0!==t&&t.filters&&e.addFilter({filter:t.filters,key:"",name:""},!0),e.ready=!0},e.getOptions(n);case 2:case"end":return t.stop()}}),t)})))()},getOptions:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.$store.dispatch(s["default"].ACTIONS.OPTIONS,{act:t.act,gesellschaft:t.gesellschaft,lagerstelle:t.lagerstelle,isCourtage:t.isCourtage});case 3:t.options=n.sent,t.options&&(t.options.init=!0,e&&e()),n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](0),t.$store.dispatch(o["default"].ACTIONS.ERROR,{message:"getOptions",error:n.t0});case 10:case"end":return n.stop()}}),n,null,[[0,7]])})))()},addAPFilter:function(e){this.addFilter(this.apTerms[e],!1)},addFilter:function(e,t){var n=this;if(this.config){var i=[],s=[];this.getOptions();var o=this.filter.map((function(e){return{value:e.key,label:e.label,type:e.type}}));e.filter.forEach((function(e){var r=i.findIndex((function(t){return t[0]===e[0]}));if(e[1]&&!1!==e[1][0])if("generic"===e[0]){n.defValue=t?e[2]:e[1];var l=n.getBaseFilter();l&&(l.$data.defaultSearchInput=n.defValue)}else{var c;-1===r?i.push([e[0],n.config[e[0]][1],e[1],n.config[e[0]],e[1]]):i[r][2]=e[1];var u=n.config[e[0]],d=n.convFilter(u,e[0],t?n.instData.options:n.options,t?e[2]:e[1]);s.push((c={componentType:d.type},Object(a["a"])(c,d.key,d.value),Object(a["a"])(c,"disabled",!1),Object(a["a"])(c,"key",d.key.substr(0,d.key.lastIndexOf("."))),Object(a["a"])(c,"primarySelection",o),Object(a["a"])(c,"secondaryKey",d.key),Object(a["a"])(c,"type","group"),Object(a["a"])(c,"comboOptions",d.comboOptions),Object(a["a"])(c,"value",d.value),c))}else-1!==r&&i.splice(r,1)})),this.predefinedFilter={id:-1,parameters:JSON.stringify(s),searchKey:e.key,searchLabel:e.name,visible:!1},this.defaultFilters=(null===s||void 0===s?void 0:s.length)&&s.reduce((function(e,t){return Object(r["a"])(Object(r["a"])({},e),{},Object(a["a"])({},t.secondaryKey,{value:t.value})),{}}))||{}}},convFilter:function(e,t,n,a){var i=null;return"text"===e[0]?(i={key:t,type:"text",label:e[1],emptyDenied:!0},a&&(i.value=a[0]),"1.1.02"!==t&&"2.1.02"!==t&&"3.1.02"!==t||(i.pattern=/^[A-Z]{2}[A-Z0-9]{10}$/i),"1.1.03"!==t&&"2.1.03"!==t&&"3.1.03"!==t||(i.pattern=/^[a-z0-9]{6}$/i)):"percent"===e[0]?(i={key:t,type:"text",label:e[1]},a&&(i.value=a[0])):"select"===e[0]?(i={key:t,type:"combobox",label:e[1],comboOptions:n.init&&n[e[2]]?n[e[2]].map((function(e){return{label:""===e[1]?"Alle":e[0],value:e[1]}})):[]},a&&(i.value=a[0])):"list_jn"===e[0]?(i={key:t,type:"default",label:e[1]},a&&(i.value=!0)):"list_cb"===e[0]?(i={key:t,type:"multipleItemSelector",label:e[1],comboOptions:e[2].map((function(e){return{label:e,value:parseInt(e,10)}})),emptyDenied:!0},a&&(i.value=a[0].split(",").map((function(e){return{label:e,value:parseInt(e,10)}})))):"range_date"===e[0]?(i={key:t,type:"dateRange",label:e[1],emptyDenied:!1},a&&(i.value=a[0].split("\t").map((function(e,t){return{value:e,key:0===t?"min":"max"}})))):"chips"===e[0]?(i={key:t,type:"chips",label:e[1],comboOptions:n.init&&n[e[2]]?n[e[2]].map((function(e){return{label:e[0],value:e[1]}})):[]},a&&Array.isArray(a)&&(i.value=a.map((function(e){var t;return null===(t=i.comboOptions)||void 0===t?void 0:t.find((function(t){return t.value===e}))})))):"numberRange"===e[0]&&(i={key:t,type:"numberRange",label:e[1],emptyDenied:!1},e.length>4&&e[4]&&(i.comboOptions=[{label:"precision",value:parseInt(e[4],10)}]),a&&(i.value=a[0].split("\t").map((function(e,t){return{value:e,key:0===t?"min":"max"}})))),i},defaultValue:function(e){this.defValue=e},handleSearch:function(e){var t=this,n=[];this.defValue&&n.push(["generic","generische suche"]);var a="";Object.keys(e).forEach((function(i){var r=t.config&&t.config[i];if(r)if(void 0!==e[i]&&null!==e[i]||"percent"===r[0]){if("text"===r[0])n.push([i,r[1],[e[i]]]);else if("percent"===r[0]){var s=Object(c["c"])(e[i]||"0");isNaN(s)||s<0||s>100?a+="<br><b>"+r[1]+"</b><br>soll entweder Leer, oder eine Zahl zwischen 0 und 100 sein":n.push([i,r[1],[s.toLocaleString("de-DE")]])}else if("select"===r[0])n.push([i,r[1],[e[i]]]);else if("list_jn"===r[0])n.push([i,r[1],["Ja"]]);else if("list_cb"===r[0]&&e[i]&&e[i].length){var o="";e[i].forEach((function(e){o+=","+e.label})),n.push([i,r[1],[o.substr(1)]])}else if("range_date"===r[0]){var l="";e[i]&&e[i].length>0&&e[i][0].value&&(l=e[i][0].value),e[i]&&e[i].length>1&&e[i][1].value&&(l+="\t"+e[i][1].value),n.push([i,r[1],[l]])}else if("chips"===r[0]){var u=[];e[i]&&e[i].length>0&&(u=e[i].map((function(e){return e.value}))),n.push([i,r[1],u])}else if("numberRange"===r[0]){var d="";e[i]&&e[i].length>0&&null!=e[i][0].value&&(d=Object(c["a"])(e[i][0].value,6)),e[i]&&e[i].length>1&&null!=e[i][1].value&&(d+="\t"+Object(c["a"])(e[i][1].value,6)),d&&n.push([i,r[1],[d]])}}else"hannes"===Object({NODE_ENV:"production",VUE_APP_API:"/MSC3/restful",VUE_APP_LOG_FORMATTED_PRINT_CONSOLE:"true",VUE_APP_LOG_LEVEL_PRINT_CONSOLE:"",VUE_APP_LOG_LEVEL_PUT_EXCEPTION:"error",VUE_APP_MESSAGE_CLOSEABLE_TIME_SECONDS:"5",VUE_APP_NAME:"FinanceCloud",VUE_APP_PRODUCTION:"true",VUE_APP_PUBLIC_PATH:"/",VUE_APP_SERVICE_WORKER_UPDATE_INTERVAL:"0",VUE_APP_SHOW_RENDERING_LOGS:"false",VUE_APP_WEBPACK_SOURCE_MAP_DEVTOOL:"source-map",BASE_URL:"/"}).VUE_APP_USER&&console.log("criteria",i,r,e)})),a?this.$store.dispatch(o["default"].ACTIONS.ADD_MESSAGE,a.substring(4)):(this.setFilter(n),this.emitFilters?this.$emit("onSearch",e):(this.busy=!0,this.filterOk()))},getBaseFilter:function(){for(var e=0;e<this.$children.length;e++)for(var t=0;this.$children[e].$children&&t<this.$children[e].$children.length;t++)if(this.$children[e].$children[t].filterZurucksetzen)return this.$children[e].$children[t];return null}}},h={data:function(){return{rowsCount:null,actFilter:""}},methods:{gotoFondsinfo:function(e,t){var n;this.$addBreadcrumb({breadcrumb:"Fondsinfo",fullPath:this.$route.fullPath});var a="string"===typeof e?e:e.row||(null===(n=e._fondsData)||void 0===n?void 0:n.isin),i="B"==t?"beteiligungen":"vermogensubersicht",r="/shared/".concat(i,"/fondsinfo/").concat(a);this.$router.push({path:r})},gotoFondsinfoOverview:function(e,t){var n;this.$addBreadcrumb({breadcrumb:"Fondsinfo",fullPath:this.$route.fullPath});var a="string"===typeof e?e:e.row||(null===(n=e._fondsData)||void 0===n?void 0:n.isin),i="B"==t?"beteiligungen":"vermogensubersicht",r="/home/".concat(i,"/fondsinfooverview/").concat(a);this.$router.push({path:r})},openModalEditCustomerSearchResultTable:function(){this.$refs.tableResult.openColumnsConfig()},getAktionLink:function(e,t){var n=JSON.parse(e.replace(/'/g,'"'));return console.log("getAktionLink",JSON.parse(JSON.stringify(n))),t?n.slice(0,2):n.slice(2)},handleTableAction:function(e){console.log("handleTableAction-0",e),this.$emit("handleTableAction",e)}}}},e606:function(e,t,n){var a=n("f3f0");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("1112be3f",a,!0,{sourceMap:!1,shadowMode:!1})},ec37:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.filterLoading?n("GhostLoading",{attrs:{useBoxContainer:""}},[n("Block",{attrs:{height:"200"}})],1):n("div",[e.filterLoading?e._e():n("GenericPersonFilter",{ref:"filter",attrs:{filterId:"7b8ff9e5-10b1-4cf4-8f94-2d54d19d56fd",saveKey:e.saveKeyFilter,title:"Wertpapierfilter",metadata:e.filter,configFilter:e.configFilter,predefinedFilter:e.predefinedFilter,searchFromParam:e.searchFromParam,extraButton:e.extraButton,defaultOptions:e.defaultOptions,showSearchButton:e.showSearchButton,hasSmartSearch:!e.isFA||!e.isCourtage},on:{search:e.handleSearch,extraButtonClick:function(t){return e.$emit("extraButtonClick")}}})],1),e.emitFilters?e._e():[e.rows.length?n("div",{staticClass:"box__container"},[e._t("beforeTable"),n("WertpapierTable",{attrs:{showMobileSelectionAlways:"",tableId:e.tableId,rows:e.rows,headers:e.headers,loading:e.loading,exportConfig:e.exportConfig,singleSelection:e.singleSelection,selected:e.isRowSelectable?e.selectedRows:void 0,headerActions:e.tableHeaderActions,canAddToFavoritenliste:e.canAddToFavoritenliste,canAddToMyDepot:e.canAddToMyDepot,canAddToFondsvergleich:e.canAddToFondsvergleich,type:e.type},on:{selected:e.onSelect,action:e.handleTableAction,headerAction:function(t){return e.$emit("headerAction",t)}}}),e._t("afterTable"),1===e.responseType?n("BaseButton",{staticClass:"mt-2",attrs:{disabled:!e.selectedRows.length},on:{click:function(t){return e.emitSelected()}}},[e._v(" Markierung übernehmen ")]):e._e()],2):e.loading?n("GhostLoading",{attrs:{type:"table",title:e.TABLE_TITLE,useBoxContainer:""}}):e.outcome?n("NoData",{attrs:{title:e.TABLE_TITLE,content:"Es wurden keine Einträge gefunden",useBoxContainer:""}}):e._e()]],2)},i=[],r=n("1da1"),s=n("5530"),o=(n("96cf"),n("a9e3"),n("b0c0"),n("d3b7"),n("ddb0"),n("4de4"),n("e260"),n("b4d5")),l=n("de6c"),c=n("2f62"),u=n("04bc"),d=n("60e0"),h=n("c0b63"),f=n("b1a7"),p=n("6eb5"),m=n("2ab8"),v=n("5a0c"),g=n.n(v),b=n("66a6"),S="Wertpapierliste",w={name:"WertpapierFilter",components:{BaseButton:u["default"],GenericPersonFilter:d["a"],NoData:f["a"],GhostLoading:p["a"],Block:m["a"],WertpapierTable:b["a"]},mixins:[h["a"],h["b"]],props:{name:{type:String,default:"search"},type:{type:String,default:"I"},withZ:{type:Boolean,default:!1},gesellschaft:{type:String,default:""},lagerstelle:{type:String,default:""},respond:{type:Number,default:0},emitFilters:{type:Boolean,default:!1},isCourtage:{type:Boolean,default:!1},predefinedFilters:{type:Array,default:function(){return[]}},extraButton:{type:Object,default:function(){return null}},initSelected:{type:Array,default:function(){return[]}},defaultOptions:{type:Object,default:function(){return{}}},showSearchButton:{type:Boolean,default:!0},isSelectable:{type:Boolean,default:!1},singleSelection:{type:Boolean,default:!1},tableHeaderActions:{type:Array,default:function(){return[]}},canAddToFavoritenliste:{type:Boolean,default:!1},canAddToMyDepot:{type:Boolean,default:!1},canAddToFondsvergleich:{type:Boolean,default:!1}},data:function(){return{TABLE_TITLE:S,loading:!1,doRender:1,busy:!1,tableId:"",searchFromParam:"",isMounted:!1,selectedRows:[]}},created:function(){this.act=this.name+"."+this.gesellschaft+"."+this.lagerstelle,this.actFilter=this.act,this.$store.commit(o["default"].MUTATIONS.ADD_ACT,this.act),this.initFilter()},mounted:function(){this.isMounted=!0},computed:Object(s["a"])(Object(s["a"])({},Object(c["b"])({getWPIFilter:o["default"].GETTERS.FILTER,getWPIAct:o["default"].GETTERS.ACT})),{},{isRowSelectable:function(){var e;return this.isSelectable||(null===(e=this.$route.meta)||void 0===e?void 0:e.dispatchSelected)},responseType:function(){var e;return null!==(e=this.$route.meta)&&void 0!==e&&e.dispatchSelected?1:this.respond},outcome:function(){var e;return null===(e=this.getWPIAct(this.act))||void 0===e?void 0:e.outcome},config:function(){return this.doRender?this.getWPIFilter:null},instData:function(){var e=this.getWPIAct(this.act);return this.doRender?e:null},headers:function(){var e;return(null===(e=this.outcome)||void 0===e?void 0:e.headers)||[]},rows:function(){var e;return(null===(e=this.outcome)||void 0===e?void 0:e.records)||[]},exportConfig:function(){var e=g()(new Date).format("DD-MMM-YYYY HH mm");return{pdf:{show:!0,name:"Wertpapierliste "+e,title:"Wertpapierliste - FULLNAME",keys:this.keys},xls:{show:!0,name:"Wertpapierliste "+e,title:"Wertpapierliste - FULLNAME",keys:this.keys}}}}),methods:{getFilter:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,e.getWPIFilter){t.next=4;break}return t.next=4,e.$store.dispatch(o["default"].ACTIONS.CONFIG,{isCourtage:e.isCourtage});case 4:if(!e.type){t.next=15;break}t.t0=e.type.charAt(0).toUpperCase(),t.next="Z"===t.t0?8:"B"===t.t0?10:12;break;case 8:return e.setWPS("2"),t.abrupt("break",14);case 10:return e.setWPS("3"),t.abrupt("break",14);case 12:return e.setWPS("1"),t.abrupt("break",14);case 14:e.$route.query.searchParam&&(e.addFilter({filter:e.searchFilter,key:"",name:""},!0),e.defValue=e.$route.query.searchParam,e.searchFromParam=e.$route.query.searchParam,e.handleSearch({defaultSearchInput:e.$route.query.searchParam}));case 15:t.next=20;break;case 17:t.prev=17,t.t1=t["catch"](0),e.$store.dispatch(l["default"].ACTIONS.ERROR,{message:"getFilter",error:t.t1});case 20:case"end":return t.stop()}}),t,null,[[0,17]])})))()},setWPS:function(e){if(this.setTableId(e),e!==this.phase.wp_type){var t,n={item:e+".1.01"};this.$store.commit(o["default"].MUTATIONS.SET_ACT,{act:this.act,phase:{wp_type:e,f_state:n},filters:[],outcome:null}),this.defValue="",null!==(t=this.predefinedFilters)&&void 0!==t&&t.length||(this.predefinedFilter={});var a=this.getBaseFilter();a&&a.filterZurucksetzen(),this.doRender++,this.configFilter.defaultSearchInputKeys=[e+".1.02",e+".1.03",e+".1.04"]}this.configFilter.programmaticSearchParameter=this.apTerms},setTableId:function(e){var t=parseInt(e)-1;this.tableId=["bbaf1df0-bef3-49d5-b88d-c03890a8db0e","dbda6ba9-fc17-4ea2-a9c4-563c8b367fe0","da0559f3-b777-4019-aade-e36ed91c03f3","4e0e84db-bc3a-4e4a-87fa-eea4d638359f","934a4c92-187b-47ad-b8f7-6400e6704ed4","1a5a37ee-2b56-4237-b490-b6d4e03203fc"][t+(this.responseType?3:0)]},setFilter:function(e){this.isMounted&&(this.$store.commit(o["default"].MUTATIONS.SET_ACT,{act:this.act,filters:e,outcome:null}),this.$emit("reset-filter"))},filterOk:function(){this.isMounted&&this.getOutcome()},getOutcome:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,t.next=4,e.$store.dispatch(o["default"].ACTIONS.OUTCOME,{act:e.act,gesellschaft:e.gesellschaft,lagerstelle:e.lagerstelle,isCourtage:e.isCourtage,zusatz:{withZertifikat:"I"===e.type?e.withZ:null}});case 4:e.selectedRows=(null===(n=e.outcome)||void 0===n||null===(a=n.records)||void 0===a?void 0:a.filter((function(e){return e.selected})))||[],e.busy=!1;case 6:return t.prev=6,e.loading=!1,t.finish(6);case 9:case"end":return t.stop()}}),t,null,[[0,,6,9]])})))()},onSelect:function(e){this.selectedRows=e,this.$emit("selected",this.selectedRows)},emitSelected:function(){var e;if(null!==(e=this.$route.meta)&&void 0!==e&&e.dispatchSelected){var t,n,a,i,r,s;if("function"==typeof(null===(t=this.$route.meta)||void 0===t?void 0:t.dispatchSelected))this.$store.dispatch(null===(r=this.$route.meta)||void 0===r?void 0:r.dispatchSelected(),this.selectedRows);else this.$store.dispatch(null===(s=this.$route.meta)||void 0===s?void 0:s.dispatchSelected,this.selectedRows);null!==(n=this.$refs.filter)&&void 0!==n&&null!==(a=n.$refs)&&void 0!==a&&null!==(i=a.baseFilter)&&void 0!==i&&i.filterZurucksetzen&&this.$refs.filter.$refs.baseFilter.filterZurucksetzen()}else this.$emit("confirm-selected",this.selectedRows)}}},y=w,_=n("2877"),k=Object(_["a"])(y,a,i,!1,null,null,null);t["a"]=k.exports},ed99:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.hasYears||e.hasPerAnno?n("div",{directives:[{name:"show",rawName:"v-show",value:e.eChartSeries.length||e.message,expression:"eChartSeries.length || message"}],staticClass:"bar"},[e.hasYears?n("span",{staticClass:"bar-item"},[n("ComboBox",{attrs:{value:e.year,values:e.years},on:{change:e.changeYear}})],1):e._e(),n("span",{directives:[{name:"show",rawName:"v-show",value:1!==e.year,expression:"year!==1"}],staticClass:"bar-item"},[e.hasPerAnno?n("span",{staticClass:"per-anno"},[n("InputToggleSwitch",{attrs:{label:"Rendite p.a.",inLineLabel:"",suppressValidationMessage:""},on:{input:function(t){return e.togglePerAnno(t)}},model:{value:e.perAnno,callback:function(t){e.perAnno=t},expression:"perAnno"}})],1):e._e()])]):e._e(),e.message?n("div",{staticClass:"m-3 box__title"},[e._v(e._s(e.message))]):n("div",{attrs:{id:"chart-yield-risk-funds"}},[n("ScatterChart",{ref:"scatterChart",attrs:{customColors:e.getColors(e.eChartSeries),yAxisName:"Performance (%)",xAxisName:"Volatilität (%)",height:"500px",hasLegend:e.chartParam.hasLegend,series:e.eChartSeries,changeOption:e.changeOption,tooltip:e.eChartRisicoTooltip}})],1)])},i=[],r=n("5530"),s=(n("7db0"),n("4e82"),n("b0c0"),n("fb6a"),n("d81d"),n("13d5"),n("99af"),n("ac1f"),n("1276"),n("5319"),n("b64b"),n("2f62")),o=n("642f"),l=n("9131"),c=n("626a"),u=n("a2c9"),d=n("f944"),h=n("c0a4"),f=n("9aaa"),p=n("a690"),m={props:{chartHeight:{type:String,default:"400px"},chartParam:{type:Object,required:!0},chartSeries:{type:Array,default:null},customColors:{type:Array,default:null},customColorsOrder:{default:function(){return{}}},setCustomColorsOrder:{default:null}},data:function(){return{perAnno:!1,year:3,message:"",riskData:[],cnt:0,colors:null,limits:null,scatter:null}},computed:Object(r["a"])(Object(r["a"])({hasYears:function(){return!this.chartParam||void 0===this.chartParam.hasYears||this.chartParam.hasYears},hasPerAnno:function(){return!this.chartParam||void 0===this.chartParam.hasPerAnno||this.chartParam.hasPerAnno},years:function(){return this.chartParam&&void 0!==this.chartParam.years?this.chartParam.years:[{label:"1 Jahr",value:1},{label:"3 Jahre",value:3},{label:"5 Jahre",value:5}]}},Object(s["b"])({fondsInfo:o["default"].GETTERS.DEPOTPOSITIONS_FONDSINFO})),{},{chartData:function(){return this.chartParam&&this.chartSeries?this.chartSeries:this.riskData.length?this.riskData:null},eChartSeries:function(){var e,t=this;if(null!==(e=this.chartData)&&void 0!==e&&e.length){var n;if(null===(n=this.chartSeries)||void 0===n||!n.length){var a=this.fondsInfo.schwerpunkt,i=this.chartData[0],r=this.chartData.slice(1);this.perAnno&&(i=[i[0],Object(c["i"])(this.year,i[1]),i[2]],r=r.map((function(e){return[e[0],Object(c["i"])(t.year,e[1]),e[2]]})));var s=r.reduce((function(e,t){return[e[0]+t[0],e[1]+t[1]]}),[0,0]);return s[0]=s[0]/r.length,s[1]=s[1]/r.length,s.push("Durchschnitt<br>"+a),this.colors=p["a"],[{name:"Durchschnitt",data:[s],symbolSize:0,markLine:{symbol:["none","none"],lineStyle:{type:"solid"},data:[{yAxis:s[1]},{xAxis:s[0]}]}},{name:a,data:r,symbolSize:8},{name:i[2][0],data:[i],symbol:"rect",symbolSize:10}]}var o=this.chartSeries.find((function(e){return e.minmax}));if(o){var l=o.minmax;return this.limits={minX:Math.floor(l[0]-(l[1]-l[0])/10),maxX:Math.ceil(l[1]+(l[1]-l[0])/10),minY:Math.floor(l[2]-(l[3]-l[2])/10),maxY:Math.ceil(l[3]+(l[3]-l[2])/10)},this.chartSeries.sort((function(e,t){return e.name.localeCompare(t.name)}))}}return[]},eChartRisicoTooltip:function(){return{trigger:"item",formatter:function(e){var t;if(Array.isArray(null===(t=e.value)||void 0===t?void 0:t[2])){var n=e.value[2].length>2&&"1"==e.value[2][2]?' class="color-danger"':"";return'\n              <div>\n                <div style="white-space: normal;"><b>'.concat(e.value[2][0],'</b></div>\n                <div class="tooltip-series-label">\n                  <div>\n                    <div').concat(n,">").concat(e.value[2][1],'</div>\n                    <div style="white-space: nowrap;">Performance: ').concat(Object(u["a"])(e.value[1],2),'</div>\n                    <div style="white-space: nowrap;">Volatilität: ').concat(Object(u["a"])(e.value[0],2),"</div>\n                  </div>\n                </div>\n              </div>")}return""}}}}),methods:{togglePerAnno:function(e){this.perAnno=e},changeYear:function(e){this.year=e},getColors:function(e){var t=this,n=this.customColors||this.colors;return Array.isArray(e)&&this.setCustomColorsOrder?e.map((function(e){var a=e.name.replace("\n"," *").split(/ \*/);if(a&&a[0])return t.customColorsOrder[a[0]]||t.setCustomColorsOrder(a[0]),t.customColorsOrder[a[0]]||n[Object.keys(t.customColorsOrder).length]})).concat(n):n},getRiskData:function(){if(!this.chartParam||!this.chartSeries){var e=this.fondsInfo.FUNDS_RISK_CHART;if(e&&e.isin===this.chartParam.isin&&e["data"+this.year]){if(this.message=e["data"+this.year].errorMesage||"",this.message)return null;this.riskData=e["data"+this.year].records}else e&&e.isin===this.chartParam.isin&&e.year===this.year?this.message="":(this.riskData=[],this.message="",this.$store.dispatch(o["default"].ACTIONS.RETRIEVE_DEPOTPOSITIONS_FONDSINFO_FUNDS_RISK_CHART,{isin:this.chartParam.isin,year:this.year}))}},changeOption:function(e){return e.legend&&(e.legend.itemWidth=15,e.legend.itemHeight=15),this.limits&&(e.xAxis.min=this.limits.minX,e.xAxis.max=this.limits.maxX,e.yAxis.min=this.limits.minY,e.yAxis.max=this.limits.maxY),e}},watch:{fondsInfo:{handler:function(){var e=this.fondsInfo.FUNDS_RISK_CHART;e&&e.isin===this.chartParam.isin&&e["data"+this.year]&&(this.message=e["data"+this.year].errorMesage||"",this.message||(this.riskData=e["data"+this.year].records))},deep:!0},year:function(){this.getRiskData()},riskData:function(){var e=this;if(this.chartParam.chartComp){var t,n,a,i=null===(t=this.$refs.scatterChart)||void 0===t||null===(n=t.$refs)||void 0===n?void 0:n.chart;null===i||void 0===i||!i._uid||this.scatter&&this.scatter._uid==(null===i||void 0===i?void 0:i._uid)||null===(a=this.eChartSeries)||void 0===a||!a.length||this.$nextTick((function(){var t;null!==(t=i.chart)&&void 0!==t&&t.on&&(e.scatter=i,e.chartParam.chartComp(i.chart,e.eChartSeries))}))}}},mounted:function(){var e;null!==(e=this.chartParam)&&void 0!==e&&e.year&&this.year!=this.chartParam.year?this.year=this.chartParam.year:this.getRiskData()},components:{ComboBox:l["default"],ScatterChart:d["a"],PhCaretDown:h["PhCaretDown"],InputToggleSwitch:f["default"]}},v=m,g=(n("3999"),n("2877")),b=Object(g["a"])(v,a,i,!1,null,"2a36e450",null);t["a"]=b.exports},ef5a:function(e,t,n){var a=n("084e");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("d825fbc4",a,!0,{sourceMap:!1,shadowMode:!1})},f3f0:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,"#chart-yield-risk-funds[data-v-2a36e450]{background-color:var(--color-box);margin:0;padding:0}.bar[data-v-2a36e450]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-bottom:2px solid var(--color-background)}.bar-item[data-v-2a36e450]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;cursor:pointer}.bar-item+.bar-item[data-v-2a36e450]{margin-left:2rem}.per-anno[data-v-2a36e450]{position:relative;width:1.3rem;height:1rem;-webkit-box-shadow:-1px -1px 0 #000;box-shadow:-1px -1px 0 #000}.per-anno i[data-v-2a36e450]{position:absolute}.years-choices span[data-v-2a36e450]{white-space:nowrap;cursor:pointer}.years-choices .active[data-v-2a36e450]{color:var(--color-workspaces-nav-active);background-color:var(--color-workspaces-nav-background)}",""]),e.exports=t},f944:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{style:e.style},[n("v-chart",e._g({ref:"chart",staticClass:"chart",attrs:{option:e.option,theme:e.themeKey,autoresize:""}},e.$listeners))],1)},i=[],r=n("5530"),s=n("ade3"),o=(n("a9e3"),n("d81d"),n("22b4")),l=n("f95e"),c=n("acf6"),u=n("2da7"),d=n("ff32"),h=n("104d"),f=n("3094"),p=n("4b2a"),m=n("9502"),v=n("5c7f"),g=n("a6ea");function b(){return{type:"scatter",symbolSize:12,symbol:"circle",itemStyle:{borderColor:"#fff"}}}Object(o["a"])([l["a"],c["a"],u["a"],d["a"],h["a"],f["a"],p["a"],m["a"]]);var S={mixins:[g["a"]],components:{VChart:v["b"]},provide:Object(s["a"])({},v["a"],{locale:"DE"}),props:{chartData:{type:Array,default:function(){return[]}},gridHeight:{type:Number,default:null},showDataZoom:{type:Boolean,default:!1},xAxisName:{type:String,default:""},yAxisName:{type:String,default:""},series:{type:Array,default:function(){return[]}},tooltip:{type:Object,default:null},customColors:{type:Array,default:null},hasLegend:{type:Boolean,default:null},changeOption:{type:Function,default:null}},data:function(){return{}},computed:{option:function(){var e,t=Object(r["a"])(Object(r["a"])(Object(r["a"])({},this.tooltip&&{tooltip:Object(r["a"])(Object(r["a"])({},this.tooltip),{},{position:{left:"center",top:"auto"}})}),{},{legend:{show:null!=this.hasLegend?this.hasLegend:((null===(e=this.series)||void 0===e?void 0:e.length)||0)<14,bottom:0},color:this.customColors||this.themeColors,backgroundColor:"transparent",grid:{top:"10%",bottom:"20%",left:"15%",right:"12.5%"},xAxis:{show:!0,type:"value",name:this.xAxisName,nameLocation:"middle",boundaryGap:!1,nameGap:25,nameTextStyle:{fontWeight:"bold"},min:function(e){return e.min<0?null:Math.round(e.min-.1*e.min)}},yAxis:{show:!0,type:"value",name:this.yAxisName,nameLocation:"middle",boundaryGap:!1,nameGap:25,nameTextStyle:{fontWeight:"bold"},min:function(e){return Math.round(e.min-.1*e.min)}}},this.showDataZoom&&{dataZoom:[{type:"inside",start:0,end:100},{start:0,end:100}]}),{},{series:this.series.map((function(e){return Object(r["a"])(Object(r["a"])({},b()),e)}))}),n=this.changeOption?this.changeOption(t):t;return Object(r["a"])(Object(r["a"])({},n||{}),{},{backgroundColor:"transparent"})}}},w=S,y=n("2877"),_=Object(y["a"])(w,a,i,!1,null,"6fdeee1c",null);t["a"]=_.exports}}]);