Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-DLT-9aW0.js
Friederich Loheide 4d58364104
All checks were successful
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) Successful in 14m21s
CI / PHP 8.3 / mysql:8.4-1 (pull_request) Successful in 19m7s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 5m20s
CI / Build-Artefakte aktuell (pull_request) Successful in 5m46s
Frag das Portal als schwebende Blase, Suchliste im Bild (0.65.0)
- AskBubble unten rechts (abschaltbar), Gespräch bleibt beim Seitenwechsel
- Antwortanzeige als gemeinsame Komponente AskAnswer
- Trefferliste der Kopfzeilen-Suche in der App-Oberfläche linksbündig
- CI: optionale Kern-Plugins für Browser-Tests einschalten, Suchtest mit Demo-Inhalt

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

1 line
No EOL
4 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{Nt as e,Ot as t,P 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,V as l,W as u,Y as d,_t as f,g as p,h as m,k as h,ot as g,p as _,q as v,st as y,v as b,w as x}from"./framework-Cy4cevSy.js";import{G as S,d as C,f as w,p as T,v as E,y as D}from"./app-k1_9tffg.js";var O=e({name:`message-circle-question-mark`,size:24,node:[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`message-circle-question`]}),k={class:`grid min-w-0 grid-cols-1 gap-5`},A={class:`flex flex-col gap-2 rounded-xl border bg-card p-2 shadow-xs focus-within:border-brand-400 focus-within:ring-3 focus-within:ring-ring/30 sm:flex-row sm:items-end`},j={key:0,class:`flex flex-wrap gap-2`},M=[`onClick`],N={"aria-live":`polite`,class:`grid min-w-0 grid-cols-1 gap-5`},P={class:`flex items-center gap-3 text-muted-foreground`},F={key:1,class:`rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3 text-sm text-destructive`},I={class:`mb-3 text-sm font-medium text-muted-foreground`},L={class:`flex items-start gap-2 text-xs text-muted-foreground`},R={__name:`Index`,props:{question:{type:String,default:``},sources:{type:Array,default:()=>[]},provider:{type:String,default:null}},setup(e){let R=e,z=f(R.question),B=f(``),V=f(!1),H=f(``),U=f(null),W=f(null),G=[`Wie beantrage ich Urlaub?`,`Was mache ich bei einem Arbeitsunfall?`,`Wer ist in der Mitarbeitervertretung?`];async function K(e=z.value){let t=e.trim();if(!(t.length<3||V.value)){z.value=t,B.value=t,V.value=!0,H.value=``,U.value=null,window.history.replaceState(window.history.state,``,`/frag-das-portal?frage=${encodeURIComponent(t)}`);try{U.value=await D(t)}catch(e){H.value=e.message}finally{V.value=!1}}}return u(()=>{R.question?K(R.question):l(()=>W.value?.focus())}),(l,u)=>(v(),i(w,{title:`Frag das Portal`,width:`medium`},{default:g(()=>[h(T,{title:`Frag das Portal`,description:`Stellen Sie eine Frage – die Antwort kommt aus ${e.sources.length?e.sources.join(`, `):`den Inhalten des Portals`}.`,icon:`message-circle-question`},null,8,[`description`]),o(`div`,k,[o(`form`,{class:`grid min-w-0 gap-3`,onSubmit:u[2]||=p(e=>K(),[`prevent`])},[u[4]||=o(`label`,{for:`ask-question`,class:`sr-only`},`Ihre Frage`,-1),o(`div`,A,[y(o(`textarea`,{id:`ask-question`,ref_key:`field`,ref:W,"onUpdate:modelValue":u[0]||=e=>z.value=e,rows:`2`,maxlength:`300`,placeholder:`z. B. Wie beantrage ich eine Fortbildung?`,class:`min-h-14 w-full min-w-0 flex-1 resize-none bg-transparent px-2 py-1.5 text-base outline-none placeholder:text-muted-foreground`,onKeydown:u[1]||=m(p(e=>K(),[`exact`,`prevent`]),[`enter`])},null,544),[[_,z.value]]),h(c(n),{type:`submit`,disabled:V.value||z.value.trim().length<3,class:`shrink-0`},{default:g(()=>[V.value?(v(),i(c(t),{key:0,class:`animate-spin`})):(v(),i(c(S),{key:1})),u[3]||=a(` Fragen `,-1)]),_:1},8,[`disabled`])]),B.value?x(``,!0):(v(),s(`div`,j,[(v(),s(b,null,d(G,e=>o(`button`,{key:e,type:`button`,class:`rounded-pill border bg-card px-3.5 py-1.5 text-[13px] text-muted-foreground hover:bg-accent hover:text-foreground`,onClick:t=>K(e)},r(e),9,M)),64))]))],32),o(`div`,N,[V.value?(v(),i(C,{key:0},{default:g(()=>[o(`div`,P,[h(c(t),{class:`size-5 animate-spin text-brand`}),u[5]||=a(` Ich suche im Portal nach einer Antwort … `,-1)])]),_:1})):H.value?(v(),s(`p`,F,r(H.value),1)):U.value?(v(),i(C,{key:2},{default:g(()=>[o(`p`,I,r(B.value),1),h(E,{result:U.value},null,8,[`result`])]),_:1})):x(``,!0)]),o(`p`,L,[h(c(O),{class:`mt-px size-3.5 shrink-0`}),o(`span`,null,[u[6]||=a(` Gesucht wird nur in Inhalten, die Sie sehen dürfen. Fragen werden ohne Ihren Namen gespeichert, damit die Redaktion fehlende Inhalte ergänzen kann. `,-1),e.provider?(v(),s(b,{key:0},[a(` Die Frage und passende Textstellen werden zur Beantwortung an `+r(e.provider)+` übermittelt.`,1)],64)):x(``,!0)])])])]),_:1}))}};export{R as default};