"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setupQuestionAnswer = setupQuestionAnswer;
const core_1 = require("@vived/core");
const Entities_1 = require("../Entities");
const PM_1 = require("../PM");
const UC_1 = require("../UC");
function setupQuestionAnswer(appObjects, id) {
    const idToUse = id ?? (0, core_1.generateUniqueID)();
    const ao = appObjects.getOrCreate(idToUse);
    const answerEntity = (0, Entities_1.makeQuestionAnswerEntity)(ao);
    (0, UC_1.makeSetAnswerFeedbackUC)(ao);
    (0, UC_1.makeSetAnswerTextUC)(ao);
    (0, UC_1.makeToggleQuestionChallengeAnswerIsCorrectUC)(ao);
    (0, PM_1.makeQuestionAnswerPM)(ao);
    return answerEntity;
}
//# sourceMappingURL=setupQuestionAnswer.js.map