1import{d as A,t as I,r as D,m as E,a2 as _,c as n,a as t,b as c,w as i,x as l,H as g,v as w,F as r,e as a,n as m,E as z,f as C,Y as B,_ as L,i as V,g as j,o as s,h as P}from"./B4E9vzMI.js";import{_ as T}from"./B_pG8Yqw.js";import{g as v,Z as b}from"./ciCOIl_a.js";const $={class:"pb-vw-20-to-48"},F={class:"bg-software-und-maschinenbau-intro bg-contain bg-[right_-50vw_center] bg-no-repeat 3xl:bg-[right_calc((50vw-1523px)/2)_center]"},U={class:"container"},Z=t("em",null,"Maschinensprache",-1),R=t("div",{class:"mt-vw-4-to-16 grid md:grid-cols-12 md:gap-x-5"},[t("div",{class:"md:col-span-9 md:whitespace-nowrap lg:col-span-8"},[t("h2",{class:"block max-w-[24ch] text-balance text-vw-headline-teaser"}," Immer auf dem Laufenden ⦠")])],-1),q={key:0,class:"mt-vw-7-to-16 grid grid-cols-12 sm:w-11/12 md:w-10/12 lg:mt-vw-4-to-16 lg:w-full lg:gap-x-5"},H=t("h3",{class:"col-span-9 text-balance text-vw-headline-level-2 lg:col-span-3"}," Abonnieren Sie jetzt unseren Newsletter ",-1),O=t("p",{class:"col-span-12 mt-vw-4-to-16 max-w-prose lg:col-span-5 lg:col-start-6 lg:mt-0"}," So bekommen Sie jeden Monat frische Impulse rund um Digitalisierung und Service im Maschinenbau in Ihr E-Mail-Postfach. ",-1),W=[H,O],Y=t("div",{class:"left-block lg:col-span-4"},[t("p",{class:"mb-4"},[a(" Das sind die Themen des Newsletters "),t("em",null,"Maschinensprache â Digitalisierung im Maschinenbau")]),t("ul",{class:"list"},[t("li",null," Neuigkeiten zu Technologien und Trends im digtalen After Sales "),t("li",null," Exklusive Einblicke in unsere Projekte, Praxisberichte und spannende Meilensteine "),t("li",null,"Praktische Ideen und smarte Strategien fuÌr Ihr Business")])],-1),G={class:"lg:col-span-5 lg:col-start-6"},J=C('<fieldset class="mt-vw-8-to-16 flex flex-col gap-vw-6-to-8 rounded bg-white/30 px-8 pb-8 pt-6 shadow-xl lg:mt-0"><div class="flex flex-col gap-4"><label class="text-vw-headline-level-2" for="contactName">Mein Name ist:</label><input type="text" class="w-full rounded-full px-vw-6-to-9 py-vw-3-to-4.5 text-vw-button-large focus:outline-none focus-visible:outline-current" id="contactName" name="name" placeholder="Vorname Name" required></div><div class="flex flex-col gap-4"><label class="text-vw-headline-level-2" for="contactCompany">Ich arbeite bei/für</label><input type="text" class="w-full rounded-full px-vw-6-to-9 py-vw-3-to-4.5 text-vw-button-large focus:outline-none focus-visible:outline-current" id="contactCompany" name="company" placeholder="Unternehmensname (optional)"></div><div class="flex flex-col gap-4"><label class="text-vw-headline-level-2" for="contactEmail"><template>Der Newsletter soll an folgende E-Mail-Adresse gesendet werden:</template></label><input type="text" class="w-full rounded-full px-vw-6-to-9 py-vw-3-to-4.5 text-vw-button-large focus:outline-none focus-visible:outline-current" id="contactEmail" name="email" placeholder="[email protected]" required></div></fieldset>',1),K={class:"mt-vw-12-to-14 w-full rounded-full focus:outline-none focus-visible:outline-current"},Q={key:1,class:"mt-vw-7-to-16 grid grid-cols-12 sm:w-11/12 md:w-10/12 lg:mt-vw-4-to-16 lg:w-full lg:gap-x-5"},X={key:0},ee={key:1},te={class:"col-span-3 flex justify-center lg:order-last lg:col-span-2"},se={class:"col-span-12 mt-vw-4-to-16 lg:col-span-5 lg:col-start-6 lg:mt-0"},ne={class:"max-w-prose"},le={key:0},ae={key:1},ue=A({__name:"newsletter",setup(oe){const e=I({success:!1,isLoading:!1,sent:!1,email:""}),x=B(),p=D({label:"Newsletter",id:"contactTopicNewsletter",checked:!1});E(()=>{x.$bus.$on("letsConnect",d=>{e.success=!1,e.isLoading=!1,e.sent=!1,e.email=""})});const k=_().public.apiBaseUrl+v("forms.contact",b),y=async d=>{d.preventDefault(),e.isLoading=!0;const h=d.target,u=new FormData(h);u.append("topic","Newsletter");try{const o=await $fetch(v("forms.contact",b),{method:"POST",body:u,baseURL:_().public.apiBaseUrl,headers:{Accept:"application/json"}});e.sent=!0,e.isLoading=!1,e.success=o.form||!1,e.email=u.get("email")}catch(o){console.error(o),e.sent=!0,e.isLoading=!1,e.success=!1,e.email=""}};function N(){location.reload()}return(d,h)=>{const u=L,o=P,f=V,M=T,S=j;return s(),n("div",$,[t("div",F,[t("div",U,[c(u,{icon:"newsletter"},{default:i(()=>[a(" Newsletter: "),Z,a(" â Digitalisierung im Maschinenbau. ")]),_:1}),R,l(e).sent?g("",!0):(s(),n("div",q,W)),t("div",{class:w(["pb-40",{"mt-vw-12-to-28":!l(e).sent}])},[l(e).sent?g("",!0):(s(),n("form",{key:0,class:"group/form sm:w-11/12 md:w-10/12 lg:grid lg:w-full lg:grid-cols-12 lg:gap-x-5",action:k,method:"post",onSubmit:y},[Y,t("div",G,[J,t("button",K,[c(f,{class:"w-full justify-between",large:"",inverted:""},{default:i(()=>
1[l(p).checked?(s(),n(r,{key:0},[a("Zum Newsletter anmelden")],64)):(s(),n(r,{key:1},[a("Anfrage senden")],64)),c(o,{icon:"email"})]),_:1})])])],32)),l(e).sent?(s(),n("div",Q,[t("h3",{class:w(["col-span-9 text-balance text-vw-headline-level-2 lg:col-span-3",{"text-warning":!l(e).success,"text-blue":l(e).success}])},[l(e).success?(s(),n("span",X,[l(p).checked?(s(),n(r,{key:0},[a("Vielen Dank für Ihre Anmeldung zum Newsletter")],64)):(s(),n(r,{key:1},[a("Vielen Dank für Ihre Anfrage.")],64))])):(s(),n("span",ee,"Das hat leider nicht geklappt."))],2),t("div",te,[l(e).success?(s(),m(o,{key:0,class:"size-vw-10-to-20 text-blue",icon:"checkmark"})):(s(),m(o,{key:1,class:"size-vw-10-to-20 text-warning",icon:"bug"}))]),t("div",se,[t("p",ne,[l(e).success?(s(),n("span",le,[l(p).checked?(s(),n(r,{key:0},[a("Sie haben sich mit Ihrer E-Mail-Adresse "+z(l(e).email)+" erfolgreich zu unserem Newsletter angemeldet.",1)],64)):(s(),n(r,{key:1},[a("Wir haben Ihre Nachricht erhalten und setzen uns kurzfristig mit Ihnen per E-Mail in Verbidnung.")],64))])):(s(),n("span",ae," Ihre Nachricht konnte uns leider nicht zugestellt werden, da der Server unseres E-Mail-Anbieters nicht antwortet. Bitte versuchen Sie es erneut. "))]),l(e).success?(s(),m(M,{key:0,class:"mt-vw-12-to-16 block rounded-full focus:outline-none focus-visible:outline-current",href:"#top"},{default:i(()=>[c(f,{large:"",class:"relative w-full justify-between"},{default:i(()=>[a("Zum Seitenanfang"),c(o,{icon:"circle-arrow-top-filled"})]),_:1})]),_:1})):(s(),m(S,{key:1,onClick:N,class:"mt-vw-12-to-16 block rounded-full focus:outline-none focus-visible:outline-current",to:{hash:"#kontakt"}},{default:i(()=>[c(f,{large:"",class:"relative w-full justify-between"},{default:i(()=>[a("Formular erneut ausfüllen"),c(o,{icon:"circle-arrow-right-filled"})]),_:1})]),_:1}))])])):g("",!0)],2)])])])}}});export{ue as default};
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.