1import{t as e}from"./photo-feed-actions-DdglH5cm.js";import{n as t,t as n}from"./index-manifest-B2DDcSUj.js";import{a as r,i,r as a,u as o}from"./posts-rpUFyXif.js";var s=e=>{let t=Date.parse(e);return Number.isNaN(t)?0:t},c=(e,t)=>{let n=s(t.publishedAt)-s(e.publishedAt);return n===0?e.route.localeCompare(t.route):n},l=e=>t(e.route).length>0;function u({limit:e=12,prioritizeCollections:t=!1,collectionOrder:r=[]}){let i=new Map(r.map((e,t)=>[e,t]));return[...n].filter(e=>!e.parentRoute).sort((e,n)=>{let a=l(e),o=l(n);if(t){let e=Number(o)-Number(a);if(e!==0)return e}if(a&&o&&r.length>0){let t=(i.get(e.route)??1/0)-(i.get(n.route)??1/0);if(t!==0)return t}return c(e,n)}).map(e=>({...e,isCollection:l(e)})).slice(0,e)}var d=12,f=12,p=12,m=[`/photos/africa/`,`/photos/new-zealand/`,`/photos/japan/two-weeks-in-japan/`],h=async({deps:{query:t,page:n}})=>{let s=r(),c=n??1,l=o(d),h=await e({data:{limit:p}});return{currentPage:c,photos:h.photos,photoFeedMediaBaseUrl:h.mediaBaseUrl,posts:a(t??``,c,s),totalPages:i(t??``,s),totalPosts:s.length,gear:l.items,gearLastUpdated:l.lastUpdated,photosets:u({limit:f,prioritizeCollections:!0,collectionOrder:m})}};export{h as loader};
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.