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