����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 18.191.132.105 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 : |
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1547],{97618:(t,s,e)=>{e.d(s,{Z:()=>i});const i=(0,e(51900).Z)({},(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"50",height:"50",viewBox:"0 0 50 50"}},[e("g",{attrs:{id:"Icon",transform:"translate(13 344)"}},[e("g",{attrs:{id:"circle",transform:"translate(-29 -361.14)"}},[e("circle",{attrs:{id:"bg_circle",cx:"25",cy:"25",r:"25",transform:"translate(16 17.14)",fill:"#25c16f"}}),t._v(" "),e("path",{attrs:{id:"white_ring",d:"M20,0A19.969,19.969,0,0,1,37.151,30.248c-.712,1.229-2.946,1.654-4.181,2.926-1.2,1.235-1.426,3.291-3.258,4.338A20.011,20.011,0,1,1,20,0Z",transform:"translate(21 22.14)",fill:"#fff"}}),t._v(" "),e("circle",{attrs:{id:"green_ring",cx:"15",cy:"15",r:"15",transform:"translate(26 27.14)",fill:"#25c16f"}})]),t._v(" "),e("g",{attrs:{id:"cursor",transform:"matrix(1, -0.017, 0.017, 1, 10.797, -319.593)"}},[e("path",{attrs:{id:"right",d:"M10.286,23.465a.687.687,0,0,1-.63-.413L.057.962a.687.687,0,0,1,.9-.9l22.09,9.6a.687.687,0,0,1-.073,1.288L16.249,13A4.885,4.885,0,0,0,13,16.249l-2.058,6.73a.687.687,0,0,1-.619.485Z",transform:"translate(0 0)",fill:"#fff"}}),t._v(" "),e("path",{attrs:{id:"left",d:"M27.244,9.657,5.154.058A.688.688,0,0,0,4.394.2h0L18.412,14.221A4.887,4.887,0,0,1,20.441,13l6.73-2.058a.687.687,0,0,0,.073-1.288Z",transform:"translate(-4.192 -0.001)",fill:"#fff"}})])])])}),[],!1,null,null,null).exports},60651:(t,s,e)=>{e.d(s,{Z:()=>r});const i={data:function(){return{show:!0}},computed:{style:function(){var t;return(null===(t=this.$page.props.jetstream.flash)||void 0===t?void 0:t.bannerStyle)||"success"},message:function(){var t;return(null===(t=this.$page.props.jetstream.flash)||void 0===t?void 0:t.banner)||""}}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t.show&&t.message?e("div",{class:{"bg-indigo-500":"success"==t.style,"bg-red-700":"danger"==t.style}},[e("div",{staticClass:"max-w-screen-xl mx-auto py-2 px-3 sm:px-6 lg:px-8"},[e("div",{staticClass:"flex items-center justify-between flex-wrap"},[e("div",{staticClass:"w-0 flex-1 flex items-center min-w-0"},[e("span",{staticClass:"flex p-2 rounded-md",class:{"bg-indigo-600":"success"==t.style,"bg-red-600":"danger"==t.style}},["success"==t.style?e("svg",{staticClass:"h-5 w-5 text-white",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[e("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._e(),t._v(" "),"danger"==t.style?e("svg",{staticClass:"h-5 w-5 text-white",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}})]):t._e()]),t._v(" "),e("p",{staticClass:"ml-3 font-medium text-white truncate"},[t._v("\n "+t._s(t.message)+"\n ")])]),t._v(" "),e("div",{staticClass:"flex-shrink-0 sm:ml-3"},[e("button",{staticClass:"-mr-1 flex p-2 rounded-md focus:outline-none sm:-mr-2 transition ease-in-out duration-150",class:{"hover:bg-indigo-600 focus:bg-indigo-600":"success"==t.style,"hover:bg-red-600 focus:bg-red-600":"danger"==t.style},attrs:{type:"button","aria-label":"Dismiss"},on:{click:function(s){s.preventDefault(),t.show=!1}}},[e("svg",{staticClass:"h-5 w-5 text-white",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"}})])])])])])]):t._e()])}),[],!1,null,null,null).exports},16446:(t,s,e)=>{e.d(s,{Z:()=>r});const i={props:{align:{default:"right"},width:{default:"48"},contentClasses:{default:function(){return["py-1","bg-white"]}}},data:function(){return{open:!1}},created:function(){var t=this,s=function(s){t.open&&27===s.keyCode&&(t.open=!1)};this.$once("hook:destroyed",(function(){document.removeEventListener("keydown",s)})),document.addEventListener("keydown",s)},computed:{widthClass:function(){return{48:"w-48"}[this.width.toString()]},alignmentClasses:function(){return"left"===this.align?"origin-top-left left-0":"right"===this.align?"rtl:origin-top-left rtl:left-0 ltr:origin-top-right ltr:right-0":"origin-top"}}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"relative"},[e("div",{on:{click:function(s){t.open=!t.open}}},[t._t("trigger")],2),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"fixed inset-0 z-40",on:{click:function(s){t.open=!1}}}),t._v(" "),e("transition",{attrs:{"enter-active-class":"transition ease-out duration-200","enter-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"absolute z-50 mt-2 shadow rounded",class:[t.widthClass,t.alignmentClasses],staticStyle:{display:"none"},on:{click:function(s){t.open=!1}}},[e("div",{staticClass:"rounded-sm ring-1 ring-black ring-opacity-5",class:t.contentClasses},[t._t("content")],2)])])],1)}),[],!1,null,null,null).exports},93210:(t,s,e)=>{e.d(s,{Z:()=>r});const i={props:["href","as"]};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",["button"===t.as?e("button",{staticClass:"block text-sm w-full px-4 py-2 leading-5 text-gray-700 ltr:text-left rtl:text-right hover:bg-gray-100 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out",attrs:{type:"submit"}},[t._t("default")],2):e("inertia-link",{staticClass:"text-sm block px-4 py-2 leading-5 text-gray-700 hover:bg-gray-100 ltr:text-left rtl:text-right focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out",attrs:{href:t.href}},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},57850:(t,s,e)=>{e.d(s,{Z:()=>r});const i={props:["href","active"],computed:{classes:function(){return this.active?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-400 font-medium leading-5 text-gray-900 focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent font-medium leading-5 text-gray-500 hover:text-gray-700 hover:border-gray-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out"}}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement;return(t._self._c||s)("inertia-link",{class:t.classes,attrs:{href:t.href}},[t._t("default")],2)}),[],!1,null,null,null).exports},50986:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"FIBPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.correct_answer,(function(s,i){return e("ul",{staticClass:"q-option"},[e("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[e("div",{staticClass:"h-6 w-6 text-sm flex rounded-full items-center justify-center bg-gray-100 text-sm"},[t._v(t._s(i+1))]),t._v(" "),e("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(s)}})])])})),0),t._v(" "),e("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Answers"):t.__("Hide Answers"))},on:{click:function(s){t.collapse=!t.collapse}}}),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},40863:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"LAQPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v("Question Type:")]),t._v(" "),e("span",{staticClass:"ml-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v("Difficulty Level:")]),t._v(" "),e("span",{staticClass:"ml-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v("Marks/Points:")]),t._v(" "),e("span",{staticClass:"ml-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v("Attachment:")]),t._v(" "),e("span",{staticClass:"ml-2"},[t._v(t._s(t.question.attachment))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},92755:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"MMAPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(s,i){return e("ul",{staticClass:"q-option"},[e("li",{staticClass:"relative flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[e("div",{staticClass:"h-6 w-6 text-sm flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(i+1))]),t._v(" "),e("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(s.option)}}),t._v(" "),t.question.correct_answer.includes(i+1)?e("div",{staticClass:"absolute ltr:right-2 rtl:left-2 text-green-500"},[e("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("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._e()])])})),0),t._v(" "),e("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(s){t.collapse=!t.collapse}}}),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[e("span",{staticClass:"font-semibold "},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 flex text-sm items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},56274:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"MSAPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(s,i){return e("ul",{staticClass:"q-option"},[e("li",{staticClass:"relative flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[e("div",{staticClass:"h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 text-sm"},[t._v(t._s(i+1))]),t._v(" "),e("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(s.option)}}),t._v(" "),t.question.correct_answer===i+1?e("div",{staticClass:"absolute ltr:right-2 rtl:left-2 text-green-500"},[e("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("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._e()])])})),0),t._v(" "),e("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(s){t.collapse=!t.collapse}}}),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},11936:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"MTFPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(s,i){return e("ul",{staticClass:"q-option"},[e("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[e("div",{staticClass:"h-6 w-6 text-sm flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(i+1))]),t._v(" "),e("div",{staticClass:"text-sm font-normal mx-4",domProps:{innerHTML:t._s(s.option)}}),t._v(" "),e("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M17 8l4 4m0 0l-4 4m4-4H3"}})]),t._v(" "),e("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(s.pair)}})])])})),0),t._v(" "),e("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(s){t.collapse=!t.collapse}}}),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center text-sm mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},57840:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"ORDPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(s,i){return e("ul",{staticClass:"q-option"},[e("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[e("div",{staticClass:"h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(i+1))]),t._v(" "),e("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(s.option)}})])])})),0),t._v(" "),e("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(s){t.collapse=!t.collapse}}}),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),e("span",{staticClass:"text-sm ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},80579:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"SAQPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(s,i){return e("ul",{staticClass:"q-option"},[e("li",{staticClass:"flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[e("div",{staticClass:"text-sm h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 "},[t._v(t._s(i+1))]),t._v(" "),e("div",{staticClass:"text-sm font-normal ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(s.option)}})])])})),0),t._v(" "),e("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Answers"):t.__("Hide Answers"))},on:{click:function(s){t.collapse=!t.collapse}}}),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),e("span",{staticClass:" ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),e("span",{staticClass:" ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},43624:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"TOFPreview",props:{question:Object},data:function(){return{collapse:!0}},created:function(){this.$nextTick((function(){window.renderMathInElement(this.$el)}))}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bg-white shadow px-4 py-5 border-b-4 border-gray-800 mb-6"},[e("h5",{staticClass:"inline-block bg-green-100 rounded-sm px-2 py-1 mb-4 text-xs leading-3 text-green-700"},[t._v(t._s(t.question.skill))]),t._v(" "),e("div",{staticClass:"q-data mb-4"},[e("div",{staticClass:"text-sm",domProps:{innerHTML:t._s(t.question.question)}})]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapse,expression:"!collapse"}],attrs:{id:t.question.code+"_options"}},t._l(t.question.options,(function(s,i){return e("ul",{staticClass:"q-option"},[e("li",{staticClass:"relative flex items-center mb-3 cursor-pointer p-3 rounded-sm border border-gray-200"},[e("div",{staticClass:"h-6 w-6 flex rounded-full items-center justify-center bg-gray-100 text-sm"},[t._v(t._s(i+1))]),t._v(" "),e("div",{staticClass:"font-normal text-sm ltr:ml-4 rtl:mr-4",domProps:{innerHTML:t._s(s.option)}}),t._v(" "),t.question.correct_answer===i+1?e("div",{staticClass:"absolute ltr:right-2 rtl:left-2 text-green-500"},[e("svg",{staticClass:"w-6 h-6",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("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._e()])])})),0),t._v(" "),e("a",{staticClass:"qt-link-success text-sm mb-4",domProps:{innerHTML:t._s(t.collapse?t.__("View Options"):t.__("Hide Options"))},on:{click:function(s){t.collapse=!t.collapse}}}),t._v(" "),e("ul",{staticClass:"mt-5"},[e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Question Type"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.question_type_name))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Difficulty Level"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.difficulty))])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Marks/Points"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.question.marks)+" XP")])]),t._v(" "),e("li",{staticClass:"text-gray-600 text-sm flex items-center mb-4"},[e("span",{staticClass:"font-semibold"},[t._v(t._s(t.__("Attachment"))+":")]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2"},[t._v(t._s(t.__(t.question.attachment)))])])]),t._v(" "),e("div",{staticClass:"mt-4 flex justify-between items-center"},[e("h5",{staticClass:"inline-block bg-gray-100 rounded-sm px-2 py-1 text-xs leading-3 text-gray-700"},[t._v(t._s(t.question.code))]),t._v(" "),t._t("action")],2)])}),[],!1,null,null,null).exports},37760:(t,s,e)=>{e.d(s,{Z:()=>r});const i={props:["active","href","as"],computed:{classes:function(){return this.active?"block pl-3 pr-4 py-2 border-l-4 border-indigo-400 text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out"}}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",["button"==t.as?e("button",{staticClass:"w-full text-left",class:t.classes},[t._t("default")],2):e("inertia-link",{class:t.classes,attrs:{href:t.href}},[t._t("default")],2)],1)}),[],!1,null,null,null).exports},80817:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"AdminQuestionShimmer",components:{Skeleton:e(80247).default}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"mb-6"},[e("Skeleton",{staticClass:"mb-2",attrs:{width:"10rem"}}),t._v(" "),e("Skeleton",{attrs:{height:"2rem"}})],1)}),[],!1,null,null,null).exports},9126:(t,s,e)=>{e.d(s,{Z:()=>r});const i={name:"HorizontalStepper",props:{steps:Array,editFlag:{type:Boolean,default:!1}},data:function(){return{open:!1}},methods:{showAlert:function(){this.$toast.add({severity:"info",summary:"Info",detail:"Please save the current details to proceed!",life:2e3})}}};const r=(0,e(51900).Z)(i,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"w-full"},[e("div",{staticClass:"sm:hidden relative w-full mx-auto rounded"},[e("div",{staticClass:"w-full flex items-start relative",on:{click:function(s){t.open=!t.open}}},[e("button",{staticClass:"w-full bg-green-600 text-white flex items-center justify-center shadow rounded text-xs focus:outline-none"},[e("span",{staticClass:"p-3"},[t._v("Go To")]),t._v(" "),e("span",{staticClass:"py-3 rounded-r px-2"},[e("svg",{attrs:{id:"downIcon2",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),e("polyline",{attrs:{points:"6 9 12 15 18 9"}})]),t._v(" "),e("svg",{staticClass:"hidden icon icon-tabler icon-tabler-chevron-up",attrs:{id:"upIcon2",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z"}}),t._v(" "),e("polyline",{attrs:{points:"6 15 12 9 18 15"}})])])]),t._v(" "),e("ul",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"bg-white shadow rounded py-1 absolute right-0 left-0 top-0 mt-12 dropdown-content"},t._l(t.steps,(function(s,i){return e("li",{key:s.key,staticClass:"cursor-pointer text-gray-600 text-sm leading-3 tracking-normal py-3 hover:bg-indigo-700 hover:text-white px-3 font-normal"},[!0!==s.enable?e("inertia-link",{staticClass:"block",attrs:{href:s.url}},[t._v("\n "+t._s(s.title)+"\n ")]):e("span",[t._v(t._s(s.title))])],1)})),0)])]),t._v(" "),e("div",{staticClass:"xl:w-full xl:mx-0 h-12 hidden sm:block bg-white"},[e("ul",{staticClass:"flex justify-end gap-8"},t._l(t.steps,(function(s,i){return e("li",{key:s.key,staticClass:"group hover:border-primary hover:shadow ease-linear transition-all duration-150 text-sm flex flex-col justify-between border pt-3 rounded-t font-normal cursor-pointer",class:"active"===s.status?"border-primary":"border-gray-400"},[t.editFlag?e("inertia-link",{staticClass:"block",attrs:{href:s.url}},[e("div",{staticClass:"flex items-center px-8 mb-2"},[e("div",{staticClass:"w-6 h-6 group-hover:bg-primary rounded-full flex items-center justify-center",class:"active"===s.status?"bg-primary":"bg-gray-400"},[e("p",{staticClass:"focus:outline-none text-xs text-white"},[t._v(t._s(s.step))])]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2 group-hover:text-primary",class:"active"===s.status?"text-primary":"text-gray-600"},[t._v(t._s(s.title))])])]):e("div",{staticClass:"flex items-center px-8 mb-2",on:{click:t.showAlert}},[e("div",{staticClass:"w-6 h-6 group-hover:bg-primary rounded-full flex items-center justify-center",class:"active"===s.status?"bg-primary":"bg-gray-300"},[e("p",{staticClass:"focus:outline-none text-xs text-white"},[t._v(t._s(s.step))])]),t._v(" "),e("span",{staticClass:"ltr:ml-2 rtl:mr-2 group-hover:text-primary",class:"active"===s.status?"text-primary":"text-gray-600"},[t._v(t._s(s.title))])]),t._v(" "),e("div",{staticClass:"w-full h-1 group-hover:bg-primary rounded-t-md",class:"active"===s.status?"bg-primary":"bg-gray-300"})],1)})),0)])])}),[],!1,null,null,null).exports},66727:(t,s,e)=>{e.d(s,{Z:()=>b});var i=e(97618),r=e(60651),a=e(16446),n=e(93210),l=e(57850),o=e(37760),c=e(71003),d=e(50298),u=e(15366);const p={name:"SidebarDropdown",props:{title:String,items:Array},data:function(){return{open:!1}},methods:{isActive:function(t){return window.location.href===t},isOpen:function(){return this.urls.includes(window.location.href)}},computed:{urls:function(){var t=[];return this.items.forEach((function(s){return t.push(s.url)})),t}},created:function(){this.open=this.isOpen()}};var m=e(51900);const _=(0,m.Z)(p,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("div",{staticClass:"flex items-center justify-between px-4 py-3 transition cursor-pointer group hover:bg-gray-800 hover:text-gray-200",class:{"text-green-400":t.open},attrs:{role:"button"},on:{click:function(s){t.open=!t.open}}},[e("div",{staticClass:"flex items-center"},[t._t("icon"),t._v(" "),e("span",[t._v(t._s(t.__(t.title)))])],2),t._v(" "),e("svg",{staticClass:"flex-shrink-0 w-4 h-4 ml-2 transition transform",class:{"rotate-90":t.open},attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"}})])]),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.open,expression:"open"}],staticClass:"mb-4"},t._l(t.items,(function(s){return e("div",{key:s.url,staticClass:"block"},[s.active?e("inertia-link",{staticClass:"flex items-center py-2 pl-12 pr-4 transition cursor-pointer hover:bg-gray-800 hover:text-gray-200",class:{"text-green-400":t.isActive(s.url)},attrs:{href:s.url}},[t._v("\n "+t._s(t.__(s.label))+"\n ")]):t._e()],1)})),0)])}),[],!1,null,null,null).exports;const v={name:"SidebarLink",props:{title:String,url:String},computed:{active:function(){return window.location.href===this.url}}};const g=(0,m.Z)(v,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("inertia-link",{staticClass:"flex items-center px-4 py-3 transition cursor-pointer group hover:bg-gray-800 hover:text-gray-200",class:{"text-green-400":t.active},attrs:{href:t.url}},[t._t("icon"),t._v(" "),e("span",[t._v(t._s(t.__(t.title)))])],2)}),[],!1,null,null,null).exports;var f=e(44943),h=e(78465);const x={components:{ArcApplicationMark:i.Z,ArcBanner:r.Z,ArcDropdown:a.Z,ArcDropdownLink:n.Z,ArcNavLink:l.Z,ArcResponsiveNavLink:o.Z,ConfirmDialog:c.default,Message:u.default,Toast:d.default,SidebarDropdown:_,SidebarLink:g,PerfectScrollbar:f.PerfectScrollbar,InputSwitch:h.default},data:function(){return{sideBar:!1,darkMode:!1,scrollbarOptions:{suppressScrollX:!0},successMessage:String,errorMessage:String,items:[{label:"Home Dashboard",item_type:"link",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>',url:route("admin_dashboard"),active:"admin"===this.$page.props.user.role_id},{label:"Home Dashboard",item_type:"link",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>',url:route("instructor_dashboard"),active:"instructor"===this.$page.props.user.role_id},{label:"File Manager",item_type:"link",url:route("file-manager"),icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2"></path></svg>',active:"admin"===this.$page.props.user.role_id},{item_type:"divider",label:"Engage"},{label:"Manage Tests",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>',active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id,items:[{label:"Quizzes",url:route("quizzes.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Exams",url:route("exams.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Quiz Types",url:route("quiz-types.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Exam Types",url:route("exam-types.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id}]},{label:"Manage Learning",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z"/></svg>',active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id,items:[{label:"Practice Sets",url:route("practice-sets.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Lessons",url:route("practice.configure_lessons"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Videos",url:route("practice.configure_videos"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id}]},{item_type:"divider",label:"Library"},{label:"Question Bank",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="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"></path></svg>',active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id,items:[{label:"Questions",url:route("questions.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Import Questions",url:route("initiate_import_questions"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Comprehensions",url:route("comprehensions.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Question Types",url:route("question-types.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id}]},{label:"Lesson Bank",item_type:"link",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>',active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id,url:route("lessons.index")},{label:"Video Bank",item_type:"link",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>',active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id,url:route("videos.index")},{item_type:"divider",label:"Configuration"},{label:"Monetization",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.31-8.86c-1.77-.45-2.34-.94-2.34-1.67 0-.84.79-1.43 2.1-1.43 1.38 0 1.9.66 1.94 1.64h1.71c-.05-1.34-.87-2.57-2.49-2.97V5H10.9v1.69c-1.51.32-2.72 1.3-2.72 2.81 0 1.79 1.49 2.69 3.66 3.21 1.95.46 2.34 1.15 2.34 1.87 0 .53-.39 1.39-2.1 1.39-1.6 0-2.23-.72-2.32-1.64H8.04c.1 1.7 1.36 2.66 2.86 2.97V19h2.34v-1.67c1.52-.29 2.72-1.16 2.73-2.77-.01-2.2-1.9-2.96-3.66-3.42z"/></svg>',active:"admin"===this.$page.props.user.role_id,items:[{label:"Plans",url:route("plans.index"),active:"admin"===this.$page.props.user.role_id},{label:"Subscriptions",url:route("subscriptions.index"),active:"admin"===this.$page.props.user.role_id},{label:"Payments",url:route("payments.index"),active:"admin"===this.$page.props.user.role_id}]},{label:"Manage Users",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>',active:"admin"===this.$page.props.user.role_id,items:[{label:"Users",url:route("users.index"),active:"admin"===this.$page.props.user.role_id},{label:"User Groups",url:route("user-groups.index"),active:"admin"===this.$page.props.user.role_id},{label:"Import Users",url:route("initiate_import_users"),active:"admin"===this.$page.props.user.role_id}]},{label:"Manage Categories",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"></path></svg>',active:"admin"===this.$page.props.user.role_id,items:[{label:"Categories",url:route("categories.index"),active:"admin"===this.$page.props.user.role_id},{label:"Sub Categories",url:route("sub-categories.index"),active:"admin"===this.$page.props.user.role_id},{label:"Tags",url:route("tags.index"),active:"admin"===this.$page.props.user.role_id}]},{label:"Manage Subjects",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path></svg>',active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id,items:[{label:"Sections",url:route("sections.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Skills",url:route("skills.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id},{label:"Topics",url:route("topics.index"),active:"admin"===this.$page.props.user.role_id||"instructor"===this.$page.props.user.role_id}]},{label:"Settings",item_type:"dropdown",icon:'<svg class="flex-shrink-0 w-5 h-5 ltr:mr-2 rtl:ml-2 transition group-hover:text-gray-300" 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="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg>',active:"admin"===this.$page.props.user.role_id,items:[{label:"General Settings",url:route("general_settings"),active:"admin"===this.$page.props.user.role_id},{label:"Localization Settings",url:route("localization_settings"),active:"admin"===this.$page.props.user.role_id},{label:"Home Page Settings",url:route("home_page_settings"),active:"admin"===this.$page.props.user.role_id},{label:"Email Settings",url:route("email_settings"),active:"admin"===this.$page.props.user.role_id},{label:"Payment Settings",url:route("payment_settings"),active:"admin"===this.$page.props.user.role_id},{label:"Billing & Tax Settings",url:route("billing_tax_settings"),active:"admin"===this.$page.props.user.role_id},{label:"Theme Settings",url:route("theme_settings"),active:"admin"===this.$page.props.user.role_id},{label:"Maintenance Settings",url:route("maintenance_settings"),active:"admin"===this.$page.props.user.role_id}]}]}},methods:{switchToTeam:function(t){this.$inertia.put(route("current-team.update"),{team_id:t.id},{preserveState:!1})},changeMode:function(){this.darkMode?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},logout:function(){this.$inertia.post(route("logout"))}}};const b=(0,m.Z)(x,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("div",{staticClass:"ltr:ml-0 rtl:mr-0 transition md:ltr:ml-60 md:rtl:mr-60"},[e("arc-banner")],1),t._v(" "),e("div",{staticClass:"min-h-screen"},[e("nav",{staticClass:"fixed top-0 ltr:left-0 rtl:right-0 z-20 h-full pb-10 overflow-hidden transition origin-left transform bg-gray-900 w-60 md:ltr:translate-x-0 md:rtl:-translate-x-0",class:{"ltr:-translate-x-full rtl:translate-x-full":!t.sideBar,"translate-x-0":t.sideBar},on:{click:function(s){t.sideBar=!1}}},[e("inertia-link",{staticClass:"flex items-center px-4 py-5",attrs:{href:t.route("home")}},[e("img",{staticClass:"h-8 w-auto",attrs:{src:t.$page.props.assetUrl+t.$page.props.general.logo_path,alt:t.$page.props.general.app_name}})]),t._v(" "),e("perfect-scrollbar",{ref:"scroll",staticClass:"h-full overflow-hidden",attrs:{options:t.scrollbarOptions}},[e("nav",{staticClass:"text-sm font-medium pb-16 text-gray-400",attrs:{"aria-label":"Main Navigation"}},[t._l(t.items,(function(s){return[s.active&&"dropdown"===s.item_type?e("sidebar-dropdown",{attrs:{title:s.label,items:s.items},scopedSlots:t._u([{key:"icon",fn:function(){return[e("span",{domProps:{innerHTML:t._s(s.icon)}})]},proxy:!0}],null,!0)}):t._e(),t._v(" "),!0===s.active&&"link"===s.item_type?e("sidebar-link",{attrs:{title:s.label,url:s.url},scopedSlots:t._u([{key:"icon",fn:function(){return[e("span",{domProps:{innerHTML:t._s(s.icon)}})]},proxy:!0}],null,!0)}):t._e(),t._v(" "),"divider"===s.item_type?e("div",{staticClass:"my-4 mx-4 uppercase font-semibold text-green-500 text-xs"},[t._v("\n "+t._s(s.label)+"\n ")]):t._e()]}))],2)])],1),t._v(" "),e("div",{staticClass:"ltr:ml-0 rtl:mr-0 transition md:ltr:ml-60 md:rtl:mr-60"},[e("header",{staticClass:"bg-white shadow flex items-center justify-between w-full md:mx-auto md:sticky md:z-30 md:top-0 px-4 h-14"},[e("button",{staticClass:"block btn btn-light-secondary md:hidden",on:{click:function(s){t.sideBar=!0}}},[e("span",{staticClass:"sr-only"},[t._v(t._s(t.__("Menu")))]),t._v(" "),e("svg",{staticClass:"w-4 h-4",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z","clip-rule":"evenodd"}})])]),t._v(" "),e("div",{staticClass:"hidden -ml-3 form-icon md:block w-96"},[e("inertia-link",{staticClass:"text-sm font-semibold px-4 py-5 capitalize",attrs:{href:t.route("home")}},[t._v("\n "+t._s(t.__(t.$page.props.user.role_id))+" "+t._s(t.__("Dashboard"))+"\n ")])],1),t._v(" "),e("div",{staticClass:"flex items-center"},[e("a",{staticClass:"flex text-gray-500",attrs:{href:"#"}},[e("svg",{staticClass:"flex-shrink-0 w-5 h-5",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},[e("path",{attrs:{d:"M10 2a6 6 0 00-6 6v3.586l-.707.707A1 1 0 004 14h12a1 1 0 00.707-1.707L16 11.586V8a6 6 0 00-6-6zM10 18a3 3 0 01-3-3h6a3 3 0 01-3 3z"}})])]),t._v(" "),e("div",{staticClass:"ltr:ml-4 rtl:mr-4 relative"},[e("arc-dropdown",{attrs:{align:"right",width:"48"},scopedSlots:t._u([{key:"trigger",fn:function(){return[t.$page.props.jetstream.managesProfilePhotos?e("button",{staticClass:"flex border-2 border-transparent rounded-full focus:outline-none focus:border-gray-300 transition duration-150 ease-in-out"},[e("img",{staticClass:"h-8 w-8 rounded-full object-cover",attrs:{src:t.$page.props.user.profile_photo_url,alt:t.$page.props.user.name}})]):e("span",{staticClass:"inline-flex rounded-md"},[e("button",{staticClass:"inline-flex items-center px-3 py-2 border border-transparent leading-4 font-medium rounded-md text-gray-500 bg-white hover:text-gray-700 focus:outline-none transition ease-in-out duration-150",attrs:{type:"button"}},[t._v("\n "+t._s(t.$page.props.user.name)+"\n\n "),e("svg",{staticClass:"ml-2 -mr-0.5 h-4 w-4",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd"}})])])])]},proxy:!0},{key:"content",fn:function(){return[e("div",{staticClass:"block px-4 py-2 text-xs text-gray-400"},[t._v("\n "+t._s(t.__("Manage Account"))+"\n ")]),t._v(" "),e("arc-dropdown-link",{attrs:{href:t.route("profile.show")}},[t._v("\n "+t._s(t.__("Profile"))+"\n ")]),t._v(" "),t.$page.props.jetstream.hasApiFeatures?e("arc-dropdown-link",{attrs:{href:t.route("api-tokens.index")}},[t._v("\n "+t._s(t.__("Api Tokens"))+"\n ")]):t._e(),t._v(" "),e("div",{staticClass:"border-t border-gray-100"}),t._v(" "),e("form",{attrs:{method:"post",action:t.route("logout")}},[e("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.$page.props.csrf_token}}),t._v(" "),e("arc-dropdown-link",{attrs:{as:"button"}},[t._v("\n "+t._s(t.__("Logout"))+"\n ")])],1)]},proxy:!0}])})],1)])]),t._v(" "),e("section",[e("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[e("div",{staticClass:"flex flex-col md:flex-row items-start md:items-center justify-between"},[e("div",[t._t("header")],2),t._v(" "),e("div",{staticClass:"mb-6 sm:mb-0 sm:mt-0"},[t._t("actions")],2)])])]),t._v(" "),e("main",[e("div",{staticClass:"container mx-auto px-4 sm:px-6 lg:px-8"},[t.$page.props.successMessage?e("Message",{attrs:{severity:"success",closable:!1}},[t._v(t._s(t.$page.props.successMessage))]):t._e(),t._v(" "),t.$page.props.errorMessage?e("Message",{attrs:{severity:"error",closable:!1}},[t._v(t._s(t.$page.props.errorMessage))]):t._e()],1),t._v(" "),t._t("default")],2),t._v(" "),e("portal-target",{attrs:{name:"modal",multiple:""}}),t._v(" "),e("ConfirmDialog"),t._v(" "),e("Toast",{attrs:{position:t.$page.props.rtl?"bottom-left":"bottom-right"}}),t._v(" "),e("Toast",{attrs:{position:t.$page.props.rtl?"top-left":"top-right",group:"lm"}})],1),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.sideBar,expression:"sideBar"}],staticClass:"fixed inset-0 z-10 w-screen h-screen bg-black bg-opacity-25 md:hidden",on:{click:function(s){t.sideBar=!1}}})])])}),[],!1,null,null,null).exports},91547:(t,s,e)=>{e.r(s),e.d(s,{default:()=>w});var i=e(66727),r=e(56274),a=e(92755),n=e(50986),l=e(11936),o=e(57840),c=e(80579),d=e(40863),u=e(43624),p=e(80817),m=e(50298),_=e(15693),v=e(72263),g=e(19938),f=e.n(g),h=e(14974),x=e(9126);const b={name:"ExamQuestions",components:{TOFPreview:u.Z,LAQPreview:d.Z,SAQPreview:c.Z,ORDPreview:o.Z,MTFPreview:l.Z,FIBPreview:n.Z,MMAPreview:a.Z,AdminLayout:i.Z,MSAPreview:r.Z,AdminQuestionShimmer:p.Z,Toast:m.default,Button:v.default,Checkbox:_.default,vSelect:f(),InputText:h.default,HorizontalStepper:x.Z},props:{exam:Object,difficultyLevels:Array,questionTypes:Array,sections:Array,steps:Array,editFlag:!1},data:function(){return{qEditFlag:!1,currentSection:null,currentSectionId:null,questions:[],pagination:{},difficultyFilter:[],typeFilter:[],skillFilter:null,topicFilter:null,tagArray:[],codeFilter:"",tags:[],debounce:null,loading:!1,processing:!1}},metaInfo:function(){return{title:this.title}},computed:{title:function(){return this.exam.title+" "+this.__("Questions")+" - "+this.$page.props.general.app_name},tagFilter:function(){var t=[];return this.tagArray.forEach((function(s){return t.push(s.id)})),t}},methods:{viewQuestions:function(t){this.qEditFlag=!1,this.currentSection=t,this.currentSectionId=t.id,this.resetFilters()},editQuestions:function(t){this.qEditFlag=!0,this.currentSection=t,this.currentSectionId=t.id,this.resetFilters()},resetFilters:function(){this.codeFilter="",this.skillFilter="",this.topicFilter="",this.difficultyFilter=[],this.typeFilter=[],this.tagArray=[],this.filterQuestions()},filterQuestions:function(){this.qEditFlag?this.fetchAvailableQuestions():this.fetchQuestions()},loadMoreQuestions:function(){var t=this;axios.get(this.pagination.links.next,{params:{difficulty_levels:this.difficultyFilter,question_types:this.typeFilter,skill:this.skillFilter,topic:this.topicFilter,code:this.codeFilter,tags:this.tagFilter}}).then((function(s){var e=s.data.questions.data;t.pagination=s.data.questions.meta.pagination,e.forEach((function(s){return t.questions.push(s)})),t.loading=!1})).catch((function(s){t.loading=!1}))},fetchQuestions:function(){var t=this;t.loading=!0,this.questions=[],axios.get(route("exams.fetch_questions",{exam:this.exam.id,section:this.currentSection.id,difficulty_levels:this.difficultyFilter,question_types:this.typeFilter,skill:this.skillFilter,topic:this.topicFilter,code:this.codeFilter,tags:this.tagFilter})).then((function(s){var e=s.data.questions.data;t.pagination=s.data.questions.meta.pagination,e.forEach((function(s){return t.questions.push(s)})),t.loading=!1})).catch((function(s){t.loading=!1}))},fetchAvailableQuestions:function(){var t=this;t.loading=!0,this.questions=[],axios.get(route("exams.fetch_available_questions",{exam:this.exam.id,section:this.currentSection.section_id,difficulty_levels:this.difficultyFilter,question_types:this.typeFilter,skill:this.skillFilter,topic:this.topicFilter,code:this.codeFilter,tags:this.tagFilter})).then((function(s){var e=s.data.questions.data;t.pagination=s.data.questions.meta.pagination,e.forEach((function(s){return t.questions.push(s)})),t.loading=!1})).catch((function(s){t.loading=!1}))},addQuestion:function(t,s){var e=this;e.processing=!0,axios.post(route("exams.add_question",{exam:this.exam.id,section:this.currentSection.id}),{question_id:t}).then((function(t){e.questions[s].disabled=!0,e.showToast("Added","Lesson added successfully"),e.processing=!1})).catch((function(t){e.processing=!1}))},removeQuestion:function(t,s){var e=this,i=this;this.$confirm.require({header:this.__("Confirm"),message:this.__("Do you want to remove this question?"),icon:"pi pi-info-circle",acceptClass:"p-button-danger",rejectLabel:this.__("Cancel"),acceptLabel:this.__("Remove"),accept:function(){i.processing=!0,axios.post(route("exams.remove_question",{exam:e.exam.id,section:e.currentSection.id}),{question_id:t}).then((function(t){i.questions[s].disabled=!0,i.showToast("Removed","Question removed successfully"),i.processing=!1})).catch((function(t){i.processing=!1}))},reject:function(){i.processing=!1}})},searchTags:function(t,s){if(""!==t){var e=this;s(!0),clearTimeout(this.debounce),this.tags=[],this.debounce=setTimeout((function(){axios.get(route("search_tags",{query:t})).then((function(t){e.tags=t.data.tags,s(!1)})).catch((function(t){s(!1)}))}),600)}},showToast:function(t,s){this.$toast.add({severity:"success",summary:this.__(t),detail:this.__(s),life:3e3})}}};const w=(0,e(51900).Z)(b,(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("admin-layout",[e("div",{staticClass:"container mx-auto pt-4 px-4 sm:px-6 lg:px-8"},[e("div",{staticClass:"w-full bg-white dark:bg-gray-800 py-5 flex flex-col xl:flex-row items-start xl:items-center justify-between px-5 xl:px-10 shadow rounded-t"},[e("div",{staticClass:"mb-4 sm:mb-0 md:mb-0 lg:mb-0 xl:mb-0 lg:w-1/2"},[e("h2",{staticClass:"text-gray-800 dark:text-gray-100 text-lg font-bold"},[t._v(t._s(t.__("Exam"))+" "+t._s(t.__("Questions")))]),t._v(" "),e("p",{staticClass:"font-normal text-sm text-gray-600 dark:text-gray-100 mt-1",domProps:{innerHTML:t._s(t.editFlag?t.exam.title:"New Exam")}})]),t._v(" "),e("horizontal-stepper",{attrs:{steps:t.steps,"edit-flag":t.editFlag}})],1)]),t._v(" "),e("div",{staticClass:"container mx-auto py-8 px-4 sm:px-6 lg:px-8"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"flex justify-center flex-wrap"},[e("div",{staticClass:"sm:w-4/12 w-full p-4"},[e("div",[e("h4",{staticClass:"py-2 font-semibold flex items-center gap-2 text-gray-800 border-b"},[e("svg",{staticClass:"h-6 w-6",attrs:{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"}})]),t._v("\n "+t._s(t.__("Sections"))+"\n ")]),t._v(" "),e("ul",{staticClass:"w-full mt-4"},t._l(t.sections,(function(s){return e("li",{key:"section_"+s.id,staticClass:"my-2 p-2 border border-green-100 shadow-sm rounded-sm",class:[s.id===t.currentSectionId?"bg-green-50":"bg-white"]},[e("div",{staticClass:"font-semibold"},[t._v(t._s(s.section_order)+". "+t._s(s.name))]),t._v(" "),e("div",{staticClass:"flex flex-col sm:flex-row gap-2"},[e("div",[e("a",{staticClass:"qt-link-success",attrs:{href:"#"},on:{click:function(e){return t.editQuestions(s)}}},[t._v(t._s(t.__("Add"))+" "+t._s(t.__("Questions")))])]),t._v(" "),e("div",[e("a",{staticClass:"qt-link-success",attrs:{href:"#"},on:{click:function(e){return t.viewQuestions(s)}}},[t._v(t._s(t.__("View"))+" "+t._s(t.__("Questions")))])])])])})),0)]),t._v(" "),t.currentSection?e("div",[e("h4",{staticClass:"py-2 font-semibold flex items-center gap-2 text-gray-800 border-b mt-6"},[e("svg",{staticClass:"w-5 h-5",attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"}})]),t._v("\n "+t._s(t.__("Filters"))+"\n ")]),t._v(" "),e("div",{staticClass:"w-full flex flex-col mt-6"},[e("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"code"}},[t._v(t._s(t.__("Code")))]),t._v(" "),e("InputText",{attrs:{type:"text",id:"code",placeholder:"Enter Code","aria-describedby":"code-help"},model:{value:t.codeFilter,callback:function(s){t.codeFilter=s},expression:"codeFilter"}})],1),t._v(" "),e("div",{staticClass:"w-full flex flex-col mt-6"},[e("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Type")))]),t._v(" "),e("div",{staticClass:"flex flex-col gap-2"},t._l(t.questionTypes,(function(s){return e("div",{staticClass:"p-field-radiobutton items-center"},[e("Checkbox",{attrs:{id:"q_type"+s.id,name:"q_type",value:s.id},model:{value:t.typeFilter,callback:function(s){t.typeFilter=s},expression:"typeFilter"}}),t._v(" "),e("label",{staticClass:"text-sm text-gray-800",attrs:{for:"q_type"+s.id}},[t._v(t._s(s.name))])],1)})),0)]),t._v(" "),e("div",{staticClass:"w-full flex flex-col mt-6"},[e("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800",attrs:{for:"skill"}},[t._v(t._s(t.__("Skill")))]),t._v(" "),e("InputText",{attrs:{type:"text",id:"skill",placeholder:"Enter Skill","aria-describedby":"skill-help"},model:{value:t.skillFilter,callback:function(s){t.skillFilter=s},expression:"skillFilter"}})],1),t._v(" "),e("div",{staticClass:"w-full flex flex-col mt-6"},[e("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800",attrs:{for:"topic"}},[t._v(t._s(t.__("Topic")))]),t._v(" "),e("InputText",{attrs:{type:"text",id:"topic",placeholder:"Enter Topic","aria-describedby":"topic-help"},model:{value:t.topicFilter,callback:function(s){t.topicFilter=s},expression:"topicFilter"}})],1),t._v(" "),e("div",{staticClass:"w-full flex flex-col mt-6"},[e("label",{staticClass:"pb-2 text-sm font-semibold text-gray-800",attrs:{for:"tag"}},[t._v("By Tag")]),t._v(" "),e("v-select",{attrs:{multiple:"",id:"tag",options:t.tags,label:"name",dir:t.$page.props.rtl?"rtl":"ltr"},on:{search:t.searchTags},scopedSlots:t._u([{key:"no-options",fn:function(s){s.search;return[s.searching?[t._v(t._s(t.__("No results were found for this search"))+".")]:e("em",{staticClass:"opacity-50"},[t._v(t._s(t.__("Start typing to search"))+".")])]}}],null,!1,1403868184),model:{value:t.tagArray,callback:function(s){t.tagArray=s},expression:"tagArray"}})],1),t._v(" "),e("div",{staticClass:"w-full flex flex-col mt-6"},[e("label",{staticClass:"mb-3 text-sm font-semibold text-gray-800"},[t._v(t._s(t.__("Difficulty Level")))]),t._v(" "),e("div",{staticClass:"flex flex-col gap-2"},t._l(t.difficultyLevels,(function(s){return e("div",{staticClass:"p-field-radiobutton"},[e("Checkbox",{attrs:{id:"difficulty"+s.id,name:"difficulty",value:s.id},model:{value:t.difficultyFilter,callback:function(s){t.difficultyFilter=s},expression:"difficultyFilter"}}),t._v(" "),e("label",{staticClass:"text-sm text-gray-800",attrs:{for:"difficulty"+s.id}},[t._v(t._s(s.name))])],1)})),0)]),t._v(" "),e("div",{staticClass:"w-full flex items-center gap-2 my-8"},[e("button",{staticClass:"w-full qt-btn qt-btn-primary",attrs:{type:"button"},on:{click:t.resetFilters}},[t._v(t._s(t.__("Reset")))]),t._v(" "),e("button",{staticClass:"w-full qt-btn qt-btn-success",attrs:{type:"button"},on:{click:t.filterQuestions}},[t._v(t._s(t.__("Search")))])])]):t._e()]),t._v(" "),t.currentSection?e("div",{staticClass:"sm:w-8/12 w-full my-4"},[e("div",{staticClass:"my-2 p-4 border border-green-100 shadow-sm rounded-sm bg-green-50"},[e("div",{staticClass:"font-semibold"},[t._v(t._s(t.__("Currently"))+" "+t._s(t.qEditFlag?t.__("Adding"):t.__("Viewing"))+" "+t._s(t.currentSection.name)+" "+t._s(t.__("Questions")))])]),t._v(" "),e("div",{staticClass:"bg-gray-100 rounded p-6"},[t.loading?e("div",{staticClass:"grid grid-cols-1 gap-4 flex-wrap"},[e("admin-question-shimmer"),t._v(" "),e("admin-question-shimmer"),t._v(" "),e("admin-question-shimmer"),t._v(" "),e("admin-question-shimmer")],1):e("div",[e("div",{staticClass:"text-sm mb-4"},[e("span",{staticClass:"text-gray-500 font-normal"},[t._v(t._s(t.pagination.total)+" "+t._s(t.__("items_found_message"))+".")])]),t._v(" "),e("div",{staticClass:"grid grid-cols-1 gap-4 flex-wrap"},[t._l(t.questions,(function(s,i){return["MSA"===s.question_type?[e("MSAPreview",{attrs:{question:s},scopedSlots:t._u([{key:"action",fn:function(){return[e("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",s.disabled||t.processing?"opacity-25":""],attrs:{disabled:s.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(e){t.qEditFlag?t.addQuestion(s.id,i):t.removeQuestion(s.id,i)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"MMA"===s.question_type?[e("MMAPreview",{attrs:{question:s},scopedSlots:t._u([{key:"action",fn:function(){return[e("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",s.disabled||t.processing?"opacity-25":""],attrs:{disabled:s.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(e){t.qEditFlag?t.addQuestion(s.id,i):t.removeQuestion(s.id,i)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"TOF"===s.question_type?[e("TOFPreview",{attrs:{question:s},scopedSlots:t._u([{key:"action",fn:function(){return[e("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",s.disabled||t.processing?"opacity-25":""],attrs:{disabled:s.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(e){t.qEditFlag?t.addQuestion(s.id,i):t.removeQuestion(s.id,i)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"FIB"===s.question_type?[e("FIBPreview",{attrs:{question:s},scopedSlots:t._u([{key:"action",fn:function(){return[e("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",s.disabled||t.processing?"opacity-25":""],attrs:{disabled:s.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(e){t.qEditFlag?t.addQuestion(s.id,i):t.removeQuestion(s.id,i)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"MTF"===s.question_type?[e("MTFPreview",{attrs:{question:s},scopedSlots:t._u([{key:"action",fn:function(){return[e("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",s.disabled||t.processing?"opacity-25":""],attrs:{disabled:s.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(e){t.qEditFlag?t.addQuestion(s.id,i):t.removeQuestion(s.id,i)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"ORD"===s.question_type?[e("ORDPreview",{attrs:{question:s},scopedSlots:t._u([{key:"action",fn:function(){return[e("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",s.disabled||t.processing?"opacity-25":""],attrs:{disabled:s.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(e){t.qEditFlag?t.addQuestion(s.id,i):t.removeQuestion(s.id,i)}}})]},proxy:!0}],null,!0)})]:t._e(),t._v(" "),"SAQ"===s.question_type?[e("SAQPreview",{attrs:{question:s},scopedSlots:t._u([{key:"action",fn:function(){return[e("button",{staticClass:"qt-btn-sm",class:[t.qEditFlag?"qt-btn-success":"qt-btn-danger",s.disabled||t.processing?"opacity-25":""],attrs:{disabled:s.disabled},domProps:{innerHTML:t._s(t.qEditFlag?t.__("Add"):t.__("Remove"))},on:{click:function(e){t.qEditFlag?t.addQuestion(s.id,i):t.removeQuestion(s.id,i)}}})]},proxy:!0}],null,!0)})]:t._e()]})),t._v(" "),0===t.questions.length?e("div",{staticClass:"flex justify-center items-center"},[e("h4",{staticClass:" p-4 font-semibold"},[t._v(t._s(t.__("No Questions")))])]):t.pagination&&t.questions.length!==t.pagination.total?e("div",{staticClass:"flex justify-center items-center"},[e("button",{staticClass:"qt-btn qt-btn-success",on:{click:t.loadMoreQuestions}},[t._v(t._s(t.__("Load More")))])]):e("div",{staticClass:"flex text-sm justify-center items-center py-4"},[t._v("\n "+t._s(t.__("no_more_data_message"))+"\n ")])],2)])])]):e("div",{staticClass:"sm:w-8/12 w-full my-4"},[t.currentSection?t._e():e("div",{staticClass:"bg-gray-100 rounded p-6"},[e("div",{staticClass:"flex justify-center items-center"},[e("h4",{staticClass:" p-4 font-semibold"},[t._v(t._s(t.__("Please choose a section to add/remove questions")))])])])])])])])])])}),[],!1,null,null,null).exports}}]);