(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["privacy~register-privacy"],{"17b1":function(e,t,n){"use strict";n("3dd5")},3200:function(e,t,n){"use strict";var i=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.title?n("div",{staticClass:"input-forms__label-content",domProps:{innerHTML:e._s(e.sanitize(e.title))}}):e._e()]),n("div",{staticClass:"input-forms__input-container checkbox-input__container"},e._l(e.normalizedValues,(function(t){return n("div",{key:t.path},[n("InputCheckBoxItem",{attrs:{id:t.path,label:t.label,value:e.value[t.path],disabled:e.disabled||t.disabled},on:{input:function(n){return e.onInput(n,t)}}}),e.isValidationConfigured()?[!e.suppressValidationMessage&&e.validation?n("div",{key:e.validation.updated},e._l(e.validation.getErrors(e.getCheckboxErrorPath(t.path),e.validateUntouched),(function(t){return n("div",{key:t,staticClass:"input-forms__error-message"},[e._v(" "+e._s(t)+" ")])})),0):e._e()]:e._e()],2)})),0)])},a=[],s=n("ade3"),o=n("5530"),r=(n("d81d"),n("d3b7"),n("ddb0"),n("99af"),n("e260"),n("5818")),l=n("7bf0"),c=n("b20b"),u={mixins:[l["a"]],props:{title:{type:String,default:""},values:{type:Array,default:function(){return[]}},value:{type:Object,default:function(){return{}}},validateUntouched:{type:Boolean,default:!1},suppressValidationMessage:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{normalizedValues:function(){return this.values.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{path:"value"in e?e.value:e.path})}))}},methods:{sanitize:function(e){return Object(c["b"])(e)},getValue:function(e){var t;return null===(t=this.value)||void 0===t?void 0:t[e]},onInput:function(e,t){this.$set(this.value,t.path,e),this.$emit("checkBoxToggle",Object(s["a"])({},t.path,e)),this.$emit("input",Object(o["a"])(Object(o["a"])({},this.value),{},Object(s["a"])({},t.path,e))),this.$runValidator(e)},getCheckboxErrorPath:function(e){return"".concat(this.validationPath,".").concat(e)}},components:{InputCheckBoxItem:r["a"]}},d=u,h=(n("a172"),n("2877")),f=Object(h["a"])(d,i,a,!1,null,"1ecfc608",null);t["a"]=f.exports},"3dd5":function(e,t,n){var i=n("cc84");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("499e").default;a("3185cbfb",i,!0,{sourceMap:!1,shadowMode:!1})},7287:function(e,t,n){var i=n("f3cc");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("499e").default;a("1d6f00aa",i,!0,{sourceMap:!1,shadowMode:!1})},9009:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box__container"},[n("BaseCollapsable",{ref:"baseCollapsable",attrs:{showSection:e.showExpanded},scopedSlots:e._u([{key:"title",fn:function(){return[n("span",{staticClass:"box__title"},[e._v("Hinweise / Fehler ")]),e.hasHints?n("span",[e._v(" |  ("+e._s(e.hints.length)+" Hinweis"+e._s(e.hints.length>1?"e":"")+")")]):e._e(),e.hasErrors?n("span",{staticClass:"color-danger"},[e._v(" |  Das Formular enthält Fehler")]):e._e()]},proxy:!0},{key:"content",fn:function(){return[e.hasHints||e.hasErrors?e.hasErrors?n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("span",{staticClass:"font-bold"},[e._v("Fehler:")])])]),e._l(e.errors,(function(t,i){return n("div",{key:i,staticClass:"row"},[n("div",{staticClass:"col-12",class:{clickable:e.isNavigable(t)},on:{click:function(n){return e.navigateTo(t)}}},[e._v(" "+e._s(e.getDescription(t))+" "),e.isNavigable(t)?n("PhPencilLine",{attrs:{size:20}}):e._e()],1)])}))],2):e._e():n("div",[e._v(" Keine Hinweise / Fehler vorhanden. ")]),e.hasHints?n("div",[n("div",{staticClass:"row"},[n("div",{staticClass:"col-12"},[n("span",{staticClass:"font-bold"},[e._v("Hinweise:")])])]),e._l(e.hints,(function(t,i){return n("div",{key:i,staticClass:"row"},[n("div",{staticClass:"col-12",domProps:{innerHTML:e._s(e.hintHtml(t))}})])}))],2):e._e()]},proxy:!0}])})],1)},a=[],s=(n("99af"),n("c0a4")),o=n("e008"),r=n("b20b"),l={props:{errors:{type:Array,default:function(){return[]}},hints:{type:Array,default:function(){return[]}},showExpanded:{type:Boolean,default:!1}},components:{PhPencilLine:s["PhPencilLine"],BaseCollapsable:o["a"]},computed:{hasErrors:function(){return this.errors&&this.errors.length},hasHints:function(){return this.hints&&this.hints.length}},methods:{hintHtml:function(e){return e&&e.message?Object(r["b"])("<div><b>".concat(e.title||"","</b></div>").concat(e.message)):""},isSimpleError:function(e){return"string"===typeof e},getDescription:function(e){return e?this.isSimpleError(e)?e:this.getErrorMessage(e.title,e.message):""},getErrorTitle:function(e){return e?"Schritt ".concat(e,": "):""},getErrorMessage:function(e,t){return this.getErrorTitle(e)+(t||"")},isNavigable:function(e){return e&&e.stepKey},navigateTo:function(e){var t=e.stepKey,n=e.substepKey;t&&(n?this.$emit("set-substep",{stepKey:t,substepKey:n}):this.$emit("set-step",t))},expand:function(){var e;null===(e=this.$refs.baseCollapsable)||void 0===e||e.expand()},collapse:function(){var e;null===(e=this.$refs.baseCollapsable)||void 0===e||e.collapse()}}},c=l,u=n("2877"),d=Object(u["a"])(c,i,a,!1,null,"350f3c30",null);t["a"]=d.exports},a172:function(e,t,n){"use strict";n("7287")},cc84:function(e,t,n){var i=n("24fb");t=i(!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},e008:function(e,t,n){"use strict";var i=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)])},a=[],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,i,a,!1,null,"629d2744",null);t["a"]=c.exports},f108:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isMobileNativeContext?n("PageHeaderTitleNavigation",e._g({attrs:{title:"Profil",subtitle:"Datenschutzerklärung",actions:e.headerActions()},on:{"action-ABLEHNEN":function(t){return e.$refs.rejectTermsModal.open()},"action-AKZEPTIEREN":function(t){return e.checkAcceptTerms()}}},e.$listeners)):e._e(),n("HinweiseUndFehler",{attrs:{hints:e.hints}}),n("div",{staticClass:"box__container"},[n("div",{domProps:{innerHTML:e._s(e.mainHtmlText)},on:{click:e.openLink}}),e.hideAcceptLabelHtmlText?e._e():n("InputCheckBoxItem",{attrs:{label:e.acceptLabelHtmlText,disabled:e.isKundenzugang},on:{click:e.openLink},model:{value:e.internalForm.isConfirmed,callback:function(t){e.$set(e.internalForm,"isConfirmed",t)},expression:"internalForm.isConfirmed"}}),e.isTestCustomer?n("InputCheckBoxItem",{attrs:{label:e.erstinformationText,disabled:e.isKundenzugang},on:{click:e.openLink},model:{value:e.internalForm.hasErstinformation,callback:function(t){e.$set(e.internalForm,"hasErstinformation",t)},expression:"internalForm.hasErstinformation"}}):e._e()],1),n("div",{staticClass:"box__container"},[n("div",{staticClass:"box__title"},[e._v("Ich möchte künftig kontaktiert werden per")]),e._l(e.contactValues,(function(t){return n("div",[n("InputCheckBoxItem",{attrs:{label:t.label,disabled:e.isKundenzugang||e.isVVCustomer&&"app"===t.path},model:{value:e.internalForm.privacyChecks[t.path],callback:function(n){e.$set(e.internalForm.privacyChecks,t.path,n)},expression:"internalForm.privacyChecks[contactValue.path]"}}),e.isVVCustomer&&"app"===t.path?n("span",{staticStyle:{color:"var(--color-danger)"}},[e._v("Sie sind Kunde der Vermögensverwaltung. Hier herrscht eine gesetzliche Reportingpflicht. Eine Änderung der Einstellung ist nicht möglich. Bei weiteren Fragen wenden Sie sich bitte an Ihren Berater.")]):e._e()],1)}))],2),e.isMobileNativeContext?e._e():n("div",{staticClass:"box__container"},[n("div",[n("div",{staticClass:"layout__negative-margin--8"},[n("BaseButton",{attrs:{isSecondary:"",disabled:!!e.isLoading||e.isKundenzugang},on:{click:function(t){return e.$refs.rejectTermsModal.open()}}},[e._v(" Ablehnen ")]),n("BaseButton",{attrs:{disabled:!e.hideAcceptLabelHtmlText&&e.validation.isInvalid("internalForm")||!!e.isLoading||e.isKundenzugang},on:{click:function(t){return e.checkAcceptTerms()}}},[e._v(" Akzeptieren "),e.isLoading?n("AnimatedSpinner"):e._e()],1)],1)])]),n("BaseModal",{ref:"rejectTermsModal",attrs:{labelButtonConfirm:"Ok",labelButtonCancel:"Abbrechen"},on:{onConfirmButton:function(t){return e.handleTermRejected()}},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[e._v(" "+e._s(e.ablehnenDataschutzerklaerungMessageTitle)+" ")]},proxy:!0}])},[e._v(" "+e._s(e.ablehnenDataschutzerklaerungMessage)+" ")]),n("BaseModal",{ref:"confirmContactModal",attrs:{labelButtonConfirm:"Ok",labelButtonCancel:"Abbrechen"},on:{onConfirmButton:function(t){return e.acceptTerms()}},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[e._v(" "+e._s(e.kommunikationMessageTitle)+" ")]},proxy:!0}])},[e._v(" "+e._s(e.kommunikationMessage)+" ")]),n("BaseModal",{ref:"refuseAppModal",attrs:{labelButtonConfirm:"Ok",showCancelButton:!1},scopedSlots:e._u([{key:"modalTitle",fn:function(){return[e._v(" Achtung, keine App-Kontaktmöglichkeit ")]},proxy:!0}])},[e._v(' Bitte beachten Sie, dass Sie keine Nachrichten mehr schicken bzw. auf keine Nachrichten antworten können, wenn Sie die Kontaktmöglichkeit "App" abwählen. ')])],1)},a=[],s=n("b85c"),o=n("5530"),r=(n("d81d"),n("07ac"),n("ac1f"),n("5319"),n("4d63"),n("25f0"),n("a15b"),n("b64b"),n("2f62")),l=n("64c5"),c=n("d3ac"),u=n("6ce5"),d=n("b20b"),h=n("3200"),f=n("5818"),p=n("04bc"),m=n("a871"),v=n("2042"),b=n("a9e4"),g=n("9009"),_=n("8103"),k=n("4e5f"),C=n("2684"),x={mixins:[c["a"]],emit:["terms-rejected"],props:{info:{type:Object,default:function(){return{}},required:!0},contacts:{type:Array,default:function(){return[]},required:!0},form:{type:Object,default:function(){return{}}},hideAcceptLabelHtmlText:{type:Boolean,default:!1}},data:function(){return{internalForm:{isConfirmed:!1,hasErstinformation:!1,privacyChecks:{}}}},computed:Object(o["a"])(Object(o["a"])({},Object(r["b"])({isTestCustomer:l["default"].GETTERS.IS_TEST_CUSTOMER,isLoading:l["default"].GETTERS.GLOBAL_LOADING_STATE_STATUS,hasRoles:l["default"].GETTERS.HAS_ROLES,appNameDefault:l["default"].GETTERS.APP_NAME_DEFAULT,isMobileNativeContext:C["default"].GETTERS.IS_MOBILE_NATIVE_CONTEXT})),{},{isKundenzugang:function(){return this.hasRoles(b["g"].IS_KUNDENZUGANG)},isVVCustomer:function(){return this.hasRoles(b["g"].IS_VVCUSTOMER)},contactValues:function(){return this.contacts?this.contacts.map((function(e){return{label:e.title,path:e.type}})):[]},hints:function(){return[{title:"E-Mail",message:"Notwendig, um Ihnen Nachrichten zu Ihrem Depot / Ihrer Versicherung sowie zur Passwortänderung zukommen zu lassen."},{title:"Telefon / SMS",message:"Notwendig, um Ihnen die Bestätigungscodes zwecks Passwortänderung sowie Einrichtung financeIDENT zukommen zu lassen."},{title:"App / Kundenzugang",message:"Notwendig um mit Ihrem Vermittler über das in der ".concat(this.appNameDefault," / FinanceApp integrierte Nachrichtensystem zu kommunizieren.")}]},mainHtmlText:function(){var e,t;return Object(d["b"])((null===(e=this.info)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.mainHtmlText)||"")},acceptLabelHtmlText:function(){var e,t;return null===(e=this.info)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.acceptLabelHtmlText},ablehnenDataschutzerklaerungMessageTitle:function(){var e,t;return null===(e=this.info)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.ablehnenDataschutzerklaerungMessageTitle},ablehnenDataschutzerklaerungMessage:function(){var e,t;return null===(e=this.info)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.ablehnenDataschutzerklaerungMessage},kommunikationMessageTitle:function(){var e,t;return null===(e=this.info)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.kommunikationMessageTitle},kommunikationMessage:function(){var e,t;return null===(e=this.info)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.kommunikationMessage},metaDataConfig:function(){var e,t;return null===(e=this.info)||void 0===e||null===(t=e.config)||void 0===t?void 0:t.metaDataConfig},erstinformationText:function(){return'Ja, ich habe die <a id="ersInf" class="text-info privacy-link">Kundenerstinformation</a> gelesen und bestätige diese.'},hasNoContactSelected:function(){var e,t;return(null===(e=this.internalForm)||void 0===e?void 0:e.privacyChecks)&&Object.values(null===(t=this.internalForm)||void 0===t?void 0:t.privacyChecks).some((function(e){return e}))}}),watch:{form:{handler:function(e){this.internalForm=Object(o["a"])(Object(o["a"])({},this.internalForm),e)},deep:!0,immediate:!0},contacts:{handler:function(e){if(Array.isArray(e)){var t,n=Object(s["a"])(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.$set(this.internalForm.privacyChecks,i.type,i.hasPermission)}}catch(a){n.e(a)}finally{n.f()}}},immediate:!0}},methods:{headerActions:function(){var e=this,t=[];return t.push(Object(k["h"])("AKZEPTIEREN","Akzeptieren").withDisabled((function(){return!e.hideAcceptLabelHtmlText&&e.validation.isInvalid("internalForm")||!!e.isLoading||e.isKundenzugang}))),t.push(Object(k["h"])("ABLEHNEN","Ablehnen").withDisabled((function(){return!!e.isLoading||e.isKundenzugang}))),t},handleTermRejected:function(){this.$emit("terms-rejected")},checkAcceptTerms:function(){if(!this.hasNoContactSelected)return this.$refs.confirmContactModal.open(),void this.$refs.rejectTermsModal.close();this.acceptTerms()},acceptTerms:function(){this.$emit("terms-accepted",this.getTermsAccepted())},checkAppWarningModal:function(e){e&&"undefined"!==typeof e.app&&!1===e.app&&this.$refs.refuseAppModal.open(),console.log(this.contactValues)},getTermsAccepted:function(){var e;if(null!==(e=this.internalForm)&&void 0!==e&&e.privacyChecks&&this.contacts){var t,n=[],i=Object(s["a"])(this.contacts);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.push(Object(o["a"])(Object(o["a"])({},a),{},{hasPermission:this.internalForm.privacyChecks[a.type]}))}}catch(l){i.e(l)}finally{i.f()}var r=Object(o["a"])(Object(o["a"])({isConfirmed:this.internalForm.isConfirmed},this.isTestCustomer&&{hasErstinformation:this.internalForm.hasErstinformation}),{},{contacts:n});return r}},openLink:function(e){var t=e.target;if(t.nodeName&&"a"===t.nodeName.toLowerCase()&&t.className.indexOf("privacy-link")>0){var n=t.id?t.id.toLowerCase():"";this.emitOpenLink(n,t.text,e)}},emitOpenLink:function(e,t,n){if(e&&this.metaDataConfig){n.preventDefault();var i={text:t};e&&this.replaceUmlaute(e).indexOf("datenschutz")>=0?(i.version=this.metaDataConfig.version,i.type="DATENSCHUTZERKLAERUNG_HTML"):e&&this.replaceUmlaute(e).indexOf("agb")>=0&&(i.version=this.metaDataConfig.version,i.type="AGB_HTML"),this.$emit("open-link",{type:e,params:i})}},replaceUmlaute:function(e){var t={"Ü":"UE","Ä":"AE","Ö":"OE","ü":"ue","ä":"ae","ö":"oe","ß":"ss"};return e.replace(new RegExp("["+Object.keys(t).join("|")+"]","g"),(function(e){return t[e]}))}},validators:{internalForm:{isConfirmed:[Object(u["u"])()],hasErstinformation:[Object(u["u"])()]}},components:{InputCheckBoxGroup:h["a"],InputCheckBoxItem:f["a"],BaseButton:p["default"],BaseModal:m["a"],AnimatedSpinner:v["a"],HinweiseUndFehler:g["a"],PageHeaderTitleNavigation:_["a"]}},w=x,y=n("2877"),T=Object(y["a"])(w,i,a,!1,null,null,null);t["a"]=T.exports},f3cc:function(e,t,n){var i=n("24fb");t=i(!1),t.push([e.i,".input-forms__label-container[data-v-1ecfc608]{margin-bottom:4px}",""]),e.exports=t}}]);