1import{e}from"./vendor-utils-Buu2ZLTn.js";import{c as r}from"./vendor-prismic-Dw93yLvp.js";import{bc as n}from"./index-99Vy6p_n.js";const t=r("lampsyhealth"),i="en-gb";function s(e){return"pt"===e?"pt-pt":i}const a=18e5,c=36e5,o=[{field:"document.first_publication_date",direction:"desc"}];function u(){return s(n(e=>e.language))}async function l(e,r,n=!1){const s=await t.getAllByType(e,{lang:r,orderings:o});if(r===i)return s;const a=await t.getAllByType(e,{lang:i,orderings:o}).catch(()=>[]);if(n){const e=new Set(s.map(e=>e.uid).filter(Boolean));return[...s,...a.filter(r=>r.uid&&!e.has(r.uid))].sort((e,r)=>String(r.first_publication_date??"").localeCompare(String(e.first_publication_date??"")))}return s.length>0?s:a}async function p(e,r,n){try{return await t.getByUID(e,r,{lang:n})}catch(s){if(n===i)throw s;return t.getByUID(e,r,{lang:i})}}function m(r){const n=u(),t=r?.includeMaster??!1;return e({queryKey:["prismic","blog_posts",n,t],queryFn:()=>l("blog_post",n,t),enabled:r?.enabled??!0,staleTime:a,gcTime:c})}function d(r){const n=u();return e({queryKey:["prismic","blog_post",r,n],queryFn:()=>p("blog_post",r,n),enabled:!!r,staleTime:a,gcTime:c})}function y(){const r=u();return e({queryKey:["prismic","download_resources",r],queryFn:()=>l("download_resources_post",r),staleTime:a,gcTime:c})}function g(r){const n=u();return e({queryKey:["prismic","download_resource",r,n],queryFn:()=>p("download_resources_post",r,n),enabled:!!r,staleTime:a,gcTime:c})}function f(){const r=u();return e({queryKey:["prismic","media_articles_all",r],queryFn:async()=>{const[e,n]=await Promise.all([l("media_article",r),l("media_article_link",r).catch(()=>[])]);return[...e,...n]},staleTime:a,gcTime:c})}function _(){const r=u();return e({queryKey:["prismic","papers",r],queryFn:()=>l("papers_and_scientific_pubs",r),staleTime:a,gcTime:c})}function b(r){const n=u();return e({queryKey:["prismic","paper",r,n],queryFn:()=>p("papers_and_scientific_pubs",r,n),enabled:!!r,staleTime:a,gcTime:c})}function T(){const r=u();return e({queryKey:["prismic","careers",r],queryFn:()=>l("career",r),enabled:false,staleTime:a,gcTime:c})}export{i as P,m as a,T as b,g as c,y as d,f as e,b as f,_ as g,s as p,d 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.