PageSourceSearch

https://www.allgemeine-zeitung.de/assets/SearchInput-DH-ZtFsP.js

js allgemeine-zeitung.de collected 2026-09-24 09:02:02 UTC 3,848 bytes, 1 lines download raw bytes

1import{b6 as _,j as b,N as x,au as P,b7 as w,P as C,a1 as T,O as D,aE as O,aI as $,_ as E,r as m,o as L,c as V,a as g,w as S,g as j,t as F,aP as N}from"./index-D-iuxWOd.js";const f=n=>{if(!n)return"";const e=[];let a=1,r;const s="01230120022455012623010202";e[0]=n[0].toUpperCase();for(let c=1,l=n.length;c<l&&(r=n[c].toUpperCase().charCodeAt(0)-65,!(r>=0&&r<=25&&s[r]!=="0"&&(s[r]!==e[a-1]&&(e[a]=s[r],a+=1),a>5)));c+=1);if(a<=5)for(;a<=5;)e[a]="0",a+=1;return e.join("")};function y(n,t="term"){var a,r;const e=((r=(a=n.$route)==null?void 0:a.query)==null?void 0:r[t])||"";if(Array.isArray(e)&&e.length>0&&typeof e[0]=="string"){const[s]=e;return typeof s=="string"?s:""}return typeof e=="string"?e:""}function M(n,t){const e=o=>o.replace(/[+\-/\\(){}'[\]<>!§$%&=?*#€¿_"„“ .,:;]/g,""),a=(o,i)=>{const p=e(i),u=o&&e(o);return(u==null?void 0:u.toLowerCase().includes(p.toLowerCase()))||!1},r=o=>o.soundexKeys.includes(f(t))||a(o.title,t),s=o=>o.children.length?o.children.some(r)||o.children.some(i=>s(i)):!1,c=o=>r(o)||s(o),l=o=>{var i,p;return((p=(i=o.children)==null?void 0:i.filter(u=>c(u)))==null?void 0:p.map(u=>({...u,children:l(u)})))??[]};return n==null?void 0:n.reduce((o,i)=>{if(c(i)){const p={...i,children:l(i)};o.push(p)}return o},[])}function q(n){return n?n.split(" ").filter(e=>e.length>2).map(e=>f(e)).concat(f(n)):void 0}function K(n){const t=[];return n.forEach(e=>{var s;const a=q(e.title),r={...e,children:"children"in e&&((s=e.children)!=null&&s.length)?K(e.children):[],soundexKeys:a||[]};t.push(r)}),t}function U(n){const t=[];return n.forEach(e=>{var a;e&&((!("children"in e)||"children"in e&&((a=e==null?void 0:e.children)==null?void 0:a.length)===0)&&t.push(e),"children"in e&&e.children&&e.children.forEach(r=>{var s;(!("children"in r)||((s=r.children)==null?void 0:s.length)===0)&&t.push(r),"children"in r&&r.children&&r.children.forEach(c=>{t.push(c)})}))}),t}function v(n){return!!_.find(t=>t===n)}var A=Object.defineProperty,W=Object.getOwnPropertyDescriptor,d=(n,t,e,a)=>{for(var r=a>1?void 0:a?W(t,e):t,s=n.length-1,c;s>=0;s--)(c=n[s])&&(r=(a?c(t,e,r):c(r))||r);return a&&r&&A(t,e,r),r};let h=class extends b(x){constructor(){super(...arguments),this.emits=["onSearchInputChange","onSearchInputSubmit"],this.searchTerm=""}created(){this.searchTerm=y(this)}onPropertyChanged(){this.searchTerm=y(this),this.inPlace||(this.searchTerm="")}handleSubmit(t){if(t&&t.target instanceof HTMLElement){const e=t.target.querySelector(":focus");e&&e instanceof HTMLInputElement&&e.blur()}if(this.$emit("onSearchInputSubmit",this.searchTerm,t),!this.inPlace){const e={name:P.search.name,query:{term:this.searchTerm,tab:w}};this.navigate(e)}}handleInput(){this.$emit("onSearchInputChange",this.searchTerm)}};d([C({default:!1,type:Boolean})],h.prototype,"inPlace",2);d([C()],h.prototype,"label",2);d([T("$route.query")],h.prototype,"onPropertyChanged",1);d([T("searchTerm")],h.prototype,"handleInput",1);h=d([D({name:"SearchInput",components:{DnmIcon:O,DnmInputField:$}})],h);function k(n,t,e,a,r,s){const c=m("DnmIcon"),l=m("DnmInputField");return L(),V("form",{onSubmit:t[1]||(t[1]=N((...o)=>n.handleSubmit&&n.handleSubmit(...o),["prevent"])),role:"search"},[g(l,{modelValue:n.searchTerm,"onUpdate:modelValue":t[0]||(t[0]=o=>n.searchTerm=o),onOnIconClick:n.handleSubmit,class:"searchInput",autocomplete:"off"},{icon:S(()=>[g(c,{"icon-name":"search","icon-style":"regular"})]),default:S(()=>[j(" "+F(n.label),1)]),_:1},8,["modelValue","onOnIconClick"])],32)}const R=E(h,[["render",k],["__scopeId","data-v-9739caf3"]]);var I;try{"__c"in h&&((I=h.__c).componentFileName??(I.componentFileName=Object.create(null)),Object.defineProperty(h.__c,"componentFileName",{value:"app/components/search/searchInput/SearchInput.vue"}))}catch(n){console.error("injectFileNamePlugin",n)}export{R as S,M as a,U as b,K as f,v as i,y as p};

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.