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