import { ModelHasLandmarksPM } from "../PMs/ModelHasLandmarksPM";
export const modelHasLandmarksAdapter = {
    defaultVM: false,
    subscribe: (id, appObjects, setVM) => {
        if (!id)
            return;
        const pm = 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.get(id, appObjects);
        if (!pm) {
            appObjects.submitError("modelHasLandmarksAdapter", "Unable to find ModelHasLandmarksPM");
            return;
        }
        pm.removeView(setVM);
    },
};
//# sourceMappingURL=modelHasLandmarksAdapter.js.map