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