Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 5m58s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m45s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m4s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 6m47s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 14m39s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 14m39s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 10m45s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m52s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m16s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m49s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 line
No EOL
9.4 KiB
JavaScript
1 line
No EOL
9.4 KiB
JavaScript
import{D as e,E as t,Ht as ee,On as n,_ as r,b as i,bt as te,er as a,g as o,mt as s,o as c,qt as l,tr as u,v as d,vn as f,y as p}from"./runtime-core.esm-bundler-B8D2lM98.js";import{w as ne}from"./runtime-dom.esm-bundler-BEWGoe8n.js";import{a as m,i as h,o as g,s as re}from"./dist--2OKCVzt.js";import{t as ie}from"./arrow-left-DROE4wuA.js";import{t as ae}from"./circle-check-K9QH5jex.js";import{t as oe}from"./external-link-Ddmamed9.js";import{t as _}from"./send-B_gp9Kto.js";import{n as se}from"./lib-Be7KNAML.js";import{D as ce,P as v,S as y,St as b,Vt as x,_ as S,a as C,dt as w,i as T,kt as E,n as D,o as O,r as k,s as A,u as j,w as M,xt as N,y as P}from"./app-CN36UeEy.js";import{t as F}from"./JobFacts-0EcQaoDT.js";var I={class:`mb-5 flex flex-wrap items-center justify-between gap-3`},L={class:`flex flex-wrap gap-2`},R={key:0,class:`mb-4 rounded-md border border-amber-300 bg-amber-50 px-3 py-2 text-sm text-amber-900 dark:border-amber-800 dark:bg-amber-950/50 dark:text-amber-100`},z={class:`grid grid-cols-1 items-start gap-6 lg:grid-cols-[minmax(0,1fr)_22rem]`},B={class:`min-w-0 rounded-lg border bg-card p-6 sm:p-8`},V={class:`text-2xl leading-tight font-semibold tracking-tight break-words sm:text-3xl`},H=[`innerHTML`],U=[`href`],W={class:`text-xs font-normal text-muted-foreground`},G={class:`grid gap-6`},le={class:`flex items-center gap-2 text-sm font-medium text-emerald-700 dark:text-emerald-400`},ue={class:`mt-1 text-sm`},de={class:`text-sm text-muted-foreground`},fe={key:0,class:`mt-2 text-xs text-muted-foreground`},pe={class:`mt-1 text-sm font-medium break-all select-all`},me=[`href`],he=[`href`],ge={key:4,class:`text-sm text-muted-foreground`},_e={key:5,class:`mt-5 border-t pt-4`},ve={class:`min-w-0`},ye={class:`block text-sm font-medium`},be={key:0,class:`block truncate text-xs text-muted-foreground`},xe={class:`mt-2 grid gap-1 text-[13px]`},Se=[`href`],Ce=[`href`],we={class:`grid gap-3 text-sm`},Te={class:`text-xs text-muted-foreground`},Ee={class:`flex items-center gap-2`},De=[`accept`],K={class:`min-w-0 truncate text-[13px] text-muted-foreground`},Oe={key:0,class:`h-1 overflow-hidden rounded-full bg-muted`},q={__name:`Show`,props:{posting:{type:Object,required:!0},application:{type:Object,default:null},canApply:{type:Boolean,default:!1},editUrl:{type:String,default:null},applicationsUrl:{type:String,default:null},applicationsCount:{type:Number,default:null},accept:{type:String,default:`.pdf`}},setup(q){let J=q,ke=g();ee(()=>ke.props.flash.status,e=>e&&se.success(e),{immediate:!0});let Y=o(()=>[[`Umfang`,[J.posting.employment_label,J.posting.hours].filter(Boolean).join(`, `)],[`Vertrag`,J.posting.contract===`fixed`?`Befristet${J.posting.contract_note?` ${J.posting.contract_note}`:``}`:`Unbefristet`],[`Eingruppierung`,J.posting.pay_grade],[`Beginn`,J.posting.start],[`Bewerbungsfrist`,J.posting.deadline?v(J.posting.deadline):null]].filter(([,e])=>e)),X={draft:`Entwurf – nur für die Redaktion sichtbar`,scheduled:`Geplant – noch nicht sichtbar`,expired:`Frist abgelaufen – nicht mehr in der Liste`},Z=f(!1),Q=f(null),$=m({message:``,file:null});function Ae(){$.post(`/stellen/${J.posting.id}/bewerben`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>Z.value=!1})}function je(){window.confirm(`Bewerbung zurückziehen? Nachricht und Unterlagen werden gelöscht.`)&&re.delete(`/stellen/bewerbungen/${J.application.id}`,{preserveScroll:!0})}return(ee,o)=>(s(),d(M,{title:q.posting.title},{default:l(()=>[r(`div`,I,[e(n(h),{href:`/stellen`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:l(()=>[e(n(ie),{class:`size-4`}),o[6]||=t(` Alle Stellen`,-1)]),_:1}),r(`div`,L,[q.applicationsUrl?(s(),d(n(S),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[e(n(h),{href:q.applicationsUrl},{default:l(()=>[e(n(w)),t(` Bewerbungen (`+u(q.applicationsCount)+`)`,1)]),_:1},8,[`href`])]),_:1})):p(``,!0),q.editUrl?(s(),d(n(S),{key:1,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[e(n(h),{href:q.editUrl},{default:l(()=>[e(n(b)),o[7]||=t(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):p(``,!0)])]),X[q.posting.status]?(s(),i(`p`,R,u(X[q.posting.status]),1)):p(``,!0),r(`div`,z,[r(`article`,B,[r(`h1`,V,u(q.posting.title),1),e(F,{posting:q.posting,class:`mt-3`},null,8,[`posting`]),q.posting.description?(s(),i(`div`,{key:0,class:`prose prose-neutral mt-6 max-w-none break-words dark:prose-invert`,innerHTML:q.posting.description},null,8,H)):p(``,!0),q.posting.pdf?(s(),i(`a`,{key:1,href:q.posting.pdf.url,target:`_blank`,rel:`noopener`,class:`mt-6 inline-flex items-center gap-2 rounded-md border px-3 py-2 text-sm font-medium hover:bg-accent`},[e(n(x),{class:`size-4 text-red-600`}),o[8]||=t(` Ausschreibung als PDF `,-1),r(`span`,W,u(q.posting.pdf.name),1)],8,U)):p(``,!0)]),r(`aside`,G,[e(y,{title:`Bewerbung`},{default:l(()=>[q.application?(s(),i(c,{key:0},[r(`p`,le,[e(n(ae),{class:`size-4`}),t(` Beworben am `+u(n(v)(q.application.created_at)),1)]),r(`p`,ue,[o[9]||=t(`Stand: `,-1),r(`strong`,null,u(q.application.status_label),1)]),q.application.status===`received`?(s(),d(n(S),{key:0,variant:`ghost`,size:`sm`,class:`mt-3 -ml-2 text-destructive hover:text-destructive`,onClick:je},{default:l(()=>[...o[10]||=[t(`Bewerbung zurückziehen`,-1)]]),_:1})):p(``,!0)],64)):q.posting.apply_mode===`online`?(s(),i(c,{key:1},[r(`p`,de,`Bewerben Sie sich direkt hier – vertraulich an `+u(q.posting.contact?q.posting.contact.name:`die Personalabteilung`)+`.`,1),e(n(S),{class:`mt-4 w-full`,disabled:!q.canApply,onClick:o[0]||=e=>Z.value=!0},{default:l(()=>[e(n(_)),o[11]||=t(` Jetzt bewerben`,-1)]),_:1},8,[`disabled`]),!q.canApply&&q.posting.status!==`open`?(s(),i(`p`,fe,`Bewerben ist gerade nicht möglich.`)):p(``,!0)],64)):q.posting.apply_mode===`email`&&q.posting.apply_email?(s(),i(c,{key:2},[o[13]||=r(`p`,{class:`text-sm text-muted-foreground`},`Bitte schicken Sie Ihre Bewerbung per E-Mail an:`,-1),r(`p`,pe,u(q.posting.apply_email),1),e(n(S),{class:`mt-4 w-full`,"as-child":``},{default:l(()=>[r(`a`,{href:`mailto:${q.posting.apply_email}?subject=${encodeURIComponent(`Bewerbung: ${q.posting.title}`)}`},[e(n(E)),o[12]||=t(` E-Mail schreiben`,-1)],8,me)]),_:1})],64)):q.posting.apply_mode===`link`&&q.posting.apply_url?(s(),d(n(S),{key:3,class:`w-full`,"as-child":``},{default:l(()=>[r(`a`,{href:q.posting.apply_url,target:`_blank`,rel:`noopener`},[e(n(oe)),o[14]||=t(` Zur Bewerbung`,-1)],8,he)]),_:1})):(s(),i(`p`,ge,`Bitte wenden Sie sich an die Ansprechperson.`)),q.posting.contact?(s(),i(`div`,_e,[o[15]||=r(`p`,{class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},`Ansprechperson`,-1),e(n(h),{href:`/personen/${q.posting.contact.id}`,class:`flex items-center gap-3 hover:underline`},{default:l(()=>[e(ce,{person:q.posting.contact,class:`size-10`},null,8,[`person`]),r(`span`,ve,[r(`span`,ye,u(q.posting.contact.name),1),q.posting.contact.job_title?(s(),i(`span`,be,u(q.posting.contact.job_title),1)):p(``,!0)])]),_:1},8,[`href`]),r(`p`,xe,[q.posting.contact.email?(s(),i(`a`,{key:0,href:`mailto:${q.posting.contact.email}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[e(n(E),{class:`size-3.5`}),t(` `+u(q.posting.contact.email),1)],8,Se)):p(``,!0),q.posting.contact.phone?(s(),i(`a`,{key:1,href:`tel:${q.posting.contact.phone}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[e(n(N),{class:`size-3.5`}),t(` `+u(q.posting.contact.phone),1)],8,Ce)):p(``,!0)])])):p(``,!0)]),_:1}),Y.value.length?(s(),d(y,{key:0,title:`Auf einen Blick`},{default:l(()=>[r(`dl`,we,[(s(!0),i(c,null,te(Y.value,([e,t])=>(s(),i(`div`,{key:e},[r(`dt`,Te,u(e),1),r(`dd`,null,u(t),1)]))),128))])]),_:1})):p(``,!0)])]),e(n(A),{open:Z.value,"onUpdate:open":o[5]||=e=>Z.value=e},{default:l(()=>[e(n(O),{class:`sm:max-w-lg`},{default:l(()=>[e(n(k),null,{default:l(()=>[e(n(D),null,{default:l(()=>[t(`Bewerbung: `+u(q.posting.title),1)]),_:1}),e(n(C),null,{default:l(()=>[...o[16]||=[t(`Ihre Angaben aus dem Profil (Name, Funktion, Abteilung) werden mitgeschickt. Vertraulich – nur für die Ansprechperson bzw. die Personalabteilung.`,-1)]]),_:1})]),_:1}),r(`form`,{class:`grid gap-4`,onSubmit:ne(Ae,[`prevent`])},[e(P,{id:`apply-message`,label:`Nachricht`,error:n($).errors.message,hint:`Warum interessiert Sie die Stelle? Was bringen Sie mit?`},{default:l(()=>[e(n(j),{id:`apply-message`,modelValue:n($).message,"onUpdate:modelValue":o[1]||=e=>n($).message=e,rows:`6`,maxlength:`5000`},null,8,[`modelValue`])]),_:1},8,[`error`]),e(P,{id:`apply-file`,label:`Unterlagen (optional)`,error:n($).errors.file,hint:`z. B. Lebenslauf – PDF, Word oder OpenDocument, höchstens 10 MB.`},{default:l(()=>[r(`div`,Ee,[r(`input`,{id:`apply-file`,ref_key:`fileInput`,ref:Q,type:`file`,accept:q.accept,class:`hidden`,onChange:o[2]||=e=>n($).file=e.target.files?.[0]??null},null,40,De),e(n(S),{type:`button`,variant:`outline`,size:`sm`,onClick:o[3]||=e=>Q.value?.click()},{default:l(()=>[...o[17]||=[t(`Datei auswählen`,-1)]]),_:1}),r(`span`,K,u(n($).file?.name??`Keine Datei`),1)])]),_:1},8,[`error`]),e(n(T),null,{default:l(()=>[e(n(S),{type:`button`,variant:`outline`,onClick:o[4]||=e=>Z.value=!1},{default:l(()=>[...o[18]||=[t(`Abbrechen`,-1)]]),_:1}),e(n(S),{type:`submit`,disabled:n($).processing||!n($).message.trim()&&!n($).file},{default:l(()=>[e(n(_)),o[19]||=t(` Bewerbung senden`,-1)]),_:1},8,[`disabled`])]),_:1}),n($).progress?(s(),i(`div`,Oe,[r(`div`,{class:`h-full bg-brand`,style:a({width:`${n($).progress.percentage}%`})},null,4)])):p(``,!0)],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{q as default}; |