1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1474],{41743:function(e,t,r){var a=r(52676),s=r(82187),n=r.n(s),i=r(5466);t.Z=e=>{let{className:t,disabled:r=!1,name:s,value:o,onChange:l,onBlur:c,children:d,error:u,touched:m}=e;return(0,a.jsxs)("label",{className:(0,i.m6)(n()("checkbox like-body-default mb-4 flex",{error:m&&u,"is-disabled text-warmgrey":r}),t),children:[(0,a.jsx)("input",{disabled:r,type:"checkbox",name:s,value:o,onChange:l,onBlur:c}),d]})}},23041:function(e,t,r){var a=r(52676),s=r(82187),n=r.n(s),i=r(60027),o=r(5466);t.Z=e=>{let{className:t,type:r="text",disabled:s=!1,error:l,placeholder:c,name:d,info:u="",value:m,onChange:p,onBlur:h,onFocus:f,onKeyUp:g,touched:x,autoComplete:b="off",hasIcon:v,hideError:w=!1,readonly:y,required:j}=e;return(0,a.jsxs)("span",{className:(0,o.m6)(n()("flex max-w-xs flex-col",t)),children:[(0,a.jsxs)("span",{className:n()("relative inline-block"),children:[(0,a.jsx)("input",{className:n()("input-field","p-4","pt-6","pb-2","rounded-sm","border","border-warmgrey","w-full","bg-white","like-body-default","text-warmgrey-darker","hover:border-primary","focus:border-primary","transition-all","duration-300","ease-in-out",{"border-alert! text-alert!":l&&x,"pr-10":v,"text-warmgrey":s}),disabled:s,placeholder:(0,i.Dq)(c),type:r,name:d,id:d,value:m,onChange:p,onBlur:h,onFocus:f,onKeyUp:g,autoComplete:b,readOnly:y,required:j}),(0,a.jsx)("label",{className:"like-body-default pointer-events-none absolute left-4 top-4 text-warmgrey-dark",htmlFor:d,children:c}),u?(0,a.jsxs)("span",{className:"group absolute -right-8 top-[50%] z-10 translate-y-[-50%]",children:[(0,a.jsxs)("svg",{className:"hover:fill-primary",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",fill:"#96938F",children:[(0,a.jsx)("title",{children:"Info"}),(0,a.jsx)("path",{clipRule:"evenodd",d:"m8 14c3.3137 0 6-2.6863 6-6 0-3.31371-2.6863-6-6-6-3.31371 0-6 2.68629-6 6 0 3.3137 2.68629 6 6 6zm0 2c4.4183 0 8-3.5817 8-8 0-4.41828-3.5817-8-8-8-4.41828 0-8 3.58172-8 8 0 4.4183 3.58172 8 8 8zm1-9v5h-2v-5zm-1-1c.55229 0 1-.44772 1-1s-.44771-1-1-1c-.55228 0-1 .44772-1 1s.44772 1 1 1z",fillRule:"evenodd"})]}),(0,a.jsx)("span",{className:"link-hint pointer-events-none absolute left-[50%] top-[calc(100%+0.5rem)] hidden w-auto translate-x-[-50%] whitespace-nowrap rounded-sm bg-white p-2 text-center font-apercu-bold text-xs text-warmgrey-dark shadow before:absolute before:left-[calc(50%-0.25rem)] before:-top-2 before:h-2 before:w-2 hover:block group-hover:block",children:u})]}):null]}),!w&&l&&x?(0,a.jsx)("label",{htmlFor:d,className:n()("mt-2 text-xs text-alert"),children:l}):null]})}},51474:function(e,t,r){r.r(t),r.d(t,{default:function(){return j}});var a=r(52676),s=r(52391),n=r(38614),i=r(35320);let o=()=>{let e=s.Ng.getCurrentTrackingPageId();return{processName:n.Jq.newsletter,processCategory:n.hJ.lead,steps:{enterData:(0,i.a)(e,n.Jq.newsletter,"01.","EnterData",n.qw.start),checkMail:(0,i.a)(e,n.Jq.newsletter,"02.","CheckMail"),nlr:(0,i.a)(e,n.Jq.newsletter,"03.","NLR",n.qw.success)}}};var l=r(82187),c=r.n(l),d=r(76977),u=r(11918),m=r(75271),p=r(60027),h=r(61419),f=r(41743),g=r(23041),x=r(64149),b=r(22143),v=r(67106),w=r(85420),y=r(45051),j=e=>{let{config:t}=e,[r,n]=(0,m.useState)(!1),[i,l]=(0,m.useState)(!1),[j,k]=(0,m.useState)(!1),N=(0,m.useContext)(b.b),S=(0,m.useMemo)(()=>new w.Z,[]),[Z,C]=(0,m.useState)(!1),I=(0,m.useRef)(),A=(0,m.useRef)(null),F=r?"expanded":"closed",q={closed:{height:"0",opacity:0,transition:{duration:"0.3"}},expanded:{height:"auto",opacity:1,transition:{duration:"0.3"}}},E={visible:{display:"block",opacity:1},hidden:{display:"none",opacity:0}},T={visible:{opacity:1,transition:{duration:"0.6"}},hidden:{opacity:0,transition:{duration:"0.6"}}};(0,m.useEffect)(()=>{let e=e=>{!I.current||I.current.contains(e.target)||A.current?.values?.email||(A.current.resetForm(),n(!1))};return r&&(document.addEventListener("touchstart",e),document.addEventListener("click",e)),()=>{document.removeEventListener("touchstart",e),document.addEventListener("click",e)}},[r]);let D=(0,m.useCallback)(()=>{r&&(I.current.scrollIntoView({behavior:"smooth"}),s.Ng.addViewElement(t?.tracking?.submit))},[t?.tracking?.submit,r]),P=(0,m.useCallback)(e=>{let t={};return e.email?x.CU.test(e.email)||(t.email=(0,p.Dq)((0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.error.emailNotValid"}))):t.email=(0,p.Dq)((0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.error.empty"})),t},[N?.resourceSets]),G=()=>{j||(s.Ng.setProcessAndTrackStep(o(),"enterData"),k(!0))},_=async e=>{let r=await S.trackNewsletterSubscription({...e,name:t.dpConfig.eventName,salesforceId:t.dpConfig.salesforceId});return s.Ng.isTestEmail(e?.email)&&s.Ng.setUserModeOn(),s.Ng.setInteractionElement(t?.tracking?.submit),s.Ng.setProcessAndTrackStep(o(),"checkMail"),r},z=async(e,t)=>{(await _({...e})).status<=400?(l(!0),setTimeout(()=>C(!0),2e3)):(t.setErrors({email:(0,p.Dq)((0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.error.technical"}))}),t.setSubmitting(!1))};return(0,a.jsxs)("div",{ref:I,className:c()("relative -ml-4 -mr-4 overflow-hidden rounded-sm px-4 transition-shadow duration-300 ease-in-out md:-ml-6 md:mr-0 md:px-6",{"border border-warmgrey bg-warmgrey-light py-4 shadow-small md:py-6 lg:mb-14 xl:mb-0":r}),children:[(0,a.jsx)(d.J9,{validate:P,initialValues:{email:"",privacyAgreement:!1},onSubmit:z,innerRef:A,children:e=>{let{errors:t,isSubmitting:r,touched:s,getFieldProps:i,isValid:o}=e;return(0,a.jsxs)(d.l0,{onFocus:()=>{n(!0)},children:[(0,a.jsxs)("fieldset",{children:[(0,a.jsx)("legend",{className:"mb-4 inline-block font-apercu-bold",children:(0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.title"})}),(0,a.jsx)(g.Z,{className:"mb-4 max-w-none",placeholder:(0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.placeholder"}),error:t.email,touched:s.email,onKeyUp:G,required:!0,...i("email")})]}),(0,a.jsxs)(u.m.div,{variants:q,animate:F,initial:q.closed,onAnimationComplete:D,children:[(0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.privacyInfo"}),(0,a.jsx)(f.Z,{error:t.privacyAgreement,touched:s.privacyAgreement,...i("privacyAgreement"),children:(0,a.jsx)("span",{className:"text-xs text-warmgrey-dark",children:(0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.privacyAgreement"})})}),(0,a.jsx)("div",{className:"text-right",children:(0,a.jsx)(h.default,{type:"submit",disabled:r||!o,children:(0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.submit"})})})]})]})}}),(0,a.jsx)(u.m.div,{className:"absolute bottom-0 left-0 right-0 top-0 bg-warmgrey-light px-14 pb-20 pt-20",variants:E,animate:i?"visible":"hidden",initial:E.hidden,children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsxs)("div",{className:"relative h-6 w-6",children:[(0,a.jsxs)(u.m.
1svg,{className:c()("absolute"),variants:T,animate:Z?"hidden":"visible",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Newsletter subscription success icon"}),(0,a.jsx)("circle",{cx:"12",cy:"12",r:"11",stroke:"#d5a933",strokeWidth:"2"}),(0,a.jsx)("path",{d:"m16.875 8-7.125 6.84-2.625-2.52-1.125 1.08 3 2.88.75.72.75-.72 7.5-7.2z",fill:"#d5a933"})]}),(0,a.jsxs)(u.m.svg,{className:c()("absolute"),variants:T,animate:Z?"visible":"hidden",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Newsletter subscription envelope icon"}),(0,a.jsx)("rect",{height:"16",rx:"3",stroke:"#d5a933",strokeWidth:"2",width:"20",x:"1",y:"5"}),(0,a.jsx)("path",{d:"m.646973 8.94116 8.099587 5.52244c1.35934.9268 3.14744.9268 4.50674 0l8.0996-5.52244",stroke:"#d5a933",strokeWidth:"2"}),(0,a.jsx)("circle",{cx:"21",cy:"5",fill:"#414141",r:"3"})]})]})}),(0,a.jsx)(v.Z,{data:N?.resourceSets[y.Gd.pageFooter],id:"footer.newsletterSubscription.messages.success"})]})})]})}},85420:function(e,t,r){r.d(t,{Z:function(){return k}});var a=r(56386),s=r(81472),n=function(e){return null==e},i=r(71038),o=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}},l=r(52873),c=r(62636),d=r(67358),u=r(89933),m=r(29525),p=r(69736),h=r(97364),f=function(e,t,r,a){if(!(0,p.Z)(e))return e;t=(0,u.Z)(t,e);for(var s=-1,n=t.length,i=n-1,o=e;null!=o&&++s<n;){var l=(0,h.Z)(t[s]),c=r;if("__proto__"===l||"constructor"===l||"prototype"===l)break;if(s!=i){var f=o[l];void 0===(c=a?a(f,l,o):void 0)&&(c=(0,p.Z)(f)?f:(0,m.Z)(t[s+1])?[]:{})}(0,d.Z)(o,l,c),o=o[l]}return e},g=function(e,t,r){for(var a=-1,s=t.length,n={};++a<s;){var i=t[a],o=(0,c.Z)(e,i);r(o,i)&&f(n,(0,u.Z)(i,e),o)}return n},x=r(63304),b=function(e,t){if(null==e)return{};var r=(0,l.Z)((0,x.Z)(e),function(e){return[e]});return t=(0,i.Z)(t),g(e,r,function(e,r){return t(e,r[0])})},v=function(e,t){return b(e,o((0,i.Z)(t)))},w=r(64149),y=r(66478);class j{constructor(){this.dpTargetStage=y.qA?.stageName}async sendDataplatformTrack(e){let{trackData:t,endpoint:r}=e,a={method:"POST",mode:"cors",cache:"no-cache",credentials:"include",redirect:"error",referrerPolicy:"no-referrer",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(v(v({...t},n),s.Z))};return window.fetch(`${y.qA.dataPlatform.landingPage.route}/${r}`,a)}async trackNewsletterSubscription(e){try{let t={body:{appId:y.qA?.dataPlatform?.appId||"AllvestFrontend",eventType:"SUBSCRIBE",uuid:localStorage.getItem(w.Kh)||(0,a.h)(),data:{name:e.name,email:e.email,privacyAgreement:e.privacyAgreement,coiId:"1234",salesforceId:e.salesforceId,allvestAgentCode:localStorage.getItem(w.Cr)||null}}};return this.sendDataplatformTrack({trackData:t,endpoint:"newsletter-subscriptions"})}catch(e){console.error("dataplatform failed ...",e)}}async trackEventSignup(e){try{let{email:t,forename:r,lastname:s,salutation:n,privacyAgreement:i,name:o,sfCampaignId:l,eventType:c,newsletterSubscription:d}=e,u={body:{appId:y.qA?.dataPlatform?.appId||"AllvestFrontend",uuid:localStorage.getItem(w.Kh)||(0,a.h)(),data:{name:o,email:t,forename:r,lastname:s,salutation:n,privacyAgreement:i,sfCampaignId:l,eventType:c,newsletterSubscription:d}}};return this.sendDataplatformTrack({trackData:u,endpoint:"activity-subscriptions"})}catch(e){console.error("dataplatform failed ...",e)}}}var k=j},35320:function(e,t,r){r.d(t,{a:function(){return s}});let a=(e,t,r,a)=>e+"-"+t+"/"+r+" "+a,s=(e,t,r,s,n)=>({pageId:a(e,t,r,s),stepNumber:r,stepName:s,event:n})},81472:function(e,t,r){var a=r(97862),s=r(44017),n=r(67993),i=r(23162),o=r(11793),l=r(28326),c=r(77794),d=r(61445),u=Object.prototype.hasOwnProperty;t.Z=function(e){if(null==e)return!0;if((0,o.Z)(e)&&((0,i.Z)(e)||"string"==typeof e||"function"==typeof e.splice||(0,l.Z)(e)||(0,d.Z)(e)||(0,n.Z)(e)))return!e.length;var t=(0,s.Z)(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if((0,c.Z)(e))return!(0,a.Z)(e).length;for(var r in e)if(u.call(e,r))return!1;return!0}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.