PageSourceSearch

https://genealogydirect.net/assets/ArchiveService-u6WPu0tO.js

js genealogydirect.net collected 2026-09-24 14:26:41 UTC 2,090 bytes, 1 lines download raw bytes

1import{j as l,h as f,q as u,x as p,e as i,k as y,u as S,w,$ as b,v as m,t as v,s as D,B as q}from"./firebase-DGovvYsO.js";import{d as a,E as O,f as E}from"./index-D1aKNduO.js";const c=O.ARCHIVE_REPOSITORIES,I=async()=>{try{const t=l(a,c);return(await f(u(t,p("name")))).docs.map(s=>{const e=s.data();return{id:s.id,...e}})}catch(t){throw console.error("Error fetching archives:",t),t}},_=async t=>{await q(i(a,c,t))},j=async(t,r)=>{const s={};Object.entries(r).forEach(([e,o])=>{o!==void 0&&o!==""&&(s[e]=o)}),await S(i(a,c,t),s)},B=async(t,r)=>{const s={};Object.entries(r).forEach(([e,o])=>{o!==void 0&&o!==""&&(s[e]=o)}),await D(i(a,c,t),s)},x=async t=>{try{const r=i(a,c,t),s=await y(r);return s.exists()?{id:s.id,...s.data()}:null}catch(r){throw console.error(`Error fetching archive with ID ${t}:`,r),r}},$=async(t,r)=>{try{if(!t)throw new Error("User ID is required");await v(E,"set_archive_subscription_callable")({archiveId:r,following:!0})}catch(s){throw console.error(`Error joining archive ${r}:`,s),s}},L=async(t,r)=>{try{if(!t)throw new Error("User ID is required");await v(E,"set_archive_subscription_callable")({archiveId:r,following:!1})}catch(s){throw console.error(`Error leaving archive ${r}:`,s),s}},P=async t=>{const{pageSize:r=25,startAfterDoc:s,countryFilter:e}=t,o=l(a,c),n=[];e&&n.push(w("countryISOA3","==",e)),n.push(p("name")),s&&n.push(b(s)),n.push(m(r));const h=await f(u(o,...n)),g=h.docs.map(d=>({id:d.id,...d.data()})),A=h.docs.length===r?h.docs[h.docs.length-1]:null;return{archives:g,lastDoc:A}},T=async t=>{try{const r=l(a,c),s=u(r,w("countryISOA3","==",t));return(await f(s)).docs.map(o=>({id:o.id,...o.data()}))}catch(r){throw console.error(`Error fetching archives for country ${t}:`,r),r}},H=async t=>{if(!t||t.length===0)return[];try{const r=l(a,c);return(await Promise.all(t.map(async e=>{const o=await y(i(r,e));return o.exists()?o:null}))).filter(e=>!!e?.exists()).map(e=>({id:e.id,...e.data()}))}catch(r){throw console.error("Error fetching archives by IDs",r),r}};export{I as a,P as b,B as c,_ as d,T as e,x as f,H as g,$ as j,L as l,j 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.