var ee=Object.defineProperty;var te=(e,a,n)=>a in e?ee(e,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[a]=n;var R=(e,a,n)=>te(e,typeof a!="symbol"?a+"":a,n);import ae from"./eTbPLFKF.js";import oe from"./moBf5LKS.js";import{S as se,q as re,U as M,r as k,V as le,W as ne,X as ie,Y as J,w as Q,Z as K,c as de,b as ce,$ as pe,a0 as ue,i as x,a1 as T,a2 as me,a3 as fe,a4 as be,d as ye,s as ve,u as he,_ as ge,o as f,y as A,g as G,I as d,j as t,l as Z,t as l,e as y,h as S,F as X,v as Y,k as $,a5 as F,K as V,x as P,L as B,f as we,M as De,T as _e}from"./BPwrY6lL.js";import{u as $e}from"./CYSY2Q6Y.js";import{u as Fe,r as N,e as ke}from"./DHXfHr-G.js";import{u as Ve}from"./UyIzBwuc.js";function Ue(e,a={}){return $e(e,{...a,transform:se})}const ze=e=>e==="defer"||e===!1;function Ce(...e){var O;const a=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(a);let[n,p,r={}]=e;if(typeof n!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof p!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const s=re(),u=p,w=()=>M.value,o=()=>s.isHydrating?s.payload.data[n]:s.static.data[n];r.server=r.server??!0,r.default=r.default??w,r.getCachedData=r.getCachedData??o,r.lazy=r.lazy??!1,r.immediate=r.immediate??!0,r.deep=r.deep??M.deep,r.dedupe=r.dedupe??"cancel";const v=()=>r.getCachedData(n,s)!=null;if(!s._asyncData[n]||!r.immediate){(O=s.payload._errors)[n]??(O[n]=M.errorValue);const m=r.deep?k:le;s._asyncData[n]={data:m(r.getCachedData(n,s)??r.default()),pending:k(!v()),error:ne(s.payload._errors,n),status:k("idle"),_default:r.default}}const i={...s._asyncData[n]};delete i._default,i.refresh=i.execute=(m={})=>{if(s._asyncDataPromises[n]){if(ze(m.dedupe??r.dedupe))return s._asyncDataPromises[n];s._asyncDataPromises[n].cancelled=!0}if((m._initial||s.isHydrating&&m._initial!==!1)&&v())return Promise.resolve(r.getCachedData(n,s));i.pending.value=!0,i.status.value="pending";const D=new Promise((b,c)=>{try{b(u(s))}catch(z){c(z)}}).then(async b=>{if(D.cancelled)return s._asyncDataPromises[n];let c=b;r.transform&&(c=await r.transform(b)),r.pick&&(c=Oe(c,r.pick)),s.payload.data[n]=c,i.data.value=c,i.error.value=M.errorValue,i.status.value="success"}).catch(b=>{if(D.cancelled)return s._asyncDataPromises[n];i.error.value=de(b),i.data.value=ce(r.default()),i.status.value="error"}).finally(()=>{D.cancelled||(i.pending.value=!1,delete s._asyncDataPromises[n])});return s._asyncDataPromises[n]=D,s._asyncDataPromises[n]},i.clear=()=>Pe(s,n);const E=()=>i.refresh({_initial:!0}),L=r.server!==!1&&s.payload.serverRendered;{const m=pe();if(m&&!m._nuxtOnBeforeMountCbs){m._nuxtOnBeforeMountCbs=[];const c=m._nuxtOnBeforeMountCbs;ie(()=>{c.forEach(z=>{z()}),c.splice(0,c.length)}),J(()=>c.splice(0,c.length))}L&&s.isHydrating&&(i.error.value||v())?(i.pending.value=!1,i.status.value=i.error.value?"error":"success"):m&&(s.payload.serverRendered&&s.isHydrating||r.lazy)&&r.immediate?m._nuxtOnBeforeMountCbs.push(E):r.immediate&&E();const D=ue();if(r.watch){const c=Q(r.watch,()=>i.refresh());D&&K(c)}const b=s.hook("app:data:refresh",async c=>{(!c||c.includes(n))&&await i.refresh()});D&&K(b)}const U=Promise.resolve(s._asyncDataPromises[n]).then(()=>i);return Object.assign(U,i),U}function Pe(e,a){a in e.payload.data&&(e.payload.data[a]=void 0),a in e.payload._errors&&(e.payload._errors[a]=M.errorValue),e._asyncData[a]&&(e._asyncData[a].data.value=void 0,e._asyncData[a].error.value=M.errorValue,e._asyncData[a].pending.value=!1,e._asyncData[a].status.value="idle"),a in e._asyncDataPromises&&(e._asyncDataPromises[a]&&(e._asyncDataPromises[a].cancelled=!0),e._asyncDataPromises[a]=void 0)}function Oe(e,a){const n={};for(const p of a)n[p]=e[p];return n}function Se(e,a,n){const[p={},r]=typeof a=="string"?[{},a]:[a,n],s=x(()=>T(e)),u=p.key||me([r,typeof s.value=="string"?s.value:"",...Te(p)]);if(!u||typeof u!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+u);const w=u===r?"$f"+u:u;if(!p.baseURL&&typeof s.value=="string"&&s.value[0]==="/"&&s.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:o,lazy:v,default:i,transform:E,pick:L,watch:U,immediate:O,getCachedData:m,deep:D,dedupe:b,...c}=p,z=fe({...be,...c,cache:typeof p.cache=="boolean"?void 0:p.cache}),j={server:o,lazy:v,default:i,transform:E,pick:L,immediate:O,getCachedData:m,deep:D,dedupe:b,watch:U===!1?[]:[z,s,...U||[]]};let _;return Ce(w,()=>{var g;(g=_==null?void 0:_.abort)==null||g.call(_),_=typeof AbortController<"u"?new AbortController:{};const h=T(p.timeout);let C;return h&&(C=setTimeout(()=>_.abort(),h),_.signal.onabort=()=>clearTimeout(C)),(p.$fetch||globalThis.$fetch)(s.value,{signal:_.signal,...z}).finally(()=>{clearTimeout(C)})},j)}function Te(e){var n;const a=[((n=T(e.method))==null?void 0:n.toUpperCase())||"GET",T(e.baseURL)];for(const p of[e.params||e.query]){const r=T(p);if(!r)continue;const s={};for(const[u,w]of Object.entries(r))s[T(u)]=T(w);a.push(s)}return a}function Ee(){const e=k([]);function a(r){const s=[...r].map(u=>new Le(u)).filter(u=>!n(u.id));e.value=e.value.concat(s)}function n(r){return e.value.some(({id:s})=>s===r)}function p(r){const s=e.value.indexOf(r);s>-1&&e.value.splice(s,1)}return{files:e,addFiles:a,removeFile:p}}class Le{constructor(a){R(this,"file");R(this,"id");R(this,"url");R(this,"status");this.file=a,this.id=`${a.name}-${a.size}-${a.lastModified}-${a.type}`,this.url=URL.createObjectURL(a),this.status=null}}const Me=ye({name:"ContentElementApplicationForm",props:{data:{type:Object,required:!1,default:()=>{}},modelValue:{type:Boolean,required:!0,default:!1}},emits:["update:modelValue"],async setup(e,{emit:a}){const n=Ve(),{privacyPolicy:p}=ve(n);let r="";e.data&&e.data.id?r=e.data.id:r="initiativ";const s=k({jobId:r,salutation:"",email:"",telephone:"",firstname:"",lastname:"",contacttime:"",contacttime_from:"",contacttime_to:"",driverlicense:"",driverlicense_information:"",entrydate:"",entrydate_date:"",message:"",privacy_policy:!1,files:[],form:"application"}),u=k(!1),w=k(!1),o=k(!1),{t:v}=he(),i=k([]),E=x(()=>({email:{required:N,email:ke},telephone:{required:N},lastname:{required:N},privacy_policy:{sameAs:h=>h===!0}})),L=Fe(E,s),{files:U,addFiles:O,removeFile:m}=Ee(),D=k(3),b=k(null),c=()=>{if(b.value&&!navigator.userAgent.includes("Firefox")){const h=parseInt(window.getComputedStyle(b.value).lineHeight);return Math.ceil((parseInt(b.value.scrollHeight)-h)/h)}return 3};function z(h){O(h.target.files),h.target.value=null}function j(){console.log(i.value),i.value.click()}async function _(){if(w.value=!0,await L.value.$validate()){for(let g of U.value)s.value.files.push(g.file);const C=new FormData;console.log("formData.value",s.value);for(const g in s.value)g==="files"?s.value[g].forEach((H,q)=>{C.append(`${g}[${q}]`,H)}):s.value[g]instanceof Array?s.value[g].forEach((H,q)=>{C.append(`${g}[${q}]`,H)}):C.append(g,s.value[g]);const{error:I}=await Se("/api/jobs/application",{method:"POST",body:C},"$PbVWeGpeWU");console.log(I),I.value?o.value=!0:(u.value=!0,window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"form-submission",formName:"application"})),w.value=!1}}const W=()=>{a("update:modelValue",!1)};return J(()=>{Ue({htmlAttrs:{class:""}})}),Q(()=>e.modelValue,h=>{h?(console.log("newValue",!0),document.documentElement.classList.add("noscroll")):document.documentElement.classList.remove("noscroll")}),{formData:s,v$:L,t:v,send:u,onInputChange:z,files:U,addFiles:O,removeFile:m,numRows:D,getNumRows:c,privacyPolicy:p,onSubmit:_,closeOverlay:W,showSubmitErrorMessage:o,openUploadWindow:j,dropArea:i,isSubmitting:w}}}),Re={class:"col-span-10 col-start-5 bg-white application-container rounded h-max"},Be={class:"<md:block <md:p-4 grid grid-cols-10 pt-16 pb-20"},je={class:"left-content col-start-2 col-span-4"},Ie=t("span",{class:"font-iconfont cursor-pointer md:text-32px text-24px"},"",-1),He={class:"mb-0"},qe={key:0,class:"col-span-4 col-start-5 mt-20"},Ne={class:"md:gap-6"},We={class:"mt-4 mb-0"},Ke=["data-hover"],Ae={key:1,class:"mt-10 md:mt-20"},Ge={key:0,class:"mb-4"},Ze={key:0},Xe={key:1},Ye={key:2},Je={class:"right-content col-start-6 col-span-4 <md:mt-8"},Qe={key:0,class:"col-span-4 col-start-5"},xe={class:"grid md:grid-cols-2 md:gap-6"},et={class:"relative z-0 w-full mb-4 group"},tt={id:"salutation",class:"block py-2.5 px-0 w-full bg-transparent flex items-center"},at={class:"ml-2",for:"male"},ot={class:"ml-2",for:"female"},st={class:"ml-2",for:"divers"},rt={class:"peer-focus:font-medium z-10 hidden absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 text-black/30 peer-focus:text-primary",for:"salutation"},lt={class:"<md:block grid !mb-0 md:grid-cols-2 md:gap-6"},nt={class:"relative z-0 w-full mb-4 group"},it={class:"peer-focus:font-medium z-10 absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 text-black/30 peer-focus:text-primary",for:"firstname"},dt={class:"relative z-0 w-full mb-4 group"},ct=t("strong",null,"*",-1),pt={class:"grid !mb-0 md:grid-cols-2 md:gap-6"},ut={class:"relative z-0 w-full mb-4 group"},mt=t("strong",null,"*",-1),ft={class:"relative z-0 w-full mb-4 group"},bt=t("strong",null,"*",-1),yt=t("hr",{class:"mt-20 <md:mt-10 w-1/3 bg-black/20 mx-auto"},null,-1),vt={class:"upload-section mt-12.5"},ht={class:"mb-4"},gt={key:0},wt={ref:"dropArea",class:"flex justify-center items-center w-full h-full cursor-pointer",for:"file-input"},Dt={key:0,class:"<md:hidden"},_t={key:1,class:"flex flex-col justify-center items-center gap-y-2 cursor-pointer"},$t={class:"text-center <md:hidden"},Ft={class:"<md:hidden"},kt=["data-hover"],Vt=t("div",{class:"mt-4"},null,-1),Ut=t("hr",{class:"mt-20 <md:mt-10 w-1/3 bg-black/20 mx-auto"},null,-1),zt={class:"contact-section mt-16"},Ct={class:"mb-4 relative"},Pt={class:"optional text-neutral !text-base absolute right-0 bottom-0 <md:top-6"},Ot={class:"relative z-0 mb-4 group"},St={id:"contacttime",class:"block py-2.5 px-0 w-full bg-transparent"},Tt={class:"flex items-baseline"},Et={class:"ml-4",for:"morning"},Lt={class:"flex items-baseline"},Mt={class:"ml-4",for:"afternoon"},Rt={class:"flex items-baseline"},Bt={class:"ml-4",for:"alltime"},jt={class:"flex items-baseline"},It={class:"ml-4",for:"wishtime"},Ht=t("br",{class:"md:hidden"},null,-1),qt={class:"peer-focus:font-medium z-10 hidden absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 text-black/30 peer-focus:text-primary",for:"contacttime"},Nt={class:"mb-4 relative"},Wt={class:"optional text-neutral !text-base absolute right-0 bottom-0 <md:top-6"},Kt={class:"relative z-0 mb-4 group"},At={id:"driverlicense",class:"block py-2.5 px-0 w-full bg-transparent"},Gt={class:"flex items-center"},Zt={class:"ml-4",for:"yes"},Xt={class:"flex items-center"},Yt={class:"ml-4",for:"no"},Jt={class:"peer-focus:font-medium z-10 hidden absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 text-black/30 peer-focus:text-primary",for:"driverlicense"},Qt={class:"relative z-0 w-full mb-4 group"},xt={class:"peer-focus:font-medium z-10 absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 text-black/30 peer-focus:text-primary",for:"driverlicense_information"},ea={class:"mb-4 mt-16 relative"},ta={class:"optional text-neutral !text-base absolute right-0 bottom-0 <md:top-6"},aa={class:"relative z-0 mb-4 group"},oa={id:"driverlicense",class:"block py-2.5 px-0 w-full bg-transparent"},sa={class:"flex items-center"},ra={class:"ml-4",for:"now"},la={class:"flex items-center"},na={class:"ml-4",for:"later"},ia={class:"peer-focus:font-medium z-10 hidden absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 text-black/30 peer-focus:text-primary",for:"driverlicense"},da=t("hr",{class:"mt-20 <md:mt-10 w-1/3 bg-black/20 mx-auto"},null,-1),ca={class:"message-section"},pa={class:"mt-16"},ua={class:"relative z-0 w-full mb-4 group"},ma=["rows"],fa={class:"privacy-section mt-4"},ba={class:"flex items-center mb-4 privacy"},ya=["innerHTML"],va={class:"submit-section"},ha=t("hr",{class:"mt-20 <md:mt-10 w-1/3 bg-black/20 mx-auto"},null,-1),ga={class:"my-12"},wa=["disabled"],Da=["data-hover"],_a={key:0,class:"text-danger mt-4"},$a=t("hr",{class:"bg-black/20"},null,-1);function Fa(e,a,n,p,r,s){const u=ae,w=oe;return f(),A(_e,{name:"overlay"},{default:G(()=>[d(t("div",{id:"application-form",class:"!fixed inset-0 bg-black/50 z-100 top-gap h-auto !m-0 <md:block grid grid-cols-14 container-fluid overflow-y-auto",onClick:a[26]||(a[26]=Z(o=>e.closeOverlay(),["self"]))},[t("div",Re,[t("div",Be,[t("div",je,[t("div",{class:"flex items-center gap-4 cursor-pointer",onClick:a[0]||(a[0]=(...o)=>e.closeOverlay&&e.closeOverlay(...o))},[Ie,t("p",He,l(e.$t("applicationForm.close")),1)]),e.send?(f(),y("div",qe,[t("div",Ne,[t("h2",null,l(e.$t("applicationForm.success.title")),1),t("p",We,l(e.$t("applicationForm.success.text")),1),t("button",{class:"btn-primary mt-8",onClick:a[1]||(a[1]=(...o)=>e.closeOverlay&&e.closeOverlay(...o))},[t("span",{"data-hover":e.$t("applicationForm.success.buttonlabel")},l(e.$t("applicationForm.success.buttonlabel")),9,Ke)])])])):S("",!0),e.send?S("",!0):(f(),y("div",Ae,[e.data&&e.data.employmentTypeParsed&&e.data.address.city?(f(),y("p",Ge,[(f(!0),y(X,null,Y(e.data.employmentTypeParsed,(o,v)=>(f(),y("span",{key:v},[$(l(o),1),v<e.data.employmentTypeParsed.length-1?(f(),y("span",Ze,", ")):S("",!0)]))),128)),$(" | "+l(e.data.address.city),1)])):S("",!0),e.data&&e.data.title?(f(),y("h3",Xe,l(e.data.title),1)):(f(),y("h3",Ye,"Initiativbewerbung"))]))]),t("div",Je,[e.send?S("",!0):(f(),y("div",Qe,[t("div",xe,[t("div",et,[t("div",tt,[d(t("input",{id:"male","onUpdate:modelValue":a[2]||(a[2]=o=>e.formData.salutation=o),name:"salutation",type:"radio",value:"male"},null,512),[[F,e.formData.salutation]]),t("label",at,l(e.t("applicationForm.salutation.male")),1),d(t("input",{id:"female","onUpdate:modelValue":a[3]||(a[3]=o=>e.formData.salutation=o),class:"ml-4",name:"salutation",type:"radio",value:"female"},null,512),[[F,e.formData.salutation]]),t("label",ot,l(e.t("applicationForm.salutation.female")),1),d(t("input",{id:"divers","onUpdate:modelValue":a[4]||(a[4]=o=>e.formData.salutation=o),class:"ml-4",name:"salutation",type:"radio",value:"divers"},null,512),[[F,e.formData.salutation]]),t("label",st,l(e.t("applicationForm.salutation.divers")),1)]),t("label",rt,l(e.t("applicationForm.salutation.label")),1)])]),t("div",lt,[t("div",nt,[d(t("input",{id:"firstname","onUpdate:modelValue":a[5]||(a[5]=o=>e.formData.firstname=o),class:"block py-2.5 px-0 w-full text-sm text-black bg-transparent border-0 border-b-1 border-black/30 appearance-none focus:outline-none focus:ring-0 focus:border-primary peer",name:"firstname",placeholder:"",type:"text"},null,512),[[V,e.formData.firstname]]),t("label",it,l(e.t("applicationForm.firstname.label")),1)]),t("div",dt,[d(t("input",{id:"lastname","onUpdate:modelValue":a[6]||(a[6]=o=>e.formData.lastname=o),class:P([{"text-black bg-transparent border-0 border-b-1 border-black/30 appearance-none focus:outline-none focus:ring-0 focus:border-primary peer":!e.v$.lastname.$error,"text-red-700 bg-transparent border-0 border-b-1 border-red-300 appearance-none focus:outline-none focus:ring-0 focus:border-red-500 peer":e.v$.lastname.$error,"border-[#42d392] ":!e.v$.lastname.$invalid},"block py-2.5 px-0 w-full text-sm"]),name:"lastname",placeholder:" ",required:"",type:"text"},null,2),[[V,e.formData.lastname]]),t("label",{class:P([{"text-black/30 peer-focus:text-primary":!e.v$.lastname.$error,"text-red-700 peer-focus:text-red-500 ":e.v$.lastname.$error},"peer-focus:font-medium z-10 absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6"]),for:"lastname"},[$(l(e.t("applicationForm.lastname.label")),1),ct],2),d(t("span",{class:"mt-2 text-red-600 dark:text-red-500"},l(e.t("applicationForm.lastname.error")),513),[[B,e.v$.lastname&&e.v$.lastname.$error]])])]),t("div",pt,[t("div",ut,[d(t("input",{id:"telephone","onUpdate:modelValue":a[7]||(a[7]=o=>e.formData.telephone=o),class:P([{"text-black bg-transparent border-0 border-b-1 border-black/30 appearance-none focus:outline-none focus:ring-0 focus:border-primary peer":!e.v$.telephone.$error,"text-red-700 bg-transparent border-0 border-b-1 border-red-300 appearance-none focus:outline-none focus:ring-0 focus:border-red-500 peer":e.v$.telephone.$error},"block py-2.5 px-0 w-full text-sm"]),name:"telephone",placeholder:" ",required:"",type:"telephone"},null,2),[[V,e.formData.telephone]]),t("label",{class:P([{"text-black/30 peer-focus:text-primary":!e.v$.telephone.$error,"text-red-700 peer-focus:text-red-500 ":e.v$.telephone.$error},"peer-focus:font-medium z-10 absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6"]),for:"telephone"},[$(l(e.t("applicationForm.telephone.label")),1),mt],2),d(t("span",{class:"mt-2 text-red-600 dark:text-red-500"},l(e.t("applicationForm.telephone.error")),513),[[B,e.v$.telephone&&e.v$.telephone.$error]])]),t("div",ft,[d(t("input",{id:"email","onUpdate:modelValue":a[8]||(a[8]=o=>e.formData.email=o),class:P([{"text-black bg-transparent border-0 border-b-1 border-black/30 appearance-none focus:outline-none focus:ring-0 focus:border-primary peer":!e.v$.email.$error,"text-red-700 bg-transparent border-0 border-b-1 border-red-300 appearance-none focus:outline-none focus:ring-0 focus:border-red-500 peer":e.v$.email.$error,"border-[#42d392] ":!e.v$.email.$invalid},"block py-2.5 px-0 w-full text-sm"]),name:"email",placeholder:" ",required:"",type:"email"},null,2),[[V,e.formData.email]]),t("label",{class:P([{"text-black/30 peer-focus:text-primary":!e.v$.email.$error,"text-red-700 peer-focus:text-red-500 ":e.v$.email.$error},"peer-focus:font-medium z-10 absolute origin-left duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6"]),for:"email"},[$(l(e.t("applicationForm.email.label")),1),bt],2),d(t("span",{class:"mt-2 text-red-600 dark:text-red-500"},l(e.t("applicationForm.email.error")),513),[[B,e.v$.email&&e.v$.email.$error]])])]),yt,t("div",vt,[t("h3",ht,l(e.t("applicationForm.upload.title")),1),e.data&&e.data.address.email?(f(),y("p",gt,l(e.t("applicationForm.upload.text",{email:e.data.address.email})),1)):S("",!0),we(u,{class:"drop-area",onFilesDropped:e.addFiles},{default:G(({dropZoneActive:o})=>[t("label",wt,[o?(f(),y("span",Dt,[t("span",null,l(e.$t("applicationForm.upload.drop")),1)])):(f(),y("span",_t,[t("span",$t,l(e.$t("applicationForm.upload.dragdrop")),1),t("span",Ft,l(e.$t("applicationForm.upload.or")),1),t("button",{class:"btn btn-primary fill white",onClick:a[9]||(a[9]=v=>e.openUploadWindow())},[t("span",{"data-hover":e.$t("applicationForm.upload.upload")},l(e.$t("applicationForm.upload.upload")),9,kt)])])),t("input",{id:"file-input",multiple:"",type:"file",onChange:a[10]||(a[10]=(...v)=>e.onInputChange&&e.onInputChange(...v))},null,32)],512)]),_:1},8,["onFilesDropped"]),Vt,(f(!0),y(X,null,Y(e.files,o=>(f(),A(w,{key:o.id,file:o,onRemove:e.removeFile},null,8,["file","onRemove"]))),128))]),Ut,t("div",zt,[t("h3",Ct,[$(l(e.$t("applicationForm.contacttime.title")),1),t("span",Pt,l(e.$t("applicationForm.optional")),1)]),t("div",Ot,[t("div",St,[t("div",Tt,[d(t("input",{id:"morning","onUpdate:modelValue":a[11]||(a[11]=o=>e.formData.contacttime=o),name:"contacttime",type:"radio",value:"morning"},null,512),[[F,e.formData.contacttime]]),t("label",Et,l(e.t("applicationForm.contacttime.morning")),1)]),t("div",Lt,[d(t("input",{id:"afternoon","onUpdate:modelValue":a[12]||(a[12]=o=>e.formData.contacttime=o),name:"contacttime",type:"radio",value:"afternoon"},null,512),[[F,e.formData.contacttime]]),t("label",Mt,l(e.t("applicationForm.contacttime.afternoon")),1)]),t("div",Rt,[d(t("input",{id:"alltime","onUpdate:modelValue":a[13]||(a[13]=o=>e.formData.contacttime=o),name:"contacttime",type:"radio",value:"alltime"},null,512),[[F,e.formData.contacttime]]),t("label",Bt,l(e.t("applicationForm.contacttime.alltime")),1)]),t("div",jt,[d(t("input",{id:"wishtime","onUpdate:modelValue":a[14]||(a[14]=o=>e.formData.contacttime=o),name:"contacttime",type:"radio",value:"wish"},null,512),[[F,e.formData.contacttime]]),t("label",It,[$(l(e.t("applicationForm.contacttime.desiredtime"))+": "+l(e.t("applicationForm.contacttime.from"))+" ",1),Ht,d(t("input",{id:"contacttime_from","onUpdate:modelValue":a[15]||(a[15]=o=>e.formData.contacttime_from=o),name:"contacttime_from",type:"time"},null,512),[[V,e.formData.contacttime_from]]),$(" "+l(e.t("applicationForm.contacttime.and"))+" ",1),d(t("input",{id:"contacttime_to","onUpdate:modelValue":a[16]||(a[16]=o=>e.formData.contacttime_to=o),name:"contacttime_to",type:"time"},null,512),[[V,e.formData.contacttime_to]])])])]),t("label",qt,l(e.t("applicationForm.contacttime.label")),1)]),t("h3",Nt,[$(l(e.$t("applicationForm.driverlicense.title")),1),t("span",Wt,l(e.$t("applicationForm.optional")),1)]),t("div",Kt,[t("div",At,[t("div",Gt,[d(t("input",{id:"yes","onUpdate:modelValue":a[17]||(a[17]=o=>e.formData.driverlicense=o),name:"driverlicense",type:"radio",value:"yes"},null,512),[[F,e.formData.driverlicense]]),t("label",Zt,l(e.t("applicationForm.driverlicense.yes")),1)]),t("div",Xt,[d(t("input",{id:"no","onUpdate:modelValue":a[18]||(a[18]=o=>e.formData.driverlicense=o),name:"driverlicense",type:"radio",value:"no"},null,512),[[F,e.formData.driverlicense]]),t("label",Yt,l(e.t("applicationForm.driverlicense.no")),1)])]),t("label",Jt,l(e.t("applicationForm.driverlicense.label")),1)]),t("div",Qt,[d(t("input",{id:"driverlicense_information","onUpdate:modelValue":a[19]||(a[19]=o=>e.formData.driverlicense_information=o),class:"block py-2.5 px-0 w-full text-sm text-black bg-transparent border-0 border-b-1 border-black/30 appearance-none focus:outline-none focus:ring-0 focus:border-primary peer",name:"driverlicense_information",placeholder:"",type:"text"},null,512),[[V,e.formData.driverlicense_information]]),t("label",xt,l(e.t("applicationForm.driverlicense.information.label")),1)]),t("h3",ea,[$(l(e.t("applicationForm.entrydate.title"))+": ",1),t("span",ta,l(e.$t("applicationForm.optional")),1)]),t("div",aa,[t("div",oa,[t("div",sa,[d(t("input",{id:"now","onUpdate:modelValue":a[20]||(a[20]=o=>e.formData.entrydate=o),name:"entrydate",type:"radio",value:"now"},null,512),[[F,e.formData.entrydate]]),t("label",ra,l(e.t("applicationForm.entrydate.now")),1)]),t("div",la,[d(t("input",{id:"later","onUpdate:modelValue":a[21]||(a[21]=o=>e.formData.entrydate=o),name:"entrydate",type:"radio",value:"later"},null,512),[[F,e.formData.entrydate]]),t("label",na,[$(l(e.t("applicationForm.entrydate.later"))+" ",1),d(t("input",{id:"entrydate_date","onUpdate:modelValue":a[22]||(a[22]=o=>e.formData.entrydate_date=o),class:"ml-2",name:"entrydate_date",type:"date"},null,512),[[V,e.formData.entrydate_date]])])])]),t("label",ia,l(e.t("applicationForm.driverlicense.label")),1)])]),da,t("div",ca,[t("h3",pa,l(e.t("applicationForm.message.title")),1),t("div",ua,[d(t("textarea",{id:"message",ref:"messageField","onUpdate:modelValue":a[23]||(a[23]=o=>e.formData.message=o),rows:e.numRows,class:"block py-2.5 px-0 w-full text-sm auto-height-textarea text-black bg-transparent border-0 border-b-1 border-black/30 appearance-none focus:outline-none focus:ring-0 focus:border-primary peer",name:"message",placeholder:" "},null,8,ma),[[V,e.formData.message]])])]),t("div",fa,[t("div",ba,[d(t("input",{id:"privacy_policy","onUpdate:modelValue":a[24]||(a[24]=o=>e.formData.privacy_policy=o),class:P([{"border-black/30 ring-primary":!e.v$.privacy_policy.$error,"border-red-500 focus:ring-red-500":e.v$.privacy_policy.$error},"min-w-4 w-4 h-4 text-primary accent-black bg-gray-100 rounded ring-2"]),type:"checkbox"},null,2),[[De,e.formData.privacy_policy]]),t("label",{class:P([{"text-black":!e.v$.privacy_policy.$error,"text-red-700":e.v$.privacy_policy.$error},"ml-2 leading-6 font-medium rte privacy_policy"]),for:"privacy_policy",innerHTML:e.t("contactForm.privacy_policy.label",{link:`${e.privacyPolicy.slug}`})},null,10,ya)])]),t("div",va,[ha,t("div",ga,[t("h3",null,l(e.t("applicationForm.endtitle")),1),t("button",{disabled:e.isSubmitting,class:"btn-primary mt-4",href:"#",type:"button",onClick:a[25]||(a[25]=Z((...o)=>e.onSubmit&&e.onSubmit(...o),["prevent"]))},[t("span",{"data-hover":e.t("applicationForm.submit")},l(e.t("applicationForm.submit")),9,Da)],8,wa),e.showSubmitErrorMessage?(f(),y("p",_a,"Beim Absenden ist ein Fehler aufgetreten - bitte versuchen Sie es erneut.")):S("",!0)]),$a])]))])])])],512),[[B,e.modelValue]])]),_:1})}const Sa=ge(Me,[["render",Fa]]);export{Sa as default};