Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.3 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.4 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.4 (pull_request) Has been skipped
CI / Browser-Tests (pull_request) Failing after 19m38s
CI / PHP 8.3 / mysql:8.4-1 (pull_request) Successful in 24m17s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 9m13s
CI / Build-Artefakte aktuell (pull_request) Successful in 6m4s
Antworten mit Quellen aus Seiten, QM-Dokumenten, Glossar und Neuigkeiten – nur aus Sichtbarem, über den KI-Assistenten (Anthropic, OpenAI, Ollama). Wissensquellen als Registry für Plugins, Auswertung ohne Personenbezug. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 line
No EOL
9 KiB
JavaScript
1 line
No EOL
9 KiB
JavaScript
import{At as e,C as t,D as n,P as r,S as ee,T as te,W as i,j as a,w as o,x as s}from"./ui-DY0WbyhT.js";import{At as c,C as l,E as ne,O as u,S as d,T as f,Tt as p,Y as m,_t as h,a as g,g as _,i as v,k as y,kt as re,o as ie,ot as b,q as x,rt as ae,s as oe,v as S,w as C,x as w}from"./framework-Cy4cevSy.js";import{t as T}from"./external-link-CCO7Aupk.js";import{t as E}from"./send-cXiW05LR.js";import{E as D,J as O,L as k,Y as A,at as j,bt as M,d as N,f as P,l as F,p as I,v as L}from"./app-D39ss9YM.js";import{t as R}from"./JobFacts-W3R2s10c.js";var z={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`},B={class:`grid grid-cols-1 items-start gap-6 lg:grid-cols-[minmax(0,1fr)_22rem]`},V={class:`min-w-0 rounded-lg border bg-card p-6 sm:p-8`},H=[`innerHTML`],U=[`href`],W={class:`text-xs font-normal text-muted-foreground`},G={class:`grid gap-6`},se={class:`flex items-center gap-2 text-sm font-medium text-emerald-700 dark:text-emerald-400`},K={class:`mt-1 text-sm`},ce={class:`text-sm text-muted-foreground`},le={key:0,class:`mt-2 text-xs text-muted-foreground`},ue={class:`mt-1 text-sm font-medium break-all select-all`},de=[`href`],fe=[`href`],pe={key:4,class:`text-sm text-muted-foreground`},me={key:5,class:`mt-5 border-t pt-4`},he={class:`min-w-0`},ge={class:`block text-sm font-medium`},_e={key:0,class:`block truncate text-xs text-muted-foreground`},ve={class:`mt-2 grid gap-1 text-[13px]`},ye=[`href`],be=[`href`],xe={class:`grid gap-3 text-sm`},Se={class:`text-xs text-muted-foreground`},Ce={class:`flex items-center gap-2`},we=[`accept`],Te={class:`min-w-0 truncate text-[13px] text-muted-foreground`},Ee={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,De=ie();ae(()=>De.props.flash.status,e=>e&&i.success(e),{immediate:!0});let Y=w(()=>[[`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?D(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=h(!1),Q=h(null),$=g({message:``,file:null});function Oe(){$.post(`/stellen/${J.posting.id}/bewerben`,{forceFormData:!0,preserveScroll:!0,onSuccess:()=>Z.value=!1})}function ke(){window.confirm(`Bewerbung zurückziehen? Nachricht und Unterlagen werden gelöscht.`)&&oe.delete(`/stellen/bewerbungen/${J.application.id}`,{preserveScroll:!0})}return(i,h)=>(x(),l(P,{title:q.posting.title},{default:b(()=>[y(I,{title:q.posting.title,breadcrumbs:[{label:`Interne Stellen`,href:`/stellen`}]},ne({description:b(()=>[y(R,{posting:q.posting},null,8,[`posting`])]),_:2},[q.applicationsUrl||q.editUrl?{name:`actions`,fn:b(()=>[q.applicationsUrl?(x(),l(p(r),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:b(()=>[y(p(v),{href:q.applicationsUrl},{default:b(()=>[y(p(k)),u(` Bewerbungen (`+c(q.applicationsCount)+`)`,1)]),_:1},8,[`href`])]),_:1})):C(``,!0),q.editUrl?(x(),l(p(r),{key:1,variant:`outline`,size:`sm`,"as-child":``},{default:b(()=>[y(p(v),{href:q.editUrl},{default:b(()=>[y(p(A)),h[6]||=u(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):C(``,!0)]),key:`0`}:void 0]),1032,[`title`]),X[q.posting.status]?(x(),f(`p`,z,c(X[q.posting.status]),1)):C(``,!0),d(`div`,B,[d(`article`,V,[q.posting.description?(x(),f(`div`,{key:0,class:`prose prose-neutral max-w-none break-words dark:prose-invert`,innerHTML:q.posting.description},null,8,H)):C(``,!0),q.posting.pdf?(x(),f(`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`},[y(p(M),{class:`size-4 text-red-600`}),h[7]||=u(` Ausschreibung als PDF `,-1),d(`span`,W,c(q.posting.pdf.name),1)],8,U)):C(``,!0)]),d(`aside`,G,[y(N,{title:`Bewerbung`},{default:b(()=>[q.application?(x(),f(S,{key:0},[d(`p`,se,[y(p(e),{class:`size-4`}),u(` Beworben am `+c(p(D)(q.application.created_at)),1)]),d(`p`,K,[h[8]||=u(`Stand: `,-1),d(`strong`,null,c(q.application.status_label),1)]),q.application.status===`received`?(x(),l(p(r),{key:0,variant:`ghost`,size:`sm`,class:`mt-3 -ml-2 text-destructive hover:text-destructive`,onClick:ke},{default:b(()=>[...h[9]||=[u(`Bewerbung zurückziehen`,-1)]]),_:1})):C(``,!0)],64)):q.posting.apply_mode===`online`?(x(),f(S,{key:1},[d(`p`,ce,`Bewerben Sie sich direkt hier – vertraulich an `+c(q.posting.contact?q.posting.contact.name:`die Personalabteilung`)+`.`,1),y(p(r),{class:`mt-4 w-full`,disabled:!q.canApply,onClick:h[0]||=e=>Z.value=!0},{default:b(()=>[y(p(E)),h[10]||=u(` Jetzt bewerben`,-1)]),_:1},8,[`disabled`]),!q.canApply&&q.posting.status!==`open`?(x(),f(`p`,le,`Bewerben ist gerade nicht möglich.`)):C(``,!0)],64)):q.posting.apply_mode===`email`&&q.posting.apply_email?(x(),f(S,{key:2},[h[12]||=d(`p`,{class:`text-sm text-muted-foreground`},`Bitte schicken Sie Ihre Bewerbung per E-Mail an:`,-1),d(`p`,ue,c(q.posting.apply_email),1),y(p(r),{class:`mt-4 w-full`,"as-child":``},{default:b(()=>[d(`a`,{href:`mailto:${q.posting.apply_email}?subject=${encodeURIComponent(`Bewerbung: ${q.posting.title}`)}`},[y(p(j)),h[11]||=u(` E-Mail schreiben`,-1)],8,de)]),_:1})],64)):q.posting.apply_mode===`link`&&q.posting.apply_url?(x(),l(p(r),{key:3,class:`w-full`,"as-child":``},{default:b(()=>[d(`a`,{href:q.posting.apply_url,target:`_blank`,rel:`noopener`},[y(p(T)),h[13]||=u(` Zur Bewerbung`,-1)],8,fe)]),_:1})):(x(),f(`p`,pe,`Bitte wenden Sie sich an die Ansprechperson.`)),q.posting.contact?(x(),f(`div`,me,[h[14]||=d(`p`,{class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},`Ansprechperson`,-1),y(p(v),{href:`/personen/${q.posting.contact.id}`,class:`flex items-center gap-3 hover:underline`},{default:b(()=>[y(L,{person:q.posting.contact,class:`size-10`},null,8,[`person`]),d(`span`,he,[d(`span`,ge,c(q.posting.contact.name),1),q.posting.contact.job_title?(x(),f(`span`,_e,c(q.posting.contact.job_title),1)):C(``,!0)])]),_:1},8,[`href`]),d(`p`,ve,[q.posting.contact.email?(x(),f(`a`,{key:0,href:`mailto:${q.posting.contact.email}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[y(p(j),{class:`size-3.5`}),u(` `+c(q.posting.contact.email),1)],8,ye)):C(``,!0),q.posting.contact.phone?(x(),f(`a`,{key:1,href:`tel:${q.posting.contact.phone}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[y(p(O),{class:`size-3.5`}),u(` `+c(q.posting.contact.phone),1)],8,be)):C(``,!0)])])):C(``,!0)]),_:1}),Y.value.length?(x(),l(N,{key:0,title:`Auf einen Blick`},{default:b(()=>[d(`dl`,xe,[(x(!0),f(S,null,m(Y.value,([e,t])=>(x(),f(`div`,{key:e},[d(`dt`,Se,c(e),1),d(`dd`,null,c(t),1)]))),128))])]),_:1})):C(``,!0)])]),y(p(n),{open:Z.value,"onUpdate:open":h[5]||=e=>Z.value=e},{default:b(()=>[y(p(te),{class:`sm:max-w-lg`},{default:b(()=>[y(p(ee),null,{default:b(()=>[y(p(s),null,{default:b(()=>[u(`Bewerbung: `+c(q.posting.title),1)]),_:1}),y(p(o),null,{default:b(()=>[...h[15]||=[u(`Ihre Angaben aus dem Profil (Name, Funktion, Abteilung) werden mitgeschickt. Vertraulich – nur für die Ansprechperson bzw. die Personalabteilung.`,-1)]]),_:1})]),_:1}),d(`form`,{class:`grid gap-4`,onSubmit:_(Oe,[`prevent`])},[y(F,{id:`apply-message`,label:`Nachricht`,error:p($).errors.message,hint:`Warum interessiert Sie die Stelle? Was bringen Sie mit?`},{default:b(()=>[y(p(a),{id:`apply-message`,modelValue:p($).message,"onUpdate:modelValue":h[1]||=e=>p($).message=e,rows:`6`,maxlength:`5000`},null,8,[`modelValue`])]),_:1},8,[`error`]),y(F,{id:`apply-file`,label:`Unterlagen (optional)`,error:p($).errors.file,hint:`z. B. Lebenslauf – PDF, Word oder OpenDocument, höchstens 10 MB.`},{default:b(()=>[d(`div`,Ce,[d(`input`,{id:`apply-file`,ref_key:`fileInput`,ref:Q,type:`file`,accept:q.accept,class:`hidden`,onChange:h[2]||=e=>p($).file=e.target.files?.[0]??null},null,40,we),y(p(r),{type:`button`,variant:`outline`,size:`sm`,onClick:h[3]||=e=>Q.value?.click()},{default:b(()=>[...h[16]||=[u(`Datei auswählen`,-1)]]),_:1}),d(`span`,Te,c(p($).file?.name??`Keine Datei`),1)])]),_:1},8,[`error`]),y(p(t),null,{default:b(()=>[y(p(r),{type:`button`,variant:`outline`,onClick:h[4]||=e=>Z.value=!1},{default:b(()=>[...h[17]||=[u(`Abbrechen`,-1)]]),_:1}),y(p(r),{type:`submit`,disabled:p($).processing||!p($).message.trim()&&!p($).file},{default:b(()=>[y(p(E)),h[18]||=u(` Bewerbung senden`,-1)]),_:1},8,[`disabled`])]),_:1}),p($).progress?(x(),f(`div`,Ee,[d(`div`,{class:`h-full bg-brand`,style:re({width:`${p($).progress.percentage}%`})},null,4)])):C(``,!0)],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{q as default}; |