����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 18.224.44.53
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.bofirm.com/public/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/cbt.bofirm.com/public/js/8412.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8412],{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},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},94223:(t,e,s)=>{s.d(e,{Z:()=>r});const n={props:{name:{type:String,default:"Submit"}}};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-green-400 hover:bg-green-600 shadow-inner text-sm text-white rounded border border-green-300 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:"M5 13l4 4L19 7"}})]),t._v(" "),s("span",[t._v(t._s(t.name))])])}),[],!1,null,null,null).exports},15236:(t,e,s)=>{s.d(e,{Z:()=>a});var n=s(30281),r=s(60118),i=s(72522);const o={name:"PracticeQuestionCard",components:{AudioAttachment:n.Z,VideoAttachment:r.Z,ComprehensionAttachment:i.Z},props:{question:Object,sno:Number,totalQuestions:Number,attachmentType:String,attachment:[String,Object]},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const a=(0,s(51900).Z)(o,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"border rounded border-gray-200 bg-gray-50 p-6 shadow-sm"},[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(" "),null!=t.attachmentType?s("div",{staticClass:"mb-4"},["audio"===t.attachmentType?s("div",[s("audio-attachment",{attrs:{reference:"player_"+t.question.code,options:t.attachment}})],1):t._e(),t._v(" "),"video"===t.attachmentType?s("div",[s("video-attachment",{attrs:{reference:"player_"+t.question.code,options:t.attachment}})],1):t._e(),t._v(" "),"comprehension"===t.attachmentType?s("div",[s("comprehension-attachment",{attrs:{passage:t.attachment}})],1):t._e()]):t._e(),t._v(" "),s("div",{staticClass:"q-data question",domProps:{innerHTML:t._s(t.question.question)}})])}),[],!1,null,null,null).exports},47554:(t,e,s)=>{s.d(e,{Z:()=>o});var n=s(75521),r=s(28006);const i={name:"PracticeQuestionChip",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?this.is_correct?"Correct Answer":"Wrong Answer":"Not Answered"},chipStatus:function(){return"answered"===this.status?this.is_correct?"success":"danger":"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},26778:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"PracticeSolutionCard",components:{VideoAttachment:s(60118).Z},props:{question:Object},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 rounded bg-yellow-50 border border-yellow-200 p-6"},[s("h4",{staticClass:"font-semibold text-gray-600 mb-4 uppercase"},[t._v(t._s(t.__("Solution")))]),t._v(" "),t.question.solution_video?s("div",[s("video-attachment",{attrs:{reference:"player_"+t.question.code,options:t.question.solution_video,"show-message":!1}})],1):t._e(),t._v(" "),s("div",{domProps:{innerHTML:t._s(t.question.solution)}})])}),[],!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},78589:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"RewardBadge",props:{points:{type:[Number,String],default:0},textColor:{type:String,default:"text-gray-400"},iconSize:{type:String,default:"w-7 h-7"}}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"flex group gap-2 items-center"},[s("svg",{staticClass:"transition duration-300 ease-in-out transform group-hover:scale-110",class:t.iconSize,attrs:{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",width:"300px",height:"300px",viewBox:"0 0 300 300","enable-background":"new 0 0 300 300","xml:space":"preserve"}},[s("g",[s("ellipse",{attrs:{fill:"#FFC843",cx:"149.833",cy:"149.501",rx:"147.833",ry:"146.166"}}),s("ellipse",{attrs:{fill:"#D38700",cx:"150",cy:"150.168",rx:"113.667",ry:"113.833"}}),t._v(" "),s("polygon",{attrs:{fill:"#FFC843",points:"192.716,211.945 151.021,190.203 109.476,212.222 117.27,165.852 83.489,133.142 129.999,126.226\n                                        150.667,83.991 171.618,126.086 218.172,132.693 184.611,165.626"}})])]),t._v(" "),s("span",{staticClass:"font-semibold ",class:t.textColor},[t._v(t._s(t.points)+" XP")])])}),[],!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},60147:(t,e,s)=>{s.d(e,{Z:()=>r});const n={name:"PracticeLayout",components:{PerfectScrollbar:s(44943).PerfectScrollbar},data:function(){return{moved:!0,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)}},mounted:function(){this.$refs.mobileNav.style.transform=this.$page.props.rtl?"translateX(320px)":"translateX(-320px)"}};const r=(0,s(51900).Z)(n,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"h-screen max-h-screen overflow-hidden flex flex-no-wrap bg-white select-none"},[s("div",{staticClass:"w-96 overflow-hidden absolute sm:relative bg-gray-800 shadow md:h-full flex-col justify-between hidden sm:flex sm:flex-col"},[s("div",{staticClass:"z-30 h-16 w-full mx-auto absolute top-0 left-0 bg-gray-700 flex items-center px-4"},[t._t("title")],2),t._v(" "),t.$slots.actions?s("div",{staticClass:"z-30 h-16 w-full mx-auto absolute top-16 left-0 bg-gray-800 flex justify-between items-center px-4"},[t._t("actions")],2):t._e(),t._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen px-4 pb-16",class:[t.$slots.actions?"pt-32":"pt-16"],attrs:{options:t.scrollbarOptions}},[t._t("questions")],2),t._v(" "),s("div",{staticClass:"w-96 w-full absolute left-0 bottom-0 px-4 border-t border-gray-700"},[t._t("footer")],2)],1),t._v(" "),s("div",{ref:"mobileNav",staticClass:"w-80 h-full z-40 fixed bg-gray-800 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:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"}},[s("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),s("path",{attrs:{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}})])]):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-700 flex items-center px-4"},[t._t("title")],2),t._v(" "),t.$slots.actions?s("div",{staticClass:"z-30 h-16 w-full mx-auto absolute top-16 left-0 bg-gray-800 flex justify-between items-center px-4"},[t._t("actions")],2):t._e(),t._v(" "),s("perfect-scrollbar",{ref:"scroll",staticClass:"h-screen max-h-screen overflow-hidden px-4 pb-16",class:[t.$slots.actions?"pt-32":"pt-16"],attrs:{options:t.scrollbarOptions}},[t._t("questions")],2),t._v(" "),s("div",{staticClass:"w-full absolute bottom-0 px-8 border-t border-gray-700"},[s("ul",{staticClass:"w-full flex items-center justify-between bg-gray-800"},[t._t("footer")],2)])],1),t._v(" "),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",{directives:[{name:"show",rawName:"v-show",value:!t.moved,expression:"!moved"}],staticClass:"fixed inset-0 z-30 w-screen h-screen bg-black bg-opacity-25 md:hidden",on:{click:function(e){return t.sidebarHandler(!1)}}})])}),[],!1,null,null,null).exports},88412:(t,e,s)=>{s.r(e),s.d(e,{default:()=>I});var n=s(60147),r=s(15236),i=s(75521),o=s(28006);const a={name:"DarkQuestionCard",components:{QuestionChip:i.Z},directives:{tooltip:o.default},props:{question:Object,sno:Number,active:Boolean,is_correct:Boolean,status:String},computed:{questionStatus:function(){return"answered"===this.status?this.is_correct?"Correct Answer":"Wrong Answer":"Not Answered"},chipStatus:function(){return"answered"===this.status?this.is_correct?"success":"danger":"default"}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};var l=s(51900);const c=(0,l.Z)(a,(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-900 hover:text-gray-200 rounded p-4",class:[t.active?"bg-gray-900 text-gray-200":"text-gray-400"]},[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;var u=s(47554),d=s(89808),p=s(75004),h=s(807),m=s(50730),w=s(27148),v=s(94223);const f={props:{name:{type:String,default:"Pause"}}};const _=(0,l.Z)(f,(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-yellow-500 hover:bg-yellow-600 text-white text-sm rounded border border-yellow-300 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:"M10 9v6m4-6v6m7-3a9 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;const g={name:"MSAInteractiveOptions",props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String,solutionMode:!1},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){if("answered"===this.status){if(this.isCorrect&&this.answer===t+1)return"correct";if(!this.isCorrect&&this.answer===t+1)return"wrong"}return"answered"===this.status?"":"cursor-pointer"}},computed:{disable:function(){return"answered"===this.status||this.solutionMode},answerText:function(){return this.disable?"Correct answer is Option "+this.correctAnswer:""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const x=(0,l.Z)(g,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[t.disable?t._e():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            Choose one option\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,disabled:t.disable},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",{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),t._v(" "),t.disable?s("div",{staticClass:"flex gap-2 border border-green-200 bg-green-50 items-center rounded p-4 mt-6"},[s("svg",{staticClass:"w-6 h-6 text-green-400",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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("h4",{staticClass:" text-gray-600",domProps:{innerHTML:t._s(t.answerText)}})]):t._e()])}),[],!1,null,null,null).exports;const b={name:"MMAInteractiveOptions",props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String,solutionMode:!1},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"answered"===this.status?-1!==this.answer.indexOf(t+1)?-1!==this.correctAnswer.indexOf(t+1)?"correct":"wrong":"":"answered"===this.status?"":"cursor-pointer"}},computed:{disable:function(){return"answered"===this.status||this.solutionMode},answerText:function(){return this.disable?"Correct answers are Option "+this.correctAnswer.sort().join(", "):""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const y=(0,l.Z)(b,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[t.disable?t._e():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        Choose multiple options\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)||t.disable},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",{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),t._v(" "),t.disable?s("div",{staticClass:"flex gap-2 border border-green-200 bg-green-50 items-center rounded p-4 mt-6"},[s("svg",{staticClass:"w-6 h-6 text-green-400",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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("h4",{staticClass:"text-gray-600",domProps:{innerHTML:t._s(t.answerText)}})]):t._e()])}),[],!1,null,null,null).exports;var C=s(9980),k=s.n(C);const q={name:"MTFInteractiveOptions",components:{draggable:k()},props:{parentQid:[Number,String],parentOptions:[Array,Object],parentAnswer:[Array,Object],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String,solutionMode:!1},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"answered"===this.status?this.answer[t].id===this.correctAnswer[t]?"correct":"wrong":this.touched?"answered cursor-move":"cursor-move"}},computed:{disable:function(){return"answered"===this.status||this.solutionMode},answerText:function(){if(this.disable){var t=this,e=[];return this.correctAnswer.forEach((function(s,n){var r=t.parentAnswer.find((function(t){return t.id===s}));e.push(n+1+" - "+r.code)})),"Correct answers are "+e.join(", ")}return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const A=(0,l.Z)(q,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[t.disable?t._e():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        Match the following by drag and drop right side items\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",sort:!t.disable},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",{directives:[{name:"show",rawName:"v-show",value:!t.disable,expression:"!disable"}],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)]),t._v(" "),t.disable?s("div",{staticClass:"flex gap-2 border border-green-200 bg-green-50 items-center rounded p-4 mt-6"},[s("svg",{staticClass:"w-6 h-6 text-green-400",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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("h4",{staticClass:"text-sm text-gray-600",domProps:{innerHTML:t._s(t.answerText)}})]):t._e()])}),[],!1,null,null,null).exports;const S={name:"ORDInteractiveOptions",components:{draggable:k()},props:{parentQid:[Number,String],parentOptions:Array,parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String,solutionMode:!1},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"answered"===this.status?this.answer[t].id===this.correctAnswer[t]?"correct":"wrong":this.touched?"answered cursor-move":"cursor-move"}},computed:{disable:function(){return"answered"===this.status||this.solutionMode},answerText:function(){if(this.disable){var t=this,e=[];return this.correctAnswer.forEach((function(s,n){var r=t.parentAnswer.find((function(t){return t.id===s}));e.push(n+1+" - "+r.code)})),"Correct answers are "+e.join(", ")}return""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const M=(0,l.Z)(S,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-radio"},[t.disable?t._e():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        Arrange the following in order by drag and drop the items\n    ")]),t._v(" "),s("div",{staticClass:"q-options"},[s("draggable",{attrs:{sort:!t.disable,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",{directives:[{name:"show",rawName:"v-show",value:!t.disable,expression:"!disable"}],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),t._v(" "),t.disable?s("div",{staticClass:"flex gap-2 border border-green-200 bg-green-50 items-center rounded p-4 mt-6"},[s("svg",{staticClass:"w-6 h-6 text-green-400",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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("h4",{staticClass:"text-sm text-gray-600",domProps:{innerHTML:t._s(t.answerText)}})]):t._e()])}),[],!1,null,null,null).exports;const O={name:"FIBInteractiveOptions",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String,solutionMode:!1},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"answered"===this.status?this.answer[t].toLowerCase()===this.correctAnswer[t].toLowerCase()?"q-input correct":"q-input wrong":this.answer[t]&&""!==this.answer[t]?"q-input answered":"q-input"}},computed:{disable:function(){return"answered"===this.status||this.solutionMode},answerText:function(){return this.disable?"Correct answers for the blanks are "+this.correctAnswer.map((function(t,e){return e+1+". "+t})).join(", "):""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const j=(0,l.Z)(O,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[t.disable?t._e():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        Fill the blanks in the below text boxes\n    ")]),t._v(" "),t._l(t.options,(function(e,n){return s("div",{key:"blank_"+n},[s("div",{staticClass:"mb-2",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,disabled:t.disable},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)}}})])])})),t._v(" "),t.disable?s("div",{staticClass:"flex gap-2 border border-green-200 bg-green-50 items-center rounded p-4 mt-6"},[s("svg",{staticClass:"w-6 h-6 text-green-400",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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("h4",{staticClass:"text-gray-600",domProps:{innerHTML:t._s(t.answerText)}})]):t._e()],2)}),[],!1,null,null,null).exports;const T={name:"SAQInteractiveOptions",props:{parentQid:[Number,String],parentOptions:[String,Array,Number],parentAnswer:[String,Array,Number],correctAnswer:[String,Array,Number],isCorrect:Boolean,status:String,solutionMode:!1},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"answered"===this.status?this.isCorrect?"q-input correct":"q-input wrong":""!==this.answer?"q-input answered":"q-input"}},computed:{disable:function(){return"answered"===this.status||this.solutionMode},answerText:function(){return this.disable?"Acceptable answers are "+this.correctAnswer.sort().join(", "):""}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const $=(0,l.Z)(T,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"q-inputs"},[t.disable?t._e():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",disabled:t.disable},domProps:{value:t.answer},on:{change:t.selectAnswer,input:function(e){e.target.composing||(t.answer=e.target.value)}}})]),t._v(" "),t.disable?s("div",{staticClass:"flex gap-2 border border-green-200 bg-green-50 items-center rounded p-4 mt-6"},[s("svg",{staticClass:"w-6 h-6 text-green-400",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:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})]),t._v(" "),s("h4",{staticClass:" text-gray-600",domProps:{innerHTML:t._s(t.answerText)}})]):t._e()])}),[],!1,null,null,null).exports;var Z=s(26778),B=s(78589),P=s(86455),Q=s.n(P),N=s(44943),E=s(71003);const z={components:{SAQInteractiveOptions:$,FIBInteractiveOptions:j,ORDInteractiveOptions:M,MTFInteractiveOptions:A,MSAInteractiveOptions:x,MMAInteractiveOptions:y,PracticeLayout:n.Z,PracticeQuestionCard:r.Z,DarkQuestionCard:c,PracticeQuestionChip:u.Z,NavigationQuestionCardShimmer:d.Z,PracticeQuestionShimmer:p.Z,PrevButton:h.Z,NextButton:m.Z,FinishButton:w.Z,SubmitButton:v.Z,PauseButton:_,PracticeSolutionCard:Z.Z,PerfectScrollbar:N.PerfectScrollbar,RewardsBadge:B.Z,ConfirmDialog:E.default},props:{practiceSet:Object,settings:Object,session:Object},data:function(){return{current_question:0,questions:[],pagination:null,answered:0,total_points_earned:this.session.total_points_earned,total_time_taken:this.session.total_time_taken,chipView:!1,loading:!0,submitting:!1,scrollbarOptions:{maxScrollbarLength:1,suppressScrollX:!0},rewardStrings:["Hurray","Yippee","Congrats","Cheers","Yup","Precise","Delight","Glory"]}},methods:{submitAnswer:function(){var t=this;t.submitting=!0,axios.post(route("check_practice_answer",{practiceSet:this.practiceSet.slug,session:this.session.code}),{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}).then((function(e){var s=e.data;t.questions[t.current_question].is_correct=s.is_correct,t.questions[t.current_question].status=s.status,t.questions[t.current_question].solution=s.solution,t.questions[t.current_question].solution_video=s.solution_video,t.questions[t.current_question].ca=s.ca,t.questions[t.current_question].points_earned=s.points_earned,t.answered=s.answered,t.submitting=!1,s.is_correct&&0!==s.points_earned&&(t.practiceSet.allow_rewards&&t.settings.show_reward_popup&&t.showPoints(s.points_earned),t.total_points_earned=s.total_points_earned)})).catch((function(e){t.submitting=!1})).then((function(){t.submitting=!1}))},pauseTest:function(){var t=this;this.$confirm.require({message:this.__("practice_pause_text"),header:this.__("Confirmation"),icon:"pi pi-exclamation-triangle",accept:function(){t.$inertia.post(route("practice_session_analysis",{practiceSet:t.practiceSet.slug,session:t.session.code}),{total_time_taken:t.total_time_taken},{replace:!0})},reject:function(){}})},finishTest:function(){this.$inertia.post(route("finish_practice_session",{practiceSet:this.practiceSet.slug,session:this.session.code}),{replace:!0})},updateAnswer:function(t){this.questions[this.current_question].user_answer=t},prevQuestion:function(){0!==this.current_question?this.current_question--:this.prevPage()},nextQuestion:function(){this.current_question<this.questions.length-1?this.current_question++:this.current_question<this.practiceSet.total_questions-1&&this.nextPage()},jumpToQuestion:function(t){this.current_question>t?this.currentTransition="prev":this.currentTransition="next",this.current_question=t},prevPage:function(){1!==this.pagination.current_page&&(this.current_question=0,this.fetchQuestions(this.pagination.current_page-1))},nextPage:function(){this.pagination.current_page<this.pagination.total_pages&&(this.current_question=0,this.fetchQuestions(this.pagination.current_page+1))},fetchQuestions:function(t){var e=this;e.loading=!0,axios.get(route("fetch_practice_questions",{practiceSet:this.practiceSet.slug,session:this.session.code,page:t})).then((function(t){var s=t.data;e.questions=s.questions,e.pagination=s.pagination,e.answered=s.answered,"completed"!==e.session.status&&e.startTimer()})).catch((function(t){e.loading=!1})).then((function(){e.loading=!1}))},getQuestionNo:function(t){return t+1+this.pagination.per_page*(this.pagination.current_page-1)},typeCheck:function(t){var e=Object.prototype.toString.call(t);return e.substring(e.indexOf(" ")+1,e.indexOf("]")).toLowerCase()},startTimer:function(){setInterval(this.incrementTime,1e3)},incrementTime:function(){this.total_time_taken=parseInt(this.total_time_taken)+1,"answered"!==this.questions[this.current_question].status&&(this.questions[this.current_question].time_taken=parseInt(this.questions[this.current_question].time_taken)+1)},showPoints:function(t){var e=this,s=new Audio(e.appUrl+"/images/insight.mp3"),n=this.rewardStrings[Math.floor(Math.random()*this.rewardStrings.length)];setTimeout((function(){s.play(),Q().fire({title:"<strong>"+t+" XP</strong>",html:'<div class="w-full flex flex-col justify-center items-center"><img src="'+e.appUrl+'/images/reward.gif" /><span class="">'+n+"! You've earned "+t+" points</span></div>",showCloseButton:!1,focusConfirm:!0,confirmButtonText:'<div class="flex gap-2 justify-center items-center"><svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5"></path></svg> Great!</div>',confirmButtonAriaLabel:"Thumbs up, great!"})}),1e3)}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.practiceSet.title+" - "+this.$page.props.general.app_name},headerButton:function(){return"completed"===this.session.status?"close":"completed"!==this.session.status&&this.answered===this.practiceSet.total_questions?"finish":"pause"},footerButton:function(){return"array"===this.typeCheck(this.questions[this.current_question].user_answer)&&0!==this.questions[this.current_question].user_answer.length&&"answered"!==this.questions[this.current_question].status||"string"===this.typeCheck(this.questions[this.current_question].user_answer)&&""!==this.questions[this.current_question].user_answer&&"answered"!==this.questions[this.current_question].status||"number"===this.typeCheck(this.questions[this.current_question].user_answer)&&""!==this.questions[this.current_question].user_answer&&"answered"!==this.questions[this.current_question].status?"submit":this.getQuestionNo(this.current_question)!==this.practiceSet.total_questions?"next":""},appUrl:function(){return this.$page.props.appUrl}},mounted:function(){document.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this.fetchQuestions(1)}};const I=(0,l.Z)(z,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("practice-layout",{scopedSlots:t._u([{key:"title",fn:function(){return[s("h4",{staticClass:"font-semibold text-white"},[t._v(t._s(t.practiceSet.title))])]},proxy:!0},{key:"actions",fn:function(){return[s("h5",{staticClass:"text-white"},[t._v(t._s(t.answered)+"/"+t._s(t.practiceSet.total_questions)+" "+t._s(t.__("Attempted")))]),t._v(" "),s("button",{staticClass:"text-gray-400 hover:text-white 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()])]},proxy:!0},{key:"questions",fn:function(){return[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("dark-question-card",{attrs:{question:e,sno:t.getQuestionNo(n),is_correct:e.is_correct,status:e.status,active:t.current_question===n}}),t._v(" "),t.chipView?s("practice-question-chip",{attrs:{sno:t.getQuestionNo(n),is_correct:e.is_correct,status:e.status,active:t.current_question===n}}):t._e()],1)})),0)]},proxy:!0},{key:"footer",fn:function(){return[t.loading?t._e():s("ul",{staticClass:"w-full h-16 flex items-center justify-between bg-gray-800"},[s("li",{staticClass:"text-gray-400 hover:text-white cursor-pointer",on:{click:t.prevPage}},[s("svg",{staticClass:"w-8 h-8",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:"M11 15l-3-3m0 0l3-3m-3 3h8M3 12a9 9 0 1118 0 9 9 0 01-18 0z"}})])]),t._v(" "),s("li",[s("span",{staticClass:" text-white"},[t._v(t._s(t.__("Page"))+" "+t._s(t.pagination.current_page)+"/"+t._s(t.pagination.total_pages))])]),t._v(" "),s("li",{staticClass:"text-gray-400 hover:text-white cursor-pointer",on:{click:t.nextPage}},[s("svg",{staticClass:"w-8 h-8",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:"M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"}})])])])]},proxy:!0}])},[t._v(" "),t._v(" "),t._v(" "),t._v(" "),s("div",{staticClass:"w-full h-16 fixed sm:absolute z-30 top-0 right-0 mx-auto bg-white"},[s("div",{staticClass:"w-full sm:max-w-7xl 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 sm:w-2/3 flex ltr:flex-row rtl:flex-row-reverse items-center ltr:justify-end rtl:justify-start gap-4 sm:gap-0 sm:ltr:justify-between sm:rtl:justify-between"},[t.practiceSet.allow_rewards?s("rewards-badge",{attrs:{points:t.total_points_earned}}):s("div",{staticClass:"h-0 w-0"}),t._v(" "),"finish"===t.headerButton?s("button",{staticClass:"focus:outline-none",on:{click:t.finishTest}},[s("finish-button",{attrs:{name:t.__("Finish")}})],1):t._e(),t._v(" "),"close"===t.headerButton?s("inertia-link",{attrs:{href:t.route("practice_session_analysis",{practiceSet:t.practiceSet.slug,session:t.session.code})}},[s("finish-button",{attrs:{name:t.__("Close")}})],1):t._e(),t._v(" "),"pause"===t.headerButton?s("button",{staticClass:"focus:outline-none",on:{click:t.pauseTest}},[s("pause-button",{attrs:{name:t.__("Pause")}})],1):t._e()],1)])])]),t._v(" "),s("perfect-scrollbar",{ref:"scroll2",staticClass:"h-screen max-h-screen pt-16 pb-16",attrs:{options:t.scrollbarOptions}},[s("div",{staticClass:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"},[s("div",{staticClass:"flex flex-col justify-center items-center"},[t.loading?s("div",{staticClass:"w-full sm:w-2/3"},[s("div",{staticClass:"card card-body"},[s("PracticeQuestionShimmer",{staticClass:"w-full"})],1)]):s("div",{staticClass:"w-full py-2 sm:w-2/3"},t._l(t.questions,(function(e,n){return s("div",{key:e.id},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.current_question===n,expression:"current_question === index"}],attrs:{id:e.code}},[s("practice-question-card",{key:e.card,attrs:{question:e,sno:t.getQuestionNo(n),"attachment-type":e.attachment_type,attachment:e.attachment,"total-questions":t.practiceSet.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,"is-correct":e.is_correct,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer,"correct-answer":e.ca},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,"is-correct":e.is_correct,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer,"correct-answer":e.ca},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,"is-correct":e.is_correct,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer,"correct-answer":e.ca},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,"is-correct":e.is_correct,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer,"correct-answer":e.ca},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,"is-correct":e.is_correct,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer,"correct-answer":e.ca},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,"is-correct":e.is_correct,status:e.status,"parent-options":e.options,"parent-answer":e.user_answer,"correct-answer":e.ca},on:{modifyAnswer:t.updateAnswer}})],1):t._e(),t._v(" "),"answered"===e.status?s("div",{staticClass:"mt-4"},[s("practice-solution-card",{attrs:{question:e}})],1):t._e()],1)])})),0)])])]),t._v(" "),s("div",{staticClass:"w-full h-16 fixed sm:absolute z-30 bottom-0 right-0 mx-auto bg-white"},[s("div",{staticClass:"w-full sm:max-w-7xl 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 sm:w-2/3 flex items-center justify-between"},[s("button",{staticClass:"focus:outline-none",on:{click:t.prevQuestion}},[s("prev-button",{attrs:{name:t.__("Previous")}})],1),t._v(" "),"submit"===t.footerButton?s("button",{staticClass:"focus:outline-none",class:{"opacity-25":t.submitting},attrs:{disabled:t.submitting},on:{click:t.submitAnswer}},[s("submit-button",{attrs:{name:t.__("Submit")}})],1):t._e(),t._v(" "),"next"===t.footerButton?s("button",{staticClass:"focus:outline-none",on:{click:t.nextQuestion}},[s("next-button",{attrs:{name:t.__("Next")}})],1):t._e()])])])]),t._v(" "),s("ConfirmDialog")],1)}),[],!1,null,null,null).exports}}]);

Youez - 2016 - github.com/yon3zu
LinuXploit