PageSourceSearch

https://www.neudorff.de/_nuxt/BmOEDpCS.js

js neudorff.de collected 2026-10-02 10:11:27 UTC 2,394 bytes, 1 lines download raw bytes

1import{_ as C}from"./AZ-WWSe1.js";import{aZ as E,bt as I,bq as M,aV as S,aS as $}from"#entry";import L from"./D9A-KS3R.js";import{l as V,d as p,a3 as x,Q as o,A as u,N as f,u as c,Y as b,M as N,a7 as A,a2 as v}from"./Xl1cPpil.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"c5bf15fbde86a13fd65ad51127c18fd309a57da4"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=(function(n){for(var r=1;r<arguments.length;r++){var s=arguments[r];if(s!=null)for(var t in s)s.hasOwnProperty(t)&&(n[t]=s[t])}return n})({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:neudorff":!0});var a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="9d867c03-f66a-4b5d-9a9f-066ae49fda3d",e._sentryDebugIdIdentifier="sentry-dbid-9d867c03-f66a-4b5d-9a9f-066ae49fda3d")}catch{}})();const D={class:"cmp-search-input"},R={class:"cmp-search-input__results-wrapper"},T={key:0,class:"cmp-search-input__results-item cmp-search-input__results-item--no-results"},F=V({__name:"SearchInput",async setup(e){let a,n;const r=p(null),s=p([]),t=p(""),m=$(),{locale:g}=E(),w=([a,n]=x(()=>$fetch("/api/neudorff/product-suggestions",{query:{locale:g.value}})),a=await a,n(),a);function k(h){if(t.value=h,t.value.length<3){s.value=[];return}s.value=w.filter(l=>l.name.toLowerCase().includes(t.value.toLowerCase())).map(l=>{const i=new RegExp(S(t.value),"gi");return{name:l.name.replace(i,d=>`<strong>${d}</strong>`),slug:`${g.value==="de-de"?m.public.baseUrlDe:m.public.baseUrlAt}/produkte/${l.slug}`}})}return I(r,()=>{s.value=[],t.value=""}),(h,l)=>{const i=C,y=M,d=L;return o(),u("div",D,[f(i,{name:"search",id:"search",placeholder:"Nach Produkt suchen",modelValue:c(t),"onUpdate:modelValue":k},null,8,["modelValue"]),f(y,{icon:"search-desktop",iconSize:"l"}),c(t).length>=3?(o(),u("div",{key:0,ref_key:"resultsLayer",ref:r,class:"cmp-search-input__results cmp-search-input__results--show"},[b("div",R,[b("ul",null,[(o(!0),u(N,null,A(c(s),_=>(o(),u("li",{key:_.slug},[f(d,{class:"cmp-search-input__results-item",variant:"default",url:`${_.slug}`,label:_.name},null,8,["url","label"])]))),128)),c(t).length>=3&&!c(s).length?(o(),u("li",T," Keine Ergebnisse gefunden ")):v("",!0)])])],512)):v("",!0)])}}});export{F as _};

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.