1import{d as I,u as m,r as h,s as w,I as R,c as d,g as o,w as n,y as s,o as i,a as e,B as g,C as D,D as C,h as v,t as _,F,z as j,f as E,k as M,l as V,m as A,p as L,q as Z}from"./messages.en-D-2afRE_.js";import{a as z}from"./axios-B4uVmeYG.js";import{o as K}from"./index-DJhC8d7Z.js";import{t as N,o as O,s as P,u as H,F as U,_ as G}from"./FormControl.vue_vue_type_script_setup_true_lang-s3EW5iQ_.js";import{_ as J}from"./FormItem.vue_vue_type_script_setup_true_lang-DMD0S4yf.js";import{_ as W,a as X,b as Y,c as ee}from"./DropdownMenuTrigger.vue_vue_type_script_setup_true_lang-CjZUuZPI.js";import{u as te}from"./index-FRCUWfIr.js";import"./utils-DMvbdbPS.js";const ae={class:"relative w-full","data-search-dropdown-menu-container":""},se={class:"relative w-full flex items-center text-anthrazit bg-secondary-50 rounded-full overflow-hidden"},re=["placeholder","onKeyup"],oe=["disabled"],ne={key:0,class:"w-full flex items-center justify-center py-4 text-anthrazit"},le={key:1,class:"font-bold text-center"},ie=I({__name:"SearchDropdownApp",setup(pe){const b=m("searchInputEl"),p=h([]),c=h(!0),l=h(!1),x=N(O({searchQuery:P()})),{values:r,meta:q}=H({validationSchema:x}),T=w(()=>!r.searchQuery||!r.searchQuery.length),f=()=>{window.location.assign(`${window.location.origin}/search.html?q=${encodeURIComponent(r.searchQuery)}`)},S=a=>{l.value&&b.value.focus()},k=te(async a=>{const t=await z.get("/api/search",{params:{query:a}});p.value=t.data.data}),B=w(()=>!!(q.value.touched&&p.value.length<=0&&!c.value)),Q=async()=>{c.value=!0,await k(r.searchQuery),c.value=!1};R(()=>{r.searchQuery&&r.searchQuery.length>0?(Q(),l.value=!0):l.value=!1});const $=m("dropdown");return K($,a=>{a.target&&jQuery(a.target).closest("[data-search-dropdown-menu-container]").length<1&&(l.value=!1)}),(a,t)=>(i(),d("div",ae,[o(s(ee),{ref:"dropdown",open:l.value,modal:!1},{default:n(()=>[e("section",se,[o(s(W),{class:"absolute left-3 h-10 pl-1",disabled:!0}),e("form",{onSubmit:g(f,["prevent"]),class:"flex-1",autocomplete:"off"},[o(s(U),{name:"searchQuery"},{default:n(({field:u})=>[o(s(J),null,{default:n(()=>[o(s(G),null,{default:n(()=>[e("input",D({ref:"searchInputEl",class:"w-full px-4 py-3 text-xs placeholder:font-normal outline-none border-none bg-transparent",type:"text",placeholder:a.$t("menu.Search")},u,{onBlur:S,onKeyup:C(g(f,["prevent"]),["enter"])}),null,16,re)]),_:2},1024)]),_:2},1024)]),_:1})],32),e("button",{class:"group flex items-center justify-center mr-3.5 cursor-pointer disabled:opacity-50",onClick:f,disabled:T.value},t[0]||(t[0]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",class:"w-[18px] h-[18px] hover:scale-125 transition-transform group-disabled:transition-none group-disabled:scale-100",viewBox:"0 -960 960 960",fill:"currentcolor"},[e("path",{d:"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z"})],-1)]),8,oe)]),o(s(X),{class:"w-[440px] overflow-visible relative shadow-none drop-shadow-[0_0_25px_rgba(0,0,0,0.1)]",align:"start",alignOffset:18,sideOffset:16},{default:n(()=>[t[3]||(t[3]=e("span",{class:"absolute inline-block -top-2 -left-2 rotate-45 border-l-[12px] border-l-transparent border-r-[12px] border-r-transparent border-t-[12px] border-t-white"},null,-1)),c.value?(i(),d("p",ne,t[1]||(t[1]=[e("svg",{class:"animate-spin mr-2 text-primary-500",xmlns:"http://www.w3.org/2000/svg",height:"24px",viewBox:"0 -960 960 960",width:"24px",fill:"currentcolor"},[e("path",{d:"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 86T480-80Z"})],-1),v(" Searching... ")]))):B.value?(i(),d("p",le,_(a.$t("search.results_not_found")),1)):(i(!0),d(F,{key:2},j(p.value,u=>(i(),E(s(Y),{as:"a",href:u.link,class:"flex items-center justify-between text-sm font-bold"},{default:n(()=>[v(_(u.title)+" ",1),t[2]||(t[2]=e("span",{class:"ml-6 w-6 min-w-6"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",fill:"currentcolor"}
1,[e("path",{d:"m700-300-57-56 84-84H120v-80h607l-83-84 57-56 179 180-180 180Z"})])],-1))]),_:2},1032,["href"]))),256))]),_:1})]),_:1},8,["open"])]))}}),ce=window.location.pathname.includes("/fr/")?"fr":window.location.pathname.includes("/en/")?"en":"de",ue={de:A,fr:L,en:Z},de=M({locale:ce,fallbackLocale:"de",messages:ue}),y=V(ie);y.use(de);y.mount("#SearchDropdownApp");
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.