File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/betaModele21_parametrables-Cb0iqs1H.js.map
{"version":3,"file":"betaModele21_parametrables-Cb0iqs1H.js","sources":["../../src/exercices/beta/betaModele21_parametrables.js"],"sourcesContent":["import { combinaisonListes } from '../../lib/outils/arrayOutils'\nimport Exercice from '../Exercice.js'\nimport { listeQuestionsToContenu } from '../../modules/outils.js'\nexport const titre = 'Nom de l\\'exercice'\n\n// Les exports suivants sont optionnels mais au moins la date de publication semble essentielle\nexport const dateDePublication = '25/10/2021' // La date de publication initiale au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\nexport const dateDeModifImportante = '24/10/2021' // Une date de modification importante au format 'jj/mm/aaaa' pour affichage temporaire d'un tag\n\n/**\n * Description didactique de l'exercice\n * @author\n * Référence\n*/\nexport default class nomExercice extends Exercice {\n constructor () {\n super()\n this.titre = titre\n this.consigne = 'Consigne'\n this.nbQuestions = 10\n\n this.besoinFormulaireNumerique = ['Difficulté', 3, '1 : Facile\\n2 : Moyen\\n3 : Difficile'] // le paramètre sera numérique de valeur max 3 (le 3 en vert)\n this.sup = 2 // Valeur du paramètre par défaut\n // Remarques : le paramètre peut aussi être un texte avec : this.besoinFormulaireTexte = [texte, tooltip]\n // il peut aussi être une case à cocher avec : this.besoinFormulaireCaseACocher = [texte] (dans ce cas, this.sup = true ou this.sup = false)\n\n this.nbCols = 2\n this.nbColsCorr = 2\n this.tailleDiaporama = 3\n this.video = ''\n }\n\n nouvelleVersion () {\n this.listeQuestions = []\n this.listeCorrections = []\n this.autoCorrection = []\n\n const typeQuestionsDisponibles = ['type1', 'type2', 'type3']\n\n const listeTypeQuestions = combinaisonListes(typeQuestionsDisponibles, this.nbQuestions)\n for (let i = 0, texte, texteCorr, difficulte, cpt = 0; i < this.nbQuestions && cpt < 50;) {\n if (this.sup === 1) { // On ajuste la difficulté selon le paramètre.\n difficulte = 'facile'\n } else if (this.sup === 2) {\n difficulte = 'difficile'\n }\n switch (listeTypeQuestions[i]) {\n case 'type1':\n texte = `Question ${difficulte} ${i + 1} de type 1` // Les questions sont modifiées en fonction de la difficulté\n texteCorr = `Correction ${i + 1} de type 1`\n break\n case 'type2':\n texte = `Question ${difficulte} ${i + 1} de type 2`\n texteCorr = `Correction ${i + 1} de type 2`\n break\n case 'type3':\n texte = `Question ${difficulte} ${i + 1} de type 3`\n texteCorr = `Correction ${i + 1} de type 3`\n break\n }\n // Si la question n'a jamais été posée, on l'enregistre\n if (this.questionJamaisPosee(i, texte)) { // <- laisser le i et ajouter toutes les variables qui rendent les exercices différents (par exemple a, b, c et d)\n this.listeQuestions.push(texte)\n this.listeCorrections.push(texteCorr)\n i++\n }\n cpt++\n }\n listeQuestionsToContenu(this)\n }\n}\n"],"names":["titre","dateDePublication","dateDeModifImportante","nomExercice","Exercice","listeTypeQuestions","combinaisonListes","i","texte","texteCorr","difficulte","cpt","listeQuestionsToContenu"],"mappings":"uDAGY,MAACA,EAAQ,oBAGRC,EAAoB,aACpBC,EAAwB,aAOtB,MAAMC,UAAoBC,CAAS,CAChD,aAAe,CACb,MAAO,EACP,KAAK,MAAQJ,EACb,KAAK,SAAW,WAChB,KAAK,YAAc,GAEnB,KAAK,0BAA4B,CAAC,aAAc,EAAG;AAAA;AAAA,cAAsC,EACzF,KAAK,IAAM,EAIX,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,gBAAkB,EACvB,KAAK,MAAQ,EACd,CAED,iBAAmB,CACjB,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,KAAK,eAAiB,CAAE,EAIxB,MAAMK,EAAqBC,EAFM,CAAC,QAAS,QAAS,OAAO,EAEY,KAAK,WAAW,EACvF,QAASC,EAAI,EAAGC,EAAOC,EAAWC,EAAYC,EAAM,EAAGJ,EAAI,KAAK,aAAeI,EAAM,IAAK,CAMxF,OALI,KAAK,MAAQ,EACfD,EAAa,SACJ,KAAK,MAAQ,IACtBA,EAAa,aAEPL,EAAmBE,CAAC,EAAC,CAC3B,IAAK,QACHC,EAAQ,YAAYE,CAAU,IAAIH,EAAI,CAAC,aACvCE,EAAY,cAAcF,EAAI,CAAC,aAC/B,MACF,IAAK,QACHC,EAAQ,YAAYE,CAAU,IAAIH,EAAI,CAAC,aACvCE,EAAY,cAAcF,EAAI,CAAC,aAC/B,MACF,IAAK,QACHC,EAAQ,YAAYE,CAAU,IAAIH,EAAI,CAAC,aACvCE,EAAY,cAAcF,EAAI,CAAC,aAC/B,KACH,CAEG,KAAK,oBAAoBA,EAAGC,CAAK,IACnC,KAAK,eAAe,KAAKA,CAAK,EAC9B,KAAK,iBAAiB,KAAKC,CAAS,EACpCF,KAEFI,GACD,CACDC,EAAwB,IAAI,CAC7B,CACH"}