{"version":3,"file":"success_level_from_grade_mixin-CQ4r-Ezk.js","sources":["../../../app/javascript/components/shared/success_level_from_grade_mixin.js"],"sourcesContent":["export default {\n methods: {\n successLevelFromGrade(note) {\n let lastValue = this.quiz.success_levels[this.quiz.success_levels.length - 1]\n this.quiz.success_levels.reduce((prev, curr) => parseInt(curr.note) <= note && parseInt(curr.note) > parseInt(lastValue.note) ? lastValue = curr : \"\", lastValue)\n return lastValue\n },\n },\n}\n"],"names":["n","successLevelFromGradeMixin","note","lastValue","prev","curr"],"mappings":"AAAA,GAAA,CAAA,IAAA,EAAA,OAAA,QAAA,YAAA,OAAA,OAAA,QAAA,YAAA,OAAA,OAAA,YAAA,YAAA,WAAA,OAAA,MAAA,YAAA,KAAA,CAAA,EAAAA,EAAA,IAAA,EAAA,QAAA,MAAAA,IAAA,EAAA,gBAAA,EAAA,iBAAA,CAAA,EAAA,EAAA,gBAAAA,CAAA,EAAA,uCAAA,EAAA,yBAAA,mDAAA,OAAA,EAAA,CAAA,CAAA,MAAeC,EAAA,CACb,QAAS,CACP,sBAAsBC,EAAM,CAC1B,IAAIC,EAAY,KAAK,KAAK,eAAe,KAAK,KAAK,eAAe,OAAS,CAAC,EAC5E,YAAK,KAAK,eAAe,OAAO,CAACC,EAAMC,IAAS,SAASA,EAAK,IAAI,GAAKH,GAAQ,SAASG,EAAK,IAAI,EAAI,SAASF,EAAU,IAAI,EAAIA,EAAYE,EAAO,GAAIF,CAAS,EACzJA,CACR,CACF,CACH"}