Loheide-eu-mitarbeiterplatt.../public/build/assets/Applications-CSVokr9Y.js
Friederich Loheide e191fb03b0
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m55s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m3s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 7m20s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 7m44s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m13s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m13s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m0s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 43s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Neuer Seitenrahmen (0.50.0)
Bleibendes Inertia-Layout (PortalFrame) mit festem Seitenkopf-Bereich;
PageHeader teleportiert dorthin, AppLayout meldet Titel und Seitenvorlage
(default/medium/narrow/app). Seiten ohne Kopf bekommen einen vom Rahmen.

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