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