Loheide-eu-mitarbeiterplatt.../public/build/assets/Show-BcwEaFxU.js
Friederich Loheide cf5b71cdd9
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m6s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m14s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m55s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m54s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m57s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m43s
Fehlerprotokoll im Systemzustand, Bilder in Stellen- und Terminbeschreibungen (0.28.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 10:32:14 +00:00

1 line
No EOL
8.9 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 re,i as m,o as ie,s as ae}from"./dist--2OKCVzt.js";import{t as oe}from"./arrow-left-DROE4wuA.js";import{t as se}from"./circle-check-K9QH5jex.js";import{t as h}from"./external-link-Ddmamed9.js";import{t as g}from"./pencil-line-5xb0u6Cg.js";import{t as _}from"./send-B_gp9Kto.js";import{n as ce}from"./lib-Be7KNAML.js";import{C as v,Ct as y,F as b,O as x,T as S,Ut as C,a as w,b as T,dt as E,i as D,kt as O,n as k,o as A,p as j,r as M,s as N,u as P}from"./app-CNTwhoXr.js";import{t as F}from"./JobFacts-tcQp42wZ.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`},K={class:`flex items-center gap-2 text-sm font-medium text-emerald-700 dark:text-emerald-400`},le={class:`mt-1 text-sm`},ue={class:`text-sm text-muted-foreground`},de={key:0,class:`mt-2 text-xs text-muted-foreground`},fe=[`href`],pe={key:3,class:`text-sm text-muted-foreground`},me={key:4,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();ee(()=>De.props.flash.status,e=>e&&ce.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?b(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),$=re({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.`)&&ae.delete(`/stellen/bewerbungen/${J.application.id}`,{preserveScroll:!0})}return(ee,o)=>(s(),d(S,{title:q.posting.title},{default:l(()=>[r(`div`,I,[e(n(m),{href:`/stellen`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:l(()=>[e(n(oe),{class:`size-4`}),o[6]||=t(` Alle Stellen`,-1)]),_:1}),r(`div`,L,[q.applicationsUrl?(s(),d(n(j),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[e(n(m),{href:q.applicationsUrl},{default:l(()=>[e(n(E)),t(` Bewerbungen (`+u(q.applicationsCount)+`)`,1)]),_:1},8,[`href`])]),_:1})):p(``,!0),q.editUrl?(s(),d(n(j),{key:1,variant:`outline`,size:`sm`,"as-child":``},{default:l(()=>[e(n(m),{href:q.editUrl},{default:l(()=>[e(n(g)),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(C),{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(v,{title:`Bewerbung`},{default:l(()=>[q.application?(s(),i(c,{key:0},[r(`p`,K,[e(n(se),{class:`size-4`}),t(` Beworben am `+u(n(b)(q.application.created_at)),1)]),r(`p`,le,[o[9]||=t(`Stand: `,-1),r(`strong`,null,u(q.application.status_label),1)]),q.application.status===`received`?(s(),d(n(j),{key:0,variant:`ghost`,size:`sm`,class:`mt-3 -ml-2 text-destructive hover:text-destructive`,onClick:ke},{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`,ue,`Bewerben Sie sich direkt hier – vertraulich an `+u(q.posting.contact?q.posting.contact.name:`die Personalabteilung`)+`.`,1),e(n(j),{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`,de,`Bewerben ist gerade nicht möglich.`)):p(``,!0)],64)):q.posting.apply_mode===`link`&&q.posting.apply_url?(s(),d(n(j),{key:2,class:`w-full`,"as-child":``},{default:l(()=>[r(`a`,{href:q.posting.apply_url,target:`_blank`,rel:`noopener`},[e(n(h)),o[12]||=t(` Zur Bewerbung`,-1)],8,fe)]),_:1})):(s(),i(`p`,pe,`Bitte wenden Sie sich an die Ansprechperson.`)),q.posting.contact?(s(),i(`div`,me,[o[13]||=r(`p`,{class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},`Ansprechperson`,-1),e(n(m),{href:`/personen/${q.posting.contact.id}`,class:`flex items-center gap-3 hover:underline`},{default:l(()=>[e(x,{person:q.posting.contact,class:`size-10`},null,8,[`person`]),r(`span`,he,[r(`span`,ge,u(q.posting.contact.name),1),q.posting.contact.job_title?(s(),i(`span`,_e,u(q.posting.contact.job_title),1)):p(``,!0)])]),_:1},8,[`href`]),r(`p`,ve,[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(O),{class:`size-3.5`}),t(` `+u(q.posting.contact.email),1)],8,ye)):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(y),{class:`size-3.5`}),t(` `+u(q.posting.contact.phone),1)],8,be)):p(``,!0)])])):p(``,!0)]),_:1}),Y.value.length?(s(),d(v,{key:0,title:`Auf einen Blick`},{default:l(()=>[r(`dl`,xe,[(s(!0),i(c,null,te(Y.value,([e,t])=>(s(),i(`div`,{key:e},[r(`dt`,Se,u(e),1),r(`dd`,null,u(t),1)]))),128))])]),_:1})):p(``,!0)])]),e(n(N),{open:Z.value,"onUpdate:open":o[5]||=e=>Z.value=e},{default:l(()=>[e(n(A),{class:`sm:max-w-lg`},{default:l(()=>[e(n(M),null,{default:l(()=>[e(n(k),null,{default:l(()=>[t(`Bewerbung: `+u(q.posting.title),1)]),_:1}),e(n(w),null,{default:l(()=>[...o[14]||=[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(Oe,[`prevent`])},[e(T,{id:`apply-message`,label:`Nachricht`,error:n($).errors.message,hint:`Warum interessiert Sie die Stelle? Was bringen Sie mit?`},{default:l(()=>[e(n(P),{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(T,{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`,Ce,[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,we),e(n(j),{type:`button`,variant:`outline`,size:`sm`,onClick:o[3]||=e=>Q.value?.click()},{default:l(()=>[...o[15]||=[t(`Datei auswählen`,-1)]]),_:1}),r(`span`,Te,u(n($).file?.name??`Keine Datei`),1)])]),_:1},8,[`error`]),e(n(D),null,{default:l(()=>[e(n(j),{type:`button`,variant:`outline`,onClick:o[4]||=e=>Z.value=!1},{default:l(()=>[...o[16]||=[t(`Abbrechen`,-1)]]),_:1}),e(n(j),{type:`submit`,disabled:n($).processing||!n($).message.trim()&&!n($).file},{default:l(()=>[e(n(_)),o[17]||=t(` Bewerbung senden`,-1)]),_:1},8,[`disabled`])]),_:1}),n($).progress?(s(),i(`div`,Ee,[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};