PageSourceSearch

https://www.main-spitze.de/assets/PlacesAndTopicsSearch-vHy1YZOX.js

js main-spitze.de collected 2026-10-02 05:13:58 UTC 4,619 bytes, 1 lines download raw bytes

1import{G as $,V as E,bp as g,aX as O,a_ as C,P as q,O as F,E as R,_ as L,r as I,o as m,l as T,w as V,a as W,h as j,c as G,F as H,e as M}from"./index-BpyDjooP.js";import{T as B}from"./TypeOverviewListEntry-Dg6--f-q.js";import{f as u,a as k,S as J}from"./SearchInput-Bi6ZbIGX.js";var U=Object.defineProperty,z=Object.getOwnPropertyDescriptor,f=(t,e,n,i)=>{for(var a=i>1?void 0:i?z(e,n):e,l=t.length-1,c;l>=0;l--)(c=t[l])&&(a=(i?c(e,n,a):c(a))||a);return i&&a&&U(e,n,a),a};const X=90,Y=X*1e3*60*60*24,P=$("edition");let r=class extends E{constructor(){super(...arguments),this.showDefaultItems=!0,this.searchResultItems=[]}firstLevelWithoutChildren(e){return{...e,children:[]}}subEntries(e){return[this.firstLevelWithoutChildren(e),...e.children??[]]}get publication(){return this.currentEdition.publication}get sections(){var o,v,S,b,A,_,y;let e;if(((v=(o=this.section)==null?void 0:o.sections)==null?void 0:v[0])!==void 0&&((b=(S=this.section)==null?void 0:S.sections)==null?void 0:b[0])!==null&&(e=JSON.parse(JSON.stringify((_=(A=this.section)==null?void 0:A.sections)==null?void 0:_[0]))),!(e!=null&&e.children))return[];const n=e.children,i=[],a=[];for(const s of this.section.tags){let h=!0;if(s.noArchive)h=!1;else if(s.sortDate){const w=new Date().getTime(),D=new Date(s.sortDate).getTime();w-D<=Y&&(h=!1)}(h?a:i).push(s)}const l={uniqueName:this.$t(`placesAndTopics.${this.publication}.topicsId`).toString(),title:this.$t(`placesAndTopics.${this.publication}.topicsHeadline`).toString(),children:i.map(s=>({...s,uniqueName:g(s.identifier??"")}))},c={uniqueName:this.$t(`placesAndTopics.${this.publication}.archivedTopicsId`).toString(),title:this.$t(`placesAndTopics.${this.publication}.archivedTopicsHeadline`).toString(),children:a.map(s=>({...s,uniqueName:g(s.identifier??"")}))},d=[l,c],p=n.find(s=>"uniqueName"in s&&s.uniqueName===O);return(y=this.section.specialTopicTags)==null||y.forEach(s=>{p&&"children"in p&&(p.children.some(h=>h.link===s.link)||p.children.push({...s,uniqueName:g(s.identifier??"")}))}),this.isReichweitenportal?[...u([l]),...u(n),...u([c])]:[...u(n),...u(d)]}get visibleSections(){return this.showDefaultItems?this.sections:this.searchResultItems}get expandAccordionItems(){return this.searchResultItems.length>0}get filteredFavorites(){const e=this.showDefaultItems?this.sections:this.searchResultItems;return this.flattenItems(e).filter(i=>C.isCurrentFavorite(i.uniqueName))}flattenItems(e){const n=[];return e.forEach(i=>{n.push({...i,children:[]}),Array.isArray(i.children)&&i.children.length&&n.push(...this.flattenItems(i.children))}),n}searchInPlace(e){e.length>=3?(this.showDefaultItems=!1,this.searchResultItems=k(this.sections,e)):(this.showDefaultItems=!0,this.searchResultItems=[])}};f([q({required:!0})],r.prototype,"section",2);f([P.Getter("isReichweitenportal")],r.prototype,"isReichweitenportal",2);f([P.Getter("getEdition")],r.prototype,"currentEdition",2);r=f([F({name:"PlacesAndTopicsSearch",components:{DnmContentWrapper:R,TypeOverviewListEntry:B,SearchInput:J}})],r);function K(t,e,n,i,a,l){const c=I("SearchInput"),d=I("TypeOverviewListEntry"),p=I("DnmContentWrapper");return m(),T(p,{class:"placesAndTopicsSearch",size:"medium"},{default:V(()=>[W(c,{onOnSearchInputChange:t.searchInPlace,label:t.$t(`placesAndTopics.${t.publication}.searchPlaceholder`),class:"placesAndTopicsSearch__searchInput","data-testid":"places-and-topics-page-search-input","in-place":""},null,8,["onOnSearchInputChange","label"]),t.filteredFavorites.length>0&&!t.currentEdition.disableMyNews?(m(),T(d,{key:0,header:t.$t(`placesAndTopics.${t.publication}.mySelection`,{numberOfFavorites:t.filteredFavorites.length}),"sub-entries":t.filteredFavorites,class:"placesAndTopicsSearch__entry","data-testid":"places-and-topics-page-list-entry-selection","has-icon":"",id:"my-selection","is-paragraph":""},null,8,["header","sub-entries"])):j("",!0),(m(!0),G(H,null,M(t.visibleSections,o=>(m(),T(d,{"data-testid":`places-and-topics-page-list-entry-${o.name}`,header:o.title,id:o.uniqueName,key:o.uniqueName,"sub-entries":t.subEntries(o),"expand-accordion-items":t.expandAccordionItems,class:"placesAndTopicsSearch__entry","has-icon":"","
1is-paragraph":""},null,8,["data-testid","header","id","sub-entries","expand-accordion-items"]))),128))]),_:1})}const te=L(r,[["render",K],["__scopeId","data-v-1721b795"]]);var N;try{"__c"in r&&((N=r.__c).componentFileName??(N.componentFileName=Object.create(null)),Object.defineProperty(r.__c,"componentFileName",{value:"app/pages/contentPage/placesAndTopicsPage/PlacesAndTopicsSearch.vue"}))}catch(t){console.error("injectFileNamePlugin",t)}export{te 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.