(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["sprod-immobilien-view","FondsVergleich~RetirementScenario~TarifdatenVorgabe~Vergleichsrechner~allekundenwertpapiere~anlageem~86436414","AnlageempfehlungMail~Anmerkungen~AnsprechpartnerMail~AntragMail~AppointmentMail~BeratungsmappenMail~~e9a6ab7d","RetirementScenario~TarifdatenVorgabe~configuration~customer-data~dynamic-documents-edit~fondsinfo~ge~119c91d7","Appointment~Spar-/Entnahmepläne~activities-termine~beteiligungen~sprod-weitere-vermoegen-search~vers~de5b4387","bipro~eingegangeneDokumentePruefung~mrmoney~suitabilityTest","chunk-c0f26dd2","additional-documents","chunk-6c45befd","chunk-5caf3008"],{"0005":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[e.isSmallScreen?e._e():n("BaseButton",{on:{click:function(t){return e.openAddModal()}}},[e._v("Neue Anpassung")]),!e.loading&&e.rows.length?n("Table",{attrs:{tableId:"5d753192-f0fe-426d-82d3-32c8080572e9",headers:e.headers,rows:e.rows,mobileConfig:{title:"Anpassungen",headers:["reason","date","aktWert"],disableClickRow:!1},rowsPerPage:10},on:{"click-reason":e.openEditModal,"action-DELETE":e.openDeleteModal}}):e.loading?n("div",{staticClass:"text-centered"},[n("AnimatedSpinner")],1):n("div",[e._v("Keine Daten")]),n("BaseModal",{ref:"anpassungDataModal",attrs:{size:"sm",modalTitle:"Wert anpassen",actions:e.baseModalActions,showDefaultButtons:!1},on:{"action-SPEICHERN":function(t){return e.actionSpeichern()}},scopedSlots:e._u([{key:"default",fn:function(){return[n("InputField",{attrs:{label:"Anpassungsgrund",validateUntouched:!0},model:{value:e.update.reason,callback:function(t){e.$set(e.update,"reason",t)},expression:"update.reason"}}),n("DatePickerField",{attrs:{isValueAsString:"",label:"Anpassungsdatum",validateUntouched:!0},model:{value:e.update.date,callback:function(t){e.$set(e.update,"date",t)},expression:"update.date"}}),n("InputField",{attrs:{label:e.aktWertLabel,type:"currency",validateUntouched:!0},model:{value:e.update.aktWert,callback:function(t){e.$set(e.update,"aktWert",t)},expression:"update.aktWert"}})]},proxy:!0},{key:"footer",fn:function(){return[n("BaseButton",{staticClass:"mr-3",attrs:{isSecondary:""},on:{click:function(t){return e.closeAnpassungDataModal()}}},[e._v("Abbrechen")]),n("BaseButton",{attrs:{disabled:e.validation.isInvalid("update")},on:{click:function(t){e.saveUpdate(),e.closeAnpassungDataModal()}}},[e._v("Speichern")])]},proxy:!0}])}),n("BaseModal",{ref:"anpassungDeleteModal",attrs:{size:"sm",modalTitle:"Anpassung löschen"},on:{onConfirmButton:function(t){return e.deleteUpdate()}},scopedSlots:e._u([{key:"default",fn:function(){return[e._v(" Soll die Anpassung wirklich gelöscht werden? ")]},proxy:!0}])})],1)},i=[],s=n("1da1"),o=n("5530"),r=(n("96cf"),n("d81d"),n("2f62")),l=n("a2eb"),c=n("04bc"),d=n("689f"),u=n("d53f"),p=n("2042"),h=n("a871"),f=n("c704"),m=n("0054"),b=n("d3ac"),v=n("6ce5"),g=n("64c5"),E=n("81f6"),_=n("2810"),S={mixins:[b["a"]],data:function(){return{loading:!1,update:{},updateToDelete:{}}},computed:Object(o["a"])(Object(o["a"])({},Object(r["b"])({otherProduct:l["default"].GETTERS.OTHER_PRODUCT,updates:l["default"].GETTERS.UPDATES,isSmallScreen:g["default"].GETTERS.IS_SMALL_SCREEN})),{},{baseModalActions:function(){var e=[];return this.isSmallScreen&&e.push(new _["c"]("SPEICHERN","Speichern")),e},aktWertLabel:function(){var e,t;return"Immobilie"===(null===(e=this.otherProduct)||void 0===e?void 0:e.produktart)?"aktueller Verkehrswert":"WeitereVerbindlichkeiten"===(null===(t=this.otherProduct)||void 0===t?void 0:t.produktTyp)?"aktueller Stand":"aktueller Wert"},headers:function(){return{lockedLeft:[Object(u["TextColumn"])("reason","Anpassungsgrund").makeLink()],center:[Object(u["DateColumn"])("date","Datum"),Object(u["CurrencyColumn"])("aktWert",this.aktWertLabel)],lockedRight:[Object(u["ActionColumn"])("actions","Aktionen")]}},rows:function(){var e=[Object(u["SimpleAction"])("DELETE","PhTrash","Löschen")];return(this.updates||[]).map((function(t){return Object(o["a"])(Object(o["a"])({},t),{},{actions:e})}))}}),methods:{actionSpeichern:function(){this.saveUpdate(),this.closeAnpassungDataModal()},registerEventBus:function(){var e=this;E["u"].$on(E["a"],(function(){e.openAddModal()}))},unregisterEventBus:function(){E["u"].$off(E["a"])},openAnpassungDataModal:function(){this.$refs.anpassungDataModal.open()},closeAnpassungDataModal:function(){this.$refs.anpassungDataModal.close()},openAddModal:function(){this.update={},this.openAnpassungDataModal()},openEditModal:function(e){this.update=Object(o["a"])({},e),this.openAnpassungDataModal()},saveUpdate:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch(l["default"].ACTIONS.SAVE_UPDATE,e.update);case 2:case"end":return t.stop()}}),t)})))()},openDeleteModal:function(e){this.updateToDelete=Object(o["a"])({},e),this.$refs.anpassungDeleteModal.open()},deleteUpdate:function(){var e;this.$store.dispatch(l["default"].ACTIONS.DELETE_UPDATE,{updateId:null===(e=this.updateToDelete)||void 0===e?void 0:e.id})}},mounted:function(){this.$store.dispatch(l["default"].ACTIONS.FIND_UPDATES),this.registerEventBus()},destroyed:function(){this.unregisterEventBus()},validators:{update:{reason:[Object(v["s"])()],date:[Object(v["s"])()]}},components:{BaseButton:c["default"],Table:d["a"],AnimatedSpinner:p["a"],BaseModal:h["a"],InputField:f["default"],DatePickerField:m["default"]}},T=S,y=n("2877"),x=Object(y["a"])(T,a,i,!1,null,null,null);t["a"]=x.exports},"0431":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",[e.useParentOptionMenu?n("OptionMenu",{attrs:{id:e.$appNavigation.parentOptionMenuId,defaultMenu:e.$appNavigation.parentOptionMenu}}):n("OptionMenu",{attrs:{id:e.$appNavigation.currentOptionMenuId,defaultMenu:e.$appNavigation.currentOptionMenu}}),n("PageHeaderTitleNavigation",{attrs:{id:e.$appNavigation.currentOptionMenuId,title:e.pageMetadata.title,subtitle:e.pageMetadata.subtitle,actions:e.headerActions},on:{"action-ADD-AKTIVITAET":e.newAppointment}}),n("StepperForm",{ref:"stepperForm",attrs:{stepType:"tab",stepperName:"other-product",stepperMediator:e.stepperMediator,hasFertig:e.isTestBroker||e.isTestCustomer,selectedStepKey:e.selectedStepKey,additionalActionsForMobile:e.baseModalActions},on:{handleOtherActions:e.handleOtherActions,"set-step":function(t){return e.setStep(t)},"on-fertig":e.onDone},scopedSlots:e._u([{key:"contentTemplate",fn:function(){return["produktdaten"===e.selectedStepKey?n("Produktdaten",{ref:"produktdaten"}):"anpassungen"===e.selectedStepKey?n("Anpassungen"):"dokumente"===e.selectedStepKey?n("div",["Immobilie"===e.type?n("DragnDropArea",{attrs:{hoverText:"Datei hier ablegen"},on:{files:e.dropFile}},[n("div",{staticClass:"box__container"},[n("DocumentsTable",{ref:"documentsTableEl",attrs:{title:"Dokumente",nodeId:e.combos.nodeId}})],1)]):n("Dokumente")],1):"abrechnung"===e.selectedStepKey?n("Abrechnung"):"aenderungslog"===e.selectedStepKey?n("Aenderungslog"):"manuelle-struktur"===e.selectedStepKey?n("ManuelleStruktur"):"aktivitaet"===e.selectedStepKey?n("Aktivitaet"):e._e()]},proxy:!0}])})],1)},i=[],s=n("1da1"),o=n("5530"),r=(n("96cf"),n("99af"),n("7db0"),n("2f62")),l=n("a2eb"),c=n("64c5"),d=n("62d6"),u=n("7305"),p=n("0005"),h=n("2538"),f=n("b06f"),m=n("758e"),b=n("f056"),v=n("95ea"),g=n("41d3"),E=n("a871"),_=n("bc9e"),S=n("4bd7"),T=n("11e7"),y=n("3931"),x=n("8103"),k=n("7044"),A=n("4e5f"),I=n("e20e"),C=n("2810"),w=n("81f6"),O="produktdaten",D="SonstigeProdukte",N={components:{StepperForm:d["a"],Produktdaten:u["a"],Anpassungen:p["a"],Dokumente:h["a"],Abrechnung:f["a"],Aenderungslog:m["a"],ManuelleStruktur:b["a"],Aktivitaet:v["a"],BaseModal:E["a"],AppointmentEditCreate:_["default"],DocumentsTable:S["a"],DragnDropArea:T["a"],OptionMenu:y["a"],PageHeaderTitleNavigation:x["a"]},props:{type:{type:String,default:""},useParentOptionMenu:{type:Boolean,default:!1}},data:function(){var e=0;return{steps:[{stepKey:"produktdaten",label:"Produktdaten",totalProgress:1,index:e++},{stepKey:"anpassungen",label:"Anpassungen",totalProgress:1,index:e++},{stepKey:"dokumente",label:"Dokumente",totalProgress:1,index:e++,hidden:!0},{stepKey:"abrechnung",label:"Abrechnung",totalProgress:1,index:e++,hidden:!0},{stepKey:"aenderungslog",label:"Änderungslog",totalProgress:1,index:e++,hidden:!0},{stepKey:"manuelle-struktur",label:"Manuelle Struktur",totalProgress:1,index:e++,hidden:!0},{stepKey:"aktivitaet",label:"Aktivität",totalProgress:1,index:e++,hidden:!0}],BEREICH:D}},computed:Object(o["a"])(Object(o["a"])({},Object(r["b"])({sprodId:l["default"].GETTERS.SELECTED_SPROD_ID,otherProduct:l["default"].GETTERS.OTHER_PRODUCT,isByPass:c["default"].GETTERS.IS_BYPASS,isIntern:c["default"].GETTERS.IS_INTERN,loginData:c["default"].GETTERS.GET_LOGIN_DATA,combos:l["default"].GETTERS.COMBOS,isTestBroker:c["default"].GETTERS.IS_TEST_BROKER,isTestCustomer:c["default"].GETTERS.IS_TEST_CUSTOMER,isBrokerOrBypass:c["default"].GETTERS.IS_BROKER_OR_BYPASS})),{},{baseModalActions:function(){var e=[];return"anpassungen"===this.selectedStepKey&&e.push(new C["c"]("NEUE_ANPASSUNG","Neue Anpassung")),e},pageMetadata:function(){var e,t;return{title:(null===(e=this.otherProduct)||void 0===e?void 0:e.produktart)||(null===I["c"]||void 0===I["c"]?void 0:I["c"][this.type])||" ",subtitle:null===(t=this.otherProduct)||void 0===t?void 0:t.produktbez}},headerActions:function(){var e=this.isBrokerOrBypass,t=[];return e&&t.push(Object(A["h"])("ADD-AKTIVITAET","Aktivität hinzufügen")),t},rights:function(){var e;return(null===(e=this.loginData)||void 0===e?void 0:e.rights)||{}},isNew:function(){return this.sprodId===I["d"]},stepperMediator:function(){return new k["a"](JSON.parse(JSON.stringify(this.steps)))},selectedStepKey:function(){var e;return(null===(e=this.$route.params)||void 0===e?void 0:e.step)||O}}),watch:{$route:function(e,t){var n,a,i;"produktdaten"!==(null===t||void 0===t||null===(n=t.params)||void 0===n?void 0:n.step)||null!==(a=this.$refs)&&void 0!==a&&null!==(i=a.produktdaten)&&void 0!==i&&i.checkData()||this.$router.push("".concat(I["a"][this.type],"/edit/").concat(this.sprodId,"/produktdaten"))},combos:function(){this.configureSteps()}},methods:{handleOtherActions:function(e){"NEUE_ANPASSUNG"===(null===e||void 0===e?void 0:e.key)&&w["u"].$emit(w["a"])},init:function(){var e;this.$store.commit(l["default"].MUTATIONS.SET_CURRENT_TYPE,this.type),this.$store.commit(l["default"].MUTATIONS.SET_SELECTED_SPROD_ID,null===(e=this.$route.params)||void 0===e?void 0:e.sprodId),this.findCombos(),this.getOtherProduct(this.sprodId),this.configureSteps()},findCombos:function(){this.$store.dispatch(l["default"].ACTIONS.GET_COMBOS)},getOtherProduct:function(){this.$store.dispatch(l["default"].ACTIONS.GET_OTHER_PRODUCT)},setStep:function(e){this.selectedStepKey!==e&&this.$router.push("".concat(I["a"][this.type],"/edit/").concat(this.sprodId,"/").concat(e))},onDone:function(){this.$router.push({path:"".concat(I["a"][this.type],"/search?backAction=true")})},configureSteps:function(){var e,t,n,a;this.showStep("dokumente",(null===(e=this.rights)||void 0===e?void 0:e.showDocumentArchive)||(null===(t=this.rights)||void 0===t?void 0:t.updateDocumentArchive)),this.showStep("abrechnung",this.isByPass&&(null===(n=this.combos)||void 0===n?void 0:n.allowReadVertragAbrechnung)),this.showStep("aenderungslog",this.isIntern),this.showStep("manuelle-struktur",this.isIntern||(null===(a=this.combos)||void 0===a?void 0:a.hasRightManuelleCourtage)),this.showStep("aktivitaet",this.isByPass)},showStep:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.steps.find((function(t){return t.stepKey===e}));n.hidden=!t,this.$refs.stepperForm.setStepHidden(e,!t)},newAppointment:function(){this.$store.commit(g["default"].MUTATIONS.SET_NEW_TERMIN),this.$store.commit(g["default"].MUTATIONS.SET_APPOINTMENT,{activity:!0}),this.openAppointment()},findAppointments:function(){this.$store.dispatch(l["default"].ACTIONS.FIND_APPOINTMENTS)},openAppointment:function(){this.$store.commit(g["default"].MUTATIONS.SET_APPOINTMENT_CONFIG,{title:"Aktivität bearbeiten",bereich:this.BEREICH,bereichId:this.sprodId,mode:"Aktivität",isActivity:!1,selectedDate:null,discardChanges:this.resetAppointment,back:this.$router.currentRoute.fullPath}),this.$router.push({path:"/communication/appointment"})},resetAppointment:function(){this.$store.commit(g["default"].MUTATIONS.RENEW_CALENDAR_DATA)},dropFile:function(e){this.$refs.documentsTableEl.dateiHochladen(e)},addDefaultBreadcrumbIfNotExists:function(){this.$addDefaultBreadcrumb([{fullPath:"".concat(I["a"][this.type],"/search")}])}},mounted:function(){this.init(),this.addDefaultBreadcrumbIfNotExists()},beforeRouteLeave:function(e,t,n){var a=this;return Object(s["a"])(regeneratorRuntime.mark((function i(){var s,o;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(null===(s=a.$refs)||void 0===s||null===(o=s.produktdaten)||void 0===o||!o.checkData()){i.next=3;break}return i.next=3,a.$store.dispatch(l["default"].ACTIONS.SAVE_OTHER_PRODUCT);case 3:a.$store.commit(l["default"].MUTATIONS.RESET_OTHER_PRODUCT_STATE),a.$addBreadcrumb({to:e,from:t,label:a.pageMetadata.title}),n();case 6:case"end":return i.stop()}}),i)})))()}},M=N,R=n("2877"),P=Object(R["a"])(M,a,i,!1,null,null,null);t["default"]=P.exports},"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,s){return n("span",{key:"sub"+s+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=[],s=n("5530"),o=(n("7db0"),n("c740"),n("99af"),n("9911"),n("bb48")),r=n("c0a4"),l=n("c1a1"),c=n("5c70"),d=n("b20b"),u=n("e029"),p=n("e008"),h=n("2f62"),f=n("2684"),m={mixins:[u["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(s["a"])(Object(s["a"])({},Object(h["b"])({isMobileNativeContext:f["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(d["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:o["a"],PhCaretDown:r["PhCaretDown"],DoughnutProgress:c["a"],BaseCollapsable:p["a"],PhCaretRight:r["PhCaretRight"],PhCircle:r["PhCircle"],PhCheckCircle:r["PhCheckCircle"],PhWarningCircle:r["PhWarningCircle"]}},b=m,v=(n("5850"),n("2877")),g=Object(v["a"])(b,a,i,!1,null,"d90a9422",null);t["a"]=g.exports},"0772":function(e,t,n){"use strict";n("188f")},"095b":function(e,t,n){"use strict";n("1b74")},"0d91":function(e,t,n){"use strict";n("b7d2")},"16d2":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".container[data-v-054ae8a6]{margin:0;padding:0}.cell[data-v-054ae8a6]{display:table-cell}.icon[data-v-054ae8a6]{vertical-align:text-bottom}",""]),e.exports=t},"17b1":function(e,t,n){"use strict";n("3dd5")},"17d64":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",{staticClass:"input-forms__container"},[n("label",{staticClass:"input-forms__label-container"},[e.label?n("div",{staticClass:"input-forms__label-content"},[e._v(e._s(e.label))]):e._e(),n("div",{staticClass:"layout__negative-margin--8 d-flex",class:{"forms__input--half-size":this.isComponentHalfSize}},[n("div",{staticClass:"entity-selector__combobox-container"},[n("ComboBox",{attrs:{renderDanger:e.isValidationConfigured()&&e.validation.isInvalid(this.validationPath)&&e.validation.isDirty(this.validationPath),isEntitySelector:"",values:e.values,value:e.internalValue,disabled:e.disabled,firstEmpty:e.firstEmpty,sortComboboxValues:e.sortComboboxValues,isEmbedded:""},on:{input:e.onChange}})],1),e.hideNewButton?e._e():n("div",{staticClass:"entity-selector__button input-forms__buttons--line-height d-flex clickable"},[n("div",{staticClass:"d-flex",on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.doClick("new")}}},["default"===e.iconNew?n("ph-file-plus",{attrs:{size:24}}):e._e(),"person"===e.iconNew?n("ph-user-plus",{attrs:{size:24}}):e._e()],1)]),e.isSomethingSelected&&e.hasEditButton?n("div",{staticClass:"entity-selector__button input-forms__buttons--line-height d-flex clickable"},[n("ph-pencil-line",{attrs:{size:24},on:{click:function(t){return t.preventDefault(),t.stopPropagation(),e.$emit("edit",e.internalValue)}}})],1):e._e()]),e.isValidationConfigured()&&!e.suppressValidationMessage&&e.validation.isInvalid(this.validationPath,this.validateUntouched)?n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("div",{key:e.validation.updated},e._l(e.validation.getErrors(this.validationPath,this.validateUntouched),(function(t){return n("div",{key:t,staticClass:"fc-form-danger"},[e._v(" "+e._s(t)+" ")])})),0)])]):e._e()])])},i=[],s=n("9131"),o=n("c0a4"),r=n("7bf0"),l={mixins:[r["a"]],components:{ComboBox:s["default"],PhFilePlus:o["PhFilePlus"],PhPencilLine:o["PhPencilLine"],PhUserPlus:o["PhUserPlus"]},props:{label:{},value:{},values:{type:[Array,String],default:function(){return[]}},textNewButton:{type:String,default:""},textEditButton:{type:String,default:""},hasEditButton:{type:Boolean,default:!0},hideNewButton:{type:Boolean,default:!1},validateUntouched:{type:Boolean,default:!1},suppressValidationMessage:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isComponentHalfSize:{type:Boolean,default:!1},isPersonPicker:{type:Boolean,default:!1},firstEmpty:{type:Boolean,default:!1},sortComboboxValues:{type:Boolean,default:!0}},watch:{value:function(e){this.internalValue=e,this.$runValidator(this.internalValue)},disabled:function(){this.disabled?this.$reset():this.$runValidator(this.internalValue)}},data:function(){return{internalValue:null}},mounted:function(){this.internalValue=this.value},computed:{iconNew:function(){return this.isPersonPicker?"person":"default"},isSomethingSelected:function(){return this.internalValue&&"NICHT_VERWENDEN"!==this.internalValue}},methods:{onChange:function(e){this.$emit("change",e),this.$emit("input",e),this.$runValidator(e),this.$setDirty()},doClick:function(e){this.disabled||this.$emit(e,this.internalValue)}}},c=l,d=(n("0772"),n("2877")),u=Object(d["a"])(c,a,i,!1,null,"5dce6aaa",null);t["default"]=u.exports},"188f":function(e,t,n){var a=n("f155");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("4bd20d99",a,!0,{sourceMap:!1,shadowMode:!1})},"1b74":function(e,t,n){var a=n("73d2b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("9e4debfa",a,!0,{sourceMap:!1,shadowMode:!1})},"1ec9":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".rail[data-v-f8102502]{display:-webkit-box;display:-ms-flexbox;display:flex;height:2px;width:100%;-webkit-box-flex:2;-ms-flex:2 100%;flex:2 100%}.step[data-v-f8102502]{margin:0 1px;height:100%;width:100%;-webkit-transition:width .3s ease-in-out;transition:width .3s ease-in-out;outline:none}.step[data-v-f8102502]:hover{height:500%;-webkit-transform:translateY(-50%);transform:translateY(-50%);cursor:pointer}.step-progress[data-v-f8102502]{background:#28a745;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.1);box-shadow:0 0 5px 0 rgba(0,0,0,.1)}.step-empty[data-v-f8102502]{background:#000}.step-warning[data-v-f8102502]{background:#dc3545;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.1);box-shadow:0 0 5px 0 rgba(0,0,0,.1)}@media (min-width:768px){.rail[data-v-f8102502]{padding:0 10px}.step[data-v-f8102502]{margin:0 2px}}",""]),e.exports=t},2538:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[n("SimpleAdditionalDocumentsTable",{ref:"documentsTable",attrs:{nodeId:e.nodeId,fileId:e.fileId,customDocuments:e.customDocuments,customUpload:e.addDocument,uploadInputsConfig:e.uploadInputsConfig,multipleFileUpload:"",isLoading:e.loading},on:{showDocument:e.showDocument,deleteDocument:function(t){return e.deleteDocument(t.fileId)}}})],1)},i=[],s=n("1da1"),o=n("5530"),r=(n("96cf"),n("d81d"),n("a4d3"),n("e01a"),n("5a0c")),l=n.n(r),c=n("2f62"),d=n("a2eb"),u=n("823e"),p={data:function(){return{loading:!1}},computed:Object(o["a"])(Object(o["a"])({},Object(c["b"])({sprodId:d["default"].GETTERS.SELECTED_SPROD_ID,combos:d["default"].GETTERS.COMBOS,otherProduct:d["default"].GETTERS.OTHER_PRODUCT,documents:d["default"].GETTERS.DOCUMENTS})),{},{customDocuments:function(){return this.documents.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{name:null===e||void 0===e?void 0:e.filename,bezeichnung:null===e||void 0===e?void 0:e.description,bemerkung:null===e||void 0===e?void 0:e.comment,erstellt_am:l()(null===e||void 0===e?void 0:e.dateStand).format("DD.MM.YYYY")})}))},nodeId:function(){var e;return(null===(e=this.combos)||void 0===e?void 0:e.nodeId)||""},fileId:function(){var e;return(null===(e=this.combos)||void 0===e?void 0:e.fileId)||""},uploadInputsConfig:function(){return{hidden:["input_sprod_id"]}}}),methods:{findDocuments:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch(d["default"].ACTIONS.FIND_DOCUMENTS);case 2:case"end":return t.stop()}}),t)})))()},addDocument:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$store.dispatch(d["default"].ACTIONS.ADD_DOCUMENT,{tempFileId:e.id,formData:e.formData});case 2:t.findDocuments();case 3:case"end":return n.stop()}}),n)})))()},showDocument:function(e){this.$store.dispatch(d["default"].ACTIONS.DOWNLOAD_DOCUMENT,e)},deleteDocument:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.$store.dispatch(d["default"].ACTIONS.DELETE_DOCUMENT,{fileId:e});case 2:t.findDocuments();case 3:case"end":return n.stop()}}),n)})))()}},mounted:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){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.findDocuments();case 4:return t.prev=4,e.loading=!1,t.finish(4);case 7:case"end":return t.stop()}}),t,null,[[0,,4,7]])})))()},components:{SimpleAdditionalDocumentsTable:u["a"]}},h=p,f=n("2877"),m=Object(f["a"])(h,a,i,!1,null,null,null);t["a"]=m.exports},2943:function(e,t,n){"use strict";n("a4a6")},"29b9":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".form-container[data-v-b9e74b14]{display:-webkit-box;display:-ms-flexbox;display:flex}.form-container .form-container__stepper[data-v-b9e74b14]{display:none;margin:0 24px 0 0;-webkit-transition:width .5s ease;transition:width .5s ease}.form-container .form-container__stepper>*[data-v-b9e74b14]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:100%}.form-container .form-container__content[data-v-b9e74b14]{width:100%;-webkit-transition:width .5s ease;transition:width .5s ease}.form-container.form-container--transition-active .form-container__content[data-v-b9e74b14]{overflow:hidden}@media screen and (min-width:992px){.form-container .form-container__stepper[data-v-b9e74b14]{display:-webkit-box;display:-ms-flexbox;display:flex;width:350px;position:sticky;top:0;-ms-flex-item-align:start;align-self:flex-start;max-height:1000px;overflow-y:auto}.form-container .form-container__content[data-v-b9e74b14]{width:calc(100% - 324px)}.form-container .form-container__content.form-container__content--full[data-v-b9e74b14]{width:100%}.form-container.form-container__stepper-collapsed .form-container__stepper[data-v-b9e74b14]{width:68px}.form-container.form-container__stepper-collapsed .form-container__content[data-v-b9e74b14]{width:calc(100% - 92px)}}@media screen and (min-width:3840px){.app--is-test-user-context .form-container .form-container__stepper[data-v-b9e74b14]{display:-webkit-box;display:-ms-flexbox;display:flex;width:400px}.app--is-test-user-context .form-container .form-container__content[data-v-b9e74b14]{width:calc(100% - 424px)}}",""]),e.exports=t},"2b3f":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".doughnut-progress__container[data-v-42a55d81]{height:180px;width:180px}",""]),e.exports=t},"2c01":function(e,t,n){var a=n("5e3f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("4dc55198",a,!0,{sourceMap:!1,shadowMode:!1})},"2ddc":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isVisible?n("div",{ref:"popup",class:["popup",{popup__minimized:this.isMinimized}],style:{zIndex:e.zIndex,top:e.top+"px",left:e.left+"px"}},[n("div",{staticClass:"header",attrs:{"data-draggable":"true"},on:{mousedown:e.startDrag,touchstart:e.handleTouchStart}},[n("span",{staticClass:"modal__title",attrs:{"data-draggable":"true"}},[e._v(e._s(e.modalTitle))]),n("div",{staticClass:"hearder__buttons"},[0==e.isMinimized?n("button",{staticClass:"base-modal__header--button clickable",attrs:{type:"button"},on:{click:function(t){return e.minimizePopup()}}},[n("PhArrowLineDown",{attrs:{size:"20"}})],1):e._e(),n("button",{staticClass:"base-modal__header--button clickable",attrs:{type:"button"},on:{click:function(t){return e.restorePopup()}}},[0==e.isMinimized?n("PhArrowsInSimple",{attrs:{size:"20"}}):n("PhArrowLineUp",{attrs:{size:"20"}})],1),e.isMaximized?e._e():n("button",{staticClass:"base-modal__header--button clickable",attrs:{type:"button"},on:{click:function(t){return e.maximizePopup()}}},[n("PhFrameCorners",{attrs:{size:"20"}})],1),n("button",{staticClass:"base-modal__header--button clickable",attrs:{type:"button"},on:{click:function(t){return e.closePopup()}}},[n("PhXCircle",{attrs:{size:"20"}})],1)])]),n("div",{staticClass:"content"},[e._t("default")],2),e.isSafariOniOS?n("div",{staticClass:"resizable-handle",on:{touchstart:e.startResizing,touchmove:e.resize,touchend:e.stopResizing}}):e._e()]):e._e()},i=[],s=n("b85c"),o=n("1da1"),r=n("5530"),l=(n("96cf"),n("a9e3"),n("caad"),n("498a"),n("2532"),n("99af"),n("c0a4")),c=n("3170"),d=n("8d3d"),u=n("64a1"),p=n("64c5"),h=n("2f62"),f=!!c["a"].supportsPassive&&{passive:!0,capture:!1},m=395,b=42,v=25,g=25,E=8,_=12,S=24,T={name:"ResizablePopup",components:{PhXCircle:l["PhXCircle"],PhFrameCorners:l["PhFrameCorners"],PhArrowsInSimple:l["PhArrowsInSimple"],PhArrowLineDown:l["PhArrowLineDown"],PhArrowLineUp:l["PhArrowLineUp"]},props:{modalTitle:{default:"Modal Title"},initialHeight:{type:Number,default:400},initialWidth:{type:Number,default:600},sizeIsPercentage:{type:Boolean,default:!1},fullClientHeight:{type:Boolean,default:!1},startPosition:{type:String,default:"TOP_LEFT",validator:function(e){return["TOP_RIGHT","TOP_LEFT","BOTTOM_RIGHT","BOTTOM_LEFT"].includes(e)}},saveLastPosition:{type:Boolean,default:!0},id:{type:String,required:!0,validator:function(e){var t=!!e&&!!e.trim();return t}}},data:function(){return{isVisible:!1,isMaximized:!1,isMinimized:!1,resizeObserver:null,isDragging:!1,isLongPress:!1,initialTouch:null,initialMouseX:0,initialMouseY:0,initialPopupX:0,initialPopupY:0,zIndex:9999,top:0,left:0,longPressTimeout:null,isResizing:!1,startX:0,startY:0,startWidth:0,startHeight:0,currentWindowHeight:window.innerHeight}},watch:{isVisible:function(e){e?this.setupResizeObserver():this.teardownResizeObserver()}},computed:Object(r["a"])(Object(r["a"])({},Object(h["b"])({fcConfigResizableModal:d["default"].GETTERS.GET_FC_CONFIG_RESIZABLE_MODAL,isIntern:p["default"].GETTERS.IS_INTERN,isBroker:p["default"].GETTERS.IS_BROKER,isKunde:p["default"].GETTERS.IS_CUSTOMER_ONLY,userLevelDefault:d["default"].GETTERS.GET_FC_CONFIG_USER_LEVEL_DEFAULT})),{},{savedModalPosition:function(){var e;if(!1===this.saveLastPosition)return null;var t=null===(e=this.fcConfigResizableModal[this.id])||void 0===e?void 0:e.content;return t?JSON.parse(t):null},computedInitialWidth:function(){return Math.max(this.initialWidth,this.sizeIsPercentage?g:m)},computedInitialHeight:function(){if(this.fullClientHeight){var e=this.currentWindowHeight-_;return Math.max(e,this.sizeIsPercentage?v:b)}return Math.max(this.initialHeight,this.sizeIsPercentage?v:b)},isSafariOniOS:function(){var e=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,t=navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&!navigator.userAgent.includes("CriOS")&&!navigator.userAgent.includes("FxiOS");return e&&t},isIOS:function(){return/iPad|iPhone|iPod/.test(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}}),methods:{startResizing:function(e){this.isResizing=!0,this.startWidth=this.startWidth||this.computedInitialWidth,this.startHeight=this.startHeight||this.computedInitialHeight,this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY},resize:function(e){if(this.isResizing){var t=e.touches[0].clientX,n=e.touches[0].clientY,a=this.$refs.popup;a.style.width="".concat(this.startWidth+(t-this.startX),"px"),a.style.height="".concat(this.startHeight+(n-this.startY),"px"),e.preventDefault()}},stopResizing:function(){this.isResizing=!1;var e=this.$refs.popup,t=window.getComputedStyle(e),n=parseInt(t.getPropertyValue("width")),a=parseInt(t.getPropertyValue("height"));this.startWidth=n,this.startHeight=a},showPopup:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.saveLastPosition){t.next=3;break}return t.next=3,e.loadModalSettings();case 3:e.isVisible=!0,e.$nextTick((function(){e.currentWindowHeight=window.innerHeight;var t=e.$refs.popup;t&&(t.style.width="".concat(e.computedInitialWidth).concat(e.sizeIsPercentage?"%":"px"),t.style.height="".concat(e.computedInitialHeight).concat(e.sizeIsPercentage?"%":"px"),t.style.minWidth="".concat(m,"px"),t.style.minHeight="".concat(b,"px")),e.setupResizeObserver(),e.ensurePopupVisible(),e.setInitialPosition()}));case 5:case"end":return t.stop()}}),t)})))()},setInitialPosition:function(){var e=this.savedModalPosition,t=this.$refs.popup,n=window.getComputedStyle(t),a=parseInt(n.getPropertyValue("width")),i=parseInt(n.getPropertyValue("height")),s=window.innerWidth,o=window.innerHeight,r=E,l=E;switch(this.startPosition){case"TOP_RIGHT":r=s-a-S;break;case"BOTTOM_LEFT":l=o-i-E;break;case"BOTTOM_RIGHT":r=s-a-S,l=o-i-E;break;default:r=E;break}this.left=(null===e||void 0===e?void 0:e.left)||r,this.top=this.fullClientHeight?l:(null===e||void 0===e?void 0:e.top)||l},closePopup:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.isVisible=!1,e.isMaximized=!1,e.isMinimized=!1,!e.saveLastPosition){t.next=6;break}return t.next=6,e.saveModalSettings();case 6:case"end":return t.stop()}}),t)})))()},maximizePopup:function(){this.left=8,this.top=8;var e=this.$refs.popup;if(e){e.style.width="calc(100vw - ".concat(S,"px)"),e.style.height="calc(100vh -  ".concat(_,"px)"),this.isMaximized=!0,this.isMinimized=!1;var t=window.getComputedStyle(e),n=parseInt(t.getPropertyValue("width")),a=parseInt(t.getPropertyValue("height"));this.$emit("onMaximize",{width:n,height:a})}},restorePopup:function(){var e=this.$refs.popup;e&&(e.style.width="".concat(this.computedInitialWidth).concat(this.sizeIsPercentage?"%":"px"),e.style.height="".concat(this.computedInitialHeight).concat(this.sizeIsPercentage?"%":"px"),this.isMaximized=!1,this.isMinimized=!1,this.$emit("onRestore",{width:this.computedInitialWidth,height:this.computedInitialHeight}),this.ensurePopupVisible(),this.setInitialPosition())},minimizePopup:function(){var e=this.$refs.popup;if(e){e.style.width="".concat(this.computedInitialWidth).concat(this.sizeIsPercentage?"%":"px"),e.style.height="".concat(b,"px");var t=window.getComputedStyle(e),n=parseInt(t.getPropertyValue("height")),a=window.innerHeight,i=a-n-E;this.top=i,this.isMaximized=!1,this.isMinimized=!0,this.$emit("onMinimize",{width:this.computedInitialWidth,height:b}),this.ensurePopupVisible()}},ensurePopupVisible:function(){if(this.isVisible){var e=this.$refs.popup;if(e){var t=window.innerWidth,n=window.innerHeight,a=e.getBoundingClientRect();if(a.left<0)this.left=this.left+-1*a.x;else if(a.right>t){var i=a.right-t;this.left=this.left-i}if(a.top<0)this.top=this.top+-1*a.y;else if(a.bottom>n){var s=a.bottom-n;this.top=this.top-s}}}},disableResizing:function(){var e=this.$refs.popup;e.style.resize="none",setTimeout((function(){e.style.resize="both"}),500)},setupResizeObserver:function(){var e=this;this.$refs.popup&&!this.resizeObserver&&(this.resizeObserver=new ResizeObserver((function(t){var n,a=Object(s["a"])(t);try{for(a.s();!(n=a.n()).done;){var i=n.value,o=null===i||void 0===i?void 0:i.target;if(o){var r,l,c,d,u,p,h=null===i||void 0===i||null===(r=i.borderBoxSize)||void 0===r||null===(l=r[0])||void 0===l?void 0:l.blockSize,f=null===i||void 0===i||null===(c=i.borderBoxSize)||void 0===c||null===(d=c[0])||void 0===d?void 0:d.inlineSize,m=o.getBoundingClientRect(),b=window.innerWidth,v=window.innerHeight,g=b,E=v;m.y<0&&(e.top=e.top+-1*m.y,e.initialPopupY=e.top),m.x<0&&(e.left=e.left+-1*m.x,e.initialPopupX=e.left);var T=b-m.left-S,y=v-m.top-_,x=Math.min(f,g,T),k=Math.min(h,E,y),A=null===i||void 0===i||null===(u=i.contentRect)||void 0===u?void 0:u.width,I=null===i||void 0===i||null===(p=i.contentRect)||void 0===p?void 0:p.height;(A>=g||I>=E)&&e.disableResizing(),o.style.width="".concat(x,"px"),o.style.height="".concat(k,"px"),e.$emit("onResize",{width:x,height:k}),e.isMaximized=x>=g&&k>=E,e.initialMouseX=0,e.initialMouseY=0}}}catch(C){a.e(C)}finally{a.f()}})),this.resizeObserver.observe(this.$refs.popup))},teardownResizeObserver:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},handleTouchStart:function(e){var t=this;this.initialTouch=e.touches[0],this.longPressTimeout=setTimeout((function(){t.isLongPress=!0,t.startDrag(e)}),200),document.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),document.addEventListener("touchend",this.handleTouchEnd)},handleTouchMove:function(e){this.isLongPress?this.handleDrag(e):clearTimeout(this.longPressTimeout)},handleTouchEnd:function(){clearTimeout(this.longPressTimeout),this.isLongPress=!1,this.endDrag(),document.removeEventListener("touchmove",this.handleTouchMove),document.removeEventListener("touchend",this.handleTouchEnd)},startDrag:function(e){e.preventDefault();var t="touchstart"===e.type?e.touches[0]:e;if("true"===e.target.getAttribute("data-draggable")){this.initialMouseX=t.clientX,this.initialMouseY=t.clientY,this.isDragging=!0;var n=this.$refs.popup;this.initialPopupX=n.offsetLeft,this.initialPopupY=n.offsetTop,document.addEventListener("mousemove",this.throttledHandleDrag,{passive:!1}),document.addEventListener("mouseup",this.endDrag,f)}},handleDrag:function(e){if(e.preventDefault(),0!==e.buttons){var t="touchmove"===e.type?e.touches[0]:e;if(this.isDragging){var n=t.clientX-this.initialMouseX,a=t.clientY-this.initialMouseY;this.top=this.initialPopupY+a,this.left=this.initialPopupX+n;var i=this.$refs.popup,s=document.documentElement.clientWidth,o=document.documentElement.clientHeight,r=i.offsetWidth,l=i.offsetHeight,c=0,d=0;this.top=Math.min(Math.max(d+window.scrollY,this.initialPopupY+a),o-l+window.scrollY),this.left=Math.min(Math.max(c+window.scrollX,this.initialPopupX+n),s-r+window.scrollX)}}else this.endDrag()},endDrag:function(){this.isDragging=!1,document.removeEventListener("mousemove",this.throttledHandleDrag),document.removeEventListener("mouseup",this.endDrag)},throttle:function(e,t){var n,a;return function(){var i=this,s=arguments;a?(clearTimeout(n),n=setTimeout((function(){Date.now()-a>=t&&(e.apply(i,s),a=Date.now())}),t-(Date.now()-a))):(e.apply(i,s),a=Date.now())}},saveModalSettings:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,a,i,s,o,r,l,c,p,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.id,a=e.left,i=e.top,s=e.isIntern,o=e.isBroker,r=e.isKunde,l=e.$store,c=s?u["b"].INTERN:o?u["b"].MAKLER:r?u["b"].KUNDE:e.userLevelDefault,p=JSON.stringify({left:a,top:i}),h={configId:n,configType:u["c"].RESIZABLE_MODAL_CONFIG,content:p,userLevel:c},t.prev=4,t.next=7,l.dispatch(d["default"].ACTIONS.SAVE_FC_CONFIG,h);case 7:t.next=12;break;case 9:t.prev=9,t.t0=t["catch"](4),console.error("Error saving modal settings:",t.t0);case 12:case"end":return t.stop()}}),t,null,[[4,9]])})))()},loadModalSettings:function(){var e=arguments,t=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var a,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=!(e.length>0&&void 0!==e[0])||e[0],t.id){n.next=3;break}return n.abrupt("return");case 3:return i={configId:t.id,configType:u["c"].RESIZABLE_MODAL_CONFIG,forceReload:a},n.next=6,t.$store.dispatch(d["default"].ACTIONS.LOAD_FC_CONFIG,i);case 6:case"end":return n.stop()}}),n)})))()}},created:function(){this.throttledHandleDrag=this.throttle(this.handleDrag,10)},mounted:function(){window.addEventListener("scroll",this.ensurePopupVisible),window.addEventListener("resize",this.ensurePopupVisible)},beforeUnmount:function(){this.teardownResizeObserver(),document.removeEventListener("mousemove",this.throttledHandleDrag),document.removeEventListener("mouseup",this.endDrag),window.removeEventListener("scroll",this.ensurePopupVisible),window.removeEventListener("resize",this.ensurePopupVisible)}},y=T,x=(n("798e"),n("2877")),k=Object(x["a"])(y,a,i,!1,null,"0c0cc4ca",null);t["a"]=k.exports},"35df":function(e,t,n){var a=n("16d2");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("07c87688",a,!0,{sourceMap:!1,shadowMode:!1})},"3dd5":function(e,t,n){var a=n("cc84");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("3185cbfb",a,!0,{sourceMap:!1,shadowMode:!1})},"43bb":function(e,t,n){var a=n("afbc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("15a71da4",a,!0,{sourceMap:!1,shadowMode:!1})},4611:function(e,t,n){"use strict";n("8208")},"4bd7":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.nodeId?n("div",{staticClass:"documents-table__container"},[e.isLoading&&!e.scrollLoading?n("GhostLoading",{attrs:{type:"table",title:e.title,config:{table:{rows:5}}}}):[n("PaginatedTable",{key:e.nodeId,attrs:{title:e.title,tableId:e.tableId,headers:e.headers,pages:e.pages,pageCount:e.pageCount,rowCount:e.resultCount,hidePagination:e.pageCount<=1,page:e.currentPage,selectionAsBlacklist:e.isSelectedAllInFolder,selected:e.showCheckboxes()?e.selectedRows:null,noDataIcon:e.showNoDataMessageWithIcon,noDataContent:e.NO_DATA_MESSAGE,mobileConfig:{title:"bezeichnung",headers:e.mobileHeaders,selectionActive:!0},headerActions:e.tableHeaderActions,sorted:e.sorted},on:{selectionAsBlacklist:function(t){return e.setInvertedList(t)},headerAction:e.executeHeaderAction,selected:e.setRowSelection,requestPage:e.onRequestPage,page:e.setPageIndex,"click-sichtbar":e.handleClickVisible,"click-vertragsnr":e.openVertrag,"click-schadensnr":e.openSchaden,action:e.handleAction,sort:e.onSort,scrollLoading:function(t){e.scrollLoading=t},onScroll:e.onScroll},scopedSlots:e._u([{key:"bezeichnung",fn:function(t){return[t.mobileTableContext?n("span",{staticStyle:{"vertical-align":"middle"}},[t.exists?e._e():n("ph-trash",{staticClass:"color-danger mr-1 icon",attrs:{size:16}}),e._v(e._s(t.bezeichnung||t.fileName||"unbenannt")+" ")],1):!t.data.fileWithSignedAttachments&&e.listHasAction(t.data.actions,"DOKUMENT_ANZEIGEN")?n("span",[t.exists?e._e():n("ph-trash",{staticClass:"color-danger mr-1 icon",attrs:{size:16}}),e.$isSmallScreen||!e.canPreviewFile(t)?n("DownloadLink",{attrs:{target:"_blank",rel:"noopener noreferer",title:t.bezeichnung,filename:t.data.fileName||t.data.bezeichnung,downloadServicePath:"/docInfo",queryParams:{nodeId:t.nodeId,idFile:encodeURIComponent(t.id)}}}):[n("DownloadLink",{attrs:{target:"_blank",rel:"noopener noreferer",title:"In neuem Tab öffnen",filename:t.data.fileName||t.data.bezeichnung,downloadServicePath:"/docInfo",queryParams:{nodeId:t.nodeId,idFile:encodeURIComponent(t.id)}}},[e.looksLikePDFFile(t)?n("PhFilePdf",{attrs:{size:16}}):n("PhFile",{attrs:{size:16}}),e._v("  ")],1),n("a",{on:{click:function(n){return e.fetchObject(t)}}},[e._v(e._s(t.bezeichnung))])]],2):e.listHasAction(t.data.actions,t.data.actionOnClick)?n("span",e._l(t.data.actions,(function(a){return n("span",{key:a.legend.label+e.uuidv4()},[a.legend.key===t.data.actionOnClick?n("a",{on:{click:function(n){return e.handleExecuteAction({action:a,value:t})}}},[t.exists?e._e():n("ph-trash",{staticClass:"color-danger mr-1 icon",attrs:{size:16}}),e._v(" "+e._s(t.bezeichnung||t.fileName||"unbenannt")+" ")],1):e._e()])})),0):n("span",{staticStyle:{"vertical-align":"middle"}},[t.exists?e._e():n("ph-trash",{staticClass:"color-danger mr-1 icon",attrs:{size:16}}),e._v(e._s(t.bezeichnung||t.fileName||"unbenannt")+" ")],1)]}},{key:"vorlagestatus",fn:function(e){return[n("WorkflowPill",{attrs:{currentStatusIcons:e.data.statusActions,statusType:"VORLAGE"}})]}},{key:"signaturstatus",fn:function(e){return[n("WorkflowPill",{attrs:{currentStatusIcons:e.data.statusActions,statusType:"SIGNATUR"}})]}}],null,!1,2896318286)}),e.showCheckboxes()&&(e.selectedRows.length||e.isSelectedAllInFolder)?n("span",[e._v(" Insgesamt "+e._s(e.isSelectedAllInFolder?e.resultCount-e.selectedRows.length:e.selectedRows.length)+" ausgewählt ")]):e._e()],n("BaseModal",{ref:"signoFilesModal",attrs:{labelButtonCancel:"Zurück",showCancelButton:!1,showConfirmButton:!1},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[e.signoFiles&&e.signoFiles.length?n("b",[e._v("Mehrere Dateien zu signieren")]):n("b",[e._v("Keine Dokumente zur Unterschrift")])]},proxy:!0},{key:"default",fn:function(){return[e.signoFiles&&e.signoFiles.length?n("p",[n("b",[e._v("Es liegen folgende Dokumente zur Unterschrift bereit:")])]):n("p",[e._v("Es liegen keine Dokumente zur Unterschrift bereit.")]),e._l(e.signoFiles,(function(t){return n("div",{key:t.url},[n("div",{staticClass:"grid"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[e.signoModalLoading?n("AnimatedSpinner"):e._e(),t.signaturStatus&&"KOMPLETT"===t.signaturStatus?n("div",[e._v(" "+e._s(t.fileName)+" (bereits eingereicht) ")]):t.isPictureAttach?n("a",{on:{click:function(n){!e.signoModalLoading&&e.openZusatzDokModal(t)}}},[e._v(" "+e._s(t.fileName)+" ")]):n("DownloadLink",{attrs:{href:t.url,title:t.fileName}})],1)])])])}))]},proxy:!0},{key:"footer",fn:function(){return[n("BaseButton",{attrs:{label:"Zurück",disabled:e.signoModalLoading,animated:e.signoModalLoading},on:{click:function(t){return e.$refs.signoFilesModal.close()}}})]},proxy:!0}],null,!1,485879750)}),n("BaseModal",{ref:"noSignoFilesModal",attrs:{labelButtonCancel:"Zurück",showConfirmButton:!1},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[n("b",[e._v("Das Dokument ist nicht zur e-Signatur geeignet")])]},proxy:!0},{key:"default",fn:function(){return[n("p",[e._v("Sie können jedoch das Dokument herunterladen")]),n("div",{staticClass:"grid"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[e.currentActionData&&e.currentActionData.document?n("DownloadLink",{attrs:{title:e.currentActionData.document.bezeichnung||e.currentActionData.document.fileName||"unbenannt",filename:e.currentActionData.document.fileName||e.currentActionData.document.bezeichnung,downloadServicePath:"/docInfo",queryParams:{nodeId:e.currentActionData.document.nodeId,idFile:encodeURIComponent(e.currentActionData.document.id)}}}):e._e()],1)])])]},proxy:!0}],null,!1,2881857561)}),n("EditDocumentModal",{ref:"editDokumentModal",attrs:{additionalInputs:e.currentEditDocumentInputs},on:{confirm:e.saveDokument}}),n("PictureAttachmentsModal",{ref:"pictureAttachmentsModal",attrs:{selectedDoc:e.selectedDoc},on:{updateLoadingStatus:function(t){return e.updateLoadingStatus(t)}}}),n("BaseModal",{ref:"showCallRecordsModal",attrs:{modalTitle:"Aufgezeichnetes Beratungsgespräch",showConfirmButton:!1,labelButtonCancel:"Zurück"}},[n("p",[e._v(e._s(e.additionalDocuments&&e.additionalDocuments.tableTitle||""))]),n("p",[n("b",[e._v("Video")])]),e._l(e.callRecordList,(function(t,a){return n("div",{key:a},[n("DownloadLink",{attrs:{href:e.makeCallRecordLink(t),title:t.bezeichnung}})],1)}))],2),n("BaseModal",{ref:"multipleFilesModal",attrs:{modalTitle:e.currentFilename,showCancelButton:!1,showConfirmButton:!1}},[n("FileAttachmentsModal",{attrs:{signedAttachments:e.signedAttachments,unsignedAttachments:e.unsignedAttachments},on:{close:function(t){return e.$refs.multipleFilesModal.close()}}})],1),n("BaseModal",{ref:"downloadErrorModal",attrs:{modalTitle:"Fehler",labelButtonConfirm:"Ok",showCancelButton:!1}},[n("label",[e._v(e._s(e.downloadErrorMessage))])]),n("BaseModal",{ref:"confirmationModal",attrs:{modalTitle:"Bestätigung",labelButtonConfirm:"Ok",showCancelButton:!0},on:{onConfirmButton:function(t){return e.onConfirmHeaderActionModal()}}},[n("label",[e._v(e._s(e.confirmationMessage))])]),n("BaseModal",{ref:"sendEmailModal",attrs:{modalTitle:"Dokumente versenden",showDefaultButtons:!1},scopedSlots:e._u([{key:"footer",fn:function(){return[n("BaseButton",{attrs:{isSecondary:""},on:{click:function(t){return e.closeSendEmailModal()}}},[e._v("Abbrechen")]),n("BaseButton",{on:{click:function(t){return e.confirmSendEmail()}}},[e._v("An Kunden")]),n("BaseButton",{on:{click:function(t){return e.confirmSendEmail(!0)}}},[e._v("An Gesellschaft")])]},proxy:!0}],null,!1,1266622414)},[e._v(" An wen möchten Sie die ausgewählten Dokumente versenden? ")]),n("EmailVersand",{attrs:{unregisterEventsBeforeDestroy:e.unregisterEmailEventsBeforeDestroy}}),e.files&&e.currentAdditionalInputs?n("DocumentsUploadModal",{attrs:{files:e.files,additionalInputs:e.currentAdditionalInputs,parentId:e.nodeId,versicherungId:e.versicherungId,schadenId:e.schadenId,uploadType:e.filesFromDokumentenarchiv.length?5:null,showOnlySchadenDocs:e.showOnlySchadenDocs,maxFileSizeMB:e.maxFileSizeMB},on:{close:function(t){e.files=null}}}):e._e(),n("PreviewObject",{ref:"resizablePopup",attrs:{fullClientHeight:!0,modalTitle:e.modalTitle,objectUrl:e.objectUrl,id:"d4fbef9a-7577-47f1-b0a4-38b111f7f426"}})],2):e._e()},i=[],s=n("1da1"),o=n("3835"),r=n("5530"),l=(n("96cf"),n("4e82"),n("fb6a"),n("a9e3"),n("159b"),n("4de4"),n("c1f9"),n("d81d"),n("4fad"),n("caad"),n("7db0"),n("a15b"),n("b0c0"),n("ac1f"),n("5319"),n("d3b7"),n("25f0"),n("99af"),n("c740"),n("9911"),n("2532"),n("e260"),n("c0a4")),c=n("cee4"),d=n("2f62"),u=n("64c5"),p=n("0169"),h=n("09de"),f=n("3c57"),m=n("de6c"),b=n("91ca"),v=n("d53f"),g=n("7c1f"),E=n("025b"),_=n("a871"),S=n("5a75"),T=n("2042"),y=n("6eb5"),x=n("04bc"),k=n("9b31"),A=n("690c"),I=n("586d"),C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BaseModal",{ref:"editDocumentModal",attrs:{modalTitle:"Datei bearbeiten"},on:{onConfirmButton:e.confirmButton}},[e.additionalInputs&&e.additionalInputs.length?n("UploadInputList",{attrs:{inputs:e.additionalInputs},model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}):e._e()],1)],1)},w=[],O=n("f989"),D=n("98fc"),N={mixins:[],components:{UploadInputList:O["a"],BaseModal:_["a"]},props:{additionalInputs:{required:!0,type:Array}},data:function(){return{formData:{}}},watch:{additionalInputs:function(){this.formData=this.getFormData()}},methods:{getFormData:function(){var e={};return this.additionalInputs.forEach((function(t){"DATE"==t.type?e[t.key]=Object(D["b"])(t.value):"LABEL"!=t.type&&(e[t.key]=t.value)})),e},open:function(){this.$refs.editDocumentModal.open()},confirmButton:function(){this.$emit("confirm",this.formData)}}},M=N,R=n("2877"),P=Object(R["a"])(M,C,w,!1,null,null,null),B=P.exports,U=n("5a29"),L=n("8fb3"),j=n("b20b"),z=n("4349"),$=n("9af6"),F=n("f60f"),G=n("4e5f"),K=n("c17d"),H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TeleportToBody",[n("ResizableModal",{ref:"resizablePopup",attrs:{modalTitle:e.modalTitle,initialWidth:e.initialWidth,initialHeight:e.initialHeight,sizeIsPercentage:e.sizeIsPercentage,startPosition:e.startPosition,id:e.id,fullClientHeight:e.fullClientHeight},on:{onMinimize:e.resizeObjectContainer,onMaximize:e.resizeObjectContainer,onResize:e.resizeObjectContainer}},[e.loading?n("GhostLoading",[n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}}),n("Block",{attrs:{type:"paragraph"}})],1):e._e(),n("div",{ref:"objectContainer",staticClass:"object-container"},[n("iframe",{directives:[{name:"show",rawName:"v-show",value:e.objectUrl&&!e.loading,expression:"objectUrl && !loading"}],attrs:{src:e.objectUrl,width:"100%",height:"100%"},on:{load:e.onFileLoaded}},[e._v(" Der Browser unterstützt das Format nicht. Bitte laden Sie die Datei herunter: "),n("a",{attrs:{href:e.objectUrl}},[e._v("Herunterladen")]),e._v(". ")])])],1)],1)},V=[],W=(n("498a"),n("2ddc")),Y=n("2ab8"),Z=n("b07d"),X={name:"PreviewPDF",components:{ResizableModal:W["a"],GhostLoading:y["a"],Block:Y["a"],TeleportToBody:Z["a"]},props:{modalTitle:{default:"Objekt-Vorschau"},initialHeight:{type:Number,default:400},initialWidth:{type:Number,default:600},objectUrl:{type:String},sizeIsPercentage:{type:Boolean,default:!1},startPosition:{type:String,default:"TOP_LEFT",validator:function(e){return["TOP_RIGHT","TOP_LEFT","BOTTOM_RIGHT","BOTTOM_LEFT"].includes(e)}},fullClientHeight:{type:Boolean,default:!1},id:{type:String,required:!0,validator:function(e){var t=!!e&&!!e.trim();return t}}},data:function(){return{loading:!0}},methods:{onFileLoaded:function(){this.loading=!1},resizeObjectContainer:function(e){var t=document.querySelector(".object-container");t.style.setProperty("min-height","".concat((null===e||void 0===e?void 0:e.height)-80,"px"),"important")},showPopup:function(){this.loading=!0,this.$refs.resizablePopup.showPopup()}}},q=X,J=(n("0d91"),Object(R["a"])(q,H,V,!1,null,"37e7d273",null)),Q=J.exports,ee="/MSC3/restful",te={defaultSpinner:!0},ne="Keine Dokumente vorhanden",ae=function(e){return e.slice().sort((function(e,t){return e.index>t.index?1:-1}))},ie="/download_service",se={mixins:[F["a"]],components:{PhEye:l["PhEye"],PhEyeSlash:l["PhEyeSlash"],PhCheck:l["PhCheck"],PhWarning:l["PhWarning"],PaginatedTable:b["a"],WorkflowPill:g["a"],Pill:E["a"],BaseModal:_["a"],FileAttachmentsModal:I["a"],PictureAttachmentsModal:S["a"],AnimatedSpinner:T["a"],BaseButton:x["default"],DownloadLink:U["default"],GhostLoading:y["a"],PhPencil:l["PhPencil"],PhTrash:l["PhTrash"],EditDocumentModal:B,DocumentsUploadModal:$["a"],EmailVersand:k["a"],PreviewObject:Q,PhFilePdf:l["PhFilePdf"],PhFile:l["PhFile"]},props:{title:{type:String},tableId:{type:String},nodeId:{type:[String,Number]},versicherungId:{type:[String,Number],default:null,required:!1},schadenId:{type:[String,Number],default:null,required:!1},showNoDataMessageWithIcon:{type:Boolean,default:!1},rowsPerPage:{default:20},showActionColumn:{type:Boolean,default:!0},loadAntraege:{type:Boolean,default:!1},linkVertrag:{type:Boolean,default:!1},enableDraggable:{type:Boolean,default:!1},isModal:{type:Boolean,default:!1},filterFunc:{type:Function,default:function(e){return e}},noHeaderActions:{type:Boolean,default:!1},unregisterEmailEventsBeforeDestroy:{type:Boolean,default:!0},maxFileSizeMB:{type:Number,default:0}},data:function(){return{NO_DATA_MESSAGE:ne,currentActionData:null,signoFiles:[],fileId:null,unsignedAttachments:[],signedAttachments:[],currentFilename:null,downloadErrorMessage:null,downloadLink:{},selectedDoc:null,signoModalLoading:!1,currentEditDocumentInputs:[],scrollLoading:!1,objectUrl:null,modalTitle:"Vorschau"}},computed:Object(r["a"])(Object(r["a"])({},Object(d["b"])({selectedNode:p["default"].GETTERS.DOCUMENTS,currentPage:p["default"].GETTERS.DOCUMENT_PAGE,loginData:u["default"].GETTERS.GET_LOGIN_DATA,getCoreUserID:u["default"].GETTERS.GET_USER_ID,antragList:h["default"].GETTERS.ANTRAG_LIST,selectedRows:p["default"].GETTERS.SELECTED_ROWS,simpleFileLinkGenerator:f["default"].GETTERS.GET_ANTRAG_SCANS_LINK_MAKER,isLoadingNode:p["default"].GETTERS.IS_LOADING_NODE,additionalDocuments:p["default"].GETTERS.ADDITIONAL_DOCUMENTS,isBrokerOrBypass:u["default"].GETTERS.IS_BROKER_OR_BYPASS,isIntern:u["default"].GETTERS.ORIGINAL_USER_IS_INTERN,showDeleted:p["default"].GETTERS.SHOW_DELETED_DOCUMENTS,documentsFilter:p["default"].GETTERS.DOCUMENTS_FILTER,isSelectedAllInFolder:p["default"].GETTERS.IS_SELECTED_ALL_IN_FOLDER,sorted:p["default"].GETTERS.SORTING,isAnlageBeispiel:u["default"].GETTERS.IS_ANLAGE_BEISPIEL,isDropActionActive:p["default"].GETTERS.IS_DROP_ACTION_ACTIVE,isCustomerLogin:u["default"].GETTERS.IS_CUSTOMER_ONLY})),{},{isLoading:function(){return this.isLoadingNode||this.isDropActionActive},headers:function(){var e,t={lockedLeft:[Object(v["SlotColumn"])("bezeichnung",(null===(e=this.selectedNode)||void 0===e?void 0:e.downloadColumnLabel)||"Bezeichnung",250,1).makeAlwaysVisible().makeSortable((function(e){return Object(v["textToSortable"])(e)}))],center:[],lockedRight:[]};return this.selectedNode&&this.selectedNode.headers&&this.selectedNode.headers.filter((function(e){return e.visible})).forEach((function(e){switch(e.lockedColumn){case"left":t.lockedLeft.push(Object(v["oldToNewColumn"])(e.key,e.label,e.dataType,e.cellProps,null,e.clickable,e.sortable));break;case"right":t.lockedRight.push(Object(v["oldToNewColumn"])(e.key,e.label,e.dataType,e.cellProps,null,e.clickable,e.sortable));break;default:t.center.push(Object(v["oldToNewColumn"])(e.key,e.label,e.dataType,e.cellProps,null,e.clickable,e.sortable).addCellProps({lineClamp:4}));break}})),this.hasStatusAction("VORLAGE_STATUS")&&t.lockedRight.push(Object(v["SlotColumn"])("vorlagestatus","Vorlage",200,0)),this.hasAction("DOKUMENTE_HINZUFUGEN")&&t.lockedRight.push(Object(v["PillColumn"])("dokumente","Dokumente",120)),this.hasStatusAction("FREIGABE_KUNDE")&&t.lockedRight.push(Object(v["IconColumn"])("sichtbar","Sichtbar").makeConditionalLink("exists")),this.hasAction("GETEILT_MIT_KUNDE")&&t.lockedRight.push(Object(v["PillColumn"])("geteilt","Geteilt")),!this.versicherungId||this.isBrokerOrBypass?(this.hasStatusAction("ANTRAG_STATUS")&&t.lockedRight.push(Object(v["IconColumn"])("status","Status")),this.hasStatusAction("ANLEGERPROFIL_BESTATIGT")&&t.lockedRight.push(Object(v["IconColumn"])("apstatus","Status")),this.hasStatusAction("SIGN_STATUS")&&t.lockedRight.push(Object(v["SlotColumn"])("signaturstatus","e-Signatur",200,0)),this.showActionColumn&&t.lockedRight.push(Object(v["ActionColumn"])("actions","Aktionen"))):t.center=t.center.filter((function(e){return"bemerkung"!==e.key})),t},pageCount:function(){var e;return(null===(e=this.selectedNode)||void 0===e?void 0:e.numberOfPages)||0},pages:function(){var e,t,n=this;return null!==(e=this.selectedNode)&&void 0!==e&&e.documents?Object.fromEntries(Object.entries(null===(t=this.selectedNode)||void 0===t?void 0:t.documents).map((function(e){var t=Object(o["a"])(e,2),a=t[0],i=t[1];return[a,i.map((function(e){return n.mapDocument(e)}))]}))):{}},resultCount:function(){return this.selectedNode.numberOfRecords||0},callRecordList:function(){return this.additionalDocuments&&this.additionalDocuments.tableRows||[]},mobileHeaders:function(){return this.selectedNode.mobileHeaders||[]},tableHeaderActions:function(){var e,t=this;return this.noHeaderActions?[]:ae(this.filterFunc((null===(e=this.selectedNode)||void 0===e?void 0:e.headerActions)||[])).map((function(e){return Object(G["h"])(e.key,e.label).withDisabled((function(){return t.buttonDisabled(e.key)})).withValue(e).withAsPrimary((function(){return"DATEI_HOCHLADEN"===e.key||"DATEI_HINZUFUGEN"===e.key}))}))},isLoadingComplete:function(){var e;return!this.isLoadingNode&&!(null===(e=this.tableHeaderActions)||void 0===e||!e.length)}}),watch:{nodeId:{handler:function(e){e&&!this.isModal&&this.getNextPageDocuments(e,0)},immediate:!0},documentsFilter:{handler:function(){this.isModal||this.getNextPageDocuments(this.nodeId,0,!1,!0)}}},methods:{canPreviewFile:function(e){if(!e||!e.data||!e.data.originalFileName)return!1;var t=e.data.originalFileName,n=[".pdf",".txt",".html",".png",".jpg",".jpeg",".wav",".mp3",".mp4",".gif"],a=t.substring(t.lastIndexOf(".")).toLowerCase();return n.includes(a)},looksLikePDFFile:function(e){var t,n=(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.originalFileName)||"",a=n.slice(n.lastIndexOf(".")).toLowerCase();return".pdf"===a},fetchObject:function(e){var t,n,a=(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.fileName)||(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.bezeichnung),i={nodeId:null===e||void 0===e?void 0:e.nodeId,idFile:encodeURIComponent(null===e||void 0===e?void 0:e.id)},s="/docInfo",o=Object(K["f"])(this.$store.getters,"".concat(ie).concat(s),a,i);this.objectUrl=o,this.modalTitle=a,this.$refs.resizablePopup.showPopup()},onScroll:function(e){var t=this;return Object(s["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.onRequestPage(t.currentPage+1);case 3:return n.prev=3,e(),n.finish(3);case 6:case"end":return n.stop()}}),n,null,[[0,,3,6]])})))()},mapDocument:function(e){var t,n=this,a=Object(r["a"])({data:e},e);if(this.selectedNode.headers&&e.additionalColumns&&(a=Object(r["a"])(Object(r["a"])({},a),e.additionalColumns)),a.bezeichnung=(null===(t=a.data)||void 0===t?void 0:t.bezeichnung)||a.bezeichnung||a.fileName||"unbenannt",this.hasAction("DOKUMENTE_HINZUFUGEN")&&(a.dokumente=a.documentCount?{type:"info",label:a.documentCount+(1==a.documentCount?" Dokument":" Dokumente")}:{type:"info",label:"keine Dokumente"}),this.hasStatusAction("FREIGABE_KUNDE")&&(a.sichtbar=null,e.statusActions.find((function(e){return"FREIGABE_KUNDE_VERWEIGERT"==e.legend.key||"FREIGABE_MAKLER_VERWEIGERT"==e.legend.key}))?a.sichtbar=[Object(v["Icon"])(l["PhEyeSlash"],"Freigabe verweigert",16,"bold","color-danger")]:e.statusActions.find((function(e){return"FREIGABE_KUNDE_VORHANDEN"==e.legend.key||"FREIGABE_MAKLER_VORHANDEN"==e.legend.key}))&&(a.sichtbar=[Object(v["Icon"])(l["PhEye"],"freigegeben",16,"bold","color-text")])),this.hasAction("GETEILT_MIT_KUNDE")){var i=e.actions.find((function(e){return"ANTRAG_TEILEN"==e.specificAction}));i&&(a.geteilt="NICHT_MIT_KUNDE_TEILEN"==i.legend.key?{type:"success",label:i.additionalData.pillLabel}:{type:"danger",label:i.additionalData.pillLabel})}if(this.hasStatusAction("ANTRAG_STATUS")&&(a.status=null,e.statusActions.find((function(e){return"ANTRAG_ORDNUNG"==e.legend.key}))?a.status=[Object(v["Icon"])(l["PhCheck"],"Gut",16,"bold","color-success")]:e.statusActions.find((function(e){return"ANTRAG_FEHLER"==e.legend.key}))&&(a.status=[Object(v["Icon"])(l["PhWarning"],"Fehler",16,"bold","color-danger")])),this.hasStatusAction("ANLEGERPROFIL_BESTATIGT")&&(a.apstatus=null,e.statusActions.find((function(e){return"ANLEGERPROFIL_FEHLERHAFT"==e.legend.key}))?a.apstatus=[Object(v["Icon"])(l["PhWarning"],"fehlerhaft",16,"bold","color-danger")]:e.statusActions.find((function(e){return"ANLEGERPROFIL_BESTATIGT"==e.legend.key}))?a.apstatus=[Object(v["Icon"])(l["PhCheck"],"bestätigt",16,"bold","color-success")]:e.statusActions.find((function(e){return"ANLEGERPROFIL_BESTATIGT_OK"==e.legend.key}))?a.apstatus=[Object(v["Icon"])(l["PhChecks"],"bestätigt",16,"bold","color-success")]:e.statusActions.find((function(e){return"ANLEGERPROFIL_BESTATIGT_PENDING"==e.legend.key}))&&(a.apstatus=[Object(v["Icon"])(l["PhCheck"],"unbestätigt",16,"bold","color-warning")])),a.actions=[],e.actions&&e.actions.forEach((function(t){t.legend.key===e.actionOnClick||n.isIntern&&!a.exists&&!t.showIfDeleted||a.actions.push(Object(v["SimpleAction"])(t.legend.key,t.legend.icon,t.legend.label))})),this.enableDraggable){var s=[a.bezeichnung,a.name].filter((function(e){return!!e})).join(" | ");a.$draggable=a.draggable?Object(z["a"])(a,s):null}return a},sanitize:function(e){return Object(j["b"])(e)},setInvertedList:function(e){this.$store.commit(p["default"].MUTATIONS.SET_SELECTED_ALL_IN_FOLDER,e)},makeCallRecordLink:function(e){for(var t=[],n=0,a=Object.entries(e.sendData);n<a.length;n++){var i=Object(o["a"])(a[n],2),s=i[0],r=i[1];t.push(s),t.push(r)}return this.simpleFileLinkGenerator(e.bezeichnung,this.nodeId,t)},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))},hasAction:function(e){var t;return!(null===(t=this.selectedNode)||void 0===t||!t.availableActions)&&this.selectedNode.availableActions.some((function(t){return t.key==e}))},hasStatusAction:function(e){var t;return!(null===(t=this.selectedNode)||void 0===t||!t.availableStatusIcons)&&this.selectedNode.availableStatusIcons.some((function(t){return t.key==e}))},setRowSelection:function(e){this.$store.commit(p["default"].MUTATIONS.SET_ROW_SELECTION,e)},getDownloadURL:function(e){if(e){var t=this.loginData.token;return"".concat(ee,"/documents/docInfo?docInfo=").concat(this.nodeId,"&docInfo=").concat(encodeURIComponent(e.id),"&token=").concat(t)}},onSort:function(e){var t=e.key,n=e.sortDirection;this.$store.dispatch(p["default"].ACTIONS.SORT_DOCUMENTS,{sortKey:t,ascending:"asc"==n})},handleExecuteAction:function(e){var t={action:e.action,document:e.value,nodeId:this.nodeId,offset:this.currentPage,fileName:e.fileName,bezeichnung:e.bezeichnung};this.currentActionData=t,this.executeAction(t)},handleClickVisible:function(e){var t=e.data.statusActions.find((function(e){return"FREIGABE_KUNDE_VERWEIGERT"==e.legend.key||"FREIGABE_MAKLER_VERWEIGERT"==e.legend.key||"FREIGABE_KUNDE_VORHANDEN"==e.legend.key||"FREIGABE_MAKLER_VORHANDEN"==e.legend.key}));t&&this.handleAction({key:t.legend.key,row:e})},handleAction:function(e){var t=e.key,n=e.row,a={action:n.data.actions.find((function(e){return e.legend.key==t})),document:n.data,nodeId:this.nodeId,offset:this.currentPage};this.currentActionData=a,this.executeAction(a)},executeAction:function(e){var t,n,a,i,s=this;switch(null===e||void 0===e||null===(t=e.action)||void 0===t||null===(n=t.legend)||void 0===n?void 0:n.key){case"DOKUMENT_ANZEIGEN":this.viewDocument(e.document);break;case"DOKUMENT_BEARBEITEN":this.editDocument(e);break;case"DOKUMENT_UNTERSCHREIBEN":this.signDocument(e);break;case"KEINE_DOKUMENTE":case"DOKUMENTE_HINZUFUGEN":case"DOKUMENTE_HINZUFUGEN_KUNDENLOGIN":case"KREDIT_DARLEHENSVERTRAG_ANZEIGEN":case"DOKUMENT_ABSCHLIESSEN_SUBNODE":this.$router.push({path:"/communication/documents/zusaetzlichedokumente",query:{nodeId:e.nodeId,fileId:encodeURIComponent(e.document.id)}});break;case"KREDIT_DARLEHENSVERTRAG_OFFNEN":var o=e.action.sendData.find((function(e){return"PARAM_KREDIT_ID"===e.key}));if(o){var r=o.value,l="/home/verbindlichkeiten/credit/edit/".concat(r);this.$router.push({path:l}).catch((function(){}))}break;case"DOKUMENT_LOSCHEN":case"DOKUMENT_WIEDERHERSTELLEN":case"FREIGABE_MAKLER_VERWEIGERT":case"FREIGABE_MAKLER_VORHANDEN":case"FREIGABE_KUNDE_VORHANDEN":case"FREIGABE_KUNDE_VERWEIGERT":case"DOKUMENT_VORLEGEN":case"DOKUMENT_NICHT_VORLEGEN":case"DOKUMENT_KUNDE_NICHT_VORLEGEN":case"DOKUMENT_VERMITTLER_NICHT_VORLEGEN":case"DOKUMENT_ABSCHLIESSEN":case"DOKUMENT_MULTIPLE_VORLAGE":case"DOKUMENT_REMOVE_MULTIPLE_REMOVE_VORLAGE":case"DOKUMENT_VORLEGEN_TEILWEISE":case"DOKUMENT_NICHT_VORLEGEN_TEILWEISE":case"MIT_KUNDE_TEILEN":case"NICHT_MIT_KUNDE_TEILEN":e.action.confirmationMessage?this.$confirmModal({title:e.action.confirmationTitle||"Bestätigung",message:e.action.confirmationMessage,labelButtonConfirm:"Ok"}).then((function(){var t;if("DOKUMENT_LOSCHEN"===(null===(t=e.action.legend)||void 0===t?void 0:t.key)&&!s.showDeleted){var n,a=null===(n=s.pages[s.currentPage])||void 0===n?void 0:n.length;1===a&&e.offset>0&&(e.offset=e.offset-1)}s.executeConfirmedAction(e)})).catch((function(){})):this.executeConfirmedAction(e);break;case"CALL_RECORDS_ANZEIGEN":this.$store.dispatch(p["default"].ACTIONS.RETRIEVE_ADDITIONAL_DOCUMENTS,{showDeleted:this.showDeleted,nodeId:e.nodeId,fileId:encodeURIComponent(e.document.id)}).then((function(){return s.$refs.showCallRecordsModal.open()}));break;case"ANDERUNGSHISTORIE":this.$router.push("/communication/documents/aenderungshistorie?docInfo=".concat(encodeURIComponent(e.document.id)));break;case"ANLEGERPROFIL_BESTATIGT":c["a"].post("".concat("/MSC3/restful","/dokumentenarchiv/confirmAnlegerprofil&docInfo=").concat(e.nodeId,"&docInfo=").concat(encodeURIComponent(e.document.id)));break;default:this.$store.dispatch(m["default"].ACTIONS.WARN,{message:"action not yet implemented: "+(null===e||void 0===e||null===(a=e.action)||void 0===a||null===(i=a.legend)||void 0===i?void 0:i.key),actionData:e})}},executeConfirmedAction:function(e){var t=this;e.action.specificAction&&this.$store.dispatch(p["default"].ACTIONS.EXECUTE_ACTION,{action:e.action,nodeId:e.nodeId,documentId:e.document.id,offset:e.offset,limit:this.rowsPerPage,schadenId:this.schadenId}).then((function(n){null!==n&&void 0!==n&&n.warningMessage&&t.$confirmModal({title:n.warningTitle,message:n.warningMessage,labelButtonConfirm:"Ja",labelButtonCancel:"Nein"}).then((function(){e.action.sendData&&(e.action.sendData.push({key:"PARAM_IS_CONFIRMED_SUBMIT_MIT_BLANK_SIGNATURES",value:"1"}),t.executeConfirmedAction(e))})).catch((function(){}))}))},saveDokument:function(e){this.currentActionData.action.additionalData=e,this.$store.dispatch(p["default"].ACTIONS.EXECUTE_ACTION,{action:this.currentActionData.action,nodeId:this.currentActionData.nodeId,documentId:this.currentActionData.document.id,offset:this.currentActionData.offset,limit:this.rowsPerPage})},viewDocument:function(e){var t=this,n=e.nodeId,a=e.id;this.$store.dispatch(p["default"].ACTIONS.GET_FILE_DATA,{nodeId:n,id:encodeURIComponent(a)}).then((function(e){null!==e&&void 0!==e&&e.length?(t.signedAttachments=e.filter((function(e){return!0===e.signed})),t.unsignedAttachments=e.filter((function(e){return!0===e.unsigned})),t.$refs.multipleFilesModal.open()):null!==e&&void 0!==e&&e.errorMessage&&(t.downloadErrorMessage=null===e||void 0===e?void 0:e.errorMessage,t.$refs.downloadErrorModal.open())}))},editDocument:function(e){var t,n=this,a=(null===e||void 0===e||null===(t=e.action)||void 0===t?void 0:t.specificAction)||"";if("BERATUNGSMAPPE_OFFNEN"===a&&this.openBeratungsmappe(e.action),"ANTRAG_OFFNEN"===a&&this.openAntrag(e.action),"MAKLERANTRAG_OFFNEN"===a&&this.openMaklerAntrag(e.action),"ANLEGERPROFIL_OFFNEN"===a&&this.openAnlegerprofil(e.action),"BERATUNGSDOK_OFFNEN"===a&&this.openBeratungsdokVers(e.action),"DOKUMENT_BEARBEITEN"===a){var i="/dokumentenarchiv/getEditDocumentInputs?docInfo=".concat(this.nodeId,"&docInfo=").concat(encodeURIComponent(this.currentActionData.document.id));c["a"].get("".concat("/MSC3/restful").concat(i),te).then((function(e){e&&e.data&&(n.currentEditDocumentInputs=e.data,n.$refs.editDokumentModal.open())}))}if("ANLAGEEMPFEHLUNG_OFFNEN"===a){var s=e.action.sendData.find((function(e){return"PARAM_ANLAGEEMPFEHLUNG_ID"===e.key}));if(s){var o=s.value,r=this.isAnlageBeispiel?"anlagebeispiel":"anlageempfehlung",l="/beratung/".concat(r,"/details?adviceId=").concat(o);this.$router.push({path:l}).catch((function(){}))}}},openBeratungsmappe:function(e){var t=e.sendData.findIndex((function(e){return"PARAMETER_NAME_MAPPE_ID"===e.key})),n=e.sendData[t].value;t=e.sendData.findIndex((function(e){return"art"===e.key}));var a=e.sendData[t].value;t=e.sendData.findIndex((function(e){return"datum_erstellt"===e.key}));var i=e.sendData[t].value;this.$router.push({path:"/beratung/beratung/bearbeiten",query:{id:n,art:a,datum:i,investementAdviceReferrer:this.investementAdviceReferrer&&!this.$route.query.backAction}})},openVertrag:function(e){this.$router.push({path:"/home/versicherungen/insurance-group/overview/".concat(e.vertragId)})},openSchaden:function(e){this.$router.push("/home/versicherungen/insurance-group/schadensmeldung/".concat(this.versicherungId,"/").concat(e.schadenId))},openAntrag:function(e){var t=this,n=e.sendData.findIndex((function(e){return"PARAMETER_NAME_ANTRAGDATEN_ID"===e.key}));if(!(n<=-1)){var a=this;c["a"].get("".concat(ee,"/../mrskundenzugang?userType=KUNDE&userid=").concat(this.getCoreUserID)).then((function(n){if(n.data.link){var i,s,o,r,l,c,d,u={beratungsMappeId:null===(i=e.sendData.find((function(e){return"PARAMETER_NAME_MAPPE_ID"===e.key})))||void 0===i?void 0:i.value,bezeichnung:null===(s=e.sendData.find((function(e){return"bezeichnung"===e.key})))||void 0===s?void 0:s.value,gesellschaft:null===(o=e.sendData.find((function(e){return"gesellschaft"===e.key})))||void 0===o?void 0:o.value,antragsdatenId:null===(r=e.sendData.find((function(e){return"PARAMETER_NAME_ANTRAGDATEN_ID"===e.key})))||void 0===r?void 0:r.value,antragModus:null===(l=e.sendData.find((function(e){return"antragModus"===e.key})))||void 0===l?void 0:l.value,servicePath:null===(c=e.sendData.find((function(e){return"servicePath"===e.key})))||void 0===c?void 0:c.value,hideBeratungsmappepopup:null===(d=e.sendData.find((function(e){return"hideBeratungsmappepopup"===e.key})))||void 0===d?void 0:d.value},p=A["a"].getLoadURL(u,a.antragList.formGroups,a.isCustomerLogin);p?t.$router.push({path:p}).catch((function(){})):t.$router.push({path:"/role-forbidden"})}}))}},openMaklerAntrag:function(e){var t,n,a=null===(t=e.sendData.find((function(e){return"PARAMETER_NAME_ANTRAGDATEN_ID"===e.key})))||void 0===t?void 0:t.value,i=null===(n=e.sendData.find((function(e){return"ANTRAG_TYP"===e.key})))||void 0===n?void 0:n.value;if(i&&a){var s=null;"WK_KUNDENBESCHWERDE"===i?s="/beratung/vv/beschwerde?antragsdatenId=".concat(a):"WK_FRAGEBOGEN"===i?s="/beratung/vv/advisor-fragebogen/wealthkonzept/wk_advisor_fragebogen/fragebogen?bmOptChosen=true&antragsdatenId=".concat(a):"FA_CHECKLISTE"==i&&(s="/intern/jahrescheckliste?antragsdatenId=".concat(a)),s?this.$router.push({path:s}).catch((function(){})):this.$router.push({path:"/role-forbidden"})}},openAnlegerprofil:function(e){var t=this,n=e.sendData.findIndex((function(e){return"PARAM_PRUEFNUMMER"===e.key})),a=e.sendData[n].value;c["a"].get("".concat("/MSC3/restful","/../mrskundenzugang?userType=KUNDE&userid=").concat(this.getCoreUserID)).then((function(n){if(n.data.link){var i,s,o="WEALTH_KONZEPT"===(null===(i=e.sendData)||void 0===i||null===(s=i.find((function(e){return"schiene"===(null===e||void 0===e?void 0:e.key)})))||void 0===s?void 0:s.value)?"WEALTH_KONZEPT":"",r="/beratung/".concat("WEALTH_KONZEPT"===o?"anlegerprofilWK":"anlegerprofil","/person1/auswahl/personenauswahl?pruefnummer=").concat(a);t.$router.push({path:r,query:{schiene:o}}).catch((function(){}))}}))},openBeratungsdokVers:function(e){var t=this,n=e.sendData.findIndex((function(e){return"PARAMETER_PROTOKOLL_ID"===e.key})),a=e.sendData[n].value;c["a"].get("".concat("/MSC3/restful","/../mrskundenzugang?userType=KUNDE&userid=").concat(this.getCoreUserID)).then((function(e){if(e.data.link){var n="/beratung/formulare/antrag/VERSICHERUNG/beratungsdokumentationVersicherungen/?protokollId=".concat(a,"&hideBeratungsmappepopup=true");t.$router.push({path:n}).catch((function(){}))}}))},signDocument:function(e){var t,n=this,a=(null===e||void 0===e||null===(t=e.action)||void 0===t?void 0:t.specificAction)||"";if("SIGNOVIEWER_OFFNEN"===a){var i=null,s=e.action.sendData.findIndex((function(e){return"fileId"===e.key}));if(s>-1&&(i=e.action.sendData[s]),e.nodeId&&i){var o,r="/dokumentenarchivSign/documentSignAction?docInfo=".concat(e.nodeId,"&docInfo=").concat(encodeURIComponent(i.value));c["a"].post("".concat("/MSC3/restful").concat(r),null===(o=e.action)||void 0===o?void 0:o.sendData,te).then((function(e){e&&e.data&&(n.signoFiles=e.data.signatureOutputs,n.handleSignature())}))}}},handleSignature:function(){if(this.signoFiles&&1===this.signoFiles.length)this.signoFiles[0].isPictureAttach?this.openZusatzDokModal(this.signoFiles[0]):"KOMPLETT"===this.signoFiles[0].signaturStatus?(this.downloadErrorMessage="Das Dokument wurde bereits eingereicht",this.$refs.downloadErrorModal.open()):this.signoFiles[0].url?Object(L["b"])(this.signoFiles[0].url,this.signoFiles[0].fileName):this.$refs.noSignoFilesModal.open();else if(this.signoFiles&&this.signoFiles.length>1)this.$refs.signoFilesModal.open();else{var e;null===(e=this.$refs.noSignoFilesModal)||void 0===e||e.open()}},setPageIndex:function(e){this.$store.commit(p["default"].MUTATIONS.SET_PAGE,e)},onRequestPage:function(e){return this.getNextPageDocuments(this.nodeId,e,!0)},getNextPageDocuments:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return this.setPageIndex(t),this.$store.dispatch(p["default"].ACTIONS.RETRIEVE_DOCUMENTS,{nodeId:e,offset:t,limit:this.rowsPerPage,schadenId:this.schadenId,keepOldPages:n,linkVertrag:this.linkVertrag,doAlwaysLoad:a})},retrieveAntragList:function(){this.$store.dispatch(h["default"].ACTIONS.RETRIEVE_ANTRAG_LIST)},clearSelectedRows:function(){this.$store.commit(p["default"].MUTATIONS.SET_SELECTED_ALL_IN_FOLDER,!1),this.$store.commit(p["default"].MUTATIONS.SET_ROW_SELECTION,[])},listHasAction:function(e,t){return e&&e.some((function(e){return e.legend.key==t}))},openZusatzDokModal:function(e){var t=this;e.signoElement&&(this.selectedDoc=e.signoElement,setTimeout((function(){t.$refs.pictureAttachmentsModal.open()}),100))},updateLoadingStatus:function(e){this.signoModalLoading=e},showCheckboxes:function(){return!!this.$route.path.includes("mailcomposer-dokumentenarchiv")||!(!this.selectedNode||!this.selectedNode.headerActions)&&this.selectedNode.headerActions.some((function(e){return"MARKIERTE_MAIL_VERSCHICKEN"===e.key||"MARKIERTE_LOSCHEN"===e.key}))}},mounted:function(){this.loadAntraege&&this.retrieveAntragList()},beforeDestroy:function(){this.clearSelectedRows()}},oe=se,re=(n("6d53"),Object(R["a"])(oe,a,i,!1,null,"054ae8a6",null));t["a"]=re.exports},"4e17":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-container",class:{"form-container__stepper-collapsed":e.stepperCollapsed}},[e.$slots.stepper?n("div",{staticClass:"form-container__stepper"},[e._t("stepper")],2):e._e(),e.$slots.content?n("div",{staticClass:"form-container__content",class:{"form-container__content--full":!e.$slots.stepper},on:{transitionstart:function(t){return t.target!==t.currentTarget?null:e.handleTransitionStart(t)},transitionend:function(t){return t.target!==t.currentTarget?null:e.handleTransitionEnd(t)}}},[e._t("content")],2):e._e()])},i=[],s="form-container--transition-active",o={props:{stepperCollapsed:{type:Boolean,default:!1}},methods:{handleTransitionStart:function(e){"width"===(null===e||void 0===e?void 0:e.propertyName)&&this.$el.classList.add(s)},handleTransitionEnd:function(e){"width"===(null===e||void 0===e?void 0:e.propertyName)&&(this.$el.classList.remove(s),dispatchEvent(new Event("resize")))}}},r=o,l=(n("b4fe"),n("2877")),c=Object(l["a"])(r,a,i,!1,null,"b9e74b14",null);t["a"]=c.exports},"4e2b1":function(e,t,n){var a=n("7c72");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("754a06ec",a,!0,{sourceMap:!1,shadowMode:!1})},5850:function(e,t,n){"use strict";n("bf86")},"586d":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",[e._v("Die Dokumente können nicht zu einer Datei zusammengefasst werden, da sie z.T. digital signiert wurden. Sie können die Dateien hier einzeln abrufen:")]),e._m(0),e._l(e.unsignedAttachments,(function(t){return n("div",{key:t.label},[n("DownloadLink",{attrs:{href:e.linkGenerator(t.fileName||t.bezeichnung,t.id,t.tempFileId||0),title:t.bezeichnung||t.fileName}})],1)})),e._m(1),e._l(e.signedAttachments,(function(t){return n("div",{key:t.label},[n("DownloadLink",{attrs:{href:e.linkGenerator(t.fileName||t.bezeichnung,t.id,t.tempFileId||0),title:t.bezeichnung||t.fileName}})],1)})),e.isEmptyFile?n("div",{staticClass:"color-danger mt-2"},[e._v("Dokument kann nicht geöffnet werden")]):e._e()],2)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("b",[e._v("Nicht digital signierte Dokumente / Scans")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[n("b",[e._v("Digital signierte Dokument")])])}],s=n("5530"),o=n("0169"),r=n("26b3"),l=n("2f62"),c=n("5a29"),d={components:{DownloadLink:c["default"]},data:function(){return{isEmptyFile:!1}},props:{unsignedAttachments:{type:Array,default:function(){return[]}},signedAttachments:{type:Array,default:function(){return[]}}},computed:Object(s["a"])({},Object(l["b"])({linkGenerator:o["default"].GETTERS.GET_ATTACHMENT_LINK_BY_ID})),methods:{downloadDocument:function(e){var t=this;this.isEmptyFile=!1,this.$store.dispatch(o["default"].ACTIONS.DOWNLOAD_ATTACHMENT,{paramDisplayPDFData:e}).then((function(e){var n;null!==e&&void 0!==e&&e.bytes?(t.$emit("close"),Object(r["f"])(e.bytes,null===e||void 0===e||null===(n=e.contentType)||void 0===n?void 0:n.mimeType,null===e||void 0===e?void 0:e.fileName)):t.isEmptyFile=!0}))}}},u=d,p=n("2877"),h=Object(p["a"])(u,a,i,!1,null,null,null);t["a"]=h.exports},5948:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".stepper-container[data-v-bef2afe0]{display:none;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:16px 16px 24px}.stepper-container .rail[data-v-bef2afe0]:last-child{display:none}.labels-container[data-v-bef2afe0]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-line-pack:stretch;align-content:stretch;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.stepper-label[data-v-bef2afe0]{white-space:nowrap}.stepper-label[data-v-bef2afe0],.stop-container[data-v-bef2afe0]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.d-none[data-v-bef2afe0]{display:none}.stepper-container-sm[data-v-bef2afe0]{display:block}.stepper-container-tab[data-v-bef2afe0]{display:block;padding-bottom:10px;padding-left:0;margin-bottom:0}@media (min-width:992px){.stepper-container-sm[data-v-bef2afe0]{display:none}}li[data-v-bef2afe0]{cursor:pointer;background:var(--color-box);list-style:none;border:1px solid #ccc;padding:10px;border-radius:5px;border-bottom-left-radius:0;border-bottom-right-radius:0;margin-right:6px}li.active[data-v-bef2afe0]{border-bottom:none}.step-sm-wrap[data-v-bef2afe0]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin:0 12px 0 0}.step-doughnut-chart[data-v-bef2afe0],.step-sm-wrap[data-v-bef2afe0]{width:80px;height:80px}.stepper-liner-sm[data-v-bef2afe0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:85%}.step-num[data-v-bef2afe0]{position:absolute;font-size:19px;padding-top:8px}.container-sm[data-v-bef2afe0]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.step-title[data-v-bef2afe0]{min-width:0;overflow:hidden;text-overflow:ellipsis}.step-title-arrow[data-v-bef2afe0]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin-right:16px}.substep-sm[data-v-bef2afe0]{font-size:12px;margin-bottom:2px;margin-top:2px}.stepper2-dropdown-menu__content[data-v-bef2afe0]{min-width:250px}.stepper2-steps[data-v-bef2afe0],.stepper2-steps *[data-v-bef2afe0]{-webkit-box-sizing:border-box;box-sizing:border-box}.stepper2-step--name[data-v-bef2afe0],.stepper2-substep[data-v-bef2afe0]{padding:6px 0}.app--is-mobile-native-context .stepper2-step--name[data-v-bef2afe0],.app--is-mobile-native-context .stepper2-substep[data-v-bef2afe0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:8px 0;min-height:44px}",""]),e.exports=t},"59ab":function(e,t,n){"use strict";n.r(t),n.d(t,"keysToCloseComponent",(function(){return r})),n.d(t,"nullish",(function(){return l}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"input-forms__container"},[e.label?n("div",{staticClass:"input-forms__label-content"},[e._v(e._s(e.label))]):e._e(),n("div",{staticClass:"timepicker-container",class:{"forms__input--half-size":this.isComponentHalfSize}},[n("BaseDropdownMenu",{ref:"dropdown",attrs:{placement:"bottom-right",closeWithInnerClick:!1},on:{onShow:e.onShowDropdown},scopedSlots:e._u([{key:"hook-target",fn:function(){return[n("input",{directives:[{name:"model",rawName:"v-model",value:e.currentTime,expression:"currentTime"}],staticClass:"fc-input input-forms__input-field",class:e.inputClass,attrs:{type:"text",disabled:e.disabled,inputmode:"numeric"},domProps:{value:e.currentTime},on:{keydown:e.onKeyDown,keyup:function(t){return e.format(t)},input:function(t){t.target.composing||(e.currentTime=t.target.value)}}}),e.timeUnit&&e.currentTime?n("span",{staticClass:"inputfield__input-icon inputfield__input-icon--right-side"},[e._v(" "+e._s(e.timeUnit)+" ")]):e._e()]},proxy:!0}])},[e.disabled?e._e():n("div",{staticClass:"tp-selector__container"},[n("div",{ref:"columnHour",staticClass:"tp-column__selector"},e._l(e.hours,(function(t){return n("div",{key:t,staticClass:"tp-cell__selector tp-cell__hour",class:{"tp-cell__selector--selected":e.isSelected(e.currentHour,t)},on:{click:function(n){return e.selectHour(t)}}},[e._v(" "+e._s(t)+" ")])})),0),n("div",{ref:"columnMinute",staticClass:"tp-column__selector"},e._l(e.minutes,(function(t){return n("div",{key:t,staticClass:"tp-cell__selector tp-cell__minute",class:{"tp-cell__selector--selected":e.isSelected(e.currentMinute,t)},on:{click:function(n){return e.selectMinute(t)}}},[e._v(" "+e._s(t)+" ")])})),0),e.withSeconds?n("div",{ref:"columnSecond",staticClass:"tp-column__selector"},e._l(e.minutes,(function(t){return n("div",{key:t,staticClass:"tp-cell__selector tp-cell__second",class:{"tp-cell__selector--selected":e.isSelected(e.currentSecond,t)},on:{click:function(n){return e.selectSecond(t)}}},[e._v(" "+e._s(t)+" ")])})),0):e._e()])]),e.isValidationConfigDone?n("div",[e.validation?n("div",{key:e.validation.updated,staticClass:"input-forms__errors-container"},e._l(e.validation.getErrors(e.validationPath,e.validateUntouched),(function(t){return n("div",{key:t,staticClass:"fc-form-danger"},[e._v(" "+e._s(t)+" ")])})),0):e._e()]):e._e()],1)])},i=[],s=(n("caad"),n("99af"),n("ac1f"),n("1276"),n("4d90"),n("2532"),n("466d"),n("d81d"),n("cb29"),n("fb6a"),n("bb48")),o=n("7bf0"),r=["Escape","Esc",27,"Enter",13,"Tab",9],l=[void 0,null,""],c=["Backspace",8,"Delete",46],d="08:00",u=["00","15","30","45"],p={mixins:[o["a"]],components:{BaseDropdownMenu:s["a"]},props:{value:{type:String,default:""},label:{type:String},timeUnit:{type:String},isComponentHalfSize:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},withSeconds:{type:Boolean,default:!1},showQuarterHourAsMinute:{type:Boolean,default:!0},defaultPopUpTime:{type:[Date,String],default:function(){return new Date}},ignoreDefaultPopUpTime:{type:Boolean,default:!1},validateUntouched:{type:Boolean,default:!1}},computed:{timePattern:function(){return this.withSeconds?/^([01]?[0-9]|2[0-3])[\D]+([0-5][0-9])[\D]+([0-5][0-9])$/i:/^([01]?[0-9]|2[0-3])[\D]+([0-5][0-9])$/i},hours:function(){return this.createNumberList(24)},minutes:function(){return this.showQuarterHourAsMinute?u:this.createNumberList(60)},currentTime:{get:function(){if(l.includes(this.currentHour)||l.includes(this.currentMinute))return null;var e="".concat(this.currentHour,":").concat(this.currentMinute);return this.withSeconds&&(e+=":".concat(this.currentSecond)),e},set:function(e){this.copyTime(e)}},defaultPopUpHour:function(){var e,t;return this.defaultPopUpTime?null!==(e=this.defaultPopUpTime)&&void 0!==e&&e.getHours?String(this.defaultPopUpTime.getHours()).padStart(2,"0"):(null!==(t=this.defaultPopUpTime)&&void 0!==t&&t.includes(":")&&this.defaultPopUpTime.split(":")[0],this.defaultPopUpTime):d.split(":")[0]},defaultPopUpMinute:function(){var e,t;if(!this.defaultPopUpTime)return d.split(":")[1];if(null!==(e=this.defaultPopUpTime)&&void 0!==e&&e.getMinutes){var n=this.defaultPopUpTime.getMinutes();return n=this.showQuarterHourAsMinute?15*Math.round(n/15)%60:n,String(n).padStart(2,"0")}return null!==(t=this.defaultPopUpTime)&&void 0!==t&&t.includes(":")&&this.defaultPopUpTime.split(":")[1],this.defaultPopUpTime},inputClass:function(){return{"fc-form-danger":this.isValidationConfigDone&&this.validation.isInvalid(this.validationPath,this.validateUntouched)}}},watch:{value:{immediate:!0,handler:function(e){e&&this.copyTime(e)}}},data:function(){for(var e=[],t=0;t<60;t++)e.push((t<10?"0":"")+t);return{currentHour:"",currentMinute:"",currentSecond:""}},mounted:function(){this.firstValidation=!0,this.copyTime(this.value)},methods:{onShowDropdown:function(){var e=this;if(!this.disabled){this.currentTime||this.ignoreDefaultPopUpTime||(this.selectHour(this.defaultPopUpHour),this.selectMinute(this.defaultPopUpMinute),this.withSeconds&&this.selectSecond("00"));var t=this.$refs.columnHour,n=this.$refs.columnMinute;setTimeout((function(){var a,i,s=null===(a=t.querySelector(".tp-cell__hour.tp-cell__selector--selected"))||void 0===a?void 0:a.offsetTop,o=null===(i=n.querySelector(".tp-cell__minute.tp-cell__selector--selected"))||void 0===i?void 0:i.offsetTop;e.$refs.columnHour.scrollTop=s,e.$refs.columnMinute.scrollTop=o}),0)}},onKeyDown:function(e){var t=e.key||e.keyCode;r.indexOf(t)>-1&&this.$refs.dropdown.hideContainer()},format:function(e){e.target.value||(this.resetTime(),this.emitTime());var t=e.key||e.keyCode;if(!(c.indexOf(t)>-1)){var n=e.target.value;n.match(/^[0-9]{2}$/)&&(e.target.value="".concat(n,":")),n.match(/^[0-9]{2}:[0-9]{2}$/)&&this.withSeconds&&(e.target.value="".concat(n,":")),this.timePattern.test(e.target.value)&&(this.copyTime(e.target.value),this.emitTime())}},resetTime:function(){this.currentHour=null,this.currentMinute=null,this.currentSecond=null},createNumberList:function(e){return Array(e).fill().map((function(e,t){return("00"+t).slice(-2)}))},isSelected:function(e,t){return+e===+t},copyTime:function(e){var t=this.timePattern.exec(e);t&&(this.currentHour=t[1],this.currentMinute=t[2],this.withSeconds&&(this.currentSecond=t[3])),this.runValidation()},selectHour:function(e){this.currentHour=e,this.emitTime()},selectMinute:function(e){this.currentMinute=e,this.emitTime()},selectSecond:function(e){this.currentSecond=e,this.emitTime()},emitTime:function(){this.$emit("input",this.currentTime),this.$emit("change",this.currentTime)},runValidation:function(){this.$runValidator(this.value,this.firstValidation),this.firstValidation=!1}}},h=p,f=(n("4611"),n("2877")),m=Object(f["a"])(h,a,i,!1,null,"ef7c4f88",null);t["default"]=m.exports},"5a41":function(e,t,n){"use strict";n("43bb")},"5a75":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BaseModal",{ref:"zusatzDok",attrs:{labelButtonConfirm:"Weiter zur Unterschrift",labelButtonCancel:"Abbrechen",size:"lg"},on:{onConfirmButton:e.sendZusatzDoks,onCancelButton:e.closeZusatzListModal},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[n("ph-warning",{staticClass:"mr-2",staticStyle:{color:"orangered"},attrs:{size:16}}),e._v(" Zusätzliche Dokumente ")]},proxy:!0}])},[e.pictureAttachMsg?n("div",{staticClass:"mb-1"},[e._v(" "+e._s(e.pictureAttachMsg)+" ")]):e._e(),n("div",{staticClass:"font-strong mb-1"},[e._v(" Wenn Sie möchten können Sie hier Dokumente auswählen, die vor der e-Signatur zum Antrag hinzugefügt werden. ")]),n("div",{staticClass:"font-strong mb-1"},[e._v(" Andernfalls können Sie direkt mit der Unterschrift fortfahren. ")]),e._l(e.bodyMessages,(function(t,a){return n("div",{key:"body"+a},[n("div",{staticClass:"mb-1"},[e._v(" "+e._s(t)+" ")])])})),n("div",{staticClass:"mb-1"},[e._v(" Bitte beachten Sie, dass das Anfügen der Dokumente dauerhaft ist, auch wenn Sie den Antrag doch nicht signieren. ")]),e.webServiceMsg?n("div",{staticClass:"font-strong mb-1"},[e._v(" "+e._s(e.webServiceMsg)+" ")]):e._e(),e._l(e.zusatzList,(function(t,a){return n("div",{key:a,staticClass:"row"},[n("div",{staticClass:"col"},[n("div",{staticClass:"container"},[n("InputCheckBoxItem",{attrs:{disabled:t.appended},model:{value:e.zusatzDokForm[t.id],callback:function(n){e.$set(e.zusatzDokForm,t.id,n)},expression:"zusatzDokForm[dok.id]"}}),n("div",{staticClass:"ml-1"},[t.id?n("DownloadLink",{attrs:{href:e.attachmentLinkMaker(t.filename,t.id),title:t.bezeichnung+" ("+t.herkunft+")"}}):n("div",[e._v(e._s(t.bezeichnung)+" ("+e._s(t.herkunft))])],1)],1)])])}))],2),n("BaseModal",{ref:"errorModal",attrs:{labelButtonConfirm:"Ok",showCancelButton:!1},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[n("ph-warning",{staticClass:"mr-2",staticStyle:{color:"orangered"},attrs:{size:16}}),e._v(" Fehler ")]},proxy:!0}])},[n("label",[e._v(e._s(e.errorMessage))])])],1)},i=[],s=n("5530"),o=(n("4de4"),n("b64b"),n("d3b7"),n("99af"),n("a15b"),n("d81d"),n("159b"),n("e6cf"),n("a79d"),n("cee4")),r=n("3c57"),l=n("04bc"),c=n("a871"),d=n("2f62"),u=n("5818"),p=n("c0a4"),h=n("5a29"),f=n("8fb3"),m=n("81f6"),b=n("09de"),v={mixins:[],components:{BaseButton:l["default"],BaseModal:c["a"],InputCheckBoxItem:u["a"],PhWarning:p["PhWarning"],DownloadLink:h["default"]},props:{selectedDoc:{},emitClose:{type:Boolean,default:!1}},data:function(){return{apiAddress:"/MSC3/restful",zusatzDokForm:{},zusatzList:[],pictureAttachMsg:null,webServiceMsg:null,bodyMessages:null,errorMessage:""}},computed:Object(s["a"])({},Object(d["b"])({attachmentLinkMaker:r["default"].GETTERS.GET_SIMPLE_FILE_LINK_MAKER})),mounted:function(){},methods:{closeZusatzListModal:function(){this.$refs.zusatzDok.close(),this.zusatzList=null,this.pictureAttachMsg=null,this.webServiceMsg=null,this.bodyMessages=null,this.zusatzDokForm={}},sendZusatzDoks:function(){var e,t=this;if(this.zusatzDokForm&&(e=Object.keys(this.zusatzDokForm).filter((function(e){return!0===t.zusatzDokForm[e]})),this.zusatzDokForm={}),this.selectedDoc){var n={concatIds:e,dokId:this.selectedDoc["PARAMETER_DOK_ID"],antragsnrIntern:this.selectedDoc["PARAMETER_ANTRAGSNR_INTERN"],antragsdatenPdfId:this.selectedDoc["PARAMETER_ANTRAGSDATEN_PDF_ID"]};this.$store.commit(b["default"].MUTATIONS.START_ANTRAG_ACTION_LOADING,"zusatzDok"),o["a"].post("".concat("/MSC3/restful","/dokumentenarchivSign/additionalDocumentsConcatSign"),n,{headers:{"Content-Type":"application/json"},defaultSpinner:!0}).then((function(e){var a=e.data;a.signoUri?(Object(f["b"])(a.signoUri,"Zusaetzliche Dokumente ".concat(n.dokId)),t.emitClose&&m["u"].$emit(m["b"])):a.errorMessage&&(t.errorMessage=a.errorMessage,t.$refs.errorModal.open())})).finally((function(){return t.$store.commit(b["default"].MUTATIONS.STOP_ANTRAG_ACTION_LOADING,"zusatzDok")}))}this.closeZusatzListModal()},open:function(){var e=this;if(this.selectedDoc){this.$emit("updateLoadingStatus",!0);var t=[];for(var n in this.selectedDoc)t.push(n),t.push(this.selectedDoc[n]);o["a"].get("".concat("/MSC3/restful","/dokumentenarchivSign/getPictureAttachments?").concat(t.map((function(e){return"sendData=".concat(e)})).join("&")),{headers:{"Content-Type":"application/json"},defaultSpinner:!0}).then((function(t){t&&t.data&&(e.zusatzDokForm={},e.zusatzList=t.data.attachments,e.pictureAttachMsg=t.data.pictureAttachMsg,e.webServiceMsg=t.data.webServiceMsg,e.bodyMessages=t.data.messages,e.zusatzList.forEach((function(t){return e.zusatzDokForm[t.id]=t.appended||!1})),e.$emit("updateLoadingStatus",!1),e.$refs.zusatzDok.open())}))}}}},g=v,E=(n("cac7"),n("2877")),_=Object(E["a"])(g,a,i,!1,null,"2015b4da",null);t["a"]=_.exports},"5b2c":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".availableStatusIcons__container[data-v-4d76bacc]{display:inline}",""]),e.exports=t},"5c70":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"doughnut-progress__container"},[n("v-chart",{staticClass:"chart",attrs:{option:e.option,theme:e.themeKey,autoresize:""}})],1)},i=[],s=(n("a9e3"),n("22b4")),o=n("f95e"),r=n("49bb"),l=n("a0c6"),c=n("5c7f"),d=n("a6ea");Object(s["a"])([o["a"],r["a"],l["a"]]);var u={name:"DoughnutProgress",mixins:[d["a"]],components:{VChart:c["b"]},props:{percentage:{type:Number,default:0},labelProgress:{type:String,default:""}},computed:{checkedChartData:function(){var e=[];return e.push({value:Math.abs(this.percentage)}),e.push({value:100-Math.abs(this.percentage)}),e},option:function(){return{color:["#28a745","#d9d9d9"],title:{show:!1},tooltip:{show:!1},legend:{show:!1},series:[{name:"",type:"pie",radius:["80%","100%"],data:this.checkedChartData,label:{show:!1},markPoint:{tooltip:{show:!1},label:{color:document.documentElement.style.getPropertyValue("--color-text")||"#000000",show:!0,fontSize:14},data:[{name:this.labelProgress,value:this.labelProgress,symbol:"circle",itemStyle:{color:"transparent"},x:"50%",y:"50%"}]}}]}}}},p=u,h=(n("6a5f"),n("2877")),f=Object(h["a"])(p,a,i,!1,null,"42a55d81",null);t["a"]=f.exports},"5c7f":function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return L}));var a=n("a026"),i=n("ed09");function s(e){e=e||a["default"],e&&!e["__composition_api_installed__"]&&e.use(i["b"])}s(a["default"]);var o=a["default"],r=(a["default"].version,n("1be7")),l=n("88b3"),c=null;function d(e){return c||(c=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),c(e)}var u=null;function p(e){u||(u=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),u(e)}function h(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}function f(e,t){void 0===t&&(t={});var n=document.createElement(e);return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function m(e,t,n){var a=window.getComputedStyle(e,n||null)||{display:"none"};return a[t]}function b(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};var t=e;while(t!==document){if("none"===m(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var v='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',g=0,E=null;function _(e,t){e.__resize_mutation_handler__||(e.__resize_mutation_handler__=y.bind(e));var n=e.__resize_listeners__;if(!n)if(e.__resize_listeners__=[],window.ResizeObserver){var a=e.offsetWidth,i=e.offsetHeight,s=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==a||e.offsetHeight!==i))&&k(e)})),o=b(e),r=o.detached,l=o.rendered;e.__resize_observer_triggered__=!1===r&&!1===l,e.__resize_observer__=s,s.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){k(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(g||(E=h(v)),A(e),e.__resize_rendered__=b(e).rendered,window.MutationObserver){var c=new MutationObserver(e.__resize_mutation_handler__);c.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=c}e.__resize_listeners__.push(t),g++}function S(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",x),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--g&&E&&E.parentNode.removeChild(E)}}function T(e){var t=e.__resize_last__,n=t.width,a=t.height,i=e.offsetWidth,s=e.offsetHeight;return i!==n||s!==a?{width:i,height:s}:null}function y(){var e=b(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(I(this),this.addEventListener("scroll",x,!0)),this.__resize_rendered__=t,k(this))}function x(){var e=this;I(this),this.__resize_raf__&&p(this.__resize_raf__),this.__resize_raf__=d((function(){var t=T(e);t&&(e.__resize_last__=t,k(e))}))}function k(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function A(e){var t=m(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=f("div",{className:"resize-triggers"}),a=f("div",{className:"resize-expand-trigger"}),i=f("div"),s=f("div",{className:"resize-contract-trigger"});a.appendChild(i),n.appendChild(a),n.appendChild(s),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:a,expandChild:i,contract:s},I(e),e.addEventListener("scroll",x,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}function I(e){var t=e.__resize_triggers__,n=t.expand,a=t.expandChild,i=t.contract,s=i.scrollWidth,o=i.scrollHeight,r=n.offsetWidth,l=n.offsetHeight,c=n.scrollWidth,d=n.scrollHeight;i.scrollLeft=s,i.scrollTop=o,a.style.width=r+1+"px",a.style.height=l+1+"px",n.scrollLeft=c,n.scrollTop=d}var C=function(){return C=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},C.apply(this,arguments)},w=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function O(e){return t=Object.create(null),w.forEach((function(n){t[n]=function(t){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[t].apply(e.value,n)}}(n)})),t;var t}var D={autoresize:Boolean},N={loading:Boolean,loadingOptions:Object},M=/^on[^a-z]/,R=function(e){return M.test(e)},P=[],B=[];!function(e,t){if(e&&"undefined"!=typeof document){var n,a=!0===t.prepend?"prepend":"append",i=!0===t.singleTag,s="string"==typeof t.container?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(i){var o=P.indexOf(s);-1===o&&(o=P.push(s)-1,B[o]={}),n=B[o]&&B[o][a]?B[o][a]:B[o][a]=r()}else n=r();65279===e.charCodeAt(0)&&(e=e.substring(1)),n.styleSheet?n.styleSheet.cssText+=e:n.appendChild(document.createTextNode(e))}function r(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),t.attributes)for(var n=Object.keys(t.attributes),i=0;i<n.length;i++)e.setAttribute(n[i],t.attributes[n[i]]);var o="prepend"===a?"afterbegin":"beforeend";return s.insertAdjacentElement(o,e),e}}("x-vue-echarts{display:block;width:100%;height:100%}\n",{}),o&&o.config.ignoredElements.push("x-vue-echarts");var U="ecInitOptions",L=Object(i["c"])({name:"echarts",props:C(C({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},D),N),inheritAttrs:!1,setup:function(e,t){var n=t.attrs,a=Object(i["j"])(),s=Object(i["j"])(),o=Object(i["j"])(),c=Object(i["f"])("ecTheme",null),d=Object(i["f"])("ecInitOptions",null),u=Object(i["f"])("ecUpdateOptions",null),p=Object(i["k"])(e),h=p.autoresize,f=p.manualUpdate,m=p.loading,b=p.loadingOptions,v=Object(i["a"])((function(){return o.value||e.option||null})),g=Object(i["a"])((function(){return e.theme||Object(i["l"])(c)||{}})),E=Object(i["a"])((function(){return e.initOptions||Object(i["l"])(d)||{}})),T=Object(i["a"])((function(){return e.updateOptions||Object(i["l"])(u)||{}})),y=Object(i["a"])((function(){return function(e){var t={};for(var n in e)R(n)||(t[n]=e[n]);return t}(n)})),x=Object(i["d"])().proxy.$listeners;function k(t){if(a.value){var o=s.value=Object(r["l"])(a.value,g.value,E.value);e.group&&(o.group=e.group);var l=x;l||(l={},Object.keys(n).filter((function(e){return 0===e.indexOf("on")&&e.length>2})).forEach((function(e){var t=e.charAt(2).toLowerCase()+e.slice(3);"Once"===t.substring(t.length-4)&&(t="~".concat(t.substring(0,t.length-4))),l[t]=n[e]}))),Object.keys(l).forEach((function(e){var t=l[e];if(t){var n=e.toLowerCase();"~"===n.charAt(0)&&(n=n.substring(1),t.__once__=!0);var a=o;if(0===n.indexOf("zr:")&&(a=o.getZr(),n=n.substring(3)),t.__once__){delete t.__once__;var i=t;t=function(){for(var e=[],s=0;s<arguments.length;s++)e[s]=arguments[s];i.apply(void 0,e),a.off(n,t)}}a.on(n,t)}})),h.value?Object(i["g"])((function(){o&&!o.isDisposed()&&o.resize(),c()})):c()}function c(){var e=t||v.value;e&&o.setOption(e,T.value)}}function A(){s.value&&(s.value.dispose(),s.value=void 0)}var I=null;Object(i["m"])(f,(function(t){"function"==typeof I&&(I(),I=null),t||(I=Object(i["m"])((function(){return e.option}),(function(e,t){e&&(s.value?s.value.setOption(e,C({notMerge:e.value!==(null==t?void 0:t.value)},T.value)):k())}),{deep:!0}))}),{immediate:!0}),Object(i["m"])([g,E],(function(){A(),k()}),{deep:!0}),Object(i["n"])((function(){e.group&&s.value&&(s.value.group=e.group)}));var w=O(s);return function(e,t,n){var a=Object(i["f"])("ecLoadingOptions",{}),s=Object(i["a"])((function(){return C(C({},Object(i["l"])(a)),null==n?void 0:n.value)}));Object(i["n"])((function(){var n=e.value;n&&(t.value?n.showLoading(s.value):n.hideLoading())}))}(s,m,b),function(e,t,n){var a=null;Object(i["m"])([n,e,t],(function(e,t,n){var i=e[0],s=e[1],o=e[2];i&&s&&o&&(a=Object(l["c"])((function(){s.resize()}),100),_(i,a)),n((function(){a&&i&&S(i,a)}))}))}(s,h,a),Object(i["h"])((function(){k()})),Object(i["i"])(A),C({chart:s,root:a,setOption:function(t,n){e.manualUpdate&&(o.value=t),s.value?s.value.setOption(t,n||{}):k(t)},nonEventAttrs:y},w)},render:function(){var e=o?{attrs:this.nonEventAttrs}:C({},this.nonEventAttrs);return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",Object(i["e"])("x-vue-echarts",e)}})},"5e3f":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".modal__title[data-v-0c0cc4ca]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.base-modal__header--button[data-v-0c0cc4ca]{background:none;border:none;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;margin:0 0 0 6px;padding:0;width:20px;height:20px}.box__shadow[data-v-0c0cc4ca],.popup[data-v-0c0cc4ca]{-webkit-box-shadow:0 4px 16px rgba(85,85,85,.1);box-shadow:0 4px 16px rgba(85,85,85,.1)}.popup[data-v-0c0cc4ca]{position:absolute;top:50%;left:50%;border-radius:8px;border:1px solid var(--color-background);background-color:var(--color-box);z-index:9999;resize:both;overflow:hidden;border:1px solid var(--color-box-neutral)}.popup__dragging[data-v-0c0cc4ca]{border:1px solid var(--color-box-neutral)}.header[data-v-0c0cc4ca]{padding:10px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:sticky;top:0;z-index:1000;background-color:var(--color-box);cursor:-webkit-grab;cursor:grab}.header[data-v-0c0cc4ca],.header>.hearder__buttons[data-v-0c0cc4ca]{display:-webkit-box;display:-ms-flexbox;display:flex}.header>.hearder__buttons[data-v-0c0cc4ca]{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.content[data-v-0c0cc4ca]{padding:20px}.resizable-handle[data-v-0c0cc4ca]{position:absolute;bottom:0;right:0;width:16px;height:16px;background:repeating-linear-gradient(-45deg,transparent,transparent 1px,#000 0,#000 2px);cursor:nwse-resize}.popup__minimized[data-v-0c0cc4ca]{border:1px solid var(--color-box-neutral)}",""]),e.exports=t},6205: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",{staticClass:"participants-input"},[n("div",{staticClass:"w-100"},[n("div",{staticClass:"label-content"},[n("span",{staticClass:"pr-3"},[e._v(e._s(e.label))]),e.warning?n("span",{staticClass:"color-danger"},[e._v(e._s(e.warning))]):e._e()]),!e.isUsersPreview||e.combinedDisplay?[e.multipleReceivers?n("div",[n("InputChips",{attrs:{availableOptions:e.availableUsers,supportCustomValue:!0,warning:e.warning,disableInput:e.disabled,isClickable:e.isReceiveUserClickable,maxItemsVisible:e.maxItemsVisible,isMaklerOnly:e.isMaklerOnly,notRemovableItem:"...",redFlagWhenDifferentLabelValue:"",loading:e.loading},on:{inputText:function(t){return e.searchReceiverUsers(t)},clickItem:function(t){return e.clickReceiveUsers(t)},removeItem:function(t){return e.deleteReceiveUsers(t)},addItem:function(t){return e.$emit("addItem",t)}},model:{value:e.receiver,callback:function(t){e.receiver=t},expression:"receiver"}})],1):n("div",[n("InputField",{attrs:{supportCustomValue:!0},model:{value:e.receiverStr,callback:function(t){e.receiverStr=t},expression:"receiverStr"}})],1)]:e._e()],2),n("div",[n("div",{staticClass:"participants-actions"},[!e.combinedDisplay||e.isUserSelect?n("BaseDropdownMenu",{attrs:{placement:"bottom-right"},scopedSlots:e._u([{key:"hook-target",fn:function(){return[n("ph-dots-three-vertical",{staticClass:"clickable",attrs:{size:24},on:{click:function(t){e.showDropdown=!e.showDropdown}}})]},proxy:!0},{key:"default",fn:function(){return[n("div",{staticClass:"dropdown-content"},[e.isUserSelect&&!e.isMaklerOnly?n("div",{staticClass:"pr-2 clickable",on:{click:function(t){return e.$emit("createManualReceiver")}}},[n("PhUserPlus",{attrs:{size:"20"}}),e.isMaklerOnly?e._e():n("span",{staticClass:"pl-2"},[e._v("Empfänger hinzufügen")])],1):e._e(),e.isUserSelect&&!e.isMaklerOnly?n("div",{staticClass:"pr-2 clickable",on:{click:e.handleAddUsers}},[n("PhBookOpen",{attrs:{size:"20"}}),n("span",{staticClass:"pl-2"},[e._v("Empfängersuche")])],1):e._e(),!e.isUserSelect&&e.isMaklerOnly?n("div",{staticClass:"pr-2 clickable",on:{click:e.handleAddMakler}},[n("PhBookOpen",{attrs:{size:"20"}}),n("span",{staticClass:"pl-2"},[e._v("Maklersuche")])],1):e._e(),e.isTableViewOnly||e.combinedDisplay?e._e():n("div",{staticClass:"clickable"},[n("div",{on:{click:function(t){return e.toggleUserPreview()}}},[e.isUsersPreview||e.isMaklerOnly?e._e():n("PhRows",{attrs:{size:"20"}}),e.isUsersPreview||e.isMaklerOnly?e._e():n("span",{staticClass:"pl-2"},[e._v("zur Tabellenansicht wechseln")])],1),n("div",{on:{click:function(t){return e.toggleUserPreview()}}},[e.isUsersPreview?n("PhColumns",{attrs:{size:"20"}}):e._e(),e.isUsersPreview?n("span",{staticClass:"pl-2"},[e._v("zur Einfügeansicht wechseln")]):e._e()],1)]),e.isUserSelect||e.isMaklerOnly?n("div",{staticClass:"pr-2 clickable",on:{click:e.handleDeleteAllUsers}},[n("PhXCircle",{attrs:{size:"20"}}),n("span",{staticClass:"pl-2"},[e._v("Empfängerliste leeren")])],1):e._e()])]},proxy:!0}],null,!1,4103508097)}):e._e()],1)])]),e.isUsersPreview||e.combinedDisplay?n("div",{staticClass:"mt-4"},[n("Table",{attrs:{hidePagination:e.hidePagination,headers:e.headers,rows:e.rows,rowsPerPage:e.maxItemsVisible},on:{"click-name":function(t){return e.clickReceiveUsers(t.data)},"action-EDIT":e.handleEdit,"action-DELETE":e.handleDelete,"action-COPY_ADDRESS":e.handleCopyAddress,"action-SEND_EMAIL":e.handleSendEmail,"action-SEND_EMAIL_SINGLE":e.handleSendEmailSingle,"action-SET_ADDRESS":e.handleSetAddress,"click-handleSendEmailSingle":e.handleSendEmailSingle,"click-handleSetAddress":e.handleSetAddress},scopedSlots:e._u([{key:"role",fn:function(t){return[n("ComboBox",{attrs:{disabled:t.data.disabled,label:"",value:t.rolle,values:e.rolleOptions,firstEmpty:!1},on:{change:function(n){return e.onChange(t,n,"rolle")}}})]}},{key:"canChange",fn:function(t){return[n("InputCheckBoxItem",{attrs:{label:"Ändern",value:t.canChange},on:{input:function(n){return e.onChange(t,n,"canChange")}}})]}},{key:"alarmMsc",fn:function(t){return[n("InputCheckBoxItem",{attrs:{label:"anzeigen",value:t.data.alarmMsc,disabled:!t.canChangeValues},on:{input:function(n){return e.onChange(t,n,"alarmMsc")}}})]}},{key:"alarmMail",fn:function(t){return[n("InputCheckBoxItem",{attrs:{label:"versenden",value:t.alarmMail,disabled:!t.canChangeValues},on:{input:function(n){return e.onChange(t,n,"alarmMail")}}})]}},{key:"alarmDailyMail",fn:function(t){return[n("InputCheckBoxItem",{attrs:{label:"versenden",value:t.alarmDailyMail,disabled:!t.canChangeValues},on:{input:function(n){return e.onChange(t,n,"alarmDailyMail")}}})]}}],null,!1,904577088)})],1):e._e(),n("BaseModal",{ref:"editModal",attrs:{modalTitle:"",showDefaultButtons:!1}},[n("InputField",{attrs:{label:"Name",placeholder:"Name",type:"text"},model:{value:e.form.label,callback:function(t){e.$set(e.form,"label",t)},expression:"form.label"}}),n("InputField",{attrs:{label:e.isFax?"Fax":"E-Mail",placeholder:e.isFax?"Fax":"E-Mail",type:"text"},model:{value:e.form.email,callback:function(t){e.$set(e.form,"email",t)},expression:"form.email"}}),n("div",{staticClass:"modal-footer"},[n("BaseButton",{attrs:{type:"submit"},on:{click:e.saveParticipant}},[e._v("Ok")])],1)],1)],1)},i=[],s=n("2909"),o=n("ade3"),r=n("5530"),l=(n("a9e3"),n("c740"),n("498a"),n("a434"),n("99af"),n("d81d"),n("b0c0"),n("b64b"),n("2f62")),c=n("85ed"),d=n("c704"),u=n("c0a4"),p=n("689f"),h=n("d53f"),f=n("9131"),m=n("5818"),b=n("41d3"),v=n("a871"),g=n("04bc"),E=n("bb48"),_=(n("876f"),n("de6c"),n("64c5")),S=n("a9e4"),T=15,y={components:{InputChips:c["default"],InputField:d["default"],PhUserPlus:u["PhUserPlus"],PhRows:u["PhRows"],PhColumns:u["PhColumns"],PhBookOpen:u["PhBookOpen"],PhDotsThreeVertical:u["PhDotsThreeVertical"],PhXCircle:u["PhXCircle"],PhHouseSimple:u["PhHouseSimple"],PhEnvelopeSimple:u["PhEnvelopeSimple"],Table:p["a"],ComboBox:f["default"],InputCheckBoxItem:m["a"],BaseModal:v["a"],BaseButton:g["default"],BaseDropdownMenu:E["a"]},props:{label:{type:String,default:""},warning:{type:String,default:""},isUserSelect:{type:Boolean,default:!0},isRole:{type:Boolean,default:!1},value:{type:Array,default:function(){return[]}},availableUsers:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},multipleReceivers:{type:Boolean,default:!0},isReceiveUserClickable:{type:Function},maxItemsVisible:{type:Number,default:T},isTableViewOnly:{type:Boolean,default:!1},combinedDisplay:{type:Boolean,default:!1},hidePagination:{type:Boolean,default:!1},showMailAndAddressActions:{type:Boolean,default:!1},isFax:{type:Boolean,default:!1},isMaklerOnly:{type:Boolean,default:!1},bereich:{type:String,default:""},loading:{type:Boolean,default:!1}},data:function(){return{isUsersPreview:!1,form:{label:"",email:""},selectedParticipant:0,showDropdown:!1,isMultipleBesitzerRolles:!1}},mounted:function(){this.isUsersPreview=this.isTableViewOnly,this.isRole&&this.$store.dispatch(b["default"].ACTIONS.RETRIEVE_APPOINTMENT_COMBOS)},methods:{onChange:function(e,t,n){var a,i;if("rolle"!==n)this.isMultipleBesitzerRolles="BESITZER"===t&&this.value.some((function(e){return"BESITZER"===e.rolle})),this.$emit("setBesitzer",this.isMultipleBesitzerRolles),"BESITZER"!==t?this.$emit("onChange",{field:n,value:t,id:null===e||void 0===e||null===(a=e.data)||void 0===a?void 0:a.id,data:Object(r["a"])(Object(r["a"])({},(null===e||void 0===e||null===(i=e.data)||void 0===i?void 0:i.beteiligte)||(null===e||void 0===e?void 0:e.data)),{},Object(o["a"])({},n,t))}):this.$store.commit(b["default"].MUTATIONS.UPDATE_BETEILIGTE,Object(r["a"])(Object(r["a"])({},null===e||void 0===e?void 0:e.data),{},{rolle:"BESITZER"}));else{var s;switch(e.data.rolle=t,t){case"BESITZER":case"BEARBEITER":e.data.canChange=!0,e.data.alarmMail=!0,e.data.alarmDailyMail=!0,e.data.alarmMsc=!0;break;case"TEILNEHMER":"Termin"===this.bereich?(e.data.canChange=!0,e.data.alarmMail=!0,e.data.alarmDailyMail=!0,e.data.alarmMsc=!0):(e.data.canChange=!1,e.data.alarmMail=!1,e.data.alarmDailyMail=!1,e.data.alarmMsc=!1);break;default:e.data.canChange=!1,e.data.alarmMail=!1,e.data.alarmDailyMail=!1,e.data.alarmMsc=!1;break}this.$emit("onChange",{field:n,value:t,id:null===e||void 0===e||null===(s=e.data)||void 0===s?void 0:s.id,data:Object(r["a"])({},null===e||void 0===e?void 0:e.data)})}},clickReceiveUsers:function(e){"..."===e.value?this.isUsersPreview=!0:this.$emit("clickReceiveUsers",e)},deleteReceiveUsers:function(e){this.$emit("deleteReceiveUsers",e)},searchReceiverUsers:function(e){this.$emit("searchReceiverUsers",e)},handleAddUsers:function(e){this.$emit("handleAddUsers",e)},handleAddMakler:function(e){this.$emit("handleAddMakler",e)},handleDeleteAllUsers:function(){this.$emit("deleteAllReceiveUsers",this.receiver)},handleEdit:function(e){var t=e.index;e.nummer&&(t=this.receiver.findIndex((function(t){return t.value===e.nummer}))),this.selectedParticipant=t,this.form={label:(this.receiver[t].label||"").trim(),email:(this.receiver[t].email||"").trim()},this.$refs.editModal.open()},handleDelete:function(e){var t=e.index;if(t>-1){var n=this.receiver[t];this.receiver.splice(t,1),this.deleteReceiveUsers(n)}},handleCopyAddress:function(e){this.$emit("copyAddress",e)},handleSendEmail:function(e){this.$emit("sendEmail",e)},handleSendEmailSingle:function(e){var t;this.$emit("sendEmailSingle",[null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.beteiligte])},handleSetAddress:function(e){var t;this.$emit("setAddress",null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.address)},saveParticipant:function(){var e=this.form.label||"";e||(e=this.form.email);var t=Object(r["a"])(Object(r["a"])({},this.value[this.selectedParticipant]),{},{data:Object(r["a"])(Object(r["a"])({},this.value[this.selectedParticipant].data),{},{name:this.form.label}),label:e,name:e,email:this.form.email,value:this.value[this.selectedParticipant].value||""});t.value&&-1!==t.value.indexOf("@")&&(t.value=t.email),this.value[this.selectedParticipant]=t;var n=Object(s["a"])(this.value);this.$emit("input",n),this.$emit("onChange",{data:Object(r["a"])(Object(r["a"])({},t),{},{index:this.selectedParticipant})}),this.$refs.editModal.close()},toggleUserPreview:function(){this.isUsersPreview=!this.isUsersPreview,this.$emit("userPreview",this.isUsersPreview)}},computed:Object(r["a"])(Object(r["a"])({},Object(l["b"])({getAppointmentCombos:b["default"].GETTERS.GET_APPOINTMENT_COMBOS,loginData:_["default"].GETTERS.GET_LOGIN_DATA,hasRoles:_["default"].GETTERS.HAS_ROLES})),{},{headers:function(){var e={lockedLeft:[Object(h["TextColumn"])("nummerText","Nummer"),Object(h["TextColumn"])("name","Name").makeConditionalLink("isReceiveUserClickable")].concat(Object(s["a"])(this.showMailAndAddressActions?[Object(h["IconColumn"])("handleSetAddress","").makeLink(),Object(h["IconColumn"])("handleSendEmailSingle","").makeLink()]:[])),center:[Object(h["TextColumn"])("email",this.isFax?"Fax":"E-Mail")],lockedRight:[Object(h["ActionColumn"])("actions","")]};return this.isRole&&(e.center.push(Object(h["SlotColumn"])("role","Rolle")),e.center.push(Object(h["SlotColumn"])("canChange","Ändern")),e.center.push(Object(h["SlotColumn"])("alarmMsc","Nachricht Popup")),e.center.push(Object(h["SlotColumn"])("alarmMail","Nachricht E-Mail")),e.center.push(Object(h["SlotColumn"])("alarmDailyMail","E-Mail aktueller Tag"))),e},rows:function(){var e=this,t=[Object(h["SimpleAction"])("EDIT","PhPencilLine","Bearbeiten"),Object(h["SimpleAction"])("DELETE",u["PhTrash"],"Löschen")].concat(Object(s["a"])(this.showMailAndAddressActions?[Object(h["SimpleAction"])("SET_ADDRESS","PhHouseSimple","Anschrift als Ort übernehmen"),Object(h["SimpleAction"])("SEND_EMAIL_SINGLE","PhEnvelopeSimple","Eine Terminbestätigung-E-Mail schicken")]:[]));return this.hasRoles(S["g"].TEST_USER&&this.$listeners.copyAddress&&this.$listeners.sendEmail)&&(t.splice(1,0,Object(h["SimpleAction"])("COPY_ADDRESS","PhMapPin","Anschrift als Ort verwenden")),t.splice(1,0,Object(h["SimpleAction"])("SEND_EMAIL","PhEnvelope","Eine Terminbestätigungs-E-Mail schicken"))),(this.value||[]).map((function(n,a){var i,s,o,r;return{index:a,id:n.value+" -- "+n.label+" -- "+n.email,nummer:n.value,nummerText:n.nummerText||n.value,name:n.name||n.label,email:n.email||(n.label===n.value?n.value:"")||n.fax,rolle:(null===(i=n.beteiligte)||void 0===i?void 0:i.rolle)||n.rolle,data:n,canChange:void 0!==n.canChange?n.canChange:n.value!==(null===(s=e.loginData)||void 0===s?void 0:s.loginUserid),canChangeValues:n.canChange||n.value!==(null===(o=e.loginData)||void 0===o?void 0:o.loginUserid),alarmMail:n.alarmMail,alarmMsc:n.alarmMsc,alarmDailyMail:n.alarmDailyMail,isReceiveUserClickable:null===(r=e.isReceiveUserClickable)||void 0===r?void 0:r.call(e,n),address:n.address,handleSetAddress:Object(h["Icon"])(u["PhHouseSimple"],"Anschrift als Ort übernehmen",20),handleSendEmailSingle:Object(h["Icon"])(u["PhEnvelopeSimple"],"Eine Terminbestätigung-E-Mail schicken",20),actions:t}}))},receiver:{get:function(){return this.value},set:function(e){this.$emit("input",e)}},receiverStr:{get:function(){var e,t;return"string"===typeof this.value?this.value:(null===(e=this.value)||void 0===e?void 0:e.length)&&(null===(t=this.value[0])||void 0===t?void 0:t.label)||""},set:function(e){this.$emit("input",[e])}},rolleOptions:function(){var e=this;return this.getAppointmentCombos&&this.getAppointmentCombos.rolleCombo&&Object.keys(this.getAppointmentCombos.rolleCombo).map((function(t){return{value:t,label:e.getAppointmentCombos.rolleCombo[t]}}))||[]}})},x=y,k=(n("62a8"),n("2877")),A=Object(k["a"])(x,a,i,!1,null,"445f2461",null);t["a"]=A.exports},"62a8":function(e,t,n){"use strict";n("6870")},"62d6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.stepperMediator?n("div",{staticClass:"container"},[e.isSmallOrMediumScreen?n("div",{class:["template-top",e.stepperClass,e.stepType]},[e.$slots.headerTemplate?n("div",{class:["template-top",e.stepperClass,e.stepType]},[e._t("headerTemplate")],2):e._e(),n("Stepper3",{ref:"stepper3",attrs:{steps:e.stepperMediator.getCurrentStepList(),stepType:"step",disabledUpdate:"fixed"===e.stepType,visible:e.showStepper,stepperName:e.stepperName,selectedStepKey:e.currentStepKey,selectedSubstepKey:e.currentSubstepKey,stepperService:e.stepperMediator},on:{setStep:e.setStepOnMobile,setSubstep:e.setSubstepOnMobile}})],1):e._e(),e.$slots.headerTemplate&&!e.isSmallOrMediumScreen?n("div",{class:["template-top",e.stepperClass,e.stepType]},[e._t("headerTemplate")],2):e._e(),e.isSmallOrMediumScreen?e._e():n("ContentWithStepper",{attrs:{stepperCollapsed:e.stepperCollapsed},scopedSlots:e._u([e.showVerticalStepper?{key:"stepper",fn:function(){return[n("div",{staticClass:"box__container"},[e.isDynamicDocument?n("DynamicVerticalStepper",{ref:"stepper",staticClass:"responsive-stepper",attrs:{stepType:e.stepType,stepperName:e.stepperName,selectedStepKey:e.currentStepKey,selectedSubstepKey:e.currentSubstepKey,stepperService:e.stepperMediator,showCollapse:!0,showSaveSpinner:e.showSaveSpinner},on:{setStep:e.setStep,setSubstep:e.setSubstep,collapsed:function(t){e.stepperCollapsed=t},addStep:function(t){return e.$emit("addStep")},removeStep:function(t){return e.$emit("removeStep",t)},copyStep:function(t){return e.$emit("copyStep",t)},orderChanged:function(t){return e.$emit("orderChanged",t)}}}):n("VerticalStepper",{ref:"stepper",staticClass:"responsive-stepper",attrs:{stepType:e.stepType,stepperName:e.stepperName,selectedStepKey:e.currentStepKey,selectedSubstepKey:e.currentSubstepKey,stepperService:e.stepperMediator,showCollapse:!0,showSaveSpinner:e.showSaveSpinner},on:{setStep:e.setStep,setSubstep:e.setSubstep,collapsed:function(t){e.stepperCollapsed=t}}})],1)]},proxy:!0}:null,{key:"content",fn:function(){return[n("div",{staticClass:"row my-0 template-middle",class:[e.stepperClass,e.stepType]},[n("div",{staticClass:"col-12 template-content",class:[e.stepperClass,e.getTemplateContentClass()]},[e._t("contentTemplate",null,{data:e.currentStep,currentSubstep:e.currentSubstep}),e.$slots.footerTemplate?n("div",{staticClass:"template-bottom"},[e._t("footerTemplate")],2):e._e()],2),e.hasSidetextTemplate?n("div",{staticClass:"col-md-3 col-12",class:[e.getSideTextClass()]},[e._t("sidetextTemplate")],2):e._e()]),e.hideNavigationButtons?e._e():n("div",{staticClass:"template-navigation-buttons"},[n("div",{staticClass:"box__container"},[e.$slots.customBottomButtons?n("div",{staticClass:"m-0 mr-3"},[e._t("customBottomButtons")],2):e._e(),e._t("buttonsTemplate",(function(){return[e.zuruckEnabled||e.zuruckEnabledSubsteps?n("BaseButton",{staticClass:"m-0 mr-3",attrs:{disabled:e.showSaveSpinner,isSecondary:""},on:{click:function(t){return e.backStep()}}},[e._v(" Zurück "),e.showSaveSpinner&&e.lastBottomButtonAction===e.ACTION_PREV?n("AnimatedSpinner"):e._e()],1):e._e(),e.weiterEnabled||e.weiterEnabledSubsteps?n("BaseButton",{staticClass:"m-0 mr-3",attrs:{disabled:e.showSaveSpinner,"is-primary":""},on:{click:function(t){return e.nextStep()}}},[e._v(" Weiter "),e.showSaveSpinner&&e.lastBottomButtonAction===e.ACTION_NEXT?n("AnimatedSpinner"):e._e()],1):e._e(),e.hasFertig&&e.isLastStep?n("BaseButton",{staticClass:"m-0",attrs:{disabled:e.showSaveSpinner,"is-primary":""},on:{click:function(t){return e.fertig()}}},[e._v(" Schließen "),e.showSaveSpinner&&e.lastBottomButtonAction===e.ACTION_FINISH?n("AnimatedSpinner"):e._e()],1):e._e()]}))],2)])]},proxy:!0}],null,!0)}),n("BaseModal",{ref:"editModal",attrs:{modalTitle:e.editModalTitle,size:"lg",showCancelButton:!1,actions:e.baseModalActions,showConfirmButton:!1,autoCloseOnRouteNavigation:!1,backNavigationOnClose:e.backNavigationOnClose},on:{onCloseButton:function(t){return e.onCloseEditModal()},"action-WEITER":function(t){return e.nextStep()},"action-ZURUCK":function(t){return e.backStep()},action:e.emitAction}},[e.loadingStep?e._e():n("div",{staticClass:"modal__container"},[n("div",{staticClass:"row my-0 template-middle",class:[e.stepperClass,e.stepType]},[n("div",{staticClass:"col-12 template-content",class:[e.stepperClass,e.getTemplateContentClass()]},[e._t("contentTemplate",null,{data:e.currentStep,currentSubstep:e.currentSubstep}),e.$slots.footerTemplate?n("div",{staticClass:"template-bottom"},[e._t("footerTemplate")],2):e._e()],2),e.hasSidetextTemplate?n("div",{staticClass:"col-md-3 col-12",class:[e.getSideTextClass()]},[e._t("sidetextTemplate")],2):e._e()])])])],1):e._e()},i=[],s=n("1da1"),o=n("2909"),r=n("5530"),l=(n("96cf"),n("4de4"),n("fb6a"),n("c740"),n("99af"),n("a15b"),n("7db0"),n("04bc")),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"rail"},[e._l(e.getTotalProgressArray(),(function(t,a){return[n("div",{key:a,class:["step",e.isShowProgress(t)?"step-progress":"",e.isShowEmpty(t)?"step-empty":"",e.isShowWarning(t)?"step-warning":""],on:{click:function(n){e.$emit("click",{stepKey:e.step.stepKey,substepKey:e.getSubstepKey(a),index:t})}}})]}))],2)},d=[],u=(n("d81d"),n("cb29"),n("9911"),{props:{step:{type:Object,default:function(){}},currentStep:{type:Object,default:function(){return{}}}},mounted:function(){},computed:{},methods:{isActive:function(e){return this.currentStep&&this.currentStep.step.stepKey===e},getTotalProgressArray:function(){return Array(this.step.totalProgress).fill(0).map((function(e,t){return t}))},onClickStep:function(e){this.step&&this.step.alreadyVisitedStep&&this.step.substeps&&this.step.substeps[e]&&(this.step.substeps[e].actionFunc&&this.step.substeps[e].actionFunc(),this.step.substeps[e].link&&this.router.navigate([this.step.substeps[e].link]))},getVisibleSubsteps:function(){return this.step&&this.step.substeps&&this.step.substeps.length&&this.step&&this.step.substeps&&this.step.substeps.filter((function(e){return!e.hidden}))||[]},getSubstepKey:function(e){var t=this.getVisibleSubsteps();return t.length>e?t[e].substepKey:""},isShowProgress:function(e){var t=!0,n=this.getVisibleSubsteps();return n.length>e&&n[e]&&(t=!n[e].warning),this.step.current?t&&this.step.currentProgress>e:this.step.before?t:void 0},isShowWarning:function(e){var t=!1,n=this.getVisibleSubsteps();return n.length>e&&n[e]&&(t=n[e].warning),this.step.current?t&&this.step.currentProgress>e:this.step.before?t:void 0},isShowEmpty:function(e){return this.step.current?this.step.currentProgress<=e:!!this.step.after||!this.step.before}}}),p=u,h=(n("f605"),n("2877")),f=Object(h["a"])(p,c,d,!1,null,"f8102502",null),m=f.exports,b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container",on:{click:function(t){return e.$emit("click",e.step.stepkey)}}},[n("span",{staticClass:"stop-content clickable",class:[e.step.current&&"stop-content__current"]},[e.step.loading?[n("svg",{staticClass:"stop-loading",style:{"animation-delay":100*e.index+"ms"},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"}},[n("circle",{staticClass:"stop-loading__circle",style:{"animation-delay":100*e.index+"ms"},attrs:{cx:"26",cy:"26",r:"18","stroke-width":"6","stroke-dasharray":"86",fill:"none"}})]),n("div",{staticClass:"stop-loading-small"})]:[e.step.success?[n("svg",{staticClass:"stop-checkmark",style:{"animation-delay":100*e.index+"ms"},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 52 52"}},[n("circle",{staticClass:"stop-checkmark__circle",style:{"animation-delay":100*e.index+"ms"},attrs:{cx:"26",cy:"26",r:"25",fill:"none"}}),n("path",{staticClass:"stop-checkmark__content",style:{"animation-delay":100*e.index+"ms"},attrs:{fill:"none","stroke-width":"5",d:"M14.1 27.2l7.1 7.2 16.7-16.8"}})]),n("div",{staticClass:"stop-checkmark-small"})]:e._e(),e.step.warning?[n("svg",{staticClass:"stop-exclamation-mark",style:{"animation-delay":100*e.index+"ms"},attrs:{viewBox:"0 0 52 52",xmlns:"http://www.w3.org/2000/svg"}},[n("circle",{staticClass:"stop-exclamation-mark__circle",style:{"animation-delay":100*e.index+"ms"},attrs:{cx:"26",cy:"26",r:"25",fill:"none"}}),n("path",{staticClass:"stop-exclamation-mark__content",style:{"animation-delay":100*e.index+"ms"},attrs:{fill:"none",d:"m28.836 39.219q0 1.1484-0.82031 1.9922-0.79688 0.84375-2.0156 0.84375t-2.0391-0.84375q-0.79688-0.84375-0.79688-1.9922 0-1.1953 0.82031-2.0156 0.82031-0.82031 2.0156-0.82031 1.1953 0 2.0156 0.82031 0.82031 0.82031 0.82031 2.0156zm-5.3906-29.273h5.1094l-1.4531 22.312h-2.2031z"}})]),n("div",{staticClass:"stop-exclamation-mark-small"})]:e._e()]],2),n("div",{class:["stop-label clickable",e.first&&"stop-label--left",!e.first&&!e.last&&"class.stop-label--center",e.last&&"class.stop-label--right",e.step.current&&"class.stop-label__current"]},[e._v(e._s(e.step.label))])])},v=[],g=(n("a9e3"),{props:{step:{type:Object,default:function(){}},first:{type:Boolean,default:!1},last:{type:Boolean,default:!1},index:{type:Number,default:0},currentStep:{type:Object,default:function(){return{}}}},mounted:function(){},computed:{},methods:{isActive:function(e){return this.currentStep&&this.currentStep.step.stepKey===e}}}),E=g,_=(n("6bb9"),Object(h["a"])(E,b,v,!1,null,"44a6ff20",null)),S=_.exports,T=n("6301"),y=n("066f"),x=n("50ca"),k=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vertical-stepper",class:{"vertical-stepper--collapsed":e.collapsed,"vertical-stepper--collapsable":e.showCollapse}},[e.showCollapse?n("div",{staticClass:"vertical-stepper--collapse-toggle__container"},[n("button",{staticClass:"vertical-stepper--collapse-toggle btn-clear clickable",attrs:{type:"button"},on:{click:function(t){return e.toggleCollapse()}}},[n("PhCaretLeft",{attrs:{size:24}})],1)]):e._e(),n("div",{staticClass:"vertical-stepper--items"},[n("div",{staticClass:"vertical-stepper--items__wrap"},[e.stepsComputed&&e.stepsComputed.length?[n("SortableList",{attrs:{items:e.stepsComputed},on:{orderChanged:function(t){return e.onOrderChanged(t)}}},[n("ul",{staticClass:"list-bordered",attrs:{"data-sortable-container":""}},e._l(e.stepsComputed,(function(t){return n("li",{key:t.stepKey,staticClass:"vertical-stepper--item",attrs:{"data-sortable-item":""}},[n("div",{staticStyle:{display:"flex"}},[n("DynamicVerticalStepItem",{staticClass:"mr-2",attrs:{step:t,stepType:e.stepType,isCurrent:e.selectedStepKey===t.stepKey,showSaveSpinner:e.showSaveSpinner&&e.stepClicked===t.stepKey,collapsed:e.collapsed},on:{click:function(n){return e.onClickStop(t.stepKey)}}}),e.collapsed?e._e():n("div",{staticClass:"vertical-step__action-container ml-2"},[n("ph-copy",{staticClass:"color-info vertical-stop__action mr-1 clickable",attrs:{weight:"fill",size:22},on:{click:function(n){return e.copyStep(t)}}}),n("ph-x",{staticClass:"color-danger vertical-stop__action mr-1 ml-1 clickable",attrs:{weight:"fill",size:22},on:{click:function(n){return e.removeStep(t)}}}),n("ph-list",{staticClass:"vertical-stop__action ml-1 clickable",attrs:{"data-sortable-item-handler":"",weight:"fill",size:22}})],1)],1),e._l(e.getSubsteps(t),(function(a,i){return n("VerticalSubstepItem",{key:i+e.lastUpdated,attrs:{isCurrent:e.selectedSubstepKey===a.substepKey,substep:a,collapsed:e.collapsed},on:{click:function(n){return e.onClickSubstep(t.stepKey,a.substepKey)}}})}))],2)})),0)])]:n("GhostLoading",{attrs:{type:"block",config:{block:{height:24}},repeat:1}}),e.collapsed?e._e():n("div",{staticClass:"vertical-step__icon-container clickable",staticStyle:{"font-size":"30px","background-color":"lightgrey"},on:{click:function(t){return e.addStep()}}},[n("ph-plus")],1)],2)])])},A=[],I=n("c0a4"),C=n("c1a1"),w=n("6eb5"),O=n("2ab8"),D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-item__container clickable",class:{"stepper-item--selected":e.isCurrent},staticStyle:{width:"100%"},attrs:{tid:e._generateTidFromString(e.step.label)},on:{click:function(t){return e.$emit("click",t)},mouseover:function(t){return e.handleMouseOver(t)},mouseleave:function(t){return e.handleMouseLeave(t)}}},[n("div",{staticClass:"stepper-item__icon"},[n("VerticalStepIcon",{attrs:{stepperStatus:e.stepperStatus,isCurrent:e.isCurrent,collapsed:e.collapsed}})],1),n("span",{staticClass:"vertical-stop__label",class:{"vertical-stop__label--selected":e.isCurrent}},[n("span",{domProps:{innerHTML:e._s(e.sanitize(e.step.label))}}),e._v(" "),e.showSaveSpinner?n("AnimatedSpinner"):e._e()],1)])},N=[],M=n("e029"),R=n("2042"),P=n("6bcb"),B=n("b967"),U=n("b20b"),L={mixins:[M["a"],B["a"]],props:{step:{},showSaveSpinner:{type:Boolean,default:!1},isCurrent:{type:Boolean,default:!1},stepType:{type:String,default:"step"},collapsed:{type:Boolean,default:!1}},computed:{stepperStatus:function(){return"tab"===this.stepType?this.step.warning?"warning":"default":this.step.warning?"warning":this.step.success?"success":"default"}},methods:{sanitize:function(e){return Object(U["b"])(e)}},components:{AnimatedSpinner:R["a"],VerticalStepIcon:P["a"]}},j=L,z=(n("a263"),Object(h["a"])(j,D,N,!1,null,"bbf160a0",null)),$=z.exports,F=n("4035"),G=n("1fe6"),K={components:{DynamicVerticalStepItem:$,PhCaretLeft:I["PhCaretLeft"],PhPlus:I["PhPlus"],GhostLoading:w["a"],Block:O["a"],VerticalStepIcon:P["a"],PhX:I["PhX"],VerticalSubstepItem:F["a"],SortableList:G["a"],PhList:I["PhList"],PhCopy:I["PhCopy"]},props:{currentStep:{type:Object,default:function(){return{}}},stepperName:{type:String,default:""},stepType:{type:String,default:"step"},selectedStepKey:{type:String,default:""},selectedSubstepKey:{type:String,default:""},visible:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},stepperService:{default:function(){return null}},antragData:{},showSaveSpinner:{type:Boolean,default:!1},showCollapse:{type:Boolean,default:!1}},watch:{selectedStepKey:function(e){this.progress(e),this.updateStepList()},showSaveSpinner:function(e){e||(this.stepClicked=null)},stepperService:function(){var e=this.selectedStepKey;e&&this.progress(e),this.updateStepList()},"stepperService.stepListSource":{handler:function(){this.updateStepList()}},collapsed:{handler:function(e){this.$emit("collapsed",e)},immediate:!0}},data:function(){return{stepsComputed:null,lastUpdated:Date.now(),stepClicked:null,collapsed:!1}},methods:{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:[{}]},onClickStop:function(e){this.disabled||(this.$emit("setStep",e),this.progress(e),this.stepClicked=e)},onClickSubstep:function(e,t){t&&!this.disabled&&(this.$emit("setSubstep",{stepKey:e,substepKey:t}),this.progress(e,t),this.stepClicked=e)},progress:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.stepperService&&(this.stepperService.progress(e,t,"fixed"===this.stepType),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})}},updateStepList:function(){var e=this.stepperService.getCurrentStepList(),t=Object(C["e"])(e,this.antragData);this.stepsComputed=t,this.lastUpdated=Date.now()},toggleCollapse:function(){this.collapsed=!this.collapsed},copyStep:function(e){this.$emit("copyStep",e)},removeStep:function(e){this.$emit("removeStep",e)},addStep:function(){this.$emit("addStep")},onOrderChanged:function(e){this.$emit("orderChanged",e)}},mounted:function(){this.updateStepList()},beforeDestroy:function(){this.collapsed=!1}},H=K,V=(n("7cd0"),n("a947"),Object(h["a"])(H,k,A,!1,null,"0b306da5",null)),W=V.exports,Y=n("4e17"),Z=n("64c5"),X=n("8767"),q=n("2f62"),J=n("a871"),Q=n("2810"),ee=n("2684"),te="next",ne="prev",ae="finish",ie={props:{stepperName:{type:String,default:"default"},stepperClass:{type:String,default:""},stepType:{type:String,default:"step"},showStepper:{type:Boolean,default:!0},stepperMediator:{default:function(){return null}},hasFertig:{type:Boolean,default:!0},selectedStepKey:{type:String,default:""},selectedSubstepKey:{type:String,default:""},showVerticalStepper:{type:Boolean,default:!0},showSaveSpinner:{type:Boolean,default:!1},isDynamicDocument:{type:Boolean,default:!1},hideNavigationButtons:{type:Boolean,default:!1},additionalActionsForMobile:{type:Array,default:function(){return[]}},backNavigationOnClose:{type:Boolean,default:!1},ignoreOpenModalOnMount:{type:Boolean,default:!1}},data:function(){return{currentStep:{},currentSubstep:{},stepperCollapsed:!1,lastBottomButtonAction:"",ACTION_NEXT:te,ACTION_PREV:ne,ACTION_FINISH:ae,loadingStep:!1}},computed:Object(r["a"])(Object(r["a"])({},Object(q["b"])({isSmallScreen:Z["default"].GETTERS.IS_SMALL_SCREEN,shouldReopenAppModal:X["default"].GETTERS.SHOULD_REOPEN_APP_MODAL,isMobileNativeContext:ee["default"].GETTERS.IS_MOBILE_NATIVE_CONTEXT,screenSize:Z["default"].GETTERS.SCREEN_WIDTH})),{},{editModalTitle:function(){var e,t;return(null===(e=this.currentSubstep)||void 0===e?void 0:e.label)||(null===(t=this.currentStep)||void 0===t?void 0:t.label)||""},isSmallOrMediumScreen:function(){return this.isSmallScreen||this.isMediumScreen},isMediumScreen:function(){return"md"===this.screenSize},currentStepKey:function(){var e;return null===(e=this.currentStep)||void 0===e?void 0:e.stepKey},currentSubstepKey:function(){var e;return null===(e=this.currentSubstep)||void 0===e?void 0:e.substepKey},hasSidetextTemplate:function(){return!!this.$slots.sidetextTemplate},zuruckEnabled:function(){var e=this.stepperMediator.getCurrentStepIndex(this.currentStepKey);return e>0},zuruckEnabledSubsteps:function(){var e,t;if(null===(e=this.currentStep)||void 0===e||null===(t=e.substeps)||void 0===t||!t.length)return!1;var n=this.stepperMediator.getCurrentSubStepIndex(this.currentStepKey,this.currentSubstepKey);return n>0},weiterEnabled:function(){var e=this.stepperMediator.getCurrentStepIndex(this.currentStepKey),t=this.stepperMediator.getCurrentStepList().slice(e+1).filter((function(e){return!e.hidden})).length;return t>0},weiterEnabledSubsteps:function(){var e,t=this,n=this.currentStep;if(null===n||void 0===n||null===(e=n.substeps)||void 0===e||!e.length)return!1;var a=n.substeps.findIndex((function(e){return e.substepKey===t.currentSubstepKey})),i=n.substeps.slice(a+1).filter((function(e){return!e.hidden})).length;return i>0},isLastStep:function(){var e=this.stepperMediator.getLastStep();return(null===e||void 0===e?void 0:e.stepKey)===this.currentStepKey},baseModalActions:function(){var e=this,t=!this.hideNavigationButtons,n=[Object(Q["c"])("WEITER","Weiter").withPrimary((function(){return!0})).withVisible((function(){return t&&(e.weiterEnabled||e.weiterEnabledSubsteps)})),Object(Q["c"])("ZURUCK","Zurück").withPrimary((function(){return!1})).withVisible((function(){return t&&(e.zuruckEnabled||e.zuruckEnabledSubsteps)}))];return[].concat(n,Object(o["a"])(this.additionalActionsForMobile))}}),watch:{"stepperMediator.stepListSource":{handler:function(e){e.length>0&&this.setStepObj({stepKey:this.selectedStepKey,substepKey:this.selectedSubstepKey},!1)},immediate:!0},selectedStepKey:{handler:function(e){this.currentStepKey!==e&&this.setStepObj({stepKey:e,substepKey:this.selectedSubstepKey},!1)},immediate:!0},selectedSubstepKey:{handler:function(e){this.currentSubstepKey!==e&&this.setSubstep({stepKey:this.selectedStepKey,substepKey:e},!1)},immediate:!0},steps:function(){this.currentStepKey!==this.selectedStepKey&&this.setStepObj({stepKey:this.selectedStepKey,substepKey:this.selectedSubstepKey},!1)},showSaveSpinner:function(e){e||(this.lastBottomButtonAction="")}},methods:{getSideTextClass:function(){return"template-sidetext "+this.stepperClass},openEditModal:function(){this.$refs.editModal.isOpen||this.$refs.editModal.open()},getTemplateContentClass:function(){var e=[];return this.hasSidetextTemplate&&e.push("col-md-9"),e.join(" ")},setStepOnMobile:function(e){var t=this;return Object(s["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,!0);case 2:case"end":return n.stop()}}),n)})))()},setSubstepOnMobile:function(e){this.setSubstep(e,!0),this.displayEditModal()},displayEditModal:function(){this.isSmallOrMediumScreen&&(this.shouldReopenAppModal?this.openEditModal():this.$store.commit(X["default"].MUTATIONS.SET_SHOULD_REOPEN_APP_MODAL,{shouldReopenAppModal:!0}))},setStep:function(e){var t=arguments,n=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return i=!(t.length>1&&void 0!==t[1])||t[1],a.next=3,n.setStepObj({stepKey:e},i);case 3:case"end":return a.stop()}}),a)})))()},setStepObj:function(e){var t=arguments,n=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){var i;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:i=!(t.length>1&&void 0!==t[1])||t[1],i?(n.$emit("set-step",null===e||void 0===e?void 0:e.stepKey),n.displayEditModal()):(n.setStepByKey(null===e||void 0===e?void 0:e.stepKey),n.setSubstepByKey(null===e||void 0===e?void 0:e.stepKey,null===e||void 0===e?void 0:e.substepKey));case 2:case"end":return a.stop()}}),a)})))()},setSubstep:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t?(this.$emit("set-substep",e),this.isSmallOrMediumScreen&&this.$store.commit(X["default"].MUTATIONS.SET_SHOULD_REOPEN_APP_MODAL,{shouldReopenAppModal:!0})):(this.setStepByKey(null===e||void 0===e?void 0:e.stepKey),this.setSubstepByKey(null===e||void 0===e?void 0:e.stepKey,null===e||void 0===e?void 0:e.substepKey)),this.isSmallOrMediumScreen&&this.$store.commit(X["default"].MUTATIONS.SET_SHOULD_REOPEN_APP_MODAL,{shouldReopenAppModal:!0})},setStepByKey:function(e){var t=this.stepperMediator.getCurrentStep(e);t&&(this.currentStep=Object(r["a"])({},t))},setSubstepByKey:function(e,t){var n;this.currentSubstep={};var a=this.stepperMediator.getCurrentStep(e);if(null!==a&&void 0!==a&&null!==(n=a.substeps)&&void 0!==n&&n.length){var i=t&&a.substeps.find((function(e){return e.substepKey===t}))||a.substeps[0];i&&(this.currentSubstep={stepKey:null===a||void 0===a?void 0:a.stepKey,substepKey:null===i||void 0===i?void 0:i.substepKey})}},nextStep:function(){this.lastBottomButtonAction=te;var e=this.stepperMediator.getNextSubstep(this.currentStepKey,this.currentSubstepKey);if(e){var t=this.stepperMediator.getCurrentSubStepIndex(null===e||void 0===e?void 0:e.stepKey,null===e||void 0===e?void 0:e.substepKey);null!==e&&void 0!==e&&e.substepKey&&t>=0?this.setSubstep(e):this.setStep(null===e||void 0===e?void 0:e.stepKey),this.$emit("next-step",e)}},backStep:function(){this.lastBottomButtonAction=ne;var e=this.stepperMediator.getPreviousSubstep(this.currentStepKey,this.currentSubstepKey);if(e){var t=this.stepperMediator.getCurrentSubStepIndex(null===e||void 0===e?void 0:e.stepKey,null===e||void 0===e?void 0:e.substepKey);null!==e&&void 0!==e&&e.substepKey&&t>=0?this.setSubstep(e):this.setStep(null===e||void 0===e?void 0:e.stepKey),this.$emit("previous-step",e)}},emitAction:function(e){this.$emit("handleOtherActions",e)},fertig:function(){this.lastBottomButtonAction=ae,this.$emit("on-fertig")},setStepHidden:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.stepperMediator.setStepHidden(e,t),this.updateStepper()},updateStepper:function(){var e;null===(e=this.$refs.stepper)||void 0===e||e.updateStepList()},setSubstepHidden:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.stepperMediator.setSubstepHidden(e,t,n)},removeStep:function(e){this.$emit("removeStep",e)},addStep:function(){this.$emit("addStep")},onCloseEditModal:function(){this.showingEditModal=!1,this.backNavigationOnClose&&this.$goToLastPage()}},components:{BaseButton:l["default"],Step:m,Stop:S,Stepper2:T["a"],Stepper3:y["a"],VerticalStepper:x["a"],ContentWithStepper:Y["a"],AnimatedSpinner:R["a"],DynamicVerticalStepper:W,BaseModal:J["a"]},mounted:function(){this.isSmallOrMediumScreen&&this.shouldReopenAppModal&&!this.ignoreOpenModalOnMount&&this.openEditModal()}},se=ie,oe=(n("c270"),Object(h["a"])(se,a,i,!1,null,"6633bc2d",null));t["a"]=oe.exports},6301: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"},["step"===e.stepType&&"tab"!==e.stepType?[n("div",{staticClass:"layout__negative-margin--8 color-text"},[n("BaseCollapsable",{staticClass:"mt-1 mb-1",scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticClass:"stepper-liner-sm"},e._l(e.stepsComputed,(function(t,a){return n("div",{key:"nav"+a+e.lastUpdated},[n("div",{staticClass:"stepper-item__icon",on:{click:function(n){return e.onClickStop(t.stepKey)}}},[n("VerticalStepIcon",{staticClass:"clickable",attrs:{stepperStatus:e.stepperStatus(t),isCurrent:e.selectedStepKey==t.stepKey,collapsed:!0}})],1)])})),0)]},proxy:!0},{key:"content",fn:function(){return[n("div",{staticClass:"antrag-sidetext__container mt-8px"},[n("div",{staticClass:"layout__negative-margin--8 color-text"},e._l(e.stepsComputed,(function(t,a){return n("div",{key:"nav"+a+e.lastUpdated},[n("div",{class:["clickable",{"font-bold":e.selectedStepKey==t.stepKey},{"substep-sm":e.isMobileNativeContext}],domProps:{innerHTML:e._s(e.sanitize(t.label))},on:{click:function(n){return e.onClickStop(t.stepKey)}}}),e.getSubsteps(t)[0].substepKey?e._l(e.getSubsteps(t),(function(i,s){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.showLastSubstep(a,t)&&!i.hidden,expression:"showLastSubstep(index, step) && !substep.hidden"}],key:"sub"+s+e.lastUpdated,class:["clickable pl-3",{"font-bold":e.selectedSubstepKey==i.substepKey},{"substep-sm":e.isMobileNativeContext}],domProps:{innerHTML:e._s(e.sanitize(i.title))},on:{click:function(n){return e.onClickSubstep(t.stepKey,i.substepKey)}}})})):e._e()],2)})),0)])]},proxy:!0}],null,!1,629485609)})],1)]:e._e(),"tab"===e.stepType?n("div",{staticClass:"stepper-container stepper-container-tab"},[n("ul",{staticClass:"nav nav-tabs tabs-line d-none d-sm-flex pl-0"},[e._l(e.stepsComputed,(function(t,a){return[n("li",{key:"nav"+a+e.lastUpdated,class:["nav-item",t.current&&"active"]},[n("a",{staticClass:"nav-link",class:[t.current&&"active"],attrs:{"data-toggle":"tab"},on:{click:function(n){return e.onClickStop(t.stepKey)}}},[e._v(e._s(t.label))])])]}))],2),n("div",{staticClass:"nav nav-tabs tabs-line d-sm-none"},[e._l(e.stepsComputed,(function(t,a){return[n("li",{key:"nav"+a+e.lastUpdated,class:["nav-item",t.current&&"active"]},[n("a",{staticClass:"nav-link",class:[t.current&&"active"],attrs:{"data-toggle":"tab"},on:{click:function(n){return e.onClickStop(t.stepKey)}}},[e._v(e._s(t.label))])])]}))],2)]):e._e()],2):e._e()])},i=[],s=n("5530"),o=(n("7db0"),n("c740"),n("99af"),n("9911"),n("bb48")),r=n("c0a4"),l=n("c1a1"),c=n("5c70"),d=n("b20b"),u=n("6bcb"),p=n("e029"),h=n("e008"),f=n("2f62"),m=n("2684"),b={mixins:[p["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(s["a"])(Object(s["a"])({},Object(f["b"])({isMobileNativeContext:m["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(d["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()}},onClickStop:function(e){this.disabled||(this.$emit("setStep",e),this.progress(e))},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){return e.warning?"warning":e.success?"success":"default"}},components:{BaseDropdownMenu:o["a"],PhCaretDown:r["PhCaretDown"],DoughnutProgress:c["a"],VerticalStepIcon:u["a"],BaseCollapsable:h["a"]}},v=b,g=(n("9ce7"),n("2877")),E=Object(g["a"])(v,a,i,!1,null,"bef2afe0",null);t["a"]=E.exports},"6315d":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".w-100[data-v-445f2461]{width:100%}.d-flex .grow-1[data-v-445f2461]:last-child{padding-right:0}.grow-1[data-v-445f2461]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding-right:.5em}.participants-input[data-v-445f2461]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.no-label[data-v-445f2461]{padding:1.5rem 0 0 1rem;min-width:40px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer}.table-container[data-v-445f2461]{margin-bottom:16px}.participants-actions[data-v-445f2461]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:.2rem}.participants-actions div[data-v-445f2461]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem}.text-danger[data-v-445f2461]{color:var(--color-danger)}.dropdown-content[data-v-445f2461]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.dropdown-content[data-v-445f2461],.label-content[data-v-445f2461]{display:-webkit-box;display:-ms-flexbox;display:flex}.label-content[data-v-445f2461]{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-line-pack:stretch;align-content:stretch}.mt-4[data-v-445f2461]{margin-top:4rem}",""]),e.exports=t},"66fd":function(e,t,n){var a=n("5948");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("57d5d830",a,!0,{sourceMap:!1,shadowMode:!1})},6870:function(e,t,n){var a=n("6315d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("e1f5e506",a,!0,{sourceMap:!1,shadowMode:!1})},"68d6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BaseModal",{ref:"prohypDocumentsModal",attrs:{modalTitle:"Prohyp-Dokument Auswählen",labelButtonConfirm:"Übernehmen",confirmDisabled:!e.selectedRow,confirmLoading:e.confirmLoading,autoClose:!1,size:"xl"},on:{onConfirmButton:e.uploadProhypDocument}},[e.loading?n("GhostLoading",{attrs:{type:"table"}}):n("Table",{attrs:{headers:e.headers,rows:e.rows,rowsPerPage:10},on:{"action-CONFIRM":function(t){return e.$emit("confirm",t)}},scopedSlots:e._u([{key:"selected",fn:function(t){return[n("InputRadioBoxItem",{attrs:{name:"selectFonds"},on:{change:function(n){e.selectedRow=t}}})]}}])})],1)],1)},i=[],s=n("5530"),o=(n("a9e3"),n("d81d"),n("d3b7"),n("e6cf"),n("a79d"),n("2f62")),r=n("0169"),l=n("689f"),c=n("d53f"),d=n("a871"),u=n("6eb5"),p=n("1f4d"),h={components:{Table:l["a"],BaseModal:d["a"],GhostLoading:u["a"],InputRadioBoxItem:p["a"]},props:{nodeId:{type:[String,Number],default:null},documentId:{type:String,default:""}},data:function(){return{fileId:null,loading:!1,confirmLoading:!1,selectedRow:null}},computed:Object(s["a"])(Object(s["a"])({},Object(o["b"])({prohypDocuments:r["default"].GETTERS.PROHYP_DOCUMENTS})),{},{headers:function(){var e={lockedLeft:[Object(c["SlotColumn"])("selected","")],center:[Object(c["TextColumn"])("name","Name"),Object(c["DateColumn"])("receptionDate","Erstellt am"),Object(c["TextColumn"])("categoryInstance","Kategorie"),Object(c["IconColumn"])("completeIcon","Abgeschlossen"),Object(c["TextColumn"])("order","Reihenfolge"),Object(c["IconColumn"])("irrelevantIcon","Irrelevant"),Object(c["TextColumn"])("documentId","DocumentId"),Object(c["TextColumn"])("note","Bezeichnung"),Object(c["TextColumn"])("weight","Wichtigkeit")],lockedRight:[]};return e},rows:function(){return this.prohypDocuments.map((function(e){return Object(s["a"])(Object(s["a"])({},e),{},{completeIcon:e.complete?[Object(c["Icon"])("PhCheck",null,16,"bold","color-success")]:[Object(c["Icon"])("PhX",null,16,"bold","color-danger")],irrelevantIcon:e.irrelevant?[Object(c["Icon"])("PhCheck",null,16,"bold","color-success")]:[Object(c["Icon"])("PhX",null,16,"bold","color-danger")]})}))}}),methods:{open:function(e){this.fileId=e,this.loadProhypDocuments(e),this.$refs.prohypDocumentsModal.open()},loadProhypDocuments:function(e){var t=this;this.loading=!0,this.$store.dispatch(r["default"].ACTIONS.GET_PROHYP_DOCUMENTS,{fileId:e,nodeId:this.nodeId,documentId:this.documentId}).finally((function(){return t.loading=!1}))},uploadProhypDocument:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.selectedRow;this.confirmLoading=!0,this.$store.dispatch(r["default"].ACTIONS.EXECUTE_PROHYP_UPLOAD,{ehypForDocumentId:t.documentId,fileId:this.fileId,nodeId:this.nodeId,documentId:this.documentId}).then((function(){e.selectedRow=null,e.fileId=null,e.$refs.prohypDocumentsModal.close(),e.$emit("selectionDone")})).finally((function(){return e.confirmLoading=!1}))}}},f=h,m=n("2877"),b=Object(m["a"])(f,a,i,!1,null,null,null);t["a"]=b.exports},"6a5f":function(e,t,n){"use strict";n("9dde")},"6a99":function(e,t,n){"use strict";n("6bf8")},"6bb9":function(e,t,n){"use strict";n("fbc0")},"6bf8":function(e,t,n){var a=n("cd4c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("4a6d6a23",a,!0,{sourceMap:!1,shadowMode:!1})},"6d53":function(e,t,n){"use strict";n("35df")},7200:function(e,t,n){"use strict";n("ca1f")},7305:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[n("div",[e.sprod.id&&e.isIntern?n("InputField",{attrs:{label:"Interne Nummer",disabled:!0,isComponentHalfSize:!0},model:{value:e.sprod.id,callback:function(t){e.$set(e.sprod,"id",t)},expression:"sprod.id"}}):e._e(),e.isImmobilie?e._e():[n("InputToggleSwitch",{attrs:{label:"Fremdanlage",inLineLabel:!0,disabled:!e.isIntern},on:{input:function(t){return e.dataChanged()}},model:{value:e.sprod.fremdanlage,callback:function(t){e.$set(e.sprod,"fremdanlage",t)},expression:"sprod.fremdanlage"}}),n("InputToggleSwitch",{attrs:{label:"Automatisch aktualisieren",inLineLabel:!0,disabled:!e.isIntern},on:{input:function(t){return e.dataChanged()}},model:{value:e.sprod.autoupdate,callback:function(t){e.$set(e.sprod,"autoupdate",t)},expression:"sprod.autoupdate"}})],e.isFA&&e.isByPass?[n("InputToggleSwitch",{attrs:{label:"Betreuerwechsel",inLineLabel:!0,disabled:!e.isEditable},on:{input:function(t){return e.dataChanged()}},model:{value:e.sprod.betreuerwechsel,callback:function(t){e.$set(e.sprod,"betreuerwechsel",t)},expression:"sprod.betreuerwechsel"}})]:e._e(),n("ComboBox",{attrs:{label:"Produktart",isComponentHalfSize:!0,firstEmpty:!e.sprod.produktart,values:e.combos.prokuktArt,validateUntouched:!0,disabled:!e.isEditable},on:{change:function(t){e.dataChangedCombo("produktart",t),e.clearFreieEingabeProduktartIfNeeded(t)}},model:{value:e.sprod.produktart,callback:function(t){e.$set(e.sprod,"produktart",t)},expression:"sprod.produktart"}}),e.isProduktartFreieEingabe?[n("InputField",{attrs:{isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.freieEingabeProduktart,callback:function(t){e.$set(e.sprod,"freieEingabeProduktart",t)},expression:"sprod.freieEingabeProduktart"}})]:e._e(),e.isImmobilie?n("div",{staticClass:"mb-3"},[n("ComboBox",{attrs:{label:"Nutzung",isComponentHalfSize:!0,firstEmpty:!0,values:e.combos.nutzung,disabled:!e.isEditable},on:{change:function(t){return e.dataChangedCombo("nutzung",t)}},model:{value:e.sprod.nutzung,callback:function(t){e.$set(e.sprod,"nutzung",t)},expression:"sprod.nutzung"}}),n("InputField",{attrs:{label:"QM Wohnfläche gesamt",type:"number",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.wohnflaeche,callback:function(t){e.$set(e.sprod,"wohnflaeche",t)},expression:"sprod.wohnflaeche"}}),e.isNutzungMischnutzung?[n("InputField",{attrs:{label:"QM Wohnfläche Eigennutzung",type:"number",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.wohnflaecheEigennutzung,callback:function(t){e.$set(e.sprod,"wohnflaecheEigennutzung",t)},expression:"sprod.wohnflaecheEigennutzung"}}),n("InputField",{attrs:{label:"QM Wohnfläche Fremdnutzung",type:"number",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.wohnflaecheFremdnutzung,callback:function(t){e.$set(e.sprod,"wohnflaecheFremdnutzung",t)},expression:"sprod.wohnflaecheFremdnutzung"}})]:e._e(),n("ComboBox",{attrs:{label:"Gebäudetyp",isComponentHalfSize:!0,values:e.combos.gebaudeTyp,disabled:!e.isEditable},on:{change:function(t){return e.dataChangedCombo("gebaeudetyp",t)}},model:{value:e.sprod.gebaeudetyp,callback:function(t){e.$set(e.sprod,"gebaeudetyp",t)},expression:"sprod.gebaeudetyp"}}),n("DatePickerField",{attrs:{isValueAsString:"",label:"Anschaffungsdatum",isComponentHalfSize:!0,disabled:!e.isEditable},on:{input:function(t){return e.dataChanged()}},model:{value:e.sprod.begin,callback:function(t){e.$set(e.sprod,"begin",t)},expression:"sprod.begin"}}),n("InputField",{attrs:{label:"Kaufpreis",type:"currency",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.bezugssumme,callback:function(t){e.$set(e.sprod,"bezugssumme",t)},expression:"sprod.bezugssumme"}}),n("InputField",{attrs:{label:"akt. Verkehrswert",type:"currency",isComponentHalfSize:!0,disabled:!0},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.aktWert,callback:function(t){e.$set(e.sprod,"aktWert",t)},expression:"sprod.aktWert"}}),n("InputField",{attrs:{label:"Mietkosten pro Monat",type:"currency",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.miete,callback:function(t){e.$set(e.sprod,"miete",t)},expression:"sprod.miete"}}),n("InputField",{attrs:{label:"Mieteinnahmen pro Monat",type:"currency",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.einnahmen,callback:function(t){e.$set(e.sprod,"einnahmen",t)},expression:"sprod.einnahmen"}}),n("InputField",{attrs:{label:"Adresse des Objektes",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.adresse1,callback:function(t){e.$set(e.sprod,"adresse1",t)},expression:"sprod.adresse1"}}),n("InputField",{attrs:{label:"",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.adresse2,callback:function(t){e.$set(e.sprod,"adresse2",t)},expression:"sprod.adresse2"}})],2):e.sprod.produktart?n("div",{staticClass:"mb-3"},[n("InputField",{attrs:{label:"Produktbezeichnung",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.produktbez,callback:function(t){e.$set(e.sprod,"produktbez",t)},expression:"sprod.produktbez"}}),n("InputField",{attrs:{label:"Gesellschaft",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.company,callback:function(t){e.$set(e.sprod,"company",t)},expression:"sprod.company"}}),n("InputField",{attrs:{label:"Tarif",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.tarif,callback:function(t){e.$set(e.sprod,"tarif",t)},expression:"sprod.tarif"}}),n("InputField",{attrs:{label:"Produktnummer",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.sprodNr,callback:function(t){e.$set(e.sprod,"sprodNr",t)},expression:"sprod.sprodNr"}}),n("DatePickerField",{attrs:{isValueAsString:"",label:"Beginn",isComponentHalfSize:!0,disabled:!e.isEditable},on:{input:function(t){return e.dataChanged()}},model:{value:e.sprod.begin,callback:function(t){e.$set(e.sprod,"begin",t)},expression:"sprod.begin"}}),n("DatePickerField",{attrs:{isValueAsString:"",label:"Ende",isComponentHalfSize:!0,disabled:!e.isEditable},on:{input:function(t){return e.dataChanged()}},model:{value:e.sprod.ende,callback:function(t){e.$set(e.sprod,"ende",t)},expression:"sprod.ende"}}),n("InputField",{attrs:{type:"currency",label:"aktueller Wert",isComponentHalfSize:!0,disabled:!0},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.aktWert,callback:function(t){e.$set(e.sprod,"aktWert",t)},expression:"sprod.aktWert"}}),n("ComboBox",{attrs:{label:"Zahlrhythmus",isComponentHalfSize:!0,firstEmpty:!0,values:e.combos.zahlrhythmus,disabled:!e.isEditable},on:{change:function(t){return e.dataChangedCombo("zahlrhythm",t)}},model:{value:e.sprod.zahlrhythm,callback:function(t){e.$set(e.sprod,"zahlrhythm",t)},expression:"sprod.zahlrhythm"}}),n("InputField",{attrs:{type:"currency",label:"Sparrate pro Periode",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.beitrag,callback:function(t){e.$set(e.sprod,"beitrag",t)},expression:"sprod.beitrag"}}),n("InputField",{attrs:{type:"currency",label:"Anfangswert/Bezugssumme",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.bezugssumme,callback:function(t){e.$set(e.sprod,"bezugssumme",t)},expression:"sprod.bezugssumme"}})],1):e._e(),e.sprodRights.allowReadSollprovision?n("div",{staticClass:"mb-3"},[n("ComboBox",{attrs:{label:"Provision",isComponentHalfSize:!0,firstEmpty:!0,values:e.provisionValues,disabled:!e.sprodRights.allowModifySollprovision||!e.isEditable},on:{change:function(t){return e.dataChangedCombo("provVorgabe",t)}},model:{value:e.sprod.provVorgabe,callback:function(t){e.$set(e.sprod,"provVorgabe",t)},expression:"sprod.provVorgabe"}}),n("InputField",{attrs:{type:"currency",label:"Sollprovision",isComponentHalfSize:!0,disabled:e.sprod.provVorgabe!==e.PROVISION_MANUELL||!e.sprodRights.allowModifySollprovision||!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.sollprovision,callback:function(t){e.$set(e.sprod,"sollprovision",t)},expression:"sprod.sollprovision"}})],1):e._e(),e.sprodRights.allowReadBearbStatus?n("div",{staticClass:"mb-3"},[n("ComboBox",{attrs:{label:"Bearbeitungsstatus",isComponentHalfSize:!0,values:e.combos.bearbeitungsstatus,disabled:!e.isEditable},on:{change:function(t){return e.dataChangedCombo("bearbeitungsstatus",t)}},model:{value:e.sprod.bearbeitungsstatus,callback:function(t){e.$set(e.sprod,"bearbeitungsstatus",t)},expression:"sprod.bearbeitungsstatus"}}),e.isImmobilie?e._e():n("DatePickerField",{attrs:{isValueAsString:"",label:"Datum Status",isComponentHalfSize:!0,disabled:!e.isEditable},on:{input:function(t){return e.dataChanged()}},model:{value:e.sprod.bearbStatusDate,callback:function(t){e.$set(e.sprod,"bearbStatusDate",t)},expression:"sprod.bearbStatusDate"}}),e.isImmobilie?e._e():n("InputField",{attrs:{label:"Bemerkung Status",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.bearbStatusBem,callback:function(t){e.$set(e.sprod,"bearbStatusBem",t)},expression:"sprod.bearbStatusBem"}}),e.isIntern?n("BaseButton",{attrs:{disabled:e.creatingAppointment},on:{click:function(t){return e.createAppointment()}}},[e._v("Neue Aktivität aus Status")]):e._e()],1):e._e(),n("EntitySelector",{attrs:{label:"Bankverbindung",isComponentHalfSize:!0,values:e.combos.bankingAccounts,disabled:!e.isEditable,validateUntouched:!0},on:{change:function(t){return e.dataChangedCombo("bankingAccount",t)},new:function(t){return e.newBankverbindung()},edit:function(t){return e.editBankverbindung()}},model:{value:e.sprod.bankingAccount,callback:function(t){e.$set(e.sprod,"bankingAccount",t)},expression:"sprod.bankingAccount"}}),n("InputTextArea",{attrs:{label:"Beschreibung / Bemerkung",isComponentHalfSize:!0,disabled:!e.isEditable},on:{change:function(t){return e.dataChanged()}},model:{value:e.sprod.bemerkung,callback:function(t){e.$set(e.sprod,"bemerkung",t)},expression:"sprod.bemerkung"}})],2)])},i=[],s=n("1da1"),o=n("5530"),r=(n("96cf"),n("498a"),n("159b"),n("b64b"),n("4de4"),n("2ca0"),n("c740"),n("2f62")),l=n("64c5"),c=n("a2eb"),d=n("6758"),u=n("c704"),p=n("9aaa"),h=n("9131"),f=n("0054"),m=n("04bc"),b=n("17d64"),v=n("d9f5"),g=n("d3ac"),E=n("6ce5"),_="Freie Eingabe",S="Immobilie",T="Mischnutzung",y=0,x=3,k={mixins:[g["a"]],data:function(){return{PROVISION_MANUELL:x,sprod:{id:null,company:null,sprodNr:null,produktTyp:this.currentType,produktart:null,freieEingabeProduktart:null,tarif:null,eingangZahlungBetreuung:!0,zahlrhythm:null,begin:null,ende:null,beitrag:null,bezugssumme:null,produktbez:null,autoupdate:!0,fremdanlage:!0,aktWert:null,bearbeitungsstatus:null,bearbStatusBem:null,bearbStatusDate:null,bankingAccount:null,antragsNrIntern:null,nutzung:null,wohnflaeche:null,wohnflaecheEigennutzung:null,wohnflaecheFremdnutzung:null,anlageArtenImmobilie:null,gebaeudetyp:null,miete:null,adresse1:null,adresse2:null,betreuerwechsel:null,provVorgabe:null,sollprovision:null,bemerkung:null,einnahmen:null},creatingAppointment:!1}},computed:Object(o["a"])(Object(o["a"])({},Object(r["b"])({currentType:c["default"].GETTERS.CURRENT_TYPE,sprodId:c["default"].GETTERS.SELECTED_SPROD_ID,isNew:c["default"].GETTERS.IS_NEW,combos:c["default"].GETTERS.COMBOS,sprodRights:c["default"].GETTERS.RIGHTS,otherProduct:c["default"].GETTERS.OTHER_PRODUCT,otherProductEdited:c["default"].GETTERS.OTHER_PRODUCT_EDITED,isFA:l["default"].GETTERS.IS_FA,isByPass:l["default"].GETTERS.IS_BYPASS,hasRoles:l["default"].GETTERS.HAS_ROLES})),{},{isIntern:function(){return this.hasRoles([this.VIEW_ROLES.VIEW_CUSTOMER_AS_INTERN])},isImmobilie:function(){var e;return(null===(e=this.sprod)||void 0===e?void 0:e.produktart)===S},isNutzungMischnutzung:function(){var e;return(null===(e=this.sprod)||void 0===e?void 0:e.nutzung)===T},isProduktartFreieEingabe:function(){var e;return this.checkIfProduktartIsFreieEingabe(null===(e=this.sprod)||void 0===e?void 0:e.produktart)},provisionValues:function(){return[{label:"Vorgabe",value:y},{label:"Manuell",value:x}]},isEditable:function(){var e;return(null===(e=this.otherProduct)||void 0===e?void 0:e.allowModify)||this.isNew}}),watch:{otherProduct:function(){this.updateData()},currentType:{handler:function(e){var t;null!==(t=this.sprod)&&void 0!==t&&t.produktTyp||(this.sprod.produktTyp=e)},immediate:!0}},methods:{checkData:function(){var e,t;return!(null===(e=this.sprod)||void 0===e||null===(t=e.produktart)||void 0===t||!t.trim())},save:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch(c["default"].ACTIONS.SAVE_OTHER_PRODUCT);case 2:case"end":return t.stop()}}),t)})))()},updateData:function(){var e,t=this;Object.keys(this.sprod).forEach((function(e){e in t.otherProductEdited?t.sprod[e]=t.otherProductEdited[e]:e in t.otherProduct&&(t.sprod[e]=t.otherProduct[e])})),null!==(e=this.sprod)&&void 0!==e&&e.bankingAccount&&(this.sprod.bankingAccount="".concat(this.sprod.bankingAccount))},isChanged:function(e){var t=this;return Object.keys(e).filter((function(n){return t.otherProduct[n]!==e[n]})).length>0},dataChanged:function(){var e=this.isChanged(this.sprod)?this.sprod:null;if(null!==e||void 0!==e){var t=Object(o["a"])(Object(o["a"])(Object(o["a"])({},this.otherProduct),e),{},{id:this.sprodId});this.$store.commit(c["default"].MUTATIONS.APPEND_OTHER_PRODUCT_EDITED,t)}},dataChangedCombo:function(e,t){this.sprod[e]=t,this.dataChanged()},checkIfProduktartIsFreieEingabe:function(e){return null===e||void 0===e?void 0:e.startsWith(_)},clearFreieEingabeProduktartIfNeeded:function(e){this.checkIfProduktartIsFreieEingabe(e)||(this.sprod.freieEingabeProduktart="",this.dataChanged())},newBankverbindung:function(){var e="person1";this.$store.commit(d["default"].MUTATIONS.UPDATE_SELECTED_CUSTOMER_DATA,e),this.$store.dispatch(d["default"].ACTIONS.GOTO_BANKVERBINDUNG,this.backButtonPayload)},editBankverbindung:function(){var e="person1";this.$store.commit(d["default"].MUTATIONS.UPDATE_SELECTED_CUSTOMER_DATA,e),this.$store.dispatch(d["default"].ACTIONS.GOTO_BANKVERBINDUNG,this.backButtonPayload)},createAppointment:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.creatingAppointment=!0,t.next=3,e.$store.dispatch(c["default"].ACTIONS.CREATE_APPOINTMENT);case 3:e.creatingAppointment=!1;case 4:case"end":return t.stop()}}),t)})))()},setProduktartIfNeeded:function(){this.currentType===S&&(this.sprod.produktart=S)}},mounted:function(){this.updateData(),this.setProduktartIfNeeded()},beforeDestroy:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.checkData()){t.next=3;break}return t.next=3,e.save();case 3:case"end":return t.stop()}}),t)})))()},validators:{sprod:{produktart:[Object(E["s"])()],bankingAccount:[{ruleName:"bankingAccount",getMessage:function(e){return"Die Bankverbindung ist nicht gültig"},isValid:function(e,t){var n,a=null===t||void 0===t||null===(n=t.combos)||void 0===n?void 0:n.bankingAccounts;return!e||!a||-1!=a.findIndex((function(t){return t.value==e}))}}]}},components:{InputField:u["default"],InputToggleSwitch:p["default"],ComboBox:h["default"],DatePickerField:f["default"],BaseButton:m["default"],EntitySelector:b["default"],InputTextArea:v["default"]}},A=k,I=n("2877"),C=Object(I["a"])(A,a,i,!1,null,null,null);t["a"]=C.exports},"73d2b":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".mr-16[data-v-794d0ee4]{margin-right:16px}.fieldset_class[data-v-794d0ee4]{max-width:100%;min-width:10%}.event-header[data-v-794d0ee4]{font-size:large;font-weight:700}.limited_inputfield[data-v-794d0ee4]{max-width:100%;min-width:10%}.inputtext__input[data-v-794d0ee4]{border-radius:2px;padding:.5em;width:95%}.large_inputfield[data-v-794d0ee4]{width:100%}.gridcheck[data-v-794d0ee4]{justify-self:center}.gridcheck[data-v-794d0ee4],.gridlabel[data-v-794d0ee4]{-ms-flex-item-align:center;align-self:center}.gridlabel[data-v-794d0ee4]{justify-self:end;text-align:end;padding-right:.5em}.data-row[data-v-794d0ee4]{padding-top:1em;display:grid;grid-template-columns:1fr 4fr;justify-self:end}.data-double[data-v-794d0ee4]{display:grid;grid-template-columns:1fr 1fr;min-width:10%;justify-self:stretch;-webkit-column-gap:.5em;-moz-column-gap:.5em;column-gap:.5em;grid-gap:1rem}.flex_grow_1[data-v-794d0ee4]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.items-center[data-v-794d0ee4]{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.data-triple[data-v-794d0ee4]{padding-top:1em;display:grid;grid-template-columns:1fr 1fr 1fr;min-width:10%;-webkit-column-gap:.5em;-moz-column-gap:.5em;column-gap:.5em;justify-self:stretch}.pl-all>div[data-v-794d0ee4]:first-child{padding-right:.5rem}.pl-3[data-v-794d0ee4]{padding-left:3rem}.pr-3[data-v-794d0ee4]{padding-right:3rem}.padding-top[data-v-794d0ee4]{padding-top:0}.upload-btn[data-v-794d0ee4]{position:relative}.upload-btn input[data-v-794d0ee4]{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0}.overflow-x-scroll[data-v-794d0ee4]{overflow-x:scroll}@media only screen and (max-width:1024px){.data-double[data-v-794d0ee4]{grid-template-columns:1fr;grid-template-rows:auto;justify-self:center;grid-gap:0;widows:100%}.action-buttons>button[data-v-794d0ee4]{margin-top:1rem;width:100%}.gridlabel[data-v-794d0ee4]{-ms-flex-item-align:start;align-self:start;justify-self:center}.padding-top[data-v-794d0ee4]{padding-top:1rem}.mr-16[data-v-794d0ee4]{margin-right:0}.justify-between[data-v-794d0ee4]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}}@media only screen and (max-width:1200px){.event-body[data-v-794d0ee4]{margin-left:0}.large_inputfield[data-v-794d0ee4]{max-width:70%}.fieldset_class[data-v-794d0ee4]{padding:.3em;margin:.3em}.data-double[data-v-794d0ee4]{justify-self:center;width:100%}.data-row[data-v-794d0ee4],.data-triple[data-v-794d0ee4]{padding-top:.3em;grid-template-columns:1fr;grid-template-rows:auto}.data-row[data-v-794d0ee4]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.gridlabel[data-v-794d0ee4]{-ms-flex-item-align:start;align-self:start;justify-self:center}.gridcheck[data-v-794d0ee4]{padding-top:.3em}}",""]),e.exports=t},"758e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[e._v(" Änderungslog ")])},i=[],s=n("2877"),o={},r=Object(s["a"])(o,a,i,!1,null,null,null);t["a"]=r.exports},"798e":function(e,t,n){"use strict";n("2c01")},"7a0d":function(e,t,n){"use strict";n.r(t),n.d(t,"UPLOAD_TYPE",(function(){return V}));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:"Zusätzliche Dokumente",id:e.$appNavigation.currentOptionMenuId,actions:e.headerActions},on:{"action-UPLOAD_DOCUMENT_MODAL":function(t){e.files=[]},"action-UPLOAD_DOCUMENT":e.saveChangesAndUpload}}),n("div",{staticClass:"box__container"},[n("h3",[e._v(e._s(e.title))]),e.additionalDocumentInputs?n("div",{staticClass:"grid"},[n("DragnDropArea",{staticClass:"explorer__content",attrs:{hoverText:"Neues Dokument hochladen",disabled:e.isReadOnly||!e.isValid},on:{files:e.dropFile}},[e.isIntern?n("InputToggleSwitch",{attrs:{label:"Gelöschte Dokumente anzeigen",inLineLabel:""},on:{input:function(t){return e.retrieveAdditionalDocuments(t)}},model:{value:e.showDeleted,callback:function(t){e.showDeleted=t},expression:"showDeleted"}}):e._e(),n("div",{staticClass:"row mb-4"},[n("UploadInputList",{attrs:{inputs:e.additionalDocumentInputs,disabled:e.isReadOnly},model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}})],1),n("hr"),n("h3",[e._v(e._s(e.tableTitle))]),e.rows.length?n("Table",{staticClass:"table-container",attrs:{headers:e.headers,rows:e.rows,hidePagination:""},on:{action:function(t){return e.executeAction(t)}},scopedSlots:e._u([{key:"name",fn:function(t){return[e.listHasAction(t.actionsObjects,"DOKUMENT_ANZEIGEN")?n("span",[t.exists?e._e():n("ph-trash",{staticClass:"color-danger mr-1 icon",attrs:{size:16}}),n("DownloadLink",{attrs:{target:"_blank",rel:"noopener noreferer",href:e.makeLink(t),title:t.name||t.bezeichnung||t.fileName||"unbenannt"}})],1):e.listHasAction(t.actionsObjects,"ZUSATZ_DOKUMENTE_ANZEIGEN")?n("a",{on:{click:function(n){return e.openSubviewTable(t)}}},[e._v(e._s(t.name))]):n("span",[t.exists?e._e():n("ph-trash",{staticClass:"color-danger mr-1 icon",attrs:{size:16}}),e._v(" "+e._s(t.name||t.bezeichnung||t.fileName||"unbenannt")+" ")],1)]}},{key:"vorlagestatus",fn:function(e){return[n("WorkflowPill",{attrs:{currentStatusIcons:e.statusActions,statusType:"VORLAGE"}})]}},{key:"signaturstatus",fn:function(e){return[n("WorkflowPill",{attrs:{currentStatusIcons:e.statusActions,statusType:"SIGNATUR"}})]}},{key:"aktueller_scan",fn:function(t){return[null!=t.aktueller_scan?n("InputToggleSwitch",{attrs:{disabled:e.isReadOnly||!t.exists,value:t.aktueller_scan},on:{input:function(n){return e.updateAktuellerScan(t,n)}}}):n("span",[e._v(" Ist kein Scan ")])]}}],null,!1,1673436944)}):e._e()],1)],1):e.loading?n("GhostLoading",{attrs:{type:"block",config:{block:{height:280}}}}):n("NoData",{attrs:{content:"Keine Daten vorhanden"}})],1),e.files&&e.additionalUploadInputs?n("DocumentsUploadModal",{attrs:{files:e.files,additionalInputs:e.additionalUploadInputs,parentId:e.nodeId,uploadType:e.uploadType,documentString:e.fileId,multipleFileUpload:!1},on:{close:function(t){e.files=null}}}):e._e(),n("EditDocumentModal",{ref:"editDocumentModal",on:{confirm:e.confirmEditDocument},model:{value:e.fileForm,callback:function(t){e.fileForm=t},expression:"fileForm"}}),n("PictureAttachmentsModal",{ref:"pictureAttachmentsModal",attrs:{selectedDoc:e.selectedDoc}}),n("BaseModal",{ref:"subviewModal",attrs:{labelButtonCancel:"Zurück",showConfirmButton:!1,size:"xl"},on:{close:e.closeSubviewModal},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[e._v(" "+e._s(e.subviewModalTitle)+" ")]},proxy:!0}])},[n("Table",{staticClass:"table-container",attrs:{headers:e.headers,rows:e.subviewTableData.records||[],rowsPerPage:e.subviewTableData.records&&e.subviewTableData.records.length+1||1,hidePagination:""},on:{action:function(t){return e.executeAction(t)}},scopedSlots:e._u([{key:"name",fn:function(t){return[e.listHasAction(t.actionsObjects,"DOKUMENT_ANZEIGEN")?n("DownloadLink",{attrs:{href:e.makeLink(t),title:t.bezeichnung||t.fileName||t.name}}):n("span",[e._v(e._s(t.bezeichnung||t.fileName||t.name||"unbenannt"))])]}}])})],1),n("BaseModal",{ref:"noSignoFilesModal",attrs:{labelButtonCancel:"Zurück",showConfirmButton:!1},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[n("b",[e._v("Das Dokument ist nicht zur e-Signatur geeignet")])]},proxy:!0},{key:"default",fn:function(){return[n("p",[e._v("Sie können jedoch das Dokument herunterladen")]),n("div",{staticClass:"grid"},[n("div",{staticClass:"row"},[n("div",{staticClass:"col"},[n("DownloadLink",{attrs:{href:e.makeLink(e.currentAction&&e.currentAction.row),title:e.currentAction&&e.currentAction.row&&(e.currentAction.row.name||e.currentAction.row.filename)||"unbenannt"}})],1)])])]},proxy:!0}])}),n("BaseModal",{ref:"warningModal",attrs:{modalTitle:e.warningTitle,labelButtonConfirm:"Ja",labelButtonCancel:"Nein"},on:{onConfirmButton:function(t){return e.confirmAbschliessen()}}},[n("label",[e._v(e._s(e.warningMessage))])]),n("ProhypDokumenteUpload",{ref:"prohypDokumenteUploadModal",attrs:{nodeId:e.nodeId,documentId:e.fileId},on:{selectionDone:e.retrieveAdditionalDocuments}})],1)},i=[],s=n("2909"),o=n("1da1"),r=n("5530"),l=(n("96cf"),n("dca8"),n("159b"),n("4de4"),n("d81d"),n("7db0"),n("d3b7"),n("99af"),n("c740"),n("ac1f"),n("1276"),n("b0c0"),n("e6cf"),n("a79d"),n("cee4")),c=n("0169"),d=n("3c57"),u=n("64c5"),p=n("9aaa"),h=n("689f"),f=n("11e7"),m=n("3931"),b=n("8103"),v=n("7c1f"),g=n("a871"),E=n("f989"),_=n("9af6"),S=n("6eb5"),T=n("b1a7"),y=n("2f62"),x=n("8839"),k=n("5a75"),A=n("5a29"),I=n("c0a4"),C=n("d53f"),w=n("de6c"),O=n("876f"),D=n("a9e4"),N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("BaseModal",{ref:"editDocumentModal",attrs:{modalTitle:"Dokument bearbeiten",labelButtonConfirm:"Speichern"},on:{onConfirmButton:function(t){return e.confirmButton()}}},[n("InputField",{attrs:{label:"Datei",value:e.data.filename,disabled:""},on:{input:function(t){return e.update("filename",t)}}}),n("InputField",{attrs:{label:"Bezeichnung",value:e.data.bezeichnung},on:{input:function(t){return e.update("bezeichnung",t)}}}),n("InputField",{attrs:{label:"Bemerkung",value:e.data.bemerkung},on:{input:function(t){return e.update("bemerkung",t)}}}),n("DatePickerField",{attrs:{label:"Stand",dateFormat:"DD.MM.YYYY",value:e.data.stand,isValueAsString:""},on:{input:function(t){return e.update("stand",t)}}})],1)},M=[],R=n("ade3"),P=n("c704"),B=n("0054"),U=n("9131"),L={components:{BaseModal:g["a"],InputField:P["default"],DatePickerField:B["default"],ComboBox:U["default"]},model:{prop:"data",event:"data"},props:{data:{type:Object,default:function(){}}},methods:{open:function(){this.$refs.editDocumentModal.open()},confirmButton:function(){this.$emit("confirm")},update:function(e,t){this.$emit("data",Object(r["a"])(Object(r["a"])({},this.data),{},Object(R["a"])({},e,t)))}}},j=L,z=n("2877"),$=Object(z["a"])(j,N,M,!1,null,null,null),F=$.exports,G=n("4e5f"),K=n("98fc"),H=n("68d6"),V=Object.freeze({DEFAULT:1,DOKUMENTE_HINZUFUGEN:2,CUSTOM:3}),W={mixins:[x["a"]],components:{InputToggleSwitch:p["default"],Table:h["a"],DragnDropArea:f["a"],OptionMenu:m["a"],PageHeaderTitleNavigation:b["a"],WorkflowPill:v["a"],BaseModal:g["a"],UploadInputList:E["a"],DocumentsUploadModal:_["a"],DownloadLink:A["default"],PictureAttachmentsModal:k["a"],PhWarning:I["PhWarning"],PhTrash:I["PhTrash"],GhostLoading:S["a"],NoData:T["a"],EditDocumentModal:F,ProhypDokumenteUpload:H["a"]},data:function(){return{tableHeaders:[],files:null,nodeId:null,fileId:null,additionalDocumentInputs:null,additionalUploadInputs:null,tableRows:null,formData:null,title:"",tableTitle:null,fileForm:{id:null,filename:null,bezeichnung:null,bemerkung:null,stand:null,aktueller_scan:!1},actions:null,statusActions:null,availableStatusIcons:null,selectedDoc:null,subviewTableRows:{},subviewModalTitle:null,paramSubview:null,currentAction:null,warningTitle:"",warningMessage:"",showDeleted:!1,loading:!1}},computed:Object(r["a"])(Object(r["a"])({},Object(y["b"])({attachmentLinkMaker:d["default"].GETTERS.GET_ANTRAG_SCANS_LINK_MAKER,additionalDocuments:c["default"].GETTERS.ADDITIONAL_DOCUMENTS,tempUploadFiles:c["default"].GETTERS.TEMP_UPLOAD_FILES,hasRoles:u["default"].GETTERS.HAS_ROLES,isIntern:u["default"].GETTERS.ORIGINAL_USER_IS_INTERN})),{},{isCustomerLogin:function(){return this.hasRoles(D["f"].VIEW_CUSTOMER_ONLY)&&!this.hasRoles(D["f"].VIEW_KUNDENSICHT)},exists:function(){return this.additionalDocuments&&this.additionalDocuments.exists||!1},headers:function(){var e={lockedLeft:[],center:[],lockedRight:[]};return this.tableHeaders&&this.tableHeaders.filter((function(e){return e.visible})).forEach((function(t){switch(t.lockedColumn){case"left":e.lockedLeft.push(Object(C["oldToNewColumn"])(t.key,t.label,t.dataType));break;case"right":e.lockedRight.push(Object(C["oldToNewColumn"])(t.key,t.label,t.dataType));break;default:e.center.push(Object(C["oldToNewColumn"])(t.key,t.label,t.dataType));break}})),this.hasStatusAction("ANTRAG_STATUS")&&e.lockedRight.push(Object(C["IconColumn"])("status","Status")),this.hasStatusAction("ANLEGERPROFIL_BESTATIGT")&&e.lockedRight.push(Object(C["IconColumn"])("apstatus","Status")),this.hasStatusAction("VORLAGE_STATUS")&&e.lockedRight.push(Object(C["SlotColumn"])("vorlagestatus","Vorlage",200,0)),this.hasStatusAction("SIGN_STATUS")&&e.lockedRight.push(Object(C["SlotColumn"])("signaturstatus","e-Signatur",200,0)),this.hasAction("DOKUMENTE_HINZUFUGEN")&&e.lockedRight.push(Object(C["PillColumn"])("dokumente","Dokumente",120)),this.hasStatusAction("DOKUMENT_FREIGABE")&&e.lockedRight.push(Object(C["IconColumn"])("sichtbar","Sichtbar").makeLink()),this.isReadOnly||e.lockedRight.push(Object(C["ActionColumn"])("actions","Aktionen")),e},rows:function(){var e=this;return(this.tableRows||[]).map((function(t){var n=Object(r["a"])({data:t},t);return e.headers&&t.additionalColumns&&(n=Object(r["a"])(Object(r["a"])({},n),t.additionalColumns)),e.hasAction("DOKUMENTE_HINZUFUGEN")&&(n.dokumente=t.actions.find((function(e){return"KEINE_DOKUMENTE"==e.legend.key}))?{type:"info",label:"keine Dokumente"}:void 0),e.hasStatusAction("FREIGABE_KUNDE")&&(n.sichtbar=null,t.statusActions.find((function(e){return"FREIGABE_KUNDE_VERWEIGERT"==e||"FREIGABE_MAKLER_VERWEIGERT"==e}))?n.sichtbar=[Object(C["Icon"])(PhEyeSlash,"Freigabe verweigert",16,"bold","color-danger")]:t.statusActions.find((function(e){return"FREIGABE_KUNDE_VORHANDEN"==e||"FREIGABE_MAKLER_VORHANDEN"==e}))&&(n.sichtbar=[Object(C["Icon"])(PhEye,"freigegeben",16,"bold","color-text")])),e.hasStatusAction("ANTRAG_STATUS")&&(n.status=null,t.statusActions.find((function(e){return"ANTRAG_ORDNUNG"==e}))?n.status=[Object(C["Icon"])(PhCheck,"Gut",16,"bold","color-success")]:t.statusActions.find((function(e){return"ANTRAG_FEHLER"==e}))&&(n.status=[Object(C["Icon"])(I["PhWarning"],"Fehler",16,"bold","color-danger")])),e.hasStatusAction("ANLEGERPROFIL_BESTATIGT")&&(n.apstatus=null,t.statusActions.find((function(e){return"ANLEGERPROFIL_FEHLERHAFT"==e}))?n.apstatus=[Object(C["Icon"])(I["PhWarning"],"fehlerhaft",16,"bold","color-danger")]:t.statusActions.find((function(e){return"ANLEGERPROFIL_BESTATIGT"==e}))?n.apstatus=[Object(C["Icon"])(PhCheck,"bestätigt",16,"bold","color-success")]:t.statusActions.find((function(e){return"ANLEGERPROFIL_BESTATIGT_OK"==e}))?n.apstatus=[Object(C["Icon"])(PhChecks,"bestätigt",16,"bold","color-success")]:t.statusActions.find((function(e){return"ANLEGERPROFIL_BESTATIGT_PENDING"==e}))&&(n.apstatus=[Object(C["Icon"])(PhCheck,"unbestätigt",16,"bold","color-warning")])),n.actions=[],n.actionsObjects=[],t.actions&&t.actions.filter((function(t){return!(e.isIntern&&!n.exists)||t.showIfDeleted})).forEach((function(e){var t;"DOKUMENT_ANZEIGEN"!==(null===e||void 0===e||null===(t=e.legend)||void 0===t?void 0:t.key)&&"ZUSATZ_DOKUMENTE_ANZEIGEN"!==(null===e||void 0===e?void 0:e.legend.key)&&n.actions.push(e.confirmationMessage?Object(C["ConfirmedAction"])(e.legend.key,e.legend.icon,e.legend.label,e.confirmationMessage,e.confirmationTitle):Object(C["SimpleAction"])(e.legend.key,e.legend.icon,e.legend.label)),n.actionsObjects.push(e)})),n}))},subviewTableData:function(){var e=this;return this.headers?{headers:this.headers,records:(this.subviewTableRows&&this.paramSubview&&this.subviewTableRows[this.paramSubview]||[]).map((function(t){var n,a=Object(r["a"])({data:t},t);return e.headers&&t.additionalColumns&&(a=Object(r["a"])(Object(r["a"])({},a),t.additionalColumns)),a.actions=[],a.actionsObjects=[],null===(n=t.actions)||void 0===n||n.forEach((function(e){var t;"DOKUMENT_ANZEIGEN"!==(null===e||void 0===e||null===(t=e.legend)||void 0===t?void 0:t.key)&&a.actions.push(e.confirmationMessage?Object(C["ConfirmedAction"])(e.legend.key,e.legend.icon,e.legend.label,e.confirmationMessage,e.confirmationTitle):Object(C["SimpleAction"])(e.legend.key,e.legend.icon,e.legend.label)),a.actionsObjects.push(e)})),a}))}:{}},uploadType:function(){return V.DOKUMENTE_HINZUFUGEN},isReadOnly:function(){return!this.exists||this.isCustomerLogin},isValid:function(){var e,t=this;return!(null!==(e=this.additionalDocumentInputs)&&void 0!==e&&e.some((function(e){return e.valid&&!t.evaluateUploadExpression(e.valid)})))},headerActions:function(){var e=this,t=[];return!this.isReadOnly&&this.additionalDocumentInputs&&(this.fileId?t.push(Object(G["h"])("UPLOAD_DOCUMENT_MODAL","Neues Dokument hochladen").withDisabled((function(){return!e.isValid}))):t.push(Object(G["h"])("UPLOAD_DOCUMENT","Neues Dokument hochladen").withDisabled((function(){return!e.isValid})))),t}}),watch:{additionalDocuments:function(e,t){this.readExistingData(e)}},mounted:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.nodeId=e.$route.query.nodeId,e.fileId=e.$route.query.fileId,t.next=4,e.retrieveAdditionalDocuments();case 4:e.$route.query.hasFilesUploaded&&e.isValid&&e.tempUploadFiles.length&&e.dropFile(e.tempUploadFiles);case 5:case"end":return t.stop()}}),t)})))()},methods:{updateAktuellerScan:function(e,t){!this.isReadOnly&&e.exists&&this.tableRows.forEach((function(n,a,i){n.data===e.data&&(i[a].aktueller_scan=t)}))},retrieveAdditionalDocuments:function(){var e=arguments,t=this;return Object(o["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.length>0&&void 0!==e[0]?e[0]:t.showDeleted,t.loading=!0,n.abrupt("return",t.$store.dispatch(c["default"].ACTIONS.RETRIEVE_ADDITIONAL_DOCUMENTS,{showDeleted:a,nodeId:t.$route.query.nodeId,fileId:t.$route.query.fileId}).finally((function(){return t.loading=!1})));case 3:case"end":return n.stop()}}),n)})))()},readExistingData:function(e){var t=this;this.additionalDocumentInputs||(this.additionalDocumentInputs=e.additionalDocumentInputs,this.formData={},this.additionalDocumentInputs&&this.additionalDocumentInputs.forEach((function(e){"DATE"==e.type?t.formData[e.key]=Object(K["b"])(e.value):"LABEL"!=e.type&&(t.formData[e.key]=e.value)}))),this.additionalUploadInputs=e.additionalUploadInputs,this.actions=e.availableActions,this.statusActions=e.statusActions,this.availableStatusIcons=e.availableStatusIcons,this.tableHeaders=e.tableColumns,this.tableTitle=e.tableTitle,this.tableRows=e.tableRows,this.subviewTableRows=e.subviewTableRows,this.title=e.title},hasStatusAction:function(e){var t;return!(null===(t=this.availableStatusIcons)||void 0===t||!t.length)&&this.availableStatusIcons.some((function(t){return(null===t||void 0===t?void 0:t.key)===e}))},dropFile:function(e){this.fileId?this.files=e:this.saveChangesAndUpload(e)},evaluateUploadExpression:function(e){return this.evaluateExpression(this.formData,e)},saveChangesAndUpload:function(e){var t=this;this.saveChanges().then((function(n){t.fileId=encodeURIComponent(n.data),t.files=e||[]}))},saveChanges:function(){var e=this;if(this.additionalDocumentInputs&&!this.isReadOnly&&this.isValid){var t=Object(r["a"])({},this.formData);this.additionalDocumentInputs.forEach((function(n){n.ignore&&e.evaluateUploadExpression(n.ignore)&&(t[n.key]=null)}));var n="/dokumentenarchiv/additionalDocuments";return this.fileId&&(n+="?fileId=".concat(this.fileId)),l["a"].post("".concat("/MSC3/restful").concat(n),{parentId:this.nodeId,formData:t,filesIsAktuellData:this.rows},{defaultSpinner:!0})}},confirmEditDocument:function(){var e=this,t=this.rows.findIndex((function(t){return t.id==e.fileForm.id}));this.rows[t].bezeichnung=this.fileForm.bezeichnung,this.rows[t].bemerkung=this.fileForm.bemerkung,this.rows[t].date_stand=this.fileForm.stand,this.saveChanges().then((function(){return e.retrieveAdditionalDocuments()}))},executeAction:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isReadOnly){this.currentAction=n;var a=n.row;switch(n.key){case"DOKUMENT_BEARBEITEN":this.fileForm.id=a.id,this.fileForm.filename=a.filename,this.fileForm.bezeichnung=a.bezeichnung,this.fileForm.bemerkung=a.bemerkung,this.fileForm.stand=(null===(e=a.date_stand)||void 0===e?void 0:e.split(" ")[0])||a.stand,this.$refs.editDocumentModal.open();break;case"DOKUMENT_UNTERSCHREIBEN":var i=this.sendData(a,n.key);l["a"].post("".concat("/MSC3/restful","/dokumentenarchivSign/additionalDocumentsSignAction?nodeId=").concat(this.nodeId),i,{headers:{"Content-Type":"application/json"},defaultSpinner:!0}).then((function(e){if(e&&e.data){var n=e.data,a=e.data.signatureOutputs&&e.data.signatureOutputs[0];null!==n&&void 0!==n&&n.errorMessage?t.$store.dispatch(w["default"].ACTIONS.ADD_MESSAGE,Object(O["b"])(e.data.errorMessage,"danger")):a.signoElement?t.openZusatzDokModal(a):a.url?t.openSignPdFile(a.url):t.$refs.noSignoFilesModal.open()}}));break;case"NICHT_VORGELEGT":case"ZUR_UNTERSCHRIFT":case"NUR_VERMITTLER":case"ANTRAG_LOSCHEN":case"DOKUMENT_LOSCHEN":case"DOKUMENT_WIEDERHERSTELLEN":case"DOKUMENT_ABSCHLIESSEN":case"DOKUMENT_NICHT_VORLEGEN":case"DOKUMENT_VORLEGEN":this.onConfirmActionModal();break;case"ZUSATZ_DOKUMENTE_ANZEIGEN":this.openSubviewTable(a);break;case"KREDIT_PROHYP_UPLOAD":this.uploadProhypDocument(a);break;default:console.log("action not yet implemented: "+n.key,n)}}},openSubviewTable:function(e){var t;this.$refs.subviewModal.open();var n=null===(t=this.sendData(e,"ZUSATZ_DOKUMENTE_ANZEIGEN"))||void 0===t?void 0:t.find((function(e){return"param_subview_documents"===e.key}));this.paramSubview=n.value,this.subviewModalTitle=e.name},onConfirmActionModal:function(){var e=this;switch(this.currentAction.key){case"NICHT_VORGELEGT":case"ZUR_UNTERSCHRIFT":case"NUR_VERMITTLER":case"ANTRAG_LOSCHEN":case"DOKUMENT_LOSCHEN":case"DOKUMENT_WIEDERHERSTELLEN":case"DOKUMENT_ABSCHLIESSEN":case"DOKUMENT_NICHT_VORLEGEN":case"DOKUMENT_VORLEGEN":l["a"].post("".concat("/MSC3/restful","/dokumentenarchiv/additionalDocumentsActions?nodeId=").concat(this.nodeId,"&fileId=").concat(this.fileId),{sendData:this.sendData(this.currentAction.row,this.currentAction.key),legend:{key:this.currentAction.key}},{headers:{"Content-Type":"application/json"},defaultSpinner:!0}).then((function(t){null!==t&&void 0!==t&&t.data&&(t.data.errorMessage?e.$store.dispatch(w["default"].ACTIONS.ADD_MESSAGE,Object(O["b"])(t.data.errorMessage,"danger")):t.data.warningMessage?(e.warningTitle=t.data.warningTitle,e.warningMessage=t.data.warningMessage,e.$refs.warningModal.open()):e.retrieveAdditionalDocuments())}));break;default:break}},confirmAbschliessen:function(){var e=this;if(this.currentAction){var t=this.sendData(this.currentAction.row,this.currentAction.key);t.push({key:"PARAM_IS_CONFIRMED_SUBMIT_MIT_BLANK_SIGNATURES",value:"1"}),l["a"].post("".concat("/MSC3/restful","/dokumentenarchiv/additionalDocumentsActions?nodeId=").concat(this.nodeId,"&fileId=").concat(this.fileId),{sendData:t,legend:{key:this.currentAction.key}},{headers:{"Content-Type":"application/json"},defaultSpinner:!0}).then((function(t){null!==t&&void 0!==t&&t.data&&e.retrieveAdditionalDocuments()}))}},openSignPdFile:function(e){e&&window.open(e,"_blank")},hasAction:function(e){return this.actions&&this.actions.some((function(t){var n;return(null===(n=t.legend)||void 0===n?void 0:n.key)==e}))},rowHasAction:function(e,t){var n;return e&&e[t]||(null===e||void 0===e||null===(n=e.actions)||void 0===n?void 0:n.some((function(e){return e.legend&&e.legend.key==t})))},listHasAction:function(e,t){return null===e||void 0===e?void 0:e.some((function(e){var n;return(null===(n=e.legend)||void 0===n?void 0:n.key)==t}))},closeSubviewModal:function(){this.paramSubview=null,this.subviewModalTitle=""},openZusatzDokModal:function(e){var t=this;e.signoElement&&(this.selectedDoc=e.signoElement,setTimeout((function(){t.$refs.pictureAttachmentsModal.open()}),100))},sendData:function(e,t){var n,a,i,o;t?n=(null===e||void 0===e||null===(a=e.actionsObjects)||void 0===a||null===(i=a.find((function(e){var n;return(null===(n=e.legend)||void 0===n?void 0:n.key)===t})))||void 0===i?void 0:i.sendData)||[]:(n=[],null===e||void 0===e||null===(o=e.actionsObjects)||void 0===o||o.forEach((function(e){var t;return(t=n).push.apply(t,Object(s["a"])(e.sendData||[]))})));return n},makeLink:function(e){var t=(null===e||void 0===e?void 0:e.filename)||(null===e||void 0===e?void 0:e.name),n=[],a=this.sendData(e,"DOKUMENT_ANZEIGEN");return null!==a&&void 0!==a&&a.length&&a.forEach((function(e){n.push(e.key),n.push(e.value)})),this.attachmentLinkMaker(t,this.nodeId,n)},uploadProhypDocument:function(e){this.$refs.prohypDokumenteUploadModal.open(e.data)}},beforeRouteLeave:function(e,t,n){var a=this;return Object(o["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a.$addBreadcrumb({to:e,from:t}),i.next=3,a.saveChanges();case 3:a.$store.commit(c["default"].MUTATIONS.RESET_DATA),n();case 5:case"end":return i.stop()}}),i)})))()}},Y=W,Z=Object(z["a"])(Y,a,i,!1,null,null,null);t["default"]=Z.exports},"7ad7":function(e,t,n){var a=n("1ec9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("f678c442",a,!0,{sourceMap:!1,shadowMode:!1})},"7c1f":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"availableStatusIcons__container"},e._l(e.currentStatusIcons,(function(t){return n("span",{key:t.legend.label+e.uuidv4()},["VORLAGE"===e.statusType?n("span",["DOKUMENT_VORLEGEN"===t.legend.key?n("span",["VORLAGE"===e.statusType?n("Pill",{attrs:{label:"nicht vorgelegt",type:"danger"}}):e._e()],1):"DOKUMENT_NICHT_VORLEGEN"===t.legend.key?n("span",[n("Pill",{attrs:{label:"vorgelegt",type:"info"}})],1):"DOKUMENT_VORLEGEN_TEILWEISE"===t.legend.key?n("span",[n("Pill",{attrs:{label:"teilweise vorgelegt",type:"warning"}})],1):"DOKUMENT_VERMITTLER_NICHT_VORLEGEN"===t.legend.key?n("span",[n("Pill",{attrs:{label:"Makler vorgelegt",type:"info"}})],1):"DOKUMENT_KUNDE_NICHT_VORLEGEN"===t.legend.key?n("span",[n("Pill",{attrs:{label:"Kunde vorgelegt",type:"info"}})],1):e._e()]):e._e(),"SIGNATUR"===e.statusType?n("span",["EINGEREICHT_ABGELEGT"===t.legend.key?n("span",[n("Pill",{attrs:{label:"eingereicht",type:"success"}})],1):"UNTERSCHRIEBEN"===t.legend.key?n("span",[n("Pill",{attrs:{label:"unterschrieben",type:"success"}})],1):"TEILWEISE_UNTERSCHRIEBEN"===t.legend.key?n("span",[n("Pill",{attrs:{label:t.legend.label,type:"warning"}})],1):"TEILWEISE_EINGEREICHT"===t.legend.key?n("span",[n("Pill",{attrs:{label:t.legend.label,type:"success"}})],1):e._e()]):e._e()])})),0)},i=[],s=(n("ac1f"),n("5319"),n("d3b7"),n("25f0"),n("c0a4")),o=n("025b"),r={name:"AvailableActionIcons",props:{currentStatusIcons:{default:null},statusType:{default:null}},computed:{},components:{PhMinus:s["PhMinus"],PhPlus:s["PhPlus"],PhIntersect:s["PhIntersect"],PhX:s["PhX"],PhPencilLine:s["PhPencilLine"],PhTrash:s["PhTrash"],PhList:s["PhList"],PhEye:s["PhEye"],PhEyeSlash:s["PhEyeSlash"],Pill:o["a"]},data:function(){return{}},watch:{currentStatusIcons:function(e,t){}},methods:{hasAction:function(e){return this.currentStatusIcons&&this.currentStatusIcons.some((function(t){return t.legend.key==e}))},uuidv4:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))}}},l=r,c=(n("7200"),n("2877")),d=Object(c["a"])(l,a,i,!1,null,"4d76bacc",null);t["a"]=d.exports},"7c72":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".container[data-v-6633bc2d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.template-top[data-v-6633bc2d]{margin-left:0;margin-right:0}.template-bottom[data-v-6633bc2d],.template-top[data-v-6633bc2d]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.template-bottom[data-v-6633bc2d]{margin:1rem 0;padding:1rem 0}.template-sidetext[data-v-6633bc2d]{-webkit-box-flex:0;-ms-flex:0;flex:0;overflow:hidden}.d-lg-flex>.box__container[data-v-6633bc2d]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.template-navigation-buttons>.box__container[data-v-6633bc2d]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline}.modal__container[data-v-6633bc2d]{padding:0 24px}@media (min-width:768px){.template-sidetext[data-v-6633bc2d]{-webkit-box-flex:0;-ms-flex:0 1 350px;flex:0 1 350px;padding:1rem;padding-top:0}}@media (min-width:768px){.warnings-small-screen[data-v-6633bc2d]{display:none}}@media only screen and (max-width:768px){.modal__container[data-v-6633bc2d]{padding:0 8px}}",""]),e.exports=t},"7cd0":function(e,t,n){"use strict";n("a77e")},"7e84c":function(e,t,n){var a=n("99dd");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("3da39aff",a,!0,{sourceMap:!1,shadowMode:!1})},8208:function(e,t,n){var a=n("c924");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("84bd0270",a,!0,{sourceMap:!1,shadowMode:!1})},"823e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("DragnDropArea",{staticClass:"simple-additional-documents-table__dropzone",attrs:{hoverText:"Neues Dokument hochladen",disabled:!e.canUpdateDocumentArchive||e.listViewOnly},on:{files:function(t){return e.openDocumentUploadModal(t)}}},[n("div",[e.isLoadingInternal?n("GhostLoading",{attrs:{title:e.title,type:"table"}}):n("Table",{attrs:{tableId:"b363a7c6-0140-4607-b86e-b630ba53c9f8",title:e.title,headers:e.headers,rows:e.rows,rowsPerPage:10,rowId:e.customDocuments?"fileId":"id",headerActions:e.tableHeaderActions},on:{"click-name":e.showDocument,"action-DELETE":e.deleteDocument,"action-DOKUMENT_LOSCHEN":e.deleteDocument,"action-DOKUMENT_BEARBEITEN":e.openExternesDokumentModal,"action-KREDIT_PROHYP_UPLOAD":e.uploadProhypDocument,"headerAction-DOCUMENT-UPLOAD":function(t){return e.openDocumentUploadModal([])}}})],1),e.files&&e.additionalUploadInputs?n("DocumentsUploadModal",{attrs:{files:e.files,additionalInputs:e.additionalUploadInputs,parentId:e.nodeId,uploadType:e.uploadType,documentString:e.fileIdEncoded,multipleFileUpload:e.multipleFileUpload,customUpload:e.customUpload},on:{close:function(t){e.files=null}}}):e._e()],1),n("BaseModal",{ref:"externesDokumenteModal",attrs:{modalTitle:"",labelButtonConfirm:"Speichern",showCancelButton:!0},on:{onConfirmButton:function(t){return e.saveExternesDokument()}}},[e.exfile?n("div",[n("InputField",{attrs:{label:"Datei",disabled:!0},model:{value:e.exfile.filename,callback:function(t){e.$set(e.exfile,"filename",t)},expression:"exfile.filename"}}),n("InputField",{attrs:{label:"Bezeichnung"},model:{value:e.exfile.bezeichnung,callback:function(t){e.$set(e.exfile,"bezeichnung",t)},expression:"exfile.bezeichnung"}}),n("InputField",{attrs:{label:"Bemerkung"},model:{value:e.exfile.bemerkung,callback:function(t){e.$set(e.exfile,"bemerkung",t)},expression:"exfile.bemerkung"}}),n("DatePickerField",{attrs:{label:"Stand",dateFormat:"DD.MM.YYYY"},model:{value:e.exfile.stand,callback:function(t){e.$set(e.exfile,"stand",t)},expression:"exfile.stand"}})],1):e._e()]),n("ProhypDokumenteUpload",{ref:"prohypDokumenteUploadModal",attrs:{nodeId:e.nodeId,documentId:e.fileIdEncoded},on:{selectionDone:e.retrieveAdditionalDocuments}})],1)},i=[],s=n("1da1"),o=n("5530"),r=(n("96cf"),n("a9e3"),n("d81d"),n("4de4"),n("b0c0"),n("7db0"),n("159b"),n("2f62")),l=n("0169"),c=n("64c5"),d=n("3c57"),u=n("9af6"),p=n("11e7"),h=n("689f"),f=n("d53f"),m=n("a871"),b=n("5a29"),v=n("6eb5"),g=n("c704"),E=n("a9e4"),_=n("7a0d"),S=n("5a0c"),T=n.n(S),y=n("0054"),x=n("68d6"),k=n("4e5f"),A={hidden:[]},I={props:{title:{type:String,default:"Dokumente"},nodeId:{type:[String,Number],default:null},fileId:{type:String,default:""},customUpload:{type:Function},listViewOnly:{type:Boolean,default:!1},customDocuments:{type:Array,default:null},uploadInputsConfig:{type:Object,default:function(){return A}},uploadType:{type:String|Number,default:_["UPLOAD_TYPE"].CUSTOM},multipleFileUpload:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1}},data:function(){return{files:null,loading:!1,exfile:null,currentActionData:null}},computed:Object(o["a"])(Object(o["a"])({},Object(r["b"])({additionalUploadInputsData:l["default"].GETTERS.ADDITIONAL_UPLOAD_INPUTS,loginData:c["default"].GETTERS.GET_LOGIN_DATA,additionalDocuments:l["default"].GETTERS.ADDITIONAL_DOCUMENTS,attachmentLinkMaker:d["default"].GETTERS.GET_ANTRAG_SCANS_LINK_MAKER,hasRoles:c["default"].GETTERS.HAS_ROLES})),{},{rights:function(){var e;return(null===(e=this.loginData)||void 0===e?void 0:e.rights)||{}},canUpdateDocumentArchive:function(){var e;return(null===(e=this.rights)||void 0===e?void 0:e.updateDocumentArchive)||this.hasRoles([E["f"].VIEW_CUSTOMER_AS_BROKER,E["f"].VIEW_CUSTOMER_AS_INTERN])},isLoadingInternal:function(){return this.loading||this.isLoading},fileIdEncoded:function(){return encodeURIComponent(this.fileId)},additionalUploadInputs:function(){var e,t,n,a=(null===(e=this.uploadInputsConfig)||void 0===e?void 0:e.hidden)||[],i=this.customDocuments?null===(t=this.additionalUploadInputsData)||void 0===t?void 0:t.additionalUploadInputs:null===(n=this.additionalDocuments)||void 0===n?void 0:n.additionalUploadInputs;return(i||[]).map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{visible:a.indexOf(e.key)>=0?{type:"CONSTANT_BOOL",value:!1}:null})}))},isCredit:function(){return!this.customDocuments},headers:function(){var e,t={lockedLeft:[Object(f["TextColumn"])("name","Name")],center:[Object(f["TextColumn"])("bezeichnung","Bezeichnung"),Object(f["TextColumn"])("bemerkung","Bemerkung"),Object(f["DateColumn"])("erstellt_am","Stand")],lockedRight:[]};return null!==(e=this.rights)&&void 0!==e&&e.showDocumentArchive&&!this.listViewOnly&&(t.lockedLeft[0].makeLink(),t.lockedRight.push(Object(f["ActionColumn"])("action","Aktionen"))),t},rows:function(){var e,t=this,n=this.customDocuments||(null===(e=this.additionalDocuments)||void 0===e?void 0:e.tableRows)||[],a=this.canUpdateDocumentArchive&&!this.isCredit?[Object(f["ConfirmedAction"])("DELETE","PhTrash","Löschen","Soll das Dokument wirklich gelöscht werden?","Dokument löschen","Löschen"),Object(f["SimpleAction"])("DOKUMENT_BEARBEITEN","PhPencil","Bearbeiten")]:[];return n.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{action:t.isCredit?t.makeActions(e):a})}))},tableHeaderActions:function(){var e=this;return[Object(k["h"])("DOCUMENT-UPLOAD","Datei hochladen").withAsPrimary((function(){return!0})).withVisible((function(){return e.canUpdateDocumentArchive&&!e.listViewOnly}))]}}),mounted:function(){this.customDocuments||this.retrieveAdditionalDocuments()},methods:{makeActions:function(e){if(e.actions)return e.actions.filter((function(e){var t;return"DOKUMENT_ANZEIGEN"!==(null===(t=e.legend)||void 0===t?void 0:t.key)})).map((function(e){return e.confirmationMessage?Object(f["ConfirmedAction"])(e.legend.key,e.legend.icon,e.legend.label,e.confirmationMessage,e.confirmationTitle):Object(f["SimpleAction"])(e.legend.key,e.legend.icon,e.legend.label)}))},retrieveAdditionalDocuments:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.nodeId){t.next=2;break}return t.abrupt("return");case 2:return e.loading=!0,t.next=5,e.$store.dispatch(l["default"].ACTIONS.RETRIEVE_ADDITIONAL_DOCUMENTS,{nodeId:e.nodeId,fileId:e.fileIdEncoded});case 5:e.loading=!1;case 6:case"end":return t.stop()}}),t)})))()},initExternalFile:function(e){var t=null===e||void 0===e?void 0:e.actions.filter((function(e){return"DOKUMENT_BEARBEITEN"==(null===e||void 0===e?void 0:e.specificAction)}));if(t){var n=t[0];this.currentActionData=n,this.exfile={filename:n.sendData[4].value,bezeichnung:n.sendData[1].value,bemerkung:n.sendData[2].value,stand:n.sendData[3].value}}},openExternesDokumentModal:function(e){this.initExternalFile(e),this.$refs.externesDokumenteModal.open()},deleteDocument:function(e){var t=this;if(this.customDocuments)this.$emit("deleteDocument",e);else{var n={sendData:this.findSendData(e.actions,"DOKUMENT_LOSCHEN"),legend:{key:"DOKUMENT_LOSCHEN"}};this.$store.dispatch(l["default"].ACTIONS.ADDITIONAL_DOCUMENTS_ACTIONS,{nodeId:this.nodeId,fileId:this.fileIdEncoded,data:n}).then((function(){return t.retrieveAdditionalDocuments()}))}},showDocument:function(e){this.customDocuments?this.$emit("showDocument",e):Object(b["viewDocument"])({href:this.makeLink(e),filename:e.name||e.filename||"unbenannt"})},findSendData:function(e,t){var n;if(null!==e&&void 0!==e&&e.length&&t)return(null===(n=e.find((function(e){var n;return(null===(n=e.legend)||void 0===n?void 0:n.key)===t})))||void 0===n?void 0:n.sendData)||[]},makeLink:function(e){var t=(null===e||void 0===e?void 0:e.filename)||(null===e||void 0===e?void 0:e.name),n=[],a=this.findSendData(null===e||void 0===e?void 0:e.actions,"DOKUMENT_ANZEIGEN");return null!==a&&void 0!==a&&a.length&&a.forEach((function(e){n.push(e.key),n.push(e.value)})),this.attachmentLinkMaker(t,this.nodeId,n)},openDocumentUploadModal:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(null!==(a=t.additionalUploadInputs)&&void 0!==a&&a.length){n.next=3;break}return n.next=3,t.$store.dispatch(l["default"].ACTIONS.RETRIEVE_ADDITIONAL_UPLOAD_INPUTS,{nodeId:t.nodeId});case 3:t.files=e;case 4:case"end":return n.stop()}}),n)})))()},saveExternesDokument:function(){var e,t=this;this.currentActionData.sendData[1].value=this.exfile.bezeichnung,this.currentActionData.sendData[2].value=this.exfile.bemerkung,T()(this.exfile.stand).isValid()&&(e=T()(this.exfile.stand).format("DD.MM.YYYY"),this.currentActionData.sendData[3].value=e);var n=this.currentActionData.sendData.find((function(e){return"PARAM_FILEID"==e.key}));this.$store.dispatch(l["default"].ACTIONS.EXECUTE_EDIT_FILE,{fileId:null===n||void 0===n?void 0:n.value,action:this.currentActionData}).then((function(){t.uploadType==_["UPLOAD_TYPE"].DOKUMENTE_HINZUFUGEN&&t.retrieveAdditionalDocuments()}))},uploadProhypDocument:function(e){this.$refs.prohypDokumenteUploadModal.open(e.data)}},beforeDestroy:function(){this.$store.commit(l["default"].MUTATIONS.RESET_DATA)},components:{DocumentsUploadModal:u["a"],DragnDropArea:p["a"],Table:h["a"],BaseModal:m["a"],GhostLoading:v["a"],InputField:g["default"],DatePickerField:y["default"],ProhypDokumenteUpload:x["a"]}},C=I,w=(n("5a41"),n("2877")),O=Object(w["a"])(C,a,i,!1,null,"60670aff",null);t["a"]=O.exports},"85e3":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default"),!e.loadingDisabled&&e.scrollLoading?n("GhostLoading",{attrs:{type:"block",config:{block:{height:200}}}}):e._e()],2)},i=[],s=n("6eb5"),o={components:{GhostLoading:s["a"]},props:{loadingDisabled:{type:Boolean,default:!1},hasScroll:{type:Boolean,default:!1}},data:function(){return{scrollLoading:!1}},mounted:function(){var e=this.$el,t=e.closest("[data-scroll-container]")||document;t.addEventListener("scroll",this.onScroll)},destroyed:function(){var e=this.$el,t=e.closest("[data-scroll-container]")||document;t.removeEventListener("scroll",this.onScroll)},methods:{onScroll:function(){if(this.hasScroll&&!this.scrollLoading){var e=this.$el,t=e.closest("[data-scroll-container]")||document.documentElement,n=t.scrollTop+t.clientHeight>t.scrollHeight-100;n&&(this.onScrollBeginn(),this.$emit("scroll",this.onScrollEnd))}},onScrollBeginn:function(){this.scrollLoading=!0,this.emitLoading()},onScrollEnd:function(){this.scrollLoading=!1,this.emitLoading()},emitLoading:function(){this.$emit("loading",this.scrollLoading)}}},r=o,l=n("2877"),c=Object(l["a"])(r,a,i,!1,null,null,null);t["a"]=c.exports},8839:function(e,t,n){"use strict";var a=n("2909"),i=n("5530"),s=(n("99af"),n("ac1f"),n("5319"),n("b680"),n("4d63"),n("25f0"),n("a9e3"),n("7db0"),n("2f62")),o=n("6758"),r=n("de6c"),l={computed:Object(i["a"])(Object(i["a"])({},Object(s["b"])({_expression_customerData:o["default"].GETTERS.CUSTOMER_DATA,_expression_additionalPersons:o["default"].GETTERS.CUSTOMER_DATA_ADDITIONAL_PERSONS})),{},{_expression_persons:function(){var e=this._expression_additionalPersons||[];return[this._expression_customerData].concat(Object(a["a"])(e))}}),methods:{evaluateExpression:function(e,t){var n=this;switch(t.type){case"AND":return this.evaluateExpression(e,t.left)&&this.evaluateExpression(e,t.right);case"CONSTANT_BOOL":case"CONSTANT_DOUBLE":case"CONSTANT_INT":case"CONSTANT_STRING":return t.value;case"EQUALS":return this.evaluateExpression(e,t.left)==this.evaluateExpression(e,t.right);case"DOUBLE_TO_STRING":var a=this.evaluateExpression(e,t.parameter),i=this.evaluateExpression(e,t.digits);return a.toFixed(i).replace(".",",");case"INPUT_BOOLEAN":return e[t.inputName];case"INPUT_STRING":return e[t.inputName];case"IS_IN":a=this.evaluateExpression(e,t.value);return t.list.some((function(t){return n.evaluateExpression(e,t)==a}));case"MATCHES_REGEX":a=this.evaluateExpression(e,t.value);return new RegExp(t.regex).test(a);case"MULTIPLY":return this.evaluateExpression(e,t.left)*this.evaluateExpression(e,t.right);case"PARSE_DOUBLE":a=this.evaluateExpression(e,t.string);return a||0===a||(a="0"),a=Number(a.replace(",",".")),isNaN(a)?this.evaluateExpression(e,t.defaultResult):a;case"PERSON_ANREDE":var s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.title||"";case"PERSON_AUSWEIS_AUSSTELLUNGSBEHOERDE":s=this.evaluateExpression(e,t.personExpression);return s&&s.legitimation&&s.legitimation.authority||"";case"PERSON_AUSWEIS_AUSSTELLUNGSDATUM":s=this.evaluateExpression(e,t.personExpression);return s&&s.legitimation&&s.legitimation.dateOfIssue||"";case"PERSON_AUSWEIS_NUMMER":s=this.evaluateExpression(e,t.personExpression);return s&&s.legitimation&&s.legitimation.legitimNumber||"";case"PERSON_AUSWEIS_TYP":s=this.evaluateExpression(e,t.personExpression);return s&&s.legitimation&&s.legitimation.legitimType||"";case"PERSON_EMAIL":s=this.evaluateExpression(e,t.personExpression);if(s&&s.contacts){var o=s.contacts.find((function(e){return"E-Mail"==e.type}));return o&&o.value||""}return"";case"PERSON_FROM_ID":var l=this.evaluateExpression(e,t.idString);return this._expression_persons.find((function(e){return e.personId==l}));case"PERSON_FAMILIENKASSE":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataTax&&s.personalDataTax.familyBenefitsOffice||"";case"PERSON_GEBURTSLAND":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataBirth&&s.personalDataBirth.countryOfBirth||"";case"PERSON_GEBURTSNAME":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataBirth&&s.personalDataBirth.nameAtBirth||"";case"PERSON_GEBURTSORT":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataBirth&&s.personalDataBirth.placeOfBirth||"";case"PERSON_HAUSNR":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.streetnumber||"";case"PERSON_KINDERGELD_NR":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataTax&&s.personalDataTax.childrenBenefitsNr||"";case"PERSON_LAND":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.country||"";case"PERSON_MOBIL":s=this.evaluateExpression(e,t.personExpression);if(s&&s.contacts){o=s.contacts.find((function(e){return"Mobil"==e.type}));return o&&o.value||""}return"";case"PERSON_NAME":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.firstName||"";case"PERSON_ORT":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.city||"";case"PERSON_PLZ":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.zip||"";case"PERSON_STAATSANGEHOERIGKEIT":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataBirth&&s.personalDataBirth.nationality||"";case"PERSON_STRASSEOHNEHNR":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.streetwithoutnumber||"";case"PERSON_TAX_ID":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataTax&&s.personalDataTax.taxID||"";case"TO_STRING":return""+this.evaluateExpression(e,t.parameter);case"PERSON_TITEL":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.titles||"";case"PERSON_VORNAME":s=this.evaluateExpression(e,t.personExpression);return s&&s.personalDataAddress&&s.personalDataAddress.lastName||"";default:return this.$store.dispatch(r["default"].ACTIONS.LOG,"unknown expression type: "+t.type),null}}}};t["a"]=l},"8d03":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".object-container[data-v-37e7d273]{position:relative;min-width:100%;min-height:100vh;width:100%;height:100%;overflow:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.object-container iframe[data-v-37e7d273]{position:absolute;top:0;left:0;width:100%;height:100%;border:none}",""]),e.exports=t},"8eb3":function(e,t,n){var a=n("b543");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("f002bcb6",a,!0,{sourceMap:!1,shadowMode:!1})},"91ca":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"table-container paginated-table__container"},[e.$isSmallScreen&&e.mobileConfig?[n("ScrollLoading",{attrs:{hasScroll:e.rowsWithId.length!==e.rowCount},on:{loading:function(t){return e.$emit("scrollLoading",t)},scroll:function(t){return e.$emit("onScroll",t)}}},[n("MobileTable",e._g({ref:"sortableTable",attrs:{tableId:e.tableId,rowId:e.rowId,title:e.title,headers:e.headerMap,rows:e.rowsWithId,titleActions:e.headerActions,config:e.mobileConfig,selected:e.selected,selectionAsBlacklist:e.selectionAsBlacklist,noDataIcon:e.noDataIcon,noDataContent:e.noDataContent},on:{selected:function(t){return e.$emit("selected",t)},selectionAsBlacklist:function(t){return e.$emit("selectionAsBlacklist",t)},clickCell:e.handleClick,action:e.handleAction,files:e.handleFile,headerAction:e.handleHeaderAction,configColumn:e.columnConfigChanged,orderChanged:e.onOrderChanged},scopedSlots:e._u([e._l(e.headersFlat,(function(t){var n=t.key,a=t.rowElement;return{key:n,fn:function(t){var i=t.row,s=t.mobileTableContext;return[a||"__SELECT__"===n?e._e():e._t(n,null,{mobileTableContext:s},i)]}}})),e._l(e.headersFlatLabelNull,(function(t){return{key:t.headerKey,fn:function(){return[e._t(t.headerKey,null,null,t)]},proxy:!0}}))],null,!0)},e.$listeners["clickRow"]?{clickRow:function(t){return e.$emit("clickRow",t)}}:{}))],1)]:[n("SortableTable",{ref:"sortableTable",attrs:{cardView:e.cardView,tableId:e.tableId,title:e.title,headers:e.headerMap,rows:e.displayedPage,sortedManually:e.sortConfig,maxHeaderLines:e.maxHeaderLines,enableToggleHorizontalScrollingConfig:e.enableToggleHorizontalScrollingConfig,exportConfig:e.exportConfig,headerActions:e.headerActions,loadingCollapsed:e.loadingCollapsed,sortableRows:e.sortableRows,showColumnsConfigEvenNoTitle:e.showColumnsConfigEvenNoTitle,thHoverDisabled:e.thHoverDisabled,noDataIcon:e.noDataIcon,noDataContent:e.noDataContent},on:{sort:e.handleSort,localSort:function(t){return e.$emit("localSort",t)},clickCell:e.handleClick,action:e.handleAction,files:e.handleFile,headerAction:e.handleHeaderAction,configColumn:e.columnConfigChanged,shownHeaders:function(t){return e.$emit("shownHeaders",t)},allHeaders:function(t){return e.$emit("allHeaders",t)},toggleRow:function(t){return e.$emit("toggleRow",t)},isColumnsConfigOpen:function(t){return e.$emit("isColumnsConfigOpen",t)},orderChanged:e.onOrderChanged},scopedSlots:e._u([e.menuRowsPerPage&&e.menuRowsPerPage.length?{key:"dropdown_menu",fn:function(){return[n("SelectRowPerPage",{attrs:{pageSize:e.pageSize,rowSteps:e.menuRowsPerPage},on:{tablePageSize:e.onPageSizeChange}})]},proxy:!0}:null,{key:"header___SELECT__",fn:function(){return[null!=e.selectionAsBlacklist?n("InputCheckBoxItem",{staticStyle:{"margin-left":"3px"},attrs:{value:e.areAllSelected,indeterminate:e.areOnlySomeSelected,tid:e._generateTidFromString(e.tableId+":__SELECT__")},on:{input:e.onSelectAll}}):e._e()]},proxy:!0},e._l(e.headersFlat,(function(t){var a=t.key,i=t.rowElement;return{key:a,fn:function(t){var s=t.row,o=t.id;return[i||"__SELECT__"!=a||null==o||s.selectedHidden?i||"__SELECT__"==a?e._e():e._t(a,null,null,s):n("InputCheckBoxItem",{key:a,attrs:{value:e.isCheckmarked(o),tid:e._generateTidFromString(e.tableId+":__SELECT__:"+o)},on:{input:function(t){return e.onSelect(o)}}})]}}}))],null,!0)}),e.displayedItems>0?n("div",{staticClass:"table-pagination"},[n("div",{staticClass:"table-pagination--left"},[n("PageRowCount",{attrs:{displayedItems:e.displayedItems,totalRows:e.rowCount}}),n("SelectRowPerPage",{attrs:{short:"",pageSize:e.pageSize,rowSteps:e.menuRowsPerPage},on:{tablePageSize:e.onPageSizeChange}})],1),e.displayedItems<e.rowCount?n("div",{staticClass:"table-pagination--right"},[n("Pagination",{attrs:{totalPages:e.pageCount,currentPage:e.displayedPageIndex},on:{pagechanged:e.onPageChange}})],1):e._e()]):e._e()]],2)},i=[],s=n("2909"),o=n("5530"),r=(n("a9e3"),n("d81d"),n("0481"),n("07ac"),n("159b"),n("4de4"),n("be3c")),l=n("c454"),c=n("46bc"),d=n("85e3"),u=n("2f62"),p={mixins:[r["a"]],components:{MobileTable:c["a"],ScrollLoading:d["a"]},model:{prop:"selected",event:"selected"},props:{tableId:{type:String},title:{type:String,default:""},headers:{type:Object,default:function(){},required:!0},pages:{type:Object,default:function(){},required:!0},rowId:{type:String,default:"id"},pageCount:{type:Number,required:!0},rowCount:{type:Number,required:!0},page:{type:Number,default:void 0},sorted:{type:Object,default:function(){}},dragnDropFilesOnRow:{type:Boolean,default:!1},selected:{type:Array,default:function(){return null}},selectionAsBlacklist:{type:Boolean,default:void 0},maxHeaderLines:{type:Number,default:1},enableToggleHorizontalScrollingConfig:{type:Boolean,default:!1},exportConfig:{type:Object,default:function(){return null}},headerActions:{type:Array,default:function(){return[]}},menuRowsPerPage:{type:Array,default:function(){return[]}},pageSize:{type:Number,default:25},loadingCollapsed:{type:Object,default:function(){}},sortableRows:{type:Boolean,default:!1},showColumnsConfigEvenNoTitle:{type:Boolean,default:!1},cardView:{type:Boolean,default:!1},thHoverDisabled:{type:Boolean,default:!1},noDataIcon:{type:Boolean,default:!1},noDataContent:{type:String},mobileConfig:{type:Object,default:function(){return null}}},data:function(){return{scrollHorizontally:!1,localSortConfig:null}},computed:Object(o["a"])(Object(o["a"])({},Object(u["b"])({pageTableCount:l["default"].GETTERS.GET_BROKER_PAGE_TABLE_SIZE})),{},{displayedPageIndex:function(){return void 0!=this.page?this.page:this.pageIndex},displayedPage:function(){var e=this;return this.pages[this.displayedPageIndex]?this.pages[this.displayedPageIndex].map((function(t){return{id:e.constructRowId(t),row:t,acceptsFile:e.dragnDropFilesOnRow,customRowStyle:t.customRowStyle||{}}})):[]},rowsWithId:function(){var e=this;return Object.values(this.pages).flat().map((function(t){return{id:e.constructRowId(t),row:t,acceptsFile:e.dragnDropFilesOnRow,customRowStyle:t.customRowStyle||{}}}))},displayedItems:function(){return this.displayedPage.length},canSortLocally:function(){return this.areAllRowsLoaded},sortConfig:function(){var e,t;return this.canSortLocally?this.localSortConfig:{key:null===(e=this.sorted)||void 0===e?void 0:e.key,ascending:"desc"!=(null===(t=this.sorted)||void 0===t?void 0:t.sortDirection)}},isSelected:function(){var e=this;if(this.selected){var t={};return this.selected.forEach((function(n){t[e.constructRowId(n)]=!0})),t}},areAllSelected:function(){return this.selectionAsBlacklist&&!this.selected.length||!this.selectionAsBlacklist&&this.selected.length==this.rowCount},areOnlySomeSelected:function(){return this.selected.length>0&&!this.areAllSelected},areAllRowsLoaded:function(){return this.rowCount==Object.values(this.pages).flat().length}}),watch:{canSortLocally:function(e){var t,n,a;e&&null!==(t=this.sorted)&&void 0!==t&&t.key?this.localSortConfig={key:null===(n=this.sorted)||void 0===n?void 0:n.key,ascending:"desc"!=(null===(a=this.sorted)||void 0===a?void 0:a.sortDirection)}:this.localSortConfig=void 0},pageTableCount:{handler:function(){-1===this.pageTableCount&&this.$store.dispatch(l["default"].ACTIONS.LOAD_BROKER_PAGE_TABLE_SIZE)},immediate:!0},$isSmallScreen:function(e){this.onPageSizeChange(this.pageSize)}},mounted:function(){var e,t,n;this.canSortLocally&&null!==(e=this.sorted)&&void 0!==e&&e.key&&(this.localSortConfig={key:null===(t=this.sorted)||void 0===t?void 0:t.key,ascending:"desc"!=(null===(n=this.sorted)||void 0===n?void 0:n.sortDirection)})},methods:{onPageChange:function(e){this.pageIndex=Math.max(0,Math.min(this.pageCount-1,e)),this.$emit("page",this.pageIndex),this.pages[this.pageIndex]||this.$emit("requestPage",this.pageIndex)},onPageSizeChange:function(e){this.$emit("rowsPerPage",e),this.pageIndex=0,this.$emit("page",this.pageIndex)},handleSort:function(e){var t=e.key,n=e.ascending;this.canSortLocally?t&&this.localSortConfig?this.localSortConfig={key:t,ascending:n}:this.localSortConfig=void 0:(this.$emit("sort",{key:t,sortDirection:n?"asc":"desc"}),this.pageIndex=0,this.$emit("page",this.pageIndex))},isCheckmarked:function(e){return!this.isSelected[e]!==!this.selectionAsBlacklist},onSelect:function(e){var t=Object(o["a"])({},this.isSelected);t[e]?delete t[e]:t[e]=!0,this.emitSelected(t)},onSelectAll:function(e){this.$emit("selectionAsBlacklist",e),this.$emit("selected",[])},emitSelected:function(e){var t=this,n=Object.values(this.pages).flat(),a=n.filter((function(n){return e[t.constructRowId(n)]}));this.$emit("selected",a)},onOrderChanged:function(e){var t=this.pageIndex;this.$emit("orderChanged",{pageIndex:t,rows:Object(s["a"])(e)})}}},h=p,f=(n("6a99"),n("2877")),m=Object(f["a"])(h,a,i,!1,null,"00ef267f",null);t["a"]=m.exports},"951f":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".invalid[data-v-1513d866]{color:var(--color-danger)}label[data-v-1513d866]{display:block;margin-top:8px}.label-item[data-v-1513d866]{margin-top:8px;margin-bottom:8px}",""]),e.exports=t},"95ea":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[!e.loading&&e.rows.length?n("Table",{attrs:{tableId:"e1078c62-25d3-4185-a475-a6c2a2e7106f",headers:e.headers,rows:e.rows,rowsPerPage:10,rowId:"sid"},on:{"click-label":e.openEditModal,"action-DELETE":e.openDeleteModal}}):e.loading?n("div",{staticClass:"text-centered"},[n("AnimatedSpinner")],1):n("div",[e._v("Keine Daten")]),n("BaseModal",{ref:"modalDelete",attrs:{modalTitle:"Eintrag löschen",size:"sm"},on:{onConfirmButton:function(t){return e.deleteAppointment()}},scopedSlots:e._u([{key:"default",fn:function(){return[e._v(' Soll der Eintrag "'+e._s(e.appointmentToDelete&&e.appointmentToDelete.label||"")+'" wirklich gelöscht werden? ')]},proxy:!0}])})],1)},i=[],s=n("1da1"),o=n("5530"),r=(n("96cf"),n("d81d"),n("a15b"),n("4de4"),n("159b"),n("b0c0"),n("99af"),n("2f62")),l=n("41d3"),c=n("a2eb"),d=(n("de6c"),n("c0a4")),u=n("689f"),p=n("d53f"),h=n("2042"),f=n("a871"),m=n("025b"),b=n("bc9e"),v={UNBESTAETIGTE_VERGANGENHEIT:"warning",UNBESTAETIGTE_ZUKUNFTIG:"info",BESTAETIGTE:"success"},g="SonstigeProdukte",E={data:function(){return{loading:!1,appointmentToDelete:null,headers:{lockedLeft:[Object(p["TextColumn"])("label","Betreff").makeLink()],center:[Object(p["PillColumn"])("wvStatusMessage","Status"),Object(p["IconColumn"])("retry","Wiederholung"),Object(p["DateTimeColumn"])("begin","Zeitpunkt"),Object(p["TextColumn"])("adressatText","Adressat"),Object(p["TextColumn"])("text","Text"),Object(p["TextColumn"])("artText","Art"),Object(p["TextColumn"])("bereichText","Bereich"),Object(p["TextColumn"])("customerNames","Beteiligte Kunden"),Object(p["TextColumn"])("ownerName","Besitzer"),Object(p["DateColumn"])("dateCreated","Erstellungsdatum"),Object(p["CurrencyColumn"])("geschaeftwert","Geschätzter Geschäftswert"),Object(p["TextColumn"])("produkt","Produkt"),Object(p["TextColumn"])("sellingPhaseText","Verkaufphase"),Object(p["TextColumn"])("statusText","Status")],lockedRight:[Object(p["ActionColumn"])("actions","Aktionen")]},MAP_WV_STATUS_TO_PILL_TYPE:v,BEREICH:g}},computed:Object(o["a"])(Object(o["a"])({},Object(r["b"])({sprodId:c["default"].GETTERS.SELECTED_SPROD_ID,otherProduct:c["default"].GETTERS.OTHER_PRODUCT,appointments:c["default"].GETTERS.APPOINTMENTS,appointmentCombos:c["default"].GETTERS.APPOINTMENT_COMBOS})),{},{rows:function(){var e=this,t=[Object(p["SimpleAction"])("DELETE","PhTrash","Löschen")];return(this.appointments||[]).map((function(n){var a,i,s,r;return Object(o["a"])(Object(o["a"])({},n.appointment),{},{retry:n.appointment.retry&&"Keine"!==n.appointment.retry?[Object(p["Icon"])(d["PhCheck"],"Ja",24)]:void 0,wvStatusMessage:n.appointment.wvStatus?{label:null===(a=e.appointmentCombos)||void 0===a||null===(i=a.wvStatusMessage)||void 0===i?void 0:i[n.appointment.wvStatus],type:v[n.appointment.wvStatus]}:void 0,artText:n.appointment.art?null===(s=e.appointmentCombos)||void 0===s||null===(r=s.artComboWV)||void 0===r?void 0:r[n.appointment.art]:"",adressatText:e.getAdressatText(n.appointment,n.beteiligteOutput),bereichText:e.getBereichText(n.appointment),customerNames:n.beteiligteOutput.filter((function(e){return!(null===e||void 0===e||!e.customerName)})).map((function(e){return null===e||void 0===e?void 0:e.customerName})).join(", "),sellingPhaseText:e.getSellingPhaseText(n.appointment),statusText:e.getStatusText(n.appointment),actions:t})}))}}),watch:{sprodId:{handler:function(){this.findAppointments()},immediate:!0}},methods:{findAppointments:function(){this.$store.dispatch(c["default"].ACTIONS.FIND_APPOINTMENTS)},openEditModal:function(e){this.$store.commit(l["default"].MUTATIONS.SET_CLICKED_ON_EVENT,!0),this.$store.dispatch(l["default"].ACTIONS.RETRIEVE_SELECTED_APPOINTMENT,e.sid),this.openAppointment()},openDeleteModal:function(e){this.appointmentToDelete=Object(o["a"])({},e),this.$refs.modalDelete.open()},deleteAppointment:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.appointmentToDelete){t.next=7;break}return e.$store.commit(l["default"].MUTATIONS.SET_APPOINTMENT,e.appointmentToDelete),e.loading=!0,t.next=5,e.$store.dispatch(l["default"].ACTIONS.DELETE_APPOINTMENT);case 5:e.loading=!1,e.findAppointments();case 7:case"end":return t.stop()}}),t)})))()},openAppointment:function(){this.$store.commit(l["default"].MUTATIONS.SET_APPOINTMENT_CONFIG,{title:"Aktivität bearbeiten",bereich:this.BEREICH,bereichId:this.sprodId,isActivity:!1,selectedDate:null,discardChanges:this.resetAppointment,back:this.$router.currentRoute.fullPath}),this.$router.push({path:"/communication/appointment"})},resetAppointment:function(){this.$store.commit(l["default"].MUTATIONS.RENEW_CALENDAR_DATA)},renewAppointmentView:function(){this.findAppointments()},getAdressatText:function(e,t){var n=[];return null!==e&&void 0!==e&&e.ownerName&&n.push(e.ownerName),t.forEach((function(e){return n.push(e.name)})),n.join(", ")},getBereichText:function(e){var t,n,a,i,s,o,r,l=(null===(t=this.appointmentCombos)||void 0===t||null===(n=t.bereichCombo)||void 0===n?void 0:n[e.bereich])||"",c=[];null!==(a=this.otherProduct)&&void 0!==a&&a.company&&c.push(this.otherProduct.company),null!==(i=this.otherProduct)&&void 0!==i&&i.produktart&&c.push(this.otherProduct.produktart);var d,u,p=[];(null!==(s=this.otherProduct)&&void 0!==s&&s.anlageArtenImmobilie&&p.push(this.otherProduct.anlageArtenImmobilie),null!==(o=this.otherProduct)&&void 0!==o&&o.produktbez)&&p.push(null===(d=this.otherProduct)||void 0===d?void 0:d.produktbez);null!==(r=this.otherProduct)&&void 0!==r&&r.sprodNr&&p.push(null===(u=this.otherProduct)||void 0===u?void 0:u.sprodNr);return"".concat(l,": ").concat(c.join(", "),"(").concat(p.join(", "),")")},getSellingPhaseText:function(e){var t,n;return e.sellingPhase&&e.activity?null===(t=this.appointmentCombos)||void 0===t||null===(n=t.verkaufsphaseWVCombo)||void 0===n?void 0:n[e.sellingPhase]:""},getStatusText:function(e){var t,n,a,i;return e.status?e.activity?null===(t=this.appointmentCombos)||void 0===t||null===(n=t.statusComboWV)||void 0===n?void 0:n[e.status]:null===(a=this.appointmentCombos)||void 0===a||null===(i=a.statusComboAufgabe)||void 0===i?void 0:i[e.status]:""}},mounted:function(){},components:{PhCheck:d["PhCheck"],Table:u["a"],AnimatedSpinner:h["a"],BaseModal:f["a"],AppointmentEditCreate:b["default"],Pill:m["a"]}},_=E,S=n("2877"),T=Object(S["a"])(_,a,i,!1,null,null,null);t["a"]=T.exports},"99dd":function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".container[data-v-2015b4da]{display:-webkit-box;display:-ms-flexbox;display:flex}",""]),e.exports=t},"9af6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BaseModal",{ref:"uploadModal",attrs:{modalTitle:"Datei hochladen",confirmDisabled:!e.canUpload,labelButtonConfirm:"Hochladen"},on:{onConfirmButton:e.doUpload,close:e.close}},[n("div",[e.additionalInputs?n("div",{staticClass:"grid"},[e.uploadType!=e.upload_Type.FROM_DOKUMENTENARCHIV&&e.cameraAvailable&&e.allowFotoUpload?n("FotoButton",{staticClass:"mb-1",staticStyle:{float:"left"},attrs:{isSecondary:"",edgeCorrection:"",highQuality:"",camera:"back"},on:{file:e.onFoto}},[e._v(" Fotografieren ")]):e._e(),e.multipleFileUpload?n("MultiFileSelect",{attrs:{disabled:e.uploadType==e.upload_Type.FROM_DOKUMENTENARCHIV,maxFileSizeMB:e.maxFileSizeMB,accept:e.accept},on:{input:e.dropFiles},model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}}):n("BaseFileSelect",{attrs:{disabled:e.uploadType==e.upload_Type.FROM_DOKUMENTENARCHIV,accept:e.accept},on:{files:e.dropFiles}}),e.additionalInputs.length?n("UploadInputList",{attrs:{inputs:e.additionalInputs},model:{value:e.formData,callback:function(t){e.formData=t},expression:"formData"}}):e._e()],1):e._e()])])],1)},i=[],s=n("5530"),o=(n("dca8"),n("a9e3"),n("b64b"),n("7db0"),n("caad"),n("2532"),n("b0c0"),n("ac1f"),n("5319"),n("159b"),n("d137")),r=n("e411"),l=n("0169"),c=n("f989"),d=n("8839"),u=n("a871"),p=n("00cb"),h=n("a388"),f=n("a482"),m=n("de6c"),b=n("876f"),v=n("98fc"),g=n("a2c3"),E=Object.freeze({DEFAULT:1,DOKUMENTE_HINZUFUGEN:2,CUSTOM:3,BEDARFSERMITTLUNG:4,FROM_DOKUMENTENARCHIV:5}),_={mixins:[d["a"]],components:{MultiFileSelect:o["a"],UploadInputList:c["a"],BaseModal:u["a"],BaseFileSelect:p["a"],FotoButton:h["a"]},props:{files:{default:null,type:Array},accept:{default:"*",type:String},additionalInputs:{required:!0,type:Array},parentId:{type:String},openOnMount:{type:Boolean,default:!0},uploadType:{type:Number,default:1},documentString:{type:String},multipleFileUpload:{type:Boolean,default:!0},customUpload:{type:Function},versicherungId:{type:[String,Number],default:null,required:!1},schadenId:{type:[String,Number],default:null,required:!1},showOnlySchadenDocs:{type:Boolean,default:!1},allowFotoUpload:{type:Boolean,default:!0},suppressReload:{type:Boolean,default:!1},maxFileSizeMB:{type:Number,default:0}},data:function(){var e=this.getFormData();return Object(s["a"])(Object(s["a"])({fileList:this.files},e&&Object.keys(e).length?{formData:e}:{}),{},{cameraAvailable:!1,bezeichnungFields:["input_bezeichnung","INPUT_BEZEICHNUNG"]})},computed:{upload_Type:function(){return E},canUpload:function(){var e,t=this;return 0!=(null===(e=this.fileList)||void 0===e?void 0:e.length)&&!this.additionalInputs.some((function(e){return e.valid&&!t.evaluateUploadExpression(e.valid)}))}},watch:{additionalInputs:function(){this.formData=this.getFormData()}},mounted:function(){var e,t=this;this.openOnMount&&(this.$refs.uploadModal.open(),this.guessBezeichnung()),navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices&&navigator.mediaDevices.enumerateDevices().then((function(e){t.cameraAvailable=e.some((function(e){return"videoinput"==e.kind}))})),null!==(e=this.formData)&&void 0!==e&&e.INPUT_KATEGORIE&&this.showOnlySchadenDocs&&(this.formData.INPUT_KATEGORIE="SCHADENMELDUNG")},methods:{dropFiles:function(e){this.fileList=e,this.guessBezeichnung()},guessBezeichnung:function(){var e=this;if(this.additionalInputs&&this.fileList&&1===this.fileList.length){var t,n=this.additionalInputs.find((function(t){return e.bezeichnungFields.includes(t.key)}));if(n&&!this.formData[n.key])this.formData[n.key]=(null===(t=this.fileList[0].name)||void 0===t?void 0:t.replace(/\.[^/.]+$/,""))||""}},evaluateUploadExpression:function(e){return this.evaluateExpression(this.formData,e)},getFormData:function(){var e={};return this.additionalInputs.forEach((function(t){"DATE"==t.type?e[t.key]=Object(v["b"])(t.value):"LABEL"!=t.type&&(e[t.key]=t.value)})),e},onFoto:function(e){this.multipleFileUpload?this.fileList.push(e):this.fileList=[e],this.guessBezeichnung()},doUpload:function(){var e=this,t=Object(s["a"])({},this.formData);this.additionalInputs.forEach((function(n){n.ignore&&e.evaluateUploadExpression(n.ignore)&&(t[n.key]=null)})),this.fileList.forEach((function(n,a){switch(e.uploadType){case E.DOKUMENTE_HINZUFUGEN:Object(r["c"])(n).then((function(n){e.$store.dispatch(l["default"].ACTIONS.DOKUMENTE_HINZUFUGEN_UPLOAD,Object(s["a"])({documentString:decodeURIComponent(e.documentString),parentId:e.parentId,fileId:n},t&&Object.keys(t).length?{formData:t}:{}))}));break;case E.CUSTOM:e.customUpload?Object(r["c"])(n).then((function(n){e.customUpload({id:n,formData:t})})).catch((function(t){e.$store.dispatch(m["default"].ACTIONS.ADD_MESSAGE,Object(b["b"])("Die Datei kann nicht hochgeladen werden.","danger"))})):console.error("customUpload -> not valid function");break;case E.BEDARFSERMITTLUNG:Object(r["c"])(n).then((function(n){e.$store.dispatch(f["default"].ACTIONS.FINANZPORTAL24_ONLINE_FILELINK,{fileId:n,formData:t}).then((function(e){console.log(e),window.open(e,"_blank")}))}));break;case E.FROM_DOKUMENTENARCHIV:e.$store.dispatch(l["default"].ACTIONS.UPLOAD_DOCUMENT,{fileId:null===n||void 0===n?void 0:n.id,parentId:null===n||void 0===n?void 0:n.nodeId,formData:t,versicherungId:null===n||void 0===n?void 0:n.insuranceId,schadenId:null===n||void 0===n?void 0:n.schadenId}),e.$store.commit(g["default"].MUTATIONS.SET_ATTACHMENTS,{action:"clear"});break;default:Object(r["c"])(n).then((function(n){e.$store.dispatch(l["default"].ACTIONS.UPLOAD_DOCUMENT,{fileId:n,parentId:e.parentId,formData:t,versicherungId:e.versicherungId,schadenId:e.schadenId,suppressReload:e.fileList.length-1!==a||e.suppressReload}).then((function(){e.fileList.length-1==a&&e.$emit("uploadComplete")}))}));break}}))},close:function(){var e=this;this.$nextTick((function(){e.$store.commit(l["default"].MUTATIONS.RETRIEVE_ADDITIONAL_UPLOAD_INPUTS_SUCCESS,null),e.$emit("close")}))},open:function(){this.$refs.uploadModal.open()}}},S=_,T=n("2877"),y=Object(T["a"])(S,a,i,!1,null,null,null);t["a"]=y.exports},"9ce7":function(e,t,n){"use strict";n("66fd")},"9dde":function(e,t,n){var a=n("2b3f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("e49a117a",a,!0,{sourceMap:!1,shadowMode:!1})},a0cd1:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".multi-file-primary[data-v-44c0adea]{border:1px solid var(--color-primary);color:var(--color-primary);background-color:var(--color-top-nav-background)}.multi-file-secondary[data-v-44c0adea]{border:1px solid var(--color-secondary);color:var(--color-secondary);background-color:var(--color-workspaces-nav-background)}.multi-file-primary[data-v-44c0adea],.multi-file-secondary[data-v-44c0adea]{text-align:center;font-size:1em;display:-webkit-box;display:-ms-flexbox;display:flex}.multi-file-primary>span[data-v-44c0adea],.multi-file-secondary>span[data-v-44c0adea]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.multi-file-primary>i[data-v-44c0adea],.multi-file-secondary>i[data-v-44c0adea]{border-left:inherit;color:#e00;padding:3px;cursor:pointer}.upload-btn[data-v-44c0adea]{position:relative}.upload-btn--label[data-v-44c0adea]{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0}.upload-btn--label input[data-v-44c0adea]{display:none}.flex-layout[data-v-44c0adea]{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:wrap;flex-flow:wrap;margin-top:8px}.flex-layout div[data-v-44c0adea]{margin-bottom:8px}.pill__container[data-v-44c0adea]{margin-right:8px}hr[data-v-44c0adea]{margin-top:8px;margin-bottom:8px}",""]),e.exports=t},a263:function(e,t,n){"use strict";n("fe94")},a4a6:function(e,t,n){var a=n("a0cd1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("082a2cce",a,!0,{sourceMap:!1,shadowMode:!1})},a6ea:function(e,t,n){"use strict";var a=n("5530"),i=(n("ac1f"),n("5319"),n("b680"),n("d3b7"),n("25f0"),n("a9e3"),n("b0c0"),n("d81d"),n("4de4"),n("99af"),n("a15b"),n("caad"),n("5a0c")),s=n.n(i),o=n("de6c"),r=n("a2c9"),l=n("2f62"),c=n("2684"),d=n("8942"),u=n("97bc"),p=["short","decimal-short","full"];function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(isNaN(e))return e;var a=0!==t?(e/1).toFixed(t).replace(".",","):parseInt(e/1).toString().replace(".",",");return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")+" ".concat(n,"€")}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(isNaN(e))return e;var a=0!==t?(e/1).toFixed(t).replace(".",","):parseInt(e/1).toString().replace(".",",");return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")+" ".concat(n,"%")}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return isNaN(e)||"number"!==typeof e?e||"":e.toLocaleString("de-DE",{minimumFractionDigits:0,maximumFractionDigits:t})}t["a"]={props:{chartDataName:{type:String,default:""},format:{type:String,default:"currency"},height:{type:String,default:"200px"},numberFixed:{type:Number,default:2},isTooltip:{type:Boolean,default:!0},isLegend:{type:Boolean,default:!1},showXaxis:{type:Boolean,default:!0},showYaxis:{type:Boolean,default:!0},customColors:{type:Array,default:null},axisLabelFormatterShowOption:{type:String|Number,default:"short"}},data:function(){return{themeKey:Object(d["b"])(),themeColors:Object(u["f"])()}},computed:{style:function(){var e=this.height;if(this.isMobileNativeContext){var t=parseInt(this.height);e="".concat(t/1.33,"px")}return Object(a["a"])({width:"100%",height:e},Object(l["b"])({isMobileNativeContext:c["default"].GETTERS.IS_MOBILE_NATIVE_CONTEXT}))}},methods:{formattedValue:function(e){return"currency"===this.format?h(e||0,this.numberFixed):"percent"===this.format?f(e||0,this.numberFixed):e},formattedXValue:function(e,t){return"xAxis.time"===t?s()(e).format("DD.MM.YYYY"):e},yValue:function(e){return Array.isArray(e)?e[1]:e},tooltipFormatter:function(e){var t=this;if(Array.isArray(e)){var n,a=e[0],i=this.chartSeries.length&&(null===(n=this.chartSeries[0].config)||void 0===n?void 0:n.tooltipRow),s=a.name||this.formattedXValue(a.axisValueLabel,a.axisType)||"",o=e.filter((function(e){return Array.isArray(e.value)||!isNaN(e.value)})).map((function(e){if(i)return i(e,t.chartSeries);var n=e.marker,a=e.seriesName,s=e.value,o=t.formattedValue(t.yValue(s));return"<div><span>".concat(n,"</span> <span>").concat(a,":</span> <b>").concat(o,"</b></div>")}));return'\n          <div class="tooltip-series">\n            <div><b>'.concat(s,'</b></div>\n            <div class="tooltip-series-table">').concat(o.join(""),"</div>\n          </div>\n        ")}var r=e.marker,l=e.seriesName,c=e.name,d=e.value,u=this.formattedValue(this.yValue(d));return"\n          <div>\n            <div><b>".concat(l,'</b></div>\n            <div class="tooltip-series-label">\n              <div><span>').concat(r,"</span>").concat(c,':<wbr>\n                <span style="white-space: nowrap;"><b>').concat(u,"</b></span>\n              </div>\n            </div>\n          </div>")},axisLabelFormatter:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"short";return p.includes(t)||this.$store.dispatch(o["default"].ACTIONS.WARN,'axisLabelFormatter got invalid value as showOption: "'.concat(t,'"')),function(n){var a="",i=n,s=2;if("full"!==t)if(n>=1e6||n<=-1e6?(i/=1e6,a="M"):(n>=1e3||n<=-1e3)&&(i/=1e3,a="T"),"short"===t)s=1;else if("number"===typeof t)return"currency"===e.format?a+="€":"percent"===e.format&&(a+="%"),m(i,t)+" "+a;return"currency"===e.format?m(i,s)+" "+a+"€":"percent"===e.format?m(i,s)+" "+a+"%":"integer"===e.format?Object(r["a"])(i,0)+(a?" "+a:""):i}},dispatchAction:function(e){var t,n;null!==(t=this.$refs)&&void 0!==t&&t.chart&&(null===(n=this.$refs.chart)||void 0===n||n.dispatchAction(e))},handleColorSchemeChanged:function(){var e=this;this.$nextTick((function(){return requestAnimationFrame((function(){e.themeKey=Object(d["b"])(),e.themeColors=Object(u["f"])()}))}))}},mounted:function(){window.addEventListener(d["a"].name,this.handleColorSchemeChanged)},destroyed:function(){window.removeEventListener(d["a"].name,this.handleColorSchemeChanged)}}},a77e:function(e,t,n){var a=n("c920");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("77645d7e",a,!0,{sourceMap:!1,shadowMode:!1})},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},a947:function(e,t,n){"use strict";n("8eb3")},afbc:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".simple-additional-documents-table__dropzone[data-v-60670aff]{display:flow-root}",""]),e.exports=t},b06f:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[n("InputField",{attrs:{label:"Produktbezeichnung",isComponentHalfSize:!0,value:e.produktbezeichnung,disabled:!0}}),n("AbrechnungenTable"),n("VerteilungAbrechnungStrukturTable")],1)},i=[],s=n("5530"),o=(n("498a"),n("99af"),n("2f62")),r=n("a2eb"),l=n("c704"),c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"box__title"},[e._v("Abrechnungen")]),!e.loading&&e.rows.length?n("Table",{attrs:{tableId:"2e6961b2-7f82-4d53-809c-b67ecc15f500",headers:e.headers,rows:e.rows,rowsPerPage:10},on:{"action-VIEW_PROV_STRUKTUR":e.selectBuchung}}):e.loading?n("div",{staticClass:"text-centered"},[n("AnimatedSpinner")],1):n("div",[e._v("Keine Daten")])],1)},d=[],u=n("1da1"),p=(n("96cf"),n("a434"),n("d81d"),n("64c5")),h=n("689f"),f=n("d53f"),m=n("2042"),b={data:function(){return{loading:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(o["b"])({buchungen:r["default"].GETTERS.BUCHUNGEN,combos:r["default"].GETTERS.COMBOS,isBrokerMaster:p["default"].GETTERS.IS_BROKER_MASTER,isIntern:p["default"].GETTERS.IS_INTERN})),{},{allowEditCourtage:function(){var e;return this.isBrokerMaster&&(null===(e=this.combos)||void 0===e?void 0:e.allowReadVertragAbrechnung)||this.isIntern},headers:function(){var e={lockedLeft:[Object(f["TextColumn"])("buchungsnr","Buchungsnr")],center:[Object(f["DateColumn"])("datum","Datum"),Object(f["DateColumn"])("courtageeingDatum","Prov. Eingang"),Object(f["TextColumn"])("courtageart","Prov. Art"),Object(f["CurrencyColumn"])("bezugssumme","Bez.Summe"),Object(f["TextColumn"])("status","Status"),Object(f["DateColumn"])("rechDatum","Abr. Datum"),Object(f["TextColumn"])("bemerkung","Bemerkung")],lockedRight:[Object(f["ActionColumn"])("actions","Aktionen")]};return this.allowEditCourtage&&(e.center.splice(4,0,Object(f["CurrencyColumn"])("courtagesumme","Courtagesumme")),e.center.splice(6,0,Object(f["TextColumn"])("automatisch","Auto"))),e},rows:function(){var e=[Object(f["SimpleAction"])("VIEW_PROV_STRUKTUR","PhList","Verteilung der Abrechnung auf die Struktur")];return(this.buchungen||[]).map((function(t){return Object(s["a"])(Object(s["a"])({},t),{},{actions:t.allowModify?void 0:e})}))}}),methods:{findBuchungen:function(){var e=this;return Object(u["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$store.dispatch(r["default"].ACTIONS.FIND_BUCHUNGEN);case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()},selectBuchung:function(e){this.$store.commit(r["default"].MUTATIONS.SET_SELECTED_BUCHUNG,e)}},mounted:function(){this.findBuchungen()},components:{Table:h["a"],AnimatedSpinner:m["a"]}},v=b,g=n("2877"),E=Object(g["a"])(v,c,d,!1,null,null,null),_=E.exports,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.selectedBuchungsnr?n("div",[n("div",{staticClass:"box__title"},[e._v("Verteilung der Abrechnung auf die Struktur (Buchungsnr: "+e._s(e.selectedBuchung.buchungsnr)+")")]),!e.loading&&e.rows.length?n("Table",{attrs:{tableId:"d559997a-68e9-4bbe-9463-b8a2353e7b28",headers:e.headers,rows:e.rows,rowsPerPage:10,rowId:"lfdNr"}}):e.loading?n("div",{staticClass:"text-centered"},[n("AnimatedSpinner")],1):n("div",[e._v("Keine Daten")])],1):e._e()},T=[],y={data:function(){return{loading:!1}},computed:Object(s["a"])(Object(s["a"])({},Object(o["b"])({selectedBuchung:r["default"].GETTERS.SELECTED_BUCHUNG,buchungProvStrukturen:r["default"].GETTERS.BUCHUNG_PROV_STRUKTUREN,combos:r["default"].GETTERS.COMBOS,isBrokerMaster:p["default"].GETTERS.IS_BROKER_MASTER,isIntern:p["default"].GETTERS.IS_INTERN})),{},{selectedBuchungsnr:function(){var e;return null===(e=this.selectedBuchung)||void 0===e?void 0:e.id},allowEditCourtage:function(){var e;return this.isBrokerMaster&&(null===(e=this.combos)||void 0===e?void 0:e.allowReadVertragAbrechnung)||this.isIntern},headers:function(){var e={lockedLeft:[Object(f["TextColumn"])("lfdNr","Lfd. Nr.")],center:[Object(f["TextColumn"])("maklernr","Vermittlernr"),Object(f["CurrencyColumn"])("betrag","Prov. Betrag")]};return this.allowEditCourtage&&(e.center.splice(1,0,Object(f["PercentageColumn"])("provSatz","Prov. Satz")),e.center.push(Object(f["TextColumn"])("aenderung","Änderung")),e.center.push(Object(f["PercentageColumn"])("prozentsatz","Prozent"))),e.center.push(Object(f["PercentageColumn"])("mwst","MwSt.")),e},rows:function(){return this.buchungProvStrukturen||[]}}),watch:{selectedBuchungsnr:function(e){e&&this.findBuchungProvStrukturen()}},methods:{findBuchungProvStrukturen:function(){var e=this;return Object(u["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$store.dispatch(r["default"].ACTIONS.FIND_BUCHUNG_PROV_STRUKTUREN);case 3:e.loading=!1;case 4:case"end":return t.stop()}}),t)})))()}},components:{Table:h["a"],AnimatedSpinner:m["a"]}},x=y,k=Object(g["a"])(x,S,T,!1,null,null,null),A=k.exports,I={data:function(){return{selectedItem:null}},computed:Object(s["a"])(Object(s["a"])({},Object(o["b"])({otherProduct:r["default"].GETTERS.OTHER_PRODUCT})),{},{produktbezeichnung:function(){var e,t;return"".concat(null===(e=this.otherProduct)||void 0===e?void 0:e.produktart," ").concat((null===(t=this.otherProduct)||void 0===t?void 0:t.produktbez)||"").trim()}}),components:{InputField:l["default"],AbrechnungenTable:_,VerteilungAbrechnungStrukturTable:A}},C=I,w=Object(g["a"])(C,a,i,!1,null,null,null);t["a"]=w.exports},b4fe:function(e,t,n){"use strict";n("fb6b")},b543:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,'.vertical-step__action-container{display:contents}.vertical-stop__action{-ms-flex-negative:0;flex-shrink:0}.vertical-stepper-item--title{background:var(--color-box);border-radius:4px;-webkit-box-shadow:-2px 2px 3px rgba(85,85,85,.1);box-shadow:-2px 2px 3px rgba(85,85,85,.1);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--color-text);margin:-20px 0 0 44px;padding:8px 16px;pointer-events:none;position:absolute;top:0;left:0;height:40px}.vertical-stepper-item--title.vertical-stepper-item--title--selected{font-weight:510}.vertical-stepper-item--title:after{content:"";-webkit-box-sizing:border-box;box-sizing:border-box;border:.5em solid #000;border-color:transparent transparent var(--color-box) var(--color-box);-webkit-box-shadow:-1px 1px 3px 0 rgba(85,85,85,.1);box-shadow:-1px 1px 3px 0 rgba(85,85,85,.1);margin-top:-.75rem;-webkit-transform-origin:0 0;transform-origin:0 0;-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;left:0;top:50%;width:0;height:0}',""]),e.exports=t},b67f:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".container[data-v-44a6ff20]{height:24px;width:24px;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.stop-content[data-v-44a6ff20]{border-radius:50%;width:100%;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.2);box-shadow:0 0 5px 0 rgba(0,0,0,.2);outline:none}.stop-content[data-v-44a6ff20]:hover{-webkit-box-shadow:0 0 5px 0 #000;box-shadow:0 0 5px 0 #000}.stop-label[data-v-44a6ff20]{position:absolute;top:16px;font-size:.75rem;display:none;color:var(--text-etikett);outline:none}.stop-content__current[data-v-44a6ff20]{-webkit-box-shadow:0 0 5px 0 #000;box-shadow:0 0 5px 0 #000}.stop-label__current[data-v-44a6ff20]{font-size:.93rem;display:inherit;color:var(--text-primaer)}.stop-checkmark-small[data-v-44a6ff20]{background-color:#28a745;width:100%;height:100%;border-radius:50%}.stop-exclamation-mark-small[data-v-44a6ff20]{background-color:#dc3545;width:100%;height:100%;border-radius:50%}.stop-label--center[data-v-44a6ff20]{text-align:center;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.stop-label--right[data-v-44a6ff20]{text-align:right;right:0}.stop-label--left[data-v-44a6ff20]{text-align:left;left:0}.stop-checkmark[data-v-44a6ff20]{display:none;width:24px;height:24px;border-radius:50%;stroke-width:2;stroke:var(--color-box);stroke-miterlimit:10;-webkit-box-shadow:inset 0 0 0 #28a745;box-shadow:inset 0 0 0 #28a745;-webkit-animation:fill-data-v-44a6ff20 .4s ease-in-out .4s forwards,scale-data-v-44a6ff20 .3s ease-in-out .9s both;animation:fill-data-v-44a6ff20 .4s ease-in-out .4s forwards,scale-data-v-44a6ff20 .3s ease-in-out .9s both}.stop-checkmark__circle[data-v-44a6ff20]{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#28a745;fill:none;-webkit-animation:stroke-data-v-44a6ff20 .6s cubic-bezier(.65,0,.45,1) forwards;animation:stroke-data-v-44a6ff20 .6s cubic-bezier(.65,0,.45,1) forwards}.stop-checkmark__content[data-v-44a6ff20]{-webkit-transform-origin:50% 50%;transform-origin:50% 50%;stroke-dasharray:48;stroke-dashoffset:48;stroke:var(--color-box);-webkit-animation:stroke-data-v-44a6ff20 .3s cubic-bezier(.65,0,.45,1) .8s forwards;animation:stroke-data-v-44a6ff20 .3s cubic-bezier(.65,0,.45,1) .8s forwards}.stop-exclamation-mark[data-v-44a6ff20]{display:none;width:24px;height:24px;border-radius:50%;stroke-width:2;stroke:var(--color-box);stroke-miterlimit:10;-webkit-box-shadow:inset 0 0 0 #dc3545;box-shadow:inset 0 0 0 #dc3545;-webkit-animation:fill-warning-data-v-44a6ff20 .4s ease-in-out .4s forwards,scale-data-v-44a6ff20 .3s ease-in-out .9s both;animation:fill-warning-data-v-44a6ff20 .4s ease-in-out .4s forwards,scale-data-v-44a6ff20 .3s ease-in-out .9s both}.stop-exclamation-mark__circle[data-v-44a6ff20]{stroke-dasharray:166;stroke-dashoffset:166;stroke-width:2;stroke-miterlimit:10;stroke:#dc3545;fill:none;-webkit-animation:stroke-data-v-44a6ff20 .6s cubic-bezier(.65,0,.45,1) forwards;animation:stroke-data-v-44a6ff20 .6s cubic-bezier(.65,0,.45,1) forwards}.stop-exclamation-mark__content[data-v-44a6ff20]{-webkit-transform-origin:50% 50%;transform-origin:50% 50%;fill:var(--color-box);-webkit-animation:shake-data-v-44a6ff20 .3s cubic-bezier(.65,0,.45,1) .8s forwards;animation:shake-data-v-44a6ff20 .3s cubic-bezier(.65,0,.45,1) .8s forwards}.stop-loading[data-v-44a6ff20]{display:none}.stop-loading-small[data-v-44a6ff20]{border-radius:50%;background:#666;border:1px solid #666;-webkit-animation:pulse-data-v-44a6ff20 .8s linear infinite;animation:pulse-data-v-44a6ff20 .8s linear infinite;width:100%;height:100%}.stop-loading__circle[data-v-44a6ff20]{-webkit-transform-origin:50% 50%;transform-origin:50% 50%;-webkit-animation:infinite-rotate-data-v-44a6ff20 .8s linear infinite;animation:infinite-rotate-data-v-44a6ff20 .8s linear infinite;stroke:#666}svg[data-v-44a6ff20]{vertical-align:inherit}@-webkit-keyframes pulse-data-v-44a6ff20{0%{opacity:1}50%{opacity:.2}to{opacity:1}}@keyframes pulse-data-v-44a6ff20{0%{opacity:1}50%{opacity:.2}to{opacity:1}}@-webkit-keyframes infinite-rotate-data-v-44a6ff20{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes infinite-rotate-data-v-44a6ff20{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes shake-data-v-44a6ff20{0%,to{-webkit-transform:none;transform:none}20%,60%{-webkit-transform:rotate(7deg);transform:rotate(7deg)}40%,80%{-webkit-transform:rotate(-7deg);transform:rotate(-7deg)}}@keyframes shake-data-v-44a6ff20{0%,to{-webkit-transform:none;transform:none}20%,60%{-webkit-transform:rotate(7deg);transform:rotate(7deg)}40%,80%{-webkit-transform:rotate(-7deg);transform:rotate(-7deg)}}@-webkit-keyframes stroke-data-v-44a6ff20{to{stroke-dashoffset:0}}@keyframes stroke-data-v-44a6ff20{to{stroke-dashoffset:0}}@-webkit-keyframes scale-data-v-44a6ff20{0%,to{-webkit-transform:none;transform:none}50%{-webkit-transform:scale3d(1.1,1.1,1);transform:scale3d(1.1,1.1,1)}}@keyframes scale-data-v-44a6ff20{0%,to{-webkit-transform:none;transform:none}50%{-webkit-transform:scale3d(1.1,1.1,1);transform:scale3d(1.1,1.1,1)}}@-webkit-keyframes fill-data-v-44a6ff20{to{-webkit-box-shadow:inset 0 0 0 30px #28a745;box-shadow:inset 0 0 0 30px #28a745}}@keyframes fill-data-v-44a6ff20{to{-webkit-box-shadow:inset 0 0 0 30px #28a745;box-shadow:inset 0 0 0 30px #28a745}}@-webkit-keyframes fill-warning-data-v-44a6ff20{to{-webkit-box-shadow:inset 0 0 0 30px #dc3545;box-shadow:inset 0 0 0 30px #dc3545}}@keyframes fill-warning-data-v-44a6ff20{to{-webkit-box-shadow:inset 0 0 0 30px #dc3545;box-shadow:inset 0 0 0 30px #dc3545}}@media (min-width:992px){.stop-label[data-v-44a6ff20]{display:inherit}}@media (min-width:768px){[data-v-44a6ff20]:host{height:24px;width:24px}.stop-checkmark[data-v-44a6ff20],.stop-loading[data-v-44a6ff20]{display:inline}.stop-checkmark-small[data-v-44a6ff20],.stop-loading-small[data-v-44a6ff20]{display:none}.stop-exclamation-mark[data-v-44a6ff20]{display:inline}.stop-exclamation-mark-small[data-v-44a6ff20]{display:none}.stop-label[data-v-44a6ff20]{top:34px}}",""]),e.exports=t},b772:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".vertical-stepper--collapsable[data-v-bbf160a0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column}.vertical-stepper--collapsable .vertical-stepper--collapse-toggle__container[data-v-bbf160a0]{-ms-flex-item-align:end;align-self:flex-end;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;margin:0 8px 8px 0}.vertical-stepper--collapsable .vertical-stepper--collapse-toggle[data-v-bbf160a0]{margin:0;-webkit-transition:-webkit-transform .5s ease;transition:-webkit-transform .5s ease;transition:transform .5s ease;transition:transform .5s ease,-webkit-transform .5s ease}.vertical-stepper--collapsable .vertical-stepper--items[data-v-bbf160a0]{width:100%;max-width:268px;overflow:hidden;-webkit-transition:max-width .5s ease;transition:max-width .5s ease}.vertical-stepper--collapsable .vertical-stepper--items__wrap[data-v-bbf160a0]{min-width:268px}.vertical-stepper--collapsable.vertical-stepper--collapsed .vertical-stepper--collapse-toggle[data-v-bbf160a0]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.vertical-stepper--collapsable.vertical-stepper--collapsed .vertical-stepper--items[data-v-bbf160a0]{max-width:32px}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__substep-pipe[data-v-bbf160a0]{border-color:#999}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__substep__warning-pipe[data-v-bbf160a0]{border:2px solid var(--color-danger)}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__label--selected[data-v-bbf160a0],.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-substep__label--selected[data-v-bbf160a0]{font-weight:400}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__label--selected[data-v-bbf160a0]{font-size:inherit}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-substep__label--selected[data-v-bbf160a0]{font-size:.8rem}.vertical-stepper__container[data-v-bbf160a0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:-8px}.vertical-stepper__container>*[data-v-bbf160a0]{margin:8px}.vertical-stop__substep-pipe[data-v-bbf160a0]{border:1px solid #ccc;min-height:1rem}.vertical-stop__substep__warning-pipe[data-v-bbf160a0]{border:1px solid var(--color-danger);min-height:1rem}.vertical-stop__label--selected[data-v-bbf160a0]{font-weight:510;font-size:1.05rem}.vertical-stop__label[data-v-bbf160a0]{margin-left:8px}.vertical-stop__icon[data-v-bbf160a0]{-ms-flex-negative:0;flex-shrink:0}.stepper-item__container[data-v-bbf160a0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.stepper-item__container.disabled[data-v-bbf160a0]{cursor:not-allowed;opacity:.8}.stepper-item__icon[data-v-bbf160a0]{-webkit-box-flex:0;-ms-flex:0 0 32px;flex:0 0 32px;height:32px}.stepper-item__label[data-v-bbf160a0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.vertical-step__icon-container[data-v-bbf160a0]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vertical-step__icon-container[data-v-bbf160a0],.vertical-substep__icon-container[data-v-bbf160a0]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%}.vertical-substep__icon-container[data-v-bbf160a0]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding-left:45%;gap:5px}.vertical-substep__label[data-v-bbf160a0]{font-size:.8rem;margin-left:16px}.vertical-substep__label--selected[data-v-bbf160a0]{font-weight:510;font-size:.85rem}@media screen and (min-width:3840px){.app--is-test-user-context .vertical-stepper--collapsable .vertical-stepper--items[data-v-bbf160a0]{max-width:368px}}",""]),e.exports=t},b7d2:function(e,t,n){var a=n("8d03");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("0727d5a2",a,!0,{sourceMap:!1,shadowMode:!1})},bc9e: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",{staticClass:"event-body"},[e.isLoadingAppoiment?[n("GhostLoading",{attrs:{useBoxContainer:""}},[n("Block",{attrs:{type:"title"}}),n("Block",{attrs:{height:"250"}})],1)]:"Empfänger"===e.modus?[e.rowsEmpf.length?n("Table",{attrs:{rowId:"label",headers:e.empfHeaders,rows:e.rowsEmpf,hidePagination:""},scopedSlots:e._u([{key:"rolle",fn:function(t){return[n("div",{staticStyle:{"min-width":"9em"}},[n("ComboBox",{attrs:{label:"",value:t.rolle,values:e.rolleOptions},on:{input:function(n){t.rolle=n,e.onChangeEmpf(t.index,"rolle",n)}}})],1)]}}],null,!1,3527917488),model:{value:e.selectedEmpf,callback:function(t){e.selectedEmpf=t},expression:"selectedEmpf"}}):n("NoData",{attrs:{noIcon:"",content:"Keine Empfänger vorhanden"}}),n("BaseButton",{attrs:{isSecondary:"",label:"Zurück"},on:{click:function(t){e.showEmpfaenger=!1}}}),e.rowsEmpf.length?n("BaseButton",{attrs:{isSecondary:"",label:"Markierte Empfänger hinzufügen",disabled:!e.selectedEmpf.length},on:{click:e.setEmpfaenger}}):e._e(),n("BaseButton",{attrs:{isSecondary:"",label:"Empfängersuche"},on:{click:e.handleAddUsers}})]:[n("div",{staticClass:"d-flex"},[n("span",[e._v("Titel")]),e.versId?n("span",{staticClass:"pl-2"},[e._v(" | Interne Nummer: "),n("a",{on:{click:e.openInsurance}},[e._v(e._s(e.versId))])]):e._e(),e.versId&&e.schadenId?n("span",{staticClass:"pl-2"},[e._v(" | Schaden-Nr. "),n("a",{on:{click:e.openSchaden}},[e._v(e._s(e.schadenId))])]):e._e()]),e.preview?e._e():n("ShortcutInputField",{attrs:{label:"",validateUntouched:"",id:"title"},model:{value:e.label,callback:function(t){e.label=t},expression:"label"}}),e.preview?n("ShortcutInputField",{attrs:{label:"Titel",disabled:"",id:"preview_title",validateUntouched:""},model:{value:e.previewSubject,callback:function(t){e.previewSubject=t},expression:"previewSubject"}}):e._e(),"Aktivität"===e.modus?n("div",[n("InputField",{attrs:{label:"Bereich",value:e.additionalParamsBereich,disabled:!0}})],1):e._e(),n("hr"),n("div",{staticClass:"d-flex"},["Termin"===e.modus?n("InputToggleSwitch",{staticClass:"pr-3",attrs:{label:"Ganztägig"},model:{value:e.fullDay,callback:function(t){e.fullDay=t},expression:"fullDay"}}):e._e(),"Aktivität"!==e.modus?n("InputColorPicker",{attrs:{label:"Farbe"},model:{value:e.color,callback:function(t){e.color=t},expression:"color"}}):e._e()],1),"Aufgabe"===e.modus?n("div",{staticClass:"data-triple"},[n("div",{staticClass:"padding-top"},[n("label",{staticClass:"gridlabel"},[e._v("Von")]),n("div",[n("DatePickerField",{attrs:{dateFormat:"DD.MM.YYYY"},model:{value:e.beginDate,callback:function(t){e.beginDate=t},expression:"beginDate"}})],1)]),n("div",{staticClass:"padding-top"},[n("label",{staticClass:"gridlabel"},[e._v("Fälligkeit")]),n("div",[n("DatePickerField",{attrs:{dateFormat:"DD.MM.YYYY"},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}})],1)]),n("ComboBox",{staticClass:"padding-top",attrs:{label:"Status",values:e.statusOptions},model:{value:e.additionalParamsstatus,callback:function(t){e.additionalParamsstatus=t},expression:"additionalParamsstatus"}})],1):e._e(),"Aktivität"===e.modus?n("ComboBox",{attrs:{label:"Verkaufsphase",values:e.sellingOptions},model:{value:e.additionalParamssellingPhase,callback:function(t){e.additionalParamssellingPhase=t},expression:"additionalParamssellingPhase"}}):e._e(),"Termin"===e.modus?n("div",{staticClass:"data-double"},[n("div",{staticClass:"padding-top"},[n("label",{staticClass:"gridlabel"},[e._v("Von")]),n("div",{staticClass:"data-double"},[n("DatePickerField",{attrs:{dateFormat:"DD.MM.YYYY"},model:{value:e.beginDate,callback:function(t){e.beginDate=t},expression:"beginDate"}}),e.beginDate?n("TimePicker",{attrs:{label:"",disabled:e.fullDay},model:{value:e.beginTime,callback:function(t){e.beginTime=t},expression:"beginTime"}}):e._e()],1)]),n("div",{staticClass:"padding-top"},[n("label",{staticClass:"gridlabel"},[e._v("Bis")]),n("div",{staticClass:"data-double"},[n("DatePickerField",{attrs:{dateFormat:"DD.MM.YYYY"},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}}),e.endDate?n("TimePicker",{attrs:{label:"",disabled:e.fullDay},model:{value:e.endTime,callback:function(t){e.endTime=t},expression:"endTime"}}):e._e()],1)])]):e._e(),"Aktivität"===e.modus?n("div",{staticClass:"data-double"},[n("ComboBox",{attrs:{label:"Wiederholung",values:e.retryCombo},model:{value:e.retry,callback:function(t){e.retry=t},expression:"retry"}}),n("ComboBox",{staticClass:"padding-top",attrs:{label:"Art",values:e.artOptions},model:{value:e.additionalParamsart,callback:function(t){e.additionalParamsart=t},expression:"additionalParamsart"}})],1):e._e(),"Termin"===e.modus?n("div",{staticClass:"data-triple"},[n("ComboBox",{staticClass:"padding-top",attrs:{label:"Wiederholung",values:e.retryCombo},model:{value:e.retry,callback:function(t){e.retry=t},expression:"retry"}}),n("InputField",{staticClass:"padding-top",attrs:{label:"Anzahl Termine",disabled:"Keine"===e.retry},model:{value:e.retryCount,callback:function(t){e.retryCount=t},expression:"retryCount"}}),n("DatePickerField",{attrs:{label:"Höchstens bis zum",dateFormat:"DD.MM.YYYY",disabled:"Keine"===e.retry},model:{value:e.retryMaxDate,callback:function(t){e.retryMaxDate=t},expression:"retryMaxDate"}})],1):e._e(),"Aktivität"===e.modus?[n("div",{staticClass:"data-double"},[n("div",{staticClass:"padding-top"},[n("label",{staticClass:"gridlabel"},[e._v("Fälligkeit")]),n("div",[n("DatePickerField",{attrs:{dateFormat:"DD.MM.YYYY"},model:{value:e.beginDate,callback:function(t){e.beginDate=t},expression:"beginDate"}})],1)]),n("ComboBox",{staticClass:"padding-top",attrs:{label:"Status",values:e.statusOptions},model:{value:e.additionalParamsstatus,callback:function(t){e.additionalParamsstatus=t},expression:"additionalParamsstatus"}})],1),n("div",{staticClass:"data-double padding-top"},[n("InputField",{attrs:{label:"Produkt"},model:{value:e.additionalParamsprodukt,callback:function(t){e.additionalParamsprodukt=t},expression:"additionalParamsprodukt"}}),n("InputField",{attrs:{label:"Geschätzter Geschäftswert",type:"number"},model:{value:e.additionalParamsgeschaeftwert,callback:function(t){e.additionalParamsgeschaeftwert=t},expression:"additionalParamsgeschaeftwert"}})],1)]:e._e(),n("ParticipantInput",{staticClass:"mb-1 padding-top",attrs:{label:"Teilnehmer",combinedDisplay:!0,hidePagination:!0,maxItemsVisible:e.maxItemsVisible,value:e.beteiligteValue,availableUsers:e.availableUsers,isUserSelect:!1,isRole:!0,isReceiveUserClickable:e.isReceiveUserClickable,showMailAndAddressActions:"Termin"===e.modus,bereich:e.bereich,loading:e.searchReceiverUsersLoading},on:{searchReceiverUsers:function(t){return e.searchUsers(t)},deleteReceiveUsers:function(t){return e.deleteUsers(t)},onChange:e.onChange,input:e.onAddParticipant,clickReceiveUsers:function(t){return e.openReceiveUser(t)},setBesitzer:e.setBesitzer,copyAddress:e.copyAddress,sendEmail:function(t){return e.mailSend()},sendEmailSingle:e.mailSend,setAddress:e.setAddress}}),"Aktivität"===e.modus?n("div",{staticClass:"d-flex input-forms__container"},[n("BaseButton",{staticClass:"mr-16",attrs:{isSecondary:""},on:{click:e.getEmpfaenger}},[e._v("Empfänger")])],1):n("div",{staticClass:"d-flex input-forms__container justify-between overflow-x-scroll"},[n("BaseButton",{staticClass:"mr-16",attrs:{isSecondary:""},on:{click:e.addUserVermittler}},[e._v("Vermittler")]),n("BaseButton",{staticClass:"mr-16",attrs:{isSecondary:""},on:{click:e.addUserKunde}},[e._v("Kunde")]),n("BaseButton",{staticClass:"mr-16",attrs:{isSecondary:""},on:{click:e.addUserGesellschaft}},[e._v("Gesellschaft")]),n("BaseButton",{staticClass:"mr-16",attrs:{isSecondary:""},on:{click:e.addUserKontakt}},[e._v("Kontakt")])],1),"Aktivität"!==e.modus?n("div",{staticClass:"d-flex items-center "},[n("InputField",{staticClass:"flex_grow_1",attrs:{label:"Ort"},model:{value:e.place,callback:function(t){e.place=t},expression:"place"}}),n("InputToggleSwitch",{staticClass:"pl-3",attrs:{label:"Privattermin"},model:{value:e.additionalParamsprivate,callback:function(t){e.additionalParamsprivate=t},expression:"additionalParamsprivate"}})],1):e._e(),n("InputTextArea",{attrs:{label:"Beschreibung"},model:{value:e.text,callback:function(t){e.text=t},expression:"text"}}),n("hr"),n("div",{staticClass:"data-double"},[n("ComboBox",{attrs:{label:"Benachrichtigung per Popup",values:e.durationOptions,sortComboboxValues:!1},model:{value:e.popup,callback:function(t){e.popup=t},expression:"popup"}}),n("ComboBox",{attrs:{label:"Benachrichtigung per E-Mail",values:e.durationOptions,sortComboboxValues:!1},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}})],1),n("div",{staticClass:"mb-3"},[n("DragnDropArea",{attrs:{hoverText:"Datei hier ablegen"},on:{files:function(t){return e.addDocument(t)}}},[n("div",{staticClass:"d-block justify-content-between"},[e.allAttachments.length?n("Table",{attrs:{headers:e.headers,rows:e.rows,hidePagination:""},on:{"action-DELETE":e.actionDelete},scopedSlots:e._u([{key:"dateiname",fn:function(t){return[e.appointmentSid?n("DownloadLink",{attrs:{title:t.dateiname,downloadServicePath:"/termin_attachment",filename:t.dateiname,queryParams:{sid:e.appointmentSid,fileId:t.id}}}):n("span",[e._v(e._s(t.dateiname))])]}}],null,!1,727560957)}):e._e(),n("div",{staticClass:"d-flex d-md-block mt-1 layout__negative-margin--8 antrag-action-button__container justify-content-center"},[n("BaseButton",{staticClass:"upload-btn",attrs:{isSecondary:""}},[e._t("default",(function(){return[e._v("Datei hochladen")]})),n("input",{attrs:{type:"file",accept:e.acceptFileTypes,multiple:""},on:{change:e.onAddFiles}})],2),n("BaseButton",{attrs:{isPrimary:""},on:{click:e.handleAddDocuments}},[e._v(" Dokumentenarchiv ")])],1)],1)])],1),n("div",{staticClass:"action-buttons mb-3"},[n("BaseButton",{staticClass:"mr-16",attrs:{disabled:!(e.getSelectedEvent.appointment&&e.getSelectedEvent.appointment.sid),isSecondary:""},on:{click:function(t){return e.mailSend()}}},[e._v("Terminbestätigung")]),n("BaseButton",{staticClass:"mr-16",attrs:{isSecondary:""},on:{click:e.discardChanges}},[e._v("Änderungen verwerfen")]),e.getSelectedEvent.appointment&&e.getSelectedEvent.appointment.sid?n("BaseButton",{staticClass:"mr-16",attrs:{isSecondary:"",disabled:!e.canEdit||e.loading},on:{click:e.deleteAppointment}},[e._v("Löschen")]):e._e(),n("BaseButton",{attrs:{disabled:e.isDisabled},on:{click:e.saveAppointment}},[e._v("Speichern")])],1)]],2)},i=[],s=n("1da1"),o=n("2909"),r=n("5530"),l=(n("96cf"),n("a9e3"),n("caad"),n("2532"),n("d81d"),n("ac1f"),n("1276"),n("b0c0"),n("159b"),n("b64b"),n("99af"),n("4de4"),n("d3b7"),n("7db0"),n("07ac"),n("c740"),n("a434"),n("6062"),n("3ca3"),n("ddb0"),n("e6cf"),n("a79d"),n("cca6"),n("e260"),n("2f62")),c=n("5a0c"),d=n.n(c),u=n("41d3"),p=n("c2dc"),h=n("d3ac"),f=n("c704"),m=n("0054"),b=n("6ce5"),v=n("04bc"),g=n("59ab"),E=n("9aaa"),_=n("d9f5"),S=n("9131"),T=n("39bd"),y=n("cee4"),x=n("64c5"),k=n("de6c"),A=n("b7e4"),I=n("6205"),C=n("11e7"),w=n("e411"),O=n("c0a4"),D=n("689f"),N=n("d53f"),M=n("d7f4"),R=n("876f"),P=n("6eb5"),B=n("2ab8"),U=n("5a29"),L=n("b1a7"),j=n("97bc"),z=n("038b"),$=15,F={name:"AppointmentEditCreate",components:{InputField:f["default"],DatePickerField:m["default"],BaseButton:v["default"],TimePicker:g["default"],GhostLoading:P["a"],InputToggleSwitch:E["default"],InputTextArea:_["default"],ComboBox:S["default"],InputColorPicker:T["default"],ParticipantInput:I["a"],DragnDropArea:C["a"],Table:D["a"],Block:B["a"],DownloadLink:U["default"],NoData:L["a"],ShortcutInputField:z["a"]},props:{isActivity:{type:Boolean,default:!0},discardChanges:{},isEmbeded:{type:Boolean,default:!1},user:{},subject:{},previewSubject:{},preview:{type:Boolean,default:!1},selectedDate:{},bereich:{type:String,default:null},bereichId:{type:[String,Number],default:null},bereichText:{type:String,default:null},status:{type:String,default:""},mode:{type:String,default:""},attachCustomer:{type:Boolean,default:!0},noInitialise:{type:Boolean,default:!1},additionalBeteiligte:{type:Array},vsnr:{type:String,default:null}},data:function(){return{durationOptions:[{label:"keine Benachrichtigung",value:""},{label:"0 Min.",value:"0"},{label:"15 Min.",value:"15"},{label:"30 Min",value:"30"},{label:"1 Stunde",value:"60"},{label:"1.5 Stunden",value:"90"},{label:"3 Stunden",value:"180"},{label:"4 Stunden",value:"240"},{label:"5 Stunden",value:"300"},{label:"6 Stunden",value:"360"},{label:"1 Tag",value:"1440"},{label:"2 Tage",value:"2880"},{label:"3 Tage",value:"4320"},{label:"4 Tage",value:"5760"},{label:"5 Tage",value:"7200"},{label:"6 Tage",value:"8640"},{label:"1 Woche",value:"10080"}],kunden:"",emailCount:"",popupCount:"",timeoutRef:null,availableUsers:[],allAttachments:[],acceptFileTypes:"*/*",loading:!1,showEmpfaenger:!1,empfaenger:[],rowsEmpf:[],selectedEmpf:[],empfHeaders:{lockedLeft:[Object(N["TextColumn"])("label","Empfänger",100).makeAlwaysVisible(),Object(N["TextColumn"])("name","Name",150)],center:[Object(N["SlotColumn"])("rolle","Rolle",150),Object(N["TextColumn"])("email","E-Mail",150)],lockedRight:[]},isMultipleBesitzerRolles:!1,customerNr:"",maxItemsVisible:$,canEdit:!0,searchReceiverUsersLoading:!1}},mixins:[h["a"]],validators:{label:[Object(b["s"])()]},computed:Object(r["a"])(Object(r["a"])({},Object(l["b"])({getSelectedEvent:u["default"].GETTERS.GET_SELECTED_APPOINTMENT_DATA,getAppointmentCombos:u["default"].GETTERS.GET_APPOINTMENT_COMBOS,getAppointmentBeginDate:u["default"].GETTERS.GET_APPOINTMENT_BEGIN_DATE,getAppointmentBeginTime:u["default"].GETTERS.GET_APPOINTMENT_BEGIN_TIME,getAppointmentEndDate:u["default"].GETTERS.GET_APPOINTMENT_END_DATE,getAppointmentEndTime:u["default"].GETTERS.GET_APPOINTMENT_END_TIME,getEmptyAppointment:u["default"].GETTERS.GET_EMPTY_APPOINTMENT,getAppointment:u["default"].GETTERS.GET_APPOINTMENT,isBroker:x["default"].GETTERS.IS_BROKER,isIntern:x["default"].GETTERS.IS_INTERN,isCustomer:x["default"].GETTERS.IS_CUSTOMER,loginData:x["default"].GETTERS.GET_LOGIN_DATA,selectedCustomersExternal:A["default"].GETTERS.SET_SELECTED_CUSTOMERS,presavedAppointment:u["default"].GETTERS.PRESAVE_APPOINTMET,beteiligte:u["default"].GETTERS.GET_BETEILIGTE_FOR_UPDATE,attachments:M["default"].GETTERS.SET_ATTACHMENTS,isLoadingAppoiment:u["default"].GETTERS.LOAD_APPOINTMENT,hasRoles:x["default"].GETTERS.HAS_ROLES})),{},{isDisabled:function(){return!this.label||!this.beginDate||this.loading||this.isMultipleBesitzerRolles||!this.canEdit},alarmConfig:function(){var e;return(null===(e=this.getAppointmentCombos)||void 0===e?void 0:e.alarmConfig)||{}},modus:function(){var e,t;if(this.showEmpfaenger)return"Empfänger";var n=this.mode||(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.bereich);if(!n)return"";switch(n){case"Termin":return"Termin";case"Aufgabe":return"Aufgabe"}return"Aktivität"},getShowModal:function(){return this.showModal},duration:{get:function(){var e,t;e=d()(this.beginDate).isValid()?d()(this.beginDate).format("DD.MM.YYYY"):this.beginDate,t=d()(this.endDate).isValid()?d()(this.endDate).format("DD.MM.YYYY"):this.endDate;var n=d()(e+" "+this.beginTime,"DD.MM.YYYY HH:mm"),a=d()(t+" "+this.endTime,"DD.MM.YYYY HH:mm"),i=a.diff(n,"m");return i<0&&(alert("Endezeit kann nicht vor der Beginzeit sein! Wir kehren die Zeiten um."),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_BEGIN_DATE,d()(a).format("DD.MM.YYYY")),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_BEGIN_TIME,d()(a).format("HH:mm"))),i},set:function(e){var t;t=d()(this.beginDate).isValid()?d()(this.beginDate).format("DD.MM.YYYY"):this.beginDate;""!==this.beginTime&&this.beginTime;var n=d()(t+" "+this.beginTime,"DD.MM.YYYY HH:mm"),a=d()(n).add(e,"m");this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_DATE,d()(a).format("DD.MM.YYYY")),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_TIME,d()(a).format("HH:mm"))}},beginDate:{get:function(){return this.getAppointmentBeginDate},set:function(e){var t=e instanceof Date?d()(e).format("DD.MM.YYYY"):e;this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_BEGIN_DATE,t),"Termin"!==this.modus&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_BEGIN_TIME,"23:59"),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_DATE,e)}},beginTime:{get:function(){return this.fullDay?"0:00":this.getAppointmentBeginTime},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_BEGIN_TIME,e),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_TIME,"");var t=d()(e,"HH:mm").add(1,"hour");this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_TIME,t.format("HH:mm"))}},endDate:{get:function(){return this.getAppointmentEndDate},set:function(e){var t=e instanceof Date?d()(e).format("DD.MM.YYYY"):e;this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_DATE,t),"Termin"!==this.modus&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_TIME,"23:59"),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_DURATION,0)}},endTime:{get:function(){return this.fullDay?"23:59":this.getAppointmentEndTime},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_TIME,e),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_DURATION,0)}},email:{get:function(){var e,t,n,a,i=1;switch(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.alarmModuEmail){case"TAG":i=1440;break;case"MINUTEN":i=1;break;case"STUNDEN":i=60;break;case"WOCHE":i=10080;break;case"MONAT":i=43200;break;case"JAHR":i=525600;break}return"".concat((null===(n=this.getSelectedEvent)||void 0===n||null===(a=n.appointment)||void 0===a?void 0:a.alarmEmail)*i)},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_EMAIL,e)}},popup:{get:function(){var e,t,n,a,i=1;switch(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.alarmModusMSC){case"TAG":i=1440;break;case"MINUTEN":i=1;break;case"STUNDEN":i=60;break;case"WOCHE":i=10080;break;case"MONAT":i=43200;break;case"JAHR":i=525600;break}return"".concat((null===(n=this.getSelectedEvent)||void 0===n||null===(a=n.appointment)||void 0===a?void 0:a.alarmMsc)*i)},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_POPUP,e)}},color:{get:function(){var e,t,n=null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.color;return n||(n=document.documentElement.style.getPropertyValue("--color-primary")),Object(j["l"])(n)},set:function(e){e&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{color:e})}},additionalParamsstatus:{get:function(){var e,t;return(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.status)||""},set:function(e){e&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{status:e})}},additionalParamssellingPhase:{get:function(){var e,t;return(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.sellingPhase)||"KEINE_ANGABEN"},set:function(e){e&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{sellingPhase:e})}},additionalParamsgeschaeftwert:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.geschaeftwert},set:function(e){e&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{geschaeftwert:"".concat(e)})}},additionalParamsprodukt:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.produkt},set:function(e){e&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{produkt:e})}},additionalParamsbestaetigt:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.bestaetigt},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{bestaetigt:e})}},additionalParamsprivate:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.private},set:function(e){e&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{private:e})}},additionalParamsart:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.art},set:function(e){e&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{art:e})}},additionalParamsBereich:function(){var e,t,n,a;return(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.bereichDisplay)||(null===(n=this.getSelectedEvent)||void 0===n||null===(a=n.appointment)||void 0===a?void 0:a.bereich)||""},isBereichId:function(){var e,t,n,a;return!(null!==(e=this.getSelectedEvent)&&void 0!==e&&null!==(t=e.appointment)&&void 0!==t&&t.sid)||(null===(n=this.getSelectedEvent)||void 0===n||null===(a=n.appointment)||void 0===a?void 0:a.bereichId)},appointmentSid:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.sid},versId:function(){var e,t,n,a;return"VersVertrag"===(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.bereich)&&(null===(n=this.getSelectedEvent)||void 0===n||null===(a=n.appointment)||void 0===a?void 0:a.bereichId)},schadenId:function(){if(this.label&&this.label.includes(" Schaden-Nr.")){var e=this.label.split(" Schaden-Nr.").map((function(e){return e.replaceAll(" ","").replaceAll(",","")}));return e[e.length-1]}return!1},beteiligteValue:function(){return this.beteiligte.map((function(e){var t,n,a,i,s,o=Object(r["a"])(Object(r["a"])({},e.beteiligte?e.beteiligte:e),{},{beteiligte:e.beteiligte,nummerText:e.userId||(null===(t=e.beteiligte)||void 0===t?void 0:t.userId),value:e.id||(null===e||void 0===e?void 0:e.customerId)||(null===e||void 0===e?void 0:e.brokerId)||(null===e||void 0===e?void 0:e.personId)||(null===(n=e.beteiligte)||void 0===n?void 0:n.id)||(null===(a=e.beteiligte)||void 0===a?void 0:a.customerId)||(null===(i=e.beteiligte)||void 0===i?void 0:i.brokerId)||(null===(s=e.beteiligte)||void 0===s?void 0:s.personId),label:e.name});return Object.keys(o).forEach((function(t){null===o[t]&&(o[t]=e[t])})),o}))},label:{get:function(){var e,t;return(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.label)||this.subject||this.insuranceNumber},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_LABEL,e)}},text:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.text},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_TEXT,e)}},place:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.place},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_PLACE,e)}},fullDay:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.fullDay},set:function(){var e,t;this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_FULL_DAY,!(null!==(e=this.getSelectedEvent)&&void 0!==e&&null!==(t=e.appointment)&&void 0!==t&&t.fullDay))}},retry:{get:function(){var e,t;return(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.retry)||"Keine"},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_RETRY,e)}},retryCount:{get:function(){var e,t;return null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.retryCount},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_RETRY_COUNT,e)}},retryMaxDate:{get:function(){var e,t,n,a;return"Invalid Date"===(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.retryMaxDate)?null:null===(n=this.getSelectedEvent)||void 0===n||null===(a=n.appointment)||void 0===a?void 0:a.retryMaxDate},set:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_RETRY_MAX_DATE,d()(e).format("DD.MM.YYYY"))}},insuranceNumber:function(){return this.vsnr?"VSNR ".concat(this.vsnr):null},existsEvent:function(){var e,t;return null!=(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t?void 0:t.sid)},getTitle:function(){return this.existsEvent?"Termin verarbeiten":"Termin erstellen"},retryCombo:function(){var e=this;if(!this.getAppointmentCombos||this.getAppointmentCombos&&!this.getAppointmentCombos.retryCombo)return[];var t=Object.keys(this.getAppointmentCombos.retryCombo);return t.map((function(t){return{label:e.getAppointmentCombos.retryCombo[t],value:t}}))},statusOptions:function(){if(!this.getAppointmentCombos||this.getAppointmentCombos&&!this.getAppointmentCombos.statusComboAufgabe)return[];var e="Aufgabe"===this.modus?this.getAppointmentCombos.statusComboAufgabe:this.getAppointmentCombos.statusComboWV,t=Object.keys(e),n=[].concat(t.map((function(t){return{label:e[t],value:t}})));return n.filter((function(e){return"Keine Angaben"===e.label})).length||n.unshift({label:"Keine Angaben",value:""}),n},sellingOptions:function(){var e=this;if(!this.getAppointmentCombos||this.getAppointmentCombos&&!this.getAppointmentCombos.verkaufsphaseWVCombo)return[];var t=Object.keys(this.getAppointmentCombos.verkaufsphaseWVCombo);return t.map((function(t){return{label:e.getAppointmentCombos.verkaufsphaseWVCombo[t],value:t}}))},artOptions:function(){var e=this;if(!this.getAppointmentCombos||this.getAppointmentCombos&&!this.getAppointmentCombos.artComboWV)return[];var t=Object.keys(this.getAppointmentCombos.artComboWV);return t.map((function(t){return{label:e.getAppointmentCombos.artComboWV[t],value:t}}))},headers:function(){return{lockedLeft:[Object(N["SlotColumn"])("dateiname","Dateiname").makeAlwaysVisible()],lockedRight:[Object(N["ActionColumn"])("actions","")]}},rows:function(){if(!this.allAttachments)return[];var e=[Object(N["SimpleAction"])("DELETE",O["PhTrash"],"Löschen")];return this.allAttachments.map((function(t){return Object(r["a"])(Object(r["a"])({},t),{},{dateiname:t.fileName||t.label,grosse:"",previewLink:!0!==t.id,actions:e})}))},rolleOptions:function(){var e=this;if(!this.getAppointmentCombos||this.getAppointmentCombos&&!this.getAppointmentCombos.artComboWV)return[];var t=Object.keys(this.getAppointmentCombos.rolleCombo);return t.map((function(t){return{label:e.getAppointmentCombos.rolleCombo[t],value:t}}))}}),watch:{getAppointment:function(e){var t,n,a,i,s,o,l,c,d,p,h,f,m,b,v,g,E,_=this;(e.files&&e.files.length&&e.files.map((function(e){_.allAttachments.push({id:e.id,label:e.fileName,fileName:e.fileName,uploaded:!0})})),null!==(t=this.getSelectedEvent)&&void 0!==t&&t.appointment)&&(null!==(n=this.getSelectedEvent)&&void 0!==n&&null!==(a=n.appointment)&&void 0!==a&&a.sid?this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{bereich:(null===(i=this.getSelectedEvent)||void 0===i||null===(s=i.appointment)||void 0===s?void 0:s.bereich)||"",bereichId:(null===(o=this.getSelectedEvent)||void 0===o||null===(l=o.appointment)||void 0===l?void 0:l.bereichId)||""}):this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{bereich:this.isBroker?"Termin"==(null===(c=this.getSelectedEvent)||void 0===c||null===(d=c.appointment)||void 0===d?void 0:d.bereich)||"Aufgabe"===(null===(p=this.getSelectedEvent)||void 0===p||null===(h=p.appointment)||void 0===h?void 0:h.bereich)?null===(f=this.getSelectedEvent)||void 0===f||null===(m=f.appointment)||void 0===m?void 0:m.bereich:"Makler":this.bereich||(null===(b=this.getSelectedEvent)||void 0===b||null===(v=b.appointment)||void 0===v?void 0:v.bereich)||"Kunde",bereichId:this.bereichId||(null===(g=this.getSelectedEvent)||void 0===g||null===(E=g.appointment)||void 0===E?void 0:E.bereichId)||this.loginData.userid}));this.customerNr=e.customerNr,e.beteiligteOutput&&(this.$store.commit(u["default"].MUTATIONS.SET_BETEILIGTE_FOR_UPDATE,[]),e.beteiligteOutput.filter((function(e){var t;return null===(t=e.beteiligte)||void 0===t?void 0:t.id})).map((function(e){_.$store.commit(u["default"].MUTATIONS.ADD_BETEILIGTE_FOR_UPDATE,Object(r["a"])({},e))})),this.canEdit=e.updateable,this.getModalTitle())},getAppointmentCombos:function(e){var t,n,a=this;if((null===(t=this.getSelectedEvent)||void 0===t||null===(n=t.appointment)||void 0===n||!n.sid)&&!this.beteiligte.length&&null!==e&&void 0!==e&&e.initBeteiligte){var i=e.initBeteiligte||[];this.isBereichId&&this.isCustomer&&!this.attachCustomer&&(i=i.filter((function(e){return e.customerId!==a.loginData.userid}))),i=i.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{canChange:"BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.canChange,alarmMail:("BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.alarmMail)&&!e.customerID,alarmMsc:("BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.alarmMsc)&&!e.customerID,alarmDailyMail:("BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.alarmDailyMail)&&!e.customerID})})),this.$store.commit(u["default"].MUTATIONS.SET_BETEILIGTE_FOR_UPDATE,[].concat(Object(o["a"])(i),Object(o["a"])(this.additionalBeteiligte||[])))}},modus:"getModalTitle",subject:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_LABEL,e)}},methods:{handleAddUsers:function(){this.presaveAppointmentData(),this.navigateTo("/communication/calendar-customer-search/?back="+this.getCurrentRoute())},searchUsers:function(e){var t=this;this.timeoutRef&&clearTimeout(this.timeoutRef),this.timeoutRef=setTimeout((function(){e&&e.length>2&&(t.searchReceiverUsersLoading=!0,y["a"].get("".concat("/MSC3/restful","/QuickSearch/getQuickSearch?searchParam=").concat(e)).then((function(n){t.availableUsers=n.data.cusomers.map((function(e){return{value:e.customerID,label:"".concat(e.firstName?e.firstName+" ":"").concat(e.lastName),email:e.email,data:e}}));var a=t.isBroker&&t.loginData.userid||t.isCustomer&&t.loginData.maklernr;y["a"].get("".concat("/MSC3/restful","/calendarService/getEmpfaenger?maklernr=").concat(a)).then((function(n){t.availableUsers=t.availableUsers.concat(n.data.filter((function(t){return t.personId&&t.name.toLowerCase().includes(e.toLowerCase())}))).map((function(e){return e.value?e:{value:e.personId,label:"".concat(e.name),data:e,email:e.email}}))})).finally((function(){t.searchReceiverUsersLoading=!1}))})))}),300)},deleteUsers:function(e){if(e.id&&null!=e.id){var t={beteiligte:{}};t.beteiligte.id=e.id,this.$store.dispatch(u["default"].ACTIONS.DELETE_BETEILIGTE,t)}else this.$store.commit(u["default"].MUTATIONS.DELETE_BETEILIGTE_BY_VALUE,e.name)},getModalTitle:function(){var e;if(void 0!==(null===(e=this.$parent.$data)||void 0===e?void 0:e.titleSetFromChild)){var t,n,a=this.modus+" ";"Empfänger"===this.modus?a+="auswählen":this.modus?null!==(t=this.getAppointment)&&void 0!==t&&null!==(n=t.appointment)&&void 0!==n&&n.sid||this.isLoadingAppoiment?a+="bearbeiten":a+="erstellen":a=" ",this.$parent.$data.titleSetFromChild=a}},getEmpfaenger:function(){var e,t=this,n=this.isBroker&&this.loginData.userid||this.isCustomer&&this.loginData.maklernr;n&&(null!==(e=this.empfaenger)&&void 0!==e&&e.length&&this.empfaenger[0].maklernr===n?(this.empfValues(),this.showEmpfaenger=!0):this.$store.dispatch(u["default"].ACTIONS.GET_EMPFAENGER,n).then((function(e){var a;null!==(a=e.data)&&void 0!==a&&a.length&&(t.empfaenger=e.data.map((function(e){return e.maklernr=n,e.personId=e.personId||-1,e.rolle="TEILNEHMER",e.label=n+(-1!==e.unternr?"-"+e.unternr:""),e})),t.empfValues(),t.showEmpfaenger=!0)})))},empfValues:function(){var e;if(null!==(e=this.empfaenger)&&void 0!==e&&e.length){var t=",";this.beteiligteValue.forEach((function(e){t+=(e.personId||-1)+","}));var n=[],a=0;this.empfaenger.forEach((function(e){-1===t.indexOf(","+e.personId+",")&&n.push(Object(r["a"])(Object(r["a"])({},e),{},{index:a++}))})),this.rowsEmpf=n}else this.rowsEmpf=[]},onChangeEmpf:function(e,t,n){this.rowsEmpf[e][t]=n},setEmpfaenger:function(){var e=this;this.showEmpfaenger=!1;var t=this.alarmConfig,n=t.alarmMail,a=t.alarmMSC,i=t.alarmTagesmail;this.selectedEmpf.forEach((function(t){var s={id:null,name:t.name,email:t.email,personId:-1===t.personId?null:t.personId,brokerId:-1===t.personId?t.maklernr:null,canChange:void 0!==t.canChange?t.canChange:"BESITZER"===t.rolle||"BEARBEITER"===t.rolle,alarmMail:void 0!==t.alarmMail?t.alarmMail:("BESITZER"===t.rolle||"BEARBEITER"===t.rolle||n)&&!t.customerID,alarmMsc:void 0!==t.alarmMsc?t.alarmMsc:("BESITZER"===t.rolle||"BEARBEITER"===t.rolle||a)&&!t.customerID,alarmDailyMail:void 0!==t.alarmDailyMail?t.alarmDailyMail:("BESITZER"===t.rolle||"BEARBEITER"===t.rolle||i)&&!t.customerID,rolle:t.rolle||"TEILNEHMER"};e.$store.commit(u["default"].MUTATIONS.ADD_BETEILIGTE_FOR_UPDATE,s)})),this.selectedEmpf=[]},shallowCopy:function(e){return Object.assign({},e)},createAppointment:function(){var e,t,n=this;if(null===(e=this.getSelectedEvent)||void 0===e||null===(t=e.appointment)||void 0===t||!t.sid){var a,i,s,l,c;if(null!==(a=this.getAppointmentCombos)&&void 0!==a&&a.initBeteiligte){var d=this.getAppointmentCombos.initBeteiligte||[];this.isBereichId&&this.isCustomer&&!this.attachCustomer&&(d=d.filter((function(e){return e.customerId!==n.loginData.userid}))),d=d.map((function(e){return Object(r["a"])(Object(r["a"])({},e),{},{canChange:"BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.canChange,alarmMail:("BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.alarmMail)&&!e.customerID,alarmMsc:("BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.alarmMsc)&&!e.customerID,alarmDailyMail:("BESITZER"===e.rolle||"BEARBEITER"===e.rolle||e.alarmDailyMail)&&!e.customerID})})),this.$store.commit(u["default"].MUTATIONS.SET_BETEILIGTE_FOR_UPDATE,[].concat(Object(o["a"])(d),Object(o["a"])(this.additionalBeteiligte||[])))}else this.$store.commit(u["default"].MUTATIONS.SET_BETEILIGTE_FOR_UPDATE,[]);if(null===(i=this.getSelectedEvent)||void 0===i||null===(s=i.appointment)||void 0===s||!s.begin)this.$store.commit(u["default"].MUTATIONS.SET_SELECTED_APPOINTMENT_DATA,{appointment:{appointment:Object(r["a"])(Object(r["a"])({},this.getEmptyAppointment),{},{bereich:null===(l=this.getSelectedEvent)||void 0===l||null===(c=l.appointment)||void 0===c?void 0:c.bereich})},day:this.thisday})}},saveAppointment:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,e.$store.commit(u["default"].MUTATIONS.SET_ATTACHMENT,e.allAttachments),n=null,t.next=5,e.$store.dispatch(u["default"].ACTIONS.SAVE_APPOINTMENT).then((function(t){var a,i;e.$emit("renew-view",!0),e.$store.commit(u["default"].MUTATIONS.SET_SELECTED_APPOINTMENT_DATA,{appointment:{appointment:Object(r["a"])({},e.getEmptyAppointment)},day:e.thisday}),n=null===t||void 0===t||null===(a=t.data)||void 0===a||null===(i=a.appointment)||void 0===i?void 0:i.sid,e.discardChanges()})).finally((function(){return e.loading=!1}));case 5:return t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})))()},navigateTo:function(e){this.$router.push({path:"".concat(e)})},getCurrentRoute:function(){return this.$router.currentRoute.path},presaveAppointmentData:function(){this.$store.commit(u["default"].MUTATIONS.PRESAVE_APPOINTMET,Object(r["a"])(Object(r["a"])({},this.getSelectedEvent),{},{appointment:Object(r["a"])(Object(r["a"])({activity:this.isActivity},this.getSelectedEvent.appointment),{},{begin:"".concat("string"===typeof this.beginDate?this.beginDate:d()(this.beginDate).format("DD.MM.YYYY")," ").concat(this.beginTime),end:"".concat("string"===typeof this.endDate?this.endDate:d()(this.endDate).format("DD.MM.YYYY")," ").concat(this.endTime)}),allAttachments:this.allAttachments,beteiligte:this.beteiligteValue}))},addUserVermittler:function(){this.presaveAppointmentData(),this.navigateTo("/communication/calendar-customer-search/broker?back="+this.getCurrentRoute())},addUserKunde:function(){this.presaveAppointmentData(),this.navigateTo("/communication/calendar-customer-search/?back="+this.getCurrentRoute())},addUserGesellschaft:function(){var e,t;this.presaveAppointmentData(),this.$addBreadcrumb({label:"zurück zu ".concat(null===(e=this.$route.meta)||void 0===e||null===(t=e.breadcrumb)||void 0===t?void 0:t.label),fullPath:this.$route.fullPath,breadcrumb:"Ansprechpartner hinzufügen"}),this.navigateTo("/communication/calendar-customer-search/company?back="+this.getCurrentRoute())},addUserKontakt:function(){var e,t;this.presaveAppointmentData(),this.$addBreadcrumb({label:"zurück zu ".concat(null===(e=this.$route.meta)||void 0===e||null===(t=e.breadcrumb)||void 0===t?void 0:t.label),fullPath:this.$route.fullPath,breadcrumb:"Kontakte hinzufügen"}),this.navigateTo("/communication/calendar-customer-search/contact?back="+this.getCurrentRoute())},onChange:function(e){e.data&&this.$store.commit(u["default"].MUTATIONS.UPDATE_BETEILIGTE,e.data)},setBesitzer:function(e){},copyAddress:function(e){null!==e&&void 0!==e&&e.address?this.place=e.address:this.$store.dispatch(k["default"].ACTIONS.ADD_MESSAGE,Object(R["b"])("".concat(e.name," hat keine Adresse hinterlegt"),"warning"))},onAddParticipant:function(e){var t=e.findLast((function(e){return!e.id}));if(t){var n=this.availableUsers.find((function(e){return e.value===t.value||!t.value&&e.email===t.email}));if(n){var a=function(e){return e.street||e.zip||e.city?"".concat(e.street,", ").concat(e.zip," ").concat(e.city):null},i=this.alarmConfig,s=i.alarmMail,o=i.alarmMSC,r=i.alarmTagesmail;if(n.data){var l=n.data;if(!l.personId&&!l.customerID&&!l.userId)return;n.data={id:l.id,name:n.label,email:n.email,personId:l.personId,customerId:l.customerID,brokerId:l.userId,canChange:void 0!==l.canChange?l.canChange:"BESITZER"===l.rolle||"BEARBEITER"===l.rolle,alarmMail:void 0!==l.alarmMail?l.alarmMail:("BESITZER"===l.rolle||"BEARBEITER"===l.rolle||s)&&!l.customerID,alarmMsc:void 0!==l.alarmMsc?l.alarmMsc:("BESITZER"===l.rolle||"BEARBEITER"===l.rolle||o)&&!l.customerID,alarmDailyMail:void 0!==l.alarmDailyMail?l.alarmDailyMail:("BESITZER"===l.rolle||"BEARBEITER"===l.rolle||r)&&!l.customerID,rolle:l.rolle||"TEILNEHMER",address:a(l)},this.$store.commit(u["default"].MUTATIONS.ADD_BETEILIGTE_FOR_UPDATE,n.data)}}}},addDocument:function(e){var t=this;e&&e.map((function(e){Object(w["c"])(e).then((function(n){t.allAttachments.push({id:n,label:e.name,fileName:e.name,uploaded:!0})}))}))},handleAddDocuments:function(){this.presaveAppointmentData(),this.navigateTo("/communication/mailcomposer-dokumentenarchiv/calendar?back="+this.getCurrentRoute())},onAddFiles:function(e){var t=this;this.allAttachments=this.allAttachments||[];var n=Object.values(e.target.files);n.map((function(e){Object(w["c"])(e).then((function(n){t.allAttachments.push({id:n,label:e.name,fileName:e.name,uploaded:!0}),t.allAttachments=Object(o["a"])(t.allAttachments)}))})),e.target.value=""},actionDelete:function(e){var t=this.allAttachments.findIndex((function(t){return t.id===e.id&&t.copyFileId===e.copyFileId}));this.$store.dispatch(u["default"].ACTIONS.DELETE_ATTACHMENT,e.id),t>-1&&this.allAttachments.splice(t,1)},deleteAppointment:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!0,t.next=3,e.$store.dispatch(u["default"].ACTIONS.DELETE_APPOINTMENT);case 3:e.loading=!1,e.discardChanges(),e.$emit("renew-view",!0);case 6:case"end":return t.stop()}}),t)})))()},mailSend:function(){var e=arguments,t=this;return Object(s["a"])(regeneratorRuntime.mark((function n(){var a,i,s,o,r,l;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return s=e.length>0&&void 0!==e[0]?e[0]:[],o=s&&s.length?s:t.beteiligteValue,n.next=4,t.saveAppointment();case 4:r=n.sent,l=o.map((function(e){return e.id||e.value}))||t.getSelectedEvent.appointment.beteiligtes.map((function(e){return e.id||e.value})),t.$store.commit(M["default"].MUTATIONS.SET_MAILCOMPOSER_CONFIG,{type:"mailcomposer-appointment",action:"clear",receiver:[]}),t.$store.commit(M["default"].MUTATIONS.SET_ATTACHMENTS,{type:"mailcomposer-appointment",action:"clear-cache"}),t.$store.commit(M["default"].MUTATIONS.SET_MAIL_LINKED_OBJECT,{data:l,toCompany:!1,participants:s&&s.length?s:void 0,place:t.place}),t.$router.push("/communication/mailcomposer-appointment/".concat((null===(a=t.getSelectedEvent)||void 0===a||null===(i=a.appointment)||void 0===i?void 0:i.sid)||r));case 10:case"end":return n.stop()}}),n)})))()},setAddress:function(e){this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_PLACE,e)},isReceiveUserClickable:function(e){return"..."===e.value||!(null===e||void 0===e||!e.customerId)&&e.customerId!==this.loginData.userid},openReceiveUser:function(e){this.openCustomer(e)},openCustomer:function(e){null!==e&&void 0!==e&&e.customerId&&this.$store.dispatch(x["default"].ACTIONS.OPEN_CUSTOMER_NEW_TAB,{customerId:null===e||void 0===e?void 0:e.customerId})},openInsurance:function(){this.isBroker||this.isIntern?this.$store.dispatch(x["default"].ACTIONS.OPEN_CUSTOMER_NEW_TAB,{customerId:this.customerNr,insurances:!0,path:"/home/versicherungen/insurance-group/overview/".concat(this.versId)}):this.$router.push("/home/versicherungen/insurance-group/overview/".concat(this.versId))},openSchaden:function(){this.isBroker||this.isIntern?this.$store.dispatch(x["default"].ACTIONS.OPEN_CUSTOMER_NEW_TAB,{customerId:this.customerNr,insurances:!0,path:"/home/versicherungen/insurance-group/schadensmeldung/".concat(this.versId,"/schadennr/").concat(this.schadenId)}):this.$router.push("/home/versicherungen/insurance-group/schadensmeldung/".concat(this.versId,"/schadennr/").concat(this.schadenId))},getDefaultPermission:function(e){return"Termin"===this.bereich&&"TEILNEHMER"===e||("BEARBEITER"===e||"BESITZER"===e)}},mounted:function(){var e=this;if(this.$route.params.id&&this.$store.dispatch(u["default"].ACTIONS.RETRIEVE_SELECTED_APPOINTMENT,this.$route.params.id),!this.noInitialise){var t;if(this.presavedAppointment){if(this.$store.commit(u["default"].MUTATIONS.SET_SELECTED_APPOINTMENT_DATA,{appointment:{appointment:null===(t=this.presavedAppointment)||void 0===t?void 0:t.appointment},day:this.presavedAppointment.day||this.thisday}),this.allAttachments=this.presavedAppointment.allAttachments,this.$store.commit(u["default"].MUTATIONS.SET_BETEILIGTE_FOR_UPDATE,this.presavedAppointment.beteiligte),this.selectedCustomersExternal&&Array.isArray(this.selectedCustomersExternal)&&this.selectedCustomersExternal.length){var n=this.alarmConfig,a=n.alarmMail,i=n.alarmMSC,s=n.alarmTagesmail;this.selectedCustomersExternal.forEach((function(t){var n,o={id:null,name:t.email&&t.name&&"".concat(t.name)||t.fullName&&"".concat(t.fullName).concat(t.email?" <"+t.email+">":"")||t.data&&(null===(n=t.data)||void 0===n?void 0:n.fullName)||t.name,email:t.email,personId:t.personId,customerId:t.customerID,brokerId:t.userId,canChange:void 0!==t.canChange?t.canChange:e.getDefaultPermission(t.rolle||"TEILNEHMER"),alarmMail:void 0!==t.alarmMail?t.alarmMail:(e.getDefaultPermission(t.rolle||"TEILNEHMER")||a)&&!t.customerID,alarmMsc:void 0!==t.alarmMsc?t.alarmMsc:(e.getDefaultPermission(t.rolle||"TEILNEHMER")||i)&&!t.customerID,alarmDailyMail:void 0!==t.alarmDailyMail?t.alarmDailyMail:(e.getDefaultPermission(t.rolle||"TEILNEHMER")||s)&&!t.customerID,rolle:t.rolle||"TEILNEHMER",address:t.adresse||"".concat(t.street,", ").concat(t.plz," ").concat(t.location)};e.$store.commit(u["default"].MUTATIONS.ADD_BETEILIGTE_FOR_UPDATE,o)})),this.$store.commit(A["default"].MUTATIONS.SET_SELECTED_CUSTOMERS,[])}}else this.createAppointment();if(this.subject&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_LABEL,this.subject),this.attachments&&this.attachments&&this.attachments.length){var r=this.attachments.filter((function(e){return(null===e||void 0===e?void 0:e.node)&&!e.uploaded})).map((function(e){return{nodeId:null===e||void 0===e?void 0:e.node,fileId:null===e||void 0===e?void 0:e.id}}));r.length?y["a"].post("".concat("/MSC3/restful","/documents/getTempFiles"),r).then((function(t){var n;null===t||void 0===t||null===(n=t.data)||void 0===n||n.map((function(t){e.allAttachments.push({id:t.id,label:t.name,fileName:t.name})}))})).catch((function(t){e.$store.dispatch(k["default"].ACTIONS.ADD_MESSAGE,Object(R["b"])("Beim importieren des Filters ist ein Fehler aufgetreten.","danger"))})):this.attachments.filter((function(e){return null===e||void 0===e?void 0:e.preloaded})).map((function(t){e.allAttachments.push({id:t.id,label:t.name,fileName:t.name})})),this.$store.commit(M["default"].MUTATIONS.SET_ATTACHMENTS,null)}this.allAttachments&&this.allAttachments.length&&(this.allAttachments=Object(o["a"])(new Set(this.allAttachments.map((function(e){return e.id||0})))).map((function(t){return e.allAttachments.find((function(e){return e.id===t}))}))),this.$store.commit(p["default"].MUTATIONS.RENEW_SELECTED_CUSTOMERS),this.presavedAppointment?this.$store.commit(u["default"].MUTATIONS.PRESAVE_APPOINTMET,null):this.createAppointment(),this.selectedDate&&(this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_BEGIN_DATE,d()(this.selectedDate).format("DD.MM.YYYY")),this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_END_DATE,d()(this.selectedDate).format("DD.MM.YYYY"))),this.subject&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT_LABEL,this.subject),this.status&&this.$store.commit(u["default"].MUTATIONS.SET_APPOINTMENT,{status:this.status}),this.getModalTitle()}},beforeDestroy:function(){this.$store.commit(u["default"].MUTATIONS.SET_SELECTED_APPOINTMENT_DATA,{appointment:{appointment:Object(r["a"])({},this.getEmptyAppointment)},day:this.thisday}),this.$store.commit(u["default"].MUTATIONS.SET_BETEILIGTE_FOR_UPDATE,[])}},G=F,K=(n("095b"),n("2877")),H=Object(K["a"])(G,a,i,!1,null,"794d0ee4",null);t["default"]=H.exports},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})},c270:function(e,t,n){"use strict";n("4e2b1")},c920:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".vertical-stepper--collapsable[data-v-0b306da5]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column;flex-flow:column}.vertical-stepper--collapsable .vertical-stepper--collapse-toggle__container[data-v-0b306da5]{-ms-flex-item-align:end;align-self:flex-end;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;margin:0 8px 8px 0}.vertical-stepper--collapsable .vertical-stepper--collapse-toggle[data-v-0b306da5]{margin:0;-webkit-transition:-webkit-transform .5s ease;transition:-webkit-transform .5s ease;transition:transform .5s ease;transition:transform .5s ease,-webkit-transform .5s ease}.vertical-stepper--collapsable .vertical-stepper--items[data-v-0b306da5]{width:100%;max-width:268px;overflow:hidden;-webkit-transition:max-width .5s ease;transition:max-width .5s ease}.vertical-stepper--collapsable .vertical-stepper--items__wrap[data-v-0b306da5]{min-width:268px}.vertical-stepper--collapsable.vertical-stepper--collapsed .vertical-stepper--collapse-toggle[data-v-0b306da5]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.vertical-stepper--collapsable.vertical-stepper--collapsed .vertical-stepper--items[data-v-0b306da5]{max-width:32px}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__substep-pipe[data-v-0b306da5]{border-color:#999}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__substep__warning-pipe[data-v-0b306da5]{border:2px solid var(--color-danger)}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__label--selected[data-v-0b306da5],.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-substep__label--selected[data-v-0b306da5]{font-weight:400}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-stop__label--selected[data-v-0b306da5]{font-size:inherit}.vertical-stepper--collapsable.vertical-stepper--collapsed .stepper-item--selected .vertical-substep__label--selected[data-v-0b306da5]{font-size:.8rem}.vertical-stepper__container[data-v-0b306da5]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:-8px}.vertical-stepper__container>*[data-v-0b306da5]{margin:8px}.vertical-stop__substep-pipe[data-v-0b306da5]{border:1px solid #ccc;min-height:1rem}.vertical-stop__substep__warning-pipe[data-v-0b306da5]{border:1px solid var(--color-danger);min-height:1rem}.vertical-stop__label--selected[data-v-0b306da5]{font-weight:510;font-size:1.05rem}.vertical-stop__label[data-v-0b306da5]{margin-left:8px}.vertical-stop__icon[data-v-0b306da5]{-ms-flex-negative:0;flex-shrink:0}.stepper-item__container[data-v-0b306da5]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.stepper-item__container.disabled[data-v-0b306da5]{cursor:not-allowed;opacity:.8}.stepper-item__icon[data-v-0b306da5]{-webkit-box-flex:0;-ms-flex:0 0 32px;flex:0 0 32px;height:32px}.stepper-item__label[data-v-0b306da5]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.vertical-step__icon-container[data-v-0b306da5]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vertical-step__icon-container[data-v-0b306da5],.vertical-substep__icon-container[data-v-0b306da5]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%}.vertical-substep__icon-container[data-v-0b306da5]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding-left:45%;gap:5px}.vertical-substep__label[data-v-0b306da5]{font-size:.8rem;margin-left:16px}.vertical-substep__label--selected[data-v-0b306da5]{font-weight:510;font-size:.85rem}@media screen and (min-width:3840px){.app--is-test-user-context .vertical-stepper--collapsable .vertical-stepper--items[data-v-0b306da5]{max-width:368px}}",""]),e.exports=t},c924:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".tp-selector__container[data-v-ef7c4f88]{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.tp-column__selector[data-v-ef7c4f88]{-webkit-box-flex:1;-ms-flex:1 1 50%;flex:1 1 50%;height:250px;overflow-y:auto;padding-right:16px}.tp-cell__selector[data-v-ef7c4f88]{height:36px;width:36px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer}.inputfield__input-icon--right-side[data-v-ef7c4f88]{padding:0 1rem;right:0;padding-left:4px}.inputfield__input-icon[data-v-ef7c4f88]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;top:0;height:100%}.tp-cell__selector--selected[data-v-ef7c4f88]{font-weight:700;color:var(--color-active)}.tp-cell__selector[data-v-ef7c4f88]:hover{background-color:rgba(0,0,0,.1)}.timepicker-container[data-v-ef7c4f88]{display:-webkit-box;display:-ms-flexbox;display:flex}@media (max-width:1024px){.timepicker-container[data-v-ef7c4f88]{display:block}}@media (hover:hover){.tp-column__selector[data-v-ef7c4f88]{overflow:hidden}.tp-column__selector[data-v-ef7c4f88]:hover{overflow-y:auto}}",""]),e.exports=t},ca1f:function(e,t,n){var a=n("5b2c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("910ee7d2",a,!0,{sourceMap:!1,shadowMode:!1})},cac7:function(e,t,n){"use strict";n("7e84c")},cc84:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".title[data-v-629d2744]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.title[data-v-629d2744],span i[data-v-629d2744]{cursor:pointer}.title i[data-v-629d2744]{font-size:.9em}.bearbeiten[data-v-629d2744]{float:right}.collapsable-title[data-v-629d2744]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.collapsable-toggle-icon[data-v-629d2744]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.collapsed .title[data-v-629d2744]{margin-bottom:0}",""]),e.exports=t},cd4c:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".table-container[data-v-00ef267f]{border-radius:4px;width:100%;height:auto}.table-pagination[data-v-00ef267f]{-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-00ef267f],.table-pagination .table-pagination--left[data-v-00ef267f],.table-pagination .table-pagination--right[data-v-00ef267f]{display:-webkit-box;display:-ms-flexbox;display:flex}",""]),e.exports=t},d137: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",[n("BaseButton",{staticClass:"upload-btn",attrs:{isPrimary:e.isPrimary,disabled:e.disabled}},[e._t("default",(function(){return[e._v("Datei hinzufügen")]})),n("label",{staticClass:"upload-btn--label",class:{clickable:!e.disabled}},[n("input",{attrs:{type:"file",accept:e.accept,multiple:"",disabled:e.disabled},on:{change:e.onAddFiles}})])],2)],1),e.value&&e.value.length?n("hr"):e._e(),n("div",{staticClass:"flex-layout"},[e._l(e.value,(function(t){return[n("div",{key:t.name+t.size+t.lastModified,staticClass:"pill__container"},[n("Pill",{attrs:{label:t.name,type:"default",showCloseIcon:!0},on:{removePill:function(n){return e.onRemoveFile(t)}}})],1)]}))],2),e.value&&e.value.length?n("hr"):e._e()])},i=[],s=(n("a9e3"),n("fb6a"),n("159b"),n("a434"),n("04bc")),o=n("025b"),r=n("876f"),l=n("de6c"),c={props:{accept:{type:String,default:"*"},value:{type:Array,default:function(){return[]}},isPrimary:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},maxFileSizeMB:{type:Number,default:0}},methods:{onAddFiles:function(e){var t=this.value.slice(),n=[],a=1024*this.maxFileSizeMB*1024;e.target.files.forEach((function(e){a&&e.size>a?n.push(e):t.push(e)})),n.length?this.$store.dispatch(l["default"].ACTIONS.ADD_MESSAGE,Object(r["b"])("Diese Dateien überschreiten die Größenbegrenzung von ".concat(this.maxFileSizeMB," MB. Bitte laden Sie erneut eine kleinere Datei hoch."),"warning")):(this.$emit("input",t),e.target.value="")},onRemoveFile:function(e){var t=this.value.slice();t.splice(t.indexOf(e),1),this.$emit("input",t)}},components:{BaseButton:s["default"],Pill:o["a"]}},d=c,u=(n("2943"),n("2877")),p=Object(u["a"])(d,a,i,!1,null,"44c0adea",null);t["a"]=p.exports},e008:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"section",class:{collapsed:!e.mutatedSection}},[n("span",{directives:[{name:"show",rawName:"v-show",value:e.showEditButton,expression:"showEditButton"}],staticClass:"btn bearbeiten",staticStyle:{"background-color":"transparent"},on:{click:function(t){return e.onEditItem()}}},[n("ph-pencil-line",{attrs:{size:16}})],1),n("span",{directives:[{name:"show",rawName:"v-show",value:e.showDeleteButton,expression:"showDeleteButton"}],staticClass:"btn bearbeiten",staticStyle:{"background-color":"transparent"},on:{click:function(t){return e.onDeleteItem()}}},[n("ph-trash",{attrs:{size:16}})],1),n("div",{staticClass:"title",on:{click:e.toggle}},[n("div",{staticClass:"collapsable-title"},[e._t("title")],2),e._v("   "),n("div",{staticClass:"collapsable-toggle-icon"},[n("ph-caret-down",{directives:[{name:"show",rawName:"v-show",value:!e.mutatedSection,expression:"!mutatedSection"}],attrs:{size:16,weight:"bold"}}),n("ph-caret-up",{directives:[{name:"show",rawName:"v-show",value:e.mutatedSection,expression:"mutatedSection"}],attrs:{size:16,weight:"bold"}})],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.mutatedSection,expression:"mutatedSection"}],staticClass:"body"},[e._t("content")],2)])},i=[],s=n("c0a4"),o={name:"collapsable",props:{showEditButton:{type:Boolean,default:!1},showDeleteButton:{type:Boolean,default:!1},showSection:{type:Boolean,default:!1},visibile:{type:Boolean,default:void 0}},model:{prop:"visibile",event:"change"},data:function(){return{mutatedSection:this.showSection}},computed:{visibileValue:{get:function(){return this.visibile},set:function(e){this.$emit("change",e)}}},methods:{toggle:function(){this.mutatedSection=!this.mutatedSection,this.visibileValue=this.mutatedSection},expand:function(){this.mutatedSection=!0},collapse:function(){this.mutatedSection=!1},onEditItem:function(e){this.showSection=!1,this.$emit("edit-item")},onDeleteItem:function(e){this.showSection=!1,this.$emit("delete-item")}},watch:{visibile:function(){this.mutatedSection=this.visibile}},created:function(){void 0!==this.visibile&&(this.mutatedSection=this.visibile)},components:{PhCaretDown:s["PhCaretDown"],PhCaretUp:s["PhCaretUp"],PhPencilLine:s["PhPencilLine"],PhTrash:s["PhTrash"]}},r=o,l=(n("17b1"),n("2877")),c=Object(l["a"])(r,a,i,!1,null,"629d2744",null);t["a"]=c.exports},e370:function(e,t,n){var a=n("951f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("1d93ea07",a,!0,{sourceMap:!1,shadowMode:!1})},f056:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[e._v(" Manuelle Struktur ")])},i=[],s=n("2877"),o={},r=Object(s["a"])(o,a,i,!1,null,null,null);t["a"]=r.exports},f12e:function(e,t,n){"use strict";n("e370")},f155:function(e,t,n){var a=n("24fb");t=a(!1),t.push([e.i,".entity-selector__combobox-container[data-v-5dce6aaa]{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.entity-selector__button[data-v-5dce6aaa]{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}",""]),e.exports=t},f605:function(e,t,n){"use strict";n("7ad7")},f60f:function(e,t,n){"use strict";var a=n("3835"),i=n("1da1"),s=n("5530"),o=(n("96cf"),n("a9e3"),n("c1f9"),n("d81d"),n("4fad"),n("4de4"),n("b0c0"),n("caad"),n("2532"),n("e260"),n("cee4")),r=n("2f62"),l=n("0169"),c=n("a2c3"),d=n("81f6"),u=n("a871"),p=n("9af6");t["a"]={props:{nodeId:{type:[String,Number]},versicherungId:{type:[String,Number],default:null,required:!1},showOnlySchadenDocs:{type:Boolean,default:!1},schadenId:{type:[String,Number],default:null,required:!1}},data:function(){return{files:null,currentHeaderAction:null}},computed:Object(s["a"])(Object(s["a"])({},Object(r["b"])({selectedNode:l["default"].GETTERS.DOCUMENTS,selectedRows:l["default"].GETTERS.SELECTED_ROWS,additionalUploadInputs:l["default"].GETTERS.ADDITIONAL_UPLOAD_INPUTS,isSelectedAllInFolder:l["default"].GETTERS.IS_SELECTED_ALL_IN_FOLDER,isLoadingNode:l["default"].GETTERS.IS_LOADING_NODE,filesFromDokumentenarchiv:c["default"].GETTERS.FILES_FROM_DOKUMENTENARCHIV})),{},{currentAdditionalInputs:function(){var e;return(null===(e=this.additionalUploadInputs)||void 0===e?void 0:e.additionalUploadInputs)||null},confirmationMessage:function(){var e;return null===(e=this.currentHeaderAction)||void 0===e?void 0:e.confirmationMessage}}),watch:{filesFromDokumentenarchiv:{handler:function(e){this.files=(null===e||void 0===e?void 0:e.length)>0?e:null},immediate:!0}},methods:{buttonDisabled:function(e){return"DOKUMENTENARCHIV"!==e&&"DATEI_HOCHLADEN"!==e&&"DATEI_HINZUFUGEN"!==e&&!this.isSelectedAllInFolder&&(!this.selectedRows.length||this.selectedRows.some((function(e){return!e.exists})))},closeSendEmailModal:function(){this.$refs.sendEmailModal.close()},executeHeaderAction:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(null!==e&&void 0!==e&&e.key){n.next=2;break}return n.abrupt("return");case 2:t.currentHeaderAction=(null===e||void 0===e?void 0:e.value)||e,n.t0=null===e||void 0===e?void 0:e.key,n.next="CONFIRM_SELECTION"===n.t0?6:"DATEI_HOCHLADEN"===n.t0?11:"DATEI_HINZUFUGEN"===n.t0?13:"MARKIERTE_MAIL_VERSCHICKEN"===n.t0?15:"MARKIERTE_MAIL_KUNDE_GESELL_VERSCHICKEN"===n.t0?17:"MARKIERTE_MAIL_KUNDE_VERSCHICKEN"===n.t0?19:"MARKIERTE_MAIL_GESELLSCHAFT_VERSCHICKEN"===n.t0?21:"DOKUMENTENARCHIV"===n.t0?23:25;break;case 6:return n.next=8,t.retrieveSelectedRowsAsTempFiles();case 8:return a=n.sent,a.length&&(t.$emit("headerAction",{key:e.actionKey,value:a}),t.$emit("headerAction-".concat(e.actionKey),a)),n.abrupt("break",27);case 11:return t.dateiHochladen(),n.abrupt("break",27);case 13:return t.$router.push({path:"/communication/documents/zusaetzlichedokumente",query:{nodeId:t.nodeId,fileId:null}}),n.abrupt("break",27);case 15:return t.sendEmail(!1),n.abrupt("break",27);case 17:return t.$refs.sendEmailModal.open(),n.abrupt("break",27);case 19:return t.sendEmail(!1),n.abrupt("break",27);case 21:return t.sendEmail(!0),n.abrupt("break",27);case 23:return t.$router.push({path:"/communication/schadensmeldung-dokumentenarchiv",query:{back:t.$route.fullPath,nodeId:t.nodeId,fileId:null,insuranceId:t.insuranceId,schadenId:t.schadenId}}),n.abrupt("break",27);case 25:e.actionKey&&(t.$emit("headerAction",{key:e.actionKey,value:e}),t.$emit("headerAction-".concat(e.actionKey),e)),(t.selectedRows.length&&!t.isSelectedAllInFolder||t.isSelectedAllInFolder)&&t.$refs.confirmationModal.open();case 27:case"end":return n.stop()}}),n)})))()},confirmSendEmail:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.closeSendEmailModal(),this.sendEmail(e)},retrieveSelectedRows:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,i,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.selectedRows,!e.isSelectedAllInFolder){t.next=5;break}return t.next=4,e.$store.dispatch(l["default"].ACTIONS.RETRIEVE_DOCUMENTS,{nodeId:e.nodeId,offset:0,limit:200,schadenId:e.schadenId,keepOldPages:!1,reloadTree:!1,linkVertrag:!0,doAlwaysLoad:!0});case 4:null!==(i=e.selectedNode)&&void 0!==i&&i.documents&&(n=[],Object.fromEntries(Object.entries(null===(s=e.selectedNode)||void 0===s?void 0:s.documents).map((function(e){var t=Object(a["a"])(e,2),i=t[0],s=t[1];return[i,s.map((function(e){n.push(e)}))]}))));case 5:return t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})))()},retrieveSelectedRowsAsTempFiles:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n,a,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.retrieveSelectedRows();case 2:return n=t.sent,a=[],i=n.filter((function(e){return((null===e||void 0===e?void 0:e.node)||(null===e||void 0===e?void 0:e.nodeId))&&!e.uploaded})).map((function(e){return{nodeId:(null===e||void 0===e?void 0:e.node)||(null===e||void 0===e?void 0:e.nodeId),fileId:null===e||void 0===e?void 0:e.id}})),t.next=7,o["a"].post("".concat("/MSC3/restful","/documents/getTempFiles"),i).then((function(e){var t;null===e||void 0===e||null===(t=e.data)||void 0===t||t.map((function(e){a.push({id:e.id,name:e.name})}))})).catch((function(t){e.downloadErrorMessage=null===t||void 0===t?void 0:t.errorMessage,e.$refs.downloadErrorModal.open()}));case 7:return t.abrupt("return",a);case 8:case"end":return t.stop()}}),t)})))()},sendEmail:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var a,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,t.retrieveSelectedRowsAsTempFiles();case 2:a=n.sent,a.length&&(t.$route.path.includes("schadensmeldung")||t.versicherungId?t.$emit("sendEmail",{toCompany:e,attachments:a}):(i=t.selectedRows&&t.selectedRows[0].vertragId,d["u"].$emit(d["s"],{insuranceId:i,attachments:a,toCompany:e})));case 4:case"end":return n.stop()}}),n)})))()},getBackOptions:function(){return this.$route.query.back.includes("pruefstatus")||this.$route.query.back.includes("mailcomposer-insurance")?"?backAction=true":this.$route.params.type&&this.$route.params.type.includes("calendar")?"?usersselected=true":""},dateiHochladen:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.files=e,this.$store.dispatch(l["default"].ACTIONS.RETRIEVE_ADDITIONAL_UPLOAD_INPUTS,{nodeId:this.nodeId,showOnlySchadenDocs:this.showOnlySchadenDocs})},onConfirmHeaderActionModal:function(){var e={headerAction:this.currentHeaderAction.key,nodeId:this.nodeId,documentIds:this.selectedRows.map((function(e){return e.id}))};this.$store.dispatch(l["default"].ACTIONS.EXECUTE_HEADER_ACTION,e),this.currentHeaderAction=null}},components:{BaseModal:u["a"],DocumentsUploadModal:p["a"]}}},f989:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.inputs?n("div",{staticClass:"grid",staticStyle:{width:"100%"}},[e._l(e.inputs,(function(t){return[t.visible&&!e.evaluateUploadExpression(e.value,t.visible)||t.ignore&&e.evaluateUploadExpression(e.value,t.ignore)?e._e():n("label",{key:t.key?t.key:t.label,class:{invalid:t.valid&&!e.evaluateUploadExpression(e.value,t.valid)}},["LABEL"==t.type?n("div",{staticClass:"label-item"},[n("span",{class:e.fixedColor(t.labelFixedColor)},[e._v(e._s(t.label))])]):e._e(),"BOOLEAN"==t.type?n("InputCheckBoxItem",{staticStyle:{width:"100%"},attrs:{value:e.value[t.key],disabled:e.isDisabled(e.value,t),label:t.label},on:{input:function(n){return e.emitChange(t.key,n)}}}):e._e(),"SWITCHER"==t.type?n("InputToggleSwitch",{staticStyle:{width:"100%"},attrs:{value:e.value[t.key],disabled:e.isDisabled(e.value,t),label:t.label},on:{input:function(n){return e.emitChange(t.key,n)}}}):e._e(),"STRING"==t.type?n("InputField",{staticStyle:{width:"100%"},attrs:{value:e.value[t.key],disabled:e.isDisabled(e.value,t),label:t.label},on:{change:function(n){return e.emitChange(t.key,n)}}}):e._e(),"INTEGER"==t.type?n("InputField",{staticStyle:{width:"100%"},attrs:{type:"number",value:e.value[t.key],disabled:e.isDisabled(e.value,t),label:t.label},on:{change:function(n){return e.emitInteger(t.key,n)}}}):e._e(),"DATE"==t.type?n("DatePickerField",{staticStyle:{width:"100%"},attrs:{value:e.value[t.key],isValueAsString:"",disabled:e.isDisabled(e.value,t),label:t.label},on:{change:function(n){return e.emitChange(t.key,n)}}}):e._e(),"COMBOBOX"==t.type?n("ComboBox",{staticStyle:{width:"100%"},attrs:{sortComboboxValues:!1,value:e.value[t.key],renderDanger:t.valid&&!e.evaluateUploadExpression(e.value,t.valid),disabled:e.isDisabled(e.value,t),values:t.options,label:t.label,customizable:!0},on:{change:function(n){return e.emitChange(t.key,n)}}}):e._e(),"RADIO"==t.type?n("InputRadioBoxGroup",{staticStyle:{width:"100%"},attrs:{value:e.value[t.key],disabled:e.isDisabled(e.value,t),values:t.options,title:t.label},on:{input:function(n){return e.emitChange(t.key,n)}}}):e._e(),"TEXT"==t.type?n("InputTextArea",{staticStyle:{width:"100%"},attrs:{value:e.value[t.key],disabled:e.isDisabled(e.value,t),label:t.label},on:{input:function(n){return e.emitChange(t.key,n)}}}):e._e()],1)]}))],2):e._e()},i=[],s=n("ade3"),o=n("5530"),r=(n("159b"),n("0054")),l=n("9131"),c=n("c704"),d=n("4567"),u=n("8839"),p=n("5818"),h=n("d9f5"),f=n("9aaa"),m={mixins:[u["a"]],components:{DatePickerField:r["default"],ComboBox:l["default"],InputField:c["default"],InputRadioBoxGroup:d["default"],InputCheckBoxItem:p["a"],InputTextArea:h["default"],InputToggleSwitch:f["default"]},props:{value:{required:!0,type:Object},inputs:{required:!0,type:Array},disabled:{default:!1,type:Boolean}},data:function(){return{}},methods:{fixedColor:function(e){switch(e){case"SUCCESS":return"color-success";case"INFO":return"color-info";case"WARNING":return"color-warning";case"DANGER":return"color-danger"}return"color-text"},evaluateUploadExpression:function(e,t){return this.evaluateExpression(e,t)},emitInteger:function(e,t){this.$emit("input",Object(o["a"])(Object(o["a"])({},this.value),{},Object(s["a"])({},e,parseInt(t)||0)))},emitChange:function(e,t){var n=Object(o["a"])(Object(o["a"])({},this.value),{},Object(s["a"])({},e,t));this.setCalculatedValues(n,e),this.$emit("input",n)},setCalculatedValues:function(e,t){var n=this;this.inputs.forEach((function(a){a.updateTriggers&&a.updateTriggers.forEach((function(i){i.key===t&&n.evaluateUploadExpression(e,i.expression)&&(e[a.key]=i.value)}))}))},isDisabled:function(e,t){return this.disabled||t.disabled&&this.evaluateUploadExpression(e,t.disabled)}}},b=m,v=(n("f12e"),n("2877")),g=Object(v["a"])(b,a,i,!1,null,"1513d866",null);t["a"]=g.exports},fb6b:function(e,t,n){var a=n("29b9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("9f5d0a86",a,!0,{sourceMap:!1,shadowMode:!1})},fbc0:function(e,t,n){var a=n("b67f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("662e4948",a,!0,{sourceMap:!1,shadowMode:!1})},fe94:function(e,t,n){var a=n("b772");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("499e").default;i("6ddc091b",a,!0,{sourceMap:!1,shadowMode:!1})}}]);