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Ae7K,SAASC,cAAc,OAC1C4K,EAAa7N,GAAKL,KAAKI,MAAQ,iBAAmBkE,EAClD4J,EAAaF,UAAUC,IAAI,gBAC3BjO,KAAK4N,kBAAkBnL,KAAKyL,GAC5BlO,KAAKyD,SAASM,YAAYmK,IAGlCC,wBAYI,OAVInO,KAAK8J,eAAiB9J,KAAKc,YAAYoB,QACvClC,KAAKc,YAAYoB,SAAWlC,KAAK2I,WAAWzG,OAE5ClC,KAAKY,SAAU,EACmB,IAA3BZ,KAAK2I,WAAWzG,OACvBlC,KAAKY,SAAU,EAGfZ,KAAKY,QAAU,KAEXZ,KAAKY,SACT,KAAK,EACD,MAAO,IACX,KAAK,EACD,MAAO,IACX,QACI,OAAO,MAGnBwN,wBAEI,OAAQpO,KAAKY,SACT,KAAK,EACD,MAAO,IACX,KAAK,EACD,MAAO,IACX,QACI,OAAO,MAGnByN,oBACI,OAAIrO,KAAKG,gBACEH,KAAKmO,wBAELnO,KAAKoO,wBAGpBE,eACI,IAAK,IAAIrM,EAAI,EAAGA,EAAIjC,KAAK4N,kBAAkB1L,OAAQD,IAC/C3B,EAAEN,KAAK4N,kBAAkB3L,IAAIuL,OAIrCe,wBACI,IAAI7M,EAAO1B,KACPoE,EAAa,WACb1C,EAAK2C,YAAa,GAEtB,IAAK,IAAImK,KAAOxO,KAAKgE,YACjBwK,EAAIxJ,MAAME,QAAUd,QAKQ,IAA7B3E,OAAOgP,oBACdhP,OAAOgP,kBAAoB,IAG/BhP,OAAOgP,kBAAkBC,eAAiB,SAAU7O,GAChD,OAAIA,EAAK8O,MACE,IAAIhC,EAAQ9M,GAEZ,IAAIF,EAAeE","sources":["webpack://WebComponents/./runestone/mchoice/js/mchoice.js","webpack://WebComponents/./runestone/mchoice/js/timedmc.js"],"sourcesContent":["/*==========================================\n======== Master mchoice.js =========\n============================================\n=== This file contains the JS for the ===\n=== Runestone multiple choice component. ===\n============================================\n=== Created By ===\n=== Isaiah Mayerchak ===\n=== and ===\n=== Kirby Olson ===\n=== 6/4/15 ===\n==========================================*/\n\nimport RunestoneBase from \"../../common/js/runestonebase.js\";\n//import \"./../styles/runestone-custom-sphinx-bootstrap.css\";\nimport \"../css/mchoice.css\";\n\nwindow.mcList = {}; // Multiple Choice dictionary\n\n// MC constructor\nexport default class MultipleChoice extends RunestoneBase {\n constructor(opts) {\n super(opts);\n opts = opts || {};\n var orig = opts.orig; // entire `);\n $(this.feedBackDiv).attr(\"class\", \"alert alert-info\");\n } else {\n $(this.feedBackDiv).html(\n `✖️ You gave ${numGiven} ${answerStr} and got ${numCorrect} correct of ${numNeeded} needed.
    ${feedbackText}`\n );\n $(this.feedBackDiv).attr(\"class\", \"alert alert-danger\");\n }\n }\n\n processMCMFSubmission(logFlag) {\n // Called when the submit button is clicked\n this.getSubmittedOpts(); // make sure this.givenArray is populated\n this.scoreMCMFSubmission();\n this.setLocalStorage({\n correct: this.correct ? \"T\" : \"F\",\n answer: this.givenArray.join(\",\"),\n });\n if (logFlag) {\n this.logMCMFsubmission();\n }\n if (!eBookConfig.peer || eBookConfig.isInstructor) {\n this.renderMCMFFeedback();\n if (this.useRunestoneServices) {\n this.enableMCComparison();\n }\n } else {\n // acknowledge submission\n $(this.feedBackDiv).html(\"

    Your Answer has been recorded

    \");\n $(this.feedBackDiv).attr(\"class\", \"alert alert-info\");\n }\n }\n\n scoreMCMFSubmission() {\n this.answer = this.givenArray[0];\n if (this.givenArray[0] == this.correctIndexList[0]) {\n this.correct = true;\n this.percent = 1.0;\n } else if (this.givenArray[0] != null) {\n // if given is null then the question wasn\"t answered and should be counted as skipped\n this.correct = false;\n this.percent = 0.0;\n }\n }\n\n async logMCMFsubmission(sid) {\n // If there's no answer provided (the array is empty), use a blank for the answer.\n var answer = this.givenArray[0] || \"\";\n var correct =\n this.givenArray[0] == this.correctIndexList[0] ? \"T\" : \"F\";\n var logAnswer =\n \"answer:\" + answer + \":\" + (correct == \"T\" ? \"correct\" : \"no\"); // backward compatible\n let data = {\n event: \"mChoice\",\n act: logAnswer,\n answer: answer,\n correct: correct,\n div_id: this.divid,\n };\n if (eBookConfig.peer && typeof studentVoteCount !== \"undefined\") {\n data.act = data.act + `:vote${studentVoteCount}`;\n }\n if (typeof sid !== \"undefined\") {\n data.sid = sid;\n }\n await this.logBookEvent(data);\n }\n\n renderMCMFFeedback() {\n let correct = this.givenArray[0] == this.correctIndexList[0];\n let feedbackText = this.singlefeedback;\n\n if (correct) {\n $(this.feedBackDiv).html(\"✔️ \" + feedbackText);\n $(this.feedBackDiv).attr(\"class\", \"alert alert-info\"); // use blue for better red/green blue color blindness\n } else {\n if (feedbackText == null) {\n feedbackText = \"\";\n }\n $(this.feedBackDiv).html(\"✖️ \" + feedbackText);\n $(this.feedBackDiv).attr(\"class\", \"alert alert-danger\");\n }\n }\n enableMCComparison() {\n if (eBookConfig.enableCompareMe) {\n this.compareButton.disabled = false;\n }\n }\n instructorMchoiceModal(data) {\n // data.reslist -- student and their answers\n // data.answerDict -- answers and count\n // data.correct - correct answer\n var res = \"\";\n for (var i in data) {\n res +=\n \"\";\n }\n res += \"
    StudentAnswer(s)
    \" +\n data[i][0] +\n \"\" +\n data[i][1] +\n \"
    \";\n return res;\n }\n compareModal(data, status, whatever) {\n var datadict = data.detail;\n var answers = datadict.answerDict;\n var misc = datadict.misc;\n var kl = Object.keys(answers).sort();\n var body = \"\";\n body += \"\";\n var theClass = \"\";\n for (var k in kl) {\n if (kl[k] === misc.correct) {\n theClass = \"success\";\n } else {\n theClass = \"info\";\n }\n body +=\n \"\";\n }\n body += \"
    AnswerPercent
    \" + kl[k] + \"\";\n var pct = answers[kl[k]] + \"%\";\n body += \"
    \";\n body +=\n \"
    \" +\n pct;\n body += \"
    \";\n body += \"
    \";\n if (misc.yourpct !== \"unavailable\") {\n body +=\n \"

    You have \" +\n misc.yourpct +\n \"% correct for all questions

    \";\n }\n if (datadict.reslist !== undefined) {\n body += this.instructorMchoiceModal(datadict.reslist);\n }\n var html =\n \"\";\n var el = $(html);\n el.modal();\n }\n // _`compareAnswers`\n compareAnswers() {\n var data = {};\n data.div_id = this.divid;\n data.course_name = eBookConfig.course;\n jQuery.get(\n `${eBookConfig.new_server_prefix}/assessment/getaggregateresults`,\n data,\n this.compareModal.bind(this)\n );\n }\n\n disableInteraction() {\n for (var i = 0; i < this.optionArray.length; i++) {\n this.optionArray[i].input.disabled = true;\n }\n }\n\n enableInteraction() {\n for (var i = 0; i < this.optionArray.length; i++) {\n this.optionArray[i].input.disabled = false;\n }\n }\n}\n\n/*=================================\n== Find the custom HTML tags and ==\n== execute our code on them ==\n=================================*/\n$(document).on(\"runestone:login-complete\", function () {\n $(\"[data-component=multiplechoice]\").each(function (index) {\n // MC\n var opts = {\n orig: this,\n useRunestoneServices: eBookConfig.useRunestoneServices,\n };\n if ($(this).closest(\"[data-component=timedAssessment]\").length == 0) {\n // If this element exists within a timed component, don't render it here\n window.mcList[this.id] = new MultipleChoice(opts);\n }\n });\n});\n","import MultipleChoice from \"./mchoice.js\";\n\nexport default class TimedMC extends MultipleChoice {\n constructor(opts) {\n super(opts);\n $(this.containerDiv).addClass(\"runestone\");\n this.needsReinitialization = true;\n this.renderTimedIcon(this.MCContainer);\n this.hideButtons(); // Don't show per-question buttons in a timed assessment\n }\n\n renderTimedIcon(component) {\n // renders the clock icon on timed components. The component parameter\n // is the element that the icon should be appended to.\n var timeIconDiv = document.createElement(\"div\");\n var timeIcon = document.createElement(\"img\");\n $(timeIcon).attr({\n src: \"../_static/clock.png\",\n style: \"width:15px;height:15px\",\n });\n timeIconDiv.className = \"timeTip\";\n timeIconDiv.title = \"\";\n timeIconDiv.appendChild(timeIcon);\n $(component).prepend(timeIconDiv);\n }\n hideButtons() {\n //Just hiding the buttons doesn't prevent submitting the form when entering is clicked\n //We need to completely disable the buttons\n $(this.submitButton).attr(\"disabled\", \"true\");\n $(this.submitButton).hide();\n $(this.compareButton).hide();\n }\n\n // These methods override the methods in the base class. Called from renderFeedback()\n //\n renderMCMAFeedBack() {\n this.feedbackTimedMC();\n }\n renderMCMFFeedback(whatever, whateverr) {\n this.feedbackTimedMC();\n }\n feedbackTimedMC() {\n for (var i = 0; i < this.indexArray.length; i++) {\n var tmpindex = this.indexArray[i];\n $(this.feedBackEachArray[i]).text(\n String.fromCharCode(65 + i) + \". \" + this.feedbackList[i]\n );\n var tmpid = this.answerList[tmpindex].id;\n if (this.correctList.indexOf(tmpid) >= 0) {\n this.feedBackEachArray[i].classList.add(\n \"alert\",\n \"alert-success\"\n );\n } else {\n this.feedBackEachArray[i].classList.add(\n \"alert\",\n \"alert-danger\"\n );\n }\n }\n }\n renderMCFormOpts() {\n super.renderMCFormOpts();\n this.feedBackEachArray = [];\n for (var j = 0; j < this.answerList.length; j++) {\n var k = this.indexArray[j];\n var feedBackEach = document.createElement(\"div\");\n feedBackEach.id = this.divid + \"_eachFeedback_\" + k;\n feedBackEach.classList.add(\"eachFeedback\");\n this.feedBackEachArray.push(feedBackEach);\n this.optsForm.appendChild(feedBackEach);\n }\n }\n checkCorrectTimedMCMA() {\n if (\n this.correctCount === this.correctList.length &&\n this.correctList.length === this.givenArray.length\n ) {\n this.correct = true;\n } else if (this.givenArray.length !== 0) {\n this.correct = false;\n } else {\n // question was skipped\n this.correct = null;\n }\n switch (this.correct) {\n case true:\n return \"T\";\n case false:\n return \"F\";\n default:\n return null;\n }\n }\n checkCorrectTimedMCMF() {\n // Returns if the question was correct, incorrect, or skipped (return null in the last case)\n switch (this.correct) {\n case true:\n return \"T\";\n case false:\n return \"F\";\n default:\n return null;\n }\n }\n checkCorrectTimed() {\n if (this.multipleanswers) {\n return this.checkCorrectTimedMCMA();\n } else {\n return this.checkCorrectTimedMCMF();\n }\n }\n hideFeedback() {\n for (var i = 0; i < this.feedBackEachArray.length; i++) {\n $(this.feedBackEachArray[i]).hide();\n }\n }\n\n reinitializeListeners() {\n let self = this;\n let answerFunc = function () {\n self.isAnswered = true;\n };\n for (let opt of this.optionArray) {\n opt.input.onclick = answerFunc;\n }\n }\n}\n\nif (typeof window.component_factory === \"undefined\") {\n window.component_factory = {};\n}\n\nwindow.component_factory.multiplechoice = function (opts) {\n if (opts.timed) {\n return new TimedMC(opts);\n } else {\n return new MultipleChoice(opts);\n }\n};\n"],"names":["window","mcList","MultipleChoice","constructor","opts","super","orig","this","origElem","useRunestoneServices","multipleanswers","divid","id","$","data","children","childNodes","random","is","correct","answerList","correctList","correctIndexList","feedbackList","question","caption","findAnswers","findQuestion","findFeedbacks","createCorrectList","createMCForm","addCaption","checkServer","self","runestoneMathready","runestoneMathReady","then","queueMathJax","containerDiv","delimiter","i","length","nodeName","outerHTML","temp","html","split","ChildAnswerList","push","j","answer_id","attr","is_correct","answer_object","content","innerHTML","renderMCContainer","renderMCForm","renderMCfeedbackDiv","replaceWith","document","createElement","addClass","getAttribute","optsForm","method","action","onsubmit","renderMCFormOpts","renderMCFormButtons","appendChild","optionArray","input_type","indexArray","randomizeAnswers","answerFunc","isAnswered","k","optid","label","prefix","startsWith","slice","String","fromCharCode","charCodeAt","optObj","input","find","onclick","submitButton","textContent","class","name","type","addEventListener","processMCMASubmission","bind","ev","preventDefault","processMCMFSubmission","eBookConfig","peer","compareButton","disabled","compareAnswers","feedBackDiv","temporaryValue","randomIndex","currentIndex","Math","floor","temporaryFeedback","restoreAnswers","answer","answers","a","index","b","value","checkLocalStorage","graderactive","localStorage","ex","getItem","localStorageKey","JSON","parse","err","console","log","message","removeItem","enableMCComparison","getSubmittedOpts","logMCMAsubmission","logMCMFsubmission","setLocalStorage","timeStamp","Date","storageObj","timestamp","setItem","stringify","logFlag","scoreMCMASubmission","givenArray","join","isInstructor","renderMCMAFeedBack","given","singlefeedback","feedbackString","givenlog","buttonObjs","elements","group1","checked","sort","checkCurrentAnswer","scoreMCMFSubmission","async","sid","renderFeedback","renderMCMFFeedback","correctCount","correctIndex","givenIndex","numGiven","numCorrect","numNeeded","percent","max","event","act","div_id","studentVoteCount","logBookEvent","answerStr","feedbackText","enableCompareMe","instructorMchoiceModal","res","compareModal","status","whatever","datadict","detail","answerDict","misc","kl","Object","keys","body","theClass","pct","yourpct","undefined","reslist","modal","course_name","course","jQuery","get","new_server_prefix","disableInteraction","enableInteraction","on","each","closest","TimedMC","needsReinitialization","renderTimedIcon","MCContainer","hideButtons","component","timeIconDiv","timeIcon","src","style","className","title","prepend","hide","feedbackTimedMC","whateverr","tmpindex","feedBackEachArray","text","tmpid","indexOf","classList","add","feedBackEach","checkCorrectTimedMCMA","checkCorrectTimedMCMF","checkCorrectTimed","hideFeedback","reinitializeListeners","opt","component_factory","multiplechoice","timed"],"sourceRoot":""}