import { LandmarkRepo } from "../Entities";
import { makeLandmarkListPM } from "../PM";
import { makeLandmarkFactory } from "./landmarkFactory";
export function makeLandmarkRepoFactory(appObjects) {
    return function landmarkRepoFactory(id) {
        const appObject = appObjects.getOrCreate(id);
        const repo = LandmarkRepo.addIfMissing(appObject);
        repo.landmarkFactory = makeLandmarkFactory(appObjects);
        makeLandmarkListPM(appObject);
        return repo;
    };
}
//# sourceMappingURL=landmarkRepoFactory.js.map