"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeLandmarkRepoFactory = makeLandmarkRepoFactory;
const Entities_1 = require("../Entities");
const PM_1 = require("../PM");
const landmarkFactory_1 = require("./landmarkFactory");
function makeLandmarkRepoFactory(appObjects) {
    return function landmarkRepoFactory(id) {
        const appObject = appObjects.getOrCreate(id);
        const repo = Entities_1.LandmarkRepo.addIfMissing(appObject);
        repo.landmarkFactory = (0, landmarkFactory_1.makeLandmarkFactory)(appObjects);
        (0, PM_1.makeLandmarkListPM)(appObject);
        return repo;
    };
}
//# sourceMappingURL=landmarkRepoFactory.js.map