{"version":3,"sources":["webpack:///./src/views/mock/listen/listen.vue?a22c","webpack:///./src/views/mock/listen/listen.vue","webpack:///./src/views/mock/listen/listen.js","webpack:///src/views/mock/listen/listen.vue","webpack:///./src/views/mock/listen/listen.vue?883f","webpack:///./src/views/mock/listen/listen.vue?f0f7"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","isShowInstructions","showStep","attrs","require","_v","staticStyle","_m","on","$event","goNext","ref","playTestAudio","goTest","isShowNote","instructionsNote","closeNote","_e","part","currentPart","partDesc","buttonGroups","length","_l","listenData","key","id","class","groups","group","question_type","slot","questions","question","index","selectAnswers","submitAnswer","beginNum","answer","split","QUESTION_TYPE","MATCH","type","TITLE","mode","QUESTION_TYPE_MODE","MATCH_CHOOSE","isReady","staticRenderFns","Base64","mixins","mockMix","data","audioList","currentAudioIndex","answers","audioTime","recordTime","timeInterval","currentAudioTime","listeningTime","audioCount","beginButton","exerciseType","totalPart","props","curTime","Number","default","computed","mapState","state","tests","countDownLimit","recordId","sections","common","recordDetails","detailIds","exerciseMode","mounted","routeQuery","$route","query","EXERCISE_TYPE","MOCK","setCurrentSection","getRecordId","methods","callback","detail","section","MOCK_SECTION","LISTENING","postAnswer","getSection","Api","res","JSON","parse","decode","encrypted","iv","value","decroptRes","AES","decrypt","dealData","then","buttons","audioDuration","setCurrentPart","setButtonGroups","i","getAnswers","Array","spent_second","setCurrentPartObj","part_id","setCurrentPaper","paper","answerObj","forEach","content","question_id","findAnswer","arr","item","questionId","ele","step","preloadAudio","setIsStarted","playAudio","$emit","setInterval","beginTime","audioRange","audio","document","getElementById","loop","currentTime","src","play","self","addEventListener","setTimeout","AUDIOSLEEPTIME","$refs","testAudio","mapActions","watch","newVal","oldVal","time","toFixed","totalDuration","leaveTime","getMockRecordSectionDetail","setCountdownLimit","components","note","match","partBar","navigation","noteCompletion","exerciseGroup","multipleAnswer","multipleChoice","beforeRouteLeave","to","from","next","clearInterval","component"],"mappings":"kHAAA,W,8ECAIA,EAAS,WAAk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AAU,KAIrBkH,WAAY,CACVC,YACAC,aACAC,eACAC,kBACAC,sBACAC,qBACAC,sBACAC,uBAEFC,iBAAgB,SAACC,EAAIC,EAAMC,GACzBC,cAAclL,KAAK8D,cACnBmH,MC/FJ,IC/L8W,I,wBCQ1WE,EAAY,eACd,EACArL,EACAsD,GACA,EACA,KACA,WACA,MAIa,aAAA+H,E","file":"js/chunk-2b653e9c.875cfb1b.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/style-resources-loader/lib/index.js??ref--11-oneOf-1-4!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./listen.vue?vue&type=style&index=0&id=27295e94&prod&lang=less&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"p_listen\"},[(_vm.isShowInstructions)?_c('div',{staticClass:\"confirmDetails\"},[_c('div',{staticClass:\"p-content container-fluid\"},[_c('div',{staticClass:\"row instructions steps\"},[(_vm.showStep==='one')?_c('div',{staticClass:\"col step step-one\"},[_c('div',{staticClass:\"student-detail\"},[_c('img',{attrs:{\"src\":require(\"../../../assets/img/userCheck.png\"),\"alt\":\"\"}}),_c('p',{staticClass:\"bc-box-title\"},[_vm._v(\"Confirm your details\")]),_c('div',{staticClass:\"bc-box\"},[_c('h3',{staticStyle:{\"color\":\"red\",\"text-align\":\"center\",\"font-size\":\"1.75rem\"}},[_vm._v(\"EXAMPLE\")]),_vm._m(0),_c('p',{staticClass:\"bx-box-info\"},[_vm._v(\"If your details aren't correct, please inform the invigilator.\")]),_c('button',{staticClass:\"button button-bc\",on:{\"click\":function($event){return _vm.goNext('two')}}},[_vm._v(\"My details are correct\")])])])]):(_vm.showStep==='two')?_c('div',{staticClass:\"col step step-two\"},[_c('div',{staticClass:\"test-sound\"},[_c('audio',{ref:\"testAudio\",attrs:{\"src\":require(\"../../../assets/audio/soundcheck.mp3\"),\"loop\":\"\"}}),_c('img',{attrs:{\"src\":require(\"../../../assets/img/sound.png\"),\"alt\":\"\"}}),_c('p',{staticClass:\"bc-box-title\"},[_vm._v(\"Test sound\")]),_c('div',{staticClass:\"bc-box\"},[_vm._m(1),_c('button',{staticClass:\"button btn-primary button-bc\",attrs:{\"id\":\"test-audio\"},on:{\"click\":_vm.playTestAudio}},[_vm._v(\"Play sound \")]),_c('p',{staticClass:\"bc-box-attention\"},[_vm._v(\"if you can not hear the sound clearly, please tell the invigilator\")]),_c('button',{staticClass:\"button button-bc btn-primary next-button\",on:{\"click\":function($event){return _vm.goNext('three')}}},[_vm._v(\"Continue\")])])])]):_c('div',{staticClass:\"col step step-three\"},[_vm._m(2),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col text-center\"},[_c('p',[_vm._v(\"Do not click 'Start test' until you are told to do so.\")]),_c('button',{staticClass:\"button button-bc btn-primary next-button last-step\",attrs:{\"id\":\"start-test\"},on:{\"click\":_vm.goTest}},[_vm._v(\" Start test \")])])])])])]),(_vm.isShowNote)?_c('note',{staticClass:\"note_instructions\",attrs:{\"main-text\":_vm.instructionsNote,\"contenteditable\":false},on:{\"close-note\":_vm.closeNote}}):_vm._e()],1):_c('div',{staticClass:\"test-container container-fluid px-lg-5\"},[_c('div',{staticClass:\"row mx-lg-n5\"},[_c('div',{staticClass:\"test col py-3 px-lg-5 test-listening view content\"},[_c('div',{staticClass:\"row\"},[_c('part-bar',{attrs:{\"part-bar-data\":{part:_vm.currentPart,partDesc: 'part.content' }}})],1),(_vm.buttonGroups.length>0)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col d-lg-none\"},[_c('navigation',{attrs:{\"buttonGroups\":_vm.buttonGroups}})],1)]):_vm._e(),_c('div',{staticClass:\"row\"},_vm._l((_vm.listenData),function(part){return _c('div',{key:part.id,staticClass:\"col\",class:_vm.currentPart===part.part?'':'hidden'},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col exercises has-parts\"},[_vm._l((part.groups),function(group){return [(group.question_type===11)?_c('div',{key:group.id,staticClass:\"row exercise exercise-mc1\"},[[_c('exercise-group',{attrs:{\"group\":group}},[_c('div',{staticClass:\"row list-unstyled font-weight-bold questions\",attrs:{\"slot\":\"exerciseSlot\"},slot:\"exerciseSlot\"},_vm._l((group.questions),function(question,index){return _c('multiple-choice',{key:index,staticClass:\"d_jump\",attrs:{\"id\":question.id,\"question-type\":\"listening\",\"question-desc\":question,\"answers\":_vm.selectAnswers},on:{\"submitAnswer\":_vm.submitAnswer}})}),1)])]],2):_vm._e(),(group.question_type===12)?_c('div',{key:group.id,staticClass:\"row exercise exercise-mc2\"},[_c('exercise-group',{attrs:{\"group\":group}},[_c('div',{staticClass:\"row list-unstyled font-weight-bold questions\",attrs:{\"slot\":\"exerciseSlot\"},slot:\"exerciseSlot\"},_vm._l((group.questions),function(question,index){return _c('multiple-answer',{key:index,staticClass:\"d_jump\",attrs:{\"id\":question.id,\"questionRange\":`${group.beginNum} - ${group.beginNum+group.questions[0].answer.length - 1}`,\"beginNumber\":group.beginNum,\"question-desc\":question,\"question-type\":\"listening\",\"answers\":_vm.selectAnswers[question.id]&&_vm.selectAnswers[question.id].answer.split('')||[]},on:{\"submitAnswer\":_vm.submitAnswer}})}),1)])],1):_vm._e(),(group.question_type=== 32)?_c('div',{key:group.id},[_c('exercise-group',{attrs:{\"group\":group}},[_c('div',{staticClass:\"row list-unstyled font-weight-bold questions\",attrs:{\"slot\":\"exerciseSlot\"},slot:\"exerciseSlot\"},[_c('note-completion',{staticClass:\"d_jump\",attrs:{\"id\":group.id,\"question-desc\":group,\"selectAnswers\":_vm.selectAnswers},on:{\"submitAnswer\":_vm.submitAnswer}})],1)])],1):_vm._e(),((group.question_type=== _vm.QUESTION_TYPE.MATCH || group.type === _vm.QUESTION_TYPE.TITLE) )?_c('div',{key:group.id},[_c('exercise-group',{attrs:{\"group\":group}},[_c('div',{staticClass:\"row list-unstyled font-weight-bold questions\",attrs:{\"slot\":\"exerciseSlot\"},slot:\"exerciseSlot\"},[(group.mode!==_vm.QUESTION_TYPE_MODE.MATCH_CHOOSE)?_c('match',{attrs:{\"group\":group,\"selectAnswers\":_vm.selectAnswers},on:{\"submitAnswer\":_vm.submitAnswer}}):_vm._l((group.questions),function(question,index){return _c('multiple-choice',{key:index,staticClass:\"d_jump\",attrs:{\"id\":question.id,\"question-desc\":question,\"question-type\":\"listening\"},on:{\"submitAnswer\":_vm.submitAnswer}})})],2)])],1):_vm._e()]})],2)])])}),0)])]),_c('div',{staticClass:\"row question-navigation d-none d-lg-flex\",staticStyle:{\"margin-top\":\"10px\"}},[_c('navigation',{attrs:{\"button-groups\":_vm.buttonGroups}})],1)]),(_vm.isReady)?_c('div',{staticClass:\"p_listening_loading\"},[_vm._m(3)]):_vm._e()])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('ul',[_c('li',[_vm._v(\"Name:\")]),_c('li',[_vm._v(\"Date of birth: XX-XX-XXXX\")]),_c('li',[_vm._v(\"Candidate number: xxxx xxxx - 123456\")])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('p',[_vm._v(\"Put on your headphones and click the \"),_c('strong',[_vm._v(\"Play sound\")]),_vm._v(\" button to play a sample sound.\")])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('h5',[_vm._v(\"IELTS Listening\")]),_c('p',[_vm._v(\"Time: Approximately 30 minutes\")]),_c('h5',[_vm._v(\"INSTRUCTIONS TO CANDIDATES\")]),_c('ul',[_c('li',[_vm._v(\"Answer \"),_c('strong',[_vm._v(\"all\")]),_vm._v(\" the questions.\")]),_c('li',[_vm._v(\"You can change your answers at any time during the test.\")])]),_c('h5',[_vm._v(\"INFORMATION FOR CANDIDATES\")]),_c('ul',[_c('li',[_vm._v(\"There are 40 questions in this test.\")]),_c('li',[_vm._v(\"Each question carries one mark.\")]),_c('li',[_vm._v(\"There are four parts to the test\")]),_c('li',[_vm._v(\"You will hear each part once.\")]),_c('li',[_vm._v(\"For each part of the test there will be time for you to look through the questions and time for you to check your answers. \")])])])])\n},function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"loading_content\"},[_c('i',{staticClass:\"el-icon-loading\"}),_c('div',[_vm._v(\"试题加载中\")])])\n}]\n\nexport { render, staticRenderFns }","import note from \"../../../components/common/edit/note.vue\";\nimport match from \"@/components/question/match/match.vue\";\nimport partBar from \"@/components/question/partBar/partBar.vue\";\nimport exerciseGroup from \"@/components/question/exercise/exercise.vue\";\nimport navigation from \"@/components/question/navigation/navigation.vue\";\nimport multipleAnswer from \"@/components/question/multipleAnswer/multipleAnswer.vue\";\nimport noteCompletion from \"@/components/question/noteCompletion/noteCompletion.vue\";\nimport multipleChoice from \"@/components/question/multipleChoice/multipleChoice.vue\";\n\nimport * as Api from \"@/api/mock\";\nimport { AUDIOSLEEPTIME } from \"@/utils/constant\";\nimport { dealData } from \"@/utils/util\";\nimport {\n QUESTION_TYPE_MODE,\n QUESTION_TYPE,\n EXERCISE_TYPE,\n MOCK_SECTION,\n} from \"@/utils/constant\";\n\nimport { mapActions, mapState } from \"vuex\";\nimport AES from \"@/utils/AES\";\nimport { mockMix } from \"@/views/mock/mixins/mockMix\";\n\nlet Base64 = require(\"js-base64\").Base64;\n\nexport default {\n mixins: [mockMix],\n data() {\n return {\n isReady: true,\n listenData: [],\n audioList: [],\n currentAudioIndex: 0,\n showStep: \"one\",\n isShowNote: true,\n isShowInstructions: true,\n answers: [],\n selectAnswers: {},\n audioTime: [],\n recordTime: \"\",\n timeInterval: null,\n currentAudioTime: \"\", //继续练习时音频需要接着上次的位置继续播放\n listeningTime: 0,\n audioCount: 0,\n QUESTION_TYPE,\n QUESTION_TYPE_MODE,\n beginButton: true,\n exerciseType: 3,\n totalPart: 0,\n };\n },\n props:{\n curTime:{\n type: Number,\n default: 0\n }\n },\n computed: {\n instructionsNote() {\n if (this.showStep === \"one\") {\n return \"Please click the “my details are correct” button to progress into the listening familiarisation test, in your real IELTS test there will be an invigilator in the room to advise when to do this.\";\n } else if (this.showStep === \"two\") {\n return \"Please click the “Continue” button to progress into the familiarisation test, in your real IELTS test there will be an invigilator in the room to advise when to do this.\";\n } else {\n return \"Please click the “Start test” button to start the familiarisation test, in your real IELTS test there will be an invigilator in the room to advise when to do this.\";\n }\n },\n ...mapState({\n currentPart: (state) => state.tests.currentPart,\n buttonGroups: (state) => state.tests.buttonGroups,\n countDownLimit: (state) => state.tests.countDownLimit,\n recordId: (state) => state.tests.recordId,\n sections: (state) => state.common.sections,\n recordDetails: (state) => state.tests.detailIds,\n exerciseMode: (state) => state.tests.exerciseMode,\n }),\n },\n mounted() {\n let routeQuery = this.$route.query;\n this.exerciseType = routeQuery.type * 1 || EXERCISE_TYPE.MOCK;\n this.setCurrentSection(\"listening\");\n this.getRecordId();\n this.beginButton = true;\n },\n methods: {\n submitAnswer(answer, callback) {\n let detail = {\n recordId: this.recordId,\n section: MOCK_SECTION.LISTENING\n };\n this.postAnswer(\"listening\", detail, answer, this.exerciseType, callback);\n },\n\n getSection() {\n let detail = {\n recordId: this.recordId,\n section:MOCK_SECTION.LISTENING\n };\n Api.getPaper(\n detail,\n (res) => {\n const { iv, value } = JSON.parse(Base64.decode(res.encrypted))\n const decroptRes = JSON.parse(AES.decrypt(value, '', 'CBC', iv));\n this.dealData(decroptRes, this.selectAnswers).then(\n ([data, buttons, audioList, audioDuration]) => {\n this.listenData = data;\n this.setCurrentPart(data[0].part);\n this.setButtonGroups(buttons);\n this.audioList = audioList;\n this.audioTime = audioDuration;\n this.totalPart = data.length;\n for (let i = 0; i < this.totalPart; i++) {\n this.listeningTime += audioDuration[i];\n this.audioCount++;\n }\n }\n );\n },\n \"\",\n this.exerciseType\n );\n },\n getAnswers() {\n let detail = {\n recordId: this.recordId,\n section: MOCK_SECTION.LISTENING\n };\n Api.getSelectAnswer(this.exerciseType, detail, \"\", (res) => {\n let answers;\n if (res instanceof Array) {\n answers = {\n spent_second: 0,\n answers: res,\n };\n } else {\n answers = res;\n this.setCurrentPartObj({\n id:res.part_id\n })\n this.setCurrentPaper(res.paper)\n }\n this.recordTime = answers.spent_second;\n if (answers.answers.length === 0) {\n this.selectAnswers = {};\n } else {\n let answerObj = {};\n answers.answers.forEach((answer) => {\n answer.answer = answer.content\n delete answer.content\n answerObj[answer.question_id] = answer;\n });\n this.selectAnswers = answerObj;\n }\n this.getSection();\n });\n },\n findAnswer(arr, item) {\n let questionId = \"\";\n arr.forEach((ele, index) => {\n if (ele.question_id === item.question_id) {\n questionId = index;\n }\n });\n return questionId;\n },\n goNext(step) {\n this.showStep = step;\n this.preloadAudio(this.recordTime);\n },\n goTest() {\n if (this.beginButton) {\n this.beginButton = false;\n this.isShowInstructions = false;\n this.setIsStarted(true);\n this.playAudio(this.recordTime); // todo 播放音频\n this.$emit(\"startTimer\", this.countDownLimit);\n if (this.exerciseMode === \"first\") {\n this.submitAnswer(\"\");\n } else {\n this.submitAnswer(\"continue\");\n }\n this.timeInterval = setInterval(() => {\n //todo\n this.submitAnswer(\"second\");\n }, 30000);\n }\n },\n preloadAudio(beginTime) {\n let audioRange = [];\n audioRange[0] = this.audioTime[0];\n audioRange[1] = this.audioTime[0] + this.audioTime[1];\n audioRange[2] = audioRange[1] + this.audioTime[2];\n audioRange[3] = audioRange[2] + this.audioTime[3];\n let audio = document.getElementById(\"listeningAudio\");\n audio.loop = false;\n let currentTime = \"\";\n if (beginTime < audioRange[0]) {\n audio.src = this.audioList[0];\n currentTime = beginTime;\n } else if (beginTime > audioRange[0] && beginTime < audioRange[1]) {\n audio.src = this.audioList[1];\n currentTime = beginTime - audioRange[0];\n } else if (beginTime > audioRange[1] && beginTime < audioRange[2]) {\n audio.src = this.audioList[2];\n currentTime = beginTime - audioRange[1];\n } else if (beginTime > audioRange[2] && beginTime < audioRange[3]) {\n audio.src = this.audioList[3];\n currentTime = beginTime - audioRange[2];\n } else {\n return;\n }\n this.currentAudioTime = currentTime;\n },\n playAudio() {\n let audio = document.getElementById(\"listeningAudio\");\n audio.loop = false;\n audio.currentTime = this.currentAudioTime;\n audio.play();\n let self = this;\n audio.addEventListener(\n \"ended\",\n function() {\n self.currentAudioIndex += 1;\n if (self.audioList[self.currentAudioIndex]) {\n setTimeout(function() {\n audio.src = self.audioList[self.currentAudioIndex];\n document.getElementById(\"listeningAudio\").play();\n }, AUDIOSLEEPTIME);\n } else {\n return;\n }\n },\n false\n );\n },\n playTestAudio() {\n this.$refs.testAudio.play();\n },\n closeNote() {\n this.isShowNote = false;\n },\n dealData,\n\n ...mapActions([\n \"setCurrentPart\",\n \"setButtonGroups\",\n \"setPreciseTime\",\n \"setNotPreciseTime\",\n \"setIsStarted\",\n \"setCountdownLimit\",\n \"setIsAnswered\",\n \"setCurrentSection\",\n \"setRecordId\",\n \"setRecordDetailIds\",\n \"setCurrentPartObj\",\n \"setCurrentPaper\"\n ]),\n },\n watch: {\n audioCount(newVal, oldVal) {\n if (newVal === this.totalPart) {\n let time = this.listeningTime.toFixed(0) * 1 + 120;\n this.totalDuration = time\n let leaveTime = 0\n if(this.exerciseType === EXERCISE_TYPE.MOCK){\n leaveTime = this.totalDuration - this.getMockRecordSectionDetail(this.recordDetails)?.spent_second;\n }else {\n leaveTime = this.totalDuration - this.recordTime;\n }\n this.setCountdownLimit(leaveTime);\n this.isReady = false;\n }\n },\n },\n components: {\n note,\n match,\n partBar,\n navigation,\n noteCompletion,\n exerciseGroup,\n multipleAnswer,\n multipleChoice,\n },\n beforeRouteLeave(to, from, next) {\n clearInterval(this.timeInterval);\n next();\n },\n};\n","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./listen.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./listen.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./listen.vue?vue&type=template&id=27295e94&scoped=true&\"\nimport script from \"./listen.vue?vue&type=script&lang=js&\"\nexport * from \"./listen.vue?vue&type=script&lang=js&\"\nimport style0 from \"./listen.vue?vue&type=style&index=0&id=27295e94&prod&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"27295e94\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}