Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-g0PkYo7M.js
Friederich Loheide 4d0a2984ec
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Failing after 9m9s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Failing after 9m19s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Failing after 10m30s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Failing after 11m5s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m54s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 10m57s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 45s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 11m44s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m20s
Wissen, Service, Gremien-Baustein und Menü-Vorschlag (0.56.0)
Übersichtsseiten /wissen und /service (Hubs, im Admin pflegbar), Baustein
„Mitglieder mit Rolle“, Menü-Vorschlag für die Mitarbeiter-App.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-30 16:03:08 +00:00

1 line
No EOL
4.6 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,P as t,W as n}from"./ui-DY0WbyhT.js";import{At as r,C as i,O as a,S as o,T as s,Tt as c,Y as l,_t as u,i as d,k as f,o as p,ot as m,p as h,q as g,rt as _,st as v,v as y,w as b,x}from"./framework-Cy4cevSy.js";import{t as S}from"./file-user-BjIENLn9.js";import{t as C}from"./plus-BkVfuiNS.js";import{Ot as w,U as T,c as E,d as D,o as O,u as k}from"./app-D4jKeWlM.js";import{t as A}from"./JobFacts-DqDBiLWV.js";var j={key:0,class:`mb-6 grid gap-3 rounded-lg border bg-card p-3 sm:grid-cols-2 lg:grid-cols-[minmax(0,1.5fr)_repeat(3,minmax(0,1fr))]`},M={class:`relative`},N={key:1,class:`grid gap-3`},P={class:`hidden size-11 shrink-0 place-items-center rounded-lg bg-brand-soft text-brand-text sm:grid`},F={class:`min-w-0 flex-1`},I={class:`flex flex-wrap items-center gap-2`},L={class:`text-base font-semibold break-words group-hover:underline`},R={key:0,class:`rounded-pill bg-brand px-2 py-0.5 text-[11px] font-semibold text-brand-foreground`},z={key:1,class:`inline-flex items-center gap-1 rounded-pill bg-emerald-100 px-2 py-0.5 text-[11px] font-semibold text-emerald-800 dark:bg-emerald-950 dark:text-emerald-300`},B={key:2,class:`rounded-lg border border-dashed bg-card`},V={__name:`Index`,props:{postings:{type:Array,required:!0},filters:{type:Object,required:!0},canManage:{type:Boolean,default:!1},myApplications:{type:Number,default:0}},setup(V){let H=V,U=p();_(()=>U.props.flash.status,e=>e&&n.success(e),{immediate:!0});let W=u(``),G=u(null),K=u(null),q=u(null),J=e=>String(e??``).toLocaleLowerCase(`de-DE`).normalize(`NFD`).replace(/[̀-ͯ]/g,``),Y=x(()=>H.postings.filter(e=>(!G.value||e.department===G.value)&&(!K.value||e.location===K.value)&&(!q.value||e.employment===q.value)&&(!W.value.trim()||J(`${e.title} ${e.department??``} ${e.location??``}`).includes(J(W.value.trim()))))),X=x(()=>W.value||G.value||K.value||q.value),Z=e=>Date.now()-new Date(e.published_at)<6048e5;function Q(){W.value=``,G.value=K.value=q.value=null}return(n,u)=>(g(),i(k,{title:`Stellen`},{default:m(()=>[f(D,{title:`Interne Stellen`,description:`Offene Stellen im Unternehmen – für Ihren nächsten Schritt.`},{actions:m(()=>[V.myApplications?(g(),i(c(t),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:m(()=>[f(c(d),{href:`/stellen/meine-bewerbungen`},{default:m(()=>[f(c(S)),a(` Meine Bewerbungen (`+r(V.myApplications)+`)`,1)]),_:1})]),_:1})):b(``,!0),V.canManage?(g(),i(c(t),{key:1,class:`h-10`,"as-child":``},{default:m(()=>[f(c(d),{href:`/redaktion/stellen/neu`},{default:m(()=>[f(c(C)),u[4]||=a(` Stelle ausschreiben`,-1)]),_:1})]),_:1})):b(``,!0)]),_:1}),V.postings.length?(g(),s(`div`,j,[o(`div`,M,[f(c(T),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),v(o(`input`,{"onUpdate:modelValue":u[0]||=e=>W.value=e,type:`search`,placeholder:`Stelle suchen …`,"aria-label":`Stellen durchsuchen`,class:`h-9 w-full rounded-md border border-input bg-card pr-3 pl-9 text-sm shadow-xs focus-visible:border-brand-400 focus-visible:ring-3 focus-visible:ring-ring/30 focus-visible:outline-none`},null,512),[[h,W.value]])]),f(O,{modelValue:G.value,"onUpdate:modelValue":u[1]||=e=>G.value=e,options:V.filters.departments.map(e=>({value:e,label:e})),placeholder:`Alle Bereiche`,"aria-label":`Bereich`},null,8,[`modelValue`,`options`]),f(O,{modelValue:K.value,"onUpdate:modelValue":u[2]||=e=>K.value=e,options:V.filters.locations.map(e=>({value:e,label:e})),placeholder:`Alle Standorte`,"aria-label":`Standort`},null,8,[`modelValue`,`options`]),f(O,{modelValue:q.value,"onUpdate:modelValue":u[3]||=e=>q.value=e,options:V.filters.employments,placeholder:`Jeder Umfang`,"aria-label":`Umfang`},null,8,[`modelValue`,`options`])])):b(``,!0),Y.value.length?(g(),s(`ul`,N,[(g(!0),s(y,null,l(Y.value,t=>(g(),s(`li`,{key:t.id},[f(c(d),{href:t.url,class:`group flex items-start gap-4 rounded-lg border bg-card p-4 transition-shadow hover:shadow-md sm:p-5`},{default:m(()=>[o(`span`,P,[f(c(w),{class:`size-5`})]),o(`div`,F,[o(`div`,I,[o(`h2`,L,r(t.title),1),Z(t)?(g(),s(`span`,R,`Neu`)):b(``,!0),t.applied?(g(),s(`span`,z,[f(c(e),{class:`size-3`}),u[5]||=a(` Beworben`,-1)])):b(``,!0)]),f(A,{posting:t,class:`mt-1.5`},null,8,[`posting`])])]),_:2},1032,[`href`])]))),128))])):(g(),s(`div`,B,[f(E,{icon:c(w),title:X.value?`Keine passende Stelle`:`Derzeit keine offenen Stellen`,text:X.value?`Mit anderen Filtern gibt es vielleicht Treffer.`:`Neue Stellen erscheinen hier – Sie werden benachrichtigt.`},{default:m(()=>[X.value?(g(),i(c(t),{key:0,variant:`outline`,class:`mt-4`,onClick:Q},{default:m(()=>[...u[6]||=[a(`Filter zurücksetzen`,-1)]]),_:1})):b(``,!0)]),_:1},8,[`icon`,`title`,`text`])]))]),_:1}))}};export{V as default};