import { generateUniqueID } from "@vived/core";
import { makeQuestionAnswerEntity } from "../Entities";
import { makeQuestionAnswerPM } from "../PM";
import { makeSetAnswerFeedbackUC, makeSetAnswerTextUC, makeToggleQuestionChallengeAnswerIsCorrectUC, } from "../UC";
export function setupQuestionAnswer(appObjects, id) {
    const idToUse = id ?? generateUniqueID();
    const ao = appObjects.getOrCreate(idToUse);
    const answerEntity = makeQuestionAnswerEntity(ao);
    makeSetAnswerFeedbackUC(ao);
    makeSetAnswerTextUC(ao);
    makeToggleQuestionChallengeAnswerIsCorrectUC(ao);
    makeQuestionAnswerPM(ao);
    return answerEntity;
}
//# sourceMappingURL=setupQuestionAnswer.js.map