File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/CM008-ZN65Ml3B.js.map
{"version":3,"file":"CM008-ZN65Ml3B.js","sources":["../../src/exercices/CM/CM008.js"],"sourcesContent":["import { combinaisonListes } from '../../lib/outils/arrayOutils'\nimport Exercice from '../Exercice.js'\nimport { listeQuestionsToContenu, randint } from '../../modules/outils.js'\nimport { ajouteChampTexteMathLive } from '../../lib/interactif/questionMathLive.js'\nimport { setReponse } from '../../lib/interactif/gestionInteractif.js'\n\nexport const titre = 'Soustraire 11'\nexport const amcReady = true\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\nexport const amcType = 'AMCNum'\n\n/**\n * Un nombre à 2 chiffres -11\n * @author Rémi Angot\n * Référence CM008\n */\nexport const uuid = 'ee307'\nexport const ref = 'CM008'\nexport default function Soustraire11 () {\n Exercice.call(this) // Héritage de la classe Exercice()\n this.consigne = 'Calculer.'\n this.nbQuestions = 10\n this.nbCols = 2\n this.nbColsCorr = 2\n this.tailleDiaporama = 3\n\n this.nouvelleVersion = function () {\n this.listeQuestions = [] // Liste de questions\n this.listeCorrections = [] // Liste de questions corrigées\n\n const typesDeQuestionsDisponibles = [1, 1, 1, 1, 2]\n const listeTypeDeQuestions = combinaisonListes(\n typesDeQuestionsDisponibles,\n this.nbQuestions\n ) // Tous les types de questions sont posées mais l'ordre diffère à chaque \"cycle\"\n for (\n let i = 0, texte, texteCorr, a, cpt = 0;\n i < this.nbQuestions && cpt < 50;\n ) {\n if (listeTypeDeQuestions[i] === 1) {\n a = randint(12, 99)\n } else {\n a = randint(2, 9) * 10\n }\n\n texte = `$${a}-11$`\n texteCorr = `$${a}-11=${a - 11}$`\n setReponse(this, i, a - 11)\n if (this.interactif) texte += ajouteChampTexteMathLive(this, i, 'largeur15 inline')\n\n if (this.listeQuestions.indexOf(texte) === -1) {\n // Si la question n'a jamais été posée, on en crée une autre\n this.listeQuestions.push(texte)\n this.listeCorrections.push(texteCorr)\n i++\n }\n cpt++\n }\n listeQuestionsToContenu(this)\n }\n // this.besoinFormulaireNumerique = ['Niveau de difficulté',3];\n}\n"],"names":["titre","amcReady","interactifReady","interactifType","amcType","uuid","ref","Soustraire11","Exercice","listeTypeDeQuestions","combinaisonListes","i","texte","texteCorr","a","cpt","randint","setReponse","ajouteChampTexteMathLive","listeQuestionsToContenu"],"mappings":"4EAMY,MAACA,EAAQ,gBACRC,EAAW,GACXC,EAAkB,GAClBC,EAAiB,WACjBC,EAAU,SAOVC,EAAO,QACPC,EAAM,QACJ,SAASC,GAAgB,CACtCC,EAAS,KAAK,IAAI,EAClB,KAAK,SAAW,YAChB,KAAK,YAAc,GACnB,KAAK,OAAS,EACd,KAAK,WAAa,EAClB,KAAK,gBAAkB,EAEvB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAG1B,MAAMC,EAAuBC,EADO,CAAC,EAAG,EAAG,EAAG,EAAG,CAAC,EAGhD,KAAK,WACN,EACD,QACMC,EAAI,EAAGC,EAAOC,EAAWC,EAAGC,EAAM,EACtCJ,EAAI,KAAK,aAAeI,EAAM,IAE1BN,EAAqBE,CAAC,IAAM,EAC9BG,EAAIE,EAAQ,GAAI,EAAE,EAElBF,EAAIE,EAAQ,EAAG,CAAC,EAAI,GAGtBJ,EAAQ,IAAIE,CAAC,OACbD,EAAY,IAAIC,CAAC,OAAOA,EAAI,EAAE,IAC9BG,EAAW,KAAMN,EAAGG,EAAI,EAAE,EACtB,KAAK,aAAYF,GAASM,EAAyB,KAAMP,EAAG,kBAAkB,GAE9E,KAAK,eAAe,QAAQC,CAAK,IAAM,KAEzC,KAAK,eAAe,KAAKA,CAAK,EAC9B,KAAK,iBAAiB,KAAKC,CAAS,EACpCF,KAEFI,IAEFI,EAAwB,IAAI,CAC7B,CAEH"}