Loheide-eu-mitarbeiterplatt.../public/build/assets/Search-D9rvWbAf.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{Nt as e}from"./ui-DY0WbyhT.js";import{At as t,C as n,Dt as r,O as i,Q as a,S as o,T as s,Tt as c,Y as l,i as u,k as d,ot as f,q as p,v as m,w as h}from"./framework-Cy4cevSy.js";import{t as g}from"./external-link-CCO7Aupk.js";import{t as _}from"./search-x-0wR3oofw.js";import{c as v,d as y,h as b,u as x,xt as S}from"./app-JMV1_L9S.js";import{t as C}from"./colors-RDOJqd57.js";import{n as w}from"./format-20VMi8w8.js";import{t as T}from"./QmSearchBox-DZnt7q_G.js";var E=e({name:`text-search`,size:24,node:[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]]}),D={key:0,class:`divide-y overflow-hidden rounded-lg border bg-card`},O={key:1,class:`grid size-10 shrink-0 place-items-center rounded-md bg-muted text-muted-foreground`},k={class:`min-w-0 flex-1`},A={class:`flex flex-wrap items-baseline gap-x-2`},j={key:0,class:`text-xs text-muted-foreground`},M={class:`text-xs text-muted-foreground`},N=[`innerHTML`],P={key:1,class:`mt-1 inline-flex items-center gap-1 text-[11px] font-medium text-brand-text`},F={key:1,class:`rounded-lg border bg-card`},I={__name:`Search`,props:{query:{type:String,default:``},results:{type:Array,default:()=>[]}},setup(e){let I=(e,t)=>e.open_kind===`view`?`${e.open_url}?suche=${encodeURIComponent(t)}`:e.open_url;return(L,R)=>(p(),n(x,{title:`Suche: ${e.query}`},{default:f(()=>[d(y,{title:e.query?`Suche: ${e.query}`:`Suche`,breadcrumbs:[{label:`Qualitätsmanagement`,href:`/qm`}],description:e.query?`${e.results.length} ${e.results.length,`Treffer`} im Qualitätsmanagement – in Titeln und im Text der Dokumente`:``},{actions:f(()=>[(p(),n(T,{key:e.query,initial:e.query},null,8,[`initial`]))]),_:1},8,[`title`,`description`]),e.results.length?(p(),s(`ul`,D,[(p(!0),s(m,null,l(e.results,l=>(p(),s(`li`,{key:l.id,class:`flex gap-3 px-4 py-3.5 hover:bg-accent/40`},[l.type===`file`?(p(),n(b,{key:0,extension:l.extension},null,8,[`extension`])):(p(),s(`span`,O,[l.type===`form`?(p(),n(c(S),{key:0,class:`size-5`})):(p(),n(c(g),{key:1,class:`size-5`}))])),o(`div`,k,[o(`div`,A,[(p(),n(a(l.open_kind===`view`?c(u):`a`),{href:I(l,e.query),target:l.open_kind===`link`?`_blank`:void 0,class:`text-[15px] font-semibold hover:underline`},{default:f(()=>[i(t(l.title),1)]),_:2},1032,[`href`,`target`])),l.version?(p(),s(`span`,j,`Version `+t(l.version),1)):h(``,!0),o(`span`,M,`Stand `+t(c(w)(l.valid_from)),1)]),d(c(u),{href:l.folder.url,class:`mt-0.5 inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground hover:underline`},{default:f(()=>[o(`span`,{class:r([`size-2 rounded-sm`,c(C)(l.folder.color).dot])},null,2),i(t(l.folder.path),1)]),_:2},1032,[`href`]),l.snippet?(p(),s(`p`,{key:0,class:`qm-snippet mt-1.5 text-[13px] leading-relaxed text-muted-foreground`,innerHTML:l.snippet},null,8,N)):h(``,!0),l.in_content?(p(),s(`p`,P,[d(c(E),{class:`size-3`}),R[0]||=i(` im Text gefunden`,-1)])):h(``,!0)])]))),128))])):e.query?(p(),s(`div`,F,[d(v,{icon:c(_),title:`Nichts gefunden`,text:`Gesucht wird in Titeln, Beschreibungen, Dateinamen und im Text der Dokumente. Eingescannte PDFs sind nur durchsuchbar, wenn die Texterkennung eingerichtet ist.`},null,8,[`icon`])])):h(``,!0)]),_:1},8,[`title`]))}};export{I as default};