1import{K as n,L as r,M as o}from"./chunk-WXERIPWV.js";function c(t,i){return{title:t.hero?.title,description:t.hero?.description,notes:t.hero?.notes,year_old:t.hero?.year_old,organisation_old:t.hero?.organisation_old,place_old:t.hero?.place_old,typeId:t.hero?.type?.id??null,parentExhibitionId:t.hero?.parent?.id??null,childIds:t.children?.map(a=>a.id)??null,eventIds:i.map(a=>a.id)??null,photoIds:t.photos?.map(a=>a.id)??null,literatureIds:t.literatures?.map(a=>a.id)??null,naturalParticipantIds:t.naturalParticipants?.map(a=>a.id)?.filter(a=>a!=null)??null,organisationalParticipantIds:t.organisationalParticipants?.map(a=>a.id)?.filter(a=>a!=null)??null,projectIds:t.projects?.map(a=>a.id)??null}}function h(t){return{startDate:r(t.startDateWithQuality),startDateQuality:o(t.startDateWithQuality),endDate:r(t.endDateWithQuality),endDateQuality:o(t.endDateWithQuality),placeId:t.place?.id??null,organisationNameId:t.organisationName?.id??null}}function E(t){return{id:t.id,hero:{title:t.title??"",description:t.description??"",notes:t.notes??"",year_old:t.year_old??"",organisation_old:t.organisation_old??"",place_old:t.place_old??"",events:e(t.events),parent:t.parentExhibition,type:t.type},children:t.childExhibition,photos:t.photos,literatures:t.literature,placesOfCoverage:t.placesOfCoverage,naturalParticipants:l(t.naturalParticipants)??[],organisationalParticipants:d(t.organisationalParticipants)??[],projects:t.projects}}function e(t){return t?.map(i=>({id:i.id,startDateWithQuality:n(i.startDate,i.startDateQuality),endDateWithQuality:n(i.endDate,i.endDateQuality),place:i.place,organisationName:i.organisationName}))}function l(t){return t?.map(i=>({id:i.id,personName:i.personName,role:i.role}))}function d(t){return t?.map(i=>({id:i.id,organisationName:i.organisationName,role:i.role}))}export{c as a,h as b,E as c};
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.