Loheide-eu-mitarbeiterplatt.../public/build/assets/Applications-vBwkHRiZ.js
Friederich Loheide e211db9f30
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 7m34s
CI / PHP 8.3 / mysql:8.4-1 (pull_request) Successful in 11m55s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 16m43s
CI / Build-Artefakte aktuell (pull_request) Successful in 13m17s
Automatische Updates, Browser-Tests, CI grün (0.63.0)
- Opt-in „Updates automatisch installieren“ (AutoUpdate, alle 10 Minuten)
- Playwright-Tests in tests/Browser, CI-Job „Browser-Tests“
- CI: volle Matrix nur auf main, PRs mit einem MySQL-Job
- MySQL-JSON-Reihenfolge in zwei Tests, QM-Suchausschnitt ohne <mark>, h1 auf Startseite/Editor

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 17:29:20 +00:00

1 line
No EOL
3.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{P as e,W as t}from"./ui-DY0WbyhT.js";import{At as n,C as r,O as i,S as a,T as o,Tt as s,Y as c,g as l,gt as u,i as d,k as f,o as p,ot as m,p as h,q as g,rt as _,s as v,st as y,v as b,w as x}from"./framework-Cy4cevSy.js";import{t as S}from"./download-DX0LYnLx.js";import{E as C,L as w,at as T,c as E,f as D,p as O,u as k,v as A}from"./app-DIfqLuac.js";var j={key:0,class:`grid gap-4`},M={class:`flex flex-wrap items-start gap-4`},N={class:`min-w-0 flex-1`},P={class:`text-[13px] text-muted-foreground`},F={class:`text-xs text-muted-foreground`},I={class:`flex flex-wrap gap-2`},L=[`href`],R=[`href`],z={key:0,class:`mt-4 rounded-md bg-muted/60 px-4 py-3 text-sm leading-relaxed break-words whitespace-pre-line`},B=[`onSubmit`],V={class:`grid gap-1 text-[13px] font-medium`},H={class:`grid gap-1 text-[13px] font-medium`},U=[`onUpdate:modelValue`],W={key:1,class:`rounded-lg border border-dashed bg-card`},G={__name:`Applications`,props:{posting:{type:Object,required:!0},applications:{type:Array,required:!0},statuses:{type:Array,required:!0}},setup(G){let K=G,q=p();_(()=>q.props.flash.status,e=>e&&t.success(e));let J=u(Object.fromEntries(K.applications.map(e=>[e.id,{status:e.status,note:e.note??``}])));function Y(e){v.put(`/redaktion/stellen/bewerbungen/${e.id}`,J[e.id],{preserveScroll:!0})}return(t,u)=>(g(),r(D,{title:`Bewerbungen: ${G.posting.title}`},{default:m(()=>[f(O,{title:`Bewerbungen (${G.applications.length})`,description:G.posting.title,breadcrumbs:[{label:`Stellen`,href:`/stellen`},{label:G.posting.title,href:G.posting.url}]},null,8,[`title`,`description`,`breadcrumbs`]),G.applications.length?(g(),o(`ul`,j,[(g(!0),o(b,null,c(G.applications,t=>(g(),o(`li`,{key:t.id,class:`rounded-lg border bg-card p-5`},[a(`div`,M,[f(A,{person:t.person,class:`size-11`},null,8,[`person`]),a(`div`,N,[f(s(d),{href:`/personen/${t.person.id}`,class:`font-semibold hover:underline`},{default:m(()=>[i(n(t.person.name),1)]),_:2},1032,[`href`]),a(`p`,P,n([t.person.job_title,t.person.department].filter(Boolean).join(` · `)||`–`),1),a(`p`,F,`Eingegangen am `+n(s(C)(t.created_at)),1)]),a(`div`,I,[t.file?(g(),r(s(e),{key:0,variant:`outline`,size:`sm`,"as-child":``},{default:m(()=>[a(`a`,{href:t.file.url},[f(s(S)),i(` `+n(t.file.name),1)],8,L)]),_:2},1024)):x(``,!0),f(s(e),{variant:`outline`,size:`sm`,"as-child":``},{default:m(()=>[a(`a`,{href:`mailto:${t.person.email}`},[f(s(T)),u[0]||=i(` E-Mail`,-1)],8,R)]),_:2},1024)])]),t.message?(g(),o(`p`,z,n(t.message),1)):x(``,!0),a(`form`,{class:`mt-4 grid gap-3 border-t pt-4 sm:grid-cols-[12rem_minmax(0,1fr)_auto] sm:items-end`,onSubmit:l(e=>Y(t),[`prevent`])},[a(`label`,V,[u[1]||=i(`Stand `,-1),f(E,{modelValue:J[t.id].status,"onUpdate:modelValue":e=>J[t.id].status=e,options:G.statuses},null,8,[`modelValue`,`onUpdate:modelValue`,`options`])]),a(`label`,H,[u[2]||=i(`Interne Notiz `,-1),y(a(`input`,{"onUpdate:modelValue":e=>J[t.id].note=e,maxlength:`5000`,placeholder:`nur für die Bearbeitung sichtbar`,class:`h-9 rounded-md border border-input bg-card px-3 text-sm font-normal focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-ring/30`},null,8,U),[[h,J[t.id].note]])]),f(s(e),{type:`submit`,size:`sm`,class:`h-9`},{default:m(()=>[...u[3]||=[i(`Speichern`,-1)]]),_:1})],40,B)]))),128))])):(g(),o(`div`,W,[f(k,{icon:s(w),title:`Noch keine Bewerbungen`},null,8,[`icon`])]))]),_:1},8,[`title`]))}};export{G as default};