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