1import{az as m,r as l,g as n}from"./DRCxMrtQ.js";const C=m("static",()=>{const s=l([]),c=l(!1),r=l(!1),d=n(()=>{const e=new Set(["ber","dus","fra","muc"]);return s.value.filter(o=>e.has(o.code.toLowerCase())).map(o=>({code:o.code,name:o.name}))}),p=n(()=>d.value.map(e=>({id:`popular-airport-${e.code}`,value:e.code,title:`${e.name} (${e.code.toUpperCase()})`}))),f=n(()=>{const e=new Map;return s.value.forEach(o=>{e.set(o.code.toLowerCase(),o)}),e}),y=n(()=>{const e={nord:{title:"Nord",value:"Nord",payload:[],labelId:"de-region-north"},ost:{title:"Ost",value:"Ost",payload:[],labelId:"de-region-east"},sued:{title:"Süd",value:"Süd",payload:[],labelId:"de-region-south"},west:{title:"West",value:"West",payload:[],labelId:"de-region-west"}};return s.value.forEach(o=>{const t=o.airportRegion;if(t)switch(t){case"Nord":e.nord.payload.push(o.code);break;case"Ost":e.ost.payload.push(o.code);break;case"Süd":e.sued.payload.push(o.code);break;case"West":e.west.payload.push(o.code);break}}),Object.values(e)}),u=n(()=>{const e=new Map;s.value.forEach(t=>{let a=t.countryName;a.toLowerCase()==="sonstige flughäfen"&&(a="Alle anderen Flughäfen");const i=e.get(a)||[];i.push(t.code),e.set(a,i)});const o=new Map;return e.forEach((t,a)=>{o.set(a,Object.freeze([...t]))}),o}),h=n(()=>{const e=[];return u.value.forEach((o,t)=>{e.push({value:t,title:t,payload:o,labelId:`country-${t.toLowerCase().replace(/\s+/g,"-")}`})}),e}),g=n(()=>{const e={};return s.value.forEach(o=>{let t=o.countryName;t.toLowerCase()==="sonstige flughäfen"&&(t="Alle anderen Flughäfen"),e[t]||(e[t]=[]),e[t].push({id:`airport-${o.code}`,value:o.code,title:`${o.name} (${o.code.toUpperCase()})`,airport:o})}),e});return{airports:s,isInitialized:c,isLoading:r,popularAirports:d,popularAirportsSelectOptions:p,airportsHashedByCode:f,airportsByGermanyRegionsSelectOptions:y,airportsCountriesCodesMap:u,airportsByCountriesSelectOptions:h,airportsSelectOptions:g,init:async()=>{if(!(c.value||r.value)){r.value=!0;try{const e=await $fetch("/api/datamanager/ibe/fetchAirports"),o=[];e.airports&&Array.isArray(e.airports)&&e.airports.forEach(t=>{t.airports&&Array.isArray(t.airports)&&t.airports.forEach(a=>{o.push({code:a.code||a.iataCode||"",name:a.name||"",city:a.city,countryName:a.countryName||a.country||t.name||"",countryCode:a.country_code||a.countryCode||"",airportRegion:a.airport_region||a.airportRegion||a.region})})}),s.value=Object.freeze(o),c.value=!0}catch(e){throw console.error("[Static Store] Failed to initialize:",e),e}finally{r.value=!1}}}}});export{C as u};
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.