Loheide-eu-mitarbeiterplatt.../public/build/assets/Show-C7YsaRfk.js
Friederich Loheide 800e267e1c
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m29s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m31s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 9m3s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 9m36s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m33s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m56s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 12m35s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 11m58s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 50s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m13s
Neue Seitenköpfe, global wählbar (0.48.0)
- PageHeader: Kopfband (Standard, kompakt), Kopfband mit Symbol, mit Symbol,
  kräftiger Titel – Einstellung page_header im Erscheinungsbild
- Symbol vom passenden Menüpunkt (aktiv oder per Adresse), Prop icon
- In Spalten (z. B. Downloads) schlichte Form statt Band
- Zurück-Links als breadcrumbs (IT-Service), Profil bearbeiten mit PageHeader
- Plugin-Assets: Fingerabdruck berücksichtigt Änderungszeiten der Dateien

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:05:37 +00:00

1 line
No EOL
9.3 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{At as e,C as t,D as n,P as r,S as ee,T as te,W as ne,j as i,w as a,x as o}from"./ui-DTELwomD.js";import{C as s,O as c,Ot as re,S as l,T as u,Y as ie,_t as d,a as f,g as p,i as m,k as h,kt as g,o as ae,ot as _,q as v,rt as oe,s as se,v as y,w as b,wt as x,x as S}from"./framework-CFqPLBV8.js";import{t as C}from"./arrow-left-CMu6dfzA.js";import{t as w}from"./external-link-BGhbJk8l.js";import{t as T}from"./send-BEFYa2vh.js";import{G as E,N as D,S as O,W as k,d as A,g as j,ht as M,l as N,s as P,tt as F}from"./app-DPANCdgI.js";import{t as I}from"./JobFacts-BmQwW-up.js";var L={class:`mb-5 flex flex-wrap items-center justify-between gap-3`},R={class:`flex flex-wrap gap-2`},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={class:`text-2xl leading-tight font-semibold tracking-tight break-words sm:text-3xl`},U=[`innerHTML`],W=[`href`],G={class:`text-xs font-normal text-muted-foreground`},K={class:`grid gap-6`},ce={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={class:`mt-1 text-sm font-medium break-all select-all`},pe=[`href`],me=[`href`],he={key:4,class:`text-sm text-muted-foreground`},ge={key:5,class:`mt-5 border-t pt-4`},_e={class:`min-w-0`},ve={class:`block text-sm font-medium`},ye={key:0,class:`block truncate text-xs text-muted-foreground`},be={class:`mt-2 grid gap-1 text-[13px]`},xe=[`href`],Se=[`href`],Ce={class:`grid gap-3 text-sm`},we={class:`text-xs text-muted-foreground`},Te={class:`flex items-center gap-2`},Ee=[`accept`],De={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=ae();oe(()=>ke.props.flash.status,e=>e&&ne.success(e),{immediate:!0});let Y=S(()=>[[`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?O(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=d(!1),Q=d(null),$=f({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.`)&&se.delete(`/stellen/bewerbungen/${J.application.id}`,{preserveScroll:!0})}return(ne,d)=>(v(),s(A,{title:q.posting.title},{default:_(()=>[l(`div`,L,[h(x(m),{href:`/stellen`,class:`inline-flex items-center gap-1.5 text-sm font-medium text-muted-foreground hover:text-foreground`},{default:_(()=>[h(x(C),{class:`size-4`}),d[6]||=c(` Alle Stellen`,-1)]),_:1}),l(`div`,R,[q.applicationsUrl?(v(),s(x(r),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:_(()=>[h(x(m),{href:q.applicationsUrl},{default:_(()=>[h(x(D)),c(` Bewerbungen (`+g(q.applicationsCount)+`)`,1)]),_:1},8,[`href`])]),_:1})):b(``,!0),q.editUrl?(v(),s(x(r),{key:1,variant:`outline`,size:`sm`,"as-child":``},{default:_(()=>[h(x(m),{href:q.editUrl},{default:_(()=>[h(x(E)),d[7]||=c(` Bearbeiten`,-1)]),_:1},8,[`href`])]),_:1})):b(``,!0)])]),X[q.posting.status]?(v(),u(`p`,z,g(X[q.posting.status]),1)):b(``,!0),l(`div`,B,[l(`article`,V,[l(`h1`,H,g(q.posting.title),1),h(I,{posting:q.posting,class:`mt-3`},null,8,[`posting`]),q.posting.description?(v(),u(`div`,{key:0,class:`prose prose-neutral mt-6 max-w-none break-words dark:prose-invert`,innerHTML:q.posting.description},null,8,U)):b(``,!0),q.posting.pdf?(v(),u(`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`},[h(x(M),{class:`size-4 text-red-600`}),d[8]||=c(` Ausschreibung als PDF `,-1),l(`span`,G,g(q.posting.pdf.name),1)],8,W)):b(``,!0)]),l(`aside`,K,[h(N,{title:`Bewerbung`},{default:_(()=>[q.application?(v(),u(y,{key:0},[l(`p`,ce,[h(x(e),{class:`size-4`}),c(` Beworben am `+g(x(O)(q.application.created_at)),1)]),l(`p`,le,[d[9]||=c(`Stand: `,-1),l(`strong`,null,g(q.application.status_label),1)]),q.application.status===`received`?(v(),s(x(r),{key:0,variant:`ghost`,size:`sm`,class:`mt-3 -ml-2 text-destructive hover:text-destructive`,onClick:je},{default:_(()=>[...d[10]||=[c(`Bewerbung zurückziehen`,-1)]]),_:1})):b(``,!0)],64)):q.posting.apply_mode===`online`?(v(),u(y,{key:1},[l(`p`,ue,`Bewerben Sie sich direkt hier – vertraulich an `+g(q.posting.contact?q.posting.contact.name:`die Personalabteilung`)+`.`,1),h(x(r),{class:`mt-4 w-full`,disabled:!q.canApply,onClick:d[0]||=e=>Z.value=!0},{default:_(()=>[h(x(T)),d[11]||=c(` Jetzt bewerben`,-1)]),_:1},8,[`disabled`]),!q.canApply&&q.posting.status!==`open`?(v(),u(`p`,de,`Bewerben ist gerade nicht möglich.`)):b(``,!0)],64)):q.posting.apply_mode===`email`&&q.posting.apply_email?(v(),u(y,{key:2},[d[13]||=l(`p`,{class:`text-sm text-muted-foreground`},`Bitte schicken Sie Ihre Bewerbung per E-Mail an:`,-1),l(`p`,fe,g(q.posting.apply_email),1),h(x(r),{class:`mt-4 w-full`,"as-child":``},{default:_(()=>[l(`a`,{href:`mailto:${q.posting.apply_email}?subject=${encodeURIComponent(`Bewerbung: ${q.posting.title}`)}`},[h(x(F)),d[12]||=c(` E-Mail schreiben`,-1)],8,pe)]),_:1})],64)):q.posting.apply_mode===`link`&&q.posting.apply_url?(v(),s(x(r),{key:3,class:`w-full`,"as-child":``},{default:_(()=>[l(`a`,{href:q.posting.apply_url,target:`_blank`,rel:`noopener`},[h(x(w)),d[14]||=c(` Zur Bewerbung`,-1)],8,me)]),_:1})):(v(),u(`p`,he,`Bitte wenden Sie sich an die Ansprechperson.`)),q.posting.contact?(v(),u(`div`,ge,[d[15]||=l(`p`,{class:`mb-2 text-xs font-semibold tracking-wide text-muted-foreground uppercase`},`Ansprechperson`,-1),h(x(m),{href:`/personen/${q.posting.contact.id}`,class:`flex items-center gap-3 hover:underline`},{default:_(()=>[h(j,{person:q.posting.contact,class:`size-10`},null,8,[`person`]),l(`span`,_e,[l(`span`,ve,g(q.posting.contact.name),1),q.posting.contact.job_title?(v(),u(`span`,ye,g(q.posting.contact.job_title),1)):b(``,!0)])]),_:1},8,[`href`]),l(`p`,be,[q.posting.contact.email?(v(),u(`a`,{key:0,href:`mailto:${q.posting.contact.email}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[h(x(F),{class:`size-3.5`}),c(` `+g(q.posting.contact.email),1)],8,xe)):b(``,!0),q.posting.contact.phone?(v(),u(`a`,{key:1,href:`tel:${q.posting.contact.phone}`,class:`inline-flex items-center gap-2 text-brand-text hover:underline`},[h(x(k),{class:`size-3.5`}),c(` `+g(q.posting.contact.phone),1)],8,Se)):b(``,!0)])])):b(``,!0)]),_:1}),Y.value.length?(v(),s(N,{key:0,title:`Auf einen Blick`},{default:_(()=>[l(`dl`,Ce,[(v(!0),u(y,null,ie(Y.value,([e,t])=>(v(),u(`div`,{key:e},[l(`dt`,we,g(e),1),l(`dd`,null,g(t),1)]))),128))])]),_:1})):b(``,!0)])]),h(x(n),{open:Z.value,"onUpdate:open":d[5]||=e=>Z.value=e},{default:_(()=>[h(x(te),{class:`sm:max-w-lg`},{default:_(()=>[h(x(ee),null,{default:_(()=>[h(x(o),null,{default:_(()=>[c(`Bewerbung: `+g(q.posting.title),1)]),_:1}),h(x(a),null,{default:_(()=>[...d[16]||=[c(`Ihre Angaben aus dem Profil (Name, Funktion, Abteilung) werden mitgeschickt. Vertraulich – nur für die Ansprechperson bzw. die Personalabteilung.`,-1)]]),_:1})]),_:1}),l(`form`,{class:`grid gap-4`,onSubmit:p(Ae,[`prevent`])},[h(P,{id:`apply-message`,label:`Nachricht`,error:x($).errors.message,hint:`Warum interessiert Sie die Stelle? Was bringen Sie mit?`},{default:_(()=>[h(x(i),{id:`apply-message`,modelValue:x($).message,"onUpdate:modelValue":d[1]||=e=>x($).message=e,rows:`6`,maxlength:`5000`},null,8,[`modelValue`])]),_:1},8,[`error`]),h(P,{id:`apply-file`,label:`Unterlagen (optional)`,error:x($).errors.file,hint:`z. B. Lebenslauf – PDF, Word oder OpenDocument, höchstens 10 MB.`},{default:_(()=>[l(`div`,Te,[l(`input`,{id:`apply-file`,ref_key:`fileInput`,ref:Q,type:`file`,accept:q.accept,class:`hidden`,onChange:d[2]||=e=>x($).file=e.target.files?.[0]??null},null,40,Ee),h(x(r),{type:`button`,variant:`outline`,size:`sm`,onClick:d[3]||=e=>Q.value?.click()},{default:_(()=>[...d[17]||=[c(`Datei auswählen`,-1)]]),_:1}),l(`span`,De,g(x($).file?.name??`Keine Datei`),1)])]),_:1},8,[`error`]),h(x(t),null,{default:_(()=>[h(x(r),{type:`button`,variant:`outline`,onClick:d[4]||=e=>Z.value=!1},{default:_(()=>[...d[18]||=[c(`Abbrechen`,-1)]]),_:1}),h(x(r),{type:`submit`,disabled:x($).processing||!x($).message.trim()&&!x($).file},{default:_(()=>[h(x(T)),d[19]||=c(` Bewerbung senden`,-1)]),_:1},8,[`disabled`])]),_:1}),x($).progress?(v(),u(`div`,Oe,[l(`div`,{class:`h-full bg-brand`,style:re({width:`${x($).progress.percentage}%`})},null,4)])):b(``,!0)],32)]),_:1})]),_:1},8,[`open`])]),_:1},8,[`title`]))}};export{q as default};