Loheide-eu-mitarbeiterplatt.../public/build/assets/Applications-CmO9Fk_W.js
Friederich Loheide 8acc0cfd8b
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 15m6s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 15m58s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 15m42s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 15m21s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 1h1m41s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 1h2m13s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 23m20s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 23m33s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m17s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m57s
Feed in der Mitarbeiter-App (0.54.0)
Feed-Registry mit Anbietern (Neu im Team, Neuigkeiten, Termine, Umfragen),
Schnellaktionen je nach Rechten, Nachladen über /feed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-30 14:27:23 +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{F as C,c as w,d as T,g as E,o as D,rt as O,u as k,w as A}from"./app-JMV1_L9S.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(k,{title:`Bewerbungen: ${G.posting.title}`},{default:m(()=>[f(T,{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(E,{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(A)(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(O)),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(D,{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(w,{icon:s(C),title:`Noch keine Bewerbungen`},null,8,[`icon`])]))]),_:1},8,[`title`]))}};export{G as default};