Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-D0GzBatO.js
Friederich Loheide 179471cb53
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 8m15s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m16s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 8m10s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 10m23s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 10m41s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 8m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m1s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 49s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m11s
Einheitlicher Rahmen für alle Seiten (0.49.0)
Das Portal legt den Rahmen selbst um jede Plugin-Seite; AppLayout aus
@inhaus/ui setzt dort nur noch den Titel. Detailseiten nutzen PageHeader.

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

1 line
No EOL
4.6 KiB
JavaScript
Raw Permalink 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-DTELwomD.js";import{C as r,O as i,S as a,T as o,Y as s,_t as c,i as l,k as u,kt as d,o as f,ot as p,p as m,q as h,rt as g,st as _,v,w as y,wt as b,x}from"./framework-CFqPLBV8.js";import{t as S}from"./file-user-DgHlUP34.js";import{t as C}from"./plus-DBUMooLa.js";import{Et as w,V as T,c as E,d as D,o as O,u as k}from"./app-DIZuUM-n.js";import{t as A}from"./JobFacts-WemAid1d.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=f();g(()=>U.props.flash.status,e=>e&&n.success(e),{immediate:!0});let W=c(``),G=c(null),K=c(null),q=c(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,c)=>(h(),r(D,{title:`Stellen`},{default:p(()=>[u(k,{title:`Interne Stellen`,description:`Offene Stellen im Unternehmen – für Ihren nächsten Schritt.`},{actions:p(()=>[V.myApplications?(h(),r(b(t),{key:0,variant:`outline`,class:`h-10`,"as-child":``},{default:p(()=>[u(b(l),{href:`/stellen/meine-bewerbungen`},{default:p(()=>[u(b(S)),i(` Meine Bewerbungen (`+d(V.myApplications)+`)`,1)]),_:1})]),_:1})):y(``,!0),V.canManage?(h(),r(b(t),{key:1,class:`h-10`,"as-child":``},{default:p(()=>[u(b(l),{href:`/redaktion/stellen/neu`},{default:p(()=>[u(b(C)),c[4]||=i(` Stelle ausschreiben`,-1)]),_:1})]),_:1})):y(``,!0)]),_:1}),V.postings.length?(h(),o(`div`,j,[a(`div`,M,[u(b(T),{class:`pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2 text-muted-foreground`}),_(a(`input`,{"onUpdate:modelValue":c[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),[[m,W.value]])]),u(O,{modelValue:G.value,"onUpdate:modelValue":c[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`]),u(O,{modelValue:K.value,"onUpdate:modelValue":c[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`]),u(O,{modelValue:q.value,"onUpdate:modelValue":c[3]||=e=>q.value=e,options:V.filters.employments,placeholder:`Jeder Umfang`,"aria-label":`Umfang`},null,8,[`modelValue`,`options`])])):y(``,!0),Y.value.length?(h(),o(`ul`,N,[(h(!0),o(v,null,s(Y.value,t=>(h(),o(`li`,{key:t.id},[u(b(l),{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:p(()=>[a(`span`,P,[u(b(w),{class:`size-5`})]),a(`div`,F,[a(`div`,I,[a(`h2`,L,d(t.title),1),Z(t)?(h(),o(`span`,R,`Neu`)):y(``,!0),t.applied?(h(),o(`span`,z,[u(b(e),{class:`size-3`}),c[5]||=i(` Beworben`,-1)])):y(``,!0)]),u(A,{posting:t,class:`mt-1.5`},null,8,[`posting`])])]),_:2},1032,[`href`])]))),128))])):(h(),o(`div`,B,[u(E,{icon:b(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:p(()=>[X.value?(h(),r(b(t),{key:0,variant:`outline`,class:`mt-4`,onClick:Q},{default:p(()=>[...c[6]||=[i(`Filter zurücksetzen`,-1)]]),_:1})):y(``,!0)]),_:1},8,[`icon`,`title`,`text`])]))]),_:1}))}};export{V as default};