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