Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 8m15s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 8m10s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m23s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m1s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 49s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
Das Portal legt den Rahmen selbst um jede Plugin-Seite; AppLayout aus @inhaus/ui setzt dort nur noch den Titel. Detailseiten nutzen PageHeader. 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 ee,P as n,S as te,T as r,W as i,j as a,w as o,x as s}from"./ui-DTELwomD.js";import{C as c,E as ne,O as l,Ot as re,S as u,T as d,Y as f,_t as p,a as m,g as h,i as g,k as _,kt as v,o as ie,ot as y,q as b,rt as ae,s as oe,v as x,w as S,wt as C,x as w}from"./framework-CFqPLBV8.js";import{t as T}from"./external-link-BGhbJk8l.js";import{t as E}from"./send-BEFYa2vh.js";import{G as D,N as O,S as k,W as A,d as j,g as M,ht as N,l as P,s as F,tt as I,u as L}from"./app-DIZuUM-n.js";import{t as R}from"./JobFacts-WemAid1d.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?k(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=p(!1),Q=p(null),$=m({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,p)=>(b(),c(j,{title:q.posting.title},{default:y(()=>[_(L,{title:q.posting.title,breadcrumbs:[{label:`Interne Stellen`,href:`/stellen`}]},ne({description:y(()=>[_(R,{posting:q.posting},null,8,[`posting`])]),_:2},[q.applicationsUrl||q.editUrl?{name:`actions`,fn:y(()=>[q.applicationsUrl?(b(),c(C(n),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:y(()=>[_(C(g),{href:q.applicationsUrl},{default:y(()=>[_(C(O)),l(` Bewerbungen (`+v(q.applicationsCount)+`)`,1)]),_:1},8,[`href`])]),_:1})):S(``,!0),q.editUrl?(b(),c(C(n),{key:1,variant:`outline`,size:`sm`,"as-child":``},{default:y(()=>[_(C(g),{href:q.editUrl},{default:y(()=>[_(C(D)),p[6]||=l(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):S(``,!0)]),key:`0`}:void 0]),1032,[`title`]),X[q.posting.status]?(b(),d(`p`,z,v(X[q.posting.status]),1)):S(``,!0),u(`div`,B,[u(`article`,V,[q.posting.description?(b(),d(`div`,{key:0,class:`prose prose-neutral max-w-none break-words dark:prose-invert`,innerHTML:q.posting.description},null,8,H)):S(``,!0),q.posting.pdf?(b(),d(`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`},[_(C(N),{class:`size-4 text-red-600`}),p[7]||=l(` Ausschreibung als PDF `,-1),u(`span`,W,v(q.posting.pdf.name),1)],8,U)):S(``,!0)]),u(`aside`,G,[_(P,{title:`Bewerbung`},{default:y(()=>[q.application?(b(),d(x,{key:0},[u(`p`,se,[_(C(e),{class:`size-4`}),l(` Beworben am `+v(C(k)(q.application.created_at)),1)]),u(`p`,K,[p[8]||=l(`Stand: `,-1),u(`strong`,null,v(q.application.status_label),1)]),q.application.status===`received`?(b(),c(C(n),{key:0,variant:`ghost`,size:`sm`,class:`mt-3 -ml-2 text-destructive hover:text-destructive`,onClick:ke},{default:y(()=>[...p[9]||=[l(`Bewerbung zurückziehen`,-1)]]),_:1})):S(``,!0)],64)):q.posting.apply_mode===`online`?(b(),d(x,{key:1},[u(`p`,ce,`Bewerben Sie sich direkt hier – vertraulich an `+v(q.posting.contact?q.posting.contact.name:`die Personalabteilung`)+`.`,1),_(C(n),{class:`mt-4 w-full`,disabled:!q.canApply,onClick:p[0]||=e=>Z.value=!0},{default:y(()=>[_(C(E)),p[10]||=l(` Jetzt bewerben`,-1)]),_:1},8,[`disabled`]),!q.canApply&&q.posting.status!==`open`?(b(),d(`p`,le,`Bewerben ist gerade nicht möglich.`)):S(``,!0)],64)):q.posting.apply_mode===`email`&&q.posting.apply_email?(b(),d(x,{key:2},[p[12]||=u(`p`,{class:`text-sm text-muted-foreground`},`Bitte schicken Sie Ihre Bewerbung per E-Mail an:`,-1),u(`p`,ue,v(q.posting.apply_email),1),_(C(n),{class:`mt-4 w-full`,"as-child":``},{default:y(()=>[u(`a`,{href:`mailto:${q.posting.apply_email}?subject=${encodeURIComponent(`Bewerbung: ${q.posting.title}`)}`},[_(C(I)),p[11]||=l(` E-Mail schreiben`,-1)],8,de)]),_:1})],64)):q.posting.apply_mode===`link`&&q.posting.apply_url?(b(),c(C(n),{key:3,class:`w-full`,"as-child":``},{default:y(()=>[u(`a`,{href:q.posting.apply_url,target:`_blank`,rel:`noopener`},[_(C(T)),p[13]||=l(` Zur Bewerbung`,-1)],8,fe)]),_:1})):(b(),d(`p`,pe,`Bitte wenden Sie sich an die Ansprechperson.`)),q.posting.contact?(b(),d(`div`,me,[p[14]||=u(`p`,{class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},`Ansprechperson`,-1),_(C(g),{href:`/personen/${q.posting.contact.id}`,class:`flex items-center gap-3 hover:underline`},{default:y(()=>[_(M,{person:q.posting.contact,class:`size-10`},null,8,[`person`]),u(`span`,he,[u(`span`,ge,v(q.posting.contact.name),1),q.posting.contact.job_title?(b(),d(`span`,_e,v(q.posting.contact.job_title),1)):S(``,!0)])]),_:1},8,[`href`]),u(`p`,ve,[q.posting.contact.email?(b(),d(`a`,{key:0,href:`mailto:${q.posting.contact.email}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[_(C(I),{class:`size-3.5`}),l(` `+v(q.posting.contact.email),1)],8,ye)):S(``,!0),q.posting.contact.phone?(b(),d(`a`,{key:1,href:`tel:${q.posting.contact.phone}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[_(C(A),{class:`size-3.5`}),l(` `+v(q.posting.contact.phone),1)],8,be)):S(``,!0)])])):S(``,!0)]),_:1}),Y.value.length?(b(),c(P,{key:0,title:`Auf einen Blick`},{default:y(()=>[u(`dl`,xe,[(b(!0),d(x,null,f(Y.value,([e,t])=>(b(),d(`div`,{key:e},[u(`dt`,Se,v(e),1),u(`dd`,null,v(t),1)]))),128))])]),_:1})):S(``,!0)])]),_(C(ee),{open:Z.value,"onUpdate:open":p[5]||=e=>Z.value=e},{default:y(()=>[_(C(r),{class:`sm:max-w-lg`},{default:y(()=>[_(C(te),null,{default:y(()=>[_(C(s),null,{default:y(()=>[l(`Bewerbung: `+v(q.posting.title),1)]),_:1}),_(C(o),null,{default:y(()=>[...p[15]||=[l(`Ihre Angaben aus dem Profil (Name, Funktion, Abteilung) werden mitgeschickt. Vertraulich – nur für die Ansprechperson bzw. die Personalabteilung.`,-1)]]),_:1})]),_:1}),u(`form`,{class:`grid gap-4`,onSubmit:h(Oe,[`prevent`])},[_(F,{id:`apply-message`,label:`Nachricht`,error:C($).errors.message,hint:`Warum interessiert Sie die Stelle? Was bringen Sie mit?`},{default:y(()=>[_(C(a),{id:`apply-message`,modelValue:C($).message,"onUpdate:modelValue":p[1]||=e=>C($).message=e,rows:`6`,maxlength:`5000`},null,8,[`modelValue`])]),_:1},8,[`error`]),_(F,{id:`apply-file`,label:`Unterlagen (optional)`,error:C($).errors.file,hint:`z. B. Lebenslauf – PDF, Word oder OpenDocument, höchstens 10 MB.`},{default:y(()=>[u(`div`,Ce,[u(`input`,{id:`apply-file`,ref_key:`fileInput`,ref:Q,type:`file`,accept:q.accept,class:`hidden`,onChange:p[2]||=e=>C($).file=e.target.files?.[0]??null},null,40,we),_(C(n),{type:`button`,variant:`outline`,size:`sm`,onClick:p[3]||=e=>Q.value?.click()},{default:y(()=>[...p[16]||=[l(`Datei auswählen`,-1)]]),_:1}),u(`span`,Te,v(C($).file?.name??`Keine Datei`),1)])]),_:1},8,[`error`]),_(C(t),null,{default:y(()=>[_(C(n),{type:`button`,variant:`outline`,onClick:p[4]||=e=>Z.value=!1},{default:y(()=>[...p[17]||=[l(`Abbrechen`,-1)]]),_:1}),_(C(n),{type:`submit`,disabled:C($).processing||!C($).message.trim()&&!C($).file},{default:y(()=>[_(C(E)),p[18]||=l(` Bewerbung senden`,-1)]),_:1},8,[`disabled`])]),_:1}),C($).progress?(b(),d(`div`,Ee,[u(`div`,{class:`h-full bg-brand`,style:re({width:`${C($).progress.percentage}%`})},null,4)])):S(``,!0)],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{q as default}; |