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