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