PageSourceSearch

https://www.adac-motorsport.de/component---src-templates-contact-form-tsx-6794c68bfc7d879b80ce.js

js adac-motorsport.de collected 2026-09-24 09:46:06 UTC 16,235 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkadac_motorsport=self.webpackChunkadac_motorsport||[]).push([[2719],{13789:function(e,t,n){n.d(t,{L:function(){return d}});var a=n(96540),l=n(92568),i=n(63325),r=n(90150),o=n(89164),c=n(91692),s=n(58729),m=n(31780);const u={modules:[r.dK,r.Ij,r.Jq],pagination:{el:".swiper-pagination",clickable:!0,type:"bullets",renderBullet:(e,t)=>"<span class="+t+"><span></span></span>"},autoplay:{delay:6e3},a11y:{enabled:!0}},d=(0,l.default)(e=>{let{className:t,items:n,testid:l}=e;const[r,c]=a.useState(null),d=(0,a.useMemo)(()=>n.filter(e=>{let{image:t}=e;return t&&(0,s.AZ)(t)}).map((e,t)=>{let{title:n,href:l,topLine:r,image:c,focusPosition:m}=e;return a.createElement(i.qr,{key:r+"_"+(0,s.AZ)(c),"aria-label":n},a.createElement(o.m,{title:n,href:l,topLine:r,image:c,prefetch:t<1,focusPosition:m}))}),[n]);return a.createElement("div",{style:{position:"relative"},className:t,"data-testid":l},r&&a.createElement(m.W,{className:"autoplay-control",swiper:r}),a.createElement(i.RC,Object.assign({},u,{zoom:!1,onSwiper:c}),d,a.createElement("div",{className:"swiper-pagination"})))}).withConfig({displayName:"home-slider__HomeSlider",componentId:"sc-b7mvti-0"})([".autoplay-control{position:absolute;right:12px;bottom:32px;}.swiper-pagination{position:absolute;bottom:","px;z-index:1;display:flex;flex-direction:row;justify-content:center;flex-wrap:nowrap;.swiper-pagination-bullet{display:flex;background:transparent;border-radius:0;width:","px;flex:0 1 ","px;height:","px;margin:0 ","px;opacity:1;span{width:100%;height:50%;display:inline-block;border-bottom:","px solid ",";opacity:0.3;pointer-events:none;}&-active{span{opacity:1;}}:hover{span{opacity:1;}}}}","{",";.pagination{bottom:","px;}}"],e=>{let{theme:t}=e;return t.spacing.fn(1.25)},e=>{let{theme:t}=e;return t.spacing.fn(3)},e=>{let{theme:t}=e;return t.spacing.fn(3)},e=>{let{theme:t}=e;return t.spacing.fn(5)},e=>{let{theme:t}=e;return t.spacing.fn(.75)},e=>{let{theme:t}=e;return t.spacing.fn(.25)},e=>{let{theme:t}=e;return t.palette.common.white.main},(0,c.up)("md"),e=>"static"===e.theme.header.position&&(0,l.css)(["margin-block-start:var(--min-height-header);"]),e=>{let{theme:t}=e;return t.spacing.fn(.5)})},23217:function(e,t,n){n.d(t,{n:function(){return i},v:function(){return r}});var a=n.p+"static/fallback-image-large-48a489563acf8592f94b9b7cc908afa9.jpg",l=n.p+"static/fallback-image-small-76c16ff41dcaca3b29879e177dc35cec.jpg";const i={url:a,originalWidth:2064,originalHeight:1080,alt:""},r={url:l,originalWidth:312,originalHeight:207,alt:""}},29519:function(e,t,n){n.d(t,{b:function(){return o}});var a=n(96540),l=n(92568),i=n(48170),r=n(91692);const o=(0,l.default)(e=>{let{title:t,topLine:n,date:l,className:r}=e;return a.createElement("div",{className:r},n&&a.createElement(i.id,{date:l,topLine:n}),a.createElement("h1",{className:"title"},t))}).withConfig({displayName:"article-headline__ArticleHeadline",componentId:"sc-ra4gya-0"})(["h1.title{margin:unset;margin-top:","px;font-family:",";font-style:",";font-weight:",";font-size:","px;letter-spacing:0;text-align:left;","{font-size:","px;}}"],e=>{let{theme:t}=e;return t.spacing.fn(1)},e=>{let{theme:t}=e;return t.fonts.family},e=>{let{theme:t}=e;return t.fonts.styles.normal},e=>{let{theme:t}=e;return t.fonts.weights.bold},e=>{let{theme:t}=e;return t.fonts.sizes.h2+t.spacing.fn(.5)},(0,r.up)("md"),e=>{let{theme:t}=e;return t.fonts.sizes.h1})},40264:function(e,t,n){n.d(t,{D:function(){return p}});var a=n(54506),l=n(96540),i=n(92568),r=n(91692),o=n(19568),c=n(59429),s=n(91834),m=n(6442),u=n(58065);const d=(e,t)=>Object.entries(e).filter(e=>{let[n]=e;return n.startsWith(t)}).reduce((e,t)=>{let[n,l]=t;return[].concat((0,a.A)(e),[l])},[]),p=(0,i.default)(e=>{let{onSubmit:t,className:n,mdLayoutMaxWidth:a=6}=e;const{register:i,handleSubmit:p}=(0,c.mN)(),{messages:h,formatMessage:f}=(0,m.A)(),g=d(h,"forms.salutationOptions"),v=d(h,"forms.countryOptions"),[b,y]=i("salutation",g[0]),[E,x]=i("firstName",""),[w,C]=i("lastName",""),[N,k]=i("address",""),[z,F]=i("addressNr",""),[P,W]=i("zip",""),[A,_]=i("city",""),[j,I]=i("country",v[0]),[L,S]=i("mail",""),[H,O]=i("subject",""),[M,T]=i("message",""),[Z,q]=i("copy",!1);
1return l.createElement("form",{onSubmit:p(t),className:n,noValidate:!0},l.createElement(r.xA,{maxWidth:"md"},l.createElement(r.Ei,{md:a},l.createElement(o.Zq,{label:f({id:"contactForm.labelSalutation"}),autoComplete:"honorific-prefix",options:g,value:b,onChange:e=>y(e.target.value)})),l.createElement(r.Ei,{md:a},l.createElement(o.pd,{label:f({id:"contactForm.labelFirstName"}),autoComplete:"given-name",value:E,onChange:e=>x(e.target.value)})),l.createElement(r.Ei,{md:a},l.createElement(o.pd,{label:f({id:"contactForm.labelLastName"}),autoComplete:"family-name",value:w,onChange:e=>C(e.target.value)})),l.createElement(r.Ei,{md:a},l.createElement("div",{className:"multiComponentGridItem"},l.createElement("div",{className:"streetWrapper"},l.createElement(o.pd,{label:f({id:"contactForm.labelStreet"}),autoComplete:"street-address",value:N,onChange:e=>k(e.target.value)})),l.createElement("div",{className:"houseNrWrapper"},l.createElement(o.pd,{label:f({id:"contactForm.labelHouseNumber"}),autoComplete:"off",value:z,onChange:e=>F(e.target.value)})))),l.createElement(r.Ei,{md:a},l.createElement("div",{className:"multiComponentGridItem"},l.createElement("div",{className:"zipWrapper"},l.createElement(o.pd,{label:f({id:"contactForm.labelZip"}),autoComplete:"postal-code",value:P,onChange:e=>W(e.target.value)})),l.createElement("div",{className:"cityWrapper"},l.createElement(o.pd,{label:f({id:"contactForm.labelCity"}),autoComplete:"address-level2",value:A,onChange:e=>_(e.target.value)})))),l.createElement(r.Ei,{md:a},l.createElement(o.Zq,{label:f({id:"contactForm.labelCountry"}),autoComplete:"country",options:v,value:j,onChange:e=>I(e.target.value)})),l.createElement(r.Ei,{md:a},l.createElement(o.pd,{label:f({id:"contactForm.labelEmail"}),autoComplete:"email",value:L,onChange:e=>S(e.target.value)})),l.createElement(r.Ei,null,l.createElement(o.pd,{label:f({id:"contactForm.labelSubject"}),value:H,onChange:e=>O(e.target.value)})),l.createElement(r.Ei,null,l.createElement(o.TM,{label:f({id:"contactForm.labelMessage"}),value:M,onChange:e=>T(e.target.value)})),l.createElement(r.Ei,null,l.createElement(o.Sc,{label:f({id:"contactForm.labelSendCopy"}),checked:Z,onChange:()=>q(!Z)})),l.createElement(r.Ei,null,l.createElement(s.$,{type:"submit",onClick:p(t)},l.createElement(u.A,{id:"contactForm.submit"})))))}).withConfig({displayName:"contact-form__ContactForm",componentId:"sc-g7fou1-0"})([".multiComponentGridItem{display:flex;flex-direction:row;}.zipWrapper,.houseNrWrapper{flex:0 0 var(--width);width:var(--width);}.zipWrapper{--width:","px;margin-right:","px;}.houseNrWrapper{--width:","px;margin-left:","px;}.cityWrapper,.streetWrapper{flex:1 1 100%;}textarea{font-family:inherit;font-size:14px;min-height:200px;}"],e=>{let{theme:t}=e;return t.spacing.fn(11.25)},e=>{let{theme:t}=e;return t.spacing.fn(2)},e=>{let{theme:t}=e;return t.spacing.fn(11.25)},e=>{let{theme:t}=e;return t.spacing.fn(2)})},69723:function(e,t,n){n.d(t,{i:function(){return a}});const a=e=>{var t,n;if(!e)return{};const a={};var l,i;(e.seoTitle&&(a.title=e.seoTitle),e.seoDescription&&(a.description=e.seoDescription),e.seoKeywords&&(a.keywords=e.seoKeywords.split(" ")),e.robotsFollow&&(a.follow=e.robotsFollow),null!==(t=e.seoImage)&&void 0!==t&&null!==(n=t[0])&&void 0!==n&&n.url)&&(a.image={src:null===(l=e.seoImage)||void 0===l||null===(i=l[0])||void 0===i?void 0:i.url,width:1032,height:640});return a}},70682:function(e,t,n){n.d(t,{h:function(){return l}});var a=n(75107);function l(e,t){if(Array.isArray(e))return{items:e.map(e=>{var n,l,i,r,o;let c="";return e.externalHref?c=e.externalHref:e.href&&e.href.slug&&(c="ContentfulNewsArticle"===e.href.__typename?a.h.get().getPathFor("NewsArticle",t,e.href):e.href.slug),{href:c,image:Object.assign({},(null===(n=e.image)||void 0===n?void 0:n[0])||{},{alt:(null===(l=e.image)||void 0===l||null===(i=l[0])||void 0===i?void 0:i.alt)||e.title}),topLine:e.topline,title:null!==(r=e.title)&&void 0!==r?r:"",focusPosition:(null===(o=e.focusPosition)||void 0===o?void 0:o.toLowerCase())||"center"}})}}},74458:function(e,t,n){n.r(t),n.d(t,{default:function(){return E}});var a=n(96540),l=n(6442),i=n(5871),r=n(11042),o=n(29519),c=n(40264),s=n(31167),m=n(38396),u=n(13789),d=n(29463),p=n(49280),h=n(58729);const f=e=>{const t=(0,h.i0)(e.slider),n=!t&&(0,h.qt)(e.image),l=t||n;return a.createElement(a.Fragment,null,a.createElement(i.UC,{fullWidth:!0,isHeader:!0},a.createElement(p.z,{locale:e.locale,channel:e.channel,localizations:e.localizations,hasHero:l}),t&&a.createElement(u.L,e.slider),n&&a.createElement(s.v,{className:"headerImage",image:e.image,loading:"eager"})),a.createElement(i.UC,{narrow:!0,isContent:!0,isLast:!0},a.createElement(o.b,{title:e.title}),a.createElement("div",{className:"spacer-4"}),a.createElement(m.s,{text:e.text}),a.createElement("div",{className:"spacer-4"}),a.createElement("div",{className:"noGridPadding"},a.createElement(c.D,e.contactForm),a.createElement("div",{className:"spacer-4"}))),a.createElement(i.UC,{fullWidth:!0},a.createElement(d.F,{locale:e.locale,channel:e.channel})))};var g=n(19412),v=n(96413),b=n(70682),y=n(69723);var E=e=>{var t,n,o;let{data:c,pageContext:s}=e;const m=c.contentfulContactPage.text,{formatMessage:u}=(0,l.A)(),d={channel:null!==(t=s.channel)&&void 0!==t?t:"*",locale:s.node_locale,localizations:(0,g.A)({nodes:c.localizations.nodes,pageType:"ContactForm",channel:null!==(n=s.channel)&&void 0!==n?n:"*",channelLocalizationWhitelist:s.channelLocalizationWhitelist}),title:c.contentfulContactPage.title,text:m,image:null===(o=c.contentfulContactPage.image)||void 0===o?void 0:o[0],slider:(0,b.h)(c.contentfulContactPage.sliderPages,s.node_locale),contactForm:{onSubmit:e=>{var t,n,a,l,i,r,o,s;const m=null!==(t=c.contentfulContactPage)&&void 0!==t&&t.recipient?null===(n=c.contentfulContactPage)||void 0===n?void 0:n.recipient:u({id:"contactForm.recipient"}),d=null!==(a=c.contentfulContactPage)&&void 0!==a&&a.subject?null===(l=c.contentfulContactPage)||void 0===l?void 0:l.subject:u({id:"contactForm.subject"}),p=null!==(i=c.contentfulContactPage)&&void 0!==i&&null!==(r=i.body)&&void 0!==r&&r.body?null===(o=c.contentfulContactPage)||void 0===o||null===(s=o.body)||void 0===s?void 0:s.body:u({id:"contactForm.introText"}),h=encodeURIComponent(Object.keys(e).reduce((t,n)=>""+t+n+": "+e[n]+"\n\n",p+"\n\n"));return window.open("mailto:"+m+"?subject="+d+"&body="+h),Promise.resolve()}}},p={title:c.contentfulContactPage.title,image:(0,v.n)(c.contentfulContactPage),lang:s.node_locale};return a.createElement(i.PE,{channel:s.channel},a.createElement(r.A,Object.assign({}
1,p,(0,y.i)(c.contentfulContactPage.seo))),a.createElement(f,d))}},89164:function(e,t,n){n.d(t,{m:function(){return m}});var a=n(96540),l=n(92568),i=n(48170),r=n(91692),o=n(31167),c=n(24794),s=n(99766);const m=(0,l.default)(e=>{let{className:t,image:n,href:r,topLine:m,title:u,prefetch:d,focusPosition:p}=e;const h=(0,l.useTheme)(),f="string"==typeof r&&r.trim().length>0;function g(){f&&((0,s.i9)(r)?window.open(r,"_blank"):(0,c.navigate)(r))}return a.createElement("div",{className:t+" home-slider-item "+(f?"home-slider-item-linked":""),role:"link",onClick:g,onKeyDown:e=>"Enter"===e.key&&g(),tabIndex:0},a.createElement(o.v,{image:n,className:"zoom",loading:d?null:"lazy",fadeIn:!1,backgroundColor:h.palette.common.grey.light,layoutPosition:"onTop",alt:n.alt,focusPosition:p}),a.createElement("div",{className:"home-slider-item-container"},m&&a.createElement("div",{className:"topline"},a.createElement("span",{className:"text-starter"},"»"),a.createElement(i.Ew,{className:"series",$noHover:!0},m)),u&&a.createElement("div",{className:"title"},a.createElement("h2",null,a.createElement("span",{className:"title-line"},u)))))}).withConfig({displayName:"home-slider-item__HomeSliderItem",componentId:"sc-1m2kccq-0"})(["position:relative;width:100%;height:460px;&.home-slider-item-linked{cursor:pointer;}.gatsby-image-wrapper,.gatsby-image-wrapper img{height:100%;width:100%;object-fit:cover;}.home-slider-item-container{position:absolute;left:","px;bottom:","px;font-family:",";font-style:",";font-weight:",";font-size:","px;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0);.text-starter{color:",";font-size:","px;font-family:",";font-style:",";font-weight:",";letter-spacing:","px;margin-left:","px;vertical-align:sub;}.topline{position:relative;bottom:","px;}}.title{color:",";line-height:1.04 !important;max-width:300px;h2{font-size:","px;margin:0 0 ","px;}.title-line{font-family:",";font-style:",";font-weight:",";color:",";background-image:linear-gradient(105deg,transparent 50%,"," 53%),linear-gradient(110deg,"," 50%,transparent 53%),linear-gradient( to left,",","," );background-size:24px 85%,24px 85%,calc(100% - 48px) 85%;background-position:left,right,center;background-repeat:no-repeat;display:inline;padding:0 16px;-webkit-box-decoration-break:clone;box-decoration-break:clone;overflow-wrap:anywhere;word-break:normal;}","{line-height:","px;max-width:800px;h2{font-size:",'px;&:after{content:"»";position:absolute;bottom:',"px;color:",";font-size:","px;margin-left:","px;font-family:",";font-style:",";font-weight:",";vertical-align:text-bottom;}}}}:hover{.title h2 .skewed-base{color:",";:before{background:",";}}}.series{color:",";padding:0 6px;}.publication-date{padding:0 6px;}","{--max-height-md:800px;height:var(--max-height-md);.home-slider-item-container{left:","px;bottom:","px;.title{font-size:","px;line-height:","px;}}}"],e=>{let{theme:t}=e;return t.spacing.fn(1.75)},e=>{let{theme:t}=e;return t.spacing.fn(5.75)},e=>{let{theme:t}=e;return t.fonts.family},e=>{let{theme:t}=e;return t.fonts.styles.italic},e=>{let{theme:t}=e;return t.fonts.weights.bold},e=>{let{theme:t}=e;return t.fonts.sizes.smallest},e=>{let{theme:t}=e;return t.palette.primary.main},e=>{let{theme:t}=e;return t.spacing.fn(4)},e=>{let{theme:t}=e;return t.fonts.family},e=>{let{theme:t}=e;return t.fonts.styles.italic},e=>{let{theme:t}=e;return t.fonts.weights.bolder},e=>{let{theme:t}=e;return t.spacing.fn(.5)},e=>{let{theme:t}=e;return t.spacing.fn(.75)},e=>{let{theme:t}=e;return-1*t.spacing.fn(.5)},e=>{let{theme:t}=e;return t.palette.common.white.main},e=>{let{theme:t}=e;return t.fonts.sizes.h1Mobile},e=>{let{theme:t}=e;return t.spacing.fn(.5)},e=>{let{theme:t}=e;return t.fonts.family},e=>{let{theme:t}=e;return t.fonts.styles.italic},e=>{let{theme:t}=e;return t.fonts.weights.bold},e=>{let{theme:t}=e;return t.palette.highlighted.color},e=>{let{theme:t}=e;return t.palette.highlighted.surface},e=>{let{theme:t}=e;return t.palette.highlighted.surface},e=>{let{theme:t}=e;return t.palette.highlighted.surface},e=>{let{theme:t}=e;return t.palette.highlighted.surface},(0,r.up)("md"),e=>{let{theme:t}=e;return t.fonts.sizes.h1},e=>{let{theme:t}=e;return t.fonts.sizes.h1+8},e=>{let{theme:t}=e;return t.spacing.fn(.25)},e=>{let{theme:t}=e;return t.palette.primary.main},e=>{let{theme:t}=e;return t.fonts.sizes.h1+t.spacing.fn(1.5)},e=>{let{theme:t}=e;return t.spacing.fn(1.5)},e=>{let{theme:t}=e;return t.fonts.family},e=>{let{theme:t}=e;return t.fonts.styles.italic},e=>{let{theme:t}=e;return t.fonts.weights.bolder},e=>{let{theme:t}=e;return t.palette.common.black.main},e=>{let{theme:t}=e;return t.palette.common.white.main},e=>{let{theme:t}=e;return t.palette.primary.color},(0,r.up)("md"),e=>{let{theme:t}=e;return t.spacing.fn(4)},e=>{let{theme:t}=e;return t.spacing.fn(10)},e=>{let{theme:t}=e;return t.fonts.sizes.h2},e=>{let{theme:t}=e;return t.fonts.sizes.h1})},96413:function(e,t,n){n.d(t,{n:function(){return c}});var a=n(37030),l=n(46805),i=n(58729),r=n(23217);const o={cloudName:"adacmkv",secure:!0},c=e=>{var t,n;let c=(0,i.AZ)(null==e?void 0:e.image)||(0,i.AZ)(null==e||null===(t=e.sliderPages)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.image)||r.n.url;if((0,i.O3)(c)){const e=decodeURIComponent((0,a.eV)(c));e&&(c=(0,l.Ay)(e,{cloud:o,transformations:{resize:{width:1032,height:640,type:"fill"}}}))}return{src:c,width:1032,height:640}}}}]);
2//# sourceMappingURL=component---src-templates-contact-form-tsx-6794c68bfc7d879b80ce.js.map

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.