import{_ as R,a3 as te,T as O,r as c,o as a,b as m,p as l,F as E,l as o,q as _,n as B,a as y,v as L,w as b,C as se,u as D,D as P,B as re,G as ie,i as ae,H as ne,Y as oe,aV as le,aE as de,N as ue,O as $,e as ce,Z as ge,W as he}from"./main-DtyiNRRn.js";import{s as Q}from"./pageScrolling-DKoKIacQ.js";import{L as pe}from"./LoadingIndicatorWrapper-Cd2Pg2hk.js";import{G as me}from"./GMapMap-OK_M6BFX.js";import{_ as H,C as fe}from"./registrationMixin-BLdXjV36.js";import{_ as Z}from"./validatorsMixin.vue_vue_type_script_lang-BhpMiNHR.js";import{S as Y}from"./SelectInputFi-y7iX7osI.js";import{_ as ve}from"./countryZipValidationMixin-BmghHNXB.js";import{g as I}from"./fieldTransformations-DY2-qceq.js";import{m as _e}from"./makeSalutationListWithUnset-Cmk1xA1p.js";import{g as be}from"./index-DMcXiZMh.js";import{P as ye}from"./PasswordRequirements-D5q5u_JS.js";import{_ as ke}from"./checkboxCustomLabelMixin-9UyksviJ.js";import{_ as we}from"./mdiIconsMixin-BEqOLlac.js";import{_ as Ce}from"./vue3-recaptcha2.es-m3tGJLT0.js";import{b as Se,c as Te,d as Ve}from"./validators-CuGrUx1P.js";import{R as Le}from"./ResultStatusFi-Azqh2Mdi.js";import{d as Ge}from"./register-BL-sWo8-.js";import{_ as Re}from"./consentMixin-DJPQeQzl.js";import Ae from"./SectionDividerSmallFi-DvEWkxfa.js";import"./BlockNotificationFi-BuUtmEX2.js";import"./getConsentTemplates-lXPog8i8.js";import"./SectionDividerFi-DDwt5OTB.js";const Ee={name:"RegistrationStepAddress",components:{TooltipFi:te,SelectInputFi:Y,TextInputFi:O},mixins:[Z,ve],inject:["fields"],emits:["valid-changed"],data(){return{isValid:!1,countryList:[],fallbackCountries:[],fallbackSubTargetGroups:[],enableSubTargetGroupValidation:!1,enableCountryValidation:!1,enableZipcodeValidation:!1,enableZipcodeValidationDefault:!0}},computed:{targetGroup(){return this.$store.getters["registration/getTargetGroup"]},registrationWithoutTargetGroup(){var e;return((e=this.fields.registrationType)==null?void 0:e.value)==="WithoutTargetGroup"},selectSubTargetGroupList(){if(this.requiresInputForCraftsman){const[,e]=I(this.fields,"subTargetGroupCraftList",[],!0);return e||[]}if(this.requiresInputForRetailer){const[,e]=I(this.fields,"subTargetGroupRetailerList",[],!0);return e||[]}return[]},selectCountryList(){return this.countryList},subTargetGroupTitle(){var e,t;return this.requiresInputForCraftsman?(e=this.fields.subTargetGroupCraftLabel)==null?void 0:e.value:(t=this.fields.subTargetGroupRetailerLabel)==null?void 0:t.value},subTargetGroupRule(){let e=[];return this.requiresInputForCraftsman&&this.enableSubTargetGroupValidation&&(e=this.rules.craft),this.requiresInputForRetailer&&this.enableSubTargetGroupValidation&&(e=this.rules.retailer),e},subTargetGroup:{get(){const e=this.$store.getters["registration/getSubTargetGroup"];return e!=null&&e.length?e:null},set(e){var r;const t=(r=this.selectSubTargetGroupList.find(d=>d.value===e))==null?void 0:r.title;this.$store.dispatch("registration/setSubTargetGroup",e),this.$store.dispatch("registration/setSubTargetGroupTitle",t),this.validate()}},country:{get(){return this.$store.getters["registration/getCountry"]},set(e){this.$store.dispatch("registration/setCountry",e),this.validate()}},company:{get(){return this.$store.getters["registration/getCompany"]},set(e){this.$store.dispatch("registration/setCompany",e),this.validate()}},customerNumber:{get(){return this.$store.getters["registration/getCustomerNumber"]},set(e){this.$store.dispatch("registration/setCustomerNumber",e),this.validate()}},street:{get(){return this.$store.getters["registration/getStreet"]},set(e){this.$store.dispatch("registration/setStreet",e),this.validate()}},streetNumber:{get(){return this.$store.getters["registration/getStreetNumber"]},set(e){this.$store.dispatch("registration/setStreetNumber",e),this.validate()}},zipcode:{get(){return this.$store.getters["registration/getZipcode"]||""},set(e){this.$store.dispatch("registration/setZipcode",e.toLocaleUpperCase()),this.validate()}},city:{get(){return this.$store.getters["registration/getCity"]},set(e){this.$store.dispatch("registration/setCity",e),this.validate()}},validateAddress:{get(){return this.$store.getters["registration/getValidateAddress"]},set(e){this.$store.dispatch("registration/setValidateAddress",e)}},sectorRequiresInput(){return this.targetGroup!=="GROUP-diy"},requiresInputForCraftsman(){return this.targetGroup==="GROUP-craftsman"},requiresInputForRetailer(){return this.targetGroup==="GROUP-retailer"}},watch:{validateAddress(e){e&&this.validate()}},mounted(){const[e,t]=I(this.fields,"countryList");this.countryList=t==null?void 0:t.sort((r,d)=>r.name.localeCompare(d.name)),!this.country&&(e!=null&&e.value)&&this.countryListChanged(e.value),this.validate()},async created(){this.zipcode&&(this.enableZipcodeValidation=!0)},methods:{subTargetGroupListChanged(e){this.subTargetGroup=e},countryListChanged(e){this.setCountryZipValidation(e),this.country=e},async validate(){if(await this.$nextTick(),this.$refs.street&&this.$refs.streetNumber&&this.$refs.zipcode&&this.$refs.city){let e=!0;(this.requiresInputForCraftsman||this.requiresInputForRetailer)&&this.selectSubTargetGroupList.length>0&&(e=!!this.subTargetGroup);let t=!0;this.sectorRequiresInput&&(t=!!(this.company!==""&&this.$refs.company&&!this.$refs.company.errorBucket.length)),this.isValid=!!(e&&t&&this.street!==""&&!this.$refs.street.errorBucket.length&&this.streetNumber!==""&&!this.$refs.streetNumber.errorBucket.length&&this.zipcode!==""&&!this.$refs.zipcode.errorBucket.length&&this.enableZipcodeValidation&&this.city!==""&&!this.$refs.city.errorBucket.length&&this.country&&this.country!=="")}else this.isValid=!1;this.validateAddress=!1,this.$emit("valid-changed",this.isValid)},async zipCodeBlurred(){this.enableZipcodeValidation=!0,await this.$nextTick(),this.validate()}}},Be={class:"registration-form__step registration-form__step-address"},Ie={class:"registration-form__step__container"},Ne={class:"data"},$e={key:0,class:"data-item retailer-list"},De={key:1,class:"data-item retailer-list"};function Pe(e,t,r,d,i,s){var p,v,w,T,V,g,G,C,S;const h=c("select-input-fi"),u=c("text-input-fi"),n=c("tooltip-fi");return a(),m("div",Be,[l("div",Ie,[l("div",Ne,[s.sectorRequiresInput?(a(),m(E,{key:0},[(s.requiresInputForCraftsman||s.requiresInputForRetailer)&&s.selectSubTargetGroupList.length>0?(a(),m("div",$e,[o(h,{label:s.subTargetGroupTitle,value:s.subTargetGroup,options:s.selectSubTargetGroupList,rules:s.subTargetGroupRule,"data-test":"sub-target-group","data-test-2":s.subTargetGroup,required:"",onInput:s.subTargetGroupListChanged,onOpen:t[0]||(t[0]=k=>i.enableSubTargetGroupValidation=!0)},null,8,["label","value","options","rules","data-test-2","onInput"])])):_("",!0),o(u,{ref:"company",modelValue:s.company,"onUpdate:modelValue":t[1]||(t[1]=k=>s.company=k),modelModifiers:{trim:!0},class:"data-item company",name:"company","data-test":"company",rules:e.rules.requiredAfterTrimmed,maxlength:120,label:(p=s.fields.companyNameLabel)==null?void 0:p.value,required:""},null,8,["modelValue","rules","label"]),s.registrationWithoutTargetGroup?_("",!0):(a(),m("div",{key:1,class:B({"data-item customer-number":!0,"tooltip-wrapper":(v=s.fields.customerIDInfoText)==null?void 0:v.value})},[o(u,{ref:"customerNumber",modelValue:s.customerNumber,"onUpdate:modelValue":t[2]||(t[2]=k=>s.customerNumber=k),modelModifiers:{trim:!0},name:"customerNumber","data-test":"customer-number",rules:e.rules.noTags,maxlength:13,label:(w=s.fields.customerIDLabel)==null?void 0:w.value},null,8,["modelValue","rules","label"]),(T=s.fields.customerIDInfoText)!=null&&T.value?(a(),y(n,{key:0,class:"tooltip",tooltip:s.fields.customerIDInfoText.value},null,8,["tooltip"])):_("",!0)],2))],64)):_("",!0),o(u,{ref:"street",modelValue:s.street,"onUpdate:modelValue":t[3]||(t[3]=k=>s.street=k),modelModifiers:{trim:!0},class:"data-item street",name:"street","data-test":"street",rules:e.rules.street,maxlength:120,label:(V=s.fields.streetLabel)==null?void 0:V.value,required:""},null,8,["modelValue","rules","label"]),o(u,{ref:"streetNumber",modelValue:s.streetNumber,"onUpdate:modelValue":t[4]||(t[4]=k=>s.streetNumber=k),modelModifiers:{trim:!0},class:"data-item street-number",name:"streetNumber","data-test":"street-number",rules:e.rules.streetnumber,maxlength:20,label:(g=s.fields.streetNumberLabel)==null?void 0:g.value,required:""},null,8,["modelValue","rules","label"]),o(u,{ref:"zipcode",modelValue:s.zipcode,"onUpdate:modelValue":t[5]||(t[5]=k=>s.zipcode=k),modelModifiers:{trim:!0},class:"data-item zipcode",name:"zipcode","data-test":"zipcode",rules:i.enableZipcodeValidation?e.validateZip(s.zipcode,e.zipRegEx):[],maxlength:20,label:(G=s.fields.zipCodeLabel)==null?void 0:G.value,required:"",onKeydown:t[6]||(t[6]=k=>i.enableZipcodeValidationDefault=!1),onBlur:s.zipCodeBlurred},null,8,["modelValue","rules","label","onBlur"]),o(u,{ref:"city",modelValue:s.city,"onUpdate:modelValue":t[7]||(t[7]=k=>s.city=k),modelModifiers:{trim:!0},class:"data-item city",name:"city","data-test":"city",rules:e.rules.city,maxlength:120,label:(C=s.fields.cityLabel)==null?void 0:C.value,required:""},null,8,["modelValue","rules","label"]),s.selectCountryList.length>0?(a(),m("div",De,[o(h,{label:(S=s.fields.countryLabel)==null?void 0:S.value,value:s.country,options:s.selectCountryList,rules:i.enableCountryValidation?e.rules.country:[],"data-test-2":s.country,"data-test":"country",required:"",onInput:s.countryListChanged,onOpen:t[8]||(t[8]=k=>i.enableCountryValidation=!0)},null,8,["label","value","options","rules","data-test-2","onInput"])])):_("",!0)])])])}const J=R(Ee,[["render",Pe],["__scopeId","data-v-9936b4aa"]]),Fe={name:"RegistrationStepContactData",components:{SelectInputFi:Y,TextInputFi:O},mixins:[Z],inject:["fields"],emits:["valid-changed"],data(){return{isValid:!1,activeTitle:null,enableEmailValidation:!1,enableEmailValidationDefault:!0,enablePhoneValidation:!1}},computed:{registrationLight(){var e;return((e=this.fields.registrationType)==null?void 0:e.value)==="Light"},titleList(){const[,e]=I(this.fields,"titleList");return e||[]},salutationListWithUnset(){return _e(this.salutationList,this.$dict)},salutationList(){const[,e]=I(this.fields,"salutationList");return e||[]},salutation:{get(){return this.$store.getters["registration/getSalutation"]},set(e){this.$store.dispatch("registration/setSalutation",e),this.validate()}},title:{get(){return this.$store.getters["registration/getTitle"]},set(e){this.$store.dispatch("registration/setTitle",e)}},firstname:{get(){return this.$store.getters["registration/getFirstname"]},set(e){this.$store.dispatch("registration/setFirstname",e),this.validate()}},lastname:{get(){return this.$store.getters["registration/getLastname"]},set(e){this.$store.dispatch("registration/setLastname",e),this.validate()}},email:{get(){return this.$store.getters["registration/getEmail"]},set(e){this.$store.dispatch("registration/setEmail",e),this.validate()}},phone:{get(){return this.$store.getters["registration/getPhone"]},set(e){this.$store.dispatch("registration/setPhone",e),this.validate()}}},mounted(){this.validate()},async created(){this.salutationList.length||(this.salutation=""),this.email&&!this.registrationLight&&(this.enableEmailValidation=!0),this.phone&&(this.enablePhoneValidation=!0)},methods:{titleChanged(e){this.title=e},validate(){if(this.$refs.firstname&&this.$refs.lastname&&this.$refs.email&&this.$refs.phone){let e=!0;this.salutationList.length&&(e=this.salutation!==null),this.isValid=!!(e&&this.firstname!==""&&!this.$refs.firstname.errorBucket.length&&this.lastname!==""&&!this.$refs.lastname.errorBucket.length&&(this.registrationLight||this.email!==""&&!this.$refs.email.errorBucket.length&&this.enableEmailValidation)&&!this.$refs.phone.errorBucket.length)}else this.isValid=!1;this.$emit("valid-changed",this.isValid)},async emailBlurred(){this.enableEmailValidation=!0,await this.$nextTick(),this.validate()}}},qe={class:"registration-form__step registration-form__step-contact-data"},Me={class:"registration-form__step__container"},Ue={key:0,class:"salutation-list"},ze={key:0,class:"required"},xe={class:"data"},We={key:0,class:"title-list"};function Oe(e,t,r,d,i,s){var p,v,w,T,V;const h=c("radio-group-fi"),u=c("select-input-fi"),n=c("text-input-fi");return a(),m("div",qe,[l("div",Me,[s.salutationList.length?(a(),m("div",Ue,[s.fields.salutationLabel?(a(),m("label",ze,L(s.fields.salutationLabel.value),1)):_("",!0),o(h,{modelValue:s.salutation,"onUpdate:modelValue":t[0]||(t[0]=g=>s.salutation=g),name:"salutation","text-attribute":"title","data-test":"salutation-list","data-test-2":s.salutation,options:s.salutationListWithUnset,required:""},null,8,["modelValue","data-test-2","options"])])):_("",!0),l("div",xe,[s.titleList.length?(a(),m("div",We,[o(u,{value:s.title||null,label:(p=s.fields.academicTitleLabel)==null?void 0:p.value,options:s.titleList,"data-test":"title","data-test-2":s.title,onInput:s.titleChanged},null,8,["value","label","options","data-test-2","onInput"])])):_("",!0),o(n,{ref:"firstname",modelValue:s.firstname,"onUpdate:modelValue":t[1]||(t[1]=g=>s.firstname=g),modelModifiers:{trim:!0},class:"firstname",name:"firstname","data-test":"firstname",rules:e.rules.firstname,maxlength:120,label:(v=s.fields.firstNameLabel)==null?void 0:v.value,required:""},null,8,["modelValue","rules","label"]),o(n,{ref:"lastname",modelValue:s.lastname,"onUpdate:modelValue":t[2]||(t[2]=g=>s.lastname=g),modelModifiers:{trim:!0},name:"lastname","data-test":"lastname",rules:e.rules.lastname,maxlength:120,label:(w=s.fields.lastNameLabel)==null?void 0:w.value,required:""},null,8,["modelValue","rules","label"]),o(n,{ref:"email",modelValue:s.email,"onUpdate:modelValue":t[3]||(t[3]=g=>s.email=g),modelModifiers:{trim:!0},name:"email","data-test":"email",rules:e.hasInvalidCharacters||i.enableEmailValidation?e.rules.email:e.dynamicRule(e.rules.email,i.enableEmailValidationDefault),maxlength:120,label:(T=s.fields.emailLabel)==null?void 0:T.value,disabled:s.registrationLight,required:!s.registrationLight,onKeyup:t[4]||(t[4]=g=>e.validateCharacters(s.email)),onKeydown:t[5]||(t[5]=g=>i.enableEmailValidationDefault=!1),onBlur:s.emailBlurred},null,8,["modelValue","rules","label","disabled","required","onBlur"]),o(n,{id:"phone",ref:"phone",modelValue:s.phone,"onUpdate:modelValue":t[6]||(t[6]=g=>s.phone=g),modelModifiers:{trim:!0},name:"phone","data-test":"phone",rules:e.hasInvalidCharacters||i.enablePhoneValidation?e.rules.phone:[],maxlength:120,label:(V=s.fields.phoneLabel)==null?void 0:V.value,onKeyup:t[7]||(t[7]=g=>e.validateCharacters(s.phone,e.rules.phone))},null,8,["modelValue","rules","label"])])])])}const K=R(Fe,[["render",Oe],["__scopeId","data-v-51f995a9"]]),He={name:"RegistrationStepPassword",components:{VueRecaptcha:Ce,PasswordRequirements:ye,CheckboxCustomFi:be,TextInputFi:O},mixins:[we,Z,ke],inject:["fields"],props:{noRecaptcha:{type:Boolean,default:!1}},emits:["valid-changed"],data(){return{showPassword:!1,showPasswordRepeat:!1,passwordLengthCheck:null,passwordNumberCheck:null,passwordUppercaseCheck:null,passwordLowercaseCheck:null,passwordSpecialCharacterCheck:null,enablePasswordValidation:!1,enablePasswordRepeatValidation:!1}},computed:{sitekey(){return this.$fischer.recaptchaKey()},password:{get(){return this.$store.getters["registration/getPassword"]},set(e){this.$store.dispatch("registration/setPassword",e),this.validate()}},passwordRepeat:{get(){return this.$store.getters["registration/getPasswordRepeat"]},set(e){this.$store.dispatch("registration/setPasswordRepeat",e),this.validate()}},termsAndConditions:{get(){return this.$store.getters["registration/getTermsAndConditions"]},set(e){this.$store.dispatch("registration/setTermsAndConditions",e),this.validate()}},advertisingConsent:{get(){return this.$store.getters["registration/getAdvertisingConsent"]},set(e){this.$store.dispatch("registration/setAdvertisingConsent",e)}},isCaptchaError:{get(){return this.$store.getters["registration/getIsCaptchaError"]},set(e){this.$store.dispatch("registration/setIsCaptchaError",e),this.validate()}},captchaResponse:{get(){return this.$store.getters["registration/getCaptchaResponse"]},set(e){this.$store.dispatch("registration/setCaptchaResponse",e),this.validate()}},captchaValid(){return this.noRecaptcha?!0:!!(this.captchaResponse&&!this.isCaptchaError)}},async created(){this.password.length&&(this.enablePasswordValidation=!0),this.passwordRepeat.length&&(this.enablePasswordRepeatValidation=!0)},methods:{validatePassword:Se,checkPassword:Te,checkPasswordRepeat:Ve,onVerify(e){e&&(this.isCaptchaError=!1,this.captchaResponse=e)},onError(e){e&&(this.isCaptchaError=!0)},resetRecaptcha(){this.$refs.recaptcha.reset()},validate(){let e=!1;this.$refs.password&&this.$refs.passwordRepeat&&(e=!!(this.password!==""&&!this.$refs.password.errorBucket.length&&this.passwordRepeat!==""&&!this.$refs.passwordRepeat.errorBucket.length&&this.termsAndConditions&&this.captchaValid)),this.$emit("valid-changed",e)}}},Ze={class:"registration-form__step registration-form__step-password"},Ke={class:"registration-form__step__container"},je={class:"fields"},Qe={class:"fields-password"},Xe={class:"fields-password-repeat"},Ye={class:"terms"},Je=["innerHTML"],et=["innerHTML"],tt={key:1,ref:"recaptcha",class:"registration-form__recaptcha"};function st(e,t,r,d,i,s){var v,w,T,V;const h=c("text-input-fi"),u=c("password-requirements"),n=c("checkbox-custom-fi"),p=c("vue-recaptcha");return a(),m("div",Ze,[l("div",Ke,[l("div",je,[l("div",Qe,[o(h,{id:"password",ref:"password",modelValue:s.password,"onUpdate:modelValue":t[0]||(t[0]=g=>s.password=g),modelModifiers:{trim:!0},name:"password",type:"password",autocomplete:"new-password","data-test":"password",rules:e.passwordRules,maxlength:120,label:(v=s.fields.passwordLabel)==null?void 0:v.value,required:"",onBlur:t[1]||(t[1]=g=>e.activatePasswordValidation(e.$refs.password))},null,8,["modelValue","rules","label"]),o(u,{source:"registration","password-length-check":i.passwordLengthCheck,"password-number-check":i.passwordNumberCheck,"password-uppercase-check":i.passwordUppercaseCheck,"password-lowercase-check":i.passwordLowercaseCheck,"password-special-character-check":i.passwordSpecialCharacterCheck},null,8,["password-length-check","password-number-check","password-uppercase-check","password-lowercase-check","password-special-character-check"])]),l("div",Xe,[o(h,{id:"password-repeat",ref:"passwordRepeat",modelValue:s.passwordRepeat,"onUpdate:modelValue":t[2]||(t[2]=g=>s.passwordRepeat=g),modelModifiers:{trim:!0},name:"password-repeat",type:"password",autocomplete:"new-password","data-test":"password-repeat",rules:i.enablePasswordRepeatValidation?s.checkPasswordRepeat(s.fields):e.dynamicRule(e.rules.email,i.enablePasswordRepeatValidation),maxlength:120,label:(w=s.fields.passwordRepeatLabel)==null?void 0:w.value,required:"",onBlur:t[3]||(t[3]=g=>i.enablePasswordRepeatValidation=!0),onChange:e.passwordRepeatChanged,onKeyup:e.passwordRepeatChanged},null,8,["modelValue","rules","label","onChange","onKeyup"])])]),l("div",Ye,[o(n,{value:s.termsAndConditions,rules:e.rules.termsAndConditions,class:"registration-form__checkbox","data-test":"terms-and-conditions","data-test-2":s.termsAndConditions?"terms-and-conditions-checked":"terms-and-conditions-unchecked",required:"",onCheckboxCustomChanged:t[4]||(t[4]=g=>s.termsAndConditions=g)},{default:b(()=>[l("span",{innerHTML:e.labelContent("termsAndConditionsCheckboxLabel",["termsAndConditionsLink","dataPrivacylink"])},null,8,Je)]),_:1},8,["value","rules","data-test-2"]),(T=s.fields.enableAdvertisingAgreement)!=null&&T.value?(a(),y(n,{key:0,value:s.advertisingConsent,class:"registration-form__checkbox","data-test":"advertising-agreement","data-test-2":s.advertisingConsent?"advertising-agreement-checked":"advertising-agreement-unchecked",onCheckboxCustomChanged:t[5]||(t[5]=g=>s.advertisingConsent=g)},{default:b(()=>[l("span",{innerHTML:e.labelContent("advertisingAgreementCheckboxLabel",["advertisingAgreement"])},null,8,et)]),_:1},8,["value","data-test-2"])):_("",!0),r.noRecaptcha?_("",!0):(a(),m("div",tt,[o(p,{ref:"invisibleRecaptcha","load-recaptcha-script":"","data-test":"receptcha","data-test-2":s.captchaValid?"receptcha-checked":"receptcha-unchecked",sitekey:s.sitekey,onVerify:s.onVerify,onError:s.onError},null,8,["data-test-2","sitekey","onVerify","onError"]),s.isCaptchaError&&((V=s.fields.googleCaptchaValidationMessage)!=null&&V.value)?(a(),m("div",{key:0,class:B(["registration-form__recaptcha__error-message",{"registration-form__recaptcha--error":s.isCaptchaError}])},L(s.fields.googleCaptchaValidationMessage.value),3)):_("",!0)],512))])])])}const j=R(He,[["render",st],["__scopeId","data-v-74178d58"]]),rt={name:"RegistrationStepTargetGroup",components:{CloudImageFi:se},inject:["fields"],emits:["valid-changed"],computed:{targetGroup:{get(){return this.$store.getters["registration/getTargetGroup"]!==""?this.$store.getters["registration/getTargetGroup"]:null},set(e){const t=this.targetGroupList.find(r=>r.value===e);this.$store.dispatch("registration/setTargetGroup",e),this.$store.dispatch("registration/setTargetGroupTitle",t.title),this.$store.dispatch("registration/setTargetGroupNewsletter",t.newsletter),this.validate()}},targetGroupList(){const[,e]=I(this.fields,"targetGroupSectorList");return e}},mounted(){this.validate()},methods:{targetGroupImage(e){var t;if(this.targetGroupList){const r=this.targetGroupList.find(d=>d.title===e);if((t=r==null?void 0:r.image)!=null&&t.src)return r.image.src}return null},validate(){this.isValid=!1,this.targetGroup&&this.targetGroup!==""&&(this.isValid=!0),this.$emit("valid-changed",this.isValid)}}},it={class:"registration-form__step registration-form-step-target-group"},at={class:"registration-form-step-target-group__image-container"},nt={class:"registration-form-step-target-group__image"},ot={class:"registration-form-step-target-group__title"},lt=["aria-checked"];function dt(e,t,r,d,i,s){const h=c("cloud-image-fi"),u=c("radio-group-fi");return a(),m("div",it,[o(u,{modelValue:s.targetGroup,"onUpdate:modelValue":t[0]||(t[0]=n=>s.targetGroup=n),class:"registration-form__step__container registration-form-step-target-group__container",name:"example","text-attribute":"title",variant:"hidden-icon",options:s.targetGroupList,"no-style":"",required:""},{default:b(({option:n,isChecked:p})=>[l("div",at,[l("div",nt,[s.targetGroupImage(n.title)?(a(),y(h,{key:0,src:s.targetGroupImage(n.title),alt:n.title,"aspect-ratio":1.778,"data-test":"target-group-image","no-drag":""},null,8,["src","alt"])):_("",!0)])]),l("div",ot,[l("span",{class:B({"registration-form-step-target-group__checkbox":!0,"registration-form-step-target-group__checkbox--checked":p}),type:"radio",role:"radio","aria-checked":p},null,10,lt),D(" "+L(n.title),1)])]),_:1},8,["modelValue","options"])])}const ut=R(rt,[["render",dt],["__scopeId","data-v-f6560d80"]]),ct={name:"RegistrationDefault",components:{RegistrationStepTargetGroup:ut,RegistrationStepContactData:K,RegistrationStepAddress:J,RegistrationStepPassword:j},mixins:[H],props:{currentStep:{type:Number,default:1}},emits:["step-type-changed","valid-changed-step-address","valid-changed-step-contact-data","valid-changed-step-password","valid-changed-step-target-group"],watch:{currentStep(e){let t="";switch(e){case 1:t="target-group";break;case 2:t="contact-data";break;case 3:t="address";break;case 4:t="password";break;default:t="";break}this.$emit("step-type-changed",t)}}},gt={ref:"registrationFormSteps",class:"registration-steps"};function ht(e,t,r,d,i,s){const h=c("registration-step-target-group"),u=c("registration-step-contact-data"),n=c("registration-step-address"),p=c("registration-step-password");return a(),m("div",gt,[o(P,{name:"step",mode:"out-in",onBeforeLeave:e.onBeforeLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterEnter},{default:b(()=>[r.currentStep===1?(a(),y(h,{key:"step-1",onValidChanged:t[0]||(t[0]=v=>e.$emit("valid-changed-step-target-group",v))})):r.currentStep===2?(a(),y(u,{key:"step-2",onValidChanged:t[1]||(t[1]=v=>e.$emit("valid-changed-step-contact-data",v))})):r.currentStep===3?(a(),y(n,{key:"step-3",onValidChanged:t[2]||(t[2]=v=>e.$emit("valid-changed-step-address",v))})):r.currentStep===4?(a(),y(p,{key:"step-4",onValidChanged:t[3]||(t[3]=v=>e.$emit("valid-changed-step-password",v))})):_("",!0)]),_:1},8,["onBeforeLeave","onBeforeEnter","onAfterEnter"])],512)}const pt=R(ct,[["render",ht]]),mt={name:"RegistrationLight",components:{RegistrationStepContactData:K,RegistrationStepPassword:j},mixins:[H],props:{currentStep:{type:Number,default:1}},emits:["valid-changed-step-contact-data","valid-changed-step-password"]},ft={ref:"registrationFormSteps",class:"registration-steps"};function vt(e,t,r,d,i,s){const h=c("registration-step-contact-data"),u=c("registration-step-password");return a(),m("div",ft,[o(P,{name:"step",mode:"out-in",onBeforeLeave:e.onBeforeLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterEnter},{default:b(()=>[r.currentStep===1?(a(),y(h,{key:"step-1",onValidChanged:t[0]||(t[0]=n=>e.$emit("valid-changed-step-contact-data",n))})):r.currentStep===2?(a(),y(u,{key:"step-2","no-recaptcha":"",onValidChanged:t[1]||(t[1]=n=>e.$emit("valid-changed-step-password",n))})):_("",!0)]),_:1},8,["onBeforeLeave","onBeforeEnter","onAfterEnter"])],512)}const _t=R(mt,[["render",vt]]),bt={name:"RegistrationWithoutTargetGroup",components:{RegistrationStepContactData:K,RegistrationStepAddress:J,RegistrationStepPassword:j},mixins:[H],props:{currentStep:{type:Number,default:1}},emits:["step-type-changed","valid-changed-step-address","valid-changed-step-contact-data","valid-changed-step-password"],watch:{currentStep(e){let t="";switch(e){case 1:t="contact-data";break;case 2:t="address";break;case 3:t="password";break;default:t="";break}this.$emit("step-type-changed",t)}}},yt={ref:"registrationFormSteps",class:"registration-steps"};function kt(e,t,r,d,i,s){const h=c("registration-step-contact-data"),u=c("registration-step-address"),n=c("registration-step-password");return a(),m("div",yt,[o(P,{name:"step",mode:"out-in",onBeforeLeave:e.onBeforeLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterEnter},{default:b(()=>[r.currentStep===1?(a(),y(h,{key:"step-1",onValidChanged:t[0]||(t[0]=p=>e.$emit("valid-changed-step-contact-data",p))})):r.currentStep===2?(a(),y(u,{key:"step-2",onValidChanged:t[1]||(t[1]=p=>e.$emit("valid-changed-step-address",p))})):r.currentStep===3?(a(),y(n,{key:"step-3",onValidChanged:t[2]||(t[2]=p=>e.$emit("valid-changed-step-password",p))})):_("",!0)]),_:1},8,["onBeforeLeave","onBeforeEnter","onAfterEnter"])],512)}const wt=R(bt,[["render",kt]]);var M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetInvitationByToken"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BaseSiteId"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"invitationToken"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getInvitationByToken"},arguments:[{kind:"Argument",name:{kind:"Name",value:"baseSiteId"},value:{kind:"Variable",name:{kind:"Name",value:"baseSiteId"}}},{kind:"Argument",name:{kind:"Name",value:"invitationToken"},value:{kind:"Variable",name:{kind:"Name",value:"invitationToken"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"invitationEmail"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:209}};M.loc.source={body:`query GetInvitationByToken( $baseSiteId: BaseSiteId! $invitationToken: String! ) { getInvitationByToken( baseSiteId: $baseSiteId invitationToken: $invitationToken ) { invitationEmail } } `,name:"GraphQL request",locationOffset:{line:1,column:1}};function q(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var r=e.type;r.kind==="NamedType"&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(d){q(d,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(d){q(d,t)}),e.definitions&&e.definitions.forEach(function(d){q(d,t)})}var W={};(function(){M.definitions.forEach(function(t){if(t.name){var r=new Set;q(t,r),W[t.name.value]=r}})})();function X(e,t){for(var r=0;r<e.definitions.length;r++){var d=e.definitions[r];if(d.name&&d.name.value==t)return d}}function Ct(e,t){var r={kind:e.kind,definitions:[X(e,t)]};e.hasOwnProperty("loc")&&(r.loc=e.loc);var d=W[t]||new Set,i=new Set,s=new Set;for(d.forEach(function(u){s.add(u)});s.size>0;){var h=s;s=new Set,h.forEach(function(u){if(!i.has(u)){i.add(u);var n=W[u]||new Set;n.forEach(function(p){s.add(p)})}})}return i.forEach(function(u){var n=X(e,u);n&&r.definitions.push(n)}),r}Ct(M,"GetInvitationByToken");let z=null,ee=()=>"";ee=()=>(z=document.getElementById("breakpoint-helper"),z?window.getComputedStyle(z,":before").content.replace(/\"/g,""):"");const x=ee,St={name:"MyAccountRegister",components:{LoadingIndicatorWrapper:pe,LoadingIndicator:re,GridContainerFi:ie,ComponentWrapper:ae,RegistrationDefault:pt,RegistrationLight:_t,RegistrationWithoutTargetGroup:wt,ResultStatusFi:Le,HeadlineFi:ne,SectionDividerSmallFi:Ae,ConfirmUserAddressDialogFi:fe,GMapMap:me},mixins:[Re,oe],inject:["fields"],data(){return{formSuccess:!1,registrationFailed:!1,errorCode:!1,isLoading:!1,currentStep:1,currentStepType:null,classDone:"registration-form__head-item--done",classActive:"registration-form__head-item--active",errors:0,isRegistrationVisible:!1,isButtonVisible:!1,showShadowLeft:!1,showShadowRight:!1,stepTargetGroupValid:!1,stepContactDataValid:!1,stepAddressValid:!1,stepPasswordValid:!1,invitationToken:null,invalidToken:!1,isValidateToken:!1,googleAddress:null,geoCoder:null,checkAddress:!1}},computed:{maxSteps(){return this.registrationLight?2:this.registrationWithoutTargetGroup?3:4},isNextButtonDisabled(){return this.currentStep===1?this.registrationLight||this.registrationWithoutTargetGroup?!this.stepContactDataValid:!this.stepTargetGroupValid:this.currentStep===2?this.registrationLight?!this.stepPasswordValid:this.registrationWithoutTargetGroup?!this.stepAddressValid:!this.stepContactDataValid:this.currentStep===3?this.registrationWithoutTargetGroup?!this.stepPasswordValid:!this.stepAddressValid:this.currentStep===4?!this.stepPasswordValid:!0},registrationType(){var e;return((e=this.fields.registrationType)==null?void 0:e.value)||"Default"},registrationLight(){var e;return((e=this.fields.registrationType)==null?void 0:e.value)==="Light"},registrationWithoutTargetGroup(){var e;return((e=this.fields.registrationType)==null?void 0:e.value)==="WithoutTargetGroup"},stickyContentsEnabled(){return this.isRegistrationVisible&&!this.isButtonVisible},overflowClasses(){let e="";return this.showShadowLeft&&(e+="registration-form__head--shadow-left "),this.showShadowRight&&(e+="registration-form__head--shadow-right "),e},isXsBreakpoint(){return x()==="screen-xs"},stepHeadlines(){var e,t,r,d,i,s,h,u,n;return this.registrationLight?[((e=this.fields.headlineStep2)==null?void 0:e.value)||"Step 2",((t=this.fields.headlineStep4)==null?void 0:t.value)||"Step 4"]:this.registrationWithoutTargetGroup?[((r=this.fields.headlineStep2)==null?void 0:r.value)||"Step 2",((d=this.fields.headlineStep3)==null?void 0:d.value)||"Step 3",((i=this.fields.headlineStep4)==null?void 0:i.value)||"Step 4"]:[((s=this.fields.headlineStep1)==null?void 0:s.value)||"Step 1",((h=this.fields.headlineStep2)==null?void 0:h.value)||"Step 2",((u=this.fields.headlineStep3)==null?void 0:u.value)||"Step 3",((n=this.fields.headlineStep4)==null?void 0:n.value)||"Step 4"]},targetGroup(){return this.$store.getters["registration/getTargetGroup"]},targetGroupTitle(){return this.$store.getters["registration/getTargetGroupTitle"]},salutation(){return this.$store.getters["registration/getSalutation"]},title(){return this.$store.getters["registration/getTitle"]},firstname(){return this.$store.getters["registration/getFirstname"]},lastname(){return this.$store.getters["registration/getLastname"]},email:{get(){return this.$store.getters["registration/getEmail"]},set(e){this.$store.dispatch("registration/setEmail",e)}},phone(){return this.$store.getters["registration/getPhone"]},subTargetGroup(){return this.$store.getters["registration/getSubTargetGroup"]},subTargetGroupTitle(){return this.$store.getters["registration/getSubTargetGroupTitle"]},country(){return this.$store.getters["registration/getCountry"]},company(){return this.$store.getters["registration/getCompany"]},customerNumber(){return this.$store.getters["registration/getCustomerNumber"]},street(){return this.$store.getters["registration/getStreet"]},streetNumber(){return this.$store.getters["registration/getStreetNumber"]},zipcode(){return this.$store.getters["registration/getZipcode"]},city(){return this.$store.getters["registration/getCity"]},password(){return this.$store.getters["registration/getPassword"]},passwordRepeat(){return this.$store.getters["registration/getPasswordRepeat"]},termsAndConditions(){return this.$store.getters["registration/getTermsAndConditions"]},advertisingConsent(){return this.$store.getters["registration/getAdvertisingConsent"]},isCaptchaError(){return this.$store.getters["registration/getIsCaptchaError"]},captchaResponse:{get(){return this.$store.getters["registration/getCaptchaResponse"]},set(e){this.$store.dispatch("registration/setCaptchaResponse",e)}},invalidTokenError(){var e,t;return{title:(e=this.fields.invalidTokenTitle)==null?void 0:e.value,message:(t=this.fields.invalidTokenMessage)==null?void 0:t.value}}},created(){var r;let e="target-group";(this.registrationLight||this.registrationWithoutTargetGroup)&&(e="contact-data"),this.checkAddress=!!((r=this.fields.verifyAddress)!=null&&r.value);const t=this.$fischer.query("token");this.registrationLight&&t&&this.validateToken(t),this.sentStepEvent(e)},methods:{hasNecessaryLinkDetails:le,async submitForm(){var e;if(!(this.registrationWithoutTargetGroup||this.registrationLight)&&!this.stepTargetGroupValid||!this.stepContactDataValid||!this.registrationLight&&!this.stepAddressValid||!this.stepPasswordValid){console.error("form not valid");return}this.isLoading=!0,this.registrationFailed=!1;try{const t=await this.getRegistrationConsentTemplates(),{data:r}=await this.$apollo.mutate({mutation:Ge,variables:{baseSiteId:this.$fischer.baseSiteId(),targetGroup:this.targetGroup,salutation:this.salutation,title:this.title,firstName:this.firstname,lastName:this.lastname,email:this.email,phoneNumber:this.phone,subTargetGroup:this.subTargetGroup,country:this.country,companyName:this.company,customerNumber:this.customerNumber,streetName:this.street,streetNumber:this.streetNumber,zipCode:this.zipcode,city:this.city,password:this.password,passwordValidation:this.passwordRepeat,consentTemplates:t,captchaResponse:this.captchaResponse,lang:this.$fischer.language_639_1(),invitationToken:this.invitationToken}}),{statusCode:d,errorCode:i}=r.register,s=d===201&&!i;if(s){const h={event:"myfischerRegistration",UserGroup:this.targetGroupTitle};this.targetGroup==="GROUP-craftsman"&&this.subTargetGroupTitle&&(h.UserCraft=this.subTargetGroupTitle),window.dataLayer=window.dataLayer||[],window.dataLayer.push(h),this.sendEvent("custom",{},"registration_success",{kind:this.registrationType,step:(e=this.fields.headlineStep4)==null?void 0:e.value})}this.$smoothScroll({scrollTo:document.body,duration:500,updateHistory:!1,offset:0}),this.isLoading=!1,this.formSuccess=s,s||(this.errorCode=i,this.enterErrorState(i))}catch(t){this.enterErrorState(t)}},getStepStateClass(e){let t="";return e+1===this.currentStep?t=this.classActive:e+1<=this.currentStep&&(t=this.classDone),t},changeStep(e){this.getStepStateClass(e)===this.classDone&&e+1<this.currentStep&&(this.currentStep=e+1,this.captchaResponse="")},nextStep(){var e;this.currentStep<this.maxSteps?this.currentStepType==="address"&&this.checkAddress?this.verifyAddress():(this.currentStep+=1,this.scrollMobileTabs(),Q(this.$refs.registrationFormHead,"center"),this.checkAddress=!!((e=this.fields.verifyAddress)!=null&&e.value)):this.submitForm()},scrollMobileTabs(){(x()==="screen-xs"||x()==="screen-sm")&&setTimeout(()=>{const e=this.$refs.registrationFormHead.querySelector(".registration-form__head-item--active"),t=this.$refs.registrationFormHead.clientWidth-(e.offsetLeft+e.offsetWidth)+4;t<0&&(this.$refs.registrationFormHead.scrollLeft=t*-1)},20)},onIntersectModule(e){this.isRegistrationVisible=e[0].isIntersecting&&e[0].boundingClientRect.top>0},onIntersectControls(e){this.isButtonVisible=e[0].isIntersecting&&e[0].boundingClientRect.top>0},onOverflowLeft(e,t,r){this.showShadowLeft=!r},onOverflowRight(e,t,r){this.showShadowRight=!r},getLink(e){return de(this.fields,e)},goTo(e){e&&(window.location.href=e)},enterErrorState(e){var t,r;if(console.error(e),this.registrationFailed=!0,this.isLoading=!1,this.errorCode==="DuplicateUidError"){let d={};(t=this.fields.errorAlreadyRegisteredMessageLink)!=null&&t.value&&(this.fields.errorAlreadyRegisteredMessageLink.value.url||this.fields.errorAlreadyRegisteredMessageLink.value.href)&&this.fields.errorAlreadyRegisteredMessageLink.value.text&&(d={label:this.fields.errorAlreadyRegisteredMessageLink.value.text,clicked:this.goTo(this.fields.errorAlreadyRegisteredMessageLink.value.url||this.fields.errorAlreadyRegisteredMessageLink.value.href),closeOnClick:!0}),this.$store.dispatch("notifications/openToastNotification",{message:{value:(r=this.fields.errorAlreadyRegisteredMessage)==null?void 0:r.value},type:"error",icon:"alert-triangle",persist:!0,close:!0,action:d})}else this.$store.dispatch("notifications/openGeneralErrorNotification",{vm:this})},async validateToken(e){this.isValidateToken=!0;try{const{data:t}=await this.$apollo.query({query:M,variables:{baseSiteId:this.$fischer.baseSiteId(),invitationToken:e}});this.email=t.getInvitationByToken.invitationEmail||"",this.invitationToken=e,this.isValidateToken=!1}catch{this.invalidToken=!0,this.isValidateToken=!1}},stepTypeChanged(e){this.currentStepType=e,this.sentStepEvent(e)},keepAddress(){this.checkAddress=!1,this.nextStep()},sentStepEvent(e){this.sendEvent("custom",{},"registration_step",{kind:this.registrationType,step:e})},async verifyAddress(){try{const e=`${this.street} ${this.streetNumber}, ${this.zipcode} ${this.city}`;this.geoCoder||(this.geoCoder=new window.google.maps.Geocoder);const t={address:e};this.country&&(t.componentRestrictions={country:this.country}),this.geoCoder.geocode(t,async(r,d)=>{var i,s,h,u,n;if(d===window.google.maps.GeocoderStatus.OK){const{address_components:p}=r[0],v=((i=p.find(C=>C.types.find(S=>S==="street_number")))==null?void 0:i.long_name)||null,w=((s=p.find(C=>C.types.find(S=>S==="route")))==null?void 0:s.long_name)||null,T=((h=p.find(C=>C.types.find(S=>S==="sublocality")))==null?void 0:h.long_name)||null,V=((u=p.find(C=>C.types.find(S=>S==="locality")))==null?void 0:u.long_name)||null,g=((n=p.find(C=>C.types.find(S=>S==="postal_code")))==null?void 0:n.long_name)||null;let G=V;T===this.city&&(G=T),this.googleAddress={streetNumber:v,street:w,city:G||null,zipcode:g,country:this.country||null},!(v&&w&&G&&g)||v===this.streetNumber&&w===this.street&&G===this.city&&g===this.zipcode?(this.currentStep+=1,this.scrollMobileTabs(),Q(this.$refs.registrationFormHead,"center")):(await this.$nextTick(),this.$refs.confirmUserAddressDialog.open())}})}catch(e){console.error(`Error getting LatLon coords: ${e}`)}}}},Tt={class:"page-registration-form"},Vt={key:0},Lt={key:1,class:"registration-form__token-error"},Gt={class:"fi-col-start-1 fi-col-end-13 md:fi-col-start-2 md:fi-col-end-12 lg:fi-col-start-4 lg:fi-col-end-10"},Rt={class:"registration-form__result-status"},At={key:0,class:"registration-form"},Et={class:"fi-col-start-1 fi-col-end-13 md:fi-col-start-2 md:fi-col-end-12 lg:fi-col-start-3 lg:fi-col-end-11"},Bt={class:"fi-col-span-full"},It={class:"fi-mb-0"},Nt={class:"registration-form__detector-left"},$t=["onClick"],Dt={class:"mb-0"},Pt={class:"registration-form__head-item-number"},Ft={class:"registration-form__head-item-title"},qt={class:"registration-form__detector-right"},Mt={class:"fi-col-start-1 fi-col-end-13 sm:fi-col-start-2 sm:fi-col-end-12 lg:fi-col-start-3 lg:fi-col-end-11"},Ut={ref:"registrationForm"},zt={class:"fi-col-span-full"},xt={class:"registration-form__actions"},Wt={class:"registration-form__actions__button-wrapper"},Ot={class:"registration-form__button-wrapper"},Ht={class:"fi-col-start-1 fi-col-end-13 md:fi-col-start-2 md:fi-col-end-12 lg:fi-col-start-4 lg:fi-col-end-10"},Zt={class:"registration-form__result-status"},Kt={key:0,class:"fi-mb-30"},jt={class:"button-container"};function Qt(e,t,r,d,i,s){const h=c("loading-indicator"),u=c("result-status-fi"),n=c("grid-container-fi"),p=c("headline-fi"),v=c("section-divider-small-fi"),w=c("registration-light"),T=c("registration-without-target-group"),V=c("registration-default"),g=c("button-fi"),G=c("loading-indicator-wrapper"),C=c("confirm-user-address-dialog-fi"),S=c("GMapMap"),k=c("component-wrapper"),F=ue("intersect");return a(),y(k,null,{default:b(()=>[l("div",Tt,[s.registrationLight&&i.isValidateToken?(a(),m("div",Vt,[o(h,{variant:"spinnerLocal",class:"registration-form__loading"})])):s.registrationLight&&!i.invitationToken||s.registrationLight&&i.invalidToken?(a(),m("div",Lt,[o(n,null,{default:b(()=>[l("div",Gt,[l("div",Rt,[o(u,{error:s.invalidTokenError},null,8,["error"])])])]),_:1})])):(a(),m(E,{key:2},[o(P,{"leave-active-class":"animated fadeOut"},{default:b(()=>{var N,U;return[i.formSuccess?_("",!0):$((a(),m("div",At,[(N=s.fields.headline)!=null&&N.value?(a(),m(E,{key:0},[o(n,null,{default:b(()=>[l("div",Et,[o(p,{class:"registration-form__headline",tag:"h1",size:60},{default:b(()=>[D(L(s.fields.headline.value),1)]),_:1})])]),_:1}),o(v)],64)):_("",!0),o(n,{container:!1},{default:b(()=>[l("div",Bt,[l("div",{ref:"registrationFormHead",class:B(["registration-form__head",s.overflowClasses])},[l("ul",It,[$(l("li",Nt,null,512),[[F,s.onOverflowLeft]]),(a(!0),m(E,null,ce(s.stepHeadlines,(f,A)=>(a(),m("li",{key:A,class:B([s.getStepStateClass(A),"registration-form__head-item"]),onClick:Xt=>s.changeStep(A)},[l("p",Dt,[l("span",Pt,L(A+1),1),l("span",Ft,L(f),1)])],10,$t))),128)),$(l("li",qt,null,512),[[F,s.onOverflowRight]])])],2)])]),_:1}),o(n,null,{default:b(()=>[l("div",Mt,[l("form",Ut,[s.registrationLight?(a(),y(w,{key:0,"current-step":i.currentStep,onValidChangedStepContactData:t[0]||(t[0]=f=>i.stepContactDataValid=f),onValidChangedStepPassword:t[1]||(t[1]=f=>i.stepPasswordValid=f)},null,8,["current-step"])):s.registrationWithoutTargetGroup?(a(),y(T,{key:1,"current-step":i.currentStep,onStepTypeChanged:t[2]||(t[2]=f=>s.stepTypeChanged(f)),onValidChangedStepContactData:t[3]||(t[3]=f=>i.stepContactDataValid=f),onValidChangedStepAddress:t[4]||(t[4]=f=>i.stepAddressValid=f),onValidChangedStepPassword:t[5]||(t[5]=f=>i.stepPasswordValid=f)},null,8,["current-step"])):(a(),y(V,{key:2,"current-step":i.currentStep,onStepTypeChanged:t[6]||(t[6]=f=>s.stepTypeChanged(f)),onValidChangedStepTargetGroup:t[7]||(t[7]=f=>i.stepTargetGroupValid=f),onValidChangedStepContactData:t[8]||(t[8]=f=>i.stepContactDataValid=f),onValidChangedStepAddress:t[9]||(t[9]=f=>i.stepAddressValid=f),onValidChangedStepPassword:t[10]||(t[10]=f=>i.stepPasswordValid=f)},null,8,["current-step"]))],512)])]),_:1}),o(n,null,{default:b(()=>[l("div",zt,[$((a(),m("div",xt,[l("div",{class:B(["registration-form__actions-container",s.stickyContentsEnabled?"registration-form__actions-container--sticky":null])},[l("div",Wt,[o(G,{loading:i.isLoading||!1,dark:"",variant:"spinnerLocal",spinoff:"in-relative-centered",class:"registration-form__spinner"},{default:b(()=>[l("div",Ot,[o(g,{class:"button-fi__primary--large",type:"submit",disabled:s.isNextButtonDisabled,"data-test":"registration-next-step",onClick:ge(s.nextStep,["prevent","stop"])},{default:b(()=>{var f,A;return[i.currentStep<s.maxSteps?(a(),m(E,{key:0},[D(L((f=s.fields.buttonNextStep)==null?void 0:f.value),1)],64)):(a(),m(E,{key:1},[D(L((A=s.fields.buttonSubmit)==null?void 0:A.value),1)],64))]}),_:1},8,["disabled","onClick"])])]),_:1},8,["loading"])])],2)])),[[F,s.onIntersectControls]])])]),_:1}),(U=s.fields.verifyAddress)!=null&&U.value?(a(),m(E,{key:1},[i.googleAddress?(a(),y(C,{key:0,ref:"confirmUserAddressDialog","google-address":i.googleAddress,onKeepAddress:s.keepAddress},null,8,["google-address","onKeepAddress"])):_("",!0),$(o(S,{ref:"gmap"},null,512),[[he,!1]])],64)):_("",!0)])),[[F,s.onIntersectModule]])]}),_:1}),o(P,{"enter-active-class":"animated fadeIn delay-1s"},{default:b(()=>[i.formSuccess?(a(),y(n,{key:0},{default:b(()=>[l("div",Ht,[l("div",Zt,[o(u,{headline:s.fields.successEmailHasBeenSentBoxTitle},{default:b(()=>{var N;return[(N=s.fields.successMessage)!=null&&N.value?(a(),m("p",Kt,L(s.fields.successMessage.value),1)):_("",!0),l("div",jt,[s.hasNecessaryLinkDetails(s.getLink("homeLink"))?(a(),y(g,{key:0,class:"button-fi__primary--large button-fi--stretched fi-mb-24 fi-mt-24",type:"button",onClick:t[11]||(t[11]=U=>s.goTo(s.getLink("homeLink").url))},{default:b(()=>[D(L(s.getLink("homeLink").text),1)]),_:1})):_("",!0)])]}),_:1},8,["headline"])])])]),_:1})):_("",!0)]),_:1})],64))])]),_:1})}const ks=R(St,[["render",Qt]]);export{ks as default};