1import{c,a as n}from"./index-C2KlasXz.js";const l=c({method:"GET"}).handler(n("fbb523dcd95bd7556f65fc158201636a42991eee5bdaed74ddb6cca3453c0263"));async function o(r){if(!Array.isArray(r)||r.length===0)return[];const a=await l().catch(()=>null);return r.map(e=>{const t=e.hotelId??e.id??null;return{...e,searchPopularity:(t?Number(a?.byHotelId?.[t]??0):0)||Number(a?.bySlug?.[e.slug]??0)}})}export{l as getHotelSearchPopularity,o as withHotelSearchPopularity};
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.