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