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