1import{_ as ne}from"./BAfXeUwi.js";import{j as C,_ as K,a as se}from"./Dir3Lj2c.js";import{r as oe,a as ie}from"./Brq0yolV.js";import{_ as N}from"./CGHgxjYR.js";import{f as k,x as c,g as F,D as p,o,G as w,w as l,d as i,a as n,e as g,m as L,v as J,c as a,F as S,r as M,t as d,s as ae,n as B,j as U,P as j,an as re,k as m,aN as le,l as de,K as pe,i as q}from"./2UXwwY6n.js";import{r as Z,a as G}from"./Bhm1p-tx.js";import{r as x,S as X,h as H,V as W,G as O,Y as Q}from"./DvB-R4Ht.js";import{_ as I}from"./DlAUqK2U.js";import{a as ce}from"./CtVy2FMX.js";import{_ as me}from"./D5ANPVXJ.js";import{r as ue,a as ge,A as fe}from"./C9y27PRC.js";import{r as P}from"./CgcZJmzG.js";import{r as be}from"./BZD5AOXT.js";import{r as z}from"./fWeBNS60.js";import{r as he}from"./PHdjsO3h.js";import{r as ye}from"./DyH7WcSB.js";import{r as we}from"./Hl5Qinv1.js";import"./BFiPwiXK.js";import"./DXzwrqZ9.js";import"./qVJ10Yns.js";import"./CNSRS5EI.js";import"./Dq4Cx-s2.js";import"./tci7oTU1.js";import"./BsoH4CqV.js";import"./CVBGUwd6.js";import"./BPxitLAY.js";import"./DtVNY0Ib.js";import"./De-67rmN.js";const ve=k({name:"ApplicantInterviewInviteModal",components:{Dialog:Q,DialogPanel:O,DialogTitle:W,TransitionChild:H,TransitionRoot:X,XMarkIcon:x,ExclamationTriangleIcon:G,InformationCircleIcon:Z},props:{locations:{type:Array,required:!0}},data(){return{open:!0,interviewTime:null,azubiId:parseInt(F().params.applicationId),selectedLocation:this.locations[0]}},emits:["action","closeAction"],methods:{close(){this.open=!1,setTimeout(()=>{this.$emit("closeAction")},300)},renderSelectedDoc(e){},async sendingMail(){if(!this.interviewTime)return c().warning("Gebe bitte einen Zeitpunkt an");const e=await C.updateInterviewTime(this.interviewTime,this.azubiId,this.selectedLocation);if(!e.success)return c().error(e.error);this.$emit("action"),this.close()}}}),$e={class:"fixed inset-0 z-10 overflow-y-auto"},_e={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},xe={class:"absolute right-0 top-0 hidden pr-4 pt-4 sm:block"},ke={class:""},Ie={class:"mt-3 text-center sm:ml-4 sm:mt-0"},Ae={class:"flex flex-col gap-5 py-4 items-center"},Te=["value"],De={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"};function Ce(e,t,u,A,T,D){const s=p("TransitionChild"),b=p("XMarkIcon"),h=p("DialogTitle"),v=p("DialogPanel"),$=p("Dialog"),_=p("TransitionRoot");return o(),w(_,{as:"template",show:e.open},{default:l(()=>[i($,{as:"div",class:"relative z-20",onClose:e.close},{default:l(()=>[i(s,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l(()=>[...t[5]||(t[5]=[n("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])]),_:1}),n("div",$e,[n("div",_e,[i(s,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:l(()=>[i(v,{class:"relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"},{default:l(()=>[n("div",xe,[n("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",onClick:t[0]||(t[0]=(...r)=>e.close&&e.close(...r))},[t[6]||(t[6]=n("span",{class:"sr-only"},"Close",-1)),i(b,{class:"h-6 w-6","aria-hidden":"true"})])]),n("div",ke,[n("div",Ie,[i(h,{as:"h3",class:"text-xl font-semibold leading-6 text-gray-900"},{default:l(()=>[...t[7]||(t[7]=[g(" Bewerber einladen ",-1)])]),_:1})])]),n("div",Ae,[L(n("input",{"onUpdate:modelValue":t[1]||(t[1]=r=>e.interviewTime=r),type:"datetime-local",class:"px-3 py-1.5 rounded-md w-full bg-slate-100 focus-visible:outline-none"},null,512),[[J,e.interviewTime]]),L(n("select",{"onUpdate:modelValue":t[2]||(t[2]=r=>e.selectedLocation=r),class:"px-3 py-2 rounded-md w-full bg-slate-100"},[t[8]||(t[8]=n("option",{value:"Zoom"},"via Zoom",-1)),(o(!0),a(S,null,M(e.locations,r=>(o(),a("option",{value:r,class:"px-3 py-1"},d(r),9,Te))),256))],512),[[ae,e.selectedLocation]])]),n("div",De,[n("button",{onClick:t[3]||(t[3]=(...r)=>e.sendingMail&&e.sendingMail(...r)),type:"button",class:"inline-flex w-full justify-center rounded-md bg-primary px-3 py-2 text-sm font-semibold text-white shadow-sm hover:opacity-80 sm:ml-3 sm:w-auto"}," Bewerber einladen "),n("button",{type:"button",class:"mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:mt-0 sm:w-auto",onClick:t[4]||(t[4]=(...r)=>e.close&&e.close(...r))}," Abbrechen ")])]),_:1})]),_:1})])])]),_:1},8,["onClose"])]),_:1},8,["show"])}const Se=I(ve,[["render",Ce]]),Me=k({name:"ApplicantDocumentRequestModal",components:{Dialog:Q,DialogPanel:O,DialogTitle:W,TransitionChild:H,TransitionRoot:X,XMarkIcon:x,ExclamationTriangleIcon:G,InformationCircleIcon:Z},props:{},data(){return{open:!0,selectedDocuments:[],documents:["Lebenslauf","Qualifikationen","Abschlusszeugnis","Arbeitszeugnis","Personalfragebogen","Sprachzertifikate"],azubiId:parseInt(F().params.applicationId)}},emits:["action","closeAction"],mounted(){},methods:{close(){this.open=!1,setTimeout(()=>{this.$emit("closeAction")},300)},renderSelectedDoc(e){const t=this.selectedDocuments.findIndex(u=>u===e);if(t>=0)return this.selectedDocuments.splice(t,1);this.selectedDocuments.push(e)},async sendingMail(){if(!this.selectedDocuments.length)return c().warning("Wähle mindestens ein Dokument aus");const e=await ce.create(this.azubiId,this.selectedDocuments);if(!e.success)return c().error(e.error);c().success(e.message),this.$emit("action"),this.close()}}}),Pe={class:"fixed inset-0 z-10 overflow-y-auto"},ze={class:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"},Le={class:"absolute right-0 top-0 hidden pr-4 pt-4 sm:block"},je={class:"sm:flex sm:items-start"},Be={class:"mt-3 text-center sm:ml-4 sm:mt-0 sm:text-left"},Re={class:"grid grid-cols-2 lg:grid-cols-3 max-w-3xl mx-auto gap-5 my-5"},Ve=["onClick"],qe={class:"font-semibold select-none"},Ee={class:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse gap-3"};function Ke(e,t,u,A,T,D){const s=p("TransitionChild"),b=p("XMarkIcon"),h=p("DialogTitle"),v=N,$=p("DialogPanel"),_=p("Dialog"),r=p("TransitionRoot");return o(),w(r,{as:"template",show:e.open},{default:l(()=>[i(_,{as:"div",class:"relative z-20",onClose:e.close},{default:l(()=>[i(s,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0","enter-to":"opacity-100",leave:"ease-in duration-200","leave-from":"opacity-100","leave-to":"opacity-0"},{default:l(()=>[...t[1]||(t[1]=[n("div",{class:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"},null,-1)])]),_:1}),n("div",Pe,[n("div",ze,[i(s,{as:"template",enter:"ease-out duration-300","enter-from":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95","enter-to":"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200","leave-from":"opacity-100 translate-y-0 sm:scale-100","leave-to":"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"},{default:l(()=>[i($,{class:"relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-3xl sm:p-6"},{default:l(()=>[n("div",Le,[n("button",{type:"button",class:"rounded-md bg-white text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",onClick:t[0]||(t[0]=(...y)=>e.close&&e.close(...y))},[t[2]||(t[2]=n("span",{class:"sr-only"},"Close",-1)),i(b,{class:"h-6 w-6","aria-hidden":"true"})])]),n("div",je,[n("div",Be,[i(h,{as:"h3",class:"text-base font-semibold leading-6 text-gray-900"},{default:l(()=>[...t[3]||(t[3]=[g(" Dokumente auswählen ",-1)])]),_:1})])]),n("div",Re,[(o(!0),a(S,null,M(e.documents,y=>(o(),a("div",{class:B([e.selectedDocuments.includes(y)?"bg-primary/20 ring-1 ring-inset ring-primary text-primary":"bg-gray-100 text-gray-600","rounded-md p-2 aspect-square cursor-pointer flex items-center justify-center"]),onClick:R=>e.renderSelectedDoc(y)},[n("p",qe,d(y),1)],10,Ve))),256))]),n("div",Ee,[i(v,{onClick:e.sendingMail,"button-type":"button"},{default:l(()=>[...t[4]||(t[4]=[g("Email senden",-1)])]),_:1},8,["onClick"]),i(v,{variant:"outline","button-type":"button",onClick:e.close},{default:l(()=>[...t[5]||(t[5]=[g("Abbrechen",-1)])]),_:1},8,["onClick"])])]),_:1})]),_:1})])])]),_:1},8,["onClose"])]),_:1},8,["show"])}const Ne=I(Me,[["render",Ke]]);async function Fe(e){try{return{success:!0,data:await $fetch(`/api/applicantTimeline/${e}`,{method:"get",headers:{Authorization:`Bearer ${U().getToken()}`}})}}catch(t){return console.log(t.data),{success:!1,error:t.data?.statusMessage}}}async function Je(e,t){try{return await $fetch("/api/applicantTimeline",{method:"post",body:JSON.stringify({comment:e,applicationId:t}),headers:{Authorization:`Bearer ${U().getToken()}`}})?{success:!0,message:"Kommentar wurde gepostet"}:{success:!1,error:"Kommentar konnte nicht gepostet werden"}}catch(u){return console.log(u.data),{success:!1,error:u.data?.statusMessage}}}const E={read:Fe,comment:Je},Ue=k({name:"ApplicantTimeline",setup(){return{user:re()}},data(){return{applicationId:parseInt((this._.provides[j]||this.$route).params?.applicationId),comment:"",timeline:[],status:[{name:"Beworben",id:0,icon:ue},{name:"Datei hochgeladen",id:1,icon:ge},{name:"Zum Gespräch eingeladen",id:5,icon:P},{name:"Vertrag zugeschickt",id:6,icon:P},{name:"Fragebogen erstellt",id:7,icon:oe},{name:"Standort zugewiesen",id:8,icon:be},{name:"Warte auf Gespräch",id:10,icon:z},{name:"Warte auf Unterlagen",id:11,icon:z},{name:"Warte auf Rückmeldung",id:12,icon:z},{name:"Eingestellt",id:15,icon:he},{name:"An Perso weitergeleitet",id:16,icon:P},{name:"Fehlende Qualifikation",id:20,icon:x},{name:"Mangelnde Sprachkenntnis",id:21,icon:x},{name:"Fehlende Voraussetzung",id:22,icon:x}]}},mounted(){this.getTimeLine()},methods:{async getTimeLine(){const e=await E.read(this.applicationId);if(!e.success)return c().warning(e.error);this.timeline=e.data},async commentTimeline(){if(!this.comment)return;const e=await E.comment(this.comment,this.applicationId);if(!e.success)return c().warning(e.error);this.comment="",await this.getTimeLine()}}}),Ze={class:"w-full rounded-lg flex flex-col justify-between h-fit"},Ge={class:""},Xe={role:"list",class:"-mb-8 p-3"},He={class:"relative pb-8"},We={key:0,class:"absolute left-4 top-4 -ml-px h-full w-0.5 bg-gray-200","aria-hidden":"true"},Oe={class:"relative flex space-x-3"},Qe=["src"],Ye={class:"flex min-w-0 flex-1 justify-between w-full"},et={class:"w-full"},tt={key:0,class:"flex-auto w-full rounded-md px-3 py-1 ring-1 ring-inset ring-gray-200"},nt={class:"flex justify-between gap-x-4"},st={class:"py-0.5 text-xs leading-5 text-gray-500"},ot={class:"font-semibold text-gray-900"},it={class:"text-xs text-gray-500"},at={class:"text-sm leading-6 text-gray-800"},rt={key:1},lt={class:"text-xs text-gray-500"},dt=["innerHTML"],pt={key:0,class:"font-semibold text-sm text-gray-900"},ct={class:"my-6 flex gap-x-3 px-3"},mt=["src"],ut={class:"overflow-hidden rounded-lg pb-12 shadow-sm ring-1 ring-inset ring-gray-300 focus-within:ring-2 focus-within:ring-primary"};function gt(e,t,u,A,T,D){return o(),a("div",Ze,[n("div",Ge,[n("ul",Xe,[(o(!0),a(S,null,M(e.timeline,(s,b)=>(o(),a("li",{key:s.id},[n("div",He,[b!==e.timeline.length-1?(o(),a("span",We)):m("",!0),n("div",Oe,[n("span",{class:B([s.icon===99?"bg-gray-100":s.icon<5?"bg-sky-500":s.icon<10?"bg-amber-400":s.icon<15?"bg-purple-600":s.icon<20?"bg-lime-500":"bg-red-600","h-8 w-8 rounded-full flex items-center justify-center ring-8 ring-white"])}
1,[s.icon===99?(o(),a("img",{key:0,src:s.avatar?`/api/images/${s.avatar}`:"/assets/images/svg/defaultUser.svg",class:"rounded-full"},null,8,Qe)):(o(),w(le(e.status.find(({id:h})=>h===s.icon)?.icon),{key:1,class:"h-5 w-5 text-white","aria-hidden":"true"}))],2),n("div",Ye,[n("div",et,[s.icon===99?(o(),a("div",tt,[n("div",nt,[n("div",st,[n("span",ot,d(s.firstname)+" "+d(s.lastname),1)]),n("p",it,d(new Date(s.time).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"})),1)]),n("p",at,d(s.content),1)])):(o(),a("div",rt,[n("p",lt,d(new Date(s.time).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"})),1),n("p",{class:"text-sm text-gray-800 whitespace-pre-line",innerHTML:s.content},null,8,dt),s.userId?(o(),a("span",pt,"von "+d(s.firstname)+" "+d(s.lastname),1)):m("",!0)]))])])])])]))),128))])]),n("div",ct,[n("img",{src:e.user.avatar?e.user.avatar:"/assets/images/svg/defaultUser.svg",alt:"",class:"h-8 w-8 flex-none rounded-full bg-gray-50"},null,8,mt),n("form",{action:"#",class:"relative flex-auto",onSubmit:t[2]||(t[2]=de((...s)=>e.commentTimeline&&e.commentTimeline(...s),["prevent"]))},[n("div",ut,[t[3]||(t[3]=n("label",{for:"comment",class:"sr-only"},"Add your comment",-1)),L(n("textarea",{"onUpdate:modelValue":t[0]||(t[0]=s=>e.comment=s),rows:"2",name:"comment",id:"comment",class:"block w-full resize-none px-2 focus-visible:outline-none border-0 bg-transparent py-1.5 text-gray-900 placeholder:text-gray-400 focus:ring-0 sm:text-sm sm:leading-6",placeholder:"Füge einen Kommentar hinzu...",onKeyup:t[1]||(t[1]=pe((...s)=>e.commentTimeline&&e.commentTimeline(...s),["enter"]))},null,544),[[J,e.comment]])]),t[4]||(t[4]=n("div",{class:"absolute inset-x-0 bottom-0 flex justify-between py-2 pl-3 pr-2"},[n("button",{type:"submit",class:"rounded-md bg-white px-2.5 py-1.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"}," Kommentieren ")],-1))],32)])])}const ft=I(Ue,[["render",gt]]),bt=k({name:"JobAdInformations",props:{application:{type:Object,required:!0}},data(){return{preferences:[{id:1,bgColor:"bg-cyan-600",name:"Hat noch nicht in dem Beruf gearbeitet möchte es aber"},{id:2,bgColor:"bg-orange-600",name:"Möchte eine Ausbildung beginnen"},{id:3,bgColor:"bg-purple-600",name:"Hat eine Ausbildung und möchte arbeiten"},{id:4,bgColor:"bg-emerald-600",name:"Möchte ein Praktikum oder FSJ"}]}}}),ht={class:"flex flex-col divide-y py-2"},yt={class:"p-6 grid grid-cols-1 md:grid-cols-3 gap-5"},wt={class:"text-lg font-medium text-center md:col-span-2 md:text-start"},vt={class:"p-6 grid grid-cols-1 md:grid-cols-3 gap-5"},$t={class:"text-lg font-medium text-center md:col-span-2 md:text-start"},_t={class:"p-6 grid grid-cols-1 md:grid-cols-3 gap-5"},xt={class:"flex md:col-span-2 flex-wrap gap-2 min-w-0"},kt={class:"font-medium text-sm leading-snug break-words"};function It(e,t,u,A,T,D){return o(),a("div",ht,[t[3]||(t[3]=n("div",{class:"p-6 flex flex-col gap-2"},[n("p",{class:"text-2xl font-semibold"},"Informationen zur Stellenausschreibung"),n("p",{class:"text-base text-gray-500"},"Alle Informationen zur Stellenausschreibung, auf die sich beworben wurde")],-1)),n("div",yt,[t[0]||(t[0]=n("p",{class:"text-lg font-semibold text-center md:text-start"},"Standort",-1)),n("p",wt,d(e.application.jobAd.location.name)+" in "+d(e.application.jobAd.location.region)+" "+d(e.application.jobAd.location.bezirk),1)]),n("div",vt,[t[1]||(t[1]=n("p",{class:"text-lg font-semibold text-center md:text-start"},"Anstellungsart",-1)),n("p",$t,d(e.application.jobAd.worktype.join(", ")),1)]),n("div",_t,[t[2]||(t[2]=n("p",{class:"text-lg font-semibold text-center md:text-start"},"Anforderungen",-1)),n("div",xt,[(o(!0),a(S,null,M(e.preferences.filter(({id:s})=>e.application.preferences.includes(s)),s=>(o(),a("div",{class:B([s.bgColor,"px-3 py-1.5 text-white rounded-md cursor-default max-w-full"])},[n("p",kt,d(s.name),1)],2))),256))])])])}const Y=I(bt,[["render",It]]),At=k({name:"bewerbung-[applicationId]",components:{AzubiDocumentRequestModal:fe,JobAdInformations:Y,ApplicantDocuments:K,InformationCircleIcon:we,ChevronLeftIcon:ye},data(){return{applicationId:parseInt((this._.provides[j]||this.$route).params?.applicationId),applicantId:parseInt((this._.provides[j]||this.$route).params?.id),application:null,openDocumentRequestModal:!1,openSendToPersoSecure:!1,openApplicantInterviewInviteModal:!1,sendingToPerso:!1,deleteSecure:!1}},mounted(){this.getJobAdApplication()},methods:{async getJobAdApplication(){const e=await C.getById(this.applicationId);if(!e.success)return c().error(e.error),this.$router.push("/intern/bewerber-pool/"+this.applicantId);this.application=e.data},async sendToPerso(){if(this.sendingToPerso)return;this.sendingToPerso=!0;const e=await C.sendToPerso(this.applicationId);return this.sendingToPerso=!1,e.success?(c().success(e.message),q().push(`/intern/bewerber-pool/${this.applicantId}`)):c().error(e.error)},async remove(){const e=await C.remove(this.applicationId);return e.success?(c().success(e.message),q().push(`/intern/bewerber-pool/${this.applicantId}`)):c().error(e.error)}}}),Tt={class:"max-w-screen-2xl mx-auto px-3 md:px-6 py-6"},Dt={class:"flex flex-col lg:flex-row lg:items-start gap-3 mb-6"},Ct={class:"min-w-0"},St={class:"text-2xl md:text-3xl font-bold text-gray-900"},Mt={class:"text-gray-600 mt-1"},Pt={class:"font-medium"},zt={key:0},Lt={key:0,class:"lg:ml-auto flex-shrink-0"},jt={key:0,class:"bg-sky-50 border border-sky-200 rounded-lg p-4 flex gap-3 items-center mb-6"},Bt={class:"font-medium text-sky-700"},Rt={class:"grid grid-cols-1 lg:grid-cols-3 gap-6"},Vt={class:"lg:col-span-2"},qt={key:0,class:"lg:col-span-3 rounded-lg bg-white shadow p-6"},Et={class:"flex flex-wrap gap-3 pt-4"},Kt=["href"],Nt={class:"mt-5 pt-4 border-t border-gray-200 flex flex-wrap gap-3 items-center"},Ft={class:"grid grid-cols-1 lg:grid-cols-3 gap-6 pt-6"},Jt={class:"py-6 px-2 shadow rounded-md bg-white h-fit"},Ut={key:0,class:"shadow rounded-md bg-white lg:col-span-2 h-fit"};function Zt(e,t,u,A,T,D){const s=p("ChevronLeftIcon"),b=ne,h=se,v=p("InformationCircleIcon"),$=ie,_=K,r=N,y=Se,R=Ne,V=me,ee=ft,te=Y;return o(),a("div",Tt,[i(b,{to:`/intern/bewerber-pool/${e.applicantId}`,class:"inline-flex items-center gap-1.5 text-sm text-gray-500 hover:text-primary transition mb-4"},{default:l(()=>[i(s,{class:"h-4 w-4 stroke-2"}),t[12]||(t[12]=g(" Zurück zum Bewerber ",-1))]),_:1},8,["to"]),n("div",Dt,[n("div",Ct,[n("h1",St,d(e.application?.applicant.firstname)+" "+d(e.application?.applicant.lastname),1),n("p",Mt,[n("span",Pt,d(e.application?.jobAd.job.title),
11),e.application?.jobAd.location.bezirk?(o(),a("span",zt," · "+d(e.application.jobAd.location.bezirk),1)):m("",!0)])]),e.application?(o(),a("div",Lt,[i(h,{"application-id":e.applicationId,"active-status":e.application.status,onNewStatus:t[0]||(t[0]=f=>{e.application.status=f,e.$refs.timeline.getTimeLine()})},null,8,["application-id","active-status"])])):m("",!0)]),e.application?.inviteSend?(o(),a("div",jt,[i(v,{class:"h-5 w-5 text-sky-500 flex-shrink-0"}),n("p",Bt," Zum Bewerbungsgespräch eingeladen am "+d(new Date(e.application.inviteSend).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"})),1)])):m("",!0),n("div",Rt,[n("div",Vt,[i($,{email:e.application?.applicant.email,languages:[e.application?.applicant.mainLanguage,`${e.application?.applicant.secondLanguage} ${e.application?.applicant.secondLanguageLevel}`],firstname:e.application?.applicant.firstname,lastname:e.application?.applicant.lastname,phone:e.application?.applicant.phone?e.application.applicant.phone:"- Keine Angabe -"},null,8,["email","languages","firstname","lastname","phone"])]),i(_),e.application?.id?(o(),a("div",qt,[t[19]||(t[19]=n("h2",{class:"text-xl font-semibold"},"Aktionen",-1)),n("div",Et,[i(r,{onClick:t[1]||(t[1]=f=>e.openApplicantInterviewInviteModal=!0),loading:e.sendingToPerso},{default:l(()=>[...t[13]||(t[13]=[g(" Zum Bewerbungsgespräch einladen ",-1)])]),_:1},8,["loading"]),n("a",{href:`mailto:${e.application?.applicant.email}`},[i(r,{variant:"outline"},{default:l(()=>[...t[14]||(t[14]=[g("Bewerber schreiben",-1)])]),_:1})],8,Kt),i(r,{variant:"outline",onClick:t[2]||(t[2]=f=>e.openDocumentRequestModal=!0)},{default:l(()=>[...t[15]||(t[15]=[g("Dokumente anfragen",-1)])]),_:1})]),n("div",Nt,[t[18]||(t[18]=n("p",{class:"text-xs text-gray-500 w-full"},"Diese Schritte lassen sich nicht rückgängig machen.",-1)),i(r,{variant:"outline",onClick:t[3]||(t[3]=f=>e.openSendToPersoSecure=!0)},{default:l(()=>[...t[16]||(t[16]=[g(" Akte an Personalabteilung weiterleiten ",-1)])]),_:1}),i(r,{variant:"danger",onClick:t[4]||(t[4]=f=>e.deleteSecure=!0)},{default:l(()=>[...t[17]||(t[17]=[g("Bewerbung löschen",-1)])]),_:1})]),e.openApplicantInterviewInviteModal?(o(),w(y,{key:0,locations:[e.application.jobAd.location.address],onCloseAction:t[5]||(t[5]=f=>e.openApplicantInterviewInviteModal=!1),onAction:t[6]||(t[6]=()=>{e.$refs.timeline.getTimeLine()})},null,8,["locations"])):m("",!0),e.openDocumentRequestModal?(o(),w(R,{key:1,onCloseAction:t[7]||(t[7]=f=>e.openDocumentRequestModal=!1),onAction:t[8]||(t[8]=()=>{e.$refs.timeline.getTimeLine()})})):m("",!0),e.openSendToPersoSecure?(o(),w(V,{key:2,title:"Bewerber an Personalabteilung senden?",message:"Möchtest du den Bewerber an die Personalabteilung senden? Du kannst diesen dann nicht mehr bearbeiten",button:"Senden","cancel-button":"Abbrechen",onAction:t[9]||(t[9]=()=>{e.sendToPerso(),e.openSendToPersoSecure=!1}
1),onCloseAction:t[10]||(t[10]=f=>e.openSendToPersoSecure=!1)})):m("",!0),e.deleteSecure?(o(),w(V,{key:3,onCloseAction:t[11]||(t[11]=f=>e.deleteSecure=!1),onAction:e.remove,title:"Bewerbung löschen?",type:"danger",message:`Bist du dir sicher, dass du die Bewerbung von <b>${e.application?.applicant.firstname} ${e.application?.applicant.lastname}</b> löschen möchtest?`,button:"löschen","cancel-button":"abbrechen"},null,8,["onAction","message"])):m("",!0)])):m("",!0)]),n("div",Ft,[n("div",Jt,[i(ee,{ref:"timeline"},null,512)]),e.application?(o(),a("div",Ut,[i(te,{application:e.application},null,8,["application"])])):m("",!0)])])}const _n=I(At,[["render",Zt]]);export{_n 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.