"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.landmarkListAdapter = void 0;
const LandmarkListPM_1 = require("../PM/LandmarkListPM");
exports.landmarkListAdapter = {
    defaultVM: [],
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = LandmarkListPM_1.LandmarkListPM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("landmarkListAdapter", "Unable to find LandmarkListPM");
            return;
        }
        pm.addView(setVM);
    },
    unsubscribe: (id, appObjects, setVM) => {
        const pm = LandmarkListPM_1.LandmarkListPM.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("landmarkListAdapter", "Unable to find LandmarkListPM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=landmarkListAdapter.js.map