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