(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8282],{88684:function(e,t,a){Promise.resolve().then(a.t.bind(a,88475,23)),Promise.resolve().then(a.t.bind(a,48873,23)),Promise.resolve().then(a.bind(a,89126)),Promise.resolve().then(a.bind(a,58511)),Promise.resolve().then(a.bind(a,2211))},31183:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var a in t)Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}(t,{unstable_getImgProps:function(){return unstable_getImgProps},default:function(){return c}});let r=a(97295),s=a(65068),n=a(26748),i=a(88475),l=r._(a(30578)),unstable_getImgProps=e=>{(0,n.warnOnce)("Warning: unstable_getImgProps() is experimental and may change or be removed at any time. Use at your own risk.");let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,a]of Object.entries(t))void 0===a&&delete t[e];return{props:t}},c=i.Image},89126:function(e,t,a){"use strict";a.r(t);var r=a(54471),s=a(43577),n=a(41769),i=a(61979),l=a(88280),c=a.n(l);async function getData(e){let{data:t}=await (0,s.k7)("/articles?populate=deep".concat(e?"&filters[slug][$ne]=".concat(e):""),"GET");return t&&t.length>0?t:null}t.default=e=>{let{title:t,titleClassName:a,containerClassName:s}=e,[l,o]=(0,n.useState)([]),d=(0,i.useParams)();return(0,n.useEffect)(()=>{let fetchData=async()=>{var e;let t=await getData(null==d?void 0:null===(e=d.slug)||void 0===e?void 0:e.toString());if(t){let e=function(e){let t=e.length,a;for(;0!==t;)a=Math.floor(Math.random()*t),t--,[e[t],e[a]]=[e[a],e[t]];return e}([...t]);o(e.slice(0,3))}};fetchData()},[d.slug]),(0,r.jsxs)("div",{className:"content-wrapper md:w-[700px] lg:w-[880px] px-4 md:!px-0 mb-24 ".concat(s),children:[(0,r.jsx)("p",{className:"pb-4 font-serif jobinfo-headline ".concat(a),children:t||"Weitere Tipps f\xfcr dich"}),l.length>0&&l.map((e,t)=>(0,r.jsxs)(c(),{href:"/blog/".concat(e.attributes.Slug),className:"border-b border-secondary py-6 cursor-pointer group flex flex-row gap-1 items-center justify-between",children:[(0,r.jsx)("p",{dangerouslySetInnerHTML:{__html:e.attributes.Title},className:"font-bold text-primary group-hover:text-primary_light"}),(0,r.jsx)(c(),{href:"/blog/".concat(e.attributes.Slug),className:"font-bold min-w-[9rem] rounded-[10px] px-[25px] py-[9px] mr-4 bg-primary_light group-hover:bg-primary",children:(0,r.jsx)("p",{className:"text-primary text-sm group-hover:text-white text-center",children:"JETZT LESEN"})})]},t))]})}},58511:function(e,t,a){"use strict";a.r(t);var r=a(54471),s=a(43577),n=a(19409),i=a.n(n),l=a(41769);let PdfDownload=async e=>{let{job:t}=e,[a,n]=(0,l.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"relative flex items-center justify-center py-12 mt-12 bg-center bg-no-repeat bg-contain cursor-pointer",style:{backgroundImage:'url("/scribbles/marker-8.svg")',backgroundSize:"contain",transform:"rotate(200deg)"},onClick:async()=>{n(!0);let e=await (0,s.q5)({url:"".concat(window.location.href,"/pdf")});if(e){let a=new Blob([e],{type:"application/pdf"}),r=document.createElement("a");r.href=window.URL.createObjectURL(a),r.download="".concat(t.jobname,".pdf"),r.click()}n(!1)},children:a?(0,r.jsxs)("div",{className:"z-10 flex flex-col items-center justify-center w-full h-full gap-2 py-8 rotate-[160deg]",children:[(0,r.jsx)(i(),{src:"/icons/clock.svg",alt:"pdf download",width:50,height:50,className:"z-10"}),(0,r.jsx)("p",{className:"z-10 font-bold",children:"wird generiert..."})]}):(0,r.jsxs)("div",{className:"z-10 flex flex-col items-center justify-center w-full h-full gap-2 py-8 rotate-[160deg]",children:[(0,r.jsx)(i(),{src:"/icons/pdf.svg",alt:"pdf download",width:50,height:50,className:"z-10"}),(0,r.jsx)("p",{className:"z-10 font-bold",children:"PDF Download"})]})}),(0,r.jsx)(i(),{src:"/icons/clock.svg",alt:"pdf download",width:50,height:50,className:"z-10 invisible"})]})};t.default=PdfDownload},2211:function(e,t,a){"use strict";a.r(t);var r=a(54471),s=a(79014),n=a(79720),i=a(86325),l=a(41769),c=a(61979),o=a(89550),d=a.n(o);let hashValue=e=>d().createHash("sha256").update(e).digest("hex"),generateRandomString=()=>d().randomBytes(12).toString("hex");t.default=function(e){let{modalStyle:t}=e,{register:a,handleSubmit:o,setValue:d,formState:{errors:f}}=(0,s.cI)(),{jobid:u}=(0,c.useParams)(),m=(0,c.useRouter)(),{acceptedFiles:p,getRootProps:x,getInputProps:h}=(0,n.uI)({maxFiles:1,onDrop:e=>{let[t,a,r]=e[0].name.split(".");d("file",e[0]),d("files.[0].name",t),d("files.[0].ext",a),d("files.[0].desc",r||"")}}),[b,g]=(0,l.useState)(""),[y,j]=(0,l.useState)(!1),[w,N]=(0,l.useState)();(0,l.useEffect)(()=>{if(0===p.length)return;d("file",p[0]);let[e,t,a]=p[0].name.split(".");d("files.[0].name",e),d("files.[0].ext",t),d("files.[0].desc",a||"")},[p]);let fileToDataURL=e=>new Promise((t,a)=>{let r=new FileReader;r.onload=function(e){var a;t(null===(a=e.target)||void 0===a?void 0:a.result)},r.onerror=function(e){a(Error("Error reading file: "+e))},r.readAsDataURL(e)}),onSubmit=async e=>{try{let t;if(N(void 0),j(!0),e.file&&(t=await fileToDataURL(e.file)),e.phone&&!/^[+\d\s().-]*$/.test(e.phone)){N("Bitte geben Sie eine g\xfcltige Telefonnummer ein."),j(!1);return}if(!/^(0[1-9]|[12][0-9]|3[01])\.(0[1-9]|1[012])\.(19|20)\d\d$/.test(e.birthday)){N("Bitte geben Sie Ihren Geburtstag in dieser Form ein TT.MM.JJJJ"),j(!1);return}let a={firstName:e.firstName,lastName:e.lastName,email:e.email,phone:e.phone,jobId:u?parseInt(u.toString()):void 0,"h-captcha-response":b,files:e.files,birthDate:e.birthday,file:t},r=await fetch("".concat("https://cms.aps-personal.com","/api/form-submissions"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer 3902c130fcf46e830d4529b84437af0424ff756343a7a7eba7fe5c56eba341c9cedd52d3e615cc84cba3041c5b8b9499027b81a86ae603bf737e576c02236f6b51c6b847dcf49b3ee33c2275eed1734e2e7651af1fcdc817cf12d3c2602090d44c7e9e962d6968fca88876a5071597437e2508eb3f339a1e1bddbab734ee878a"},body:JSON.stringify(a)});r.ok?m.push("/erfolgreich"):N("Ein Fehler ist aufgetreten. Bitte \xfcberpr\xfcfen Sie Ihre Eingabe.");try{let t=hashValue(e.email),a=hashValue(e.phone),r=generateRandomString();window.ttq.identify({email:t,phone_number:a,external_id:r})}catch(e){console.log(e)}}catch(e){N("Ein Fehler ist aufgetreten. Bitte \xfcberpr\xfcfen Sie Ihre Eingabe."),j(!1)}j(!1)};return(0,r.jsxs)("form",{className:"flex flex-col ".concat(t?"":"items-center"),onSubmit:o(onSubmit),children:[(0,r.jsxs)("div",{className:"flex ".concat(t?"flex-row gap-4":"flex-col justify-center w-full"),children:[(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[(0,r.jsx)("input",{...a("firstName",{required:!0}),placeholder:"Vorname*",className:"input input-primary w-full ".concat(t?"":"md:max-w-[207px]"," my-2")}),f.firstName&&(0,r.jsx)("p",{className:"text-xs text-red-500 ".concat(t?"self-start":""),children:"Dieses Feld ist erforderlich"})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center w-full",children:[(0,r.jsx)("input",{...a("lastName",{required:!0}),placeholder:"Nachname*",className:"input input-primary w-full ".concat(t?"":"md:max-w-[207px]"," my-2")}),f.lastName&&(0,r.jsx)("p",{className:"text-xs text-red-500 ".concat(t?"self-start":""),children:"Dieses Feld ist erforderlich"})]})]}),(0,r.jsx)("input",{type:"email",...a("email",{required:!0}),placeholder:"E-Mail-Adresse*",className:"input input-primary w-full ".concat(t?"":"md:max-w-[207px]"," my-2")}),f.email&&(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Dieses Feld ist erforderlich"}),(0,r.jsx)("input",{...a("phone",{required:!0}),placeholder:"Telefonnummer*",className:"input input-primary w-full ".concat(t?"":"md:max-w-[207px]"," my-2")}),f.phone&&(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Dieses Feld ist erforderlich"}),(0,r.jsx)("input",{placeholder:"Geburtstag (01.01.2000)*",className:"input input-primary w-full ".concat(t?"":"md:max-w-[207px]"," my-2"),...a("birthday",{required:!0,pattern:/^(0[1-9]|[12][0-9]|3[01])\.(0[1-9]|1[012])\.(19|20)\d\d$/})}),f.birthday&&(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Geben Sie Ihren Geburtstag in der Form TT.MM.JJJJ ein."}),(0,r.jsxs)("div",{...x(),className:"text-sm text-primary w-full text-opacity-40 rounded-lg leading-[16px] input !h-auto input-primary border-dashed text-center p-4 my-2 cursor-pointer ".concat(t?"":"md:max-w-[207px]"),children:[(0,r.jsx)("input",{...h()}),(0,r.jsxs)("p",{children:[(0,r.jsx)("strong",{children:"Dokumente hochladen"}),(0,r.jsx)("br",{}),"max. 5 MB pro Dokument (.PDF, .DOCX)"]})]}),(0,r.jsx)("ul",{children:p.map(e=>(0,r.jsxs)("li",{children:[e.path," - ",e.size," bytes"]},e.path))}),(0,r.jsx)("div",{className:"w-full form-control",children:(0,r.jsxs)("label",{className:"flex justify-start cursor-pointer label ".concat(t?"":"md:px-6"),children:[(0,r.jsx)("input",{type:"checkbox",className:"mr-2 checkbox self-start mt-1 checkbox-sm rounded-[2px] border-primary w-[13px] h-[13px]",...a("dsgvo",{required:!0})}),(0,r.jsxs)("span",{className:"label-text text-sm leading-[16px]",children:["Ich habe die"," ",(0,r.jsx)("a",{href:"/datenschutz",target:"_blank",className:"underline",children:"Datenschutzrichtlinien"})," ","gelesen und bin mit den"," ",(0,r.jsx)("a",{href:"/datenschutz",target:"_blank",className:"underline",children:"Nutzungbedingungen"})," ","einverstanden.*"]})]})}),f.dsgvo&&(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Dieses Feld ist erforderlich"}),(0,r.jsx)("div",{className:"w-full form-control",children:(0,r.jsxs)("label",{className:"flex justify-start cursor-pointer label ".concat(t?"":"md:px-6"),children:[(0,r.jsx)("input",{type:"checkbox",className:"mr-2 checkbox self-start mt-1 checkbox-sm rounded-[2px] border-primary w-[13px] h-[13px]",...a("datenverarbeitung",{required:!0})}),(0,r.jsxs)("span",{className:"label-text leading-[16px]",children:["Ich willige in die"," ",(0,r.jsx)("a",{href:"/datenschutz",target:"_blank",className:"underline",children:"Verarbeitung meiner Daten"})," ","ein.*"]})]})}),f.datenverarbeitung&&(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Dieses Feld ist erforderlich"}),(0,r.jsx)("div",{className:"overflow-x-auto w-full ".concat(t?"":"md:max-w-[207px]"," "),children:(0,r.jsx)(i.Z,{sitekey:"4949ba89-e5ed-4556-8ad9-fda6c5f53ef3",onVerify:e=>{g(e)}})}),""===b&&(0,r.jsx)("p",{className:"text-xs md:max-w-[207px] ".concat(t?"self-start":"self-start md:self-center"),children:"Vervollst\xe4ndigen Sie das Captcha vor dem Absenden"}),(0,r.jsx)("button",{className:"btn mt-8 w-full !uppercase  ".concat(t?"!font-extrabold !text-base":"px-[26px] py-[5px] !w-fit tracking-[0.32px] !text-base"),disabled:y,type:"submit",children:t?"JETZT REGISTRIEREN":"Und los"}),w&&(0,r.jsx)("p",{className:"mt-2 font-bold text-red-500",children:w})]})}},43577:function(e,t,a){"use strict";async function getPDF(e){let t=await fetch("".concat("https://cms.aps-personal.com","/api/pages/pdf"),{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json",Authorization:"bearer ".concat("a6e2292d3c40a9578ea320c7b4065c8bdfad0ae51a4de4447ef48e8c83808157eb1f8a67920e381666bbc82259bd0fa1ff763a05965aaba4e9f1ea4274c5a95c34619e38860b05769ee9766d5c58a35e8a945485bd74b81965aa77a3e898c8740688ffde34f935ed2ef66cc2f27fa8819b5e4b7e316c76590ae0c7418fe7c791")}});if(!t.ok)throw Error("Failed to fetch data: ".concat(t.status));let a=await t.arrayBuffer();return a}async function fetchFromCMS(e,t){let a="".concat("https://cms.aps-personal.com","/api").concat(e),r=await fetch(a,{method:t,headers:{"Content-Type":"application/json",Authorization:"bearer ".concat("a6e2292d3c40a9578ea320c7b4065c8bdfad0ae51a4de4447ef48e8c83808157eb1f8a67920e381666bbc82259bd0fa1ff763a05965aaba4e9f1ea4274c5a95c34619e38860b05769ee9766d5c58a35e8a945485bd74b81965aa77a3e898c8740688ffde34f935ed2ef66cc2f27fa8819b5e4b7e316c76590ae0c7418fe7c791")}});if(!r.ok)throw Error("Failed to fetch data: ".concat(r.status));return await r.json()}a.d(t,{k7:function(){return fetchFromCMS},q5:function(){return getPDF}})},19409:function(e,t,a){e.exports=a(31183)},88280:function(e,t,a){e.exports=a(48873)}},function(e){e.O(0,[7684,8873,8475,8599,8690,184,1669,1744],function(){return e(e.s=88684)}),_N_E=e.O()}]);