PageSourceSearch

https://ws-akademie.de/_next/static/chunks/app/kontakt/page-e73841d7c0414f2b.js

js ws-akademie.de collected 2026-10-07 05:21:03 UTC 5,743 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[937],{637:(e,a,t)=>{"use strict";var l=t(6857);t.o(l,"usePathname")&&t.d(a,{usePathname:function(){return l.usePathname}}),t.o(l,"useRouter")&&t.d(a,{useRouter:function(){return l.useRouter}}),t.o(l,"useSearchParams")&&t.d(a,{useSearchParams:function(){return l.useSearchParams}})},2265:(e,a,t)=>{"use strict";t.d(a,{default:()=>i});var l=t(5111),r=t(9151),n=t(637),s=t(7127);function i(e){let{compact:a=!1,idPrefix:t="contact",topic:i="Allgemein"}=e,c=(0,n.useRouter)(),[o,m]=(0,r.useState)(!1),[d,u]=(0,r.useState)("");async function f(e){e.preventDefault(),m(!0),u("");let a=e.currentTarget,t={firstName:a.elements.namedItem("firstName").value,lastName:a.elements.namedItem("lastName").value,email:a.elements.namedItem("email").value,phone:a.elements.namedItem("phone").value,message:a.elements.namedItem("message").value,source:window.location.href,topic:i,...(0,s._t)()};try{localStorage.setItem("ws_lead_firstName",t.firstName),localStorage.setItem("ws_lead_lastName",t.lastName),localStorage.setItem("ws_lead_email",t.email),localStorage.setItem("ws_lead_phone",t.phone)}catch(e){}try{(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok?c.push("/danke"):u("Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.")}catch(e){u("Verbindungsfehler. Bitte versuchen Sie es erneut.")}finally{m(!1)}}return(0,l.jsxs)("form",{onSubmit:f,noValidate:!0,"data-gtm-form":"contact",style:{display:"flex",flexDirection:"column",gap:"1rem"},children:[!a&&(0,l.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"1rem"},children:[(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"".concat(t,"-firstName"),className:"form-label",children:"Vorname *"}),(0,l.jsx)("input",{type:"text",id:"".concat(t,"-firstName"),name:"firstName",className:"form-input",placeholder:"Max",required:!0,autoComplete:"given-name"})]}),(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"".concat(t,"-lastName"),className:"form-label",children:"Nachname *"}),(0,l.jsx)("input",{type:"text",id:"".concat(t,"-lastName"),name:"lastName",className:"form-input",placeholder:"Mustermann",required:!0,autoComplete:"family-name"})]})]}),a&&(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"".concat(t,"-firstName"),className:"form-label",children:"Ihr Name *"}),(0,l.jsx)("input",{type:"text",id:"".concat(t,"-firstName"),name:"firstName",className:"form-input",placeholder:"Vor- und Nachname",required:!0,autoComplete:"name"})]}),a&&(0,l.jsx)("input",{type:"hidden",name:"lastName",value:""}),(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"".concat(t,"-email"),className:"form-label",children:"E-Mail-Adresse *"}),(0,l.jsx)("input",{type:"email",id:"".concat(t,"-email"),name:"email",className:"form-input",placeholder:"[email protected]",required:!0,autoComplete:"email"})]}),(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"".concat(t,"-phone"),className:"form-label",children:"Telefonnummer"}),(0,l.jsx)("input",{type:"tel",id:"".concat(t,"-phone"),name:"phone",className:"form-input",placeholder:"0203 123456",autoComplete:"tel"})]}),(0,l.jsxs)("div",{className:"form-group",children:[(0,l.jsx)("label",{htmlFor:"".concat(t,"-message"),className:"form-label",children:"Nachricht (optional)"}),(0,l.jsx)("textarea",{id:"".concat(t,"-message"),name:"message",className:"form-textarea",placeholder:"Ihre Fragen oder Anmerkungen …",rows:3})]}),d&&(0,l.jsx)("div",{role:"alert",style:{padding:"0.875rem 1rem",background:"#fef2f2",border:"1px solid #fecaca",borderRadius:"var(--r-md)",color:"#dc2626",fontSize:"0.875rem"},children:d}),(0,l.jsx)("button",{type:"submit",className:"btn btn-primary btn-lg",disabled:o,"data-gtm-event":"form_submit",style:{justifyContent:"center",opacity:o?.7:1,cursor:o?"not-allowed":"pointer"},children:o?"Wird gesendet...":"Kostenlos anfragen"}),(0,l.jsxs)("p",{style:{fontSize:"0.75rem",color:"var(--text-light)",textAlign:"center"},children:["Mit dem Absenden stimmen Sie unserer"," ",(0,l.jsx)("a",{href:"/datenschutz",style:{color:"var(--blue)",textDecoration:"underline"},children:"Datenschutzerkl\xe4rung"})," ","zu. Wir verwenden Ihre Angaben ausschlie\xdflich zur Bearbeitung Ihrer Anfrage."]})]})}},7127:(e,a,t)=>{"use strict";t.d(a,{EL:()=>i,_t:()=>c});let l="ws_campaign_attribution";function r(e){if(!e)return{};try{let a=JSON.parse(e);return"object"==typeof a&&null!==a?a:{}}catch(e){return{}}}function n(e,a){return!!(e&&"string"==typeof e.value&&"number"==typeof e.expiresAt&&e.expiresAt>a)}function s(e,a){for(let[t,l]of e.entries())if(t.toLowerCase()===a)return(null==l?void 0:l.trim().replace(/[\r\n]/g,"").slice(0,512))||void 0}function i(e){let a=Date.now(),t=r(window.localStorage.getItem(l)),i={};n(t.gclid,a)&&(i.gclid=t.gclid),n(t.fbclid,a)&&(i.fbclid=t.fbclid);let c=s(e,"gclid"),o=s(e,"fbclid"),m=a+2592e6;c&&(i.gclid={value:c,expiresAt:m}),o&&(i.fbclid={value:o,expiresAt:m});try{i.gclid||i.fbclid?window.localStorage.setItem(l,JSON.stringify(i)):window.localStorage.removeItem(l)}catch(e){}return{...i.gclid?{gclid:i.gclid.value}:{},...i.fbclid?{fbclid:i.fbclid.value}:{}}}function c(){let e=Date.now(),a=r(window.localStorage.getItem(l)),t={};n(a.gclid,e)&&(t.gclid=a.gclid),n(a.fbclid,e)&&(t.fbclid=a.fbclid);try{t.gclid||t.fbclid?window.localStorage.setItem(l,JSON.stringify(t)):window.localStorage.removeItem(l)}catch(e){}return{...t.gclid?{gclid:t.gclid.value}:{},...t.fbclid?{fbclid:t.fbclid.value}:{}}}},8072:(e,a,t)=>{Promise.resolve().then(t.bind(t,2265))}},e=>{var a=a=>e(e.s=a);e.O(0,[216,420,358],()=>a(8072)),_N_E=e.O()}]);

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.