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